var Vv=Object.defineProperty;var Yv=(et,tt,rt)=>tt in et?Vv(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:rt}):et[tt]=rt;var Xv=(et,tt)=>()=>(tt||et((tt={exports:{}}).exports,tt),tt.exports);var Nr=(et,tt,rt)=>(Yv(et,typeof tt!="symbol"?tt+"":tt,rt),rt);var Kv=Xv((exports,module)=>{function _mergeNamespaces(et,tt){for(var rt=0;rt<tt.length;rt++){const nt=tt[rt];if(typeof nt!="string"&&!Array.isArray(nt)){for(const lt in nt)if(lt!=="default"&&!(lt in et)){const ut=Object.getOwnPropertyDescriptor(nt,lt);ut&&Object.defineProperty(et,lt,ut.get?ut:{enumerable:!0,get:()=>nt[lt]})}}}return Object.freeze(Object.defineProperty(et,Symbol.toStringTag,{value:"Module"}))}(function(){const tt=document.createElement("link").relList;if(tt&&tt.supports&&tt.supports("modulepreload"))return;for(const lt of document.querySelectorAll('link[rel="modulepreload"]'))nt(lt);new MutationObserver(lt=>{for(const ut of lt)if(ut.type==="childList")for(const dt of ut.addedNodes)dt.tagName==="LINK"&&dt.rel==="modulepreload"&&nt(dt)}).observe(document,{childList:!0,subtree:!0});function rt(lt){const ut={};return lt.integrity&&(ut.integrity=lt.integrity),lt.referrerPolicy&&(ut.referrerPolicy=lt.referrerPolicy),lt.crossOrigin==="use-credentials"?ut.credentials="include":lt.crossOrigin==="anonymous"?ut.credentials="omit":ut.credentials="same-origin",ut}function nt(lt){if(lt.ep)return;lt.ep=!0;const ut=rt(lt);fetch(lt.href,ut)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(et){return et&&et.__esModule&&Object.prototype.hasOwnProperty.call(et,"default")?et.default:et}function getAugmentedNamespace(et){if(et.__esModule)return et;var tt=et.default;if(typeof tt=="function"){var rt=function nt(){return this instanceof nt?Reflect.construct(tt,arguments,this.constructor):tt.apply(this,arguments)};rt.prototype=tt.prototype}else rt={};return Object.defineProperty(rt,"__esModule",{value:!0}),Object.keys(et).forEach(function(nt){var lt=Object.getOwnPropertyDescriptor(et,nt);Object.defineProperty(rt,nt,lt.get?lt:{enumerable:!0,get:function(){return et[nt]}})}),rt}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var l$6=Symbol.for("react.element"),n$7=Symbol.for("react.portal"),p$9=Symbol.for("react.fragment"),q$8=Symbol.for("react.strict_mode"),r$7=Symbol.for("react.profiler"),t$5=Symbol.for("react.provider"),u$6=Symbol.for("react.context"),v$9=Symbol.for("react.forward_ref"),w$6=Symbol.for("react.suspense"),x$5=Symbol.for("react.memo"),y$6=Symbol.for("react.lazy"),z$6=Symbol.iterator;function A$6(et){return et===null||typeof et!="object"?null:(et=z$6&&et[z$6]||et["@@iterator"],typeof et=="function"?et:null)}var B$5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$4=Object.assign,D$5={};function E$4(et,tt,rt){this.props=et,this.context=tt,this.refs=D$5,this.updater=rt||B$5}E$4.prototype.isReactComponent={};E$4.prototype.setState=function(et,tt){if(typeof et!="object"&&typeof et!="function"&&et!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,et,tt,"setState")};E$4.prototype.forceUpdate=function(et){this.updater.enqueueForceUpdate(this,et,"forceUpdate")};function F$3(){}F$3.prototype=E$4.prototype;function G$4(et,tt,rt){this.props=et,this.context=tt,this.refs=D$5,this.updater=rt||B$5}var H$4=G$4.prototype=new F$3;H$4.constructor=G$4;C$4(H$4,E$4.prototype);H$4.isPureReactComponent=!0;var I$5=Array.isArray,J$1=Object.prototype.hasOwnProperty,K$7={current:null},L$3={key:!0,ref:!0,__self:!0,__source:!0};function M$4(et,tt,rt){var nt,lt={},ut=null,dt=null;if(tt!=null)for(nt in tt.ref!==void 0&&(dt=tt.ref),tt.key!==void 0&&(ut=""+tt.key),tt)J$1.call(tt,nt)&&!L$3.hasOwnProperty(nt)&&(lt[nt]=tt[nt]);var pt=arguments.length-2;if(pt===1)lt.children=rt;else if(1<pt){for(var ht=Array(pt),mt=0;mt<pt;mt++)ht[mt]=arguments[mt+2];lt.children=ht}if(et&&et.defaultProps)for(nt in pt=et.defaultProps,pt)lt[nt]===void 0&&(lt[nt]=pt[nt]);return{$$typeof:l$6,type:et,key:ut,ref:dt,props:lt,_owner:K$7.current}}function N$3(et,tt){return{$$typeof:l$6,type:et.type,key:tt,ref:et.ref,props:et.props,_owner:et._owner}}function O$3(et){return typeof et=="object"&&et!==null&&et.$$typeof===l$6}function escape$3(et){var tt={"=":"=0",":":"=2"};return"$"+et.replace(/[=:]/g,function(rt){return tt[rt]})}var P$3=/\/+/g;function Q$4(et,tt){return typeof et=="object"&&et!==null&&et.key!=null?escape$3(""+et.key):tt.toString(36)}function R$4(et,tt,rt,nt,lt){var ut=typeof et;(ut==="undefined"||ut==="boolean")&&(et=null);var dt=!1;if(et===null)dt=!0;else switch(ut){case"string":case"number":dt=!0;break;case"object":switch(et.$$typeof){case l$6:case n$7:dt=!0}}if(dt)return dt=et,lt=lt(dt),et=nt===""?"."+Q$4(dt,0):nt,I$5(lt)?(rt="",et!=null&&(rt=et.replace(P$3,"$&/")+"/"),R$4(lt,tt,rt,"",function(mt){return mt})):lt!=null&&(O$3(lt)&&(lt=N$3(lt,rt+(!lt.key||dt&&dt.key===lt.key?"":(""+lt.key).replace(P$3,"$&/")+"/")+et)),tt.push(lt)),1;if(dt=0,nt=nt===""?".":nt+":",I$5(et))for(var pt=0;pt<et.length;pt++){ut=et[pt];var ht=nt+Q$4(ut,pt);dt+=R$4(ut,tt,rt,ht,lt)}else if(ht=A$6(et),typeof ht=="function")for(et=ht.call(et),pt=0;!(ut=et.next()).done;)ut=ut.value,ht=nt+Q$4(ut,pt++),dt+=R$4(ut,tt,rt,ht,lt);else if(ut==="object")throw tt=String(et),Error("Objects are not valid as a React child (found: "+(tt==="[object Object]"?"object with keys {"+Object.keys(et).join(", ")+"}":tt)+"). If you meant to render a collection of children, use an array instead.");return dt}function S$3(et,tt,rt){if(et==null)return et;var nt=[],lt=0;return R$4(et,nt,"","",function(ut){return tt.call(rt,ut,lt++)}),nt}function T$3(et){if(et._status===-1){var tt=et._result;tt=tt(),tt.then(function(rt){(et._status===0||et._status===-1)&&(et._status=1,et._result=rt)},function(rt){(et._status===0||et._status===-1)&&(et._status=2,et._result=rt)}),et._status===-1&&(et._status=0,et._result=tt)}if(et._status===1)return et._result.default;throw et._result}var U$2={current:null},V$2={transition:null},W$8={ReactCurrentDispatcher:U$2,ReactCurrentBatchConfig:V$2,ReactCurrentOwner:K$7};function X$2(){throw Error("act(...) is not supported in production builds of React.")}react_production_min.Children={map:S$3,forEach:function(et,tt,rt){S$3(et,function(){tt.apply(this,arguments)},rt)},count:function(et){var tt=0;return S$3(et,function(){tt++}),tt},toArray:function(et){return S$3(et,function(tt){return tt})||[]},only:function(et){if(!O$3(et))throw Error("React.Children.only expected to receive a single React element child.");return et}};react_production_min.Component=E$4;react_production_min.Fragment=p$9;react_production_min.Profiler=r$7;react_production_min.PureComponent=G$4;react_production_min.StrictMode=q$8;react_production_min.Suspense=w$6;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$8;react_production_min.act=X$2;react_production_min.cloneElement=function(et,tt,rt){if(et==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+et+".");var nt=C$4({},et.props),lt=et.key,ut=et.ref,dt=et._owner;if(tt!=null){if(tt.ref!==void 0&&(ut=tt.ref,dt=K$7.current),tt.key!==void 0&&(lt=""+tt.key),et.type&&et.type.defaultProps)var pt=et.type.defaultProps;for(ht in tt)J$1.call(tt,ht)&&!L$3.hasOwnProperty(ht)&&(nt[ht]=tt[ht]===void 0&&pt!==void 0?pt[ht]:tt[ht])}var ht=arguments.length-2;if(ht===1)nt.children=rt;else if(1<ht){pt=Array(ht);for(var mt=0;mt<ht;mt++)pt[mt]=arguments[mt+2];nt.children=pt}return{$$typeof:l$6,type:et.type,key:lt,ref:ut,props:nt,_owner:dt}};react_production_min.createContext=function(et){return et={$$typeof:u$6,_currentValue:et,_currentValue2:et,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},et.Provider={$$typeof:t$5,_context:et},et.Consumer=et};react_production_min.createElement=M$4;react_production_min.createFactory=function(et){var tt=M$4.bind(null,et);return tt.type=et,tt};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(et){return{$$typeof:v$9,render:et}};react_production_min.isValidElement=O$3;react_production_min.lazy=function(et){return{$$typeof:y$6,_payload:{_status:-1,_result:et},_init:T$3}};react_production_min.memo=function(et,tt){return{$$typeof:x$5,type:et,compare:tt===void 0?null:tt}};react_production_min.startTransition=function(et){var tt=V$2.transition;V$2.transition={};try{et()}finally{V$2.transition=tt}};react_production_min.unstable_act=X$2;react_production_min.useCallback=function(et,tt){return U$2.current.useCallback(et,tt)};react_production_min.useContext=function(et){return U$2.current.useContext(et)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(et){return U$2.current.useDeferredValue(et)};react_production_min.useEffect=function(et,tt){return U$2.current.useEffect(et,tt)};react_production_min.useId=function(){return U$2.current.useId()};react_production_min.useImperativeHandle=function(et,tt,rt){return U$2.current.useImperativeHandle(et,tt,rt)};react_production_min.useInsertionEffect=function(et,tt){return U$2.current.useInsertionEffect(et,tt)};react_production_min.useLayoutEffect=function(et,tt){return U$2.current.useLayoutEffect(et,tt)};react_production_min.useMemo=function(et,tt){return U$2.current.useMemo(et,tt)};react_production_min.useReducer=function(et,tt,rt){return U$2.current.useReducer(et,tt,rt)};react_production_min.useRef=function(et){return U$2.current.useRef(et)};react_production_min.useState=function(et){return U$2.current.useState(et)};react_production_min.useSyncExternalStore=function(et,tt,rt){return U$2.current.useSyncExternalStore(et,tt,rt)};react_production_min.useTransition=function(){return U$2.current.useTransition()};react_production_min.version="18.3.1";react.exports=react_production_min;var reactExports=react.exports;const React$4=getDefaultExportFromCjs$1(reactExports),ReactOriginal=_mergeNamespaces({__proto__:null,default:React$4},[reactExports]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var f$7=reactExports,k$6=Symbol.for("react.element"),l$5=Symbol.for("react.fragment"),m$8=Object.prototype.hasOwnProperty,n$6=f$7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$8={key:!0,ref:!0,__self:!0,__source:!0};function q$7(et,tt,rt){var nt,lt={},ut=null,dt=null;rt!==void 0&&(ut=""+rt),tt.key!==void 0&&(ut=""+tt.key),tt.ref!==void 0&&(dt=tt.ref);for(nt in tt)m$8.call(tt,nt)&&!p$8.hasOwnProperty(nt)&&(lt[nt]=tt[nt]);if(et&&et.defaultProps)for(nt in tt=et.defaultProps,tt)lt[nt]===void 0&&(lt[nt]=tt[nt]);return{$$typeof:k$6,type:et,key:ut,ref:dt,props:lt,_owner:n$6.current}}reactJsxRuntime_production_min.Fragment=l$5;reactJsxRuntime_production_min.jsx=q$7;reactJsxRuntime_production_min.jsxs=q$7;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,runtime={exports:{}};(function(et){var tt=function(rt){var nt=Object.prototype,lt=nt.hasOwnProperty,ut=Object.defineProperty||function(Ht,Gt,Zt){Ht[Gt]=Zt.value},dt,pt=typeof Symbol=="function"?Symbol:{},ht=pt.iterator||"@@iterator",mt=pt.asyncIterator||"@@asyncIterator",xt=pt.toStringTag||"@@toStringTag";function Mt(Ht,Gt,Zt){return Object.defineProperty(Ht,Gt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}),Ht[Gt]}try{Mt({},"")}catch{Mt=function(Gt,Zt,Xt){return Gt[Zt]=Xt}}function vt(Ht,Gt,Zt,Xt){var er=Gt&&Gt.prototype instanceof It?Gt:It,nr=Object.create(er.prototype),or=new Wt(Xt||[]);return ut(nr,"_invoke",{value:Bt(Ht,Zt,or)}),nr}rt.wrap=vt;function Ot(Ht,Gt,Zt){try{return{type:"normal",arg:Ht.call(Gt,Zt)}}catch(Xt){return{type:"throw",arg:Xt}}}var At="suspendedStart",Rt="suspendedYield",zt="executing",Tt="completed",Ct={};function It(){}function Dt(){}function kt(){}var qt={};Mt(qt,ht,function(){return this});var Nt=Object.getPrototypeOf,Yt=Nt&&Nt(Nt(Ut([])));Yt&&Yt!==nt&&lt.call(Yt,ht)&&(qt=Yt);var Kt=kt.prototype=It.prototype=Object.create(qt);Dt.prototype=kt,ut(Kt,"constructor",{value:kt,configurable:!0}),ut(kt,"constructor",{value:Dt,configurable:!0}),Dt.displayName=Mt(kt,xt,"GeneratorFunction");function Jt(Ht){["next","throw","return"].forEach(function(Gt){Mt(Ht,Gt,function(Zt){return this._invoke(Gt,Zt)})})}rt.isGeneratorFunction=function(Ht){var Gt=typeof Ht=="function"&&Ht.constructor;return Gt?Gt===Dt||(Gt.displayName||Gt.name)==="GeneratorFunction":!1},rt.mark=function(Ht){return Object.setPrototypeOf?Object.setPrototypeOf(Ht,kt):(Ht.__proto__=kt,Mt(Ht,xt,"GeneratorFunction")),Ht.prototype=Object.create(Kt),Ht},rt.awrap=function(Ht){return{__await:Ht}};function Qt(Ht,Gt){function Zt(nr,or,rr,cr){var ir=Ot(Ht[nr],Ht,or);if(ir.type==="throw")cr(ir.arg);else{var dr=ir.arg,gr=dr.value;return gr&&typeof gr=="object"&&lt.call(gr,"__await")?Gt.resolve(gr.__await).then(function(br){Zt("next",br,rr,cr)},function(br){Zt("throw",br,rr,cr)}):Gt.resolve(gr).then(function(br){dr.value=br,rr(dr)},function(br){return Zt("throw",br,rr,cr)})}}var Xt;function er(nr,or){function rr(){return new Gt(function(cr,ir){Zt(nr,or,cr,ir)})}return Xt=Xt?Xt.then(rr,rr):rr()}ut(this,"_invoke",{value:er})}Jt(Qt.prototype),Mt(Qt.prototype,mt,function(){return this}),rt.AsyncIterator=Qt,rt.async=function(Ht,Gt,Zt,Xt,er){er===void 0&&(er=Promise);var nr=new Qt(vt(Ht,Gt,Zt,Xt),er);return rt.isGeneratorFunction(Gt)?nr:nr.next().then(function(or){return or.done?or.value:nr.next()})};function Bt(Ht,Gt,Zt){var Xt=At;return function(nr,or){if(Xt===zt)throw new Error("Generator is already running");if(Xt===Tt){if(nr==="throw")throw or;return Vt()}for(Zt.method=nr,Zt.arg=or;;){var rr=Zt.delegate;if(rr){var cr=Ft(rr,Zt);if(cr){if(cr===Ct)continue;return cr}}if(Zt.method==="next")Zt.sent=Zt._sent=Zt.arg;else if(Zt.method==="throw"){if(Xt===At)throw Xt=Tt,Zt.arg;Zt.dispatchException(Zt.arg)}else Zt.method==="return"&&Zt.abrupt("return",Zt.arg);Xt=zt;var ir=Ot(Ht,Gt,Zt);if(ir.type==="normal"){if(Xt=Zt.done?Tt:Rt,ir.arg===Ct)continue;return{value:ir.arg,done:Zt.done}}else ir.type==="throw"&&(Xt=Tt,Zt.method="throw",Zt.arg=ir.arg)}}}function Ft(Ht,Gt){var Zt=Gt.method,Xt=Ht.iterator[Zt];if(Xt===dt)return Gt.delegate=null,Zt==="throw"&&Ht.iterator.return&&(Gt.method="return",Gt.arg=dt,Ft(Ht,Gt),Gt.method==="throw")||Zt!=="return"&&(Gt.method="throw",Gt.arg=new TypeError("The iterator does not provide a '"+Zt+"' method")),Ct;var er=Ot(Xt,Ht.iterator,Gt.arg);if(er.type==="throw")return Gt.method="throw",Gt.arg=er.arg,Gt.delegate=null,Ct;var nr=er.arg;if(!nr)return Gt.method="throw",Gt.arg=new TypeError("iterator result is not an object"),Gt.delegate=null,Ct;if(nr.done)Gt[Ht.resultName]=nr.value,Gt.next=Ht.nextLoc,Gt.method!=="return"&&(Gt.method="next",Gt.arg=dt);else return nr;return Gt.delegate=null,Ct}Jt(Kt),Mt(Kt,xt,"Generator"),Mt(Kt,ht,function(){return this}),Mt(Kt,"toString",function(){return"[object Generator]"});function $t(Ht){var Gt={tryLoc:Ht[0]};1 in Ht&&(Gt.catchLoc=Ht[1]),2 in Ht&&(Gt.finallyLoc=Ht[2],Gt.afterLoc=Ht[3]),this.tryEntries.push(Gt)}function jt(Ht){var Gt=Ht.completion||{};Gt.type="normal",delete Gt.arg,Ht.completion=Gt}function Wt(Ht){this.tryEntries=[{tryLoc:"root"}],Ht.forEach($t,this),this.reset(!0)}rt.keys=function(Ht){var Gt=Object(Ht),Zt=[];for(var Xt in Gt)Zt.push(Xt);return Zt.reverse(),function er(){for(;Zt.length;){var nr=Zt.pop();if(nr in Gt)return er.value=nr,er.done=!1,er}return er.done=!0,er}};function Ut(Ht){if(Ht!=null){var Gt=Ht[ht];if(Gt)return Gt.call(Ht);if(typeof Ht.next=="function")return Ht;if(!isNaN(Ht.length)){var Zt=-1,Xt=function er(){for(;++Zt<Ht.length;)if(lt.call(Ht,Zt))return er.value=Ht[Zt],er.done=!1,er;return er.value=dt,er.done=!0,er};return Xt.next=Xt}}throw new TypeError(typeof Ht+" is not iterable")}rt.values=Ut;function Vt(){return{value:dt,done:!0}}return Wt.prototype={constructor:Wt,reset:function(Ht){if(this.prev=0,this.next=0,this.sent=this._sent=dt,this.done=!1,this.delegate=null,this.method="next",this.arg=dt,this.tryEntries.forEach(jt),!Ht)for(var Gt in this)Gt.charAt(0)==="t"&&lt.call(this,Gt)&&!isNaN(+Gt.slice(1))&&(this[Gt]=dt)},stop:function(){this.done=!0;var Ht=this.tryEntries[0],Gt=Ht.completion;if(Gt.type==="throw")throw Gt.arg;return this.rval},dispatchException:function(Ht){if(this.done)throw Ht;var Gt=this;function Zt(cr,ir){return nr.type="throw",nr.arg=Ht,Gt.next=cr,ir&&(Gt.method="next",Gt.arg=dt),!!ir}for(var Xt=this.tryEntries.length-1;Xt>=0;--Xt){var er=this.tryEntries[Xt],nr=er.completion;if(er.tryLoc==="root")return Zt("end");if(er.tryLoc<=this.prev){var or=lt.call(er,"catchLoc"),rr=lt.call(er,"finallyLoc");if(or&&rr){if(this.prev<er.catchLoc)return Zt(er.catchLoc,!0);if(this.prev<er.finallyLoc)return Zt(er.finallyLoc)}else if(or){if(this.prev<er.catchLoc)return Zt(er.catchLoc,!0)}else if(rr){if(this.prev<er.finallyLoc)return Zt(er.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ht,Gt){for(var Zt=this.tryEntries.length-1;Zt>=0;--Zt){var Xt=this.tryEntries[Zt];if(Xt.tryLoc<=this.prev&&lt.call(Xt,"finallyLoc")&&this.prev<Xt.finallyLoc){var er=Xt;break}}er&&(Ht==="break"||Ht==="continue")&&er.tryLoc<=Gt&&Gt<=er.finallyLoc&&(er=null);var nr=er?er.completion:{};return nr.type=Ht,nr.arg=Gt,er?(this.method="next",this.next=er.finallyLoc,Ct):this.complete(nr)},complete:function(Ht,Gt){if(Ht.type==="throw")throw Ht.arg;return Ht.type==="break"||Ht.type==="continue"?this.next=Ht.arg:Ht.type==="return"?(this.rval=this.arg=Ht.arg,this.method="return",this.next="end"):Ht.type==="normal"&&Gt&&(this.next=Gt),Ct},finish:function(Ht){for(var Gt=this.tryEntries.length-1;Gt>=0;--Gt){var Zt=this.tryEntries[Gt];if(Zt.finallyLoc===Ht)return this.complete(Zt.completion,Zt.afterLoc),jt(Zt),Ct}},catch:function(Ht){for(var Gt=this.tryEntries.length-1;Gt>=0;--Gt){var Zt=this.tryEntries[Gt];if(Zt.tryLoc===Ht){var Xt=Zt.completion;if(Xt.type==="throw"){var er=Xt.arg;jt(Zt)}return er}}throw new Error("illegal catch attempt")},delegateYield:function(Ht,Gt,Zt){return this.delegate={iterator:Ut(Ht),resultName:Gt,nextLoc:Zt},this.method==="next"&&(this.arg=dt),Ct}},rt}(et.exports);try{regeneratorRuntime=tt}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=tt:Function("r","regeneratorRuntime = r")(tt)}})(runtime);var reactDom$1={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(et){function tt(Vt,Ht){var Gt=Vt.length;Vt.push(Ht);e:for(;0<Gt;){var Zt=Gt-1>>>1,Xt=Vt[Zt];if(0<lt(Xt,Ht))Vt[Zt]=Ht,Vt[Gt]=Xt,Gt=Zt;else break e}}function rt(Vt){return Vt.length===0?null:Vt[0]}function nt(Vt){if(Vt.length===0)return null;var Ht=Vt[0],Gt=Vt.pop();if(Gt!==Ht){Vt[0]=Gt;e:for(var Zt=0,Xt=Vt.length,er=Xt>>>1;Zt<er;){var nr=2*(Zt+1)-1,or=Vt[nr],rr=nr+1,cr=Vt[rr];if(0>lt(or,Gt))rr<Xt&&0>lt(cr,or)?(Vt[Zt]=cr,Vt[rr]=Gt,Zt=rr):(Vt[Zt]=or,Vt[nr]=Gt,Zt=nr);else if(rr<Xt&&0>lt(cr,Gt))Vt[Zt]=cr,Vt[rr]=Gt,Zt=rr;else break e}}return Ht}function lt(Vt,Ht){var Gt=Vt.sortIndex-Ht.sortIndex;return Gt!==0?Gt:Vt.id-Ht.id}if(typeof performance=="object"&&typeof performance.now=="function"){var ut=performance;et.unstable_now=function(){return ut.now()}}else{var dt=Date,pt=dt.now();et.unstable_now=function(){return dt.now()-pt}}var ht=[],mt=[],xt=1,Mt=null,vt=3,Ot=!1,At=!1,Rt=!1,zt=typeof setTimeout=="function"?setTimeout:null,Tt=typeof clearTimeout=="function"?clearTimeout:null,Ct=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function It(Vt){for(var Ht=rt(mt);Ht!==null;){if(Ht.callback===null)nt(mt);else if(Ht.startTime<=Vt)nt(mt),Ht.sortIndex=Ht.expirationTime,tt(ht,Ht);else break;Ht=rt(mt)}}function Dt(Vt){if(Rt=!1,It(Vt),!At)if(rt(ht)!==null)At=!0,Wt(kt);else{var Ht=rt(mt);Ht!==null&&Ut(Dt,Ht.startTime-Vt)}}function kt(Vt,Ht){At=!1,Rt&&(Rt=!1,Tt(Yt),Yt=-1),Ot=!0;var Gt=vt;try{for(It(Ht),Mt=rt(ht);Mt!==null&&(!(Mt.expirationTime>Ht)||Vt&&!Qt());){var Zt=Mt.callback;if(typeof Zt=="function"){Mt.callback=null,vt=Mt.priorityLevel;var Xt=Zt(Mt.expirationTime<=Ht);Ht=et.unstable_now(),typeof Xt=="function"?Mt.callback=Xt:Mt===rt(ht)&&nt(ht),It(Ht)}else nt(ht);Mt=rt(ht)}if(Mt!==null)var er=!0;else{var nr=rt(mt);nr!==null&&Ut(Dt,nr.startTime-Ht),er=!1}return er}finally{Mt=null,vt=Gt,Ot=!1}}var qt=!1,Nt=null,Yt=-1,Kt=5,Jt=-1;function Qt(){return!(et.unstable_now()-Jt<Kt)}function Bt(){if(Nt!==null){var Vt=et.unstable_now();Jt=Vt;var Ht=!0;try{Ht=Nt(!0,Vt)}finally{Ht?Ft():(qt=!1,Nt=null)}}else qt=!1}var Ft;if(typeof Ct=="function")Ft=function(){Ct(Bt)};else if(typeof MessageChannel<"u"){var $t=new MessageChannel,jt=$t.port2;$t.port1.onmessage=Bt,Ft=function(){jt.postMessage(null)}}else Ft=function(){zt(Bt,0)};function Wt(Vt){Nt=Vt,qt||(qt=!0,Ft())}function Ut(Vt,Ht){Yt=zt(function(){Vt(et.unstable_now())},Ht)}et.unstable_IdlePriority=5,et.unstable_ImmediatePriority=1,et.unstable_LowPriority=4,et.unstable_NormalPriority=3,et.unstable_Profiling=null,et.unstable_UserBlockingPriority=2,et.unstable_cancelCallback=function(Vt){Vt.callback=null},et.unstable_continueExecution=function(){At||Ot||(At=!0,Wt(kt))},et.unstable_forceFrameRate=function(Vt){0>Vt||125<Vt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Kt=0<Vt?Math.floor(1e3/Vt):5},et.unstable_getCurrentPriorityLevel=function(){return vt},et.unstable_getFirstCallbackNode=function(){return rt(ht)},et.unstable_next=function(Vt){switch(vt){case 1:case 2:case 3:var Ht=3;break;default:Ht=vt}var Gt=vt;vt=Ht;try{return Vt()}finally{vt=Gt}},et.unstable_pauseExecution=function(){},et.unstable_requestPaint=function(){},et.unstable_runWithPriority=function(Vt,Ht){switch(Vt){case 1:case 2:case 3:case 4:case 5:break;default:Vt=3}var Gt=vt;vt=Vt;try{return Ht()}finally{vt=Gt}},et.unstable_scheduleCallback=function(Vt,Ht,Gt){var Zt=et.unstable_now();switch(typeof Gt=="object"&&Gt!==null?(Gt=Gt.delay,Gt=typeof Gt=="number"&&0<Gt?Zt+Gt:Zt):Gt=Zt,Vt){case 1:var Xt=-1;break;case 2:Xt=250;break;case 5:Xt=1073741823;break;case 4:Xt=1e4;break;default:Xt=5e3}return Xt=Gt+Xt,Vt={id:xt++,callback:Ht,priorityLevel:Vt,startTime:Gt,expirationTime:Xt,sortIndex:-1},Gt>Zt?(Vt.sortIndex=Gt,tt(mt,Vt),rt(ht)===null&&Vt===rt(mt)&&(Rt?(Tt(Yt),Yt=-1):Rt=!0,Ut(Dt,Gt-Zt))):(Vt.sortIndex=Xt,tt(ht,Vt),At||Ot||(At=!0,Wt(kt))),Vt},et.unstable_shouldYield=Qt,et.unstable_wrapCallback=function(Vt){var Ht=vt;return function(){var Gt=vt;vt=Ht;try{return Vt.apply(this,arguments)}finally{vt=Gt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var aa=reactExports,ca=schedulerExports;function p$7(et){for(var tt="https://reactjs.org/docs/error-decoder.html?invariant="+et,rt=1;rt<arguments.length;rt++)tt+="&args[]="+encodeURIComponent(arguments[rt]);return"Minified React error #"+et+"; visit "+tt+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(et,tt){ha(et,tt),ha(et+"Capture",tt)}function ha(et,tt){for(ea[et]=tt,et=0;et<tt.length;et++)da.add(tt[et])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la={},ma={};function oa(et){return ja.call(ma,et)?!0:ja.call(la,et)?!1:ka.test(et)?ma[et]=!0:(la[et]=!0,!1)}function pa(et,tt,rt,nt){if(rt!==null&&rt.type===0)return!1;switch(typeof tt){case"function":case"symbol":return!0;case"boolean":return nt?!1:rt!==null?!rt.acceptsBooleans:(et=et.toLowerCase().slice(0,5),et!=="data-"&&et!=="aria-");default:return!1}}function qa(et,tt,rt,nt){if(tt===null||typeof tt>"u"||pa(et,tt,rt,nt))return!0;if(nt)return!1;if(rt!==null)switch(rt.type){case 3:return!tt;case 4:return tt===!1;case 5:return isNaN(tt);case 6:return isNaN(tt)||1>tt}return!1}function v$8(et,tt,rt,nt,lt,ut,dt){this.acceptsBooleans=tt===2||tt===3||tt===4,this.attributeName=nt,this.attributeNamespace=lt,this.mustUseProperty=rt,this.propertyName=et,this.type=tt,this.sanitizeURL=ut,this.removeEmptyString=dt}var z$5={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(et){z$5[et]=new v$8(et,0,!1,et,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(et){var tt=et[0];z$5[tt]=new v$8(tt,1,!1,et[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(et){z$5[et]=new v$8(et,2,!1,et.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(et){z$5[et]=new v$8(et,2,!1,et,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(et){z$5[et]=new v$8(et,3,!1,et.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(et){z$5[et]=new v$8(et,3,!0,et,null,!1,!1)});["capture","download"].forEach(function(et){z$5[et]=new v$8(et,4,!1,et,null,!1,!1)});["cols","rows","size","span"].forEach(function(et){z$5[et]=new v$8(et,6,!1,et,null,!1,!1)});["rowSpan","start"].forEach(function(et){z$5[et]=new v$8(et,5,!1,et.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(et){return et[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(et){var tt=et.replace(ra,sa);z$5[tt]=new v$8(tt,1,!1,et,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(et){var tt=et.replace(ra,sa);z$5[tt]=new v$8(tt,1,!1,et,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(et){var tt=et.replace(ra,sa);z$5[tt]=new v$8(tt,1,!1,et,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(et){z$5[et]=new v$8(et,1,!1,et.toLowerCase(),null,!1,!1)});z$5.xlinkHref=new v$8("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(et){z$5[et]=new v$8(et,1,!1,et.toLowerCase(),null,!0,!0)});function ta(et,tt,rt,nt){var lt=z$5.hasOwnProperty(tt)?z$5[tt]:null;(lt!==null?lt.type!==0:nt||!(2<tt.length)||tt[0]!=="o"&&tt[0]!=="O"||tt[1]!=="n"&&tt[1]!=="N")&&(qa(tt,rt,lt,nt)&&(rt=null),nt||lt===null?oa(tt)&&(rt===null?et.removeAttribute(tt):et.setAttribute(tt,""+rt)):lt.mustUseProperty?et[lt.propertyName]=rt===null?lt.type===3?!1:"":rt:(tt=lt.attributeName,nt=lt.attributeNamespace,rt===null?et.removeAttribute(tt):(lt=lt.type,rt=lt===3||lt===4&&rt===!0?"":""+rt,nt?et.setAttributeNS(nt,tt,rt):et.setAttribute(tt,rt))))}var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(et){return et===null||typeof et!="object"?null:(et=Ja&&et[Ja]||et["@@iterator"],typeof et=="function"?et:null)}var A$5=Object.assign,La;function Ma(et){if(La===void 0)try{throw Error()}catch(rt){var tt=rt.stack.trim().match(/\n( *(at )?)/);La=tt&&tt[1]||""}return`
`+La+et}var Na=!1;function Oa(et,tt){if(!et||Na)return"";Na=!0;var rt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(tt)if(tt=function(){throw Error()},Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(mt){var nt=mt}Reflect.construct(et,[],tt)}else{try{tt.call()}catch(mt){nt=mt}et.call(tt.prototype)}else{try{throw Error()}catch(mt){nt=mt}et()}}catch(mt){if(mt&&nt&&typeof mt.stack=="string"){for(var lt=mt.stack.split(`
`),ut=nt.stack.split(`
`),dt=lt.length-1,pt=ut.length-1;1<=dt&&0<=pt&&lt[dt]!==ut[pt];)pt--;for(;1<=dt&&0<=pt;dt--,pt--)if(lt[dt]!==ut[pt]){if(dt!==1||pt!==1)do if(dt--,pt--,0>pt||lt[dt]!==ut[pt]){var ht=`
`+lt[dt].replace(" at new "," at ");return et.displayName&&ht.includes("<anonymous>")&&(ht=ht.replace("<anonymous>",et.displayName)),ht}while(1<=dt&&0<=pt);break}}}finally{Na=!1,Error.prepareStackTrace=rt}return(et=et?et.displayName||et.name:"")?Ma(et):""}function Pa(et){switch(et.tag){case 5:return Ma(et.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return et=Oa(et.type,!1),et;case 11:return et=Oa(et.type.render,!1),et;case 1:return et=Oa(et.type,!0),et;default:return""}}function Qa(et){if(et==null)return null;if(typeof et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et;switch(et){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof et=="object")switch(et.$$typeof){case Ca:return(et.displayName||"Context")+".Consumer";case Ba:return(et._context.displayName||"Context")+".Provider";case Da:var tt=et.render;return et=et.displayName,et||(et=tt.displayName||tt.name||"",et=et!==""?"ForwardRef("+et+")":"ForwardRef"),et;case Ga:return tt=et.displayName||null,tt!==null?tt:Qa(et.type)||"Memo";case Ha:tt=et._payload,et=et._init;try{return Qa(et(tt))}catch{}}return null}function Ra(et){var tt=et.type;switch(et.tag){case 24:return"Cache";case 9:return(tt.displayName||"Context")+".Consumer";case 10:return(tt._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return et=tt.render,et=et.displayName||et.name||"",tt.displayName||(et!==""?"ForwardRef("+et+")":"ForwardRef");case 7:return"Fragment";case 5:return tt;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(tt);case 8:return tt===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof tt=="function")return tt.displayName||tt.name||null;if(typeof tt=="string")return tt}return null}function Sa(et){switch(typeof et){case"boolean":case"number":case"string":case"undefined":return et;case"object":return et;default:return""}}function Ta(et){var tt=et.type;return(et=et.nodeName)&&et.toLowerCase()==="input"&&(tt==="checkbox"||tt==="radio")}function Ua(et){var tt=Ta(et)?"checked":"value",rt=Object.getOwnPropertyDescriptor(et.constructor.prototype,tt),nt=""+et[tt];if(!et.hasOwnProperty(tt)&&typeof rt<"u"&&typeof rt.get=="function"&&typeof rt.set=="function"){var lt=rt.get,ut=rt.set;return Object.defineProperty(et,tt,{configurable:!0,get:function(){return lt.call(this)},set:function(dt){nt=""+dt,ut.call(this,dt)}}),Object.defineProperty(et,tt,{enumerable:rt.enumerable}),{getValue:function(){return nt},setValue:function(dt){nt=""+dt},stopTracking:function(){et._valueTracker=null,delete et[tt]}}}}function Va(et){et._valueTracker||(et._valueTracker=Ua(et))}function Wa(et){if(!et)return!1;var tt=et._valueTracker;if(!tt)return!0;var rt=tt.getValue(),nt="";return et&&(nt=Ta(et)?et.checked?"true":"false":et.value),et=nt,et!==rt?(tt.setValue(et),!0):!1}function Xa(et){if(et=et||(typeof document<"u"?document:void 0),typeof et>"u")return null;try{return et.activeElement||et.body}catch{return et.body}}function Ya(et,tt){var rt=tt.checked;return A$5({},tt,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:rt??et._wrapperState.initialChecked})}function Za(et,tt){var rt=tt.defaultValue==null?"":tt.defaultValue,nt=tt.checked!=null?tt.checked:tt.defaultChecked;rt=Sa(tt.value!=null?tt.value:rt),et._wrapperState={initialChecked:nt,initialValue:rt,controlled:tt.type==="checkbox"||tt.type==="radio"?tt.checked!=null:tt.value!=null}}function ab(et,tt){tt=tt.checked,tt!=null&&ta(et,"checked",tt,!1)}function bb(et,tt){ab(et,tt);var rt=Sa(tt.value),nt=tt.type;if(rt!=null)nt==="number"?(rt===0&&et.value===""||et.value!=rt)&&(et.value=""+rt):et.value!==""+rt&&(et.value=""+rt);else if(nt==="submit"||nt==="reset"){et.removeAttribute("value");return}tt.hasOwnProperty("value")?cb(et,tt.type,rt):tt.hasOwnProperty("defaultValue")&&cb(et,tt.type,Sa(tt.defaultValue)),tt.checked==null&&tt.defaultChecked!=null&&(et.defaultChecked=!!tt.defaultChecked)}function db(et,tt,rt){if(tt.hasOwnProperty("value")||tt.hasOwnProperty("defaultValue")){var nt=tt.type;if(!(nt!=="submit"&&nt!=="reset"||tt.value!==void 0&&tt.value!==null))return;tt=""+et._wrapperState.initialValue,rt||tt===et.value||(et.value=tt),et.defaultValue=tt}rt=et.name,rt!==""&&(et.name=""),et.defaultChecked=!!et._wrapperState.initialChecked,rt!==""&&(et.name=rt)}function cb(et,tt,rt){(tt!=="number"||Xa(et.ownerDocument)!==et)&&(rt==null?et.defaultValue=""+et._wrapperState.initialValue:et.defaultValue!==""+rt&&(et.defaultValue=""+rt))}var eb=Array.isArray;function fb(et,tt,rt,nt){if(et=et.options,tt){tt={};for(var lt=0;lt<rt.length;lt++)tt["$"+rt[lt]]=!0;for(rt=0;rt<et.length;rt++)lt=tt.hasOwnProperty("$"+et[rt].value),et[rt].selected!==lt&&(et[rt].selected=lt),lt&&nt&&(et[rt].defaultSelected=!0)}else{for(rt=""+Sa(rt),tt=null,lt=0;lt<et.length;lt++){if(et[lt].value===rt){et[lt].selected=!0,nt&&(et[lt].defaultSelected=!0);return}tt!==null||et[lt].disabled||(tt=et[lt])}tt!==null&&(tt.selected=!0)}}function gb(et,tt){if(tt.dangerouslySetInnerHTML!=null)throw Error(p$7(91));return A$5({},tt,{value:void 0,defaultValue:void 0,children:""+et._wrapperState.initialValue})}function hb(et,tt){var rt=tt.value;if(rt==null){if(rt=tt.children,tt=tt.defaultValue,rt!=null){if(tt!=null)throw Error(p$7(92));if(eb(rt)){if(1<rt.length)throw Error(p$7(93));rt=rt[0]}tt=rt}tt==null&&(tt=""),rt=tt}et._wrapperState={initialValue:Sa(rt)}}function ib(et,tt){var rt=Sa(tt.value),nt=Sa(tt.defaultValue);rt!=null&&(rt=""+rt,rt!==et.value&&(et.value=rt),tt.defaultValue==null&&et.defaultValue!==rt&&(et.defaultValue=rt)),nt!=null&&(et.defaultValue=""+nt)}function jb(et){var tt=et.textContent;tt===et._wrapperState.initialValue&&tt!==""&&tt!==null&&(et.value=tt)}function kb(et){switch(et){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 lb(et,tt){return et==null||et==="http://www.w3.org/1999/xhtml"?kb(tt):et==="http://www.w3.org/2000/svg"&&tt==="foreignObject"?"http://www.w3.org/1999/xhtml":et}var mb,nb=function(et){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(tt,rt,nt,lt){MSApp.execUnsafeLocalFunction(function(){return et(tt,rt,nt,lt)})}:et}(function(et,tt){if(et.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in et)et.innerHTML=tt;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+tt.valueOf().toString()+"</svg>",tt=mb.firstChild;et.firstChild;)et.removeChild(et.firstChild);for(;tt.firstChild;)et.appendChild(tt.firstChild)}});function ob(et,tt){if(tt){var rt=et.firstChild;if(rt&&rt===et.lastChild&&rt.nodeType===3){rt.nodeValue=tt;return}}et.textContent=tt}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(et){qb.forEach(function(tt){tt=tt+et.charAt(0).toUpperCase()+et.substring(1),pb[tt]=pb[et]})});function rb(et,tt,rt){return tt==null||typeof tt=="boolean"||tt===""?"":rt||typeof tt!="number"||tt===0||pb.hasOwnProperty(et)&&pb[et]?(""+tt).trim():tt+"px"}function sb(et,tt){et=et.style;for(var rt in tt)if(tt.hasOwnProperty(rt)){var nt=rt.indexOf("--")===0,lt=rb(rt,tt[rt],nt);rt==="float"&&(rt="cssFloat"),nt?et.setProperty(rt,lt):et[rt]=lt}}var tb=A$5({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 ub(et,tt){if(tt){if(tb[et]&&(tt.children!=null||tt.dangerouslySetInnerHTML!=null))throw Error(p$7(137,et));if(tt.dangerouslySetInnerHTML!=null){if(tt.children!=null)throw Error(p$7(60));if(typeof tt.dangerouslySetInnerHTML!="object"||!("__html"in tt.dangerouslySetInnerHTML))throw Error(p$7(61))}if(tt.style!=null&&typeof tt.style!="object")throw Error(p$7(62))}}function vb(et,tt){if(et.indexOf("-")===-1)return typeof tt.is=="string";switch(et){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 wb=null;function xb(et){return et=et.target||et.srcElement||window,et.correspondingUseElement&&(et=et.correspondingUseElement),et.nodeType===3?et.parentNode:et}var yb=null,zb=null,Ab=null;function Bb(et){if(et=Cb(et)){if(typeof yb!="function")throw Error(p$7(280));var tt=et.stateNode;tt&&(tt=Db(tt),yb(et.stateNode,et.type,tt))}}function Eb(et){zb?Ab?Ab.push(et):Ab=[et]:zb=et}function Fb(){if(zb){var et=zb,tt=Ab;if(Ab=zb=null,Bb(et),tt)for(et=0;et<tt.length;et++)Bb(tt[et])}}function Gb(et,tt){return et(tt)}function Hb(){}var Ib=!1;function Jb(et,tt,rt){if(Ib)return et(tt,rt);Ib=!0;try{return Gb(et,tt,rt)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(et,tt){var rt=et.stateNode;if(rt===null)return null;var nt=Db(rt);if(nt===null)return null;rt=nt[tt];e:switch(tt){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(nt=!nt.disabled)||(et=et.type,nt=!(et==="button"||et==="input"||et==="select"||et==="textarea")),et=!nt;break e;default:et=!1}if(et)return null;if(rt&&typeof rt!="function")throw Error(p$7(231,tt,typeof rt));return rt}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(et,tt,rt,nt,lt,ut,dt,pt,ht){var mt=Array.prototype.slice.call(arguments,3);try{tt.apply(rt,mt)}catch(xt){this.onError(xt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(et){Ob=!0,Pb=et}};function Tb(et,tt,rt,nt,lt,ut,dt,pt,ht){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(et,tt,rt,nt,lt,ut,dt,pt,ht){if(Tb.apply(this,arguments),Ob){if(Ob){var mt=Pb;Ob=!1,Pb=null}else throw Error(p$7(198));Qb||(Qb=!0,Rb=mt)}}function Vb(et){var tt=et,rt=et;if(et.alternate)for(;tt.return;)tt=tt.return;else{et=tt;do tt=et,tt.flags&4098&&(rt=tt.return),et=tt.return;while(et)}return tt.tag===3?rt:null}function Wb(et){if(et.tag===13){var tt=et.memoizedState;if(tt===null&&(et=et.alternate,et!==null&&(tt=et.memoizedState)),tt!==null)return tt.dehydrated}return null}function Xb(et){if(Vb(et)!==et)throw Error(p$7(188))}function Yb(et){var tt=et.alternate;if(!tt){if(tt=Vb(et),tt===null)throw Error(p$7(188));return tt!==et?null:et}for(var rt=et,nt=tt;;){var lt=rt.return;if(lt===null)break;var ut=lt.alternate;if(ut===null){if(nt=lt.return,nt!==null){rt=nt;continue}break}if(lt.child===ut.child){for(ut=lt.child;ut;){if(ut===rt)return Xb(lt),et;if(ut===nt)return Xb(lt),tt;ut=ut.sibling}throw Error(p$7(188))}if(rt.return!==nt.return)rt=lt,nt=ut;else{for(var dt=!1,pt=lt.child;pt;){if(pt===rt){dt=!0,rt=lt,nt=ut;break}if(pt===nt){dt=!0,nt=lt,rt=ut;break}pt=pt.sibling}if(!dt){for(pt=ut.child;pt;){if(pt===rt){dt=!0,rt=ut,nt=lt;break}if(pt===nt){dt=!0,nt=ut,rt=lt;break}pt=pt.sibling}if(!dt)throw Error(p$7(189))}}if(rt.alternate!==nt)throw Error(p$7(190))}if(rt.tag!==3)throw Error(p$7(188));return rt.stateNode.current===rt?et:tt}function Zb(et){return et=Yb(et),et!==null?$b(et):null}function $b(et){if(et.tag===5||et.tag===6)return et;for(et=et.child;et!==null;){var tt=$b(et);if(tt!==null)return tt;et=et.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B$4=ca.unstable_now,ec$1=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(et){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,et,void 0,(et.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(et){return et>>>=0,et===0?32:31-(pc(et)/qc|0)|0}var rc=64,sc=4194304;function tc(et){switch(et&-et){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 et&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return et&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return et}}function uc(et,tt){var rt=et.pendingLanes;if(rt===0)return 0;var nt=0,lt=et.suspendedLanes,ut=et.pingedLanes,dt=rt&268435455;if(dt!==0){var pt=dt&~lt;pt!==0?nt=tc(pt):(ut&=dt,ut!==0&&(nt=tc(ut)))}else dt=rt&~lt,dt!==0?nt=tc(dt):ut!==0&&(nt=tc(ut));if(nt===0)return 0;if(tt!==0&&tt!==nt&&!(tt&lt)&&(lt=nt&-nt,ut=tt&-tt,lt>=ut||lt===16&&(ut&4194240)!==0))return tt;if(nt&4&&(nt|=rt&16),tt=et.entangledLanes,tt!==0)for(et=et.entanglements,tt&=nt;0<tt;)rt=31-oc(tt),lt=1<<rt,nt|=et[rt],tt&=~lt;return nt}function vc(et,tt){switch(et){case 1:case 2:case 4:return tt+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 tt+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(et,tt){for(var rt=et.suspendedLanes,nt=et.pingedLanes,lt=et.expirationTimes,ut=et.pendingLanes;0<ut;){var dt=31-oc(ut),pt=1<<dt,ht=lt[dt];ht===-1?(!(pt&rt)||pt&nt)&&(lt[dt]=vc(pt,tt)):ht<=tt&&(et.expiredLanes|=pt),ut&=~pt}}function xc(et){return et=et.pendingLanes&-1073741825,et!==0?et:et&1073741824?1073741824:0}function yc(){var et=rc;return rc<<=1,!(rc&4194240)&&(rc=64),et}function zc(et){for(var tt=[],rt=0;31>rt;rt++)tt.push(et);return tt}function Ac(et,tt,rt){et.pendingLanes|=tt,tt!==536870912&&(et.suspendedLanes=0,et.pingedLanes=0),et=et.eventTimes,tt=31-oc(tt),et[tt]=rt}function Bc(et,tt){var rt=et.pendingLanes&~tt;et.pendingLanes=tt,et.suspendedLanes=0,et.pingedLanes=0,et.expiredLanes&=tt,et.mutableReadLanes&=tt,et.entangledLanes&=tt,tt=et.entanglements;var nt=et.eventTimes;for(et=et.expirationTimes;0<rt;){var lt=31-oc(rt),ut=1<<lt;tt[lt]=0,nt[lt]=-1,et[lt]=-1,rt&=~ut}}function Cc(et,tt){var rt=et.entangledLanes|=tt;for(et=et.entanglements;rt;){var nt=31-oc(rt),lt=1<<nt;lt&tt|et[nt]&tt&&(et[nt]|=tt),rt&=~lt}}var C$3=0;function Dc(et){return et&=-et,1<et?4<et?et&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="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 Sc(et,tt){switch(et){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(tt.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(tt.pointerId)}}function Tc(et,tt,rt,nt,lt,ut){return et===null||et.nativeEvent!==ut?(et={blockedOn:tt,domEventName:rt,eventSystemFlags:nt,nativeEvent:ut,targetContainers:[lt]},tt!==null&&(tt=Cb(tt),tt!==null&&Fc(tt)),et):(et.eventSystemFlags|=nt,tt=et.targetContainers,lt!==null&&tt.indexOf(lt)===-1&&tt.push(lt),et)}function Uc(et,tt,rt,nt,lt){switch(tt){case"focusin":return Lc=Tc(Lc,et,tt,rt,nt,lt),!0;case"dragenter":return Mc=Tc(Mc,et,tt,rt,nt,lt),!0;case"mouseover":return Nc=Tc(Nc,et,tt,rt,nt,lt),!0;case"pointerover":var ut=lt.pointerId;return Oc.set(ut,Tc(Oc.get(ut)||null,et,tt,rt,nt,lt)),!0;case"gotpointercapture":return ut=lt.pointerId,Pc.set(ut,Tc(Pc.get(ut)||null,et,tt,rt,nt,lt)),!0}return!1}function Vc(et){var tt=Wc(et.target);if(tt!==null){var rt=Vb(tt);if(rt!==null){if(tt=rt.tag,tt===13){if(tt=Wb(rt),tt!==null){et.blockedOn=tt,Ic(et.priority,function(){Gc(rt)});return}}else if(tt===3&&rt.stateNode.current.memoizedState.isDehydrated){et.blockedOn=rt.tag===3?rt.stateNode.containerInfo:null;return}}}et.blockedOn=null}function Xc(et){if(et.blockedOn!==null)return!1;for(var tt=et.targetContainers;0<tt.length;){var rt=Yc(et.domEventName,et.eventSystemFlags,tt[0],et.nativeEvent);if(rt===null){rt=et.nativeEvent;var nt=new rt.constructor(rt.type,rt);wb=nt,rt.target.dispatchEvent(nt),wb=null}else return tt=Cb(rt),tt!==null&&Fc(tt),et.blockedOn=rt,!1;tt.shift()}return!0}function Zc(et,tt,rt){Xc(et)&&rt.delete(tt)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(et,tt){et.blockedOn===tt&&(et.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(et){function tt(lt){return ad(lt,et)}if(0<Kc.length){ad(Kc[0],et);for(var rt=1;rt<Kc.length;rt++){var nt=Kc[rt];nt.blockedOn===et&&(nt.blockedOn=null)}}for(Lc!==null&&ad(Lc,et),Mc!==null&&ad(Mc,et),Nc!==null&&ad(Nc,et),Oc.forEach(tt),Pc.forEach(tt),rt=0;rt<Qc.length;rt++)nt=Qc[rt],nt.blockedOn===et&&(nt.blockedOn=null);for(;0<Qc.length&&(rt=Qc[0],rt.blockedOn===null);)Vc(rt),rt.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(et,tt,rt,nt){var lt=C$3,ut=cd.transition;cd.transition=null;try{C$3=1,fd(et,tt,rt,nt)}finally{C$3=lt,cd.transition=ut}}function gd(et,tt,rt,nt){var lt=C$3,ut=cd.transition;cd.transition=null;try{C$3=4,fd(et,tt,rt,nt)}finally{C$3=lt,cd.transition=ut}}function fd(et,tt,rt,nt){if(dd){var lt=Yc(et,tt,rt,nt);if(lt===null)hd(et,tt,nt,id,rt),Sc(et,nt);else if(Uc(lt,et,tt,rt,nt))nt.stopPropagation();else if(Sc(et,nt),tt&4&&-1<Rc.indexOf(et)){for(;lt!==null;){var ut=Cb(lt);if(ut!==null&&Ec(ut),ut=Yc(et,tt,rt,nt),ut===null&&hd(et,tt,nt,id,rt),ut===lt)break;lt=ut}lt!==null&&nt.stopPropagation()}else hd(et,tt,nt,null,rt)}}var id=null;function Yc(et,tt,rt,nt){if(id=null,et=xb(nt),et=Wc(et),et!==null)if(tt=Vb(et),tt===null)et=null;else if(rt=tt.tag,rt===13){if(et=Wb(tt),et!==null)return et;et=null}else if(rt===3){if(tt.stateNode.current.memoizedState.isDehydrated)return tt.tag===3?tt.stateNode.containerInfo:null;et=null}else tt!==et&&(et=null);return id=et,null}function jd(et){switch(et){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(ec$1()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var et,tt=ld,rt=tt.length,nt,lt="value"in kd?kd.value:kd.textContent,ut=lt.length;for(et=0;et<rt&&tt[et]===lt[et];et++);var dt=rt-et;for(nt=1;nt<=dt&&tt[rt-nt]===lt[ut-nt];nt++);return md=lt.slice(et,1<nt?1-nt:void 0)}function od(et){var tt=et.keyCode;return"charCode"in et?(et=et.charCode,et===0&&tt===13&&(et=13)):et=tt,et===10&&(et=13),32<=et||et===13?et:0}function pd(){return!0}function qd(){return!1}function rd(et){function tt(rt,nt,lt,ut,dt){this._reactName=rt,this._targetInst=lt,this.type=nt,this.nativeEvent=ut,this.target=dt,this.currentTarget=null;for(var pt in et)et.hasOwnProperty(pt)&&(rt=et[pt],this[pt]=rt?rt(ut):ut[pt]);return this.isDefaultPrevented=(ut.defaultPrevented!=null?ut.defaultPrevented:ut.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$5(tt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var rt=this.nativeEvent;rt&&(rt.preventDefault?rt.preventDefault():typeof rt.returnValue!="unknown"&&(rt.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var rt=this.nativeEvent;rt&&(rt.stopPropagation?rt.stopPropagation():typeof rt.cancelBubble!="unknown"&&(rt.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),tt}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(et){return et.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$5({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$5({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(et){return et.relatedTarget===void 0?et.fromElement===et.srcElement?et.toElement:et.fromElement:et.relatedTarget},movementX:function(et){return"movementX"in et?et.movementX:(et!==yd&&(yd&&et.type==="mousemove"?(wd=et.screenX-yd.screenX,xd=et.screenY-yd.screenY):xd=wd=0,yd=et),wd)},movementY:function(et){return"movementY"in et?et.movementY:xd}}),Bd=rd(Ad),Cd=A$5({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$5({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$5({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$5({},sd,{clipboardData:function(et){return"clipboardData"in et?et.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$5({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={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"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(et){var tt=this.nativeEvent;return tt.getModifierState?tt.getModifierState(et):(et=Od[et])?!!tt[et]:!1}function zd(){return Pd}var Qd=A$5({},ud,{key:function(et){if(et.key){var tt=Md[et.key]||et.key;if(tt!=="Unidentified")return tt}return et.type==="keypress"?(et=od(et),et===13?"Enter":String.fromCharCode(et)):et.type==="keydown"||et.type==="keyup"?Nd[et.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(et){return et.type==="keypress"?od(et):0},keyCode:function(et){return et.type==="keydown"||et.type==="keyup"?et.keyCode:0},which:function(et){return et.type==="keypress"?od(et):et.type==="keydown"||et.type==="keyup"?et.keyCode:0}}),Rd=rd(Qd),Sd=A$5({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$5({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$5({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$5({},Ad,{deltaX:function(et){return"deltaX"in et?et.deltaX:"wheelDeltaX"in et?-et.wheelDeltaX:0},deltaY:function(et){return"deltaY"in et?et.deltaY:"wheelDeltaY"in et?-et.wheelDeltaY:"wheelDelta"in et?-et.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae$1=ia&&"CompositionEvent"in window,be$2=null;ia&&"documentMode"in document&&(be$2=document.documentMode);var ce$1=ia&&"TextEvent"in window&&!be$2,de$1=ia&&(!ae$1||be$2&&8<be$2&&11>=be$2),ee$1=" ",fe$1=!1;function ge$2(et,tt){switch(et){case"keyup":return $d.indexOf(tt.keyCode)!==-1;case"keydown":return tt.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(et){return et=et.detail,typeof et=="object"&&"data"in et?et.data:null}var ie$1=!1;function je$2(et,tt){switch(et){case"compositionend":return he$1(tt);case"keypress":return tt.which!==32?null:(fe$1=!0,ee$1);case"textInput":return et=tt.data,et===ee$1&&fe$1?null:et;default:return null}}function ke$1(et,tt){if(ie$1)return et==="compositionend"||!ae$1&&ge$2(et,tt)?(et=nd(),md=ld=kd=null,ie$1=!1,et):null;switch(et){case"paste":return null;case"keypress":if(!(tt.ctrlKey||tt.altKey||tt.metaKey)||tt.ctrlKey&&tt.altKey){if(tt.char&&1<tt.char.length)return tt.char;if(tt.which)return String.fromCharCode(tt.which)}return null;case"compositionend":return de$1&&tt.locale!=="ko"?null:tt.data;default:return null}}var le$1={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 me$1(et){var tt=et&&et.nodeName&&et.nodeName.toLowerCase();return tt==="input"?!!le$1[et.type]:tt==="textarea"}function ne$1(et,tt,rt,nt){Eb(nt),tt=oe$1(tt,"onChange"),0<tt.length&&(rt=new td("onChange","change",null,rt,nt),et.push({event:rt,listeners:tt}))}var pe$1=null,qe=null;function re$1(et){se$2(et,0)}function te$1(et){var tt=ue$1(et);if(Wa(tt))return et}function ve$1(et,tt){if(et==="change")return tt}var we$1=!1;if(ia){var xe$2;if(ia){var ye$1="oninput"in document;if(!ye$1){var ze$1=document.createElement("div");ze$1.setAttribute("oninput","return;"),ye$1=typeof ze$1.oninput=="function"}xe$2=ye$1}else xe$2=!1;we$1=xe$2&&(!document.documentMode||9<document.documentMode)}function Ae$2(){pe$1&&(pe$1.detachEvent("onpropertychange",Be$1),qe=pe$1=null)}function Be$1(et){if(et.propertyName==="value"&&te$1(qe)){var tt=[];ne$1(tt,qe,et,xb(et)),Jb(re$1,tt)}}function Ce$1(et,tt,rt){et==="focusin"?(Ae$2(),pe$1=tt,qe=rt,pe$1.attachEvent("onpropertychange",Be$1)):et==="focusout"&&Ae$2()}function De$1(et){if(et==="selectionchange"||et==="keyup"||et==="keydown")return te$1(qe)}function Ee$2(et,tt){if(et==="click")return te$1(tt)}function Fe$1(et,tt){if(et==="input"||et==="change")return te$1(tt)}function Ge$1(et,tt){return et===tt&&(et!==0||1/et===1/tt)||et!==et&&tt!==tt}var He$1=typeof Object.is=="function"?Object.is:Ge$1;function Ie$2(et,tt){if(He$1(et,tt))return!0;if(typeof et!="object"||et===null||typeof tt!="object"||tt===null)return!1;var rt=Object.keys(et),nt=Object.keys(tt);if(rt.length!==nt.length)return!1;for(nt=0;nt<rt.length;nt++){var lt=rt[nt];if(!ja.call(tt,lt)||!He$1(et[lt],tt[lt]))return!1}return!0}function Je(et){for(;et&&et.firstChild;)et=et.firstChild;return et}function Ke(et,tt){var rt=Je(et);et=0;for(var nt;rt;){if(rt.nodeType===3){if(nt=et+rt.textContent.length,et<=tt&&nt>=tt)return{node:rt,offset:tt-et};et=nt}e:{for(;rt;){if(rt.nextSibling){rt=rt.nextSibling;break e}rt=rt.parentNode}rt=void 0}rt=Je(rt)}}function Le$1(et,tt){return et&&tt?et===tt?!0:et&&et.nodeType===3?!1:tt&&tt.nodeType===3?Le$1(et,tt.parentNode):"contains"in et?et.contains(tt):et.compareDocumentPosition?!!(et.compareDocumentPosition(tt)&16):!1:!1}function Me$1(){for(var et=window,tt=Xa();tt instanceof et.HTMLIFrameElement;){try{var rt=typeof tt.contentWindow.location.href=="string"}catch{rt=!1}if(rt)et=tt.contentWindow;else break;tt=Xa(et.document)}return tt}function Ne$1(et){var tt=et&&et.nodeName&&et.nodeName.toLowerCase();return tt&&(tt==="input"&&(et.type==="text"||et.type==="search"||et.type==="tel"||et.type==="url"||et.type==="password")||tt==="textarea"||et.contentEditable==="true")}function Oe$1(et){var tt=Me$1(),rt=et.focusedElem,nt=et.selectionRange;if(tt!==rt&&rt&&rt.ownerDocument&&Le$1(rt.ownerDocument.documentElement,rt)){if(nt!==null&&Ne$1(rt)){if(tt=nt.start,et=nt.end,et===void 0&&(et=tt),"selectionStart"in rt)rt.selectionStart=tt,rt.selectionEnd=Math.min(et,rt.value.length);else if(et=(tt=rt.ownerDocument||document)&&tt.defaultView||window,et.getSelection){et=et.getSelection();var lt=rt.textContent.length,ut=Math.min(nt.start,lt);nt=nt.end===void 0?ut:Math.min(nt.end,lt),!et.extend&&ut>nt&&(lt=nt,nt=ut,ut=lt),lt=Ke(rt,ut);var dt=Ke(rt,nt);lt&&dt&&(et.rangeCount!==1||et.anchorNode!==lt.node||et.anchorOffset!==lt.offset||et.focusNode!==dt.node||et.focusOffset!==dt.offset)&&(tt=tt.createRange(),tt.setStart(lt.node,lt.offset),et.removeAllRanges(),ut>nt?(et.addRange(tt),et.extend(dt.node,dt.offset)):(tt.setEnd(dt.node,dt.offset),et.addRange(tt)))}}for(tt=[],et=rt;et=et.parentNode;)et.nodeType===1&&tt.push({element:et,left:et.scrollLeft,top:et.scrollTop});for(typeof rt.focus=="function"&&rt.focus(),rt=0;rt<tt.length;rt++)et=tt[rt],et.element.scrollLeft=et.left,et.element.scrollTop=et.top}}var Pe$1=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$2=!1;function Ue$1(et,tt,rt){var nt=rt.window===rt?rt.document:rt.nodeType===9?rt:rt.ownerDocument;Te$2||Qe==null||Qe!==Xa(nt)||(nt=Qe,"selectionStart"in nt&&Ne$1(nt)?nt={start:nt.selectionStart,end:nt.selectionEnd}:(nt=(nt.ownerDocument&&nt.ownerDocument.defaultView||window).getSelection(),nt={anchorNode:nt.anchorNode,anchorOffset:nt.anchorOffset,focusNode:nt.focusNode,focusOffset:nt.focusOffset}),Se$1&&Ie$2(Se$1,nt)||(Se$1=nt,nt=oe$1(Re$1,"onSelect"),0<nt.length&&(tt=new td("onSelect","select",null,tt,rt),et.push({event:tt,listeners:nt}),tt.target=Qe)))}function Ve(et,tt){var rt={};return rt[et.toLowerCase()]=tt.toLowerCase(),rt["Webkit"+et]="webkit"+tt,rt["Moz"+et]="moz"+tt,rt}var We$1={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye$1={};ia&&(Ye$1=document.createElement("div").style,"AnimationEvent"in window||(delete We$1.animationend.animation,delete We$1.animationiteration.animation,delete We$1.animationstart.animation),"TransitionEvent"in window||delete We$1.transitionend.transition);function Ze$1(et){if(Xe[et])return Xe[et];if(!We$1[et])return et;var tt=We$1[et],rt;for(rt in tt)if(tt.hasOwnProperty(rt)&&rt in Ye$1)return Xe[et]=tt[rt];return et}var $e$1=Ze$1("animationend"),af=Ze$1("animationiteration"),bf=Ze$1("animationstart"),cf=Ze$1("transitionend"),df=new Map,ef="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 ff(et,tt){df.set(et,tt),fa(tt,[et])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e$1,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="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(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(et,tt,rt){var nt=et.type||"unknown-event";et.currentTarget=rt,Ub(nt,tt,void 0,et),et.currentTarget=null}function se$2(et,tt){tt=(tt&4)!==0;for(var rt=0;rt<et.length;rt++){var nt=et[rt],lt=nt.event;nt=nt.listeners;e:{var ut=void 0;if(tt)for(var dt=nt.length-1;0<=dt;dt--){var pt=nt[dt],ht=pt.instance,mt=pt.currentTarget;if(pt=pt.listener,ht!==ut&&lt.isPropagationStopped())break e;nf(lt,pt,mt),ut=ht}else for(dt=0;dt<nt.length;dt++){if(pt=nt[dt],ht=pt.instance,mt=pt.currentTarget,pt=pt.listener,ht!==ut&&lt.isPropagationStopped())break e;nf(lt,pt,mt),ut=ht}}}if(Qb)throw et=Rb,Qb=!1,Rb=null,et}function D$4(et,tt){var rt=tt[of];rt===void 0&&(rt=tt[of]=new Set);var nt=et+"__bubble";rt.has(nt)||(pf(tt,et,2,!1),rt.add(nt))}function qf(et,tt,rt){var nt=0;tt&&(nt|=4),pf(rt,et,nt,tt)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(et){if(!et[rf]){et[rf]=!0,da.forEach(function(rt){rt!=="selectionchange"&&(mf.has(rt)||qf(rt,!1,et),qf(rt,!0,et))});var tt=et.nodeType===9?et:et.ownerDocument;tt===null||tt[rf]||(tt[rf]=!0,qf("selectionchange",!1,tt))}}function pf(et,tt,rt,nt){switch(jd(tt)){case 1:var lt=ed;break;case 4:lt=gd;break;default:lt=fd}rt=lt.bind(null,tt,rt,et),lt=void 0,!Lb||tt!=="touchstart"&&tt!=="touchmove"&&tt!=="wheel"||(lt=!0),nt?lt!==void 0?et.addEventListener(tt,rt,{capture:!0,passive:lt}):et.addEventListener(tt,rt,!0):lt!==void 0?et.addEventListener(tt,rt,{passive:lt}):et.addEventListener(tt,rt,!1)}function hd(et,tt,rt,nt,lt){var ut=nt;if(!(tt&1)&&!(tt&2)&&nt!==null)e:for(;;){if(nt===null)return;var dt=nt.tag;if(dt===3||dt===4){var pt=nt.stateNode.containerInfo;if(pt===lt||pt.nodeType===8&&pt.parentNode===lt)break;if(dt===4)for(dt=nt.return;dt!==null;){var ht=dt.tag;if((ht===3||ht===4)&&(ht=dt.stateNode.containerInfo,ht===lt||ht.nodeType===8&&ht.parentNode===lt))return;dt=dt.return}for(;pt!==null;){if(dt=Wc(pt),dt===null)return;if(ht=dt.tag,ht===5||ht===6){nt=ut=dt;continue e}pt=pt.parentNode}}nt=nt.return}Jb(function(){var mt=ut,xt=xb(rt),Mt=[];e:{var vt=df.get(et);if(vt!==void 0){var Ot=td,At=et;switch(et){case"keypress":if(od(rt)===0)break e;case"keydown":case"keyup":Ot=Rd;break;case"focusin":At="focus",Ot=Fd;break;case"focusout":At="blur",Ot=Fd;break;case"beforeblur":case"afterblur":Ot=Fd;break;case"click":if(rt.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ot=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ot=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ot=Vd;break;case $e$1:case af:case bf:Ot=Hd;break;case cf:Ot=Xd;break;case"scroll":Ot=vd;break;case"wheel":Ot=Zd;break;case"copy":case"cut":case"paste":Ot=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ot=Td}var Rt=(tt&4)!==0,zt=!Rt&&et==="scroll",Tt=Rt?vt!==null?vt+"Capture":null:vt;Rt=[];for(var Ct=mt,It;Ct!==null;){It=Ct;var Dt=It.stateNode;if(It.tag===5&&Dt!==null&&(It=Dt,Tt!==null&&(Dt=Kb(Ct,Tt),Dt!=null&&Rt.push(tf(Ct,Dt,It)))),zt)break;Ct=Ct.return}0<Rt.length&&(vt=new Ot(vt,At,null,rt,xt),Mt.push({event:vt,listeners:Rt}))}}if(!(tt&7)){e:{if(vt=et==="mouseover"||et==="pointerover",Ot=et==="mouseout"||et==="pointerout",vt&&rt!==wb&&(At=rt.relatedTarget||rt.fromElement)&&(Wc(At)||At[uf]))break e;if((Ot||vt)&&(vt=xt.window===xt?xt:(vt=xt.ownerDocument)?vt.defaultView||vt.parentWindow:window,Ot?(At=rt.relatedTarget||rt.toElement,Ot=mt,At=At?Wc(At):null,At!==null&&(zt=Vb(At),At!==zt||At.tag!==5&&At.tag!==6)&&(At=null)):(Ot=null,At=mt),Ot!==At)){if(Rt=Bd,Dt="onMouseLeave",Tt="onMouseEnter",Ct="mouse",(et==="pointerout"||et==="pointerover")&&(Rt=Td,Dt="onPointerLeave",Tt="onPointerEnter",Ct="pointer"),zt=Ot==null?vt:ue$1(Ot),It=At==null?vt:ue$1(At),vt=new Rt(Dt,Ct+"leave",Ot,rt,xt),vt.target=zt,vt.relatedTarget=It,Dt=null,Wc(xt)===mt&&(Rt=new Rt(Tt,Ct+"enter",At,rt,xt),Rt.target=It,Rt.relatedTarget=zt,Dt=Rt),zt=Dt,Ot&&At)t:{for(Rt=Ot,Tt=At,Ct=0,It=Rt;It;It=vf(It))Ct++;for(It=0,Dt=Tt;Dt;Dt=vf(Dt))It++;for(;0<Ct-It;)Rt=vf(Rt),Ct--;for(;0<It-Ct;)Tt=vf(Tt),It--;for(;Ct--;){if(Rt===Tt||Tt!==null&&Rt===Tt.alternate)break t;Rt=vf(Rt),Tt=vf(Tt)}Rt=null}else Rt=null;Ot!==null&&wf(Mt,vt,Ot,Rt,!1),At!==null&&zt!==null&&wf(Mt,zt,At,Rt,!0)}}e:{if(vt=mt?ue$1(mt):window,Ot=vt.nodeName&&vt.nodeName.toLowerCase(),Ot==="select"||Ot==="input"&&vt.type==="file")var kt=ve$1;else if(me$1(vt))if(we$1)kt=Fe$1;else{kt=De$1;var qt=Ce$1}else(Ot=vt.nodeName)&&Ot.toLowerCase()==="input"&&(vt.type==="checkbox"||vt.type==="radio")&&(kt=Ee$2);if(kt&&(kt=kt(et,mt))){ne$1(Mt,kt,rt,xt);break e}qt&&qt(et,vt,mt),et==="focusout"&&(qt=vt._wrapperState)&&qt.controlled&&vt.type==="number"&&cb(vt,"number",vt.value)}switch(qt=mt?ue$1(mt):window,et){case"focusin":(me$1(qt)||qt.contentEditable==="true")&&(Qe=qt,Re$1=mt,Se$1=null);break;case"focusout":Se$1=Re$1=Qe=null;break;case"mousedown":Te$2=!0;break;case"contextmenu":case"mouseup":case"dragend":Te$2=!1,Ue$1(Mt,rt,xt);break;case"selectionchange":if(Pe$1)break;case"keydown":case"keyup":Ue$1(Mt,rt,xt)}var Nt;if(ae$1)e:{switch(et){case"compositionstart":var Yt="onCompositionStart";break e;case"compositionend":Yt="onCompositionEnd";break e;case"compositionupdate":Yt="onCompositionUpdate";break e}Yt=void 0}else ie$1?ge$2(et,rt)&&(Yt="onCompositionEnd"):et==="keydown"&&rt.keyCode===229&&(Yt="onCompositionStart");Yt&&(de$1&&rt.locale!=="ko"&&(ie$1||Yt!=="onCompositionStart"?Yt==="onCompositionEnd"&&ie$1&&(Nt=nd()):(kd=xt,ld="value"in kd?kd.value:kd.textContent,ie$1=!0)),qt=oe$1(mt,Yt),0<qt.length&&(Yt=new Ld(Yt,et,null,rt,xt),Mt.push({event:Yt,listeners:qt}),Nt?Yt.data=Nt:(Nt=he$1(rt),Nt!==null&&(Yt.data=Nt)))),(Nt=ce$1?je$2(et,rt):ke$1(et,rt))&&(mt=oe$1(mt,"onBeforeInput"),0<mt.length&&(xt=new Ld("onBeforeInput","beforeinput",null,rt,xt),Mt.push({event:xt,listeners:mt}),xt.data=Nt))}se$2(Mt,tt)})}function tf(et,tt,rt){return{instance:et,listener:tt,currentTarget:rt}}function oe$1(et,tt){for(var rt=tt+"Capture",nt=[];et!==null;){var lt=et,ut=lt.stateNode;lt.tag===5&&ut!==null&&(lt=ut,ut=Kb(et,rt),ut!=null&&nt.unshift(tf(et,ut,lt)),ut=Kb(et,tt),ut!=null&&nt.push(tf(et,ut,lt))),et=et.return}return nt}function vf(et){if(et===null)return null;do et=et.return;while(et&&et.tag!==5);return et||null}function wf(et,tt,rt,nt,lt){for(var ut=tt._reactName,dt=[];rt!==null&&rt!==nt;){var pt=rt,ht=pt.alternate,mt=pt.stateNode;if(ht!==null&&ht===nt)break;pt.tag===5&&mt!==null&&(pt=mt,lt?(ht=Kb(rt,ut),ht!=null&&dt.unshift(tf(rt,ht,pt))):lt||(ht=Kb(rt,ut),ht!=null&&dt.push(tf(rt,ht,pt)))),rt=rt.return}dt.length!==0&&et.push({event:tt,listeners:dt})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(et){return(typeof et=="string"?et:""+et).replace(xf,`
`).replace(yf,"")}function Af(et,tt,rt){if(tt=zf(tt),zf(et)!==tt&&rt)throw Error(p$7(425))}function Bf(){}var Cf=null,Df=null;function Ef(et,tt){return et==="textarea"||et==="noscript"||typeof tt.children=="string"||typeof tt.children=="number"||typeof tt.dangerouslySetInnerHTML=="object"&&tt.dangerouslySetInnerHTML!==null&&tt.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(et){return Hf.resolve(null).then(et).catch(If)}:Ff;function If(et){setTimeout(function(){throw et})}function Kf(et,tt){var rt=tt,nt=0;do{var lt=rt.nextSibling;if(et.removeChild(rt),lt&&lt.nodeType===8)if(rt=lt.data,rt==="/$"){if(nt===0){et.removeChild(lt),bd(tt);return}nt--}else rt!=="$"&&rt!=="$?"&&rt!=="$!"||nt++;rt=lt}while(rt);bd(tt)}function Lf(et){for(;et!=null;et=et.nextSibling){var tt=et.nodeType;if(tt===1||tt===3)break;if(tt===8){if(tt=et.data,tt==="$"||tt==="$!"||tt==="$?")break;if(tt==="/$")return null}}return et}function Mf(et){et=et.previousSibling;for(var tt=0;et;){if(et.nodeType===8){var rt=et.data;if(rt==="$"||rt==="$!"||rt==="$?"){if(tt===0)return et;tt--}else rt==="/$"&&tt++}et=et.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(et){var tt=et[Of];if(tt)return tt;for(var rt=et.parentNode;rt;){if(tt=rt[uf]||rt[Of]){if(rt=tt.alternate,tt.child!==null||rt!==null&&rt.child!==null)for(et=Mf(et);et!==null;){if(rt=et[Of])return rt;et=Mf(et)}return tt}et=rt,rt=et.parentNode}return null}function Cb(et){return et=et[Of]||et[uf],!et||et.tag!==5&&et.tag!==6&&et.tag!==13&&et.tag!==3?null:et}function ue$1(et){if(et.tag===5||et.tag===6)return et.stateNode;throw Error(p$7(33))}function Db(et){return et[Pf]||null}var Sf=[],Tf=-1;function Uf(et){return{current:et}}function E$3(et){0>Tf||(et.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$3(et,tt){Tf++,Sf[Tf]=et.current,et.current=tt}var Vf={},H$3=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(et,tt){var rt=et.type.contextTypes;if(!rt)return Vf;var nt=et.stateNode;if(nt&&nt.__reactInternalMemoizedUnmaskedChildContext===tt)return nt.__reactInternalMemoizedMaskedChildContext;var lt={},ut;for(ut in rt)lt[ut]=tt[ut];return nt&&(et=et.stateNode,et.__reactInternalMemoizedUnmaskedChildContext=tt,et.__reactInternalMemoizedMaskedChildContext=lt),lt}function Zf(et){return et=et.childContextTypes,et!=null}function $f(){E$3(Wf),E$3(H$3)}function ag(et,tt,rt){if(H$3.current!==Vf)throw Error(p$7(168));G$3(H$3,tt),G$3(Wf,rt)}function bg(et,tt,rt){var nt=et.stateNode;if(tt=tt.childContextTypes,typeof nt.getChildContext!="function")return rt;nt=nt.getChildContext();for(var lt in nt)if(!(lt in tt))throw Error(p$7(108,Ra(et)||"Unknown",lt));return A$5({},rt,nt)}function cg(et){return et=(et=et.stateNode)&&et.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$3.current,G$3(H$3,et),G$3(Wf,Wf.current),!0}function dg(et,tt,rt){var nt=et.stateNode;if(!nt)throw Error(p$7(169));rt?(et=bg(et,tt,Xf),nt.__reactInternalMemoizedMergedChildContext=et,E$3(Wf),E$3(H$3),G$3(H$3,et)):E$3(Wf),G$3(Wf,rt)}var eg=null,fg=!1,gg=!1;function hg(et){eg===null?eg=[et]:eg.push(et)}function ig(et){fg=!0,hg(et)}function jg(){if(!gg&&eg!==null){gg=!0;var et=0,tt=C$3;try{var rt=eg;for(C$3=1;et<rt.length;et++){var nt=rt[et];do nt=nt(!0);while(nt!==null)}eg=null,fg=!1}catch(lt){throw eg!==null&&(eg=eg.slice(et+1)),ac(fc,jg),lt}finally{C$3=tt,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(et,tt){kg[lg++]=ng,kg[lg++]=mg,mg=et,ng=tt}function ug(et,tt,rt){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=et;var nt=rg;et=sg;var lt=32-oc(nt)-1;nt&=~(1<<lt),rt+=1;var ut=32-oc(tt)+lt;if(30<ut){var dt=lt-lt%5;ut=(nt&(1<<dt)-1).toString(32),nt>>=dt,lt-=dt,rg=1<<32-oc(tt)+lt|rt<<lt|nt,sg=ut+et}else rg=1<<ut|rt<<lt|nt,sg=et}function vg(et){et.return!==null&&(tg(et,1),ug(et,1,0))}function wg(et){for(;et===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;et===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I$4=!1,zg=null;function Ag(et,tt){var rt=Bg(5,null,null,0);rt.elementType="DELETED",rt.stateNode=tt,rt.return=et,tt=et.deletions,tt===null?(et.deletions=[rt],et.flags|=16):tt.push(rt)}function Cg(et,tt){switch(et.tag){case 5:var rt=et.type;return tt=tt.nodeType!==1||rt.toLowerCase()!==tt.nodeName.toLowerCase()?null:tt,tt!==null?(et.stateNode=tt,xg=et,yg=Lf(tt.firstChild),!0):!1;case 6:return tt=et.pendingProps===""||tt.nodeType!==3?null:tt,tt!==null?(et.stateNode=tt,xg=et,yg=null,!0):!1;case 13:return tt=tt.nodeType!==8?null:tt,tt!==null?(rt=qg!==null?{id:rg,overflow:sg}:null,et.memoizedState={dehydrated:tt,treeContext:rt,retryLane:1073741824},rt=Bg(18,null,null,0),rt.stateNode=tt,rt.return=et,et.child=rt,xg=et,yg=null,!0):!1;default:return!1}}function Dg(et){return(et.mode&1)!==0&&(et.flags&128)===0}function Eg(et){if(I$4){var tt=yg;if(tt){var rt=tt;if(!Cg(et,tt)){if(Dg(et))throw Error(p$7(418));tt=Lf(rt.nextSibling);var nt=xg;tt&&Cg(et,tt)?Ag(nt,rt):(et.flags=et.flags&-4097|2,I$4=!1,xg=et)}}else{if(Dg(et))throw Error(p$7(418));et.flags=et.flags&-4097|2,I$4=!1,xg=et}}}function Fg(et){for(et=et.return;et!==null&&et.tag!==5&&et.tag!==3&&et.tag!==13;)et=et.return;xg=et}function Gg(et){if(et!==xg)return!1;if(!I$4)return Fg(et),I$4=!0,!1;var tt;if((tt=et.tag!==3)&&!(tt=et.tag!==5)&&(tt=et.type,tt=tt!=="head"&&tt!=="body"&&!Ef(et.type,et.memoizedProps)),tt&&(tt=yg)){if(Dg(et))throw Hg(),Error(p$7(418));for(;tt;)Ag(et,tt),tt=Lf(tt.nextSibling)}if(Fg(et),et.tag===13){if(et=et.memoizedState,et=et!==null?et.dehydrated:null,!et)throw Error(p$7(317));e:{for(et=et.nextSibling,tt=0;et;){if(et.nodeType===8){var rt=et.data;if(rt==="/$"){if(tt===0){yg=Lf(et.nextSibling);break e}tt--}else rt!=="$"&&rt!=="$!"&&rt!=="$?"||tt++}et=et.nextSibling}yg=null}}else yg=xg?Lf(et.stateNode.nextSibling):null;return!0}function Hg(){for(var et=yg;et;)et=Lf(et.nextSibling)}function Ig(){yg=xg=null,I$4=!1}function Jg(et){zg===null?zg=[et]:zg.push(et)}var Kg=ua.ReactCurrentBatchConfig;function Lg(et,tt,rt){if(et=rt.ref,et!==null&&typeof et!="function"&&typeof et!="object"){if(rt._owner){if(rt=rt._owner,rt){if(rt.tag!==1)throw Error(p$7(309));var nt=rt.stateNode}if(!nt)throw Error(p$7(147,et));var lt=nt,ut=""+et;return tt!==null&&tt.ref!==null&&typeof tt.ref=="function"&&tt.ref._stringRef===ut?tt.ref:(tt=function(dt){var pt=lt.refs;dt===null?delete pt[ut]:pt[ut]=dt},tt._stringRef=ut,tt)}if(typeof et!="string")throw Error(p$7(284));if(!rt._owner)throw Error(p$7(290,et))}return et}function Mg(et,tt){throw et=Object.prototype.toString.call(tt),Error(p$7(31,et==="[object Object]"?"object with keys {"+Object.keys(tt).join(", ")+"}":et))}function Ng(et){var tt=et._init;return tt(et._payload)}function Og(et){function tt(Tt,Ct){if(et){var It=Tt.deletions;It===null?(Tt.deletions=[Ct],Tt.flags|=16):It.push(Ct)}}function rt(Tt,Ct){if(!et)return null;for(;Ct!==null;)tt(Tt,Ct),Ct=Ct.sibling;return null}function nt(Tt,Ct){for(Tt=new Map;Ct!==null;)Ct.key!==null?Tt.set(Ct.key,Ct):Tt.set(Ct.index,Ct),Ct=Ct.sibling;return Tt}function lt(Tt,Ct){return Tt=Pg(Tt,Ct),Tt.index=0,Tt.sibling=null,Tt}function ut(Tt,Ct,It){return Tt.index=It,et?(It=Tt.alternate,It!==null?(It=It.index,It<Ct?(Tt.flags|=2,Ct):It):(Tt.flags|=2,Ct)):(Tt.flags|=1048576,Ct)}function dt(Tt){return et&&Tt.alternate===null&&(Tt.flags|=2),Tt}function pt(Tt,Ct,It,Dt){return Ct===null||Ct.tag!==6?(Ct=Qg(It,Tt.mode,Dt),Ct.return=Tt,Ct):(Ct=lt(Ct,It),Ct.return=Tt,Ct)}function ht(Tt,Ct,It,Dt){var kt=It.type;return kt===ya?xt(Tt,Ct,It.props.children,Dt,It.key):Ct!==null&&(Ct.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===Ha&&Ng(kt)===Ct.type)?(Dt=lt(Ct,It.props),Dt.ref=Lg(Tt,Ct,It),Dt.return=Tt,Dt):(Dt=Rg(It.type,It.key,It.props,null,Tt.mode,Dt),Dt.ref=Lg(Tt,Ct,It),Dt.return=Tt,Dt)}function mt(Tt,Ct,It,Dt){return Ct===null||Ct.tag!==4||Ct.stateNode.containerInfo!==It.containerInfo||Ct.stateNode.implementation!==It.implementation?(Ct=Sg(It,Tt.mode,Dt),Ct.return=Tt,Ct):(Ct=lt(Ct,It.children||[]),Ct.return=Tt,Ct)}function xt(Tt,Ct,It,Dt,kt){return Ct===null||Ct.tag!==7?(Ct=Tg(It,Tt.mode,Dt,kt),Ct.return=Tt,Ct):(Ct=lt(Ct,It),Ct.return=Tt,Ct)}function Mt(Tt,Ct,It){if(typeof Ct=="string"&&Ct!==""||typeof Ct=="number")return Ct=Qg(""+Ct,Tt.mode,It),Ct.return=Tt,Ct;if(typeof Ct=="object"&&Ct!==null){switch(Ct.$$typeof){case va:return It=Rg(Ct.type,Ct.key,Ct.props,null,Tt.mode,It),It.ref=Lg(Tt,null,Ct),It.return=Tt,It;case wa:return Ct=Sg(Ct,Tt.mode,It),Ct.return=Tt,Ct;case Ha:var Dt=Ct._init;return Mt(Tt,Dt(Ct._payload),It)}if(eb(Ct)||Ka(Ct))return Ct=Tg(Ct,Tt.mode,It,null),Ct.return=Tt,Ct;Mg(Tt,Ct)}return null}function vt(Tt,Ct,It,Dt){var kt=Ct!==null?Ct.key:null;if(typeof It=="string"&&It!==""||typeof It=="number")return kt!==null?null:pt(Tt,Ct,""+It,Dt);if(typeof It=="object"&&It!==null){switch(It.$$typeof){case va:return It.key===kt?ht(Tt,Ct,It,Dt):null;case wa:return It.key===kt?mt(Tt,Ct,It,Dt):null;case Ha:return kt=It._init,vt(Tt,Ct,kt(It._payload),Dt)}if(eb(It)||Ka(It))return kt!==null?null:xt(Tt,Ct,It,Dt,null);Mg(Tt,It)}return null}function Ot(Tt,Ct,It,Dt,kt){if(typeof Dt=="string"&&Dt!==""||typeof Dt=="number")return Tt=Tt.get(It)||null,pt(Ct,Tt,""+Dt,kt);if(typeof Dt=="object"&&Dt!==null){switch(Dt.$$typeof){case va:return Tt=Tt.get(Dt.key===null?It:Dt.key)||null,ht(Ct,Tt,Dt,kt);case wa:return Tt=Tt.get(Dt.key===null?It:Dt.key)||null,mt(Ct,Tt,Dt,kt);case Ha:var qt=Dt._init;return Ot(Tt,Ct,It,qt(Dt._payload),kt)}if(eb(Dt)||Ka(Dt))return Tt=Tt.get(It)||null,xt(Ct,Tt,Dt,kt,null);Mg(Ct,Dt)}return null}function At(Tt,Ct,It,Dt){for(var kt=null,qt=null,Nt=Ct,Yt=Ct=0,Kt=null;Nt!==null&&Yt<It.length;Yt++){Nt.index>Yt?(Kt=Nt,Nt=null):Kt=Nt.sibling;var Jt=vt(Tt,Nt,It[Yt],Dt);if(Jt===null){Nt===null&&(Nt=Kt);break}et&&Nt&&Jt.alternate===null&&tt(Tt,Nt),Ct=ut(Jt,Ct,Yt),qt===null?kt=Jt:qt.sibling=Jt,qt=Jt,Nt=Kt}if(Yt===It.length)return rt(Tt,Nt),I$4&&tg(Tt,Yt),kt;if(Nt===null){for(;Yt<It.length;Yt++)Nt=Mt(Tt,It[Yt],Dt),Nt!==null&&(Ct=ut(Nt,Ct,Yt),qt===null?kt=Nt:qt.sibling=Nt,qt=Nt);return I$4&&tg(Tt,Yt),kt}for(Nt=nt(Tt,Nt);Yt<It.length;Yt++)Kt=Ot(Nt,Tt,Yt,It[Yt],Dt),Kt!==null&&(et&&Kt.alternate!==null&&Nt.delete(Kt.key===null?Yt:Kt.key),Ct=ut(Kt,Ct,Yt),qt===null?kt=Kt:qt.sibling=Kt,qt=Kt);return et&&Nt.forEach(function(Qt){return tt(Tt,Qt)}),I$4&&tg(Tt,Yt),kt}function Rt(Tt,Ct,It,Dt){var kt=Ka(It);if(typeof kt!="function")throw Error(p$7(150));if(It=kt.call(It),It==null)throw Error(p$7(151));for(var qt=kt=null,Nt=Ct,Yt=Ct=0,Kt=null,Jt=It.next();Nt!==null&&!Jt.done;Yt++,Jt=It.next()){Nt.index>Yt?(Kt=Nt,Nt=null):Kt=Nt.sibling;var Qt=vt(Tt,Nt,Jt.value,Dt);if(Qt===null){Nt===null&&(Nt=Kt);break}et&&Nt&&Qt.alternate===null&&tt(Tt,Nt),Ct=ut(Qt,Ct,Yt),qt===null?kt=Qt:qt.sibling=Qt,qt=Qt,Nt=Kt}if(Jt.done)return rt(Tt,Nt),I$4&&tg(Tt,Yt),kt;if(Nt===null){for(;!Jt.done;Yt++,Jt=It.next())Jt=Mt(Tt,Jt.value,Dt),Jt!==null&&(Ct=ut(Jt,Ct,Yt),qt===null?kt=Jt:qt.sibling=Jt,qt=Jt);return I$4&&tg(Tt,Yt),kt}for(Nt=nt(Tt,Nt);!Jt.done;Yt++,Jt=It.next())Jt=Ot(Nt,Tt,Yt,Jt.value,Dt),Jt!==null&&(et&&Jt.alternate!==null&&Nt.delete(Jt.key===null?Yt:Jt.key),Ct=ut(Jt,Ct,Yt),qt===null?kt=Jt:qt.sibling=Jt,qt=Jt);return et&&Nt.forEach(function(Bt){return tt(Tt,Bt)}),I$4&&tg(Tt,Yt),kt}function zt(Tt,Ct,It,Dt){if(typeof It=="object"&&It!==null&&It.type===ya&&It.key===null&&(It=It.props.children),typeof It=="object"&&It!==null){switch(It.$$typeof){case va:e:{for(var kt=It.key,qt=Ct;qt!==null;){if(qt.key===kt){if(kt=It.type,kt===ya){if(qt.tag===7){rt(Tt,qt.sibling),Ct=lt(qt,It.props.children),Ct.return=Tt,Tt=Ct;break e}}else if(qt.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===Ha&&Ng(kt)===qt.type){rt(Tt,qt.sibling),Ct=lt(qt,It.props),Ct.ref=Lg(Tt,qt,It),Ct.return=Tt,Tt=Ct;break e}rt(Tt,qt);break}else tt(Tt,qt);qt=qt.sibling}It.type===ya?(Ct=Tg(It.props.children,Tt.mode,Dt,It.key),Ct.return=Tt,Tt=Ct):(Dt=Rg(It.type,It.key,It.props,null,Tt.mode,Dt),Dt.ref=Lg(Tt,Ct,It),Dt.return=Tt,Tt=Dt)}return dt(Tt);case wa:e:{for(qt=It.key;Ct!==null;){if(Ct.key===qt)if(Ct.tag===4&&Ct.stateNode.containerInfo===It.containerInfo&&Ct.stateNode.implementation===It.implementation){rt(Tt,Ct.sibling),Ct=lt(Ct,It.children||[]),Ct.return=Tt,Tt=Ct;break e}else{rt(Tt,Ct);break}else tt(Tt,Ct);Ct=Ct.sibling}Ct=Sg(It,Tt.mode,Dt),Ct.return=Tt,Tt=Ct}return dt(Tt);case Ha:return qt=It._init,zt(Tt,Ct,qt(It._payload),Dt)}if(eb(It))return At(Tt,Ct,It,Dt);if(Ka(It))return Rt(Tt,Ct,It,Dt);Mg(Tt,It)}return typeof It=="string"&&It!==""||typeof It=="number"?(It=""+It,Ct!==null&&Ct.tag===6?(rt(Tt,Ct.sibling),Ct=lt(Ct,It),Ct.return=Tt,Tt=Ct):(rt(Tt,Ct),Ct=Qg(It,Tt.mode,Dt),Ct.return=Tt,Tt=Ct),dt(Tt)):rt(Tt,Ct)}return zt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(et){var tt=Wg.current;E$3(Wg),et._currentValue=tt}function bh(et,tt,rt){for(;et!==null;){var nt=et.alternate;if((et.childLanes&tt)!==tt?(et.childLanes|=tt,nt!==null&&(nt.childLanes|=tt)):nt!==null&&(nt.childLanes&tt)!==tt&&(nt.childLanes|=tt),et===rt)break;et=et.return}}function ch$1(et,tt){Xg=et,Zg=Yg=null,et=et.dependencies,et!==null&&et.firstContext!==null&&(et.lanes&tt&&(dh$1=!0),et.firstContext=null)}function eh(et){var tt=et._currentValue;if(Zg!==et)if(et={context:et,memoizedValue:tt,next:null},Yg===null){if(Xg===null)throw Error(p$7(308));Yg=et,Xg.dependencies={lanes:0,firstContext:et}}else Yg=Yg.next=et;return tt}var fh=null;function gh(et){fh===null?fh=[et]:fh.push(et)}function hh(et,tt,rt,nt){var lt=tt.interleaved;return lt===null?(rt.next=rt,gh(tt)):(rt.next=lt.next,lt.next=rt),tt.interleaved=rt,ih(et,nt)}function ih(et,tt){et.lanes|=tt;var rt=et.alternate;for(rt!==null&&(rt.lanes|=tt),rt=et,et=et.return;et!==null;)et.childLanes|=tt,rt=et.alternate,rt!==null&&(rt.childLanes|=tt),rt=et,et=et.return;return rt.tag===3?rt.stateNode:null}var jh=!1;function kh(et){et.updateQueue={baseState:et.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(et,tt){et=et.updateQueue,tt.updateQueue===et&&(tt.updateQueue={baseState:et.baseState,firstBaseUpdate:et.firstBaseUpdate,lastBaseUpdate:et.lastBaseUpdate,shared:et.shared,effects:et.effects})}function mh(et,tt){return{eventTime:et,lane:tt,tag:0,payload:null,callback:null,next:null}}function nh(et,tt,rt){var nt=et.updateQueue;if(nt===null)return null;if(nt=nt.shared,K$6&2){var lt=nt.pending;return lt===null?tt.next=tt:(tt.next=lt.next,lt.next=tt),nt.pending=tt,ih(et,rt)}return lt=nt.interleaved,lt===null?(tt.next=tt,gh(nt)):(tt.next=lt.next,lt.next=tt),nt.interleaved=tt,ih(et,rt)}function oh(et,tt,rt){if(tt=tt.updateQueue,tt!==null&&(tt=tt.shared,(rt&4194240)!==0)){var nt=tt.lanes;nt&=et.pendingLanes,rt|=nt,tt.lanes=rt,Cc(et,rt)}}function ph(et,tt){var rt=et.updateQueue,nt=et.alternate;if(nt!==null&&(nt=nt.updateQueue,rt===nt)){var lt=null,ut=null;if(rt=rt.firstBaseUpdate,rt!==null){do{var dt={eventTime:rt.eventTime,lane:rt.lane,tag:rt.tag,payload:rt.payload,callback:rt.callback,next:null};ut===null?lt=ut=dt:ut=ut.next=dt,rt=rt.next}while(rt!==null);ut===null?lt=ut=tt:ut=ut.next=tt}else lt=ut=tt;rt={baseState:nt.baseState,firstBaseUpdate:lt,lastBaseUpdate:ut,shared:nt.shared,effects:nt.effects},et.updateQueue=rt;return}et=rt.lastBaseUpdate,et===null?rt.firstBaseUpdate=tt:et.next=tt,rt.lastBaseUpdate=tt}function qh(et,tt,rt,nt){var lt=et.updateQueue;jh=!1;var ut=lt.firstBaseUpdate,dt=lt.lastBaseUpdate,pt=lt.shared.pending;if(pt!==null){lt.shared.pending=null;var ht=pt,mt=ht.next;ht.next=null,dt===null?ut=mt:dt.next=mt,dt=ht;var xt=et.alternate;xt!==null&&(xt=xt.updateQueue,pt=xt.lastBaseUpdate,pt!==dt&&(pt===null?xt.firstBaseUpdate=mt:pt.next=mt,xt.lastBaseUpdate=ht))}if(ut!==null){var Mt=lt.baseState;dt=0,xt=mt=ht=null,pt=ut;do{var vt=pt.lane,Ot=pt.eventTime;if((nt&vt)===vt){xt!==null&&(xt=xt.next={eventTime:Ot,lane:0,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null});e:{var At=et,Rt=pt;switch(vt=tt,Ot=rt,Rt.tag){case 1:if(At=Rt.payload,typeof At=="function"){Mt=At.call(Ot,Mt,vt);break e}Mt=At;break e;case 3:At.flags=At.flags&-65537|128;case 0:if(At=Rt.payload,vt=typeof At=="function"?At.call(Ot,Mt,vt):At,vt==null)break e;Mt=A$5({},Mt,vt);break e;case 2:jh=!0}}pt.callback!==null&&pt.lane!==0&&(et.flags|=64,vt=lt.effects,vt===null?lt.effects=[pt]:vt.push(pt))}else Ot={eventTime:Ot,lane:vt,tag:pt.tag,payload:pt.payload,callback:pt.callback,next:null},xt===null?(mt=xt=Ot,ht=Mt):xt=xt.next=Ot,dt|=vt;if(pt=pt.next,pt===null){if(pt=lt.shared.pending,pt===null)break;vt=pt,pt=vt.next,vt.next=null,lt.lastBaseUpdate=vt,lt.shared.pending=null}}while(!0);if(xt===null&&(ht=Mt),lt.baseState=ht,lt.firstBaseUpdate=mt,lt.lastBaseUpdate=xt,tt=lt.shared.interleaved,tt!==null){lt=tt;do dt|=lt.lane,lt=lt.next;while(lt!==tt)}else ut===null&&(lt.shared.lanes=0);rh$1|=dt,et.lanes=dt,et.memoizedState=Mt}}function sh$1(et,tt,rt){if(et=tt.effects,tt.effects=null,et!==null)for(tt=0;tt<et.length;tt++){var nt=et[tt],lt=nt.callback;if(lt!==null){if(nt.callback=null,nt=rt,typeof lt!="function")throw Error(p$7(191,lt));lt.call(nt)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(et){if(et===th)throw Error(p$7(174));return et}function yh(et,tt){switch(G$3(wh,tt),G$3(vh,et),G$3(uh,th),et=tt.nodeType,et){case 9:case 11:tt=(tt=tt.documentElement)?tt.namespaceURI:lb(null,"");break;default:et=et===8?tt.parentNode:tt,tt=et.namespaceURI||null,et=et.tagName,tt=lb(tt,et)}E$3(uh),G$3(uh,tt)}function zh(){E$3(uh),E$3(vh),E$3(wh)}function Ah(et){xh(wh.current);var tt=xh(uh.current),rt=lb(tt,et.type);tt!==rt&&(G$3(vh,et),G$3(uh,rt))}function Bh(et){vh.current===et&&(E$3(uh),E$3(vh))}var L$2=Uf(0);function Ch$1(et){for(var tt=et;tt!==null;){if(tt.tag===13){var rt=tt.memoizedState;if(rt!==null&&(rt=rt.dehydrated,rt===null||rt.data==="$?"||rt.data==="$!"))return tt}else if(tt.tag===19&&tt.memoizedProps.revealOrder!==void 0){if(tt.flags&128)return tt}else if(tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return null;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}return null}var Dh=[];function Eh(){for(var et=0;et<Dh.length;et++)Dh[et]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M$3=null,N$2=null,O$2=null,Ih=!1,Jh=!1,Kh$1=0,Lh=0;function P$2(){throw Error(p$7(321))}function Mh(et,tt){if(tt===null)return!1;for(var rt=0;rt<tt.length&&rt<et.length;rt++)if(!He$1(et[rt],tt[rt]))return!1;return!0}function Nh(et,tt,rt,nt,lt,ut){if(Hh=ut,M$3=tt,tt.memoizedState=null,tt.updateQueue=null,tt.lanes=0,Fh.current=et===null||et.memoizedState===null?Oh:Ph,et=rt(nt,lt),Jh){ut=0;do{if(Jh=!1,Kh$1=0,25<=ut)throw Error(p$7(301));ut+=1,O$2=N$2=null,tt.updateQueue=null,Fh.current=Qh,et=rt(nt,lt)}while(Jh)}if(Fh.current=Rh,tt=N$2!==null&&N$2.next!==null,Hh=0,O$2=N$2=M$3=null,Ih=!1,tt)throw Error(p$7(300));return et}function Sh(){var et=Kh$1!==0;return Kh$1=0,et}function Th(){var et={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return O$2===null?M$3.memoizedState=O$2=et:O$2=O$2.next=et,O$2}function Uh(){if(N$2===null){var et=M$3.alternate;et=et!==null?et.memoizedState:null}else et=N$2.next;var tt=O$2===null?M$3.memoizedState:O$2.next;if(tt!==null)O$2=tt,N$2=et;else{if(et===null)throw Error(p$7(310));N$2=et,et={memoizedState:N$2.memoizedState,baseState:N$2.baseState,baseQueue:N$2.baseQueue,queue:N$2.queue,next:null},O$2===null?M$3.memoizedState=O$2=et:O$2=O$2.next=et}return O$2}function Vh(et,tt){return typeof tt=="function"?tt(et):tt}function Wh(et){var tt=Uh(),rt=tt.queue;if(rt===null)throw Error(p$7(311));rt.lastRenderedReducer=et;var nt=N$2,lt=nt.baseQueue,ut=rt.pending;if(ut!==null){if(lt!==null){var dt=lt.next;lt.next=ut.next,ut.next=dt}nt.baseQueue=lt=ut,rt.pending=null}if(lt!==null){ut=lt.next,nt=nt.baseState;var pt=dt=null,ht=null,mt=ut;do{var xt=mt.lane;if((Hh&xt)===xt)ht!==null&&(ht=ht.next={lane:0,action:mt.action,hasEagerState:mt.hasEagerState,eagerState:mt.eagerState,next:null}),nt=mt.hasEagerState?mt.eagerState:et(nt,mt.action);else{var Mt={lane:xt,action:mt.action,hasEagerState:mt.hasEagerState,eagerState:mt.eagerState,next:null};ht===null?(pt=ht=Mt,dt=nt):ht=ht.next=Mt,M$3.lanes|=xt,rh$1|=xt}mt=mt.next}while(mt!==null&&mt!==ut);ht===null?dt=nt:ht.next=pt,He$1(nt,tt.memoizedState)||(dh$1=!0),tt.memoizedState=nt,tt.baseState=dt,tt.baseQueue=ht,rt.lastRenderedState=nt}if(et=rt.interleaved,et!==null){lt=et;do ut=lt.lane,M$3.lanes|=ut,rh$1|=ut,lt=lt.next;while(lt!==et)}else lt===null&&(rt.lanes=0);return[tt.memoizedState,rt.dispatch]}function Xh(et){var tt=Uh(),rt=tt.queue;if(rt===null)throw Error(p$7(311));rt.lastRenderedReducer=et;var nt=rt.dispatch,lt=rt.pending,ut=tt.memoizedState;if(lt!==null){rt.pending=null;var dt=lt=lt.next;do ut=et(ut,dt.action),dt=dt.next;while(dt!==lt);He$1(ut,tt.memoizedState)||(dh$1=!0),tt.memoizedState=ut,tt.baseQueue===null&&(tt.baseState=ut),rt.lastRenderedState=ut}return[ut,nt]}function Yh(){}function Zh(et,tt){var rt=M$3,nt=Uh(),lt=tt(),ut=!He$1(nt.memoizedState,lt);if(ut&&(nt.memoizedState=lt,dh$1=!0),nt=nt.queue,$h(ai.bind(null,rt,nt,et),[et]),nt.getSnapshot!==tt||ut||O$2!==null&&O$2.memoizedState.tag&1){if(rt.flags|=2048,bi(9,ci.bind(null,rt,nt,lt,tt),void 0,null),Q$3===null)throw Error(p$7(349));Hh&30||di(rt,tt,lt)}return lt}function di(et,tt,rt){et.flags|=16384,et={getSnapshot:tt,value:rt},tt=M$3.updateQueue,tt===null?(tt={lastEffect:null,stores:null},M$3.updateQueue=tt,tt.stores=[et]):(rt=tt.stores,rt===null?tt.stores=[et]:rt.push(et))}function ci(et,tt,rt,nt){tt.value=rt,tt.getSnapshot=nt,ei(tt)&&fi(et)}function ai(et,tt,rt){return rt(function(){ei(tt)&&fi(et)})}function ei(et){var tt=et.getSnapshot;et=et.value;try{var rt=tt();return!He$1(et,rt)}catch{return!0}}function fi(et){var tt=ih(et,1);tt!==null&&gi(tt,et,1,-1)}function hi(et){var tt=Th();return typeof et=="function"&&(et=et()),tt.memoizedState=tt.baseState=et,et={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:et},tt.queue=et,et=et.dispatch=ii.bind(null,M$3,et),[tt.memoizedState,et]}function bi(et,tt,rt,nt){return et={tag:et,create:tt,destroy:rt,deps:nt,next:null},tt=M$3.updateQueue,tt===null?(tt={lastEffect:null,stores:null},M$3.updateQueue=tt,tt.lastEffect=et.next=et):(rt=tt.lastEffect,rt===null?tt.lastEffect=et.next=et:(nt=rt.next,rt.next=et,et.next=nt,tt.lastEffect=et)),et}function ji(){return Uh().memoizedState}function ki(et,tt,rt,nt){var lt=Th();M$3.flags|=et,lt.memoizedState=bi(1|tt,rt,void 0,nt===void 0?null:nt)}function li(et,tt,rt,nt){var lt=Uh();nt=nt===void 0?null:nt;var ut=void 0;if(N$2!==null){var dt=N$2.memoizedState;if(ut=dt.destroy,nt!==null&&Mh(nt,dt.deps)){lt.memoizedState=bi(tt,rt,ut,nt);return}}M$3.flags|=et,lt.memoizedState=bi(1|tt,rt,ut,nt)}function mi(et,tt){return ki(8390656,8,et,tt)}function $h(et,tt){return li(2048,8,et,tt)}function ni(et,tt){return li(4,2,et,tt)}function oi(et,tt){return li(4,4,et,tt)}function pi(et,tt){if(typeof tt=="function")return et=et(),tt(et),function(){tt(null)};if(tt!=null)return et=et(),tt.current=et,function(){tt.current=null}}function qi(et,tt,rt){return rt=rt!=null?rt.concat([et]):null,li(4,4,pi.bind(null,tt,et),rt)}function ri(){}function si(et,tt){var rt=Uh();tt=tt===void 0?null:tt;var nt=rt.memoizedState;return nt!==null&&tt!==null&&Mh(tt,nt[1])?nt[0]:(rt.memoizedState=[et,tt],et)}function ti(et,tt){var rt=Uh();tt=tt===void 0?null:tt;var nt=rt.memoizedState;return nt!==null&&tt!==null&&Mh(tt,nt[1])?nt[0]:(et=et(),rt.memoizedState=[et,tt],et)}function ui(et,tt,rt){return Hh&21?(He$1(rt,tt)||(rt=yc(),M$3.lanes|=rt,rh$1|=rt,et.baseState=!0),tt):(et.baseState&&(et.baseState=!1,dh$1=!0),et.memoizedState=rt)}function vi(et,tt){var rt=C$3;C$3=rt!==0&&4>rt?rt:4,et(!0);var nt=Gh.transition;Gh.transition={};try{et(!1),tt()}finally{C$3=rt,Gh.transition=nt}}function wi(){return Uh().memoizedState}function xi(et,tt,rt){var nt=yi(et);if(rt={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null},zi(et))Ai(tt,rt);else if(rt=hh(et,tt,rt,nt),rt!==null){var lt=R$3();gi(rt,et,nt,lt),Bi(rt,tt,nt)}}function ii(et,tt,rt){var nt=yi(et),lt={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null};if(zi(et))Ai(tt,lt);else{var ut=et.alternate;if(et.lanes===0&&(ut===null||ut.lanes===0)&&(ut=tt.lastRenderedReducer,ut!==null))try{var dt=tt.lastRenderedState,pt=ut(dt,rt);if(lt.hasEagerState=!0,lt.eagerState=pt,He$1(pt,dt)){var ht=tt.interleaved;ht===null?(lt.next=lt,gh(tt)):(lt.next=ht.next,ht.next=lt),tt.interleaved=lt;return}}catch{}finally{}rt=hh(et,tt,lt,nt),rt!==null&&(lt=R$3(),gi(rt,et,nt,lt),Bi(rt,tt,nt))}}function zi(et){var tt=et.alternate;return et===M$3||tt!==null&&tt===M$3}function Ai(et,tt){Jh=Ih=!0;var rt=et.pending;rt===null?tt.next=tt:(tt.next=rt.next,rt.next=tt),et.pending=tt}function Bi(et,tt,rt){if(rt&4194240){var nt=tt.lanes;nt&=et.pendingLanes,rt|=nt,tt.lanes=rt,Cc(et,rt)}}var Rh={readContext:eh,useCallback:P$2,useContext:P$2,useEffect:P$2,useImperativeHandle:P$2,useInsertionEffect:P$2,useLayoutEffect:P$2,useMemo:P$2,useReducer:P$2,useRef:P$2,useState:P$2,useDebugValue:P$2,useDeferredValue:P$2,useTransition:P$2,useMutableSource:P$2,useSyncExternalStore:P$2,useId:P$2,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(et,tt){return Th().memoizedState=[et,tt===void 0?null:tt],et},useContext:eh,useEffect:mi,useImperativeHandle:function(et,tt,rt){return rt=rt!=null?rt.concat([et]):null,ki(4194308,4,pi.bind(null,tt,et),rt)},useLayoutEffect:function(et,tt){return ki(4194308,4,et,tt)},useInsertionEffect:function(et,tt){return ki(4,2,et,tt)},useMemo:function(et,tt){var rt=Th();return tt=tt===void 0?null:tt,et=et(),rt.memoizedState=[et,tt],et},useReducer:function(et,tt,rt){var nt=Th();return tt=rt!==void 0?rt(tt):tt,nt.memoizedState=nt.baseState=tt,et={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:et,lastRenderedState:tt},nt.queue=et,et=et.dispatch=xi.bind(null,M$3,et),[nt.memoizedState,et]},useRef:function(et){var tt=Th();return et={current:et},tt.memoizedState=et},useState:hi,useDebugValue:ri,useDeferredValue:function(et){return Th().memoizedState=et},useTransition:function(){var et=hi(!1),tt=et[0];return et=vi.bind(null,et[1]),Th().memoizedState=et,[tt,et]},useMutableSource:function(){},useSyncExternalStore:function(et,tt,rt){var nt=M$3,lt=Th();if(I$4){if(rt===void 0)throw Error(p$7(407));rt=rt()}else{if(rt=tt(),Q$3===null)throw Error(p$7(349));Hh&30||di(nt,tt,rt)}lt.memoizedState=rt;var ut={value:rt,getSnapshot:tt};return lt.queue=ut,mi(ai.bind(null,nt,ut,et),[et]),nt.flags|=2048,bi(9,ci.bind(null,nt,ut,rt,tt),void 0,null),rt},useId:function(){var et=Th(),tt=Q$3.identifierPrefix;if(I$4){var rt=sg,nt=rg;rt=(nt&~(1<<32-oc(nt)-1)).toString(32)+rt,tt=":"+tt+"R"+rt,rt=Kh$1++,0<rt&&(tt+="H"+rt.toString(32)),tt+=":"}else rt=Lh++,tt=":"+tt+"r"+rt.toString(32)+":";return et.memoizedState=tt},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(et){var tt=Uh();return ui(tt,N$2.memoizedState,et)},useTransition:function(){var et=Wh(Vh)[0],tt=Uh().memoizedState;return[et,tt]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(et){var tt=Uh();return N$2===null?tt.memoizedState=et:ui(tt,N$2.memoizedState,et)},useTransition:function(){var et=Xh(Vh)[0],tt=Uh().memoizedState;return[et,tt]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(et,tt){if(et&&et.defaultProps){tt=A$5({},tt),et=et.defaultProps;for(var rt in et)tt[rt]===void 0&&(tt[rt]=et[rt]);return tt}return tt}function Di(et,tt,rt,nt){tt=et.memoizedState,rt=rt(nt,tt),rt=rt==null?tt:A$5({},tt,rt),et.memoizedState=rt,et.lanes===0&&(et.updateQueue.baseState=rt)}var Ei={isMounted:function(et){return(et=et._reactInternals)?Vb(et)===et:!1},enqueueSetState:function(et,tt,rt){et=et._reactInternals;var nt=R$3(),lt=yi(et),ut=mh(nt,lt);ut.payload=tt,rt!=null&&(ut.callback=rt),tt=nh(et,ut,lt),tt!==null&&(gi(tt,et,lt,nt),oh(tt,et,lt))},enqueueReplaceState:function(et,tt,rt){et=et._reactInternals;var nt=R$3(),lt=yi(et),ut=mh(nt,lt);ut.tag=1,ut.payload=tt,rt!=null&&(ut.callback=rt),tt=nh(et,ut,lt),tt!==null&&(gi(tt,et,lt,nt),oh(tt,et,lt))},enqueueForceUpdate:function(et,tt){et=et._reactInternals;var rt=R$3(),nt=yi(et),lt=mh(rt,nt);lt.tag=2,tt!=null&&(lt.callback=tt),tt=nh(et,lt,nt),tt!==null&&(gi(tt,et,nt,rt),oh(tt,et,nt))}};function Fi(et,tt,rt,nt,lt,ut,dt){return et=et.stateNode,typeof et.shouldComponentUpdate=="function"?et.shouldComponentUpdate(nt,ut,dt):tt.prototype&&tt.prototype.isPureReactComponent?!Ie$2(rt,nt)||!Ie$2(lt,ut):!0}function Gi(et,tt,rt){var nt=!1,lt=Vf,ut=tt.contextType;return typeof ut=="object"&&ut!==null?ut=eh(ut):(lt=Zf(tt)?Xf:H$3.current,nt=tt.contextTypes,ut=(nt=nt!=null)?Yf(et,lt):Vf),tt=new tt(rt,ut),et.memoizedState=tt.state!==null&&tt.state!==void 0?tt.state:null,tt.updater=Ei,et.stateNode=tt,tt._reactInternals=et,nt&&(et=et.stateNode,et.__reactInternalMemoizedUnmaskedChildContext=lt,et.__reactInternalMemoizedMaskedChildContext=ut),tt}function Hi(et,tt,rt,nt){et=tt.state,typeof tt.componentWillReceiveProps=="function"&&tt.componentWillReceiveProps(rt,nt),typeof tt.UNSAFE_componentWillReceiveProps=="function"&&tt.UNSAFE_componentWillReceiveProps(rt,nt),tt.state!==et&&Ei.enqueueReplaceState(tt,tt.state,null)}function Ii(et,tt,rt,nt){var lt=et.stateNode;lt.props=rt,lt.state=et.memoizedState,lt.refs={},kh(et);var ut=tt.contextType;typeof ut=="object"&&ut!==null?lt.context=eh(ut):(ut=Zf(tt)?Xf:H$3.current,lt.context=Yf(et,ut)),lt.state=et.memoizedState,ut=tt.getDerivedStateFromProps,typeof ut=="function"&&(Di(et,tt,ut,rt),lt.state=et.memoizedState),typeof tt.getDerivedStateFromProps=="function"||typeof lt.getSnapshotBeforeUpdate=="function"||typeof lt.UNSAFE_componentWillMount!="function"&&typeof lt.componentWillMount!="function"||(tt=lt.state,typeof lt.componentWillMount=="function"&&lt.componentWillMount(),typeof lt.UNSAFE_componentWillMount=="function"&&lt.UNSAFE_componentWillMount(),tt!==lt.state&&Ei.enqueueReplaceState(lt,lt.state,null),qh(et,rt,lt,nt),lt.state=et.memoizedState),typeof lt.componentDidMount=="function"&&(et.flags|=4194308)}function Ji(et,tt){try{var rt="",nt=tt;do rt+=Pa(nt),nt=nt.return;while(nt);var lt=rt}catch(ut){lt=`
Error generating stack: `+ut.message+`
`+ut.stack}return{value:et,source:tt,stack:lt,digest:null}}function Ki(et,tt,rt){return{value:et,source:null,stack:rt??null,digest:tt??null}}function Li(et,tt){try{console.error(tt.value)}catch(rt){setTimeout(function(){throw rt})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(et,tt,rt){rt=mh(-1,rt),rt.tag=3,rt.payload={element:null};var nt=tt.value;return rt.callback=function(){Oi||(Oi=!0,Pi=nt),Li(et,tt)},rt}function Qi(et,tt,rt){rt=mh(-1,rt),rt.tag=3;var nt=et.type.getDerivedStateFromError;if(typeof nt=="function"){var lt=tt.value;rt.payload=function(){return nt(lt)},rt.callback=function(){Li(et,tt)}}var ut=et.stateNode;return ut!==null&&typeof ut.componentDidCatch=="function"&&(rt.callback=function(){Li(et,tt),typeof nt!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var dt=tt.stack;this.componentDidCatch(tt.value,{componentStack:dt!==null?dt:""})}),rt}function Si(et,tt,rt){var nt=et.pingCache;if(nt===null){nt=et.pingCache=new Mi;var lt=new Set;nt.set(tt,lt)}else lt=nt.get(tt),lt===void 0&&(lt=new Set,nt.set(tt,lt));lt.has(rt)||(lt.add(rt),et=Ti.bind(null,et,tt,rt),tt.then(et,et))}function Ui(et){do{var tt;if((tt=et.tag===13)&&(tt=et.memoizedState,tt=tt!==null?tt.dehydrated!==null:!0),tt)return et;et=et.return}while(et!==null);return null}function Vi(et,tt,rt,nt,lt){return et.mode&1?(et.flags|=65536,et.lanes=lt,et):(et===tt?et.flags|=65536:(et.flags|=128,rt.flags|=131072,rt.flags&=-52805,rt.tag===1&&(rt.alternate===null?rt.tag=17:(tt=mh(-1,1),tt.tag=2,nh(rt,tt,1))),rt.lanes|=1),et)}var Wi=ua.ReactCurrentOwner,dh$1=!1;function Xi(et,tt,rt,nt){tt.child=et===null?Vg(tt,null,rt,nt):Ug(tt,et.child,rt,nt)}function Yi(et,tt,rt,nt,lt){rt=rt.render;var ut=tt.ref;return ch$1(tt,lt),nt=Nh(et,tt,rt,nt,ut,lt),rt=Sh(),et!==null&&!dh$1?(tt.updateQueue=et.updateQueue,tt.flags&=-2053,et.lanes&=~lt,Zi(et,tt,lt)):(I$4&&rt&&vg(tt),tt.flags|=1,Xi(et,tt,nt,lt),tt.child)}function $i(et,tt,rt,nt,lt){if(et===null){var ut=rt.type;return typeof ut=="function"&&!aj(ut)&&ut.defaultProps===void 0&&rt.compare===null&&rt.defaultProps===void 0?(tt.tag=15,tt.type=ut,bj(et,tt,ut,nt,lt)):(et=Rg(rt.type,null,nt,tt,tt.mode,lt),et.ref=tt.ref,et.return=tt,tt.child=et)}if(ut=et.child,!(et.lanes&lt)){var dt=ut.memoizedProps;if(rt=rt.compare,rt=rt!==null?rt:Ie$2,rt(dt,nt)&&et.ref===tt.ref)return Zi(et,tt,lt)}return tt.flags|=1,et=Pg(ut,nt),et.ref=tt.ref,et.return=tt,tt.child=et}function bj(et,tt,rt,nt,lt){if(et!==null){var ut=et.memoizedProps;if(Ie$2(ut,nt)&&et.ref===tt.ref)if(dh$1=!1,tt.pendingProps=nt=ut,(et.lanes&lt)!==0)et.flags&131072&&(dh$1=!0);else return tt.lanes=et.lanes,Zi(et,tt,lt)}return cj(et,tt,rt,nt,lt)}function dj(et,tt,rt){var nt=tt.pendingProps,lt=nt.children,ut=et!==null?et.memoizedState:null;if(nt.mode==="hidden")if(!(tt.mode&1))tt.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$3(ej,fj),fj|=rt;else{if(!(rt&1073741824))return et=ut!==null?ut.baseLanes|rt:rt,tt.lanes=tt.childLanes=1073741824,tt.memoizedState={baseLanes:et,cachePool:null,transitions:null},tt.updateQueue=null,G$3(ej,fj),fj|=et,null;tt.memoizedState={baseLanes:0,cachePool:null,transitions:null},nt=ut!==null?ut.baseLanes:rt,G$3(ej,fj),fj|=nt}else ut!==null?(nt=ut.baseLanes|rt,tt.memoizedState=null):nt=rt,G$3(ej,fj),fj|=nt;return Xi(et,tt,lt,rt),tt.child}function gj(et,tt){var rt=tt.ref;(et===null&&rt!==null||et!==null&&et.ref!==rt)&&(tt.flags|=512,tt.flags|=2097152)}function cj(et,tt,rt,nt,lt){var ut=Zf(rt)?Xf:H$3.current;return ut=Yf(tt,ut),ch$1(tt,lt),rt=Nh(et,tt,rt,nt,ut,lt),nt=Sh(),et!==null&&!dh$1?(tt.updateQueue=et.updateQueue,tt.flags&=-2053,et.lanes&=~lt,Zi(et,tt,lt)):(I$4&&nt&&vg(tt),tt.flags|=1,Xi(et,tt,rt,lt),tt.child)}function hj(et,tt,rt,nt,lt){if(Zf(rt)){var ut=!0;cg(tt)}else ut=!1;if(ch$1(tt,lt),tt.stateNode===null)ij(et,tt),Gi(tt,rt,nt),Ii(tt,rt,nt,lt),nt=!0;else if(et===null){var dt=tt.stateNode,pt=tt.memoizedProps;dt.props=pt;var ht=dt.context,mt=rt.contextType;typeof mt=="object"&&mt!==null?mt=eh(mt):(mt=Zf(rt)?Xf:H$3.current,mt=Yf(tt,mt));var xt=rt.getDerivedStateFromProps,Mt=typeof xt=="function"||typeof dt.getSnapshotBeforeUpdate=="function";Mt||typeof dt.UNSAFE_componentWillReceiveProps!="function"&&typeof dt.componentWillReceiveProps!="function"||(pt!==nt||ht!==mt)&&Hi(tt,dt,nt,mt),jh=!1;var vt=tt.memoizedState;dt.state=vt,qh(tt,nt,dt,lt),ht=tt.memoizedState,pt!==nt||vt!==ht||Wf.current||jh?(typeof xt=="function"&&(Di(tt,rt,xt,nt),ht=tt.memoizedState),(pt=jh||Fi(tt,rt,pt,nt,vt,ht,mt))?(Mt||typeof dt.UNSAFE_componentWillMount!="function"&&typeof dt.componentWillMount!="function"||(typeof dt.componentWillMount=="function"&&dt.componentWillMount(),typeof dt.UNSAFE_componentWillMount=="function"&&dt.UNSAFE_componentWillMount()),typeof dt.componentDidMount=="function"&&(tt.flags|=4194308)):(typeof dt.componentDidMount=="function"&&(tt.flags|=4194308),tt.memoizedProps=nt,tt.memoizedState=ht),dt.props=nt,dt.state=ht,dt.context=mt,nt=pt):(typeof dt.componentDidMount=="function"&&(tt.flags|=4194308),nt=!1)}else{dt=tt.stateNode,lh(et,tt),pt=tt.memoizedProps,mt=tt.type===tt.elementType?pt:Ci(tt.type,pt),dt.props=mt,Mt=tt.pendingProps,vt=dt.context,ht=rt.contextType,typeof ht=="object"&&ht!==null?ht=eh(ht):(ht=Zf(rt)?Xf:H$3.current,ht=Yf(tt,ht));var Ot=rt.getDerivedStateFromProps;(xt=typeof Ot=="function"||typeof dt.getSnapshotBeforeUpdate=="function")||typeof dt.UNSAFE_componentWillReceiveProps!="function"&&typeof dt.componentWillReceiveProps!="function"||(pt!==Mt||vt!==ht)&&Hi(tt,dt,nt,ht),jh=!1,vt=tt.memoizedState,dt.state=vt,qh(tt,nt,dt,lt);var At=tt.memoizedState;pt!==Mt||vt!==At||Wf.current||jh?(typeof Ot=="function"&&(Di(tt,rt,Ot,nt),At=tt.memoizedState),(mt=jh||Fi(tt,rt,mt,nt,vt,At,ht)||!1)?(xt||typeof dt.UNSAFE_componentWillUpdate!="function"&&typeof dt.componentWillUpdate!="function"||(typeof dt.componentWillUpdate=="function"&&dt.componentWillUpdate(nt,At,ht),typeof dt.UNSAFE_componentWillUpdate=="function"&&dt.UNSAFE_componentWillUpdate(nt,At,ht)),typeof dt.componentDidUpdate=="function"&&(tt.flags|=4),typeof dt.getSnapshotBeforeUpdate=="function"&&(tt.flags|=1024)):(typeof dt.componentDidUpdate!="function"||pt===et.memoizedProps&&vt===et.memoizedState||(tt.flags|=4),typeof dt.getSnapshotBeforeUpdate!="function"||pt===et.memoizedProps&&vt===et.memoizedState||(tt.flags|=1024),tt.memoizedProps=nt,tt.memoizedState=At),dt.props=nt,dt.state=At,dt.context=ht,nt=mt):(typeof dt.componentDidUpdate!="function"||pt===et.memoizedProps&&vt===et.memoizedState||(tt.flags|=4),typeof dt.getSnapshotBeforeUpdate!="function"||pt===et.memoizedProps&&vt===et.memoizedState||(tt.flags|=1024),nt=!1)}return jj(et,tt,rt,nt,ut,lt)}function jj(et,tt,rt,nt,lt,ut){gj(et,tt);var dt=(tt.flags&128)!==0;if(!nt&&!dt)return lt&&dg(tt,rt,!1),Zi(et,tt,ut);nt=tt.stateNode,Wi.current=tt;var pt=dt&&typeof rt.getDerivedStateFromError!="function"?null:nt.render();return tt.flags|=1,et!==null&&dt?(tt.child=Ug(tt,et.child,null,ut),tt.child=Ug(tt,null,pt,ut)):Xi(et,tt,pt,ut),tt.memoizedState=nt.state,lt&&dg(tt,rt,!0),tt.child}function kj(et){var tt=et.stateNode;tt.pendingContext?ag(et,tt.pendingContext,tt.pendingContext!==tt.context):tt.context&&ag(et,tt.context,!1),yh(et,tt.containerInfo)}function lj(et,tt,rt,nt,lt){return Ig(),Jg(lt),tt.flags|=256,Xi(et,tt,rt,nt),tt.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(et){return{baseLanes:et,cachePool:null,transitions:null}}function oj(et,tt,rt){var nt=tt.pendingProps,lt=L$2.current,ut=!1,dt=(tt.flags&128)!==0,pt;if((pt=dt)||(pt=et!==null&&et.memoizedState===null?!1:(lt&2)!==0),pt?(ut=!0,tt.flags&=-129):(et===null||et.memoizedState!==null)&&(lt|=1),G$3(L$2,lt&1),et===null)return Eg(tt),et=tt.memoizedState,et!==null&&(et=et.dehydrated,et!==null)?(tt.mode&1?et.data==="$!"?tt.lanes=8:tt.lanes=1073741824:tt.lanes=1,null):(dt=nt.children,et=nt.fallback,ut?(nt=tt.mode,ut=tt.child,dt={mode:"hidden",children:dt},!(nt&1)&&ut!==null?(ut.childLanes=0,ut.pendingProps=dt):ut=pj(dt,nt,0,null),et=Tg(et,nt,rt,null),ut.return=tt,et.return=tt,ut.sibling=et,tt.child=ut,tt.child.memoizedState=nj(rt),tt.memoizedState=mj,et):qj(tt,dt));if(lt=et.memoizedState,lt!==null&&(pt=lt.dehydrated,pt!==null))return rj(et,tt,dt,nt,pt,lt,rt);if(ut){ut=nt.fallback,dt=tt.mode,lt=et.child,pt=lt.sibling;var ht={mode:"hidden",children:nt.children};return!(dt&1)&&tt.child!==lt?(nt=tt.child,nt.childLanes=0,nt.pendingProps=ht,tt.deletions=null):(nt=Pg(lt,ht),nt.subtreeFlags=lt.subtreeFlags&14680064),pt!==null?ut=Pg(pt,ut):(ut=Tg(ut,dt,rt,null),ut.flags|=2),ut.return=tt,nt.return=tt,nt.sibling=ut,tt.child=nt,nt=ut,ut=tt.child,dt=et.child.memoizedState,dt=dt===null?nj(rt):{baseLanes:dt.baseLanes|rt,cachePool:null,transitions:dt.transitions},ut.memoizedState=dt,ut.childLanes=et.childLanes&~rt,tt.memoizedState=mj,nt}return ut=et.child,et=ut.sibling,nt=Pg(ut,{mode:"visible",children:nt.children}),!(tt.mode&1)&&(nt.lanes=rt),nt.return=tt,nt.sibling=null,et!==null&&(rt=tt.deletions,rt===null?(tt.deletions=[et],tt.flags|=16):rt.push(et)),tt.child=nt,tt.memoizedState=null,nt}function qj(et,tt){return tt=pj({mode:"visible",children:tt},et.mode,0,null),tt.return=et,et.child=tt}function sj(et,tt,rt,nt){return nt!==null&&Jg(nt),Ug(tt,et.child,null,rt),et=qj(tt,tt.pendingProps.children),et.flags|=2,tt.memoizedState=null,et}function rj(et,tt,rt,nt,lt,ut,dt){if(rt)return tt.flags&256?(tt.flags&=-257,nt=Ki(Error(p$7(422))),sj(et,tt,dt,nt)):tt.memoizedState!==null?(tt.child=et.child,tt.flags|=128,null):(ut=nt.fallback,lt=tt.mode,nt=pj({mode:"visible",children:nt.children},lt,0,null),ut=Tg(ut,lt,dt,null),ut.flags|=2,nt.return=tt,ut.return=tt,nt.sibling=ut,tt.child=nt,tt.mode&1&&Ug(tt,et.child,null,dt),tt.child.memoizedState=nj(dt),tt.memoizedState=mj,ut);if(!(tt.mode&1))return sj(et,tt,dt,null);if(lt.data==="$!"){if(nt=lt.nextSibling&&lt.nextSibling.dataset,nt)var pt=nt.dgst;return nt=pt,ut=Error(p$7(419)),nt=Ki(ut,nt,void 0),sj(et,tt,dt,nt)}if(pt=(dt&et.childLanes)!==0,dh$1||pt){if(nt=Q$3,nt!==null){switch(dt&-dt){case 4:lt=2;break;case 16:lt=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:lt=32;break;case 536870912:lt=268435456;break;default:lt=0}lt=lt&(nt.suspendedLanes|dt)?0:lt,lt!==0&&lt!==ut.retryLane&&(ut.retryLane=lt,ih(et,lt),gi(nt,et,lt,-1))}return tj(),nt=Ki(Error(p$7(421))),sj(et,tt,dt,nt)}return lt.data==="$?"?(tt.flags|=128,tt.child=et.child,tt=uj.bind(null,et),lt._reactRetry=tt,null):(et=ut.treeContext,yg=Lf(lt.nextSibling),xg=tt,I$4=!0,zg=null,et!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=et.id,sg=et.overflow,qg=tt),tt=qj(tt,nt.children),tt.flags|=4096,tt)}function vj(et,tt,rt){et.lanes|=tt;var nt=et.alternate;nt!==null&&(nt.lanes|=tt),bh(et.return,tt,rt)}function wj(et,tt,rt,nt,lt){var ut=et.memoizedState;ut===null?et.memoizedState={isBackwards:tt,rendering:null,renderingStartTime:0,last:nt,tail:rt,tailMode:lt}:(ut.isBackwards=tt,ut.rendering=null,ut.renderingStartTime=0,ut.last=nt,ut.tail=rt,ut.tailMode=lt)}function xj(et,tt,rt){var nt=tt.pendingProps,lt=nt.revealOrder,ut=nt.tail;if(Xi(et,tt,nt.children,rt),nt=L$2.current,nt&2)nt=nt&1|2,tt.flags|=128;else{if(et!==null&&et.flags&128)e:for(et=tt.child;et!==null;){if(et.tag===13)et.memoizedState!==null&&vj(et,rt,tt);else if(et.tag===19)vj(et,rt,tt);else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===tt)break e;for(;et.sibling===null;){if(et.return===null||et.return===tt)break e;et=et.return}et.sibling.return=et.return,et=et.sibling}nt&=1}if(G$3(L$2,nt),!(tt.mode&1))tt.memoizedState=null;else switch(lt){case"forwards":for(rt=tt.child,lt=null;rt!==null;)et=rt.alternate,et!==null&&Ch$1(et)===null&&(lt=rt),rt=rt.sibling;rt=lt,rt===null?(lt=tt.child,tt.child=null):(lt=rt.sibling,rt.sibling=null),wj(tt,!1,lt,rt,ut);break;case"backwards":for(rt=null,lt=tt.child,tt.child=null;lt!==null;){if(et=lt.alternate,et!==null&&Ch$1(et)===null){tt.child=lt;break}et=lt.sibling,lt.sibling=rt,rt=lt,lt=et}wj(tt,!0,rt,null,ut);break;case"together":wj(tt,!1,null,null,void 0);break;default:tt.memoizedState=null}return tt.child}function ij(et,tt){!(tt.mode&1)&&et!==null&&(et.alternate=null,tt.alternate=null,tt.flags|=2)}function Zi(et,tt,rt){if(et!==null&&(tt.dependencies=et.dependencies),rh$1|=tt.lanes,!(rt&tt.childLanes))return null;if(et!==null&&tt.child!==et.child)throw Error(p$7(153));if(tt.child!==null){for(et=tt.child,rt=Pg(et,et.pendingProps),tt.child=rt,rt.return=tt;et.sibling!==null;)et=et.sibling,rt=rt.sibling=Pg(et,et.pendingProps),rt.return=tt;rt.sibling=null}return tt.child}function yj(et,tt,rt){switch(tt.tag){case 3:kj(tt),Ig();break;case 5:Ah(tt);break;case 1:Zf(tt.type)&&cg(tt);break;case 4:yh(tt,tt.stateNode.containerInfo);break;case 10:var nt=tt.type._context,lt=tt.memoizedProps.value;G$3(Wg,nt._currentValue),nt._currentValue=lt;break;case 13:if(nt=tt.memoizedState,nt!==null)return nt.dehydrated!==null?(G$3(L$2,L$2.current&1),tt.flags|=128,null):rt&tt.child.childLanes?oj(et,tt,rt):(G$3(L$2,L$2.current&1),et=Zi(et,tt,rt),et!==null?et.sibling:null);G$3(L$2,L$2.current&1);break;case 19:if(nt=(rt&tt.childLanes)!==0,et.flags&128){if(nt)return xj(et,tt,rt);tt.flags|=128}if(lt=tt.memoizedState,lt!==null&&(lt.rendering=null,lt.tail=null,lt.lastEffect=null),G$3(L$2,L$2.current),nt)break;return null;case 22:case 23:return tt.lanes=0,dj(et,tt,rt)}return Zi(et,tt,rt)}var zj,Aj,Bj,Cj;zj=function(et,tt){for(var rt=tt.child;rt!==null;){if(rt.tag===5||rt.tag===6)et.appendChild(rt.stateNode);else if(rt.tag!==4&&rt.child!==null){rt.child.return=rt,rt=rt.child;continue}if(rt===tt)break;for(;rt.sibling===null;){if(rt.return===null||rt.return===tt)return;rt=rt.return}rt.sibling.return=rt.return,rt=rt.sibling}};Aj=function(){};Bj=function(et,tt,rt,nt){var lt=et.memoizedProps;if(lt!==nt){et=tt.stateNode,xh(uh.current);var ut=null;switch(rt){case"input":lt=Ya(et,lt),nt=Ya(et,nt),ut=[];break;case"select":lt=A$5({},lt,{value:void 0}),nt=A$5({},nt,{value:void 0}),ut=[];break;case"textarea":lt=gb(et,lt),nt=gb(et,nt),ut=[];break;default:typeof lt.onClick!="function"&&typeof nt.onClick=="function"&&(et.onclick=Bf)}ub(rt,nt);var dt;rt=null;for(mt in lt)if(!nt.hasOwnProperty(mt)&&lt.hasOwnProperty(mt)&&lt[mt]!=null)if(mt==="style"){var pt=lt[mt];for(dt in pt)pt.hasOwnProperty(dt)&&(rt||(rt={}),rt[dt]="")}else mt!=="dangerouslySetInnerHTML"&&mt!=="children"&&mt!=="suppressContentEditableWarning"&&mt!=="suppressHydrationWarning"&&mt!=="autoFocus"&&(ea.hasOwnProperty(mt)?ut||(ut=[]):(ut=ut||[]).push(mt,null));for(mt in nt){var ht=nt[mt];if(pt=lt!=null?lt[mt]:void 0,nt.hasOwnProperty(mt)&&ht!==pt&&(ht!=null||pt!=null))if(mt==="style")if(pt){for(dt in pt)!pt.hasOwnProperty(dt)||ht&&ht.hasOwnProperty(dt)||(rt||(rt={}),rt[dt]="");for(dt in ht)ht.hasOwnProperty(dt)&&pt[dt]!==ht[dt]&&(rt||(rt={}),rt[dt]=ht[dt])}else rt||(ut||(ut=[]),ut.push(mt,rt)),rt=ht;else mt==="dangerouslySetInnerHTML"?(ht=ht?ht.__html:void 0,pt=pt?pt.__html:void 0,ht!=null&&pt!==ht&&(ut=ut||[]).push(mt,ht)):mt==="children"?typeof ht!="string"&&typeof ht!="number"||(ut=ut||[]).push(mt,""+ht):mt!=="suppressContentEditableWarning"&&mt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(mt)?(ht!=null&&mt==="onScroll"&&D$4("scroll",et),ut||pt===ht||(ut=[])):(ut=ut||[]).push(mt,ht))}rt&&(ut=ut||[]).push("style",rt);var mt=ut;(tt.updateQueue=mt)&&(tt.flags|=4)}};Cj=function(et,tt,rt,nt){rt!==nt&&(tt.flags|=4)};function Dj(et,tt){if(!I$4)switch(et.tailMode){case"hidden":tt=et.tail;for(var rt=null;tt!==null;)tt.alternate!==null&&(rt=tt),tt=tt.sibling;rt===null?et.tail=null:rt.sibling=null;break;case"collapsed":rt=et.tail;for(var nt=null;rt!==null;)rt.alternate!==null&&(nt=rt),rt=rt.sibling;nt===null?tt||et.tail===null?et.tail=null:et.tail.sibling=null:nt.sibling=null}}function S$2(et){var tt=et.alternate!==null&&et.alternate.child===et.child,rt=0,nt=0;if(tt)for(var lt=et.child;lt!==null;)rt|=lt.lanes|lt.childLanes,nt|=lt.subtreeFlags&14680064,nt|=lt.flags&14680064,lt.return=et,lt=lt.sibling;else for(lt=et.child;lt!==null;)rt|=lt.lanes|lt.childLanes,nt|=lt.subtreeFlags,nt|=lt.flags,lt.return=et,lt=lt.sibling;return et.subtreeFlags|=nt,et.childLanes=rt,tt}function Ej(et,tt,rt){var nt=tt.pendingProps;switch(wg(tt),tt.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$2(tt),null;case 1:return Zf(tt.type)&&$f(),S$2(tt),null;case 3:return nt=tt.stateNode,zh(),E$3(Wf),E$3(H$3),Eh(),nt.pendingContext&&(nt.context=nt.pendingContext,nt.pendingContext=null),(et===null||et.child===null)&&(Gg(tt)?tt.flags|=4:et===null||et.memoizedState.isDehydrated&&!(tt.flags&256)||(tt.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(et,tt),S$2(tt),null;case 5:Bh(tt);var lt=xh(wh.current);if(rt=tt.type,et!==null&&tt.stateNode!=null)Bj(et,tt,rt,nt,lt),et.ref!==tt.ref&&(tt.flags|=512,tt.flags|=2097152);else{if(!nt){if(tt.stateNode===null)throw Error(p$7(166));return S$2(tt),null}if(et=xh(uh.current),Gg(tt)){nt=tt.stateNode,rt=tt.type;var ut=tt.memoizedProps;switch(nt[Of]=tt,nt[Pf]=ut,et=(tt.mode&1)!==0,rt){case"dialog":D$4("cancel",nt),D$4("close",nt);break;case"iframe":case"object":case"embed":D$4("load",nt);break;case"video":case"audio":for(lt=0;lt<lf.length;lt++)D$4(lf[lt],nt);break;case"source":D$4("error",nt);break;case"img":case"image":case"link":D$4("error",nt),D$4("load",nt);break;case"details":D$4("toggle",nt);break;case"input":Za(nt,ut),D$4("invalid",nt);break;case"select":nt._wrapperState={wasMultiple:!!ut.multiple},D$4("invalid",nt);break;case"textarea":hb(nt,ut),D$4("invalid",nt)}ub(rt,ut),lt=null;for(var dt in ut)if(ut.hasOwnProperty(dt)){var pt=ut[dt];dt==="children"?typeof pt=="string"?nt.textContent!==pt&&(ut.suppressHydrationWarning!==!0&&Af(nt.textContent,pt,et),lt=["children",pt]):typeof pt=="number"&&nt.textContent!==""+pt&&(ut.suppressHydrationWarning!==!0&&Af(nt.textContent,pt,et),lt=["children",""+pt]):ea.hasOwnProperty(dt)&&pt!=null&&dt==="onScroll"&&D$4("scroll",nt)}switch(rt){case"input":Va(nt),db(nt,ut,!0);break;case"textarea":Va(nt),jb(nt);break;case"select":case"option":break;default:typeof ut.onClick=="function"&&(nt.onclick=Bf)}nt=lt,tt.updateQueue=nt,nt!==null&&(tt.flags|=4)}else{dt=lt.nodeType===9?lt:lt.ownerDocument,et==="http://www.w3.org/1999/xhtml"&&(et=kb(rt)),et==="http://www.w3.org/1999/xhtml"?rt==="script"?(et=dt.createElement("div"),et.innerHTML="<script><\/script>",et=et.removeChild(et.firstChild)):typeof nt.is=="string"?et=dt.createElement(rt,{is:nt.is}):(et=dt.createElement(rt),rt==="select"&&(dt=et,nt.multiple?dt.multiple=!0:nt.size&&(dt.size=nt.size))):et=dt.createElementNS(et,rt),et[Of]=tt,et[Pf]=nt,zj(et,tt,!1,!1),tt.stateNode=et;e:{switch(dt=vb(rt,nt),rt){case"dialog":D$4("cancel",et),D$4("close",et),lt=nt;break;case"iframe":case"object":case"embed":D$4("load",et),lt=nt;break;case"video":case"audio":for(lt=0;lt<lf.length;lt++)D$4(lf[lt],et);lt=nt;break;case"source":D$4("error",et),lt=nt;break;case"img":case"image":case"link":D$4("error",et),D$4("load",et),lt=nt;break;case"details":D$4("toggle",et),lt=nt;break;case"input":Za(et,nt),lt=Ya(et,nt),D$4("invalid",et);break;case"option":lt=nt;break;case"select":et._wrapperState={wasMultiple:!!nt.multiple},lt=A$5({},nt,{value:void 0}),D$4("invalid",et);break;case"textarea":hb(et,nt),lt=gb(et,nt),D$4("invalid",et);break;default:lt=nt}ub(rt,lt),pt=lt;for(ut in pt)if(pt.hasOwnProperty(ut)){var ht=pt[ut];ut==="style"?sb(et,ht):ut==="dangerouslySetInnerHTML"?(ht=ht?ht.__html:void 0,ht!=null&&nb(et,ht)):ut==="children"?typeof ht=="string"?(rt!=="textarea"||ht!=="")&&ob(et,ht):typeof ht=="number"&&ob(et,""+ht):ut!=="suppressContentEditableWarning"&&ut!=="suppressHydrationWarning"&&ut!=="autoFocus"&&(ea.hasOwnProperty(ut)?ht!=null&&ut==="onScroll"&&D$4("scroll",et):ht!=null&&ta(et,ut,ht,dt))}switch(rt){case"input":Va(et),db(et,nt,!1);break;case"textarea":Va(et),jb(et);break;case"option":nt.value!=null&&et.setAttribute("value",""+Sa(nt.value));break;case"select":et.multiple=!!nt.multiple,ut=nt.value,ut!=null?fb(et,!!nt.multiple,ut,!1):nt.defaultValue!=null&&fb(et,!!nt.multiple,nt.defaultValue,!0);break;default:typeof lt.onClick=="function"&&(et.onclick=Bf)}switch(rt){case"button":case"input":case"select":case"textarea":nt=!!nt.autoFocus;break e;case"img":nt=!0;break e;default:nt=!1}}nt&&(tt.flags|=4)}tt.ref!==null&&(tt.flags|=512,tt.flags|=2097152)}return S$2(tt),null;case 6:if(et&&tt.stateNode!=null)Cj(et,tt,et.memoizedProps,nt);else{if(typeof nt!="string"&&tt.stateNode===null)throw Error(p$7(166));if(rt=xh(wh.current),xh(uh.current),Gg(tt)){if(nt=tt.stateNode,rt=tt.memoizedProps,nt[Of]=tt,(ut=nt.nodeValue!==rt)&&(et=xg,et!==null))switch(et.tag){case 3:Af(nt.nodeValue,rt,(et.mode&1)!==0);break;case 5:et.memoizedProps.suppressHydrationWarning!==!0&&Af(nt.nodeValue,rt,(et.mode&1)!==0)}ut&&(tt.flags|=4)}else nt=(rt.nodeType===9?rt:rt.ownerDocument).createTextNode(nt),nt[Of]=tt,tt.stateNode=nt}return S$2(tt),null;case 13:if(E$3(L$2),nt=tt.memoizedState,et===null||et.memoizedState!==null&&et.memoizedState.dehydrated!==null){if(I$4&&yg!==null&&tt.mode&1&&!(tt.flags&128))Hg(),Ig(),tt.flags|=98560,ut=!1;else if(ut=Gg(tt),nt!==null&&nt.dehydrated!==null){if(et===null){if(!ut)throw Error(p$7(318));if(ut=tt.memoizedState,ut=ut!==null?ut.dehydrated:null,!ut)throw Error(p$7(317));ut[Of]=tt}else Ig(),!(tt.flags&128)&&(tt.memoizedState=null),tt.flags|=4;S$2(tt),ut=!1}else zg!==null&&(Fj(zg),zg=null),ut=!0;if(!ut)return tt.flags&65536?tt:null}return tt.flags&128?(tt.lanes=rt,tt):(nt=nt!==null,nt!==(et!==null&&et.memoizedState!==null)&&nt&&(tt.child.flags|=8192,tt.mode&1&&(et===null||L$2.current&1?T$2===0&&(T$2=3):tj())),tt.updateQueue!==null&&(tt.flags|=4),S$2(tt),null);case 4:return zh(),Aj(et,tt),et===null&&sf(tt.stateNode.containerInfo),S$2(tt),null;case 10:return ah(tt.type._context),S$2(tt),null;case 17:return Zf(tt.type)&&$f(),S$2(tt),null;case 19:if(E$3(L$2),ut=tt.memoizedState,ut===null)return S$2(tt),null;if(nt=(tt.flags&128)!==0,dt=ut.rendering,dt===null)if(nt)Dj(ut,!1);else{if(T$2!==0||et!==null&&et.flags&128)for(et=tt.child;et!==null;){if(dt=Ch$1(et),dt!==null){for(tt.flags|=128,Dj(ut,!1),nt=dt.updateQueue,nt!==null&&(tt.updateQueue=nt,tt.flags|=4),tt.subtreeFlags=0,nt=rt,rt=tt.child;rt!==null;)ut=rt,et=nt,ut.flags&=14680066,dt=ut.alternate,dt===null?(ut.childLanes=0,ut.lanes=et,ut.child=null,ut.subtreeFlags=0,ut.memoizedProps=null,ut.memoizedState=null,ut.updateQueue=null,ut.dependencies=null,ut.stateNode=null):(ut.childLanes=dt.childLanes,ut.lanes=dt.lanes,ut.child=dt.child,ut.subtreeFlags=0,ut.deletions=null,ut.memoizedProps=dt.memoizedProps,ut.memoizedState=dt.memoizedState,ut.updateQueue=dt.updateQueue,ut.type=dt.type,et=dt.dependencies,ut.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext}),rt=rt.sibling;return G$3(L$2,L$2.current&1|2),tt.child}et=et.sibling}ut.tail!==null&&B$4()>Gj&&(tt.flags|=128,nt=!0,Dj(ut,!1),tt.lanes=4194304)}else{if(!nt)if(et=Ch$1(dt),et!==null){if(tt.flags|=128,nt=!0,rt=et.updateQueue,rt!==null&&(tt.updateQueue=rt,tt.flags|=4),Dj(ut,!0),ut.tail===null&&ut.tailMode==="hidden"&&!dt.alternate&&!I$4)return S$2(tt),null}else 2*B$4()-ut.renderingStartTime>Gj&&rt!==1073741824&&(tt.flags|=128,nt=!0,Dj(ut,!1),tt.lanes=4194304);ut.isBackwards?(dt.sibling=tt.child,tt.child=dt):(rt=ut.last,rt!==null?rt.sibling=dt:tt.child=dt,ut.last=dt)}return ut.tail!==null?(tt=ut.tail,ut.rendering=tt,ut.tail=tt.sibling,ut.renderingStartTime=B$4(),tt.sibling=null,rt=L$2.current,G$3(L$2,nt?rt&1|2:rt&1),tt):(S$2(tt),null);case 22:case 23:return Hj(),nt=tt.memoizedState!==null,et!==null&&et.memoizedState!==null!==nt&&(tt.flags|=8192),nt&&tt.mode&1?fj&1073741824&&(S$2(tt),tt.subtreeFlags&6&&(tt.flags|=8192)):S$2(tt),null;case 24:return null;case 25:return null}throw Error(p$7(156,tt.tag))}function Ij(et,tt){switch(wg(tt),tt.tag){case 1:return Zf(tt.type)&&$f(),et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 3:return zh(),E$3(Wf),E$3(H$3),Eh(),et=tt.flags,et&65536&&!(et&128)?(tt.flags=et&-65537|128,tt):null;case 5:return Bh(tt),null;case 13:if(E$3(L$2),et=tt.memoizedState,et!==null&&et.dehydrated!==null){if(tt.alternate===null)throw Error(p$7(340));Ig()}return et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 19:return E$3(L$2),null;case 4:return zh(),null;case 10:return ah(tt.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U$1=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Lj(et,tt){var rt=et.ref;if(rt!==null)if(typeof rt=="function")try{rt(null)}catch(nt){W$7(et,tt,nt)}else rt.current=null}function Mj(et,tt,rt){try{rt()}catch(nt){W$7(et,tt,nt)}}var Nj=!1;function Oj(et,tt){if(Cf=dd,et=Me$1(),Ne$1(et)){if("selectionStart"in et)var rt={start:et.selectionStart,end:et.selectionEnd};else e:{rt=(rt=et.ownerDocument)&&rt.defaultView||window;var nt=rt.getSelection&&rt.getSelection();if(nt&&nt.rangeCount!==0){rt=nt.anchorNode;var lt=nt.anchorOffset,ut=nt.focusNode;nt=nt.focusOffset;try{rt.nodeType,ut.nodeType}catch{rt=null;break e}var dt=0,pt=-1,ht=-1,mt=0,xt=0,Mt=et,vt=null;t:for(;;){for(var Ot;Mt!==rt||lt!==0&&Mt.nodeType!==3||(pt=dt+lt),Mt!==ut||nt!==0&&Mt.nodeType!==3||(ht=dt+nt),Mt.nodeType===3&&(dt+=Mt.nodeValue.length),(Ot=Mt.firstChild)!==null;)vt=Mt,Mt=Ot;for(;;){if(Mt===et)break t;if(vt===rt&&++mt===lt&&(pt=dt),vt===ut&&++xt===nt&&(ht=dt),(Ot=Mt.nextSibling)!==null)break;Mt=vt,vt=Mt.parentNode}Mt=Ot}rt=pt===-1||ht===-1?null:{start:pt,end:ht}}else rt=null}rt=rt||{start:0,end:0}}else rt=null;for(Df={focusedElem:et,selectionRange:rt},dd=!1,V$1=tt;V$1!==null;)if(tt=V$1,et=tt.child,(tt.subtreeFlags&1028)!==0&&et!==null)et.return=tt,V$1=et;else for(;V$1!==null;){tt=V$1;try{var At=tt.alternate;if(tt.flags&1024)switch(tt.tag){case 0:case 11:case 15:break;case 1:if(At!==null){var Rt=At.memoizedProps,zt=At.memoizedState,Tt=tt.stateNode,Ct=Tt.getSnapshotBeforeUpdate(tt.elementType===tt.type?Rt:Ci(tt.type,Rt),zt);Tt.__reactInternalSnapshotBeforeUpdate=Ct}break;case 3:var It=tt.stateNode.containerInfo;It.nodeType===1?It.textContent="":It.nodeType===9&&It.documentElement&&It.removeChild(It.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$7(163))}}catch(Dt){W$7(tt,tt.return,Dt)}if(et=tt.sibling,et!==null){et.return=tt.return,V$1=et;break}V$1=tt.return}return At=Nj,Nj=!1,At}function Pj(et,tt,rt){var nt=tt.updateQueue;if(nt=nt!==null?nt.lastEffect:null,nt!==null){var lt=nt=nt.next;do{if((lt.tag&et)===et){var ut=lt.destroy;lt.destroy=void 0,ut!==void 0&&Mj(tt,rt,ut)}lt=lt.next}while(lt!==nt)}}function Qj(et,tt){if(tt=tt.updateQueue,tt=tt!==null?tt.lastEffect:null,tt!==null){var rt=tt=tt.next;do{if((rt.tag&et)===et){var nt=rt.create;rt.destroy=nt()}rt=rt.next}while(rt!==tt)}}function Rj(et){var tt=et.ref;if(tt!==null){var rt=et.stateNode;switch(et.tag){case 5:et=rt;break;default:et=rt}typeof tt=="function"?tt(et):tt.current=et}}function Sj(et){var tt=et.alternate;tt!==null&&(et.alternate=null,Sj(tt)),et.child=null,et.deletions=null,et.sibling=null,et.tag===5&&(tt=et.stateNode,tt!==null&&(delete tt[Of],delete tt[Pf],delete tt[of],delete tt[Qf],delete tt[Rf])),et.stateNode=null,et.return=null,et.dependencies=null,et.memoizedProps=null,et.memoizedState=null,et.pendingProps=null,et.stateNode=null,et.updateQueue=null}function Tj(et){return et.tag===5||et.tag===3||et.tag===4}function Uj(et){e:for(;;){for(;et.sibling===null;){if(et.return===null||Tj(et.return))return null;et=et.return}for(et.sibling.return=et.return,et=et.sibling;et.tag!==5&&et.tag!==6&&et.tag!==18;){if(et.flags&2||et.child===null||et.tag===4)continue e;et.child.return=et,et=et.child}if(!(et.flags&2))return et.stateNode}}function Vj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.nodeType===8?rt.parentNode.insertBefore(et,tt):rt.insertBefore(et,tt):(rt.nodeType===8?(tt=rt.parentNode,tt.insertBefore(et,rt)):(tt=rt,tt.appendChild(et)),rt=rt._reactRootContainer,rt!=null||tt.onclick!==null||(tt.onclick=Bf));else if(nt!==4&&(et=et.child,et!==null))for(Vj(et,tt,rt),et=et.sibling;et!==null;)Vj(et,tt,rt),et=et.sibling}function Wj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.insertBefore(et,tt):rt.appendChild(et);else if(nt!==4&&(et=et.child,et!==null))for(Wj(et,tt,rt),et=et.sibling;et!==null;)Wj(et,tt,rt),et=et.sibling}var X$1=null,Xj=!1;function Yj(et,tt,rt){for(rt=rt.child;rt!==null;)Zj(et,tt,rt),rt=rt.sibling}function Zj(et,tt,rt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,rt)}catch{}switch(rt.tag){case 5:U$1||Lj(rt,tt);case 6:var nt=X$1,lt=Xj;X$1=null,Yj(et,tt,rt),X$1=nt,Xj=lt,X$1!==null&&(Xj?(et=X$1,rt=rt.stateNode,et.nodeType===8?et.parentNode.removeChild(rt):et.removeChild(rt)):X$1.removeChild(rt.stateNode));break;case 18:X$1!==null&&(Xj?(et=X$1,rt=rt.stateNode,et.nodeType===8?Kf(et.parentNode,rt):et.nodeType===1&&Kf(et,rt),bd(et)):Kf(X$1,rt.stateNode));break;case 4:nt=X$1,lt=Xj,X$1=rt.stateNode.containerInfo,Xj=!0,Yj(et,tt,rt),X$1=nt,Xj=lt;break;case 0:case 11:case 14:case 15:if(!U$1&&(nt=rt.updateQueue,nt!==null&&(nt=nt.lastEffect,nt!==null))){lt=nt=nt.next;do{var ut=lt,dt=ut.destroy;ut=ut.tag,dt!==void 0&&(ut&2||ut&4)&&Mj(rt,tt,dt),lt=lt.next}while(lt!==nt)}Yj(et,tt,rt);break;case 1:if(!U$1&&(Lj(rt,tt),nt=rt.stateNode,typeof nt.componentWillUnmount=="function"))try{nt.props=rt.memoizedProps,nt.state=rt.memoizedState,nt.componentWillUnmount()}catch(pt){W$7(rt,tt,pt)}Yj(et,tt,rt);break;case 21:Yj(et,tt,rt);break;case 22:rt.mode&1?(U$1=(nt=U$1)||rt.memoizedState!==null,Yj(et,tt,rt),U$1=nt):Yj(et,tt,rt);break;default:Yj(et,tt,rt)}}function ak(et){var tt=et.updateQueue;if(tt!==null){et.updateQueue=null;var rt=et.stateNode;rt===null&&(rt=et.stateNode=new Kj),tt.forEach(function(nt){var lt=bk.bind(null,et,nt);rt.has(nt)||(rt.add(nt),nt.then(lt,lt))})}}function ck(et,tt){var rt=tt.deletions;if(rt!==null)for(var nt=0;nt<rt.length;nt++){var lt=rt[nt];try{var ut=et,dt=tt,pt=dt;e:for(;pt!==null;){switch(pt.tag){case 5:X$1=pt.stateNode,Xj=!1;break e;case 3:X$1=pt.stateNode.containerInfo,Xj=!0;break e;case 4:X$1=pt.stateNode.containerInfo,Xj=!0;break e}pt=pt.return}if(X$1===null)throw Error(p$7(160));Zj(ut,dt,lt),X$1=null,Xj=!1;var ht=lt.alternate;ht!==null&&(ht.return=null),lt.return=null}catch(mt){W$7(lt,tt,mt)}}if(tt.subtreeFlags&12854)for(tt=tt.child;tt!==null;)dk(tt,et),tt=tt.sibling}function dk(et,tt){var rt=et.alternate,nt=et.flags;switch(et.tag){case 0:case 11:case 14:case 15:if(ck(tt,et),ek(et),nt&4){try{Pj(3,et,et.return),Qj(3,et)}catch(Rt){W$7(et,et.return,Rt)}try{Pj(5,et,et.return)}catch(Rt){W$7(et,et.return,Rt)}}break;case 1:ck(tt,et),ek(et),nt&512&&rt!==null&&Lj(rt,rt.return);break;case 5:if(ck(tt,et),ek(et),nt&512&&rt!==null&&Lj(rt,rt.return),et.flags&32){var lt=et.stateNode;try{ob(lt,"")}catch(Rt){W$7(et,et.return,Rt)}}if(nt&4&&(lt=et.stateNode,lt!=null)){var ut=et.memoizedProps,dt=rt!==null?rt.memoizedProps:ut,pt=et.type,ht=et.updateQueue;if(et.updateQueue=null,ht!==null)try{pt==="input"&&ut.type==="radio"&&ut.name!=null&&ab(lt,ut),vb(pt,dt);var mt=vb(pt,ut);for(dt=0;dt<ht.length;dt+=2){var xt=ht[dt],Mt=ht[dt+1];xt==="style"?sb(lt,Mt):xt==="dangerouslySetInnerHTML"?nb(lt,Mt):xt==="children"?ob(lt,Mt):ta(lt,xt,Mt,mt)}switch(pt){case"input":bb(lt,ut);break;case"textarea":ib(lt,ut);break;case"select":var vt=lt._wrapperState.wasMultiple;lt._wrapperState.wasMultiple=!!ut.multiple;var Ot=ut.value;Ot!=null?fb(lt,!!ut.multiple,Ot,!1):vt!==!!ut.multiple&&(ut.defaultValue!=null?fb(lt,!!ut.multiple,ut.defaultValue,!0):fb(lt,!!ut.multiple,ut.multiple?[]:"",!1))}lt[Pf]=ut}catch(Rt){W$7(et,et.return,Rt)}}break;case 6:if(ck(tt,et),ek(et),nt&4){if(et.stateNode===null)throw Error(p$7(162));lt=et.stateNode,ut=et.memoizedProps;try{lt.nodeValue=ut}catch(Rt){W$7(et,et.return,Rt)}}break;case 3:if(ck(tt,et),ek(et),nt&4&&rt!==null&&rt.memoizedState.isDehydrated)try{bd(tt.containerInfo)}catch(Rt){W$7(et,et.return,Rt)}break;case 4:ck(tt,et),ek(et);break;case 13:ck(tt,et),ek(et),lt=et.child,lt.flags&8192&&(ut=lt.memoizedState!==null,lt.stateNode.isHidden=ut,!ut||lt.alternate!==null&&lt.alternate.memoizedState!==null||(fk=B$4())),nt&4&&ak(et);break;case 22:if(xt=rt!==null&&rt.memoizedState!==null,et.mode&1?(U$1=(mt=U$1)||xt,ck(tt,et),U$1=mt):ck(tt,et),ek(et),nt&8192){if(mt=et.memoizedState!==null,(et.stateNode.isHidden=mt)&&!xt&&et.mode&1)for(V$1=et,xt=et.child;xt!==null;){for(Mt=V$1=xt;V$1!==null;){switch(vt=V$1,Ot=vt.child,vt.tag){case 0:case 11:case 14:case 15:Pj(4,vt,vt.return);break;case 1:Lj(vt,vt.return);var At=vt.stateNode;if(typeof At.componentWillUnmount=="function"){nt=vt,rt=vt.return;try{tt=nt,At.props=tt.memoizedProps,At.state=tt.memoizedState,At.componentWillUnmount()}catch(Rt){W$7(nt,rt,Rt)}}break;case 5:Lj(vt,vt.return);break;case 22:if(vt.memoizedState!==null){gk(Mt);continue}}Ot!==null?(Ot.return=vt,V$1=Ot):gk(Mt)}xt=xt.sibling}e:for(xt=null,Mt=et;;){if(Mt.tag===5){if(xt===null){xt=Mt;try{lt=Mt.stateNode,mt?(ut=lt.style,typeof ut.setProperty=="function"?ut.setProperty("display","none","important"):ut.display="none"):(pt=Mt.stateNode,ht=Mt.memoizedProps.style,dt=ht!=null&&ht.hasOwnProperty("display")?ht.display:null,pt.style.display=rb("display",dt))}catch(Rt){W$7(et,et.return,Rt)}}}else if(Mt.tag===6){if(xt===null)try{Mt.stateNode.nodeValue=mt?"":Mt.memoizedProps}catch(Rt){W$7(et,et.return,Rt)}}else if((Mt.tag!==22&&Mt.tag!==23||Mt.memoizedState===null||Mt===et)&&Mt.child!==null){Mt.child.return=Mt,Mt=Mt.child;continue}if(Mt===et)break e;for(;Mt.sibling===null;){if(Mt.return===null||Mt.return===et)break e;xt===Mt&&(xt=null),Mt=Mt.return}xt===Mt&&(xt=null),Mt.sibling.return=Mt.return,Mt=Mt.sibling}}break;case 19:ck(tt,et),ek(et),nt&4&&ak(et);break;case 21:break;default:ck(tt,et),ek(et)}}function ek(et){var tt=et.flags;if(tt&2){try{e:{for(var rt=et.return;rt!==null;){if(Tj(rt)){var nt=rt;break e}rt=rt.return}throw Error(p$7(160))}switch(nt.tag){case 5:var lt=nt.stateNode;nt.flags&32&&(ob(lt,""),nt.flags&=-33);var ut=Uj(et);Wj(et,ut,lt);break;case 3:case 4:var dt=nt.stateNode.containerInfo,pt=Uj(et);Vj(et,pt,dt);break;default:throw Error(p$7(161))}}catch(ht){W$7(et,et.return,ht)}et.flags&=-3}tt&4096&&(et.flags&=-4097)}function hk(et,tt,rt){V$1=et,ik(et)}function ik(et,tt,rt){for(var nt=(et.mode&1)!==0;V$1!==null;){var lt=V$1,ut=lt.child;if(lt.tag===22&&nt){var dt=lt.memoizedState!==null||Jj;if(!dt){var pt=lt.alternate,ht=pt!==null&&pt.memoizedState!==null||U$1;pt=Jj;var mt=U$1;if(Jj=dt,(U$1=ht)&&!mt)for(V$1=lt;V$1!==null;)dt=V$1,ht=dt.child,dt.tag===22&&dt.memoizedState!==null?jk(lt):ht!==null?(ht.return=dt,V$1=ht):jk(lt);for(;ut!==null;)V$1=ut,ik(ut),ut=ut.sibling;V$1=lt,Jj=pt,U$1=mt}kk(et)}else lt.subtreeFlags&8772&&ut!==null?(ut.return=lt,V$1=ut):kk(et)}}function kk(et){for(;V$1!==null;){var tt=V$1;if(tt.flags&8772){var rt=tt.alternate;try{if(tt.flags&8772)switch(tt.tag){case 0:case 11:case 15:U$1||Qj(5,tt);break;case 1:var nt=tt.stateNode;if(tt.flags&4&&!U$1)if(rt===null)nt.componentDidMount();else{var lt=tt.elementType===tt.type?rt.memoizedProps:Ci(tt.type,rt.memoizedProps);nt.componentDidUpdate(lt,rt.memoizedState,nt.__reactInternalSnapshotBeforeUpdate)}var ut=tt.updateQueue;ut!==null&&sh$1(tt,ut,nt);break;case 3:var dt=tt.updateQueue;if(dt!==null){if(rt=null,tt.child!==null)switch(tt.child.tag){case 5:rt=tt.child.stateNode;break;case 1:rt=tt.child.stateNode}sh$1(tt,dt,rt)}break;case 5:var pt=tt.stateNode;if(rt===null&&tt.flags&4){rt=pt;var ht=tt.memoizedProps;switch(tt.type){case"button":case"input":case"select":case"textarea":ht.autoFocus&&rt.focus();break;case"img":ht.src&&(rt.src=ht.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(tt.memoizedState===null){var mt=tt.alternate;if(mt!==null){var xt=mt.memoizedState;if(xt!==null){var Mt=xt.dehydrated;Mt!==null&&bd(Mt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$7(163))}U$1||tt.flags&512&&Rj(tt)}catch(vt){W$7(tt,tt.return,vt)}}if(tt===et){V$1=null;break}if(rt=tt.sibling,rt!==null){rt.return=tt.return,V$1=rt;break}V$1=tt.return}}function gk(et){for(;V$1!==null;){var tt=V$1;if(tt===et){V$1=null;break}var rt=tt.sibling;if(rt!==null){rt.return=tt.return,V$1=rt;break}V$1=tt.return}}function jk(et){for(;V$1!==null;){var tt=V$1;try{switch(tt.tag){case 0:case 11:case 15:var rt=tt.return;try{Qj(4,tt)}catch(ht){W$7(tt,rt,ht)}break;case 1:var nt=tt.stateNode;if(typeof nt.componentDidMount=="function"){var lt=tt.return;try{nt.componentDidMount()}catch(ht){W$7(tt,lt,ht)}}var ut=tt.return;try{Rj(tt)}catch(ht){W$7(tt,ut,ht)}break;case 5:var dt=tt.return;try{Rj(tt)}catch(ht){W$7(tt,dt,ht)}}}catch(ht){W$7(tt,tt.return,ht)}if(tt===et){V$1=null;break}var pt=tt.sibling;if(pt!==null){pt.return=tt.return,V$1=pt;break}V$1=tt.return}}var lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K$6=0,Q$3=null,Y$1=null,Z$2=0,fj=0,ej=Uf(0),T$2=0,pk=null,rh$1=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=1/0,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R$3(){return K$6&6?B$4():Ak!==-1?Ak:Ak=B$4()}function yi(et){return et.mode&1?K$6&2&&Z$2!==0?Z$2&-Z$2:Kg.transition!==null?(Bk===0&&(Bk=yc()),Bk):(et=C$3,et!==0||(et=window.event,et=et===void 0?16:jd(et.type)),et):1}function gi(et,tt,rt,nt){if(50<yk)throw yk=0,zk=null,Error(p$7(185));Ac(et,rt,nt),(!(K$6&2)||et!==Q$3)&&(et===Q$3&&(!(K$6&2)&&(qk|=rt),T$2===4&&Ck(et,Z$2)),Dk(et,nt),rt===1&&K$6===0&&!(tt.mode&1)&&(Gj=B$4()+500,fg&&jg()))}function Dk(et,tt){var rt=et.callbackNode;wc(et,tt);var nt=uc(et,et===Q$3?Z$2:0);if(nt===0)rt!==null&&bc(rt),et.callbackNode=null,et.callbackPriority=0;else if(tt=nt&-nt,et.callbackPriority!==tt){if(rt!=null&&bc(rt),tt===1)et.tag===0?ig(Ek.bind(null,et)):hg(Ek.bind(null,et)),Jf(function(){!(K$6&6)&&jg()}),rt=null;else{switch(Dc(nt)){case 1:rt=fc;break;case 4:rt=gc;break;case 16:rt=hc;break;case 536870912:rt=jc;break;default:rt=hc}rt=Fk(rt,Gk.bind(null,et))}et.callbackPriority=tt,et.callbackNode=rt}}function Gk(et,tt){if(Ak=-1,Bk=0,K$6&6)throw Error(p$7(327));var rt=et.callbackNode;if(Hk()&&et.callbackNode!==rt)return null;var nt=uc(et,et===Q$3?Z$2:0);if(nt===0)return null;if(nt&30||nt&et.expiredLanes||tt)tt=Ik(et,nt);else{tt=nt;var lt=K$6;K$6|=2;var ut=Jk();(Q$3!==et||Z$2!==tt)&&(uk=null,Gj=B$4()+500,Kk(et,tt));do try{Lk();break}catch(pt){Mk(et,pt)}while(!0);$g(),mk.current=ut,K$6=lt,Y$1!==null?tt=0:(Q$3=null,Z$2=0,tt=T$2)}if(tt!==0){if(tt===2&&(lt=xc(et),lt!==0&&(nt=lt,tt=Nk(et,lt))),tt===1)throw rt=pk,Kk(et,0),Ck(et,nt),Dk(et,B$4()),rt;if(tt===6)Ck(et,nt);else{if(lt=et.current.alternate,!(nt&30)&&!Ok(lt)&&(tt=Ik(et,nt),tt===2&&(ut=xc(et),ut!==0&&(nt=ut,tt=Nk(et,ut))),tt===1))throw rt=pk,Kk(et,0),Ck(et,nt),Dk(et,B$4()),rt;switch(et.finishedWork=lt,et.finishedLanes=nt,tt){case 0:case 1:throw Error(p$7(345));case 2:Pk(et,tk,uk);break;case 3:if(Ck(et,nt),(nt&130023424)===nt&&(tt=fk+500-B$4(),10<tt)){if(uc(et,0)!==0)break;if(lt=et.suspendedLanes,(lt&nt)!==nt){R$3(),et.pingedLanes|=et.suspendedLanes&lt;break}et.timeoutHandle=Ff(Pk.bind(null,et,tk,uk),tt);break}Pk(et,tk,uk);break;case 4:if(Ck(et,nt),(nt&4194240)===nt)break;for(tt=et.eventTimes,lt=-1;0<nt;){var dt=31-oc(nt);ut=1<<dt,dt=tt[dt],dt>lt&&(lt=dt),nt&=~ut}if(nt=lt,nt=B$4()-nt,nt=(120>nt?120:480>nt?480:1080>nt?1080:1920>nt?1920:3e3>nt?3e3:4320>nt?4320:1960*lk(nt/1960))-nt,10<nt){et.timeoutHandle=Ff(Pk.bind(null,et,tk,uk),nt);break}Pk(et,tk,uk);break;case 5:Pk(et,tk,uk);break;default:throw Error(p$7(329))}}}return Dk(et,B$4()),et.callbackNode===rt?Gk.bind(null,et):null}function Nk(et,tt){var rt=sk;return et.current.memoizedState.isDehydrated&&(Kk(et,tt).flags|=256),et=Ik(et,tt),et!==2&&(tt=tk,tk=rt,tt!==null&&Fj(tt)),et}function Fj(et){tk===null?tk=et:tk.push.apply(tk,et)}function Ok(et){for(var tt=et;;){if(tt.flags&16384){var rt=tt.updateQueue;if(rt!==null&&(rt=rt.stores,rt!==null))for(var nt=0;nt<rt.length;nt++){var lt=rt[nt],ut=lt.getSnapshot;lt=lt.value;try{if(!He$1(ut(),lt))return!1}catch{return!1}}}if(rt=tt.child,tt.subtreeFlags&16384&&rt!==null)rt.return=tt,tt=rt;else{if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return!0;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}}return!0}function Ck(et,tt){for(tt&=~rk,tt&=~qk,et.suspendedLanes|=tt,et.pingedLanes&=~tt,et=et.expirationTimes;0<tt;){var rt=31-oc(tt),nt=1<<rt;et[rt]=-1,tt&=~nt}}function Ek(et){if(K$6&6)throw Error(p$7(327));Hk();var tt=uc(et,0);if(!(tt&1))return Dk(et,B$4()),null;var rt=Ik(et,tt);if(et.tag!==0&&rt===2){var nt=xc(et);nt!==0&&(tt=nt,rt=Nk(et,nt))}if(rt===1)throw rt=pk,Kk(et,0),Ck(et,tt),Dk(et,B$4()),rt;if(rt===6)throw Error(p$7(345));return et.finishedWork=et.current.alternate,et.finishedLanes=tt,Pk(et,tk,uk),Dk(et,B$4()),null}function Qk(et,tt){var rt=K$6;K$6|=1;try{return et(tt)}finally{K$6=rt,K$6===0&&(Gj=B$4()+500,fg&&jg())}}function Rk(et){wk!==null&&wk.tag===0&&!(K$6&6)&&Hk();var tt=K$6;K$6|=1;var rt=ok.transition,nt=C$3;try{if(ok.transition=null,C$3=1,et)return et()}finally{C$3=nt,ok.transition=rt,K$6=tt,!(K$6&6)&&jg()}}function Hj(){fj=ej.current,E$3(ej)}function Kk(et,tt){et.finishedWork=null,et.finishedLanes=0;var rt=et.timeoutHandle;if(rt!==-1&&(et.timeoutHandle=-1,Gf(rt)),Y$1!==null)for(rt=Y$1.return;rt!==null;){var nt=rt;switch(wg(nt),nt.tag){case 1:nt=nt.type.childContextTypes,nt!=null&&$f();break;case 3:zh(),E$3(Wf),E$3(H$3),Eh();break;case 5:Bh(nt);break;case 4:zh();break;case 13:E$3(L$2);break;case 19:E$3(L$2);break;case 10:ah(nt.type._context);break;case 22:case 23:Hj()}rt=rt.return}if(Q$3=et,Y$1=et=Pg(et.current,null),Z$2=fj=tt,T$2=0,pk=null,rk=qk=rh$1=0,tk=sk=null,fh!==null){for(tt=0;tt<fh.length;tt++)if(rt=fh[tt],nt=rt.interleaved,nt!==null){rt.interleaved=null;var lt=nt.next,ut=rt.pending;if(ut!==null){var dt=ut.next;ut.next=lt,nt.next=dt}rt.pending=nt}fh=null}return et}function Mk(et,tt){do{var rt=Y$1;try{if($g(),Fh.current=Rh,Ih){for(var nt=M$3.memoizedState;nt!==null;){var lt=nt.queue;lt!==null&&(lt.pending=null),nt=nt.next}Ih=!1}if(Hh=0,O$2=N$2=M$3=null,Jh=!1,Kh$1=0,nk.current=null,rt===null||rt.return===null){T$2=1,pk=tt,Y$1=null;break}e:{var ut=et,dt=rt.return,pt=rt,ht=tt;if(tt=Z$2,pt.flags|=32768,ht!==null&&typeof ht=="object"&&typeof ht.then=="function"){var mt=ht,xt=pt,Mt=xt.tag;if(!(xt.mode&1)&&(Mt===0||Mt===11||Mt===15)){var vt=xt.alternate;vt?(xt.updateQueue=vt.updateQueue,xt.memoizedState=vt.memoizedState,xt.lanes=vt.lanes):(xt.updateQueue=null,xt.memoizedState=null)}var Ot=Ui(dt);if(Ot!==null){Ot.flags&=-257,Vi(Ot,dt,pt,ut,tt),Ot.mode&1&&Si(ut,mt,tt),tt=Ot,ht=mt;var At=tt.updateQueue;if(At===null){var Rt=new Set;Rt.add(ht),tt.updateQueue=Rt}else At.add(ht);break e}else{if(!(tt&1)){Si(ut,mt,tt),tj();break e}ht=Error(p$7(426))}}else if(I$4&&pt.mode&1){var zt=Ui(dt);if(zt!==null){!(zt.flags&65536)&&(zt.flags|=256),Vi(zt,dt,pt,ut,tt),Jg(Ji(ht,pt));break e}}ut=ht=Ji(ht,pt),T$2!==4&&(T$2=2),sk===null?sk=[ut]:sk.push(ut),ut=dt;do{switch(ut.tag){case 3:ut.flags|=65536,tt&=-tt,ut.lanes|=tt;var Tt=Ni(ut,ht,tt);ph(ut,Tt);break e;case 1:pt=ht;var Ct=ut.type,It=ut.stateNode;if(!(ut.flags&128)&&(typeof Ct.getDerivedStateFromError=="function"||It!==null&&typeof It.componentDidCatch=="function"&&(Ri===null||!Ri.has(It)))){ut.flags|=65536,tt&=-tt,ut.lanes|=tt;var Dt=Qi(ut,pt,tt);ph(ut,Dt);break e}}ut=ut.return}while(ut!==null)}Sk(rt)}catch(kt){tt=kt,Y$1===rt&&rt!==null&&(Y$1=rt=rt.return);continue}break}while(!0)}function Jk(){var et=mk.current;return mk.current=Rh,et===null?Rh:et}function tj(){(T$2===0||T$2===3||T$2===2)&&(T$2=4),Q$3===null||!(rh$1&268435455)&&!(qk&268435455)||Ck(Q$3,Z$2)}function Ik(et,tt){var rt=K$6;K$6|=2;var nt=Jk();(Q$3!==et||Z$2!==tt)&&(uk=null,Kk(et,tt));do try{Tk();break}catch(lt){Mk(et,lt)}while(!0);if($g(),K$6=rt,mk.current=nt,Y$1!==null)throw Error(p$7(261));return Q$3=null,Z$2=0,T$2}function Tk(){for(;Y$1!==null;)Uk(Y$1)}function Lk(){for(;Y$1!==null&&!cc();)Uk(Y$1)}function Uk(et){var tt=Vk(et.alternate,et,fj);et.memoizedProps=et.pendingProps,tt===null?Sk(et):Y$1=tt,nk.current=null}function Sk(et){var tt=et;do{var rt=tt.alternate;if(et=tt.return,tt.flags&32768){if(rt=Ij(rt,tt),rt!==null){rt.flags&=32767,Y$1=rt;return}if(et!==null)et.flags|=32768,et.subtreeFlags=0,et.deletions=null;else{T$2=6,Y$1=null;return}}else if(rt=Ej(rt,tt,fj),rt!==null){Y$1=rt;return}if(tt=tt.sibling,tt!==null){Y$1=tt;return}Y$1=tt=et}while(tt!==null);T$2===0&&(T$2=5)}function Pk(et,tt,rt){var nt=C$3,lt=ok.transition;try{ok.transition=null,C$3=1,Wk(et,tt,rt,nt)}finally{ok.transition=lt,C$3=nt}return null}function Wk(et,tt,rt,nt){do Hk();while(wk!==null);if(K$6&6)throw Error(p$7(327));rt=et.finishedWork;var lt=et.finishedLanes;if(rt===null)return null;if(et.finishedWork=null,et.finishedLanes=0,rt===et.current)throw Error(p$7(177));et.callbackNode=null,et.callbackPriority=0;var ut=rt.lanes|rt.childLanes;if(Bc(et,ut),et===Q$3&&(Y$1=Q$3=null,Z$2=0),!(rt.subtreeFlags&2064)&&!(rt.flags&2064)||vk||(vk=!0,Fk(hc,function(){return Hk(),null})),ut=(rt.flags&15990)!==0,rt.subtreeFlags&15990||ut){ut=ok.transition,ok.transition=null;var dt=C$3;C$3=1;var pt=K$6;K$6|=4,nk.current=null,Oj(et,rt),dk(rt,et),Oe$1(Df),dd=!!Cf,Df=Cf=null,et.current=rt,hk(rt),dc(),K$6=pt,C$3=dt,ok.transition=ut}else et.current=rt;if(vk&&(vk=!1,wk=et,xk=lt),ut=et.pendingLanes,ut===0&&(Ri=null),mc(rt.stateNode),Dk(et,B$4()),tt!==null)for(nt=et.onRecoverableError,rt=0;rt<tt.length;rt++)lt=tt[rt],nt(lt.value,{componentStack:lt.stack,digest:lt.digest});if(Oi)throw Oi=!1,et=Pi,Pi=null,et;return xk&1&&et.tag!==0&&Hk(),ut=et.pendingLanes,ut&1?et===zk?yk++:(yk=0,zk=et):yk=0,jg(),null}function Hk(){if(wk!==null){var et=Dc(xk),tt=ok.transition,rt=C$3;try{if(ok.transition=null,C$3=16>et?16:et,wk===null)var nt=!1;else{if(et=wk,wk=null,xk=0,K$6&6)throw Error(p$7(331));var lt=K$6;for(K$6|=4,V$1=et.current;V$1!==null;){var ut=V$1,dt=ut.child;if(V$1.flags&16){var pt=ut.deletions;if(pt!==null){for(var ht=0;ht<pt.length;ht++){var mt=pt[ht];for(V$1=mt;V$1!==null;){var xt=V$1;switch(xt.tag){case 0:case 11:case 15:Pj(8,xt,ut)}var Mt=xt.child;if(Mt!==null)Mt.return=xt,V$1=Mt;else for(;V$1!==null;){xt=V$1;var vt=xt.sibling,Ot=xt.return;if(Sj(xt),xt===mt){V$1=null;break}if(vt!==null){vt.return=Ot,V$1=vt;break}V$1=Ot}}}var At=ut.alternate;if(At!==null){var Rt=At.child;if(Rt!==null){At.child=null;do{var zt=Rt.sibling;Rt.sibling=null,Rt=zt}while(Rt!==null)}}V$1=ut}}if(ut.subtreeFlags&2064&&dt!==null)dt.return=ut,V$1=dt;else e:for(;V$1!==null;){if(ut=V$1,ut.flags&2048)switch(ut.tag){case 0:case 11:case 15:Pj(9,ut,ut.return)}var Tt=ut.sibling;if(Tt!==null){Tt.return=ut.return,V$1=Tt;break e}V$1=ut.return}}var Ct=et.current;for(V$1=Ct;V$1!==null;){dt=V$1;var It=dt.child;if(dt.subtreeFlags&2064&&It!==null)It.return=dt,V$1=It;else e:for(dt=Ct;V$1!==null;){if(pt=V$1,pt.flags&2048)try{switch(pt.tag){case 0:case 11:case 15:Qj(9,pt)}}catch(kt){W$7(pt,pt.return,kt)}if(pt===dt){V$1=null;break e}var Dt=pt.sibling;if(Dt!==null){Dt.return=pt.return,V$1=Dt;break e}V$1=pt.return}}if(K$6=lt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,et)}catch{}nt=!0}return nt}finally{C$3=rt,ok.transition=tt}}return!1}function Xk(et,tt,rt){tt=Ji(rt,tt),tt=Ni(et,tt,1),et=nh(et,tt,1),tt=R$3(),et!==null&&(Ac(et,1,tt),Dk(et,tt))}function W$7(et,tt,rt){if(et.tag===3)Xk(et,et,rt);else for(;tt!==null;){if(tt.tag===3){Xk(tt,et,rt);break}else if(tt.tag===1){var nt=tt.stateNode;if(typeof tt.type.getDerivedStateFromError=="function"||typeof nt.componentDidCatch=="function"&&(Ri===null||!Ri.has(nt))){et=Ji(rt,et),et=Qi(tt,et,1),tt=nh(tt,et,1),et=R$3(),tt!==null&&(Ac(tt,1,et),Dk(tt,et));break}}tt=tt.return}}function Ti(et,tt,rt){var nt=et.pingCache;nt!==null&&nt.delete(tt),tt=R$3(),et.pingedLanes|=et.suspendedLanes&rt,Q$3===et&&(Z$2&rt)===rt&&(T$2===4||T$2===3&&(Z$2&130023424)===Z$2&&500>B$4()-fk?Kk(et,0):rk|=rt),Dk(et,tt)}function Yk(et,tt){tt===0&&(et.mode&1?(tt=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):tt=1);var rt=R$3();et=ih(et,tt),et!==null&&(Ac(et,tt,rt),Dk(et,rt))}function uj(et){var tt=et.memoizedState,rt=0;tt!==null&&(rt=tt.retryLane),Yk(et,rt)}function bk(et,tt){var rt=0;switch(et.tag){case 13:var nt=et.stateNode,lt=et.memoizedState;lt!==null&&(rt=lt.retryLane);break;case 19:nt=et.stateNode;break;default:throw Error(p$7(314))}nt!==null&&nt.delete(tt),Yk(et,rt)}var Vk;Vk=function(et,tt,rt){if(et!==null)if(et.memoizedProps!==tt.pendingProps||Wf.current)dh$1=!0;else{if(!(et.lanes&rt)&&!(tt.flags&128))return dh$1=!1,yj(et,tt,rt);dh$1=!!(et.flags&131072)}else dh$1=!1,I$4&&tt.flags&1048576&&ug(tt,ng,tt.index);switch(tt.lanes=0,tt.tag){case 2:var nt=tt.type;ij(et,tt),et=tt.pendingProps;var lt=Yf(tt,H$3.current);ch$1(tt,rt),lt=Nh(null,tt,nt,et,lt,rt);var ut=Sh();return tt.flags|=1,typeof lt=="object"&&lt!==null&&typeof lt.render=="function"&&lt.$$typeof===void 0?(tt.tag=1,tt.memoizedState=null,tt.updateQueue=null,Zf(nt)?(ut=!0,cg(tt)):ut=!1,tt.memoizedState=lt.state!==null&&lt.state!==void 0?lt.state:null,kh(tt),lt.updater=Ei,tt.stateNode=lt,lt._reactInternals=tt,Ii(tt,nt,et,rt),tt=jj(null,tt,nt,!0,ut,rt)):(tt.tag=0,I$4&&ut&&vg(tt),Xi(null,tt,lt,rt),tt=tt.child),tt;case 16:nt=tt.elementType;e:{switch(ij(et,tt),et=tt.pendingProps,lt=nt._init,nt=lt(nt._payload),tt.type=nt,lt=tt.tag=Zk(nt),et=Ci(nt,et),lt){case 0:tt=cj(null,tt,nt,et,rt);break e;case 1:tt=hj(null,tt,nt,et,rt);break e;case 11:tt=Yi(null,tt,nt,et,rt);break e;case 14:tt=$i(null,tt,nt,Ci(nt.type,et),rt);break e}throw Error(p$7(306,nt,""))}return tt;case 0:return nt=tt.type,lt=tt.pendingProps,lt=tt.elementType===nt?lt:Ci(nt,lt),cj(et,tt,nt,lt,rt);case 1:return nt=tt.type,lt=tt.pendingProps,lt=tt.elementType===nt?lt:Ci(nt,lt),hj(et,tt,nt,lt,rt);case 3:e:{if(kj(tt),et===null)throw Error(p$7(387));nt=tt.pendingProps,ut=tt.memoizedState,lt=ut.element,lh(et,tt),qh(tt,nt,null,rt);var dt=tt.memoizedState;if(nt=dt.element,ut.isDehydrated)if(ut={element:nt,isDehydrated:!1,cache:dt.cache,pendingSuspenseBoundaries:dt.pendingSuspenseBoundaries,transitions:dt.transitions},tt.updateQueue.baseState=ut,tt.memoizedState=ut,tt.flags&256){lt=Ji(Error(p$7(423)),tt),tt=lj(et,tt,nt,rt,lt);break e}else if(nt!==lt){lt=Ji(Error(p$7(424)),tt),tt=lj(et,tt,nt,rt,lt);break e}else for(yg=Lf(tt.stateNode.containerInfo.firstChild),xg=tt,I$4=!0,zg=null,rt=Vg(tt,null,nt,rt),tt.child=rt;rt;)rt.flags=rt.flags&-3|4096,rt=rt.sibling;else{if(Ig(),nt===lt){tt=Zi(et,tt,rt);break e}Xi(et,tt,nt,rt)}tt=tt.child}return tt;case 5:return Ah(tt),et===null&&Eg(tt),nt=tt.type,lt=tt.pendingProps,ut=et!==null?et.memoizedProps:null,dt=lt.children,Ef(nt,lt)?dt=null:ut!==null&&Ef(nt,ut)&&(tt.flags|=32),gj(et,tt),Xi(et,tt,dt,rt),tt.child;case 6:return et===null&&Eg(tt),null;case 13:return oj(et,tt,rt);case 4:return yh(tt,tt.stateNode.containerInfo),nt=tt.pendingProps,et===null?tt.child=Ug(tt,null,nt,rt):Xi(et,tt,nt,rt),tt.child;case 11:return nt=tt.type,lt=tt.pendingProps,lt=tt.elementType===nt?lt:Ci(nt,lt),Yi(et,tt,nt,lt,rt);case 7:return Xi(et,tt,tt.pendingProps,rt),tt.child;case 8:return Xi(et,tt,tt.pendingProps.children,rt),tt.child;case 12:return Xi(et,tt,tt.pendingProps.children,rt),tt.child;case 10:e:{if(nt=tt.type._context,lt=tt.pendingProps,ut=tt.memoizedProps,dt=lt.value,G$3(Wg,nt._currentValue),nt._currentValue=dt,ut!==null)if(He$1(ut.value,dt)){if(ut.children===lt.children&&!Wf.current){tt=Zi(et,tt,rt);break e}}else for(ut=tt.child,ut!==null&&(ut.return=tt);ut!==null;){var pt=ut.dependencies;if(pt!==null){dt=ut.child;for(var ht=pt.firstContext;ht!==null;){if(ht.context===nt){if(ut.tag===1){ht=mh(-1,rt&-rt),ht.tag=2;var mt=ut.updateQueue;if(mt!==null){mt=mt.shared;var xt=mt.pending;xt===null?ht.next=ht:(ht.next=xt.next,xt.next=ht),mt.pending=ht}}ut.lanes|=rt,ht=ut.alternate,ht!==null&&(ht.lanes|=rt),bh(ut.return,rt,tt),pt.lanes|=rt;break}ht=ht.next}}else if(ut.tag===10)dt=ut.type===tt.type?null:ut.child;else if(ut.tag===18){if(dt=ut.return,dt===null)throw Error(p$7(341));dt.lanes|=rt,pt=dt.alternate,pt!==null&&(pt.lanes|=rt),bh(dt,rt,tt),dt=ut.sibling}else dt=ut.child;if(dt!==null)dt.return=ut;else for(dt=ut;dt!==null;){if(dt===tt){dt=null;break}if(ut=dt.sibling,ut!==null){ut.return=dt.return,dt=ut;break}dt=dt.return}ut=dt}Xi(et,tt,lt.children,rt),tt=tt.child}return tt;case 9:return lt=tt.type,nt=tt.pendingProps.children,ch$1(tt,rt),lt=eh(lt),nt=nt(lt),tt.flags|=1,Xi(et,tt,nt,rt),tt.child;case 14:return nt=tt.type,lt=Ci(nt,tt.pendingProps),lt=Ci(nt.type,lt),$i(et,tt,nt,lt,rt);case 15:return bj(et,tt,tt.type,tt.pendingProps,rt);case 17:return nt=tt.type,lt=tt.pendingProps,lt=tt.elementType===nt?lt:Ci(nt,lt),ij(et,tt),tt.tag=1,Zf(nt)?(et=!0,cg(tt)):et=!1,ch$1(tt,rt),Gi(tt,nt,lt),Ii(tt,nt,lt,rt),jj(null,tt,nt,!0,et,rt);case 19:return xj(et,tt,rt);case 22:return dj(et,tt,rt)}throw Error(p$7(156,tt.tag))};function Fk(et,tt){return ac(et,tt)}function $k(et,tt,rt,nt){this.tag=et,this.key=rt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=tt,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=nt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(et,tt,rt,nt){return new $k(et,tt,rt,nt)}function aj(et){return et=et.prototype,!(!et||!et.isReactComponent)}function Zk(et){if(typeof et=="function")return aj(et)?1:0;if(et!=null){if(et=et.$$typeof,et===Da)return 11;if(et===Ga)return 14}return 2}function Pg(et,tt){var rt=et.alternate;return rt===null?(rt=Bg(et.tag,tt,et.key,et.mode),rt.elementType=et.elementType,rt.type=et.type,rt.stateNode=et.stateNode,rt.alternate=et,et.alternate=rt):(rt.pendingProps=tt,rt.type=et.type,rt.flags=0,rt.subtreeFlags=0,rt.deletions=null),rt.flags=et.flags&14680064,rt.childLanes=et.childLanes,rt.lanes=et.lanes,rt.child=et.child,rt.memoizedProps=et.memoizedProps,rt.memoizedState=et.memoizedState,rt.updateQueue=et.updateQueue,tt=et.dependencies,rt.dependencies=tt===null?null:{lanes:tt.lanes,firstContext:tt.firstContext},rt.sibling=et.sibling,rt.index=et.index,rt.ref=et.ref,rt}function Rg(et,tt,rt,nt,lt,ut){var dt=2;if(nt=et,typeof et=="function")aj(et)&&(dt=1);else if(typeof et=="string")dt=5;else e:switch(et){case ya:return Tg(rt.children,lt,ut,tt);case za:dt=8,lt|=8;break;case Aa:return et=Bg(12,rt,tt,lt|2),et.elementType=Aa,et.lanes=ut,et;case Ea:return et=Bg(13,rt,tt,lt),et.elementType=Ea,et.lanes=ut,et;case Fa:return et=Bg(19,rt,tt,lt),et.elementType=Fa,et.lanes=ut,et;case Ia:return pj(rt,lt,ut,tt);default:if(typeof et=="object"&&et!==null)switch(et.$$typeof){case Ba:dt=10;break e;case Ca:dt=9;break e;case Da:dt=11;break e;case Ga:dt=14;break e;case Ha:dt=16,nt=null;break e}throw Error(p$7(130,et==null?et:typeof et,""))}return tt=Bg(dt,rt,tt,lt),tt.elementType=et,tt.type=nt,tt.lanes=ut,tt}function Tg(et,tt,rt,nt){return et=Bg(7,et,nt,tt),et.lanes=rt,et}function pj(et,tt,rt,nt){return et=Bg(22,et,nt,tt),et.elementType=Ia,et.lanes=rt,et.stateNode={isHidden:!1},et}function Qg(et,tt,rt){return et=Bg(6,et,null,tt),et.lanes=rt,et}function Sg(et,tt,rt){return tt=Bg(4,et.children!==null?et.children:[],et.key,tt),tt.lanes=rt,tt.stateNode={containerInfo:et.containerInfo,pendingChildren:null,implementation:et.implementation},tt}function al(et,tt,rt,nt,lt){this.tag=tt,this.containerInfo=et,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=nt,this.onRecoverableError=lt,this.mutableSourceEagerHydrationData=null}function bl(et,tt,rt,nt,lt,ut,dt,pt,ht){return et=new al(et,tt,rt,pt,ht),tt===1?(tt=1,ut===!0&&(tt|=8)):tt=0,ut=Bg(3,null,null,tt),et.current=ut,ut.stateNode=et,ut.memoizedState={element:nt,isDehydrated:rt,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(ut),et}function cl(et,tt,rt){var nt=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:nt==null?null:""+nt,children:et,containerInfo:tt,implementation:rt}}function dl(et){if(!et)return Vf;et=et._reactInternals;e:{if(Vb(et)!==et||et.tag!==1)throw Error(p$7(170));var tt=et;do{switch(tt.tag){case 3:tt=tt.stateNode.context;break e;case 1:if(Zf(tt.type)){tt=tt.stateNode.__reactInternalMemoizedMergedChildContext;break e}}tt=tt.return}while(tt!==null);throw Error(p$7(171))}if(et.tag===1){var rt=et.type;if(Zf(rt))return bg(et,rt,tt)}return tt}function el(et,tt,rt,nt,lt,ut,dt,pt,ht){return et=bl(rt,nt,!0,et,lt,ut,dt,pt,ht),et.context=dl(null),rt=et.current,nt=R$3(),lt=yi(rt),ut=mh(nt,lt),ut.callback=tt??null,nh(rt,ut,lt),et.current.lanes=lt,Ac(et,lt,nt),Dk(et,nt),et}function fl(et,tt,rt,nt){var lt=tt.current,ut=R$3(),dt=yi(lt);return rt=dl(rt),tt.context===null?tt.context=rt:tt.pendingContext=rt,tt=mh(ut,dt),tt.payload={element:et},nt=nt===void 0?null:nt,nt!==null&&(tt.callback=nt),et=nh(lt,tt,dt),et!==null&&(gi(et,lt,dt,ut),oh(et,lt,dt)),dt}function gl(et){if(et=et.current,!et.child)return null;switch(et.child.tag){case 5:return et.child.stateNode;default:return et.child.stateNode}}function hl$1(et,tt){if(et=et.memoizedState,et!==null&&et.dehydrated!==null){var rt=et.retryLane;et.retryLane=rt!==0&&rt<tt?rt:tt}}function il(et,tt){hl$1(et,tt),(et=et.alternate)&&hl$1(et,tt)}function jl(){return null}var kl=typeof reportError=="function"?reportError:function(et){console.error(et)};function ll(et){this._internalRoot=et}ml.prototype.render=ll.prototype.render=function(et){var tt=this._internalRoot;if(tt===null)throw Error(p$7(409));fl(et,tt,null,null)};ml.prototype.unmount=ll.prototype.unmount=function(){var et=this._internalRoot;if(et!==null){this._internalRoot=null;var tt=et.containerInfo;Rk(function(){fl(null,et,null,null)}),tt[uf]=null}};function ml(et){this._internalRoot=et}ml.prototype.unstable_scheduleHydration=function(et){if(et){var tt=Hc();et={blockedOn:null,target:et,priority:tt};for(var rt=0;rt<Qc.length&&tt!==0&&tt<Qc[rt].priority;rt++);Qc.splice(rt,0,et),rt===0&&Vc(et)}};function nl(et){return!(!et||et.nodeType!==1&&et.nodeType!==9&&et.nodeType!==11)}function ol(et){return!(!et||et.nodeType!==1&&et.nodeType!==9&&et.nodeType!==11&&(et.nodeType!==8||et.nodeValue!==" react-mount-point-unstable "))}function pl(){}function ql(et,tt,rt,nt,lt){if(lt){if(typeof nt=="function"){var ut=nt;nt=function(){var mt=gl(dt);ut.call(mt)}}var dt=el(tt,nt,et,0,null,!1,!1,"",pl);return et._reactRootContainer=dt,et[uf]=dt.current,sf(et.nodeType===8?et.parentNode:et),Rk(),dt}for(;lt=et.lastChild;)et.removeChild(lt);if(typeof nt=="function"){var pt=nt;nt=function(){var mt=gl(ht);pt.call(mt)}}var ht=bl(et,0,!1,null,null,!1,!1,"",pl);return et._reactRootContainer=ht,et[uf]=ht.current,sf(et.nodeType===8?et.parentNode:et),Rk(function(){fl(tt,ht,rt,nt)}),ht}function rl(et,tt,rt,nt,lt){var ut=rt._reactRootContainer;if(ut){var dt=ut;if(typeof lt=="function"){var pt=lt;lt=function(){var ht=gl(dt);pt.call(ht)}}fl(tt,dt,et,lt)}else dt=ql(rt,tt,et,lt,nt);return gl(dt)}Ec=function(et){switch(et.tag){case 3:var tt=et.stateNode;if(tt.current.memoizedState.isDehydrated){var rt=tc(tt.pendingLanes);rt!==0&&(Cc(tt,rt|1),Dk(tt,B$4()),!(K$6&6)&&(Gj=B$4()+500,jg()))}break;case 13:Rk(function(){var nt=ih(et,1);if(nt!==null){var lt=R$3();gi(nt,et,1,lt)}}),il(et,1)}};Fc=function(et){if(et.tag===13){var tt=ih(et,134217728);if(tt!==null){var rt=R$3();gi(tt,et,134217728,rt)}il(et,134217728)}};Gc=function(et){if(et.tag===13){var tt=yi(et),rt=ih(et,tt);if(rt!==null){var nt=R$3();gi(rt,et,tt,nt)}il(et,tt)}};Hc=function(){return C$3};Ic=function(et,tt){var rt=C$3;try{return C$3=et,tt()}finally{C$3=rt}};yb=function(et,tt,rt){switch(tt){case"input":if(bb(et,rt),tt=rt.name,rt.type==="radio"&&tt!=null){for(rt=et;rt.parentNode;)rt=rt.parentNode;for(rt=rt.querySelectorAll("input[name="+JSON.stringify(""+tt)+'][type="radio"]'),tt=0;tt<rt.length;tt++){var nt=rt[tt];if(nt!==et&&nt.form===et.form){var lt=Db(nt);if(!lt)throw Error(p$7(90));Wa(nt),bb(nt,lt)}}}break;case"textarea":ib(et,rt);break;case"select":tt=rt.value,tt!=null&&fb(et,!!rt.multiple,tt,!1)}};Gb=Qk;Hb=Rk;var sl$1={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(et){return et=Zb(et),et===null?null:et.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl$1;reactDom_production_min.createPortal=function(et,tt){var rt=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nl(tt))throw Error(p$7(200));return cl(et,tt,null,rt)};reactDom_production_min.createRoot=function(et,tt){if(!nl(et))throw Error(p$7(299));var rt=!1,nt="",lt=kl;return tt!=null&&(tt.unstable_strictMode===!0&&(rt=!0),tt.identifierPrefix!==void 0&&(nt=tt.identifierPrefix),tt.onRecoverableError!==void 0&&(lt=tt.onRecoverableError)),tt=bl(et,1,!1,null,null,rt,!1,nt,lt),et[uf]=tt.current,sf(et.nodeType===8?et.parentNode:et),new ll(tt)};reactDom_production_min.findDOMNode=function(et){if(et==null)return null;if(et.nodeType===1)return et;var tt=et._reactInternals;if(tt===void 0)throw typeof et.render=="function"?Error(p$7(188)):(et=Object.keys(et).join(","),Error(p$7(268,et)));return et=Zb(tt),et=et===null?null:et.stateNode,et};reactDom_production_min.flushSync=function(et){return Rk(et)};reactDom_production_min.hydrate=function(et,tt,rt){if(!ol(tt))throw Error(p$7(200));return rl(null,et,tt,!0,rt)};reactDom_production_min.hydrateRoot=function(et,tt,rt){if(!nl(et))throw Error(p$7(405));var nt=rt!=null&&rt.hydratedSources||null,lt=!1,ut="",dt=kl;if(rt!=null&&(rt.unstable_strictMode===!0&&(lt=!0),rt.identifierPrefix!==void 0&&(ut=rt.identifierPrefix),rt.onRecoverableError!==void 0&&(dt=rt.onRecoverableError)),tt=el(tt,null,et,1,rt??null,lt,!1,ut,dt),et[uf]=tt.current,sf(et),nt)for(et=0;et<nt.length;et++)rt=nt[et],lt=rt._getVersion,lt=lt(rt._source),tt.mutableSourceEagerHydrationData==null?tt.mutableSourceEagerHydrationData=[rt,lt]:tt.mutableSourceEagerHydrationData.push(rt,lt);return new ml(tt)};reactDom_production_min.render=function(et,tt,rt){if(!ol(tt))throw Error(p$7(200));return rl(null,et,tt,!1,rt)};reactDom_production_min.unmountComponentAtNode=function(et){if(!ol(et))throw Error(p$7(40));return et._reactRootContainer?(Rk(function(){rl(null,null,et,!1,function(){et._reactRootContainer=null,et[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(et,tt,rt,nt){if(!ol(rt))throw Error(p$7(200));if(et==null||et._reactInternals===void 0)throw Error(p$7(38));return rl(et,tt,rt,!1,nt)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(et){console.error(et)}}checkDCE(),reactDom$1.exports=reactDom_production_min;var reactDomExports=reactDom$1.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);var createRoot,m$7=reactDomExports;createRoot=m$7.createRoot,m$7.hydrateRoot;var extendStatics=function(et,tt){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,nt){rt.__proto__=nt}||function(rt,nt){for(var lt in nt)Object.prototype.hasOwnProperty.call(nt,lt)&&(rt[lt]=nt[lt])},extendStatics(et,tt)};function __extends(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Class extends value "+String(tt)+" is not a constructor or null");extendStatics(et,tt);function rt(){this.constructor=et}et.prototype=tt===null?Object.create(tt):(rt.prototype=tt.prototype,new rt)}var __assign=function(){return __assign=Object.assign||function(tt){for(var rt,nt=1,lt=arguments.length;nt<lt;nt++){rt=arguments[nt];for(var ut in rt)Object.prototype.hasOwnProperty.call(rt,ut)&&(tt[ut]=rt[ut])}return tt},__assign.apply(this,arguments)};function __rest(et,tt){var rt={};for(var nt in et)Object.prototype.hasOwnProperty.call(et,nt)&&tt.indexOf(nt)<0&&(rt[nt]=et[nt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,nt=Object.getOwnPropertySymbols(et);lt<nt.length;lt++)tt.indexOf(nt[lt])<0&&Object.prototype.propertyIsEnumerable.call(et,nt[lt])&&(rt[nt[lt]]=et[nt[lt]]);return rt}function __awaiter$1(et,tt,rt,nt){function lt(ut){return ut instanceof rt?ut:new rt(function(dt){dt(ut)})}return new(rt||(rt=Promise))(function(ut,dt){function pt(xt){try{mt(nt.next(xt))}catch(Mt){dt(Mt)}}function ht(xt){try{mt(nt.throw(xt))}catch(Mt){dt(Mt)}}function mt(xt){xt.done?ut(xt.value):lt(xt.value).then(pt,ht)}mt((nt=nt.apply(et,tt||[])).next())})}function __generator$1(et,tt){var rt={label:0,sent:function(){if(ut[0]&1)throw ut[1];return ut[1]},trys:[],ops:[]},nt,lt,ut,dt=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return dt.next=pt(0),dt.throw=pt(1),dt.return=pt(2),typeof Symbol=="function"&&(dt[Symbol.iterator]=function(){return this}),dt;function pt(mt){return function(xt){return ht([mt,xt])}}function ht(mt){if(nt)throw new TypeError("Generator is already executing.");for(;dt&&(dt=0,mt[0]&&(rt=0)),rt;)try{if(nt=1,lt&&(ut=mt[0]&2?lt.return:mt[0]?lt.throw||((ut=lt.return)&&ut.call(lt),0):lt.next)&&!(ut=ut.call(lt,mt[1])).done)return ut;switch(lt=0,ut&&(mt=[mt[0]&2,ut.value]),mt[0]){case 0:case 1:ut=mt;break;case 4:return rt.label++,{value:mt[1],done:!1};case 5:rt.label++,lt=mt[1],mt=[0];continue;case 7:mt=rt.ops.pop(),rt.trys.pop();continue;default:if(ut=rt.trys,!(ut=ut.length>0&&ut[ut.length-1])&&(mt[0]===6||mt[0]===2)){rt=0;continue}if(mt[0]===3&&(!ut||mt[1]>ut[0]&&mt[1]<ut[3])){rt.label=mt[1];break}if(mt[0]===6&&rt.label<ut[1]){rt.label=ut[1],ut=mt;break}if(ut&&rt.label<ut[2]){rt.label=ut[2],rt.ops.push(mt);break}ut[2]&&rt.ops.pop(),rt.trys.pop();continue}mt=tt.call(et,rt)}catch(xt){mt=[6,xt],lt=0}finally{nt=ut=0}if(mt[0]&5)throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}}}function __read(et,tt){var rt=typeof Symbol=="function"&&et[Symbol.iterator];if(!rt)return et;var nt=rt.call(et),lt,ut=[],dt;try{for(;(tt===void 0||tt-- >0)&&!(lt=nt.next()).done;)ut.push(lt.value)}catch(pt){dt={error:pt}}finally{try{lt&&!lt.done&&(rt=nt.return)&&rt.call(nt)}finally{if(dt)throw dt.error}}return ut}function __spreadArray$2(et,tt,rt){if(rt||arguments.length===2)for(var nt=0,lt=tt.length,ut;nt<lt;nt++)(ut||!(nt in tt))&&(ut||(ut=Array.prototype.slice.call(tt,0,nt)),ut[nt]=tt[nt]);return et.concat(ut||Array.prototype.slice.call(tt))}typeof SuppressedError=="function"&&SuppressedError;var genericMessage="Invariant Violation",_a$1=Object.setPrototypeOf,setPrototypeOf=_a$1===void 0?function(et,tt){return et.__proto__=tt,et}:_a$1,InvariantError=function(et){__extends(tt,et);function tt(rt){rt===void 0&&(rt=genericMessage);var nt=et.call(this,typeof rt=="number"?genericMessage+": "+rt+" (see https://github.com/apollographql/invariant-packages)":rt)||this;return nt.framesToPop=1,nt.name=genericMessage,setPrototypeOf(nt,tt.prototype),nt}return tt}(Error);function invariant$6(et,tt){if(!et)throw new InvariantError(tt)}var verbosityLevels=["debug","log","warn","error","silent"],verbosityLevel=verbosityLevels.indexOf("log");function wrapConsoleMethod(et){return function(){if(verbosityLevels.indexOf(et)>=verbosityLevel){var tt=console[et]||console.log;return tt.apply(console,arguments)}}}(function(et){et.debug=wrapConsoleMethod("debug"),et.log=wrapConsoleMethod("log"),et.warn=wrapConsoleMethod("warn"),et.error=wrapConsoleMethod("error")})(invariant$6||(invariant$6={}));var version$3="3.11.8";const global$2=globalThis||void 0||self;function maybe$1(et){try{return et()}catch{}}const global$1=maybe$1(function(){return globalThis})||maybe$1(function(){return window})||maybe$1(function(){return self})||maybe$1(function(){return global$2})||maybe$1(function(){return maybe$1.constructor("return this")()});var prefixCounts=new Map;function makeUniqueId(et){var tt=prefixCounts.get(et)||1;return prefixCounts.set(et,tt+1),"".concat(et,":").concat(tt,":").concat(Math.random().toString(36).slice(2))}function stringifyForDisplay(et,tt){tt===void 0&&(tt=0);var rt=makeUniqueId("stringifyForDisplay");return JSON.stringify(et,function(nt,lt){return lt===void 0?rt:lt},tt).split(JSON.stringify(rt)).join("<undefined>")}function wrap$3(et){return function(tt){for(var rt=[],nt=1;nt<arguments.length;nt++)rt[nt-1]=arguments[nt];if(typeof tt=="number"){var lt=tt;tt=getHandledErrorMsg(lt),tt||(tt=getFallbackErrorMsg(lt,rt),rt=[])}et.apply(void 0,[tt].concat(rt))}}var invariant$5=Object.assign(function(tt,rt){for(var nt=[],lt=2;lt<arguments.length;lt++)nt[lt-2]=arguments[lt];tt||invariant$6(tt,getHandledErrorMsg(rt,nt)||getFallbackErrorMsg(rt,nt))},{debug:wrap$3(invariant$6.debug),log:wrap$3(invariant$6.log),warn:wrap$3(invariant$6.warn),error:wrap$3(invariant$6.error)});function newInvariantError(et){for(var tt=[],rt=1;rt<arguments.length;rt++)tt[rt-1]=arguments[rt];return new InvariantError(getHandledErrorMsg(et,tt)||getFallbackErrorMsg(et,tt))}var ApolloErrorMessageHandler=Symbol.for("ApolloErrorMessageHandler_"+version$3);function stringify$4(et){if(typeof et=="string")return et;try{return stringifyForDisplay(et,2).slice(0,1e3)}catch{return"<non-serializable>"}}function getHandledErrorMsg(et,tt){if(tt===void 0&&(tt=[]),!!et)return global$1[ApolloErrorMessageHandler]&&global$1[ApolloErrorMessageHandler](et,tt.map(stringify$4))}function getFallbackErrorMsg(et,tt){if(tt===void 0&&(tt=[]),!!et)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:version$3,message:et,args:tt.map(stringify$4)})))}function devAssert(et,tt){if(!!!et)throw new Error(tt)}function isObjectLike$a(et){return typeof et=="object"&&et!==null}function invariant$4(et,tt){if(!!!et)throw new Error("Unexpected invariant triggered.")}const LineRegExp=/\r\n|[\n\r]/g;function getLocation(et,tt){let rt=0,nt=1;for(const lt of et.body.matchAll(LineRegExp)){if(typeof lt.index=="number"||invariant$4(!1),lt.index>=tt)break;rt=lt.index+lt[0].length,nt+=1}return{line:nt,column:tt+1-rt}}function printLocation(et){return printSourceLocation(et.source,getLocation(et.source,et.start))}function printSourceLocation(et,tt){const rt=et.locationOffset.column-1,nt="".padStart(rt)+et.body,lt=tt.line-1,ut=et.locationOffset.line-1,dt=tt.line+ut,pt=tt.line===1?rt:0,ht=tt.column+pt,mt=`${et.name}:${dt}:${ht}
`,xt=nt.split(/\r\n|[\n\r]/g),Mt=xt[lt];if(Mt.length>120){const vt=Math.floor(ht/80),Ot=ht%80,At=[];for(let Rt=0;Rt<Mt.length;Rt+=80)At.push(Mt.slice(Rt,Rt+80));return mt+printPrefixedLines([[`${dt} |`,At[0]],...At.slice(1,vt+1).map(Rt=>["|",Rt]),["|","^".padStart(Ot)],["|",At[vt+1]]])}return mt+printPrefixedLines([[`${dt-1} |`,xt[lt-1]],[`${dt} |`,Mt],["|","^".padStart(ht)],[`${dt+1} |`,xt[lt+1]]])}function printPrefixedLines(et){const tt=et.filter(([nt,lt])=>lt!==void 0),rt=Math.max(...tt.map(([nt])=>nt.length));return tt.map(([nt,lt])=>nt.padStart(rt)+(lt?" "+lt:"")).join(`
`)}function toNormalizedOptions(et){const tt=et[0];return tt==null||"kind"in tt||"length"in tt?{nodes:tt,source:et[1],positions:et[2],path:et[3],originalError:et[4],extensions:et[5]}:tt}class GraphQLError extends Error{constructor(tt,...rt){var nt,lt,ut;const{nodes:dt,source:pt,positions:ht,path:mt,originalError:xt,extensions:Mt}=toNormalizedOptions(rt);super(tt),this.name="GraphQLError",this.path=mt??void 0,this.originalError=xt??void 0,this.nodes=undefinedIfEmpty(Array.isArray(dt)?dt:dt?[dt]:void 0);const vt=undefinedIfEmpty((nt=this.nodes)===null||nt===void 0?void 0:nt.map(At=>At.loc).filter(At=>At!=null));this.source=pt??(vt==null||(lt=vt[0])===null||lt===void 0?void 0:lt.source),this.positions=ht??(vt==null?void 0:vt.map(At=>At.start)),this.locations=ht&&pt?ht.map(At=>getLocation(pt,At)):vt==null?void 0:vt.map(At=>getLocation(At.source,At.start));const Ot=isObjectLike$a(xt==null?void 0:xt.extensions)?xt==null?void 0:xt.extensions:void 0;this.extensions=(ut=Mt??Ot)!==null&&ut!==void 0?ut:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),xt!=null&&xt.stack?Object.defineProperty(this,"stack",{value:xt.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,GraphQLError):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let tt=this.message;if(this.nodes)for(const rt of this.nodes)rt.loc&&(tt+=`

`+printLocation(rt.loc));else if(this.source&&this.locations)for(const rt of this.locations)tt+=`

`+printSourceLocation(this.source,rt);return tt}toJSON(){const tt={message:this.message};return this.locations!=null&&(tt.locations=this.locations),this.path!=null&&(tt.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(tt.extensions=this.extensions),tt}}function undefinedIfEmpty(et){return et===void 0||et.length===0?void 0:et}function syntaxError(et,tt,rt){return new GraphQLError(`Syntax Error: ${rt}`,{source:et,positions:[tt]})}let Location$1=class{constructor(tt,rt,nt){this.start=tt.start,this.end=rt.end,this.startToken=tt,this.endToken=rt,this.source=nt}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};class Token{constructor(tt,rt,nt,lt,ut,dt){this.kind=tt,this.start=rt,this.end=nt,this.line=lt,this.column=ut,this.value=dt,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},kindValues=new Set(Object.keys(QueryDocumentKeys));function isNode(et){const tt=et==null?void 0:et.kind;return typeof tt=="string"&&kindValues.has(tt)}var OperationTypeNode;(function(et){et.QUERY="query",et.MUTATION="mutation",et.SUBSCRIPTION="subscription"})(OperationTypeNode||(OperationTypeNode={}));var DirectiveLocation;(function(et){et.QUERY="QUERY",et.MUTATION="MUTATION",et.SUBSCRIPTION="SUBSCRIPTION",et.FIELD="FIELD",et.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",et.FRAGMENT_SPREAD="FRAGMENT_SPREAD",et.INLINE_FRAGMENT="INLINE_FRAGMENT",et.VARIABLE_DEFINITION="VARIABLE_DEFINITION",et.SCHEMA="SCHEMA",et.SCALAR="SCALAR",et.OBJECT="OBJECT",et.FIELD_DEFINITION="FIELD_DEFINITION",et.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",et.INTERFACE="INTERFACE",et.UNION="UNION",et.ENUM="ENUM",et.ENUM_VALUE="ENUM_VALUE",et.INPUT_OBJECT="INPUT_OBJECT",et.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(DirectiveLocation||(DirectiveLocation={}));var Kind;(function(et){et.NAME="Name",et.DOCUMENT="Document",et.OPERATION_DEFINITION="OperationDefinition",et.VARIABLE_DEFINITION="VariableDefinition",et.SELECTION_SET="SelectionSet",et.FIELD="Field",et.ARGUMENT="Argument",et.FRAGMENT_SPREAD="FragmentSpread",et.INLINE_FRAGMENT="InlineFragment",et.FRAGMENT_DEFINITION="FragmentDefinition",et.VARIABLE="Variable",et.INT="IntValue",et.FLOAT="FloatValue",et.STRING="StringValue",et.BOOLEAN="BooleanValue",et.NULL="NullValue",et.ENUM="EnumValue",et.LIST="ListValue",et.OBJECT="ObjectValue",et.OBJECT_FIELD="ObjectField",et.DIRECTIVE="Directive",et.NAMED_TYPE="NamedType",et.LIST_TYPE="ListType",et.NON_NULL_TYPE="NonNullType",et.SCHEMA_DEFINITION="SchemaDefinition",et.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",et.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",et.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",et.FIELD_DEFINITION="FieldDefinition",et.INPUT_VALUE_DEFINITION="InputValueDefinition",et.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",et.UNION_TYPE_DEFINITION="UnionTypeDefinition",et.ENUM_TYPE_DEFINITION="EnumTypeDefinition",et.ENUM_VALUE_DEFINITION="EnumValueDefinition",et.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",et.DIRECTIVE_DEFINITION="DirectiveDefinition",et.SCHEMA_EXTENSION="SchemaExtension",et.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",et.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",et.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",et.UNION_TYPE_EXTENSION="UnionTypeExtension",et.ENUM_TYPE_EXTENSION="EnumTypeExtension",et.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Kind||(Kind={}));function isWhiteSpace(et){return et===9||et===32}function isDigit(et){return et>=48&&et<=57}function isLetter(et){return et>=97&&et<=122||et>=65&&et<=90}function isNameStart(et){return isLetter(et)||et===95}function isNameContinue(et){return isLetter(et)||isDigit(et)||et===95}function dedentBlockStringLines(et){var tt;let rt=Number.MAX_SAFE_INTEGER,nt=null,lt=-1;for(let dt=0;dt<et.length;++dt){var ut;const pt=et[dt],ht=leadingWhitespace(pt);ht!==pt.length&&(nt=(ut=nt)!==null&&ut!==void 0?ut:dt,lt=dt,dt!==0&&ht<rt&&(rt=ht))}return et.map((dt,pt)=>pt===0?dt:dt.slice(rt)).slice((tt=nt)!==null&&tt!==void 0?tt:0,lt+1)}function leadingWhitespace(et){let tt=0;for(;tt<et.length&&isWhiteSpace(et.charCodeAt(tt));)++tt;return tt}function printBlockString(et,tt){const rt=et.replace(/"""/g,'\\"""'),nt=rt.split(/\r\n|[\n\r]/g),lt=nt.length===1,ut=nt.length>1&&nt.slice(1).every(Ot=>Ot.length===0||isWhiteSpace(Ot.charCodeAt(0))),dt=rt.endsWith('\\"""'),pt=et.endsWith('"')&&!dt,ht=et.endsWith("\\"),mt=pt||ht,xt=!lt||et.length>70||mt||ut||dt;let Mt="";const vt=lt&&isWhiteSpace(et.charCodeAt(0));return(xt&&!vt||ut)&&(Mt+=`
`),Mt+=rt,(xt||mt)&&(Mt+=`
`),'"""'+Mt+'"""'}var TokenKind;(function(et){et.SOF="<SOF>",et.EOF="<EOF>",et.BANG="!",et.DOLLAR="$",et.AMP="&",et.PAREN_L="(",et.PAREN_R=")",et.SPREAD="...",et.COLON=":",et.EQUALS="=",et.AT="@",et.BRACKET_L="[",et.BRACKET_R="]",et.BRACE_L="{",et.PIPE="|",et.BRACE_R="}",et.NAME="Name",et.INT="Int",et.FLOAT="Float",et.STRING="String",et.BLOCK_STRING="BlockString",et.COMMENT="Comment"})(TokenKind||(TokenKind={}));class Lexer{constructor(tt){const rt=new Token(TokenKind.SOF,0,0,0,0);this.source=tt,this.lastToken=rt,this.token=rt,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let tt=this.token;if(tt.kind!==TokenKind.EOF)do if(tt.next)tt=tt.next;else{const rt=readNextToken(this,tt.end);tt.next=rt,rt.prev=tt,tt=rt}while(tt.kind===TokenKind.COMMENT);return tt}}function isPunctuatorTokenKind(et){return et===TokenKind.BANG||et===TokenKind.DOLLAR||et===TokenKind.AMP||et===TokenKind.PAREN_L||et===TokenKind.PAREN_R||et===TokenKind.SPREAD||et===TokenKind.COLON||et===TokenKind.EQUALS||et===TokenKind.AT||et===TokenKind.BRACKET_L||et===TokenKind.BRACKET_R||et===TokenKind.BRACE_L||et===TokenKind.PIPE||et===TokenKind.BRACE_R}function isUnicodeScalarValue(et){return et>=0&&et<=55295||et>=57344&&et<=1114111}function isSupplementaryCodePoint(et,tt){return isLeadingSurrogate(et.charCodeAt(tt))&&isTrailingSurrogate(et.charCodeAt(tt+1))}function isLeadingSurrogate(et){return et>=55296&&et<=56319}function isTrailingSurrogate(et){return et>=56320&&et<=57343}function printCodePointAt(et,tt){const rt=et.source.body.codePointAt(tt);if(rt===void 0)return TokenKind.EOF;if(rt>=32&&rt<=126){const nt=String.fromCodePoint(rt);return nt==='"'?`'"'`:`"${nt}"`}return"U+"+rt.toString(16).toUpperCase().padStart(4,"0")}function createToken(et,tt,rt,nt,lt){const ut=et.line,dt=1+rt-et.lineStart;return new Token(tt,rt,nt,ut,dt,lt)}function readNextToken(et,tt){const rt=et.source.body,nt=rt.length;let lt=tt;for(;lt<nt;){const ut=rt.charCodeAt(lt);switch(ut){case 65279:case 9:case 32:case 44:++lt;continue;case 10:++lt,++et.line,et.lineStart=lt;continue;case 13:rt.charCodeAt(lt+1)===10?lt+=2:++lt,++et.line,et.lineStart=lt;continue;case 35:return readComment(et,lt);case 33:return createToken(et,TokenKind.BANG,lt,lt+1);case 36:return createToken(et,TokenKind.DOLLAR,lt,lt+1);case 38:return createToken(et,TokenKind.AMP,lt,lt+1);case 40:return createToken(et,TokenKind.PAREN_L,lt,lt+1);case 41:return createToken(et,TokenKind.PAREN_R,lt,lt+1);case 46:if(rt.charCodeAt(lt+1)===46&&rt.charCodeAt(lt+2)===46)return createToken(et,TokenKind.SPREAD,lt,lt+3);break;case 58:return createToken(et,TokenKind.COLON,lt,lt+1);case 61:return createToken(et,TokenKind.EQUALS,lt,lt+1);case 64:return createToken(et,TokenKind.AT,lt,lt+1);case 91:return createToken(et,TokenKind.BRACKET_L,lt,lt+1);case 93:return createToken(et,TokenKind.BRACKET_R,lt,lt+1);case 123:return createToken(et,TokenKind.BRACE_L,lt,lt+1);case 124:return createToken(et,TokenKind.PIPE,lt,lt+1);case 125:return createToken(et,TokenKind.BRACE_R,lt,lt+1);case 34:return rt.charCodeAt(lt+1)===34&&rt.charCodeAt(lt+2)===34?readBlockString(et,lt):readString(et,lt)}if(isDigit(ut)||ut===45)return readNumber(et,lt,ut);if(isNameStart(ut))return readName(et,lt);throw syntaxError(et.source,lt,ut===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:isUnicodeScalarValue(ut)||isSupplementaryCodePoint(rt,lt)?`Unexpected character: ${printCodePointAt(et,lt)}.`:`Invalid character: ${printCodePointAt(et,lt)}.`)}return createToken(et,TokenKind.EOF,nt,nt)}function readComment(et,tt){const rt=et.source.body,nt=rt.length;let lt=tt+1;for(;lt<nt;){const ut=rt.charCodeAt(lt);if(ut===10||ut===13)break;if(isUnicodeScalarValue(ut))++lt;else if(isSupplementaryCodePoint(rt,lt))lt+=2;else break}return createToken(et,TokenKind.COMMENT,tt,lt,rt.slice(tt+1,lt))}function readNumber(et,tt,rt){const nt=et.source.body;let lt=tt,ut=rt,dt=!1;if(ut===45&&(ut=nt.charCodeAt(++lt)),ut===48){if(ut=nt.charCodeAt(++lt),isDigit(ut))throw syntaxError(et.source,lt,`Invalid number, unexpected digit after 0: ${printCodePointAt(et,lt)}.`)}else lt=readDigits(et,lt,ut),ut=nt.charCodeAt(lt);if(ut===46&&(dt=!0,ut=nt.charCodeAt(++lt),lt=readDigits(et,lt,ut),ut=nt.charCodeAt(lt)),(ut===69||ut===101)&&(dt=!0,ut=nt.charCodeAt(++lt),(ut===43||ut===45)&&(ut=nt.charCodeAt(++lt)),lt=readDigits(et,lt,ut),ut=nt.charCodeAt(lt)),ut===46||isNameStart(ut))throw syntaxError(et.source,lt,`Invalid number, expected digit but got: ${printCodePointAt(et,lt)}.`);return createToken(et,dt?TokenKind.FLOAT:TokenKind.INT,tt,lt,nt.slice(tt,lt))}function readDigits(et,tt,rt){if(!isDigit(rt))throw syntaxError(et.source,tt,`Invalid number, expected digit but got: ${printCodePointAt(et,tt)}.`);const nt=et.source.body;let lt=tt+1;for(;isDigit(nt.charCodeAt(lt));)++lt;return lt}function readString(et,tt){const rt=et.source.body,nt=rt.length;let lt=tt+1,ut=lt,dt="";for(;lt<nt;){const pt=rt.charCodeAt(lt);if(pt===34)return dt+=rt.slice(ut,lt),createToken(et,TokenKind.STRING,tt,lt+1,dt);if(pt===92){dt+=rt.slice(ut,lt);const ht=rt.charCodeAt(lt+1)===117?rt.charCodeAt(lt+2)===123?readEscapedUnicodeVariableWidth(et,lt):readEscapedUnicodeFixedWidth(et,lt):readEscapedCharacter(et,lt);dt+=ht.value,lt+=ht.size,ut=lt;continue}if(pt===10||pt===13)break;if(isUnicodeScalarValue(pt))++lt;else if(isSupplementaryCodePoint(rt,lt))lt+=2;else throw syntaxError(et.source,lt,`Invalid character within String: ${printCodePointAt(et,lt)}.`)}throw syntaxError(et.source,lt,"Unterminated string.")}function readEscapedUnicodeVariableWidth(et,tt){const rt=et.source.body;let nt=0,lt=3;for(;lt<12;){const ut=rt.charCodeAt(tt+lt++);if(ut===125){if(lt<5||!isUnicodeScalarValue(nt))break;return{value:String.fromCodePoint(nt),size:lt}}if(nt=nt<<4|readHexDigit(ut),nt<0)break}throw syntaxError(et.source,tt,`Invalid Unicode escape sequence: "${rt.slice(tt,tt+lt)}".`)}function readEscapedUnicodeFixedWidth(et,tt){const rt=et.source.body,nt=read16BitHexCode(rt,tt+2);if(isUnicodeScalarValue(nt))return{value:String.fromCodePoint(nt),size:6};if(isLeadingSurrogate(nt)&&rt.charCodeAt(tt+6)===92&&rt.charCodeAt(tt+7)===117){const lt=read16BitHexCode(rt,tt+8);if(isTrailingSurrogate(lt))return{value:String.fromCodePoint(nt,lt),size:12}}throw syntaxError(et.source,tt,`Invalid Unicode escape sequence: "${rt.slice(tt,tt+6)}".`)}function read16BitHexCode(et,tt){return readHexDigit(et.charCodeAt(tt))<<12|readHexDigit(et.charCodeAt(tt+1))<<8|readHexDigit(et.charCodeAt(tt+2))<<4|readHexDigit(et.charCodeAt(tt+3))}function readHexDigit(et){return et>=48&&et<=57?et-48:et>=65&&et<=70?et-55:et>=97&&et<=102?et-87:-1}function readEscapedCharacter(et,tt){const rt=et.source.body;switch(rt.charCodeAt(tt+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw syntaxError(et.source,tt,`Invalid character escape sequence: "${rt.slice(tt,tt+2)}".`)}function readBlockString(et,tt){const rt=et.source.body,nt=rt.length;let lt=et.lineStart,ut=tt+3,dt=ut,pt="";const ht=[];for(;ut<nt;){const mt=rt.charCodeAt(ut);if(mt===34&&rt.charCodeAt(ut+1)===34&&rt.charCodeAt(ut+2)===34){pt+=rt.slice(dt,ut),ht.push(pt);const xt=createToken(et,TokenKind.BLOCK_STRING,tt,ut+3,dedentBlockStringLines(ht).join(`
`));return et.line+=ht.length-1,et.lineStart=lt,xt}if(mt===92&&rt.charCodeAt(ut+1)===34&&rt.charCodeAt(ut+2)===34&&rt.charCodeAt(ut+3)===34){pt+=rt.slice(dt,ut),dt=ut+1,ut+=4;continue}if(mt===10||mt===13){pt+=rt.slice(dt,ut),ht.push(pt),mt===13&&rt.charCodeAt(ut+1)===10?ut+=2:++ut,pt="",dt=ut,lt=ut;continue}if(isUnicodeScalarValue(mt))++ut;else if(isSupplementaryCodePoint(rt,ut))ut+=2;else throw syntaxError(et.source,ut,`Invalid character within String: ${printCodePointAt(et,ut)}.`)}throw syntaxError(et.source,ut,"Unterminated string.")}function readName(et,tt){const rt=et.source.body,nt=rt.length;let lt=tt+1;for(;lt<nt;){const ut=rt.charCodeAt(lt);if(isNameContinue(ut))++lt;else break}return createToken(et,TokenKind.NAME,tt,lt,rt.slice(tt,lt))}const MAX_ARRAY_LENGTH=10,MAX_RECURSIVE_DEPTH=2;function inspect$3(et){return formatValue$3(et,[])}function formatValue$3(et,tt){switch(typeof et){case"string":return JSON.stringify(et);case"function":return et.name?`[function ${et.name}]`:"[function]";case"object":return formatObjectValue(et,tt);default:return String(et)}}function formatObjectValue(et,tt){if(et===null)return"null";if(tt.includes(et))return"[Circular]";const rt=[...tt,et];if(isJSONable(et)){const nt=et.toJSON();if(nt!==et)return typeof nt=="string"?nt:formatValue$3(nt,rt)}else if(Array.isArray(et))return formatArray(et,rt);return formatObject(et,rt)}function isJSONable(et){return typeof et.toJSON=="function"}function formatObject(et,tt){const rt=Object.entries(et);return rt.length===0?"{}":tt.length>MAX_RECURSIVE_DEPTH?"["+getObjectTag(et)+"]":"{ "+rt.map(([lt,ut])=>lt+": "+formatValue$3(ut,tt)).join(", ")+" }"}function formatArray(et,tt){if(et.length===0)return"[]";if(tt.length>MAX_RECURSIVE_DEPTH)return"[Array]";const rt=Math.min(MAX_ARRAY_LENGTH,et.length),nt=et.length-rt,lt=[];for(let ut=0;ut<rt;++ut)lt.push(formatValue$3(et[ut],tt));return nt===1?lt.push("... 1 more item"):nt>1&&lt.push(`... ${nt} more items`),"["+lt.join(", ")+"]"}function getObjectTag(et){const tt=Object.prototype.toString.call(et).replace(/^\[object /,"").replace(/]$/,"");if(tt==="Object"&&typeof et.constructor=="function"){const rt=et.constructor.name;if(typeof rt=="string"&&rt!=="")return rt}return tt}const isProduction=globalThis.process&&!0,instanceOf=isProduction?function(tt,rt){return tt instanceof rt}:function(tt,rt){if(tt instanceof rt)return!0;if(typeof tt=="object"&&tt!==null){var nt;const lt=rt.prototype[Symbol.toStringTag],ut=Symbol.toStringTag in tt?tt[Symbol.toStringTag]:(nt=tt.constructor)===null||nt===void 0?void 0:nt.name;if(lt===ut){const dt=inspect$3(tt);throw new Error(`Cannot use ${lt} "${dt}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};class Source{constructor(tt,rt="GraphQL request",nt={line:1,column:1}){typeof tt=="string"||devAssert(!1,`Body must be a string. Received: ${inspect$3(tt)}.`),this.body=tt,this.name=rt,this.locationOffset=nt,this.locationOffset.line>0||devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function isSource(et){return instanceOf(et,Source)}function parse$c(et,tt){return new Parser$1(et,tt).parseDocument()}let Parser$1=class{constructor(tt,rt={}){const nt=isSource(tt)?tt:new Source(tt);this._lexer=new Lexer(nt),this._options=rt,this._tokenCounter=0}parseName(){const tt=this.expectToken(TokenKind.NAME);return this.node(tt,{kind:Kind.NAME,value:tt.value})}parseDocument(){return this.node(this._lexer.token,{kind:Kind.DOCUMENT,definitions:this.many(TokenKind.SOF,this.parseDefinition,TokenKind.EOF)})}parseDefinition(){if(this.peek(TokenKind.BRACE_L))return this.parseOperationDefinition();const tt=this.peekDescription(),rt=tt?this._lexer.lookahead():this._lexer.token;if(rt.kind===TokenKind.NAME){switch(rt.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(tt)throw syntaxError(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(rt.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(rt)}parseOperationDefinition(){const tt=this._lexer.token;if(this.peek(TokenKind.BRACE_L))return this.node(tt,{kind:Kind.OPERATION_DEFINITION,operation:OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const rt=this.parseOperationType();let nt;return this.peek(TokenKind.NAME)&&(nt=this.parseName()),this.node(tt,{kind:Kind.OPERATION_DEFINITION,operation:rt,name:nt,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const tt=this.expectToken(TokenKind.NAME);switch(tt.value){case"query":return OperationTypeNode.QUERY;case"mutation":return OperationTypeNode.MUTATION;case"subscription":return OperationTypeNode.SUBSCRIPTION}throw this.unexpected(tt)}parseVariableDefinitions(){return this.optionalMany(TokenKind.PAREN_L,this.parseVariableDefinition,TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const tt=this._lexer.token;return this.expectToken(TokenKind.DOLLAR),this.node(tt,{kind:Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Kind.SELECTION_SET,selections:this.many(TokenKind.BRACE_L,this.parseSelection,TokenKind.BRACE_R)})}parseSelection(){return this.peek(TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const tt=this._lexer.token,rt=this.parseName();let nt,lt;return this.expectOptionalToken(TokenKind.COLON)?(nt=rt,lt=this.parseName()):lt=rt,this.node(tt,{kind:Kind.FIELD,alias:nt,name:lt,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(tt){const rt=tt?this.parseConstArgument:this.parseArgument;return this.optionalMany(TokenKind.PAREN_L,rt,TokenKind.PAREN_R)}parseArgument(tt=!1){const rt=this._lexer.token,nt=this.parseName();return this.expectToken(TokenKind.COLON),this.node(rt,{kind:Kind.ARGUMENT,name:nt,value:this.parseValueLiteral(tt)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const tt=this._lexer.token;this.expectToken(TokenKind.SPREAD);const rt=this.expectOptionalKeyword("on");return!rt&&this.peek(TokenKind.NAME)?this.node(tt,{kind:Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(tt,{kind:Kind.INLINE_FRAGMENT,typeCondition:rt?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const tt=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(tt,{kind:Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(tt,{kind:Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(tt){const rt=this._lexer.token;switch(rt.kind){case TokenKind.BRACKET_L:return this.parseList(tt);case TokenKind.BRACE_L:return this.parseObject(tt);case TokenKind.INT:return this.advanceLexer(),this.node(rt,{kind:Kind.INT,value:rt.value});case TokenKind.FLOAT:return this.advanceLexer(),this.node(rt,{kind:Kind.FLOAT,value:rt.value});case TokenKind.STRING:case TokenKind.BLOCK_STRING:return this.parseStringLiteral();case TokenKind.NAME:switch(this.advanceLexer(),rt.value){case"true":return this.node(rt,{kind:Kind.BOOLEAN,value:!0});case"false":return this.node(rt,{kind:Kind.BOOLEAN,value:!1});case"null":return this.node(rt,{kind:Kind.NULL});default:return this.node(rt,{kind:Kind.ENUM,value:rt.value})}case TokenKind.DOLLAR:if(tt)if(this.expectToken(TokenKind.DOLLAR),this._lexer.token.kind===TokenKind.NAME){const nt=this._lexer.token.value;throw syntaxError(this._lexer.source,rt.start,`Unexpected variable "$${nt}" in constant value.`)}else throw this.unexpected(rt);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const tt=this._lexer.token;return this.advanceLexer(),this.node(tt,{kind:Kind.STRING,value:tt.value,block:tt.kind===TokenKind.BLOCK_STRING})}parseList(tt){const rt=()=>this.parseValueLiteral(tt);return this.node(this._lexer.token,{kind:Kind.LIST,values:this.any(TokenKind.BRACKET_L,rt,TokenKind.BRACKET_R)})}parseObject(tt){const rt=()=>this.parseObjectField(tt);return this.node(this._lexer.token,{kind:Kind.OBJECT,fields:this.any(TokenKind.BRACE_L,rt,TokenKind.BRACE_R)})}parseObjectField(tt){const rt=this._lexer.token,nt=this.parseName();return this.expectToken(TokenKind.COLON),this.node(rt,{kind:Kind.OBJECT_FIELD,name:nt,value:this.parseValueLiteral(tt)})}parseDirectives(tt){const rt=[];for(;this.peek(TokenKind.AT);)rt.push(this.parseDirective(tt));return rt}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(tt){const rt=this._lexer.token;return this.expectToken(TokenKind.AT),this.node(rt,{kind:Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(tt)})}parseTypeReference(){const tt=this._lexer.token;let rt;if(this.expectOptionalToken(TokenKind.BRACKET_L)){const nt=this.parseTypeReference();this.expectToken(TokenKind.BRACKET_R),rt=this.node(tt,{kind:Kind.LIST_TYPE,type:nt})}else rt=this.parseNamedType();return this.expectOptionalToken(TokenKind.BANG)?this.node(tt,{kind:Kind.NON_NULL_TYPE,type:rt}):rt}parseNamedType(){return this.node(this._lexer.token,{kind:Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(TokenKind.STRING)||this.peek(TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const tt=this._lexer.token,rt=this.parseDescription();this.expectKeyword("schema");const nt=this.parseConstDirectives(),lt=this.many(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);return this.node(tt,{kind:Kind.SCHEMA_DEFINITION,description:rt,directives:nt,operationTypes:lt})}parseOperationTypeDefinition(){const tt=this._lexer.token,rt=this.parseOperationType();this.expectToken(TokenKind.COLON);const nt=this.parseNamedType();return this.node(tt,{kind:Kind.OPERATION_TYPE_DEFINITION,operation:rt,type:nt})}parseScalarTypeDefinition(){const tt=this._lexer.token,rt=this.parseDescription();this.expectKeyword("scalar");const nt=this.parseName(),lt=this.parseConstDirectives();return this.node(tt,{kind:Kind.SCALAR_TYPE_DEFINITION,description:rt,name:nt,directives:lt})}parseObjectTypeDefinition(){const tt=this._lexer.token,rt=this.parseDescription();this.expectKeyword("type");const nt=this.parseName(),lt=this.parseImplementsInterfaces(),ut=this.parseConstDirectives(),dt=this.parseFieldsDefinition();return this.node(tt,{kind:Kind.OBJECT_TYPE_DEFINITION,description:rt,name:nt,interfaces:lt,directives:ut,fields:dt})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(TokenKind.BRACE_L,this.parseFieldDefinition,TokenKind.BRACE_R)}parseFieldDefinition(){const tt=this._lexer.token,rt=this.parseDescription(),nt=this.parseName(),lt=this.parseArgumentDefs();this.expectToken(TokenKind.COLON);const ut=this.parseTypeReference(),dt=this.parseConstDirectives();return this.node(tt,{kind:Kind.FIELD_DEFINITION,description:rt,name:nt,arguments:lt,type:ut,directives:dt})}parseArgumentDefs(){return this.optionalMany(TokenKind.PAREN_L,this.parseInputValueDef,TokenKind.PAREN_R)}parseInputValueDef(){const tt=this._lexer.token,rt=this.parseDescription(),nt=this.parseName();this.expectToken(TokenKind.COLON);const lt=this.parseTypeReference();let ut;this.expectOptionalToken(TokenKind.EQUALS)&&(ut=this.parseConstValueLiteral());const dt=this.parseConstDirectives();return this.node(tt,{kind:Kind.INPUT_VALUE_DEFINITION,description:rt,name:nt,type:lt,defaultValue:ut,directives:dt})}parseInterfaceTypeDefinition(){const tt=this._lexer.token,rt=this.parseDescription();this.expectKeyword("interface");const nt=this.parseName(),lt=this.parseImplementsInterfaces(),ut=this.parseConstDirectives(),dt=this.parseFieldsDefinition();return this.node(tt,{kind:Kind.INTERFACE_TYPE_DEFINITION,description:rt,name:nt,interfaces:lt,directives:ut,fields:dt})}parseUnionTypeDefinition(){const tt=this._lexer.token,rt=this.parseDescription();this.expectKeyword("union");const nt=this.parseName(),lt=this.parseConstDirectives(),ut=this.parseUnionMemberTypes();return this.node(tt,{kind:Kind.UNION_TYPE_DEFINITION,description:rt,name:nt,directives:lt,types:ut})}parseUnionMemberTypes(){return this.expectOptionalToken(TokenKind.EQUALS)?this.delimitedMany(TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const tt=this._lexer.token,rt=this.parseDescription();this.expectKeyword("enum");const nt=this.parseName(),lt=this.parseConstDirectives(),ut=this.parseEnumValuesDefinition();return this.node(tt,{kind:Kind.ENUM_TYPE_DEFINITION,description:rt,name:nt,directives:lt,values:ut})}parseEnumValuesDefinition(){return this.optionalMany(TokenKind.BRACE_L,this.parseEnumValueDefinition,TokenKind.BRACE_R)}parseEnumValueDefinition(){const tt=this._lexer.token,rt=this.parseDescription(),nt=this.parseEnumValueName(),lt=this.parseConstDirectives();return this.node(tt,{kind:Kind.ENUM_VALUE_DEFINITION,description:rt,name:nt,directives:lt})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw syntaxError(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const tt=this._lexer.token,rt=this.parseDescription();this.expectKeyword("input");const nt=this.parseName(),lt=this.parseConstDirectives(),ut=this.parseInputFieldsDefinition();return this.node(tt,{kind:Kind.INPUT_OBJECT_TYPE_DEFINITION,description:rt,name:nt,directives:lt,fields:ut})}parseInputFieldsDefinition(){return this.optionalMany(TokenKind.BRACE_L,this.parseInputValueDef,TokenKind.BRACE_R)}parseTypeSystemExtension(){const tt=this._lexer.lookahead();if(tt.kind===TokenKind.NAME)switch(tt.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(tt)}parseSchemaExtension(){const tt=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const rt=this.parseConstDirectives(),nt=this.optionalMany(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);if(rt.length===0&&nt.length===0)throw this.unexpected();return this.node(tt,{kind:Kind.SCHEMA_EXTENSION,directives:rt,operationTypes:nt})}parseScalarTypeExtension(){const tt=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const rt=this.parseName(),nt=this.parseConstDirectives();if(nt.length===0)throw this.unexpected();return this.node(tt,{kind:Kind.SCALAR_TYPE_EXTENSION,name:rt,directives:nt})}parseObjectTypeExtension(){const tt=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const rt=this.parseName(),nt=this.parseImplementsInterfaces(),lt=this.parseConstDirectives(),ut=this.parseFieldsDefinition();if(nt.length===0&&lt.length===0&&ut.length===0)throw this.unexpected();return this.node(tt,{kind:Kind.OBJECT_TYPE_EXTENSION,name:rt,interfaces:nt,directives:lt,fields:ut})}parseInterfaceTypeExtension(){const tt=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const rt=this.parseName(),nt=this.parseImplementsInterfaces(),lt=this.parseConstDirectives(),ut=this.parseFieldsDefinition();if(nt.length===0&&lt.length===0&&ut.length===0)throw this.unexpected();return this.node(tt,{kind:Kind.INTERFACE_TYPE_EXTENSION,name:rt,interfaces:nt,directives:lt,fields:ut})}parseUnionTypeExtension(){const tt=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const rt=this.parseName(),nt=this.parseConstDirectives(),lt=this.parseUnionMemberTypes();if(nt.length===0&&lt.length===0)throw this.unexpected();return this.node(tt,{kind:Kind.UNION_TYPE_EXTENSION,name:rt,directives:nt,types:lt})}parseEnumTypeExtension(){const tt=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const rt=this.parseName(),nt=this.parseConstDirectives(),lt=this.parseEnumValuesDefinition();if(nt.length===0&&lt.length===0)throw this.unexpected();return this.node(tt,{kind:Kind.ENUM_TYPE_EXTENSION,name:rt,directives:nt,values:lt})}parseInputObjectTypeExtension(){const tt=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const rt=this.parseName(),nt=this.parseConstDirectives(),lt=this.parseInputFieldsDefinition();if(nt.length===0&&lt.length===0)throw this.unexpected();return this.node(tt,{kind:Kind.INPUT_OBJECT_TYPE_EXTENSION,name:rt,directives:nt,fields:lt})}parseDirectiveDefinition(){const tt=this._lexer.token,rt=this.parseDescription();this.expectKeyword("directive"),this.expectToken(TokenKind.AT);const nt=this.parseName(),lt=this.parseArgumentDefs(),ut=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const dt=this.parseDirectiveLocations();return this.node(tt,{kind:Kind.DIRECTIVE_DEFINITION,description:rt,name:nt,arguments:lt,repeatable:ut,locations:dt})}parseDirectiveLocations(){return this.delimitedMany(TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const tt=this._lexer.token,rt=this.parseName();if(Object.prototype.hasOwnProperty.call(DirectiveLocation,rt.value))return rt;throw this.unexpected(tt)}node(tt,rt){return this._options.noLocation!==!0&&(rt.loc=new Location$1(tt,this._lexer.lastToken,this._lexer.source)),rt}peek(tt){return this._lexer.token.kind===tt}expectToken(tt){const rt=this._lexer.token;if(rt.kind===tt)return this.advanceLexer(),rt;throw syntaxError(this._lexer.source,rt.start,`Expected ${getTokenKindDesc(tt)}, found ${getTokenDesc(rt)}.`)}expectOptionalToken(tt){return this._lexer.token.kind===tt?(this.advanceLexer(),!0):!1}expectKeyword(tt){const rt=this._lexer.token;if(rt.kind===TokenKind.NAME&&rt.value===tt)this.advanceLexer();else throw syntaxError(this._lexer.source,rt.start,`Expected "${tt}", found ${getTokenDesc(rt)}.`)}expectOptionalKeyword(tt){const rt=this._lexer.token;return rt.kind===TokenKind.NAME&&rt.value===tt?(this.advanceLexer(),!0):!1}unexpected(tt){const rt=tt??this._lexer.token;return syntaxError(this._lexer.source,rt.start,`Unexpected ${getTokenDesc(rt)}.`)}any(tt,rt,nt){this.expectToken(tt);const lt=[];for(;!this.expectOptionalToken(nt);)lt.push(rt.call(this));return lt}optionalMany(tt,rt,nt){if(this.expectOptionalToken(tt)){const lt=[];do lt.push(rt.call(this));while(!this.expectOptionalToken(nt));return lt}return[]}many(tt,rt,nt){this.expectToken(tt);const lt=[];do lt.push(rt.call(this));while(!this.expectOptionalToken(nt));return lt}delimitedMany(tt,rt){this.expectOptionalToken(tt);const nt=[];do nt.push(rt.call(this));while(this.expectOptionalToken(tt));return nt}advanceLexer(){const{maxTokens:tt}=this._options,rt=this._lexer.advance();if(tt!==void 0&&rt.kind!==TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>tt))throw syntaxError(this._lexer.source,rt.start,`Document contains more that ${tt} tokens. Parsing aborted.`)}};function getTokenDesc(et){const tt=et.value;return getTokenKindDesc(et.kind)+(tt!=null?` "${tt}"`:"")}function getTokenKindDesc(et){return isPunctuatorTokenKind(et)?`"${et}"`:et}function printString(et){return`"${et.replace(escapedRegExp,escapedReplacer)}"`}const escapedRegExp=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(et){return escapeSequences[et.charCodeAt(0)]}const escapeSequences=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],BREAK=Object.freeze({});function visit(et,tt,rt=QueryDocumentKeys){const nt=new Map;for(const Tt of Object.values(Kind))nt.set(Tt,getEnterLeaveForKind(tt,Tt));let lt,ut=Array.isArray(et),dt=[et],pt=-1,ht=[],mt=et,xt,Mt;const vt=[],Ot=[];do{pt++;const Tt=pt===dt.length,Ct=Tt&&ht.length!==0;if(Tt){if(xt=Ot.length===0?void 0:vt[vt.length-1],mt=Mt,Mt=Ot.pop(),Ct)if(ut){mt=mt.slice();let Dt=0;for(const[kt,qt]of ht){const Nt=kt-Dt;qt===null?(mt.splice(Nt,1),Dt++):mt[Nt]=qt}}else{mt=Object.defineProperties({},Object.getOwnPropertyDescriptors(mt));for(const[Dt,kt]of ht)mt[Dt]=kt}pt=lt.index,dt=lt.keys,ht=lt.edits,ut=lt.inArray,lt=lt.prev}else if(Mt){if(xt=ut?pt:dt[pt],mt=Mt[xt],mt==null)continue;vt.push(xt)}let It;if(!Array.isArray(mt)){var At,Rt;isNode(mt)||devAssert(!1,`Invalid AST Node: ${inspect$3(mt)}.`);const Dt=Tt?(At=nt.get(mt.kind))===null||At===void 0?void 0:At.leave:(Rt=nt.get(mt.kind))===null||Rt===void 0?void 0:Rt.enter;if(It=Dt==null?void 0:Dt.call(tt,mt,xt,Mt,vt,Ot),It===BREAK)break;if(It===!1){if(!Tt){vt.pop();continue}}else if(It!==void 0&&(ht.push([xt,It]),!Tt))if(isNode(It))mt=It;else{vt.pop();continue}}if(It===void 0&&Ct&&ht.push([xt,mt]),Tt)vt.pop();else{var zt;lt={inArray:ut,index:pt,keys:dt,edits:ht,prev:lt},ut=Array.isArray(mt),dt=ut?mt:(zt=rt[mt.kind])!==null&&zt!==void 0?zt:[],pt=-1,ht=[],Mt&&Ot.push(Mt),Mt=mt}}while(lt!==void 0);return ht.length!==0?ht[ht.length-1][1]:et}function getEnterLeaveForKind(et,tt){const rt=et[tt];return typeof rt=="object"?rt:typeof rt=="function"?{enter:rt,leave:void 0}:{enter:et.enter,leave:et.leave}}function print$1(et){return visit(et,printDocASTReducer)}const MAX_LINE_LENGTH=80,printDocASTReducer={Name:{leave:et=>et.value},Variable:{leave:et=>"$"+et.name},Document:{leave:et=>join(et.definitions,`

`)},OperationDefinition:{leave(et){const tt=wrap$2("(",join(et.variableDefinitions,", "),")"),rt=join([et.operation,join([et.name,tt]),join(et.directives," ")]," ");return(rt==="query"?"":rt+" ")+et.selectionSet}},VariableDefinition:{leave:({variable:et,type:tt,defaultValue:rt,directives:nt})=>et+": "+tt+wrap$2(" = ",rt)+wrap$2(" ",join(nt," "))},SelectionSet:{leave:({selections:et})=>block(et)},Field:{leave({alias:et,name:tt,arguments:rt,directives:nt,selectionSet:lt}){const ut=wrap$2("",et,": ")+tt;let dt=ut+wrap$2("(",join(rt,", "),")");return dt.length>MAX_LINE_LENGTH&&(dt=ut+wrap$2(`(
`,indent(join(rt,`
`)),`
)`)),join([dt,join(nt," "),lt]," ")}},Argument:{leave:({name:et,value:tt})=>et+": "+tt},FragmentSpread:{leave:({name:et,directives:tt})=>"..."+et+wrap$2(" ",join(tt," "))},InlineFragment:{leave:({typeCondition:et,directives:tt,selectionSet:rt})=>join(["...",wrap$2("on ",et),join(tt," "),rt]," ")},FragmentDefinition:{leave:({name:et,typeCondition:tt,variableDefinitions:rt,directives:nt,selectionSet:lt})=>`fragment ${et}${wrap$2("(",join(rt,", "),")")} on ${tt} ${wrap$2("",join(nt," ")," ")}`+lt},IntValue:{leave:({value:et})=>et},FloatValue:{leave:({value:et})=>et},StringValue:{leave:({value:et,block:tt})=>tt?printBlockString(et):printString(et)},BooleanValue:{leave:({value:et})=>et?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:et})=>et},ListValue:{leave:({values:et})=>"["+join(et,", ")+"]"},ObjectValue:{leave:({fields:et})=>"{"+join(et,", ")+"}"},ObjectField:{leave:({name:et,value:tt})=>et+": "+tt},Directive:{leave:({name:et,arguments:tt})=>"@"+et+wrap$2("(",join(tt,", "),")")},NamedType:{leave:({name:et})=>et},ListType:{leave:({type:et})=>"["+et+"]"},NonNullType:{leave:({type:et})=>et+"!"},SchemaDefinition:{leave:({description:et,directives:tt,operationTypes:rt})=>wrap$2("",et,`
`)+join(["schema",join(tt," "),block(rt)]," ")},OperationTypeDefinition:{leave:({operation:et,type:tt})=>et+": "+tt},ScalarTypeDefinition:{leave:({description:et,name:tt,directives:rt})=>wrap$2("",et,`
`)+join(["scalar",tt,join(rt," ")]," ")},ObjectTypeDefinition:{leave:({description:et,name:tt,interfaces:rt,directives:nt,fields:lt})=>wrap$2("",et,`
`)+join(["type",tt,wrap$2("implements ",join(rt," & ")),join(nt," "),block(lt)]," ")},FieldDefinition:{leave:({description:et,name:tt,arguments:rt,type:nt,directives:lt})=>wrap$2("",et,`
`)+tt+(hasMultilineItems(rt)?wrap$2(`(
`,indent(join(rt,`
`)),`
)`):wrap$2("(",join(rt,", "),")"))+": "+nt+wrap$2(" ",join(lt," "))},InputValueDefinition:{leave:({description:et,name:tt,type:rt,defaultValue:nt,directives:lt})=>wrap$2("",et,`
`)+join([tt+": "+rt,wrap$2("= ",nt),join(lt," ")]," ")},InterfaceTypeDefinition:{leave:({description:et,name:tt,interfaces:rt,directives:nt,fields:lt})=>wrap$2("",et,`
`)+join(["interface",tt,wrap$2("implements ",join(rt," & ")),join(nt," "),block(lt)]," ")},UnionTypeDefinition:{leave:({description:et,name:tt,directives:rt,types:nt})=>wrap$2("",et,`
`)+join(["union",tt,join(rt," "),wrap$2("= ",join(nt," | "))]," ")},EnumTypeDefinition:{leave:({description:et,name:tt,directives:rt,values:nt})=>wrap$2("",et,`
`)+join(["enum",tt,join(rt," "),block(nt)]," ")},EnumValueDefinition:{leave:({description:et,name:tt,directives:rt})=>wrap$2("",et,`
`)+join([tt,join(rt," ")]," ")},InputObjectTypeDefinition:{leave:({description:et,name:tt,directives:rt,fields:nt})=>wrap$2("",et,`
`)+join(["input",tt,join(rt," "),block(nt)]," ")},DirectiveDefinition:{leave:({description:et,name:tt,arguments:rt,repeatable:nt,locations:lt})=>wrap$2("",et,`
`)+"directive @"+tt+(hasMultilineItems(rt)?wrap$2(`(
`,indent(join(rt,`
`)),`
)`):wrap$2("(",join(rt,", "),")"))+(nt?" repeatable":"")+" on "+join(lt," | ")},SchemaExtension:{leave:({directives:et,operationTypes:tt})=>join(["extend schema",join(et," "),block(tt)]," ")},ScalarTypeExtension:{leave:({name:et,directives:tt})=>join(["extend scalar",et,join(tt," ")]," ")},ObjectTypeExtension:{leave:({name:et,interfaces:tt,directives:rt,fields:nt})=>join(["extend type",et,wrap$2("implements ",join(tt," & ")),join(rt," "),block(nt)]," ")},InterfaceTypeExtension:{leave:({name:et,interfaces:tt,directives:rt,fields:nt})=>join(["extend interface",et,wrap$2("implements ",join(tt," & ")),join(rt," "),block(nt)]," ")},UnionTypeExtension:{leave:({name:et,directives:tt,types:rt})=>join(["extend union",et,join(tt," "),wrap$2("= ",join(rt," | "))]," ")},EnumTypeExtension:{leave:({name:et,directives:tt,values:rt})=>join(["extend enum",et,join(tt," "),block(rt)]," ")},InputObjectTypeExtension:{leave:({name:et,directives:tt,fields:rt})=>join(["extend input",et,join(tt," "),block(rt)]," ")}};function join(et,tt=""){var rt;return(rt=et==null?void 0:et.filter(nt=>nt).join(tt))!==null&&rt!==void 0?rt:""}function block(et){return wrap$2(`{
`,indent(join(et,`
`)),`
}`)}function wrap$2(et,tt,rt=""){return tt!=null&&tt!==""?et+tt+rt:""}function indent(et){return wrap$2("  ",et.replace(/\n/g,`
  `))}function hasMultilineItems(et){var tt;return(tt=et==null?void 0:et.some(rt=>rt.includes(`
`)))!==null&&tt!==void 0?tt:!1}function isSelectionNode(et){return et.kind===Kind.FIELD||et.kind===Kind.FRAGMENT_SPREAD||et.kind===Kind.INLINE_FRAGMENT}function shouldInclude(et,tt){var rt=et.directives;return!rt||!rt.length?!0:getInclusionDirectives(rt).every(function(nt){var lt=nt.directive,ut=nt.ifArgument,dt=!1;return ut.value.kind==="Variable"?(dt=tt&&tt[ut.value.name.value],invariant$5(dt!==void 0,70,lt.name.value)):dt=ut.value.value,lt.name.value==="skip"?!dt:dt})}function hasDirectives(et,tt,rt){var nt=new Set(et),lt=nt.size;return visit(tt,{Directive:function(ut){if(nt.delete(ut.name.value)&&(!rt||!nt.size))return BREAK}}),rt?!nt.size:nt.size<lt}function hasClientExports(et){return et&&hasDirectives(["client","export"],et,!0)}function isInclusionDirective(et){var tt=et.name.value;return tt==="skip"||tt==="include"}function getInclusionDirectives(et){var tt=[];return et&&et.length&&et.forEach(function(rt){if(isInclusionDirective(rt)){var nt=rt.arguments,lt=rt.name.value;invariant$5(nt&&nt.length===1,71,lt);var ut=nt[0];invariant$5(ut.name&&ut.name.value==="if",72,lt);var dt=ut.value;invariant$5(dt&&(dt.kind==="Variable"||dt.kind==="BooleanValue"),73,lt),tt.push({directive:rt,ifArgument:ut})}}),tt}const defaultMakeData$1=()=>Object.create(null),{forEach:forEach$7,slice:slice$2}=Array.prototype,{hasOwnProperty:hasOwnProperty$x}=Object.prototype;let Trie$1=class X2{constructor(tt=!0,rt=defaultMakeData$1){this.weakness=tt,this.makeData=rt}lookup(){return this.lookupArray(arguments)}lookupArray(tt){let rt=this;return forEach$7.call(tt,nt=>rt=rt.getChildTrie(nt)),hasOwnProperty$x.call(rt,"data")?rt.data:rt.data=this.makeData(slice$2.call(tt))}peek(){return this.peekArray(arguments)}peekArray(tt){let rt=this;for(let nt=0,lt=tt.length;rt&&nt<lt;++nt){const ut=rt.mapFor(tt[nt],!1);rt=ut&&ut.get(tt[nt])}return rt&&rt.data}remove(){return this.removeArray(arguments)}removeArray(tt){let rt;if(tt.length){const nt=tt[0],lt=this.mapFor(nt,!1),ut=lt&&lt.get(nt);ut&&(rt=ut.removeArray(slice$2.call(tt,1)),!ut.data&&!ut.weak&&!(ut.strong&&ut.strong.size)&&lt.delete(nt))}else rt=this.data,delete this.data;return rt}getChildTrie(tt){const rt=this.mapFor(tt,!0);let nt=rt.get(tt);return nt||rt.set(tt,nt=new X2(this.weakness,this.makeData)),nt}mapFor(tt,rt){return this.weakness&&isObjRef$1(tt)?this.weak||(rt?this.weak=new WeakMap:void 0):this.strong||(rt?this.strong=new Map:void 0)}};function isObjRef$1(et){switch(typeof et){case"object":if(et===null)break;case"function":return!0}return!1}var isReactNative$1=maybe$1(function(){return navigator.product})=="ReactNative",canUseWeakMap=typeof WeakMap=="function"&&!(isReactNative$1&&!global$2.HermesInternal),canUseWeakSet=typeof WeakSet=="function",canUseSymbol$1=typeof Symbol=="function"&&typeof Symbol.for=="function",canUseAsyncIteratorSymbol=canUseSymbol$1&&Symbol.asyncIterator,canUseDOM$3=typeof maybe$1(function(){return window.document.createElement})=="function",usingJSDOM=maybe$1(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,canUseLayoutEffect=(canUseDOM$3||isReactNative$1)&&!usingJSDOM;function isNonNullObject$1(et){return et!==null&&typeof et=="object"}function getFragmentQueryDocument(et,tt){var rt=tt,nt=[];et.definitions.forEach(function(ut){if(ut.kind==="OperationDefinition")throw newInvariantError(74,ut.operation,ut.name?" named '".concat(ut.name.value,"'"):"");ut.kind==="FragmentDefinition"&&nt.push(ut)}),typeof rt>"u"&&(invariant$5(nt.length===1,75,nt.length),rt=nt[0].name.value);var lt=__assign(__assign({},et),{definitions:__spreadArray$2([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:rt}}]}}],et.definitions,!0)});return lt}function createFragmentMap(et){et===void 0&&(et=[]);var tt={};return et.forEach(function(rt){tt[rt.name.value]=rt}),tt}function getFragmentFromSelection(et,tt){switch(et.kind){case"InlineFragment":return et;case"FragmentSpread":{var rt=et.name.value;if(typeof tt=="function")return tt(rt);var nt=tt&&tt[rt];return invariant$5(nt,76,rt),nt||null}default:return null}}function defaultDispose$1(){}class StrongCache{constructor(tt=1/0,rt=defaultDispose$1){this.max=tt,this.dispose=rt,this.map=new Map,this.newest=null,this.oldest=null}has(tt){return this.map.has(tt)}get(tt){const rt=this.getNode(tt);return rt&&rt.value}get size(){return this.map.size}getNode(tt){const rt=this.map.get(tt);if(rt&&rt!==this.newest){const{older:nt,newer:lt}=rt;lt&&(lt.older=nt),nt&&(nt.newer=lt),rt.older=this.newest,rt.older.newer=rt,rt.newer=null,this.newest=rt,rt===this.oldest&&(this.oldest=lt)}return rt}set(tt,rt){let nt=this.getNode(tt);return nt?nt.value=rt:(nt={key:tt,value:rt,newer:null,older:this.newest},this.newest&&(this.newest.newer=nt),this.newest=nt,this.oldest=this.oldest||nt,this.map.set(tt,nt),nt.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(tt){const rt=this.map.get(tt);return rt?(rt===this.newest&&(this.newest=rt.older),rt===this.oldest&&(this.oldest=rt.newer),rt.newer&&(rt.newer.older=rt.older),rt.older&&(rt.older.newer=rt.newer),this.map.delete(tt),this.dispose(rt.value,tt),!0):!1}}function noop$e(){}const defaultDispose=noop$e,_WeakRef=typeof WeakRef<"u"?WeakRef:function(et){return{deref:()=>et}},_WeakMap$1=typeof WeakMap<"u"?WeakMap:Map,_FinalizationRegistry=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:noop$e,unregister:noop$e}},finalizationBatchSize=10024;class WeakCache{constructor(tt=1/0,rt=defaultDispose){this.max=tt,this.dispose=rt,this.map=new _WeakMap$1,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const nt=this.unfinalizedNodes.values();for(let lt=0;lt<finalizationBatchSize;lt++){const ut=nt.next().value;if(!ut)break;this.unfinalizedNodes.delete(ut);const dt=ut.key;delete ut.key,ut.keyRef=new _WeakRef(dt),this.registry.register(dt,ut,ut)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new _FinalizationRegistry(this.deleteNode.bind(this))}has(tt){return this.map.has(tt)}get(tt){const rt=this.getNode(tt);return rt&&rt.value}getNode(tt){const rt=this.map.get(tt);if(rt&&rt!==this.newest){const{older:nt,newer:lt}=rt;lt&&(lt.older=nt),nt&&(nt.newer=lt),rt.older=this.newest,rt.older.newer=rt,rt.newer=null,this.newest=rt,rt===this.oldest&&(this.oldest=lt)}return rt}set(tt,rt){let nt=this.getNode(tt);return nt?nt.value=rt:(nt={key:tt,value:rt,newer:null,older:this.newest},this.newest&&(this.newest.newer=nt),this.newest=nt,this.oldest=this.oldest||nt,this.scheduleFinalization(nt),this.map.set(tt,nt),this.size++,nt.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(tt){tt===this.newest&&(this.newest=tt.older),tt===this.oldest&&(this.oldest=tt.newer),tt.newer&&(tt.newer.older=tt.older),tt.older&&(tt.older.newer=tt.newer),this.size--;const rt=tt.key||tt.keyRef&&tt.keyRef.deref();this.dispose(tt.value,rt),tt.keyRef?this.registry.unregister(tt):this.unfinalizedNodes.delete(tt),rt&&this.map.delete(rt)}delete(tt){const rt=this.map.get(tt);return rt?(this.deleteNode(rt),!0):!1}scheduleFinalization(tt){this.unfinalizedNodes.add(tt),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var scheduledCleanup=new WeakSet;function schedule(et){et.size<=(et.max||-1)||scheduledCleanup.has(et)||(scheduledCleanup.add(et),setTimeout(function(){et.clean(),scheduledCleanup.delete(et)},100))}var AutoCleanedWeakCache=function(et,tt){var rt=new WeakCache(et,tt);return rt.set=function(nt,lt){var ut=WeakCache.prototype.set.call(this,nt,lt);return schedule(this),ut},rt},AutoCleanedStrongCache=function(et,tt){var rt=new StrongCache(et,tt);return rt.set=function(nt,lt){var ut=StrongCache.prototype.set.call(this,nt,lt);return schedule(this),ut},rt},cacheSizeSymbol=Symbol.for("apollo.cacheSize"),cacheSizes=__assign({},global$1[cacheSizeSymbol]),globalCaches={};function registerGlobalCache(et,tt){globalCaches[et]=tt}var getApolloClientMemoryInternals=globalThis.__DEV__!==!1?_getApolloClientMemoryInternals:void 0,getInMemoryCacheMemoryInternals=globalThis.__DEV__!==!1?_getInMemoryCacheMemoryInternals:void 0,getApolloCacheMemoryInternals=globalThis.__DEV__!==!1?_getApolloCacheMemoryInternals:void 0;function getCurrentCacheSizes(){var et={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(et).map(function(tt){var rt=tt[0],nt=tt[1];return[rt,cacheSizes[rt]||nt]}))}function _getApolloClientMemoryInternals(){var et,tt,rt,nt,lt;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:getCurrentCacheSizes(),sizes:__assign({print:(et=globalCaches.print)===null||et===void 0?void 0:et.call(globalCaches),parser:(tt=globalCaches.parser)===null||tt===void 0?void 0:tt.call(globalCaches),canonicalStringify:(rt=globalCaches.canonicalStringify)===null||rt===void 0?void 0:rt.call(globalCaches),links:linkInfo(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:transformInfo(this.queryManager.documentTransform)}},(lt=(nt=this.cache).getMemoryInternals)===null||lt===void 0?void 0:lt.call(nt))}}function _getApolloCacheMemoryInternals(){return{cache:{fragmentQueryDocuments:getWrapperInformation(this.getFragmentDoc)}}}function _getInMemoryCacheMemoryInternals(){var et=this.config.fragments;return __assign(__assign({},_getApolloCacheMemoryInternals.apply(this)),{addTypenameDocumentTransform:transformInfo(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:getWrapperInformation(this.storeReader.executeSelectionSet),executeSubSelectedArray:getWrapperInformation(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:getWrapperInformation(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:getWrapperInformation(et==null?void 0:et.findFragmentSpreads),lookup:getWrapperInformation(et==null?void 0:et.lookup),transform:getWrapperInformation(et==null?void 0:et.transform)}})}function isWrapper(et){return!!et&&"dirtyKey"in et}function getWrapperInformation(et){return isWrapper(et)?et.size:void 0}function isDefined$2(et){return et!=null}function transformInfo(et){return recurseTransformInfo(et).map(function(tt){return{cache:tt}})}function recurseTransformInfo(et){return et?__spreadArray$2(__spreadArray$2([getWrapperInformation(et==null?void 0:et.performWork)],recurseTransformInfo(et==null?void 0:et.left),!0),recurseTransformInfo(et==null?void 0:et.right),!0).filter(isDefined$2):[]}function linkInfo(et){var tt;return et?__spreadArray$2(__spreadArray$2([(tt=et==null?void 0:et.getMemoryInternals)===null||tt===void 0?void 0:tt.call(et)],linkInfo(et==null?void 0:et.left),!0),linkInfo(et==null?void 0:et.right),!0).filter(isDefined$2):[]}var canonicalStringify=Object.assign(function(tt){return JSON.stringify(tt,stableObjectReplacer)},{reset:function(){sortingMap=new AutoCleanedStrongCache(cacheSizes.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&registerGlobalCache("canonicalStringify",function(){return sortingMap.size});var sortingMap;canonicalStringify.reset();function stableObjectReplacer(et,tt){if(tt&&typeof tt=="object"){var rt=Object.getPrototypeOf(tt);if(rt===Object.prototype||rt===null){var nt=Object.keys(tt);if(nt.every(everyKeyInOrder))return tt;var lt=JSON.stringify(nt),ut=sortingMap.get(lt);if(!ut){nt.sort();var dt=JSON.stringify(nt);ut=sortingMap.get(dt)||nt,sortingMap.set(lt,ut),sortingMap.set(dt,ut)}var pt=Object.create(rt);return ut.forEach(function(ht){pt[ht]=tt[ht]}),pt}}return tt}function everyKeyInOrder(et,tt,rt){return tt===0||rt[tt-1]<=et}function makeReference(et){return{__ref:String(et)}}function isReference(et){return!!(et&&typeof et=="object"&&typeof et.__ref=="string")}function isDocumentNode(et){return isNonNullObject$1(et)&&et.kind==="Document"&&Array.isArray(et.definitions)}function isStringValue(et){return et.kind==="StringValue"}function isBooleanValue(et){return et.kind==="BooleanValue"}function isIntValue(et){return et.kind==="IntValue"}function isFloatValue(et){return et.kind==="FloatValue"}function isVariable(et){return et.kind==="Variable"}function isObjectValue(et){return et.kind==="ObjectValue"}function isListValue(et){return et.kind==="ListValue"}function isEnumValue(et){return et.kind==="EnumValue"}function isNullValue(et){return et.kind==="NullValue"}function valueToObjectRepresentation(et,tt,rt,nt){if(isIntValue(rt)||isFloatValue(rt))et[tt.value]=Number(rt.value);else if(isBooleanValue(rt)||isStringValue(rt))et[tt.value]=rt.value;else if(isObjectValue(rt)){var lt={};rt.fields.map(function(dt){return valueToObjectRepresentation(lt,dt.name,dt.value,nt)}),et[tt.value]=lt}else if(isVariable(rt)){var ut=(nt||{})[rt.name.value];et[tt.value]=ut}else if(isListValue(rt))et[tt.value]=rt.values.map(function(dt){var pt={};return valueToObjectRepresentation(pt,tt,dt,nt),pt[tt.value]});else if(isEnumValue(rt))et[tt.value]=rt.value;else if(isNullValue(rt))et[tt.value]=null;else throw newInvariantError(85,tt.value,rt.kind)}function storeKeyNameFromField(et,tt){var rt=null;et.directives&&(rt={},et.directives.forEach(function(lt){rt[lt.name.value]={},lt.arguments&&lt.arguments.forEach(function(ut){var dt=ut.name,pt=ut.value;return valueToObjectRepresentation(rt[lt.name.value],dt,pt,tt)})}));var nt=null;return et.arguments&&et.arguments.length&&(nt={},et.arguments.forEach(function(lt){var ut=lt.name,dt=lt.value;return valueToObjectRepresentation(nt,ut,dt,tt)})),getStoreKeyName(et.name.value,nt,rt)}var KNOWN_DIRECTIVES=["connection","include","skip","client","rest","export","nonreactive"],storeKeyNameStringify=canonicalStringify,getStoreKeyName=Object.assign(function(et,tt,rt){if(tt&&rt&&rt.connection&&rt.connection.key)if(rt.connection.filter&&rt.connection.filter.length>0){var nt=rt.connection.filter?rt.connection.filter:[];nt.sort();var lt={};return nt.forEach(function(pt){lt[pt]=tt[pt]}),"".concat(rt.connection.key,"(").concat(storeKeyNameStringify(lt),")")}else return rt.connection.key;var ut=et;if(tt){var dt=storeKeyNameStringify(tt);ut+="(".concat(dt,")")}return rt&&Object.keys(rt).forEach(function(pt){KNOWN_DIRECTIVES.indexOf(pt)===-1&&(rt[pt]&&Object.keys(rt[pt]).length?ut+="@".concat(pt,"(").concat(storeKeyNameStringify(rt[pt]),")"):ut+="@".concat(pt))}),ut},{setStringify:function(et){var tt=storeKeyNameStringify;return storeKeyNameStringify=et,tt}});function argumentsObjectFromField(et,tt){if(et.arguments&&et.arguments.length){var rt={};return et.arguments.forEach(function(nt){var lt=nt.name,ut=nt.value;return valueToObjectRepresentation(rt,lt,ut,tt)}),rt}return null}function resultKeyNameFromField(et){return et.alias?et.alias.value:et.name.value}function getTypenameFromResult(et,tt,rt){for(var nt,lt=0,ut=tt.selections;lt<ut.length;lt++){var dt=ut[lt];if(isField(dt)){if(dt.name.value==="__typename")return et[resultKeyNameFromField(dt)]}else nt?nt.push(dt):nt=[dt]}if(typeof et.__typename=="string")return et.__typename;if(nt)for(var pt=0,ht=nt;pt<ht.length;pt++){var dt=ht[pt],mt=getTypenameFromResult(et,getFragmentFromSelection(dt,rt).selectionSet,rt);if(typeof mt=="string")return mt}}function isField(et){return et.kind==="Field"}function isInlineFragment(et){return et.kind==="InlineFragment"}function checkDocument(et){invariant$5(et&&et.kind==="Document",77);var tt=et.definitions.filter(function(rt){return rt.kind!=="FragmentDefinition"}).map(function(rt){if(rt.kind!=="OperationDefinition")throw newInvariantError(78,rt.kind);return rt});return invariant$5(tt.length<=1,79,tt.length),et}function getOperationDefinition(et){return checkDocument(et),et.definitions.filter(function(tt){return tt.kind==="OperationDefinition"})[0]}function getOperationName(et){return et.definitions.filter(function(tt){return tt.kind==="OperationDefinition"&&!!tt.name}).map(function(tt){return tt.name.value})[0]||null}function getFragmentDefinitions(et){return et.definitions.filter(function(tt){return tt.kind==="FragmentDefinition"})}function getQueryDefinition(et){var tt=getOperationDefinition(et);return invariant$5(tt&&tt.operation==="query",80),tt}function getFragmentDefinition(et){invariant$5(et.kind==="Document",81),invariant$5(et.definitions.length<=1,82);var tt=et.definitions[0];return invariant$5(tt.kind==="FragmentDefinition",83),tt}function getMainDefinition(et){checkDocument(et);for(var tt,rt=0,nt=et.definitions;rt<nt.length;rt++){var lt=nt[rt];if(lt.kind==="OperationDefinition"){var ut=lt.operation;if(ut==="query"||ut==="mutation"||ut==="subscription")return lt}lt.kind==="FragmentDefinition"&&!tt&&(tt=lt)}if(tt)return tt;throw newInvariantError(84)}function getDefaultValues(et){var tt=Object.create(null),rt=et&&et.variableDefinitions;return rt&&rt.length&&rt.forEach(function(nt){nt.defaultValue&&valueToObjectRepresentation(tt,nt.variable.name,nt.defaultValue)}),tt}const defaultMakeData=()=>Object.create(null),{forEach:forEach$6,slice:slice$1}=Array.prototype,{hasOwnProperty:hasOwnProperty$w}=Object.prototype;class Trie{constructor(tt=!0,rt=defaultMakeData){this.weakness=tt,this.makeData=rt}lookup(...tt){return this.lookupArray(tt)}lookupArray(tt){let rt=this;return forEach$6.call(tt,nt=>rt=rt.getChildTrie(nt)),hasOwnProperty$w.call(rt,"data")?rt.data:rt.data=this.makeData(slice$1.call(tt))}peek(...tt){return this.peekArray(tt)}peekArray(tt){let rt=this;for(let nt=0,lt=tt.length;rt&&nt<lt;++nt){const ut=this.weakness&&isObjRef(tt[nt])?rt.weak:rt.strong;rt=ut&&ut.get(tt[nt])}return rt&&rt.data}getChildTrie(tt){const rt=this.weakness&&isObjRef(tt)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let nt=rt.get(tt);return nt||rt.set(tt,nt=new Trie(this.weakness,this.makeData)),nt}}function isObjRef(et){switch(typeof et){case"object":if(et===null)break;case"function":return!0}return!1}let currentContext=null;const MISSING_VALUE={};let idCounter=1;const makeSlotClass=()=>class{constructor(){this.id=["slot",idCounter++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let tt=currentContext;tt;tt=tt.parent)if(this.id in tt.slots){const rt=tt.slots[this.id];if(rt===MISSING_VALUE)break;return tt!==currentContext&&(currentContext.slots[this.id]=rt),!0}return currentContext&&(currentContext.slots[this.id]=MISSING_VALUE),!1}getValue(){if(this.hasValue())return currentContext.slots[this.id]}withValue(tt,rt,nt,lt){const ut={__proto__:null,[this.id]:tt},dt=currentContext;currentContext={parent:dt,slots:ut};try{return rt.apply(lt,nt)}finally{currentContext=dt}}static bind(tt){const rt=currentContext;return function(){const nt=currentContext;try{return currentContext=rt,tt.apply(this,arguments)}finally{currentContext=nt}}}static noContext(tt,rt,nt){if(currentContext){const lt=currentContext;try{return currentContext=null,tt.apply(nt,rt)}finally{currentContext=lt}}else return tt.apply(nt,rt)}};function maybe(et){try{return et()}catch{}}const globalKey="@wry/context:Slot",host=maybe(()=>globalThis)||maybe(()=>global$2)||Object.create(null),globalHost=host,Slot=globalHost[globalKey]||Array[globalKey]||function(et){try{Object.defineProperty(globalHost,globalKey,{value:et,enumerable:!1,writable:!1,configurable:!0})}finally{return et}}(makeSlotClass()),parentEntrySlot=new Slot,{hasOwnProperty:hasOwnProperty$v}=Object.prototype,arrayFromSet=Array.from||function(et){const tt=[];return et.forEach(rt=>tt.push(rt)),tt};function maybeUnsubscribe(et){const{unsubscribe:tt}=et;typeof tt=="function"&&(et.unsubscribe=void 0,tt())}const emptySetPool=[],POOL_TARGET_SIZE=100;function assert$k(et,tt){if(!et)throw new Error(tt||"assertion failure")}function valueIs(et,tt){const rt=et.length;return rt>0&&rt===tt.length&&et[rt-1]===tt[rt-1]}function valueGet(et){switch(et.length){case 0:throw new Error("unknown value");case 1:return et[0];case 2:throw et[1]}}function valueCopy(et){return et.slice(0)}class Entry{constructor(tt){this.fn=tt,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}peek(){if(this.value.length===1&&!mightBeDirty(this))return rememberParent(this),this.value[0]}recompute(tt){return assert$k(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?reallyRecompute(this,tt):valueGet(this.value)}setDirty(){this.dirty||(this.dirty=!0,reportDirty(this),maybeUnsubscribe(this))}dispose(){this.setDirty(),forgetChildren(this),eachParent(this,(tt,rt)=>{tt.setDirty(),forgetChild(tt,this)})}forget(){this.dispose()}dependOn(tt){tt.add(this),this.deps||(this.deps=emptySetPool.pop()||new Set),this.deps.add(tt)}forgetDeps(){this.deps&&(arrayFromSet(this.deps).forEach(tt=>tt.delete(this)),this.deps.clear(),emptySetPool.push(this.deps),this.deps=null)}}Entry.count=0;function rememberParent(et){const tt=parentEntrySlot.getValue();if(tt)return et.parents.add(tt),tt.childValues.has(et)||tt.childValues.set(et,[]),mightBeDirty(et)?reportDirtyChild(tt,et):reportCleanChild(tt,et),tt}function reallyRecompute(et,tt){return forgetChildren(et),parentEntrySlot.withValue(et,recomputeNewValue,[et,tt]),maybeSubscribe(et,tt)&&setClean(et),valueGet(et.value)}function recomputeNewValue(et,tt){et.recomputing=!0;const{normalizeResult:rt}=et;let nt;rt&&et.value.length===1&&(nt=valueCopy(et.value)),et.value.length=0;try{if(et.value[0]=et.fn.apply(null,tt),rt&&nt&&!valueIs(nt,et.value))try{et.value[0]=rt(et.value[0],nt[0])}catch{}}catch(lt){et.value[1]=lt}et.recomputing=!1}function mightBeDirty(et){return et.dirty||!!(et.dirtyChildren&&et.dirtyChildren.size)}function setClean(et){et.dirty=!1,!mightBeDirty(et)&&reportClean(et)}function reportDirty(et){eachParent(et,reportDirtyChild)}function reportClean(et){eachParent(et,reportCleanChild)}function eachParent(et,tt){const rt=et.parents.size;if(rt){const nt=arrayFromSet(et.parents);for(let lt=0;lt<rt;++lt)tt(nt[lt],et)}}function reportDirtyChild(et,tt){assert$k(et.childValues.has(tt)),assert$k(mightBeDirty(tt));const rt=!mightBeDirty(et);if(!et.dirtyChildren)et.dirtyChildren=emptySetPool.pop()||new Set;else if(et.dirtyChildren.has(tt))return;et.dirtyChildren.add(tt),rt&&reportDirty(et)}function reportCleanChild(et,tt){assert$k(et.childValues.has(tt)),assert$k(!mightBeDirty(tt));const rt=et.childValues.get(tt);rt.length===0?et.childValues.set(tt,valueCopy(tt.value)):valueIs(rt,tt.value)||et.setDirty(),removeDirtyChild(et,tt),!mightBeDirty(et)&&reportClean(et)}function removeDirtyChild(et,tt){const rt=et.dirtyChildren;rt&&(rt.delete(tt),rt.size===0&&(emptySetPool.length<POOL_TARGET_SIZE&&emptySetPool.push(rt),et.dirtyChildren=null))}function forgetChildren(et){et.childValues.size>0&&et.childValues.forEach((tt,rt)=>{forgetChild(et,rt)}),et.forgetDeps(),assert$k(et.dirtyChildren===null)}function forgetChild(et,tt){tt.parents.delete(et),et.childValues.delete(tt),removeDirtyChild(et,tt)}function maybeSubscribe(et,tt){if(typeof et.subscribe=="function")try{maybeUnsubscribe(et),et.unsubscribe=et.subscribe.apply(null,tt)}catch{return et.setDirty(),!1}return!0}const EntryMethods={setDirty:!0,dispose:!0,forget:!0};function dep(et){const tt=new Map;function rt(nt){const lt=parentEntrySlot.getValue();if(lt){let ut=tt.get(nt);ut||tt.set(nt,ut=new Set),lt.dependOn(ut)}}return rt.dirty=function(lt,ut){const dt=tt.get(lt);if(dt){const pt=ut&&hasOwnProperty$v.call(EntryMethods,ut)?ut:"setDirty";arrayFromSet(dt).forEach(ht=>ht[pt]()),tt.delete(lt),maybeUnsubscribe(dt)}},rt}let defaultKeyTrie;function defaultMakeCacheKey(...et){return(defaultKeyTrie||(defaultKeyTrie=new Trie(typeof WeakMap=="function"))).lookupArray(et)}const caches=new Set;function wrap$1(et,{max:tt=Math.pow(2,16),keyArgs:rt,makeCacheKey:nt=defaultMakeCacheKey,normalizeResult:lt,subscribe:ut,cache:dt=StrongCache}=Object.create(null)){const pt=typeof dt=="function"?new dt(tt,vt=>vt.dispose()):dt,ht=function(){const vt=nt.apply(null,rt?rt.apply(null,arguments):arguments);if(vt===void 0)return et.apply(null,arguments);let Ot=pt.get(vt);Ot||(pt.set(vt,Ot=new Entry(et)),Ot.normalizeResult=lt,Ot.subscribe=ut,Ot.forget=()=>pt.delete(vt));const At=Ot.recompute(Array.prototype.slice.call(arguments));return pt.set(vt,Ot),caches.add(pt),parentEntrySlot.hasValue()||(caches.forEach(Rt=>Rt.clean()),caches.clear()),At};Object.defineProperty(ht,"size",{get:()=>pt.size,configurable:!1,enumerable:!1}),Object.freeze(ht.options={max:tt,keyArgs:rt,makeCacheKey:nt,normalizeResult:lt,subscribe:ut,cache:pt});function mt(vt){const Ot=vt&&pt.get(vt);Ot&&Ot.setDirty()}ht.dirtyKey=mt,ht.dirty=function(){mt(nt.apply(null,arguments))};function xt(vt){const Ot=vt&&pt.get(vt);if(Ot)return Ot.peek()}ht.peekKey=xt,ht.peek=function(){return xt(nt.apply(null,arguments))};function Mt(vt){return vt?pt.delete(vt):!1}return ht.forgetKey=Mt,ht.forget=function(){return Mt(nt.apply(null,arguments))},ht.makeCacheKey=nt,ht.getKey=rt?function(){return nt.apply(null,rt.apply(null,arguments))}:nt,Object.freeze(ht)}function identity$2(et){return et}var DocumentTransform=function(){function et(tt,rt){rt===void 0&&(rt=Object.create(null)),this.resultCache=canUseWeakSet?new WeakSet:new Set,this.transform=tt,rt.getCacheKey&&(this.getCacheKey=rt.getCacheKey),this.cached=rt.cache!==!1,this.resetCache()}return et.prototype.getCacheKey=function(tt){return[tt]},et.identity=function(){return new et(identity$2,{cache:!1})},et.split=function(tt,rt,nt){return nt===void 0&&(nt=et.identity()),Object.assign(new et(function(lt){var ut=tt(lt)?rt:nt;return ut.transformDocument(lt)},{cache:!1}),{left:rt,right:nt})},et.prototype.resetCache=function(){var tt=this;if(this.cached){var rt=new Trie$1(canUseWeakMap);this.performWork=wrap$1(et.prototype.performWork.bind(this),{makeCacheKey:function(nt){var lt=tt.getCacheKey(nt);if(lt)return invariant$5(Array.isArray(lt),69),rt.lookupArray(lt)},max:cacheSizes["documentTransform.cache"],cache:WeakCache})}},et.prototype.performWork=function(tt){return checkDocument(tt),this.transform(tt)},et.prototype.transformDocument=function(tt){if(this.resultCache.has(tt))return tt;var rt=this.performWork(tt);return this.resultCache.add(rt),rt},et.prototype.concat=function(tt){var rt=this;return Object.assign(new et(function(nt){return tt.transformDocument(rt.transformDocument(nt))},{cache:!1}),{left:this,right:tt})},et}(),printCache,print=Object.assign(function(et){var tt=printCache.get(et);return tt||(tt=print$1(et),printCache.set(et,tt)),tt},{reset:function(){printCache=new AutoCleanedWeakCache(cacheSizes.print||2e3)}});print.reset();globalThis.__DEV__!==!1&&registerGlobalCache("print",function(){return printCache?printCache.size:0});var isArray$l=Array.isArray;function isNonEmptyArray(et){return Array.isArray(et)&&et.length>0}var TYPENAME_FIELD={kind:Kind.FIELD,name:{kind:Kind.NAME,value:"__typename"}};function isEmpty$8(et,tt){return!et||et.selectionSet.selections.every(function(rt){return rt.kind===Kind.FRAGMENT_SPREAD&&isEmpty$8(tt[rt.name.value],tt)})}function nullIfDocIsEmpty(et){return isEmpty$8(getOperationDefinition(et)||getFragmentDefinition(et),createFragmentMap(getFragmentDefinitions(et)))?null:et}function getDirectiveMatcher(et){var tt=new Map,rt=new Map;return et.forEach(function(nt){nt&&(nt.name?tt.set(nt.name,nt):nt.test&&rt.set(nt.test,nt))}),function(nt){var lt=tt.get(nt.name.value);return!lt&&rt.size&&rt.forEach(function(ut,dt){dt(nt)&&(lt=ut)}),lt}}function makeInUseGetterFunction(et){var tt=new Map;return function(nt){nt===void 0&&(nt=et);var lt=tt.get(nt);return lt||tt.set(nt,lt={variables:new Set,fragmentSpreads:new Set}),lt}}function removeDirectivesFromDocument(et,tt){checkDocument(tt);for(var rt=makeInUseGetterFunction(""),nt=makeInUseGetterFunction(""),lt=function(Tt){for(var Ct=0,It=void 0;Ct<Tt.length&&(It=Tt[Ct]);++Ct)if(!isArray$l(It)){if(It.kind===Kind.OPERATION_DEFINITION)return rt(It.name&&It.name.value);if(It.kind===Kind.FRAGMENT_DEFINITION)return nt(It.name.value)}return globalThis.__DEV__!==!1&&invariant$5.error(86),null},ut=0,dt=tt.definitions.length-1;dt>=0;--dt)tt.definitions[dt].kind===Kind.OPERATION_DEFINITION&&++ut;var pt=getDirectiveMatcher(et),ht=function(Tt){return isNonEmptyArray(Tt)&&Tt.map(pt).some(function(Ct){return Ct&&Ct.remove})},mt=new Map,xt=!1,Mt={enter:function(Tt){if(ht(Tt.directives))return xt=!0,null}},vt=visit(tt,{Field:Mt,InlineFragment:Mt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(Tt,Ct,It,Dt,kt){var qt=lt(kt);qt&&qt.variables.add(Tt.name.value)}},FragmentSpread:{enter:function(Tt,Ct,It,Dt,kt){if(ht(Tt.directives))return xt=!0,null;var qt=lt(kt);qt&&qt.fragmentSpreads.add(Tt.name.value)}},FragmentDefinition:{enter:function(Tt,Ct,It,Dt){mt.set(JSON.stringify(Dt),Tt)},leave:function(Tt,Ct,It,Dt){var kt=mt.get(JSON.stringify(Dt));if(Tt===kt)return Tt;if(ut>0&&Tt.selectionSet.selections.every(function(qt){return qt.kind===Kind.FIELD&&qt.name.value==="__typename"}))return nt(Tt.name.value).removed=!0,xt=!0,null}},Directive:{leave:function(Tt){if(pt(Tt))return xt=!0,null}}});if(!xt)return tt;var Ot=function(Tt){return Tt.transitiveVars||(Tt.transitiveVars=new Set(Tt.variables),Tt.removed||Tt.fragmentSpreads.forEach(function(Ct){Ot(nt(Ct)).transitiveVars.forEach(function(It){Tt.transitiveVars.add(It)})})),Tt},At=new Set;vt.definitions.forEach(function(Tt){Tt.kind===Kind.OPERATION_DEFINITION?Ot(rt(Tt.name&&Tt.name.value)).fragmentSpreads.forEach(function(Ct){At.add(Ct)}):Tt.kind===Kind.FRAGMENT_DEFINITION&&ut===0&&!nt(Tt.name.value).removed&&At.add(Tt.name.value)}),At.forEach(function(Tt){Ot(nt(Tt)).fragmentSpreads.forEach(function(Ct){At.add(Ct)})});var Rt=function(Tt){return!!(!At.has(Tt)||nt(Tt).removed)},zt={enter:function(Tt){if(Rt(Tt.name.value))return null}};return nullIfDocIsEmpty(visit(vt,{FragmentSpread:zt,FragmentDefinition:zt,OperationDefinition:{leave:function(Tt){if(Tt.variableDefinitions){var Ct=Ot(rt(Tt.name&&Tt.name.value)).transitiveVars;if(Ct.size<Tt.variableDefinitions.length)return __assign(__assign({},Tt),{variableDefinitions:Tt.variableDefinitions.filter(function(It){return Ct.has(It.variable.name.value)})})}}}}))}var addTypenameToDocument=Object.assign(function(et){return visit(et,{SelectionSet:{enter:function(tt,rt,nt){if(!(nt&&nt.kind===Kind.OPERATION_DEFINITION)){var lt=tt.selections;if(lt){var ut=lt.some(function(pt){return isField(pt)&&(pt.name.value==="__typename"||pt.name.value.lastIndexOf("__",0)===0)});if(!ut){var dt=nt;if(!(isField(dt)&&dt.directives&&dt.directives.some(function(pt){return pt.name.value==="export"})))return __assign(__assign({},tt),{selections:__spreadArray$2(__spreadArray$2([],lt,!0),[TYPENAME_FIELD],!1)})}}}}}})},{added:function(et){return et===TYPENAME_FIELD}});function buildQueryFromSelectionSet(et){var tt=getMainDefinition(et),rt=tt.operation;if(rt==="query")return et;var nt=visit(et,{OperationDefinition:{enter:function(lt){return __assign(__assign({},lt),{operation:"query"})}}});return nt}function removeClientSetsFromDocument(et){checkDocument(et);var tt=removeDirectivesFromDocument([{test:function(rt){return rt.name.value==="client"},remove:!0}],et);return tt}var hasOwnProperty$u=Object.prototype.hasOwnProperty;function mergeDeep(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return mergeDeepArray(et)}function mergeDeepArray(et){var tt=et[0]||{},rt=et.length;if(rt>1)for(var nt=new DeepMerger,lt=1;lt<rt;++lt)tt=nt.merge(tt,et[lt]);return tt}var defaultReconciler=function(et,tt,rt){return this.merge(et[rt],tt[rt])},DeepMerger=function(){function et(tt){tt===void 0&&(tt=defaultReconciler),this.reconciler=tt,this.isObject=isNonNullObject$1,this.pastCopies=new Set}return et.prototype.merge=function(tt,rt){for(var nt=this,lt=[],ut=2;ut<arguments.length;ut++)lt[ut-2]=arguments[ut];return isNonNullObject$1(rt)&&isNonNullObject$1(tt)?(Object.keys(rt).forEach(function(dt){if(hasOwnProperty$u.call(tt,dt)){var pt=tt[dt];if(rt[dt]!==pt){var ht=nt.reconciler.apply(nt,__spreadArray$2([tt,rt,dt],lt,!1));ht!==pt&&(tt=nt.shallowCopyForMerge(tt),tt[dt]=ht)}}else tt=nt.shallowCopyForMerge(tt),tt[dt]=rt[dt]}),tt):rt},et.prototype.shallowCopyForMerge=function(tt){return isNonNullObject$1(tt)&&(this.pastCopies.has(tt)||(Array.isArray(tt)?tt=tt.slice(0):tt=__assign({__proto__:Object.getPrototypeOf(tt)},tt),this.pastCopies.add(tt))),tt},et}();function _createForOfIteratorHelperLoose$d(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$l(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$l(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$l(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$l(et,tt)}}function _arrayLikeToArray$l(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _defineProperties$k(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$p(et,tt,rt){return tt&&_defineProperties$k(et.prototype,tt),rt&&_defineProperties$k(et,rt),Object.defineProperty(et,"prototype",{writable:!1}),et}var hasSymbols$3=function(){return typeof Symbol=="function"},hasSymbol$1=function(et){return hasSymbols$3()&&!!Symbol[et]},getSymbol=function(et){return hasSymbol$1(et)?Symbol[et]:"@@"+et};hasSymbols$3()&&!hasSymbol$1("observable")&&(Symbol.observable=Symbol("observable"));var SymbolIterator=getSymbol("iterator"),SymbolObservable=getSymbol("observable"),SymbolSpecies=getSymbol("species");function getMethod(et,tt){var rt=et[tt];if(rt!=null){if(typeof rt!="function")throw new TypeError(rt+" is not a function");return rt}}function getSpecies(et){var tt=et.constructor;return tt!==void 0&&(tt=tt[SymbolSpecies],tt===null&&(tt=void 0)),tt!==void 0?tt:Observable$1}function isObservable(et){return et instanceof Observable$1}function hostReportError(et){hostReportError.log?hostReportError.log(et):setTimeout(function(){throw et})}function enqueue(et){Promise.resolve().then(function(){try{et()}catch(tt){hostReportError(tt)}})}function cleanupSubscription(et){var tt=et._cleanup;if(tt!==void 0&&(et._cleanup=void 0,!!tt))try{if(typeof tt=="function")tt();else{var rt=getMethod(tt,"unsubscribe");rt&&rt.call(tt)}}catch(nt){hostReportError(nt)}}function closeSubscription(et){et._observer=void 0,et._queue=void 0,et._state="closed"}function flushSubscription(et){var tt=et._queue;if(tt){et._queue=void 0,et._state="ready";for(var rt=0;rt<tt.length&&(notifySubscription(et,tt[rt].type,tt[rt].value),et._state!=="closed");++rt);}}function notifySubscription(et,tt,rt){et._state="running";var nt=et._observer;try{var lt=getMethod(nt,tt);switch(tt){case"next":lt&&lt.call(nt,rt);break;case"error":if(closeSubscription(et),lt)lt.call(nt,rt);else throw rt;break;case"complete":closeSubscription(et),lt&&lt.call(nt);break}}catch(ut){hostReportError(ut)}et._state==="closed"?cleanupSubscription(et):et._state==="running"&&(et._state="ready")}function onNotify(et,tt,rt){if(et._state!=="closed"){if(et._state==="buffering"){et._queue.push({type:tt,value:rt});return}if(et._state!=="ready"){et._state="buffering",et._queue=[{type:tt,value:rt}],enqueue(function(){return flushSubscription(et)});return}notifySubscription(et,tt,rt)}}var Subscription=function(){function et(rt,nt){this._cleanup=void 0,this._observer=rt,this._queue=void 0,this._state="initializing";var lt=new SubscriptionObserver(this);try{this._cleanup=nt.call(void 0,lt)}catch(ut){lt.error(ut)}this._state==="initializing"&&(this._state="ready")}var tt=et.prototype;return tt.unsubscribe=function(){this._state!=="closed"&&(closeSubscription(this),cleanupSubscription(this))},_createClass$p(et,[{key:"closed",get:function(){return this._state==="closed"}}]),et}(),SubscriptionObserver=function(){function et(rt){this._subscription=rt}var tt=et.prototype;return tt.next=function(nt){onNotify(this._subscription,"next",nt)},tt.error=function(nt){onNotify(this._subscription,"error",nt)},tt.complete=function(){onNotify(this._subscription,"complete")},_createClass$p(et,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),et}(),Observable$1=function(){function et(rt){if(!(this instanceof et))throw new TypeError("Observable cannot be called as a function");if(typeof rt!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=rt}var tt=et.prototype;return tt.subscribe=function(nt){return(typeof nt!="object"||nt===null)&&(nt={next:nt,error:arguments[1],complete:arguments[2]}),new Subscription(nt,this._subscriber)},tt.forEach=function(nt){var lt=this;return new Promise(function(ut,dt){if(typeof nt!="function"){dt(new TypeError(nt+" is not a function"));return}function pt(){ht.unsubscribe(),ut()}var ht=lt.subscribe({next:function(mt){try{nt(mt,pt)}catch(xt){dt(xt),ht.unsubscribe()}},error:dt,complete:ut})})},tt.map=function(nt){var lt=this;if(typeof nt!="function")throw new TypeError(nt+" is not a function");var ut=getSpecies(this);return new ut(function(dt){return lt.subscribe({next:function(pt){try{pt=nt(pt)}catch(ht){return dt.error(ht)}dt.next(pt)},error:function(pt){dt.error(pt)},complete:function(){dt.complete()}})})},tt.filter=function(nt){var lt=this;if(typeof nt!="function")throw new TypeError(nt+" is not a function");var ut=getSpecies(this);return new ut(function(dt){return lt.subscribe({next:function(pt){try{if(!nt(pt))return}catch(ht){return dt.error(ht)}dt.next(pt)},error:function(pt){dt.error(pt)},complete:function(){dt.complete()}})})},tt.reduce=function(nt){var lt=this;if(typeof nt!="function")throw new TypeError(nt+" is not a function");var ut=getSpecies(this),dt=arguments.length>1,pt=!1,ht=arguments[1],mt=ht;return new ut(function(xt){return lt.subscribe({next:function(Mt){var vt=!pt;if(pt=!0,!vt||dt)try{mt=nt(mt,Mt)}catch(Ot){return xt.error(Ot)}else mt=Mt},error:function(Mt){xt.error(Mt)},complete:function(){if(!pt&&!dt)return xt.error(new TypeError("Cannot reduce an empty sequence"));xt.next(mt),xt.complete()}})})},tt.concat=function(){for(var nt=this,lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];var pt=getSpecies(this);return new pt(function(ht){var mt,xt=0;function Mt(vt){mt=vt.subscribe({next:function(Ot){ht.next(Ot)},error:function(Ot){ht.error(Ot)},complete:function(){xt===ut.length?(mt=void 0,ht.complete()):Mt(pt.from(ut[xt++]))}})}return Mt(nt),function(){mt&&(mt.unsubscribe(),mt=void 0)}})},tt.flatMap=function(nt){var lt=this;if(typeof nt!="function")throw new TypeError(nt+" is not a function");var ut=getSpecies(this);return new ut(function(dt){var pt=[],ht=lt.subscribe({next:function(xt){if(nt)try{xt=nt(xt)}catch(vt){return dt.error(vt)}var Mt=ut.from(xt).subscribe({next:function(vt){dt.next(vt)},error:function(vt){dt.error(vt)},complete:function(){var vt=pt.indexOf(Mt);vt>=0&&pt.splice(vt,1),mt()}});pt.push(Mt)},error:function(xt){dt.error(xt)},complete:function(){mt()}});function mt(){ht.closed&&pt.length===0&&dt.complete()}return function(){pt.forEach(function(xt){return xt.unsubscribe()}),ht.unsubscribe()}})},tt[SymbolObservable]=function(){return this},et.from=function(nt){var lt=typeof this=="function"?this:et;if(nt==null)throw new TypeError(nt+" is not an object");var ut=getMethod(nt,SymbolObservable);if(ut){var dt=ut.call(nt);if(Object(dt)!==dt)throw new TypeError(dt+" is not an object");return isObservable(dt)&&dt.constructor===lt?dt:new lt(function(pt){return dt.subscribe(pt)})}if(hasSymbol$1("iterator")&&(ut=getMethod(nt,SymbolIterator),ut))return new lt(function(pt){enqueue(function(){if(!pt.closed){for(var ht=_createForOfIteratorHelperLoose$d(ut.call(nt)),mt;!(mt=ht()).done;){var xt=mt.value;if(pt.next(xt),pt.closed)return}pt.complete()}})});if(Array.isArray(nt))return new lt(function(pt){enqueue(function(){if(!pt.closed){for(var ht=0;ht<nt.length;++ht)if(pt.next(nt[ht]),pt.closed)return;pt.complete()}})});throw new TypeError(nt+" is not observable")},et.of=function(){for(var nt=arguments.length,lt=new Array(nt),ut=0;ut<nt;ut++)lt[ut]=arguments[ut];var dt=typeof this=="function"?this:et;return new dt(function(pt){enqueue(function(){if(!pt.closed){for(var ht=0;ht<lt.length;++ht)if(pt.next(lt[ht]),pt.closed)return;pt.complete()}})})},_createClass$p(et,null,[{key:SymbolSpecies,get:function(){return this}}]),et}();hasSymbols$3()&&Object.defineProperty(Observable$1,Symbol("extensions"),{value:{symbol:SymbolObservable,hostReportError},configurable:!0});function symbolObservablePonyfill(et){var tt,rt=et.Symbol;if(typeof rt=="function")if(rt.observable)tt=rt.observable;else{typeof rt.for=="function"?tt=rt.for("https://github.com/benlesh/symbol-observable"):tt=rt("https://github.com/benlesh/symbol-observable");try{rt.observable=tt}catch{}}else tt="@@observable";return tt}var root$d;typeof self<"u"?root$d=self:typeof window<"u"?root$d=window:typeof global$2<"u"?root$d=global$2:typeof module<"u"?root$d=module:root$d=Function("return this")();symbolObservablePonyfill(root$d);var prototype$2=Observable$1.prototype,fakeObsSymbol="@@observable";prototype$2[fakeObsSymbol]||(prototype$2[fakeObsSymbol]=function(){return this});var toString$e=Object.prototype.toString;function cloneDeep$1(et){return cloneDeepHelper(et)}function cloneDeepHelper(et,tt){switch(toString$e.call(et)){case"[object Array]":{if(tt=tt||new Map,tt.has(et))return tt.get(et);var rt=et.slice(0);return tt.set(et,rt),rt.forEach(function(lt,ut){rt[ut]=cloneDeepHelper(lt,tt)}),rt}case"[object Object]":{if(tt=tt||new Map,tt.has(et))return tt.get(et);var nt=Object.create(Object.getPrototypeOf(et));return tt.set(et,nt),Object.keys(et).forEach(function(lt){nt[lt]=cloneDeepHelper(et[lt],tt)}),nt}default:return et}}function deepFreeze(et){var tt=new Set([et]);return tt.forEach(function(rt){isNonNullObject$1(rt)&&shallowFreeze(rt)===rt&&Object.getOwnPropertyNames(rt).forEach(function(nt){isNonNullObject$1(rt[nt])&&tt.add(rt[nt])})}),et}function shallowFreeze(et){if(globalThis.__DEV__!==!1&&!Object.isFrozen(et))try{Object.freeze(et)}catch(tt){if(tt instanceof TypeError)return null;throw tt}return et}function maybeDeepFreeze(et){return globalThis.__DEV__!==!1&&deepFreeze(et),et}function iterateObserversSafely(et,tt,rt){var nt=[];et.forEach(function(lt){return lt[tt]&&nt.push(lt)}),nt.forEach(function(lt){return lt[tt](rt)})}function asyncMap(et,tt,rt){return new Observable$1(function(nt){var lt={then:function(ht){return new Promise(function(mt){return mt(ht())})}};function ut(ht,mt){return function(xt){if(ht){var Mt=function(){return nt.closed?0:ht(xt)};lt=lt.then(Mt,Mt).then(function(vt){return nt.next(vt)},function(vt){return nt.error(vt)})}else nt[mt](xt)}}var dt={next:ut(tt,"next"),error:ut(rt,"error"),complete:function(){lt.then(function(){return nt.complete()})}},pt=et.subscribe(dt);return function(){return pt.unsubscribe()}})}function fixObservableSubclass(et){function tt(rt){Object.defineProperty(et,rt,{value:Observable$1})}return canUseSymbol$1&&Symbol.species&&tt(Symbol.species),tt("@@species"),et}function isPromiseLike(et){return et&&typeof et.then=="function"}var Concast=function(et){__extends(tt,et);function tt(rt){var nt=et.call(this,function(lt){return nt.addObserver(lt),function(){return nt.removeObserver(lt)}})||this;return nt.observers=new Set,nt.promise=new Promise(function(lt,ut){nt.resolve=lt,nt.reject=ut}),nt.handlers={next:function(lt){nt.sub!==null&&(nt.latest=["next",lt],nt.notify("next",lt),iterateObserversSafely(nt.observers,"next",lt))},error:function(lt){var ut=nt.sub;ut!==null&&(ut&&setTimeout(function(){return ut.unsubscribe()}),nt.sub=null,nt.latest=["error",lt],nt.reject(lt),nt.notify("error",lt),iterateObserversSafely(nt.observers,"error",lt))},complete:function(){var lt=nt,ut=lt.sub,dt=lt.sources,pt=dt===void 0?[]:dt;if(ut!==null){var ht=pt.shift();ht?isPromiseLike(ht)?ht.then(function(mt){return nt.sub=mt.subscribe(nt.handlers)},nt.handlers.error):nt.sub=ht.subscribe(nt.handlers):(ut&&setTimeout(function(){return ut.unsubscribe()}),nt.sub=null,nt.latest&&nt.latest[0]==="next"?nt.resolve(nt.latest[1]):nt.resolve(),nt.notify("complete"),iterateObserversSafely(nt.observers,"complete"))}}},nt.nextResultListeners=new Set,nt.cancel=function(lt){nt.reject(lt),nt.sources=[],nt.handlers.error(lt)},nt.promise.catch(function(lt){}),typeof rt=="function"&&(rt=[new Observable$1(rt)]),isPromiseLike(rt)?rt.then(function(lt){return nt.start(lt)},nt.handlers.error):nt.start(rt),nt}return tt.prototype.start=function(rt){this.sub===void 0&&(this.sources=Array.from(rt),this.handlers.complete())},tt.prototype.deliverLastMessage=function(rt){if(this.latest){var nt=this.latest[0],lt=rt[nt];lt&&lt.call(rt,this.latest[1]),this.sub===null&&nt==="next"&&rt.complete&&rt.complete()}},tt.prototype.addObserver=function(rt){this.observers.has(rt)||(this.deliverLastMessage(rt),this.observers.add(rt))},tt.prototype.removeObserver=function(rt){this.observers.delete(rt)&&this.observers.size<1&&this.handlers.complete()},tt.prototype.notify=function(rt,nt){var lt=this.nextResultListeners;lt.size&&(this.nextResultListeners=new Set,lt.forEach(function(ut){return ut(rt,nt)}))},tt.prototype.beforeNext=function(rt){var nt=!1;this.nextResultListeners.add(function(lt,ut){nt||(nt=!0,rt(lt,ut))})},tt}(Observable$1);fixObservableSubclass(Concast);function isExecutionPatchIncrementalResult(et){return"incremental"in et}function isExecutionPatchInitialResult(et){return"hasNext"in et&&"data"in et}function isExecutionPatchResult(et){return isExecutionPatchIncrementalResult(et)||isExecutionPatchInitialResult(et)}function isApolloPayloadResult(et){return isNonNullObject$1(et)&&"payload"in et}function mergeIncrementalData(et,tt){var rt=et,nt=new DeepMerger;return isExecutionPatchIncrementalResult(tt)&&isNonEmptyArray(tt.incremental)&&tt.incremental.forEach(function(lt){for(var ut=lt.data,dt=lt.path,pt=dt.length-1;pt>=0;--pt){var ht=dt[pt],mt=!isNaN(+ht),xt=mt?[]:{};xt[ht]=ut,ut=xt}rt=nt.merge(rt,ut)}),rt}function graphQLResultHasError(et){var tt=getGraphQLErrorsFromResult(et);return isNonEmptyArray(tt)}function getGraphQLErrorsFromResult(et){var tt=isNonEmptyArray(et.errors)?et.errors.slice(0):[];return isExecutionPatchIncrementalResult(et)&&isNonEmptyArray(et.incremental)&&et.incremental.forEach(function(rt){rt.errors&&tt.push.apply(tt,rt.errors)}),tt}function compact$1(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];var rt=Object.create(null);return et.forEach(function(nt){nt&&Object.keys(nt).forEach(function(lt){var ut=nt[lt];ut!==void 0&&(rt[lt]=ut)})}),rt}function mergeOptions(et,tt){return compact$1(et,tt,tt.variables&&{variables:compact$1(__assign(__assign({},et&&et.variables),tt.variables))})}function fromError(et){return new Observable$1(function(tt){tt.error(et)})}var throwServerError=function(et,tt,rt){var nt=new Error(rt);throw nt.name="ServerError",nt.response=et,nt.statusCode=et.status,nt.result=tt,nt};function validateOperation(et){for(var tt=["query","operationName","variables","extensions","context"],rt=0,nt=Object.keys(et);rt<nt.length;rt++){var lt=nt[rt];if(tt.indexOf(lt)<0)throw newInvariantError(44,lt)}return et}function createOperation(et,tt){var rt=__assign({},et),nt=function(ut){typeof ut=="function"?rt=__assign(__assign({},rt),ut(rt)):rt=__assign(__assign({},rt),ut)},lt=function(){return __assign({},rt)};return Object.defineProperty(tt,"setContext",{enumerable:!1,value:nt}),Object.defineProperty(tt,"getContext",{enumerable:!1,value:lt}),tt}function transformOperation(et){var tt={variables:et.variables||{},extensions:et.extensions||{},operationName:et.operationName,query:et.query};return tt.operationName||(tt.operationName=typeof tt.query!="string"?getOperationName(tt.query)||void 0:""),tt}function filterOperationVariables(et,tt){var rt=__assign({},et),nt=new Set(Object.keys(et));return visit(tt,{Variable:function(lt,ut,dt){dt&&dt.kind!=="VariableDefinition"&&nt.delete(lt.name.value)}}),nt.forEach(function(lt){delete rt[lt]}),rt}function passthrough(et,tt){return tt?tt(et):Observable$1.of()}function toLink(et){return typeof et=="function"?new ApolloLink(et):et}function isTerminating(et){return et.request.length<=1}var ApolloLink=function(){function et(tt){tt&&(this.request=tt)}return et.empty=function(){return new et(function(){return Observable$1.of()})},et.from=function(tt){return tt.length===0?et.empty():tt.map(toLink).reduce(function(rt,nt){return rt.concat(nt)})},et.split=function(tt,rt,nt){var lt=toLink(rt),ut=toLink(nt||new et(passthrough)),dt;return isTerminating(lt)&&isTerminating(ut)?dt=new et(function(pt){return tt(pt)?lt.request(pt)||Observable$1.of():ut.request(pt)||Observable$1.of()}):dt=new et(function(pt,ht){return tt(pt)?lt.request(pt,ht)||Observable$1.of():ut.request(pt,ht)||Observable$1.of()}),Object.assign(dt,{left:lt,right:ut})},et.execute=function(tt,rt){return tt.request(createOperation(rt.context,transformOperation(validateOperation(rt))))||Observable$1.of()},et.concat=function(tt,rt){var nt=toLink(tt);if(isTerminating(nt))return globalThis.__DEV__!==!1&&invariant$5.warn(36,nt),nt;var lt=toLink(rt),ut;return isTerminating(lt)?ut=new et(function(dt){return nt.request(dt,function(pt){return lt.request(pt)||Observable$1.of()})||Observable$1.of()}):ut=new et(function(dt,pt){return nt.request(dt,function(ht){return lt.request(ht,pt)||Observable$1.of()})||Observable$1.of()}),Object.assign(ut,{left:nt,right:lt})},et.prototype.split=function(tt,rt,nt){return this.concat(et.split(tt,rt,nt||new et(passthrough)))},et.prototype.concat=function(tt){return et.concat(this,tt)},et.prototype.request=function(tt,rt){throw newInvariantError(37)},et.prototype.onError=function(tt,rt){if(rt&&rt.error)return rt.error(tt),!1;throw tt},et.prototype.setOnError=function(tt){return this.onError=tt,this},et}(),execute$2=ApolloLink.execute;function asyncIterator(et){var tt,rt=et[Symbol.asyncIterator]();return tt={next:function(){return rt.next()}},tt[Symbol.asyncIterator]=function(){return this},tt}function nodeStreamIterator(et){var tt=null,rt=null,nt=!1,lt=[],ut=[];function dt(Mt){if(!rt){if(ut.length){var vt=ut.shift();if(Array.isArray(vt)&&vt[0])return vt[0]({value:Mt,done:!1})}lt.push(Mt)}}function pt(Mt){rt=Mt;var vt=ut.slice();vt.forEach(function(Ot){Ot[1](Mt)}),!tt||tt()}function ht(){nt=!0;var Mt=ut.slice();Mt.forEach(function(vt){vt[0]({value:void 0,done:!0})}),!tt||tt()}tt=function(){tt=null,et.removeListener("data",dt),et.removeListener("error",pt),et.removeListener("end",ht),et.removeListener("finish",ht),et.removeListener("close",ht)},et.on("data",dt),et.on("error",pt),et.on("end",ht),et.on("finish",ht),et.on("close",ht);function mt(){return new Promise(function(Mt,vt){if(rt)return vt(rt);if(lt.length)return Mt({value:lt.shift(),done:!1});if(nt)return Mt({value:void 0,done:!0});ut.push([Mt,vt])})}var xt={next:function(){return mt()}};return canUseAsyncIteratorSymbol&&(xt[Symbol.asyncIterator]=function(){return this}),xt}function promiseIterator(et){var tt=!1,rt={next:function(){return tt?Promise.resolve({value:void 0,done:!0}):(tt=!0,new Promise(function(nt,lt){et.then(function(ut){nt({value:ut,done:!1})}).catch(lt)}))}};return canUseAsyncIteratorSymbol&&(rt[Symbol.asyncIterator]=function(){return this}),rt}function readerIterator(et){var tt={next:function(){return et.read()}};return canUseAsyncIteratorSymbol&&(tt[Symbol.asyncIterator]=function(){return this}),tt}function isNodeResponse(et){return!!et.body}function isReadableStream$1(et){return!!et.getReader}function isAsyncIterableIterator(et){return!!(canUseAsyncIteratorSymbol&&et[Symbol.asyncIterator])}function isStreamableBlob(et){return!!et.stream}function isBlob$1(et){return!!et.arrayBuffer}function isNodeReadableStream(et){return!!et.pipe}function responseIterator(et){var tt=et;if(isNodeResponse(et)&&(tt=et.body),isAsyncIterableIterator(tt))return asyncIterator(tt);if(isReadableStream$1(tt))return readerIterator(tt.getReader());if(isStreamableBlob(tt))return readerIterator(tt.stream().getReader());if(isBlob$1(tt))return promiseIterator(tt.arrayBuffer());if(isNodeReadableStream(tt))return nodeStreamIterator(tt);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var PROTOCOL_ERRORS_SYMBOL=Symbol();function graphQLResultHasProtocolErrors(et){return et.extensions?Array.isArray(et.extensions[PROTOCOL_ERRORS_SYMBOL]):!1}function isApolloError(et){return et.hasOwnProperty("graphQLErrors")}var generateErrorMessage=function(et){var tt=__spreadArray$2(__spreadArray$2(__spreadArray$2([],et.graphQLErrors,!0),et.clientErrors,!0),et.protocolErrors,!0);return et.networkError&&tt.push(et.networkError),tt.map(function(rt){return isNonNullObject$1(rt)&&rt.message||"Error message not found."}).join(`
`)},ApolloError=function(et){__extends(tt,et);function tt(rt){var nt=rt.graphQLErrors,lt=rt.protocolErrors,ut=rt.clientErrors,dt=rt.networkError,pt=rt.errorMessage,ht=rt.extraInfo,mt=et.call(this,pt)||this;return mt.name="ApolloError",mt.graphQLErrors=nt||[],mt.protocolErrors=lt||[],mt.clientErrors=ut||[],mt.networkError=dt||null,mt.message=pt||generateErrorMessage(mt),mt.extraInfo=ht,mt.cause=__spreadArray$2(__spreadArray$2(__spreadArray$2([dt],nt||[],!0),lt||[],!0),ut||[],!0).find(function(xt){return!!xt})||null,mt.__proto__=tt.prototype,mt}return tt}(Error),hasOwnProperty$t=Object.prototype.hasOwnProperty;function readMultipartBody(et,tt){return __awaiter$1(this,void 0,void 0,function(){var rt,nt,lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct,It,Dt,kt,qt,Nt,Yt,Kt;return __generator$1(this,function(Jt){switch(Jt.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");rt=new TextDecoder("utf-8"),nt=(Kt=et.headers)===null||Kt===void 0?void 0:Kt.get("content-type"),lt="boundary=",ut=nt!=null&&nt.includes(lt)?nt==null?void 0:nt.substring((nt==null?void 0:nt.indexOf(lt))+lt.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",dt=`\r
--`.concat(ut),pt="",ht=responseIterator(et),mt=!0,Jt.label=1;case 1:return mt?[4,ht.next()]:[3,3];case 2:for(xt=Jt.sent(),Mt=xt.value,vt=xt.done,Ot=typeof Mt=="string"?Mt:rt.decode(Mt),At=pt.length-dt.length+1,mt=!vt,pt+=Ot,Rt=pt.indexOf(dt,At);Rt>-1;){if(zt=void 0,Nt=[pt.slice(0,Rt),pt.slice(Rt+dt.length)],zt=Nt[0],pt=Nt[1],Tt=zt.indexOf(`\r
\r
`),Ct=parseHeaders$1(zt.slice(0,Tt)),It=Ct["content-type"],It&&It.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(Dt=zt.slice(Tt),Dt){if(kt=parseJsonBody(et,Dt),Object.keys(kt).length>1||"data"in kt||"incremental"in kt||"errors"in kt||"payload"in kt)if(isApolloPayloadResult(kt)){if(qt={},"payload"in kt){if(Object.keys(kt).length===1&&kt.payload===null)return[2];qt=__assign({},kt.payload)}"errors"in kt&&(qt=__assign(__assign({},qt),{extensions:__assign(__assign({},"extensions"in qt?qt.extensions:null),(Yt={},Yt[PROTOCOL_ERRORS_SYMBOL]=kt.errors,Yt))})),tt(qt)}else tt(kt);else if(Object.keys(kt).length===1&&"hasNext"in kt&&!kt.hasNext)return[2]}Rt=pt.indexOf(dt)}return[3,1];case 3:return[2]}})})}function parseHeaders$1(et){var tt={};return et.split(`
`).forEach(function(rt){var nt=rt.indexOf(":");if(nt>-1){var lt=rt.slice(0,nt).trim().toLowerCase(),ut=rt.slice(nt+1).trim();tt[lt]=ut}}),tt}function parseJsonBody(et,tt){if(et.status>=300){var rt=function(){try{return JSON.parse(tt)}catch{return tt}};throwServerError(et,rt(),"Response not successful: Received status code ".concat(et.status))}try{return JSON.parse(tt)}catch(lt){var nt=lt;throw nt.name="ServerParseError",nt.response=et,nt.statusCode=et.status,nt.bodyText=tt,nt}}function handleError(et,tt){et.result&&et.result.errors&&et.result.data&&tt.next(et.result),tt.error(et)}function parseAndCheckHttpResponse(et){return function(tt){return tt.text().then(function(rt){return parseJsonBody(tt,rt)}).then(function(rt){return!Array.isArray(rt)&&!hasOwnProperty$t.call(rt,"data")&&!hasOwnProperty$t.call(rt,"errors")&&throwServerError(tt,rt,"Server response was missing for query '".concat(Array.isArray(et)?et.map(function(nt){return nt.operationName}):et.operationName,"'.")),rt})}}var serializeFetchParameter=function(et,tt){var rt;try{rt=JSON.stringify(et)}catch(lt){var nt=newInvariantError(40,tt,lt.message);throw nt.parseError=lt,nt}return rt},defaultHttpOptions={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},defaultHeaders={accept:"*/*","content-type":"application/json"},defaultOptions={method:"POST"},fallbackHttpConfig={http:defaultHttpOptions,headers:defaultHeaders,options:defaultOptions},defaultPrinter=function(et,tt){return tt(et)};function selectHttpOptionsAndBodyInternal(et,tt){for(var rt=[],nt=2;nt<arguments.length;nt++)rt[nt-2]=arguments[nt];var lt={},ut={};rt.forEach(function(Mt){lt=__assign(__assign(__assign({},lt),Mt.options),{headers:__assign(__assign({},lt.headers),Mt.headers)}),Mt.credentials&&(lt.credentials=Mt.credentials),ut=__assign(__assign({},ut),Mt.http)}),lt.headers&&(lt.headers=removeDuplicateHeaders(lt.headers,ut.preserveHeaderCase));var dt=et.operationName,pt=et.extensions,ht=et.variables,mt=et.query,xt={operationName:dt,variables:ht};return ut.includeExtensions&&(xt.extensions=pt),ut.includeQuery&&(xt.query=tt(mt,print)),{options:lt,body:xt}}function removeDuplicateHeaders(et,tt){if(!tt){var rt={};return Object.keys(Object(et)).forEach(function(ut){rt[ut.toLowerCase()]=et[ut]}),rt}var nt={};Object.keys(Object(et)).forEach(function(ut){nt[ut.toLowerCase()]={originalName:ut,value:et[ut]}});var lt={};return Object.keys(nt).forEach(function(ut){lt[nt[ut].originalName]=nt[ut].value}),lt}var checkFetcher=function(et){if(!et&&typeof fetch>"u")throw newInvariantError(38)},selectURI=function(et,tt){var rt=et.getContext(),nt=rt.uri;return nt||(typeof tt=="function"?tt(et):tt||"/graphql")};function rewriteURIForGET(et,tt){var rt=[],nt=function(Mt,vt){rt.push("".concat(Mt,"=").concat(encodeURIComponent(vt)))};if("query"in tt&&nt("query",tt.query),tt.operationName&&nt("operationName",tt.operationName),tt.variables){var lt=void 0;try{lt=serializeFetchParameter(tt.variables,"Variables map")}catch(Mt){return{parseError:Mt}}nt("variables",lt)}if(tt.extensions){var ut=void 0;try{ut=serializeFetchParameter(tt.extensions,"Extensions map")}catch(Mt){return{parseError:Mt}}nt("extensions",ut)}var dt="",pt=et,ht=et.indexOf("#");ht!==-1&&(dt=et.substr(ht),pt=et.substr(0,ht));var mt=pt.indexOf("?")===-1?"?":"&",xt=pt+mt+rt.join("&")+dt;return{newURI:xt}}var backupFetch=maybe$1(function(){return fetch}),createHttpLink=function(et){et===void 0&&(et={});var tt=et.uri,rt=tt===void 0?"/graphql":tt,nt=et.fetch,lt=et.print,ut=lt===void 0?defaultPrinter:lt,dt=et.includeExtensions,pt=et.preserveHeaderCase,ht=et.useGETForQueries,mt=et.includeUnusedVariables,xt=mt===void 0?!1:mt,Mt=__rest(et,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&checkFetcher(nt||backupFetch);var vt={http:{includeExtensions:dt,preserveHeaderCase:pt},options:Mt.fetchOptions,credentials:Mt.credentials,headers:Mt.headers};return new ApolloLink(function(Ot){var At=selectURI(Ot,rt),Rt=Ot.getContext(),zt={};if(Rt.clientAwareness){var Tt=Rt.clientAwareness,Ct=Tt.name,It=Tt.version;Ct&&(zt["apollographql-client-name"]=Ct),It&&(zt["apollographql-client-version"]=It)}var Dt=__assign(__assign({},zt),Rt.headers),kt={http:Rt.http,options:Rt.fetchOptions,credentials:Rt.credentials,headers:Dt};if(hasDirectives(["client"],Ot.query)){var qt=removeClientSetsFromDocument(Ot.query);if(!qt)return fromError(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));Ot.query=qt}var Nt=selectHttpOptionsAndBodyInternal(Ot,ut,fallbackHttpConfig,vt,kt),Yt=Nt.options,Kt=Nt.body;Kt.variables&&!xt&&(Kt.variables=filterOperationVariables(Kt.variables,Ot.query));var Jt;!Yt.signal&&typeof AbortController<"u"&&(Jt=new AbortController,Yt.signal=Jt.signal);var Qt=function(Ht){return Ht.kind==="OperationDefinition"&&Ht.operation==="mutation"},Bt=function(Ht){return Ht.kind==="OperationDefinition"&&Ht.operation==="subscription"},Ft=Bt(getMainDefinition(Ot.query)),$t=hasDirectives(["defer"],Ot.query);if(ht&&!Ot.query.definitions.some(Qt)&&(Yt.method="GET"),$t||Ft){Yt.headers=Yt.headers||{};var jt="multipart/mixed;";Ft&&$t&&globalThis.__DEV__!==!1&&invariant$5.warn(39),Ft?jt+="boundary=graphql;subscriptionSpec=1.0,application/json":$t&&(jt+="deferSpec=20220824,application/json"),Yt.headers.accept=jt}if(Yt.method==="GET"){var Wt=rewriteURIForGET(At,Kt),Ut=Wt.newURI,Vt=Wt.parseError;if(Vt)return fromError(Vt);At=Ut}else try{Yt.body=serializeFetchParameter(Kt,"Payload")}catch(Ht){return fromError(Ht)}return new Observable$1(function(Ht){var Gt=nt||maybe$1(function(){return fetch})||backupFetch,Zt=Ht.next.bind(Ht);return Gt(At,Yt).then(function(Xt){var er;Ot.setContext({response:Xt});var nr=(er=Xt.headers)===null||er===void 0?void 0:er.get("content-type");return nr!==null&&/^multipart\/mixed/i.test(nr)?readMultipartBody(Xt,Zt):parseAndCheckHttpResponse(Ot)(Xt).then(Zt)}).then(function(){Jt=void 0,Ht.complete()}).catch(function(Xt){Jt=void 0,handleError(Xt,Ht)}),function(){Jt&&Jt.abort()}})})},HttpLink=function(et){__extends(tt,et);function tt(rt){rt===void 0&&(rt={});var nt=et.call(this,createHttpLink(rt).request)||this;return nt.options=rt,nt}return tt}(ApolloLink);const{toString:toString$d,hasOwnProperty:hasOwnProperty$s}=Object.prototype,fnToStr$2=Function.prototype.toString,previousComparisons=new Map;function equal$2(et,tt){try{return check(et,tt)}finally{previousComparisons.clear()}}function check(et,tt){if(et===tt)return!0;const rt=toString$d.call(et),nt=toString$d.call(tt);if(rt!==nt)return!1;switch(rt){case"[object Array]":if(et.length!==tt.length)return!1;case"[object Object]":{if(previouslyCompared(et,tt))return!0;const lt=definedKeys(et),ut=definedKeys(tt),dt=lt.length;if(dt!==ut.length)return!1;for(let pt=0;pt<dt;++pt)if(!hasOwnProperty$s.call(tt,lt[pt]))return!1;for(let pt=0;pt<dt;++pt){const ht=lt[pt];if(!check(et[ht],tt[ht]))return!1}return!0}case"[object Error]":return et.name===tt.name&&et.message===tt.message;case"[object Number]":if(et!==et)return tt!==tt;case"[object Boolean]":case"[object Date]":return+et==+tt;case"[object RegExp]":case"[object String]":return et==`${tt}`;case"[object Map]":case"[object Set]":{if(et.size!==tt.size)return!1;if(previouslyCompared(et,tt))return!0;const lt=et.entries(),ut=rt==="[object Map]";for(;;){const dt=lt.next();if(dt.done)break;const[pt,ht]=dt.value;if(!tt.has(pt)||ut&&!check(ht,tt.get(pt)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":et=new Uint8Array(et),tt=new Uint8Array(tt);case"[object DataView]":{let lt=et.byteLength;if(lt===tt.byteLength)for(;lt--&&et[lt]===tt[lt];);return lt===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const lt=fnToStr$2.call(et);return lt!==fnToStr$2.call(tt)?!1:!endsWith$3(lt,nativeCodeSuffix)}}return!1}function definedKeys(et){return Object.keys(et).filter(isDefinedKey,et)}function isDefinedKey(et){return this[et]!==void 0}const nativeCodeSuffix="{ [native code] }";function endsWith$3(et,tt){const rt=et.length-tt.length;return rt>=0&&et.indexOf(tt,rt)===rt}function previouslyCompared(et,tt){let rt=previousComparisons.get(et);if(rt){if(rt.has(tt))return!0}else previousComparisons.set(et,rt=new Set);return rt.add(tt),!1}function equalByQuery(et,tt,rt,nt){var lt=tt.data,ut=__rest(tt,["data"]),dt=rt.data,pt=__rest(rt,["data"]);return equal$2(ut,pt)&&equalBySelectionSet(getMainDefinition(et).selectionSet,lt,dt,{fragmentMap:createFragmentMap(getFragmentDefinitions(et)),variables:nt})}function equalBySelectionSet(et,tt,rt,nt){if(tt===rt)return!0;var lt=new Set;return et.selections.every(function(ut){if(lt.has(ut)||(lt.add(ut),!shouldInclude(ut,nt.variables))||selectionHasNonreactiveDirective(ut))return!0;if(isField(ut)){var dt=resultKeyNameFromField(ut),pt=tt&&tt[dt],ht=rt&&rt[dt],mt=ut.selectionSet;if(!mt)return equal$2(pt,ht);var xt=Array.isArray(pt),Mt=Array.isArray(ht);if(xt!==Mt)return!1;if(xt&&Mt){var vt=pt.length;if(ht.length!==vt)return!1;for(var Ot=0;Ot<vt;++Ot)if(!equalBySelectionSet(mt,pt[Ot],ht[Ot],nt))return!1;return!0}return equalBySelectionSet(mt,pt,ht,nt)}else{var At=getFragmentFromSelection(ut,nt.fragmentMap);if(At)return selectionHasNonreactiveDirective(At)?!0:equalBySelectionSet(At.selectionSet,tt,rt,nt)}})}function selectionHasNonreactiveDirective(et){return!!et.directives&&et.directives.some(directiveIsNonreactive)}function directiveIsNonreactive(et){return et.name.value==="nonreactive"}var ApolloCache=function(){function et(){this.assumeImmutableResults=!1,this.getFragmentDoc=wrap$1(getFragmentQueryDocument,{max:cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:WeakCache})}return et.prototype.batch=function(tt){var rt=this,nt=typeof tt.optimistic=="string"?tt.optimistic:tt.optimistic===!1?null:void 0,lt;return this.performTransaction(function(){return lt=tt.update(rt)},nt),lt},et.prototype.recordOptimisticTransaction=function(tt,rt){this.performTransaction(tt,rt)},et.prototype.transformDocument=function(tt){return tt},et.prototype.transformForLink=function(tt){return tt},et.prototype.identify=function(tt){},et.prototype.gc=function(){return[]},et.prototype.modify=function(tt){return!1},et.prototype.readQuery=function(tt,rt){return rt===void 0&&(rt=!!tt.optimistic),this.read(__assign(__assign({},tt),{rootId:tt.id||"ROOT_QUERY",optimistic:rt}))},et.prototype.watchFragment=function(tt){var rt=this,nt=tt.fragment,lt=tt.fragmentName,ut=tt.from,dt=tt.optimistic,pt=dt===void 0?!0:dt,ht=__rest(tt,["fragment","fragmentName","from","optimistic"]),mt=this.getFragmentDoc(nt,lt),xt=__assign(__assign({},ht),{returnPartialData:!0,id:typeof ut>"u"||typeof ut=="string"?ut:this.identify(ut),query:mt,optimistic:pt}),Mt;return new Observable$1(function(vt){return rt.watch(__assign(__assign({},xt),{immediate:!0,callback:function(Ot){if(!(Mt&&equalByQuery(mt,{data:Mt==null?void 0:Mt.result},{data:Ot.result}))){var At={data:Ot.result,complete:!!Ot.complete};Ot.missing&&(At.missing=mergeDeepArray(Ot.missing.map(function(Rt){return Rt.missing}))),Mt=Ot,vt.next(At)}}}))})},et.prototype.readFragment=function(tt,rt){return rt===void 0&&(rt=!!tt.optimistic),this.read(__assign(__assign({},tt),{query:this.getFragmentDoc(tt.fragment,tt.fragmentName),rootId:tt.id,optimistic:rt}))},et.prototype.writeQuery=function(tt){var rt=tt.id,nt=tt.data,lt=__rest(tt,["id","data"]);return this.write(Object.assign(lt,{dataId:rt||"ROOT_QUERY",result:nt}))},et.prototype.writeFragment=function(tt){var rt=tt.id,nt=tt.data,lt=tt.fragment,ut=tt.fragmentName,dt=__rest(tt,["id","data","fragment","fragmentName"]);return this.write(Object.assign(dt,{query:this.getFragmentDoc(lt,ut),dataId:rt,result:nt}))},et.prototype.updateQuery=function(tt,rt){return this.batch({update:function(nt){var lt=nt.readQuery(tt),ut=rt(lt);return ut==null?lt:(nt.writeQuery(__assign(__assign({},tt),{data:ut})),ut)}})},et.prototype.updateFragment=function(tt,rt){return this.batch({update:function(nt){var lt=nt.readFragment(tt),ut=rt(lt);return ut==null?lt:(nt.writeFragment(__assign(__assign({},tt),{data:ut})),ut)}})},et}();globalThis.__DEV__!==!1&&(ApolloCache.prototype.getMemoryInternals=getApolloCacheMemoryInternals);var MissingFieldError=function(et){__extends(tt,et);function tt(rt,nt,lt,ut){var dt,pt=et.call(this,rt)||this;if(pt.message=rt,pt.path=nt,pt.query=lt,pt.variables=ut,Array.isArray(pt.path)){pt.missing=pt.message;for(var ht=pt.path.length-1;ht>=0;--ht)pt.missing=(dt={},dt[pt.path[ht]]=pt.missing,dt)}else pt.missing=pt.path;return pt.__proto__=tt.prototype,pt}return tt}(Error),hasOwn$3=Object.prototype.hasOwnProperty;function isNullish(et){return et==null}function defaultDataIdFromObject(et,tt){var rt=et.__typename,nt=et.id,lt=et._id;if(typeof rt=="string"&&(tt&&(tt.keyObject=isNullish(nt)?isNullish(lt)?void 0:{_id:lt}:{id:nt}),isNullish(nt)&&!isNullish(lt)&&(nt=lt),!isNullish(nt)))return"".concat(rt,":").concat(typeof nt=="number"||typeof nt=="string"?nt:JSON.stringify(nt))}var defaultConfig={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(et){return compact$1(defaultConfig,et)}function shouldCanonizeResults(et){var tt=et.canonizeResults;return tt===void 0?defaultConfig.canonizeResults:tt}function getTypenameFromStoreObject(et,tt){return isReference(tt)?et.get(tt.__ref,"__typename"):tt&&tt.__typename}var TypeOrFieldNameRegExp=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(et){var tt=et.match(TypeOrFieldNameRegExp);return tt?tt[0]:et}function selectionSetMatchesResult(et,tt,rt){return isNonNullObject$1(tt)?isArray$l(tt)?tt.every(function(nt){return selectionSetMatchesResult(et,nt,rt)}):et.selections.every(function(nt){if(isField(nt)&&shouldInclude(nt,rt)){var lt=resultKeyNameFromField(nt);return hasOwn$3.call(tt,lt)&&(!nt.selectionSet||selectionSetMatchesResult(nt.selectionSet,tt[lt],rt))}return!0}):!1}function storeValueIsStoreObject(et){return isNonNullObject$1(et)&&!isReference(et)&&!isArray$l(et)}function makeProcessedFieldsMerger(){return new DeepMerger}function extractFragmentContext(et,tt){var rt=createFragmentMap(getFragmentDefinitions(et));return{fragmentMap:rt,lookupFragment:function(nt){var lt=rt[nt];return!lt&&tt&&(lt=tt.lookup(nt)),lt||null}}}var DELETE=Object.create(null),delModifier=function(){return DELETE},INVALIDATE=Object.create(null),EntityStore=function(){function et(tt,rt){var nt=this;this.policies=tt,this.group=rt,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(lt,ut){return maybeDeepFreeze(isReference(lt)?nt.get(lt.__ref,ut):lt&&lt[ut])},this.canRead=function(lt){return isReference(lt)?nt.has(lt.__ref):typeof lt=="object"},this.toReference=function(lt,ut){if(typeof lt=="string")return makeReference(lt);if(isReference(lt))return lt;var dt=nt.policies.identify(lt)[0];if(dt){var pt=makeReference(dt);return ut&&nt.merge(dt,lt),pt}}}return et.prototype.toObject=function(){return __assign({},this.data)},et.prototype.has=function(tt){return this.lookup(tt,!0)!==void 0},et.prototype.get=function(tt,rt){if(this.group.depend(tt,rt),hasOwn$3.call(this.data,tt)){var nt=this.data[tt];if(nt&&hasOwn$3.call(nt,rt))return nt[rt]}if(rt==="__typename"&&hasOwn$3.call(this.policies.rootTypenamesById,tt))return this.policies.rootTypenamesById[tt];if(this instanceof Layer)return this.parent.get(tt,rt)},et.prototype.lookup=function(tt,rt){if(rt&&this.group.depend(tt,"__exists"),hasOwn$3.call(this.data,tt))return this.data[tt];if(this instanceof Layer)return this.parent.lookup(tt,rt);if(this.policies.rootTypenamesById[tt])return Object.create(null)},et.prototype.merge=function(tt,rt){var nt=this,lt;isReference(tt)&&(tt=tt.__ref),isReference(rt)&&(rt=rt.__ref);var ut=typeof tt=="string"?this.lookup(lt=tt):tt,dt=typeof rt=="string"?this.lookup(lt=rt):rt;if(dt){invariant$5(typeof lt=="string",1);var pt=new DeepMerger(storeObjectReconciler).merge(ut,dt);if(this.data[lt]=pt,pt!==ut&&(delete this.refs[lt],this.group.caching)){var ht=Object.create(null);ut||(ht.__exists=1),Object.keys(dt).forEach(function(mt){if(!ut||ut[mt]!==pt[mt]){ht[mt]=1;var xt=fieldNameFromStoreName(mt);xt!==mt&&!nt.policies.hasKeyArgs(pt.__typename,xt)&&(ht[xt]=1),pt[mt]===void 0&&!(nt instanceof Layer)&&delete pt[mt]}}),ht.__typename&&!(ut&&ut.__typename)&&this.policies.rootTypenamesById[lt]===pt.__typename&&delete ht.__typename,Object.keys(ht).forEach(function(mt){return nt.group.dirty(lt,mt)})}}},et.prototype.modify=function(tt,rt){var nt=this,lt=this.lookup(tt);if(lt){var ut=Object.create(null),dt=!1,pt=!0,ht={DELETE,INVALIDATE,isReference,toReference:this.toReference,canRead:this.canRead,readField:function(mt,xt){return nt.policies.readField(typeof mt=="string"?{fieldName:mt,from:xt||makeReference(tt)}:mt,{store:nt})}};if(Object.keys(lt).forEach(function(mt){var xt=fieldNameFromStoreName(mt),Mt=lt[mt];if(Mt!==void 0){var vt=typeof rt=="function"?rt:rt[mt]||rt[xt];if(vt){var Ot=vt===delModifier?DELETE:vt(maybeDeepFreeze(Mt),__assign(__assign({},ht),{fieldName:xt,storeFieldName:mt,storage:nt.getStorage(tt,mt)}));if(Ot===INVALIDATE)nt.group.dirty(tt,mt);else if(Ot===DELETE&&(Ot=void 0),Ot!==Mt&&(ut[mt]=Ot,dt=!0,Mt=Ot,globalThis.__DEV__!==!1)){var At=function(kt){if(nt.lookup(kt.__ref)===void 0)return globalThis.__DEV__!==!1&&invariant$5.warn(2,kt),!0};if(isReference(Ot))At(Ot);else if(Array.isArray(Ot))for(var Rt=!1,zt=void 0,Tt=0,Ct=Ot;Tt<Ct.length;Tt++){var It=Ct[Tt];if(isReference(It)){if(Rt=!0,At(It))break}else if(typeof It=="object"&&It){var Dt=nt.policies.identify(It)[0];Dt&&(zt=It)}if(Rt&&zt!==void 0){globalThis.__DEV__!==!1&&invariant$5.warn(3,zt);break}}}}Mt!==void 0&&(pt=!1)}}),dt)return this.merge(tt,ut),pt&&(this instanceof Layer?this.data[tt]=void 0:delete this.data[tt],this.group.dirty(tt,"__exists")),!0}return!1},et.prototype.delete=function(tt,rt,nt){var lt,ut=this.lookup(tt);if(ut){var dt=this.getFieldValue(ut,"__typename"),pt=rt&&nt?this.policies.getStoreFieldName({typename:dt,fieldName:rt,args:nt}):rt;return this.modify(tt,pt?(lt={},lt[pt]=delModifier,lt):delModifier)}return!1},et.prototype.evict=function(tt,rt){var nt=!1;return tt.id&&(hasOwn$3.call(this.data,tt.id)&&(nt=this.delete(tt.id,tt.fieldName,tt.args)),this instanceof Layer&&this!==rt&&(nt=this.parent.evict(tt,rt)||nt),(tt.fieldName||nt)&&this.group.dirty(tt.id,tt.fieldName||"__exists")),nt},et.prototype.clear=function(){this.replace(null)},et.prototype.extract=function(){var tt=this,rt=this.toObject(),nt=[];return this.getRootIdSet().forEach(function(lt){hasOwn$3.call(tt.policies.rootTypenamesById,lt)||nt.push(lt)}),nt.length&&(rt.__META={extraRootIds:nt.sort()}),rt},et.prototype.replace=function(tt){var rt=this;if(Object.keys(this.data).forEach(function(ut){tt&&hasOwn$3.call(tt,ut)||rt.delete(ut)}),tt){var nt=tt.__META,lt=__rest(tt,["__META"]);Object.keys(lt).forEach(function(ut){rt.merge(ut,lt[ut])}),nt&&nt.extraRootIds.forEach(this.retain,this)}},et.prototype.retain=function(tt){return this.rootIds[tt]=(this.rootIds[tt]||0)+1},et.prototype.release=function(tt){if(this.rootIds[tt]>0){var rt=--this.rootIds[tt];return rt||delete this.rootIds[tt],rt}return 0},et.prototype.getRootIdSet=function(tt){return tt===void 0&&(tt=new Set),Object.keys(this.rootIds).forEach(tt.add,tt),this instanceof Layer?this.parent.getRootIdSet(tt):Object.keys(this.policies.rootTypenamesById).forEach(tt.add,tt),tt},et.prototype.gc=function(){var tt=this,rt=this.getRootIdSet(),nt=this.toObject();rt.forEach(function(dt){hasOwn$3.call(nt,dt)&&(Object.keys(tt.findChildRefIds(dt)).forEach(rt.add,rt),delete nt[dt])});var lt=Object.keys(nt);if(lt.length){for(var ut=this;ut instanceof Layer;)ut=ut.parent;lt.forEach(function(dt){return ut.delete(dt)})}return lt},et.prototype.findChildRefIds=function(tt){if(!hasOwn$3.call(this.refs,tt)){var rt=this.refs[tt]=Object.create(null),nt=this.data[tt];if(!nt)return rt;var lt=new Set([nt]);lt.forEach(function(ut){isReference(ut)&&(rt[ut.__ref]=!0),isNonNullObject$1(ut)&&Object.keys(ut).forEach(function(dt){var pt=ut[dt];isNonNullObject$1(pt)&&lt.add(pt)})})}return this.refs[tt]},et.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},et}(),CacheGroup=function(){function et(tt,rt){rt===void 0&&(rt=null),this.caching=tt,this.parent=rt,this.d=null,this.resetCaching()}return et.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new Trie$1(canUseWeakMap)},et.prototype.depend=function(tt,rt){if(this.d){this.d(makeDepKey(tt,rt));var nt=fieldNameFromStoreName(rt);nt!==rt&&this.d(makeDepKey(tt,nt)),this.parent&&this.parent.depend(tt,rt)}},et.prototype.dirty=function(tt,rt){this.d&&this.d.dirty(makeDepKey(tt,rt),rt==="__exists"?"forget":"setDirty")},et}();function makeDepKey(et,tt){return tt+"#"+et}function maybeDependOnExistenceOfEntity(et,tt){supportsResultCaching(et)&&et.group.depend(tt,"__exists")}(function(et){var tt=function(rt){__extends(nt,rt);function nt(lt){var ut=lt.policies,dt=lt.resultCaching,pt=dt===void 0?!0:dt,ht=lt.seed,mt=rt.call(this,ut,new CacheGroup(pt))||this;return mt.stump=new Stump(mt),mt.storageTrie=new Trie$1(canUseWeakMap),ht&&mt.replace(ht),mt}return nt.prototype.addLayer=function(lt,ut){return this.stump.addLayer(lt,ut)},nt.prototype.removeLayer=function(){return this},nt.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},nt}(et);et.Root=tt})(EntityStore||(EntityStore={}));var Layer=function(et){__extends(tt,et);function tt(rt,nt,lt,ut){var dt=et.call(this,nt.policies,ut)||this;return dt.id=rt,dt.parent=nt,dt.replay=lt,dt.group=ut,lt(dt),dt}return tt.prototype.addLayer=function(rt,nt){return new tt(rt,this,nt,this.group)},tt.prototype.removeLayer=function(rt){var nt=this,lt=this.parent.removeLayer(rt);return rt===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(ut){var dt=nt.data[ut],pt=lt.lookup(ut);pt?dt?dt!==pt&&Object.keys(dt).forEach(function(ht){equal$2(dt[ht],pt[ht])||nt.group.dirty(ut,ht)}):(nt.group.dirty(ut,"__exists"),Object.keys(pt).forEach(function(ht){nt.group.dirty(ut,ht)})):nt.delete(ut)}),lt):lt===this.parent?this:lt.addLayer(this.id,this.replay)},tt.prototype.toObject=function(){return __assign(__assign({},this.parent.toObject()),this.data)},tt.prototype.findChildRefIds=function(rt){var nt=this.parent.findChildRefIds(rt);return hasOwn$3.call(this.data,rt)?__assign(__assign({},nt),et.prototype.findChildRefIds.call(this,rt)):nt},tt.prototype.getStorage=function(){for(var rt=this.parent;rt.parent;)rt=rt.parent;return rt.getStorage.apply(rt,arguments)},tt}(EntityStore),Stump=function(et){__extends(tt,et);function tt(rt){return et.call(this,"EntityStore.Stump",rt,function(){},new CacheGroup(rt.group.caching,rt.group))||this}return tt.prototype.removeLayer=function(){return this},tt.prototype.merge=function(rt,nt){return this.parent.merge(rt,nt)},tt}(Layer);function storeObjectReconciler(et,tt,rt){var nt=et[rt],lt=tt[rt];return equal$2(nt,lt)?nt:lt}function supportsResultCaching(et){return!!(et instanceof EntityStore&&et.group.caching)}function shallowCopy(et){return isNonNullObject$1(et)?isArray$l(et)?et.slice(0):__assign({__proto__:Object.getPrototypeOf(et)},et):et}var ObjectCanon=function(){function et(){this.known=new(canUseWeakSet?WeakSet:Set),this.pool=new Trie$1(canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return et.prototype.isKnown=function(tt){return isNonNullObject$1(tt)&&this.known.has(tt)},et.prototype.pass=function(tt){if(isNonNullObject$1(tt)){var rt=shallowCopy(tt);return this.passes.set(rt,tt),rt}return tt},et.prototype.admit=function(tt){var rt=this;if(isNonNullObject$1(tt)){var nt=this.passes.get(tt);if(nt)return nt;var lt=Object.getPrototypeOf(tt);switch(lt){case Array.prototype:{if(this.known.has(tt))return tt;var ut=tt.map(this.admit,this),dt=this.pool.lookupArray(ut);return dt.array||(this.known.add(dt.array=ut),globalThis.__DEV__!==!1&&Object.freeze(ut)),dt.array}case null:case Object.prototype:{if(this.known.has(tt))return tt;var pt=Object.getPrototypeOf(tt),ht=[pt],mt=this.sortedKeys(tt);ht.push(mt.json);var xt=ht.length;mt.sorted.forEach(function(Ot){ht.push(rt.admit(tt[Ot]))});var dt=this.pool.lookupArray(ht);if(!dt.object){var Mt=dt.object=Object.create(pt);this.known.add(Mt),mt.sorted.forEach(function(Ot,At){Mt[Ot]=ht[xt+At]}),globalThis.__DEV__!==!1&&Object.freeze(Mt)}return dt.object}}}return tt},et.prototype.sortedKeys=function(tt){var rt=Object.keys(tt),nt=this.pool.lookupArray(rt);if(!nt.keys){rt.sort();var lt=JSON.stringify(rt);(nt.keys=this.keysByJSON.get(lt))||this.keysByJSON.set(lt,nt.keys={sorted:rt,json:lt})}return nt.keys},et}();function execSelectionSetKeyArgs(et){return[et.selectionSet,et.objectOrReference,et.context,et.context.canonizeResults]}var StoreReader=function(){function et(tt){var rt=this;this.knownResults=new(canUseWeakMap?WeakMap:Map),this.config=compact$1(tt,{addTypename:tt.addTypename!==!1,canonizeResults:shouldCanonizeResults(tt)}),this.canon=tt.canon||new ObjectCanon,this.executeSelectionSet=wrap$1(function(nt){var lt,ut=nt.context.canonizeResults,dt=execSelectionSetKeyArgs(nt);dt[3]=!ut;var pt=(lt=rt.executeSelectionSet).peek.apply(lt,dt);return pt?ut?__assign(__assign({},pt),{result:rt.canon.admit(pt.result)}):pt:(maybeDependOnExistenceOfEntity(nt.context.store,nt.enclosingRef.__ref),rt.execSelectionSetImpl(nt))},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(nt,lt,ut,dt){if(supportsResultCaching(ut.store))return ut.store.makeCacheKey(nt,isReference(lt)?lt.__ref:lt,ut.varString,dt)}}),this.executeSubSelectedArray=wrap$1(function(nt){return maybeDependOnExistenceOfEntity(nt.context.store,nt.enclosingRef.__ref),rt.execSubSelectedArrayImpl(nt)},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(nt){var lt=nt.field,ut=nt.array,dt=nt.context;if(supportsResultCaching(dt.store))return dt.store.makeCacheKey(lt,ut,dt.varString)}})}return et.prototype.resetCanon=function(){this.canon=new ObjectCanon},et.prototype.diffQueryAgainstStore=function(tt){var rt=tt.store,nt=tt.query,lt=tt.rootId,ut=lt===void 0?"ROOT_QUERY":lt,dt=tt.variables,pt=tt.returnPartialData,ht=pt===void 0?!0:pt,mt=tt.canonizeResults,xt=mt===void 0?this.config.canonizeResults:mt,Mt=this.config.cache.policies;dt=__assign(__assign({},getDefaultValues(getQueryDefinition(nt))),dt);var vt=makeReference(ut),Ot=this.executeSelectionSet({selectionSet:getMainDefinition(nt).selectionSet,objectOrReference:vt,enclosingRef:vt,context:__assign({store:rt,query:nt,policies:Mt,variables:dt,varString:canonicalStringify(dt),canonizeResults:xt},extractFragmentContext(nt,this.config.fragments))}),At;if(Ot.missing&&(At=[new MissingFieldError(firstMissing(Ot.missing),Ot.missing,nt,dt)],!ht))throw At[0];return{result:Ot.result,complete:!At,missing:At}},et.prototype.isFresh=function(tt,rt,nt,lt){if(supportsResultCaching(lt.store)&&this.knownResults.get(tt)===nt){var ut=this.executeSelectionSet.peek(nt,rt,lt,this.canon.isKnown(tt));if(ut&&tt===ut.result)return!0}return!1},et.prototype.execSelectionSetImpl=function(tt){var rt=this,nt=tt.selectionSet,lt=tt.objectOrReference,ut=tt.enclosingRef,dt=tt.context;if(isReference(lt)&&!dt.policies.rootTypenamesById[lt.__ref]&&!dt.store.has(lt.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(lt.__ref," object")};var pt=dt.variables,ht=dt.policies,mt=dt.store,xt=mt.getFieldValue(lt,"__typename"),Mt=[],vt,Ot=new DeepMerger;this.config.addTypename&&typeof xt=="string"&&!ht.rootIdsByTypename[xt]&&Mt.push({__typename:xt});function At(It,Dt){var kt;return It.missing&&(vt=Ot.merge(vt,(kt={},kt[Dt]=It.missing,kt))),It.result}var Rt=new Set(nt.selections);Rt.forEach(function(It){var Dt,kt;if(shouldInclude(It,pt))if(isField(It)){var qt=ht.readField({fieldName:It.name.value,field:It,variables:dt.variables,from:lt},dt),Nt=resultKeyNameFromField(It);qt===void 0?addTypenameToDocument.added(It)||(vt=Ot.merge(vt,(Dt={},Dt[Nt]="Can't find field '".concat(It.name.value,"' on ").concat(isReference(lt)?lt.__ref+" object":"object "+JSON.stringify(lt,null,2)),Dt))):isArray$l(qt)?qt.length>0&&(qt=At(rt.executeSubSelectedArray({field:It,array:qt,enclosingRef:ut,context:dt}),Nt)):It.selectionSet?qt!=null&&(qt=At(rt.executeSelectionSet({selectionSet:It.selectionSet,objectOrReference:qt,enclosingRef:isReference(qt)?qt:ut,context:dt}),Nt)):dt.canonizeResults&&(qt=rt.canon.pass(qt)),qt!==void 0&&Mt.push((kt={},kt[Nt]=qt,kt))}else{var Yt=getFragmentFromSelection(It,dt.lookupFragment);if(!Yt&&It.kind===Kind.FRAGMENT_SPREAD)throw newInvariantError(9,It.name.value);Yt&&ht.fragmentMatches(Yt,xt)&&Yt.selectionSet.selections.forEach(Rt.add,Rt)}});var zt=mergeDeepArray(Mt),Tt={result:zt,missing:vt},Ct=dt.canonizeResults?this.canon.admit(Tt):maybeDeepFreeze(Tt);return Ct.result&&this.knownResults.set(Ct.result,nt),Ct},et.prototype.execSubSelectedArrayImpl=function(tt){var rt=this,nt=tt.field,lt=tt.array,ut=tt.enclosingRef,dt=tt.context,pt,ht=new DeepMerger;function mt(xt,Mt){var vt;return xt.missing&&(pt=ht.merge(pt,(vt={},vt[Mt]=xt.missing,vt))),xt.result}return nt.selectionSet&&(lt=lt.filter(dt.store.canRead)),lt=lt.map(function(xt,Mt){return xt===null?null:isArray$l(xt)?mt(rt.executeSubSelectedArray({field:nt,array:xt,enclosingRef:ut,context:dt}),Mt):nt.selectionSet?mt(rt.executeSelectionSet({selectionSet:nt.selectionSet,objectOrReference:xt,enclosingRef:isReference(xt)?xt:ut,context:dt}),Mt):(globalThis.__DEV__!==!1&&assertSelectionSetForIdValue(dt.store,nt,xt),xt)}),{result:dt.canonizeResults?this.canon.admit(lt):lt,missing:pt}},et}();function firstMissing(et){try{JSON.stringify(et,function(tt,rt){if(typeof rt=="string")throw rt;return rt})}catch(tt){return tt}}function assertSelectionSetForIdValue(et,tt,rt){if(!tt.selectionSet){var nt=new Set([rt]);nt.forEach(function(lt){isNonNullObject$1(lt)&&(invariant$5(!isReference(lt),10,getTypenameFromStoreObject(et,lt),tt.name.value),Object.values(lt).forEach(nt.add,nt))})}}var cacheSlot=new Slot,cacheInfoMap=new WeakMap;function getCacheInfo(et){var tt=cacheInfoMap.get(et);return tt||cacheInfoMap.set(et,tt={vars:new Set,dep:dep()}),tt}function forgetCache(et){getCacheInfo(et).vars.forEach(function(tt){return tt.forgetCache(et)})}function recallCache(et){getCacheInfo(et).vars.forEach(function(tt){return tt.attachCache(et)})}function makeVar(et){var tt=new Set,rt=new Set,nt=function(ut){if(arguments.length>0){if(et!==ut){et=ut,tt.forEach(function(ht){getCacheInfo(ht).dep.dirty(nt),broadcast(ht)});var dt=Array.from(rt);rt.clear(),dt.forEach(function(ht){return ht(et)})}}else{var pt=cacheSlot.getValue();pt&&(lt(pt),getCacheInfo(pt).dep(nt))}return et};nt.onNextChange=function(ut){return rt.add(ut),function(){rt.delete(ut)}};var lt=nt.attachCache=function(ut){return tt.add(ut),getCacheInfo(ut).vars.add(nt),nt};return nt.forgetCache=function(ut){return tt.delete(ut)},nt}function broadcast(et){et.broadcastWatches&&et.broadcastWatches()}var specifierInfoCache=Object.create(null);function lookupSpecifierInfo(et){var tt=JSON.stringify(et);return specifierInfoCache[tt]||(specifierInfoCache[tt]=Object.create(null))}function keyFieldsFnFromSpecifier(et){var tt=lookupSpecifierInfo(et);return tt.keyFieldsFn||(tt.keyFieldsFn=function(rt,nt){var lt=function(dt,pt){return nt.readField(pt,dt)},ut=nt.keyObject=collectSpecifierPaths(et,function(dt){var pt=extractKeyPath(nt.storeObject,dt,lt);return pt===void 0&&rt!==nt.storeObject&&hasOwn$3.call(rt,dt[0])&&(pt=extractKeyPath(rt,dt,extractKey)),invariant$5(pt!==void 0,4,dt.join("."),rt),pt});return"".concat(nt.typename,":").concat(JSON.stringify(ut))})}function keyArgsFnFromSpecifier(et){var tt=lookupSpecifierInfo(et);return tt.keyArgsFn||(tt.keyArgsFn=function(rt,nt){var lt=nt.field,ut=nt.variables,dt=nt.fieldName,pt=collectSpecifierPaths(et,function(mt){var xt=mt[0],Mt=xt.charAt(0);if(Mt==="@"){if(lt&&isNonEmptyArray(lt.directives)){var vt=xt.slice(1),Ot=lt.directives.find(function(Tt){return Tt.name.value===vt}),At=Ot&&argumentsObjectFromField(Ot,ut);return At&&extractKeyPath(At,mt.slice(1))}return}if(Mt==="$"){var Rt=xt.slice(1);if(ut&&hasOwn$3.call(ut,Rt)){var zt=mt.slice(0);return zt[0]=Rt,extractKeyPath(ut,zt)}return}if(rt)return extractKeyPath(rt,mt)}),ht=JSON.stringify(pt);return(rt||ht!=="{}")&&(dt+=":"+ht),dt})}function collectSpecifierPaths(et,tt){var rt=new DeepMerger;return getSpecifierPaths(et).reduce(function(nt,lt){var ut,dt=tt(lt);if(dt!==void 0){for(var pt=lt.length-1;pt>=0;--pt)dt=(ut={},ut[lt[pt]]=dt,ut);nt=rt.merge(nt,dt)}return nt},Object.create(null))}function getSpecifierPaths(et){var tt=lookupSpecifierInfo(et);if(!tt.paths){var rt=tt.paths=[],nt=[];et.forEach(function(lt,ut){isArray$l(lt)?(getSpecifierPaths(lt).forEach(function(dt){return rt.push(nt.concat(dt))}),nt.length=0):(nt.push(lt),isArray$l(et[ut+1])||(rt.push(nt.slice(0)),nt.length=0))})}return tt.paths}function extractKey(et,tt){return et[tt]}function extractKeyPath(et,tt,rt){return rt=rt||extractKey,normalize$1(tt.reduce(function nt(lt,ut){return isArray$l(lt)?lt.map(function(dt){return nt(dt,ut)}):lt&&rt(lt,ut)},et))}function normalize$1(et){return isNonNullObject$1(et)?isArray$l(et)?et.map(normalize$1):collectSpecifierPaths(Object.keys(et).sort(),function(tt){return extractKeyPath(et,tt)}):et}function argsFromFieldSpecifier(et){return et.args!==void 0?et.args:et.field?argumentsObjectFromField(et.field,et.variables):null}var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(et,tt){return tt.fieldName},mergeTrueFn=function(et,tt,rt){var nt=rt.mergeObjects;return nt(et,tt)},mergeFalseFn=function(et,tt){return tt},Policies=function(){function et(tt){this.config=tt,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=__assign({dataIdFromObject:defaultDataIdFromObject},tt),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),tt.possibleTypes&&this.addPossibleTypes(tt.possibleTypes),tt.typePolicies&&this.addTypePolicies(tt.typePolicies)}return et.prototype.identify=function(tt,rt){var nt,lt=this,ut=rt&&(rt.typename||((nt=rt.storeObject)===null||nt===void 0?void 0:nt.__typename))||tt.__typename;if(ut===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var dt=rt&&rt.storeObject||tt,pt=__assign(__assign({},rt),{typename:ut,storeObject:dt,readField:rt&&rt.readField||function(){var vt=normalizeReadFieldOptions(arguments,dt);return lt.readField(vt,{store:lt.cache.data,variables:vt.variables})}}),ht,mt=ut&&this.getTypePolicy(ut),xt=mt&&mt.keyFn||this.config.dataIdFromObject;xt;){var Mt=xt(__assign(__assign({},tt),dt),pt);if(isArray$l(Mt))xt=keyFieldsFnFromSpecifier(Mt);else{ht=Mt;break}}return ht=ht?String(ht):void 0,pt.keyObject?[ht,pt.keyObject]:[ht]},et.prototype.addTypePolicies=function(tt){var rt=this;Object.keys(tt).forEach(function(nt){var lt=tt[nt],ut=lt.queryType,dt=lt.mutationType,pt=lt.subscriptionType,ht=__rest(lt,["queryType","mutationType","subscriptionType"]);ut&&rt.setRootTypename("Query",nt),dt&&rt.setRootTypename("Mutation",nt),pt&&rt.setRootTypename("Subscription",nt),hasOwn$3.call(rt.toBeAdded,nt)?rt.toBeAdded[nt].push(ht):rt.toBeAdded[nt]=[ht]})},et.prototype.updateTypePolicy=function(tt,rt){var nt=this,lt=this.getTypePolicy(tt),ut=rt.keyFields,dt=rt.fields;function pt(ht,mt){ht.merge=typeof mt=="function"?mt:mt===!0?mergeTrueFn:mt===!1?mergeFalseFn:ht.merge}pt(lt,rt.merge),lt.keyFn=ut===!1?nullKeyFieldsFn:isArray$l(ut)?keyFieldsFnFromSpecifier(ut):typeof ut=="function"?ut:lt.keyFn,dt&&Object.keys(dt).forEach(function(ht){var mt=nt.getFieldPolicy(tt,ht,!0),xt=dt[ht];if(typeof xt=="function")mt.read=xt;else{var Mt=xt.keyArgs,vt=xt.read,Ot=xt.merge;mt.keyFn=Mt===!1?simpleKeyArgsFn:isArray$l(Mt)?keyArgsFnFromSpecifier(Mt):typeof Mt=="function"?Mt:mt.keyFn,typeof vt=="function"&&(mt.read=vt),pt(mt,Ot)}mt.read&&mt.merge&&(mt.keyFn=mt.keyFn||simpleKeyArgsFn)})},et.prototype.setRootTypename=function(tt,rt){rt===void 0&&(rt=tt);var nt="ROOT_"+tt.toUpperCase(),lt=this.rootTypenamesById[nt];rt!==lt&&(invariant$5(!lt||lt===tt,5,tt),lt&&delete this.rootIdsByTypename[lt],this.rootIdsByTypename[rt]=nt,this.rootTypenamesById[nt]=rt)},et.prototype.addPossibleTypes=function(tt){var rt=this;this.usingPossibleTypes=!0,Object.keys(tt).forEach(function(nt){rt.getSupertypeSet(nt,!0),tt[nt].forEach(function(lt){rt.getSupertypeSet(lt,!0).add(nt);var ut=lt.match(TypeOrFieldNameRegExp);(!ut||ut[0]!==lt)&&rt.fuzzySubtypes.set(lt,new RegExp(lt))})})},et.prototype.getTypePolicy=function(tt){var rt=this;if(!hasOwn$3.call(this.typePolicies,tt)){var nt=this.typePolicies[tt]=Object.create(null);nt.fields=Object.create(null);var lt=this.supertypeMap.get(tt);!lt&&this.fuzzySubtypes.size&&(lt=this.getSupertypeSet(tt,!0),this.fuzzySubtypes.forEach(function(dt,pt){if(dt.test(tt)){var ht=rt.supertypeMap.get(pt);ht&&ht.forEach(function(mt){return lt.add(mt)})}})),lt&&lt.size&&lt.forEach(function(dt){var pt=rt.getTypePolicy(dt),ht=pt.fields,mt=__rest(pt,["fields"]);Object.assign(nt,mt),Object.assign(nt.fields,ht)})}var ut=this.toBeAdded[tt];return ut&&ut.length&&ut.splice(0).forEach(function(dt){rt.updateTypePolicy(tt,dt)}),this.typePolicies[tt]},et.prototype.getFieldPolicy=function(tt,rt,nt){if(tt){var lt=this.getTypePolicy(tt).fields;return lt[rt]||nt&&(lt[rt]=Object.create(null))}},et.prototype.getSupertypeSet=function(tt,rt){var nt=this.supertypeMap.get(tt);return!nt&&rt&&this.supertypeMap.set(tt,nt=new Set),nt},et.prototype.fragmentMatches=function(tt,rt,nt,lt){var ut=this;if(!tt.typeCondition)return!0;if(!rt)return!1;var dt=tt.typeCondition.name.value;if(rt===dt)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(dt))for(var pt=this.getSupertypeSet(rt,!0),ht=[pt],mt=function(At){var Rt=ut.getSupertypeSet(At,!1);Rt&&Rt.size&&ht.indexOf(Rt)<0&&ht.push(Rt)},xt=!!(nt&&this.fuzzySubtypes.size),Mt=!1,vt=0;vt<ht.length;++vt){var Ot=ht[vt];if(Ot.has(dt))return pt.has(dt)||(Mt&&globalThis.__DEV__!==!1&&invariant$5.warn(6,rt,dt),pt.add(dt)),!0;Ot.forEach(mt),xt&&vt===ht.length-1&&selectionSetMatchesResult(tt.selectionSet,nt,lt)&&(xt=!1,Mt=!0,this.fuzzySubtypes.forEach(function(At,Rt){var zt=rt.match(At);zt&&zt[0]===rt&&mt(Rt)}))}return!1},et.prototype.hasKeyArgs=function(tt,rt){var nt=this.getFieldPolicy(tt,rt,!1);return!!(nt&&nt.keyFn)},et.prototype.getStoreFieldName=function(tt){var rt=tt.typename,nt=tt.fieldName,lt=this.getFieldPolicy(rt,nt,!1),ut,dt=lt&&lt.keyFn;if(dt&&rt)for(var pt={typename:rt,fieldName:nt,field:tt.field||null,variables:tt.variables},ht=argsFromFieldSpecifier(tt);dt;){var mt=dt(ht,pt);if(isArray$l(mt))dt=keyArgsFnFromSpecifier(mt);else{ut=mt||nt;break}}return ut===void 0&&(ut=tt.field?storeKeyNameFromField(tt.field,tt.variables):getStoreKeyName(nt,argsFromFieldSpecifier(tt))),ut===!1?nt:nt===fieldNameFromStoreName(ut)?ut:nt+":"+ut},et.prototype.readField=function(tt,rt){var nt=tt.from;if(nt){var lt=tt.field||tt.fieldName;if(lt){if(tt.typename===void 0){var ut=rt.store.getFieldValue(nt,"__typename");ut&&(tt.typename=ut)}var dt=this.getStoreFieldName(tt),pt=fieldNameFromStoreName(dt),ht=rt.store.getFieldValue(nt,dt),mt=this.getFieldPolicy(tt.typename,pt,!1),xt=mt&&mt.read;if(xt){var Mt=makeFieldFunctionOptions(this,nt,tt,rt,rt.store.getStorage(isReference(nt)?nt.__ref:nt,dt));return cacheSlot.withValue(this.cache,xt,[ht,Mt])}return ht}}},et.prototype.getReadFunction=function(tt,rt){var nt=this.getFieldPolicy(tt,rt,!1);return nt&&nt.read},et.prototype.getMergeFunction=function(tt,rt,nt){var lt=this.getFieldPolicy(tt,rt,!1),ut=lt&&lt.merge;return!ut&&nt&&(lt=this.getTypePolicy(nt),ut=lt&&lt.merge),ut},et.prototype.runMergeFunction=function(tt,rt,nt,lt,ut){var dt=nt.field,pt=nt.typename,ht=nt.merge;return ht===mergeTrueFn?makeMergeObjectsFunction(lt.store)(tt,rt):ht===mergeFalseFn?rt:(lt.overwrite&&(tt=void 0),ht(tt,rt,makeFieldFunctionOptions(this,void 0,{typename:pt,fieldName:dt.name.value,field:dt,variables:lt.variables},lt,ut||Object.create(null))))},et}();function makeFieldFunctionOptions(et,tt,rt,nt,lt){var ut=et.getStoreFieldName(rt),dt=fieldNameFromStoreName(ut),pt=rt.variables||nt.variables,ht=nt.store,mt=ht.toReference,xt=ht.canRead;return{args:argsFromFieldSpecifier(rt),field:rt.field||null,fieldName:dt,storeFieldName:ut,variables:pt,isReference,toReference:mt,storage:lt,cache:et.cache,canRead:xt,readField:function(){return et.readField(normalizeReadFieldOptions(arguments,tt,pt),nt)},mergeObjects:makeMergeObjectsFunction(nt.store)}}function normalizeReadFieldOptions(et,tt,rt){var nt=et[0],lt=et[1],ut=et.length,dt;return typeof nt=="string"?dt={fieldName:nt,from:ut>1?lt:tt}:(dt=__assign({},nt),hasOwn$3.call(dt,"from")||(dt.from=tt)),globalThis.__DEV__!==!1&&dt.from===void 0&&globalThis.__DEV__!==!1&&invariant$5.warn(7,stringifyForDisplay(Array.from(et))),dt.variables===void 0&&(dt.variables=rt),dt}function makeMergeObjectsFunction(et){return function(rt,nt){if(isArray$l(rt)||isArray$l(nt))throw newInvariantError(8);if(isNonNullObject$1(rt)&&isNonNullObject$1(nt)){var lt=et.getFieldValue(rt,"__typename"),ut=et.getFieldValue(nt,"__typename"),dt=lt&&ut&&lt!==ut;if(dt)return nt;if(isReference(rt)&&storeValueIsStoreObject(nt))return et.merge(rt.__ref,nt),rt;if(storeValueIsStoreObject(rt)&&isReference(nt))return et.merge(rt,nt.__ref),nt;if(storeValueIsStoreObject(rt)&&storeValueIsStoreObject(nt))return __assign(__assign({},rt),nt)}return nt}}function getContextFlavor(et,tt,rt){var nt="".concat(tt).concat(rt),lt=et.flavors.get(nt);return lt||et.flavors.set(nt,lt=et.clientOnly===tt&&et.deferred===rt?et:__assign(__assign({},et),{clientOnly:tt,deferred:rt})),lt}var StoreWriter=function(){function et(tt,rt,nt){this.cache=tt,this.reader=rt,this.fragments=nt}return et.prototype.writeToStore=function(tt,rt){var nt=this,lt=rt.query,ut=rt.result,dt=rt.dataId,pt=rt.variables,ht=rt.overwrite,mt=getOperationDefinition(lt),xt=makeProcessedFieldsMerger();pt=__assign(__assign({},getDefaultValues(mt)),pt);var Mt=__assign(__assign({store:tt,written:Object.create(null),merge:function(Ot,At){return xt.merge(Ot,At)},variables:pt,varString:canonicalStringify(pt)},extractFragmentContext(lt,this.fragments)),{overwrite:!!ht,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),vt=this.processSelectionSet({result:ut||Object.create(null),dataId:dt,selectionSet:mt.selectionSet,mergeTree:{map:new Map},context:Mt});if(!isReference(vt))throw newInvariantError(11,ut);return Mt.incomingById.forEach(function(Ot,At){var Rt=Ot.storeObject,zt=Ot.mergeTree,Tt=Ot.fieldNodeSet,Ct=makeReference(At);if(zt&&zt.map.size){var It=nt.applyMerges(zt,Ct,Rt,Mt);if(isReference(It))return;Rt=It}if(globalThis.__DEV__!==!1&&!Mt.overwrite){var Dt=Object.create(null);Tt.forEach(function(Nt){Nt.selectionSet&&(Dt[Nt.name.value]=!0)});var kt=function(Nt){return Dt[fieldNameFromStoreName(Nt)]===!0},qt=function(Nt){var Yt=zt&&zt.map.get(Nt);return!!(Yt&&Yt.info&&Yt.info.merge)};Object.keys(Rt).forEach(function(Nt){kt(Nt)&&!qt(Nt)&&warnAboutDataLoss(Ct,Rt,Nt,Mt.store)})}tt.merge(At,Rt)}),tt.retain(vt.__ref),vt},et.prototype.processSelectionSet=function(tt){var rt=this,nt=tt.dataId,lt=tt.result,ut=tt.selectionSet,dt=tt.context,pt=tt.mergeTree,ht=this.cache.policies,mt=Object.create(null),xt=nt&&ht.rootTypenamesById[nt]||getTypenameFromResult(lt,ut,dt.fragmentMap)||nt&&dt.store.get(nt,"__typename");typeof xt=="string"&&(mt.__typename=xt);var Mt=function(){var It=normalizeReadFieldOptions(arguments,mt,dt.variables);if(isReference(It.from)){var Dt=dt.incomingById.get(It.from.__ref);if(Dt){var kt=ht.readField(__assign(__assign({},It),{from:Dt.storeObject}),dt);if(kt!==void 0)return kt}}return ht.readField(It,dt)},vt=new Set;this.flattenFields(ut,lt,dt,xt).forEach(function(It,Dt){var kt,qt=resultKeyNameFromField(Dt),Nt=lt[qt];if(vt.add(Dt),Nt!==void 0){var Yt=ht.getStoreFieldName({typename:xt,fieldName:Dt.name.value,field:Dt,variables:It.variables}),Kt=getChildMergeTree(pt,Yt),Jt=rt.processFieldValue(Nt,Dt,Dt.selectionSet?getContextFlavor(It,!1,!1):It,Kt),Qt=void 0;Dt.selectionSet&&(isReference(Jt)||storeValueIsStoreObject(Jt))&&(Qt=Mt("__typename",Jt));var Bt=ht.getMergeFunction(xt,Dt.name.value,Qt);Bt?Kt.info={field:Dt,typename:xt,merge:Bt}:maybeRecycleChildMergeTree(pt,Yt),mt=It.merge(mt,(kt={},kt[Yt]=Jt,kt))}else globalThis.__DEV__!==!1&&!It.clientOnly&&!It.deferred&&!addTypenameToDocument.added(Dt)&&!ht.getReadFunction(xt,Dt.name.value)&&globalThis.__DEV__!==!1&&invariant$5.error(12,resultKeyNameFromField(Dt),lt)});try{var Ot=ht.identify(lt,{typename:xt,selectionSet:ut,fragmentMap:dt.fragmentMap,storeObject:mt,readField:Mt}),At=Ot[0],Rt=Ot[1];nt=nt||At,Rt&&(mt=dt.merge(mt,Rt))}catch(It){if(!nt)throw It}if(typeof nt=="string"){var zt=makeReference(nt),Tt=dt.written[nt]||(dt.written[nt]=[]);if(Tt.indexOf(ut)>=0||(Tt.push(ut),this.reader&&this.reader.isFresh(lt,zt,ut,dt)))return zt;var Ct=dt.incomingById.get(nt);return Ct?(Ct.storeObject=dt.merge(Ct.storeObject,mt),Ct.mergeTree=mergeMergeTrees(Ct.mergeTree,pt),vt.forEach(function(It){return Ct.fieldNodeSet.add(It)})):dt.incomingById.set(nt,{storeObject:mt,mergeTree:mergeTreeIsEmpty(pt)?void 0:pt,fieldNodeSet:vt}),zt}return mt},et.prototype.processFieldValue=function(tt,rt,nt,lt){var ut=this;return!rt.selectionSet||tt===null?globalThis.__DEV__!==!1?cloneDeep$1(tt):tt:isArray$l(tt)?tt.map(function(dt,pt){var ht=ut.processFieldValue(dt,rt,nt,getChildMergeTree(lt,pt));return maybeRecycleChildMergeTree(lt,pt),ht}):this.processSelectionSet({result:tt,selectionSet:rt.selectionSet,context:nt,mergeTree:lt})},et.prototype.flattenFields=function(tt,rt,nt,lt){lt===void 0&&(lt=getTypenameFromResult(rt,tt,nt.fragmentMap));var ut=new Map,dt=this.cache.policies,pt=new Trie$1(!1);return function ht(mt,xt){var Mt=pt.lookup(mt,xt.clientOnly,xt.deferred);Mt.visited||(Mt.visited=!0,mt.selections.forEach(function(vt){if(shouldInclude(vt,nt.variables)){var Ot=xt.clientOnly,At=xt.deferred;if(!(Ot&&At)&&isNonEmptyArray(vt.directives)&&vt.directives.forEach(function(Tt){var Ct=Tt.name.value;if(Ct==="client"&&(Ot=!0),Ct==="defer"){var It=argumentsObjectFromField(Tt,nt.variables);(!It||It.if!==!1)&&(At=!0)}}),isField(vt)){var Rt=ut.get(vt);Rt&&(Ot=Ot&&Rt.clientOnly,At=At&&Rt.deferred),ut.set(vt,getContextFlavor(nt,Ot,At))}else{var zt=getFragmentFromSelection(vt,nt.lookupFragment);if(!zt&&vt.kind===Kind.FRAGMENT_SPREAD)throw newInvariantError(13,vt.name.value);zt&&dt.fragmentMatches(zt,lt,rt,nt.variables)&&ht(zt.selectionSet,getContextFlavor(nt,Ot,At))}}}))}(tt,nt),ut},et.prototype.applyMerges=function(tt,rt,nt,lt,ut){var dt,pt=this;if(tt.map.size&&!isReference(nt)){var ht=!isArray$l(nt)&&(isReference(rt)||storeValueIsStoreObject(rt))?rt:void 0,mt=nt;ht&&!ut&&(ut=[isReference(ht)?ht.__ref:ht]);var xt,Mt=function(vt,Ot){return isArray$l(vt)?typeof Ot=="number"?vt[Ot]:void 0:lt.store.getFieldValue(vt,String(Ot))};tt.map.forEach(function(vt,Ot){var At=Mt(ht,Ot),Rt=Mt(mt,Ot);if(Rt!==void 0){ut&&ut.push(Ot);var zt=pt.applyMerges(vt,At,Rt,lt,ut);zt!==Rt&&(xt=xt||new Map,xt.set(Ot,zt)),ut&&invariant$5(ut.pop()===Ot)}}),xt&&(nt=isArray$l(mt)?mt.slice(0):__assign({},mt),xt.forEach(function(vt,Ot){nt[Ot]=vt}))}return tt.info?this.cache.policies.runMergeFunction(rt,nt,tt.info,lt,ut&&(dt=lt.store).getStorage.apply(dt,ut)):nt},et}(),emptyMergeTreePool=[];function getChildMergeTree(et,tt){var rt=et.map;return rt.has(tt)||rt.set(tt,emptyMergeTreePool.pop()||{map:new Map}),rt.get(tt)}function mergeMergeTrees(et,tt){if(et===tt||!tt||mergeTreeIsEmpty(tt))return et;if(!et||mergeTreeIsEmpty(et))return tt;var rt=et.info&&tt.info?__assign(__assign({},et.info),tt.info):et.info||tt.info,nt=et.map.size&&tt.map.size,lt=nt?new Map:et.map.size?et.map:tt.map,ut={info:rt,map:lt};if(nt){var dt=new Set(tt.map.keys());et.map.forEach(function(pt,ht){ut.map.set(ht,mergeMergeTrees(pt,tt.map.get(ht))),dt.delete(ht)}),dt.forEach(function(pt){ut.map.set(pt,mergeMergeTrees(tt.map.get(pt),et.map.get(pt)))})}return ut}function mergeTreeIsEmpty(et){return!et||!(et.info||et.map.size)}function maybeRecycleChildMergeTree(et,tt){var rt=et.map,nt=rt.get(tt);nt&&mergeTreeIsEmpty(nt)&&(emptyMergeTreePool.push(nt),rt.delete(tt))}var warnings=new Set;function warnAboutDataLoss(et,tt,rt,nt){var lt=function(Mt){var vt=nt.getFieldValue(Mt,rt);return typeof vt=="object"&&vt},ut=lt(et);if(ut){var dt=lt(tt);if(dt&&!isReference(ut)&&!equal$2(ut,dt)&&!Object.keys(ut).every(function(Mt){return nt.getFieldValue(dt,Mt)!==void 0})){var pt=nt.getFieldValue(et,"__typename")||nt.getFieldValue(tt,"__typename"),ht=fieldNameFromStoreName(rt),mt="".concat(pt,".").concat(ht);if(!warnings.has(mt)){warnings.add(mt);var xt=[];!isArray$l(ut)&&!isArray$l(dt)&&[ut,dt].forEach(function(Mt){var vt=nt.getFieldValue(Mt,"__typename");typeof vt=="string"&&!xt.includes(vt)&&xt.push(vt)}),globalThis.__DEV__!==!1&&invariant$5.warn(14,ht,pt,xt.length?"either ensure all objects of type "+xt.join(" and ")+" have an ID or a custom merge function, or ":"",mt,__assign({},ut),__assign({},dt))}}}}var InMemoryCache=function(et){__extends(tt,et);function tt(rt){rt===void 0&&(rt={});var nt=et.call(this)||this;return nt.watches=new Set,nt.addTypenameTransform=new DocumentTransform(addTypenameToDocument),nt.assumeImmutableResults=!0,nt.makeVar=makeVar,nt.txCount=0,nt.config=normalizeConfig(rt),nt.addTypename=!!nt.config.addTypename,nt.policies=new Policies({cache:nt,dataIdFromObject:nt.config.dataIdFromObject,possibleTypes:nt.config.possibleTypes,typePolicies:nt.config.typePolicies}),nt.init(),nt}return tt.prototype.init=function(){var rt=this.data=new EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=rt.stump,this.resetResultCache()},tt.prototype.resetResultCache=function(rt){var nt=this,lt=this.storeReader,ut=this.config.fragments;this.storeWriter=new StoreWriter(this,this.storeReader=new StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:shouldCanonizeResults(this.config),canon:rt?void 0:lt&&lt.canon,fragments:ut}),ut),this.maybeBroadcastWatch=wrap$1(function(dt,pt){return nt.broadcastWatch(dt,pt)},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(dt){var pt=dt.optimistic?nt.optimisticData:nt.data;if(supportsResultCaching(pt)){var ht=dt.optimistic,mt=dt.id,xt=dt.variables;return pt.makeCacheKey(dt.query,dt.callback,canonicalStringify({optimistic:ht,id:mt,variables:xt}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(dt){return dt.resetCaching()})},tt.prototype.restore=function(rt){return this.init(),rt&&this.data.replace(rt),this},tt.prototype.extract=function(rt){return rt===void 0&&(rt=!1),(rt?this.optimisticData:this.data).extract()},tt.prototype.read=function(rt){var nt=rt.returnPartialData,lt=nt===void 0?!1:nt;try{return this.storeReader.diffQueryAgainstStore(__assign(__assign({},rt),{store:rt.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:lt})).result||null}catch(ut){if(ut instanceof MissingFieldError)return null;throw ut}},tt.prototype.write=function(rt){try{return++this.txCount,this.storeWriter.writeToStore(this.data,rt)}finally{!--this.txCount&&rt.broadcast!==!1&&this.broadcastWatches()}},tt.prototype.modify=function(rt){if(hasOwn$3.call(rt,"id")&&!rt.id)return!1;var nt=rt.optimistic?this.optimisticData:this.data;try{return++this.txCount,nt.modify(rt.id||"ROOT_QUERY",rt.fields)}finally{!--this.txCount&&rt.broadcast!==!1&&this.broadcastWatches()}},tt.prototype.diff=function(rt){return this.storeReader.diffQueryAgainstStore(__assign(__assign({},rt),{store:rt.optimistic?this.optimisticData:this.data,rootId:rt.id||"ROOT_QUERY",config:this.config}))},tt.prototype.watch=function(rt){var nt=this;return this.watches.size||recallCache(this),this.watches.add(rt),rt.immediate&&this.maybeBroadcastWatch(rt),function(){nt.watches.delete(rt)&&!nt.watches.size&&forgetCache(nt),nt.maybeBroadcastWatch.forget(rt)}},tt.prototype.gc=function(rt){var nt;canonicalStringify.reset(),print.reset(),this.addTypenameTransform.resetCache(),(nt=this.config.fragments)===null||nt===void 0||nt.resetCaches();var lt=this.optimisticData.gc();return rt&&!this.txCount&&(rt.resetResultCache?this.resetResultCache(rt.resetResultIdentities):rt.resetResultIdentities&&this.storeReader.resetCanon()),lt},tt.prototype.retain=function(rt,nt){return(nt?this.optimisticData:this.data).retain(rt)},tt.prototype.release=function(rt,nt){return(nt?this.optimisticData:this.data).release(rt)},tt.prototype.identify=function(rt){if(isReference(rt))return rt.__ref;try{return this.policies.identify(rt)[0]}catch(nt){globalThis.__DEV__!==!1&&invariant$5.warn(nt)}},tt.prototype.evict=function(rt){if(!rt.id){if(hasOwn$3.call(rt,"id"))return!1;rt=__assign(__assign({},rt),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(rt,this.data)}finally{!--this.txCount&&rt.broadcast!==!1&&this.broadcastWatches()}},tt.prototype.reset=function(rt){var nt=this;return this.init(),canonicalStringify.reset(),rt&&rt.discardWatches?(this.watches.forEach(function(lt){return nt.maybeBroadcastWatch.forget(lt)}),this.watches.clear(),forgetCache(this)):this.broadcastWatches(),Promise.resolve()},tt.prototype.removeOptimistic=function(rt){var nt=this.optimisticData.removeLayer(rt);nt!==this.optimisticData&&(this.optimisticData=nt,this.broadcastWatches())},tt.prototype.batch=function(rt){var nt=this,lt=rt.update,ut=rt.optimistic,dt=ut===void 0?!0:ut,pt=rt.removeOptimistic,ht=rt.onWatchUpdated,mt,xt=function(vt){var Ot=nt,At=Ot.data,Rt=Ot.optimisticData;++nt.txCount,vt&&(nt.data=nt.optimisticData=vt);try{return mt=lt(nt)}finally{--nt.txCount,nt.data=At,nt.optimisticData=Rt}},Mt=new Set;return ht&&!this.txCount&&this.broadcastWatches(__assign(__assign({},rt),{onWatchUpdated:function(vt){return Mt.add(vt),!1}})),typeof dt=="string"?this.optimisticData=this.optimisticData.addLayer(dt,xt):dt===!1?xt(this.data):xt(),typeof pt=="string"&&(this.optimisticData=this.optimisticData.removeLayer(pt)),ht&&Mt.size?(this.broadcastWatches(__assign(__assign({},rt),{onWatchUpdated:function(vt,Ot){var At=ht.call(this,vt,Ot);return At!==!1&&Mt.delete(vt),At}})),Mt.size&&Mt.forEach(function(vt){return nt.maybeBroadcastWatch.dirty(vt)})):this.broadcastWatches(rt),mt},tt.prototype.performTransaction=function(rt,nt){return this.batch({update:rt,optimistic:nt||nt!==null})},tt.prototype.transformDocument=function(rt){return this.addTypenameToDocument(this.addFragmentsToDocument(rt))},tt.prototype.broadcastWatches=function(rt){var nt=this;this.txCount||this.watches.forEach(function(lt){return nt.maybeBroadcastWatch(lt,rt)})},tt.prototype.addFragmentsToDocument=function(rt){var nt=this.config.fragments;return nt?nt.transform(rt):rt},tt.prototype.addTypenameToDocument=function(rt){return this.addTypename?this.addTypenameTransform.transformDocument(rt):rt},tt.prototype.broadcastWatch=function(rt,nt){var lt=rt.lastDiff,ut=this.diff(rt);nt&&(rt.optimistic&&typeof nt.optimistic=="string"&&(ut.fromOptimisticTransaction=!0),nt.onWatchUpdated&&nt.onWatchUpdated.call(this,rt,ut,lt)===!1)||(!lt||!equal$2(lt.result,ut.result))&&rt.callback(rt.lastDiff=ut,lt)},tt}(ApolloCache);globalThis.__DEV__!==!1&&(InMemoryCache.prototype.getMemoryInternals=getInMemoryCacheMemoryInternals);var NetworkStatus;(function(et){et[et.loading=1]="loading",et[et.setVariables=2]="setVariables",et[et.fetchMore=3]="fetchMore",et[et.refetch=4]="refetch",et[et.poll=6]="poll",et[et.ready=7]="ready",et[et.error=8]="error"})(NetworkStatus||(NetworkStatus={}));function isNetworkRequestInFlight(et){return et?et<7:!1}var assign$5=Object.assign,hasOwnProperty$r=Object.hasOwnProperty,ObservableQuery=function(et){__extends(tt,et);function tt(rt){var nt=rt.queryManager,lt=rt.queryInfo,ut=rt.options,dt=et.call(this,function(zt){try{var Tt=zt._subscription._observer;Tt&&!Tt.error&&(Tt.error=defaultSubscriptionObserverErrorCallback)}catch{}var Ct=!dt.observers.size;dt.observers.add(zt);var It=dt.last;return It&&It.error?zt.error&&zt.error(It.error):It&&It.result&&zt.next&&zt.next(It.result),Ct&&dt.reobserve().catch(function(){}),function(){dt.observers.delete(zt)&&!dt.observers.size&&dt.tearDownQuery()}})||this;dt.observers=new Set,dt.subscriptions=new Set,dt.queryInfo=lt,dt.queryManager=nt,dt.waitForOwnResult=skipCacheDataFor(ut.fetchPolicy),dt.isTornDown=!1,dt.subscribeToMore=dt.subscribeToMore.bind(dt);var pt=nt.defaultOptions.watchQuery,ht=pt===void 0?{}:pt,mt=ht.fetchPolicy,xt=mt===void 0?"cache-first":mt,Mt=ut.fetchPolicy,vt=Mt===void 0?xt:Mt,Ot=ut.initialFetchPolicy,At=Ot===void 0?vt==="standby"?xt:vt:Ot;dt.options=__assign(__assign({},ut),{initialFetchPolicy:At,fetchPolicy:vt}),dt.queryId=lt.queryId||nt.generateQueryId();var Rt=getOperationDefinition(dt.query);return dt.queryName=Rt&&Rt.name&&Rt.name.value,dt}return Object.defineProperty(tt.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),tt.prototype.result=function(){var rt=this;return new Promise(function(nt,lt){var ut={next:function(pt){nt(pt),rt.observers.delete(ut),rt.observers.size||rt.queryManager.removeQuery(rt.queryId),setTimeout(function(){dt.unsubscribe()},0)},error:lt},dt=rt.subscribe(ut)})},tt.prototype.resetDiff=function(){this.queryInfo.resetDiff()},tt.prototype.getCurrentResult=function(rt){rt===void 0&&(rt=!0);var nt=this.getLastResult(!0),lt=this.queryInfo.networkStatus||nt&&nt.networkStatus||NetworkStatus.ready,ut=__assign(__assign({},nt),{loading:isNetworkRequestInFlight(lt),networkStatus:lt}),dt=this.options.fetchPolicy,pt=dt===void 0?"cache-first":dt;if(!(skipCacheDataFor(pt)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var ht=this.queryInfo.getDiff();(ht.complete||this.options.returnPartialData)&&(ut.data=ht.result),equal$2(ut.data,{})&&(ut.data=void 0),ht.complete?(delete ut.partial,ht.complete&&ut.networkStatus===NetworkStatus.loading&&(pt==="cache-first"||pt==="cache-only")&&(ut.networkStatus=NetworkStatus.ready,ut.loading=!1)):ut.partial=!0,globalThis.__DEV__!==!1&&!ht.complete&&!this.options.partialRefetch&&!ut.loading&&!ut.data&&!ut.error&&logMissingFieldErrors(ht.missing)}return rt&&this.updateLastResult(ut),ut},tt.prototype.isDifferentFromLastResult=function(rt,nt){if(!this.last)return!0;var lt=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!equalByQuery(this.query,this.last.result,rt,this.variables):!equal$2(this.last.result,rt);return lt||nt&&!equal$2(this.last.variables,nt)},tt.prototype.getLast=function(rt,nt){var lt=this.last;if(lt&&lt[rt]&&(!nt||equal$2(lt.variables,this.variables)))return lt[rt]},tt.prototype.getLastResult=function(rt){return this.getLast("result",rt)},tt.prototype.getLastError=function(rt){return this.getLast("error",rt)},tt.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},tt.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},tt.prototype.refetch=function(rt){var nt,lt={pollInterval:0},ut=this.options.fetchPolicy;if(ut==="cache-and-network"?lt.fetchPolicy=ut:ut==="no-cache"?lt.fetchPolicy="no-cache":lt.fetchPolicy="network-only",globalThis.__DEV__!==!1&&rt&&hasOwnProperty$r.call(rt,"variables")){var dt=getQueryDefinition(this.query),pt=dt.variableDefinitions;(!pt||!pt.some(function(ht){return ht.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&invariant$5.warn(20,rt,((nt=dt.name)===null||nt===void 0?void 0:nt.value)||dt)}return rt&&!equal$2(this.options.variables,rt)&&(lt.variables=this.options.variables=__assign(__assign({},this.options.variables),rt)),this.queryInfo.resetLastWrite(),this.reobserve(lt,NetworkStatus.refetch)},tt.prototype.fetchMore=function(rt){var nt=this,lt=__assign(__assign({},rt.query?rt:__assign(__assign(__assign(__assign({},this.options),{query:this.options.query}),rt),{variables:__assign(__assign({},this.options.variables),rt.variables)})),{fetchPolicy:"no-cache"});lt.query=this.transformDocument(lt.query);var ut=this.queryManager.generateQueryId();this.lastQuery=rt.query?this.transformDocument(this.options.query):lt.query;var dt=this.queryInfo,pt=dt.networkStatus;dt.networkStatus=NetworkStatus.fetchMore,lt.notifyOnNetworkStatusChange&&this.observe();var ht=new Set,mt=rt==null?void 0:rt.updateQuery,xt=this.options.fetchPolicy!=="no-cache";return xt||invariant$5(mt,21),this.queryManager.fetchQuery(ut,lt,NetworkStatus.fetchMore).then(function(Mt){if(nt.queryManager.removeQuery(ut),dt.networkStatus===NetworkStatus.fetchMore&&(dt.networkStatus=pt),xt)nt.queryManager.cache.batch({update:function(At){var Rt=rt.updateQuery;Rt?At.updateQuery({query:nt.query,variables:nt.variables,returnPartialData:!0,optimistic:!1},function(zt){return Rt(zt,{fetchMoreResult:Mt.data,variables:lt.variables})}):At.writeQuery({query:lt.query,variables:lt.variables,data:Mt.data})},onWatchUpdated:function(At){ht.add(At.query)}});else{var vt=nt.getLast("result"),Ot=mt(vt.data,{fetchMoreResult:Mt.data,variables:lt.variables});nt.reportResult(__assign(__assign({},vt),{data:Ot}),nt.variables)}return Mt}).finally(function(){xt&&!ht.has(nt.query)&&reobserveCacheFirst(nt)})},tt.prototype.subscribeToMore=function(rt){var nt=this,lt=this.queryManager.startGraphQLSubscription({query:rt.document,variables:rt.variables,context:rt.context}).subscribe({next:function(ut){var dt=rt.updateQuery;dt&&nt.updateQuery(function(pt,ht){var mt=ht.variables;return dt(pt,{subscriptionData:ut,variables:mt})})},error:function(ut){if(rt.onError){rt.onError(ut);return}globalThis.__DEV__!==!1&&invariant$5.error(22,ut)}});return this.subscriptions.add(lt),function(){nt.subscriptions.delete(lt)&&lt.unsubscribe()}},tt.prototype.setOptions=function(rt){return this.reobserve(rt)},tt.prototype.silentSetOptions=function(rt){var nt=compact$1(this.options,rt||{});assign$5(this.options,nt)},tt.prototype.setVariables=function(rt){return equal$2(this.variables,rt)?this.observers.size?this.result():Promise.resolve():(this.options.variables=rt,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:rt},NetworkStatus.setVariables):Promise.resolve())},tt.prototype.updateQuery=function(rt){var nt=this.queryManager,lt=nt.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,ut=rt(lt,{variables:this.variables});ut&&(nt.cache.writeQuery({query:this.options.query,data:ut,variables:this.variables}),nt.broadcastQueries())},tt.prototype.startPolling=function(rt){this.options.pollInterval=rt,this.updatePolling()},tt.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},tt.prototype.applyNextFetchPolicy=function(rt,nt){if(nt.nextFetchPolicy){var lt=nt.fetchPolicy,ut=lt===void 0?"cache-first":lt,dt=nt.initialFetchPolicy,pt=dt===void 0?ut:dt;ut==="standby"||(typeof nt.nextFetchPolicy=="function"?nt.fetchPolicy=nt.nextFetchPolicy(ut,{reason:rt,options:nt,observable:this,initialFetchPolicy:pt}):rt==="variables-changed"?nt.fetchPolicy=pt:nt.fetchPolicy=nt.nextFetchPolicy)}return nt.fetchPolicy},tt.prototype.fetch=function(rt,nt,lt){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,rt,nt,lt)},tt.prototype.updatePolling=function(){var rt=this;if(!this.queryManager.ssrMode){var nt=this,lt=nt.pollingInfo,ut=nt.options.pollInterval;if(!ut||!this.hasObservers()){lt&&(clearTimeout(lt.timeout),delete this.pollingInfo);return}if(!(lt&&lt.interval===ut)){invariant$5(ut,23);var dt=lt||(this.pollingInfo={});dt.interval=ut;var pt=function(){var mt,xt;rt.pollingInfo&&(!isNetworkRequestInFlight(rt.queryInfo.networkStatus)&&!(!((xt=(mt=rt.options).skipPollAttempt)===null||xt===void 0)&&xt.call(mt))?rt.reobserve({fetchPolicy:rt.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},NetworkStatus.poll).then(ht,ht):ht())},ht=function(){var mt=rt.pollingInfo;mt&&(clearTimeout(mt.timeout),mt.timeout=setTimeout(pt,mt.interval))};ht()}}},tt.prototype.updateLastResult=function(rt,nt){nt===void 0&&(nt=this.variables);var lt=this.getLastError();return lt&&this.last&&!equal$2(nt,this.last.variables)&&(lt=void 0),this.last=__assign({result:this.queryManager.assumeImmutableResults?rt:cloneDeep$1(rt),variables:nt},lt?{error:lt}:null)},tt.prototype.reobserveAsConcast=function(rt,nt){var lt=this;this.isTornDown=!1;var ut=nt===NetworkStatus.refetch||nt===NetworkStatus.fetchMore||nt===NetworkStatus.poll,dt=this.options.variables,pt=this.options.fetchPolicy,ht=compact$1(this.options,rt||{}),mt=ut?ht:assign$5(this.options,ht),xt=this.transformDocument(mt.query);this.lastQuery=xt,ut||(this.updatePolling(),rt&&rt.variables&&!equal$2(rt.variables,dt)&&mt.fetchPolicy!=="standby"&&(mt.fetchPolicy===pt||typeof mt.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",mt),nt===void 0&&(nt=NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=skipCacheDataFor(mt.fetchPolicy));var Mt=function(){lt.concast===At&&(lt.waitForOwnResult=!1)},vt=mt.variables&&__assign({},mt.variables),Ot=this.fetch(mt,nt,xt),At=Ot.concast,Rt=Ot.fromLink,zt={next:function(Tt){equal$2(lt.variables,vt)&&(Mt(),lt.reportResult(Tt,vt))},error:function(Tt){equal$2(lt.variables,vt)&&(isApolloError(Tt)||(Tt=new ApolloError({networkError:Tt})),Mt(),lt.reportError(Tt,vt))}};return!ut&&(Rt||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=At,this.observer=zt),At.addObserver(zt),At},tt.prototype.reobserve=function(rt,nt){return this.reobserveAsConcast(rt,nt).promise},tt.prototype.resubscribeAfterError=function(){for(var rt=[],nt=0;nt<arguments.length;nt++)rt[nt]=arguments[nt];var lt=this.last;this.resetLastResults();var ut=this.subscribe.apply(this,rt);return this.last=lt,ut},tt.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},tt.prototype.reportResult=function(rt,nt){var lt=this.getLastError(),ut=this.isDifferentFromLastResult(rt,nt);(lt||!rt.partial||this.options.returnPartialData)&&this.updateLastResult(rt,nt),(lt||ut)&&iterateObserversSafely(this.observers,"next",rt)},tt.prototype.reportError=function(rt,nt){var lt=__assign(__assign({},this.getLastResult()),{error:rt,errors:rt.graphQLErrors,networkStatus:NetworkStatus.error,loading:!1});this.updateLastResult(lt,nt),iterateObserversSafely(this.observers,"error",this.last.error=rt)},tt.prototype.hasObservers=function(){return this.observers.size>0},tt.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(rt){return rt.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},tt.prototype.transformDocument=function(rt){return this.queryManager.transform(rt)},tt}(Observable$1);fixObservableSubclass(ObservableQuery);function reobserveCacheFirst(et){var tt=et.options,rt=tt.fetchPolicy,nt=tt.nextFetchPolicy;return rt==="cache-and-network"||rt==="network-only"?et.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(lt,ut){return this.nextFetchPolicy=nt,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(lt,ut):rt}}):et.reobserve()}function defaultSubscriptionObserverErrorCallback(et){globalThis.__DEV__!==!1&&invariant$5.error(24,et.message,et.stack)}function logMissingFieldErrors(et){globalThis.__DEV__!==!1&&et&&globalThis.__DEV__!==!1&&invariant$5.debug(25,et)}function skipCacheDataFor(et){return et==="network-only"||et==="no-cache"||et==="standby"}var destructiveMethodCounts=new(canUseWeakMap?WeakMap:Map);function wrapDestructiveCacheMethod(et,tt){var rt=et[tt];typeof rt=="function"&&(et[tt]=function(){return destructiveMethodCounts.set(et,(destructiveMethodCounts.get(et)+1)%1e15),rt.apply(this,arguments)})}function cancelNotifyTimeout(et){et.notifyTimeout&&(clearTimeout(et.notifyTimeout),et.notifyTimeout=void 0)}var QueryInfo=function(){function et(tt,rt){rt===void 0&&(rt=tt.generateQueryId()),this.queryId=rt,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var nt=this.cache=tt.cache;destructiveMethodCounts.has(nt)||(destructiveMethodCounts.set(nt,0),wrapDestructiveCacheMethod(nt,"evict"),wrapDestructiveCacheMethod(nt,"modify"),wrapDestructiveCacheMethod(nt,"reset"))}return et.prototype.init=function(tt){var rt=tt.networkStatus||NetworkStatus.loading;return this.variables&&this.networkStatus!==NetworkStatus.loading&&!equal$2(this.variables,tt.variables)&&(rt=NetworkStatus.setVariables),equal$2(tt.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:tt.document,variables:tt.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:rt}),tt.observableQuery&&this.setObservableQuery(tt.observableQuery),tt.lastRequestId&&(this.lastRequestId=tt.lastRequestId),this},et.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},et.prototype.resetDiff=function(){this.lastDiff=void 0},et.prototype.getDiff=function(){var tt=this.getDiffOptions();if(this.lastDiff&&equal$2(tt,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var rt=this.observableQuery;if(rt&&rt.options.fetchPolicy==="no-cache")return{complete:!1};var nt=this.cache.diff(tt);return this.updateLastDiff(nt,tt),nt},et.prototype.updateLastDiff=function(tt,rt){this.lastDiff=tt?{diff:tt,options:rt||this.getDiffOptions()}:void 0},et.prototype.getDiffOptions=function(tt){var rt;return tt===void 0&&(tt=this.variables),{query:this.document,variables:tt,returnPartialData:!0,optimistic:!0,canonizeResults:(rt=this.observableQuery)===null||rt===void 0?void 0:rt.options.canonizeResults}},et.prototype.setDiff=function(tt){var rt=this,nt,lt=this.lastDiff&&this.lastDiff.diff;tt&&!tt.complete&&(!((nt=this.observableQuery)===null||nt===void 0)&&nt.getLastError())||(this.updateLastDiff(tt),!this.dirty&&!equal$2(lt&&lt.result,tt&&tt.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return rt.notify()},0))))},et.prototype.setObservableQuery=function(tt){var rt=this;tt!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=tt,tt?(tt.queryInfo=this,this.listeners.add(this.oqListener=function(){var nt=rt.getDiff();nt.fromOptimisticTransaction?tt.observe():reobserveCacheFirst(tt)})):delete this.oqListener)},et.prototype.notify=function(){var tt=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach(function(rt){return rt(tt)}),this.dirty=!1},et.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var tt=this.observableQuery.options.fetchPolicy;if(tt!=="cache-only"&&tt!=="cache-and-network")return!1}return!0},et.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=et.prototype.cancel;var tt=this.observableQuery;tt&&tt.stopPolling()}},et.prototype.cancel=function(){},et.prototype.updateWatch=function(tt){var rt=this;tt===void 0&&(tt=this.variables);var nt=this.observableQuery;if(!(nt&&nt.options.fetchPolicy==="no-cache")){var lt=__assign(__assign({},this.getDiffOptions(tt)),{watcher:this,callback:function(ut){return rt.setDiff(ut)}});(!this.lastWatch||!equal$2(lt,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=lt))}},et.prototype.resetLastWrite=function(){this.lastWrite=void 0},et.prototype.shouldWrite=function(tt,rt){var nt=this.lastWrite;return!(nt&&nt.dmCount===destructiveMethodCounts.get(this.cache)&&equal$2(rt,nt.variables)&&equal$2(tt.data,nt.result.data))},et.prototype.markResult=function(tt,rt,nt,lt){var ut=this,dt=new DeepMerger,pt=isNonEmptyArray(tt.errors)?tt.errors.slice(0):[];if(this.reset(),"incremental"in tt&&isNonEmptyArray(tt.incremental)){var ht=mergeIncrementalData(this.getDiff().result,tt);tt.data=ht}else if("hasNext"in tt&&tt.hasNext){var mt=this.getDiff();tt.data=dt.merge(mt.result,tt.data)}this.graphQLErrors=pt,nt.fetchPolicy==="no-cache"?this.updateLastDiff({result:tt.data,complete:!0},this.getDiffOptions(nt.variables)):lt!==0&&(shouldWriteResult(tt,nt.errorPolicy)?this.cache.performTransaction(function(xt){if(ut.shouldWrite(tt,nt.variables))xt.writeQuery({query:rt,data:tt.data,variables:nt.variables,overwrite:lt===1}),ut.lastWrite={result:tt,variables:nt.variables,dmCount:destructiveMethodCounts.get(ut.cache)};else if(ut.lastDiff&&ut.lastDiff.diff.complete){tt.data=ut.lastDiff.diff.result;return}var Mt=ut.getDiffOptions(nt.variables),vt=xt.diff(Mt);!ut.stopped&&equal$2(ut.variables,nt.variables)&&ut.updateWatch(nt.variables),ut.updateLastDiff(vt,Mt),vt.complete&&(tt.data=vt.result)}):this.lastWrite=void 0)},et.prototype.markReady=function(){return this.networkError=null,this.networkStatus=NetworkStatus.ready},et.prototype.markError=function(tt){return this.networkStatus=NetworkStatus.error,this.lastWrite=void 0,this.reset(),tt.graphQLErrors&&(this.graphQLErrors=tt.graphQLErrors),tt.networkError&&(this.networkError=tt.networkError),tt},et}();function shouldWriteResult(et,tt){tt===void 0&&(tt="none");var rt=tt==="ignore"||tt==="all",nt=!graphQLResultHasError(et);return!nt&&rt&&et.data&&(nt=!0),nt}var hasOwnProperty$q=Object.prototype.hasOwnProperty,IGNORE=Object.create(null),QueryManager=function(){function et(tt){var rt=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new AutoCleanedWeakCache(cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Trie$1(!1);var nt=new DocumentTransform(function(ut){return rt.cache.transformDocument(ut)},{cache:!1});this.cache=tt.cache,this.link=tt.link,this.defaultOptions=tt.defaultOptions,this.queryDeduplication=tt.queryDeduplication,this.clientAwareness=tt.clientAwareness,this.localState=tt.localState,this.ssrMode=tt.ssrMode,this.assumeImmutableResults=tt.assumeImmutableResults;var lt=tt.documentTransform;this.documentTransform=lt?nt.concat(lt).concat(nt):nt,this.defaultContext=tt.defaultContext||Object.create(null),(this.onBroadcast=tt.onBroadcast)&&(this.mutationStore=Object.create(null))}return et.prototype.stop=function(){var tt=this;this.queries.forEach(function(rt,nt){tt.stopQueryNoBroadcast(nt)}),this.cancelPendingFetches(newInvariantError(26))},et.prototype.cancelPendingFetches=function(tt){this.fetchCancelFns.forEach(function(rt){return rt(tt)}),this.fetchCancelFns.clear()},et.prototype.mutate=function(tt){return __awaiter$1(this,arguments,void 0,function(rt){var nt,lt,ut,dt,pt,ht,mt,xt=rt.mutation,Mt=rt.variables,vt=rt.optimisticResponse,Ot=rt.updateQueries,At=rt.refetchQueries,Rt=At===void 0?[]:At,zt=rt.awaitRefetchQueries,Tt=zt===void 0?!1:zt,Ct=rt.update,It=rt.onQueryUpdated,Dt=rt.fetchPolicy,kt=Dt===void 0?((ht=this.defaultOptions.mutate)===null||ht===void 0?void 0:ht.fetchPolicy)||"network-only":Dt,qt=rt.errorPolicy,Nt=qt===void 0?((mt=this.defaultOptions.mutate)===null||mt===void 0?void 0:mt.errorPolicy)||"none":qt,Yt=rt.keepRootFields,Kt=rt.context;return __generator$1(this,function(Jt){switch(Jt.label){case 0:return invariant$5(xt,27),invariant$5(kt==="network-only"||kt==="no-cache",28),nt=this.generateMutationId(),xt=this.cache.transformForLink(this.transform(xt)),lt=this.getDocumentInfo(xt).hasClientExports,Mt=this.getVariables(xt,Mt),lt?[4,this.localState.addExportedVariables(xt,Mt,Kt)]:[3,2];case 1:Mt=Jt.sent(),Jt.label=2;case 2:return ut=this.mutationStore&&(this.mutationStore[nt]={mutation:xt,variables:Mt,loading:!0,error:null}),dt=vt&&this.markMutationOptimistic(vt,{mutationId:nt,document:xt,variables:Mt,fetchPolicy:kt,errorPolicy:Nt,context:Kt,updateQueries:Ot,update:Ct,keepRootFields:Yt}),this.broadcastQueries(),pt=this,[2,new Promise(function(Qt,Bt){return asyncMap(pt.getObservableFromLink(xt,__assign(__assign({},Kt),{optimisticResponse:dt?vt:void 0}),Mt,{},!1),function(Ft){if(graphQLResultHasError(Ft)&&Nt==="none")throw new ApolloError({graphQLErrors:getGraphQLErrorsFromResult(Ft)});ut&&(ut.loading=!1,ut.error=null);var $t=__assign({},Ft);return typeof Rt=="function"&&(Rt=Rt($t)),Nt==="ignore"&&graphQLResultHasError($t)&&delete $t.errors,pt.markMutationResult({mutationId:nt,result:$t,document:xt,variables:Mt,fetchPolicy:kt,errorPolicy:Nt,context:Kt,update:Ct,updateQueries:Ot,awaitRefetchQueries:Tt,refetchQueries:Rt,removeOptimistic:dt?nt:void 0,onQueryUpdated:It,keepRootFields:Yt})}).subscribe({next:function(Ft){pt.broadcastQueries(),(!("hasNext"in Ft)||Ft.hasNext===!1)&&Qt(Ft)},error:function(Ft){ut&&(ut.loading=!1,ut.error=Ft),dt&&pt.cache.removeOptimistic(nt),pt.broadcastQueries(),Bt(Ft instanceof ApolloError?Ft:new ApolloError({networkError:Ft}))}})})]}})})},et.prototype.markMutationResult=function(tt,rt){var nt=this;rt===void 0&&(rt=this.cache);var lt=tt.result,ut=[],dt=tt.fetchPolicy==="no-cache";if(!dt&&shouldWriteResult(lt,tt.errorPolicy)){if(isExecutionPatchIncrementalResult(lt)||ut.push({result:lt.data,dataId:"ROOT_MUTATION",query:tt.document,variables:tt.variables}),isExecutionPatchIncrementalResult(lt)&&isNonEmptyArray(lt.incremental)){var pt=rt.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(tt.document).asQuery,variables:tt.variables,optimistic:!1,returnPartialData:!0}),ht=void 0;pt.result&&(ht=mergeIncrementalData(pt.result,lt)),typeof ht<"u"&&(lt.data=ht,ut.push({result:ht,dataId:"ROOT_MUTATION",query:tt.document,variables:tt.variables}))}var mt=tt.updateQueries;mt&&this.queries.forEach(function(Mt,vt){var Ot=Mt.observableQuery,At=Ot&&Ot.queryName;if(!(!At||!hasOwnProperty$q.call(mt,At))){var Rt=mt[At],zt=nt.queries.get(vt),Tt=zt.document,Ct=zt.variables,It=rt.diff({query:Tt,variables:Ct,returnPartialData:!0,optimistic:!1}),Dt=It.result,kt=It.complete;if(kt&&Dt){var qt=Rt(Dt,{mutationResult:lt,queryName:Tt&&getOperationName(Tt)||void 0,queryVariables:Ct});qt&&ut.push({result:qt,dataId:"ROOT_QUERY",query:Tt,variables:Ct})}}})}if(ut.length>0||(tt.refetchQueries||"").length>0||tt.update||tt.onQueryUpdated||tt.removeOptimistic){var xt=[];if(this.refetchQueries({updateCache:function(Mt){dt||ut.forEach(function(Rt){return Mt.write(Rt)});var vt=tt.update,Ot=!isExecutionPatchResult(lt)||isExecutionPatchIncrementalResult(lt)&&!lt.hasNext;if(vt){if(!dt){var At=Mt.diff({id:"ROOT_MUTATION",query:nt.getDocumentInfo(tt.document).asQuery,variables:tt.variables,optimistic:!1,returnPartialData:!0});At.complete&&(lt=__assign(__assign({},lt),{data:At.result}),"incremental"in lt&&delete lt.incremental,"hasNext"in lt&&delete lt.hasNext)}Ot&&vt(Mt,lt,{context:tt.context,variables:tt.variables})}!dt&&!tt.keepRootFields&&Ot&&Mt.modify({id:"ROOT_MUTATION",fields:function(Rt,zt){var Tt=zt.fieldName,Ct=zt.DELETE;return Tt==="__typename"?Rt:Ct}})},include:tt.refetchQueries,optimistic:!1,removeOptimistic:tt.removeOptimistic,onQueryUpdated:tt.onQueryUpdated||null}).forEach(function(Mt){return xt.push(Mt)}),tt.awaitRefetchQueries||tt.onQueryUpdated)return Promise.all(xt).then(function(){return lt})}return Promise.resolve(lt)},et.prototype.markMutationOptimistic=function(tt,rt){var nt=this,lt=typeof tt=="function"?tt(rt.variables,{IGNORE}):tt;return lt===IGNORE?!1:(this.cache.recordOptimisticTransaction(function(ut){try{nt.markMutationResult(__assign(__assign({},rt),{result:{data:lt}}),ut)}catch(dt){globalThis.__DEV__!==!1&&invariant$5.error(dt)}},rt.mutationId),!0)},et.prototype.fetchQuery=function(tt,rt,nt){return this.fetchConcastWithInfo(tt,rt,nt).concast.promise},et.prototype.getQueryStore=function(){var tt=Object.create(null);return this.queries.forEach(function(rt,nt){tt[nt]={variables:rt.variables,networkStatus:rt.networkStatus,networkError:rt.networkError,graphQLErrors:rt.graphQLErrors}}),tt},et.prototype.resetErrors=function(tt){var rt=this.queries.get(tt);rt&&(rt.networkError=void 0,rt.graphQLErrors=[])},et.prototype.transform=function(tt){return this.documentTransform.transformDocument(tt)},et.prototype.getDocumentInfo=function(tt){var rt=this.transformCache;if(!rt.has(tt)){var nt={hasClientExports:hasClientExports(tt),hasForcedResolvers:this.localState.shouldForceResolvers(tt),hasNonreactiveDirective:hasDirectives(["nonreactive"],tt),clientQuery:this.localState.clientQuery(tt),serverQuery:removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],tt),defaultVars:getDefaultValues(getOperationDefinition(tt)),asQuery:__assign(__assign({},tt),{definitions:tt.definitions.map(function(lt){return lt.kind==="OperationDefinition"&&lt.operation!=="query"?__assign(__assign({},lt),{operation:"query"}):lt})})};rt.set(tt,nt)}return rt.get(tt)},et.prototype.getVariables=function(tt,rt){return __assign(__assign({},this.getDocumentInfo(tt).defaultVars),rt)},et.prototype.watchQuery=function(tt){var rt=this.transform(tt.query);tt=__assign(__assign({},tt),{variables:this.getVariables(rt,tt.variables)}),typeof tt.notifyOnNetworkStatusChange>"u"&&(tt.notifyOnNetworkStatusChange=!1);var nt=new QueryInfo(this),lt=new ObservableQuery({queryManager:this,queryInfo:nt,options:tt});return lt.lastQuery=rt,this.queries.set(lt.queryId,nt),nt.init({document:rt,observableQuery:lt,variables:lt.variables}),lt},et.prototype.query=function(tt,rt){var nt=this;return rt===void 0&&(rt=this.generateQueryId()),invariant$5(tt.query,29),invariant$5(tt.query.kind==="Document",30),invariant$5(!tt.returnPartialData,31),invariant$5(!tt.pollInterval,32),this.fetchQuery(rt,__assign(__assign({},tt),{query:this.transform(tt.query)})).finally(function(){return nt.stopQuery(rt)})},et.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},et.prototype.generateRequestId=function(){return this.requestIdCounter++},et.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},et.prototype.stopQueryInStore=function(tt){this.stopQueryInStoreNoBroadcast(tt),this.broadcastQueries()},et.prototype.stopQueryInStoreNoBroadcast=function(tt){var rt=this.queries.get(tt);rt&&rt.stop()},et.prototype.clearStore=function(tt){return tt===void 0&&(tt={discardWatches:!0}),this.cancelPendingFetches(newInvariantError(33)),this.queries.forEach(function(rt){rt.observableQuery?rt.networkStatus=NetworkStatus.loading:rt.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(tt)},et.prototype.getObservableQueries=function(tt){var rt=this;tt===void 0&&(tt="active");var nt=new Map,lt=new Map,ut=new Set;return Array.isArray(tt)&&tt.forEach(function(dt){typeof dt=="string"?lt.set(dt,!1):isDocumentNode(dt)?lt.set(rt.transform(dt),!1):isNonNullObject$1(dt)&&dt.query&&ut.add(dt)}),this.queries.forEach(function(dt,pt){var ht=dt.observableQuery,mt=dt.document;if(ht){if(tt==="all"){nt.set(pt,ht);return}var xt=ht.queryName,Mt=ht.options.fetchPolicy;if(Mt==="standby"||tt==="active"&&!ht.hasObservers())return;(tt==="active"||xt&&lt.has(xt)||mt&&lt.has(mt))&&(nt.set(pt,ht),xt&&lt.set(xt,!0),mt&&lt.set(mt,!0))}}),ut.size&&ut.forEach(function(dt){var pt=makeUniqueId("legacyOneTimeQuery"),ht=rt.getQuery(pt).init({document:dt.query,variables:dt.variables}),mt=new ObservableQuery({queryManager:rt,queryInfo:ht,options:__assign(__assign({},dt),{fetchPolicy:"network-only"})});invariant$5(mt.queryId===pt),ht.setObservableQuery(mt),nt.set(pt,mt)}),globalThis.__DEV__!==!1&&lt.size&&lt.forEach(function(dt,pt){dt||globalThis.__DEV__!==!1&&invariant$5.warn(typeof pt=="string"?34:35,pt)}),nt},et.prototype.reFetchObservableQueries=function(tt){var rt=this;tt===void 0&&(tt=!1);var nt=[];return this.getObservableQueries(tt?"all":"active").forEach(function(lt,ut){var dt=lt.options.fetchPolicy;lt.resetLastResults(),(tt||dt!=="standby"&&dt!=="cache-only")&&nt.push(lt.refetch()),rt.getQuery(ut).setDiff(null)}),this.broadcastQueries(),Promise.all(nt)},et.prototype.setObservableQuery=function(tt){this.getQuery(tt.queryId).setObservableQuery(tt)},et.prototype.startGraphQLSubscription=function(tt){var rt=this,nt=tt.query,lt=tt.fetchPolicy,ut=tt.errorPolicy,dt=ut===void 0?"none":ut,pt=tt.variables,ht=tt.context,mt=ht===void 0?{}:ht,xt=tt.extensions,Mt=xt===void 0?{}:xt;nt=this.transform(nt),pt=this.getVariables(nt,pt);var vt=function(At){return rt.getObservableFromLink(nt,mt,At,Mt).map(function(Rt){lt!=="no-cache"&&(shouldWriteResult(Rt,dt)&&rt.cache.write({query:nt,result:Rt.data,dataId:"ROOT_SUBSCRIPTION",variables:At}),rt.broadcastQueries());var zt=graphQLResultHasError(Rt),Tt=graphQLResultHasProtocolErrors(Rt);if(zt||Tt){var Ct={};if(zt&&(Ct.graphQLErrors=Rt.errors),Tt&&(Ct.protocolErrors=Rt.extensions[PROTOCOL_ERRORS_SYMBOL]),dt==="none"||Tt)throw new ApolloError(Ct)}return dt==="ignore"&&delete Rt.errors,Rt})};if(this.getDocumentInfo(nt).hasClientExports){var Ot=this.localState.addExportedVariables(nt,pt,mt).then(vt);return new Observable$1(function(At){var Rt=null;return Ot.then(function(zt){return Rt=zt.subscribe(At)},At.error),function(){return Rt&&Rt.unsubscribe()}})}return vt(pt)},et.prototype.stopQuery=function(tt){this.stopQueryNoBroadcast(tt),this.broadcastQueries()},et.prototype.stopQueryNoBroadcast=function(tt){this.stopQueryInStoreNoBroadcast(tt),this.removeQuery(tt)},et.prototype.removeQuery=function(tt){this.fetchCancelFns.delete(tt),this.queries.has(tt)&&(this.getQuery(tt).stop(),this.queries.delete(tt))},et.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(tt){return tt.notify()})},et.prototype.getLocalState=function(){return this.localState},et.prototype.getObservableFromLink=function(tt,rt,nt,lt,ut){var dt=this,pt;ut===void 0&&(ut=(pt=rt==null?void 0:rt.queryDeduplication)!==null&&pt!==void 0?pt:this.queryDeduplication);var ht,mt=this.getDocumentInfo(tt),xt=mt.serverQuery,Mt=mt.clientQuery;if(xt){var vt=this,Ot=vt.inFlightLinkObservables,At=vt.link,Rt={query:xt,variables:nt,operationName:getOperationName(xt)||void 0,context:this.prepareContext(__assign(__assign({},rt),{forceFetch:!ut})),extensions:lt};if(rt=Rt.context,ut){var zt=print(xt),Tt=canonicalStringify(nt),Ct=Ot.lookup(zt,Tt);if(ht=Ct.observable,!ht){var It=new Concast([execute$2(At,Rt)]);ht=Ct.observable=It,It.beforeNext(function(){Ot.remove(zt,Tt)})}}else ht=new Concast([execute$2(At,Rt)])}else ht=new Concast([Observable$1.of({data:{}})]),rt=this.prepareContext(rt);return Mt&&(ht=asyncMap(ht,function(Dt){return dt.localState.runResolvers({document:Mt,remoteResult:Dt,context:rt,variables:nt})})),ht},et.prototype.getResultsFromLink=function(tt,rt,nt){var lt=tt.lastRequestId=this.generateRequestId(),ut=this.cache.transformForLink(nt.query);return asyncMap(this.getObservableFromLink(ut,nt.context,nt.variables),function(dt){var pt=getGraphQLErrorsFromResult(dt),ht=pt.length>0,mt=nt.errorPolicy;if(lt>=tt.lastRequestId){if(ht&&mt==="none")throw tt.markError(new ApolloError({graphQLErrors:pt}));tt.markResult(dt,ut,nt,rt),tt.markReady()}var xt={data:dt.data,loading:!1,networkStatus:NetworkStatus.ready};return ht&&mt==="none"&&(xt.data=void 0),ht&&mt!=="ignore"&&(xt.errors=pt,xt.networkStatus=NetworkStatus.error),xt},function(dt){var pt=isApolloError(dt)?dt:new ApolloError({networkError:dt});throw lt>=tt.lastRequestId&&tt.markError(pt),pt})},et.prototype.fetchConcastWithInfo=function(tt,rt,nt,lt){var ut=this;nt===void 0&&(nt=NetworkStatus.loading),lt===void 0&&(lt=rt.query);var dt=this.getVariables(lt,rt.variables),pt=this.getQuery(tt),ht=this.defaultOptions.watchQuery,mt=rt.fetchPolicy,xt=mt===void 0?ht&&ht.fetchPolicy||"cache-first":mt,Mt=rt.errorPolicy,vt=Mt===void 0?ht&&ht.errorPolicy||"none":Mt,Ot=rt.returnPartialData,At=Ot===void 0?!1:Ot,Rt=rt.notifyOnNetworkStatusChange,zt=Rt===void 0?!1:Rt,Tt=rt.context,Ct=Tt===void 0?{}:Tt,It=Object.assign({},rt,{query:lt,variables:dt,fetchPolicy:xt,errorPolicy:vt,returnPartialData:At,notifyOnNetworkStatusChange:zt,context:Ct}),Dt=function(Kt){It.variables=Kt;var Jt=ut.fetchQueryByPolicy(pt,It,nt);return It.fetchPolicy!=="standby"&&Jt.sources.length>0&&pt.observableQuery&&pt.observableQuery.applyNextFetchPolicy("after-fetch",rt),Jt},kt=function(){return ut.fetchCancelFns.delete(tt)};this.fetchCancelFns.set(tt,function(Kt){kt(),setTimeout(function(){return qt.cancel(Kt)})});var qt,Nt;if(this.getDocumentInfo(It.query).hasClientExports)qt=new Concast(this.localState.addExportedVariables(It.query,It.variables,It.context).then(Dt).then(function(Kt){return Kt.sources})),Nt=!0;else{var Yt=Dt(It.variables);Nt=Yt.fromLink,qt=new Concast(Yt.sources)}return qt.promise.then(kt,kt),{concast:qt,fromLink:Nt}},et.prototype.refetchQueries=function(tt){var rt=this,nt=tt.updateCache,lt=tt.include,ut=tt.optimistic,dt=ut===void 0?!1:ut,pt=tt.removeOptimistic,ht=pt===void 0?dt?makeUniqueId("refetchQueries"):void 0:pt,mt=tt.onQueryUpdated,xt=new Map;lt&&this.getObservableQueries(lt).forEach(function(vt,Ot){xt.set(Ot,{oq:vt,lastDiff:rt.getQuery(Ot).getDiff()})});var Mt=new Map;return nt&&this.cache.batch({update:nt,optimistic:dt&&ht||!1,removeOptimistic:ht,onWatchUpdated:function(vt,Ot,At){var Rt=vt.watcher instanceof QueryInfo&&vt.watcher.observableQuery;if(Rt){if(mt){xt.delete(Rt.queryId);var zt=mt(Rt,Ot,At);return zt===!0&&(zt=Rt.refetch()),zt!==!1&&Mt.set(Rt,zt),zt}mt!==null&&xt.set(Rt.queryId,{oq:Rt,lastDiff:At,diff:Ot})}}}),xt.size&&xt.forEach(function(vt,Ot){var At=vt.oq,Rt=vt.lastDiff,zt=vt.diff,Tt;if(mt){if(!zt){var Ct=At.queryInfo;Ct.reset(),zt=Ct.getDiff()}Tt=mt(At,zt,Rt)}(!mt||Tt===!0)&&(Tt=At.refetch()),Tt!==!1&&Mt.set(At,Tt),Ot.indexOf("legacyOneTimeQuery")>=0&&rt.stopQueryNoBroadcast(Ot)}),ht&&this.cache.removeOptimistic(ht),Mt},et.prototype.fetchQueryByPolicy=function(tt,rt,nt){var lt=this,ut=rt.query,dt=rt.variables,pt=rt.fetchPolicy,ht=rt.refetchWritePolicy,mt=rt.errorPolicy,xt=rt.returnPartialData,Mt=rt.context,vt=rt.notifyOnNetworkStatusChange,Ot=tt.networkStatus;tt.init({document:ut,variables:dt,networkStatus:nt});var At=function(){return tt.getDiff()},Rt=function(Dt,kt){kt===void 0&&(kt=tt.networkStatus||NetworkStatus.loading);var qt=Dt.result;globalThis.__DEV__!==!1&&!xt&&!equal$2(qt,{})&&logMissingFieldErrors(Dt.missing);var Nt=function(Yt){return Observable$1.of(__assign({data:Yt,loading:isNetworkRequestInFlight(kt),networkStatus:kt},Dt.complete?null:{partial:!0}))};return qt&&lt.getDocumentInfo(ut).hasForcedResolvers?lt.localState.runResolvers({document:ut,remoteResult:{data:qt},context:Mt,variables:dt,onlyRunForcedResolvers:!0}).then(function(Yt){return Nt(Yt.data||void 0)}):mt==="none"&&kt===NetworkStatus.refetch&&Array.isArray(Dt.missing)?Nt(void 0):Nt(qt)},zt=pt==="no-cache"?0:nt===NetworkStatus.refetch&&ht!=="merge"?1:2,Tt=function(){return lt.getResultsFromLink(tt,zt,{query:ut,variables:dt,context:Mt,fetchPolicy:pt,errorPolicy:mt})},Ct=vt&&typeof Ot=="number"&&Ot!==nt&&isNetworkRequestInFlight(nt);switch(pt){default:case"cache-first":{var It=At();return It.complete?{fromLink:!1,sources:[Rt(It,tt.markReady())]}:xt||Ct?{fromLink:!0,sources:[Rt(It),Tt()]}:{fromLink:!0,sources:[Tt()]}}case"cache-and-network":{var It=At();return It.complete||xt||Ct?{fromLink:!0,sources:[Rt(It),Tt()]}:{fromLink:!0,sources:[Tt()]}}case"cache-only":return{fromLink:!1,sources:[Rt(At(),tt.markReady())]};case"network-only":return Ct?{fromLink:!0,sources:[Rt(At()),Tt()]}:{fromLink:!0,sources:[Tt()]};case"no-cache":return Ct?{fromLink:!0,sources:[Rt(tt.getDiff()),Tt()]}:{fromLink:!0,sources:[Tt()]};case"standby":return{fromLink:!1,sources:[]}}},et.prototype.getQuery=function(tt){return tt&&!this.queries.has(tt)&&this.queries.set(tt,new QueryInfo(this,tt)),this.queries.get(tt)},et.prototype.prepareContext=function(tt){tt===void 0&&(tt={});var rt=this.localState.prepareContext(tt);return __assign(__assign(__assign({},this.defaultContext),rt),{clientAwareness:this.clientAwareness})},et}(),LocalState=function(){function et(tt){var rt=tt.cache,nt=tt.client,lt=tt.resolvers,ut=tt.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=rt,nt&&(this.client=nt),lt&&this.addResolvers(lt),ut&&this.setFragmentMatcher(ut)}return et.prototype.addResolvers=function(tt){var rt=this;this.resolvers=this.resolvers||{},Array.isArray(tt)?tt.forEach(function(nt){rt.resolvers=mergeDeep(rt.resolvers,nt)}):this.resolvers=mergeDeep(this.resolvers,tt)},et.prototype.setResolvers=function(tt){this.resolvers={},this.addResolvers(tt)},et.prototype.getResolvers=function(){return this.resolvers||{}},et.prototype.runResolvers=function(tt){return __awaiter$1(this,arguments,void 0,function(rt){var nt=rt.document,lt=rt.remoteResult,ut=rt.context,dt=rt.variables,pt=rt.onlyRunForcedResolvers,ht=pt===void 0?!1:pt;return __generator$1(this,function(mt){return nt?[2,this.resolveDocument(nt,lt.data,ut,dt,this.fragmentMatcher,ht).then(function(xt){return __assign(__assign({},lt),{data:xt.result})})]:[2,lt]})})},et.prototype.setFragmentMatcher=function(tt){this.fragmentMatcher=tt},et.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},et.prototype.clientQuery=function(tt){return hasDirectives(["client"],tt)&&this.resolvers?tt:null},et.prototype.serverQuery=function(tt){return removeClientSetsFromDocument(tt)},et.prototype.prepareContext=function(tt){var rt=this.cache;return __assign(__assign({},tt),{cache:rt,getCacheKey:function(nt){return rt.identify(nt)}})},et.prototype.addExportedVariables=function(tt){return __awaiter$1(this,arguments,void 0,function(rt,nt,lt){return nt===void 0&&(nt={}),lt===void 0&&(lt={}),__generator$1(this,function(ut){return rt?[2,this.resolveDocument(rt,this.buildRootValueFromCache(rt,nt)||{},this.prepareContext(lt),nt).then(function(dt){return __assign(__assign({},nt),dt.exportedVariables)})]:[2,__assign({},nt)]})})},et.prototype.shouldForceResolvers=function(tt){var rt=!1;return visit(tt,{Directive:{enter:function(nt){if(nt.name.value==="client"&&nt.arguments&&(rt=nt.arguments.some(function(lt){return lt.name.value==="always"&&lt.value.kind==="BooleanValue"&&lt.value.value===!0}),rt))return BREAK}}}),rt},et.prototype.buildRootValueFromCache=function(tt,rt){return this.cache.diff({query:buildQueryFromSelectionSet(tt),variables:rt,returnPartialData:!0,optimistic:!1}).result},et.prototype.resolveDocument=function(tt,rt){return __awaiter$1(this,arguments,void 0,function(nt,lt,ut,dt,pt,ht){var mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct,It;return ut===void 0&&(ut={}),dt===void 0&&(dt={}),pt===void 0&&(pt=function(){return!0}),ht===void 0&&(ht=!1),__generator$1(this,function(Dt){return mt=getMainDefinition(nt),xt=getFragmentDefinitions(nt),Mt=createFragmentMap(xt),vt=this.collectSelectionsToResolve(mt,Mt),Ot=mt.operation,At=Ot?Ot.charAt(0).toUpperCase()+Ot.slice(1):"Query",Rt=this,zt=Rt.cache,Tt=Rt.client,Ct={fragmentMap:Mt,context:__assign(__assign({},ut),{cache:zt,client:Tt}),variables:dt,fragmentMatcher:pt,defaultOperationType:At,exportedVariables:{},selectionsToResolve:vt,onlyRunForcedResolvers:ht},It=!1,[2,this.resolveSelectionSet(mt.selectionSet,It,lt,Ct).then(function(kt){return{result:kt,exportedVariables:Ct.exportedVariables}})]})})},et.prototype.resolveSelectionSet=function(tt,rt,nt,lt){return __awaiter$1(this,void 0,void 0,function(){var ut,dt,pt,ht,mt,xt=this;return __generator$1(this,function(Mt){return ut=lt.fragmentMap,dt=lt.context,pt=lt.variables,ht=[nt],mt=function(vt){return __awaiter$1(xt,void 0,void 0,function(){var Ot,At;return __generator$1(this,function(Rt){return!rt&&!lt.selectionsToResolve.has(vt)?[2]:shouldInclude(vt,pt)?isField(vt)?[2,this.resolveField(vt,rt,nt,lt).then(function(zt){var Tt;typeof zt<"u"&&ht.push((Tt={},Tt[resultKeyNameFromField(vt)]=zt,Tt))})]:(isInlineFragment(vt)?Ot=vt:(Ot=ut[vt.name.value],invariant$5(Ot,18,vt.name.value)),Ot&&Ot.typeCondition&&(At=Ot.typeCondition.name.value,lt.fragmentMatcher(nt,At,dt))?[2,this.resolveSelectionSet(Ot.selectionSet,rt,nt,lt).then(function(zt){ht.push(zt)})]:[2]):[2]})})},[2,Promise.all(tt.selections.map(mt)).then(function(){return mergeDeepArray(ht)})]})})},et.prototype.resolveField=function(tt,rt,nt,lt){return __awaiter$1(this,void 0,void 0,function(){var ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At=this;return __generator$1(this,function(Rt){return nt?(ut=lt.variables,dt=tt.name.value,pt=resultKeyNameFromField(tt),ht=dt!==pt,mt=nt[pt]||nt[dt],xt=Promise.resolve(mt),(!lt.onlyRunForcedResolvers||this.shouldForceResolvers(tt))&&(Mt=nt.__typename||lt.defaultOperationType,vt=this.resolvers&&this.resolvers[Mt],vt&&(Ot=vt[ht?dt:pt],Ot&&(xt=Promise.resolve(cacheSlot.withValue(this.cache,Ot,[nt,argumentsObjectFromField(tt,ut),lt.context,{field:tt,fragmentMap:lt.fragmentMap}]))))),[2,xt.then(function(zt){var Tt,Ct;if(zt===void 0&&(zt=mt),tt.directives&&tt.directives.forEach(function(Dt){Dt.name.value==="export"&&Dt.arguments&&Dt.arguments.forEach(function(kt){kt.name.value==="as"&&kt.value.kind==="StringValue"&&(lt.exportedVariables[kt.value.value]=zt)})}),!tt.selectionSet||zt==null)return zt;var It=(Ct=(Tt=tt.directives)===null||Tt===void 0?void 0:Tt.some(function(Dt){return Dt.name.value==="client"}))!==null&&Ct!==void 0?Ct:!1;if(Array.isArray(zt))return At.resolveSubSelectedArray(tt,rt||It,zt,lt);if(tt.selectionSet)return At.resolveSelectionSet(tt.selectionSet,rt||It,zt,lt)})]):[2,null]})})},et.prototype.resolveSubSelectedArray=function(tt,rt,nt,lt){var ut=this;return Promise.all(nt.map(function(dt){if(dt===null)return null;if(Array.isArray(dt))return ut.resolveSubSelectedArray(tt,rt,dt,lt);if(tt.selectionSet)return ut.resolveSelectionSet(tt.selectionSet,rt,dt,lt)}))},et.prototype.collectSelectionsToResolve=function(tt,rt){var nt=function(dt){return!Array.isArray(dt)},lt=this.selectionsToResolveCache;function ut(dt){if(!lt.has(dt)){var pt=new Set;lt.set(dt,pt),visit(dt,{Directive:function(ht,mt,xt,Mt,vt){ht.name.value==="client"&&vt.forEach(function(Ot){nt(Ot)&&isSelectionNode(Ot)&&pt.add(Ot)})},FragmentSpread:function(ht,mt,xt,Mt,vt){var Ot=rt[ht.name.value];invariant$5(Ot,19,ht.name.value);var At=ut(Ot);At.size>0&&(vt.forEach(function(Rt){nt(Rt)&&isSelectionNode(Rt)&&pt.add(Rt)}),pt.add(ht),At.forEach(function(Rt){pt.add(Rt)}))}})}return lt.get(dt)}return ut(tt)},et}(),hasSuggestedDevtools=!1,ApolloClient=function(){function et(tt){var rt=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!tt.cache)throw newInvariantError(15);var nt=tt.uri,lt=tt.credentials,ut=tt.headers,dt=tt.cache,pt=tt.documentTransform,ht=tt.ssrMode,mt=ht===void 0?!1:ht,xt=tt.ssrForceFetchDelay,Mt=xt===void 0?0:xt,vt=tt.connectToDevTools,Ot=tt.queryDeduplication,At=Ot===void 0?!0:Ot,Rt=tt.defaultOptions,zt=tt.defaultContext,Tt=tt.assumeImmutableResults,Ct=Tt===void 0?dt.assumeImmutableResults:Tt,It=tt.resolvers,Dt=tt.typeDefs,kt=tt.fragmentMatcher,qt=tt.name,Nt=tt.version,Yt=tt.devtools,Kt=tt.link;Kt||(Kt=nt?new HttpLink({uri:nt,credentials:lt,headers:ut}):ApolloLink.empty()),this.link=Kt,this.cache=dt,this.disableNetworkFetches=mt||Mt>0,this.queryDeduplication=At,this.defaultOptions=Rt||Object.create(null),this.typeDefs=Dt,this.devtoolsConfig=__assign(__assign({},Yt),{enabled:(Yt==null?void 0:Yt.enabled)||vt}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),Mt&&setTimeout(function(){return rt.disableNetworkFetches=!1},Mt),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=version$3,this.localState=new LocalState({cache:dt,client:this,resolvers:It,fragmentMatcher:kt}),this.queryManager=new QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:zt,documentTransform:pt,queryDeduplication:At,ssrMode:mt,clientAwareness:{name:qt,version:Nt},localState:this.localState,assumeImmutableResults:Ct,onBroadcast:this.devtoolsConfig.enabled?function(){rt.devToolsHookCb&&rt.devToolsHookCb({action:{},state:{queries:rt.queryManager.getQueryStore(),mutations:rt.queryManager.mutationStore||{}},dataWithOptimisticResults:rt.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return et.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var tt=window,rt=Symbol.for("apollo.devtools");(tt[rt]=tt[rt]||[]).push(this),tt.__APOLLO_CLIENT__=this,!hasSuggestedDevtools&&globalThis.__DEV__!==!1&&(hasSuggestedDevtools=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var nt=window.navigator,lt=nt&&nt.userAgent,ut=void 0;typeof lt=="string"&&(lt.indexOf("Chrome/")>-1?ut="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":lt.indexOf("Firefox/")>-1&&(ut="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),ut&&globalThis.__DEV__!==!1&&invariant$5.log("Download the Apollo DevTools for a better development experience: %s",ut)}},1e4))}},Object.defineProperty(et.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),et.prototype.stop=function(){this.queryManager.stop()},et.prototype.watchQuery=function(tt){return this.defaultOptions.watchQuery&&(tt=mergeOptions(this.defaultOptions.watchQuery,tt)),this.disableNetworkFetches&&(tt.fetchPolicy==="network-only"||tt.fetchPolicy==="cache-and-network")&&(tt=__assign(__assign({},tt),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(tt)},et.prototype.query=function(tt){return this.defaultOptions.query&&(tt=mergeOptions(this.defaultOptions.query,tt)),invariant$5(tt.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&tt.fetchPolicy==="network-only"&&(tt=__assign(__assign({},tt),{fetchPolicy:"cache-first"})),this.queryManager.query(tt)},et.prototype.mutate=function(tt){return this.defaultOptions.mutate&&(tt=mergeOptions(this.defaultOptions.mutate,tt)),this.queryManager.mutate(tt)},et.prototype.subscribe=function(tt){return this.queryManager.startGraphQLSubscription(tt)},et.prototype.readQuery=function(tt,rt){return rt===void 0&&(rt=!1),this.cache.readQuery(tt,rt)},et.prototype.watchFragment=function(tt){return this.cache.watchFragment(tt)},et.prototype.readFragment=function(tt,rt){return rt===void 0&&(rt=!1),this.cache.readFragment(tt,rt)},et.prototype.writeQuery=function(tt){var rt=this.cache.writeQuery(tt);return tt.broadcast!==!1&&this.queryManager.broadcastQueries(),rt},et.prototype.writeFragment=function(tt){var rt=this.cache.writeFragment(tt);return tt.broadcast!==!1&&this.queryManager.broadcastQueries(),rt},et.prototype.__actionHookForDevTools=function(tt){this.devToolsHookCb=tt},et.prototype.__requestRaw=function(tt){return execute$2(this.link,tt)},et.prototype.resetStore=function(){var tt=this;return Promise.resolve().then(function(){return tt.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(tt.resetStoreCallbacks.map(function(rt){return rt()}))}).then(function(){return tt.reFetchObservableQueries()})},et.prototype.clearStore=function(){var tt=this;return Promise.resolve().then(function(){return tt.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(tt.clearStoreCallbacks.map(function(rt){return rt()}))})},et.prototype.onResetStore=function(tt){var rt=this;return this.resetStoreCallbacks.push(tt),function(){rt.resetStoreCallbacks=rt.resetStoreCallbacks.filter(function(nt){return nt!==tt})}},et.prototype.onClearStore=function(tt){var rt=this;return this.clearStoreCallbacks.push(tt),function(){rt.clearStoreCallbacks=rt.clearStoreCallbacks.filter(function(nt){return nt!==tt})}},et.prototype.reFetchObservableQueries=function(tt){return this.queryManager.reFetchObservableQueries(tt)},et.prototype.refetchQueries=function(tt){var rt=this.queryManager.refetchQueries(tt),nt=[],lt=[];rt.forEach(function(dt,pt){nt.push(pt),lt.push(dt)});var ut=Promise.all(lt);return ut.queries=nt,ut.results=lt,ut.catch(function(dt){globalThis.__DEV__!==!1&&invariant$5.debug(17,dt)}),ut},et.prototype.getObservableQueries=function(tt){return tt===void 0&&(tt="active"),this.queryManager.getObservableQueries(tt)},et.prototype.extract=function(tt){return this.cache.extract(tt)},et.prototype.restore=function(tt){return this.cache.restore(tt)},et.prototype.addResolvers=function(tt){this.localState.addResolvers(tt)},et.prototype.setResolvers=function(tt){this.localState.setResolvers(tt)},et.prototype.getResolvers=function(){return this.localState.getResolvers()},et.prototype.setLocalStateFragmentMatcher=function(tt){this.localState.setFragmentMatcher(tt)},et.prototype.setLink=function(tt){this.link=this.queryManager.link=tt},Object.defineProperty(et.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),et}();globalThis.__DEV__!==!1&&(ApolloClient.prototype.getMemoryInternals=getApolloClientMemoryInternals);var docCache=new Map,fragmentSourceMap=new Map,printFragmentWarnings=!0,experimentalFragmentVariables=!1;function normalize(et){return et.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(et){return normalize(et.source.body.substring(et.start,et.end))}function processFragments(et){var tt=new Set,rt=[];return et.definitions.forEach(function(nt){if(nt.kind==="FragmentDefinition"){var lt=nt.name.value,ut=cacheKeyFromLoc(nt.loc),dt=fragmentSourceMap.get(lt);dt&&!dt.has(ut)?printFragmentWarnings&&console.warn("Warning: fragment with name "+lt+` already exists.
graphql-tag enforces all fragment names across your application to be unique; read more about
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):dt||fragmentSourceMap.set(lt,dt=new Set),dt.add(ut),tt.has(ut)||(tt.add(ut),rt.push(nt))}else rt.push(nt)}),__assign(__assign({},et),{definitions:rt})}function stripLoc(et){var tt=new Set(et.definitions);tt.forEach(function(nt){nt.loc&&delete nt.loc,Object.keys(nt).forEach(function(lt){var ut=nt[lt];ut&&typeof ut=="object"&&tt.add(ut)})});var rt=et.loc;return rt&&(delete rt.startToken,delete rt.endToken),et}function parseDocument(et){var tt=normalize(et);if(!docCache.has(tt)){var rt=parse$c(et,{experimentalFragmentVariables,allowLegacyFragmentVariables:experimentalFragmentVariables});if(!rt||rt.kind!=="Document")throw new Error("Not a valid GraphQL document.");docCache.set(tt,stripLoc(processFragments(rt)))}return docCache.get(tt)}function gql(et){for(var tt=[],rt=1;rt<arguments.length;rt++)tt[rt-1]=arguments[rt];typeof et=="string"&&(et=[et]);var nt=et[0];return tt.forEach(function(lt,ut){lt&&lt.kind==="Document"?nt+=lt.loc.source.body:nt+=lt,nt+=et[ut+1]}),parseDocument(nt)}function resetCaches(){docCache.clear(),fragmentSourceMap.clear()}function disableFragmentWarnings(){printFragmentWarnings=!1}function enableExperimentalFragmentVariables(){experimentalFragmentVariables=!0}function disableExperimentalFragmentVariables(){experimentalFragmentVariables=!1}var extras={gql,resetCaches,disableFragmentWarnings,enableExperimentalFragmentVariables,disableExperimentalFragmentVariables};(function(et){et.gql=extras.gql,et.resetCaches=extras.resetCaches,et.disableFragmentWarnings=extras.disableFragmentWarnings,et.enableExperimentalFragmentVariables=extras.enableExperimentalFragmentVariables,et.disableExperimentalFragmentVariables=extras.disableExperimentalFragmentVariables})(gql||(gql={}));gql.default=gql;var rehackt={exports:{}};(function(et){et.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,et.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,et.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(et.exports,reactExports)})(rehackt);var rehacktExports=rehackt.exports;const index$2=getDefaultExportFromCjs$1(rehacktExports),React$3=_mergeNamespaces({__proto__:null,default:index$2},[rehacktExports]);var contextKey=canUseSymbol$1?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function getApolloContext(){invariant$5("createContext"in React$3,46);var et=rehacktExports.createContext[contextKey];return et||(Object.defineProperty(rehacktExports.createContext,contextKey,{value:et=rehacktExports.createContext({}),enumerable:!1,writable:!1,configurable:!0}),et.displayName="ApolloContext"),et}var ApolloConsumer=function(et){var tt=getApolloContext();return rehacktExports.createElement(tt.Consumer,null,function(rt){return invariant$5(rt&&rt.client,45),et.children(rt.client)})},ApolloProvider=function(et){var tt=et.client,rt=et.children,nt=getApolloContext(),lt=rehacktExports.useContext(nt),ut=rehacktExports.useMemo(function(){return __assign(__assign({},lt),{client:tt||lt.client})},[lt,tt]);return invariant$5(ut.client,47),rehacktExports.createElement(nt.Provider,{value:ut},rt)};function useApolloClient(et){var tt=rehacktExports.useContext(getApolloContext()),rt=et||tt.client;return invariant$5(!!rt,50),rt}var didWarnUncachedGetSnapshot=!1,uSESKey="useSyncExternalStore",realHook=React$3[uSESKey],useSyncExternalStore$1=realHook||function(et,tt,rt){var nt=tt();globalThis.__DEV__!==!1&&!didWarnUncachedGetSnapshot&&nt!==tt()&&(didWarnUncachedGetSnapshot=!0,globalThis.__DEV__!==!1&&invariant$5.error(60));var lt=rehacktExports.useState({inst:{value:nt,getSnapshot:tt}}),ut=lt[0].inst,dt=lt[1];return canUseLayoutEffect?rehacktExports.useLayoutEffect(function(){Object.assign(ut,{value:nt,getSnapshot:tt}),checkIfSnapshotChanged(ut)&&dt({inst:ut})},[et,nt,tt]):Object.assign(ut,{value:nt,getSnapshot:tt}),rehacktExports.useEffect(function(){return checkIfSnapshotChanged(ut)&&dt({inst:ut}),et(function(){checkIfSnapshotChanged(ut)&&dt({inst:ut})})},[et]),nt};function checkIfSnapshotChanged(et){var tt=et.value,rt=et.getSnapshot;try{return tt!==rt()}catch{return!0}}var DocumentType;(function(et){et[et.Query=0]="Query",et[et.Mutation=1]="Mutation",et[et.Subscription=2]="Subscription"})(DocumentType||(DocumentType={}));var cache$5;function operationName(et){var tt;switch(et){case DocumentType.Query:tt="Query";break;case DocumentType.Mutation:tt="Mutation";break;case DocumentType.Subscription:tt="Subscription";break}return tt}function parser$4(et){cache$5||(cache$5=new AutoCleanedWeakCache(cacheSizes.parser||1e3));var tt=cache$5.get(et);if(tt)return tt;var rt,nt,lt;invariant$5(!!et&&!!et.kind,62,et);for(var ut=[],dt=[],pt=[],ht=[],mt=0,xt=et.definitions;mt<xt.length;mt++){var Mt=xt[mt];if(Mt.kind==="FragmentDefinition"){ut.push(Mt);continue}if(Mt.kind==="OperationDefinition")switch(Mt.operation){case"query":dt.push(Mt);break;case"mutation":pt.push(Mt);break;case"subscription":ht.push(Mt);break}}invariant$5(!ut.length||dt.length||pt.length||ht.length,63),invariant$5(dt.length+pt.length+ht.length<=1,64,et,dt.length,ht.length,pt.length),nt=dt.length?DocumentType.Query:DocumentType.Mutation,!dt.length&&!pt.length&&(nt=DocumentType.Subscription);var vt=dt.length?dt:pt.length?pt:ht;invariant$5(vt.length===1,65,et,vt.length);var Ot=vt[0];rt=Ot.variableDefinitions||[],Ot.name&&Ot.name.kind==="Name"?lt=Ot.name.value:lt="data";var At={name:lt,type:nt,variables:rt};return cache$5.set(et,At),At}parser$4.resetCache=function(){cache$5=void 0};globalThis.__DEV__!==!1&&registerGlobalCache("parser",function(){return cache$5?cache$5.size:0});function verifyDocumentType(et,tt){var rt=parser$4(et),nt=operationName(tt),lt=operationName(rt.type);invariant$5(rt.type===tt,66,nt,nt,lt)}var useIsomorphicLayoutEffect$5=canUseDOM$3?rehacktExports.useLayoutEffect:rehacktExports.useEffect,wrapperSymbol=Symbol.for("apollo.hook.wrappers");function wrapHook(et,tt,rt){var nt=rt.queryManager,lt=nt&&nt[wrapperSymbol],ut=lt&&lt[et];return ut?ut(tt):tt}var hasOwnProperty$p=Object.prototype.hasOwnProperty;function noop$d(){}var lastWatchOptions=Symbol();function useQuery(et,tt){return tt===void 0&&(tt=Object.create(null)),wrapHook("useQuery",_useQuery,useApolloClient(tt&&tt.client))(et,tt)}function _useQuery(et,tt){var rt=useQueryInternals(et,tt),nt=rt.result,lt=rt.obsQueryFields;return rehacktExports.useMemo(function(){return __assign(__assign({},nt),lt)},[nt,lt])}function useInternalState(et,tt,rt,nt,lt){function ut(Mt){var vt;verifyDocumentType(tt,DocumentType.Query);var Ot={client:et,query:tt,observable:nt&&nt.getSSRObservable(lt())||et.watchQuery(getObsQueryOptions(void 0,et,rt,lt())),resultData:{previousData:(vt=Mt==null?void 0:Mt.resultData.current)===null||vt===void 0?void 0:vt.data}};return Ot}var dt=rehacktExports.useState(ut),pt=dt[0],ht=dt[1];function mt(Mt){var vt,Ot;Object.assign(pt.observable,(vt={},vt[lastWatchOptions]=Mt,vt));var At=pt.resultData;ht(__assign(__assign({},pt),{query:Mt.query,resultData:Object.assign(At,{previousData:((Ot=At.current)===null||Ot===void 0?void 0:Ot.data)||At.previousData,current:void 0})}))}if(et!==pt.client||tt!==pt.query){var xt=ut(pt);return ht(xt),[xt,mt]}return[pt,mt]}function useQueryInternals(et,tt){var rt=useApolloClient(tt.client),nt=rehacktExports.useContext(getApolloContext()).renderPromises,lt=!!nt,ut=rt.disableNetworkFetches,dt=tt.ssr!==!1&&!tt.skip,pt=tt.partialRefetch,ht=createMakeWatchQueryOptions(rt,et,tt,lt),mt=useInternalState(rt,et,tt,nt,ht),xt=mt[0],Mt=xt.observable,vt=xt.resultData,Ot=mt[1],At=ht(Mt);useResubscribeIfNecessary(vt,Mt,rt,tt,At);var Rt=rehacktExports.useMemo(function(){return bindObservableMethods(Mt)},[Mt]);useRegisterSSRObservable(Mt,nt,dt);var zt=useObservableSubscriptionResult(vt,Mt,rt,tt,At,ut,pt,lt,{onCompleted:tt.onCompleted||noop$d,onError:tt.onError||noop$d});return{result:zt,obsQueryFields:Rt,observable:Mt,resultData:vt,client:rt,onQueryExecuted:Ot}}function useObservableSubscriptionResult(et,tt,rt,nt,lt,ut,dt,pt,ht){var mt=rehacktExports.useRef(ht);rehacktExports.useEffect(function(){mt.current=ht});var xt=(pt||ut)&&nt.ssr===!1&&!nt.skip?ssrDisabledResult:nt.skip||lt.fetchPolicy==="standby"?skipStandbyResult:void 0,Mt=et.previousData,vt=rehacktExports.useMemo(function(){return xt&&toQueryResult(xt,Mt,tt,rt)},[rt,tt,xt,Mt]);return useSyncExternalStore$1(rehacktExports.useCallback(function(Ot){if(pt)return function(){};var At=function(){var Tt=et.current,Ct=tt.getCurrentResult();Tt&&Tt.loading===Ct.loading&&Tt.networkStatus===Ct.networkStatus&&equal$2(Tt.data,Ct.data)||setResult(Ct,et,tt,rt,dt,Ot,mt.current)},Rt=function(Tt){if(zt.current.unsubscribe(),zt.current=tt.resubscribeAfterError(At,Rt),!hasOwnProperty$p.call(Tt,"graphQLErrors"))throw Tt;var Ct=et.current;(!Ct||Ct&&Ct.loading||!equal$2(Tt,Ct.error))&&setResult({data:Ct&&Ct.data,error:Tt,loading:!1,networkStatus:NetworkStatus.error},et,tt,rt,dt,Ot,mt.current)},zt={current:tt.subscribe(At,Rt)};return function(){setTimeout(function(){return zt.current.unsubscribe()})}},[ut,pt,tt,et,dt,rt]),function(){return vt||getCurrentResult(et,tt,mt.current,dt,rt)},function(){return vt||getCurrentResult(et,tt,mt.current,dt,rt)})}function useRegisterSSRObservable(et,tt,rt){tt&&rt&&(tt.registerSSRObservable(et),et.getCurrentResult().loading&&tt.addObservableQueryPromise(et))}function useResubscribeIfNecessary(et,tt,rt,nt,lt){var ut;tt[lastWatchOptions]&&!equal$2(tt[lastWatchOptions],lt)&&(tt.reobserve(getObsQueryOptions(tt,rt,nt,lt)),et.previousData=((ut=et.current)===null||ut===void 0?void 0:ut.data)||et.previousData,et.current=void 0),tt[lastWatchOptions]=lt}function createMakeWatchQueryOptions(et,tt,rt,nt){rt===void 0&&(rt={});var lt=rt.skip;rt.ssr,rt.onCompleted,rt.onError;var ut=rt.defaultOptions,dt=__rest(rt,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(pt){var ht=Object.assign(dt,{query:tt});return nt&&(ht.fetchPolicy==="network-only"||ht.fetchPolicy==="cache-and-network")&&(ht.fetchPolicy="cache-first"),ht.variables||(ht.variables={}),lt?(ht.initialFetchPolicy=ht.initialFetchPolicy||ht.fetchPolicy||getDefaultFetchPolicy(ut,et.defaultOptions),ht.fetchPolicy="standby"):ht.fetchPolicy||(ht.fetchPolicy=(pt==null?void 0:pt.options.initialFetchPolicy)||getDefaultFetchPolicy(ut,et.defaultOptions)),ht}}function getObsQueryOptions(et,tt,rt,nt){var lt=[],ut=tt.defaultOptions.watchQuery;return ut&&lt.push(ut),rt.defaultOptions&&lt.push(rt.defaultOptions),lt.push(compact$1(et&&et.options,nt)),lt.reduce(mergeOptions)}function setResult(et,tt,rt,nt,lt,ut,dt){var pt=tt.current;pt&&pt.data&&(tt.previousData=pt.data),!et.error&&isNonEmptyArray(et.errors)&&(et.error=new ApolloError({graphQLErrors:et.errors})),tt.current=toQueryResult(unsafeHandlePartialRefetch(et,rt,lt),tt.previousData,rt,nt),ut(),handleErrorOrCompleted(et,pt==null?void 0:pt.networkStatus,dt)}function handleErrorOrCompleted(et,tt,rt){if(!et.loading){var nt=toApolloError(et);Promise.resolve().then(function(){nt?rt.onError(nt):et.data&&tt!==et.networkStatus&&et.networkStatus===NetworkStatus.ready&&rt.onCompleted(et.data)}).catch(function(lt){globalThis.__DEV__!==!1&&invariant$5.warn(lt)})}}function getCurrentResult(et,tt,rt,nt,lt){return et.current||setResult(tt.getCurrentResult(),et,tt,lt,nt,function(){},rt),et.current}function getDefaultFetchPolicy(et,tt){var rt;return(et==null?void 0:et.fetchPolicy)||((rt=tt==null?void 0:tt.watchQuery)===null||rt===void 0?void 0:rt.fetchPolicy)||"cache-first"}function toApolloError(et){return isNonEmptyArray(et.errors)?new ApolloError({graphQLErrors:et.errors}):et.error}function toQueryResult(et,tt,rt,nt){var lt=et.data;et.partial;var ut=__rest(et,["data","partial"]),dt=__assign(__assign({data:lt},ut),{client:nt,observable:rt,variables:rt.variables,called:et!==ssrDisabledResult&&et!==skipStandbyResult,previousData:tt});return dt}function unsafeHandlePartialRefetch(et,tt,rt){return et.partial&&rt&&!et.loading&&(!et.data||Object.keys(et.data).length===0)&&tt.options.fetchPolicy!=="cache-only"?(tt.refetch(),__assign(__assign({},et),{loading:!0,networkStatus:NetworkStatus.refetch})):et}var ssrDisabledResult=maybeDeepFreeze({loading:!0,data:void 0,error:void 0,networkStatus:NetworkStatus.loading}),skipStandbyResult=maybeDeepFreeze({loading:!1,data:void 0,error:void 0,networkStatus:NetworkStatus.ready});function bindObservableMethods(et){return{refetch:et.refetch.bind(et),reobserve:et.reobserve.bind(et),fetchMore:et.fetchMore.bind(et),updateQuery:et.updateQuery.bind(et),startPolling:et.startPolling.bind(et),stopPolling:et.stopPolling.bind(et),subscribeToMore:et.subscribeToMore.bind(et)}}var EAGER_METHODS=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function useLazyQuery(et,tt){var rt,nt=rehacktExports.useRef(),lt=rehacktExports.useRef(),ut=rehacktExports.useRef(),dt=mergeOptions(tt,nt.current||{}),pt=(rt=dt==null?void 0:dt.query)!==null&&rt!==void 0?rt:et;lt.current=tt,ut.current=pt;var ht=__assign(__assign({},dt),{skip:!nt.current}),mt=useQueryInternals(pt,ht),xt=mt.obsQueryFields,Mt=mt.result,vt=mt.client,Ot=mt.resultData,At=mt.observable,Rt=mt.onQueryExecuted,zt=At.options.initialFetchPolicy||getDefaultFetchPolicy(ht.defaultOptions,vt.defaultOptions),Tt=rehacktExports.useReducer(function(Yt){return Yt+1},0)[1],Ct=rehacktExports.useMemo(function(){for(var Yt={},Kt=function(Ft){var $t=xt[Ft];Yt[Ft]=function(){return nt.current||(nt.current=Object.create(null),Tt()),$t.apply(this,arguments)}},Jt=0,Qt=EAGER_METHODS;Jt<Qt.length;Jt++){var Bt=Qt[Jt];Kt(Bt)}return Yt},[Tt,xt]),It=!!nt.current,Dt=rehacktExports.useMemo(function(){return __assign(__assign(__assign({},Mt),Ct),{called:It})},[Mt,Ct,It]),kt=rehacktExports.useCallback(function(Yt){nt.current=Yt?__assign(__assign({},Yt),{fetchPolicy:Yt.fetchPolicy||zt}):{fetchPolicy:zt};var Kt=mergeOptions(lt.current,__assign({query:ut.current},nt.current)),Jt=executeQuery(Ot,At,vt,pt,__assign(__assign({},Kt),{skip:!1}),Rt).then(function(Qt){return Object.assign(Qt,Ct)});return Jt.catch(function(){}),Jt},[vt,pt,Ct,zt,At,Ot,Rt]),qt=rehacktExports.useRef(kt);useIsomorphicLayoutEffect$5(function(){qt.current=kt});var Nt=rehacktExports.useCallback(function(){for(var Yt=[],Kt=0;Kt<arguments.length;Kt++)Yt[Kt]=arguments[Kt];return qt.current.apply(qt,Yt)},[]);return[Nt,Dt]}function executeQuery(et,tt,rt,nt,lt,ut){var dt=lt.query||nt,pt=createMakeWatchQueryOptions(rt,dt,lt,!1)(tt),ht=tt.reobserveAsConcast(getObsQueryOptions(tt,rt,lt,pt));return ut(pt),new Promise(function(mt){var xt;ht.subscribe({next:function(Mt){xt=Mt},error:function(){mt(toQueryResult(tt.getCurrentResult(),et.previousData,tt,rt))},complete:function(){mt(toQueryResult(xt,et.previousData,tt,rt))}})})}function useMutation(et,tt){var rt=useApolloClient(tt==null?void 0:tt.client);verifyDocumentType(et,DocumentType.Mutation);var nt=rehacktExports.useState({called:!1,loading:!1,client:rt}),lt=nt[0],ut=nt[1],dt=rehacktExports.useRef({result:lt,mutationId:0,isMounted:!0,client:rt,mutation:et,options:tt});useIsomorphicLayoutEffect$5(function(){Object.assign(dt.current,{client:rt,options:tt,mutation:et})});var pt=rehacktExports.useCallback(function(mt){mt===void 0&&(mt={});var xt=dt.current,Mt=xt.options,vt=xt.mutation,Ot=__assign(__assign({},Mt),{mutation:vt}),At=mt.client||dt.current.client;!dt.current.result.loading&&!Ot.ignoreResults&&dt.current.isMounted&&ut(dt.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:At});var Rt=++dt.current.mutationId,zt=mergeOptions(Ot,mt);return At.mutate(zt).then(function(Tt){var Ct,It,Dt=Tt.data,kt=Tt.errors,qt=kt&&kt.length>0?new ApolloError({graphQLErrors:kt}):void 0,Nt=mt.onError||((Ct=dt.current.options)===null||Ct===void 0?void 0:Ct.onError);if(qt&&Nt&&Nt(qt,zt),Rt===dt.current.mutationId&&!zt.ignoreResults){var Yt={called:!0,loading:!1,data:Dt,error:qt,client:At};dt.current.isMounted&&!equal$2(dt.current.result,Yt)&&ut(dt.current.result=Yt)}var Kt=mt.onCompleted||((It=dt.current.options)===null||It===void 0?void 0:It.onCompleted);return qt||Kt==null||Kt(Tt.data,zt),Tt}).catch(function(Tt){var Ct;if(Rt===dt.current.mutationId&&dt.current.isMounted){var It={loading:!1,error:Tt,data:void 0,called:!0,client:At};equal$2(dt.current.result,It)||ut(dt.current.result=It)}var Dt=mt.onError||((Ct=dt.current.options)===null||Ct===void 0?void 0:Ct.onError);if(Dt)return Dt(Tt,zt),{data:void 0,errors:Tt};throw Tt})},[]),ht=rehacktExports.useCallback(function(){if(dt.current.isMounted){var mt={called:!1,loading:!1,client:dt.current.client};Object.assign(dt.current,{mutationId:0,result:mt}),ut(mt)}},[]);return rehacktExports.useEffect(function(){var mt=dt.current;return mt.isMounted=!0,function(){mt.isMounted=!1}},[]),[pt,__assign({reset:ht},lt)]}function onError$1(et){return new ApolloLink(function(tt,rt){return new Observable$1(function(nt){var lt,ut,dt;try{lt=rt(tt).subscribe({next:function(pt){if(pt.errors&&(dt=et({graphQLErrors:pt.errors,response:pt,operation:tt,forward:rt}),dt)){ut=dt.subscribe({next:nt.next.bind(nt),error:nt.error.bind(nt),complete:nt.complete.bind(nt)});return}nt.next(pt)},error:function(pt){if(dt=et({operation:tt,networkError:pt,graphQLErrors:pt&&pt.result&&pt.result.errors||void 0,forward:rt}),dt){ut=dt.subscribe({next:nt.next.bind(nt),error:nt.error.bind(nt),complete:nt.complete.bind(nt)});return}nt.error(pt)},complete:function(){dt||nt.complete.bind(nt)()}})}catch(pt){et({networkError:pt,operation:tt,forward:rt}),nt.error(pt)}return function(){lt&&lt.unsubscribe(),ut&&lt.unsubscribe()}})})}(function(et){__extends(tt,et);function tt(rt){var nt=et.call(this)||this;return nt.link=onError$1(rt),nt}return tt.prototype.request=function(rt,nt){return this.link.request(rt,nt)},tt})(ApolloLink);function buildDelayFunction(et){var tt=et||{},rt=tt.initial,nt=rt===void 0?300:rt,lt=tt.jitter,ut=lt===void 0?!0:lt,dt=tt.max,pt=dt===void 0?1/0:dt,ht=ut?nt:nt/2;return function(xt){var Mt=Math.min(pt,ht*Math.pow(2,xt));return ut&&(Mt=Math.random()*Mt),Mt}}function buildRetryFunction(et){var tt=et||{},rt=tt.retryIf,nt=tt.max,lt=nt===void 0?5:nt;return function(dt,pt,ht){return dt>=lt?!1:rt?rt(ht,pt):!!ht}}var RetryableOperation=function(){function et(tt,rt,nt,lt,ut){var dt=this;this.observer=tt,this.operation=rt,this.forward=nt,this.delayFor=lt,this.retryIf=ut,this.retryCount=0,this.currentSubscription=null,this.onError=function(pt){return __awaiter$1(dt,void 0,void 0,function(){var ht;return __generator$1(this,function(mt){switch(mt.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,pt)];case 1:return ht=mt.sent(),ht?(this.scheduleRetry(this.delayFor(this.retryCount,this.operation,pt)),[2]):(this.observer.error(pt),[2])}})})},this.try()}return et.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},et.prototype.try=function(){this.currentSubscription=this.forward(this.operation).subscribe({next:this.observer.next.bind(this.observer),error:this.onError,complete:this.observer.complete.bind(this.observer)})},et.prototype.scheduleRetry=function(tt){var rt=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){rt.timerId=void 0,rt.try()},tt)},et}(),RetryLink=function(et){__extends(tt,et);function tt(rt){var nt=et.call(this)||this,lt=rt||{},ut=lt.attempts,dt=lt.delay;return nt.delayFor=typeof dt=="function"?dt:buildDelayFunction(dt),nt.retryIf=typeof ut=="function"?ut:buildRetryFunction(ut),nt}return tt.prototype.request=function(rt,nt){var lt=this;return new Observable$1(function(ut){var dt=new RetryableOperation(ut,rt,nt,lt.delayFor,lt.retryIf);return function(){dt.cancel()}})},tt}(ApolloLink);/*! js-cookie v3.0.5 | MIT */function assign$4(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)et[nt]=rt[nt]}return et}var defaultConverter={read:function(et){return et[0]==='"'&&(et=et.slice(1,-1)),et.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(et){return encodeURIComponent(et).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(et,tt){function rt(lt,ut,dt){if(!(typeof document>"u")){dt=assign$4({},tt,dt),typeof dt.expires=="number"&&(dt.expires=new Date(Date.now()+dt.expires*864e5)),dt.expires&&(dt.expires=dt.expires.toUTCString()),lt=encodeURIComponent(lt).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var pt="";for(var ht in dt)dt[ht]&&(pt+="; "+ht,dt[ht]!==!0&&(pt+="="+dt[ht].split(";")[0]));return document.cookie=lt+"="+et.write(ut,lt)+pt}}function nt(lt){if(!(typeof document>"u"||arguments.length&&!lt)){for(var ut=document.cookie?document.cookie.split("; "):[],dt={},pt=0;pt<ut.length;pt++){var ht=ut[pt].split("="),mt=ht.slice(1).join("=");try{var xt=decodeURIComponent(ht[0]);if(dt[xt]=et.read(mt,xt),lt===xt)break}catch{}}return lt?dt[lt]:dt}}return Object.create({set:rt,get:nt,remove:function(lt,ut){rt(lt,"",assign$4({},ut,{expires:-1}))},withAttributes:function(lt){return init(this.converter,assign$4({},this.attributes,lt))},withConverter:function(lt){return init(assign$4({},this.converter,lt),this.attributes)}},{attributes:{value:Object.freeze(tt)},converter:{value:Object.freeze(et)}})}var api$3=init(defaultConverter,{path:"/"});function _setPrototypeOf$6(et,tt){return _setPrototypeOf$6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,nt){return rt.__proto__=nt,rt},_setPrototypeOf$6(et,tt)}function _inheritsLoose$3(et,tt){et.prototype=Object.create(tt.prototype),et.prototype.constructor=et,_setPrototypeOf$6(et,tt)}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function et(nt,lt,ut,dt,pt,ht){if(ht!==ReactPropTypesSecret){var mt=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 mt.name="Invariant Violation",mt}}et.isRequired=et;function tt(){return et}var rt={array:et,bigint:et,bool:et,func:et,number:et,object:et,string:et,symbol:et,any:et,arrayOf:tt,element:et,elementType:et,instanceOf:tt,node:et,objectOf:tt,oneOf:tt,oneOfType:tt,shape:tt,exact:tt,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return rt.PropTypes=rt,rt};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs$1(propTypesExports);function _extends$j(){return _extends$j=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)({}).hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$j.apply(null,arguments)}function isAbsolute(et){return et.charAt(0)==="/"}function spliceOne$1(et,tt){for(var rt=tt,nt=rt+1,lt=et.length;nt<lt;rt+=1,nt+=1)et[rt]=et[nt];et.pop()}function resolvePathname(et,tt){tt===void 0&&(tt="");var rt=et&&et.split("/")||[],nt=tt&&tt.split("/")||[],lt=et&&isAbsolute(et),ut=tt&&isAbsolute(tt),dt=lt||ut;if(et&&isAbsolute(et)?nt=rt:rt.length&&(nt.pop(),nt=nt.concat(rt)),!nt.length)return"/";var pt;if(nt.length){var ht=nt[nt.length-1];pt=ht==="."||ht===".."||ht===""}else pt=!1;for(var mt=0,xt=nt.length;xt>=0;xt--){var Mt=nt[xt];Mt==="."?spliceOne$1(nt,xt):Mt===".."?(spliceOne$1(nt,xt),mt++):mt&&(spliceOne$1(nt,xt),mt--)}if(!dt)for(;mt--;mt)nt.unshift("..");dt&&nt[0]!==""&&(!nt[0]||!isAbsolute(nt[0]))&&nt.unshift("");var vt=nt.join("/");return pt&&vt.substr(-1)!=="/"&&(vt+="/"),vt}function valueOf$2(et){return et.valueOf?et.valueOf():Object.prototype.valueOf.call(et)}function valueEqual(et,tt){if(et===tt)return!0;if(et==null||tt==null)return!1;if(Array.isArray(et))return Array.isArray(tt)&&et.length===tt.length&&et.every(function(lt,ut){return valueEqual(lt,tt[ut])});if(typeof et=="object"||typeof tt=="object"){var rt=valueOf$2(et),nt=valueOf$2(tt);return rt!==et||nt!==tt?valueEqual(rt,nt):Object.keys(Object.assign({},et,tt)).every(function(lt){return valueEqual(et[lt],tt[lt])})}return!1}var prefix$5="Invariant failed";function invariant$3(et,tt){throw new Error(prefix$5)}function addLeadingSlash$1(et){return et.charAt(0)==="/"?et:"/"+et}function stripLeadingSlash(et){return et.charAt(0)==="/"?et.substr(1):et}function hasBasename(et,tt){return et.toLowerCase().indexOf(tt.toLowerCase())===0&&"/?#".indexOf(et.charAt(tt.length))!==-1}function stripBasename$1(et,tt){return hasBasename(et,tt)?et.substr(tt.length):et}function stripTrailingSlash(et){return et.charAt(et.length-1)==="/"?et.slice(0,-1):et}function parsePath(et){var tt=et||"/",rt="",nt="",lt=tt.indexOf("#");lt!==-1&&(nt=tt.substr(lt),tt=tt.substr(0,lt));var ut=tt.indexOf("?");return ut!==-1&&(rt=tt.substr(ut),tt=tt.substr(0,ut)),{pathname:tt,search:rt==="?"?"":rt,hash:nt==="#"?"":nt}}function createPath(et){var tt=et.pathname,rt=et.search,nt=et.hash,lt=tt||"/";return rt&&rt!=="?"&&(lt+=rt.charAt(0)==="?"?rt:"?"+rt),nt&&nt!=="#"&&(lt+=nt.charAt(0)==="#"?nt:"#"+nt),lt}function createLocation(et,tt,rt,nt){var lt;typeof et=="string"?(lt=parsePath(et),lt.state=tt):(lt=_extends$j({},et),lt.pathname===void 0&&(lt.pathname=""),lt.search?lt.search.charAt(0)!=="?"&&(lt.search="?"+lt.search):lt.search="",lt.hash?lt.hash.charAt(0)!=="#"&&(lt.hash="#"+lt.hash):lt.hash="",tt!==void 0&&lt.state===void 0&&(lt.state=tt));try{lt.pathname=decodeURI(lt.pathname)}catch(ut){throw ut instanceof URIError?new URIError('Pathname "'+lt.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):ut}return rt&&(lt.key=rt),nt?lt.pathname?lt.pathname.charAt(0)!=="/"&&(lt.pathname=resolvePathname(lt.pathname,nt.pathname)):lt.pathname=nt.pathname:lt.pathname||(lt.pathname="/"),lt}function locationsAreEqual(et,tt){return et.pathname===tt.pathname&&et.search===tt.search&&et.hash===tt.hash&&et.key===tt.key&&valueEqual(et.state,tt.state)}function createTransitionManager(){var et=null;function tt(dt){return et=dt,function(){et===dt&&(et=null)}}function rt(dt,pt,ht,mt){if(et!=null){var xt=typeof et=="function"?et(dt,pt):et;typeof xt=="string"?typeof ht=="function"?ht(xt,mt):mt(!0):mt(xt!==!1)}else mt(!0)}var nt=[];function lt(dt){var pt=!0;function ht(){pt&&dt.apply(void 0,arguments)}return nt.push(ht),function(){pt=!1,nt=nt.filter(function(mt){return mt!==ht})}}function ut(){for(var dt=arguments.length,pt=new Array(dt),ht=0;ht<dt;ht++)pt[ht]=arguments[ht];nt.forEach(function(mt){return mt.apply(void 0,pt)})}return{setPrompt:tt,confirmTransitionTo:rt,appendListener:lt,notifyListeners:ut}}var canUseDOM$2=!!(typeof window<"u"&&window.document&&window.document.createElement);function getConfirmation(et,tt){tt(window.confirm(et))}function supportsHistory(){var et=window.navigator.userAgent;return(et.indexOf("Android 2.")!==-1||et.indexOf("Android 4.0")!==-1)&&et.indexOf("Mobile Safari")!==-1&&et.indexOf("Chrome")===-1&&et.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function supportsPopStateOnHashChange(){return window.navigator.userAgent.indexOf("Trident")===-1}function supportsGoWithoutReloadUsingHash(){return window.navigator.userAgent.indexOf("Firefox")===-1}function isExtraneousPopstateEvent(et){return et.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var PopStateEvent="popstate",HashChangeEvent="hashchange";function getHistoryState(){try{return window.history.state||{}}catch{return{}}}function createBrowserHistory(et){et===void 0&&(et={}),canUseDOM$2||invariant$3();var tt=window.history,rt=supportsHistory(),nt=!supportsPopStateOnHashChange(),lt=et,ut=lt.forceRefresh,dt=ut===void 0?!1:ut,pt=lt.getUserConfirmation,ht=pt===void 0?getConfirmation:pt,mt=lt.keyLength,xt=mt===void 0?6:mt,Mt=et.basename?stripTrailingSlash(addLeadingSlash$1(et.basename)):"";function vt(Ht){var Gt=Ht||{},Zt=Gt.key,Xt=Gt.state,er=window.location,nr=er.pathname,or=er.search,rr=er.hash,cr=nr+or+rr;return Mt&&(cr=stripBasename$1(cr,Mt)),createLocation(cr,Xt,Zt)}function Ot(){return Math.random().toString(36).substr(2,xt)}var At=createTransitionManager();function Rt(Ht){_extends$j(Vt,Ht),Vt.length=tt.length,At.notifyListeners(Vt.location,Vt.action)}function zt(Ht){isExtraneousPopstateEvent(Ht)||It(vt(Ht.state))}function Tt(){It(vt(getHistoryState()))}var Ct=!1;function It(Ht){if(Ct)Ct=!1,Rt();else{var Gt="POP";At.confirmTransitionTo(Ht,Gt,ht,function(Zt){Zt?Rt({action:Gt,location:Ht}):Dt(Ht)})}}function Dt(Ht){var Gt=Vt.location,Zt=qt.indexOf(Gt.key);Zt===-1&&(Zt=0);var Xt=qt.indexOf(Ht.key);Xt===-1&&(Xt=0);var er=Zt-Xt;er&&(Ct=!0,Jt(er))}var kt=vt(getHistoryState()),qt=[kt.key];function Nt(Ht){return Mt+createPath(Ht)}function Yt(Ht,Gt){var Zt="PUSH",Xt=createLocation(Ht,Gt,Ot(),Vt.location);At.confirmTransitionTo(Xt,Zt,ht,function(er){if(er){var nr=Nt(Xt),or=Xt.key,rr=Xt.state;if(rt)if(tt.pushState({key:or,state:rr},null,nr),dt)window.location.href=nr;else{var cr=qt.indexOf(Vt.location.key),ir=qt.slice(0,cr+1);ir.push(Xt.key),qt=ir,Rt({action:Zt,location:Xt})}else window.location.href=nr}})}function Kt(Ht,Gt){var Zt="REPLACE",Xt=createLocation(Ht,Gt,Ot(),Vt.location);At.confirmTransitionTo(Xt,Zt,ht,function(er){if(er){var nr=Nt(Xt),or=Xt.key,rr=Xt.state;if(rt)if(tt.replaceState({key:or,state:rr},null,nr),dt)window.location.replace(nr);else{var cr=qt.indexOf(Vt.location.key);cr!==-1&&(qt[cr]=Xt.key),Rt({action:Zt,location:Xt})}else window.location.replace(nr)}})}function Jt(Ht){tt.go(Ht)}function Qt(){Jt(-1)}function Bt(){Jt(1)}var Ft=0;function $t(Ht){Ft+=Ht,Ft===1&&Ht===1?(window.addEventListener(PopStateEvent,zt),nt&&window.addEventListener(HashChangeEvent,Tt)):Ft===0&&(window.removeEventListener(PopStateEvent,zt),nt&&window.removeEventListener(HashChangeEvent,Tt))}var jt=!1;function Wt(Ht){Ht===void 0&&(Ht=!1);var Gt=At.setPrompt(Ht);return jt||($t(1),jt=!0),function(){return jt&&(jt=!1,$t(-1)),Gt()}}function Ut(Ht){var Gt=At.appendListener(Ht);return $t(1),function(){$t(-1),Gt()}}var Vt={length:tt.length,action:"POP",location:kt,createHref:Nt,push:Yt,replace:Kt,go:Jt,goBack:Qt,goForward:Bt,block:Wt,listen:Ut};return Vt}var HashChangeEvent$1="hashchange",HashPathCoders={hashbang:{encodePath:function(tt){return tt.charAt(0)==="!"?tt:"!/"+stripLeadingSlash(tt)},decodePath:function(tt){return tt.charAt(0)==="!"?tt.substr(1):tt}},noslash:{encodePath:stripLeadingSlash,decodePath:addLeadingSlash$1},slash:{encodePath:addLeadingSlash$1,decodePath:addLeadingSlash$1}};function stripHash(et){var tt=et.indexOf("#");return tt===-1?et:et.slice(0,tt)}function getHashPath(){var et=window.location.href,tt=et.indexOf("#");return tt===-1?"":et.substring(tt+1)}function pushHashPath(et){window.location.hash=et}function replaceHashPath(et){window.location.replace(stripHash(window.location.href)+"#"+et)}function createHashHistory(et){et===void 0&&(et={}),canUseDOM$2||invariant$3();var tt=window.history;supportsGoWithoutReloadUsingHash();var rt=et,nt=rt.getUserConfirmation,lt=nt===void 0?getConfirmation:nt,ut=rt.hashType,dt=ut===void 0?"slash":ut,pt=et.basename?stripTrailingSlash(addLeadingSlash$1(et.basename)):"",ht=HashPathCoders[dt],mt=ht.encodePath,xt=ht.decodePath;function Mt(){var Gt=xt(getHashPath());return pt&&(Gt=stripBasename$1(Gt,pt)),createLocation(Gt)}var vt=createTransitionManager();function Ot(Gt){_extends$j(Ht,Gt),Ht.length=tt.length,vt.notifyListeners(Ht.location,Ht.action)}var At=!1,Rt=null;function zt(Gt,Zt){return Gt.pathname===Zt.pathname&&Gt.search===Zt.search&&Gt.hash===Zt.hash}function Tt(){var Gt=getHashPath(),Zt=mt(Gt);if(Gt!==Zt)replaceHashPath(Zt);else{var Xt=Mt(),er=Ht.location;if(!At&&zt(er,Xt)||Rt===createPath(Xt))return;Rt=null,Ct(Xt)}}function Ct(Gt){if(At)At=!1,Ot();else{var Zt="POP";vt.confirmTransitionTo(Gt,Zt,lt,function(Xt){Xt?Ot({action:Zt,location:Gt}):It(Gt)})}}function It(Gt){var Zt=Ht.location,Xt=Nt.lastIndexOf(createPath(Zt));Xt===-1&&(Xt=0);var er=Nt.lastIndexOf(createPath(Gt));er===-1&&(er=0);var nr=Xt-er;nr&&(At=!0,Qt(nr))}var Dt=getHashPath(),kt=mt(Dt);Dt!==kt&&replaceHashPath(kt);var qt=Mt(),Nt=[createPath(qt)];function Yt(Gt){var Zt=document.querySelector("base"),Xt="";return Zt&&Zt.getAttribute("href")&&(Xt=stripHash(window.location.href)),Xt+"#"+mt(pt+createPath(Gt))}function Kt(Gt,Zt){var Xt="PUSH",er=createLocation(Gt,void 0,void 0,Ht.location);vt.confirmTransitionTo(er,Xt,lt,function(nr){if(nr){var or=createPath(er),rr=mt(pt+or),cr=getHashPath()!==rr;if(cr){Rt=or,pushHashPath(rr);var ir=Nt.lastIndexOf(createPath(Ht.location)),dr=Nt.slice(0,ir+1);dr.push(or),Nt=dr,Ot({action:Xt,location:er})}else Ot()}})}function Jt(Gt,Zt){var Xt="REPLACE",er=createLocation(Gt,void 0,void 0,Ht.location);vt.confirmTransitionTo(er,Xt,lt,function(nr){if(nr){var or=createPath(er),rr=mt(pt+or),cr=getHashPath()!==rr;cr&&(Rt=or,replaceHashPath(rr));var ir=Nt.indexOf(createPath(Ht.location));ir!==-1&&(Nt[ir]=or),Ot({action:Xt,location:er})}})}function Qt(Gt){tt.go(Gt)}function Bt(){Qt(-1)}function Ft(){Qt(1)}var $t=0;function jt(Gt){$t+=Gt,$t===1&&Gt===1?window.addEventListener(HashChangeEvent$1,Tt):$t===0&&window.removeEventListener(HashChangeEvent$1,Tt)}var Wt=!1;function Ut(Gt){Gt===void 0&&(Gt=!1);var Zt=vt.setPrompt(Gt);return Wt||(jt(1),Wt=!0),function(){return Wt&&(Wt=!1,jt(-1)),Zt()}}function Vt(Gt){var Zt=vt.appendListener(Gt);return jt(1),function(){jt(-1),Zt()}}var Ht={length:tt.length,action:"POP",location:qt,createHref:Yt,push:Kt,replace:Jt,go:Qt,goBack:Bt,goForward:Ft,block:Ut,listen:Vt};return Ht}function clamp$2(et,tt,rt){return Math.min(Math.max(et,tt),rt)}function createMemoryHistory(et){et===void 0&&(et={});var tt=et,rt=tt.getUserConfirmation,nt=tt.initialEntries,lt=nt===void 0?["/"]:nt,ut=tt.initialIndex,dt=ut===void 0?0:ut,pt=tt.keyLength,ht=pt===void 0?6:pt,mt=createTransitionManager();function xt(Yt){_extends$j(Nt,Yt),Nt.length=Nt.entries.length,mt.notifyListeners(Nt.location,Nt.action)}function Mt(){return Math.random().toString(36).substr(2,ht)}var vt=clamp$2(dt,0,lt.length-1),Ot=lt.map(function(Yt){return typeof Yt=="string"?createLocation(Yt,void 0,Mt()):createLocation(Yt,void 0,Yt.key||Mt())}),At=createPath;function Rt(Yt,Kt){var Jt="PUSH",Qt=createLocation(Yt,Kt,Mt(),Nt.location);mt.confirmTransitionTo(Qt,Jt,rt,function(Bt){if(Bt){var Ft=Nt.index,$t=Ft+1,jt=Nt.entries.slice(0);jt.length>$t?jt.splice($t,jt.length-$t,Qt):jt.push(Qt),xt({action:Jt,location:Qt,index:$t,entries:jt})}})}function zt(Yt,Kt){var Jt="REPLACE",Qt=createLocation(Yt,Kt,Mt(),Nt.location);mt.confirmTransitionTo(Qt,Jt,rt,function(Bt){Bt&&(Nt.entries[Nt.index]=Qt,xt({action:Jt,location:Qt}))})}function Tt(Yt){var Kt=clamp$2(Nt.index+Yt,0,Nt.entries.length-1),Jt="POP",Qt=Nt.entries[Kt];mt.confirmTransitionTo(Qt,Jt,rt,function(Bt){Bt?xt({action:Jt,location:Qt,index:Kt}):xt()})}function Ct(){Tt(-1)}function It(){Tt(1)}function Dt(Yt){var Kt=Nt.index+Yt;return Kt>=0&&Kt<Nt.entries.length}function kt(Yt){return Yt===void 0&&(Yt=!1),mt.setPrompt(Yt)}function qt(Yt){return mt.appendListener(Yt)}var Nt={length:Ot.length,action:"POP",location:Ot[vt],index:vt,entries:Ot,createHref:At,push:Rt,replace:zt,go:Tt,goBack:Ct,goForward:It,canGo:Dt,block:kt,listen:qt};return Nt}var pathToRegexp$2={exports:{}},isarray$2=Array.isArray||function(et){return Object.prototype.toString.call(et)=="[object Array]"},isarray$1=isarray$2;pathToRegexp$2.exports=pathToRegexp;pathToRegexp$2.exports.parse=parse$b;pathToRegexp$2.exports.compile=compile$1;pathToRegexp$2.exports.tokensToFunction=tokensToFunction;pathToRegexp$2.exports.tokensToRegExp=tokensToRegExp;var PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse$b(et,tt){for(var rt=[],nt=0,lt=0,ut="",dt=tt&&tt.delimiter||"/",pt;(pt=PATH_REGEXP.exec(et))!=null;){var ht=pt[0],mt=pt[1],xt=pt.index;if(ut+=et.slice(lt,xt),lt=xt+ht.length,mt){ut+=mt[1];continue}var Mt=et[lt],vt=pt[2],Ot=pt[3],At=pt[4],Rt=pt[5],zt=pt[6],Tt=pt[7];ut&&(rt.push(ut),ut="");var Ct=vt!=null&&Mt!=null&&Mt!==vt,It=zt==="+"||zt==="*",Dt=zt==="?"||zt==="*",kt=vt||dt,qt=At||Rt,Nt=vt||(typeof rt[rt.length-1]=="string"?rt[rt.length-1]:"");rt.push({name:Ot||nt++,prefix:vt||"",delimiter:kt,optional:Dt,repeat:It,partial:Ct,asterisk:!!Tt,pattern:qt?escapeGroup(qt):Tt?".*":restrictBacktrack(kt,Nt)})}return lt<et.length&&(ut+=et.substr(lt)),ut&&rt.push(ut),rt}function restrictBacktrack(et,tt){return!tt||tt.indexOf(et)>-1?"[^"+escapeString(et)+"]+?":escapeString(tt)+"|(?:(?!"+escapeString(tt)+")[^"+escapeString(et)+"])+?"}function compile$1(et,tt){return tokensToFunction(parse$b(et,tt),tt)}function encodeURIComponentPretty(et){return encodeURI(et).replace(/[\/?#]/g,function(tt){return"%"+tt.charCodeAt(0).toString(16).toUpperCase()})}function encodeAsterisk(et){return encodeURI(et).replace(/[?#]/g,function(tt){return"%"+tt.charCodeAt(0).toString(16).toUpperCase()})}function tokensToFunction(et,tt){for(var rt=new Array(et.length),nt=0;nt<et.length;nt++)typeof et[nt]=="object"&&(rt[nt]=new RegExp("^(?:"+et[nt].pattern+")$",flags(tt)));return function(lt,ut){for(var dt="",pt=lt||{},ht=ut||{},mt=ht.pretty?encodeURIComponentPretty:encodeURIComponent,xt=0;xt<et.length;xt++){var Mt=et[xt];if(typeof Mt=="string"){dt+=Mt;continue}var vt=pt[Mt.name],Ot;if(vt==null)if(Mt.optional){Mt.partial&&(dt+=Mt.prefix);continue}else throw new TypeError('Expected "'+Mt.name+'" to be defined');if(isarray$1(vt)){if(!Mt.repeat)throw new TypeError('Expected "'+Mt.name+'" to not repeat, but received `'+JSON.stringify(vt)+"`");if(vt.length===0){if(Mt.optional)continue;throw new TypeError('Expected "'+Mt.name+'" to not be empty')}for(var At=0;At<vt.length;At++){if(Ot=mt(vt[At]),!rt[xt].test(Ot))throw new TypeError('Expected all "'+Mt.name+'" to match "'+Mt.pattern+'", but received `'+JSON.stringify(Ot)+"`");dt+=(At===0?Mt.prefix:Mt.delimiter)+Ot}continue}if(Ot=Mt.asterisk?encodeAsterisk(vt):mt(vt),!rt[xt].test(Ot))throw new TypeError('Expected "'+Mt.name+'" to match "'+Mt.pattern+'", but received "'+Ot+'"');dt+=Mt.prefix+Ot}return dt}}function escapeString(et){return et.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function escapeGroup(et){return et.replace(/([=!:$\/()])/g,"\\$1")}function attachKeys(et,tt){return et.keys=tt,et}function flags(et){return et&&et.sensitive?"":"i"}function regexpToRegexp(et,tt){var rt=et.source.match(/\((?!\?)/g);if(rt)for(var nt=0;nt<rt.length;nt++)tt.push({name:nt,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return attachKeys(et,tt)}function arrayToRegexp(et,tt,rt){for(var nt=[],lt=0;lt<et.length;lt++)nt.push(pathToRegexp(et[lt],tt,rt).source);var ut=new RegExp("(?:"+nt.join("|")+")",flags(rt));return attachKeys(ut,tt)}function stringToRegexp(et,tt,rt){return tokensToRegExp(parse$b(et,rt),tt,rt)}function tokensToRegExp(et,tt,rt){isarray$1(tt)||(rt=tt||rt,tt=[]),rt=rt||{};for(var nt=rt.strict,lt=rt.end!==!1,ut="",dt=0;dt<et.length;dt++){var pt=et[dt];if(typeof pt=="string")ut+=escapeString(pt);else{var ht=escapeString(pt.prefix),mt="(?:"+pt.pattern+")";tt.push(pt),pt.repeat&&(mt+="(?:"+ht+mt+")*"),pt.optional?pt.partial?mt=ht+"("+mt+")?":mt="(?:"+ht+"("+mt+"))?":mt=ht+"("+mt+")",ut+=mt}}var xt=escapeString(rt.delimiter||"/"),Mt=ut.slice(-xt.length)===xt;return nt||(ut=(Mt?ut.slice(0,-xt.length):ut)+"(?:"+xt+"(?=$))?"),lt?ut+="$":ut+=nt&&Mt?"":"(?="+xt+"|$)",attachKeys(new RegExp("^"+ut,flags(rt)),tt)}function pathToRegexp(et,tt,rt){return isarray$1(tt)||(rt=tt||rt,tt=[]),rt=rt||{},et instanceof RegExp?regexpToRegexp(et,tt):isarray$1(et)?arrayToRegexp(et,tt,rt):stringToRegexp(et,tt,rt)}var pathToRegexpExports=pathToRegexp$2.exports;const pathToRegexp$1=getDefaultExportFromCjs$1(pathToRegexpExports);var reactIs_production_min$3={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b$5=typeof Symbol=="function"&&Symbol.for,c$5=b$5?Symbol.for("react.element"):60103,d$6=b$5?Symbol.for("react.portal"):60106,e$3=b$5?Symbol.for("react.fragment"):60107,f$6=b$5?Symbol.for("react.strict_mode"):60108,g$8=b$5?Symbol.for("react.profiler"):60114,h$6=b$5?Symbol.for("react.provider"):60109,k$5=b$5?Symbol.for("react.context"):60110,l$4=b$5?Symbol.for("react.async_mode"):60111,m$6=b$5?Symbol.for("react.concurrent_mode"):60111,n$5=b$5?Symbol.for("react.forward_ref"):60112,p$6=b$5?Symbol.for("react.suspense"):60113,q$6=b$5?Symbol.for("react.suspense_list"):60120,r$6=b$5?Symbol.for("react.memo"):60115,t$4=b$5?Symbol.for("react.lazy"):60116,v$7=b$5?Symbol.for("react.block"):60121,w$5=b$5?Symbol.for("react.fundamental"):60117,x$4=b$5?Symbol.for("react.responder"):60118,y$5=b$5?Symbol.for("react.scope"):60119;function z$4(et){if(typeof et=="object"&&et!==null){var tt=et.$$typeof;switch(tt){case c$5:switch(et=et.type,et){case l$4:case m$6:case e$3:case g$8:case f$6:case p$6:return et;default:switch(et=et&&et.$$typeof,et){case k$5:case n$5:case t$4:case r$6:case h$6:return et;default:return tt}}case d$6:return tt}}}function A$4(et){return z$4(et)===m$6}reactIs_production_min$3.AsyncMode=l$4;reactIs_production_min$3.ConcurrentMode=m$6;reactIs_production_min$3.ContextConsumer=k$5;reactIs_production_min$3.ContextProvider=h$6;reactIs_production_min$3.Element=c$5;reactIs_production_min$3.ForwardRef=n$5;reactIs_production_min$3.Fragment=e$3;reactIs_production_min$3.Lazy=t$4;reactIs_production_min$3.Memo=r$6;reactIs_production_min$3.Portal=d$6;reactIs_production_min$3.Profiler=g$8;reactIs_production_min$3.StrictMode=f$6;reactIs_production_min$3.Suspense=p$6;reactIs_production_min$3.isAsyncMode=function(et){return A$4(et)||z$4(et)===l$4};reactIs_production_min$3.isConcurrentMode=A$4;reactIs_production_min$3.isContextConsumer=function(et){return z$4(et)===k$5};reactIs_production_min$3.isContextProvider=function(et){return z$4(et)===h$6};reactIs_production_min$3.isElement=function(et){return typeof et=="object"&&et!==null&&et.$$typeof===c$5};reactIs_production_min$3.isForwardRef=function(et){return z$4(et)===n$5};reactIs_production_min$3.isFragment=function(et){return z$4(et)===e$3};reactIs_production_min$3.isLazy=function(et){return z$4(et)===t$4};reactIs_production_min$3.isMemo=function(et){return z$4(et)===r$6};reactIs_production_min$3.isPortal=function(et){return z$4(et)===d$6};reactIs_production_min$3.isProfiler=function(et){return z$4(et)===g$8};reactIs_production_min$3.isStrictMode=function(et){return z$4(et)===f$6};reactIs_production_min$3.isSuspense=function(et){return z$4(et)===p$6};reactIs_production_min$3.isValidElementType=function(et){return typeof et=="string"||typeof et=="function"||et===e$3||et===m$6||et===g$8||et===f$6||et===p$6||et===q$6||typeof et=="object"&&et!==null&&(et.$$typeof===t$4||et.$$typeof===r$6||et.$$typeof===h$6||et.$$typeof===k$5||et.$$typeof===n$5||et.$$typeof===w$5||et.$$typeof===x$4||et.$$typeof===y$5||et.$$typeof===v$7)};reactIs_production_min$3.typeOf=z$4;function _objectWithoutPropertiesLoose$d(et,tt){if(et==null)return{};var rt={};for(var nt in et)if({}.hasOwnProperty.call(et,nt)){if(tt.includes(nt))continue;rt[nt]=et[nt]}return rt}var reactIs$3={exports:{}},reactIs_production_min$2={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b$4=typeof Symbol=="function"&&Symbol.for,c$4=b$4?Symbol.for("react.element"):60103,d$5=b$4?Symbol.for("react.portal"):60106,e$2=b$4?Symbol.for("react.fragment"):60107,f$5=b$4?Symbol.for("react.strict_mode"):60108,g$7=b$4?Symbol.for("react.profiler"):60114,h$5=b$4?Symbol.for("react.provider"):60109,k$4=b$4?Symbol.for("react.context"):60110,l$3=b$4?Symbol.for("react.async_mode"):60111,m$5=b$4?Symbol.for("react.concurrent_mode"):60111,n$4=b$4?Symbol.for("react.forward_ref"):60112,p$5=b$4?Symbol.for("react.suspense"):60113,q$5=b$4?Symbol.for("react.suspense_list"):60120,r$5=b$4?Symbol.for("react.memo"):60115,t$3=b$4?Symbol.for("react.lazy"):60116,v$6=b$4?Symbol.for("react.block"):60121,w$4=b$4?Symbol.for("react.fundamental"):60117,x$3=b$4?Symbol.for("react.responder"):60118,y$4=b$4?Symbol.for("react.scope"):60119;function z$3(et){if(typeof et=="object"&&et!==null){var tt=et.$$typeof;switch(tt){case c$4:switch(et=et.type,et){case l$3:case m$5:case e$2:case g$7:case f$5:case p$5:return et;default:switch(et=et&&et.$$typeof,et){case k$4:case n$4:case t$3:case r$5:case h$5:return et;default:return tt}}case d$5:return tt}}}function A$3(et){return z$3(et)===m$5}reactIs_production_min$2.AsyncMode=l$3;reactIs_production_min$2.ConcurrentMode=m$5;reactIs_production_min$2.ContextConsumer=k$4;reactIs_production_min$2.ContextProvider=h$5;reactIs_production_min$2.Element=c$4;reactIs_production_min$2.ForwardRef=n$4;reactIs_production_min$2.Fragment=e$2;reactIs_production_min$2.Lazy=t$3;reactIs_production_min$2.Memo=r$5;reactIs_production_min$2.Portal=d$5;reactIs_production_min$2.Profiler=g$7;reactIs_production_min$2.StrictMode=f$5;reactIs_production_min$2.Suspense=p$5;reactIs_production_min$2.isAsyncMode=function(et){return A$3(et)||z$3(et)===l$3};reactIs_production_min$2.isConcurrentMode=A$3;reactIs_production_min$2.isContextConsumer=function(et){return z$3(et)===k$4};reactIs_production_min$2.isContextProvider=function(et){return z$3(et)===h$5};reactIs_production_min$2.isElement=function(et){return typeof et=="object"&&et!==null&&et.$$typeof===c$4};reactIs_production_min$2.isForwardRef=function(et){return z$3(et)===n$4};reactIs_production_min$2.isFragment=function(et){return z$3(et)===e$2};reactIs_production_min$2.isLazy=function(et){return z$3(et)===t$3};reactIs_production_min$2.isMemo=function(et){return z$3(et)===r$5};reactIs_production_min$2.isPortal=function(et){return z$3(et)===d$5};reactIs_production_min$2.isProfiler=function(et){return z$3(et)===g$7};reactIs_production_min$2.isStrictMode=function(et){return z$3(et)===f$5};reactIs_production_min$2.isSuspense=function(et){return z$3(et)===p$5};reactIs_production_min$2.isValidElementType=function(et){return typeof et=="string"||typeof et=="function"||et===e$2||et===m$5||et===g$7||et===f$5||et===p$5||et===q$5||typeof et=="object"&&et!==null&&(et.$$typeof===t$3||et.$$typeof===r$5||et.$$typeof===h$5||et.$$typeof===k$4||et.$$typeof===n$4||et.$$typeof===w$4||et.$$typeof===x$3||et.$$typeof===y$4||et.$$typeof===v$6)};reactIs_production_min$2.typeOf=z$3;reactIs$3.exports=reactIs_production_min$2;var reactIsExports$2=reactIs$3.exports,reactIs$2=reactIsExports$2,REACT_STATICS$1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS$1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS$1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS$1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS$1={};TYPE_STATICS$1[reactIs$2.ForwardRef]=FORWARD_REF_STATICS$1;TYPE_STATICS$1[reactIs$2.Memo]=MEMO_STATICS$1;function getStatics$1(et){return reactIs$2.isMemo(et)?MEMO_STATICS$1:TYPE_STATICS$1[et.$$typeof]||REACT_STATICS$1}var defineProperty$4=Object.defineProperty,getOwnPropertyNames$1=Object.getOwnPropertyNames,getOwnPropertySymbols$1=Object.getOwnPropertySymbols,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,getPrototypeOf$3=Object.getPrototypeOf,objectPrototype$1=Object.prototype;function hoistNonReactStatics$1(et,tt,rt){if(typeof tt!="string"){if(objectPrototype$1){var nt=getPrototypeOf$3(tt);nt&&nt!==objectPrototype$1&&hoistNonReactStatics$1(et,nt,rt)}var lt=getOwnPropertyNames$1(tt);getOwnPropertySymbols$1&&(lt=lt.concat(getOwnPropertySymbols$1(tt)));for(var ut=getStatics$1(et),dt=getStatics$1(tt),pt=0;pt<lt.length;++pt){var ht=lt[pt];if(!KNOWN_STATICS$1[ht]&&!(rt&&rt[ht])&&!(dt&&dt[ht])&&!(ut&&ut[ht])){var mt=getOwnPropertyDescriptor$1(tt,ht);try{defineProperty$4(et,ht,mt)}catch{}}}}return et}var hoistNonReactStatics_cjs=hoistNonReactStatics$1;const hoistStatics=getDefaultExportFromCjs$1(hoistNonReactStatics_cjs);var MAX_SIGNED_31_BIT_INT=1073741823,commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$2<"u"?global$2:{};function getUniqueId(){var et="__global_unique_id__";return commonjsGlobal[et]=(commonjsGlobal[et]||0)+1}function objectIs$1(et,tt){return et===tt?et!==0||1/et===1/tt:et!==et&&tt!==tt}function createEventEmitter(et){var tt=[];return{on:function(nt){tt.push(nt)},off:function(nt){tt=tt.filter(function(lt){return lt!==nt})},get:function(){return et},set:function(nt,lt){et=nt,tt.forEach(function(ut){return ut(et,lt)})}}}function onlyChild(et){return Array.isArray(et)?et[0]:et}function createReactContext(et,tt){var rt,nt,lt="__create-react-context-"+getUniqueId()+"__",ut=function(pt){_inheritsLoose$3(ht,pt);function ht(){for(var xt,Mt=arguments.length,vt=new Array(Mt),Ot=0;Ot<Mt;Ot++)vt[Ot]=arguments[Ot];return xt=pt.call.apply(pt,[this].concat(vt))||this,xt.emitter=createEventEmitter(xt.props.value),xt}var mt=ht.prototype;return mt.getChildContext=function(){var Mt;return Mt={},Mt[lt]=this.emitter,Mt},mt.componentWillReceiveProps=function(Mt){if(this.props.value!==Mt.value){var vt=this.props.value,Ot=Mt.value,At;objectIs$1(vt,Ot)?At=0:(At=typeof tt=="function"?tt(vt,Ot):MAX_SIGNED_31_BIT_INT,At|=0,At!==0&&this.emitter.set(Mt.value,At))}},mt.render=function(){return this.props.children},ht}(React$4.Component);ut.childContextTypes=(rt={},rt[lt]=PropTypes.object.isRequired,rt);var dt=function(pt){_inheritsLoose$3(ht,pt);function ht(){for(var xt,Mt=arguments.length,vt=new Array(Mt),Ot=0;Ot<Mt;Ot++)vt[Ot]=arguments[Ot];return xt=pt.call.apply(pt,[this].concat(vt))||this,xt.observedBits=void 0,xt.state={value:xt.getValue()},xt.onUpdate=function(At,Rt){var zt=xt.observedBits|0;zt&Rt&&xt.setState({value:xt.getValue()})},xt}var mt=ht.prototype;return mt.componentWillReceiveProps=function(Mt){var vt=Mt.observedBits;this.observedBits=vt??MAX_SIGNED_31_BIT_INT},mt.componentDidMount=function(){this.context[lt]&&this.context[lt].on(this.onUpdate);var Mt=this.props.observedBits;this.observedBits=Mt??MAX_SIGNED_31_BIT_INT},mt.componentWillUnmount=function(){this.context[lt]&&this.context[lt].off(this.onUpdate)},mt.getValue=function(){return this.context[lt]?this.context[lt].get():et},mt.render=function(){return onlyChild(this.props.children)(this.state.value)},ht}(React$4.Component);return dt.contextTypes=(nt={},nt[lt]=PropTypes.object,nt),{Provider:ut,Consumer:dt}}var createContext=React$4.createContext||createReactContext,createNamedContext=function(tt){var rt=createContext();return rt.displayName=tt,rt},historyContext=createNamedContext("Router-History"),context=createNamedContext("Router"),Router=function(et){_inheritsLoose$3(tt,et),tt.computeRootMatch=function(lt){return{path:"/",url:"/",params:{},isExact:lt==="/"}};function tt(nt){var lt;return lt=et.call(this,nt)||this,lt.state={location:nt.history.location},lt._isMounted=!1,lt._pendingLocation=null,nt.staticContext||(lt.unlisten=nt.history.listen(function(ut){lt._pendingLocation=ut})),lt}var rt=tt.prototype;return rt.componentDidMount=function(){var lt=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(ut){lt._isMounted&&lt.setState({location:ut})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},rt.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},rt.render=function(){return React$4.createElement(context.Provider,{value:{history:this.props.history,location:this.state.location,match:tt.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},React$4.createElement(historyContext.Provider,{children:this.props.children||null,value:this.props.history}))},tt}(React$4.Component);React$4.Component;var Lifecycle=function(et){_inheritsLoose$3(tt,et);function tt(){return et.apply(this,arguments)||this}var rt=tt.prototype;return rt.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},rt.componentDidUpdate=function(lt){this.props.onUpdate&&this.props.onUpdate.call(this,this,lt)},rt.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},rt.render=function(){return null},tt}(React$4.Component);function Prompt(et){var tt=et.message,rt=et.when,nt=rt===void 0?!0:rt;return React$4.createElement(context.Consumer,null,function(lt){if(lt||invariant$3(),!nt||lt.staticContext)return null;var ut=lt.history.block;return React$4.createElement(Lifecycle,{onMount:function(pt){pt.release=ut(tt)},onUpdate:function(pt,ht){ht.message!==tt&&(pt.release(),pt.release=ut(tt))},onUnmount:function(pt){pt.release()},message:tt})})}var cache$4={},cacheLimit=1e4,cacheCount=0;function compilePath(et){if(cache$4[et])return cache$4[et];var tt=pathToRegexp$1.compile(et);return cacheCount<cacheLimit&&(cache$4[et]=tt,cacheCount++),tt}function generatePath(et,tt){return et===void 0&&(et="/"),tt===void 0&&(tt={}),et==="/"?et:compilePath(et)(tt,{pretty:!0})}function Redirect(et){var tt=et.computedMatch,rt=et.to,nt=et.push,lt=nt===void 0?!1:nt;return React$4.createElement(context.Consumer,null,function(ut){ut||invariant$3();var dt=ut.history,pt=ut.staticContext,ht=lt?dt.push:dt.replace,mt=createLocation(tt?typeof rt=="string"?generatePath(rt,tt.params):_extends$j({},rt,{pathname:generatePath(rt.pathname,tt.params)}):rt);return pt?(ht(mt),null):React$4.createElement(Lifecycle,{onMount:function(){ht(mt)},onUpdate:function(Mt,vt){var Ot=createLocation(vt.to);locationsAreEqual(Ot,_extends$j({},mt,{key:Ot.key}))||ht(mt)},to:rt})})}var cache$1$1={},cacheLimit$1=1e4,cacheCount$1=0;function compilePath$1(et,tt){var rt=""+tt.end+tt.strict+tt.sensitive,nt=cache$1$1[rt]||(cache$1$1[rt]={});if(nt[et])return nt[et];var lt=[],ut=pathToRegexp$1(et,lt,tt),dt={regexp:ut,keys:lt};return cacheCount$1<cacheLimit$1&&(nt[et]=dt,cacheCount$1++),dt}function matchPath(et,tt){tt===void 0&&(tt={}),(typeof tt=="string"||Array.isArray(tt))&&(tt={path:tt});var rt=tt,nt=rt.path,lt=rt.exact,ut=lt===void 0?!1:lt,dt=rt.strict,pt=dt===void 0?!1:dt,ht=rt.sensitive,mt=ht===void 0?!1:ht,xt=[].concat(nt);return xt.reduce(function(Mt,vt){if(!vt&&vt!=="")return null;if(Mt)return Mt;var Ot=compilePath$1(vt,{end:ut,strict:pt,sensitive:mt}),At=Ot.regexp,Rt=Ot.keys,zt=At.exec(et);if(!zt)return null;var Tt=zt[0],Ct=zt.slice(1),It=et===Tt;return ut&&!It?null:{path:vt,url:vt==="/"&&Tt===""?"/":Tt,isExact:It,params:Rt.reduce(function(Dt,kt,qt){return Dt[kt.name]=Ct[qt],Dt},{})}},null)}function isEmptyChildren$1(et){return React$4.Children.count(et)===0}var Route=function(et){_inheritsLoose$3(tt,et);function tt(){return et.apply(this,arguments)||this}var rt=tt.prototype;return rt.render=function(){var lt=this;return React$4.createElement(context.Consumer,null,function(ut){ut||invariant$3();var dt=lt.props.location||ut.location,pt=lt.props.computedMatch?lt.props.computedMatch:lt.props.path?matchPath(dt.pathname,lt.props):ut.match,ht=_extends$j({},ut,{location:dt,match:pt}),mt=lt.props,xt=mt.children,Mt=mt.component,vt=mt.render;return Array.isArray(xt)&&isEmptyChildren$1(xt)&&(xt=null),React$4.createElement(context.Provider,{value:ht},ht.match?xt?typeof xt=="function"?xt(ht):xt:Mt?React$4.createElement(Mt,ht):vt?vt(ht):null:typeof xt=="function"?xt(ht):null)})},tt}(React$4.Component);function addLeadingSlash(et){return et.charAt(0)==="/"?et:"/"+et}function addBasename(et,tt){return et?_extends$j({},tt,{pathname:addLeadingSlash(et)+tt.pathname}):tt}function stripBasename(et,tt){if(!et)return tt;var rt=addLeadingSlash(et);return tt.pathname.indexOf(rt)!==0?tt:_extends$j({},tt,{pathname:tt.pathname.substr(rt.length)})}function createURL(et){return typeof et=="string"?et:createPath(et)}function staticHandler(et){return function(){invariant$3()}}function noop$c(){}React$4.Component;var Switch$2=function(et){_inheritsLoose$3(tt,et);function tt(){return et.apply(this,arguments)||this}var rt=tt.prototype;return rt.render=function(){var lt=this;return React$4.createElement(context.Consumer,null,function(ut){ut||invariant$3();var dt=lt.props.location||ut.location,pt,ht;return React$4.Children.forEach(lt.props.children,function(mt){if(ht==null&&React$4.isValidElement(mt)){pt=mt;var xt=mt.props.path||mt.props.from;ht=xt?matchPath(dt.pathname,_extends$j({},mt.props,{path:xt})):ut.match}}),ht?React$4.cloneElement(pt,{location:dt,computedMatch:ht}):null})},tt}(React$4.Component);function withRouter(et){var tt="withRouter("+(et.displayName||et.name)+")",rt=function(lt){var ut=lt.wrappedComponentRef,dt=_objectWithoutPropertiesLoose$d(lt,["wrappedComponentRef"]);return React$4.createElement(context.Consumer,null,function(pt){return pt||invariant$3(),React$4.createElement(et,_extends$j({},dt,pt,{ref:ut}))})};return rt.displayName=tt,rt.WrappedComponent=et,hoistStatics(rt,et)}var useContext=React$4.useContext;function useHistory(){return useContext(historyContext)}function useLocation(){return useContext(context).location}function useParams(){var et=useContext(context).match;return et?et.params:{}}function useRouteMatch(et){useLocation();var tt=useContext(context).match;return tt}var BrowserRouter=function(et){_inheritsLoose$3(tt,et);function tt(){for(var nt,lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=et.call.apply(et,[this].concat(ut))||this,nt.history=createBrowserHistory(nt.props),nt}var rt=tt.prototype;return rt.render=function(){return React$4.createElement(Router,{history:this.history,children:this.props.children})},tt}(React$4.Component);React$4.Component;var resolveToLocation=function(tt,rt){return typeof tt=="function"?tt(rt):tt},normalizeToLocation=function(tt,rt){return typeof tt=="string"?createLocation(tt,null,null,rt):tt},forwardRefShim=function(tt){return tt},forwardRef=React$4.forwardRef;typeof forwardRef>"u"&&(forwardRef=forwardRefShim);function isModifiedEvent(et){return!!(et.metaKey||et.altKey||et.ctrlKey||et.shiftKey)}var LinkAnchor=forwardRef(function(et,tt){var rt=et.innerRef,nt=et.navigate,lt=et.onClick,ut=_objectWithoutPropertiesLoose$d(et,["innerRef","navigate","onClick"]),dt=ut.target,pt=_extends$j({},ut,{onClick:function(mt){try{lt&&lt(mt)}catch(xt){throw mt.preventDefault(),xt}!mt.defaultPrevented&&mt.button===0&&(!dt||dt==="_self")&&!isModifiedEvent(mt)&&(mt.preventDefault(),nt())}});return forwardRefShim!==forwardRef?pt.ref=tt||rt:pt.ref=rt,React$4.createElement("a",pt)}),Link$2=forwardRef(function(et,tt){var rt=et.component,nt=rt===void 0?LinkAnchor:rt,lt=et.replace,ut=et.to,dt=et.innerRef,pt=_objectWithoutPropertiesLoose$d(et,["component","replace","to","innerRef"]);return React$4.createElement(context.Consumer,null,function(ht){ht||invariant$3();var mt=ht.history,xt=normalizeToLocation(resolveToLocation(ut,ht.location),ht.location),Mt=xt?mt.createHref(xt):"",vt=_extends$j({},pt,{href:Mt,navigate:function(){var At=resolveToLocation(ut,ht.location),Rt=createPath(ht.location)===createPath(normalizeToLocation(At)),zt=lt||Rt?mt.replace:mt.push;zt(At)}});return forwardRefShim!==forwardRef?vt.ref=tt||dt:vt.innerRef=dt,React$4.createElement(nt,vt)})}),forwardRefShim$1=function(tt){return tt},forwardRef$1=React$4.forwardRef;typeof forwardRef$1>"u"&&(forwardRef$1=forwardRefShim$1);function joinClassnames(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return tt.filter(function(nt){return nt}).join(" ")}var NavLink=forwardRef$1(function(et,tt){var rt=et["aria-current"],nt=rt===void 0?"page":rt,lt=et.activeClassName,ut=lt===void 0?"active":lt,dt=et.activeStyle,pt=et.className,ht=et.exact,mt=et.isActive,xt=et.location,Mt=et.sensitive,vt=et.strict,Ot=et.style,At=et.to,Rt=et.innerRef,zt=_objectWithoutPropertiesLoose$d(et,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return React$4.createElement(context.Consumer,null,function(Tt){Tt||invariant$3();var Ct=xt||Tt.location,It=normalizeToLocation(resolveToLocation(At,Ct),Ct),Dt=It.pathname,kt=Dt&&Dt.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),qt=kt?matchPath(Ct.pathname,{path:kt,exact:ht,sensitive:Mt,strict:vt}):null,Nt=!!(mt?mt(qt,Ct):qt),Yt=typeof pt=="function"?pt(Nt):pt,Kt=typeof Ot=="function"?Ot(Nt):Ot;Nt&&(Yt=joinClassnames(Yt,ut),Kt=_extends$j({},Kt,dt));var Jt=_extends$j({"aria-current":Nt&&nt||null,className:Yt,style:Kt,to:It},zt);return forwardRefShim$1!==forwardRef$1?Jt.ref=tt||Rt:Jt.innerRef=Rt,React$4.createElement(Link$2,Jt)})});function fetch$1(et,tt){return tt=tt||{},new Promise(function(rt,nt){var lt=new XMLHttpRequest,ut=[],dt=[],pt={},ht=function(){return{ok:(lt.status/100|0)==2,statusText:lt.statusText,status:lt.status,url:lt.responseURL,text:function(){return Promise.resolve(lt.responseText)},json:function(){return Promise.resolve(lt.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([lt.response]))},clone:ht,headers:{keys:function(){return ut},entries:function(){return dt},get:function(xt){return pt[xt.toLowerCase()]},has:function(xt){return xt.toLowerCase()in pt}}}};for(var mt in lt.open(tt.method||"get",et,!0),lt.onload=function(){lt.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(xt,Mt,vt){ut.push(Mt=Mt.toLowerCase()),dt.push([Mt,vt]),pt[Mt]=pt[Mt]?pt[Mt]+","+vt:vt}),rt(ht())},lt.onerror=nt,lt.withCredentials=tt.credentials=="include",tt.headers)lt.setRequestHeader(mt,tt.headers[mt]);lt.send(tt.body||null)})}const initialErrorContext={state:{error:""},setError:et=>{}},ErrorModalContext=React$4.createContext(initialErrorContext),initialNavigationContext={state:{regEntryPath:"",searchTerm:"",locationFilter:"",regStatusFilter:"",tagFilter:""},setRegEntryPath:et=>{},setSearchTerm:et=>{},setLocationFilter:et=>{},setRegStatusFilter:et=>{},setTagFilter:et=>{}},NavigationContext=React$4.createContext(initialNavigationContext),initialRegistrationContext={addressPlaceId:"",setAddressPlaceId:et=>{},registrationSummaryVisited:!1,setRegistrationSummaryVisited:et=>{},haSummaryVisited:!1,setHaSummaryVisited:et=>{},gpLookupUsed:!1,setGpLookupUsed:et=>{},referrerLookupUsed:!1,setReferrerLookupUsed:et=>{}},RegistrationContext=React$4.createContext(initialRegistrationContext);function useErrorModalContext(){const{setError:et}=reactExports.useContext(ErrorModalContext);return{setError:et}}const initialContext={state:{hasStaffId:!1,navShow:!0,panelShow:!0,primaryRole:"",timezone:"",features:{},isPractitioner:!1,isRegistrar:!1},setHasStaffId:et=>{},setNavShow:et=>{},setPanelShow:et=>{},setPrimaryRole:et=>{},setTimezone:et=>{},setFeatures:et=>{},setIsPractitioner:et=>{},setIsRegistrar:et=>{},isFeatureLoading:()=>!0,hasFeature:et=>{},getEMRFeature:et=>{},getUserFeature:et=>{}},UserContext=reactExports.createContext(initialContext),Features={SIGMA:"Sigma",AJCC:"AJCC",PATIENT_SUMMARY:"PatientSummary"},FileContext=reactExports.createContext({}),FileContextProvider=({children:et})=>{const[tt,rt]=reactExports.useState([]);return jsxRuntimeExports.jsx(FileContext.Provider,{value:{activeFiles:tt,setActiveFiles:rt},children:et})},ThemeContext$3=React$4.createContext(null),TenantContext=React$4.createContext({doseUnit:"Gy",setDoseUnit:()=>{},ariaDoseUnit:"Gy",setAriaDoseUnit:()=>{},mosaiqDoseUnit:"cGy",setMosaiqDoseUnit:()=>{},fractionUnit:"#",setFractionUnit:()=>{}}),djangoJSONConversion=et=>et.replace(/\"/g,'\\"').replace(/\'/g,'"'),isValidJson=et=>{try{const tt=JSON.parse(et);if(tt&&typeof tt=="object")return!0}catch{}return!1},determineError=et=>{if(et){let tt="";isValidJson(et.message)?tt=et.message:tt=djangoJSONConversion(et.message);try{return JSON.parse(tt)}catch{return{message:"Invalid JSON error message",statusCode:500}}}return null},NEXT_SEARCH_PARAM="next",PHONE_NUMBER_REGEX="^((\\+?61 ?[23478]|\\+?\\(61 ?[23478]\\)|\\(\\+?61 ?[23478]\\)|((\\+?61|\\+?\\(61\\)|\\(\\+?61\\)) ?[23478])|0[23478]|\\(0[23478]\\)))([ -]?[0-9]{8}|([ -][0-9]{4}){2}|[ -]?[0-9]{2}([ -][0-9]{3}){2})$|",MOBILE_NUMBER_REGEX="^((\\+?61 ?4|\\+?\\(61 ?4\\)|\\(\\+?61 ?4\\)|((\\+?61|\\+?\\(61\\)|\\(\\+?61\\)) ?4)|04|\\(04\\)))([ -]?[0-9]{8}|([ -][0-9]{4}){2}|[ -]?[0-9]{2}([ -][0-9]{3}){2})$|",UK_PHONE_REGEX="^(?:(?:\\(?(?:0(?:0|11)\\)?[\\s-]?\\(?|\\+)44\\)?[\\s-]?(?:\\(?0\\)?[\\s-]?)?)|(?:\\(?0))(?:(?:\\d{5}\\)?[\\s-]?\\d{4,5})|(?:\\d{4}\\)?[\\s-]?(?:\\d{5}|\\d{3}[\\s-]?\\d{3}))|(?:\\d{3}\\)?[\\s-]?\\d{3}[\\s-]?\\d{3,4})|(?:\\d{2}\\)?[\\s-]?\\d{4}[\\s-]?\\d{4}))(?:[\\s-]?(?:x|ext\\.?|\\#)\\d{3,4})?$",EMAIL_REGEX="^[a-zA-Z0-9\\_\\-\\.]+@[a-zA-Z0-9\\-\\.]+(\\.[a-zA-Z]+)+$|",UK_POSTCODE_REGEX="^[a-zA-Z]{1,2}[0-9][a-zA-Z0-9]? ?[0-9][a-zA-Z]{2}$",NAME_REGEX=`[a-zA-Z0-9\\s_.,!"'-]*`,UK_NAME_REGEX="[A-Za-z\\s.,'-]*",UK_CITY_REGEX="[a-zA-Z\\s\\-]+|",GENDER_IDENTIFICATION_DESCRIBE_REGEX=/^[a-zA-Z\s]*$/,MEDICARE_IRN_REGEXP=/\d/,DVA_NUMBER_REGEXP=/[NVQWST](([a-zA-Z]{1}[0-9]{6})|([a-zA-Z]{2}[0-9]{5})|([a-zA-Z]{3}[0-9]{4})|([a-zA-Z]{4}[0-9]{3})|( [0-9]{6}))([a-zA-Z]|)|/,EMAIL_STRING_REGEX=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[\d]{1,3}\.[\d]{1,3}\.[\d]{1,3}\.[\d]{1,3}\])|(([\w\-\d]+\.)+[\w]{2,}))$/is,AU_POSTCODE_REGEXP=/^\d{4}$/,US_POSTCODE_REGEXP=/\d{5}(?:[- ]?\d{4})?/,UK_POSTCODE_REGEXP=/^[a-zA-Z]{1,2}[0-9][a-zA-Z0-9]? ?[0-9][a-zA-Z]{2}$/,US_SSN_REGEX=new RegExp("^([0-9]{3} - [0-9]{2} - [0-9]{4}|[X]{3} - [X]{2} - [X]{4}|[0-9]{9})$"),US_PHONE_REGEX=new RegExp(/^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/),AU_PHONE_REGEX=/^(?:\+?(61))? ?(?:\((?=.*\)))?(0?[2-57-8])\)? ?(\d\d(?:[- ](?=\d{3})|(?!\d\d[- ]?\d[- ]))\d\d[- ]?\d[- ]?\d{3})$/,MEDICARE_REGEX=new RegExp("^([0-9]{10}|[X]{10})$"),VIC_AMBULANCE_MEMBERSHIP_NUM_REGEXP=/^[\w\d-]+$/is;function createStringReplacementMap(){const et={};return et["‘"]="'",et["‛"]="'",et["“"]='"',et["‟"]='"',et["’"]="'",et["”"]='"',et["′"]="'",et["″"]='"',et["‵"]="'",et["‶"]='"',et["—"]="-",et["–"]="-",et}const mapReplace=(et,tt)=>{const rt=Object.keys(tt).join("|");if(!rt)return et;const nt=new RegExp(rt,"g");return et.replace(nt,lt=>tt[lt])},FormatSpecialCharactersMiddleware=new ApolloLink((et,tt)=>(et.variables&&Object.entries(et.variables).forEach(([rt,nt])=>{if(typeof nt=="string"){const lt=createStringReplacementMap();et.variables[rt]=mapReplace(nt,lt)}}),tt?tt(et):null));var momentTimezone$1={exports:{}},momentTimezone={exports:{}};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(et){hookCallback=et}function isArray$k(et){return et instanceof Array||Object.prototype.toString.call(et)==="[object Array]"}function isObject$f(et){return et!=null&&Object.prototype.toString.call(et)==="[object Object]"}function hasOwnProp(et,tt){return Object.prototype.hasOwnProperty.call(et,tt)}function isObjectEmpty$2(et){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(et).length===0;var tt;for(tt in et)if(hasOwnProp(et,tt))return!1;return!0}function isUndefined$2(et){return et===void 0}function isNumber$5(et){return typeof et=="number"||Object.prototype.toString.call(et)==="[object Number]"}function isDate$4(et){return et instanceof Date||Object.prototype.toString.call(et)==="[object Date]"}function map$1(et,tt){var rt=[],nt,lt=et.length;for(nt=0;nt<lt;++nt)rt.push(tt(et[nt],nt));return rt}function extend$1(et,tt){for(var rt in tt)hasOwnProp(tt,rt)&&(et[rt]=tt[rt]);return hasOwnProp(tt,"toString")&&(et.toString=tt.toString),hasOwnProp(tt,"valueOf")&&(et.valueOf=tt.valueOf),et}function createUTC(et,tt,rt,nt){return createLocalOrUTC(et,tt,rt,nt,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(et){return et._pf==null&&(et._pf=defaultParsingFlags()),et._pf}var some;Array.prototype.some?some=Array.prototype.some:some=function(et){var tt=Object(this),rt=tt.length>>>0,nt;for(nt=0;nt<rt;nt++)if(nt in tt&&et.call(this,tt[nt],nt,tt))return!0;return!1};function isValid(et){var tt=null,rt=!1,nt=et._d&&!isNaN(et._d.getTime());if(nt&&(tt=getParsingFlags(et),rt=some.call(tt.parsedDateParts,function(lt){return lt!=null}),nt=tt.overflow<0&&!tt.empty&&!tt.invalidEra&&!tt.invalidMonth&&!tt.invalidWeekday&&!tt.weekdayMismatch&&!tt.nullInput&&!tt.invalidFormat&&!tt.userInvalidated&&(!tt.meridiem||tt.meridiem&&rt),et._strict&&(nt=nt&&tt.charsLeftOver===0&&tt.unusedTokens.length===0&&tt.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(et))et._isValid=nt;else return nt;return et._isValid}function createInvalid(et){var tt=createUTC(NaN);return et!=null?extend$1(getParsingFlags(tt),et):getParsingFlags(tt).userInvalidated=!0,tt}var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(et,tt){var rt,nt,lt,ut=momentProperties.length;if(isUndefined$2(tt._isAMomentObject)||(et._isAMomentObject=tt._isAMomentObject),isUndefined$2(tt._i)||(et._i=tt._i),isUndefined$2(tt._f)||(et._f=tt._f),isUndefined$2(tt._l)||(et._l=tt._l),isUndefined$2(tt._strict)||(et._strict=tt._strict),isUndefined$2(tt._tzm)||(et._tzm=tt._tzm),isUndefined$2(tt._isUTC)||(et._isUTC=tt._isUTC),isUndefined$2(tt._offset)||(et._offset=tt._offset),isUndefined$2(tt._pf)||(et._pf=getParsingFlags(tt)),isUndefined$2(tt._locale)||(et._locale=tt._locale),ut>0)for(rt=0;rt<ut;rt++)nt=momentProperties[rt],lt=tt[nt],isUndefined$2(lt)||(et[nt]=lt);return et}function Moment(et){copyConfig(this,et),this._d=new Date(et._d!=null?et._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),updateInProgress===!1&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(et){return et instanceof Moment||et!=null&&et._isAMomentObject!=null}function warn(et){hooks.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+et)}function deprecate$1(et,tt){var rt=!0;return extend$1(function(){if(hooks.deprecationHandler!=null&&hooks.deprecationHandler(null,et),rt){var nt=[],lt,ut,dt,pt=arguments.length;for(ut=0;ut<pt;ut++){if(lt="",typeof arguments[ut]=="object"){lt+=`
[`+ut+"] ";for(dt in arguments[0])hasOwnProp(arguments[0],dt)&&(lt+=dt+": "+arguments[0][dt]+", ");lt=lt.slice(0,-2)}else lt=arguments[ut];nt.push(lt)}warn(et+`
Arguments: `+Array.prototype.slice.call(nt).join("")+`
`+new Error().stack),rt=!1}return tt.apply(this,arguments)},tt)}var deprecations={};function deprecateSimple(et,tt){hooks.deprecationHandler!=null&&hooks.deprecationHandler(et,tt),deprecations[et]||(warn(tt),deprecations[et]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction$8(et){return typeof Function<"u"&&et instanceof Function||Object.prototype.toString.call(et)==="[object Function]"}function set$3(et){var tt,rt;for(rt in et)hasOwnProp(et,rt)&&(tt=et[rt],isFunction$8(tt)?this[rt]=tt:this["_"+rt]=tt);this._config=et,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(et,tt){var rt=extend$1({},et),nt;for(nt in tt)hasOwnProp(tt,nt)&&(isObject$f(et[nt])&&isObject$f(tt[nt])?(rt[nt]={},extend$1(rt[nt],et[nt]),extend$1(rt[nt],tt[nt])):tt[nt]!=null?rt[nt]=tt[nt]:delete rt[nt]);for(nt in et)hasOwnProp(et,nt)&&!hasOwnProp(tt,nt)&&isObject$f(et[nt])&&(rt[nt]=extend$1({},rt[nt]));return rt}function Locale(et){et!=null&&this.set(et)}var keys$6;Object.keys?keys$6=Object.keys:keys$6=function(et){var tt,rt=[];for(tt in et)hasOwnProp(et,tt)&&rt.push(tt);return rt};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(et,tt,rt){var nt=this._calendar[et]||this._calendar.sameElse;return isFunction$8(nt)?nt.call(tt,rt):nt}function zeroFill(et,tt,rt){var nt=""+Math.abs(et),lt=tt-nt.length,ut=et>=0;return(ut?rt?"+":"":"-")+Math.pow(10,Math.max(0,lt)).toString().substr(1)+nt}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(et,tt,rt,nt){var lt=nt;typeof nt=="string"&&(lt=function(){return this[nt]()}),et&&(formatTokenFunctions[et]=lt),tt&&(formatTokenFunctions[tt[0]]=function(){return zeroFill(lt.apply(this,arguments),tt[1],tt[2])}),rt&&(formatTokenFunctions[rt]=function(){return this.localeData().ordinal(lt.apply(this,arguments),et)})}function removeFormattingTokens(et){return et.match(/\[[\s\S]/)?et.replace(/^\[|\]$/g,""):et.replace(/\\/g,"")}function makeFormatFunction(et){var tt=et.match(formattingTokens),rt,nt;for(rt=0,nt=tt.length;rt<nt;rt++)formatTokenFunctions[tt[rt]]?tt[rt]=formatTokenFunctions[tt[rt]]:tt[rt]=removeFormattingTokens(tt[rt]);return function(lt){var ut="",dt;for(dt=0;dt<nt;dt++)ut+=isFunction$8(tt[dt])?tt[dt].call(lt,et):tt[dt];return ut}}function formatMoment(et,tt){return et.isValid()?(tt=expandFormat$1(tt,et.localeData()),formatFunctions[tt]=formatFunctions[tt]||makeFormatFunction(tt),formatFunctions[tt](et)):et.localeData().invalidDate()}function expandFormat$1(et,tt){var rt=5;function nt(lt){return tt.longDateFormat(lt)||lt}for(localFormattingTokens.lastIndex=0;rt>=0&&localFormattingTokens.test(et);)et=et.replace(localFormattingTokens,nt),localFormattingTokens.lastIndex=0,rt-=1;return et}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(et){var tt=this._longDateFormat[et],rt=this._longDateFormat[et.toUpperCase()];return tt||!rt?tt:(this._longDateFormat[et]=rt.match(formattingTokens).map(function(nt){return nt==="MMMM"||nt==="MM"||nt==="DD"||nt==="dddd"?nt.slice(1):nt}).join(""),this._longDateFormat[et])}var defaultInvalidDate="Invalid date";function invalidDate$1(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(et){return this._ordinal.replace("%d",et)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(et,tt,rt,nt){var lt=this._relativeTime[rt];return isFunction$8(lt)?lt(et,tt,rt,nt):lt.replace(/%d/i,et)}function pastFuture(et,tt){var rt=this._relativeTime[et>0?"future":"past"];return isFunction$8(rt)?rt(tt):rt.replace(/%s/i,tt)}var aliases$1={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(et){return typeof et=="string"?aliases$1[et]||aliases$1[et.toLowerCase()]:void 0}function normalizeObjectUnits(et){var tt={},rt,nt;for(nt in et)hasOwnProp(et,nt)&&(rt=normalizeUnits(nt),rt&&(tt[rt]=et[nt]));return tt}var priorities={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(et){var tt=[],rt;for(rt in et)hasOwnProp(et,rt)&&tt.push({unit:rt,priority:priorities[rt]});return tt.sort(function(nt,lt){return nt.priority-lt.priority}),tt}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,match1to2NoLeadingZero=/^[1-9]\d?/,match1to2HasZero=/^([1-9]\d|\d)/,regexes;regexes={};function addRegexToken(et,tt,rt){regexes[et]=isFunction$8(tt)?tt:function(nt,lt){return nt&&rt?rt:tt}}function getParseRegexForToken(et,tt){return hasOwnProp(regexes,et)?regexes[et](tt._strict,tt._locale):new RegExp(unescapeFormat(et))}function unescapeFormat(et){return regexEscape$1(et.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(tt,rt,nt,lt,ut){return rt||nt||lt||ut}))}function regexEscape$1(et){return et.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(et){return et<0?Math.ceil(et)||0:Math.floor(et)}function toInt(et){var tt=+et,rt=0;return tt!==0&&isFinite(tt)&&(rt=absFloor(tt)),rt}var tokens={};function addParseToken(et,tt){var rt,nt=tt,lt;for(typeof et=="string"&&(et=[et]),isNumber$5(tt)&&(nt=function(ut,dt){dt[tt]=toInt(ut)}),lt=et.length,rt=0;rt<lt;rt++)tokens[et[rt]]=nt}function addWeekParseToken(et,tt){addParseToken(et,function(rt,nt,lt,ut){lt._w=lt._w||{},tt(rt,lt._w,lt,ut)})}function addTimeToArrayFromToken(et,tt,rt){tt!=null&&hasOwnProp(tokens,et)&&tokens[et](tt,rt._a,rt,et)}function isLeapYear(et){return et%4===0&&et%100!==0||et%400===0}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;addFormatToken("Y",0,0,function(){var et=this.year();return et<=9999?zeroFill(et,4):"+"+et});addFormatToken(0,["YY",2],0,function(){return this.year()%100});addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,!0],0,"year");addRegexToken("Y",matchSigned);addRegexToken("YY",match1to2,match2);addRegexToken("YYYY",match1to4,match4);addRegexToken("YYYYY",match1to6,match6);addRegexToken("YYYYYY",match1to6,match6);addParseToken(["YYYYY","YYYYYY"],YEAR);addParseToken("YYYY",function(et,tt){tt[YEAR]=et.length===2?hooks.parseTwoDigitYear(et):toInt(et)});addParseToken("YY",function(et,tt){tt[YEAR]=hooks.parseTwoDigitYear(et)});addParseToken("Y",function(et,tt){tt[YEAR]=parseInt(et,10)});function daysInYear(et){return isLeapYear(et)?366:365}hooks.parseTwoDigitYear=function(et){return toInt(et)+(toInt(et)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(et,tt){return function(rt){return rt!=null?(set$1$1(this,et,rt),hooks.updateOffset(this,tt),this):get$4(this,et)}}function get$4(et,tt){if(!et.isValid())return NaN;var rt=et._d,nt=et._isUTC;switch(tt){case"Milliseconds":return nt?rt.getUTCMilliseconds():rt.getMilliseconds();case"Seconds":return nt?rt.getUTCSeconds():rt.getSeconds();case"Minutes":return nt?rt.getUTCMinutes():rt.getMinutes();case"Hours":return nt?rt.getUTCHours():rt.getHours();case"Date":return nt?rt.getUTCDate():rt.getDate();case"Day":return nt?rt.getUTCDay():rt.getDay();case"Month":return nt?rt.getUTCMonth():rt.getMonth();case"FullYear":return nt?rt.getUTCFullYear():rt.getFullYear();default:return NaN}}function set$1$1(et,tt,rt){var nt,lt,ut,dt,pt;if(!(!et.isValid()||isNaN(rt))){switch(nt=et._d,lt=et._isUTC,tt){case"Milliseconds":return void(lt?nt.setUTCMilliseconds(rt):nt.setMilliseconds(rt));case"Seconds":return void(lt?nt.setUTCSeconds(rt):nt.setSeconds(rt));case"Minutes":return void(lt?nt.setUTCMinutes(rt):nt.setMinutes(rt));case"Hours":return void(lt?nt.setUTCHours(rt):nt.setHours(rt));case"Date":return void(lt?nt.setUTCDate(rt):nt.setDate(rt));case"FullYear":break;default:return}ut=rt,dt=et.month(),pt=et.date(),pt=pt===29&&dt===1&&!isLeapYear(ut)?28:pt,lt?nt.setUTCFullYear(ut,dt,pt):nt.setFullYear(ut,dt,pt)}}function stringGet(et){return et=normalizeUnits(et),isFunction$8(this[et])?this[et]():this}function stringSet(et,tt){if(typeof et=="object"){et=normalizeObjectUnits(et);var rt=getPrioritizedUnits(et),nt,lt=rt.length;for(nt=0;nt<lt;nt++)this[rt[nt].unit](et[rt[nt].unit])}else if(et=normalizeUnits(et),isFunction$8(this[et]))return this[et](tt);return this}function mod(et,tt){return(et%tt+tt)%tt}var indexOf$1;Array.prototype.indexOf?indexOf$1=Array.prototype.indexOf:indexOf$1=function(et){var tt;for(tt=0;tt<this.length;++tt)if(this[tt]===et)return tt;return-1};function daysInMonth(et,tt){if(isNaN(et)||isNaN(tt))return NaN;var rt=mod(tt,12);return et+=(tt-rt)/12,rt===1?isLeapYear(et)?29:28:31-rt%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1});addFormatToken("MMM",0,0,function(et){return this.localeData().monthsShort(this,et)});addFormatToken("MMMM",0,0,function(et){return this.localeData().months(this,et)});addRegexToken("M",match1to2,match1to2NoLeadingZero);addRegexToken("MM",match1to2,match2);addRegexToken("MMM",function(et,tt){return tt.monthsShortRegex(et)});addRegexToken("MMMM",function(et,tt){return tt.monthsRegex(et)});addParseToken(["M","MM"],function(et,tt){tt[MONTH]=toInt(et)-1});addParseToken(["MMM","MMMM"],function(et,tt,rt,nt){var lt=rt._locale.monthsParse(et,nt,rt._strict);lt!=null?tt[MONTH]=lt:getParsingFlags(rt).invalidMonth=et});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(et,tt){return et?isArray$k(this._months)?this._months[et.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(tt)?"format":"standalone"][et.month()]:isArray$k(this._months)?this._months:this._months.standalone}function localeMonthsShort(et,tt){return et?isArray$k(this._monthsShort)?this._monthsShort[et.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(tt)?"format":"standalone"][et.month()]:isArray$k(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(et,tt,rt){var nt,lt,ut,dt=et.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],nt=0;nt<12;++nt)ut=createUTC([2e3,nt]),this._shortMonthsParse[nt]=this.monthsShort(ut,"").toLocaleLowerCase(),this._longMonthsParse[nt]=this.months(ut,"").toLocaleLowerCase();return rt?tt==="MMM"?(lt=indexOf$1.call(this._shortMonthsParse,dt),lt!==-1?lt:null):(lt=indexOf$1.call(this._longMonthsParse,dt),lt!==-1?lt:null):tt==="MMM"?(lt=indexOf$1.call(this._shortMonthsParse,dt),lt!==-1?lt:(lt=indexOf$1.call(this._longMonthsParse,dt),lt!==-1?lt:null)):(lt=indexOf$1.call(this._longMonthsParse,dt),lt!==-1?lt:(lt=indexOf$1.call(this._shortMonthsParse,dt),lt!==-1?lt:null))}function localeMonthsParse(et,tt,rt){var nt,lt,ut;if(this._monthsParseExact)return handleStrictParse.call(this,et,tt,rt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),nt=0;nt<12;nt++){if(lt=createUTC([2e3,nt]),rt&&!this._longMonthsParse[nt]&&(this._longMonthsParse[nt]=new RegExp("^"+this.months(lt,"").replace(".","")+"$","i"),this._shortMonthsParse[nt]=new RegExp("^"+this.monthsShort(lt,"").replace(".","")+"$","i")),!rt&&!this._monthsParse[nt]&&(ut="^"+this.months(lt,"")+"|^"+this.monthsShort(lt,""),this._monthsParse[nt]=new RegExp(ut.replace(".",""),"i")),rt&&tt==="MMMM"&&this._longMonthsParse[nt].test(et))return nt;if(rt&&tt==="MMM"&&this._shortMonthsParse[nt].test(et))return nt;if(!rt&&this._monthsParse[nt].test(et))return nt}}function setMonth(et,tt){if(!et.isValid())return et;if(typeof tt=="string"){if(/^\d+$/.test(tt))tt=toInt(tt);else if(tt=et.localeData().monthsParse(tt),!isNumber$5(tt))return et}var rt=tt,nt=et.date();return nt=nt<29?nt:Math.min(nt,daysInMonth(et.year(),rt)),et._isUTC?et._d.setUTCMonth(rt,nt):et._d.setMonth(rt,nt),et}function getSetMonth(et){return et!=null?(setMonth(this,et),hooks.updateOffset(this,!0),this):get$4(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(et){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),et?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&et?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(et){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),et?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&et?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function et(ht,mt){return mt.length-ht.length}var tt=[],rt=[],nt=[],lt,ut,dt,pt;for(lt=0;lt<12;lt++)ut=createUTC([2e3,lt]),dt=regexEscape$1(this.monthsShort(ut,"")),pt=regexEscape$1(this.months(ut,"")),tt.push(dt),rt.push(pt),nt.push(pt),nt.push(dt);tt.sort(et),rt.sort(et),nt.sort(et),this._monthsRegex=new RegExp("^("+nt.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+rt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+tt.join("|")+")","i")}function createDate(et,tt,rt,nt,lt,ut,dt){var pt;return et<100&&et>=0?(pt=new Date(et+400,tt,rt,nt,lt,ut,dt),isFinite(pt.getFullYear())&&pt.setFullYear(et)):pt=new Date(et,tt,rt,nt,lt,ut,dt),pt}function createUTCDate(et){var tt,rt;return et<100&&et>=0?(rt=Array.prototype.slice.call(arguments),rt[0]=et+400,tt=new Date(Date.UTC.apply(null,rt)),isFinite(tt.getUTCFullYear())&&tt.setUTCFullYear(et)):tt=new Date(Date.UTC.apply(null,arguments)),tt}function firstWeekOffset(et,tt,rt){var nt=7+tt-rt,lt=(7+createUTCDate(et,0,nt).getUTCDay()-tt)%7;return-lt+nt-1}function dayOfYearFromWeeks(et,tt,rt,nt,lt){var ut=(7+rt-nt)%7,dt=firstWeekOffset(et,nt,lt),pt=1+7*(tt-1)+ut+dt,ht,mt;return pt<=0?(ht=et-1,mt=daysInYear(ht)+pt):pt>daysInYear(et)?(ht=et+1,mt=pt-daysInYear(et)):(ht=et,mt=pt),{year:ht,dayOfYear:mt}}function weekOfYear$1(et,tt,rt){var nt=firstWeekOffset(et.year(),tt,rt),lt=Math.floor((et.dayOfYear()-nt-1)/7)+1,ut,dt;return lt<1?(dt=et.year()-1,ut=lt+weeksInYear(dt,tt,rt)):lt>weeksInYear(et.year(),tt,rt)?(ut=lt-weeksInYear(et.year(),tt,rt),dt=et.year()+1):(dt=et.year(),ut=lt),{week:ut,year:dt}}function weeksInYear(et,tt,rt){var nt=firstWeekOffset(et,tt,rt),lt=firstWeekOffset(et+1,tt,rt);return(daysInYear(et)-nt+lt)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addRegexToken("w",match1to2,match1to2NoLeadingZero);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2,match1to2NoLeadingZero);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(et,tt,rt,nt){tt[nt.substr(0,1)]=toInt(et)});function localeWeek(et){return weekOfYear$1(et,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(et){var tt=this.localeData().week(this);return et==null?tt:this.add((et-tt)*7,"d")}function getSetISOWeek(et){var tt=weekOfYear$1(this,1,4).week;return et==null?tt:this.add((et-tt)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(et){return this.localeData().weekdaysMin(this,et)});addFormatToken("ddd",0,0,function(et){return this.localeData().weekdaysShort(this,et)});addFormatToken("dddd",0,0,function(et){return this.localeData().weekdays(this,et)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(et,tt){return tt.weekdaysMinRegex(et)});addRegexToken("ddd",function(et,tt){return tt.weekdaysShortRegex(et)});addRegexToken("dddd",function(et,tt){return tt.weekdaysRegex(et)});addWeekParseToken(["dd","ddd","dddd"],function(et,tt,rt,nt){var lt=rt._locale.weekdaysParse(et,nt,rt._strict);lt!=null?tt.d=lt:getParsingFlags(rt).invalidWeekday=et});addWeekParseToken(["d","e","E"],function(et,tt,rt,nt){tt[nt]=toInt(et)});function parseWeekday(et,tt){return typeof et!="string"?et:isNaN(et)?(et=tt.weekdaysParse(et),typeof et=="number"?et:null):parseInt(et,10)}function parseIsoWeekday(et,tt){return typeof et=="string"?tt.weekdaysParse(et)%7||7:isNaN(et)?null:et}function shiftWeekdays(et,tt){return et.slice(tt,7).concat(et.slice(0,tt))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(et,tt){var rt=isArray$k(this._weekdays)?this._weekdays:this._weekdays[et&&et!==!0&&this._weekdays.isFormat.test(tt)?"format":"standalone"];return et===!0?shiftWeekdays(rt,this._week.dow):et?rt[et.day()]:rt}function localeWeekdaysShort(et){return et===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):et?this._weekdaysShort[et.day()]:this._weekdaysShort}function localeWeekdaysMin(et){return et===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):et?this._weekdaysMin[et.day()]:this._weekdaysMin}function handleStrictParse$1(et,tt,rt){var nt,lt,ut,dt=et.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],nt=0;nt<7;++nt)ut=createUTC([2e3,1]).day(nt),this._minWeekdaysParse[nt]=this.weekdaysMin(ut,"").toLocaleLowerCase(),this._shortWeekdaysParse[nt]=this.weekdaysShort(ut,"").toLocaleLowerCase(),this._weekdaysParse[nt]=this.weekdays(ut,"").toLocaleLowerCase();return rt?tt==="dddd"?(lt=indexOf$1.call(this._weekdaysParse,dt),lt!==-1?lt:null):tt==="ddd"?(lt=indexOf$1.call(this._shortWeekdaysParse,dt),lt!==-1?lt:null):(lt=indexOf$1.call(this._minWeekdaysParse,dt),lt!==-1?lt:null):tt==="dddd"?(lt=indexOf$1.call(this._weekdaysParse,dt),lt!==-1||(lt=indexOf$1.call(this._shortWeekdaysParse,dt),lt!==-1)?lt:(lt=indexOf$1.call(this._minWeekdaysParse,dt),lt!==-1?lt:null)):tt==="ddd"?(lt=indexOf$1.call(this._shortWeekdaysParse,dt),lt!==-1||(lt=indexOf$1.call(this._weekdaysParse,dt),lt!==-1)?lt:(lt=indexOf$1.call(this._minWeekdaysParse,dt),lt!==-1?lt:null)):(lt=indexOf$1.call(this._minWeekdaysParse,dt),lt!==-1||(lt=indexOf$1.call(this._weekdaysParse,dt),lt!==-1)?lt:(lt=indexOf$1.call(this._shortWeekdaysParse,dt),lt!==-1?lt:null))}function localeWeekdaysParse(et,tt,rt){var nt,lt,ut;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,et,tt,rt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),nt=0;nt<7;nt++){if(lt=createUTC([2e3,1]).day(nt),rt&&!this._fullWeekdaysParse[nt]&&(this._fullWeekdaysParse[nt]=new RegExp("^"+this.weekdays(lt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[nt]=new RegExp("^"+this.weekdaysShort(lt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[nt]=new RegExp("^"+this.weekdaysMin(lt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[nt]||(ut="^"+this.weekdays(lt,"")+"|^"+this.weekdaysShort(lt,"")+"|^"+this.weekdaysMin(lt,""),this._weekdaysParse[nt]=new RegExp(ut.replace(".",""),"i")),rt&&tt==="dddd"&&this._fullWeekdaysParse[nt].test(et))return nt;if(rt&&tt==="ddd"&&this._shortWeekdaysParse[nt].test(et))return nt;if(rt&&tt==="dd"&&this._minWeekdaysParse[nt].test(et))return nt;if(!rt&&this._weekdaysParse[nt].test(et))return nt}}function getSetDayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;var tt=get$4(this,"Day");return et!=null?(et=parseWeekday(et,this.localeData()),this.add(et-tt,"d")):tt}function getSetLocaleDayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;var tt=(this.day()+7-this.localeData()._week.dow)%7;return et==null?tt:this.add(et-tt,"d")}function getSetISODayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;if(et!=null){var tt=parseIsoWeekday(et,this.localeData());return this.day(this.day()%7?tt:tt-7)}else return this.day()||7}function weekdaysRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&et?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&et?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&et?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function et(xt,Mt){return Mt.length-xt.length}var tt=[],rt=[],nt=[],lt=[],ut,dt,pt,ht,mt;for(ut=0;ut<7;ut++)dt=createUTC([2e3,1]).day(ut),pt=regexEscape$1(this.weekdaysMin(dt,"")),ht=regexEscape$1(this.weekdaysShort(dt,"")),mt=regexEscape$1(this.weekdays(dt,"")),tt.push(pt),rt.push(ht),nt.push(mt),lt.push(pt),lt.push(ht),lt.push(mt);tt.sort(et),rt.sort(et),nt.sort(et),lt.sort(et),this._weekdaysRegex=new RegExp("^("+lt.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+rt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+tt.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(et,tt){addFormatToken(et,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),tt)})}meridiem("a",!0);meridiem("A",!1);function matchMeridiem(et,tt){return tt._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2,match1to2HasZero);addRegexToken("h",match1to2,match1to2NoLeadingZero);addRegexToken("k",match1to2,match1to2NoLeadingZero);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(et,tt,rt){var nt=toInt(et);tt[HOUR]=nt===24?0:nt});addParseToken(["a","A"],function(et,tt,rt){rt._isPm=rt._locale.isPM(et),rt._meridiem=et});addParseToken(["h","hh"],function(et,tt,rt){tt[HOUR]=toInt(et),getParsingFlags(rt).bigHour=!0});addParseToken("hmm",function(et,tt,rt){var nt=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt)),getParsingFlags(rt).bigHour=!0});addParseToken("hmmss",function(et,tt,rt){var nt=et.length-4,lt=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt,2)),tt[SECOND]=toInt(et.substr(lt)),getParsingFlags(rt).bigHour=!0});addParseToken("Hmm",function(et,tt,rt){var nt=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt))});addParseToken("Hmmss",function(et,tt,rt){var nt=et.length-4,lt=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt,2)),tt[SECOND]=toInt(et.substr(lt))});function localeIsPM(et){return(et+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(et,tt,rt){return et>11?rt?"pm":"PM":rt?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(et,tt){var rt,nt=Math.min(et.length,tt.length);for(rt=0;rt<nt;rt+=1)if(et[rt]!==tt[rt])return rt;return nt}function normalizeLocale(et){return et&&et.toLowerCase().replace("_","-")}function chooseLocale(et){for(var tt=0,rt,nt,lt,ut;tt<et.length;){for(ut=normalizeLocale(et[tt]).split("-"),rt=ut.length,nt=normalizeLocale(et[tt+1]),nt=nt?nt.split("-"):null;rt>0;){if(lt=loadLocale(ut.slice(0,rt).join("-")),lt)return lt;if(nt&&nt.length>=rt&&commonPrefix(ut,nt)>=rt-1)break;rt--}tt++}return globalLocale}function isLocaleNameSane(et){return!!(et&&et.match("^[^/\\\\]*$"))}function loadLocale(et){var tt=null,rt;if(locales[et]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(et))try{tt=globalLocale._abbr,rt=require,rt("./locale/"+et),getSetGlobalLocale(tt)}catch{locales[et]=null}return locales[et]}function getSetGlobalLocale(et,tt){var rt;return et&&(isUndefined$2(tt)?rt=getLocale(et):rt=defineLocale(et,tt),rt?globalLocale=rt:typeof console<"u"&&console.warn&&console.warn("Locale "+et+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(et,tt){if(tt!==null){var rt,nt=baseConfig;if(tt.abbr=et,locales[et]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),nt=locales[et]._config;else if(tt.parentLocale!=null)if(locales[tt.parentLocale]!=null)nt=locales[tt.parentLocale]._config;else if(rt=loadLocale(tt.parentLocale),rt!=null)nt=rt._config;else return localeFamilies[tt.parentLocale]||(localeFamilies[tt.parentLocale]=[]),localeFamilies[tt.parentLocale].push({name:et,config:tt}),null;return locales[et]=new Locale(mergeConfigs(nt,tt)),localeFamilies[et]&&localeFamilies[et].forEach(function(lt){defineLocale(lt.name,lt.config)}),getSetGlobalLocale(et),locales[et]}else return delete locales[et],null}function updateLocale(et,tt){if(tt!=null){var rt,nt,lt=baseConfig;locales[et]!=null&&locales[et].parentLocale!=null?locales[et].set(mergeConfigs(locales[et]._config,tt)):(nt=loadLocale(et),nt!=null&&(lt=nt._config),tt=mergeConfigs(lt,tt),nt==null&&(tt.abbr=et),rt=new Locale(tt),rt.parentLocale=locales[et],locales[et]=rt),getSetGlobalLocale(et)}else locales[et]!=null&&(locales[et].parentLocale!=null?(locales[et]=locales[et].parentLocale,et===getSetGlobalLocale()&&getSetGlobalLocale(et)):locales[et]!=null&&delete locales[et]);return locales[et]}function getLocale(et){var tt;if(et&&et._locale&&et._locale._abbr&&(et=et._locale._abbr),!et)return globalLocale;if(!isArray$k(et)){if(tt=loadLocale(et),tt)return tt;et=[et]}return chooseLocale(et)}function listLocales(){return keys$6(locales)}function checkOverflow(et){var tt,rt=et._a;return rt&&getParsingFlags(et).overflow===-2&&(tt=rt[MONTH]<0||rt[MONTH]>11?MONTH:rt[DATE]<1||rt[DATE]>daysInMonth(rt[YEAR],rt[MONTH])?DATE:rt[HOUR]<0||rt[HOUR]>24||rt[HOUR]===24&&(rt[MINUTE]!==0||rt[SECOND]!==0||rt[MILLISECOND]!==0)?HOUR:rt[MINUTE]<0||rt[MINUTE]>59?MINUTE:rt[SECOND]<0||rt[SECOND]>59?SECOND:rt[MILLISECOND]<0||rt[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(et)._overflowDayOfYear&&(tt<YEAR||tt>DATE)&&(tt=DATE),getParsingFlags(et)._overflowWeeks&&tt===-1&&(tt=WEEK),getParsingFlags(et)._overflowWeekday&&tt===-1&&(tt=WEEKDAY),getParsingFlags(et).overflow=tt),et}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(et){var tt,rt,nt=et._i,lt=extendedIsoRegex.exec(nt)||basicIsoRegex.exec(nt),ut,dt,pt,ht,mt=isoDates.length,xt=isoTimes.length;if(lt){for(getParsingFlags(et).iso=!0,tt=0,rt=mt;tt<rt;tt++)if(isoDates[tt][1].exec(lt[1])){dt=isoDates[tt][0],ut=isoDates[tt][2]!==!1;break}if(dt==null){et._isValid=!1;return}if(lt[3]){for(tt=0,rt=xt;tt<rt;tt++)if(isoTimes[tt][1].exec(lt[3])){pt=(lt[2]||" ")+isoTimes[tt][0];break}if(pt==null){et._isValid=!1;return}}if(!ut&&pt!=null){et._isValid=!1;return}if(lt[4])if(tzRegex.exec(lt[4]))ht="Z";else{et._isValid=!1;return}et._f=dt+(pt||"")+(ht||""),configFromStringAndFormat(et)}else et._isValid=!1}function extractFromRFC2822Strings(et,tt,rt,nt,lt,ut){var dt=[untruncateYear(et),defaultLocaleMonthsShort.indexOf(tt),parseInt(rt,10),parseInt(nt,10),parseInt(lt,10)];return ut&&dt.push(parseInt(ut,10)),dt}function untruncateYear(et){var tt=parseInt(et,10);return tt<=49?2e3+tt:tt<=999?1900+tt:tt}function preprocessRFC2822(et){return et.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(et,tt,rt){if(et){var nt=defaultLocaleWeekdaysShort.indexOf(et),lt=new Date(tt[0],tt[1],tt[2]).getDay();if(nt!==lt)return getParsingFlags(rt).weekdayMismatch=!0,rt._isValid=!1,!1}return!0}function calculateOffset(et,tt,rt){if(et)return obsOffsets[et];if(tt)return 0;var nt=parseInt(rt,10),lt=nt%100,ut=(nt-lt)/100;return ut*60+lt}function configFromRFC2822(et){var tt=rfc2822.exec(preprocessRFC2822(et._i)),rt;if(tt){if(rt=extractFromRFC2822Strings(tt[4],tt[3],tt[2],tt[5],tt[6],tt[7]),!checkWeekday(tt[1],rt,et))return;et._a=rt,et._tzm=calculateOffset(tt[8],tt[9],tt[10]),et._d=createUTCDate.apply(null,et._a),et._d.setUTCMinutes(et._d.getUTCMinutes()-et._tzm),getParsingFlags(et).rfc2822=!0}else et._isValid=!1}function configFromString(et){var tt=aspNetJsonRegex.exec(et._i);if(tt!==null){et._d=new Date(+tt[1]);return}if(configFromISO(et),et._isValid===!1)delete et._isValid;else return;if(configFromRFC2822(et),et._isValid===!1)delete et._isValid;else return;et._strict?et._isValid=!1:hooks.createFromInputFallback(et)}hooks.createFromInputFallback=deprecate$1("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(et){et._d=new Date(et._i+(et._useUTC?" UTC":""))});function defaults$5(et,tt,rt){return et??tt??rt}function currentDateArray(et){var tt=new Date(hooks.now());return et._useUTC?[tt.getUTCFullYear(),tt.getUTCMonth(),tt.getUTCDate()]:[tt.getFullYear(),tt.getMonth(),tt.getDate()]}function configFromArray(et){var tt,rt,nt=[],lt,ut,dt;if(!et._d){for(lt=currentDateArray(et),et._w&&et._a[DATE]==null&&et._a[MONTH]==null&&dayOfYearFromWeekInfo(et),et._dayOfYear!=null&&(dt=defaults$5(et._a[YEAR],lt[YEAR]),(et._dayOfYear>daysInYear(dt)||et._dayOfYear===0)&&(getParsingFlags(et)._overflowDayOfYear=!0),rt=createUTCDate(dt,0,et._dayOfYear),et._a[MONTH]=rt.getUTCMonth(),et._a[DATE]=rt.getUTCDate()),tt=0;tt<3&&et._a[tt]==null;++tt)et._a[tt]=nt[tt]=lt[tt];for(;tt<7;tt++)et._a[tt]=nt[tt]=et._a[tt]==null?tt===2?1:0:et._a[tt];et._a[HOUR]===24&&et._a[MINUTE]===0&&et._a[SECOND]===0&&et._a[MILLISECOND]===0&&(et._nextDay=!0,et._a[HOUR]=0),et._d=(et._useUTC?createUTCDate:createDate).apply(null,nt),ut=et._useUTC?et._d.getUTCDay():et._d.getDay(),et._tzm!=null&&et._d.setUTCMinutes(et._d.getUTCMinutes()-et._tzm),et._nextDay&&(et._a[HOUR]=24),et._w&&typeof et._w.d<"u"&&et._w.d!==ut&&(getParsingFlags(et).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(et){var tt,rt,nt,lt,ut,dt,pt,ht,mt;tt=et._w,tt.GG!=null||tt.W!=null||tt.E!=null?(ut=1,dt=4,rt=defaults$5(tt.GG,et._a[YEAR],weekOfYear$1(createLocal(),1,4).year),nt=defaults$5(tt.W,1),lt=defaults$5(tt.E,1),(lt<1||lt>7)&&(ht=!0)):(ut=et._locale._week.dow,dt=et._locale._week.doy,mt=weekOfYear$1(createLocal(),ut,dt),rt=defaults$5(tt.gg,et._a[YEAR],mt.year),nt=defaults$5(tt.w,mt.week),tt.d!=null?(lt=tt.d,(lt<0||lt>6)&&(ht=!0)):tt.e!=null?(lt=tt.e+ut,(tt.e<0||tt.e>6)&&(ht=!0)):lt=ut),nt<1||nt>weeksInYear(rt,ut,dt)?getParsingFlags(et)._overflowWeeks=!0:ht!=null?getParsingFlags(et)._overflowWeekday=!0:(pt=dayOfYearFromWeeks(rt,nt,lt,ut,dt),et._a[YEAR]=pt.year,et._dayOfYear=pt.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(et){if(et._f===hooks.ISO_8601){configFromISO(et);return}if(et._f===hooks.RFC_2822){configFromRFC2822(et);return}et._a=[],getParsingFlags(et).empty=!0;var tt=""+et._i,rt,nt,lt,ut,dt,pt=tt.length,ht=0,mt,xt;for(lt=expandFormat$1(et._f,et._locale).match(formattingTokens)||[],xt=lt.length,rt=0;rt<xt;rt++)ut=lt[rt],nt=(tt.match(getParseRegexForToken(ut,et))||[])[0],nt&&(dt=tt.substr(0,tt.indexOf(nt)),dt.length>0&&getParsingFlags(et).unusedInput.push(dt),tt=tt.slice(tt.indexOf(nt)+nt.length),ht+=nt.length),formatTokenFunctions[ut]?(nt?getParsingFlags(et).empty=!1:getParsingFlags(et).unusedTokens.push(ut),addTimeToArrayFromToken(ut,nt,et)):et._strict&&!nt&&getParsingFlags(et).unusedTokens.push(ut);getParsingFlags(et).charsLeftOver=pt-ht,tt.length>0&&getParsingFlags(et).unusedInput.push(tt),et._a[HOUR]<=12&&getParsingFlags(et).bigHour===!0&&et._a[HOUR]>0&&(getParsingFlags(et).bigHour=void 0),getParsingFlags(et).parsedDateParts=et._a.slice(0),getParsingFlags(et).meridiem=et._meridiem,et._a[HOUR]=meridiemFixWrap(et._locale,et._a[HOUR],et._meridiem),mt=getParsingFlags(et).era,mt!==null&&(et._a[YEAR]=et._locale.erasConvertYear(mt,et._a[YEAR])),configFromArray(et),checkOverflow(et)}function meridiemFixWrap(et,tt,rt){var nt;return rt==null?tt:et.meridiemHour!=null?et.meridiemHour(tt,rt):(et.isPM!=null&&(nt=et.isPM(rt),nt&&tt<12&&(tt+=12),!nt&&tt===12&&(tt=0)),tt)}function configFromStringAndArray(et){var tt,rt,nt,lt,ut,dt,pt=!1,ht=et._f.length;if(ht===0){getParsingFlags(et).invalidFormat=!0,et._d=new Date(NaN);return}for(lt=0;lt<ht;lt++)ut=0,dt=!1,tt=copyConfig({},et),et._useUTC!=null&&(tt._useUTC=et._useUTC),tt._f=et._f[lt],configFromStringAndFormat(tt),isValid(tt)&&(dt=!0),ut+=getParsingFlags(tt).charsLeftOver,ut+=getParsingFlags(tt).unusedTokens.length*10,getParsingFlags(tt).score=ut,pt?ut<nt&&(nt=ut,rt=tt):(nt==null||ut<nt||dt)&&(nt=ut,rt=tt,dt&&(pt=!0));extend$1(et,rt||tt)}function configFromObject(et){if(!et._d){var tt=normalizeObjectUnits(et._i),rt=tt.day===void 0?tt.date:tt.day;et._a=map$1([tt.year,tt.month,rt,tt.hour,tt.minute,tt.second,tt.millisecond],function(nt){return nt&&parseInt(nt,10)}),configFromArray(et)}}function createFromConfig(et){var tt=new Moment(checkOverflow(prepareConfig(et)));return tt._nextDay&&(tt.add(1,"d"),tt._nextDay=void 0),tt}function prepareConfig(et){var tt=et._i,rt=et._f;return et._locale=et._locale||getLocale(et._l),tt===null||rt===void 0&&tt===""?createInvalid({nullInput:!0}):(typeof tt=="string"&&(et._i=tt=et._locale.preparse(tt)),isMoment(tt)?new Moment(checkOverflow(tt)):(isDate$4(tt)?et._d=tt:isArray$k(rt)?configFromStringAndArray(et):rt?configFromStringAndFormat(et):configFromInput(et),isValid(et)||(et._d=null),et))}function configFromInput(et){var tt=et._i;isUndefined$2(tt)?et._d=new Date(hooks.now()):isDate$4(tt)?et._d=new Date(tt.valueOf()):typeof tt=="string"?configFromString(et):isArray$k(tt)?(et._a=map$1(tt.slice(0),function(rt){return parseInt(rt,10)}),configFromArray(et)):isObject$f(tt)?configFromObject(et):isNumber$5(tt)?et._d=new Date(tt):hooks.createFromInputFallback(et)}function createLocalOrUTC(et,tt,rt,nt,lt){var ut={};return(tt===!0||tt===!1)&&(nt=tt,tt=void 0),(rt===!0||rt===!1)&&(nt=rt,rt=void 0),(isObject$f(et)&&isObjectEmpty$2(et)||isArray$k(et)&&et.length===0)&&(et=void 0),ut._isAMomentObject=!0,ut._useUTC=ut._isUTC=lt,ut._l=rt,ut._i=et,ut._f=tt,ut._strict=nt,createFromConfig(ut)}function createLocal(et,tt,rt,nt){return createLocalOrUTC(et,tt,rt,nt,!1)}var prototypeMin=deprecate$1("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var et=createLocal.apply(null,arguments);return this.isValid()&&et.isValid()?et<this?this:et:createInvalid()}),prototypeMax=deprecate$1("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var et=createLocal.apply(null,arguments);return this.isValid()&&et.isValid()?et>this?this:et:createInvalid()});function pickBy(et,tt){var rt,nt;if(tt.length===1&&isArray$k(tt[0])&&(tt=tt[0]),!tt.length)return createLocal();for(rt=tt[0],nt=1;nt<tt.length;++nt)(!tt[nt].isValid()||tt[nt][et](rt))&&(rt=tt[nt]);return rt}function min$1(){var et=[].slice.call(arguments,0);return pickBy("isBefore",et)}function max$2(){var et=[].slice.call(arguments,0);return pickBy("isAfter",et)}var now$2=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(et){var tt,rt=!1,nt,lt=ordering.length;for(tt in et)if(hasOwnProp(et,tt)&&!(indexOf$1.call(ordering,tt)!==-1&&(et[tt]==null||!isNaN(et[tt]))))return!1;for(nt=0;nt<lt;++nt)if(et[ordering[nt]]){if(rt)return!1;parseFloat(et[ordering[nt]])!==toInt(et[ordering[nt]])&&(rt=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(et){var tt=normalizeObjectUnits(et),rt=tt.year||0,nt=tt.quarter||0,lt=tt.month||0,ut=tt.week||tt.isoWeek||0,dt=tt.day||0,pt=tt.hour||0,ht=tt.minute||0,mt=tt.second||0,xt=tt.millisecond||0;this._isValid=isDurationValid(tt),this._milliseconds=+xt+mt*1e3+ht*6e4+pt*1e3*60*60,this._days=+dt+ut*7,this._months=+lt+nt*3+rt*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(et){return et instanceof Duration}function absRound(et){return et<0?Math.round(-1*et)*-1:Math.round(et)}function compareArrays(et,tt,rt){var nt=Math.min(et.length,tt.length),lt=Math.abs(et.length-tt.length),ut=0,dt;for(dt=0;dt<nt;dt++)toInt(et[dt])!==toInt(tt[dt])&&ut++;return ut+lt}function offset$3(et,tt){addFormatToken(et,0,0,function(){var rt=this.utcOffset(),nt="+";return rt<0&&(rt=-rt,nt="-"),nt+zeroFill(~~(rt/60),2)+tt+zeroFill(~~rt%60,2)})}offset$3("Z",":");offset$3("ZZ","");addRegexToken("Z",matchShortOffset);addRegexToken("ZZ",matchShortOffset);addParseToken(["Z","ZZ"],function(et,tt,rt){rt._useUTC=!0,rt._tzm=offsetFromString(matchShortOffset,et)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(et,tt){var rt=(tt||"").match(et),nt,lt,ut;return rt===null?null:(nt=rt[rt.length-1]||[],lt=(nt+"").match(chunkOffset)||["-",0,0],ut=+(lt[1]*60)+toInt(lt[2]),ut===0?0:lt[0]==="+"?ut:-ut)}function cloneWithOffset(et,tt){var rt,nt;return tt._isUTC?(rt=tt.clone(),nt=(isMoment(et)||isDate$4(et)?et.valueOf():createLocal(et).valueOf())-rt.valueOf(),rt._d.setTime(rt._d.valueOf()+nt),hooks.updateOffset(rt,!1),rt):createLocal(et).local()}function getDateOffset(et){return-Math.round(et._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(et,tt,rt){var nt=this._offset||0,lt;if(!this.isValid())return et!=null?this:NaN;if(et!=null){if(typeof et=="string"){if(et=offsetFromString(matchShortOffset,et),et===null)return this}else Math.abs(et)<16&&!rt&&(et=et*60);return!this._isUTC&&tt&&(lt=getDateOffset(this)),this._offset=et,this._isUTC=!0,lt!=null&&this.add(lt,"m"),nt!==et&&(!tt||this._changeInProgress?addSubtract(this,createDuration(et-nt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?nt:getDateOffset(this)}function getSetZone(et,tt){return et!=null?(typeof et!="string"&&(et=-et),this.utcOffset(et,tt),this):-this.utcOffset()}function setOffsetToUTC(et){return this.utcOffset(0,et)}function setOffsetToLocal(et){return this._isUTC&&(this.utcOffset(0,et),this._isUTC=!1,et&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var et=offsetFromString(matchOffset,this._i);et!=null?this.utcOffset(et):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(et){return this.isValid()?(et=et?createLocal(et).utcOffset():0,(this.utcOffset()-et)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined$2(this._isDSTShifted))return this._isDSTShifted;var et={},tt;return copyConfig(et,this),et=prepareConfig(et),et._a?(tt=et._isUTC?createUTC(et._a):createLocal(et._a),this._isDSTShifted=this.isValid()&&compareArrays(et._a,tt.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(et,tt){var rt=et,nt=null,lt,ut,dt;return isDuration(et)?rt={ms:et._milliseconds,d:et._days,M:et._months}:isNumber$5(et)||!isNaN(+et)?(rt={},tt?rt[tt]=+et:rt.milliseconds=+et):(nt=aspNetRegex.exec(et))?(lt=nt[1]==="-"?-1:1,rt={y:0,d:toInt(nt[DATE])*lt,h:toInt(nt[HOUR])*lt,m:toInt(nt[MINUTE])*lt,s:toInt(nt[SECOND])*lt,ms:toInt(absRound(nt[MILLISECOND]*1e3))*lt}):(nt=isoRegex.exec(et))?(lt=nt[1]==="-"?-1:1,rt={y:parseIso(nt[2],lt),M:parseIso(nt[3],lt),w:parseIso(nt[4],lt),d:parseIso(nt[5],lt),h:parseIso(nt[6],lt),m:parseIso(nt[7],lt),s:parseIso(nt[8],lt)}):rt==null?rt={}:typeof rt=="object"&&("from"in rt||"to"in rt)&&(dt=momentsDifference(createLocal(rt.from),createLocal(rt.to)),rt={},rt.ms=dt.milliseconds,rt.M=dt.months),ut=new Duration(rt),isDuration(et)&&hasOwnProp(et,"_locale")&&(ut._locale=et._locale),isDuration(et)&&hasOwnProp(et,"_isValid")&&(ut._isValid=et._isValid),ut}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(et,tt){var rt=et&&parseFloat(et.replace(",","."));return(isNaN(rt)?0:rt)*tt}function positiveMomentsDifference(et,tt){var rt={};return rt.months=tt.month()-et.month()+(tt.year()-et.year())*12,et.clone().add(rt.months,"M").isAfter(tt)&&--rt.months,rt.milliseconds=+tt-+et.clone().add(rt.months,"M"),rt}function momentsDifference(et,tt){var rt;return et.isValid()&&tt.isValid()?(tt=cloneWithOffset(tt,et),et.isBefore(tt)?rt=positiveMomentsDifference(et,tt):(rt=positiveMomentsDifference(tt,et),rt.milliseconds=-rt.milliseconds,rt.months=-rt.months),rt):{milliseconds:0,months:0}}function createAdder(et,tt){return function(rt,nt){var lt,ut;return nt!==null&&!isNaN(+nt)&&(deprecateSimple(tt,"moment()."+tt+"(period, number) is deprecated. Please use moment()."+tt+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ut=rt,rt=nt,nt=ut),lt=createDuration(rt,nt),addSubtract(this,lt,et),this}}function addSubtract(et,tt,rt,nt){var lt=tt._milliseconds,ut=absRound(tt._days),dt=absRound(tt._months);et.isValid()&&(nt=nt??!0,dt&&setMonth(et,get$4(et,"Month")+dt*rt),ut&&set$1$1(et,"Date",get$4(et,"Date")+ut*rt),lt&&et._d.setTime(et._d.valueOf()+lt*rt),nt&&hooks.updateOffset(et,ut||dt))}var add$2=createAdder(1,"add"),subtract$2=createAdder(-1,"subtract");function isString$6(et){return typeof et=="string"||et instanceof String}function isMomentInput(et){return isMoment(et)||isDate$4(et)||isString$6(et)||isNumber$5(et)||isNumberOrStringArray(et)||isMomentInputObject(et)||et===null||et===void 0}function isMomentInputObject(et){var tt=isObject$f(et)&&!isObjectEmpty$2(et),rt=!1,nt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],lt,ut,dt=nt.length;for(lt=0;lt<dt;lt+=1)ut=nt[lt],rt=rt||hasOwnProp(et,ut);return tt&&rt}function isNumberOrStringArray(et){var tt=isArray$k(et),rt=!1;return tt&&(rt=et.filter(function(nt){return!isNumber$5(nt)&&isString$6(et)}).length===0),tt&&rt}function isCalendarSpec(et){var tt=isObject$f(et)&&!isObjectEmpty$2(et),rt=!1,nt=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],lt,ut;for(lt=0;lt<nt.length;lt+=1)ut=nt[lt],rt=rt||hasOwnProp(et,ut);return tt&&rt}function getCalendarFormat(et,tt){var rt=et.diff(tt,"days",!0);return rt<-6?"sameElse":rt<-1?"lastWeek":rt<0?"lastDay":rt<1?"sameDay":rt<2?"nextDay":rt<7?"nextWeek":"sameElse"}function calendar$1(et,tt){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(et=arguments[0],tt=void 0):isCalendarSpec(arguments[0])&&(tt=arguments[0],et=void 0):(et=void 0,tt=void 0));var rt=et||createLocal(),nt=cloneWithOffset(rt,this).startOf("day"),lt=hooks.calendarFormat(this,nt)||"sameElse",ut=tt&&(isFunction$8(tt[lt])?tt[lt].call(this,rt):tt[lt]);return this.format(ut||this.localeData().calendar(lt,this,createLocal(rt)))}function clone$2(){return new Moment(this)}function isAfter(et,tt){var rt=isMoment(et)?et:createLocal(et);return this.isValid()&&rt.isValid()?(tt=normalizeUnits(tt)||"millisecond",tt==="millisecond"?this.valueOf()>rt.valueOf():rt.valueOf()<this.clone().startOf(tt).valueOf()):!1}function isBefore(et,tt){var rt=isMoment(et)?et:createLocal(et);return this.isValid()&&rt.isValid()?(tt=normalizeUnits(tt)||"millisecond",tt==="millisecond"?this.valueOf()<rt.valueOf():this.clone().endOf(tt).valueOf()<rt.valueOf()):!1}function isBetween$2(et,tt,rt,nt){var lt=isMoment(et)?et:createLocal(et),ut=isMoment(tt)?tt:createLocal(tt);return this.isValid()&&lt.isValid()&&ut.isValid()?(nt=nt||"()",(nt[0]==="("?this.isAfter(lt,rt):!this.isBefore(lt,rt))&&(nt[1]===")"?this.isBefore(ut,rt):!this.isAfter(ut,rt))):!1}function isSame(et,tt){var rt=isMoment(et)?et:createLocal(et),nt;return this.isValid()&&rt.isValid()?(tt=normalizeUnits(tt)||"millisecond",tt==="millisecond"?this.valueOf()===rt.valueOf():(nt=rt.valueOf(),this.clone().startOf(tt).valueOf()<=nt&&nt<=this.clone().endOf(tt).valueOf())):!1}function isSameOrAfter(et,tt){return this.isSame(et,tt)||this.isAfter(et,tt)}function isSameOrBefore(et,tt){return this.isSame(et,tt)||this.isBefore(et,tt)}function diff(et,tt,rt){var nt,lt,ut;if(!this.isValid())return NaN;if(nt=cloneWithOffset(et,this),!nt.isValid())return NaN;switch(lt=(nt.utcOffset()-this.utcOffset())*6e4,tt=normalizeUnits(tt),tt){case"year":ut=monthDiff(this,nt)/12;break;case"month":ut=monthDiff(this,nt);break;case"quarter":ut=monthDiff(this,nt)/3;break;case"second":ut=(this-nt)/1e3;break;case"minute":ut=(this-nt)/6e4;break;case"hour":ut=(this-nt)/36e5;break;case"day":ut=(this-nt-lt)/864e5;break;case"week":ut=(this-nt-lt)/6048e5;break;default:ut=this-nt}return rt?ut:absFloor(ut)}function monthDiff(et,tt){if(et.date()<tt.date())return-monthDiff(tt,et);var rt=(tt.year()-et.year())*12+(tt.month()-et.month()),nt=et.clone().add(rt,"months"),lt,ut;return tt-nt<0?(lt=et.clone().add(rt-1,"months"),ut=(tt-nt)/(nt-lt)):(lt=et.clone().add(rt+1,"months"),ut=(tt-nt)/(lt-nt)),-(rt+ut)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString$c(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(et){if(!this.isValid())return null;var tt=et!==!0,rt=tt?this.clone().utc():this;return rt.year()<0||rt.year()>9999?formatMoment(rt,tt?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction$8(Date.prototype.toISOString)?tt?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(rt,"Z")):formatMoment(rt,tt?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect$2(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var et="moment",tt="",rt,nt,lt,ut;return this.isLocal()||(et=this.utcOffset()===0?"moment.utc":"moment.parseZone",tt="Z"),rt="["+et+'("]',nt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",lt="-MM-DD[T]HH:mm:ss.SSS",ut=tt+'[")]',this.format(rt+nt+lt+ut)}function format$k(et){et||(et=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var tt=formatMoment(this,et);return this.localeData().postformat(tt)}function from$1(et,tt){return this.isValid()&&(isMoment(et)&&et.isValid()||createLocal(et).isValid())?createDuration({to:this,from:et}).locale(this.locale()).humanize(!tt):this.localeData().invalidDate()}function fromNow(et){return this.from(createLocal(),et)}function to(et,tt){return this.isValid()&&(isMoment(et)&&et.isValid()||createLocal(et).isValid())?createDuration({from:this,to:et}).locale(this.locale()).humanize(!tt):this.localeData().invalidDate()}function toNow(et){return this.to(createLocal(),et)}function locale(et){var tt;return et===void 0?this._locale._abbr:(tt=getLocale(et),tt!=null&&(this._locale=tt),this)}var lang=deprecate$1("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(et){return et===void 0?this.localeData():this.locale(et)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(et,tt){return(et%tt+tt)%tt}function localStartOfDate(et,tt,rt){return et<100&&et>=0?new Date(et+400,tt,rt)-MS_PER_400_YEARS:new Date(et,tt,rt).valueOf()}function utcStartOfDate(et,tt,rt){return et<100&&et>=0?Date.UTC(et+400,tt,rt)-MS_PER_400_YEARS:Date.UTC(et,tt,rt)}function startOf(et){var tt,rt;if(et=normalizeUnits(et),et===void 0||et==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,et){case"year":tt=rt(this.year(),0,1);break;case"quarter":tt=rt(this.year(),this.month()-this.month()%3,1);break;case"month":tt=rt(this.year(),this.month(),1);break;case"week":tt=rt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":tt=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":tt=rt(this.year(),this.month(),this.date());break;case"hour":tt=this._d.valueOf(),tt-=mod$1(tt+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":tt=this._d.valueOf(),tt-=mod$1(tt,MS_PER_MINUTE);break;case"second":tt=this._d.valueOf(),tt-=mod$1(tt,MS_PER_SECOND);break}return this._d.setTime(tt),hooks.updateOffset(this,!0),this}function endOf(et){var tt,rt;if(et=normalizeUnits(et),et===void 0||et==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,et){case"year":tt=rt(this.year()+1,0,1)-1;break;case"quarter":tt=rt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":tt=rt(this.year(),this.month()+1,1)-1;break;case"week":tt=rt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":tt=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":tt=rt(this.year(),this.month(),this.date()+1)-1;break;case"hour":tt=this._d.valueOf(),tt+=MS_PER_HOUR-mod$1(tt+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":tt=this._d.valueOf(),tt+=MS_PER_MINUTE-mod$1(tt,MS_PER_MINUTE)-1;break;case"second":tt=this._d.valueOf(),tt+=MS_PER_SECOND-mod$1(tt,MS_PER_SECOND)-1;break}return this._d.setTime(tt),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray$5(){var et=this;return[et.year(),et.month(),et.date(),et.hour(),et.minute(),et.second(),et.millisecond()]}function toObject(){var et=this;return{years:et.year(),months:et.month(),date:et.date(),hours:et.hours(),minutes:et.minutes(),seconds:et.seconds(),milliseconds:et.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend$1({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(et,tt,rt,nt){var lt=rt._locale.erasParse(et,nt,rt._strict);lt?getParsingFlags(rt).era=lt:getParsingFlags(rt).invalidEra=et});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(et,tt,rt,nt){var lt;rt._locale._eraYearOrdinalRegex&&(lt=et.match(rt._locale._eraYearOrdinalRegex)),rt._locale.eraYearOrdinalParse?tt[YEAR]=rt._locale.eraYearOrdinalParse(et,lt):tt[YEAR]=parseInt(et,10)});function localeEras(et,tt){var rt,nt,lt,ut=this._eras||getLocale("en")._eras;for(rt=0,nt=ut.length;rt<nt;++rt){switch(typeof ut[rt].since){case"string":lt=hooks(ut[rt].since).startOf("day"),ut[rt].since=lt.valueOf();break}switch(typeof ut[rt].until){case"undefined":ut[rt].until=1/0;break;case"string":lt=hooks(ut[rt].until).startOf("day").valueOf(),ut[rt].until=lt.valueOf();break}}return ut}function localeErasParse(et,tt,rt){var nt,lt,ut=this.eras(),dt,pt,ht;for(et=et.toUpperCase(),nt=0,lt=ut.length;nt<lt;++nt)if(dt=ut[nt].name.toUpperCase(),pt=ut[nt].abbr.toUpperCase(),ht=ut[nt].narrow.toUpperCase(),rt)switch(tt){case"N":case"NN":case"NNN":if(pt===et)return ut[nt];break;case"NNNN":if(dt===et)return ut[nt];break;case"NNNNN":if(ht===et)return ut[nt];break}else if([dt,pt,ht].indexOf(et)>=0)return ut[nt]}function localeErasConvertYear(et,tt){var rt=et.since<=et.until?1:-1;return tt===void 0?hooks(et.since).year():hooks(et.since).year()+(tt-et.offset)*rt}function getEraName(){var et,tt,rt,nt=this.localeData().eras();for(et=0,tt=nt.length;et<tt;++et)if(rt=this.clone().startOf("day").valueOf(),nt[et].since<=rt&&rt<=nt[et].until||nt[et].until<=rt&&rt<=nt[et].since)return nt[et].name;return""}function getEraNarrow(){var et,tt,rt,nt=this.localeData().eras();for(et=0,tt=nt.length;et<tt;++et)if(rt=this.clone().startOf("day").valueOf(),nt[et].since<=rt&&rt<=nt[et].until||nt[et].until<=rt&&rt<=nt[et].since)return nt[et].narrow;return""}function getEraAbbr(){var et,tt,rt,nt=this.localeData().eras();for(et=0,tt=nt.length;et<tt;++et)if(rt=this.clone().startOf("day").valueOf(),nt[et].since<=rt&&rt<=nt[et].until||nt[et].until<=rt&&rt<=nt[et].since)return nt[et].abbr;return""}function getEraYear(){var et,tt,rt,nt,lt=this.localeData().eras();for(et=0,tt=lt.length;et<tt;++et)if(rt=lt[et].since<=lt[et].until?1:-1,nt=this.clone().startOf("day").valueOf(),lt[et].since<=nt&&nt<=lt[et].until||lt[et].until<=nt&&nt<=lt[et].since)return(this.year()-hooks(lt[et].since).year())*rt+lt[et].offset;return this.year()}function erasNameRegex(et){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),et?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(et){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),et?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(et){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),et?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(et,tt){return tt.erasAbbrRegex(et)}function matchEraName(et,tt){return tt.erasNameRegex(et)}function matchEraNarrow(et,tt){return tt.erasNarrowRegex(et)}function matchEraYearOrdinal(et,tt){return tt._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var et=[],tt=[],rt=[],nt=[],lt,ut,dt,pt,ht,mt=this.eras();for(lt=0,ut=mt.length;lt<ut;++lt)dt=regexEscape$1(mt[lt].name),pt=regexEscape$1(mt[lt].abbr),ht=regexEscape$1(mt[lt].narrow),tt.push(dt),et.push(pt),rt.push(ht),nt.push(dt),nt.push(pt),nt.push(ht);this._erasRegex=new RegExp("^("+nt.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+tt.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+et.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+rt.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(et,tt){addFormatToken(0,[et,et.length],0,tt)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(et,tt,rt,nt){tt[nt.substr(0,2)]=toInt(et)});addWeekParseToken(["gg","GG"],function(et,tt,rt,nt){tt[nt]=hooks.parseTwoDigitYear(et)});function getSetWeekYear(et){return getSetWeekYearHelper.call(this,et,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(et){return getSetWeekYearHelper.call(this,et,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var et=this.localeData()._week;return weeksInYear(this.year(),et.dow,et.doy)}function getWeeksInWeekYear(){var et=this.localeData()._week;return weeksInYear(this.weekYear(),et.dow,et.doy)}function getSetWeekYearHelper(et,tt,rt,nt,lt){var ut;return et==null?weekOfYear$1(this,nt,lt).year:(ut=weeksInYear(et,nt,lt),tt>ut&&(tt=ut),setWeekAll.call(this,et,tt,rt,nt,lt))}function setWeekAll(et,tt,rt,nt,lt){var ut=dayOfYearFromWeeks(et,tt,rt,nt,lt),dt=createUTCDate(ut.year,0,ut.dayOfYear);return this.year(dt.getUTCFullYear()),this.month(dt.getUTCMonth()),this.date(dt.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addRegexToken("Q",match1);addParseToken("Q",function(et,tt){tt[MONTH]=(toInt(et)-1)*3});function getSetQuarter(et){return et==null?Math.ceil((this.month()+1)/3):this.month((et-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addRegexToken("D",match1to2,match1to2NoLeadingZero);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(et,tt){return et?tt._dayOfMonthOrdinalParse||tt._ordinalParse:tt._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(et,tt){tt[DATE]=toInt(et.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(et,tt,rt){rt._dayOfYear=toInt(et)});function getSetDayOfYear(et){var tt=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return et==null?tt:this.add(et-tt,"d")}addFormatToken("m",["mm",2],0,"minute");addRegexToken("m",match1to2,match1to2HasZero);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addRegexToken("s",match1to2,match1to2HasZero);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token$2,getSetMillisecond;for(token$2="SSSS";token$2.length<=9;token$2+="S")addRegexToken(token$2,matchUnsigned);function parseMs(et,tt){tt[MILLISECOND]=toInt(("0."+et)*1e3)}for(token$2="S";token$2.length<=9;token$2+="S")addParseToken(token$2,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto$1=Moment.prototype;proto$1.add=add$2;proto$1.calendar=calendar$1;proto$1.clone=clone$2;proto$1.diff=diff;proto$1.endOf=endOf;proto$1.format=format$k;proto$1.from=from$1;proto$1.fromNow=fromNow;proto$1.to=to;proto$1.toNow=toNow;proto$1.get=stringGet;proto$1.invalidAt=invalidAt;proto$1.isAfter=isAfter;proto$1.isBefore=isBefore;proto$1.isBetween=isBetween$2;proto$1.isSame=isSame;proto$1.isSameOrAfter=isSameOrAfter;proto$1.isSameOrBefore=isSameOrBefore;proto$1.isValid=isValid$2;proto$1.lang=lang;proto$1.locale=locale;proto$1.localeData=localeData;proto$1.max=prototypeMax;proto$1.min=prototypeMin;proto$1.parsingFlags=parsingFlags;proto$1.set=stringSet;proto$1.startOf=startOf;proto$1.subtract=subtract$2;proto$1.toArray=toArray$5;proto$1.toObject=toObject;proto$1.toDate=toDate;proto$1.toISOString=toISOString;proto$1.inspect=inspect$2;typeof Symbol<"u"&&Symbol.for!=null&&(proto$1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto$1.toJSON=toJSON;proto$1.toString=toString$c;proto$1.unix=unix;proto$1.valueOf=valueOf;proto$1.creationData=creationData;proto$1.eraName=getEraName;proto$1.eraNarrow=getEraNarrow;proto$1.eraAbbr=getEraAbbr;proto$1.eraYear=getEraYear;proto$1.year=getSetYear;proto$1.isLeapYear=getIsLeapYear;proto$1.weekYear=getSetWeekYear;proto$1.isoWeekYear=getSetISOWeekYear;proto$1.quarter=proto$1.quarters=getSetQuarter;proto$1.month=getSetMonth;proto$1.daysInMonth=getDaysInMonth;proto$1.week=proto$1.weeks=getSetWeek;proto$1.isoWeek=proto$1.isoWeeks=getSetISOWeek;proto$1.weeksInYear=getWeeksInYear;proto$1.weeksInWeekYear=getWeeksInWeekYear;proto$1.isoWeeksInYear=getISOWeeksInYear;proto$1.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto$1.date=getSetDayOfMonth;proto$1.day=proto$1.days=getSetDayOfWeek;proto$1.weekday=getSetLocaleDayOfWeek;proto$1.isoWeekday=getSetISODayOfWeek;proto$1.dayOfYear=getSetDayOfYear;proto$1.hour=proto$1.hours=getSetHour;proto$1.minute=proto$1.minutes=getSetMinute;proto$1.second=proto$1.seconds=getSetSecond;proto$1.millisecond=proto$1.milliseconds=getSetMillisecond;proto$1.utcOffset=getSetOffset;proto$1.utc=setOffsetToUTC;proto$1.local=setOffsetToLocal;proto$1.parseZone=setOffsetToParsedOffset;proto$1.hasAlignedHourOffset=hasAlignedHourOffset;proto$1.isDST=isDaylightSavingTime;proto$1.isLocal=isLocal;proto$1.isUtcOffset=isUtcOffset;proto$1.isUtc=isUtc;proto$1.isUTC=isUtc;proto$1.zoneAbbr=getZoneAbbr;proto$1.zoneName=getZoneName;proto$1.dates=deprecate$1("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto$1.months=deprecate$1("months accessor is deprecated. Use month instead",getSetMonth);proto$1.years=deprecate$1("years accessor is deprecated. Use year instead",getSetYear);proto$1.zone=deprecate$1("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto$1.isDSTShifted=deprecate$1("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(et){return createLocal(et*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(et){return et}var proto$1$1=Locale.prototype;proto$1$1.calendar=calendar;proto$1$1.longDateFormat=longDateFormat;proto$1$1.invalidDate=invalidDate$1;proto$1$1.ordinal=ordinal;proto$1$1.preparse=preParsePostFormat;proto$1$1.postformat=preParsePostFormat;proto$1$1.relativeTime=relativeTime;proto$1$1.pastFuture=pastFuture;proto$1$1.set=set$3;proto$1$1.eras=localeEras;proto$1$1.erasParse=localeErasParse;proto$1$1.erasConvertYear=localeErasConvertYear;proto$1$1.erasAbbrRegex=erasAbbrRegex;proto$1$1.erasNameRegex=erasNameRegex;proto$1$1.erasNarrowRegex=erasNarrowRegex;proto$1$1.months=localeMonths;proto$1$1.monthsShort=localeMonthsShort;proto$1$1.monthsParse=localeMonthsParse;proto$1$1.monthsRegex=monthsRegex;proto$1$1.monthsShortRegex=monthsShortRegex;proto$1$1.week=localeWeek;proto$1$1.firstDayOfYear=localeFirstDayOfYear;proto$1$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1$1.weekdays=localeWeekdays;proto$1$1.weekdaysMin=localeWeekdaysMin;proto$1$1.weekdaysShort=localeWeekdaysShort;proto$1$1.weekdaysParse=localeWeekdaysParse;proto$1$1.weekdaysRegex=weekdaysRegex;proto$1$1.weekdaysShortRegex=weekdaysShortRegex;proto$1$1.weekdaysMinRegex=weekdaysMinRegex;proto$1$1.isPM=localeIsPM;proto$1$1.meridiem=localeMeridiem;function get$1$1(et,tt,rt,nt){var lt=getLocale(),ut=createUTC().set(nt,tt);return lt[rt](ut,et)}function listMonthsImpl(et,tt,rt){if(isNumber$5(et)&&(tt=et,et=void 0),et=et||"",tt!=null)return get$1$1(et,tt,rt,"month");var nt,lt=[];for(nt=0;nt<12;nt++)lt[nt]=get$1$1(et,nt,rt,"month");return lt}function listWeekdaysImpl(et,tt,rt,nt){typeof et=="boolean"?(isNumber$5(tt)&&(rt=tt,tt=void 0),tt=tt||""):(tt=et,rt=tt,et=!1,isNumber$5(tt)&&(rt=tt,tt=void 0),tt=tt||"");var lt=getLocale(),ut=et?lt._week.dow:0,dt,pt=[];if(rt!=null)return get$1$1(tt,(rt+ut)%7,nt,"day");for(dt=0;dt<7;dt++)pt[dt]=get$1$1(tt,(dt+ut)%7,nt,"day");return pt}function listMonths(et,tt){return listMonthsImpl(et,tt,"months")}function listMonthsShort(et,tt){return listMonthsImpl(et,tt,"monthsShort")}function listWeekdays(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdays")}function listWeekdaysShort(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdaysShort")}function listWeekdaysMin(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(et){var tt=et%10,rt=toInt(et%100/10)===1?"th":tt===1?"st":tt===2?"nd":tt===3?"rd":"th";return et+rt}});hooks.lang=deprecate$1("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate$1("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs$1(){var et=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),et.milliseconds=mathAbs(et.milliseconds),et.seconds=mathAbs(et.seconds),et.minutes=mathAbs(et.minutes),et.hours=mathAbs(et.hours),et.months=mathAbs(et.months),et.years=mathAbs(et.years),this}function addSubtract$1(et,tt,rt,nt){var lt=createDuration(tt,rt);return et._milliseconds+=nt*lt._milliseconds,et._days+=nt*lt._days,et._months+=nt*lt._months,et._bubble()}function add$1$1(et,tt){return addSubtract$1(this,et,tt,1)}function subtract$1$1(et,tt){return addSubtract$1(this,et,tt,-1)}function absCeil(et){return et<0?Math.floor(et):Math.ceil(et)}function bubble(){var et=this._milliseconds,tt=this._days,rt=this._months,nt=this._data,lt,ut,dt,pt,ht;return et>=0&&tt>=0&&rt>=0||et<=0&&tt<=0&&rt<=0||(et+=absCeil(monthsToDays(rt)+tt)*864e5,tt=0,rt=0),nt.milliseconds=et%1e3,lt=absFloor(et/1e3),nt.seconds=lt%60,ut=absFloor(lt/60),nt.minutes=ut%60,dt=absFloor(ut/60),nt.hours=dt%24,tt+=absFloor(dt/24),ht=absFloor(daysToMonths(tt)),rt+=ht,tt-=absCeil(monthsToDays(ht)),pt=absFloor(rt/12),rt%=12,nt.days=tt,nt.months=rt,nt.years=pt,this}function daysToMonths(et){return et*4800/146097}function monthsToDays(et){return et*146097/4800}function as(et){if(!this.isValid())return NaN;var tt,rt,nt=this._milliseconds;if(et=normalizeUnits(et),et==="month"||et==="quarter"||et==="year")switch(tt=this._days+nt/864e5,rt=this._months+daysToMonths(tt),et){case"month":return rt;case"quarter":return rt/3;case"year":return rt/12}else switch(tt=this._days+Math.round(monthsToDays(this._months)),et){case"week":return tt/7+nt/6048e5;case"day":return tt+nt/864e5;case"hour":return tt*24+nt/36e5;case"minute":return tt*1440+nt/6e4;case"second":return tt*86400+nt/1e3;case"millisecond":return Math.floor(tt*864e5)+nt;default:throw new Error("Unknown unit "+et)}}function makeAs(et){return function(){return this.as(et)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y"),valueOf$1=asMilliseconds;function clone$1$1(){return createDuration(this)}function get$2$1(et){return et=normalizeUnits(et),this.isValid()?this[et+"s"]():NaN}function makeGetter(et){return function(){return this.isValid()?this._data[et]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round$5=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(et,tt,rt,nt,lt){return lt.relativeTime(tt||1,!!rt,et,nt)}function relativeTime$1(et,tt,rt,nt){var lt=createDuration(et).abs(),ut=round$5(lt.as("s")),dt=round$5(lt.as("m")),pt=round$5(lt.as("h")),ht=round$5(lt.as("d")),mt=round$5(lt.as("M")),xt=round$5(lt.as("w")),Mt=round$5(lt.as("y")),vt=ut<=rt.ss&&["s",ut]||ut<rt.s&&["ss",ut]||dt<=1&&["m"]||dt<rt.m&&["mm",dt]||pt<=1&&["h"]||pt<rt.h&&["hh",pt]||ht<=1&&["d"]||ht<rt.d&&["dd",ht];return rt.w!=null&&(vt=vt||xt<=1&&["w"]||xt<rt.w&&["ww",xt]),vt=vt||mt<=1&&["M"]||mt<rt.M&&["MM",mt]||Mt<=1&&["y"]||["yy",Mt],vt[2]=tt,vt[3]=+et>0,vt[4]=nt,substituteTimeAgo.apply(null,vt)}function getSetRelativeTimeRounding(et){return et===void 0?round$5:typeof et=="function"?(round$5=et,!0):!1}function getSetRelativeTimeThreshold(et,tt){return thresholds[et]===void 0?!1:tt===void 0?thresholds[et]:(thresholds[et]=tt,et==="s"&&(thresholds.ss=tt-1),!0)}function humanize(et,tt){if(!this.isValid())return this.localeData().invalidDate();var rt=!1,nt=thresholds,lt,ut;return typeof et=="object"&&(tt=et,et=!1),typeof et=="boolean"&&(rt=et),typeof tt=="object"&&(nt=Object.assign({},thresholds,tt),tt.s!=null&&tt.ss==null&&(nt.ss=tt.s-1)),lt=this.localeData(),ut=relativeTime$1(this,!rt,nt,lt),rt&&(ut=lt.pastFuture(+this,ut)),lt.postformat(ut)}var abs$1$1=Math.abs;function sign$1(et){return(et>0)-(et<0)||+et}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var et=abs$1$1(this._milliseconds)/1e3,tt=abs$1$1(this._days),rt=abs$1$1(this._months),nt,lt,ut,dt,pt=this.asSeconds(),ht,mt,xt,Mt;return pt?(nt=absFloor(et/60),lt=absFloor(nt/60),et%=60,nt%=60,ut=absFloor(rt/12),rt%=12,dt=et?et.toFixed(3).replace(/\.?0+$/,""):"",ht=pt<0?"-":"",mt=sign$1(this._months)!==sign$1(pt)?"-":"",xt=sign$1(this._days)!==sign$1(pt)?"-":"",Mt=sign$1(this._milliseconds)!==sign$1(pt)?"-":"",ht+"P"+(ut?mt+ut+"Y":"")+(rt?mt+rt+"M":"")+(tt?xt+tt+"D":"")+(lt||nt||et?"T":"")+(lt?Mt+lt+"H":"")+(nt?Mt+nt+"M":"")+(et?Mt+dt+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs$1;proto$2.add=add$1$1;proto$2.subtract=subtract$1$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1$1;proto$2.get=get$2$1;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate$1("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(et,tt,rt){rt._d=new Date(parseFloat(et)*1e3)});addParseToken("x",function(et,tt,rt){rt._d=new Date(toInt(et))});//! moment.js
hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min$1;hooks.max=max$2;hooks.now=now$2;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate$4;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const moment$3=Object.freeze(Object.defineProperty({__proto__:null,default:hooks},Symbol.toStringTag,{value:"Module"})),require$$0$6=getAugmentedNamespace(moment$3);(function(et){//! moment-timezone.js
//! version : 0.5.45
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(tt,rt){et.exports?et.exports=rt(require$$0$6):rt(tt.moment)})(commonjsGlobal$1,function(tt){tt.version===void 0&&tt.default&&(tt=tt.default);var rt="0.5.45",nt={},lt={},ut={},dt={},pt={},ht;(!tt||typeof tt.version!="string")&&rr("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var mt=tt.version.split("."),xt=+mt[0],Mt=+mt[1];(xt<2||xt===2&&Mt<6)&&rr("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+tt.version+". See momentjs.com");function vt(ur){return ur>96?ur-87:ur>64?ur-29:ur-48}function Ot(ur){var xr=0,Mr=ur.split("."),Ar=Mr[0],Ir=Mr[1]||"",Rr=1,wr,qr=0,Hr=1;for(ur.charCodeAt(0)===45&&(xr=1,Hr=-1),xr;xr<Ar.length;xr++)wr=vt(Ar.charCodeAt(xr)),qr=60*qr+wr;for(xr=0;xr<Ir.length;xr++)Rr=Rr/60,wr=vt(Ir.charCodeAt(xr)),qr+=wr*Rr;return qr*Hr}function At(ur){for(var xr=0;xr<ur.length;xr++)ur[xr]=Ot(ur[xr])}function Rt(ur,xr){for(var Mr=0;Mr<xr;Mr++)ur[Mr]=Math.round((ur[Mr-1]||0)+ur[Mr]*6e4);ur[xr-1]=1/0}function zt(ur,xr){var Mr=[],Ar;for(Ar=0;Ar<xr.length;Ar++)Mr[Ar]=ur[xr[Ar]];return Mr}function Tt(ur){var xr=ur.split("|"),Mr=xr[2].split(" "),Ar=xr[3].split(""),Ir=xr[4].split(" ");return At(Mr),At(Ar),At(Ir),Rt(Ir,Ar.length),{name:xr[0],abbrs:zt(xr[1].split(" "),Ar),offsets:zt(Mr,Ar),untils:Ir,population:xr[5]|0}}function Ct(ur){ur&&this._set(Tt(ur))}function It(ur,xr){var Mr=xr.length;if(ur<xr[0])return 0;if(Mr>1&&xr[Mr-1]===1/0&&ur>=xr[Mr-2])return Mr-1;if(ur>=xr[Mr-1])return-1;for(var Ar,Ir=0,Rr=Mr-1;Rr-Ir>1;)Ar=Math.floor((Ir+Rr)/2),xr[Ar]<=ur?Ir=Ar:Rr=Ar;return Rr}Ct.prototype={_set:function(ur){this.name=ur.name,this.abbrs=ur.abbrs,this.untils=ur.untils,this.offsets=ur.offsets,this.population=ur.population},_index:function(ur){var xr=+ur,Mr=this.untils,Ar;if(Ar=It(xr,Mr),Ar>=0)return Ar},countries:function(){var ur=this.name;return Object.keys(ut).filter(function(xr){return ut[xr].zones.indexOf(ur)!==-1})},parse:function(ur){var xr=+ur,Mr=this.offsets,Ar=this.untils,Ir=Ar.length-1,Rr,wr,qr,Hr;for(Hr=0;Hr<Ir;Hr++)if(Rr=Mr[Hr],wr=Mr[Hr+1],qr=Mr[Hr&&Hr-1],Rr<wr&&cr.moveAmbiguousForward?Rr=wr:Rr>qr&&cr.moveInvalidForward&&(Rr=qr),xr<Ar[Hr]-Rr*6e4)return Mr[Hr];return Mr[Ir]},abbr:function(ur){return this.abbrs[this._index(ur)]},offset:function(ur){return rr("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(ur)]},utcOffset:function(ur){return this.offsets[this._index(ur)]}};function Dt(ur,xr){this.name=ur,this.zones=xr}function kt(ur){var xr=ur.toTimeString(),Mr=xr.match(/\([a-z ]+\)/i);Mr&&Mr[0]?(Mr=Mr[0].match(/[A-Z]/g),Mr=Mr?Mr.join(""):void 0):(Mr=xr.match(/[A-Z]{3,5}/g),Mr=Mr?Mr[0]:void 0),Mr==="GMT"&&(Mr=void 0),this.at=+ur,this.abbr=Mr,this.offset=ur.getTimezoneOffset()}function qt(ur){this.zone=ur,this.offsetScore=0,this.abbrScore=0}qt.prototype.scoreOffsetAt=function(ur){this.offsetScore+=Math.abs(this.zone.utcOffset(ur.at)-ur.offset),this.zone.abbr(ur.at).replace(/[^A-Z]/g,"")!==ur.abbr&&this.abbrScore++};function Nt(ur,xr){for(var Mr,Ar;Ar=((xr.at-ur.at)/12e4|0)*6e4;)Mr=new kt(new Date(ur.at+Ar)),Mr.offset===ur.offset?ur=Mr:xr=Mr;return ur}function Yt(){var ur=new Date().getFullYear()-2,xr=new kt(new Date(ur,0,1)),Mr=xr.offset,Ar=[xr],Ir,Rr,wr,qr;for(qr=1;qr<48;qr++)wr=new Date(ur,qr,1).getTimezoneOffset(),wr!==Mr&&(Rr=new kt(new Date(ur,qr,1)),Ir=Nt(xr,Rr),Ar.push(Ir),Ar.push(new kt(new Date(Ir.at+6e4))),xr=Rr,Mr=wr);for(qr=0;qr<4;qr++)Ar.push(new kt(new Date(ur+qr,0,1))),Ar.push(new kt(new Date(ur+qr,6,1)));return Ar}function Kt(ur,xr){return ur.offsetScore!==xr.offsetScore?ur.offsetScore-xr.offsetScore:ur.abbrScore!==xr.abbrScore?ur.abbrScore-xr.abbrScore:ur.zone.population!==xr.zone.population?xr.zone.population-ur.zone.population:xr.zone.name.localeCompare(ur.zone.name)}function Jt(ur,xr){var Mr,Ar;for(At(xr),Mr=0;Mr<xr.length;Mr++)Ar=xr[Mr],pt[Ar]=pt[Ar]||{},pt[Ar][ur]=!0}function Qt(ur){var xr=ur.length,Mr={},Ar=[],Ir={},Rr,wr,qr,Hr;for(Rr=0;Rr<xr;Rr++)if(qr=ur[Rr].offset,!Ir.hasOwnProperty(qr)){Hr=pt[qr]||{};for(wr in Hr)Hr.hasOwnProperty(wr)&&(Mr[wr]=!0);Ir[qr]=!0}for(Rr in Mr)Mr.hasOwnProperty(Rr)&&Ar.push(dt[Rr]);return Ar}function Bt(){try{var ur=Intl.DateTimeFormat().resolvedOptions().timeZone;if(ur&&ur.length>3){var xr=dt[$t(ur)];if(xr)return xr;rr("Moment Timezone found "+ur+" from the Intl api, but did not have that data loaded.")}}catch{}var Mr=Yt(),Ar=Mr.length,Ir=Qt(Mr),Rr=[],wr,qr,Hr;for(qr=0;qr<Ir.length;qr++){for(wr=new qt(Wt(Ir[qr])),Hr=0;Hr<Ar;Hr++)wr.scoreOffsetAt(Mr[Hr]);Rr.push(wr)}return Rr.sort(Kt),Rr.length>0?Rr[0].zone.name:void 0}function Ft(ur){return(!ht||ur)&&(ht=Bt()),ht}function $t(ur){return(ur||"").toLowerCase().replace(/\//g,"_")}function jt(ur){var xr,Mr,Ar,Ir;for(typeof ur=="string"&&(ur=[ur]),xr=0;xr<ur.length;xr++)Ar=ur[xr].split("|"),Mr=Ar[0],Ir=$t(Mr),nt[Ir]=ur[xr],dt[Ir]=Mr,Jt(Ir,Ar[2].split(" "))}function Wt(ur,xr){ur=$t(ur);var Mr=nt[ur],Ar;return Mr instanceof Ct?Mr:typeof Mr=="string"?(Mr=new Ct(Mr),nt[ur]=Mr,Mr):lt[ur]&&xr!==Wt&&(Ar=Wt(lt[ur],Wt))?(Mr=nt[ur]=new Ct,Mr._set(Ar),Mr.name=dt[ur],Mr):null}function Ut(){var ur,xr=[];for(ur in dt)dt.hasOwnProperty(ur)&&(nt[ur]||nt[lt[ur]])&&dt[ur]&&xr.push(dt[ur]);return xr.sort()}function Vt(){return Object.keys(ut)}function Ht(ur){var xr,Mr,Ar,Ir;for(typeof ur=="string"&&(ur=[ur]),xr=0;xr<ur.length;xr++)Mr=ur[xr].split("|"),Ar=$t(Mr[0]),Ir=$t(Mr[1]),lt[Ar]=Ir,dt[Ar]=Mr[0],lt[Ir]=Ar,dt[Ir]=Mr[1]}function Gt(ur){var xr,Mr,Ar,Ir;if(!(!ur||!ur.length))for(xr=0;xr<ur.length;xr++)Ir=ur[xr].split("|"),Mr=Ir[0].toUpperCase(),Ar=Ir[1].split(" "),ut[Mr]=new Dt(Mr,Ar)}function Zt(ur){return ur=ur.toUpperCase(),ut[ur]||null}function Xt(ur,xr){if(ur=Zt(ur),!ur)return null;var Mr=ur.zones.sort();return xr?Mr.map(function(Ar){var Ir=Wt(Ar);return{name:Ar,offset:Ir.utcOffset(new Date)}}):Mr}function er(ur){jt(ur.zones),Ht(ur.links),Gt(ur.countries),cr.dataVersion=ur.version}function nr(ur){return nr.didShowError||(nr.didShowError=!0,rr("moment.tz.zoneExists('"+ur+"') has been deprecated in favor of !moment.tz.zone('"+ur+"')")),!!Wt(ur)}function or(ur){var xr=ur._f==="X"||ur._f==="x";return!!(ur._a&&ur._tzm===void 0&&!xr)}function rr(ur){typeof console<"u"&&typeof console.error=="function"&&console.error(ur)}function cr(ur){var xr=Array.prototype.slice.call(arguments,0,-1),Mr=arguments[arguments.length-1],Ar=tt.utc.apply(null,xr),Ir;return!tt.isMoment(ur)&&or(Ar)&&(Ir=Wt(Mr))&&Ar.add(Ir.parse(Ar),"minutes"),Ar.tz(Mr),Ar}cr.version=rt,cr.dataVersion="",cr._zones=nt,cr._links=lt,cr._names=dt,cr._countries=ut,cr.add=jt,cr.link=Ht,cr.load=er,cr.zone=Wt,cr.zoneExists=nr,cr.guess=Ft,cr.names=Ut,cr.Zone=Ct,cr.unpack=Tt,cr.unpackBase60=Ot,cr.needsOffset=or,cr.moveInvalidForward=!0,cr.moveAmbiguousForward=!1,cr.countries=Vt,cr.zonesForCountry=Xt;var ir=tt.fn;tt.tz=cr,tt.defaultZone=null,tt.updateOffset=function(ur,xr){var Mr=tt.defaultZone,Ar;if(ur._z===void 0&&(Mr&&or(ur)&&!ur._isUTC&&ur.isValid()&&(ur._d=tt.utc(ur._a)._d,ur.utc().add(Mr.parse(ur),"minutes")),ur._z=Mr),ur._z)if(Ar=ur._z.utcOffset(ur),Math.abs(Ar)<16&&(Ar=Ar/60),ur.utcOffset!==void 0){var Ir=ur._z;ur.utcOffset(-Ar,xr),ur._z=Ir}else ur.zone(Ar,xr)},ir.tz=function(ur,xr){if(ur){if(typeof ur!="string")throw new Error("Time zone name must be a string, got "+ur+" ["+typeof ur+"]");return this._z=Wt(ur),this._z?tt.updateOffset(this,xr):rr("Moment Timezone has no data for "+ur+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name};function dr(ur){return function(){return this._z?this._z.abbr(this):ur.call(this)}}function gr(ur){return function(){return this._z=null,ur.apply(this,arguments)}}function br(ur){return function(){return arguments.length>0&&(this._z=null),ur.apply(this,arguments)}}ir.zoneName=dr(ir.zoneName),ir.zoneAbbr=dr(ir.zoneAbbr),ir.utc=gr(ir.utc),ir.local=gr(ir.local),ir.utcOffset=br(ir.utcOffset),tt.tz.setDefault=function(ur){return(xt<2||xt===2&&Mt<9)&&rr("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+tt.version+"."),tt.defaultZone=ur?Wt(ur):null,tt};var ar=tt.momentProperties;return Object.prototype.toString.call(ar)==="[object Array]"?(ar.push("_z"),ar.push("_a")):ar&&(ar._z=null),tt})})(momentTimezone);var momentTimezoneExports$1=momentTimezone.exports;const version$2="2024a",zones=["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|LMT PMT WET WEST CET CEST|-c.c -9.l 0 -10 -10 -20|01232323232323232454542423234542324|-3bQ0c.c MDA2.P cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|LMT EET EEST|-25.9 -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBC5.9 1AQM5.9 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0 kSp0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|32e5","Africa/Ceuta|LMT WET WEST CET CEST|l.g 0 -10 -10 -20|0121212121212121212121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2M0M0 GdX0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|20e4","Africa/Johannesburg|LMT SAST SAST SAST|-1Q -1u -20 -30|0123232|-39EpQ qTcm 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|LMT MMT MMT GMT|H.8 H.8 I.u 0|0123|-3ygng.Q 1usM0 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT LMT GMT WAT|-q.U A.J 0 -10|01232|-3tooq.U 18aoq.U 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|LMT PMT CET CEST|-E.I -9.l -10 -20|01232323232323232323232323232323232|-3zO0E.I 1cBAv.n 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|LMT +0130 SAST SAST CAT WAT|-18.o -1u -20 -30 -20 -10|012324545454545454545454545454545454545454545454545454|-39Ep8.o qTbC.o 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|LMT LMT NST NWT NPT BST BDT AHST HST HDT|-cd.m bK.C b0 a0 a0 b0 a0 a0 a0 90|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVzf.p 1EX1d.m 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|LMT LMT AST AWT APT AHST AHDT YST AKST AKDT|-e0.o 9X.A a0 90 90 a0 90 90 90 80|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVxs.n 1EX20.o 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|LMT AST AWT APT|4o.p 40 30 30|01231|-2Qi7z.z 1IUbz.z 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|LMT CMT -04 -03 -02|3R.M 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343434343|-331U6.c 125cn pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|LMT CMT -04 -03 -02|4n.8 4g.M 40 30 20|012323232323232323232323232323232323232323234343434243432343|-331TA.Q 125bR.E pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|LMT CMT -04 -03 -02|4g.M 4g.M 40 30 20|012323232323232323232323232323232323232323234343434243434343|-331TH.c 125c0 pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|LMT CMT -04 -03 -02|4l.c 4g.M 40 30 20|0123232323232323232323232323232323232323232343434232434343|-331TC.M 125bT.A pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|LMT CMT -04 -03 -02|4r.o 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342343432343|-331Tw.A 125bN.o pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|LMT CMT -04 -03 -02|4z.g 4g.M 40 30 20|012323232323232323232323232323232323232323234343423232432343|-331To.I 125bF.w pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|LMT CMT -04 -03 -02|4A.Q 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343432343|-331Tn.8 125bD.U pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|LMT CMT -04 -03 -02|4l.E 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342434343|-331TC.k 125bT.8 pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|LMT CMT -04 -03 -02|4y.4 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342343432343|-331Tp.U 125bG.I pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|LMT CMT -04 -03 -02|4p.o 4g.M 40 30 20|0123232323232323232323232323232323232323232343434232323432323|-331Ty.A 125bP.o pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|LMT CMT -04 -03 -02|4k.Q 4g.M 40 30 20|01232323232323232323232323232323232323232323434343424343234343|-331TD.8 125bT.U pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|LMT CMT -04 -03 -02|4x.c 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343432343|-331Tq.M 125bH.A pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|LMT AMT -04 -03|3O.E 3O.E 40 30|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-3eLw9.k 1FGo0 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|LMT CMT EST|5i.8 5j.A 50|012|-3eLuF.Q Iy01.s|15e5","America/Bahia_Banderas|LMT MST CST MDT PST CDT|71 70 60 60 80 50|0121312141313131313131313131313131313152525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|LMT BMT -05 -04|4U.g 4U.g 50 40|01232|-3sTv3.I 1eIo0 38yo3.I 1PX0|90e5","America/Boise|LMT PST PDT MST MWT MPT MDT|7I.N 80 70 70 60 60 60|01212134536363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-3tFE0 1nEe0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDT CST CDT EST|0 70 60 60 60 60 50 50|012314141414141414141414141414141414141414141414141414141414567541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-21Jc0 RO90 8x20 ix0 14HB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|LMT CMT -0430 -04|4r.I 4r.E 4u 40|012323|-3eLvw.g ROnX.U 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|LMT CST CDT EST CWT CPT|5O.A 60 50 50 50 50|012121212121212121212121212121212121213121212121214512121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST MDT CDT|74.k 70 60 60 50|0121312424231313131313131313131313131313131313131313131313132|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|81e4","America/Ciudad_Juarez|LMT MST CST MDT CDT|75.U 70 60 60 50|01213124242313131313131313131313131313131313131313131313131321313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 cm0 EP0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Costa_Rica|LMT SJMT CST CDT|5A.d 5A.d 60 50|01232323232|-3eLun.L 1fyo0 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|LMT MST MDT MWT|7s.i 70 60 60|012121313121|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|LMT PST PDT PWT PPT MST|80.U 80 70 70 70 70|01213412121212121212121212121212121212121212121212121212125|-3tofX.4 1nspX.4 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|LMT YST YDT YWT YPT YDDT PST PDT MST|9h.E 90 80 80 80 70 80 70 70|0121213415167676767676767676767676767676767676767676767676767676767676767676767676767676767678|-2MSeG.k GWpG.k 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|LMT MST MDT MWT MPT|6X.U 70 60 60 60|012121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFF0 1nEe0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 4Q00 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|LMT PST PDT PWT PPT MST|8a.L 80 70 70 70 70|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121215|-3tofN.d 1nspN.d 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|LMT CST CDT CWT CPT EST EDT|5I.C 60 50 50 50 50 40|0121212134121212121212121212151565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02 -01|3q.U 30 20 10|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 2so0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|LMT NST NDT NST NDT NWT NPT AST ADT ADDT|41.E 3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|0121343434343434356343434343434343434343434343434343434343437878787878787878787878787878787878787878787879787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-3tojW.k 1nspt.c 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|LMT KMT EST EDT AST|4I.w 57.a 50 40 40|01232323232323232323232323232323232323232323232323232323232323232323232323243232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLvf.s RK0m.C 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|LMT QMT -05 -04|5j.k 5e 50 40|01232|-3eLuE.E 1DNzS.E 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|LMT HMT CST CDT|5t.s 5t.A 50 40|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLuu.w 1qx00.8 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST MDT PST|7n.Q 70 60 60 80|0121312141313131|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|LMT CST CDT CWT CPT EST|5K.u 60 50 50 50 50|01212134121212121212121212121212121212151212121212121212121212121212121212121212121212121252121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|LMT CST CDT CWT CPT EST EDT|5J.n 60 50 50 50 50 40|01212134121212121212121215656565656525656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|LMT CST CDT CWT CPT EST EDT|5N.7 60 50 50 50 50 40|012121341212121212121212121215121212121212121212121252125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|LMT CST CDT CWT CPT EST EDT|5L.3 60 50 50 50 50 40|012121341212121212121212121512165652121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|LMT CST CDT CWT CPT EST EDT|5E.g 60 50 50 50 50 40|0121213415656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|LMT CST CDT CWT CPT EST EDT|5O.7 60 50 50 50 50 40|012121341212121212121212121212121565652125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|LMT CST CDT CWT CPT EST EDT|5K.p 60 50 50 50 50 40|012121341212121212121212121212121212121565652165656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDT MDT MST|0 80 70 60 70|01212121212121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-FnA0 L3K0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDT CST CDT|0 40 40 50 40 60 50|0123434343434343434343434343434343434343434343434343434343456343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-16K00 7nX0 iv0 14HB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|LMT KMT EST EDT|57.a 57.a 50 40|01232323232323232323232|-3eLuQ.O RK00 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|LMT LMT PST PWT PPT PDT YDT YST AKST AKDT|-f2.j 8V.F 80 70 70 70 80 90 90 80|0123425252525252525252525252625252578989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVwq.s 1EX12.j 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|LMT CST CDT CWT CPT EST EDT|5H.2 60 50 50 50 50 40|01212121213412121212121212121212121212565656565656525656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|LMT CST CDT CWT CPT EST EDT|5D.o 60 50 50 50 50 40|01212134121212121212121212121212121212121212121212121212121212121212121212565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|LMT CMT BST -04|4w.A 4w.A 3w.A 40|0123|-3eLvr.o 1FIo0 13b0|19e5","America/Lima|LMT LMT -05 -04|58.c 58.A 50 40|01232323232323232|-3eLuP.M JcM0.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|LMT PST PDT PWT PPT|7Q.W 80 70 70 70|0121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFE0 1nEe0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|LMT MMT CST EST CDT|5J.8 5J.c 60 50 50|01232424232324242|-3eLue.Q 1Mhc0.4 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|LMT FFMT AST ADT|44.k 44.k 40 30|01232|-3eLvT.E PTA0 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6u 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST MDT PST|75.E 70 60 60 80|0121312141313131313131313131313131313131313131313131313131313131|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|44e4","America/Menominee|LMT CST CDT CWT CPT EST|5O.r 60 50 50 50 50|012121341212152121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3pdG9.x 1jce9.x 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|11e5","America/Metlakatla|LMT LMT PST PWT PPT PDT AKST AKDT|-fd.G 8K.i 80 70 70 70 90 80|0123425252525252525252525252525252526767672676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-48Pzs.L 1jVwf.5 1EX1d.G 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST MDT CDT CWT|6A.A 70 60 60 50 50|012131242425242424242424242424242424242424242424242424242424242424242|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mxUf.k 2LHcf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|LMT EST AST ADT AWT APT|4j.8 50 40 30 30 30|0123232323232323232323245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3txvE.Q J4ME.Q CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|LMT EST EDT EWT EPT|5h.w 50 40 40 40|012121212121212121212121212121212121212121212123412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-32B6G.s UFdG.s 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1qL0 11B0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|LMT EST EDT EWT EPT|4U.2 50 40 40 40|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFH0 1nEe0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nome|LMT LMT NST NWT NPT BST BDT YST AKST AKDT|-cW.m b1.C b0 a0 a0 b0 a0 90 90 80|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVyu.p 1EX1W.m 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|LMT MST MDT MWT MPT CST CDT|6L.7 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|LMT MST MDT MWT MPT CST CDT|6J.c 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|LMT MST MDT MWT MPT CST CDT|6J.D 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212121212121212121212121212565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST MDT CDT|6V.E 70 60 60 50|0121312424231313131313131313131313131313131313131313131313132424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 Rc0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|LMT PPMT EST EDT|4N.k 4N 50 40|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLva.E 15RLX.E 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|LMT SMT -05 -04 -03|4H.E 4G.J 50 40 30|01213132323232323232343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvg.k MJbX.5 fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Winnipeg|LMT CST CDT CWT CPT|6s.A 60 50 50 50|0121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3kLtv.o 1a3bv.o WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Rankin_Inlet|-00 CST CDT EST|0 60 50 50|01212121212121212121212121212121212121212121212121212121212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-vDc0 Bjk0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDT EST|0 60 50 50|01212121212121212121212121212121212121212121212121212121212321212121212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-SnA0 103I0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|LMT SMT -05 -04 -03|4G.J 4G.J 50 40 30|0121313232323232323432343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvh.f MJc0 fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 hX0 1q10 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|LMT SDMT EST EDT -0430 AST|4D.A 4E 50 40 4u 40|012324242424242525|-3eLvk.o 1Jic0.o 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|012132323232323232323232323232323232323232323232323232323232323232323232323232323232323232121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 2pA0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|452","America/Sitka|LMT LMT PST PWT PPT PDT YST AKST AKDT|-eW.L 91.d 80 70 70 70 90 90 80|0123425252525252525252525252525252567878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-48Pzs.L 1jVwu 1EX0W.L 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|LMT NST NDT NST NDT NWT NPT NDDT|3u.Q 3u.Q 2u.Q 3u 2u 2u 2u 1u|012121212121212121212121212121212121213434343434343435634343434343434343434343434343434343434343434343434343434343434343434343434343434343437343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3tokt.8 1l020 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Vancouver|LMT PST PDT PWT PPT|8c.s 80 70 70 70|01213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tofL.w 1nspL.w 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|LMT YST YDT YWT YPT YDDT PST PDT MST|90.c 90 80 80 80 70 80 70 70|0121213415167676767676767676767676767676767676767676767676767676767676767676767676767676767678|-2MSeX.M GWpX.M 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 LA0 ytd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Yakutat|LMT LMT YST YWT YPT YDT AKST AKDT|-eF.5 9i.T 90 80 80 80 90 80|0123425252525252525252525252525252526767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-48Pzs.L 1jVwL.G 1EX1F.5 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","Antarctica/Casey|-00 +08 +11|0 -80 -b0|012121212121212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01 14kX 1lf1 14kX 1lf1 13bX|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|LMT PMMT +10|-9M.E -9M.w -a0|012|-3D8VM.E AvA0.8|25e4","Antarctica/Macquarie|-00 AEST AEDT|0 -a0 -b0|0121012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2OPc0 Fb40 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|LMT NZMT NZST NZST NZDT|-bD.4 -bu -cu -c0 -d0|012131313131313131313131313134343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-46jLD.4 2nEO9.4 Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +07 +05|0 -70 -50|01012|-tjA0 1rWh0 1Nj0 1aTv0|25","Europe/Berlin|LMT CET CEST CEMT|-R.s -10 -20 -30|012121212121212321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-36RcR.s UbWR.s 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|41e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|0123232323232323232323212323232323232323232323232321|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 L4m0|15e5","Asia/Amman|LMT EET EEST +03|-2n.I -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|LMT BMT +03 +04|-2V.E -2V.A -30 -40|0123232323232323232323232323232323232323232323232323232|-3eLCV.E 18ao0.4 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|LMT BMT +07|-6G.4 -6G.4 -70|012|-3D8SG.4 1C000|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|LMT EET EEST|-2m -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3D8Om 1BWom 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|42e4","Asia/Kolkata|LMT HMT MMT IST +0630|-5R.s -5R.k -5l.a -5u -6u|01234343|-4Fg5R.s BKo0.8 1rDcw.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|LMT CST CDT|-85.H -80 -90|012121212121212121212121212121|-2M0U5.H Iuo5.H 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|LMT MMT +0530 +06 +0630|-5j.o -5j.w -5u -60 -6u|012342432|-3D8Rj.o 13inX.Q 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|LMT HMT +0630 +0530 +06 +07|-61.E -5R.k -6u -5u -60 -70|01232454|-3eLG1.E 26008.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST +03|-2p.c -20 -30 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|","Asia/Gaza|LMT EET EEST IST IDT|-2h.Q -20 -30 -20 -30|0121212121212121212121212121212121234343434343434343434343434343431212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBCh.Q 1Azeh.Q MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1lb0 14p0 1in0 17d0 1cL0 1cN0 19X0 1fB0 14n0 jB0 2L0 11B0 WL0 gN0 8n0 11B0 TX0 gN0 bb0 11B0 On0 jB0 dX0 11B0 Lz0 gN0 mn0 WN0 IL0 gN0 pb0 WN0 Db0 jB0 rX0 11B0 xz0 gN0 xz0 11B0 rX0 jB0 An0 11B0 pb0 gN0 IL0 WN0 mn0 gN0 Lz0 WN0 gL0 jB0 On0 11B0 bb0 gN0 TX0 11B0 5z0 jB0 WL0 11B0 2L0 jB0 11z0 1ip0 19X0 1cN0 1cL0 17d0 1in0 14p0 1lb0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1nX0 14p0 1in0 17d0 1fz0 1a10 19X0 1fB0 17b0 gN0 2L0 WN0 14n0 gN0 5z0 WN0 WL0 jB0 8n0 11B0 Rb0 gN0 dX0 11B0 Lz0 jB0 gL0 11B0 IL0 jB0 mn0 WN0 FX0 gN0 rX0 WN0 An0 jB0 uL0 11B0 uL0 gN0 An0 11B0 rX0 gN0 Db0 11B0 mn0 jB0 FX0 11B0 jz0 gN0 On0 WN0 dX0 jB0 Rb0 WN0 bb0 jB0 TX0 11B0 5z0 gN0 11z0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|18e5","Asia/Hebron|LMT EET EEST IST IDT|-2k.n -20 -30 -20 -30|012121212121212121212121212121212123434343434343434343434343434343121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBCk.n 1Azek.n MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1lb0 14p0 1in0 17d0 1cL0 1cN0 19X0 1fB0 14n0 jB0 2L0 11B0 WL0 gN0 8n0 11B0 TX0 gN0 bb0 11B0 On0 jB0 dX0 11B0 Lz0 gN0 mn0 WN0 IL0 gN0 pb0 WN0 Db0 jB0 rX0 11B0 xz0 gN0 xz0 11B0 rX0 jB0 An0 11B0 pb0 gN0 IL0 WN0 mn0 gN0 Lz0 WN0 gL0 jB0 On0 11B0 bb0 gN0 TX0 11B0 5z0 jB0 WL0 11B0 2L0 jB0 11z0 1ip0 19X0 1cN0 1cL0 17d0 1in0 14p0 1lb0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1nX0 14p0 1in0 17d0 1fz0 1a10 19X0 1fB0 17b0 gN0 2L0 WN0 14n0 gN0 5z0 WN0 WL0 jB0 8n0 11B0 Rb0 gN0 dX0 11B0 Lz0 jB0 gL0 11B0 IL0 jB0 mn0 WN0 FX0 gN0 rX0 WN0 An0 jB0 uL0 11B0 uL0 gN0 An0 11B0 rX0 gN0 Db0 11B0 mn0 jB0 FX0 11B0 jz0 gN0 On0 WN0 dX0 jB0 Rb0 WN0 bb0 jB0 TX0 11B0 5z0 gN0 11z0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.u -76.u -70 -80 -90|0123423232|-2yC76.u bK00 1h7b6.u 5lz0 18o0 3Oq0 k5c0 aVX0 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|LMT IMT +07 +08 +09|-6V.5 -6V.5 -70 -80 -90|012343434343434343434343234343434343434343434343434343434343434343|-3D8SV.5 1Bxc0 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|LMT IMT EET EEST +03 +04|-1T.Q -1U.U -20 -30 -30 -40|01232323232323232323232323232323232323232323232345423232323232323232323232323232323232323232323232323232323232323234|-3D8NT.Q 1ePXW.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|LMT BMT +0720 +0730 +09 +08 WIB|-77.c -77.c -7k -7u -90 -80 -70|012343536|-49jH7.c 2hiLL.c luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|LMT JMT IST IDT IDDT|-2k.S -2k.E -20 -30 -40|012323232323232432323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3D8Ok.S 1wvA0.e SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|LMT +04 +0430|-4A.M -40 -4u|012|-3eLEA.M 2dTcA.M|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|LMT SMT +07 +0720 +0730 +09 +08|-6T.p -6T.p -70 -7k -7u -90 -80|01234546|-2M0ST.p aIM0 17anT.p l5XE 17bO 8Fyu 1so10|71e5","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|LMT LMT PST PDT JST|fU -84 -80 -90 -90|01232423232|-54m84 2clc0 1vfc4 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 Mv90|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|LMT RMT +0630 +09|-6o.L -6o.L -6u -90|01232|-3D8So.L 1BnA0 SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|LMT CST JST CDT|-86 -80 -90 -90|012131313131313131313131313131313131313131|-30bk6 1FDc6 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|LMT TBMT +03 +04 +05|-2X.b -2X.b -30 -40 -50|01234343434343434343434323232343434343434343434323|-3D8OX.b 1LUM0 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +0430 +04 +05|-3p.I -3p.I -3u -4u -40 -50|012345423232323232323232323232323232323232323232323232323232323232323232|-2btDp.I Llc0 1FHaT.I 1pc0 120u Rc0 XA0 Wou JX0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|LMT JST JDT|-9i.X -90 -a0|0121212121|-3jE90 2qSo0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|LMT HMT -02 -01 +00 WET|1G.E 1S.w 20 10 0 0|01232323232323232323232323232323232323232323234323432343234323232323232323232323232323232323232323232343434343434343434343434343434345434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3tomh.k 18aoh.k aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|LMT BMT BST AST ADT|4j.i 4j.i 3j.i 40 30|0121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3eLvE.G 16mo0 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|LMT FMT -01 +00 +01 WET WEST|17.A 17.A 10 0 -10 0 -10|01232323232323232323232323232323232323232323234323432343234323232323232323232323232323232323232323232565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tomQ.o 18anQ.o aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e4","Atlantic/South_Georgia|LMT -02|2q.8 20|01|-3eLxx.Q|30","Atlantic/Stanley|LMT SMT -04 -03 -02|3P.o 3P.o 40 30 20|0123232323232323434323232323232323232323232323232323232323232323232323|-3eLw8.A S200 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|LMT AEST AEDT|-a4.Q -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-32oW4.Q RlC4.Q xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|LMT ACST ACST ACDT|-9e.k -90 -9u -au|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-32oVe.k ak0e.k H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|LMT AEST AEDT|-ac.8 -a0 -b0|012121212121212121|-32Bmc.8 Ry2c.8 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|LMT AEST ACST ACST ACDT|-9p.M -a0 -90 -9u -au|0123434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-32oVp.M 3Lzp.M 6wp0 H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|LMT AEST AEDT|-9N.g -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-3109N.g Pk1N.g 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|LMT ACST ACST ACDT|-8H.k -90 -9u -au|01232323232|-32oUH.k ajXH.k H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|LMT +0845 +0945|-8z.s -8J -9J|01212121212121212121|-30nIz.s PkpO.s xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|LMT AEST +1030 +1130 +11|-aA.k -a0 -au -bu -b0|01232323232424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424|-32oWA.k 3tzAA.k 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|LMT AEST AEDT|-9T.U -a0 -b0|0121212121212121212121|-32BlT.U Ry1T.U xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|LMT AEST AEDT|-9D.Q -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-32oVD.Q RlBD.Q xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|LMT AWST AWDT|-7H.o -80 -90|01212121212121212121|-30nHH.o PkpH.o xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|","Pacific/Easter|LMT EMT -07 -06 -05|7h.s 7h.s 70 60 50|0123232323232323232323232323234343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLsG.w 1HRc0 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|","Europe/Dublin|LMT DMT IST GMT BST IST|p.l p.l -y.D 0 -10 -10|012343434343435353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353|-3BHby.D 1ra20 Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-10|+10|-a0|0||","Etc/GMT-11|+11|-b0|0||","Etc/GMT-12|+12|-c0|0||","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Etc/GMT-7|+07|-70|0||","Etc/GMT-8|+08|-80|0||","Etc/GMT-9|+09|-90|0||","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+2|-02|20|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Brussels|LMT BMT WET CET CEST WEST|-h.u -h.u 0 -10 -20 -10|012343434325252525252525252525252525252525252525252525434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3D8Mh.u u1Ah.u SO00 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|21e5","Europe/Andorra|LMT WET CET CEST|-6.4 0 -10 -20|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2M0M6.4 1Pnc6.4 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|LMT AMT EET EEST CEST CET|-1y.Q -1y.Q -20 -30 -20 -10|0123234545232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-30SNy.Q OMM1 CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|35e5","Europe/London|LMT GMT BST BDST|1.f 0 -10 -20|01212121212121212121212121212121212121212121212121232323232321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-4VgnW.J 2KHdW.J Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|LMT CET CEST|-1m -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3topm 2juLm 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Prague|LMT PMT CET CEST GMT|-V.I -V.I -10 -20 0|0123232323232323232423232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4QbAV.I 1FDc0 XPaV.I 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|13e5","Europe/Bucharest|LMT BMT EET EEST|-1I.o -1I.o -20 -30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3awpI.o 1AU00 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|LMT CET CEST|-1g.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3cK1g.k 124Lg.k 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|LMT BMT CET CEST|-y.8 -t.K -10 -20|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4HyMy.8 1Dw04.m 1SfAt.K 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|LMT CMT BMT EET EEST CEST CET MSK MSD|-1T.k -1T -1I.o -20 -30 -20 -10 -30 -40|0123434343434343434345656578787878787878787878434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3D8NT.k 1wNA0.k wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|67e4","Europe/Gibraltar|LMT GMT BST BDST CET CEST|l.o 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123232323232121232121212121212121212145454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-3BHbC.A 1ra1C.A Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|LMT HMT EET EEST|-1D.N -1D.N -20 -30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3H0ND.N 1Iu00 OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|LMT CET CEST EET EEST MSK MSD +03|-1m -10 -20 -20 -30 -30 -40 -30|012121212121212343565656565656565654343434343434343434343434343434343434343434373|-36Rdm UbXm 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|LMT KMT EET MSK CEST CET MSD EEST|-22.4 -22.4 -20 -30 -20 -10 -40 -30|01234545363636363636363636367272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-3D8O2.4 1LUM0 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o10 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05 MSD MSK MSK|-3i.M -30 -40 -50 -40 -30 -40|0123232323232323232454524545454545454545454545454545454545454565|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 2pz0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Europe/Madrid|LMT WET WEST WEMT CET CEST|e.I 0 -10 -20 -10 -20|0121212121212121212321454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2M0M0 G5z0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|62e5","Europe/Malta|LMT CET CEST|-W.4 -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-35rcW.4 SXzW.4 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|LMT MMT EET MSK CEST CET MSD EEST +03|-1O.g -1O -20 -30 -20 -10 -40 -30 -30|012345454363636363636363636372727272727272727272727272727272727272728|-3D8NO.g 1LUM0.g eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Paris|LMT PMT WET WEST CEST CET WEMT|-9.l -9.l 0 -10 -20 -10 -20|01232323232323232323232323232323232323232323232323234545463654545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-3bQ09.l MDA0 cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|11e6","Europe/Moscow|LMT MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|01232434565756865656565656565656565698656565656565656565656565656565656565656a6|-3D8Ou.h 1sQM0 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Riga|LMT RMT LST EET MSK CEST CET MSD EEST|-1A.y -1A.y -2A.y -20 -30 -20 -10 -40 -30|0121213456565647474747474747474838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383|-3D8NA.y 1xde0 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|64e4","Europe/Rome|LMT RMT CET CEST|-N.U -N.U -10 -20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4aU0N.U 15snN.U T000 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|LMT SMT EET MSK CEST CET MSD EEST MSK|-2g.o -2g -20 -30 -20 -10 -40 -30 -40|0123454543636363636363636363272727636363727272727272727272727272727272727283|-3D8Og.o 1LUM0.o eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eN0 1cM0 1cM0 1cM0 1cM0 dV0 WO0 1cM0 1cM0 1fy0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|LMT IMT EET CET CEST EEST|-1x.g -1U.U -20 -10 -20 -30|0123434325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-3D8Nx.g AiLA.k 1UFeU.U WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Tallinn|LMT TMT CET CEST EET MSK MSD EEST|-1D -1D -10 -20 -20 -30 -40 -30|0123214532323565656565656565657474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474|-3D8ND 1wI00 teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Vienna|LMT CET CEST|-15.l -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-36Rd5.l UbX5.l 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|LMT WMT KMT CET EET MSK CEST MSD EEST|-1F.g -1o -1z.A -10 -20 -30 -20 -40 -30|0123435636365757575757575757584848484848484848463648484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484|-3D8NF.g 1u5Ah.g 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05 MSD MSK MSK|-2V.E -30 -40 -50 -40 -30 -40|012323232323232324545452454545454545454545454545454545454545456525|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1fA0 1cM0 2pz0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|LMT WMT CET CEST EET EEST|-1o -1o -10 -20 -20 -30|0123232345423232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3D8No 1qDA0 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e5","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Maldives|LMT MMT +05|-4S -4S -50|012|-3D8QS 3eLA0|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Pacific/Kwajalein|LMT +11 +10 +09 -12 +12|-b9.k -b0 -a0 -90 c0 -c0|0123145|-2M0X9.k 1rDA9.k akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|LMT +1215 +1245 +1345|-cd.M -cf -cJ -dJ|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-46jMd.M 37RbW.M 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT LMT -1130 -11 -10 +14 +13|-cx.4 bq.U bu b0 a0 -e0 -d0|012343456565656565656565656|-38Fox.4 J1A0 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|LMT PMMT +10 +09 +11|-am.g -9M.w -a0 -90 -b0|012324|-3D8Wm.g AvAx.I 1TCLM.w 7CN0 2MQp0|18e4","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|LMT -11 +13|bo.U b0 -d0|012|-2M0Az.4 4ufXz.4|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|012121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0|88e4","Pacific/Tarawa|LMT +12|-bw.4 -c0|01|-2M0Xw.4|29e3","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|LMT LMT GST +09 GDT ChST|el -9D -a0 -90 -b0 -a0|0123242424242424242425|-54m9D 2glc0 1DFbD 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|LMT HST HDT HWT HPT HST|av.q au 9u 9u 9u a0|01213415|-3061s.y 1uMdW.y 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|LMT -1040 -10 +14|at.k aE a0 -e0|0123|-2M0Bu.E 3bIMa.E B7Xk|51e2","Pacific/Kosrae|LMT LMT +11 +09 +10 +12|d8.4 -aP.U -b0 -90 -a0 -c0|0123243252|-54maP.U 2glc0 xsnP.U axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT LMT SST|-cB.c bm.M b0|012|-38FoB.c J1A0|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|LMT +1112 +1130 +1230 +11 +12|-bb.Q -bc -bu -cu -b0 -c0|0123245454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2M0Xb.Q 21ILX.Q W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Palau|LMT LMT +09|f2.4 -8V.U -90|012|-54m8V.U 2glc0|21e3","Pacific/Pitcairn|LMT -0830 -08|8E.k 8u 80|012|-2M0Dj.E 3UVXN.E|56","Pacific/Rarotonga|LMT LMT -1030 -0930 -10|-dk.U aD.4 au 9u a0|01234343434343434343434343434|-2Otpk.U 28zc0 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|"],links=["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/Reykjavik","Africa/Abidjan|Atlantic/St_Helena","Africa/Abidjan|Iceland","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|America/Yellowknife","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Iqaluit|America/Pangnirtung","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|America/Nipigon","America/Toronto|America/Thunder_Bay","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|America/Rainy_River","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Bangkok|Indian/Christmas","Asia/Brunei|Asia/Kuching","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Dubai|Indian/Mahe","Asia/Dubai|Indian/Reunion","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Rangoon|Indian/Cocos","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Berlin|Arctic/Longyearbyen","Europe/Berlin|Atlantic/Jan_Mayen","Europe/Berlin|Europe/Copenhagen","Europe/Berlin|Europe/Oslo","Europe/Berlin|Europe/Stockholm","Europe/Brussels|Europe/Amsterdam","Europe/Brussels|Europe/Luxembourg","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Kiev|Europe/Kyiv","Europe/Kiev|Europe/Uzhgorod","Europe/Kiev|Europe/Zaporozhye","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Paris|Europe/Monaco","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Maldives|Indian/Kerguelen","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guadalcanal|Pacific/Pohnpei","Pacific/Guadalcanal|Pacific/Ponape","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Pacific/Chuuk","Pacific/Port_Moresby|Pacific/Truk","Pacific/Port_Moresby|Pacific/Yap","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Majuro","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],countries=["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Puerto_Rico America/Antigua","AI|America/Puerto_Rico America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Troll Antarctica/Vostok Pacific/Auckland Pacific/Port_Moresby Asia/Riyadh Antarctica/McMurdo Antarctica/DumontDUrville Antarctica/Syowa","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Puerto_Rico America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Puerto_Rico America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Kuching Asia/Brunei","BO|America/La_Paz","BQ|America/Puerto_Rico America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Toronto America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Toronto America/Iqaluit America/Winnipeg America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Inuvik America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver America/Panama America/Puerto_Rico America/Phoenix America/Blanc-Sablon America/Atikokan America/Creston","CC|Asia/Yangon Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Puerto_Rico America/Curacao","CX|Asia/Bangkok Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Berlin Europe/Copenhagen","DM|America/Puerto_Rico America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Kosrae Pacific/Port_Moresby Pacific/Guadalcanal Pacific/Chuuk Pacific/Pohnpei","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Puerto_Rico America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Abidjan Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Puerto_Rico America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Africa/Abidjan Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Kanton Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Puerto_Rico America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Puerto_Rico America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Brussels Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Paris Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Puerto_Rico America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Tarawa Pacific/Kwajalein Pacific/Majuro","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Puerto_Rico America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Chihuahua America/Ciudad_Juarez America/Ojinaga America/Mazatlan America/Bahia_Banderas America/Hermosillo America/Tijuana","MY|Asia/Kuching Asia/Singapore Asia/Kuala_Lumpur","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Brussels Europe/Amsterdam","NO|Europe/Berlin Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Asia/Dubai Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Asia/Dubai Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Berlin Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Berlin Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Puerto_Rico America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Asia/Dubai Indian/Maldives Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Puerto_Rico America/Port_of_Spain","TV|Pacific/Tarawa Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kyiv","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Tarawa Pacific/Midway Pacific/Wake","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Puerto_Rico America/St_Vincent","VE|America/Caracas","VG|America/Puerto_Rico America/Tortola","VI|America/Puerto_Rico America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Tarawa Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"],require$$1$6={version:version$2,zones,links,countries};var moment$1=momentTimezone$1.exports=momentTimezoneExports$1;moment$1.tz.load(require$$1$6);var momentTimezoneExports=momentTimezone$1.exports;const moment$2=getDefaultExportFromCjs$1(momentTimezoneExports);//! moment.js locale configuration
//! locale : English (Australia) [en-au]
//! author : Jared Morse : https://github.com/jarcoal
hooks.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(et){var tt=et%10,rt=~~(et%100/10)===1?"th":tt===1?"st":tt===2?"nd":tt===3?"rd":"th";return et+rt},week:{dow:0,doy:4}});const REACT_APP_REGION$w=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,setMomentLocale=()=>{const tt=REACT_APP_REGION$w&&{AU:"en-au",UK:"en-gb",US:"en"}[REACT_APP_REGION$w]||window.navigator.language;moment$2.locale(tt)};var SavingStatus=(et=>(et.FAILED="Save failed",et.SAVED="Saved",et.SAVING="Saving",et))(SavingStatus||{}),SubmitButtonType=(et=>(et.SUBMITTING="Submitting...",et.SUBMITTED="Submitted",et.SUBMIT_AND_EXIT="Submit and exit",et.SUBMIT_AND_CONTINUE="Submit and continue",et))(SubmitButtonType||{}),RoCarePlanPages=(et=>(et.DX_LANDING_PG="1",et.DX_NEW_DIAGNOSIS_PG="1a",et.DX_SELECT_DIAGNOSIS_PG="1b",et.DX_STAGING_PG="2",et.DX_INTAKE_PG="3",et.CP_TREATMENT_INFO_PG="4",et.CP_CAREPLAN_SELECTION_PG="5",et.CP_SITESETUP_PG="6",et.TM_SIMULATION_PG="7",et.TM_PRESCRIPTION_PG="8",et.TM_VOLUMING_PG="9",et.TM_SUBMISSION_PG="10",et.TM_SUBMISSION_PG_US="11",et.TM_SPECIAL_PHYSICS_CONSULT="10",et))(RoCarePlanPages||{}),AustralianStates=(et=>(et.VIC="VIC",et.NSW="NSW",et.WA="WA",et.QLD="QLD",et.SA="SA",et))(AustralianStates||{}),Region=(et=>(et.AU="AU",et.UK="UK",et.US="US",et.DEMO="DEMO",et))(Region||{}),Gender=(et=>(et.MALE="Male",et.FEMALE="Female",et))(Gender||{});const Months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],addressLabelForRegion=(et={})=>{const tt=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION;let rt={country:"Country/Region",line1:"Address line 1",line2:"Address line 2",city:"City/Suburb",state:"State",postcode:"Postcode"};return tt==="UK"?rt={...rt,city:"Town",state:"County"}:tt==="US"?rt={...rt,city:"City",postcode:"ZIP"}:tt==="AU"&&(rt={...rt,country:"Country"}),et&&(rt={...rt,...et}),rt},addressPlaceholdersForRegion=()=>{const et=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION;let tt={country:"",line1:"Lookup address",line2:"",city:"",state:"",postcode:""};return et==="AU"&&(tt={...tt,line2:"Enter apartment, unit, suite, or floor #"}),tt},PAT_ID_1_REFRESH_TIME=5e3,LARGE_DISPLAY_SIZE=1920;Object.create(globalThis.import_meta_env||null).REACT_APP_REGION;let DateTimeConverter$1=class{static getFormattedDateAsDDMonthYYYY(tt,rt=Region.AU){if(tt&&tt.match("[0-9]{4}-[0-9]{2}-[0-9]{2}")){const nt=rt===Region.US?"MMMM DD, YYYY":"DD MMMM YYYY",lt=moment$2(tt,"YYYY-MM-DD").format(nt);return lt.toLowerCase()==="invalid date"?"":lt}return""}static getFormattedDate(tt,rt){if(tt&&tt.match("[0-9]{4}-[0-9]{2}-[0-9]{2}")){const nt=moment$2(tt,"YYYY-MM-DD").format(rt);return nt.toLowerCase()==="invalid date"?"":nt}return""}};const calculateMomentAge=et=>moment$2().diff(et,"year"),displayRawDate=(et,tt,rt,nt=!1)=>{const lt=rt?rt.padStart(2,"0"):"--",ut=et&&parseInt(et)>0?et.padStart(2,"0"):"--",dt=tt||"----";return nt?et||tt?`${ut}/${dt}`:"-":rt||et||tt?Object.create(globalThis.import_meta_env||null).REACT_APP_REGION===Region.US?`${ut}/${lt}/${dt}`:`${lt}/${ut}/${dt}`:"-"};var winston$1={},browser$h={};function _typeof$j(et){"@babel/helpers - typeof";return _typeof$j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$j(et)}function _createClass$o(et,tt,rt){return Object.defineProperty(et,"prototype",{writable:!1}),et}function _classCallCheck$o(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _inherits$8(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),tt&&_setPrototypeOf$5(et,tt)}function _createSuper$7(et){var tt=_isNativeReflectConstruct$b();return function(){var nt=_getPrototypeOf$6(et),lt;if(tt){var ut=_getPrototypeOf$6(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$8(this,lt)}}function _possibleConstructorReturn$8(et,tt){if(tt&&(_typeof$j(tt)==="object"||typeof tt=="function"))return tt;if(tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$8(et)}function _assertThisInitialized$8(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function _wrapNativeSuper$1(et){var tt=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(nt){if(nt===null||!_isNativeFunction$1(nt))return nt;if(typeof nt!="function")throw new TypeError("Super expression must either be null or a function");if(typeof tt<"u"){if(tt.has(nt))return tt.get(nt);tt.set(nt,lt)}function lt(){return _construct$1(nt,arguments,_getPrototypeOf$6(this).constructor)}return lt.prototype=Object.create(nt.prototype,{constructor:{value:lt,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$5(lt,nt)},_wrapNativeSuper$1(et)}function _construct$1(et,tt,rt){return _isNativeReflectConstruct$b()?_construct$1=Reflect.construct.bind():_construct$1=function(lt,ut,dt){var pt=[null];pt.push.apply(pt,ut);var ht=Function.bind.apply(lt,pt),mt=new ht;return dt&&_setPrototypeOf$5(mt,dt.prototype),mt},_construct$1.apply(null,arguments)}function _isNativeReflectConstruct$b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _isNativeFunction$1(et){try{return Function.toString.call(et).indexOf("[native code]")!==-1}catch{return typeof et=="function"}}function _setPrototypeOf$5(et,tt){return _setPrototypeOf$5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,lt){return nt.__proto__=lt,nt},_setPrototypeOf$5(et,tt)}function _getPrototypeOf$6(et){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$6(et)}var InvalidFormatError=function(et){_inherits$8(rt,et);var tt=_createSuper$7(rt);function rt(nt){var lt;return _classCallCheck$o(this,rt),lt=tt.call(this,`Format functions must be synchronous taking a two arguments: (info, opts)
Found: `.concat(nt.toString().split(`
`)[0],`
`)),Error.captureStackTrace(_assertThisInitialized$8(lt),rt),lt}return _createClass$o(rt)}(_wrapNativeSuper$1(Error)),format$j=function(et){if(et.length>2)throw new InvalidFormatError(et);function tt(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=nt}tt.prototype.transform=et;function rt(nt){return new tt(nt)}return rt.Format=tt,rt},colorize={exports:{}},safe={exports:{}},colors$3={exports:{}};function getDefaultExportFromCjs(et){return et&&et.__esModule&&Object.prototype.hasOwnProperty.call(et,"default")?et.default:et}var browser$g={exports:{}},process$1=browser$g.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(et){if(cachedSetTimeout===setTimeout)return setTimeout(et,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(et,0);try{return cachedSetTimeout(et,0)}catch{try{return cachedSetTimeout.call(null,et,0)}catch{return cachedSetTimeout.call(this,et,0)}}}function runClearTimeout(et){if(cachedClearTimeout===clearTimeout)return clearTimeout(et);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(et);try{return cachedClearTimeout(et)}catch{try{return cachedClearTimeout.call(null,et)}catch{return cachedClearTimeout.call(this,et)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var et=runTimeout(cleanUpNextTick);draining=!0;for(var tt=queue.length;tt;){for(currentQueue=queue,queue=[];++queueIndex<tt;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,tt=queue.length}currentQueue=null,draining=!1,runClearTimeout(et)}}process$1.nextTick=function(et){var tt=new Array(arguments.length-1);if(arguments.length>1)for(var rt=1;rt<arguments.length;rt++)tt[rt-1]=arguments[rt];queue.push(new Item$1(et,tt)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item$1(et,tt){this.fun=et,this.array=tt}Item$1.prototype.run=function(){this.fun.apply(null,this.array)};process$1.title="browser";process$1.browser=!0;process$1.env={};process$1.argv=[];process$1.version="";process$1.versions={};function noop$b(){}process$1.on=noop$b;process$1.addListener=noop$b;process$1.once=noop$b;process$1.off=noop$b;process$1.removeListener=noop$b;process$1.removeAllListeners=noop$b;process$1.emit=noop$b;process$1.prependListener=noop$b;process$1.prependOnceListener=noop$b;process$1.listeners=function(et){return[]};process$1.binding=function(et){throw new Error("process.binding is not supported")};process$1.cwd=function(){return"/"};process$1.chdir=function(et){throw new Error("process.chdir is not supported")};process$1.umask=function(){return 0};var browserExports$2=browser$g.exports;const process$1$1=getDefaultExportFromCjs(browserExports$2);var util$a={},types$1={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var tt={},rt=Symbol("test"),nt=Object(rt);if(typeof rt=="string"||Object.prototype.toString.call(rt)!=="[object Symbol]"||Object.prototype.toString.call(nt)!=="[object Symbol]")return!1;var lt=42;tt[rt]=lt;for(rt in tt)return!1;if(typeof Object.keys=="function"&&Object.keys(tt).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(tt).length!==0)return!1;var ut=Object.getOwnPropertySymbols(tt);if(ut.length!==1||ut[0]!==rt||!Object.prototype.propertyIsEnumerable.call(tt,rt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var dt=Object.getOwnPropertyDescriptor(tt,rt);if(dt.value!==lt||dt.enumerable!==!0)return!1}return!0},hasSymbols$2=shams$1,shams=function(){return hasSymbols$2()&&!!Symbol.toStringTag},esErrors=Error,_eval=EvalError,range=RangeError,ref=ReferenceError,syntax=SyntaxError,type=TypeError,uri=URIError,origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test$1={__proto__:null,foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test$1}.foo===test$1.foo&&!(test$1 instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$4=Object.prototype.toString,max$1=Math.max,funcType="[object Function]",concatty=function(tt,rt){for(var nt=[],lt=0;lt<tt.length;lt+=1)nt[lt]=tt[lt];for(var ut=0;ut<rt.length;ut+=1)nt[ut+tt.length]=rt[ut];return nt},slicy=function(tt,rt){for(var nt=[],lt=rt,ut=0;lt<tt.length;lt+=1,ut+=1)nt[ut]=tt[lt];return nt},joiny=function(et,tt){for(var rt="",nt=0;nt<et.length;nt+=1)rt+=et[nt],nt+1<et.length&&(rt+=tt);return rt},implementation$5=function(tt){var rt=this;if(typeof rt!="function"||toStr$4.apply(rt)!==funcType)throw new TypeError(ERROR_MESSAGE+rt);for(var nt=slicy(arguments,1),lt,ut=function(){if(this instanceof lt){var xt=rt.apply(this,concatty(nt,arguments));return Object(xt)===xt?xt:this}return rt.apply(tt,concatty(nt,arguments))},dt=max$1(0,rt.length-nt.length),pt=[],ht=0;ht<dt;ht++)pt[ht]="$"+ht;if(lt=Function("binder","return function ("+joiny(pt,",")+"){ return binder.apply(this,arguments); }")(ut),rt.prototype){var mt=function(){};mt.prototype=rt.prototype,lt.prototype=new mt,mt.prototype=null}return lt},implementation$4=implementation$5,functionBind=Function.prototype.bind||implementation$4,call$2=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$2=functionBind,hasown=bind$2.call(call$2,$hasOwn),undefined$1,$Error=esErrors,$EvalError=_eval,$RangeError=range,$ReferenceError=ref,$SyntaxError$1=syntax,$TypeError$3=type,$URIError=uri,$Function=Function,getEvalledConstructor=function(et){try{return $Function('"use strict"; return ('+et+").constructor;")()}catch{}},$gOPD$1=Object.getOwnPropertyDescriptor;if($gOPD$1)try{$gOPD$1({},"")}catch{$gOPD$1=null}var throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD$1?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD$1(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto$1=Object.getPrototypeOf||(hasProto?function(et){return et.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(et){var errorProto=getProto$1(getProto$1(et));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function et(tt){var rt;if(tt==="%AsyncFunction%")rt=getEvalledConstructor("async function () {}");else if(tt==="%GeneratorFunction%")rt=getEvalledConstructor("function* () {}");else if(tt==="%AsyncGeneratorFunction%")rt=getEvalledConstructor("async function* () {}");else if(tt==="%AsyncGenerator%"){var nt=et("%AsyncGeneratorFunction%");nt&&(rt=nt.prototype)}else if(tt==="%AsyncIteratorPrototype%"){var lt=et("%AsyncGenerator%");lt&&getProto$1&&(rt=getProto$1(lt.prototype))}return INTRINSICS[tt]=rt,rt},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$1=functionBind,hasOwn$2=hasown,$concat$1=bind$1.call(Function.call,Array.prototype.concat),$spliceApply=bind$1.call(Function.apply,Array.prototype.splice),$replace$1=bind$1.call(Function.call,String.prototype.replace),$strSlice=bind$1.call(Function.call,String.prototype.slice),$exec=bind$1.call(Function.call,RegExp.prototype.exec),rePropName$2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$2=/\\(\\)?/g,stringToPath$3=function(tt){var rt=$strSlice(tt,0,1),nt=$strSlice(tt,-1);if(rt==="%"&&nt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(nt==="%"&&rt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var lt=[];return $replace$1(tt,rePropName$2,function(ut,dt,pt,ht){lt[lt.length]=pt?$replace$1(ht,reEscapeChar$2,"$1"):dt||ut}),lt},getBaseIntrinsic=function(tt,rt){var nt=tt,lt;if(hasOwn$2(LEGACY_ALIASES,nt)&&(lt=LEGACY_ALIASES[nt],nt="%"+lt[0]+"%"),hasOwn$2(INTRINSICS,nt)){var ut=INTRINSICS[nt];if(ut===needsEval&&(ut=doEval(nt)),typeof ut>"u"&&!rt)throw new $TypeError$3("intrinsic "+tt+" exists, but is not available. Please file an issue!");return{alias:lt,name:nt,value:ut}}throw new $SyntaxError$1("intrinsic "+tt+" does not exist!")},getIntrinsic=function(tt,rt){if(typeof tt!="string"||tt.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rt!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,tt)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var nt=stringToPath$3(tt),lt=nt.length>0?nt[0]:"",ut=getBaseIntrinsic("%"+lt+"%",rt),dt=ut.name,pt=ut.value,ht=!1,mt=ut.alias;mt&&(lt=mt[0],$spliceApply(nt,$concat$1([0,1],mt)));for(var xt=1,Mt=!0;xt<nt.length;xt+=1){var vt=nt[xt],Ot=$strSlice(vt,0,1),At=$strSlice(vt,-1);if((Ot==='"'||Ot==="'"||Ot==="`"||At==='"'||At==="'"||At==="`")&&Ot!==At)throw new $SyntaxError$1("property names with quotes must have matching quotes");if((vt==="constructor"||!Mt)&&(ht=!0),lt+="."+vt,dt="%"+lt+"%",hasOwn$2(INTRINSICS,dt))pt=INTRINSICS[dt];else if(pt!=null){if(!(vt in pt)){if(!rt)throw new $TypeError$3("base intrinsic for "+tt+" exists, but the property is not available.");return}if($gOPD$1&&xt+1>=nt.length){var Rt=$gOPD$1(pt,vt);Mt=!!Rt,Mt&&"get"in Rt&&!("originalValue"in Rt.get)?pt=Rt.get:pt=pt[vt]}else Mt=hasOwn$2(pt,vt),pt=pt[vt];Mt&&!ht&&(INTRINSICS[dt]=pt)}}return pt},callBind$2={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var et=getIntrinsic,tt=et("%Object.defineProperty%",!0)||!1;if(tt)try{tt({},"a",{value:1})}catch{tt=!1}return esDefineProperty=tt,esDefineProperty}var GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$2=type,gopd=gopd$1,defineDataProperty=function(tt,rt,nt){if(!tt||typeof tt!="object"&&typeof tt!="function")throw new $TypeError$2("`obj` must be an object or a function`");if(typeof rt!="string"&&typeof rt!="symbol")throw new $TypeError$2("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$2("`loose`, if provided, must be a boolean");var lt=arguments.length>3?arguments[3]:null,ut=arguments.length>4?arguments[4]:null,dt=arguments.length>5?arguments[5]:null,pt=arguments.length>6?arguments[6]:!1,ht=!!gopd&&gopd(tt,rt);if($defineProperty$1)$defineProperty$1(tt,rt,{configurable:dt===null&&ht?ht.configurable:!dt,enumerable:lt===null&&ht?ht.enumerable:!lt,value:nt,writable:ut===null&&ht?ht.writable:!ut});else if(pt||!lt&&!ut&&!dt)tt[rt]=nt;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=requireEsDefineProperty(),hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$2=getIntrinsic,define$1=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError$1=type,$floor$1=GetIntrinsic$2("%Math.floor%"),setFunctionLength=function(tt,rt){if(typeof tt!="function")throw new $TypeError$1("`fn` is not a function");if(typeof rt!="number"||rt<0||rt>4294967295||$floor$1(rt)!==rt)throw new $TypeError$1("`length` must be a positive 32-bit integer");var nt=arguments.length>2&&!!arguments[2],lt=!0,ut=!0;if("length"in tt&&gOPD$1){var dt=gOPD$1(tt,"length");dt&&!dt.configurable&&(lt=!1),dt&&!dt.writable&&(ut=!1)}return(lt||ut||!nt)&&(hasDescriptors?define$1(tt,"length",rt,!0,!0):define$1(tt,"length",rt)),tt};(function(et){var tt=functionBind,rt=getIntrinsic,nt=setFunctionLength,lt=type,ut=rt("%Function.prototype.apply%"),dt=rt("%Function.prototype.call%"),pt=rt("%Reflect.apply%",!0)||tt.call(dt,ut),ht=requireEsDefineProperty(),mt=rt("%Math.max%");et.exports=function(vt){if(typeof vt!="function")throw new lt("a function is required");var Ot=pt(tt,dt,arguments);return nt(Ot,1+mt(0,vt.length-(arguments.length-1)),!0)};var xt=function(){return pt(tt,ut,arguments)};ht?ht(et.exports,"apply",{value:xt}):et.exports.apply=xt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic$1=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic$1("String.prototype.indexOf")),callBound$3=function(tt,rt){var nt=GetIntrinsic$1(tt,!!rt);return typeof nt=="function"&&$indexOf$1(tt,".prototype.")>-1?callBind$1(nt):nt},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(tt){return hasToStringTag$3&&tt&&typeof tt=="object"&&Symbol.toStringTag in tt?!1:$toString$1(tt)==="[object Arguments]"},isLegacyArguments=function(tt){return isStandardArguments(tt)?!0:tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&$toString$1(tt)!=="[object Array]"&&$toString$1(tt.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$6=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(tt){if(typeof tt!="function")return!1;if(isFnRegex.test(fnToStr$1.call(tt)))return!0;if(!hasToStringTag$2){var rt=toStr$3.call(tt);return rt==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var nt=getGeneratorFunc();GeneratorFunction=nt?getProto(nt):!1}return getProto(tt)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(et){et!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(tt){try{var rt=fnToStr.call(tt);return constructorRegex.test(rt)}catch{return!1}},tryFunctionObject=function(tt){try{return isES6ClassFn(tt)?!1:(fnToStr.call(tt),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(tt){if((isIE68||!tt)&&(typeof tt>"u"||typeof tt=="object"))try{var rt=toStr$2.call(tt);return(rt===ddaClass||rt===ddaClass2||rt===ddaClass3||rt===objectClass)&&tt("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;try{reflectApply(tt,null,badArrayLike)}catch(rt){if(rt!==isCallableMarker)return!1}return!isES6ClassFn(tt)&&tryFunctionObject(tt)}:function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(tt);if(isES6ClassFn(tt))return!1;var rt=toStr$2.call(tt);return rt!==fnClass&&rt!==genClass&&!/^\[object HTML/.test(rt)?!1:tryFunctionObject(tt)},isCallable=isCallable$1,toStr$1=Object.prototype.toString,hasOwnProperty$o=Object.prototype.hasOwnProperty,forEachArray=function(tt,rt,nt){for(var lt=0,ut=tt.length;lt<ut;lt++)hasOwnProperty$o.call(tt,lt)&&(nt==null?rt(tt[lt],lt,tt):rt.call(nt,tt[lt],lt,tt))},forEachString=function(tt,rt,nt){for(var lt=0,ut=tt.length;lt<ut;lt++)nt==null?rt(tt.charAt(lt),lt,tt):rt.call(nt,tt.charAt(lt),lt,tt)},forEachObject=function(tt,rt,nt){for(var lt in tt)hasOwnProperty$o.call(tt,lt)&&(nt==null?rt(tt[lt],lt,tt):rt.call(nt,tt[lt],lt,tt))},forEach$5=function(tt,rt,nt){if(!isCallable(rt))throw new TypeError("iterator must be a function");var lt;arguments.length>=3&&(lt=nt),toStr$1.call(tt)==="[object Array]"?forEachArray(tt,rt,lt):typeof tt=="string"?forEachString(tt,rt,lt):forEachObject(tt,rt,lt)},forEach_1=forEach$5,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$6=typeof globalThis>"u"?commonjsGlobal$1:globalThis,availableTypedArrays$1=function(){for(var tt=[],rt=0;rt<possibleNames.length;rt++)typeof g$6[possibleNames[rt]]=="function"&&(tt[tt.length]=possibleNames[rt]);return tt},forEach$4=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound$1=callBound$3,gOPD=gopd$1,$toString=callBound$1("Object.prototype.toString"),hasToStringTag=shams(),g$5=typeof globalThis>"u"?commonjsGlobal$1:globalThis,typedArrays=availableTypedArrays(),$slice$1=callBound$1("String.prototype.slice"),getPrototypeOf$2=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(tt,rt){for(var nt=0;nt<tt.length;nt+=1)if(tt[nt]===rt)return nt;return-1},cache$3={__proto__:null};hasToStringTag&&gOPD&&getPrototypeOf$2?forEach$4(typedArrays,function(et){var tt=new g$5[et];if(Symbol.toStringTag in tt){var rt=getPrototypeOf$2(tt),nt=gOPD(rt,Symbol.toStringTag);if(!nt){var lt=getPrototypeOf$2(rt);nt=gOPD(lt,Symbol.toStringTag)}cache$3["$"+et]=callBind(nt.get)}}):forEach$4(typedArrays,function(et){var tt=new g$5[et],rt=tt.slice||tt.set;rt&&(cache$3["$"+et]=callBind(rt))});var tryTypedArrays=function(tt){var rt=!1;return forEach$4(cache$3,function(nt,lt){if(!rt)try{"$"+nt(tt)===lt&&(rt=$slice$1(lt,1))}catch{}}),rt},trySlices=function(tt){var rt=!1;return forEach$4(cache$3,function(nt,lt){if(!rt)try{nt(tt),rt=$slice$1(lt,1)}catch{}}),rt},whichTypedArray$1=function(tt){if(!tt||typeof tt!="object")return!1;if(!hasToStringTag){var rt=$slice$1($toString(tt),8,-1);return $indexOf(typedArrays,rt)>-1?rt:rt!=="Object"?!1:trySlices(tt)}return gOPD?tryTypedArrays(tt):null},whichTypedArray=whichTypedArray$1,isTypedArray$6=function(tt){return!!whichTypedArray(tt)};(function(et){var tt=isArguments$6,rt=isGeneratorFunction,nt=whichTypedArray$1,lt=isTypedArray$6;function ut(wr){return wr.call.bind(wr)}var dt=typeof BigInt<"u",pt=typeof Symbol<"u",ht=ut(Object.prototype.toString),mt=ut(Number.prototype.valueOf),xt=ut(String.prototype.valueOf),Mt=ut(Boolean.prototype.valueOf);if(dt)var vt=ut(BigInt.prototype.valueOf);if(pt)var Ot=ut(Symbol.prototype.valueOf);function At(wr,qr){if(typeof wr!="object")return!1;try{return qr(wr),!0}catch{return!1}}et.isArgumentsObject=tt,et.isGeneratorFunction=rt,et.isTypedArray=lt;function Rt(wr){return typeof Promise<"u"&&wr instanceof Promise||wr!==null&&typeof wr=="object"&&typeof wr.then=="function"&&typeof wr.catch=="function"}et.isPromise=Rt;function zt(wr){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(wr):lt(wr)||er(wr)}et.isArrayBufferView=zt;function Tt(wr){return nt(wr)==="Uint8Array"}et.isUint8Array=Tt;function Ct(wr){return nt(wr)==="Uint8ClampedArray"}et.isUint8ClampedArray=Ct;function It(wr){return nt(wr)==="Uint16Array"}et.isUint16Array=It;function Dt(wr){return nt(wr)==="Uint32Array"}et.isUint32Array=Dt;function kt(wr){return nt(wr)==="Int8Array"}et.isInt8Array=kt;function qt(wr){return nt(wr)==="Int16Array"}et.isInt16Array=qt;function Nt(wr){return nt(wr)==="Int32Array"}et.isInt32Array=Nt;function Yt(wr){return nt(wr)==="Float32Array"}et.isFloat32Array=Yt;function Kt(wr){return nt(wr)==="Float64Array"}et.isFloat64Array=Kt;function Jt(wr){return nt(wr)==="BigInt64Array"}et.isBigInt64Array=Jt;function Qt(wr){return nt(wr)==="BigUint64Array"}et.isBigUint64Array=Qt;function Bt(wr){return ht(wr)==="[object Map]"}Bt.working=typeof Map<"u"&&Bt(new Map);function Ft(wr){return typeof Map>"u"?!1:Bt.working?Bt(wr):wr instanceof Map}et.isMap=Ft;function $t(wr){return ht(wr)==="[object Set]"}$t.working=typeof Set<"u"&&$t(new Set);function jt(wr){return typeof Set>"u"?!1:$t.working?$t(wr):wr instanceof Set}et.isSet=jt;function Wt(wr){return ht(wr)==="[object WeakMap]"}Wt.working=typeof WeakMap<"u"&&Wt(new WeakMap);function Ut(wr){return typeof WeakMap>"u"?!1:Wt.working?Wt(wr):wr instanceof WeakMap}et.isWeakMap=Ut;function Vt(wr){return ht(wr)==="[object WeakSet]"}Vt.working=typeof WeakSet<"u"&&Vt(new WeakSet);function Ht(wr){return Vt(wr)}et.isWeakSet=Ht;function Gt(wr){return ht(wr)==="[object ArrayBuffer]"}Gt.working=typeof ArrayBuffer<"u"&&Gt(new ArrayBuffer);function Zt(wr){return typeof ArrayBuffer>"u"?!1:Gt.working?Gt(wr):wr instanceof ArrayBuffer}et.isArrayBuffer=Zt;function Xt(wr){return ht(wr)==="[object DataView]"}Xt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Xt(new DataView(new ArrayBuffer(1),0,1));function er(wr){return typeof DataView>"u"?!1:Xt.working?Xt(wr):wr instanceof DataView}et.isDataView=er;var nr=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function or(wr){return ht(wr)==="[object SharedArrayBuffer]"}function rr(wr){return typeof nr>"u"?!1:(typeof or.working>"u"&&(or.working=or(new nr)),or.working?or(wr):wr instanceof nr)}et.isSharedArrayBuffer=rr;function cr(wr){return ht(wr)==="[object AsyncFunction]"}et.isAsyncFunction=cr;function ir(wr){return ht(wr)==="[object Map Iterator]"}et.isMapIterator=ir;function dr(wr){return ht(wr)==="[object Set Iterator]"}et.isSetIterator=dr;function gr(wr){return ht(wr)==="[object Generator]"}et.isGeneratorObject=gr;function br(wr){return ht(wr)==="[object WebAssembly.Module]"}et.isWebAssemblyCompiledModule=br;function ar(wr){return At(wr,mt)}et.isNumberObject=ar;function ur(wr){return At(wr,xt)}et.isStringObject=ur;function xr(wr){return At(wr,Mt)}et.isBooleanObject=xr;function Mr(wr){return dt&&At(wr,vt)}et.isBigIntObject=Mr;function Ar(wr){return pt&&At(wr,Ot)}et.isSymbolObject=Ar;function Ir(wr){return ar(wr)||ur(wr)||xr(wr)||Mr(wr)||Ar(wr)}et.isBoxedPrimitive=Ir;function Rr(wr){return typeof Uint8Array<"u"&&(Zt(wr)||rr(wr))}et.isAnyArrayBuffer=Rr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(wr){Object.defineProperty(et,wr,{enumerable:!1,value:function(){throw new Error(wr+" is not supported in userland")}})})})(types$1);var isBufferBrowser=function(tt){return tt&&typeof tt=="object"&&typeof tt.copy=="function"&&typeof tt.fill=="function"&&typeof tt.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(tt,rt){rt&&(tt.super_=rt,tt.prototype=Object.create(rt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(tt,rt){if(rt){tt.super_=rt;var nt=function(){};nt.prototype=rt.prototype,tt.prototype=new nt,tt.prototype.constructor=tt}};var inherits_browserExports=inherits_browser.exports;(function(et){var tt={},rt=Object.getOwnPropertyDescriptors||function(nr){for(var or=Object.keys(nr),rr={},cr=0;cr<or.length;cr++)rr[or[cr]]=Object.getOwnPropertyDescriptor(nr,or[cr]);return rr},nt=/%[sdj%]/g;et.format=function(er){if(!qt(er)){for(var nr=[],or=0;or<arguments.length;or++)nr.push(pt(arguments[or]));return nr.join(" ")}for(var or=1,rr=arguments,cr=rr.length,ir=String(er).replace(nt,function(gr){if(gr==="%%")return"%";if(or>=cr)return gr;switch(gr){case"%s":return String(rr[or++]);case"%d":return Number(rr[or++]);case"%j":try{return JSON.stringify(rr[or++])}catch{return"[Circular]"}default:return gr}}),dr=rr[or];or<cr;dr=rr[++or])It(dr)||!Jt(dr)?ir+=" "+dr:ir+=" "+pt(dr);return ir},et.deprecate=function(er,nr){if(typeof process$1$1<"u"&&process$1$1.noDeprecation===!0)return er;if(typeof process$1$1>"u")return function(){return et.deprecate(er,nr).apply(this,arguments)};var or=!1;function rr(){if(!or){if(process$1$1.throwDeprecation)throw new Error(nr);process$1$1.traceDeprecation?console.trace(nr):console.error(nr),or=!0}return er.apply(this,arguments)}return rr};var lt={},ut=/^$/;if(tt.NODE_DEBUG){var dt=tt.NODE_DEBUG;dt=dt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ut=new RegExp("^"+dt+"$","i")}et.debuglog=function(er){if(er=er.toUpperCase(),!lt[er])if(ut.test(er)){var nr=process$1$1.pid;lt[er]=function(){var or=et.format.apply(et,arguments);console.error("%s %d: %s",er,nr,or)}}else lt[er]=function(){};return lt[er]};function pt(er,nr){var or={seen:[],stylize:mt};return arguments.length>=3&&(or.depth=arguments[2]),arguments.length>=4&&(or.colors=arguments[3]),Ct(nr)?or.showHidden=nr:nr&&et._extend(or,nr),Yt(or.showHidden)&&(or.showHidden=!1),Yt(or.depth)&&(or.depth=2),Yt(or.colors)&&(or.colors=!1),Yt(or.customInspect)&&(or.customInspect=!0),or.colors&&(or.stylize=ht),Mt(or,er,or.depth)}et.inspect=pt,pt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},pt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ht(er,nr){var or=pt.styles[nr];return or?"\x1B["+pt.colors[or][0]+"m"+er+"\x1B["+pt.colors[or][1]+"m":er}function mt(er,nr){return er}function xt(er){var nr={};return er.forEach(function(or,rr){nr[or]=!0}),nr}function Mt(er,nr,or){if(er.customInspect&&nr&&Ft(nr.inspect)&&nr.inspect!==et.inspect&&!(nr.constructor&&nr.constructor.prototype===nr)){var rr=nr.inspect(or,er);return qt(rr)||(rr=Mt(er,rr,or)),rr}var cr=vt(er,nr);if(cr)return cr;var ir=Object.keys(nr),dr=xt(ir);if(er.showHidden&&(ir=Object.getOwnPropertyNames(nr)),Bt(nr)&&(ir.indexOf("message")>=0||ir.indexOf("description")>=0))return Ot(nr);if(ir.length===0){if(Ft(nr)){var gr=nr.name?": "+nr.name:"";return er.stylize("[Function"+gr+"]","special")}if(Kt(nr))return er.stylize(RegExp.prototype.toString.call(nr),"regexp");if(Qt(nr))return er.stylize(Date.prototype.toString.call(nr),"date");if(Bt(nr))return Ot(nr)}var br="",ar=!1,ur=["{","}"];if(Tt(nr)&&(ar=!0,ur=["[","]"]),Ft(nr)){var xr=nr.name?": "+nr.name:"";br=" [Function"+xr+"]"}if(Kt(nr)&&(br=" "+RegExp.prototype.toString.call(nr)),Qt(nr)&&(br=" "+Date.prototype.toUTCString.call(nr)),Bt(nr)&&(br=" "+Ot(nr)),ir.length===0&&(!ar||nr.length==0))return ur[0]+br+ur[1];if(or<0)return Kt(nr)?er.stylize(RegExp.prototype.toString.call(nr),"regexp"):er.stylize("[Object]","special");er.seen.push(nr);var Mr;return ar?Mr=At(er,nr,or,dr,ir):Mr=ir.map(function(Ar){return Rt(er,nr,or,dr,Ar,ar)}),er.seen.pop(),zt(Mr,br,ur)}function vt(er,nr){if(Yt(nr))return er.stylize("undefined","undefined");if(qt(nr)){var or="'"+JSON.stringify(nr).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return er.stylize(or,"string")}if(kt(nr))return er.stylize(""+nr,"number");if(Ct(nr))return er.stylize(""+nr,"boolean");if(It(nr))return er.stylize("null","null")}function Ot(er){return"["+Error.prototype.toString.call(er)+"]"}function At(er,nr,or,rr,cr){for(var ir=[],dr=0,gr=nr.length;dr<gr;++dr)Ht(nr,String(dr))?ir.push(Rt(er,nr,or,rr,String(dr),!0)):ir.push("");return cr.forEach(function(br){br.match(/^\d+$/)||ir.push(Rt(er,nr,or,rr,br,!0))}),ir}function Rt(er,nr,or,rr,cr,ir){var dr,gr,br;if(br=Object.getOwnPropertyDescriptor(nr,cr)||{value:nr[cr]},br.get?br.set?gr=er.stylize("[Getter/Setter]","special"):gr=er.stylize("[Getter]","special"):br.set&&(gr=er.stylize("[Setter]","special")),Ht(rr,cr)||(dr="["+cr+"]"),gr||(er.seen.indexOf(br.value)<0?(It(or)?gr=Mt(er,br.value,null):gr=Mt(er,br.value,or-1),gr.indexOf(`
`)>-1&&(ir?gr=gr.split(`
`).map(function(ar){return"  "+ar}).join(`
`).slice(2):gr=`
`+gr.split(`
`).map(function(ar){return"   "+ar}).join(`
`))):gr=er.stylize("[Circular]","special")),Yt(dr)){if(ir&&cr.match(/^\d+$/))return gr;dr=JSON.stringify(""+cr),dr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(dr=dr.slice(1,-1),dr=er.stylize(dr,"name")):(dr=dr.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),dr=er.stylize(dr,"string"))}return dr+": "+gr}function zt(er,nr,or){var rr=er.reduce(function(cr,ir){return ir.indexOf(`
`)>=0,cr+ir.replace(/\u001b\[\d\d?m/g,"").length+1},0);return rr>60?or[0]+(nr===""?"":nr+`
 `)+" "+er.join(`,
  `)+" "+or[1]:or[0]+nr+" "+er.join(", ")+" "+or[1]}et.types=types$1;function Tt(er){return Array.isArray(er)}et.isArray=Tt;function Ct(er){return typeof er=="boolean"}et.isBoolean=Ct;function It(er){return er===null}et.isNull=It;function Dt(er){return er==null}et.isNullOrUndefined=Dt;function kt(er){return typeof er=="number"}et.isNumber=kt;function qt(er){return typeof er=="string"}et.isString=qt;function Nt(er){return typeof er=="symbol"}et.isSymbol=Nt;function Yt(er){return er===void 0}et.isUndefined=Yt;function Kt(er){return Jt(er)&&jt(er)==="[object RegExp]"}et.isRegExp=Kt,et.types.isRegExp=Kt;function Jt(er){return typeof er=="object"&&er!==null}et.isObject=Jt;function Qt(er){return Jt(er)&&jt(er)==="[object Date]"}et.isDate=Qt,et.types.isDate=Qt;function Bt(er){return Jt(er)&&(jt(er)==="[object Error]"||er instanceof Error)}et.isError=Bt,et.types.isNativeError=Bt;function Ft(er){return typeof er=="function"}et.isFunction=Ft;function $t(er){return er===null||typeof er=="boolean"||typeof er=="number"||typeof er=="string"||typeof er=="symbol"||typeof er>"u"}et.isPrimitive=$t,et.isBuffer=isBufferBrowser;function jt(er){return Object.prototype.toString.call(er)}function Wt(er){return er<10?"0"+er.toString(10):er.toString(10)}var Ut=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Vt(){var er=new Date,nr=[Wt(er.getHours()),Wt(er.getMinutes()),Wt(er.getSeconds())].join(":");return[er.getDate(),Ut[er.getMonth()],nr].join(" ")}et.log=function(){console.log("%s - %s",Vt(),et.format.apply(et,arguments))},et.inherits=inherits_browserExports,et._extend=function(er,nr){if(!nr||!Jt(nr))return er;for(var or=Object.keys(nr),rr=or.length;rr--;)er[or[rr]]=nr[or[rr]];return er};function Ht(er,nr){return Object.prototype.hasOwnProperty.call(er,nr)}var Gt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;et.promisify=function(nr){if(typeof nr!="function")throw new TypeError('The "original" argument must be of type Function');if(Gt&&nr[Gt]){var or=nr[Gt];if(typeof or!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(or,Gt,{value:or,enumerable:!1,writable:!1,configurable:!0}),or}function or(){for(var rr,cr,ir=new Promise(function(br,ar){rr=br,cr=ar}),dr=[],gr=0;gr<arguments.length;gr++)dr.push(arguments[gr]);dr.push(function(br,ar){br?cr(br):rr(ar)});try{nr.apply(this,dr)}catch(br){cr(br)}return ir}return Object.setPrototypeOf(or,Object.getPrototypeOf(nr)),Gt&&Object.defineProperty(or,Gt,{value:or,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(or,rt(nr))},et.promisify.custom=Gt;function Zt(er,nr){if(!er){var or=new Error("Promise was rejected with a falsy value");or.reason=er,er=or}return nr(er)}function Xt(er){if(typeof er!="function")throw new TypeError('The "original" argument must be of type Function');function nr(){for(var or=[],rr=0;rr<arguments.length;rr++)or.push(arguments[rr]);var cr=or.pop();if(typeof cr!="function")throw new TypeError("The last argument must be of type Function");var ir=this,dr=function(){return cr.apply(ir,arguments)};er.apply(this,or).then(function(gr){process$1$1.nextTick(dr.bind(null,null,gr))},function(gr){process$1$1.nextTick(Zt.bind(null,gr,dr))})}return Object.setPrototypeOf(nr,Object.getPrototypeOf(er)),Object.defineProperties(nr,rt(er)),nr}et.callbackify=Xt})(util$a);var styles$4={exports:{}};(function(et){var tt={};et.exports=tt;var rt={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(rt).forEach(function(nt){var lt=rt[nt],ut=tt[nt]=[];ut.open="\x1B["+lt[0]+"m",ut.close="\x1B["+lt[1]+"m"})})(styles$4);var stylesExports=styles$4.exports,browser$f={};browser$f.endianness=function(){return"LE"};browser$f.hostname=function(){return typeof location<"u"?location.hostname:""};browser$f.loadavg=function(){return[]};browser$f.uptime=function(){return 0};browser$f.freemem=function(){return Number.MAX_VALUE};browser$f.totalmem=function(){return Number.MAX_VALUE};browser$f.cpus=function(){return[]};browser$f.type=function(){return"Browser"};browser$f.release=function(){return typeof navigator<"u"?navigator.appVersion:""};browser$f.networkInterfaces=browser$f.getNetworkInterfaces=function(){return{}};browser$f.arch=function(){return"javascript"};browser$f.platform=function(){return"browser"};browser$f.tmpdir=browser$f.tmpDir=function(){return"/tmp"};browser$f.EOL=`
`;browser$f.homedir=function(){return"/"};var hasFlag$1=function(et,tt){tt=tt||process$1$1.argv||[];var rt=tt.indexOf("--"),nt=/^-{1,2}/.test(et)?"":"--",lt=tt.indexOf(nt+et);return lt!==-1&&(rt===-1?!0:lt<rt)},define_process_env_default$1={},os$2=browser$f,hasFlag=hasFlag$1,env=define_process_env_default$1,forceColor=void 0;hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")?forceColor=!1:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(forceColor=!0);"FORCE_COLOR"in env&&(forceColor=env.FORCE_COLOR.length===0||parseInt(env.FORCE_COLOR,10)!==0);function translateLevel(et){return et===0?!1:{level:et,hasBasic:!0,has256:et>=2,has16m:et>=3}}function supportsColor(et){if(forceColor===!1)return 0;if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2;if(et&&!et.isTTY&&forceColor!==!0)return 0;var tt=forceColor?1:0;if(process$1$1.platform==="win32"){var rt=os$2.release().split(".");return Number(process$1$1.versions.node.split(".")[0])>=8&&Number(rt[0])>=10&&Number(rt[2])>=10586?Number(rt[2])>=14931?3:2:1}if("CI"in env)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(lt){return lt in env})||env.CI_NAME==="codeship"?1:tt;if("TEAMCITY_VERSION"in env)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in env){var nt=parseInt((env.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env.TERM_PROGRAM){case"iTerm.app":return nt>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(env.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)||"COLORTERM"in env?1:(env.TERM==="dumb",tt)}function getSupportLevel(et){var tt=supportsColor(et);return translateLevel(tt)}var supportsColors={supportsColor:getSupportLevel,stdout:getSupportLevel(process$1$1.stdout),stderr:getSupportLevel(process$1$1.stderr)},trap={exports:{}},hasRequiredTrap;function requireTrap(){return hasRequiredTrap||(hasRequiredTrap=1,function(et){et.exports=function(rt,nt){var lt="";rt=rt||"Run the trap, drop the bass",rt=rt.split("");var ut={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return rt.forEach(function(dt){dt=dt.toLowerCase();var pt=ut[dt]||[" "],ht=Math.floor(Math.random()*pt.length);typeof ut[dt]<"u"?lt+=ut[dt][ht]:lt+=dt}),lt}}(trap)),trap.exports}var zalgo={exports:{}},hasRequiredZalgo;function requireZalgo(){return hasRequiredZalgo||(hasRequiredZalgo=1,function(et){et.exports=function(rt,nt){rt=rt||"   he is here   ";var lt={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},ut=[].concat(lt.up,lt.down,lt.mid);function dt(mt){var xt=Math.floor(Math.random()*mt);return xt}function pt(mt){var xt=!1;return ut.filter(function(Mt){xt=Mt===mt}),xt}function ht(mt,xt){var Mt="",vt,Ot;xt=xt||{},xt.up=typeof xt.up<"u"?xt.up:!0,xt.mid=typeof xt.mid<"u"?xt.mid:!0,xt.down=typeof xt.down<"u"?xt.down:!0,xt.size=typeof xt.size<"u"?xt.size:"maxi",mt=mt.split("");for(Ot in mt)if(!pt(Ot)){switch(Mt=Mt+mt[Ot],vt={up:0,down:0,mid:0},xt.size){case"mini":vt.up=dt(8),vt.mid=dt(2),vt.down=dt(8);break;case"maxi":vt.up=dt(16)+3,vt.mid=dt(4)+1,vt.down=dt(64)+3;break;default:vt.up=dt(8)+1,vt.mid=dt(6)/2,vt.down=dt(8)+1;break}var At=["up","mid","down"];for(var Rt in At)for(var zt=At[Rt],Tt=0;Tt<=vt[zt];Tt++)xt[zt]&&(Mt=Mt+lt[zt][dt(lt[zt].length)])}return Mt}return ht(rt,nt)}}(zalgo)),zalgo.exports}var america={exports:{}},hasRequiredAmerica;function requireAmerica(){return hasRequiredAmerica||(hasRequiredAmerica=1,function(et){et.exports=function(tt){return function(rt,nt,lt){if(rt===" ")return rt;switch(nt%3){case 0:return tt.red(rt);case 1:return tt.white(rt);case 2:return tt.blue(rt)}}}}(america)),america.exports}var zebra={exports:{}},hasRequiredZebra;function requireZebra(){return hasRequiredZebra||(hasRequiredZebra=1,function(et){et.exports=function(tt){return function(rt,nt,lt){return nt%2===0?rt:tt.inverse(rt)}}}(zebra)),zebra.exports}var rainbow={exports:{}},hasRequiredRainbow;function requireRainbow(){return hasRequiredRainbow||(hasRequiredRainbow=1,function(et){et.exports=function(tt){var rt=["red","yellow","green","blue","magenta"];return function(nt,lt,ut){return nt===" "?nt:tt[rt[lt++%rt.length]](nt)}}}(rainbow)),rainbow.exports}var random={exports:{}},hasRequiredRandom;function requireRandom(){return hasRequiredRandom||(hasRequiredRandom=1,function(et){et.exports=function(tt){var rt=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(nt,lt,ut){return nt===" "?nt:tt[rt[Math.round(Math.random()*(rt.length-2))]](nt)}}}(random)),random.exports}(function(et){var tt={};et.exports=tt,tt.themes={};var rt=util$a,nt=tt.styles=stylesExports,lt=Object.defineProperties,ut=new RegExp(/[\r\n]+/g);tt.supportsColor=supportsColors.supportsColor,typeof tt.enabled>"u"&&(tt.enabled=tt.supportsColor()!==!1),tt.enable=function(){tt.enabled=!0},tt.disable=function(){tt.enabled=!1},tt.stripColors=tt.strip=function(Rt){return(""+Rt).replace(/\x1B\[\d+m/g,"")},tt.stylize=function(zt,Tt){if(!tt.enabled)return zt+"";var Ct=nt[Tt];return!Ct&&Tt in tt?tt[Tt](zt):Ct.open+zt+Ct.close};var dt=/[|\\{}()[\]^$+*?.]/g,pt=function(Rt){if(typeof Rt!="string")throw new TypeError("Expected a string");return Rt.replace(dt,"\\$&")};function ht(Rt){var zt=function Tt(){return Mt.apply(Tt,arguments)};return zt._styles=Rt,zt.__proto__=xt,zt}var mt=function(){var Rt={};return nt.grey=nt.gray,Object.keys(nt).forEach(function(zt){nt[zt].closeRe=new RegExp(pt(nt[zt].close),"g"),Rt[zt]={get:function(){return ht(this._styles.concat(zt))}}}),Rt}(),xt=lt(function(){},mt);function Mt(){var Rt=Array.prototype.slice.call(arguments),zt=Rt.map(function(kt){return kt!=null&&kt.constructor===String?kt:rt.inspect(kt)}).join(" ");if(!tt.enabled||!zt)return zt;for(var Tt=zt.indexOf(`
`)!=-1,Ct=this._styles,It=Ct.length;It--;){var Dt=nt[Ct[It]];zt=Dt.open+zt.replace(Dt.closeRe,Dt.open)+Dt.close,Tt&&(zt=zt.replace(ut,function(kt){return Dt.close+kt+Dt.open}))}return zt}tt.setTheme=function(Rt){if(typeof Rt=="string"){console.log("colors.setTheme now only accepts an object, not a string.  If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file.  The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var zt in Rt)(function(Tt){tt[Tt]=function(Ct){if(typeof Rt[Tt]=="object"){var It=Ct;for(var Dt in Rt[Tt])It=tt[Rt[Tt][Dt]](It);return It}return tt[Rt[Tt]](Ct)}})(zt)};function vt(){var Rt={};return Object.keys(mt).forEach(function(zt){Rt[zt]={get:function(){return ht([zt])}}}),Rt}var Ot=function(zt,Tt){var Ct=Tt.split("");return Ct=Ct.map(zt),Ct.join("")};tt.trap=requireTrap(),tt.zalgo=requireZalgo(),tt.maps={},tt.maps.america=requireAmerica()(tt),tt.maps.zebra=requireZebra()(tt),tt.maps.rainbow=requireRainbow()(tt),tt.maps.random=requireRandom()(tt);for(var At in tt.maps)(function(Rt){tt[Rt]=function(zt){return Ot(tt.maps[Rt],zt)}})(At);lt(tt,vt())})(colors$3);var colorsExports=colors$3.exports;(function(et){var tt=colorsExports;et.exports=tt})(safe);var safeExports=safe.exports,tripleBeam={},config$5={},cli$1={};cli$1.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};cli$1.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"};var npm={};npm.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};npm.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"};var syslog={};syslog.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};syslog.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"};(function(et){Object.defineProperty(et,"cli",{value:cli$1}),Object.defineProperty(et,"npm",{value:npm}),Object.defineProperty(et,"syslog",{value:syslog})})(config$5);(function(et){Object.defineProperty(et,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(et,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(et,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(et,"configs",{value:config$5})})(tripleBeam);function _typeof$i(et){"@babel/helpers - typeof";return _typeof$i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$i(et)}function _classCallCheck$n(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$j(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$d(nt.key),nt)}}function _createClass$n(et,tt,rt){return tt&&_defineProperties$j(et.prototype,tt),rt&&_defineProperties$j(et,rt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$d(et){var tt=_toPrimitive$d(et,"string");return _typeof$i(tt)=="symbol"?tt:String(tt)}function _toPrimitive$d(et,tt){if(_typeof$i(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$i(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}var colors$2=safeExports,_require$h=tripleBeam,LEVEL$8=_require$h.LEVEL,MESSAGE$9=_require$h.MESSAGE;colors$2.enabled=!0;var hasSpace=/\s+/,Colorizer$2=function(){function et(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$n(this,et),tt.colors&&this.addColors(tt.colors),this.options=tt}return _createClass$n(et,[{key:"addColors",value:function(rt){return et.addColors(rt)}},{key:"colorize",value:function(rt,nt,lt){if(typeof lt>"u"&&(lt=nt),!Array.isArray(et.allColors[rt]))return colors$2[et.allColors[rt]](lt);for(var ut=0,dt=et.allColors[rt].length;ut<dt;ut++)lt=colors$2[et.allColors[rt][ut]](lt);return lt}},{key:"transform",value:function(rt,nt){return nt.all&&typeof rt[MESSAGE$9]=="string"&&(rt[MESSAGE$9]=this.colorize(rt[LEVEL$8],rt.level,rt[MESSAGE$9])),(nt.level||nt.all||!nt.message)&&(rt.level=this.colorize(rt[LEVEL$8],rt.level)),(nt.all||nt.message)&&(rt.message=this.colorize(rt[LEVEL$8],rt.level,rt.message)),rt}}],[{key:"addColors",value:function(rt){var nt=Object.keys(rt).reduce(function(lt,ut){return lt[ut]=hasSpace.test(rt[ut])?rt[ut].split(hasSpace):rt[ut],lt},{});return et.allColors=Object.assign({},et.allColors||{},nt),et.allColors}}]),et}();colorize.exports=function(et){return new Colorizer$2(et)};colorize.exports.Colorizer=colorize.exports.Format=Colorizer$2;var colorizeExports=colorize.exports,_require$g=colorizeExports,Colorizer$1=_require$g.Colorizer,levels=function(et){return Colorizer$1.addColors(et.colors||et),et},format$i=format$j,align=format$i(function(et){return et.message="	".concat(et.message),et}),cli={exports:{}},padLevels={exports:{}};function _typeof$h(et){"@babel/helpers - typeof";return _typeof$h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$h(et)}function _toConsumableArray$4(et){return _arrayWithoutHoles$4(et)||_iterableToArray$4(et)||_unsupportedIterableToArray$k(et)||_nonIterableSpread$4()}function _nonIterableSpread$4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$k(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$k(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$k(et,tt)}}function _iterableToArray$4(et){if(typeof Symbol<"u"&&et[Symbol.iterator]!=null||et["@@iterator"]!=null)return Array.from(et)}function _arrayWithoutHoles$4(et){if(Array.isArray(et))return _arrayLikeToArray$k(et)}function _arrayLikeToArray$k(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _classCallCheck$m(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$i(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$c(nt.key),nt)}}function _createClass$m(et,tt,rt){return tt&&_defineProperties$i(et.prototype,tt),rt&&_defineProperties$i(et,rt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$c(et){var tt=_toPrimitive$c(et,"string");return _typeof$h(tt)=="symbol"?tt:String(tt)}function _toPrimitive$c(et,tt){if(_typeof$h(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$h(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}var _require$f=tripleBeam,configs$2=_require$f.configs,LEVEL$7=_require$f.LEVEL,MESSAGE$8=_require$f.MESSAGE,Padder$1=function(){function et(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:configs$2.npm.levels};_classCallCheck$m(this,et),this.paddings=et.paddingForLevels(tt.levels,tt.filler),this.options=tt}return _createClass$m(et,[{key:"transform",value:function(rt,nt){return rt.message="".concat(this.paddings[rt[LEVEL$7]]).concat(rt.message),rt[MESSAGE$8]&&(rt[MESSAGE$8]="".concat(this.paddings[rt[LEVEL$7]]).concat(rt[MESSAGE$8])),rt}}],[{key:"getLongestLevel",value:function(rt){var nt=Object.keys(rt).map(function(lt){return lt.length});return Math.max.apply(Math,_toConsumableArray$4(nt))}},{key:"paddingForLevel",value:function(rt,nt,lt){var ut=lt+1-rt.length,dt=Math.floor(ut/nt.length),pt="".concat(nt).concat(nt.repeat(dt));return pt.slice(0,ut)}},{key:"paddingForLevels",value:function(rt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",lt=et.getLongestLevel(rt);return Object.keys(rt).reduce(function(ut,dt){return ut[dt]=et.paddingForLevel(dt,nt,lt),ut},{})}}]),et}();padLevels.exports=function(et){return new Padder$1(et)};padLevels.exports.Padder=padLevels.exports.Format=Padder$1;var padLevelsExports=padLevels.exports;function _typeof$g(et){"@babel/helpers - typeof";return _typeof$g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$g(et)}function _classCallCheck$l(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$h(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$b(nt.key),nt)}}function _createClass$l(et,tt,rt){return tt&&_defineProperties$h(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$b(et){var tt=_toPrimitive$b(et,"string");return _typeof$g(tt)=="symbol"?tt:String(tt)}function _toPrimitive$b(et,tt){if(_typeof$g(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$g(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}var _require$e=colorizeExports,Colorizer=_require$e.Colorizer,_require2=padLevelsExports,Padder=_require2.Padder,_require3=tripleBeam,configs$1=_require3.configs,MESSAGE$7=_require3.MESSAGE,CliFormat=function(){function et(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$l(this,et),tt.levels||(tt.levels=configs$1.cli.levels),this.colorizer=new Colorizer(tt),this.padder=new Padder(tt),this.options=tt}return _createClass$l(et,[{key:"transform",value:function(rt,nt){return this.colorizer.transform(this.padder.transform(rt,nt),nt),rt[MESSAGE$7]="".concat(rt.level,":").concat(rt.message),rt}}]),et}();cli.exports=function(et){return new CliFormat(et)};cli.exports.Format=CliFormat;var cliExports=cli.exports,combine$5={exports:{}},format$h=format$j;function cascade(et){if(et.every(isValidFormat))return function(tt){for(var rt=tt,nt=0;nt<et.length;nt++)if(rt=et[nt].transform(rt,et[nt].options),!rt)return!1;return rt}}function isValidFormat(et){if(typeof et.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
`));return!0}combine$5.exports=function(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];var nt=format$h(cascade(tt)),lt=nt();return lt.Format=nt.Format,lt};combine$5.exports.cascade=cascade;var combineExports=combine$5.exports;function _typeof$f(et){"@babel/helpers - typeof";return _typeof$f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$f(et)}function _defineProperty$d(et,tt,rt){return tt=_toPropertyKey$a(tt),tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _toPropertyKey$a(et){var tt=_toPrimitive$a(et,"string");return _typeof$f(tt)=="symbol"?tt:String(tt)}function _toPrimitive$a(et,tt){if(_typeof$f(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt||"default");if(_typeof$f(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(tt==="string"?String:Number)(et)}var format$g=format$j,_require$d=tripleBeam,LEVEL$6=_require$d.LEVEL,MESSAGE$6=_require$d.MESSAGE,errors$1=format$g(function(et,tt){var rt=tt.stack,nt=tt.cause;if(et instanceof Error){var lt=Object.assign({},et,_defineProperty$d(_defineProperty$d(_defineProperty$d({level:et.level},LEVEL$6,et[LEVEL$6]||et.level),"message",et.message),MESSAGE$6,et[MESSAGE$6]||et.message));return rt&&(lt.stack=et.stack),nt&&(lt.cause=et.cause),lt}if(!(et.message instanceof Error))return et;var ut=et.message;return Object.assign(et,ut),et.message=ut.message,et[MESSAGE$6]=ut.message,rt&&(et.stack=ut.stack),nt&&(et.cause=ut.cause),et}),safeStableStringify={exports:{}};(function(et,tt){const{hasOwnProperty:rt}=Object.prototype,nt=Tt();nt.configure=Tt,nt.stringify=nt,nt.default=nt,tt.stringify=nt,tt.configure=Tt,et.exports=nt;const lt=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function ut(Ct){return Ct.length<5e3&&!lt.test(Ct)?`"${Ct}"`:JSON.stringify(Ct)}function dt(Ct,It){if(Ct.length>200||It)return Ct.sort(It);for(let Dt=1;Dt<Ct.length;Dt++){const kt=Ct[Dt];let qt=Dt;for(;qt!==0&&Ct[qt-1]>kt;)Ct[qt]=Ct[qt-1],qt--;Ct[qt]=kt}return Ct}const pt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function ht(Ct){return pt.call(Ct)!==void 0&&Ct.length!==0}function mt(Ct,It,Dt){Ct.length<Dt&&(Dt=Ct.length);const kt=It===","?"":" ";let qt=`"0":${kt}${Ct[0]}`;for(let Nt=1;Nt<Dt;Nt++)qt+=`${It}"${Nt}":${kt}${Ct[Nt]}`;return qt}function xt(Ct){if(rt.call(Ct,"circularValue")){const It=Ct.circularValue;if(typeof It=="string")return`"${It}"`;if(It==null)return It;if(It===Error||It===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Mt(Ct){let It;if(rt.call(Ct,"deterministic")&&(It=Ct.deterministic,typeof It!="boolean"&&typeof It!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return It===void 0?!0:It}function vt(Ct,It){let Dt;if(rt.call(Ct,It)&&(Dt=Ct[It],typeof Dt!="boolean"))throw new TypeError(`The "${It}" argument must be of type boolean`);return Dt===void 0?!0:Dt}function Ot(Ct,It){let Dt;if(rt.call(Ct,It)){if(Dt=Ct[It],typeof Dt!="number")throw new TypeError(`The "${It}" argument must be of type number`);if(!Number.isInteger(Dt))throw new TypeError(`The "${It}" argument must be an integer`);if(Dt<1)throw new RangeError(`The "${It}" argument must be >= 1`)}return Dt===void 0?1/0:Dt}function At(Ct){return Ct===1?"1 item":`${Ct} items`}function Rt(Ct){const It=new Set;for(const Dt of Ct)(typeof Dt=="string"||typeof Dt=="number")&&It.add(String(Dt));return It}function zt(Ct){if(rt.call(Ct,"strict")){const It=Ct.strict;if(typeof It!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(It)return Dt=>{let kt=`Object can not safely be stringified. Received type ${typeof Dt}`;throw typeof Dt!="function"&&(kt+=` (${Dt.toString()})`),new Error(kt)}}}function Tt(Ct){Ct={...Ct};const It=zt(Ct);It&&(Ct.bigint===void 0&&(Ct.bigint=!1),"circularValue"in Ct||(Ct.circularValue=Error));const Dt=xt(Ct),kt=vt(Ct,"bigint"),qt=Mt(Ct),Nt=typeof qt=="function"?qt:void 0,Yt=Ot(Ct,"maximumDepth"),Kt=Ot(Ct,"maximumBreadth");function Jt(jt,Wt,Ut,Vt,Ht,Gt){let Zt=Wt[jt];switch(typeof Zt=="object"&&Zt!==null&&typeof Zt.toJSON=="function"&&(Zt=Zt.toJSON(jt)),Zt=Vt.call(Wt,jt,Zt),typeof Zt){case"string":return ut(Zt);case"object":{if(Zt===null)return"null";if(Ut.indexOf(Zt)!==-1)return Dt;let Xt="",er=",";const nr=Gt;if(Array.isArray(Zt)){if(Zt.length===0)return"[]";if(Yt<Ut.length+1)return'"[Array]"';Ut.push(Zt),Ht!==""&&(Gt+=Ht,Xt+=`
${Gt}`,er=`,
${Gt}`);const gr=Math.min(Zt.length,Kt);let br=0;for(;br<gr-1;br++){const ur=Jt(String(br),Zt,Ut,Vt,Ht,Gt);Xt+=ur!==void 0?ur:"null",Xt+=er}const ar=Jt(String(br),Zt,Ut,Vt,Ht,Gt);if(Xt+=ar!==void 0?ar:"null",Zt.length-1>Kt){const ur=Zt.length-Kt-1;Xt+=`${er}"... ${At(ur)} not stringified"`}return Ht!==""&&(Xt+=`
${nr}`),Ut.pop(),`[${Xt}]`}let or=Object.keys(Zt);const rr=or.length;if(rr===0)return"{}";if(Yt<Ut.length+1)return'"[Object]"';let cr="",ir="";Ht!==""&&(Gt+=Ht,er=`,
${Gt}`,cr=" ");const dr=Math.min(rr,Kt);qt&&!ht(Zt)&&(or=dt(or,Nt)),Ut.push(Zt);for(let gr=0;gr<dr;gr++){const br=or[gr],ar=Jt(br,Zt,Ut,Vt,Ht,Gt);ar!==void 0&&(Xt+=`${ir}${ut(br)}:${cr}${ar}`,ir=er)}if(rr>Kt){const gr=rr-Kt;Xt+=`${ir}"...":${cr}"${At(gr)} not stringified"`,ir=er}return Ht!==""&&ir.length>1&&(Xt=`
${Gt}${Xt}
${nr}`),Ut.pop(),`{${Xt}}`}case"number":return isFinite(Zt)?String(Zt):It?It(Zt):"null";case"boolean":return Zt===!0?"true":"false";case"undefined":return;case"bigint":if(kt)return String(Zt);default:return It?It(Zt):void 0}}function Qt(jt,Wt,Ut,Vt,Ht,Gt){switch(typeof Wt=="object"&&Wt!==null&&typeof Wt.toJSON=="function"&&(Wt=Wt.toJSON(jt)),typeof Wt){case"string":return ut(Wt);case"object":{if(Wt===null)return"null";if(Ut.indexOf(Wt)!==-1)return Dt;const Zt=Gt;let Xt="",er=",";if(Array.isArray(Wt)){if(Wt.length===0)return"[]";if(Yt<Ut.length+1)return'"[Array]"';Ut.push(Wt),Ht!==""&&(Gt+=Ht,Xt+=`
${Gt}`,er=`,
${Gt}`);const rr=Math.min(Wt.length,Kt);let cr=0;for(;cr<rr-1;cr++){const dr=Qt(String(cr),Wt[cr],Ut,Vt,Ht,Gt);Xt+=dr!==void 0?dr:"null",Xt+=er}const ir=Qt(String(cr),Wt[cr],Ut,Vt,Ht,Gt);if(Xt+=ir!==void 0?ir:"null",Wt.length-1>Kt){const dr=Wt.length-Kt-1;Xt+=`${er}"... ${At(dr)} not stringified"`}return Ht!==""&&(Xt+=`
${Zt}`),Ut.pop(),`[${Xt}]`}Ut.push(Wt);let nr="";Ht!==""&&(Gt+=Ht,er=`,
${Gt}`,nr=" ");let or="";for(const rr of Vt){const cr=Qt(rr,Wt[rr],Ut,Vt,Ht,Gt);cr!==void 0&&(Xt+=`${or}${ut(rr)}:${nr}${cr}`,or=er)}return Ht!==""&&or.length>1&&(Xt=`
${Gt}${Xt}
${Zt}`),Ut.pop(),`{${Xt}}`}case"number":return isFinite(Wt)?String(Wt):It?It(Wt):"null";case"boolean":return Wt===!0?"true":"false";case"undefined":return;case"bigint":if(kt)return String(Wt);default:return It?It(Wt):void 0}}function Bt(jt,Wt,Ut,Vt,Ht){switch(typeof Wt){case"string":return ut(Wt);case"object":{if(Wt===null)return"null";if(typeof Wt.toJSON=="function"){if(Wt=Wt.toJSON(jt),typeof Wt!="object")return Bt(jt,Wt,Ut,Vt,Ht);if(Wt===null)return"null"}if(Ut.indexOf(Wt)!==-1)return Dt;const Gt=Ht;if(Array.isArray(Wt)){if(Wt.length===0)return"[]";if(Yt<Ut.length+1)return'"[Array]"';Ut.push(Wt),Ht+=Vt;let cr=`
${Ht}`;const ir=`,
${Ht}`,dr=Math.min(Wt.length,Kt);let gr=0;for(;gr<dr-1;gr++){const ar=Bt(String(gr),Wt[gr],Ut,Vt,Ht);cr+=ar!==void 0?ar:"null",cr+=ir}const br=Bt(String(gr),Wt[gr],Ut,Vt,Ht);if(cr+=br!==void 0?br:"null",Wt.length-1>Kt){const ar=Wt.length-Kt-1;cr+=`${ir}"... ${At(ar)} not stringified"`}return cr+=`
${Gt}`,Ut.pop(),`[${cr}]`}let Zt=Object.keys(Wt);const Xt=Zt.length;if(Xt===0)return"{}";if(Yt<Ut.length+1)return'"[Object]"';Ht+=Vt;const er=`,
${Ht}`;let nr="",or="",rr=Math.min(Xt,Kt);ht(Wt)&&(nr+=mt(Wt,er,Kt),Zt=Zt.slice(Wt.length),rr-=Wt.length,or=er),qt&&(Zt=dt(Zt,Nt)),Ut.push(Wt);for(let cr=0;cr<rr;cr++){const ir=Zt[cr],dr=Bt(ir,Wt[ir],Ut,Vt,Ht);dr!==void 0&&(nr+=`${or}${ut(ir)}: ${dr}`,or=er)}if(Xt>Kt){const cr=Xt-Kt;nr+=`${or}"...": "${At(cr)} not stringified"`,or=er}return or!==""&&(nr=`
${Ht}${nr}
${Gt}`),Ut.pop(),`{${nr}}`}case"number":return isFinite(Wt)?String(Wt):It?It(Wt):"null";case"boolean":return Wt===!0?"true":"false";case"undefined":return;case"bigint":if(kt)return String(Wt);default:return It?It(Wt):void 0}}function Ft(jt,Wt,Ut){switch(typeof Wt){case"string":return ut(Wt);case"object":{if(Wt===null)return"null";if(typeof Wt.toJSON=="function"){if(Wt=Wt.toJSON(jt),typeof Wt!="object")return Ft(jt,Wt,Ut);if(Wt===null)return"null"}if(Ut.indexOf(Wt)!==-1)return Dt;let Vt="";const Ht=Wt.length!==void 0;if(Ht&&Array.isArray(Wt)){if(Wt.length===0)return"[]";if(Yt<Ut.length+1)return'"[Array]"';Ut.push(Wt);const nr=Math.min(Wt.length,Kt);let or=0;for(;or<nr-1;or++){const cr=Ft(String(or),Wt[or],Ut);Vt+=cr!==void 0?cr:"null",Vt+=","}const rr=Ft(String(or),Wt[or],Ut);if(Vt+=rr!==void 0?rr:"null",Wt.length-1>Kt){const cr=Wt.length-Kt-1;Vt+=`,"... ${At(cr)} not stringified"`}return Ut.pop(),`[${Vt}]`}let Gt=Object.keys(Wt);const Zt=Gt.length;if(Zt===0)return"{}";if(Yt<Ut.length+1)return'"[Object]"';let Xt="",er=Math.min(Zt,Kt);Ht&&ht(Wt)&&(Vt+=mt(Wt,",",Kt),Gt=Gt.slice(Wt.length),er-=Wt.length,Xt=","),qt&&(Gt=dt(Gt,Nt)),Ut.push(Wt);for(let nr=0;nr<er;nr++){const or=Gt[nr],rr=Ft(or,Wt[or],Ut);rr!==void 0&&(Vt+=`${Xt}${ut(or)}:${rr}`,Xt=",")}if(Zt>Kt){const nr=Zt-Kt;Vt+=`${Xt}"...":"${At(nr)} not stringified"`}return Ut.pop(),`{${Vt}}`}case"number":return isFinite(Wt)?String(Wt):It?It(Wt):"null";case"boolean":return Wt===!0?"true":"false";case"undefined":return;case"bigint":if(kt)return String(Wt);default:return It?It(Wt):void 0}}function $t(jt,Wt,Ut){if(arguments.length>1){let Vt="";if(typeof Ut=="number"?Vt=" ".repeat(Math.min(Ut,10)):typeof Ut=="string"&&(Vt=Ut.slice(0,10)),Wt!=null){if(typeof Wt=="function")return Jt("",{"":jt},[],Wt,Vt,"");if(Array.isArray(Wt))return Qt("",jt,[],Rt(Wt),Vt,"")}if(Vt.length!==0)return Bt("",jt,[],Vt,"")}return Ft("",jt,[])}return $t}})(safeStableStringify,safeStableStringify.exports);var safeStableStringifyExports=safeStableStringify.exports,format$f=format$j,_require$c=tripleBeam,MESSAGE$5=_require$c.MESSAGE,stringify$3=safeStableStringifyExports;function replacer(et,tt){return typeof tt=="bigint"?tt.toString():tt}var json$1=format$f(function(et,tt){var rt=stringify$3.configure(tt);return et[MESSAGE$5]=rt(et,tt.replacer||replacer,tt.space),et}),format$e=format$j,label=format$e(function(et,tt){return tt.message?(et.message="[".concat(tt.label,"] ").concat(et.message),et):(et.label=tt.label,et)}),format$d=format$j,_require$b=tripleBeam,MESSAGE$4=_require$b.MESSAGE,jsonStringify$2=safeStableStringifyExports,logstash=format$d(function(et){var tt={};return et.message&&(tt["@message"]=et.message,delete et.message),et.timestamp&&(tt["@timestamp"]=et.timestamp,delete et.timestamp),tt["@fields"]=et,et[MESSAGE$4]=jsonStringify$2(tt),et});function _typeof$e(et){"@babel/helpers - typeof";return _typeof$e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$e(et)}function _defineProperty$c(et,tt,rt){return tt=_toPropertyKey$9(tt),tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _toPropertyKey$9(et){var tt=_toPrimitive$9(et,"string");return _typeof$e(tt)=="symbol"?tt:String(tt)}function _toPrimitive$9(et,tt){if(_typeof$e(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt||"default");if(_typeof$e(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(tt==="string"?String:Number)(et)}var format$c=format$j;function fillExcept(et,tt,rt){var nt=tt.reduce(function(ut,dt){return ut[dt]=et[dt],delete et[dt],ut},{}),lt=Object.keys(et).reduce(function(ut,dt){return ut[dt]=et[dt],delete et[dt],ut},{});return Object.assign(et,nt,_defineProperty$c({},rt,lt)),et}function fillWith(et,tt,rt){return et[rt]=tt.reduce(function(nt,lt){return nt[lt]=et[lt],delete et[lt],nt},{}),et}var metadata$2=format$c(function(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt="metadata";tt.key&&(rt=tt.key);var nt=[];return!tt.fillExcept&&!tt.fillWith&&(nt.push("level"),nt.push("message")),tt.fillExcept&&(nt=tt.fillExcept),nt.length>0?fillExcept(et,nt,rt):tt.fillWith?fillWith(et,tt.fillWith,rt):et}),s$2=1e3,m$4=s$2*60,h$4=m$4*60,d$4=h$4*24,w$3=d$4*7,y$3=d$4*365.25,ms$1=function(et,tt){tt=tt||{};var rt=typeof et;if(rt==="string"&&et.length>0)return parse$a(et);if(rt==="number"&&isFinite(et))return tt.long?fmtLong(et):fmtShort(et);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(et))};function parse$a(et){if(et=String(et),!(et.length>100)){var tt=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(et);if(tt){var rt=parseFloat(tt[1]),nt=(tt[2]||"ms").toLowerCase();switch(nt){case"years":case"year":case"yrs":case"yr":case"y":return rt*y$3;case"weeks":case"week":case"w":return rt*w$3;case"days":case"day":case"d":return rt*d$4;case"hours":case"hour":case"hrs":case"hr":case"h":return rt*h$4;case"minutes":case"minute":case"mins":case"min":case"m":return rt*m$4;case"seconds":case"second":case"secs":case"sec":case"s":return rt*s$2;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return rt;default:return}}}}function fmtShort(et){var tt=Math.abs(et);return tt>=d$4?Math.round(et/d$4)+"d":tt>=h$4?Math.round(et/h$4)+"h":tt>=m$4?Math.round(et/m$4)+"m":tt>=s$2?Math.round(et/s$2)+"s":et+"ms"}function fmtLong(et){var tt=Math.abs(et);return tt>=d$4?plural(et,tt,d$4,"day"):tt>=h$4?plural(et,tt,h$4,"hour"):tt>=m$4?plural(et,tt,m$4,"minute"):tt>=s$2?plural(et,tt,s$2,"second"):et+" ms"}function plural(et,tt,rt,nt){var lt=tt>=rt*1.5;return Math.round(et/rt)+" "+nt+(lt?"s":"")}var _this=void 0,format$b=format$j,ms=ms$1,ms_1=format$b(function(et){var tt=+new Date;return _this.diff=tt-(_this.prevTime||tt),_this.prevTime=tt,et.ms="+".concat(ms(_this.diff)),et}),inspect$1=util$a.inspect,format$a=format$j,_require$a=tripleBeam,LEVEL$5=_require$a.LEVEL,MESSAGE$3=_require$a.MESSAGE,SPLAT$1=_require$a.SPLAT,prettyPrint=format$a(function(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=Object.assign({},et);return delete rt[LEVEL$5],delete rt[MESSAGE$3],delete rt[SPLAT$1],et[MESSAGE$3]=inspect$1(rt,!1,tt.depth||null,tt.colorize),et}),printf={exports:{}};function _typeof$d(et){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$d(et)}function _classCallCheck$k(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$g(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$8(nt.key),nt)}}function _createClass$k(et,tt,rt){return tt&&_defineProperties$g(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$8(et){var tt=_toPrimitive$8(et,"string");return _typeof$d(tt)=="symbol"?tt:String(tt)}function _toPrimitive$8(et,tt){if(_typeof$d(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$d(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}var _require$9=tripleBeam,MESSAGE$2=_require$9.MESSAGE,Printf=function(){function et(tt){_classCallCheck$k(this,et),this.template=tt}return _createClass$k(et,[{key:"transform",value:function(rt){return rt[MESSAGE$2]=this.template(rt),rt}}]),et}();printf.exports=function(et){return new Printf(et)};printf.exports.Printf=printf.exports.Format=Printf;var printfExports=printf.exports,format$9=format$j,_require$8=tripleBeam,MESSAGE$1=_require$8.MESSAGE,jsonStringify$1=safeStableStringifyExports,simple=format$9(function(et){var tt=jsonStringify$1(Object.assign({},et,{level:void 0,message:void 0,splat:void 0})),rt=et.padding&&et.padding[et.level]||"";return tt!=="{}"?et[MESSAGE$1]="".concat(et.level,":").concat(rt," ").concat(et.message," ").concat(tt):et[MESSAGE$1]="".concat(et.level,":").concat(rt," ").concat(et.message),et});function _typeof$c(et){"@babel/helpers - typeof";return _typeof$c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$c(et)}function _toConsumableArray$3(et){return _arrayWithoutHoles$3(et)||_iterableToArray$3(et)||_unsupportedIterableToArray$j(et)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$j(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$j(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$j(et,tt)}}function _iterableToArray$3(et){if(typeof Symbol<"u"&&et[Symbol.iterator]!=null||et["@@iterator"]!=null)return Array.from(et)}function _arrayWithoutHoles$3(et){if(Array.isArray(et))return _arrayLikeToArray$j(et)}function _arrayLikeToArray$j(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _classCallCheck$j(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$f(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$7(nt.key),nt)}}function _createClass$j(et,tt,rt){return tt&&_defineProperties$f(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$7(et){var tt=_toPrimitive$7(et,"string");return _typeof$c(tt)=="symbol"?tt:String(tt)}function _toPrimitive$7(et,tt){if(_typeof$c(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$c(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}var util$9=util$a,_require$7=tripleBeam,SPLAT=_require$7.SPLAT,formatRegExp=/%[scdjifoO%]/g,escapedPercent=/%%/g,Splatter=function(){function et(tt){_classCallCheck$j(this,et),this.options=tt}return _createClass$j(et,[{key:"_splat",value:function(rt,nt){var lt=rt.message,ut=rt[SPLAT]||rt.splat||[],dt=lt.match(escapedPercent),pt=dt&&dt.length||0,ht=nt.length-pt,mt=ht-ut.length,xt=mt<0?ut.splice(mt,-1*mt):[],Mt=xt.length;if(Mt)for(var vt=0;vt<Mt;vt++)Object.assign(rt,xt[vt]);return rt.message=util$9.format.apply(util$9,[lt].concat(_toConsumableArray$3(ut))),rt}},{key:"transform",value:function(rt){var nt=rt.message,lt=rt[SPLAT]||rt.splat;if(!lt||!lt.length)return rt;var ut=nt&&nt.match&&nt.match(formatRegExp);if(!ut&&(lt||lt.length)){var dt=lt.length>1?lt.splice(0):lt,pt=dt.length;if(pt)for(var ht=0;ht<pt;ht++)Object.assign(rt,dt[ht]);return rt}return ut?this._splat(rt,ut):rt}}]),et}(),splat=function(et){return new Splatter(et)},token$1=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,twoDigitsOptional="\\d\\d?",twoDigits="\\d\\d",threeDigits="\\d{3}",fourDigits="\\d{4}",word="[^\\s]+",literal=/\[([^]*?)\]/gm;function shorten(et,tt){for(var rt=[],nt=0,lt=et.length;nt<lt;nt++)rt.push(et[nt].substr(0,tt));return rt}var monthUpdate=function(et){return function(tt,rt){var nt=rt[et].map(function(ut){return ut.toLowerCase()}),lt=nt.indexOf(tt.toLowerCase());return lt>-1?lt:null}};function assign$3(et){for(var tt=[],rt=1;rt<arguments.length;rt++)tt[rt-1]=arguments[rt];for(var nt=0,lt=tt;nt<lt.length;nt++){var ut=lt[nt];for(var dt in ut)et[dt]=ut[dt]}return et}var dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames$1=["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort=shorten(monthNames$1,3),dayNamesShort=shorten(dayNames,3),defaultI18n={dayNamesShort,dayNames,monthNamesShort,monthNames:monthNames$1,amPm:["am","pm"],DoFn:function(et){return et+["th","st","nd","rd"][et%10>3?0:(et-et%10!==10?1:0)*et%10]}},globalI18n=assign$3({},defaultI18n),setGlobalDateI18n=function(et){return globalI18n=assign$3(globalI18n,et)},regexEscape=function(et){return et.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},pad=function(et,tt){for(tt===void 0&&(tt=2),et=String(et);et.length<tt;)et="0"+et;return et},formatFlags={D:function(et){return String(et.getDate())},DD:function(et){return pad(et.getDate())},Do:function(et,tt){return tt.DoFn(et.getDate())},d:function(et){return String(et.getDay())},dd:function(et){return pad(et.getDay())},ddd:function(et,tt){return tt.dayNamesShort[et.getDay()]},dddd:function(et,tt){return tt.dayNames[et.getDay()]},M:function(et){return String(et.getMonth()+1)},MM:function(et){return pad(et.getMonth()+1)},MMM:function(et,tt){return tt.monthNamesShort[et.getMonth()]},MMMM:function(et,tt){return tt.monthNames[et.getMonth()]},YY:function(et){return pad(String(et.getFullYear()),4).substr(2)},YYYY:function(et){return pad(et.getFullYear(),4)},h:function(et){return String(et.getHours()%12||12)},hh:function(et){return pad(et.getHours()%12||12)},H:function(et){return String(et.getHours())},HH:function(et){return pad(et.getHours())},m:function(et){return String(et.getMinutes())},mm:function(et){return pad(et.getMinutes())},s:function(et){return String(et.getSeconds())},ss:function(et){return pad(et.getSeconds())},S:function(et){return String(Math.round(et.getMilliseconds()/100))},SS:function(et){return pad(Math.round(et.getMilliseconds()/10),2)},SSS:function(et){return pad(et.getMilliseconds(),3)},a:function(et,tt){return et.getHours()<12?tt.amPm[0]:tt.amPm[1]},A:function(et,tt){return et.getHours()<12?tt.amPm[0].toUpperCase():tt.amPm[1].toUpperCase()},ZZ:function(et){var tt=et.getTimezoneOffset();return(tt>0?"-":"+")+pad(Math.floor(Math.abs(tt)/60)*100+Math.abs(tt)%60,4)},Z:function(et){var tt=et.getTimezoneOffset();return(tt>0?"-":"+")+pad(Math.floor(Math.abs(tt)/60),2)+":"+pad(Math.abs(tt)%60,2)}},monthParse=function(et){return+et-1},emptyDigits=[null,twoDigitsOptional],emptyWord=[null,word],amPm=["isPm",word,function(et,tt){var rt=et.toLowerCase();return rt===tt.amPm[0]?0:rt===tt.amPm[1]?1:null}],timezoneOffset=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(et){var tt=(et+"").match(/([+-]|\d\d)/gi);if(tt){var rt=+tt[1]*60+parseInt(tt[2],10);return tt[0]==="+"?rt:-rt}return 0}],parseFlags={D:["day",twoDigitsOptional],DD:["day",twoDigits],Do:["day",twoDigitsOptional+word,function(et){return parseInt(et,10)}],M:["month",twoDigitsOptional,monthParse],MM:["month",twoDigits,monthParse],YY:["year",twoDigits,function(et){var tt=new Date,rt=+(""+tt.getFullYear()).substr(0,2);return+(""+(+et>68?rt-1:rt)+et)}],h:["hour",twoDigitsOptional,void 0,"isPm"],hh:["hour",twoDigits,void 0,"isPm"],H:["hour",twoDigitsOptional],HH:["hour",twoDigits],m:["minute",twoDigitsOptional],mm:["minute",twoDigits],s:["second",twoDigitsOptional],ss:["second",twoDigits],YYYY:["year",fourDigits],S:["millisecond","\\d",function(et){return+et*100}],SS:["millisecond",twoDigits,function(et){return+et*10}],SSS:["millisecond",threeDigits],d:emptyDigits,dd:emptyDigits,ddd:emptyWord,dddd:emptyWord,MMM:["month",word,monthUpdate("monthNamesShort")],MMMM:["month",word,monthUpdate("monthNames")],a:amPm,A:amPm,ZZ:timezoneOffset,Z:timezoneOffset},globalMasks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},setGlobalDateMasks=function(et){return assign$3(globalMasks,et)},format$8=function(et,tt,rt){if(tt===void 0&&(tt=globalMasks.default),rt===void 0&&(rt={}),typeof et=="number"&&(et=new Date(et)),Object.prototype.toString.call(et)!=="[object Date]"||isNaN(et.getTime()))throw new Error("Invalid Date pass to format");tt=globalMasks[tt]||tt;var nt=[];tt=tt.replace(literal,function(ut,dt){return nt.push(dt),"@@@"});var lt=assign$3(assign$3({},globalI18n),rt);return tt=tt.replace(token$1,function(ut){return formatFlags[ut](et,lt)}),tt.replace(/@@@/g,function(){return nt.shift()})};function parse$9(et,tt,rt){if(rt===void 0&&(rt={}),typeof tt!="string")throw new Error("Invalid format in fecha parse");if(tt=globalMasks[tt]||tt,et.length>1e3)return null;var nt=new Date,lt={year:nt.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ut=[],dt=[],pt=tt.replace(literal,function(Dt,kt){return dt.push(regexEscape(kt)),"@@@"}),ht={},mt={};pt=regexEscape(pt).replace(token$1,function(Dt){var kt=parseFlags[Dt],qt=kt[0],Nt=kt[1],Yt=kt[3];if(ht[qt])throw new Error("Invalid format. "+qt+" specified twice in format");return ht[qt]=!0,Yt&&(mt[Yt]=!0),ut.push(kt),"("+Nt+")"}),Object.keys(mt).forEach(function(Dt){if(!ht[Dt])throw new Error("Invalid format. "+Dt+" is required in specified format")}),pt=pt.replace(/@@@/g,function(){return dt.shift()});var xt=et.match(new RegExp(pt,"i"));if(!xt)return null;for(var Mt=assign$3(assign$3({},globalI18n),rt),vt=1;vt<xt.length;vt++){var Ot=ut[vt-1],At=Ot[0],Rt=Ot[2],zt=Rt?Rt(xt[vt],Mt):+xt[vt];if(zt==null)return null;lt[At]=zt}lt.isPm===1&&lt.hour!=null&&+lt.hour!=12?lt.hour=+lt.hour+12:lt.isPm===0&&+lt.hour==12&&(lt.hour=0);var Tt;if(lt.timezoneOffset==null){Tt=new Date(lt.year,lt.month,lt.day,lt.hour,lt.minute,lt.second,lt.millisecond);for(var Ct=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],vt=0,It=Ct.length;vt<It;vt++)if(ht[Ct[vt][0]]&&lt[Ct[vt][0]]!==Tt[Ct[vt][1]]())return null}else if(Tt=new Date(Date.UTC(lt.year,lt.month,lt.day,lt.hour,lt.minute-lt.timezoneOffset,lt.second,lt.millisecond)),lt.month>11||lt.month<0||lt.day>31||lt.day<1||lt.hour>23||lt.hour<0||lt.minute>59||lt.minute<0||lt.second>59||lt.second<0)return null;return Tt}var fecha$1={format:format$8,parse:parse$9,defaultI18n,setGlobalDateI18n,setGlobalDateMasks};const fecha$2=Object.freeze(Object.defineProperty({__proto__:null,assign:assign$3,default:fecha$1,defaultI18n,format:format$8,parse:parse$9,setGlobalDateI18n,setGlobalDateMasks},Symbol.toStringTag,{value:"Module"})),require$$0$5=getAugmentedNamespace(fecha$2);var fecha=require$$0$5,format$7=format$j,timestamp=format$7(function(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return tt.format&&(et.timestamp=typeof tt.format=="function"?tt.format():fecha.format(new Date,tt.format)),et.timestamp||(et.timestamp=new Date().toISOString()),tt.alias&&(et[tt.alias]=et.timestamp),et}),colors$1=safeExports,format$6=format$j,_require$6=tripleBeam,MESSAGE=_require$6.MESSAGE,uncolorize=format$6(function(et,tt){return tt.level!==!1&&(et.level=colors$1.strip(et.level)),tt.message!==!1&&(et.message=colors$1.strip(String(et.message))),tt.raw!==!1&&et[MESSAGE]&&(et[MESSAGE]=colors$1.strip(String(et[MESSAGE]))),et}),format$5=browser$h.format=format$j;browser$h.levels=levels;Object.defineProperty(format$5,"align",{value:align});Object.defineProperty(format$5,"cli",{value:cliExports});Object.defineProperty(format$5,"colorize",{value:colorizeExports});Object.defineProperty(format$5,"combine",{value:combineExports});Object.defineProperty(format$5,"errors",{value:errors$1});Object.defineProperty(format$5,"json",{value:json$1});Object.defineProperty(format$5,"label",{value:label});Object.defineProperty(format$5,"logstash",{value:logstash});Object.defineProperty(format$5,"metadata",{value:metadata$2});Object.defineProperty(format$5,"ms",{value:ms_1});Object.defineProperty(format$5,"padLevels",{value:padLevelsExports});Object.defineProperty(format$5,"prettyPrint",{value:prettyPrint});Object.defineProperty(format$5,"printf",{value:printfExports});Object.defineProperty(format$5,"simple",{value:simple});Object.defineProperty(format$5,"splat",{value:splat});Object.defineProperty(format$5,"timestamp",{value:timestamp});Object.defineProperty(format$5,"uncolorize",{value:uncolorize});var common$8={};(function(et){var tt=util$a,rt=tt.format;et.warn={deprecated:function(lt){return function(){throw new Error(rt("{ %s } was removed in winston@3.0.0.",lt))}},useFormat:function(lt){return function(){throw new Error([rt("{ %s } was removed in winston@3.0.0.",lt),"Use a custom winston.format = winston.format(function) instead."].join(`
`))}},forFunctions:function(lt,ut,dt){dt.forEach(function(pt){lt[pt]=et.warn[ut](pt)})},forProperties:function(lt,ut,dt){dt.forEach(function(pt){var ht=et.warn[ut](pt);Object.defineProperty(lt,pt,{get:ht,set:ht})})}}})(common$8);const name$2="winston",description$1="A logger for just about everything.",version$1="3.14.2",author$1="Charlie Robbins <charlie.robbins@gmail.com>",maintainers=["David Hyde <dabh@alumni.stanford.edu>"],repository$1={type:"git",url:"https://github.com/winstonjs/winston.git"},keywords$1=["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies$1={"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.6.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies$1={"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^4.4.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"5.0.1",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main$2="./lib/winston.js",browser$e="./dist/winston",types="./index.d.ts",scripts$1={lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines={node:">= 12.0.0"},license$1="MIT",require$$2$2={name:name$2,description:description$1,version:version$1,author:author$1,maintainers,repository:repository$1,keywords:keywords$1,dependencies:dependencies$1,devDependencies:devDependencies$1,main:main$2,browser:browser$e,types,scripts:scripts$1,engines,license:license$1};var transports={},dist$6={exports:{}},modern$1={exports:{}},browser$d=deprecate;function deprecate(et,tt){if(config$4("noDeprecation"))return et;var rt=!1;function nt(){if(!rt){if(config$4("throwDeprecation"))throw new Error(tt);config$4("traceDeprecation")?console.trace(tt):console.warn(tt),rt=!0}return et.apply(this,arguments)}return nt}function config$4(et){try{if(!commonjsGlobal$1.localStorage)return!1}catch{return!1}var tt=commonjsGlobal$1.localStorage[et];return tt==null?!1:String(tt).toLowerCase()==="true"}var events={exports:{}},R$2=typeof Reflect=="object"?Reflect:null,ReflectApply=R$2&&typeof R$2.apply=="function"?R$2.apply:function(tt,rt,nt){return Function.prototype.apply.call(tt,rt,nt)},ReflectOwnKeys;R$2&&typeof R$2.ownKeys=="function"?ReflectOwnKeys=R$2.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(tt){return Object.getOwnPropertyNames(tt).concat(Object.getOwnPropertySymbols(tt))}:ReflectOwnKeys=function(tt){return Object.getOwnPropertyNames(tt)};function ProcessEmitWarning(et){console&&console.warn&&console.warn(et)}var NumberIsNaN=Number.isNaN||function(tt){return tt!==tt};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter;events.exports.once=once$6;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=void 0;EventEmitter.prototype._eventsCount=0;EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(et){if(typeof et!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof et)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(et){if(typeof et!="number"||et<0||NumberIsNaN(et))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+et+".");defaultMaxListeners=et}});EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter.prototype.setMaxListeners=function(tt){if(typeof tt!="number"||tt<0||NumberIsNaN(tt))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+tt+".");return this._maxListeners=tt,this};function _getMaxListeners(et){return et._maxListeners===void 0?EventEmitter.defaultMaxListeners:et._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter.prototype.emit=function(tt){for(var rt=[],nt=1;nt<arguments.length;nt++)rt.push(arguments[nt]);var lt=tt==="error",ut=this._events;if(ut!==void 0)lt=lt&&ut.error===void 0;else if(!lt)return!1;if(lt){var dt;if(rt.length>0&&(dt=rt[0]),dt instanceof Error)throw dt;var pt=new Error("Unhandled error."+(dt?" ("+dt.message+")":""));throw pt.context=dt,pt}var ht=ut[tt];if(ht===void 0)return!1;if(typeof ht=="function")ReflectApply(ht,this,rt);else for(var mt=ht.length,xt=arrayClone(ht,mt),nt=0;nt<mt;++nt)ReflectApply(xt[nt],this,rt);return!0};function _addListener(et,tt,rt,nt){var lt,ut,dt;if(checkListener(rt),ut=et._events,ut===void 0?(ut=et._events=Object.create(null),et._eventsCount=0):(ut.newListener!==void 0&&(et.emit("newListener",tt,rt.listener?rt.listener:rt),ut=et._events),dt=ut[tt]),dt===void 0)dt=ut[tt]=rt,++et._eventsCount;else if(typeof dt=="function"?dt=ut[tt]=nt?[rt,dt]:[dt,rt]:nt?dt.unshift(rt):dt.push(rt),lt=_getMaxListeners(et),lt>0&&dt.length>lt&&!dt.warned){dt.warned=!0;var pt=new Error("Possible EventEmitter memory leak detected. "+dt.length+" "+String(tt)+" listeners added. Use emitter.setMaxListeners() to increase limit");pt.name="MaxListenersExceededWarning",pt.emitter=et,pt.type=tt,pt.count=dt.length,ProcessEmitWarning(pt)}return et}EventEmitter.prototype.addListener=function(tt,rt){return _addListener(this,tt,rt,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(tt,rt){return _addListener(this,tt,rt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(et,tt,rt){var nt={fired:!1,wrapFn:void 0,target:et,type:tt,listener:rt},lt=onceWrapper.bind(nt);return lt.listener=rt,nt.wrapFn=lt,lt}EventEmitter.prototype.once=function(tt,rt){return checkListener(rt),this.on(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.prependOnceListener=function(tt,rt){return checkListener(rt),this.prependListener(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.removeListener=function(tt,rt){var nt,lt,ut,dt,pt;if(checkListener(rt),lt=this._events,lt===void 0)return this;if(nt=lt[tt],nt===void 0)return this;if(nt===rt||nt.listener===rt)--this._eventsCount===0?this._events=Object.create(null):(delete lt[tt],lt.removeListener&&this.emit("removeListener",tt,nt.listener||rt));else if(typeof nt!="function"){for(ut=-1,dt=nt.length-1;dt>=0;dt--)if(nt[dt]===rt||nt[dt].listener===rt){pt=nt[dt].listener,ut=dt;break}if(ut<0)return this;ut===0?nt.shift():spliceOne(nt,ut),nt.length===1&&(lt[tt]=nt[0]),lt.removeListener!==void 0&&this.emit("removeListener",tt,pt||rt)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(tt){var rt,nt,lt;if(nt=this._events,nt===void 0)return this;if(nt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):nt[tt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete nt[tt]),this;if(arguments.length===0){var ut=Object.keys(nt),dt;for(lt=0;lt<ut.length;++lt)dt=ut[lt],dt!=="removeListener"&&this.removeAllListeners(dt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(rt=nt[tt],typeof rt=="function")this.removeListener(tt,rt);else if(rt!==void 0)for(lt=rt.length-1;lt>=0;lt--)this.removeListener(tt,rt[lt]);return this};function _listeners(et,tt,rt){var nt=et._events;if(nt===void 0)return[];var lt=nt[tt];return lt===void 0?[]:typeof lt=="function"?rt?[lt.listener||lt]:[lt]:rt?unwrapListeners(lt):arrayClone(lt,lt.length)}EventEmitter.prototype.listeners=function(tt){return _listeners(this,tt,!0)};EventEmitter.prototype.rawListeners=function(tt){return _listeners(this,tt,!1)};EventEmitter.listenerCount=function(et,tt){return typeof et.listenerCount=="function"?et.listenerCount(tt):listenerCount.call(et,tt)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(et){var tt=this._events;if(tt!==void 0){var rt=tt[et];if(typeof rt=="function")return 1;if(rt!==void 0)return rt.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(et,tt){for(var rt=new Array(tt),nt=0;nt<tt;++nt)rt[nt]=et[nt];return rt}function spliceOne(et,tt){for(;tt+1<et.length;tt++)et[tt]=et[tt+1];et.pop()}function unwrapListeners(et){for(var tt=new Array(et.length),rt=0;rt<tt.length;++rt)tt[rt]=et[rt].listener||et[rt];return tt}function once$6(et,tt){return new Promise(function(rt,nt){function lt(dt){et.removeListener(tt,ut),nt(dt)}function ut(){typeof et.removeListener=="function"&&et.removeListener("error",lt),rt([].slice.call(arguments))}eventTargetAgnosticAddListener(et,tt,ut,{once:!0}),tt!=="error"&&addErrorHandlerIfEventEmitter(et,lt,{once:!0})})}function addErrorHandlerIfEventEmitter(et,tt,rt){typeof et.on=="function"&&eventTargetAgnosticAddListener(et,"error",tt,rt)}function eventTargetAgnosticAddListener(et,tt,rt,nt){if(typeof et.on=="function")nt.once?et.once(tt,rt):et.on(tt,rt);else if(typeof et.addEventListener=="function")et.addEventListener(tt,function lt(ut){nt.once&&et.removeEventListener(tt,lt),rt(ut)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof et)}var eventsExports=events.exports,streamBrowser$1=eventsExports.EventEmitter,dist$5={};(function(et){Object.defineProperties(et,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var tt={},rt={};rt.byteLength=xt,rt.toByteArray=vt,rt.fromByteArray=Rt;for(var nt=[],lt=[],ut=typeof Uint8Array<"u"?Uint8Array:Array,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pt=0,ht=dt.length;pt<ht;++pt)nt[pt]=dt[pt],lt[dt.charCodeAt(pt)]=pt;lt[45]=62,lt[95]=63;function mt(Ct){var It=Ct.length;if(It%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Dt=Ct.indexOf("=");Dt===-1&&(Dt=It);var kt=Dt===It?0:4-Dt%4;return[Dt,kt]}function xt(Ct){var It=mt(Ct),Dt=It[0],kt=It[1];return(Dt+kt)*3/4-kt}function Mt(Ct,It,Dt){return(It+Dt)*3/4-Dt}function vt(Ct){var It,Dt=mt(Ct),kt=Dt[0],qt=Dt[1],Nt=new ut(Mt(Ct,kt,qt)),Yt=0,Kt=qt>0?kt-4:kt,Jt;for(Jt=0;Jt<Kt;Jt+=4)It=lt[Ct.charCodeAt(Jt)]<<18|lt[Ct.charCodeAt(Jt+1)]<<12|lt[Ct.charCodeAt(Jt+2)]<<6|lt[Ct.charCodeAt(Jt+3)],Nt[Yt++]=It>>16&255,Nt[Yt++]=It>>8&255,Nt[Yt++]=It&255;return qt===2&&(It=lt[Ct.charCodeAt(Jt)]<<2|lt[Ct.charCodeAt(Jt+1)]>>4,Nt[Yt++]=It&255),qt===1&&(It=lt[Ct.charCodeAt(Jt)]<<10|lt[Ct.charCodeAt(Jt+1)]<<4|lt[Ct.charCodeAt(Jt+2)]>>2,Nt[Yt++]=It>>8&255,Nt[Yt++]=It&255),Nt}function Ot(Ct){return nt[Ct>>18&63]+nt[Ct>>12&63]+nt[Ct>>6&63]+nt[Ct&63]}function At(Ct,It,Dt){for(var kt,qt=[],Nt=It;Nt<Dt;Nt+=3)kt=(Ct[Nt]<<16&16711680)+(Ct[Nt+1]<<8&65280)+(Ct[Nt+2]&255),qt.push(Ot(kt));return qt.join("")}function Rt(Ct){for(var It,Dt=Ct.length,kt=Dt%3,qt=[],Nt=16383,Yt=0,Kt=Dt-kt;Yt<Kt;Yt+=Nt)qt.push(At(Ct,Yt,Yt+Nt>Kt?Kt:Yt+Nt));return kt===1?(It=Ct[Dt-1],qt.push(nt[It>>2]+nt[It<<4&63]+"==")):kt===2&&(It=(Ct[Dt-2]<<8)+Ct[Dt-1],qt.push(nt[It>>10]+nt[It>>4&63]+nt[It<<2&63]+"=")),qt.join("")}var zt={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */zt.read=function(Ct,It,Dt,kt,qt){var Nt,Yt,Kt=qt*8-kt-1,Jt=(1<<Kt)-1,Qt=Jt>>1,Bt=-7,Ft=Dt?qt-1:0,$t=Dt?-1:1,jt=Ct[It+Ft];for(Ft+=$t,Nt=jt&(1<<-Bt)-1,jt>>=-Bt,Bt+=Kt;Bt>0;Nt=Nt*256+Ct[It+Ft],Ft+=$t,Bt-=8);for(Yt=Nt&(1<<-Bt)-1,Nt>>=-Bt,Bt+=kt;Bt>0;Yt=Yt*256+Ct[It+Ft],Ft+=$t,Bt-=8);if(Nt===0)Nt=1-Qt;else{if(Nt===Jt)return Yt?NaN:(jt?-1:1)*(1/0);Yt=Yt+Math.pow(2,kt),Nt=Nt-Qt}return(jt?-1:1)*Yt*Math.pow(2,Nt-kt)},zt.write=function(Ct,It,Dt,kt,qt,Nt){var Yt,Kt,Jt,Qt=Nt*8-qt-1,Bt=(1<<Qt)-1,Ft=Bt>>1,$t=qt===23?Math.pow(2,-24)-Math.pow(2,-77):0,jt=kt?0:Nt-1,Wt=kt?1:-1,Ut=It<0||It===0&&1/It<0?1:0;for(It=Math.abs(It),isNaN(It)||It===1/0?(Kt=isNaN(It)?1:0,Yt=Bt):(Yt=Math.floor(Math.log(It)/Math.LN2),It*(Jt=Math.pow(2,-Yt))<1&&(Yt--,Jt*=2),Yt+Ft>=1?It+=$t/Jt:It+=$t*Math.pow(2,1-Ft),It*Jt>=2&&(Yt++,Jt/=2),Yt+Ft>=Bt?(Kt=0,Yt=Bt):Yt+Ft>=1?(Kt=(It*Jt-1)*Math.pow(2,qt),Yt=Yt+Ft):(Kt=It*Math.pow(2,Ft-1)*Math.pow(2,qt),Yt=0));qt>=8;Ct[Dt+jt]=Kt&255,jt+=Wt,Kt/=256,qt-=8);for(Yt=Yt<<qt|Kt,Qt+=qt;Qt>0;Ct[Dt+jt]=Yt&255,jt+=Wt,Yt/=256,Qt-=8);Ct[Dt+jt-Wt]|=Ut*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(Ct){const It=rt,Dt=zt,kt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ct.Buffer=Bt,Ct.SlowBuffer=er,Ct.INSPECT_MAX_BYTES=50;const qt=2147483647;Ct.kMaxLength=qt;const{Uint8Array:Nt,ArrayBuffer:Yt,SharedArrayBuffer:Kt}=globalThis;Bt.TYPED_ARRAY_SUPPORT=Jt(),!Bt.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Jt(){try{const Kr=new Nt(1),Tr={foo:function(){return 42}};return Object.setPrototypeOf(Tr,Nt.prototype),Object.setPrototypeOf(Kr,Tr),Kr.foo()===42}catch{return!1}}Object.defineProperty(Bt.prototype,"parent",{enumerable:!0,get:function(){if(Bt.isBuffer(this))return this.buffer}}),Object.defineProperty(Bt.prototype,"offset",{enumerable:!0,get:function(){if(Bt.isBuffer(this))return this.byteOffset}});function Qt(Kr){if(Kr>qt)throw new RangeError('The value "'+Kr+'" is invalid for option "size"');const Tr=new Nt(Kr);return Object.setPrototypeOf(Tr,Bt.prototype),Tr}function Bt(Kr,Tr,Pr){if(typeof Kr=="number"){if(typeof Tr=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Wt(Kr)}return Ft(Kr,Tr,Pr)}Bt.poolSize=8192;function Ft(Kr,Tr,Pr){if(typeof Kr=="string")return Ut(Kr,Tr);if(Yt.isView(Kr))return Ht(Kr);if(Kr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Kr);if(Vr(Kr,Yt)||Kr&&Vr(Kr.buffer,Yt)||typeof Kt<"u"&&(Vr(Kr,Kt)||Kr&&Vr(Kr.buffer,Kt)))return Gt(Kr,Tr,Pr);if(typeof Kr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const an=Kr.valueOf&&Kr.valueOf();if(an!=null&&an!==Kr)return Bt.from(an,Tr,Pr);const nn=Zt(Kr);if(nn)return nn;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Kr[Symbol.toPrimitive]=="function")return Bt.from(Kr[Symbol.toPrimitive]("string"),Tr,Pr);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Kr)}Bt.from=function(Kr,Tr,Pr){return Ft(Kr,Tr,Pr)},Object.setPrototypeOf(Bt.prototype,Nt.prototype),Object.setPrototypeOf(Bt,Nt);function $t(Kr){if(typeof Kr!="number")throw new TypeError('"size" argument must be of type number');if(Kr<0)throw new RangeError('The value "'+Kr+'" is invalid for option "size"')}function jt(Kr,Tr,Pr){return $t(Kr),Kr<=0?Qt(Kr):Tr!==void 0?typeof Pr=="string"?Qt(Kr).fill(Tr,Pr):Qt(Kr).fill(Tr):Qt(Kr)}Bt.alloc=function(Kr,Tr,Pr){return jt(Kr,Tr,Pr)};function Wt(Kr){return $t(Kr),Qt(Kr<0?0:Xt(Kr)|0)}Bt.allocUnsafe=function(Kr){return Wt(Kr)},Bt.allocUnsafeSlow=function(Kr){return Wt(Kr)};function Ut(Kr,Tr){if((typeof Tr!="string"||Tr==="")&&(Tr="utf8"),!Bt.isEncoding(Tr))throw new TypeError("Unknown encoding: "+Tr);const Pr=nr(Kr,Tr)|0;let an=Qt(Pr);const nn=an.write(Kr,Tr);return nn!==Pr&&(an=an.slice(0,nn)),an}function Vt(Kr){const Tr=Kr.length<0?0:Xt(Kr.length)|0,Pr=Qt(Tr);for(let an=0;an<Tr;an+=1)Pr[an]=Kr[an]&255;return Pr}function Ht(Kr){if(Vr(Kr,Nt)){const Tr=new Nt(Kr);return Gt(Tr.buffer,Tr.byteOffset,Tr.byteLength)}return Vt(Kr)}function Gt(Kr,Tr,Pr){if(Tr<0||Kr.byteLength<Tr)throw new RangeError('"offset" is outside of buffer bounds');if(Kr.byteLength<Tr+(Pr||0))throw new RangeError('"length" is outside of buffer bounds');let an;return Tr===void 0&&Pr===void 0?an=new Nt(Kr):Pr===void 0?an=new Nt(Kr,Tr):an=new Nt(Kr,Tr,Pr),Object.setPrototypeOf(an,Bt.prototype),an}function Zt(Kr){if(Bt.isBuffer(Kr)){const Tr=Xt(Kr.length)|0,Pr=Qt(Tr);return Pr.length===0||Kr.copy(Pr,0,0,Tr),Pr}if(Kr.length!==void 0)return typeof Kr.length!="number"||fn(Kr.length)?Qt(0):Vt(Kr);if(Kr.type==="Buffer"&&Array.isArray(Kr.data))return Vt(Kr.data)}function Xt(Kr){if(Kr>=qt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qt.toString(16)+" bytes");return Kr|0}function er(Kr){return+Kr!=Kr&&(Kr=0),Bt.alloc(+Kr)}Bt.isBuffer=function(Tr){return Tr!=null&&Tr._isBuffer===!0&&Tr!==Bt.prototype},Bt.compare=function(Tr,Pr){if(Vr(Tr,Nt)&&(Tr=Bt.from(Tr,Tr.offset,Tr.byteLength)),Vr(Pr,Nt)&&(Pr=Bt.from(Pr,Pr.offset,Pr.byteLength)),!Bt.isBuffer(Tr)||!Bt.isBuffer(Pr))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Tr===Pr)return 0;let an=Tr.length,nn=Pr.length;for(let Mn=0,An=Math.min(an,nn);Mn<An;++Mn)if(Tr[Mn]!==Pr[Mn]){an=Tr[Mn],nn=Pr[Mn];break}return an<nn?-1:nn<an?1:0},Bt.isEncoding=function(Tr){switch(String(Tr).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Bt.concat=function(Tr,Pr){if(!Array.isArray(Tr))throw new TypeError('"list" argument must be an Array of Buffers');if(Tr.length===0)return Bt.alloc(0);let an;if(Pr===void 0)for(Pr=0,an=0;an<Tr.length;++an)Pr+=Tr[an].length;const nn=Bt.allocUnsafe(Pr);let Mn=0;for(an=0;an<Tr.length;++an){let An=Tr[an];if(Vr(An,Nt))Mn+An.length>nn.length?(Bt.isBuffer(An)||(An=Bt.from(An)),An.copy(nn,Mn)):Nt.prototype.set.call(nn,An,Mn);else if(Bt.isBuffer(An))An.copy(nn,Mn);else throw new TypeError('"list" argument must be an Array of Buffers');Mn+=An.length}return nn};function nr(Kr,Tr){if(Bt.isBuffer(Kr))return Kr.length;if(Yt.isView(Kr)||Vr(Kr,Yt))return Kr.byteLength;if(typeof Kr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Kr);const Pr=Kr.length,an=arguments.length>2&&arguments[2]===!0;if(!an&&Pr===0)return 0;let nn=!1;for(;;)switch(Tr){case"ascii":case"latin1":case"binary":return Pr;case"utf8":case"utf-8":return ln(Kr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pr*2;case"hex":return Pr>>>1;case"base64":return gn(Kr).length;default:if(nn)return an?-1:ln(Kr).length;Tr=(""+Tr).toLowerCase(),nn=!0}}Bt.byteLength=nr;function or(Kr,Tr,Pr){let an=!1;if((Tr===void 0||Tr<0)&&(Tr=0),Tr>this.length||((Pr===void 0||Pr>this.length)&&(Pr=this.length),Pr<=0)||(Pr>>>=0,Tr>>>=0,Pr<=Tr))return"";for(Kr||(Kr="utf8");;)switch(Kr){case"hex":return qr(this,Tr,Pr);case"utf8":case"utf-8":return Mr(this,Tr,Pr);case"ascii":return Rr(this,Tr,Pr);case"latin1":case"binary":return wr(this,Tr,Pr);case"base64":return xr(this,Tr,Pr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hr(this,Tr,Pr);default:if(an)throw new TypeError("Unknown encoding: "+Kr);Kr=(Kr+"").toLowerCase(),an=!0}}Bt.prototype._isBuffer=!0;function rr(Kr,Tr,Pr){const an=Kr[Tr];Kr[Tr]=Kr[Pr],Kr[Pr]=an}Bt.prototype.swap16=function(){const Tr=this.length;if(Tr%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Pr=0;Pr<Tr;Pr+=2)rr(this,Pr,Pr+1);return this},Bt.prototype.swap32=function(){const Tr=this.length;if(Tr%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Pr=0;Pr<Tr;Pr+=4)rr(this,Pr,Pr+3),rr(this,Pr+1,Pr+2);return this},Bt.prototype.swap64=function(){const Tr=this.length;if(Tr%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Pr=0;Pr<Tr;Pr+=8)rr(this,Pr,Pr+7),rr(this,Pr+1,Pr+6),rr(this,Pr+2,Pr+5),rr(this,Pr+3,Pr+4);return this},Bt.prototype.toString=function(){const Tr=this.length;return Tr===0?"":arguments.length===0?Mr(this,0,Tr):or.apply(this,arguments)},Bt.prototype.toLocaleString=Bt.prototype.toString,Bt.prototype.equals=function(Tr){if(!Bt.isBuffer(Tr))throw new TypeError("Argument must be a Buffer");return this===Tr?!0:Bt.compare(this,Tr)===0},Bt.prototype.inspect=function(){let Tr="";const Pr=Ct.INSPECT_MAX_BYTES;return Tr=this.toString("hex",0,Pr).replace(/(.{2})/g,"$1 ").trim(),this.length>Pr&&(Tr+=" ... "),"<Buffer "+Tr+">"},kt&&(Bt.prototype[kt]=Bt.prototype.inspect),Bt.prototype.compare=function(Tr,Pr,an,nn,Mn){if(Vr(Tr,Nt)&&(Tr=Bt.from(Tr,Tr.offset,Tr.byteLength)),!Bt.isBuffer(Tr))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Tr);if(Pr===void 0&&(Pr=0),an===void 0&&(an=Tr?Tr.length:0),nn===void 0&&(nn=0),Mn===void 0&&(Mn=this.length),Pr<0||an>Tr.length||nn<0||Mn>this.length)throw new RangeError("out of range index");if(nn>=Mn&&Pr>=an)return 0;if(nn>=Mn)return-1;if(Pr>=an)return 1;if(Pr>>>=0,an>>>=0,nn>>>=0,Mn>>>=0,this===Tr)return 0;let An=Mn-nn,Vn=an-Pr;const Cn=Math.min(An,Vn),kn=this.slice(nn,Mn),Qn=Tr.slice(Pr,an);for(let Gn=0;Gn<Cn;++Gn)if(kn[Gn]!==Qn[Gn]){An=kn[Gn],Vn=Qn[Gn];break}return An<Vn?-1:Vn<An?1:0};function cr(Kr,Tr,Pr,an,nn){if(Kr.length===0)return-1;if(typeof Pr=="string"?(an=Pr,Pr=0):Pr>2147483647?Pr=2147483647:Pr<-2147483648&&(Pr=-2147483648),Pr=+Pr,fn(Pr)&&(Pr=nn?0:Kr.length-1),Pr<0&&(Pr=Kr.length+Pr),Pr>=Kr.length){if(nn)return-1;Pr=Kr.length-1}else if(Pr<0)if(nn)Pr=0;else return-1;if(typeof Tr=="string"&&(Tr=Bt.from(Tr,an)),Bt.isBuffer(Tr))return Tr.length===0?-1:ir(Kr,Tr,Pr,an,nn);if(typeof Tr=="number")return Tr=Tr&255,typeof Nt.prototype.indexOf=="function"?nn?Nt.prototype.indexOf.call(Kr,Tr,Pr):Nt.prototype.lastIndexOf.call(Kr,Tr,Pr):ir(Kr,[Tr],Pr,an,nn);throw new TypeError("val must be string, number or Buffer")}function ir(Kr,Tr,Pr,an,nn){let Mn=1,An=Kr.length,Vn=Tr.length;if(an!==void 0&&(an=String(an).toLowerCase(),an==="ucs2"||an==="ucs-2"||an==="utf16le"||an==="utf-16le")){if(Kr.length<2||Tr.length<2)return-1;Mn=2,An/=2,Vn/=2,Pr/=2}function Cn(Qn,Gn){return Mn===1?Qn[Gn]:Qn.readUInt16BE(Gn*Mn)}let kn;if(nn){let Qn=-1;for(kn=Pr;kn<An;kn++)if(Cn(Kr,kn)===Cn(Tr,Qn===-1?0:kn-Qn)){if(Qn===-1&&(Qn=kn),kn-Qn+1===Vn)return Qn*Mn}else Qn!==-1&&(kn-=kn-Qn),Qn=-1}else for(Pr+Vn>An&&(Pr=An-Vn),kn=Pr;kn>=0;kn--){let Qn=!0;for(let Gn=0;Gn<Vn;Gn++)if(Cn(Kr,kn+Gn)!==Cn(Tr,Gn)){Qn=!1;break}if(Qn)return kn}return-1}Bt.prototype.includes=function(Tr,Pr,an){return this.indexOf(Tr,Pr,an)!==-1},Bt.prototype.indexOf=function(Tr,Pr,an){return cr(this,Tr,Pr,an,!0)},Bt.prototype.lastIndexOf=function(Tr,Pr,an){return cr(this,Tr,Pr,an,!1)};function dr(Kr,Tr,Pr,an){Pr=Number(Pr)||0;const nn=Kr.length-Pr;an?(an=Number(an),an>nn&&(an=nn)):an=nn;const Mn=Tr.length;an>Mn/2&&(an=Mn/2);let An;for(An=0;An<an;++An){const Vn=parseInt(Tr.substr(An*2,2),16);if(fn(Vn))return An;Kr[Pr+An]=Vn}return An}function gr(Kr,Tr,Pr,an){return xn(ln(Tr,Kr.length-Pr),Kr,Pr,an)}function br(Kr,Tr,Pr,an){return xn(vn(Tr),Kr,Pr,an)}function ar(Kr,Tr,Pr,an){return xn(gn(Tr),Kr,Pr,an)}function ur(Kr,Tr,Pr,an){return xn(Cr(Tr,Kr.length-Pr),Kr,Pr,an)}Bt.prototype.write=function(Tr,Pr,an,nn){if(Pr===void 0)nn="utf8",an=this.length,Pr=0;else if(an===void 0&&typeof Pr=="string")nn=Pr,an=this.length,Pr=0;else if(isFinite(Pr))Pr=Pr>>>0,isFinite(an)?(an=an>>>0,nn===void 0&&(nn="utf8")):(nn=an,an=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Mn=this.length-Pr;if((an===void 0||an>Mn)&&(an=Mn),Tr.length>0&&(an<0||Pr<0)||Pr>this.length)throw new RangeError("Attempt to write outside buffer bounds");nn||(nn="utf8");let An=!1;for(;;)switch(nn){case"hex":return dr(this,Tr,Pr,an);case"utf8":case"utf-8":return gr(this,Tr,Pr,an);case"ascii":case"latin1":case"binary":return br(this,Tr,Pr,an);case"base64":return ar(this,Tr,Pr,an);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ur(this,Tr,Pr,an);default:if(An)throw new TypeError("Unknown encoding: "+nn);nn=(""+nn).toLowerCase(),An=!0}},Bt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xr(Kr,Tr,Pr){return Tr===0&&Pr===Kr.length?It.fromByteArray(Kr):It.fromByteArray(Kr.slice(Tr,Pr))}function Mr(Kr,Tr,Pr){Pr=Math.min(Kr.length,Pr);const an=[];let nn=Tr;for(;nn<Pr;){const Mn=Kr[nn];let An=null,Vn=Mn>239?4:Mn>223?3:Mn>191?2:1;if(nn+Vn<=Pr){let Cn,kn,Qn,Gn;switch(Vn){case 1:Mn<128&&(An=Mn);break;case 2:Cn=Kr[nn+1],(Cn&192)===128&&(Gn=(Mn&31)<<6|Cn&63,Gn>127&&(An=Gn));break;case 3:Cn=Kr[nn+1],kn=Kr[nn+2],(Cn&192)===128&&(kn&192)===128&&(Gn=(Mn&15)<<12|(Cn&63)<<6|kn&63,Gn>2047&&(Gn<55296||Gn>57343)&&(An=Gn));break;case 4:Cn=Kr[nn+1],kn=Kr[nn+2],Qn=Kr[nn+3],(Cn&192)===128&&(kn&192)===128&&(Qn&192)===128&&(Gn=(Mn&15)<<18|(Cn&63)<<12|(kn&63)<<6|Qn&63,Gn>65535&&Gn<1114112&&(An=Gn))}}An===null?(An=65533,Vn=1):An>65535&&(An-=65536,an.push(An>>>10&1023|55296),An=56320|An&1023),an.push(An),nn+=Vn}return Ir(an)}const Ar=4096;function Ir(Kr){const Tr=Kr.length;if(Tr<=Ar)return String.fromCharCode.apply(String,Kr);let Pr="",an=0;for(;an<Tr;)Pr+=String.fromCharCode.apply(String,Kr.slice(an,an+=Ar));return Pr}function Rr(Kr,Tr,Pr){let an="";Pr=Math.min(Kr.length,Pr);for(let nn=Tr;nn<Pr;++nn)an+=String.fromCharCode(Kr[nn]&127);return an}function wr(Kr,Tr,Pr){let an="";Pr=Math.min(Kr.length,Pr);for(let nn=Tr;nn<Pr;++nn)an+=String.fromCharCode(Kr[nn]);return an}function qr(Kr,Tr,Pr){const an=Kr.length;(!Tr||Tr<0)&&(Tr=0),(!Pr||Pr<0||Pr>an)&&(Pr=an);let nn="";for(let Mn=Tr;Mn<Pr;++Mn)nn+=pn[Kr[Mn]];return nn}function Hr(Kr,Tr,Pr){const an=Kr.slice(Tr,Pr);let nn="";for(let Mn=0;Mn<an.length-1;Mn+=2)nn+=String.fromCharCode(an[Mn]+an[Mn+1]*256);return nn}Bt.prototype.slice=function(Tr,Pr){const an=this.length;Tr=~~Tr,Pr=Pr===void 0?an:~~Pr,Tr<0?(Tr+=an,Tr<0&&(Tr=0)):Tr>an&&(Tr=an),Pr<0?(Pr+=an,Pr<0&&(Pr=0)):Pr>an&&(Pr=an),Pr<Tr&&(Pr=Tr);const nn=this.subarray(Tr,Pr);return Object.setPrototypeOf(nn,Bt.prototype),nn};function kr(Kr,Tr,Pr){if(Kr%1!==0||Kr<0)throw new RangeError("offset is not uint");if(Kr+Tr>Pr)throw new RangeError("Trying to access beyond buffer length")}Bt.prototype.readUintLE=Bt.prototype.readUIntLE=function(Tr,Pr,an){Tr=Tr>>>0,Pr=Pr>>>0,an||kr(Tr,Pr,this.length);let nn=this[Tr],Mn=1,An=0;for(;++An<Pr&&(Mn*=256);)nn+=this[Tr+An]*Mn;return nn},Bt.prototype.readUintBE=Bt.prototype.readUIntBE=function(Tr,Pr,an){Tr=Tr>>>0,Pr=Pr>>>0,an||kr(Tr,Pr,this.length);let nn=this[Tr+--Pr],Mn=1;for(;Pr>0&&(Mn*=256);)nn+=this[Tr+--Pr]*Mn;return nn},Bt.prototype.readUint8=Bt.prototype.readUInt8=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,1,this.length),this[Tr]},Bt.prototype.readUint16LE=Bt.prototype.readUInt16LE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,2,this.length),this[Tr]|this[Tr+1]<<8},Bt.prototype.readUint16BE=Bt.prototype.readUInt16BE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,2,this.length),this[Tr]<<8|this[Tr+1]},Bt.prototype.readUint32LE=Bt.prototype.readUInt32LE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,4,this.length),(this[Tr]|this[Tr+1]<<8|this[Tr+2]<<16)+this[Tr+3]*16777216},Bt.prototype.readUint32BE=Bt.prototype.readUInt32BE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,4,this.length),this[Tr]*16777216+(this[Tr+1]<<16|this[Tr+2]<<8|this[Tr+3])},Bt.prototype.readBigUInt64LE=qn(function(Tr){Tr=Tr>>>0,cn(Tr,"offset");const Pr=this[Tr],an=this[Tr+7];(Pr===void 0||an===void 0)&&Qr(Tr,this.length-8);const nn=Pr+this[++Tr]*2**8+this[++Tr]*2**16+this[++Tr]*2**24,Mn=this[++Tr]+this[++Tr]*2**8+this[++Tr]*2**16+an*2**24;return BigInt(nn)+(BigInt(Mn)<<BigInt(32))}),Bt.prototype.readBigUInt64BE=qn(function(Tr){Tr=Tr>>>0,cn(Tr,"offset");const Pr=this[Tr],an=this[Tr+7];(Pr===void 0||an===void 0)&&Qr(Tr,this.length-8);const nn=Pr*2**24+this[++Tr]*2**16+this[++Tr]*2**8+this[++Tr],Mn=this[++Tr]*2**24+this[++Tr]*2**16+this[++Tr]*2**8+an;return(BigInt(nn)<<BigInt(32))+BigInt(Mn)}),Bt.prototype.readIntLE=function(Tr,Pr,an){Tr=Tr>>>0,Pr=Pr>>>0,an||kr(Tr,Pr,this.length);let nn=this[Tr],Mn=1,An=0;for(;++An<Pr&&(Mn*=256);)nn+=this[Tr+An]*Mn;return Mn*=128,nn>=Mn&&(nn-=Math.pow(2,8*Pr)),nn},Bt.prototype.readIntBE=function(Tr,Pr,an){Tr=Tr>>>0,Pr=Pr>>>0,an||kr(Tr,Pr,this.length);let nn=Pr,Mn=1,An=this[Tr+--nn];for(;nn>0&&(Mn*=256);)An+=this[Tr+--nn]*Mn;return Mn*=128,An>=Mn&&(An-=Math.pow(2,8*Pr)),An},Bt.prototype.readInt8=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,1,this.length),this[Tr]&128?(255-this[Tr]+1)*-1:this[Tr]},Bt.prototype.readInt16LE=function(Tr,Pr){Tr=Tr>>>0,Pr||kr(Tr,2,this.length);const an=this[Tr]|this[Tr+1]<<8;return an&32768?an|4294901760:an},Bt.prototype.readInt16BE=function(Tr,Pr){Tr=Tr>>>0,Pr||kr(Tr,2,this.length);const an=this[Tr+1]|this[Tr]<<8;return an&32768?an|4294901760:an},Bt.prototype.readInt32LE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,4,this.length),this[Tr]|this[Tr+1]<<8|this[Tr+2]<<16|this[Tr+3]<<24},Bt.prototype.readInt32BE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,4,this.length),this[Tr]<<24|this[Tr+1]<<16|this[Tr+2]<<8|this[Tr+3]},Bt.prototype.readBigInt64LE=qn(function(Tr){Tr=Tr>>>0,cn(Tr,"offset");const Pr=this[Tr],an=this[Tr+7];(Pr===void 0||an===void 0)&&Qr(Tr,this.length-8);const nn=this[Tr+4]+this[Tr+5]*2**8+this[Tr+6]*2**16+(an<<24);return(BigInt(nn)<<BigInt(32))+BigInt(Pr+this[++Tr]*2**8+this[++Tr]*2**16+this[++Tr]*2**24)}),Bt.prototype.readBigInt64BE=qn(function(Tr){Tr=Tr>>>0,cn(Tr,"offset");const Pr=this[Tr],an=this[Tr+7];(Pr===void 0||an===void 0)&&Qr(Tr,this.length-8);const nn=(Pr<<24)+this[++Tr]*2**16+this[++Tr]*2**8+this[++Tr];return(BigInt(nn)<<BigInt(32))+BigInt(this[++Tr]*2**24+this[++Tr]*2**16+this[++Tr]*2**8+an)}),Bt.prototype.readFloatLE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,4,this.length),Dt.read(this,Tr,!0,23,4)},Bt.prototype.readFloatBE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,4,this.length),Dt.read(this,Tr,!1,23,4)},Bt.prototype.readDoubleLE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,8,this.length),Dt.read(this,Tr,!0,52,8)},Bt.prototype.readDoubleBE=function(Tr,Pr){return Tr=Tr>>>0,Pr||kr(Tr,8,this.length),Dt.read(this,Tr,!1,52,8)};function $r(Kr,Tr,Pr,an,nn,Mn){if(!Bt.isBuffer(Kr))throw new TypeError('"buffer" argument must be a Buffer instance');if(Tr>nn||Tr<Mn)throw new RangeError('"value" argument is out of bounds');if(Pr+an>Kr.length)throw new RangeError("Index out of range")}Bt.prototype.writeUintLE=Bt.prototype.writeUIntLE=function(Tr,Pr,an,nn){if(Tr=+Tr,Pr=Pr>>>0,an=an>>>0,!nn){const Vn=Math.pow(2,8*an)-1;$r(this,Tr,Pr,an,Vn,0)}let Mn=1,An=0;for(this[Pr]=Tr&255;++An<an&&(Mn*=256);)this[Pr+An]=Tr/Mn&255;return Pr+an},Bt.prototype.writeUintBE=Bt.prototype.writeUIntBE=function(Tr,Pr,an,nn){if(Tr=+Tr,Pr=Pr>>>0,an=an>>>0,!nn){const Vn=Math.pow(2,8*an)-1;$r(this,Tr,Pr,an,Vn,0)}let Mn=an-1,An=1;for(this[Pr+Mn]=Tr&255;--Mn>=0&&(An*=256);)this[Pr+Mn]=Tr/An&255;return Pr+an},Bt.prototype.writeUint8=Bt.prototype.writeUInt8=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,1,255,0),this[Pr]=Tr&255,Pr+1},Bt.prototype.writeUint16LE=Bt.prototype.writeUInt16LE=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,2,65535,0),this[Pr]=Tr&255,this[Pr+1]=Tr>>>8,Pr+2},Bt.prototype.writeUint16BE=Bt.prototype.writeUInt16BE=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,2,65535,0),this[Pr]=Tr>>>8,this[Pr+1]=Tr&255,Pr+2},Bt.prototype.writeUint32LE=Bt.prototype.writeUInt32LE=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,4,4294967295,0),this[Pr+3]=Tr>>>24,this[Pr+2]=Tr>>>16,this[Pr+1]=Tr>>>8,this[Pr]=Tr&255,Pr+4},Bt.prototype.writeUint32BE=Bt.prototype.writeUInt32BE=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,4,4294967295,0),this[Pr]=Tr>>>24,this[Pr+1]=Tr>>>16,this[Pr+2]=Tr>>>8,this[Pr+3]=Tr&255,Pr+4};function yr(Kr,Tr,Pr,an,nn){Xr(Tr,an,nn,Kr,Pr,7);let Mn=Number(Tr&BigInt(4294967295));Kr[Pr++]=Mn,Mn=Mn>>8,Kr[Pr++]=Mn,Mn=Mn>>8,Kr[Pr++]=Mn,Mn=Mn>>8,Kr[Pr++]=Mn;let An=Number(Tr>>BigInt(32)&BigInt(4294967295));return Kr[Pr++]=An,An=An>>8,Kr[Pr++]=An,An=An>>8,Kr[Pr++]=An,An=An>>8,Kr[Pr++]=An,Pr}function Or(Kr,Tr,Pr,an,nn){Xr(Tr,an,nn,Kr,Pr,7);let Mn=Number(Tr&BigInt(4294967295));Kr[Pr+7]=Mn,Mn=Mn>>8,Kr[Pr+6]=Mn,Mn=Mn>>8,Kr[Pr+5]=Mn,Mn=Mn>>8,Kr[Pr+4]=Mn;let An=Number(Tr>>BigInt(32)&BigInt(4294967295));return Kr[Pr+3]=An,An=An>>8,Kr[Pr+2]=An,An=An>>8,Kr[Pr+1]=An,An=An>>8,Kr[Pr]=An,Pr+8}Bt.prototype.writeBigUInt64LE=qn(function(Tr,Pr=0){return yr(this,Tr,Pr,BigInt(0),BigInt("0xffffffffffffffff"))}),Bt.prototype.writeBigUInt64BE=qn(function(Tr,Pr=0){return Or(this,Tr,Pr,BigInt(0),BigInt("0xffffffffffffffff"))}),Bt.prototype.writeIntLE=function(Tr,Pr,an,nn){if(Tr=+Tr,Pr=Pr>>>0,!nn){const Cn=Math.pow(2,8*an-1);$r(this,Tr,Pr,an,Cn-1,-Cn)}let Mn=0,An=1,Vn=0;for(this[Pr]=Tr&255;++Mn<an&&(An*=256);)Tr<0&&Vn===0&&this[Pr+Mn-1]!==0&&(Vn=1),this[Pr+Mn]=(Tr/An>>0)-Vn&255;return Pr+an},Bt.prototype.writeIntBE=function(Tr,Pr,an,nn){if(Tr=+Tr,Pr=Pr>>>0,!nn){const Cn=Math.pow(2,8*an-1);$r(this,Tr,Pr,an,Cn-1,-Cn)}let Mn=an-1,An=1,Vn=0;for(this[Pr+Mn]=Tr&255;--Mn>=0&&(An*=256);)Tr<0&&Vn===0&&this[Pr+Mn+1]!==0&&(Vn=1),this[Pr+Mn]=(Tr/An>>0)-Vn&255;return Pr+an},Bt.prototype.writeInt8=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,1,127,-128),Tr<0&&(Tr=255+Tr+1),this[Pr]=Tr&255,Pr+1},Bt.prototype.writeInt16LE=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,2,32767,-32768),this[Pr]=Tr&255,this[Pr+1]=Tr>>>8,Pr+2},Bt.prototype.writeInt16BE=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,2,32767,-32768),this[Pr]=Tr>>>8,this[Pr+1]=Tr&255,Pr+2},Bt.prototype.writeInt32LE=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,4,2147483647,-2147483648),this[Pr]=Tr&255,this[Pr+1]=Tr>>>8,this[Pr+2]=Tr>>>16,this[Pr+3]=Tr>>>24,Pr+4},Bt.prototype.writeInt32BE=function(Tr,Pr,an){return Tr=+Tr,Pr=Pr>>>0,an||$r(this,Tr,Pr,4,2147483647,-2147483648),Tr<0&&(Tr=4294967295+Tr+1),this[Pr]=Tr>>>24,this[Pr+1]=Tr>>>16,this[Pr+2]=Tr>>>8,this[Pr+3]=Tr&255,Pr+4},Bt.prototype.writeBigInt64LE=qn(function(Tr,Pr=0){return yr(this,Tr,Pr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Bt.prototype.writeBigInt64BE=qn(function(Tr,Pr=0){return Or(this,Tr,Pr,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Dr(Kr,Tr,Pr,an,nn,Mn){if(Pr+an>Kr.length)throw new RangeError("Index out of range");if(Pr<0)throw new RangeError("Index out of range")}function Fr(Kr,Tr,Pr,an,nn){return Tr=+Tr,Pr=Pr>>>0,nn||Dr(Kr,Tr,Pr,4),Dt.write(Kr,Tr,Pr,an,23,4),Pr+4}Bt.prototype.writeFloatLE=function(Tr,Pr,an){return Fr(this,Tr,Pr,!0,an)},Bt.prototype.writeFloatBE=function(Tr,Pr,an){return Fr(this,Tr,Pr,!1,an)};function Yr(Kr,Tr,Pr,an,nn){return Tr=+Tr,Pr=Pr>>>0,nn||Dr(Kr,Tr,Pr,8),Dt.write(Kr,Tr,Pr,an,52,8),Pr+8}Bt.prototype.writeDoubleLE=function(Tr,Pr,an){return Yr(this,Tr,Pr,!0,an)},Bt.prototype.writeDoubleBE=function(Tr,Pr,an){return Yr(this,Tr,Pr,!1,an)},Bt.prototype.copy=function(Tr,Pr,an,nn){if(!Bt.isBuffer(Tr))throw new TypeError("argument should be a Buffer");if(an||(an=0),!nn&&nn!==0&&(nn=this.length),Pr>=Tr.length&&(Pr=Tr.length),Pr||(Pr=0),nn>0&&nn<an&&(nn=an),nn===an||Tr.length===0||this.length===0)return 0;if(Pr<0)throw new RangeError("targetStart out of bounds");if(an<0||an>=this.length)throw new RangeError("Index out of range");if(nn<0)throw new RangeError("sourceEnd out of bounds");nn>this.length&&(nn=this.length),Tr.length-Pr<nn-an&&(nn=Tr.length-Pr+an);const Mn=nn-an;return this===Tr&&typeof Nt.prototype.copyWithin=="function"?this.copyWithin(Pr,an,nn):Nt.prototype.set.call(Tr,this.subarray(an,nn),Pr),Mn},Bt.prototype.fill=function(Tr,Pr,an,nn){if(typeof Tr=="string"){if(typeof Pr=="string"?(nn=Pr,Pr=0,an=this.length):typeof an=="string"&&(nn=an,an=this.length),nn!==void 0&&typeof nn!="string")throw new TypeError("encoding must be a string");if(typeof nn=="string"&&!Bt.isEncoding(nn))throw new TypeError("Unknown encoding: "+nn);if(Tr.length===1){const An=Tr.charCodeAt(0);(nn==="utf8"&&An<128||nn==="latin1")&&(Tr=An)}}else typeof Tr=="number"?Tr=Tr&255:typeof Tr=="boolean"&&(Tr=Number(Tr));if(Pr<0||this.length<Pr||this.length<an)throw new RangeError("Out of range index");if(an<=Pr)return this;Pr=Pr>>>0,an=an===void 0?this.length:an>>>0,Tr||(Tr=0);let Mn;if(typeof Tr=="number")for(Mn=Pr;Mn<an;++Mn)this[Mn]=Tr;else{const An=Bt.isBuffer(Tr)?Tr:Bt.from(Tr,nn),Vn=An.length;if(Vn===0)throw new TypeError('The value "'+Tr+'" is invalid for argument "value"');for(Mn=0;Mn<an-Pr;++Mn)this[Mn+Pr]=An[Mn%Vn]}return this};const Gr={};function Jr(Kr,Tr,Pr){Gr[Kr]=class extends Pr{constructor(){super(),Object.defineProperty(this,"message",{value:Tr.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Kr}]`,this.stack,delete this.name}get code(){return Kr}set code(nn){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:nn,writable:!0})}toString(){return`${this.name} [${Kr}]: ${this.message}`}}}Jr("ERR_BUFFER_OUT_OF_BOUNDS",function(Kr){return Kr?`${Kr} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Jr("ERR_INVALID_ARG_TYPE",function(Kr,Tr){return`The "${Kr}" argument must be of type number. Received type ${typeof Tr}`},TypeError),Jr("ERR_OUT_OF_RANGE",function(Kr,Tr,Pr){let an=`The value of "${Kr}" is out of range.`,nn=Pr;return Number.isInteger(Pr)&&Math.abs(Pr)>2**32?nn=jr(String(Pr)):typeof Pr=="bigint"&&(nn=String(Pr),(Pr>BigInt(2)**BigInt(32)||Pr<-(BigInt(2)**BigInt(32)))&&(nn=jr(nn)),nn+="n"),an+=` It must be ${Tr}. Received ${nn}`,an},RangeError);function jr(Kr){let Tr="",Pr=Kr.length;const an=Kr[0]==="-"?1:0;for(;Pr>=an+4;Pr-=3)Tr=`_${Kr.slice(Pr-3,Pr)}${Tr}`;return`${Kr.slice(0,Pr)}${Tr}`}function Zr(Kr,Tr,Pr){cn(Tr,"offset"),(Kr[Tr]===void 0||Kr[Tr+Pr]===void 0)&&Qr(Tr,Kr.length-(Pr+1))}function Xr(Kr,Tr,Pr,an,nn,Mn){if(Kr>Pr||Kr<Tr){const An=typeof Tr=="bigint"?"n":"";let Vn;throw Tr===0||Tr===BigInt(0)?Vn=`>= 0${An} and < 2${An} ** ${(Mn+1)*8}${An}`:Vn=`>= -(2${An} ** ${(Mn+1)*8-1}${An}) and < 2 ** ${(Mn+1)*8-1}${An}`,new Gr.ERR_OUT_OF_RANGE("value",Vn,Kr)}Zr(an,nn,Mn)}function cn(Kr,Tr){if(typeof Kr!="number")throw new Gr.ERR_INVALID_ARG_TYPE(Tr,"number",Kr)}function Qr(Kr,Tr,Pr){throw Math.floor(Kr)!==Kr?(cn(Kr,Pr),new Gr.ERR_OUT_OF_RANGE("offset","an integer",Kr)):Tr<0?new Gr.ERR_BUFFER_OUT_OF_BOUNDS:new Gr.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Tr}`,Kr)}const rn=/[^+/0-9A-Za-z-_]/g;function _r(Kr){if(Kr=Kr.split("=")[0],Kr=Kr.trim().replace(rn,""),Kr.length<2)return"";for(;Kr.length%4!==0;)Kr=Kr+"=";return Kr}function ln(Kr,Tr){Tr=Tr||1/0;let Pr;const an=Kr.length;let nn=null;const Mn=[];for(let An=0;An<an;++An){if(Pr=Kr.charCodeAt(An),Pr>55295&&Pr<57344){if(!nn){if(Pr>56319){(Tr-=3)>-1&&Mn.push(239,191,189);continue}else if(An+1===an){(Tr-=3)>-1&&Mn.push(239,191,189);continue}nn=Pr;continue}if(Pr<56320){(Tr-=3)>-1&&Mn.push(239,191,189),nn=Pr;continue}Pr=(nn-55296<<10|Pr-56320)+65536}else nn&&(Tr-=3)>-1&&Mn.push(239,191,189);if(nn=null,Pr<128){if((Tr-=1)<0)break;Mn.push(Pr)}else if(Pr<2048){if((Tr-=2)<0)break;Mn.push(Pr>>6|192,Pr&63|128)}else if(Pr<65536){if((Tr-=3)<0)break;Mn.push(Pr>>12|224,Pr>>6&63|128,Pr&63|128)}else if(Pr<1114112){if((Tr-=4)<0)break;Mn.push(Pr>>18|240,Pr>>12&63|128,Pr>>6&63|128,Pr&63|128)}else throw new Error("Invalid code point")}return Mn}function vn(Kr){const Tr=[];for(let Pr=0;Pr<Kr.length;++Pr)Tr.push(Kr.charCodeAt(Pr)&255);return Tr}function Cr(Kr,Tr){let Pr,an,nn;const Mn=[];for(let An=0;An<Kr.length&&!((Tr-=2)<0);++An)Pr=Kr.charCodeAt(An),an=Pr>>8,nn=Pr%256,Mn.push(nn),Mn.push(an);return Mn}function gn(Kr){return It.toByteArray(_r(Kr))}function xn(Kr,Tr,Pr,an){let nn;for(nn=0;nn<an&&!(nn+Pr>=Tr.length||nn>=Kr.length);++nn)Tr[nn+Pr]=Kr[nn];return nn}function Vr(Kr,Tr){return Kr instanceof Tr||Kr!=null&&Kr.constructor!=null&&Kr.constructor.name!=null&&Kr.constructor.name===Tr.name}function fn(Kr){return Kr!==Kr}const pn=function(){const Kr="0123456789abcdef",Tr=new Array(256);for(let Pr=0;Pr<16;++Pr){const an=Pr*16;for(let nn=0;nn<16;++nn)Tr[an+nn]=Kr[Pr]+Kr[nn]}return Tr}();function qn(Kr){return typeof BigInt>"u"?Bn:Kr}function Bn(){throw new Error("BigInt not supported")}})(tt);const Tt=tt.Buffer;et.Blob=tt.Blob,et.BlobOptions=tt.BlobOptions,et.Buffer=tt.Buffer,et.File=tt.File,et.FileOptions=tt.FileOptions,et.INSPECT_MAX_BYTES=tt.INSPECT_MAX_BYTES,et.SlowBuffer=tt.SlowBuffer,et.TranscodeEncoding=tt.TranscodeEncoding,et.atob=tt.atob,et.btoa=tt.btoa,et.constants=tt.constants,et.default=Tt,et.isAscii=tt.isAscii,et.isUtf8=tt.isUtf8,et.kMaxLength=tt.kMaxLength,et.kStringMaxLength=tt.kStringMaxLength,et.resolveObjectURL=tt.resolveObjectURL,et.transcode=tt.transcode})(dist$5);const Buffer$E=getDefaultExportFromCjs$1(dist$5);function destroy$1(et,tt){var rt=this,nt=this._readableState&&this._readableState.destroyed,lt=this._writableState&&this._writableState.destroyed;return nt||lt?(tt?tt(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1$1.nextTick(emitErrorNT$1,this,et)):process$1$1.nextTick(emitErrorNT$1,this,et)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(ut){!tt&&ut?rt._writableState?rt._writableState.errorEmitted?process$1$1.nextTick(emitCloseNT,rt):(rt._writableState.errorEmitted=!0,process$1$1.nextTick(emitErrorAndCloseNT,rt,ut)):process$1$1.nextTick(emitErrorAndCloseNT,rt,ut):tt?(process$1$1.nextTick(emitCloseNT,rt),tt(ut)):process$1$1.nextTick(emitCloseNT,rt)}),this)}function emitErrorAndCloseNT(et,tt){emitErrorNT$1(et,tt),emitCloseNT(et)}function emitCloseNT(et){et._writableState&&!et._writableState.emitClose||et._readableState&&!et._readableState.emitClose||et.emit("close")}function undestroy$1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT$1(et,tt){et.emit("error",tt)}function errorOrDestroy(et,tt){var rt=et._readableState,nt=et._writableState;rt&&rt.autoDestroy||nt&&nt.autoDestroy?et.destroy(tt):et.emit("error",tt)}var destroy_1$1={destroy:destroy$1,undestroy:undestroy$1,errorOrDestroy},errorsBrowser={};function _inheritsLoose$2(et,tt){et.prototype=Object.create(tt.prototype),et.prototype.constructor=et,et.__proto__=tt}var codes={};function createErrorType(et,tt,rt){rt||(rt=Error);function nt(ut,dt,pt){return typeof tt=="string"?tt:tt(ut,dt,pt)}var lt=function(ut){_inheritsLoose$2(dt,ut);function dt(pt,ht,mt){return ut.call(this,nt(pt,ht,mt))||this}return dt}(rt);lt.prototype.name=rt.name,lt.prototype.code=et,codes[et]=lt}function oneOf(et,tt){if(Array.isArray(et)){var rt=et.length;return et=et.map(function(nt){return String(nt)}),rt>2?"one of ".concat(tt," ").concat(et.slice(0,rt-1).join(", "),", or ")+et[rt-1]:rt===2?"one of ".concat(tt," ").concat(et[0]," or ").concat(et[1]):"of ".concat(tt," ").concat(et[0])}else return"of ".concat(tt," ").concat(String(et))}function startsWith$1(et,tt,rt){return et.substr(0,tt.length)===tt}function endsWith$2(et,tt,rt){return(rt===void 0||rt>et.length)&&(rt=et.length),et.substring(rt-tt.length,rt)===tt}function includes$1(et,tt,rt){return typeof rt!="number"&&(rt=0),rt+tt.length>et.length?!1:et.indexOf(tt,rt)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(et,tt){return'The value "'+tt+'" is invalid for option "'+et+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(et,tt,rt){var nt;typeof tt=="string"&&startsWith$1(tt,"not ")?(nt="must not be",tt=tt.replace(/^not /,"")):nt="must be";var lt;if(endsWith$2(et," argument"))lt="The ".concat(et," ").concat(nt," ").concat(oneOf(tt,"type"));else{var ut=includes$1(et,".")?"property":"argument";lt='The "'.concat(et,'" ').concat(ut," ").concat(nt," ").concat(oneOf(tt,"type"))}return lt+=". Received type ".concat(typeof rt),lt},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(et,tt,rt){return et.highWaterMark!=null?et.highWaterMark:tt?et[rt]:null}function getHighWaterMark(et,tt,rt,nt){var lt=highWaterMarkFrom(tt,nt,rt);if(lt!=null){if(!(isFinite(lt)&&Math.floor(lt)===lt)||lt<0){var ut=nt?rt:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(ut,lt)}return Math.floor(lt)}return et.objectMode?16:16*1024}var state$1={getHighWaterMark},buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function et(At,Rt){var zt=Object.keys(At);if(Object.getOwnPropertySymbols){var Tt=Object.getOwnPropertySymbols(At);Rt&&(Tt=Tt.filter(function(Ct){return Object.getOwnPropertyDescriptor(At,Ct).enumerable})),zt.push.apply(zt,Tt)}return zt}function tt(At){for(var Rt=1;Rt<arguments.length;Rt++){var zt=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?et(Object(zt),!0).forEach(function(Tt){rt(At,Tt,zt[Tt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(At,Object.getOwnPropertyDescriptors(zt)):et(Object(zt)).forEach(function(Tt){Object.defineProperty(At,Tt,Object.getOwnPropertyDescriptor(zt,Tt))})}return At}function rt(At,Rt,zt){return Rt=dt(Rt),Rt in At?Object.defineProperty(At,Rt,{value:zt,enumerable:!0,configurable:!0,writable:!0}):At[Rt]=zt,At}function nt(At,Rt){if(!(At instanceof Rt))throw new TypeError("Cannot call a class as a function")}function lt(At,Rt){for(var zt=0;zt<Rt.length;zt++){var Tt=Rt[zt];Tt.enumerable=Tt.enumerable||!1,Tt.configurable=!0,"value"in Tt&&(Tt.writable=!0),Object.defineProperty(At,dt(Tt.key),Tt)}}function ut(At,Rt,zt){return Rt&&lt(At.prototype,Rt),Object.defineProperty(At,"prototype",{writable:!1}),At}function dt(At){var Rt=pt(At,"string");return typeof Rt=="symbol"?Rt:String(Rt)}function pt(At,Rt){if(typeof At!="object"||At===null)return At;var zt=At[Symbol.toPrimitive];if(zt!==void 0){var Tt=zt.call(At,Rt||"default");if(typeof Tt!="object")return Tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Rt==="string"?String:Number)(At)}var ht=dist$5,mt=ht.Buffer,xt=util$a,Mt=xt.inspect,vt=Mt&&Mt.custom||"inspect";function Ot(At,Rt,zt){mt.prototype.copy.call(At,Rt,zt)}return buffer_list=function(){function At(){nt(this,At),this.head=null,this.tail=null,this.length=0}return ut(At,[{key:"push",value:function(zt){var Tt={data:zt,next:null};this.length>0?this.tail.next=Tt:this.head=Tt,this.tail=Tt,++this.length}},{key:"unshift",value:function(zt){var Tt={data:zt,next:this.head};this.length===0&&(this.tail=Tt),this.head=Tt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var zt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,zt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(zt){if(this.length===0)return"";for(var Tt=this.head,Ct=""+Tt.data;Tt=Tt.next;)Ct+=zt+Tt.data;return Ct}},{key:"concat",value:function(zt){if(this.length===0)return mt.alloc(0);for(var Tt=mt.allocUnsafe(zt>>>0),Ct=this.head,It=0;Ct;)Ot(Ct.data,Tt,It),It+=Ct.data.length,Ct=Ct.next;return Tt}},{key:"consume",value:function(zt,Tt){var Ct;return zt<this.head.data.length?(Ct=this.head.data.slice(0,zt),this.head.data=this.head.data.slice(zt)):zt===this.head.data.length?Ct=this.shift():Ct=Tt?this._getString(zt):this._getBuffer(zt),Ct}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(zt){var Tt=this.head,Ct=1,It=Tt.data;for(zt-=It.length;Tt=Tt.next;){var Dt=Tt.data,kt=zt>Dt.length?Dt.length:zt;if(kt===Dt.length?It+=Dt:It+=Dt.slice(0,zt),zt-=kt,zt===0){kt===Dt.length?(++Ct,Tt.next?this.head=Tt.next:this.head=this.tail=null):(this.head=Tt,Tt.data=Dt.slice(kt));break}++Ct}return this.length-=Ct,It}},{key:"_getBuffer",value:function(zt){var Tt=mt.allocUnsafe(zt),Ct=this.head,It=1;for(Ct.data.copy(Tt),zt-=Ct.data.length;Ct=Ct.next;){var Dt=Ct.data,kt=zt>Dt.length?Dt.length:zt;if(Dt.copy(Tt,Tt.length-zt,0,kt),zt-=kt,zt===0){kt===Dt.length?(++It,Ct.next?this.head=Ct.next:this.head=this.tail=null):(this.head=Ct,Ct.data=Dt.slice(kt));break}++It}return this.length-=It,Tt}},{key:vt,value:function(zt,Tt){return Mt(this,tt(tt({},Tt),{},{depth:0,customInspect:!1}))}}]),At}(),buffer_list}var string_decoder={},safeBuffer$2={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(et,tt){var rt=dist$5,nt=rt.Buffer;function lt(dt,pt){for(var ht in dt)pt[ht]=dt[ht]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?et.exports=rt:(lt(rt,tt),tt.Buffer=ut);function ut(dt,pt,ht){return nt(dt,pt,ht)}ut.prototype=Object.create(nt.prototype),lt(nt,ut),ut.from=function(dt,pt,ht){if(typeof dt=="number")throw new TypeError("Argument must not be a number");return nt(dt,pt,ht)},ut.alloc=function(dt,pt,ht){if(typeof dt!="number")throw new TypeError("Argument must be a number");var mt=nt(dt);return pt!==void 0?typeof ht=="string"?mt.fill(pt,ht):mt.fill(pt):mt.fill(0),mt},ut.allocUnsafe=function(dt){if(typeof dt!="number")throw new TypeError("Argument must be a number");return nt(dt)},ut.allocUnsafeSlow=function(dt){if(typeof dt!="number")throw new TypeError("Argument must be a number");return rt.SlowBuffer(dt)}})(safeBuffer$2,safeBuffer$2.exports);var safeBufferExports$1=safeBuffer$2.exports,Buffer$D=safeBufferExports$1.Buffer,isEncoding=Buffer$D.isEncoding||function(et){switch(et=""+et,et&&et.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(et){if(!et)return"utf8";for(var tt;;)switch(et){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return et;default:if(tt)return;et=(""+et).toLowerCase(),tt=!0}}function normalizeEncoding(et){var tt=_normalizeEncoding(et);if(typeof tt!="string"&&(Buffer$D.isEncoding===isEncoding||!isEncoding(et)))throw new Error("Unknown encoding: "+et);return tt||et}string_decoder.StringDecoder=StringDecoder$1;function StringDecoder$1(et){this.encoding=normalizeEncoding(et);var tt;switch(this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,tt=4;break;case"utf8":this.fillLast=utf8FillLast,tt=4;break;case"base64":this.text=base64Text,this.end=base64End,tt=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer$D.allocUnsafe(tt)}StringDecoder$1.prototype.write=function(et){if(et.length===0)return"";var tt,rt;if(this.lastNeed){if(tt=this.fillLast(et),tt===void 0)return"";rt=this.lastNeed,this.lastNeed=0}else rt=0;return rt<et.length?tt?tt+this.text(et,rt):this.text(et,rt):tt||""};StringDecoder$1.prototype.end=utf8End;StringDecoder$1.prototype.text=utf8Text;StringDecoder$1.prototype.fillLast=function(et){if(this.lastNeed<=et.length)return et.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,this.lastTotal-this.lastNeed,0,et.length),this.lastNeed-=et.length};function utf8CheckByte(et){return et<=127?0:et>>5===6?2:et>>4===14?3:et>>3===30?4:et>>6===2?-1:-2}function utf8CheckIncomplete(et,tt,rt){var nt=tt.length-1;if(nt<rt)return 0;var lt=utf8CheckByte(tt[nt]);return lt>=0?(lt>0&&(et.lastNeed=lt-1),lt):--nt<rt||lt===-2?0:(lt=utf8CheckByte(tt[nt]),lt>=0?(lt>0&&(et.lastNeed=lt-2),lt):--nt<rt||lt===-2?0:(lt=utf8CheckByte(tt[nt]),lt>=0?(lt>0&&(lt===2?lt=0:et.lastNeed=lt-3),lt):0))}function utf8CheckExtraBytes(et,tt,rt){if((tt[0]&192)!==128)return et.lastNeed=0,"�";if(et.lastNeed>1&&tt.length>1){if((tt[1]&192)!==128)return et.lastNeed=1,"�";if(et.lastNeed>2&&tt.length>2&&(tt[2]&192)!==128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var tt=this.lastTotal-this.lastNeed,rt=utf8CheckExtraBytes(this,et);if(rt!==void 0)return rt;if(this.lastNeed<=et.length)return et.copy(this.lastChar,tt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,tt,0,et.length),this.lastNeed-=et.length}function utf8Text(et,tt){var rt=utf8CheckIncomplete(this,et,tt);if(!this.lastNeed)return et.toString("utf8",tt);this.lastTotal=rt;var nt=et.length-(rt-this.lastNeed);return et.copy(this.lastChar,0,nt),et.toString("utf8",tt,nt)}function utf8End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+"�":tt}function utf16Text(et,tt){if((et.length-tt)%2===0){var rt=et.toString("utf16le",tt);if(rt){var nt=rt.charCodeAt(rt.length-1);if(nt>=55296&&nt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],rt.slice(0,-1)}return rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",tt,et.length-1)}function utf16End(et){var tt=et&&et.length?this.write(et):"";if(this.lastNeed){var rt=this.lastTotal-this.lastNeed;return tt+this.lastChar.toString("utf16le",0,rt)}return tt}function base64Text(et,tt){var rt=(et.length-tt)%3;return rt===0?et.toString("base64",tt):(this.lastNeed=3-rt,this.lastTotal=3,rt===1?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",tt,et.length-rt))}function base64End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+this.lastChar.toString("base64",0,3-this.lastNeed):tt}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$5(et){var tt=!1;return function(){if(!tt){tt=!0;for(var rt=arguments.length,nt=new Array(rt),lt=0;lt<rt;lt++)nt[lt]=arguments[lt];et.apply(this,nt)}}}function noop$a(){}function isRequest$2(et){return et.setHeader&&typeof et.abort=="function"}function eos$1(et,tt,rt){if(typeof tt=="function")return eos$1(et,null,tt);tt||(tt={}),rt=once$5(rt||noop$a);var nt=tt.readable||tt.readable!==!1&&et.readable,lt=tt.writable||tt.writable!==!1&&et.writable,ut=function(){et.writable||pt()},dt=et._writableState&&et._writableState.finished,pt=function(){lt=!1,dt=!0,nt||rt.call(et)},ht=et._readableState&&et._readableState.endEmitted,mt=function(){nt=!1,ht=!0,lt||rt.call(et)},xt=function(At){rt.call(et,At)},Mt=function(){var At;if(nt&&!ht)return(!et._readableState||!et._readableState.ended)&&(At=new ERR_STREAM_PREMATURE_CLOSE),rt.call(et,At);if(lt&&!dt)return(!et._writableState||!et._writableState.ended)&&(At=new ERR_STREAM_PREMATURE_CLOSE),rt.call(et,At)},vt=function(){et.req.on("finish",pt)};return isRequest$2(et)?(et.on("complete",pt),et.on("abort",Mt),et.req?vt():et.on("request",vt)):lt&&!et._writableState&&(et.on("end",ut),et.on("close",ut)),et.on("end",mt),et.on("finish",pt),tt.error!==!1&&et.on("error",xt),et.on("close",Mt),function(){et.removeListener("complete",pt),et.removeListener("abort",Mt),et.removeListener("request",vt),et.req&&et.req.removeListener("finish",pt),et.removeListener("end",ut),et.removeListener("close",ut),et.removeListener("finish",pt),et.removeListener("end",mt),et.removeListener("error",xt),et.removeListener("close",Mt)}}var endOfStream=eos$1,async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var et;function tt(It,Dt,kt){return Dt=rt(Dt),Dt in It?Object.defineProperty(It,Dt,{value:kt,enumerable:!0,configurable:!0,writable:!0}):It[Dt]=kt,It}function rt(It){var Dt=nt(It,"string");return typeof Dt=="symbol"?Dt:String(Dt)}function nt(It,Dt){if(typeof It!="object"||It===null)return It;var kt=It[Symbol.toPrimitive];if(kt!==void 0){var qt=kt.call(It,Dt||"default");if(typeof qt!="object")return qt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Dt==="string"?String:Number)(It)}var lt=endOfStream,ut=Symbol("lastResolve"),dt=Symbol("lastReject"),pt=Symbol("error"),ht=Symbol("ended"),mt=Symbol("lastPromise"),xt=Symbol("handlePromise"),Mt=Symbol("stream");function vt(It,Dt){return{value:It,done:Dt}}function Ot(It){var Dt=It[ut];if(Dt!==null){var kt=It[Mt].read();kt!==null&&(It[mt]=null,It[ut]=null,It[dt]=null,Dt(vt(kt,!1)))}}function At(It){process$1$1.nextTick(Ot,It)}function Rt(It,Dt){return function(kt,qt){It.then(function(){if(Dt[ht]){kt(vt(void 0,!0));return}Dt[xt](kt,qt)},qt)}}var zt=Object.getPrototypeOf(function(){}),Tt=Object.setPrototypeOf((et={get stream(){return this[Mt]},next:function(){var Dt=this,kt=this[pt];if(kt!==null)return Promise.reject(kt);if(this[ht])return Promise.resolve(vt(void 0,!0));if(this[Mt].destroyed)return new Promise(function(Kt,Jt){process$1$1.nextTick(function(){Dt[pt]?Jt(Dt[pt]):Kt(vt(void 0,!0))})});var qt=this[mt],Nt;if(qt)Nt=new Promise(Rt(qt,this));else{var Yt=this[Mt].read();if(Yt!==null)return Promise.resolve(vt(Yt,!1));Nt=new Promise(this[xt])}return this[mt]=Nt,Nt}},tt(et,Symbol.asyncIterator,function(){return this}),tt(et,"return",function(){var Dt=this;return new Promise(function(kt,qt){Dt[Mt].destroy(null,function(Nt){if(Nt){qt(Nt);return}kt(vt(void 0,!0))})})}),et),zt),Ct=function(Dt){var kt,qt=Object.create(Tt,(kt={},tt(kt,Mt,{value:Dt,writable:!0}),tt(kt,ut,{value:null,writable:!0}),tt(kt,dt,{value:null,writable:!0}),tt(kt,pt,{value:null,writable:!0}),tt(kt,ht,{value:Dt._readableState.endEmitted,writable:!0}),tt(kt,xt,{value:function(Yt,Kt){var Jt=qt[Mt].read();Jt?(qt[mt]=null,qt[ut]=null,qt[dt]=null,Yt(vt(Jt,!1))):(qt[ut]=Yt,qt[dt]=Kt)},writable:!0}),kt));return qt[mt]=null,lt(Dt,function(Nt){if(Nt&&Nt.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Yt=qt[dt];Yt!==null&&(qt[mt]=null,qt[ut]=null,qt[dt]=null,Yt(Nt)),qt[pt]=Nt;return}var Kt=qt[ut];Kt!==null&&(qt[mt]=null,qt[ut]=null,qt[dt]=null,Kt(vt(void 0,!0))),qt[ht]=!0}),Dt.on("readable",At.bind(null,qt)),qt};return async_iterator=Ct,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable$1,hasRequired_stream_readable$1;function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1,_stream_readable$1=Kt;var et;Kt.ReadableState=Yt,eventsExports.EventEmitter;var tt=function(ar,ur){return ar.listeners(ur).length},rt=streamBrowser$1,nt=dist$5.Buffer,lt=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ut(br){return nt.from(br)}function dt(br){return nt.isBuffer(br)||br instanceof lt}var pt=util$a,ht;pt&&pt.debuglog?ht=pt.debuglog("stream"):ht=function(){};var mt=requireBuffer_list(),xt=destroy_1$1,Mt=state$1,vt=Mt.getHighWaterMark,Ot=errorsBrowser.codes,At=Ot.ERR_INVALID_ARG_TYPE,Rt=Ot.ERR_STREAM_PUSH_AFTER_EOF,zt=Ot.ERR_METHOD_NOT_IMPLEMENTED,Tt=Ot.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ct,It,Dt;inherits_browserExports(Kt,rt);var kt=xt.errorOrDestroy,qt=["error","close","destroy","pause","resume"];function Nt(br,ar,ur){if(typeof br.prependListener=="function")return br.prependListener(ar,ur);!br._events||!br._events[ar]?br.on(ar,ur):Array.isArray(br._events[ar])?br._events[ar].unshift(ur):br._events[ar]=[ur,br._events[ar]]}function Yt(br,ar,ur){et=et||require_stream_duplex$1(),br=br||{},typeof ur!="boolean"&&(ur=ar instanceof et),this.objectMode=!!br.objectMode,ur&&(this.objectMode=this.objectMode||!!br.readableObjectMode),this.highWaterMark=vt(this,br,"readableHighWaterMark",ur),this.buffer=new mt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=br.emitClose!==!1,this.autoDestroy=!!br.autoDestroy,this.destroyed=!1,this.defaultEncoding=br.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,br.encoding&&(Ct||(Ct=string_decoder.StringDecoder),this.decoder=new Ct(br.encoding),this.encoding=br.encoding)}function Kt(br){if(et=et||require_stream_duplex$1(),!(this instanceof Kt))return new Kt(br);var ar=this instanceof et;this._readableState=new Yt(br,this,ar),this.readable=!0,br&&(typeof br.read=="function"&&(this._read=br.read),typeof br.destroy=="function"&&(this._destroy=br.destroy)),rt.call(this)}Object.defineProperty(Kt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ar){this._readableState&&(this._readableState.destroyed=ar)}}),Kt.prototype.destroy=xt.destroy,Kt.prototype._undestroy=xt.undestroy,Kt.prototype._destroy=function(br,ar){ar(br)},Kt.prototype.push=function(br,ar){var ur=this._readableState,xr;return ur.objectMode?xr=!0:typeof br=="string"&&(ar=ar||ur.defaultEncoding,ar!==ur.encoding&&(br=nt.from(br,ar),ar=""),xr=!0),Jt(this,br,ar,!1,xr)},Kt.prototype.unshift=function(br){return Jt(this,br,null,!0,!1)};function Jt(br,ar,ur,xr,Mr){ht("readableAddChunk",ar);var Ar=br._readableState;if(ar===null)Ar.reading=!1,Wt(br,Ar);else{var Ir;if(Mr||(Ir=Bt(Ar,ar)),Ir)kt(br,Ir);else if(Ar.objectMode||ar&&ar.length>0)if(typeof ar!="string"&&!Ar.objectMode&&Object.getPrototypeOf(ar)!==nt.prototype&&(ar=ut(ar)),xr)Ar.endEmitted?kt(br,new Tt):Qt(br,Ar,ar,!0);else if(Ar.ended)kt(br,new Rt);else{if(Ar.destroyed)return!1;Ar.reading=!1,Ar.decoder&&!ur?(ar=Ar.decoder.write(ar),Ar.objectMode||ar.length!==0?Qt(br,Ar,ar,!1):Ht(br,Ar)):Qt(br,Ar,ar,!1)}else xr||(Ar.reading=!1,Ht(br,Ar))}return!Ar.ended&&(Ar.length<Ar.highWaterMark||Ar.length===0)}function Qt(br,ar,ur,xr){ar.flowing&&ar.length===0&&!ar.sync?(ar.awaitDrain=0,br.emit("data",ur)):(ar.length+=ar.objectMode?1:ur.length,xr?ar.buffer.unshift(ur):ar.buffer.push(ur),ar.needReadable&&Ut(br)),Ht(br,ar)}function Bt(br,ar){var ur;return!dt(ar)&&typeof ar!="string"&&ar!==void 0&&!br.objectMode&&(ur=new At("chunk",["string","Buffer","Uint8Array"],ar)),ur}Kt.prototype.isPaused=function(){return this._readableState.flowing===!1},Kt.prototype.setEncoding=function(br){Ct||(Ct=string_decoder.StringDecoder);var ar=new Ct(br);this._readableState.decoder=ar,this._readableState.encoding=this._readableState.decoder.encoding;for(var ur=this._readableState.buffer.head,xr="";ur!==null;)xr+=ar.write(ur.data),ur=ur.next;return this._readableState.buffer.clear(),xr!==""&&this._readableState.buffer.push(xr),this._readableState.length=xr.length,this};var Ft=1073741824;function $t(br){return br>=Ft?br=Ft:(br--,br|=br>>>1,br|=br>>>2,br|=br>>>4,br|=br>>>8,br|=br>>>16,br++),br}function jt(br,ar){return br<=0||ar.length===0&&ar.ended?0:ar.objectMode?1:br!==br?ar.flowing&&ar.length?ar.buffer.head.data.length:ar.length:(br>ar.highWaterMark&&(ar.highWaterMark=$t(br)),br<=ar.length?br:ar.ended?ar.length:(ar.needReadable=!0,0))}Kt.prototype.read=function(br){ht("read",br),br=parseInt(br,10);var ar=this._readableState,ur=br;if(br!==0&&(ar.emittedReadable=!1),br===0&&ar.needReadable&&((ar.highWaterMark!==0?ar.length>=ar.highWaterMark:ar.length>0)||ar.ended))return ht("read: emitReadable",ar.length,ar.ended),ar.length===0&&ar.ended?ir(this):Ut(this),null;if(br=jt(br,ar),br===0&&ar.ended)return ar.length===0&&ir(this),null;var xr=ar.needReadable;ht("need readable",xr),(ar.length===0||ar.length-br<ar.highWaterMark)&&(xr=!0,ht("length less than watermark",xr)),ar.ended||ar.reading?(xr=!1,ht("reading or ended",xr)):xr&&(ht("do read"),ar.reading=!0,ar.sync=!0,ar.length===0&&(ar.needReadable=!0),this._read(ar.highWaterMark),ar.sync=!1,ar.reading||(br=jt(ur,ar)));var Mr;return br>0?Mr=cr(br,ar):Mr=null,Mr===null?(ar.needReadable=ar.length<=ar.highWaterMark,br=0):(ar.length-=br,ar.awaitDrain=0),ar.length===0&&(ar.ended||(ar.needReadable=!0),ur!==br&&ar.ended&&ir(this)),Mr!==null&&this.emit("data",Mr),Mr};function Wt(br,ar){if(ht("onEofChunk"),!ar.ended){if(ar.decoder){var ur=ar.decoder.end();ur&&ur.length&&(ar.buffer.push(ur),ar.length+=ar.objectMode?1:ur.length)}ar.ended=!0,ar.sync?Ut(br):(ar.needReadable=!1,ar.emittedReadable||(ar.emittedReadable=!0,Vt(br)))}}function Ut(br){var ar=br._readableState;ht("emitReadable",ar.needReadable,ar.emittedReadable),ar.needReadable=!1,ar.emittedReadable||(ht("emitReadable",ar.flowing),ar.emittedReadable=!0,process$1$1.nextTick(Vt,br))}function Vt(br){var ar=br._readableState;ht("emitReadable_",ar.destroyed,ar.length,ar.ended),!ar.destroyed&&(ar.length||ar.ended)&&(br.emit("readable"),ar.emittedReadable=!1),ar.needReadable=!ar.flowing&&!ar.ended&&ar.length<=ar.highWaterMark,rr(br)}function Ht(br,ar){ar.readingMore||(ar.readingMore=!0,process$1$1.nextTick(Gt,br,ar))}function Gt(br,ar){for(;!ar.reading&&!ar.ended&&(ar.length<ar.highWaterMark||ar.flowing&&ar.length===0);){var ur=ar.length;if(ht("maybeReadMore read 0"),br.read(0),ur===ar.length)break}ar.readingMore=!1}Kt.prototype._read=function(br){kt(this,new zt("_read()"))},Kt.prototype.pipe=function(br,ar){var ur=this,xr=this._readableState;switch(xr.pipesCount){case 0:xr.pipes=br;break;case 1:xr.pipes=[xr.pipes,br];break;default:xr.pipes.push(br);break}xr.pipesCount+=1,ht("pipe count=%d opts=%j",xr.pipesCount,ar);var Mr=(!ar||ar.end!==!1)&&br!==process$1$1.stdout&&br!==process$1$1.stderr,Ar=Mr?Rr:Dr;xr.endEmitted?process$1$1.nextTick(Ar):ur.once("end",Ar),br.on("unpipe",Ir);function Ir(Fr,Yr){ht("onunpipe"),Fr===ur&&Yr&&Yr.hasUnpiped===!1&&(Yr.hasUnpiped=!0,Hr())}function Rr(){ht("onend"),br.end()}var wr=Zt(ur);br.on("drain",wr);var qr=!1;function Hr(){ht("cleanup"),br.removeListener("close",yr),br.removeListener("finish",Or),br.removeListener("drain",wr),br.removeListener("error",$r),br.removeListener("unpipe",Ir),ur.removeListener("end",Rr),ur.removeListener("end",Dr),ur.removeListener("data",kr),qr=!0,xr.awaitDrain&&(!br._writableState||br._writableState.needDrain)&&wr()}ur.on("data",kr);function kr(Fr){ht("ondata");var Yr=br.write(Fr);ht("dest.write",Yr),Yr===!1&&((xr.pipesCount===1&&xr.pipes===br||xr.pipesCount>1&&gr(xr.pipes,br)!==-1)&&!qr&&(ht("false write response, pause",xr.awaitDrain),xr.awaitDrain++),ur.pause())}function $r(Fr){ht("onerror",Fr),Dr(),br.removeListener("error",$r),tt(br,"error")===0&&kt(br,Fr)}Nt(br,"error",$r);function yr(){br.removeListener("finish",Or),Dr()}br.once("close",yr);function Or(){ht("onfinish"),br.removeListener("close",yr),Dr()}br.once("finish",Or);function Dr(){ht("unpipe"),ur.unpipe(br)}return br.emit("pipe",ur),xr.flowing||(ht("pipe resume"),ur.resume()),br};function Zt(br){return function(){var ur=br._readableState;ht("pipeOnDrain",ur.awaitDrain),ur.awaitDrain&&ur.awaitDrain--,ur.awaitDrain===0&&tt(br,"data")&&(ur.flowing=!0,rr(br))}}Kt.prototype.unpipe=function(br){var ar=this._readableState,ur={hasUnpiped:!1};if(ar.pipesCount===0)return this;if(ar.pipesCount===1)return br&&br!==ar.pipes?this:(br||(br=ar.pipes),ar.pipes=null,ar.pipesCount=0,ar.flowing=!1,br&&br.emit("unpipe",this,ur),this);if(!br){var xr=ar.pipes,Mr=ar.pipesCount;ar.pipes=null,ar.pipesCount=0,ar.flowing=!1;for(var Ar=0;Ar<Mr;Ar++)xr[Ar].emit("unpipe",this,{hasUnpiped:!1});return this}var Ir=gr(ar.pipes,br);return Ir===-1?this:(ar.pipes.splice(Ir,1),ar.pipesCount-=1,ar.pipesCount===1&&(ar.pipes=ar.pipes[0]),br.emit("unpipe",this,ur),this)},Kt.prototype.on=function(br,ar){var ur=rt.prototype.on.call(this,br,ar),xr=this._readableState;return br==="data"?(xr.readableListening=this.listenerCount("readable")>0,xr.flowing!==!1&&this.resume()):br==="readable"&&!xr.endEmitted&&!xr.readableListening&&(xr.readableListening=xr.needReadable=!0,xr.flowing=!1,xr.emittedReadable=!1,ht("on readable",xr.length,xr.reading),xr.length?Ut(this):xr.reading||process$1$1.nextTick(er,this)),ur},Kt.prototype.addListener=Kt.prototype.on,Kt.prototype.removeListener=function(br,ar){var ur=rt.prototype.removeListener.call(this,br,ar);return br==="readable"&&process$1$1.nextTick(Xt,this),ur},Kt.prototype.removeAllListeners=function(br){var ar=rt.prototype.removeAllListeners.apply(this,arguments);return(br==="readable"||br===void 0)&&process$1$1.nextTick(Xt,this),ar};function Xt(br){var ar=br._readableState;ar.readableListening=br.listenerCount("readable")>0,ar.resumeScheduled&&!ar.paused?ar.flowing=!0:br.listenerCount("data")>0&&br.resume()}function er(br){ht("readable nexttick read 0"),br.read(0)}Kt.prototype.resume=function(){var br=this._readableState;return br.flowing||(ht("resume"),br.flowing=!br.readableListening,nr(this,br)),br.paused=!1,this};function nr(br,ar){ar.resumeScheduled||(ar.resumeScheduled=!0,process$1$1.nextTick(or,br,ar))}function or(br,ar){ht("resume",ar.reading),ar.reading||br.read(0),ar.resumeScheduled=!1,br.emit("resume"),rr(br),ar.flowing&&!ar.reading&&br.read(0)}Kt.prototype.pause=function(){return ht("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ht("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function rr(br){var ar=br._readableState;for(ht("flow",ar.flowing);ar.flowing&&br.read()!==null;);}Kt.prototype.wrap=function(br){var ar=this,ur=this._readableState,xr=!1;br.on("end",function(){if(ht("wrapped end"),ur.decoder&&!ur.ended){var Ir=ur.decoder.end();Ir&&Ir.length&&ar.push(Ir)}ar.push(null)}),br.on("data",function(Ir){if(ht("wrapped data"),ur.decoder&&(Ir=ur.decoder.write(Ir)),!(ur.objectMode&&Ir==null)&&!(!ur.objectMode&&(!Ir||!Ir.length))){var Rr=ar.push(Ir);Rr||(xr=!0,br.pause())}});for(var Mr in br)this[Mr]===void 0&&typeof br[Mr]=="function"&&(this[Mr]=function(Rr){return function(){return br[Rr].apply(br,arguments)}}(Mr));for(var Ar=0;Ar<qt.length;Ar++)br.on(qt[Ar],this.emit.bind(this,qt[Ar]));return this._read=function(Ir){ht("wrapped _read",Ir),xr&&(xr=!1,br.resume())},this},typeof Symbol=="function"&&(Kt.prototype[Symbol.asyncIterator]=function(){return It===void 0&&(It=requireAsync_iterator()),It(this)}),Object.defineProperty(Kt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Kt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Kt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ar){this._readableState&&(this._readableState.flowing=ar)}}),Kt._fromList=cr,Object.defineProperty(Kt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function cr(br,ar){if(ar.length===0)return null;var ur;return ar.objectMode?ur=ar.buffer.shift():!br||br>=ar.length?(ar.decoder?ur=ar.buffer.join(""):ar.buffer.length===1?ur=ar.buffer.first():ur=ar.buffer.concat(ar.length),ar.buffer.clear()):ur=ar.buffer.consume(br,ar.decoder),ur}function ir(br){var ar=br._readableState;ht("endReadable",ar.endEmitted),ar.endEmitted||(ar.ended=!0,process$1$1.nextTick(dr,ar,br))}function dr(br,ar){if(ht("endReadableNT",br.endEmitted,br.length),!br.endEmitted&&br.length===0&&(br.endEmitted=!0,ar.readable=!1,ar.emit("end"),br.autoDestroy)){var ur=ar._writableState;(!ur||ur.autoDestroy&&ur.finished)&&ar.destroy()}}typeof Symbol=="function"&&(Kt.from=function(br,ar){return Dt===void 0&&(Dt=requireFromBrowser()),Dt(Kt,br,ar)});function gr(br,ar){for(var ur=0,xr=br.length;ur<xr;ur++)if(br[ur]===ar)return ur;return-1}return _stream_readable$1}var _stream_duplex$1,hasRequired_stream_duplex$1;function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var et=Object.keys||function(mt){var xt=[];for(var Mt in mt)xt.push(Mt);return xt};_stream_duplex$1=dt;var tt=require_stream_readable$1(),rt=require_stream_writable$1();inherits_browserExports(dt,tt);for(var nt=et(rt.prototype),lt=0;lt<nt.length;lt++){var ut=nt[lt];dt.prototype[ut]||(dt.prototype[ut]=rt.prototype[ut])}function dt(mt){if(!(this instanceof dt))return new dt(mt);tt.call(this,mt),rt.call(this,mt),this.allowHalfOpen=!0,mt&&(mt.readable===!1&&(this.readable=!1),mt.writable===!1&&(this.writable=!1),mt.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",pt)))}Object.defineProperty(dt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(dt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(dt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function pt(){this._writableState.ended||process$1$1.nextTick(ht,this)}function ht(mt){mt.end()}return Object.defineProperty(dt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(xt){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=xt,this._writableState.destroyed=xt)}}),_stream_duplex$1}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=Yt;function et(rr){var cr=this;this.next=null,this.entry=null,this.finish=function(){or(cr,rr)}}var tt;Yt.WritableState=qt;var rt={deprecate:browser$d},nt=streamBrowser$1,lt=dist$5.Buffer,ut=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function dt(rr){return lt.from(rr)}function pt(rr){return lt.isBuffer(rr)||rr instanceof ut}var ht=destroy_1$1,mt=state$1,xt=mt.getHighWaterMark,Mt=errorsBrowser.codes,vt=Mt.ERR_INVALID_ARG_TYPE,Ot=Mt.ERR_METHOD_NOT_IMPLEMENTED,At=Mt.ERR_MULTIPLE_CALLBACK,Rt=Mt.ERR_STREAM_CANNOT_PIPE,zt=Mt.ERR_STREAM_DESTROYED,Tt=Mt.ERR_STREAM_NULL_VALUES,Ct=Mt.ERR_STREAM_WRITE_AFTER_END,It=Mt.ERR_UNKNOWN_ENCODING,Dt=ht.errorOrDestroy;inherits_browserExports(Yt,nt);function kt(){}function qt(rr,cr,ir){tt=tt||require_stream_duplex$1(),rr=rr||{},typeof ir!="boolean"&&(ir=cr instanceof tt),this.objectMode=!!rr.objectMode,ir&&(this.objectMode=this.objectMode||!!rr.writableObjectMode),this.highWaterMark=xt(this,rr,"writableHighWaterMark",ir),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var dr=rr.decodeStrings===!1;this.decodeStrings=!dr,this.defaultEncoding=rr.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(gr){Wt(cr,gr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=rr.emitClose!==!1,this.autoDestroy=!!rr.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new et(this)}qt.prototype.getBuffer=function(){for(var cr=this.bufferedRequest,ir=[];cr;)ir.push(cr),cr=cr.next;return ir},function(){try{Object.defineProperty(qt.prototype,"buffer",{get:rt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Nt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Nt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Yt,Symbol.hasInstance,{value:function(cr){return Nt.call(this,cr)?!0:this!==Yt?!1:cr&&cr._writableState instanceof qt}})):Nt=function(cr){return cr instanceof this};function Yt(rr){tt=tt||require_stream_duplex$1();var cr=this instanceof tt;if(!cr&&!Nt.call(Yt,this))return new Yt(rr);this._writableState=new qt(rr,this,cr),this.writable=!0,rr&&(typeof rr.write=="function"&&(this._write=rr.write),typeof rr.writev=="function"&&(this._writev=rr.writev),typeof rr.destroy=="function"&&(this._destroy=rr.destroy),typeof rr.final=="function"&&(this._final=rr.final)),nt.call(this)}Yt.prototype.pipe=function(){Dt(this,new Rt)};function Kt(rr,cr){var ir=new Ct;Dt(rr,ir),process$1$1.nextTick(cr,ir)}function Jt(rr,cr,ir,dr){var gr;return ir===null?gr=new Tt:typeof ir!="string"&&!cr.objectMode&&(gr=new vt("chunk",["string","Buffer"],ir)),gr?(Dt(rr,gr),process$1$1.nextTick(dr,gr),!1):!0}Yt.prototype.write=function(rr,cr,ir){var dr=this._writableState,gr=!1,br=!dr.objectMode&&pt(rr);return br&&!lt.isBuffer(rr)&&(rr=dt(rr)),typeof cr=="function"&&(ir=cr,cr=null),br?cr="buffer":cr||(cr=dr.defaultEncoding),typeof ir!="function"&&(ir=kt),dr.ending?Kt(this,ir):(br||Jt(this,dr,rr,ir))&&(dr.pendingcb++,gr=Bt(this,dr,br,rr,cr,ir)),gr},Yt.prototype.cork=function(){this._writableState.corked++},Yt.prototype.uncork=function(){var rr=this._writableState;rr.corked&&(rr.corked--,!rr.writing&&!rr.corked&&!rr.bufferProcessing&&rr.bufferedRequest&&Ht(this,rr))},Yt.prototype.setDefaultEncoding=function(cr){if(typeof cr=="string"&&(cr=cr.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((cr+"").toLowerCase())>-1))throw new It(cr);return this._writableState.defaultEncoding=cr,this},Object.defineProperty(Yt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Qt(rr,cr,ir){return!rr.objectMode&&rr.decodeStrings!==!1&&typeof cr=="string"&&(cr=lt.from(cr,ir)),cr}Object.defineProperty(Yt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Bt(rr,cr,ir,dr,gr,br){if(!ir){var ar=Qt(cr,dr,gr);dr!==ar&&(ir=!0,gr="buffer",dr=ar)}var ur=cr.objectMode?1:dr.length;cr.length+=ur;var xr=cr.length<cr.highWaterMark;if(xr||(cr.needDrain=!0),cr.writing||cr.corked){var Mr=cr.lastBufferedRequest;cr.lastBufferedRequest={chunk:dr,encoding:gr,isBuf:ir,callback:br,next:null},Mr?Mr.next=cr.lastBufferedRequest:cr.bufferedRequest=cr.lastBufferedRequest,cr.bufferedRequestCount+=1}else Ft(rr,cr,!1,ur,dr,gr,br);return xr}function Ft(rr,cr,ir,dr,gr,br,ar){cr.writelen=dr,cr.writecb=ar,cr.writing=!0,cr.sync=!0,cr.destroyed?cr.onwrite(new zt("write")):ir?rr._writev(gr,cr.onwrite):rr._write(gr,br,cr.onwrite),cr.sync=!1}function $t(rr,cr,ir,dr,gr){--cr.pendingcb,ir?(process$1$1.nextTick(gr,dr),process$1$1.nextTick(er,rr,cr),rr._writableState.errorEmitted=!0,Dt(rr,dr)):(gr(dr),rr._writableState.errorEmitted=!0,Dt(rr,dr),er(rr,cr))}function jt(rr){rr.writing=!1,rr.writecb=null,rr.length-=rr.writelen,rr.writelen=0}function Wt(rr,cr){var ir=rr._writableState,dr=ir.sync,gr=ir.writecb;if(typeof gr!="function")throw new At;if(jt(ir),cr)$t(rr,ir,dr,cr,gr);else{var br=Gt(ir)||rr.destroyed;!br&&!ir.corked&&!ir.bufferProcessing&&ir.bufferedRequest&&Ht(rr,ir),dr?process$1$1.nextTick(Ut,rr,ir,br,gr):Ut(rr,ir,br,gr)}}function Ut(rr,cr,ir,dr){ir||Vt(rr,cr),cr.pendingcb--,dr(),er(rr,cr)}function Vt(rr,cr){cr.length===0&&cr.needDrain&&(cr.needDrain=!1,rr.emit("drain"))}function Ht(rr,cr){cr.bufferProcessing=!0;var ir=cr.bufferedRequest;if(rr._writev&&ir&&ir.next){var dr=cr.bufferedRequestCount,gr=new Array(dr),br=cr.corkedRequestsFree;br.entry=ir;for(var ar=0,ur=!0;ir;)gr[ar]=ir,ir.isBuf||(ur=!1),ir=ir.next,ar+=1;gr.allBuffers=ur,Ft(rr,cr,!0,cr.length,gr,"",br.finish),cr.pendingcb++,cr.lastBufferedRequest=null,br.next?(cr.corkedRequestsFree=br.next,br.next=null):cr.corkedRequestsFree=new et(cr),cr.bufferedRequestCount=0}else{for(;ir;){var xr=ir.chunk,Mr=ir.encoding,Ar=ir.callback,Ir=cr.objectMode?1:xr.length;if(Ft(rr,cr,!1,Ir,xr,Mr,Ar),ir=ir.next,cr.bufferedRequestCount--,cr.writing)break}ir===null&&(cr.lastBufferedRequest=null)}cr.bufferedRequest=ir,cr.bufferProcessing=!1}Yt.prototype._write=function(rr,cr,ir){ir(new Ot("_write()"))},Yt.prototype._writev=null,Yt.prototype.end=function(rr,cr,ir){var dr=this._writableState;return typeof rr=="function"?(ir=rr,rr=null,cr=null):typeof cr=="function"&&(ir=cr,cr=null),rr!=null&&this.write(rr,cr),dr.corked&&(dr.corked=1,this.uncork()),dr.ending||nr(this,dr,ir),this},Object.defineProperty(Yt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Gt(rr){return rr.ending&&rr.length===0&&rr.bufferedRequest===null&&!rr.finished&&!rr.writing}function Zt(rr,cr){rr._final(function(ir){cr.pendingcb--,ir&&Dt(rr,ir),cr.prefinished=!0,rr.emit("prefinish"),er(rr,cr)})}function Xt(rr,cr){!cr.prefinished&&!cr.finalCalled&&(typeof rr._final=="function"&&!cr.destroyed?(cr.pendingcb++,cr.finalCalled=!0,process$1$1.nextTick(Zt,rr,cr)):(cr.prefinished=!0,rr.emit("prefinish")))}function er(rr,cr){var ir=Gt(cr);if(ir&&(Xt(rr,cr),cr.pendingcb===0&&(cr.finished=!0,rr.emit("finish"),cr.autoDestroy))){var dr=rr._readableState;(!dr||dr.autoDestroy&&dr.endEmitted)&&rr.destroy()}return ir}function nr(rr,cr,ir){cr.ending=!0,er(rr,cr),ir&&(cr.finished?process$1$1.nextTick(ir):rr.once("finish",ir)),cr.ended=!0,rr.writable=!1}function or(rr,cr,ir){var dr=rr.entry;for(rr.entry=null;dr;){var gr=dr.callback;cr.pendingcb--,gr(ir),dr=dr.next}cr.corkedRequestsFree.next=rr}return Object.defineProperty(Yt.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(cr){this._writableState&&(this._writableState.destroyed=cr)}}),Yt.prototype.destroy=ht.destroy,Yt.prototype._undestroy=ht.undestroy,Yt.prototype._destroy=function(rr,cr){cr(rr)},_stream_writable$1}var util$8=util$a,Writable$3=require_stream_writable$1(),_require$5=tripleBeam,LEVEL$4=_require$5.LEVEL,TransportStream$3=modern$1.exports=function(){var tt=this,rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Writable$3.call(this,{objectMode:!0,highWaterMark:rt.highWaterMark}),this.format=rt.format,this.level=rt.level,this.handleExceptions=rt.handleExceptions,this.handleRejections=rt.handleRejections,this.silent=rt.silent,rt.log&&(this.log=rt.log),rt.logv&&(this.logv=rt.logv),rt.close&&(this.close=rt.close),this.once("pipe",function(nt){tt.levels=nt.levels,tt.parent=nt}),this.once("unpipe",function(nt){nt===tt.parent&&(tt.parent=null,tt.close&&tt.close())})};util$8.inherits(TransportStream$3,Writable$3);TransportStream$3.prototype._write=function(tt,rt,nt){if(this.silent||tt.exception===!0&&!this.handleExceptions)return nt(null);var lt=this.level||this.parent&&this.parent.level;if(!lt||this.levels[lt]>=this.levels[tt[LEVEL$4]]){if(tt&&!this.format)return this.log(tt,nt);var ut=void 0,dt=void 0;try{dt=this.format.transform(Object.assign({},tt),this.format.options)}catch(pt){ut=pt}if(ut||!dt){if(nt(),ut)throw ut;return}return this.log(dt,nt)}return this._writableState.sync=!1,nt(null)};TransportStream$3.prototype._writev=function(tt,rt){if(this.logv){var nt=tt.filter(this._accept,this);return nt.length?this.logv(nt,rt):rt(null)}for(var lt=0;lt<tt.length;lt++)if(this._accept(tt[lt])){if(tt[lt].chunk&&!this.format){this.log(tt[lt].chunk,tt[lt].callback);continue}var ut=void 0,dt=void 0;try{dt=this.format.transform(Object.assign({},tt[lt].chunk),this.format.options)}catch(pt){ut=pt}if(ut||!dt){if(tt[lt].callback(),ut)throw rt(null),ut}else this.log(dt,tt[lt].callback)}return rt(null)};TransportStream$3.prototype._accept=function(tt){var rt=tt.chunk;if(this.silent)return!1;var nt=this.level||this.parent&&this.parent.level;return!!((rt.exception===!0||!nt||this.levels[nt]>=this.levels[rt[LEVEL$4]])&&(this.handleExceptions||rt.exception!==!0))};TransportStream$3.prototype._nop=function(){};var modernExports$1=modern$1.exports,legacy$2={exports:{}},util$7=util$a,_require$4=tripleBeam,LEVEL$3=_require$4.LEVEL,TransportStream$2=modernExports$1,LegacyTransportStream$1=legacy$2.exports=function(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(TransportStream$2.call(this,tt),!tt.transport||typeof tt.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=tt.transport,this.level=this.level||tt.transport.level,this.handleExceptions=this.handleExceptions||tt.transport.handleExceptions,this._deprecated();function rt(nt){this.emit("error",nt,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=rt.bind(this),this.transport.on("error",this.transport.__winstonError))};util$7.inherits(LegacyTransportStream$1,TransportStream$2);LegacyTransportStream$1.prototype._write=function(tt,rt,nt){if(this.silent||tt.exception===!0&&!this.handleExceptions)return nt(null);(!this.level||this.levels[this.level]>=this.levels[tt[LEVEL$3]])&&this.transport.log(tt[LEVEL$3],tt.message,tt,this._nop),nt(null)};LegacyTransportStream$1.prototype._writev=function(tt,rt){for(var nt=0;nt<tt.length;nt++)this._accept(tt[nt])&&(this.transport.log(tt[nt].chunk[LEVEL$3],tt[nt].chunk.message,tt[nt].chunk,this._nop),tt[nt].callback());return rt(null)};LegacyTransportStream$1.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
`))};LegacyTransportStream$1.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)};var legacyExports$1=legacy$2.exports;dist$6.exports=modernExports$1;dist$6.exports.LegacyTransportStream=legacyExports$1;var distExports$2=dist$6.exports,console_1,hasRequiredConsole;function requireConsole(){if(hasRequiredConsole)return console_1;hasRequiredConsole=1;function et(Ct){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It},et(Ct)}function tt(Ct,It){if(!(Ct instanceof It))throw new TypeError("Cannot call a class as a function")}function rt(Ct,It){for(var Dt=0;Dt<It.length;Dt++){var kt=It[Dt];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(Ct,lt(kt.key),kt)}}function nt(Ct,It,Dt){return It&&rt(Ct.prototype,It),Object.defineProperty(Ct,"prototype",{writable:!1}),Ct}function lt(Ct){var It=ut(Ct,"string");return et(It)=="symbol"?It:It+""}function ut(Ct,It){if(et(Ct)!="object"||!Ct)return Ct;var Dt=Ct[Symbol.toPrimitive];if(Dt!==void 0){var kt=Dt.call(Ct,It);if(et(kt)!="object")return kt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Ct)}function dt(Ct,It,Dt){return It=xt(It),pt(Ct,mt()?Reflect.construct(It,Dt||[],xt(Ct).constructor):It.apply(Ct,Dt))}function pt(Ct,It){if(It&&(et(It)=="object"||typeof It=="function"))return It;if(It!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ht(Ct)}function ht(Ct){if(Ct===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ct}function mt(){try{var Ct=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mt=function(){return!!Ct})()}function xt(Ct){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(It){return It.__proto__||Object.getPrototypeOf(It)},xt(Ct)}function Mt(Ct,It){if(typeof It!="function"&&It!==null)throw new TypeError("Super expression must either be null or a function");Ct.prototype=Object.create(It&&It.prototype,{constructor:{value:Ct,writable:!0,configurable:!0}}),Object.defineProperty(Ct,"prototype",{writable:!1}),It&&vt(Ct,It)}function vt(Ct,It){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Dt,kt){return Dt.__proto__=kt,Dt},vt(Ct,It)}var Ot=browser$f,At=tripleBeam,Rt=At.LEVEL,zt=At.MESSAGE,Tt=distExports$2;return console_1=function(Ct){function It(){var Dt,kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return tt(this,It),Dt=dt(this,It,[kt]),Dt.name=kt.name||"console",Dt.stderrLevels=Dt._stringArrayToSet(kt.stderrLevels),Dt.consoleWarnLevels=Dt._stringArrayToSet(kt.consoleWarnLevels),Dt.eol=typeof kt.eol=="string"?kt.eol:Ot.EOL,Dt.forceConsole=kt.forceConsole||!1,Dt._consoleLog=console.log.bind(console),Dt._consoleWarn=console.warn.bind(console),Dt._consoleError=console.error.bind(console),Dt.setMaxListeners(30),Dt}return Mt(It,Ct),nt(It,[{key:"log",value:function(kt,qt){var Nt=this;if(setImmediate(function(){return Nt.emit("logged",kt)}),this.stderrLevels[kt[Rt]]){console._stderr&&!this.forceConsole?console._stderr.write("".concat(kt[zt]).concat(this.eol)):this._consoleError(kt[zt]),qt&&qt();return}else if(this.consoleWarnLevels[kt[Rt]]){console._stderr&&!this.forceConsole?console._stderr.write("".concat(kt[zt]).concat(this.eol)):this._consoleWarn(kt[zt]),qt&&qt();return}console._stdout&&!this.forceConsole?console._stdout.write("".concat(kt[zt]).concat(this.eol)):this._consoleLog(kt[zt]),qt&&qt()}},{key:"_stringArrayToSet",value:function(kt,qt){if(!kt)return{};if(qt=qt||"Cannot make set from type other than Array of string elements",!Array.isArray(kt))throw new Error(qt);return kt.reduce(function(Nt,Yt){if(typeof Yt!="string")throw new Error(qt);return Nt[Yt]=!0,Nt},{})}}])}(Tt),console_1}var empty$2=null;const empty$3=Object.freeze(Object.defineProperty({__proto__:null,default:empty$2},Symbol.toStringTag,{value:"Module"})),require$$0$4=getAugmentedNamespace(empty$3);var pathBrowserify,hasRequiredPathBrowserify;function requirePathBrowserify(){if(hasRequiredPathBrowserify)return pathBrowserify;hasRequiredPathBrowserify=1;function et(lt){if(typeof lt!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(lt))}function tt(lt,ut){for(var dt="",pt=0,ht=-1,mt=0,xt,Mt=0;Mt<=lt.length;++Mt){if(Mt<lt.length)xt=lt.charCodeAt(Mt);else{if(xt===47)break;xt=47}if(xt===47){if(!(ht===Mt-1||mt===1))if(ht!==Mt-1&&mt===2){if(dt.length<2||pt!==2||dt.charCodeAt(dt.length-1)!==46||dt.charCodeAt(dt.length-2)!==46){if(dt.length>2){var vt=dt.lastIndexOf("/");if(vt!==dt.length-1){vt===-1?(dt="",pt=0):(dt=dt.slice(0,vt),pt=dt.length-1-dt.lastIndexOf("/")),ht=Mt,mt=0;continue}}else if(dt.length===2||dt.length===1){dt="",pt=0,ht=Mt,mt=0;continue}}ut&&(dt.length>0?dt+="/..":dt="..",pt=2)}else dt.length>0?dt+="/"+lt.slice(ht+1,Mt):dt=lt.slice(ht+1,Mt),pt=Mt-ht-1;ht=Mt,mt=0}else xt===46&&mt!==-1?++mt:mt=-1}return dt}function rt(lt,ut){var dt=ut.dir||ut.root,pt=ut.base||(ut.name||"")+(ut.ext||"");return dt?dt===ut.root?dt+pt:dt+lt+pt:pt}var nt={resolve:function(){for(var ut="",dt=!1,pt,ht=arguments.length-1;ht>=-1&&!dt;ht--){var mt;ht>=0?mt=arguments[ht]:(pt===void 0&&(pt=process$1$1.cwd()),mt=pt),et(mt),mt.length!==0&&(ut=mt+"/"+ut,dt=mt.charCodeAt(0)===47)}return ut=tt(ut,!dt),dt?ut.length>0?"/"+ut:"/":ut.length>0?ut:"."},normalize:function(ut){if(et(ut),ut.length===0)return".";var dt=ut.charCodeAt(0)===47,pt=ut.charCodeAt(ut.length-1)===47;return ut=tt(ut,!dt),ut.length===0&&!dt&&(ut="."),ut.length>0&&pt&&(ut+="/"),dt?"/"+ut:ut},isAbsolute:function(ut){return et(ut),ut.length>0&&ut.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ut,dt=0;dt<arguments.length;++dt){var pt=arguments[dt];et(pt),pt.length>0&&(ut===void 0?ut=pt:ut+="/"+pt)}return ut===void 0?".":nt.normalize(ut)},relative:function(ut,dt){if(et(ut),et(dt),ut===dt||(ut=nt.resolve(ut),dt=nt.resolve(dt),ut===dt))return"";for(var pt=1;pt<ut.length&&ut.charCodeAt(pt)===47;++pt);for(var ht=ut.length,mt=ht-pt,xt=1;xt<dt.length&&dt.charCodeAt(xt)===47;++xt);for(var Mt=dt.length,vt=Mt-xt,Ot=mt<vt?mt:vt,At=-1,Rt=0;Rt<=Ot;++Rt){if(Rt===Ot){if(vt>Ot){if(dt.charCodeAt(xt+Rt)===47)return dt.slice(xt+Rt+1);if(Rt===0)return dt.slice(xt+Rt)}else mt>Ot&&(ut.charCodeAt(pt+Rt)===47?At=Rt:Rt===0&&(At=0));break}var zt=ut.charCodeAt(pt+Rt),Tt=dt.charCodeAt(xt+Rt);if(zt!==Tt)break;zt===47&&(At=Rt)}var Ct="";for(Rt=pt+At+1;Rt<=ht;++Rt)(Rt===ht||ut.charCodeAt(Rt)===47)&&(Ct.length===0?Ct+="..":Ct+="/..");return Ct.length>0?Ct+dt.slice(xt+At):(xt+=At,dt.charCodeAt(xt)===47&&++xt,dt.slice(xt))},_makeLong:function(ut){return ut},dirname:function(ut){if(et(ut),ut.length===0)return".";for(var dt=ut.charCodeAt(0),pt=dt===47,ht=-1,mt=!0,xt=ut.length-1;xt>=1;--xt)if(dt=ut.charCodeAt(xt),dt===47){if(!mt){ht=xt;break}}else mt=!1;return ht===-1?pt?"/":".":pt&&ht===1?"//":ut.slice(0,ht)},basename:function(ut,dt){if(dt!==void 0&&typeof dt!="string")throw new TypeError('"ext" argument must be a string');et(ut);var pt=0,ht=-1,mt=!0,xt;if(dt!==void 0&&dt.length>0&&dt.length<=ut.length){if(dt.length===ut.length&&dt===ut)return"";var Mt=dt.length-1,vt=-1;for(xt=ut.length-1;xt>=0;--xt){var Ot=ut.charCodeAt(xt);if(Ot===47){if(!mt){pt=xt+1;break}}else vt===-1&&(mt=!1,vt=xt+1),Mt>=0&&(Ot===dt.charCodeAt(Mt)?--Mt===-1&&(ht=xt):(Mt=-1,ht=vt))}return pt===ht?ht=vt:ht===-1&&(ht=ut.length),ut.slice(pt,ht)}else{for(xt=ut.length-1;xt>=0;--xt)if(ut.charCodeAt(xt)===47){if(!mt){pt=xt+1;break}}else ht===-1&&(mt=!1,ht=xt+1);return ht===-1?"":ut.slice(pt,ht)}},extname:function(ut){et(ut);for(var dt=-1,pt=0,ht=-1,mt=!0,xt=0,Mt=ut.length-1;Mt>=0;--Mt){var vt=ut.charCodeAt(Mt);if(vt===47){if(!mt){pt=Mt+1;break}continue}ht===-1&&(mt=!1,ht=Mt+1),vt===46?dt===-1?dt=Mt:xt!==1&&(xt=1):dt!==-1&&(xt=-1)}return dt===-1||ht===-1||xt===0||xt===1&&dt===ht-1&&dt===pt+1?"":ut.slice(dt,ht)},format:function(ut){if(ut===null||typeof ut!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ut);return rt("/",ut)},parse:function(ut){et(ut);var dt={root:"",dir:"",base:"",ext:"",name:""};if(ut.length===0)return dt;var pt=ut.charCodeAt(0),ht=pt===47,mt;ht?(dt.root="/",mt=1):mt=0;for(var xt=-1,Mt=0,vt=-1,Ot=!0,At=ut.length-1,Rt=0;At>=mt;--At){if(pt=ut.charCodeAt(At),pt===47){if(!Ot){Mt=At+1;break}continue}vt===-1&&(Ot=!1,vt=At+1),pt===46?xt===-1?xt=At:Rt!==1&&(Rt=1):xt!==-1&&(Rt=-1)}return xt===-1||vt===-1||Rt===0||Rt===1&&xt===vt-1&&xt===Mt+1?vt!==-1&&(Mt===0&&ht?dt.base=dt.name=ut.slice(1,vt):dt.base=dt.name=ut.slice(Mt,vt)):(Mt===0&&ht?(dt.name=ut.slice(1,xt),dt.base=ut.slice(1,vt)):(dt.name=ut.slice(Mt,xt),dt.base=ut.slice(Mt,vt)),dt.ext=ut.slice(xt,vt)),Mt>0?dt.dir=ut.slice(0,Mt-1):ht&&(dt.dir="/"),dt},sep:"/",delimiter:":",win32:null,posix:null};return nt.posix=nt,pathBrowserify=nt,pathBrowserify}var series={exports:{}},parallel={exports:{}},isArrayLike$5={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=rt;function rt(nt){return nt&&typeof nt.length=="number"&&nt.length>=0&&nt.length%1===0}et.exports=tt.default})(isArrayLike$5,isArrayLike$5.exports);var isArrayLikeExports=isArrayLike$5.exports,wrapAsync={},asyncify={exports:{}},initialParams={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=function(rt){return function(...nt){var lt=nt.pop();return rt.call(this,nt,lt)}},et.exports=tt.default})(initialParams,initialParams.exports);var initialParamsExports=initialParams.exports,setImmediate$1={};Object.defineProperty(setImmediate$1,"__esModule",{value:!0});setImmediate$1.fallback=fallback;setImmediate$1.wrap=wrap;var hasQueueMicrotask=setImmediate$1.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,hasSetImmediate=setImmediate$1.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,hasNextTick=setImmediate$1.hasNextTick=typeof process$1$1=="object"&&typeof process$1$1.nextTick=="function";function fallback(et){setTimeout(et,0)}function wrap(et){return(tt,...rt)=>et(()=>tt(...rt))}var _defer;hasQueueMicrotask?_defer=queueMicrotask:hasSetImmediate?_defer=setImmediate:hasNextTick?_defer=process$1$1.nextTick:_defer=fallback;setImmediate$1.default=wrap(_defer);var hasRequiredAsyncify;function requireAsyncify(){return hasRequiredAsyncify||(hasRequiredAsyncify=1,function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=ht;var rt=initialParamsExports,nt=pt(rt),lt=setImmediate$1,ut=pt(lt),dt=requireWrapAsync();function pt(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}function ht(Mt){return(0,dt.isAsync)(Mt)?function(...vt){const Ot=vt.pop(),At=Mt.apply(this,vt);return mt(At,Ot)}:(0,nt.default)(function(vt,Ot){var At;try{At=Mt.apply(this,vt)}catch(Rt){return Ot(Rt)}if(At&&typeof At.then=="function")return mt(At,Ot);Ot(null,At)})}function mt(Mt,vt){return Mt.then(Ot=>{xt(vt,null,Ot)},Ot=>{xt(vt,Ot&&(Ot instanceof Error||Ot.message)?Ot:new Error(Ot))})}function xt(Mt,vt,Ot){try{Mt(vt,Ot)}catch(At){(0,ut.default)(Rt=>{throw Rt},At)}}et.exports=tt.default}(asyncify,asyncify.exports)),asyncify.exports}var hasRequiredWrapAsync;function requireWrapAsync(){if(hasRequiredWrapAsync)return wrapAsync;hasRequiredWrapAsync=1,Object.defineProperty(wrapAsync,"__esModule",{value:!0}),wrapAsync.isAsyncIterable=wrapAsync.isAsyncGenerator=wrapAsync.isAsync=void 0;var et=requireAsyncify(),tt=rt(et);function rt(pt){return pt&&pt.__esModule?pt:{default:pt}}function nt(pt){return pt[Symbol.toStringTag]==="AsyncFunction"}function lt(pt){return pt[Symbol.toStringTag]==="AsyncGenerator"}function ut(pt){return typeof pt[Symbol.asyncIterator]=="function"}function dt(pt){if(typeof pt!="function")throw new Error("expected a function");return nt(pt)?(0,tt.default)(pt):pt}return wrapAsync.default=dt,wrapAsync.isAsync=nt,wrapAsync.isAsyncGenerator=lt,wrapAsync.isAsyncIterable=ut,wrapAsync}var awaitify={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=rt;function rt(nt,lt){if(lt||(lt=nt.length),!lt)throw new Error("arity is undefined");function ut(...dt){return typeof dt[lt-1]=="function"?nt.apply(this,dt):new Promise((pt,ht)=>{dt[lt-1]=(mt,...xt)=>{if(mt)return ht(mt);pt(xt.length>1?xt:xt[0])},nt.apply(this,dt)})}return ut}et.exports=tt.default})(awaitify,awaitify.exports);var awaitifyExports=awaitify.exports,hasRequiredParallel;function requireParallel(){return hasRequiredParallel||(hasRequiredParallel=1,function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0});var rt=isArrayLikeExports,nt=ht(rt),lt=requireWrapAsync(),ut=ht(lt),dt=awaitifyExports,pt=ht(dt);function ht(mt){return mt&&mt.__esModule?mt:{default:mt}}tt.default=(0,pt.default)((mt,xt,Mt)=>{var vt=(0,nt.default)(xt)?[]:{};mt(xt,(Ot,At,Rt)=>{(0,ut.default)(Ot)((zt,...Tt)=>{Tt.length<2&&([Tt]=Tt),vt[At]=Tt,Rt(zt)})},Ot=>Mt(Ot,vt))},3),et.exports=tt.default}(parallel,parallel.exports)),parallel.exports}var eachOfSeries={exports:{}},eachOfLimit$1={exports:{}},eachOfLimit={exports:{}},once$4={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=rt;function rt(nt){function lt(...ut){if(nt!==null){var dt=nt;nt=null,dt.apply(this,ut)}}return Object.assign(lt,nt),lt}et.exports=tt.default})(once$4,once$4.exports);var onceExports=once$4.exports,iterator={exports:{}},getIterator={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=function(rt){return rt[Symbol.iterator]&&rt[Symbol.iterator]()},et.exports=tt.default})(getIterator,getIterator.exports);var getIteratorExports=getIterator.exports;(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=xt;var rt=isArrayLikeExports,nt=dt(rt),lt=getIteratorExports,ut=dt(lt);function dt(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}function pt(Mt){var vt=-1,Ot=Mt.length;return function(){return++vt<Ot?{value:Mt[vt],key:vt}:null}}function ht(Mt){var vt=-1;return function(){var At=Mt.next();return At.done?null:(vt++,{value:At.value,key:vt})}}function mt(Mt){var vt=Mt?Object.keys(Mt):[],Ot=-1,At=vt.length;return function Rt(){var zt=vt[++Ot];return zt==="__proto__"?Rt():Ot<At?{value:Mt[zt],key:zt}:null}}function xt(Mt){if((0,nt.default)(Mt))return pt(Mt);var vt=(0,ut.default)(Mt);return vt?ht(vt):mt(Mt)}et.exports=tt.default})(iterator,iterator.exports);var iteratorExports=iterator.exports,onlyOnce={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=rt;function rt(nt){return function(...lt){if(nt===null)throw new Error("Callback was already called.");var ut=nt;nt=null,ut.apply(this,lt)}}et.exports=tt.default})(onlyOnce,onlyOnce.exports);var onlyOnceExports=onlyOnce.exports,asyncEachOfLimit={exports:{}},breakLoop={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0});const rt={};tt.default=rt,et.exports=tt.default})(breakLoop,breakLoop.exports);var breakLoopExports=breakLoop.exports;(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=ut;var rt=breakLoopExports,nt=lt(rt);function lt(dt){return dt&&dt.__esModule?dt:{default:dt}}function ut(dt,pt,ht,mt){let xt=!1,Mt=!1,vt=!1,Ot=0,At=0;function Rt(){Ot>=pt||vt||xt||(vt=!0,dt.next().then(({value:Ct,done:It})=>{if(!(Mt||xt)){if(vt=!1,It){xt=!0,Ot<=0&&mt(null);return}Ot++,ht(Ct,At,zt),At++,Rt()}}).catch(Tt))}function zt(Ct,It){if(Ot-=1,!Mt){if(Ct)return Tt(Ct);if(Ct===!1){xt=!0,Mt=!0;return}if(It===nt.default||xt&&Ot<=0)return xt=!0,mt(null);Rt()}}function Tt(Ct){Mt||(vt=!1,xt=!0,mt(Ct))}Rt()}et.exports=tt.default})(asyncEachOfLimit,asyncEachOfLimit.exports);var asyncEachOfLimitExports=asyncEachOfLimit.exports;(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0});var rt=onceExports,nt=Ot(rt),lt=iteratorExports,ut=Ot(lt),dt=onlyOnceExports,pt=Ot(dt),ht=requireWrapAsync(),mt=asyncEachOfLimitExports,xt=Ot(mt),Mt=breakLoopExports,vt=Ot(Mt);function Ot(At){return At&&At.__esModule?At:{default:At}}tt.default=At=>(Rt,zt,Tt)=>{if(Tt=(0,nt.default)(Tt),At<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!Rt)return Tt(null);if((0,ht.isAsyncGenerator)(Rt))return(0,xt.default)(Rt,At,zt,Tt);if((0,ht.isAsyncIterable)(Rt))return(0,xt.default)(Rt[Symbol.asyncIterator](),At,zt,Tt);var Ct=(0,ut.default)(Rt),It=!1,Dt=!1,kt=0,qt=!1;function Nt(Kt,Jt){if(!Dt)if(kt-=1,Kt)It=!0,Tt(Kt);else if(Kt===!1)It=!0,Dt=!0;else{if(Jt===vt.default||It&&kt<=0)return It=!0,Tt(null);qt||Yt()}}function Yt(){for(qt=!0;kt<At&&!It;){var Kt=Ct();if(Kt===null){It=!0,kt<=0&&Tt(null);return}kt+=1,zt(Kt.value,Kt.key,(0,pt.default)(Nt))}qt=!1}Yt()},et.exports=tt.default})(eachOfLimit,eachOfLimit.exports);var eachOfLimitExports$1=eachOfLimit.exports;(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0});var rt=eachOfLimitExports$1,nt=ht(rt),lt=requireWrapAsync(),ut=ht(lt),dt=awaitifyExports,pt=ht(dt);function ht(xt){return xt&&xt.__esModule?xt:{default:xt}}function mt(xt,Mt,vt,Ot){return(0,nt.default)(Mt)(xt,(0,ut.default)(vt),Ot)}tt.default=(0,pt.default)(mt,4),et.exports=tt.default})(eachOfLimit$1,eachOfLimit$1.exports);var eachOfLimitExports=eachOfLimit$1.exports,hasRequiredEachOfSeries;function requireEachOfSeries(){return hasRequiredEachOfSeries||(hasRequiredEachOfSeries=1,function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0});var rt=eachOfLimitExports,nt=dt(rt),lt=awaitifyExports,ut=dt(lt);function dt(ht){return ht&&ht.__esModule?ht:{default:ht}}function pt(ht,mt,xt){return(0,nt.default)(ht,1,mt,xt)}tt.default=(0,ut.default)(pt,3),et.exports=tt.default}(eachOfSeries,eachOfSeries.exports)),eachOfSeries.exports}var hasRequiredSeries;function requireSeries(){return hasRequiredSeries||(hasRequiredSeries=1,function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=pt;var rt=requireParallel(),nt=dt(rt),lt=requireEachOfSeries(),ut=dt(lt);function dt(ht){return ht&&ht.__esModule?ht:{default:ht}}function pt(ht,mt){return(0,nt.default)(ut.default,ht,mt)}et.exports=tt.default}(series,series.exports)),series.exports}var lib$4={},_stream_transform$1=Transform$a,_require$codes$1=errorsBrowser.codes,ERR_METHOD_NOT_IMPLEMENTED=_require$codes$1.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes$1.ERR_MULTIPLE_CALLBACK,ERR_TRANSFORM_ALREADY_TRANSFORMING=_require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING,ERR_TRANSFORM_WITH_LENGTH_0=_require$codes$1.ERR_TRANSFORM_WITH_LENGTH_0,Duplex$1=require_stream_duplex$1();inherits_browserExports(Transform$a,Duplex$1);function afterTransform$1(et,tt){var rt=this._transformState;rt.transforming=!1;var nt=rt.writecb;if(nt===null)return this.emit("error",new ERR_MULTIPLE_CALLBACK);rt.writechunk=null,rt.writecb=null,tt!=null&&this.push(tt),nt(et);var lt=this._readableState;lt.reading=!1,(lt.needReadable||lt.length<lt.highWaterMark)&&this._read(lt.highWaterMark)}function Transform$a(et){if(!(this instanceof Transform$a))return new Transform$a(et);Duplex$1.call(this,et),this._transformState={afterTransform:afterTransform$1.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,et&&(typeof et.transform=="function"&&(this._transform=et.transform),typeof et.flush=="function"&&(this._flush=et.flush)),this.on("prefinish",prefinish$1)}function prefinish$1(){var et=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(tt,rt){done$1(et,tt,rt)}):done$1(this,null,null)}Transform$a.prototype.push=function(et,tt){return this._transformState.needTransform=!1,Duplex$1.prototype.push.call(this,et,tt)};Transform$a.prototype._transform=function(et,tt,rt){rt(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"))};Transform$a.prototype._write=function(et,tt,rt){var nt=this._transformState;if(nt.writecb=rt,nt.writechunk=et,nt.writeencoding=tt,!nt.transforming){var lt=this._readableState;(nt.needTransform||lt.needReadable||lt.length<lt.highWaterMark)&&this._read(lt.highWaterMark)}};Transform$a.prototype._read=function(et){var tt=this._transformState;tt.writechunk!==null&&!tt.transforming?(tt.transforming=!0,this._transform(tt.writechunk,tt.writeencoding,tt.afterTransform)):tt.needTransform=!0};Transform$a.prototype._destroy=function(et,tt){Duplex$1.prototype._destroy.call(this,et,function(rt){tt(rt)})};function done$1(et,tt,rt){if(tt)return et.emit("error",tt);if(rt!=null&&et.push(rt),et._writableState.length)throw new ERR_TRANSFORM_WITH_LENGTH_0;if(et._transformState.transforming)throw new ERR_TRANSFORM_ALREADY_TRANSFORMING;return et.push(null)}var _stream_passthrough$1=PassThrough$1,Transform$9=_stream_transform$1;inherits_browserExports(PassThrough$1,Transform$9);function PassThrough$1(et){if(!(this instanceof PassThrough$1))return new PassThrough$1(et);Transform$9.call(this,et)}PassThrough$1.prototype._transform=function(et,tt,rt){rt(null,et)};var eos;function once$3(et){var tt=!1;return function(){tt||(tt=!0,et.apply(void 0,arguments))}}var _require$codes=errorsBrowser.codes,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop$9(et){if(et)throw et}function isRequest$1(et){return et.setHeader&&typeof et.abort=="function"}function destroyer(et,tt,rt,nt){nt=once$3(nt);var lt=!1;et.on("close",function(){lt=!0}),eos===void 0&&(eos=endOfStream),eos(et,{readable:tt,writable:rt},function(dt){if(dt)return nt(dt);lt=!0,nt()});var ut=!1;return function(dt){if(!lt&&!ut){if(ut=!0,isRequest$1(et))return et.abort();if(typeof et.destroy=="function")return et.destroy();nt(dt||new ERR_STREAM_DESTROYED("pipe"))}}}function call$1(et){et()}function pipe(et,tt){return et.pipe(tt)}function popCallback(et){return!et.length||typeof et[et.length-1]!="function"?noop$9:et.pop()}function pipeline(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];var nt=popCallback(tt);if(Array.isArray(tt[0])&&(tt=tt[0]),tt.length<2)throw new ERR_MISSING_ARGS("streams");var lt,ut=tt.map(function(dt,pt){var ht=pt<tt.length-1,mt=pt>0;return destroyer(dt,ht,mt,function(xt){lt||(lt=xt),xt&&ut.forEach(call$1),!ht&&(ut.forEach(call$1),nt(lt))})});return tt.reduce(pipe)}var pipeline_1=pipeline,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$s=inherits_browserExports;inherits$s(Stream,EE);Stream.Readable=require_stream_readable$1();Stream.Writable=require_stream_writable$1();Stream.Duplex=require_stream_duplex$1();Stream.Transform=_stream_transform$1;Stream.PassThrough=_stream_passthrough$1;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(et,tt){var rt=this;function nt(xt){et.writable&&et.write(xt)===!1&&rt.pause&&rt.pause()}rt.on("data",nt);function lt(){rt.readable&&rt.resume&&rt.resume()}et.on("drain",lt),!et._isStdio&&(!tt||tt.end!==!1)&&(rt.on("end",dt),rt.on("close",pt));var ut=!1;function dt(){ut||(ut=!0,et.end())}function pt(){ut||(ut=!0,typeof et.destroy=="function"&&et.destroy())}function ht(xt){if(mt(),EE.listenerCount(this,"error")===0)throw xt}rt.on("error",ht),et.on("error",ht);function mt(){rt.removeListener("data",nt),et.removeListener("drain",lt),rt.removeListener("end",dt),rt.removeListener("close",pt),rt.removeListener("error",ht),et.removeListener("error",ht),rt.removeListener("end",mt),rt.removeListener("close",mt),et.removeListener("close",mt)}return rt.on("end",mt),rt.on("close",mt),et.on("close",mt),et.emit("pipe",rt),et};var binding={},assert$j={exports:{}},errors={},hasRequiredErrors;function requireErrors(){if(hasRequiredErrors)return errors;hasRequiredErrors=1;function et(Ct){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It},et(Ct)}function tt(Ct,It,Dt){return Object.defineProperty(Ct,"prototype",{writable:!1}),Ct}function rt(Ct,It){if(!(Ct instanceof It))throw new TypeError("Cannot call a class as a function")}function nt(Ct,It){if(typeof It!="function"&&It!==null)throw new TypeError("Super expression must either be null or a function");Ct.prototype=Object.create(It&&It.prototype,{constructor:{value:Ct,writable:!0,configurable:!0}}),Object.defineProperty(Ct,"prototype",{writable:!1}),It&&lt(Ct,It)}function lt(Ct,It){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(kt,qt){return kt.__proto__=qt,kt},lt(Ct,It)}function ut(Ct){var It=ht();return function(){var kt=mt(Ct),qt;if(It){var Nt=mt(this).constructor;qt=Reflect.construct(kt,arguments,Nt)}else qt=kt.apply(this,arguments);return dt(this,qt)}}function dt(Ct,It){if(It&&(et(It)==="object"||typeof It=="function"))return It;if(It!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pt(Ct)}function pt(Ct){if(Ct===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ct}function ht(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mt(Ct){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Dt){return Dt.__proto__||Object.getPrototypeOf(Dt)},mt(Ct)}var xt={},Mt,vt;function Ot(Ct,It,Dt){Dt||(Dt=Error);function kt(Nt,Yt,Kt){return typeof It=="string"?It:It(Nt,Yt,Kt)}var qt=function(Nt){nt(Kt,Nt);var Yt=ut(Kt);function Kt(Jt,Qt,Bt){var Ft;return rt(this,Kt),Ft=Yt.call(this,kt(Jt,Qt,Bt)),Ft.code=Ct,Ft}return tt(Kt)}(Dt);xt[Ct]=qt}function At(Ct,It){if(Array.isArray(Ct)){var Dt=Ct.length;return Ct=Ct.map(function(kt){return String(kt)}),Dt>2?"one of ".concat(It," ").concat(Ct.slice(0,Dt-1).join(", "),", or ")+Ct[Dt-1]:Dt===2?"one of ".concat(It," ").concat(Ct[0]," or ").concat(Ct[1]):"of ".concat(It," ").concat(Ct[0])}else return"of ".concat(It," ").concat(String(Ct))}function Rt(Ct,It,Dt){return Ct.substr(0,It.length)===It}function zt(Ct,It,Dt){return(Dt===void 0||Dt>Ct.length)&&(Dt=Ct.length),Ct.substring(Dt-It.length,Dt)===It}function Tt(Ct,It,Dt){return typeof Dt!="number"&&(Dt=0),Dt+It.length>Ct.length?!1:Ct.indexOf(It,Dt)!==-1}return Ot("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),Ot("ERR_INVALID_ARG_TYPE",function(Ct,It,Dt){Mt===void 0&&(Mt=requireAssert()),Mt(typeof Ct=="string","'name' must be a string");var kt;typeof It=="string"&&Rt(It,"not ")?(kt="must not be",It=It.replace(/^not /,"")):kt="must be";var qt;if(zt(Ct," argument"))qt="The ".concat(Ct," ").concat(kt," ").concat(At(It,"type"));else{var Nt=Tt(Ct,".")?"property":"argument";qt='The "'.concat(Ct,'" ').concat(Nt," ").concat(kt," ").concat(At(It,"type"))}return qt+=". Received type ".concat(et(Dt)),qt},TypeError),Ot("ERR_INVALID_ARG_VALUE",function(Ct,It){var Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";vt===void 0&&(vt=util$a);var kt=vt.inspect(It);return kt.length>128&&(kt="".concat(kt.slice(0,128),"...")),"The argument '".concat(Ct,"' ").concat(Dt,". Received ").concat(kt)},TypeError),Ot("ERR_INVALID_RETURN_VALUE",function(Ct,It,Dt){var kt;return Dt&&Dt.constructor&&Dt.constructor.name?kt="instance of ".concat(Dt.constructor.name):kt="type ".concat(et(Dt)),"Expected ".concat(Ct,' to be returned from the "').concat(It,'"')+" function but got ".concat(kt,".")},TypeError),Ot("ERR_MISSING_ARGS",function(){for(var Ct=arguments.length,It=new Array(Ct),Dt=0;Dt<Ct;Dt++)It[Dt]=arguments[Dt];Mt===void 0&&(Mt=requireAssert()),Mt(It.length>0,"At least one arg needs to be specified");var kt="The ",qt=It.length;switch(It=It.map(function(Nt){return'"'.concat(Nt,'"')}),qt){case 1:kt+="".concat(It[0]," argument");break;case 2:kt+="".concat(It[0]," and ").concat(It[1]," arguments");break;default:kt+=It.slice(0,qt-1).join(", "),kt+=", and ".concat(It[qt-1]," arguments");break}return"".concat(kt," must be specified")},TypeError),errors.codes=xt,errors}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function et(Ht,Gt){var Zt=Object.keys(Ht);if(Object.getOwnPropertySymbols){var Xt=Object.getOwnPropertySymbols(Ht);Gt&&(Xt=Xt.filter(function(er){return Object.getOwnPropertyDescriptor(Ht,er).enumerable})),Zt.push.apply(Zt,Xt)}return Zt}function tt(Ht){for(var Gt=1;Gt<arguments.length;Gt++){var Zt=arguments[Gt]!=null?arguments[Gt]:{};Gt%2?et(Object(Zt),!0).forEach(function(Xt){rt(Ht,Xt,Zt[Xt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ht,Object.getOwnPropertyDescriptors(Zt)):et(Object(Zt)).forEach(function(Xt){Object.defineProperty(Ht,Xt,Object.getOwnPropertyDescriptor(Zt,Xt))})}return Ht}function rt(Ht,Gt,Zt){return Gt=dt(Gt),Gt in Ht?Object.defineProperty(Ht,Gt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):Ht[Gt]=Zt,Ht}function nt(Ht,Gt){if(!(Ht instanceof Gt))throw new TypeError("Cannot call a class as a function")}function lt(Ht,Gt){for(var Zt=0;Zt<Gt.length;Zt++){var Xt=Gt[Zt];Xt.enumerable=Xt.enumerable||!1,Xt.configurable=!0,"value"in Xt&&(Xt.writable=!0),Object.defineProperty(Ht,dt(Xt.key),Xt)}}function ut(Ht,Gt,Zt){return Gt&&lt(Ht.prototype,Gt),Object.defineProperty(Ht,"prototype",{writable:!1}),Ht}function dt(Ht){var Gt=pt(Ht,"string");return Ct(Gt)==="symbol"?Gt:String(Gt)}function pt(Ht,Gt){if(Ct(Ht)!=="object"||Ht===null)return Ht;var Zt=Ht[Symbol.toPrimitive];if(Zt!==void 0){var Xt=Zt.call(Ht,Gt||"default");if(Ct(Xt)!=="object")return Xt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Gt==="string"?String:Number)(Ht)}function ht(Ht,Gt){if(typeof Gt!="function"&&Gt!==null)throw new TypeError("Super expression must either be null or a function");Ht.prototype=Object.create(Gt&&Gt.prototype,{constructor:{value:Ht,writable:!0,configurable:!0}}),Object.defineProperty(Ht,"prototype",{writable:!1}),Gt&&zt(Ht,Gt)}function mt(Ht){var Gt=At();return function(){var Xt=Tt(Ht),er;if(Gt){var nr=Tt(this).constructor;er=Reflect.construct(Xt,arguments,nr)}else er=Xt.apply(this,arguments);return xt(this,er)}}function xt(Ht,Gt){if(Gt&&(Ct(Gt)==="object"||typeof Gt=="function"))return Gt;if(Gt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mt(Ht)}function Mt(Ht){if(Ht===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht}function vt(Ht){var Gt=typeof Map=="function"?new Map:void 0;return vt=function(Xt){if(Xt===null||!Rt(Xt))return Xt;if(typeof Xt!="function")throw new TypeError("Super expression must either be null or a function");if(typeof Gt<"u"){if(Gt.has(Xt))return Gt.get(Xt);Gt.set(Xt,er)}function er(){return Ot(Xt,arguments,Tt(this).constructor)}return er.prototype=Object.create(Xt.prototype,{constructor:{value:er,enumerable:!1,writable:!0,configurable:!0}}),zt(er,Xt)},vt(Ht)}function Ot(Ht,Gt,Zt){return At()?Ot=Reflect.construct.bind():Ot=function(er,nr,or){var rr=[null];rr.push.apply(rr,nr);var cr=Function.bind.apply(er,rr),ir=new cr;return or&&zt(ir,or.prototype),ir},Ot.apply(null,arguments)}function At(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rt(Ht){return Function.toString.call(Ht).indexOf("[native code]")!==-1}function zt(Ht,Gt){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Xt,er){return Xt.__proto__=er,Xt},zt(Ht,Gt)}function Tt(Ht){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Zt){return Zt.__proto__||Object.getPrototypeOf(Zt)},Tt(Ht)}function Ct(Ht){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Gt){return typeof Gt}:function(Gt){return Gt&&typeof Symbol=="function"&&Gt.constructor===Symbol&&Gt!==Symbol.prototype?"symbol":typeof Gt},Ct(Ht)}var It=util$a,Dt=It.inspect,kt=requireErrors(),qt=kt.codes.ERR_INVALID_ARG_TYPE;function Nt(Ht,Gt,Zt){return(Zt===void 0||Zt>Ht.length)&&(Zt=Ht.length),Ht.substring(Zt-Gt.length,Zt)===Gt}function Yt(Ht,Gt){if(Gt=Math.floor(Gt),Ht.length==0||Gt==0)return"";var Zt=Ht.length*Gt;for(Gt=Math.floor(Math.log(Gt)/Math.log(2));Gt;)Ht+=Ht,Gt--;return Ht+=Ht.substring(0,Zt-Ht.length),Ht}var Kt="",Jt="",Qt="",Bt="",Ft={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},$t=10;function jt(Ht){var Gt=Object.keys(Ht),Zt=Object.create(Object.getPrototypeOf(Ht));return Gt.forEach(function(Xt){Zt[Xt]=Ht[Xt]}),Object.defineProperty(Zt,"message",{value:Ht.message}),Zt}function Wt(Ht){return Dt(Ht,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ut(Ht,Gt,Zt){var Xt="",er="",nr=0,or="",rr=!1,cr=Wt(Ht),ir=cr.split(`
`),dr=Wt(Gt).split(`
`),gr=0,br="";if(Zt==="strictEqual"&&Ct(Ht)==="object"&&Ct(Gt)==="object"&&Ht!==null&&Gt!==null&&(Zt="strictEqualObject"),ir.length===1&&dr.length===1&&ir[0]!==dr[0]){var ar=ir[0].length+dr[0].length;if(ar<=$t){if((Ct(Ht)!=="object"||Ht===null)&&(Ct(Gt)!=="object"||Gt===null)&&(Ht!==0||Gt!==0))return"".concat(Ft[Zt],`

`)+"".concat(ir[0]," !== ").concat(dr[0],`
`)}else if(Zt!=="strictEqualObject"){var ur=process$1$1.stderr&&process$1$1.stderr.isTTY?process$1$1.stderr.columns:80;if(ar<ur){for(;ir[0][gr]===dr[0][gr];)gr++;gr>2&&(br=`
  `.concat(Yt(" ",gr),"^"),gr=0)}}}for(var xr=ir[ir.length-1],Mr=dr[dr.length-1];xr===Mr&&(gr++<2?or=`
  `.concat(xr).concat(or):Xt=xr,ir.pop(),dr.pop(),!(ir.length===0||dr.length===0));)xr=ir[ir.length-1],Mr=dr[dr.length-1];var Ar=Math.max(ir.length,dr.length);if(Ar===0){var Ir=cr.split(`
`);if(Ir.length>30)for(Ir[26]="".concat(Kt,"...").concat(Bt);Ir.length>27;)Ir.pop();return"".concat(Ft.notIdentical,`

`).concat(Ir.join(`
`),`
`)}gr>3&&(or=`
`.concat(Kt,"...").concat(Bt).concat(or),rr=!0),Xt!==""&&(or=`
  `.concat(Xt).concat(or),Xt="");var Rr=0,wr=Ft[Zt]+`
`.concat(Jt,"+ actual").concat(Bt," ").concat(Qt,"- expected").concat(Bt),qr=" ".concat(Kt,"...").concat(Bt," Lines skipped");for(gr=0;gr<Ar;gr++){var Hr=gr-nr;if(ir.length<gr+1)Hr>1&&gr>2&&(Hr>4?(er+=`
`.concat(Kt,"...").concat(Bt),rr=!0):Hr>3&&(er+=`
  `.concat(dr[gr-2]),Rr++),er+=`
  `.concat(dr[gr-1]),Rr++),nr=gr,Xt+=`
`.concat(Qt,"-").concat(Bt," ").concat(dr[gr]),Rr++;else if(dr.length<gr+1)Hr>1&&gr>2&&(Hr>4?(er+=`
`.concat(Kt,"...").concat(Bt),rr=!0):Hr>3&&(er+=`
  `.concat(ir[gr-2]),Rr++),er+=`
  `.concat(ir[gr-1]),Rr++),nr=gr,er+=`
`.concat(Jt,"+").concat(Bt," ").concat(ir[gr]),Rr++;else{var kr=dr[gr],$r=ir[gr],yr=$r!==kr&&(!Nt($r,",")||$r.slice(0,-1)!==kr);yr&&Nt(kr,",")&&kr.slice(0,-1)===$r&&(yr=!1,$r+=","),yr?(Hr>1&&gr>2&&(Hr>4?(er+=`
`.concat(Kt,"...").concat(Bt),rr=!0):Hr>3&&(er+=`
  `.concat(ir[gr-2]),Rr++),er+=`
  `.concat(ir[gr-1]),Rr++),nr=gr,er+=`
`.concat(Jt,"+").concat(Bt," ").concat($r),Xt+=`
`.concat(Qt,"-").concat(Bt," ").concat(kr),Rr+=2):(er+=Xt,Xt="",(Hr===1||gr===0)&&(er+=`
  `.concat($r),Rr++))}if(Rr>20&&gr<Ar-2)return"".concat(wr).concat(qr,`
`).concat(er,`
`).concat(Kt,"...").concat(Bt).concat(Xt,`
`)+"".concat(Kt,"...").concat(Bt)}return"".concat(wr).concat(rr?qr:"",`
`).concat(er).concat(Xt).concat(or).concat(br)}var Vt=function(Ht,Gt){ht(Xt,Ht);var Zt=mt(Xt);function Xt(er){var nr;if(nt(this,Xt),Ct(er)!=="object"||er===null)throw new qt("options","Object",er);var or=er.message,rr=er.operator,cr=er.stackStartFn,ir=er.actual,dr=er.expected,gr=Error.stackTraceLimit;if(Error.stackTraceLimit=0,or!=null)nr=Zt.call(this,String(or));else if(process$1$1.stderr&&process$1$1.stderr.isTTY&&(process$1$1.stderr&&process$1$1.stderr.getColorDepth&&process$1$1.stderr.getColorDepth()!==1?(Kt="\x1B[34m",Jt="\x1B[32m",Bt="\x1B[39m",Qt="\x1B[31m"):(Kt="",Jt="",Bt="",Qt="")),Ct(ir)==="object"&&ir!==null&&Ct(dr)==="object"&&dr!==null&&"stack"in ir&&ir instanceof Error&&"stack"in dr&&dr instanceof Error&&(ir=jt(ir),dr=jt(dr)),rr==="deepStrictEqual"||rr==="strictEqual")nr=Zt.call(this,Ut(ir,dr,rr));else if(rr==="notDeepStrictEqual"||rr==="notStrictEqual"){var br=Ft[rr],ar=Wt(ir).split(`
`);if(rr==="notStrictEqual"&&Ct(ir)==="object"&&ir!==null&&(br=Ft.notStrictEqualObject),ar.length>30)for(ar[26]="".concat(Kt,"...").concat(Bt);ar.length>27;)ar.pop();ar.length===1?nr=Zt.call(this,"".concat(br," ").concat(ar[0])):nr=Zt.call(this,"".concat(br,`

`).concat(ar.join(`
`),`
`))}else{var ur=Wt(ir),xr="",Mr=Ft[rr];rr==="notDeepEqual"||rr==="notEqual"?(ur="".concat(Ft[rr],`

`).concat(ur),ur.length>1024&&(ur="".concat(ur.slice(0,1021),"..."))):(xr="".concat(Wt(dr)),ur.length>512&&(ur="".concat(ur.slice(0,509),"...")),xr.length>512&&(xr="".concat(xr.slice(0,509),"...")),rr==="deepEqual"||rr==="equal"?ur="".concat(Mr,`

`).concat(ur,`

should equal

`):xr=" ".concat(rr," ").concat(xr)),nr=Zt.call(this,"".concat(ur).concat(xr))}return Error.stackTraceLimit=gr,nr.generatedMessage=!or,Object.defineProperty(Mt(nr),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),nr.code="ERR_ASSERTION",nr.actual=ir,nr.expected=dr,nr.operator=rr,Error.captureStackTrace&&Error.captureStackTrace(Mt(nr),cr),nr.stack,nr.name="AssertionError",xt(nr)}return ut(Xt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:Gt,value:function(nr,or){return Dt(this,tt(tt({},or),{},{customInspect:!1,depth:0}))}}]),Xt}(vt(Error),Dt.custom);return assertion_error=Vt,assertion_error}var isArguments$5,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments$5;hasRequiredIsArguments=1;var et=Object.prototype.toString;return isArguments$5=function(rt){var nt=et.call(rt),lt=nt==="[object Arguments]";return lt||(lt=nt!=="[object Array]"&&rt!==null&&typeof rt=="object"&&typeof rt.length=="number"&&rt.length>=0&&et.call(rt.callee)==="[object Function]"),lt},isArguments$5}var implementation$3,hasRequiredImplementation$3;function requireImplementation$3(){if(hasRequiredImplementation$3)return implementation$3;hasRequiredImplementation$3=1;var et;if(!Object.keys){var tt=Object.prototype.hasOwnProperty,rt=Object.prototype.toString,nt=requireIsArguments(),lt=Object.prototype.propertyIsEnumerable,ut=!lt.call({toString:null},"toString"),dt=lt.call(function(){},"prototype"),pt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ht=function(vt){var Ot=vt.constructor;return Ot&&Ot.prototype===vt},mt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},xt=function(){if(typeof window>"u")return!1;for(var vt in window)try{if(!mt["$"+vt]&&tt.call(window,vt)&&window[vt]!==null&&typeof window[vt]=="object")try{ht(window[vt])}catch{return!0}}catch{return!0}return!1}(),Mt=function(vt){if(typeof window>"u"||!xt)return ht(vt);try{return ht(vt)}catch{return!1}};et=function(Ot){var At=Ot!==null&&typeof Ot=="object",Rt=rt.call(Ot)==="[object Function]",zt=nt(Ot),Tt=At&&rt.call(Ot)==="[object String]",Ct=[];if(!At&&!Rt&&!zt)throw new TypeError("Object.keys called on a non-object");var It=dt&&Rt;if(Tt&&Ot.length>0&&!tt.call(Ot,0))for(var Dt=0;Dt<Ot.length;++Dt)Ct.push(String(Dt));if(zt&&Ot.length>0)for(var kt=0;kt<Ot.length;++kt)Ct.push(String(kt));else for(var qt in Ot)!(It&&qt==="prototype")&&tt.call(Ot,qt)&&Ct.push(String(qt));if(ut)for(var Nt=Mt(Ot),Yt=0;Yt<pt.length;++Yt)!(Nt&&pt[Yt]==="constructor")&&tt.call(Ot,pt[Yt])&&Ct.push(pt[Yt]);return Ct}}return implementation$3=et,implementation$3}var objectKeys,hasRequiredObjectKeys;function requireObjectKeys(){if(hasRequiredObjectKeys)return objectKeys;hasRequiredObjectKeys=1;var et=Array.prototype.slice,tt=requireIsArguments(),rt=Object.keys,nt=rt?function(dt){return rt(dt)}:requireImplementation$3(),lt=Object.keys;return nt.shim=function(){if(Object.keys){var dt=function(){var pt=Object.keys(arguments);return pt&&pt.length===arguments.length}(1,2);dt||(Object.keys=function(ht){return tt(ht)?lt(et.call(ht)):lt(ht)})}else Object.keys=nt;return Object.keys||nt},objectKeys=nt,objectKeys}var implementation$2,hasRequiredImplementation$2;function requireImplementation$2(){if(hasRequiredImplementation$2)return implementation$2;hasRequiredImplementation$2=1;var et=requireObjectKeys(),tt=shams$1(),rt=callBound$3,nt=Object,lt=rt("Array.prototype.push"),ut=rt("Object.prototype.propertyIsEnumerable"),dt=tt?Object.getOwnPropertySymbols:null;return implementation$2=function(ht,mt){if(ht==null)throw new TypeError("target must be an object");var xt=nt(ht);if(arguments.length===1)return xt;for(var Mt=1;Mt<arguments.length;++Mt){var vt=nt(arguments[Mt]),Ot=et(vt),At=tt&&(Object.getOwnPropertySymbols||dt);if(At)for(var Rt=At(vt),zt=0;zt<Rt.length;++zt){var Tt=Rt[zt];ut(vt,Tt)&&lt(Ot,Tt)}for(var Ct=0;Ct<Ot.length;++Ct){var It=Ot[Ct];if(ut(vt,It)){var Dt=vt[It];xt[It]=Dt}}}return xt},implementation$2}var polyfill$2,hasRequiredPolyfill$2;function requirePolyfill$2(){if(hasRequiredPolyfill$2)return polyfill$2;hasRequiredPolyfill$2=1;var et=requireImplementation$2(),tt=function(){if(!Object.assign)return!1;for(var nt="abcdefghijklmnopqrst",lt=nt.split(""),ut={},dt=0;dt<lt.length;++dt)ut[lt[dt]]=lt[dt];var pt=Object.assign({},ut),ht="";for(var mt in pt)ht+=mt;return nt!==ht},rt=function(){if(!Object.assign||!Object.preventExtensions)return!1;var nt=Object.preventExtensions({1:2});try{Object.assign(nt,"xy")}catch{return nt[1]==="y"}return!1};return polyfill$2=function(){return!Object.assign||tt()||rt()?et:Object.assign},polyfill$2}var implementation$1,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$1;hasRequiredImplementation$1=1;var et=function(tt){return tt!==tt};return implementation$1=function(rt,nt){return rt===0&&nt===0?1/rt===1/nt:!!(rt===nt||et(rt)&&et(nt))},implementation$1}var polyfill$1,hasRequiredPolyfill$1;function requirePolyfill$1(){if(hasRequiredPolyfill$1)return polyfill$1;hasRequiredPolyfill$1=1;var et=requireImplementation$1();return polyfill$1=function(){return typeof Object.is=="function"?Object.is:et},polyfill$1}var defineProperties_1,hasRequiredDefineProperties;function requireDefineProperties(){if(hasRequiredDefineProperties)return defineProperties_1;hasRequiredDefineProperties=1;var et=requireObjectKeys(),tt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",rt=Object.prototype.toString,nt=Array.prototype.concat,lt=defineDataProperty,ut=function(mt){return typeof mt=="function"&&rt.call(mt)==="[object Function]"},dt=hasPropertyDescriptors_1(),pt=function(mt,xt,Mt,vt){if(xt in mt){if(vt===!0){if(mt[xt]===Mt)return}else if(!ut(vt)||!vt())return}dt?lt(mt,xt,Mt,!0):lt(mt,xt,Mt)},ht=function(mt,xt){var Mt=arguments.length>2?arguments[2]:{},vt=et(xt);tt&&(vt=nt.call(vt,Object.getOwnPropertySymbols(xt)));for(var Ot=0;Ot<vt.length;Ot+=1)pt(mt,vt[Ot],xt[vt[Ot]],Mt[vt[Ot]])};return ht.supportsDescriptors=!!dt,defineProperties_1=ht,defineProperties_1}var shim$1,hasRequiredShim$1;function requireShim$1(){if(hasRequiredShim$1)return shim$1;hasRequiredShim$1=1;var et=requirePolyfill$1(),tt=requireDefineProperties();return shim$1=function(){var nt=et();return tt(Object,{is:nt},{is:function(){return Object.is!==nt}}),nt},shim$1}var objectIs,hasRequiredObjectIs;function requireObjectIs(){if(hasRequiredObjectIs)return objectIs;hasRequiredObjectIs=1;var et=requireDefineProperties(),tt=callBindExports,rt=requireImplementation$1(),nt=requirePolyfill$1(),lt=requireShim$1(),ut=tt(nt(),Object);return et(ut,{getPolyfill:nt,implementation:rt,shim:lt}),objectIs=ut,objectIs}var implementation,hasRequiredImplementation;function requireImplementation(){return hasRequiredImplementation||(hasRequiredImplementation=1,implementation=function(tt){return tt!==tt}),implementation}var polyfill,hasRequiredPolyfill;function requirePolyfill(){if(hasRequiredPolyfill)return polyfill;hasRequiredPolyfill=1;var et=requireImplementation();return polyfill=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:et},polyfill}var shim,hasRequiredShim;function requireShim(){if(hasRequiredShim)return shim;hasRequiredShim=1;var et=requireDefineProperties(),tt=requirePolyfill();return shim=function(){var nt=tt();return et(Number,{isNaN:nt},{isNaN:function(){return Number.isNaN!==nt}}),nt},shim}var isNan,hasRequiredIsNan;function requireIsNan(){if(hasRequiredIsNan)return isNan;hasRequiredIsNan=1;var et=callBindExports,tt=requireDefineProperties(),rt=requireImplementation(),nt=requirePolyfill(),lt=requireShim(),ut=et(nt(),Number);return tt(ut,{getPolyfill:nt,implementation:rt,shim:lt}),isNan=ut,isNan}var comparisons,hasRequiredComparisons;function requireComparisons(){if(hasRequiredComparisons)return comparisons;hasRequiredComparisons=1;function et(yr,Or){return ut(yr)||lt(yr,Or)||rt(yr,Or)||tt()}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rt(yr,Or){if(yr){if(typeof yr=="string")return nt(yr,Or);var Dr=Object.prototype.toString.call(yr).slice(8,-1);if(Dr==="Object"&&yr.constructor&&(Dr=yr.constructor.name),Dr==="Map"||Dr==="Set")return Array.from(yr);if(Dr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dr))return nt(yr,Or)}}function nt(yr,Or){(Or==null||Or>yr.length)&&(Or=yr.length);for(var Dr=0,Fr=new Array(Or);Dr<Or;Dr++)Fr[Dr]=yr[Dr];return Fr}function lt(yr,Or){var Dr=yr==null?null:typeof Symbol<"u"&&yr[Symbol.iterator]||yr["@@iterator"];if(Dr!=null){var Fr,Yr,Gr,Jr,jr=[],Zr=!0,Xr=!1;try{if(Gr=(Dr=Dr.call(yr)).next,Or!==0)for(;!(Zr=(Fr=Gr.call(Dr)).done)&&(jr.push(Fr.value),jr.length!==Or);Zr=!0);}catch(cn){Xr=!0,Yr=cn}finally{try{if(!Zr&&Dr.return!=null&&(Jr=Dr.return(),Object(Jr)!==Jr))return}finally{if(Xr)throw Yr}}return jr}}function ut(yr){if(Array.isArray(yr))return yr}function dt(yr){"@babel/helpers - typeof";return dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Or){return typeof Or}:function(Or){return Or&&typeof Symbol=="function"&&Or.constructor===Symbol&&Or!==Symbol.prototype?"symbol":typeof Or},dt(yr)}var pt=/a/g.flags!==void 0,ht=function(Or){var Dr=[];return Or.forEach(function(Fr){return Dr.push(Fr)}),Dr},mt=function(Or){var Dr=[];return Or.forEach(function(Fr,Yr){return Dr.push([Yr,Fr])}),Dr},xt=Object.is?Object.is:requireObjectIs(),Mt=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},vt=Number.isNaN?Number.isNaN:requireIsNan();function Ot(yr){return yr.call.bind(yr)}var At=Ot(Object.prototype.hasOwnProperty),Rt=Ot(Object.prototype.propertyIsEnumerable),zt=Ot(Object.prototype.toString),Tt=util$a.types,Ct=Tt.isAnyArrayBuffer,It=Tt.isArrayBufferView,Dt=Tt.isDate,kt=Tt.isMap,qt=Tt.isRegExp,Nt=Tt.isSet,Yt=Tt.isNativeError,Kt=Tt.isBoxedPrimitive,Jt=Tt.isNumberObject,Qt=Tt.isStringObject,Bt=Tt.isBooleanObject,Ft=Tt.isBigIntObject,$t=Tt.isSymbolObject,jt=Tt.isFloat32Array,Wt=Tt.isFloat64Array;function Ut(yr){if(yr.length===0||yr.length>10)return!0;for(var Or=0;Or<yr.length;Or++){var Dr=yr.charCodeAt(Or);if(Dr<48||Dr>57)return!0}return yr.length===10&&yr>=Math.pow(2,32)}function Vt(yr){return Object.keys(yr).filter(Ut).concat(Mt(yr).filter(Object.prototype.propertyIsEnumerable.bind(yr)))}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function Ht(yr,Or){if(yr===Or)return 0;for(var Dr=yr.length,Fr=Or.length,Yr=0,Gr=Math.min(Dr,Fr);Yr<Gr;++Yr)if(yr[Yr]!==Or[Yr]){Dr=yr[Yr],Fr=Or[Yr];break}return Dr<Fr?-1:Fr<Dr?1:0}var Gt=!0,Zt=!1,Xt=0,er=1,nr=2,or=3;function rr(yr,Or){return pt?yr.source===Or.source&&yr.flags===Or.flags:RegExp.prototype.toString.call(yr)===RegExp.prototype.toString.call(Or)}function cr(yr,Or){if(yr.byteLength!==Or.byteLength)return!1;for(var Dr=0;Dr<yr.byteLength;Dr++)if(yr[Dr]!==Or[Dr])return!1;return!0}function ir(yr,Or){return yr.byteLength!==Or.byteLength?!1:Ht(new Uint8Array(yr.buffer,yr.byteOffset,yr.byteLength),new Uint8Array(Or.buffer,Or.byteOffset,Or.byteLength))===0}function dr(yr,Or){return yr.byteLength===Or.byteLength&&Ht(new Uint8Array(yr),new Uint8Array(Or))===0}function gr(yr,Or){return Jt(yr)?Jt(Or)&&xt(Number.prototype.valueOf.call(yr),Number.prototype.valueOf.call(Or)):Qt(yr)?Qt(Or)&&String.prototype.valueOf.call(yr)===String.prototype.valueOf.call(Or):Bt(yr)?Bt(Or)&&Boolean.prototype.valueOf.call(yr)===Boolean.prototype.valueOf.call(Or):Ft(yr)?Ft(Or)&&BigInt.prototype.valueOf.call(yr)===BigInt.prototype.valueOf.call(Or):$t(Or)&&Symbol.prototype.valueOf.call(yr)===Symbol.prototype.valueOf.call(Or)}function br(yr,Or,Dr,Fr){if(yr===Or)return yr!==0?!0:Dr?xt(yr,Or):!0;if(Dr){if(dt(yr)!=="object")return typeof yr=="number"&&vt(yr)&&vt(Or);if(dt(Or)!=="object"||yr===null||Or===null||Object.getPrototypeOf(yr)!==Object.getPrototypeOf(Or))return!1}else{if(yr===null||dt(yr)!=="object")return Or===null||dt(Or)!=="object"?yr==Or:!1;if(Or===null||dt(Or)!=="object")return!1}var Yr=zt(yr),Gr=zt(Or);if(Yr!==Gr)return!1;if(Array.isArray(yr)){if(yr.length!==Or.length)return!1;var Jr=Vt(yr),jr=Vt(Or);return Jr.length!==jr.length?!1:ur(yr,Or,Dr,Fr,er,Jr)}if(Yr==="[object Object]"&&(!kt(yr)&&kt(Or)||!Nt(yr)&&Nt(Or)))return!1;if(Dt(yr)){if(!Dt(Or)||Date.prototype.getTime.call(yr)!==Date.prototype.getTime.call(Or))return!1}else if(qt(yr)){if(!qt(Or)||!rr(yr,Or))return!1}else if(Yt(yr)||yr instanceof Error){if(yr.message!==Or.message||yr.name!==Or.name)return!1}else if(It(yr)){if(!Dr&&(jt(yr)||Wt(yr))){if(!cr(yr,Or))return!1}else if(!ir(yr,Or))return!1;var Zr=Vt(yr),Xr=Vt(Or);return Zr.length!==Xr.length?!1:ur(yr,Or,Dr,Fr,Xt,Zr)}else{if(Nt(yr))return!Nt(Or)||yr.size!==Or.size?!1:ur(yr,Or,Dr,Fr,nr);if(kt(yr))return!kt(Or)||yr.size!==Or.size?!1:ur(yr,Or,Dr,Fr,or);if(Ct(yr)){if(!dr(yr,Or))return!1}else if(Kt(yr)&&!gr(yr,Or))return!1}return ur(yr,Or,Dr,Fr,Xt)}function ar(yr,Or){return Or.filter(function(Dr){return Rt(yr,Dr)})}function ur(yr,Or,Dr,Fr,Yr,Gr){if(arguments.length===5){Gr=Object.keys(yr);var Jr=Object.keys(Or);if(Gr.length!==Jr.length)return!1}for(var jr=0;jr<Gr.length;jr++)if(!At(Or,Gr[jr]))return!1;if(Dr&&arguments.length===5){var Zr=Mt(yr);if(Zr.length!==0){var Xr=0;for(jr=0;jr<Zr.length;jr++){var cn=Zr[jr];if(Rt(yr,cn)){if(!Rt(Or,cn))return!1;Gr.push(cn),Xr++}else if(Rt(Or,cn))return!1}var Qr=Mt(Or);if(Zr.length!==Qr.length&&ar(Or,Qr).length!==Xr)return!1}else{var rn=Mt(Or);if(rn.length!==0&&ar(Or,rn).length!==0)return!1}}if(Gr.length===0&&(Yr===Xt||Yr===er&&yr.length===0||yr.size===0))return!0;if(Fr===void 0)Fr={val1:new Map,val2:new Map,position:0};else{var _r=Fr.val1.get(yr);if(_r!==void 0){var ln=Fr.val2.get(Or);if(ln!==void 0)return _r===ln}Fr.position++}Fr.val1.set(yr,Fr.position),Fr.val2.set(Or,Fr.position);var vn=Hr(yr,Or,Dr,Gr,Fr,Yr);return Fr.val1.delete(yr),Fr.val2.delete(Or),vn}function xr(yr,Or,Dr,Fr){for(var Yr=ht(yr),Gr=0;Gr<Yr.length;Gr++){var Jr=Yr[Gr];if(br(Or,Jr,Dr,Fr))return yr.delete(Jr),!0}return!1}function Mr(yr){switch(dt(yr)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":yr=+yr;case"number":if(vt(yr))return!1}return!0}function Ar(yr,Or,Dr){var Fr=Mr(Dr);return Fr??(Or.has(Fr)&&!yr.has(Fr))}function Ir(yr,Or,Dr,Fr,Yr){var Gr=Mr(Dr);if(Gr!=null)return Gr;var Jr=Or.get(Gr);return Jr===void 0&&!Or.has(Gr)||!br(Fr,Jr,!1,Yr)?!1:!yr.has(Gr)&&br(Fr,Jr,!1,Yr)}function Rr(yr,Or,Dr,Fr){for(var Yr=null,Gr=ht(yr),Jr=0;Jr<Gr.length;Jr++){var jr=Gr[Jr];if(dt(jr)==="object"&&jr!==null)Yr===null&&(Yr=new Set),Yr.add(jr);else if(!Or.has(jr)){if(Dr||!Ar(yr,Or,jr))return!1;Yr===null&&(Yr=new Set),Yr.add(jr)}}if(Yr!==null){for(var Zr=ht(Or),Xr=0;Xr<Zr.length;Xr++){var cn=Zr[Xr];if(dt(cn)==="object"&&cn!==null){if(!xr(Yr,cn,Dr,Fr))return!1}else if(!Dr&&!yr.has(cn)&&!xr(Yr,cn,Dr,Fr))return!1}return Yr.size===0}return!0}function wr(yr,Or,Dr,Fr,Yr,Gr){for(var Jr=ht(yr),jr=0;jr<Jr.length;jr++){var Zr=Jr[jr];if(br(Dr,Zr,Yr,Gr)&&br(Fr,Or.get(Zr),Yr,Gr))return yr.delete(Zr),!0}return!1}function qr(yr,Or,Dr,Fr){for(var Yr=null,Gr=mt(yr),Jr=0;Jr<Gr.length;Jr++){var jr=et(Gr[Jr],2),Zr=jr[0],Xr=jr[1];if(dt(Zr)==="object"&&Zr!==null)Yr===null&&(Yr=new Set),Yr.add(Zr);else{var cn=Or.get(Zr);if(cn===void 0&&!Or.has(Zr)||!br(Xr,cn,Dr,Fr)){if(Dr||!Ir(yr,Or,Zr,Xr,Fr))return!1;Yr===null&&(Yr=new Set),Yr.add(Zr)}}}if(Yr!==null){for(var Qr=mt(Or),rn=0;rn<Qr.length;rn++){var _r=et(Qr[rn],2),ln=_r[0],vn=_r[1];if(dt(ln)==="object"&&ln!==null){if(!wr(Yr,yr,ln,vn,Dr,Fr))return!1}else if(!Dr&&(!yr.has(ln)||!br(yr.get(ln),vn,!1,Fr))&&!wr(Yr,yr,ln,vn,!1,Fr))return!1}return Yr.size===0}return!0}function Hr(yr,Or,Dr,Fr,Yr,Gr){var Jr=0;if(Gr===nr){if(!Rr(yr,Or,Dr,Yr))return!1}else if(Gr===or){if(!qr(yr,Or,Dr,Yr))return!1}else if(Gr===er)for(;Jr<yr.length;Jr++)if(At(yr,Jr)){if(!At(Or,Jr)||!br(yr[Jr],Or[Jr],Dr,Yr))return!1}else{if(At(Or,Jr))return!1;for(var jr=Object.keys(yr);Jr<jr.length;Jr++){var Zr=jr[Jr];if(!At(Or,Zr)||!br(yr[Zr],Or[Zr],Dr,Yr))return!1}return jr.length===Object.keys(Or).length}for(Jr=0;Jr<Fr.length;Jr++){var Xr=Fr[Jr];if(!br(yr[Xr],Or[Xr],Dr,Yr))return!1}return!0}function kr(yr,Or){return br(yr,Or,Zt)}function $r(yr,Or){return br(yr,Or,Gt)}return comparisons={isDeepEqual:kr,isDeepStrictEqual:$r},comparisons}var hasRequiredAssert;function requireAssert(){if(hasRequiredAssert)return assert$j.exports;hasRequiredAssert=1;function et(nr){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(or){return typeof or}:function(or){return or&&typeof Symbol=="function"&&or.constructor===Symbol&&or!==Symbol.prototype?"symbol":typeof or},et(nr)}function tt(nr,or,rr){return Object.defineProperty(nr,"prototype",{writable:!1}),nr}function rt(nr,or){if(!(nr instanceof or))throw new TypeError("Cannot call a class as a function")}var nt=requireErrors(),lt=nt.codes,ut=lt.ERR_AMBIGUOUS_ARGUMENT,dt=lt.ERR_INVALID_ARG_TYPE,pt=lt.ERR_INVALID_ARG_VALUE,ht=lt.ERR_INVALID_RETURN_VALUE,mt=lt.ERR_MISSING_ARGS,xt=requireAssertion_error(),Mt=util$a,vt=Mt.inspect,Ot=util$a.types,At=Ot.isPromise,Rt=Ot.isRegExp,zt=requirePolyfill$2()(),Tt=requirePolyfill$1()(),Ct=callBound$3("RegExp.prototype.test"),It,Dt;function kt(){var nr=requireComparisons();It=nr.isDeepEqual,Dt=nr.isDeepStrictEqual}var qt=!1,Nt=assert$j.exports=Bt,Yt={};function Kt(nr){throw nr.message instanceof Error?nr.message:new xt(nr)}function Jt(nr,or,rr,cr,ir){var dr=arguments.length,gr;if(dr===0)gr="Failed";else if(dr===1)rr=nr,nr=void 0;else{if(qt===!1){qt=!0;var br=process$1$1.emitWarning?process$1$1.emitWarning:console.warn.bind(console);br("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}dr===2&&(cr="!=")}if(rr instanceof Error)throw rr;var ar={actual:nr,expected:or,operator:cr===void 0?"fail":cr,stackStartFn:ir||Jt};rr!==void 0&&(ar.message=rr);var ur=new xt(ar);throw gr&&(ur.message=gr,ur.generatedMessage=!0),ur}Nt.fail=Jt,Nt.AssertionError=xt;function Qt(nr,or,rr,cr){if(!rr){var ir=!1;if(or===0)ir=!0,cr="No value argument passed to `assert.ok()`";else if(cr instanceof Error)throw cr;var dr=new xt({actual:rr,expected:!0,message:cr,operator:"==",stackStartFn:nr});throw dr.generatedMessage=ir,dr}}function Bt(){for(var nr=arguments.length,or=new Array(nr),rr=0;rr<nr;rr++)or[rr]=arguments[rr];Qt.apply(void 0,[Bt,or.length].concat(or))}Nt.ok=Bt,Nt.equal=function nr(or,rr,cr){if(arguments.length<2)throw new mt("actual","expected");or!=rr&&Kt({actual:or,expected:rr,message:cr,operator:"==",stackStartFn:nr})},Nt.notEqual=function nr(or,rr,cr){if(arguments.length<2)throw new mt("actual","expected");or==rr&&Kt({actual:or,expected:rr,message:cr,operator:"!=",stackStartFn:nr})},Nt.deepEqual=function nr(or,rr,cr){if(arguments.length<2)throw new mt("actual","expected");It===void 0&&kt(),It(or,rr)||Kt({actual:or,expected:rr,message:cr,operator:"deepEqual",stackStartFn:nr})},Nt.notDeepEqual=function nr(or,rr,cr){if(arguments.length<2)throw new mt("actual","expected");It===void 0&&kt(),It(or,rr)&&Kt({actual:or,expected:rr,message:cr,operator:"notDeepEqual",stackStartFn:nr})},Nt.deepStrictEqual=function nr(or,rr,cr){if(arguments.length<2)throw new mt("actual","expected");It===void 0&&kt(),Dt(or,rr)||Kt({actual:or,expected:rr,message:cr,operator:"deepStrictEqual",stackStartFn:nr})},Nt.notDeepStrictEqual=Ft;function Ft(nr,or,rr){if(arguments.length<2)throw new mt("actual","expected");It===void 0&&kt(),Dt(nr,or)&&Kt({actual:nr,expected:or,message:rr,operator:"notDeepStrictEqual",stackStartFn:Ft})}Nt.strictEqual=function nr(or,rr,cr){if(arguments.length<2)throw new mt("actual","expected");Tt(or,rr)||Kt({actual:or,expected:rr,message:cr,operator:"strictEqual",stackStartFn:nr})},Nt.notStrictEqual=function nr(or,rr,cr){if(arguments.length<2)throw new mt("actual","expected");Tt(or,rr)&&Kt({actual:or,expected:rr,message:cr,operator:"notStrictEqual",stackStartFn:nr})};var $t=tt(function nr(or,rr,cr){var ir=this;rt(this,nr),rr.forEach(function(dr){dr in or&&(cr!==void 0&&typeof cr[dr]=="string"&&Rt(or[dr])&&Ct(or[dr],cr[dr])?ir[dr]=cr[dr]:ir[dr]=or[dr])})});function jt(nr,or,rr,cr,ir,dr){if(!(rr in nr)||!Dt(nr[rr],or[rr])){if(!cr){var gr=new $t(nr,ir),br=new $t(or,ir,nr),ar=new xt({actual:gr,expected:br,operator:"deepStrictEqual",stackStartFn:dr});throw ar.actual=nr,ar.expected=or,ar.operator=dr.name,ar}Kt({actual:nr,expected:or,message:cr,operator:dr.name,stackStartFn:dr})}}function Wt(nr,or,rr,cr){if(typeof or!="function"){if(Rt(or))return Ct(or,nr);if(arguments.length===2)throw new dt("expected",["Function","RegExp"],or);if(et(nr)!=="object"||nr===null){var ir=new xt({actual:nr,expected:or,message:rr,operator:"deepStrictEqual",stackStartFn:cr});throw ir.operator=cr.name,ir}var dr=Object.keys(or);if(or instanceof Error)dr.push("name","message");else if(dr.length===0)throw new pt("error",or,"may not be an empty object");return It===void 0&&kt(),dr.forEach(function(gr){typeof nr[gr]=="string"&&Rt(or[gr])&&Ct(or[gr],nr[gr])||jt(nr,or,gr,rr,dr,cr)}),!0}return or.prototype!==void 0&&nr instanceof or?!0:Error.isPrototypeOf(or)?!1:or.call({},nr)===!0}function Ut(nr){if(typeof nr!="function")throw new dt("fn","Function",nr);try{nr()}catch(or){return or}return Yt}function Vt(nr){return At(nr)||nr!==null&&et(nr)==="object"&&typeof nr.then=="function"&&typeof nr.catch=="function"}function Ht(nr){return Promise.resolve().then(function(){var or;if(typeof nr=="function"){if(or=nr(),!Vt(or))throw new ht("instance of Promise","promiseFn",or)}else if(Vt(nr))or=nr;else throw new dt("promiseFn",["Function","Promise"],nr);return Promise.resolve().then(function(){return or}).then(function(){return Yt}).catch(function(rr){return rr})})}function Gt(nr,or,rr,cr){if(typeof rr=="string"){if(arguments.length===4)throw new dt("error",["Object","Error","Function","RegExp"],rr);if(et(or)==="object"&&or!==null){if(or.message===rr)throw new ut("error/message",'The error message "'.concat(or.message,'" is identical to the message.'))}else if(or===rr)throw new ut("error/message",'The error "'.concat(or,'" is identical to the message.'));cr=rr,rr=void 0}else if(rr!=null&&et(rr)!=="object"&&typeof rr!="function")throw new dt("error",["Object","Error","Function","RegExp"],rr);if(or===Yt){var ir="";rr&&rr.name&&(ir+=" (".concat(rr.name,")")),ir+=cr?": ".concat(cr):".";var dr=nr.name==="rejects"?"rejection":"exception";Kt({actual:void 0,expected:rr,operator:nr.name,message:"Missing expected ".concat(dr).concat(ir),stackStartFn:nr})}if(rr&&!Wt(or,rr,cr,nr))throw or}function Zt(nr,or,rr,cr){if(or!==Yt){if(typeof rr=="string"&&(cr=rr,rr=void 0),!rr||Wt(or,rr)){var ir=cr?": ".concat(cr):".",dr=nr.name==="doesNotReject"?"rejection":"exception";Kt({actual:or,expected:rr,operator:nr.name,message:"Got unwanted ".concat(dr).concat(ir,`
`)+'Actual message: "'.concat(or&&or.message,'"'),stackStartFn:nr})}throw or}}Nt.throws=function nr(or){for(var rr=arguments.length,cr=new Array(rr>1?rr-1:0),ir=1;ir<rr;ir++)cr[ir-1]=arguments[ir];Gt.apply(void 0,[nr,Ut(or)].concat(cr))},Nt.rejects=function nr(or){for(var rr=arguments.length,cr=new Array(rr>1?rr-1:0),ir=1;ir<rr;ir++)cr[ir-1]=arguments[ir];return Ht(or).then(function(dr){return Gt.apply(void 0,[nr,dr].concat(cr))})},Nt.doesNotThrow=function nr(or){for(var rr=arguments.length,cr=new Array(rr>1?rr-1:0),ir=1;ir<rr;ir++)cr[ir-1]=arguments[ir];Zt.apply(void 0,[nr,Ut(or)].concat(cr))},Nt.doesNotReject=function nr(or){for(var rr=arguments.length,cr=new Array(rr>1?rr-1:0),ir=1;ir<rr;ir++)cr[ir-1]=arguments[ir];return Ht(or).then(function(dr){return Zt.apply(void 0,[nr,dr].concat(cr))})},Nt.ifError=function nr(or){if(or!=null){var rr="ifError got unwanted exception: ";et(or)==="object"&&typeof or.message=="string"?or.message.length===0&&or.constructor?rr+=or.constructor.name:rr+=or.message:rr+=vt(or);var cr=new xt({actual:or,expected:null,operator:"ifError",message:rr,stackStartFn:nr}),ir=or.stack;if(typeof ir=="string"){var dr=ir.split(`
`);dr.shift();for(var gr=cr.stack.split(`
`),br=0;br<dr.length;br++){var ar=gr.indexOf(dr[br]);if(ar!==-1){gr=gr.slice(0,ar);break}}cr.stack="".concat(gr.join(`
`),`
`).concat(dr.join(`
`))}throw cr}};function Xt(nr,or,rr,cr,ir){if(!Rt(or))throw new dt("regexp","RegExp",or);var dr=ir==="match";if(typeof nr!="string"||Ct(or,nr)!==dr){if(rr instanceof Error)throw rr;var gr=!rr;rr=rr||(typeof nr!="string"?'The "string" argument must be of type string. Received type '+"".concat(et(nr)," (").concat(vt(nr),")"):(dr?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(vt(or),`. Input:

`).concat(vt(nr),`
`));var br=new xt({actual:nr,expected:or,message:rr,operator:ir,stackStartFn:cr});throw br.generatedMessage=gr,br}}Nt.match=function nr(or,rr,cr){Xt(or,rr,cr,nr,"match")},Nt.doesNotMatch=function nr(or,rr,cr){Xt(or,rr,cr,nr,"doesNotMatch")};function er(){for(var nr=arguments.length,or=new Array(nr),rr=0;rr<nr;rr++)or[rr]=arguments[rr];Qt.apply(void 0,[er,or.length].concat(or))}return Nt.strict=zt(er,Nt,{equal:Nt.strictEqual,deepEqual:Nt.deepStrictEqual,notEqual:Nt.notStrictEqual,notDeepEqual:Nt.notDeepStrictEqual}),Nt.strict.strict=Nt.strict,assert$j.exports}var zstream,hasRequiredZstream;function requireZstream(){if(hasRequiredZstream)return zstream;hasRequiredZstream=1;function et(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return zstream=et,zstream}var deflate={},common$7={},hasRequiredCommon;function requireCommon(){return hasRequiredCommon||(hasRequiredCommon=1,function(et){var tt=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function rt(ut,dt){return Object.prototype.hasOwnProperty.call(ut,dt)}et.assign=function(ut){for(var dt=Array.prototype.slice.call(arguments,1);dt.length;){var pt=dt.shift();if(pt){if(typeof pt!="object")throw new TypeError(pt+"must be non-object");for(var ht in pt)rt(pt,ht)&&(ut[ht]=pt[ht])}}return ut},et.shrinkBuf=function(ut,dt){return ut.length===dt?ut:ut.subarray?ut.subarray(0,dt):(ut.length=dt,ut)};var nt={arraySet:function(ut,dt,pt,ht,mt){if(dt.subarray&&ut.subarray){ut.set(dt.subarray(pt,pt+ht),mt);return}for(var xt=0;xt<ht;xt++)ut[mt+xt]=dt[pt+xt]},flattenChunks:function(ut){var dt,pt,ht,mt,xt,Mt;for(ht=0,dt=0,pt=ut.length;dt<pt;dt++)ht+=ut[dt].length;for(Mt=new Uint8Array(ht),mt=0,dt=0,pt=ut.length;dt<pt;dt++)xt=ut[dt],Mt.set(xt,mt),mt+=xt.length;return Mt}},lt={arraySet:function(ut,dt,pt,ht,mt){for(var xt=0;xt<ht;xt++)ut[mt+xt]=dt[pt+xt]},flattenChunks:function(ut){return[].concat.apply([],ut)}};et.setTyped=function(ut){ut?(et.Buf8=Uint8Array,et.Buf16=Uint16Array,et.Buf32=Int32Array,et.assign(et,nt)):(et.Buf8=Array,et.Buf16=Array,et.Buf32=Array,et.assign(et,lt))},et.setTyped(tt)}(common$7)),common$7}var trees={},hasRequiredTrees;function requireTrees(){if(hasRequiredTrees)return trees;hasRequiredTrees=1;var et=requireCommon(),tt=4,rt=0,nt=1,lt=2;function ut(jr){for(var Zr=jr.length;--Zr>=0;)jr[Zr]=0}var dt=0,pt=1,ht=2,mt=3,xt=258,Mt=29,vt=256,Ot=vt+1+Mt,At=30,Rt=19,zt=2*Ot+1,Tt=15,Ct=16,It=7,Dt=256,kt=16,qt=17,Nt=18,Yt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Kt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Jt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Qt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bt=512,Ft=new Array((Ot+2)*2);ut(Ft);var $t=new Array(At*2);ut($t);var jt=new Array(Bt);ut(jt);var Wt=new Array(xt-mt+1);ut(Wt);var Ut=new Array(Mt);ut(Ut);var Vt=new Array(At);ut(Vt);function Ht(jr,Zr,Xr,cn,Qr){this.static_tree=jr,this.extra_bits=Zr,this.extra_base=Xr,this.elems=cn,this.max_length=Qr,this.has_stree=jr&&jr.length}var Gt,Zt,Xt;function er(jr,Zr){this.dyn_tree=jr,this.max_code=0,this.stat_desc=Zr}function nr(jr){return jr<256?jt[jr]:jt[256+(jr>>>7)]}function or(jr,Zr){jr.pending_buf[jr.pending++]=Zr&255,jr.pending_buf[jr.pending++]=Zr>>>8&255}function rr(jr,Zr,Xr){jr.bi_valid>Ct-Xr?(jr.bi_buf|=Zr<<jr.bi_valid&65535,or(jr,jr.bi_buf),jr.bi_buf=Zr>>Ct-jr.bi_valid,jr.bi_valid+=Xr-Ct):(jr.bi_buf|=Zr<<jr.bi_valid&65535,jr.bi_valid+=Xr)}function cr(jr,Zr,Xr){rr(jr,Xr[Zr*2],Xr[Zr*2+1])}function ir(jr,Zr){var Xr=0;do Xr|=jr&1,jr>>>=1,Xr<<=1;while(--Zr>0);return Xr>>>1}function dr(jr){jr.bi_valid===16?(or(jr,jr.bi_buf),jr.bi_buf=0,jr.bi_valid=0):jr.bi_valid>=8&&(jr.pending_buf[jr.pending++]=jr.bi_buf&255,jr.bi_buf>>=8,jr.bi_valid-=8)}function gr(jr,Zr){var Xr=Zr.dyn_tree,cn=Zr.max_code,Qr=Zr.stat_desc.static_tree,rn=Zr.stat_desc.has_stree,_r=Zr.stat_desc.extra_bits,ln=Zr.stat_desc.extra_base,vn=Zr.stat_desc.max_length,Cr,gn,xn,Vr,fn,pn,qn=0;for(Vr=0;Vr<=Tt;Vr++)jr.bl_count[Vr]=0;for(Xr[jr.heap[jr.heap_max]*2+1]=0,Cr=jr.heap_max+1;Cr<zt;Cr++)gn=jr.heap[Cr],Vr=Xr[Xr[gn*2+1]*2+1]+1,Vr>vn&&(Vr=vn,qn++),Xr[gn*2+1]=Vr,!(gn>cn)&&(jr.bl_count[Vr]++,fn=0,gn>=ln&&(fn=_r[gn-ln]),pn=Xr[gn*2],jr.opt_len+=pn*(Vr+fn),rn&&(jr.static_len+=pn*(Qr[gn*2+1]+fn)));if(qn!==0){do{for(Vr=vn-1;jr.bl_count[Vr]===0;)Vr--;jr.bl_count[Vr]--,jr.bl_count[Vr+1]+=2,jr.bl_count[vn]--,qn-=2}while(qn>0);for(Vr=vn;Vr!==0;Vr--)for(gn=jr.bl_count[Vr];gn!==0;)xn=jr.heap[--Cr],!(xn>cn)&&(Xr[xn*2+1]!==Vr&&(jr.opt_len+=(Vr-Xr[xn*2+1])*Xr[xn*2],Xr[xn*2+1]=Vr),gn--)}}function br(jr,Zr,Xr){var cn=new Array(Tt+1),Qr=0,rn,_r;for(rn=1;rn<=Tt;rn++)cn[rn]=Qr=Qr+Xr[rn-1]<<1;for(_r=0;_r<=Zr;_r++){var ln=jr[_r*2+1];ln!==0&&(jr[_r*2]=ir(cn[ln]++,ln))}}function ar(){var jr,Zr,Xr,cn,Qr,rn=new Array(Tt+1);for(Xr=0,cn=0;cn<Mt-1;cn++)for(Ut[cn]=Xr,jr=0;jr<1<<Yt[cn];jr++)Wt[Xr++]=cn;for(Wt[Xr-1]=cn,Qr=0,cn=0;cn<16;cn++)for(Vt[cn]=Qr,jr=0;jr<1<<Kt[cn];jr++)jt[Qr++]=cn;for(Qr>>=7;cn<At;cn++)for(Vt[cn]=Qr<<7,jr=0;jr<1<<Kt[cn]-7;jr++)jt[256+Qr++]=cn;for(Zr=0;Zr<=Tt;Zr++)rn[Zr]=0;for(jr=0;jr<=143;)Ft[jr*2+1]=8,jr++,rn[8]++;for(;jr<=255;)Ft[jr*2+1]=9,jr++,rn[9]++;for(;jr<=279;)Ft[jr*2+1]=7,jr++,rn[7]++;for(;jr<=287;)Ft[jr*2+1]=8,jr++,rn[8]++;for(br(Ft,Ot+1,rn),jr=0;jr<At;jr++)$t[jr*2+1]=5,$t[jr*2]=ir(jr,5);Gt=new Ht(Ft,Yt,vt+1,Ot,Tt),Zt=new Ht($t,Kt,0,At,Tt),Xt=new Ht(new Array(0),Jt,0,Rt,It)}function ur(jr){var Zr;for(Zr=0;Zr<Ot;Zr++)jr.dyn_ltree[Zr*2]=0;for(Zr=0;Zr<At;Zr++)jr.dyn_dtree[Zr*2]=0;for(Zr=0;Zr<Rt;Zr++)jr.bl_tree[Zr*2]=0;jr.dyn_ltree[Dt*2]=1,jr.opt_len=jr.static_len=0,jr.last_lit=jr.matches=0}function xr(jr){jr.bi_valid>8?or(jr,jr.bi_buf):jr.bi_valid>0&&(jr.pending_buf[jr.pending++]=jr.bi_buf),jr.bi_buf=0,jr.bi_valid=0}function Mr(jr,Zr,Xr,cn){xr(jr),or(jr,Xr),or(jr,~Xr),et.arraySet(jr.pending_buf,jr.window,Zr,Xr,jr.pending),jr.pending+=Xr}function Ar(jr,Zr,Xr,cn){var Qr=Zr*2,rn=Xr*2;return jr[Qr]<jr[rn]||jr[Qr]===jr[rn]&&cn[Zr]<=cn[Xr]}function Ir(jr,Zr,Xr){for(var cn=jr.heap[Xr],Qr=Xr<<1;Qr<=jr.heap_len&&(Qr<jr.heap_len&&Ar(Zr,jr.heap[Qr+1],jr.heap[Qr],jr.depth)&&Qr++,!Ar(Zr,cn,jr.heap[Qr],jr.depth));)jr.heap[Xr]=jr.heap[Qr],Xr=Qr,Qr<<=1;jr.heap[Xr]=cn}function Rr(jr,Zr,Xr){var cn,Qr,rn=0,_r,ln;if(jr.last_lit!==0)do cn=jr.pending_buf[jr.d_buf+rn*2]<<8|jr.pending_buf[jr.d_buf+rn*2+1],Qr=jr.pending_buf[jr.l_buf+rn],rn++,cn===0?cr(jr,Qr,Zr):(_r=Wt[Qr],cr(jr,_r+vt+1,Zr),ln=Yt[_r],ln!==0&&(Qr-=Ut[_r],rr(jr,Qr,ln)),cn--,_r=nr(cn),cr(jr,_r,Xr),ln=Kt[_r],ln!==0&&(cn-=Vt[_r],rr(jr,cn,ln)));while(rn<jr.last_lit);cr(jr,Dt,Zr)}function wr(jr,Zr){var Xr=Zr.dyn_tree,cn=Zr.stat_desc.static_tree,Qr=Zr.stat_desc.has_stree,rn=Zr.stat_desc.elems,_r,ln,vn=-1,Cr;for(jr.heap_len=0,jr.heap_max=zt,_r=0;_r<rn;_r++)Xr[_r*2]!==0?(jr.heap[++jr.heap_len]=vn=_r,jr.depth[_r]=0):Xr[_r*2+1]=0;for(;jr.heap_len<2;)Cr=jr.heap[++jr.heap_len]=vn<2?++vn:0,Xr[Cr*2]=1,jr.depth[Cr]=0,jr.opt_len--,Qr&&(jr.static_len-=cn[Cr*2+1]);for(Zr.max_code=vn,_r=jr.heap_len>>1;_r>=1;_r--)Ir(jr,Xr,_r);Cr=rn;do _r=jr.heap[1],jr.heap[1]=jr.heap[jr.heap_len--],Ir(jr,Xr,1),ln=jr.heap[1],jr.heap[--jr.heap_max]=_r,jr.heap[--jr.heap_max]=ln,Xr[Cr*2]=Xr[_r*2]+Xr[ln*2],jr.depth[Cr]=(jr.depth[_r]>=jr.depth[ln]?jr.depth[_r]:jr.depth[ln])+1,Xr[_r*2+1]=Xr[ln*2+1]=Cr,jr.heap[1]=Cr++,Ir(jr,Xr,1);while(jr.heap_len>=2);jr.heap[--jr.heap_max]=jr.heap[1],gr(jr,Zr),br(Xr,vn,jr.bl_count)}function qr(jr,Zr,Xr){var cn,Qr=-1,rn,_r=Zr[0*2+1],ln=0,vn=7,Cr=4;for(_r===0&&(vn=138,Cr=3),Zr[(Xr+1)*2+1]=65535,cn=0;cn<=Xr;cn++)rn=_r,_r=Zr[(cn+1)*2+1],!(++ln<vn&&rn===_r)&&(ln<Cr?jr.bl_tree[rn*2]+=ln:rn!==0?(rn!==Qr&&jr.bl_tree[rn*2]++,jr.bl_tree[kt*2]++):ln<=10?jr.bl_tree[qt*2]++:jr.bl_tree[Nt*2]++,ln=0,Qr=rn,_r===0?(vn=138,Cr=3):rn===_r?(vn=6,Cr=3):(vn=7,Cr=4))}function Hr(jr,Zr,Xr){var cn,Qr=-1,rn,_r=Zr[0*2+1],ln=0,vn=7,Cr=4;for(_r===0&&(vn=138,Cr=3),cn=0;cn<=Xr;cn++)if(rn=_r,_r=Zr[(cn+1)*2+1],!(++ln<vn&&rn===_r)){if(ln<Cr)do cr(jr,rn,jr.bl_tree);while(--ln!==0);else rn!==0?(rn!==Qr&&(cr(jr,rn,jr.bl_tree),ln--),cr(jr,kt,jr.bl_tree),rr(jr,ln-3,2)):ln<=10?(cr(jr,qt,jr.bl_tree),rr(jr,ln-3,3)):(cr(jr,Nt,jr.bl_tree),rr(jr,ln-11,7));ln=0,Qr=rn,_r===0?(vn=138,Cr=3):rn===_r?(vn=6,Cr=3):(vn=7,Cr=4)}}function kr(jr){var Zr;for(qr(jr,jr.dyn_ltree,jr.l_desc.max_code),qr(jr,jr.dyn_dtree,jr.d_desc.max_code),wr(jr,jr.bl_desc),Zr=Rt-1;Zr>=3&&jr.bl_tree[Qt[Zr]*2+1]===0;Zr--);return jr.opt_len+=3*(Zr+1)+5+5+4,Zr}function $r(jr,Zr,Xr,cn){var Qr;for(rr(jr,Zr-257,5),rr(jr,Xr-1,5),rr(jr,cn-4,4),Qr=0;Qr<cn;Qr++)rr(jr,jr.bl_tree[Qt[Qr]*2+1],3);Hr(jr,jr.dyn_ltree,Zr-1),Hr(jr,jr.dyn_dtree,Xr-1)}function yr(jr){var Zr=4093624447,Xr;for(Xr=0;Xr<=31;Xr++,Zr>>>=1)if(Zr&1&&jr.dyn_ltree[Xr*2]!==0)return rt;if(jr.dyn_ltree[9*2]!==0||jr.dyn_ltree[10*2]!==0||jr.dyn_ltree[13*2]!==0)return nt;for(Xr=32;Xr<vt;Xr++)if(jr.dyn_ltree[Xr*2]!==0)return nt;return rt}var Or=!1;function Dr(jr){Or||(ar(),Or=!0),jr.l_desc=new er(jr.dyn_ltree,Gt),jr.d_desc=new er(jr.dyn_dtree,Zt),jr.bl_desc=new er(jr.bl_tree,Xt),jr.bi_buf=0,jr.bi_valid=0,ur(jr)}function Fr(jr,Zr,Xr,cn){rr(jr,(dt<<1)+(cn?1:0),3),Mr(jr,Zr,Xr)}function Yr(jr){rr(jr,pt<<1,3),cr(jr,Dt,Ft),dr(jr)}function Gr(jr,Zr,Xr,cn){var Qr,rn,_r=0;jr.level>0?(jr.strm.data_type===lt&&(jr.strm.data_type=yr(jr)),wr(jr,jr.l_desc),wr(jr,jr.d_desc),_r=kr(jr),Qr=jr.opt_len+3+7>>>3,rn=jr.static_len+3+7>>>3,rn<=Qr&&(Qr=rn)):Qr=rn=Xr+5,Xr+4<=Qr&&Zr!==-1?Fr(jr,Zr,Xr,cn):jr.strategy===tt||rn===Qr?(rr(jr,(pt<<1)+(cn?1:0),3),Rr(jr,Ft,$t)):(rr(jr,(ht<<1)+(cn?1:0),3),$r(jr,jr.l_desc.max_code+1,jr.d_desc.max_code+1,_r+1),Rr(jr,jr.dyn_ltree,jr.dyn_dtree)),ur(jr),cn&&xr(jr)}function Jr(jr,Zr,Xr){return jr.pending_buf[jr.d_buf+jr.last_lit*2]=Zr>>>8&255,jr.pending_buf[jr.d_buf+jr.last_lit*2+1]=Zr&255,jr.pending_buf[jr.l_buf+jr.last_lit]=Xr&255,jr.last_lit++,Zr===0?jr.dyn_ltree[Xr*2]++:(jr.matches++,Zr--,jr.dyn_ltree[(Wt[Xr]+vt+1)*2]++,jr.dyn_dtree[nr(Zr)*2]++),jr.last_lit===jr.lit_bufsize-1}return trees._tr_init=Dr,trees._tr_stored_block=Fr,trees._tr_flush_block=Gr,trees._tr_tally=Jr,trees._tr_align=Yr,trees}var adler32_1,hasRequiredAdler32;function requireAdler32(){if(hasRequiredAdler32)return adler32_1;hasRequiredAdler32=1;function et(tt,rt,nt,lt){for(var ut=tt&65535|0,dt=tt>>>16&65535|0,pt=0;nt!==0;){pt=nt>2e3?2e3:nt,nt-=pt;do ut=ut+rt[lt++]|0,dt=dt+ut|0;while(--pt);ut%=65521,dt%=65521}return ut|dt<<16|0}return adler32_1=et,adler32_1}var crc32_1,hasRequiredCrc32;function requireCrc32(){if(hasRequiredCrc32)return crc32_1;hasRequiredCrc32=1;function et(){for(var nt,lt=[],ut=0;ut<256;ut++){nt=ut;for(var dt=0;dt<8;dt++)nt=nt&1?3988292384^nt>>>1:nt>>>1;lt[ut]=nt}return lt}var tt=et();function rt(nt,lt,ut,dt){var pt=tt,ht=dt+ut;nt^=-1;for(var mt=dt;mt<ht;mt++)nt=nt>>>8^pt[(nt^lt[mt])&255];return nt^-1}return crc32_1=rt,crc32_1}var messages,hasRequiredMessages;function requireMessages(){return hasRequiredMessages||(hasRequiredMessages=1,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),messages}var hasRequiredDeflate;function requireDeflate(){if(hasRequiredDeflate)return deflate;hasRequiredDeflate=1;var et=requireCommon(),tt=requireTrees(),rt=requireAdler32(),nt=requireCrc32(),lt=requireMessages(),ut=0,dt=1,pt=3,ht=4,mt=5,xt=0,Mt=1,vt=-2,Ot=-3,At=-5,Rt=-1,zt=1,Tt=2,Ct=3,It=4,Dt=0,kt=2,qt=8,Nt=9,Yt=15,Kt=8,Jt=29,Qt=256,Bt=Qt+1+Jt,Ft=30,$t=19,jt=2*Bt+1,Wt=15,Ut=3,Vt=258,Ht=Vt+Ut+1,Gt=32,Zt=42,Xt=69,er=73,nr=91,or=103,rr=113,cr=666,ir=1,dr=2,gr=3,br=4,ar=3;function ur(Cr,gn){return Cr.msg=lt[gn],gn}function xr(Cr){return(Cr<<1)-(Cr>4?9:0)}function Mr(Cr){for(var gn=Cr.length;--gn>=0;)Cr[gn]=0}function Ar(Cr){var gn=Cr.state,xn=gn.pending;xn>Cr.avail_out&&(xn=Cr.avail_out),xn!==0&&(et.arraySet(Cr.output,gn.pending_buf,gn.pending_out,xn,Cr.next_out),Cr.next_out+=xn,gn.pending_out+=xn,Cr.total_out+=xn,Cr.avail_out-=xn,gn.pending-=xn,gn.pending===0&&(gn.pending_out=0))}function Ir(Cr,gn){tt._tr_flush_block(Cr,Cr.block_start>=0?Cr.block_start:-1,Cr.strstart-Cr.block_start,gn),Cr.block_start=Cr.strstart,Ar(Cr.strm)}function Rr(Cr,gn){Cr.pending_buf[Cr.pending++]=gn}function wr(Cr,gn){Cr.pending_buf[Cr.pending++]=gn>>>8&255,Cr.pending_buf[Cr.pending++]=gn&255}function qr(Cr,gn,xn,Vr){var fn=Cr.avail_in;return fn>Vr&&(fn=Vr),fn===0?0:(Cr.avail_in-=fn,et.arraySet(gn,Cr.input,Cr.next_in,fn,xn),Cr.state.wrap===1?Cr.adler=rt(Cr.adler,gn,fn,xn):Cr.state.wrap===2&&(Cr.adler=nt(Cr.adler,gn,fn,xn)),Cr.next_in+=fn,Cr.total_in+=fn,fn)}function Hr(Cr,gn){var xn=Cr.max_chain_length,Vr=Cr.strstart,fn,pn,qn=Cr.prev_length,Bn=Cr.nice_match,Kr=Cr.strstart>Cr.w_size-Ht?Cr.strstart-(Cr.w_size-Ht):0,Tr=Cr.window,Pr=Cr.w_mask,an=Cr.prev,nn=Cr.strstart+Vt,Mn=Tr[Vr+qn-1],An=Tr[Vr+qn];Cr.prev_length>=Cr.good_match&&(xn>>=2),Bn>Cr.lookahead&&(Bn=Cr.lookahead);do if(fn=gn,!(Tr[fn+qn]!==An||Tr[fn+qn-1]!==Mn||Tr[fn]!==Tr[Vr]||Tr[++fn]!==Tr[Vr+1])){Vr+=2,fn++;do;while(Tr[++Vr]===Tr[++fn]&&Tr[++Vr]===Tr[++fn]&&Tr[++Vr]===Tr[++fn]&&Tr[++Vr]===Tr[++fn]&&Tr[++Vr]===Tr[++fn]&&Tr[++Vr]===Tr[++fn]&&Tr[++Vr]===Tr[++fn]&&Tr[++Vr]===Tr[++fn]&&Vr<nn);if(pn=Vt-(nn-Vr),Vr=nn-Vt,pn>qn){if(Cr.match_start=gn,qn=pn,pn>=Bn)break;Mn=Tr[Vr+qn-1],An=Tr[Vr+qn]}}while((gn=an[gn&Pr])>Kr&&--xn!==0);return qn<=Cr.lookahead?qn:Cr.lookahead}function kr(Cr){var gn=Cr.w_size,xn,Vr,fn,pn,qn;do{if(pn=Cr.window_size-Cr.lookahead-Cr.strstart,Cr.strstart>=gn+(gn-Ht)){et.arraySet(Cr.window,Cr.window,gn,gn,0),Cr.match_start-=gn,Cr.strstart-=gn,Cr.block_start-=gn,Vr=Cr.hash_size,xn=Vr;do fn=Cr.head[--xn],Cr.head[xn]=fn>=gn?fn-gn:0;while(--Vr);Vr=gn,xn=Vr;do fn=Cr.prev[--xn],Cr.prev[xn]=fn>=gn?fn-gn:0;while(--Vr);pn+=gn}if(Cr.strm.avail_in===0)break;if(Vr=qr(Cr.strm,Cr.window,Cr.strstart+Cr.lookahead,pn),Cr.lookahead+=Vr,Cr.lookahead+Cr.insert>=Ut)for(qn=Cr.strstart-Cr.insert,Cr.ins_h=Cr.window[qn],Cr.ins_h=(Cr.ins_h<<Cr.hash_shift^Cr.window[qn+1])&Cr.hash_mask;Cr.insert&&(Cr.ins_h=(Cr.ins_h<<Cr.hash_shift^Cr.window[qn+Ut-1])&Cr.hash_mask,Cr.prev[qn&Cr.w_mask]=Cr.head[Cr.ins_h],Cr.head[Cr.ins_h]=qn,qn++,Cr.insert--,!(Cr.lookahead+Cr.insert<Ut)););}while(Cr.lookahead<Ht&&Cr.strm.avail_in!==0)}function $r(Cr,gn){var xn=65535;for(xn>Cr.pending_buf_size-5&&(xn=Cr.pending_buf_size-5);;){if(Cr.lookahead<=1){if(kr(Cr),Cr.lookahead===0&&gn===ut)return ir;if(Cr.lookahead===0)break}Cr.strstart+=Cr.lookahead,Cr.lookahead=0;var Vr=Cr.block_start+xn;if((Cr.strstart===0||Cr.strstart>=Vr)&&(Cr.lookahead=Cr.strstart-Vr,Cr.strstart=Vr,Ir(Cr,!1),Cr.strm.avail_out===0)||Cr.strstart-Cr.block_start>=Cr.w_size-Ht&&(Ir(Cr,!1),Cr.strm.avail_out===0))return ir}return Cr.insert=0,gn===ht?(Ir(Cr,!0),Cr.strm.avail_out===0?gr:br):(Cr.strstart>Cr.block_start&&(Ir(Cr,!1),Cr.strm.avail_out===0),ir)}function yr(Cr,gn){for(var xn,Vr;;){if(Cr.lookahead<Ht){if(kr(Cr),Cr.lookahead<Ht&&gn===ut)return ir;if(Cr.lookahead===0)break}if(xn=0,Cr.lookahead>=Ut&&(Cr.ins_h=(Cr.ins_h<<Cr.hash_shift^Cr.window[Cr.strstart+Ut-1])&Cr.hash_mask,xn=Cr.prev[Cr.strstart&Cr.w_mask]=Cr.head[Cr.ins_h],Cr.head[Cr.ins_h]=Cr.strstart),xn!==0&&Cr.strstart-xn<=Cr.w_size-Ht&&(Cr.match_length=Hr(Cr,xn)),Cr.match_length>=Ut)if(Vr=tt._tr_tally(Cr,Cr.strstart-Cr.match_start,Cr.match_length-Ut),Cr.lookahead-=Cr.match_length,Cr.match_length<=Cr.max_lazy_match&&Cr.lookahead>=Ut){Cr.match_length--;do Cr.strstart++,Cr.ins_h=(Cr.ins_h<<Cr.hash_shift^Cr.window[Cr.strstart+Ut-1])&Cr.hash_mask,xn=Cr.prev[Cr.strstart&Cr.w_mask]=Cr.head[Cr.ins_h],Cr.head[Cr.ins_h]=Cr.strstart;while(--Cr.match_length!==0);Cr.strstart++}else Cr.strstart+=Cr.match_length,Cr.match_length=0,Cr.ins_h=Cr.window[Cr.strstart],Cr.ins_h=(Cr.ins_h<<Cr.hash_shift^Cr.window[Cr.strstart+1])&Cr.hash_mask;else Vr=tt._tr_tally(Cr,0,Cr.window[Cr.strstart]),Cr.lookahead--,Cr.strstart++;if(Vr&&(Ir(Cr,!1),Cr.strm.avail_out===0))return ir}return Cr.insert=Cr.strstart<Ut-1?Cr.strstart:Ut-1,gn===ht?(Ir(Cr,!0),Cr.strm.avail_out===0?gr:br):Cr.last_lit&&(Ir(Cr,!1),Cr.strm.avail_out===0)?ir:dr}function Or(Cr,gn){for(var xn,Vr,fn;;){if(Cr.lookahead<Ht){if(kr(Cr),Cr.lookahead<Ht&&gn===ut)return ir;if(Cr.lookahead===0)break}if(xn=0,Cr.lookahead>=Ut&&(Cr.ins_h=(Cr.ins_h<<Cr.hash_shift^Cr.window[Cr.strstart+Ut-1])&Cr.hash_mask,xn=Cr.prev[Cr.strstart&Cr.w_mask]=Cr.head[Cr.ins_h],Cr.head[Cr.ins_h]=Cr.strstart),Cr.prev_length=Cr.match_length,Cr.prev_match=Cr.match_start,Cr.match_length=Ut-1,xn!==0&&Cr.prev_length<Cr.max_lazy_match&&Cr.strstart-xn<=Cr.w_size-Ht&&(Cr.match_length=Hr(Cr,xn),Cr.match_length<=5&&(Cr.strategy===zt||Cr.match_length===Ut&&Cr.strstart-Cr.match_start>4096)&&(Cr.match_length=Ut-1)),Cr.prev_length>=Ut&&Cr.match_length<=Cr.prev_length){fn=Cr.strstart+Cr.lookahead-Ut,Vr=tt._tr_tally(Cr,Cr.strstart-1-Cr.prev_match,Cr.prev_length-Ut),Cr.lookahead-=Cr.prev_length-1,Cr.prev_length-=2;do++Cr.strstart<=fn&&(Cr.ins_h=(Cr.ins_h<<Cr.hash_shift^Cr.window[Cr.strstart+Ut-1])&Cr.hash_mask,xn=Cr.prev[Cr.strstart&Cr.w_mask]=Cr.head[Cr.ins_h],Cr.head[Cr.ins_h]=Cr.strstart);while(--Cr.prev_length!==0);if(Cr.match_available=0,Cr.match_length=Ut-1,Cr.strstart++,Vr&&(Ir(Cr,!1),Cr.strm.avail_out===0))return ir}else if(Cr.match_available){if(Vr=tt._tr_tally(Cr,0,Cr.window[Cr.strstart-1]),Vr&&Ir(Cr,!1),Cr.strstart++,Cr.lookahead--,Cr.strm.avail_out===0)return ir}else Cr.match_available=1,Cr.strstart++,Cr.lookahead--}return Cr.match_available&&(Vr=tt._tr_tally(Cr,0,Cr.window[Cr.strstart-1]),Cr.match_available=0),Cr.insert=Cr.strstart<Ut-1?Cr.strstart:Ut-1,gn===ht?(Ir(Cr,!0),Cr.strm.avail_out===0?gr:br):Cr.last_lit&&(Ir(Cr,!1),Cr.strm.avail_out===0)?ir:dr}function Dr(Cr,gn){for(var xn,Vr,fn,pn,qn=Cr.window;;){if(Cr.lookahead<=Vt){if(kr(Cr),Cr.lookahead<=Vt&&gn===ut)return ir;if(Cr.lookahead===0)break}if(Cr.match_length=0,Cr.lookahead>=Ut&&Cr.strstart>0&&(fn=Cr.strstart-1,Vr=qn[fn],Vr===qn[++fn]&&Vr===qn[++fn]&&Vr===qn[++fn])){pn=Cr.strstart+Vt;do;while(Vr===qn[++fn]&&Vr===qn[++fn]&&Vr===qn[++fn]&&Vr===qn[++fn]&&Vr===qn[++fn]&&Vr===qn[++fn]&&Vr===qn[++fn]&&Vr===qn[++fn]&&fn<pn);Cr.match_length=Vt-(pn-fn),Cr.match_length>Cr.lookahead&&(Cr.match_length=Cr.lookahead)}if(Cr.match_length>=Ut?(xn=tt._tr_tally(Cr,1,Cr.match_length-Ut),Cr.lookahead-=Cr.match_length,Cr.strstart+=Cr.match_length,Cr.match_length=0):(xn=tt._tr_tally(Cr,0,Cr.window[Cr.strstart]),Cr.lookahead--,Cr.strstart++),xn&&(Ir(Cr,!1),Cr.strm.avail_out===0))return ir}return Cr.insert=0,gn===ht?(Ir(Cr,!0),Cr.strm.avail_out===0?gr:br):Cr.last_lit&&(Ir(Cr,!1),Cr.strm.avail_out===0)?ir:dr}function Fr(Cr,gn){for(var xn;;){if(Cr.lookahead===0&&(kr(Cr),Cr.lookahead===0)){if(gn===ut)return ir;break}if(Cr.match_length=0,xn=tt._tr_tally(Cr,0,Cr.window[Cr.strstart]),Cr.lookahead--,Cr.strstart++,xn&&(Ir(Cr,!1),Cr.strm.avail_out===0))return ir}return Cr.insert=0,gn===ht?(Ir(Cr,!0),Cr.strm.avail_out===0?gr:br):Cr.last_lit&&(Ir(Cr,!1),Cr.strm.avail_out===0)?ir:dr}function Yr(Cr,gn,xn,Vr,fn){this.good_length=Cr,this.max_lazy=gn,this.nice_length=xn,this.max_chain=Vr,this.func=fn}var Gr;Gr=[new Yr(0,0,0,0,$r),new Yr(4,4,8,4,yr),new Yr(4,5,16,8,yr),new Yr(4,6,32,32,yr),new Yr(4,4,16,16,Or),new Yr(8,16,32,32,Or),new Yr(8,16,128,128,Or),new Yr(8,32,128,256,Or),new Yr(32,128,258,1024,Or),new Yr(32,258,258,4096,Or)];function Jr(Cr){Cr.window_size=2*Cr.w_size,Mr(Cr.head),Cr.max_lazy_match=Gr[Cr.level].max_lazy,Cr.good_match=Gr[Cr.level].good_length,Cr.nice_match=Gr[Cr.level].nice_length,Cr.max_chain_length=Gr[Cr.level].max_chain,Cr.strstart=0,Cr.block_start=0,Cr.lookahead=0,Cr.insert=0,Cr.match_length=Cr.prev_length=Ut-1,Cr.match_available=0,Cr.ins_h=0}function jr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=qt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new et.Buf16(jt*2),this.dyn_dtree=new et.Buf16((2*Ft+1)*2),this.bl_tree=new et.Buf16((2*$t+1)*2),Mr(this.dyn_ltree),Mr(this.dyn_dtree),Mr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new et.Buf16(Wt+1),this.heap=new et.Buf16(2*Bt+1),Mr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new et.Buf16(2*Bt+1),Mr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Zr(Cr){var gn;return!Cr||!Cr.state?ur(Cr,vt):(Cr.total_in=Cr.total_out=0,Cr.data_type=kt,gn=Cr.state,gn.pending=0,gn.pending_out=0,gn.wrap<0&&(gn.wrap=-gn.wrap),gn.status=gn.wrap?Zt:rr,Cr.adler=gn.wrap===2?0:1,gn.last_flush=ut,tt._tr_init(gn),xt)}function Xr(Cr){var gn=Zr(Cr);return gn===xt&&Jr(Cr.state),gn}function cn(Cr,gn){return!Cr||!Cr.state||Cr.state.wrap!==2?vt:(Cr.state.gzhead=gn,xt)}function Qr(Cr,gn,xn,Vr,fn,pn){if(!Cr)return vt;var qn=1;if(gn===Rt&&(gn=6),Vr<0?(qn=0,Vr=-Vr):Vr>15&&(qn=2,Vr-=16),fn<1||fn>Nt||xn!==qt||Vr<8||Vr>15||gn<0||gn>9||pn<0||pn>It)return ur(Cr,vt);Vr===8&&(Vr=9);var Bn=new jr;return Cr.state=Bn,Bn.strm=Cr,Bn.wrap=qn,Bn.gzhead=null,Bn.w_bits=Vr,Bn.w_size=1<<Bn.w_bits,Bn.w_mask=Bn.w_size-1,Bn.hash_bits=fn+7,Bn.hash_size=1<<Bn.hash_bits,Bn.hash_mask=Bn.hash_size-1,Bn.hash_shift=~~((Bn.hash_bits+Ut-1)/Ut),Bn.window=new et.Buf8(Bn.w_size*2),Bn.head=new et.Buf16(Bn.hash_size),Bn.prev=new et.Buf16(Bn.w_size),Bn.lit_bufsize=1<<fn+6,Bn.pending_buf_size=Bn.lit_bufsize*4,Bn.pending_buf=new et.Buf8(Bn.pending_buf_size),Bn.d_buf=1*Bn.lit_bufsize,Bn.l_buf=3*Bn.lit_bufsize,Bn.level=gn,Bn.strategy=pn,Bn.method=xn,Xr(Cr)}function rn(Cr,gn){return Qr(Cr,gn,qt,Yt,Kt,Dt)}function _r(Cr,gn){var xn,Vr,fn,pn;if(!Cr||!Cr.state||gn>mt||gn<0)return Cr?ur(Cr,vt):vt;if(Vr=Cr.state,!Cr.output||!Cr.input&&Cr.avail_in!==0||Vr.status===cr&&gn!==ht)return ur(Cr,Cr.avail_out===0?At:vt);if(Vr.strm=Cr,xn=Vr.last_flush,Vr.last_flush=gn,Vr.status===Zt)if(Vr.wrap===2)Cr.adler=0,Rr(Vr,31),Rr(Vr,139),Rr(Vr,8),Vr.gzhead?(Rr(Vr,(Vr.gzhead.text?1:0)+(Vr.gzhead.hcrc?2:0)+(Vr.gzhead.extra?4:0)+(Vr.gzhead.name?8:0)+(Vr.gzhead.comment?16:0)),Rr(Vr,Vr.gzhead.time&255),Rr(Vr,Vr.gzhead.time>>8&255),Rr(Vr,Vr.gzhead.time>>16&255),Rr(Vr,Vr.gzhead.time>>24&255),Rr(Vr,Vr.level===9?2:Vr.strategy>=Tt||Vr.level<2?4:0),Rr(Vr,Vr.gzhead.os&255),Vr.gzhead.extra&&Vr.gzhead.extra.length&&(Rr(Vr,Vr.gzhead.extra.length&255),Rr(Vr,Vr.gzhead.extra.length>>8&255)),Vr.gzhead.hcrc&&(Cr.adler=nt(Cr.adler,Vr.pending_buf,Vr.pending,0)),Vr.gzindex=0,Vr.status=Xt):(Rr(Vr,0),Rr(Vr,0),Rr(Vr,0),Rr(Vr,0),Rr(Vr,0),Rr(Vr,Vr.level===9?2:Vr.strategy>=Tt||Vr.level<2?4:0),Rr(Vr,ar),Vr.status=rr);else{var qn=qt+(Vr.w_bits-8<<4)<<8,Bn=-1;Vr.strategy>=Tt||Vr.level<2?Bn=0:Vr.level<6?Bn=1:Vr.level===6?Bn=2:Bn=3,qn|=Bn<<6,Vr.strstart!==0&&(qn|=Gt),qn+=31-qn%31,Vr.status=rr,wr(Vr,qn),Vr.strstart!==0&&(wr(Vr,Cr.adler>>>16),wr(Vr,Cr.adler&65535)),Cr.adler=1}if(Vr.status===Xt)if(Vr.gzhead.extra){for(fn=Vr.pending;Vr.gzindex<(Vr.gzhead.extra.length&65535)&&!(Vr.pending===Vr.pending_buf_size&&(Vr.gzhead.hcrc&&Vr.pending>fn&&(Cr.adler=nt(Cr.adler,Vr.pending_buf,Vr.pending-fn,fn)),Ar(Cr),fn=Vr.pending,Vr.pending===Vr.pending_buf_size));)Rr(Vr,Vr.gzhead.extra[Vr.gzindex]&255),Vr.gzindex++;Vr.gzhead.hcrc&&Vr.pending>fn&&(Cr.adler=nt(Cr.adler,Vr.pending_buf,Vr.pending-fn,fn)),Vr.gzindex===Vr.gzhead.extra.length&&(Vr.gzindex=0,Vr.status=er)}else Vr.status=er;if(Vr.status===er)if(Vr.gzhead.name){fn=Vr.pending;do{if(Vr.pending===Vr.pending_buf_size&&(Vr.gzhead.hcrc&&Vr.pending>fn&&(Cr.adler=nt(Cr.adler,Vr.pending_buf,Vr.pending-fn,fn)),Ar(Cr),fn=Vr.pending,Vr.pending===Vr.pending_buf_size)){pn=1;break}Vr.gzindex<Vr.gzhead.name.length?pn=Vr.gzhead.name.charCodeAt(Vr.gzindex++)&255:pn=0,Rr(Vr,pn)}while(pn!==0);Vr.gzhead.hcrc&&Vr.pending>fn&&(Cr.adler=nt(Cr.adler,Vr.pending_buf,Vr.pending-fn,fn)),pn===0&&(Vr.gzindex=0,Vr.status=nr)}else Vr.status=nr;if(Vr.status===nr)if(Vr.gzhead.comment){fn=Vr.pending;do{if(Vr.pending===Vr.pending_buf_size&&(Vr.gzhead.hcrc&&Vr.pending>fn&&(Cr.adler=nt(Cr.adler,Vr.pending_buf,Vr.pending-fn,fn)),Ar(Cr),fn=Vr.pending,Vr.pending===Vr.pending_buf_size)){pn=1;break}Vr.gzindex<Vr.gzhead.comment.length?pn=Vr.gzhead.comment.charCodeAt(Vr.gzindex++)&255:pn=0,Rr(Vr,pn)}while(pn!==0);Vr.gzhead.hcrc&&Vr.pending>fn&&(Cr.adler=nt(Cr.adler,Vr.pending_buf,Vr.pending-fn,fn)),pn===0&&(Vr.status=or)}else Vr.status=or;if(Vr.status===or&&(Vr.gzhead.hcrc?(Vr.pending+2>Vr.pending_buf_size&&Ar(Cr),Vr.pending+2<=Vr.pending_buf_size&&(Rr(Vr,Cr.adler&255),Rr(Vr,Cr.adler>>8&255),Cr.adler=0,Vr.status=rr)):Vr.status=rr),Vr.pending!==0){if(Ar(Cr),Cr.avail_out===0)return Vr.last_flush=-1,xt}else if(Cr.avail_in===0&&xr(gn)<=xr(xn)&&gn!==ht)return ur(Cr,At);if(Vr.status===cr&&Cr.avail_in!==0)return ur(Cr,At);if(Cr.avail_in!==0||Vr.lookahead!==0||gn!==ut&&Vr.status!==cr){var Kr=Vr.strategy===Tt?Fr(Vr,gn):Vr.strategy===Ct?Dr(Vr,gn):Gr[Vr.level].func(Vr,gn);if((Kr===gr||Kr===br)&&(Vr.status=cr),Kr===ir||Kr===gr)return Cr.avail_out===0&&(Vr.last_flush=-1),xt;if(Kr===dr&&(gn===dt?tt._tr_align(Vr):gn!==mt&&(tt._tr_stored_block(Vr,0,0,!1),gn===pt&&(Mr(Vr.head),Vr.lookahead===0&&(Vr.strstart=0,Vr.block_start=0,Vr.insert=0))),Ar(Cr),Cr.avail_out===0))return Vr.last_flush=-1,xt}return gn!==ht?xt:Vr.wrap<=0?Mt:(Vr.wrap===2?(Rr(Vr,Cr.adler&255),Rr(Vr,Cr.adler>>8&255),Rr(Vr,Cr.adler>>16&255),Rr(Vr,Cr.adler>>24&255),Rr(Vr,Cr.total_in&255),Rr(Vr,Cr.total_in>>8&255),Rr(Vr,Cr.total_in>>16&255),Rr(Vr,Cr.total_in>>24&255)):(wr(Vr,Cr.adler>>>16),wr(Vr,Cr.adler&65535)),Ar(Cr),Vr.wrap>0&&(Vr.wrap=-Vr.wrap),Vr.pending!==0?xt:Mt)}function ln(Cr){var gn;return!Cr||!Cr.state?vt:(gn=Cr.state.status,gn!==Zt&&gn!==Xt&&gn!==er&&gn!==nr&&gn!==or&&gn!==rr&&gn!==cr?ur(Cr,vt):(Cr.state=null,gn===rr?ur(Cr,Ot):xt))}function vn(Cr,gn){var xn=gn.length,Vr,fn,pn,qn,Bn,Kr,Tr,Pr;if(!Cr||!Cr.state||(Vr=Cr.state,qn=Vr.wrap,qn===2||qn===1&&Vr.status!==Zt||Vr.lookahead))return vt;for(qn===1&&(Cr.adler=rt(Cr.adler,gn,xn,0)),Vr.wrap=0,xn>=Vr.w_size&&(qn===0&&(Mr(Vr.head),Vr.strstart=0,Vr.block_start=0,Vr.insert=0),Pr=new et.Buf8(Vr.w_size),et.arraySet(Pr,gn,xn-Vr.w_size,Vr.w_size,0),gn=Pr,xn=Vr.w_size),Bn=Cr.avail_in,Kr=Cr.next_in,Tr=Cr.input,Cr.avail_in=xn,Cr.next_in=0,Cr.input=gn,kr(Vr);Vr.lookahead>=Ut;){fn=Vr.strstart,pn=Vr.lookahead-(Ut-1);do Vr.ins_h=(Vr.ins_h<<Vr.hash_shift^Vr.window[fn+Ut-1])&Vr.hash_mask,Vr.prev[fn&Vr.w_mask]=Vr.head[Vr.ins_h],Vr.head[Vr.ins_h]=fn,fn++;while(--pn);Vr.strstart=fn,Vr.lookahead=Ut-1,kr(Vr)}return Vr.strstart+=Vr.lookahead,Vr.block_start=Vr.strstart,Vr.insert=Vr.lookahead,Vr.lookahead=0,Vr.match_length=Vr.prev_length=Ut-1,Vr.match_available=0,Cr.next_in=Kr,Cr.input=Tr,Cr.avail_in=Bn,Vr.wrap=qn,xt}return deflate.deflateInit=rn,deflate.deflateInit2=Qr,deflate.deflateReset=Xr,deflate.deflateResetKeep=Zr,deflate.deflateSetHeader=cn,deflate.deflate=_r,deflate.deflateEnd=ln,deflate.deflateSetDictionary=vn,deflate.deflateInfo="pako deflate (from Nodeca project)",deflate}var inflate={},inffast,hasRequiredInffast;function requireInffast(){if(hasRequiredInffast)return inffast;hasRequiredInffast=1;var et=30,tt=12;return inffast=function(nt,lt){var ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct,It,Dt,kt,qt,Nt,Yt,Kt,Jt,Qt,Bt,Ft;ut=nt.state,dt=nt.next_in,Bt=nt.input,pt=dt+(nt.avail_in-5),ht=nt.next_out,Ft=nt.output,mt=ht-(lt-nt.avail_out),xt=ht+(nt.avail_out-257),Mt=ut.dmax,vt=ut.wsize,Ot=ut.whave,At=ut.wnext,Rt=ut.window,zt=ut.hold,Tt=ut.bits,Ct=ut.lencode,It=ut.distcode,Dt=(1<<ut.lenbits)-1,kt=(1<<ut.distbits)-1;e:do{Tt<15&&(zt+=Bt[dt++]<<Tt,Tt+=8,zt+=Bt[dt++]<<Tt,Tt+=8),qt=Ct[zt&Dt];t:for(;;){if(Nt=qt>>>24,zt>>>=Nt,Tt-=Nt,Nt=qt>>>16&255,Nt===0)Ft[ht++]=qt&65535;else if(Nt&16){Yt=qt&65535,Nt&=15,Nt&&(Tt<Nt&&(zt+=Bt[dt++]<<Tt,Tt+=8),Yt+=zt&(1<<Nt)-1,zt>>>=Nt,Tt-=Nt),Tt<15&&(zt+=Bt[dt++]<<Tt,Tt+=8,zt+=Bt[dt++]<<Tt,Tt+=8),qt=It[zt&kt];r:for(;;){if(Nt=qt>>>24,zt>>>=Nt,Tt-=Nt,Nt=qt>>>16&255,Nt&16){if(Kt=qt&65535,Nt&=15,Tt<Nt&&(zt+=Bt[dt++]<<Tt,Tt+=8,Tt<Nt&&(zt+=Bt[dt++]<<Tt,Tt+=8)),Kt+=zt&(1<<Nt)-1,Kt>Mt){nt.msg="invalid distance too far back",ut.mode=et;break e}if(zt>>>=Nt,Tt-=Nt,Nt=ht-mt,Kt>Nt){if(Nt=Kt-Nt,Nt>Ot&&ut.sane){nt.msg="invalid distance too far back",ut.mode=et;break e}if(Jt=0,Qt=Rt,At===0){if(Jt+=vt-Nt,Nt<Yt){Yt-=Nt;do Ft[ht++]=Rt[Jt++];while(--Nt);Jt=ht-Kt,Qt=Ft}}else if(At<Nt){if(Jt+=vt+At-Nt,Nt-=At,Nt<Yt){Yt-=Nt;do Ft[ht++]=Rt[Jt++];while(--Nt);if(Jt=0,At<Yt){Nt=At,Yt-=Nt;do Ft[ht++]=Rt[Jt++];while(--Nt);Jt=ht-Kt,Qt=Ft}}}else if(Jt+=At-Nt,Nt<Yt){Yt-=Nt;do Ft[ht++]=Rt[Jt++];while(--Nt);Jt=ht-Kt,Qt=Ft}for(;Yt>2;)Ft[ht++]=Qt[Jt++],Ft[ht++]=Qt[Jt++],Ft[ht++]=Qt[Jt++],Yt-=3;Yt&&(Ft[ht++]=Qt[Jt++],Yt>1&&(Ft[ht++]=Qt[Jt++]))}else{Jt=ht-Kt;do Ft[ht++]=Ft[Jt++],Ft[ht++]=Ft[Jt++],Ft[ht++]=Ft[Jt++],Yt-=3;while(Yt>2);Yt&&(Ft[ht++]=Ft[Jt++],Yt>1&&(Ft[ht++]=Ft[Jt++]))}}else if(Nt&64){nt.msg="invalid distance code",ut.mode=et;break e}else{qt=It[(qt&65535)+(zt&(1<<Nt)-1)];continue r}break}}else if(Nt&64)if(Nt&32){ut.mode=tt;break e}else{nt.msg="invalid literal/length code",ut.mode=et;break e}else{qt=Ct[(qt&65535)+(zt&(1<<Nt)-1)];continue t}break}}while(dt<pt&&ht<xt);Yt=Tt>>3,dt-=Yt,Tt-=Yt<<3,zt&=(1<<Tt)-1,nt.next_in=dt,nt.next_out=ht,nt.avail_in=dt<pt?5+(pt-dt):5-(dt-pt),nt.avail_out=ht<xt?257+(xt-ht):257-(ht-xt),ut.hold=zt,ut.bits=Tt},inffast}var inftrees,hasRequiredInftrees;function requireInftrees(){if(hasRequiredInftrees)return inftrees;hasRequiredInftrees=1;var et=requireCommon(),tt=15,rt=852,nt=592,lt=0,ut=1,dt=2,pt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],ht=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],mt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],xt=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return inftrees=function(vt,Ot,At,Rt,zt,Tt,Ct,It){var Dt=It.bits,kt=0,qt=0,Nt=0,Yt=0,Kt=0,Jt=0,Qt=0,Bt=0,Ft=0,$t=0,jt,Wt,Ut,Vt,Ht,Gt=null,Zt=0,Xt,er=new et.Buf16(tt+1),nr=new et.Buf16(tt+1),or=null,rr=0,cr,ir,dr;for(kt=0;kt<=tt;kt++)er[kt]=0;for(qt=0;qt<Rt;qt++)er[Ot[At+qt]]++;for(Kt=Dt,Yt=tt;Yt>=1&&er[Yt]===0;Yt--);if(Kt>Yt&&(Kt=Yt),Yt===0)return zt[Tt++]=1<<24|64<<16|0,zt[Tt++]=1<<24|64<<16|0,It.bits=1,0;for(Nt=1;Nt<Yt&&er[Nt]===0;Nt++);for(Kt<Nt&&(Kt=Nt),Bt=1,kt=1;kt<=tt;kt++)if(Bt<<=1,Bt-=er[kt],Bt<0)return-1;if(Bt>0&&(vt===lt||Yt!==1))return-1;for(nr[1]=0,kt=1;kt<tt;kt++)nr[kt+1]=nr[kt]+er[kt];for(qt=0;qt<Rt;qt++)Ot[At+qt]!==0&&(Ct[nr[Ot[At+qt]]++]=qt);if(vt===lt?(Gt=or=Ct,Xt=19):vt===ut?(Gt=pt,Zt-=257,or=ht,rr-=257,Xt=256):(Gt=mt,or=xt,Xt=-1),$t=0,qt=0,kt=Nt,Ht=Tt,Jt=Kt,Qt=0,Ut=-1,Ft=1<<Kt,Vt=Ft-1,vt===ut&&Ft>rt||vt===dt&&Ft>nt)return 1;for(;;){cr=kt-Qt,Ct[qt]<Xt?(ir=0,dr=Ct[qt]):Ct[qt]>Xt?(ir=or[rr+Ct[qt]],dr=Gt[Zt+Ct[qt]]):(ir=96,dr=0),jt=1<<kt-Qt,Wt=1<<Jt,Nt=Wt;do Wt-=jt,zt[Ht+($t>>Qt)+Wt]=cr<<24|ir<<16|dr|0;while(Wt!==0);for(jt=1<<kt-1;$t&jt;)jt>>=1;if(jt!==0?($t&=jt-1,$t+=jt):$t=0,qt++,--er[kt]===0){if(kt===Yt)break;kt=Ot[At+Ct[qt]]}if(kt>Kt&&($t&Vt)!==Ut){for(Qt===0&&(Qt=Kt),Ht+=Nt,Jt=kt-Qt,Bt=1<<Jt;Jt+Qt<Yt&&(Bt-=er[Jt+Qt],!(Bt<=0));)Jt++,Bt<<=1;if(Ft+=1<<Jt,vt===ut&&Ft>rt||vt===dt&&Ft>nt)return 1;Ut=$t&Vt,zt[Ut]=Kt<<24|Jt<<16|Ht-Tt|0}}return $t!==0&&(zt[Ht+$t]=kt-Qt<<24|64<<16|0),It.bits=Kt,0},inftrees}var hasRequiredInflate;function requireInflate(){if(hasRequiredInflate)return inflate;hasRequiredInflate=1;var et=requireCommon(),tt=requireAdler32(),rt=requireCrc32(),nt=requireInffast(),lt=requireInftrees(),ut=0,dt=1,pt=2,ht=4,mt=5,xt=6,Mt=0,vt=1,Ot=2,At=-2,Rt=-3,zt=-4,Tt=-5,Ct=8,It=1,Dt=2,kt=3,qt=4,Nt=5,Yt=6,Kt=7,Jt=8,Qt=9,Bt=10,Ft=11,$t=12,jt=13,Wt=14,Ut=15,Vt=16,Ht=17,Gt=18,Zt=19,Xt=20,er=21,nr=22,or=23,rr=24,cr=25,ir=26,dr=27,gr=28,br=29,ar=30,ur=31,xr=32,Mr=852,Ar=592,Ir=15,Rr=Ir;function wr(Qr){return(Qr>>>24&255)+(Qr>>>8&65280)+((Qr&65280)<<8)+((Qr&255)<<24)}function qr(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new et.Buf16(320),this.work=new et.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Hr(Qr){var rn;return!Qr||!Qr.state?At:(rn=Qr.state,Qr.total_in=Qr.total_out=rn.total=0,Qr.msg="",rn.wrap&&(Qr.adler=rn.wrap&1),rn.mode=It,rn.last=0,rn.havedict=0,rn.dmax=32768,rn.head=null,rn.hold=0,rn.bits=0,rn.lencode=rn.lendyn=new et.Buf32(Mr),rn.distcode=rn.distdyn=new et.Buf32(Ar),rn.sane=1,rn.back=-1,Mt)}function kr(Qr){var rn;return!Qr||!Qr.state?At:(rn=Qr.state,rn.wsize=0,rn.whave=0,rn.wnext=0,Hr(Qr))}function $r(Qr,rn){var _r,ln;return!Qr||!Qr.state||(ln=Qr.state,rn<0?(_r=0,rn=-rn):(_r=(rn>>4)+1,rn<48&&(rn&=15)),rn&&(rn<8||rn>15))?At:(ln.window!==null&&ln.wbits!==rn&&(ln.window=null),ln.wrap=_r,ln.wbits=rn,kr(Qr))}function yr(Qr,rn){var _r,ln;return Qr?(ln=new qr,Qr.state=ln,ln.window=null,_r=$r(Qr,rn),_r!==Mt&&(Qr.state=null),_r):At}function Or(Qr){return yr(Qr,Rr)}var Dr=!0,Fr,Yr;function Gr(Qr){if(Dr){var rn;for(Fr=new et.Buf32(512),Yr=new et.Buf32(32),rn=0;rn<144;)Qr.lens[rn++]=8;for(;rn<256;)Qr.lens[rn++]=9;for(;rn<280;)Qr.lens[rn++]=7;for(;rn<288;)Qr.lens[rn++]=8;for(lt(dt,Qr.lens,0,288,Fr,0,Qr.work,{bits:9}),rn=0;rn<32;)Qr.lens[rn++]=5;lt(pt,Qr.lens,0,32,Yr,0,Qr.work,{bits:5}),Dr=!1}Qr.lencode=Fr,Qr.lenbits=9,Qr.distcode=Yr,Qr.distbits=5}function Jr(Qr,rn,_r,ln){var vn,Cr=Qr.state;return Cr.window===null&&(Cr.wsize=1<<Cr.wbits,Cr.wnext=0,Cr.whave=0,Cr.window=new et.Buf8(Cr.wsize)),ln>=Cr.wsize?(et.arraySet(Cr.window,rn,_r-Cr.wsize,Cr.wsize,0),Cr.wnext=0,Cr.whave=Cr.wsize):(vn=Cr.wsize-Cr.wnext,vn>ln&&(vn=ln),et.arraySet(Cr.window,rn,_r-ln,vn,Cr.wnext),ln-=vn,ln?(et.arraySet(Cr.window,rn,_r-ln,ln,0),Cr.wnext=ln,Cr.whave=Cr.wsize):(Cr.wnext+=vn,Cr.wnext===Cr.wsize&&(Cr.wnext=0),Cr.whave<Cr.wsize&&(Cr.whave+=vn))),0}function jr(Qr,rn){var _r,ln,vn,Cr,gn,xn,Vr,fn,pn,qn,Bn,Kr,Tr,Pr,an=0,nn,Mn,An,Vn,Cn,kn,Qn,Gn,Un=new et.Buf8(4),jn,In,Kn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Qr||!Qr.state||!Qr.output||!Qr.input&&Qr.avail_in!==0)return At;_r=Qr.state,_r.mode===$t&&(_r.mode=jt),gn=Qr.next_out,vn=Qr.output,Vr=Qr.avail_out,Cr=Qr.next_in,ln=Qr.input,xn=Qr.avail_in,fn=_r.hold,pn=_r.bits,qn=xn,Bn=Vr,Gn=Mt;e:for(;;)switch(_r.mode){case It:if(_r.wrap===0){_r.mode=jt;break}for(;pn<16;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(_r.wrap&2&&fn===35615){_r.check=0,Un[0]=fn&255,Un[1]=fn>>>8&255,_r.check=rt(_r.check,Un,2,0),fn=0,pn=0,_r.mode=Dt;break}if(_r.flags=0,_r.head&&(_r.head.done=!1),!(_r.wrap&1)||(((fn&255)<<8)+(fn>>8))%31){Qr.msg="incorrect header check",_r.mode=ar;break}if((fn&15)!==Ct){Qr.msg="unknown compression method",_r.mode=ar;break}if(fn>>>=4,pn-=4,Qn=(fn&15)+8,_r.wbits===0)_r.wbits=Qn;else if(Qn>_r.wbits){Qr.msg="invalid window size",_r.mode=ar;break}_r.dmax=1<<Qn,Qr.adler=_r.check=1,_r.mode=fn&512?Bt:$t,fn=0,pn=0;break;case Dt:for(;pn<16;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(_r.flags=fn,(_r.flags&255)!==Ct){Qr.msg="unknown compression method",_r.mode=ar;break}if(_r.flags&57344){Qr.msg="unknown header flags set",_r.mode=ar;break}_r.head&&(_r.head.text=fn>>8&1),_r.flags&512&&(Un[0]=fn&255,Un[1]=fn>>>8&255,_r.check=rt(_r.check,Un,2,0)),fn=0,pn=0,_r.mode=kt;case kt:for(;pn<32;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}_r.head&&(_r.head.time=fn),_r.flags&512&&(Un[0]=fn&255,Un[1]=fn>>>8&255,Un[2]=fn>>>16&255,Un[3]=fn>>>24&255,_r.check=rt(_r.check,Un,4,0)),fn=0,pn=0,_r.mode=qt;case qt:for(;pn<16;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}_r.head&&(_r.head.xflags=fn&255,_r.head.os=fn>>8),_r.flags&512&&(Un[0]=fn&255,Un[1]=fn>>>8&255,_r.check=rt(_r.check,Un,2,0)),fn=0,pn=0,_r.mode=Nt;case Nt:if(_r.flags&1024){for(;pn<16;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}_r.length=fn,_r.head&&(_r.head.extra_len=fn),_r.flags&512&&(Un[0]=fn&255,Un[1]=fn>>>8&255,_r.check=rt(_r.check,Un,2,0)),fn=0,pn=0}else _r.head&&(_r.head.extra=null);_r.mode=Yt;case Yt:if(_r.flags&1024&&(Kr=_r.length,Kr>xn&&(Kr=xn),Kr&&(_r.head&&(Qn=_r.head.extra_len-_r.length,_r.head.extra||(_r.head.extra=new Array(_r.head.extra_len)),et.arraySet(_r.head.extra,ln,Cr,Kr,Qn)),_r.flags&512&&(_r.check=rt(_r.check,ln,Kr,Cr)),xn-=Kr,Cr+=Kr,_r.length-=Kr),_r.length))break e;_r.length=0,_r.mode=Kt;case Kt:if(_r.flags&2048){if(xn===0)break e;Kr=0;do Qn=ln[Cr+Kr++],_r.head&&Qn&&_r.length<65536&&(_r.head.name+=String.fromCharCode(Qn));while(Qn&&Kr<xn);if(_r.flags&512&&(_r.check=rt(_r.check,ln,Kr,Cr)),xn-=Kr,Cr+=Kr,Qn)break e}else _r.head&&(_r.head.name=null);_r.length=0,_r.mode=Jt;case Jt:if(_r.flags&4096){if(xn===0)break e;Kr=0;do Qn=ln[Cr+Kr++],_r.head&&Qn&&_r.length<65536&&(_r.head.comment+=String.fromCharCode(Qn));while(Qn&&Kr<xn);if(_r.flags&512&&(_r.check=rt(_r.check,ln,Kr,Cr)),xn-=Kr,Cr+=Kr,Qn)break e}else _r.head&&(_r.head.comment=null);_r.mode=Qt;case Qt:if(_r.flags&512){for(;pn<16;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(fn!==(_r.check&65535)){Qr.msg="header crc mismatch",_r.mode=ar;break}fn=0,pn=0}_r.head&&(_r.head.hcrc=_r.flags>>9&1,_r.head.done=!0),Qr.adler=_r.check=0,_r.mode=$t;break;case Bt:for(;pn<32;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}Qr.adler=_r.check=wr(fn),fn=0,pn=0,_r.mode=Ft;case Ft:if(_r.havedict===0)return Qr.next_out=gn,Qr.avail_out=Vr,Qr.next_in=Cr,Qr.avail_in=xn,_r.hold=fn,_r.bits=pn,Ot;Qr.adler=_r.check=1,_r.mode=$t;case $t:if(rn===mt||rn===xt)break e;case jt:if(_r.last){fn>>>=pn&7,pn-=pn&7,_r.mode=dr;break}for(;pn<3;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}switch(_r.last=fn&1,fn>>>=1,pn-=1,fn&3){case 0:_r.mode=Wt;break;case 1:if(Gr(_r),_r.mode=Xt,rn===xt){fn>>>=2,pn-=2;break e}break;case 2:_r.mode=Ht;break;case 3:Qr.msg="invalid block type",_r.mode=ar}fn>>>=2,pn-=2;break;case Wt:for(fn>>>=pn&7,pn-=pn&7;pn<32;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if((fn&65535)!==(fn>>>16^65535)){Qr.msg="invalid stored block lengths",_r.mode=ar;break}if(_r.length=fn&65535,fn=0,pn=0,_r.mode=Ut,rn===xt)break e;case Ut:_r.mode=Vt;case Vt:if(Kr=_r.length,Kr){if(Kr>xn&&(Kr=xn),Kr>Vr&&(Kr=Vr),Kr===0)break e;et.arraySet(vn,ln,Cr,Kr,gn),xn-=Kr,Cr+=Kr,Vr-=Kr,gn+=Kr,_r.length-=Kr;break}_r.mode=$t;break;case Ht:for(;pn<14;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(_r.nlen=(fn&31)+257,fn>>>=5,pn-=5,_r.ndist=(fn&31)+1,fn>>>=5,pn-=5,_r.ncode=(fn&15)+4,fn>>>=4,pn-=4,_r.nlen>286||_r.ndist>30){Qr.msg="too many length or distance symbols",_r.mode=ar;break}_r.have=0,_r.mode=Gt;case Gt:for(;_r.have<_r.ncode;){for(;pn<3;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}_r.lens[Kn[_r.have++]]=fn&7,fn>>>=3,pn-=3}for(;_r.have<19;)_r.lens[Kn[_r.have++]]=0;if(_r.lencode=_r.lendyn,_r.lenbits=7,jn={bits:_r.lenbits},Gn=lt(ut,_r.lens,0,19,_r.lencode,0,_r.work,jn),_r.lenbits=jn.bits,Gn){Qr.msg="invalid code lengths set",_r.mode=ar;break}_r.have=0,_r.mode=Zt;case Zt:for(;_r.have<_r.nlen+_r.ndist;){for(;an=_r.lencode[fn&(1<<_r.lenbits)-1],nn=an>>>24,Mn=an>>>16&255,An=an&65535,!(nn<=pn);){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(An<16)fn>>>=nn,pn-=nn,_r.lens[_r.have++]=An;else{if(An===16){for(In=nn+2;pn<In;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(fn>>>=nn,pn-=nn,_r.have===0){Qr.msg="invalid bit length repeat",_r.mode=ar;break}Qn=_r.lens[_r.have-1],Kr=3+(fn&3),fn>>>=2,pn-=2}else if(An===17){for(In=nn+3;pn<In;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}fn>>>=nn,pn-=nn,Qn=0,Kr=3+(fn&7),fn>>>=3,pn-=3}else{for(In=nn+7;pn<In;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}fn>>>=nn,pn-=nn,Qn=0,Kr=11+(fn&127),fn>>>=7,pn-=7}if(_r.have+Kr>_r.nlen+_r.ndist){Qr.msg="invalid bit length repeat",_r.mode=ar;break}for(;Kr--;)_r.lens[_r.have++]=Qn}}if(_r.mode===ar)break;if(_r.lens[256]===0){Qr.msg="invalid code -- missing end-of-block",_r.mode=ar;break}if(_r.lenbits=9,jn={bits:_r.lenbits},Gn=lt(dt,_r.lens,0,_r.nlen,_r.lencode,0,_r.work,jn),_r.lenbits=jn.bits,Gn){Qr.msg="invalid literal/lengths set",_r.mode=ar;break}if(_r.distbits=6,_r.distcode=_r.distdyn,jn={bits:_r.distbits},Gn=lt(pt,_r.lens,_r.nlen,_r.ndist,_r.distcode,0,_r.work,jn),_r.distbits=jn.bits,Gn){Qr.msg="invalid distances set",_r.mode=ar;break}if(_r.mode=Xt,rn===xt)break e;case Xt:_r.mode=er;case er:if(xn>=6&&Vr>=258){Qr.next_out=gn,Qr.avail_out=Vr,Qr.next_in=Cr,Qr.avail_in=xn,_r.hold=fn,_r.bits=pn,nt(Qr,Bn),gn=Qr.next_out,vn=Qr.output,Vr=Qr.avail_out,Cr=Qr.next_in,ln=Qr.input,xn=Qr.avail_in,fn=_r.hold,pn=_r.bits,_r.mode===$t&&(_r.back=-1);break}for(_r.back=0;an=_r.lencode[fn&(1<<_r.lenbits)-1],nn=an>>>24,Mn=an>>>16&255,An=an&65535,!(nn<=pn);){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(Mn&&!(Mn&240)){for(Vn=nn,Cn=Mn,kn=An;an=_r.lencode[kn+((fn&(1<<Vn+Cn)-1)>>Vn)],nn=an>>>24,Mn=an>>>16&255,An=an&65535,!(Vn+nn<=pn);){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}fn>>>=Vn,pn-=Vn,_r.back+=Vn}if(fn>>>=nn,pn-=nn,_r.back+=nn,_r.length=An,Mn===0){_r.mode=ir;break}if(Mn&32){_r.back=-1,_r.mode=$t;break}if(Mn&64){Qr.msg="invalid literal/length code",_r.mode=ar;break}_r.extra=Mn&15,_r.mode=nr;case nr:if(_r.extra){for(In=_r.extra;pn<In;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}_r.length+=fn&(1<<_r.extra)-1,fn>>>=_r.extra,pn-=_r.extra,_r.back+=_r.extra}_r.was=_r.length,_r.mode=or;case or:for(;an=_r.distcode[fn&(1<<_r.distbits)-1],nn=an>>>24,Mn=an>>>16&255,An=an&65535,!(nn<=pn);){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(!(Mn&240)){for(Vn=nn,Cn=Mn,kn=An;an=_r.distcode[kn+((fn&(1<<Vn+Cn)-1)>>Vn)],nn=an>>>24,Mn=an>>>16&255,An=an&65535,!(Vn+nn<=pn);){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}fn>>>=Vn,pn-=Vn,_r.back+=Vn}if(fn>>>=nn,pn-=nn,_r.back+=nn,Mn&64){Qr.msg="invalid distance code",_r.mode=ar;break}_r.offset=An,_r.extra=Mn&15,_r.mode=rr;case rr:if(_r.extra){for(In=_r.extra;pn<In;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}_r.offset+=fn&(1<<_r.extra)-1,fn>>>=_r.extra,pn-=_r.extra,_r.back+=_r.extra}if(_r.offset>_r.dmax){Qr.msg="invalid distance too far back",_r.mode=ar;break}_r.mode=cr;case cr:if(Vr===0)break e;if(Kr=Bn-Vr,_r.offset>Kr){if(Kr=_r.offset-Kr,Kr>_r.whave&&_r.sane){Qr.msg="invalid distance too far back",_r.mode=ar;break}Kr>_r.wnext?(Kr-=_r.wnext,Tr=_r.wsize-Kr):Tr=_r.wnext-Kr,Kr>_r.length&&(Kr=_r.length),Pr=_r.window}else Pr=vn,Tr=gn-_r.offset,Kr=_r.length;Kr>Vr&&(Kr=Vr),Vr-=Kr,_r.length-=Kr;do vn[gn++]=Pr[Tr++];while(--Kr);_r.length===0&&(_r.mode=er);break;case ir:if(Vr===0)break e;vn[gn++]=_r.length,Vr--,_r.mode=er;break;case dr:if(_r.wrap){for(;pn<32;){if(xn===0)break e;xn--,fn|=ln[Cr++]<<pn,pn+=8}if(Bn-=Vr,Qr.total_out+=Bn,_r.total+=Bn,Bn&&(Qr.adler=_r.check=_r.flags?rt(_r.check,vn,Bn,gn-Bn):tt(_r.check,vn,Bn,gn-Bn)),Bn=Vr,(_r.flags?fn:wr(fn))!==_r.check){Qr.msg="incorrect data check",_r.mode=ar;break}fn=0,pn=0}_r.mode=gr;case gr:if(_r.wrap&&_r.flags){for(;pn<32;){if(xn===0)break e;xn--,fn+=ln[Cr++]<<pn,pn+=8}if(fn!==(_r.total&4294967295)){Qr.msg="incorrect length check",_r.mode=ar;break}fn=0,pn=0}_r.mode=br;case br:Gn=vt;break e;case ar:Gn=Rt;break e;case ur:return zt;case xr:default:return At}return Qr.next_out=gn,Qr.avail_out=Vr,Qr.next_in=Cr,Qr.avail_in=xn,_r.hold=fn,_r.bits=pn,(_r.wsize||Bn!==Qr.avail_out&&_r.mode<ar&&(_r.mode<dr||rn!==ht))&&Jr(Qr,Qr.output,Qr.next_out,Bn-Qr.avail_out),qn-=Qr.avail_in,Bn-=Qr.avail_out,Qr.total_in+=qn,Qr.total_out+=Bn,_r.total+=Bn,_r.wrap&&Bn&&(Qr.adler=_r.check=_r.flags?rt(_r.check,vn,Bn,Qr.next_out-Bn):tt(_r.check,vn,Bn,Qr.next_out-Bn)),Qr.data_type=_r.bits+(_r.last?64:0)+(_r.mode===$t?128:0)+(_r.mode===Xt||_r.mode===Ut?256:0),(qn===0&&Bn===0||rn===ht)&&Gn===Mt&&(Gn=Tt),Gn}function Zr(Qr){if(!Qr||!Qr.state)return At;var rn=Qr.state;return rn.window&&(rn.window=null),Qr.state=null,Mt}function Xr(Qr,rn){var _r;return!Qr||!Qr.state||(_r=Qr.state,!(_r.wrap&2))?At:(_r.head=rn,rn.done=!1,Mt)}function cn(Qr,rn){var _r=rn.length,ln,vn,Cr;return!Qr||!Qr.state||(ln=Qr.state,ln.wrap!==0&&ln.mode!==Ft)?At:ln.mode===Ft&&(vn=1,vn=tt(vn,rn,_r,0),vn!==ln.check)?Rt:(Cr=Jr(Qr,rn,_r,_r),Cr?(ln.mode=ur,zt):(ln.havedict=1,Mt))}return inflate.inflateReset=kr,inflate.inflateReset2=$r,inflate.inflateResetKeep=Hr,inflate.inflateInit=Or,inflate.inflateInit2=yr,inflate.inflate=jr,inflate.inflateEnd=Zr,inflate.inflateGetHeader=Xr,inflate.inflateSetDictionary=cn,inflate.inflateInfo="pako inflate (from Nodeca project)",inflate}var constants$1,hasRequiredConstants$1;function requireConstants$1(){return hasRequiredConstants$1||(hasRequiredConstants$1=1,constants$1={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),constants$1}var hasRequiredBinding;function requireBinding(){return hasRequiredBinding||(hasRequiredBinding=1,function(et){var tt=requireAssert(),rt=requireZstream(),nt=requireDeflate(),lt=requireInflate(),ut=requireConstants$1();for(var dt in ut)et[dt]=ut[dt];et.NONE=0,et.DEFLATE=1,et.INFLATE=2,et.GZIP=3,et.GUNZIP=4,et.DEFLATERAW=5,et.INFLATERAW=6,et.UNZIP=7;var pt=31,ht=139;function mt(xt){if(typeof xt!="number"||xt<et.DEFLATE||xt>et.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=xt,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}mt.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,tt(this.init_done,"close before init"),tt(this.mode<=et.UNZIP),this.mode===et.DEFLATE||this.mode===et.GZIP||this.mode===et.DEFLATERAW?nt.deflateEnd(this.strm):(this.mode===et.INFLATE||this.mode===et.GUNZIP||this.mode===et.INFLATERAW||this.mode===et.UNZIP)&&lt.inflateEnd(this.strm),this.mode=et.NONE,this.dictionary=null},mt.prototype.write=function(xt,Mt,vt,Ot,At,Rt,zt){return this._write(!0,xt,Mt,vt,Ot,At,Rt,zt)},mt.prototype.writeSync=function(xt,Mt,vt,Ot,At,Rt,zt){return this._write(!1,xt,Mt,vt,Ot,At,Rt,zt)},mt.prototype._write=function(xt,Mt,vt,Ot,At,Rt,zt,Tt){if(tt.equal(arguments.length,8),tt(this.init_done,"write before init"),tt(this.mode!==et.NONE,"already finalized"),tt.equal(!1,this.write_in_progress,"write already in progress"),tt.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,tt.equal(!1,Mt===void 0,"must provide flush value"),this.write_in_progress=!0,Mt!==et.Z_NO_FLUSH&&Mt!==et.Z_PARTIAL_FLUSH&&Mt!==et.Z_SYNC_FLUSH&&Mt!==et.Z_FULL_FLUSH&&Mt!==et.Z_FINISH&&Mt!==et.Z_BLOCK)throw new Error("Invalid flush value");if(vt==null&&(vt=Buffer$E.alloc(0),At=0,Ot=0),this.strm.avail_in=At,this.strm.input=vt,this.strm.next_in=Ot,this.strm.avail_out=Tt,this.strm.output=Rt,this.strm.next_out=zt,this.flush=Mt,!xt)return this._process(),this._checkError()?this._afterSync():void 0;var Ct=this;return process$1$1.nextTick(function(){Ct._process(),Ct._after()}),this},mt.prototype._afterSync=function(){var xt=this.strm.avail_out,Mt=this.strm.avail_in;return this.write_in_progress=!1,[Mt,xt]},mt.prototype._process=function(){var xt=null;switch(this.mode){case et.DEFLATE:case et.GZIP:case et.DEFLATERAW:this.err=nt.deflate(this.strm,this.flush);break;case et.UNZIP:switch(this.strm.avail_in>0&&(xt=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(xt===null)break;if(this.strm.input[xt]===pt){if(this.gzip_id_bytes_read=1,xt++,this.strm.avail_in===1)break}else{this.mode=et.INFLATE;break}case 1:if(xt===null)break;this.strm.input[xt]===ht?(this.gzip_id_bytes_read=2,this.mode=et.GUNZIP):this.mode=et.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case et.INFLATE:case et.GUNZIP:case et.INFLATERAW:for(this.err=lt.inflate(this.strm,this.flush),this.err===et.Z_NEED_DICT&&this.dictionary&&(this.err=lt.inflateSetDictionary(this.strm,this.dictionary),this.err===et.Z_OK?this.err=lt.inflate(this.strm,this.flush):this.err===et.Z_DATA_ERROR&&(this.err=et.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===et.GUNZIP&&this.err===et.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=lt.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},mt.prototype._checkError=function(){switch(this.err){case et.Z_OK:case et.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===et.Z_FINISH)return this._error("unexpected end of file"),!1;break;case et.Z_STREAM_END:break;case et.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},mt.prototype._after=function(){if(this._checkError()){var xt=this.strm.avail_out,Mt=this.strm.avail_in;this.write_in_progress=!1,this.callback(Mt,xt),this.pending_close&&this.close()}},mt.prototype._error=function(xt){this.strm.msg&&(xt=this.strm.msg),this.onerror(xt,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},mt.prototype.init=function(xt,Mt,vt,Ot,At){tt(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),tt(xt>=8&&xt<=15,"invalid windowBits"),tt(Mt>=-1&&Mt<=9,"invalid compression level"),tt(vt>=1&&vt<=9,"invalid memlevel"),tt(Ot===et.Z_FILTERED||Ot===et.Z_HUFFMAN_ONLY||Ot===et.Z_RLE||Ot===et.Z_FIXED||Ot===et.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(Mt,xt,vt,Ot,At),this._setDictionary()},mt.prototype.params=function(){throw new Error("deflateParams Not supported")},mt.prototype.reset=function(){this._reset(),this._setDictionary()},mt.prototype._init=function(xt,Mt,vt,Ot,At){switch(this.level=xt,this.windowBits=Mt,this.memLevel=vt,this.strategy=Ot,this.flush=et.Z_NO_FLUSH,this.err=et.Z_OK,(this.mode===et.GZIP||this.mode===et.GUNZIP)&&(this.windowBits+=16),this.mode===et.UNZIP&&(this.windowBits+=32),(this.mode===et.DEFLATERAW||this.mode===et.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new rt,this.mode){case et.DEFLATE:case et.GZIP:case et.DEFLATERAW:this.err=nt.deflateInit2(this.strm,this.level,et.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case et.INFLATE:case et.GUNZIP:case et.INFLATERAW:case et.UNZIP:this.err=lt.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==et.Z_OK&&this._error("Init error"),this.dictionary=At,this.write_in_progress=!1,this.init_done=!0},mt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=et.Z_OK,this.mode){case et.DEFLATE:case et.DEFLATERAW:this.err=nt.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==et.Z_OK&&this._error("Failed to set dictionary")}},mt.prototype._reset=function(){switch(this.err=et.Z_OK,this.mode){case et.DEFLATE:case et.DEFLATERAW:case et.GZIP:this.err=nt.deflateReset(this.strm);break;case et.INFLATE:case et.INFLATERAW:case et.GUNZIP:this.err=lt.inflateReset(this.strm);break}this.err!==et.Z_OK&&this._error("Failed to reset stream")},et.Zlib=mt}(binding)),binding}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(et){var tt=dist$5.Buffer,rt=streamBrowserify.Transform,nt=requireBinding(),lt=util$a,ut=requireAssert().ok,dt=dist$5.kMaxLength,pt="Cannot create final Buffer. It would be larger than 0x"+dt.toString(16)+" bytes";nt.Z_MIN_WINDOWBITS=8,nt.Z_MAX_WINDOWBITS=15,nt.Z_DEFAULT_WINDOWBITS=15,nt.Z_MIN_CHUNK=64,nt.Z_MAX_CHUNK=1/0,nt.Z_DEFAULT_CHUNK=16*1024,nt.Z_MIN_MEMLEVEL=1,nt.Z_MAX_MEMLEVEL=9,nt.Z_DEFAULT_MEMLEVEL=8,nt.Z_MIN_LEVEL=-1,nt.Z_MAX_LEVEL=9,nt.Z_DEFAULT_LEVEL=nt.Z_DEFAULT_COMPRESSION;for(var ht=Object.keys(nt),mt=0;mt<ht.length;mt++){var xt=ht[mt];xt.match(/^Z/)&&Object.defineProperty(et,xt,{enumerable:!0,value:nt[xt],writable:!1})}for(var Mt={Z_OK:nt.Z_OK,Z_STREAM_END:nt.Z_STREAM_END,Z_NEED_DICT:nt.Z_NEED_DICT,Z_ERRNO:nt.Z_ERRNO,Z_STREAM_ERROR:nt.Z_STREAM_ERROR,Z_DATA_ERROR:nt.Z_DATA_ERROR,Z_MEM_ERROR:nt.Z_MEM_ERROR,Z_BUF_ERROR:nt.Z_BUF_ERROR,Z_VERSION_ERROR:nt.Z_VERSION_ERROR},vt=Object.keys(Mt),Ot=0;Ot<vt.length;Ot++){var At=vt[Ot];Mt[Mt[At]]=At}Object.defineProperty(et,"codes",{enumerable:!0,value:Object.freeze(Mt),writable:!1}),et.Deflate=Tt,et.Inflate=Ct,et.Gzip=It,et.Gunzip=Dt,et.DeflateRaw=kt,et.InflateRaw=qt,et.Unzip=Nt,et.createDeflate=function(Bt){return new Tt(Bt)},et.createInflate=function(Bt){return new Ct(Bt)},et.createDeflateRaw=function(Bt){return new kt(Bt)},et.createInflateRaw=function(Bt){return new qt(Bt)},et.createGzip=function(Bt){return new It(Bt)},et.createGunzip=function(Bt){return new Dt(Bt)},et.createUnzip=function(Bt){return new Nt(Bt)},et.deflate=function(Bt,Ft,$t){return typeof Ft=="function"&&($t=Ft,Ft={}),Rt(new Tt(Ft),Bt,$t)},et.deflateSync=function(Bt,Ft){return zt(new Tt(Ft),Bt)},et.gzip=function(Bt,Ft,$t){return typeof Ft=="function"&&($t=Ft,Ft={}),Rt(new It(Ft),Bt,$t)},et.gzipSync=function(Bt,Ft){return zt(new It(Ft),Bt)},et.deflateRaw=function(Bt,Ft,$t){return typeof Ft=="function"&&($t=Ft,Ft={}),Rt(new kt(Ft),Bt,$t)},et.deflateRawSync=function(Bt,Ft){return zt(new kt(Ft),Bt)},et.unzip=function(Bt,Ft,$t){return typeof Ft=="function"&&($t=Ft,Ft={}),Rt(new Nt(Ft),Bt,$t)},et.unzipSync=function(Bt,Ft){return zt(new Nt(Ft),Bt)},et.inflate=function(Bt,Ft,$t){return typeof Ft=="function"&&($t=Ft,Ft={}),Rt(new Ct(Ft),Bt,$t)},et.inflateSync=function(Bt,Ft){return zt(new Ct(Ft),Bt)},et.gunzip=function(Bt,Ft,$t){return typeof Ft=="function"&&($t=Ft,Ft={}),Rt(new Dt(Ft),Bt,$t)},et.gunzipSync=function(Bt,Ft){return zt(new Dt(Ft),Bt)},et.inflateRaw=function(Bt,Ft,$t){return typeof Ft=="function"&&($t=Ft,Ft={}),Rt(new qt(Ft),Bt,$t)},et.inflateRawSync=function(Bt,Ft){return zt(new qt(Ft),Bt)};function Rt(Bt,Ft,$t){var jt=[],Wt=0;Bt.on("error",Vt),Bt.on("end",Ht),Bt.end(Ft),Ut();function Ut(){for(var Gt;(Gt=Bt.read())!==null;)jt.push(Gt),Wt+=Gt.length;Bt.once("readable",Ut)}function Vt(Gt){Bt.removeListener("end",Ht),Bt.removeListener("readable",Ut),$t(Gt)}function Ht(){var Gt,Zt=null;Wt>=dt?Zt=new RangeError(pt):Gt=tt.concat(jt,Wt),jt=[],Bt.close(),$t(Zt,Gt)}}function zt(Bt,Ft){if(typeof Ft=="string"&&(Ft=tt.from(Ft)),!tt.isBuffer(Ft))throw new TypeError("Not a string or buffer");var $t=Bt._finishFlushFlag;return Bt._processChunk(Ft,$t)}function Tt(Bt){if(!(this instanceof Tt))return new Tt(Bt);Kt.call(this,Bt,nt.DEFLATE)}function Ct(Bt){if(!(this instanceof Ct))return new Ct(Bt);Kt.call(this,Bt,nt.INFLATE)}function It(Bt){if(!(this instanceof It))return new It(Bt);Kt.call(this,Bt,nt.GZIP)}function Dt(Bt){if(!(this instanceof Dt))return new Dt(Bt);Kt.call(this,Bt,nt.GUNZIP)}function kt(Bt){if(!(this instanceof kt))return new kt(Bt);Kt.call(this,Bt,nt.DEFLATERAW)}function qt(Bt){if(!(this instanceof qt))return new qt(Bt);Kt.call(this,Bt,nt.INFLATERAW)}function Nt(Bt){if(!(this instanceof Nt))return new Nt(Bt);Kt.call(this,Bt,nt.UNZIP)}function Yt(Bt){return Bt===nt.Z_NO_FLUSH||Bt===nt.Z_PARTIAL_FLUSH||Bt===nt.Z_SYNC_FLUSH||Bt===nt.Z_FULL_FLUSH||Bt===nt.Z_FINISH||Bt===nt.Z_BLOCK}function Kt(Bt,Ft){var $t=this;if(this._opts=Bt=Bt||{},this._chunkSize=Bt.chunkSize||et.Z_DEFAULT_CHUNK,rt.call(this,Bt),Bt.flush&&!Yt(Bt.flush))throw new Error("Invalid flush flag: "+Bt.flush);if(Bt.finishFlush&&!Yt(Bt.finishFlush))throw new Error("Invalid flush flag: "+Bt.finishFlush);if(this._flushFlag=Bt.flush||nt.Z_NO_FLUSH,this._finishFlushFlag=typeof Bt.finishFlush<"u"?Bt.finishFlush:nt.Z_FINISH,Bt.chunkSize&&(Bt.chunkSize<et.Z_MIN_CHUNK||Bt.chunkSize>et.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+Bt.chunkSize);if(Bt.windowBits&&(Bt.windowBits<et.Z_MIN_WINDOWBITS||Bt.windowBits>et.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+Bt.windowBits);if(Bt.level&&(Bt.level<et.Z_MIN_LEVEL||Bt.level>et.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+Bt.level);if(Bt.memLevel&&(Bt.memLevel<et.Z_MIN_MEMLEVEL||Bt.memLevel>et.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+Bt.memLevel);if(Bt.strategy&&Bt.strategy!=et.Z_FILTERED&&Bt.strategy!=et.Z_HUFFMAN_ONLY&&Bt.strategy!=et.Z_RLE&&Bt.strategy!=et.Z_FIXED&&Bt.strategy!=et.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+Bt.strategy);if(Bt.dictionary&&!tt.isBuffer(Bt.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new nt.Zlib(Ft);var jt=this;this._hadError=!1,this._handle.onerror=function(Vt,Ht){Jt(jt),jt._hadError=!0;var Gt=new Error(Vt);Gt.errno=Ht,Gt.code=et.codes[Ht],jt.emit("error",Gt)};var Wt=et.Z_DEFAULT_COMPRESSION;typeof Bt.level=="number"&&(Wt=Bt.level);var Ut=et.Z_DEFAULT_STRATEGY;typeof Bt.strategy=="number"&&(Ut=Bt.strategy),this._handle.init(Bt.windowBits||et.Z_DEFAULT_WINDOWBITS,Wt,Bt.memLevel||et.Z_DEFAULT_MEMLEVEL,Ut,Bt.dictionary),this._buffer=tt.allocUnsafe(this._chunkSize),this._offset=0,this._level=Wt,this._strategy=Ut,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!$t._handle},configurable:!0,enumerable:!0})}lt.inherits(Kt,rt),Kt.prototype.params=function(Bt,Ft,$t){if(Bt<et.Z_MIN_LEVEL||Bt>et.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+Bt);if(Ft!=et.Z_FILTERED&&Ft!=et.Z_HUFFMAN_ONLY&&Ft!=et.Z_RLE&&Ft!=et.Z_FIXED&&Ft!=et.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+Ft);if(this._level!==Bt||this._strategy!==Ft){var jt=this;this.flush(nt.Z_SYNC_FLUSH,function(){ut(jt._handle,"zlib binding closed"),jt._handle.params(Bt,Ft),jt._hadError||(jt._level=Bt,jt._strategy=Ft,$t&&$t())})}else process$1$1.nextTick($t)},Kt.prototype.reset=function(){return ut(this._handle,"zlib binding closed"),this._handle.reset()},Kt.prototype._flush=function(Bt){this._transform(tt.alloc(0),"",Bt)},Kt.prototype.flush=function(Bt,Ft){var $t=this,jt=this._writableState;(typeof Bt=="function"||Bt===void 0&&!Ft)&&(Ft=Bt,Bt=nt.Z_FULL_FLUSH),jt.ended?Ft&&process$1$1.nextTick(Ft):jt.ending?Ft&&this.once("end",Ft):jt.needDrain?Ft&&this.once("drain",function(){return $t.flush(Bt,Ft)}):(this._flushFlag=Bt,this.write(tt.alloc(0),"",Ft))},Kt.prototype.close=function(Bt){Jt(this,Bt),process$1$1.nextTick(Qt,this)};function Jt(Bt,Ft){Ft&&process$1$1.nextTick(Ft),Bt._handle&&(Bt._handle.close(),Bt._handle=null)}function Qt(Bt){Bt.emit("close")}Kt.prototype._transform=function(Bt,Ft,$t){var jt,Wt=this._writableState,Ut=Wt.ending||Wt.ended,Vt=Ut&&(!Bt||Wt.length===Bt.length);if(Bt!==null&&!tt.isBuffer(Bt))return $t(new Error("invalid input"));if(!this._handle)return $t(new Error("zlib binding closed"));Vt?jt=this._finishFlushFlag:(jt=this._flushFlag,Bt.length>=Wt.length&&(this._flushFlag=this._opts.flush||nt.Z_NO_FLUSH)),this._processChunk(Bt,jt,$t)},Kt.prototype._processChunk=function(Bt,Ft,$t){var jt=Bt&&Bt.length,Wt=this._chunkSize-this._offset,Ut=0,Vt=this,Ht=typeof $t=="function";if(!Ht){var Gt=[],Zt=0,Xt;this.on("error",function(cr){Xt=cr}),ut(this._handle,"zlib binding closed");do var er=this._handle.writeSync(Ft,Bt,Ut,jt,this._buffer,this._offset,Wt);while(!this._hadError&&rr(er[0],er[1]));if(this._hadError)throw Xt;if(Zt>=dt)throw Jt(this),new RangeError(pt);var nr=tt.concat(Gt,Zt);return Jt(this),nr}ut(this._handle,"zlib binding closed");var or=this._handle.write(Ft,Bt,Ut,jt,this._buffer,this._offset,Wt);or.buffer=Bt,or.callback=rr;function rr(cr,ir){if(this&&(this.buffer=null,this.callback=null),!Vt._hadError){var dr=Wt-ir;if(ut(dr>=0,"have should not go down"),dr>0){var gr=Vt._buffer.slice(Vt._offset,Vt._offset+dr);Vt._offset+=dr,Ht?Vt.push(gr):(Gt.push(gr),Zt+=gr.length)}if((ir===0||Vt._offset>=Vt._chunkSize)&&(Wt=Vt._chunkSize,Vt._offset=0,Vt._buffer=tt.allocUnsafe(Vt._chunkSize)),ir===0){if(Ut+=jt-cr,jt=cr,!Ht)return!0;var br=Vt._handle.write(Ft,Bt,Ut,jt,Vt._buffer,Vt._offset,Vt._chunkSize);br.callback=rr,br.buffer=Bt;return}if(!Ht)return!1;$t()}}},lt.inherits(Tt,Kt),lt.inherits(Ct,Kt),lt.inherits(It,Kt),lt.inherits(Dt,Kt),lt.inherits(kt,Kt),lt.inherits(qt,Kt),lt.inherits(Nt,Kt)}(lib$4)),lib$4}var readableBrowser$1={exports:{}};(function(et,tt){tt=et.exports=require_stream_readable$1(),tt.Stream=tt,tt.Readable=tt,tt.Writable=require_stream_writable$1(),tt.Duplex=require_stream_duplex$1(),tt.Transform=_stream_transform$1,tt.PassThrough=_stream_passthrough$1,tt.finished=endOfStream,tt.pipeline=pipeline_1})(readableBrowser$1,readableBrowser$1.exports);var readableBrowserExports$1=readableBrowser$1.exports,browser$c={exports:{}},adapters$1=[],modifiers=[],logger$U=function(){};function use(et){return~adapters$1.indexOf(et)?!1:(adapters$1.push(et),!0)}function set$2(et){logger$U=et}function enabled(et){for(var tt=[],rt=0;rt<adapters$1.length;rt++){if(adapters$1[rt].async){tt.push(adapters$1[rt]);continue}if(adapters$1[rt](et))return!0}return tt.length?new Promise(function(lt){Promise.all(tt.map(function(dt){return dt(et)})).then(function(dt){lt(dt.some(Boolean))})}):!1}function modify(et){return~modifiers.indexOf(et)?!1:(modifiers.push(et),!0)}function write$1(){logger$U.apply(logger$U,arguments)}function process(et){for(var tt=0;tt<modifiers.length;tt++)et=modifiers[tt].apply(modifiers[tt],arguments);return et}function introduce(et,tt){var rt=Object.prototype.hasOwnProperty;for(var nt in tt)rt.call(tt,nt)&&(et[nt]=tt[nt]);return et}function nope(et){return et.enabled=!1,et.modify=modify,et.set=set$2,et.use=use,introduce(function(){return!1},et)}function yep(et){function tt(){var rt=Array.prototype.slice.call(arguments,0);return write$1.call(write$1,et,process(rt,et)),!0}return et.enabled=!0,et.modify=modify,et.set=set$2,et.use=use,introduce(tt,et)}var diagnostics$1=function(tt){return tt.introduce=introduce,tt.enabled=enabled,tt.process=process,tt.modify=modify,tt.write=write$1,tt.nope=nope,tt.yep=yep,tt.set=set$2,tt.use=use,tt},create$8=diagnostics$1,diagnostics=create$8(function et(tt,rt){return rt=rt||{},rt.namespace=tt,rt.prod=!0,rt.dev=!1,rt.force||et.force?et.yep(rt):et.nope(rt)}),production=diagnostics;browser$c.exports=production;var browserExports$1=browser$c.exports,tailFile,hasRequiredTailFile;function requireTailFile(){if(hasRequiredTailFile)return tailFile;hasRequiredTailFile=1;var et=require$$0$4,tt=string_decoder,rt=tt.StringDecoder,nt=readableBrowserExports$1,lt=nt.Stream;function ut(){}return tailFile=function(dt,pt){var ht=Buffer$E.alloc(65536),mt=new rt("utf8"),xt=new lt,Mt="",vt=0,Ot=0;return dt.start===-1&&delete dt.start,xt.readable=!0,xt.destroy=function(){xt.destroyed=!0,xt.emit("end"),xt.emit("close")},et.open(dt.file,"a+","0644",function(At,Rt){if(At){pt?pt(At):xt.emit("error",At),xt.destroy();return}(function zt(){if(xt.destroyed){et.close(Rt,ut);return}return et.read(Rt,ht,0,ht.length,vt,function(Tt,Ct){if(Tt){pt?pt(Tt):xt.emit("error",Tt),xt.destroy();return}if(!Ct)return Mt&&((dt.start==null||Ot>dt.start)&&(pt?pt(null,Mt):xt.emit("line",Mt)),Ot++,Mt=""),setTimeout(zt,1e3);var It=mt.write(ht.slice(0,Ct));pt||xt.emit("data",It),It=(Mt+It).split(/\n+/);for(var Dt=It.length-1,kt=0;kt<Dt;kt++)(dt.start==null||Ot>dt.start)&&(pt?pt(null,It[kt]):xt.emit("line",It[kt])),Ot++;return Mt=It[Dt],vt+=Ct,zt()})})()}),pt?xt.destroy:xt},tailFile}var file,hasRequiredFile;function requireFile(){if(hasRequiredFile)return file;hasRequiredFile=1;function et(Jt){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Qt){return typeof Qt}:function(Qt){return Qt&&typeof Symbol=="function"&&Qt.constructor===Symbol&&Qt!==Symbol.prototype?"symbol":typeof Qt},et(Jt)}function tt(Jt,Qt){if(!(Jt instanceof Qt))throw new TypeError("Cannot call a class as a function")}function rt(Jt,Qt){for(var Bt=0;Bt<Qt.length;Bt++){var Ft=Qt[Bt];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Jt,lt(Ft.key),Ft)}}function nt(Jt,Qt,Bt){return Qt&&rt(Jt.prototype,Qt),Object.defineProperty(Jt,"prototype",{writable:!1}),Jt}function lt(Jt){var Qt=ut(Jt,"string");return et(Qt)=="symbol"?Qt:Qt+""}function ut(Jt,Qt){if(et(Jt)!="object"||!Jt)return Jt;var Bt=Jt[Symbol.toPrimitive];if(Bt!==void 0){var Ft=Bt.call(Jt,Qt);if(et(Ft)!="object")return Ft;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Jt)}function dt(Jt,Qt,Bt){return Qt=xt(Qt),pt(Jt,mt()?Reflect.construct(Qt,Bt||[],xt(Jt).constructor):Qt.apply(Jt,Bt))}function pt(Jt,Qt){if(Qt&&(et(Qt)=="object"||typeof Qt=="function"))return Qt;if(Qt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ht(Jt)}function ht(Jt){if(Jt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Jt}function mt(){try{var Jt=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mt=function(){return!!Jt})()}function xt(Jt){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Qt){return Qt.__proto__||Object.getPrototypeOf(Qt)},xt(Jt)}function Mt(Jt,Qt){if(typeof Qt!="function"&&Qt!==null)throw new TypeError("Super expression must either be null or a function");Jt.prototype=Object.create(Qt&&Qt.prototype,{constructor:{value:Jt,writable:!0,configurable:!0}}),Object.defineProperty(Jt,"prototype",{writable:!1}),Qt&&vt(Jt,Qt)}function vt(Jt,Qt){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Bt,Ft){return Bt.__proto__=Ft,Bt},vt(Jt,Qt)}var Ot=require$$0$4,At=requirePathBrowserify(),Rt=requireSeries(),zt=requireLib(),Tt=tripleBeam,Ct=Tt.MESSAGE,It=readableBrowserExports$1,Dt=It.Stream,kt=It.PassThrough,qt=distExports$2,Nt=browserExports$1("winston:file"),Yt=browser$f,Kt=requireTailFile();return file=function(Jt){function Qt(){var Bt,Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tt(this,Qt),Bt=dt(this,Qt,[Ft]),Bt.name=Ft.name||"file";function $t(jt){for(var Wt=arguments.length,Ut=new Array(Wt>1?Wt-1:0),Vt=1;Vt<Wt;Vt++)Ut[Vt-1]=arguments[Vt];Ut.slice(1).forEach(function(Ht){if(Ft[Ht])throw new Error("Cannot set ".concat(Ht," and ").concat(jt," together"))})}if(Bt._stream=new kt,Bt._stream.setMaxListeners(30),Bt._onError=Bt._onError.bind(Bt),Ft.filename||Ft.dirname)$t("filename or dirname","stream"),Bt._basename=Bt.filename=Ft.filename?At.basename(Ft.filename):"winston.log",Bt.dirname=Ft.dirname||At.dirname(Ft.filename),Bt.options=Ft.options||{flags:"a"};else if(Ft.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),$t("stream","filename","maxsize"),Bt._dest=Bt._stream.pipe(Bt._setupStream(Ft.stream)),Bt.dirname=At.dirname(Bt._dest.path);else throw new Error("Cannot log to file without filename or stream.");return Bt.maxsize=Ft.maxsize||null,Bt.rotationFormat=Ft.rotationFormat||!1,Bt.zippedArchive=Ft.zippedArchive||!1,Bt.maxFiles=Ft.maxFiles||null,Bt.eol=typeof Ft.eol=="string"?Ft.eol:Yt.EOL,Bt.tailable=Ft.tailable||!1,Bt.lazy=Ft.lazy||!1,Bt._size=0,Bt._pendingSize=0,Bt._created=0,Bt._drain=!1,Bt._opening=!1,Bt._ending=!1,Bt._fileExist=!1,Bt.dirname&&Bt._createLogDirIfNotExist(Bt.dirname),Bt.lazy||Bt.open(),Bt}return Mt(Qt,Jt),nt(Qt,[{key:"finishIfEnding",value:function(){var Ft=this;this._ending&&(this._opening?this.once("open",function(){Ft._stream.once("finish",function(){return Ft.emit("finish")}),setImmediate(function(){return Ft._stream.end()})}):(this._stream.once("finish",function(){return Ft.emit("finish")}),setImmediate(function(){return Ft._stream.end()})))}},{key:"log",value:function(Ft){var $t=this,jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return jt(),!0;if(this._drain){this._stream.once("drain",function(){$t._drain=!1,$t.log(Ft,jt)});return}if(this._rotate){this._stream.once("rotate",function(){$t._rotate=!1,$t.log(Ft,jt)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",function(){$t._fileExist=!0,$t.log(Ft,jt)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",function(){$t._opening||$t.open(),$t.once("open",function(){$t.log(Ft,jt)})});return}}var Wt="".concat(Ft[Ct]).concat(this.eol),Ut=Buffer$E.byteLength(Wt);function Vt(){var Gt=this;if(this._size+=Ut,this._pendingSize-=Ut,Nt("logged %s %s",this._size,Wt),this.emit("logged",Ft),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(function(){Gt.emit("fileclosed")});return}this._rotate=!0,this._endStream(function(){return Gt._rotateFile()})}}this._pendingSize+=Ut,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var Ht=this._stream.write(Wt,Vt.bind(this));return Ht?jt():(this._drain=!0,this._stream.once("drain",function(){$t._drain=!1,jt()})),Nt("written",Ht,this._drain),this.finishIfEnding(),Ht}},{key:"query",value:function(Ft,$t){typeof Ft=="function"&&($t=Ft,Ft={}),Ft=er(Ft);var jt=At.join(this.dirname,this.filename),Wt="",Ut=[],Vt=0,Ht=Ot.createReadStream(jt,{encoding:"utf8"});Ht.on("error",function(nr){if(Ht.readable&&Ht.destroy(),!!$t)return nr.code!=="ENOENT"?$t(nr):$t(null,Ut)}),Ht.on("data",function(nr){nr=(Wt+nr).split(/\n+/);for(var or=nr.length-1,rr=0;rr<or;rr++)(!Ft.start||Vt>=Ft.start)&&Gt(nr[rr]),Vt++;Wt=nr[or]}),Ht.on("close",function(){Wt&&Gt(Wt,!0),Ft.order==="desc"&&(Ut=Ut.reverse()),$t&&$t(null,Ut)});function Gt(nr,or){try{var rr=JSON.parse(nr);Xt(rr)&&Zt(rr)}catch(cr){or||Ht.emit("error",cr)}}function Zt(nr){if(Ft.rows&&Ut.length>=Ft.rows&&Ft.order!=="desc"){Ht.readable&&Ht.destroy();return}Ft.fields&&(nr=Ft.fields.reduce(function(or,rr){return or[rr]=nr[rr],or},{})),Ft.order==="desc"&&Ut.length>=Ft.rows&&Ut.shift(),Ut.push(nr)}function Xt(nr){if(nr&&et(nr)==="object"){var or=new Date(nr.timestamp);if(!(Ft.from&&or<Ft.from||Ft.until&&or>Ft.until||Ft.level&&Ft.level!==nr.level))return!0}}function er(nr){return nr=nr||{},nr.rows=nr.rows||nr.limit||10,nr.start=nr.start||0,nr.until=nr.until||new Date,et(nr.until)!=="object"&&(nr.until=new Date(nr.until)),nr.from=nr.from||nr.until-24*60*60*1e3,et(nr.from)!=="object"&&(nr.from=new Date(nr.from)),nr.order=nr.order||"desc",nr}}},{key:"stream",value:function(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$t=At.join(this.dirname,this.filename),jt=new Dt,Wt={file:$t,start:Ft.start};return jt.destroy=Kt(Wt,function(Ut,Vt){if(Ut)return jt.emit("error",Ut);try{jt.emit("data",Vt),Vt=JSON.parse(Vt),jt.emit("log",Vt)}catch(Ht){jt.emit("error",Ht)}}),jt}},{key:"open",value:function(){var Ft=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function($t,jt){if($t)return Ft.emit("error",$t);Nt("stat done: %s { size: %s }",Ft.filename,jt),Ft._size=jt,Ft._dest=Ft._createStream(Ft._stream),Ft._opening=!1,Ft.once("open",function(){Ft._stream.emit("rotate")||(Ft._rotate=!1)})})))}},{key:"stat",value:function(Ft){var $t=this,jt=this._getFile(),Wt=At.join(this.dirname,jt);Ot.stat(Wt,function(Ut,Vt){if(Ut&&Ut.code==="ENOENT")return Nt("ENOENT ok",Wt),$t.filename=jt,Ft(null,0);if(Ut)return Nt("err ".concat(Ut.code," ").concat(Wt)),Ft(Ut);if(!Vt||$t._needsNewFile(Vt.size))return $t._incFile(function(){return $t.stat(Ft)});$t.filename=jt,Ft(null,Vt.size)})}},{key:"close",value:function(Ft){var $t=this;this._stream&&this._stream.end(function(){Ft&&Ft(),$t.emit("flush"),$t.emit("closed")})}},{key:"_needsNewFile",value:function(Ft){return Ft=Ft||this._size,this.maxsize&&Ft>=this.maxsize}},{key:"_onError",value:function(Ft){this.emit("error",Ft)}},{key:"_setupStream",value:function(Ft){return Ft.on("error",this._onError),Ft}},{key:"_cleanupStream",value:function(Ft){return Ft.removeListener("error",this._onError),Ft.destroy(),Ft}},{key:"_rotateFile",value:function(){var Ft=this;this._incFile(function(){return Ft.open()})}},{key:"_endStream",value:function(){var Ft=this,$t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){Ft._cleanupStream(Ft._dest),$t()})):$t()}},{key:"_createStream",value:function(Ft){var $t=this,jt=At.join(this.dirname,this.filename);Nt("create stream start",jt,this.options);var Wt=Ot.createWriteStream(jt,this.options).on("error",function(Ut){return Nt(Ut)}).on("close",function(){return Nt("close",Wt.path,Wt.bytesWritten)}).on("open",function(){Nt("file open ok",jt),$t.emit("open",jt),Ft.pipe(Wt),$t.rotatedWhileOpening&&($t._stream=new kt,$t._stream.setMaxListeners(30),$t._rotateFile(),$t.rotatedWhileOpening=!1,$t._cleanupStream(Wt),Ft.end())});return Nt("create stream ok",jt),Wt}},{key:"_incFile",value:function(Ft){Nt("_incFile",this.filename);var $t=At.extname(this._basename),jt=At.basename(this._basename,$t),Wt=[];this.zippedArchive&&Wt.push((function(Ut){var Vt=this._created>0&&!this.tailable?this._created:"";this._compressFile(At.join(this.dirname,"".concat(jt).concat(Vt).concat($t)),At.join(this.dirname,"".concat(jt).concat(Vt).concat($t,".gz")),Ut)}).bind(this)),Wt.push((function(Ut){this.tailable?this._checkMaxFilesTailable($t,jt,Ut):(this._created+=1,this._checkMaxFilesIncrementing($t,jt,Ut))}).bind(this)),Rt(Wt,Ft)}},{key:"_getFile",value:function(){var Ft=At.extname(this._basename),$t=At.basename(this._basename,Ft),jt=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?"".concat($t).concat(jt).concat(Ft):"".concat($t).concat(Ft)}},{key:"_checkMaxFilesIncrementing",value:function(Ft,$t,jt){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(jt);var Wt=this._created-this.maxFiles,Ut=Wt!==0?Wt:"",Vt=this.zippedArchive?".gz":"",Ht="".concat($t).concat(Ut).concat(Ft).concat(Vt),Gt=At.join(this.dirname,Ht);Ot.unlink(Gt,jt)}},{key:"_checkMaxFilesTailable",value:function(Ft,$t,jt){var Wt=this,Ut=[];if(this.maxFiles){for(var Vt=this.zippedArchive?".gz":"",Ht=this.maxFiles-1;Ht>1;Ht--)Ut.push((function(Gt,Zt){var Xt=this,er="".concat($t).concat(Gt-1).concat(Ft).concat(Vt),nr=At.join(this.dirname,er);Ot.exists(nr,function(or){if(!or)return Zt(null);er="".concat($t).concat(Gt).concat(Ft).concat(Vt),Ot.rename(nr,At.join(Xt.dirname,er),Zt)})}).bind(this,Ht));Rt(Ut,function(){Ot.rename(At.join(Wt.dirname,"".concat($t).concat(Ft).concat(Vt)),At.join(Wt.dirname,"".concat($t,"1").concat(Ft).concat(Vt)),jt)})}}},{key:"_compressFile",value:function(Ft,$t,jt){Ot.access(Ft,Ot.F_OK,function(Wt){if(Wt)return jt();var Ut=zt.createGzip(),Vt=Ot.createReadStream(Ft),Ht=Ot.createWriteStream($t);Ht.on("finish",function(){Ot.unlink(Ft,jt)}),Vt.pipe(Ut).pipe(Ht)})}},{key:"_createLogDirIfNotExist",value:function(Ft){Ot.existsSync(Ft)||Ot.mkdirSync(Ft,{recursive:!0})}}])}(qt),file}var streamHttp={},request={exports:{}},capability={},hasRequiredCapability;function requireCapability(){return hasRequiredCapability||(hasRequiredCapability=1,function(et){et.fetch=lt(commonjsGlobal$1.fetch)&&lt(commonjsGlobal$1.ReadableStream),et.writableStream=lt(commonjsGlobal$1.WritableStream),et.abortController=lt(commonjsGlobal$1.AbortController);var tt;function rt(){if(tt!==void 0)return tt;if(commonjsGlobal$1.XMLHttpRequest){tt=new commonjsGlobal$1.XMLHttpRequest;try{tt.open("GET",commonjsGlobal$1.XDomainRequest?"/":"https://example.com")}catch{tt=null}}else tt=null;return tt}function nt(ut){var dt=rt();if(!dt)return!1;try{return dt.responseType=ut,dt.responseType===ut}catch{}return!1}et.arraybuffer=et.fetch||nt("arraybuffer"),et.msstream=!et.fetch&&nt("ms-stream"),et.mozchunkedarraybuffer=!et.fetch&&nt("moz-chunked-arraybuffer"),et.overrideMimeType=et.fetch||(rt()?lt(rt().overrideMimeType):!1);function lt(ut){return typeof ut=="function"}tt=null}(capability)),capability}var response={},hasRequiredResponse;function requireResponse(){if(hasRequiredResponse)return response;hasRequiredResponse=1;var et=requireCapability(),tt=inherits_browserExports,rt=readableBrowserExports$1,nt=response.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},lt=response.IncomingMessage=function(ut,dt,pt,ht){var mt=this;if(rt.Readable.call(mt),mt._mode=pt,mt.headers={},mt.rawHeaders=[],mt.trailers={},mt.rawTrailers=[],mt.on("end",function(){process$1$1.nextTick(function(){mt.emit("close")})}),pt==="fetch"){let zt=function(){Mt.read().then(function(Tt){if(!mt._destroyed){if(ht(Tt.done),Tt.done){mt.push(null);return}mt.push(Buffer$E.from(Tt.value)),zt()}}).catch(function(Tt){ht(!0),mt._destroyed||mt.emit("error",Tt)})};var Rt=zt;if(mt._fetchResponse=dt,mt.url=dt.url,mt.statusCode=dt.status,mt.statusMessage=dt.statusText,dt.headers.forEach(function(Tt,Ct){mt.headers[Ct.toLowerCase()]=Tt,mt.rawHeaders.push(Ct,Tt)}),et.writableStream){var xt=new WritableStream({write:function(Tt){return ht(!1),new Promise(function(Ct,It){mt._destroyed?It():mt.push(Buffer$E.from(Tt))?Ct():mt._resumeFetch=Ct})},close:function(){ht(!0),mt._destroyed||mt.push(null)},abort:function(Tt){ht(!0),mt._destroyed||mt.emit("error",Tt)}});try{dt.body.pipeTo(xt).catch(function(Tt){ht(!0),mt._destroyed||mt.emit("error",Tt)});return}catch{}}var Mt=dt.body.getReader();zt()}else{mt._xhr=ut,mt._pos=0,mt.url=ut.responseURL,mt.statusCode=ut.status,mt.statusMessage=ut.statusText;var vt=ut.getAllResponseHeaders().split(/\r?\n/);if(vt.forEach(function(zt){var Tt=zt.match(/^([^:]+):\s*(.*)/);if(Tt){var Ct=Tt[1].toLowerCase();Ct==="set-cookie"?(mt.headers[Ct]===void 0&&(mt.headers[Ct]=[]),mt.headers[Ct].push(Tt[2])):mt.headers[Ct]!==void 0?mt.headers[Ct]+=", "+Tt[2]:mt.headers[Ct]=Tt[2],mt.rawHeaders.push(Tt[1],Tt[2])}}),mt._charset="x-user-defined",!et.overrideMimeType){var Ot=mt.rawHeaders["mime-type"];if(Ot){var At=Ot.match(/;\s*charset=([^;])(;|$)/);At&&(mt._charset=At[1].toLowerCase())}mt._charset||(mt._charset="utf-8")}}};return tt(lt,rt.Readable),lt.prototype._read=function(){var ut=this,dt=ut._resumeFetch;dt&&(ut._resumeFetch=null,dt())},lt.prototype._onXHRProgress=function(ut){var dt=this,pt=dt._xhr,ht=null;switch(dt._mode){case"text":if(ht=pt.responseText,ht.length>dt._pos){var mt=ht.substr(dt._pos);if(dt._charset==="x-user-defined"){for(var xt=Buffer$E.alloc(mt.length),Mt=0;Mt<mt.length;Mt++)xt[Mt]=mt.charCodeAt(Mt)&255;dt.push(xt)}else dt.push(mt,dt._charset);dt._pos=ht.length}break;case"arraybuffer":if(pt.readyState!==nt.DONE||!pt.response)break;ht=pt.response,dt.push(Buffer$E.from(new Uint8Array(ht)));break;case"moz-chunked-arraybuffer":if(ht=pt.response,pt.readyState!==nt.LOADING||!ht)break;dt.push(Buffer$E.from(new Uint8Array(ht)));break;case"ms-stream":if(ht=pt.response,pt.readyState!==nt.LOADING)break;var vt=new commonjsGlobal$1.MSStreamReader;vt.onprogress=function(){vt.result.byteLength>dt._pos&&(dt.push(Buffer$E.from(new Uint8Array(vt.result.slice(dt._pos)))),dt._pos=vt.result.byteLength)},vt.onload=function(){ut(!0),dt.push(null)},vt.readAsArrayBuffer(ht);break}dt._xhr.readyState===nt.DONE&&dt._mode!=="ms-stream"&&(ut(!0),dt.push(null))},response}var hasRequiredRequest;function requireRequest(){if(hasRequiredRequest)return request.exports;hasRequiredRequest=1;var et=requireCapability(),tt=inherits_browserExports,rt=requireResponse(),nt=readableBrowserExports$1,lt=rt.IncomingMessage,ut=rt.readyStates;function dt(xt,Mt){return et.fetch&&Mt?"fetch":et.mozchunkedarraybuffer?"moz-chunked-arraybuffer":et.msstream?"ms-stream":et.arraybuffer&&xt?"arraybuffer":"text"}var pt=request.exports=function(xt){var Mt=this;nt.Writable.call(Mt),Mt._opts=xt,Mt._body=[],Mt._headers={},xt.auth&&Mt.setHeader("Authorization","Basic "+Buffer$E.from(xt.auth).toString("base64")),Object.keys(xt.headers).forEach(function(At){Mt.setHeader(At,xt.headers[At])});var vt,Ot=!0;if(xt.mode==="disable-fetch"||"requestTimeout"in xt&&!et.abortController)Ot=!1,vt=!0;else if(xt.mode==="prefer-streaming")vt=!1;else if(xt.mode==="allow-wrong-content-type")vt=!et.overrideMimeType;else if(!xt.mode||xt.mode==="default"||xt.mode==="prefer-fast")vt=!0;else throw new Error("Invalid value for opts.mode");Mt._mode=dt(vt,Ot),Mt._fetchTimer=null,Mt._socketTimeout=null,Mt._socketTimer=null,Mt.on("finish",function(){Mt._onFinish()})};tt(pt,nt.Writable),pt.prototype.setHeader=function(xt,Mt){var vt=this,Ot=xt.toLowerCase();mt.indexOf(Ot)===-1&&(vt._headers[Ot]={name:xt,value:Mt})},pt.prototype.getHeader=function(xt){var Mt=this._headers[xt.toLowerCase()];return Mt?Mt.value:null},pt.prototype.removeHeader=function(xt){var Mt=this;delete Mt._headers[xt.toLowerCase()]},pt.prototype._onFinish=function(){var xt=this;if(!xt._destroyed){var Mt=xt._opts;"timeout"in Mt&&Mt.timeout!==0&&xt.setTimeout(Mt.timeout);var vt=xt._headers,Ot=null;Mt.method!=="GET"&&Mt.method!=="HEAD"&&(Ot=new Blob(xt._body,{type:(vt["content-type"]||{}).value||""}));var At=[];if(Object.keys(vt).forEach(function(Ct){var It=vt[Ct].name,Dt=vt[Ct].value;Array.isArray(Dt)?Dt.forEach(function(kt){At.push([It,kt])}):At.push([It,Dt])}),xt._mode==="fetch"){var Rt=null;if(et.abortController){var zt=new AbortController;Rt=zt.signal,xt._fetchAbortController=zt,"requestTimeout"in Mt&&Mt.requestTimeout!==0&&(xt._fetchTimer=commonjsGlobal$1.setTimeout(function(){xt.emit("requestTimeout"),xt._fetchAbortController&&xt._fetchAbortController.abort()},Mt.requestTimeout))}commonjsGlobal$1.fetch(xt._opts.url,{method:xt._opts.method,headers:At,body:Ot||void 0,mode:"cors",credentials:Mt.withCredentials?"include":"same-origin",signal:Rt}).then(function(Ct){xt._fetchResponse=Ct,xt._resetTimers(!1),xt._connect()},function(Ct){xt._resetTimers(!0),xt._destroyed||xt.emit("error",Ct)})}else{var Tt=xt._xhr=new commonjsGlobal$1.XMLHttpRequest;try{Tt.open(xt._opts.method,xt._opts.url,!0)}catch(Ct){process$1$1.nextTick(function(){xt.emit("error",Ct)});return}"responseType"in Tt&&(Tt.responseType=xt._mode),"withCredentials"in Tt&&(Tt.withCredentials=!!Mt.withCredentials),xt._mode==="text"&&"overrideMimeType"in Tt&&Tt.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in Mt&&(Tt.timeout=Mt.requestTimeout,Tt.ontimeout=function(){xt.emit("requestTimeout")}),At.forEach(function(Ct){Tt.setRequestHeader(Ct[0],Ct[1])}),xt._response=null,Tt.onreadystatechange=function(){switch(Tt.readyState){case ut.LOADING:case ut.DONE:xt._onXHRProgress();break}},xt._mode==="moz-chunked-arraybuffer"&&(Tt.onprogress=function(){xt._onXHRProgress()}),Tt.onerror=function(){xt._destroyed||(xt._resetTimers(!0),xt.emit("error",new Error("XHR error")))};try{Tt.send(Ot)}catch(Ct){process$1$1.nextTick(function(){xt.emit("error",Ct)});return}}}};function ht(xt){try{var Mt=xt.status;return Mt!==null&&Mt!==0}catch{return!1}}pt.prototype._onXHRProgress=function(){var xt=this;xt._resetTimers(!1),!(!ht(xt._xhr)||xt._destroyed)&&(xt._response||xt._connect(),xt._response._onXHRProgress(xt._resetTimers.bind(xt)))},pt.prototype._connect=function(){var xt=this;xt._destroyed||(xt._response=new lt(xt._xhr,xt._fetchResponse,xt._mode,xt._resetTimers.bind(xt)),xt._response.on("error",function(Mt){xt.emit("error",Mt)}),xt.emit("response",xt._response))},pt.prototype._write=function(xt,Mt,vt){var Ot=this;Ot._body.push(xt),vt()},pt.prototype._resetTimers=function(xt){var Mt=this;commonjsGlobal$1.clearTimeout(Mt._socketTimer),Mt._socketTimer=null,xt?(commonjsGlobal$1.clearTimeout(Mt._fetchTimer),Mt._fetchTimer=null):Mt._socketTimeout&&(Mt._socketTimer=commonjsGlobal$1.setTimeout(function(){Mt.emit("timeout")},Mt._socketTimeout))},pt.prototype.abort=pt.prototype.destroy=function(xt){var Mt=this;Mt._destroyed=!0,Mt._resetTimers(!0),Mt._response&&(Mt._response._destroyed=!0),Mt._xhr?Mt._xhr.abort():Mt._fetchAbortController&&Mt._fetchAbortController.abort(),xt&&Mt.emit("error",xt)},pt.prototype.end=function(xt,Mt,vt){var Ot=this;typeof xt=="function"&&(vt=xt,xt=void 0),nt.Writable.prototype.end.call(Ot,xt,Mt,vt)},pt.prototype.setTimeout=function(xt,Mt){var vt=this;Mt&&vt.once("timeout",Mt),vt._socketTimeout=xt,vt._resetTimers(!1)},pt.prototype.flushHeaders=function(){},pt.prototype.setNoDelay=function(){},pt.prototype.setSocketKeepAlive=function(){};var mt=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return request.exports}var immutable,hasRequiredImmutable;function requireImmutable(){if(hasRequiredImmutable)return immutable;hasRequiredImmutable=1,immutable=tt;var et=Object.prototype.hasOwnProperty;function tt(){for(var rt={},nt=0;nt<arguments.length;nt++){var lt=arguments[nt];for(var ut in lt)et.call(lt,ut)&&(rt[ut]=lt[ut])}return rt}return immutable}var browser$b,hasRequiredBrowser$3;function requireBrowser$3(){return hasRequiredBrowser$3||(hasRequiredBrowser$3=1,browser$b={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),browser$b}var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;(function(et,tt){(function(rt){var nt=tt&&!tt.nodeType&&tt,lt=et&&!et.nodeType&&et,ut=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1;(ut.global===ut||ut.window===ut||ut.self===ut)&&(rt=ut);var dt,pt=2147483647,ht=36,mt=1,xt=26,Mt=38,vt=700,Ot=72,At=128,Rt="-",zt=/^xn--/,Tt=/[^\x20-\x7E]/,Ct=/[\x2E\u3002\uFF0E\uFF61]/g,It={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Dt=ht-mt,kt=Math.floor,qt=String.fromCharCode,Nt;function Yt(Gt){throw new RangeError(It[Gt])}function Kt(Gt,Zt){for(var Xt=Gt.length,er=[];Xt--;)er[Xt]=Zt(Gt[Xt]);return er}function Jt(Gt,Zt){var Xt=Gt.split("@"),er="";Xt.length>1&&(er=Xt[0]+"@",Gt=Xt[1]),Gt=Gt.replace(Ct,".");var nr=Gt.split("."),or=Kt(nr,Zt).join(".");return er+or}function Qt(Gt){for(var Zt=[],Xt=0,er=Gt.length,nr,or;Xt<er;)nr=Gt.charCodeAt(Xt++),nr>=55296&&nr<=56319&&Xt<er?(or=Gt.charCodeAt(Xt++),(or&64512)==56320?Zt.push(((nr&1023)<<10)+(or&1023)+65536):(Zt.push(nr),Xt--)):Zt.push(nr);return Zt}function Bt(Gt){return Kt(Gt,function(Zt){var Xt="";return Zt>65535&&(Zt-=65536,Xt+=qt(Zt>>>10&1023|55296),Zt=56320|Zt&1023),Xt+=qt(Zt),Xt}).join("")}function Ft(Gt){return Gt-48<10?Gt-22:Gt-65<26?Gt-65:Gt-97<26?Gt-97:ht}function $t(Gt,Zt){return Gt+22+75*(Gt<26)-((Zt!=0)<<5)}function jt(Gt,Zt,Xt){var er=0;for(Gt=Xt?kt(Gt/vt):Gt>>1,Gt+=kt(Gt/Zt);Gt>Dt*xt>>1;er+=ht)Gt=kt(Gt/Dt);return kt(er+(Dt+1)*Gt/(Gt+Mt))}function Wt(Gt){var Zt=[],Xt=Gt.length,er,nr=0,or=At,rr=Ot,cr,ir,dr,gr,br,ar,ur,xr,Mr;for(cr=Gt.lastIndexOf(Rt),cr<0&&(cr=0),ir=0;ir<cr;++ir)Gt.charCodeAt(ir)>=128&&Yt("not-basic"),Zt.push(Gt.charCodeAt(ir));for(dr=cr>0?cr+1:0;dr<Xt;){for(gr=nr,br=1,ar=ht;dr>=Xt&&Yt("invalid-input"),ur=Ft(Gt.charCodeAt(dr++)),(ur>=ht||ur>kt((pt-nr)/br))&&Yt("overflow"),nr+=ur*br,xr=ar<=rr?mt:ar>=rr+xt?xt:ar-rr,!(ur<xr);ar+=ht)Mr=ht-xr,br>kt(pt/Mr)&&Yt("overflow"),br*=Mr;er=Zt.length+1,rr=jt(nr-gr,er,gr==0),kt(nr/er)>pt-or&&Yt("overflow"),or+=kt(nr/er),nr%=er,Zt.splice(nr++,0,or)}return Bt(Zt)}function Ut(Gt){var Zt,Xt,er,nr,or,rr,cr,ir,dr,gr,br,ar=[],ur,xr,Mr,Ar;for(Gt=Qt(Gt),ur=Gt.length,Zt=At,Xt=0,or=Ot,rr=0;rr<ur;++rr)br=Gt[rr],br<128&&ar.push(qt(br));for(er=nr=ar.length,nr&&ar.push(Rt);er<ur;){for(cr=pt,rr=0;rr<ur;++rr)br=Gt[rr],br>=Zt&&br<cr&&(cr=br);for(xr=er+1,cr-Zt>kt((pt-Xt)/xr)&&Yt("overflow"),Xt+=(cr-Zt)*xr,Zt=cr,rr=0;rr<ur;++rr)if(br=Gt[rr],br<Zt&&++Xt>pt&&Yt("overflow"),br==Zt){for(ir=Xt,dr=ht;gr=dr<=or?mt:dr>=or+xt?xt:dr-or,!(ir<gr);dr+=ht)Ar=ir-gr,Mr=ht-gr,ar.push(qt($t(gr+Ar%Mr,0))),ir=kt(Ar/Mr);ar.push(qt($t(ir,0))),or=jt(Xt,xr,er==nr),Xt=0,++er}++Xt,++Zt}return ar.join("")}function Vt(Gt){return Jt(Gt,function(Zt){return zt.test(Zt)?Wt(Zt.slice(4).toLowerCase()):Zt})}function Ht(Gt){return Jt(Gt,function(Zt){return Tt.test(Zt)?"xn--"+Ut(Zt):Zt})}if(dt={version:"1.4.1",ucs2:{decode:Qt,encode:Bt},decode:Wt,encode:Ut,toASCII:Ht,toUnicode:Vt},nt&&lt)if(et.exports==nt)lt.exports=dt;else for(Nt in dt)dt.hasOwnProperty(Nt)&&(nt[Nt]=dt[Nt]);else rt.punycode=dt})(commonjsGlobal$1)})(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports;const require$$0$3=getDefaultExportFromCjs$1(punycodeExports),__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$2=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString$7=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||!0)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(et){return et.__proto__}:null);function addNumericSeparator(et,tt){if(et===1/0||et===-1/0||et!==et||et&&et>-1e3&&et<1e3||$test.call(/e/,tt))return tt;var rt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof et=="number"){var nt=et<0?-$floor(-et):$floor(et);if(nt!==et){var lt=String(nt),ut=$slice.call(tt,lt.length+1);return $replace.call(lt,rt,"$&_")+"."+$replace.call($replace.call(ut,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(tt,rt,"$&_")}var utilInspect=require$$0$2,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$9(inspectCustom)?inspectCustom:null,objectInspect=function et(tt,rt,nt,lt){var ut=rt||{};if(has$5(ut,"quoteStyle")&&ut.quoteStyle!=="single"&&ut.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$5(ut,"maxStringLength")&&(typeof ut.maxStringLength=="number"?ut.maxStringLength<0&&ut.maxStringLength!==1/0:ut.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var dt=has$5(ut,"customInspect")?ut.customInspect:!0;if(typeof dt!="boolean"&&dt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$5(ut,"indent")&&ut.indent!==null&&ut.indent!=="	"&&!(parseInt(ut.indent,10)===ut.indent&&ut.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$5(ut,"numericSeparator")&&typeof ut.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pt=ut.numericSeparator;if(typeof tt>"u")return"undefined";if(tt===null)return"null";if(typeof tt=="boolean")return tt?"true":"false";if(typeof tt=="string")return inspectString(tt,ut);if(typeof tt=="number"){if(tt===0)return 1/0/tt>0?"0":"-0";var ht=String(tt);return pt?addNumericSeparator(tt,ht):ht}if(typeof tt=="bigint"){var mt=String(tt)+"n";return pt?addNumericSeparator(tt,mt):mt}var xt=typeof ut.depth>"u"?5:ut.depth;if(typeof nt>"u"&&(nt=0),nt>=xt&&xt>0&&typeof tt=="object")return isArray$j(tt)?"[Array]":"[Object]";var Mt=getIndent(ut,nt);if(typeof lt>"u")lt=[];else if(indexOf(lt,tt)>=0)return"[Circular]";function vt(Ft,$t,jt){if($t&&(lt=$arrSlice.call(lt),lt.push($t)),jt){var Wt={depth:ut.depth};return has$5(ut,"quoteStyle")&&(Wt.quoteStyle=ut.quoteStyle),et(Ft,Wt,nt+1,lt)}return et(Ft,ut,nt+1,lt)}if(typeof tt=="function"&&!isRegExp$3(tt)){var Ot=nameOf(tt),At=arrObjKeys(tt,vt);return"[Function"+(Ot?": "+Ot:" (anonymous)")+"]"+(At.length>0?" { "+$join.call(At,", ")+" }":"")}if(isSymbol$9(tt)){var Rt=hasShammedSymbols?$replace.call(String(tt),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(tt);return typeof tt=="object"&&!hasShammedSymbols?markBoxed(Rt):Rt}if(isElement$3(tt)){for(var zt="<"+$toLowerCase.call(String(tt.nodeName)),Tt=tt.attributes||[],Ct=0;Ct<Tt.length;Ct++)zt+=" "+Tt[Ct].name+"="+wrapQuotes(quote(Tt[Ct].value),"double",ut);return zt+=">",tt.childNodes&&tt.childNodes.length&&(zt+="..."),zt+="</"+$toLowerCase.call(String(tt.nodeName))+">",zt}if(isArray$j(tt)){if(tt.length===0)return"[]";var It=arrObjKeys(tt,vt);return Mt&&!singleLineValues(It)?"["+indentedJoin(It,Mt)+"]":"[ "+$join.call(It,", ")+" ]"}if(isError$1(tt)){var Dt=arrObjKeys(tt,vt);return!("cause"in Error.prototype)&&"cause"in tt&&!isEnumerable.call(tt,"cause")?"{ ["+String(tt)+"] "+$join.call($concat.call("[cause]: "+vt(tt.cause),Dt),", ")+" }":Dt.length===0?"["+String(tt)+"]":"{ ["+String(tt)+"] "+$join.call(Dt,", ")+" }"}if(typeof tt=="object"&&dt){if(inspectSymbol&&typeof tt[inspectSymbol]=="function"&&utilInspect)return utilInspect(tt,{depth:xt-nt});if(dt!=="symbol"&&typeof tt.inspect=="function")return tt.inspect()}if(isMap$1(tt)){var kt=[];return mapForEach&&mapForEach.call(tt,function(Ft,$t){kt.push(vt($t,tt,!0)+" => "+vt(Ft,tt))}),collectionOf("Map",mapSize.call(tt),kt,Mt)}if(isSet$1(tt)){var qt=[];return setForEach&&setForEach.call(tt,function(Ft){qt.push(vt(Ft,tt))}),collectionOf("Set",setSize.call(tt),qt,Mt)}if(isWeakMap(tt))return weakCollectionOf("WeakMap");if(isWeakSet(tt))return weakCollectionOf("WeakSet");if(isWeakRef(tt))return weakCollectionOf("WeakRef");if(isNumber$4(tt))return markBoxed(vt(Number(tt)));if(isBigInt(tt))return markBoxed(vt(bigIntValueOf.call(tt)));if(isBoolean$3(tt))return markBoxed(booleanValueOf.call(tt));if(isString$5(tt))return markBoxed(vt(String(tt)));if(typeof window<"u"&&tt===window)return"{ [object Window] }";if(typeof globalThis<"u"&&tt===globalThis||typeof commonjsGlobal$1<"u"&&tt===commonjsGlobal$1)return"{ [object globalThis] }";if(!isDate$3(tt)&&!isRegExp$3(tt)){var Nt=arrObjKeys(tt,vt),Yt=gPO?gPO(tt)===Object.prototype:tt instanceof Object||tt.constructor===Object,Kt=tt instanceof Object?"":"null prototype",Jt=!Yt&&toStringTag&&Object(tt)===tt&&toStringTag in tt?$slice.call(toStr(tt),8,-1):Kt?"Object":"",Qt=Yt||typeof tt.constructor!="function"?"":tt.constructor.name?tt.constructor.name+" ":"",Bt=Qt+(Jt||Kt?"["+$join.call($concat.call([],Jt||[],Kt||[]),": ")+"] ":"");return Nt.length===0?Bt+"{}":Mt?Bt+"{"+indentedJoin(Nt,Mt)+"}":Bt+"{ "+$join.call(Nt,", ")+" }"}return String(tt)};function wrapQuotes(et,tt,rt){var nt=(rt.quoteStyle||tt)==="double"?'"':"'";return nt+et+nt}function quote(et){return $replace.call(String(et),/"/g,"&quot;")}function isArray$j(et){return toStr(et)==="[object Array]"&&(!toStringTag||!(typeof et=="object"&&toStringTag in et))}function isDate$3(et){return toStr(et)==="[object Date]"&&(!toStringTag||!(typeof et=="object"&&toStringTag in et))}function isRegExp$3(et){return toStr(et)==="[object RegExp]"&&(!toStringTag||!(typeof et=="object"&&toStringTag in et))}function isError$1(et){return toStr(et)==="[object Error]"&&(!toStringTag||!(typeof et=="object"&&toStringTag in et))}function isString$5(et){return toStr(et)==="[object String]"&&(!toStringTag||!(typeof et=="object"&&toStringTag in et))}function isNumber$4(et){return toStr(et)==="[object Number]"&&(!toStringTag||!(typeof et=="object"&&toStringTag in et))}function isBoolean$3(et){return toStr(et)==="[object Boolean]"&&(!toStringTag||!(typeof et=="object"&&toStringTag in et))}function isSymbol$9(et){if(hasShammedSymbols)return et&&typeof et=="object"&&et instanceof Symbol;if(typeof et=="symbol")return!0;if(!et||typeof et!="object"||!symToString)return!1;try{return symToString.call(et),!0}catch{}return!1}function isBigInt(et){if(!et||typeof et!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(et),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(et){return et in this};function has$5(et,tt){return hasOwn$1.call(et,tt)}function toStr(et){return objectToString$7.call(et)}function nameOf(et){if(et.name)return et.name;var tt=$match.call(functionToString.call(et),/^function\s*([\w$]+)/);return tt?tt[1]:null}function indexOf(et,tt){if(et.indexOf)return et.indexOf(tt);for(var rt=0,nt=et.length;rt<nt;rt++)if(et[rt]===tt)return rt;return-1}function isMap$1(et){if(!mapSize||!et||typeof et!="object")return!1;try{mapSize.call(et);try{setSize.call(et)}catch{return!0}return et instanceof Map}catch{}return!1}function isWeakMap(et){if(!weakMapHas||!et||typeof et!="object")return!1;try{weakMapHas.call(et,weakMapHas);try{weakSetHas.call(et,weakSetHas)}catch{return!0}return et instanceof WeakMap}catch{}return!1}function isWeakRef(et){if(!weakRefDeref||!et||typeof et!="object")return!1;try{return weakRefDeref.call(et),!0}catch{}return!1}function isSet$1(et){if(!setSize||!et||typeof et!="object")return!1;try{setSize.call(et);try{mapSize.call(et)}catch{return!0}return et instanceof Set}catch{}return!1}function isWeakSet(et){if(!weakSetHas||!et||typeof et!="object")return!1;try{weakSetHas.call(et,weakSetHas);try{weakMapHas.call(et,weakMapHas)}catch{return!0}return et instanceof WeakSet}catch{}return!1}function isElement$3(et){return!et||typeof et!="object"?!1:typeof HTMLElement<"u"&&et instanceof HTMLElement?!0:typeof et.nodeName=="string"&&typeof et.getAttribute=="function"}function inspectString(et,tt){if(et.length>tt.maxStringLength){var rt=et.length-tt.maxStringLength,nt="... "+rt+" more character"+(rt>1?"s":"");return inspectString($slice.call(et,0,tt.maxStringLength),tt)+nt}var lt=$replace.call($replace.call(et,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(lt,"single",tt)}function lowbyte(et){var tt=et.charCodeAt(0),rt={8:"b",9:"t",10:"n",12:"f",13:"r"}[tt];return rt?"\\"+rt:"\\x"+(tt<16?"0":"")+$toUpperCase.call(tt.toString(16))}function markBoxed(et){return"Object("+et+")"}function weakCollectionOf(et){return et+" { ? }"}function collectionOf(et,tt,rt,nt){var lt=nt?indentedJoin(rt,nt):$join.call(rt,", ");return et+" ("+tt+") {"+lt+"}"}function singleLineValues(et){for(var tt=0;tt<et.length;tt++)if(indexOf(et[tt],`
`)>=0)return!1;return!0}function getIndent(et,tt){var rt;if(et.indent==="	")rt="	";else if(typeof et.indent=="number"&&et.indent>0)rt=$join.call(Array(et.indent+1)," ");else return null;return{base:rt,prev:$join.call(Array(tt+1),rt)}}function indentedJoin(et,tt){if(et.length===0)return"";var rt=`
`+tt.prev+tt.base;return rt+$join.call(et,","+rt)+`
`+tt.prev}function arrObjKeys(et,tt){var rt=isArray$j(et),nt=[];if(rt){nt.length=et.length;for(var lt=0;lt<et.length;lt++)nt[lt]=has$5(et,lt)?tt(et[lt],et):""}var ut=typeof gOPS=="function"?gOPS(et):[],dt;if(hasShammedSymbols){dt={};for(var pt=0;pt<ut.length;pt++)dt["$"+ut[pt]]=ut[pt]}for(var ht in et)has$5(et,ht)&&(rt&&String(Number(ht))===ht&&ht<et.length||hasShammedSymbols&&dt["$"+ht]instanceof Symbol||($test.call(/[^\w$]/,ht)?nt.push(tt(ht,et)+": "+tt(et[ht],et)):nt.push(ht+": "+tt(et[ht],et))));if(typeof gOPS=="function")for(var mt=0;mt<ut.length;mt++)isEnumerable.call(et,ut[mt])&&nt.push("["+tt(ut[mt])+"]: "+tt(et[ut[mt]],et));return nt}var GetIntrinsic=getIntrinsic,callBound=callBound$3,inspect=objectInspect,$TypeError=type,$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(et,tt){for(var rt=et,nt;(nt=rt.next)!==null;rt=nt)if(nt.key===tt)return rt.next=nt.next,nt.next=et.next,et.next=nt,nt},listGet=function(et,tt){var rt=listGetNode(et,tt);return rt&&rt.value},listSet=function(et,tt,rt){var nt=listGetNode(et,tt);nt?nt.value=rt:et.next={key:tt,next:et.next,value:rt}},listHas=function(et,tt){return!!listGetNode(et,tt)},sideChannel=function(){var tt,rt,nt,lt={assert:function(ut){if(!lt.has(ut))throw new $TypeError("Side channel does not contain "+inspect(ut))},get:function(ut){if($WeakMap&&ut&&(typeof ut=="object"||typeof ut=="function")){if(tt)return $weakMapGet(tt,ut)}else if($Map){if(rt)return $mapGet(rt,ut)}else if(nt)return listGet(nt,ut)},has:function(ut){if($WeakMap&&ut&&(typeof ut=="object"||typeof ut=="function")){if(tt)return $weakMapHas(tt,ut)}else if($Map){if(rt)return $mapHas(rt,ut)}else if(nt)return listHas(nt,ut);return!1},set:function(ut,dt){$WeakMap&&ut&&(typeof ut=="object"||typeof ut=="function")?(tt||(tt=new $WeakMap),$weakMapSet(tt,ut,dt)):$Map?(rt||(rt=new $Map),$mapSet(rt,ut,dt)):(nt||(nt={key:{},next:null}),listSet(nt,ut,dt))}};return lt},replace$2=String.prototype.replace,percentTwenties=/%20/g,Format$1={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format$1.RFC3986,formatters:{RFC1738:function(et){return replace$2.call(et,percentTwenties,"+")},RFC3986:function(et){return String(et)}},RFC1738:Format$1.RFC1738,RFC3986:Format$1.RFC3986},formats$2=formats$3,has$4=Object.prototype.hasOwnProperty,isArray$i=Array.isArray,hexTable=function(){for(var et=[],tt=0;tt<256;++tt)et.push("%"+((tt<16?"0":"")+tt.toString(16)).toUpperCase());return et}(),compactQueue=function(tt){for(;tt.length>1;){var rt=tt.pop(),nt=rt.obj[rt.prop];if(isArray$i(nt)){for(var lt=[],ut=0;ut<nt.length;++ut)typeof nt[ut]<"u"&&lt.push(nt[ut]);rt.obj[rt.prop]=lt}}},arrayToObject$1=function(tt,rt){for(var nt=rt&&rt.plainObjects?Object.create(null):{},lt=0;lt<tt.length;++lt)typeof tt[lt]<"u"&&(nt[lt]=tt[lt]);return nt},merge$4=function et(tt,rt,nt){if(!rt)return tt;if(typeof rt!="object"){if(isArray$i(tt))tt.push(rt);else if(tt&&typeof tt=="object")(nt&&(nt.plainObjects||nt.allowPrototypes)||!has$4.call(Object.prototype,rt))&&(tt[rt]=!0);else return[tt,rt];return tt}if(!tt||typeof tt!="object")return[tt].concat(rt);var lt=tt;return isArray$i(tt)&&!isArray$i(rt)&&(lt=arrayToObject$1(tt,nt)),isArray$i(tt)&&isArray$i(rt)?(rt.forEach(function(ut,dt){if(has$4.call(tt,dt)){var pt=tt[dt];pt&&typeof pt=="object"&&ut&&typeof ut=="object"?tt[dt]=et(pt,ut,nt):tt.push(ut)}else tt[dt]=ut}),tt):Object.keys(rt).reduce(function(ut,dt){var pt=rt[dt];return has$4.call(ut,dt)?ut[dt]=et(ut[dt],pt,nt):ut[dt]=pt,ut},lt)},assign$2=function(tt,rt){return Object.keys(rt).reduce(function(nt,lt){return nt[lt]=rt[lt],nt},tt)},decode=function(et,tt,rt){var nt=et.replace(/\+/g," ");if(rt==="iso-8859-1")return nt.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(nt)}catch{return nt}},limit=1024,encode$2=function(tt,rt,nt,lt,ut){if(tt.length===0)return tt;var dt=tt;if(typeof tt=="symbol"?dt=Symbol.prototype.toString.call(tt):typeof tt!="string"&&(dt=String(tt)),nt==="iso-8859-1")return escape(dt).replace(/%u[0-9a-f]{4}/gi,function(Ot){return"%26%23"+parseInt(Ot.slice(2),16)+"%3B"});for(var pt="",ht=0;ht<dt.length;ht+=limit){for(var mt=dt.length>=limit?dt.slice(ht,ht+limit):dt,xt=[],Mt=0;Mt<mt.length;++Mt){var vt=mt.charCodeAt(Mt);if(vt===45||vt===46||vt===95||vt===126||vt>=48&&vt<=57||vt>=65&&vt<=90||vt>=97&&vt<=122||ut===formats$2.RFC1738&&(vt===40||vt===41)){xt[xt.length]=mt.charAt(Mt);continue}if(vt<128){xt[xt.length]=hexTable[vt];continue}if(vt<2048){xt[xt.length]=hexTable[192|vt>>6]+hexTable[128|vt&63];continue}if(vt<55296||vt>=57344){xt[xt.length]=hexTable[224|vt>>12]+hexTable[128|vt>>6&63]+hexTable[128|vt&63];continue}Mt+=1,vt=65536+((vt&1023)<<10|mt.charCodeAt(Mt)&1023),xt[xt.length]=hexTable[240|vt>>18]+hexTable[128|vt>>12&63]+hexTable[128|vt>>6&63]+hexTable[128|vt&63]}pt+=xt.join("")}return pt},compact=function(tt){for(var rt=[{obj:{o:tt},prop:"o"}],nt=[],lt=0;lt<rt.length;++lt)for(var ut=rt[lt],dt=ut.obj[ut.prop],pt=Object.keys(dt),ht=0;ht<pt.length;++ht){var mt=pt[ht],xt=dt[mt];typeof xt=="object"&&xt!==null&&nt.indexOf(xt)===-1&&(rt.push({obj:dt,prop:mt}),nt.push(xt))}return compactQueue(rt),tt},isRegExp$2=function(tt){return Object.prototype.toString.call(tt)==="[object RegExp]"},isBuffer$6=function(tt){return!tt||typeof tt!="object"?!1:!!(tt.constructor&&tt.constructor.isBuffer&&tt.constructor.isBuffer(tt))},combine$4=function(tt,rt){return[].concat(tt,rt)},maybeMap=function(tt,rt){if(isArray$i(tt)){for(var nt=[],lt=0;lt<tt.length;lt+=1)nt.push(rt(tt[lt]));return nt}return rt(tt)},utils$u={arrayToObject:arrayToObject$1,assign:assign$2,combine:combine$4,compact,decode,encode:encode$2,isBuffer:isBuffer$6,isRegExp:isRegExp$2,maybeMap,merge:merge$4},getSideChannel=sideChannel,utils$t=utils$u,formats$1=formats$3,has$3=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(tt){return tt+"[]"},comma:"comma",indices:function(tt,rt){return tt+"["+rt+"]"},repeat:function(tt){return tt}},isArray$h=Array.isArray,push=Array.prototype.push,pushToArray=function(et,tt){push.apply(et,isArray$h(tt)?tt:[tt])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$4={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils$t.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(tt){return toISO.call(tt)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(tt){return typeof tt=="string"||typeof tt=="number"||typeof tt=="boolean"||typeof tt=="symbol"||typeof tt=="bigint"},sentinel={},stringify$2=function et(tt,rt,nt,lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct){for(var It=tt,Dt=Ct,kt=0,qt=!1;(Dt=Dt.get(sentinel))!==void 0&&!qt;){var Nt=Dt.get(tt);if(kt+=1,typeof Nt<"u"){if(Nt===kt)throw new RangeError("Cyclic object value");qt=!0}typeof Dt.get(sentinel)>"u"&&(kt=0)}if(typeof xt=="function"?It=xt(rt,It):It instanceof Date?It=Ot(It):nt==="comma"&&isArray$h(It)&&(It=utils$t.maybeMap(It,function(Gt){return Gt instanceof Date?Ot(Gt):Gt})),It===null){if(dt)return mt&&!zt?mt(rt,defaults$4.encoder,Tt,"key",At):rt;It=""}if(isNonNullishPrimitive(It)||utils$t.isBuffer(It)){if(mt){var Yt=zt?rt:mt(rt,defaults$4.encoder,Tt,"key",At);return[Rt(Yt)+"="+Rt(mt(It,defaults$4.encoder,Tt,"value",At))]}return[Rt(rt)+"="+Rt(String(It))]}var Kt=[];if(typeof It>"u")return Kt;var Jt;if(nt==="comma"&&isArray$h(It))zt&&mt&&(It=utils$t.maybeMap(It,mt)),Jt=[{value:It.length>0?It.join(",")||null:void 0}];else if(isArray$h(xt))Jt=xt;else{var Qt=Object.keys(It);Jt=Mt?Qt.sort(Mt):Qt}var Bt=ht?rt.replace(/\./g,"%2E"):rt,Ft=lt&&isArray$h(It)&&It.length===1?Bt+"[]":Bt;if(ut&&isArray$h(It)&&It.length===0)return Ft+"[]";for(var $t=0;$t<Jt.length;++$t){var jt=Jt[$t],Wt=typeof jt=="object"&&typeof jt.value<"u"?jt.value:It[jt];if(!(pt&&Wt===null)){var Ut=vt&&ht?jt.replace(/\./g,"%2E"):jt,Vt=isArray$h(It)?typeof nt=="function"?nt(Ft,Ut):Ft:Ft+(vt?"."+Ut:"["+Ut+"]");Ct.set(tt,kt);var Ht=getSideChannel();Ht.set(sentinel,Ct),pushToArray(Kt,et(Wt,Vt,nt,lt,ut,dt,pt,ht,nt==="comma"&&zt&&isArray$h(It)?null:mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ht))}}return Kt},normalizeStringifyOptions=function(tt){if(!tt)return defaults$4;if(typeof tt.allowEmptyArrays<"u"&&typeof tt.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof tt.encodeDotInKeys<"u"&&typeof tt.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(tt.encoder!==null&&typeof tt.encoder<"u"&&typeof tt.encoder!="function")throw new TypeError("Encoder has to be a function.");var rt=tt.charset||defaults$4.charset;if(typeof tt.charset<"u"&&tt.charset!=="utf-8"&&tt.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var nt=formats$1.default;if(typeof tt.format<"u"){if(!has$3.call(formats$1.formatters,tt.format))throw new TypeError("Unknown format option provided.");nt=tt.format}var lt=formats$1.formatters[nt],ut=defaults$4.filter;(typeof tt.filter=="function"||isArray$h(tt.filter))&&(ut=tt.filter);var dt;if(tt.arrayFormat in arrayPrefixGenerators?dt=tt.arrayFormat:"indices"in tt?dt=tt.indices?"indices":"repeat":dt=defaults$4.arrayFormat,"commaRoundTrip"in tt&&typeof tt.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var pt=typeof tt.allowDots>"u"?tt.encodeDotInKeys===!0?!0:defaults$4.allowDots:!!tt.allowDots;return{addQueryPrefix:typeof tt.addQueryPrefix=="boolean"?tt.addQueryPrefix:defaults$4.addQueryPrefix,allowDots:pt,allowEmptyArrays:typeof tt.allowEmptyArrays=="boolean"?!!tt.allowEmptyArrays:defaults$4.allowEmptyArrays,arrayFormat:dt,charset:rt,charsetSentinel:typeof tt.charsetSentinel=="boolean"?tt.charsetSentinel:defaults$4.charsetSentinel,commaRoundTrip:tt.commaRoundTrip,delimiter:typeof tt.delimiter>"u"?defaults$4.delimiter:tt.delimiter,encode:typeof tt.encode=="boolean"?tt.encode:defaults$4.encode,encodeDotInKeys:typeof tt.encodeDotInKeys=="boolean"?tt.encodeDotInKeys:defaults$4.encodeDotInKeys,encoder:typeof tt.encoder=="function"?tt.encoder:defaults$4.encoder,encodeValuesOnly:typeof tt.encodeValuesOnly=="boolean"?tt.encodeValuesOnly:defaults$4.encodeValuesOnly,filter:ut,format:nt,formatter:lt,serializeDate:typeof tt.serializeDate=="function"?tt.serializeDate:defaults$4.serializeDate,skipNulls:typeof tt.skipNulls=="boolean"?tt.skipNulls:defaults$4.skipNulls,sort:typeof tt.sort=="function"?tt.sort:null,strictNullHandling:typeof tt.strictNullHandling=="boolean"?tt.strictNullHandling:defaults$4.strictNullHandling}},stringify_1=function(et,tt){var rt=et,nt=normalizeStringifyOptions(tt),lt,ut;typeof nt.filter=="function"?(ut=nt.filter,rt=ut("",rt)):isArray$h(nt.filter)&&(ut=nt.filter,lt=ut);var dt=[];if(typeof rt!="object"||rt===null)return"";var pt=arrayPrefixGenerators[nt.arrayFormat],ht=pt==="comma"&&nt.commaRoundTrip;lt||(lt=Object.keys(rt)),nt.sort&&lt.sort(nt.sort);for(var mt=getSideChannel(),xt=0;xt<lt.length;++xt){var Mt=lt[xt];nt.skipNulls&&rt[Mt]===null||pushToArray(dt,stringify$2(rt[Mt],Mt,pt,ht,nt.allowEmptyArrays,nt.strictNullHandling,nt.skipNulls,nt.encodeDotInKeys,nt.encode?nt.encoder:null,nt.filter,nt.sort,nt.allowDots,nt.serializeDate,nt.format,nt.formatter,nt.encodeValuesOnly,nt.charset,mt))}var vt=dt.join(nt.delimiter),Ot=nt.addQueryPrefix===!0?"?":"";return nt.charsetSentinel&&(nt.charset==="iso-8859-1"?Ot+="utf8=%26%2310003%3B&":Ot+="utf8=%E2%9C%93&"),vt.length>0?Ot+vt:""},utils$s=utils$u,has$2=Object.prototype.hasOwnProperty,isArray$g=Array.isArray,defaults$3={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils$s.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},interpretNumericEntities=function(et){return et.replace(/&#(\d+);/g,function(tt,rt){return String.fromCharCode(parseInt(rt,10))})},parseArrayValue=function(et,tt){return et&&typeof et=="string"&&tt.comma&&et.indexOf(",")>-1?et.split(","):et},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(tt,rt){var nt={__proto__:null},lt=rt.ignoreQueryPrefix?tt.replace(/^\?/,""):tt;lt=lt.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var ut=rt.parameterLimit===1/0?void 0:rt.parameterLimit,dt=lt.split(rt.delimiter,ut),pt=-1,ht,mt=rt.charset;if(rt.charsetSentinel)for(ht=0;ht<dt.length;++ht)dt[ht].indexOf("utf8=")===0&&(dt[ht]===charsetSentinel?mt="utf-8":dt[ht]===isoSentinel&&(mt="iso-8859-1"),pt=ht,ht=dt.length);for(ht=0;ht<dt.length;++ht)if(ht!==pt){var xt=dt[ht],Mt=xt.indexOf("]="),vt=Mt===-1?xt.indexOf("="):Mt+1,Ot,At;vt===-1?(Ot=rt.decoder(xt,defaults$3.decoder,mt,"key"),At=rt.strictNullHandling?null:""):(Ot=rt.decoder(xt.slice(0,vt),defaults$3.decoder,mt,"key"),At=utils$s.maybeMap(parseArrayValue(xt.slice(vt+1),rt),function(zt){return rt.decoder(zt,defaults$3.decoder,mt,"value")})),At&&rt.interpretNumericEntities&&mt==="iso-8859-1"&&(At=interpretNumericEntities(At)),xt.indexOf("[]=")>-1&&(At=isArray$g(At)?[At]:At);var Rt=has$2.call(nt,Ot);Rt&&rt.duplicates==="combine"?nt[Ot]=utils$s.combine(nt[Ot],At):(!Rt||rt.duplicates==="last")&&(nt[Ot]=At)}return nt},parseObject=function(et,tt,rt,nt){for(var lt=nt?tt:parseArrayValue(tt,rt),ut=et.length-1;ut>=0;--ut){var dt,pt=et[ut];if(pt==="[]"&&rt.parseArrays)dt=rt.allowEmptyArrays&&(lt===""||rt.strictNullHandling&&lt===null)?[]:[].concat(lt);else{dt=rt.plainObjects?Object.create(null):{};var ht=pt.charAt(0)==="["&&pt.charAt(pt.length-1)==="]"?pt.slice(1,-1):pt,mt=rt.decodeDotInKeys?ht.replace(/%2E/g,"."):ht,xt=parseInt(mt,10);!rt.parseArrays&&mt===""?dt={0:lt}:!isNaN(xt)&&pt!==mt&&String(xt)===mt&&xt>=0&&rt.parseArrays&&xt<=rt.arrayLimit?(dt=[],dt[xt]=lt):mt!=="__proto__"&&(dt[mt]=lt)}lt=dt}return lt},parseKeys$3=function(tt,rt,nt,lt){if(tt){var ut=nt.allowDots?tt.replace(/\.([^.[]+)/g,"[$1]"):tt,dt=/(\[[^[\]]*])/,pt=/(\[[^[\]]*])/g,ht=nt.depth>0&&dt.exec(ut),mt=ht?ut.slice(0,ht.index):ut,xt=[];if(mt){if(!nt.plainObjects&&has$2.call(Object.prototype,mt)&&!nt.allowPrototypes)return;xt.push(mt)}for(var Mt=0;nt.depth>0&&(ht=pt.exec(ut))!==null&&Mt<nt.depth;){if(Mt+=1,!nt.plainObjects&&has$2.call(Object.prototype,ht[1].slice(1,-1))&&!nt.allowPrototypes)return;xt.push(ht[1])}if(ht){if(nt.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+nt.depth+" and strictDepth is true");xt.push("["+ut.slice(ht.index)+"]")}return parseObject(xt,rt,nt,lt)}},normalizeParseOptions=function(tt){if(!tt)return defaults$3;if(typeof tt.allowEmptyArrays<"u"&&typeof tt.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof tt.decodeDotInKeys<"u"&&typeof tt.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(tt.decoder!==null&&typeof tt.decoder<"u"&&typeof tt.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof tt.charset<"u"&&tt.charset!=="utf-8"&&tt.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var rt=typeof tt.charset>"u"?defaults$3.charset:tt.charset,nt=typeof tt.duplicates>"u"?defaults$3.duplicates:tt.duplicates;if(nt!=="combine"&&nt!=="first"&&nt!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var lt=typeof tt.allowDots>"u"?tt.decodeDotInKeys===!0?!0:defaults$3.allowDots:!!tt.allowDots;return{allowDots:lt,allowEmptyArrays:typeof tt.allowEmptyArrays=="boolean"?!!tt.allowEmptyArrays:defaults$3.allowEmptyArrays,allowPrototypes:typeof tt.allowPrototypes=="boolean"?tt.allowPrototypes:defaults$3.allowPrototypes,allowSparse:typeof tt.allowSparse=="boolean"?tt.allowSparse:defaults$3.allowSparse,arrayLimit:typeof tt.arrayLimit=="number"?tt.arrayLimit:defaults$3.arrayLimit,charset:rt,charsetSentinel:typeof tt.charsetSentinel=="boolean"?tt.charsetSentinel:defaults$3.charsetSentinel,comma:typeof tt.comma=="boolean"?tt.comma:defaults$3.comma,decodeDotInKeys:typeof tt.decodeDotInKeys=="boolean"?tt.decodeDotInKeys:defaults$3.decodeDotInKeys,decoder:typeof tt.decoder=="function"?tt.decoder:defaults$3.decoder,delimiter:typeof tt.delimiter=="string"||utils$s.isRegExp(tt.delimiter)?tt.delimiter:defaults$3.delimiter,depth:typeof tt.depth=="number"||tt.depth===!1?+tt.depth:defaults$3.depth,duplicates:nt,ignoreQueryPrefix:tt.ignoreQueryPrefix===!0,interpretNumericEntities:typeof tt.interpretNumericEntities=="boolean"?tt.interpretNumericEntities:defaults$3.interpretNumericEntities,parameterLimit:typeof tt.parameterLimit=="number"?tt.parameterLimit:defaults$3.parameterLimit,parseArrays:tt.parseArrays!==!1,plainObjects:typeof tt.plainObjects=="boolean"?tt.plainObjects:defaults$3.plainObjects,strictDepth:typeof tt.strictDepth=="boolean"?!!tt.strictDepth:defaults$3.strictDepth,strictNullHandling:typeof tt.strictNullHandling=="boolean"?tt.strictNullHandling:defaults$3.strictNullHandling}},parse$8=function(et,tt){var rt=normalizeParseOptions(tt);if(et===""||et===null||typeof et>"u")return rt.plainObjects?Object.create(null):{};for(var nt=typeof et=="string"?parseValues(et,rt):et,lt=rt.plainObjects?Object.create(null):{},ut=Object.keys(nt),dt=0;dt<ut.length;++dt){var pt=ut[dt],ht=parseKeys$3(pt,nt[pt],rt,typeof et=="string");lt=utils$s.merge(lt,ht,rt)}return rt.allowSparse===!0?lt:utils$s.compact(lt)},stringify$1=stringify_1,parse$7=parse$8,formats=formats$3,lib$3={formats,parse:parse$7,stringify:stringify$1};const require$$1$5=getDefaultExportFromCjs$1(lib$3);var punycode=require$$0$3;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
`,"	"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=require$$1$5;function urlParse(et,tt,rt){if(et&&typeof et=="object"&&et instanceof Url)return et;var nt=new Url;return nt.parse(et,tt,rt),nt}Url.prototype.parse=function(et,tt,rt){if(typeof et!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof et);var nt=et.indexOf("?"),lt=nt!==-1&&nt<et.indexOf("#")?"?":"#",ut=et.split(lt),dt=/\\/g;ut[0]=ut[0].replace(dt,"/"),et=ut.join(lt);var pt=et;if(pt=pt.trim(),!rt&&et.split("#").length===1){var ht=simplePathPattern.exec(pt);if(ht)return this.path=pt,this.href=pt,this.pathname=ht[1],ht[2]?(this.search=ht[2],tt?this.query=querystring.parse(this.search.substr(1)):this.query=this.search.substr(1)):tt&&(this.search="",this.query={}),this}var mt=protocolPattern.exec(pt);if(mt){mt=mt[0];var xt=mt.toLowerCase();this.protocol=xt,pt=pt.substr(mt.length)}if(rt||mt||pt.match(/^\/\/[^@/]+@[^@/]+/)){var Mt=pt.substr(0,2)==="//";Mt&&!(mt&&hostlessProtocol[mt])&&(pt=pt.substr(2),this.slashes=!0)}if(!hostlessProtocol[mt]&&(Mt||mt&&!slashedProtocol[mt])){for(var vt=-1,Ot=0;Ot<hostEndingChars.length;Ot++){var At=pt.indexOf(hostEndingChars[Ot]);At!==-1&&(vt===-1||At<vt)&&(vt=At)}var Rt,zt;vt===-1?zt=pt.lastIndexOf("@"):zt=pt.lastIndexOf("@",vt),zt!==-1&&(Rt=pt.slice(0,zt),pt=pt.slice(zt+1),this.auth=decodeURIComponent(Rt)),vt=-1;for(var Ot=0;Ot<nonHostChars.length;Ot++){var At=pt.indexOf(nonHostChars[Ot]);At!==-1&&(vt===-1||At<vt)&&(vt=At)}vt===-1&&(vt=pt.length),this.host=pt.slice(0,vt),pt=pt.slice(vt),this.parseHost(),this.hostname=this.hostname||"";var Tt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Tt)for(var Ct=this.hostname.split(/\./),Ot=0,It=Ct.length;Ot<It;Ot++){var Dt=Ct[Ot];if(Dt&&!Dt.match(hostnamePartPattern)){for(var kt="",qt=0,Nt=Dt.length;qt<Nt;qt++)Dt.charCodeAt(qt)>127?kt+="x":kt+=Dt[qt];if(!kt.match(hostnamePartPattern)){var Yt=Ct.slice(0,Ot),Kt=Ct.slice(Ot+1),Jt=Dt.match(hostnamePartStart);Jt&&(Yt.push(Jt[1]),Kt.unshift(Jt[2])),Kt.length&&(pt="/"+Kt.join(".")+pt),this.hostname=Yt.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),Tt||(this.hostname=punycode.toASCII(this.hostname));var Qt=this.port?":"+this.port:"",Bt=this.hostname||"";this.host=Bt+Qt,this.href+=this.host,Tt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),pt[0]!=="/"&&(pt="/"+pt))}if(!unsafeProtocol[xt])for(var Ot=0,It=autoEscape.length;Ot<It;Ot++){var Ft=autoEscape[Ot];if(pt.indexOf(Ft)!==-1){var $t=encodeURIComponent(Ft);$t===Ft&&($t=escape(Ft)),pt=pt.split(Ft).join($t)}}var jt=pt.indexOf("#");jt!==-1&&(this.hash=pt.substr(jt),pt=pt.slice(0,jt));var Wt=pt.indexOf("?");if(Wt!==-1?(this.search=pt.substr(Wt),this.query=pt.substr(Wt+1),tt&&(this.query=querystring.parse(this.query)),pt=pt.slice(0,Wt)):tt&&(this.search="",this.query={}),pt&&(this.pathname=pt),slashedProtocol[xt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Qt=this.pathname||"",Ut=this.search||"";this.path=Qt+Ut}return this.href=this.format(),this};function urlFormat(et){return typeof et=="string"&&(et=urlParse(et)),et instanceof Url?et.format():Url.prototype.format.call(et)}Url.prototype.format=function(){var et=this.auth||"";et&&(et=encodeURIComponent(et),et=et.replace(/%3A/i,":"),et+="@");var tt=this.protocol||"",rt=this.pathname||"",nt=this.hash||"",lt=!1,ut="";this.host?lt=et+this.host:this.hostname&&(lt=et+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(lt+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ut=querystring.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var dt=this.search||ut&&"?"+ut||"";return tt&&tt.substr(-1)!==":"&&(tt+=":"),this.slashes||(!tt||slashedProtocol[tt])&&lt!==!1?(lt="//"+(lt||""),rt&&rt.charAt(0)!=="/"&&(rt="/"+rt)):lt||(lt=""),nt&&nt.charAt(0)!=="#"&&(nt="#"+nt),dt&&dt.charAt(0)!=="?"&&(dt="?"+dt),rt=rt.replace(/[?#]/g,function(pt){return encodeURIComponent(pt)}),dt=dt.replace("#","%23"),tt+lt+rt+dt+nt};function urlResolve(et,tt){return urlParse(et,!1,!0).resolve(tt)}Url.prototype.resolve=function(et){return this.resolveObject(urlParse(et,!1,!0)).format()};function urlResolveObject(et,tt){return et?urlParse(et,!1,!0).resolveObject(tt):tt}Url.prototype.resolveObject=function(et){if(typeof et=="string"){var tt=new Url;tt.parse(et,!1,!0),et=tt}for(var rt=new Url,nt=Object.keys(this),lt=0;lt<nt.length;lt++){var ut=nt[lt];rt[ut]=this[ut]}if(rt.hash=et.hash,et.href==="")return rt.href=rt.format(),rt;if(et.slashes&&!et.protocol){for(var dt=Object.keys(et),pt=0;pt<dt.length;pt++){var ht=dt[pt];ht!=="protocol"&&(rt[ht]=et[ht])}return slashedProtocol[rt.protocol]&&rt.hostname&&!rt.pathname&&(rt.pathname="/",rt.path=rt.pathname),rt.href=rt.format(),rt}if(et.protocol&&et.protocol!==rt.protocol){if(!slashedProtocol[et.protocol]){for(var mt=Object.keys(et),xt=0;xt<mt.length;xt++){var Mt=mt[xt];rt[Mt]=et[Mt]}return rt.href=rt.format(),rt}if(rt.protocol=et.protocol,!et.host&&!hostlessProtocol[et.protocol]){for(var It=(et.pathname||"").split("/");It.length&&!(et.host=It.shift()););et.host||(et.host=""),et.hostname||(et.hostname=""),It[0]!==""&&It.unshift(""),It.length<2&&It.unshift(""),rt.pathname=It.join("/")}else rt.pathname=et.pathname;if(rt.search=et.search,rt.query=et.query,rt.host=et.host||"",rt.auth=et.auth,rt.hostname=et.hostname||et.host,rt.port=et.port,rt.pathname||rt.search){var vt=rt.pathname||"",Ot=rt.search||"";rt.path=vt+Ot}return rt.slashes=rt.slashes||et.slashes,rt.href=rt.format(),rt}var At=rt.pathname&&rt.pathname.charAt(0)==="/",Rt=et.host||et.pathname&&et.pathname.charAt(0)==="/",zt=Rt||At||rt.host&&et.pathname,Tt=zt,Ct=rt.pathname&&rt.pathname.split("/")||[],It=et.pathname&&et.pathname.split("/")||[],Dt=rt.protocol&&!slashedProtocol[rt.protocol];if(Dt&&(rt.hostname="",rt.port=null,rt.host&&(Ct[0]===""?Ct[0]=rt.host:Ct.unshift(rt.host)),rt.host="",et.protocol&&(et.hostname=null,et.port=null,et.host&&(It[0]===""?It[0]=et.host:It.unshift(et.host)),et.host=null),zt=zt&&(It[0]===""||Ct[0]==="")),Rt)rt.host=et.host||et.host===""?et.host:rt.host,rt.hostname=et.hostname||et.hostname===""?et.hostname:rt.hostname,rt.search=et.search,rt.query=et.query,Ct=It;else if(It.length)Ct||(Ct=[]),Ct.pop(),Ct=Ct.concat(It),rt.search=et.search,rt.query=et.query;else if(et.search!=null){if(Dt){rt.host=Ct.shift(),rt.hostname=rt.host;var kt=rt.host&&rt.host.indexOf("@")>0?rt.host.split("@"):!1;kt&&(rt.auth=kt.shift(),rt.hostname=kt.shift(),rt.host=rt.hostname)}return rt.search=et.search,rt.query=et.query,(rt.pathname!==null||rt.search!==null)&&(rt.path=(rt.pathname?rt.pathname:"")+(rt.search?rt.search:"")),rt.href=rt.format(),rt}if(!Ct.length)return rt.pathname=null,rt.search?rt.path="/"+rt.search:rt.path=null,rt.href=rt.format(),rt;for(var qt=Ct.slice(-1)[0],Nt=(rt.host||et.host||Ct.length>1)&&(qt==="."||qt==="..")||qt==="",Yt=0,Kt=Ct.length;Kt>=0;Kt--)qt=Ct[Kt],qt==="."?Ct.splice(Kt,1):qt===".."?(Ct.splice(Kt,1),Yt++):Yt&&(Ct.splice(Kt,1),Yt--);if(!zt&&!Tt)for(;Yt--;Yt)Ct.unshift("..");zt&&Ct[0]!==""&&(!Ct[0]||Ct[0].charAt(0)!=="/")&&Ct.unshift(""),Nt&&Ct.join("/").substr(-1)!=="/"&&Ct.push("");var Jt=Ct[0]===""||Ct[0]&&Ct[0].charAt(0)==="/";if(Dt){rt.hostname=Jt?"":Ct.length?Ct.shift():"",rt.host=rt.hostname;var kt=rt.host&&rt.host.indexOf("@")>0?rt.host.split("@"):!1;kt&&(rt.auth=kt.shift(),rt.hostname=kt.shift(),rt.host=rt.hostname)}return zt=zt||rt.host&&Ct.length,zt&&!Jt&&Ct.unshift(""),Ct.length>0?rt.pathname=Ct.join("/"):(rt.pathname=null,rt.path=null),(rt.pathname!==null||rt.search!==null)&&(rt.path=(rt.pathname?rt.pathname:"")+(rt.search?rt.search:"")),rt.auth=et.auth||rt.auth,rt.slashes=rt.slashes||et.slashes,rt.href=rt.format(),rt};Url.prototype.parseHost=function(){var et=this.host,tt=portPattern.exec(et);tt&&(tt=tt[0],tt!==":"&&(this.port=tt.substr(1)),et=et.substr(0,et.length-tt.length)),et&&(this.hostname=et)};var parse$6=urlParse,resolve$1=urlResolve,resolveObject=urlResolveObject,format$4=urlFormat,Url_1=Url;function normalizeArray(et,tt){for(var rt=0,nt=et.length-1;nt>=0;nt--){var lt=et[nt];lt==="."?et.splice(nt,1):lt===".."?(et.splice(nt,1),rt++):rt&&(et.splice(nt,1),rt--)}if(tt)for(;rt--;rt)et.unshift("..");return et}function resolve(){for(var et="",tt=!1,rt=arguments.length-1;rt>=-1&&!tt;rt--){var nt=rt>=0?arguments[rt]:"/";if(typeof nt!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!nt)continue;et=nt+"/"+et,tt=nt.charAt(0)==="/"}return et=normalizeArray(filter(et.split("/"),function(lt){return!!lt}),!tt).join("/"),(tt?"/":"")+et||"."}function filter(et,tt){if(et.filter)return et.filter(tt);for(var rt=[],nt=0;nt<et.length;nt++)tt(et[nt],nt,et)&&rt.push(et[nt]);return rt}var _globalThis=function(et){function tt(){var nt=this||self;return delete et.prototype.__magic__,nt}if(typeof globalThis=="object")return globalThis;if(this)return tt();et.defineProperty(et.prototype,"__magic__",{configurable:!0,get:tt});var rt=__magic__;return rt}(Object),formatImport=format$4,parseImport=parse$6,resolveImport=resolve$1,UrlImport=Url_1,URL$1=_globalThis.URL,URLSearchParams$2=_globalThis.URLSearchParams,percentRegEx=/%/g,backslashRegEx=/\\/g,newlineRegEx=/\n/g,carriageReturnRegEx=/\r/g,tabRegEx=/\t/g,CHAR_FORWARD_SLASH=47;function isURLInstance(et){var tt=et??null;return!!(tt!==null&&(tt!=null&&tt.href)&&(tt!=null&&tt.origin))}function getPathFromURLPosix(et){if(et.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var tt=et.pathname,rt=0;rt<tt.length;rt++)if(tt[rt]==="%"){var nt=tt.codePointAt(rt+2)|32;if(tt[rt+1]==="2"&&nt===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(tt)}function encodePathChars(et){return et.includes("%")&&(et=et.replace(percentRegEx,"%25")),et.includes("\\")&&(et=et.replace(backslashRegEx,"%5C")),et.includes(`
`)&&(et=et.replace(newlineRegEx,"%0A")),et.includes("\r")&&(et=et.replace(carriageReturnRegEx,"%0D")),et.includes("	")&&(et=et.replace(tabRegEx,"%09")),et}var domainToASCII=function(tt){if(typeof tt>"u")throw new TypeError('The "domain" argument must be specified');return new URL$1("http://"+tt).hostname},domainToUnicode=function(tt){if(typeof tt>"u")throw new TypeError('The "domain" argument must be specified');return new URL$1("http://"+tt).hostname},pathToFileURL=function(tt){var rt=new URL$1("file://"),nt=resolve(tt),lt=tt.charCodeAt(tt.length-1);return lt===CHAR_FORWARD_SLASH&&nt[nt.length-1]!=="/"&&(nt+="/"),rt.pathname=encodePathChars(nt),rt},fileURLToPath=function(tt){if(!isURLInstance(tt)&&typeof tt!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof tt+" ("+tt+")");var rt=new URL$1(tt);if(rt.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return getPathFromURLPosix(rt)},formatImportWithOverloads=function(tt,rt){var nt,lt,ut,dt;if(rt===void 0&&(rt={}),!(tt instanceof URL$1))return formatImport(tt);if(typeof rt!="object"||rt===null)throw new TypeError('The "options" argument must be of type object.');var pt=(nt=rt.auth)!=null?nt:!0,ht=(lt=rt.fragment)!=null?lt:!0,mt=(ut=rt.search)!=null?ut:!0;(dt=rt.unicode)!=null;var xt=new URL$1(tt.toString());return pt||(xt.username="",xt.password=""),ht||(xt.hash=""),mt||(xt.search=""),xt.toString()},api$2={format:formatImportWithOverloads,parse:parseImport,resolve:resolveImport,resolveObject,Url:UrlImport,URL:URL$1,URLSearchParams:URLSearchParams$2,domainToASCII,domainToUnicode,pathToFileURL,fileURLToPath};const url=Object.freeze(Object.defineProperty({__proto__:null,URL:URL$1,URLSearchParams:URLSearchParams$2,Url:UrlImport,default:api$2,domainToASCII,domainToUnicode,fileURLToPath,format:formatImportWithOverloads,parse:parseImport,pathToFileURL,resolve:resolveImport,resolveObject},Symbol.toStringTag,{value:"Module"})),require$$1$4=getAugmentedNamespace(url);var hasRequiredStreamHttp;function requireStreamHttp(){return hasRequiredStreamHttp||(hasRequiredStreamHttp=1,function(et){var tt=requireRequest(),rt=requireResponse(),nt=requireImmutable(),lt=requireBrowser$3(),ut=require$$1$4,dt=et;dt.request=function(pt,ht){typeof pt=="string"?pt=ut.parse(pt):pt=nt(pt);var mt=commonjsGlobal$1.location.protocol.search(/^https?:$/)===-1?"http:":"",xt=pt.protocol||mt,Mt=pt.hostname||pt.host,vt=pt.port,Ot=pt.path||"/";Mt&&Mt.indexOf(":")!==-1&&(Mt="["+Mt+"]"),pt.url=(Mt?xt+"//"+Mt:"")+(vt?":"+vt:"")+Ot,pt.method=(pt.method||"GET").toUpperCase(),pt.headers=pt.headers||{};var At=new tt(pt);return ht&&At.on("response",ht),At},dt.get=function(ht,mt){var xt=dt.request(ht,mt);return xt.end(),xt},dt.ClientRequest=tt,dt.IncomingMessage=rt.IncomingMessage,dt.Agent=function(){},dt.Agent.defaultMaxSockets=4,dt.globalAgent=new dt.Agent,dt.STATUS_CODES=lt,dt.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(streamHttp)),streamHttp}var httpsBrowserify={exports:{}},hasRequiredHttpsBrowserify;function requireHttpsBrowserify(){return hasRequiredHttpsBrowserify||(hasRequiredHttpsBrowserify=1,function(et){var tt=requireStreamHttp(),rt=require$$1$4,nt=et.exports;for(var lt in tt)tt.hasOwnProperty(lt)&&(nt[lt]=tt[lt]);nt.request=function(dt,pt){return dt=ut(dt),tt.request.call(this,dt,pt)},nt.get=function(dt,pt){return dt=ut(dt),tt.get.call(this,dt,pt)};function ut(dt){if(typeof dt=="string"&&(dt=rt.parse(dt)),dt.protocol||(dt.protocol="https:"),dt.protocol!=="https:")throw new Error('Protocol "'+dt.protocol+'" not supported. Expected "https:"');return dt}}(httpsBrowserify)),httpsBrowserify.exports}var http_1,hasRequiredHttp;function requireHttp(){if(hasRequiredHttp)return http_1;hasRequiredHttp=1;function et(Nt){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Yt){return typeof Yt}:function(Yt){return Yt&&typeof Symbol=="function"&&Yt.constructor===Symbol&&Yt!==Symbol.prototype?"symbol":typeof Yt},et(Nt)}function tt(Nt,Yt){var Kt=Object.keys(Nt);if(Object.getOwnPropertySymbols){var Jt=Object.getOwnPropertySymbols(Nt);Yt&&(Jt=Jt.filter(function(Qt){return Object.getOwnPropertyDescriptor(Nt,Qt).enumerable})),Kt.push.apply(Kt,Jt)}return Kt}function rt(Nt){for(var Yt=1;Yt<arguments.length;Yt++){var Kt=arguments[Yt]!=null?arguments[Yt]:{};Yt%2?tt(Object(Kt),!0).forEach(function(Jt){nt(Nt,Jt,Kt[Jt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Nt,Object.getOwnPropertyDescriptors(Kt)):tt(Object(Kt)).forEach(function(Jt){Object.defineProperty(Nt,Jt,Object.getOwnPropertyDescriptor(Kt,Jt))})}return Nt}function nt(Nt,Yt,Kt){return(Yt=pt(Yt))in Nt?Object.defineProperty(Nt,Yt,{value:Kt,enumerable:!0,configurable:!0,writable:!0}):Nt[Yt]=Kt,Nt}function lt(Nt,Yt){if(!(Nt instanceof Yt))throw new TypeError("Cannot call a class as a function")}function ut(Nt,Yt){for(var Kt=0;Kt<Yt.length;Kt++){var Jt=Yt[Kt];Jt.enumerable=Jt.enumerable||!1,Jt.configurable=!0,"value"in Jt&&(Jt.writable=!0),Object.defineProperty(Nt,pt(Jt.key),Jt)}}function dt(Nt,Yt,Kt){return Yt&&ut(Nt.prototype,Yt),Object.defineProperty(Nt,"prototype",{writable:!1}),Nt}function pt(Nt){var Yt=ht(Nt,"string");return et(Yt)=="symbol"?Yt:Yt+""}function ht(Nt,Yt){if(et(Nt)!="object"||!Nt)return Nt;var Kt=Nt[Symbol.toPrimitive];if(Kt!==void 0){var Jt=Kt.call(Nt,Yt||"default");if(et(Jt)!="object")return Jt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Yt==="string"?String:Number)(Nt)}function mt(Nt,Yt,Kt){return Yt=Ot(Yt),xt(Nt,vt()?Reflect.construct(Yt,Kt||[],Ot(Nt).constructor):Yt.apply(Nt,Kt))}function xt(Nt,Yt){if(Yt&&(et(Yt)=="object"||typeof Yt=="function"))return Yt;if(Yt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mt(Nt)}function Mt(Nt){if(Nt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Nt}function vt(){try{var Nt=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vt=function(){return!!Nt})()}function Ot(Nt){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Yt){return Yt.__proto__||Object.getPrototypeOf(Yt)},Ot(Nt)}function At(Nt,Yt){if(typeof Yt!="function"&&Yt!==null)throw new TypeError("Super expression must either be null or a function");Nt.prototype=Object.create(Yt&&Yt.prototype,{constructor:{value:Nt,writable:!0,configurable:!0}}),Object.defineProperty(Nt,"prototype",{writable:!1}),Yt&&Rt(Nt,Yt)}function Rt(Nt,Yt){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Kt,Jt){return Kt.__proto__=Jt,Kt},Rt(Nt,Yt)}var zt=requireStreamHttp(),Tt=requireHttpsBrowserify(),Ct=readableBrowserExports$1,It=Ct.Stream,Dt=distExports$2,kt=safeStableStringifyExports,qt=kt.configure;return http_1=function(Nt){function Yt(){var Kt,Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return lt(this,Yt),Kt=mt(this,Yt,[Jt]),Kt.options=Jt,Kt.name=Jt.name||"http",Kt.ssl=!!Jt.ssl,Kt.host=Jt.host||"localhost",Kt.port=Jt.port,Kt.auth=Jt.auth,Kt.path=Jt.path||"",Kt.maximumDepth=Jt.maximumDepth,Kt.agent=Jt.agent,Kt.headers=Jt.headers||{},Kt.headers["content-type"]="application/json",Kt.batch=Jt.batch||!1,Kt.batchInterval=Jt.batchInterval||5e3,Kt.batchCount=Jt.batchCount||10,Kt.batchOptions=[],Kt.batchTimeoutID=-1,Kt.batchCallback={},Kt.port||(Kt.port=Kt.ssl?443:80),Kt}return At(Yt,Nt),dt(Yt,[{key:"log",value:function(Jt,Qt){var Bt=this;this._request(Jt,null,null,function(Ft,$t){$t&&$t.statusCode!==200&&(Ft=new Error("Invalid HTTP Status Code: ".concat($t.statusCode))),Ft?Bt.emit("warn",Ft):Bt.emit("logged",Jt)}),Qt&&setImmediate(Qt)}},{key:"query",value:function(Jt,Qt){typeof Jt=="function"&&(Qt=Jt,Jt={}),Jt={method:"query",params:this.normalizeQuery(Jt)};var Bt=Jt.params.auth||null;delete Jt.params.auth;var Ft=Jt.params.path||null;delete Jt.params.path,this._request(Jt,Bt,Ft,function($t,jt,Wt){if(jt&&jt.statusCode!==200&&($t=new Error("Invalid HTTP Status Code: ".concat(jt.statusCode))),$t)return Qt($t);if(typeof Wt=="string")try{Wt=JSON.parse(Wt)}catch(Ut){return Qt(Ut)}Qt(null,Wt)})}},{key:"stream",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Qt=new It;Jt={method:"stream",params:Jt};var Bt=Jt.params.path||null;delete Jt.params.path;var Ft=Jt.params.auth||null;delete Jt.params.auth;var $t="",jt=this._request(Jt,Ft,Bt);return Qt.destroy=function(){return jt.destroy()},jt.on("data",function(Wt){Wt=($t+Wt).split(/\n+/);for(var Ut=Wt.length-1,Vt=0;Vt<Ut;Vt++)try{Qt.emit("log",JSON.parse(Wt[Vt]))}catch(Ht){Qt.emit("error",Ht)}$t=Wt[Ut]}),jt.on("error",function(Wt){return Qt.emit("error",Wt)}),Qt}},{key:"_request",value:function(Jt,Qt,Bt,Ft){Jt=Jt||{},Qt=Qt||this.auth,Bt=Bt||this.path||"",this.batch?this._doBatch(Jt,Ft,Qt,Bt):this._doRequest(Jt,Ft,Qt,Bt)}},{key:"_doBatch",value:function(Jt,Qt,Bt,Ft){if(this.batchOptions.push(Jt),this.batchOptions.length===1){var $t=this;this.batchCallback=Qt,this.batchTimeoutID=setTimeout(function(){$t.batchTimeoutID=-1,$t._doBatchRequest($t.batchCallback,Bt,Ft)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,Bt,Ft)}},{key:"_doBatchRequest",value:function(Jt,Qt,Bt){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var Ft=this.batchOptions.slice();this.batchOptions=[],this._doRequest(Ft,Jt,Qt,Bt)}},{key:"_doRequest",value:function(Jt,Qt,Bt,Ft){var $t=Object.assign({},this.headers);Bt&&Bt.bearer&&($t.Authorization="Bearer ".concat(Bt.bearer));var jt=(this.ssl?Tt:zt).request(rt(rt({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(Ft.replace(/^\//,"")),headers:$t,auth:Bt&&Bt.username&&Bt.password?"".concat(Bt.username,":").concat(Bt.password):"",agent:this.agent}));jt.on("error",Qt),jt.on("response",function(Ut){return Ut.on("end",function(){return Qt(null,Ut)}).resume()});var Wt=qt(rt({},this.maximumDepth&&{maximumDepth:this.maximumDepth}));jt.end(Buffer$E.from(Wt(Jt,this.options.replacer),"utf8"))}}])}(Dt),http_1}const isStream$1=et=>et!==null&&typeof et=="object"&&typeof et.pipe=="function";isStream$1.writable=et=>isStream$1(et)&&et.writable!==!1&&typeof et._write=="function"&&typeof et._writableState=="object";isStream$1.readable=et=>isStream$1(et)&&et.readable!==!1&&typeof et._read=="function"&&typeof et._readableState=="object";isStream$1.duplex=et=>isStream$1.writable(et)&&isStream$1.readable(et);isStream$1.transform=et=>isStream$1.duplex(et)&&typeof et._transform=="function";var isStream_1=isStream$1,stream,hasRequiredStream;function requireStream(){if(hasRequiredStream)return stream;hasRequiredStream=1;function et(Ct){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It},et(Ct)}function tt(Ct,It){if(!(Ct instanceof It))throw new TypeError("Cannot call a class as a function")}function rt(Ct,It){for(var Dt=0;Dt<It.length;Dt++){var kt=It[Dt];kt.enumerable=kt.enumerable||!1,kt.configurable=!0,"value"in kt&&(kt.writable=!0),Object.defineProperty(Ct,lt(kt.key),kt)}}function nt(Ct,It,Dt){return It&&rt(Ct.prototype,It),Object.defineProperty(Ct,"prototype",{writable:!1}),Ct}function lt(Ct){var It=ut(Ct,"string");return et(It)=="symbol"?It:It+""}function ut(Ct,It){if(et(Ct)!="object"||!Ct)return Ct;var Dt=Ct[Symbol.toPrimitive];if(Dt!==void 0){var kt=Dt.call(Ct,It);if(et(kt)!="object")return kt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Ct)}function dt(Ct,It,Dt){return It=xt(It),pt(Ct,mt()?Reflect.construct(It,Dt||[],xt(Ct).constructor):It.apply(Ct,Dt))}function pt(Ct,It){if(It&&(et(It)=="object"||typeof It=="function"))return It;if(It!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ht(Ct)}function ht(Ct){if(Ct===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ct}function mt(){try{var Ct=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mt=function(){return!!Ct})()}function xt(Ct){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(It){return It.__proto__||Object.getPrototypeOf(It)},xt(Ct)}function Mt(Ct,It){if(typeof It!="function"&&It!==null)throw new TypeError("Super expression must either be null or a function");Ct.prototype=Object.create(It&&It.prototype,{constructor:{value:Ct,writable:!0,configurable:!0}}),Object.defineProperty(Ct,"prototype",{writable:!1}),It&&vt(Ct,It)}function vt(Ct,It){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Dt,kt){return Dt.__proto__=kt,Dt},vt(Ct,It)}var Ot=isStream_1,At=tripleBeam,Rt=At.MESSAGE,zt=browser$f,Tt=distExports$2;return stream=function(Ct){function It(){var Dt,kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tt(this,It),Dt=dt(this,It,[kt]),!kt.stream||!Ot(kt.stream))throw new Error("options.stream is required.");return Dt._stream=kt.stream,Dt._stream.setMaxListeners(1/0),Dt.isObjectMode=kt.stream._writableState.objectMode,Dt.eol=typeof kt.eol=="string"?kt.eol:zt.EOL,Dt}return Mt(It,Ct),nt(It,[{key:"log",value:function(kt,qt){var Nt=this;if(setImmediate(function(){return Nt.emit("logged",kt)}),this.isObjectMode){this._stream.write(kt),qt&&qt();return}this._stream.write("".concat(kt[Rt]).concat(this.eol)),qt&&qt()}}])}(Tt),stream}(function(et){Object.defineProperty(et,"Console",{configurable:!0,enumerable:!0,get:function(){return requireConsole()}}),Object.defineProperty(et,"File",{configurable:!0,enumerable:!0,get:function(){return requireFile()}}),Object.defineProperty(et,"Http",{configurable:!0,enumerable:!0,get:function(){return requireHttp()}}),Object.defineProperty(et,"Stream",{configurable:!0,enumerable:!0,get:function(){return requireStream()}})})(transports);var config$3={},logform=browser$h,_require$3=tripleBeam,configs=_require$3.configs;config$3.cli=logform.levels(configs.cli);config$3.npm=logform.levels(configs.npm);config$3.syslog=logform.levels(configs.syslog);config$3.addColors=logform.levels;var forEach$3={exports:{}},eachOf={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0});var rt=isArrayLikeExports,nt=zt(rt),lt=breakLoopExports,ut=zt(lt),dt=eachOfLimitExports,pt=zt(dt),ht=onceExports,mt=zt(ht),xt=onlyOnceExports,Mt=zt(xt),vt=requireWrapAsync(),Ot=zt(vt),At=awaitifyExports,Rt=zt(At);function zt(Dt){return Dt&&Dt.__esModule?Dt:{default:Dt}}function Tt(Dt,kt,qt){qt=(0,mt.default)(qt);var Nt=0,Yt=0,{length:Kt}=Dt,Jt=!1;Kt===0&&qt(null);function Qt(Bt,Ft){Bt===!1&&(Jt=!0),Jt!==!0&&(Bt?qt(Bt):(++Yt===Kt||Ft===ut.default)&&qt(null))}for(;Nt<Kt;Nt++)kt(Dt[Nt],Nt,(0,Mt.default)(Qt))}function Ct(Dt,kt,qt){return(0,pt.default)(Dt,1/0,kt,qt)}function It(Dt,kt,qt){var Nt=(0,nt.default)(Dt)?Tt:Ct;return Nt(Dt,(0,Ot.default)(kt),qt)}tt.default=(0,Rt.default)(It,3),et.exports=tt.default})(eachOf,eachOf.exports);var eachOfExports=eachOf.exports,withoutIndex={exports:{}};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=rt;function rt(nt){return(lt,ut,dt)=>nt(lt,dt)}et.exports=tt.default})(withoutIndex,withoutIndex.exports);var withoutIndexExports=withoutIndex.exports;(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0});var rt=eachOfExports,nt=xt(rt),lt=withoutIndexExports,ut=xt(lt),dt=requireWrapAsync(),pt=xt(dt),ht=awaitifyExports,mt=xt(ht);function xt(vt){return vt&&vt.__esModule?vt:{default:vt}}function Mt(vt,Ot,At){return(0,nt.default)(vt,(0,ut.default)((0,pt.default)(Ot)),At)}tt.default=(0,mt.default)(Mt,3),et.exports=tt.default})(forEach$3,forEach$3.exports);var forEachExports=forEach$3.exports,toString$b=Object.prototype.toString,fn_name=function(tt){if(typeof tt.displayName=="string"&&tt.constructor.name)return tt.displayName;if(typeof tt.name=="string"&&tt.name)return tt.name;if(typeof tt=="object"&&tt.constructor&&typeof tt.constructor.name=="string")return tt.constructor.name;var rt=tt.toString(),nt=toString$b.call(tt).slice(8,-1);return nt==="Function"?rt=rt.substring(rt.indexOf("(")+1,rt.indexOf(")")):rt=nt,rt||"anonymous"},name$1=fn_name,oneTime=function(tt){var rt=0,nt;function lt(){return rt||(rt=1,nt=tt.apply(this,arguments),tt=null),nt}return lt.displayName=name$1(tt),lt},stackTrace$2={};(function(et){et.get=function(lt){var ut=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var dt={},pt=Error.prepareStackTrace;Error.prepareStackTrace=function(mt,xt){return xt},Error.captureStackTrace(dt,lt||et.get);var ht=dt.stack;return Error.prepareStackTrace=pt,Error.stackTraceLimit=ut,ht},et.parse=function(lt){if(!lt.stack)return[];var ut=this,dt=lt.stack.split(`
`).slice(1);return dt.map(function(pt){if(pt.match(/^\s*[-]{4,}$/))return ut._createParsedCallSite({fileName:pt,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var ht=pt.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(ht){var mt=null,xt=null,Mt=null,vt=null,Ot=null,At=ht[5]==="native";if(ht[1]){Mt=ht[1];var Rt=Mt.lastIndexOf(".");if(Mt[Rt-1]=="."&&Rt--,Rt>0){mt=Mt.substr(0,Rt),xt=Mt.substr(Rt+1);var zt=mt.indexOf(".Module");zt>0&&(Mt=Mt.substr(zt+1),mt=mt.substr(0,zt))}vt=null}xt&&(vt=mt,Ot=xt),xt==="<anonymous>"&&(Ot=null,Mt=null);var Tt={fileName:ht[2]||null,lineNumber:parseInt(ht[3],10)||null,functionName:Mt,typeName:vt,methodName:Ot,columnNumber:parseInt(ht[4],10)||null,native:At};return ut._createParsedCallSite(Tt)}}).filter(function(pt){return!!pt})};function tt(lt){for(var ut in lt)this[ut]=lt[ut]}var rt=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],nt=["topLevel","eval","native","constructor"];rt.forEach(function(lt){tt.prototype[lt]=null,tt.prototype["get"+lt[0].toUpperCase()+lt.substr(1)]=function(){return this[lt]}}),nt.forEach(function(lt){tt.prototype[lt]=!1,tt.prototype["is"+lt[0].toUpperCase()+lt.substr(1)]=function(){return this[lt]}}),et._createParsedCallSite=function(lt){return new tt(lt)}})(stackTrace$2);function _typeof$b(et){"@babel/helpers - typeof";return _typeof$b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$b(et)}function _classCallCheck$i(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$6(nt.key),nt)}}function _createClass$i(et,tt,rt){return tt&&_defineProperties$e(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$6(et){var tt=_toPrimitive$6(et,"string");return _typeof$b(tt)=="symbol"?tt:tt+""}function _toPrimitive$6(et,tt){if(_typeof$b(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$b(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}function _callSuper$3(et,tt,rt){return tt=_getPrototypeOf$5(tt),_possibleConstructorReturn$7(et,_isNativeReflectConstruct$a()?Reflect.construct(tt,rt||[],_getPrototypeOf$5(et).constructor):tt.apply(et,rt))}function _possibleConstructorReturn$7(et,tt){if(tt&&(_typeof$b(tt)=="object"||typeof tt=="function"))return tt;if(tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$7(et)}function _assertThisInitialized$7(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function _isNativeReflectConstruct$a(){try{var et=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$a=function(){return!!et})()}function _getPrototypeOf$5(et){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$5(et)}function _inherits$7(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),tt&&_setPrototypeOf$4(et,tt)}function _setPrototypeOf$4(et,tt){return _setPrototypeOf$4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,nt){return rt.__proto__=nt,rt},_setPrototypeOf$4(et,tt)}var _require$2=readableBrowserExports$1,Writable$2=_require$2.Writable,exceptionStream=function(et){function tt(rt){var nt;if(_classCallCheck$i(this,tt),nt=_callSuper$3(this,tt,[{objectMode:!0}]),!rt)throw new Error("ExceptionStream requires a TransportStream instance.");return nt.handleExceptions=!0,nt.transport=rt,nt}return _inherits$7(tt,et),_createClass$i(tt,[{key:"_write",value:function(nt,lt,ut){return nt.exception?this.transport.log(nt,ut):(ut(),!0)}}])}(Writable$2);function _typeof$a(et){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$a(et)}function _classCallCheck$h(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$d(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$5(nt.key),nt)}}function _createClass$h(et,tt,rt){return tt&&_defineProperties$d(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$5(et){var tt=_toPrimitive$5(et,"string");return _typeof$a(tt)=="symbol"?tt:tt+""}function _toPrimitive$5(et,tt){if(_typeof$a(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$a(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}var os$1=browser$f,asyncForEach$1=forEachExports,debug$2=browserExports$1("winston:exception"),once$2=oneTime,stackTrace$1=stackTrace$2,ExceptionStream=exceptionStream,exceptionHandler=function(){function et(tt){if(_classCallCheck$h(this,et),!tt)throw new Error("Logger is required to handle exceptions");this.logger=tt,this.handlers=new Map}return _createClass$h(et,[{key:"handle",value:function(){for(var rt=this,nt=arguments.length,lt=new Array(nt),ut=0;ut<nt;ut++)lt[ut]=arguments[ut];lt.forEach(function(dt){if(Array.isArray(dt))return dt.forEach(function(pt){return rt._addHandler(pt)});rt._addHandler(dt)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process$1$1.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var rt=this;this.catcher&&(process$1$1.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(nt){return rt.logger.unpipe(nt)}))}},{key:"getAllInfo",value:function(rt){var nt=null;return rt&&(nt=typeof rt=="string"?rt:rt.message),{error:rt,level:"error",message:["uncaughtException: ".concat(nt||"(no error message)"),rt&&rt.stack||"  No stack trace"].join(`
`),stack:rt&&rt.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(rt)}}},{key:"getProcessInfo",value:function(){return{pid:process$1$1.pid,uid:process$1$1.getuid?process$1$1.getuid():null,gid:process$1$1.getgid?process$1$1.getgid():null,cwd:process$1$1.cwd(),execPath:process$1$1.execPath,version:process$1$1.version,argv:process$1$1.argv,memoryUsage:process$1$1.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:os$1.loadavg(),uptime:os$1.uptime()}}},{key:"getTrace",value:function(rt){var nt=rt?stackTrace$1.parse(rt):stackTrace$1.get();return nt.map(function(lt){return{column:lt.getColumnNumber(),file:lt.getFileName(),function:lt.getFunctionName(),line:lt.getLineNumber(),method:lt.getMethodName(),native:lt.isNative()}})}},{key:"_addHandler",value:function(rt){if(!this.handlers.has(rt)){rt.handleExceptions=!0;var nt=new ExceptionStream(rt);this.handlers.set(rt,nt),this.logger.pipe(nt)}}},{key:"_uncaughtException",value:function(rt){var nt=this.getAllInfo(rt),lt=this._getExceptionHandlers(),ut=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(rt):this.logger.exitOnError,dt;!lt.length&&ut&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),ut=!1);function pt(){debug$2("doExit",ut),debug$2("process._exiting",process$1$1._exiting),ut&&!process$1$1._exiting&&(dt&&clearTimeout(dt),process$1$1.exit(1))}if(!lt||lt.length===0)return process$1$1.nextTick(pt);asyncForEach$1(lt,function(ht,mt){var xt=once$2(mt),Mt=ht.transport||ht;function vt(Ot){return function(){debug$2(Ot),xt()}}Mt._ending=!0,Mt.once("finish",vt("finished")),Mt.once("error",vt("error"))},function(){return ut&&pt()}),this.logger.log(nt),ut&&(dt=setTimeout(pt,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(rt){var nt=rt.transport||rt;return nt.handleExceptions})}}])}();function _typeof$9(et){"@babel/helpers - typeof";return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$9(et)}function _classCallCheck$g(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$c(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$4(nt.key),nt)}}function _createClass$g(et,tt,rt){return tt&&_defineProperties$c(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$4(et){var tt=_toPrimitive$4(et,"string");return _typeof$9(tt)=="symbol"?tt:tt+""}function _toPrimitive$4(et,tt){if(_typeof$9(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$9(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}function _callSuper$2(et,tt,rt){return tt=_getPrototypeOf$4(tt),_possibleConstructorReturn$6(et,_isNativeReflectConstruct$9()?Reflect.construct(tt,rt||[],_getPrototypeOf$4(et).constructor):tt.apply(et,rt))}function _possibleConstructorReturn$6(et,tt){if(tt&&(_typeof$9(tt)=="object"||typeof tt=="function"))return tt;if(tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$6(et)}function _assertThisInitialized$6(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function _isNativeReflectConstruct$9(){try{var et=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$9=function(){return!!et})()}function _getPrototypeOf$4(et){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$4(et)}function _inherits$6(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),tt&&_setPrototypeOf$3(et,tt)}function _setPrototypeOf$3(et,tt){return _setPrototypeOf$3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,nt){return rt.__proto__=nt,rt},_setPrototypeOf$3(et,tt)}var _require$1=readableBrowserExports$1,Writable$1=_require$1.Writable,rejectionStream=function(et){function tt(rt){var nt;if(_classCallCheck$g(this,tt),nt=_callSuper$2(this,tt,[{objectMode:!0}]),!rt)throw new Error("RejectionStream requires a TransportStream instance.");return nt.handleRejections=!0,nt.transport=rt,nt}return _inherits$6(tt,et),_createClass$g(tt,[{key:"_write",value:function(nt,lt,ut){return nt.rejection?this.transport.log(nt,ut):(ut(),!0)}}])}(Writable$1);function _typeof$8(et){"@babel/helpers - typeof";return _typeof$8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$8(et)}function _classCallCheck$f(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$b(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$3(nt.key),nt)}}function _createClass$f(et,tt,rt){return tt&&_defineProperties$b(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$3(et){var tt=_toPrimitive$3(et,"string");return _typeof$8(tt)=="symbol"?tt:tt+""}function _toPrimitive$3(et,tt){if(_typeof$8(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$8(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}var os=browser$f,asyncForEach=forEachExports,debug$1=browserExports$1("winston:rejection"),once$1=oneTime,stackTrace=stackTrace$2,RejectionStream=rejectionStream,rejectionHandler=function(){function et(tt){if(_classCallCheck$f(this,et),!tt)throw new Error("Logger is required to handle rejections");this.logger=tt,this.handlers=new Map}return _createClass$f(et,[{key:"handle",value:function(){for(var rt=this,nt=arguments.length,lt=new Array(nt),ut=0;ut<nt;ut++)lt[ut]=arguments[ut];lt.forEach(function(dt){if(Array.isArray(dt))return dt.forEach(function(pt){return rt._addHandler(pt)});rt._addHandler(dt)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process$1$1.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var rt=this;this.catcher&&(process$1$1.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(nt){return rt.logger.unpipe(nt)}))}},{key:"getAllInfo",value:function(rt){var nt=null;return rt&&(nt=typeof rt=="string"?rt:rt.message),{error:rt,level:"error",message:["unhandledRejection: ".concat(nt||"(no error message)"),rt&&rt.stack||"  No stack trace"].join(`
`),stack:rt&&rt.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(rt)}}},{key:"getProcessInfo",value:function(){return{pid:process$1$1.pid,uid:process$1$1.getuid?process$1$1.getuid():null,gid:process$1$1.getgid?process$1$1.getgid():null,cwd:process$1$1.cwd(),execPath:process$1$1.execPath,version:process$1$1.version,argv:process$1$1.argv,memoryUsage:process$1$1.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:os.loadavg(),uptime:os.uptime()}}},{key:"getTrace",value:function(rt){var nt=rt?stackTrace.parse(rt):stackTrace.get();return nt.map(function(lt){return{column:lt.getColumnNumber(),file:lt.getFileName(),function:lt.getFunctionName(),line:lt.getLineNumber(),method:lt.getMethodName(),native:lt.isNative()}})}},{key:"_addHandler",value:function(rt){if(!this.handlers.has(rt)){rt.handleRejections=!0;var nt=new RejectionStream(rt);this.handlers.set(rt,nt),this.logger.pipe(nt)}}},{key:"_unhandledRejection",value:function(rt){var nt=this.getAllInfo(rt),lt=this._getRejectionHandlers(),ut=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(rt):this.logger.exitOnError,dt;!lt.length&&ut&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),ut=!1);function pt(){debug$1("doExit",ut),debug$1("process._exiting",process$1$1._exiting),ut&&!process$1$1._exiting&&(dt&&clearTimeout(dt),process$1$1.exit(1))}if(!lt||lt.length===0)return process$1$1.nextTick(pt);asyncForEach(lt,function(ht,mt){var xt=once$1(mt),Mt=ht.transport||ht;function vt(Ot){return function(){debug$1(Ot),xt()}}Mt._ending=!0,Mt.once("finish",vt("finished")),Mt.once("error",vt("error"))},function(){return ut&&pt()}),this.logger.log(nt),ut&&(dt=setTimeout(pt,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(rt){var nt=rt.transport||rt;return nt.handleRejections})}}])}(),legacy$1={exports:{}},modern={exports:{}};const util$6=util$a,Writable=require_stream_writable$1(),{LEVEL:LEVEL$2}=tripleBeam,TransportStream$1=modern.exports=function(tt={}){Writable.call(this,{objectMode:!0,highWaterMark:tt.highWaterMark}),this.format=tt.format,this.level=tt.level,this.handleExceptions=tt.handleExceptions,this.handleRejections=tt.handleRejections,this.silent=tt.silent,tt.log&&(this.log=tt.log),tt.logv&&(this.logv=tt.logv),tt.close&&(this.close=tt.close),this.once("pipe",rt=>{this.levels=rt.levels,this.parent=rt}),this.once("unpipe",rt=>{rt===this.parent&&(this.parent=null,this.close&&this.close())})};util$6.inherits(TransportStream$1,Writable);TransportStream$1.prototype._write=function(tt,rt,nt){if(this.silent||tt.exception===!0&&!this.handleExceptions)return nt(null);const lt=this.level||this.parent&&this.parent.level;if(!lt||this.levels[lt]>=this.levels[tt[LEVEL$2]]){if(tt&&!this.format)return this.log(tt,nt);let ut,dt;try{dt=this.format.transform(Object.assign({},tt),this.format.options)}catch(pt){ut=pt}if(ut||!dt){if(nt(),ut)throw ut;return}return this.log(dt,nt)}return this._writableState.sync=!1,nt(null)};TransportStream$1.prototype._writev=function(tt,rt){if(this.logv){const nt=tt.filter(this._accept,this);return nt.length?this.logv(nt,rt):rt(null)}for(let nt=0;nt<tt.length;nt++){if(!this._accept(tt[nt]))continue;if(tt[nt].chunk&&!this.format){this.log(tt[nt].chunk,tt[nt].callback);continue}let lt,ut;try{ut=this.format.transform(Object.assign({},tt[nt].chunk),this.format.options)}catch(dt){lt=dt}if(lt||!ut){if(tt[nt].callback(),lt)throw rt(null),lt}else this.log(ut,tt[nt].callback)}return rt(null)};TransportStream$1.prototype._accept=function(tt){const rt=tt.chunk;if(this.silent)return!1;const nt=this.level||this.parent&&this.parent.level;return!!((rt.exception===!0||!nt||this.levels[nt]>=this.levels[rt[LEVEL$2]])&&(this.handleExceptions||rt.exception!==!0))};TransportStream$1.prototype._nop=function(){};var modernExports=modern.exports;const util$5=util$a,{LEVEL:LEVEL$1}=tripleBeam,TransportStream=modernExports,LegacyTransportStream=legacy$1.exports=function(tt={}){if(TransportStream.call(this,tt),!tt.transport||typeof tt.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=tt.transport,this.level=this.level||tt.transport.level,this.handleExceptions=this.handleExceptions||tt.transport.handleExceptions,this._deprecated();function rt(nt){this.emit("error",nt,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=rt.bind(this),this.transport.on("error",this.transport.__winstonError))};util$5.inherits(LegacyTransportStream,TransportStream);LegacyTransportStream.prototype._write=function(tt,rt,nt){if(this.silent||tt.exception===!0&&!this.handleExceptions)return nt(null);(!this.level||this.levels[this.level]>=this.levels[tt[LEVEL$1]])&&this.transport.log(tt[LEVEL$1],tt.message,tt,this._nop),nt(null)};LegacyTransportStream.prototype._writev=function(tt,rt){for(let nt=0;nt<tt.length;nt++)this._accept(tt[nt])&&(this.transport.log(tt[nt].chunk[LEVEL$1],tt[nt].chunk.message,tt[nt].chunk,this._nop),tt[nt].callback());return rt(null)};LegacyTransportStream.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
`))};LegacyTransportStream.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)};var legacyExports=legacy$1.exports,profiler,hasRequiredProfiler;function requireProfiler(){if(hasRequiredProfiler)return profiler;hasRequiredProfiler=1;function et(pt){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ht){return typeof ht}:function(ht){return ht&&typeof Symbol=="function"&&ht.constructor===Symbol&&ht!==Symbol.prototype?"symbol":typeof ht},et(pt)}function tt(pt,ht){if(!(pt instanceof ht))throw new TypeError("Cannot call a class as a function")}function rt(pt,ht){for(var mt=0;mt<ht.length;mt++){var xt=ht[mt];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty(pt,lt(xt.key),xt)}}function nt(pt,ht,mt){return ht&&rt(pt.prototype,ht),Object.defineProperty(pt,"prototype",{writable:!1}),pt}function lt(pt){var ht=ut(pt,"string");return et(ht)=="symbol"?ht:ht+""}function ut(pt,ht){if(et(pt)!="object"||!pt)return pt;var mt=pt[Symbol.toPrimitive];if(mt!==void 0){var xt=mt.call(pt,ht);if(et(xt)!="object")return xt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(pt)}var dt=function(){function pt(ht){tt(this,pt);var mt=requireLogger();if(et(ht)!=="object"||Array.isArray(ht)||!(ht instanceof mt))throw new Error("Logger is required for profiling");this.logger=ht,this.start=Date.now()}return nt(pt,[{key:"done",value:function(){for(var mt=arguments.length,xt=new Array(mt),Mt=0;Mt<mt;Mt++)xt[Mt]=arguments[Mt];typeof xt[xt.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),xt.pop());var vt=et(xt[xt.length-1])==="object"?xt.pop():{};return vt.level=vt.level||"info",vt.durationMs=Date.now()-this.start,this.logger.write(vt)}}])}();return profiler=dt,profiler}var format$3,hasRequiredFormat;function requireFormat(){if(hasRequiredFormat)return format$3;hasRequiredFormat=1;class et extends Error{constructor(rt){super(`Format functions must be synchronous taking a two arguments: (info, opts)
Found: ${rt.toString().split(`
`)[0]}
`),Error.captureStackTrace(this,et)}}return format$3=tt=>{if(tt.length>2)throw new et(tt);function rt(lt={}){this.options=lt}rt.prototype.transform=tt;function nt(lt){return new rt(lt)}return nt.Format=rt,nt},format$3}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;const et=requireFormat(),{MESSAGE:tt}=tripleBeam,rt=safeStableStringifyExports;function nt(lt,ut){return typeof ut=="bigint"?ut.toString():ut}return json=et((lt,ut)=>{const dt=rt.configure(ut);return lt[tt]=dt(lt,ut.replacer||nt,ut.space),lt}),json}var logger$T,hasRequiredLogger;function requireLogger(){if(hasRequiredLogger)return logger$T;hasRequiredLogger=1;function et(Wt,Ut,Vt){return(Ut=ut(Ut))in Wt?Object.defineProperty(Wt,Ut,{value:Vt,enumerable:!0,configurable:!0,writable:!0}):Wt[Ut]=Vt,Wt}function tt(Wt){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ut){return typeof Ut}:function(Ut){return Ut&&typeof Symbol=="function"&&Ut.constructor===Symbol&&Ut!==Symbol.prototype?"symbol":typeof Ut},tt(Wt)}function rt(Wt,Ut){if(!(Wt instanceof Ut))throw new TypeError("Cannot call a class as a function")}function nt(Wt,Ut){for(var Vt=0;Vt<Ut.length;Vt++){var Ht=Ut[Vt];Ht.enumerable=Ht.enumerable||!1,Ht.configurable=!0,"value"in Ht&&(Ht.writable=!0),Object.defineProperty(Wt,ut(Ht.key),Ht)}}function lt(Wt,Ut,Vt){return Ut&&nt(Wt.prototype,Ut),Object.defineProperty(Wt,"prototype",{writable:!1}),Wt}function ut(Wt){var Ut=dt(Wt,"string");return tt(Ut)=="symbol"?Ut:Ut+""}function dt(Wt,Ut){if(tt(Wt)!="object"||!Wt)return Wt;var Vt=Wt[Symbol.toPrimitive];if(Vt!==void 0){var Ht=Vt.call(Wt,Ut||"default");if(tt(Ht)!="object")return Ht;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ut==="string"?String:Number)(Wt)}function pt(Wt,Ut,Vt){return Ut=Mt(Ut),ht(Wt,xt()?Reflect.construct(Ut,Vt||[],Mt(Wt).constructor):Ut.apply(Wt,Vt))}function ht(Wt,Ut){if(Ut&&(tt(Ut)=="object"||typeof Ut=="function"))return Ut;if(Ut!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mt(Wt)}function mt(Wt){if(Wt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Wt}function xt(){try{var Wt=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xt=function(){return!!Wt})()}function Mt(Wt){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ut){return Ut.__proto__||Object.getPrototypeOf(Ut)},Mt(Wt)}function vt(Wt,Ut){if(typeof Ut!="function"&&Ut!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Ut&&Ut.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Object.defineProperty(Wt,"prototype",{writable:!1}),Ut&&Ot(Wt,Ut)}function Ot(Wt,Ut){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Vt,Ht){return Vt.__proto__=Ht,Vt},Ot(Wt,Ut)}var At=readableBrowserExports$1,Rt=At.Stream,zt=At.Transform,Tt=forEachExports,Ct=tripleBeam,It=Ct.LEVEL,Dt=Ct.SPLAT,kt=isStream_1,qt=exceptionHandler,Nt=rejectionHandler,Yt=legacyExports,Kt=requireProfiler(),Jt=common$8,Qt=Jt.warn,Bt=config$3,Ft=/%[scdjifoO%]/g,$t=function(Wt){function Ut(Vt){var Ht;return rt(this,Ut),Ht=pt(this,Ut,[{objectMode:!0}]),Ht.configure(Vt),Ht}return vt(Ut,Wt),lt(Ut,[{key:"child",value:function(Ht){var Gt=this;return Object.create(Gt,{write:{value:function(Xt){var er=Object.assign({},Ht,Xt);Xt instanceof Error&&(er.stack=Xt.stack,er.message=Xt.message),Gt.write(er)}}})}},{key:"configure",value:function(){var Ht=this,Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Zt=Gt.silent,Xt=Gt.format,er=Gt.defaultMeta,nr=Gt.levels,or=Gt.level,rr=or===void 0?"info":or,cr=Gt.exitOnError,ir=cr===void 0?!0:cr,dr=Gt.transports,gr=Gt.colors,br=Gt.emitErrs,ar=Gt.formatters,ur=Gt.padLevels,xr=Gt.rewriters,Mr=Gt.stripColors,Ar=Gt.exceptionHandlers,Ir=Gt.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=Zt,this.format=Xt||this.format||requireJson()(),this.defaultMeta=er||null,this.levels=nr||this.levels||Bt.npm.levels,this.level=rr,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new qt(this),this.rejections=new Nt(this),this.profilers={},this.exitOnError=ir,dr&&(dr=Array.isArray(dr)?dr:[dr],dr.forEach(function(Rr){return Ht.add(Rr)})),gr||br||ar||ur||xr||Mr)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
`));Ar&&this.exceptions.handle(Ar),Ir&&this.rejections.handle(Ir)}},{key:"isLevelEnabled",value:function(Ht){var Gt=this,Zt=jt(this.levels,Ht);if(Zt===null)return!1;var Xt=jt(this.levels,this.level);if(Xt===null)return!1;if(!this.transports||this.transports.length===0)return Xt>=Zt;var er=this.transports.findIndex(function(nr){var or=jt(Gt.levels,nr.level);return or===null&&(or=Xt),or>=Zt});return er!==-1}},{key:"log",value:function(Ht,Gt){for(var Zt=arguments.length,Xt=new Array(Zt>2?Zt-2:0),er=2;er<Zt;er++)Xt[er-2]=arguments[er];if(arguments.length===1)return Ht[It]=Ht.level,this._addDefaultMeta(Ht),this.write(Ht),this;if(arguments.length===2)return Gt&&tt(Gt)==="object"?(Gt[It]=Gt.level=Ht,this._addDefaultMeta(Gt),this.write(Gt),this):(Gt=et(et(et({},It,Ht),"level",Ht),"message",Gt),this._addDefaultMeta(Gt),this.write(Gt),this);var nr=Xt[0];if(tt(nr)==="object"&&nr!==null){var or=Gt&&Gt.match&&Gt.match(Ft);if(!or){var rr=Object.assign({},this.defaultMeta,nr,et(et(et(et({},It,Ht),Dt,Xt),"level",Ht),"message",Gt));return nr.message&&(rr.message="".concat(rr.message," ").concat(nr.message)),nr.stack&&(rr.stack=nr.stack),this.write(rr),this}}return this.write(Object.assign({},this.defaultMeta,et(et(et(et({},It,Ht),Dt,Xt),"level",Ht),"message",Gt))),this}},{key:"_transform",value:function(Ht,Gt,Zt){if(this.silent)return Zt();Ht[It]||(Ht[It]=Ht.level),!this.levels[Ht[It]]&&this.levels[Ht[It]]!==0&&console.error("[winston] Unknown logger level: %s",Ht[It]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",Ht);try{this.push(this.format.transform(Ht,this.format.options))}finally{this._writableState.sync=!1,Zt()}}},{key:"_final",value:function(Ht){var Gt=this.transports.slice();Tt(Gt,function(Zt,Xt){if(!Zt||Zt.finished)return setImmediate(Xt);Zt.once("finish",Xt),Zt.end()},Ht)}},{key:"add",value:function(Ht){var Gt=!kt(Ht)||Ht.log.length>2?new Yt({transport:Ht}):Ht;if(!Gt._writableState||!Gt._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",Gt),this._onEvent("warn",Gt),this.pipe(Gt),Ht.handleExceptions&&this.exceptions.handle(),Ht.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(Ht){if(!Ht)return this;var Gt=Ht;return(!kt(Ht)||Ht.log.length>2)&&(Gt=this.transports.filter(function(Zt){return Zt.transport===Ht})[0]),Gt&&this.unpipe(Gt),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){Qt.deprecated("setLevels")}},{key:"query",value:function(Ht,Gt){typeof Ht=="function"&&(Gt=Ht,Ht={}),Ht=Ht||{};var Zt={},Xt=Object.assign({},Ht.query||{});function er(or,rr){Ht.query&&typeof or.formatQuery=="function"&&(Ht.query=or.formatQuery(Xt)),or.query(Ht,function(cr,ir){if(cr)return rr(cr);typeof or.formatResults=="function"&&(ir=or.formatResults(ir,Ht.format)),rr(null,ir)})}function nr(or,rr){er(or,function(cr,ir){rr&&(ir=cr||ir,ir&&(Zt[or.name]=ir),rr()),rr=null})}Tt(this.transports.filter(function(or){return!!or.query}),nr,function(){return Gt(null,Zt)})}},{key:"stream",value:function(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Gt=new Rt,Zt=[];return Gt._streams=Zt,Gt.destroy=function(){for(var Xt=Zt.length;Xt--;)Zt[Xt].destroy()},this.transports.filter(function(Xt){return!!Xt.stream}).forEach(function(Xt){var er=Xt.stream(Ht);er&&(Zt.push(er),er.on("log",function(nr){nr.transport=nr.transport||[],nr.transport.push(Xt.name),Gt.emit("log",nr)}),er.on("error",function(nr){nr.transport=nr.transport||[],nr.transport.push(Xt.name),Gt.emit("error",nr)}))}),Gt}},{key:"startTimer",value:function(){return new Kt(this)}},{key:"profile",value:function(Ht){var Gt=Date.now();if(this.profilers[Ht]){var Zt=this.profilers[Ht];delete this.profilers[Ht];for(var Xt=arguments.length,er=new Array(Xt>1?Xt-1:0),nr=1;nr<Xt;nr++)er[nr-1]=arguments[nr];typeof er[er.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),er.pop());var or=tt(er[er.length-1])==="object"?er.pop():{};return or.level=or.level||"info",or.durationMs=Gt-Zt,or.message=or.message||Ht,this.write(or)}return this.profilers[Ht]=Gt,this}},{key:"handleExceptions",value:function(){var Ht;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(Ht=this.exceptions).handle.apply(Ht,arguments)}},{key:"unhandleExceptions",value:function(){var Ht;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(Ht=this.exceptions).unhandle.apply(Ht,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
`))}},{key:"_onEvent",value:function(Ht,Gt){function Zt(Xt){Ht==="error"&&!this.transports.includes(Gt)&&this.add(Gt),this.emit(Ht,Xt,Gt)}Gt["__winston"+Ht]||(Gt["__winston"+Ht]=Zt.bind(this),Gt.on(Ht,Gt["__winston"+Ht]))}},{key:"_addDefaultMeta",value:function(Ht){this.defaultMeta&&Object.assign(Ht,this.defaultMeta)}}])}(zt);function jt(Wt,Ut){var Vt=Wt[Ut];return!Vt&&Vt!==0?null:Vt}return Object.defineProperty($t.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var Ut=this._readableState.pipes;return Array.isArray(Ut)?Ut:[Ut].filter(Boolean)}}),logger$T=$t,logger$T}function _typeof$7(et){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$7(et)}function _createClass$e(et,tt,rt){return Object.defineProperty(et,"prototype",{writable:!1}),et}function _classCallCheck$e(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _callSuper$1(et,tt,rt){return tt=_getPrototypeOf$3(tt),_possibleConstructorReturn$5(et,_isNativeReflectConstruct$8()?Reflect.construct(tt,rt||[],_getPrototypeOf$3(et).constructor):tt.apply(et,rt))}function _possibleConstructorReturn$5(et,tt){if(tt&&(_typeof$7(tt)=="object"||typeof tt=="function"))return tt;if(tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$5(et)}function _assertThisInitialized$5(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function _isNativeReflectConstruct$8(){try{var et=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$8=function(){return!!et})()}function _getPrototypeOf$3(et){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$3(et)}function _inherits$5(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),tt&&_setPrototypeOf$2(et,tt)}function _setPrototypeOf$2(et,tt){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(rt,nt){return rt.__proto__=nt,rt},_setPrototypeOf$2(et,tt)}var _require=tripleBeam,LEVEL=_require.LEVEL,config$2=config$3,Logger$1=requireLogger(),debug=browserExports$1("winston:create-logger");function isLevelEnabledFunctionName(et){return"is"+et.charAt(0).toUpperCase()+et.slice(1)+"Enabled"}var createLogger$1=function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};et.levels=et.levels||config$2.npm.levels;var tt=function(nt){function lt(ut){return _classCallCheck$e(this,lt),_callSuper$1(this,lt,[ut])}return _inherits$5(lt,nt),_createClass$e(lt)}(Logger$1),rt=new tt(et);return Object.keys(et.levels).forEach(function(nt){if(debug('Define prototype method for "%s"',nt),nt==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}tt.prototype[nt]=function(){for(var lt=this||rt,ut=arguments.length,dt=new Array(ut),pt=0;pt<ut;pt++)dt[pt]=arguments[pt];if(dt.length===1){var ht=dt[0],mt=ht&&ht.message&&ht||{message:ht};return mt.level=mt[LEVEL]=nt,lt._addDefaultMeta(mt),lt.write(mt),this||rt}return dt.length===0?(lt.log(nt,""),lt):lt.log.apply(lt,[nt].concat(dt))},tt.prototype[isLevelEnabledFunctionName(nt)]=function(){return(this||rt).isLevelEnabled(nt)}}),rt};function _typeof$6(et){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$6(et)}function _classCallCheck$d(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey$2(nt.key),nt)}}function _createClass$d(et,tt,rt){return tt&&_defineProperties$a(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _toPropertyKey$2(et){var tt=_toPrimitive$2(et,"string");return _typeof$6(tt)=="symbol"?tt:tt+""}function _toPrimitive$2(et,tt){if(_typeof$6(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt);if(_typeof$6(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(et)}var createLogger=createLogger$1,container$1=function(){function et(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_classCallCheck$d(this,et),this.loggers=new Map,this.options=tt}return _createClass$d(et,[{key:"add",value:function(rt,nt){var lt=this;if(!this.loggers.has(rt)){nt=Object.assign({},nt||this.options);var ut=nt.transports||this.options.transports;ut?nt.transports=Array.isArray(ut)?ut.slice():[ut]:nt.transports=[];var dt=createLogger(nt);dt.on("close",function(){return lt._delete(rt)}),this.loggers.set(rt,dt)}return this.loggers.get(rt)}},{key:"get",value:function(rt,nt){return this.add(rt,nt)}},{key:"has",value:function(rt){return!!this.loggers.has(rt)}},{key:"close",value:function(rt){var nt=this;if(rt)return this._removeLogger(rt);this.loggers.forEach(function(lt,ut){return nt._removeLogger(ut)})}},{key:"_removeLogger",value:function(rt){if(this.loggers.has(rt)){var nt=this.loggers.get(rt);nt.close(),this._delete(rt)}}},{key:"_delete",value:function(rt){this.loggers.delete(rt)}}])}();(function(et){var tt=browser$h,rt=common$8,nt=rt.warn;et.version=require$$2$2.version,et.transports=transports,et.config=config$3,et.addColors=tt.levels,et.format=tt.format,et.createLogger=createLogger$1,et.Logger=requireLogger(),et.ExceptionHandler=exceptionHandler,et.RejectionHandler=rejectionHandler,et.Container=container$1,et.Transport=distExports$2,et.loggers=new et.Container;var lt=et.createLogger();Object.keys(et.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(ut){return et[ut]=function(){return lt[ut].apply(lt,arguments)}}),Object.defineProperty(et,"level",{get:function(){return lt.level},set:function(dt){lt.level=dt}}),Object.defineProperty(et,"exceptions",{get:function(){return lt.exceptions}}),Object.defineProperty(et,"rejections",{get:function(){return lt.rejections}}),["exitOnError"].forEach(function(ut){Object.defineProperty(et,ut,{get:function(){return lt[ut]},set:function(pt){lt[ut]=pt}})}),Object.defineProperty(et,"default",{get:function(){return{exceptionHandlers:lt.exceptionHandlers,rejectionHandlers:lt.rejectionHandlers,transports:lt.transports}}}),nt.deprecated(et,"setLevels"),nt.forFunctions(et,"useFormat",["cli"]),nt.forProperties(et,"useFormat",["padLevels","stripColors"]),nt.forFunctions(et,"deprecated",["addRewriter","addFilter","clone","extend"]),nt.forProperties(et,"deprecated",["emitErrs","levelLength"])})(winston$1);const winston=getDefaultExportFromCjs$1(winston$1),objectToString$6=Object.prototype.toString;function isBuiltin(et,tt){return objectToString$6.call(et)===`[object ${tt}]`}function isPlainObject$5(et){return isBuiltin(et,"Object")}function isThenable$1(et){return!!(et&&et.then&&typeof et.then=="function")}const SDK_VERSION="8.33.0",GLOBAL_OBJ=globalThis;function getGlobalSingleton(et,tt,rt){const nt=GLOBAL_OBJ,lt=nt.__SENTRY__=nt.__SENTRY__||{},ut=lt[SDK_VERSION]=lt[SDK_VERSION]||{};return ut[et]||(ut[et]=tt())}const DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,PREFIX$1="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods$1={};function consoleSandbox(et){if(!("console"in GLOBAL_OBJ))return et();const tt=GLOBAL_OBJ.console,rt={},nt=Object.keys(originalConsoleMethods$1);nt.forEach(lt=>{const ut=originalConsoleMethods$1[lt];rt[lt]=tt[lt],tt[lt]=ut});try{return et()}finally{nt.forEach(lt=>{tt[lt]=rt[lt]})}}function makeLogger(){let et=!1;const tt={enable:()=>{et=!0},disable:()=>{et=!1},isEnabled:()=>et};return DEBUG_BUILD?CONSOLE_LEVELS.forEach(rt=>{tt[rt]=(...nt)=>{et&&consoleSandbox(()=>{GLOBAL_OBJ.console[rt](`${PREFIX$1}[${rt}]:`,...nt)})}}):CONSOLE_LEVELS.forEach(rt=>{tt[rt]=()=>{}}),tt}const logger$S=getGlobalSingleton("logger",makeLogger);function addNonEnumerableProperty(et,tt,rt){try{Object.defineProperty(et,tt,{value:rt,writable:!0,configurable:!0})}catch{DEBUG_BUILD&&logger$S.log(`Failed to add non-enumerable property "${tt}" to object`,et)}}const ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){const{performance:et}=GLOBAL_OBJ;if(!et||!et.now)return dateTimestampInSeconds;const tt=Date.now()-et.now(),rt=et.timeOrigin==null?tt:et.timeOrigin;return()=>(rt+et.now())/ONE_SECOND_IN_MS}const timestampInSeconds=createUnixTimestampInSecondsFunc();(()=>{const{performance:et}=GLOBAL_OBJ;if(!et||!et.now)return;const tt=3600*1e3,rt=et.now(),nt=Date.now(),lt=et.timeOrigin?Math.abs(et.timeOrigin+rt-nt):tt,ut=lt<tt,dt=et.timing&&et.timing.navigationStart,ht=typeof dt=="number"?Math.abs(dt+rt-nt):tt,mt=ht<tt;return ut||mt?lt<=ht?et.timeOrigin:dt:nt})();function uuid4(){const et=GLOBAL_OBJ,tt=et.crypto||et.msCrypto;let rt=()=>Math.random()*16;try{if(tt&&tt.randomUUID)return tt.randomUUID().replace(/-/g,"");tt&&tt.getRandomValues&&(rt=()=>{const nt=new Uint8Array(1);return tt.getRandomValues(nt),nt[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,nt=>(nt^(rt()&15)>>nt/4).toString(16))}function generatePropagationContext(){return{traceId:uuid4(),spanId:uuid4().substring(16)}}function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(et){const tt=et.__SENTRY__=et.__SENTRY__||{};return tt.version=tt.version||SDK_VERSION,tt[SDK_VERSION]=tt[SDK_VERSION]||{}}function updateSession(et,tt={}){if(tt.user&&(!et.ipAddress&&tt.user.ip_address&&(et.ipAddress=tt.user.ip_address),!et.did&&!tt.did&&(et.did=tt.user.id||tt.user.email||tt.user.username)),et.timestamp=tt.timestamp||timestampInSeconds(),tt.abnormal_mechanism&&(et.abnormal_mechanism=tt.abnormal_mechanism),tt.ignoreDuration&&(et.ignoreDuration=tt.ignoreDuration),tt.sid&&(et.sid=tt.sid.length===32?tt.sid:uuid4()),tt.init!==void 0&&(et.init=tt.init),!et.did&&tt.did&&(et.did=`${tt.did}`),typeof tt.started=="number"&&(et.started=tt.started),et.ignoreDuration)et.duration=void 0;else if(typeof tt.duration=="number")et.duration=tt.duration;else{const rt=et.timestamp-et.started;et.duration=rt>=0?rt:0}tt.release&&(et.release=tt.release),tt.environment&&(et.environment=tt.environment),!et.ipAddress&&tt.ipAddress&&(et.ipAddress=tt.ipAddress),!et.userAgent&&tt.userAgent&&(et.userAgent=tt.userAgent),typeof tt.errors=="number"&&(et.errors=tt.errors),tt.status&&(et.status=tt.status)}const SCOPE_SPAN_FIELD="_sentrySpan";function _setSpanForScope(et,tt){tt?addNonEnumerableProperty(et,SCOPE_SPAN_FIELD,tt):delete et[SCOPE_SPAN_FIELD]}function _getSpanForScope(et){return et[SCOPE_SPAN_FIELD]}const DEFAULT_MAX_BREADCRUMBS=100;class ScopeClass{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=generatePropagationContext()}clone(){const tt=new ScopeClass;return tt._breadcrumbs=[...this._breadcrumbs],tt._tags={...this._tags},tt._extra={...this._extra},tt._contexts={...this._contexts},tt._user=this._user,tt._level=this._level,tt._session=this._session,tt._transactionName=this._transactionName,tt._fingerprint=this._fingerprint,tt._eventProcessors=[...this._eventProcessors],tt._requestSession=this._requestSession,tt._attachments=[...this._attachments],tt._sdkProcessingMetadata={...this._sdkProcessingMetadata},tt._propagationContext={...this._propagationContext},tt._client=this._client,tt._lastEventId=this._lastEventId,_setSpanForScope(tt,_getSpanForScope(this)),tt}setClient(tt){this._client=tt}setLastEventId(tt){this._lastEventId=tt}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(tt){this._scopeListeners.push(tt)}addEventProcessor(tt){return this._eventProcessors.push(tt),this}setUser(tt){return this._user=tt||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user:tt}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(tt){return this._requestSession=tt,this}setTags(tt){return this._tags={...this._tags,...tt},this._notifyScopeListeners(),this}setTag(tt,rt){return this._tags={...this._tags,[tt]:rt},this._notifyScopeListeners(),this}setExtras(tt){return this._extra={...this._extra,...tt},this._notifyScopeListeners(),this}setExtra(tt,rt){return this._extra={...this._extra,[tt]:rt},this._notifyScopeListeners(),this}setFingerprint(tt){return this._fingerprint=tt,this._notifyScopeListeners(),this}setLevel(tt){return this._level=tt,this._notifyScopeListeners(),this}setTransactionName(tt){return this._transactionName=tt,this._notifyScopeListeners(),this}setContext(tt,rt){return rt===null?delete this._contexts[tt]:this._contexts[tt]=rt,this._notifyScopeListeners(),this}setSession(tt){return tt?this._session=tt:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(tt){if(!tt)return this;const rt=typeof tt=="function"?tt(this):tt,[nt,lt]=rt instanceof Scope?[rt.getScopeData(),rt.getRequestSession()]:isPlainObject$5(rt)?[tt,tt.requestSession]:[],{tags:ut,extra:dt,user:pt,contexts:ht,level:mt,fingerprint:xt=[],propagationContext:Mt}=nt||{};return this._tags={...this._tags,...ut},this._extra={...this._extra,...dt},this._contexts={...this._contexts,...ht},pt&&Object.keys(pt).length&&(this._user=pt),mt&&(this._level=mt),xt.length&&(this._fingerprint=xt),Mt&&(this._propagationContext=Mt),lt&&(this._requestSession=lt),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,_setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(tt,rt){const nt=typeof rt=="number"?rt:DEFAULT_MAX_BREADCRUMBS;if(nt<=0)return this;const lt={timestamp:dateTimestampInSeconds(),...tt},ut=this._breadcrumbs;return ut.push(lt),this._breadcrumbs=ut.length>nt?ut.slice(-nt):ut,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(tt){return this._attachments.push(tt),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this)}}setSDKProcessingMetadata(tt){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...tt},this}setPropagationContext(tt){return this._propagationContext=tt,this}getPropagationContext(){return this._propagationContext}captureException(tt,rt){const nt=rt&&rt.event_id?rt.event_id:uuid4();if(!this._client)return logger$S.warn("No client configured on scope - will not capture exception!"),nt;const lt=new Error("Sentry syntheticException");return this._client.captureException(tt,{originalException:tt,syntheticException:lt,...rt,event_id:nt},this),nt}captureMessage(tt,rt,nt){const lt=nt&&nt.event_id?nt.event_id:uuid4();if(!this._client)return logger$S.warn("No client configured on scope - will not capture message!"),lt;const ut=new Error(tt);return this._client.captureMessage(tt,rt,{originalException:tt,syntheticException:ut,...nt,event_id:lt},this),lt}captureEvent(tt,rt){const nt=rt&&rt.event_id?rt.event_id:uuid4();return this._client?(this._client.captureEvent(tt,{...rt,event_id:nt},this),nt):(logger$S.warn("No client configured on scope - will not capture event!"),nt)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(tt=>{tt(this)}),this._notifyingListeners=!1)}}const Scope=ScopeClass;function getDefaultCurrentScope(){return getGlobalSingleton("defaultCurrentScope",()=>new Scope)}function getDefaultIsolationScope(){return getGlobalSingleton("defaultIsolationScope",()=>new Scope)}class AsyncContextStack{constructor(tt,rt){let nt;tt?nt=tt:nt=new Scope;let lt;rt?lt=rt:lt=new Scope,this._stack=[{scope:nt}],this._isolationScope=lt}withScope(tt){const rt=this._pushScope();let nt;try{nt=tt(rt)}catch(lt){throw this._popScope(),lt}return isThenable$1(nt)?nt.then(lt=>(this._popScope(),lt),lt=>{throw this._popScope(),lt}):(this._popScope(),nt)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const tt=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:tt}),tt}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function getAsyncContextStack(){const et=getMainCarrier(),tt=getSentryCarrier(et);return tt.stack=tt.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope(et){return getAsyncContextStack().withScope(et)}function withSetScope(et,tt){const rt=getAsyncContextStack();return rt.withScope(()=>(rt.getStackTop().scope=et,tt(et)))}function withIsolationScope(et){return getAsyncContextStack().withScope(()=>et(getAsyncContextStack().getIsolationScope()))}function getStackAsyncContextStrategy(){return{withIsolationScope,withScope,withSetScope,withSetIsolationScope:(et,tt)=>withIsolationScope(tt),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}function getAsyncContextStrategy(et){const tt=getSentryCarrier(et);return tt.acs?tt.acs:getStackAsyncContextStrategy()}function getCurrentScope(){const et=getMainCarrier();return getAsyncContextStrategy(et).getCurrentScope()}function captureEvent(et,tt){return getCurrentScope().captureEvent(et,tt)}const LOGGING_ENABLED=Object.create(globalThis.import_meta_env||null).REACT_APP_LOGGING_ENABLED==="Y";class Logger{constructor(tt){Nr(this,"className");Nr(this,"logger");Nr(this,"error",(tt,...rt)=>{this.log("error",tt,...rt),this.sentry(tt,...rt)});Nr(this,"debug",(tt,...rt)=>{this.log("debug",tt,...rt)});Nr(this,"info",(tt,...rt)=>{this.log("info",tt,...rt)});Nr(this,"sentry",(tt,...rt)=>{captureEvent({level:"error",message:`${this.className}::${tt}`,extra:{Extra:rt}})});Nr(this,"log",(tt,rt,...nt)=>{if(LOGGING_ENABLED){const lt=new Date().toLocaleTimeString();nt.length>0?this.logger.log(tt,`${lt}::${this.className}::${rt}::${nt}`):this.logger.log(tt,`${lt}::${this.className}::${rt}`)}});this.className=tt,this.logger=winston.createLogger({levels:{error:0,debug:1,info:2},format:winston.format.simple(),transports:new winston.transports.Console({level:"info",stderrLevels:["error"]})})}}const SegmentedInputBoolean=[{id:"1",name:"Yes"},{id:"2",name:"No"}],SegementedInputYesNoUnsure=[{id:"YES",name:"Yes"},{id:"NO",name:"No"},{id:"UNSURE",name:"Unsure"}],SegementedInputGender=[{id:"FEMALE",name:"Female"},{id:"MALE",name:"Male"},{id:"NOT STATED",name:"Not stated"}];var __spreadArray$1=function(et,tt,rt){if(rt||arguments.length===2)for(var nt=0,lt=tt.length,ut;nt<lt;nt++)(ut||!(nt in tt))&&(ut||(ut=Array.prototype.slice.call(tt,0,nt)),ut[nt]=tt[nt]);return et.concat(ut||Array.prototype.slice.call(tt))},BrowserInfo=function(){function et(tt,rt,nt){this.name=tt,this.version=rt,this.os=nt,this.type="browser"}return et}(),NodeInfo=function(){function et(tt){this.version=tt,this.type="node",this.name="node",this.os=process$1$1.platform}return et}(),SearchBotDeviceInfo=function(){function et(tt,rt,nt,lt){this.name=tt,this.version=rt,this.os=nt,this.bot=lt,this.type="bot-device"}return et}(),BotInfo=function(){function et(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return et}(),ReactNativeInfo=function(){function et(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return et}(),SEARCHBOX_UA_REGEX=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,SEARCHBOT_OS_REGEX=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,REQUIRED_VERSION_PARTS=3,userAgentRules=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",SEARCHBOX_UA_REGEX]],operatingSystemRules=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function detect(et){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new ReactNativeInfo:typeof navigator<"u"?parseUserAgent(navigator.userAgent):getNodeVersion()}function matchUserAgent(et){return et!==""&&userAgentRules.reduce(function(tt,rt){var nt=rt[0],lt=rt[1];if(tt)return tt;var ut=lt.exec(et);return!!ut&&[nt,ut]},!1)}function parseUserAgent(et){var tt=matchUserAgent(et);if(!tt)return null;var rt=tt[0],nt=tt[1];if(rt==="searchbot")return new BotInfo;var lt=nt[1]&&nt[1].split(".").join("_").split("_").slice(0,3);lt?lt.length<REQUIRED_VERSION_PARTS&&(lt=__spreadArray$1(__spreadArray$1([],lt,!0),createVersionParts(REQUIRED_VERSION_PARTS-lt.length),!0)):lt=[];var ut=lt.join("."),dt=detectOS(et),pt=SEARCHBOT_OS_REGEX.exec(et);return pt&&pt[1]?new SearchBotDeviceInfo(rt,ut,dt,pt[1]):new BrowserInfo(rt,ut,dt)}function detectOS(et){for(var tt=0,rt=operatingSystemRules.length;tt<rt;tt++){var nt=operatingSystemRules[tt],lt=nt[0],ut=nt[1],dt=ut.exec(et);if(dt)return lt}return null}function getNodeVersion(){var et=typeof process$1$1<"u"&&process$1$1.version;return et?new NodeInfo(process$1$1.version.slice(1)):null}function createVersionParts(et){for(var tt=[],rt=0;rt<et;rt++)tt.push("0");return tt}const navigateToExternalURL=et=>{const tt=detect();tt&&tt.name==="edge"&&parseInt(tt.version)<=18&&(window.location=encodeURI(et)),window.location.href=encodeURI(et)},logPage=(et,tt,rt,nt=!0)=>{const ut=(new Date().getTime()-et)/1e3;let dt={...tt};nt&&(dt={...dt,timeOnPage:ut}),rt({variables:{data:JSON.stringify(dt)}})};var ELASTIC_SEARCH_EVENTS=(et=>(et.DUPLICATE_TRIGGERED="create_patient_duplicate_triggered",et.DUPLICATE_IGNORED="create_patient_duplicate_ignored",et.DUPLICATE_SEARCH_TIME="create_patient_duplicate_search_time",et.SUBMIT="create_patient_submit",et.START="create_patient_start",et))(ELASTIC_SEARCH_EVENTS||{}),PRACTITIONER_LOG_EVENTS=(et=>(et.PRACTITIONER_EXACT_MATCH="practitioner_exact_match",et.PRACTITIONER_SELECTED="practitioner_selected",et.PRACTITIONER_NOT_FOUND="practitioner_not_found",et.PRACTITIONER_OVERRIDE_ENTRY="practitioner_override_entry",et.PRACTITIONER_SEARCHED="practitioner_searched",et.PRACTITIONER_RESULTS="practitioner_results",et))(PRACTITIONER_LOG_EVENTS||{}),POPOVER_LOG_EVENTS=(et=>(et.DISPLAYED="popover_displayed",et.NEXT_STEP="popover_next_step",et.COMPLETE="popover_complete",et.EXIT="popover_exit",et))(POPOVER_LOG_EVENTS||{});let DeviceUtilities$1=class{static isMobileDevice(){return window.innerWidth<768}static isTabletDevice(){return window.innerWidth>=768&&window.innerWidth<993}static isDesktopDevice(){return window.innerWidth>=993}static isAppleDevice(){const tt=window.navigator.userAgent.match(/iPad/i),rt=window.navigator.userAgent.match(/iPhone/i);return!!(tt||rt)}};class DictionaryUtilities{static isEmpty(tt){for(const rt in tt)if(tt.hasOwnProperty(rt))return!1;return!0}}var dist$4={exports:{}};(function(et){var tt=Object.create,rt=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,lt=Object.getOwnPropertyNames,ut=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty,pt=(qt,Nt)=>{for(var Yt in Nt)rt(qt,Yt,{get:Nt[Yt],enumerable:!0})},ht=(qt,Nt,Yt,Kt)=>{if(Nt&&typeof Nt=="object"||typeof Nt=="function")for(let Jt of lt(Nt))!dt.call(qt,Jt)&&Jt!==Yt&&rt(qt,Jt,{get:()=>Nt[Jt],enumerable:!(Kt=nt(Nt,Jt))||Kt.enumerable});return qt},mt=(qt,Nt,Yt)=>(Yt=qt!=null?tt(ut(qt)):{},ht(!qt||!qt.__esModule?rt(Yt,"default",{value:qt,enumerable:!0}):Yt,qt)),xt=qt=>ht(rt({},"__esModule",{value:!0}),qt),Mt={};pt(Mt,{default:()=>kt}),et.exports=xt(Mt);var vt=reactExports,Ot=mt(propTypesExports),At=16,Rt=[],zt=(qt,{fillColor:Nt,text:Yt,textColor:Kt,canvasSize:Jt})=>{const Qt=Jt/5;qt.font=`bold ${Jt-Qt*2}px arial`;const Bt=Math.min(qt.measureText(Yt).width,Jt-Qt)+Qt,Ft=Jt-Bt,$t=Jt/2-Qt,jt=Qt+Jt/2,Wt=Math.min(Bt/2,jt/2);qt.beginPath(),qt.moveTo(Ft+Wt,$t),qt.arcTo(Ft+Bt,$t,Ft+Bt,$t+jt,Wt),qt.arcTo(Ft+Bt,$t+jt,Ft,$t+jt,Wt),qt.arcTo(Ft,$t+jt,Ft,$t,Wt),qt.arcTo(Ft,$t,Ft+Bt,$t,Wt),qt.closePath(),qt.fillStyle=Nt,qt.fill(),qt.fillStyle=Kt,qt.textBaseline="bottom",qt.textAlign="right",qt.fillText(Yt,Jt-Qt/2,Jt,Jt-Qt)},Tt=({alertCount:qt,alertFillColor:Nt,alertTextColor:Yt,callback:Kt,renderOverlay:Jt,url:Qt,canvasSize:Bt})=>{const Ft=document.createElement("img");Ft.crossOrigin="Anonymous",Ft.onload=function(){const $t=document.createElement("canvas");$t.width=Bt,$t.height=Bt;const jt=$t.getContext("2d");jt.clearRect(0,0,Ft.width,Ft.height),jt.drawImage(Ft,0,0,$t.width,$t.height),qt&&zt(jt,{fillColor:Nt,textColor:Yt,text:qt,canvasSize:Bt}),Jt&&Jt($t,jt),Kt(jt.canvas.toDataURL())},Ft.src=Qt},Ct=qt=>{if(!(typeof document>"u")&&Rt.length===0){var Nt=document.getElementsByTagName("head")[0];const Jt=document.createElement("link");Jt.type="image/x-icon",Jt.rel="icon";const Qt=document.createElement("link");Qt.rel="apple-touch-icon",Rt.push(Jt,Qt);for(var Yt=Nt.getElementsByTagName("link"),Kt=Yt.length;--Kt>=0;)/\bicon\b/i.test(Yt[Kt].getAttribute("rel"))&&!qt(Yt[Kt])&&Nt.removeChild(Yt[Kt]);Rt.forEach(Bt=>Nt.appendChild(Bt))}},It=()=>!1,Dt=({iconSize:qt=At,alertCount:Nt=null,alertFillColor:Yt="red",alertTextColor:Kt="white",animated:Jt=!0,animationDelay:Qt=500,keepIconLink:Bt=It,renderOverlay:Ft=null,url:$t=null})=>{const jt=(0,vt.useRef)(0),Wt=(0,vt.useRef)(null),[,Ut]=(0,vt.useState)(),Vt=(0,vt.useCallback)(()=>Ut({}),[]),Ht=(0,vt.useCallback)(()=>{Ct(Bt),jt.current=(jt.current+1)%$t.length,Vt()},[Vt,Bt,$t]);(0,vt.useEffect)(()=>{Ht()},[Ht]);const Gt=$t instanceof Array&&Jt;(0,vt.useEffect)(()=>{if(Gt){if(!Wt.current){const Xt=setInterval(Ht,Qt);Wt.current=Xt}}else Wt.current&&(clearInterval(Wt.current),Wt.current=null,Ct(Bt))},[Qt,Gt,Bt,Ht,$t]);const Zt=Gt?$t[jt.current]:$t instanceof Array?$t[0]:$t;return Nt||Ft?Tt({alertCount:Nt,alertFillColor:Yt,alertTextColor:Kt,callback:Xt=>{Rt.forEach(er=>er.href=Xt)},renderOverlay:Ft,url:Zt,canvasSize:qt}):Rt.forEach(Xt=>Xt.href=Zt),null};Dt.propTypes={iconSize:Ot.default.number,alertCount:Ot.default.oneOfType([Ot.default.number,Ot.default.string]),alertFillColor:Ot.default.string,alertTextColor:Ot.default.string,animated:Ot.default.bool,animationDelay:Ot.default.number,keepIconLink:Ot.default.func,renderOverlay:Ot.default.func,url:Ot.default.oneOfType([Ot.default.arrayOf(Ot.default.string),Ot.default.string]).isRequired};var kt=Dt;et.exports=et.exports.default})(dist$4);var distExports$1=dist$4.exports;const Favicon=getDefaultExportFromCjs$1(distExports$1);function Query(et){var tt=et.children,rt=et.query,nt=__rest(et,["children","query"]),lt=useQuery(rt,nt);return lt?tt(lt):null}Query.propTypes={client:propTypesExports.object,children:propTypesExports.func.isRequired,fetchPolicy:propTypesExports.string,notifyOnNetworkStatusChange:propTypesExports.bool,onCompleted:propTypesExports.func,onError:propTypesExports.func,pollInterval:propTypesExports.number,query:propTypesExports.object.isRequired,variables:propTypesExports.object,ssr:propTypesExports.bool,partialRefetch:propTypesExports.bool,returnPartialData:propTypesExports.bool};function Mutation(et){var tt=useMutation(et.mutation,et),rt=tt[0],nt=tt[1];return et.children?et.children(rt,nt):null}Mutation.propTypes={mutation:propTypesExports.object.isRequired,variables:propTypesExports.object,optimisticResponse:propTypesExports.oneOfType([propTypesExports.object,propTypesExports.func]),refetchQueries:propTypesExports.oneOfType([propTypesExports.arrayOf(propTypesExports.oneOfType([propTypesExports.string,propTypesExports.object])),propTypesExports.func]),awaitRefetchQueries:propTypesExports.bool,update:propTypesExports.func,children:propTypesExports.func.isRequired,onCompleted:propTypesExports.func,onError:propTypesExports.func,fetchPolicy:propTypesExports.string};function getDisplayName$2(et){return et.displayName||et.name||"Component"}function withApollo(et,tt){tt===void 0&&(tt={});var rt="withApollo(".concat(getDisplayName$2(et),")"),nt=function(lt){__extends(ut,lt);function ut(dt){var pt=lt.call(this,dt)||this;return pt.setWrappedInstance=pt.setWrappedInstance.bind(pt),pt}return ut.prototype.getWrappedInstance=function(){return invariant$5(tt.withRef,49),this.wrappedInstance},ut.prototype.setWrappedInstance=function(dt){this.wrappedInstance=dt},ut.prototype.render=function(){var dt=this;return rehacktExports.createElement(ApolloConsumer,null,function(pt){var ht=Object.assign({},dt.props,{client:pt,ref:tt.withRef?dt.setWrappedInstance:void 0});return rehacktExports.createElement(et,__assign({},ht))})},ut.displayName=rt,ut.WrappedComponent=et,ut}(rehacktExports.Component);return hoistStatics(nt,et,{})}const ARCHIVE={CONFIRMATION:{NO_NAME:"You are about to delete this patient. This action cannot be undone. Are you sure you want to proceed?",NAME_PRE:"You are about to delete the patient, ",NAME_POST:". This action cannot be undone. Are you sure you want to proceed?"},MODAL:{HEADER:"Really delete patient?"}};var Et=Object.create,Ye=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,gt=Object.getOwnPropertyNames,yt=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Lt=(et,tt)=>()=>(tt||et((tt={exports:{}}).exports,tt),tt.exports),Pt=(et,tt,rt,nt)=>{if(tt&&typeof tt=="object"||typeof tt=="function")for(let lt of gt(tt))!wt.call(et,lt)&&lt!==rt&&Ye(et,lt,{get:()=>tt[lt],enumerable:!(nt=bt(tt,lt))||nt.enumerable});return et},St=(et,tt,rt)=>(rt=et!=null?Et(yt(et)):{},Pt(!et||!et.__esModule?Ye(rt,"default",{value:et,enumerable:!0}):rt,et)),je$1=Lt((et,tt)=>{(function(rt,nt){typeof et=="object"&&typeof tt<"u"?nt(et):typeof define=="function"&&define.amd?define(["exports"],nt):(rt=typeof globalThis<"u"?globalThis:rt||self,nt(rt.fastUniqueNumbers={}))})(et,function(rt){var nt=function(Ot){return function(At){var Rt=Ot(At);return At.add(Rt),Rt}},lt=function(Ot){return function(At,Rt){return Ot.set(At,Rt),Rt}},ut=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,dt=536870912,pt=dt*2,ht=function(Ot,At){return function(Rt){var zt=At.get(Rt),Tt=zt===void 0?Rt.size:zt<pt?zt+1:0;if(!Rt.has(Tt))return Ot(Rt,Tt);if(Rt.size<dt){for(;Rt.has(Tt);)Tt=Math.floor(Math.random()*pt);return Ot(Rt,Tt)}if(Rt.size>ut)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;Rt.has(Tt);)Tt=Math.floor(Math.random()*ut);return Ot(Rt,Tt)}},mt=new WeakMap,xt=lt(mt),Mt=ht(xt,mt),vt=nt(Mt);rt.addUniqueNumber=vt,rt.generateUniqueNumber=Mt})});St(je$1());var M$2=(typeof window>"u"?"undefined":typeof window)=="object",I$3={setTimeout:M$2?setTimeout.bind(window):setTimeout,clearTimeout:M$2?clearTimeout.bind(window):clearTimeout,setInterval:M$2?setInterval.bind(window):setInterval,clearInterval:M$2?clearInterval.bind(window):clearInterval};function it(et){I$3.setTimeout=et.setTimeout,I$3.clearTimeout=et.clearTimeout,I$3.setInterval=et.setInterval,I$3.clearInterval=et.clearInterval}var Q$2={},Ae$1=class{constructor(tt){Nr(this,"name");Nr(this,"closed",!1);Nr(this,"mc",new MessageChannel);this.name=tt,Q$2[tt]=Q$2[tt]||[],Q$2[tt].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(tt){if(tt.storageArea!==window.localStorage||tt.key.substring(0,this.name.length)!==this.name||tt.newValue===null)return;let rt=JSON.parse(tt.newValue);this.mc.port2.postMessage(rt)}postMessage(tt){if(this.closed)throw new Error("InvalidStateError");let rt=JSON.stringify(tt),nt=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(nt,rt),I$3.setTimeout(()=>{window.localStorage.removeItem(nt)},500),Q$2[this.name].forEach(lt=>{lt!==this&&lt.mc.port2.postMessage(JSON.parse(rt))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let tt=Q$2[this.name].indexOf(this);Q$2[this.name].splice(tt,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(tt){this.mc.port1.onmessage=tt}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(tt){this.mc.port1.onmessageerror=tt}addEventListener(tt,rt){return this.mc.port1.addEventListener(tt,rt)}removeEventListener(tt,rt){return this.mc.port1.removeEventListener(tt,rt)}dispatchEvent(tt){return this.mc.port1.dispatchEvent(tt)}},st=typeof window>"u"?void 0:typeof window.BroadcastChannel=="function"?window.BroadcastChannel:Ae$1;function ot(et=0){return new Promise(tt=>I$3.setTimeout(tt,et))}function Te$1(){return Math.random().toString(36).substring(2)}var Ie$1=class{constructor(tt,rt){Nr(this,"options");Nr(this,"channel");Nr(this,"token",Te$1());Nr(this,"isLeader",!1);Nr(this,"isDead",!1);Nr(this,"isApplying",!1);Nr(this,"reApply",!1);Nr(this,"intervals",[]);Nr(this,"listeners",[]);Nr(this,"deferred");this.channel=tt,this.options=rt,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let tt=!1,rt=nt=>{let{token:lt,action:ut}=nt.data;lt!==this.token&&(ut===0&&lt>this.token&&(tt=!0),ut===1&&(tt=!0))};this.channel.addEventListener("message",rt);try{return this.sendAction(0),await ot(this.options.responseTime),this.channel.removeEventListener("message",rt),this.isApplying=!1,tt?this.reApply?this.apply():!1:(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let tt=!1,rt=null;return new Promise(nt=>{let lt=()=>{if(tt)return;tt=!0;try{I$3.clearInterval(rt)}catch{}let dt=this.intervals.indexOf(rt);dt>=0&&this.intervals.splice(dt,1),this.channel.removeEventListener("message",ut),nt()};rt=I$3.setInterval(()=>{this.apply().then(()=>{this.isLeader&&lt()})},this.options.fallbackInterval),this.intervals.push(rt);let ut=dt=>{let{action:pt}=dt.data;pt===2&&this.apply().then(()=>{this.isLeader&&lt()})};this.channel.addEventListener("message",ut)})}sendAction(tt){this.channel.postMessage({action:tt,token:this.token})}assumeLead(){this.isLeader=!0;let tt=rt=>{let{action:nt}=rt.data;nt===0&&this.sendAction(1)};return this.channel.addEventListener("message",tt),this.listeners.push(tt),this.sendAction(1)}waitForLeadership(){return this.deferred?this.deferred:(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(tt=>this.channel.removeEventListener("message",tt)),this.intervals.forEach(tt=>I$3.clearInterval(tt))}catch{}}}},Ee$1=class{constructor(tt){Nr(this,"channel");Nr(this,"options");Nr(this,"elector");Nr(this,"token",Te$1());Nr(this,"registry",new Map);Nr(this,"allIdle",!1);Nr(this,"isLastActive",!1);let{channelName:rt}=tt;if(this.options=tt,this.channel=new st(rt),this.registry.set(this.token,1),tt.leaderElection){let nt={fallbackInterval:2e3,responseTime:100};this.elector=new Ie$1(this.channel,nt),this.elector.waitForLeadership()}this.channel.addEventListener("message",nt=>{let{action:lt,token:ut,data:dt}=nt.data;switch(lt){case 3:this.registry.set(ut,2);break;case 4:this.registry.delete(ut);break;case 5:this.idle(ut);break;case 6:this.active(ut);break;case 7:this.prompt(ut);break;case 8:this.start(ut);break;case 9:this.reset(ut);break;case 10:this.activate(ut);break;case 11:this.pause(ut);break;case 12:this.resume(ut);break;case 13:this.options.onMessage(dt);break}}),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(tt=this.token){this.registry.set(tt,0);let rt=[...this.registry.values()].every(nt=>nt===0);tt===this.token&&this.send(7),rt&&this.options.onPrompt()}idle(tt=this.token){this.registry.set(tt,2);let rt=[...this.registry.values()].every(nt=>nt===2);tt===this.token&&this.send(5),!this.allIdle&&rt&&(this.allIdle=!0,this.options.onIdle())}active(tt=this.token){this.allIdle=!1,this.registry.set(tt,1);let rt=[...this.registry.values()].some(nt=>nt===1);tt===this.token&&this.send(6),rt&&this.options.onActive(),this.isLastActive=tt===this.token}start(tt=this.token){this.allIdle=!1,this.registry.set(tt,1),tt===this.token?this.send(8):this.options.start(!0),this.isLastActive=tt===this.token}reset(tt=this.token){this.allIdle=!1,this.registry.set(tt,1),tt===this.token?this.send(9):this.options.reset(!0),this.isLastActive=tt===this.token}activate(tt=this.token){this.allIdle=!1,this.registry.set(tt,1),tt===this.token?this.send(10):this.options.activate(!0),this.isLastActive=tt===this.token}pause(tt=this.token){tt===this.token?this.send(11):this.options.pause(!0)}resume(tt=this.token){tt===this.token?this.send(12):this.options.resume(!0)}message(tt){try{this.channel.postMessage({action:13,token:this.token,data:tt})}catch{}}send(tt){try{this.channel.postMessage({action:tt,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},at=M$2?document:null,xe$1=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function ct(et,tt){let rt;function nt(...lt){rt&&clearTimeout(rt),rt=setTimeout(()=>{et(...lt),rt=null},tt)}return nt.cancel=function(){clearTimeout(rt)},nt}function be$1(et,tt){let rt=0;return function(...nt){let lt=new Date().getTime();if(!(lt-rt<tt))return rt=lt,et(...nt)}}var v$5=()=>Date.now(),Z$1=2147483647;function se$1({timeout:et=1e3*60*20,promptTimeout:tt=0,promptBeforeIdle:rt=0,element:nt=at,events:lt=xe$1,timers:ut=void 0,immediateEvents:dt=[],onPresenceChange:pt=()=>{},onPrompt:ht=()=>{},onIdle:mt=()=>{},onActive:xt=()=>{},onAction:Mt=()=>{},onMessage:vt=()=>{},debounce:Ot=0,throttle:At=0,eventsThrottle:Rt=200,startOnMount:zt=!0,startManually:Tt=!1,stopOnIdle:Ct=!1,crossTab:It=!1,name:Dt="idle-timer",syncTimers:kt=0,leaderElection:qt=!1,disabled:Nt=!1}={}){let Yt=reactExports.useRef(v$5()),Kt=reactExports.useRef(v$5()),Jt=reactExports.useRef(null),Qt=reactExports.useRef(null),Bt=reactExports.useRef(0),Ft=reactExports.useRef(0),$t=reactExports.useRef(0),jt=reactExports.useRef(0),Wt=reactExports.useRef(!1),Ut=reactExports.useRef(!1),Vt=reactExports.useRef(!1),Ht=reactExports.useRef(!0),Gt=reactExports.useRef(!1),Zt=reactExports.useRef(null),Xt=reactExports.useRef(null),er=reactExports.useRef(et),nr=reactExports.useRef(0);reactExports.useEffect(()=>{if(tt&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),rt&&tt)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(et>=Z$1)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${Z$1}.`);if(tt>=Z$1)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${Z$1}.`);if(rt>=Z$1)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${Z$1}.`);if(rt>=et)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${et}.`);if(rt?(er.current=et-rt,nr.current=rt):(er.current=et,nr.current=tt),!Ht.current){if(Tt||Nt)return;Wt.current&&(ur.current(null,Kr),Xt.current&&Xt.current.active()),Yr()}},[et,tt,rt,Tt,Nt]);let or=reactExports.useRef(Ct);reactExports.useEffect(()=>{or.current=Ct},[Ct]);let rr=reactExports.useRef(dt),cr=reactExports.useRef(nt),ir=reactExports.useRef([...new Set([...lt,...dt]).values()]),dr=reactExports.useRef(Nt);reactExports.useEffect(()=>{dr.current=Nt,!Ht.current&&(Nt?jr():Tt||Yr())},[Nt]);let gr=reactExports.useRef(pt);reactExports.useEffect(()=>{gr.current=pt},[pt]);let br=reactExports.useRef(ht);reactExports.useEffect(()=>{br.current=ht},[ht]);let ar=reactExports.useRef(mt);reactExports.useEffect(()=>{ar.current=mt},[mt]);let ur=reactExports.useRef(xt);reactExports.useEffect(()=>{ur.current=xt},[xt]);let xr=reactExports.useRef(Mt);reactExports.useEffect(()=>{xr.current=Mt},[Mt]);let Mr=reactExports.useRef(vt);reactExports.useEffect(()=>{Mr.current=vt},[vt]);let Ar=reactExports.useMemo(()=>{let Tr=(Pr,an)=>xr.current(Pr,an);return Ot>0?ct(Tr,Ot):At>0?be$1(Tr,At):Tr},[At,Ot]),Ir=reactExports.useRef();reactExports.useEffect(()=>{It&&kt&&(Ir.current=be$1(()=>{Xt.current.active()},kt))},[It,kt]);let Rr=()=>{Zt.current!==null&&(I$3.clearTimeout(Zt.current),Zt.current=null)},wr=(Tr,Pr=!0)=>{Rr(),Zt.current=I$3.setTimeout($r,Tr||er.current),Pr&&(Qt.current=v$5())},qr=Tr=>{!Ut.current&&!Wt.current&&(br.current(Tr,Kr),gr.current({type:"active",prompted:!0},Kr)),jt.current=0,$t.current=v$5(),Ut.current=!0,wr(nr.current,!1)},Hr=()=>{Rr(),Wt.current||(ar.current(null,Kr),gr.current({type:"idle"},Kr)),Wt.current=!0,Jt.current=v$5(),or.current?Fr():Ut.current&&($t.current=0,Ut.current=!1)},kr=Tr=>{Rr(),(Wt.current||Ut.current)&&(ur.current(Tr,Kr),gr.current({type:"active",prompted:!1},Kr)),Ut.current=!1,$t.current=0,Wt.current=!1,Bt.current+=v$5()-Jt.current,Ft.current+=v$5()-Jt.current,Dr(),wr()},$r=Tr=>{if(!Wt.current){Ar.cancel&&Ar.cancel();let Pr=v$5()-Qt.current;if(!(er.current+nr.current<Pr)&&nr.current>0&&!Ut.current){Xt.current?Xt.current.prompt():qr(Tr);return}Xt.current?Xt.current.idle():Hr();return}Xt.current?Xt.current.active():kr(Tr)},yr=Tr=>{if(!zt&&!Qt.current&&(Qt.current=v$5(),ur.current(null,Kr)),Ar(Tr,Kr),Ut.current)return;if(Rr(),!Wt.current&&rr.current.includes(Tr.type)){$r(Tr);return}let Pr=v$5()-Qt.current;if(Wt.current&&!Ct||!Wt.current&&Pr>=er.current){$r(Tr);return}Vt.current=!1,jt.current=0,$t.current=0,wr(),It&&kt&&Ir.current()},Or=reactExports.useRef(yr);reactExports.useEffect(()=>{let Tr=Gt.current;Tr&&Fr(),Rt>0?Or.current=be$1(yr,Rt):Or.current=yr,Tr&&Dr()},[Rt,At,Ot,xr,It,kt]);let Dr=()=>{M$2&&cr.current&&(Gt.current||(ir.current.forEach(Tr=>{cr.current.addEventListener(Tr,Or.current,{capture:!0,passive:!0})}),Gt.current=!0))},Fr=(Tr=!1)=>{M$2&&cr.current&&(Gt.current||Tr)&&(ir.current.forEach(Pr=>{cr.current.removeEventListener(Pr,Or.current,{capture:!0})}),Gt.current=!1)},Yr=reactExports.useCallback(Tr=>dr.current?!1:(Rr(),Dr(),Wt.current=!1,Ut.current=!1,Vt.current=!1,jt.current=0,$t.current=0,Xt.current&&!Tr&&Xt.current.start(),wr(),!0),[Zt,Wt,dr,er,Xt]),Gr=reactExports.useCallback(Tr=>dr.current?!1:(Rr(),Dr(),Kt.current=v$5(),Bt.current+=v$5()-Jt.current,Ft.current+=v$5()-Jt.current,Bt.current=0,Wt.current=!1,Ut.current=!1,Vt.current=!1,jt.current=0,$t.current=0,Xt.current&&!Tr&&Xt.current.reset(),Tt||wr(),!0),[Zt,Wt,er,Tt,dr,Xt]),Jr=reactExports.useCallback(Tr=>dr.current?!1:(Rr(),Dr(),(Wt.current||Ut.current)&&kr(),Wt.current=!1,Ut.current=!1,Vt.current=!1,jt.current=0,$t.current=0,Kt.current=v$5(),Xt.current&&!Tr&&Xt.current.activate(),wr(),!0),[Zt,Wt,Ut,dr,er,Xt]),jr=reactExports.useCallback((Tr=!1)=>dr.current||Vt.current?!1:(jt.current=vn(),Vt.current=!0,Fr(),Rr(),Xt.current&&!Tr&&Xt.current.pause(),!0),[Zt,dr,Xt]),Zr=reactExports.useCallback((Tr=!1)=>dr.current||!Vt.current?!1:(Vt.current=!1,Ut.current||Dr(),Wt.current||wr(jt.current),$t.current&&($t.current=v$5()),Xt.current&&!Tr&&Xt.current.resume(),!0),[Zt,er,dr,jt,Xt]),Xr=reactExports.useCallback((Tr,Pr)=>(Xt.current?(Pr&&Mr.current(Tr,Kr),Xt.current.message(Tr)):Pr&&Mr.current(Tr,Kr),!0),[vt]),cn=reactExports.useCallback(()=>Wt.current,[Wt]),Qr=reactExports.useCallback(()=>Ut.current,[Ut]),rn=reactExports.useCallback(()=>Xt.current?Xt.current.isLeader:null,[Xt]),_r=reactExports.useCallback(()=>Xt.current?Xt.current.isLastActive:null,[Xt]),ln=reactExports.useCallback(()=>Xt.current?Xt.current.token:null,[Xt]),vn=reactExports.useCallback(()=>{if(Vt.current)return jt.current;let Tr=jt.current?jt.current:nr.current+er.current,Pr=Qt.current?v$5()-Qt.current:0,an=Math.floor(Tr-Pr);return an<0?0:Math.abs(an)},[er,nr,Ut,jt,Qt]),Cr=reactExports.useCallback(()=>Math.round(v$5()-Kt.current),[Kt]),gn=reactExports.useCallback(()=>Math.round(v$5()-Yt.current),[Yt]),xn=reactExports.useCallback(()=>Jt.current?new Date(Jt.current):null,[Jt]),Vr=reactExports.useCallback(()=>Qt.current?new Date(Qt.current):null,[Qt]),fn=reactExports.useCallback(()=>Wt.current?Math.round(v$5()-Jt.current+Bt.current):Math.round(Bt.current),[Jt,Bt]),pn=reactExports.useCallback(()=>Wt.current?Math.round(v$5()-Jt.current+Ft.current):Math.round(Ft.current),[Jt,Ft]),qn=reactExports.useCallback(()=>{let Tr=Math.round(Cr()-fn());return Tr>=0?Tr:0},[Jt,Bt]),Bn=reactExports.useCallback(()=>{let Tr=Math.round(gn()-pn());return Tr>=0?Tr:0},[Jt,Bt]);reactExports.useEffect(()=>{if(Ot>0&&At>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");ut&&it(ut);let Tr=()=>{Xt.current&&Xt.current.close(),Ar.cancel&&Ar.cancel(),Rr(),Fr(!0)};return M$2&&window.addEventListener("beforeunload",Tr),()=>{M$2&&window.removeEventListener("beforeunload",Tr),Xt.current&&Xt.current.close(),Ar.cancel&&Ar.cancel(),Rr(),Fr(!0)}},[]),reactExports.useEffect(()=>{Xt.current&&Xt.current.close(),It?Xt.current=new Ee$1({channelName:Dt,leaderElection:qt,onPrompt:()=>{qr()},onIdle:()=>{Hr()},onActive:()=>{kr()},onMessage:Tr=>{Mr.current(Tr,Kr)},start:Yr,reset:Gr,activate:Jr,pause:jr,resume:Zr}):Xt.current=null},[It,Dt,qt,br,ar,ur,Mr,Yr,Gr,jr,Zr]),reactExports.useEffect(()=>{Ht.current||(Rr(),Fr(!0)),!(Tt||Nt)&&(zt?Yr():Dr())},[Tt,zt,Nt,Ht]),reactExports.useEffect(()=>{if(!Ht.current){let Tr=[...new Set([...lt,...dt]).values()];if(Fr(),ir.current=Tr,cr.current=nt,rr.current=dt,Tt||Nt)return;zt?Yr():Dr()}},[nt,JSON.stringify(lt),JSON.stringify(dt),Ht,Nt,Tt,zt]),reactExports.useEffect(()=>{Ht.current&&(Ht.current=!1)},[Ht]);let Kr={message:Xr,start:Yr,reset:Gr,activate:Jr,pause:jr,resume:Zr,isIdle:cn,isPrompted:Qr,isLeader:rn,isLastActiveTab:_r,getTabId:ln,getRemainingTime:vn,getElapsedTime:Cr,getTotalElapsedTime:gn,getLastIdleTime:xn,getLastActiveTime:Vr,getIdleTime:fn,getTotalIdleTime:pn,getActiveTime:qn,getTotalActiveTime:Bn,setOnPresenceChange:Tr=>{pt=Tr,gr.current=Tr},setOnPrompt:Tr=>{ht=Tr,br.current=Tr},setOnIdle:Tr=>{mt=Tr,ar.current=Tr},setOnActive:Tr=>{xt=Tr,ur.current=Tr},setOnAction:Tr=>{Mt=Tr,xr.current=Tr},setOnMessage:Tr=>{vt=Tr,Mr.current=Tr}};return Kr}var ge$1=reactExports.createContext(null);ge$1.Consumer;gql`
  mutation Heartbeat {
    heartbeat {
      success
    }
  }
`;var classnames$1={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(et){(function(){var tt={}.hasOwnProperty;function rt(){for(var ut="",dt=0;dt<arguments.length;dt++){var pt=arguments[dt];pt&&(ut=lt(ut,nt(pt)))}return ut}function nt(ut){if(typeof ut=="string"||typeof ut=="number")return ut;if(typeof ut!="object")return"";if(Array.isArray(ut))return rt.apply(null,ut);if(ut.toString!==Object.prototype.toString&&!ut.toString.toString().includes("[native code]"))return ut.toString();var dt="";for(var pt in ut)tt.call(ut,pt)&&ut[pt]&&(dt=lt(dt,pt));return dt}function lt(ut,dt){return dt?ut?ut+" "+dt:ut+dt:ut}et.exports?(rt.default=rt,et.exports=rt):window.classNames=rt})()})(classnames$1);var classnamesExports=classnames$1.exports;const classNames$1=getDefaultExportFromCjs$1(classnamesExports);function r$4(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et)){var lt=et.length;for(tt=0;tt<lt;tt++)et[tt]&&(rt=r$4(et[tt]))&&(nt&&(nt+=" "),nt+=rt)}else for(rt in et)et[rt]&&(nt&&(nt+=" "),nt+=rt);return nt}function clsx(){for(var et,tt,rt=0,nt="",lt=arguments.length;rt<lt;rt++)(et=arguments[rt])&&(tt=r$4(et))&&(nt&&(nt+=" "),nt+=tt);return nt}function composeClasses(et,tt,rt=void 0){const nt={};return Object.keys(et).forEach(lt=>{nt[lt]=et[lt].reduce((ut,dt)=>{if(dt){const pt=tt(dt);pt!==""&&ut.push(pt),rt&&rt[dt]&&ut.push(rt[dt])}return ut},[]).join(" ")}),nt}function formatMuiErrorMessage$1(et){let tt="https://mui.com/production-error/?code="+et;for(let rt=1;rt<arguments.length;rt+=1)tt+="&args[]="+encodeURIComponent(arguments[rt]);return"Minified MUI error #"+et+"; visit "+tt+" for the full message."}const formatMuiErrorMessage=Object.freeze(Object.defineProperty({__proto__:null,default:formatMuiErrorMessage$1},Symbol.toStringTag,{value:"Module"}));function memoize$5(et){var tt=Object.create(null);return function(rt){return tt[rt]===void 0&&(tt[rt]=et(rt)),tt[rt]}}var reactPropsRegex=/^((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|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|focusable|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)-.*))$/,isPropValid=memoize$5(function(et){return reactPropsRegex.test(et)||et.charCodeAt(0)===111&&et.charCodeAt(1)===110&&et.charCodeAt(2)<91}),isDevelopment$4=!1;function sheetForTag$2(et){if(et.sheet)return et.sheet;for(var tt=0;tt<document.styleSheets.length;tt++)if(document.styleSheets[tt].ownerNode===et)return document.styleSheets[tt]}function createStyleElement$2(et){var tt=document.createElement("style");return tt.setAttribute("data-emotion",et.key),et.nonce!==void 0&&tt.setAttribute("nonce",et.nonce),tt.appendChild(document.createTextNode("")),tt.setAttribute("data-s",""),tt}var StyleSheet$2=function(){function et(rt){var nt=this;this._insertTag=function(lt){var ut;nt.tags.length===0?nt.insertionPoint?ut=nt.insertionPoint.nextSibling:nt.prepend?ut=nt.container.firstChild:ut=nt.before:ut=nt.tags[nt.tags.length-1].nextSibling,nt.container.insertBefore(lt,ut),nt.tags.push(lt)},this.isSpeedy=rt.speedy===void 0?!isDevelopment$4:rt.speedy,this.tags=[],this.ctr=0,this.nonce=rt.nonce,this.key=rt.key,this.container=rt.container,this.prepend=rt.prepend,this.insertionPoint=rt.insertionPoint,this.before=null}var tt=et.prototype;return tt.hydrate=function(nt){nt.forEach(this._insertTag)},tt.insert=function(nt){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(createStyleElement$2(this));var lt=this.tags[this.tags.length-1];if(this.isSpeedy){var ut=sheetForTag$2(lt);try{ut.insertRule(nt,ut.cssRules.length)}catch{}}else lt.appendChild(document.createTextNode(nt));this.ctr++},tt.flush=function(){this.tags.forEach(function(nt){var lt;return(lt=nt.parentNode)==null?void 0:lt.removeChild(nt)}),this.tags=[],this.ctr=0},et}(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode,assign$1=Object.assign;function hash$6(et,tt){return charat(et,0)^45?(((tt<<2^charat(et,0))<<2^charat(et,1))<<2^charat(et,2))<<2^charat(et,3):0}function trim$2(et){return et.trim()}function match$1(et,tt){return(et=tt.exec(et))?et[0]:et}function replace$1(et,tt,rt){return et.replace(tt,rt)}function indexof(et,tt){return et.indexOf(tt)}function charat(et,tt){return et.charCodeAt(tt)|0}function substr(et,tt,rt){return et.slice(tt,rt)}function strlen(et){return et.length}function sizeof(et){return et.length}function append(et,tt){return tt.push(et),et}function combine$3(et,tt){return et.map(tt).join("")}var line=1,column=1,length$1=0,position$2=0,character=0,characters="";function node$1(et,tt,rt,nt,lt,ut,dt){return{value:et,root:tt,parent:rt,type:nt,props:lt,children:ut,line,column,length:dt,return:""}}function copy(et,tt){return assign$1(node$1("",null,null,"",null,null,0),et,{length:-et.length},tt)}function char(){return character}function prev(){return character=position$2>0?charat(characters,--position$2):0,column--,character===10&&(column=1,line--),character}function next$1(){return character=position$2<length$1?charat(characters,position$2++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position$2)}function caret(){return position$2}function slice(et,tt){return substr(characters,et,tt)}function token(et){switch(et){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 alloc(et){return line=column=1,length$1=strlen(characters=et),position$2=0,[]}function dealloc(et){return characters="",et}function delimit(et){return trim$2(slice(position$2-1,delimiter$1(et===91?et+2:et===40?et+1:et)))}function whitespace(et){for(;(character=peek())&&character<33;)next$1();return token(et)>2||token(character)>3?"":" "}function escaping(et,tt){for(;--tt&&next$1()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(et,caret()+(tt<6&&peek()==32&&next$1()==32))}function delimiter$1(et){for(;next$1();)switch(character){case et:return position$2;case 34:case 39:et!==34&&et!==39&&delimiter$1(character);break;case 40:et===41&&delimiter$1(et);break;case 92:next$1();break}return position$2}function commenter(et,tt){for(;next$1()&&et+character!==57;)if(et+character===84&&peek()===47)break;return"/*"+slice(tt,position$2-1)+"*"+from(et===47?et:next$1())}function identifier(et){for(;!token(peek());)next$1();return slice(et,position$2)}function compile(et){return dealloc(parse$5("",null,null,null,[""],et=alloc(et),0,[0],et))}function parse$5(et,tt,rt,nt,lt,ut,dt,pt,ht){for(var mt=0,xt=0,Mt=dt,vt=0,Ot=0,At=0,Rt=1,zt=1,Tt=1,Ct=0,It="",Dt=lt,kt=ut,qt=nt,Nt=It;zt;)switch(At=Ct,Ct=next$1()){case 40:if(At!=108&&charat(Nt,Mt-1)==58){indexof(Nt+=replace$1(delimit(Ct),"&","&\f"),"&\f")!=-1&&(Tt=-1);break}case 34:case 39:case 91:Nt+=delimit(Ct);break;case 9:case 10:case 13:case 32:Nt+=whitespace(At);break;case 92:Nt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next$1(),caret()),tt,rt),ht);break;default:Nt+="/"}break;case 123*Rt:pt[mt++]=strlen(Nt)*Tt;case 125*Rt:case 59:case 0:switch(Ct){case 0:case 125:zt=0;case 59+xt:Tt==-1&&(Nt=replace$1(Nt,/\f/g,"")),Ot>0&&strlen(Nt)-Mt&&append(Ot>32?declaration(Nt+";",nt,rt,Mt-1):declaration(replace$1(Nt," ","")+";",nt,rt,Mt-2),ht);break;case 59:Nt+=";";default:if(append(qt=ruleset(Nt,tt,rt,mt,xt,lt,pt,It,Dt=[],kt=[],Mt),ut),Ct===123)if(xt===0)parse$5(Nt,tt,qt,qt,Dt,ut,Mt,pt,kt);else switch(vt===99&&charat(Nt,3)===110?100:vt){case 100:case 108:case 109:case 115:parse$5(et,qt,qt,nt&&append(ruleset(et,qt,qt,0,0,lt,pt,It,lt,Dt=[],Mt),kt),lt,kt,Mt,pt,nt?Dt:kt);break;default:parse$5(Nt,qt,qt,qt,[""],kt,0,pt,kt)}}mt=xt=Ot=0,Rt=Tt=1,It=Nt="",Mt=dt;break;case 58:Mt=1+strlen(Nt),Ot=At;default:if(Rt<1){if(Ct==123)--Rt;else if(Ct==125&&Rt++==0&&prev()==125)continue}switch(Nt+=from(Ct),Ct*Rt){case 38:Tt=xt>0?1:(Nt+="\f",-1);break;case 44:pt[mt++]=(strlen(Nt)-1)*Tt,Tt=1;break;case 64:peek()===45&&(Nt+=delimit(next$1())),vt=peek(),xt=Mt=strlen(It=Nt+=identifier(caret())),Ct++;break;case 45:At===45&&strlen(Nt)==2&&(Rt=0)}}return ut}function ruleset(et,tt,rt,nt,lt,ut,dt,pt,ht,mt,xt){for(var Mt=lt-1,vt=lt===0?ut:[""],Ot=sizeof(vt),At=0,Rt=0,zt=0;At<nt;++At)for(var Tt=0,Ct=substr(et,Mt+1,Mt=abs(Rt=dt[At])),It=et;Tt<Ot;++Tt)(It=trim$2(Rt>0?vt[Tt]+" "+Ct:replace$1(Ct,/&\f/g,vt[Tt])))&&(ht[zt++]=It);return node$1(et,tt,rt,lt===0?RULESET:pt,ht,mt,xt)}function comment(et,tt,rt){return node$1(et,tt,rt,COMMENT,from(char()),substr(et,2,-2),0)}function declaration(et,tt,rt,nt){return node$1(et,tt,rt,DECLARATION,substr(et,0,nt),substr(et,nt+1,-1),nt)}function serialize(et,tt){for(var rt="",nt=sizeof(et),lt=0;lt<nt;lt++)rt+=tt(et[lt],lt,et,tt)||"";return rt}function stringify(et,tt,rt,nt){switch(et.type){case LAYER:if(et.children.length)break;case IMPORT:case DECLARATION:return et.return=et.return||et.value;case COMMENT:return"";case KEYFRAMES:return et.return=et.value+"{"+serialize(et.children,nt)+"}";case RULESET:et.value=et.props.join(",")}return strlen(rt=serialize(et.children,nt))?et.return=et.value+"{"+rt+"}":""}function middleware(et){var tt=sizeof(et);return function(rt,nt,lt,ut){for(var dt="",pt=0;pt<tt;pt++)dt+=et[pt](rt,nt,lt,ut)||"";return dt}}function rulesheet(et){return function(tt){tt.root||(tt=tt.return)&&et(tt)}}var identifierWithPointTracking$1=function(tt,rt,nt){for(var lt=0,ut=0;lt=ut,ut=peek(),lt===38&&ut===12&&(rt[nt]=1),!token(ut);)next$1();return slice(tt,position$2)},toRules$1=function(tt,rt){var nt=-1,lt=44;do switch(token(lt)){case 0:lt===38&&peek()===12&&(rt[nt]=1),tt[nt]+=identifierWithPointTracking$1(position$2-1,rt,nt);break;case 2:tt[nt]+=delimit(lt);break;case 4:if(lt===44){tt[++nt]=peek()===58?"&\f":"",rt[nt]=tt[nt].length;break}default:tt[nt]+=from(lt)}while(lt=next$1());return tt},getRules$1=function(tt,rt){return dealloc(toRules$1(alloc(tt),rt))},fixedElements$1=new WeakMap,compat$2=function(tt){if(!(tt.type!=="rule"||!tt.parent||tt.length<1)){for(var rt=tt.value,nt=tt.parent,lt=tt.column===nt.column&&tt.line===nt.line;nt.type!=="rule";)if(nt=nt.parent,!nt)return;if(!(tt.props.length===1&&rt.charCodeAt(0)!==58&&!fixedElements$1.get(nt))&&!lt){fixedElements$1.set(tt,!0);for(var ut=[],dt=getRules$1(rt,ut),pt=nt.props,ht=0,mt=0;ht<dt.length;ht++)for(var xt=0;xt<pt.length;xt++,mt++)tt.props[mt]=ut[ht]?dt[ht].replace(/&\f/g,pt[xt]):pt[xt]+" "+dt[ht]}}},removeLabel$1=function(tt){if(tt.type==="decl"){var rt=tt.value;rt.charCodeAt(0)===108&&rt.charCodeAt(2)===98&&(tt.return="",tt.value="")}};function prefix$4(et,tt){switch(hash$6(et,tt)){case 5103:return WEBKIT+"print-"+et+et;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 WEBKIT+et+et;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+et+MOZ+et+MS+et+et;case 6828:case 4268:return WEBKIT+et+MS+et+et;case 6165:return WEBKIT+et+MS+"flex-"+et+et;case 5187:return WEBKIT+et+replace$1(et,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+et;case 5443:return WEBKIT+et+MS+"flex-item-"+replace$1(et,/flex-|-self/,"")+et;case 4675:return WEBKIT+et+MS+"flex-line-pack"+replace$1(et,/align-content|flex-|-self/,"")+et;case 5548:return WEBKIT+et+MS+replace$1(et,"shrink","negative")+et;case 5292:return WEBKIT+et+MS+replace$1(et,"basis","preferred-size")+et;case 6060:return WEBKIT+"box-"+replace$1(et,"-grow","")+WEBKIT+et+MS+replace$1(et,"grow","positive")+et;case 4554:return WEBKIT+replace$1(et,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+et;case 6187:return replace$1(replace$1(replace$1(et,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),et,"")+et;case 5495:case 3959:return replace$1(et,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace$1(replace$1(et,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+et+et;case 4095:case 3583:case 4068:case 2532:return replace$1(et,/(.+)-inline(.+)/,WEBKIT+"$1$2")+et;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(strlen(et)-1-tt>6)switch(charat(et,tt+1)){case 109:if(charat(et,tt+4)!==45)break;case 102:return replace$1(et,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(et,tt+3)==108?"$3":"$2-$3"))+et;case 115:return~indexof(et,"stretch")?prefix$4(replace$1(et,"stretch","fill-available"),tt)+et:et}break;case 4949:if(charat(et,tt+1)!==115)break;case 6444:switch(charat(et,strlen(et)-3-(~indexof(et,"!important")&&10))){case 107:return replace$1(et,":",":"+WEBKIT)+et;case 101:return replace$1(et,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(et,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+et}break;case 5936:switch(charat(et,tt+11)){case 114:return WEBKIT+et+MS+replace$1(et,/[svh]\w+-[tblr]{2}/,"tb")+et;case 108:return WEBKIT+et+MS+replace$1(et,/[svh]\w+-[tblr]{2}/,"tb-rl")+et;case 45:return WEBKIT+et+MS+replace$1(et,/[svh]\w+-[tblr]{2}/,"lr")+et}return WEBKIT+et+MS+et+et}return et}var prefixer$1=function(tt,rt,nt,lt){if(tt.length>-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix$4(tt.value,tt.length);break;case KEYFRAMES:return serialize([copy(tt,{value:replace$1(tt.value,"@","@"+WEBKIT)})],lt);case RULESET:if(tt.length)return combine$3(tt.props,function(ut){switch(match$1(ut,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace$1(ut,/:(read-\w+)/,":"+MOZ+"$1")]})],lt);case"::placeholder":return serialize([copy(tt,{props:[replace$1(ut,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace$1(ut,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace$1(ut,/:(plac\w+)/,MS+"input-$1")]})],lt)}return""})}},defaultStylisPlugins$1=[prefixer$1],createCache$2=function(tt){var rt=tt.key;if(rt==="css"){var nt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(nt,function(Rt){var zt=Rt.getAttribute("data-emotion");zt.indexOf(" ")!==-1&&(document.head.appendChild(Rt),Rt.setAttribute("data-s",""))})}var lt=tt.stylisPlugins||defaultStylisPlugins$1,ut={},dt,pt=[];dt=tt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+rt+' "]'),function(Rt){for(var zt=Rt.getAttribute("data-emotion").split(" "),Tt=1;Tt<zt.length;Tt++)ut[zt[Tt]]=!0;pt.push(Rt)});var ht,mt=[compat$2,removeLabel$1];{var xt,Mt=[stringify,rulesheet(function(Rt){xt.insert(Rt)})],vt=middleware(mt.concat(lt,Mt)),Ot=function(zt){return serialize(compile(zt),vt)};ht=function(zt,Tt,Ct,It){xt=Ct,Ot(zt?zt+"{"+Tt.styles+"}":Tt.styles),It&&(At.inserted[Tt.name]=!0)}}var At={key:rt,sheet:new StyleSheet$2({key:rt,container:dt,nonce:tt.nonce,speedy:tt.speedy,prepend:tt.prepend,insertionPoint:tt.insertionPoint}),nonce:tt.nonce,inserted:ut,registered:{},insert:ht};return At.sheet.hydrate(pt),At},registerStyles$1=function(tt,rt,nt){tt.key+""+rt.name},insertStyles$2=function(tt,rt,nt){registerStyles$1(tt,rt);var lt=tt.key+"-"+rt.name;if(tt.inserted[rt.name]===void 0){var ut=rt;do tt.insert(rt===ut?"."+lt:"",ut,tt.sheet,!0),ut=ut.next;while(ut!==void 0)}};function murmur2$2(et){for(var tt=0,rt,nt=0,lt=et.length;lt>=4;++nt,lt-=4)rt=et.charCodeAt(nt)&255|(et.charCodeAt(++nt)&255)<<8|(et.charCodeAt(++nt)&255)<<16|(et.charCodeAt(++nt)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,tt=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(tt&65535)*1540483477+((tt>>>16)*59797<<16);switch(lt){case 3:tt^=(et.charCodeAt(nt+2)&255)<<16;case 2:tt^=(et.charCodeAt(nt+1)&255)<<8;case 1:tt^=et.charCodeAt(nt)&255,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16)}return tt^=tt>>>13,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16),((tt^tt>>>15)>>>0).toString(36)}var unitlessKeys$2={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},isDevelopment$3=!1,hyphenateRegex$2=/[A-Z]|^ms/g,animationRegex$2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$2=function(tt){return tt.charCodeAt(1)===45},isProcessableValue$2=function(tt){return tt!=null&&typeof tt!="boolean"},processStyleName$2=memoize$5(function(et){return isCustomProperty$2(et)?et:et.replace(hyphenateRegex$2,"-$&").toLowerCase()}),processStyleValue$2=function(tt,rt){switch(tt){case"animation":case"animationName":if(typeof rt=="string")return rt.replace(animationRegex$2,function(nt,lt,ut){return cursor$2={name:lt,styles:ut,next:cursor$2},lt})}return unitlessKeys$2[tt]!==1&&!isCustomProperty$2(tt)&&typeof rt=="number"&&rt!==0?rt+"px":rt},noComponentSelectorMessage$1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation$2(et,tt,rt){if(rt==null)return"";var nt=rt;if(nt.__emotion_styles!==void 0)return nt;switch(typeof rt){case"boolean":return"";case"object":{var lt=rt;if(lt.anim===1)return cursor$2={name:lt.name,styles:lt.styles,next:cursor$2},lt.name;var ut=rt;if(ut.styles!==void 0){var dt=ut.next;if(dt!==void 0)for(;dt!==void 0;)cursor$2={name:dt.name,styles:dt.styles,next:cursor$2},dt=dt.next;var pt=ut.styles+";";return pt}return createStringFromObject$2(et,tt,rt)}case"function":{if(et!==void 0){var ht=cursor$2,mt=rt(et);return cursor$2=ht,handleInterpolation$2(et,tt,mt)}break}}var xt=rt;return xt}function createStringFromObject$2(et,tt,rt){var nt="";if(Array.isArray(rt))for(var lt=0;lt<rt.length;lt++)nt+=handleInterpolation$2(et,tt,rt[lt])+";";else for(var ut in rt){var dt=rt[ut];if(typeof dt!="object"){var pt=dt;isProcessableValue$2(pt)&&(nt+=processStyleName$2(ut)+":"+processStyleValue$2(ut,pt)+";")}else{if(ut==="NO_COMPONENT_SELECTOR"&&isDevelopment$3)throw new Error(noComponentSelectorMessage$1);if(Array.isArray(dt)&&typeof dt[0]=="string"&&tt==null)for(var ht=0;ht<dt.length;ht++)isProcessableValue$2(dt[ht])&&(nt+=processStyleName$2(ut)+":"+processStyleValue$2(ut,dt[ht])+";");else{var mt=handleInterpolation$2(et,tt,dt);switch(ut){case"animation":case"animationName":{nt+=processStyleName$2(ut)+":"+mt+";";break}default:nt+=ut+"{"+mt+"}"}}}}return nt}var labelPattern$2=/label:\s*([^\s;\n{]+)\s*(;|$)/g,cursor$2;function serializeStyles$2(et,tt,rt){if(et.length===1&&typeof et[0]=="object"&&et[0]!==null&&et[0].styles!==void 0)return et[0];var nt=!0,lt="";cursor$2=void 0;var ut=et[0];if(ut==null||ut.raw===void 0)nt=!1,lt+=handleInterpolation$2(rt,tt,ut);else{var dt=ut;lt+=dt[0]}for(var pt=1;pt<et.length;pt++)if(lt+=handleInterpolation$2(rt,tt,et[pt]),nt){var ht=ut;lt+=ht[pt]}labelPattern$2.lastIndex=0;for(var mt="",xt;(xt=labelPattern$2.exec(lt))!==null;)mt+="-"+xt[1];var Mt=murmur2$2(lt)+mt;return{name:Mt,styles:lt,next:cursor$2}}var syncFallback=function(tt){return tt()},useInsertionEffect=ReactOriginal.useInsertionEffect?ReactOriginal.useInsertionEffect:!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect||reactExports.useLayoutEffect,EmotionCacheContext$1=reactExports.createContext(typeof HTMLElement<"u"?createCache$2({key:"css"}):null),CacheProvider=EmotionCacheContext$1.Provider,withEmotionCache$1=function(tt){return reactExports.forwardRef(function(rt,nt){var lt=reactExports.useContext(EmotionCacheContext$1);return tt(rt,lt,nt)})},ThemeContext$2=reactExports.createContext({}),_extends$i={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(et){function tt(){return et.exports=tt=Object.assign?Object.assign.bind():function(rt){for(var nt=1;nt<arguments.length;nt++){var lt=arguments[nt];for(var ut in lt)({}).hasOwnProperty.call(lt,ut)&&(rt[ut]=lt[ut])}return rt},et.exports.__esModule=!0,et.exports.default=et.exports,tt.apply(null,arguments)}et.exports=tt,et.exports.__esModule=!0,et.exports.default=et.exports}(_extends$i)),_extends$i.exports}require_extends();var Global=withEmotionCache$1(function(et,tt){var rt=et.styles,nt=serializeStyles$2([rt],void 0,reactExports.useContext(ThemeContext$2)),lt=reactExports.useRef();return useInsertionEffectWithLayoutFallback(function(){var ut=tt.key+"-global",dt=new tt.sheet.constructor({key:ut,nonce:tt.sheet.nonce,container:tt.sheet.container,speedy:tt.sheet.isSpeedy}),pt=!1,ht=document.querySelector('style[data-emotion="'+ut+" "+nt.name+'"]');return tt.sheet.tags.length&&(dt.before=tt.sheet.tags[0]),ht!==null&&(pt=!0,ht.setAttribute("data-emotion",ut),dt.hydrate([ht])),lt.current=[dt,pt],function(){dt.flush()}},[tt]),useInsertionEffectWithLayoutFallback(function(){var ut=lt.current,dt=ut[0],pt=ut[1];if(pt){ut[1]=!1;return}if(nt.next!==void 0&&insertStyles$2(tt,nt.next),dt.tags.length){var ht=dt.tags[dt.tags.length-1].nextElementSibling;dt.before=ht,dt.flush()}tt.insert("",nt,dt,!1)},[tt,nt.name]),null});function css$4(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return serializeStyles$2(tt)}var keyframes$1=function(){var tt=css$4.apply(void 0,arguments),rt="animation-"+tt.name;return{name:rt,styles:"@keyframes "+rt+"{"+tt.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},isBrowser$1=!0;function getRegisteredStyles$1(et,tt,rt){var nt="";return rt.split(" ").forEach(function(lt){et[lt]!==void 0?tt.push(et[lt]+";"):nt+=lt+" "}),nt}var registerStyles=function(tt,rt,nt){var lt=tt.key+"-"+rt.name;(nt===!1||isBrowser$1===!1)&&tt.registered[lt]===void 0&&(tt.registered[lt]=rt.styles)},insertStyles$1=function(tt,rt,nt){registerStyles(tt,rt,nt);var lt=tt.key+"-"+rt.name;if(tt.inserted[rt.name]===void 0){var ut=rt;do tt.insert(rt===ut?"."+lt:"",ut,tt.sheet,!0),ut=ut.next;while(ut!==void 0)}};function murmur2$1(et){for(var tt=0,rt,nt=0,lt=et.length;lt>=4;++nt,lt-=4)rt=et.charCodeAt(nt)&255|(et.charCodeAt(++nt)&255)<<8|(et.charCodeAt(++nt)&255)<<16|(et.charCodeAt(++nt)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,tt=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(tt&65535)*1540483477+((tt>>>16)*59797<<16);switch(lt){case 3:tt^=(et.charCodeAt(nt+2)&255)<<16;case 2:tt^=(et.charCodeAt(nt+1)&255)<<8;case 1:tt^=et.charCodeAt(nt)&255,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16)}return tt^=tt>>>13,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16),((tt^tt>>>15)>>>0).toString(36)}var unitlessKeys$1={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},isDevelopment$2=!1,hyphenateRegex$1=/[A-Z]|^ms/g,animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$1=function(tt){return tt.charCodeAt(1)===45},isProcessableValue$1=function(tt){return tt!=null&&typeof tt!="boolean"},processStyleName$1=memoize$5(function(et){return isCustomProperty$1(et)?et:et.replace(hyphenateRegex$1,"-$&").toLowerCase()}),processStyleValue$1=function(tt,rt){switch(tt){case"animation":case"animationName":if(typeof rt=="string")return rt.replace(animationRegex$1,function(nt,lt,ut){return cursor$1={name:lt,styles:ut,next:cursor$1},lt})}return unitlessKeys$1[tt]!==1&&!isCustomProperty$1(tt)&&typeof rt=="number"&&rt!==0?rt+"px":rt},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation$1(et,tt,rt){if(rt==null)return"";var nt=rt;if(nt.__emotion_styles!==void 0)return nt;switch(typeof rt){case"boolean":return"";case"object":{var lt=rt;if(lt.anim===1)return cursor$1={name:lt.name,styles:lt.styles,next:cursor$1},lt.name;var ut=rt;if(ut.styles!==void 0){var dt=ut.next;if(dt!==void 0)for(;dt!==void 0;)cursor$1={name:dt.name,styles:dt.styles,next:cursor$1},dt=dt.next;var pt=ut.styles+";";return pt}return createStringFromObject$1(et,tt,rt)}case"function":{if(et!==void 0){var ht=cursor$1,mt=rt(et);return cursor$1=ht,handleInterpolation$1(et,tt,mt)}break}}var xt=rt;if(tt==null)return xt;var Mt=tt[xt];return Mt!==void 0?Mt:xt}function createStringFromObject$1(et,tt,rt){var nt="";if(Array.isArray(rt))for(var lt=0;lt<rt.length;lt++)nt+=handleInterpolation$1(et,tt,rt[lt])+";";else for(var ut in rt){var dt=rt[ut];if(typeof dt!="object"){var pt=dt;tt!=null&&tt[pt]!==void 0?nt+=ut+"{"+tt[pt]+"}":isProcessableValue$1(pt)&&(nt+=processStyleName$1(ut)+":"+processStyleValue$1(ut,pt)+";")}else{if(ut==="NO_COMPONENT_SELECTOR"&&isDevelopment$2)throw new Error(noComponentSelectorMessage);if(Array.isArray(dt)&&typeof dt[0]=="string"&&(tt==null||tt[dt[0]]===void 0))for(var ht=0;ht<dt.length;ht++)isProcessableValue$1(dt[ht])&&(nt+=processStyleName$1(ut)+":"+processStyleValue$1(ut,dt[ht])+";");else{var mt=handleInterpolation$1(et,tt,dt);switch(ut){case"animation":case"animationName":{nt+=processStyleName$1(ut)+":"+mt+";";break}default:nt+=ut+"{"+mt+"}"}}}}return nt}var labelPattern$1=/label:\s*([^\s;\n{]+)\s*(;|$)/g,cursor$1;function serializeStyles$1(et,tt,rt){if(et.length===1&&typeof et[0]=="object"&&et[0]!==null&&et[0].styles!==void 0)return et[0];var nt=!0,lt="";cursor$1=void 0;var ut=et[0];if(ut==null||ut.raw===void 0)nt=!1,lt+=handleInterpolation$1(rt,tt,ut);else{var dt=ut;lt+=dt[0]}for(var pt=1;pt<et.length;pt++)if(lt+=handleInterpolation$1(rt,tt,et[pt]),nt){var ht=ut;lt+=ht[pt]}labelPattern$1.lastIndex=0;for(var mt="",xt;(xt=labelPattern$1.exec(lt))!==null;)mt+="-"+xt[1];var Mt=murmur2$1(lt)+mt;return{name:Mt,styles:lt,next:cursor$1}}var testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(tt){return tt!=="theme"},getDefaultShouldForwardProp=function(tt){return typeof tt=="string"&&tt.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tt,rt,nt){var lt;if(rt){var ut=rt.shouldForwardProp;lt=tt.__emotion_forwardProp&&ut?function(dt){return tt.__emotion_forwardProp(dt)&&ut(dt)}:ut}return typeof lt!="function"&&nt&&(lt=tt.__emotion_forwardProp),lt},isDevelopment$1=!1,Insertion=function(tt){var rt=tt.cache,nt=tt.serialized,lt=tt.isStringTag;return registerStyles(rt,nt,lt),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles$1(rt,nt,lt)}),null},createStyled$3=function et(tt,rt){var nt=tt.__emotion_real===tt,lt=nt&&tt.__emotion_base||tt,ut,dt;rt!==void 0&&(ut=rt.label,dt=rt.target);var pt=composeShouldForwardProps(tt,rt,nt),ht=pt||getDefaultShouldForwardProp(lt),mt=!ht("as");return function(){var xt=arguments,Mt=nt&&tt.__emotion_styles!==void 0?tt.__emotion_styles.slice(0):[];if(ut!==void 0&&Mt.push("label:"+ut+";"),xt[0]==null||xt[0].raw===void 0)Mt.push.apply(Mt,xt);else{Mt.push(xt[0][0]);for(var vt=xt.length,Ot=1;Ot<vt;Ot++)Mt.push(xt[Ot],xt[0][Ot])}var At=withEmotionCache$1(function(Rt,zt,Tt){var Ct=mt&&Rt.as||lt,It="",Dt=[],kt=Rt;if(Rt.theme==null){kt={};for(var qt in Rt)kt[qt]=Rt[qt];kt.theme=reactExports.useContext(ThemeContext$2)}typeof Rt.className=="string"?It=getRegisteredStyles$1(zt.registered,Dt,Rt.className):Rt.className!=null&&(It=Rt.className+" ");var Nt=serializeStyles$1(Mt.concat(Dt),zt.registered,kt);It+=zt.key+"-"+Nt.name,dt!==void 0&&(It+=" "+dt);var Yt=mt&&pt===void 0?getDefaultShouldForwardProp(Ct):ht,Kt={};for(var Jt in Rt)mt&&Jt==="as"||Yt(Jt)&&(Kt[Jt]=Rt[Jt]);return Kt.className=It,Tt&&(Kt.ref=Tt),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion,{cache:zt,serialized:Nt,isStringTag:typeof Ct=="string"}),reactExports.createElement(Ct,Kt))});return At.displayName=ut!==void 0?ut:"Styled("+(typeof lt=="string"?lt:lt.displayName||lt.name||"Component")+")",At.defaultProps=tt.defaultProps,At.__emotion_real=At,At.__emotion_base=lt,At.__emotion_styles=Mt,At.__emotion_forwardProp=pt,Object.defineProperty(At,"toString",{value:function(){return dt===void 0&&isDevelopment$1?"NO_COMPONENT_SELECTOR":"."+dt}}),At.withComponent=function(Rt,zt){return et(Rt,_extends$j({},rt,zt,{shouldForwardProp:composeShouldForwardProps(At,zt,!0)})).apply(void 0,Mt)},At}},tags=["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"],newStyled=createStyled$3.bind();tags.forEach(function(et){newStyled[et]=newStyled(et)});var isDevelopment=!1;function sheetForTag$1(et){if(et.sheet)return et.sheet;for(var tt=0;tt<document.styleSheets.length;tt++)if(document.styleSheets[tt].ownerNode===et)return document.styleSheets[tt]}function createStyleElement$1(et){var tt=document.createElement("style");return tt.setAttribute("data-emotion",et.key),et.nonce!==void 0&&tt.setAttribute("nonce",et.nonce),tt.appendChild(document.createTextNode("")),tt.setAttribute("data-s",""),tt}var StyleSheet$1=function(){function et(rt){var nt=this;this._insertTag=function(lt){var ut;nt.tags.length===0?nt.insertionPoint?ut=nt.insertionPoint.nextSibling:nt.prepend?ut=nt.container.firstChild:ut=nt.before:ut=nt.tags[nt.tags.length-1].nextSibling,nt.container.insertBefore(lt,ut),nt.tags.push(lt)},this.isSpeedy=rt.speedy===void 0?!isDevelopment:rt.speedy,this.tags=[],this.ctr=0,this.nonce=rt.nonce,this.key=rt.key,this.container=rt.container,this.prepend=rt.prepend,this.insertionPoint=rt.insertionPoint,this.before=null}var tt=et.prototype;return tt.hydrate=function(nt){nt.forEach(this._insertTag)},tt.insert=function(nt){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(createStyleElement$1(this));var lt=this.tags[this.tags.length-1];if(this.isSpeedy){var ut=sheetForTag$1(lt);try{ut.insertRule(nt,ut.cssRules.length)}catch{}}else lt.appendChild(document.createTextNode(nt));this.ctr++},tt.flush=function(){this.tags.forEach(function(nt){var lt;return(lt=nt.parentNode)==null?void 0:lt.removeChild(nt)}),this.tags=[],this.ctr=0},et}(),identifierWithPointTracking=function(tt,rt,nt){for(var lt=0,ut=0;lt=ut,ut=peek(),lt===38&&ut===12&&(rt[nt]=1),!token(ut);)next$1();return slice(tt,position$2)},toRules=function(tt,rt){var nt=-1,lt=44;do switch(token(lt)){case 0:lt===38&&peek()===12&&(rt[nt]=1),tt[nt]+=identifierWithPointTracking(position$2-1,rt,nt);break;case 2:tt[nt]+=delimit(lt);break;case 4:if(lt===44){tt[++nt]=peek()===58?"&\f":"",rt[nt]=tt[nt].length;break}default:tt[nt]+=from(lt)}while(lt=next$1());return tt},getRules=function(tt,rt){return dealloc(toRules(alloc(tt),rt))},fixedElements=new WeakMap,compat$1=function(tt){if(!(tt.type!=="rule"||!tt.parent||tt.length<1)){for(var rt=tt.value,nt=tt.parent,lt=tt.column===nt.column&&tt.line===nt.line;nt.type!=="rule";)if(nt=nt.parent,!nt)return;if(!(tt.props.length===1&&rt.charCodeAt(0)!==58&&!fixedElements.get(nt))&&!lt){fixedElements.set(tt,!0);for(var ut=[],dt=getRules(rt,ut),pt=nt.props,ht=0,mt=0;ht<dt.length;ht++)for(var xt=0;xt<pt.length;xt++,mt++)tt.props[mt]=ut[ht]?dt[ht].replace(/&\f/g,pt[xt]):pt[xt]+" "+dt[ht]}}},removeLabel=function(tt){if(tt.type==="decl"){var rt=tt.value;rt.charCodeAt(0)===108&&rt.charCodeAt(2)===98&&(tt.return="",tt.value="")}};function prefix$3(et,tt){switch(hash$6(et,tt)){case 5103:return WEBKIT+"print-"+et+et;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 WEBKIT+et+et;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+et+MOZ+et+MS+et+et;case 6828:case 4268:return WEBKIT+et+MS+et+et;case 6165:return WEBKIT+et+MS+"flex-"+et+et;case 5187:return WEBKIT+et+replace$1(et,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+et;case 5443:return WEBKIT+et+MS+"flex-item-"+replace$1(et,/flex-|-self/,"")+et;case 4675:return WEBKIT+et+MS+"flex-line-pack"+replace$1(et,/align-content|flex-|-self/,"")+et;case 5548:return WEBKIT+et+MS+replace$1(et,"shrink","negative")+et;case 5292:return WEBKIT+et+MS+replace$1(et,"basis","preferred-size")+et;case 6060:return WEBKIT+"box-"+replace$1(et,"-grow","")+WEBKIT+et+MS+replace$1(et,"grow","positive")+et;case 4554:return WEBKIT+replace$1(et,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+et;case 6187:return replace$1(replace$1(replace$1(et,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),et,"")+et;case 5495:case 3959:return replace$1(et,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace$1(replace$1(et,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+et+et;case 4095:case 3583:case 4068:case 2532:return replace$1(et,/(.+)-inline(.+)/,WEBKIT+"$1$2")+et;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(strlen(et)-1-tt>6)switch(charat(et,tt+1)){case 109:if(charat(et,tt+4)!==45)break;case 102:return replace$1(et,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(et,tt+3)==108?"$3":"$2-$3"))+et;case 115:return~indexof(et,"stretch")?prefix$3(replace$1(et,"stretch","fill-available"),tt)+et:et}break;case 4949:if(charat(et,tt+1)!==115)break;case 6444:switch(charat(et,strlen(et)-3-(~indexof(et,"!important")&&10))){case 107:return replace$1(et,":",":"+WEBKIT)+et;case 101:return replace$1(et,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(et,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+et}break;case 5936:switch(charat(et,tt+11)){case 114:return WEBKIT+et+MS+replace$1(et,/[svh]\w+-[tblr]{2}/,"tb")+et;case 108:return WEBKIT+et+MS+replace$1(et,/[svh]\w+-[tblr]{2}/,"tb-rl")+et;case 45:return WEBKIT+et+MS+replace$1(et,/[svh]\w+-[tblr]{2}/,"lr")+et}return WEBKIT+et+MS+et+et}return et}var prefixer=function(tt,rt,nt,lt){if(tt.length>-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix$3(tt.value,tt.length);break;case KEYFRAMES:return serialize([copy(tt,{value:replace$1(tt.value,"@","@"+WEBKIT)})],lt);case RULESET:if(tt.length)return combine$3(tt.props,function(ut){switch(match$1(ut,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace$1(ut,/:(read-\w+)/,":"+MOZ+"$1")]})],lt);case"::placeholder":return serialize([copy(tt,{props:[replace$1(ut,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace$1(ut,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace$1(ut,/:(plac\w+)/,MS+"input-$1")]})],lt)}return""})}},defaultStylisPlugins=[prefixer],createCache$1=function(tt){var rt=tt.key;if(rt==="css"){var nt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(nt,function(Rt){var zt=Rt.getAttribute("data-emotion");zt.indexOf(" ")!==-1&&(document.head.appendChild(Rt),Rt.setAttribute("data-s",""))})}var lt=tt.stylisPlugins||defaultStylisPlugins,ut={},dt,pt=[];dt=tt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+rt+' "]'),function(Rt){for(var zt=Rt.getAttribute("data-emotion").split(" "),Tt=1;Tt<zt.length;Tt++)ut[zt[Tt]]=!0;pt.push(Rt)});var ht,mt=[compat$1,removeLabel];{var xt,Mt=[stringify,rulesheet(function(Rt){xt.insert(Rt)})],vt=middleware(mt.concat(lt,Mt)),Ot=function(zt){return serialize(compile(zt),vt)};ht=function(zt,Tt,Ct,It){xt=Ct,Ot(zt?zt+"{"+Tt.styles+"}":Tt.styles),It&&(At.inserted[Tt.name]=!0)}}var At={key:rt,sheet:new StyleSheet$1({key:rt,container:dt,nonce:tt.nonce,speedy:tt.speedy,prepend:tt.prepend,insertionPoint:tt.insertionPoint}),nonce:tt.nonce,inserted:ut,registered:{},insert:ht};return At.sheet.hydrate(pt),At};let cache$2;typeof document=="object"&&(cache$2=createCache$1({key:"css",prepend:!0}));function StyledEngineProvider(et){const{injectFirst:tt,children:rt}=et;return tt&&cache$2?jsxRuntimeExports.jsx(CacheProvider,{value:cache$2,children:rt}):rt}function isEmpty$7(et){return et==null||Object.keys(et).length===0}function GlobalStyles$2(et){const{styles:tt,defaultTheme:rt={}}=et,nt=typeof tt=="function"?lt=>tt(isEmpty$7(lt)?rt:lt):tt;return jsxRuntimeExports.jsx(Global,{styles:nt})}function styled$2(et,tt){return newStyled(et,tt)}const internal_processStyles=(et,tt)=>{Array.isArray(et.__emotion_styles)&&(et.__emotion_styles=tt(et.__emotion_styles))},styledEngine=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:GlobalStyles$2,StyledEngineProvider,ThemeContext:ThemeContext$2,css:css$4,default:styled$2,internal_processStyles,keyframes:keyframes$1},Symbol.toStringTag,{value:"Module"}));function isPlainObject$4(et){if(typeof et!="object"||et===null)return!1;const tt=Object.getPrototypeOf(et);return(tt===null||tt===Object.prototype||Object.getPrototypeOf(tt)===null)&&!(Symbol.toStringTag in et)&&!(Symbol.iterator in et)}function deepClone$1(et){if(!isPlainObject$4(et))return et;const tt={};return Object.keys(et).forEach(rt=>{tt[rt]=deepClone$1(et[rt])}),tt}function deepmerge$2(et,tt,rt={clone:!0}){const nt=rt.clone?_extends$j({},et):et;return isPlainObject$4(et)&&isPlainObject$4(tt)&&Object.keys(tt).forEach(lt=>{isPlainObject$4(tt[lt])&&Object.prototype.hasOwnProperty.call(et,lt)&&isPlainObject$4(et[lt])?nt[lt]=deepmerge$2(et[lt],tt[lt],rt):rt.clone?nt[lt]=isPlainObject$4(tt[lt])?deepClone$1(tt[lt]):tt[lt]:nt[lt]=tt[lt]}),nt}const deepmerge$1=Object.freeze(Object.defineProperty({__proto__:null,default:deepmerge$2,isPlainObject:isPlainObject$4},Symbol.toStringTag,{value:"Module"})),_excluded$2n=["values","unit","step"],sortBreakpointsValues=et=>{const tt=Object.keys(et).map(rt=>({key:rt,val:et[rt]}))||[];return tt.sort((rt,nt)=>rt.val-nt.val),tt.reduce((rt,nt)=>_extends$j({},rt,{[nt.key]:nt.val}),{})};function createBreakpoints(et){const{values:tt={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:rt="px",step:nt=5}=et,lt=_objectWithoutPropertiesLoose$d(et,_excluded$2n),ut=sortBreakpointsValues(tt),dt=Object.keys(ut);function pt(vt){return`@media (min-width:${typeof tt[vt]=="number"?tt[vt]:vt}${rt})`}function ht(vt){return`@media (max-width:${(typeof tt[vt]=="number"?tt[vt]:vt)-nt/100}${rt})`}function mt(vt,Ot){const At=dt.indexOf(Ot);return`@media (min-width:${typeof tt[vt]=="number"?tt[vt]:vt}${rt}) and (max-width:${(At!==-1&&typeof tt[dt[At]]=="number"?tt[dt[At]]:Ot)-nt/100}${rt})`}function xt(vt){return dt.indexOf(vt)+1<dt.length?mt(vt,dt[dt.indexOf(vt)+1]):pt(vt)}function Mt(vt){const Ot=dt.indexOf(vt);return Ot===0?pt(dt[1]):Ot===dt.length-1?ht(dt[Ot]):mt(vt,dt[dt.indexOf(vt)+1]).replace("@media","@media not all and")}return _extends$j({keys:dt,values:ut,up:pt,down:ht,between:mt,only:xt,not:Mt,unit:rt},lt)}const shape={borderRadius:4};function merge$3(et,tt){return tt?deepmerge$2(et,tt,{clone:!1}):et}const values$2={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:et=>`@media (min-width:${values$2[et]}px)`};function handleBreakpoints(et,tt,rt){const nt=et.theme||{};if(Array.isArray(tt)){const ut=nt.breakpoints||defaultBreakpoints;return tt.reduce((dt,pt,ht)=>(dt[ut.up(ut.keys[ht])]=rt(tt[ht]),dt),{})}if(typeof tt=="object"){const ut=nt.breakpoints||defaultBreakpoints;return Object.keys(tt).reduce((dt,pt)=>{if(Object.keys(ut.values||values$2).indexOf(pt)!==-1){const ht=ut.up(pt);dt[ht]=rt(tt[pt],pt)}else{const ht=pt;dt[ht]=tt[ht]}return dt},{})}return rt(tt)}function createEmptyBreakpointObject(et={}){var tt;return((tt=et.keys)==null?void 0:tt.reduce((nt,lt)=>{const ut=et.up(lt);return nt[ut]={},nt},{}))||{}}function removeUnusedBreakpoints(et,tt){return et.reduce((rt,nt)=>{const lt=rt[nt];return(!lt||Object.keys(lt).length===0)&&delete rt[nt],rt},tt)}function mergeBreakpointsInOrder(et,...tt){const rt=createEmptyBreakpointObject(et),nt=[rt,...tt].reduce((lt,ut)=>deepmerge$2(lt,ut),{});return removeUnusedBreakpoints(Object.keys(rt),nt)}function computeBreakpointsBase(et,tt){if(typeof et!="object")return{};const rt={},nt=Object.keys(tt);return Array.isArray(et)?nt.forEach((lt,ut)=>{ut<et.length&&(rt[lt]=!0)}):nt.forEach(lt=>{et[lt]!=null&&(rt[lt]=!0)}),rt}function resolveBreakpointValues({values:et,breakpoints:tt,base:rt}){const nt=rt||computeBreakpointsBase(et,tt),lt=Object.keys(nt);if(lt.length===0)return et;let ut;return lt.reduce((dt,pt,ht)=>(Array.isArray(et)?(dt[pt]=et[ht]!=null?et[ht]:et[ut],ut=ht):typeof et=="object"?(dt[pt]=et[pt]!=null?et[pt]:et[ut],ut=pt):dt[pt]=et,dt),{})}function capitalize$3(et){if(typeof et!="string")throw new Error(formatMuiErrorMessage$1(7));return et.charAt(0).toUpperCase()+et.slice(1)}const capitalize$2=Object.freeze(Object.defineProperty({__proto__:null,default:capitalize$3},Symbol.toStringTag,{value:"Module"}));function getPath(et,tt,rt=!0){if(!tt||typeof tt!="string")return null;if(et&&et.vars&&rt){const nt=`vars.${tt}`.split(".").reduce((lt,ut)=>lt&&lt[ut]?lt[ut]:null,et);if(nt!=null)return nt}return tt.split(".").reduce((nt,lt)=>nt&&nt[lt]!=null?nt[lt]:null,et)}function getStyleValue$1(et,tt,rt,nt=rt){let lt;return typeof et=="function"?lt=et(rt):Array.isArray(et)?lt=et[rt]||nt:lt=getPath(et,rt)||nt,tt&&(lt=tt(lt,nt,et)),lt}function style$4(et){const{prop:tt,cssProperty:rt=et.prop,themeKey:nt,transform:lt}=et,ut=dt=>{if(dt[tt]==null)return null;const pt=dt[tt],ht=dt.theme,mt=getPath(ht,nt)||{};return handleBreakpoints(dt,pt,Mt=>{let vt=getStyleValue$1(mt,lt,Mt);return Mt===vt&&typeof Mt=="string"&&(vt=getStyleValue$1(mt,lt,`${tt}${Mt==="default"?"":capitalize$3(Mt)}`,Mt)),rt===!1?vt:{[rt]:vt}})};return ut.propTypes={},ut.filterProps=[tt],ut}function memoize$4(et){const tt={};return rt=>(tt[rt]===void 0&&(tt[rt]=et(rt)),tt[rt])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize$4(et=>{if(et.length>2)if(aliases[et])et=aliases[et];else return[et];const[tt,rt]=et.split(""),nt=properties[tt],lt=directions[rt]||"";return Array.isArray(lt)?lt.map(ut=>nt+ut):[nt+lt]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(et,tt,rt,nt){var lt;const ut=(lt=getPath(et,tt,!1))!=null?lt:rt;return typeof ut=="number"?dt=>typeof dt=="string"?dt:ut*dt:Array.isArray(ut)?dt=>typeof dt=="string"?dt:ut[dt]:typeof ut=="function"?ut:()=>{}}function createUnarySpacing(et){return createUnaryUnit(et,"spacing",8)}function getValue$5(et,tt){if(typeof tt=="string"||tt==null)return tt;const rt=Math.abs(tt),nt=et(rt);return tt>=0?nt:typeof nt=="number"?-nt:`-${nt}`}function getStyleFromPropValue(et,tt){return rt=>et.reduce((nt,lt)=>(nt[lt]=getValue$5(tt,rt),nt),{})}function resolveCssProperty(et,tt,rt,nt){if(tt.indexOf(rt)===-1)return null;const lt=getCssProperties(rt),ut=getStyleFromPropValue(lt,nt),dt=et[rt];return handleBreakpoints(et,dt,ut)}function style$3(et,tt){const rt=createUnarySpacing(et.theme);return Object.keys(et).map(nt=>resolveCssProperty(et,tt,nt,rt)).reduce(merge$3,{})}function margin(et){return style$3(et,marginKeys)}margin.propTypes={};margin.filterProps=marginKeys;function padding(et){return style$3(et,paddingKeys)}padding.propTypes={};padding.filterProps=paddingKeys;function createSpacing(et=8){if(et.mui)return et;const tt=createUnarySpacing({spacing:et}),rt=(...nt)=>(nt.length===0?[1]:nt).map(ut=>{const dt=tt(ut);return typeof dt=="number"?`${dt}px`:dt}).join(" ");return rt.mui=!0,rt}function compose$2(...et){const tt=et.reduce((nt,lt)=>(lt.filterProps.forEach(ut=>{nt[ut]=lt}),nt),{}),rt=nt=>Object.keys(nt).reduce((lt,ut)=>tt[ut]?merge$3(lt,tt[ut](nt)):lt,{});return rt.propTypes={},rt.filterProps=et.reduce((nt,lt)=>nt.concat(lt.filterProps),[]),rt}function borderTransform(et){return typeof et!="number"?et:`${et}px solid`}function createBorderStyle(et,tt){return style$4({prop:et,themeKey:"borders",transform:tt})}const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius$1=et=>{if(et.borderRadius!==void 0&&et.borderRadius!==null){const tt=createUnaryUnit(et.theme,"shape.borderRadius",4),rt=nt=>({borderRadius:getValue$5(tt,nt)});return handleBreakpoints(et,et.borderRadius,rt)}return null};borderRadius$1.propTypes={};borderRadius$1.filterProps=["borderRadius"];compose$2(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius$1,outline,outlineColor);const gap=et=>{if(et.gap!==void 0&&et.gap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({gap:getValue$5(tt,nt)});return handleBreakpoints(et,et.gap,rt)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=et=>{if(et.columnGap!==void 0&&et.columnGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({columnGap:getValue$5(tt,nt)});return handleBreakpoints(et,et.columnGap,rt)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=et=>{if(et.rowGap!==void 0&&et.rowGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({rowGap:getValue$5(tt,nt)});return handleBreakpoints(et,et.rowGap,rt)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$4({prop:"gridColumn"}),gridRow=style$4({prop:"gridRow"}),gridAutoFlow=style$4({prop:"gridAutoFlow"}),gridAutoColumns=style$4({prop:"gridAutoColumns"}),gridAutoRows=style$4({prop:"gridAutoRows"}),gridTemplateColumns=style$4({prop:"gridTemplateColumns"}),gridTemplateRows=style$4({prop:"gridTemplateRows"}),gridTemplateAreas=style$4({prop:"gridTemplateAreas"}),gridArea=style$4({prop:"gridArea"});compose$2(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(et,tt){return tt==="grey"?tt:et}const color=style$4({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$4({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$4({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose$2(color,bgcolor,backgroundColor);function sizingTransform(et){return et<=1&&et!==0?`${et*100}%`:et}const width=style$4({prop:"width",transform:sizingTransform}),maxWidth=et=>{if(et.maxWidth!==void 0&&et.maxWidth!==null){const tt=rt=>{var nt,lt;const ut=((nt=et.theme)==null||(nt=nt.breakpoints)==null||(nt=nt.values)==null?void 0:nt[rt])||values$2[rt];return ut?((lt=et.theme)==null||(lt=lt.breakpoints)==null?void 0:lt.unit)!=="px"?{maxWidth:`${ut}${et.theme.breakpoints.unit}`}:{maxWidth:ut}:{maxWidth:sizingTransform(rt)}};return handleBreakpoints(et,et.maxWidth,tt)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$4({prop:"minWidth",transform:sizingTransform}),height=style$4({prop:"height",transform:sizingTransform}),maxHeight=style$4({prop:"maxHeight",transform:sizingTransform}),minHeight=style$4({prop:"minHeight",transform:sizingTransform});style$4({prop:"size",cssProperty:"width",transform:sizingTransform});style$4({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$4({prop:"boxSizing"});compose$2(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius$1},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:et=>({"@media print":{display:et}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function objectsHaveSameKeys(...et){const tt=et.reduce((nt,lt)=>nt.concat(Object.keys(lt)),[]),rt=new Set(tt);return et.every(nt=>rt.size===Object.keys(nt).length)}function callIfFn(et,tt){return typeof et=="function"?et(tt):et}function unstable_createStyleFunctionSx(){function et(rt,nt,lt,ut){const dt={[rt]:nt,theme:lt},pt=ut[rt];if(!pt)return{[rt]:nt};const{cssProperty:ht=rt,themeKey:mt,transform:xt,style:Mt}=pt;if(nt==null)return null;if(mt==="typography"&&nt==="inherit")return{[rt]:nt};const vt=getPath(lt,mt)||{};return Mt?Mt(dt):handleBreakpoints(dt,nt,At=>{let Rt=getStyleValue$1(vt,xt,At);return At===Rt&&typeof At=="string"&&(Rt=getStyleValue$1(vt,xt,`${rt}${At==="default"?"":capitalize$3(At)}`,At)),ht===!1?Rt:{[ht]:Rt}})}function tt(rt){var nt;const{sx:lt,theme:ut={}}=rt||{};if(!lt)return null;const dt=(nt=ut.unstable_sxConfig)!=null?nt:defaultSxConfig;function pt(ht){let mt=ht;if(typeof ht=="function")mt=ht(ut);else if(typeof ht!="object")return ht;if(!mt)return null;const xt=createEmptyBreakpointObject(ut.breakpoints),Mt=Object.keys(xt);let vt=xt;return Object.keys(mt).forEach(Ot=>{const At=callIfFn(mt[Ot],ut);if(At!=null)if(typeof At=="object")if(dt[Ot])vt=merge$3(vt,et(Ot,At,ut,dt));else{const Rt=handleBreakpoints({theme:ut},At,zt=>({[Ot]:zt}));objectsHaveSameKeys(Rt,At)?vt[Ot]=tt({sx:At,theme:ut}):vt=merge$3(vt,Rt)}else vt=merge$3(vt,et(Ot,At,ut,dt))}),removeUnusedBreakpoints(Mt,vt)}return Array.isArray(lt)?lt.map(pt):pt(lt)}return tt}const styleFunctionSx$1=unstable_createStyleFunctionSx();styleFunctionSx$1.filterProps=["sx"];function applyStyles$2(et,tt){const rt=this;return rt.vars&&typeof rt.getColorSchemeSelector=="function"?{[rt.getColorSchemeSelector(et).replace(/(\[[^\]]+\])/,"*:where($1)")]:tt}:rt.palette.mode===et?tt:{}}const _excluded$2m=["breakpoints","palette","spacing","shape"];function createTheme$2(et={},...tt){const{breakpoints:rt={},palette:nt={},spacing:lt,shape:ut={}}=et,dt=_objectWithoutPropertiesLoose$d(et,_excluded$2m),pt=createBreakpoints(rt),ht=createSpacing(lt);let mt=deepmerge$2({breakpoints:pt,direction:"ltr",components:{},palette:_extends$j({mode:"light"},nt),spacing:ht,shape:_extends$j({},shape,ut)},dt);return mt.applyStyles=applyStyles$2,mt=tt.reduce((xt,Mt)=>deepmerge$2(xt,Mt),mt),mt.unstable_sxConfig=_extends$j({},defaultSxConfig,dt==null?void 0:dt.unstable_sxConfig),mt.unstable_sx=function(Mt){return styleFunctionSx$1({sx:Mt,theme:this})},mt}const createTheme$1=Object.freeze(Object.defineProperty({__proto__:null,default:createTheme$2,private_createBreakpoints:createBreakpoints,unstable_applyStyles:applyStyles$2},Symbol.toStringTag,{value:"Module"}));function isObjectEmpty$1(et){return Object.keys(et).length===0}function useTheme$4(et=null){const tt=reactExports.useContext(ThemeContext$2);return!tt||isObjectEmpty$1(tt)?et:tt}const systemDefaultTheme$2=createTheme$2();function useTheme$3(et=systemDefaultTheme$2){return useTheme$4(et)}function GlobalStyles$1({styles:et,themeId:tt,defaultTheme:rt={}}){const nt=useTheme$3(rt),lt=typeof et=="function"?et(tt&&nt[tt]||nt):et;return jsxRuntimeExports.jsx(GlobalStyles$2,{styles:lt})}const _excluded$2l=["sx"],splitProps=et=>{var tt,rt;const nt={systemProps:{},otherProps:{}},lt=(tt=et==null||(rt=et.theme)==null?void 0:rt.unstable_sxConfig)!=null?tt:defaultSxConfig;return Object.keys(et).forEach(ut=>{lt[ut]?nt.systemProps[ut]=et[ut]:nt.otherProps[ut]=et[ut]}),nt};function extendSxProp(et){const{sx:tt}=et,rt=_objectWithoutPropertiesLoose$d(et,_excluded$2l),{systemProps:nt,otherProps:lt}=splitProps(rt);let ut;return Array.isArray(tt)?ut=[nt,...tt]:typeof tt=="function"?ut=(...dt)=>{const pt=tt(...dt);return isPlainObject$4(pt)?_extends$j({},nt,pt):nt}:ut=_extends$j({},nt,tt),_extends$j({},lt,{sx:ut})}const styleFunctionSx=Object.freeze(Object.defineProperty({__proto__:null,default:styleFunctionSx$1,extendSxProp,unstable_createStyleFunctionSx,unstable_defaultSxConfig:defaultSxConfig},Symbol.toStringTag,{value:"Module"})),defaultGenerator=et=>et,createClassNameGenerator=()=>{let et=defaultGenerator;return{configure(tt){et=tt},generate(tt){return et(tt)},reset(){et=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),_excluded$2k=["className","component"];function createBox$1(et={}){const{themeId:tt,defaultTheme:rt,defaultClassName:nt="MuiBox-root",generateClassName:lt}=et,ut=styled$2("div",{shouldForwardProp:pt=>pt!=="theme"&&pt!=="sx"&&pt!=="as"})(styleFunctionSx$1);return reactExports.forwardRef(function(ht,mt){const xt=useTheme$3(rt),Mt=extendSxProp(ht),{className:vt,component:Ot="div"}=Mt,At=_objectWithoutPropertiesLoose$d(Mt,_excluded$2k);return jsxRuntimeExports.jsx(ut,_extends$j({as:Ot,ref:mt,className:clsx(vt,lt?lt(nt):nt),theme:tt&&xt[tt]||xt},At))})}const globalStateClasses={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 generateUtilityClass(et,tt,rt="Mui"){const nt=globalStateClasses[tt];return nt?`${rt}-${nt}`:`${ClassNameGenerator.generate(et)}-${tt}`}function generateUtilityClasses(et,tt,rt="Mui"){const nt={};return tt.forEach(lt=>{nt[lt]=generateUtilityClass(et,lt,rt)}),nt}const boxClasses$1=generateUtilityClasses("MuiBox",["root"]),Box$1=createBox$1({defaultClassName:boxClasses$1.root,generateClassName:ClassNameGenerator.generate});var reactIs$1={exports:{}},reactIs_production_min$1={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b$3=Symbol.for("react.element"),c$3=Symbol.for("react.portal"),d$3=Symbol.for("react.fragment"),e$1=Symbol.for("react.strict_mode"),f$4=Symbol.for("react.profiler"),g$4=Symbol.for("react.provider"),h$3=Symbol.for("react.context"),k$3=Symbol.for("react.server_context"),l$2=Symbol.for("react.forward_ref"),m$3=Symbol.for("react.suspense"),n$3=Symbol.for("react.suspense_list"),p$4=Symbol.for("react.memo"),q$4=Symbol.for("react.lazy"),t$2=Symbol.for("react.offscreen"),u$5;u$5=Symbol.for("react.module.reference");function v$4(et){if(typeof et=="object"&&et!==null){var tt=et.$$typeof;switch(tt){case b$3:switch(et=et.type,et){case d$3:case f$4:case e$1:case m$3:case n$3:return et;default:switch(et=et&&et.$$typeof,et){case k$3:case h$3:case l$2:case q$4:case p$4:case g$4:return et;default:return tt}}case c$3:return tt}}}reactIs_production_min$1.ContextConsumer=h$3;reactIs_production_min$1.ContextProvider=g$4;reactIs_production_min$1.Element=b$3;reactIs_production_min$1.ForwardRef=l$2;reactIs_production_min$1.Fragment=d$3;reactIs_production_min$1.Lazy=q$4;reactIs_production_min$1.Memo=p$4;reactIs_production_min$1.Portal=c$3;reactIs_production_min$1.Profiler=f$4;reactIs_production_min$1.StrictMode=e$1;reactIs_production_min$1.Suspense=m$3;reactIs_production_min$1.SuspenseList=n$3;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(et){return v$4(et)===h$3};reactIs_production_min$1.isContextProvider=function(et){return v$4(et)===g$4};reactIs_production_min$1.isElement=function(et){return typeof et=="object"&&et!==null&&et.$$typeof===b$3};reactIs_production_min$1.isForwardRef=function(et){return v$4(et)===l$2};reactIs_production_min$1.isFragment=function(et){return v$4(et)===d$3};reactIs_production_min$1.isLazy=function(et){return v$4(et)===q$4};reactIs_production_min$1.isMemo=function(et){return v$4(et)===p$4};reactIs_production_min$1.isPortal=function(et){return v$4(et)===c$3};reactIs_production_min$1.isProfiler=function(et){return v$4(et)===f$4};reactIs_production_min$1.isStrictMode=function(et){return v$4(et)===e$1};reactIs_production_min$1.isSuspense=function(et){return v$4(et)===m$3};reactIs_production_min$1.isSuspenseList=function(et){return v$4(et)===n$3};reactIs_production_min$1.isValidElementType=function(et){return typeof et=="string"||typeof et=="function"||et===d$3||et===f$4||et===e$1||et===m$3||et===n$3||et===t$2||typeof et=="object"&&et!==null&&(et.$$typeof===q$4||et.$$typeof===p$4||et.$$typeof===g$4||et.$$typeof===h$3||et.$$typeof===l$2||et.$$typeof===u$5||et.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$4;reactIs$1.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$1.exports;const fnNameMatchRegex=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function getFunctionName(et){const tt=`${et}`.match(fnNameMatchRegex);return tt&&tt[1]||""}function getFunctionComponentName(et,tt=""){return et.displayName||et.name||getFunctionName(et)||tt}function getWrappedName(et,tt,rt){const nt=getFunctionComponentName(tt);return et.displayName||(nt!==""?`${rt}(${nt})`:rt)}function getDisplayName$1(et){if(et!=null){if(typeof et=="string")return et;if(typeof et=="function")return getFunctionComponentName(et,"Component");if(typeof et=="object")switch(et.$$typeof){case reactIsExports$1.ForwardRef:return getWrappedName(et,et.render,"ForwardRef");case reactIsExports$1.Memo:return getWrappedName(et,et.type,"memo");default:return}}}const getDisplayName=Object.freeze(Object.defineProperty({__proto__:null,default:getDisplayName$1,getFunctionName},Symbol.toStringTag,{value:"Module"})),_excluded$2j=["ownerState"],_excluded2$l=["variants"],_excluded3$9=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty$6(et){return Object.keys(et).length===0}function isStringTag$1(et){return typeof et=="string"&&et.charCodeAt(0)>96}function shouldForwardProp$1(et){return et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"}const systemDefaultTheme$1=createTheme$2(),lowercaseFirstLetter$1=et=>et&&et.charAt(0).toLowerCase()+et.slice(1);function resolveTheme$1({defaultTheme:et,theme:tt,themeId:rt}){return isEmpty$6(tt)?et:tt[rt]||tt}function defaultOverridesResolver$1(et){return et?(tt,rt)=>rt[et]:null}function processStyleArg$1(et,tt){let{ownerState:rt}=tt,nt=_objectWithoutPropertiesLoose$d(tt,_excluded$2j);const lt=typeof et=="function"?et(_extends$j({ownerState:rt},nt)):et;if(Array.isArray(lt))return lt.flatMap(ut=>processStyleArg$1(ut,_extends$j({ownerState:rt},nt)));if(lt&&typeof lt=="object"&&Array.isArray(lt.variants)){const{variants:ut=[]}=lt;let pt=_objectWithoutPropertiesLoose$d(lt,_excluded2$l);return ut.forEach(ht=>{let mt=!0;typeof ht.props=="function"?mt=ht.props(_extends$j({ownerState:rt},nt,rt)):Object.keys(ht.props).forEach(xt=>{(rt==null?void 0:rt[xt])!==ht.props[xt]&&nt[xt]!==ht.props[xt]&&(mt=!1)}),mt&&(Array.isArray(pt)||(pt=[pt]),pt.push(typeof ht.style=="function"?ht.style(_extends$j({ownerState:rt},nt,rt)):ht.style))}),pt}return lt}function createStyled$2(et={}){const{themeId:tt,defaultTheme:rt=systemDefaultTheme$1,rootShouldForwardProp:nt=shouldForwardProp$1,slotShouldForwardProp:lt=shouldForwardProp$1}=et,ut=dt=>styleFunctionSx$1(_extends$j({},dt,{theme:resolveTheme$1(_extends$j({},dt,{defaultTheme:rt,themeId:tt}))}));return ut.__mui_systemSx=!0,(dt,pt={})=>{internal_processStyles(dt,kt=>kt.filter(qt=>!(qt!=null&&qt.__mui_systemSx)));const{name:ht,slot:mt,skipVariantsResolver:xt,skipSx:Mt,overridesResolver:vt=defaultOverridesResolver$1(lowercaseFirstLetter$1(mt))}=pt,Ot=_objectWithoutPropertiesLoose$d(pt,_excluded3$9),At=xt!==void 0?xt:mt&&mt!=="Root"&&mt!=="root"||!1,Rt=Mt||!1;let zt,Tt=shouldForwardProp$1;mt==="Root"||mt==="root"?Tt=nt:mt?Tt=lt:isStringTag$1(dt)&&(Tt=void 0);const Ct=styled$2(dt,_extends$j({shouldForwardProp:Tt,label:zt},Ot)),It=kt=>typeof kt=="function"&&kt.__emotion_real!==kt||isPlainObject$4(kt)?qt=>processStyleArg$1(kt,_extends$j({},qt,{theme:resolveTheme$1({theme:qt.theme,defaultTheme:rt,themeId:tt})})):kt,Dt=(kt,...qt)=>{let Nt=It(kt);const Yt=qt?qt.map(It):[];ht&&vt&&Yt.push(Qt=>{const Bt=resolveTheme$1(_extends$j({},Qt,{defaultTheme:rt,themeId:tt}));if(!Bt.components||!Bt.components[ht]||!Bt.components[ht].styleOverrides)return null;const Ft=Bt.components[ht].styleOverrides,$t={};return Object.entries(Ft).forEach(([jt,Wt])=>{$t[jt]=processStyleArg$1(Wt,_extends$j({},Qt,{theme:Bt}))}),vt(Qt,$t)}),ht&&!At&&Yt.push(Qt=>{var Bt;const Ft=resolveTheme$1(_extends$j({},Qt,{defaultTheme:rt,themeId:tt})),$t=Ft==null||(Bt=Ft.components)==null||(Bt=Bt[ht])==null?void 0:Bt.variants;return processStyleArg$1({variants:$t},_extends$j({},Qt,{theme:Ft}))}),Rt||Yt.push(ut);const Kt=Yt.length-qt.length;if(Array.isArray(kt)&&Kt>0){const Qt=new Array(Kt).fill("");Nt=[...kt,...Qt],Nt.raw=[...kt.raw,...Qt]}const Jt=Ct(Nt,...Yt);return dt.muiName&&(Jt.muiName=dt.muiName),Jt};return Ct.withConfig&&(Dt.withConfig=Ct.withConfig),Dt}}const styled$1=createStyled$2();function resolveProps(et,tt){const rt=_extends$j({},tt);return Object.keys(et).forEach(nt=>{if(nt.toString().match(/^(components|slots)$/))rt[nt]=_extends$j({},et[nt],rt[nt]);else if(nt.toString().match(/^(componentsProps|slotProps)$/)){const lt=et[nt]||{},ut=tt[nt];rt[nt]={},!ut||!Object.keys(ut)?rt[nt]=lt:!lt||!Object.keys(lt)?rt[nt]=ut:(rt[nt]=_extends$j({},ut),Object.keys(lt).forEach(dt=>{rt[nt][dt]=resolveProps(lt[dt],ut[dt])}))}else rt[nt]===void 0&&(rt[nt]=et[nt])}),rt}function getThemeProps$1(et){const{theme:tt,name:rt,props:nt}=et;return!tt||!tt.components||!tt.components[rt]||!tt.components[rt].defaultProps?nt:resolveProps(tt.components[rt].defaultProps,nt)}function useThemeProps$1({props:et,name:tt,defaultTheme:rt,themeId:nt}){let lt=useTheme$3(rt);return nt&&(lt=lt[nt]||lt),getThemeProps$1({theme:lt,name:tt,props:et})}const useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useMediaQueryOld(et,tt,rt,nt,lt){const[ut,dt]=reactExports.useState(()=>lt&&rt?rt(et).matches:nt?nt(et).matches:tt);return useEnhancedEffect(()=>{let pt=!0;if(!rt)return;const ht=rt(et),mt=()=>{pt&&dt(ht.matches)};return mt(),ht.addListener(mt),()=>{pt=!1,ht.removeListener(mt)}},[et,rt]),ut}const maybeReactUseSyncExternalStore=reactExports.useSyncExternalStore;function useMediaQueryNew(et,tt,rt,nt,lt){const ut=reactExports.useCallback(()=>tt,[tt]),dt=reactExports.useMemo(()=>{if(lt&&rt)return()=>rt(et).matches;if(nt!==null){const{matches:xt}=nt(et);return()=>xt}return ut},[ut,et,nt,lt,rt]),[pt,ht]=reactExports.useMemo(()=>{if(rt===null)return[ut,()=>()=>{}];const xt=rt(et);return[()=>xt.matches,Mt=>(xt.addListener(Mt),()=>{xt.removeListener(Mt)})]},[ut,rt,et]);return maybeReactUseSyncExternalStore(ht,pt,dt)}function useMediaQuery(et,tt={}){const rt=useTheme$4(),nt=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:lt=!1,matchMedia:ut=nt?window.matchMedia:null,ssrMatchMedia:dt=null,noSsr:pt=!1}=getThemeProps$1({name:"MuiUseMediaQuery",props:tt,theme:rt});let ht=typeof et=="function"?et(rt):et;return ht=ht.replace(/^@media( ?)/m,""),(maybeReactUseSyncExternalStore!==void 0?useMediaQueryNew:useMediaQueryOld)(ht,lt,ut,dt,pt)}function clamp$1(et,tt=Number.MIN_SAFE_INTEGER,rt=Number.MAX_SAFE_INTEGER){return Math.max(tt,Math.min(et,rt))}const clamp=Object.freeze(Object.defineProperty({__proto__:null,default:clamp$1},Symbol.toStringTag,{value:"Module"}));function clampWrapper$1(et,tt=0,rt=1){return clamp$1(et,tt,rt)}function hexToRgb$1(et){et=et.slice(1);const tt=new RegExp(`.{1,${et.length>=6?2:1}}`,"g");let rt=et.match(tt);return rt&&rt[0].length===1&&(rt=rt.map(nt=>nt+nt)),rt?`rgb${rt.length===4?"a":""}(${rt.map((nt,lt)=>lt<3?parseInt(nt,16):Math.round(parseInt(nt,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor$1(et){if(et.type)return et;if(et.charAt(0)==="#")return decomposeColor$1(hexToRgb$1(et));const tt=et.indexOf("("),rt=et.substring(0,tt);if(["rgb","rgba","hsl","hsla","color"].indexOf(rt)===-1)throw new Error(formatMuiErrorMessage$1(9,et));let nt=et.substring(tt+1,et.length-1),lt;if(rt==="color"){if(nt=nt.split(" "),lt=nt.shift(),nt.length===4&&nt[3].charAt(0)==="/"&&(nt[3]=nt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(lt)===-1)throw new Error(formatMuiErrorMessage$1(10,lt))}else nt=nt.split(",");return nt=nt.map(ut=>parseFloat(ut)),{type:rt,values:nt,colorSpace:lt}}function recomposeColor$1(et){const{type:tt,colorSpace:rt}=et;let{values:nt}=et;return tt.indexOf("rgb")!==-1?nt=nt.map((lt,ut)=>ut<3?parseInt(lt,10):lt):tt.indexOf("hsl")!==-1&&(nt[1]=`${nt[1]}%`,nt[2]=`${nt[2]}%`),tt.indexOf("color")!==-1?nt=`${rt} ${nt.join(" ")}`:nt=`${nt.join(", ")}`,`${tt}(${nt})`}function alpha$1(et,tt){return et=decomposeColor$1(et),tt=clampWrapper$1(tt),(et.type==="rgb"||et.type==="hsl")&&(et.type+="a"),et.type==="color"?et.values[3]=`/${tt}`:et.values[3]=tt,recomposeColor$1(et)}function lighten$1(et,tt){if(et=decomposeColor$1(et),tt=clampWrapper$1(tt),et.type.indexOf("hsl")!==-1)et.values[2]+=(100-et.values[2])*tt;else if(et.type.indexOf("rgb")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(255-et.values[rt])*tt;else if(et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(1-et.values[rt])*tt;return recomposeColor$1(et)}const refType=PropTypes.oneOfType([PropTypes.func,PropTypes.object]);function createChainedFunction(...et){return et.reduce((tt,rt)=>rt==null?tt:function(...lt){tt.apply(this,lt),rt.apply(this,lt)},()=>{})}function debounce$4(et,tt=166){let rt;function nt(...lt){const ut=()=>{et.apply(this,lt)};clearTimeout(rt),rt=setTimeout(ut,tt)}return nt.clear=()=>{clearTimeout(rt)},nt}function deprecatedPropType(et,tt){return()=>null}function isMuiElement(et,tt){var rt,nt;return reactExports.isValidElement(et)&&tt.indexOf((rt=et.type.muiName)!=null?rt:(nt=et.type)==null||(nt=nt._payload)==null||(nt=nt.value)==null?void 0:nt.muiName)!==-1}function ownerDocument(et){return et&&et.ownerDocument||document}function ownerWindow(et){return ownerDocument(et).defaultView||window}function requirePropFactory(et,tt){return()=>null}function setRef(et,tt){typeof et=="function"?et(tt):et&&(et.current=tt)}let globalId=0;function useGlobalId(et){const[tt,rt]=reactExports.useState(et),nt=et||tt;return reactExports.useEffect(()=>{tt==null&&(globalId+=1,rt(`mui-${globalId}`))},[tt]),nt}const maybeReactUseId=ReactOriginal.useId;function useId(et){if(maybeReactUseId!==void 0){const tt=maybeReactUseId();return et??tt}return useGlobalId(et)}function unsupportedProp(et,tt,rt,nt,lt){return null}function useControlled({controlled:et,default:tt,name:rt,state:nt="value"}){const{current:lt}=reactExports.useRef(et!==void 0),[ut,dt]=reactExports.useState(tt),pt=lt?et:ut,ht=reactExports.useCallback(mt=>{lt||dt(mt)},[]);return[pt,ht]}function useEventCallback$1(et){const tt=reactExports.useRef(et);return useEnhancedEffect(()=>{tt.current=et}),reactExports.useRef((...rt)=>(0,tt.current)(...rt)).current}function useForkRef(...et){return reactExports.useMemo(()=>et.every(tt=>tt==null)?null:tt=>{et.forEach(rt=>{setRef(rt,tt)})},et)}const UNINITIALIZED={};function useLazyRef(et,tt){const rt=reactExports.useRef(UNINITIALIZED);return rt.current===UNINITIALIZED&&(rt.current=et(tt)),rt}const EMPTY=[];function useOnMount(et){reactExports.useEffect(et,EMPTY)}class Timeout{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Timeout}start(tt,rt){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,rt()},tt)}}function useTimeout(){const et=useLazyRef(Timeout.create).current;return useOnMount(et.disposeEffect),et}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1;const hadFocusVisibleRecentlyTimeout=new Timeout,inputTypesWhitelist={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 focusTriggersKeyboardModality(et){const{type:tt,tagName:rt}=et;return!!(rt==="INPUT"&&inputTypesWhitelist[tt]&&!et.readOnly||rt==="TEXTAREA"&&!et.readOnly||et.isContentEditable)}function handleKeyDown(et){et.metaKey||et.altKey||et.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(et){et.addEventListener("keydown",handleKeyDown,!0),et.addEventListener("mousedown",handlePointerDown,!0),et.addEventListener("pointerdown",handlePointerDown,!0),et.addEventListener("touchstart",handlePointerDown,!0),et.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(et){const{target:tt}=et;try{return tt.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(tt)}function useIsFocusVisible(){const et=reactExports.useCallback(lt=>{lt!=null&&prepare(lt.ownerDocument)},[]),tt=reactExports.useRef(!1);function rt(){return tt.current?(hadFocusVisibleRecently=!0,hadFocusVisibleRecentlyTimeout.start(100,()=>{hadFocusVisibleRecently=!1}),tt.current=!1,!0):!1}function nt(lt){return isFocusVisible(lt)?(tt.current=!0,!0):!1}return{isFocusVisibleRef:tt,onFocus:nt,onBlur:rt,ref:et}}function getScrollbarSize(et){const tt=et.documentElement.clientWidth;return Math.abs(window.innerWidth-tt)}let cachedType;function detectScrollType(){if(cachedType)return cachedType;const et=document.createElement("div"),tt=document.createElement("div");return tt.style.width="10px",tt.style.height="1px",et.appendChild(tt),et.dir="rtl",et.style.fontSize="14px",et.style.width="4px",et.style.height="1px",et.style.position="absolute",et.style.top="-1000px",et.style.overflow="scroll",document.body.appendChild(et),cachedType="reverse",et.scrollLeft>0?cachedType="default":(et.scrollLeft=1,et.scrollLeft===0&&(cachedType="negative")),document.body.removeChild(et),cachedType}function getNormalizedScrollLeft(et,tt){const rt=et.scrollLeft;if(tt!=="rtl")return rt;switch(detectScrollType()){case"negative":return et.scrollWidth-et.clientWidth+rt;case"reverse":return et.scrollWidth-et.clientWidth-rt;default:return rt}}const usePreviousProps=et=>{const tt=reactExports.useRef({});return reactExports.useEffect(()=>{tt.current=et}),tt.current};function getValidReactChildren(et){return reactExports.Children.toArray(et).filter(tt=>reactExports.isValidElement(tt))}const visuallyHidden$2={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function isHostComponent(et){return typeof et=="string"}function appendOwnerState(et,tt,rt){return et===void 0||isHostComponent(et)?tt:_extends$j({},tt,{ownerState:_extends$j({},tt.ownerState,rt)})}function extractEventHandlers(et,tt=[]){if(et===void 0)return{};const rt={};return Object.keys(et).filter(nt=>nt.match(/^on[A-Z]/)&&typeof et[nt]=="function"&&!tt.includes(nt)).forEach(nt=>{rt[nt]=et[nt]}),rt}function omitEventHandlers(et){if(et===void 0)return{};const tt={};return Object.keys(et).filter(rt=>!(rt.match(/^on[A-Z]/)&&typeof et[rt]=="function")).forEach(rt=>{tt[rt]=et[rt]}),tt}function mergeSlotProps(et){const{getSlotProps:tt,additionalProps:rt,externalSlotProps:nt,externalForwardedProps:lt,className:ut}=et;if(!tt){const Ot=clsx(rt==null?void 0:rt.className,ut,lt==null?void 0:lt.className,nt==null?void 0:nt.className),At=_extends$j({},rt==null?void 0:rt.style,lt==null?void 0:lt.style,nt==null?void 0:nt.style),Rt=_extends$j({},rt,lt,nt);return Ot.length>0&&(Rt.className=Ot),Object.keys(At).length>0&&(Rt.style=At),{props:Rt,internalRef:void 0}}const dt=extractEventHandlers(_extends$j({},lt,nt)),pt=omitEventHandlers(nt),ht=omitEventHandlers(lt),mt=tt(dt),xt=clsx(mt==null?void 0:mt.className,rt==null?void 0:rt.className,ut,lt==null?void 0:lt.className,nt==null?void 0:nt.className),Mt=_extends$j({},mt==null?void 0:mt.style,rt==null?void 0:rt.style,lt==null?void 0:lt.style,nt==null?void 0:nt.style),vt=_extends$j({},mt,rt,ht,pt);return xt.length>0&&(vt.className=xt),Object.keys(Mt).length>0&&(vt.style=Mt),{props:vt,internalRef:mt.ref}}function resolveComponentProps(et,tt,rt){return typeof et=="function"?et(tt,rt):et}const _excluded$2i=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function useSlotProps(et){var tt;const{elementType:rt,externalSlotProps:nt,ownerState:lt,skipResolvingSlotProps:ut=!1}=et,dt=_objectWithoutPropertiesLoose$d(et,_excluded$2i),pt=ut?{}:resolveComponentProps(nt,lt),{props:ht,internalRef:mt}=mergeSlotProps(_extends$j({},dt,{externalSlotProps:pt})),xt=useForkRef(mt,pt==null?void 0:pt.ref,(tt=et.additionalProps)==null?void 0:tt.ref);return appendOwnerState(rt,_extends$j({},ht,{ref:xt}),lt)}const ThemeContext$1=reactExports.createContext(null);function useTheme$2(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(et,tt){return typeof tt=="function"?tt(et):_extends$j({},et,tt)}function ThemeProvider$2(et){const{children:tt,theme:rt}=et,nt=useTheme$2(),lt=reactExports.useMemo(()=>{const ut=nt===null?rt:mergeOuterLocalTheme(nt,rt);return ut!=null&&(ut[nested]=nt!==null),ut},[rt,nt]);return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:lt,children:tt})}const _excluded$2h=["value"],RtlContext=reactExports.createContext();function RtlProvider(et){let{value:tt}=et,rt=_objectWithoutPropertiesLoose$d(et,_excluded$2h);return jsxRuntimeExports.jsx(RtlContext.Provider,_extends$j({value:tt??!0},rt))}const useRtl=()=>{const et=reactExports.useContext(RtlContext);return et??!1},PropsContext=reactExports.createContext(void 0);function DefaultPropsProvider({value:et,children:tt}){return jsxRuntimeExports.jsx(PropsContext.Provider,{value:et,children:tt})}function getThemeProps(et){const{theme:tt,name:rt,props:nt}=et;if(!tt||!tt.components||!tt.components[rt])return nt;const lt=tt.components[rt];return lt.defaultProps?resolveProps(lt.defaultProps,nt):!lt.styleOverrides&&!lt.variants?resolveProps(lt,nt):nt}function useDefaultProps$1({props:et,name:tt}){const rt=reactExports.useContext(PropsContext);return getThemeProps({props:et,name:tt,theme:{components:rt}})}const EMPTY_THEME={};function useThemeScoping(et,tt,rt,nt=!1){return reactExports.useMemo(()=>{const lt=et&&tt[et]||tt;if(typeof rt=="function"){const ut=rt(lt),dt=et?_extends$j({},tt,{[et]:ut}):ut;return nt?()=>dt:dt}return et?_extends$j({},tt,{[et]:rt}):_extends$j({},tt,rt)},[et,tt,rt,nt])}function ThemeProvider$1(et){const{children:tt,theme:rt,themeId:nt}=et,lt=useTheme$4(EMPTY_THEME),ut=useTheme$2()||EMPTY_THEME,dt=useThemeScoping(nt,lt,rt),pt=useThemeScoping(nt,ut,rt,!0),ht=dt.direction==="rtl";return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:pt,children:jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:dt,children:jsxRuntimeExports.jsx(RtlProvider,{value:ht,children:jsxRuntimeExports.jsx(DefaultPropsProvider,{value:dt==null?void 0:dt.components,children:tt})})})})}function _typeof$5(et){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$5(et)}function toPrimitive(et,tt){if(_typeof$5(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt||"default");if(_typeof$5(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(tt==="string"?String:Number)(et)}function toPropertyKey(et){var tt=toPrimitive(et,"string");return _typeof$5(tt)=="symbol"?tt:tt+""}const _excluded$2g=["className","component","disableGutters","fixed","maxWidth","classes"],defaultTheme$6=createTheme$2(),defaultCreateStyledComponent$1=styled$1("div",{name:"MuiContainer",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[`maxWidth${capitalize$3(String(rt.maxWidth))}`],rt.fixed&&tt.fixed,rt.disableGutters&&tt.disableGutters]}}),useThemePropsDefault$1=et=>useThemeProps$1({props:et,name:"MuiContainer",defaultTheme:defaultTheme$6}),useUtilityClasses$1D=(et,tt)=>{const rt=ht=>generateUtilityClass(tt,ht),{classes:nt,fixed:lt,disableGutters:ut,maxWidth:dt}=et,pt={root:["root",dt&&`maxWidth${capitalize$3(String(dt))}`,lt&&"fixed",ut&&"disableGutters"]};return composeClasses(pt,rt,nt)};function createContainer(et={}){const{createStyledComponent:tt=defaultCreateStyledComponent$1,useThemeProps:rt=useThemePropsDefault$1,componentName:nt="MuiContainer"}=et,lt=tt(({theme:dt,ownerState:pt})=>_extends$j({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!pt.disableGutters&&{paddingLeft:dt.spacing(2),paddingRight:dt.spacing(2),[dt.breakpoints.up("sm")]:{paddingLeft:dt.spacing(3),paddingRight:dt.spacing(3)}}),({theme:dt,ownerState:pt})=>pt.fixed&&Object.keys(dt.breakpoints.values).reduce((ht,mt)=>{const xt=mt,Mt=dt.breakpoints.values[xt];return Mt!==0&&(ht[dt.breakpoints.up(xt)]={maxWidth:`${Mt}${dt.breakpoints.unit}`}),ht},{}),({theme:dt,ownerState:pt})=>_extends$j({},pt.maxWidth==="xs"&&{[dt.breakpoints.up("xs")]:{maxWidth:Math.max(dt.breakpoints.values.xs,444)}},pt.maxWidth&&pt.maxWidth!=="xs"&&{[dt.breakpoints.up(pt.maxWidth)]:{maxWidth:`${dt.breakpoints.values[pt.maxWidth]}${dt.breakpoints.unit}`}}));return reactExports.forwardRef(function(pt,ht){const mt=rt(pt),{className:xt,component:Mt="div",disableGutters:vt=!1,fixed:Ot=!1,maxWidth:At="lg"}=mt,Rt=_objectWithoutPropertiesLoose$d(mt,_excluded$2g),zt=_extends$j({},mt,{component:Mt,disableGutters:vt,fixed:Ot,maxWidth:At}),Tt=useUtilityClasses$1D(zt,nt);return jsxRuntimeExports.jsx(lt,_extends$j({as:Mt,ownerState:zt,className:clsx(Tt.root,xt),ref:ht},Rt))})}const _excluded$2f=["component","direction","spacing","divider","children","className","useFlexGap"],defaultTheme$5=createTheme$2(),defaultCreateStyledComponent=styled$1("div",{name:"MuiStack",slot:"Root",overridesResolver:(et,tt)=>tt.root});function useThemePropsDefault(et){return useThemeProps$1({props:et,name:"MuiStack",defaultTheme:defaultTheme$5})}function joinChildren(et,tt){const rt=reactExports.Children.toArray(et).filter(Boolean);return rt.reduce((nt,lt,ut)=>(nt.push(lt),ut<rt.length-1&&nt.push(reactExports.cloneElement(tt,{key:`separator-${ut}`})),nt),[])}const getSideFromDirection=et=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[et],style$2=({ownerState:et,theme:tt})=>{let rt=_extends$j({display:"flex",flexDirection:"column"},handleBreakpoints({theme:tt},resolveBreakpointValues({values:et.direction,breakpoints:tt.breakpoints.values}),nt=>({flexDirection:nt})));if(et.spacing){const nt=createUnarySpacing(tt),lt=Object.keys(tt.breakpoints.values).reduce((ht,mt)=>((typeof et.spacing=="object"&&et.spacing[mt]!=null||typeof et.direction=="object"&&et.direction[mt]!=null)&&(ht[mt]=!0),ht),{}),ut=resolveBreakpointValues({values:et.direction,base:lt}),dt=resolveBreakpointValues({values:et.spacing,base:lt});typeof ut=="object"&&Object.keys(ut).forEach((ht,mt,xt)=>{if(!ut[ht]){const vt=mt>0?ut[xt[mt-1]]:"column";ut[ht]=vt}}),rt=deepmerge$2(rt,handleBreakpoints({theme:tt},dt,(ht,mt)=>et.useFlexGap?{gap:getValue$5(nt,ht)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${getSideFromDirection(mt?ut[mt]:et.direction)}`]:getValue$5(nt,ht)}}))}return rt=mergeBreakpointsInOrder(tt.breakpoints,rt),rt};function createStack(et={}){const{createStyledComponent:tt=defaultCreateStyledComponent,useThemeProps:rt=useThemePropsDefault,componentName:nt="MuiStack"}=et,lt=()=>composeClasses({root:["root"]},ht=>generateUtilityClass(nt,ht),{}),ut=tt(style$2);return reactExports.forwardRef(function(ht,mt){const xt=rt(ht),Mt=extendSxProp(xt),{component:vt="div",direction:Ot="column",spacing:At=0,divider:Rt,children:zt,className:Tt,useFlexGap:Ct=!1}=Mt,It=_objectWithoutPropertiesLoose$d(Mt,_excluded$2f),Dt={direction:Ot,spacing:At,useFlexGap:Ct},kt=lt();return jsxRuntimeExports.jsx(ut,_extends$j({as:vt,ownerState:Dt,ref:mt,className:clsx(kt.root,Tt)},It,{children:Rt?joinChildren(zt,Rt):zt}))})}const Stack$6=createStack();function useDefaultProps(et){return useDefaultProps$1(et)}var createStyled$1={},interopRequireDefault={exports:{}};(function(et){function tt(rt){return rt&&rt.__esModule?rt:{default:rt}}et.exports=tt,et.exports.__esModule=!0,et.exports.default=et.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(et){function tt(rt,nt){if(rt==null)return{};var lt={};for(var ut in rt)if({}.hasOwnProperty.call(rt,ut)){if(nt.includes(ut))continue;lt[ut]=rt[ut]}return lt}et.exports=tt,et.exports.__esModule=!0,et.exports.default=et.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}const require$$1$3=getAugmentedNamespace(styledEngine),require$$4$1=getAugmentedNamespace(deepmerge$1),require$$5=getAugmentedNamespace(capitalize$2),require$$6$1=getAugmentedNamespace(getDisplayName),require$$7=getAugmentedNamespace(createTheme$1),require$$8=getAugmentedNamespace(styleFunctionSx);var _interopRequireDefault$t=interopRequireDefaultExports;Object.defineProperty(createStyled$1,"__esModule",{value:!0});var _default$5=createStyled$1.default=createStyled;createStyled$1.shouldForwardProp=shouldForwardProp;createStyled$1.systemDefaultTheme=void 0;var _extends2=_interopRequireDefault$t(require_extends()),_objectWithoutPropertiesLoose2=_interopRequireDefault$t(requireObjectWithoutPropertiesLoose()),_styledEngine$1=_interopRequireWildcard$1(require$$1$3),_deepmerge=require$$4$1;_interopRequireDefault$t(require$$5);_interopRequireDefault$t(require$$6$1);var _createTheme=_interopRequireDefault$t(require$$7),_styleFunctionSx=_interopRequireDefault$t(require$$8);const _excluded$2e=["ownerState"],_excluded2$k=["variants"],_excluded3$8=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _getRequireWildcardCache$1(et){if(typeof WeakMap!="function")return null;var tt=new WeakMap,rt=new WeakMap;return(_getRequireWildcardCache$1=function(nt){return nt?rt:tt})(et)}function _interopRequireWildcard$1(et,tt){if(et&&et.__esModule)return et;if(et===null||typeof et!="object"&&typeof et!="function")return{default:et};var rt=_getRequireWildcardCache$1(tt);if(rt&&rt.has(et))return rt.get(et);var nt={__proto__:null},lt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ut in et)if(ut!=="default"&&Object.prototype.hasOwnProperty.call(et,ut)){var dt=lt?Object.getOwnPropertyDescriptor(et,ut):null;dt&&(dt.get||dt.set)?Object.defineProperty(nt,ut,dt):nt[ut]=et[ut]}return nt.default=et,rt&&rt.set(et,nt),nt}function isEmpty$5(et){return Object.keys(et).length===0}function isStringTag(et){return typeof et=="string"&&et.charCodeAt(0)>96}function shouldForwardProp(et){return et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"}const systemDefaultTheme=createStyled$1.systemDefaultTheme=(0,_createTheme.default)(),lowercaseFirstLetter=et=>et&&et.charAt(0).toLowerCase()+et.slice(1);function resolveTheme({defaultTheme:et,theme:tt,themeId:rt}){return isEmpty$5(tt)?et:tt[rt]||tt}function defaultOverridesResolver(et){return et?(tt,rt)=>rt[et]:null}function processStyleArg(et,tt){let{ownerState:rt}=tt,nt=(0,_objectWithoutPropertiesLoose2.default)(tt,_excluded$2e);const lt=typeof et=="function"?et((0,_extends2.default)({ownerState:rt},nt)):et;if(Array.isArray(lt))return lt.flatMap(ut=>processStyleArg(ut,(0,_extends2.default)({ownerState:rt},nt)));if(lt&&typeof lt=="object"&&Array.isArray(lt.variants)){const{variants:ut=[]}=lt;let pt=(0,_objectWithoutPropertiesLoose2.default)(lt,_excluded2$k);return ut.forEach(ht=>{let mt=!0;typeof ht.props=="function"?mt=ht.props((0,_extends2.default)({ownerState:rt},nt,rt)):Object.keys(ht.props).forEach(xt=>{(rt==null?void 0:rt[xt])!==ht.props[xt]&&nt[xt]!==ht.props[xt]&&(mt=!1)}),mt&&(Array.isArray(pt)||(pt=[pt]),pt.push(typeof ht.style=="function"?ht.style((0,_extends2.default)({ownerState:rt},nt,rt)):ht.style))}),pt}return lt}function createStyled(et={}){const{themeId:tt,defaultTheme:rt=systemDefaultTheme,rootShouldForwardProp:nt=shouldForwardProp,slotShouldForwardProp:lt=shouldForwardProp}=et,ut=dt=>(0,_styleFunctionSx.default)((0,_extends2.default)({},dt,{theme:resolveTheme((0,_extends2.default)({},dt,{defaultTheme:rt,themeId:tt}))}));return ut.__mui_systemSx=!0,(dt,pt={})=>{(0,_styledEngine$1.internal_processStyles)(dt,kt=>kt.filter(qt=>!(qt!=null&&qt.__mui_systemSx)));const{name:ht,slot:mt,skipVariantsResolver:xt,skipSx:Mt,overridesResolver:vt=defaultOverridesResolver(lowercaseFirstLetter(mt))}=pt,Ot=(0,_objectWithoutPropertiesLoose2.default)(pt,_excluded3$8),At=xt!==void 0?xt:mt&&mt!=="Root"&&mt!=="root"||!1,Rt=Mt||!1;let zt,Tt=shouldForwardProp;mt==="Root"||mt==="root"?Tt=nt:mt?Tt=lt:isStringTag(dt)&&(Tt=void 0);const Ct=(0,_styledEngine$1.default)(dt,(0,_extends2.default)({shouldForwardProp:Tt,label:zt},Ot)),It=kt=>typeof kt=="function"&&kt.__emotion_real!==kt||(0,_deepmerge.isPlainObject)(kt)?qt=>processStyleArg(kt,(0,_extends2.default)({},qt,{theme:resolveTheme({theme:qt.theme,defaultTheme:rt,themeId:tt})})):kt,Dt=(kt,...qt)=>{let Nt=It(kt);const Yt=qt?qt.map(It):[];ht&&vt&&Yt.push(Qt=>{const Bt=resolveTheme((0,_extends2.default)({},Qt,{defaultTheme:rt,themeId:tt}));if(!Bt.components||!Bt.components[ht]||!Bt.components[ht].styleOverrides)return null;const Ft=Bt.components[ht].styleOverrides,$t={};return Object.entries(Ft).forEach(([jt,Wt])=>{$t[jt]=processStyleArg(Wt,(0,_extends2.default)({},Qt,{theme:Bt}))}),vt(Qt,$t)}),ht&&!At&&Yt.push(Qt=>{var Bt;const Ft=resolveTheme((0,_extends2.default)({},Qt,{defaultTheme:rt,themeId:tt})),$t=Ft==null||(Bt=Ft.components)==null||(Bt=Bt[ht])==null?void 0:Bt.variants;return processStyleArg({variants:$t},(0,_extends2.default)({},Qt,{theme:Ft}))}),Rt||Yt.push(ut);const Kt=Yt.length-qt.length;if(Array.isArray(kt)&&Kt>0){const Qt=new Array(Kt).fill("");Nt=[...kt,...Qt],Nt.raw=[...kt.raw,...Qt]}const Jt=Ct(Nt,...Yt);return dt.muiName&&(Jt.muiName=dt.muiName),Jt};return Ct.withConfig&&(Dt.withConfig=Ct.withConfig),Dt}}function createMixins(et,tt){return _extends$j({toolbar:{minHeight:56,[et.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[et.up("sm")]:{minHeight:64}}},tt)}var colorManipulator={};const require$$1$2=getAugmentedNamespace(formatMuiErrorMessage),require$$2$1=getAugmentedNamespace(clamp);var _interopRequireDefault$s=interopRequireDefaultExports;Object.defineProperty(colorManipulator,"__esModule",{value:!0});var alpha_1=colorManipulator.alpha=alpha;colorManipulator.blend=blend;colorManipulator.colorChannel=void 0;var darken_1=colorManipulator.darken=darken;colorManipulator.decomposeColor=decomposeColor;colorManipulator.emphasize=emphasize;var getContrastRatio_1=colorManipulator.getContrastRatio=getContrastRatio;colorManipulator.getLuminance=getLuminance;colorManipulator.hexToRgb=hexToRgb;colorManipulator.hslToRgb=hslToRgb;var lighten_1=colorManipulator.lighten=lighten;colorManipulator.private_safeAlpha=private_safeAlpha;colorManipulator.private_safeColorChannel=void 0;colorManipulator.private_safeDarken=private_safeDarken;colorManipulator.private_safeEmphasize=private_safeEmphasize;colorManipulator.private_safeLighten=private_safeLighten;colorManipulator.recomposeColor=recomposeColor;colorManipulator.rgbToHex=rgbToHex;var _formatMuiErrorMessage2=_interopRequireDefault$s(require$$1$2),_clamp=_interopRequireDefault$s(require$$2$1);function clampWrapper(et,tt=0,rt=1){return(0,_clamp.default)(et,tt,rt)}function hexToRgb(et){et=et.slice(1);const tt=new RegExp(`.{1,${et.length>=6?2:1}}`,"g");let rt=et.match(tt);return rt&&rt[0].length===1&&(rt=rt.map(nt=>nt+nt)),rt?`rgb${rt.length===4?"a":""}(${rt.map((nt,lt)=>lt<3?parseInt(nt,16):Math.round(parseInt(nt,16)/255*1e3)/1e3).join(", ")})`:""}function intToHex(et){const tt=et.toString(16);return tt.length===1?`0${tt}`:tt}function decomposeColor(et){if(et.type)return et;if(et.charAt(0)==="#")return decomposeColor(hexToRgb(et));const tt=et.indexOf("("),rt=et.substring(0,tt);if(["rgb","rgba","hsl","hsla","color"].indexOf(rt)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(9,et));let nt=et.substring(tt+1,et.length-1),lt;if(rt==="color"){if(nt=nt.split(" "),lt=nt.shift(),nt.length===4&&nt[3].charAt(0)==="/"&&(nt[3]=nt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(lt)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(10,lt))}else nt=nt.split(",");return nt=nt.map(ut=>parseFloat(ut)),{type:rt,values:nt,colorSpace:lt}}const colorChannel=et=>{const tt=decomposeColor(et);return tt.values.slice(0,3).map((rt,nt)=>tt.type.indexOf("hsl")!==-1&&nt!==0?`${rt}%`:rt).join(" ")};colorManipulator.colorChannel=colorChannel;const private_safeColorChannel=(et,tt)=>{try{return colorChannel(et)}catch{return et}};colorManipulator.private_safeColorChannel=private_safeColorChannel;function recomposeColor(et){const{type:tt,colorSpace:rt}=et;let{values:nt}=et;return tt.indexOf("rgb")!==-1?nt=nt.map((lt,ut)=>ut<3?parseInt(lt,10):lt):tt.indexOf("hsl")!==-1&&(nt[1]=`${nt[1]}%`,nt[2]=`${nt[2]}%`),tt.indexOf("color")!==-1?nt=`${rt} ${nt.join(" ")}`:nt=`${nt.join(", ")}`,`${tt}(${nt})`}function rgbToHex(et){if(et.indexOf("#")===0)return et;const{values:tt}=decomposeColor(et);return`#${tt.map((rt,nt)=>intToHex(nt===3?Math.round(255*rt):rt)).join("")}`}function hslToRgb(et){et=decomposeColor(et);const{values:tt}=et,rt=tt[0],nt=tt[1]/100,lt=tt[2]/100,ut=nt*Math.min(lt,1-lt),dt=(mt,xt=(mt+rt/30)%12)=>lt-ut*Math.max(Math.min(xt-3,9-xt,1),-1);let pt="rgb";const ht=[Math.round(dt(0)*255),Math.round(dt(8)*255),Math.round(dt(4)*255)];return et.type==="hsla"&&(pt+="a",ht.push(tt[3])),recomposeColor({type:pt,values:ht})}function getLuminance(et){et=decomposeColor(et);let tt=et.type==="hsl"||et.type==="hsla"?decomposeColor(hslToRgb(et)).values:et.values;return tt=tt.map(rt=>(et.type!=="color"&&(rt/=255),rt<=.03928?rt/12.92:((rt+.055)/1.055)**2.4)),Number((.2126*tt[0]+.7152*tt[1]+.0722*tt[2]).toFixed(3))}function getContrastRatio(et,tt){const rt=getLuminance(et),nt=getLuminance(tt);return(Math.max(rt,nt)+.05)/(Math.min(rt,nt)+.05)}function alpha(et,tt){return et=decomposeColor(et),tt=clampWrapper(tt),(et.type==="rgb"||et.type==="hsl")&&(et.type+="a"),et.type==="color"?et.values[3]=`/${tt}`:et.values[3]=tt,recomposeColor(et)}function private_safeAlpha(et,tt,rt){try{return alpha(et,tt)}catch{return et}}function darken(et,tt){if(et=decomposeColor(et),tt=clampWrapper(tt),et.type.indexOf("hsl")!==-1)et.values[2]*=1-tt;else if(et.type.indexOf("rgb")!==-1||et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]*=1-tt;return recomposeColor(et)}function private_safeDarken(et,tt,rt){try{return darken(et,tt)}catch{return et}}function lighten(et,tt){if(et=decomposeColor(et),tt=clampWrapper(tt),et.type.indexOf("hsl")!==-1)et.values[2]+=(100-et.values[2])*tt;else if(et.type.indexOf("rgb")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(255-et.values[rt])*tt;else if(et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(1-et.values[rt])*tt;return recomposeColor(et)}function private_safeLighten(et,tt,rt){try{return lighten(et,tt)}catch{return et}}function emphasize(et,tt=.15){return getLuminance(et)>.5?darken(et,tt):lighten(et,tt)}function private_safeEmphasize(et,tt,rt){try{return emphasize(et,tt)}catch{return et}}function blend(et,tt,rt,nt=1){const lt=(ht,mt)=>Math.round((ht**(1/nt)*(1-rt)+mt**(1/nt)*rt)**nt),ut=decomposeColor(et),dt=decomposeColor(tt),pt=[lt(ut.values[0],dt.values[0]),lt(ut.values[1],dt.values[1]),lt(ut.values[2],dt.values[2])];return recomposeColor({type:"rgb",values:pt})}const common$6={black:"#000",white:"#fff"},grey={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"},purple={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"},red={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"},orange={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"},blue={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"},lightBlue={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"},green={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"},_excluded$2d=["mode","contrastThreshold","tonalOffset"],light={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:common$6.white,default:common$6.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}},dark={text:{primary:common$6.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:common$6.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 addLightOrDark(et,tt,rt,nt){const lt=nt.light||nt,ut=nt.dark||nt*1.5;et[tt]||(et.hasOwnProperty(rt)?et[tt]=et[rt]:tt==="light"?et.light=lighten_1(et.main,lt):tt==="dark"&&(et.dark=darken_1(et.main,ut)))}function getDefaultPrimary(et="light"){return et==="dark"?{main:blue[200],light:blue[50],dark:blue[400]}:{main:blue[700],light:blue[400],dark:blue[800]}}function getDefaultSecondary(et="light"){return et==="dark"?{main:purple[200],light:purple[50],dark:purple[400]}:{main:purple[500],light:purple[300],dark:purple[700]}}function getDefaultError(et="light"){return et==="dark"?{main:red[500],light:red[300],dark:red[700]}:{main:red[700],light:red[400],dark:red[800]}}function getDefaultInfo(et="light"){return et==="dark"?{main:lightBlue[400],light:lightBlue[300],dark:lightBlue[700]}:{main:lightBlue[700],light:lightBlue[500],dark:lightBlue[900]}}function getDefaultSuccess(et="light"){return et==="dark"?{main:green[400],light:green[300],dark:green[700]}:{main:green[800],light:green[500],dark:green[900]}}function getDefaultWarning(et="light"){return et==="dark"?{main:orange[400],light:orange[300],dark:orange[700]}:{main:"#ed6c02",light:orange[500],dark:orange[900]}}function createPalette(et){const{mode:tt="light",contrastThreshold:rt=3,tonalOffset:nt=.2}=et,lt=_objectWithoutPropertiesLoose$d(et,_excluded$2d),ut=et.primary||getDefaultPrimary(tt),dt=et.secondary||getDefaultSecondary(tt),pt=et.error||getDefaultError(tt),ht=et.info||getDefaultInfo(tt),mt=et.success||getDefaultSuccess(tt),xt=et.warning||getDefaultWarning(tt);function Mt(Rt){return getContrastRatio_1(Rt,dark.text.primary)>=rt?dark.text.primary:light.text.primary}const vt=({color:Rt,name:zt,mainShade:Tt=500,lightShade:Ct=300,darkShade:It=700})=>{if(Rt=_extends$j({},Rt),!Rt.main&&Rt[Tt]&&(Rt.main=Rt[Tt]),!Rt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage$1(11,zt?` (${zt})`:"",Tt));if(typeof Rt.main!="string")throw new Error(formatMuiErrorMessage$1(12,zt?` (${zt})`:"",JSON.stringify(Rt.main)));return addLightOrDark(Rt,"light",Ct,nt),addLightOrDark(Rt,"dark",It,nt),Rt.contrastText||(Rt.contrastText=Mt(Rt.main)),Rt},Ot={dark,light};return deepmerge$2(_extends$j({common:_extends$j({},common$6),mode:tt,primary:vt({color:ut,name:"primary"}),secondary:vt({color:dt,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:vt({color:pt,name:"error"}),warning:vt({color:xt,name:"warning"}),info:vt({color:ht,name:"info"}),success:vt({color:mt,name:"success"}),grey,contrastThreshold:rt,getContrastText:Mt,augmentColor:vt,tonalOffset:nt},Ot[tt]),lt)}const _excluded$2c=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round$4(et){return Math.round(et*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(et,tt){const rt=typeof tt=="function"?tt(et):tt,{fontFamily:nt=defaultFontFamily,fontSize:lt=14,fontWeightLight:ut=300,fontWeightRegular:dt=400,fontWeightMedium:pt=500,fontWeightBold:ht=700,htmlFontSize:mt=16,allVariants:xt,pxToRem:Mt}=rt,vt=_objectWithoutPropertiesLoose$d(rt,_excluded$2c),Ot=lt/14,At=Mt||(Tt=>`${Tt/mt*Ot}rem`),Rt=(Tt,Ct,It,Dt,kt)=>_extends$j({fontFamily:nt,fontWeight:Tt,fontSize:At(Ct),lineHeight:It},nt===defaultFontFamily?{letterSpacing:`${round$4(Dt/Ct)}em`}:{},kt,xt),zt={h1:Rt(ut,96,1.167,-1.5),h2:Rt(ut,60,1.2,-.5),h3:Rt(dt,48,1.167,0),h4:Rt(dt,34,1.235,.25),h5:Rt(dt,24,1.334,0),h6:Rt(pt,20,1.6,.15),subtitle1:Rt(dt,16,1.75,.15),subtitle2:Rt(pt,14,1.57,.1),body1:Rt(dt,16,1.5,.15),body2:Rt(dt,14,1.43,.15),button:Rt(pt,14,1.75,.4,caseAllCaps),caption:Rt(dt,12,1.66,.4),overline:Rt(dt,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge$2(_extends$j({htmlFontSize:mt,pxToRem:At,fontFamily:nt,fontSize:lt,fontWeightLight:ut,fontWeightRegular:dt,fontWeightMedium:pt,fontWeightBold:ht},zt),vt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...et){return[`${et[0]}px ${et[1]}px ${et[2]}px ${et[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${et[4]}px ${et[5]}px ${et[6]}px ${et[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${et[8]}px ${et[9]}px ${et[10]}px ${et[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],_excluded$2b=["duration","easing","delay"],easing={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)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(et){return`${Math.round(et)}ms`}function getAutoHeightDuration(et){if(!et)return 0;const tt=et/36;return Math.round((4+15*tt**.25+tt/5)*10)}function createTransitions(et){const tt=_extends$j({},easing,et.easing),rt=_extends$j({},duration,et.duration);return _extends$j({getAutoHeightDuration,create:(lt=["all"],ut={})=>{const{duration:dt=rt.standard,easing:pt=tt.easeInOut,delay:ht=0}=ut;return _objectWithoutPropertiesLoose$d(ut,_excluded$2b),(Array.isArray(lt)?lt:[lt]).map(mt=>`${mt} ${typeof dt=="string"?dt:formatMs(dt)} ${pt} ${typeof ht=="string"?ht:formatMs(ht)}`).join(",")}},et,{easing:tt,duration:rt})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_excluded$2a=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(et={},...tt){const{mixins:rt={},palette:nt={},transitions:lt={},typography:ut={}}=et,dt=_objectWithoutPropertiesLoose$d(et,_excluded$2a);if(et.vars)throw new Error(formatMuiErrorMessage$1(18));const pt=createPalette(nt),ht=createTheme$2(et);let mt=deepmerge$2(ht,{mixins:createMixins(ht.breakpoints,rt),palette:pt,shadows:shadows.slice(),typography:createTypography(pt,ut),transitions:createTransitions(lt),zIndex:_extends$j({},zIndex)});return mt=deepmerge$2(mt,dt),mt=tt.reduce((xt,Mt)=>deepmerge$2(xt,Mt),mt),mt.unstable_sxConfig=_extends$j({},defaultSxConfig,dt==null?void 0:dt.unstable_sxConfig),mt.unstable_sx=function(Mt){return styleFunctionSx$1({sx:Mt,theme:this})},mt}const defaultTheme$4=createTheme(),THEME_ID="$$material";function slotShouldForwardProp(et){return et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"}const rootShouldForwardProp$1=et=>slotShouldForwardProp(et)&&et!=="classes",styled=_default$5({themeId:THEME_ID,defaultTheme:defaultTheme$4,rootShouldForwardProp:rootShouldForwardProp$1});function getCircularProgressUtilityClass(et){return generateUtilityClass("MuiCircularProgress",et)}generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _excluded$29=["className","color","disableShrink","size","style","thickness","value","variant"];let _$8=et=>et,_t$2,_t2$2,_t3$2,_t4$2;const SIZE=44,circularRotateKeyframe=keyframes$1(_t$2||(_t$2=_$8`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),circularDashKeyframe=keyframes$1(_t2$2||(_t2$2=_$8`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),useUtilityClasses$1C=et=>{const{classes:tt,variant:rt,color:nt,disableShrink:lt}=et,ut={root:["root",rt,`color${capitalize$3(nt)}`],svg:["svg"],circle:["circle",`circle${capitalize$3(rt)}`,lt&&"circleDisableShrink"]};return composeClasses(ut,getCircularProgressUtilityClass,tt)},CircularProgressRoot=styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`color${capitalize$3(rt.color)}`]]}})(({ownerState:et,theme:tt})=>_extends$j({display:"inline-block"},et.variant==="determinate"&&{transition:tt.transitions.create("transform")},et.color!=="inherit"&&{color:(tt.vars||tt).palette[et.color].main}),({ownerState:et})=>et.variant==="indeterminate"&&css$4(_t3$2||(_t3$2=_$8`
      animation: ${0} 1.4s linear infinite;
    `),circularRotateKeyframe)),CircularProgressSVG=styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(et,tt)=>tt.svg})({display:"block"}),CircularProgressCircle=styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.circle,tt[`circle${capitalize$3(rt.variant)}`],rt.disableShrink&&tt.circleDisableShrink]}})(({ownerState:et,theme:tt})=>_extends$j({stroke:"currentColor"},et.variant==="determinate"&&{transition:tt.transitions.create("stroke-dashoffset")},et.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:et})=>et.variant==="indeterminate"&&!et.disableShrink&&css$4(_t4$2||(_t4$2=_$8`
      animation: ${0} 1.4s ease-in-out infinite;
    `),circularDashKeyframe)),CircularProgress=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiCircularProgress"}),{className:lt,color:ut="primary",disableShrink:dt=!1,size:pt=40,style:ht,thickness:mt=3.6,value:xt=0,variant:Mt="indeterminate"}=nt,vt=_objectWithoutPropertiesLoose$d(nt,_excluded$29),Ot=_extends$j({},nt,{color:ut,disableShrink:dt,size:pt,thickness:mt,value:xt,variant:Mt}),At=useUtilityClasses$1C(Ot),Rt={},zt={},Tt={};if(Mt==="determinate"){const Ct=2*Math.PI*((SIZE-mt)/2);Rt.strokeDasharray=Ct.toFixed(3),Tt["aria-valuenow"]=Math.round(xt),Rt.strokeDashoffset=`${((100-xt)/100*Ct).toFixed(3)}px`,zt.transform="rotate(-90deg)"}return jsxRuntimeExports.jsx(CircularProgressRoot,_extends$j({className:clsx(At.root,lt),style:_extends$j({width:pt,height:pt},zt,ht),ownerState:Ot,ref:rt,role:"progressbar"},Tt,vt,{children:jsxRuntimeExports.jsx(CircularProgressSVG,{className:At.svg,ownerState:Ot,viewBox:`${SIZE/2} ${SIZE/2} ${SIZE} ${SIZE}`,children:jsxRuntimeExports.jsx(CircularProgressCircle,{className:At.circle,style:Rt,ownerState:Ot,cx:SIZE,cy:SIZE,r:(SIZE-mt)/2,fill:"none",strokeWidth:mt})})}))});function useTheme$1(){const et=useTheme$3(defaultTheme$4);return et[THEME_ID]||et}function useThemeProps({props:et,name:tt}){return useThemeProps$1({props:et,name:tt,defaultTheme:defaultTheme$4,themeId:THEME_ID})}const _excluded$28=["theme"];function ThemeProvider(et){let{theme:tt}=et,rt=_objectWithoutPropertiesLoose$d(et,_excluded$28);const nt=tt[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends$j({},rt,{themeId:nt?THEME_ID:void 0,theme:nt||tt}))}const getOverlayAlpha=et=>{let tt;return et<1?tt=5.11916*et**2:tt=4.5*Math.log(et+1)+2,(tt/100).toFixed(2)};function getSvgIconUtilityClass(et){return generateUtilityClass("MuiSvgIcon",et)}generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _excluded$27=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],useUtilityClasses$1B=et=>{const{color:tt,fontSize:rt,classes:nt}=et,lt={root:["root",tt!=="inherit"&&`color${capitalize$3(tt)}`,`fontSize${capitalize$3(rt)}`]};return composeClasses(lt,getSvgIconUtilityClass,nt)},SvgIconRoot=styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.color!=="inherit"&&tt[`color${capitalize$3(rt.color)}`],tt[`fontSize${capitalize$3(rt.fontSize)}`]]}})(({theme:et,ownerState:tt})=>{var rt,nt,lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:tt.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(rt=et.transitions)==null||(nt=rt.create)==null?void 0:nt.call(rt,"fill",{duration:(lt=et.transitions)==null||(lt=lt.duration)==null?void 0:lt.shorter}),fontSize:{inherit:"inherit",small:((ut=et.typography)==null||(dt=ut.pxToRem)==null?void 0:dt.call(ut,20))||"1.25rem",medium:((pt=et.typography)==null||(ht=pt.pxToRem)==null?void 0:ht.call(pt,24))||"1.5rem",large:((mt=et.typography)==null||(xt=mt.pxToRem)==null?void 0:xt.call(mt,35))||"2.1875rem"}[tt.fontSize],color:(Mt=(vt=(et.vars||et).palette)==null||(vt=vt[tt.color])==null?void 0:vt.main)!=null?Mt:{action:(Ot=(et.vars||et).palette)==null||(Ot=Ot.action)==null?void 0:Ot.active,disabled:(At=(et.vars||et).palette)==null||(At=At.action)==null?void 0:At.disabled,inherit:void 0}[tt.color]}}),SvgIcon=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiSvgIcon"}),{children:lt,className:ut,color:dt="inherit",component:pt="svg",fontSize:ht="medium",htmlColor:mt,inheritViewBox:xt=!1,titleAccess:Mt,viewBox:vt="0 0 24 24"}=nt,Ot=_objectWithoutPropertiesLoose$d(nt,_excluded$27),At=reactExports.isValidElement(lt)&&lt.type==="svg",Rt=_extends$j({},nt,{color:dt,component:pt,fontSize:ht,instanceFontSize:tt.fontSize,inheritViewBox:xt,viewBox:vt,hasSvgAsChild:At}),zt={};xt||(zt.viewBox=vt);const Tt=useUtilityClasses$1B(Rt);return jsxRuntimeExports.jsxs(SvgIconRoot,_extends$j({as:pt,className:clsx(Tt.root,ut),focusable:"false",color:mt,"aria-hidden":Mt?void 0:!0,role:Mt?"img":void 0,ref:rt},zt,Ot,At&&lt.props,{ownerState:Rt,children:[At?lt.props.children:lt,Mt?jsxRuntimeExports.jsx("title",{children:Mt}):null]}))});SvgIcon.muiName="SvgIcon";function createSvgIcon$1(et,tt){function rt(nt,lt){return jsxRuntimeExports.jsx(SvgIcon,_extends$j({"data-testid":`${tt}Icon`,ref:lt},nt,{children:et}))}return rt.muiName=SvgIcon.muiName,reactExports.memo(reactExports.forwardRef(rt))}const unstable_ClassNameGenerator={configure:et=>{ClassNameGenerator.configure(et)}},utils$r=Object.freeze(Object.defineProperty({__proto__:null,capitalize:capitalize$3,createChainedFunction,createSvgIcon:createSvgIcon$1,debounce:debounce$4,deprecatedPropType,isMuiElement,ownerDocument,ownerWindow,requirePropFactory,setRef,unstable_ClassNameGenerator,unstable_useEnhancedEffect:useEnhancedEffect,unstable_useId:useId,unsupportedProp,useControlled,useEventCallback:useEventCallback$1,useForkRef,useIsFocusVisible},Symbol.toStringTag,{value:"Module"}));function hasClass(et,tt){return et.classList?!!tt&&et.classList.contains(tt):(" "+(et.className.baseVal||et.className)+" ").indexOf(" "+tt+" ")!==-1}function addClass(et,tt){et.classList?et.classList.add(tt):hasClass(et,tt)||(typeof et.className=="string"?et.className=et.className+" "+tt:et.setAttribute("class",(et.className&&et.className.baseVal||"")+" "+tt))}function replaceClassName(et,tt){return et.replace(new RegExp("(^|\\s)"+tt+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(et,tt){et.classList?et.classList.remove(tt):typeof et.className=="string"?et.className=replaceClassName(et.className,tt):et.setAttribute("class",replaceClassName(et.className&&et.className.baseVal||"",tt))}const config$1={disabled:!1},TransitionGroupContext=React$4.createContext(null);var forceReflow=function(tt){return tt.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(et){_inheritsLoose$3(tt,et);function tt(nt,lt){var ut;ut=et.call(this,nt,lt)||this;var dt=lt,pt=dt&&!dt.isMounting?nt.enter:nt.appear,ht;return ut.appearStatus=null,nt.in?pt?(ht=EXITED,ut.appearStatus=ENTERING):ht=ENTERED:nt.unmountOnExit||nt.mountOnEnter?ht=UNMOUNTED:ht=EXITED,ut.state={status:ht},ut.nextCallback=null,ut}tt.getDerivedStateFromProps=function(lt,ut){var dt=lt.in;return dt&&ut.status===UNMOUNTED?{status:EXITED}:null};var rt=tt.prototype;return rt.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},rt.componentDidUpdate=function(lt){var ut=null;if(lt!==this.props){var dt=this.state.status;this.props.in?dt!==ENTERING&&dt!==ENTERED&&(ut=ENTERING):(dt===ENTERING||dt===ENTERED)&&(ut=EXITING)}this.updateStatus(!1,ut)},rt.componentWillUnmount=function(){this.cancelNextCallback()},rt.getTimeouts=function(){var lt=this.props.timeout,ut,dt,pt;return ut=dt=pt=lt,lt!=null&&typeof lt!="number"&&(ut=lt.exit,dt=lt.enter,pt=lt.appear!==void 0?lt.appear:dt),{exit:ut,enter:dt,appear:pt}},rt.updateStatus=function(lt,ut){if(lt===void 0&&(lt=!1),ut!==null)if(this.cancelNextCallback(),ut===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var dt=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);dt&&forceReflow(dt)}this.performEnter(lt)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},rt.performEnter=function(lt){var ut=this,dt=this.props.enter,pt=this.context?this.context.isMounting:lt,ht=this.props.nodeRef?[pt]:[ReactDOM.findDOMNode(this),pt],mt=ht[0],xt=ht[1],Mt=this.getTimeouts(),vt=pt?Mt.appear:Mt.enter;if(!lt&&!dt||config$1.disabled){this.safeSetState({status:ENTERED},function(){ut.props.onEntered(mt)});return}this.props.onEnter(mt,xt),this.safeSetState({status:ENTERING},function(){ut.props.onEntering(mt,xt),ut.onTransitionEnd(vt,function(){ut.safeSetState({status:ENTERED},function(){ut.props.onEntered(mt,xt)})})})},rt.performExit=function(){var lt=this,ut=this.props.exit,dt=this.getTimeouts(),pt=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!ut||config$1.disabled){this.safeSetState({status:EXITED},function(){lt.props.onExited(pt)});return}this.props.onExit(pt),this.safeSetState({status:EXITING},function(){lt.props.onExiting(pt),lt.onTransitionEnd(dt.exit,function(){lt.safeSetState({status:EXITED},function(){lt.props.onExited(pt)})})})},rt.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},rt.safeSetState=function(lt,ut){ut=this.setNextCallback(ut),this.setState(lt,ut)},rt.setNextCallback=function(lt){var ut=this,dt=!0;return this.nextCallback=function(pt){dt&&(dt=!1,ut.nextCallback=null,lt(pt))},this.nextCallback.cancel=function(){dt=!1},this.nextCallback},rt.onTransitionEnd=function(lt,ut){this.setNextCallback(ut);var dt=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),pt=lt==null&&!this.props.addEndListener;if(!dt||pt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ht=this.props.nodeRef?[this.nextCallback]:[dt,this.nextCallback],mt=ht[0],xt=ht[1];this.props.addEndListener(mt,xt)}lt!=null&&setTimeout(this.nextCallback,lt)},rt.render=function(){var lt=this.state.status;if(lt===UNMOUNTED)return null;var ut=this.props,dt=ut.children;ut.in,ut.mountOnEnter,ut.unmountOnExit,ut.appear,ut.enter,ut.exit,ut.timeout,ut.addEndListener,ut.onEnter,ut.onEntering,ut.onEntered,ut.onExit,ut.onExiting,ut.onExited,ut.nodeRef;var pt=_objectWithoutPropertiesLoose$d(ut,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React$4.createElement(TransitionGroupContext.Provider,{value:null},typeof dt=="function"?dt(lt,pt):React$4.cloneElement(React$4.Children.only(dt),pt))},tt}(React$4.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$8(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$8,onEntering:noop$8,onEntered:noop$8,onExit:noop$8,onExiting:noop$8,onExited:noop$8};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var _addClass=function(tt,rt){return tt&&rt&&rt.split(" ").forEach(function(nt){return addClass(tt,nt)})},removeClass=function(tt,rt){return tt&&rt&&rt.split(" ").forEach(function(nt){return removeClass$1(tt,nt)})},CSSTransition=function(et){_inheritsLoose$3(tt,et);function tt(){for(var nt,lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=et.call.apply(et,[this].concat(ut))||this,nt.appliedClasses={appear:{},enter:{},exit:{}},nt.onEnter=function(pt,ht){var mt=nt.resolveArguments(pt,ht),xt=mt[0],Mt=mt[1];nt.removeClasses(xt,"exit"),nt.addClass(xt,Mt?"appear":"enter","base"),nt.props.onEnter&&nt.props.onEnter(pt,ht)},nt.onEntering=function(pt,ht){var mt=nt.resolveArguments(pt,ht),xt=mt[0],Mt=mt[1],vt=Mt?"appear":"enter";nt.addClass(xt,vt,"active"),nt.props.onEntering&&nt.props.onEntering(pt,ht)},nt.onEntered=function(pt,ht){var mt=nt.resolveArguments(pt,ht),xt=mt[0],Mt=mt[1],vt=Mt?"appear":"enter";nt.removeClasses(xt,vt),nt.addClass(xt,vt,"done"),nt.props.onEntered&&nt.props.onEntered(pt,ht)},nt.onExit=function(pt){var ht=nt.resolveArguments(pt),mt=ht[0];nt.removeClasses(mt,"appear"),nt.removeClasses(mt,"enter"),nt.addClass(mt,"exit","base"),nt.props.onExit&&nt.props.onExit(pt)},nt.onExiting=function(pt){var ht=nt.resolveArguments(pt),mt=ht[0];nt.addClass(mt,"exit","active"),nt.props.onExiting&&nt.props.onExiting(pt)},nt.onExited=function(pt){var ht=nt.resolveArguments(pt),mt=ht[0];nt.removeClasses(mt,"exit"),nt.addClass(mt,"exit","done"),nt.props.onExited&&nt.props.onExited(pt)},nt.resolveArguments=function(pt,ht){return nt.props.nodeRef?[nt.props.nodeRef.current,pt]:[pt,ht]},nt.getClassNames=function(pt){var ht=nt.props.classNames,mt=typeof ht=="string",xt=mt&&ht?ht+"-":"",Mt=mt?""+xt+pt:ht[pt],vt=mt?Mt+"-active":ht[pt+"Active"],Ot=mt?Mt+"-done":ht[pt+"Done"];return{baseClassName:Mt,activeClassName:vt,doneClassName:Ot}},nt}var rt=tt.prototype;return rt.addClass=function(lt,ut,dt){var pt=this.getClassNames(ut)[dt+"ClassName"],ht=this.getClassNames("enter"),mt=ht.doneClassName;ut==="appear"&&dt==="done"&&mt&&(pt+=" "+mt),dt==="active"&&lt&&forceReflow(lt),pt&&(this.appliedClasses[ut][dt]=pt,_addClass(lt,pt))},rt.removeClasses=function(lt,ut){var dt=this.appliedClasses[ut],pt=dt.base,ht=dt.active,mt=dt.done;this.appliedClasses[ut]={},pt&&removeClass(lt,pt),ht&&removeClass(lt,ht),mt&&removeClass(lt,mt)},rt.render=function(){var lt=this.props;lt.classNames;var ut=_objectWithoutPropertiesLoose$d(lt,["classNames"]);return React$4.createElement(Transition,_extends$j({},ut,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},tt}(React$4.Component);CSSTransition.defaultProps={classNames:""};CSSTransition.propTypes={};function _assertThisInitialized$4(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function getChildMapping(et,tt){var rt=function(ut){return tt&&reactExports.isValidElement(ut)?tt(ut):ut},nt=Object.create(null);return et&&reactExports.Children.map(et,function(lt){return lt}).forEach(function(lt){nt[lt.key]=rt(lt)}),nt}function mergeChildMappings(et,tt){et=et||{},tt=tt||{};function rt(xt){return xt in tt?tt[xt]:et[xt]}var nt=Object.create(null),lt=[];for(var ut in et)ut in tt?lt.length&&(nt[ut]=lt,lt=[]):lt.push(ut);var dt,pt={};for(var ht in tt){if(nt[ht])for(dt=0;dt<nt[ht].length;dt++){var mt=nt[ht][dt];pt[nt[ht][dt]]=rt(mt)}pt[ht]=rt(ht)}for(dt=0;dt<lt.length;dt++)pt[lt[dt]]=rt(lt[dt]);return pt}function getProp(et,tt,rt){return rt[tt]!=null?rt[tt]:et.props[tt]}function getInitialChildMapping(et,tt){return getChildMapping(et.children,function(rt){return reactExports.cloneElement(rt,{onExited:tt.bind(null,rt),in:!0,appear:getProp(rt,"appear",et),enter:getProp(rt,"enter",et),exit:getProp(rt,"exit",et)})})}function getNextChildMapping(et,tt,rt){var nt=getChildMapping(et.children),lt=mergeChildMappings(tt,nt);return Object.keys(lt).forEach(function(ut){var dt=lt[ut];if(reactExports.isValidElement(dt)){var pt=ut in tt,ht=ut in nt,mt=tt[ut],xt=reactExports.isValidElement(mt)&&!mt.props.in;ht&&(!pt||xt)?lt[ut]=reactExports.cloneElement(dt,{onExited:rt.bind(null,dt),in:!0,exit:getProp(dt,"exit",et),enter:getProp(dt,"enter",et)}):!ht&&pt&&!xt?lt[ut]=reactExports.cloneElement(dt,{in:!1}):ht&&pt&&reactExports.isValidElement(mt)&&(lt[ut]=reactExports.cloneElement(dt,{onExited:rt.bind(null,dt),in:mt.props.in,exit:getProp(dt,"exit",et),enter:getProp(dt,"enter",et)}))}}),lt}var values$1=Object.values||function(et){return Object.keys(et).map(function(tt){return et[tt]})},defaultProps$6={component:"div",childFactory:function(tt){return tt}},TransitionGroup=function(et){_inheritsLoose$3(tt,et);function tt(nt,lt){var ut;ut=et.call(this,nt,lt)||this;var dt=ut.handleExited.bind(_assertThisInitialized$4(ut));return ut.state={contextValue:{isMounting:!0},handleExited:dt,firstRender:!0},ut}var rt=tt.prototype;return rt.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},rt.componentWillUnmount=function(){this.mounted=!1},tt.getDerivedStateFromProps=function(lt,ut){var dt=ut.children,pt=ut.handleExited,ht=ut.firstRender;return{children:ht?getInitialChildMapping(lt,pt):getNextChildMapping(lt,dt,pt),firstRender:!1}},rt.handleExited=function(lt,ut){var dt=getChildMapping(this.props.children);lt.key in dt||(lt.props.onExited&&lt.props.onExited(ut),this.mounted&&this.setState(function(pt){var ht=_extends$j({},pt.children);return delete ht[lt.key],{children:ht}}))},rt.render=function(){var lt=this.props,ut=lt.component,dt=lt.childFactory,pt=_objectWithoutPropertiesLoose$d(lt,["component","childFactory"]),ht=this.state.contextValue,mt=values$1(this.state.children).map(dt);return delete pt.appear,delete pt.enter,delete pt.exit,ut===null?React$4.createElement(TransitionGroupContext.Provider,{value:ht},mt):React$4.createElement(TransitionGroupContext.Provider,{value:ht},React$4.createElement(ut,pt,mt))},tt}(React$4.Component);TransitionGroup.propTypes={};TransitionGroup.defaultProps=defaultProps$6;const reflow=et=>et.scrollTop;function getTransitionProps(et,tt){var rt,nt;const{timeout:lt,easing:ut,style:dt={}}=et;return{duration:(rt=dt.transitionDuration)!=null?rt:typeof lt=="number"?lt:lt[tt.mode]||0,easing:(nt=dt.transitionTimingFunction)!=null?nt:typeof ut=="object"?ut[tt.mode]:ut,delay:dt.transitionDelay}}function getCollapseUtilityClass(et){return generateUtilityClass("MuiCollapse",et)}generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _excluded$26=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],useUtilityClasses$1A=et=>{const{orientation:tt,classes:rt}=et,nt={root:["root",`${tt}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${tt}`],wrapperInner:["wrapperInner",`${tt}`]};return composeClasses(nt,getCollapseUtilityClass,rt)},CollapseRoot=styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.orientation],rt.state==="entered"&&tt.entered,rt.state==="exited"&&!rt.in&&rt.collapsedSize==="0px"&&tt.hidden]}})(({theme:et,ownerState:tt})=>_extends$j({height:0,overflow:"hidden",transition:et.transitions.create("height")},tt.orientation==="horizontal"&&{height:"auto",width:0,transition:et.transitions.create("width")},tt.state==="entered"&&_extends$j({height:"auto",overflow:"visible"},tt.orientation==="horizontal"&&{width:"auto"}),tt.state==="exited"&&!tt.in&&tt.collapsedSize==="0px"&&{visibility:"hidden"})),CollapseWrapper=styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(et,tt)=>tt.wrapper})(({ownerState:et})=>_extends$j({display:"flex",width:"100%"},et.orientation==="horizontal"&&{width:"auto",height:"100%"})),CollapseWrapperInner=styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(et,tt)=>tt.wrapperInner})(({ownerState:et})=>_extends$j({width:"100%"},et.orientation==="horizontal"&&{width:"auto",height:"100%"})),Collapse=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiCollapse"}),{addEndListener:lt,children:ut,className:dt,collapsedSize:pt="0px",component:ht,easing:mt,in:xt,onEnter:Mt,onEntered:vt,onEntering:Ot,onExit:At,onExited:Rt,onExiting:zt,orientation:Tt="vertical",style:Ct,timeout:It=duration.standard,TransitionComponent:Dt=Transition}=nt,kt=_objectWithoutPropertiesLoose$d(nt,_excluded$26),qt=_extends$j({},nt,{orientation:Tt,collapsedSize:pt}),Nt=useUtilityClasses$1A(qt),Yt=useTheme$1(),Kt=useTimeout(),Jt=reactExports.useRef(null),Qt=reactExports.useRef(),Bt=typeof pt=="number"?`${pt}px`:pt,Ft=Tt==="horizontal",$t=Ft?"width":"height",jt=reactExports.useRef(null),Wt=useForkRef(rt,jt),Ut=rr=>cr=>{if(rr){const ir=jt.current;cr===void 0?rr(ir):rr(ir,cr)}},Vt=()=>Jt.current?Jt.current[Ft?"clientWidth":"clientHeight"]:0,Ht=Ut((rr,cr)=>{Jt.current&&Ft&&(Jt.current.style.position="absolute"),rr.style[$t]=Bt,Mt&&Mt(rr,cr)}),Gt=Ut((rr,cr)=>{const ir=Vt();Jt.current&&Ft&&(Jt.current.style.position="");const{duration:dr,easing:gr}=getTransitionProps({style:Ct,timeout:It,easing:mt},{mode:"enter"});if(It==="auto"){const br=Yt.transitions.getAutoHeightDuration(ir);rr.style.transitionDuration=`${br}ms`,Qt.current=br}else rr.style.transitionDuration=typeof dr=="string"?dr:`${dr}ms`;rr.style[$t]=`${ir}px`,rr.style.transitionTimingFunction=gr,Ot&&Ot(rr,cr)}),Zt=Ut((rr,cr)=>{rr.style[$t]="auto",vt&&vt(rr,cr)}),Xt=Ut(rr=>{rr.style[$t]=`${Vt()}px`,At&&At(rr)}),er=Ut(Rt),nr=Ut(rr=>{const cr=Vt(),{duration:ir,easing:dr}=getTransitionProps({style:Ct,timeout:It,easing:mt},{mode:"exit"});if(It==="auto"){const gr=Yt.transitions.getAutoHeightDuration(cr);rr.style.transitionDuration=`${gr}ms`,Qt.current=gr}else rr.style.transitionDuration=typeof ir=="string"?ir:`${ir}ms`;rr.style[$t]=Bt,rr.style.transitionTimingFunction=dr,zt&&zt(rr)}),or=rr=>{It==="auto"&&Kt.start(Qt.current||0,rr),lt&&lt(jt.current,rr)};return jsxRuntimeExports.jsx(Dt,_extends$j({in:xt,onEnter:Ht,onEntered:Zt,onEntering:Gt,onExit:Xt,onExited:er,onExiting:nr,addEndListener:or,nodeRef:jt,timeout:It==="auto"?null:It},kt,{children:(rr,cr)=>jsxRuntimeExports.jsx(CollapseRoot,_extends$j({as:ht,className:clsx(Nt.root,dt,{entered:Nt.entered,exited:!xt&&Bt==="0px"&&Nt.hidden}[rr]),style:_extends$j({[Ft?"minWidth":"minHeight"]:Bt},Ct),ref:Wt},cr,{ownerState:_extends$j({},qt,{state:rr}),children:jsxRuntimeExports.jsx(CollapseWrapper,{ownerState:_extends$j({},qt,{state:rr}),className:Nt.wrapper,ref:Jt,children:jsxRuntimeExports.jsx(CollapseWrapperInner,{ownerState:_extends$j({},qt,{state:rr}),className:Nt.wrapperInner,children:ut})})}))}))});Collapse.muiSupportAuto=!0;function getPaperUtilityClass(et){return generateUtilityClass("MuiPaper",et)}generateUtilityClasses("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 _excluded$25=["className","component","elevation","square","variant"],useUtilityClasses$1z=et=>{const{square:tt,elevation:rt,variant:nt,classes:lt}=et,ut={root:["root",nt,!tt&&"rounded",nt==="elevation"&&`elevation${rt}`]};return composeClasses(ut,getPaperUtilityClass,lt)},PaperRoot=styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],!rt.square&&tt.rounded,rt.variant==="elevation"&&tt[`elevation${rt.elevation}`]]}})(({theme:et,ownerState:tt})=>{var rt;return _extends$j({backgroundColor:(et.vars||et).palette.background.paper,color:(et.vars||et).palette.text.primary,transition:et.transitions.create("box-shadow")},!tt.square&&{borderRadius:et.shape.borderRadius},tt.variant==="outlined"&&{border:`1px solid ${(et.vars||et).palette.divider}`},tt.variant==="elevation"&&_extends$j({boxShadow:(et.vars||et).shadows[tt.elevation]},!et.vars&&et.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${alpha_1("#fff",getOverlayAlpha(tt.elevation))}, ${alpha_1("#fff",getOverlayAlpha(tt.elevation))})`},et.vars&&{backgroundImage:(rt=et.vars.overlays)==null?void 0:rt[tt.elevation]}))}),Paper=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiPaper"}),{className:lt,component:ut="div",elevation:dt=1,square:pt=!1,variant:ht="elevation"}=nt,mt=_objectWithoutPropertiesLoose$d(nt,_excluded$25),xt=_extends$j({},nt,{component:ut,elevation:dt,square:pt,variant:ht}),Mt=useUtilityClasses$1z(xt);return jsxRuntimeExports.jsx(PaperRoot,_extends$j({as:ut,ownerState:xt,className:clsx(Mt.root,lt),ref:rt},mt))}),AccordionContext=reactExports.createContext({}),_excluded$24=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],_excluded2$j=["component","slots","slotProps"],_excluded3$7=["component"];function useSlot(et,tt){const{className:rt,elementType:nt,ownerState:lt,externalForwardedProps:ut,getSlotOwnerState:dt,internalForwardedProps:pt}=tt,ht=_objectWithoutPropertiesLoose$d(tt,_excluded$24),{component:mt,slots:xt={[et]:void 0},slotProps:Mt={[et]:void 0}}=ut,vt=_objectWithoutPropertiesLoose$d(ut,_excluded2$j),Ot=xt[et]||nt,At=resolveComponentProps(Mt[et],lt),Rt=mergeSlotProps(_extends$j({className:rt},ht,{externalForwardedProps:et==="root"?vt:void 0,externalSlotProps:At})),{props:{component:zt},internalRef:Tt}=Rt,Ct=_objectWithoutPropertiesLoose$d(Rt.props,_excluded3$7),It=useForkRef(Tt,At==null?void 0:At.ref,tt.ref),Dt=dt?dt(Ct):{},kt=_extends$j({},lt,Dt),qt=et==="root"?zt||mt:zt,Nt=appendOwnerState(Ot,_extends$j({},et==="root"&&!mt&&!xt[et]&&pt,et!=="root"&&!xt[et]&&pt,Ct,qt&&{as:qt},{ref:It}),kt);return Object.keys(Dt).forEach(Yt=>{delete Nt[Yt]}),[Ot,Nt]}function getAccordionUtilityClass(et){return generateUtilityClass("MuiAccordion",et)}const accordionClasses=generateUtilityClasses("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),_excluded$23=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],useUtilityClasses$1y=et=>{const{classes:tt,square:rt,expanded:nt,disabled:lt,disableGutters:ut}=et;return composeClasses({root:["root",!rt&&"rounded",nt&&"expanded",lt&&"disabled",!ut&&"gutters"],region:["region"]},getAccordionUtilityClass,tt)},AccordionRoot=styled(Paper,{name:"MuiAccordion",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[{[`& .${accordionClasses.region}`]:tt.region},tt.root,!rt.square&&tt.rounded,!rt.disableGutters&&tt.gutters]}})(({theme:et})=>{const tt={duration:et.transitions.duration.shortest};return{position:"relative",transition:et.transitions.create(["margin"],tt),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(et.vars||et).palette.divider,transition:et.transitions.create(["opacity","background-color"],tt)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${accordionClasses.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${accordionClasses.disabled}`]:{backgroundColor:(et.vars||et).palette.action.disabledBackground}}},({theme:et})=>({variants:[{props:tt=>!tt.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(et.vars||et).shape.borderRadius,borderTopRightRadius:(et.vars||et).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(et.vars||et).shape.borderRadius,borderBottomRightRadius:(et.vars||et).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:tt=>!tt.disableGutters,style:{[`&.${accordionClasses.expanded}`]:{margin:"16px 0"}}}]})),Accordion$2=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiAccordion"}),{children:lt,className:ut,defaultExpanded:dt=!1,disabled:pt=!1,disableGutters:ht=!1,expanded:mt,onChange:xt,square:Mt=!1,slots:vt={},slotProps:Ot={},TransitionComponent:At,TransitionProps:Rt}=nt,zt=_objectWithoutPropertiesLoose$d(nt,_excluded$23),[Tt,Ct]=useControlled({controlled:mt,default:dt,name:"Accordion",state:"expanded"}),It=reactExports.useCallback(Ft=>{Ct(!Tt),xt&&xt(Ft,!Tt)},[Tt,xt,Ct]),[Dt,...kt]=reactExports.Children.toArray(lt),qt=reactExports.useMemo(()=>({expanded:Tt,disabled:pt,disableGutters:ht,toggle:It}),[Tt,pt,ht,It]),Nt=_extends$j({},nt,{square:Mt,disabled:pt,disableGutters:ht,expanded:Tt}),Yt=useUtilityClasses$1y(Nt),Kt=_extends$j({transition:At},vt),Jt=_extends$j({transition:Rt},Ot),[Qt,Bt]=useSlot("transition",{elementType:Collapse,externalForwardedProps:{slots:Kt,slotProps:Jt},ownerState:Nt});return jsxRuntimeExports.jsxs(AccordionRoot,_extends$j({className:clsx(Yt.root,ut),ref:rt,ownerState:Nt,square:Mt},zt,{children:[jsxRuntimeExports.jsx(AccordionContext.Provider,{value:qt,children:Dt}),jsxRuntimeExports.jsx(Qt,_extends$j({in:Tt,timeout:"auto"},Bt,{children:jsxRuntimeExports.jsx("div",{"aria-labelledby":Dt.props.id,id:Dt.props["aria-controls"],role:"region",className:Yt.region,children:kt})}))]}))});function getAccordionDetailsUtilityClass(et){return generateUtilityClass("MuiAccordionDetails",et)}generateUtilityClasses("MuiAccordionDetails",["root"]);const _excluded$22=["className"],useUtilityClasses$1x=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getAccordionDetailsUtilityClass,tt)},AccordionDetailsRoot=styled("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(et,tt)=>tt.root})(({theme:et})=>({padding:et.spacing(1,2,2)})),AccordionDetails=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiAccordionDetails"}),{className:lt}=nt,ut=_objectWithoutPropertiesLoose$d(nt,_excluded$22),dt=nt,pt=useUtilityClasses$1x(dt);return jsxRuntimeExports.jsx(AccordionDetailsRoot,_extends$j({className:clsx(pt.root,lt),ref:rt,ownerState:dt},ut))});function Ripple(et){const{className:tt,classes:rt,pulsate:nt=!1,rippleX:lt,rippleY:ut,rippleSize:dt,in:pt,onExited:ht,timeout:mt}=et,[xt,Mt]=reactExports.useState(!1),vt=clsx(tt,rt.ripple,rt.rippleVisible,nt&&rt.ripplePulsate),Ot={width:dt,height:dt,top:-(dt/2)+ut,left:-(dt/2)+lt},At=clsx(rt.child,xt&&rt.childLeaving,nt&&rt.childPulsate);return!pt&&!xt&&Mt(!0),reactExports.useEffect(()=>{if(!pt&&ht!=null){const Rt=setTimeout(ht,mt);return()=>{clearTimeout(Rt)}}},[ht,pt,mt]),jsxRuntimeExports.jsx("span",{className:vt,style:Ot,children:jsxRuntimeExports.jsx("span",{className:At})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_excluded$21=["center","classes","className"];let _$7=et=>et,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes$1(_t$1||(_t$1=_$7`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),exitKeyframe=keyframes$1(_t2$1||(_t2$1=_$7`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),pulsateKeyframe=keyframes$1(_t3$1||(_t3$1=_$7`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),TouchRippleRoot=styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TouchRippleRipple=styled(Ripple,{name:"MuiTouchRipple",slot:"Ripple"})(_t4$1||(_t4$1=_$7`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),touchRippleClasses.rippleVisible,enterKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses.ripplePulsate,({theme:et})=>et.transitions.duration.shorter,touchRippleClasses.child,touchRippleClasses.childLeaving,exitKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses.childPulsate,pulsateKeyframe,({theme:et})=>et.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTouchRipple"}),{center:lt=!1,classes:ut={},className:dt}=nt,pt=_objectWithoutPropertiesLoose$d(nt,_excluded$21),[ht,mt]=reactExports.useState([]),xt=reactExports.useRef(0),Mt=reactExports.useRef(null);reactExports.useEffect(()=>{Mt.current&&(Mt.current(),Mt.current=null)},[ht]);const vt=reactExports.useRef(!1),Ot=useTimeout(),At=reactExports.useRef(null),Rt=reactExports.useRef(null),zt=reactExports.useCallback(Dt=>{const{pulsate:kt,rippleX:qt,rippleY:Nt,rippleSize:Yt,cb:Kt}=Dt;mt(Jt=>[...Jt,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx(ut.ripple,touchRippleClasses.ripple),rippleVisible:clsx(ut.rippleVisible,touchRippleClasses.rippleVisible),ripplePulsate:clsx(ut.ripplePulsate,touchRippleClasses.ripplePulsate),child:clsx(ut.child,touchRippleClasses.child),childLeaving:clsx(ut.childLeaving,touchRippleClasses.childLeaving),childPulsate:clsx(ut.childPulsate,touchRippleClasses.childPulsate)},timeout:DURATION,pulsate:kt,rippleX:qt,rippleY:Nt,rippleSize:Yt},xt.current)]),xt.current+=1,Mt.current=Kt},[ut]),Tt=reactExports.useCallback((Dt={},kt={},qt=()=>{})=>{const{pulsate:Nt=!1,center:Yt=lt||kt.pulsate,fakeElement:Kt=!1}=kt;if((Dt==null?void 0:Dt.type)==="mousedown"&&vt.current){vt.current=!1;return}(Dt==null?void 0:Dt.type)==="touchstart"&&(vt.current=!0);const Jt=Kt?null:Rt.current,Qt=Jt?Jt.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Bt,Ft,$t;if(Yt||Dt===void 0||Dt.clientX===0&&Dt.clientY===0||!Dt.clientX&&!Dt.touches)Bt=Math.round(Qt.width/2),Ft=Math.round(Qt.height/2);else{const{clientX:jt,clientY:Wt}=Dt.touches&&Dt.touches.length>0?Dt.touches[0]:Dt;Bt=Math.round(jt-Qt.left),Ft=Math.round(Wt-Qt.top)}if(Yt)$t=Math.sqrt((2*Qt.width**2+Qt.height**2)/3),$t%2===0&&($t+=1);else{const jt=Math.max(Math.abs((Jt?Jt.clientWidth:0)-Bt),Bt)*2+2,Wt=Math.max(Math.abs((Jt?Jt.clientHeight:0)-Ft),Ft)*2+2;$t=Math.sqrt(jt**2+Wt**2)}Dt!=null&&Dt.touches?At.current===null&&(At.current=()=>{zt({pulsate:Nt,rippleX:Bt,rippleY:Ft,rippleSize:$t,cb:qt})},Ot.start(DELAY_RIPPLE,()=>{At.current&&(At.current(),At.current=null)})):zt({pulsate:Nt,rippleX:Bt,rippleY:Ft,rippleSize:$t,cb:qt})},[lt,zt,Ot]),Ct=reactExports.useCallback(()=>{Tt({},{pulsate:!0})},[Tt]),It=reactExports.useCallback((Dt,kt)=>{if(Ot.clear(),(Dt==null?void 0:Dt.type)==="touchend"&&At.current){At.current(),At.current=null,Ot.start(0,()=>{It(Dt,kt)});return}At.current=null,mt(qt=>qt.length>0?qt.slice(1):qt),Mt.current=kt},[Ot]);return reactExports.useImperativeHandle(rt,()=>({pulsate:Ct,start:Tt,stop:It}),[Ct,Tt,It]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends$j({className:clsx(touchRippleClasses.root,ut.root,dt),ref:Rt},pt,{children:jsxRuntimeExports.jsx(TransitionGroup,{component:null,exit:!0,children:ht})}))});function getButtonBaseUtilityClass(et){return generateUtilityClass("MuiButtonBase",et)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),_excluded$20=["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"],useUtilityClasses$1w=et=>{const{disabled:tt,focusVisible:rt,focusVisibleClassName:nt,classes:lt}=et,dt=composeClasses({root:["root",tt&&"disabled",rt&&"focusVisible"]},getButtonBaseUtilityClass,lt);return rt&&nt&&(dt.root+=` ${nt}`),dt},ButtonBaseRoot=styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(et,tt)=>tt.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"},[`&.${buttonBaseClasses.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiButtonBase"}),{action:lt,centerRipple:ut=!1,children:dt,className:pt,component:ht="button",disabled:mt=!1,disableRipple:xt=!1,disableTouchRipple:Mt=!1,focusRipple:vt=!1,LinkComponent:Ot="a",onBlur:At,onClick:Rt,onContextMenu:zt,onDragLeave:Tt,onFocus:Ct,onFocusVisible:It,onKeyDown:Dt,onKeyUp:kt,onMouseDown:qt,onMouseLeave:Nt,onMouseUp:Yt,onTouchEnd:Kt,onTouchMove:Jt,onTouchStart:Qt,tabIndex:Bt=0,TouchRippleProps:Ft,touchRippleRef:$t,type:jt}=nt,Wt=_objectWithoutPropertiesLoose$d(nt,_excluded$20),Ut=reactExports.useRef(null),Vt=reactExports.useRef(null),Ht=useForkRef(Vt,$t),{isFocusVisibleRef:Gt,onFocus:Zt,onBlur:Xt,ref:er}=useIsFocusVisible(),[nr,or]=reactExports.useState(!1);mt&&nr&&or(!1),reactExports.useImperativeHandle(lt,()=>({focusVisible:()=>{or(!0),Ut.current.focus()}}),[]);const[rr,cr]=reactExports.useState(!1);reactExports.useEffect(()=>{cr(!0)},[]);const ir=rr&&!xt&&!mt;reactExports.useEffect(()=>{nr&&vt&&!xt&&rr&&Vt.current.pulsate()},[xt,vt,nr,rr]);function dr(Gr,Jr,jr=Mt){return useEventCallback$1(Zr=>(Jr&&Jr(Zr),!jr&&Vt.current&&Vt.current[Gr](Zr),!0))}const gr=dr("start",qt),br=dr("stop",zt),ar=dr("stop",Tt),ur=dr("stop",Yt),xr=dr("stop",Gr=>{nr&&Gr.preventDefault(),Nt&&Nt(Gr)}),Mr=dr("start",Qt),Ar=dr("stop",Kt),Ir=dr("stop",Jt),Rr=dr("stop",Gr=>{Xt(Gr),Gt.current===!1&&or(!1),At&&At(Gr)},!1),wr=useEventCallback$1(Gr=>{Ut.current||(Ut.current=Gr.currentTarget),Zt(Gr),Gt.current===!0&&(or(!0),It&&It(Gr)),Ct&&Ct(Gr)}),qr=()=>{const Gr=Ut.current;return ht&&ht!=="button"&&!(Gr.tagName==="A"&&Gr.href)},Hr=reactExports.useRef(!1),kr=useEventCallback$1(Gr=>{vt&&!Hr.current&&nr&&Vt.current&&Gr.key===" "&&(Hr.current=!0,Vt.current.stop(Gr,()=>{Vt.current.start(Gr)})),Gr.target===Gr.currentTarget&&qr()&&Gr.key===" "&&Gr.preventDefault(),Dt&&Dt(Gr),Gr.target===Gr.currentTarget&&qr()&&Gr.key==="Enter"&&!mt&&(Gr.preventDefault(),Rt&&Rt(Gr))}),$r=useEventCallback$1(Gr=>{vt&&Gr.key===" "&&Vt.current&&nr&&!Gr.defaultPrevented&&(Hr.current=!1,Vt.current.stop(Gr,()=>{Vt.current.pulsate(Gr)})),kt&&kt(Gr),Rt&&Gr.target===Gr.currentTarget&&qr()&&Gr.key===" "&&!Gr.defaultPrevented&&Rt(Gr)});let yr=ht;yr==="button"&&(Wt.href||Wt.to)&&(yr=Ot);const Or={};yr==="button"?(Or.type=jt===void 0?"button":jt,Or.disabled=mt):(!Wt.href&&!Wt.to&&(Or.role="button"),mt&&(Or["aria-disabled"]=mt));const Dr=useForkRef(rt,er,Ut),Fr=_extends$j({},nt,{centerRipple:ut,component:ht,disabled:mt,disableRipple:xt,disableTouchRipple:Mt,focusRipple:vt,tabIndex:Bt,focusVisible:nr}),Yr=useUtilityClasses$1w(Fr);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends$j({as:yr,className:clsx(Yr.root,pt),ownerState:Fr,onBlur:Rr,onClick:Rt,onContextMenu:br,onFocus:wr,onKeyDown:kr,onKeyUp:$r,onMouseDown:gr,onMouseLeave:xr,onMouseUp:ur,onDragLeave:ar,onTouchEnd:Ar,onTouchMove:Ir,onTouchStart:Mr,ref:Dr,tabIndex:mt?-1:Bt,type:jt},Or,Wt,{children:[dt,ir?jsxRuntimeExports.jsx(TouchRipple,_extends$j({ref:Ht,center:ut},Ft)):null]}))});function getAccordionSummaryUtilityClass(et){return generateUtilityClass("MuiAccordionSummary",et)}const accordionSummaryClasses=generateUtilityClasses("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),_excluded$1$=["children","className","expandIcon","focusVisibleClassName","onClick"],useUtilityClasses$1v=et=>{const{classes:tt,expanded:rt,disabled:nt,disableGutters:lt}=et;return composeClasses({root:["root",rt&&"expanded",nt&&"disabled",!lt&&"gutters"],focusVisible:["focusVisible"],content:["content",rt&&"expanded",!lt&&"contentGutters"],expandIconWrapper:["expandIconWrapper",rt&&"expanded"]},getAccordionSummaryUtilityClass,tt)},AccordionSummaryRoot=styled(ButtonBase,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(et,tt)=>tt.root})(({theme:et})=>{const tt={duration:et.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:et.spacing(0,2),transition:et.transitions.create(["min-height","background-color"],tt),[`&.${accordionSummaryClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette.action.focus},[`&.${accordionSummaryClasses.disabled}`]:{opacity:(et.vars||et).palette.action.disabledOpacity},[`&:hover:not(.${accordionSummaryClasses.disabled})`]:{cursor:"pointer"},variants:[{props:rt=>!rt.disableGutters,style:{[`&.${accordionSummaryClasses.expanded}`]:{minHeight:64}}}]}}),AccordionSummaryContent=styled("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(et,tt)=>tt.content})(({theme:et})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:tt=>!tt.disableGutters,style:{transition:et.transitions.create(["margin"],{duration:et.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{margin:"20px 0"}}}]})),AccordionSummaryExpandIconWrapper=styled("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(et,tt)=>tt.expandIconWrapper})(({theme:et})=>({display:"flex",color:(et.vars||et).palette.action.active,transform:"rotate(0deg)",transition:et.transitions.create("transform",{duration:et.transitions.duration.shortest}),[`&.${accordionSummaryClasses.expanded}`]:{transform:"rotate(180deg)"}})),AccordionSummary$1=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiAccordionSummary"}),{children:lt,className:ut,expandIcon:dt,focusVisibleClassName:pt,onClick:ht}=nt,mt=_objectWithoutPropertiesLoose$d(nt,_excluded$1$),{disabled:xt=!1,disableGutters:Mt,expanded:vt,toggle:Ot}=reactExports.useContext(AccordionContext),At=Tt=>{Ot&&Ot(Tt),ht&&ht(Tt)},Rt=_extends$j({},nt,{expanded:vt,disabled:xt,disableGutters:Mt}),zt=useUtilityClasses$1v(Rt);return jsxRuntimeExports.jsxs(AccordionSummaryRoot,_extends$j({focusRipple:!1,disableRipple:!0,disabled:xt,component:"div","aria-expanded":vt,className:clsx(zt.root,ut),focusVisibleClassName:clsx(zt.focusVisible,pt),onClick:At,ref:rt,ownerState:Rt},mt,{children:[jsxRuntimeExports.jsx(AccordionSummaryContent,{className:zt.content,ownerState:Rt,children:lt}),dt&&jsxRuntimeExports.jsx(AccordionSummaryExpandIconWrapper,{className:zt.expandIconWrapper,ownerState:Rt,children:dt})]}))});function getAlertUtilityClass(et){return generateUtilityClass("MuiAlert",et)}const alertClasses=generateUtilityClasses("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function getIconButtonUtilityClass(et){return generateUtilityClass("MuiIconButton",et)}const iconButtonClasses=generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_excluded$1_=["edge","children","className","color","disabled","disableFocusRipple","size"],useUtilityClasses$1u=et=>{const{classes:tt,disabled:rt,color:nt,edge:lt,size:ut}=et,dt={root:["root",rt&&"disabled",nt!=="default"&&`color${capitalize$3(nt)}`,lt&&`edge${capitalize$3(lt)}`,`size${capitalize$3(ut)}`]};return composeClasses(dt,getIconButtonUtilityClass,tt)},IconButtonRoot=styled(ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.color!=="default"&&tt[`color${capitalize$3(rt.color)}`],rt.edge&&tt[`edge${capitalize$3(rt.edge)}`],tt[`size${capitalize$3(rt.size)}`]]}})(({theme:et,ownerState:tt})=>_extends$j({textAlign:"center",flex:"0 0 auto",fontSize:et.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(et.vars||et).palette.action.active,transition:et.transitions.create("background-color",{duration:et.transitions.duration.shortest})},!tt.disableRipple&&{"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette.action.activeChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(et.palette.action.active,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},tt.edge==="start"&&{marginLeft:tt.size==="small"?-3:-12},tt.edge==="end"&&{marginRight:tt.size==="small"?-3:-12}),({theme:et,ownerState:tt})=>{var rt;const nt=(rt=(et.vars||et).palette)==null?void 0:rt[tt.color];return _extends$j({},tt.color==="inherit"&&{color:"inherit"},tt.color!=="inherit"&&tt.color!=="default"&&_extends$j({color:nt==null?void 0:nt.main},!tt.disableRipple&&{"&:hover":_extends$j({},nt&&{backgroundColor:et.vars?`rgba(${nt.mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(nt.main,et.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),tt.size==="small"&&{padding:5,fontSize:et.typography.pxToRem(18)},tt.size==="large"&&{padding:12,fontSize:et.typography.pxToRem(28)},{[`&.${iconButtonClasses.disabled}`]:{backgroundColor:"transparent",color:(et.vars||et).palette.action.disabled}})}),IconButton=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiIconButton"}),{edge:lt=!1,children:ut,className:dt,color:pt="default",disabled:ht=!1,disableFocusRipple:mt=!1,size:xt="medium"}=nt,Mt=_objectWithoutPropertiesLoose$d(nt,_excluded$1_),vt=_extends$j({},nt,{edge:lt,color:pt,disabled:ht,disableFocusRipple:mt,size:xt}),Ot=useUtilityClasses$1u(vt);return jsxRuntimeExports.jsx(IconButtonRoot,_extends$j({className:clsx(Ot.root,dt),centerRipple:!0,focusRipple:!mt,disabled:ht,ref:rt},Mt,{ownerState:vt,children:ut}))}),SuccessOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ReportProblemOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ErrorOutlineIcon$1=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),InfoOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ClearIcon$1=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),_excluded$1Z=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],useUtilityClasses$1t=et=>{const{variant:tt,color:rt,severity:nt,classes:lt}=et,ut={root:["root",`color${capitalize$3(rt||nt)}`,`${tt}${capitalize$3(rt||nt)}`,`${tt}`],icon:["icon"],message:["message"],action:["action"]};return composeClasses(ut,getAlertUtilityClass,lt)},AlertRoot=styled(Paper,{name:"MuiAlert",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`${rt.variant}${capitalize$3(rt.color||rt.severity)}`]]}})(({theme:et})=>{const tt=et.palette.mode==="light"?darken_1:lighten_1,rt=et.palette.mode==="light"?lighten_1:darken_1;return _extends$j({},et.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(et.palette).filter(([,nt])=>nt.main&&nt.light).map(([nt])=>({props:{colorSeverity:nt,variant:"standard"},style:{color:et.vars?et.vars.palette.Alert[`${nt}Color`]:tt(et.palette[nt].light,.6),backgroundColor:et.vars?et.vars.palette.Alert[`${nt}StandardBg`]:rt(et.palette[nt].light,.9),[`& .${alertClasses.icon}`]:et.vars?{color:et.vars.palette.Alert[`${nt}IconColor`]}:{color:et.palette[nt].main}}})),...Object.entries(et.palette).filter(([,nt])=>nt.main&&nt.light).map(([nt])=>({props:{colorSeverity:nt,variant:"outlined"},style:{color:et.vars?et.vars.palette.Alert[`${nt}Color`]:tt(et.palette[nt].light,.6),border:`1px solid ${(et.vars||et).palette[nt].light}`,[`& .${alertClasses.icon}`]:et.vars?{color:et.vars.palette.Alert[`${nt}IconColor`]}:{color:et.palette[nt].main}}})),...Object.entries(et.palette).filter(([,nt])=>nt.main&&nt.dark).map(([nt])=>({props:{colorSeverity:nt,variant:"filled"},style:_extends$j({fontWeight:et.typography.fontWeightMedium},et.vars?{color:et.vars.palette.Alert[`${nt}FilledColor`],backgroundColor:et.vars.palette.Alert[`${nt}FilledBg`]}:{backgroundColor:et.palette.mode==="dark"?et.palette[nt].dark:et.palette[nt].main,color:et.palette.getContrastText(et.palette[nt].main)})}))]})}),AlertIcon=styled("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(et,tt)=>tt.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),AlertMessage=styled("div",{name:"MuiAlert",slot:"Message",overridesResolver:(et,tt)=>tt.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),AlertAction=styled("div",{name:"MuiAlert",slot:"Action",overridesResolver:(et,tt)=>tt.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),defaultIconMapping={success:jsxRuntimeExports.jsx(SuccessOutlinedIcon,{fontSize:"inherit"}),warning:jsxRuntimeExports.jsx(ReportProblemOutlinedIcon,{fontSize:"inherit"}),error:jsxRuntimeExports.jsx(ErrorOutlineIcon$1,{fontSize:"inherit"}),info:jsxRuntimeExports.jsx(InfoOutlinedIcon,{fontSize:"inherit"})},Alert=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiAlert"}),{action:lt,children:ut,className:dt,closeText:pt="Close",color:ht,components:mt={},componentsProps:xt={},icon:Mt,iconMapping:vt=defaultIconMapping,onClose:Ot,role:At="alert",severity:Rt="success",slotProps:zt={},slots:Tt={},variant:Ct="standard"}=nt,It=_objectWithoutPropertiesLoose$d(nt,_excluded$1Z),Dt=_extends$j({},nt,{color:ht,severity:Rt,variant:Ct,colorSeverity:ht||Rt}),kt=useUtilityClasses$1t(Dt),qt={slots:_extends$j({closeButton:mt.CloseButton,closeIcon:mt.CloseIcon},Tt),slotProps:_extends$j({},xt,zt)},[Nt,Yt]=useSlot("closeButton",{elementType:IconButton,externalForwardedProps:qt,ownerState:Dt}),[Kt,Jt]=useSlot("closeIcon",{elementType:ClearIcon$1,externalForwardedProps:qt,ownerState:Dt});return jsxRuntimeExports.jsxs(AlertRoot,_extends$j({role:At,elevation:0,ownerState:Dt,className:clsx(kt.root,dt),ref:rt},It,{children:[Mt!==!1?jsxRuntimeExports.jsx(AlertIcon,{ownerState:Dt,className:kt.icon,children:Mt||vt[Rt]||defaultIconMapping[Rt]}):null,jsxRuntimeExports.jsx(AlertMessage,{ownerState:Dt,className:kt.message,children:ut}),lt!=null?jsxRuntimeExports.jsx(AlertAction,{ownerState:Dt,className:kt.action,children:lt}):null,lt==null&&Ot?jsxRuntimeExports.jsx(AlertAction,{ownerState:Dt,className:kt.action,children:jsxRuntimeExports.jsx(Nt,_extends$j({size:"small","aria-label":pt,title:pt,color:"inherit",onClick:Ot},Yt,{children:jsxRuntimeExports.jsx(Kt,_extends$j({fontSize:"small"},Jt))}))}):null]}))});function getTypographyUtilityClass(et){return generateUtilityClass("MuiTypography",et)}generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _excluded$1Y=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],useUtilityClasses$1s=et=>{const{align:tt,gutterBottom:rt,noWrap:nt,paragraph:lt,variant:ut,classes:dt}=et,pt={root:["root",ut,et.align!=="inherit"&&`align${capitalize$3(tt)}`,rt&&"gutterBottom",nt&&"noWrap",lt&&"paragraph"]};return composeClasses(pt,getTypographyUtilityClass,dt)},TypographyRoot=styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.variant&&tt[rt.variant],rt.align!=="inherit"&&tt[`align${capitalize$3(rt.align)}`],rt.noWrap&&tt.noWrap,rt.gutterBottom&&tt.gutterBottom,rt.paragraph&&tt.paragraph]}})(({theme:et,ownerState:tt})=>_extends$j({margin:0},tt.variant==="inherit"&&{font:"inherit"},tt.variant!=="inherit"&&et.typography[tt.variant],tt.align!=="inherit"&&{textAlign:tt.align},tt.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},tt.gutterBottom&&{marginBottom:"0.35em"},tt.paragraph&&{marginBottom:16})),defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},colorTransformations={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},transformDeprecatedColors=et=>colorTransformations[et]||et,Typography=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTypography"}),lt=transformDeprecatedColors(nt.color),ut=extendSxProp(_extends$j({},nt,{color:lt})),{align:dt="inherit",className:pt,component:ht,gutterBottom:mt=!1,noWrap:xt=!1,paragraph:Mt=!1,variant:vt="body1",variantMapping:Ot=defaultVariantMapping}=ut,At=_objectWithoutPropertiesLoose$d(ut,_excluded$1Y),Rt=_extends$j({},ut,{align:dt,color:lt,className:pt,component:ht,gutterBottom:mt,noWrap:xt,paragraph:Mt,variant:vt,variantMapping:Ot}),zt=ht||(Mt?"p":Ot[vt]||defaultVariantMapping[vt])||"span",Tt=useUtilityClasses$1s(Rt);return jsxRuntimeExports.jsx(TypographyRoot,_extends$j({as:zt,ref:rt,ownerState:Rt,className:clsx(Tt.root,pt)},At))});function getAppBarUtilityClass(et){return generateUtilityClass("MuiAppBar",et)}generateUtilityClasses("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _excluded$1X=["className","color","enableColorOnDark","position"],useUtilityClasses$1r=et=>{const{color:tt,position:rt,classes:nt}=et,lt={root:["root",`color${capitalize$3(tt)}`,`position${capitalize$3(rt)}`]};return composeClasses(lt,getAppBarUtilityClass,nt)},joinVars=(et,tt)=>et?`${et==null?void 0:et.replace(")","")}, ${tt})`:tt,AppBarRoot=styled(Paper,{name:"MuiAppBar",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[`position${capitalize$3(rt.position)}`],tt[`color${capitalize$3(rt.color)}`]]}})(({theme:et,ownerState:tt})=>{const rt=et.palette.mode==="light"?et.palette.grey[100]:et.palette.grey[900];return _extends$j({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},tt.position==="fixed"&&{position:"fixed",zIndex:(et.vars||et).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},tt.position==="absolute"&&{position:"absolute",zIndex:(et.vars||et).zIndex.appBar,top:0,left:"auto",right:0},tt.position==="sticky"&&{position:"sticky",zIndex:(et.vars||et).zIndex.appBar,top:0,left:"auto",right:0},tt.position==="static"&&{position:"static"},tt.position==="relative"&&{position:"relative"},!et.vars&&_extends$j({},tt.color==="default"&&{backgroundColor:rt,color:et.palette.getContrastText(rt)},tt.color&&tt.color!=="default"&&tt.color!=="inherit"&&tt.color!=="transparent"&&{backgroundColor:et.palette[tt.color].main,color:et.palette[tt.color].contrastText},tt.color==="inherit"&&{color:"inherit"},et.palette.mode==="dark"&&!tt.enableColorOnDark&&{backgroundColor:null,color:null},tt.color==="transparent"&&_extends$j({backgroundColor:"transparent",color:"inherit"},et.palette.mode==="dark"&&{backgroundImage:"none"})),et.vars&&_extends$j({},tt.color==="default"&&{"--AppBar-background":tt.enableColorOnDark?et.vars.palette.AppBar.defaultBg:joinVars(et.vars.palette.AppBar.darkBg,et.vars.palette.AppBar.defaultBg),"--AppBar-color":tt.enableColorOnDark?et.vars.palette.text.primary:joinVars(et.vars.palette.AppBar.darkColor,et.vars.palette.text.primary)},tt.color&&!tt.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":tt.enableColorOnDark?et.vars.palette[tt.color].main:joinVars(et.vars.palette.AppBar.darkBg,et.vars.palette[tt.color].main),"--AppBar-color":tt.enableColorOnDark?et.vars.palette[tt.color].contrastText:joinVars(et.vars.palette.AppBar.darkColor,et.vars.palette[tt.color].contrastText)},!["inherit","transparent"].includes(tt.color)&&{backgroundColor:"var(--AppBar-background)"},{color:tt.color==="inherit"?"inherit":"var(--AppBar-color)"},tt.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),AppBar=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiAppBar"}),{className:lt,color:ut="primary",enableColorOnDark:dt=!1,position:pt="fixed"}=nt,ht=_objectWithoutPropertiesLoose$d(nt,_excluded$1X),mt=_extends$j({},nt,{color:ut,position:pt,enableColorOnDark:dt}),xt=useUtilityClasses$1r(mt);return jsxRuntimeExports.jsx(AppBarRoot,_extends$j({square:!0,component:"header",ownerState:mt,elevation:4,className:clsx(xt.root,lt,pt==="fixed"&&"mui-fixed"),ref:rt},ht))});function stripDiacritics$1(et){return typeof et.normalize<"u"?et.normalize("NFD").replace(/[\u0300-\u036f]/g,""):et}function createFilterOptions(et={}){const{ignoreAccents:tt=!0,ignoreCase:rt=!0,limit:nt,matchFrom:lt="any",stringify:ut,trim:dt=!1}=et;return(pt,{inputValue:ht,getOptionLabel:mt})=>{let xt=dt?ht.trim():ht;rt&&(xt=xt.toLowerCase()),tt&&(xt=stripDiacritics$1(xt));const Mt=xt?pt.filter(vt=>{let Ot=(ut||mt)(vt);return rt&&(Ot=Ot.toLowerCase()),tt&&(Ot=stripDiacritics$1(Ot)),lt==="start"?Ot.indexOf(xt)===0:Ot.indexOf(xt)>-1}):pt;return typeof nt=="number"?Mt.slice(0,nt):Mt}}function findIndex$2(et,tt){for(let rt=0;rt<et.length;rt+=1)if(tt(et[rt]))return rt;return-1}const defaultFilterOptions=createFilterOptions(),pageSize=5,defaultIsActiveElementInListbox=et=>{var tt;return et.current!==null&&((tt=et.current.parentElement)==null?void 0:tt.contains(document.activeElement))};function useAutocomplete(et){const{unstable_isActiveElementInListbox:tt=defaultIsActiveElementInListbox,unstable_classNamePrefix:rt="Mui",autoComplete:nt=!1,autoHighlight:lt=!1,autoSelect:ut=!1,blurOnSelect:dt=!1,clearOnBlur:pt=!et.freeSolo,clearOnEscape:ht=!1,componentName:mt="useAutocomplete",defaultValue:xt=et.multiple?[]:null,disableClearable:Mt=!1,disableCloseOnSelect:vt=!1,disabled:Ot,disabledItemsFocusable:At=!1,disableListWrap:Rt=!1,filterOptions:zt=defaultFilterOptions,filterSelectedOptions:Tt=!1,freeSolo:Ct=!1,getOptionDisabled:It,getOptionKey:Dt,getOptionLabel:kt=jn=>{var In;return(In=jn.label)!=null?In:jn},groupBy:qt,handleHomeEndKeys:Nt=!et.freeSolo,id:Yt,includeInputInList:Kt=!1,inputValue:Jt,isOptionEqualToValue:Qt=(jn,In)=>jn===In,multiple:Bt=!1,onChange:Ft,onClose:$t,onHighlightChange:jt,onInputChange:Wt,onOpen:Ut,open:Vt,openOnFocus:Ht=!1,options:Gt,readOnly:Zt=!1,selectOnFocus:Xt=!et.freeSolo,value:er}=et,nr=useId(Yt);let or=kt;or=jn=>{const In=kt(jn);return typeof In!="string"?String(In):In};const rr=reactExports.useRef(!1),cr=reactExports.useRef(!0),ir=reactExports.useRef(null),dr=reactExports.useRef(null),[gr,br]=reactExports.useState(null),[ar,ur]=reactExports.useState(-1),xr=lt?0:-1,Mr=reactExports.useRef(xr),[Ar,Ir]=useControlled({controlled:er,default:xt,name:mt}),[Rr,wr]=useControlled({controlled:Jt,default:"",name:mt,state:"inputValue"}),[qr,Hr]=reactExports.useState(!1),kr=reactExports.useCallback((jn,In)=>{if(!(Bt?Ar.length<In.length:In!==null)&&!pt)return;let Wn;if(Bt)Wn="";else if(In==null)Wn="";else{const ao=or(In);Wn=typeof ao=="string"?ao:""}Rr!==Wn&&(wr(Wn),Wt&&Wt(jn,Wn,"reset"))},[or,Rr,Bt,Wt,wr,pt,Ar]),[$r,yr]=useControlled({controlled:Vt,default:!1,name:mt,state:"open"}),[Or,Dr]=reactExports.useState(!0),Fr=!Bt&&Ar!=null&&Rr===or(Ar),Yr=$r&&!Zt,Gr=Yr?zt(Gt.filter(jn=>!(Tt&&(Bt?Ar:[Ar]).some(In=>In!==null&&Qt(jn,In)))),{inputValue:Fr&&Or?"":Rr,getOptionLabel:or}):[],Jr=usePreviousProps({filteredOptions:Gr,value:Ar,inputValue:Rr});reactExports.useEffect(()=>{const jn=Ar!==Jr.value;qr&&!jn||Ct&&!jn||kr(null,Ar)},[Ar,kr,qr,Jr.value,Ct]);const jr=$r&&Gr.length>0&&!Zt,Zr=useEventCallback$1(jn=>{jn===-1?ir.current.focus():gr.querySelector(`[data-tag-index="${jn}"]`).focus()});reactExports.useEffect(()=>{Bt&&ar>Ar.length-1&&(ur(-1),Zr(-1))},[Ar,Bt,ar,Zr]);function Xr(jn,In){if(!dr.current||jn<0||jn>=Gr.length)return-1;let Kn=jn;for(;;){const Wn=dr.current.querySelector(`[data-option-index="${Kn}"]`),ao=At?!1:!Wn||Wn.disabled||Wn.getAttribute("aria-disabled")==="true";if(Wn&&Wn.hasAttribute("tabindex")&&!ao)return Kn;if(In==="next"?Kn=(Kn+1)%Gr.length:Kn=(Kn-1+Gr.length)%Gr.length,Kn===jn)return-1}}const cn=useEventCallback$1(({event:jn,index:In,reason:Kn="auto"})=>{if(Mr.current=In,In===-1?ir.current.removeAttribute("aria-activedescendant"):ir.current.setAttribute("aria-activedescendant",`${nr}-option-${In}`),jt&&jt(jn,In===-1?null:Gr[In],Kn),!dr.current)return;const Wn=dr.current.querySelector(`[role="option"].${rt}-focused`);Wn&&(Wn.classList.remove(`${rt}-focused`),Wn.classList.remove(`${rt}-focusVisible`));let ao=dr.current;if(dr.current.getAttribute("role")!=="listbox"&&(ao=dr.current.parentElement.querySelector('[role="listbox"]')),!ao)return;if(In===-1){ao.scrollTop=0;return}const _i=dr.current.querySelector(`[data-option-index="${In}"]`);if(_i&&(_i.classList.add(`${rt}-focused`),Kn==="keyboard"&&_i.classList.add(`${rt}-focusVisible`),ao.scrollHeight>ao.clientHeight&&Kn!=="mouse"&&Kn!=="touch")){const ho=_i,So=ao.clientHeight+ao.scrollTop,ko=ho.offsetTop+ho.offsetHeight;ko>So?ao.scrollTop=ko-ao.clientHeight:ho.offsetTop-ho.offsetHeight*(qt?1.3:0)<ao.scrollTop&&(ao.scrollTop=ho.offsetTop-ho.offsetHeight*(qt?1.3:0))}}),Qr=useEventCallback$1(({event:jn,diff:In,direction:Kn="next",reason:Wn="auto"})=>{if(!Yr)return;const _i=Xr((()=>{const ho=Gr.length-1;if(In==="reset")return xr;if(In==="start")return 0;if(In==="end")return ho;const So=Mr.current+In;return So<0?So===-1&&Kt?-1:Rt&&Mr.current!==-1||Math.abs(In)>1?0:ho:So>ho?So===ho+1&&Kt?-1:Rt||Math.abs(In)>1?ho:0:So})(),Kn);if(cn({index:_i,reason:Wn,event:jn}),nt&&In!=="reset")if(_i===-1)ir.current.value=Rr;else{const ho=or(Gr[_i]);ir.current.value=ho,ho.toLowerCase().indexOf(Rr.toLowerCase())===0&&Rr.length>0&&ir.current.setSelectionRange(Rr.length,ho.length)}}),rn=()=>{const jn=(In,Kn)=>{const Wn=In?or(In):"",ao=Kn?or(Kn):"";return Wn===ao};if(Mr.current!==-1&&Jr.filteredOptions&&Jr.filteredOptions.length!==Gr.length&&Jr.inputValue===Rr&&(Bt?Ar.length===Jr.value.length&&Jr.value.every((In,Kn)=>or(Ar[Kn])===or(In)):jn(Jr.value,Ar))){const In=Jr.filteredOptions[Mr.current];if(In)return findIndex$2(Gr,Kn=>or(Kn)===or(In))}return-1},_r=reactExports.useCallback(()=>{if(!Yr)return;const jn=rn();if(jn!==-1){Mr.current=jn;return}const In=Bt?Ar[0]:Ar;if(Gr.length===0||In==null){Qr({diff:"reset"});return}if(dr.current){if(In!=null){const Kn=Gr[Mr.current];if(Bt&&Kn&&findIndex$2(Ar,ao=>Qt(Kn,ao))!==-1)return;const Wn=findIndex$2(Gr,ao=>Qt(ao,In));Wn===-1?Qr({diff:"reset"}):cn({index:Wn});return}if(Mr.current>=Gr.length-1){cn({index:Gr.length-1});return}cn({index:Mr.current})}},[Gr.length,Bt?!1:Ar,Tt,Qr,cn,Yr,Rr,Bt]),ln=useEventCallback$1(jn=>{setRef(dr,jn),jn&&_r()});reactExports.useEffect(()=>{_r()},[_r]);const vn=jn=>{$r||(yr(!0),Dr(!0),Ut&&Ut(jn))},Cr=(jn,In)=>{$r&&(yr(!1),$t&&$t(jn,In))},gn=(jn,In,Kn,Wn)=>{if(Bt){if(Ar.length===In.length&&Ar.every((ao,_i)=>ao===In[_i]))return}else if(Ar===In)return;Ft&&Ft(jn,In,Kn,Wn),Ir(In)},xn=reactExports.useRef(!1),Vr=(jn,In,Kn="selectOption",Wn="options")=>{let ao=Kn,_i=In;if(Bt){_i=Array.isArray(Ar)?Ar.slice():[];const ho=findIndex$2(_i,So=>Qt(In,So));ho===-1?_i.push(In):Wn!=="freeSolo"&&(_i.splice(ho,1),ao="removeOption")}kr(jn,_i),gn(jn,_i,ao,{option:In}),!vt&&(!jn||!jn.ctrlKey&&!jn.metaKey)&&Cr(jn,ao),(dt===!0||dt==="touch"&&xn.current||dt==="mouse"&&!xn.current)&&ir.current.blur()};function fn(jn,In){if(jn===-1)return-1;let Kn=jn;for(;;){if(In==="next"&&Kn===Ar.length||In==="previous"&&Kn===-1)return-1;const Wn=gr.querySelector(`[data-tag-index="${Kn}"]`);if(!Wn||!Wn.hasAttribute("tabindex")||Wn.disabled||Wn.getAttribute("aria-disabled")==="true")Kn+=In==="next"?1:-1;else return Kn}}const pn=(jn,In)=>{if(!Bt)return;Rr===""&&Cr(jn,"toggleInput");let Kn=ar;ar===-1?Rr===""&&In==="previous"&&(Kn=Ar.length-1):(Kn+=In==="next"?1:-1,Kn<0&&(Kn=0),Kn===Ar.length&&(Kn=-1)),Kn=fn(Kn,In),ur(Kn),Zr(Kn)},qn=jn=>{rr.current=!0,wr(""),Wt&&Wt(jn,"","clear"),gn(jn,Bt?[]:null,"clear")},Bn=jn=>In=>{if(jn.onKeyDown&&jn.onKeyDown(In),!In.defaultMuiPrevented&&(ar!==-1&&["ArrowLeft","ArrowRight"].indexOf(In.key)===-1&&(ur(-1),Zr(-1)),In.which!==229))switch(In.key){case"Home":Yr&&Nt&&(In.preventDefault(),Qr({diff:"start",direction:"next",reason:"keyboard",event:In}));break;case"End":Yr&&Nt&&(In.preventDefault(),Qr({diff:"end",direction:"previous",reason:"keyboard",event:In}));break;case"PageUp":In.preventDefault(),Qr({diff:-pageSize,direction:"previous",reason:"keyboard",event:In}),vn(In);break;case"PageDown":In.preventDefault(),Qr({diff:pageSize,direction:"next",reason:"keyboard",event:In}),vn(In);break;case"ArrowDown":In.preventDefault(),Qr({diff:1,direction:"next",reason:"keyboard",event:In}),vn(In);break;case"ArrowUp":In.preventDefault(),Qr({diff:-1,direction:"previous",reason:"keyboard",event:In}),vn(In);break;case"ArrowLeft":pn(In,"previous");break;case"ArrowRight":pn(In,"next");break;case"Enter":if(Mr.current!==-1&&Yr){const Kn=Gr[Mr.current],Wn=It?It(Kn):!1;if(In.preventDefault(),Wn)return;Vr(In,Kn,"selectOption"),nt&&ir.current.setSelectionRange(ir.current.value.length,ir.current.value.length)}else Ct&&Rr!==""&&Fr===!1&&(Bt&&In.preventDefault(),Vr(In,Rr,"createOption","freeSolo"));break;case"Escape":Yr?(In.preventDefault(),In.stopPropagation(),Cr(In,"escape")):ht&&(Rr!==""||Bt&&Ar.length>0)&&(In.preventDefault(),In.stopPropagation(),qn(In));break;case"Backspace":if(Bt&&!Zt&&Rr===""&&Ar.length>0){const Kn=ar===-1?Ar.length-1:ar,Wn=Ar.slice();Wn.splice(Kn,1),gn(In,Wn,"removeOption",{option:Ar[Kn]})}break;case"Delete":if(Bt&&!Zt&&Rr===""&&Ar.length>0&&ar!==-1){const Kn=ar,Wn=Ar.slice();Wn.splice(Kn,1),gn(In,Wn,"removeOption",{option:Ar[Kn]})}break}},Kr=jn=>{Hr(!0),Ht&&!rr.current&&vn(jn)},Tr=jn=>{if(tt(dr)){ir.current.focus();return}Hr(!1),cr.current=!0,rr.current=!1,ut&&Mr.current!==-1&&Yr?Vr(jn,Gr[Mr.current],"blur"):ut&&Ct&&Rr!==""?Vr(jn,Rr,"blur","freeSolo"):pt&&kr(jn,Ar),Cr(jn,"blur")},Pr=jn=>{const In=jn.target.value;Rr!==In&&(wr(In),Dr(!1),Wt&&Wt(jn,In,"input")),In===""?!Mt&&!Bt&&gn(jn,null,"clear"):vn(jn)},an=jn=>{const In=Number(jn.currentTarget.getAttribute("data-option-index"));Mr.current!==In&&cn({event:jn,index:In,reason:"mouse"})},nn=jn=>{cn({event:jn,index:Number(jn.currentTarget.getAttribute("data-option-index")),reason:"touch"}),xn.current=!0},Mn=jn=>{const In=Number(jn.currentTarget.getAttribute("data-option-index"));Vr(jn,Gr[In],"selectOption"),xn.current=!1},An=jn=>In=>{const Kn=Ar.slice();Kn.splice(jn,1),gn(In,Kn,"removeOption",{option:Ar[jn]})},Vn=jn=>{$r?Cr(jn,"toggleInput"):vn(jn)},Cn=jn=>{jn.currentTarget.contains(jn.target)&&jn.target.getAttribute("id")!==nr&&jn.preventDefault()},kn=jn=>{jn.currentTarget.contains(jn.target)&&(ir.current.focus(),Xt&&cr.current&&ir.current.selectionEnd-ir.current.selectionStart===0&&ir.current.select(),cr.current=!1)},Qn=jn=>{!Ot&&(Rr===""||!$r)&&Vn(jn)};let Gn=Ct&&Rr.length>0;Gn=Gn||(Bt?Ar.length>0:Ar!==null);let Un=Gr;return qt&&(Un=Gr.reduce((jn,In,Kn)=>{const Wn=qt(In);return jn.length>0&&jn[jn.length-1].group===Wn?jn[jn.length-1].options.push(In):jn.push({key:Kn,index:Kn,group:Wn,options:[In]}),jn},[])),Ot&&qr&&Tr(),{getRootProps:(jn={})=>_extends$j({"aria-owns":jr?`${nr}-listbox`:null},jn,{onKeyDown:Bn(jn),onMouseDown:Cn,onClick:kn}),getInputLabelProps:()=>({id:`${nr}-label`,htmlFor:nr}),getInputProps:()=>({id:nr,value:Rr,onBlur:Tr,onFocus:Kr,onChange:Pr,onMouseDown:Qn,"aria-activedescendant":Yr?"":null,"aria-autocomplete":nt?"both":"list","aria-controls":jr?`${nr}-listbox`:void 0,"aria-expanded":jr,autoComplete:"off",ref:ir,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:Ot}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:qn}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Vn}),getTagProps:({index:jn})=>_extends$j({key:jn,"data-tag-index":jn,tabIndex:-1},!Zt&&{onDelete:An(jn)}),getListboxProps:()=>({role:"listbox",id:`${nr}-listbox`,"aria-labelledby":`${nr}-label`,ref:ln,onMouseDown:jn=>{jn.preventDefault()}}),getOptionProps:({index:jn,option:In})=>{var Kn;const Wn=(Bt?Ar:[Ar]).some(_i=>_i!=null&&Qt(In,_i)),ao=It?It(In):!1;return{key:(Kn=Dt==null?void 0:Dt(In))!=null?Kn:or(In),tabIndex:-1,role:"option",id:`${nr}-option-${jn}`,onMouseMove:an,onClick:Mn,onTouchStart:nn,"data-option-index":jn,"aria-disabled":ao,"aria-selected":Wn}},id:nr,inputValue:Rr,value:Ar,dirty:Gn,expanded:Yr&&gr,popupOpen:Yr,focused:qr||ar!==-1,anchorEl:gr,setAnchorEl:br,focusedTag:ar,groupedOptions:Un}}var useThemeWithoutDefault={};Object.defineProperty(useThemeWithoutDefault,"__esModule",{value:!0});var default_1$p=useThemeWithoutDefault.default=void 0,React$2=_interopRequireWildcard(reactExports),_styledEngine=require$$1$3;function _getRequireWildcardCache(et){if(typeof WeakMap!="function")return null;var tt=new WeakMap,rt=new WeakMap;return(_getRequireWildcardCache=function(nt){return nt?rt:tt})(et)}function _interopRequireWildcard(et,tt){if(et&&et.__esModule)return et;if(et===null||typeof et!="object"&&typeof et!="function")return{default:et};var rt=_getRequireWildcardCache(tt);if(rt&&rt.has(et))return rt.get(et);var nt={__proto__:null},lt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ut in et)if(ut!=="default"&&Object.prototype.hasOwnProperty.call(et,ut)){var dt=lt?Object.getOwnPropertyDescriptor(et,ut):null;dt&&(dt.get||dt.set)?Object.defineProperty(nt,ut,dt):nt[ut]=et[ut]}return nt.default=et,rt&&rt.set(et,nt),nt}function isObjectEmpty(et){return Object.keys(et).length===0}function useTheme(et=null){const tt=React$2.useContext(_styledEngine.ThemeContext);return!tt||isObjectEmpty(tt)?et:tt}default_1$p=useThemeWithoutDefault.default=useTheme;var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end$2="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(et,tt){return et.concat([tt+"-"+start,tt+"-"+end$2])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(et,tt){return et.concat([tt,tt+"-"+start,tt+"-"+end$2])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main$1="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main$1,afterMain,beforeWrite,write,afterWrite];function getNodeName(et){return et?(et.nodeName||"").toLowerCase():null}function getWindow(et){if(et==null)return window;if(et.toString()!=="[object Window]"){var tt=et.ownerDocument;return tt&&tt.defaultView||window}return et}function isElement$2(et){var tt=getWindow(et).Element;return et instanceof tt||et instanceof Element}function isHTMLElement$1(et){var tt=getWindow(et).HTMLElement;return et instanceof tt||et instanceof HTMLElement}function isShadowRoot(et){if(typeof ShadowRoot>"u")return!1;var tt=getWindow(et).ShadowRoot;return et instanceof tt||et instanceof ShadowRoot}function applyStyles(et){var tt=et.state;Object.keys(tt.elements).forEach(function(rt){var nt=tt.styles[rt]||{},lt=tt.attributes[rt]||{},ut=tt.elements[rt];!isHTMLElement$1(ut)||!getNodeName(ut)||(Object.assign(ut.style,nt),Object.keys(lt).forEach(function(dt){var pt=lt[dt];pt===!1?ut.removeAttribute(dt):ut.setAttribute(dt,pt===!0?"":pt)}))})}function effect$2(et){var tt=et.state,rt={popper:{position:tt.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(tt.elements.popper.style,rt.popper),tt.styles=rt,tt.elements.arrow&&Object.assign(tt.elements.arrow.style,rt.arrow),function(){Object.keys(tt.elements).forEach(function(nt){var lt=tt.elements[nt],ut=tt.attributes[nt]||{},dt=Object.keys(tt.styles.hasOwnProperty(nt)?tt.styles[nt]:rt[nt]),pt=dt.reduce(function(ht,mt){return ht[mt]="",ht},{});!isHTMLElement$1(lt)||!getNodeName(lt)||(Object.assign(lt.style,pt),Object.keys(ut).forEach(function(ht){lt.removeAttribute(ht)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(et){return et.split("-")[0]}var max=Math.max,min=Math.min,round$3=Math.round;function getUAString(){var et=navigator.userAgentData;return et!=null&&et.brands&&Array.isArray(et.brands)?et.brands.map(function(tt){return tt.brand+"/"+tt.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(et,tt,rt){tt===void 0&&(tt=!1),rt===void 0&&(rt=!1);var nt=et.getBoundingClientRect(),lt=1,ut=1;tt&&isHTMLElement$1(et)&&(lt=et.offsetWidth>0&&round$3(nt.width)/et.offsetWidth||1,ut=et.offsetHeight>0&&round$3(nt.height)/et.offsetHeight||1);var dt=isElement$2(et)?getWindow(et):window,pt=dt.visualViewport,ht=!isLayoutViewport()&&rt,mt=(nt.left+(ht&&pt?pt.offsetLeft:0))/lt,xt=(nt.top+(ht&&pt?pt.offsetTop:0))/ut,Mt=nt.width/lt,vt=nt.height/ut;return{width:Mt,height:vt,top:xt,right:mt+Mt,bottom:xt+vt,left:mt,x:mt,y:xt}}function getLayoutRect(et){var tt=getBoundingClientRect(et),rt=et.offsetWidth,nt=et.offsetHeight;return Math.abs(tt.width-rt)<=1&&(rt=tt.width),Math.abs(tt.height-nt)<=1&&(nt=tt.height),{x:et.offsetLeft,y:et.offsetTop,width:rt,height:nt}}function contains(et,tt){var rt=tt.getRootNode&&tt.getRootNode();if(et.contains(tt))return!0;if(rt&&isShadowRoot(rt)){var nt=tt;do{if(nt&&et.isSameNode(nt))return!0;nt=nt.parentNode||nt.host}while(nt)}return!1}function getComputedStyle$1(et){return getWindow(et).getComputedStyle(et)}function isTableElement(et){return["table","td","th"].indexOf(getNodeName(et))>=0}function getDocumentElement$2(et){return((isElement$2(et)?et.ownerDocument:et.document)||window.document).documentElement}function getParentNode$1(et){return getNodeName(et)==="html"?et:et.assignedSlot||et.parentNode||(isShadowRoot(et)?et.host:null)||getDocumentElement$2(et)}function getTrueOffsetParent(et){return!isHTMLElement$1(et)||getComputedStyle$1(et).position==="fixed"?null:et.offsetParent}function getContainingBlock(et){var tt=/firefox/i.test(getUAString()),rt=/Trident/i.test(getUAString());if(rt&&isHTMLElement$1(et)){var nt=getComputedStyle$1(et);if(nt.position==="fixed")return null}var lt=getParentNode$1(et);for(isShadowRoot(lt)&&(lt=lt.host);isHTMLElement$1(lt)&&["html","body"].indexOf(getNodeName(lt))<0;){var ut=getComputedStyle$1(lt);if(ut.transform!=="none"||ut.perspective!=="none"||ut.contain==="paint"||["transform","perspective"].indexOf(ut.willChange)!==-1||tt&&ut.willChange==="filter"||tt&&ut.filter&&ut.filter!=="none")return lt;lt=lt.parentNode}return null}function getOffsetParent(et){for(var tt=getWindow(et),rt=getTrueOffsetParent(et);rt&&isTableElement(rt)&&getComputedStyle$1(rt).position==="static";)rt=getTrueOffsetParent(rt);return rt&&(getNodeName(rt)==="html"||getNodeName(rt)==="body"&&getComputedStyle$1(rt).position==="static")?tt:rt||getContainingBlock(et)||tt}function getMainAxisFromPlacement(et){return["top","bottom"].indexOf(et)>=0?"x":"y"}function within(et,tt,rt){return max(et,min(tt,rt))}function withinMaxClamp(et,tt,rt){var nt=within(et,tt,rt);return nt>rt?rt:nt}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(et){return Object.assign({},getFreshSideObject(),et)}function expandToHashMap(et,tt){return tt.reduce(function(rt,nt){return rt[nt]=et,rt},{})}var toPaddingObject=function(tt,rt){return tt=typeof tt=="function"?tt(Object.assign({},rt.rects,{placement:rt.placement})):tt,mergePaddingObject(typeof tt!="number"?tt:expandToHashMap(tt,basePlacements))};function arrow(et){var tt,rt=et.state,nt=et.name,lt=et.options,ut=rt.elements.arrow,dt=rt.modifiersData.popperOffsets,pt=getBasePlacement(rt.placement),ht=getMainAxisFromPlacement(pt),mt=[left,right].indexOf(pt)>=0,xt=mt?"height":"width";if(!(!ut||!dt)){var Mt=toPaddingObject(lt.padding,rt),vt=getLayoutRect(ut),Ot=ht==="y"?top:left,At=ht==="y"?bottom:right,Rt=rt.rects.reference[xt]+rt.rects.reference[ht]-dt[ht]-rt.rects.popper[xt],zt=dt[ht]-rt.rects.reference[ht],Tt=getOffsetParent(ut),Ct=Tt?ht==="y"?Tt.clientHeight||0:Tt.clientWidth||0:0,It=Rt/2-zt/2,Dt=Mt[Ot],kt=Ct-vt[xt]-Mt[At],qt=Ct/2-vt[xt]/2+It,Nt=within(Dt,qt,kt),Yt=ht;rt.modifiersData[nt]=(tt={},tt[Yt]=Nt,tt.centerOffset=Nt-qt,tt)}}function effect$1(et){var tt=et.state,rt=et.options,nt=rt.element,lt=nt===void 0?"[data-popper-arrow]":nt;lt!=null&&(typeof lt=="string"&&(lt=tt.elements.popper.querySelector(lt),!lt)||contains(tt.elements.popper,lt)&&(tt.elements.arrow=lt))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(et){return et.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(et,tt){var rt=et.x,nt=et.y,lt=tt.devicePixelRatio||1;return{x:round$3(rt*lt)/lt||0,y:round$3(nt*lt)/lt||0}}function mapToStyles(et){var tt,rt=et.popper,nt=et.popperRect,lt=et.placement,ut=et.variation,dt=et.offsets,pt=et.position,ht=et.gpuAcceleration,mt=et.adaptive,xt=et.roundOffsets,Mt=et.isFixed,vt=dt.x,Ot=vt===void 0?0:vt,At=dt.y,Rt=At===void 0?0:At,zt=typeof xt=="function"?xt({x:Ot,y:Rt}):{x:Ot,y:Rt};Ot=zt.x,Rt=zt.y;var Tt=dt.hasOwnProperty("x"),Ct=dt.hasOwnProperty("y"),It=left,Dt=top,kt=window;if(mt){var qt=getOffsetParent(rt),Nt="clientHeight",Yt="clientWidth";if(qt===getWindow(rt)&&(qt=getDocumentElement$2(rt),getComputedStyle$1(qt).position!=="static"&&pt==="absolute"&&(Nt="scrollHeight",Yt="scrollWidth")),qt=qt,lt===top||(lt===left||lt===right)&&ut===end$2){Dt=bottom;var Kt=Mt&&qt===kt&&kt.visualViewport?kt.visualViewport.height:qt[Nt];Rt-=Kt-nt.height,Rt*=ht?1:-1}if(lt===left||(lt===top||lt===bottom)&&ut===end$2){It=right;var Jt=Mt&&qt===kt&&kt.visualViewport?kt.visualViewport.width:qt[Yt];Ot-=Jt-nt.width,Ot*=ht?1:-1}}var Qt=Object.assign({position:pt},mt&&unsetSides),Bt=xt===!0?roundOffsetsByDPR({x:Ot,y:Rt},getWindow(rt)):{x:Ot,y:Rt};if(Ot=Bt.x,Rt=Bt.y,ht){var Ft;return Object.assign({},Qt,(Ft={},Ft[Dt]=Ct?"0":"",Ft[It]=Tt?"0":"",Ft.transform=(kt.devicePixelRatio||1)<=1?"translate("+Ot+"px, "+Rt+"px)":"translate3d("+Ot+"px, "+Rt+"px, 0)",Ft))}return Object.assign({},Qt,(tt={},tt[Dt]=Ct?Rt+"px":"",tt[It]=Tt?Ot+"px":"",tt.transform="",tt))}function computeStyles(et){var tt=et.state,rt=et.options,nt=rt.gpuAcceleration,lt=nt===void 0?!0:nt,ut=rt.adaptive,dt=ut===void 0?!0:ut,pt=rt.roundOffsets,ht=pt===void 0?!0:pt,mt={placement:getBasePlacement(tt.placement),variation:getVariation(tt.placement),popper:tt.elements.popper,popperRect:tt.rects.popper,gpuAcceleration:lt,isFixed:tt.options.strategy==="fixed"};tt.modifiersData.popperOffsets!=null&&(tt.styles.popper=Object.assign({},tt.styles.popper,mapToStyles(Object.assign({},mt,{offsets:tt.modifiersData.popperOffsets,position:tt.options.strategy,adaptive:dt,roundOffsets:ht})))),tt.modifiersData.arrow!=null&&(tt.styles.arrow=Object.assign({},tt.styles.arrow,mapToStyles(Object.assign({},mt,{offsets:tt.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ht})))),tt.attributes.popper=Object.assign({},tt.attributes.popper,{"data-popper-placement":tt.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(et){var tt=et.state,rt=et.instance,nt=et.options,lt=nt.scroll,ut=lt===void 0?!0:lt,dt=nt.resize,pt=dt===void 0?!0:dt,ht=getWindow(tt.elements.popper),mt=[].concat(tt.scrollParents.reference,tt.scrollParents.popper);return ut&&mt.forEach(function(xt){xt.addEventListener("scroll",rt.update,passive)}),pt&&ht.addEventListener("resize",rt.update,passive),function(){ut&&mt.forEach(function(xt){xt.removeEventListener("scroll",rt.update,passive)}),pt&&ht.removeEventListener("resize",rt.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$5={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(et){return et.replace(/left|right|bottom|top/g,function(tt){return hash$5[tt]})}var hash$4={start:"end",end:"start"};function getOppositeVariationPlacement(et){return et.replace(/start|end/g,function(tt){return hash$4[tt]})}function getWindowScroll$3(et){var tt=getWindow(et),rt=tt.pageXOffset,nt=tt.pageYOffset;return{scrollLeft:rt,scrollTop:nt}}function getWindowScrollBarX(et){return getBoundingClientRect(getDocumentElement$2(et)).left+getWindowScroll$3(et).scrollLeft}function getViewportRect(et,tt){var rt=getWindow(et),nt=getDocumentElement$2(et),lt=rt.visualViewport,ut=nt.clientWidth,dt=nt.clientHeight,pt=0,ht=0;if(lt){ut=lt.width,dt=lt.height;var mt=isLayoutViewport();(mt||!mt&&tt==="fixed")&&(pt=lt.offsetLeft,ht=lt.offsetTop)}return{width:ut,height:dt,x:pt+getWindowScrollBarX(et),y:ht}}function getDocumentRect(et){var tt,rt=getDocumentElement$2(et),nt=getWindowScroll$3(et),lt=(tt=et.ownerDocument)==null?void 0:tt.body,ut=max(rt.scrollWidth,rt.clientWidth,lt?lt.scrollWidth:0,lt?lt.clientWidth:0),dt=max(rt.scrollHeight,rt.clientHeight,lt?lt.scrollHeight:0,lt?lt.clientHeight:0),pt=-nt.scrollLeft+getWindowScrollBarX(et),ht=-nt.scrollTop;return getComputedStyle$1(lt||rt).direction==="rtl"&&(pt+=max(rt.clientWidth,lt?lt.clientWidth:0)-ut),{width:ut,height:dt,x:pt,y:ht}}function isScrollParent(et){var tt=getComputedStyle$1(et),rt=tt.overflow,nt=tt.overflowX,lt=tt.overflowY;return/auto|scroll|overlay|hidden/.test(rt+lt+nt)}function getScrollParent$1(et){return["html","body","#document"].indexOf(getNodeName(et))>=0?et.ownerDocument.body:isHTMLElement$1(et)&&isScrollParent(et)?et:getScrollParent$1(getParentNode$1(et))}function listScrollParents(et,tt){var rt;tt===void 0&&(tt=[]);var nt=getScrollParent$1(et),lt=nt===((rt=et.ownerDocument)==null?void 0:rt.body),ut=getWindow(nt),dt=lt?[ut].concat(ut.visualViewport||[],isScrollParent(nt)?nt:[]):nt,pt=tt.concat(dt);return lt?pt:pt.concat(listScrollParents(getParentNode$1(dt)))}function rectToClientRect(et){return Object.assign({},et,{left:et.x,top:et.y,right:et.x+et.width,bottom:et.y+et.height})}function getInnerBoundingClientRect(et,tt){var rt=getBoundingClientRect(et,!1,tt==="fixed");return rt.top=rt.top+et.clientTop,rt.left=rt.left+et.clientLeft,rt.bottom=rt.top+et.clientHeight,rt.right=rt.left+et.clientWidth,rt.width=et.clientWidth,rt.height=et.clientHeight,rt.x=rt.left,rt.y=rt.top,rt}function getClientRectFromMixedType(et,tt,rt){return tt===viewport?rectToClientRect(getViewportRect(et,rt)):isElement$2(tt)?getInnerBoundingClientRect(tt,rt):rectToClientRect(getDocumentRect(getDocumentElement$2(et)))}function getClippingParents(et){var tt=listScrollParents(getParentNode$1(et)),rt=["absolute","fixed"].indexOf(getComputedStyle$1(et).position)>=0,nt=rt&&isHTMLElement$1(et)?getOffsetParent(et):et;return isElement$2(nt)?tt.filter(function(lt){return isElement$2(lt)&&contains(lt,nt)&&getNodeName(lt)!=="body"}):[]}function getClippingRect(et,tt,rt,nt){var lt=tt==="clippingParents"?getClippingParents(et):[].concat(tt),ut=[].concat(lt,[rt]),dt=ut[0],pt=ut.reduce(function(ht,mt){var xt=getClientRectFromMixedType(et,mt,nt);return ht.top=max(xt.top,ht.top),ht.right=min(xt.right,ht.right),ht.bottom=min(xt.bottom,ht.bottom),ht.left=max(xt.left,ht.left),ht},getClientRectFromMixedType(et,dt,nt));return pt.width=pt.right-pt.left,pt.height=pt.bottom-pt.top,pt.x=pt.left,pt.y=pt.top,pt}function computeOffsets(et){var tt=et.reference,rt=et.element,nt=et.placement,lt=nt?getBasePlacement(nt):null,ut=nt?getVariation(nt):null,dt=tt.x+tt.width/2-rt.width/2,pt=tt.y+tt.height/2-rt.height/2,ht;switch(lt){case top:ht={x:dt,y:tt.y-rt.height};break;case bottom:ht={x:dt,y:tt.y+tt.height};break;case right:ht={x:tt.x+tt.width,y:pt};break;case left:ht={x:tt.x-rt.width,y:pt};break;default:ht={x:tt.x,y:tt.y}}var mt=lt?getMainAxisFromPlacement(lt):null;if(mt!=null){var xt=mt==="y"?"height":"width";switch(ut){case start:ht[mt]=ht[mt]-(tt[xt]/2-rt[xt]/2);break;case end$2:ht[mt]=ht[mt]+(tt[xt]/2-rt[xt]/2);break}}return ht}function detectOverflow(et,tt){tt===void 0&&(tt={});var rt=tt,nt=rt.placement,lt=nt===void 0?et.placement:nt,ut=rt.strategy,dt=ut===void 0?et.strategy:ut,pt=rt.boundary,ht=pt===void 0?clippingParents:pt,mt=rt.rootBoundary,xt=mt===void 0?viewport:mt,Mt=rt.elementContext,vt=Mt===void 0?popper:Mt,Ot=rt.altBoundary,At=Ot===void 0?!1:Ot,Rt=rt.padding,zt=Rt===void 0?0:Rt,Tt=mergePaddingObject(typeof zt!="number"?zt:expandToHashMap(zt,basePlacements)),Ct=vt===popper?reference:popper,It=et.rects.popper,Dt=et.elements[At?Ct:vt],kt=getClippingRect(isElement$2(Dt)?Dt:Dt.contextElement||getDocumentElement$2(et.elements.popper),ht,xt,dt),qt=getBoundingClientRect(et.elements.reference),Nt=computeOffsets({reference:qt,element:It,strategy:"absolute",placement:lt}),Yt=rectToClientRect(Object.assign({},It,Nt)),Kt=vt===popper?Yt:qt,Jt={top:kt.top-Kt.top+Tt.top,bottom:Kt.bottom-kt.bottom+Tt.bottom,left:kt.left-Kt.left+Tt.left,right:Kt.right-kt.right+Tt.right},Qt=et.modifiersData.offset;if(vt===popper&&Qt){var Bt=Qt[lt];Object.keys(Jt).forEach(function(Ft){var $t=[right,bottom].indexOf(Ft)>=0?1:-1,jt=[top,bottom].indexOf(Ft)>=0?"y":"x";Jt[Ft]+=Bt[jt]*$t})}return Jt}function computeAutoPlacement(et,tt){tt===void 0&&(tt={});var rt=tt,nt=rt.placement,lt=rt.boundary,ut=rt.rootBoundary,dt=rt.padding,pt=rt.flipVariations,ht=rt.allowedAutoPlacements,mt=ht===void 0?placements:ht,xt=getVariation(nt),Mt=xt?pt?variationPlacements:variationPlacements.filter(function(At){return getVariation(At)===xt}):basePlacements,vt=Mt.filter(function(At){return mt.indexOf(At)>=0});vt.length===0&&(vt=Mt);var Ot=vt.reduce(function(At,Rt){return At[Rt]=detectOverflow(et,{placement:Rt,boundary:lt,rootBoundary:ut,padding:dt})[getBasePlacement(Rt)],At},{});return Object.keys(Ot).sort(function(At,Rt){return Ot[At]-Ot[Rt]})}function getExpandedFallbackPlacements(et){if(getBasePlacement(et)===auto)return[];var tt=getOppositePlacement(et);return[getOppositeVariationPlacement(et),tt,getOppositeVariationPlacement(tt)]}function flip(et){var tt=et.state,rt=et.options,nt=et.name;if(!tt.modifiersData[nt]._skip){for(var lt=rt.mainAxis,ut=lt===void 0?!0:lt,dt=rt.altAxis,pt=dt===void 0?!0:dt,ht=rt.fallbackPlacements,mt=rt.padding,xt=rt.boundary,Mt=rt.rootBoundary,vt=rt.altBoundary,Ot=rt.flipVariations,At=Ot===void 0?!0:Ot,Rt=rt.allowedAutoPlacements,zt=tt.options.placement,Tt=getBasePlacement(zt),Ct=Tt===zt,It=ht||(Ct||!At?[getOppositePlacement(zt)]:getExpandedFallbackPlacements(zt)),Dt=[zt].concat(It).reduce(function(nr,or){return nr.concat(getBasePlacement(or)===auto?computeAutoPlacement(tt,{placement:or,boundary:xt,rootBoundary:Mt,padding:mt,flipVariations:At,allowedAutoPlacements:Rt}):or)},[]),kt=tt.rects.reference,qt=tt.rects.popper,Nt=new Map,Yt=!0,Kt=Dt[0],Jt=0;Jt<Dt.length;Jt++){var Qt=Dt[Jt],Bt=getBasePlacement(Qt),Ft=getVariation(Qt)===start,$t=[top,bottom].indexOf(Bt)>=0,jt=$t?"width":"height",Wt=detectOverflow(tt,{placement:Qt,boundary:xt,rootBoundary:Mt,altBoundary:vt,padding:mt}),Ut=$t?Ft?right:left:Ft?bottom:top;kt[jt]>qt[jt]&&(Ut=getOppositePlacement(Ut));var Vt=getOppositePlacement(Ut),Ht=[];if(ut&&Ht.push(Wt[Bt]<=0),pt&&Ht.push(Wt[Ut]<=0,Wt[Vt]<=0),Ht.every(function(nr){return nr})){Kt=Qt,Yt=!1;break}Nt.set(Qt,Ht)}if(Yt)for(var Gt=At?3:1,Zt=function(or){var rr=Dt.find(function(cr){var ir=Nt.get(cr);if(ir)return ir.slice(0,or).every(function(dr){return dr})});if(rr)return Kt=rr,"break"},Xt=Gt;Xt>0;Xt--){var er=Zt(Xt);if(er==="break")break}tt.placement!==Kt&&(tt.modifiersData[nt]._skip=!0,tt.placement=Kt,tt.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(et,tt,rt){return rt===void 0&&(rt={x:0,y:0}),{top:et.top-tt.height-rt.y,right:et.right-tt.width+rt.x,bottom:et.bottom-tt.height+rt.y,left:et.left-tt.width-rt.x}}function isAnySideFullyClipped(et){return[top,right,bottom,left].some(function(tt){return et[tt]>=0})}function hide(et){var tt=et.state,rt=et.name,nt=tt.rects.reference,lt=tt.rects.popper,ut=tt.modifiersData.preventOverflow,dt=detectOverflow(tt,{elementContext:"reference"}),pt=detectOverflow(tt,{altBoundary:!0}),ht=getSideOffsets(dt,nt),mt=getSideOffsets(pt,lt,ut),xt=isAnySideFullyClipped(ht),Mt=isAnySideFullyClipped(mt);tt.modifiersData[rt]={referenceClippingOffsets:ht,popperEscapeOffsets:mt,isReferenceHidden:xt,hasPopperEscaped:Mt},tt.attributes.popper=Object.assign({},tt.attributes.popper,{"data-popper-reference-hidden":xt,"data-popper-escaped":Mt})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(et,tt,rt){var nt=getBasePlacement(et),lt=[left,top].indexOf(nt)>=0?-1:1,ut=typeof rt=="function"?rt(Object.assign({},tt,{placement:et})):rt,dt=ut[0],pt=ut[1];return dt=dt||0,pt=(pt||0)*lt,[left,right].indexOf(nt)>=0?{x:pt,y:dt}:{x:dt,y:pt}}function offset$1(et){var tt=et.state,rt=et.options,nt=et.name,lt=rt.offset,ut=lt===void 0?[0,0]:lt,dt=placements.reduce(function(xt,Mt){return xt[Mt]=distanceAndSkiddingToXY(Mt,tt.rects,ut),xt},{}),pt=dt[tt.placement],ht=pt.x,mt=pt.y;tt.modifiersData.popperOffsets!=null&&(tt.modifiersData.popperOffsets.x+=ht,tt.modifiersData.popperOffsets.y+=mt),tt.modifiersData[nt]=dt}const offset$2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset$1};function popperOffsets(et){var tt=et.state,rt=et.name;tt.modifiersData[rt]=computeOffsets({reference:tt.rects.reference,element:tt.rects.popper,strategy:"absolute",placement:tt.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(et){return et==="x"?"y":"x"}function preventOverflow(et){var tt=et.state,rt=et.options,nt=et.name,lt=rt.mainAxis,ut=lt===void 0?!0:lt,dt=rt.altAxis,pt=dt===void 0?!1:dt,ht=rt.boundary,mt=rt.rootBoundary,xt=rt.altBoundary,Mt=rt.padding,vt=rt.tether,Ot=vt===void 0?!0:vt,At=rt.tetherOffset,Rt=At===void 0?0:At,zt=detectOverflow(tt,{boundary:ht,rootBoundary:mt,padding:Mt,altBoundary:xt}),Tt=getBasePlacement(tt.placement),Ct=getVariation(tt.placement),It=!Ct,Dt=getMainAxisFromPlacement(Tt),kt=getAltAxis(Dt),qt=tt.modifiersData.popperOffsets,Nt=tt.rects.reference,Yt=tt.rects.popper,Kt=typeof Rt=="function"?Rt(Object.assign({},tt.rects,{placement:tt.placement})):Rt,Jt=typeof Kt=="number"?{mainAxis:Kt,altAxis:Kt}:Object.assign({mainAxis:0,altAxis:0},Kt),Qt=tt.modifiersData.offset?tt.modifiersData.offset[tt.placement]:null,Bt={x:0,y:0};if(qt){if(ut){var Ft,$t=Dt==="y"?top:left,jt=Dt==="y"?bottom:right,Wt=Dt==="y"?"height":"width",Ut=qt[Dt],Vt=Ut+zt[$t],Ht=Ut-zt[jt],Gt=Ot?-Yt[Wt]/2:0,Zt=Ct===start?Nt[Wt]:Yt[Wt],Xt=Ct===start?-Yt[Wt]:-Nt[Wt],er=tt.elements.arrow,nr=Ot&&er?getLayoutRect(er):{width:0,height:0},or=tt.modifiersData["arrow#persistent"]?tt.modifiersData["arrow#persistent"].padding:getFreshSideObject(),rr=or[$t],cr=or[jt],ir=within(0,Nt[Wt],nr[Wt]),dr=It?Nt[Wt]/2-Gt-ir-rr-Jt.mainAxis:Zt-ir-rr-Jt.mainAxis,gr=It?-Nt[Wt]/2+Gt+ir+cr+Jt.mainAxis:Xt+ir+cr+Jt.mainAxis,br=tt.elements.arrow&&getOffsetParent(tt.elements.arrow),ar=br?Dt==="y"?br.clientTop||0:br.clientLeft||0:0,ur=(Ft=Qt==null?void 0:Qt[Dt])!=null?Ft:0,xr=Ut+dr-ur-ar,Mr=Ut+gr-ur,Ar=within(Ot?min(Vt,xr):Vt,Ut,Ot?max(Ht,Mr):Ht);qt[Dt]=Ar,Bt[Dt]=Ar-Ut}if(pt){var Ir,Rr=Dt==="x"?top:left,wr=Dt==="x"?bottom:right,qr=qt[kt],Hr=kt==="y"?"height":"width",kr=qr+zt[Rr],$r=qr-zt[wr],yr=[top,left].indexOf(Tt)!==-1,Or=(Ir=Qt==null?void 0:Qt[kt])!=null?Ir:0,Dr=yr?kr:qr-Nt[Hr]-Yt[Hr]-Or+Jt.altAxis,Fr=yr?qr+Nt[Hr]+Yt[Hr]-Or-Jt.altAxis:$r,Yr=Ot&&yr?withinMaxClamp(Dr,qr,Fr):within(Ot?Dr:kr,qr,Ot?Fr:$r);qt[kt]=Yr,Bt[kt]=Yr-qr}tt.modifiersData[nt]=Bt}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(et){return{scrollLeft:et.scrollLeft,scrollTop:et.scrollTop}}function getNodeScroll(et){return et===getWindow(et)||!isHTMLElement$1(et)?getWindowScroll$3(et):getHTMLElementScroll(et)}function isElementScaled(et){var tt=et.getBoundingClientRect(),rt=round$3(tt.width)/et.offsetWidth||1,nt=round$3(tt.height)/et.offsetHeight||1;return rt!==1||nt!==1}function getCompositeRect(et,tt,rt){rt===void 0&&(rt=!1);var nt=isHTMLElement$1(tt),lt=isHTMLElement$1(tt)&&isElementScaled(tt),ut=getDocumentElement$2(tt),dt=getBoundingClientRect(et,lt,rt),pt={scrollLeft:0,scrollTop:0},ht={x:0,y:0};return(nt||!nt&&!rt)&&((getNodeName(tt)!=="body"||isScrollParent(ut))&&(pt=getNodeScroll(tt)),isHTMLElement$1(tt)?(ht=getBoundingClientRect(tt,!0),ht.x+=tt.clientLeft,ht.y+=tt.clientTop):ut&&(ht.x=getWindowScrollBarX(ut))),{x:dt.left+pt.scrollLeft-ht.x,y:dt.top+pt.scrollTop-ht.y,width:dt.width,height:dt.height}}function order(et){var tt=new Map,rt=new Set,nt=[];et.forEach(function(ut){tt.set(ut.name,ut)});function lt(ut){rt.add(ut.name);var dt=[].concat(ut.requires||[],ut.requiresIfExists||[]);dt.forEach(function(pt){if(!rt.has(pt)){var ht=tt.get(pt);ht&&lt(ht)}}),nt.push(ut)}return et.forEach(function(ut){rt.has(ut.name)||lt(ut)}),nt}function orderModifiers(et){var tt=order(et);return modifierPhases.reduce(function(rt,nt){return rt.concat(tt.filter(function(lt){return lt.phase===nt}))},[])}function debounce$3(et){var tt;return function(){return tt||(tt=new Promise(function(rt){Promise.resolve().then(function(){tt=void 0,rt(et())})})),tt}}function mergeByName(et){var tt=et.reduce(function(rt,nt){var lt=rt[nt.name];return rt[nt.name]=lt?Object.assign({},lt,nt,{options:Object.assign({},lt.options,nt.options),data:Object.assign({},lt.data,nt.data)}):nt,rt},{});return Object.keys(tt).map(function(rt){return tt[rt]})}var DEFAULT_OPTIONS$1={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return!tt.some(function(nt){return!(nt&&typeof nt.getBoundingClientRect=="function")})}function popperGenerator(et){et===void 0&&(et={});var tt=et,rt=tt.defaultModifiers,nt=rt===void 0?[]:rt,lt=tt.defaultOptions,ut=lt===void 0?DEFAULT_OPTIONS$1:lt;return function(pt,ht,mt){mt===void 0&&(mt=ut);var xt={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS$1,ut),modifiersData:{},elements:{reference:pt,popper:ht},attributes:{},styles:{}},Mt=[],vt=!1,Ot={state:xt,setOptions:function(Tt){var Ct=typeof Tt=="function"?Tt(xt.options):Tt;Rt(),xt.options=Object.assign({},ut,xt.options,Ct),xt.scrollParents={reference:isElement$2(pt)?listScrollParents(pt):pt.contextElement?listScrollParents(pt.contextElement):[],popper:listScrollParents(ht)};var It=orderModifiers(mergeByName([].concat(nt,xt.options.modifiers)));return xt.orderedModifiers=It.filter(function(Dt){return Dt.enabled}),At(),Ot.update()},forceUpdate:function(){if(!vt){var Tt=xt.elements,Ct=Tt.reference,It=Tt.popper;if(areValidElements(Ct,It)){xt.rects={reference:getCompositeRect(Ct,getOffsetParent(It),xt.options.strategy==="fixed"),popper:getLayoutRect(It)},xt.reset=!1,xt.placement=xt.options.placement,xt.orderedModifiers.forEach(function(Jt){return xt.modifiersData[Jt.name]=Object.assign({},Jt.data)});for(var Dt=0;Dt<xt.orderedModifiers.length;Dt++){if(xt.reset===!0){xt.reset=!1,Dt=-1;continue}var kt=xt.orderedModifiers[Dt],qt=kt.fn,Nt=kt.options,Yt=Nt===void 0?{}:Nt,Kt=kt.name;typeof qt=="function"&&(xt=qt({state:xt,options:Yt,name:Kt,instance:Ot})||xt)}}}},update:debounce$3(function(){return new Promise(function(zt){Ot.forceUpdate(),zt(xt)})}),destroy:function(){Rt(),vt=!0}};if(!areValidElements(pt,ht))return Ot;Ot.setOptions(mt).then(function(zt){!vt&&mt.onFirstUpdate&&mt.onFirstUpdate(zt)});function At(){xt.orderedModifiers.forEach(function(zt){var Tt=zt.name,Ct=zt.options,It=Ct===void 0?{}:Ct,Dt=zt.effect;if(typeof Dt=="function"){var kt=Dt({state:xt,name:Tt,instance:Ot,options:It}),qt=function(){};Mt.push(kt||qt)}})}function Rt(){Mt.forEach(function(zt){return zt()}),Mt=[]}return Ot}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$2,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});function getContainer$1(et){return typeof et=="function"?et():et}const Portal=reactExports.forwardRef(function(tt,rt){const{children:nt,container:lt,disablePortal:ut=!1}=tt,[dt,pt]=reactExports.useState(null),ht=useForkRef(reactExports.isValidElement(nt)?nt.ref:null,rt);if(useEnhancedEffect(()=>{ut||pt(getContainer$1(lt)||document.body)},[lt,ut]),useEnhancedEffect(()=>{if(dt&&!ut)return setRef(rt,dt),()=>{setRef(rt,null)}},[rt,dt,ut]),ut){if(reactExports.isValidElement(nt)){const mt={ref:ht};return reactExports.cloneElement(nt,mt)}return jsxRuntimeExports.jsx(reactExports.Fragment,{children:nt})}return jsxRuntimeExports.jsx(reactExports.Fragment,{children:dt&&reactDomExports.createPortal(nt,dt)})});function getPopperUtilityClass(et){return generateUtilityClass("MuiPopper",et)}generateUtilityClasses("MuiPopper",["root"]);const _excluded$1W=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],_excluded2$i=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function flipPlacement(et,tt){if(tt==="ltr")return et;switch(et){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 et}}function resolveAnchorEl$1(et){return typeof et=="function"?et():et}function isHTMLElement(et){return et.nodeType!==void 0}const useUtilityClasses$1q=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getPopperUtilityClass,tt)},defaultPopperOptions={},PopperTooltip=reactExports.forwardRef(function(tt,rt){var nt;const{anchorEl:lt,children:ut,direction:dt,disablePortal:pt,modifiers:ht,open:mt,placement:xt,popperOptions:Mt,popperRef:vt,slotProps:Ot={},slots:At={},TransitionProps:Rt}=tt,zt=_objectWithoutPropertiesLoose$d(tt,_excluded$1W),Tt=reactExports.useRef(null),Ct=useForkRef(Tt,rt),It=reactExports.useRef(null),Dt=useForkRef(It,vt),kt=reactExports.useRef(Dt);useEnhancedEffect(()=>{kt.current=Dt},[Dt]),reactExports.useImperativeHandle(vt,()=>It.current,[]);const qt=flipPlacement(xt,dt),[Nt,Yt]=reactExports.useState(qt),[Kt,Jt]=reactExports.useState(resolveAnchorEl$1(lt));reactExports.useEffect(()=>{It.current&&It.current.forceUpdate()}),reactExports.useEffect(()=>{lt&&Jt(resolveAnchorEl$1(lt))},[lt]),useEnhancedEffect(()=>{if(!Kt||!mt)return;const jt=Vt=>{Yt(Vt.placement)};let Wt=[{name:"preventOverflow",options:{altBoundary:pt}},{name:"flip",options:{altBoundary:pt}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Vt})=>{jt(Vt)}}];ht!=null&&(Wt=Wt.concat(ht)),Mt&&Mt.modifiers!=null&&(Wt=Wt.concat(Mt.modifiers));const Ut=createPopper(Kt,Tt.current,_extends$j({placement:qt},Mt,{modifiers:Wt}));return kt.current(Ut),()=>{Ut.destroy(),kt.current(null)}},[Kt,pt,ht,mt,Mt,qt]);const Qt={placement:Nt};Rt!==null&&(Qt.TransitionProps=Rt);const Bt=useUtilityClasses$1q(tt),Ft=(nt=At.root)!=null?nt:"div",$t=useSlotProps({elementType:Ft,externalSlotProps:Ot.root,externalForwardedProps:zt,additionalProps:{role:"tooltip",ref:Ct},ownerState:tt,className:Bt.root});return jsxRuntimeExports.jsx(Ft,_extends$j({},$t,{children:typeof ut=="function"?ut(Qt):ut}))}),Popper$1=reactExports.forwardRef(function(tt,rt){const{anchorEl:nt,children:lt,container:ut,direction:dt="ltr",disablePortal:pt=!1,keepMounted:ht=!1,modifiers:mt,open:xt,placement:Mt="bottom",popperOptions:vt=defaultPopperOptions,popperRef:Ot,style:At,transition:Rt=!1,slotProps:zt={},slots:Tt={}}=tt,Ct=_objectWithoutPropertiesLoose$d(tt,_excluded2$i),[It,Dt]=reactExports.useState(!0),kt=()=>{Dt(!1)},qt=()=>{Dt(!0)};if(!ht&&!xt&&(!Rt||It))return null;let Nt;if(ut)Nt=ut;else if(nt){const Jt=resolveAnchorEl$1(nt);Nt=Jt&&isHTMLElement(Jt)?ownerDocument(Jt).body:ownerDocument(null).body}const Yt=!xt&&ht&&(!Rt||It)?"none":void 0,Kt=Rt?{in:xt,onEnter:kt,onExited:qt}:void 0;return jsxRuntimeExports.jsx(Portal,{disablePortal:pt,container:Nt,children:jsxRuntimeExports.jsx(PopperTooltip,_extends$j({anchorEl:nt,direction:dt,disablePortal:pt,modifiers:mt,ref:rt,open:Rt?!It:xt,placement:Mt,popperOptions:vt,popperRef:Ot,slotProps:zt,slots:Tt},Ct,{style:_extends$j({position:"fixed",top:0,left:0,display:Yt},At),TransitionProps:Kt,children:lt}))})}),_excluded$1V=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],PopperRoot=styled(Popper$1,{name:"MuiPopper",slot:"Root",overridesResolver:(et,tt)=>tt.root})({}),Popper=reactExports.forwardRef(function(tt,rt){var nt;const lt=default_1$p(),ut=useDefaultProps({props:tt,name:"MuiPopper"}),{anchorEl:dt,component:pt,components:ht,componentsProps:mt,container:xt,disablePortal:Mt,keepMounted:vt,modifiers:Ot,open:At,placement:Rt,popperOptions:zt,popperRef:Tt,transition:Ct,slots:It,slotProps:Dt}=ut,kt=_objectWithoutPropertiesLoose$d(ut,_excluded$1V),qt=(nt=It==null?void 0:It.root)!=null?nt:ht==null?void 0:ht.Root,Nt=_extends$j({anchorEl:dt,container:xt,disablePortal:Mt,keepMounted:vt,modifiers:Ot,open:At,placement:Rt,popperOptions:zt,popperRef:Tt,transition:Ct},kt);return jsxRuntimeExports.jsx(PopperRoot,_extends$j({as:pt,direction:lt==null?void 0:lt.direction,slots:{root:qt},slotProps:Dt??mt},Nt,{ref:rt}))});function getListSubheaderUtilityClass(et){return generateUtilityClass("MuiListSubheader",et)}generateUtilityClasses("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const _excluded$1U=["className","color","component","disableGutters","disableSticky","inset"],useUtilityClasses$1p=et=>{const{classes:tt,color:rt,disableGutters:nt,inset:lt,disableSticky:ut}=et,dt={root:["root",rt!=="default"&&`color${capitalize$3(rt)}`,!nt&&"gutters",lt&&"inset",!ut&&"sticky"]};return composeClasses(dt,getListSubheaderUtilityClass,tt)},ListSubheaderRoot=styled("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.color!=="default"&&tt[`color${capitalize$3(rt.color)}`],!rt.disableGutters&&tt.gutters,rt.inset&&tt.inset,!rt.disableSticky&&tt.sticky]}})(({theme:et,ownerState:tt})=>_extends$j({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(et.vars||et).palette.text.secondary,fontFamily:et.typography.fontFamily,fontWeight:et.typography.fontWeightMedium,fontSize:et.typography.pxToRem(14)},tt.color==="primary"&&{color:(et.vars||et).palette.primary.main},tt.color==="inherit"&&{color:"inherit"},!tt.disableGutters&&{paddingLeft:16,paddingRight:16},tt.inset&&{paddingLeft:72},!tt.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(et.vars||et).palette.background.paper})),ListSubheader=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiListSubheader"}),{className:lt,color:ut="default",component:dt="li",disableGutters:pt=!1,disableSticky:ht=!1,inset:mt=!1}=nt,xt=_objectWithoutPropertiesLoose$d(nt,_excluded$1U),Mt=_extends$j({},nt,{color:ut,component:dt,disableGutters:pt,disableSticky:ht,inset:mt}),vt=useUtilityClasses$1p(Mt);return jsxRuntimeExports.jsx(ListSubheaderRoot,_extends$j({as:dt,className:clsx(vt.root,lt),ref:rt,ownerState:Mt},xt))});ListSubheader.muiSkipListHighlight=!0;const CancelIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function getChipUtilityClass(et){return generateUtilityClass("MuiChip",et)}const chipClasses=generateUtilityClasses("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),_excluded$1T=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],useUtilityClasses$1o=et=>{const{classes:tt,disabled:rt,size:nt,color:lt,iconColor:ut,onDelete:dt,clickable:pt,variant:ht}=et,mt={root:["root",ht,rt&&"disabled",`size${capitalize$3(nt)}`,`color${capitalize$3(lt)}`,pt&&"clickable",pt&&`clickableColor${capitalize$3(lt)}`,dt&&"deletable",dt&&`deletableColor${capitalize$3(lt)}`,`${ht}${capitalize$3(lt)}`],label:["label",`label${capitalize$3(nt)}`],avatar:["avatar",`avatar${capitalize$3(nt)}`,`avatarColor${capitalize$3(lt)}`],icon:["icon",`icon${capitalize$3(nt)}`,`iconColor${capitalize$3(ut)}`],deleteIcon:["deleteIcon",`deleteIcon${capitalize$3(nt)}`,`deleteIconColor${capitalize$3(lt)}`,`deleteIcon${capitalize$3(ht)}Color${capitalize$3(lt)}`]};return composeClasses(mt,getChipUtilityClass,tt)},ChipRoot=styled("div",{name:"MuiChip",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et,{color:nt,iconColor:lt,clickable:ut,onDelete:dt,size:pt,variant:ht}=rt;return[{[`& .${chipClasses.avatar}`]:tt.avatar},{[`& .${chipClasses.avatar}`]:tt[`avatar${capitalize$3(pt)}`]},{[`& .${chipClasses.avatar}`]:tt[`avatarColor${capitalize$3(nt)}`]},{[`& .${chipClasses.icon}`]:tt.icon},{[`& .${chipClasses.icon}`]:tt[`icon${capitalize$3(pt)}`]},{[`& .${chipClasses.icon}`]:tt[`iconColor${capitalize$3(lt)}`]},{[`& .${chipClasses.deleteIcon}`]:tt.deleteIcon},{[`& .${chipClasses.deleteIcon}`]:tt[`deleteIcon${capitalize$3(pt)}`]},{[`& .${chipClasses.deleteIcon}`]:tt[`deleteIconColor${capitalize$3(nt)}`]},{[`& .${chipClasses.deleteIcon}`]:tt[`deleteIcon${capitalize$3(ht)}Color${capitalize$3(nt)}`]},tt.root,tt[`size${capitalize$3(pt)}`],tt[`color${capitalize$3(nt)}`],ut&&tt.clickable,ut&&nt!=="default"&&tt[`clickableColor${capitalize$3(nt)})`],dt&&tt.deletable,dt&&nt!=="default"&&tt[`deletableColor${capitalize$3(nt)}`],tt[ht],tt[`${ht}${capitalize$3(nt)}`]]}})(({theme:et,ownerState:tt})=>{const rt=et.palette.mode==="light"?et.palette.grey[700]:et.palette.grey[300];return _extends$j({maxWidth:"100%",fontFamily:et.typography.fontFamily,fontSize:et.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(et.vars||et).palette.text.primary,backgroundColor:(et.vars||et).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:et.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${chipClasses.disabled}`]:{opacity:(et.vars||et).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${chipClasses.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:et.vars?et.vars.palette.Chip.defaultAvatarColor:rt,fontSize:et.typography.pxToRem(12)},[`& .${chipClasses.avatarColorPrimary}`]:{color:(et.vars||et).palette.primary.contrastText,backgroundColor:(et.vars||et).palette.primary.dark},[`& .${chipClasses.avatarColorSecondary}`]:{color:(et.vars||et).palette.secondary.contrastText,backgroundColor:(et.vars||et).palette.secondary.dark},[`& .${chipClasses.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:et.typography.pxToRem(10)},[`& .${chipClasses.icon}`]:_extends$j({marginLeft:5,marginRight:-6},tt.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},tt.iconColor===tt.color&&_extends$j({color:et.vars?et.vars.palette.Chip.defaultIconColor:rt},tt.color!=="default"&&{color:"inherit"})),[`& .${chipClasses.deleteIcon}`]:_extends$j({WebkitTapHighlightColor:"transparent",color:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / 0.26)`:alpha_1(et.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / 0.4)`:alpha_1(et.palette.text.primary,.4)}},tt.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},tt.color!=="default"&&{color:et.vars?`rgba(${et.vars.palette[tt.color].contrastTextChannel} / 0.7)`:alpha_1(et.palette[tt.color].contrastText,.7),"&:hover, &:active":{color:(et.vars||et).palette[tt.color].contrastText}})},tt.size==="small"&&{height:24},tt.color!=="default"&&{backgroundColor:(et.vars||et).palette[tt.color].main,color:(et.vars||et).palette[tt.color].contrastText},tt.onDelete&&{[`&.${chipClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.action.selectedChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette.action.selected,et.palette.action.selectedOpacity+et.palette.action.focusOpacity)}},tt.onDelete&&tt.color!=="default"&&{[`&.${chipClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette[tt.color].dark}})},({theme:et,ownerState:tt})=>_extends$j({},tt.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette.action.selectedChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.hoverOpacity}))`:alpha_1(et.palette.action.selected,et.palette.action.selectedOpacity+et.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.action.selectedChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette.action.selected,et.palette.action.selectedOpacity+et.palette.action.focusOpacity)},"&:active":{boxShadow:(et.vars||et).shadows[1]}},tt.clickable&&tt.color!=="default"&&{[`&:hover, &.${chipClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette[tt.color].dark}}),({theme:et,ownerState:tt})=>_extends$j({},tt.variant==="outlined"&&{backgroundColor:"transparent",border:et.vars?`1px solid ${et.vars.palette.Chip.defaultBorder}`:`1px solid ${et.palette.mode==="light"?et.palette.grey[400]:et.palette.grey[700]}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:(et.vars||et).palette.action.hover},[`&.${chipClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette.action.focus},[`& .${chipClasses.avatar}`]:{marginLeft:4},[`& .${chipClasses.avatarSmall}`]:{marginLeft:2},[`& .${chipClasses.icon}`]:{marginLeft:4},[`& .${chipClasses.iconSmall}`]:{marginLeft:2},[`& .${chipClasses.deleteIcon}`]:{marginRight:5},[`& .${chipClasses.deleteIconSmall}`]:{marginRight:3}},tt.variant==="outlined"&&tt.color!=="default"&&{color:(et.vars||et).palette[tt.color].main,border:`1px solid ${et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / 0.7)`:alpha_1(et.palette[tt.color].main,.7)}`,[`&.${chipClasses.clickable}:hover`]:{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(et.palette[tt.color].main,et.palette.action.hoverOpacity)},[`&.${chipClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.focusOpacity})`:alpha_1(et.palette[tt.color].main,et.palette.action.focusOpacity)},[`& .${chipClasses.deleteIcon}`]:{color:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / 0.7)`:alpha_1(et.palette[tt.color].main,.7),"&:hover, &:active":{color:(et.vars||et).palette[tt.color].main}}})),ChipLabel=styled("span",{name:"MuiChip",slot:"Label",overridesResolver:(et,tt)=>{const{ownerState:rt}=et,{size:nt}=rt;return[tt.label,tt[`label${capitalize$3(nt)}`]]}})(({ownerState:et})=>_extends$j({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},et.variant==="outlined"&&{paddingLeft:11,paddingRight:11},et.size==="small"&&{paddingLeft:8,paddingRight:8},et.size==="small"&&et.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function isDeleteKeyboardEvent(et){return et.key==="Backspace"||et.key==="Delete"}const Chip=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiChip"}),{avatar:lt,className:ut,clickable:dt,color:pt="default",component:ht,deleteIcon:mt,disabled:xt=!1,icon:Mt,label:vt,onClick:Ot,onDelete:At,onKeyDown:Rt,onKeyUp:zt,size:Tt="medium",variant:Ct="filled",tabIndex:It,skipFocusWhenDisabled:Dt=!1}=nt,kt=_objectWithoutPropertiesLoose$d(nt,_excluded$1T),qt=reactExports.useRef(null),Nt=useForkRef(qt,rt),Yt=Ht=>{Ht.stopPropagation(),At&&At(Ht)},Kt=Ht=>{Ht.currentTarget===Ht.target&&isDeleteKeyboardEvent(Ht)&&Ht.preventDefault(),Rt&&Rt(Ht)},Jt=Ht=>{Ht.currentTarget===Ht.target&&(At&&isDeleteKeyboardEvent(Ht)?At(Ht):Ht.key==="Escape"&&qt.current&&qt.current.blur()),zt&&zt(Ht)},Qt=dt!==!1&&Ot?!0:dt,Bt=Qt||At?ButtonBase:ht||"div",Ft=_extends$j({},nt,{component:Bt,disabled:xt,size:Tt,color:pt,iconColor:reactExports.isValidElement(Mt)&&Mt.props.color||pt,onDelete:!!At,clickable:Qt,variant:Ct}),$t=useUtilityClasses$1o(Ft),jt=Bt===ButtonBase?_extends$j({component:ht||"div",focusVisibleClassName:$t.focusVisible},At&&{disableRipple:!0}):{};let Wt=null;At&&(Wt=mt&&reactExports.isValidElement(mt)?reactExports.cloneElement(mt,{className:clsx(mt.props.className,$t.deleteIcon),onClick:Yt}):jsxRuntimeExports.jsx(CancelIcon,{className:clsx($t.deleteIcon),onClick:Yt}));let Ut=null;lt&&reactExports.isValidElement(lt)&&(Ut=reactExports.cloneElement(lt,{className:clsx($t.avatar,lt.props.className)}));let Vt=null;return Mt&&reactExports.isValidElement(Mt)&&(Vt=reactExports.cloneElement(Mt,{className:clsx($t.icon,Mt.props.className)})),jsxRuntimeExports.jsxs(ChipRoot,_extends$j({as:Bt,className:clsx($t.root,ut),disabled:Qt&&xt?!0:void 0,onClick:Ot,onKeyDown:Kt,onKeyUp:Jt,ref:Nt,tabIndex:Dt&&xt?-1:It,ownerState:Ft},jt,kt,{children:[Ut||Vt,jsxRuntimeExports.jsx(ChipLabel,{className:clsx($t.label),ownerState:Ft,children:vt}),Wt]}))}),_excluded$1S=["onChange","maxRows","minRows","style","value"];function getStyleValue(et){return parseInt(et,10)||0}const styles$3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function isEmpty$4(et){return et==null||Object.keys(et).length===0||et.outerHeightStyle===0&&!et.overflowing}const TextareaAutosize=reactExports.forwardRef(function(tt,rt){const{onChange:nt,maxRows:lt,minRows:ut=1,style:dt,value:pt}=tt,ht=_objectWithoutPropertiesLoose$d(tt,_excluded$1S),{current:mt}=reactExports.useRef(pt!=null),xt=reactExports.useRef(null),Mt=useForkRef(rt,xt),vt=reactExports.useRef(null),Ot=reactExports.useRef(null),At=reactExports.useCallback(()=>{const Tt=xt.current,It=ownerWindow(Tt).getComputedStyle(Tt);if(It.width==="0px")return{outerHeightStyle:0,overflowing:!1};const Dt=Ot.current;Dt.style.width=It.width,Dt.value=Tt.value||tt.placeholder||"x",Dt.value.slice(-1)===`
`&&(Dt.value+=" ");const kt=It.boxSizing,qt=getStyleValue(It.paddingBottom)+getStyleValue(It.paddingTop),Nt=getStyleValue(It.borderBottomWidth)+getStyleValue(It.borderTopWidth),Yt=Dt.scrollHeight;Dt.value="x";const Kt=Dt.scrollHeight;let Jt=Yt;ut&&(Jt=Math.max(Number(ut)*Kt,Jt)),lt&&(Jt=Math.min(Number(lt)*Kt,Jt)),Jt=Math.max(Jt,Kt);const Qt=Jt+(kt==="border-box"?qt+Nt:0),Bt=Math.abs(Jt-Yt)<=1;return{outerHeightStyle:Qt,overflowing:Bt}},[lt,ut,tt.placeholder]),Rt=reactExports.useCallback(()=>{const Tt=At();if(isEmpty$4(Tt))return;const Ct=Tt.outerHeightStyle,It=xt.current;vt.current!==Ct&&(vt.current=Ct,It.style.height=`${Ct}px`),It.style.overflow=Tt.overflowing?"hidden":""},[At]);useEnhancedEffect(()=>{const Tt=()=>{Rt()};let Ct;const It=debounce$4(Tt),Dt=xt.current,kt=ownerWindow(Dt);kt.addEventListener("resize",It);let qt;return typeof ResizeObserver<"u"&&(qt=new ResizeObserver(Tt),qt.observe(Dt)),()=>{It.clear(),cancelAnimationFrame(Ct),kt.removeEventListener("resize",It),qt&&qt.disconnect()}},[At,Rt]),useEnhancedEffect(()=>{Rt()});const zt=Tt=>{mt||Rt(),nt&&nt(Tt)};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("textarea",_extends$j({value:pt,onChange:zt,ref:Mt,rows:ut,style:dt},ht)),jsxRuntimeExports.jsx("textarea",{"aria-hidden":!0,className:tt.className,readOnly:!0,ref:Ot,tabIndex:-1,style:_extends$j({},styles$3.shadow,dt,{paddingTop:0,paddingBottom:0})})]})});function formControlState({props:et,states:tt,muiFormControl:rt}){return tt.reduce((nt,lt)=>(nt[lt]=et[lt],rt&&typeof et[lt]>"u"&&(nt[lt]=rt[lt]),nt),{})}const FormControlContext=reactExports.createContext(void 0);function useFormControl(){return reactExports.useContext(FormControlContext)}function GlobalStyles(et){return jsxRuntimeExports.jsx(GlobalStyles$1,_extends$j({},et,{defaultTheme:defaultTheme$4,themeId:THEME_ID}))}function hasValue(et){return et!=null&&!(Array.isArray(et)&&et.length===0)}function isFilled$1(et,tt=!1){return et&&(hasValue(et.value)&&et.value!==""||tt&&hasValue(et.defaultValue)&&et.defaultValue!=="")}function isAdornedStart(et){return et.startAdornment}function getInputBaseUtilityClass(et){return generateUtilityClass("MuiInputBase",et)}const inputBaseClasses=generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_excluded$1R=["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"],rootOverridesResolver=(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.formControl&&tt.formControl,rt.startAdornment&&tt.adornedStart,rt.endAdornment&&tt.adornedEnd,rt.error&&tt.error,rt.size==="small"&&tt.sizeSmall,rt.multiline&&tt.multiline,rt.color&&tt[`color${capitalize$3(rt.color)}`],rt.fullWidth&&tt.fullWidth,rt.hiddenLabel&&tt.hiddenLabel]},inputOverridesResolver=(et,tt)=>{const{ownerState:rt}=et;return[tt.input,rt.size==="small"&&tt.inputSizeSmall,rt.multiline&&tt.inputMultiline,rt.type==="search"&&tt.inputTypeSearch,rt.startAdornment&&tt.inputAdornedStart,rt.endAdornment&&tt.inputAdornedEnd,rt.hiddenLabel&&tt.inputHiddenLabel]},useUtilityClasses$1n=et=>{const{classes:tt,color:rt,disabled:nt,error:lt,endAdornment:ut,focused:dt,formControl:pt,fullWidth:ht,hiddenLabel:mt,multiline:xt,readOnly:Mt,size:vt,startAdornment:Ot,type:At}=et,Rt={root:["root",`color${capitalize$3(rt)}`,nt&&"disabled",lt&&"error",ht&&"fullWidth",dt&&"focused",pt&&"formControl",vt&&vt!=="medium"&&`size${capitalize$3(vt)}`,xt&&"multiline",Ot&&"adornedStart",ut&&"adornedEnd",mt&&"hiddenLabel",Mt&&"readOnly"],input:["input",nt&&"disabled",At==="search"&&"inputTypeSearch",xt&&"inputMultiline",vt==="small"&&"inputSizeSmall",mt&&"inputHiddenLabel",Ot&&"inputAdornedStart",ut&&"inputAdornedEnd",Mt&&"readOnly"]};return composeClasses(Rt,getInputBaseUtilityClass,tt)},InputBaseRoot=styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:et,ownerState:tt})=>_extends$j({},et.typography.body1,{color:(et.vars||et).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses.disabled}`]:{color:(et.vars||et).palette.text.disabled,cursor:"default"}},tt.multiline&&_extends$j({padding:"4px 0 5px"},tt.size==="small"&&{paddingTop:1}),tt.fullWidth&&{width:"100%"})),InputBaseComponent=styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:et,ownerState:tt})=>{const rt=et.palette.mode==="light",nt=_extends$j({color:"currentColor"},et.vars?{opacity:et.vars.opacity.inputPlaceholder}:{opacity:rt?.42:.5},{transition:et.transitions.create("opacity",{duration:et.transitions.duration.shorter})}),lt={opacity:"0 !important"},ut=et.vars?{opacity:et.vars.opacity.inputPlaceholder}:{opacity:rt?.42:.5};return _extends$j({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":nt,"&::-moz-placeholder":nt,"&:-ms-input-placeholder":nt,"&::-ms-input-placeholder":nt,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]:{"&::-webkit-input-placeholder":lt,"&::-moz-placeholder":lt,"&:-ms-input-placeholder":lt,"&::-ms-input-placeholder":lt,"&:focus::-webkit-input-placeholder":ut,"&:focus::-moz-placeholder":ut,"&:focus:-ms-input-placeholder":ut,"&:focus::-ms-input-placeholder":ut},[`&.${inputBaseClasses.disabled}`]:{opacity:1,WebkitTextFillColor:(et.vars||et).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},tt.size==="small"&&{paddingTop:1},tt.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},tt.type==="search"&&{MozAppearance:"textfield"})}),inputGlobalStyles=jsxRuntimeExports.jsx(GlobalStyles,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),InputBase=reactExports.forwardRef(function(tt,rt){var nt;const lt=useDefaultProps({props:tt,name:"MuiInputBase"}),{"aria-describedby":ut,autoComplete:dt,autoFocus:pt,className:ht,components:mt={},componentsProps:xt={},defaultValue:Mt,disabled:vt,disableInjectingGlobalStyles:Ot,endAdornment:At,fullWidth:Rt=!1,id:zt,inputComponent:Tt="input",inputProps:Ct={},inputRef:It,maxRows:Dt,minRows:kt,multiline:qt=!1,name:Nt,onBlur:Yt,onChange:Kt,onClick:Jt,onFocus:Qt,onKeyDown:Bt,onKeyUp:Ft,placeholder:$t,readOnly:jt,renderSuffix:Wt,rows:Ut,slotProps:Vt={},slots:Ht={},startAdornment:Gt,type:Zt="text",value:Xt}=lt,er=_objectWithoutPropertiesLoose$d(lt,_excluded$1R),nr=Ct.value!=null?Ct.value:Xt,{current:or}=reactExports.useRef(nr!=null),rr=reactExports.useRef(),cr=reactExports.useCallback(Yr=>{},[]),ir=useForkRef(rr,It,Ct.ref,cr),[dr,gr]=reactExports.useState(!1),br=useFormControl(),ar=formControlState({props:lt,muiFormControl:br,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ar.focused=br?br.focused:dr,reactExports.useEffect(()=>{!br&&vt&&dr&&(gr(!1),Yt&&Yt())},[br,vt,dr,Yt]);const ur=br&&br.onFilled,xr=br&&br.onEmpty,Mr=reactExports.useCallback(Yr=>{isFilled$1(Yr)?ur&&ur():xr&&xr()},[ur,xr]);useEnhancedEffect(()=>{or&&Mr({value:nr})},[nr,Mr,or]);const Ar=Yr=>{if(ar.disabled){Yr.stopPropagation();return}Qt&&Qt(Yr),Ct.onFocus&&Ct.onFocus(Yr),br&&br.onFocus?br.onFocus(Yr):gr(!0)},Ir=Yr=>{Yt&&Yt(Yr),Ct.onBlur&&Ct.onBlur(Yr),br&&br.onBlur?br.onBlur(Yr):gr(!1)},Rr=(Yr,...Gr)=>{if(!or){const Jr=Yr.target||rr.current;if(Jr==null)throw new Error(formatMuiErrorMessage$1(1));Mr({value:Jr.value})}Ct.onChange&&Ct.onChange(Yr,...Gr),Kt&&Kt(Yr,...Gr)};reactExports.useEffect(()=>{Mr(rr.current)},[]);const wr=Yr=>{rr.current&&Yr.currentTarget===Yr.target&&rr.current.focus(),Jt&&Jt(Yr)};let qr=Tt,Hr=Ct;qt&&qr==="input"&&(Ut?Hr=_extends$j({type:void 0,minRows:Ut,maxRows:Ut},Hr):Hr=_extends$j({type:void 0,maxRows:Dt,minRows:kt},Hr),qr=TextareaAutosize);const kr=Yr=>{Mr(Yr.animationName==="mui-auto-fill-cancel"?rr.current:{value:"x"})};reactExports.useEffect(()=>{br&&br.setAdornedStart(!!Gt)},[br,Gt]);const $r=_extends$j({},lt,{color:ar.color||"primary",disabled:ar.disabled,endAdornment:At,error:ar.error,focused:ar.focused,formControl:br,fullWidth:Rt,hiddenLabel:ar.hiddenLabel,multiline:qt,size:ar.size,startAdornment:Gt,type:Zt}),yr=useUtilityClasses$1n($r),Or=Ht.root||mt.Root||InputBaseRoot,Dr=Vt.root||xt.root||{},Fr=Ht.input||mt.Input||InputBaseComponent;return Hr=_extends$j({},Hr,(nt=Vt.input)!=null?nt:xt.input),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[!Ot&&inputGlobalStyles,jsxRuntimeExports.jsxs(Or,_extends$j({},Dr,!isHostComponent(Or)&&{ownerState:_extends$j({},$r,Dr.ownerState)},{ref:rt,onClick:wr},er,{className:clsx(yr.root,Dr.className,ht,jt&&"MuiInputBase-readOnly"),children:[Gt,jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(Fr,_extends$j({ownerState:$r,"aria-invalid":ar.error,"aria-describedby":ut,autoComplete:dt,autoFocus:pt,defaultValue:Mt,disabled:ar.disabled,id:zt,onAnimationStart:kr,name:Nt,placeholder:$t,readOnly:jt,required:ar.required,rows:Ut,value:nr,onKeyDown:Bt,onKeyUp:Ft,type:Zt},Hr,!isHostComponent(Fr)&&{as:qr,ownerState:_extends$j({},$r,Hr.ownerState)},{ref:ir,className:clsx(yr.input,Hr.className,jt&&"MuiInputBase-readOnly"),onBlur:Ir,onChange:Rr,onFocus:Ar}))}),At,Wt?Wt(_extends$j({},ar,{startAdornment:Gt})):null]}))]})});function getInputUtilityClass(et){return generateUtilityClass("MuiInput",et)}const inputClasses=_extends$j({},inputBaseClasses,generateUtilityClasses("MuiInput",["root","underline","input"]));function getOutlinedInputUtilityClass(et){return generateUtilityClass("MuiOutlinedInput",et)}const outlinedInputClasses=_extends$j({},inputBaseClasses,generateUtilityClasses("MuiOutlinedInput",["root","notchedOutline","input"]));function getFilledInputUtilityClass(et){return generateUtilityClass("MuiFilledInput",et)}const filledInputClasses=_extends$j({},inputBaseClasses,generateUtilityClasses("MuiFilledInput",["root","underline","input"])),ArrowDropDownIcon$1=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function getAutocompleteUtilityClass(et){return generateUtilityClass("MuiAutocomplete",et)}const autocompleteClasses=generateUtilityClasses("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var _ClearIcon,_ArrowDropDownIcon;const _excluded$1Q=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],_excluded2$h=["ref"],_excluded3$6=["key"],_excluded4$1=["key"],useUtilityClasses$1m=et=>{const{classes:tt,disablePortal:rt,expanded:nt,focused:lt,fullWidth:ut,hasClearIcon:dt,hasPopupIcon:pt,inputFocused:ht,popupOpen:mt,size:xt}=et,Mt={root:["root",nt&&"expanded",lt&&"focused",ut&&"fullWidth",dt&&"hasClearIcon",pt&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",ht&&"inputFocused"],tag:["tag",`tagSize${capitalize$3(xt)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",mt&&"popupIndicatorOpen"],popper:["popper",rt&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return composeClasses(Mt,getAutocompleteUtilityClass,tt)},AutocompleteRoot=styled("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et,{fullWidth:nt,hasClearIcon:lt,hasPopupIcon:ut,inputFocused:dt,size:pt}=rt;return[{[`& .${autocompleteClasses.tag}`]:tt.tag},{[`& .${autocompleteClasses.tag}`]:tt[`tagSize${capitalize$3(pt)}`]},{[`& .${autocompleteClasses.inputRoot}`]:tt.inputRoot},{[`& .${autocompleteClasses.input}`]:tt.input},{[`& .${autocompleteClasses.input}`]:dt&&tt.inputFocused},tt.root,nt&&tt.fullWidth,ut&&tt.hasPopupIcon,lt&&tt.hasClearIcon]}})({[`&.${autocompleteClasses.focused} .${autocompleteClasses.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${autocompleteClasses.clearIndicator}`]:{visibility:"visible"}},[`& .${autocompleteClasses.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${autocompleteClasses.inputRoot}`]:{[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:30},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:56},[`& .${autocompleteClasses.input}`]:{width:0,minWidth:30}},[`& .${inputClasses.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${inputClasses.root}.${inputBaseClasses.sizeSmall}`]:{[`& .${inputClasses.input}`]:{padding:"2px 4px 3px 0"}},[`& .${outlinedInputClasses.root}`]:{padding:9,[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:39},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:65},[`& .${autocompleteClasses.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${autocompleteClasses.endAdornment}`]:{right:9}},[`& .${outlinedInputClasses.root}.${inputBaseClasses.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${autocompleteClasses.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${filledInputClasses.root}`]:{paddingTop:19,paddingLeft:8,[`.${autocompleteClasses.hasPopupIcon}&, .${autocompleteClasses.hasClearIcon}&`]:{paddingRight:39},[`.${autocompleteClasses.hasPopupIcon}.${autocompleteClasses.hasClearIcon}&`]:{paddingRight:65},[`& .${filledInputClasses.input}`]:{padding:"7px 4px"},[`& .${autocompleteClasses.endAdornment}`]:{right:9}},[`& .${filledInputClasses.root}.${inputBaseClasses.sizeSmall}`]:{paddingBottom:1,[`& .${filledInputClasses.input}`]:{padding:"2.5px 4px"}},[`& .${inputBaseClasses.hiddenLabel}`]:{paddingTop:8},[`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${autocompleteClasses.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${filledInputClasses.root}.${inputBaseClasses.hiddenLabel}.${inputBaseClasses.sizeSmall}`]:{[`& .${autocompleteClasses.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${autocompleteClasses.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${autocompleteClasses.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${autocompleteClasses.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${autocompleteClasses.inputRoot}`]:{flexWrap:"wrap"}}}]}),AutocompleteEndAdornment=styled("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(et,tt)=>tt.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),AutocompleteClearIndicator=styled(IconButton,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(et,tt)=>tt.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),AutocompletePopupIndicator=styled(IconButton,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:et},tt)=>_extends$j({},tt.popupIndicator,et.popupOpen&&tt.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),AutocompletePopper=styled(Popper,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[{[`& .${autocompleteClasses.option}`]:tt.option},tt.popper,rt.disablePortal&&tt.popperDisablePortal]}})(({theme:et})=>({zIndex:(et.vars||et).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),AutocompletePaper=styled(Paper,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(et,tt)=>tt.paper})(({theme:et})=>_extends$j({},et.typography.body1,{overflow:"auto"})),AutocompleteLoading=styled("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(et,tt)=>tt.loading})(({theme:et})=>({color:(et.vars||et).palette.text.secondary,padding:"14px 16px"})),AutocompleteNoOptions=styled("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(et,tt)=>tt.noOptions})(({theme:et})=>({color:(et.vars||et).palette.text.secondary,padding:"14px 16px"})),AutocompleteListbox=styled("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(et,tt)=>tt.listbox})(({theme:et})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${autocompleteClasses.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[et.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${autocompleteClasses.focused}`]:{backgroundColor:(et.vars||et).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(et.vars||et).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${autocompleteClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.selectedOpacity})`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity),[`&.${autocompleteClasses.focused}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.hoverOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(et.vars||et).palette.action.selected}},[`&.${autocompleteClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.focusOpacity)}}}})),AutocompleteGroupLabel=styled(ListSubheader,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(et,tt)=>tt.groupLabel})(({theme:et})=>({backgroundColor:(et.vars||et).palette.background.paper,top:-8})),AutocompleteGroupUl=styled("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(et,tt)=>tt.groupUl})({padding:0,[`& .${autocompleteClasses.option}`]:{paddingLeft:24}}),Autocomplete=reactExports.forwardRef(function(tt,rt){var nt,lt,ut,dt;const pt=useDefaultProps({props:tt,name:"MuiAutocomplete"}),{autoComplete:ht=!1,autoHighlight:mt=!1,autoSelect:xt=!1,blurOnSelect:Mt=!1,ChipProps:vt,className:Ot,clearIcon:At=_ClearIcon||(_ClearIcon=jsxRuntimeExports.jsx(ClearIcon$1,{fontSize:"small"})),clearOnBlur:Rt=!pt.freeSolo,clearOnEscape:zt=!1,clearText:Tt="Clear",closeText:Ct="Close",componentsProps:It={},defaultValue:Dt=pt.multiple?[]:null,disableClearable:kt=!1,disableCloseOnSelect:qt=!1,disabled:Nt=!1,disabledItemsFocusable:Yt=!1,disableListWrap:Kt=!1,disablePortal:Jt=!1,filterSelectedOptions:Qt=!1,forcePopupIcon:Bt="auto",freeSolo:Ft=!1,fullWidth:$t=!1,getLimitTagsText:jt=Wn=>`+${Wn}`,getOptionLabel:Wt,groupBy:Ut,handleHomeEndKeys:Vt=!pt.freeSolo,includeInputInList:Ht=!1,limitTags:Gt=-1,ListboxComponent:Zt="ul",ListboxProps:Xt,loading:er=!1,loadingText:nr="Loading…",multiple:or=!1,noOptionsText:rr="No options",openOnFocus:cr=!1,openText:ir="Open",PaperComponent:dr=Paper,PopperComponent:gr=Popper,popupIcon:br=_ArrowDropDownIcon||(_ArrowDropDownIcon=jsxRuntimeExports.jsx(ArrowDropDownIcon$1,{})),readOnly:ar=!1,renderGroup:ur,renderInput:xr,renderOption:Mr,renderTags:Ar,selectOnFocus:Ir=!pt.freeSolo,size:Rr="medium",slotProps:wr={}}=pt,qr=_objectWithoutPropertiesLoose$d(pt,_excluded$1Q),{getRootProps:Hr,getInputProps:kr,getInputLabelProps:$r,getPopupIndicatorProps:yr,getClearProps:Or,getTagProps:Dr,getListboxProps:Fr,getOptionProps:Yr,value:Gr,dirty:Jr,expanded:jr,id:Zr,popupOpen:Xr,focused:cn,focusedTag:Qr,anchorEl:rn,setAnchorEl:_r,inputValue:ln,groupedOptions:vn}=useAutocomplete(_extends$j({},pt,{componentName:"Autocomplete"})),Cr=!kt&&!Nt&&Jr&&!ar,gn=(!Ft||Bt===!0)&&Bt!==!1,{onMouseDown:xn}=kr(),{ref:Vr}=Xt??{},fn=Fr(),{ref:pn}=fn,qn=_objectWithoutPropertiesLoose$d(fn,_excluded2$h),Bn=useForkRef(pn,Vr),Tr=Wt||(Wn=>{var ao;return(ao=Wn.label)!=null?ao:Wn}),Pr=_extends$j({},pt,{disablePortal:Jt,expanded:jr,focused:cn,fullWidth:$t,getOptionLabel:Tr,hasClearIcon:Cr,hasPopupIcon:gn,inputFocused:Qr===-1,popupOpen:Xr,size:Rr}),an=useUtilityClasses$1m(Pr);let nn;if(or&&Gr.length>0){const Wn=ao=>_extends$j({className:an.tag,disabled:Nt},Dr(ao));Ar?nn=Ar(Gr,Wn,Pr):nn=Gr.map((ao,_i)=>{const ho=Wn({index:_i}),{key:So}=ho,ko=_objectWithoutPropertiesLoose$d(ho,_excluded3$6);return jsxRuntimeExports.jsx(Chip,_extends$j({label:Tr(ao),size:Rr},ko,vt),So)})}if(Gt>-1&&Array.isArray(nn)){const Wn=nn.length-Gt;!cn&&Wn>0&&(nn=nn.splice(0,Gt),nn.push(jsxRuntimeExports.jsx("span",{className:an.tag,children:jt(Wn)},nn.length)))}const An=ur||(Wn=>jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(AutocompleteGroupLabel,{className:an.groupLabel,ownerState:Pr,component:"div",children:Wn.group}),jsxRuntimeExports.jsx(AutocompleteGroupUl,{className:an.groupUl,ownerState:Pr,children:Wn.children})]},Wn.key)),Cn=Mr||((Wn,ao)=>{const{key:_i}=Wn,ho=_objectWithoutPropertiesLoose$d(Wn,_excluded4$1);return jsxRuntimeExports.jsx("li",_extends$j({},ho,{children:Tr(ao)}),_i)}),kn=(Wn,ao)=>{const _i=Yr({option:Wn,index:ao});return Cn(_extends$j({},_i,{className:an.option}),Wn,{selected:_i["aria-selected"],index:ao,inputValue:ln},Pr)},Qn=(nt=wr.clearIndicator)!=null?nt:It.clearIndicator,Gn=(lt=wr.paper)!=null?lt:It.paper,Un=(ut=wr.popper)!=null?ut:It.popper,jn=(dt=wr.popupIndicator)!=null?dt:It.popupIndicator,In=Wn=>jsxRuntimeExports.jsx(AutocompletePopper,_extends$j({as:gr,disablePortal:Jt,style:{width:rn?rn.clientWidth:null},ownerState:Pr,role:"presentation",anchorEl:rn,open:Xr},Un,{className:clsx(an.popper,Un==null?void 0:Un.className),children:jsxRuntimeExports.jsx(AutocompletePaper,_extends$j({ownerState:Pr,as:dr},Gn,{className:clsx(an.paper,Gn==null?void 0:Gn.className),children:Wn}))}));let Kn=null;return vn.length>0?Kn=In(jsxRuntimeExports.jsx(AutocompleteListbox,_extends$j({as:Zt,className:an.listbox,ownerState:Pr},qn,Xt,{ref:Bn,children:vn.map((Wn,ao)=>Ut?An({key:Wn.key,group:Wn.group,children:Wn.options.map((_i,ho)=>kn(_i,Wn.index+ho))}):kn(Wn,ao))}))):er&&vn.length===0?Kn=In(jsxRuntimeExports.jsx(AutocompleteLoading,{className:an.loading,ownerState:Pr,children:nr})):vn.length===0&&!Ft&&!er&&(Kn=In(jsxRuntimeExports.jsx(AutocompleteNoOptions,{className:an.noOptions,ownerState:Pr,role:"presentation",onMouseDown:Wn=>{Wn.preventDefault()},children:rr}))),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(AutocompleteRoot,_extends$j({ref:rt,className:clsx(an.root,Ot),ownerState:Pr},Hr(qr),{children:xr({id:Zr,disabled:Nt,fullWidth:!0,size:Rr==="small"?"small":void 0,InputLabelProps:$r(),InputProps:_extends$j({ref:_r,className:an.inputRoot,startAdornment:nn,onClick:Wn=>{Wn.target===Wn.currentTarget&&xn(Wn)}},(Cr||gn)&&{endAdornment:jsxRuntimeExports.jsxs(AutocompleteEndAdornment,{className:an.endAdornment,ownerState:Pr,children:[Cr?jsxRuntimeExports.jsx(AutocompleteClearIndicator,_extends$j({},Or(),{"aria-label":Tt,title:Tt,ownerState:Pr},Qn,{className:clsx(an.clearIndicator,Qn==null?void 0:Qn.className),children:At})):null,gn?jsxRuntimeExports.jsx(AutocompletePopupIndicator,_extends$j({},yr(),{disabled:Nt,"aria-label":Xr?Ct:ir,title:Xr?Ct:ir,ownerState:Pr},jn,{className:clsx(an.popupIndicator,jn==null?void 0:jn.className),children:br})):null]})}),inputProps:_extends$j({className:an.input,disabled:Nt,readOnly:ar},kr())})})),rn?Kn:null]})}),Person=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function getAvatarUtilityClass(et){return generateUtilityClass("MuiAvatar",et)}generateUtilityClasses("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const _excluded$1P=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],useUtilityClasses$1l=et=>{const{classes:tt,variant:rt,colorDefault:nt}=et;return composeClasses({root:["root",rt,nt&&"colorDefault"],img:["img"],fallback:["fallback"]},getAvatarUtilityClass,tt)},AvatarRoot=styled("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],rt.colorDefault&&tt.colorDefault]}})(({theme:et})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:et.typography.fontFamily,fontSize:et.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(et.vars||et).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:_extends$j({color:(et.vars||et).palette.background.default},et.vars?{backgroundColor:et.vars.palette.Avatar.defaultBg}:_extends$j({backgroundColor:et.palette.grey[400]},et.applyStyles("dark",{backgroundColor:et.palette.grey[600]})))}]})),AvatarImg=styled("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(et,tt)=>tt.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),AvatarFallback=styled(Person,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(et,tt)=>tt.fallback})({width:"75%",height:"75%"});function useLoaded({crossOrigin:et,referrerPolicy:tt,src:rt,srcSet:nt}){const[lt,ut]=reactExports.useState(!1);return reactExports.useEffect(()=>{if(!rt&&!nt)return;ut(!1);let dt=!0;const pt=new Image;return pt.onload=()=>{dt&&ut("loaded")},pt.onerror=()=>{dt&&ut("error")},pt.crossOrigin=et,pt.referrerPolicy=tt,pt.src=rt,nt&&(pt.srcset=nt),()=>{dt=!1}},[et,tt,rt,nt]),lt}const Avatar=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiAvatar"}),{alt:lt,children:ut,className:dt,component:pt="div",slots:ht={},slotProps:mt={},imgProps:xt,sizes:Mt,src:vt,srcSet:Ot,variant:At="circular"}=nt,Rt=_objectWithoutPropertiesLoose$d(nt,_excluded$1P);let zt=null;const Tt=useLoaded(_extends$j({},xt,{src:vt,srcSet:Ot})),Ct=vt||Ot,It=Ct&&Tt!=="error",Dt=_extends$j({},nt,{colorDefault:!It,component:pt,variant:At}),kt=useUtilityClasses$1l(Dt),[qt,Nt]=useSlot("img",{className:kt.img,elementType:AvatarImg,externalForwardedProps:{slots:ht,slotProps:{img:_extends$j({},xt,mt.img)}},additionalProps:{alt:lt,src:vt,srcSet:Ot,sizes:Mt},ownerState:Dt});return It?zt=jsxRuntimeExports.jsx(qt,_extends$j({},Nt)):ut||ut===0?zt=ut:Ct&&lt?zt=lt[0]:zt=jsxRuntimeExports.jsx(AvatarFallback,{ownerState:Dt,className:kt.fallback}),jsxRuntimeExports.jsx(AvatarRoot,_extends$j({as:pt,ownerState:Dt,className:clsx(kt.root,dt),ref:rt},Rt,{children:zt}))}),_excluded$1O=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],styles$2={entering:{opacity:1},entered:{opacity:1}},Fade=reactExports.forwardRef(function(tt,rt){const nt=useTheme$1(),lt={enter:nt.transitions.duration.enteringScreen,exit:nt.transitions.duration.leavingScreen},{addEndListener:ut,appear:dt=!0,children:pt,easing:ht,in:mt,onEnter:xt,onEntered:Mt,onEntering:vt,onExit:Ot,onExited:At,onExiting:Rt,style:zt,timeout:Tt=lt,TransitionComponent:Ct=Transition}=tt,It=_objectWithoutPropertiesLoose$d(tt,_excluded$1O),Dt=reactExports.useRef(null),kt=useForkRef(Dt,pt.ref,rt),qt=$t=>jt=>{if($t){const Wt=Dt.current;jt===void 0?$t(Wt):$t(Wt,jt)}},Nt=qt(vt),Yt=qt(($t,jt)=>{reflow($t);const Wt=getTransitionProps({style:zt,timeout:Tt,easing:ht},{mode:"enter"});$t.style.webkitTransition=nt.transitions.create("opacity",Wt),$t.style.transition=nt.transitions.create("opacity",Wt),xt&&xt($t,jt)}),Kt=qt(Mt),Jt=qt(Rt),Qt=qt($t=>{const jt=getTransitionProps({style:zt,timeout:Tt,easing:ht},{mode:"exit"});$t.style.webkitTransition=nt.transitions.create("opacity",jt),$t.style.transition=nt.transitions.create("opacity",jt),Ot&&Ot($t)}),Bt=qt(At),Ft=$t=>{ut&&ut(Dt.current,$t)};return jsxRuntimeExports.jsx(Ct,_extends$j({appear:dt,in:mt,nodeRef:Dt,onEnter:Yt,onEntered:Kt,onEntering:Nt,onExit:Qt,onExited:Bt,onExiting:Jt,addEndListener:Ft,timeout:Tt},It,{children:($t,jt)=>reactExports.cloneElement(pt,_extends$j({style:_extends$j({opacity:0,visibility:$t==="exited"&&!mt?"hidden":void 0},styles$2[$t],zt,pt.props.style),ref:kt},jt))}))});function getBackdropUtilityClass(et){return generateUtilityClass("MuiBackdrop",et)}generateUtilityClasses("MuiBackdrop",["root","invisible"]);const _excluded$1N=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],useUtilityClasses$1k=et=>{const{classes:tt,invisible:rt}=et;return composeClasses({root:["root",rt&&"invisible"]},getBackdropUtilityClass,tt)},BackdropRoot=styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.invisible&&tt.invisible]}})(({ownerState:et})=>_extends$j({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"},et.invisible&&{backgroundColor:"transparent"})),Backdrop=reactExports.forwardRef(function(tt,rt){var nt,lt,ut;const dt=useDefaultProps({props:tt,name:"MuiBackdrop"}),{children:pt,className:ht,component:mt="div",components:xt={},componentsProps:Mt={},invisible:vt=!1,open:Ot,slotProps:At={},slots:Rt={},TransitionComponent:zt=Fade,transitionDuration:Tt}=dt,Ct=_objectWithoutPropertiesLoose$d(dt,_excluded$1N),It=_extends$j({},dt,{component:mt,invisible:vt}),Dt=useUtilityClasses$1k(It),kt=(nt=At.root)!=null?nt:Mt.root;return jsxRuntimeExports.jsx(zt,_extends$j({in:Ot,timeout:Tt},Ct,{children:jsxRuntimeExports.jsx(BackdropRoot,_extends$j({"aria-hidden":!0},kt,{as:(lt=(ut=Rt.root)!=null?ut:xt.Root)!=null?lt:mt,className:clsx(Dt.root,ht,kt==null?void 0:kt.className),ownerState:_extends$j({},It,kt==null?void 0:kt.ownerState),classes:Dt,ref:rt,children:pt}))}))});function useBadge(et){const{badgeContent:tt,invisible:rt=!1,max:nt=99,showZero:lt=!1}=et,ut=usePreviousProps({badgeContent:tt,max:nt});let dt=rt;rt===!1&&tt===0&&!lt&&(dt=!0);const{badgeContent:pt,max:ht=nt}=dt?ut:et,mt=pt&&Number(pt)>ht?`${ht}+`:pt;return{badgeContent:pt,invisible:dt,max:ht,displayValue:mt}}function getBadgeUtilityClass(et){return generateUtilityClass("MuiBadge",et)}const badgeClasses=generateUtilityClasses("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),_excluded$1M=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],RADIUS_STANDARD=10,RADIUS_DOT=4,useUtilityClasses$1j=et=>{const{color:tt,anchorOrigin:rt,invisible:nt,overlap:lt,variant:ut,classes:dt={}}=et,pt={root:["root"],badge:["badge",ut,nt&&"invisible",`anchorOrigin${capitalize$3(rt.vertical)}${capitalize$3(rt.horizontal)}`,`anchorOrigin${capitalize$3(rt.vertical)}${capitalize$3(rt.horizontal)}${capitalize$3(lt)}`,`overlap${capitalize$3(lt)}`,tt!=="default"&&`color${capitalize$3(tt)}`]};return composeClasses(pt,getBadgeUtilityClass,dt)},BadgeRoot=styled("span",{name:"MuiBadge",slot:"Root",overridesResolver:(et,tt)=>tt.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),BadgeBadge=styled("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.badge,tt[rt.variant],tt[`anchorOrigin${capitalize$3(rt.anchorOrigin.vertical)}${capitalize$3(rt.anchorOrigin.horizontal)}${capitalize$3(rt.overlap)}`],rt.color!=="default"&&tt[`color${capitalize$3(rt.color)}`],rt.invisible&&tt.invisible]}})(({theme:et})=>{var tt;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:et.typography.fontFamily,fontWeight:et.typography.fontWeightMedium,fontSize:et.typography.pxToRem(12),minWidth:RADIUS_STANDARD*2,lineHeight:1,padding:"0 6px",height:RADIUS_STANDARD*2,borderRadius:RADIUS_STANDARD,zIndex:1,transition:et.transitions.create("transform",{easing:et.transitions.easing.easeInOut,duration:et.transitions.duration.enteringScreen}),variants:[...Object.keys(((tt=et.vars)!=null?tt:et).palette).filter(rt=>{var nt,lt;return((nt=et.vars)!=null?nt:et).palette[rt].main&&((lt=et.vars)!=null?lt:et).palette[rt].contrastText}).map(rt=>({props:{color:rt},style:{backgroundColor:(et.vars||et).palette[rt].main,color:(et.vars||et).palette[rt].contrastText}})),{props:{variant:"dot"},style:{borderRadius:RADIUS_DOT,height:RADIUS_DOT*2,minWidth:RADIUS_DOT*2,padding:0}},{props:({ownerState:rt})=>rt.anchorOrigin.vertical==="top"&&rt.anchorOrigin.horizontal==="right"&&rt.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:rt})=>rt.anchorOrigin.vertical==="bottom"&&rt.anchorOrigin.horizontal==="right"&&rt.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:rt})=>rt.anchorOrigin.vertical==="top"&&rt.anchorOrigin.horizontal==="left"&&rt.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:rt})=>rt.anchorOrigin.vertical==="bottom"&&rt.anchorOrigin.horizontal==="left"&&rt.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:rt})=>rt.anchorOrigin.vertical==="top"&&rt.anchorOrigin.horizontal==="right"&&rt.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:rt})=>rt.anchorOrigin.vertical==="bottom"&&rt.anchorOrigin.horizontal==="right"&&rt.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:rt})=>rt.anchorOrigin.vertical==="top"&&rt.anchorOrigin.horizontal==="left"&&rt.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:rt})=>rt.anchorOrigin.vertical==="bottom"&&rt.anchorOrigin.horizontal==="left"&&rt.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${badgeClasses.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:et.transitions.create("transform",{easing:et.transitions.easing.easeInOut,duration:et.transitions.duration.leavingScreen})}}]}}),Badge$2=reactExports.forwardRef(function(tt,rt){var nt,lt,ut,dt,pt,ht;const mt=useDefaultProps({props:tt,name:"MuiBadge"}),{anchorOrigin:xt={vertical:"top",horizontal:"right"},className:Mt,component:vt,components:Ot={},componentsProps:At={},children:Rt,overlap:zt="rectangular",color:Tt="default",invisible:Ct=!1,max:It=99,badgeContent:Dt,slots:kt,slotProps:qt,showZero:Nt=!1,variant:Yt="standard"}=mt,Kt=_objectWithoutPropertiesLoose$d(mt,_excluded$1M),{badgeContent:Jt,invisible:Qt,max:Bt,displayValue:Ft}=useBadge({max:It,invisible:Ct,badgeContent:Dt,showZero:Nt}),$t=usePreviousProps({anchorOrigin:xt,color:Tt,overlap:zt,variant:Yt,badgeContent:Dt}),jt=Qt||Jt==null&&Yt!=="dot",{color:Wt=Tt,overlap:Ut=zt,anchorOrigin:Vt=xt,variant:Ht=Yt}=jt?$t:mt,Gt=Ht!=="dot"?Ft:void 0,Zt=_extends$j({},mt,{badgeContent:Jt,invisible:jt,max:Bt,displayValue:Gt,showZero:Nt,anchorOrigin:Vt,color:Wt,overlap:Ut,variant:Ht}),Xt=useUtilityClasses$1j(Zt),er=(nt=(lt=kt==null?void 0:kt.root)!=null?lt:Ot.Root)!=null?nt:BadgeRoot,nr=(ut=(dt=kt==null?void 0:kt.badge)!=null?dt:Ot.Badge)!=null?ut:BadgeBadge,or=(pt=qt==null?void 0:qt.root)!=null?pt:At.root,rr=(ht=qt==null?void 0:qt.badge)!=null?ht:At.badge,cr=useSlotProps({elementType:er,externalSlotProps:or,externalForwardedProps:Kt,additionalProps:{ref:rt,as:vt},ownerState:Zt,className:clsx(or==null?void 0:or.className,Xt.root,Mt)}),ir=useSlotProps({elementType:nr,externalSlotProps:rr,ownerState:Zt,className:clsx(Xt.badge,rr==null?void 0:rr.className)});return jsxRuntimeExports.jsxs(er,_extends$j({},cr,{children:[Rt,jsxRuntimeExports.jsx(nr,_extends$j({},ir,{children:Gt}))]}))}),boxClasses=generateUtilityClasses("MuiBox",["root"]),defaultTheme$3=createTheme(),Box=createBox$1({themeId:THEME_ID,defaultTheme:defaultTheme$3,defaultClassName:boxClasses.root,generateClassName:ClassNameGenerator.generate});function getButtonUtilityClass(et){return generateUtilityClass("MuiButton",et)}const buttonClasses=generateUtilityClasses("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"]),ButtonGroupContext=reactExports.createContext({}),ButtonGroupButtonContext=reactExports.createContext(void 0),_excluded$1L=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$1i=et=>{const{color:tt,disableElevation:rt,fullWidth:nt,size:lt,variant:ut,classes:dt}=et,pt={root:["root",ut,`${ut}${capitalize$3(tt)}`,`size${capitalize$3(lt)}`,`${ut}Size${capitalize$3(lt)}`,`color${capitalize$3(tt)}`,rt&&"disableElevation",nt&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${capitalize$3(lt)}`],endIcon:["icon","endIcon",`iconSize${capitalize$3(lt)}`]},ht=composeClasses(pt,getButtonUtilityClass,dt);return _extends$j({},dt,ht)},commonIconStyles=et=>_extends$j({},et.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},et.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},et.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled(ButtonBase,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`${rt.variant}${capitalize$3(rt.color)}`],tt[`size${capitalize$3(rt.size)}`],tt[`${rt.variant}Size${capitalize$3(rt.size)}`],rt.color==="inherit"&&tt.colorInherit,rt.disableElevation&&tt.disableElevation,rt.fullWidth&&tt.fullWidth]}})(({theme:et,ownerState:tt})=>{var rt,nt;const lt=et.palette.mode==="light"?et.palette.grey[300]:et.palette.grey[800],ut=et.palette.mode==="light"?et.palette.grey.A100:et.palette.grey[700];return _extends$j({},et.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(et.vars||et).shape.borderRadius,transition:et.transitions.create(["background-color","box-shadow","border-color","color"],{duration:et.transitions.duration.short}),"&:hover":_extends$j({textDecoration:"none",backgroundColor:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(et.palette.text.primary,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="text"&&tt.color!=="inherit"&&{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="outlined"&&tt.color!=="inherit"&&{border:`1px solid ${(et.vars||et).palette[tt.color].main}`,backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="contained"&&{backgroundColor:et.vars?et.vars.palette.Button.inheritContainedHoverBg:ut,boxShadow:(et.vars||et).shadows[4],"@media (hover: none)":{boxShadow:(et.vars||et).shadows[2],backgroundColor:(et.vars||et).palette.grey[300]}},tt.variant==="contained"&&tt.color!=="inherit"&&{backgroundColor:(et.vars||et).palette[tt.color].dark,"@media (hover: none)":{backgroundColor:(et.vars||et).palette[tt.color].main}}),"&:active":_extends$j({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[8]}),[`&.${buttonClasses.focusVisible}`]:_extends$j({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[6]}),[`&.${buttonClasses.disabled}`]:_extends$j({color:(et.vars||et).palette.action.disabled},tt.variant==="outlined"&&{border:`1px solid ${(et.vars||et).palette.action.disabledBackground}`},tt.variant==="contained"&&{color:(et.vars||et).palette.action.disabled,boxShadow:(et.vars||et).shadows[0],backgroundColor:(et.vars||et).palette.action.disabledBackground})},tt.variant==="text"&&{padding:"6px 8px"},tt.variant==="text"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main},tt.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},tt.variant==="outlined"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main,border:et.vars?`1px solid rgba(${et.vars.palette[tt.color].mainChannel} / 0.5)`:`1px solid ${alpha_1(et.palette[tt.color].main,.5)}`},tt.variant==="contained"&&{color:et.vars?et.vars.palette.text.primary:(rt=(nt=et.palette).getContrastText)==null?void 0:rt.call(nt,et.palette.grey[300]),backgroundColor:et.vars?et.vars.palette.Button.inheritContainedBg:lt,boxShadow:(et.vars||et).shadows[2]},tt.variant==="contained"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].contrastText,backgroundColor:(et.vars||et).palette[tt.color].main},tt.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},tt.size==="small"&&tt.variant==="text"&&{padding:"4px 5px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="text"&&{padding:"8px 11px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="outlined"&&{padding:"3px 9px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="outlined"&&{padding:"7px 21px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="contained"&&{padding:"4px 10px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="contained"&&{padding:"8px 22px",fontSize:et.typography.pxToRem(15)},tt.fullWidth&&{width:"100%"})},({ownerState:et})=>et.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.startIcon,tt[`iconSize${capitalize$3(rt.size)}`]]}})(({ownerState:et})=>_extends$j({display:"inherit",marginRight:8,marginLeft:-4},et.size==="small"&&{marginLeft:-2},commonIconStyles(et))),ButtonEndIcon=styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.endIcon,tt[`iconSize${capitalize$3(rt.size)}`]]}})(({ownerState:et})=>_extends$j({display:"inherit",marginRight:-4,marginLeft:8},et.size==="small"&&{marginRight:-2},commonIconStyles(et))),Button=reactExports.forwardRef(function(tt,rt){const nt=reactExports.useContext(ButtonGroupContext),lt=reactExports.useContext(ButtonGroupButtonContext),ut=resolveProps(nt,tt),dt=useDefaultProps({props:ut,name:"MuiButton"}),{children:pt,color:ht="primary",component:mt="button",className:xt,disabled:Mt=!1,disableElevation:vt=!1,disableFocusRipple:Ot=!1,endIcon:At,focusVisibleClassName:Rt,fullWidth:zt=!1,size:Tt="medium",startIcon:Ct,type:It,variant:Dt="text"}=dt,kt=_objectWithoutPropertiesLoose$d(dt,_excluded$1L),qt=_extends$j({},dt,{color:ht,component:mt,disabled:Mt,disableElevation:vt,disableFocusRipple:Ot,fullWidth:zt,size:Tt,type:It,variant:Dt}),Nt=useUtilityClasses$1i(qt),Yt=Ct&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:Nt.startIcon,ownerState:qt,children:Ct}),Kt=At&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:Nt.endIcon,ownerState:qt,children:At}),Jt=lt||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends$j({ownerState:qt,className:clsx(nt.className,Nt.root,xt,Jt),component:mt,disabled:Mt,focusRipple:!Ot,focusVisibleClassName:clsx(Nt.focusVisible,Rt),ref:rt,type:It},kt,{classes:Nt,children:[Yt,pt,Kt]}))});function getButtonGroupUtilityClass(et){return generateUtilityClass("MuiButtonGroup",et)}const buttonGroupClasses=generateUtilityClasses("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),_excluded$1K=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],overridesResolver$7=(et,tt)=>{const{ownerState:rt}=et;return[{[`& .${buttonGroupClasses.grouped}`]:tt.grouped},{[`& .${buttonGroupClasses.grouped}`]:tt[`grouped${capitalize$3(rt.orientation)}`]},{[`& .${buttonGroupClasses.grouped}`]:tt[`grouped${capitalize$3(rt.variant)}`]},{[`& .${buttonGroupClasses.grouped}`]:tt[`grouped${capitalize$3(rt.variant)}${capitalize$3(rt.orientation)}`]},{[`& .${buttonGroupClasses.grouped}`]:tt[`grouped${capitalize$3(rt.variant)}${capitalize$3(rt.color)}`]},{[`& .${buttonGroupClasses.firstButton}`]:tt.firstButton},{[`& .${buttonGroupClasses.lastButton}`]:tt.lastButton},{[`& .${buttonGroupClasses.middleButton}`]:tt.middleButton},tt.root,tt[rt.variant],rt.disableElevation===!0&&tt.disableElevation,rt.fullWidth&&tt.fullWidth,rt.orientation==="vertical"&&tt.vertical]},useUtilityClasses$1h=et=>{const{classes:tt,color:rt,disabled:nt,disableElevation:lt,fullWidth:ut,orientation:dt,variant:pt}=et,ht={root:["root",pt,dt==="vertical"&&"vertical",ut&&"fullWidth",lt&&"disableElevation"],grouped:["grouped",`grouped${capitalize$3(dt)}`,`grouped${capitalize$3(pt)}`,`grouped${capitalize$3(pt)}${capitalize$3(dt)}`,`grouped${capitalize$3(pt)}${capitalize$3(rt)}`,nt&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return composeClasses(ht,getButtonGroupUtilityClass,tt)},ButtonGroupRoot=styled("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:overridesResolver$7})(({theme:et,ownerState:tt})=>_extends$j({display:"inline-flex",borderRadius:(et.vars||et).shape.borderRadius},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[2]},tt.disableElevation&&{boxShadow:"none"},tt.fullWidth&&{width:"100%"},tt.orientation==="vertical"&&{flexDirection:"column"},{[`& .${buttonGroupClasses.grouped}`]:_extends$j({minWidth:40,"&:hover":_extends$j({},tt.variant==="contained"&&{boxShadow:"none"})},tt.variant==="contained"&&{boxShadow:"none"}),[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]:_extends$j({},tt.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},tt.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},tt.variant==="text"&&tt.orientation==="horizontal"&&{borderRight:et.vars?`1px solid rgba(${et.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${et.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${buttonGroupClasses.disabled}`]:{borderRight:`1px solid ${(et.vars||et).palette.action.disabled}`}},tt.variant==="text"&&tt.orientation==="vertical"&&{borderBottom:et.vars?`1px solid rgba(${et.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${et.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${buttonGroupClasses.disabled}`]:{borderBottom:`1px solid ${(et.vars||et).palette.action.disabled}`}},tt.variant==="text"&&tt.color!=="inherit"&&{borderColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / 0.5)`:alpha_1(et.palette[tt.color].main,.5)},tt.variant==="outlined"&&tt.orientation==="horizontal"&&{borderRightColor:"transparent"},tt.variant==="outlined"&&tt.orientation==="vertical"&&{borderBottomColor:"transparent"},tt.variant==="contained"&&tt.orientation==="horizontal"&&{borderRight:`1px solid ${(et.vars||et).palette.grey[400]}`,[`&.${buttonGroupClasses.disabled}`]:{borderRight:`1px solid ${(et.vars||et).palette.action.disabled}`}},tt.variant==="contained"&&tt.orientation==="vertical"&&{borderBottom:`1px solid ${(et.vars||et).palette.grey[400]}`,[`&.${buttonGroupClasses.disabled}`]:{borderBottom:`1px solid ${(et.vars||et).palette.action.disabled}`}},tt.variant==="contained"&&tt.color!=="inherit"&&{borderColor:(et.vars||et).palette[tt.color].dark},{"&:hover":_extends$j({},tt.variant==="outlined"&&tt.orientation==="horizontal"&&{borderRightColor:"currentColor"},tt.variant==="outlined"&&tt.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]:_extends$j({},tt.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},tt.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},tt.variant==="outlined"&&tt.orientation==="horizontal"&&{marginLeft:-1},tt.variant==="outlined"&&tt.orientation==="vertical"&&{marginTop:-1})})),ButtonGroup=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiButtonGroup"}),{children:lt,className:ut,color:dt="primary",component:pt="div",disabled:ht=!1,disableElevation:mt=!1,disableFocusRipple:xt=!1,disableRipple:Mt=!1,fullWidth:vt=!1,orientation:Ot="horizontal",size:At="medium",variant:Rt="outlined"}=nt,zt=_objectWithoutPropertiesLoose$d(nt,_excluded$1K),Tt=_extends$j({},nt,{color:dt,component:pt,disabled:ht,disableElevation:mt,disableFocusRipple:xt,disableRipple:Mt,fullWidth:vt,orientation:Ot,size:At,variant:Rt}),Ct=useUtilityClasses$1h(Tt),It=reactExports.useMemo(()=>({className:Ct.grouped,color:dt,disabled:ht,disableElevation:mt,disableFocusRipple:xt,disableRipple:Mt,fullWidth:vt,size:At,variant:Rt}),[dt,ht,mt,xt,Mt,vt,At,Rt,Ct.grouped]),Dt=getValidReactChildren(lt),kt=Dt.length,qt=Nt=>{const Yt=Nt===0,Kt=Nt===kt-1;return Yt&&Kt?"":Yt?Ct.firstButton:Kt?Ct.lastButton:Ct.middleButton};return jsxRuntimeExports.jsx(ButtonGroupRoot,_extends$j({as:pt,role:"group",className:clsx(Ct.root,ut),ref:rt,ownerState:Tt},zt,{children:jsxRuntimeExports.jsx(ButtonGroupContext.Provider,{value:It,children:Dt.map((Nt,Yt)=>jsxRuntimeExports.jsx(ButtonGroupButtonContext.Provider,{value:qt(Yt),children:Nt},Yt))})}))});function getCardUtilityClass(et){return generateUtilityClass("MuiCard",et)}generateUtilityClasses("MuiCard",["root"]);const _excluded$1J=["className","raised"],useUtilityClasses$1g=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getCardUtilityClass,tt)},CardRoot=styled(Paper,{name:"MuiCard",slot:"Root",overridesResolver:(et,tt)=>tt.root})(()=>({overflow:"hidden"})),Card$2=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiCard"}),{className:lt,raised:ut=!1}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$1J),pt=_extends$j({},nt,{raised:ut}),ht=useUtilityClasses$1g(pt);return jsxRuntimeExports.jsx(CardRoot,_extends$j({className:clsx(ht.root,lt),elevation:ut?8:void 0,ref:rt,ownerState:pt},dt))});function getCardActionsUtilityClass(et){return generateUtilityClass("MuiCardActions",et)}generateUtilityClasses("MuiCardActions",["root","spacing"]);const _excluded$1I=["disableSpacing","className"],useUtilityClasses$1f=et=>{const{classes:tt,disableSpacing:rt}=et;return composeClasses({root:["root",!rt&&"spacing"]},getCardActionsUtilityClass,tt)},CardActionsRoot=styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,!rt.disableSpacing&&tt.spacing]}})(({ownerState:et})=>_extends$j({display:"flex",alignItems:"center",padding:8},!et.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),CardActions=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiCardActions"}),{disableSpacing:lt=!1,className:ut}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$1I),pt=_extends$j({},nt,{disableSpacing:lt}),ht=useUtilityClasses$1f(pt);return jsxRuntimeExports.jsx(CardActionsRoot,_extends$j({className:clsx(ht.root,ut),ownerState:pt,ref:rt},dt))});function getCardContentUtilityClass(et){return generateUtilityClass("MuiCardContent",et)}generateUtilityClasses("MuiCardContent",["root"]);const _excluded$1H=["className","component"],useUtilityClasses$1e=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getCardContentUtilityClass,tt)},CardContentRoot=styled("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(et,tt)=>tt.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),CardContent=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiCardContent"}),{className:lt,component:ut="div"}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$1H),pt=_extends$j({},nt,{component:ut}),ht=useUtilityClasses$1e(pt);return jsxRuntimeExports.jsx(CardContentRoot,_extends$j({as:ut,className:clsx(ht.root,lt),ownerState:pt,ref:rt},dt))});function getCardHeaderUtilityClass(et){return generateUtilityClass("MuiCardHeader",et)}const cardHeaderClasses=generateUtilityClasses("MuiCardHeader",["root","avatar","action","content","title","subheader"]),_excluded$1G=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],useUtilityClasses$1d=et=>{const{classes:tt}=et;return composeClasses({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},getCardHeaderUtilityClass,tt)},CardHeaderRoot=styled("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(et,tt)=>_extends$j({[`& .${cardHeaderClasses.title}`]:tt.title,[`& .${cardHeaderClasses.subheader}`]:tt.subheader},tt.root)})({display:"flex",alignItems:"center",padding:16}),CardHeaderAvatar=styled("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(et,tt)=>tt.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),CardHeaderAction=styled("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(et,tt)=>tt.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),CardHeaderContent=styled("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(et,tt)=>tt.content})({flex:"1 1 auto"}),CardHeader$1=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiCardHeader"}),{action:lt,avatar:ut,className:dt,component:pt="div",disableTypography:ht=!1,subheader:mt,subheaderTypographyProps:xt,title:Mt,titleTypographyProps:vt}=nt,Ot=_objectWithoutPropertiesLoose$d(nt,_excluded$1G),At=_extends$j({},nt,{component:pt,disableTypography:ht}),Rt=useUtilityClasses$1d(At);let zt=Mt;zt!=null&&zt.type!==Typography&&!ht&&(zt=jsxRuntimeExports.jsx(Typography,_extends$j({variant:ut?"body2":"h5",className:Rt.title,component:"span",display:"block"},vt,{children:zt})));let Tt=mt;return Tt!=null&&Tt.type!==Typography&&!ht&&(Tt=jsxRuntimeExports.jsx(Typography,_extends$j({variant:ut?"body2":"body1",className:Rt.subheader,color:"text.secondary",component:"span",display:"block"},xt,{children:Tt}))),jsxRuntimeExports.jsxs(CardHeaderRoot,_extends$j({className:clsx(Rt.root,dt),as:pt,ref:rt,ownerState:At},Ot,{children:[ut&&jsxRuntimeExports.jsx(CardHeaderAvatar,{className:Rt.avatar,ownerState:At,children:ut}),jsxRuntimeExports.jsxs(CardHeaderContent,{className:Rt.content,ownerState:At,children:[zt,Tt]}),lt&&jsxRuntimeExports.jsx(CardHeaderAction,{className:Rt.action,ownerState:At,children:lt})]}))});function getSwitchBaseUtilityClass(et){return generateUtilityClass("PrivateSwitchBase",et)}generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _excluded$1F=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],useUtilityClasses$1c=et=>{const{classes:tt,checked:rt,disabled:nt,edge:lt}=et,ut={root:["root",rt&&"checked",nt&&"disabled",lt&&`edge${capitalize$3(lt)}`],input:["input"]};return composeClasses(ut,getSwitchBaseUtilityClass,tt)},SwitchBaseRoot=styled(ButtonBase)(({ownerState:et})=>_extends$j({padding:9,borderRadius:"50%"},et.edge==="start"&&{marginLeft:et.size==="small"?-3:-12},et.edge==="end"&&{marginRight:et.size==="small"?-3:-12})),SwitchBaseInput=styled("input",{shouldForwardProp:rootShouldForwardProp$1})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SwitchBase=reactExports.forwardRef(function(tt,rt){const{autoFocus:nt,checked:lt,checkedIcon:ut,className:dt,defaultChecked:pt,disabled:ht,disableFocusRipple:mt=!1,edge:xt=!1,icon:Mt,id:vt,inputProps:Ot,inputRef:At,name:Rt,onBlur:zt,onChange:Tt,onFocus:Ct,readOnly:It,required:Dt=!1,tabIndex:kt,type:qt,value:Nt}=tt,Yt=_objectWithoutPropertiesLoose$d(tt,_excluded$1F),[Kt,Jt]=useControlled({controlled:lt,default:!!pt,name:"SwitchBase",state:"checked"}),Qt=useFormControl(),Bt=Ht=>{Ct&&Ct(Ht),Qt&&Qt.onFocus&&Qt.onFocus(Ht)},Ft=Ht=>{zt&&zt(Ht),Qt&&Qt.onBlur&&Qt.onBlur(Ht)},$t=Ht=>{if(Ht.nativeEvent.defaultPrevented)return;const Gt=Ht.target.checked;Jt(Gt),Tt&&Tt(Ht,Gt)};let jt=ht;Qt&&typeof jt>"u"&&(jt=Qt.disabled);const Wt=qt==="checkbox"||qt==="radio",Ut=_extends$j({},tt,{checked:Kt,disabled:jt,disableFocusRipple:mt,edge:xt}),Vt=useUtilityClasses$1c(Ut);return jsxRuntimeExports.jsxs(SwitchBaseRoot,_extends$j({component:"span",className:clsx(Vt.root,dt),centerRipple:!0,focusRipple:!mt,disabled:jt,tabIndex:null,role:void 0,onFocus:Bt,onBlur:Ft,ownerState:Ut,ref:rt},Yt,{children:[jsxRuntimeExports.jsx(SwitchBaseInput,_extends$j({autoFocus:nt,checked:lt,defaultChecked:pt,className:Vt.input,disabled:jt,id:Wt?vt:void 0,name:Rt,onChange:$t,readOnly:It,ref:At,required:Dt,ownerState:Ut,tabIndex:kt,type:qt},qt==="checkbox"&&Nt===void 0?{}:{value:Nt},Ot)),Kt?ut:Mt]}))}),CheckBoxOutlineBlankIcon=createSvgIcon$1(jsxRuntimeExports.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"),CheckBoxIcon=createSvgIcon$1(jsxRuntimeExports.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"),IndeterminateCheckBoxIcon=createSvgIcon$1(jsxRuntimeExports.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 getCheckboxUtilityClass(et){return generateUtilityClass("MuiCheckbox",et)}const checkboxClasses=generateUtilityClasses("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_excluded$1E=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],useUtilityClasses$1b=et=>{const{classes:tt,indeterminate:rt,color:nt,size:lt}=et,ut={root:["root",rt&&"indeterminate",`color${capitalize$3(nt)}`,`size${capitalize$3(lt)}`]},dt=composeClasses(ut,getCheckboxUtilityClass,tt);return _extends$j({},tt,dt)},CheckboxRoot=styled(SwitchBase,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.indeterminate&&tt.indeterminate,tt[`size${capitalize$3(rt.size)}`],rt.color!=="default"&&tt[`color${capitalize$3(rt.color)}`]]}})(({theme:et,ownerState:tt})=>_extends$j({color:(et.vars||et).palette.text.secondary},!tt.disableRipple&&{"&:hover":{backgroundColor:et.vars?`rgba(${tt.color==="default"?et.vars.palette.action.activeChannel:et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(tt.color==="default"?et.palette.action.active:et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},tt.color!=="default"&&{[`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]:{color:(et.vars||et).palette[tt.color].main},[`&.${checkboxClasses.disabled}`]:{color:(et.vars||et).palette.action.disabled}})),defaultCheckedIcon$1=jsxRuntimeExports.jsx(CheckBoxIcon,{}),defaultIcon$1=jsxRuntimeExports.jsx(CheckBoxOutlineBlankIcon,{}),defaultIndeterminateIcon=jsxRuntimeExports.jsx(IndeterminateCheckBoxIcon,{}),Checkbox$1=reactExports.forwardRef(function(tt,rt){var nt,lt;const ut=useDefaultProps({props:tt,name:"MuiCheckbox"}),{checkedIcon:dt=defaultCheckedIcon$1,color:pt="primary",icon:ht=defaultIcon$1,indeterminate:mt=!1,indeterminateIcon:xt=defaultIndeterminateIcon,inputProps:Mt,size:vt="medium",className:Ot}=ut,At=_objectWithoutPropertiesLoose$d(ut,_excluded$1E),Rt=mt?xt:ht,zt=mt?xt:dt,Tt=_extends$j({},ut,{color:pt,indeterminate:mt,size:vt}),Ct=useUtilityClasses$1b(Tt);return jsxRuntimeExports.jsx(CheckboxRoot,_extends$j({type:"checkbox",inputProps:_extends$j({"data-indeterminate":mt},Mt),icon:reactExports.cloneElement(Rt,{fontSize:(nt=Rt.props.fontSize)!=null?nt:vt}),checkedIcon:reactExports.cloneElement(zt,{fontSize:(lt=zt.props.fontSize)!=null?lt:vt}),ownerState:Tt,ref:rt,className:clsx(Ct.root,Ot)},At,{classes:Ct}))});function mapEventPropToEvent(et){return et.substring(2).toLowerCase()}function clickedRootScrollbar$1(et,tt){return tt.documentElement.clientWidth<et.clientX||tt.documentElement.clientHeight<et.clientY}function ClickAwayListener(et){const{children:tt,disableReactTree:rt=!1,mouseEvent:nt="onClick",onClickAway:lt,touchEvent:ut="onTouchEnd"}=et,dt=reactExports.useRef(!1),pt=reactExports.useRef(null),ht=reactExports.useRef(!1),mt=reactExports.useRef(!1);reactExports.useEffect(()=>(setTimeout(()=>{ht.current=!0},0),()=>{ht.current=!1}),[]);const xt=useForkRef(tt.ref,pt),Mt=useEventCallback$1(At=>{const Rt=mt.current;mt.current=!1;const zt=ownerDocument(pt.current);if(!ht.current||!pt.current||"clientX"in At&&clickedRootScrollbar$1(At,zt))return;if(dt.current){dt.current=!1;return}let Tt;At.composedPath?Tt=At.composedPath().indexOf(pt.current)>-1:Tt=!zt.documentElement.contains(At.target)||pt.current.contains(At.target),!Tt&&(rt||!Rt)&&lt(At)}),vt=At=>Rt=>{mt.current=!0;const zt=tt.props[At];zt&&zt(Rt)},Ot={ref:xt};return ut!==!1&&(Ot[ut]=vt(ut)),reactExports.useEffect(()=>{if(ut!==!1){const At=mapEventPropToEvent(ut),Rt=ownerDocument(pt.current),zt=()=>{dt.current=!0};return Rt.addEventListener(At,Mt),Rt.addEventListener("touchmove",zt),()=>{Rt.removeEventListener(At,Mt),Rt.removeEventListener("touchmove",zt)}}},[Mt,ut]),nt!==!1&&(Ot[nt]=vt(nt)),reactExports.useEffect(()=>{if(nt!==!1){const At=mapEventPropToEvent(nt),Rt=ownerDocument(pt.current);return Rt.addEventListener(At,Mt),()=>{Rt.removeEventListener(At,Mt)}}},[Mt,nt]),jsxRuntimeExports.jsx(reactExports.Fragment,{children:reactExports.cloneElement(tt,Ot)})}const Container$8=createContainer({createStyledComponent:styled("div",{name:"MuiContainer",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[`maxWidth${capitalize$3(String(rt.maxWidth))}`],rt.fixed&&tt.fixed,rt.disableGutters&&tt.disableGutters]}}),useThemeProps:et=>useDefaultProps({props:et,name:"MuiContainer"})});function isOverflowing(et){const tt=ownerDocument(et);return tt.body===et?ownerWindow(et).innerWidth>tt.documentElement.clientWidth:et.scrollHeight>et.clientHeight}function ariaHidden(et,tt){tt?et.setAttribute("aria-hidden","true"):et.removeAttribute("aria-hidden")}function getPaddingRight(et){return parseInt(ownerWindow(et).getComputedStyle(et).paddingRight,10)||0}function isAriaHiddenForbiddenOnElement(et){const rt=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(et.tagName)!==-1,nt=et.tagName==="INPUT"&&et.getAttribute("type")==="hidden";return rt||nt}function ariaHiddenSiblings(et,tt,rt,nt,lt){const ut=[tt,rt,...nt];[].forEach.call(et.children,dt=>{const pt=ut.indexOf(dt)===-1,ht=!isAriaHiddenForbiddenOnElement(dt);pt&&ht&&ariaHidden(dt,lt)})}function findIndexOf(et,tt){let rt=-1;return et.some((nt,lt)=>tt(nt)?(rt=lt,!0):!1),rt}function handleContainer(et,tt){const rt=[],nt=et.container;if(!tt.disableScrollLock){if(isOverflowing(nt)){const dt=getScrollbarSize(ownerDocument(nt));rt.push({value:nt.style.paddingRight,property:"padding-right",el:nt}),nt.style.paddingRight=`${getPaddingRight(nt)+dt}px`;const pt=ownerDocument(nt).querySelectorAll(".mui-fixed");[].forEach.call(pt,ht=>{rt.push({value:ht.style.paddingRight,property:"padding-right",el:ht}),ht.style.paddingRight=`${getPaddingRight(ht)+dt}px`})}let ut;if(nt.parentNode instanceof DocumentFragment)ut=ownerDocument(nt).body;else{const dt=nt.parentElement,pt=ownerWindow(nt);ut=(dt==null?void 0:dt.nodeName)==="HTML"&&pt.getComputedStyle(dt).overflowY==="scroll"?dt:nt}rt.push({value:ut.style.overflow,property:"overflow",el:ut},{value:ut.style.overflowX,property:"overflow-x",el:ut},{value:ut.style.overflowY,property:"overflow-y",el:ut}),ut.style.overflow="hidden"}return()=>{rt.forEach(({value:ut,el:dt,property:pt})=>{ut?dt.style.setProperty(pt,ut):dt.style.removeProperty(pt)})}}function getHiddenSiblings(et){const tt=[];return[].forEach.call(et.children,rt=>{rt.getAttribute("aria-hidden")==="true"&&tt.push(rt)}),tt}class ModalManager{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(tt,rt){let nt=this.modals.indexOf(tt);if(nt!==-1)return nt;nt=this.modals.length,this.modals.push(tt),tt.modalRef&&ariaHidden(tt.modalRef,!1);const lt=getHiddenSiblings(rt);ariaHiddenSiblings(rt,tt.mount,tt.modalRef,lt,!0);const ut=findIndexOf(this.containers,dt=>dt.container===rt);return ut!==-1?(this.containers[ut].modals.push(tt),nt):(this.containers.push({modals:[tt],container:rt,restore:null,hiddenSiblings:lt}),nt)}mount(tt,rt){const nt=findIndexOf(this.containers,ut=>ut.modals.indexOf(tt)!==-1),lt=this.containers[nt];lt.restore||(lt.restore=handleContainer(lt,rt))}remove(tt,rt=!0){const nt=this.modals.indexOf(tt);if(nt===-1)return nt;const lt=findIndexOf(this.containers,dt=>dt.modals.indexOf(tt)!==-1),ut=this.containers[lt];if(ut.modals.splice(ut.modals.indexOf(tt),1),this.modals.splice(nt,1),ut.modals.length===0)ut.restore&&ut.restore(),tt.modalRef&&ariaHidden(tt.modalRef,rt),ariaHiddenSiblings(ut.container,tt.mount,tt.modalRef,ut.hiddenSiblings,!1),this.containers.splice(lt,1);else{const dt=ut.modals[ut.modals.length-1];dt.modalRef&&ariaHidden(dt.modalRef,!1)}return nt}isTopModal(tt){return this.modals.length>0&&this.modals[this.modals.length-1]===tt}}const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(et){const tt=parseInt(et.getAttribute("tabindex")||"",10);return Number.isNaN(tt)?et.contentEditable==="true"||(et.nodeName==="AUDIO"||et.nodeName==="VIDEO"||et.nodeName==="DETAILS")&&et.getAttribute("tabindex")===null?0:et.tabIndex:tt}function isNonTabbableRadio(et){if(et.tagName!=="INPUT"||et.type!=="radio"||!et.name)return!1;const tt=nt=>et.ownerDocument.querySelector(`input[type="radio"]${nt}`);let rt=tt(`[name="${et.name}"]:checked`);return rt||(rt=tt(`[name="${et.name}"]`)),rt!==et}function isNodeMatchingSelectorFocusable(et){return!(et.disabled||et.tagName==="INPUT"&&et.type==="hidden"||isNonTabbableRadio(et))}function defaultGetTabbable(et){const tt=[],rt=[];return Array.from(et.querySelectorAll(candidatesSelector)).forEach((nt,lt)=>{const ut=getTabIndex(nt);ut===-1||!isNodeMatchingSelectorFocusable(nt)||(ut===0?tt.push(nt):rt.push({documentOrder:lt,tabIndex:ut,node:nt}))}),rt.sort((nt,lt)=>nt.tabIndex===lt.tabIndex?nt.documentOrder-lt.documentOrder:nt.tabIndex-lt.tabIndex).map(nt=>nt.node).concat(tt)}function defaultIsEnabled(){return!0}function FocusTrap(et){const{children:tt,disableAutoFocus:rt=!1,disableEnforceFocus:nt=!1,disableRestoreFocus:lt=!1,getTabbable:ut=defaultGetTabbable,isEnabled:dt=defaultIsEnabled,open:pt}=et,ht=reactExports.useRef(!1),mt=reactExports.useRef(null),xt=reactExports.useRef(null),Mt=reactExports.useRef(null),vt=reactExports.useRef(null),Ot=reactExports.useRef(!1),At=reactExports.useRef(null),Rt=useForkRef(tt.ref,At),zt=reactExports.useRef(null);reactExports.useEffect(()=>{!pt||!At.current||(Ot.current=!rt)},[rt,pt]),reactExports.useEffect(()=>{if(!pt||!At.current)return;const It=ownerDocument(At.current);return At.current.contains(It.activeElement)||(At.current.hasAttribute("tabIndex")||At.current.setAttribute("tabIndex","-1"),Ot.current&&At.current.focus()),()=>{lt||(Mt.current&&Mt.current.focus&&(ht.current=!0,Mt.current.focus()),Mt.current=null)}},[pt]),reactExports.useEffect(()=>{if(!pt||!At.current)return;const It=ownerDocument(At.current),Dt=Nt=>{zt.current=Nt,!(nt||!dt()||Nt.key!=="Tab")&&It.activeElement===At.current&&Nt.shiftKey&&(ht.current=!0,xt.current&&xt.current.focus())},kt=()=>{const Nt=At.current;if(Nt===null)return;if(!It.hasFocus()||!dt()||ht.current){ht.current=!1;return}if(Nt.contains(It.activeElement)||nt&&It.activeElement!==mt.current&&It.activeElement!==xt.current)return;if(It.activeElement!==vt.current)vt.current=null;else if(vt.current!==null)return;if(!Ot.current)return;let Yt=[];if((It.activeElement===mt.current||It.activeElement===xt.current)&&(Yt=ut(At.current)),Yt.length>0){var Kt,Jt;const Qt=!!((Kt=zt.current)!=null&&Kt.shiftKey&&((Jt=zt.current)==null?void 0:Jt.key)==="Tab"),Bt=Yt[0],Ft=Yt[Yt.length-1];typeof Bt!="string"&&typeof Ft!="string"&&(Qt?Ft.focus():Bt.focus())}else Nt.focus()};It.addEventListener("focusin",kt),It.addEventListener("keydown",Dt,!0);const qt=setInterval(()=>{It.activeElement&&It.activeElement.tagName==="BODY"&&kt()},50);return()=>{clearInterval(qt),It.removeEventListener("focusin",kt),It.removeEventListener("keydown",Dt,!0)}},[rt,nt,lt,dt,pt,ut]);const Tt=It=>{Mt.current===null&&(Mt.current=It.relatedTarget),Ot.current=!0,vt.current=It.target;const Dt=tt.props.onFocus;Dt&&Dt(It)},Ct=It=>{Mt.current===null&&(Mt.current=It.relatedTarget),Ot.current=!0};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{tabIndex:pt?0:-1,onFocus:Ct,ref:mt,"data-testid":"sentinelStart"}),reactExports.cloneElement(tt,{ref:Rt,onFocus:Tt}),jsxRuntimeExports.jsx("div",{tabIndex:pt?0:-1,onFocus:Ct,ref:xt,"data-testid":"sentinelEnd"})]})}function getContainer(et){return typeof et=="function"?et():et}function getHasTransition(et){return et?et.props.hasOwnProperty("in"):!1}const defaultManager=new ModalManager;function useModal(et){const{container:tt,disableEscapeKeyDown:rt=!1,disableScrollLock:nt=!1,manager:lt=defaultManager,closeAfterTransition:ut=!1,onTransitionEnter:dt,onTransitionExited:pt,children:ht,onClose:mt,open:xt,rootRef:Mt}=et,vt=reactExports.useRef({}),Ot=reactExports.useRef(null),At=reactExports.useRef(null),Rt=useForkRef(At,Mt),[zt,Tt]=reactExports.useState(!xt),Ct=getHasTransition(ht);let It=!0;(et["aria-hidden"]==="false"||et["aria-hidden"]===!1)&&(It=!1);const Dt=()=>ownerDocument(Ot.current),kt=()=>(vt.current.modalRef=At.current,vt.current.mount=Ot.current,vt.current),qt=()=>{lt.mount(kt(),{disableScrollLock:nt}),At.current&&(At.current.scrollTop=0)},Nt=useEventCallback$1(()=>{const Wt=getContainer(tt)||Dt().body;lt.add(kt(),Wt),At.current&&qt()}),Yt=reactExports.useCallback(()=>lt.isTopModal(kt()),[lt]),Kt=useEventCallback$1(Wt=>{Ot.current=Wt,Wt&&(xt&&Yt()?qt():At.current&&ariaHidden(At.current,It))}),Jt=reactExports.useCallback(()=>{lt.remove(kt(),It)},[It,lt]);reactExports.useEffect(()=>()=>{Jt()},[Jt]),reactExports.useEffect(()=>{xt?Nt():(!Ct||!ut)&&Jt()},[xt,Jt,Ct,ut,Nt]);const Qt=Wt=>Ut=>{var Vt;(Vt=Wt.onKeyDown)==null||Vt.call(Wt,Ut),!(Ut.key!=="Escape"||Ut.which===229||!Yt())&&(rt||(Ut.stopPropagation(),mt&&mt(Ut,"escapeKeyDown")))},Bt=Wt=>Ut=>{var Vt;(Vt=Wt.onClick)==null||Vt.call(Wt,Ut),Ut.target===Ut.currentTarget&&mt&&mt(Ut,"backdropClick")};return{getRootProps:(Wt={})=>{const Ut=extractEventHandlers(et);delete Ut.onTransitionEnter,delete Ut.onTransitionExited;const Vt=_extends$j({},Ut,Wt);return _extends$j({role:"presentation"},Vt,{onKeyDown:Qt(Vt),ref:Rt})},getBackdropProps:(Wt={})=>{const Ut=Wt;return _extends$j({"aria-hidden":!0},Ut,{onClick:Bt(Ut),open:xt})},getTransitionProps:()=>{const Wt=()=>{Tt(!1),dt&&dt()},Ut=()=>{Tt(!0),pt&&pt(),ut&&Jt()};return{onEnter:createChainedFunction(Wt,ht==null?void 0:ht.props.onEnter),onExited:createChainedFunction(Ut,ht==null?void 0:ht.props.onExited)}},rootRef:Rt,portalRef:Kt,isTopModal:Yt,exited:zt,hasTransition:Ct}}function getModalUtilityClass(et){return generateUtilityClass("MuiModal",et)}generateUtilityClasses("MuiModal",["root","hidden","backdrop"]);const _excluded$1D=["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"],useUtilityClasses$1a=et=>{const{open:tt,exited:rt,classes:nt}=et;return composeClasses({root:["root",!tt&&rt&&"hidden"],backdrop:["backdrop"]},getModalUtilityClass,nt)},ModalRoot=styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,!rt.open&&rt.exited&&tt.hidden]}})(({theme:et,ownerState:tt})=>_extends$j({position:"fixed",zIndex:(et.vars||et).zIndex.modal,right:0,bottom:0,top:0,left:0},!tt.open&&tt.exited&&{visibility:"hidden"})),ModalBackdrop=styled(Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:(et,tt)=>tt.backdrop})({zIndex:-1}),Modal=reactExports.forwardRef(function(tt,rt){var nt,lt,ut,dt,pt,ht;const mt=useDefaultProps({name:"MuiModal",props:tt}),{BackdropComponent:xt=ModalBackdrop,BackdropProps:Mt,className:vt,closeAfterTransition:Ot=!1,children:At,container:Rt,component:zt,components:Tt={},componentsProps:Ct={},disableAutoFocus:It=!1,disableEnforceFocus:Dt=!1,disableEscapeKeyDown:kt=!1,disablePortal:qt=!1,disableRestoreFocus:Nt=!1,disableScrollLock:Yt=!1,hideBackdrop:Kt=!1,keepMounted:Jt=!1,onBackdropClick:Qt,open:Bt,slotProps:Ft,slots:$t}=mt,jt=_objectWithoutPropertiesLoose$d(mt,_excluded$1D),Wt=_extends$j({},mt,{closeAfterTransition:Ot,disableAutoFocus:It,disableEnforceFocus:Dt,disableEscapeKeyDown:kt,disablePortal:qt,disableRestoreFocus:Nt,disableScrollLock:Yt,hideBackdrop:Kt,keepMounted:Jt}),{getRootProps:Ut,getBackdropProps:Vt,getTransitionProps:Ht,portalRef:Gt,isTopModal:Zt,exited:Xt,hasTransition:er}=useModal(_extends$j({},Wt,{rootRef:rt})),nr=_extends$j({},Wt,{exited:Xt}),or=useUtilityClasses$1a(nr),rr={};if(At.props.tabIndex===void 0&&(rr.tabIndex="-1"),er){const{onEnter:ur,onExited:xr}=Ht();rr.onEnter=ur,rr.onExited=xr}const cr=(nt=(lt=$t==null?void 0:$t.root)!=null?lt:Tt.Root)!=null?nt:ModalRoot,ir=(ut=(dt=$t==null?void 0:$t.backdrop)!=null?dt:Tt.Backdrop)!=null?ut:xt,dr=(pt=Ft==null?void 0:Ft.root)!=null?pt:Ct.root,gr=(ht=Ft==null?void 0:Ft.backdrop)!=null?ht:Ct.backdrop,br=useSlotProps({elementType:cr,externalSlotProps:dr,externalForwardedProps:jt,getSlotProps:Ut,additionalProps:{ref:rt,as:zt},ownerState:nr,className:clsx(vt,dr==null?void 0:dr.className,or==null?void 0:or.root,!nr.open&&nr.exited&&(or==null?void 0:or.hidden))}),ar=useSlotProps({elementType:ir,externalSlotProps:gr,additionalProps:Mt,getSlotProps:ur=>Vt(_extends$j({},ur,{onClick:xr=>{Qt&&Qt(xr),ur!=null&&ur.onClick&&ur.onClick(xr)}})),className:clsx(gr==null?void 0:gr.className,Mt==null?void 0:Mt.className,or==null?void 0:or.backdrop),ownerState:nr});return!Jt&&!Bt&&(!er||Xt)?null:jsxRuntimeExports.jsx(Portal,{ref:Gt,container:Rt,disablePortal:qt,children:jsxRuntimeExports.jsxs(cr,_extends$j({},br,{children:[!Kt&&xt?jsxRuntimeExports.jsx(ir,_extends$j({},ar)):null,jsxRuntimeExports.jsx(FocusTrap,{disableEnforceFocus:Dt,disableAutoFocus:It,disableRestoreFocus:Nt,isEnabled:Zt,open:Bt,children:reactExports.cloneElement(At,rr)})]}))})});function getDialogUtilityClass(et){return generateUtilityClass("MuiDialog",et)}const dialogClasses=generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DialogContext=reactExports.createContext({}),_excluded$1C=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],DialogBackdrop=styled(Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(et,tt)=>tt.backdrop})({zIndex:-1}),useUtilityClasses$19=et=>{const{classes:tt,scroll:rt,maxWidth:nt,fullWidth:lt,fullScreen:ut}=et,dt={root:["root"],container:["container",`scroll${capitalize$3(rt)}`],paper:["paper",`paperScroll${capitalize$3(rt)}`,`paperWidth${capitalize$3(String(nt))}`,lt&&"paperFullWidth",ut&&"paperFullScreen"]};return composeClasses(dt,getDialogUtilityClass,tt)},DialogRoot=styled(Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(et,tt)=>tt.root})({"@media print":{position:"absolute !important"}}),DialogContainer=styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.container,tt[`scroll${capitalize$3(rt.scroll)}`]]}})(({ownerState:et})=>_extends$j({height:"100%","@media print":{height:"auto"},outline:0},et.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},et.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),DialogPaper=styled(Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.paper,tt[`scrollPaper${capitalize$3(rt.scroll)}`],tt[`paperWidth${capitalize$3(String(rt.maxWidth))}`],rt.fullWidth&&tt.paperFullWidth,rt.fullScreen&&tt.paperFullScreen]}})(({theme:et,ownerState:tt})=>_extends$j({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},tt.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},tt.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!tt.maxWidth&&{maxWidth:"calc(100% - 64px)"},tt.maxWidth==="xs"&&{maxWidth:et.breakpoints.unit==="px"?Math.max(et.breakpoints.values.xs,444):`max(${et.breakpoints.values.xs}${et.breakpoints.unit}, 444px)`,[`&.${dialogClasses.paperScrollBody}`]:{[et.breakpoints.down(Math.max(et.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},tt.maxWidth&&tt.maxWidth!=="xs"&&{maxWidth:`${et.breakpoints.values[tt.maxWidth]}${et.breakpoints.unit}`,[`&.${dialogClasses.paperScrollBody}`]:{[et.breakpoints.down(et.breakpoints.values[tt.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},tt.fullWidth&&{width:"calc(100% - 64px)"},tt.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dialogClasses.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Dialog=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiDialog"}),lt=useTheme$1(),ut={enter:lt.transitions.duration.enteringScreen,exit:lt.transitions.duration.leavingScreen},{"aria-describedby":dt,"aria-labelledby":pt,BackdropComponent:ht,BackdropProps:mt,children:xt,className:Mt,disableEscapeKeyDown:vt=!1,fullScreen:Ot=!1,fullWidth:At=!1,maxWidth:Rt="sm",onBackdropClick:zt,onClick:Tt,onClose:Ct,open:It,PaperComponent:Dt=Paper,PaperProps:kt={},scroll:qt="paper",TransitionComponent:Nt=Fade,transitionDuration:Yt=ut,TransitionProps:Kt}=nt,Jt=_objectWithoutPropertiesLoose$d(nt,_excluded$1C),Qt=_extends$j({},nt,{disableEscapeKeyDown:vt,fullScreen:Ot,fullWidth:At,maxWidth:Rt,scroll:qt}),Bt=useUtilityClasses$19(Qt),Ft=reactExports.useRef(),$t=Vt=>{Ft.current=Vt.target===Vt.currentTarget},jt=Vt=>{Tt&&Tt(Vt),Ft.current&&(Ft.current=null,zt&&zt(Vt),Ct&&Ct(Vt,"backdropClick"))},Wt=useId(pt),Ut=reactExports.useMemo(()=>({titleId:Wt}),[Wt]);return jsxRuntimeExports.jsx(DialogRoot,_extends$j({className:clsx(Bt.root,Mt),closeAfterTransition:!0,components:{Backdrop:DialogBackdrop},componentsProps:{backdrop:_extends$j({transitionDuration:Yt,as:ht},mt)},disableEscapeKeyDown:vt,onClose:Ct,open:It,ref:rt,onClick:jt,ownerState:Qt},Jt,{children:jsxRuntimeExports.jsx(Nt,_extends$j({appear:!0,in:It,timeout:Yt,role:"presentation"},Kt,{children:jsxRuntimeExports.jsx(DialogContainer,{className:clsx(Bt.container),onMouseDown:$t,ownerState:Qt,children:jsxRuntimeExports.jsx(DialogPaper,_extends$j({as:Dt,elevation:24,role:"dialog","aria-describedby":dt,"aria-labelledby":Wt},kt,{className:clsx(Bt.paper,kt.className),ownerState:Qt,children:jsxRuntimeExports.jsx(DialogContext.Provider,{value:Ut,children:xt})}))})}))}))});function getDialogActionsUtilityClass(et){return generateUtilityClass("MuiDialogActions",et)}generateUtilityClasses("MuiDialogActions",["root","spacing"]);const _excluded$1B=["className","disableSpacing"],useUtilityClasses$18=et=>{const{classes:tt,disableSpacing:rt}=et;return composeClasses({root:["root",!rt&&"spacing"]},getDialogActionsUtilityClass,tt)},DialogActionsRoot=styled("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,!rt.disableSpacing&&tt.spacing]}})(({ownerState:et})=>_extends$j({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!et.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),DialogActions=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiDialogActions"}),{className:lt,disableSpacing:ut=!1}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$1B),pt=_extends$j({},nt,{disableSpacing:ut}),ht=useUtilityClasses$18(pt);return jsxRuntimeExports.jsx(DialogActionsRoot,_extends$j({className:clsx(ht.root,lt),ownerState:pt,ref:rt},dt))});function getDialogContentUtilityClass(et){return generateUtilityClass("MuiDialogContent",et)}generateUtilityClasses("MuiDialogContent",["root","dividers"]);function getDialogTitleUtilityClass(et){return generateUtilityClass("MuiDialogTitle",et)}const dialogTitleClasses=generateUtilityClasses("MuiDialogTitle",["root"]),_excluded$1A=["className","dividers"],useUtilityClasses$17=et=>{const{classes:tt,dividers:rt}=et;return composeClasses({root:["root",rt&&"dividers"]},getDialogContentUtilityClass,tt)},DialogContentRoot=styled("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.dividers&&tt.dividers]}})(({theme:et,ownerState:tt})=>_extends$j({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},tt.dividers?{padding:"16px 24px",borderTop:`1px solid ${(et.vars||et).palette.divider}`,borderBottom:`1px solid ${(et.vars||et).palette.divider}`}:{[`.${dialogTitleClasses.root} + &`]:{paddingTop:0}})),DialogContent=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiDialogContent"}),{className:lt,dividers:ut=!1}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$1A),pt=_extends$j({},nt,{dividers:ut}),ht=useUtilityClasses$17(pt);return jsxRuntimeExports.jsx(DialogContentRoot,_extends$j({className:clsx(ht.root,lt),ownerState:pt,ref:rt},dt))});function getDialogContentTextUtilityClass(et){return generateUtilityClass("MuiDialogContentText",et)}generateUtilityClasses("MuiDialogContentText",["root"]);const _excluded$1z=["children","className"],useUtilityClasses$16=et=>{const{classes:tt}=et,nt=composeClasses({root:["root"]},getDialogContentTextUtilityClass,tt);return _extends$j({},tt,nt)},DialogContentTextRoot=styled(Typography,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(et,tt)=>tt.root})({}),DialogContentText=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiDialogContentText"}),{className:lt}=nt,ut=_objectWithoutPropertiesLoose$d(nt,_excluded$1z),dt=useUtilityClasses$16(ut);return jsxRuntimeExports.jsx(DialogContentTextRoot,_extends$j({component:"p",variant:"body1",color:"text.secondary",ref:rt,ownerState:ut,className:clsx(dt.root,lt)},nt,{classes:dt}))}),_excluded$1y=["className","id"],useUtilityClasses$15=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getDialogTitleUtilityClass,tt)},DialogTitleRoot=styled(Typography,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(et,tt)=>tt.root})({padding:"16px 24px",flex:"0 0 auto"}),DialogTitle=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiDialogTitle"}),{className:lt,id:ut}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$1y),pt=nt,ht=useUtilityClasses$15(pt),{titleId:mt=ut}=reactExports.useContext(DialogContext);return jsxRuntimeExports.jsx(DialogTitleRoot,_extends$j({component:"h2",className:clsx(ht.root,lt),ownerState:pt,ref:rt,variant:"h6",id:ut??mt},dt))});function getDividerUtilityClass(et){return generateUtilityClass("MuiDivider",et)}const dividerClasses=generateUtilityClasses("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_excluded$1x=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],useUtilityClasses$14=et=>{const{absolute:tt,children:rt,classes:nt,flexItem:lt,light:ut,orientation:dt,textAlign:pt,variant:ht}=et;return composeClasses({root:["root",tt&&"absolute",ht,ut&&"light",dt==="vertical"&&"vertical",lt&&"flexItem",rt&&"withChildren",rt&&dt==="vertical"&&"withChildrenVertical",pt==="right"&&dt!=="vertical"&&"textAlignRight",pt==="left"&&dt!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",dt==="vertical"&&"wrapperVertical"]},getDividerUtilityClass,nt)},DividerRoot=styled("div",{name:"MuiDivider",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.absolute&&tt.absolute,tt[rt.variant],rt.light&&tt.light,rt.orientation==="vertical"&&tt.vertical,rt.flexItem&&tt.flexItem,rt.children&&tt.withChildren,rt.children&&rt.orientation==="vertical"&&tt.withChildrenVertical,rt.textAlign==="right"&&rt.orientation!=="vertical"&&tt.textAlignRight,rt.textAlign==="left"&&rt.orientation!=="vertical"&&tt.textAlignLeft]}})(({theme:et,ownerState:tt})=>_extends$j({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(et.vars||et).palette.divider,borderBottomWidth:"thin"},tt.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},tt.light&&{borderColor:et.vars?`rgba(${et.vars.palette.dividerChannel} / 0.08)`:alpha_1(et.palette.divider,.08)},tt.variant==="inset"&&{marginLeft:72},tt.variant==="middle"&&tt.orientation==="horizontal"&&{marginLeft:et.spacing(2),marginRight:et.spacing(2)},tt.variant==="middle"&&tt.orientation==="vertical"&&{marginTop:et.spacing(1),marginBottom:et.spacing(1)},tt.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},tt.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:et})=>_extends$j({},et.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:et,ownerState:tt})=>_extends$j({},tt.children&&tt.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(et.vars||et).palette.divider}`,borderTopStyle:"inherit"}}),({theme:et,ownerState:tt})=>_extends$j({},tt.children&&tt.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(et.vars||et).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:et})=>_extends$j({},et.textAlign==="right"&&et.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},et.textAlign==="left"&&et.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),DividerWrapper=styled("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.wrapper,rt.orientation==="vertical"&&tt.wrapperVertical]}})(({theme:et,ownerState:tt})=>_extends$j({display:"inline-block",paddingLeft:`calc(${et.spacing(1)} * 1.2)`,paddingRight:`calc(${et.spacing(1)} * 1.2)`},tt.orientation==="vertical"&&{paddingTop:`calc(${et.spacing(1)} * 1.2)`,paddingBottom:`calc(${et.spacing(1)} * 1.2)`})),Divider$1=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiDivider"}),{absolute:lt=!1,children:ut,className:dt,component:pt=ut?"div":"hr",flexItem:ht=!1,light:mt=!1,orientation:xt="horizontal",role:Mt=pt!=="hr"?"separator":void 0,textAlign:vt="center",variant:Ot="fullWidth"}=nt,At=_objectWithoutPropertiesLoose$d(nt,_excluded$1x),Rt=_extends$j({},nt,{absolute:lt,component:pt,flexItem:ht,light:mt,orientation:xt,role:Mt,textAlign:vt,variant:Ot}),zt=useUtilityClasses$14(Rt);return jsxRuntimeExports.jsx(DividerRoot,_extends$j({as:pt,className:clsx(zt.root,dt),role:Mt,ref:rt,ownerState:Rt},At,{children:ut?jsxRuntimeExports.jsx(DividerWrapper,{className:zt.wrapper,ownerState:Rt,children:ut}):null}))});Divider$1.muiSkipListHighlight=!0;const _excluded$1w=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getTranslateValue(et,tt,rt){const nt=tt.getBoundingClientRect(),lt=rt&&rt.getBoundingClientRect(),ut=ownerWindow(tt);let dt;if(tt.fakeTransform)dt=tt.fakeTransform;else{const mt=ut.getComputedStyle(tt);dt=mt.getPropertyValue("-webkit-transform")||mt.getPropertyValue("transform")}let pt=0,ht=0;if(dt&&dt!=="none"&&typeof dt=="string"){const mt=dt.split("(")[1].split(")")[0].split(",");pt=parseInt(mt[4],10),ht=parseInt(mt[5],10)}return et==="left"?lt?`translateX(${lt.right+pt-nt.left}px)`:`translateX(${ut.innerWidth+pt-nt.left}px)`:et==="right"?lt?`translateX(-${nt.right-lt.left-pt}px)`:`translateX(-${nt.left+nt.width-pt}px)`:et==="up"?lt?`translateY(${lt.bottom+ht-nt.top}px)`:`translateY(${ut.innerHeight+ht-nt.top}px)`:lt?`translateY(-${nt.top-lt.top+nt.height-ht}px)`:`translateY(-${nt.top+nt.height-ht}px)`}function resolveContainer(et){return typeof et=="function"?et():et}function setTranslateValue(et,tt,rt){const nt=resolveContainer(rt),lt=getTranslateValue(et,tt,nt);lt&&(tt.style.webkitTransform=lt,tt.style.transform=lt)}const Slide=reactExports.forwardRef(function(tt,rt){const nt=useTheme$1(),lt={enter:nt.transitions.easing.easeOut,exit:nt.transitions.easing.sharp},ut={enter:nt.transitions.duration.enteringScreen,exit:nt.transitions.duration.leavingScreen},{addEndListener:dt,appear:pt=!0,children:ht,container:mt,direction:xt="down",easing:Mt=lt,in:vt,onEnter:Ot,onEntered:At,onEntering:Rt,onExit:zt,onExited:Tt,onExiting:Ct,style:It,timeout:Dt=ut,TransitionComponent:kt=Transition}=tt,qt=_objectWithoutPropertiesLoose$d(tt,_excluded$1w),Nt=reactExports.useRef(null),Yt=useForkRef(ht.ref,Nt,rt),Kt=Vt=>Ht=>{Vt&&(Ht===void 0?Vt(Nt.current):Vt(Nt.current,Ht))},Jt=Kt((Vt,Ht)=>{setTranslateValue(xt,Vt,mt),reflow(Vt),Ot&&Ot(Vt,Ht)}),Qt=Kt((Vt,Ht)=>{const Gt=getTransitionProps({timeout:Dt,style:It,easing:Mt},{mode:"enter"});Vt.style.webkitTransition=nt.transitions.create("-webkit-transform",_extends$j({},Gt)),Vt.style.transition=nt.transitions.create("transform",_extends$j({},Gt)),Vt.style.webkitTransform="none",Vt.style.transform="none",Rt&&Rt(Vt,Ht)}),Bt=Kt(At),Ft=Kt(Ct),$t=Kt(Vt=>{const Ht=getTransitionProps({timeout:Dt,style:It,easing:Mt},{mode:"exit"});Vt.style.webkitTransition=nt.transitions.create("-webkit-transform",Ht),Vt.style.transition=nt.transitions.create("transform",Ht),setTranslateValue(xt,Vt,mt),zt&&zt(Vt)}),jt=Kt(Vt=>{Vt.style.webkitTransition="",Vt.style.transition="",Tt&&Tt(Vt)}),Wt=Vt=>{dt&&dt(Nt.current,Vt)},Ut=reactExports.useCallback(()=>{Nt.current&&setTranslateValue(xt,Nt.current,mt)},[xt,mt]);return reactExports.useEffect(()=>{if(vt||xt==="down"||xt==="right")return;const Vt=debounce$4(()=>{Nt.current&&setTranslateValue(xt,Nt.current,mt)}),Ht=ownerWindow(Nt.current);return Ht.addEventListener("resize",Vt),()=>{Vt.clear(),Ht.removeEventListener("resize",Vt)}},[xt,vt,mt]),reactExports.useEffect(()=>{vt||Ut()},[vt,Ut]),jsxRuntimeExports.jsx(kt,_extends$j({nodeRef:Nt,onEnter:Jt,onEntered:Bt,onEntering:Qt,onExit:$t,onExited:jt,onExiting:Ft,addEndListener:Wt,appear:pt,in:vt,timeout:Dt},qt,{children:(Vt,Ht)=>reactExports.cloneElement(ht,_extends$j({ref:Yt,style:_extends$j({visibility:Vt==="exited"&&!vt?"hidden":void 0},It,ht.props.style)},Ht))}))});function getDrawerUtilityClass(et){return generateUtilityClass("MuiDrawer",et)}generateUtilityClasses("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const _excluded$1v=["BackdropProps"],_excluded2$g=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],overridesResolver$6=(et,tt)=>{const{ownerState:rt}=et;return[tt.root,(rt.variant==="permanent"||rt.variant==="persistent")&&tt.docked,tt.modal]},useUtilityClasses$13=et=>{const{classes:tt,anchor:rt,variant:nt}=et,lt={root:["root"],docked:[(nt==="permanent"||nt==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${capitalize$3(rt)}`,nt!=="temporary"&&`paperAnchorDocked${capitalize$3(rt)}`]};return composeClasses(lt,getDrawerUtilityClass,tt)},DrawerRoot=styled(Modal,{name:"MuiDrawer",slot:"Root",overridesResolver:overridesResolver$6})(({theme:et})=>({zIndex:(et.vars||et).zIndex.drawer})),DrawerDockedRoot=styled("div",{shouldForwardProp:rootShouldForwardProp$1,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:overridesResolver$6})({flex:"0 0 auto"}),DrawerPaper=styled(Paper,{name:"MuiDrawer",slot:"Paper",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.paper,tt[`paperAnchor${capitalize$3(rt.anchor)}`],rt.variant!=="temporary"&&tt[`paperAnchorDocked${capitalize$3(rt.anchor)}`]]}})(({theme:et,ownerState:tt})=>_extends$j({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(et.vars||et).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},tt.anchor==="left"&&{left:0},tt.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},tt.anchor==="right"&&{right:0},tt.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},tt.anchor==="left"&&tt.variant!=="temporary"&&{borderRight:`1px solid ${(et.vars||et).palette.divider}`},tt.anchor==="top"&&tt.variant!=="temporary"&&{borderBottom:`1px solid ${(et.vars||et).palette.divider}`},tt.anchor==="right"&&tt.variant!=="temporary"&&{borderLeft:`1px solid ${(et.vars||et).palette.divider}`},tt.anchor==="bottom"&&tt.variant!=="temporary"&&{borderTop:`1px solid ${(et.vars||et).palette.divider}`})),oppositeDirection={left:"right",right:"left",top:"down",bottom:"up"};function isHorizontal(et){return["left","right"].indexOf(et)!==-1}function getAnchor({direction:et},tt){return et==="rtl"&&isHorizontal(tt)?oppositeDirection[tt]:tt}const Drawer=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiDrawer"}),lt=useTheme$1(),ut=useRtl(),dt={enter:lt.transitions.duration.enteringScreen,exit:lt.transitions.duration.leavingScreen},{anchor:pt="left",BackdropProps:ht,children:mt,className:xt,elevation:Mt=16,hideBackdrop:vt=!1,ModalProps:{BackdropProps:Ot}={},onClose:At,open:Rt=!1,PaperProps:zt={},SlideProps:Tt,TransitionComponent:Ct=Slide,transitionDuration:It=dt,variant:Dt="temporary"}=nt,kt=_objectWithoutPropertiesLoose$d(nt.ModalProps,_excluded$1v),qt=_objectWithoutPropertiesLoose$d(nt,_excluded2$g),Nt=reactExports.useRef(!1);reactExports.useEffect(()=>{Nt.current=!0},[]);const Yt=getAnchor({direction:ut?"rtl":"ltr"},pt),Jt=_extends$j({},nt,{anchor:pt,elevation:Mt,open:Rt,variant:Dt},qt),Qt=useUtilityClasses$13(Jt),Bt=jsxRuntimeExports.jsx(DrawerPaper,_extends$j({elevation:Dt==="temporary"?Mt:0,square:!0},zt,{className:clsx(Qt.paper,zt.className),ownerState:Jt,children:mt}));if(Dt==="permanent")return jsxRuntimeExports.jsx(DrawerDockedRoot,_extends$j({className:clsx(Qt.root,Qt.docked,xt),ownerState:Jt,ref:rt},qt,{children:Bt}));const Ft=jsxRuntimeExports.jsx(Ct,_extends$j({in:Rt,direction:oppositeDirection[Yt],timeout:It,appear:Nt.current},Tt,{children:Bt}));return Dt==="persistent"?jsxRuntimeExports.jsx(DrawerDockedRoot,_extends$j({className:clsx(Qt.root,Qt.docked,xt),ownerState:Jt,ref:rt},qt,{children:Ft})):jsxRuntimeExports.jsx(DrawerRoot,_extends$j({BackdropProps:_extends$j({},ht,Ot,{transitionDuration:It}),className:clsx(Qt.root,Qt.modal,xt),open:Rt,ownerState:Jt,onClose:At,hideBackdrop:vt,ref:rt},qt,kt,{children:Ft}))}),_excluded$1u=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$12=et=>{const{classes:tt,disableUnderline:rt}=et,lt=composeClasses({root:["root",!rt&&"underline"],input:["input"]},getFilledInputUtilityClass,tt);return _extends$j({},tt,lt)},FilledInputRoot=styled(InputBaseRoot,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[...rootOverridesResolver(et,tt),!rt.disableUnderline&&tt.underline]}})(({theme:et,ownerState:tt})=>{var rt;const nt=et.palette.mode==="light",lt=nt?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",ut=nt?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",dt=nt?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",pt=nt?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return _extends$j({position:"relative",backgroundColor:et.vars?et.vars.palette.FilledInput.bg:ut,borderTopLeftRadius:(et.vars||et).shape.borderRadius,borderTopRightRadius:(et.vars||et).shape.borderRadius,transition:et.transitions.create("background-color",{duration:et.transitions.duration.shorter,easing:et.transitions.easing.easeOut}),"&:hover":{backgroundColor:et.vars?et.vars.palette.FilledInput.hoverBg:dt,"@media (hover: none)":{backgroundColor:et.vars?et.vars.palette.FilledInput.bg:ut}},[`&.${filledInputClasses.focused}`]:{backgroundColor:et.vars?et.vars.palette.FilledInput.bg:ut},[`&.${filledInputClasses.disabled}`]:{backgroundColor:et.vars?et.vars.palette.FilledInput.disabledBg:pt}},!tt.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(rt=(et.vars||et).palette[tt.color||"primary"])==null?void 0:rt.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:et.transitions.create("transform",{duration:et.transitions.duration.shorter,easing:et.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(et.vars||et).palette.error.main}},"&::before":{borderBottom:`1px solid ${et.vars?`rgba(${et.vars.palette.common.onBackgroundChannel} / ${et.vars.opacity.inputUnderline})`:lt}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:et.transitions.create("border-bottom-color",{duration:et.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]:{borderBottom:`1px solid ${(et.vars||et).palette.text.primary}`},[`&.${filledInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}},tt.startAdornment&&{paddingLeft:12},tt.endAdornment&&{paddingRight:12},tt.multiline&&_extends$j({padding:"25px 12px 8px"},tt.size==="small"&&{paddingTop:21,paddingBottom:4},tt.hiddenLabel&&{paddingTop:16,paddingBottom:17},tt.hiddenLabel&&tt.size==="small"&&{paddingTop:8,paddingBottom:9}))}),FilledInputInput=styled(InputBaseComponent,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:et,ownerState:tt})=>_extends$j({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!et.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:et.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:et.palette.mode==="light"?null:"#fff",caretColor:et.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},et.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[et.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},tt.size==="small"&&{paddingTop:21,paddingBottom:4},tt.hiddenLabel&&{paddingTop:16,paddingBottom:17},tt.startAdornment&&{paddingLeft:0},tt.endAdornment&&{paddingRight:0},tt.hiddenLabel&&tt.size==="small"&&{paddingTop:8,paddingBottom:9},tt.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),FilledInput=reactExports.forwardRef(function(tt,rt){var nt,lt,ut,dt;const pt=useDefaultProps({props:tt,name:"MuiFilledInput"}),{components:ht={},componentsProps:mt,fullWidth:xt=!1,inputComponent:Mt="input",multiline:vt=!1,slotProps:Ot,slots:At={},type:Rt="text"}=pt,zt=_objectWithoutPropertiesLoose$d(pt,_excluded$1u),Tt=_extends$j({},pt,{fullWidth:xt,inputComponent:Mt,multiline:vt,type:Rt}),Ct=useUtilityClasses$12(pt),It={root:{ownerState:Tt},input:{ownerState:Tt}},Dt=Ot??mt?deepmerge$2(It,Ot??mt):It,kt=(nt=(lt=At.root)!=null?lt:ht.Root)!=null?nt:FilledInputRoot,qt=(ut=(dt=At.input)!=null?dt:ht.Input)!=null?ut:FilledInputInput;return jsxRuntimeExports.jsx(InputBase,_extends$j({slots:{root:kt,input:qt},componentsProps:Dt,fullWidth:xt,inputComponent:Mt,multiline:vt,ref:rt,type:Rt},zt,{classes:Ct}))});FilledInput.muiName="Input";function getFormControlUtilityClasses(et){return generateUtilityClass("MuiFormControl",et)}generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _excluded$1t=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],useUtilityClasses$11=et=>{const{classes:tt,margin:rt,fullWidth:nt}=et,lt={root:["root",rt!=="none"&&`margin${capitalize$3(rt)}`,nt&&"fullWidth"]};return composeClasses(lt,getFormControlUtilityClasses,tt)},FormControlRoot=styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:et},tt)=>_extends$j({},tt.root,tt[`margin${capitalize$3(et.margin)}`],et.fullWidth&&tt.fullWidth)})(({ownerState:et})=>_extends$j({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},et.margin==="normal"&&{marginTop:16,marginBottom:8},et.margin==="dense"&&{marginTop:8,marginBottom:4},et.fullWidth&&{width:"100%"})),FormControl=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiFormControl"}),{children:lt,className:ut,color:dt="primary",component:pt="div",disabled:ht=!1,error:mt=!1,focused:xt,fullWidth:Mt=!1,hiddenLabel:vt=!1,margin:Ot="none",required:At=!1,size:Rt="medium",variant:zt="outlined"}=nt,Tt=_objectWithoutPropertiesLoose$d(nt,_excluded$1t),Ct=_extends$j({},nt,{color:dt,component:pt,disabled:ht,error:mt,fullWidth:Mt,hiddenLabel:vt,margin:Ot,required:At,size:Rt,variant:zt}),It=useUtilityClasses$11(Ct),[Dt,kt]=reactExports.useState(()=>{let Ft=!1;return lt&&reactExports.Children.forEach(lt,$t=>{if(!isMuiElement($t,["Input","Select"]))return;const jt=isMuiElement($t,["Select"])?$t.props.input:$t;jt&&isAdornedStart(jt.props)&&(Ft=!0)}),Ft}),[qt,Nt]=reactExports.useState(()=>{let Ft=!1;return lt&&reactExports.Children.forEach(lt,$t=>{isMuiElement($t,["Input","Select"])&&(isFilled$1($t.props,!0)||isFilled$1($t.props.inputProps,!0))&&(Ft=!0)}),Ft}),[Yt,Kt]=reactExports.useState(!1);ht&&Yt&&Kt(!1);const Jt=xt!==void 0&&!ht?xt:Yt;let Qt;const Bt=reactExports.useMemo(()=>({adornedStart:Dt,setAdornedStart:kt,color:dt,disabled:ht,error:mt,filled:qt,focused:Jt,fullWidth:Mt,hiddenLabel:vt,size:Rt,onBlur:()=>{Kt(!1)},onEmpty:()=>{Nt(!1)},onFilled:()=>{Nt(!0)},onFocus:()=>{Kt(!0)},registerEffect:Qt,required:At,variant:zt}),[Dt,dt,ht,mt,qt,Jt,Mt,vt,Qt,At,Rt,zt]);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:Bt,children:jsxRuntimeExports.jsx(FormControlRoot,_extends$j({as:pt,ownerState:Ct,className:clsx(It.root,ut),ref:rt},Tt,{children:lt}))})}),Stack$5=createStack({createStyledComponent:styled("div",{name:"MuiStack",slot:"Root",overridesResolver:(et,tt)=>tt.root}),useThemeProps:et=>useDefaultProps({props:et,name:"MuiStack"})});function getFormControlLabelUtilityClasses(et){return generateUtilityClass("MuiFormControlLabel",et)}const formControlLabelClasses=generateUtilityClasses("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_excluded$1s=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],useUtilityClasses$10=et=>{const{classes:tt,disabled:rt,labelPlacement:nt,error:lt,required:ut}=et,dt={root:["root",rt&&"disabled",`labelPlacement${capitalize$3(nt)}`,lt&&"error",ut&&"required"],label:["label",rt&&"disabled"],asterisk:["asterisk",lt&&"error"]};return composeClasses(dt,getFormControlLabelUtilityClasses,tt)},FormControlLabelRoot=styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[{[`& .${formControlLabelClasses.label}`]:tt.label},tt.root,tt[`labelPlacement${capitalize$3(rt.labelPlacement)}`]]}})(({theme:et,ownerState:tt})=>_extends$j({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${formControlLabelClasses.disabled}`]:{cursor:"default"}},tt.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},tt.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},tt.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${formControlLabelClasses.label}`]:{[`&.${formControlLabelClasses.disabled}`]:{color:(et.vars||et).palette.text.disabled}}})),AsteriskComponent$1=styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(et,tt)=>tt.asterisk})(({theme:et})=>({[`&.${formControlLabelClasses.error}`]:{color:(et.vars||et).palette.error.main}})),FormControlLabel=reactExports.forwardRef(function(tt,rt){var nt,lt;const ut=useDefaultProps({props:tt,name:"MuiFormControlLabel"}),{className:dt,componentsProps:pt={},control:ht,disabled:mt,disableTypography:xt,label:Mt,labelPlacement:vt="end",required:Ot,slotProps:At={}}=ut,Rt=_objectWithoutPropertiesLoose$d(ut,_excluded$1s),zt=useFormControl(),Tt=(nt=mt??ht.props.disabled)!=null?nt:zt==null?void 0:zt.disabled,Ct=Ot??ht.props.required,It={disabled:Tt,required:Ct};["checked","name","onChange","value","inputRef"].forEach(Kt=>{typeof ht.props[Kt]>"u"&&typeof ut[Kt]<"u"&&(It[Kt]=ut[Kt])});const Dt=formControlState({props:ut,muiFormControl:zt,states:["error"]}),kt=_extends$j({},ut,{disabled:Tt,labelPlacement:vt,required:Ct,error:Dt.error}),qt=useUtilityClasses$10(kt),Nt=(lt=At.typography)!=null?lt:pt.typography;let Yt=Mt;return Yt!=null&&Yt.type!==Typography&&!xt&&(Yt=jsxRuntimeExports.jsx(Typography,_extends$j({component:"span"},Nt,{className:clsx(qt.label,Nt==null?void 0:Nt.className),children:Yt}))),jsxRuntimeExports.jsxs(FormControlLabelRoot,_extends$j({className:clsx(qt.root,dt),ownerState:kt,ref:rt},Rt,{children:[reactExports.cloneElement(ht,It),Ct?jsxRuntimeExports.jsxs(Stack$5,{display:"block",children:[Yt,jsxRuntimeExports.jsxs(AsteriskComponent$1,{ownerState:kt,"aria-hidden":!0,className:qt.asterisk,children:[" ","*"]})]}):Yt]}))});function getFormGroupUtilityClass(et){return generateUtilityClass("MuiFormGroup",et)}generateUtilityClasses("MuiFormGroup",["root","row","error"]);const _excluded$1r=["className","row"],useUtilityClasses$$=et=>{const{classes:tt,row:rt,error:nt}=et;return composeClasses({root:["root",rt&&"row",nt&&"error"]},getFormGroupUtilityClass,tt)},FormGroupRoot=styled("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.row&&tt.row]}})(({ownerState:et})=>_extends$j({display:"flex",flexDirection:"column",flexWrap:"wrap"},et.row&&{flexDirection:"row"})),FormGroup=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiFormGroup"}),{className:lt,row:ut=!1}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$1r),pt=useFormControl(),ht=formControlState({props:nt,muiFormControl:pt,states:["error"]}),mt=_extends$j({},nt,{row:ut,error:ht.error}),xt=useUtilityClasses$$(mt);return jsxRuntimeExports.jsx(FormGroupRoot,_extends$j({className:clsx(xt.root,lt),ownerState:mt,ref:rt},dt))});function getFormHelperTextUtilityClasses(et){return generateUtilityClass("MuiFormHelperText",et)}const formHelperTextClasses=generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _span$3;const _excluded$1q=["children","className","component","disabled","error","filled","focused","margin","required","variant"],useUtilityClasses$_=et=>{const{classes:tt,contained:rt,size:nt,disabled:lt,error:ut,filled:dt,focused:pt,required:ht}=et,mt={root:["root",lt&&"disabled",ut&&"error",nt&&`size${capitalize$3(nt)}`,rt&&"contained",pt&&"focused",dt&&"filled",ht&&"required"]};return composeClasses(mt,getFormHelperTextUtilityClasses,tt)},FormHelperTextRoot=styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.size&&tt[`size${capitalize$3(rt.size)}`],rt.contained&&tt.contained,rt.filled&&tt.filled]}})(({theme:et,ownerState:tt})=>_extends$j({color:(et.vars||et).palette.text.secondary},et.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses.disabled}`]:{color:(et.vars||et).palette.text.disabled},[`&.${formHelperTextClasses.error}`]:{color:(et.vars||et).palette.error.main}},tt.size==="small"&&{marginTop:4},tt.contained&&{marginLeft:14,marginRight:14})),FormHelperText=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiFormHelperText"}),{children:lt,className:ut,component:dt="p"}=nt,pt=_objectWithoutPropertiesLoose$d(nt,_excluded$1q),ht=useFormControl(),mt=formControlState({props:nt,muiFormControl:ht,states:["variant","size","disabled","error","filled","focused","required"]}),xt=_extends$j({},nt,{component:dt,contained:mt.variant==="filled"||mt.variant==="outlined",variant:mt.variant,size:mt.size,disabled:mt.disabled,error:mt.error,filled:mt.filled,focused:mt.focused,required:mt.required}),Mt=useUtilityClasses$_(xt);return jsxRuntimeExports.jsx(FormHelperTextRoot,_extends$j({as:dt,ownerState:xt,className:clsx(Mt.root,ut),ref:rt},pt,{children:lt===" "?_span$3||(_span$3=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):lt}))});function getFormLabelUtilityClasses(et){return generateUtilityClass("MuiFormLabel",et)}const formLabelClasses=generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_excluded$1p=["children","className","color","component","disabled","error","filled","focused","required"],useUtilityClasses$Z=et=>{const{classes:tt,color:rt,focused:nt,disabled:lt,error:ut,filled:dt,required:pt}=et,ht={root:["root",`color${capitalize$3(rt)}`,lt&&"disabled",ut&&"error",dt&&"filled",nt&&"focused",pt&&"required"],asterisk:["asterisk",ut&&"error"]};return composeClasses(ht,getFormLabelUtilityClasses,tt)},FormLabelRoot=styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:et},tt)=>_extends$j({},tt.root,et.color==="secondary"&&tt.colorSecondary,et.filled&&tt.filled)})(({theme:et,ownerState:tt})=>_extends$j({color:(et.vars||et).palette.text.secondary},et.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${formLabelClasses.focused}`]:{color:(et.vars||et).palette[tt.color].main},[`&.${formLabelClasses.disabled}`]:{color:(et.vars||et).palette.text.disabled},[`&.${formLabelClasses.error}`]:{color:(et.vars||et).palette.error.main}})),AsteriskComponent=styled("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(et,tt)=>tt.asterisk})(({theme:et})=>({[`&.${formLabelClasses.error}`]:{color:(et.vars||et).palette.error.main}})),FormLabel=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiFormLabel"}),{children:lt,className:ut,component:dt="label"}=nt,pt=_objectWithoutPropertiesLoose$d(nt,_excluded$1p),ht=useFormControl(),mt=formControlState({props:nt,muiFormControl:ht,states:["color","required","focused","disabled","error","filled"]}),xt=_extends$j({},nt,{color:mt.color||"primary",component:dt,disabled:mt.disabled,error:mt.error,filled:mt.filled,focused:mt.focused,required:mt.required}),Mt=useUtilityClasses$Z(xt);return jsxRuntimeExports.jsxs(FormLabelRoot,_extends$j({as:dt,ownerState:xt,className:clsx(Mt.root,ut),ref:rt},pt,{children:[lt,mt.required&&jsxRuntimeExports.jsxs(AsteriskComponent,{ownerState:xt,"aria-hidden":!0,className:Mt.asterisk,children:[" ","*"]})]}))}),GridContext=reactExports.createContext();function getGridUtilityClass(et){return generateUtilityClass("MuiGrid",et)}const SPACINGS=[0,1,2,3,4,5,6,7,8,9,10],DIRECTIONS=["column-reverse","column","row-reverse","row"],WRAPS=["nowrap","wrap-reverse","wrap"],GRID_SIZES=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],gridClasses=generateUtilityClasses("MuiGrid",["root","container","item","zeroMinWidth",...SPACINGS.map(et=>`spacing-xs-${et}`),...DIRECTIONS.map(et=>`direction-xs-${et}`),...WRAPS.map(et=>`wrap-xs-${et}`),...GRID_SIZES.map(et=>`grid-xs-${et}`),...GRID_SIZES.map(et=>`grid-sm-${et}`),...GRID_SIZES.map(et=>`grid-md-${et}`),...GRID_SIZES.map(et=>`grid-lg-${et}`),...GRID_SIZES.map(et=>`grid-xl-${et}`)]),_excluded$1o=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function getOffset(et){const tt=parseFloat(et);return`${tt}${String(et).replace(String(tt),"")||"px"}`}function generateGrid({theme:et,ownerState:tt}){let rt;return et.breakpoints.keys.reduce((nt,lt)=>{let ut={};if(tt[lt]&&(rt=tt[lt]),!rt)return nt;if(rt===!0)ut={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(rt==="auto")ut={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const dt=resolveBreakpointValues({values:tt.columns,breakpoints:et.breakpoints.values}),pt=typeof dt=="object"?dt[lt]:dt;if(pt==null)return nt;const ht=`${Math.round(rt/pt*1e8)/1e6}%`;let mt={};if(tt.container&&tt.item&&tt.columnSpacing!==0){const xt=et.spacing(tt.columnSpacing);if(xt!=="0px"){const Mt=`calc(${ht} + ${getOffset(xt)})`;mt={flexBasis:Mt,maxWidth:Mt}}}ut=_extends$j({flexBasis:ht,flexGrow:0,maxWidth:ht},mt)}return et.breakpoints.values[lt]===0?Object.assign(nt,ut):nt[et.breakpoints.up(lt)]=ut,nt},{})}function generateDirection({theme:et,ownerState:tt}){const rt=resolveBreakpointValues({values:tt.direction,breakpoints:et.breakpoints.values});return handleBreakpoints({theme:et},rt,nt=>{const lt={flexDirection:nt};return nt.indexOf("column")===0&&(lt[`& > .${gridClasses.item}`]={maxWidth:"none"}),lt})}function extractZeroValueBreakpointKeys({breakpoints:et,values:tt}){let rt="";Object.keys(tt).forEach(lt=>{rt===""&&tt[lt]!==0&&(rt=lt)});const nt=Object.keys(et).sort((lt,ut)=>et[lt]-et[ut]);return nt.slice(0,nt.indexOf(rt))}function generateRowGap({theme:et,ownerState:tt}){const{container:rt,rowSpacing:nt}=tt;let lt={};if(rt&&nt!==0){const ut=resolveBreakpointValues({values:nt,breakpoints:et.breakpoints.values});let dt;typeof ut=="object"&&(dt=extractZeroValueBreakpointKeys({breakpoints:et.breakpoints.values,values:ut})),lt=handleBreakpoints({theme:et},ut,(pt,ht)=>{var mt;const xt=et.spacing(pt);return xt!=="0px"?{marginTop:`-${getOffset(xt)}`,[`& > .${gridClasses.item}`]:{paddingTop:getOffset(xt)}}:(mt=dt)!=null&&mt.includes(ht)?{}:{marginTop:0,[`& > .${gridClasses.item}`]:{paddingTop:0}}})}return lt}function generateColumnGap({theme:et,ownerState:tt}){const{container:rt,columnSpacing:nt}=tt;let lt={};if(rt&&nt!==0){const ut=resolveBreakpointValues({values:nt,breakpoints:et.breakpoints.values});let dt;typeof ut=="object"&&(dt=extractZeroValueBreakpointKeys({breakpoints:et.breakpoints.values,values:ut})),lt=handleBreakpoints({theme:et},ut,(pt,ht)=>{var mt;const xt=et.spacing(pt);return xt!=="0px"?{width:`calc(100% + ${getOffset(xt)})`,marginLeft:`-${getOffset(xt)}`,[`& > .${gridClasses.item}`]:{paddingLeft:getOffset(xt)}}:(mt=dt)!=null&&mt.includes(ht)?{}:{width:"100%",marginLeft:0,[`& > .${gridClasses.item}`]:{paddingLeft:0}}})}return lt}function resolveSpacingStyles(et,tt,rt={}){if(!et||et<=0)return[];if(typeof et=="string"&&!Number.isNaN(Number(et))||typeof et=="number")return[rt[`spacing-xs-${String(et)}`]];const nt=[];return tt.forEach(lt=>{const ut=et[lt];Number(ut)>0&&nt.push(rt[`spacing-${lt}-${String(ut)}`])}),nt}const GridRoot=styled("div",{name:"MuiGrid",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et,{container:nt,direction:lt,item:ut,spacing:dt,wrap:pt,zeroMinWidth:ht,breakpoints:mt}=rt;let xt=[];nt&&(xt=resolveSpacingStyles(dt,mt,tt));const Mt=[];return mt.forEach(vt=>{const Ot=rt[vt];Ot&&Mt.push(tt[`grid-${vt}-${String(Ot)}`])}),[tt.root,nt&&tt.container,ut&&tt.item,ht&&tt.zeroMinWidth,...xt,lt!=="row"&&tt[`direction-xs-${String(lt)}`],pt!=="wrap"&&tt[`wrap-xs-${String(pt)}`],...Mt]}})(({ownerState:et})=>_extends$j({boxSizing:"border-box"},et.container&&{display:"flex",flexWrap:"wrap",width:"100%"},et.item&&{margin:0},et.zeroMinWidth&&{minWidth:0},et.wrap!=="wrap"&&{flexWrap:et.wrap}),generateDirection,generateRowGap,generateColumnGap,generateGrid);function resolveSpacingClasses(et,tt){if(!et||et<=0)return[];if(typeof et=="string"&&!Number.isNaN(Number(et))||typeof et=="number")return[`spacing-xs-${String(et)}`];const rt=[];return tt.forEach(nt=>{const lt=et[nt];if(Number(lt)>0){const ut=`spacing-${nt}-${String(lt)}`;rt.push(ut)}}),rt}const useUtilityClasses$Y=et=>{const{classes:tt,container:rt,direction:nt,item:lt,spacing:ut,wrap:dt,zeroMinWidth:pt,breakpoints:ht}=et;let mt=[];rt&&(mt=resolveSpacingClasses(ut,ht));const xt=[];ht.forEach(vt=>{const Ot=et[vt];Ot&&xt.push(`grid-${vt}-${String(Ot)}`)});const Mt={root:["root",rt&&"container",lt&&"item",pt&&"zeroMinWidth",...mt,nt!=="row"&&`direction-xs-${String(nt)}`,dt!=="wrap"&&`wrap-xs-${String(dt)}`,...xt]};return composeClasses(Mt,getGridUtilityClass,tt)},Grid=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiGrid"}),{breakpoints:lt}=useTheme$1(),ut=extendSxProp(nt),{className:dt,columns:pt,columnSpacing:ht,component:mt="div",container:xt=!1,direction:Mt="row",item:vt=!1,rowSpacing:Ot,spacing:At=0,wrap:Rt="wrap",zeroMinWidth:zt=!1}=ut,Tt=_objectWithoutPropertiesLoose$d(ut,_excluded$1o),Ct=Ot||At,It=ht||At,Dt=reactExports.useContext(GridContext),kt=xt?pt||12:Dt,qt={},Nt=_extends$j({},Tt);lt.keys.forEach(Jt=>{Tt[Jt]!=null&&(qt[Jt]=Tt[Jt],delete Nt[Jt])});const Yt=_extends$j({},ut,{columns:kt,container:xt,direction:Mt,item:vt,rowSpacing:Ct,columnSpacing:It,wrap:Rt,zeroMinWidth:zt,spacing:At},qt,{breakpoints:lt.keys}),Kt=useUtilityClasses$Y(Yt);return jsxRuntimeExports.jsx(GridContext.Provider,{value:kt,children:jsxRuntimeExports.jsx(GridRoot,_extends$j({ownerState:Yt,className:clsx(Kt.root,dt),as:mt,ref:rt},Nt))})}),_excluded$1n=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getScale(et){return`scale(${et}, ${et**2})`}const styles$1={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Grow=reactExports.forwardRef(function(tt,rt){const{addEndListener:nt,appear:lt=!0,children:ut,easing:dt,in:pt,onEnter:ht,onEntered:mt,onEntering:xt,onExit:Mt,onExited:vt,onExiting:Ot,style:At,timeout:Rt="auto",TransitionComponent:zt=Transition}=tt,Tt=_objectWithoutPropertiesLoose$d(tt,_excluded$1n),Ct=useTimeout(),It=reactExports.useRef(),Dt=useTheme$1(),kt=reactExports.useRef(null),qt=useForkRef(kt,ut.ref,rt),Nt=jt=>Wt=>{if(jt){const Ut=kt.current;Wt===void 0?jt(Ut):jt(Ut,Wt)}},Yt=Nt(xt),Kt=Nt((jt,Wt)=>{reflow(jt);const{duration:Ut,delay:Vt,easing:Ht}=getTransitionProps({style:At,timeout:Rt,easing:dt},{mode:"enter"});let Gt;Rt==="auto"?(Gt=Dt.transitions.getAutoHeightDuration(jt.clientHeight),It.current=Gt):Gt=Ut,jt.style.transition=[Dt.transitions.create("opacity",{duration:Gt,delay:Vt}),Dt.transitions.create("transform",{duration:isWebKit154?Gt:Gt*.666,delay:Vt,easing:Ht})].join(","),ht&&ht(jt,Wt)}),Jt=Nt(mt),Qt=Nt(Ot),Bt=Nt(jt=>{const{duration:Wt,delay:Ut,easing:Vt}=getTransitionProps({style:At,timeout:Rt,easing:dt},{mode:"exit"});let Ht;Rt==="auto"?(Ht=Dt.transitions.getAutoHeightDuration(jt.clientHeight),It.current=Ht):Ht=Wt,jt.style.transition=[Dt.transitions.create("opacity",{duration:Ht,delay:Ut}),Dt.transitions.create("transform",{duration:isWebKit154?Ht:Ht*.666,delay:isWebKit154?Ut:Ut||Ht*.333,easing:Vt})].join(","),jt.style.opacity=0,jt.style.transform=getScale(.75),Mt&&Mt(jt)}),Ft=Nt(vt),$t=jt=>{Rt==="auto"&&Ct.start(It.current||0,jt),nt&&nt(kt.current,jt)};return jsxRuntimeExports.jsx(zt,_extends$j({appear:lt,in:pt,nodeRef:kt,onEnter:Kt,onEntered:Jt,onEntering:Yt,onExit:Bt,onExited:Ft,onExiting:Qt,addEndListener:$t,timeout:Rt==="auto"?null:Rt},Tt,{children:(jt,Wt)=>reactExports.cloneElement(ut,_extends$j({style:_extends$j({opacity:0,transform:getScale(.75),visibility:jt==="exited"&&!pt?"hidden":void 0},styles$1[jt],At,ut.props.style),ref:qt},Wt))}))});Grow.muiSupportAuto=!0;const _excluded$1m=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$X=et=>{const{classes:tt,disableUnderline:rt}=et,lt=composeClasses({root:["root",!rt&&"underline"],input:["input"]},getInputUtilityClass,tt);return _extends$j({},tt,lt)},InputRoot=styled(InputBaseRoot,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiInput",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[...rootOverridesResolver(et,tt),!rt.disableUnderline&&tt.underline]}})(({theme:et,ownerState:tt})=>{let nt=et.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return et.vars&&(nt=`rgba(${et.vars.palette.common.onBackgroundChannel} / ${et.vars.opacity.inputUnderline})`),_extends$j({position:"relative"},tt.formControl&&{"label + &":{marginTop:16}},!tt.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(et.vars||et).palette[tt.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:et.transitions.create("transform",{duration:et.transitions.duration.shorter,easing:et.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(et.vars||et).palette.error.main}},"&::before":{borderBottom:`1px solid ${nt}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:et.transitions.create("border-bottom-color",{duration:et.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]:{borderBottom:`2px solid ${(et.vars||et).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${nt}`}},[`&.${inputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}})}),InputInput=styled(InputBaseComponent,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input$4=reactExports.forwardRef(function(tt,rt){var nt,lt,ut,dt;const pt=useDefaultProps({props:tt,name:"MuiInput"}),{disableUnderline:ht,components:mt={},componentsProps:xt,fullWidth:Mt=!1,inputComponent:vt="input",multiline:Ot=!1,slotProps:At,slots:Rt={},type:zt="text"}=pt,Tt=_objectWithoutPropertiesLoose$d(pt,_excluded$1m),Ct=useUtilityClasses$X(pt),Dt={root:{ownerState:{disableUnderline:ht}}},kt=At??xt?deepmerge$2(At??xt,Dt):Dt,qt=(nt=(lt=Rt.root)!=null?lt:mt.Root)!=null?nt:InputRoot,Nt=(ut=(dt=Rt.input)!=null?dt:mt.Input)!=null?ut:InputInput;return jsxRuntimeExports.jsx(InputBase,_extends$j({slots:{root:qt,input:Nt},slotProps:kt,fullWidth:Mt,inputComponent:vt,multiline:Ot,ref:rt,type:zt},Tt,{classes:Ct}))});Input$4.muiName="Input";function getInputAdornmentUtilityClass(et){return generateUtilityClass("MuiInputAdornment",et)}const inputAdornmentClasses=generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _span$2;const _excluded$1l=["children","className","component","disablePointerEvents","disableTypography","position","variant"],overridesResolver$5=(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[`position${capitalize$3(rt.position)}`],rt.disablePointerEvents===!0&&tt.disablePointerEvents,tt[rt.variant]]},useUtilityClasses$W=et=>{const{classes:tt,disablePointerEvents:rt,hiddenLabel:nt,position:lt,size:ut,variant:dt}=et,pt={root:["root",rt&&"disablePointerEvents",lt&&`position${capitalize$3(lt)}`,dt,nt&&"hiddenLabel",ut&&`size${capitalize$3(ut)}`]};return composeClasses(pt,getInputAdornmentUtilityClass,tt)},InputAdornmentRoot=styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:overridesResolver$5})(({theme:et,ownerState:tt})=>_extends$j({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(et.vars||et).palette.action.active},tt.variant==="filled"&&{[`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]:{marginTop:16}},tt.position==="start"&&{marginRight:8},tt.position==="end"&&{marginLeft:8},tt.disablePointerEvents===!0&&{pointerEvents:"none"})),InputAdornment=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiInputAdornment"}),{children:lt,className:ut,component:dt="div",disablePointerEvents:pt=!1,disableTypography:ht=!1,position:mt,variant:xt}=nt,Mt=_objectWithoutPropertiesLoose$d(nt,_excluded$1l),vt=useFormControl()||{};let Ot=xt;xt&&vt.variant,vt&&!Ot&&(Ot=vt.variant);const At=_extends$j({},nt,{hiddenLabel:vt.hiddenLabel,size:vt.size,disablePointerEvents:pt,position:mt,variant:Ot}),Rt=useUtilityClasses$W(At);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(InputAdornmentRoot,_extends$j({as:dt,ownerState:At,className:clsx(Rt.root,ut),ref:rt},Mt,{children:typeof lt=="string"&&!ht?jsxRuntimeExports.jsx(Typography,{color:"text.secondary",children:lt}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[mt==="start"?_span$2||(_span$2=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):null,lt]})}))})});function getInputLabelUtilityClasses(et){return generateUtilityClass("MuiInputLabel",et)}generateUtilityClasses("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _excluded$1k=["disableAnimation","margin","shrink","variant","className"],useUtilityClasses$V=et=>{const{classes:tt,formControl:rt,size:nt,shrink:lt,disableAnimation:ut,variant:dt,required:pt}=et,ht={root:["root",rt&&"formControl",!ut&&"animated",lt&&"shrink",nt&&nt!=="normal"&&`size${capitalize$3(nt)}`,dt],asterisk:[pt&&"asterisk"]},mt=composeClasses(ht,getInputLabelUtilityClasses,tt);return _extends$j({},tt,mt)},InputLabelRoot=styled(FormLabel,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[{[`& .${formLabelClasses.asterisk}`]:tt.asterisk},tt.root,rt.formControl&&tt.formControl,rt.size==="small"&&tt.sizeSmall,rt.shrink&&tt.shrink,!rt.disableAnimation&&tt.animated,rt.focused&&tt.focused,tt[rt.variant]]}})(({theme:et,ownerState:tt})=>_extends$j({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},tt.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},tt.size==="small"&&{transform:"translate(0, 17px) scale(1)"},tt.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!tt.disableAnimation&&{transition:et.transitions.create(["color","transform","max-width"],{duration:et.transitions.duration.shorter,easing:et.transitions.easing.easeOut})},tt.variant==="filled"&&_extends$j({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},tt.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},tt.shrink&&_extends$j({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},tt.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),tt.variant==="outlined"&&_extends$j({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},tt.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},tt.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),InputLabel=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({name:"MuiInputLabel",props:tt}),{disableAnimation:lt=!1,shrink:ut,className:dt}=nt,pt=_objectWithoutPropertiesLoose$d(nt,_excluded$1k),ht=useFormControl();let mt=ut;typeof mt>"u"&&ht&&(mt=ht.filled||ht.focused||ht.adornedStart);const xt=formControlState({props:nt,muiFormControl:ht,states:["size","variant","required","focused"]}),Mt=_extends$j({},nt,{disableAnimation:lt,formControl:ht,shrink:mt,size:xt.size,variant:xt.variant,required:xt.required,focused:xt.focused}),vt=useUtilityClasses$V(Mt);return jsxRuntimeExports.jsx(InputLabelRoot,_extends$j({"data-shrink":mt,ownerState:Mt,ref:rt,className:clsx(vt.root,dt)},pt,{classes:vt}))});function getLinearProgressUtilityClass(et){return generateUtilityClass("MuiLinearProgress",et)}generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _excluded$1j=["className","color","value","valueBuffer","variant"];let _$6=et=>et,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes$1(_t||(_t=_$6`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`)),indeterminate2Keyframe=keyframes$1(_t2||(_t2=_$6`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`)),bufferKeyframe=keyframes$1(_t3||(_t3=_$6`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`)),useUtilityClasses$U=et=>{const{classes:tt,variant:rt,color:nt}=et,lt={root:["root",`color${capitalize$3(nt)}`,rt],dashed:["dashed",`dashedColor${capitalize$3(nt)}`],bar1:["bar",`barColor${capitalize$3(nt)}`,(rt==="indeterminate"||rt==="query")&&"bar1Indeterminate",rt==="determinate"&&"bar1Determinate",rt==="buffer"&&"bar1Buffer"],bar2:["bar",rt!=="buffer"&&`barColor${capitalize$3(nt)}`,rt==="buffer"&&`color${capitalize$3(nt)}`,(rt==="indeterminate"||rt==="query")&&"bar2Indeterminate",rt==="buffer"&&"bar2Buffer"]};return composeClasses(lt,getLinearProgressUtilityClass,tt)},getColorShade=(et,tt)=>tt==="inherit"?"currentColor":et.vars?et.vars.palette.LinearProgress[`${tt}Bg`]:et.palette.mode==="light"?lighten_1(et.palette[tt].main,.62):darken_1(et.palette[tt].main,.5),LinearProgressRoot=styled("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[`color${capitalize$3(rt.color)}`],tt[rt.variant]]}})(({ownerState:et,theme:tt})=>_extends$j({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:getColorShade(tt,et.color)},et.color==="inherit"&&et.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},et.variant==="buffer"&&{backgroundColor:"transparent"},et.variant==="query"&&{transform:"rotate(180deg)"})),LinearProgressDashed=styled("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.dashed,tt[`dashedColor${capitalize$3(rt.color)}`]]}})(({ownerState:et,theme:tt})=>{const rt=getColorShade(tt,et.color);return _extends$j({position:"absolute",marginTop:0,height:"100%",width:"100%"},et.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${rt} 0%, ${rt} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},css$4(_t4||(_t4=_$6`
    animation: ${0} 3s infinite linear;
  `),bufferKeyframe)),LinearProgressBar1=styled("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.bar,tt[`barColor${capitalize$3(rt.color)}`],(rt.variant==="indeterminate"||rt.variant==="query")&&tt.bar1Indeterminate,rt.variant==="determinate"&&tt.bar1Determinate,rt.variant==="buffer"&&tt.bar1Buffer]}})(({ownerState:et,theme:tt})=>_extends$j({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:et.color==="inherit"?"currentColor":(tt.vars||tt).palette[et.color].main},et.variant==="determinate"&&{transition:`transform .${TRANSITION_DURATION}s linear`},et.variant==="buffer"&&{zIndex:1,transition:`transform .${TRANSITION_DURATION}s linear`}),({ownerState:et})=>(et.variant==="indeterminate"||et.variant==="query")&&css$4(_t5||(_t5=_$6`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    `),indeterminate1Keyframe)),LinearProgressBar2=styled("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.bar,tt[`barColor${capitalize$3(rt.color)}`],(rt.variant==="indeterminate"||rt.variant==="query")&&tt.bar2Indeterminate,rt.variant==="buffer"&&tt.bar2Buffer]}})(({ownerState:et,theme:tt})=>_extends$j({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},et.variant!=="buffer"&&{backgroundColor:et.color==="inherit"?"currentColor":(tt.vars||tt).palette[et.color].main},et.color==="inherit"&&{opacity:.3},et.variant==="buffer"&&{backgroundColor:getColorShade(tt,et.color),transition:`transform .${TRANSITION_DURATION}s linear`}),({ownerState:et})=>(et.variant==="indeterminate"||et.variant==="query")&&css$4(_t6||(_t6=_$6`
      width: auto;
      animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
    `),indeterminate2Keyframe)),LinearProgress=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiLinearProgress"}),{className:lt,color:ut="primary",value:dt,valueBuffer:pt,variant:ht="indeterminate"}=nt,mt=_objectWithoutPropertiesLoose$d(nt,_excluded$1j),xt=_extends$j({},nt,{color:ut,variant:ht}),Mt=useUtilityClasses$U(xt),vt=useRtl(),Ot={},At={bar1:{},bar2:{}};if((ht==="determinate"||ht==="buffer")&&dt!==void 0){Ot["aria-valuenow"]=Math.round(dt),Ot["aria-valuemin"]=0,Ot["aria-valuemax"]=100;let Rt=dt-100;vt&&(Rt=-Rt),At.bar1.transform=`translateX(${Rt}%)`}if(ht==="buffer"&&pt!==void 0){let Rt=(pt||0)-100;vt&&(Rt=-Rt),At.bar2.transform=`translateX(${Rt}%)`}return jsxRuntimeExports.jsxs(LinearProgressRoot,_extends$j({className:clsx(Mt.root,lt),ownerState:xt,role:"progressbar"},Ot,{ref:rt},mt,{children:[ht==="buffer"?jsxRuntimeExports.jsx(LinearProgressDashed,{className:Mt.dashed,ownerState:xt}):null,jsxRuntimeExports.jsx(LinearProgressBar1,{className:Mt.bar1,ownerState:xt,style:At.bar1}),ht==="determinate"?null:jsxRuntimeExports.jsx(LinearProgressBar2,{className:Mt.bar2,ownerState:xt,style:At.bar2})]}))}),ListContext=reactExports.createContext({});function getListUtilityClass(et){return generateUtilityClass("MuiList",et)}generateUtilityClasses("MuiList",["root","padding","dense","subheader"]);const _excluded$1i=["children","className","component","dense","disablePadding","subheader"],useUtilityClasses$T=et=>{const{classes:tt,disablePadding:rt,dense:nt,subheader:lt}=et;return composeClasses({root:["root",!rt&&"padding",nt&&"dense",lt&&"subheader"]},getListUtilityClass,tt)},ListRoot=styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,!rt.disablePadding&&tt.padding,rt.dense&&tt.dense,rt.subheader&&tt.subheader]}})(({ownerState:et})=>_extends$j({listStyle:"none",margin:0,padding:0,position:"relative"},!et.disablePadding&&{paddingTop:8,paddingBottom:8},et.subheader&&{paddingTop:0})),List$2=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiList"}),{children:lt,className:ut,component:dt="ul",dense:pt=!1,disablePadding:ht=!1,subheader:mt}=nt,xt=_objectWithoutPropertiesLoose$d(nt,_excluded$1i),Mt=reactExports.useMemo(()=>({dense:pt}),[pt]),vt=_extends$j({},nt,{component:dt,dense:pt,disablePadding:ht}),Ot=useUtilityClasses$T(vt);return jsxRuntimeExports.jsx(ListContext.Provider,{value:Mt,children:jsxRuntimeExports.jsxs(ListRoot,_extends$j({as:dt,className:clsx(Ot.root,ut),ref:rt,ownerState:vt},xt,{children:[mt,lt]}))})});function getListItemUtilityClass(et){return generateUtilityClass("MuiListItem",et)}const listItemClasses=generateUtilityClasses("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function getListItemButtonUtilityClass(et){return generateUtilityClass("MuiListItemButton",et)}const listItemButtonClasses=generateUtilityClasses("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),_excluded$1h=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],overridesResolver$4=(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.dense&&tt.dense,rt.alignItems==="flex-start"&&tt.alignItemsFlexStart,rt.divider&&tt.divider,!rt.disableGutters&&tt.gutters]},useUtilityClasses$S=et=>{const{alignItems:tt,classes:rt,dense:nt,disabled:lt,disableGutters:ut,divider:dt,selected:pt}=et,mt=composeClasses({root:["root",nt&&"dense",!ut&&"gutters",dt&&"divider",lt&&"disabled",tt==="flex-start"&&"alignItemsFlexStart",pt&&"selected"]},getListItemButtonUtilityClass,rt);return _extends$j({},rt,mt)},ListItemButtonRoot=styled(ButtonBase,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:overridesResolver$4})(({theme:et,ownerState:tt})=>_extends$j({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:et.transitions.create("background-color",{duration:et.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(et.vars||et).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${listItemButtonClasses.selected}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.selectedOpacity})`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity),[`&.${listItemButtonClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.focusOpacity)}},[`&.${listItemButtonClasses.selected}:hover`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.hoverOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.selectedOpacity})`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity)}},[`&.${listItemButtonClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette.action.focus},[`&.${listItemButtonClasses.disabled}`]:{opacity:(et.vars||et).palette.action.disabledOpacity}},tt.divider&&{borderBottom:`1px solid ${(et.vars||et).palette.divider}`,backgroundClip:"padding-box"},tt.alignItems==="flex-start"&&{alignItems:"flex-start"},!tt.disableGutters&&{paddingLeft:16,paddingRight:16},tt.dense&&{paddingTop:4,paddingBottom:4})),ListItemButton=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiListItemButton"}),{alignItems:lt="center",autoFocus:ut=!1,component:dt="div",children:pt,dense:ht=!1,disableGutters:mt=!1,divider:xt=!1,focusVisibleClassName:Mt,selected:vt=!1,className:Ot}=nt,At=_objectWithoutPropertiesLoose$d(nt,_excluded$1h),Rt=reactExports.useContext(ListContext),zt=reactExports.useMemo(()=>({dense:ht||Rt.dense||!1,alignItems:lt,disableGutters:mt}),[lt,Rt.dense,ht,mt]),Tt=reactExports.useRef(null);useEnhancedEffect(()=>{ut&&Tt.current&&Tt.current.focus()},[ut]);const Ct=_extends$j({},nt,{alignItems:lt,dense:zt.dense,disableGutters:mt,divider:xt,selected:vt}),It=useUtilityClasses$S(Ct),Dt=useForkRef(Tt,rt);return jsxRuntimeExports.jsx(ListContext.Provider,{value:zt,children:jsxRuntimeExports.jsx(ListItemButtonRoot,_extends$j({ref:Dt,href:At.href||At.to,component:(At.href||At.to)&&dt==="div"?"button":dt,focusVisibleClassName:clsx(It.focusVisible,Mt),ownerState:Ct,className:clsx(It.root,Ot)},At,{classes:It,children:pt}))})});function getListItemSecondaryActionClassesUtilityClass(et){return generateUtilityClass("MuiListItemSecondaryAction",et)}generateUtilityClasses("MuiListItemSecondaryAction",["root","disableGutters"]);const _excluded$1g=["className"],useUtilityClasses$R=et=>{const{disableGutters:tt,classes:rt}=et;return composeClasses({root:["root",tt&&"disableGutters"]},getListItemSecondaryActionClassesUtilityClass,rt)},ListItemSecondaryActionRoot=styled("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.disableGutters&&tt.disableGutters]}})(({ownerState:et})=>_extends$j({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},et.disableGutters&&{right:0})),ListItemSecondaryAction=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiListItemSecondaryAction"}),{className:lt}=nt,ut=_objectWithoutPropertiesLoose$d(nt,_excluded$1g),dt=reactExports.useContext(ListContext),pt=_extends$j({},nt,{disableGutters:dt.disableGutters}),ht=useUtilityClasses$R(pt);return jsxRuntimeExports.jsx(ListItemSecondaryActionRoot,_extends$j({className:clsx(ht.root,lt),ownerState:pt,ref:rt},ut))});ListItemSecondaryAction.muiName="ListItemSecondaryAction";const _excluded$1f=["className"],_excluded2$f=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],overridesResolver$3=(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.dense&&tt.dense,rt.alignItems==="flex-start"&&tt.alignItemsFlexStart,rt.divider&&tt.divider,!rt.disableGutters&&tt.gutters,!rt.disablePadding&&tt.padding,rt.button&&tt.button,rt.hasSecondaryAction&&tt.secondaryAction]},useUtilityClasses$Q=et=>{const{alignItems:tt,button:rt,classes:nt,dense:lt,disabled:ut,disableGutters:dt,disablePadding:pt,divider:ht,hasSecondaryAction:mt,selected:xt}=et;return composeClasses({root:["root",lt&&"dense",!dt&&"gutters",!pt&&"padding",ht&&"divider",ut&&"disabled",rt&&"button",tt==="flex-start"&&"alignItemsFlexStart",mt&&"secondaryAction",xt&&"selected"],container:["container"]},getListItemUtilityClass,nt)},ListItemRoot=styled("div",{name:"MuiListItem",slot:"Root",overridesResolver:overridesResolver$3})(({theme:et,ownerState:tt})=>_extends$j({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!tt.disablePadding&&_extends$j({paddingTop:8,paddingBottom:8},tt.dense&&{paddingTop:4,paddingBottom:4},!tt.disableGutters&&{paddingLeft:16,paddingRight:16},!!tt.secondaryAction&&{paddingRight:48}),!!tt.secondaryAction&&{[`& > .${listItemButtonClasses.root}`]:{paddingRight:48}},{[`&.${listItemClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette.action.focus},[`&.${listItemClasses.selected}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.selectedOpacity})`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity),[`&.${listItemClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.focusOpacity)}},[`&.${listItemClasses.disabled}`]:{opacity:(et.vars||et).palette.action.disabledOpacity}},tt.alignItems==="flex-start"&&{alignItems:"flex-start"},tt.divider&&{borderBottom:`1px solid ${(et.vars||et).palette.divider}`,backgroundClip:"padding-box"},tt.button&&{transition:et.transitions.create("background-color",{duration:et.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(et.vars||et).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${listItemClasses.selected}:hover`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.hoverOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.selectedOpacity})`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity)}}},tt.hasSecondaryAction&&{paddingRight:48})),ListItemContainer=styled("li",{name:"MuiListItem",slot:"Container",overridesResolver:(et,tt)=>tt.container})({position:"relative"}),ListItem=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiListItem"}),{alignItems:lt="center",autoFocus:ut=!1,button:dt=!1,children:pt,className:ht,component:mt,components:xt={},componentsProps:Mt={},ContainerComponent:vt="li",ContainerProps:{className:Ot}={},dense:At=!1,disabled:Rt=!1,disableGutters:zt=!1,disablePadding:Tt=!1,divider:Ct=!1,focusVisibleClassName:It,secondaryAction:Dt,selected:kt=!1,slotProps:qt={},slots:Nt={}}=nt,Yt=_objectWithoutPropertiesLoose$d(nt.ContainerProps,_excluded$1f),Kt=_objectWithoutPropertiesLoose$d(nt,_excluded2$f),Jt=reactExports.useContext(ListContext),Qt=reactExports.useMemo(()=>({dense:At||Jt.dense||!1,alignItems:lt,disableGutters:zt}),[lt,Jt.dense,At,zt]),Bt=reactExports.useRef(null);useEnhancedEffect(()=>{ut&&Bt.current&&Bt.current.focus()},[ut]);const Ft=reactExports.Children.toArray(pt),$t=Ft.length&&isMuiElement(Ft[Ft.length-1],["ListItemSecondaryAction"]),jt=_extends$j({},nt,{alignItems:lt,autoFocus:ut,button:dt,dense:Qt.dense,disabled:Rt,disableGutters:zt,disablePadding:Tt,divider:Ct,hasSecondaryAction:$t,selected:kt}),Wt=useUtilityClasses$Q(jt),Ut=useForkRef(Bt,rt),Vt=Nt.root||xt.Root||ListItemRoot,Ht=qt.root||Mt.root||{},Gt=_extends$j({className:clsx(Wt.root,Ht.className,ht),disabled:Rt},Kt);let Zt=mt||"li";return dt&&(Gt.component=mt||"div",Gt.focusVisibleClassName=clsx(listItemClasses.focusVisible,It),Zt=ButtonBase),$t?(Zt=!Gt.component&&!mt?"div":Zt,vt==="li"&&(Zt==="li"?Zt="div":Gt.component==="li"&&(Gt.component="div")),jsxRuntimeExports.jsx(ListContext.Provider,{value:Qt,children:jsxRuntimeExports.jsxs(ListItemContainer,_extends$j({as:vt,className:clsx(Wt.container,Ot),ref:Ut,ownerState:jt},Yt,{children:[jsxRuntimeExports.jsx(Vt,_extends$j({},Ht,!isHostComponent(Vt)&&{as:Zt,ownerState:_extends$j({},jt,Ht.ownerState)},Gt,{children:Ft})),Ft.pop()]}))})):jsxRuntimeExports.jsx(ListContext.Provider,{value:Qt,children:jsxRuntimeExports.jsxs(Vt,_extends$j({},Ht,{as:Zt,ref:Ut},!isHostComponent(Vt)&&{ownerState:_extends$j({},jt,Ht.ownerState)},Gt,{children:[Ft,Dt&&jsxRuntimeExports.jsx(ListItemSecondaryAction,{children:Dt})]}))})});function getListItemIconUtilityClass(et){return generateUtilityClass("MuiListItemIcon",et)}const listItemIconClasses=generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]),_excluded$1e=["className"],useUtilityClasses$P=et=>{const{alignItems:tt,classes:rt}=et;return composeClasses({root:["root",tt==="flex-start"&&"alignItemsFlexStart"]},getListItemIconUtilityClass,rt)},ListItemIconRoot=styled("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.alignItems==="flex-start"&&tt.alignItemsFlexStart]}})(({theme:et,ownerState:tt})=>_extends$j({minWidth:56,color:(et.vars||et).palette.action.active,flexShrink:0,display:"inline-flex"},tt.alignItems==="flex-start"&&{marginTop:8})),ListItemIcon=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiListItemIcon"}),{className:lt}=nt,ut=_objectWithoutPropertiesLoose$d(nt,_excluded$1e),dt=reactExports.useContext(ListContext),pt=_extends$j({},nt,{alignItems:dt.alignItems}),ht=useUtilityClasses$P(pt);return jsxRuntimeExports.jsx(ListItemIconRoot,_extends$j({className:clsx(ht.root,lt),ownerState:pt,ref:rt},ut))});function getListItemTextUtilityClass(et){return generateUtilityClass("MuiListItemText",et)}const listItemTextClasses=generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_excluded$1d=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],useUtilityClasses$O=et=>{const{classes:tt,inset:rt,primary:nt,secondary:lt,dense:ut}=et;return composeClasses({root:["root",rt&&"inset",ut&&"dense",nt&&lt&&"multiline"],primary:["primary"],secondary:["secondary"]},getListItemTextUtilityClass,tt)},ListItemTextRoot=styled("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[{[`& .${listItemTextClasses.primary}`]:tt.primary},{[`& .${listItemTextClasses.secondary}`]:tt.secondary},tt.root,rt.inset&&tt.inset,rt.primary&&rt.secondary&&tt.multiline,rt.dense&&tt.dense]}})(({ownerState:et})=>_extends$j({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},et.primary&&et.secondary&&{marginTop:6,marginBottom:6},et.inset&&{paddingLeft:56})),ListItemText=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiListItemText"}),{children:lt,className:ut,disableTypography:dt=!1,inset:pt=!1,primary:ht,primaryTypographyProps:mt,secondary:xt,secondaryTypographyProps:Mt}=nt,vt=_objectWithoutPropertiesLoose$d(nt,_excluded$1d),{dense:Ot}=reactExports.useContext(ListContext);let At=ht??lt,Rt=xt;const zt=_extends$j({},nt,{disableTypography:dt,inset:pt,primary:!!At,secondary:!!Rt,dense:Ot}),Tt=useUtilityClasses$O(zt);return At!=null&&At.type!==Typography&&!dt&&(At=jsxRuntimeExports.jsx(Typography,_extends$j({variant:Ot?"body2":"body1",className:Tt.primary,component:mt!=null&&mt.variant?void 0:"span",display:"block"},mt,{children:At}))),Rt!=null&&Rt.type!==Typography&&!dt&&(Rt=jsxRuntimeExports.jsx(Typography,_extends$j({variant:"body2",className:Tt.secondary,color:"text.secondary",display:"block"},Mt,{children:Rt}))),jsxRuntimeExports.jsxs(ListItemTextRoot,_extends$j({className:clsx(Tt.root,ut),ownerState:zt,ref:rt},vt,{children:[At,Rt]}))}),_excluded$1c=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nextItem$1(et,tt,rt){return et===tt?et.firstChild:tt&&tt.nextElementSibling?tt.nextElementSibling:rt?null:et.firstChild}function previousItem$1(et,tt,rt){return et===tt?rt?et.firstChild:et.lastChild:tt&&tt.previousElementSibling?tt.previousElementSibling:rt?null:et.lastChild}function textCriteriaMatches(et,tt){if(tt===void 0)return!0;let rt=et.innerText;return rt===void 0&&(rt=et.textContent),rt=rt.trim().toLowerCase(),rt.length===0?!1:tt.repeating?rt[0]===tt.keys[0]:rt.indexOf(tt.keys.join(""))===0}function moveFocus$1(et,tt,rt,nt,lt,ut){let dt=!1,pt=lt(et,tt,tt?rt:!1);for(;pt;){if(pt===et.firstChild){if(dt)return!1;dt=!0}const ht=nt?!1:pt.disabled||pt.getAttribute("aria-disabled")==="true";if(!pt.hasAttribute("tabindex")||!textCriteriaMatches(pt,ut)||ht)pt=lt(et,pt,rt);else return pt.focus(),!0}return!1}const MenuList$1=reactExports.forwardRef(function(tt,rt){const{actions:nt,autoFocus:lt=!1,autoFocusItem:ut=!1,children:dt,className:pt,disabledItemsFocusable:ht=!1,disableListWrap:mt=!1,onKeyDown:xt,variant:Mt="selectedMenu"}=tt,vt=_objectWithoutPropertiesLoose$d(tt,_excluded$1c),Ot=reactExports.useRef(null),At=reactExports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect(()=>{lt&&Ot.current.focus()},[lt]),reactExports.useImperativeHandle(nt,()=>({adjustStyleForScrollbar:(It,{direction:Dt})=>{const kt=!Ot.current.style.width;if(It.clientHeight<Ot.current.clientHeight&&kt){const qt=`${getScrollbarSize(ownerDocument(It))}px`;Ot.current.style[Dt==="rtl"?"paddingLeft":"paddingRight"]=qt,Ot.current.style.width=`calc(100% + ${qt})`}return Ot.current}}),[]);const Rt=It=>{const Dt=Ot.current,kt=It.key,qt=ownerDocument(Dt).activeElement;if(kt==="ArrowDown")It.preventDefault(),moveFocus$1(Dt,qt,mt,ht,nextItem$1);else if(kt==="ArrowUp")It.preventDefault(),moveFocus$1(Dt,qt,mt,ht,previousItem$1);else if(kt==="Home")It.preventDefault(),moveFocus$1(Dt,null,mt,ht,nextItem$1);else if(kt==="End")It.preventDefault(),moveFocus$1(Dt,null,mt,ht,previousItem$1);else if(kt.length===1){const Nt=At.current,Yt=kt.toLowerCase(),Kt=performance.now();Nt.keys.length>0&&(Kt-Nt.lastTime>500?(Nt.keys=[],Nt.repeating=!0,Nt.previousKeyMatched=!0):Nt.repeating&&Yt!==Nt.keys[0]&&(Nt.repeating=!1)),Nt.lastTime=Kt,Nt.keys.push(Yt);const Jt=qt&&!Nt.repeating&&textCriteriaMatches(qt,Nt);Nt.previousKeyMatched&&(Jt||moveFocus$1(Dt,qt,!1,ht,nextItem$1,Nt))?It.preventDefault():Nt.previousKeyMatched=!1}xt&&xt(It)},zt=useForkRef(Ot,rt);let Tt=-1;reactExports.Children.forEach(dt,(It,Dt)=>{if(!reactExports.isValidElement(It)){Tt===Dt&&(Tt+=1,Tt>=dt.length&&(Tt=-1));return}It.props.disabled||(Mt==="selectedMenu"&&It.props.selected||Tt===-1)&&(Tt=Dt),Tt===Dt&&(It.props.disabled||It.props.muiSkipListHighlight||It.type.muiSkipListHighlight)&&(Tt+=1,Tt>=dt.length&&(Tt=-1))});const Ct=reactExports.Children.map(dt,(It,Dt)=>{if(Dt===Tt){const kt={};return ut&&(kt.autoFocus=!0),It.props.tabIndex===void 0&&Mt==="selectedMenu"&&(kt.tabIndex=0),reactExports.cloneElement(It,kt)}return It});return jsxRuntimeExports.jsx(List$2,_extends$j({role:"menu",ref:zt,className:pt,onKeyDown:Rt,tabIndex:lt?0:-1},vt,{children:Ct}))});function getPopoverUtilityClass(et){return generateUtilityClass("MuiPopover",et)}generateUtilityClasses("MuiPopover",["root","paper"]);const _excluded$1b=["onEntering"],_excluded2$e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_excluded3$5=["slotProps"];function getOffsetTop(et,tt){let rt=0;return typeof tt=="number"?rt=tt:tt==="center"?rt=et.height/2:tt==="bottom"&&(rt=et.height),rt}function getOffsetLeft(et,tt){let rt=0;return typeof tt=="number"?rt=tt:tt==="center"?rt=et.width/2:tt==="right"&&(rt=et.width),rt}function getTransformOriginValue(et){return[et.horizontal,et.vertical].map(tt=>typeof tt=="number"?`${tt}px`:tt).join(" ")}function resolveAnchorEl(et){return typeof et=="function"?et():et}const useUtilityClasses$N=et=>{const{classes:tt}=et;return composeClasses({root:["root"],paper:["paper"]},getPopoverUtilityClass,tt)},PopoverRoot=styled(Modal,{name:"MuiPopover",slot:"Root",overridesResolver:(et,tt)=>tt.root})({}),PopoverPaper=styled(Paper,{name:"MuiPopover",slot:"Paper",overridesResolver:(et,tt)=>tt.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Popover$1=reactExports.forwardRef(function(tt,rt){var nt,lt,ut;const dt=useDefaultProps({props:tt,name:"MuiPopover"}),{action:pt,anchorEl:ht,anchorOrigin:mt={vertical:"top",horizontal:"left"},anchorPosition:xt,anchorReference:Mt="anchorEl",children:vt,className:Ot,container:At,elevation:Rt=8,marginThreshold:zt=16,open:Tt,PaperProps:Ct={},slots:It,slotProps:Dt,transformOrigin:kt={vertical:"top",horizontal:"left"},TransitionComponent:qt=Grow,transitionDuration:Nt="auto",TransitionProps:{onEntering:Yt}={},disableScrollLock:Kt=!1}=dt,Jt=_objectWithoutPropertiesLoose$d(dt.TransitionProps,_excluded$1b),Qt=_objectWithoutPropertiesLoose$d(dt,_excluded2$e),Bt=(nt=Dt==null?void 0:Dt.paper)!=null?nt:Ct,Ft=reactExports.useRef(),$t=useForkRef(Ft,Bt.ref),jt=_extends$j({},dt,{anchorOrigin:mt,anchorReference:Mt,elevation:Rt,marginThreshold:zt,externalPaperSlotProps:Bt,transformOrigin:kt,TransitionComponent:qt,transitionDuration:Nt,TransitionProps:Jt}),Wt=useUtilityClasses$N(jt),Ut=reactExports.useCallback(()=>{if(Mt==="anchorPosition")return xt;const ur=resolveAnchorEl(ht),Mr=(ur&&ur.nodeType===1?ur:ownerDocument(Ft.current).body).getBoundingClientRect();return{top:Mr.top+getOffsetTop(Mr,mt.vertical),left:Mr.left+getOffsetLeft(Mr,mt.horizontal)}},[ht,mt.horizontal,mt.vertical,xt,Mt]),Vt=reactExports.useCallback(ur=>({vertical:getOffsetTop(ur,kt.vertical),horizontal:getOffsetLeft(ur,kt.horizontal)}),[kt.horizontal,kt.vertical]),Ht=reactExports.useCallback(ur=>{const xr={width:ur.offsetWidth,height:ur.offsetHeight},Mr=Vt(xr);if(Mt==="none")return{top:null,left:null,transformOrigin:getTransformOriginValue(Mr)};const Ar=Ut();let Ir=Ar.top-Mr.vertical,Rr=Ar.left-Mr.horizontal;const wr=Ir+xr.height,qr=Rr+xr.width,Hr=ownerWindow(resolveAnchorEl(ht)),kr=Hr.innerHeight-zt,$r=Hr.innerWidth-zt;if(zt!==null&&Ir<zt){const yr=Ir-zt;Ir-=yr,Mr.vertical+=yr}else if(zt!==null&&wr>kr){const yr=wr-kr;Ir-=yr,Mr.vertical+=yr}if(zt!==null&&Rr<zt){const yr=Rr-zt;Rr-=yr,Mr.horizontal+=yr}else if(qr>$r){const yr=qr-$r;Rr-=yr,Mr.horizontal+=yr}return{top:`${Math.round(Ir)}px`,left:`${Math.round(Rr)}px`,transformOrigin:getTransformOriginValue(Mr)}},[ht,Mt,Ut,Vt,zt]),[Gt,Zt]=reactExports.useState(Tt),Xt=reactExports.useCallback(()=>{const ur=Ft.current;if(!ur)return;const xr=Ht(ur);xr.top!==null&&(ur.style.top=xr.top),xr.left!==null&&(ur.style.left=xr.left),ur.style.transformOrigin=xr.transformOrigin,Zt(!0)},[Ht]);reactExports.useEffect(()=>(Kt&&window.addEventListener("scroll",Xt),()=>window.removeEventListener("scroll",Xt)),[ht,Kt,Xt]);const er=(ur,xr)=>{Yt&&Yt(ur,xr),Xt()},nr=()=>{Zt(!1)};reactExports.useEffect(()=>{Tt&&Xt()}),reactExports.useImperativeHandle(pt,()=>Tt?{updatePosition:()=>{Xt()}}:null,[Tt,Xt]),reactExports.useEffect(()=>{if(!Tt)return;const ur=debounce$4(()=>{Xt()}),xr=ownerWindow(ht);return xr.addEventListener("resize",ur),()=>{ur.clear(),xr.removeEventListener("resize",ur)}},[ht,Tt,Xt]);let or=Nt;Nt==="auto"&&!qt.muiSupportAuto&&(or=void 0);const rr=At||(ht?ownerDocument(resolveAnchorEl(ht)).body:void 0),cr=(lt=It==null?void 0:It.root)!=null?lt:PopoverRoot,ir=(ut=It==null?void 0:It.paper)!=null?ut:PopoverPaper,dr=useSlotProps({elementType:ir,externalSlotProps:_extends$j({},Bt,{style:Gt?Bt.style:_extends$j({},Bt.style,{opacity:0})}),additionalProps:{elevation:Rt,ref:$t},ownerState:jt,className:clsx(Wt.paper,Bt==null?void 0:Bt.className)}),gr=useSlotProps({elementType:cr,externalSlotProps:(Dt==null?void 0:Dt.root)||{},externalForwardedProps:Qt,additionalProps:{ref:rt,slotProps:{backdrop:{invisible:!0}},container:rr,open:Tt},ownerState:jt,className:clsx(Wt.root,Ot)}),{slotProps:br}=gr,ar=_objectWithoutPropertiesLoose$d(gr,_excluded3$5);return jsxRuntimeExports.jsx(cr,_extends$j({},ar,!isHostComponent(cr)&&{slotProps:br,disableScrollLock:Kt},{children:jsxRuntimeExports.jsx(qt,_extends$j({appear:!0,in:Tt,onEntering:er,onExited:nr,timeout:or},Jt,{children:jsxRuntimeExports.jsx(ir,_extends$j({},dr,{children:vt}))}))}))});function getMenuUtilityClass(et){return generateUtilityClass("MuiMenu",et)}generateUtilityClasses("MuiMenu",["root","paper","list"]);const _excluded$1a=["onEntering"],_excluded2$d=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},useUtilityClasses$M=et=>{const{classes:tt}=et;return composeClasses({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,tt)},MenuRoot=styled(Popover$1,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(et,tt)=>tt.root})({}),MenuPaper=styled(PopoverPaper,{name:"MuiMenu",slot:"Paper",overridesResolver:(et,tt)=>tt.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MenuMenuList=styled(MenuList$1,{name:"MuiMenu",slot:"List",overridesResolver:(et,tt)=>tt.list})({outline:0}),Menu$1=reactExports.forwardRef(function(tt,rt){var nt,lt;const ut=useDefaultProps({props:tt,name:"MuiMenu"}),{autoFocus:dt=!0,children:pt,className:ht,disableAutoFocusItem:mt=!1,MenuListProps:xt={},onClose:Mt,open:vt,PaperProps:Ot={},PopoverClasses:At,transitionDuration:Rt="auto",TransitionProps:{onEntering:zt}={},variant:Tt="selectedMenu",slots:Ct={},slotProps:It={}}=ut,Dt=_objectWithoutPropertiesLoose$d(ut.TransitionProps,_excluded$1a),kt=_objectWithoutPropertiesLoose$d(ut,_excluded2$d),qt=useRtl(),Nt=_extends$j({},ut,{autoFocus:dt,disableAutoFocusItem:mt,MenuListProps:xt,onEntering:zt,PaperProps:Ot,transitionDuration:Rt,TransitionProps:Dt,variant:Tt}),Yt=useUtilityClasses$M(Nt),Kt=dt&&!mt&&vt,Jt=reactExports.useRef(null),Qt=(Vt,Ht)=>{Jt.current&&Jt.current.adjustStyleForScrollbar(Vt,{direction:qt?"rtl":"ltr"}),zt&&zt(Vt,Ht)},Bt=Vt=>{Vt.key==="Tab"&&(Vt.preventDefault(),Mt&&Mt(Vt,"tabKeyDown"))};let Ft=-1;reactExports.Children.map(pt,(Vt,Ht)=>{reactExports.isValidElement(Vt)&&(Vt.props.disabled||(Tt==="selectedMenu"&&Vt.props.selected||Ft===-1)&&(Ft=Ht))});const $t=(nt=Ct.paper)!=null?nt:MenuPaper,jt=(lt=It.paper)!=null?lt:Ot,Wt=useSlotProps({elementType:Ct.root,externalSlotProps:It.root,ownerState:Nt,className:[Yt.root,ht]}),Ut=useSlotProps({elementType:$t,externalSlotProps:jt,ownerState:Nt,className:Yt.paper});return jsxRuntimeExports.jsx(MenuRoot,_extends$j({onClose:Mt,anchorOrigin:{vertical:"bottom",horizontal:qt?"right":"left"},transformOrigin:qt?RTL_ORIGIN:LTR_ORIGIN,slots:{paper:$t,root:Ct.root},slotProps:{root:Wt,paper:Ut},open:vt,ref:rt,transitionDuration:Rt,TransitionProps:_extends$j({onEntering:Qt},Dt),ownerState:Nt},kt,{classes:At,children:jsxRuntimeExports.jsx(MenuMenuList,_extends$j({onKeyDown:Bt,actions:Jt,autoFocus:dt&&(Ft===-1||mt),autoFocusItem:Kt,variant:Tt},xt,{className:clsx(Yt.list,xt.className),children:pt}))}))});function getMenuItemUtilityClass(et){return generateUtilityClass("MuiMenuItem",et)}const menuItemClasses=generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_excluded$19=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],overridesResolver$2=(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.dense&&tt.dense,rt.divider&&tt.divider,!rt.disableGutters&&tt.gutters]},useUtilityClasses$L=et=>{const{disabled:tt,dense:rt,divider:nt,disableGutters:lt,selected:ut,classes:dt}=et,ht=composeClasses({root:["root",rt&&"dense",tt&&"disabled",!lt&&"gutters",nt&&"divider",ut&&"selected"]},getMenuItemUtilityClass,dt);return _extends$j({},dt,ht)},MenuItemRoot=styled(ButtonBase,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:overridesResolver$2})(({theme:et,ownerState:tt})=>_extends$j({},et.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!tt.disableGutters&&{paddingLeft:16,paddingRight:16},tt.divider&&{borderBottom:`1px solid ${(et.vars||et).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(et.vars||et).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${menuItemClasses.selected}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.selectedOpacity})`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity),[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.focusOpacity)}},[`&.${menuItemClasses.selected}:hover`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.hoverOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.selectedOpacity})`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity)}},[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette.action.focus},[`&.${menuItemClasses.disabled}`]:{opacity:(et.vars||et).palette.action.disabledOpacity},[`& + .${dividerClasses.root}`]:{marginTop:et.spacing(1),marginBottom:et.spacing(1)},[`& + .${dividerClasses.inset}`]:{marginLeft:52},[`& .${listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${listItemIconClasses.root}`]:{minWidth:36}},!tt.dense&&{[et.breakpoints.up("sm")]:{minHeight:"auto"}},tt.dense&&_extends$j({minHeight:32,paddingTop:4,paddingBottom:4},et.typography.body2,{[`& .${listItemIconClasses.root} svg`]:{fontSize:"1.25rem"}}))),MenuItem=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiMenuItem"}),{autoFocus:lt=!1,component:ut="li",dense:dt=!1,divider:pt=!1,disableGutters:ht=!1,focusVisibleClassName:mt,role:xt="menuitem",tabIndex:Mt,className:vt}=nt,Ot=_objectWithoutPropertiesLoose$d(nt,_excluded$19),At=reactExports.useContext(ListContext),Rt=reactExports.useMemo(()=>({dense:dt||At.dense||!1,disableGutters:ht}),[At.dense,dt,ht]),zt=reactExports.useRef(null);useEnhancedEffect(()=>{lt&&zt.current&&zt.current.focus()},[lt]);const Tt=_extends$j({},nt,{dense:Rt.dense,divider:pt,disableGutters:ht}),Ct=useUtilityClasses$L(nt),It=useForkRef(zt,rt);let Dt;return nt.disabled||(Dt=Mt!==void 0?Mt:-1),jsxRuntimeExports.jsx(ListContext.Provider,{value:Rt,children:jsxRuntimeExports.jsx(MenuItemRoot,_extends$j({ref:It,role:xt,tabIndex:Dt,component:ut,focusVisibleClassName:clsx(Ct.focusVisible,mt),className:clsx(Ct.root,vt)},Ot,{ownerState:Tt,classes:Ct}))})});function getNativeSelectUtilityClasses(et){return generateUtilityClass("MuiNativeSelect",et)}const nativeSelectClasses=generateUtilityClasses("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_excluded$18=["className","disabled","error","IconComponent","inputRef","variant"],useUtilityClasses$K=et=>{const{classes:tt,variant:rt,disabled:nt,multiple:lt,open:ut,error:dt}=et,pt={select:["select",rt,nt&&"disabled",lt&&"multiple",dt&&"error"],icon:["icon",`icon${capitalize$3(rt)}`,ut&&"iconOpen",nt&&"disabled"]};return composeClasses(pt,getNativeSelectUtilityClasses,tt)},nativeSelectSelectStyles=({ownerState:et,theme:tt})=>_extends$j({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":_extends$j({},tt.vars?{backgroundColor:`rgba(${tt.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:tt.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${nativeSelectClasses.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(tt.vars||tt).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},et.variant==="filled"&&{"&&&":{paddingRight:32}},et.variant==="outlined"&&{borderRadius:(tt.vars||tt).shape.borderRadius,"&:focus":{borderRadius:(tt.vars||tt).shape.borderRadius},"&&&":{paddingRight:32}}),NativeSelectSelect=styled("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp$1,overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.select,tt[rt.variant],rt.error&&tt.error,{[`&.${nativeSelectClasses.multiple}`]:tt.multiple}]}})(nativeSelectSelectStyles),nativeSelectIconStyles=({ownerState:et,theme:tt})=>_extends$j({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(tt.vars||tt).palette.action.active,[`&.${nativeSelectClasses.disabled}`]:{color:(tt.vars||tt).palette.action.disabled}},et.open&&{transform:"rotate(180deg)"},et.variant==="filled"&&{right:7},et.variant==="outlined"&&{right:7}),NativeSelectIcon=styled("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.icon,rt.variant&&tt[`icon${capitalize$3(rt.variant)}`],rt.open&&tt.iconOpen]}})(nativeSelectIconStyles),NativeSelectInput=reactExports.forwardRef(function(tt,rt){const{className:nt,disabled:lt,error:ut,IconComponent:dt,inputRef:pt,variant:ht="standard"}=tt,mt=_objectWithoutPropertiesLoose$d(tt,_excluded$18),xt=_extends$j({},tt,{disabled:lt,variant:ht,error:ut}),Mt=useUtilityClasses$K(xt);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(NativeSelectSelect,_extends$j({ownerState:xt,className:clsx(Mt.select,nt),disabled:lt,ref:pt||rt},mt)),tt.multiple?null:jsxRuntimeExports.jsx(NativeSelectIcon,{as:dt,ownerState:xt,className:Mt.icon})]})});var _span$1;const _excluded$17=["children","classes","className","label","notched"],NotchedOutlineRoot$1=styled("fieldset",{shouldForwardProp:rootShouldForwardProp$1})({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%"}),NotchedOutlineLegend=styled("legend",{shouldForwardProp:rootShouldForwardProp$1})(({ownerState:et,theme:tt})=>_extends$j({float:"unset",width:"auto",overflow:"hidden"},!et.withLabel&&{padding:0,lineHeight:"11px",transition:tt.transitions.create("width",{duration:150,easing:tt.transitions.easing.easeOut})},et.withLabel&&_extends$j({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:tt.transitions.create("max-width",{duration:50,easing:tt.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},et.notched&&{maxWidth:"100%",transition:tt.transitions.create("max-width",{duration:100,easing:tt.transitions.easing.easeOut,delay:50})})));function NotchedOutline(et){const{className:tt,label:rt,notched:nt}=et,lt=_objectWithoutPropertiesLoose$d(et,_excluded$17),ut=rt!=null&&rt!=="",dt=_extends$j({},et,{notched:nt,withLabel:ut});return jsxRuntimeExports.jsx(NotchedOutlineRoot$1,_extends$j({"aria-hidden":!0,className:tt,ownerState:dt},lt,{children:jsxRuntimeExports.jsx(NotchedOutlineLegend,{ownerState:dt,children:ut?jsxRuntimeExports.jsx("span",{children:rt}):_span$1||(_span$1=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"}))})}))}const _excluded$16=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],useUtilityClasses$J=et=>{const{classes:tt}=et,nt=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,tt);return _extends$j({},tt,nt)},OutlinedInputRoot=styled(InputBaseRoot,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:et,ownerState:tt})=>{const rt=et.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _extends$j({position:"relative",borderRadius:(et.vars||et).shape.borderRadius,[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:(et.vars||et).palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:et.vars?`rgba(${et.vars.palette.common.onBackgroundChannel} / 0.23)`:rt}},[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(et.vars||et).palette[tt.color].main,borderWidth:2},[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(et.vars||et).palette.error.main},[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(et.vars||et).palette.action.disabled}},tt.startAdornment&&{paddingLeft:14},tt.endAdornment&&{paddingRight:14},tt.multiline&&_extends$j({padding:"16.5px 14px"},tt.size==="small"&&{padding:"8.5px 14px"}))}),NotchedOutlineRoot=styled(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(et,tt)=>tt.notchedOutline})(({theme:et})=>{const tt=et.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:et.vars?`rgba(${et.vars.palette.common.onBackgroundChannel} / 0.23)`:tt}}),OutlinedInputInput=styled(InputBaseComponent,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:et,ownerState:tt})=>_extends$j({padding:"16.5px 14px"},!et.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:et.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:et.palette.mode==="light"?null:"#fff",caretColor:et.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},et.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[et.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},tt.size==="small"&&{padding:"8.5px 14px"},tt.multiline&&{padding:0},tt.startAdornment&&{paddingLeft:0},tt.endAdornment&&{paddingRight:0})),OutlinedInput=reactExports.forwardRef(function(tt,rt){var nt,lt,ut,dt,pt;const ht=useDefaultProps({props:tt,name:"MuiOutlinedInput"}),{components:mt={},fullWidth:xt=!1,inputComponent:Mt="input",label:vt,multiline:Ot=!1,notched:At,slots:Rt={},type:zt="text"}=ht,Tt=_objectWithoutPropertiesLoose$d(ht,_excluded$16),Ct=useUtilityClasses$J(ht),It=useFormControl(),Dt=formControlState({props:ht,muiFormControl:It,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),kt=_extends$j({},ht,{color:Dt.color||"primary",disabled:Dt.disabled,error:Dt.error,focused:Dt.focused,formControl:It,fullWidth:xt,hiddenLabel:Dt.hiddenLabel,multiline:Ot,size:Dt.size,type:zt}),qt=(nt=(lt=Rt.root)!=null?lt:mt.Root)!=null?nt:OutlinedInputRoot,Nt=(ut=(dt=Rt.input)!=null?dt:mt.Input)!=null?ut:OutlinedInputInput;return jsxRuntimeExports.jsx(InputBase,_extends$j({slots:{root:qt,input:Nt},renderSuffix:Yt=>jsxRuntimeExports.jsx(NotchedOutlineRoot,{ownerState:kt,className:Ct.notchedOutline,label:vt!=null&&vt!==""&&Dt.required?pt||(pt=jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[vt," ","*"]})):vt,notched:typeof At<"u"?At:!!(Yt.startAdornment||Yt.filled||Yt.focused)}),fullWidth:xt,inputComponent:Mt,multiline:Ot,ref:rt,type:zt},Tt,{classes:_extends$j({},Ct,{notchedOutline:null})}))});OutlinedInput.muiName="Input";function getPaginationUtilityClass(et){return generateUtilityClass("MuiPagination",et)}generateUtilityClasses("MuiPagination",["root","ul","outlined","text"]);const _excluded$15=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function usePagination(et={}){const{boundaryCount:tt=1,componentName:rt="usePagination",count:nt=1,defaultPage:lt=1,disabled:ut=!1,hideNextButton:dt=!1,hidePrevButton:pt=!1,onChange:ht,page:mt,showFirstButton:xt=!1,showLastButton:Mt=!1,siblingCount:vt=1}=et,Ot=_objectWithoutPropertiesLoose$d(et,_excluded$15),[At,Rt]=useControlled({controlled:mt,default:lt,name:rt,state:"page"}),zt=(Kt,Jt)=>{mt||Rt(Jt),ht&&ht(Kt,Jt)},Tt=(Kt,Jt)=>{const Qt=Jt-Kt+1;return Array.from({length:Qt},(Bt,Ft)=>Kt+Ft)},Ct=Tt(1,Math.min(tt,nt)),It=Tt(Math.max(nt-tt+1,tt+1),nt),Dt=Math.max(Math.min(At-vt,nt-tt-vt*2-1),tt+2),kt=Math.min(Math.max(At+vt,tt+vt*2+2),It.length>0?It[0]-2:nt-1),qt=[...xt?["first"]:[],...pt?[]:["previous"],...Ct,...Dt>tt+2?["start-ellipsis"]:tt+1<nt-tt?[tt+1]:[],...Tt(Dt,kt),...kt<nt-tt-1?["end-ellipsis"]:nt-tt>tt?[nt-tt]:[],...It,...dt?[]:["next"],...Mt?["last"]:[]],Nt=Kt=>{switch(Kt){case"first":return 1;case"previous":return At-1;case"next":return At+1;case"last":return nt;default:return null}},Yt=qt.map(Kt=>typeof Kt=="number"?{onClick:Jt=>{zt(Jt,Kt)},type:"page",page:Kt,selected:Kt===At,disabled:ut,"aria-current":Kt===At?"true":void 0}:{onClick:Jt=>{zt(Jt,Nt(Kt))},type:Kt,page:Nt(Kt),selected:!1,disabled:ut||Kt.indexOf("ellipsis")===-1&&(Kt==="next"||Kt==="last"?At>=nt:At<=1)});return _extends$j({items:Yt},Ot)}function getPaginationItemUtilityClass(et){return generateUtilityClass("MuiPaginationItem",et)}const paginationItemClasses=generateUtilityClasses("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),FirstPageIconDefault=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),LastPageIconDefault=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),NavigateBeforeIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),NavigateNextIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),_excluded$14=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],overridesResolver$1=(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`size${capitalize$3(rt.size)}`],rt.variant==="text"&&tt[`text${capitalize$3(rt.color)}`],rt.variant==="outlined"&&tt[`outlined${capitalize$3(rt.color)}`],rt.shape==="rounded"&&tt.rounded,rt.type==="page"&&tt.page,(rt.type==="start-ellipsis"||rt.type==="end-ellipsis")&&tt.ellipsis,(rt.type==="previous"||rt.type==="next")&&tt.previousNext,(rt.type==="first"||rt.type==="last")&&tt.firstLast]},useUtilityClasses$I=et=>{const{classes:tt,color:rt,disabled:nt,selected:lt,size:ut,shape:dt,type:pt,variant:ht}=et,mt={root:["root",`size${capitalize$3(ut)}`,ht,dt,rt!=="standard"&&`color${capitalize$3(rt)}`,rt!=="standard"&&`${ht}${capitalize$3(rt)}`,nt&&"disabled",lt&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[pt]],icon:["icon"]};return composeClasses(mt,getPaginationItemUtilityClass,tt)},PaginationItemEllipsis=styled("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:overridesResolver$1})(({theme:et,ownerState:tt})=>_extends$j({},et.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(et.vars||et).palette.text.primary,height:"auto",[`&.${paginationItemClasses.disabled}`]:{opacity:(et.vars||et).palette.action.disabledOpacity}},tt.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},tt.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:et.typography.pxToRem(15)})),PaginationItemPage=styled(ButtonBase,{name:"MuiPaginationItem",slot:"Root",overridesResolver:overridesResolver$1})(({theme:et,ownerState:tt})=>_extends$j({},et.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(et.vars||et).palette.text.primary,[`&.${paginationItemClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette.action.focus},[`&.${paginationItemClasses.disabled}`]:{opacity:(et.vars||et).palette.action.disabledOpacity},transition:et.transitions.create(["color","background-color"],{duration:et.transitions.duration.short}),"&:hover":{backgroundColor:(et.vars||et).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${paginationItemClasses.selected}`]:{backgroundColor:(et.vars||et).palette.action.selected,"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette.action.selectedChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.hoverOpacity}))`:alpha_1(et.palette.action.selected,et.palette.action.selectedOpacity+et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(et.vars||et).palette.action.selected}},[`&.${paginationItemClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.action.selectedChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette.action.selected,et.palette.action.selectedOpacity+et.palette.action.focusOpacity)},[`&.${paginationItemClasses.disabled}`]:{opacity:1,color:(et.vars||et).palette.action.disabled,backgroundColor:(et.vars||et).palette.action.selected}}},tt.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},tt.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:et.typography.pxToRem(15)},tt.shape==="rounded"&&{borderRadius:(et.vars||et).shape.borderRadius}),({theme:et,ownerState:tt})=>_extends$j({},tt.variant==="text"&&{[`&.${paginationItemClasses.selected}`]:_extends$j({},tt.color!=="standard"&&{color:(et.vars||et).palette[tt.color].contrastText,backgroundColor:(et.vars||et).palette[tt.color].main,"&:hover":{backgroundColor:(et.vars||et).palette[tt.color].dark,"@media (hover: none)":{backgroundColor:(et.vars||et).palette[tt.color].main}},[`&.${paginationItemClasses.focusVisible}`]:{backgroundColor:(et.vars||et).palette[tt.color].dark}},{[`&.${paginationItemClasses.disabled}`]:{color:(et.vars||et).palette.action.disabled}})},tt.variant==="outlined"&&{border:et.vars?`1px solid rgba(${et.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${et.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${paginationItemClasses.selected}`]:_extends$j({},tt.color!=="standard"&&{color:(et.vars||et).palette[tt.color].main,border:`1px solid ${et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / 0.5)`:alpha_1(et.palette[tt.color].main,.5)}`,backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.activatedOpacity})`:alpha_1(et.palette[tt.color].main,et.palette.action.activatedOpacity),"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / calc(${et.vars.palette.action.activatedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette[tt.color].main,et.palette.action.activatedOpacity+et.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${paginationItemClasses.focusVisible}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / calc(${et.vars.palette.action.activatedOpacity} + ${et.vars.palette.action.focusOpacity}))`:alpha_1(et.palette[tt.color].main,et.palette.action.activatedOpacity+et.palette.action.focusOpacity)}},{[`&.${paginationItemClasses.disabled}`]:{borderColor:(et.vars||et).palette.action.disabledBackground,color:(et.vars||et).palette.action.disabled}})})),PaginationItemPageIcon=styled("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(et,tt)=>tt.icon})(({theme:et,ownerState:tt})=>_extends$j({fontSize:et.typography.pxToRem(20),margin:"0 -8px"},tt.size==="small"&&{fontSize:et.typography.pxToRem(18)},tt.size==="large"&&{fontSize:et.typography.pxToRem(22)})),PaginationItem=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiPaginationItem"}),{className:lt,color:ut="standard",component:dt,components:pt={},disabled:ht=!1,page:mt,selected:xt=!1,shape:Mt="circular",size:vt="medium",slots:Ot={},type:At="page",variant:Rt="text"}=nt,zt=_objectWithoutPropertiesLoose$d(nt,_excluded$14),Tt=_extends$j({},nt,{color:ut,disabled:ht,selected:xt,shape:Mt,size:vt,type:At,variant:Rt}),Ct=useRtl(),It=useUtilityClasses$I(Tt),kt=(Ct?{previous:Ot.next||pt.next||NavigateNextIcon,next:Ot.previous||pt.previous||NavigateBeforeIcon,last:Ot.first||pt.first||FirstPageIconDefault,first:Ot.last||pt.last||LastPageIconDefault}:{previous:Ot.previous||pt.previous||NavigateBeforeIcon,next:Ot.next||pt.next||NavigateNextIcon,first:Ot.first||pt.first||FirstPageIconDefault,last:Ot.last||pt.last||LastPageIconDefault})[At];return At==="start-ellipsis"||At==="end-ellipsis"?jsxRuntimeExports.jsx(PaginationItemEllipsis,{ref:rt,ownerState:Tt,className:clsx(It.root,lt),children:"…"}):jsxRuntimeExports.jsxs(PaginationItemPage,_extends$j({ref:rt,ownerState:Tt,component:dt,disabled:ht,className:clsx(It.root,lt)},zt,{children:[At==="page"&&mt,kt?jsxRuntimeExports.jsx(PaginationItemPageIcon,{as:kt,ownerState:Tt,className:It.icon}):null]}))}),_excluded$13=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],useUtilityClasses$H=et=>{const{classes:tt,variant:rt}=et;return composeClasses({root:["root",rt],ul:["ul"]},getPaginationUtilityClass,tt)},PaginationRoot=styled("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant]]}})({}),PaginationUl=styled("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(et,tt)=>tt.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function defaultGetAriaLabel$1(et,tt,rt){return et==="page"?`${rt?"":"Go to "}page ${tt}`:`Go to ${et} page`}const Pagination$1=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiPagination"}),{boundaryCount:lt=1,className:ut,color:dt="standard",count:pt=1,defaultPage:ht=1,disabled:mt=!1,getItemAriaLabel:xt=defaultGetAriaLabel$1,hideNextButton:Mt=!1,hidePrevButton:vt=!1,renderItem:Ot=Yt=>jsxRuntimeExports.jsx(PaginationItem,_extends$j({},Yt)),shape:At="circular",showFirstButton:Rt=!1,showLastButton:zt=!1,siblingCount:Tt=1,size:Ct="medium",variant:It="text"}=nt,Dt=_objectWithoutPropertiesLoose$d(nt,_excluded$13),{items:kt}=usePagination(_extends$j({},nt,{componentName:"Pagination"})),qt=_extends$j({},nt,{boundaryCount:lt,color:dt,count:pt,defaultPage:ht,disabled:mt,getItemAriaLabel:xt,hideNextButton:Mt,hidePrevButton:vt,renderItem:Ot,shape:At,showFirstButton:Rt,showLastButton:zt,siblingCount:Tt,size:Ct,variant:It}),Nt=useUtilityClasses$H(qt);return jsxRuntimeExports.jsx(PaginationRoot,_extends$j({"aria-label":"pagination navigation",className:clsx(Nt.root,ut),ownerState:qt,ref:rt},Dt,{children:jsxRuntimeExports.jsx(PaginationUl,{className:Nt.ul,ownerState:qt,children:kt.map((Yt,Kt)=>jsxRuntimeExports.jsx("li",{children:Ot(_extends$j({},Yt,{color:dt,"aria-label":xt(Yt.type,Yt.page,Yt.selected),shape:At,size:Ct,variant:It}))},Kt))})}))}),RadioButtonUncheckedIcon=createSvgIcon$1(jsxRuntimeExports.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"),RadioButtonCheckedIcon$1=createSvgIcon$1(jsxRuntimeExports.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"),RadioButtonIconRoot=styled("span",{shouldForwardProp:rootShouldForwardProp$1})({position:"relative",display:"flex"}),RadioButtonIconBackground=styled(RadioButtonUncheckedIcon)({transform:"scale(1)"}),RadioButtonIconDot=styled(RadioButtonCheckedIcon$1)(({theme:et,ownerState:tt})=>_extends$j({left:0,position:"absolute",transform:"scale(0)",transition:et.transitions.create("transform",{easing:et.transitions.easing.easeIn,duration:et.transitions.duration.shortest})},tt.checked&&{transform:"scale(1)",transition:et.transitions.create("transform",{easing:et.transitions.easing.easeOut,duration:et.transitions.duration.shortest})}));function RadioButtonIcon(et){const{checked:tt=!1,classes:rt={},fontSize:nt}=et,lt=_extends$j({},et,{checked:tt});return jsxRuntimeExports.jsxs(RadioButtonIconRoot,{className:rt.root,ownerState:lt,children:[jsxRuntimeExports.jsx(RadioButtonIconBackground,{fontSize:nt,className:rt.background,ownerState:lt}),jsxRuntimeExports.jsx(RadioButtonIconDot,{fontSize:nt,className:rt.dot,ownerState:lt})]})}const RadioGroupContext=reactExports.createContext(void 0);function useRadioGroup(){return reactExports.useContext(RadioGroupContext)}function getRadioUtilityClass(et){return generateUtilityClass("MuiRadio",et)}const radioClasses=generateUtilityClasses("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),_excluded$12=["checked","checkedIcon","color","icon","name","onChange","size","className"],useUtilityClasses$G=et=>{const{classes:tt,color:rt,size:nt}=et,lt={root:["root",`color${capitalize$3(rt)}`,nt!=="medium"&&`size${capitalize$3(nt)}`]};return _extends$j({},tt,composeClasses(lt,getRadioUtilityClass,tt))},RadioRoot=styled(SwitchBase,{shouldForwardProp:et=>rootShouldForwardProp$1(et)||et==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.size!=="medium"&&tt[`size${capitalize$3(rt.size)}`],tt[`color${capitalize$3(rt.color)}`]]}})(({theme:et,ownerState:tt})=>_extends$j({color:(et.vars||et).palette.text.secondary},!tt.disableRipple&&{"&:hover":{backgroundColor:et.vars?`rgba(${tt.color==="default"?et.vars.palette.action.activeChannel:et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(tt.color==="default"?et.palette.action.active:et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},tt.color!=="default"&&{[`&.${radioClasses.checked}`]:{color:(et.vars||et).palette[tt.color].main}},{[`&.${radioClasses.disabled}`]:{color:(et.vars||et).palette.action.disabled}}));function areEqualValues$1(et,tt){return typeof tt=="object"&&tt!==null?et===tt:String(et)===String(tt)}const defaultCheckedIcon=jsxRuntimeExports.jsx(RadioButtonIcon,{checked:!0}),defaultIcon=jsxRuntimeExports.jsx(RadioButtonIcon,{}),Radio=reactExports.forwardRef(function(tt,rt){var nt,lt;const ut=useDefaultProps({props:tt,name:"MuiRadio"}),{checked:dt,checkedIcon:pt=defaultCheckedIcon,color:ht="primary",icon:mt=defaultIcon,name:xt,onChange:Mt,size:vt="medium",className:Ot}=ut,At=_objectWithoutPropertiesLoose$d(ut,_excluded$12),Rt=_extends$j({},ut,{color:ht,size:vt}),zt=useUtilityClasses$G(Rt),Tt=useRadioGroup();let Ct=dt;const It=createChainedFunction(Mt,Tt&&Tt.onChange);let Dt=xt;return Tt&&(typeof Ct>"u"&&(Ct=areEqualValues$1(Tt.value,ut.value)),typeof Dt>"u"&&(Dt=Tt.name)),jsxRuntimeExports.jsx(RadioRoot,_extends$j({type:"radio",icon:reactExports.cloneElement(mt,{fontSize:(nt=defaultIcon.props.fontSize)!=null?nt:vt}),checkedIcon:reactExports.cloneElement(pt,{fontSize:(lt=defaultCheckedIcon.props.fontSize)!=null?lt:vt}),ownerState:Rt,classes:zt,name:Dt,checked:Ct,onChange:It,ref:rt,className:clsx(zt.root,Ot)},At))});function getRadioGroupUtilityClass(et){return generateUtilityClass("MuiRadioGroup",et)}generateUtilityClasses("MuiRadioGroup",["root","row","error"]);const _excluded$11=["actions","children","className","defaultValue","name","onChange","value"],useUtilityClasses$F=et=>{const{classes:tt,row:rt,error:nt}=et;return composeClasses({root:["root",rt&&"row",nt&&"error"]},getRadioGroupUtilityClass,tt)},RadioGroup=reactExports.forwardRef(function(tt,rt){const{actions:nt,children:lt,className:ut,defaultValue:dt,name:pt,onChange:ht,value:mt}=tt,xt=_objectWithoutPropertiesLoose$d(tt,_excluded$11),Mt=reactExports.useRef(null),vt=useUtilityClasses$F(tt),[Ot,At]=useControlled({controlled:mt,default:dt,name:"RadioGroup"});reactExports.useImperativeHandle(nt,()=>({focus:()=>{let Ct=Mt.current.querySelector("input:not(:disabled):checked");Ct||(Ct=Mt.current.querySelector("input:not(:disabled)")),Ct&&Ct.focus()}}),[]);const Rt=useForkRef(rt,Mt),zt=useId(pt),Tt=reactExports.useMemo(()=>({name:zt,onChange(Ct){At(Ct.target.value),ht&&ht(Ct,Ct.target.value)},value:Ot}),[zt,ht,At,Ot]);return jsxRuntimeExports.jsx(RadioGroupContext.Provider,{value:Tt,children:jsxRuntimeExports.jsx(FormGroup,_extends$j({role:"radiogroup",ref:Rt,className:clsx(vt.root,ut)},xt,{children:lt}))})});function getSelectUtilityClasses(et){return generateUtilityClass("MuiSelect",et)}const selectClasses=generateUtilityClasses("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _span;const _excluded$10=["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"],SelectSelect=styled("div",{name:"MuiSelect",slot:"Select",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[{[`&.${selectClasses.select}`]:tt.select},{[`&.${selectClasses.select}`]:tt[rt.variant]},{[`&.${selectClasses.error}`]:tt.error},{[`&.${selectClasses.multiple}`]:tt.multiple}]}})(nativeSelectSelectStyles,{[`&.${selectClasses.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.icon,rt.variant&&tt[`icon${capitalize$3(rt.variant)}`],rt.open&&tt.iconOpen]}})(nativeSelectIconStyles),SelectNativeInput=styled("input",{shouldForwardProp:et=>slotShouldForwardProp(et)&&et!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(et,tt)=>tt.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues(et,tt){return typeof tt=="object"&&tt!==null?et===tt:String(et)===String(tt)}function isEmpty$3(et){return et==null||typeof et=="string"&&!et.trim()}const useUtilityClasses$E=et=>{const{classes:tt,variant:rt,disabled:nt,multiple:lt,open:ut,error:dt}=et,pt={select:["select",rt,nt&&"disabled",lt&&"multiple",dt&&"error"],icon:["icon",`icon${capitalize$3(rt)}`,ut&&"iconOpen",nt&&"disabled"],nativeInput:["nativeInput"]};return composeClasses(pt,getSelectUtilityClasses,tt)},SelectInput$1=reactExports.forwardRef(function(tt,rt){var nt;const{"aria-describedby":lt,"aria-label":ut,autoFocus:dt,autoWidth:pt,children:ht,className:mt,defaultOpen:xt,defaultValue:Mt,disabled:vt,displayEmpty:Ot,error:At=!1,IconComponent:Rt,inputRef:zt,labelId:Tt,MenuProps:Ct={},multiple:It,name:Dt,onBlur:kt,onChange:qt,onClose:Nt,onFocus:Yt,onOpen:Kt,open:Jt,readOnly:Qt,renderValue:Bt,SelectDisplayProps:Ft={},tabIndex:$t,value:jt,variant:Wt="standard"}=tt,Ut=_objectWithoutPropertiesLoose$d(tt,_excluded$10),[Vt,Ht]=useControlled({controlled:jt,default:Mt,name:"Select"}),[Gt,Zt]=useControlled({controlled:Jt,default:xt,name:"Select"}),Xt=reactExports.useRef(null),er=reactExports.useRef(null),[nr,or]=reactExports.useState(null),{current:rr}=reactExports.useRef(Jt!=null),[cr,ir]=reactExports.useState(),dr=useForkRef(rt,zt),gr=reactExports.useCallback(Xr=>{er.current=Xr,Xr&&or(Xr)},[]),br=nr==null?void 0:nr.parentNode;reactExports.useImperativeHandle(dr,()=>({focus:()=>{er.current.focus()},node:Xt.current,value:Vt}),[Vt]),reactExports.useEffect(()=>{xt&&Gt&&nr&&!rr&&(ir(pt?null:br.clientWidth),er.current.focus())},[nr,pt]),reactExports.useEffect(()=>{dt&&er.current.focus()},[dt]),reactExports.useEffect(()=>{if(!Tt)return;const Xr=ownerDocument(er.current).getElementById(Tt);if(Xr){const cn=()=>{getSelection().isCollapsed&&er.current.focus()};return Xr.addEventListener("click",cn),()=>{Xr.removeEventListener("click",cn)}}},[Tt]);const ar=(Xr,cn)=>{Xr?Kt&&Kt(cn):Nt&&Nt(cn),rr||(ir(pt?null:br.clientWidth),Zt(Xr))},ur=Xr=>{Xr.button===0&&(Xr.preventDefault(),er.current.focus(),ar(!0,Xr))},xr=Xr=>{ar(!1,Xr)},Mr=reactExports.Children.toArray(ht),Ar=Xr=>{const cn=Mr.find(Qr=>Qr.props.value===Xr.target.value);cn!==void 0&&(Ht(cn.props.value),qt&&qt(Xr,cn))},Ir=Xr=>cn=>{let Qr;if(cn.currentTarget.hasAttribute("tabindex")){if(It){Qr=Array.isArray(Vt)?Vt.slice():[];const rn=Vt.indexOf(Xr.props.value);rn===-1?Qr.push(Xr.props.value):Qr.splice(rn,1)}else Qr=Xr.props.value;if(Xr.props.onClick&&Xr.props.onClick(cn),Vt!==Qr&&(Ht(Qr),qt)){const rn=cn.nativeEvent||cn,_r=new rn.constructor(rn.type,rn);Object.defineProperty(_r,"target",{writable:!0,value:{value:Qr,name:Dt}}),qt(_r,Xr)}It||ar(!1,cn)}},Rr=Xr=>{Qt||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Xr.key)!==-1&&(Xr.preventDefault(),ar(!0,Xr))},wr=nr!==null&&Gt,qr=Xr=>{!wr&&kt&&(Object.defineProperty(Xr,"target",{writable:!0,value:{value:Vt,name:Dt}}),kt(Xr))};delete Ut["aria-invalid"];let Hr,kr;const $r=[];let yr=!1;(isFilled$1({value:Vt})||Ot)&&(Bt?Hr=Bt(Vt):yr=!0);const Or=Mr.map(Xr=>{if(!reactExports.isValidElement(Xr))return null;let cn;if(It){if(!Array.isArray(Vt))throw new Error(formatMuiErrorMessage$1(2));cn=Vt.some(Qr=>areEqualValues(Qr,Xr.props.value)),cn&&yr&&$r.push(Xr.props.children)}else cn=areEqualValues(Vt,Xr.props.value),cn&&yr&&(kr=Xr.props.children);return reactExports.cloneElement(Xr,{"aria-selected":cn?"true":"false",onClick:Ir(Xr),onKeyUp:Qr=>{Qr.key===" "&&Qr.preventDefault(),Xr.props.onKeyUp&&Xr.props.onKeyUp(Qr)},role:"option",selected:cn,value:void 0,"data-value":Xr.props.value})});yr&&(It?$r.length===0?Hr=null:Hr=$r.reduce((Xr,cn,Qr)=>(Xr.push(cn),Qr<$r.length-1&&Xr.push(", "),Xr),[]):Hr=kr);let Dr=cr;!pt&&rr&&nr&&(Dr=br.clientWidth);let Fr;typeof $t<"u"?Fr=$t:Fr=vt?null:0;const Yr=Ft.id||(Dt?`mui-component-select-${Dt}`:void 0),Gr=_extends$j({},tt,{variant:Wt,value:Vt,open:wr,error:At}),Jr=useUtilityClasses$E(Gr),jr=_extends$j({},Ct.PaperProps,(nt=Ct.slotProps)==null?void 0:nt.paper),Zr=useId();return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(SelectSelect,_extends$j({ref:gr,tabIndex:Fr,role:"combobox","aria-controls":Zr,"aria-disabled":vt?"true":void 0,"aria-expanded":wr?"true":"false","aria-haspopup":"listbox","aria-label":ut,"aria-labelledby":[Tt,Yr].filter(Boolean).join(" ")||void 0,"aria-describedby":lt,onKeyDown:Rr,onMouseDown:vt||Qt?null:ur,onBlur:qr,onFocus:Yt},Ft,{ownerState:Gr,className:clsx(Ft.className,Jr.select,mt),id:Yr,children:isEmpty$3(Hr)?_span||(_span=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):Hr})),jsxRuntimeExports.jsx(SelectNativeInput,_extends$j({"aria-invalid":At,value:Array.isArray(Vt)?Vt.join(","):Vt,name:Dt,ref:Xt,"aria-hidden":!0,onChange:Ar,tabIndex:-1,disabled:vt,className:Jr.nativeInput,autoFocus:dt,ownerState:Gr},Ut)),jsxRuntimeExports.jsx(SelectIcon,{as:Rt,className:Jr.icon,ownerState:Gr}),jsxRuntimeExports.jsx(Menu$1,_extends$j({id:`menu-${Dt||""}`,anchorEl:br,open:wr,onClose:xr,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},Ct,{MenuListProps:_extends$j({"aria-labelledby":Tt,role:"listbox","aria-multiselectable":It?"true":void 0,disableListWrap:!0,id:Zr},Ct.MenuListProps),slotProps:_extends$j({},Ct.slotProps,{paper:_extends$j({},jr,{style:_extends$j({minWidth:Dr},jr!=null?jr.style:null)})}),children:Or}))]})}),_excluded$$=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],_excluded2$c=["root"],useUtilityClasses$D=et=>{const{classes:tt}=et;return tt},styledRootConfig={name:"MuiSelect",overridesResolver:(et,tt)=>tt.root,shouldForwardProp:et=>rootShouldForwardProp$1(et)&&et!=="variant",slot:"Root"},StyledInput$3=styled(Input$4,styledRootConfig)(""),StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)(""),StyledFilledInput=styled(FilledInput,styledRootConfig)(""),Select$3=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({name:"MuiSelect",props:tt}),{autoWidth:lt=!1,children:ut,classes:dt={},className:pt,defaultOpen:ht=!1,displayEmpty:mt=!1,IconComponent:xt=ArrowDropDownIcon$1,id:Mt,input:vt,inputProps:Ot,label:At,labelId:Rt,MenuProps:zt,multiple:Tt=!1,native:Ct=!1,onClose:It,onOpen:Dt,open:kt,renderValue:qt,SelectDisplayProps:Nt,variant:Yt="outlined"}=nt,Kt=_objectWithoutPropertiesLoose$d(nt,_excluded$$),Jt=Ct?NativeSelectInput:SelectInput$1,Qt=useFormControl(),Bt=formControlState({props:nt,muiFormControl:Qt,states:["variant","error"]}),Ft=Bt.variant||Yt,$t=_extends$j({},nt,{variant:Ft,classes:dt}),jt=useUtilityClasses$D($t),Wt=_objectWithoutPropertiesLoose$d(jt,_excluded2$c),Ut=vt||{standard:jsxRuntimeExports.jsx(StyledInput$3,{ownerState:$t}),outlined:jsxRuntimeExports.jsx(StyledOutlinedInput,{label:At,ownerState:$t}),filled:jsxRuntimeExports.jsx(StyledFilledInput,{ownerState:$t})}[Ft],Vt=useForkRef(rt,Ut.ref);return jsxRuntimeExports.jsx(reactExports.Fragment,{children:reactExports.cloneElement(Ut,_extends$j({inputComponent:Jt,inputProps:_extends$j({children:ut,error:Bt.error,IconComponent:xt,variant:Ft,type:void 0,multiple:Tt},Ct?{id:Mt}:{autoWidth:lt,defaultOpen:ht,displayEmpty:mt,labelId:Rt,MenuProps:zt,onClose:It,onOpen:Dt,open:kt,renderValue:qt,SelectDisplayProps:_extends$j({id:Mt},Nt)},Ot,{classes:Ot?deepmerge$2(Wt,Ot.classes):Wt},vt?vt.props.inputProps:{})},(Tt&&Ct||mt)&&Ft==="outlined"?{notched:!0}:{},{ref:Vt,className:clsx(Ut.props.className,pt,jt.root)},!vt&&{variant:Ft},Kt))})});Select$3.muiName="Select";function getTooltipUtilityClass(et){return generateUtilityClass("MuiTooltip",et)}const tooltipClasses=generateUtilityClasses("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_excluded$_=["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"];function round$2(et){return Math.round(et*1e5)/1e5}const useUtilityClasses$C=et=>{const{classes:tt,disableInteractive:rt,arrow:nt,touch:lt,placement:ut}=et,dt={popper:["popper",!rt&&"popperInteractive",nt&&"popperArrow"],tooltip:["tooltip",nt&&"tooltipArrow",lt&&"touch",`tooltipPlacement${capitalize$3(ut.split("-")[0])}`],arrow:["arrow"]};return composeClasses(dt,getTooltipUtilityClass,tt)},TooltipPopper=styled(Popper,{name:"MuiTooltip",slot:"Popper",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.popper,!rt.disableInteractive&&tt.popperInteractive,rt.arrow&&tt.popperArrow,!rt.open&&tt.popperClose]}})(({theme:et,ownerState:tt,open:rt})=>_extends$j({zIndex:(et.vars||et).zIndex.tooltip,pointerEvents:"none"},!tt.disableInteractive&&{pointerEvents:"auto"},!rt&&{pointerEvents:"none"},tt.arrow&&{[`&[data-popper-placement*="bottom"] .${tooltipClasses.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tooltipClasses.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:_extends$j({},tt.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:_extends$j({},tt.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),TooltipTooltip=styled("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.tooltip,rt.touch&&tt.touch,rt.arrow&&tt.tooltipArrow,tt[`tooltipPlacement${capitalize$3(rt.placement.split("-")[0])}`]]}})(({theme:et,ownerState:tt})=>_extends$j({backgroundColor:et.vars?et.vars.palette.Tooltip.bg:alpha_1(et.palette.grey[700],.92),borderRadius:(et.vars||et).shape.borderRadius,color:(et.vars||et).palette.common.white,fontFamily:et.typography.fontFamily,padding:"4px 8px",fontSize:et.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:et.typography.fontWeightMedium},tt.arrow&&{position:"relative",margin:0},tt.touch&&{padding:"8px 16px",fontSize:et.typography.pxToRem(14),lineHeight:`${round$2(16/14)}em`,fontWeight:et.typography.fontWeightRegular},{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:_extends$j({transformOrigin:"right center"},tt.isRtl?_extends$j({marginLeft:"14px"},tt.touch&&{marginLeft:"24px"}):_extends$j({marginRight:"14px"},tt.touch&&{marginRight:"24px"})),[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:_extends$j({transformOrigin:"left center"},tt.isRtl?_extends$j({marginRight:"14px"},tt.touch&&{marginRight:"24px"}):_extends$j({marginLeft:"14px"},tt.touch&&{marginLeft:"24px"})),[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:_extends$j({transformOrigin:"center bottom",marginBottom:"14px"},tt.touch&&{marginBottom:"24px"}),[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:_extends$j({transformOrigin:"center top",marginTop:"14px"},tt.touch&&{marginTop:"24px"})})),TooltipArrow=styled("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(et,tt)=>tt.arrow})(({theme:et})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:et.vars?et.vars.palette.Tooltip.bg:alpha_1(et.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let hystersisOpen=!1;const hystersisTimer=new Timeout;let cursorPosition={x:0,y:0};function composeEventHandler(et,tt){return(rt,...nt)=>{tt&&tt(rt,...nt),et(rt,...nt)}}const Tooltip=reactExports.forwardRef(function(tt,rt){var nt,lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct,It,Dt,kt;const qt=useDefaultProps({props:tt,name:"MuiTooltip"}),{arrow:Nt=!1,children:Yt,components:Kt={},componentsProps:Jt={},describeChild:Qt=!1,disableFocusListener:Bt=!1,disableHoverListener:Ft=!1,disableInteractive:$t=!1,disableTouchListener:jt=!1,enterDelay:Wt=100,enterNextDelay:Ut=0,enterTouchDelay:Vt=700,followCursor:Ht=!1,id:Gt,leaveDelay:Zt=0,leaveTouchDelay:Xt=1500,onClose:er,onOpen:nr,open:or,placement:rr="bottom",PopperComponent:cr,PopperProps:ir={},slotProps:dr={},slots:gr={},title:br,TransitionComponent:ar=Grow,TransitionProps:ur}=qt,xr=_objectWithoutPropertiesLoose$d(qt,_excluded$_),Mr=reactExports.isValidElement(Yt)?Yt:jsxRuntimeExports.jsx("span",{children:Yt}),Ar=useTheme$1(),Ir=useRtl(),[Rr,wr]=reactExports.useState(),[qr,Hr]=reactExports.useState(null),kr=reactExports.useRef(!1),$r=$t||Ht,yr=useTimeout(),Or=useTimeout(),Dr=useTimeout(),Fr=useTimeout(),[Yr,Gr]=useControlled({controlled:or,default:!1,name:"Tooltip",state:"open"});let Jr=Yr;const jr=useId(Gt),Zr=reactExports.useRef(),Xr=useEventCallback$1(()=>{Zr.current!==void 0&&(document.body.style.WebkitUserSelect=Zr.current,Zr.current=void 0),Fr.clear()});reactExports.useEffect(()=>Xr,[Xr]);const cn=_i=>{hystersisTimer.clear(),hystersisOpen=!0,Gr(!0),nr&&!Jr&&nr(_i)},Qr=useEventCallback$1(_i=>{hystersisTimer.start(800+Zt,()=>{hystersisOpen=!1}),Gr(!1),er&&Jr&&er(_i),yr.start(Ar.transitions.duration.shortest,()=>{kr.current=!1})}),rn=_i=>{kr.current&&_i.type!=="touchstart"||(Rr&&Rr.removeAttribute("title"),Or.clear(),Dr.clear(),Wt||hystersisOpen&&Ut?Or.start(hystersisOpen?Ut:Wt,()=>{cn(_i)}):cn(_i))},_r=_i=>{Or.clear(),Dr.start(Zt,()=>{Qr(_i)})},{isFocusVisibleRef:ln,onBlur:vn,onFocus:Cr,ref:gn}=useIsFocusVisible(),[,xn]=reactExports.useState(!1),Vr=_i=>{vn(_i),ln.current===!1&&(xn(!1),_r(_i))},fn=_i=>{Rr||wr(_i.currentTarget),Cr(_i),ln.current===!0&&(xn(!0),rn(_i))},pn=_i=>{kr.current=!0;const ho=Mr.props;ho.onTouchStart&&ho.onTouchStart(_i)},qn=_i=>{pn(_i),Dr.clear(),yr.clear(),Xr(),Zr.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fr.start(Vt,()=>{document.body.style.WebkitUserSelect=Zr.current,rn(_i)})},Bn=_i=>{Mr.props.onTouchEnd&&Mr.props.onTouchEnd(_i),Xr(),Dr.start(Xt,()=>{Qr(_i)})};reactExports.useEffect(()=>{if(!Jr)return;function _i(ho){(ho.key==="Escape"||ho.key==="Esc")&&Qr(ho)}return document.addEventListener("keydown",_i),()=>{document.removeEventListener("keydown",_i)}},[Qr,Jr]);const Kr=useForkRef(Mr.ref,gn,wr,rt);!br&&br!==0&&(Jr=!1);const Tr=reactExports.useRef(),Pr=_i=>{const ho=Mr.props;ho.onMouseMove&&ho.onMouseMove(_i),cursorPosition={x:_i.clientX,y:_i.clientY},Tr.current&&Tr.current.update()},an={},nn=typeof br=="string";Qt?(an.title=!Jr&&nn&&!Ft?br:null,an["aria-describedby"]=Jr?jr:null):(an["aria-label"]=nn?br:null,an["aria-labelledby"]=Jr&&!nn?jr:null);const Mn=_extends$j({},an,xr,Mr.props,{className:clsx(xr.className,Mr.props.className),onTouchStart:pn,ref:Kr},Ht?{onMouseMove:Pr}:{}),An={};jt||(Mn.onTouchStart=qn,Mn.onTouchEnd=Bn),Ft||(Mn.onMouseOver=composeEventHandler(rn,Mn.onMouseOver),Mn.onMouseLeave=composeEventHandler(_r,Mn.onMouseLeave),$r||(An.onMouseOver=rn,An.onMouseLeave=_r)),Bt||(Mn.onFocus=composeEventHandler(fn,Mn.onFocus),Mn.onBlur=composeEventHandler(Vr,Mn.onBlur),$r||(An.onFocus=fn,An.onBlur=Vr));const Vn=reactExports.useMemo(()=>{var _i;let ho=[{name:"arrow",enabled:!!qr,options:{element:qr,padding:4}}];return(_i=ir.popperOptions)!=null&&_i.modifiers&&(ho=ho.concat(ir.popperOptions.modifiers)),_extends$j({},ir.popperOptions,{modifiers:ho})},[qr,ir]),Cn=_extends$j({},qt,{isRtl:Ir,arrow:Nt,disableInteractive:$r,placement:rr,PopperComponentProp:cr,touch:kr.current}),kn=useUtilityClasses$C(Cn),Qn=(nt=(lt=gr.popper)!=null?lt:Kt.Popper)!=null?nt:TooltipPopper,Gn=(ut=(dt=(pt=gr.transition)!=null?pt:Kt.Transition)!=null?dt:ar)!=null?ut:Grow,Un=(ht=(mt=gr.tooltip)!=null?mt:Kt.Tooltip)!=null?ht:TooltipTooltip,jn=(xt=(Mt=gr.arrow)!=null?Mt:Kt.Arrow)!=null?xt:TooltipArrow,In=appendOwnerState(Qn,_extends$j({},ir,(vt=dr.popper)!=null?vt:Jt.popper,{className:clsx(kn.popper,ir==null?void 0:ir.className,(Ot=(At=dr.popper)!=null?At:Jt.popper)==null?void 0:Ot.className)}),Cn),Kn=appendOwnerState(Gn,_extends$j({},ur,(Rt=dr.transition)!=null?Rt:Jt.transition),Cn),Wn=appendOwnerState(Un,_extends$j({},(zt=dr.tooltip)!=null?zt:Jt.tooltip,{className:clsx(kn.tooltip,(Tt=(Ct=dr.tooltip)!=null?Ct:Jt.tooltip)==null?void 0:Tt.className)}),Cn),ao=appendOwnerState(jn,_extends$j({},(It=dr.arrow)!=null?It:Jt.arrow,{className:clsx(kn.arrow,(Dt=(kt=dr.arrow)!=null?kt:Jt.arrow)==null?void 0:Dt.className)}),Cn);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[reactExports.cloneElement(Mr,Mn),jsxRuntimeExports.jsx(Qn,_extends$j({as:cr??Popper,placement:rr,anchorEl:Ht?{getBoundingClientRect:()=>({top:cursorPosition.y,left:cursorPosition.x,right:cursorPosition.x,bottom:cursorPosition.y,width:0,height:0})}:Rr,popperRef:Tr,open:Rr?Jr:!1,id:jr,transition:!0},An,In,{popperOptions:Vn,children:({TransitionProps:_i})=>jsxRuntimeExports.jsx(Gn,_extends$j({timeout:Ar.transitions.duration.shorter},_i,Kn,{children:jsxRuntimeExports.jsxs(Un,_extends$j({},Wn,{children:[br,Nt?jsxRuntimeExports.jsx(jn,_extends$j({},ao,{ref:Hr})):null]}))}))}))]})});function getSwitchUtilityClass(et){return generateUtilityClass("MuiSwitch",et)}const switchClasses=generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),_excluded$Z=["className","color","edge","size","sx"],useUtilityClasses$B=et=>{const{classes:tt,edge:rt,size:nt,color:lt,checked:ut,disabled:dt}=et,pt={root:["root",rt&&`edge${capitalize$3(rt)}`,`size${capitalize$3(nt)}`],switchBase:["switchBase",`color${capitalize$3(lt)}`,ut&&"checked",dt&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},ht=composeClasses(pt,getSwitchUtilityClass,tt);return _extends$j({},tt,ht)},SwitchRoot=styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.edge&&tt[`edge${capitalize$3(rt.edge)}`],tt[`size${capitalize$3(rt.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${switchClasses.thumb}`]:{width:16,height:16},[`& .${switchClasses.switchBase}`]:{padding:4,[`&.${switchClasses.checked}`]:{transform:"translateX(16px)"}}}}]}),SwitchSwitchBase=styled(SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.switchBase,{[`& .${switchClasses.input}`]:tt.input},rt.color!=="default"&&tt[`color${capitalize$3(rt.color)}`]]}})(({theme:et})=>({position:"absolute",top:0,left:0,zIndex:1,color:et.vars?et.vars.palette.Switch.defaultColor:`${et.palette.mode==="light"?et.palette.common.white:et.palette.grey[300]}`,transition:et.transitions.create(["left","transform"],{duration:et.transitions.duration.shortest}),[`&.${switchClasses.checked}`]:{transform:"translateX(20px)"},[`&.${switchClasses.disabled}`]:{color:et.vars?et.vars.palette.Switch.defaultDisabledColor:`${et.palette.mode==="light"?et.palette.grey[100]:et.palette.grey[600]}`},[`&.${switchClasses.checked} + .${switchClasses.track}`]:{opacity:.5},[`&.${switchClasses.disabled} + .${switchClasses.track}`]:{opacity:et.vars?et.vars.opacity.switchTrackDisabled:`${et.palette.mode==="light"?.12:.2}`},[`& .${switchClasses.input}`]:{left:"-100%",width:"300%"}}),({theme:et})=>({"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette.action.activeChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(et.palette.action.active,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(et.palette).filter(([,tt])=>tt.main&&tt.light).map(([tt])=>({props:{color:tt},style:{[`&.${switchClasses.checked}`]:{color:(et.vars||et).palette[tt].main,"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette[tt].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha_1(et.palette[tt].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${switchClasses.disabled}`]:{color:et.vars?et.vars.palette.Switch[`${tt}DisabledColor`]:`${et.palette.mode==="light"?lighten_1(et.palette[tt].main,.62):darken_1(et.palette[tt].main,.55)}`}},[`&.${switchClasses.checked} + .${switchClasses.track}`]:{backgroundColor:(et.vars||et).palette[tt].main}}}))]})),SwitchTrack=styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(et,tt)=>tt.track})(({theme:et})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:et.transitions.create(["opacity","background-color"],{duration:et.transitions.duration.shortest}),backgroundColor:et.vars?et.vars.palette.common.onBackground:`${et.palette.mode==="light"?et.palette.common.black:et.palette.common.white}`,opacity:et.vars?et.vars.opacity.switchTrack:`${et.palette.mode==="light"?.38:.3}`})),SwitchThumb=styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(et,tt)=>tt.thumb})(({theme:et})=>({boxShadow:(et.vars||et).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Switch$1=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiSwitch"}),{className:lt,color:ut="primary",edge:dt=!1,size:pt="medium",sx:ht}=nt,mt=_objectWithoutPropertiesLoose$d(nt,_excluded$Z),xt=_extends$j({},nt,{color:ut,edge:dt,size:pt}),Mt=useUtilityClasses$B(xt),vt=jsxRuntimeExports.jsx(SwitchThumb,{className:Mt.thumb,ownerState:xt});return jsxRuntimeExports.jsxs(SwitchRoot,{className:clsx(Mt.root,lt),sx:ht,ownerState:xt,children:[jsxRuntimeExports.jsx(SwitchSwitchBase,_extends$j({type:"checkbox",icon:vt,checkedIcon:vt,ref:rt,ownerState:xt},mt,{classes:_extends$j({},Mt,{root:Mt.switchBase})})),jsxRuntimeExports.jsx(SwitchTrack,{className:Mt.track,ownerState:xt})]})});function getTabUtilityClass(et){return generateUtilityClass("MuiTab",et)}const tabClasses=generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),_excluded$Y=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],useUtilityClasses$A=et=>{const{classes:tt,textColor:rt,fullWidth:nt,wrapped:lt,icon:ut,label:dt,selected:pt,disabled:ht}=et,mt={root:["root",ut&&dt&&"labelIcon",`textColor${capitalize$3(rt)}`,nt&&"fullWidth",lt&&"wrapped",pt&&"selected",ht&&"disabled"],iconWrapper:["iconWrapper"]};return composeClasses(mt,getTabUtilityClass,tt)},TabRoot=styled(ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.label&&rt.icon&&tt.labelIcon,tt[`textColor${capitalize$3(rt.textColor)}`],rt.fullWidth&&tt.fullWidth,rt.wrapped&&tt.wrapped,{[`& .${tabClasses.iconWrapper}`]:tt.iconWrapper}]}})(({theme:et,ownerState:tt})=>_extends$j({},et.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},tt.label&&{flexDirection:tt.iconPosition==="top"||tt.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},tt.icon&&tt.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${tabClasses.iconWrapper}`]:_extends$j({},tt.iconPosition==="top"&&{marginBottom:6},tt.iconPosition==="bottom"&&{marginTop:6},tt.iconPosition==="start"&&{marginRight:et.spacing(1)},tt.iconPosition==="end"&&{marginLeft:et.spacing(1)})},tt.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${tabClasses.selected}`]:{opacity:1},[`&.${tabClasses.disabled}`]:{opacity:(et.vars||et).palette.action.disabledOpacity}},tt.textColor==="primary"&&{color:(et.vars||et).palette.text.secondary,[`&.${tabClasses.selected}`]:{color:(et.vars||et).palette.primary.main},[`&.${tabClasses.disabled}`]:{color:(et.vars||et).palette.text.disabled}},tt.textColor==="secondary"&&{color:(et.vars||et).palette.text.secondary,[`&.${tabClasses.selected}`]:{color:(et.vars||et).palette.secondary.main},[`&.${tabClasses.disabled}`]:{color:(et.vars||et).palette.text.disabled}},tt.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},tt.wrapped&&{fontSize:et.typography.pxToRem(12)})),Tab=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTab"}),{className:lt,disabled:ut=!1,disableFocusRipple:dt=!1,fullWidth:pt,icon:ht,iconPosition:mt="top",indicator:xt,label:Mt,onChange:vt,onClick:Ot,onFocus:At,selected:Rt,selectionFollowsFocus:zt,textColor:Tt="inherit",value:Ct,wrapped:It=!1}=nt,Dt=_objectWithoutPropertiesLoose$d(nt,_excluded$Y),kt=_extends$j({},nt,{disabled:ut,disableFocusRipple:dt,selected:Rt,icon:!!ht,iconPosition:mt,label:!!Mt,fullWidth:pt,textColor:Tt,wrapped:It}),qt=useUtilityClasses$A(kt),Nt=ht&&Mt&&reactExports.isValidElement(ht)?reactExports.cloneElement(ht,{className:clsx(qt.iconWrapper,ht.props.className)}):ht,Yt=Jt=>{!Rt&&vt&&vt(Jt,Ct),Ot&&Ot(Jt)},Kt=Jt=>{zt&&!Rt&&vt&&vt(Jt,Ct),At&&At(Jt)};return jsxRuntimeExports.jsxs(TabRoot,_extends$j({focusRipple:!dt,className:clsx(qt.root,lt),ref:rt,role:"tab","aria-selected":Rt,disabled:ut,onClick:Yt,onFocus:Kt,ownerState:kt,tabIndex:Rt?0:-1},Dt,{children:[mt==="top"||mt==="start"?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Nt,Mt]}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Mt,Nt]}),xt]}))}),TableContext=reactExports.createContext();function getTableUtilityClass(et){return generateUtilityClass("MuiTable",et)}generateUtilityClasses("MuiTable",["root","stickyHeader"]);const _excluded$X=["className","component","padding","size","stickyHeader"],useUtilityClasses$z=et=>{const{classes:tt,stickyHeader:rt}=et;return composeClasses({root:["root",rt&&"stickyHeader"]},getTableUtilityClass,tt)},TableRoot=styled("table",{name:"MuiTable",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.stickyHeader&&tt.stickyHeader]}})(({theme:et,ownerState:tt})=>_extends$j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_extends$j({},et.typography.body2,{padding:et.spacing(2),color:(et.vars||et).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},tt.stickyHeader&&{borderCollapse:"separate"})),defaultComponent$3="table",Table$3=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTable"}),{className:lt,component:ut=defaultComponent$3,padding:dt="normal",size:pt="medium",stickyHeader:ht=!1}=nt,mt=_objectWithoutPropertiesLoose$d(nt,_excluded$X),xt=_extends$j({},nt,{component:ut,padding:dt,size:pt,stickyHeader:ht}),Mt=useUtilityClasses$z(xt),vt=reactExports.useMemo(()=>({padding:dt,size:pt,stickyHeader:ht}),[dt,pt,ht]);return jsxRuntimeExports.jsx(TableContext.Provider,{value:vt,children:jsxRuntimeExports.jsx(TableRoot,_extends$j({as:ut,role:ut===defaultComponent$3?null:"table",ref:rt,className:clsx(Mt.root,lt),ownerState:xt},mt))})}),Tablelvl2Context=reactExports.createContext();function getTableBodyUtilityClass(et){return generateUtilityClass("MuiTableBody",et)}generateUtilityClasses("MuiTableBody",["root"]);const _excluded$W=["className","component"],useUtilityClasses$y=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getTableBodyUtilityClass,tt)},TableBodyRoot=styled("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"table-row-group"}),tablelvl2$1={variant:"body"},defaultComponent$2="tbody",TableBody$2=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTableBody"}),{className:lt,component:ut=defaultComponent$2}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$W),pt=_extends$j({},nt,{component:ut}),ht=useUtilityClasses$y(pt);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2$1,children:jsxRuntimeExports.jsx(TableBodyRoot,_extends$j({className:clsx(ht.root,lt),as:ut,ref:rt,role:ut===defaultComponent$2?null:"rowgroup",ownerState:pt},dt))})});function getTableCellUtilityClass(et){return generateUtilityClass("MuiTableCell",et)}const tableCellClasses=generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_excluded$V=["align","className","component","padding","scope","size","sortDirection","variant"],useUtilityClasses$x=et=>{const{classes:tt,variant:rt,align:nt,padding:lt,size:ut,stickyHeader:dt}=et,pt={root:["root",rt,dt&&"stickyHeader",nt!=="inherit"&&`align${capitalize$3(nt)}`,lt!=="normal"&&`padding${capitalize$3(lt)}`,`size${capitalize$3(ut)}`]};return composeClasses(pt,getTableCellUtilityClass,tt)},TableCellRoot=styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`size${capitalize$3(rt.size)}`],rt.padding!=="normal"&&tt[`padding${capitalize$3(rt.padding)}`],rt.align!=="inherit"&&tt[`align${capitalize$3(rt.align)}`],rt.stickyHeader&&tt.stickyHeader]}})(({theme:et,ownerState:tt})=>_extends$j({},et.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:et.vars?`1px solid ${et.vars.palette.TableCell.border}`:`1px solid
    ${et.palette.mode==="light"?lighten_1(alpha_1(et.palette.divider,1),.88):darken_1(alpha_1(et.palette.divider,1),.68)}`,textAlign:"left",padding:16},tt.variant==="head"&&{color:(et.vars||et).palette.text.primary,lineHeight:et.typography.pxToRem(24),fontWeight:et.typography.fontWeightMedium},tt.variant==="body"&&{color:(et.vars||et).palette.text.primary},tt.variant==="footer"&&{color:(et.vars||et).palette.text.secondary,lineHeight:et.typography.pxToRem(21),fontSize:et.typography.pxToRem(12)},tt.size==="small"&&{padding:"6px 16px",[`&.${tableCellClasses.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},tt.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},tt.padding==="none"&&{padding:0},tt.align==="left"&&{textAlign:"left"},tt.align==="center"&&{textAlign:"center"},tt.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},tt.align==="justify"&&{textAlign:"justify"},tt.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(et.vars||et).palette.background.default})),TableCell=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTableCell"}),{align:lt="inherit",className:ut,component:dt,padding:pt,scope:ht,size:mt,sortDirection:xt,variant:Mt}=nt,vt=_objectWithoutPropertiesLoose$d(nt,_excluded$V),Ot=reactExports.useContext(TableContext),At=reactExports.useContext(Tablelvl2Context),Rt=At&&At.variant==="head";let zt;dt?zt=dt:zt=Rt?"th":"td";let Tt=ht;zt==="td"?Tt=void 0:!Tt&&Rt&&(Tt="col");const Ct=Mt||At&&At.variant,It=_extends$j({},nt,{align:lt,component:zt,padding:pt||(Ot&&Ot.padding?Ot.padding:"normal"),size:mt||(Ot&&Ot.size?Ot.size:"medium"),sortDirection:xt,stickyHeader:Ct==="head"&&Ot&&Ot.stickyHeader,variant:Ct}),Dt=useUtilityClasses$x(It);let kt=null;return xt&&(kt=xt==="asc"?"ascending":"descending"),jsxRuntimeExports.jsx(TableCellRoot,_extends$j({as:zt,ref:rt,className:clsx(Dt.root,ut),"aria-sort":kt,scope:Tt,ownerState:It},vt))});function getTableContainerUtilityClass(et){return generateUtilityClass("MuiTableContainer",et)}generateUtilityClasses("MuiTableContainer",["root"]);const _excluded$U=["className","component"],useUtilityClasses$w=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getTableContainerUtilityClass,tt)},TableContainerRoot=styled("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(et,tt)=>tt.root})({width:"100%",overflowX:"auto"}),TableContainer$6=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTableContainer"}),{className:lt,component:ut="div"}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$U),pt=_extends$j({},nt,{component:ut}),ht=useUtilityClasses$w(pt);return jsxRuntimeExports.jsx(TableContainerRoot,_extends$j({ref:rt,as:ut,className:clsx(ht.root,lt),ownerState:pt},dt))});function getTableHeadUtilityClass(et){return generateUtilityClass("MuiTableHead",et)}generateUtilityClasses("MuiTableHead",["root"]);const _excluded$T=["className","component"],useUtilityClasses$v=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getTableHeadUtilityClass,tt)},TableHeadRoot=styled("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"table-header-group"}),tablelvl2={variant:"head"},defaultComponent$1="thead",TableHead$2=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTableHead"}),{className:lt,component:ut=defaultComponent$1}=nt,dt=_objectWithoutPropertiesLoose$d(nt,_excluded$T),pt=_extends$j({},nt,{component:ut}),ht=useUtilityClasses$v(pt);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2,children:jsxRuntimeExports.jsx(TableHeadRoot,_extends$j({as:ut,className:clsx(ht.root,lt),ref:rt,role:ut===defaultComponent$1?null:"rowgroup",ownerState:pt},dt))})});function getToolbarUtilityClass(et){return generateUtilityClass("MuiToolbar",et)}generateUtilityClasses("MuiToolbar",["root","gutters","regular","dense"]);const _excluded$S=["className","component","disableGutters","variant"],useUtilityClasses$u=et=>{const{classes:tt,disableGutters:rt,variant:nt}=et;return composeClasses({root:["root",!rt&&"gutters",nt]},getToolbarUtilityClass,tt)},ToolbarRoot=styled("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,!rt.disableGutters&&tt.gutters,tt[rt.variant]]}})(({theme:et,ownerState:tt})=>_extends$j({position:"relative",display:"flex",alignItems:"center"},!tt.disableGutters&&{paddingLeft:et.spacing(2),paddingRight:et.spacing(2),[et.breakpoints.up("sm")]:{paddingLeft:et.spacing(3),paddingRight:et.spacing(3)}},tt.variant==="dense"&&{minHeight:48}),({theme:et,ownerState:tt})=>tt.variant==="regular"&&et.mixins.toolbar),Toolbar=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiToolbar"}),{className:lt,component:ut="div",disableGutters:dt=!1,variant:pt="regular"}=nt,ht=_objectWithoutPropertiesLoose$d(nt,_excluded$S),mt=_extends$j({},nt,{component:ut,disableGutters:dt,variant:pt}),xt=useUtilityClasses$u(mt);return jsxRuntimeExports.jsx(ToolbarRoot,_extends$j({as:ut,className:clsx(xt.root,lt),ref:rt,ownerState:mt},ht))}),KeyboardArrowLeft$1=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),KeyboardArrowRight=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),_excluded$R=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],TablePaginationActions=reactExports.forwardRef(function(tt,rt){var nt,lt,ut,dt,pt,ht,mt,xt;const{backIconButtonProps:Mt,count:vt,disabled:Ot=!1,getItemAriaLabel:At,nextIconButtonProps:Rt,onPageChange:zt,page:Tt,rowsPerPage:Ct,showFirstButton:It,showLastButton:Dt,slots:kt={},slotProps:qt={}}=tt,Nt=_objectWithoutPropertiesLoose$d(tt,_excluded$R),Yt=useRtl(),Kt=dr=>{zt(dr,0)},Jt=dr=>{zt(dr,Tt-1)},Qt=dr=>{zt(dr,Tt+1)},Bt=dr=>{zt(dr,Math.max(0,Math.ceil(vt/Ct)-1))},Ft=(nt=kt.firstButton)!=null?nt:IconButton,$t=(lt=kt.lastButton)!=null?lt:IconButton,jt=(ut=kt.nextButton)!=null?ut:IconButton,Wt=(dt=kt.previousButton)!=null?dt:IconButton,Ut=(pt=kt.firstButtonIcon)!=null?pt:FirstPageIconDefault,Vt=(ht=kt.lastButtonIcon)!=null?ht:LastPageIconDefault,Ht=(mt=kt.nextButtonIcon)!=null?mt:KeyboardArrowRight,Gt=(xt=kt.previousButtonIcon)!=null?xt:KeyboardArrowLeft$1,Zt=Yt?$t:Ft,Xt=Yt?jt:Wt,er=Yt?Wt:jt,nr=Yt?Ft:$t,or=Yt?qt.lastButton:qt.firstButton,rr=Yt?qt.nextButton:qt.previousButton,cr=Yt?qt.previousButton:qt.nextButton,ir=Yt?qt.firstButton:qt.lastButton;return jsxRuntimeExports.jsxs("div",_extends$j({ref:rt},Nt,{children:[It&&jsxRuntimeExports.jsx(Zt,_extends$j({onClick:Kt,disabled:Ot||Tt===0,"aria-label":At("first",Tt),title:At("first",Tt)},or,{children:Yt?jsxRuntimeExports.jsx(Vt,_extends$j({},qt.lastButtonIcon)):jsxRuntimeExports.jsx(Ut,_extends$j({},qt.firstButtonIcon))})),jsxRuntimeExports.jsx(Xt,_extends$j({onClick:Jt,disabled:Ot||Tt===0,color:"inherit","aria-label":At("previous",Tt),title:At("previous",Tt)},rr??Mt,{children:Yt?jsxRuntimeExports.jsx(Ht,_extends$j({},qt.nextButtonIcon)):jsxRuntimeExports.jsx(Gt,_extends$j({},qt.previousButtonIcon))})),jsxRuntimeExports.jsx(er,_extends$j({onClick:Qt,disabled:Ot||(vt!==-1?Tt>=Math.ceil(vt/Ct)-1:!1),color:"inherit","aria-label":At("next",Tt),title:At("next",Tt)},cr??Rt,{children:Yt?jsxRuntimeExports.jsx(Gt,_extends$j({},qt.previousButtonIcon)):jsxRuntimeExports.jsx(Ht,_extends$j({},qt.nextButtonIcon))})),Dt&&jsxRuntimeExports.jsx(nr,_extends$j({onClick:Bt,disabled:Ot||Tt>=Math.ceil(vt/Ct)-1,"aria-label":At("last",Tt),title:At("last",Tt)},ir,{children:Yt?jsxRuntimeExports.jsx(Ut,_extends$j({},qt.firstButtonIcon)):jsxRuntimeExports.jsx(Vt,_extends$j({},qt.lastButtonIcon))}))]}))});function getTablePaginationUtilityClass(et){return generateUtilityClass("MuiTablePagination",et)}const tablePaginationClasses=generateUtilityClasses("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var _InputBase;const _excluded$Q=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],TablePaginationRoot=styled(TableCell,{name:"MuiTablePagination",slot:"Root",overridesResolver:(et,tt)=>tt.root})(({theme:et})=>({overflow:"auto",color:(et.vars||et).palette.text.primary,fontSize:et.typography.pxToRem(14),"&:last-child":{padding:0}})),TablePaginationToolbar=styled(Toolbar,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(et,tt)=>_extends$j({[`& .${tablePaginationClasses.actions}`]:tt.actions},tt.toolbar)})(({theme:et})=>({minHeight:52,paddingRight:2,[`${et.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[et.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${tablePaginationClasses.actions}`]:{flexShrink:0,marginLeft:20}})),TablePaginationSpacer=styled("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(et,tt)=>tt.spacer})({flex:"1 1 100%"}),TablePaginationSelectLabel=styled("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(et,tt)=>tt.selectLabel})(({theme:et})=>_extends$j({},et.typography.body2,{flexShrink:0})),TablePaginationSelect=styled(Select$3,{name:"MuiTablePagination",slot:"Select",overridesResolver:(et,tt)=>_extends$j({[`& .${tablePaginationClasses.selectIcon}`]:tt.selectIcon,[`& .${tablePaginationClasses.select}`]:tt.select},tt.input,tt.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${tablePaginationClasses.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),TablePaginationMenuItem=styled(MenuItem,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(et,tt)=>tt.menuItem})({}),TablePaginationDisplayedRows=styled("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(et,tt)=>tt.displayedRows})(({theme:et})=>_extends$j({},et.typography.body2,{flexShrink:0}));function defaultLabelDisplayedRows({from:et,to:tt,count:rt}){return`${et}–${tt} of ${rt!==-1?rt:`more than ${tt}`}`}function defaultGetAriaLabel(et){return`Go to ${et} page`}const useUtilityClasses$t=et=>{const{classes:tt}=et;return composeClasses({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},getTablePaginationUtilityClass,tt)},TablePagination=reactExports.forwardRef(function(tt,rt){var nt;const lt=useDefaultProps({props:tt,name:"MuiTablePagination"}),{ActionsComponent:ut=TablePaginationActions,backIconButtonProps:dt,className:pt,colSpan:ht,component:mt=TableCell,count:xt,disabled:Mt=!1,getItemAriaLabel:vt=defaultGetAriaLabel,labelDisplayedRows:Ot=defaultLabelDisplayedRows,labelRowsPerPage:At="Rows per page:",nextIconButtonProps:Rt,onPageChange:zt,onRowsPerPageChange:Tt,page:Ct,rowsPerPage:It,rowsPerPageOptions:Dt=[10,25,50,100],SelectProps:kt={},showFirstButton:qt=!1,showLastButton:Nt=!1,slotProps:Yt={},slots:Kt={}}=lt,Jt=_objectWithoutPropertiesLoose$d(lt,_excluded$Q),Qt=lt,Bt=useUtilityClasses$t(Qt),Ft=(nt=Yt==null?void 0:Yt.select)!=null?nt:kt,$t=Ft.native?"option":TablePaginationMenuItem;let jt;(mt===TableCell||mt==="td")&&(jt=ht||1e3);const Wt=useId(Ft.id),Ut=useId(Ft.labelId),Vt=()=>xt===-1?(Ct+1)*It:It===-1?xt:Math.min(xt,(Ct+1)*It);return jsxRuntimeExports.jsx(TablePaginationRoot,_extends$j({colSpan:jt,ref:rt,as:mt,ownerState:Qt,className:clsx(Bt.root,pt)},Jt,{children:jsxRuntimeExports.jsxs(TablePaginationToolbar,{className:Bt.toolbar,children:[jsxRuntimeExports.jsx(TablePaginationSpacer,{className:Bt.spacer}),Dt.length>1&&jsxRuntimeExports.jsx(TablePaginationSelectLabel,{className:Bt.selectLabel,id:Ut,children:At}),Dt.length>1&&jsxRuntimeExports.jsx(TablePaginationSelect,_extends$j({variant:"standard"},!Ft.variant&&{input:_InputBase||(_InputBase=jsxRuntimeExports.jsx(InputBase,{}))},{value:It,onChange:Tt,id:Wt,labelId:Ut},Ft,{classes:_extends$j({},Ft.classes,{root:clsx(Bt.input,Bt.selectRoot,(Ft.classes||{}).root),select:clsx(Bt.select,(Ft.classes||{}).select),icon:clsx(Bt.selectIcon,(Ft.classes||{}).icon)}),disabled:Mt,children:Dt.map(Ht=>reactExports.createElement($t,_extends$j({},!isHostComponent($t)&&{ownerState:Qt},{className:Bt.menuItem,key:Ht.label?Ht.label:Ht,value:Ht.value?Ht.value:Ht}),Ht.label?Ht.label:Ht))})),jsxRuntimeExports.jsx(TablePaginationDisplayedRows,{className:Bt.displayedRows,children:Ot({from:xt===0?0:Ct*It+1,to:Vt(),count:xt===-1?-1:xt,page:Ct})}),jsxRuntimeExports.jsx(ut,{className:Bt.actions,backIconButtonProps:dt,count:xt,nextIconButtonProps:Rt,onPageChange:zt,page:Ct,rowsPerPage:It,showFirstButton:qt,showLastButton:Nt,slotProps:Yt.actions,slots:Kt.actions,getItemAriaLabel:vt,disabled:Mt})]})}))});function getTableRowUtilityClass(et){return generateUtilityClass("MuiTableRow",et)}const tableRowClasses=generateUtilityClasses("MuiTableRow",["root","selected","hover","head","footer"]),_excluded$P=["className","component","hover","selected"],useUtilityClasses$s=et=>{const{classes:tt,selected:rt,hover:nt,head:lt,footer:ut}=et;return composeClasses({root:["root",rt&&"selected",nt&&"hover",lt&&"head",ut&&"footer"]},getTableRowUtilityClass,tt)},TableRowRoot=styled("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.head&&tt.head,rt.footer&&tt.footer]}})(({theme:et})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tableRowClasses.hover}:hover`]:{backgroundColor:(et.vars||et).palette.action.hover},[`&.${tableRowClasses.selected}`]:{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.selectedOpacity})`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity),"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.hoverOpacity}))`:alpha_1(et.palette.primary.main,et.palette.action.selectedOpacity+et.palette.action.hoverOpacity)}}})),defaultComponent="tr",TableRow$7=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTableRow"}),{className:lt,component:ut=defaultComponent,hover:dt=!1,selected:pt=!1}=nt,ht=_objectWithoutPropertiesLoose$d(nt,_excluded$P),mt=reactExports.useContext(Tablelvl2Context),xt=_extends$j({},nt,{component:ut,hover:dt,selected:pt,head:mt&&mt.variant==="head",footer:mt&&mt.variant==="footer"}),Mt=useUtilityClasses$s(xt);return jsxRuntimeExports.jsx(TableRowRoot,_extends$j({as:ut,ref:rt,className:clsx(Mt.root,lt),role:ut===defaultComponent?null:"row",ownerState:xt},ht))});function easeInOutSin(et){return(1+Math.sin(Math.PI*et-Math.PI/2))/2}function animate(et,tt,rt,nt={},lt=()=>{}){const{ease:ut=easeInOutSin,duration:dt=300}=nt;let pt=null;const ht=tt[et];let mt=!1;const xt=()=>{mt=!0},Mt=vt=>{if(mt){lt(new Error("Animation cancelled"));return}pt===null&&(pt=vt);const Ot=Math.min(1,(vt-pt)/dt);if(tt[et]=ut(Ot)*(rt-ht)+ht,Ot>=1){requestAnimationFrame(()=>{lt(null)});return}requestAnimationFrame(Mt)};return ht===rt?(lt(new Error("Element already at target position")),xt):(requestAnimationFrame(Mt),xt)}const _excluded$O=["onChange"],styles={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ScrollbarSize(et){const{onChange:tt}=et,rt=_objectWithoutPropertiesLoose$d(et,_excluded$O),nt=reactExports.useRef(),lt=reactExports.useRef(null),ut=()=>{nt.current=lt.current.offsetHeight-lt.current.clientHeight};return useEnhancedEffect(()=>{const dt=debounce$4(()=>{const ht=nt.current;ut(),ht!==nt.current&&tt(nt.current)}),pt=ownerWindow(lt.current);return pt.addEventListener("resize",dt),()=>{dt.clear(),pt.removeEventListener("resize",dt)}},[tt]),reactExports.useEffect(()=>{ut(),tt(nt.current)},[tt]),jsxRuntimeExports.jsx("div",_extends$j({style:styles,ref:lt},rt))}function getTabScrollButtonUtilityClass(et){return generateUtilityClass("MuiTabScrollButton",et)}const tabScrollButtonClasses=generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_excluded$N=["className","slots","slotProps","direction","orientation","disabled"],useUtilityClasses$r=et=>{const{classes:tt,orientation:rt,disabled:nt}=et;return composeClasses({root:["root",rt,nt&&"disabled"]},getTabScrollButtonUtilityClass,tt)},TabScrollButtonRoot=styled(ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,rt.orientation&&tt[rt.orientation]]}})(({ownerState:et})=>_extends$j({width:40,flexShrink:0,opacity:.8,[`&.${tabScrollButtonClasses.disabled}`]:{opacity:0}},et.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${et.isRtl?-90:90}deg)`}})),TabScrollButton=reactExports.forwardRef(function(tt,rt){var nt,lt;const ut=useDefaultProps({props:tt,name:"MuiTabScrollButton"}),{className:dt,slots:pt={},slotProps:ht={},direction:mt}=ut,xt=_objectWithoutPropertiesLoose$d(ut,_excluded$N),Mt=useRtl(),vt=_extends$j({isRtl:Mt},ut),Ot=useUtilityClasses$r(vt),At=(nt=pt.StartScrollButtonIcon)!=null?nt:KeyboardArrowLeft$1,Rt=(lt=pt.EndScrollButtonIcon)!=null?lt:KeyboardArrowRight,zt=useSlotProps({elementType:At,externalSlotProps:ht.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:vt}),Tt=useSlotProps({elementType:Rt,externalSlotProps:ht.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:vt});return jsxRuntimeExports.jsx(TabScrollButtonRoot,_extends$j({component:"div",className:clsx(Ot.root,dt),ref:rt,role:null,ownerState:vt,tabIndex:null},xt,{children:mt==="left"?jsxRuntimeExports.jsx(At,_extends$j({},zt)):jsxRuntimeExports.jsx(Rt,_extends$j({},Tt))}))});function getTabsUtilityClass(et){return generateUtilityClass("MuiTabs",et)}const tabsClasses=generateUtilityClasses("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),_excluded$M=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],nextItem=(et,tt)=>et===tt?et.firstChild:tt&&tt.nextElementSibling?tt.nextElementSibling:et.firstChild,previousItem=(et,tt)=>et===tt?et.lastChild:tt&&tt.previousElementSibling?tt.previousElementSibling:et.lastChild,moveFocus=(et,tt,rt)=>{let nt=!1,lt=rt(et,tt);for(;lt;){if(lt===et.firstChild){if(nt)return;nt=!0}const ut=lt.disabled||lt.getAttribute("aria-disabled")==="true";if(!lt.hasAttribute("tabindex")||ut)lt=rt(et,lt);else{lt.focus();return}}},useUtilityClasses$q=et=>{const{vertical:tt,fixed:rt,hideScrollbar:nt,scrollableX:lt,scrollableY:ut,centered:dt,scrollButtonsHideMobile:pt,classes:ht}=et;return composeClasses({root:["root",tt&&"vertical"],scroller:["scroller",rt&&"fixed",nt&&"hideScrollbar",lt&&"scrollableX",ut&&"scrollableY"],flexContainer:["flexContainer",tt&&"flexContainerVertical",dt&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",pt&&"scrollButtonsHideMobile"],scrollableX:[lt&&"scrollableX"],hideScrollbar:[nt&&"hideScrollbar"]},getTabsUtilityClass,ht)},TabsRoot=styled("div",{name:"MuiTabs",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[{[`& .${tabsClasses.scrollButtons}`]:tt.scrollButtons},{[`& .${tabsClasses.scrollButtons}`]:rt.scrollButtonsHideMobile&&tt.scrollButtonsHideMobile},tt.root,rt.vertical&&tt.vertical]}})(({ownerState:et,theme:tt})=>_extends$j({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},et.vertical&&{flexDirection:"column"},et.scrollButtonsHideMobile&&{[`& .${tabsClasses.scrollButtons}`]:{[tt.breakpoints.down("sm")]:{display:"none"}}})),TabsScroller=styled("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.scroller,rt.fixed&&tt.fixed,rt.hideScrollbar&&tt.hideScrollbar,rt.scrollableX&&tt.scrollableX,rt.scrollableY&&tt.scrollableY]}})(({ownerState:et})=>_extends$j({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},et.fixed&&{overflowX:"hidden",width:"100%"},et.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},et.scrollableX&&{overflowX:"auto",overflowY:"hidden"},et.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),FlexContainer=styled("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.flexContainer,rt.vertical&&tt.flexContainerVertical,rt.centered&&tt.centered]}})(({ownerState:et})=>_extends$j({display:"flex"},et.vertical&&{flexDirection:"column"},et.centered&&{justifyContent:"center"})),TabsIndicator=styled("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(et,tt)=>tt.indicator})(({ownerState:et,theme:tt})=>_extends$j({position:"absolute",height:2,bottom:0,width:"100%",transition:tt.transitions.create()},et.indicatorColor==="primary"&&{backgroundColor:(tt.vars||tt).palette.primary.main},et.indicatorColor==="secondary"&&{backgroundColor:(tt.vars||tt).palette.secondary.main},et.vertical&&{height:"100%",width:2,right:0})),TabsScrollbarSize=styled(ScrollbarSize)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),defaultIndicatorStyle={},Tabs=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTabs"}),lt=useTheme$1(),ut=useRtl(),{"aria-label":dt,"aria-labelledby":pt,action:ht,centered:mt=!1,children:xt,className:Mt,component:vt="div",allowScrollButtonsMobile:Ot=!1,indicatorColor:At="primary",onChange:Rt,orientation:zt="horizontal",ScrollButtonComponent:Tt=TabScrollButton,scrollButtons:Ct="auto",selectionFollowsFocus:It,slots:Dt={},slotProps:kt={},TabIndicatorProps:qt={},TabScrollButtonProps:Nt={},textColor:Yt="primary",value:Kt,variant:Jt="standard",visibleScrollbar:Qt=!1}=nt,Bt=_objectWithoutPropertiesLoose$d(nt,_excluded$M),Ft=Jt==="scrollable",$t=zt==="vertical",jt=$t?"scrollTop":"scrollLeft",Wt=$t?"top":"left",Ut=$t?"bottom":"right",Vt=$t?"clientHeight":"clientWidth",Ht=$t?"height":"width",Gt=_extends$j({},nt,{component:vt,allowScrollButtonsMobile:Ot,indicatorColor:At,orientation:zt,vertical:$t,scrollButtons:Ct,textColor:Yt,variant:Jt,visibleScrollbar:Qt,fixed:!Ft,hideScrollbar:Ft&&!Qt,scrollableX:Ft&&!$t,scrollableY:Ft&&$t,centered:mt&&!Ft,scrollButtonsHideMobile:!Ot}),Zt=useUtilityClasses$q(Gt),Xt=useSlotProps({elementType:Dt.StartScrollButtonIcon,externalSlotProps:kt.startScrollButtonIcon,ownerState:Gt}),er=useSlotProps({elementType:Dt.EndScrollButtonIcon,externalSlotProps:kt.endScrollButtonIcon,ownerState:Gt}),[nr,or]=reactExports.useState(!1),[rr,cr]=reactExports.useState(defaultIndicatorStyle),[ir,dr]=reactExports.useState(!1),[gr,br]=reactExports.useState(!1),[ar,ur]=reactExports.useState(!1),[xr,Mr]=reactExports.useState({overflow:"hidden",scrollbarWidth:0}),Ar=new Map,Ir=reactExports.useRef(null),Rr=reactExports.useRef(null),wr=()=>{const Qr=Ir.current;let rn;if(Qr){const ln=Qr.getBoundingClientRect();rn={clientWidth:Qr.clientWidth,scrollLeft:Qr.scrollLeft,scrollTop:Qr.scrollTop,scrollLeftNormalized:getNormalizedScrollLeft(Qr,ut?"rtl":"ltr"),scrollWidth:Qr.scrollWidth,top:ln.top,bottom:ln.bottom,left:ln.left,right:ln.right}}let _r;if(Qr&&Kt!==!1){const ln=Rr.current.children;if(ln.length>0){const vn=ln[Ar.get(Kt)];_r=vn?vn.getBoundingClientRect():null}}return{tabsMeta:rn,tabMeta:_r}},qr=useEventCallback$1(()=>{const{tabsMeta:Qr,tabMeta:rn}=wr();let _r=0,ln;if($t)ln="top",rn&&Qr&&(_r=rn.top-Qr.top+Qr.scrollTop);else if(ln=ut?"right":"left",rn&&Qr){const Cr=ut?Qr.scrollLeftNormalized+Qr.clientWidth-Qr.scrollWidth:Qr.scrollLeft;_r=(ut?-1:1)*(rn[ln]-Qr[ln]+Cr)}const vn={[ln]:_r,[Ht]:rn?rn[Ht]:0};if(isNaN(rr[ln])||isNaN(rr[Ht]))cr(vn);else{const Cr=Math.abs(rr[ln]-vn[ln]),gn=Math.abs(rr[Ht]-vn[Ht]);(Cr>=1||gn>=1)&&cr(vn)}}),Hr=(Qr,{animation:rn=!0}={})=>{rn?animate(jt,Ir.current,Qr,{duration:lt.transitions.duration.standard}):Ir.current[jt]=Qr},kr=Qr=>{let rn=Ir.current[jt];$t?rn+=Qr:(rn+=Qr*(ut?-1:1),rn*=ut&&detectScrollType()==="reverse"?-1:1),Hr(rn)},$r=()=>{const Qr=Ir.current[Vt];let rn=0;const _r=Array.from(Rr.current.children);for(let ln=0;ln<_r.length;ln+=1){const vn=_r[ln];if(rn+vn[Vt]>Qr){ln===0&&(rn=Qr);break}rn+=vn[Vt]}return rn},yr=()=>{kr(-1*$r())},Or=()=>{kr($r())},Dr=reactExports.useCallback(Qr=>{Mr({overflow:null,scrollbarWidth:Qr})},[]),Fr=()=>{const Qr={};Qr.scrollbarSizeListener=Ft?jsxRuntimeExports.jsx(TabsScrollbarSize,{onChange:Dr,className:clsx(Zt.scrollableX,Zt.hideScrollbar)}):null;const _r=Ft&&(Ct==="auto"&&(ir||gr)||Ct===!0);return Qr.scrollButtonStart=_r?jsxRuntimeExports.jsx(Tt,_extends$j({slots:{StartScrollButtonIcon:Dt.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Xt},orientation:zt,direction:ut?"right":"left",onClick:yr,disabled:!ir},Nt,{className:clsx(Zt.scrollButtons,Nt.className)})):null,Qr.scrollButtonEnd=_r?jsxRuntimeExports.jsx(Tt,_extends$j({slots:{EndScrollButtonIcon:Dt.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:er},orientation:zt,direction:ut?"left":"right",onClick:Or,disabled:!gr},Nt,{className:clsx(Zt.scrollButtons,Nt.className)})):null,Qr},Yr=useEventCallback$1(Qr=>{const{tabsMeta:rn,tabMeta:_r}=wr();if(!(!_r||!rn)){if(_r[Wt]<rn[Wt]){const ln=rn[jt]+(_r[Wt]-rn[Wt]);Hr(ln,{animation:Qr})}else if(_r[Ut]>rn[Ut]){const ln=rn[jt]+(_r[Ut]-rn[Ut]);Hr(ln,{animation:Qr})}}}),Gr=useEventCallback$1(()=>{Ft&&Ct!==!1&&ur(!ar)});reactExports.useEffect(()=>{const Qr=debounce$4(()=>{Ir.current&&qr()});let rn;const _r=Cr=>{Cr.forEach(gn=>{gn.removedNodes.forEach(xn=>{var Vr;(Vr=rn)==null||Vr.unobserve(xn)}),gn.addedNodes.forEach(xn=>{var Vr;(Vr=rn)==null||Vr.observe(xn)})}),Qr(),Gr()},ln=ownerWindow(Ir.current);ln.addEventListener("resize",Qr);let vn;return typeof ResizeObserver<"u"&&(rn=new ResizeObserver(Qr),Array.from(Rr.current.children).forEach(Cr=>{rn.observe(Cr)})),typeof MutationObserver<"u"&&(vn=new MutationObserver(_r),vn.observe(Rr.current,{childList:!0})),()=>{var Cr,gn;Qr.clear(),ln.removeEventListener("resize",Qr),(Cr=vn)==null||Cr.disconnect(),(gn=rn)==null||gn.disconnect()}},[qr,Gr]),reactExports.useEffect(()=>{const Qr=Array.from(Rr.current.children),rn=Qr.length;if(typeof IntersectionObserver<"u"&&rn>0&&Ft&&Ct!==!1){const _r=Qr[0],ln=Qr[rn-1],vn={root:Ir.current,threshold:.99},Cr=fn=>{dr(!fn[0].isIntersecting)},gn=new IntersectionObserver(Cr,vn);gn.observe(_r);const xn=fn=>{br(!fn[0].isIntersecting)},Vr=new IntersectionObserver(xn,vn);return Vr.observe(ln),()=>{gn.disconnect(),Vr.disconnect()}}},[Ft,Ct,ar,xt==null?void 0:xt.length]),reactExports.useEffect(()=>{or(!0)},[]),reactExports.useEffect(()=>{qr()}),reactExports.useEffect(()=>{Yr(defaultIndicatorStyle!==rr)},[Yr,rr]),reactExports.useImperativeHandle(ht,()=>({updateIndicator:qr,updateScrollButtons:Gr}),[qr,Gr]);const Jr=jsxRuntimeExports.jsx(TabsIndicator,_extends$j({},qt,{className:clsx(Zt.indicator,qt.className),ownerState:Gt,style:_extends$j({},rr,qt.style)}));let jr=0;const Zr=reactExports.Children.map(xt,Qr=>{if(!reactExports.isValidElement(Qr))return null;const rn=Qr.props.value===void 0?jr:Qr.props.value;Ar.set(rn,jr);const _r=rn===Kt;return jr+=1,reactExports.cloneElement(Qr,_extends$j({fullWidth:Jt==="fullWidth",indicator:_r&&!nr&&Jr,selected:_r,selectionFollowsFocus:It,onChange:Rt,textColor:Yt,value:rn},jr===1&&Kt===!1&&!Qr.props.tabIndex?{tabIndex:0}:{}))}),Xr=Qr=>{const rn=Rr.current,_r=ownerDocument(rn).activeElement;if(_r.getAttribute("role")!=="tab")return;let vn=zt==="horizontal"?"ArrowLeft":"ArrowUp",Cr=zt==="horizontal"?"ArrowRight":"ArrowDown";switch(zt==="horizontal"&&ut&&(vn="ArrowRight",Cr="ArrowLeft"),Qr.key){case vn:Qr.preventDefault(),moveFocus(rn,_r,previousItem);break;case Cr:Qr.preventDefault(),moveFocus(rn,_r,nextItem);break;case"Home":Qr.preventDefault(),moveFocus(rn,null,nextItem);break;case"End":Qr.preventDefault(),moveFocus(rn,null,previousItem);break}},cn=Fr();return jsxRuntimeExports.jsxs(TabsRoot,_extends$j({className:clsx(Zt.root,Mt),ownerState:Gt,ref:rt,as:vt},Bt,{children:[cn.scrollButtonStart,cn.scrollbarSizeListener,jsxRuntimeExports.jsxs(TabsScroller,{className:Zt.scroller,ownerState:Gt,style:{overflow:xr.overflow,[$t?`margin${ut?"Left":"Right"}`:"marginBottom"]:Qt?void 0:-xr.scrollbarWidth},ref:Ir,children:[jsxRuntimeExports.jsx(FlexContainer,{"aria-label":dt,"aria-labelledby":pt,"aria-orientation":zt==="vertical"?"vertical":null,className:Zt.flexContainer,ownerState:Gt,onKeyDown:Xr,ref:Rr,role:"tablist",children:Zr}),nr&&Jr]}),cn.scrollButtonEnd]}))});function getTextFieldUtilityClass(et){return generateUtilityClass("MuiTextField",et)}generateUtilityClasses("MuiTextField",["root"]);const _excluded$L=["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"],variantComponent={standard:Input$4,filled:FilledInput,outlined:OutlinedInput},useUtilityClasses$p=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getTextFieldUtilityClass,tt)},TextFieldRoot=styled(FormControl,{name:"MuiTextField",slot:"Root",overridesResolver:(et,tt)=>tt.root})({}),TextField=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiTextField"}),{autoComplete:lt,autoFocus:ut=!1,children:dt,className:pt,color:ht="primary",defaultValue:mt,disabled:xt=!1,error:Mt=!1,FormHelperTextProps:vt,fullWidth:Ot=!1,helperText:At,id:Rt,InputLabelProps:zt,inputProps:Tt,InputProps:Ct,inputRef:It,label:Dt,maxRows:kt,minRows:qt,multiline:Nt=!1,name:Yt,onBlur:Kt,onChange:Jt,onFocus:Qt,placeholder:Bt,required:Ft=!1,rows:$t,select:jt=!1,SelectProps:Wt,type:Ut,value:Vt,variant:Ht="outlined"}=nt,Gt=_objectWithoutPropertiesLoose$d(nt,_excluded$L),Zt=_extends$j({},nt,{autoFocus:ut,color:ht,disabled:xt,error:Mt,fullWidth:Ot,multiline:Nt,required:Ft,select:jt,variant:Ht}),Xt=useUtilityClasses$p(Zt),er={};Ht==="outlined"&&(zt&&typeof zt.shrink<"u"&&(er.notched=zt.shrink),er.label=Dt),jt&&((!Wt||!Wt.native)&&(er.id=void 0),er["aria-describedby"]=void 0);const nr=useId(Rt),or=At&&nr?`${nr}-helper-text`:void 0,rr=Dt&&nr?`${nr}-label`:void 0,cr=variantComponent[Ht],ir=jsxRuntimeExports.jsx(cr,_extends$j({"aria-describedby":or,autoComplete:lt,autoFocus:ut,defaultValue:mt,fullWidth:Ot,multiline:Nt,name:Yt,rows:$t,maxRows:kt,minRows:qt,type:Ut,value:Vt,id:nr,inputRef:It,onBlur:Kt,onChange:Jt,onFocus:Qt,placeholder:Bt,inputProps:Tt},er,Ct));return jsxRuntimeExports.jsxs(TextFieldRoot,_extends$j({className:clsx(Xt.root,pt),disabled:xt,error:Mt,fullWidth:Ot,ref:rt,required:Ft,color:ht,variant:Ht,ownerState:Zt},Gt,{children:[Dt!=null&&Dt!==""&&jsxRuntimeExports.jsx(InputLabel,_extends$j({htmlFor:nr,id:rr},zt,{children:Dt})),jt?jsxRuntimeExports.jsx(Select$3,_extends$j({"aria-describedby":or,id:nr,labelId:rr,value:Vt,input:ir},Wt,{children:dt})):ir,At&&jsxRuntimeExports.jsx(FormHelperText,_extends$j({id:or},vt,{children:At}))]}))});function getToggleButtonUtilityClass(et){return generateUtilityClass("MuiToggleButton",et)}const toggleButtonClasses=generateUtilityClasses("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ToggleButtonGroupContext=reactExports.createContext({}),ToggleButtonGroupButtonContext=reactExports.createContext(void 0);function isValueSelected(et,tt){return tt===void 0||et===void 0?!1:Array.isArray(tt)?tt.indexOf(et)>=0:et===tt}const _excluded$K=["value"],_excluded2$b=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],useUtilityClasses$o=et=>{const{classes:tt,fullWidth:rt,selected:nt,disabled:lt,size:ut,color:dt}=et,pt={root:["root",nt&&"selected",lt&&"disabled",rt&&"fullWidth",`size${capitalize$3(ut)}`,dt]};return composeClasses(pt,getToggleButtonUtilityClass,tt)},ToggleButtonRoot=styled(ButtonBase,{name:"MuiToggleButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[`size${capitalize$3(rt.size)}`]]}})(({theme:et,ownerState:tt})=>{let rt=tt.color==="standard"?et.palette.text.primary:et.palette[tt.color].main,nt;return et.vars&&(rt=tt.color==="standard"?et.vars.palette.text.primary:et.vars.palette[tt.color].main,nt=tt.color==="standard"?et.vars.palette.text.primaryChannel:et.vars.palette[tt.color].mainChannel),_extends$j({},et.typography.button,{borderRadius:(et.vars||et).shape.borderRadius,padding:11,border:`1px solid ${(et.vars||et).palette.divider}`,color:(et.vars||et).palette.action.active},tt.fullWidth&&{width:"100%"},{[`&.${toggleButtonClasses.disabled}`]:{color:(et.vars||et).palette.action.disabled,border:`1px solid ${(et.vars||et).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha$1(et.palette.text.primary,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${toggleButtonClasses.selected}`]:{color:rt,backgroundColor:et.vars?`rgba(${nt} / ${et.vars.palette.action.selectedOpacity})`:alpha$1(rt,et.palette.action.selectedOpacity),"&:hover":{backgroundColor:et.vars?`rgba(${nt} / calc(${et.vars.palette.action.selectedOpacity} + ${et.vars.palette.action.hoverOpacity}))`:alpha$1(rt,et.palette.action.selectedOpacity+et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:et.vars?`rgba(${nt} / ${et.vars.palette.action.selectedOpacity})`:alpha$1(rt,et.palette.action.selectedOpacity)}}}},tt.size==="small"&&{padding:7,fontSize:et.typography.pxToRem(13)},tt.size==="large"&&{padding:15,fontSize:et.typography.pxToRem(15)})}),ToggleButton$1=reactExports.forwardRef(function(tt,rt){const nt=reactExports.useContext(ToggleButtonGroupContext),{value:lt}=nt,ut=_objectWithoutPropertiesLoose$d(nt,_excluded$K),dt=reactExports.useContext(ToggleButtonGroupButtonContext),pt=resolveProps(_extends$j({},ut,{selected:isValueSelected(tt.value,lt)}),tt),ht=useDefaultProps({props:pt,name:"MuiToggleButton"}),{children:mt,className:xt,color:Mt="standard",disabled:vt=!1,disableFocusRipple:Ot=!1,fullWidth:At=!1,onChange:Rt,onClick:zt,selected:Tt,size:Ct="medium",value:It}=ht,Dt=_objectWithoutPropertiesLoose$d(ht,_excluded2$b),kt=_extends$j({},ht,{color:Mt,disabled:vt,disableFocusRipple:Ot,fullWidth:At,size:Ct}),qt=useUtilityClasses$o(kt),Nt=Kt=>{zt&&(zt(Kt,It),Kt.defaultPrevented)||Rt&&Rt(Kt,It)},Yt=dt||"";return jsxRuntimeExports.jsx(ToggleButtonRoot,_extends$j({className:clsx(ut.className,qt.root,xt,Yt),disabled:vt,focusRipple:!Ot,ref:rt,onClick:Nt,onChange:Rt,value:It,ownerState:kt,"aria-pressed":Tt},Dt,{children:mt}))});function getToggleButtonGroupUtilityClass(et){return generateUtilityClass("MuiToggleButtonGroup",et)}const toggleButtonGroupClasses=generateUtilityClasses("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),_excluded$J=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],useUtilityClasses$n=et=>{const{classes:tt,orientation:rt,fullWidth:nt,disabled:lt}=et,ut={root:["root",rt==="vertical"&&"vertical",nt&&"fullWidth"],grouped:["grouped",`grouped${capitalize$3(rt)}`,lt&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return composeClasses(ut,getToggleButtonGroupUtilityClass,tt)},ToggleButtonGroupRoot=styled("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[{[`& .${toggleButtonGroupClasses.grouped}`]:tt.grouped},{[`& .${toggleButtonGroupClasses.grouped}`]:tt[`grouped${capitalize$3(rt.orientation)}`]},{[`& .${toggleButtonGroupClasses.firstButton}`]:tt.firstButton},{[`& .${toggleButtonGroupClasses.lastButton}`]:tt.lastButton},{[`& .${toggleButtonGroupClasses.middleButton}`]:tt.middleButton},tt.root,rt.orientation==="vertical"&&tt.vertical,rt.fullWidth&&tt.fullWidth]}})(({ownerState:et,theme:tt})=>_extends$j({display:"inline-flex",borderRadius:(tt.vars||tt).shape.borderRadius},et.orientation==="vertical"&&{flexDirection:"column"},et.fullWidth&&{width:"100%"},{[`& .${toggleButtonGroupClasses.grouped}`]:_extends$j({},et.orientation==="horizontal"?{[`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]:{borderTop:0,marginTop:0}})},et.orientation==="horizontal"?{[`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},et.orientation==="horizontal"?{[`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]:{borderTop:"1px solid transparent"}})),ToggleButtonGroup=reactExports.forwardRef(function(tt,rt){const nt=useDefaultProps({props:tt,name:"MuiToggleButtonGroup"}),{children:lt,className:ut,color:dt="standard",disabled:pt=!1,exclusive:ht=!1,fullWidth:mt=!1,onChange:xt,orientation:Mt="horizontal",size:vt="medium",value:Ot}=nt,At=_objectWithoutPropertiesLoose$d(nt,_excluded$J),Rt=_extends$j({},nt,{disabled:pt,fullWidth:mt,orientation:Mt,size:vt}),zt=useUtilityClasses$n(Rt),Tt=reactExports.useCallback((Nt,Yt)=>{if(!xt)return;const Kt=Ot&&Ot.indexOf(Yt);let Jt;Ot&&Kt>=0?(Jt=Ot.slice(),Jt.splice(Kt,1)):Jt=Ot?Ot.concat(Yt):[Yt],xt(Nt,Jt)},[xt,Ot]),Ct=reactExports.useCallback((Nt,Yt)=>{xt&&xt(Nt,Ot===Yt?null:Yt)},[xt,Ot]),It=reactExports.useMemo(()=>({className:zt.grouped,onChange:ht?Ct:Tt,value:Ot,size:vt,fullWidth:mt,color:dt,disabled:pt}),[zt.grouped,ht,Ct,Tt,Ot,vt,mt,dt,pt]),Dt=getValidReactChildren(lt),kt=Dt.length,qt=Nt=>{const Yt=Nt===0,Kt=Nt===kt-1;return Yt&&Kt?"":Yt?zt.firstButton:Kt?zt.lastButton:zt.middleButton};return jsxRuntimeExports.jsx(ToggleButtonGroupRoot,_extends$j({role:"group",className:clsx(zt.root,ut),ref:rt,ownerState:Rt},At,{children:jsxRuntimeExports.jsx(ToggleButtonGroupContext.Provider,{value:It,children:Dt.map((Nt,Yt)=>jsxRuntimeExports.jsx(ToggleButtonGroupButtonContext.Provider,{value:qt(Yt),children:Nt},Yt))})}))}),LoadingSpinner=et=>{const{loadingText:tt="Loading page",relativeSpinner:rt=!1,visible:nt=!0,container:lt=!0,subtitle:ut}=et;return jsxRuntimeExports.jsxs("div",{className:classNames$1({"spinner-container":lt,"entire-viewport":!rt,"loading-off":!nt}),children:[jsxRuntimeExports.jsxs("div",{className:"spinner-inner-container",children:[jsxRuntimeExports.jsx("div",{"data-test-id":"loading-spinner",className:"text-display",children:tt==null?void 0:tt.split(`
`).map((dt,pt)=>jsxRuntimeExports.jsx(Typography,{variant:"h6",children:dt},pt))}),ut&&jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",className:"loader-subtitle",children:ut})]}),jsxRuntimeExports.jsx(CircularProgress,{color:"primary",sx:{marginTop:"15px"}})]})};class NewsCard extends reactExports.Component{render(){const{title:tt,primaryIcon:rt,secondaryIcon:nt,children:lt,invalidContent:ut,id:dt}=this.props;return jsxRuntimeExports.jsxs("div",{className:classNames$1("newscard newspaper-item",{"validation-error":ut}),children:[jsxRuntimeExports.jsxs("div",{className:classNames$1(this.getSticky(),"newscard__heading","newscard--bold",{clickable:this.props.onClick}),"data-test-id":`header-${tt}`,onClick:this.props.onClick,children:[jsxRuntimeExports.jsx("span",{className:nt===void 0?"newscard-title-no-icon":"newscard-title",id:dt,children:tt}),rt,this.renderEdit(),nt]}),jsxRuntimeExports.jsx("div",{className:"newscard-content",children:lt})]})}renderEdit(){return this.props.showEdit?jsxRuntimeExports.jsx("p",{className:"newscard-edit",children:"Edit"}):jsxRuntimeExports.jsx(reactExports.Fragment,{})}getSticky(){const tt=window.innerWidth>767;return this.isChrome()&&tt?"":"sticky-top"}isChrome(){const tt=window.chrome,rt=window.navigator,nt=rt.vendor,lt=typeof window.opr<"u",ut=rt.userAgent.indexOf("Edge")>-1;return rt.userAgent.match("CriOS")?!0:tt!==null&&typeof tt<"u"&&nt==="Google Inc."&&lt===!1&&ut===!1}}Nr(NewsCard,"defaultProps",{invalidContent:!1});const chemotherapyIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA43SURBVHgB7Vt5eFTVFf/d92aygEiCCEjlE7QuFAELaN1Asskim1iotSpWKGIwmQmiqBQJtFSlAlnABUUt2CLIV0RlM8sIAYWqVBQXWlAQRdaAJUDIzLzb330T/DKZ7b1kgv/w+743bzv3vnvOPffcc8+5A5zFWfx0WJp9Djw8fkIINDUq7k9FtbMPdK0npHEpv3gVP3sej1RAOmqb4eP1ER47AW0PpP8j0m7BCe9GDJl/Ak2IphHAcncKUuRoSAziJ26sw+h3vN7Or34NwzjK+2peG5CyGYTemuf2ELIDn19RW5OXRzkMuZgCXIG0gqOIM+IrgDJXHwgxnkyScTTjsYPHcjJQDr36Q6TNP2SpnjfHNkNyUg9oyIQmhlCQv+TTIzyvgFHzJ2Q9+xXihPgIYM34LkhwFpDxTN6dYK2L2a8LkVG4HvFA6fjLoDvyKIDhvGvD8yuoEdMwoGAXGonGCcCTn8SOmQwpHqb6KnUuoAbMaQpVNbF0RALOu+BeCO0RCjuV35uOtMJZaAQaLoDV7o5INN5gFd15vAMH7kGfgu9xJrDefQH88nFqwjgoG3Hs2DAMfekYGoCGCcAc61jGq1bsiWlY32oG8vMNnGmU5mVDM2bw6iiqEzIx8K87YRP2BeBxj6G6P8erA/CJEbi5YKOlcktH6Bj5uh/xxroHOsGvl7EjzoUfw5BVtMFOcc0OMUpzx5P5F3j1JXz+XpaZL8uditbtd5vWPd64ae7X8Dq7si/XQRdrUZJ7o53i1gVQ4RpE6mJebUNNVR/cPHev5bKaVNPhz9A8MQN2oWyNJwZT/Z4+jkN7R9KHeJNCeAtr8rrAatMsUa2lmnk5rUHsYs/3Q/8FlbAD36m3qaI/QNNGwS4SjSmcZSrgGds6Kp0aXgdbqfq3IcG/EmtoKC3Amg0oz91O0ovg9XdGP6pcQ1DuUnbjDvjkrXCIbrTgPXh/eh1wlFqyke+2IbNoM6dSaT5dlXMhknR+Ty5HeuFIS99ZO64NnIlb2d6PkF4wKBZ5bAGUu+bxl9ZWm4C+c+bALtTc3ar9rdChHJlf1XmjZo3Tfn7dBdFhNmsVDN8/Od/3ojAmU7W7Iq1oG6yixJ0JXZZQv9nmwqhtji4Aj7svjZ6HjVhG52YE7MLj/h3LPwU1/lUvgz691Crg823CeTXfotd8r0mnhJTargsZ7sKG3wJDDGTLziU9NUG8z96/AXbhcc2hwMeixtsd/Z/ZEYksugDKc1lQtKMArqQAdsEq3hqnDB5tBtJ5bGFfT0Xl3tWWp8G1E5vD4RvBnp/Ku448vwhUP2p5LaFQMrYl9OSPebWdAuwfiSyyAEpzR3Eh8go74V5kFL0MqyjP7clql/OKRkvm00l6usFO0qqcRCSKKeYwAFeQp0S6Lf+/hBqsU4M1rQ+Hb0U4ksgCCBi+BEqvE6yiPHcgJxbF/H7U+Aejf/FWxAPl7lsozIVm3MDQ05A563PrZV0elquhQewX7nV4AZS6rqYB+Rc/eh/Si+ZHoLkTuvcNpD1TZd6r+TpBKoZ91JyeYYdMYPE0hkMil3dt+fW97N23GfiYi1vm7UY0vOO+AQ65jld7cNTXC8PnHYYVlOb2Z3tW0VlqR3/hQP3XkfyAbjxOolquCl9pzq9ZchGk8zP2zgSszzmf8/VqMuSHX2SEZX7l+IsgKz+gYSom0wl8wqWyOMUhNhHJzgpT6NGgvE6DCy7Ii5DimA+rSKmmm4xKOGtGh3sdXgCZhQsgvG0wsPjb8O+Ll3HOplqCgQk5C15thxnFkfIxNvTjEPqSSS2R7FjLz13Gu1FUx46MFQzm+SpGhui1ST9bsprxwXaIhszCVynA6bwajvKc4UHvpBTYcG+LkDLmTCMX8GpYuCobHxApc9FaYykbtppMDQxLU5I7li7q8/To8pBRUBDyPmA4P2Qc8ClkFD8S9XtL8xPQ+sgWXjWH+KEzfOdcC4d+G78/kkJ4iQb70ZAypXm9uWpcTw1qRyHur/vK3mIoHAQuDdQkH45Io2vKh/AhmUIIh/Sij+AzNjEueBtiYWR+DQWlmOwImXIAuu4h8/dBucAQW8J/v+X7UCE1hxbSQY0XADCGx4aonprfzygwx+H1c05GpNG1fWaUxwoqzltZG2BVfsUoju+2nK0yqIGvh6VPy/dxDfMeDH+InWmcAEpyVLCyE1X7H1HpdPENVCzPw2hxJAj2KLALVmD6FcYS9vy5NKhvovezR2KW0bVP+Y0r6z9unAA0EfDtNaMiKp0QgfeG/GPY9yUupfoqX/AerEJqpWRIw7Fqq+v/nTTcl9Z/2DgB+HENf6tiL1S8auzvYIMf5LQ5nR7e+eZjMzPkvocLJbq6+IbvZ8MqNP0D8+wUV1miP+bdRS1oa3qXdatBY+DgEtnnj71KU86Sz38TrfSn7LopSNK+5+yxG62dB/hMudlVMBwDbK030mYdgt/Yj0RnR0v0hqSNoYiTcX4QC0FEKpyk44XAjUpXwVevGpXCqvvsSlrWzbCCQASpG13Tu3m+jU1pxTG8mX46LTdjjJmz7IfSdf0YfN6WlmhTk6rMxWWCodd9HCwAdgNrVWkpFVisClONk4KpWwHnbs7fdpBeqFaJCxEXsDO8fqcl0hqHgJM+UY1Irvu4ngC0QO8ePzUbg59bjp8C+fkarj7QBs0+P4S0d33RiclM88TjsILjVc2Rooa/COrYYBtw+ERggdHMaU2t4o3SnFz0OXKQa4PvIbsf43CZbQZLwsGTz86TF6Lat8dS3S0SAlPwun1BQy1YAMeOB4KdXqM9zjTM+INWyKtPeEzg1LmE5zy0aR8+pFX5bS/+6kjQP7FSPYTRmkbzJPJfD9KA4CHwh8X7OU1VstKLES+s5AInyakCGhk0fId5zGU+b0kInaZls0e30Uak/fjM41bWewzPk0PyjanNrzPPht+aDfIaVyDR8WnIZ0MJ/V/ytxfihWTHBoa0lLu8Cyo2KPGauUYPRQd4fcEOlTSUY8Qh4AtdJQrcxd/voH9mLVWe5LyGjltIbDBUAA5BB0N0psNwLhoLFZ2FuISMZJsrxaqTyhXdR4ckO4RWGF/C6RgS7C4LFQo/joP7g5ksf7Bn7Z4BCrT7f5k4ccVsrzQ9zU31H4cKQNMVUQISpT0tUDH8+hD+ADNHagIhLHO7i9hGgaSGaeDTMBmSH9JJeoIGUAUyVCapkMHUmnr15kDtHjEwMVBWFNC52krhdUQ4lLjVkO5ELyZkuITxBOUaM4amaQNgFaUPZCNJbMfq+y8Pep7oU0ycQKvkmSjJvpFMPWRuohAiNIGZXrSKjNzB4zjVWy2tf8F2TKJNmBxEV+ZOp5BG0TYUc20/C+tTL6EgOByo3pE8SYdMM1ePmQXv138VPiDiyS1nQ7pDbG0bey5W9Ox9qdEaiz2oOnFd0MamEjeDIcrHl81Ps4BqYzijTf+DXazN7gCnM7DrpKaqp+UUncfFpTDD4xmFv6//KsJaQFcxN7qq3a0lM9MYOjMDnbIbzkleHzQeswrmQzh/zlhhFmm6s0czG8l8B9Yz1DLzq12Xc3hdR42eF+51eA1QaexzklU8cGvQtBQLKg0uRD6vGOHxD7GVQY6GwG6UUtOgGsY4xiSft1y2zPUyuexBPrqHex1eAwIqrFLhfc3kglVkFE1jWmsSr3oyTrfR3NzUWJTm9KZBpmEWHeGXw2wxrwQnVCQZEfcRRV4OO5NV8PIox+/ciO5oOGQWzKT9yDY3QmqOD2hPHmnQlPr2/akcu09Sdcuh5ghDZiGraIWtOhIxBcr/WJ/6aiSS6FHhUtdjFNEMOhCPoW/BE7CDwJRURIs9GMphAdaQib9D/6QiomFdexdzgilMhOp3kuehgQSpWMxyefWjuTFRlnsXh+NClr2HKfe/RSKLLgAVPUnS1NzZiUbsahq0L2AX5bkl/IxKkqqcP5fSsro2eruPT5ipEQ56is0oqK6BCLNI+rGsIQew8WtgFyoJk+xkFkkqGzY0Gmn0iNDA4lOUourBaujGG7ZVWY1BCDXvvwSHcQEZvJ3DYxECewN6mPfCTFhcS5qDTI8zd2AMoaPTmeWUP3AhGoJkx/Nmal2cHB2L1BGLwHQuyvNYEQWQJNT0eDusIoHpbY5eMjIDfYoP8smS2iM2PC6lOb/l1YuwAxVzZKtheLsiM3Y63VpMMH0OjY9UNuA3VOm/WCqj8vOqd4VcbCvWdxqGWMrf3uZuc6vwuN1mzFFiEjLn/cdKEetB0bSiyax4MXvlUbq0j8ekz5r/Axc4XeFNmICGQOUKhf96SzF/BY9rNIfPbGr+jLDptwiwlxs083KVi8xVmoZn8E3lw7h7kbWQVFPC484n41PZrplMuE6yU9R+cpSmBe+6Z5ppbRXrP0UXNw67thuEFa62aMGpDvJm3k2lxZ8Om7CfFxAUQVrBQ+YGJIgUemn/NtfjZxrleUPRAioV34WhrqyGMK/QyO3ynOakfI1XKkW2nVPZOArnXTQl3nmgF93sJ2GG2MQKusf32XaS6iA+f5goy/0zG8O1vgpf0ePzG9OQVbwJ8USZm36DVJqmEisqPqhUvgiNRPz+MqO0waAhCsTqdA6RLzjAFuCUbw36z/sMDYHa7prIqVdK5c31hbmjlO61XlNgeXaIgfj/aWrtxDbQTg1i3E+FrWoTl2IXmaBA5GZTMNK/Dz69komdak5dXBeIRCRqKQyqMHQlLqY2MRpE7xC4uHaz5DqeFsKXsNTcGB1HNO3f5konXAbhZVBF7fwUKiDaMXYhlZM0vuICbBOH0iYm45bVepFNgqb/32BdqEBLYjIXPUZLqvL5FEqymY6TzPFJcQSGvhMtjN1Rd5KcxVmcxVnEEf8H+DUI6oR8KJgAAAAASUVORK5CYII=",radiotherapyIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAoZSURBVHgB7ZsLcFTVGcf/5967SQjh5SACYoXyaEGm0woqlJInCY20OioWmVJebSmFJLupQ2krnUbUsbYBkgACnQo6DqihFqdqhLw2BEflpR3EDq1AYw0PlUewJOaxe0//525qN9mEvbvZDUnlN7P3ce65957znXO/853vOwtc4xpfaAS6i7KcL0HHFAhtLEyMBORgvn0w9waL4eG+kdc+gpAfwCP/Aa/3GDI2HIAQElEkegIovj8GA4dNh6Hdx8rdw5Sh7XJc9v1EE6/H8ngAf33a5JDyU2jaXpjmLgqtAulF/0KEibwA9mSNQoz+E0gs4dmg1tTD/FWzQu/Cg4OI0WqRUlAXcG9Jdn/o2njEiGEwZRI0TOVz7vj8uiaKIc31SCl6HREicgLY7RqGWPkIC7yAZwYr+w4f/wI8jm2Ymf8xwkV9OkKkUxgLefat1tQ3oOsrkLT2DXSRyAigyjUXXrmZT+vPfvsWW3kVMooqgt6nPpO+11+HeH4KKU9eDprfnTuZPWALj271JYitMLy/QOL6TxAmGrqCap1KJ79RuYOVr+fj5iC1aKqtyivq+05AH8cZ1Hl+ZCt/yrpDSC2cRGF/n2c1FPZieLQDKMuegjAJXwAVzkTo4iALMZ1n69hNJyB1XTG6g/SiHageNJqf2Sqe3US98SbLswphYCAcKnKWssU3sAueZWskIr0wYkrJNnl5JrePoXz5TmjGHpbnEVTmDEXtxZWY/2y93ceE3gPczgfZ2pvY8icgW6axNcKv/MiBNZBiEbzYjXCZsZE2A0cM4CgbZDlGDCrH64v72b09NCXoznVSCRVAfX8tjju6pN0jjds1kGXbzyqNY+MUUxfNsXObfQHsyZkEh3iLR7XsASkcx2vQVSqyR7MI6Thz/hXM216LrlKx9EYgtoS1+hqH418jrfDRYLfY+wReXX4zHNqLLOwpmqvpEam8QorbrM8pLm4yIkHa5lM0oTOheqjSCRW5GcFusSeAeD2fpb0Z0vs9DkXH0ZPJ2HAaZvPdvrmF9xm4lwy+UvbgAnC7FrKlZjPraqStP4DewIxNR2Bqv2GPHQoZv+VKWa8sACkFf3wQu9Tl+ifQm0gr+D237K3yXux1pXaW7coCcLtc3I6kpZeHu/7QgN4Em46VX2ode/FE59k6w5q/i/egtH5q4XiEixo9DDGVR7fwbQOsXvX528UIqAnOhcv3YPZTLyEaVDrd3CZTGLM4NJa0v9y5JWiIuZRhAufhjyFUipclYLDjxzxSNv6E1lQ1/T3HSnv8cg5EtDHN5ZxGKyNpBc8CBNB5D6h0nrSupxaOQihUuaZakyP16ahpq0mjxIzbiYzfnQ7IW57zAAv3XFR7gKLSqSZn1APaRM5X3vO/1HEPKMv+BrejaFmtQSioCZIpS3nUYNcQ6RYEdrA8FID3Lp61EUDHStDQ77P2zS0bYJfSZV/ni16D0hm6Y1KPqbyFeBFes5HVndX+SiejgFTDxmFkbq6BHZTCNBy7ePQxJyapSMr/J3oSyv1miDdZrynY99NB/pcCBbAwOc7yw0lp391kCKUoR0KXGdFwXEaEJo8aDXR4Yqb5JwcKYP7ESVa6KfbCDqWuaRTYPGr3PyKp6H2EgiFOcLsFDqPrE6FgaMZha9/kubVNEQIyNnhH0fYHPqs/BTsYWOw78ISmMBXJhfQo4SC6g1jjXU6UQGG3GdUCe0CfmJHW3ujzN9hByBQqv3eQsuEYQmXhyDjLn1eSPQLRxux/htsW2gVj/JMDBdDiGUqN2YA713+KYJRmDWf353Apw/MKJSV/1fLnNTXNRrRJyVMG2Ed0p7cJ0AR+AjF6Aps1eOUVQvuytZfyJHoFUs1n4v1TAnuAEFQAaIQtzP8KsA69gUaPEkCbRg8UgJTUFHDADg0tvmBGkzcB4RAJp2goGHpAjw/8BJq9l/ldDoAdLjTVol8cFafjKwgHX3zwaXQXhjYIHvOcf1JgD3DoZyiABMvLGoxFTzMuYJ5FizkVvQJxA4VwwT+lI1PYZ8mdrxsKO2gMgBrapNYJVM+l+AejrLUILZ4P/ZM7UILGEWt/3YDbYQfhfc7a67oLPZnB142z9qY86p8cqANatONwmM3QzFtgh9SN+1Hp2krpzqf3pwgziw4H5HHT0DHFdxAqXv0QMhgQjQSNLZMR51A67q/+yYECmJlfzxjb2yxwEuwiGlbS+zqTY8dO7PlZEmaubdPNGC4fQffaJoSK7n2Y28gIoI8jSXkJ0V+2eV7HHqHynNW0Bx6C9Axh7O087FDlvI3usyooa6tJpCKzXfDEvcyeTmmLvXUDwShbOQB64ycccg/RW/xN/0sdC6Ai90YIM4HusL8jFJRHSOBPUG0uJD2xRzYipcqDq0151jxo+rP0cOUytlHgfynya4TcLuVGf5lPnghrEQN2oUVu71A3dBduZym7fzp79aj2Yb3orBL7y5J49I1jdFb8km8Y60uUl7g5g3D4d9N23L0lPBebWrTl0E/Swt2HtKLE9pfDWyARDF8QZZv1q2RcwKTvXxPj2QptLUwBX1zA463iMHq20+fpjhqES4y+xlJ+1oKOQLpvoWRHRNstXpo1jfY/p+riOFILxnaUpWuLpHo6hv6MtRcyt9MsCIaaE5jmA4gGmpjsG5vjZ6Eip/Nh8pLnKO59MjSnS3nOz7kdzT6+GSmFr3SWzd4n4HaWsKCZuFrUNxXiu5vtm9qvcSSKlW/z6BJ1SyKS2hlmfthUgjF0fDYdtOLtMOfA6ziN7iTBYd9rXJ19Pae8lSyr8v/PvVLlFfaVYEXu7TSOqnl0Gi16oLnbE1ArTwcPL+NRIq2+PFp9Dwe7JbRRoCJnEY0JTnxwgkJI6VFC2LN0CBwxDH4IRqPlWobCH7RzW+jDYLlzDseO56GsvEZzOr3H0Q9qBEMt4orTS9k446irnmdccq7dW0MfBmcUvkDDRq28uAlx2j6UrBiNq8nu3DHoY5S3Vn4b6j/7YSi3h28IVToZP0Qxx9ghfMzjqB70aOvy1e6j0rmMZXicZegHqf8Kaet+ixDpmiWoJj5SKpM3GdbER2TR4noV0aYsK5nDmwrFMc4nPmQZ5rHbVyMMImMKl+cuoAcpD9aqEFEKTeYz7leGSGNV3HiISm4Gz1RvK2TXX93hv09sErm5gPq7S6zIZYHyWlNq2DU3oql+K7791AWEi3puvFhAD5WyRn3ODIGXGJNxIW3NB+gi0fEHAPQmyTu5Hw61SA0MtQvphpfuqGb5PjKLTnb4b7C8PA3Tzw6D6RhveZolUuD7m0xfPqOZjV4Gr5aP9IIqRIjozgYrsjIh9PuhDBNll//vtb5AJeRFKO+RRCxL0s/6Kx1EnN8T6lqF9zKM5j9j+qaLiDDdNx1WK8OlGMs3qrVEY3h8A/cqEOtQ8TgKoY6D8jl+2bU8rmFv2Y+YI8d6hEvtGte4xv8t/wGhrUXBPP038wAAAABJRU5ErkJggg==",SvgArrowBackward=et=>reactExports.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M23.7802 5.1598L21.4069 2.7998L8.22021 15.9998L21.4202 29.1998L23.7802 26.8398L12.9402 15.9998L23.7802 5.1598Z"})),SvgBulletPoint=et=>reactExports.createElement("svg",{width:8,height:8,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:4,cy:4,r:4,fill:"#CFCDC9"})),SvgCall=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.33333 0H6C6.73333 0 7.33333 0.6 7.33333 1.33333C7.33333 3 7.6 4.6 8.09333 6.09333C8.24 6.56 8.13333 7.08 7.76 7.45333L4.82667 10.3867C6.74667 14.16 9.84 17.24 13.6133 19.1733L16.5467 16.24C16.8133 15.9867 17.1467 15.8533 17.4933 15.8533C17.6267 15.8533 17.7733 15.8667 17.9067 15.92C19.4 16.4133 21.0133 16.68 22.6667 16.68C23.4 16.68 24 17.28 24 18.0133V22.6667C24 23.4 23.4 24 22.6667 24C10.1467 24 0 13.8533 0 1.33333C0 0.6 0.6 0 1.33333 0ZM4.72009 2.66667C4.80009 3.85333 5.00009 5.01333 5.32009 6.12L3.72009 7.72C3.17342 6.12 2.82676 4.42667 2.70676 2.66667H4.72009ZM17.8667 18.6933C19.0001 19.0133 20.1601 19.2133 21.3334 19.2933V21.28C19.5734 21.16 17.8801 20.8133 16.2667 20.28L17.8667 18.6933Z"})),SvgCheckBoxError=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66667 0H21.3333C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0ZM2.66667 21.3333H21.3333V2.66667H2.66667V21.3333Z",fill:"#C72626"})),SvgCheckBoxSelected=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66667 0H21.3333C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0ZM18.107 6.10677L19.987 8.0001L9.32031 18.6668L3.98698 13.3468L5.88031 11.4668L9.32031 14.8934L18.107 6.10677Z"})),SvgCheckBoxUnselected=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66667 0H21.3333C22.8 0 24 1.2 24 2.66667V21.3333C24 22.8 22.8 24 21.3333 24H2.66667C1.2 24 0 22.8 0 21.3333V2.66667C0 1.2 1.2 0 2.66667 0ZM2.66667 21.3333H21.3333V2.66667H2.66667V21.3333Z"})),SvgEdit=et=>reactExports.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.5449 4C23.2116 4 22.8649 4.13333 22.6116 4.38667L20.1716 6.82667L25.1716 11.8267L27.6116 9.38667C28.1316 8.86667 28.1316 8.02667 27.6116 7.50667L24.4916 4.38667C24.2249 4.12 23.8916 4 23.5449 4ZM18.7449 12.0267L19.9716 13.2533L7.89159 25.3333H6.66493V24.1067L18.7449 12.0267ZM3.99826 23L18.7449 8.25331L23.7449 13.2533L8.99826 28H3.99826V23Z"})),SvgErrorExclamation=et=>reactExports.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"red",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:16,cy:16,r:16,fill:"white"}),reactExports.createElement("path",{d:"M16 3.19995C8.92155 3.19995 3.19995 8.92155 3.19995 16C3.19995 23.0784 8.92155 28.7999 16 28.7999C23.0784 28.7999 28.7999 23.0784 28.7999 16C28.7999 8.92155 23.0784 3.19995 16 3.19995Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.3334 9.33337H14.6667V17.3334H17.3334V9.33337ZM17.3334 20H14.6667V22.6667H17.3334V20Z",fill:"white"})),SvgHome=et=>reactExports.createElement("svg",{width:28,height:24,viewBox:"0 0 28 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.666656 12.6666L14 0.666626L27.3333 12.6666H23.3333V23.3333H15.3333V15.3333H12.6667V23.3333H4.66666V12.6666H0.666656ZM20.6667 10.2533L14 4.25327L7.33332 10.2533V20.6666H9.99999V12.6666H18V20.6666H20.6667V10.2533Z"})),SvgHorizon=et=>reactExports.createElement("svg",{width:156,height:107,viewBox:"0 0 156 107",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M16.8301 29.3934C8.18472 40.0739 2.49197 52.8352 0.320068 66.4034H78.1601L16.8301 29.3934Z",fill:"#11AA62"}),reactExports.createElement("path",{d:"M78.17 66.4034H156C153.831 52.8374 148.138 40.0786 139.49 29.4034L78.17 66.4034Z",fill:"#D2EADD"}),reactExports.createElement("path",{d:"M102.99 4.07336L78.16 66.4034L139.48 29.4034C129.99 17.6438 117.326 8.85296 102.99 4.07336Z",fill:"#A6D8BF"}),reactExports.createElement("path",{d:"M53.3201 4.07336C38.9872 8.85324 26.3241 17.64 16.8301 29.3934L78.1601 66.3934L53.3201 4.07336Z",fill:"#47BA82"}),reactExports.createElement("path",{d:"M78.1601 66.4034L102.99 4.07342C86.8615 -1.2512 69.4486 -1.2512 53.3201 4.07342L78.1601 66.4034Z",fill:"#79C8A0"}),reactExports.createElement("path",{opacity:.9,d:"M2.67004 76.9234H8.24004V88.3334H21.88V76.9234H27.45V106.333H21.88V93.3334H8.24004V106.333H2.67004V76.9234ZM43.82 106.823C41.7491 106.842 39.7089 106.322 37.9 105.313C36.1221 104.318 34.6417 102.867 33.6112 101.109C32.5807 99.3516 32.0375 97.3509 32.0375 95.3134C32.0375 93.2759 32.5807 91.2752 33.6112 89.5175C34.6417 87.7598 36.1221 86.3086 37.9 85.3134C39.7085 84.3163 41.74 83.7934 43.805 83.7934C45.8701 83.7934 47.9016 84.3163 49.71 85.3134C51.4845 86.2859 52.9633 87.7197 53.99 89.4634C55.0369 91.2224 55.5895 93.2314 55.5895 95.2784C55.5895 97.3254 55.0369 99.3344 53.99 101.093C52.9537 102.84 51.4781 104.284 49.71 105.283C47.9157 106.304 45.8845 106.836 43.82 106.823ZM43.82 101.703C44.6256 101.722 45.4263 101.574 46.1716 101.267C46.9168 100.961 47.5905 100.503 48.15 99.9234C49.2711 98.6651 49.8905 97.0387 49.8905 95.3534C49.8905 93.6682 49.2711 92.0417 48.15 90.7834C47.6167 90.1778 46.9571 89.6965 46.2176 89.3734C45.4781 89.0503 44.6768 88.8933 43.87 88.9134C43.0483 88.8893 42.2307 89.0389 41.4707 89.3525C40.7108 89.6662 40.0256 90.1367 39.46 90.7334C38.3111 91.9999 37.7013 93.6645 37.76 95.3734C37.7013 97.0554 38.3128 98.692 39.46 99.9234C40.0238 100.506 40.7025 100.965 41.453 101.272C42.2036 101.578 43.0096 101.725 43.82 101.703ZM71.4 84.0734C72.0338 84.0624 72.6653 84.1535 73.27 84.3434V89.2434H71.71C70.1132 89.1827 68.55 89.7132 67.32 90.7334C66.7443 91.293 66.2969 91.9708 66.0086 92.7201C65.7203 93.4694 65.5979 94.2723 65.65 95.0734V106.303H60.08V84.3034H65.2V87.0734C65.9221 86.1424 66.8541 85.3954 67.92 84.8934C69.0033 84.361 70.193 84.0807 71.4 84.0734ZM82.32 106.333H76.75V84.3334H82.32V106.333ZM79.55 73.8934C80.02 73.884 80.4872 73.9675 80.9248 74.1391C81.3624 74.3107 81.7618 74.5671 82.1 74.8934C82.4402 75.2149 82.7112 75.6025 82.8964 76.0323C83.0816 76.4622 83.1771 76.9253 83.1771 77.3934C83.1771 77.8615 83.0816 78.3246 82.8964 78.7545C82.7112 79.1843 82.4402 79.5719 82.1 79.8934C81.4096 80.5542 80.4907 80.923 79.535 80.923C78.5794 80.923 77.6605 80.5542 76.97 79.8934C76.6299 79.5719 76.3589 79.1843 76.1737 78.7545C75.9885 78.3246 75.893 77.8615 75.893 77.3934C75.893 76.9253 75.9885 76.4622 76.1737 76.0323C76.3589 75.6025 76.6299 75.2149 76.97 74.8934C77.3126 74.5643 77.717 74.3065 78.1598 74.1349C78.6027 73.9632 79.0752 73.8811 79.55 73.8934ZM104.95 101.613V106.333H85.83V104.823L96.66 89.0734H86.86V84.3634H104.86V85.8334L93.99 101.613H104.95ZM118.86 106.823C116.789 106.842 114.749 106.322 112.94 105.313C111.162 104.318 109.682 102.867 108.651 101.109C107.621 99.3516 107.078 97.3509 107.078 95.3134C107.078 93.2759 107.621 91.2752 108.651 89.5175C109.682 87.7598 111.162 86.3086 112.94 85.3134C114.748 84.3163 116.78 83.7934 118.845 83.7934C120.91 83.7934 122.942 84.3163 124.75 85.3134C126.525 86.2859 128.003 87.7197 129.03 89.4634C130.077 91.2224 130.63 93.2314 130.63 95.2784C130.63 97.3254 130.077 99.3344 129.03 101.093C127.994 102.84 126.518 104.284 124.75 105.283C122.956 106.304 120.924 106.836 118.86 106.823ZM118.86 101.703C119.666 101.722 120.466 101.574 121.212 101.267C121.957 100.961 122.631 100.503 123.19 99.9234C124.311 98.6651 124.931 97.0387 124.931 95.3534C124.931 93.6682 124.311 92.0417 123.19 90.7834C122.657 90.1778 121.997 89.6965 121.258 89.3734C120.518 89.0503 119.717 88.8933 118.91 88.9134C118.088 88.8893 117.271 89.0389 116.511 89.3525C115.751 89.6662 115.066 90.1367 114.5 90.7334C113.351 91.9999 112.741 93.6645 112.8 95.3734C112.741 97.0554 113.353 98.692 114.5 99.9234C115.064 100.506 115.742 100.965 116.493 101.272C117.244 101.578 118.05 101.725 118.86 101.703ZM146.75 83.8234C147.869 83.7751 148.984 83.9701 150.02 84.3948C151.056 84.8195 151.987 85.4638 152.75 86.2834C154.288 88.0386 155.084 90.3226 154.97 92.6534V106.333H149.45V93.4134C149.479 92.8104 149.387 92.2078 149.179 91.641C148.971 91.0742 148.652 90.5548 148.24 90.1134C147.84 89.6938 147.354 89.3651 146.816 89.1495C146.278 88.9338 145.699 88.8363 145.12 88.8634C144.526 88.8434 143.935 88.9478 143.384 89.1699C142.832 89.3921 142.334 89.7271 141.92 90.1534C141.5 90.5824 141.172 91.0931 140.957 91.6538C140.742 92.2145 140.644 92.8134 140.67 93.4134V106.333H135.12V84.3334H140.24V86.3334C141.032 85.5137 141.99 84.8727 143.05 84.4534C144.233 84.0141 145.488 83.8004 146.75 83.8234Z",fill:"#019966"}),reactExports.createElement("path",{d:"M16.8301 29.3934C8.18472 40.0739 2.49197 52.8352 0.320068 66.4034H78.1601L16.8301 29.3934Z",fill:"#11AA62"}),reactExports.createElement("path",{d:"M78.17 66.4034H156C153.831 52.8374 148.138 40.0786 139.49 29.4034L78.17 66.4034Z",fill:"#D2EADD"}),reactExports.createElement("path",{d:"M102.99 4.07336L78.16 66.4034L139.48 29.4034C129.99 17.6438 117.326 8.85296 102.99 4.07336Z",fill:"#A6D8BF"}),reactExports.createElement("path",{d:"M53.3201 4.07336C38.9872 8.85324 26.3241 17.64 16.8301 29.3934L78.1601 66.3934L53.3201 4.07336Z",fill:"#47BA82"}),reactExports.createElement("path",{d:"M78.1601 66.4034L102.99 4.07342C86.8615 -1.2512 69.4486 -1.2512 53.3201 4.07342L78.1601 66.4034Z",fill:"#79C8A0"})),SvgMinusNoFill=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M6 11H18V13H6V11Z"})),SvgOops=et=>reactExports.createElement("svg",{width:146,height:146,viewBox:"0 0 146 146",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M116.681 61.485C112.686 41.2162 94.885 26 73.5 26C56.5212 26 41.775 35.635 34.4313 49.735C16.7475 51.615 3 66.5963 3 84.75C3 104.196 18.8037 120 38.25 120H114.625C130.84 120 144 106.84 144 90.625C144 75.115 131.956 62.5425 116.681 61.485Z",fill:"white",stroke:"#716E6A",strokeWidth:4}),reactExports.createElement("ellipse",{cx:57.5,cy:67.5,rx:4.5,ry:8.5,fill:"#716E6A"}),reactExports.createElement("ellipse",{cx:88.5,cy:67.5,rx:4.5,ry:8.5,fill:"#716E6A"}),reactExports.createElement("ellipse",{cx:73.2753,cy:94.0931,rx:8.27531,ry:7.09312,fill:"#716E6A"})),SvgPermIdentity=et=>reactExports.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 0.333374C8.05334 0.333374 5.66667 2.72004 5.66667 5.66671C5.66667 8.61337 8.05334 11 11 11C13.9467 11 16.3333 8.61337 16.3333 5.66671C16.3333 2.72004 13.9467 0.333374 11 0.333374ZM13.6667 5.66671C13.6667 4.20004 12.4667 3.00004 11 3.00004C9.53334 3.00004 8.33334 4.20004 8.33334 5.66671C8.33334 7.13337 9.53334 8.33337 11 8.33337C12.4667 8.33337 13.6667 7.13337 13.6667 5.66671ZM19 17.6667C18.7333 16.72 14.6 15 11 15C7.4 15 3.26667 16.72 3 17.68V19H19V17.6667ZM0.333336 17.6667C0.333336 14.12 7.44 12.3334 11 12.3334C14.56 12.3334 21.6667 14.12 21.6667 17.6667V21.6667H0.333336V17.6667Z"})),SvgProfile=et=>reactExports.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9998 2.66675C8.63984 2.66675 2.6665 8.64008 2.6665 16.0001C2.6665 23.3601 8.63984 29.3334 15.9998 29.3334C23.3598 29.3334 29.3332 23.3601 29.3332 16.0001C29.3332 8.64008 23.3598 2.66675 15.9998 2.66675ZM9.42643 24.3734C9.99976 23.1734 13.4931 22.0001 15.9998 22.0001C18.5064 22.0001 22.0131 23.1734 22.5731 24.3734C20.7598 25.8134 18.4798 26.6667 15.9998 26.6667C13.5198 26.6667 11.2398 25.8134 9.42643 24.3734ZM15.9998 19.3334C17.9465 19.3334 22.5731 20.1201 24.4798 22.4401C25.8398 20.6534 26.6665 18.4267 26.6665 16.0001C26.6665 10.1201 21.8798 5.33341 15.9998 5.33341C10.1198 5.33341 5.33315 10.1201 5.33315 16.0001C5.33315 18.4267 6.15982 20.6534 7.51982 22.4401C9.42648 20.1201 14.0532 19.3334 15.9998 19.3334ZM15.9998 8.00008C13.4131 8.00008 11.3331 10.0801 11.3331 12.6667C11.3331 15.2534 13.4131 17.3334 15.9998 17.3334C18.5865 17.3334 20.6665 15.2534 20.6665 12.6667C20.6665 10.0801 18.5865 8.00008 15.9998 8.00008ZM13.9999 12.6667C13.9999 13.7734 14.8932 14.6667 15.9999 14.6667C17.1065 14.6667 17.9999 13.7734 17.9999 12.6667C17.9999 11.5601 17.1065 10.6667 15.9999 10.6667C14.8932 10.6667 13.9999 11.5601 13.9999 12.6667Z"})),SvgSuccessWhiteBorder=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:12,cy:12,r:12,fill:"white"}),reactExports.createElement("ellipse",{cx:12,cy:12,rx:6,ry:6,fill:"white"}),reactExports.createElement("path",{d:"M12.0004 2.3999C6.69159 2.3999 2.40039 6.6911 2.40039 11.9999C2.40039 17.3087 6.69159 21.5999 12.0004 21.5999C17.3092 21.5999 21.6004 17.3087 21.6004 11.9999C21.6004 6.6911 17.3092 2.3999 12.0004 2.3999Z",stroke:"#00A963",strokeWidth:2.1}),reactExports.createElement("path",{d:"M15.6732 8.46436L10.4012 13.7364L8.32917 11.6724L7.20117 12.8004L10.4012 16.0004L16.8012 9.60036L15.6732 8.46436Z",fill:"#00A963"})),SvgTips=et=>reactExports.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...et},reactExports.createElement("rect",{width:48,height:48,fill:"url(#pattern0)"}),reactExports.createElement("defs",null,reactExports.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:1,height:1},reactExports.createElement("use",{xlinkHref:"#image0",transform:"scale(0.0128205)"})),reactExports.createElement("image",{id:"image0",width:78,height:78,xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAYAAACOqiAdAAAACXBIWXMAAAsSAAALEgHS3X78AAAIxUlEQVR4nNVc7XHbOBBdefI/ugrMVBClAtMVRB1YqSBMBVYqCF1B5AqiVBCqgtAVmK7glAp4A+WttQFBEAABOPdmNJ6xKGL5sFjsF7Ho+55eAoumWhGR/CyJ6O2EKE9E1BFRi79NX9bt4KoMyEbcoqkUMWt8SiJ6ja8eBBlH/DWByS3wucI1vxSBRLRXn76sj4bfxn+e1MQtmkoRtSGi9/jXAx5SaUsz+IHfvVeYhLUg8jsI3A1+EBHJiFs0lSJrS0SXIEs9yC6VRgiN3oDEJ4xZpxgzOnEaYfcga5ZmBchQQIYbLGVF3nZw4ZwxYhG3aCq1ZGoYeEXYti/rbnBhRmgEKg3cxJrE2cRhiSjhPmJJVjGEWzSVuueqL+v14Ev/e60wqVewgZu5y/di8B9/gRqQ9rkv61XEZVlgF50N5bL0Za1WxCdsJi1kD0YwcbBlTNK72DYExEU16n1Z13Br1H1/4hmCEEQcltFXEFfanFAs5VCM3tcG2DYjlN1VKwN2+OuiqYLcFm/iMNAtEd0p+2OzFfDhOtuDxAbGajH2KPqyVtr2QW0cIeR5EYcB1A71oS/ranCBhr6s91gWsZexDVuMOWlr4SQHkedMnEaazyAVBCsH30QGxrjBzj66EiRCyXMiDkZUCfTJN5SB1h0yaZ0y/geM6QyNPCc5J4nDLKqN4B67UghOYdCcXcxBzgrOd9AYIO+zst8uclqJw46oZu8BxjQIiCDulNbN3GWNEE743ZxoBS6VcpDrKT/PShxIIziNc7GFQzu5qQSAl1cMc7DB5mI1SaPEQfWvYoQn9Hs2eXetHN2Takp4OkcvH302BBtwD+XKvLXZO2OsCtXnDKvVH/LFoqn4vlHs3aKplNuxhFMbU84t/NU3puU/pnG8CaQw5uqe6xhOMSZ4lWj51yKnN8BA4/BAjwjajaoKr7zJlaZOBRBfjrkv2F2VR3GtJy9MGqfIerKQpojdIZRK5l6kBmRvxzSKzi7Kg2nT+UPjhLZZo4OEOTiuISzx9yiKOFEqWvBLt9j47qc2Fayub7rW6cTtsKMUtpuJ61n7nIQwAZNQwfZdalUvgg0r4NwG1xEga42i0QGyOk2EaUPTiTuiRuBlbDGLO2iKc34fLg8H5bWtmIMHX4PkJVLzk5GMmJhbEF+N2bQxCFv3D8v3TJz40rj9Og6whZBHW34fD7PDcnQiwDDOLcLAUTuLZ+J7BxdsIO+/iNVP95PE7bFEZ/lDGKQeW/L4vsHysyZBbRBpe06Lm+ToEP3Mdo51fiRxvWQ0FYQdDSZNPAyTt7dpXgzoK/KCzjsHidg01eBrpKdmk0YowmASbqYyvhHwR9zOftwKvluyOqiwa59jNsrAjt4JW5YEWOoHnbjSJdU8E7yUUjzgKfOSwSFvdeKuQitKHtjY3I05wD13iWJWiQa+Jl2IYDsZcRjjrS28iYA9UkHRE6UCHZ6nvIBbQIk1To3xK2UToPAZo6aXtDFY/uUzcYkzHWUGU0AI11LXcFX0sXrF2jD4WgC+l6tAO1uCIDGOJjmxabhuHO1EyHlarq/44sHXw4tdXZWsvXCO6DzkcnnO4tXgXwZEaKjJlfAsTEoA+xdzQgtTIjMFWtGjmxKXuSYpJ3GUsg2CQ66xjExsZCEOO/ZDouIPY41icg50TNxgJ0qAGtWtFJX8AsmDpEkKgRNxHYcRKQEXJVXLFxeYcrhBJyW7EGFEylCFofyjjzFtnUhV5aq4XUqNo9ihiqngjFy/KursY0yUKBbdmTYFkwwzx2OOuguRg4tCnBIWaeaBPwVU7JDOIU90UnUmT1+0tDYRCeTwtOHN4TCXOPUgKKI84l7GjKxoailm5uZ2ov46ABRijWseF01VR9DyFWLVZ3ekHRPABSjzddAmVbcoTEuHgYcqsct6bxb4zen3tuSEkgHFlQ+wgXO7D54TvkzcKUHnq9LKyKNY+wUaULgWe5CiqdAB6Twurr1F+XHMHOhj7YSGf8Xy9VIUaOuViTgaW16GmxRor/oBTVOVH+8SnOjN8NGCDTpEfft8j4i53+BfP1TWx2P5MtFn4vDA310eAAM9YgZVP0U5s8gTElsGO7p4QUSRcA0yXGVfY8JO18uQi1PP1mUDkt9N2bGEiOIDwv4VLveDstzI1L9MK+1hAzZT3n2u9+BF42CJzxWSrlb5fOD4LIO68zNxSpPgf00SFxkdvyUIbZdE8eEGB9iWLTK0uRsaT93o0iTpicwtfJ5NxvR3izb+NcIZPpxgB5LOPWm/iV1mTIxyKuxSt/+mVtY9XrC12rrIwrFQrVw6otGQ/15OdSglkO00cXpjj4k4JeTPHA042ri6PVvhiA3WwDbGyRGeMhm7MclEHAV0ZkYQsEZbLMGva0FWI+0KO605yMNEtoiFBzvvWLFmC+K2GdoKiM8h0TvZEZlsxI5KsvElMSqYBuNYRo2jc/z5xaSmqQCNKjWieKk2sRqopyDM1fgrC2PE0dloJzl2x2DTmKgnjShOtBY5juMQHaNk6061EpdAoNLgoxmJ0n5bIi4O7k/2kNOpY3TMxsUQYIqo2mD81QtyewM5HIgn3ahgnvgt8FHSKCZxIUQZUInTviS4GJOMOJilL0jDTzr/wcRFIkqHIu4bnE4Wnt98vh5cHQmiMfrelIY3wcvGIeRRNzYRNWqjfKCd0US+b8EEjCdJc45IvDcHcRrEAVnYFz14ag5CSaOQFggMcAf3Ick79jmAaCWINJrjjojZekDR5H+hedqLe8HxeHDTDXaed3AVWmzlfzUQtLdwvK/nJDFinR9XC7uXzJCHQtOyKOfHxT6xcCeOePwbTiyUkxr0yuUYUpyRyRmV1y9FoOmMzNiHjCaJVQ1vPR+gjcnO6TWcypqEsOfxMpwDvMED8TnA32OliERqvRT3P+R4ZSBndoRrmJJEwoN22seEpTh9eqU1Y/NkmBIEaZ7nBc86L8VBBfx3qjP0lzjnvNWrYDnxYsRNQTTFvEQd1Q4i+g8ZJgkUOqumYwAAAABJRU5ErkJggg=="}))),SvgDistressThermometer=et=>reactExports.createElement("svg",{width:62,height:62,viewBox:"0 0 62 62",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M46.4134 56.7376C52.9064 52.8492 57.6898 46.6503 59.8047 39.3836C61.9197 32.1168 61.21 24.3192 57.8178 17.5537C54.4256 10.7882 48.6017 5.55478 41.5134 2.90251C34.425 0.250235 26.5962 0.375089 19.596 3.25204C12.5959 6.129 6.94176 11.5454 3.76704 18.4157C0.592313 25.2859 0.13159 33.1022 2.47722 40.2978C4.82284 47.4934 9.80147 53.5366 16.4152 57.216C23.0289 60.8954 30.7888 61.9391 38.1397 60.138",stroke:"#00A963",strokeWidth:.94,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M26.1912 30.0441L20.4639 24.3167L19.6804 23.5332C18.2882 22.1389 17.5068 20.2487 17.5083 18.2783C17.5098 16.3079 18.2939 14.4188 19.6882 13.0266C21.0825 11.6344 22.9728 10.853 24.9432 10.8545C26.9135 10.856 28.8026 11.6401 30.1949 13.0344L30.9784 13.8179L31.7619 13.0344C33.1754 11.7618 35.0236 11.0805 36.9249 11.1314C38.8263 11.1823 40.6354 11.9614 41.9788 13.3078C43.3223 14.6542 44.0973 16.4652 44.1439 18.3666C44.1905 20.268 43.5052 22.1148 42.2293 23.5254L41.4458 24.3089L36.643 29.1039",stroke:"#00A963",strokeWidth:.94,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M23.7705 30.3026V35.787C23.7711 36.2981 23.9739 36.7882 24.3346 37.1503L38.1398 50.8615V60.1537",stroke:"#00A963",strokeWidth:.94,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M38.4921 38.5918C38.4921 34.2983 36.6665 30.1379 33.3053 27.9755L32.9136 20.2737C32.9115 19.419 32.5705 18.5999 31.9654 17.9963C31.3602 17.3926 30.5404 17.0536 29.6856 17.0536C29.1875 17.07 28.7157 17.281 28.3714 17.6413C28.0272 18.0017 27.838 18.4827 27.8444 18.981V35.8418",stroke:"#00A963",strokeWidth:.94,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M40.3804 28.2968C43.0051 30.0362 45.6219 33.6716 45.8648 36.3198L50.0722 40.7622",stroke:"#00A963",strokeWidth:.94,strokeLinecap:"round",strokeLinejoin:"round"})),SvgRegForm=et=>reactExports.createElement("svg",{width:60,height:60,viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M47.4941 26.715L34.4455 37.4594L32.6005 37.7432L33.235 35.99L56.502 16.8471C59.8568 23.5867 60.521 31.3503 58.3599 38.5617C56.1987 45.7731 51.3741 51.8919 44.8658 55.6756C38.3574 59.4592 30.653 60.6243 23.3168 58.9342C15.9807 57.244 9.56272 52.8254 5.36594 46.5754C1.16917 40.3254 -0.491825 32.7125 0.720209 25.2824C1.93224 17.8523 5.92645 11.1619 11.8919 6.56964C17.8573 1.97735 25.3468 -0.172629 32.8397 0.556227C40.3327 1.28508 47.2674 4.83814 52.236 10.494",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M40.8068 34.5206V46.0331H17.8403V13.9669H40.8068V27.5664",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M22.1982 19.6357H37",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M22.1982 23.5341H37",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M22.1982 27.4246H37",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M22.1982 31.3232H29.7953",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"})),SvgHealthAssesment=et=>reactExports.createElement("svg",{width:62,height:62,viewBox:"0 0 62 62",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M1 30.9816C1.00474 23.2691 3.97959 15.8547 9.30691 10.2778C14.6342 4.70088 21.9047 1.38991 29.6089 1.0323C37.3131 0.674684 44.8591 3.29791 50.6801 8.35734C56.5011 13.4168 60.15 20.5237 60.8692 28.2026C61.5884 35.8814 59.3226 43.5423 54.5422 49.5946C49.7618 55.6469 42.8342 59.6257 35.1976 60.7048C27.561 61.784 19.8021 59.8806 13.5319 55.3898C7.26169 50.8991 2.96185 44.166 1.52513 36.5886",stroke:"#00A963",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M39.1227 36.707L48.6597 26.6618C48.8291 26.4868 48.99 26.3005 49.1425 26.1028V26.0435C49.6043 25.4151 49.9226 24.693 50.0748 23.9281C50.227 23.1632 50.2094 22.3742 50.0233 21.6169C49.8372 20.8596 49.487 20.1523 48.9976 19.5451C48.5082 18.9379 47.8914 18.4456 47.1909 18.1029C46.4903 17.7602 45.7231 17.5754 44.9433 17.5618C44.1636 17.5481 43.3903 17.7057 42.6782 18.0236C41.966 18.3415 41.3323 18.8119 40.8219 19.4015C40.3115 19.9911 39.9367 20.6856 39.7241 21.436C39.5223 20.6738 39.1538 19.9659 38.6452 19.3634C38.1367 18.7609 37.5007 18.2788 36.7833 17.9518C36.0658 17.6249 35.2847 17.4612 34.4964 17.4727C33.708 17.4842 32.932 17.6706 32.2244 18.0183C31.5168 18.366 30.8952 18.8665 30.4044 19.4836C29.9137 20.1007 29.566 20.819 29.3865 21.5867C29.207 22.3545 29.2001 23.1525 29.3664 23.9232C29.5327 24.6939 29.868 25.4181 30.348 26.0435V26.0435L30.4243 26.1282C30.4954 26.2255 30.5717 26.3188 30.6529 26.4077L39.1227 36.707",stroke:"#00A963",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M1.52539 36.5212H10.6897L13.2984 28.9153L18.1177 45.2535L22.378 22.5376L24.8258 36.3179L39.0889 36.6059",stroke:"#00A963",strokeLinecap:"round",strokeLinejoin:"round"})),SvgC19Icon=et=>reactExports.createElement("svg",{width:61,height:61,viewBox:"0 0 61 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:30.8627,cy:30.7728,r:29.4008,stroke:"#27B67B"}),reactExports.createElement("path",{d:"M18.5201 24.7564C19.6267 24.7564 20.6467 24.9964 21.5801 25.4764C22.5134 25.9564 23.2734 26.6098 23.8601 27.4364L23.0801 28.0564C22.5601 27.3231 21.9067 26.7498 21.1201 26.3364C20.3467 25.9231 19.4867 25.7164 18.5401 25.7164C17.4734 25.7164 16.5067 25.9698 15.6401 26.4764C14.7734 26.9831 14.0934 27.6831 13.6001 28.5764C13.1067 29.4698 12.8601 30.4564 12.8601 31.5364C12.8601 32.6298 13.1067 33.6231 13.6001 34.5164C14.0934 35.3964 14.7734 36.0964 15.6401 36.6164C16.5067 37.1231 17.4734 37.3764 18.5401 37.3764C19.4867 37.3764 20.3467 37.1764 21.1201 36.7764C21.9067 36.3631 22.5601 35.7898 23.0801 35.0564L23.8601 35.6764C23.2734 36.5031 22.5134 37.1564 21.5801 37.6364C20.6467 38.1164 19.6267 38.3564 18.5201 38.3564C17.2801 38.3564 16.1401 38.0564 15.1001 37.4564C14.0734 36.8564 13.2601 36.0364 12.6601 34.9964C12.0601 33.9564 11.7601 32.8098 11.7601 31.5564C11.7601 30.2898 12.0601 29.1431 12.6601 28.1164C13.2601 27.0764 14.0734 26.2564 15.1001 25.6564C16.1401 25.0564 17.2801 24.7564 18.5201 24.7564ZM30.2477 32.3764H25.6877V31.4964H30.2477V32.3764ZM36.0726 24.9564V38.1564H35.0326V26.1364L31.9726 27.1364L31.7326 26.2364L35.6526 24.9564H36.0726ZM43.6796 24.7564C44.4796 24.7564 45.2129 24.9498 45.8796 25.3364C46.5463 25.7098 47.0663 26.2298 47.4396 26.8964C47.8263 27.5498 48.0196 28.2764 48.0196 29.0764C48.0196 29.5964 47.9396 30.0831 47.7796 30.5364C47.6196 30.9764 47.4329 31.3631 47.2196 31.6964C47.0196 32.0298 46.6729 32.5631 46.1796 33.2964L42.8996 38.1564H41.6796L45.2796 32.8964C44.8263 33.1631 44.2663 33.2964 43.5996 33.2964C42.8129 33.2964 42.0929 33.1098 41.4396 32.7364C40.7996 32.3631 40.2863 31.8564 39.8996 31.2164C39.5263 30.5631 39.3396 29.8431 39.3396 29.0564C39.3396 28.2564 39.5263 27.5298 39.8996 26.8764C40.2863 26.2231 40.8129 25.7098 41.4796 25.3364C42.1463 24.9498 42.8796 24.7564 43.6796 24.7564ZM43.6796 32.3964C44.2929 32.3964 44.8529 32.2498 45.3596 31.9564C45.8663 31.6631 46.2596 31.2631 46.5396 30.7564C46.8329 30.2364 46.9796 29.6631 46.9796 29.0364C46.9796 28.4098 46.8329 27.8431 46.5396 27.3364C46.2596 26.8164 45.8663 26.4164 45.3596 26.1364C44.8529 25.8431 44.2929 25.6964 43.6796 25.6964C43.0663 25.6964 42.5063 25.8431 41.9996 26.1364C41.4929 26.4164 41.0929 26.8164 40.7996 27.3364C40.5063 27.8431 40.3596 28.4098 40.3596 29.0364C40.3596 29.6631 40.5063 30.2364 40.7996 30.7564C41.0929 31.2631 41.4929 31.6631 41.9996 31.9564C42.5063 32.2498 43.0663 32.3964 43.6796 32.3964Z",fill:"#00A963"})),SvgSecurityIcon=et=>reactExports.createElement("svg",{width:80,height:80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M39.9944 79.4435C29.9932 79.441 20.3666 75.6389 13.0629 68.8067C5.75913 61.9746 1.32389 52.6227 0.654819 42.644C-0.0142515 32.6653 3.13283 22.805 9.45909 15.059C15.7854 7.31298 24.8182 2.25975 34.7295 0.922096C44.6408 -0.415557 54.6901 2.06228 62.8435 7.8541C70.9968 13.6459 76.6452 22.3191 78.6454 32.1182C80.6456 41.9172 78.8482 52.1103 73.617 60.6342C68.3858 69.1581 60.1115 75.3761 50.4688 78.0298",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M39.9944 64.5612C19.1122 56.9809 19.4239 40.362 19.7133 25.6799C19.7133 24.8006 19.7133 23.9435 19.7133 23.1086C27.8613 22.7635 34.3731 20.2924 39.9498 15.4392C45.5154 20.2924 52.0495 22.7635 60.1975 23.1086C60.1975 23.9435 60.1975 24.8006 60.1975 25.6799C60.5648 40.3509 60.8765 56.9809 39.9944 64.5612Z",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M46.9958 32.6256L37.1781 42.4434L32.9928 38.258C32.6045 37.8772 32.0809 37.6662 31.5372 37.6714C30.9934 37.6766 30.4739 37.8977 30.0931 38.2859C29.7122 38.6741 29.5012 39.1977 29.5064 39.7415C29.5117 40.2853 29.7327 40.8047 30.1209 41.1856L35.7422 46.7512C36.1271 47.1285 36.6446 47.3398 37.1837 47.3398C37.7227 47.3398 38.2402 47.1285 38.6251 46.7512L49.8788 35.5086C50.2611 35.1263 50.4759 34.6078 50.4759 34.0671C50.4759 33.5265 50.2611 33.008 49.8788 32.6256C49.4965 32.2433 48.978 32.0286 48.4373 32.0286C47.8966 32.0286 47.3781 32.2433 46.9958 32.6256V32.6256Z",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M39.9944 64.5609V79.3988",stroke:"#27B67B",strokeLinecap:"round",strokeLinejoin:"round"})),SvgInformationIcon=et=>reactExports.createElement("svg",{width:80,height:80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M39.9944 57.1026V27.3711C34.374 24.4348 28.1248 22.9069 21.7837 22.9186V52.639C28.1263 52.6258 34.3767 54.1578 39.9944 57.1026Z",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M39.9946 57.0911H17.4539V25.9126H18.9677",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M39.9946 57.1026V27.3711C45.6189 24.4348 51.8717 22.9069 58.2164 22.9186V52.639C51.8702 52.6258 45.6162 54.1577 39.9946 57.1026V57.1026Z",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M39.9946 57.0911H62.5465V25.9126H61.0326",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M59.8755 57.0921H75.5594C79.9467 48.0752 80.7461 37.7287 77.796 28.1448C74.8458 18.561 68.3663 10.4551 59.6676 5.46635C50.969 0.477624 40.7005 -1.02162 30.9386 1.27181C21.1768 3.56523 12.6501 9.48017 7.08296 17.8205C1.51582 26.1607 -0.676346 36.304 0.949792 46.1989C2.57593 56.0938 7.89901 65.0019 15.8426 71.1219C23.7861 77.2418 33.7573 80.1168 43.7397 79.1654C53.7221 78.2141 62.9708 73.5073 69.6153 65.9971",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"})),SvgMobileDeviceIcon=et=>reactExports.createElement("svg",{width:80,height:80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M39.9849 79.9999C34.7309 80.0092 29.527 78.9795 24.6725 76.9702C19.818 74.9608 15.4089 72.0115 11.6988 68.2919L11.3556 67.9592L28.2445 50.9476V52.4243L12.7283 67.9488C19.8807 74.8909 29.4225 78.8274 39.3899 78.9482C49.3572 79.0691 58.9917 75.3649 66.3103 68.5982C73.6289 61.8315 78.0748 52.5171 78.7329 42.5721C79.3909 32.6271 76.2112 22.8083 69.848 15.1365C63.4848 7.46465 54.4224 2.52362 44.5261 1.33035C34.6297 0.137077 24.6523 2.78235 16.6475 8.72173C8.64269 14.6611 3.21954 23.4427 1.49423 33.259C-0.231087 43.0753 1.87272 53.1794 7.37265 61.4917L6.5615 62.022C1.51567 54.3204 -0.727731 45.118 0.207645 35.9586C1.14302 26.7992 5.20027 18.2401 11.6988 11.717C19.2021 4.21475 29.3788 0 39.9901 0C50.6014 0 60.778 4.21475 68.2814 11.717C75.7847 19.2193 80 29.3946 80 40.0045C80 50.6143 75.7847 60.7896 68.2814 68.2919C64.5693 72.0118 60.1583 74.9613 55.3022 76.9706C50.446 78.9799 45.2404 80.0094 39.9849 79.9999Z",fill:"#27B67B"}),reactExports.createElement("path",{d:"M52.3392 62.4896H27.6409V18.9849H52.3392V62.4896ZM28.608 61.5122H51.3721V19.9207H28.608V61.5122Z",fill:"#27B67B"}),reactExports.createElement("path",{d:"M51.7362 56.2302H28.2441V57.1972H51.7362V56.2302Z",fill:"#27B67B"}),reactExports.createElement("path",{d:"M51.7362 23.2065H28.2441V24.1735H51.7362V23.2065Z",fill:"#27B67B"}),reactExports.createElement("path",{d:"M39.9847 58.5903C40.064 58.5898 40.1426 58.6051 40.2158 58.6355C40.2891 58.6659 40.3555 58.7106 40.4111 58.7671C40.4694 58.8226 40.5159 58.8891 40.5481 58.9629C40.5802 59.0366 40.5973 59.116 40.5983 59.1964C40.5992 59.2769 40.5841 59.3567 40.5538 59.4312C40.5235 59.5057 40.4785 59.5734 40.4216 59.6302C40.3648 59.6871 40.2971 59.732 40.2226 59.7624C40.1481 59.7927 40.0682 59.8078 39.9878 59.8068C39.9074 59.8058 39.8279 59.7888 39.7542 59.7567C39.6804 59.7245 39.6139 59.678 39.5584 59.6197C39.4704 59.536 39.4098 59.4277 39.3844 59.3089C39.359 59.1901 39.3701 59.0665 39.4162 58.9541C39.4623 58.8418 39.5412 58.7459 39.6426 58.6792C39.7441 58.6124 39.8633 58.5778 39.9847 58.5799",fill:"#27B67B"}),reactExports.createElement("path",{d:"M39.9847 58.5905C40.064 58.59 40.1426 58.6054 40.2158 58.6357C40.289 58.6661 40.3554 58.7108 40.4111 58.7673C40.4709 58.8208 40.5186 58.8866 40.5509 58.9602C40.5832 59.0337 40.5994 59.1133 40.5983 59.1936C40.5983 59.2753 40.5817 59.3561 40.5495 59.4312C40.5173 59.5063 40.4702 59.574 40.4111 59.6303C40.298 59.7434 40.1446 59.8068 39.9847 59.8068C39.8248 59.8068 39.6714 59.7434 39.5583 59.6303C39.4455 59.5129 39.3822 59.3565 39.3815 59.1936C39.3815 59.0337 39.4451 58.8803 39.5582 58.7672C39.6713 58.6541 39.8247 58.5905 39.9847 58.5905ZM39.9847 57.6235C39.6734 57.6226 39.3689 57.7142 39.1098 57.8866C38.8507 58.0591 38.6487 58.3047 38.5295 58.5921C38.4102 58.8796 38.3791 59.196 38.4401 59.5012C38.5011 59.8064 38.6514 60.0866 38.872 60.3062C39.0172 60.454 39.1903 60.5713 39.3814 60.6514C39.5724 60.7316 39.7775 60.7728 39.9847 60.7728C40.1919 60.7728 40.397 60.7316 40.588 60.6514C40.7791 60.5713 40.9522 60.454 41.0974 60.3062C41.318 60.0866 41.4683 59.8064 41.5293 59.5012C41.5903 59.196 41.5592 58.8796 41.4399 58.5921C41.3207 58.3047 41.1187 58.0591 40.8596 57.8866C40.6005 57.7142 40.296 57.6226 39.9847 57.6235Z",fill:"#27B67B"}),reactExports.createElement("path",{d:"M39.9847 20.9814C40.0644 20.9783 40.1437 20.9925 40.2173 21.023C40.2909 21.0535 40.357 21.0996 40.4111 21.1581C40.4697 21.2126 40.5164 21.2786 40.5484 21.352C40.5803 21.4253 40.5968 21.5044 40.5968 21.5845C40.5968 21.6645 40.5803 21.7436 40.5484 21.8169C40.5164 21.8903 40.4697 21.9563 40.4111 22.0108C40.298 22.1238 40.1446 22.1873 39.9847 22.1873C39.8248 22.1873 39.6715 22.1238 39.5584 22.0108C39.4453 21.8977 39.3818 21.7443 39.3818 21.5845C39.3818 21.4246 39.4453 21.2712 39.5584 21.1581C39.6124 21.0996 39.6786 21.0535 39.7522 21.023C39.8258 20.9925 39.9051 20.9783 39.9847 20.9814Z",fill:"#27B67B"})),SvgGenesisCareLogoMobileGreenText=et=>reactExports.createElement("svg",{width:48,height:63,viewBox:"0 0 48 63",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M41.7049 0C35.6066 0 30.3934 3.71739 28.2295 9C25.9672 3.71739 20.7541 0 14.6557 0C6.59016 0 0 6.55435 0 14.5761C0 21.6196 5.01639 27.4891 11.7049 28.8587V29.1522H3.44262C1.27869 31.6957 0 35.0217 0 38.5435C0 46.5652 6.59016 53.1196 14.6557 53.1196C22.7213 53.1196 29.3115 46.5652 29.3115 38.5435C29.3115 33.5543 26.8525 29.1522 23.0164 26.5109C25.2787 24.9457 27.1475 22.6957 28.2295 20.1522C30.3934 25.4348 35.7049 29.1522 41.7049 29.1522C43.9672 29.1522 46.1311 28.663 48 27.7826V1.36957C46.0328 0.48913 43.9672 0 41.7049 0Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M22.8196 60.4566L22.1311 60.1631C21.7377 59.9675 21.6393 59.8697 21.6393 59.674C21.6393 59.4784 21.836 59.2827 22.1311 59.2827C22.5246 59.2827 22.8196 59.4784 23.2131 59.674L23.8033 58.9892C23.4098 58.5979 22.918 58.3044 22.2295 58.3044C21.3442 58.3044 20.6557 58.7936 20.6557 59.5762C20.6557 60.261 21.1475 60.5544 21.541 60.7501L22.2295 61.0436C22.6229 61.2392 22.7213 61.3371 22.7213 61.5327C22.7213 61.7284 22.5246 61.924 22.1311 61.924C21.6393 61.924 21.1475 61.6305 20.8524 61.3371L20.2623 62.0218C20.6557 62.6088 21.3442 62.9023 22.0328 62.9023C23.0164 62.9023 23.7049 62.4131 23.7049 61.5327C23.8033 60.9457 23.3114 60.6523 22.8196 60.4566Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M39.2459 58.9891C38.8524 58.5978 38.459 58.5 37.8688 58.5C36.5901 58.5 35.7049 59.4783 35.7049 60.75C35.7049 62.0217 36.4918 63 37.8688 63C38.5574 63 38.9508 62.8044 39.3442 62.3152V62.9022H40.3278V58.5978H39.2459V58.9891ZM38.0656 62.0217C37.377 62.0217 36.7869 61.5326 36.7869 60.6522C36.7869 59.8696 37.2787 59.2826 38.0656 59.2826C38.7541 59.2826 39.2459 59.8696 39.2459 60.6522C39.2459 61.4348 38.7541 62.0217 38.0656 62.0217Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M24.8852 56.4456C24.4918 56.4456 24.1967 56.739 24.1967 57.1303C24.1967 57.5216 24.4918 57.8151 24.8852 57.8151C25.2787 57.8151 25.5738 57.5216 25.5738 57.1303C25.5738 56.739 25.2787 56.4456 24.8852 56.4456Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M25.3771 58.5H24.2951V62.8043H25.3771V58.5Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M13.5738 58.4021C13.082 58.4021 12.6885 58.5978 12.2951 58.8912V58.4999H11.3115V62.8043H12.3934V60.2608C12.3934 59.6738 12.7869 59.3804 13.2787 59.3804C13.8688 59.3804 14.1639 59.7717 14.1639 60.2608V62.8043H15.2459V60.0651C15.2459 59.1847 14.6557 58.4021 13.5738 58.4021Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M8.75412 58.4021C7.57379 58.4021 6.49182 59.3804 6.49182 60.6521C6.49182 62.0217 7.47543 62.9021 8.85248 62.9021C9.24592 62.9021 10.0328 62.8043 10.623 62.2173L10.1312 61.6304C9.83608 61.9238 9.34428 62.1195 8.95084 62.1195C8.26231 62.1195 7.77051 61.7282 7.57379 61.1412H10.7213C10.8197 61.0434 10.8197 60.7499 10.8197 60.5543C10.7213 59.2825 9.93444 58.4021 8.75412 58.4021ZM7.57379 60.2608C7.67215 59.6738 8.16395 59.2825 8.75412 59.2825C9.34428 59.2825 9.73772 59.6738 9.73772 60.2608H7.57379Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M18 58.4021C16.8197 58.4021 15.7377 59.3804 15.7377 60.6521C15.7377 62.0217 16.7213 62.9021 18.0984 62.9021C18.4918 62.9021 19.2787 62.8043 19.8689 62.2173L19.3771 61.6304C19.082 61.9238 18.5902 62.1195 18.1967 62.1195C17.5082 62.1195 17.0164 61.7282 16.8197 61.1412H19.9672C20.0656 61.0434 20.0656 60.7499 20.0656 60.5543C20.0656 59.2825 19.2787 58.4021 18 58.4021ZM16.8197 60.2608C16.9181 59.6738 17.4099 59.2825 18 59.2825C18.5902 59.2825 18.9836 59.6738 18.9836 60.2608H16.8197Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M48 60.4565C48 59.3804 47.2131 58.5 45.9344 58.5C44.7541 58.5 43.6721 59.4783 43.6721 60.75C43.6721 62.1196 44.6557 63 46.0328 63C46.4262 63 47.2131 62.9022 47.8033 62.3152L47.4098 61.6304C47.1147 61.9239 46.6229 62.1196 46.2295 62.1196C45.541 62.1196 45.0492 61.7283 44.8524 61.1413H48C48 60.9457 48 60.75 48 60.4565ZM44.8524 60.2609C44.9508 59.6739 45.4426 59.2826 46.0328 59.2826C46.6229 59.2826 47.0164 59.6739 47.0164 60.2609H44.8524Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M28.4262 60.4566L27.7377 60.1631C27.3442 59.9675 27.2459 59.8697 27.2459 59.674C27.2459 59.4784 27.4426 59.2827 27.7377 59.2827C28.1311 59.2827 28.4262 59.4784 28.8197 59.674L29.4098 58.9892C29.0164 58.5979 28.5246 58.3044 27.836 58.3044C26.9508 58.3044 26.2623 58.7936 26.2623 59.5762C26.2623 60.261 26.7541 60.5544 27.1475 60.7501L27.836 61.0436C28.2295 61.2392 28.3279 61.3371 28.3279 61.5327C28.3279 61.7284 28.1311 61.924 27.7377 61.924C27.2459 61.924 26.7541 61.6305 26.459 61.3371L25.8688 62.0218C26.2623 62.6088 26.9508 62.9023 27.6393 62.9023C28.6229 62.9023 29.3115 62.4131 29.3115 61.5327C29.4098 60.9457 28.918 60.6523 28.4262 60.4566Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M3.14754 60.6521H4.91803V61.2391C4.52459 61.7282 3.83607 61.9239 3.2459 61.9239C2.06557 61.9239 1.18033 61.0434 1.18033 59.8695C1.18033 58.6956 1.96721 57.8152 3.14754 57.8152C3.83607 57.8152 4.32787 58.1087 4.81967 58.6956L5.60656 58.1087C5.01639 57.2282 4.13115 56.8369 3.14754 56.8369C1.47541 56.8369 0 58.1087 0 59.8695C0 61.6304 1.37705 62.9021 3.14754 62.9021C4.22951 62.9021 5.31148 62.3152 5.90164 61.3369V59.6739H3.14754V60.6521Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M32.9508 57.9131C33.6393 57.9131 34.2295 58.2066 34.7213 58.8913L35.5082 58.3044C34.918 57.4239 34.0328 56.9348 32.9508 56.9348C31.1803 56.9348 29.8033 58.3044 29.8033 59.9674C29.8033 61.6305 31.082 63 32.9508 63C34.0328 63 34.918 62.5109 35.5082 61.6305L34.7213 61.0435C34.3279 61.6305 33.7377 62.0218 32.9508 62.0218C31.7705 62.0218 30.9836 61.1413 30.9836 59.9674C30.8853 58.8913 31.6721 57.9131 32.9508 57.9131Z",fill:"#00BF6F"}),reactExports.createElement("path",{d:"M42.0984 59.0869V58.4999H41.1147V62.8043H42.1967V60.6521C42.1967 59.7717 42.7869 59.2825 43.7705 59.4782V58.4999C43.6721 58.4999 43.5738 58.4021 43.377 58.4021C42.7869 58.4999 42.3934 58.6956 42.0984 59.0869Z",fill:"#00BF6F"})),SvgGenesisCareLogoDesktopWhiteText=et=>reactExports.createElement("svg",{width:400,height:76,viewBox:"0 0 400 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("g",{clipPath:"url(#clip0)"},reactExports.createElement("path",{d:"M59.9381 0C55.6905 0 51.9149 1.39425 48.1393 3.25324C44.8356 5.57698 42.0039 8.83022 40.588 12.5482C37.2843 5.11223 29.7331 0 21.2379 0C9.91103 0 0.471954 8.83022 0 19.9842C0 20.4489 0 20.4489 0 20.9137C0 27.8849 3.77563 33.9266 8.96712 37.6446C11.7988 39.5036 15.5745 40.8979 19.3501 41.3626H4.71954C1.41586 45.0806 0 49.7281 0 54.8403C0 66.459 9.43907 75.754 21.2379 75.754C33.0367 75.754 42.4758 66.459 42.4758 54.8403C42.0039 47.8691 38.7002 41.8274 33.0367 37.6446C36.3404 35.7856 38.7002 32.5324 40.588 29.2792C43.8917 36.2504 50.971 41.8274 59.9381 41.8274C62.7698 41.8274 65.1296 41.3626 67.4893 40.4331V1.39425C64.6576 0.464749 62.2979 0 59.9381 0Z",fill:"white"}),reactExports.createElement("path",{d:"M224.841 57.0914L220.651 55.1834C218.323 54.2294 217.392 53.2754 217.392 52.3214C217.392 50.8903 218.789 49.9363 220.651 49.9363C222.979 49.9363 225.306 50.8903 227.634 52.7984L231.358 48.0283C228.565 45.1663 225.306 43.2583 221.116 43.2583C214.599 43.2583 210.409 46.5973 210.409 52.3214C210.409 57.5684 214.133 59.4764 216.461 60.4304L221.116 62.3384C223.91 63.2924 224.375 64.2464 224.375 65.6774C224.375 66.6314 223.444 68.0624 220.651 68.0624C217.858 68.0624 214.599 66.1544 212.271 63.7694L208.547 68.5395C210.875 72.3555 215.53 74.2635 220.651 74.2635C227.634 74.2635 231.824 70.4475 231.824 64.7234C231.824 61.8614 229.496 58.9994 224.841 57.0914Z",fill:"white"}),reactExports.createElement("path",{d:"M264.413 57.0914L260.223 55.1834C257.895 54.2294 256.964 53.2754 256.964 52.3214C256.964 50.8903 258.361 49.9363 260.223 49.9363C262.551 49.9363 264.878 50.8903 267.206 52.7984L270.93 48.0283C268.137 45.1663 264.878 43.2583 260.689 43.2583C254.171 43.2583 249.981 46.5973 249.981 52.3214C249.981 57.5684 253.706 59.4764 256.033 60.4304L260.689 62.3384C263.482 63.2924 263.947 64.2464 263.947 65.6774C263.947 66.6314 263.016 68.0624 260.223 68.0624C257.43 68.0624 254.171 66.1544 251.843 63.7694L248.119 68.5395C250.447 72.3555 255.102 74.2635 260.223 74.2635C267.206 74.2635 271.396 70.4475 271.396 64.7234C271.396 61.8614 269.068 58.9994 264.413 57.0914Z",fill:"white"}),reactExports.createElement("path",{d:"M338.433 47.0741C336.105 44.6891 333.312 43.7351 329.588 43.7351C321.674 43.7351 315.156 50.4131 315.156 59.4762C315.156 68.5393 321.208 75.2173 329.122 75.2173C333.778 75.2173 336.571 73.7863 338.899 70.9243V74.2633H345.416V44.2121H337.968V47.0741H338.433ZM330.985 68.0623C326.329 68.0623 323.07 64.2462 323.07 58.9992C323.07 53.7522 326.329 49.9361 330.985 49.9361C335.64 49.9361 338.899 53.7522 338.899 58.9992C338.899 64.7232 335.64 68.0623 330.985 68.0623Z",fill:"white"}),reactExports.createElement("path",{d:"M239.74 30.3792C236.947 30.3792 235.085 32.2872 235.085 35.1492C235.085 38.0112 236.947 39.9192 239.74 39.9192C242.534 39.9192 244.396 38.0112 244.396 35.1492C244.396 32.2872 242.534 30.3792 239.74 30.3792Z",fill:"white"}),reactExports.createElement("path",{d:"M243.461 44.2125H236.013V74.2637H243.461V44.2125Z",fill:"white"}),reactExports.createElement("path",{d:"M161.53 43.7351C158.271 43.7351 155.478 44.6891 153.15 47.0741V44.2121H146.633V74.2633H154.081V56.6142C154.081 52.7982 156.409 50.4131 160.133 50.4131C163.392 50.4131 165.72 52.7982 165.72 56.6142V74.2633H173.168V55.6602C172.703 48.5051 168.048 43.7351 161.53 43.7351Z",fill:"white"}),reactExports.createElement("path",{d:"M128.011 43.7351C119.632 43.7351 113.114 50.4131 113.114 59.4762C113.114 68.5393 119.632 75.2173 128.942 75.2173C132.667 75.2173 137.322 73.7863 140.581 70.4473L137.322 65.2002C134.994 67.1082 131.736 68.5393 129.408 68.5393C124.753 68.5393 121.959 66.1542 120.563 61.8612H141.512C141.978 60.9072 141.978 59.4762 141.978 57.5682C141.512 49.4591 135.926 43.7351 128.011 43.7351ZM120.563 56.1372C121.494 52.3212 124.287 49.9361 128.011 49.9361C131.736 49.9361 134.529 52.3212 134.529 56.1372H120.563Z",fill:"white"}),reactExports.createElement("path",{d:"M192.257 43.7351C183.877 43.7351 177.359 50.4131 177.359 59.4762C177.359 68.5393 183.877 75.2173 193.188 75.2173C196.912 75.2173 201.567 73.7863 204.826 70.4473L201.567 65.2002C199.24 67.1082 195.981 68.5393 193.653 68.5393C188.998 68.5393 186.205 66.1542 184.808 61.8612H205.757C206.223 60.9072 206.223 59.4762 206.223 57.5682C205.757 49.4591 200.171 43.7351 192.257 43.7351ZM184.342 56.1372C185.273 52.3212 188.067 49.9361 191.791 49.9361C195.515 49.9361 198.308 52.3212 198.308 56.1372H184.342Z",fill:"white"}),reactExports.createElement("path",{d:"M399.882 57.5682C399.882 49.4591 394.296 43.7351 386.382 43.7351C378.002 43.7351 371.484 50.4131 371.484 59.4762C371.484 68.5393 378.002 75.2173 387.313 75.2173C391.037 75.2173 395.692 73.7863 398.951 70.4473L395.692 65.2002C393.365 67.1082 390.106 68.5393 387.778 68.5393C383.123 68.5393 380.33 66.1542 378.933 61.8612H399.882C399.417 60.9072 399.882 59.4762 399.882 57.5682ZM378.467 56.1372C379.399 52.3212 382.192 49.9361 385.916 49.9361C389.64 49.9361 392.434 52.3212 392.434 56.1372H378.467Z",fill:"white"}),reactExports.createElement("path",{d:"M358.917 48.0281V44.2121H352.399V74.2633H359.848V59.4762C359.848 56.6142 360.779 54.7062 362.176 53.2752C364.038 51.8442 366.831 51.3672 369.624 51.8442V44.2121C369.159 44.2121 368.228 43.7351 366.831 43.7351C363.572 44.2121 360.779 45.1661 358.917 48.0281Z",fill:"white"}),reactExports.createElement("path",{d:"M89.8359 58.9994H101.009V62.8155C98.6811 65.6775 94.4912 67.5855 90.3014 67.5855C82.3873 67.5855 76.8008 61.8615 76.8008 53.7524C76.8008 45.6434 82.3873 39.9193 89.8359 39.9193C94.0257 39.9193 97.2845 41.8273 100.543 46.1204L106.13 41.8273C102.405 36.1033 96.3534 32.7643 89.8359 32.7643C78.1975 32.7643 68.8867 41.8273 68.8867 53.2754C68.8867 65.2005 78.1975 74.2635 89.8359 74.2635C97.75 74.2635 104.268 70.4475 107.992 63.2925V51.3674H89.3703V58.9994H89.8359Z",fill:"white"}),reactExports.createElement("path",{d:"M295.602 68.0624C288.154 68.0624 282.567 62.3383 282.567 54.2293C282.567 46.5972 288.154 40.3962 295.602 40.3962C300.258 40.3962 303.517 42.7812 307.241 47.0742L312.827 42.7812C309.103 36.5802 303.051 33.2411 295.602 33.2411C283.964 33.2411 274.653 42.3042 274.653 53.7523C274.653 65.6773 283.964 74.2634 295.602 74.2634C303.051 74.2634 309.103 70.9244 312.827 64.7233L307.241 60.4303C304.448 65.6773 300.258 68.0624 295.602 68.0624Z",fill:"white"})),reactExports.createElement("defs",null,reactExports.createElement("clipPath",{id:"clip0"},reactExports.createElement("path",{d:"M0 0H400V75.8465H0V0Z",fill:"white"})))),SvgHorizonGreenLogo=et=>reactExports.createElement("svg",{width:144,height:26,viewBox:"0 0 144 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("g",{clipPath:"url(#clip0)"},reactExports.createElement("path",{opacity:.9,d:"M67.6738 10.1696H70.4654V15.8419H77.2963V10.1696H80.0878V24.7942H77.2963V18.3453H70.4563V24.7942H67.6738V10.1696ZM88.2903 25.0401C87.248 25.0498 86.2212 24.7894 85.3114 24.2845C84.4244 23.7888 83.6862 23.0679 83.1725 22.1957C82.6588 21.3235 82.3881 20.3315 82.3881 19.3212C82.3881 18.311 82.6588 17.3189 83.1725 16.4467C83.6862 15.5746 84.4244 14.8536 85.3114 14.3579C86.2178 13.8624 87.2358 13.6025 88.2707 13.6025C89.3055 13.6025 90.3235 13.8624 91.2299 14.3579C92.1181 14.8401 92.8583 15.5518 93.3719 16.4176C93.9092 17.2919 94.1877 18.2987 94.1755 19.3227C94.1858 20.338 93.9073 21.3356 93.3719 22.2009C92.8574 23.0691 92.1218 23.7877 91.239 24.2845C90.3376 24.7911 89.3171 25.0518 88.2812 25.0401H88.2903ZM88.2903 22.4917C88.6946 22.4997 89.0961 22.4239 89.4691 22.269C89.8421 22.1141 90.1784 21.8836 90.4565 21.5923C90.7445 21.291 90.9696 20.9361 91.1189 20.5482C91.2682 20.1602 91.3388 19.7468 91.3266 19.3317C91.3401 18.9133 91.2702 18.4963 91.1209 18.1048C90.9716 17.7133 90.7458 17.3548 90.4565 17.0502C90.1894 16.7486 89.8589 16.5088 89.4882 16.3477C89.1176 16.1866 88.7159 16.1081 88.3114 16.1178C87.9002 16.1047 87.4909 16.1781 87.1103 16.3331C86.7297 16.4882 86.3864 16.7213 86.103 17.0172C85.5269 17.6459 85.2221 18.4736 85.254 19.3227C85.2356 19.7399 85.3013 20.1566 85.447 20.5483C85.5928 20.9401 85.8158 21.299 86.103 21.6043C86.3849 21.8927 86.724 22.1199 87.099 22.2716C87.4739 22.4234 87.8765 22.4962 88.2812 22.4857L88.2903 22.4917ZM102.106 13.7373C102.423 13.7322 102.739 13.7767 103.043 13.8692V16.3066H102.263C101.46 16.2716 100.673 16.5322 100.052 17.0382C99.4988 17.5269 99.2239 18.2374 99.2239 19.2118V24.7942H96.4324V13.8692H99.0004V15.2003C99.3614 14.7365 99.8284 14.3645 100.363 14.115C100.905 13.8628 101.498 13.7337 102.097 13.7373H102.106ZM107.568 24.7942H104.777V13.8692H107.568V24.7942ZM106.185 8.66153C106.42 8.65875 106.654 8.70237 106.872 8.78986C107.09 8.87735 107.289 9.00697 107.457 9.1712C107.625 9.33158 107.76 9.52423 107.852 9.73755C107.944 9.95087 107.991 10.1804 107.991 10.4124C107.991 10.6444 107.944 10.8739 107.852 11.0873C107.76 11.3006 107.625 11.4932 107.457 11.6536C107.289 11.8179 107.09 11.9475 106.872 12.035C106.654 12.1224 106.42 12.1661 106.185 12.1633C105.945 12.1674 105.708 12.1245 105.485 12.037C105.263 11.9496 105.06 11.8193 104.889 11.6536C104.72 11.4932 104.585 11.3006 104.493 11.0873C104.402 10.8739 104.354 10.6444 104.354 10.4124C104.354 10.1804 104.402 9.95087 104.493 9.73755C104.585 9.52423 104.72 9.33158 104.889 9.1712C105.06 9.00556 105.263 8.87525 105.485 8.78777C105.708 8.7003 105.945 8.65739 106.185 8.66153ZM118.91 22.4527V24.7942H109.33V24.0417L114.768 16.2197H109.843V13.8692H118.865V14.6007L113.426 22.4467L118.91 22.4527ZM125.88 25.0461C124.84 25.0528 123.816 24.7903 122.91 24.2845C122.023 23.7888 121.285 23.0679 120.771 22.1957C120.257 21.3235 119.987 20.3315 119.987 19.3212C119.987 18.311 120.257 17.3189 120.771 16.4467C121.285 15.5746 122.023 14.8536 122.91 14.3579C123.816 13.8624 124.833 13.6025 125.868 13.6025C126.902 13.6025 127.92 13.8624 128.825 14.3579C129.714 14.84 130.456 15.5517 130.97 16.4176C131.506 17.2925 131.785 18.2989 131.774 19.3227C131.783 20.3378 131.504 21.335 130.97 22.2009C130.454 23.0759 129.714 23.8 128.825 24.2995C127.926 24.7993 126.91 25.0548 125.88 25.0401V25.0461ZM125.88 22.4977C126.284 22.5052 126.685 22.4291 127.058 22.2742C127.431 22.1194 127.767 21.8892 128.046 21.5983C128.334 21.297 128.559 20.9421 128.708 20.5542C128.858 20.1662 128.928 19.7528 128.916 19.3377C128.93 18.9193 128.86 18.5023 128.71 18.1108C128.561 17.7192 128.335 17.3608 128.046 17.0562C127.779 16.7549 127.448 16.5153 127.077 16.3543C126.707 16.1932 126.305 16.1145 125.901 16.1238C125.489 16.1103 125.079 16.1835 124.698 16.3385C124.317 16.4935 123.973 16.7269 123.689 17.0232C123.115 17.6527 122.81 18.4798 122.84 19.3287C122.81 20.1641 123.116 20.9772 123.689 21.5893C123.972 21.8816 124.312 22.1123 124.689 22.2667C125.066 22.421 125.472 22.4956 125.88 22.4857V22.4977ZM139.85 13.6024C140.412 13.5757 140.974 13.671 141.496 13.8818C142.018 14.0925 142.487 14.4136 142.871 14.8226C143.614 15.6221 143.986 16.6784 143.986 17.9916V24.7942H141.218V18.3693C141.232 18.0699 141.186 17.7707 141.082 17.4892C140.978 17.2077 140.819 16.9494 140.614 16.7294C140.414 16.521 140.17 16.3577 139.901 16.2507C139.631 16.1436 139.342 16.0952 139.052 16.1088C138.754 16.0982 138.457 16.1498 138.18 16.2603C137.903 16.3709 137.653 16.5378 137.445 16.7504C137.235 16.9637 137.071 17.2174 136.964 17.4958C136.856 17.7742 136.807 18.0714 136.819 18.3693V24.7942H134.028V13.8692H136.596V14.8676C136.992 14.4617 137.471 14.1439 138.001 13.9352C138.59 13.7095 139.218 13.5966 139.85 13.6024Z",fill:"#019966"}),reactExports.createElement("path",{d:"M0 25.0399H29.6075L6.28102 11.0688C2.99081 15.0998 0.824914 19.9175 0 25.0399H0Z",fill:"#11AA62"}),reactExports.createElement("path",{d:"M52.9399 11.0688L29.6074 25.0399H59.2149C58.3918 19.9181 56.228 15.1005 52.9399 11.0688Z",fill:"#D2EADD"}),reactExports.createElement("path",{d:"M39.0546 1.49902L29.6074 25.04L52.9369 11.0689C49.3276 6.62647 44.5095 3.30508 39.0546 1.49902Z",fill:"#A6D8BF"}),reactExports.createElement("path",{d:"M6.28125 11.0689L29.6077 25.04L20.1696 1.49902C14.7124 3.30376 9.89199 6.62529 6.28125 11.0689Z",fill:"#47BA82"}),reactExports.createElement("path",{d:"M29.6061 -7.16986e-05C26.3994 -0.00569942 23.2127 0.500443 20.168 1.49897L29.6061 25.0399L39.0533 1.49897C36.0055 0.500201 32.8158 -0.00593554 29.6061 -7.16986e-05Z",fill:"#79C8A0"})),reactExports.createElement("defs",null,reactExports.createElement("clipPath",{id:"clip0"},reactExports.createElement("rect",{width:143.98,height:25.04,fill:"white"})))),SvgHorizonWhiteLogo=et=>reactExports.createElement("svg",{width:138,height:24,viewBox:"0 0 138 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("g",{clipPath:"url(#clip0_2390:28)"},reactExports.createElement("path",{d:"M64.3667 9.74742H67.0219V15.1842H73.519V9.74742H76.1742V23.7647H73.519V17.5836H67.0133V23.7647H64.3667V9.74742ZM83.9759 24.0003C82.9845 24.0096 82.0079 23.76 81.1426 23.2762C80.2989 22.801 79.5967 22.11 79.1081 21.2741C78.6195 20.4381 78.362 19.4873 78.362 18.519C78.362 17.5507 78.6195 16.5998 79.1081 15.7639C79.5967 14.9279 80.2989 14.2369 81.1426 13.7618C82.0047 13.2869 82.9729 13.0378 83.9572 13.0378C84.9415 13.0378 85.9098 13.2869 86.7719 13.7618C87.6167 14.224 88.3207 14.9061 88.8092 15.7359C89.3203 16.574 89.5851 17.5389 89.5736 18.5204C89.5834 19.4936 89.3185 20.4497 88.8092 21.279C88.3199 22.1112 87.6202 22.7999 86.7805 23.2762C85.9231 23.7617 84.9525 24.0115 83.9673 24.0003H83.9759ZM83.9759 21.5578C84.3604 21.5655 84.7423 21.4928 85.0971 21.3443C85.4519 21.1959 85.7718 20.9749 86.0362 20.6957C86.3102 20.4069 86.5243 20.0668 86.6663 19.695C86.8083 19.3231 86.8755 18.9269 86.8638 18.529C86.8767 18.128 86.8102 17.7283 86.6682 17.3531C86.5262 16.9778 86.3114 16.6343 86.0362 16.3423C85.7822 16.0532 85.4678 15.8234 85.1153 15.669C84.7628 15.5146 84.3807 15.4393 83.996 15.4486C83.6049 15.4361 83.2156 15.5064 82.8535 15.655C82.4915 15.8036 82.165 16.027 81.8954 16.3106C81.3475 16.9132 81.0576 17.7065 81.088 18.5204C81.0705 18.9203 81.1329 19.3196 81.2715 19.6951C81.4102 20.0706 81.6223 20.4146 81.8954 20.7072C82.1636 20.9836 82.4861 21.2014 82.8428 21.3469C83.1994 21.4923 83.5823 21.5621 83.9673 21.552L83.9759 21.5578ZM97.1167 13.167C97.4184 13.1621 97.719 13.2047 98.0075 13.2934V15.6296H97.2661C96.5025 15.5961 95.7534 15.8458 95.1627 16.3308C94.6397 16.7991 94.3753 17.4802 94.3753 18.4141V23.7647H91.7201V13.2934H94.1627V14.5693C94.5061 14.1247 94.9503 13.7681 95.4586 13.529C95.9747 13.2872 96.5382 13.1635 97.1081 13.167H97.1167ZM102.312 23.7647H99.6569V13.2934H102.312V23.7647ZM100.996 8.30202C101.22 8.29936 101.442 8.34117 101.65 8.42502C101.858 8.50888 102.046 8.63311 102.206 8.79053C102.366 8.94424 102.494 9.12889 102.582 9.33335C102.669 9.53781 102.714 9.75785 102.714 9.98018C102.714 10.2025 102.669 10.4225 102.582 10.627C102.494 10.8315 102.366 11.0161 102.206 11.1698C102.046 11.3273 101.858 11.4515 101.65 11.5353C101.442 11.6192 101.22 11.661 100.996 11.6583C100.768 11.6623 100.542 11.6212 100.331 11.5373C100.119 11.4535 99.9263 11.3286 99.7632 11.1698C99.6026 11.0161 99.4748 10.8315 99.3874 10.627C99.3001 10.4225 99.255 10.2025 99.255 9.98018C99.255 9.75785 99.3001 9.53781 99.3874 9.33335C99.4748 9.12889 99.6026 8.94424 99.7632 8.79053C99.9263 8.63177 100.119 8.50686 100.331 8.42302C100.542 8.33918 100.768 8.29805 100.996 8.30202ZM113.099 21.5204V23.7647H103.987V23.0434L109.16 15.5463H104.476V13.2934H113.056V13.9946L107.884 21.5147L113.099 21.5204ZM119.729 24.006C118.74 24.0125 117.766 23.761 116.904 23.2762C116.06 22.801 115.358 22.11 114.87 21.2741C114.381 20.4381 114.123 19.4873 114.123 18.519C114.123 17.5507 114.381 16.5998 114.87 15.7639C115.358 14.9279 116.06 14.2369 116.904 13.7618C117.766 13.2869 118.733 13.0378 119.717 13.0378C120.701 13.0378 121.669 13.2869 122.53 13.7618C123.376 14.2239 124.081 14.906 124.571 15.7359C125.08 16.5745 125.345 17.5391 125.335 18.5204C125.343 19.4933 125.079 20.4491 124.571 21.279C124.08 22.1178 123.376 22.8117 122.53 23.2905C121.675 23.7696 120.709 24.0144 119.729 24.0003V24.006ZM119.729 21.5635C120.113 21.5707 120.495 21.4977 120.85 21.3493C121.204 21.2009 121.524 20.9803 121.789 20.7014C122.063 20.4127 122.277 20.0726 122.419 19.7007C122.561 19.3289 122.628 18.9326 122.617 18.5348C122.63 18.1337 122.563 17.7341 122.421 17.3588C122.279 16.9835 122.064 16.64 121.789 16.348C121.535 16.0593 121.22 15.8296 120.868 15.6753C120.515 15.5209 120.134 15.4455 119.749 15.4543C119.357 15.4414 118.967 15.5116 118.605 15.6602C118.242 15.8087 117.915 16.0324 117.645 16.3164C117.099 16.9197 116.809 17.7125 116.838 18.5262C116.809 19.3269 117.1 20.1061 117.645 20.6928C117.914 20.973 118.238 21.1942 118.596 21.3421C118.955 21.49 119.341 21.5615 119.729 21.552V21.5635ZM133.016 13.0377C133.551 13.0121 134.086 13.1035 134.582 13.3054C135.078 13.5074 135.524 13.8152 135.89 14.2072C136.597 14.9735 136.95 15.9859 136.95 17.2446V23.7647H134.318V17.6066C134.331 17.3196 134.287 17.0329 134.188 16.7631C134.089 16.4932 133.938 16.2457 133.743 16.0348C133.553 15.8351 133.321 15.6786 133.065 15.576C132.809 15.4733 132.533 15.427 132.257 15.44C131.974 15.4298 131.691 15.4793 131.428 15.5852C131.165 15.6912 130.926 15.8512 130.729 16.0549C130.529 16.2594 130.373 16.5025 130.271 16.7693C130.169 17.0362 130.122 17.3211 130.134 17.6066V23.7647H127.479V13.2934H129.921V14.2503C130.299 13.8613 130.754 13.5567 131.257 13.3566C131.818 13.1404 132.415 13.0322 133.016 13.0377Z",fill:"#ffffff"}),reactExports.createElement("path",{opacity:.2,d:"M5.97414 10.6094C2.84468 14.4729 0.784611 19.0905 0 24.0002H28.1609L5.97414 10.6094Z",fill:"white"}),reactExports.createElement("path",{d:"M28.1614 24.0002H56.3223C55.5377 19.0905 53.4776 14.4729 50.3482 10.6094L28.1614 24.0002Z",fill:"white"}),reactExports.createElement("path",{opacity:.8,d:"M37.147 1.43701L28.1614 24.0002L50.351 10.6094C46.918 6.3515 42.3354 3.16806 37.147 1.43701Z",fill:"white"}),reactExports.createElement("path",{opacity:.4,d:"M19.1827 1.43701C13.9901 3.16296 9.40218 6.34357 5.96436 10.6008L28.1598 24.0002L19.1827 1.43701Z",fill:"white"}),reactExports.createElement("path",{opacity:.6,d:"M28.1596 24.0003L37.1453 1.4371C31.3128 -0.490101 25.0151 -0.490101 19.1826 1.4371L28.1596 24.0003Z",fill:"white"})),reactExports.createElement("defs",null,reactExports.createElement("linearGradient",{id:"paint0_linear_2390:28",x1:64.3581,y1:16.1497,x2:136.944,y2:16.1497,gradientUnits:"userSpaceOnUse"},reactExports.createElement("stop",{stopColor:"white"}),reactExports.createElement("stop",{offset:1,stopColor:"white"})),reactExports.createElement("clipPath",{id:"clip0_2390:28"},reactExports.createElement("rect",{width:138,height:24,fill:"white"})))),SvgNurseReviewedIcon=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("g",{id:"icon/content/how_to_reg_24px"},reactExports.createElement("path",{id:"icon/content/how_to_reg_24px_2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.4998 7.75C14.4998 9.96 12.7098 11.75 10.4998 11.75C8.28976 11.75 6.49976 9.96 6.49976 7.75C6.49976 5.54 8.28976 3.75 10.4998 3.75C12.7098 3.75 14.4998 5.54 14.4998 7.75ZM12.4998 7.75013C12.4998 6.65013 11.5998 5.75013 10.4998 5.75013C9.39976 5.75013 8.49975 6.65013 8.49975 7.75013C8.49975 8.85013 9.39976 9.75013 10.4998 9.75013C11.5998 9.75013 12.4998 8.85013 12.4998 7.75013ZM4.49976 17.7497C4.69976 17.1197 7.06976 16.0697 9.45976 15.8097L11.4998 13.8097C11.1098 13.7697 10.8198 13.7497 10.4998 13.7497C7.82976 13.7497 2.49976 15.0897 2.49976 17.7497V19.7497H11.4998L9.49976 17.7497H4.49976ZM14.9698 17.4197L20.0998 12.2497L21.4998 13.6597L14.9698 20.2497L11.4998 16.7497L12.8998 15.3397L14.9698 17.4197Z",fill:"#00A963"}))),SvgInfoCircleBlueWhiteBorderIcon=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:12,cy:12,r:12,fill:"white"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13.0002 9.00004V7.00004H11.0002V9.00004H13.0002ZM13.0002 17V11H11.0002V17H13.0002ZM4.00016 12C4.00016 16.41 7.59016 20 12.0002 20C16.4102 20 20.0002 16.41 20.0002 12C20.0002 7.59004 16.4102 4.00004 12.0002 4.00004C7.59016 4.00004 4.00016 7.59004 4.00016 12Z",fill:"#036497"})),SvgCareplanTemplate=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2H14L20 8V20C20 21.1 19.1 22 18 22H5.99C4.89 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2ZM6.00022 19.9999H18.0002V8.99987H13.0002V3.99987H6.00022V19.9999Z",fill:"#716E6A"}),reactExports.createElement("path",{d:"M8.07214 13.1329H10.6347V18.5356H13.1973V13.1329H15.7599V10.5703H8.07214V13.1329Z",fill:"#716E6A"})),SvgErrorCircleFill=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("rect",{x:9,y:6,width:7,height:13,fill:"white"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12.9999 17H10.9999V15H12.9999V17ZM10.9999 13H12.9999V7.00001H10.9999V13Z",fill:"#F68D2E"})),SvgDocuments=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99944 2H19.9994C21.0994 2 21.9994 2.9 21.9994 4V16C21.9994 17.1 21.0994 18 19.9994 18H7.99944C6.89944 18 5.99944 17.1 5.99944 16V4C5.99944 2.9 6.89944 2 7.99944 2ZM1.99951 6H3.99951V20H17.9995V22H3.99951C2.89951 22 1.99951 21.1 1.99951 20V6ZM19.9994 16H7.9994V4.00001H19.9994V16ZM17.9994 8.99999H9.99936V11H17.9994V8.99999ZM9.99936 12H13.9994V14H9.99936V12ZM17.9994 6H9.99936V8H17.9994V6Z",fill:"#716E6A"})),SvgWarningCircleWhiteBorderIcon=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:12,cy:12,r:12,fill:"white"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM13.0001 7.00001H11.0001V13H13.0001V7.00001ZM13.0001 15H11.0001V17H13.0001V15ZM4.0001 12C4.0001 16.42 7.5801 20 12.0001 20C16.4201 20 20.0001 16.42 20.0001 12C20.0001 7.58002 16.4201 4.00002 12.0001 4.00002C7.5801 4.00002 4.0001 7.58002 4.0001 12Z",fill:"#E57C00"})),SvgEmrOutlined=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M21 16H3V4H21M21 2H3C1.89 2 1 2.89 1 4V16C1 16.5304 1.21071 17.0391 1.58579 17.4142C1.96086 17.7893 2.46957 18 3 18H10V20H6V22H18V20H14V18H21C21.5304 18 22.0391 17.7893 22.4142 17.4142C22.7893 17.0391 23 16.5304 23 16V4C23 2.89 22.1 2 21 2Z",fill:"#716E6A"}),reactExports.createElement("path",{d:"M8.5 7C8.96413 7 9.40925 7.18437 9.73744 7.51256C10.0656 7.84075 10.25 8.28587 10.25 8.75C10.25 9.21413 10.0656 9.65925 9.73744 9.98744C9.40925 10.3156 8.96413 10.5 8.5 10.5C8.03587 10.5 7.59075 10.3156 7.26256 9.98744C6.93437 9.65925 6.75 9.21413 6.75 8.75C6.75 8.28587 6.93437 7.84075 7.26256 7.51256C7.59075 7.18437 8.03587 7 8.5 7ZM8.5 11.375C10.4338 11.375 12 12.1581 12 13.125V14H5V13.125C5 12.1581 6.56625 11.375 8.5 11.375Z",fill:"#716E6A"}),reactExports.createElement("path",{d:"M17.2 13H13V11.8H17.2V13ZM19 10.6H13V9.4H19V10.6ZM19 8.2H13V7H19V8.2Z",fill:"#716E6A"})),SvgAddOutlineCircle=et=>reactExports.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99902 0C4.47902 0 -0.000976562 4.48 -0.000976562 10C-0.000976562 15.52 4.47902 20 9.99902 20C15.519 20 19.999 15.52 19.999 10C19.999 4.48 15.519 0 9.99902 0ZM10.9981 5.00004H8.99808V9.00004H4.99808V11H8.99808V15H10.9981V11H14.9981V9.00004H10.9981V5.00004ZM1.99813 9.99999C1.99813 14.41 5.58813 18 9.99813 18C14.4081 18 17.9981 14.41 17.9981 9.99999C17.9981 5.58999 14.4081 1.99999 9.99813 1.99999C5.58813 1.99999 1.99813 5.58999 1.99813 9.99999Z",fill:"#008850"})),SvgCalendar=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9996 4H17.9996V2H15.9996V4H7.99963V2H5.99963V4H4.99963C3.89963 4 2.99963 4.9 2.99963 6V20C2.99963 21.1 3.89963 22 4.99963 22H18.9996C20.0996 22 20.9996 21.1 20.9996 20V6C20.9996 4.9 20.0996 4 18.9996 4ZM18.9992 20H4.99921V10H18.9992V20ZM4.99921 5.99998V7.99998H18.9992V5.99998H4.99921ZM6.99918 12H16.9992V14H6.99918V12ZM13.9992 16H6.99918V18H13.9992V16Z"})),SvgErrorCross=et=>reactExports.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("title",{id:"title"},"Error"),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2.66663C8.62669 2.66663 2.66669 8.62663 2.66669 16C2.66669 23.3733 8.62669 29.3333 16 29.3333C23.3734 29.3333 29.3334 23.3733 29.3334 16C29.3334 8.62663 23.3734 2.66663 16 2.66663ZM19.4534 10.6666L16 14.12L12.5467 10.6666L10.6667 12.5466L14.12 16L10.6667 19.4533L12.5467 21.3333L16 17.88L19.4534 21.3333L21.3334 19.4533L17.88 16L21.3334 12.5466L19.4534 10.6666ZM5.33335 16C5.33335 21.88 10.12 26.6666 16 26.6666C21.88 26.6666 26.6667 21.88 26.6667 16C26.6667 10.12 21.88 5.33329 16 5.33329C10.12 5.33329 5.33335 10.12 5.33335 16Z",fill:"#C72626"})),SvgGenesisCareLogo=et=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"244px",height:"271px",viewBox:"0 0 244 271",...et},reactExports.createElement("title",null,"Brand Mark_Green_Desktop"),reactExports.createElement("desc",null,"Created with Sketch."),reactExports.createElement("defs",null),reactExports.createElement("g",{id:"Symbols",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{id:"Nav/Main-Nav/Large",fill:"#00BF6F",fillRule:"nonzero"},reactExports.createElement("g",{id:"Nav-Expanded-"},reactExports.createElement("g",{id:"Green-logo-big"},reactExports.createElement("path",{d:"M216.699301,0 C201.342657,0 187.692308,4.98773006 174.041958,11.6380368 C162.097902,19.9509202 151.86014,31.5889571 146.741259,44.8895706 C134.797203,18.2883436 107.496503,0 76.7832168,0 C35.8321678,0 1.70629371,31.5889571 0,71.4907975 C0,73.1533742 0,73.1533742 0,74.8159509 C0,99.7546012 13.6503497,121.368098 32.4195804,134.668712 C42.6573427,141.319018 56.3076923,146.306748 69.958042,147.969325 L17.0629371,147.969325 C5.11888112,161.269939 0,177.895706 0,196.184049 C0,237.748466 34.1258741,271 76.7832168,271 C119.440559,271 153.566434,237.748466 153.566434,196.184049 C151.86014,171.245399 139.916084,149.631902 119.440559,134.668712 C131.384615,128.018405 139.916084,116.380368 146.741259,104.742331 C158.685315,129.680982 184.27972,149.631902 216.699301,149.631902 C226.937063,149.631902 235.468531,147.969325 244,144.644172 L244,4.98773006 C233.762238,1.66257669 225.230769,0 216.699301,0 Z",id:"Brand-Mark_Green_Desktop"})))))),SvgGenesisCareTextLogo=et=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 213 41",...et},reactExports.createElement("title",null,"GenesisCare Logo"),reactExports.createElement("desc",null,"Logo with text GenesisCare."),reactExports.createElement("defs",null),reactExports.createElement("g",{id:"Symbols",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{id:"Nav/Main-Nav/Small",transform:"translate(-38.000000, -56.000000)",fill:"#00BF6F",fillRule:"nonzero"},reactExports.createElement("g",{id:"GenesisCare_Logo_Desktop_Green",transform:"translate(38.000000, 56.000000)"},reactExports.createElement("path",{d:"M31.9170373,0 C29.6552,0 27.644678,0.753680982 25.634156,1.75858896 C25.634156,1.75858896 25.634156,1.75858896 25.634156,1.75858896 C23.8749492,3.01472393 22.3670577,4.77331288 21.6131119,6.78312883 C19.8539051,2.76349693 15.832861,0 11.3091865,0 C5.27762034,0 0.251315255,4.77331288 0,10.8027607 C0,11.0539877 0,11.0539877 0,11.3052147 C0,15.0736196 2.01052204,18.3395706 4.77498984,20.3493865 C6.28288136,21.3542945 8.2934034,22.1079755 10.3039254,22.3592025 L2.51315255,22.3592025 C0.753945764,24.3690184 0,26.8812883 0,29.6447853 C0,35.9254601 5.02630509,40.95 11.3091865,40.95 C17.5920678,40.95 22.6183729,35.9254601 22.6183729,29.6447853 C22.3670577,25.8763804 20.6078509,22.6104294 17.5920678,20.3493865 C19.3512746,19.3444785 20.6078509,17.5858896 21.6131119,15.8273006 C23.3723187,19.5957055 27.1420475,22.6104294 31.9170373,22.6104294 C33.4249289,22.6104294 34.6815051,22.3592025 35.9380814,21.8567485 L35.9380814,0.753680982 C34.4301899,0.251226994 33.1736136,0 31.9170373,0 Z",id:"Shape"}),reactExports.createElement("g",{id:"Group",transform:"translate(35.938081, 16.131818)"},reactExports.createElement("path",{d:"M83.7896482,14.7297521 L81.5585629,13.6983471 C80.319071,13.1826446 79.8232743,12.6669421 79.8232743,12.1512397 C79.8232743,11.377686 80.5669694,10.8619835 81.5585629,10.8619835 C82.7980547,10.8619835 84.0375465,11.377686 85.2770384,12.4090909 L87.2602253,9.83057851 C85.7728351,8.28347107 84.0375465,7.25206612 81.8064612,7.25206612 C78.3358841,7.25206612 76.1047988,9.05702479 76.1047988,12.1512397 C76.1047988,14.9876033 78.0879857,16.0190083 79.3274776,16.5347107 L81.8064612,17.5661157 C83.2938514,18.0818182 83.5417498,18.5975207 83.5417498,19.3710744 C83.5417498,19.8867769 83.0459531,20.6603306 81.5585629,20.6603306 C80.0711727,20.6603306 78.3358841,19.6289256 77.0963922,18.3396694 L75.1132053,20.9181818 C76.3526971,22.9809917 78.8316808,24.0123967 81.5585629,24.0123967 C85.2770384,24.0123967 87.5081237,21.9495868 87.5081237,18.8553719 C87.5081237,17.3082645 86.2686318,15.761157 83.7896482,14.7297521 Z",id:"Shape"}),reactExports.createElement("path",{d:"M104.861009,14.7297521 L102.629924,13.6983471 C101.390432,13.1826446 100.894636,12.6669421 100.894636,12.1512397 C100.894636,11.377686 101.638331,10.8619835 102.629924,10.8619835 C103.869416,10.8619835 105.108908,11.377686 106.3484,12.4090909 L108.331587,9.83057851 C106.844196,8.28347107 105.108908,7.25206612 102.877822,7.25206612 C99.4072453,7.25206612 97.17616,9.05702479 97.17616,12.1512397 C97.17616,14.9876033 99.1593469,16.0190083 100.398839,16.5347107 L102.877822,17.5661157 C104.365213,18.0818182 104.613111,18.5975207 104.613111,19.3710744 C104.613111,19.8867769 104.117314,20.6603306 102.629924,20.6603306 C101.142534,20.6603306 99.4072453,19.6289256 98.1677535,18.3396694 L96.1845665,20.9181818 C97.4240584,22.9809917 99.903042,24.0123967 102.629924,24.0123967 C106.3484,24.0123967 108.579485,21.9495868 108.579485,18.8553719 C108.579485,17.3082645 107.339993,15.761157 104.861009,14.7297521 Z",id:"Shape"}),reactExports.createElement("path",{d:"M144.27685,9.31487603 C143.037358,8.02561983 141.549968,7.50991736 139.566781,7.50991736 C135.352509,7.50991736 131.881931,11.1198347 131.881931,16.0190083 C131.881931,20.9181818 135.10461,24.5280992 139.318882,24.5280992 C141.797866,24.5280992 143.285256,23.7545455 144.524748,22.207438 L144.524748,24.0123967 L147.995325,24.0123967 L147.995325,7.7677686 L144.028951,7.7677686 L144.028951,9.31487603 L144.27685,9.31487603 Z M140.310476,20.6603306 C137.831492,20.6603306 136.096204,18.5975207 136.096204,15.761157 C136.096204,12.9247934 137.831492,10.8619835 140.310476,10.8619835 C142.78946,10.8619835 144.524748,12.9247934 144.524748,15.761157 C144.524748,18.8553719 142.78946,20.6603306 140.310476,20.6603306 Z",id:"Shape"}),reactExports.createElement("path",{d:"M91.7223959,0.290082645 C90.2350057,0.290082645 89.2434122,1.3214876 89.2434122,2.86859504 C89.2434122,4.41570248 90.2350057,5.44710744 91.7223959,5.44710744 C93.2097861,5.44710744 94.2013796,4.41570248 94.2013796,2.86859504 C94.2013796,1.3214876 93.2097861,0.290082645 91.7223959,0.290082645 Z",id:"Shape"}),reactExports.createElement("rect",{id:"Rectangle-path",x:89.739209,y:7.7677686,width:3.96637388,height:16.2446281}),reactExports.createElement("path",{d:"M50.0754702,7.50991736 C48.3401816,7.50991736 46.8527914,8.02561983 45.6132996,9.31487603 L45.6132996,7.7677686 L42.1427224,7.7677686 L42.1427224,24.0123967 L46.1090963,24.0123967 L46.1090963,14.4719008 C46.1090963,12.4090909 47.3485882,11.1198347 49.3317751,11.1198347 C51.0670637,11.1198347 52.3065555,12.4090909 52.3065555,14.4719008 L52.3065555,24.0123967 L56.2729294,24.0123967 L56.2729294,13.9561983 C56.025031,10.0884298 53.5460473,7.50991736 50.0754702,7.50991736 Z",id:"Shape"}),reactExports.createElement("path",{d:"M32.2267878,7.50991736 C27.7646171,7.50991736 24.29404,11.1198347 24.29404,16.0190083 C24.29404,20.9181818 27.7646171,24.5280992 32.7225845,24.5280992 C34.7057714,24.5280992 37.1847551,23.7545455 38.9200437,21.9495868 L37.1847551,19.1132231 C35.9452633,20.1446281 34.2099747,20.9181818 32.9704829,20.9181818 C30.4914992,20.9181818 29.004109,19.6289256 28.2604139,17.3082645 L39.4158404,17.3082645 C39.6637388,16.792562 39.6637388,16.0190083 39.6637388,14.9876033 C39.4158404,10.6041322 36.44106,7.50991736 32.2267878,7.50991736 Z M28.2604139,14.2140496 C28.7562106,12.1512397 30.2436008,10.8619835 32.2267878,10.8619835 C34.2099747,10.8619835 35.6973649,12.1512397 35.6973649,14.2140496 L28.2604139,14.2140496 Z",id:"Shape"}),reactExports.createElement("path",{d:"M66.4367625,7.50991736 C61.9745918,7.50991736 58.5040147,11.1198347 58.5040147,16.0190083 C58.5040147,20.9181818 61.9745918,24.5280992 66.9325592,24.5280992 C68.9157461,24.5280992 71.3947298,23.7545455 73.1300184,21.9495868 L71.3947298,19.1132231 C70.155238,20.1446281 68.4199494,20.9181818 67.1804576,20.9181818 C64.7014739,20.9181818 63.2140837,19.6289256 62.4703886,17.3082645 L73.6258151,17.3082645 C73.8737135,16.792562 73.8737135,16.0190083 73.8737135,14.9876033 C73.6258151,10.6041322 70.6510347,7.50991736 66.4367625,7.50991736 Z M62.2224902,14.2140496 C62.7182869,12.1512397 64.2056771,10.8619835 66.1888641,10.8619835 C68.172051,10.8619835 69.6594412,12.1512397 69.6594412,14.2140496 L62.2224902,14.2140496 Z",id:"Shape"}),reactExports.createElement("path",{d:"M176.999434,14.9876033 C176.999434,10.6041322 174.024654,7.50991736 169.810382,7.50991736 C165.348211,7.50991736 161.877634,11.1198347 161.877634,16.0190083 C161.877634,20.9181818 165.348211,24.5280992 170.306178,24.5280992 C172.289365,24.5280992 174.768349,23.7545455 176.503638,21.9495868 L174.768349,19.1132231 C173.528857,20.1446281 171.793569,20.9181818 170.554077,20.9181818 C168.075093,20.9181818 166.587703,19.6289256 165.844008,17.3082645 L176.999434,17.3082645 C176.751536,16.792562 176.999434,16.0190083 176.999434,14.9876033 Z M165.596109,14.2140496 C166.091906,12.1512397 167.579296,10.8619835 169.562483,10.8619835 C171.54567,10.8619835 173.03306,12.1512397 173.03306,14.2140496 L165.596109,14.2140496 Z",id:"Shape"}),reactExports.createElement("path",{d:"M155.184378,9.83057851 L155.184378,7.7677686 L151.713801,7.7677686 L151.713801,24.0123967 L155.680175,24.0123967 L155.680175,16.0190083 C155.680175,14.4719008 156.175971,13.4404959 156.919667,12.6669421 C157.91126,11.8933884 159.39865,11.6355372 160.88604,11.8933884 L160.88604,7.7677686 C160.638142,7.7677686 160.142345,7.50991736 159.39865,7.50991736 C157.663362,7.7677686 156.175971,8.28347107 155.184378,9.83057851 Z",id:"Shape"}),reactExports.createElement("path",{d:"M11.8991216,15.761157 L17.8486824,15.761157 L17.8486824,17.8239669 C16.6091906,19.3710744 14.3781053,20.4024793 12.14702,20.4024793 C7.93274776,20.4024793 4.95796735,17.3082645 4.95796735,12.9247934 C4.95796735,8.54132231 7.93274776,5.44710744 11.8991216,5.44710744 C14.1302069,5.44710744 15.8654955,6.4785124 17.6007841,8.79917355 L20.5755645,6.4785124 C18.5923776,3.38429752 15.3696988,1.57933884 11.8991216,1.57933884 C5.70166245,1.57933884 0.743695102,6.4785124 0.743695102,12.6669421 C0.743695102,19.1132231 5.70166245,24.0123967 11.8991216,24.0123967 C16.1133939,24.0123967 19.583971,21.9495868 21.567158,18.0818182 L21.567158,11.6355372 L11.6512233,11.6355372 L11.6512233,15.761157 L11.8991216,15.761157 Z",id:"Shape"}),reactExports.createElement("path",{d:"M121.4702,20.6603306 C117.503826,20.6603306 114.529046,17.5661157 114.529046,13.1826446 C114.529046,9.05702479 117.503826,5.70495868 121.4702,5.70495868 C123.949184,5.70495868 125.684472,6.99421488 127.667659,9.31487603 L130.64244,6.99421488 C128.659253,3.64214876 125.436574,1.83719008 121.4702,1.83719008 C115.272741,1.83719008 110.314773,6.73636364 110.314773,12.9247934 C110.314773,19.3710744 115.272741,24.0123967 121.4702,24.0123967 C125.436574,24.0123967 128.659253,22.207438 130.64244,18.8553719 L127.667659,16.5347107 C126.180269,19.3710744 123.949184,20.6603306 121.4702,20.6603306 Z",id:"Shape"})))))),SvgGreenTickNoBorder=et=>reactExports.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M22.12 10.1067L13.3333 18.8934L9.88 15.4534L8 17.3334L13.3333 22.6667L24 12L22.12 10.1067Z",fill:"#00A963"})),SvgInfo=et=>reactExports.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("g",{id:"Inform_32px"},reactExports.createElement("g",{id:"Vector"},reactExports.createElement("path",{d:"M14.6667 9.33332H17.3334V12H14.6667V9.33332Z"}),reactExports.createElement("path",{d:"M14.6667 14.6667H17.3334V22.6667H14.6667V14.6667Z"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66669 16C2.66669 8.63999 8.63999 2.66666 16 2.66666C23.36 2.66666 29.3334 8.63999 29.3334 16C29.3334 23.36 23.36 29.3333 16 29.3333C8.63999 29.3333 2.66669 23.36 2.66669 16ZM5.33335 16C5.33335 21.88 10.12 26.6667 16 26.6667C21.8801 26.6667 26.6667 21.88 26.6667 16C26.6667 10.12 21.8801 5.33332 16 5.33332C10.12 5.33332 5.33335 10.12 5.33335 16Z"})))),SvgMyDetails=et=>reactExports.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66667 4H29.3333C30.8 4 32 5.2 32 6.66667L31.9867 25.3333C31.9867 26.8 30.8 28 29.3333 28H2.66667C1.2 28 0 26.8 0 25.3333V6.66667C0 5.2 1.2 4 2.66667 4ZM2.66667 25.3333H29.3333V6.66667H2.66667V25.3333ZM28 8H18.6667V14.6667H28V8ZM23.3333 13L26.6667 10.6667V9.33333L23.3333 11.6667L20 9.33333V10.6667L23.3333 13ZM12 16C14.2 16 16 14.2 16 12C16 9.8 14.2 8 12 8C9.8 8 8 9.8 8 12C8 14.2 9.8 16 12 16ZM13.3333 12C13.3333 11.2667 12.7333 10.6667 12 10.6667C11.2667 10.6667 10.6667 11.2667 10.6667 12C10.6667 12.7333 11.2667 13.3333 12 13.3333C12.7333 13.3333 13.3333 12.7333 13.3333 12ZM20 22.1199C20 18.7866 14.7067 17.3466 12 17.3466C9.29333 17.3466 4 18.7866 4 22.1199V23.9999H20V22.1199ZM12 20C10.2667 20 8.29333 20.6667 7.30666 21.3333H16.6933C15.6933 20.6533 13.7333 20 12 20Z"})),SvgRemoveOutlineCircle=et=>reactExports.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99951 0C4.47951 0 -0.000488281 4.48 -0.000488281 10C-0.000488281 15.52 4.47951 20 9.99951 20C15.5195 20 19.9995 15.52 19.9995 10C19.9995 4.48 15.5195 0 9.99951 0ZM4.99915 9.00003V11H14.9991V9.00003H4.99915ZM1.9992 10C1.9992 14.41 5.5892 18 9.9992 18C14.4092 18 17.9992 14.41 17.9992 10C17.9992 5.59004 14.4092 2.00004 9.9992 2.00004C5.5892 2.00004 1.9992 5.59004 1.9992 10Z",fill:"#00A963"})),SvgSearch=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.965 14.255H15.755L20.745 19.255L19.255 20.745L14.255 15.755V14.965L13.985 14.685C12.845 15.665 11.365 16.255 9.755 16.255C6.165 16.255 3.255 13.345 3.255 9.755C3.255 6.165 6.165 3.255 9.755 3.255C13.345 3.255 16.255 6.165 16.255 9.755C16.255 11.365 15.665 12.845 14.685 13.985L14.965 14.255ZM5.255 9.755C5.255 12.245 7.26501 14.255 9.755 14.255C12.245 14.255 14.255 12.245 14.255 9.755C14.255 7.265 12.245 5.255 9.755 5.255C7.26501 5.255 5.255 7.265 5.255 9.755Z",fill:"#716E6A"})),SvgSearchWhite=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.965 14.255H15.755L20.745 19.255L19.255 20.745L14.255 15.755V14.965L13.985 14.685C12.845 15.665 11.365 16.255 9.755 16.255C6.165 16.255 3.255 13.345 3.255 9.755C3.255 6.165 6.165 3.255 9.755 3.255C13.345 3.255 16.255 6.165 16.255 9.755C16.255 11.365 15.665 12.845 14.685 13.985L14.965 14.255ZM5.255 9.755C5.255 12.245 7.26501 14.255 9.755 14.255C12.245 14.255 14.255 12.245 14.255 9.755C14.255 7.265 12.245 5.255 9.755 5.255C7.26501 5.255 5.255 7.265 5.255 9.755Z",fill:"#FFFFFF"})),SvgSuccess=et=>reactExports.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("g",{id:"Success_32px"},reactExports.createElement("path",{id:"icon/action/check_circle_24px",fillRule:"evenodd",clipRule:"evenodd",d:"M16 2.66666C8.64002 2.66666 2.66669 8.63999 2.66669 16C2.66669 23.36 8.64002 29.3333 16 29.3333C23.36 29.3333 29.3334 23.36 29.3334 16C29.3334 8.63999 23.36 2.66666 16 2.66666ZM16 26.6667C10.12 26.6667 5.33335 21.88 5.33335 16C5.33335 10.12 10.12 5.33332 16 5.33332C21.88 5.33332 26.6667 10.12 26.6667 16C26.6667 21.88 21.88 26.6667 16 26.6667ZM13.3334 18.8933L22.12 10.1067L24 12L13.3334 22.6667L8.00002 17.3333L9.88002 15.4533L13.3334 18.8933Z"}))),SvgDelete=et=>reactExports.createElement("svg",{width:14,height:18,viewBox:"0 0 19 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7814 0.00500488H6.11475L4.78141 1.33834H0.114746V4.005H18.7814V1.33834H14.1147L12.7814 0.00500488ZM14.7813 8.00498V21.3383H4.11466V8.00498H14.7813ZM1.44799 5.33831H17.448V21.3383C17.448 22.805 16.248 24.005 14.7813 24.005H4.11466C2.64799 24.005 1.44799 22.805 1.44799 21.3383V5.33831Z",fill:"black",fillOpacity:.54})),SvgTabletDeviceIcon=et=>reactExports.createElement("svg",{width:80,height:80,viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M53.6188 13.6252H26.3696C23.8737 13.6252 21.8503 15.6486 21.8503 18.1445V61.8568C21.8503 64.3527 23.8737 66.376 26.3696 66.376H53.6188C56.1147 66.376 58.1381 64.3527 58.1381 61.8568V18.1445C58.1381 15.6486 56.1147 13.6252 53.6188 13.6252Z",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M55.1106 17.9553H24.8894V58.2392H55.1106V17.9553Z",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M41.8197 62.3356C41.8197 62.6966 41.7127 63.0496 41.5121 63.3498C41.3115 63.65 41.0264 63.884 40.6928 64.0221C40.3592 64.1603 39.9922 64.1964 39.6381 64.126C39.284 64.0556 38.9587 63.8817 38.7034 63.6264C38.4481 63.3711 38.2742 63.0458 38.2038 62.6917C38.1333 62.3376 38.1695 61.9705 38.3077 61.637C38.4458 61.3034 38.6798 61.0183 38.98 60.8177C39.2802 60.6171 39.6332 60.51 39.9942 60.51C40.2344 60.5086 40.4724 60.5548 40.6946 60.646C40.9167 60.7372 41.1185 60.8716 41.2884 61.0414C41.4582 61.2112 41.5926 61.4131 41.6838 61.6352C41.775 61.8574 41.8212 62.0954 41.8197 62.3356V62.3356Z",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M58.1393 59.197H74.4576C69.7881 67.5775 62.224 73.9686 53.1815 77.1735C44.1391 80.3785 34.2385 80.1775 25.3336 76.6081C16.4287 73.0388 9.13018 66.346 4.8047 57.7828C0.479228 49.2197 -0.576583 39.3735 1.83497 30.0879C4.24653 20.8023 9.96007 12.7142 17.9057 7.33799C25.8514 1.96178 35.4843 -0.333809 45.0007 0.881065C54.5171 2.09594 63.2643 6.73796 69.6045 13.9379C75.9446 21.1379 79.443 30.402 79.4444 39.9956C79.4433 43.046 79.0922 46.0861 78.3981 49.0564",stroke:"#27B67B",strokeWidth:.901575,strokeLinecap:"round",strokeLinejoin:"round"})),SvgInfoCircleBlueIcon=et=>reactExports.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M7.33301 4.66732H8.66634V6.00065H7.33301V4.66732Z",fill:"#036497"}),reactExports.createElement("path",{d:"M7.33301 7.33398H8.66634V11.334H7.33301V7.33398Z",fill:"#036497"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.33301 8.00065C1.33301 4.32065 4.31966 1.33398 7.99967 1.33398C11.6797 1.33398 14.6663 4.32065 14.6663 8.00065C14.6663 11.6806 11.6797 14.6673 7.99967 14.6673C4.31966 14.6673 1.33301 11.6806 1.33301 8.00065ZM2.66634 8.00065C2.66634 10.9407 5.05965 13.334 7.99967 13.334C10.9397 13.334 13.333 10.9407 13.333 8.00065C13.333 5.06065 10.9397 2.66732 7.99967 2.66732C5.05965 2.66732 2.66634 5.06065 2.66634 8.00065Z",fill:"#036497"})),SvgPatients=et=>reactExports.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:16,cy:16,r:16,fill:"#E2E1DF"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0003 8C13.7903 8 12.0003 9.79 12.0003 12C12.0003 14.21 13.7903 16 16.0003 16C18.2103 16 20.0003 14.21 20.0003 12C20.0003 9.79 18.2103 8 16.0003 8ZM18.0003 12C18.0003 10.9 17.1003 9.99996 16.0003 9.99996C14.9003 9.99996 14.0003 10.9 14.0003 12C14.0003 13.1 14.9003 14 16.0003 14C17.1003 14 18.0003 13.1 18.0003 12ZM22.0003 22C21.8003 21.29 18.7003 20 16.0003 20C13.3103 20 10.2303 21.28 10.0003 22H22.0003ZM8.00037 22C8.00037 19.34 13.3304 18 16.0004 18C18.6704 18 24.0004 19.34 24.0004 22V24H8.00037V22Z",fill:"white"})),SvgWarning=et=>reactExports.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99301 1.33334C4.31301 1.33334 1.33301 4.32 1.33301 8C1.33301 11.68 4.31301 14.6667 7.99301 14.6667C11.6797 14.6667 14.6663 11.68 14.6663 8C14.6663 4.32 11.6797 1.33334 7.99301 1.33334ZM8.66634 8.66667V4.66667H7.33301V8.66667H8.66634ZM8.66634 11.3333V10H7.33301V11.3333H8.66634ZM2.66634 8C2.66634 10.9467 5.05301 13.3333 7.99967 13.3333C10.9463 13.3333 13.333 10.9467 13.333 8C13.333 5.05334 10.9463 2.66667 7.99967 2.66667C5.05301 2.66667 2.66634 5.05334 2.66634 8Z",fill:"#F68D2E"})),SvgWarningTriangle=et=>reactExports.createElement("svg",{width:22,height:19,viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.869346 16.9992C0.483381 17.6659 0.964439 18.5002 1.73477 18.5002H20.2659C21.0362 18.5002 21.5173 17.6659 21.1313 16.9992L11.8658 0.995058C11.4806 0.329773 10.5201 0.329772 10.1349 0.995057L0.869346 16.9992ZM12.0004 15.5002H10.0004V13.5002H12.0004V15.5002ZM10.0004 11.5002H12.0004V7.50025H10.0004V11.5002Z",fill:"#E57C00"})),SvgNotificationIcon=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0001 15.75V10.75C18.0001 7.68003 16.3701 5.11003 13.5001 4.43003V3.75003C13.5001 2.92003 12.8301 2.25003 12.0001 2.25003C11.1701 2.25003 10.5001 2.92003 10.5001 3.75003V4.43003C7.64006 5.11003 6.00006 7.67003 6.00006 10.75V15.75L4.00006 17.75V18.75H20.0001V17.75L18.0001 15.75ZM12 21.7501C13.1 21.7501 14 20.8501 14 19.7501H10C10 20.8501 10.9 21.7501 12 21.7501ZM8.00003 16.75H16V10.75C16 8.26998 14.49 6.24998 12 6.24998C9.51003 6.24998 8.00003 8.26998 8.00003 10.75V16.75Z",fill:"#ffffff"})),SvgLumonusLogo=et=>reactExports.createElement("svg",{width:138,height:60,viewBox:"0 0 380 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M126.525 97.0006H138.889V102.863H119V66H126.525V97.0006Z",fill:"#FAFAFF"}),reactExports.createElement("path",{d:"M171.784 73V102.258H164.205V98.5607C163.238 99.8276 161.965 100.831 160.388 101.57C158.847 102.274 157.163 102.627 155.336 102.627C153.007 102.627 150.946 102.151 149.154 101.201C147.362 100.215 145.947 98.7898 144.908 96.9229C143.905 95.0218 143.403 92.7689 143.403 90.1628V73H150.928V89.1072C150.928 91.431 151.519 93.227 152.703 94.494C153.885 95.7268 155.498 96.3419 157.541 96.3419C159.583 96.3419 161.249 95.7255 162.432 94.494C163.614 93.227 164.206 91.431 164.206 89.1072V73H171.786H171.784Z",fill:"#FAFAFF"}),reactExports.createElement("path",{d:"M216.19 73.0013C219.846 73.0013 222.785 74.11 225.005 76.3288C227.263 78.5121 228.391 81.5751 228.391 85.5177V102.682H220.866V86.5214C220.866 84.233 220.274 82.4902 219.092 81.2928C217.909 80.06 216.296 79.4449 214.253 79.4449C212.211 79.4449 210.58 80.0613 209.362 81.2928C208.18 82.4902 207.588 84.233 207.588 86.5214V102.682H200.063V86.5214C200.063 84.233 199.471 82.4902 198.288 81.2928C197.106 80.06 195.493 79.4449 193.45 79.4449C191.408 79.4449 189.724 80.0613 188.505 81.2928C187.323 82.4902 186.731 84.233 186.731 86.5214V102.682H179.206V73.4227H186.731V76.9616C187.698 75.7288 188.935 74.7606 190.439 74.0569C191.98 73.3531 193.664 73 195.492 73C197.82 73 199.899 73.4924 201.728 74.4783C203.555 75.4289 204.971 76.8021 205.974 78.5982C206.941 76.9085 208.339 75.5529 210.167 74.5315C212.03 73.5101 214.037 73 216.188 73L216.19 73.0013Z",fill:"#FAFAFF"}),reactExports.createElement("path",{d:"M248.757 103.208C245.889 103.208 243.311 102.592 241.017 101.36C238.723 100.093 236.913 98.3151 235.588 96.0268C234.298 93.7384 233.652 91.0981 233.652 88.1048C233.652 85.1114 234.315 82.4712 235.641 80.1828C237.002 77.8944 238.848 76.1339 241.178 74.9011C243.507 73.6341 246.105 73 248.971 73C251.838 73 254.436 73.6341 256.766 74.9011C259.095 76.1339 260.923 77.8932 262.249 80.1828C263.611 82.4712 264.292 85.1114 264.292 88.1048C264.292 91.0981 263.593 93.7384 262.195 96.0268C260.833 98.3151 258.97 100.093 256.605 101.36C254.275 102.593 251.66 103.208 248.757 103.208ZM248.757 96.7659C250.119 96.7659 251.39 96.4495 252.573 95.8154C253.791 95.1458 254.76 94.1611 255.475 92.8575C256.192 91.5551 256.551 89.9704 256.551 88.1048C256.551 85.3228 255.799 83.1939 254.293 81.7143C252.824 80.2005 251.015 79.4436 248.864 79.4436C246.713 79.4436 244.904 80.2005 243.436 81.7143C242.002 83.1926 241.286 85.3228 241.286 88.1048C241.286 90.8868 241.985 93.0334 243.383 94.5484C244.817 96.0268 246.608 96.7659 248.759 96.7659H248.757Z",fill:"#FAFAFF"}),reactExports.createElement("path",{d:"M286.313 73.0013C289.86 73.0013 292.728 74.11 294.914 76.3288C297.099 78.5121 298.193 81.5751 298.193 85.5177V102.682H290.667V86.5214C290.667 84.1976 290.076 82.4193 288.893 81.1878C287.711 79.9208 286.099 79.2867 284.055 79.2867C282.011 79.2867 280.328 79.9208 279.11 81.1878C277.927 82.4206 277.337 84.1976 277.337 86.5214V102.682H269.812V73.4227H277.337V77.0667C278.34 75.7997 279.612 74.8137 281.152 74.1087C282.729 73.3696 284.45 73 286.313 73V73.0013Z",fill:"#FAFAFF"}),reactExports.createElement("path",{d:"M333.461 73V102.258H325.882V98.5607C324.915 99.8276 323.642 100.831 322.066 101.57C320.525 102.274 318.841 102.627 317.013 102.627C314.684 102.627 312.624 102.151 310.831 101.201C309.04 100.215 307.624 98.7898 306.585 96.9229C305.582 95.0218 305.08 92.7689 305.08 90.1628V73H312.605V89.1072C312.605 91.431 313.197 93.227 314.38 94.494C315.562 95.7268 317.174 96.3419 319.217 96.3419C321.259 96.3419 322.926 95.7255 324.109 94.494C325.291 93.227 325.882 91.431 325.882 89.1072V73H333.461Z",fill:"#FAFAFF"}),reactExports.createElement("path",{d:"M352.283 103.211C349.846 103.211 347.66 102.788 345.724 101.944C343.789 101.064 342.248 99.8846 341.102 98.405C339.99 96.9267 339.381 95.2889 339.274 93.4941H346.853C346.996 94.6206 347.552 95.5534 348.52 96.2926C349.523 97.0317 350.758 97.4013 352.228 97.4013C353.698 97.4013 354.773 97.1191 355.56 96.5558C356.386 95.9926 356.797 95.2711 356.797 94.3902C356.797 93.4397 356.295 92.736 355.292 92.2778C354.325 91.7854 352.766 91.2564 350.615 90.6931C348.394 90.1653 346.566 89.6198 345.133 89.0566C343.736 88.4934 342.517 87.6302 341.478 86.4682C340.475 85.3063 339.973 83.7394 339.973 81.7675C339.973 80.1474 340.439 78.669 341.37 77.3312C342.338 75.9934 343.7 74.9365 345.455 74.1619C347.247 73.3873 349.344 73 351.745 73C355.292 73 358.123 73.8797 360.237 75.6402C362.352 77.3654 363.517 79.7069 363.732 82.6636H356.529C356.421 81.5017 355.919 80.5866 355.024 79.917C354.164 79.2133 352.998 78.8602 351.53 78.8602C350.168 78.8602 349.111 79.107 348.357 79.5993C347.642 80.0917 347.283 80.779 347.283 81.6586C347.283 82.6446 347.785 83.4015 348.788 83.9293C349.791 84.4216 351.35 84.933 353.465 85.4608C355.615 85.9885 357.389 86.5341 358.785 87.0973C360.183 87.6605 361.384 88.5402 362.387 89.7375C363.426 90.8994 363.964 92.4486 364 94.3852C364 96.0749 363.517 97.5886 362.548 98.9265C361.617 100.264 360.255 101.321 358.463 102.096C356.708 102.835 354.648 103.205 352.283 103.205V103.211Z",fill:"#FAFAFF"}),reactExports.createElement("path",{d:"M101.842 49.5807C96.3871 26.2394 72.9473 11.6893 49.5909 17.1467C43.8859 18.4799 38.6095 20.8975 33.9054 24.3313C29.3642 27.647 25.5494 31.7635 22.5673 36.5652C19.5851 41.3682 17.5872 46.6126 16.6313 52.1522C15.6407 57.8906 15.8165 63.6919 17.1548 69.3957C19.802 80.7148 26.6952 90.3195 36.5641 96.4377C43.4612 100.73 51.3643 103 59.4188 103C64.5194 103 69.5892 102.104 74.4884 100.337C81.7011 97.7428 88.0772 93.249 92.9276 87.3412C101.71 76.6573 104.96 62.8951 101.843 49.582L101.842 49.5807ZM68.1675 96.4018C68.1675 96.4018 67.9429 96.457 67.8698 96.4762C67.8672 96.4762 67.8569 96.4801 67.8544 96.4801C58.1048 98.7052 48.0537 96.9985 39.527 91.7092C39.1138 91.4577 38.7135 91.1805 38.3234 90.8995C39.033 90.8456 39.7259 90.7609 40.3893 90.6467C46.7115 89.5714 52.7463 85.4613 58.3319 78.4281C64.2461 82.0981 71.4999 86.1658 74.6283 87.1243L74.8002 87.1782C75.053 87.2578 75.3135 87.3386 75.606 87.4451C77.3576 88.02 80.1677 88.9413 83.2897 89.0068C78.891 92.5548 73.6954 95.1084 68.1688 96.4018H68.1675ZM35.3156 79.1416H35.3297L35.4414 78.9517C36.8695 76.5149 39.4243 74.7608 42.6348 74.0127C46.3265 73.1504 50.2723 73.6778 53.5367 75.4563C48.957 81.0587 44.2106 84.3103 39.4243 85.1226C37.7113 85.4138 35.9277 85.4421 34.1197 85.2072C33.7886 83.1721 34.1903 81.1344 35.3169 79.1429L35.3156 79.1416ZM61.6528 73.9074C61.8286 73.6482 62.0134 73.3736 62.2071 73.0849C62.4484 72.7269 62.7037 72.3484 62.9732 71.9519L63.2503 71.54C66.5981 66.565 72.2018 58.2384 74.1714 56.1442C77.1869 52.926 83.4552 48.4065 91.5662 54.2938C94.4931 56.4137 96.183 59.4061 96.5911 63.1851C96.9106 66.1416 96.3357 68.6964 96.074 69.6549C95.3092 72.3971 94.2224 75.0739 92.8442 77.6133C91.9845 79.1981 90.8463 80.5403 89.4618 81.6028C88.9395 82.0031 88.4891 82.2803 88.126 82.424H88.1247C87.4446 82.6973 86.6888 82.9463 85.8817 83.167C82.9317 83.9587 79.7109 82.9001 77.3614 82.1276C76.9752 81.9993 76.6095 81.8876 76.2746 81.7862C74.4307 81.2204 68.4883 78.1304 61.6541 73.9087L61.6528 73.9074ZM94.819 49.7257C89.5375 45.8979 84.1443 44.8406 78.7883 46.5806C74.3588 48.0203 71.2022 51.0499 70.0525 52.2844C67.8082 54.6685 62.5818 62.4318 58.7656 68.101L58.2934 68.8016C58.0137 69.2174 57.7442 69.619 57.4902 70.0001C57.2797 70.3145 57.0783 70.6148 56.8884 70.8971C52.3369 68.2049 46.5639 67.3259 41.3645 68.5463C36.6424 69.6485 32.8224 72.3304 30.6076 76.0991C29.5939 77.8314 28.9241 79.6151 28.6123 81.4128C24.5857 75.7398 22.199 69.0826 21.6973 62.0995C21.116 54.0295 23.2512 45.794 27.7128 38.9058C32.1757 32.0163 38.8225 26.6936 46.4305 23.9181C50.6893 22.3744 55.0919 21.5904 59.5163 21.5904C67.9173 21.5904 76.2155 24.4622 82.8816 29.6783C86.2115 32.2832 89.0576 35.3937 91.3429 38.9225C93.7078 42.5757 95.4131 46.5934 96.4102 50.8613C96.4256 50.9306 96.441 51.0012 96.4564 51.0705C95.9469 50.5944 95.4054 50.1491 94.8216 49.7244L94.819 49.7257Z",fill:"#FAFAFF"})),SvgLumonusLogoDarkVertical=et=>reactExports.createElement("svg",{width:278,height:172,viewBox:"0 0 278 172",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M24.0254 150.001H36.3888V155.863H16.5V119H24.0254V150.001Z",fill:"#081E43"}),reactExports.createElement("path",{d:"M69.2844 126.373V155.63H61.7049V151.933C60.7378 153.2 59.4651 154.204 57.888 154.943C56.3471 155.647 54.6631 156 52.8359 156C50.5071 156 48.4465 155.524 46.6541 154.573C44.8618 153.587 43.4472 152.162 42.4079 150.295C41.4047 148.394 40.9031 146.141 40.9031 143.535V126.373H48.4284V142.48C48.4284 144.804 49.019 146.6 50.2028 147.867C51.3852 149.099 52.9983 149.714 55.0409 149.714C57.0834 149.714 58.7494 149.098 59.9318 147.867C61.1143 146.6 61.7062 144.804 61.7062 142.48V126.373H69.2857H69.2844Z",fill:"#081E43"}),reactExports.createElement("path",{d:"M113.69 126.053C117.346 126.053 120.285 127.162 122.505 129.381C124.763 131.564 125.891 134.627 125.891 138.57V155.734H118.366V139.573C118.366 137.285 117.774 135.542 116.591 134.345C115.409 133.112 113.796 132.497 111.753 132.497C109.711 132.497 108.08 133.113 106.862 134.345C105.68 135.542 105.088 137.285 105.088 139.573V155.734H97.5627V139.573C97.5627 137.285 96.9708 135.542 95.7884 134.345C94.6059 133.112 92.9928 132.497 90.9503 132.497C88.9077 132.497 87.2237 133.113 86.0051 134.345C84.8227 135.542 84.2308 137.285 84.2308 139.573V155.734H76.7054V126.475H84.2308V130.014C85.1979 128.781 86.4345 127.813 87.9393 127.109C89.4803 126.405 91.1643 126.052 92.9915 126.052C95.3203 126.052 97.3989 126.544 99.2274 127.53C101.055 128.481 102.47 129.854 103.474 131.65C104.441 129.96 105.839 128.605 107.667 127.583C109.53 126.562 111.537 126.052 113.688 126.052L113.69 126.053Z",fill:"#081E43"}),reactExports.createElement("path",{d:"M146.257 155.94C143.389 155.94 140.811 155.323 138.517 154.092C136.223 152.825 134.413 151.047 133.088 148.758C131.798 146.47 131.152 143.83 131.152 140.836C131.152 137.843 131.815 135.203 133.141 132.914C134.502 130.626 136.348 128.865 138.678 127.633C141.007 126.366 143.605 125.731 146.471 125.731C149.338 125.731 151.936 126.366 154.266 127.633C156.595 128.865 158.423 130.625 159.749 132.914C161.111 135.203 161.792 137.843 161.792 140.836C161.792 143.83 161.093 146.47 159.695 148.758C158.333 151.047 156.47 152.825 154.105 154.092C151.775 155.325 149.16 155.94 146.257 155.94ZM146.257 149.497C147.619 149.497 148.89 149.181 150.073 148.547C151.291 147.877 152.26 146.893 152.975 145.589C153.692 144.287 154.051 142.702 154.051 140.836C154.051 138.054 153.299 135.925 151.793 134.446C150.324 132.932 148.515 132.175 146.364 132.175C144.213 132.175 142.404 132.932 140.936 134.446C139.502 135.924 138.786 138.054 138.786 140.836C138.786 143.618 139.485 145.765 140.883 147.28C142.317 148.758 144.108 149.497 146.259 149.497H146.257Z",fill:"#081E43"}),reactExports.createElement("path",{d:"M183.813 126.053C187.36 126.053 190.228 127.162 192.414 129.381C194.599 131.564 195.693 134.627 195.693 138.57V155.734H188.168V139.573C188.168 137.25 187.576 135.471 186.393 134.24C185.211 132.973 183.599 132.339 181.555 132.339C179.511 132.339 177.829 132.973 176.61 134.24C175.428 135.473 174.837 137.25 174.837 139.573V155.734H167.312V126.475H174.837V130.119C175.84 128.852 177.112 127.866 178.653 127.161C180.23 126.422 181.95 126.052 183.813 126.052V126.053Z",fill:"#081E43"}),reactExports.createElement("path",{d:"M230.961 126.373V155.63H223.382V151.933C222.415 153.2 221.142 154.204 219.566 154.943C218.025 155.647 216.341 156 214.513 156C212.184 156 210.124 155.524 208.331 154.573C206.54 153.587 205.124 152.162 204.085 150.295C203.082 148.394 202.58 146.141 202.58 143.535V126.373H210.105V142.48C210.105 144.804 210.697 146.6 211.88 147.867C213.062 149.099 214.674 149.714 216.717 149.714C218.759 149.714 220.426 149.098 221.609 147.867C222.791 146.6 223.382 144.804 223.382 142.48V126.373H230.961Z",fill:"#081E43"}),reactExports.createElement("path",{d:"M249.783 155.942C247.345 155.942 245.16 155.52 243.224 154.675C241.289 153.796 239.748 152.616 238.601 151.136C237.49 149.658 236.881 148.02 236.774 146.226H244.353C244.496 147.352 245.051 148.285 246.02 149.024C247.023 149.763 248.258 150.133 249.728 150.133C251.198 150.133 252.272 149.851 253.06 149.287C253.886 148.724 254.297 148.003 254.297 147.122C254.297 146.171 253.795 145.467 252.792 145.009C251.825 144.517 250.266 143.988 248.115 143.425C245.893 142.897 244.066 142.351 242.632 141.788C241.236 141.225 240.017 140.362 238.978 139.2C237.975 138.038 237.473 136.471 237.473 134.499C237.473 132.879 237.939 131.4 238.87 130.063C239.838 128.725 241.2 127.668 242.955 126.893C244.747 126.119 246.844 125.731 249.245 125.731C252.792 125.731 255.623 126.611 257.737 128.372C259.852 130.097 261.016 132.438 261.232 135.395H254.029C253.92 134.233 253.419 133.318 252.524 132.648C251.664 131.945 250.498 131.592 249.029 131.592C247.668 131.592 246.61 131.838 245.857 132.331C245.142 132.823 244.783 133.51 244.783 134.39C244.783 135.376 245.285 136.133 246.288 136.661C247.291 137.153 248.85 137.664 250.965 138.192C253.115 138.72 254.889 139.266 256.285 139.829C257.683 140.392 258.884 141.272 259.887 142.469C260.926 143.631 261.464 145.18 261.5 147.117C261.5 148.806 261.016 150.32 260.048 151.658C259.117 152.996 257.755 154.053 255.963 154.827C254.208 155.566 252.147 155.936 249.783 155.936V155.942Z",fill:"#081E43"}),reactExports.createElement("path",{d:"M181.342 49.5807C175.887 26.2394 152.447 11.6893 129.091 17.1467C123.386 18.4799 118.11 20.8975 113.405 24.3313C108.864 27.647 105.049 31.7635 102.067 36.5652C99.0851 41.3682 97.0872 46.6126 96.1313 52.1522C95.1407 57.8906 95.3165 63.6919 96.6548 69.3957C99.302 80.7148 106.195 90.3195 116.064 96.4377C122.961 100.73 130.864 103 138.919 103C144.019 103 149.089 102.104 153.988 100.337C161.201 97.7428 167.577 93.249 172.428 87.3412C181.21 76.6573 184.46 62.8951 181.343 49.582L181.342 49.5807ZM147.667 96.4018C147.667 96.4018 147.443 96.457 147.37 96.4762C147.367 96.4762 147.357 96.4801 147.354 96.4801C137.605 98.7052 127.554 96.9985 119.027 91.7092C118.614 91.4577 118.213 91.1805 117.823 90.8995C118.533 90.8456 119.226 90.7609 119.889 90.6467C126.211 89.5714 132.246 85.4613 137.832 78.4281C143.746 82.0981 151 86.1658 154.128 87.1243L154.3 87.1782C154.553 87.2578 154.813 87.3386 155.106 87.4451C156.858 88.02 159.668 88.9413 162.79 89.0068C158.391 92.5548 153.195 95.1084 147.669 96.4018H147.667ZM114.816 79.1416H114.83L114.941 78.9517C116.37 76.5149 118.924 74.7608 122.135 74.0127C125.827 73.1504 129.772 73.6778 133.037 75.4563C128.457 81.0587 123.711 84.3103 118.924 85.1226C117.211 85.4138 115.428 85.4421 113.62 85.2072C113.289 83.1721 113.69 81.1344 114.817 79.1429L114.816 79.1416ZM141.153 73.9074C141.329 73.6482 141.513 73.3736 141.707 73.0849C141.948 72.7269 142.204 72.3484 142.473 71.9519L142.75 71.54C146.098 66.565 151.702 58.2384 153.671 56.1442C156.687 52.926 162.955 48.4065 171.066 54.2938C173.993 56.4137 175.683 59.4061 176.091 63.1851C176.411 66.1416 175.836 68.6964 175.574 69.6549C174.809 72.3971 173.722 75.0739 172.344 77.6133C171.484 79.1981 170.346 80.5403 168.962 81.6028C168.44 82.0031 167.989 82.2803 167.626 82.424H167.625C166.945 82.6973 166.189 82.9463 165.382 83.167C162.432 83.9587 159.211 82.9001 156.861 82.1276C156.475 81.9993 156.109 81.8876 155.775 81.7862C153.931 81.2204 147.988 78.1304 141.154 73.9087L141.153 73.9074ZM174.319 49.7257C169.037 45.8979 163.644 44.8406 158.288 46.5806C153.859 48.0203 150.702 51.0499 149.552 52.2844C147.308 54.6685 142.082 62.4318 138.266 68.101L137.793 68.8016C137.514 69.2174 137.244 69.619 136.99 70.0001C136.78 70.3145 136.578 70.6148 136.388 70.8971C131.837 68.2049 126.064 67.3259 120.864 68.5463C116.142 69.6485 112.322 72.3304 110.108 76.0991C109.094 77.8314 108.424 79.6151 108.112 81.4128C104.086 75.7398 101.699 69.0826 101.197 62.0995C100.616 54.0295 102.751 45.794 107.213 38.9058C111.676 32.0163 118.323 26.6936 125.93 23.9181C130.189 22.3744 134.592 21.5904 139.016 21.5904C147.417 21.5904 155.716 24.4622 162.382 29.6783C165.711 32.2832 168.558 35.3937 170.843 38.9225C173.208 42.5757 174.913 46.5934 175.91 50.8613C175.926 50.9306 175.941 51.0012 175.956 51.0705C175.447 50.5944 174.905 50.1491 174.322 49.7244L174.319 49.7257Z",fill:"#081E43"})),SvgLumonusLogoOnly=et=>reactExports.createElement("svg",{width:157,height:157,viewBox:"0 0 157 157",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M139.336 64.2481C131.499 30.7118 97.8208 9.80641 64.2628 17.6475C56.066 19.5631 48.4849 23.0366 41.7261 27.9702C35.2015 32.7343 29.7203 38.6488 25.4357 45.5478C21.1511 52.4486 18.2805 59.9837 16.907 67.9428C15.4837 76.1877 15.7363 84.5229 17.6592 92.718C21.4627 108.981 31.3667 122.781 45.5462 131.571C55.4557 137.739 66.8107 141 78.3833 141C85.7118 141 92.996 139.713 100.035 137.174C110.398 133.446 119.559 126.99 126.528 118.502C139.146 103.151 143.816 83.378 139.338 64.2499L139.336 64.2481ZM90.9533 131.52C90.9533 131.52 90.6306 131.599 90.5255 131.627C90.5219 131.627 90.5071 131.632 90.5034 131.632C76.4954 134.829 62.0541 132.377 49.8031 124.778C49.2095 124.416 48.6343 124.018 48.0738 123.614C49.0933 123.537 50.0889 123.415 51.0421 123.251C60.1257 121.706 68.7964 115.801 76.8217 105.696C85.3191 110.968 95.7412 116.813 100.236 118.19L100.483 118.268C100.846 118.382 101.221 118.498 101.641 118.651C104.157 119.477 108.195 120.801 112.681 120.895C106.361 125.993 98.8957 129.661 90.9551 131.52H90.9533ZM43.7523 106.721H43.7726L43.933 106.448C45.985 102.947 49.6556 100.426 54.2684 99.3515C59.5726 98.1126 65.2418 98.8703 69.932 101.426C63.3521 109.475 56.5324 114.147 49.6556 115.314C47.1944 115.733 44.6317 115.773 42.034 115.436C41.5584 112.512 42.1354 109.584 43.7541 106.723L43.7523 106.721ZM81.5931 99.2003C81.8457 98.8279 82.1111 98.4334 82.3895 98.0186C82.7361 97.5042 83.103 96.9603 83.4902 96.3906L83.8884 95.7988C88.6985 88.6509 96.7497 76.6873 99.5797 73.6785C103.912 69.0545 112.918 62.5611 124.572 71.0199C128.777 74.0656 131.206 78.3651 131.792 83.7947C132.251 88.0425 131.425 91.7132 131.049 93.0904C129.95 97.0304 128.388 100.876 126.408 104.525C125.173 106.802 123.538 108.73 121.549 110.257C120.798 110.832 120.151 111.23 119.629 111.437H119.627C118.65 111.829 117.564 112.187 116.405 112.504C112.166 113.642 107.539 112.121 104.163 111.011C103.608 110.827 103.083 110.666 102.601 110.52C99.9521 109.707 91.4142 105.268 81.5949 99.2022L81.5931 99.2003ZM129.246 64.4564C121.657 58.9568 113.908 57.4376 106.213 59.9376C99.8488 62.0062 95.3135 66.3591 93.6616 68.1327C90.437 71.5582 82.9279 82.7124 77.4449 90.8577L76.7664 91.8644C76.3645 92.4617 75.9773 93.0388 75.6123 93.5864C75.3099 94.0381 75.0205 94.4695 74.7476 94.8751C68.2082 91.0071 59.9137 89.7442 52.4432 91.4975C45.6586 93.0812 40.1701 96.9345 36.988 102.349C35.5315 104.838 34.5691 107.401 34.1211 109.984C28.3358 101.833 24.9066 92.2682 24.1857 82.2349C23.3505 70.6401 26.4184 58.8074 32.8287 48.9106C39.2409 39.012 48.791 31.3644 59.7219 27.3766C65.841 25.1586 72.1665 24.0322 78.5234 24.0322C90.5938 24.0322 102.517 28.1583 112.094 35.6528C116.879 39.3954 120.968 43.8645 124.251 48.9346C127.649 54.1835 130.099 59.956 131.532 66.0881C131.554 66.1876 131.576 66.289 131.598 66.3886C130.866 65.7046 130.088 65.0648 129.249 64.4546L129.246 64.4564Z",fill:"#081E43"})),chemotherapy="/media/content/assets/chemotherapy-olv4Mw-D.jpg",ctSimulation="/media/content/assets/ct-simulation-Cl03mYDr.jpg",faq="/media/content/assets/faq-DF3Byg41.jpg",faqIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAcdSURBVHgB5VtNbttGFH4zZKwALWr1BGFOUPkE8U8TIKs4J7CzK1DXUk4Q5QSR46LbOCeIswpQx5ay6DrKCcKcoFoUaGxLnLyfoUT9mpKGNqV8gCCRGlJ637x58/6o4DrwplKEHy4C8LwSgArwdcd+UwSFLwOhHJov+Aohwtd/fhMe11qQMRRkhZO9ddDeI/wFFBrWYTY0kZwGRJ23cP/PBmQAtwTQTBejMhhVAZpdQYuFgOgDGC+ESxTqNp7bGJjdOl57CQFrhO4gafqeJS+wI0K+z4V6Dg9rITiCGwJotj3vGfRmGoVWBxDhH75fa8A8+LtSAq+zDkrv4FGJzxk4ckXEfAS8qwSwYp7hXXbtmQZ08I/NK/Q4EBl+hNqldvjYARGzE1DfJ1Wvgqh6toIP/TYSb6JqlwhlqrDx8jnMgOkJoFkvmFcg6h6i4E+uTfBBMBGmDmInmnCuHk+rDdMRwCpo3vAP0hrXUB0yZjeB00oVtYBsUAhtJOFBrZn20vQE1Pd3UOgafzao7lu1GuQJJxU0xKyZtDyewtZhqv+XjgAR/giIYYUMb6Rn+FqRXBIp7cLVBPQLv4HCh5Bn9JOwiyS8njR8MgGy5ulmrYUQPkaShA7+7wlGejwBYu0tk2ott2o/Dj0Sirg7rI3bHfTYGxRig6KeLpzwBNJW2qKJgALvXCMxmoD6vri1tNXlzdpPA1J9mkByoU/3q6OGDC8BUf3PIEZvLRf7/Lw4K9NSWEcfYW3QRxjWgBV2KHCvj54vhfCENmsBoEF/MfhVPwE0+xTYKAwytg6PYFlAs27MAZAWkMOUQD8B8eyDmimwyDW0rgJt514soz3d/RTPPpi3C7PfTwNaziO0oEdAPPsdvbhW/ypoK5tvdrqnul8qG97eVGh7HRCjjlsjbHMKDmICKKXFTg+q/7LDRCRjEROt23QoBGhPVELrI1h2aO9I3jHpCjEBkn1tLaTLOy2SywDh81owpsTW3zUoTf6TqBoyf5wbx8qYT+jlrsM/v9/xod3GtLNHGVb3s79qPqLkAZBxXbmUsDoX0E0SGL7qDR+0srn2yC0BXcOKbmjeAirNSwCoTKelVofw/BCyQAR5tCuiiVrhEugVKkNwBakUveLPHsbiZ+UmbB5sJFLqJf49ZY7x90tYDP0CWy8riWvjKlPIQZnSz/D9IG2i80qQLTork2f4s8+1uPikK7RRm7Rp2MDqGKLoE5+XDJNEmlQn1EDRGdYC1TGfJ4I8HoPBCyUzOkUWnrNSWBo7Lf8CTqFWfcgClH462XuNM7mLoehruH/YwNz9LkpO6bW7sHkY8rh6Bdci5x4EKza3T5nnTRuPnFSalpSS3a5dIsiGgJGIAmS81RdoiSr2jhVXeMK+MeSan5WBA5kL93HKNRJgcImpIqt5f4IyALCG0lD2eaCXgMaLyW65LIvH8KUrQ0l9PktHhRwhgxkZsgMne0/Q/wjhdgELrN0+AlQSzEF6ZhvX+hvoXJLxK+LxC8gQiXD4chWyBKm1sVlaz6tDofDZuqNhd4wkMVFwPO/f+sjjlMPdaQQ0zoqo3/+YMHQJamk5R4PnJ/yArdoRG0EqVlCCcvPgLidewebsZEy1O4auT36XAXwkIOTcsFIBuMaoNRsHI/3Hg2PoOrmWChwZwkcPkBKGFB463mOdocWdIEa78yhP/6iwf1Fo2231rPwvvj7D9wKqE5DM0DWCHAoHFB7C9wEK/z/QByHA6Aa/f/WewLLj/R7tPJQDYffbpsSADqgEfg+WHcp7xO/aa/AbH5AlVmyZhyonS4Vu7QNlte52zxFqqwN+172c+dJhxbrZJup2jfRXh+MqKjkgD5ewOhTvdOSAWfTXBju2JrjSXz9bCkjPQ8C5iASG+wNiLbiit2ah0Gv36Zt9wnB/QKwFGUdh1wrR6KHZJwwTwBEZV1FLGJYuPgmUiZrQ8zC6R0hq6RQkVRZ6W+Rtz6bZxvQ8jG+T6/UIwqQ2s9yCqlJcmJnc5je+TY7bSpi1IhuQd9mGpc6xanscSYYJNc+rW2WTndjnuDPkXRP4sR004AbXvTR1VycNT9csvSgkiNpLCj2F8AQNaUA3kuUg+ynZh7yBlqis+dTCE9IRQBASKD8XoHH8aD2rfIA62gvW4Ekxtpr20umeGCEknxq56SUhD2294CzyjI/vTE8AYfChJYePsaXC4POJVH8EFH6GusZsBMR4X9nG8Jm8xYCPsyZi+MHMuR/amo+AGOxuWn9b0OCY+wKzLvOSQUL/yF0sdH8yviR4y3ayV2FOuCEghhBBy2I9cbbB7Tem8wHL5CE8+GtyevvdbwHc8lFgTNMbRfeJhZZ7Ufns19oxOIJbAmKQjYiQhGEyYrRgdL9QMGJck3v7LrC2mMHSyoaAQVBAxQ9EK/LL4wJMMDCqJY/Rx4/Qe00uq2XcWfYN2SAVJFgOCU4AAAAASUVORK5CYII=",attendingYourAppointments="/media/content/assets/nurse-education-CKKZCcEO.jpg",support="/media/content/assets/support-wgbAYmVn.jpg",whileOnTreatment="/media/content/assets/while-on-treatment-3KBVy2eN.jpg",beach="/media/content/assets/beach-gL95kBjZ.jpg",AccountCircleOutlinedIcon=createSvgIcon$1([jsxRuntimeExports.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5m10.79-1.38C16.45 15.8 14.32 15 12 15s-4.45.8-6.14 2.12C4.7 15.73 4 13.95 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12"},"0"),jsxRuntimeExports.jsx("path",{d:"M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6m0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11"},"1")],"AccountCircleOutlined"),AddIcon$1=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),AddCircleOutlineIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.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 8"}),"AddCircleOutline"),Adjust=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 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 8m3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3"}),"Adjust"),AppsIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"}),"Apps"),ArchiveIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M6.24 5h11.52l.81.97H5.44zM5 19V8h14v11zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z"}),"ArchiveOutlined"),ArrowBack=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),ArrowBackIosNew=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew"),ArrowForwardIos$1=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos"),ArrowForwardIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIosSharp"),ArrowRightIcon$1=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),Assignment=createSvgIcon$1(jsxRuntimeExports.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"),AssignmentIndOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-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-.25c.22 0 .41.1.55.25.12.13.2.31.2.5 0 .41-.34.75-.75.75s-.75-.34-.75-.75c0-.19.08-.37.2-.5.14-.15.33-.25.55-.25M19 19H5V5h14zM12 6c-1.65 0-3 1.35-3 3s1.35 3 3 3 3-1.35 3-3-1.35-3-3-3m0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m-6 6.47V18h12v-1.53c0-2.5-3.97-3.58-6-3.58s-6 1.07-6 3.58M8.31 16c.69-.56 2.38-1.12 3.69-1.12s3.01.56 3.69 1.12z"}),"AssignmentIndOutlined"),Ballot=createSvgIcon$1(jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M13 9.5h5v-2h-5zm0 7h5v-2h-5zm6 4.5H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2M6 11h5V6H6zm1-4h3v3H7zM6 18h5v-5H6zm1-4h3v3H7z"}),"Ballot"),BallotOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 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-2m0 16H5V5h14zM11 6H6v5h5zm-1 4H7V7h3zm1 3H6v5h5zm-1 4H7v-3h3z"}),"BallotOutlined"),Check=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),CheckBox$1=createSvgIcon$1(jsxRuntimeExports.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"),CheckBoxOutlineBlank$1=createSvgIcon$1(jsxRuntimeExports.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"),CheckCircle$1=createSvgIcon$1(jsxRuntimeExports.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"),CheckCircleOutlined=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 2C6.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 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined"),ChevronLeftIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),ChevronRightIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),CircleIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"}),"Circle"),Clear=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),CloseIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),CloseOutlined=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined"),ContentCopyIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),ControlPoint=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 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 8"}),"ControlPoint"),DeleteOutline=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),DescriptionOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),DragIndicator=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator"),Edit=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),EditNote=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"}),"EditNote"),EditOutlined=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined"),ErrorOutlineIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),EventOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zm0-12H5V6h14zm-7 5h5v5h-5z"}),"EventOutlined"),ExitToAppIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp"),ExpandLessIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),ExpandMoreIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),FilterList$2=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),FilterListOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterListOutlined"),FindInPageOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.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-2V8zM6 4h7l5 5v8.58l-1.84-1.84c1.28-1.94 1.07-4.57-.64-6.28C14.55 8.49 13.28 8 12 8c-1.28 0-2.55.49-3.53 1.46-1.95 1.95-1.95 5.11 0 7.05.97.97 2.25 1.46 3.53 1.46.96 0 1.92-.28 2.75-.83L17.6 20H6zm8.11 11.1c-.56.56-1.31.88-2.11.88s-1.55-.31-2.11-.88c-.56-.56-.88-1.31-.88-2.11s.31-1.55.88-2.11c.56-.57 1.31-.88 2.11-.88s1.55.31 2.11.88c.56.56.88 1.31.88 2.11s-.31 1.55-.88 2.11"}),"FindInPageOutlined"),HeadsetMicOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 14v4h-2v-4zM7 14v4H6c-.55 0-1-.45-1-1v-3zm5-13c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9"}),"HeadsetMicOutlined"),HelpOutline=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.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"}),"HelpOutline"),HighlightOffIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 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 8"}),"HighlightOff"),InsertDriveFile=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),KeyboardArrowDown=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),KeyboardArrowUp=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),LaunchIcon=createSvgIcon$1(jsxRuntimeExports.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"}),"Launch"),Link$1=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),LinkOff=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff"),ListAltIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),LocationOnOutlinedIcon=createSvgIcon$1([jsxRuntimeExports.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7M7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9"},"0"),jsxRuntimeExports.jsx("circle",{cx:"12",cy:"9",r:"2.5"},"1")],"LocationOnOutlined"),ManageAccounts=createSvgIcon$1([jsxRuntimeExports.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),jsxRuntimeExports.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts"),MenuIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),MobileOffIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M2.76 2.49 1.49 3.76 5 7.27V21c0 1.1.9 2 2 2h10c1.02 0 1.85-.77 1.98-1.75l1.72 1.72 1.27-1.27zM7 19V9.27L16.73 19zM17 5v9.17l2 2V3c0-1.1-.9-2-2-2H7c-.85 0-1.58.54-1.87 1.3L7.83 5z"}),"MobileOff"),ModeCommentOutlined=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M20 17.17 18.83 16H4V4h16zM20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2"}),"ModeCommentOutlined"),MoreHorizIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),NoEncryptionOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2h-4.66l2 2H18v5.56l2 2V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.32 0-4.26 1.59-4.82 3.74L8.9 6.46zM4.41 4.81 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12.78l1 1 1.41-1.41zM6 20V10h.78l10 10z"}),"NoEncryptionOutlined"),OpenInNew=createSvgIcon$1(jsxRuntimeExports.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"),PersonOutline=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline"),PersonOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonOutlined"),PlagiarismOutlined=createSvgIcon$1([jsxRuntimeExports.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"},"0"),jsxRuntimeExports.jsx("path",{d:"M9.03 11.03c-1.37 1.37-1.37 3.58 0 4.95 1.12 1.12 2.8 1.31 4.13.59l1.88 1.88 1.41-1.41-1.88-1.88c.71-1.33.53-3.01-.59-4.13-1.37-1.37-3.59-1.37-4.95 0m3.53 3.53c-.59.59-1.54.59-2.12 0-.59-.59-.59-1.54 0-2.12.59-.59 1.54-.59 2.12 0 .59.59.59 1.53 0 2.12"},"1")],"PlagiarismOutlined"),PollOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.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-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"}),"PollOutlined"),RadioButtonCheckedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked"),RateReviewOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H5.17l-.59.59-.58.58V4h16zm-9.5-2H18v-2h-5.5zm3.86-5.87c.2-.2.2-.51 0-.71l-1.77-1.77c-.2-.2-.51-.2-.71 0L6 11.53V14h2.47z"}),"RateReviewOutlined"),RemoveCircleOutline=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M7 11v2h10v-2zm5-9C6.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 8"}),"RemoveCircleOutline"),Search=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),SmsOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H5.17L4 17.17V4h16zM7 9h2v2H7zm8 0h2v2h-2zm-4 0h2v2h-2z"}),"SmsOutlined"),SupervisorAccountOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12m0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7m.05 10H4.77c.99-.5 2.7-1 4.23-1 .11 0 .23.01.34.01.34-.73.93-1.33 1.64-1.81-.73-.13-1.42-.2-1.98-.2-2.34 0-7 1.17-7 3.5V19h7v-1.5c0-.17.02-.34.05-.5m7.45-2.5c-1.84 0-5.5 1.01-5.5 3V19h11v-1.5c0-1.99-3.66-3-5.5-3m1.21-1.82c.76-.43 1.29-1.24 1.29-2.18C19 9.12 17.88 8 16.5 8S14 9.12 14 10.5c0 .94.53 1.75 1.29 2.18.36.2.77.32 1.21.32s.85-.12 1.21-.32"}),"SupervisorAccountOutlined"),UpdateIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update"),UploadOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm3-10.17L14.17 8H13v6h-2V8H9.83zM5 18h14v2H5z"}),"UploadOutlined"),WarningIcon$6=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),WarningOutlinedIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"WarningOutlined"),WarningSharp=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"WarningSharp"),REACT_APP_REGION$v=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$p=REACT_APP_REGION$v;class StepperButton extends reactExports.Component{constructor(){super(...arguments);Nr(this,"generateStepperIDString",rt=>`stepper-item-${rt.toLowerCase().replace(/ /g,"-")}`)}render(){const{linkText:rt,linkNumber:nt,linkHref:lt,onStepperButtonClick:ut,isActive:dt,visited:pt,alert:ht,disabled:mt,id:xt}=this.props;return jsxRuntimeExports.jsxs(Link$2,{id:xt||this.generateStepperIDString(rt),className:classNames$1("stepper-button",{"stepper-button-UK":region$p===Region.UK},{active:dt},{visited:pt&&!dt},{disabled:mt}),onClick:ut,to:lt,children:[jsxRuntimeExports.jsx("div",{className:"link-number-wrapper",children:ht?jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning"}):jsxRuntimeExports.jsx("div",{className:"link-number-white-border",children:jsxRuntimeExports.jsx("div",{className:"link-number",children:pt&&!dt?jsxRuntimeExports.jsx(SvgGreenTickNoBorder,{className:"stepper-tick"}):nt})})}),jsxRuntimeExports.jsx("div",{className:"link-text-wrapper",children:jsxRuntimeExports.jsx("div",{className:`link-text ${ht?"alert-color":""} ${mt?"disabled":""}`,children:rt})})]})}}let Stepper$1=class extends reactExports.Component{constructor(rt){super(rt);Nr(this,"referrer");Nr(this,"closeOnboardingPopover",()=>{this.props.closeAndAckPopup&&this.props.closeAndAckPopup()});Nr(this,"continueOnboarding",()=>{this.props.closePopup&&this.props.closePopup()});Nr(this,"isLinkActive",rt=>{const{basePath:nt,location:{pathname:lt}}=this.props;return lt.includes(rt)&&lt.includes(nt)});Nr(this,"hasLinkBeenVisited",rt=>{const{visitedLinks:nt}=this.props;return rt=rt.replace(/\//,""),nt?Object.keys(nt).includes(rt):!1});this.referrer=React$4.createRef()}render(){const{basePath:rt,links:nt,onStepperButtonClick:lt,visitedLinks:ut,headerTitle:dt,disabled:pt,popoverOpen:ht}=this.props;return jsxRuntimeExports.jsxs("div",{id:"stepper",children:[dt&&jsxRuntimeExports.jsxs("div",{className:"stepper-header-container",children:[jsxRuntimeExports.jsx("img",{src:dt==="Chemotherapy"?chemotherapyIcon:radiotherapyIcon,alt:`${dt}-icon`,id:"stepper-icon"}),jsxRuntimeExports.jsx("h1",{id:"stepper-heading",children:dt})]}),nt.map((mt,xt)=>{const Mt=`${rt}${mt.href}`,vt=xt+1;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:mt.linkText==="Referrers"?jsxRuntimeExports.jsx(OnboardingPopover,{handleClose:()=>this.closeOnboardingPopover(),handleVisitLink:()=>{},popoverOpen:!!ht,target:this.referrer.current,feature:"GP Referrer",handleNext:()=>this.continueOnboarding(),step:"1",logEvent:Ot=>this.props.logPopoverData&&this.props.logPopoverData({variables:{data:JSON.stringify(Ot)}}),children:jsxRuntimeExports.jsx("div",{ref:this.referrer,children:jsxRuntimeExports.jsx(StepperButton,{id:"stepper-item-referrers",linkText:mt.linkText,linkNumber:vt,linkHref:Mt,isActive:ht?!0:this.isLinkActive(mt.href),visited:ut!==void 0?this.hasLinkBeenVisited(mt.href):void 0,onStepperButtonClick:lt,disabled:pt})})}):jsxRuntimeExports.jsx(StepperButton,{linkText:mt.linkText,linkNumber:vt,linkHref:Mt,isActive:this.isLinkActive(mt.href),visited:ut!==void 0?this.hasLinkBeenVisited(mt.href):void 0,onStepperButtonClick:lt,disabled:pt})},`stepper-item-${xt}`)})]})}};const Stepper$2=withRouter(Stepper$1);class ROAlert extends reactExports.Component{render(){const{title:tt,children:rt,style:nt="error"}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:classNames$1("ro-alert",nt),children:[tt&&jsxRuntimeExports.jsx("div",{className:"ro-alert-title",children:tt}),jsxRuntimeExports.jsx("div",{className:"ro-alert-body-container",children:jsxRuntimeExports.jsx("div",{className:"ro-alert-body",children:rt})})]})})}}const GCPagination=et=>jsxRuntimeExports.jsx(Pagination$1,{sx:{alignSelf:"center"},showFirstButton:!0,showLastButton:!0,variant:"outlined",shape:"rounded",count:et.totalPages,boundaryCount:5,page:et.currentPage,onChange:(tt,rt)=>{et.onPageChange(rt)}});var ArrowForwardIosSharp={},createSvgIcon={};const require$$0$1=getAugmentedNamespace(utils$r);var hasRequiredCreateSvgIcon;function requireCreateSvgIcon(){return hasRequiredCreateSvgIcon||(hasRequiredCreateSvgIcon=1,function(et){"use client";Object.defineProperty(et,"__esModule",{value:!0}),Object.defineProperty(et,"default",{enumerable:!0,get:function(){return tt.createSvgIcon}});var tt=require$$0$1}(createSvgIcon)),createSvgIcon}var _interopRequireDefault$r=interopRequireDefaultExports;Object.defineProperty(ArrowForwardIosSharp,"__esModule",{value:!0});var default_1$o=ArrowForwardIosSharp.default=void 0,_createSvgIcon$o=_interopRequireDefault$r(requireCreateSvgIcon()),_jsxRuntime$o=jsxRuntimeExports;default_1$o=ArrowForwardIosSharp.default=(0,_createSvgIcon$o.default)((0,_jsxRuntime$o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIosSharp");const QAAccordion=et=>{const{title:tt,content:rt}=et,nt=useTheme$1();return jsxRuntimeExports.jsxs(Accordion$2,{style:{marginBottom:"2px"},children:[jsxRuntimeExports.jsx(AccordionSummary$1,{expandIcon:jsxRuntimeExports.jsx(default_1$o,{sx:{fontSize:"0.9rem"}}),sx:{"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"}},children:jsxRuntimeExports.jsx(Typography,{className:"question-title",variant:"subtitle2",style:{fontWeight:"bold"},children:tt})}),jsxRuntimeExports.jsx(AccordionDetails,{children:jsxRuntimeExports.jsx(Typography,{variant:"body2",style:{color:nt.palette.grey[700]},children:rt})})]})},checkedIcon$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJLSURBVHgBrVVNSBtREP5204M9VS8WeihJoTSUHmIp1KLQbe2PLZRue9HeTE+9FNtbPJQk9ODPRcG7Ch7Ui66I4MFgPAgRBBU8BD24CArmoMlBMBd15r34E/YnuzEfbHYyb3a+eTPvzShwQ0Kvx1104xwa/QuWHkBBnnQb9J7FGQz0GKaTC8VW26sHaWWUJA3eMEaESTuigMV0QO8m55MkheEdEajowvtwEYvZjDNBvx6nSPpIqoN/8DftRAIiWbYScOTS+W2hEUnhcieyBpxzFetEUI9agA/BGZq4JmpJEa+Zcwb7koeEXvLE7KIKBO81YrDtJ6Lzw8gXT6wGp2gI4EO4C1ycKpwv/fiP5gdPcHiSR+Zg22oUQFGl7XxFFZj5HhMkxs4qhtbm7I0UvFbpJwKf4LREGkMwCzmRHhcEVbficoTxlo4yXbylE39efBHO30z8s8/9DRd33FZHP/+G9vCZkJMrU8J5orVDOGXnTFIJAbwTRbbdxWbOROfTVrQ/eo7I/RB+NX0U+lfjMWSP9lERdB/4HphO6xu5XXyblpdbf/xSvP+mRoTeE6jjcg2W3WzSe1vCKSO5Mul8YuxA7VwRPb8Ox5VsuRZM5gvnCMle1KcvwXvv94oxxIyoWmKKigZVK8iJl2RRtutUNo+3NCwU/y3DgaCHol+4JpAkGbSFFVrUcBtw5DHjaq6UT7RUNk07KdBsaIbfqcZpkZGXDS3rTJY7mSKpwUefSlPkny7TUs7rBjnpdNFxmey6b5ni4TtUxBAShuMBuQC0M7185YntcAAAAABJRU5ErkJggg==",notCheckedIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAH0SURBVHgBtVbtcdpAFNx7QoIJDFF+JpMf0IE7iDuwO8i4AtMBpIN0kJTgdGB34AY8h6zE+cmBYQaQ7i7vaYjjEEQcc9kZaUa60+59vNuVwh5ordNGA+fe4xgePX7V2zQZKFx77744Rxf9fn9cx6FqiHtRhE+k6Ljd7qDZbCFOEjRYTVCWJSxfi8Ucq9USpS0/W4sP+4QekOfZeX6bTaZm4q21/imQvreZnmT6ZvA38uHdt9wXReH/FfKNfJvnelg78ueSb4v8MRNZc5niIeSPRWSJhVO4SW4RYdh9maY/N/EQCEe3202lSORZiVIzaejXb94iFJxz+H73FUXpXhFP4VTKMCSIWV9weRPcgFSEk3ang9BotVpQEb0jPqFHUXT42m8jjhPI6ZdNDrK529hwVgL/FbJEY/GW0NhwGmKJcbFeIzTEDHnw1+QtrlbrJUJDnFbsnBzwcTHnBz4cISE27kAXxB5unHeXs/sZQmE2NVVGSD5UVcRhcTa/nxkbYLOFYzo1RgLot4ZM64FYbXmAo5YPdq13Bw83jJ4r8ov8ZrR3iqIu2WA4Bp8Cx7EqfTmwJrtGXhv6fAJHcRK/F6cVMxS/ehz6RbHGarmsytFZd2k9znaFvsIeVEKEU+Vxwj2P+FVaNfDp5/uYf2eupMylEus4fgDlwp4NEE/A3gAAAABJRU5ErkJggg==",RadioFieldTile=({name:et,label:tt,value:rt,checked:nt,keyId:lt})=>jsxRuntimeExports.jsxs("ul",{className:"radio-field-tile",children:[jsxRuntimeExports.jsx("div",{className:"radio-field-value",children:rt}),jsxRuntimeExports.jsxs("li",{className:"radio-field-check-label",children:[jsxRuntimeExports.jsx("input",{id:`radio-${et}-${rt}`,type:"radio",name:et,value:rt,checked:nt,onChange:()=>{}}),jsxRuntimeExports.jsxs("label",{htmlFor:`radio-${et}-${rt}`,children:[nt?jsxRuntimeExports.jsx("img",{src:checkedIcon$2,alt:"checked icon"}):jsxRuntimeExports.jsx("img",{src:notCheckedIcon,alt:"unchecked icon"}),jsxRuntimeExports.jsx("span",{"data-testid":"radio-label",children:tt})]})]})]},lt),StyledToggleButton=styled$1(ToggleButton$1)`
&& {
  font-weight: bold;
  line-height: normal;
  text-transform: none;
  outline: none;
  border: 1px solid ${et=>({$invalid:tt})=>tt?et.theme.palette.error.main:et.theme.palette.grey[300]} !important;
  border-radius: ${et=>({borderradius:tt})=>tt};
  color: ${et=>({selected:tt})=>tt?et.theme.palette.primary.contrastText:et.theme.palette.text.primary} !important;
  background-color: ${et=>({selected:tt})=>tt?et.theme.palette.primary.dark:"white"} !important;
  &:hover {
    background-color: ${et=>({selected:tt})=>tt?et.theme.palette.primary.dark:"white"} !important;
  }
  min-width: ${({$alternateStyle:et,minwidth:tt})=>tt||(et?"131px":"176px")};
  max-height: ${({$alternateStyle:et})=>et?"40px":"48px"};;
  }

  .MuiToggleButton-root {
    line-height: initial;
  }
}}
`,ToggleButton=et=>{const{firstChild:tt,lastChild:rt,invalid:nt,alternateStyle:lt=!1,value:ut,...dt}=et,pt=lt?"4px":"8px",ht=()=>tt&&rt?pt:tt?`${pt} 0 0 ${pt}`:rt?`0 ${pt} ${pt} 0`:"0";return jsxRuntimeExports.jsx(StyledToggleButton,{disableRipple:!0,fullWidth:!0,$firstChild:tt,$lastChild:rt,$invalid:nt,$alternateStyle:lt,borderradius:ht(),value:ut,...dt})},StyledInput$2=styled$1(TextField)`
  && {
    justify-content: center;
    text-align: center;
    fieldset {
      border: 1px solid ${et=>et.invalid?et.theme.palette.error.main:et.theme.palette.grey[300]};
      border-radius: 4px;
    }
    width: ${et=>et.width?et.width:"auto"};
    input[type='number']::-webkit-inner-spin-button,
    input[type='number']::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    input {
      height: 40px;
      &.MuiInputBase-input {
        padding: 8px;
      }
    }
  }
  .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
    border-color: ${et=>et.theme.palette.primary.main};
  }
  .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
    border-color: ${et=>et.theme.palette.primary.main};
  }
`,InputBox=styled$1("div")`
  display: flex;
  flex-direction: row;
`,Unit=styled$1("div")`
  text-transform: uppercase;
  color: ${et=>et.theme.palette.text.primary};
  font-weight: bold;
  font-size: 0.8125rem;
  margin: auto 9px;
`,Input$3=et=>jsxRuntimeExports.jsxs(InputBox,{children:[jsxRuntimeExports.jsx(StyledInput$2,{name:et.name,value:et.value,invalid:et.invalid,width:et.width,multiline:et.multiline,rows:et.rows,onBlur:et.onBlur,onChange:et.onChange,variant:"outlined",size:"medium",type:et.type,placeholder:et.placeHolder,onFocus:et.onFocus,inputProps:{maxLength:et.maxLength}}),jsxRuntimeExports.jsx(Unit,{children:et.units})]}),getRemSize=(et,tt="desktop")=>tt==="desktop"?`${et/16}rem`:`${et/18}rem`,Wrapper$9=styled$1("div")`
  display: flex;
  color: ${et=>et.color};
  font-size: ${et=>getRemSize(et.$fontSize)};
  margin: ${et=>et.$margin};
  justify-content: flex-start;
  align-items: end;
  line-height: 1.25;
`,ErrorIcon$2=styled$1(SvgErrorCross)`
  min-width: ${et=>et.$iconWidth||"20px"};
  height: ${et=>et.$iconHeight||"20px"};
  margin-right: 5px;
`,InfoIcon$2=styled$1(SvgInfoCircleBlueIcon)`
  min-width: ${et=>et.$iconWidth||"20px"};
  height: ${et=>et.$iconHeight||"20px"};
  margin-right: 5px;
`,WarningIcon$5=styled$1(ErrorOutlineIcon)`
  min-width: ${et=>et.$iconWidth||"20px"};
  height: ${et=>et.$iconHeight||"20px"};
  margin-right: 5px;
`,TextWrapper=styled$1("span")``,HelperMessage=({fieldName:et,fieldText:tt,helperType:rt,fontSize:nt,errorMargin:lt})=>{const ut=useTheme$1();rt||(rt="error");const pt={color:{error:{icon:ErrorIcon$2,color:ut.palette.error.main},info:{icon:InfoIcon$2,color:ut.palette.info.main},warning:{icon:WarningIcon$5,color:ut.palette.warning.dark}}[rt].color,$fontSize:nt||16,$margin:lt||"9px 0"};return jsxRuntimeExports.jsx(Wrapper$9,{...pt,id:"form-helper-message","data-testid":`${rt}-${et}`,children:jsxRuntimeExports.jsx(TextWrapper,{children:tt})})},supportedSize={tablet:768,transition:920,desktop:1920},StyledToolTip=styled$1("div")`
  margin-left: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
`,StyledRow$9=styled$1("div")`
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  width: 100%;

  .label-form-row {
    padding: 0 10px 0 0;
  }
  textarea {
    overflow: hidden;
  }

  select {
    border-radius: 5px;
    padding-left: 8px;
    line-height: 1.5;
  }

  textarea,
  select,
  input {
    :focus-visible {
      outline-color: ${et=>et.theme.palette.primary.main};
    }
  }

  @media all and (max-width: ${supportedSize.transition}px) {
    display: inline-flex;
    flex-direction: column;
    align-content: flex-start;
    gap: 5px;
  }

  @media all and (max-width: ${supportedSize.tablet}px) {
    margin-top: 0.6rem;
    display: inline-flex;
    flex-direction: column;
    align-content: flex-start;
    gap: 2px;
  }
`,StyledLabel$3=styled$1("label")`
  display: flex;
  flex: 1;
  align-items: center;
  padding-left: 0px;
  padding-top: 6px;
  padding-right: 1em;
  min-width: 300px;

  align-self: baseline;
  line-height: 20px;
  margin-top: 6px;
`,StyledChild=styled$1("div")`
  display: flex;
  flex: 2;
  flex-direction: column;
`,FormRow$2=({fieldLabel:et,fieldName:tt,className:rt,labelClass:nt,tooltipElement:lt,children:ut})=>jsxRuntimeExports.jsxs(StyledRow$9,{className:rt,children:[jsxRuntimeExports.jsxs(StyledLabel$3,{"data-testid":`label-${tt}`,htmlFor:tt,className:nt,children:[et,lt&&jsxRuntimeExports.jsx(StyledToolTip,{children:lt})]}),jsxRuntimeExports.jsx(StyledChild,{"data-testid":`form-row-field-${tt}`,children:ut})]}),BannerContainer$1=styled("div")`
  margin-top: 24px;
  margin-left: 32px;
  border-bottom: ${et=>et.reviewInfo?`1px solid ${et.theme.palette.grey[300]}`:""};
  padding-bottom: 20px;
  width: 800px;
`,BannerTitle=styled("div")`
  font-style: normal;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 28px;
  margin-bottom: 20px;
`,InfoContainer=styled("div")`
  display: flex;
  flex-direction: row;
`,ReportStatus=styled("div")`
  display: flex;
  flex-direction: row;
  & p {
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  &:last-child {
    margin-left: 20px;
  }
`,ReviewBanner=({sectionTitle:et,reviewInfo:tt})=>jsxRuntimeExports.jsxs(BannerContainer$1,{children:[jsxRuntimeExports.jsx(BannerTitle,{children:et}),jsxRuntimeExports.jsx(InfoContainer,{children:tt&&tt.map((rt,nt)=>jsxRuntimeExports.jsxs(ReportStatus,{children:[jsxRuntimeExports.jsx(rt.icon,{}),jsxRuntimeExports.jsx("p",{children:rt.label})]},nt))})]});function getLoadingButtonUtilityClass(et){return generateUtilityClass("MuiLoadingButton",et)}const loadingButtonClasses=generateUtilityClasses("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),_excluded$I=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],useUtilityClasses$m=et=>{const{loading:tt,loadingPosition:rt,classes:nt}=et,lt={root:["root",tt&&"loading"],startIcon:[tt&&`startIconLoading${capitalize$3(rt)}`],endIcon:[tt&&`endIconLoading${capitalize$3(rt)}`],loadingIndicator:["loadingIndicator",tt&&`loadingIndicator${capitalize$3(rt)}`]},ut=composeClasses(lt,getLoadingButtonUtilityClass,nt);return _extends$j({},nt,ut)},rootShouldForwardProp=et=>et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"&&et!=="classes",LoadingButtonRoot=styled(Button,{shouldForwardProp:et=>rootShouldForwardProp(et)||et==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(et,tt)=>[tt.root,tt.startIconLoadingStart&&{[`& .${loadingButtonClasses.startIconLoadingStart}`]:tt.startIconLoadingStart},tt.endIconLoadingEnd&&{[`& .${loadingButtonClasses.endIconLoadingEnd}`]:tt.endIconLoadingEnd}]})(({ownerState:et,theme:tt})=>_extends$j({[`& .${loadingButtonClasses.startIconLoadingStart}, & .${loadingButtonClasses.endIconLoadingEnd}`]:{transition:tt.transitions.create(["opacity"],{duration:tt.transitions.duration.short}),opacity:0}},et.loadingPosition==="center"&&{transition:tt.transitions.create(["background-color","box-shadow","border-color"],{duration:tt.transitions.duration.short}),[`&.${loadingButtonClasses.loading}`]:{color:"transparent"}},et.loadingPosition==="start"&&et.fullWidth&&{[`& .${loadingButtonClasses.startIconLoadingStart}, & .${loadingButtonClasses.endIconLoadingEnd}`]:{transition:tt.transitions.create(["opacity"],{duration:tt.transitions.duration.short}),opacity:0,marginRight:-8}},et.loadingPosition==="end"&&et.fullWidth&&{[`& .${loadingButtonClasses.startIconLoadingStart}, & .${loadingButtonClasses.endIconLoadingEnd}`]:{transition:tt.transitions.create(["opacity"],{duration:tt.transitions.duration.short}),opacity:0,marginLeft:-8}})),LoadingButtonLoadingIndicator=styled("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.loadingIndicator,tt[`loadingIndicator${capitalize$3(rt.loadingPosition)}`]]}})(({theme:et,ownerState:tt})=>_extends$j({position:"absolute",visibility:"visible",display:"flex"},tt.loadingPosition==="start"&&(tt.variant==="outlined"||tt.variant==="contained")&&{left:tt.size==="small"?10:14},tt.loadingPosition==="start"&&tt.variant==="text"&&{left:6},tt.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(et.vars||et).palette.action.disabled},tt.loadingPosition==="end"&&(tt.variant==="outlined"||tt.variant==="contained")&&{right:tt.size==="small"?10:14},tt.loadingPosition==="end"&&tt.variant==="text"&&{right:6},tt.loadingPosition==="start"&&tt.fullWidth&&{position:"relative",left:-10},tt.loadingPosition==="end"&&tt.fullWidth&&{position:"relative",right:-10})),LoadingButton=reactExports.forwardRef(function(tt,rt){const nt=reactExports.useContext(ButtonGroupContext),lt=resolveProps(nt,tt),ut=useDefaultProps({props:lt,name:"MuiLoadingButton"}),{children:dt,disabled:pt=!1,id:ht,loading:mt=!1,loadingIndicator:xt,loadingPosition:Mt="center",variant:vt="text"}=ut,Ot=_objectWithoutPropertiesLoose$d(ut,_excluded$I),At=useId(ht),Rt=xt??jsxRuntimeExports.jsx(CircularProgress,{"aria-labelledby":At,color:"inherit",size:16}),zt=_extends$j({},ut,{disabled:pt,loading:mt,loadingIndicator:Rt,loadingPosition:Mt,variant:vt}),Tt=useUtilityClasses$m(zt),Ct=mt?jsxRuntimeExports.jsx(LoadingButtonLoadingIndicator,{className:Tt.loadingIndicator,ownerState:zt,children:Rt}):null;return jsxRuntimeExports.jsxs(LoadingButtonRoot,_extends$j({disabled:pt||mt,id:At,ref:rt},Ot,{variant:vt,classes:Tt,ownerState:zt,children:[zt.loadingPosition==="end"?dt:Ct,zt.loadingPosition==="end"?Ct:dt]}))}),FooterContainer$2=styled$1("div")`
  z-index: 1000;
  display: flex;
  background: white;
  border-top: 2px solid ${et=>et.theme.palette.primary.dark};
  padding: 12px 24px;
  flex: 1;
  flex-grow: 0;
`,SaveContinueContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  margin-left: auto;
  > * {
    margin-right: 10px;
  }
`,SaveContinueContainerMobile=styled$1(SaveContinueContainer)`
  margin-right: auto;
`,ExitButton=styled$1(Link$2)`
  margin-right: 10px;
  text-decoration: none;
`,FormFooter=({pageNumber:et,backLink:tt,saveAndExitLink:rt,continueLink:nt,handleClickOnBack:lt,handleClickOnContinue:ut,submitForm:dt,showSaveAndExit:pt=!0,isLocked:ht,deleteModal:mt,setDeleteModalIsOpen:xt,createAmendmentAndRedirect:Mt,sidePanelWidth:vt,submitButtonText:Ot="Submit",showDiscard:At=!0,footerPosition:Rt="fixed",isLoading:zt=!1,continueDisabled:Tt=!1,isShowSaveExitConfirm:Ct=!1,handleShowSaveExitConfirm:It})=>{const Dt={$sidePanelWidth:vt||"320px",$footerPosition:Rt},kt=DeviceUtilities$1.isMobileDevice(),qt=kt?SaveContinueContainerMobile:SaveContinueContainer;return jsxRuntimeExports.jsx(FooterContainer$2,{...Dt,id:"form-footer",children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[mt(),!kt&&pt&&!Ct&&jsxRuntimeExports.jsx(ExitButton,{to:rt||"",children:jsxRuntimeExports.jsx(Button,{size:"large",variant:"outlined","data-testid":"exit-button",children:ht?"Exit to patient summary":"Save and Exit"})}),!kt&&pt&&Ct&&It&&jsxRuntimeExports.jsx(Button,{size:"large",variant:"outlined","data-testid":"save-and-exit",onClick:()=>It(),children:"Save and Exit"}),ht&&Mt&&jsxRuntimeExports.jsx(Button,{size:"large",variant:"outlined","data-testid":"amendAssessment",onClick:()=>Mt(),children:"Amend assessment"}),!ht&&At&&xt&&jsxRuntimeExports.jsx(Button,{size:"large",variant:"outlined","data-testid":"discard",onClick:()=>xt(!0),children:"Discard"}),!ht&&jsxRuntimeExports.jsxs(qt,{children:[et&&et>1&&jsxRuntimeExports.jsx(Link$2,{to:tt||"",style:{textDecoration:"unset"},children:jsxRuntimeExports.jsx(Button,{size:"large",variant:"outlined","data-testid":"Back",onClick:lt,children:"Back"})}),nt&&jsxRuntimeExports.jsx(Link$2,{to:nt||"",style:{textDecoration:"unset"},children:jsxRuntimeExports.jsx(Button,{size:"large","data-testid":"Continue",variant:"contained",onClick:ut,children:"Continue"})}),dt&&jsxRuntimeExports.jsx(LoadingButton,{size:"large","data-testid":"Submit",variant:"contained",disabled:Tt,loading:zt,onClick:()=>dt(),children:Ot})]})]})})},Divider=styled$1("div")`
  border-top: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-top: 40px;
`,StyledButton$5=styled$1("button")`
  border: none;
  background: none;
  padding: 0;
  align-items: center;
  display: flex;
  cursor: pointer;
  outline: none !important;
`,AddIcon=styled$1(et=>jsxRuntimeExports.jsx(SvgAddOutlineCircle,{title:"AddOutlineCircle.svg",...et}))`
  margin-right: ${et=>et.label?"8px":"0px"};
`,RemoveIcon=styled$1(et=>jsxRuntimeExports.jsx(SvgRemoveOutlineCircle,{title:"RemoveOutlineCircle.svg",...et}))`
  margin-right: ${et=>et.label?"8px":"0px"};
`,Label$6=styled$1("span")`
  font-weight: bold;
  font-size: 0.875rem;
`,ActionButton=({type:et,fieldId:tt,label:rt,onClick:nt})=>jsxRuntimeExports.jsxs(StyledButton$5,{type:"button",onClick:nt,"data-testid":`${tt}-${et}-button-id`,children:[et==="add"?jsxRuntimeExports.jsx(AddIcon,{label:rt}):jsxRuntimeExports.jsx(RemoveIcon,{label:rt}),rt&&jsxRuntimeExports.jsx(Label$6,{children:rt})]}),Wrapper$8=styled$1("div")`
  width: 100%;
`,HeaderWrapper$1=styled$1("div")`
  margin: 40px 0 32px 0;
  display: flex;
  font-weight: bold;
`,Header$6=styled$1("div")`
  font-size: 1.125rem;
  width: 50%;
`,Footer$1=styled$1("div")`
  display: flex;
  justify-content: flex-end;
  width: 50%;
`,FormCard=({id:et,heading:tt,onClick:rt,remove:nt,children:lt})=>jsxRuntimeExports.jsxs(Wrapper$8,{"data-testid":`${et}-id`,children:[jsxRuntimeExports.jsxs(HeaderWrapper$1,{children:[jsxRuntimeExports.jsx(Header$6,{"data-testid":`${et}-header-id`,children:tt}),nt&&jsxRuntimeExports.jsx(Footer$1,{children:jsxRuntimeExports.jsx(ActionButton,{fieldId:et,type:"remove",label:"Remove",onClick:rt})})]}),jsxRuntimeExports.jsx("div",{children:lt}),jsxRuntimeExports.jsx(Divider,{})]}),ChevronDown="data:image/svg+xml,%3csvg%20width='33'%20height='32'%20viewBox='0%200%2033%2032'%20fill='%2300a963'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.6773%2011.4668L16.5439%2017.6001L10.4106%2011.4668L8.54395%2013.3335L16.5439%2021.3335L24.5439%2013.3335L22.6773%2011.4668Z'/%3e%3c/svg%3e",StyledSelectField=styled$1("select")`
  background: url(${et=>et.background});
  border-radius: ${et=>et.borderRadius?et.borderRadius:"0"};
  padding: ${et=>et.padding?et.padding:"8px 32px 8px 16px"};
  background-repeat: no-repeat;
  background-size: 28px 28px;
  background-position: calc(100% - 5px);
  max-width: ${et=>et.width?et.width:"100%"};
  min-width: ${et=>et.width?et.width:"100%"};

  border: 1px solid ${et=>et.invalid?et.theme.palette.error.main:et.theme.palette.grey[300]};
  height: 42px;
  flex: 1;
  margin-right: ${et=>et.removable?"12px":"0px"};

  -moz-appearance: none;
  -webkit-appearance: none;
  &::-ms-expand {
    display: none;
  }
`,Select$2=({invalid:et,name:tt,onChange:rt,onBlur:nt,options:lt,placeholder:ut,value:dt,className:pt,removable:ht,width:mt,borderRadius:xt,padding:Mt})=>jsxRuntimeExports.jsxs(StyledSelectField,{background:ChevronDown,width:mt,borderRadius:xt,padding:Mt,invalid:et,name:tt,value:dt||"",onChange:rt,onBlur:nt,className:pt,removable:ht,children:[jsxRuntimeExports.jsx("option",{value:"",disabled:!!ut,children:ut}),lt.map((vt,Ot)=>jsxRuntimeExports.jsx("option",{value:vt.value,children:vt.label},Ot))]}),StyledTextArea=styled$1(TextareaAutosize)`
  border: 1px solid
    ${et=>et.warning?et.theme.palette.warning.dark:et.invalid?et.theme.palette.error.main:et.theme.palette.grey[300]};
  width: 100%;
  resize: ${({alternateStyle:et})=>et?"none":"both"};
  padding: 8px;
  font-size: ${({alternateStyle:et})=>getRemSize(et?14:16)};
  border-radius: ${({alternateStyle:et})=>et?"4px":""};
  height: ${({alternateStyle:et})=>et?"40px":""};
  font-size: 14px;
`,TextArea=({value:et,onBlur:tt,placeholder:rt,invalid:nt,warning:lt,name:ut,onChange:dt,rows:pt,maxLength:ht,alternateStyle:mt=!1,disabled:xt=!1})=>{const Mt={$alternateStyle:mt};return jsxRuntimeExports.jsx(StyledTextArea,{value:et||"",invalid:nt,warning:lt,name:ut,placeholder:rt,onChange:dt,onBlur:tt,onFocus:vt=>{vt.target.setAttribute("autocomplete","random-text")},"data-test-id":`${ut}-textarea`,rows:pt,maxLength:ht,disabled:xt,...Mt})},StepperTitle=styled$1("div")`
  font-style: normal;
  font-weight: bold;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 20px 80px 20px 20px;
  color: ${et=>et.theme.palette.grey[600]};
`,StepperItem=styled$1("div")`
  display: table;
  width: 100%;
  padding: 0px 15px 0px 20px;
  min-height: 40px;
  border-left: ${et=>et.page===et.currentPage?`3px solid ${et.theme.palette.primary.main}`:"3px solid transparent"};
  background-color: ${et=>et.page===et.currentPage?"white":""};
  box-shadow: ${et=>et.page===et.currentPage?"inset -1px 0px 1px rgba(0, 0, 0, 0.2)":""};
  &:hover {
    ${et=>et.isLocked?"cursor: not-allowed":`cursor: pointer; background-color: ${et.theme.palette.grey[300]}`}
  }
  &:first-child {
    padding-top: 8px;
  }
  &:last-child {
    padding-bottom: 8px;
  }
  ${et=>et.page===et.currentPage?`padding-top: 8px;
          padding-bottom: 8px;
      `:` &:not(:first-child) {
        &:before {
          display: block;
          content: '';
          margin-left: 14px;
          bottom: 0;
          width: 1px;
          height: 8px;
          background: ${et.theme.palette.grey[300]};
        }
      }
      &:not(:last-child) {
        &:after {
          display: block;
          content: '';
          margin-left: 14px;
          bottom: 0;
          width: 1px;
          height: 8px;
          background: ${et.theme.palette.grey[300]};
        }
      }`};
`,StepperBody=styled$1("div")`
  display: flex;
  flex-direction: row;
  vertical-align: middle;
  width: 100%;
  align-items: center;
  justify-content: center;
`,StepperBubbleContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid white;
  border-radius: 15px;
  width: 35px;
  margin-right: 10px;
`,StepperBubble=styled$1("div")`
  background: ${et=>et.page===et.currentPage?`${et.theme.palette.primary.main}`:"white"};
  color: ${et=>et.page===et.currentPage?"white":`${et.theme.palette.grey[600]}`};
  border: 1.2px solid ${et=>et.theme.palette.grey[300]};
  border-radius: 15px;
  font-weight: bold;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 23px;
`,StepperName=styled$1("div")`
  color: ${et=>et.isLocked?`${et.theme.palette.grey[600]}`:""};
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  width: 100%;
`,Stepper=({stepperTitle:et,data:tt,currentPage:rt,handleValidation:nt,isLocked:lt})=>{const ut=useHistory(),dt=pt=>{lt||(ut.push(pt),nt())};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StepperTitle,{"data-test-id":`stepper-title-${et}`,children:et}),jsxRuntimeExports.jsx("div",{children:tt.map((pt,ht)=>jsxRuntimeExports.jsx(StepperItem,{page:pt.name,currentPage:rt,onClick:()=>{dt(pt.path)},name:`stepper-${pt.name}`,isLocked:lt,children:jsxRuntimeExports.jsxs(StepperBody,{children:[jsxRuntimeExports.jsx(StepperBubbleContainer,{children:jsxRuntimeExports.jsx(StepperBubble,{page:pt.name,currentPage:rt,children:ht+1})}),jsxRuntimeExports.jsx(StepperName,{isLocked:lt,children:pt.sectionTitle})]})},`${pt.name}-${ht}`))})]})},ReviewWrapper=styled$1("div")`
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  border-top: ${et=>et.isLocked||!et.error?`4px solid ${tt=>tt.theme.palette.primary.main}`:`4px solid ${tt=>tt.theme.palette.error.main}`};
  border-radius: 4px;
`,HeaderContainer$4=styled$1("div")`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid ${et=>et.theme.palette.grey[300]};
`,TitleContainer$1=styled$1("div")`
  display: flex;
  flex-direction: column;
`,Title$2=styled$1("div")`
  margin-left: 24px;
  font-size: 20px;
  font-weight: bold;
  line-height: 28px;
  flex-grow: 1;
`,Subtitle=styled$1("div")`
  margin-top: 10px;
  margin-left: 24px;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  width: 70%;
`,StyledLink$a=styled$1(Link$2)`
  text-decoration: none;
  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
  color: black;
`,EditContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-right: 16px;
`,EditIcon$3=styled$1(SvgEdit)`
  fill: ${et=>et.theme.palette.primary.main};
  width: 24px;
  height: 24px;
  margin-right: 8px;
`,EditMessage=styled$1("div")`
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  margin-right: 16px;
`,SuccessIcon$2=styled$1(SvgSuccess)`
  fill: ${et=>et.theme.palette.primary.main};
  width: 24px;
  height: 24px;
`,ErrorIcon$1=styled$1(SvgErrorExclamation)`
  fill: ${et=>et.theme.palette.error.main};
  width: 24px;
  height: 24px;
`,ContentContainer$3=styled$1("div")`
  margin-bottom: 27px;
  margin-top: 27px;
`,ReviewBox=et=>{const{title:tt,subtitle:rt,error:nt,children:lt,link:ut,isLocked:dt}=et;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(ReviewWrapper,{error:nt,"data-test-id":`review-${tt}`,isLocked:dt,children:[jsxRuntimeExports.jsxs(HeaderContainer$4,{children:[jsxRuntimeExports.jsxs(TitleContainer$1,{children:[jsxRuntimeExports.jsx(Title$2,{children:tt}),rt&&jsxRuntimeExports.jsx(Subtitle,{children:rt})]}),ut&&!dt&&jsxRuntimeExports.jsx(StyledLink$a,{to:ut,children:jsxRuntimeExports.jsxs(EditContainer,{children:[jsxRuntimeExports.jsx(EditIcon$3,{}),jsxRuntimeExports.jsx(EditMessage,{children:"Edit"}),nt?jsxRuntimeExports.jsx(ErrorIcon$1,{}):jsxRuntimeExports.jsx(SuccessIcon$2,{})]})})]}),jsxRuntimeExports.jsx(ContentContainer$3,{children:lt})]})})},SubSection$1=styled$1("section")`
  line-height: 24px;
  margin-bottom: 16px;
`,ModalContentSubmissionError=({text:et,emailLink:tt})=>jsxRuntimeExports.jsxs(SubSection$1,{children:[et,jsxRuntimeExports.jsx("a",{href:`mailto:${tt}`,children:tt})]}),StyledIconWrapper$1=styled$1("div")`
  margin-left: 10px;
  white-space: nowrap;
  padding: 0;
`,UserIcon=({userType:et})=>et?{nurse:jsxRuntimeExports.jsx(StyledIconWrapper$1,{"data-test-id":"user-icon-nurse",children:jsxRuntimeExports.jsx(SvgNurseReviewedIcon,{})}),patient:jsxRuntimeExports.jsx(StyledIconWrapper$1,{"data-test-id":"user-icon-patient",children:jsxRuntimeExports.jsx(PersonOutlinedIcon,{color:"info"})})}[et]:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),Wrapper$7=styled$1("div")`
  border-left: ${({borderColor:et})=>`3px solid ${et}`};
  padding: 10px;
  background: ${({backgroundColor:et})=>et};
  display: flex;
  align-items: center;
`,SuccessIcon$1=styled$1(et=>jsxRuntimeExports.jsx(SvgSuccess,{title:"Success.svg",...et}))`
  margin-right: 8px;
  fill: ${et=>et.theme.palette.primary.dark};
  width: 20px;
  height: 20px;
`,InfoIcon$1=styled$1(SvgInfoCircleBlueIcon)`
  margin-right: 8px;
  fill: ${et=>et.theme.palette.warning.dark};
  width: 20px;
  height: 20px;

  path {
    fill: ${et=>et.theme.palette.warning.dark};
  }
`,Banner$2=({subtext:et="",text:tt,type:rt,testId:nt})=>{const lt=useTheme$1(),ut={success:jsxRuntimeExports.jsx(SuccessIcon$1,{title:"Success.svg"}),info:jsxRuntimeExports.jsx(InfoIcon$1,{title:"InfoCircleBlueIcon.svg"})},dt={success:{borderColor:lt.palette.primary.dark,backgroundColor:lt.palette.secondary.light},info:{borderColor:lt.palette.warning.dark,backgroundColor:lt.palette.warning.light}},pt=nt?`banner-${nt}`:"banner";return jsxRuntimeExports.jsxs(Wrapper$7,{...dt[rt],"data-test-id":pt,children:[ut[rt],jsxRuntimeExports.jsx(Stack$5,{marginRight:.5,children:et}),tt]})};styled$1("div")`
  position: relative;
  border: 1px solid ${et=>et.theme.palette.text.primary};
  margin-bottom: 8px;
  padding: 8px 10px;
  background-color: ${et=>et.theme.palette.text.primary};
  color: ${et=>et.theme.palette.primary.contrastText};
  font-size: ${getRemSize(14)};
  border-radius: 4px;
  width: max-content;
  line-height: 20px;
  ${et=>({triangle:tt})=>tt&&`::after {
      content: '';
      box-sizing: border-box;
      position: absolute;
      left: 50%;
      bottom: -7px;
      border-style: solid;
      border-width: 0 7px 6px 7px;
      border-color: transparent;
      border-bottom-color: ${et.theme.palette.text.primary};
      transform: rotate(180deg);
    }
  `};
`;const ROProfileStock="/media/content/assets/ro-profile-stock-BezXm-jz.jpeg",HEALTH_ASSESSMENT_ALLERGY_FRAGMENT=gql`
  fragment HealthAssessmentAllergy on AllergyType {
    id
    sensitivity
    specify
    area
    reaction {
      id
      value
      other
    }
  }
`,HEALTH_ASSESSMENT_ILLNESS_FRAGMENT=gql`
  fragment HealthAssessmentIllness on HealthAssessmentType {
    id
    screening
    pastMedicalHistory
    cardiac
    constitutional
    eyesEarsNoseThroat
    gastrointestinal
    genitourinary
    neurological
    psychiatric
    pulmonary
    bonesJoints
    hematologic
    skin

    colonoscopyDate
    colonoscopyRawYear
    colonoscopyRawMonth
    colonoscopyRawDay

    chestCtScanDate
    chestCtScanRawYear
    chestCtScanRawMonth
    chestCtScanRawDay
  }
`,HEALTH_ASSESSMENT_CANCER_FRAGMENT=gql`
  fragment HealthAssessmentCancer on CancerType {
    id
    cancerType
    cancerStage
    treatment {
      id
      other
      treatmentType
      hospital
      doctor
      bodyPart
      stage
      treatmentRawYear
      treatmentRawDay
      treatmentRawMonth
      treatmentDate
      medication
    }
  }
`,HEALTH_ASSESSMENT_FAMILY_HISTORY_FRAGMENT=gql`
  fragment HealthAssessmentFamilyHistory on FamilyHistoryType {
    id
    familyMember
    cancerType
    stillAlive
    ageOfFamilyMember
    other
  }
`,HEALTH_ASSESSMENT_DIABETES_RESPONSE_FRAGMENT=gql`
  fragment HealthAssessmentDiabetesResponse on DiabetesResponseType {
    id
    value
    other
  }
`,HEALTH_ASSESSMENT_IMMUNOSUPPRESSIVE_CONDITION_FRAGMENT=gql`
  fragment HealthAssessmentImmunosuppressiveCondition on ImmunosuppressiveConditionType {
    id
    value
    other
  }
`,HEALTH_ASSESSMENT_INFECTION_FRAGMENT=gql`
  fragment HealthAssessmentInfection on IntractableInfectionOrIllnessType {
    id
    value
    other
    doctorClearance
  }
`,HEALTH_ASSESSMENT_INTERNAL_DEVICE_FRAGMENT=gql`
  fragment HealthAssessmentInternalDevice on InternalDeviceType {
    id
    value
    other
  }
`,HEALTH_ASSESSMENT_MEDICATION_FRAGMENT=gql`
  fragment HealthAssessmentMedication on MedicationType {
    id
    medicationName
    dosage
    route
    prescribingPhysician
  }
`,HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT=gql`
  fragment HealthAssessmentMobilityAid on MobilityAidType {
    id
    value
    other
  }
`,HA_MOBILITY_FRAGMENT=gql`
  fragment HealthAssessmentMobility on HealthAssessmentType {
    id
    mobilityAid
    fallen
    fallenHowMany
    fallenInjuries
    footPain
    unsteady
    lightheaded
  }
`,HEALTH_ASSESSMENT_OPERATION_FRAGMENT=gql`
  fragment HealthAssessmentOperation on OperationType {
    id
    operationSpecify
    operationDate
    operationRawDay
    operationRawMonth
    operationRawYear
    operationOther
  }
`,HEALTH_ASSESSMENT_OTHER_RT_FRAGMENT=gql`
  fragment HealthAssessmentOtherRT on OtherRadiotherapyConditionType {
    id
    condition
    hospital
    doctor
    bodyPart
    treatmentDate
    treatmentRawDay
    treatmentRawMonth
    treatmentRawYear
  }
`,HEALTH_ASSESSMENT_WELLBEING_ISSUE_FRAGMENT=gql`
  fragment HealthAssessmentWellbeingIssue on WellbeingIssueType {
    id
    value
    other
  }
`,HA_BIOLOGICAL_FRAGMENT=gql`
  fragment HealthAssessmentBiological on HealthAssessmentType {
    id
    biologicalGender
    periodAge
    abnormalMammograms
    breastBiopsy
    periodWhen
    menopause
    menopauseAge
    biologicalPregnant
    pregnantCount
    pregnantDeliveries
    pregnantAge
    breastfeed
    hormones
    hormonesDuration
    braSize
    nippleDischarge
    nippleDischargeExplain
    vaginalBleeding
    vaginalBleedingExplain
    vaginalDischarge
    vaginalDischargeExplain
    stdFemale
    papSmearDateRawMonth
    papSmearDateRawDay
    papSmearDateRawYear
    mammogramDateRawMonth
    mammogramDateRawDay
    mammogramDateRawYear
    psaDateRawMonth
    psaDateRawDay
    psaDateRawYear
    psaScore
    psaLocation
    stdMale
  }
`,HA_SOCIAL_US_FRAGMENT=gql`
  fragment HealthAssessmentSocialUS on HealthAssessmentType {
    id
    smokingBool
    smokingHistory
    smokingFrequency
    smokingStopRawMonth
    smokingStopRawYear
    tobaccoChew
    tobaccoChewHistory
    tobaccoStopRawMonth
    tobaccoStopRawYear
    tobaccoStopClassesRawMonth
    tobaccoStopClassesRawYear
    alcoholBool
    alcoholFrequency
    alcoholStopRawMonth
    alcoholStopRawYear
    streetDrugs
    streetDrugsUse
    medicalMarijuanaCard
    socialSupportSystem
    socialSupportPeople
    religiousBeliefs
    religiousBeliefsDescription
    stillWorking
    stillWorkingReason
    financialAssisstance
    financialAssisstanceReason
    servedInMilitary
    servedInMilitaryBranch
    chemicalsExposed
    chemicals
    physicallyActive
    difficultyTravelling
    physicallyActiveExercise
    difficultyTravellingBool
  }
`,HA_PAIN_FRAGMENT=gql`
  fragment HealthAssessmentPain on HealthAssessmentType {
    id
    inPain
    painStart
    painSeverity
    painLocation
    painQuality
    painLength
    painManagement
    painBetter
    painWorse
  }
`,HA_CONSENT_FRAGMENT=gql`
  fragment HealthAssessmentConsent on HealthAssessmentType {
    id
    patientAcknowledgement
    patientDigitalSignature
  }
`,PCCC_ALLERGY_FRAGMENT=gql`
  fragment Allergy on PcccAllergyType {
    id
    allergyType
    additionalDetails
    pcccReaction {
      id
      baseValue
      otherValue
      lastUpdateUser
    }
    lastUpdateUser
  }
`,PCCC_IMPLANTED_DEVICE_FRAGMENT=gql`
  fragment ImplantedDevice on ImplantedMedicalDevicesType {
    id
    name
    deviceField
    assessment {
      id
    }
    lastUpdateUser
  }
`,PCCC_INFECTIOUS_DISEASE_FRAGMENT=gql`
  fragment InfectiousDisease on InfectiousDiseaseType {
    id
    baseValue
    otherValue
    assessment {
      id
    }
    lastUpdateUser
  }
`,PCCC_MRO_INFECTION_FRAGMENT=gql`
  fragment MroInfection on MroInfectionType {
    id
    baseValue
    otherValue
    assessment {
      id
    }
    lastUpdateUser
  }
`,REGISTRATION_ADDRESS_FRAGMENT=gql`
  fragment Address on AddressType {
    id
    formattedAddress
    line1
    line2
    city
    state
    country
    postcode
  }
`,REGISTRATION_INSURANCE_US_FRAGMENT=gql`
  fragment InsuranceUS on InsuranceUsType {
    id
    fundName
    planId
    group
    phoneNumber
    policyHolder
    policyDob
    guarantor
    guarantorRelationship
  }
`,REGISTRATION_DEMOGRAPHICS_FRAGMENT=gql`
  fragment PatientDemographics on PatientType {
    id
    primaryOccupation
    maritalStatus
    maritalStatusValue
    spouseWorkingStatus
    spouseName
    spouseDob
    spouseDobRawYear
    spouseDobRawMonth
    spouseDobRawDay
    formattedSpouseSsn
    spouseSocialSecurityNumber
    spouseContactNumber
    spouseAlternateAddressBool
    spouseAlternateAddress {
      id
      ...Address
    }
    race
    raceSpecified
    ancestry
    languageAtHome
    niceLanguageAtHome
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,LIST_DATA_FRAGMENT=gql`
  fragment ListData on ListDataType {
    id
    name
    orderRank
  }
`,REGISTRATION_ADDRESS_QUERY$1=gql`
  query RegistrationAddress($id: ID!) {
    patient(id: $id) {
      id
      lastVisitedSection
      regFormStatus
      address {
        id
        ...Address
      }
      facilityAddress {
        id
        ...Address
      }
      inHospitalHospiceFacility
      facilityName
      facilityContactNumber
    }
    user {
      id
      isPso
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,UPDATE_REGISTRATION_FACILITY_DETAILS=gql`
  mutation UpdatePatientUsAddressFacility(
    $id: ID!
    $inHospitalHospiceFacility: Boolean
    $facilityName: String
    $facilityContactNumber: String
  ) {
    updatePatientUsAddressFacility(
      id: $id
      inHospitalHospiceFacility: $inHospitalHospiceFacility
      facilityName: $facilityName
      facilityContactNumber: $facilityContactNumber
    ) {
      patient {
        id
        inHospitalHospiceFacility
        facilityName
        facilityContactNumber
      }
    }
  }
`,REGISTRATION_ADDRESS_QUERY=gql`
  query RegistrationAddress($id: ID!) {
    patient(id: $id) {
      id
      address {
        id
        ...Address
      }
      postalAddress {
        id
        ...Address
      }
      postalAddressSameAsResidential
    }
    user {
      id
      isPso
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,UPDATE_REGISTRATION_POSTAL_ADDRESS=gql`
  mutation UpdatePatientAuSamePostalAddress($id: ID!, $postalAddressSameAsResidential: Boolean) {
    updatePatientAuSamePostalAddress(id: $id, postalAddressSameAsResidential: $postalAddressSameAsResidential) {
      patient {
        id
        postalAddressSameAsResidential
      }
    }
  }
`,LAST_VISITED_QUERY$1=gql`
  query RegistrationLastVisited($id: ID!) {
    patient(id: $id) {
      id
      lastVisitedSection
      regFormStatus
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_LAST_VISITED_SECTION$2=gql`
  mutation UpdatePatientUsBasic($id: ID!, $lastVisitedSection: String!) {
    updatePatientUsBasic(id: $id, lastVisitedSection: $lastVisitedSection) {
      patient {
        id
        lastVisitedSection
        regFormStatus
      }
    }
  }
`,UPDATE_PATIENT_ADDRESS$1=gql`
  mutation UpdatePatientAddress(
    $patientId: ID!
    $relatedName: String!
    $line1: String
    $line2: String
    $city: String
    $postcode: String
    $state: String
    $country: String
  ) {
    updatePatientAddress(
      patientId: $patientId
      relatedName: $relatedName
      address: { line1: $line1, line2: $line2, city: $city, postcode: $postcode, state: $state, country: $country }
    ) {
      address {
        id
        ...Address
      }
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,REMOVE_PATIENT_ADDRESS$1=gql`
  mutation RemovePatientAddress($patientId: ID!, $relatedName: String!) {
    removePatientAddress(patientId: $patientId, relatedName: $relatedName) {
      success
    }
  }
`,UPDATE_ALTERNATE_CONTACT_ADDRESS=gql`
  mutation UpdateAlternateContactAddress(
    $patientId: ID!
    $alternateContactId: ID!
    $relatedName: String!
    $line1: String
    $line2: String
    $city: String
    $postcode: String
    $state: String
    $country: String
  ) {
    updateAlternateContactAddress(
      patientId: $patientId
      alternateContactId: $alternateContactId
      relatedName: $relatedName
      address: { line1: $line1, line2: $line2, city: $city, postcode: $postcode, state: $state, country: $country }
    ) {
      address {
        id
        ...Address
      }
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`;gql`
  mutation RemoveAlternateContactAddress($patientId: ID!, $alternateContactId: ID!, $relatedName: String!) {
    removeAlternateContactAddress(
      patientId: $patientId
      alternateContactId: $alternateContactId
      relatedName: $relatedName
    ) {
      success
    }
  }
`;gql`
  query CountryList {
    data: listData(category: "countryOfBirth") {
      id
      name
    }
  }
`;gql`
  query AustraliaStatesList {
    data: listData(category: "australiaStates") {
      id
      name
    }
  }
`;const flattenObjectToQueryString=(et,tt,rt)=>{if(!isObjectAnObject(et)&&tt)return tt;const nt=et,lt=Object.keys(nt);let ut="";tt&&(tt==="answers"?ut+=`answers(answerId: #replaceId)
`:tt==="mobilityAids"?ut+=`mobilityAids(id: #replaceId)
`:tt==="wellbeingIssues"?ut+=`wellbeingIssues(id: #replaceId)
`:tt==="internalDevices"?ut+=`internalDevices(id: #replaceId)
`:tt==="intractableInfectionOrIllnesses"?ut+=`intractableInfectionOrIllnesses(id: #replaceId)
`:tt==="diabetesResponses"?ut+=`diabetesResponses(id: #replaceId)
`:tt==="immunosuppressiveConditions"?ut+=`immunosuppressiveConditions(id: #replaceId)
`:tt==="medications"?ut+=`medications(id: #replaceId)
`:tt==="allergies"?ut+=`allergies(id: #replaceId)
`:tt==="operations"?ut+=`operations(id: #replaceId)
`:tt==="treatment"?ut+=`updateTreatment(treatmentId: #replaceId)
`:tt==="reaction"?ut+=`updateReaction(reactionId: #replaceId)
`:tt==="cancer"?ut+=`cancer(id: #replaceId)
`:tt==="otherRadiotherapyConditions"?ut+=`otherRadiotherapyConditions(id: #replaceId)
`:ut+=`${tt}
`),ut+=`{
`,ut+=`id
`;for(const dt of lt)dt!=="id"&&(ut+=flattenObjectToQueryString(nt[dt],dt),ut+=`
`);return rt&&(ut+=rt+`
`),ut+="}",ut},mapObjectToMutationParams=et=>{let tt="";return tt=Object.entries(et).map(nt=>{const[lt,ut]=nt;if(lt==="haId"||lt==="patientId")return`$${lt}: ID!`;if((lt==="id"||lt==="relatedObjectId")&&typeof ut=="string")return`$${lt}: ID!`;if(lt==="emergencyContact"||lt==="nextOfKinContact")return`$${lt}: AlternateContactInputType!`;if(lt==="answers")return`$${lt}: DTCheckboxAnswerMutationType!`;if(lt==="mobilityAids")return`$${lt}: MobilityAidMutationType!`;if(lt==="wellbeingIssues")return`$${lt}: WellbeingIssueMutationType!`;if(lt==="internalDevices")return`$${lt}: InternalDeviceMutationType!`;if(lt==="intractableInfectionOrIllnesses")return`$${lt}: IntractableInfectionOrIllnessMutationType!`;if(lt==="diabetesResponses")return`$${lt}: DiabetesResponsesMutationType!`;if(lt==="immunosuppressiveConditions")return`$${lt}: ImmunosuppressiveConditionMutationType!`;if(lt==="medications")return`$${lt}: MedicationMutationType!`;if(lt==="allergies")return`$${lt}: AllergyMutationType!`;if(lt==="operations")return`$${lt}: OperationMutationType!`;if(lt==="otherRadiotherapyConditions")return`$${lt}: OtherRadiotherapyConditionMutationType!`;if(lt==="cancer")return`$${lt}: CancerMutationType!`;const dt=typeof ut;let pt="String!";return dt==="boolean"&&(pt="Boolean!"),dt==="number"&&(pt="Int!"),lt==="id"&&(pt="ID!"),`$${lt}: ${pt}`}).join(", "),tt},mapObjectToFunctionParams=et=>{let tt="";return tt=Object.keys(et).map(nt=>`${nt}: $${nt}`).join(", "),tt},isObjectAnObject=et=>{const tt=typeof et;return tt==="object"&&tt!==null};var NavigationType=(et=>(et.APPOINTMENT="Appointments",et.INFORMATION="Information",et.DETAILS="My details",et))(NavigationType||{}),BASE_REGISTRATION_PAGES=(et=>(et.BASIC="Basic",et.CONTACT="Contact",et.ADDRESS="Address",et.ALT_CONTACT="AltContact",et.GP_INFO="GpInfo",et.INSURANCE="Insurance",et.MEDICARE="Medicare",et.DEMOGRAPHICS="Demographics",et.INFO_NOTICE="InfoNotice",et.PREFERENCES="Preferences",et))(BASE_REGISTRATION_PAGES||{}),DT_CATEGORY=(et=>(et.PRACTICAL="practical",et.SOCIAL="social",et.EMOTIONAL="emotional",et.SPIRITUAL="spiritual",et.PHYSICAL="physical",et.OTHER="other",et.NONE="none",et))(DT_CATEGORY||{}),NavigatorDirection=(et=>(et[et.BACK=0]="BACK",et[et.FORWARD=1]="FORWARD",et))(NavigatorDirection||{}),FormType=(et=>(et.REGISTRATION="Patient Registration",et.DISTRESS="Distress Thermometer",et.DISTRESS_EOT="Distress Thermometer EOT",et))(FormType||{}),HAMutationType=(et=>(et[et.GET_HEALTH_ASSESSMENT_MUTATION=0]="GET_HEALTH_ASSESSMENT_MUTATION",et[et.UPDATE_TREATMENT=1]="UPDATE_TREATMENT",et[et.UPDATE_REACTION=2]="UPDATE_REACTION",et))(HAMutationType||{}),FormStatus=(et=>(et.CREATED="filterCreatedInMosaiq",et.REG_REVIEW_REQUIRED="filterReviewRequired",et.REG_SUBMITTED="filterSubmittedToMosaiq",et.IN_PROGRESS="filterInProgress",et.IN_PROGRESS_AMENDED="filterInProgressAmendment",et))(FormStatus||{}),ReferralType=(et=>(et.GP="General Practitioner",et.SPECIALIST="Specialist",et))(ReferralType||{});const RoleType={NURSE:"nurse",PSO:"pso",SUPERUSER:"superuser",RO:"ro",MO:"mo",DOCTOR:"doctor",CAREPLANVIEWER:"CarePlanViewerUser",OTHER:"other"},FormTypeId={REGISTRATION_FORM:"registration-form",HEALTH_ASSESSMENT:"health-assessment",DISTRESS_THERMOMETER:"distress-thermometer",DISTRESS_THERMOMETER_EOT:"distress-thermometer-eot",COVID_SCREENING:"covid-screening",THERANOSTICS:"theranostics"};var DistressThermometerVersion=(et=>(et.INITIAL="INITIAL",et.EOT="EOT",et))(DistressThermometerVersion||{}),CareplanStatusFilter=(et=>(et.DRAFT="Draft",et.PRESCRIPTION="Prescription",et.SIMULATION="Simulation",et.PLAN_AIM="Plan Aim",et.CPOT="CPOT",et.PRESCRIPTION_DIRECTIVE="Prescription Directive",et))(CareplanStatusFilter||{});const CareplanFilter={UNSUBMITTED:"Unsubmitted changes",OTHER:"Other"};var RoDashboardTabs=(et=>(et.CLINIC_LIST="clinicList",et.CAREPLANS="careplans",et.APPOINTMENTS="dailyAppointments",et.CAREPLAN_VIEWER="careplanviewer",et))(RoDashboardTabs||{}),AuthorizedICDTreatingDepartments=(et=>(et.CROMWELL="GenesisCare, Cromwell",et))(AuthorizedICDTreatingDepartments||{}),DoseUnit=(et=>(et.CGY="cGy",et.GY="Gy",et))(DoseUnit||{});const GY_TO_CGY=100,CGY_TO_GY=.01,mapListData$1=et=>(et==null?void 0:et.map(tt=>({label:tt.name,value:tt.name})))||[],snakeToCamel=et=>et.replace(/([-_][a-z])/g,tt=>tt.toUpperCase().replace("-","").replace("_","")),groupBy=(et,tt)=>et.reduce((rt,nt)=>({...rt,[nt[tt]]:[...rt[nt[tt]]||[],nt]}),{}),wrapURLs=(et,tt)=>{const rt=/([^\S]|^)(((https?:\/\/)|(www\.))(\S+))/gi;return(et||"").replace(rt,(nt,lt,ut)=>{let dt=ut;return dt.match("^https?://")||(dt="http://"+dt),lt+`<a href="${dt}" target="_blank">${ut}</a>`})},generateGreetingText=()=>{const et=parseInt(hooks().format("H"));let tt="Good evening,";return et>=4&&et<=11?tt="Good morning,":et>11&&et<=16&&(tt="Good afternoon,"),tt},isUs=()=>Object.create(globalThis.import_meta_env||null).REACT_APP_REGION===Region.US,isDemo=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION===Region.DEMO,appendZeroInFront=et=>(et==null?void 0:et.length)===1?`0${et}`:et,yesNoOptions$2=[{label:"Yes",value:!0},{label:"No",value:!1}],TO_FORM_DISTRESS_EOT="Distress Thermometer EOT",toFormToVersion=et=>et===TO_FORM_DISTRESS_EOT?DistressThermometerVersion.EOT:DistressThermometerVersion.INITIAL,formatNoteCreationDate=(et,tt,rt)=>{const nt=hooks(et.approvedAt).isValid()?hooks(et.approvedAt):hooks(et.editedAt).isValid()?hooks(et.editedAt):hooks(et.createdAt);return hooks(nt).tz(tt).format(rt).toString()},roundToTwoDp=et=>Math.round(et*100+Number.EPSILON)/100,roundToInteger=et=>Math.round(et),doseRounding=(et,tt,rt)=>{const{doseUnit:nt,ariaDoseUnit:lt,mosaiqDoseUnit:ut}=rt,dt=tt?lt:ut,pt=nt===DoseUnit.CGY?roundToInteger:roundToTwoDp;return nt===dt?pt(et):nt===DoseUnit.CGY&&dt===DoseUnit.GY?pt(et*GY_TO_CGY):nt===DoseUnit.GY&&dt===DoseUnit.CGY?pt(et*CGY_TO_GY):et},display$1=et=>et||"-",sortByNewestToOldest=et=>[...et].sort((tt,rt)=>hooks(rt.sortDate,"DD/MM/YYYY").diff(hooks(tt.sortDate,"DD/MM/YYYY"),"days")),computeGroupTotal=et=>{const tt=reactExports.useContext(TenantContext),rt=doseRounding(et[0].totalDosageLimit,!0,tt);let nt=0,lt=0;return et.forEach(ut=>{nt+=ut.deliveredDosageQuantity,lt+=ut.plannedDosageQuantity}),nt=doseRounding(nt,!0,tt),lt=doseRounding(lt,!0,tt),{totalDeliveredDose:nt===lt?lt:rt,totalDoseMax:lt}};var lodash$1={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */lodash$1.exports;(function(et,tt){(function(){var rt,nt="4.17.21",lt=200,ut="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",dt="Expected a function",pt="Invalid `variable` option passed into `_.template`",ht="__lodash_hash_undefined__",mt=500,xt="__lodash_placeholder__",Mt=1,vt=2,Ot=4,At=1,Rt=2,zt=1,Tt=2,Ct=4,It=8,Dt=16,kt=32,qt=64,Nt=128,Yt=256,Kt=512,Jt=30,Qt="...",Bt=800,Ft=16,$t=1,jt=2,Wt=3,Ut=1/0,Vt=9007199254740991,Ht=17976931348623157e292,Gt=NaN,Zt=4294967295,Xt=Zt-1,er=Zt>>>1,nr=[["ary",Nt],["bind",zt],["bindKey",Tt],["curry",It],["curryRight",Dt],["flip",Kt],["partial",kt],["partialRight",qt],["rearg",Yt]],or="[object Arguments]",rr="[object Array]",cr="[object AsyncFunction]",ir="[object Boolean]",dr="[object Date]",gr="[object DOMException]",br="[object Error]",ar="[object Function]",ur="[object GeneratorFunction]",xr="[object Map]",Mr="[object Number]",Ar="[object Null]",Ir="[object Object]",Rr="[object Promise]",wr="[object Proxy]",qr="[object RegExp]",Hr="[object Set]",kr="[object String]",$r="[object Symbol]",yr="[object Undefined]",Or="[object WeakMap]",Dr="[object WeakSet]",Fr="[object ArrayBuffer]",Yr="[object DataView]",Gr="[object Float32Array]",Jr="[object Float64Array]",jr="[object Int8Array]",Zr="[object Int16Array]",Xr="[object Int32Array]",cn="[object Uint8Array]",Qr="[object Uint8ClampedArray]",rn="[object Uint16Array]",_r="[object Uint32Array]",ln=/\b__p \+= '';/g,vn=/\b(__p \+=) '' \+/g,Cr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gn=/&(?:amp|lt|gt|quot|#39);/g,xn=/[&<>"']/g,Vr=RegExp(gn.source),fn=RegExp(xn.source),pn=/<%-([\s\S]+?)%>/g,qn=/<%([\s\S]+?)%>/g,Bn=/<%=([\s\S]+?)%>/g,Kr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tr=/^\w*$/,Pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,an=/[\\^$.*+?()[\]{}|]/g,nn=RegExp(an.source),Mn=/^\s+/,An=/\s/,Vn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cn=/\{\n\/\* \[wrapped with (.+)\] \*/,kn=/,? & /,Qn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gn=/[()=,{}\[\]\/\s]/,Un=/\\(\\)?/g,jn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,In=/\w*$/,Kn=/^[-+]0x[0-9a-f]+$/i,Wn=/^0b[01]+$/i,ao=/^\[object .+?Constructor\]$/,_i=/^0o[0-7]+$/i,ho=/^(?:0|[1-9]\d*)$/,So=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ko=/($^)/,us=/['\n\r\u2028\u2029\\]/g,Jo="\\ud800-\\udfff",go="\\u0300-\\u036f",$o="\\ufe20-\\ufe2f",vo="\\u20d0-\\u20ff",Go=go+$o+vo,Wo="\\u2700-\\u27bf",cs="a-z\\xdf-\\xf6\\xf8-\\xff",rs="\\xac\\xb1\\xd7\\xf7",xs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Es="\\u2000-\\u206f",Os=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ds="A-Z\\xc0-\\xd6\\xd8-\\xde",gs="\\ufe0e\\ufe0f",na=rs+xs+Es+Os,Xs="['’]",Zl="["+Jo+"]",Jl="["+na+"]",Ks="["+Go+"]",Al="\\d+",Ol="["+Wo+"]",On="["+cs+"]",Sn="[^"+Jo+na+Al+Wo+cs+Ds+"]",po="\\ud83c[\\udffb-\\udfff]",_o="(?:"+Ks+"|"+po+")",Co="[^"+Jo+"]",ls="(?:\\ud83c[\\udde6-\\uddff]){2}",qs="[\\ud800-\\udbff][\\udc00-\\udfff]",Bs="["+Ds+"]",Ns="\\u200d",Rl="(?:"+On+"|"+Sn+")",O0="(?:"+Bs+"|"+Sn+")",R0="(?:"+Xs+"(?:d|ll|m|re|s|t|ve))?",e0="(?:"+Xs+"(?:D|LL|M|RE|S|T|VE))?",xa=_o+"?",Bl="["+gs+"]?",K0="(?:"+Ns+"(?:"+[Co,ls,qs].join("|")+")"+Bl+xa+")*",p0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",g1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",j0=Bl+xa+K0,Q0="(?:"+[Ol,ls,qs].join("|")+")"+j0,Z0="(?:"+[Co+Ks+"?",Ks,ls,qs,Zl].join("|")+")",S0=RegExp(Xs,"g"),J0=RegExp(Ks,"g"),_0=RegExp(po+"(?="+po+")|"+Z0+j0,"g"),_c=RegExp([Bs+"?"+On+"+"+R0+"(?="+[Jl,Bs,"$"].join("|")+")",O0+"+"+e0+"(?="+[Jl,Bs+Rl,"$"].join("|")+")",Bs+"?"+Rl+"+"+R0,Bs+"+"+e0,g1,p0,Al,Q0].join("|"),"g"),e1=RegExp("["+Ns+Jo+Go+gs+"]"),Pn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ps=-1,qo={};qo[Gr]=qo[Jr]=qo[jr]=qo[Zr]=qo[Xr]=qo[cn]=qo[Qr]=qo[rn]=qo[_r]=!0,qo[or]=qo[rr]=qo[Fr]=qo[ir]=qo[Yr]=qo[dr]=qo[br]=qo[ar]=qo[xr]=qo[Mr]=qo[Ir]=qo[qr]=qo[Hr]=qo[kr]=qo[Or]=!1;var Bo={};Bo[or]=Bo[rr]=Bo[Fr]=Bo[Yr]=Bo[ir]=Bo[dr]=Bo[Gr]=Bo[Jr]=Bo[jr]=Bo[Zr]=Bo[Xr]=Bo[xr]=Bo[Mr]=Bo[Ir]=Bo[qr]=Bo[Hr]=Bo[kr]=Bo[$r]=Bo[cn]=Bo[Qr]=Bo[rn]=Bo[_r]=!0,Bo[br]=Bo[ar]=Bo[Or]=!1;var ga={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},bs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},t0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},t1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ws=parseFloat,Po=parseInt,ws=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,su=typeof self=="object"&&self&&self.Object===Object&&self,ys=ws||su||Function("return this")(),r1=tt&&!tt.nodeType&&tt,Sl=r1&&!0&&et&&!et.nodeType&&et,hs=Sl&&Sl.exports===r1,f0=hs&&ws.process,js=function(){try{var En=Sl&&Sl.require&&Sl.require("util").types;return En||f0&&f0.binding&&f0.binding("util")}catch{}}(),pr=js&&js.isArrayBuffer,vr=js&&js.isDate,Lr=js&&js.isMap,Wr=js&&js.isRegExp,on=js&&js.isSet,sn=js&&js.isTypedArray;function dn(En,Nn,Dn){switch(Dn.length){case 0:return En.call(Nn);case 1:return En.call(Nn,Dn[0]);case 2:return En.call(Nn,Dn[0],Dn[1]);case 3:return En.call(Nn,Dn[0],Dn[1],Dn[2])}return En.apply(Nn,Dn)}function zn(En,Nn,Dn,no){for(var io=-1,yo=En==null?0:En.length;++io<yo;){var Eo=En[io];Nn(no,Eo,Dn(Eo),En)}return no}function _n(En,Nn){for(var Dn=-1,no=En==null?0:En.length;++Dn<no&&Nn(En[Dn],Dn,En)!==!1;);return En}function Fn(En,Nn){for(var Dn=En==null?0:En.length;Dn--&&Nn(En[Dn],Dn,En)!==!1;);return En}function Jn(En,Nn){for(var Dn=-1,no=En==null?0:En.length;++Dn<no;)if(!Nn(En[Dn],Dn,En))return!1;return!0}function ro(En,Nn){for(var Dn=-1,no=En==null?0:En.length,io=0,yo=[];++Dn<no;){var Eo=En[Dn];Nn(Eo,Dn,En)&&(yo[io++]=Eo)}return yo}function Xn(En,Nn){var Dn=En==null?0:En.length;return!!Dn&&ds(En,Nn,0)>-1}function co(En,Nn,Dn){for(var no=-1,io=En==null?0:En.length;++no<io;)if(Dn(Nn,En[no]))return!0;return!1}function bo(En,Nn){for(var Dn=-1,no=En==null?0:En.length,io=Array(no);++Dn<no;)io[Dn]=Nn(En[Dn],Dn,En);return io}function wo(En,Nn){for(var Dn=-1,no=Nn.length,io=En.length;++Dn<no;)En[io+Dn]=Nn[Dn];return En}function Lo(En,Nn,Dn,no){var io=-1,yo=En==null?0:En.length;for(no&&yo&&(Dn=En[++io]);++io<yo;)Dn=Nn(Dn,En[io],io,En);return Dn}function Cs(En,Nn,Dn,no){var io=En==null?0:En.length;for(no&&io&&(Dn=En[--io]);io--;)Dn=Nn(Dn,En[io],io,En);return Dn}function Ms(En,Nn){for(var Dn=-1,no=En==null?0:En.length;++Dn<no;)if(Nn(En[Dn],Dn,En))return!0;return!1}var $a=h0("length");function _l(En){return En.split("")}function Vo(En){return En.match(Qn)||[]}function r0(En,Nn,Dn){var no;return Dn(En,function(io,yo,Eo){if(Nn(io,yo,Eo))return no=yo,!1}),no}function Yo(En,Nn,Dn,no){for(var io=En.length,yo=Dn+(no?1:-1);no?yo--:++yo<io;)if(Nn(En[yo],yo,En))return yo;return-1}function ds(En,Nn,Dn){return Nn===Nn?P1(En,Nn,Dn):Yo(En,n1,Dn)}function C0(En,Nn,Dn,no){for(var io=Dn-1,yo=En.length;++io<yo;)if(no(En[io],Nn))return io;return-1}function n1(En){return En!==En}function Ps(En,Nn){var Dn=En==null?0:En.length;return Dn?Hs(En,Nn)/Dn:Gt}function h0(En){return function(Nn){return Nn==null?rt:Nn[En]}}function Us(En){return function(Nn){return En==null?rt:En[Nn]}}function Wl(En,Nn,Dn,no,io){return io(En,function(yo,Eo,fo){Dn=no?(no=!1,yo):Nn(Dn,yo,Eo,fo)}),Dn}function Cl(En,Nn){var Dn=En.length;for(En.sort(Nn);Dn--;)En[Dn]=En[Dn].value;return En}function Hs(En,Nn){for(var Dn,no=-1,io=En.length;++no<io;){var yo=Nn(En[no]);yo!==rt&&(Dn=Dn===rt?yo:Dn+yo)}return Dn}function P0(En,Nn){for(var Dn=-1,no=Array(En);++Dn<En;)no[Dn]=Nn(Dn);return no}function Ul(En,Nn){return bo(Nn,function(Dn){return[Dn,En[Dn]]})}function Tl(En){return En&&En.slice(0,s1(En)+1).replace(Mn,"")}function Gs(En){return function(Nn){return En(Nn)}}function b1(En,Nn){return bo(Nn,function(Dn){return En[Dn]})}function T0(En,Nn){return En.has(Nn)}function Oo(En,Nn){for(var Dn=-1,no=En.length;++Dn<no&&ds(Nn,En[Dn],0)>-1;);return Dn}function L0(En,Nn){for(var Dn=En.length;Dn--&&ds(Nn,En[Dn],0)>-1;);return Dn}function xl(En,Nn){for(var Dn=En.length,no=0;Dn--;)En[Dn]===Nn&&++no;return no}var m0=Us(ga),au=Us(bs);function lu(En){return"\\"+t1[En]}function j1(En,Nn){return En==null?rt:En[Nn]}function Ls(En){return e1.test(En)}function x1(En){return Pn.test(En)}function n0(En){for(var Nn,Dn=[];!(Nn=En.next()).done;)Dn.push(Nn.value);return Dn}function i1(En){var Nn=-1,Dn=Array(En.size);return En.forEach(function(no,io){Dn[++Nn]=[io,no]}),Dn}function Hl(En,Nn){return function(Dn){return En(Nn(Dn))}}function Vs(En,Nn){for(var Dn=-1,no=En.length,io=0,yo=[];++Dn<no;){var Eo=En[Dn];(Eo===Nn||Eo===xt)&&(En[Dn]=xt,yo[io++]=Dn)}return yo}function Gl(En){var Nn=-1,Dn=Array(En.size);return En.forEach(function(no){Dn[++Nn]=no}),Dn}function y1(En){var Nn=-1,Dn=Array(En.size);return En.forEach(function(no){Dn[++Nn]=[no,no]}),Dn}function P1(En,Nn,Dn){for(var no=Dn-1,io=En.length;++no<io;)if(En[no]===Nn)return no;return-1}function o1(En,Nn,Dn){for(var no=Dn+1;no--;)if(En[no]===Nn)return no;return no}function Il(En){return Ls(En)?L1(En):$a(En)}function ks(En){return Ls(En)?Rn(En):_l(En)}function s1(En){for(var Nn=En.length;Nn--&&An.test(En.charAt(Nn)););return Nn}var M1=Us(t0);function L1(En){for(var Nn=_0.lastIndex=0;_0.test(En);)++Nn;return Nn}function Rn(En){return En.match(_0)||[]}function Ln(En){return En.match(_c)||[]}var Yn=function En(Nn){Nn=Nn==null?ys:Zn.defaults(ys.Object(),Nn,Zn.pick(ys,mo));var Dn=Nn.Array,no=Nn.Date,io=Nn.Error,yo=Nn.Function,Eo=Nn.Math,fo=Nn.Object,Do=Nn.RegExp,Ro=Nn.String,Uo=Nn.TypeError,Rs=Dn.prototype,Ts=yo.prototype,zs=fo.prototype,Qs=Nn["__core-js_shared__"],$l=Ts.toString,jo=zs.hasOwnProperty,cp=0,Ou=function(){var tr=/[^.]+$/.exec(Qs&&Qs.keys&&Qs.keys.IE_PROTO||"");return tr?"Symbol(src)_1."+tr:""}(),q1=zs.toString,up=$l.call(fo),dp=ys._,pp=Do("^"+$l.call(jo).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k1=hs?Nn.Buffer:rt,z0=Nn.Symbol,F1=Nn.Uint8Array,Ru=k1?k1.allocUnsafe:rt,B1=Hl(fo.getPrototypeOf,fo),Su=fo.create,_u=zs.propertyIsEnumerable,q0=Rs.splice,Cu=z0?z0.isConcatSpreadable:rt,E1=z0?z0.iterator:rt,k0=z0?z0.toStringTag:rt,W1=function(){try{var tr=D1(fo,"defineProperty");return tr({},"",{}),tr}catch{}}(),fp=Nn.clearTimeout!==ys.clearTimeout&&Nn.clearTimeout,hp=no&&no.now!==ys.Date.now&&no.now,mp=Nn.setTimeout!==ys.setTimeout&&Nn.setTimeout,U1=Eo.ceil,v1=Eo.floor,H1=fo.getOwnPropertySymbols,Tu=k1?k1.isBuffer:rt,A1=Nn.isFinite,a1=Rs.join,G1=Hl(fo.keys,fo),Ss=Eo.max,vs=Eo.min,zu=no.now,Iu=Nn.parseInt,$u=Eo.random,gp=Rs.reverse,cu=D1(Nn,"DataView"),O1=D1(Nn,"Map"),uu=D1(Nn,"Promise"),l1=D1(Nn,"Set"),R1=D1(Nn,"WeakMap"),S1=D1(fo,"create"),V1=R1&&new R1,c1={},bp=N1(cu),xp=N1(O1),yp=N1(uu),Mp=N1(l1),Ep=N1(R1),Y1=z0?z0.prototype:rt,T1=Y1?Y1.valueOf:rt,Du=Y1?Y1.toString:rt;function mn(tr){if(_s(tr)&&!Fo(tr)&&!(tr instanceof Xo)){if(tr instanceof Dl)return tr;if(jo.call(tr,"__wrapped__"))return f2(tr)}return new Dl(tr)}var u1=function(){function tr(){}return function(lr){if(!As(lr))return{};if(Su)return Su(lr);tr.prototype=lr;var Er=new tr;return tr.prototype=rt,Er}}();function X1(){}function Dl(tr,lr){this.__wrapped__=tr,this.__actions__=[],this.__chain__=!!lr,this.__index__=0,this.__values__=rt}mn.templateSettings={escape:pn,evaluate:qn,interpolate:Bn,variable:"",imports:{_:mn}},mn.prototype=X1.prototype,mn.prototype.constructor=mn,Dl.prototype=u1(X1.prototype),Dl.prototype.constructor=Dl;function Xo(tr){this.__wrapped__=tr,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Zt,this.__views__=[]}function vp(){var tr=new Xo(this.__wrapped__);return tr.__actions__=wl(this.__actions__),tr.__dir__=this.__dir__,tr.__filtered__=this.__filtered__,tr.__iteratees__=wl(this.__iteratees__),tr.__takeCount__=this.__takeCount__,tr.__views__=wl(this.__views__),tr}function Ap(){if(this.__filtered__){var tr=new Xo(this);tr.__dir__=-1,tr.__filtered__=!0}else tr=this.clone(),tr.__dir__*=-1;return tr}function Op(){var tr=this.__wrapped__.value(),lr=this.__dir__,Er=Fo(tr),Br=lr<0,un=Er?tr.length:0,yn=yx(0,un,this.__views__),Tn=yn.start,wn=yn.end,Hn=wn-Tn,oo=Br?wn:Tn-1,so=this.__iteratees__,lo=so.length,xo=0,Ao=vs(Hn,this.__takeCount__);if(!Er||!Br&&un==Hn&&Ao==Hn)return Lm(tr,this.__actions__);var zo=[];e:for(;Hn--&&xo<Ao;){oo+=lr;for(var Qo=-1,Io=tr[oo];++Qo<lo;){var es=so[Qo],ns=es.iteratee,Kl=es.type,El=ns(Io);if(Kl==jt)Io=El;else if(!El){if(Kl==$t)continue e;break e}}zo[xo++]=Io}return zo}Xo.prototype=u1(X1.prototype),Xo.prototype.constructor=Xo;function g0(tr){var lr=-1,Er=tr==null?0:tr.length;for(this.clear();++lr<Er;){var Br=tr[lr];this.set(Br[0],Br[1])}}function K1(){this.__data__=S1?S1(null):{},this.size=0}function Rp(tr){var lr=this.has(tr)&&delete this.__data__[tr];return this.size-=lr?1:0,lr}function Sp(tr){var lr=this.__data__;if(S1){var Er=lr[tr];return Er===ht?rt:Er}return jo.call(lr,tr)?lr[tr]:rt}function _p(tr){var lr=this.__data__;return S1?lr[tr]!==rt:jo.call(lr,tr)}function Cp(tr,lr){var Er=this.__data__;return this.size+=this.has(tr)?0:1,Er[tr]=S1&&lr===rt?ht:lr,this}g0.prototype.clear=K1,g0.prototype.delete=Rp,g0.prototype.get=Sp,g0.prototype.has=_p,g0.prototype.set=Cp;function b0(tr){var lr=-1,Er=tr==null?0:tr.length;for(this.clear();++lr<Er;){var Br=tr[lr];this.set(Br[0],Br[1])}}function Tp(){this.__data__=[],this.size=0}function Nu(tr){var lr=this.__data__,Er=Nl(lr,tr);if(Er<0)return!1;var Br=lr.length-1;return Er==Br?lr.pop():q0.call(lr,Er,1),--this.size,!0}function zp(tr){var lr=this.__data__,Er=Nl(lr,tr);return Er<0?rt:lr[Er][1]}function Ip(tr){return Nl(this.__data__,tr)>-1}function wu(tr,lr){var Er=this.__data__,Br=Nl(Er,tr);return Br<0?(++this.size,Er.push([tr,lr])):Er[Br][1]=lr,this}b0.prototype.clear=Tp,b0.prototype.delete=Nu,b0.prototype.get=zp,b0.prototype.has=Ip,b0.prototype.set=wu;function x0(tr){var lr=-1,Er=tr==null?0:tr.length;for(this.clear();++lr<Er;){var Br=tr[lr];this.set(Br[0],Br[1])}}function $p(){this.size=0,this.__data__={hash:new g0,map:new(O1||b0),string:new g0}}function Dp(tr){var lr=_d(this,tr).delete(tr);return this.size-=lr?1:0,lr}function I0(tr){return _d(this,tr).get(tr)}function ju(tr){return _d(this,tr).has(tr)}function Np(tr,lr){var Er=_d(this,tr),Br=Er.size;return Er.set(tr,lr),this.size+=Er.size==Br?0:1,this}x0.prototype.clear=$p,x0.prototype.delete=Dp,x0.prototype.get=I0,x0.prototype.has=ju,x0.prototype.set=Np;function F0(tr){var lr=-1,Er=tr==null?0:tr.length;for(this.__data__=new x0;++lr<Er;)this.add(tr[lr])}function wp(tr){return this.__data__.set(tr,ht),this}function uo(tr){return this.__data__.has(tr)}F0.prototype.add=F0.prototype.push=wp,F0.prototype.has=uo;function Vl(tr){var lr=this.__data__=new b0(tr);this.size=lr.size}function jp(){this.__data__=new b0,this.size=0}function Pu(tr){var lr=this.__data__,Er=lr.delete(tr);return this.size=lr.size,Er}function ss(tr){return this.__data__.get(tr)}function Q1(tr){return this.__data__.has(tr)}function Lu(tr,lr){var Er=this.__data__;if(Er instanceof b0){var Br=Er.__data__;if(!O1||Br.length<lt-1)return Br.push([tr,lr]),this.size=++Er.size,this;Er=this.__data__=new x0(Br)}return Er.set(tr,lr),this.size=Er.size,this}Vl.prototype.clear=jp,Vl.prototype.delete=Pu,Vl.prototype.get=ss,Vl.prototype.has=Q1,Vl.prototype.set=Lu;function Z1(tr,lr){var Er=Fo(tr),Br=!Er&&w1(tr),un=!Er&&!Br&&m1(tr),yn=!Er&&!Br&&!un&&iu(tr),Tn=Er||Br||un||yn,wn=Tn?P0(tr.length,Ro):[],Hn=wn.length;for(var oo in tr)(lr||jo.call(tr,oo))&&!(Tn&&(oo=="length"||un&&(oo=="offset"||oo=="parent")||yn&&(oo=="buffer"||oo=="byteLength"||oo=="byteOffset")||G0(oo,Hn)))&&wn.push(oo);return wn}function qu(tr){var lr=tr.length;return lr?tr[Kp(0,lr-1)]:rt}function Pp(tr,lr){return ep(wl(tr),B0(lr,0,tr.length))}function Lp(tr){return ep(wl(tr))}function du(tr,lr,Er){(Er!==rt&&!v0(tr[lr],Er)||Er===rt&&!(lr in tr))&&y0(tr,lr,Er)}function z1(tr,lr,Er){var Br=tr[lr];(!(jo.call(tr,lr)&&v0(Br,Er))||Er===rt&&!(lr in tr))&&y0(tr,lr,Er)}function Nl(tr,lr){for(var Er=tr.length;Er--;)if(v0(tr[Er][0],lr))return Er;return-1}function qp(tr,lr,Er,Br){return $0(tr,function(un,yn,Tn){lr(Br,un,Er(un),Tn)}),Br}function pu(tr,lr){return tr&&N0(lr,Ys(lr),tr)}function kp(tr,lr){return tr&&N0(lr,Ll(lr),tr)}function y0(tr,lr,Er){lr=="__proto__"&&W1?W1(tr,lr,{configurable:!0,enumerable:!0,value:Er,writable:!0}):tr[lr]=Er}function J1(tr,lr){for(var Er=-1,Br=lr.length,un=Dn(Br),yn=tr==null;++Er<Br;)un[Er]=yn?rt:ym(tr,lr[Er]);return un}function B0(tr,lr,Er){return tr===tr&&(Er!==rt&&(tr=tr<=Er?tr:Er),lr!==rt&&(tr=tr>=lr?tr:lr)),tr}function yl(tr,lr,Er,Br,un,yn){var Tn,wn=lr&Mt,Hn=lr&vt,oo=lr&Ot;if(Er&&(Tn=un?Er(tr,Br,un,yn):Er(tr)),Tn!==rt)return Tn;if(!As(tr))return tr;var so=Fo(tr);if(so){if(Tn=Ex(tr),!wn)return wl(tr,Tn)}else{var lo=ba(tr),xo=lo==ar||lo==ur;if(m1(tr))return Fm(tr,wn);if(lo==Ir||lo==or||xo&&!un){if(Tn=Hn||xo?{}:i2(tr),!wn)return Hn?ux(tr,kp(Tn,tr)):cx(tr,pu(Tn,tr))}else{if(!Bo[lo])return un?tr:{};Tn=vx(tr,lo,wn)}}yn||(yn=new Vl);var Ao=yn.get(tr);if(Ao)return Ao;yn.set(tr,Tn),N2(tr)?tr.forEach(function(Io){Tn.add(yl(Io,lr,Er,Io,tr,yn))}):$2(tr)&&tr.forEach(function(Io,es){Tn.set(es,yl(Io,lr,Er,es,tr,yn))});var zo=oo?Hn?om:im:Hn?Ll:Ys,Qo=so?rt:zo(tr);return _n(Qo||tr,function(Io,es){Qo&&(es=Io,Io=tr[es]),z1(Tn,es,yl(Io,lr,Er,es,tr,yn))}),Tn}function fu(tr){var lr=Ys(tr);return function(Er){return ku(Er,tr,lr)}}function ku(tr,lr,Er){var Br=Er.length;if(tr==null)return!Br;for(tr=fo(tr);Br--;){var un=Er[Br],yn=lr[un],Tn=tr[un];if(Tn===rt&&!(un in tr)||!yn(Tn))return!1}return!0}function i0(tr,lr,Er){if(typeof tr!="function")throw new Uo(dt);return vu(function(){tr.apply(rt,Er)},lr)}function d1(tr,lr,Er,Br){var un=-1,yn=Xn,Tn=!0,wn=tr.length,Hn=[],oo=lr.length;if(!wn)return Hn;Er&&(lr=bo(lr,Gs(Er))),Br?(yn=co,Tn=!1):lr.length>=lt&&(yn=T0,Tn=!1,lr=new F0(lr));e:for(;++un<wn;){var so=tr[un],lo=Er==null?so:Er(so);if(so=Br||so!==0?so:0,Tn&&lo===lo){for(var xo=oo;xo--;)if(lr[xo]===lo)continue e;Hn.push(so)}else yn(lr,lo,Br)||Hn.push(so)}return Hn}var $0=Gm(o0),Fu=Gm(mu,!0);function Fp(tr,lr){var Er=!0;return $0(tr,function(Br,un,yn){return Er=!!lr(Br,un,yn),Er}),Er}function eu(tr,lr,Er){for(var Br=-1,un=tr.length;++Br<un;){var yn=tr[Br],Tn=lr(yn);if(Tn!=null&&(wn===rt?Tn===Tn&&!Xl(Tn):Er(Tn,wn)))var wn=Tn,Hn=yn}return Hn}function Bp(tr,lr,Er,Br){var un=tr.length;for(Er=Ho(Er),Er<0&&(Er=-Er>un?0:un+Er),Br=Br===rt||Br>un?un:Ho(Br),Br<0&&(Br+=un),Br=Er>Br?0:j2(Br);Er<Br;)tr[Er++]=lr;return tr}function Bu(tr,lr){var Er=[];return $0(tr,function(Br,un,yn){lr(Br,un,yn)&&Er.push(Br)}),Er}function Fs(tr,lr,Er,Br,un){var yn=-1,Tn=tr.length;for(Er||(Er=Ox),un||(un=[]);++yn<Tn;){var wn=tr[yn];lr>0&&Er(wn)?lr>1?Fs(wn,lr-1,Er,Br,un):wo(un,wn):Br||(un[un.length]=wn)}return un}var hu=Vm(),Wu=Vm(!0);function o0(tr,lr){return tr&&hu(tr,lr,Ys)}function mu(tr,lr){return tr&&Wu(tr,lr,Ys)}function s0(tr,lr){return ro(lr,function(Er){return V0(tr[Er])})}function W0(tr,lr){lr=f1(lr,tr);for(var Er=0,Br=lr.length;tr!=null&&Er<Br;)tr=tr[w0(lr[Er++])];return Er&&Er==Br?tr:rt}function Uu(tr,lr,Er){var Br=lr(tr);return Fo(tr)?Br:wo(Br,Er(tr))}function Zs(tr){return tr==null?tr===rt?yr:Ar:k0&&k0 in fo(tr)?xx(tr):Ix(tr)}function gu(tr,lr){return tr>lr}function Wp(tr,lr){return tr!=null&&jo.call(tr,lr)}function Up(tr,lr){return tr!=null&&lr in fo(tr)}function Hp(tr,lr,Er){return tr>=vs(lr,Er)&&tr<Ss(lr,Er)}function bu(tr,lr,Er){for(var Br=Er?co:Xn,un=tr[0].length,yn=tr.length,Tn=yn,wn=Dn(yn),Hn=1/0,oo=[];Tn--;){var so=tr[Tn];Tn&&lr&&(so=bo(so,Gs(lr))),Hn=vs(so.length,Hn),wn[Tn]=!Er&&(lr||un>=120&&so.length>=120)?new F0(Tn&&so):rt}so=tr[0];var lo=-1,xo=wn[0];e:for(;++lo<un&&oo.length<Hn;){var Ao=so[lo],zo=lr?lr(Ao):Ao;if(Ao=Er||Ao!==0?Ao:0,!(xo?T0(xo,zo):Br(oo,zo,Er))){for(Tn=yn;--Tn;){var Qo=wn[Tn];if(!(Qo?T0(Qo,zo):Br(tr[Tn],zo,Er)))continue e}xo&&xo.push(zo),oo.push(Ao)}}return oo}function M0(tr,lr,Er,Br){return o0(tr,function(un,yn,Tn){lr(Br,Er(un),yn,Tn)}),Br}function a0(tr,lr,Er){lr=f1(lr,tr),tr=l2(tr,lr);var Br=tr==null?tr:tr[w0(u0(lr))];return Br==null?rt:dn(Br,tr,Er)}function Hu(tr){return _s(tr)&&Zs(tr)==or}function Gp(tr){return _s(tr)&&Zs(tr)==Fr}function Vp(tr){return _s(tr)&&Zs(tr)==dr}function I1(tr,lr,Er,Br,un){return tr===lr?!0:tr==null||lr==null||!_s(tr)&&!_s(lr)?tr!==tr&&lr!==lr:Yp(tr,lr,Er,Br,I1,un)}function Yp(tr,lr,Er,Br,un,yn){var Tn=Fo(tr),wn=Fo(lr),Hn=Tn?rr:ba(tr),oo=wn?rr:ba(lr);Hn=Hn==or?Ir:Hn,oo=oo==or?Ir:oo;var so=Hn==Ir,lo=oo==Ir,xo=Hn==oo;if(xo&&m1(tr)){if(!m1(lr))return!1;Tn=!0,so=!1}if(xo&&!so)return yn||(yn=new Vl),Tn||iu(tr)?t2(tr,lr,Er,Br,un,yn):gx(tr,lr,Hn,Er,Br,un,yn);if(!(Er&At)){var Ao=so&&jo.call(tr,"__wrapped__"),zo=lo&&jo.call(lr,"__wrapped__");if(Ao||zo){var Qo=Ao?tr.value():tr,Io=zo?lr.value():lr;return yn||(yn=new Vl),un(Qo,Io,Er,Br,yn)}}return xo?(yn||(yn=new Vl),bx(tr,lr,Er,Br,un,yn)):!1}function xu(tr){return _s(tr)&&ba(tr)==xr}function D0(tr,lr,Er,Br){var un=Er.length,yn=un,Tn=!Br;if(tr==null)return!yn;for(tr=fo(tr);un--;){var wn=Er[un];if(Tn&&wn[2]?wn[1]!==tr[wn[0]]:!(wn[0]in tr))return!1}for(;++un<yn;){wn=Er[un];var Hn=wn[0],oo=tr[Hn],so=wn[1];if(Tn&&wn[2]){if(oo===rt&&!(Hn in tr))return!1}else{var lo=new Vl;if(Br)var xo=Br(oo,so,Hn,tr,lr,lo);if(!(xo===rt?I1(so,oo,At|Rt,Br,lo):xo))return!1}}return!0}function $1(tr){if(!As(tr)||Sx(tr))return!1;var lr=V0(tr)?pp:ao;return lr.test(N1(tr))}function ts(tr){return _s(tr)&&Zs(tr)==qr}function fr(tr){return _s(tr)&&ba(tr)==Hr}function Sr(tr){return _s(tr)&&sp(tr.length)&&!!qo[Zs(tr)]}function Ur(tr){return typeof tr=="function"?tr:tr==null?Fl:typeof tr=="object"?Fo(tr)?No(tr[0],tr[1]):Mo(tr):V2(tr)}function tn(tr){if(!Eu(tr))return G1(tr);var lr=[];for(var Er in fo(tr))jo.call(tr,Er)&&Er!="constructor"&&lr.push(Er);return lr}function hn(tr){if(!As(tr))return zx(tr);var lr=Eu(tr),Er=[];for(var Br in tr)Br=="constructor"&&(lr||!jo.call(tr,Br))||Er.push(Br);return Er}function $n(tr,lr){return tr<lr}function eo(tr,lr){var Er=-1,Br=Pl(tr)?Dn(tr.length):[];return $0(tr,function(un,yn,Tn){Br[++Er]=lr(un,yn,Tn)}),Br}function Mo(tr){var lr=am(tr);return lr.length==1&&lr[0][2]?s2(lr[0][0],lr[0][1]):function(Er){return Er===tr||D0(Er,tr,lr)}}function No(tr,lr){return cm(tr)&&o2(lr)?s2(w0(tr),lr):function(Er){var Br=ym(Er,tr);return Br===rt&&Br===lr?Mm(Er,tr):I1(lr,Br,At|Rt)}}function Ko(tr,lr,Er,Br,un){tr!==lr&&hu(lr,function(yn,Tn){if(un||(un=new Vl),As(yn))Js(tr,lr,Tn,Er,Ko,Br,un);else{var wn=Br?Br(dm(tr,Tn),yn,Tn+"",tr,lr,un):rt;wn===rt&&(wn=yn),du(tr,Tn,wn)}},Ll)}function Js(tr,lr,Er,Br,un,yn,Tn){var wn=dm(tr,Er),Hn=dm(lr,Er),oo=Tn.get(Hn);if(oo){du(tr,Er,oo);return}var so=yn?yn(wn,Hn,Er+"",tr,lr,Tn):rt,lo=so===rt;if(lo){var xo=Fo(Hn),Ao=!xo&&m1(Hn),zo=!xo&&!Ao&&iu(Hn);so=Hn,xo||Ao||zo?Fo(wn)?so=wn:Is(wn)?so=wl(wn):Ao?(lo=!1,so=Fm(Hn,!0)):zo?(lo=!1,so=Bm(Hn,!0)):so=[]:Au(Hn)||w1(Hn)?(so=wn,w1(wn)?so=P2(wn):(!As(wn)||V0(wn))&&(so=i2(Hn))):lo=!1}lo&&(Tn.set(Hn,so),un(so,Hn,Br,yn,Tn),Tn.delete(Hn)),du(tr,Er,so)}function l0(tr,lr){var Er=tr.length;if(Er)return lr+=lr<0?Er:0,G0(lr,Er)?tr[lr]:rt}function E0(tr,lr,Er){lr.length?lr=bo(lr,function(yn){return Fo(yn)?function(Tn){return W0(Tn,yn.length===1?yn[0]:yn)}:yn}):lr=[Fl];var Br=-1;lr=bo(lr,Gs(To()));var un=eo(tr,function(yn,Tn,wn){var Hn=bo(lr,function(oo){return oo(yn)});return{criteria:Hn,index:++Br,value:yn}});return Cl(un,function(yn,Tn){return lx(yn,Tn,Er)})}function K2(tr,lr){return $m(tr,lr,function(Er,Br){return Mm(tr,Br)})}function $m(tr,lr,Er){for(var Br=-1,un=lr.length,yn={};++Br<un;){var Tn=lr[Br],wn=W0(tr,Tn);Er(wn,Tn)&&yu(yn,f1(Tn,tr),wn)}return yn}function Q2(tr){return function(lr){return W0(lr,tr)}}function Xp(tr,lr,Er,Br){var un=Br?C0:ds,yn=-1,Tn=lr.length,wn=tr;for(tr===lr&&(lr=wl(lr)),Er&&(wn=bo(tr,Gs(Er)));++yn<Tn;)for(var Hn=0,oo=lr[yn],so=Er?Er(oo):oo;(Hn=un(wn,so,Hn,Br))>-1;)wn!==tr&&q0.call(wn,Hn,1),q0.call(tr,Hn,1);return tr}function Dm(tr,lr){for(var Er=tr?lr.length:0,Br=Er-1;Er--;){var un=lr[Er];if(Er==Br||un!==yn){var yn=un;G0(un)?q0.call(tr,un,1):Jp(tr,un)}}return tr}function Kp(tr,lr){return tr+v1($u()*(lr-tr+1))}function Z2(tr,lr,Er,Br){for(var un=-1,yn=Ss(U1((lr-tr)/(Er||1)),0),Tn=Dn(yn);yn--;)Tn[Br?yn:++un]=tr,tr+=Er;return Tn}function Qp(tr,lr){var Er="";if(!tr||lr<1||lr>Vt)return Er;do lr%2&&(Er+=tr),lr=v1(lr/2),lr&&(tr+=tr);while(lr);return Er}function Zo(tr,lr){return pm(a2(tr,lr,Fl),tr+"")}function J2(tr){return qu(ou(tr))}function ex(tr,lr){var Er=ou(tr);return ep(Er,B0(lr,0,Er.length))}function yu(tr,lr,Er,Br){if(!As(tr))return tr;lr=f1(lr,tr);for(var un=-1,yn=lr.length,Tn=yn-1,wn=tr;wn!=null&&++un<yn;){var Hn=w0(lr[un]),oo=Er;if(Hn==="__proto__"||Hn==="constructor"||Hn==="prototype")return tr;if(un!=Tn){var so=wn[Hn];oo=Br?Br(so,Hn,wn):rt,oo===rt&&(oo=As(so)?so:G0(lr[un+1])?[]:{})}z1(wn,Hn,oo),wn=wn[Hn]}return tr}var Nm=V1?function(tr,lr){return V1.set(tr,lr),tr}:Fl,tx=W1?function(tr,lr){return W1(tr,"toString",{configurable:!0,enumerable:!1,value:vm(lr),writable:!0})}:Fl;function rx(tr){return ep(ou(tr))}function c0(tr,lr,Er){var Br=-1,un=tr.length;lr<0&&(lr=-lr>un?0:un+lr),Er=Er>un?un:Er,Er<0&&(Er+=un),un=lr>Er?0:Er-lr>>>0,lr>>>=0;for(var yn=Dn(un);++Br<un;)yn[Br]=tr[Br+lr];return yn}function nx(tr,lr){var Er;return $0(tr,function(Br,un,yn){return Er=lr(Br,un,yn),!Er}),!!Er}function Gu(tr,lr,Er){var Br=0,un=tr==null?Br:tr.length;if(typeof lr=="number"&&lr===lr&&un<=er){for(;Br<un;){var yn=Br+un>>>1,Tn=tr[yn];Tn!==null&&!Xl(Tn)&&(Er?Tn<=lr:Tn<lr)?Br=yn+1:un=yn}return un}return Zp(tr,lr,Fl,Er)}function Zp(tr,lr,Er,Br){var un=0,yn=tr==null?0:tr.length;if(yn===0)return 0;lr=Er(lr);for(var Tn=lr!==lr,wn=lr===null,Hn=Xl(lr),oo=lr===rt;un<yn;){var so=v1((un+yn)/2),lo=Er(tr[so]),xo=lo!==rt,Ao=lo===null,zo=lo===lo,Qo=Xl(lo);if(Tn)var Io=Br||zo;else oo?Io=zo&&(Br||xo):wn?Io=zo&&xo&&(Br||!Ao):Hn?Io=zo&&xo&&!Ao&&(Br||!Qo):Ao||Qo?Io=!1:Io=Br?lo<=lr:lo<lr;Io?un=so+1:yn=so}return vs(yn,Xt)}function wm(tr,lr){for(var Er=-1,Br=tr.length,un=0,yn=[];++Er<Br;){var Tn=tr[Er],wn=lr?lr(Tn):Tn;if(!Er||!v0(wn,Hn)){var Hn=wn;yn[un++]=Tn===0?0:Tn}}return yn}function jm(tr){return typeof tr=="number"?tr:Xl(tr)?Gt:+tr}function Yl(tr){if(typeof tr=="string")return tr;if(Fo(tr))return bo(tr,Yl)+"";if(Xl(tr))return Du?Du.call(tr):"";var lr=tr+"";return lr=="0"&&1/tr==-Ut?"-0":lr}function p1(tr,lr,Er){var Br=-1,un=Xn,yn=tr.length,Tn=!0,wn=[],Hn=wn;if(Er)Tn=!1,un=co;else if(yn>=lt){var oo=lr?null:hx(tr);if(oo)return Gl(oo);Tn=!1,un=T0,Hn=new F0}else Hn=lr?[]:wn;e:for(;++Br<yn;){var so=tr[Br],lo=lr?lr(so):so;if(so=Er||so!==0?so:0,Tn&&lo===lo){for(var xo=Hn.length;xo--;)if(Hn[xo]===lo)continue e;lr&&Hn.push(lo),wn.push(so)}else un(Hn,lo,Er)||(Hn!==wn&&Hn.push(lo),wn.push(so))}return wn}function Jp(tr,lr){return lr=f1(lr,tr),tr=l2(tr,lr),tr==null||delete tr[w0(u0(lr))]}function Pm(tr,lr,Er,Br){return yu(tr,lr,Er(W0(tr,lr)),Br)}function Vu(tr,lr,Er,Br){for(var un=tr.length,yn=Br?un:-1;(Br?yn--:++yn<un)&&lr(tr[yn],yn,tr););return Er?c0(tr,Br?0:yn,Br?yn+1:un):c0(tr,Br?yn+1:0,Br?un:yn)}function Lm(tr,lr){var Er=tr;return Er instanceof Xo&&(Er=Er.value()),Lo(lr,function(Br,un){return un.func.apply(un.thisArg,wo([Br],un.args))},Er)}function _f(tr,lr,Er){var Br=tr.length;if(Br<2)return Br?p1(tr[0]):[];for(var un=-1,yn=Dn(Br);++un<Br;)for(var Tn=tr[un],wn=-1;++wn<Br;)wn!=un&&(yn[un]=d1(yn[un]||Tn,tr[wn],lr,Er));return p1(Fs(yn,1),lr,Er)}function qm(tr,lr,Er){for(var Br=-1,un=tr.length,yn=lr.length,Tn={};++Br<un;){var wn=Br<yn?lr[Br]:rt;Er(Tn,tr[Br],wn)}return Tn}function _h(tr){return Is(tr)?tr:[]}function em(tr){return typeof tr=="function"?tr:Fl}function f1(tr,lr){return Fo(tr)?tr:cm(tr,lr)?[tr]:p2(fs(tr))}var ix=Zo;function h1(tr,lr,Er){var Br=tr.length;return Er=Er===rt?Br:Er,!lr&&Er>=Br?tr:c0(tr,lr,Er)}var km=fp||function(tr){return ys.clearTimeout(tr)};function Fm(tr,lr){if(lr)return tr.slice();var Er=tr.length,Br=Ru?Ru(Er):new tr.constructor(Er);return tr.copy(Br),Br}function tm(tr){var lr=new tr.constructor(tr.byteLength);return new F1(lr).set(new F1(tr)),lr}function ox(tr,lr){var Er=lr?tm(tr.buffer):tr.buffer;return new tr.constructor(Er,tr.byteOffset,tr.byteLength)}function sx(tr){var lr=new tr.constructor(tr.source,In.exec(tr));return lr.lastIndex=tr.lastIndex,lr}function ax(tr){return T1?fo(T1.call(tr)):{}}function Bm(tr,lr){var Er=lr?tm(tr.buffer):tr.buffer;return new tr.constructor(Er,tr.byteOffset,tr.length)}function Wm(tr,lr){if(tr!==lr){var Er=tr!==rt,Br=tr===null,un=tr===tr,yn=Xl(tr),Tn=lr!==rt,wn=lr===null,Hn=lr===lr,oo=Xl(lr);if(!wn&&!oo&&!yn&&tr>lr||yn&&Tn&&Hn&&!wn&&!oo||Br&&Tn&&Hn||!Er&&Hn||!un)return 1;if(!Br&&!yn&&!oo&&tr<lr||oo&&Er&&un&&!Br&&!yn||wn&&Er&&un||!Tn&&un||!Hn)return-1}return 0}function lx(tr,lr,Er){for(var Br=-1,un=tr.criteria,yn=lr.criteria,Tn=un.length,wn=Er.length;++Br<Tn;){var Hn=Wm(un[Br],yn[Br]);if(Hn){if(Br>=wn)return Hn;var oo=Er[Br];return Hn*(oo=="desc"?-1:1)}}return tr.index-lr.index}function Um(tr,lr,Er,Br){for(var un=-1,yn=tr.length,Tn=Er.length,wn=-1,Hn=lr.length,oo=Ss(yn-Tn,0),so=Dn(Hn+oo),lo=!Br;++wn<Hn;)so[wn]=lr[wn];for(;++un<Tn;)(lo||un<yn)&&(so[Er[un]]=tr[un]);for(;oo--;)so[wn++]=tr[un++];return so}function Hm(tr,lr,Er,Br){for(var un=-1,yn=tr.length,Tn=-1,wn=Er.length,Hn=-1,oo=lr.length,so=Ss(yn-wn,0),lo=Dn(so+oo),xo=!Br;++un<so;)lo[un]=tr[un];for(var Ao=un;++Hn<oo;)lo[Ao+Hn]=lr[Hn];for(;++Tn<wn;)(xo||un<yn)&&(lo[Ao+Er[Tn]]=tr[un++]);return lo}function wl(tr,lr){var Er=-1,Br=tr.length;for(lr||(lr=Dn(Br));++Er<Br;)lr[Er]=tr[Er];return lr}function N0(tr,lr,Er,Br){var un=!Er;Er||(Er={});for(var yn=-1,Tn=lr.length;++yn<Tn;){var wn=lr[yn],Hn=Br?Br(Er[wn],tr[wn],wn,Er,tr):rt;Hn===rt&&(Hn=tr[wn]),un?y0(Er,wn,Hn):z1(Er,wn,Hn)}return Er}function cx(tr,lr){return N0(tr,lm(tr),lr)}function ux(tr,lr){return N0(tr,r2(tr),lr)}function Yu(tr,lr){return function(Er,Br){var un=Fo(Er)?zn:qp,yn=lr?lr():{};return un(Er,tr,To(Br,2),yn)}}function tu(tr){return Zo(function(lr,Er){var Br=-1,un=Er.length,yn=un>1?Er[un-1]:rt,Tn=un>2?Er[2]:rt;for(yn=tr.length>3&&typeof yn=="function"?(un--,yn):rt,Tn&&Ml(Er[0],Er[1],Tn)&&(yn=un<3?rt:yn,un=1),lr=fo(lr);++Br<un;){var wn=Er[Br];wn&&tr(lr,wn,Br,yn)}return lr})}function Gm(tr,lr){return function(Er,Br){if(Er==null)return Er;if(!Pl(Er))return tr(Er,Br);for(var un=Er.length,yn=lr?un:-1,Tn=fo(Er);(lr?yn--:++yn<un)&&Br(Tn[yn],yn,Tn)!==!1;);return Er}}function Vm(tr){return function(lr,Er,Br){for(var un=-1,yn=fo(lr),Tn=Br(lr),wn=Tn.length;wn--;){var Hn=Tn[tr?wn:++un];if(Er(yn[Hn],Hn,yn)===!1)break}return lr}}function dx(tr,lr,Er){var Br=lr&zt,un=Mu(tr);function yn(){var Tn=this&&this!==ys&&this instanceof yn?un:tr;return Tn.apply(Br?Er:this,arguments)}return yn}function Ym(tr){return function(lr){lr=fs(lr);var Er=Ls(lr)?ks(lr):rt,Br=Er?Er[0]:lr.charAt(0),un=Er?h1(Er,1).join(""):lr.slice(1);return Br[tr]()+un}}function ru(tr){return function(lr){return Lo(H2(U2(lr).replace(S0,"")),tr,"")}}function Mu(tr){return function(){var lr=arguments;switch(lr.length){case 0:return new tr;case 1:return new tr(lr[0]);case 2:return new tr(lr[0],lr[1]);case 3:return new tr(lr[0],lr[1],lr[2]);case 4:return new tr(lr[0],lr[1],lr[2],lr[3]);case 5:return new tr(lr[0],lr[1],lr[2],lr[3],lr[4]);case 6:return new tr(lr[0],lr[1],lr[2],lr[3],lr[4],lr[5]);case 7:return new tr(lr[0],lr[1],lr[2],lr[3],lr[4],lr[5],lr[6])}var Er=u1(tr.prototype),Br=tr.apply(Er,lr);return As(Br)?Br:Er}}function px(tr,lr,Er){var Br=Mu(tr);function un(){for(var yn=arguments.length,Tn=Dn(yn),wn=yn,Hn=nu(un);wn--;)Tn[wn]=arguments[wn];var oo=yn<3&&Tn[0]!==Hn&&Tn[yn-1]!==Hn?[]:Vs(Tn,Hn);if(yn-=oo.length,yn<Er)return Jm(tr,lr,Xu,un.placeholder,rt,Tn,oo,rt,rt,Er-yn);var so=this&&this!==ys&&this instanceof un?Br:tr;return dn(so,this,Tn)}return un}function Xm(tr){return function(lr,Er,Br){var un=fo(lr);if(!Pl(lr)){var yn=To(Er,3);lr=Ys(lr),Er=function(wn){return yn(un[wn],wn,un)}}var Tn=tr(lr,Er,Br);return Tn>-1?un[yn?lr[Tn]:Tn]:rt}}function Km(tr){return H0(function(lr){var Er=lr.length,Br=Er,un=Dl.prototype.thru;for(tr&&lr.reverse();Br--;){var yn=lr[Br];if(typeof yn!="function")throw new Uo(dt);if(un&&!Tn&&Ju(yn)=="wrapper")var Tn=new Dl([],!0)}for(Br=Tn?Br:Er;++Br<Er;){yn=lr[Br];var wn=Ju(yn),Hn=wn=="wrapper"?sm(yn):rt;Hn&&um(Hn[0])&&Hn[1]==(Nt|It|kt|Yt)&&!Hn[4].length&&Hn[9]==1?Tn=Tn[Ju(Hn[0])].apply(Tn,Hn[3]):Tn=yn.length==1&&um(yn)?Tn[wn]():Tn.thru(yn)}return function(){var oo=arguments,so=oo[0];if(Tn&&oo.length==1&&Fo(so))return Tn.plant(so).value();for(var lo=0,xo=Er?lr[lo].apply(this,oo):so;++lo<Er;)xo=lr[lo].call(this,xo);return xo}})}function Xu(tr,lr,Er,Br,un,yn,Tn,wn,Hn,oo){var so=lr&Nt,lo=lr&zt,xo=lr&Tt,Ao=lr&(It|Dt),zo=lr&Kt,Qo=xo?rt:Mu(tr);function Io(){for(var es=arguments.length,ns=Dn(es),Kl=es;Kl--;)ns[Kl]=arguments[Kl];if(Ao)var El=nu(Io),Ql=xl(ns,El);if(Br&&(ns=Um(ns,Br,un,Ao)),yn&&(ns=Hm(ns,yn,Tn,Ao)),es-=Ql,Ao&&es<oo){var $s=Vs(ns,El);return Jm(tr,lr,Xu,Io.placeholder,Er,ns,$s,wn,Hn,oo-es)}var A0=lo?Er:this,X0=xo?A0[tr]:tr;return es=ns.length,wn?ns=$x(ns,wn):zo&&es>1&&ns.reverse(),so&&Hn<es&&(ns.length=Hn),this&&this!==ys&&this instanceof Io&&(X0=Qo||Mu(X0)),X0.apply(A0,ns)}return Io}function Qm(tr,lr){return function(Er,Br){return M0(Er,tr,lr(Br),{})}}function Ku(tr,lr){return function(Er,Br){var un;if(Er===rt&&Br===rt)return lr;if(Er!==rt&&(un=Er),Br!==rt){if(un===rt)return Br;typeof Er=="string"||typeof Br=="string"?(Er=Yl(Er),Br=Yl(Br)):(Er=jm(Er),Br=jm(Br)),un=tr(Er,Br)}return un}}function rm(tr){return H0(function(lr){return lr=bo(lr,Gs(To())),Zo(function(Er){var Br=this;return tr(lr,function(un){return dn(un,Br,Er)})})})}function Qu(tr,lr){lr=lr===rt?" ":Yl(lr);var Er=lr.length;if(Er<2)return Er?Qp(lr,tr):lr;var Br=Qp(lr,U1(tr/Il(lr)));return Ls(lr)?h1(ks(Br),0,tr).join(""):Br.slice(0,tr)}function fx(tr,lr,Er,Br){var un=lr&zt,yn=Mu(tr);function Tn(){for(var wn=-1,Hn=arguments.length,oo=-1,so=Br.length,lo=Dn(so+Hn),xo=this&&this!==ys&&this instanceof Tn?yn:tr;++oo<so;)lo[oo]=Br[oo];for(;Hn--;)lo[oo++]=arguments[++wn];return dn(xo,un?Er:this,lo)}return Tn}function Zm(tr){return function(lr,Er,Br){return Br&&typeof Br!="number"&&Ml(lr,Er,Br)&&(Er=Br=rt),lr=Y0(lr),Er===rt?(Er=lr,lr=0):Er=Y0(Er),Br=Br===rt?lr<Er?1:-1:Y0(Br),Z2(lr,Er,Br,tr)}}function Zu(tr){return function(lr,Er){return typeof lr=="string"&&typeof Er=="string"||(lr=d0(lr),Er=d0(Er)),tr(lr,Er)}}function Jm(tr,lr,Er,Br,un,yn,Tn,wn,Hn,oo){var so=lr&It,lo=so?Tn:rt,xo=so?rt:Tn,Ao=so?yn:rt,zo=so?rt:yn;lr|=so?kt:qt,lr&=~(so?qt:kt),lr&Ct||(lr&=~(zt|Tt));var Qo=[tr,lr,un,Ao,lo,zo,xo,wn,Hn,oo],Io=Er.apply(rt,Qo);return um(tr)&&c2(Io,Qo),Io.placeholder=Br,u2(Io,tr,lr)}function nm(tr){var lr=Eo[tr];return function(Er,Br){if(Er=d0(Er),Br=Br==null?0:vs(Ho(Br),292),Br&&A1(Er)){var un=(fs(Er)+"e").split("e"),yn=lr(un[0]+"e"+(+un[1]+Br));return un=(fs(yn)+"e").split("e"),+(un[0]+"e"+(+un[1]-Br))}return lr(Er)}}var hx=l1&&1/Gl(new l1([,-0]))[1]==Ut?function(tr){return new l1(tr)}:Rm;function _g(tr){return function(lr){var Er=ba(lr);return Er==xr?i1(lr):Er==Hr?y1(lr):Ul(lr,tr(lr))}}function U0(tr,lr,Er,Br,un,yn,Tn,wn){var Hn=lr&Tt;if(!Hn&&typeof tr!="function")throw new Uo(dt);var oo=Br?Br.length:0;if(oo||(lr&=~(kt|qt),Br=un=rt),Tn=Tn===rt?Tn:Ss(Ho(Tn),0),wn=wn===rt?wn:Ho(wn),oo-=un?un.length:0,lr&qt){var so=Br,lo=un;Br=un=rt}var xo=Hn?rt:sm(tr),Ao=[tr,lr,Er,Br,un,so,lo,yn,Tn,wn];if(xo&&Tx(Ao,xo),tr=Ao[0],lr=Ao[1],Er=Ao[2],Br=Ao[3],un=Ao[4],wn=Ao[9]=Ao[9]===rt?Hn?0:tr.length:Ss(Ao[9]-oo,0),!wn&&lr&(It|Dt)&&(lr&=~(It|Dt)),!lr||lr==zt)var zo=dx(tr,lr,Er);else lr==It||lr==Dt?zo=px(tr,lr,wn):(lr==kt||lr==(zt|kt))&&!un.length?zo=fx(tr,lr,Er,Br):zo=Xu.apply(rt,Ao);var Qo=xo?Nm:c2;return u2(Qo(zo,Ao),tr,lr)}function _b(tr,lr,Er,Br){return tr===rt||v0(tr,zs[Er])&&!jo.call(Br,Er)?lr:tr}function e2(tr,lr,Er,Br,un,yn){return As(tr)&&As(lr)&&(yn.set(lr,tr),Ko(tr,lr,rt,e2,yn),yn.delete(lr)),tr}function mx(tr){return Au(tr)?rt:tr}function t2(tr,lr,Er,Br,un,yn){var Tn=Er&At,wn=tr.length,Hn=lr.length;if(wn!=Hn&&!(Tn&&Hn>wn))return!1;var oo=yn.get(tr),so=yn.get(lr);if(oo&&so)return oo==lr&&so==tr;var lo=-1,xo=!0,Ao=Er&Rt?new F0:rt;for(yn.set(tr,lr),yn.set(lr,tr);++lo<wn;){var zo=tr[lo],Qo=lr[lo];if(Br)var Io=Tn?Br(Qo,zo,lo,lr,tr,yn):Br(zo,Qo,lo,tr,lr,yn);if(Io!==rt){if(Io)continue;xo=!1;break}if(Ao){if(!Ms(lr,function(es,ns){if(!T0(Ao,ns)&&(zo===es||un(zo,es,Er,Br,yn)))return Ao.push(ns)})){xo=!1;break}}else if(!(zo===Qo||un(zo,Qo,Er,Br,yn))){xo=!1;break}}return yn.delete(tr),yn.delete(lr),xo}function gx(tr,lr,Er,Br,un,yn,Tn){switch(Er){case Yr:if(tr.byteLength!=lr.byteLength||tr.byteOffset!=lr.byteOffset)return!1;tr=tr.buffer,lr=lr.buffer;case Fr:return!(tr.byteLength!=lr.byteLength||!yn(new F1(tr),new F1(lr)));case ir:case dr:case Mr:return v0(+tr,+lr);case br:return tr.name==lr.name&&tr.message==lr.message;case qr:case kr:return tr==lr+"";case xr:var wn=i1;case Hr:var Hn=Br&At;if(wn||(wn=Gl),tr.size!=lr.size&&!Hn)return!1;var oo=Tn.get(tr);if(oo)return oo==lr;Br|=Rt,Tn.set(tr,lr);var so=t2(wn(tr),wn(lr),Br,un,yn,Tn);return Tn.delete(tr),so;case $r:if(T1)return T1.call(tr)==T1.call(lr)}return!1}function bx(tr,lr,Er,Br,un,yn){var Tn=Er&At,wn=im(tr),Hn=wn.length,oo=im(lr),so=oo.length;if(Hn!=so&&!Tn)return!1;for(var lo=Hn;lo--;){var xo=wn[lo];if(!(Tn?xo in lr:jo.call(lr,xo)))return!1}var Ao=yn.get(tr),zo=yn.get(lr);if(Ao&&zo)return Ao==lr&&zo==tr;var Qo=!0;yn.set(tr,lr),yn.set(lr,tr);for(var Io=Tn;++lo<Hn;){xo=wn[lo];var es=tr[xo],ns=lr[xo];if(Br)var Kl=Tn?Br(ns,es,xo,lr,tr,yn):Br(es,ns,xo,tr,lr,yn);if(!(Kl===rt?es===ns||un(es,ns,Er,Br,yn):Kl)){Qo=!1;break}Io||(Io=xo=="constructor")}if(Qo&&!Io){var El=tr.constructor,Ql=lr.constructor;El!=Ql&&"constructor"in tr&&"constructor"in lr&&!(typeof El=="function"&&El instanceof El&&typeof Ql=="function"&&Ql instanceof Ql)&&(Qo=!1)}return yn.delete(tr),yn.delete(lr),Qo}function H0(tr){return pm(a2(tr,rt,g2),tr+"")}function im(tr){return Uu(tr,Ys,lm)}function om(tr){return Uu(tr,Ll,r2)}var sm=V1?function(tr){return V1.get(tr)}:Rm;function Ju(tr){for(var lr=tr.name+"",Er=c1[lr],Br=jo.call(c1,lr)?Er.length:0;Br--;){var un=Er[Br],yn=un.func;if(yn==null||yn==tr)return un.name}return lr}function nu(tr){var lr=jo.call(mn,"placeholder")?mn:tr;return lr.placeholder}function To(){var tr=mn.iteratee||Am;return tr=tr===Am?Ur:tr,arguments.length?tr(arguments[0],arguments[1]):tr}function _d(tr,lr){var Er=tr.__data__;return Rx(lr)?Er[typeof lr=="string"?"string":"hash"]:Er.map}function am(tr){for(var lr=Ys(tr),Er=lr.length;Er--;){var Br=lr[Er],un=tr[Br];lr[Er]=[Br,un,o2(un)]}return lr}function D1(tr,lr){var Er=j1(tr,lr);return $1(Er)?Er:rt}function xx(tr){var lr=jo.call(tr,k0),Er=tr[k0];try{tr[k0]=rt;var Br=!0}catch{}var un=q1.call(tr);return Br&&(lr?tr[k0]=Er:delete tr[k0]),un}var lm=H1?function(tr){return tr==null?[]:(tr=fo(tr),ro(H1(tr),function(lr){return _u.call(tr,lr)}))}:Sm,r2=H1?function(tr){for(var lr=[];tr;)wo(lr,lm(tr)),tr=B1(tr);return lr}:Sm,ba=Zs;(cu&&ba(new cu(new ArrayBuffer(1)))!=Yr||O1&&ba(new O1)!=xr||uu&&ba(uu.resolve())!=Rr||l1&&ba(new l1)!=Hr||R1&&ba(new R1)!=Or)&&(ba=function(tr){var lr=Zs(tr),Er=lr==Ir?tr.constructor:rt,Br=Er?N1(Er):"";if(Br)switch(Br){case bp:return Yr;case xp:return xr;case yp:return Rr;case Mp:return Hr;case Ep:return Or}return lr});function yx(tr,lr,Er){for(var Br=-1,un=Er.length;++Br<un;){var yn=Er[Br],Tn=yn.size;switch(yn.type){case"drop":tr+=Tn;break;case"dropRight":lr-=Tn;break;case"take":lr=vs(lr,tr+Tn);break;case"takeRight":tr=Ss(tr,lr-Tn);break}}return{start:tr,end:lr}}function Mx(tr){var lr=tr.match(Cn);return lr?lr[1].split(kn):[]}function n2(tr,lr,Er){lr=f1(lr,tr);for(var Br=-1,un=lr.length,yn=!1;++Br<un;){var Tn=w0(lr[Br]);if(!(yn=tr!=null&&Er(tr,Tn)))break;tr=tr[Tn]}return yn||++Br!=un?yn:(un=tr==null?0:tr.length,!!un&&sp(un)&&G0(Tn,un)&&(Fo(tr)||w1(tr)))}function Ex(tr){var lr=tr.length,Er=new tr.constructor(lr);return lr&&typeof tr[0]=="string"&&jo.call(tr,"index")&&(Er.index=tr.index,Er.input=tr.input),Er}function i2(tr){return typeof tr.constructor=="function"&&!Eu(tr)?u1(B1(tr)):{}}function vx(tr,lr,Er){var Br=tr.constructor;switch(lr){case Fr:return tm(tr);case ir:case dr:return new Br(+tr);case Yr:return ox(tr,Er);case Gr:case Jr:case jr:case Zr:case Xr:case cn:case Qr:case rn:case _r:return Bm(tr,Er);case xr:return new Br;case Mr:case kr:return new Br(tr);case qr:return sx(tr);case Hr:return new Br;case $r:return ax(tr)}}function Ax(tr,lr){var Er=lr.length;if(!Er)return tr;var Br=Er-1;return lr[Br]=(Er>1?"& ":"")+lr[Br],lr=lr.join(Er>2?", ":" "),tr.replace(Vn,`{
/* [wrapped with `+lr+`] */
`)}function Ox(tr){return Fo(tr)||w1(tr)||!!(Cu&&tr&&tr[Cu])}function G0(tr,lr){var Er=typeof tr;return lr=lr??Vt,!!lr&&(Er=="number"||Er!="symbol"&&ho.test(tr))&&tr>-1&&tr%1==0&&tr<lr}function Ml(tr,lr,Er){if(!As(Er))return!1;var Br=typeof lr;return(Br=="number"?Pl(Er)&&G0(lr,Er.length):Br=="string"&&lr in Er)?v0(Er[lr],tr):!1}function cm(tr,lr){if(Fo(tr))return!1;var Er=typeof tr;return Er=="number"||Er=="symbol"||Er=="boolean"||tr==null||Xl(tr)?!0:Tr.test(tr)||!Kr.test(tr)||lr!=null&&tr in fo(lr)}function Rx(tr){var lr=typeof tr;return lr=="string"||lr=="number"||lr=="symbol"||lr=="boolean"?tr!=="__proto__":tr===null}function um(tr){var lr=Ju(tr),Er=mn[lr];if(typeof Er!="function"||!(lr in Xo.prototype))return!1;if(tr===Er)return!0;var Br=sm(Er);return!!Br&&tr===Br[0]}function Sx(tr){return!!Ou&&Ou in tr}var _x=Qs?V0:_m;function Eu(tr){var lr=tr&&tr.constructor,Er=typeof lr=="function"&&lr.prototype||zs;return tr===Er}function o2(tr){return tr===tr&&!As(tr)}function s2(tr,lr){return function(Er){return Er==null?!1:Er[tr]===lr&&(lr!==rt||tr in fo(Er))}}function Cx(tr){var lr=ip(tr,function(Br){return Er.size===mt&&Er.clear(),Br}),Er=lr.cache;return lr}function Tx(tr,lr){var Er=tr[1],Br=lr[1],un=Er|Br,yn=un<(zt|Tt|Nt),Tn=Br==Nt&&Er==It||Br==Nt&&Er==Yt&&tr[7].length<=lr[8]||Br==(Nt|Yt)&&lr[7].length<=lr[8]&&Er==It;if(!(yn||Tn))return tr;Br&zt&&(tr[2]=lr[2],un|=Er&zt?0:Ct);var wn=lr[3];if(wn){var Hn=tr[3];tr[3]=Hn?Um(Hn,wn,lr[4]):wn,tr[4]=Hn?Vs(tr[3],xt):lr[4]}return wn=lr[5],wn&&(Hn=tr[5],tr[5]=Hn?Hm(Hn,wn,lr[6]):wn,tr[6]=Hn?Vs(tr[5],xt):lr[6]),wn=lr[7],wn&&(tr[7]=wn),Br&Nt&&(tr[8]=tr[8]==null?lr[8]:vs(tr[8],lr[8])),tr[9]==null&&(tr[9]=lr[9]),tr[0]=lr[0],tr[1]=un,tr}function zx(tr){var lr=[];if(tr!=null)for(var Er in fo(tr))lr.push(Er);return lr}function Ix(tr){return q1.call(tr)}function a2(tr,lr,Er){return lr=Ss(lr===rt?tr.length-1:lr,0),function(){for(var Br=arguments,un=-1,yn=Ss(Br.length-lr,0),Tn=Dn(yn);++un<yn;)Tn[un]=Br[lr+un];un=-1;for(var wn=Dn(lr+1);++un<lr;)wn[un]=Br[un];return wn[lr]=Er(Tn),dn(tr,this,wn)}}function l2(tr,lr){return lr.length<2?tr:W0(tr,c0(lr,0,-1))}function $x(tr,lr){for(var Er=tr.length,Br=vs(lr.length,Er),un=wl(tr);Br--;){var yn=lr[Br];tr[Br]=G0(yn,Er)?un[yn]:rt}return tr}function dm(tr,lr){if(!(lr==="constructor"&&typeof tr[lr]=="function")&&lr!="__proto__")return tr[lr]}var c2=d2(Nm),vu=mp||function(tr,lr){return ys.setTimeout(tr,lr)},pm=d2(tx);function u2(tr,lr,Er){var Br=lr+"";return pm(tr,Ax(Br,Dx(Mx(Br),Er)))}function d2(tr){var lr=0,Er=0;return function(){var Br=zu(),un=Ft-(Br-Er);if(Er=Br,un>0){if(++lr>=Bt)return arguments[0]}else lr=0;return tr.apply(rt,arguments)}}function ep(tr,lr){var Er=-1,Br=tr.length,un=Br-1;for(lr=lr===rt?Br:lr;++Er<lr;){var yn=Kp(Er,un),Tn=tr[yn];tr[yn]=tr[Er],tr[Er]=Tn}return tr.length=lr,tr}var p2=Cx(function(tr){var lr=[];return tr.charCodeAt(0)===46&&lr.push(""),tr.replace(Pr,function(Er,Br,un,yn){lr.push(un?yn.replace(Un,"$1"):Br||Er)}),lr});function w0(tr){if(typeof tr=="string"||Xl(tr))return tr;var lr=tr+"";return lr=="0"&&1/tr==-Ut?"-0":lr}function N1(tr){if(tr!=null){try{return $l.call(tr)}catch{}try{return tr+""}catch{}}return""}function Dx(tr,lr){return _n(nr,function(Er){var Br="_."+Er[0];lr&Er[1]&&!Xn(tr,Br)&&tr.push(Br)}),tr.sort()}function f2(tr){if(tr instanceof Xo)return tr.clone();var lr=new Dl(tr.__wrapped__,tr.__chain__);return lr.__actions__=wl(tr.__actions__),lr.__index__=tr.__index__,lr.__values__=tr.__values__,lr}function Nx(tr,lr,Er){(Er?Ml(tr,lr,Er):lr===rt)?lr=1:lr=Ss(Ho(lr),0);var Br=tr==null?0:tr.length;if(!Br||lr<1)return[];for(var un=0,yn=0,Tn=Dn(U1(Br/lr));un<Br;)Tn[yn++]=c0(tr,un,un+=lr);return Tn}function wx(tr){for(var lr=-1,Er=tr==null?0:tr.length,Br=0,un=[];++lr<Er;){var yn=tr[lr];yn&&(un[Br++]=yn)}return un}function jx(){var tr=arguments.length;if(!tr)return[];for(var lr=Dn(tr-1),Er=arguments[0],Br=tr;Br--;)lr[Br-1]=arguments[Br];return wo(Fo(Er)?wl(Er):[Er],Fs(lr,1))}var Px=Zo(function(tr,lr){return Is(tr)?d1(tr,Fs(lr,1,Is,!0)):[]}),Lx=Zo(function(tr,lr){var Er=u0(lr);return Is(Er)&&(Er=rt),Is(tr)?d1(tr,Fs(lr,1,Is,!0),To(Er,2)):[]}),qx=Zo(function(tr,lr){var Er=u0(lr);return Is(Er)&&(Er=rt),Is(tr)?d1(tr,Fs(lr,1,Is,!0),rt,Er):[]});function kx(tr,lr,Er){var Br=tr==null?0:tr.length;return Br?(lr=Er||lr===rt?1:Ho(lr),c0(tr,lr<0?0:lr,Br)):[]}function Fx(tr,lr,Er){var Br=tr==null?0:tr.length;return Br?(lr=Er||lr===rt?1:Ho(lr),lr=Br-lr,c0(tr,0,lr<0?0:lr)):[]}function Bx(tr,lr){return tr&&tr.length?Vu(tr,To(lr,3),!0,!0):[]}function Wx(tr,lr){return tr&&tr.length?Vu(tr,To(lr,3),!0):[]}function Ux(tr,lr,Er,Br){var un=tr==null?0:tr.length;return un?(Er&&typeof Er!="number"&&Ml(tr,lr,Er)&&(Er=0,Br=un),Bp(tr,lr,Er,Br)):[]}function h2(tr,lr,Er){var Br=tr==null?0:tr.length;if(!Br)return-1;var un=Er==null?0:Ho(Er);return un<0&&(un=Ss(Br+un,0)),Yo(tr,To(lr,3),un)}function m2(tr,lr,Er){var Br=tr==null?0:tr.length;if(!Br)return-1;var un=Br-1;return Er!==rt&&(un=Ho(Er),un=Er<0?Ss(Br+un,0):vs(un,Br-1)),Yo(tr,To(lr,3),un,!0)}function g2(tr){var lr=tr==null?0:tr.length;return lr?Fs(tr,1):[]}function Hx(tr){var lr=tr==null?0:tr.length;return lr?Fs(tr,Ut):[]}function Gx(tr,lr){var Er=tr==null?0:tr.length;return Er?(lr=lr===rt?1:Ho(lr),Fs(tr,lr)):[]}function Vx(tr){for(var lr=-1,Er=tr==null?0:tr.length,Br={};++lr<Er;){var un=tr[lr];Br[un[0]]=un[1]}return Br}function b2(tr){return tr&&tr.length?tr[0]:rt}function Yx(tr,lr,Er){var Br=tr==null?0:tr.length;if(!Br)return-1;var un=Er==null?0:Ho(Er);return un<0&&(un=Ss(Br+un,0)),ds(tr,lr,un)}function Xx(tr){var lr=tr==null?0:tr.length;return lr?c0(tr,0,-1):[]}var Kx=Zo(function(tr){var lr=bo(tr,_h);return lr.length&&lr[0]===tr[0]?bu(lr):[]}),Qx=Zo(function(tr){var lr=u0(tr),Er=bo(tr,_h);return lr===u0(Er)?lr=rt:Er.pop(),Er.length&&Er[0]===tr[0]?bu(Er,To(lr,2)):[]}),Zx=Zo(function(tr){var lr=u0(tr),Er=bo(tr,_h);return lr=typeof lr=="function"?lr:rt,lr&&Er.pop(),Er.length&&Er[0]===tr[0]?bu(Er,rt,lr):[]});function Jx(tr,lr){return tr==null?"":a1.call(tr,lr)}function u0(tr){var lr=tr==null?0:tr.length;return lr?tr[lr-1]:rt}function ey(tr,lr,Er){var Br=tr==null?0:tr.length;if(!Br)return-1;var un=Br;return Er!==rt&&(un=Ho(Er),un=un<0?Ss(Br+un,0):vs(un,Br-1)),lr===lr?o1(tr,lr,un):Yo(tr,n1,un,!0)}function ty(tr,lr){return tr&&tr.length?l0(tr,Ho(lr)):rt}var ry=Zo(x2);function x2(tr,lr){return tr&&tr.length&&lr&&lr.length?Xp(tr,lr):tr}function ny(tr,lr,Er){return tr&&tr.length&&lr&&lr.length?Xp(tr,lr,To(Er,2)):tr}function iy(tr,lr,Er){return tr&&tr.length&&lr&&lr.length?Xp(tr,lr,rt,Er):tr}var oy=H0(function(tr,lr){var Er=tr==null?0:tr.length,Br=J1(tr,lr);return Dm(tr,bo(lr,function(un){return G0(un,Er)?+un:un}).sort(Wm)),Br});function sy(tr,lr){var Er=[];if(!(tr&&tr.length))return Er;var Br=-1,un=[],yn=tr.length;for(lr=To(lr,3);++Br<yn;){var Tn=tr[Br];lr(Tn,Br,tr)&&(Er.push(Tn),un.push(Br))}return Dm(tr,un),Er}function fm(tr){return tr==null?tr:gp.call(tr)}function ay(tr,lr,Er){var Br=tr==null?0:tr.length;return Br?(Er&&typeof Er!="number"&&Ml(tr,lr,Er)?(lr=0,Er=Br):(lr=lr==null?0:Ho(lr),Er=Er===rt?Br:Ho(Er)),c0(tr,lr,Er)):[]}function ly(tr,lr){return Gu(tr,lr)}function cy(tr,lr,Er){return Zp(tr,lr,To(Er,2))}function uy(tr,lr){var Er=tr==null?0:tr.length;if(Er){var Br=Gu(tr,lr);if(Br<Er&&v0(tr[Br],lr))return Br}return-1}function dy(tr,lr){return Gu(tr,lr,!0)}function py(tr,lr,Er){return Zp(tr,lr,To(Er,2),!0)}function fy(tr,lr){var Er=tr==null?0:tr.length;if(Er){var Br=Gu(tr,lr,!0)-1;if(v0(tr[Br],lr))return Br}return-1}function hy(tr){return tr&&tr.length?wm(tr):[]}function my(tr,lr){return tr&&tr.length?wm(tr,To(lr,2)):[]}function gy(tr){var lr=tr==null?0:tr.length;return lr?c0(tr,1,lr):[]}function by(tr,lr,Er){return tr&&tr.length?(lr=Er||lr===rt?1:Ho(lr),c0(tr,0,lr<0?0:lr)):[]}function xy(tr,lr,Er){var Br=tr==null?0:tr.length;return Br?(lr=Er||lr===rt?1:Ho(lr),lr=Br-lr,c0(tr,lr<0?0:lr,Br)):[]}function yy(tr,lr){return tr&&tr.length?Vu(tr,To(lr,3),!1,!0):[]}function My(tr,lr){return tr&&tr.length?Vu(tr,To(lr,3)):[]}var Ey=Zo(function(tr){return p1(Fs(tr,1,Is,!0))}),vy=Zo(function(tr){var lr=u0(tr);return Is(lr)&&(lr=rt),p1(Fs(tr,1,Is,!0),To(lr,2))}),Ay=Zo(function(tr){var lr=u0(tr);return lr=typeof lr=="function"?lr:rt,p1(Fs(tr,1,Is,!0),rt,lr)});function Oy(tr){return tr&&tr.length?p1(tr):[]}function Ry(tr,lr){return tr&&tr.length?p1(tr,To(lr,2)):[]}function Sy(tr,lr){return lr=typeof lr=="function"?lr:rt,tr&&tr.length?p1(tr,rt,lr):[]}function hm(tr){if(!(tr&&tr.length))return[];var lr=0;return tr=ro(tr,function(Er){if(Is(Er))return lr=Ss(Er.length,lr),!0}),P0(lr,function(Er){return bo(tr,h0(Er))})}function y2(tr,lr){if(!(tr&&tr.length))return[];var Er=hm(tr);return lr==null?Er:bo(Er,function(Br){return dn(lr,rt,Br)})}var _y=Zo(function(tr,lr){return Is(tr)?d1(tr,lr):[]}),Cy=Zo(function(tr){return _f(ro(tr,Is))}),Ty=Zo(function(tr){var lr=u0(tr);return Is(lr)&&(lr=rt),_f(ro(tr,Is),To(lr,2))}),zy=Zo(function(tr){var lr=u0(tr);return lr=typeof lr=="function"?lr:rt,_f(ro(tr,Is),rt,lr)}),Iy=Zo(hm);function $y(tr,lr){return qm(tr||[],lr||[],z1)}function Dy(tr,lr){return qm(tr||[],lr||[],yu)}var Ny=Zo(function(tr){var lr=tr.length,Er=lr>1?tr[lr-1]:rt;return Er=typeof Er=="function"?(tr.pop(),Er):rt,y2(tr,Er)});function M2(tr){var lr=mn(tr);return lr.__chain__=!0,lr}function wy(tr,lr){return lr(tr),tr}function tp(tr,lr){return lr(tr)}var jy=H0(function(tr){var lr=tr.length,Er=lr?tr[0]:0,Br=this.__wrapped__,un=function(yn){return J1(yn,tr)};return lr>1||this.__actions__.length||!(Br instanceof Xo)||!G0(Er)?this.thru(un):(Br=Br.slice(Er,+Er+(lr?1:0)),Br.__actions__.push({func:tp,args:[un],thisArg:rt}),new Dl(Br,this.__chain__).thru(function(yn){return lr&&!yn.length&&yn.push(rt),yn}))});function Py(){return M2(this)}function Ly(){return new Dl(this.value(),this.__chain__)}function qy(){this.__values__===rt&&(this.__values__=w2(this.value()));var tr=this.__index__>=this.__values__.length,lr=tr?rt:this.__values__[this.__index__++];return{done:tr,value:lr}}function ky(){return this}function Fy(tr){for(var lr,Er=this;Er instanceof X1;){var Br=f2(Er);Br.__index__=0,Br.__values__=rt,lr?un.__wrapped__=Br:lr=Br;var un=Br;Er=Er.__wrapped__}return un.__wrapped__=tr,lr}function By(){var tr=this.__wrapped__;if(tr instanceof Xo){var lr=tr;return this.__actions__.length&&(lr=new Xo(this)),lr=lr.reverse(),lr.__actions__.push({func:tp,args:[fm],thisArg:rt}),new Dl(lr,this.__chain__)}return this.thru(fm)}function Wy(){return Lm(this.__wrapped__,this.__actions__)}var Uy=Yu(function(tr,lr,Er){jo.call(tr,Er)?++tr[Er]:y0(tr,Er,1)});function Hy(tr,lr,Er){var Br=Fo(tr)?Jn:Fp;return Er&&Ml(tr,lr,Er)&&(lr=rt),Br(tr,To(lr,3))}function Gy(tr,lr){var Er=Fo(tr)?ro:Bu;return Er(tr,To(lr,3))}var Vy=Xm(h2),Yy=Xm(m2);function Xy(tr,lr){return Fs(rp(tr,lr),1)}function Ky(tr,lr){return Fs(rp(tr,lr),Ut)}function Qy(tr,lr,Er){return Er=Er===rt?1:Ho(Er),Fs(rp(tr,lr),Er)}function E2(tr,lr){var Er=Fo(tr)?_n:$0;return Er(tr,To(lr,3))}function v2(tr,lr){var Er=Fo(tr)?Fn:Fu;return Er(tr,To(lr,3))}var Zy=Yu(function(tr,lr,Er){jo.call(tr,Er)?tr[Er].push(lr):y0(tr,Er,[lr])});function Jy(tr,lr,Er,Br){tr=Pl(tr)?tr:ou(tr),Er=Er&&!Br?Ho(Er):0;var un=tr.length;return Er<0&&(Er=Ss(un+Er,0)),ap(tr)?Er<=un&&tr.indexOf(lr,Er)>-1:!!un&&ds(tr,lr,Er)>-1}var eM=Zo(function(tr,lr,Er){var Br=-1,un=typeof lr=="function",yn=Pl(tr)?Dn(tr.length):[];return $0(tr,function(Tn){yn[++Br]=un?dn(lr,Tn,Er):a0(Tn,lr,Er)}),yn}),tM=Yu(function(tr,lr,Er){y0(tr,Er,lr)});function rp(tr,lr){var Er=Fo(tr)?bo:eo;return Er(tr,To(lr,3))}function rM(tr,lr,Er,Br){return tr==null?[]:(Fo(lr)||(lr=lr==null?[]:[lr]),Er=Br?rt:Er,Fo(Er)||(Er=Er==null?[]:[Er]),E0(tr,lr,Er))}var nM=Yu(function(tr,lr,Er){tr[Er?0:1].push(lr)},function(){return[[],[]]});function iM(tr,lr,Er){var Br=Fo(tr)?Lo:Wl,un=arguments.length<3;return Br(tr,To(lr,4),Er,un,$0)}function oM(tr,lr,Er){var Br=Fo(tr)?Cs:Wl,un=arguments.length<3;return Br(tr,To(lr,4),Er,un,Fu)}function sM(tr,lr){var Er=Fo(tr)?ro:Bu;return Er(tr,op(To(lr,3)))}function aM(tr){var lr=Fo(tr)?qu:J2;return lr(tr)}function lM(tr,lr,Er){(Er?Ml(tr,lr,Er):lr===rt)?lr=1:lr=Ho(lr);var Br=Fo(tr)?Pp:ex;return Br(tr,lr)}function cM(tr){var lr=Fo(tr)?Lp:rx;return lr(tr)}function uM(tr){if(tr==null)return 0;if(Pl(tr))return ap(tr)?Il(tr):tr.length;var lr=ba(tr);return lr==xr||lr==Hr?tr.size:tn(tr).length}function dM(tr,lr,Er){var Br=Fo(tr)?Ms:nx;return Er&&Ml(tr,lr,Er)&&(lr=rt),Br(tr,To(lr,3))}var pM=Zo(function(tr,lr){if(tr==null)return[];var Er=lr.length;return Er>1&&Ml(tr,lr[0],lr[1])?lr=[]:Er>2&&Ml(lr[0],lr[1],lr[2])&&(lr=[lr[0]]),E0(tr,Fs(lr,1),[])}),np=hp||function(){return ys.Date.now()};function fM(tr,lr){if(typeof lr!="function")throw new Uo(dt);return tr=Ho(tr),function(){if(--tr<1)return lr.apply(this,arguments)}}function A2(tr,lr,Er){return lr=Er?rt:lr,lr=tr&&lr==null?tr.length:lr,U0(tr,Nt,rt,rt,rt,rt,lr)}function O2(tr,lr){var Er;if(typeof lr!="function")throw new Uo(dt);return tr=Ho(tr),function(){return--tr>0&&(Er=lr.apply(this,arguments)),tr<=1&&(lr=rt),Er}}var mm=Zo(function(tr,lr,Er){var Br=zt;if(Er.length){var un=Vs(Er,nu(mm));Br|=kt}return U0(tr,Br,lr,Er,un)}),R2=Zo(function(tr,lr,Er){var Br=zt|Tt;if(Er.length){var un=Vs(Er,nu(R2));Br|=kt}return U0(lr,Br,tr,Er,un)});function S2(tr,lr,Er){lr=Er?rt:lr;var Br=U0(tr,It,rt,rt,rt,rt,rt,lr);return Br.placeholder=S2.placeholder,Br}function _2(tr,lr,Er){lr=Er?rt:lr;var Br=U0(tr,Dt,rt,rt,rt,rt,rt,lr);return Br.placeholder=_2.placeholder,Br}function T2(tr,lr,Er){var Br,un,yn,Tn,wn,Hn,oo=0,so=!1,lo=!1,xo=!0;if(typeof tr!="function")throw new Uo(dt);lr=d0(lr)||0,As(Er)&&(so=!!Er.leading,lo="maxWait"in Er,yn=lo?Ss(d0(Er.maxWait)||0,lr):yn,xo="trailing"in Er?!!Er.trailing:xo);function Ao($s){var A0=Br,X0=un;return Br=un=rt,oo=$s,Tn=tr.apply(X0,A0),Tn}function zo($s){return oo=$s,wn=vu(es,lr),so?Ao($s):Tn}function Qo($s){var A0=$s-Hn,X0=$s-oo,Y2=lr-A0;return lo?vs(Y2,yn-X0):Y2}function Io($s){var A0=$s-Hn,X0=$s-oo;return Hn===rt||A0>=lr||A0<0||lo&&X0>=yn}function es(){var $s=np();if(Io($s))return ns($s);wn=vu(es,Qo($s))}function ns($s){return wn=rt,xo&&Br?Ao($s):(Br=un=rt,Tn)}function Kl(){wn!==rt&&km(wn),oo=0,Br=Hn=un=wn=rt}function El(){return wn===rt?Tn:ns(np())}function Ql(){var $s=np(),A0=Io($s);if(Br=arguments,un=this,Hn=$s,A0){if(wn===rt)return zo(Hn);if(lo)return km(wn),wn=vu(es,lr),Ao(Hn)}return wn===rt&&(wn=vu(es,lr)),Tn}return Ql.cancel=Kl,Ql.flush=El,Ql}var hM=Zo(function(tr,lr){return i0(tr,1,lr)}),mM=Zo(function(tr,lr,Er){return i0(tr,d0(lr)||0,Er)});function gM(tr){return U0(tr,Kt)}function ip(tr,lr){if(typeof tr!="function"||lr!=null&&typeof lr!="function")throw new Uo(dt);var Er=function(){var Br=arguments,un=lr?lr.apply(this,Br):Br[0],yn=Er.cache;if(yn.has(un))return yn.get(un);var Tn=tr.apply(this,Br);return Er.cache=yn.set(un,Tn)||yn,Tn};return Er.cache=new(ip.Cache||x0),Er}ip.Cache=x0;function op(tr){if(typeof tr!="function")throw new Uo(dt);return function(){var lr=arguments;switch(lr.length){case 0:return!tr.call(this);case 1:return!tr.call(this,lr[0]);case 2:return!tr.call(this,lr[0],lr[1]);case 3:return!tr.call(this,lr[0],lr[1],lr[2])}return!tr.apply(this,lr)}}function bM(tr){return O2(2,tr)}var xM=ix(function(tr,lr){lr=lr.length==1&&Fo(lr[0])?bo(lr[0],Gs(To())):bo(Fs(lr,1),Gs(To()));var Er=lr.length;return Zo(function(Br){for(var un=-1,yn=vs(Br.length,Er);++un<yn;)Br[un]=lr[un].call(this,Br[un]);return dn(tr,this,Br)})}),gm=Zo(function(tr,lr){var Er=Vs(lr,nu(gm));return U0(tr,kt,rt,lr,Er)}),z2=Zo(function(tr,lr){var Er=Vs(lr,nu(z2));return U0(tr,qt,rt,lr,Er)}),yM=H0(function(tr,lr){return U0(tr,Yt,rt,rt,rt,lr)});function MM(tr,lr){if(typeof tr!="function")throw new Uo(dt);return lr=lr===rt?lr:Ho(lr),Zo(tr,lr)}function EM(tr,lr){if(typeof tr!="function")throw new Uo(dt);return lr=lr==null?0:Ss(Ho(lr),0),Zo(function(Er){var Br=Er[lr],un=h1(Er,0,lr);return Br&&wo(un,Br),dn(tr,this,un)})}function vM(tr,lr,Er){var Br=!0,un=!0;if(typeof tr!="function")throw new Uo(dt);return As(Er)&&(Br="leading"in Er?!!Er.leading:Br,un="trailing"in Er?!!Er.trailing:un),T2(tr,lr,{leading:Br,maxWait:lr,trailing:un})}function AM(tr){return A2(tr,1)}function OM(tr,lr){return gm(em(lr),tr)}function RM(){if(!arguments.length)return[];var tr=arguments[0];return Fo(tr)?tr:[tr]}function SM(tr){return yl(tr,Ot)}function _M(tr,lr){return lr=typeof lr=="function"?lr:rt,yl(tr,Ot,lr)}function CM(tr){return yl(tr,Mt|Ot)}function TM(tr,lr){return lr=typeof lr=="function"?lr:rt,yl(tr,Mt|Ot,lr)}function zM(tr,lr){return lr==null||ku(tr,lr,Ys(lr))}function v0(tr,lr){return tr===lr||tr!==tr&&lr!==lr}var IM=Zu(gu),$M=Zu(function(tr,lr){return tr>=lr}),w1=Hu(function(){return arguments}())?Hu:function(tr){return _s(tr)&&jo.call(tr,"callee")&&!_u.call(tr,"callee")},Fo=Dn.isArray,DM=pr?Gs(pr):Gp;function Pl(tr){return tr!=null&&sp(tr.length)&&!V0(tr)}function Is(tr){return _s(tr)&&Pl(tr)}function NM(tr){return tr===!0||tr===!1||_s(tr)&&Zs(tr)==ir}var m1=Tu||_m,wM=vr?Gs(vr):Vp;function jM(tr){return _s(tr)&&tr.nodeType===1&&!Au(tr)}function PM(tr){if(tr==null)return!0;if(Pl(tr)&&(Fo(tr)||typeof tr=="string"||typeof tr.splice=="function"||m1(tr)||iu(tr)||w1(tr)))return!tr.length;var lr=ba(tr);if(lr==xr||lr==Hr)return!tr.size;if(Eu(tr))return!tn(tr).length;for(var Er in tr)if(jo.call(tr,Er))return!1;return!0}function LM(tr,lr){return I1(tr,lr)}function qM(tr,lr,Er){Er=typeof Er=="function"?Er:rt;var Br=Er?Er(tr,lr):rt;return Br===rt?I1(tr,lr,rt,Er):!!Br}function bm(tr){if(!_s(tr))return!1;var lr=Zs(tr);return lr==br||lr==gr||typeof tr.message=="string"&&typeof tr.name=="string"&&!Au(tr)}function kM(tr){return typeof tr=="number"&&A1(tr)}function V0(tr){if(!As(tr))return!1;var lr=Zs(tr);return lr==ar||lr==ur||lr==cr||lr==wr}function I2(tr){return typeof tr=="number"&&tr==Ho(tr)}function sp(tr){return typeof tr=="number"&&tr>-1&&tr%1==0&&tr<=Vt}function As(tr){var lr=typeof tr;return tr!=null&&(lr=="object"||lr=="function")}function _s(tr){return tr!=null&&typeof tr=="object"}var $2=Lr?Gs(Lr):xu;function FM(tr,lr){return tr===lr||D0(tr,lr,am(lr))}function BM(tr,lr,Er){return Er=typeof Er=="function"?Er:rt,D0(tr,lr,am(lr),Er)}function WM(tr){return D2(tr)&&tr!=+tr}function UM(tr){if(_x(tr))throw new io(ut);return $1(tr)}function HM(tr){return tr===null}function GM(tr){return tr==null}function D2(tr){return typeof tr=="number"||_s(tr)&&Zs(tr)==Mr}function Au(tr){if(!_s(tr)||Zs(tr)!=Ir)return!1;var lr=B1(tr);if(lr===null)return!0;var Er=jo.call(lr,"constructor")&&lr.constructor;return typeof Er=="function"&&Er instanceof Er&&$l.call(Er)==up}var xm=Wr?Gs(Wr):ts;function VM(tr){return I2(tr)&&tr>=-Vt&&tr<=Vt}var N2=on?Gs(on):fr;function ap(tr){return typeof tr=="string"||!Fo(tr)&&_s(tr)&&Zs(tr)==kr}function Xl(tr){return typeof tr=="symbol"||_s(tr)&&Zs(tr)==$r}var iu=sn?Gs(sn):Sr;function YM(tr){return tr===rt}function XM(tr){return _s(tr)&&ba(tr)==Or}function KM(tr){return _s(tr)&&Zs(tr)==Dr}var QM=Zu($n),ZM=Zu(function(tr,lr){return tr<=lr});function w2(tr){if(!tr)return[];if(Pl(tr))return ap(tr)?ks(tr):wl(tr);if(E1&&tr[E1])return n0(tr[E1]());var lr=ba(tr),Er=lr==xr?i1:lr==Hr?Gl:ou;return Er(tr)}function Y0(tr){if(!tr)return tr===0?tr:0;if(tr=d0(tr),tr===Ut||tr===-Ut){var lr=tr<0?-1:1;return lr*Ht}return tr===tr?tr:0}function Ho(tr){var lr=Y0(tr),Er=lr%1;return lr===lr?Er?lr-Er:lr:0}function j2(tr){return tr?B0(Ho(tr),0,Zt):0}function d0(tr){if(typeof tr=="number")return tr;if(Xl(tr))return Gt;if(As(tr)){var lr=typeof tr.valueOf=="function"?tr.valueOf():tr;tr=As(lr)?lr+"":lr}if(typeof tr!="string")return tr===0?tr:+tr;tr=Tl(tr);var Er=Wn.test(tr);return Er||_i.test(tr)?Po(tr.slice(2),Er?2:8):Kn.test(tr)?Gt:+tr}function P2(tr){return N0(tr,Ll(tr))}function JM(tr){return tr?B0(Ho(tr),-Vt,Vt):tr===0?tr:0}function fs(tr){return tr==null?"":Yl(tr)}var eE=tu(function(tr,lr){if(Eu(lr)||Pl(lr)){N0(lr,Ys(lr),tr);return}for(var Er in lr)jo.call(lr,Er)&&z1(tr,Er,lr[Er])}),L2=tu(function(tr,lr){N0(lr,Ll(lr),tr)}),lp=tu(function(tr,lr,Er,Br){N0(lr,Ll(lr),tr,Br)}),tE=tu(function(tr,lr,Er,Br){N0(lr,Ys(lr),tr,Br)}),rE=H0(J1);function nE(tr,lr){var Er=u1(tr);return lr==null?Er:pu(Er,lr)}var iE=Zo(function(tr,lr){tr=fo(tr);var Er=-1,Br=lr.length,un=Br>2?lr[2]:rt;for(un&&Ml(lr[0],lr[1],un)&&(Br=1);++Er<Br;)for(var yn=lr[Er],Tn=Ll(yn),wn=-1,Hn=Tn.length;++wn<Hn;){var oo=Tn[wn],so=tr[oo];(so===rt||v0(so,zs[oo])&&!jo.call(tr,oo))&&(tr[oo]=yn[oo])}return tr}),oE=Zo(function(tr){return tr.push(rt,e2),dn(q2,rt,tr)});function sE(tr,lr){return r0(tr,To(lr,3),o0)}function aE(tr,lr){return r0(tr,To(lr,3),mu)}function lE(tr,lr){return tr==null?tr:hu(tr,To(lr,3),Ll)}function cE(tr,lr){return tr==null?tr:Wu(tr,To(lr,3),Ll)}function uE(tr,lr){return tr&&o0(tr,To(lr,3))}function dE(tr,lr){return tr&&mu(tr,To(lr,3))}function pE(tr){return tr==null?[]:s0(tr,Ys(tr))}function fE(tr){return tr==null?[]:s0(tr,Ll(tr))}function ym(tr,lr,Er){var Br=tr==null?rt:W0(tr,lr);return Br===rt?Er:Br}function hE(tr,lr){return tr!=null&&n2(tr,lr,Wp)}function Mm(tr,lr){return tr!=null&&n2(tr,lr,Up)}var mE=Qm(function(tr,lr,Er){lr!=null&&typeof lr.toString!="function"&&(lr=q1.call(lr)),tr[lr]=Er},vm(Fl)),gE=Qm(function(tr,lr,Er){lr!=null&&typeof lr.toString!="function"&&(lr=q1.call(lr)),jo.call(tr,lr)?tr[lr].push(Er):tr[lr]=[Er]},To),bE=Zo(a0);function Ys(tr){return Pl(tr)?Z1(tr):tn(tr)}function Ll(tr){return Pl(tr)?Z1(tr,!0):hn(tr)}function xE(tr,lr){var Er={};return lr=To(lr,3),o0(tr,function(Br,un,yn){y0(Er,lr(Br,un,yn),Br)}),Er}function yE(tr,lr){var Er={};return lr=To(lr,3),o0(tr,function(Br,un,yn){y0(Er,un,lr(Br,un,yn))}),Er}var ME=tu(function(tr,lr,Er){Ko(tr,lr,Er)}),q2=tu(function(tr,lr,Er,Br){Ko(tr,lr,Er,Br)}),vE=H0(function(tr,lr){var Er={};if(tr==null)return Er;var Br=!1;lr=bo(lr,function(yn){return yn=f1(yn,tr),Br||(Br=yn.length>1),yn}),N0(tr,om(tr),Er),Br&&(Er=yl(Er,Mt|vt|Ot,mx));for(var un=lr.length;un--;)Jp(Er,lr[un]);return Er});function AE(tr,lr){return k2(tr,op(To(lr)))}var OE=H0(function(tr,lr){return tr==null?{}:K2(tr,lr)});function k2(tr,lr){if(tr==null)return{};var Er=bo(om(tr),function(Br){return[Br]});return lr=To(lr),$m(tr,Er,function(Br,un){return lr(Br,un[0])})}function RE(tr,lr,Er){lr=f1(lr,tr);var Br=-1,un=lr.length;for(un||(un=1,tr=rt);++Br<un;){var yn=tr==null?rt:tr[w0(lr[Br])];yn===rt&&(Br=un,yn=Er),tr=V0(yn)?yn.call(tr):yn}return tr}function SE(tr,lr,Er){return tr==null?tr:yu(tr,lr,Er)}function _E(tr,lr,Er,Br){return Br=typeof Br=="function"?Br:rt,tr==null?tr:yu(tr,lr,Er,Br)}var F2=_g(Ys),B2=_g(Ll);function CE(tr,lr,Er){var Br=Fo(tr),un=Br||m1(tr)||iu(tr);if(lr=To(lr,4),Er==null){var yn=tr&&tr.constructor;un?Er=Br?new yn:[]:As(tr)?Er=V0(yn)?u1(B1(tr)):{}:Er={}}return(un?_n:o0)(tr,function(Tn,wn,Hn){return lr(Er,Tn,wn,Hn)}),Er}function TE(tr,lr){return tr==null?!0:Jp(tr,lr)}function zE(tr,lr,Er){return tr==null?tr:Pm(tr,lr,em(Er))}function IE(tr,lr,Er,Br){return Br=typeof Br=="function"?Br:rt,tr==null?tr:Pm(tr,lr,em(Er),Br)}function ou(tr){return tr==null?[]:b1(tr,Ys(tr))}function $E(tr){return tr==null?[]:b1(tr,Ll(tr))}function DE(tr,lr,Er){return Er===rt&&(Er=lr,lr=rt),Er!==rt&&(Er=d0(Er),Er=Er===Er?Er:0),lr!==rt&&(lr=d0(lr),lr=lr===lr?lr:0),B0(d0(tr),lr,Er)}function NE(tr,lr,Er){return lr=Y0(lr),Er===rt?(Er=lr,lr=0):Er=Y0(Er),tr=d0(tr),Hp(tr,lr,Er)}function wE(tr,lr,Er){if(Er&&typeof Er!="boolean"&&Ml(tr,lr,Er)&&(lr=Er=rt),Er===rt&&(typeof lr=="boolean"?(Er=lr,lr=rt):typeof tr=="boolean"&&(Er=tr,tr=rt)),tr===rt&&lr===rt?(tr=0,lr=1):(tr=Y0(tr),lr===rt?(lr=tr,tr=0):lr=Y0(lr)),tr>lr){var Br=tr;tr=lr,lr=Br}if(Er||tr%1||lr%1){var un=$u();return vs(tr+un*(lr-tr+Ws("1e-"+((un+"").length-1))),lr)}return Kp(tr,lr)}var jE=ru(function(tr,lr,Er){return lr=lr.toLowerCase(),tr+(Er?W2(lr):lr)});function W2(tr){return Em(fs(tr).toLowerCase())}function U2(tr){return tr=fs(tr),tr&&tr.replace(So,m0).replace(J0,"")}function PE(tr,lr,Er){tr=fs(tr),lr=Yl(lr);var Br=tr.length;Er=Er===rt?Br:B0(Ho(Er),0,Br);var un=Er;return Er-=lr.length,Er>=0&&tr.slice(Er,un)==lr}function LE(tr){return tr=fs(tr),tr&&fn.test(tr)?tr.replace(xn,au):tr}function qE(tr){return tr=fs(tr),tr&&nn.test(tr)?tr.replace(an,"\\$&"):tr}var kE=ru(function(tr,lr,Er){return tr+(Er?"-":"")+lr.toLowerCase()}),FE=ru(function(tr,lr,Er){return tr+(Er?" ":"")+lr.toLowerCase()}),BE=Ym("toLowerCase");function WE(tr,lr,Er){tr=fs(tr),lr=Ho(lr);var Br=lr?Il(tr):0;if(!lr||Br>=lr)return tr;var un=(lr-Br)/2;return Qu(v1(un),Er)+tr+Qu(U1(un),Er)}function UE(tr,lr,Er){tr=fs(tr),lr=Ho(lr);var Br=lr?Il(tr):0;return lr&&Br<lr?tr+Qu(lr-Br,Er):tr}function HE(tr,lr,Er){tr=fs(tr),lr=Ho(lr);var Br=lr?Il(tr):0;return lr&&Br<lr?Qu(lr-Br,Er)+tr:tr}function GE(tr,lr,Er){return Er||lr==null?lr=0:lr&&(lr=+lr),Iu(fs(tr).replace(Mn,""),lr||0)}function VE(tr,lr,Er){return(Er?Ml(tr,lr,Er):lr===rt)?lr=1:lr=Ho(lr),Qp(fs(tr),lr)}function YE(){var tr=arguments,lr=fs(tr[0]);return tr.length<3?lr:lr.replace(tr[1],tr[2])}var XE=ru(function(tr,lr,Er){return tr+(Er?"_":"")+lr.toLowerCase()});function KE(tr,lr,Er){return Er&&typeof Er!="number"&&Ml(tr,lr,Er)&&(lr=Er=rt),Er=Er===rt?Zt:Er>>>0,Er?(tr=fs(tr),tr&&(typeof lr=="string"||lr!=null&&!xm(lr))&&(lr=Yl(lr),!lr&&Ls(tr))?h1(ks(tr),0,Er):tr.split(lr,Er)):[]}var QE=ru(function(tr,lr,Er){return tr+(Er?" ":"")+Em(lr)});function ZE(tr,lr,Er){return tr=fs(tr),Er=Er==null?0:B0(Ho(Er),0,tr.length),lr=Yl(lr),tr.slice(Er,Er+lr.length)==lr}function JE(tr,lr,Er){var Br=mn.templateSettings;Er&&Ml(tr,lr,Er)&&(lr=rt),tr=fs(tr),lr=lp({},lr,Br,_b);var un=lp({},lr.imports,Br.imports,_b),yn=Ys(un),Tn=b1(un,yn),wn,Hn,oo=0,so=lr.interpolate||ko,lo="__p += '",xo=Do((lr.escape||ko).source+"|"+so.source+"|"+(so===Bn?jn:ko).source+"|"+(lr.evaluate||ko).source+"|$","g"),Ao="//# sourceURL="+(jo.call(lr,"sourceURL")?(lr.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ps+"]")+`
`;tr.replace(xo,function(Io,es,ns,Kl,El,Ql){return ns||(ns=Kl),lo+=tr.slice(oo,Ql).replace(us,lu),es&&(wn=!0,lo+=`' +
__e(`+es+`) +
'`),El&&(Hn=!0,lo+=`';
`+El+`;
__p += '`),ns&&(lo+=`' +
((__t = (`+ns+`)) == null ? '' : __t) +
'`),oo=Ql+Io.length,Io}),lo+=`';
`;var zo=jo.call(lr,"variable")&&lr.variable;if(!zo)lo=`with (obj) {
`+lo+`
}
`;else if(Gn.test(zo))throw new io(pt);lo=(Hn?lo.replace(ln,""):lo).replace(vn,"$1").replace(Cr,"$1;"),lo="function("+(zo||"obj")+`) {
`+(zo?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(wn?", __e = _.escape":"")+(Hn?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+lo+`return __p
}`;var Qo=G2(function(){return yo(yn,Ao+"return "+lo).apply(rt,Tn)});if(Qo.source=lo,bm(Qo))throw Qo;return Qo}function ev(tr){return fs(tr).toLowerCase()}function tv(tr){return fs(tr).toUpperCase()}function rv(tr,lr,Er){if(tr=fs(tr),tr&&(Er||lr===rt))return Tl(tr);if(!tr||!(lr=Yl(lr)))return tr;var Br=ks(tr),un=ks(lr),yn=Oo(Br,un),Tn=L0(Br,un)+1;return h1(Br,yn,Tn).join("")}function nv(tr,lr,Er){if(tr=fs(tr),tr&&(Er||lr===rt))return tr.slice(0,s1(tr)+1);if(!tr||!(lr=Yl(lr)))return tr;var Br=ks(tr),un=L0(Br,ks(lr))+1;return h1(Br,0,un).join("")}function iv(tr,lr,Er){if(tr=fs(tr),tr&&(Er||lr===rt))return tr.replace(Mn,"");if(!tr||!(lr=Yl(lr)))return tr;var Br=ks(tr),un=Oo(Br,ks(lr));return h1(Br,un).join("")}function ov(tr,lr){var Er=Jt,Br=Qt;if(As(lr)){var un="separator"in lr?lr.separator:un;Er="length"in lr?Ho(lr.length):Er,Br="omission"in lr?Yl(lr.omission):Br}tr=fs(tr);var yn=tr.length;if(Ls(tr)){var Tn=ks(tr);yn=Tn.length}if(Er>=yn)return tr;var wn=Er-Il(Br);if(wn<1)return Br;var Hn=Tn?h1(Tn,0,wn).join(""):tr.slice(0,wn);if(un===rt)return Hn+Br;if(Tn&&(wn+=Hn.length-wn),xm(un)){if(tr.slice(wn).search(un)){var oo,so=Hn;for(un.global||(un=Do(un.source,fs(In.exec(un))+"g")),un.lastIndex=0;oo=un.exec(so);)var lo=oo.index;Hn=Hn.slice(0,lo===rt?wn:lo)}}else if(tr.indexOf(Yl(un),wn)!=wn){var xo=Hn.lastIndexOf(un);xo>-1&&(Hn=Hn.slice(0,xo))}return Hn+Br}function sv(tr){return tr=fs(tr),tr&&Vr.test(tr)?tr.replace(gn,M1):tr}var av=ru(function(tr,lr,Er){return tr+(Er?" ":"")+lr.toUpperCase()}),Em=Ym("toUpperCase");function H2(tr,lr,Er){return tr=fs(tr),lr=Er?rt:lr,lr===rt?x1(tr)?Ln(tr):Vo(tr):tr.match(lr)||[]}var G2=Zo(function(tr,lr){try{return dn(tr,rt,lr)}catch(Er){return bm(Er)?Er:new io(Er)}}),lv=H0(function(tr,lr){return _n(lr,function(Er){Er=w0(Er),y0(tr,Er,mm(tr[Er],tr))}),tr});function cv(tr){var lr=tr==null?0:tr.length,Er=To();return tr=lr?bo(tr,function(Br){if(typeof Br[1]!="function")throw new Uo(dt);return[Er(Br[0]),Br[1]]}):[],Zo(function(Br){for(var un=-1;++un<lr;){var yn=tr[un];if(dn(yn[0],this,Br))return dn(yn[1],this,Br)}})}function uv(tr){return fu(yl(tr,Mt))}function vm(tr){return function(){return tr}}function dv(tr,lr){return tr==null||tr!==tr?lr:tr}var pv=Km(),fv=Km(!0);function Fl(tr){return tr}function Am(tr){return Ur(typeof tr=="function"?tr:yl(tr,Mt))}function hv(tr){return Mo(yl(tr,Mt))}function mv(tr,lr){return No(tr,yl(lr,Mt))}var gv=Zo(function(tr,lr){return function(Er){return a0(Er,tr,lr)}}),bv=Zo(function(tr,lr){return function(Er){return a0(tr,Er,lr)}});function Om(tr,lr,Er){var Br=Ys(lr),un=s0(lr,Br);Er==null&&!(As(lr)&&(un.length||!Br.length))&&(Er=lr,lr=tr,tr=this,un=s0(lr,Ys(lr)));var yn=!(As(Er)&&"chain"in Er)||!!Er.chain,Tn=V0(tr);return _n(un,function(wn){var Hn=lr[wn];tr[wn]=Hn,Tn&&(tr.prototype[wn]=function(){var oo=this.__chain__;if(yn||oo){var so=tr(this.__wrapped__),lo=so.__actions__=wl(this.__actions__);return lo.push({func:Hn,args:arguments,thisArg:tr}),so.__chain__=oo,so}return Hn.apply(tr,wo([this.value()],arguments))})}),tr}function xv(){return ys._===this&&(ys._=dp),this}function Rm(){}function yv(tr){return tr=Ho(tr),Zo(function(lr){return l0(lr,tr)})}var Mv=rm(bo),Ev=rm(Jn),vv=rm(Ms);function V2(tr){return cm(tr)?h0(w0(tr)):Q2(tr)}function Av(tr){return function(lr){return tr==null?rt:W0(tr,lr)}}var Ov=Zm(),Rv=Zm(!0);function Sm(){return[]}function _m(){return!1}function Sv(){return{}}function _v(){return""}function Cv(){return!0}function Tv(tr,lr){if(tr=Ho(tr),tr<1||tr>Vt)return[];var Er=Zt,Br=vs(tr,Zt);lr=To(lr),tr-=Zt;for(var un=P0(Br,lr);++Er<tr;)lr(Er);return un}function zv(tr){return Fo(tr)?bo(tr,w0):Xl(tr)?[tr]:wl(p2(fs(tr)))}function Iv(tr){var lr=++cp;return fs(tr)+lr}var $v=Ku(function(tr,lr){return tr+lr},0),Dv=nm("ceil"),Nv=Ku(function(tr,lr){return tr/lr},1),wv=nm("floor");function jv(tr){return tr&&tr.length?eu(tr,Fl,gu):rt}function Pv(tr,lr){return tr&&tr.length?eu(tr,To(lr,2),gu):rt}function Lv(tr){return Ps(tr,Fl)}function qv(tr,lr){return Ps(tr,To(lr,2))}function kv(tr){return tr&&tr.length?eu(tr,Fl,$n):rt}function Fv(tr,lr){return tr&&tr.length?eu(tr,To(lr,2),$n):rt}var Bv=Ku(function(tr,lr){return tr*lr},1),Wv=nm("round"),Uv=Ku(function(tr,lr){return tr-lr},0);function Hv(tr){return tr&&tr.length?Hs(tr,Fl):0}function Gv(tr,lr){return tr&&tr.length?Hs(tr,To(lr,2)):0}return mn.after=fM,mn.ary=A2,mn.assign=eE,mn.assignIn=L2,mn.assignInWith=lp,mn.assignWith=tE,mn.at=rE,mn.before=O2,mn.bind=mm,mn.bindAll=lv,mn.bindKey=R2,mn.castArray=RM,mn.chain=M2,mn.chunk=Nx,mn.compact=wx,mn.concat=jx,mn.cond=cv,mn.conforms=uv,mn.constant=vm,mn.countBy=Uy,mn.create=nE,mn.curry=S2,mn.curryRight=_2,mn.debounce=T2,mn.defaults=iE,mn.defaultsDeep=oE,mn.defer=hM,mn.delay=mM,mn.difference=Px,mn.differenceBy=Lx,mn.differenceWith=qx,mn.drop=kx,mn.dropRight=Fx,mn.dropRightWhile=Bx,mn.dropWhile=Wx,mn.fill=Ux,mn.filter=Gy,mn.flatMap=Xy,mn.flatMapDeep=Ky,mn.flatMapDepth=Qy,mn.flatten=g2,mn.flattenDeep=Hx,mn.flattenDepth=Gx,mn.flip=gM,mn.flow=pv,mn.flowRight=fv,mn.fromPairs=Vx,mn.functions=pE,mn.functionsIn=fE,mn.groupBy=Zy,mn.initial=Xx,mn.intersection=Kx,mn.intersectionBy=Qx,mn.intersectionWith=Zx,mn.invert=mE,mn.invertBy=gE,mn.invokeMap=eM,mn.iteratee=Am,mn.keyBy=tM,mn.keys=Ys,mn.keysIn=Ll,mn.map=rp,mn.mapKeys=xE,mn.mapValues=yE,mn.matches=hv,mn.matchesProperty=mv,mn.memoize=ip,mn.merge=ME,mn.mergeWith=q2,mn.method=gv,mn.methodOf=bv,mn.mixin=Om,mn.negate=op,mn.nthArg=yv,mn.omit=vE,mn.omitBy=AE,mn.once=bM,mn.orderBy=rM,mn.over=Mv,mn.overArgs=xM,mn.overEvery=Ev,mn.overSome=vv,mn.partial=gm,mn.partialRight=z2,mn.partition=nM,mn.pick=OE,mn.pickBy=k2,mn.property=V2,mn.propertyOf=Av,mn.pull=ry,mn.pullAll=x2,mn.pullAllBy=ny,mn.pullAllWith=iy,mn.pullAt=oy,mn.range=Ov,mn.rangeRight=Rv,mn.rearg=yM,mn.reject=sM,mn.remove=sy,mn.rest=MM,mn.reverse=fm,mn.sampleSize=lM,mn.set=SE,mn.setWith=_E,mn.shuffle=cM,mn.slice=ay,mn.sortBy=pM,mn.sortedUniq=hy,mn.sortedUniqBy=my,mn.split=KE,mn.spread=EM,mn.tail=gy,mn.take=by,mn.takeRight=xy,mn.takeRightWhile=yy,mn.takeWhile=My,mn.tap=wy,mn.throttle=vM,mn.thru=tp,mn.toArray=w2,mn.toPairs=F2,mn.toPairsIn=B2,mn.toPath=zv,mn.toPlainObject=P2,mn.transform=CE,mn.unary=AM,mn.union=Ey,mn.unionBy=vy,mn.unionWith=Ay,mn.uniq=Oy,mn.uniqBy=Ry,mn.uniqWith=Sy,mn.unset=TE,mn.unzip=hm,mn.unzipWith=y2,mn.update=zE,mn.updateWith=IE,mn.values=ou,mn.valuesIn=$E,mn.without=_y,mn.words=H2,mn.wrap=OM,mn.xor=Cy,mn.xorBy=Ty,mn.xorWith=zy,mn.zip=Iy,mn.zipObject=$y,mn.zipObjectDeep=Dy,mn.zipWith=Ny,mn.entries=F2,mn.entriesIn=B2,mn.extend=L2,mn.extendWith=lp,Om(mn,mn),mn.add=$v,mn.attempt=G2,mn.camelCase=jE,mn.capitalize=W2,mn.ceil=Dv,mn.clamp=DE,mn.clone=SM,mn.cloneDeep=CM,mn.cloneDeepWith=TM,mn.cloneWith=_M,mn.conformsTo=zM,mn.deburr=U2,mn.defaultTo=dv,mn.divide=Nv,mn.endsWith=PE,mn.eq=v0,mn.escape=LE,mn.escapeRegExp=qE,mn.every=Hy,mn.find=Vy,mn.findIndex=h2,mn.findKey=sE,mn.findLast=Yy,mn.findLastIndex=m2,mn.findLastKey=aE,mn.floor=wv,mn.forEach=E2,mn.forEachRight=v2,mn.forIn=lE,mn.forInRight=cE,mn.forOwn=uE,mn.forOwnRight=dE,mn.get=ym,mn.gt=IM,mn.gte=$M,mn.has=hE,mn.hasIn=Mm,mn.head=b2,mn.identity=Fl,mn.includes=Jy,mn.indexOf=Yx,mn.inRange=NE,mn.invoke=bE,mn.isArguments=w1,mn.isArray=Fo,mn.isArrayBuffer=DM,mn.isArrayLike=Pl,mn.isArrayLikeObject=Is,mn.isBoolean=NM,mn.isBuffer=m1,mn.isDate=wM,mn.isElement=jM,mn.isEmpty=PM,mn.isEqual=LM,mn.isEqualWith=qM,mn.isError=bm,mn.isFinite=kM,mn.isFunction=V0,mn.isInteger=I2,mn.isLength=sp,mn.isMap=$2,mn.isMatch=FM,mn.isMatchWith=BM,mn.isNaN=WM,mn.isNative=UM,mn.isNil=GM,mn.isNull=HM,mn.isNumber=D2,mn.isObject=As,mn.isObjectLike=_s,mn.isPlainObject=Au,mn.isRegExp=xm,mn.isSafeInteger=VM,mn.isSet=N2,mn.isString=ap,mn.isSymbol=Xl,mn.isTypedArray=iu,mn.isUndefined=YM,mn.isWeakMap=XM,mn.isWeakSet=KM,mn.join=Jx,mn.kebabCase=kE,mn.last=u0,mn.lastIndexOf=ey,mn.lowerCase=FE,mn.lowerFirst=BE,mn.lt=QM,mn.lte=ZM,mn.max=jv,mn.maxBy=Pv,mn.mean=Lv,mn.meanBy=qv,mn.min=kv,mn.minBy=Fv,mn.stubArray=Sm,mn.stubFalse=_m,mn.stubObject=Sv,mn.stubString=_v,mn.stubTrue=Cv,mn.multiply=Bv,mn.nth=ty,mn.noConflict=xv,mn.noop=Rm,mn.now=np,mn.pad=WE,mn.padEnd=UE,mn.padStart=HE,mn.parseInt=GE,mn.random=wE,mn.reduce=iM,mn.reduceRight=oM,mn.repeat=VE,mn.replace=YE,mn.result=RE,mn.round=Wv,mn.runInContext=En,mn.sample=aM,mn.size=uM,mn.snakeCase=XE,mn.some=dM,mn.sortedIndex=ly,mn.sortedIndexBy=cy,mn.sortedIndexOf=uy,mn.sortedLastIndex=dy,mn.sortedLastIndexBy=py,mn.sortedLastIndexOf=fy,mn.startCase=QE,mn.startsWith=ZE,mn.subtract=Uv,mn.sum=Hv,mn.sumBy=Gv,mn.template=JE,mn.times=Tv,mn.toFinite=Y0,mn.toInteger=Ho,mn.toLength=j2,mn.toLower=ev,mn.toNumber=d0,mn.toSafeInteger=JM,mn.toString=fs,mn.toUpper=tv,mn.trim=rv,mn.trimEnd=nv,mn.trimStart=iv,mn.truncate=ov,mn.unescape=sv,mn.uniqueId=Iv,mn.upperCase=av,mn.upperFirst=Em,mn.each=E2,mn.eachRight=v2,mn.first=b2,Om(mn,function(){var tr={};return o0(mn,function(lr,Er){jo.call(mn.prototype,Er)||(tr[Er]=lr)}),tr}(),{chain:!1}),mn.VERSION=nt,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(tr){mn[tr].placeholder=mn}),_n(["drop","take"],function(tr,lr){Xo.prototype[tr]=function(Er){Er=Er===rt?1:Ss(Ho(Er),0);var Br=this.__filtered__&&!lr?new Xo(this):this.clone();return Br.__filtered__?Br.__takeCount__=vs(Er,Br.__takeCount__):Br.__views__.push({size:vs(Er,Zt),type:tr+(Br.__dir__<0?"Right":"")}),Br},Xo.prototype[tr+"Right"]=function(Er){return this.reverse()[tr](Er).reverse()}}),_n(["filter","map","takeWhile"],function(tr,lr){var Er=lr+1,Br=Er==$t||Er==Wt;Xo.prototype[tr]=function(un){var yn=this.clone();return yn.__iteratees__.push({iteratee:To(un,3),type:Er}),yn.__filtered__=yn.__filtered__||Br,yn}}),_n(["head","last"],function(tr,lr){var Er="take"+(lr?"Right":"");Xo.prototype[tr]=function(){return this[Er](1).value()[0]}}),_n(["initial","tail"],function(tr,lr){var Er="drop"+(lr?"":"Right");Xo.prototype[tr]=function(){return this.__filtered__?new Xo(this):this[Er](1)}}),Xo.prototype.compact=function(){return this.filter(Fl)},Xo.prototype.find=function(tr){return this.filter(tr).head()},Xo.prototype.findLast=function(tr){return this.reverse().find(tr)},Xo.prototype.invokeMap=Zo(function(tr,lr){return typeof tr=="function"?new Xo(this):this.map(function(Er){return a0(Er,tr,lr)})}),Xo.prototype.reject=function(tr){return this.filter(op(To(tr)))},Xo.prototype.slice=function(tr,lr){tr=Ho(tr);var Er=this;return Er.__filtered__&&(tr>0||lr<0)?new Xo(Er):(tr<0?Er=Er.takeRight(-tr):tr&&(Er=Er.drop(tr)),lr!==rt&&(lr=Ho(lr),Er=lr<0?Er.dropRight(-lr):Er.take(lr-tr)),Er)},Xo.prototype.takeRightWhile=function(tr){return this.reverse().takeWhile(tr).reverse()},Xo.prototype.toArray=function(){return this.take(Zt)},o0(Xo.prototype,function(tr,lr){var Er=/^(?:filter|find|map|reject)|While$/.test(lr),Br=/^(?:head|last)$/.test(lr),un=mn[Br?"take"+(lr=="last"?"Right":""):lr],yn=Br||/^find/.test(lr);un&&(mn.prototype[lr]=function(){var Tn=this.__wrapped__,wn=Br?[1]:arguments,Hn=Tn instanceof Xo,oo=wn[0],so=Hn||Fo(Tn),lo=function(es){var ns=un.apply(mn,wo([es],wn));return Br&&xo?ns[0]:ns};so&&Er&&typeof oo=="function"&&oo.length!=1&&(Hn=so=!1);var xo=this.__chain__,Ao=!!this.__actions__.length,zo=yn&&!xo,Qo=Hn&&!Ao;if(!yn&&so){Tn=Qo?Tn:new Xo(this);var Io=tr.apply(Tn,wn);return Io.__actions__.push({func:tp,args:[lo],thisArg:rt}),new Dl(Io,xo)}return zo&&Qo?tr.apply(this,wn):(Io=this.thru(lo),zo?Br?Io.value()[0]:Io.value():Io)})}),_n(["pop","push","shift","sort","splice","unshift"],function(tr){var lr=Rs[tr],Er=/^(?:push|sort|unshift)$/.test(tr)?"tap":"thru",Br=/^(?:pop|shift)$/.test(tr);mn.prototype[tr]=function(){var un=arguments;if(Br&&!this.__chain__){var yn=this.value();return lr.apply(Fo(yn)?yn:[],un)}return this[Er](function(Tn){return lr.apply(Fo(Tn)?Tn:[],un)})}}),o0(Xo.prototype,function(tr,lr){var Er=mn[lr];if(Er){var Br=Er.name+"";jo.call(c1,Br)||(c1[Br]=[]),c1[Br].push({name:lr,func:Er})}}),c1[Xu(rt,Tt).name]=[{name:"wrapper",func:rt}],Xo.prototype.clone=vp,Xo.prototype.reverse=Ap,Xo.prototype.value=Op,mn.prototype.at=jy,mn.prototype.chain=Py,mn.prototype.commit=Ly,mn.prototype.next=qy,mn.prototype.plant=Fy,mn.prototype.reverse=By,mn.prototype.toJSON=mn.prototype.valueOf=mn.prototype.value=Wy,mn.prototype.first=mn.prototype.head,E1&&(mn.prototype[E1]=ky),mn},Zn=Yn();Sl?((Sl.exports=Zn)._=Zn,r1._=Zn):ys._=Zn}).call(commonjsGlobal$1)})(lodash$1,lodash$1.exports);var lodashExports=lodash$1.exports;const lodash=getDefaultExportFromCjs$1(lodashExports),CM_INCH_CONVERSION_FACTOR=2.54,KG_LB_CONVERSION_FACTOR=2.20462262185,LB_KG_CONVERSION_FACTOR=.45359237,DEFAULT_PRECISION_TO_DB=6,convertCmToInch=(et,tt=DEFAULT_PRECISION_TO_DB)=>lodash.round(et/CM_INCH_CONVERSION_FACTOR,tt),convertInchToCm=(et,tt=DEFAULT_PRECISION_TO_DB)=>lodash.round(et*CM_INCH_CONVERSION_FACTOR,tt),convertKgToPound=(et,tt=DEFAULT_PRECISION_TO_DB)=>lodash.round(et*KG_LB_CONVERSION_FACTOR,tt),convertPoundToKg=(et,tt=DEFAULT_PRECISION_TO_DB)=>lodash.round(et*LB_KG_CONVERSION_FACTOR,tt),convertCmToFeetAndInches=et=>{const tt=parseFloat(et);if(isNaN(tt))return{heightFt:"",heightIn:""};const rt=convertCmToInch(parseFloat(et)),nt=lodash.round(Math.floor(rt/12),0).toString(),lt=lodash.round(rt%12,2).toString();return{heightFt:nt,heightIn:lt}},metadata$1={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function edit(et,tt,rt){switch(rt){case"Backspace":tt>0&&(et=et.slice(0,tt-1)+et.slice(tt),tt--);break;case"Delete":et=et.slice(0,tt)+et.slice(tt+1);break}return{value:et,caret:tt}}function parse$4(et,tt,rt){for(var nt={},lt="",ut=0,dt=0;dt<et.length;){var pt=rt(et[dt],lt,nt);pt!==void 0&&(lt+=pt,tt!==void 0&&(tt===dt?ut=lt.length-1:tt>dt&&(ut=lt.length))),dt++}tt===void 0&&(ut=lt.length);var ht={value:lt,caret:ut};return ht}function _createForOfIteratorHelperLoose$c(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$i(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$i(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$i(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$i(et,tt)}}function _arrayLikeToArray$i(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function count_occurences(et,tt){for(var rt=0,nt=_createForOfIteratorHelperLoose$c(tt.split("")),lt;!(lt=nt()).done;){var ut=lt.value;ut===et&&rt++}return rt}function closeBraces(et,tt){for(var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",lt=et.length,ut=count_occurences("(",et),dt=count_occurences(")",et),pt=ut-dt;pt>0&&lt<tt.length;)et+=tt[lt].replace(rt,nt),tt[lt]===")"&&pt--,lt++;return et}function _createForOfIteratorHelperLoose$b(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$h(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$h(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$h(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$h(et,tt)}}function _arrayLikeToArray$h(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function template_formatter(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",rt=arguments.length>2?arguments[2]:void 0;if(!et)return function(lt){return{text:lt}};var nt=count_occurences(tt,et);return function(lt){if(!lt)return{text:"",template:et};for(var ut=0,dt="",pt=_createForOfIteratorHelperLoose$b(et.split("")),ht;!(ht=pt()).done;){var mt=ht.value;if(mt!==tt){dt+=mt;continue}if(dt+=lt[ut],ut++,ut===lt.length&&lt.length<nt)break}return rt&&(dt=closeBraces(dt,et)),{text:dt,template:et}}}function format$2(et,tt,rt){typeof rt=="string"&&(rt=template_formatter(rt));var nt=rt(et)||{},lt=nt.text,ut=nt.template;if(lt===void 0&&(lt=et),ut)if(tt===void 0)tt=lt.length;else{for(var dt=0,pt=!1,ht=-1;dt<lt.length&&dt<ut.length;){if(lt[dt]!==ut[dt]){if(tt===0){pt=!0,tt=dt;break}ht=dt,tt--}dt++}pt||(tt=ht+1)}return{text:lt,caret:tt}}function isReadOnly(et){return et.hasAttribute("readonly")}function getSelection$1(et){if(et.selectionStart!==et.selectionEnd)return{start:et.selectionStart,end:et.selectionEnd}}var Keys={Backspace:8,Delete:46};function getOperation(et){switch(et.keyCode){case Keys.Backspace:return"Backspace";case Keys.Delete:return"Delete"}}function getCaretPosition$1(et){return et.selectionStart}function setCaretPosition(et,tt){tt!==void 0&&(isAndroid$1()?setTimeout(function(){return et.setSelectionRange(tt,tt)},0):et.setSelectionRange(tt,tt))}function isAndroid$1(){if(typeof navigator<"u")return ANDROID_USER_AGENT_REG_EXP.test(navigator.userAgent)}var ANDROID_USER_AGENT_REG_EXP=/Android/i;function onChange(et,tt,rt,nt,lt){formatInputText(tt,rt,nt,void 0,lt)}function onKeyDown(et,tt,rt,nt,lt){if(!isReadOnly(tt)){var ut=getOperation(et);switch(ut){case"Delete":case"Backspace":et.preventDefault();var dt=getSelection$1(tt);return dt?(eraseSelection(tt,dt),formatInputText(tt,rt,nt,void 0,lt)):formatInputText(tt,rt,nt,ut,lt)}}}function eraseSelection(et,tt){var rt=et.value;rt=rt.slice(0,tt.start)+rt.slice(tt.end),et.value=rt,setCaretPosition(et,tt.start)}function formatInputText(et,tt,rt,nt,lt){var ut=parse$4(et.value,getCaretPosition$1(et),tt),dt=ut.value,pt=ut.caret;if(nt){var ht=edit(dt,pt,nt);dt=ht.value,pt=ht.caret}var mt=format$2(dt,pt,rt),xt=mt.text;pt=mt.caret,et.value=xt,setCaretPosition(et,pt),lt(dt)}var _excluded$H=["value","parse","format","inputComponent","onChange","onKeyDown"];function _extends$h(){return _extends$h=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$h.apply(this,arguments)}function _objectWithoutProperties$b(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$c(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$c(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function Input$2(et,tt){var rt=et.value,nt=et.parse,lt=et.format,ut=et.inputComponent,dt=et.onChange,pt=et.onKeyDown,ht=_objectWithoutProperties$b(et,_excluded$H),mt=reactExports.useRef(),xt=reactExports.useCallback(function(Ot){mt.current=Ot,tt&&(typeof tt=="function"?tt(Ot):tt.current=Ot)},[tt]),Mt=reactExports.useCallback(function(Ot){return onChange(Ot,mt.current,nt,lt,dt)},[mt,nt,lt,dt]),vt=reactExports.useCallback(function(Ot){if(pt&&pt(Ot),!Ot.defaultPrevented)return onKeyDown(Ot,mt.current,nt,lt,dt)},[mt,nt,lt,dt,pt]);return React$4.createElement(ut,_extends$h({},ht,{ref:xt,value:lt(isEmptyValue(rt)?"":rt).text,onKeyDown:vt,onChange:Mt}))}Input$2=React$4.forwardRef(Input$2);Input$2.propTypes={parse:PropTypes.func.isRequired,format:PropTypes.func.isRequired,inputComponent:PropTypes.elementType.isRequired,type:PropTypes.string.isRequired,value:PropTypes.string,onChange:PropTypes.func.isRequired,onKeyDown:PropTypes.func,onCut:PropTypes.func,onPaste:PropTypes.func};Input$2.defaultProps={inputComponent:"input",type:"text"};function isEmptyValue(et){return et==null}function _typeof$4(et){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$4(et)}function _createClass$c(et,tt,rt){return Object.defineProperty(et,"prototype",{writable:!1}),et}function _classCallCheck$c(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _inherits$4(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),tt&&_setPrototypeOf$1(et,tt)}function _createSuper$6(et){var tt=_isNativeReflectConstruct$7();return function(){var nt=_getPrototypeOf$2(et),lt;if(tt){var ut=_getPrototypeOf$2(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$4(this,lt)}}function _possibleConstructorReturn$4(et,tt){if(tt&&(_typeof$4(tt)==="object"||typeof tt=="function"))return tt;if(tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$3(et)}function _assertThisInitialized$3(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function _wrapNativeSuper(et){var tt=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(nt){if(nt===null||!_isNativeFunction(nt))return nt;if(typeof nt!="function")throw new TypeError("Super expression must either be null or a function");if(typeof tt<"u"){if(tt.has(nt))return tt.get(nt);tt.set(nt,lt)}function lt(){return _construct(nt,arguments,_getPrototypeOf$2(this).constructor)}return lt.prototype=Object.create(nt.prototype,{constructor:{value:lt,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$1(lt,nt)},_wrapNativeSuper(et)}function _construct(et,tt,rt){return _isNativeReflectConstruct$7()?_construct=Reflect.construct:_construct=function(lt,ut,dt){var pt=[null];pt.push.apply(pt,ut);var ht=Function.bind.apply(lt,pt),mt=new ht;return dt&&_setPrototypeOf$1(mt,dt.prototype),mt},_construct.apply(null,arguments)}function _isNativeReflectConstruct$7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _isNativeFunction(et){return Function.toString.call(et).indexOf("[native code]")!==-1}function _setPrototypeOf$1(et,tt){return _setPrototypeOf$1=Object.setPrototypeOf||function(nt,lt){return nt.__proto__=lt,nt},_setPrototypeOf$1(et,tt)}function _getPrototypeOf$2(et){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$2(et)}var ParseError=function(et){_inherits$4(rt,et);var tt=_createSuper$6(rt);function rt(nt){var lt;return _classCallCheck$c(this,rt),lt=tt.call(this,nt),Object.setPrototypeOf(_assertThisInitialized$3(lt),rt.prototype),lt.name=lt.constructor.name,lt}return _createClass$c(rt)}(_wrapNativeSuper(Error)),MIN_LENGTH_FOR_NSN=2,MAX_LENGTH_FOR_NSN=17,MAX_LENGTH_COUNTRY_CODE=3,VALID_DIGITS="0-9０-９٠-٩۰-۹",DASHES="-‐-―−ー－",SLASHES="／/",DOTS="．.",WHITESPACE="  ­​⁠　",BRACKETS="()（）［］\\[\\]",TILDES="~⁓∼～",VALID_PUNCTUATION="".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES),PLUS_CHARS="+＋";function compare$2(et,tt){et=et.split("-"),tt=tt.split("-");for(var rt=et[0].split("."),nt=tt[0].split("."),lt=0;lt<3;lt++){var ut=Number(rt[lt]),dt=Number(nt[lt]);if(ut>dt)return 1;if(dt>ut)return-1;if(!isNaN(ut)&&isNaN(dt))return 1;if(isNaN(ut)&&!isNaN(dt))return-1}return et[1]&&tt[1]?et[1]>tt[1]?1:et[1]<tt[1]?-1:0:!et[1]&&tt[1]?1:et[1]&&!tt[1]?-1:0}var objectConstructor={}.constructor;function isObject$e(et){return et!=null&&et.constructor===objectConstructor}function _typeof$3(et){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$3(et)}function _classCallCheck$b(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$b(et,tt,rt){return tt&&_defineProperties$9(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}var V3="1.2.0",V4="1.7.35",DEFAULT_EXT_PREFIX=" ext. ",CALLING_CODE_REG_EXP=/^\d+$/,Metadata=function(){function et(tt){_classCallCheck$b(this,et),validateMetadata(tt),this.metadata=tt,setVersion.call(this,tt)}return _createClass$b(et,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(rt){return rt!=="001"})}},{key:"getCountryMetadata",value:function(rt){return this.metadata.countries[rt]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(rt){return this.getCountryMetadata(rt)!==void 0}},{key:"hasCallingCode",value:function(rt){if(this.getCountryCodesForCallingCode(rt))return!0;if(this.nonGeographic()){if(this.nonGeographic()[rt])return!0}else{var nt=this.countryCallingCodes()[rt];if(nt&&nt.length===1&&nt[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(rt){return this.nonGeographic()?!!this.nonGeographic()[rt]:!this.getCountryCodesForCallingCode(rt)}},{key:"country",value:function(rt){return this.selectNumberingPlan(rt)}},{key:"selectNumberingPlan",value:function(rt,nt){if(rt&&CALLING_CODE_REG_EXP.test(rt)&&(nt=rt,rt=null),rt&&rt!=="001"){if(!this.hasCountry(rt))throw new Error("Unknown country: ".concat(rt));this.numberingPlan=new NumberingPlan(this.getCountryMetadata(rt),this)}else if(nt){if(!this.hasCallingCode(nt))throw new Error("Unknown calling code: ".concat(nt));this.numberingPlan=new NumberingPlan(this.getNumberingPlanMetadata(nt),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(rt){var nt=this.countryCallingCodes()[rt];if(nt)return nt.length===1&&nt[0].length===3?void 0:nt}},{key:"getCountryCodeForCallingCode",value:function(rt){var nt=this.getCountryCodesForCallingCode(rt);if(nt)return nt[0]}},{key:"getNumberingPlanMetadata",value:function(rt){var nt=this.getCountryCodeForCallingCode(rt);if(nt)return this.getCountryMetadata(nt);if(this.nonGeographic()){var lt=this.nonGeographic()[rt];if(lt)return lt}else{var ut=this.countryCallingCodes()[rt];if(ut&&ut.length===1&&ut[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(rt){return this.numberingPlan.type(rt)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(rt){return this.selectNumberingPlan(rt)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),et}(),NumberingPlan=function(){function et(tt,rt){_classCallCheck$b(this,et),this.globalMetadataObject=rt,this.metadata=tt,setVersion.call(this,rt.metadata)}return _createClass$b(et,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(rt){return rt[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var rt=this,nt=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return nt.map(function(lt){return new Format(lt,rt)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(rt){return rt[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(rt){if(this.hasTypes()&&getType$1(this.types(),rt))return new Type$1(getType$1(this.types(),rt),this)}},{key:"ext",value:function(){return this.v1||this.v2?DEFAULT_EXT_PREFIX:this.metadata[13]||DEFAULT_EXT_PREFIX}}]),et}(),Format=function(){function et(tt,rt){_classCallCheck$b(this,et),this._format=tt,this.metadata=rt}return _createClass$b(et,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!FIRST_GROUP_ONLY_PREFIX_PATTERN.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),et}(),FIRST_GROUP_ONLY_PREFIX_PATTERN=/^\(?\$1\)?$/,Type$1=function(){function et(tt,rt){_classCallCheck$b(this,et),this.type=tt,this.metadata=rt}return _createClass$b(et,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),et}();function getType$1(et,tt){switch(tt){case"FIXED_LINE":return et[0];case"MOBILE":return et[1];case"TOLL_FREE":return et[2];case"PREMIUM_RATE":return et[3];case"PERSONAL_NUMBER":return et[4];case"VOICEMAIL":return et[5];case"UAN":return et[6];case"PAGER":return et[7];case"VOIP":return et[8];case"SHARED_COST":return et[9]}}function validateMetadata(et){if(!et)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!isObject$e(et)||!isObject$e(et.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(isObject$e(et)?"an object of shape: { "+Object.keys(et).join(", ")+" }":"a "+typeOf$1(et)+": "+et,"."))}var typeOf$1=function(tt){return _typeof$3(tt)};function getCountryCallingCode(et,tt){if(tt=new Metadata(tt),tt.hasCountry(et))return tt.country(et).countryCallingCode();throw new Error("Unknown country: ".concat(et))}function isSupportedCountry$1(et,tt){return tt.countries.hasOwnProperty(et)}function setVersion(et){var tt=et.version;typeof tt=="number"?(this.v1=tt===1,this.v2=tt===2,this.v3=tt===3,this.v4=tt===4):tt?compare$2(tt,V3)===-1?this.v2=!0:compare$2(tt,V4)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var RFC3966_EXTN_PREFIX=";ext=",getExtensionDigitsPattern=function(tt){return"([".concat(VALID_DIGITS,"]{1,").concat(tt,"})")};function createExtensionPattern(et){var tt="20",rt="15",nt="9",lt="6",ut="[  \\t,]*",dt="[:\\.．]?[  \\t,-]*",pt="#?",ht="(?:e?xt(?:ensi(?:ó?|ó))?n?|ｅ?ｘｔｎ?|доб|anexo)",mt="(?:[xｘ#＃~～]|int|ｉｎｔ)",xt="[- ]+",Mt="[  \\t]*",vt="(?:,{2}|;)",Ot=RFC3966_EXTN_PREFIX+getExtensionDigitsPattern(tt),At=ut+ht+dt+getExtensionDigitsPattern(tt)+pt,Rt=ut+mt+dt+getExtensionDigitsPattern(nt)+pt,zt=xt+getExtensionDigitsPattern(lt)+"#",Tt=Mt+vt+dt+getExtensionDigitsPattern(rt)+pt,Ct=Mt+"(?:,)+"+dt+getExtensionDigitsPattern(nt)+pt;return Ot+"|"+At+"|"+Rt+"|"+zt+"|"+Tt+"|"+Ct}var MIN_LENGTH_PHONE_NUMBER_PATTERN="["+VALID_DIGITS+"]{"+MIN_LENGTH_FOR_NSN+"}",VALID_PHONE_NUMBER="["+PLUS_CHARS+"]{0,1}(?:["+VALID_PUNCTUATION+"]*["+VALID_DIGITS+"]){3,}["+VALID_PUNCTUATION+VALID_DIGITS+"]*",VALID_PHONE_NUMBER_START_REG_EXP=new RegExp("^["+PLUS_CHARS+"]{0,1}(?:["+VALID_PUNCTUATION+"]*["+VALID_DIGITS+"]){1,2}$","i"),VALID_PHONE_NUMBER_WITH_EXTENSION=VALID_PHONE_NUMBER+"(?:"+createExtensionPattern()+")?",VALID_PHONE_NUMBER_PATTERN=new RegExp("^"+MIN_LENGTH_PHONE_NUMBER_PATTERN+"$|^"+VALID_PHONE_NUMBER_WITH_EXTENSION+"$","i");function isViablePhoneNumber(et){return et.length>=MIN_LENGTH_FOR_NSN&&VALID_PHONE_NUMBER_PATTERN.test(et)}function isViablePhoneNumberStart(et){return VALID_PHONE_NUMBER_START_REG_EXP.test(et)}var EXTN_PATTERN=new RegExp("(?:"+createExtensionPattern()+")$","i");function extractExtension(et){var tt=et.search(EXTN_PATTERN);if(tt<0)return{};for(var rt=et.slice(0,tt),nt=et.match(EXTN_PATTERN),lt=1;lt<nt.length;){if(nt[lt])return{number:rt,ext:nt[lt]};lt++}}function _createForOfIteratorHelperLoose$a(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$g(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$g(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$g(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$g(et,tt)}}function _arrayLikeToArray$g(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}var DIGITS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function parseDigit(et){return DIGITS[et]}function parseDigits(et){for(var tt="",rt=_createForOfIteratorHelperLoose$a(et.split("")),nt;!(nt=rt()).done;){var lt=nt.value,ut=parseDigit(lt);ut&&(tt+=ut)}return tt}function _createForOfIteratorHelperLoose$9(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$f(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$f(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$f(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$f(et,tt)}}function _arrayLikeToArray$f(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function parseIncompletePhoneNumber(et){for(var tt="",rt=_createForOfIteratorHelperLoose$9(et.split("")),nt;!(nt=rt()).done;){var lt=nt.value;tt+=parsePhoneNumberCharacter(lt,tt)||""}return tt}function parsePhoneNumberCharacter(et,tt,rt){if(et==="+"){if(tt){typeof rt=="function"&&rt("end");return}return"+"}return parseDigit(et)}function checkNumberLength(et,tt){return checkNumberLengthForType(et,void 0,tt)}function checkNumberLengthForType(et,tt,rt){var nt=rt.type(tt),lt=nt&&nt.possibleLengths()||rt.possibleLengths();if(!lt)return"IS_POSSIBLE";var ut=et.length,dt=lt[0];return dt===ut?"IS_POSSIBLE":dt>ut?"TOO_SHORT":lt[lt.length-1]<ut?"TOO_LONG":lt.indexOf(ut,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function isPossiblePhoneNumber(et,tt,rt){if(tt===void 0&&(tt={}),rt=new Metadata(rt),tt.v2){if(!et.countryCallingCode)throw new Error("Invalid phone number object passed");rt.selectNumberingPlan(et.countryCallingCode)}else{if(!et.phone)return!1;if(et.country){if(!rt.hasCountry(et.country))throw new Error("Unknown country: ".concat(et.country));rt.country(et.country)}else{if(!et.countryCallingCode)throw new Error("Invalid phone number object passed");rt.selectNumberingPlan(et.countryCallingCode)}}if(rt.possibleLengths())return isPossibleNumber(et.phone||et.nationalNumber,rt);if(et.countryCallingCode&&rt.isNonGeographicCallingCode(et.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function isPossibleNumber(et,tt){switch(checkNumberLength(et,tt)){case"IS_POSSIBLE":return!0;default:return!1}}function matchesEntirely(et,tt){return et=et||"",new RegExp("^(?:"+tt+")$").test(et)}function _createForOfIteratorHelperLoose$8(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$e(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$e(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$e(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$e(et,tt)}}function _arrayLikeToArray$e(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}var NON_FIXED_LINE_PHONE_TYPES=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function getNumberType(et,tt,rt){if(tt=tt||{},!(!et.country&&!et.countryCallingCode)){rt=new Metadata(rt),rt.selectNumberingPlan(et.country,et.countryCallingCode);var nt=tt.v2?et.nationalNumber:et.phone;if(matchesEntirely(nt,rt.nationalNumberPattern())){if(isNumberTypeEqualTo(nt,"FIXED_LINE",rt))return rt.type("MOBILE")&&rt.type("MOBILE").pattern()===""||!rt.type("MOBILE")||isNumberTypeEqualTo(nt,"MOBILE",rt)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var lt=_createForOfIteratorHelperLoose$8(NON_FIXED_LINE_PHONE_TYPES),ut;!(ut=lt()).done;){var dt=ut.value;if(isNumberTypeEqualTo(nt,dt,rt))return dt}}}}function isNumberTypeEqualTo(et,tt,rt){return tt=rt.type(tt),!tt||!tt.pattern()||tt.possibleLengths()&&tt.possibleLengths().indexOf(et.length)<0?!1:matchesEntirely(et,tt.pattern())}function isValidNumber(et,tt,rt){if(tt=tt||{},rt=new Metadata(rt),rt.selectNumberingPlan(et.country,et.countryCallingCode),rt.hasTypes())return getNumberType(et,tt,rt.metadata)!==void 0;var nt=tt.v2?et.nationalNumber:et.phone;return matchesEntirely(nt,rt.nationalNumberPattern())}function getPossibleCountriesForNumber(et,tt,rt){var nt=new Metadata(rt),lt=nt.getCountryCodesForCallingCode(et);return lt?lt.filter(function(ut){return couldNationalNumberBelongToCountry(tt,ut,rt)}):[]}function couldNationalNumberBelongToCountry(et,tt,rt){var nt=new Metadata(rt);return nt.selectNumberingPlan(tt),nt.numberingPlan.possibleLengths().indexOf(et.length)>=0}function applyInternationalSeparatorStyle(et){return et.replace(new RegExp("[".concat(VALID_PUNCTUATION,"]+"),"g")," ").trim()}var FIRST_GROUP_PATTERN=/(\$\d)/;function formatNationalNumberUsingFormat(et,tt,rt){var nt=rt.useInternationalFormat,lt=rt.withNationalPrefix;rt.carrierCode,rt.metadata;var ut=et.replace(new RegExp(tt.pattern()),nt?tt.internationalFormat():lt&&tt.nationalPrefixFormattingRule()?tt.format().replace(FIRST_GROUP_PATTERN,tt.nationalPrefixFormattingRule()):tt.format());return nt?applyInternationalSeparatorStyle(ut):ut}var SINGLE_IDD_PREFIX_REG_EXP=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function getIddPrefix(et,tt,rt){var nt=new Metadata(rt);if(nt.selectNumberingPlan(et,tt),nt.defaultIDDPrefix())return nt.defaultIDDPrefix();if(SINGLE_IDD_PREFIX_REG_EXP.test(nt.IDDPrefix()))return nt.IDDPrefix()}function formatRFC3966(et){var tt=et.number,rt=et.ext;if(!tt)return"";if(tt[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(tt).concat(rt?";ext="+rt:"")}function _createForOfIteratorHelperLoose$7(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$d(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$d(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$d(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$d(et,tt)}}function _arrayLikeToArray$d(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function ownKeys$c(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$c(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$c(Object(rt),!0).forEach(function(nt){_defineProperty$b(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$c(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty$b(et,tt,rt){return tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}var DEFAULT_OPTIONS={formatExtension:function(tt,rt,nt){return"".concat(tt).concat(nt.ext()).concat(rt)}};function formatNumber(et,tt,rt,nt){if(rt?rt=_objectSpread$c(_objectSpread$c({},DEFAULT_OPTIONS),rt):rt=DEFAULT_OPTIONS,nt=new Metadata(nt),et.country&&et.country!=="001"){if(!nt.hasCountry(et.country))throw new Error("Unknown country: ".concat(et.country));nt.country(et.country)}else if(et.countryCallingCode)nt.selectNumberingPlan(et.countryCallingCode);else return et.phone||"";var lt=nt.countryCallingCode(),ut=rt.v2?et.nationalNumber:et.phone,dt;switch(tt){case"NATIONAL":return ut?(dt=formatNationalNumber$1(ut,et.carrierCode,"NATIONAL",nt,rt),addExtension(dt,et.ext,nt,rt.formatExtension)):"";case"INTERNATIONAL":return ut?(dt=formatNationalNumber$1(ut,null,"INTERNATIONAL",nt,rt),dt="+".concat(lt," ").concat(dt),addExtension(dt,et.ext,nt,rt.formatExtension)):"+".concat(lt);case"E.164":return"+".concat(lt).concat(ut);case"RFC3966":return formatRFC3966({number:"+".concat(lt).concat(ut),ext:et.ext});case"IDD":if(!rt.fromCountry)return;var pt=formatIDD(ut,et.carrierCode,lt,rt.fromCountry,nt);return addExtension(pt,et.ext,nt,rt.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(tt,'"'))}}function formatNationalNumber$1(et,tt,rt,nt,lt){var ut=chooseFormatForNumber(nt.formats(),et);return ut?formatNationalNumberUsingFormat(et,ut,{useInternationalFormat:rt==="INTERNATIONAL",withNationalPrefix:!(ut.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&lt&&lt.nationalPrefix===!1),carrierCode:tt,metadata:nt}):et}function chooseFormatForNumber(et,tt){for(var rt=_createForOfIteratorHelperLoose$7(et),nt;!(nt=rt()).done;){var lt=nt.value;if(lt.leadingDigitsPatterns().length>0){var ut=lt.leadingDigitsPatterns()[lt.leadingDigitsPatterns().length-1];if(tt.search(ut)!==0)continue}if(matchesEntirely(tt,lt.pattern()))return lt}}function addExtension(et,tt,rt,nt){return tt?nt(et,tt,rt):et}function formatIDD(et,tt,rt,nt,lt){var ut=getCountryCallingCode(nt,lt.metadata);if(ut===rt){var dt=formatNationalNumber$1(et,tt,"NATIONAL",lt);return rt==="1"?rt+" "+dt:dt}var pt=getIddPrefix(nt,void 0,lt.metadata);if(pt)return"".concat(pt," ").concat(rt," ").concat(formatNationalNumber$1(et,null,"INTERNATIONAL",lt))}function ownKeys$b(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$b(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$b(Object(rt),!0).forEach(function(nt){_defineProperty$a(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$b(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty$a(et,tt,rt){return tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _classCallCheck$a(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$a(et,tt,rt){return tt&&_defineProperties$8(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}var PhoneNumber=function(){function et(tt,rt,nt){if(_classCallCheck$a(this,et),!tt)throw new TypeError("`country` or `countryCallingCode` not passed");if(!rt)throw new TypeError("`nationalNumber` not passed");if(!nt)throw new TypeError("`metadata` not passed");var lt=getCountryAndCountryCallingCode(tt,nt),ut=lt.country,dt=lt.countryCallingCode;this.country=ut,this.countryCallingCode=dt,this.nationalNumber=rt,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return nt}}return _createClass$a(et,[{key:"setExt",value:function(rt){this.ext=rt}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:getPossibleCountriesForNumber(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return isPossiblePhoneNumber(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return isValidNumber(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var rt=new Metadata(this.getMetadata());return rt.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(rt){return this.number===rt.number&&this.ext===rt.ext}},{key:"getType",value:function(){return getNumberType(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(rt,nt){return formatNumber(this,rt,nt?_objectSpread$b(_objectSpread$b({},nt),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(rt){return this.format("NATIONAL",rt)}},{key:"formatInternational",value:function(rt){return this.format("INTERNATIONAL",rt)}},{key:"getURI",value:function(rt){return this.format("RFC3966",rt)}}]),et}(),isCountryCode=function(tt){return/^[A-Z]{2}$/.test(tt)};function getCountryAndCountryCallingCode(et,tt){var rt,nt,lt=new Metadata(tt);return isCountryCode(et)?(rt=et,lt.selectNumberingPlan(rt),nt=lt.countryCallingCode()):nt=et,{country:rt,countryCallingCode:nt}}var CAPTURING_DIGIT_PATTERN=new RegExp("(["+VALID_DIGITS+"])");function stripIddPrefix(et,tt,rt,nt){if(tt){var lt=new Metadata(nt);lt.selectNumberingPlan(tt,rt);var ut=new RegExp(lt.IDDPrefix());if(et.search(ut)===0){et=et.slice(et.match(ut)[0].length);var dt=et.match(CAPTURING_DIGIT_PATTERN);if(!(dt&&dt[1]!=null&&dt[1].length>0&&dt[1]==="0"))return et}}}function extractNationalNumberFromPossiblyIncompleteNumber(et,tt){if(et&&tt.numberingPlan.nationalPrefixForParsing()){var rt=new RegExp("^(?:"+tt.numberingPlan.nationalPrefixForParsing()+")"),nt=rt.exec(et);if(nt){var lt,ut,dt=nt.length-1,pt=dt>0&&nt[dt];if(tt.nationalPrefixTransformRule()&&pt)lt=et.replace(rt,tt.nationalPrefixTransformRule()),dt>1&&(ut=nt[1]);else{var ht=nt[0];lt=et.slice(ht.length),pt&&(ut=nt[1])}var mt;if(pt){var xt=et.indexOf(nt[1]),Mt=et.slice(0,xt);Mt===tt.numberingPlan.nationalPrefix()&&(mt=tt.numberingPlan.nationalPrefix())}else mt=nt[0];return{nationalNumber:lt,nationalPrefix:mt,carrierCode:ut}}}return{nationalNumber:et}}function extractNationalNumber(et,tt){var rt=extractNationalNumberFromPossiblyIncompleteNumber(et,tt),nt=rt.carrierCode,lt=rt.nationalNumber;if(lt!==et){if(!shouldHaveExtractedNationalPrefix(et,lt,tt))return{nationalNumber:et};if(tt.possibleLengths()&&!isPossibleIncompleteNationalNumber(lt,tt))return{nationalNumber:et}}return{nationalNumber:lt,carrierCode:nt}}function shouldHaveExtractedNationalPrefix(et,tt,rt){return!(matchesEntirely(et,rt.nationalNumberPattern())&&!matchesEntirely(tt,rt.nationalNumberPattern()))}function isPossibleIncompleteNationalNumber(et,tt){switch(checkNumberLength(et,tt)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(et,tt,rt,nt){var lt=tt?getCountryCallingCode(tt,nt):rt;if(et.indexOf(lt)===0){nt=new Metadata(nt),nt.selectNumberingPlan(tt,rt);var ut=et.slice(lt.length),dt=extractNationalNumber(ut,nt),pt=dt.nationalNumber,ht=extractNationalNumber(et,nt),mt=ht.nationalNumber;if(!matchesEntirely(mt,nt.nationalNumberPattern())&&matchesEntirely(pt,nt.nationalNumberPattern())||checkNumberLength(mt,nt)==="TOO_LONG")return{countryCallingCode:lt,number:ut}}return{number:et}}function extractCountryCallingCode(et,tt,rt,nt){if(!et)return{};var lt;if(et[0]!=="+"){var ut=stripIddPrefix(et,tt,rt,nt);if(ut&&ut!==et)lt=!0,et="+"+ut;else{if(tt||rt){var dt=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(et,tt,rt,nt),pt=dt.countryCallingCode,ht=dt.number;if(pt)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:pt,number:ht}}return{number:et}}}if(et[1]==="0")return{};nt=new Metadata(nt);for(var mt=2;mt-1<=MAX_LENGTH_COUNTRY_CODE&&mt<=et.length;){var xt=et.slice(1,mt);if(nt.hasCallingCode(xt))return nt.selectNumberingPlan(xt),{countryCallingCodeSource:lt?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:xt,number:et.slice(mt)};mt++}return{}}function _createForOfIteratorHelperLoose$6(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$c(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$c(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$c(et,tt)}}function _arrayLikeToArray$c(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function getCountryByNationalNumber(et,tt){var rt=tt.countries,nt=tt.defaultCountry,lt=tt.metadata;lt=new Metadata(lt);for(var ut=[],dt=_createForOfIteratorHelperLoose$6(rt),pt;!(pt=dt()).done;){var ht=pt.value;if(lt.country(ht),lt.leadingDigits()){if(et&&et.search(lt.leadingDigits())===0)return ht}else if(getNumberType({phone:et,country:ht},void 0,lt.metadata))if(nt){if(ht===nt)return ht;ut.push(ht)}else return ht}if(ut.length>0)return ut[0]}function getCountryByCallingCode(et,tt){var rt=tt.nationalNumber,nt=tt.defaultCountry,lt=tt.metadata,ut=lt.getCountryCodesForCallingCode(et);if(ut)return ut.length===1?ut[0]:getCountryByNationalNumber(rt,{countries:ut,defaultCountry:nt,metadata:lt.metadata})}var PLUS_SIGN="+",RFC3966_VISUAL_SEPARATOR_="[\\-\\.\\(\\)]?",RFC3966_PHONE_DIGIT_="(["+VALID_DIGITS+"]|"+RFC3966_VISUAL_SEPARATOR_+")",RFC3966_GLOBAL_NUMBER_DIGITS_="^\\"+PLUS_SIGN+RFC3966_PHONE_DIGIT_+"*["+VALID_DIGITS+"]"+RFC3966_PHONE_DIGIT_+"*$",RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_=new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_,"g"),ALPHANUM_=VALID_DIGITS,RFC3966_DOMAINLABEL_="["+ALPHANUM_+"]+((\\-)*["+ALPHANUM_+"])*",VALID_ALPHA_="a-zA-Z",RFC3966_TOPLABEL_="["+VALID_ALPHA_+"]+((\\-)*["+ALPHANUM_+"])*",RFC3966_DOMAINNAME_="^("+RFC3966_DOMAINLABEL_+"\\.)*"+RFC3966_TOPLABEL_+"\\.?$",RFC3966_DOMAINNAME_PATTERN_=new RegExp(RFC3966_DOMAINNAME_,"g"),RFC3966_PREFIX_="tel:",RFC3966_PHONE_CONTEXT_=";phone-context=",RFC3966_ISDN_SUBADDRESS_=";isub=";function extractPhoneContext(et){var tt=et.indexOf(RFC3966_PHONE_CONTEXT_);if(tt<0)return null;var rt=tt+RFC3966_PHONE_CONTEXT_.length;if(rt>=et.length)return"";var nt=et.indexOf(";",rt);return nt>=0?et.substring(rt,nt):et.substring(rt)}function isPhoneContextValid(et){return et===null?!0:et.length===0?!1:RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(et)||RFC3966_DOMAINNAME_PATTERN_.test(et)}function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(et,tt){var rt=tt.extractFormattedPhoneNumber,nt=extractPhoneContext(et);if(!isPhoneContextValid(nt))throw new ParseError("NOT_A_NUMBER");var lt;if(nt===null)lt=rt(et)||"";else{lt="",nt.charAt(0)===PLUS_SIGN&&(lt+=nt);var ut=et.indexOf(RFC3966_PREFIX_),dt;ut>=0?dt=ut+RFC3966_PREFIX_.length:dt=0;var pt=et.indexOf(RFC3966_PHONE_CONTEXT_);lt+=et.substring(dt,pt)}var ht=lt.indexOf(RFC3966_ISDN_SUBADDRESS_);if(ht>0&&(lt=lt.substring(0,ht)),lt!=="")return lt}var MAX_INPUT_STRING_LENGTH=250,PHONE_NUMBER_START_PATTERN=new RegExp("["+PLUS_CHARS+VALID_DIGITS+"]"),AFTER_PHONE_NUMBER_END_PATTERN=new RegExp("[^"+VALID_DIGITS+"#]+$");function parse$3(et,tt,rt){if(tt=tt||{},rt=new Metadata(rt),tt.defaultCountry&&!rt.hasCountry(tt.defaultCountry))throw tt.v2?new ParseError("INVALID_COUNTRY"):new Error("Unknown country: ".concat(tt.defaultCountry));var nt=parseInput(et,tt.v2,tt.extract),lt=nt.number,ut=nt.ext,dt=nt.error;if(!lt){if(tt.v2)throw dt==="TOO_SHORT"?new ParseError("TOO_SHORT"):new ParseError("NOT_A_NUMBER");return{}}var pt=parsePhoneNumber$3(lt,tt.defaultCountry,tt.defaultCallingCode,rt),ht=pt.country,mt=pt.nationalNumber,xt=pt.countryCallingCode,Mt=pt.countryCallingCodeSource,vt=pt.carrierCode;if(!rt.hasSelectedNumberingPlan()){if(tt.v2)throw new ParseError("INVALID_COUNTRY");return{}}if(!mt||mt.length<MIN_LENGTH_FOR_NSN){if(tt.v2)throw new ParseError("TOO_SHORT");return{}}if(mt.length>MAX_LENGTH_FOR_NSN){if(tt.v2)throw new ParseError("TOO_LONG");return{}}if(tt.v2){var Ot=new PhoneNumber(xt,mt,rt.metadata);return ht&&(Ot.country=ht),vt&&(Ot.carrierCode=vt),ut&&(Ot.ext=ut),Ot.__countryCallingCodeSource=Mt,Ot}var At=(tt.extended?rt.hasSelectedNumberingPlan():ht)?matchesEntirely(mt,rt.nationalNumberPattern()):!1;return tt.extended?{country:ht,countryCallingCode:xt,carrierCode:vt,valid:At,possible:At?!0:!!(tt.extended===!0&&rt.possibleLengths()&&isPossibleNumber(mt,rt)),phone:mt,ext:ut}:At?result(ht,mt,ut):{}}function _extractFormattedPhoneNumber(et,tt,rt){if(et){if(et.length>MAX_INPUT_STRING_LENGTH){if(rt)throw new ParseError("TOO_LONG");return}if(tt===!1)return et;var nt=et.search(PHONE_NUMBER_START_PATTERN);if(!(nt<0))return et.slice(nt).replace(AFTER_PHONE_NUMBER_END_PATTERN,"")}}function parseInput(et,tt,rt){var nt=extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(et,{extractFormattedPhoneNumber:function(dt){return _extractFormattedPhoneNumber(dt,rt,tt)}});if(!nt)return{};if(!isViablePhoneNumber(nt))return isViablePhoneNumberStart(nt)?{error:"TOO_SHORT"}:{};var lt=extractExtension(nt);return lt.ext?lt:{number:nt}}function result(et,tt,rt){var nt={country:et,phone:tt};return rt&&(nt.ext=rt),nt}function parsePhoneNumber$3(et,tt,rt,nt){var lt=extractCountryCallingCode(parseIncompletePhoneNumber(et),tt,rt,nt.metadata),ut=lt.countryCallingCodeSource,dt=lt.countryCallingCode,pt=lt.number,ht;if(dt)nt.selectNumberingPlan(dt);else if(pt&&(tt||rt))nt.selectNumberingPlan(tt,rt),tt&&(ht=tt),dt=rt||getCountryCallingCode(tt,nt.metadata);else return{};if(!pt)return{countryCallingCodeSource:ut,countryCallingCode:dt};var mt=extractNationalNumber(parseIncompletePhoneNumber(pt),nt),xt=mt.nationalNumber,Mt=mt.carrierCode,vt=getCountryByCallingCode(dt,{nationalNumber:xt,defaultCountry:tt,metadata:nt});return vt&&(ht=vt,vt==="001"||nt.country(ht)),{country:ht,countryCallingCode:dt,countryCallingCodeSource:ut,nationalNumber:xt,carrierCode:Mt}}function ownKeys$a(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$a(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$a(Object(rt),!0).forEach(function(nt){_defineProperty$9(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$a(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty$9(et,tt,rt){return tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function parsePhoneNumberWithError(et,tt,rt){return parse$3(et,_objectSpread$a(_objectSpread$a({},tt),{},{v2:!0}),rt)}function ownKeys$9(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$9(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$9(Object(rt),!0).forEach(function(nt){_defineProperty$8(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$9(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty$8(et,tt,rt){return tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _slicedToArray$6(et,tt){return _arrayWithHoles$5(et)||_iterableToArrayLimit$5(et,tt)||_unsupportedIterableToArray$b(et,tt)||_nonIterableRest$5()}function _nonIterableRest$5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$b(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$b(et,tt)}}function _arrayLikeToArray$b(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _iterableToArrayLimit$5(et,tt){var rt=et==null?null:typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt!=null){var nt=[],lt=!0,ut=!1,dt,pt;try{for(rt=rt.call(et);!(lt=(dt=rt.next()).done)&&(nt.push(dt.value),!(tt&&nt.length===tt));lt=!0);}catch(ht){ut=!0,pt=ht}finally{try{!lt&&rt.return!=null&&rt.return()}finally{if(ut)throw pt}}return nt}}function _arrayWithHoles$5(et){if(Array.isArray(et))return et}function normalizeArguments(et){var tt=Array.prototype.slice.call(et),rt=_slicedToArray$6(tt,4),nt=rt[0],lt=rt[1],ut=rt[2],dt=rt[3],pt,ht,mt;if(typeof nt=="string")pt=nt;else throw new TypeError("A text for parsing must be a string.");if(!lt||typeof lt=="string")dt?(ht=ut,mt=dt):(ht=void 0,mt=ut),lt&&(ht=_objectSpread$9({defaultCountry:lt},ht));else if(isObject$e(lt))ut?(ht=lt,mt=ut):mt=lt;else throw new Error("Invalid second argument: ".concat(lt));return{text:pt,options:ht,metadata:mt}}function ownKeys$8(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$8(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$8(Object(rt),!0).forEach(function(nt){_defineProperty$7(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$8(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty$7(et,tt,rt){return tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function parsePhoneNumber$2(et,tt,rt){tt&&tt.defaultCountry&&!isSupportedCountry$1(tt.defaultCountry,rt)&&(tt=_objectSpread$8(_objectSpread$8({},tt),{},{defaultCountry:void 0}));try{return parsePhoneNumberWithError(et,tt,rt)}catch(nt){if(!(nt instanceof ParseError))throw nt}}function parsePhoneNumber$1(){var et=normalizeArguments(arguments),tt=et.text,rt=et.options,nt=et.metadata;return parsePhoneNumber$2(tt,rt,nt)}function ownKeys$7(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$7(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$7(Object(rt),!0).forEach(function(nt){_defineProperty$6(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$7(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty$6(et,tt,rt){return tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function isValidPhoneNumber$1(){var et=normalizeArguments(arguments),tt=et.text,rt=et.options,nt=et.metadata;rt=_objectSpread$7(_objectSpread$7({},rt),{},{extract:!1});var lt=parsePhoneNumber$2(tt,rt,nt);return lt&&lt.isValid()||!1}function _classCallCheck$9(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$9(et,tt,rt){return tt&&_defineProperties$7(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}var AsYouTypeState=function(){function et(tt){var rt=tt.onCountryChange,nt=tt.onCallingCodeChange;_classCallCheck$9(this,et),this.onCountryChange=rt,this.onCallingCodeChange=nt}return _createClass$9(et,[{key:"reset",value:function(rt){var nt=rt.country,lt=rt.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(nt,lt)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(rt){for(var nt=0,lt=Object.keys(rt);nt<lt.length;nt++){var ut=lt[nt];this[ut]=rt[ut]}}},{key:"initCountryAndCallingCode",value:function(rt,nt){this.setCountry(rt),this.setCallingCode(nt)}},{key:"setCountry",value:function(rt){this.country=rt,this.onCountryChange(rt)}},{key:"setCallingCode",value:function(rt){this.callingCode=rt,this.onCallingCodeChange(rt,this.country)}},{key:"startInternationalNumber",value:function(rt,nt){this.international=!0,this.initCountryAndCallingCode(rt,nt)}},{key:"appendDigits",value:function(rt){this.digits+=rt}},{key:"appendNationalSignificantNumberDigits",value:function(rt){this.nationalSignificantNumber+=rt}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),et}();function _createForOfIteratorHelperLoose$5(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$a(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$a(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$a(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$a(et,tt)}}function _arrayLikeToArray$a(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}var DIGIT_PLACEHOLDER="x",DIGIT_PLACEHOLDER_MATCHER=new RegExp(DIGIT_PLACEHOLDER);function repeat(et,tt){if(tt<1)return"";for(var rt="";tt>1;)tt&1&&(rt+=et),tt>>=1,et+=et;return rt+et}function cutAndStripNonPairedParens(et,tt){return et[tt]===")"&&tt++,stripNonPairedParens(et.slice(0,tt))}function stripNonPairedParens(et){for(var tt=[],rt=0;rt<et.length;)et[rt]==="("?tt.push(rt):et[rt]===")"&&tt.pop(),rt++;var nt=0,lt="";tt.push(et.length);for(var ut=0,dt=tt;ut<dt.length;ut++){var pt=dt[ut];lt+=et.slice(nt,pt),nt=pt+1}return lt}function populateTemplateWithDigits(et,tt,rt){for(var nt=_createForOfIteratorHelperLoose$5(rt.split("")),lt;!(lt=nt()).done;){var ut=lt.value;if(et.slice(tt+1).search(DIGIT_PLACEHOLDER_MATCHER)<0)return;tt=et.search(DIGIT_PLACEHOLDER_MATCHER),et=et.replace(DIGIT_PLACEHOLDER_MATCHER,ut)}return[et,tt]}function formatCompleteNumber(et,tt,rt){var nt=rt.metadata,lt=rt.shouldTryNationalPrefixFormattingRule,ut=rt.getSeparatorAfterNationalPrefix,dt=new RegExp("^(?:".concat(tt.pattern(),")$"));if(dt.test(et.nationalSignificantNumber))return formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(et,tt,{metadata:nt,shouldTryNationalPrefixFormattingRule:lt,getSeparatorAfterNationalPrefix:ut})}function canFormatCompleteNumber(et,tt){return checkNumberLength(et,tt)==="IS_POSSIBLE"}function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(et,tt,rt){var nt=rt.metadata,lt=rt.shouldTryNationalPrefixFormattingRule,ut=rt.getSeparatorAfterNationalPrefix;if(et.nationalSignificantNumber,et.international,et.nationalPrefix,et.carrierCode,lt(tt)){var dt=formatNationalNumber(et,tt,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:ut,metadata:nt});if(dt)return dt}return formatNationalNumber(et,tt,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:ut,metadata:nt})}function formatNationalNumber(et,tt,rt){var nt=rt.metadata,lt=rt.useNationalPrefixFormattingRule,ut=rt.getSeparatorAfterNationalPrefix,dt=formatNationalNumberUsingFormat(et.nationalSignificantNumber,tt,{carrierCode:et.carrierCode,useInternationalFormat:et.international,withNationalPrefix:lt,metadata:nt});if(lt||(et.nationalPrefix?dt=et.nationalPrefix+ut(tt)+dt:et.complexPrefixBeforeNationalSignificantNumber&&(dt=et.complexPrefixBeforeNationalSignificantNumber+" "+dt)),isValidFormattedNationalNumber(dt,et))return dt}function isValidFormattedNationalNumber(et,tt){return parseDigits(et)===tt.getNationalDigits()}function _classCallCheck$8(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$8(et,tt,rt){return tt&&_defineProperties$6(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}var PatternParser=function(){function et(){_classCallCheck$8(this,et)}return _createClass$8(et,[{key:"parse",value:function(rt){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(rt),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var nt=this.context[0],lt=nt.branches,ut=nt.instructions;if(lt)return{op:"|",args:lt.concat([expandSingleElementArray(ut)])};if(ut.length===0)throw new Error("Pattern is required");return ut.length===1?ut[0]:ut}},{key:"startContext",value:function(rt){this.context.push(rt)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(rt){if(!rt)throw new Error("Pattern is required");var nt=rt.match(OPERATOR);if(!nt){if(ILLEGAL_CHARACTER_REGEXP.test(rt))throw new Error("Illegal characters found in a pattern: ".concat(rt));this.getContext().instructions=this.getContext().instructions.concat(rt.split(""));return}var lt=nt[1],ut=rt.slice(0,nt.index),dt=rt.slice(nt.index+lt.length);switch(lt){case"(?:":ut&&this.parsePattern(ut),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(ut&&this.parsePattern(ut),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var pt=this.getContext(),ht=pt.branches;ht.push(expandSingleElementArray(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:ht});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(ut&&this.parsePattern(ut),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(expandSingleElementArray(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":ut&&this.parsePattern(ut),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:parseOneOfSet(ut)});break;default:throw new Error("Unknown operator: ".concat(lt))}dt&&this.parsePattern(dt)}}]),et}();function parseOneOfSet(et){for(var tt=[],rt=0;rt<et.length;){if(et[rt]==="-"){if(rt===0||rt===et.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(et));for(var nt=et[rt-1].charCodeAt(0)+1,lt=et[rt+1].charCodeAt(0)-1,ut=nt;ut<=lt;)tt.push(String.fromCharCode(ut)),ut++}else tt.push(et[rt]);rt++}return tt}var ILLEGAL_CHARACTER_REGEXP=/[\(\)\[\]\?\:\|]/,OPERATOR=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function expandSingleElementArray(et){return et.length===1?et[0]:et}function _createForOfIteratorHelperLoose$4(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$9(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$9(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$9(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$9(et,tt)}}function _arrayLikeToArray$9(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _classCallCheck$7(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$7(et,tt,rt){return tt&&_defineProperties$5(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}var PatternMatcher=function(){function et(tt){_classCallCheck$7(this,et),this.matchTree=new PatternParser().parse(tt)}return _createClass$7(et,[{key:"match",value:function(rt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lt=nt.allowOverflow;if(!rt)throw new Error("String is required");var ut=_match(rt.split(""),this.matchTree,!0);if(ut&&ut.match&&delete ut.matchedChars,!(ut&&ut.overflow&&!lt))return ut}}]),et}();function _match(et,tt,rt){if(typeof tt=="string"){var nt=et.join("");return tt.indexOf(nt)===0?et.length===tt.length?{match:!0,matchedChars:et}:{partialMatch:!0}:nt.indexOf(tt)===0?rt&&et.length>tt.length?{overflow:!0}:{match:!0,matchedChars:et.slice(0,tt.length)}:void 0}if(Array.isArray(tt)){for(var lt=et.slice(),ut=0;ut<tt.length;){var dt=tt[ut],pt=_match(lt,dt,rt&&ut===tt.length-1);if(pt){if(pt.overflow)return pt;if(pt.match){if(lt=lt.slice(pt.matchedChars.length),lt.length===0)return ut===tt.length-1?{match:!0,matchedChars:et}:{partialMatch:!0}}else{if(pt.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
`.concat(JSON.stringify(pt,null,2)))}}else return;ut++}return rt?{overflow:!0}:{match:!0,matchedChars:et.slice(0,et.length-lt.length)}}switch(tt.op){case"|":for(var ht,mt=_createForOfIteratorHelperLoose$4(tt.args),xt;!(xt=mt()).done;){var Mt=xt.value,vt=_match(et,Mt,rt);if(vt){if(vt.overflow)return vt;if(vt.match)return{match:!0,matchedChars:vt.matchedChars};if(vt.partialMatch)ht=!0;else throw new Error(`Unsupported match result:
`.concat(JSON.stringify(vt,null,2)))}}return ht?{partialMatch:!0}:void 0;case"[]":for(var Ot=_createForOfIteratorHelperLoose$4(tt.args),At;!(At=Ot()).done;){var Rt=At.value;if(et[0]===Rt)return et.length===1?{match:!0,matchedChars:et}:rt?{overflow:!0}:{match:!0,matchedChars:[Rt]}}return;default:throw new Error("Unsupported instruction tree: ".concat(tt))}}function _createForOfIteratorHelperLoose$3(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$8(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$8(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$8(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$8(et,tt)}}function _arrayLikeToArray$8(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _classCallCheck$6(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$6(et,tt,rt){return tt&&_defineProperties$4(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}var DUMMY_DIGIT="9",LONGEST_NATIONAL_PHONE_NUMBER_LENGTH=15,LONGEST_DUMMY_PHONE_NUMBER=repeat(DUMMY_DIGIT,LONGEST_NATIONAL_PHONE_NUMBER_LENGTH),NATIONAL_PREFIX_SEPARATORS_PATTERN=/[- ]/,CREATE_CHARACTER_CLASS_PATTERN=function(){return/\[([^\[\]])*\]/g},CREATE_STANDALONE_DIGIT_PATTERN=function(){return/\d(?=[^,}][^,}])/g},NON_ALTERING_FORMAT_REG_EXP=new RegExp("["+VALID_PUNCTUATION+"]*\\$1["+VALID_PUNCTUATION+"]*(\\$\\d["+VALID_PUNCTUATION+"]*)*$"),MIN_LEADING_DIGITS_LENGTH=3,AsYouTypeFormatter=function(){function et(tt){tt.state;var rt=tt.metadata;_classCallCheck$6(this,et),this.metadata=rt,this.resetFormat()}return _createClass$6(et,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(rt,nt){this.resetFormat(),rt?(this.isNANP=rt.callingCode()==="1",this.matchingFormats=rt.formats(),nt.nationalSignificantNumber&&this.narrowDownMatchingFormats(nt)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(rt,nt){var lt=this;if(canFormatCompleteNumber(nt.nationalSignificantNumber,this.metadata))for(var ut=_createForOfIteratorHelperLoose$3(this.matchingFormats),dt;!(dt=ut()).done;){var pt=dt.value,ht=formatCompleteNumber(nt,pt,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(xt){return lt.shouldTryNationalPrefixFormattingRule(xt,{international:nt.international,nationalPrefix:nt.nationalPrefix})},getSeparatorAfterNationalPrefix:function(xt){return lt.getSeparatorAfterNationalPrefix(xt)}});if(ht)return this.resetFormat(),this.chosenFormat=pt,this.setNationalNumberTemplate(ht.replace(/\d/g,DIGIT_PLACEHOLDER),nt),this.populatedNationalNumberTemplate=ht,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(DIGIT_PLACEHOLDER),ht}return this.formatNationalNumberWithNextDigits(rt,nt)}},{key:"formatNationalNumberWithNextDigits",value:function(rt,nt){var lt=this.chosenFormat,ut=this.chooseFormat(nt);if(ut)return ut===lt?this.formatNextNationalNumberDigits(rt):this.formatNextNationalNumberDigits(nt.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(rt){var nt=this,lt=rt.nationalSignificantNumber,ut=rt.nationalPrefix,dt=rt.international,pt=lt,ht=pt.length-MIN_LEADING_DIGITS_LENGTH;ht<0&&(ht=0),this.matchingFormats=this.matchingFormats.filter(function(mt){return nt.formatSuits(mt,dt,ut)&&nt.formatMatches(mt,pt,ht)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(rt,nt,lt){return!(lt&&!rt.usesNationalPrefix()&&!rt.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!nt&&!lt&&rt.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(rt,nt,lt){var ut=rt.leadingDigitsPatterns().length;if(ut===0)return!0;lt=Math.min(lt,ut-1);var dt=rt.leadingDigitsPatterns()[lt];if(nt.length<MIN_LEADING_DIGITS_LENGTH)try{return new PatternMatcher(dt).match(nt,{allowOverflow:!0})!==void 0}catch(pt){return console.error(pt),!0}return new RegExp("^(".concat(dt,")")).test(nt)}},{key:"getFormatFormat",value:function(rt,nt){return nt?rt.internationalFormat():rt.format()}},{key:"chooseFormat",value:function(rt){for(var nt=this,lt=function(){var mt=dt.value;return nt.chosenFormat===mt?"break":NON_ALTERING_FORMAT_REG_EXP.test(nt.getFormatFormat(mt,rt.international))?nt.createTemplateForFormat(mt,rt)?(nt.chosenFormat=mt,"break"):(nt.matchingFormats=nt.matchingFormats.filter(function(xt){return xt!==mt}),"continue"):"continue"},ut=_createForOfIteratorHelperLoose$3(this.matchingFormats.slice()),dt;!(dt=ut()).done;){var pt=lt();if(pt==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(rt,nt){if(!(rt.pattern().indexOf("|")>=0)){var lt=this.getTemplateForFormat(rt,nt);if(lt)return this.setNationalNumberTemplate(lt,nt),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(rt){return this.isNANP||rt&&rt.nationalPrefixFormattingRule()&&NATIONAL_PREFIX_SEPARATORS_PATTERN.test(rt.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(rt,nt){var lt=rt.IDDPrefix,ut=rt.missingPlus;return lt?nt&&nt.spacing===!1?lt:lt+" ":ut?"":"+"}},{key:"getTemplate",value:function(rt){if(this.template){for(var nt=-1,lt=0,ut=rt.international?this.getInternationalPrefixBeforeCountryCallingCode(rt,{spacing:!1}):"";lt<ut.length+rt.getDigitsWithoutInternationalPrefix().length;)nt=this.template.indexOf(DIGIT_PLACEHOLDER,nt+1),lt++;return cutAndStripNonPairedParens(this.template,nt+1)}}},{key:"setNationalNumberTemplate",value:function(rt,nt){this.nationalNumberTemplate=rt,this.populatedNationalNumberTemplate=rt,this.populatedNationalNumberTemplatePosition=-1,nt.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(nt).replace(/[\d\+]/g,DIGIT_PLACEHOLDER)+repeat(DIGIT_PLACEHOLDER,nt.callingCode.length)+" "+rt:this.template=rt}},{key:"getTemplateForFormat",value:function(rt,nt){var lt=nt.nationalSignificantNumber,ut=nt.international,dt=nt.nationalPrefix,pt=nt.complexPrefixBeforeNationalSignificantNumber,ht=rt.pattern();ht=ht.replace(CREATE_CHARACTER_CLASS_PATTERN(),"\\d").replace(CREATE_STANDALONE_DIGIT_PATTERN(),"\\d");var mt=LONGEST_DUMMY_PHONE_NUMBER.match(ht)[0];if(!(lt.length>mt.length)){var xt=new RegExp("^"+ht+"$"),Mt=lt.replace(/\d/g,DUMMY_DIGIT);xt.test(Mt)&&(mt=Mt);var vt=this.getFormatFormat(rt,ut),Ot;if(this.shouldTryNationalPrefixFormattingRule(rt,{international:ut,nationalPrefix:dt})){var At=vt.replace(FIRST_GROUP_PATTERN,rt.nationalPrefixFormattingRule());if(parseDigits(rt.nationalPrefixFormattingRule())===(dt||"")+parseDigits("$1")&&(vt=At,Ot=!0,dt))for(var Rt=dt.length;Rt>0;)vt=vt.replace(/\d/,DIGIT_PLACEHOLDER),Rt--}var zt=mt.replace(new RegExp(ht),vt).replace(new RegExp(DUMMY_DIGIT,"g"),DIGIT_PLACEHOLDER);return Ot||(pt?zt=repeat(DIGIT_PLACEHOLDER,pt.length)+" "+zt:dt&&(zt=repeat(DIGIT_PLACEHOLDER,dt.length)+this.getSeparatorAfterNationalPrefix(rt)+zt)),ut&&(zt=applyInternationalSeparatorStyle(zt)),zt}}},{key:"formatNextNationalNumberDigits",value:function(rt){var nt=populateTemplateWithDigits(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,rt);if(!nt){this.resetFormat();return}return this.populatedNationalNumberTemplate=nt[0],this.populatedNationalNumberTemplatePosition=nt[1],cutAndStripNonPairedParens(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(rt,nt){var lt=nt.international,ut=nt.nationalPrefix;if(rt.nationalPrefixFormattingRule()){var dt=rt.usesNationalPrefix();if(dt&&ut||!dt&&!lt)return!0}}}]),et}();function _slicedToArray$5(et,tt){return _arrayWithHoles$4(et)||_iterableToArrayLimit$4(et,tt)||_unsupportedIterableToArray$7(et,tt)||_nonIterableRest$4()}function _nonIterableRest$4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$7(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$7(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$7(et,tt)}}function _arrayLikeToArray$7(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _iterableToArrayLimit$4(et,tt){var rt=et==null?null:typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt!=null){var nt=[],lt=!0,ut=!1,dt,pt;try{for(rt=rt.call(et);!(lt=(dt=rt.next()).done)&&(nt.push(dt.value),!(tt&&nt.length===tt));lt=!0);}catch(ht){ut=!0,pt=ht}finally{try{!lt&&rt.return!=null&&rt.return()}finally{if(ut)throw pt}}return nt}}function _arrayWithHoles$4(et){if(Array.isArray(et))return et}function _classCallCheck$5(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$5(et,tt,rt){return tt&&_defineProperties$3(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART="["+VALID_PUNCTUATION+VALID_DIGITS+"]+",VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN=new RegExp("^"+VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART+"$","i"),VALID_FORMATTED_PHONE_NUMBER_PART="(?:["+PLUS_CHARS+"]["+VALID_PUNCTUATION+VALID_DIGITS+"]*|["+VALID_PUNCTUATION+VALID_DIGITS+"]+)",AFTER_PHONE_NUMBER_DIGITS_END_PATTERN=new RegExp("[^"+VALID_PUNCTUATION+VALID_DIGITS+"]+.*$"),COMPLEX_NATIONAL_PREFIX=/[^\d\[\]]/,AsYouTypeParser=function(){function et(tt){var rt=tt.defaultCountry,nt=tt.defaultCallingCode,lt=tt.metadata,ut=tt.onNationalSignificantNumberChange;_classCallCheck$5(this,et),this.defaultCountry=rt,this.defaultCallingCode=nt,this.metadata=lt,this.onNationalSignificantNumberChange=ut}return _createClass$5(et,[{key:"input",value:function(rt,nt){var lt=extractFormattedDigitsAndPlus(rt),ut=_slicedToArray$5(lt,2),dt=ut[0],pt=ut[1],ht=parseDigits(dt),mt;return pt&&(nt.digits||(nt.startInternationalNumber(),ht||(mt=!0))),ht&&this.inputDigits(ht,nt),{digits:ht,justLeadingPlus:mt}}},{key:"inputDigits",value:function(rt,nt){var lt=nt.digits,ut=lt.length<3&&lt.length+rt.length>=3;if(nt.appendDigits(rt),ut&&this.extractIddPrefix(nt),this.isWaitingForCountryCallingCode(nt)){if(!this.extractCountryCallingCode(nt))return}else nt.appendNationalSignificantNumberDigits(rt);nt.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(nt.getNationalDigits(),function(dt){return nt.update(dt)})}},{key:"isWaitingForCountryCallingCode",value:function(rt){var nt=rt.international,lt=rt.callingCode;return nt&&!lt}},{key:"extractCountryCallingCode",value:function(rt){var nt=extractCountryCallingCode("+"+rt.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),lt=nt.countryCallingCode,ut=nt.number;if(lt)return rt.setCallingCode(lt),rt.update({nationalSignificantNumber:ut}),!0}},{key:"reset",value:function(rt){if(rt){this.hasSelectedNumberingPlan=!0;var nt=rt._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=nt&&COMPLEX_NATIONAL_PREFIX.test(nt)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(rt,nt){if(this.hasSelectedNumberingPlan){var lt=extractNationalNumberFromPossiblyIncompleteNumber(rt,this.metadata),ut=lt.nationalPrefix,dt=lt.nationalNumber,pt=lt.carrierCode;if(dt!==rt)return this.onExtractedNationalNumber(ut,pt,dt,rt,nt),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(rt,nt,lt){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(rt,lt);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var ut=extractNationalNumberFromPossiblyIncompleteNumber(rt,this.metadata),dt=ut.nationalPrefix,pt=ut.nationalNumber,ht=ut.carrierCode;if(pt!==nt)return this.onExtractedNationalNumber(dt,ht,pt,rt,lt),!0}}},{key:"onExtractedNationalNumber",value:function(rt,nt,lt,ut,dt){var pt,ht,mt=ut.lastIndexOf(lt);if(mt>=0&&mt===ut.length-lt.length){ht=!0;var xt=ut.slice(0,mt);xt!==rt&&(pt=xt)}dt({nationalPrefix:rt,carrierCode:nt,nationalSignificantNumber:lt,nationalSignificantNumberMatchesInput:ht,complexPrefixBeforeNationalSignificantNumber:pt}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(rt){if(this.extractAnotherNationalSignificantNumber(rt.getNationalDigits(),rt.nationalSignificantNumber,function(nt){return rt.update(nt)}))return!0;if(this.extractIddPrefix(rt))return this.extractCallingCodeAndNationalSignificantNumber(rt),!0;if(this.fixMissingPlus(rt))return this.extractCallingCodeAndNationalSignificantNumber(rt),!0}},{key:"extractIddPrefix",value:function(rt){var nt=rt.international,lt=rt.IDDPrefix,ut=rt.digits;if(rt.nationalSignificantNumber,!(nt||lt)){var dt=stripIddPrefix(ut,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(dt!==void 0&&dt!==ut)return rt.update({IDDPrefix:ut.slice(0,ut.length-dt.length)}),this.startInternationalNumber(rt,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(rt){if(!rt.international){var nt=extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(rt.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),lt=nt.countryCallingCode;if(nt.number,lt)return rt.update({missingPlus:!0}),this.startInternationalNumber(rt,{country:rt.country,callingCode:lt}),!0}}},{key:"startInternationalNumber",value:function(rt,nt){var lt=nt.country,ut=nt.callingCode;rt.startInternationalNumber(lt,ut),rt.nationalSignificantNumber&&(rt.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(rt){this.extractCountryCallingCode(rt)&&this.extractNationalSignificantNumber(rt.getNationalDigits(),function(nt){return rt.update(nt)})}}]),et}();function extractFormattedPhoneNumber(et){var tt=et.search(VALID_FORMATTED_PHONE_NUMBER_PART);if(!(tt<0)){et=et.slice(tt);var rt;return et[0]==="+"&&(rt=!0,et=et.slice(1)),et=et.replace(AFTER_PHONE_NUMBER_DIGITS_END_PATTERN,""),rt&&(et="+"+et),et}}function _extractFormattedDigitsAndPlus(et){var tt=extractFormattedPhoneNumber(et)||"";return tt[0]==="+"?[tt.slice(1),!0]:[tt]}function extractFormattedDigitsAndPlus(et){var tt=_extractFormattedDigitsAndPlus(et),rt=_slicedToArray$5(tt,2),nt=rt[0],lt=rt[1];return VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN.test(nt)||(nt=""),[nt,lt]}function _slicedToArray$4(et,tt){return _arrayWithHoles$3(et)||_iterableToArrayLimit$3(et,tt)||_unsupportedIterableToArray$6(et,tt)||_nonIterableRest$3()}function _nonIterableRest$3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$6(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$6(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$6(et,tt)}}function _arrayLikeToArray$6(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _iterableToArrayLimit$3(et,tt){var rt=et==null?null:typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt!=null){var nt=[],lt=!0,ut=!1,dt,pt;try{for(rt=rt.call(et);!(lt=(dt=rt.next()).done)&&(nt.push(dt.value),!(tt&&nt.length===tt));lt=!0);}catch(ht){ut=!0,pt=ht}finally{try{!lt&&rt.return!=null&&rt.return()}finally{if(ut)throw pt}}return nt}}function _arrayWithHoles$3(et){if(Array.isArray(et))return et}function _classCallCheck$4(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,nt.key,nt)}}function _createClass$4(et,tt,rt){return tt&&_defineProperties$2(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}var AsYouType=function(){function et(tt,rt){_classCallCheck$4(this,et),this.metadata=new Metadata(rt);var nt=this.getCountryAndCallingCode(tt),lt=_slicedToArray$4(nt,2),ut=lt[0],dt=lt[1];this.defaultCountry=ut,this.defaultCallingCode=dt,this.reset()}return _createClass$4(et,[{key:"getCountryAndCallingCode",value:function(rt){var nt,lt;return rt&&(isObject$e(rt)?(nt=rt.defaultCountry,lt=rt.defaultCallingCode):nt=rt),nt&&!this.metadata.hasCountry(nt)&&(nt=void 0),[nt,lt]}},{key:"input",value:function(rt){var nt=this.parser.input(rt,this.state),lt=nt.digits,ut=nt.justLeadingPlus;if(ut)this.formattedOutput="+";else if(lt){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var dt;if(this.metadata.hasSelectedNumberingPlan()&&(dt=this.formatter.format(lt,this.state)),dt===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var pt=this.state.getNationalDigits();pt&&(dt=this.formatter.format(pt,this.state))}this.formattedOutput=dt?this.getFullNumber(dt):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var rt=this;return this.state=new AsYouTypeState({onCountryChange:function(lt){rt.country=lt},onCallingCodeChange:function(lt,ut){rt.metadata.selectNumberingPlan(ut,lt),rt.formatter.reset(rt.metadata.numberingPlan,rt.state),rt.parser.reset(rt.metadata.numberingPlan)}}),this.formatter=new AsYouTypeFormatter({state:this.state,metadata:this.metadata}),this.parser=new AsYouTypeParser({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){rt.determineTheCountryIfNeeded(),rt.formatter.reset(rt.metadata.numberingPlan,rt.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var rt=this.state.digits;if(rt)return this._getCountry()}},{key:"_getCountry",value:function(){var rt=this.state.country;return rt}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(rt){var nt=this;if(this.isInternational()){var lt=function(pt){return nt.formatter.getInternationalPrefixBeforeCountryCallingCode(nt.state,{spacing:!!pt})+pt},ut=this.state.callingCode;return lt(ut?rt?"".concat(ut," ").concat(rt):ut:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return rt}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var rt=this.state,nt=rt.nationalSignificantNumber,lt=rt.complexPrefixBeforeNationalSignificantNumber,ut=rt.nationalPrefix,dt=nt,pt=lt||ut;return pt&&(dt=pt+dt),dt}},{key:"getNonFormattedNumber",value:function(){var rt=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(rt?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var rt=this.getNonFormattedNumber();if(rt)return rt.replace(/[\+\d]/g,DIGIT_PLACEHOLDER)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var rt=this.state.callingCode,nt=this.metadata.getCountryCodesForCallingCode(rt);return nt&&nt.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(getCountryByCallingCode(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var rt=this.state,nt=rt.digits,lt=rt.callingCode,ut=rt.country,dt=rt.nationalSignificantNumber;if(nt){if(this.isInternational())return lt?"+"+lt+dt:"+"+nt;if(ut||lt){var pt=ut?this.metadata.countryCallingCode():lt;return"+"+pt+dt}}}},{key:"getNumber",value:function(){var rt=this.state,nt=rt.nationalSignificantNumber,lt=rt.carrierCode,ut=rt.callingCode,dt=this._getCountry();if(nt&&!(!dt&&!ut)){if(dt&&dt===this.defaultCountry){var pt=new Metadata(this.metadata.metadata);pt.selectNumberingPlan(dt);var ht=pt.numberingPlan.callingCode(),mt=this.metadata.getCountryCodesForCallingCode(ht);if(mt.length>1){var xt=getCountryByNationalNumber(nt,{countries:mt,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});xt&&(dt=xt)}}var Mt=new PhoneNumber(dt||ut,nt,this.metadata.metadata);return lt&&(Mt.carrierCode=lt),Mt}}},{key:"isPossible",value:function(){var rt=this.getNumber();return rt?rt.isPossible():!1}},{key:"isValid",value:function(){var rt=this.getNumber();return rt?rt.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),et}();function getCountries(et){return new Metadata(et).getCountries()}function formatIncompletePhoneNumber(et,tt,rt){return rt||(rt=tt,tt=void 0),new AsYouType(tt,rt).input(et)}function getPrefixForFormattingValueAsPhoneNumber(et){var tt=et.inputFormat,rt=et.country,nt=et.metadata;return tt==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(getCountryCallingCode(rt,nt)):""}function removePrefixFromFormattedPhoneNumber(et,tt){return tt&&(et=et.slice(tt.length),et[0]===" "&&(et=et.slice(1))),et}function parsePhoneNumberCharacter_(et,tt,rt){if(!(rt&&rt.ignoreRest)){var nt=function(ut){if(rt)switch(ut){case"end":rt.ignoreRest=!0;break}};return parsePhoneNumberCharacter(et,tt,nt)}}function useInputKeyDownHandler(et){var tt=et.onKeyDown,rt=et.inputFormat;return reactExports.useCallback(function(nt){if(nt.keyCode===BACKSPACE_KEY_CODE&&rt==="INTERNATIONAL"&&nt.target instanceof HTMLInputElement&&getCaretPosition(nt.target)===LEADING_PLUS.length){nt.preventDefault();return}tt&&tt(nt)},[tt,rt])}function getCaretPosition(et){return et.selectionStart}var BACKSPACE_KEY_CODE=8,LEADING_PLUS="+",_excluded$G=["onKeyDown","country","inputFormat","metadata"];function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$g.apply(this,arguments)}function _objectWithoutProperties$a(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$b(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$b(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function createInput$1(et){function tt(rt,nt){var lt=rt.onKeyDown,ut=rt.country,dt=rt.inputFormat,pt=rt.metadata,ht=pt===void 0?et:pt,mt=_objectWithoutProperties$a(rt,_excluded$G),xt=reactExports.useCallback(function(vt){var Ot=new AsYouType(ut,ht),At=getPrefixForFormattingValueAsPhoneNumber({inputFormat:dt,country:ut,metadata:ht}),Rt=Ot.input(At+vt),zt=Ot.getTemplate();return At&&(Rt=removePrefixFromFormattedPhoneNumber(Rt,At),zt&&(zt=removePrefixFromFormattedPhoneNumber(zt,At))),{text:Rt,template:zt}},[ut,ht]),Mt=useInputKeyDownHandler({onKeyDown:lt,inputFormat:dt});return React$4.createElement(Input$2,_extends$g({},mt,{ref:nt,parse:parsePhoneNumberCharacter_,format:xt,onKeyDown:Mt}))}return tt=React$4.forwardRef(tt),tt.propTypes={value:PropTypes.string.isRequired,onChange:PropTypes.func.isRequired,onKeyDown:PropTypes.func,country:PropTypes.string,inputFormat:PropTypes.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:PropTypes.object},tt}const InputSmart=createInput$1();var _excluded$F=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent"];function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$f.apply(this,arguments)}function _objectWithoutProperties$9(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$a(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$a(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function createInput(et){function tt(rt,nt){var lt=rt.value,ut=rt.onChange,dt=rt.onKeyDown,pt=rt.country,ht=rt.inputFormat,mt=rt.metadata,xt=mt===void 0?et:mt,Mt=rt.inputComponent,vt=Mt===void 0?"input":Mt,Ot=_objectWithoutProperties$9(rt,_excluded$F),At=getPrefixForFormattingValueAsPhoneNumber({inputFormat:ht,country:pt,metadata:xt}),Rt=reactExports.useCallback(function(Tt){var Ct=parseIncompletePhoneNumber(Tt.target.value);if(Ct===lt){var It=format$1(At,Ct,pt,xt);It.indexOf(Tt.target.value)===0&&(Ct=Ct.slice(0,-1))}ut(Ct)},[At,lt,ut,pt,xt]),zt=useInputKeyDownHandler({onKeyDown:dt,inputFormat:ht});return React$4.createElement(vt,_extends$f({},Ot,{ref:nt,value:format$1(At,lt,pt,xt),onChange:Rt,onKeyDown:zt}))}return tt=React$4.forwardRef(tt),tt.propTypes={value:PropTypes.string.isRequired,onChange:PropTypes.func.isRequired,onKeyDown:PropTypes.func,country:PropTypes.string,inputFormat:PropTypes.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:PropTypes.object,inputComponent:PropTypes.elementType},tt}const InputBasic=createInput();function format$1(et,tt,rt,nt){return removePrefixFromFormattedPhoneNumber(formatIncompletePhoneNumber(et+tt,rt,nt),et)}function getCountryFlag(et){return getRegionalIndicatorSymbol(et[0])+getRegionalIndicatorSymbol(et[1])}function getRegionalIndicatorSymbol(et){return String.fromCodePoint(127397+et.toUpperCase().charCodeAt(0))}var _excluded$E=["value","onChange","options","disabled","readOnly"],_excluded2$a=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function _createForOfIteratorHelperLoose$2(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$5(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$5(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$5(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$5(et,tt)}}function _arrayLikeToArray$5(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _extends$e(){return _extends$e=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$e.apply(this,arguments)}function _objectWithoutProperties$8(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$9(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$9(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function CountrySelect(et){var tt=et.value,rt=et.onChange,nt=et.options,lt=et.disabled,ut=et.readOnly,dt=_objectWithoutProperties$8(et,_excluded$E),pt=reactExports.useCallback(function(ht){var mt=ht.target.value;rt(mt==="ZZ"?void 0:mt)},[rt]);return reactExports.useMemo(function(){return getSelectedOption(nt,tt)},[nt,tt]),React$4.createElement("select",_extends$e({},dt,{disabled:lt||ut,readOnly:ut,value:tt||"ZZ",onChange:pt}),nt.map(function(ht){var mt=ht.value,xt=ht.label,Mt=ht.divider;return React$4.createElement("option",{key:Mt?"|":mt||"ZZ",value:Mt?"|":mt||"ZZ",disabled:!!Mt,style:Mt?DIVIDER_STYLE:void 0},xt)}))}CountrySelect.propTypes={value:PropTypes.string,onChange:PropTypes.func.isRequired,options:PropTypes.arrayOf(PropTypes.shape({value:PropTypes.string,label:PropTypes.string,divider:PropTypes.bool})).isRequired,disabled:PropTypes.bool,readOnly:PropTypes.bool};var DIVIDER_STYLE={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function CountrySelectWithIcon(et){var tt=et.value,rt=et.options,nt=et.className,lt=et.iconComponent;et.getIconAspectRatio;var ut=et.arrowComponent,dt=ut===void 0?DefaultArrowComponent:ut,pt=et.unicodeFlags,ht=_objectWithoutProperties$8(et,_excluded2$a),mt=reactExports.useMemo(function(){return getSelectedOption(rt,tt)},[rt,tt]);return React$4.createElement("div",{className:"PhoneInputCountry"},React$4.createElement(CountrySelect,_extends$e({},ht,{value:tt,options:rt,className:classNames$1("PhoneInputCountrySelect",nt)})),mt&&(pt&&tt?React$4.createElement("div",{className:"PhoneInputCountryIconUnicode"},getCountryFlag(tt)):React$4.createElement(lt,{"aria-hidden":!0,country:tt,label:mt.label,aspectRatio:pt?1:void 0})),React$4.createElement(dt,null))}CountrySelectWithIcon.propTypes={iconComponent:PropTypes.elementType,arrowComponent:PropTypes.elementType,unicodeFlags:PropTypes.bool};function DefaultArrowComponent(){return React$4.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function getSelectedOption(et,tt){for(var rt=_createForOfIteratorHelperLoose$2(et),nt;!(nt=rt()).done;){var lt=nt.value;if(!lt.divider&&isSameOptionValue(lt.value,tt))return lt}}function isSameOptionValue(et,tt){return et==null?tt==null:et===tt}var _excluded$D=["country","countryName","flags","flagUrl"];function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$d.apply(this,arguments)}function _objectWithoutProperties$7(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$8(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$8(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function FlagComponent(et){var tt=et.country,rt=et.countryName,nt=et.flags,lt=et.flagUrl,ut=_objectWithoutProperties$7(et,_excluded$D);return nt&&nt[tt]?nt[tt]({title:rt}):React$4.createElement("img",_extends$d({},ut,{alt:rt,role:rt?void 0:"presentation",src:lt.replace("{XX}",tt).replace("{xx}",tt.toLowerCase())}))}FlagComponent.propTypes={country:PropTypes.string.isRequired,countryName:PropTypes.string.isRequired,flags:PropTypes.objectOf(PropTypes.elementType),flagUrl:PropTypes.string.isRequired};var _excluded$C=["aspectRatio"],_excluded2$9=["title"],_excluded3$4=["title"];function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$c.apply(this,arguments)}function _objectWithoutProperties$6(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$7(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$7(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function InternationalIcon(et){var tt=et.aspectRatio,rt=_objectWithoutProperties$6(et,_excluded$C);return tt===1?React$4.createElement(InternationalIcon1x1,rt):React$4.createElement(InternationalIcon3x2,rt)}InternationalIcon.propTypes={title:PropTypes.string.isRequired,aspectRatio:PropTypes.number};function InternationalIcon3x2(et){var tt=et.title,rt=_objectWithoutProperties$6(et,_excluded2$9);return React$4.createElement("svg",_extends$c({},rt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),React$4.createElement("title",null,tt),React$4.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},React$4.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),React$4.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),React$4.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),React$4.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),React$4.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),React$4.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),React$4.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}InternationalIcon3x2.propTypes={title:PropTypes.string.isRequired};function InternationalIcon1x1(et){var tt=et.title,rt=_objectWithoutProperties$6(et,_excluded3$4);return React$4.createElement("svg",_extends$c({},rt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),React$4.createElement("title",null,tt),React$4.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},React$4.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),React$4.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),React$4.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),React$4.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),React$4.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),React$4.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),React$4.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}InternationalIcon1x1.propTypes={title:PropTypes.string.isRequired};function isE164Number(et){if(et.length<2||et[0]!=="+")return!1;for(var tt=1;tt<et.length;){var rt=et.charCodeAt(tt);if(!(rt>=48&&rt<=57))return!1;tt++}return!0}function validateE164Number(et){isE164Number(et)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",et)}function _createForOfIteratorHelperLoose$1(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$4(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$4(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$4(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$4(et,tt)}}function _arrayLikeToArray$4(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function sortCountryOptions(et,tt){if(!tt)return et;for(var rt=[],nt=[],lt=rt,ut=function(){var mt=pt.value;if(mt==="|")lt.push({divider:!0});else if(mt==="..."||mt==="…")lt=nt;else{var xt;mt==="🌐"?xt=void 0:xt=mt;var Mt=et.indexOf(et.filter(function(Ot){return Ot.value===xt})[0]),vt=et[Mt];et.splice(Mt,1),lt.push(vt)}},dt=_createForOfIteratorHelperLoose$1(tt),pt;!(pt=dt()).done;)ut();return rt.concat(et).concat(nt)}function getSupportedCountryOptions(et,tt){if(et&&(et=et.filter(function(rt){switch(rt){case"🌐":case"|":case"...":case"…":return!0;default:return isCountrySupportedWithError(rt,tt)}}),et.length>0))return et}function isCountrySupportedWithError(et,tt){return isSupportedCountry$1(et,tt)?!0:(console.error("Country not found: ".concat(et)),!1)}function getSupportedCountries(et,tt){return et&&(et=et.filter(function(rt){return isCountrySupportedWithError(rt,tt)}),et.length===0&&(et=void 0)),et}var _excluded$B=["country","label","aspectRatio"];function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$b.apply(this,arguments)}function _objectWithoutProperties$5(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$6(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$6(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function createCountryIconComponent(et){var tt=et.flags,rt=et.flagUrl,nt=et.flagComponent,lt=et.internationalIcon;function ut(dt){var pt=dt.country,ht=dt.label,mt=dt.aspectRatio,xt=_objectWithoutProperties$5(dt,_excluded$B),Mt=lt===InternationalIcon?mt:void 0;return React$4.createElement("div",_extends$b({},xt,{className:classNames$1("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":Mt===1,"PhoneInputCountryIcon--border":pt})}),pt?React$4.createElement(nt,{country:pt,countryName:ht,flags:tt,flagUrl:rt,className:"PhoneInputCountryIconImg"}):React$4.createElement(lt,{title:ht,aspectRatio:Mt,className:"PhoneInputCountryIconImg"}))}return ut.propTypes={country:PropTypes.string,label:PropTypes.string.isRequired,aspectRatio:PropTypes.number},ut}createCountryIconComponent({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:FlagComponent,internationalIcon:InternationalIcon});function _createForOfIteratorHelperLoose(et,tt){var rt=typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt)return(rt=rt.call(et)).next.bind(rt);if(Array.isArray(et)||(rt=_unsupportedIterableToArray$3(et))||tt){rt&&(et=rt);var nt=0;return function(){return nt>=et.length?{done:!0}:{done:!1,value:et[nt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$3(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$3(et,tt)}}function _arrayLikeToArray$3(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function setRefsValue(et,tt){for(var rt=_createForOfIteratorHelperLoose(et),nt;!(nt=rt()).done;){var lt=nt.value;lt&&setRefValue(lt,tt)}}function setRefValue(et,tt){typeof et=="function"?et(tt):et.current=tt}var metadata=PropTypes.shape({country_calling_codes:PropTypes.object.isRequired,countries:PropTypes.object.isRequired}),labels=PropTypes.objectOf(PropTypes.string);function getInternationalPhoneNumberPrefix(et,tt){var rt="+"+getCountryCallingCode(et,tt);return rt}function getPreSelectedCountry(et){var tt=et.value,rt=et.phoneNumber,nt=et.defaultCountry,lt=et.getAnyCountry,ut=et.countries,dt=et.required,pt=et.metadata,ht;return rt&&rt.country?ht=rt.country:nt&&(!tt||couldNumberBelongToCountry(tt,nt,pt))&&(ht=nt),ut&&ut.indexOf(ht)<0&&(ht=void 0),!ht&&dt&&ut&&ut.length>0&&(ht=lt()),ht}function getCountrySelectOptions(et){var tt=et.countries,rt=et.countryNames,nt=et.addInternationalOption,lt=et.compareStringsLocales,ut=et.compareStrings;ut||(ut=compareStrings);var dt=tt.map(function(pt){return{value:pt,label:rt[pt]||pt}});return dt.sort(function(pt,ht){return ut(pt.label,ht.label,lt)}),nt&&dt.unshift({label:rt.ZZ}),dt}function parsePhoneNumber(et,tt){return parsePhoneNumber$1(et||"",tt)}function generateNationalNumberDigits(et){return et.formatNational().replace(/\D/g,"")}function getPhoneDigitsForNewCountry(et,tt){var rt=tt.prevCountry,nt=tt.newCountry,lt=tt.metadata,ut=tt.useNationalFormat;if(rt===nt)return et;if(!et)return ut?"":nt?getInternationalPhoneNumberPrefix(nt,lt):"";if(nt){if(et[0]==="+"){if(ut)return et.indexOf("+"+getCountryCallingCode(nt,lt))===0?stripCountryCallingCode(et,nt,lt):"";if(rt){var dt=getInternationalPhoneNumberPrefix(nt,lt);return et.indexOf(dt)===0?et:dt}else{var pt=getInternationalPhoneNumberPrefix(nt,lt);return et.indexOf(pt)===0?et:pt}}}else if(et[0]!=="+")return e164(et,rt,lt)||"";return et}function e164(et,tt,rt){if(et){if(et[0]==="+"){if(et==="+")return;var nt=new AsYouType(tt,rt);return nt.input(et),nt.getNumberValue()}if(tt){var lt=getNationalSignificantNumberDigits(et,tt,rt);return"+".concat(getCountryCallingCode(tt,rt)).concat(lt||"")}}}function trimNumber(et,tt,rt){var nt=getNationalSignificantNumberDigits(et,tt,rt);if(nt){var lt=nt.length-getMaxNumberLength(tt,rt);if(lt>0)return et.slice(0,et.length-lt)}return et}function getMaxNumberLength(et,tt){return tt=new Metadata(tt),tt.selectNumberingPlan(et),tt.numberingPlan.possibleLengths()[tt.numberingPlan.possibleLengths().length-1]}function getCountryForPartialE164Number(et,tt){var rt=tt.country,nt=tt.countries,lt=tt.defaultCountry,ut=tt.latestCountrySelectedByUser,dt=tt.required,pt=tt.metadata;if(et==="+")return rt;var ht=getCountryFromPossiblyIncompleteInternationalPhoneNumber(et,pt);if(ht)return!nt||nt.indexOf(ht)>=0?ht:void 0;if(rt){if(couldNumberBelongToCountry(et,rt,pt)){if(ut&&couldNumberBelongToCountry(et,ut,pt))return ut;if(lt&&couldNumberBelongToCountry(et,lt,pt))return lt;if(!dt)return}else if(!dt)return}return rt}function onPhoneDigitsChange(et,tt){var rt=tt.prevPhoneDigits,nt=tt.country,lt=tt.defaultCountry,ut=tt.latestCountrySelectedByUser,dt=tt.countryRequired,pt=tt.getAnyCountry,ht=tt.countries,mt=tt.international,xt=tt.limitMaxLength,Mt=tt.countryCallingCodeEditable,vt=tt.metadata;if(mt&&Mt===!1&&nt){var Ot=getInternationalPhoneNumberPrefix(nt,vt);if(et.indexOf(Ot)!==0){var At,Rt=et&&et[0]!=="+";return Rt?(et=Ot+et,At=e164(et,nt,vt)):et=Ot,{phoneDigits:et,value:At,country:nt}}}mt===!1&&nt&&et&&et[0]==="+"&&(et=convertInternationalPhoneDigitsToNational(et,nt,vt)),et&&nt&&xt&&(et=trimNumber(et,nt,vt)),et&&et[0]!=="+"&&(!nt||mt)&&(et="+"+et),!et&&rt&&rt[0]==="+"&&(mt?nt=void 0:nt=lt),et==="+"&&rt&&rt[0]==="+"&&rt.length>1&&(nt=void 0);var zt;return et&&(et[0]==="+"&&(et==="+"||nt&&getInternationalPhoneNumberPrefix(nt,vt).indexOf(et)===0)?zt=void 0:zt=e164(et,nt,vt)),zt&&(nt=getCountryForPartialE164Number(zt,{country:nt,countries:ht,defaultCountry:lt,latestCountrySelectedByUser:ut,required:!1,metadata:vt}),mt===!1&&nt&&et&&et[0]==="+"&&(et=convertInternationalPhoneDigitsToNational(et,nt,vt),zt=e164(et,nt,vt))),!nt&&dt&&(nt=lt||pt()),{phoneDigits:et,country:nt,value:zt}}function convertInternationalPhoneDigitsToNational(et,tt,rt){if(et.indexOf(getInternationalPhoneNumberPrefix(tt,rt))===0){var nt=new AsYouType(tt,rt);nt.input(et);var lt=nt.getNumber();return lt?lt.formatNational().replace(/\D/g,""):""}else return et.replace(/\D/g,"")}function getCountryFromPossiblyIncompleteInternationalPhoneNumber(et,tt){var rt=new AsYouType(null,tt);return rt.input(et),rt.getCountry()}function compareStrings(et,tt,rt){return String.prototype.localeCompare?et.localeCompare(tt,rt):et<tt?-1:et>tt?1:0}function stripCountryCallingCode(et,tt,rt){if(tt){var nt="+"+getCountryCallingCode(tt,rt);if(et.length<nt.length){if(nt.indexOf(et)===0)return""}else if(et.indexOf(nt)===0)return et.slice(nt.length)}for(var lt=0,ut=Object.keys(rt.country_calling_codes);lt<ut.length;lt++){var dt=ut[lt];if(et.indexOf(dt)===1)return et.slice(1+dt.length)}return""}function getNationalSignificantNumberDigits(et,tt,rt){var nt=new AsYouType(tt,rt);nt.input(et);var lt=nt.getNumber();return lt&&lt.nationalNumber}function couldNumberBelongToCountry(et,tt,rt){for(var nt=getInternationalPhoneNumberPrefix(tt,rt),lt=0;lt<et.length&&lt<nt.length;){if(et[lt]!==nt[lt])return!1;lt++}return!0}function getInitialPhoneDigits(et){var tt=et.value,rt=et.phoneNumber,nt=et.defaultCountry,lt=et.international,ut=et.useNationalFormat,dt=et.metadata;return(lt===!1||ut)&&rt&&rt.country?generateNationalNumberDigits(rt):!tt&&lt&&nt?getInternationalPhoneNumberPrefix(nt,dt):tt}function _typeof$2(et){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$2(et)}function ownKeys$6(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$6(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$6(Object(rt),!0).forEach(function(nt){_defineProperty$5(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$6(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty$5(et,tt,rt){return tt=_toPropertyKey$1(tt),tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _toPropertyKey$1(et){var tt=_toPrimitive$1(et,"string");return _typeof$2(tt)=="symbol"?tt:tt+""}function _toPrimitive$1(et,tt){if(_typeof$2(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt||"default");if(_typeof$2(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(tt==="string"?String:Number)(et)}function getPhoneInputWithCountryStateUpdateFromNewProps(et,tt,rt){var nt=et.metadata,lt=et.countries,ut=et.defaultCountry,dt=et.value,pt=et.reset,ht=et.international,mt=et.displayInitialValueAsLocalNumber,xt=et.initialValueFormat,Mt=tt.defaultCountry,vt=tt.value,Ot=tt.reset;rt.country;var At=rt.value,Rt=rt.hasUserSelectedACountry,zt=rt.latestCountrySelectedByUser,Tt=function(Qt){return getInitialPhoneDigits(_objectSpread$6(_objectSpread$6({},Qt),{},{international:ht,useNationalFormat:mt||xt==="national",metadata:nt}))};if(pt!==Ot)return{phoneDigits:Tt({value:void 0,defaultCountry:ut}),value:void 0,country:ut,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(ut!==Mt){var Ct=!ut||isCountrySupportedWithError(ut,nt),It=!At||ht&&At===Tt({value:void 0,defaultCountry:Mt}),Dt=!dt&&It;if(!Rt&&Ct&&Dt)return{country:ut,phoneDigits:Tt({value:void 0,defaultCountry:ut}),value:void 0}}if(!valuesAreEqual(dt,vt)&&!valuesAreEqual(dt,At)){var kt,qt;if(dt){dt&&validateE164Number(dt),kt=parsePhoneNumber(dt,nt);var Nt=getSupportedCountries(lt,nt);kt&&kt.country?(!Nt||Nt.indexOf(kt.country)>=0)&&(qt=kt.country):(qt=getCountryForPartialE164Number(dt,{country:void 0,countries:Nt,metadata:nt}),qt||ut&&dt.indexOf(getInternationalPhoneNumberPrefix(ut,nt))===0&&(qt=ut))}var Yt;if(dt){if(zt){var Kt=qt?zt===qt:couldNumberBelongToCountry(dt,zt,nt);Kt?qt||(qt=zt):Yt={latestCountrySelectedByUser:void 0}}}else Yt={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return _objectSpread$6(_objectSpread$6({},Yt),{},{phoneDigits:Tt({phoneNumber:kt,value:dt,defaultCountry:ut}),value:dt,country:dt?qt:ut})}}function valuesAreEqual(et,tt){return et===null&&(et=void 0),tt===null&&(tt=void 0),et===tt}var _excluded$A=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function _typeof$1(et){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof$1(et)}function ownKeys$5(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$5(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$5(Object(rt),!0).forEach(function(nt){_defineProperty$4(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$5(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _extends$a(){return _extends$a=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$a.apply(this,arguments)}function _objectWithoutProperties$4(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$5(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$5(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function _classCallCheck$3(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,_toPropertyKey(nt.key),nt)}}function _createClass$3(et,tt,rt){return tt&&_defineProperties$1(et.prototype,tt),rt&&_defineProperties$1(et,rt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _callSuper(et,tt,rt){return tt=_getPrototypeOf$1(tt),_possibleConstructorReturn$3(et,_isNativeReflectConstruct$6()?Reflect.construct(tt,rt||[],_getPrototypeOf$1(et).constructor):tt.apply(et,rt))}function _possibleConstructorReturn$3(et,tt){if(tt&&(_typeof$1(tt)==="object"||typeof tt=="function"))return tt;if(tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$2(et)}function _assertThisInitialized$2(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}function _isNativeReflectConstruct$6(){try{var et=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$6=function(){return!!et})()}function _getPrototypeOf$1(et){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},_getPrototypeOf$1(et)}function _inherits$3(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),tt&&_setPrototypeOf(et,tt)}function _setPrototypeOf(et,tt){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,lt){return nt.__proto__=lt,nt},_setPrototypeOf(et,tt)}function _defineProperty$4(et,tt,rt){return tt=_toPropertyKey(tt),tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _toPropertyKey(et){var tt=_toPrimitive(et,"string");return _typeof$1(tt)=="symbol"?tt:tt+""}function _toPrimitive(et,tt){if(_typeof$1(et)!="object"||!et)return et;var rt=et[Symbol.toPrimitive];if(rt!==void 0){var nt=rt.call(et,tt||"default");if(_typeof$1(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(tt==="string"?String:Number)(et)}var PhoneNumberInput_=function(et){function tt(rt){var nt;_classCallCheck$3(this,tt),nt=_callSuper(this,tt,[rt]),_defineProperty$4(nt,"setInputRef",function(zt){setRefsValue([nt.props.inputRef,nt.inputRef],zt)}),_defineProperty$4(nt,"isCountrySupportedWithError",function(zt){var Tt=nt.props.metadata;return isCountrySupportedWithError(zt,Tt)}),_defineProperty$4(nt,"onCountryChange",function(zt){var Tt=nt.props,Ct=Tt.international,It=Tt.metadata,Dt=Tt.onChange,kt=Tt.focusInputOnCountrySelection,qt=nt.state,Nt=qt.phoneDigits,Yt=qt.country,Kt=getPhoneDigitsForNewCountry(Nt,{prevCountry:Yt,newCountry:zt,metadata:It,useNationalFormat:!Ct}),Jt=e164(Kt,zt,It);kt&&nt.inputRef.current.focus(),nt.setState({country:zt,latestCountrySelectedByUser:zt,hasUserSelectedACountry:!0,phoneDigits:Kt,value:Jt},function(){Dt(Jt)})}),_defineProperty$4(nt,"onChange",function(zt){var Tt=nt.props,Ct=Tt.defaultCountry,It=Tt.onChange,Dt=Tt.addInternationalOption,kt=Tt.international,qt=Tt.limitMaxLength,Nt=Tt.countryCallingCodeEditable,Yt=Tt.metadata,Kt=nt.state,Jt=Kt.countries,Qt=Kt.phoneDigits,Bt=Kt.country,Ft=Kt.latestCountrySelectedByUser,$t=onPhoneDigitsChange(zt,{prevPhoneDigits:Qt,country:Bt,countryRequired:!Dt,defaultCountry:Ct,latestCountrySelectedByUser:Ft,getAnyCountry:function(){return nt.getFirstSupportedCountry({countries:Jt})},countries:Jt,international:kt,limitMaxLength:qt,countryCallingCodeEditable:Nt,metadata:Yt}),jt=$t.phoneDigits,Wt=$t.country,Ut=$t.value,Vt={phoneDigits:jt,value:Ut,country:Wt};Ft&&Ut&&!couldNumberBelongToCountry(Ut,Ft,Yt)&&(Vt.latestCountrySelectedByUser=void 0),Nt===!1&&!Ut&&jt===nt.state.phoneDigits&&(Vt.forceRerender={}),nt.setState(Vt,function(){return It(Ut)})}),_defineProperty$4(nt,"_onFocus",function(){return nt.setState({isFocused:!0})}),_defineProperty$4(nt,"_onBlur",function(){return nt.setState({isFocused:!1})}),_defineProperty$4(nt,"onFocus",function(zt){nt._onFocus();var Tt=nt.props.onFocus;Tt&&Tt(zt)}),_defineProperty$4(nt,"onBlur",function(zt){var Tt=nt.props.onBlur;nt._onBlur(),Tt&&Tt(zt)}),_defineProperty$4(nt,"onCountryFocus",function(zt){nt._onFocus();var Tt=nt.props.countrySelectProps;if(Tt){var Ct=Tt.onFocus;Ct&&Ct(zt)}}),_defineProperty$4(nt,"onCountryBlur",function(zt){nt._onBlur();var Tt=nt.props.countrySelectProps;if(Tt){var Ct=Tt.onBlur;Ct&&Ct(zt)}}),nt.inputRef=React$4.createRef();var lt=nt.props,ut=lt.value;lt.labels;var dt=lt.international,pt=lt.addInternationalOption,ht=lt.displayInitialValueAsLocalNumber,mt=lt.initialValueFormat,xt=lt.metadata,Mt=nt.props,vt=Mt.defaultCountry,Ot=Mt.countries;vt&&(nt.isCountrySupportedWithError(vt)||(vt=void 0)),ut&&validateE164Number(ut),Ot=getSupportedCountries(Ot,xt);var At=parsePhoneNumber(ut,xt);nt.CountryIcon=createCountryIconComponent(nt.props);var Rt=getPreSelectedCountry({value:ut,phoneNumber:At,defaultCountry:vt,required:!pt,countries:Ot||getCountries(xt),getAnyCountry:function(){return nt.getFirstSupportedCountry({countries:Ot})},metadata:xt});return nt.state={props:nt.props,country:Rt,countries:Ot,phoneDigits:getInitialPhoneDigits({value:ut,phoneNumber:At,defaultCountry:vt,international:dt,useNationalFormat:ht||mt==="national",metadata:xt}),value:ut},nt}return _inherits$3(tt,et),_createClass$3(tt,[{key:"componentDidMount",value:function(){var nt=this.props.onCountryChange,lt=this.props.defaultCountry,ut=this.state.country;nt&&(lt&&(this.isCountrySupportedWithError(lt)||(lt=void 0)),ut!==lt&&nt(ut))}},{key:"componentDidUpdate",value:function(nt,lt){var ut=this.props.onCountryChange,dt=this.state.country;ut&&dt!==lt.country&&ut(dt)}},{key:"getCountrySelectOptions",value:function(nt){var lt=nt.countries,ut=this.props,dt=ut.international,pt=ut.countryCallingCodeEditable,ht=ut.countryOptionsOrder,mt=ut.addInternationalOption,xt=ut.labels,Mt=ut.locales,vt=ut.metadata;return this.useMemoCountrySelectOptions(function(){return sortCountryOptions(getCountrySelectOptions({countries:lt||getCountries(vt),countryNames:xt,addInternationalOption:dt&&pt===!1?!1:mt,compareStringsLocales:Mt}),getSupportedCountryOptions(ht,vt))},[lt,ht,mt,xt,vt])}},{key:"useMemoCountrySelectOptions",value:function(nt,lt){return(!this.countrySelectOptionsMemoDependencies||!areEqualArrays(lt,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=nt(),this.countrySelectOptionsMemoDependencies=lt),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(nt){var lt=nt.countries,ut=this.getCountrySelectOptions({countries:lt});return ut[0].value}},{key:"render",value:function(){var nt=this.props,lt=nt.name,ut=nt.disabled,dt=nt.readOnly,pt=nt.autoComplete,ht=nt.style,mt=nt.className;nt.inputRef;var xt=nt.inputComponent,Mt=nt.numberInputProps,vt=nt.smartCaret,Ot=nt.countrySelectComponent,At=nt.countrySelectProps,Rt=nt.containerComponent,zt=nt.containerComponentProps;nt.defaultCountry,nt.countries,nt.countryOptionsOrder;var Tt=nt.labels;nt.flags,nt.flagComponent,nt.flagUrl,nt.addInternationalOption,nt.internationalIcon,nt.displayInitialValueAsLocalNumber,nt.initialValueFormat,nt.onCountryChange,nt.limitMaxLength,nt.countryCallingCodeEditable,nt.focusInputOnCountrySelection,nt.reset;var Ct=nt.metadata,It=nt.international;nt.locales;var Dt=_objectWithoutProperties$4(nt,_excluded$A),kt=this.state,qt=kt.country,Nt=kt.countries,Yt=kt.phoneDigits,Kt=kt.isFocused,Jt=vt?InputSmart:InputBasic,Qt=this.getCountrySelectOptions({countries:Nt});return React$4.createElement(Rt,_extends$a({style:ht,className:classNames$1(mt,"PhoneInput",{"PhoneInput--focus":Kt,"PhoneInput--disabled":ut,"PhoneInput--readOnly":dt})},zt),React$4.createElement(Ot,_extends$a({name:lt?"".concat(lt,"Country"):void 0,"aria-label":Tt.country},At,{value:qt,options:Qt,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:ut||At&&At.disabled,readOnly:dt||At&&At.readOnly,iconComponent:this.CountryIcon})),React$4.createElement(Jt,_extends$a({ref:this.setInputRef,type:"tel",autoComplete:pt},Mt,Dt,{international:It?!0:void 0,withCountryCallingCode:It?!0:void 0,name:lt,metadata:Ct,country:qt,value:Yt||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:ut,readOnly:dt,inputComponent:xt,className:classNames$1("PhoneInputInput",Mt&&Mt.className,Dt.className)})))}}],[{key:"getDerivedStateFromProps",value:function(nt,lt){return _objectSpread$5({props:nt},getPhoneInputWithCountryStateUpdateFromNewProps(nt,lt.props,lt))}}])}(React$4.PureComponent),PhoneNumberInput=React$4.forwardRef(function(et,tt){return React$4.createElement(PhoneNumberInput_,_extends$a({},withDefaultProps(et),{inputRef:tt}))});PhoneNumberInput.propTypes={value:PropTypes.string,onChange:PropTypes.func.isRequired,onFocus:PropTypes.func,onBlur:PropTypes.func,disabled:PropTypes.bool,readOnly:PropTypes.bool,autoComplete:PropTypes.string,initialValueFormat:PropTypes.oneOf(["national"]),displayInitialValueAsLocalNumber:PropTypes.bool,defaultCountry:PropTypes.string,countries:PropTypes.arrayOf(PropTypes.string),labels,locales:PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),flagUrl:PropTypes.string,flags:PropTypes.objectOf(PropTypes.elementType),flagComponent:PropTypes.elementType,addInternationalOption:PropTypes.bool,internationalIcon:PropTypes.elementType,countryOptionsOrder:PropTypes.arrayOf(PropTypes.string),style:PropTypes.object,className:PropTypes.string,countrySelectComponent:PropTypes.elementType,countrySelectProps:PropTypes.object,inputComponent:PropTypes.elementType,numberInputProps:PropTypes.object,containerComponent:PropTypes.elementType,containerComponentProps:PropTypes.object,smartCaret:PropTypes.bool,international:PropTypes.bool,limitMaxLength:PropTypes.bool,countryCallingCodeEditable:PropTypes.bool,metadata,onCountryChange:PropTypes.func,focusInputOnCountrySelection:PropTypes.bool};var defaultProps$5={autoComplete:"tel",countrySelectComponent:CountrySelectWithIcon,flagComponent:FlagComponent,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:InternationalIcon,inputComponent:"input",containerComponent:"div",reset:PropTypes.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function withDefaultProps(et){et=_objectSpread$5({},et);for(var tt in defaultProps$5)et[tt]===void 0&&(et[tt]=defaultProps$5[tt]);return et}function areEqualArrays(et,tt){if(et.length!==tt.length)return!1;for(var rt=0;rt<et.length;){if(et[rt]!==tt[rt])return!1;rt++}return!0}function _typeof(et){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tt){return typeof tt}:function(tt){return tt&&typeof Symbol=="function"&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt},_typeof(et)}function formatPhoneNumber$1(et,tt,rt){if(rt||_typeof(tt)==="object"&&(rt=tt,tt="NATIONAL"),!et)return"";var nt=parsePhoneNumber$1(et,rt);if(!nt)return"";switch(tt){case"National":tt="NATIONAL";break;case"International":tt="INTERNATIONAL";break}return nt.format(tt)}const defaultLabels={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var _excluded$z=["metadata","labels"];function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$9.apply(this,arguments)}function _objectWithoutProperties$3(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose$4(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose$4(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function createPhoneInput(et){var tt=React$4.forwardRef(function(rt,nt){var lt=rt.metadata,ut=lt===void 0?et:lt,dt=rt.labels,pt=dt===void 0?defaultLabels:dt,ht=_objectWithoutProperties$3(rt,_excluded$z);return React$4.createElement(PhoneNumberInput,_extends$9({},ht,{ref:nt,metadata:ut,labels:pt}))});return tt.propTypes={metadata,labels},tt}createPhoneInput();function call(et,tt){var rt=Array.prototype.slice.call(tt);return rt.push(metadata$1),et.apply(this,rt)}createPhoneInput(metadata$1);function formatPhoneNumber(){return call(formatPhoneNumber$1,arguments)}const stockImageF="/media/content/assets/stockImageF-CMqmXLCO.png",stockImageM="/media/content/assets/stockImageM-Dag8ImND.png",getFormStatus=(et,tt)=>{let rt="";switch(et){case FormStatus.REG_SUBMITTED:if(tt==="patient"){rt="Completed";break}rt=isUs()?"Submitted":"Submitted to MQ";break;case FormStatus.REG_REVIEW_REQUIRED:if(tt==="patient"){rt="Completed";break}rt="Review required";break;case FormStatus.IN_PROGRESS:rt="In progress";break;case FormStatus.IN_PROGRESS_AMENDED:rt="In progress (Amendment)";break;case FormStatus.CREATED:rt="Not started";break;default:if(tt==="patient"){rt="Not started";break}rt="";break}return rt},patientGenderStockImage=et=>et===Gender.MALE||et==1?stockImageM:et===Gender.FEMALE||et==2?stockImageF:!1,genderTitle=et=>et===Gender.MALE?"(M)":et===Gender.FEMALE?"(F)":"",formatMyPhoneNumber=(et,tt)=>{const rt={[Region.AU]:"+61",[Region.UK]:"+44",[Region.US]:"+1"};return et.startsWith(rt[tt])||(et=rt[tt].concat(et)),formatPhoneNumber(et)},registrationAttachments=et=>et==null?void 0:et.filter(tt=>tt.isRegistrationAttachment),resolveListDataValue=(et,tt)=>{const rt=tt.find(nt=>nt.id===et);return rt?rt.name:et},INVALID_SECTIONS$1={BASIC:"basicDetails",CONTACT:"contactDetails",ADDRESS:"address",ALT_CONTACT:"alternateContact",UK_ALT_CONTACT:"altContactInfo",GP:"gpInformation",UK_GP:"gpInfo",MEDICARE:"medicare",DEMOGRAPHICS:"demographics",UK_DEMOGRAPHICS:"ukDemographics",INFORMATION_NOTICE:"informationNotice",PREFERENCES:"preferences",INSURANCE:"insurance",CLINIC:"clinic",CLINIC_PAYOR:"clinicPayor",PATIENT:"patient",REFERRAL:"referral",APPOINTMENT:"appointment",ATTACHMENTS:"attachments"},MEDICARE_TYPES={MEDICARE:"healthFundMedicare",MEDICARE_DVA:"healthFundMedicareDVA",NONE:"healthFundNone"};var validate$1={exports:{}};/*!
 * validate.js 0.13.1
 *
 * (c) 2013-2019 Nicklas Ansman, 2013 Wrapp
 * Validate.js may be freely distributed under the MIT license.
 * For all details and documentation:
 * http://validatejs.org/
 */(function(et,tt){(function(rt,nt,lt){var ut=function(pt,ht,mt){mt=dt.extend({},dt.options,mt);var xt=dt.runValidations(pt,ht,mt);if(xt.some(function(Mt){return dt.isPromise(Mt.error)}))throw new Error("Use validate.async if you want support for promises");return ut.processValidationResults(xt,mt)},dt=ut;dt.extend=function(pt){return[].slice.call(arguments,1).forEach(function(ht){for(var mt in ht)pt[mt]=ht[mt]}),pt},dt.extend(ut,{version:{major:0,minor:13,patch:1,metadata:null,toString:function(){var pt=dt.format("%{major}.%{minor}.%{patch}",dt.version);return dt.isEmpty(dt.version.metadata)||(pt+="+"+dt.version.metadata),pt}},Promise:typeof Promise<"u"?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(pt,ht,mt){var xt=[],Mt,vt,Ot,At,Rt,zt,Tt;(dt.isDomElement(pt)||dt.isJqueryElement(pt))&&(pt=dt.collectFormValues(pt));for(Mt in ht){Ot=dt.getDeepObjectValue(pt,Mt),At=dt.result(ht[Mt],Ot,pt,Mt,mt,ht);for(vt in At){if(Rt=dt.validators[vt],!Rt)throw Tt=dt.format("Unknown validator %{name}",{name:vt}),new Error(Tt);zt=At[vt],zt=dt.result(zt,Ot,pt,Mt,mt,ht),zt&&xt.push({attribute:Mt,value:Ot,validator:vt,globalOptions:mt,attributes:pt,options:zt,error:Rt.call(Rt,Ot,zt,Mt,pt,mt)})}}return xt},processValidationResults:function(pt,ht){pt=dt.pruneEmptyErrors(pt,ht),pt=dt.expandMultipleErrors(pt,ht),pt=dt.convertErrorMessages(pt,ht);var mt=ht.format||"grouped";if(typeof dt.formatters[mt]=="function")pt=dt.formatters[mt](pt);else throw new Error(dt.format("Unknown format %{format}",ht));return dt.isEmpty(pt)?void 0:pt},async:function(pt,ht,mt){mt=dt.extend({},dt.async.options,mt);var xt=mt.wrapErrors||function(vt){return vt};mt.cleanAttributes!==!1&&(pt=dt.cleanAttributes(pt,ht));var Mt=dt.runValidations(pt,ht,mt);return new dt.Promise(function(vt,Ot){dt.waitForResults(Mt).then(function(){var At=dt.processValidationResults(Mt,mt);At?Ot(new xt(At,mt,pt,ht)):vt(pt)},function(At){Ot(At)})})},single:function(pt,ht,mt){return mt=dt.extend({},dt.single.options,mt,{format:"flat",fullMessages:!1}),dt({single:pt},{single:ht},mt)},waitForResults:function(pt){return pt.reduce(function(ht,mt){return dt.isPromise(mt.error)?ht.then(function(){return mt.error.then(function(xt){mt.error=xt||null})}):ht},new dt.Promise(function(ht){ht()}))},result:function(pt){var ht=[].slice.call(arguments,1);return typeof pt=="function"&&(pt=pt.apply(null,ht)),pt},isNumber:function(pt){return typeof pt=="number"&&!isNaN(pt)},isFunction:function(pt){return typeof pt=="function"},isInteger:function(pt){return dt.isNumber(pt)&&pt%1===0},isBoolean:function(pt){return typeof pt=="boolean"},isObject:function(pt){return pt===Object(pt)},isDate:function(pt){return pt instanceof Date},isDefined:function(pt){return pt!=null},isPromise:function(pt){return!!pt&&dt.isFunction(pt.then)},isJqueryElement:function(pt){return pt&&dt.isString(pt.jquery)},isDomElement:function(pt){return!pt||!pt.querySelectorAll||!pt.querySelector?!1:dt.isObject(document)&&pt===document?!0:typeof HTMLElement=="object"?pt instanceof HTMLElement:pt&&typeof pt=="object"&&pt!==null&&pt.nodeType===1&&typeof pt.nodeName=="string"},isEmpty:function(pt){var ht;if(!dt.isDefined(pt))return!0;if(dt.isFunction(pt))return!1;if(dt.isString(pt))return dt.EMPTY_STRING_REGEXP.test(pt);if(dt.isArray(pt))return pt.length===0;if(dt.isDate(pt))return!1;if(dt.isObject(pt)){for(ht in pt)return!1;return!0}return!1},format:dt.extend(function(pt,ht){return dt.isString(pt)?pt.replace(dt.format.FORMAT_REGEXP,function(mt,xt,Mt){return xt==="%"?"%{"+Mt+"}":String(ht[Mt])}):pt},{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(pt){return dt.isNumber(pt)?pt*100%1===0?""+pt:parseFloat(Math.round(pt*100)/100).toFixed(2):dt.isArray(pt)?pt.map(function(ht){return dt.prettify(ht)}).join(", "):dt.isObject(pt)?dt.isDefined(pt.toString)?pt.toString():JSON.stringify(pt):(pt=""+pt,pt.replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,function(ht,mt,xt){return""+mt+" "+xt.toLowerCase()}).toLowerCase())},stringifyValue:function(pt,ht){var mt=ht&&ht.prettify||dt.prettify;return mt(pt)},isString:function(pt){return typeof pt=="string"},isArray:function(pt){return{}.toString.call(pt)==="[object Array]"},isHash:function(pt){return dt.isObject(pt)&&!dt.isArray(pt)&&!dt.isFunction(pt)},contains:function(pt,ht){return dt.isDefined(pt)?dt.isArray(pt)?pt.indexOf(ht)!==-1:ht in pt:!1},unique:function(pt){return dt.isArray(pt)?pt.filter(function(ht,mt,xt){return xt.indexOf(ht)==mt}):pt},forEachKeyInKeypath:function(pt,ht,mt){if(dt.isString(ht)){var xt="",Mt,vt=!1;for(Mt=0;Mt<ht.length;++Mt)switch(ht[Mt]){case".":vt?(vt=!1,xt+="."):(pt=mt(pt,xt,!1),xt="");break;case"\\":vt?(vt=!1,xt+="\\"):vt=!0;break;default:vt=!1,xt+=ht[Mt];break}return mt(pt,xt,!0)}},getDeepObjectValue:function(pt,ht){if(dt.isObject(pt))return dt.forEachKeyInKeypath(pt,ht,function(mt,xt){if(dt.isObject(mt))return mt[xt]})},collectFormValues:function(pt,ht){var mt={},xt,Mt,vt,Ot,At,Rt;if(dt.isJqueryElement(pt)&&(pt=pt[0]),!pt)return mt;for(ht=ht||{},Ot=pt.querySelectorAll("input[name], textarea[name]"),xt=0;xt<Ot.length;++xt)if(vt=Ot.item(xt),!dt.isDefined(vt.getAttribute("data-ignored"))){var zt=vt.name.replace(/\./g,"\\\\.");Rt=dt.sanitizeFormValue(vt.value,ht),vt.type==="number"?Rt=Rt?+Rt:null:vt.type==="checkbox"?vt.attributes.value?vt.checked||(Rt=mt[zt]||null):Rt=vt.checked:vt.type==="radio"&&(vt.checked||(Rt=mt[zt]||null)),mt[zt]=Rt}for(Ot=pt.querySelectorAll("select[name]"),xt=0;xt<Ot.length;++xt)if(vt=Ot.item(xt),!dt.isDefined(vt.getAttribute("data-ignored"))){if(vt.multiple){Rt=[];for(Mt in vt.options)At=vt.options[Mt],At&&At.selected&&Rt.push(dt.sanitizeFormValue(At.value,ht))}else{var Tt=typeof vt.options[vt.selectedIndex]<"u"?vt.options[vt.selectedIndex].value:"";Rt=dt.sanitizeFormValue(Tt,ht)}mt[vt.name]=Rt}return mt},sanitizeFormValue:function(pt,ht){return ht.trim&&dt.isString(pt)&&(pt=pt.trim()),ht.nullify!==!1&&pt===""?null:pt},capitalize:function(pt){return dt.isString(pt)?pt[0].toUpperCase()+pt.slice(1):pt},pruneEmptyErrors:function(pt){return pt.filter(function(ht){return!dt.isEmpty(ht.error)})},expandMultipleErrors:function(pt){var ht=[];return pt.forEach(function(mt){dt.isArray(mt.error)?mt.error.forEach(function(xt){ht.push(dt.extend({},mt,{error:xt}))}):ht.push(mt)}),ht},convertErrorMessages:function(pt,ht){ht=ht||{};var mt=[],xt=ht.prettify||dt.prettify;return pt.forEach(function(Mt){var vt=dt.result(Mt.error,Mt.value,Mt.attribute,Mt.options,Mt.attributes,Mt.globalOptions);if(!dt.isString(vt)){mt.push(Mt);return}vt[0]==="^"?vt=vt.slice(1):ht.fullMessages!==!1&&(vt=dt.capitalize(xt(Mt.attribute))+" "+vt),vt=vt.replace(/\\\^/g,"^"),vt=dt.format(vt,{value:dt.stringifyValue(Mt.value,ht)}),mt.push(dt.extend({},Mt,{error:vt}))}),mt},groupErrorsByAttribute:function(pt){var ht={};return pt.forEach(function(mt){var xt=ht[mt.attribute];xt?xt.push(mt):ht[mt.attribute]=[mt]}),ht},flattenErrorsToArray:function(pt){return pt.map(function(ht){return ht.error}).filter(function(ht,mt,xt){return xt.indexOf(ht)===mt})},cleanAttributes:function(pt,ht){function mt(vt,Ot,At){return dt.isObject(vt[Ot])?vt[Ot]:vt[Ot]=At?!0:{}}function xt(vt){var Ot={},At;for(At in vt)vt[At]&&dt.forEachKeyInKeypath(Ot,At,mt);return Ot}function Mt(vt,Ot){if(!dt.isObject(vt))return vt;var At=dt.extend({},vt),Rt,zt;for(zt in vt)Rt=Ot[zt],dt.isObject(Rt)?At[zt]=Mt(At[zt],Rt):Rt||delete At[zt];return At}return!dt.isObject(ht)||!dt.isObject(pt)?{}:(ht=xt(ht),Mt(pt,ht))},exposeModule:function(pt,ht,mt,xt,Mt){mt?(xt&&xt.exports&&(mt=xt.exports=pt),mt.validate=pt):(ht.validate=pt,pt.isFunction(Mt)&&Mt.amd&&Mt([],function(){return pt}))},warn:function(pt){typeof console<"u"&&console.warn&&console.warn("[validate.js] "+pt)},error:function(pt){typeof console<"u"&&console.error&&console.error("[validate.js] "+pt)}}),ut.validators={presence:function(pt,ht){if(ht=dt.extend({},this.options,ht),ht.allowEmpty!==!1?!dt.isDefined(pt):dt.isEmpty(pt))return ht.message||this.message||"can't be blank"},length:function(pt,ht,mt){if(dt.isDefined(pt)){ht=dt.extend({},this.options,ht);var xt=ht.is,Mt=ht.maximum,vt=ht.minimum,Ot=ht.tokenizer||function(Tt){return Tt},At,Rt=[];pt=Ot(pt);var zt=pt.length;if(!dt.isNumber(zt))return ht.message||this.notValid||"has an incorrect length";if(dt.isNumber(xt)&&zt!==xt&&(At=ht.wrongLength||this.wrongLength||"is the wrong length (should be %{count} characters)",Rt.push(dt.format(At,{count:xt}))),dt.isNumber(vt)&&zt<vt&&(At=ht.tooShort||this.tooShort||"is too short (minimum is %{count} characters)",Rt.push(dt.format(At,{count:vt}))),dt.isNumber(Mt)&&zt>Mt&&(At=ht.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",Rt.push(dt.format(At,{count:Mt}))),Rt.length>0)return ht.message||Rt}},numericality:function(pt,ht,mt,xt,Mt){if(dt.isDefined(pt)){ht=dt.extend({},this.options,ht);var vt=[],Ot,At,Rt={greaterThan:function(Dt,kt){return Dt>kt},greaterThanOrEqualTo:function(Dt,kt){return Dt>=kt},equalTo:function(Dt,kt){return Dt===kt},lessThan:function(Dt,kt){return Dt<kt},lessThanOrEqualTo:function(Dt,kt){return Dt<=kt},divisibleBy:function(Dt,kt){return Dt%kt===0}},zt=ht.prettify||Mt&&Mt.prettify||dt.prettify;if(dt.isString(pt)&&ht.strict){var Tt="^-?(0|[1-9]\\d*)";if(ht.onlyInteger||(Tt+="(\\.\\d+)?"),Tt+="$",!new RegExp(Tt).test(pt))return ht.message||ht.notValid||this.notValid||this.message||"must be a valid number"}if(ht.noStrings!==!0&&dt.isString(pt)&&!dt.isEmpty(pt)&&(pt=+pt),!dt.isNumber(pt))return ht.message||ht.notValid||this.notValid||this.message||"is not a number";if(ht.onlyInteger&&!dt.isInteger(pt))return ht.message||ht.notInteger||this.notInteger||this.message||"must be an integer";for(Ot in Rt)if(At=ht[Ot],dt.isNumber(At)&&!Rt[Ot](pt,At)){var Ct="not"+dt.capitalize(Ot),It=ht[Ct]||this[Ct]||this.message||"must be %{type} %{count}";vt.push(dt.format(It,{count:At,type:zt(Ot)}))}if(ht.odd&&pt%2!==1&&vt.push(ht.notOdd||this.notOdd||this.message||"must be odd"),ht.even&&pt%2!==0&&vt.push(ht.notEven||this.notEven||this.message||"must be even"),vt.length)return ht.message||vt}},datetime:dt.extend(function(pt,ht){if(!dt.isFunction(this.parse)||!dt.isFunction(this.format))throw new Error("Both the parse and format functions needs to be set to use the datetime/date validator");if(dt.isDefined(pt)){ht=dt.extend({},this.options,ht);var mt,xt=[],Mt=ht.earliest?this.parse(ht.earliest,ht):NaN,vt=ht.latest?this.parse(ht.latest,ht):NaN;if(pt=this.parse(pt,ht),isNaN(pt)||ht.dateOnly&&pt%864e5!==0)return mt=ht.notValid||ht.message||this.notValid||"must be a valid date",dt.format(mt,{value:arguments[0]});if(!isNaN(Mt)&&pt<Mt&&(mt=ht.tooEarly||ht.message||this.tooEarly||"must be no earlier than %{date}",mt=dt.format(mt,{value:this.format(pt,ht),date:this.format(Mt,ht)}),xt.push(mt)),!isNaN(vt)&&pt>vt&&(mt=ht.tooLate||ht.message||this.tooLate||"must be no later than %{date}",mt=dt.format(mt,{date:this.format(vt,ht),value:this.format(pt,ht)}),xt.push(mt)),xt.length)return dt.unique(xt)}},{parse:null,format:null}),date:function(pt,ht){return ht=dt.extend({},ht,{dateOnly:!0}),dt.validators.datetime.call(dt.validators.datetime,pt,ht)},format:function(pt,ht){(dt.isString(ht)||ht instanceof RegExp)&&(ht={pattern:ht}),ht=dt.extend({},this.options,ht);var mt=ht.message||this.message||"is invalid",xt=ht.pattern,Mt;if(dt.isDefined(pt)&&(!dt.isString(pt)||(dt.isString(xt)&&(xt=new RegExp(ht.pattern,ht.flags)),Mt=xt.exec(pt),!Mt||Mt[0].length!=pt.length)))return mt},inclusion:function(pt,ht){if(dt.isDefined(pt)&&(dt.isArray(ht)&&(ht={within:ht}),ht=dt.extend({},this.options,ht),!dt.contains(ht.within,pt))){var mt=ht.message||this.message||"^%{value} is not included in the list";return dt.format(mt,{value:pt})}},exclusion:function(pt,ht){if(dt.isDefined(pt)&&(dt.isArray(ht)&&(ht={within:ht}),ht=dt.extend({},this.options,ht),!!dt.contains(ht.within,pt))){var mt=ht.message||this.message||"^%{value} is restricted";return dt.isString(ht.within[pt])&&(pt=ht.within[pt]),dt.format(mt,{value:pt})}},email:dt.extend(function(pt,ht){ht=dt.extend({},this.options,ht);var mt=ht.message||this.message||"is not a valid email";if(dt.isDefined(pt)&&(!dt.isString(pt)||!this.PATTERN.exec(pt)))return mt},{PATTERN:/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?: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]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i}),equality:function(pt,ht,mt,xt,Mt){if(dt.isDefined(pt)){dt.isString(ht)&&(ht={attribute:ht}),ht=dt.extend({},this.options,ht);var vt=ht.message||this.message||"is not equal to %{attribute}";if(dt.isEmpty(ht.attribute)||!dt.isString(ht.attribute))throw new Error("The attribute must be a non empty string");var Ot=dt.getDeepObjectValue(xt,ht.attribute),At=ht.comparator||function(zt,Tt){return zt===Tt},Rt=ht.prettify||Mt&&Mt.prettify||dt.prettify;if(!At(pt,Ot,ht,mt,xt))return dt.format(vt,{attribute:Rt(ht.attribute)})}},url:function(pt,ht){if(dt.isDefined(pt)){ht=dt.extend({},this.options,ht);var mt=ht.message||this.message||"is not a valid url",xt=ht.schemes||this.schemes||["http","https"],Mt=ht.allowLocal||this.allowLocal||!1,vt=ht.allowDataUrl||this.allowDataUrl||!1;if(!dt.isString(pt))return mt;var Ot="^(?:(?:"+xt.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",At="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(Mt?At+="?":Ot+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",Ot+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+At+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",vt){var Rt="\\w+\\/[-+.\\w]+(?:;[\\w=]+)*",zt="[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*",Tt="data:(?:"+Rt+")?(?:;base64)?,"+zt;Ot="(?:"+Ot+")|(?:^"+Tt+"$)"}var Ct=new RegExp(Ot,"i");if(!Ct.exec(pt))return mt}},type:dt.extend(function(pt,ht,mt,xt,Mt){if(dt.isString(ht)&&(ht={type:ht}),!!dt.isDefined(pt)){var vt=dt.extend({},this.options,ht),Ot=vt.type;if(!dt.isDefined(Ot))throw new Error("No type was specified");var At;if(dt.isFunction(Ot)?At=Ot:At=this.types[Ot],!dt.isFunction(At))throw new Error("validate.validators.type.types."+Ot+" must be a function.");if(!At(pt,vt,mt,xt,Mt)){var Rt=ht.message||this.messages[Ot]||this.message||vt.message||(dt.isFunction(Ot)?"must be of the correct type":"must be of type %{type}");return dt.isFunction(Rt)&&(Rt=Rt(pt,ht,mt,xt,Mt)),dt.format(Rt,{attribute:dt.prettify(mt),type:Ot})}}},{types:{object:function(pt){return dt.isObject(pt)&&!dt.isArray(pt)},array:dt.isArray,integer:dt.isInteger,number:dt.isNumber,string:dt.isString,date:dt.isDate,boolean:dt.isBoolean},messages:{}})},ut.formatters={detailed:function(pt){return pt},flat:dt.flattenErrorsToArray,grouped:function(pt){var ht;pt=dt.groupErrorsByAttribute(pt);for(ht in pt)pt[ht]=dt.flattenErrorsToArray(pt[ht]);return pt},constraint:function(pt){var ht;pt=dt.groupErrorsByAttribute(pt);for(ht in pt)pt[ht]=pt[ht].map(function(mt){return mt.validator}).sort();return pt}},ut.exposeModule(ut,this,rt,nt,lt)}).call(commonjsGlobal$1,tt,et,null)})(validate$1,validate$1.exports);var validateExports=validate$1.exports;const validate=getDefaultExportFromCjs$1(validateExports),logger$R=new Logger("Validate");validate.validators.list=function(et,tt){return et===""||et===null?null:tt.listdata.find(lt=>lt.id===et)===void 0?tt.message:null};validate.validators.medicareNumber=function(et,tt){if(et==="")return null;let rt=!1,nt=et;if(nt=nt.replace(/ /g,""),!nt.match(/^(\d)*$/))return tt.message;if(nt&&nt.length===10){const lt=nt.match(/^(\d{8})(\d)/);if(!lt)return tt.message;const ut=lt[1],dt=lt[2],pt=[1,3,7,9,1,3,7,9];let ht=0;for(let mt=0;mt<pt.length;mt++)ht+=parseInt(ut[mt],10)*pt[mt];rt=ht%10===parseInt(dt,10)}return rt?null:tt.message};validate.validators.patientDobRaw=function(et,tt){const rt=hooks(et,"DDMMYYYY");return et?et.length!==8?tt.message:rt.isValid()?rt.isAfter(hooks())?tt.afterMessage:null:tt.message:null};validate.validators.cardExpiryMMYYYY=function(et,tt){if(et){if(tt.inputDateformat===void 0&&logger$R.error('No inputFormat provided. Please provide it in the options, e.g. inputDateFormat "MMYYYY"'),!et.match(/^(\d|\-)*$/)||et.length!==tt.inputDateformat.length)return tt.message;const rt=hooks(et,tt.inputDateformat);if(rt.isValid()){const nt=hooks().subtract("1","months").endOf("month");return hooks(rt).isSameOrBefore(nt)?tt.message:null}else return tt.message}return null};validate.validators.futureDateDDMMYYYY=function(et,tt){if(et){if(tt.inputDateformat===void 0&&logger$R.error('No inputFormat provided. Please provide it in the options, e.g. inputDateFormat "MMYYYY"'),et.length!==tt.inputDateformat.length)return tt.message;const rt=hooks(et,tt.inputDateformat);if(rt.isValid()){const nt=hooks();return hooks(rt).isAfter(nt)?tt.message:null}else return tt.message}return tt.message};validate.validators.futureDateMMYYYY=function(et,tt){if(et){if(tt.inputDateformat===void 0&&logger$R.error('No inputFormat provided. Please provide it in the options, e.g. inputDateFormat "MMYYYY"'),logger$R.info("asd"),!et.match(/^(\d)*$/)||et.length!==tt.inputDateformat.length)return tt.message;const rt=hooks(et,tt.inputDateformat);if(rt.isValid()){const nt=hooks().add("1","months").startOf("month");return hooks(rt).isSameOrAfter(nt)?tt.message:null}else return tt.message}return null};validate.validators.numeric=function(et,tt){if(et){const rt=parseInt(et);if(isNaN(rt)||tt.greaterThan!==void 0&&rt<=tt.greaterThan||tt.lessThan!==void 0&&rt>=tt.lessThan)return tt.message}return null};var ValidationKeys$1=(et=>(et[et.All=0]="All",et[et.Basic=1]="Basic",et[et.Contact=2]="Contact",et[et.Address=3]="Address",et[et.AltContact=4]="AltContact",et[et.GpInfo=5]="GpInfo",et[et.Medicare=6]="Medicare",et[et.Demographics=7]="Demographics",et[et.Mosaiq=8]="Mosaiq",et[et.MosaiqPatient=9]="MosaiqPatient",et[et.ContactPXSignUp=10]="ContactPXSignUp",et[et.HomeRegSignup=11]="HomeRegSignup",et[et.Quarantini=12]="Quarantini",et))(ValidationKeys$1||{});const VALIDATION_MESSAGE_TYPE$1={INVALID:"INVALID_DATA",MISSING:"MISSING_DATA"},options={fullMessages:!1},_FIRST_NAME_RULE={presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},_LAST_NAME_RULE={presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},_DOB_RAW_RULE={presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},patientDobRaw:{message:VALIDATION_MESSAGE_TYPE$1.INVALID,afterMessage:VALIDATION_MESSAGE_TYPE$1.INVALID}},_GENDER_RULE={presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},_ATTACHMENT_ACKNOWLEDGED_RULE={attachmentAcknowledged:{inclusion:{within:[!0],message:VALIDATION_MESSAGE_TYPE$1.MISSING}}},BASIC_RULES={namePrefix:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},firstName:_FIRST_NAME_RULE,lastName:_LAST_NAME_RULE,middleName:{presence:{allowEmpty:!0},format:{pattern:NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},preferredName:{presence:{allowEmpty:!0},format:{pattern:NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},gender:_GENDER_RULE,dobRaw:_DOB_RAW_RULE},MOSAIQ_MINIMUM_REQUIREMENT_RULES={firstName:_FIRST_NAME_RULE,lastName:_LAST_NAME_RULE,dobRaw:_DOB_RAW_RULE,gender:_GENDER_RULE};function isIsBn(et){if(et==="")return!0;if(typeof et=="string"){const tt=[],rt=et.replace(/ /g,"");for(let ut=0;ut<9;ut++)tt.push(parseInt(rt[ut])*[ut+1]);return tt.reduce((ut,dt)=>ut+dt,0)%11===parseInt(rt[9])}}function isAbove18(et){return new Date(parseInt(et.slice(0,4))+18,parseInt(et.slice(5,7))-1,parseInt(et.slice(8,10)))<=new Date}function isLessThen120(et){return new Date(parseInt(et.slice(0,4))+120,parseInt(et.slice(5,7))-1,parseInt(et.slice(8,10)))>=new Date}const getUKBasicRules=et=>{const tt=isIsBn(et.idb);let rt;return et.dob?rt=isAbove18(et.dob)?isLessThen120(et.dob):!1:rt=!0,{namePrefix:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},firstName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:UK_NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},middleName:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:et.middleName?UK_NAME_REGEX:".*",message:VALIDATION_MESSAGE_TYPE$1.INVALID}},lastName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:UK_NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},dobRaw:{presence:{allowEmpty:!1,message:"Please complete date of birth."},format:{pattern:rt?".*":"ERROR",message:"Please enter valid date of birth."}},gender:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},primaryCenter:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},idb:{presence:{allowEmpty:!!et.nhsOptions},format:!tt||et.idbConflict?{pattern:"'a^'",message:"This is not a valid NHS number"}:void 0},nhsOptions:{presence:{allowEmpty:!!et.idb,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},registrationReason:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},registrationReasonText:{presence:{allowEmpty:et.registrationReason!=="Other",message:VALIDATION_MESSAGE_TYPE$1.MISSING}}}},getUKContactRules=(et,tt,rt)=>({primaryPhone:{presence:{allowEmpty:!!et.secondaryPhone,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:et.primaryPhone?tt:".*",message:VALIDATION_MESSAGE_TYPE$1.INVALID}},secondaryPhone:{presence:{allowEmpty:!!et.primaryPhone,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:et.secondaryPhone?tt:".*",message:VALIDATION_MESSAGE_TYPE$1.INVALID}},email:{presence:{allowEmpty:rt,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:EMAIL_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}),getQuarantiniPatient=et=>{const tt=isIsBn(et.idb);let rt;return et.dob?rt=isAbove18(et.dob):rt=!0,{namePrefix:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},firstName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:UK_NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},middleName:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:UK_NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},lastName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:UK_NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},previousName:{presence:{allowEmpty:!0},format:{pattern:UK_NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},gender:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},dob:{presence:{allowEmpty:!1,message:"Please complete date of birth"},format:{pattern:rt?".*":"ERROR",message:"Patient is under 18"}},idb:{presence:{allowEmpty:!0},format:!tt||et.idbConflict?{pattern:"'a^'",message:"This is not a valid NHS number"}:void 0},primaryPhone:{presence:{allowEmpty:!!et.secondaryPhone,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:et.primaryPhone?UK_PHONE_REGEX:".*",message:VALIDATION_MESSAGE_TYPE$1.INVALID}},secondaryPhone:{presence:{allowEmpty:!!et.primaryPhone,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:et.secondaryPhone?UK_PHONE_REGEX:".*",message:VALIDATION_MESSAGE_TYPE$1.INVALID}},email:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:EMAIL_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}},CLINIC_RULES={clinicType:{presence:{allowEmpty:!1,message:"Please select clinic type"}},primaryCenter:{presence:{allowEmpty:!1,message:"Please select a GenesisCare centre"}},caller:{presence:{allowEmpty:!1,message:"Please select caller"}},enquirySource:{presence:{allowEmpty:!1,message:"Please select enquiry source"}}},getClinicPayorRules=et=>{let tt=et.isSymptomatic===!1;return et.selfPaid&&(tt=!0),{payor:{presence:{allowEmpty:et.isSymptomatic===!1,message:"Please select payor"}},coverageRelationship:{presence:{allowEmpty:tt,message:"Please select relationship to policy holder"}},policyNumber:{presence:{allowEmpty:tt,message:"Please enter policy number"}},preAuthNumber:{presence:{allowEmpty:!0}}}},getContactRules=(et,tt,rt)=>({primaryPhone:{presence:{allowEmpty:!!et.secondaryPhone,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:tt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},secondaryPhone:{presence:{allowEmpty:!!et.primaryPhone,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:tt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},email:{presence:{allowEmpty:rt,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:EMAIL_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}),getPXSignUpRules=(et,tt)=>({primaryPhone:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:et,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},email:{presence:{allowEmpty:tt,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:EMAIL_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}),getAlternateContactRules=(et,tt)=>{let rt={};const nt=(dt,pt,ht)=>{const mt={};for(const xt of Object.entries(getAlternateBaseRules(pt,ht,tt))){const[Mt,vt]=xt;mt[`${dt}.${Mt}`]={...vt}}return mt},{emergencyContact:lt,nextOfKinContact:ut}=et;return rt=nt("emergencyContact",lt.mobilePhoneNumber,lt.homePhoneNumber),(et.altContactProvided||et.sameAsEmergency===!1)&&ut&&(rt={...rt,...nt("nextOfKinContact",ut.mobilePhoneNumber,ut.homePhoneNumber)}),rt},getAlternateBaseRules=(et,tt,rt)=>{let nt=NAME_REGEX,lt=PHONE_NUMBER_REGEX,ut=PHONE_NUMBER_REGEX;const dt={firstName:!1,lastName:!1,relationship:!1,homePhoneNumber:!!et,mobilePhoneNumber:!!tt,email:!0,authorisedForEnquiries:!1,supportPerson:!1};rt===Region.UK&&(nt=UK_NAME_REGEX,lt=tt?UK_PHONE_REGEX:".*",ut=et?UK_PHONE_REGEX:".*",dt.firstName=!0,dt.lastName=!0,dt.relationship=!0,dt.homePhoneNumber=!0,dt.mobilePhoneNumber=!0);const pt={firstName:{presence:{allowEmpty:dt.firstName,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:nt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},lastName:{presence:{allowEmpty:dt.lastName,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:nt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},relationship:{presence:{allowEmpty:dt.relationship,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},homePhoneNumber:{presence:{allowEmpty:dt.homePhoneNumber,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:lt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},mobilePhoneNumber:{presence:{allowEmpty:dt.mobilePhoneNumber,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:ut,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},email:{presence:{allowEmpty:dt.email},format:{pattern:EMAIL_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},authorisedForEnquiries:{presence:{allowEmpty:dt.authorisedForEnquiries,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},supportPerson:{presence:{allowEmpty:dt.supportPerson,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}};return rt===Region.UK&&(delete pt.authorisedForEnquiries,delete pt.supportPerson),pt},getUKGPRules=(et,tt,rt,nt,lt,ut)=>({generalPractitionerLocation:{presence:{allowEmpty:!0,message:"Please select a surgery"}},generalPractitioner:{presence:{allowEmpty:!ut.generalPractitionerLocation,message:"Please select a practitioner"},list:{listdata:rt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},referringSurgeon:{presence:{allowEmpty:!0,message:"Please select a clinician"}},referringSurgeonLocation:{presence:{allowEmpty:!0,message:"Please select a location"}},oncologist:{presence:{allowEmpty:!1,message:"Please select oncologist"},format:{pattern:NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}),GP_RULES={gpFirstName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},gpLastName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:NAME_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},gpPractice:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},referringFirstName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:`[A-Za-z0-9\\s_.,!"'-]*`,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},referringLastName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:`[A-Za-z0-9\\s_.,!"'-]*`,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},referringPractice:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}},gpOptionalFields=["gpFirstName","gpLastName","gpPractice"],MEDICARE_RULES={healthMedicareDvaOption:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},healthPrivateHealthInsurance:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},healthPensionCard:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},healthMedicareExpiry:{cardExpiryMMYYYY:{inputDateformat:"YYYY-MM-DD",message:VALIDATION_MESSAGE_TYPE$1.INVALID},presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},healthPensionCardExpiry:{cardExpiryMMYYYY:{inputDateformat:"YYYY-MM-DD",message:VALIDATION_MESSAGE_TYPE$1.INVALID},presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},healthDvaExpiry:{cardExpiryMMYYYY:{inputDateformat:"YYYY-MM-DD",message:VALIDATION_MESSAGE_TYPE$1.INVALID},presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}},quarantiniReferralRules={isSymptomatic:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},hasGpReferral:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}},getUkAddressRules=(et=!1)=>({residentialAddressLine1:{presence:{allowEmpty:!et,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressCity:{presence:{allowEmpty:!et,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressCountry:{presence:{allowEmpty:!et,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressState:{presence:{allowEmpty:!et,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressPostcode:{presence:{allowEmpty:!et,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:et?UK_POSTCODE_REGEX:".*",message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}),getAddressRules=(et,tt,rt=!1,nt)=>{let lt={};const ut={residentialAddressLine1:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressCity:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:UK_CITY_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},residentialAddressCountry:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:et,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},residentialAddressState:{presence:{allowEmpty:rt,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:tt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}};return nt===Region.UK?lt={presence:{allowEmpty:rt,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:rt?".*":UK_POSTCODE_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}:lt={presence:{allowEmpty:rt,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},{...ut,residentialAddressPostcode:lt}},getUKDemographicRules=(et,tt,rt)=>({ethnicity:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:et,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},religion:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:tt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},maritalStatus:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:rt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}),getDemographicRules=(et,tt)=>({countryOfBirth:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:et,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},languageAtHome:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:tt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},occupation:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},heritage:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},maritalStatus:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}}),validateAddressRules=(et,tt,rt=Region.AU)=>{let nt="[a-zA-Z\\s]+|",lt="[a-zA-Z\\s]+|",ut=!0,dt=!0;const pt=tt.countries,ht=pt.findIndex(At=>At.name==="Australia"),mt=rt===Region.UK?"United Kingdom":"Scotland",xt=pt.findIndex(At=>At.name===mt),Mt=pt[ht].id,vt=pt[xt].id;(et.residentialAddressCountry===Mt||et.residentialAddressCountry===vt)&&(nt=".*",et.residentialAddressCountry===vt&&(ut=!1)),et.postalAddressCountry===Mt&&(lt=".*"),et.residentialAddressCountry||(ut=!1),rt===Region.UK&&et.registrationReason&&(dt=et.registrationReason!=="New Patient for Outpatient Visit");let Ot;return dt?Ot=getAddressRules(pt,nt,ut,rt):Ot=getUkAddressRules(!1),et.postalAddressSameAsResidential===!1&&(Ot={...Ot,postalAddressLine1:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},postalAddressCity:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:"[a-zA-Z\\s]+|",message:VALIDATION_MESSAGE_TYPE$1.INVALID}},postalAddressCountry:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:pt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},postalAddressState:{presence:{allowEmpty:!!et.postalAddressCountry,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:lt,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},postalAddressPostcode:{presence:{allowEmpty:dt?ut:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}}),Ot},getUKMosaiqRules=et=>{const{primaryPhone:tt,secondaryPhone:rt,email:nt}=getUKContactRules(et,UK_PHONE_REGEX,!0);let lt=!0;const ut=et;ut.registrationReason&&(lt=ut.registrationReason!=="New Patient for Outpatient Visit");let dt=!0;et.residentialAddressCountryName==="United Kingdom"&&(dt=!1);const pt={residentialAddressLine1:{presence:{allowEmpty:!lt,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressCity:{presence:{allowEmpty:!lt,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressState:{presence:{allowEmpty:dt,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressCountry:{presence:{allowEmpty:!lt,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},residentialAddressPostcode:{presence:{allowEmpty:dt,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:dt?".*":UK_POSTCODE_REGEX,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}},ht=getAlternateContactRules(et,Region.UK),mt=getUKBasicRules(et),xt={primaryPhone:tt,secondaryPhone:rt,email:nt,generalPractitioner:{presence:{allowEmpty:!et.generalPractitionerLocation,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},referringSurgeon:{presence:{allowEmpty:!et.referringSurgeonLocation,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},oncologist:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},payor:{presence:{allowEmpty:!et.policyNumber,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}};return{...ht,...mt,...xt,...pt}},validateRegistration=(et,tt,rt,nt=Region.AU,lt=!1)=>{var ut;switch(tt){case 1:const dt=modifyPatientDOBRaw(et);if(nt===Region.UK){const Kt=getUKBasicRules(et);return validate(dt,Kt,options)}else return validate(dt,BASIC_RULES,options);case 2:const pt=validateContactRules(et,nt);return validate(et,pt,options);case 10:const ht=validatePXSignUpRules(et,MOBILE_NUMBER_REGEX,!1);return validate(et,ht,options);case 3:const mt=validateAddressRules(et,rt,nt);return validate(et,mt,options);case 4:let xt=null;return nt===Region.UK?xt=validateUKAltContactRules(et):xt=validateAltContactRules(et),validate(et,xt,options);case 5:if(nt===Region.UK){const Kt=validateUKGPRules(et,rt);return validate(et,Kt,options)}else return validate(et,GP_RULES,options);case 6:const Mt=validateMedicareRules(et);return validate(et,Mt,options);case 7:let vt=null;return nt===Region.UK?vt=validateUKDemographicsRules(rt):vt=validateDemographicsRules(rt),validate(et,vt,options);case 8:const Ot=modifyPatientDOBRaw(et);if(nt===Region.UK){const Kt=getUKMosaiqRules(et);return validate(Ot,Kt,options)}else{let Kt={...MOSAIQ_MINIMUM_REQUIREMENT_RULES};(ut=et.userProfile)!=null&&ut.systemState&&et.userProfile.systemState!=="THA"&&et.attachments&&et.attachments.length&&et.attachments.filter(Bt=>Bt.isRegistrationAttachment).length&&(Kt={...Kt,..._ATTACHMENT_ACKNOWLEDGED_RULE});let Jt=validate(Ot,Kt,options);const Qt=validateAttachments(et,lt);return Qt&&(Jt={...Jt,...Qt}),Jt}case 9:const At=modifyPatientDOBRaw(et),Rt=getAUMosaiqRules(et);return validate(At,Rt,options);case 12:const zt=getQuarantiniPatient(et),Tt={...quarantiniReferralRules};et.clinicType==="Urology"?Tt.recentBloodResults={presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}:et.clinicType==="Breast"&&(Tt.laterality={presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}});const Ct=getUkAddressRules(!0),It=getClinicPayorRules(et),Dt={...zt,...Ct},kt={...CLINIC_RULES,...It,...Dt,...Tt};!(!et.isSymptomatic||et.selfPaid||et.nextAppointment)&&!et.interimApptStart&&(kt.appointmentMissing={presence:{allowEmpty:!1}}),et.apptClash&&(kt.apptClash={presence:{allowEmpty:!1},format:{pattern:"'a^'",message:"The appointment time you have selected is no longer available"}});const Nt=validate(et,kt,options),Yt=new Set;if(Nt&&(Object.keys(Nt).forEach(Kt=>{Object.keys(CLINIC_RULES).includes(Kt)?Yt.add(INVALID_SECTIONS$1.CLINIC):Object.keys(It).includes(Kt)?Yt.add(INVALID_SECTIONS$1.CLINIC_PAYOR):Object.keys(Dt).includes(Kt)?Yt.add(INVALID_SECTIONS$1.PATIENT):Object.keys(Tt).includes(Kt)&&Yt.add(INVALID_SECTIONS$1.REFERRAL)}),Yt.size>0)){const Kt=[];Yt.forEach(Jt=>{Kt.push(Jt)}),Nt.invalidSections=Kt}return Nt;default:return nt===Region.UK?validateAllUKSections(et,rt,nt):validateAllSections(et,rt,nt,lt)}},validatePXSignUpRules=(et,tt=PHONE_NUMBER_REGEX,rt=!0)=>getPXSignUpRules(tt,rt),validateContactRules=(et,tt=Region.AU,rt=!0)=>{let nt;return tt===Region.UK?nt=getUKContactRules(et,UK_PHONE_REGEX,rt):nt=getContactRules(et,PHONE_NUMBER_REGEX,rt),nt},validateUKAltContactRules=et=>getAlternateContactRules(et,Region.UK),validateAltContactRules=et=>getAlternateContactRules(et),validateAttachments=(et,tt=!1)=>{var lt;const{attachments:rt}=et;if(rt&&((lt=et.userProfile)==null?void 0:lt.systemState)&&et.userProfile.systemState!=="THA"){const ut=rt.filter(ht=>ht.isRegistrationAttachment),dt={documentType:function(){return tt?{presence:{allowEmpty:!1}}:null}},pt={};if(ut&&ut.forEach(ht=>{const mt=validate(ht,dt);mt&&(pt[`${ht.filename}`]=mt)}),Object.keys(pt).length!==0)return{attachments:pt}}},validateMedicareRules=et=>{let tt={...MEDICARE_RULES};const rt=et.healthMedicareDvaOption===MEDICARE_TYPES.MEDICARE_DVA,nt=rt||et.healthMedicareDvaOption===MEDICARE_TYPES.MEDICARE,lt=rt||et.healthMedicareDvaOption===MEDICARE_TYPES.NONE;return rt&&(tt={...tt,healthDvaNumber:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:"[NVQWST](([a-zA-Z]{1}[0-9]{6})|([a-zA-Z]{2}[0-9]{5})|([a-zA-Z]{3}[0-9]{4})|([a-zA-Z]{4}[0-9]{3})|( [0-9]{6}))([a-zA-Z]|)|",message:VALIDATION_MESSAGE_TYPE$1.INVALID}},healthDvaType:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}},et.healthPensionCard||delete tt.healthPensionCardExpiry),nt&&(tt={...tt,healthMedicareNumber:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},medicareNumber:{message:VALIDATION_MESSAGE_TYPE$1.INVALID}},healthMedicareIrn:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:"[0-9]|",message:VALIDATION_MESSAGE_TYPE$1.INVALID}}},et.healthPensionCard||delete tt.healthPensionCardExpiry,delete tt.healthDvaExpiry),lt&&(et.healthPensionCard||delete tt.healthPensionCardExpiry,delete tt.healthMedicareExpiry,delete tt.healthDvaExpiry),et.healthPrivateHealthInsurance&&(tt={...tt,healthPrivateHealthFundName:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},healthPrivateHealthFundNumber:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}}),et.healthPensionCard&&(tt={...tt,healthPensionCardNumber:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING},format:{pattern:"[0-9]{9}[a-zA-Z]{1}|",message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}),et.ambulanceMembership&&(tt={...tt,ambulanceMembershipNumber:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}}),tt},validateDemographicsRules=et=>{const tt=et;return getDemographicRules(tt.countries,tt.languages)},validateUKDemographicsRules=et=>{const tt=et;return getUKDemographicRules(tt.ethnicities,tt.religions,tt.maritalStatuses)},validateInformationNoticeRules=et=>{let tt={};return et.informationNoticeAccepted||(tt={informationNoticeAccepted:{inclusion:{within:[!0],message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}),tt},validateAttachmentAcknowledgedRule=(et,tt=!1)=>{let rt={};if(!et.attachments||!et.attachments.length)return rt;const nt=et.attachments.filter(lt=>lt.isRegistrationAttachment);return!et.attachmentAcknowledged&&nt&&nt.length&&tt&&(rt={attachmentAcknowledged:{inclusion:{within:[!0],message:VALIDATION_MESSAGE_TYPE$1.MISSING}}}),rt},validateUKGPRules=(et,tt)=>{const rt=tt;return getUKGPRules(rt.gpSurgeryRefData,rt.surgeonLocationRefData,rt.gpRefData,rt.surgeonRefData,rt.oncologistRefData,et)},getInsuranceRules=(et,tt)=>{const rt=tt;return{payor:{presence:{allowEmpty:!et.policyNumber,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:rt.insurers,message:VALIDATION_MESSAGE_TYPE$1.INVALID}},preAuthNumber:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},policyNumber:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},coverageRelationship:{presence:{allowEmpty:!0,message:VALIDATION_MESSAGE_TYPE$1.MISSING},list:{listdata:rt.coverageRelationships,message:VALIDATION_MESSAGE_TYPE$1.INVALID}}}},validateAllUKSections=(et,tt,rt=Region.UK)=>{const nt=modifyPatientDOBRaw(et),lt=validateContactRules(et,rt),ut=lodash.cloneDeep(et);rt===Region.UK&&(ut.postalAddressSameAsResidential=!0);const dt=validateAddressRules(ut,tt,rt),pt=validateUKAltContactRules(ut),ht=validateUKDemographicsRules(tt),mt=validateUKGPRules(ut,tt),xt=getUKBasicRules(ut),Mt=getInsuranceRules(ut,tt),vt={...xt,...lt,...dt,...pt,...mt,...ht,...Mt},Ot=validate(nt,vt,options),At=new Set;if(Ot&&(Object.keys(Ot).forEach(Rt=>{Object.keys(xt).includes(Rt)?At.add(INVALID_SECTIONS$1.BASIC):Object.keys(lt).includes(Rt)?At.add(INVALID_SECTIONS$1.CONTACT):Object.keys(dt).includes(Rt)?At.add(INVALID_SECTIONS$1.ADDRESS):Object.keys(mt).includes(Rt)?At.add(INVALID_SECTIONS$1.UK_GP):Object.keys(pt).includes(Rt)?At.add(INVALID_SECTIONS$1.UK_ALT_CONTACT):Object.keys(ht).includes(Rt)?At.add(INVALID_SECTIONS$1.UK_DEMOGRAPHICS):Object.keys(Mt).includes(Rt)&&At.add(INVALID_SECTIONS$1.INSURANCE)}),At.size>0)){const Rt=[];At.forEach(zt=>{Rt.push(zt)}),Ot.invalidSections=Rt}return Ot},validateAllSections=(et,tt,rt=Region.AU,nt=!1)=>{let lt=modifyPatientDOBRaw(et);lt=modifyPatientCountryOfBirth(lt,tt==null?void 0:tt.countries);const ut=validateContactRules(et,rt),dt=validateAddressRules(et,tt,rt),pt=validateAltContactRules(et),ht=validateMedicareRules(et),mt=validateDemographicsRules(tt),xt=validateInformationNoticeRules(et),Mt=validateAttachmentAcknowledgedRule(et,nt),vt={...BASIC_RULES,...ut,...dt,...pt,...GP_RULES,...ht,...mt,...xt,...Mt};let Ot=validate(lt,vt,options);const At=validateAttachments(et,nt);At&&(Ot={...Ot,...At});const Rt=new Set;if(Ot&&(Object.keys(Ot).forEach(zt=>{Object.keys(BASIC_RULES).includes(zt)?Rt.add(INVALID_SECTIONS$1.BASIC):Object.keys(ut).includes(zt)?Rt.add(INVALID_SECTIONS$1.CONTACT):Object.keys(dt).includes(zt)?Rt.add(INVALID_SECTIONS$1.ADDRESS):Object.keys(GP_RULES).includes(zt)&&!gpOptionalFields.includes(zt)?Rt.add(INVALID_SECTIONS$1.GP):Object.keys(pt).includes(zt)?Rt.add(INVALID_SECTIONS$1.ALT_CONTACT):Object.keys(ht).includes(zt)?Rt.add(INVALID_SECTIONS$1.MEDICARE):Object.keys(mt).includes(zt)?Rt.add(INVALID_SECTIONS$1.DEMOGRAPHICS):Object.keys(xt).includes(zt)?Rt.add(INVALID_SECTIONS$1.INFORMATION_NOTICE):(Object.keys(Mt).includes(zt)||At)&&Rt.add(INVALID_SECTIONS$1.ATTACHMENTS)}),Rt.size>0)){const zt=[];Rt.forEach(Tt=>{zt.push(Tt)}),Ot.invalidSections=zt}return Ot},modifyPatientCountryOfBirth=(et,tt)=>{var rt;if(tt){const nt=(rt=tt.find(lt=>lt.name===et.countryOfBirth))==null?void 0:rt.id;nt&&(et.countryOfBirth=nt)}return et},modifyPatientDOBRaw=et=>{const tt={...et};return tt.dobRaw=appendRawToDOBRawString(et),tt},appendRawToDOBRawString=et=>{const{dob:tt,dobRawYear:rt}=et;let{dobRawDay:nt,dobRawMonth:lt}=et;if(!nt||!lt||!rt){if(tt){let ut=tt.replace(/-/g,"");return ut=`${ut.slice(6,8)}${ut.slice(4,6)}${ut.slice(0,4)}`,ut}return""}return nt&&nt.length===1&&(nt=`0${nt}`),lt&&lt.length===1&&(lt=`0${lt}`),`${nt}${lt}${rt}`},getAUMosaiqRules=et=>{const tt=validateContactRules(et),rt=getAlternateContactRules(et),nt={heritage:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},maritalStatus:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},countryOfBirth:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}},languageAtHome:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE$1.MISSING}}};return{...MOSAIQ_MINIMUM_REQUIREMENT_RULES,...tt,...nt,...rt}},LOGOUT_MUTATION$4=gql`
  mutation Logout {
    logout {
      errors
    }
  }
`,RECORD_LOCK_QUERY=gql`
  query LockDetails($id: ID!) {
    patient(id: $id) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
    }
  }
`,RELEASE_LOCK_MUTATION=gql`
  mutation ReleaseLock($accessPatientId: ID!) {
    releaseLock(accessPatientId: $accessPatientId) {
      success
    }
  }
`,USER_QUERY$2=gql`
  {
    user {
      id
      email
      firstName
      lastName
      isPso
      isSuperuser
      isShowcaseUser
      primaryRole
    }
  }
`;gql`
  {
    patient {
      id
      ida
    }
  }
`;const LOG_EVENT=gql`
  mutation LogEvent($data: String!) {
    logEvent(data: $data) {
      success
    }
  }
`;gql`
  query userOnboardingList($featureName: String!) {
    userOnboardingList(featureName: $featureName) {
      id
      status
      hideExpired
    }
  }
`;gql`
  mutation UpdateUserOnboarding($featureId: ID!, $status: String!) {
    updateUserOnboarding(featureId: $featureId, status: $status) {
      success
    }
  }
`;const USER_PREFERENCE_QUERY=gql`
  query userFeatureList($featureName: String!) {
    userFeatureList(featureName: $featureName) {
      id
      feature {
        id
        name
      }
      featureOption {
        id
        name
      }
    }
    featureList {
      id
      feature {
        id
        name
      }
      options {
        id
        name
      }
      default {
        id
        name
      }
      onboarding
    }
  }
`,UPDATE_USER_PREFERENCE_MUTATION=gql`
  mutation UpdateUserPreference($featureId: ID!, $featureOptionId: ID!) {
    updateUserPreference(featureId: $featureId, featureOptionId: $featureOptionId) {
      success
    }
  }
`,ROProfilePhoto=({image:et,inHeader:tt,useStock:rt})=>{if(rt&&isDemo)return jsxRuntimeExports.jsx(Stack$5,{width:"92px",children:jsxRuntimeExports.jsx("img",{style:{borderRadius:"50%"},src:ROProfileStock})});if(tt)return jsxRuntimeExports.jsx(AccountCircleOutlinedIcon,{htmlColor:"white"});if(et)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const nt=useTheme$1();return jsxRuntimeExports.jsxs("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("circle",{cx:"28",cy:"28",r:"28",fill:nt.palette.grey[300]}),jsxRuntimeExports.jsx("path",{style:{transform:"scale(1.75)"},fillRule:"evenodd",clipRule:"evenodd",d:"M16.0003 8C13.7903 8 12.0003 9.79 12.0003 12C12.0003 14.21 13.7903 16 16.0003 16C18.2103 16 20.0003 14.21 20.0003 12C20.0003 9.79 18.2103 8 16.0003 8ZM18.0003 12C18.0003 10.9 17.1003 9.99996 16.0003 9.99996C14.9003 9.99996 14.0003 10.9 14.0003 12C14.0003 13.1 14.9003 14 16.0003 14C17.1003 14 18.0003 13.1 18.0003 12ZM22.0003 22C21.8003 21.29 18.7003 20 16.0003 20C13.3103 20 10.2303 21.28 10.0003 22H22.0003ZM8.00037 22C8.00037 19.34 13.3304 18 16.0004 18C18.6704 18 24.0004 19.34 24.0004 22V24H8.00037V22Z",fill:"white"})]})},CircledCross=({id:et,className:tt})=>{const rt=useTheme$1();return jsxRuntimeExports.jsx("svg",{id:et,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:tt,children:jsxRuntimeExports.jsx("path",{id:"cross",fillRule:"evenodd",clipRule:"evenodd",d:"M0 8C0 3.584 3.584 0 8 0C12.416 0 16 3.584 16 8C16 12.416 12.416 16 8 16C3.584 16 0 12.416 0 8ZM5.73726 11.3936L8 9.13091L10.2627 11.3936L11.3941 10.2623L9.13137 7.99953L11.3941 5.73679L10.2627 4.60542L8 6.86816L5.73726 4.60542L4.60589 5.73679L6.86863 7.99953L4.60589 10.2623L5.73726 11.3936Z",fill:rt.palette.grey[300]})})},StyledCircledCross=styled$1(CircledCross)`
  width: 20px;
  height: 20px;

  path {
    fill: ${et=>({show:tt})=>tt?et.theme.palette.grey[600]:"none"};
  }

  &:hover {
    cursor: pointer;
    path {
      fill: ${et=>et.theme.palette.error.main};
    }
  }
`;function Delete({id:et,show:tt}){return jsxRuntimeExports.jsx(StyledCircledCross,{id:et,show:tt})}const Wrapper$6=styled$1("div")`
  position: relative;
  padding: 16px;
  background-color: white;
  color: ${et=>et.theme.palette.text.primary};
  font-size: ${getRemSize(14)};
  border-radius: 4px;
  width: max-content;
  line-height: 20px;
  top: ${({$triangleTopPos:et})=>et};
  right: ${({$triangleRightPos:et})=>et};
  left: ${({$triangleLeftPos:et})=>et};
  bottom: ${({$triangleBottomPos:et})=>et};
  max-width: 340px;
  box-shadow: 0px 2px 8px ${et=>et.theme.palette.grey[600]};
  ::before,
  ::after {
    top: -15px;
    left: ${({$trianglePosition:et})=>et};
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 16px 16px 16px;
    border-color: transparent transparent white transparent;
    content: '';
    position: absolute;
    display: block;
    filter: drop-shadow(1px 0px 0px lightgray);
  }
  ::before {
    border-color: transparent transparent lightgray transparent;
    top: -16px;
  }
`,Popover=({id:et,open:tt,title:rt,placement:nt,anchorEl:lt,handleClickAway:ut,fadeTimeout:dt,triangleLeftPos:pt,triangleRightPos:ht,triangleTopPos:mt,triangleBottomPos:xt,trianglePosition:Mt,children:vt})=>{const Ot={$triangleLeftPos:pt||"",$triangleBottomPos:xt||"",$trianglePosition:Mt||"16px",$triangleRightPos:ht||"20px",$triangleTopPos:mt||"20px"};return jsxRuntimeExports.jsx(Popper,{id:et,role:"dialog",open:tt,placement:nt,anchorEl:lt,transition:!0,children:({TransitionProps:At})=>jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:ut,children:jsxRuntimeExports.jsx(Fade,{...At,timeout:dt,children:jsxRuntimeExports.jsxs(Wrapper$6,{...Ot,children:[jsxRuntimeExports.jsx(Typography,{marginBottom:1,variant:"subtitle1",children:rt}),vt]})})})})},Card$1=styled$1("div")`
  background-color: white;
  padding: ${et=>et.$noPadding?"0":"16px"};
  width: 100%;
  height: ${et=>et.$filled?"100%":"auto"};
  box-shadow: ${et=>et.$noShadow?"none":"0px 2px 8px rgba(113, 110, 106, 0.2)"};
  border-radius: ${et=>et.$borderRadius?"4px":"none"};
`;Card$1.defaultProps={$noPadding:!1,$borderRadius:!0,$noShadow:!1,$filled:!1};const Accordion$1=({title:et,children:tt,open:rt,readOnly:nt=!1,onOpen:lt,onClose:ut})=>{const[dt,pt]=reactExports.useState(rt),ht=reactExports.useRef(!0);return useTheme$1(),reactExports.useEffect(()=>{if(ht.current){ht.current=!1;return}else dt&&lt?lt():!dt&&ut&&ut()},[dt]),jsxRuntimeExports.jsxs(Accordion$2,{"data-testid":"accordion",disabled:nt,expanded:dt,onChange:()=>{nt||pt(!dt)},children:[jsxRuntimeExports.jsx(AccordionSummary$1,{children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[dt?jsxRuntimeExports.jsx(ExpandLessIcon,{fontSize:"large",color:"primary"}):jsxRuntimeExports.jsx(ExpandMoreIcon,{fontSize:"large",color:nt?"disabled":"primary"}),jsxRuntimeExports.jsxs(Typography,{variant:"subtitle1",style:{alignSelf:"center"},children:[typeof et=="string"&&et,typeof et=="object"?dt?et.open:et.closed:null]})]})}),jsxRuntimeExports.jsx(AccordionDetails,{children:tt})]})},GeneralError=({primaryText:et,secondaryText:tt})=>jsxRuntimeExports.jsxs(Stack$5,{alignItems:"center",paddingTop:4,children:[jsxRuntimeExports.jsx(ErrorOutlineIcon,{}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:et||"Something went wrong."}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:tt||"Please refresh the page."})]}),Badge$1=styled$1("div")`
  color: white;
  background-color: ${et=>et.$bgColor};
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  padding-left: 0.1em;
  padding-right: 0.1em;
  margin-left: 4px;
  font-size: 12px;
  font-weight: bold;
`;Badge$1.defaultProps={$bgColor:"black"};class HorizonLogoNavigator extends reactExports.Component{render(){const{linkToSearch:tt}=this.props;return tt?jsxRuntimeExports.jsx(Link$2,{to:"/search",id:"gc-logo-navigator",children:jsxRuntimeExports.jsx(SvgHorizonWhiteLogo,{id:"gc-logo-navigator-svg",className:"icon"})}):jsxRuntimeExports.jsx(SvgHorizonWhiteLogo,{id:"gc-logo-navigator-svg",className:"icon"})}}const useIsOverflow=(et,tt)=>{const[rt,nt]=React$4.useState(void 0);return React$4.useLayoutEffect(()=>{const{current:lt}=et;lt&&(()=>{const dt=lt.scrollHeight>lt.clientHeight;nt(dt)})()},[tt,et]),rt},REACT_APP_REGION$u=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,logger$Q=new Logger("AddressField");let LINE1_RESIDENTIAL_FIELD_HEADING$1="Residential address line 1";const LINE1_POSTAL_LINE_HEADING$1="Postal address line 1";let LINE2_HEADING$1="Address line 2 (optional)",CITYSUBURB_FIELD_HEADING$1="City / Suburb";const COUNTRY_FIELD_HEADING$1="Country";let HEADING$2={AUS_STATE:"State or territory",REGION:"State / Province / Region"},ZIP_POSTCODE_HEADING$1="ZIP / Postcode",COUNTRY_NAME$1="Australia";const PLACEHOLDERS$1={LINE1:"Street name and number",LINE2:"",CITY:"Enter city / suburb",COUNTRY:"Start typing",AUS_STATE:"Select state or territory",REGION:"Enter State / Province / Region",ZIP_POSTCODE:"Enter ZIP / Postcode"},region$o=REACT_APP_REGION$u;region$o===Region.UK&&(COUNTRY_NAME$1="United Kingdom",LINE1_RESIDENTIAL_FIELD_HEADING$1="Address line 1",LINE2_HEADING$1="Address line 2",CITYSUBURB_FIELD_HEADING$1="City / Town",HEADING$2={AUS_STATE:"County",REGION:"County"},ZIP_POSTCODE_HEADING$1="Postcode");var Cm;let AddressField$1=(Cm=class extends reactExports.Component{constructor(rt){super(rt);Nr(this,"australianIdInCountry","");Nr(this,"updateStateWithCountry",rt=>{logger$Q.debug("updateStateWithCountry","The country value is: ",rt);const{addressInputs:nt}=this.props,lt=nt.country.defaultValue===this.australianIdInCountry&&rt!==this.australianIdInCountry,ut=nt.country.defaultValue!==this.australianIdInCountry&&rt===this.australianIdInCountry,dt=[nt.country.graphArgumentKey],pt=[rt],ht=["String"],mt=["country"];(ut||lt)&&(logger$Q.debug("updateStateWithCountry","The state should be updated"),dt.push(nt.state.graphArgumentKey),pt.push(""),ht.push("String"),mt.push("state")),this.onBlur(dt,pt,ht,mt)});Nr(this,"renderStateOrRegion",rt=>{const{addressInputs:nt,inputName:lt,ausStates:ut}=this.props;return jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(rt&&rt.state),htmlFor:`${lt}-state`,title:HEADING$2.REGION,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:this.props.disabled,inputName:`${lt}-state`,placeholder:PLACEHOLDERS$1.REGION,defaultValue:nt.state.defaultValue,maxLength:100,errors:rt&&rt.state?rt.state:void 0,onBlur:dt=>{this.state.viewed.add("state"),this.onBlur([nt.state.graphArgumentKey],[dt.target.value],["String"],["state"])}})})});this.state={viewed:new Set};const nt=rt.countries.findIndex(lt=>lt.name===COUNTRY_NAME$1);this.australianIdInCountry=rt.countries[nt].id}render(){const{addressInputs:rt,inputName:nt}=this.props;let lt="Please enter your State / Province / Region.",ut="[a-zA-Z\\s]+|",dt=".*";rt.country.defaultValue===this.australianIdInCountry&&(lt="Please select your state or territory",ut=".*"),region$o===Region.UK&&rt.country.defaultValue===this.australianIdInCountry&&(dt=UK_POSTCODE_REGEX);let pt={};this.props.isMandatory?pt={line1:{presence:{allowEmpty:!1,message:"Please enter your street address."}},city:{presence:{allowEmpty:!1,message:region$o===Region.UK?"Please enter your City / Town":"Please enter your City / Suburb."},format:{pattern:UK_CITY_REGEX,message:region$o===Region.UK?"Please enter a valid city/town":"Please enter a valid city/suburb."}},country:{presence:{allowEmpty:!1,message:"Please enter your Country."},list:{listdata:this.props.countries,message:"Please enter a valid country."}},state:{presence:{allowEmpty:region$o===Region.UK&&rt.country.defaultValue!==this.australianIdInCountry,message:region$o===Region.UK?"Please enter your County":lt},format:{pattern:ut,message:region$o===Region.UK?"Please enter your county":"Please enter a valid format for state/province/region."}},zipPostcode:{presence:{allowEmpty:region$o===Region.UK&&rt.country.defaultValue!==this.australianIdInCountry,message:"Please enter your postcode."},format:{pattern:dt,message:"Please enter valid postcode."}}}:pt={line1:{presence:{allowEmpty:!0,message:"Please enter your street address."}},city:{presence:{allowEmpty:!0,message:region$o===Region.UK?"Please enter your City / Town":"Please enter your City / Suburb."}},country:{presence:{allowEmpty:!0,message:"Please enter your Country."}},state:{presence:{allowEmpty:!0,message:region$o===Region.UK?"Please enter your County":lt}},zipPostcode:{presence:{allowEmpty:!0,message:"Please enter your postcode."},format:{pattern:dt,message:"Please enter valid postcode."}}};const ht={};let mt=this.state.viewed.keys();this.props.validateForm&&(mt=new Set(["line1","city","country","state","zipPostcode"]).keys());for(const Rt of mt)ht[Rt]=pt[Rt];const xt={fullMessages:!1},Mt={};for(const Rt of Object.keys(rt))Mt[Rt]=rt[Rt].defaultValue;const vt=validate(Mt,ht,xt);let Ot=LINE1_RESIDENTIAL_FIELD_HEADING$1;nt==="postal"&&(Ot=LINE1_POSTAL_LINE_HEADING$1);let At=!0;return region$o===Region.UK&&rt.country&&rt.country.defaultValue===this.australianIdInCountry&&(At=!1),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(vt&&vt.line1),htmlFor:`${nt}-line1`,title:Ot,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:this.props.disabled,inputName:`${nt}-line1`,placeholder:PLACEHOLDERS$1.LINE1,defaultValue:rt.line1.defaultValue,maxLength:60,onBlur:Rt=>{this.onBlur([rt.line1.graphArgumentKey],[Rt.target.value],["String"],["line1"])},errors:vt&&vt.line1?vt.line1:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!0,htmlFor:`${nt}-line2`,title:LINE2_HEADING$1,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:this.props.disabled,inputName:`${nt}-line2`,placeholder:PLACEHOLDERS$1.LINE2,defaultValue:rt.line2.defaultValue,maxLength:60,onBlur:Rt=>{this.onBlur([rt.line2.graphArgumentKey],[Rt.target.value],["String"],["line2"])},errors:vt?vt.line2:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(vt&&vt.city),htmlFor:`${nt}-city`,title:CITYSUBURB_FIELD_HEADING$1,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:this.props.disabled,inputName:`${nt}-city`,placeholder:PLACEHOLDERS$1.CITY,defaultValue:rt.city.defaultValue,maxLength:40,onBlur:Rt=>{this.onBlur([rt.city.graphArgumentKey],[Rt.target.value],["String"],["city"])},errors:vt&&vt.city?vt.city:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(vt&&vt.country),htmlFor:`${nt}-country`,title:COUNTRY_FIELD_HEADING$1,children:jsxRuntimeExports.jsx(AutoSuggestText,{disabled:this.props.disabled,inputName:`${nt}-country`,preventNumberInput:!0,suggestionList:this.props.countries,placeholder:PLACEHOLDERS$1.COUNTRY,maxLength:100,onBlur:Rt=>{this.updateStateWithCountry(Rt)},defaultValue:rt.country.defaultValue,errors:vt&&vt.country?vt.country:void 0})}),this.renderStateOrRegion(vt),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(vt&&vt.zipPostcode),htmlFor:`${nt}-zipPostcode`,title:ZIP_POSTCODE_HEADING$1,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:this.props.disabled,inputName:`${nt}-zipPostcode`,placeholder:At?PLACEHOLDERS$1.ZIP_POSTCODE:"",defaultValue:rt.zipPostcode.defaultValue,maxLength:25,onBlur:Rt=>{this.onBlur([rt.zipPostcode.graphArgumentKey],[Rt.target.value],["String"],["zipPostcode"])},errors:vt&&vt.zipPostcode?vt.zipPostcode:void 0})})]})}onBlur(rt,nt,lt,ut){const dt=this.state.viewed,pt=mt=>{mt==="state"?ut.includes("country")&&dt.delete(mt):dt.has(mt)||dt.add(mt)},ht=[{key:rt[0],value:nt[0],type:lt[0]}];pt(ut[0]);for(let mt=1;mt<rt.length;mt++)ht.push({key:rt[mt],value:nt[mt],type:lt[mt]}),pt(ut[mt]);this.setState({viewed:dt}),this.props.onBlur(ht)}},Nr(Cm,"defaultProps",{validateForm:!1}),Cm);var Autosuggest$1={};function shallowEqualArrays(et,tt){if(et===tt)return!0;if(!et||!tt)return!1;var rt=et.length;if(tt.length!==rt)return!1;for(var nt=0;nt<rt;nt++)if(et[nt]!==tt[nt])return!1;return!0}var arrays=shallowEqualArrays,Autowhatever={},_slicedToArray$3=function(){function et(tt,rt){var nt=[],lt=!0,ut=!1,dt=void 0;try{for(var pt=tt[Symbol.iterator](),ht;!(lt=(ht=pt.next()).done)&&(nt.push(ht.value),!(rt&&nt.length===rt));lt=!0);}catch(mt){ut=!0,dt=mt}finally{try{!lt&&pt.return&&pt.return()}finally{if(ut)throw dt}}return nt}return function(tt,rt){if(Array.isArray(tt))return tt;if(Symbol.iterator in Object(tt))return et(tt,rt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),dist$3=function(et){var tt=et.data,rt=et.multiSection;function nt(ht){for(ht===null?ht=0:ht++;ht<tt.length&&tt[ht]===0;)ht++;return ht===tt.length?null:ht}function lt(ht){for(ht===null?ht=tt.length-1:ht--;ht>=0&&tt[ht]===0;)ht--;return ht===-1?null:ht}function ut(ht){var mt=_slicedToArray$3(ht,2),xt=mt[0],Mt=mt[1];return rt?Mt===null||Mt===tt[xt]-1?(xt=nt(xt),xt===null?[null,null]:[xt,0]):[xt,Mt+1]:tt===0||Mt===tt-1?[null,null]:Mt===null?[null,0]:[null,Mt+1]}function dt(ht){var mt=_slicedToArray$3(ht,2),xt=mt[0],Mt=mt[1];return rt?Mt===null||Mt===0?(xt=lt(xt),xt===null?[null,null]:[xt,tt[xt]-1]):[xt,Mt-1]:tt===0||Mt===0?[null,null]:Mt===null?[null,tt-1]:[null,Mt-1]}function pt(ht){return ut(ht)[1]===null}return{next:ut,prev:dt,isLast:pt}},dist$2={exports:{}},propIsEnumerable=Object.prototype.propertyIsEnumerable;function ToObject(et){if(et==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(et)}function ownEnumerableKeys(et){var tt=Object.getOwnPropertyNames(et);return Object.getOwnPropertySymbols&&(tt=tt.concat(Object.getOwnPropertySymbols(et))),tt.filter(function(rt){return propIsEnumerable.call(et,rt)})}var objectAssign=Object.assign||function(et,tt){for(var rt,nt,lt=ToObject(et),ut=1;ut<arguments.length;ut++){rt=arguments[ut],nt=ownEnumerableKeys(Object(rt));for(var dt=0;dt<nt.length;dt++)lt[nt[dt]]=rt[nt[dt]]}return lt};(function(et,tt){Object.defineProperty(tt,"__esModule",{value:!0});var rt=function(){function ht(mt,xt){var Mt=[],vt=!0,Ot=!1,At=void 0;try{for(var Rt=mt[Symbol.iterator](),zt;!(vt=(zt=Rt.next()).done)&&(Mt.push(zt.value),!(xt&&Mt.length===xt));vt=!0);}catch(Tt){Ot=!0,At=Tt}finally{try{!vt&&Rt.return&&Rt.return()}finally{if(Ot)throw At}}return Mt}return function(mt,xt){if(Array.isArray(mt))return mt;if(Symbol.iterator in Object(mt))return ht(mt,xt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function nt(ht){return ht&&ht.__esModule?ht:{default:ht}}function lt(ht){if(Array.isArray(ht)){for(var mt=0,xt=Array(ht.length);mt<ht.length;mt++)xt[mt]=ht[mt];return xt}else return Array.from(ht)}var ut=objectAssign,dt=nt(ut),pt=function(mt){return mt};tt.default=function(ht){var mt=Array.isArray(ht)&&ht.length===2?ht:[ht,null],xt=rt(mt,2),Mt=xt[0],vt=xt[1];return function(Ot){for(var At=arguments.length,Rt=Array(At>1?At-1:0),zt=1;zt<At;zt++)Rt[zt-1]=arguments[zt];var Tt=Rt.map(function(Ct){return Mt[Ct]}).filter(pt);return typeof Tt[0]=="string"||typeof vt=="function"?{key:Ot,className:vt?vt.apply(void 0,lt(Tt)):Tt.join(" ")}:{key:Ot,style:dt.default.apply(void 0,[{}].concat(lt(Tt)))}}},et.exports=tt.default})(dist$2,dist$2.exports);var distExports=dist$2.exports,SectionTitle$4={},compareObjects={};(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=rt;function tt(nt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tt=function(ut){return typeof ut}:tt=function(ut){return ut&&typeof Symbol=="function"&&ut.constructor===Symbol&&ut!==Symbol.prototype?"symbol":typeof ut},tt(nt)}function rt(nt,lt){var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(nt===lt)return!1;var dt=Object.keys(nt),pt=Object.keys(lt);if(dt.length!==pt.length)return!0;var ht={},mt,xt;for(mt=0,xt=ut.length;mt<xt;mt++)ht[ut[mt]]=!0;for(mt=0,xt=dt.length;mt<xt;mt++){var Mt=dt[mt],vt=nt[Mt],Ot=lt[Mt];if(vt!==Ot){if(!ht[Mt]||vt===null||Ot===null||tt(vt)!=="object"||tt(Ot)!=="object")return!0;var At=Object.keys(vt),Rt=Object.keys(Ot);if(At.length!==Rt.length)return!0;for(var zt=0,Tt=At.length;zt<Tt;zt++){var Ct=At[zt];if(vt[Ct]!==Ot[Ct])return!0}}}return!1}})(compareObjects);(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var tt=dt(reactExports),rt=lt(propTypesExports),nt=lt(compareObjects);function lt(Dt){return Dt&&Dt.__esModule?Dt:{default:Dt}}function ut(){if(typeof WeakMap!="function")return null;var Dt=new WeakMap;return ut=function(){return Dt},Dt}function dt(Dt){if(Dt&&Dt.__esModule)return Dt;if(Dt===null||pt(Dt)!=="object"&&typeof Dt!="function")return{default:Dt};var kt=ut();if(kt&&kt.has(Dt))return kt.get(Dt);var qt={},Nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Yt in Dt)if(Object.prototype.hasOwnProperty.call(Dt,Yt)){var Kt=Nt?Object.getOwnPropertyDescriptor(Dt,Yt):null;Kt&&(Kt.get||Kt.set)?Object.defineProperty(qt,Yt,Kt):qt[Yt]=Dt[Yt]}return qt.default=Dt,kt&&kt.set(Dt,qt),qt}function pt(Dt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pt=function(qt){return typeof qt}:pt=function(qt){return qt&&typeof Symbol=="function"&&qt.constructor===Symbol&&qt!==Symbol.prototype?"symbol":typeof qt},pt(Dt)}function ht(Dt,kt){if(!(Dt instanceof kt))throw new TypeError("Cannot call a class as a function")}function mt(Dt,kt){for(var qt=0;qt<kt.length;qt++){var Nt=kt[qt];Nt.enumerable=Nt.enumerable||!1,Nt.configurable=!0,"value"in Nt&&(Nt.writable=!0),Object.defineProperty(Dt,Nt.key,Nt)}}function xt(Dt,kt,qt){return kt&&mt(Dt.prototype,kt),Dt}function Mt(Dt){return function(){var kt=Rt(Dt),qt;if(At()){var Nt=Rt(this).constructor;qt=Reflect.construct(kt,arguments,Nt)}else qt=kt.apply(this,arguments);return vt(this,qt)}}function vt(Dt,kt){return kt&&(pt(kt)==="object"||typeof kt=="function")?kt:Ot(Dt)}function Ot(Dt){if(Dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Dt}function At(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Rt(Dt){return Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(qt){return qt.__proto__||Object.getPrototypeOf(qt)},Rt(Dt)}function zt(Dt,kt){if(typeof kt!="function"&&kt!==null)throw new TypeError("Super expression must either be null or a function");Dt.prototype=Object.create(kt&&kt.prototype,{constructor:{value:Dt,writable:!0,configurable:!0}}),kt&&Tt(Dt,kt)}function Tt(Dt,kt){return Tt=Object.setPrototypeOf||function(Nt,Yt){return Nt.__proto__=Yt,Nt},Tt(Dt,kt)}function Ct(Dt,kt,qt){return kt in Dt?Object.defineProperty(Dt,kt,{value:qt,enumerable:!0,configurable:!0,writable:!0}):Dt[kt]=qt,Dt}var It=function(Dt){zt(qt,Dt);var kt=Mt(qt);function qt(){return ht(this,qt),kt.apply(this,arguments)}return xt(qt,[{key:"shouldComponentUpdate",value:function(Yt){return(0,nt.default)(Yt,this.props)}},{key:"render",value:function(){var Yt=this.props,Kt=Yt.section,Jt=Yt.renderSectionTitle,Qt=Yt.theme,Bt=Yt.sectionKeyPrefix,Ft=Jt(Kt);return Ft?tt.default.createElement("div",Qt("".concat(Bt,"title"),"sectionTitle"),Ft):null}}]),qt}(tt.Component);et.default=It,Ct(It,"propTypes",{section:rt.default.any.isRequired,renderSectionTitle:rt.default.func.isRequired,theme:rt.default.func.isRequired,sectionKeyPrefix:rt.default.string.isRequired})})(SectionTitle$4);var ItemList={},Item={};(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var tt=dt(reactExports),rt=lt(propTypesExports),nt=lt(compareObjects);function lt(Kt){return Kt&&Kt.__esModule?Kt:{default:Kt}}function ut(){if(typeof WeakMap!="function")return null;var Kt=new WeakMap;return ut=function(){return Kt},Kt}function dt(Kt){if(Kt&&Kt.__esModule)return Kt;if(Kt===null||pt(Kt)!=="object"&&typeof Kt!="function")return{default:Kt};var Jt=ut();if(Jt&&Jt.has(Kt))return Jt.get(Kt);var Qt={},Bt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ft in Kt)if(Object.prototype.hasOwnProperty.call(Kt,Ft)){var $t=Bt?Object.getOwnPropertyDescriptor(Kt,Ft):null;$t&&($t.get||$t.set)?Object.defineProperty(Qt,Ft,$t):Qt[Ft]=Kt[Ft]}return Qt.default=Kt,Jt&&Jt.set(Kt,Qt),Qt}function pt(Kt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pt=function(Qt){return typeof Qt}:pt=function(Qt){return Qt&&typeof Symbol=="function"&&Qt.constructor===Symbol&&Qt!==Symbol.prototype?"symbol":typeof Qt},pt(Kt)}function ht(){return ht=Object.assign||function(Kt){for(var Jt=1;Jt<arguments.length;Jt++){var Qt=arguments[Jt];for(var Bt in Qt)Object.prototype.hasOwnProperty.call(Qt,Bt)&&(Kt[Bt]=Qt[Bt])}return Kt},ht.apply(this,arguments)}function mt(Kt,Jt){var Qt=Object.keys(Kt);if(Object.getOwnPropertySymbols){var Bt=Object.getOwnPropertySymbols(Kt);Jt&&(Bt=Bt.filter(function(Ft){return Object.getOwnPropertyDescriptor(Kt,Ft).enumerable})),Qt.push.apply(Qt,Bt)}return Qt}function xt(Kt){for(var Jt=1;Jt<arguments.length;Jt++){var Qt=arguments[Jt]!=null?arguments[Jt]:{};Jt%2?mt(Object(Qt),!0).forEach(function(Bt){Nt(Kt,Bt,Qt[Bt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Kt,Object.getOwnPropertyDescriptors(Qt)):mt(Object(Qt)).forEach(function(Bt){Object.defineProperty(Kt,Bt,Object.getOwnPropertyDescriptor(Qt,Bt))})}return Kt}function Mt(Kt,Jt){if(Kt==null)return{};var Qt=vt(Kt,Jt),Bt,Ft;if(Object.getOwnPropertySymbols){var $t=Object.getOwnPropertySymbols(Kt);for(Ft=0;Ft<$t.length;Ft++)Bt=$t[Ft],!(Jt.indexOf(Bt)>=0)&&Object.prototype.propertyIsEnumerable.call(Kt,Bt)&&(Qt[Bt]=Kt[Bt])}return Qt}function vt(Kt,Jt){if(Kt==null)return{};var Qt={},Bt=Object.keys(Kt),Ft,$t;for($t=0;$t<Bt.length;$t++)Ft=Bt[$t],!(Jt.indexOf(Ft)>=0)&&(Qt[Ft]=Kt[Ft]);return Qt}function Ot(Kt,Jt){if(!(Kt instanceof Jt))throw new TypeError("Cannot call a class as a function")}function At(Kt,Jt){for(var Qt=0;Qt<Jt.length;Qt++){var Bt=Jt[Qt];Bt.enumerable=Bt.enumerable||!1,Bt.configurable=!0,"value"in Bt&&(Bt.writable=!0),Object.defineProperty(Kt,Bt.key,Bt)}}function Rt(Kt,Jt,Qt){return Jt&&At(Kt.prototype,Jt),Kt}function zt(Kt){return function(){var Jt=Dt(Kt),Qt;if(It()){var Bt=Dt(this).constructor;Qt=Reflect.construct(Jt,arguments,Bt)}else Qt=Jt.apply(this,arguments);return Tt(this,Qt)}}function Tt(Kt,Jt){return Jt&&(pt(Jt)==="object"||typeof Jt=="function")?Jt:Ct(Kt)}function Ct(Kt){if(Kt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Kt}function It(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Dt(Kt){return Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(Qt){return Qt.__proto__||Object.getPrototypeOf(Qt)},Dt(Kt)}function kt(Kt,Jt){if(typeof Jt!="function"&&Jt!==null)throw new TypeError("Super expression must either be null or a function");Kt.prototype=Object.create(Jt&&Jt.prototype,{constructor:{value:Kt,writable:!0,configurable:!0}}),Jt&&qt(Kt,Jt)}function qt(Kt,Jt){return qt=Object.setPrototypeOf||function(Bt,Ft){return Bt.__proto__=Ft,Bt},qt(Kt,Jt)}function Nt(Kt,Jt,Qt){return Jt in Kt?Object.defineProperty(Kt,Jt,{value:Qt,enumerable:!0,configurable:!0,writable:!0}):Kt[Jt]=Qt,Kt}var Yt=function(Kt){kt(Qt,Kt);var Jt=zt(Qt);function Qt(){var Bt;Ot(this,Qt);for(var Ft=arguments.length,$t=new Array(Ft),jt=0;jt<Ft;jt++)$t[jt]=arguments[jt];return Bt=Jt.call.apply(Jt,[this].concat($t)),Nt(Ct(Bt),"storeItemReference",function(Wt){Wt!==null&&(Bt.item=Wt)}),Nt(Ct(Bt),"onMouseEnter",function(Wt){var Ut=Bt.props,Vt=Ut.sectionIndex,Ht=Ut.itemIndex;Bt.props.onMouseEnter(Wt,{sectionIndex:Vt,itemIndex:Ht})}),Nt(Ct(Bt),"onMouseLeave",function(Wt){var Ut=Bt.props,Vt=Ut.sectionIndex,Ht=Ut.itemIndex;Bt.props.onMouseLeave(Wt,{sectionIndex:Vt,itemIndex:Ht})}),Nt(Ct(Bt),"onMouseDown",function(Wt){var Ut=Bt.props,Vt=Ut.sectionIndex,Ht=Ut.itemIndex;Bt.props.onMouseDown(Wt,{sectionIndex:Vt,itemIndex:Ht})}),Nt(Ct(Bt),"onClick",function(Wt){var Ut=Bt.props,Vt=Ut.sectionIndex,Ht=Ut.itemIndex;Bt.props.onClick(Wt,{sectionIndex:Vt,itemIndex:Ht})}),Bt}return Rt(Qt,[{key:"shouldComponentUpdate",value:function(Ft){return(0,nt.default)(Ft,this.props,["renderItemData"])}},{key:"render",value:function(){var Ft=this.props,$t=Ft.isHighlighted,jt=Ft.item,Wt=Ft.renderItem,Ut=Ft.renderItemData,Vt=Mt(Ft,["isHighlighted","item","renderItem","renderItemData"]);return delete Vt.sectionIndex,delete Vt.itemIndex,typeof Vt.onMouseEnter=="function"&&(Vt.onMouseEnter=this.onMouseEnter),typeof Vt.onMouseLeave=="function"&&(Vt.onMouseLeave=this.onMouseLeave),typeof Vt.onMouseDown=="function"&&(Vt.onMouseDown=this.onMouseDown),typeof Vt.onClick=="function"&&(Vt.onClick=this.onClick),tt.default.createElement("li",ht({role:"option"},Vt,{ref:this.storeItemReference}),Wt(jt,xt({isHighlighted:$t},Ut)))}}]),Qt}(tt.Component);et.default=Yt,Nt(Yt,"propTypes",{sectionIndex:rt.default.number,isHighlighted:rt.default.bool.isRequired,itemIndex:rt.default.number.isRequired,item:rt.default.any.isRequired,renderItem:rt.default.func.isRequired,renderItemData:rt.default.object.isRequired,onMouseEnter:rt.default.func,onMouseLeave:rt.default.func,onMouseDown:rt.default.func,onClick:rt.default.func})})(Item);(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var tt=pt(reactExports),rt=ut(propTypesExports),nt=ut(Item),lt=ut(compareObjects);function ut(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}}function dt(){if(typeof WeakMap!="function")return null;var Yt=new WeakMap;return dt=function(){return Yt},Yt}function pt(Yt){if(Yt&&Yt.__esModule)return Yt;if(Yt===null||ht(Yt)!=="object"&&typeof Yt!="function")return{default:Yt};var Kt=dt();if(Kt&&Kt.has(Yt))return Kt.get(Yt);var Jt={},Qt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Bt in Yt)if(Object.prototype.hasOwnProperty.call(Yt,Bt)){var Ft=Qt?Object.getOwnPropertyDescriptor(Yt,Bt):null;Ft&&(Ft.get||Ft.set)?Object.defineProperty(Jt,Bt,Ft):Jt[Bt]=Yt[Bt]}return Jt.default=Yt,Kt&&Kt.set(Yt,Jt),Jt}function ht(Yt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ht=function(Jt){return typeof Jt}:ht=function(Jt){return Jt&&typeof Symbol=="function"&&Jt.constructor===Symbol&&Jt!==Symbol.prototype?"symbol":typeof Jt},ht(Yt)}function mt(){return mt=Object.assign||function(Yt){for(var Kt=1;Kt<arguments.length;Kt++){var Jt=arguments[Kt];for(var Qt in Jt)Object.prototype.hasOwnProperty.call(Jt,Qt)&&(Yt[Qt]=Jt[Qt])}return Yt},mt.apply(this,arguments)}function xt(Yt,Kt){var Jt=Object.keys(Yt);if(Object.getOwnPropertySymbols){var Qt=Object.getOwnPropertySymbols(Yt);Kt&&(Qt=Qt.filter(function(Bt){return Object.getOwnPropertyDescriptor(Yt,Bt).enumerable})),Jt.push.apply(Jt,Qt)}return Jt}function Mt(Yt){for(var Kt=1;Kt<arguments.length;Kt++){var Jt=arguments[Kt]!=null?arguments[Kt]:{};Kt%2?xt(Object(Jt),!0).forEach(function(Qt){qt(Yt,Qt,Jt[Qt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Yt,Object.getOwnPropertyDescriptors(Jt)):xt(Object(Jt)).forEach(function(Qt){Object.defineProperty(Yt,Qt,Object.getOwnPropertyDescriptor(Jt,Qt))})}return Yt}function vt(Yt,Kt){if(!(Yt instanceof Kt))throw new TypeError("Cannot call a class as a function")}function Ot(Yt,Kt){for(var Jt=0;Jt<Kt.length;Jt++){var Qt=Kt[Jt];Qt.enumerable=Qt.enumerable||!1,Qt.configurable=!0,"value"in Qt&&(Qt.writable=!0),Object.defineProperty(Yt,Qt.key,Qt)}}function At(Yt,Kt,Jt){return Kt&&Ot(Yt.prototype,Kt),Yt}function Rt(Yt){return function(){var Kt=It(Yt),Jt;if(Ct()){var Qt=It(this).constructor;Jt=Reflect.construct(Kt,arguments,Qt)}else Jt=Kt.apply(this,arguments);return zt(this,Jt)}}function zt(Yt,Kt){return Kt&&(ht(Kt)==="object"||typeof Kt=="function")?Kt:Tt(Yt)}function Tt(Yt){if(Yt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Yt}function Ct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function It(Yt){return It=Object.setPrototypeOf?Object.getPrototypeOf:function(Jt){return Jt.__proto__||Object.getPrototypeOf(Jt)},It(Yt)}function Dt(Yt,Kt){if(typeof Kt!="function"&&Kt!==null)throw new TypeError("Super expression must either be null or a function");Yt.prototype=Object.create(Kt&&Kt.prototype,{constructor:{value:Yt,writable:!0,configurable:!0}}),Kt&&kt(Yt,Kt)}function kt(Yt,Kt){return kt=Object.setPrototypeOf||function(Qt,Bt){return Qt.__proto__=Bt,Qt},kt(Yt,Kt)}function qt(Yt,Kt,Jt){return Kt in Yt?Object.defineProperty(Yt,Kt,{value:Jt,enumerable:!0,configurable:!0,writable:!0}):Yt[Kt]=Jt,Yt}var Nt=function(Yt){Dt(Jt,Yt);var Kt=Rt(Jt);function Jt(){var Qt;vt(this,Jt);for(var Bt=arguments.length,Ft=new Array(Bt),$t=0;$t<Bt;$t++)Ft[$t]=arguments[$t];return Qt=Kt.call.apply(Kt,[this].concat(Ft)),qt(Tt(Qt),"storeHighlightedItemReference",function(jt){Qt.props.onHighlightedItemChange(jt===null?null:jt.item)}),Qt}return At(Jt,[{key:"shouldComponentUpdate",value:function(Bt){return(0,lt.default)(Bt,this.props,["itemProps"])}},{key:"render",value:function(){var Bt=this,Ft=this.props,$t=Ft.items,jt=Ft.itemProps,Wt=Ft.renderItem,Ut=Ft.renderItemData,Vt=Ft.sectionIndex,Ht=Ft.highlightedItemIndex,Gt=Ft.getItemId,Zt=Ft.theme,Xt=Ft.keyPrefix,er=Vt===null?Xt:"".concat(Xt,"section-").concat(Vt,"-"),nr=typeof jt=="function";return tt.default.createElement("ul",mt({role:"listbox"},Zt("".concat(er,"items-list"),"itemsList")),$t.map(function(or,rr){var cr=rr===0,ir=rr===Ht,dr="".concat(er,"item-").concat(rr),gr=nr?jt({sectionIndex:Vt,itemIndex:rr}):jt,br=Mt({id:Gt(Vt,rr),"aria-selected":ir},Zt(dr,"item",cr&&"itemFirst",ir&&"itemHighlighted"),{},gr);return ir&&(br.ref=Bt.storeHighlightedItemReference),tt.default.createElement(nt.default,mt({},br,{sectionIndex:Vt,isHighlighted:ir,itemIndex:rr,item:or,renderItem:Wt,renderItemData:Ut}))}))}}]),Jt}(tt.Component);et.default=Nt,qt(Nt,"propTypes",{items:rt.default.array.isRequired,itemProps:rt.default.oneOfType([rt.default.object,rt.default.func]),renderItem:rt.default.func.isRequired,renderItemData:rt.default.object.isRequired,sectionIndex:rt.default.number,highlightedItemIndex:rt.default.number,onHighlightedItemChange:rt.default.func.isRequired,getItemId:rt.default.func.isRequired,theme:rt.default.func.isRequired,keyPrefix:rt.default.string.isRequired}),qt(Nt,"defaultProps",{sectionIndex:null})})(ItemList);(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var tt=mt(reactExports),rt=pt(propTypesExports),nt=pt(dist$3),lt=pt(distExports),ut=pt(SectionTitle$4),dt=pt(ItemList);function pt(Ht){return Ht&&Ht.__esModule?Ht:{default:Ht}}function ht(){if(typeof WeakMap!="function")return null;var Ht=new WeakMap;return ht=function(){return Ht},Ht}function mt(Ht){if(Ht&&Ht.__esModule)return Ht;if(Ht===null||Ct(Ht)!=="object"&&typeof Ht!="function")return{default:Ht};var Gt=ht();if(Gt&&Gt.has(Ht))return Gt.get(Ht);var Zt={},Xt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var er in Ht)if(Object.prototype.hasOwnProperty.call(Ht,er)){var nr=Xt?Object.getOwnPropertyDescriptor(Ht,er):null;nr&&(nr.get||nr.set)?Object.defineProperty(Zt,er,nr):Zt[er]=Ht[er]}return Zt.default=Ht,Gt&&Gt.set(Ht,Zt),Zt}function xt(Ht,Gt){var Zt=Object.keys(Ht);if(Object.getOwnPropertySymbols){var Xt=Object.getOwnPropertySymbols(Ht);Gt&&(Xt=Xt.filter(function(er){return Object.getOwnPropertyDescriptor(Ht,er).enumerable})),Zt.push.apply(Zt,Xt)}return Zt}function Mt(Ht){for(var Gt=1;Gt<arguments.length;Gt++){var Zt=arguments[Gt]!=null?arguments[Gt]:{};Gt%2?xt(Object(Zt),!0).forEach(function(Xt){Ft(Ht,Xt,Zt[Xt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ht,Object.getOwnPropertyDescriptors(Zt)):xt(Object(Zt)).forEach(function(Xt){Object.defineProperty(Ht,Xt,Object.getOwnPropertyDescriptor(Zt,Xt))})}return Ht}function vt(Ht,Gt){return Tt(Ht)||zt(Ht,Gt)||At(Ht,Gt)||Ot()}function Ot(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function At(Ht,Gt){if(Ht){if(typeof Ht=="string")return Rt(Ht,Gt);var Zt=Object.prototype.toString.call(Ht).slice(8,-1);if(Zt==="Object"&&Ht.constructor&&(Zt=Ht.constructor.name),Zt==="Map"||Zt==="Set")return Array.from(Zt);if(Zt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Zt))return Rt(Ht,Gt)}}function Rt(Ht,Gt){(Gt==null||Gt>Ht.length)&&(Gt=Ht.length);for(var Zt=0,Xt=new Array(Gt);Zt<Gt;Zt++)Xt[Zt]=Ht[Zt];return Xt}function zt(Ht,Gt){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(Ht)))){var Zt=[],Xt=!0,er=!1,nr=void 0;try{for(var or=Ht[Symbol.iterator](),rr;!(Xt=(rr=or.next()).done)&&(Zt.push(rr.value),!(Gt&&Zt.length===Gt));Xt=!0);}catch(cr){er=!0,nr=cr}finally{try{!Xt&&or.return!=null&&or.return()}finally{if(er)throw nr}}return Zt}}function Tt(Ht){if(Array.isArray(Ht))return Ht}function Ct(Ht){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ct=function(Zt){return typeof Zt}:Ct=function(Zt){return Zt&&typeof Symbol=="function"&&Zt.constructor===Symbol&&Zt!==Symbol.prototype?"symbol":typeof Zt},Ct(Ht)}function It(Ht,Gt){if(!(Ht instanceof Gt))throw new TypeError("Cannot call a class as a function")}function Dt(Ht,Gt){for(var Zt=0;Zt<Gt.length;Zt++){var Xt=Gt[Zt];Xt.enumerable=Xt.enumerable||!1,Xt.configurable=!0,"value"in Xt&&(Xt.writable=!0),Object.defineProperty(Ht,Xt.key,Xt)}}function kt(Ht,Gt,Zt){return Gt&&Dt(Ht.prototype,Gt),Ht}function qt(Ht){return function(){var Gt=Jt(Ht),Zt;if(Kt()){var Xt=Jt(this).constructor;Zt=Reflect.construct(Gt,arguments,Xt)}else Zt=Gt.apply(this,arguments);return Nt(this,Zt)}}function Nt(Ht,Gt){return Gt&&(Ct(Gt)==="object"||typeof Gt=="function")?Gt:Yt(Ht)}function Yt(Ht){if(Ht===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht}function Kt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Jt(Ht){return Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(Zt){return Zt.__proto__||Object.getPrototypeOf(Zt)},Jt(Ht)}function Qt(Ht,Gt){if(typeof Gt!="function"&&Gt!==null)throw new TypeError("Super expression must either be null or a function");Ht.prototype=Object.create(Gt&&Gt.prototype,{constructor:{value:Ht,writable:!0,configurable:!0}}),Gt&&Bt(Ht,Gt)}function Bt(Ht,Gt){return Bt=Object.setPrototypeOf||function(Xt,er){return Xt.__proto__=er,Xt},Bt(Ht,Gt)}function Ft(Ht,Gt,Zt){return Gt in Ht?Object.defineProperty(Ht,Gt,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):Ht[Gt]=Zt,Ht}var $t={},jt=function(Gt){return tt.default.createElement("input",Gt)},Wt=function(Gt){var Zt=Gt.containerProps,Xt=Gt.children;return tt.default.createElement("div",Zt,Xt)},Ut={container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"},Vt=function(Ht){Qt(Zt,Ht);var Gt=qt(Zt);function Zt(Xt){var er;return It(this,Zt),er=Gt.call(this,Xt),Ft(Yt(er),"storeInputReference",function(nr){nr!==null&&(er.input=nr);var or=er.props.inputProps.ref;or&&(typeof or=="function"?or(nr):Ct(or)==="object"&&Object.prototype.hasOwnProperty.call(or,"current")&&(or.current=nr))}),Ft(Yt(er),"storeItemsContainerReference",function(nr){nr!==null&&(er.itemsContainer=nr)}),Ft(Yt(er),"onHighlightedItemChange",function(nr){er.highlightedItem=nr}),Ft(Yt(er),"getItemId",function(nr,or){if(or===null)return null;var rr=er.props.id,cr=nr===null?"":"section-".concat(nr);return"react-autowhatever-".concat(rr,"-").concat(cr,"-item-").concat(or)}),Ft(Yt(er),"onFocus",function(nr){var or=er.props.inputProps;er.setState({isInputFocused:!0}),or.onFocus&&or.onFocus(nr)}),Ft(Yt(er),"onBlur",function(nr){var or=er.props.inputProps;er.setState({isInputFocused:!1}),or.onBlur&&or.onBlur(nr)}),Ft(Yt(er),"onKeyDown",function(nr){var or=er.props,rr=or.inputProps,cr=or.highlightedSectionIndex,ir=or.highlightedItemIndex,dr=nr.keyCode;switch(dr){case 40:case 38:{var gr=dr===40?"next":"prev",br=er.sectionIterator[gr]([cr,ir]),ar=vt(br,2),ur=ar[0],xr=ar[1];rr.onKeyDown(nr,{newHighlightedSectionIndex:ur,newHighlightedItemIndex:xr});break}default:rr.onKeyDown(nr,{highlightedSectionIndex:cr,highlightedItemIndex:ir})}}),er.highlightedItem=null,er.state={isInputFocused:!1},er.setSectionsItems(Xt),er.setSectionIterator(Xt),er.setTheme(Xt),er}return kt(Zt,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(er){er.items!==this.props.items&&this.setSectionsItems(er),(er.items!==this.props.items||er.multiSection!==this.props.multiSection)&&this.setSectionIterator(er),er.theme!==this.props.theme&&this.setTheme(er)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(er){er.multiSection&&(this.sectionsItems=er.items.map(function(nr){return er.getSectionItems(nr)}),this.sectionsLengths=this.sectionsItems.map(function(nr){return nr.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(nr){return nr===0}))}},{key:"setSectionIterator",value:function(er){this.sectionIterator=(0,nt.default)({multiSection:er.multiSection,data:er.multiSection?this.sectionsLengths:er.items.length})}},{key:"setTheme",value:function(er){this.theme=(0,lt.default)(er.theme)}},{key:"renderSections",value:function(){var er=this;if(this.allSectionsAreEmpty)return null;var nr=this.theme,or=this.props,rr=or.id,cr=or.items,ir=or.renderItem,dr=or.renderItemData,gr=or.renderSectionTitle,br=or.highlightedSectionIndex,ar=or.highlightedItemIndex,ur=or.itemProps;return cr.map(function(xr,Mr){var Ar="react-autowhatever-".concat(rr,"-"),Ir="".concat(Ar,"section-").concat(Mr,"-"),Rr=Mr===0;return tt.default.createElement("div",nr("".concat(Ir,"container"),"sectionContainer",Rr&&"sectionContainerFirst"),tt.default.createElement(ut.default,{section:xr,renderSectionTitle:gr,theme:nr,sectionKeyPrefix:Ir}),tt.default.createElement(dt.default,{items:er.sectionsItems[Mr],itemProps:ur,renderItem:ir,renderItemData:dr,sectionIndex:Mr,highlightedItemIndex:br===Mr?ar:null,onHighlightedItemChange:er.onHighlightedItemChange,getItemId:er.getItemId,theme:nr,keyPrefix:Ar,ref:er.storeItemsListReference}))})}},{key:"renderItems",value:function(){var er=this.props.items;if(er.length===0)return null;var nr=this.theme,or=this.props,rr=or.id,cr=or.renderItem,ir=or.renderItemData,dr=or.highlightedSectionIndex,gr=or.highlightedItemIndex,br=or.itemProps;return tt.default.createElement(dt.default,{items:er,itemProps:br,renderItem:cr,renderItemData:ir,highlightedItemIndex:dr===null?gr:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:nr,keyPrefix:"react-autowhatever-".concat(rr,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var er=this.highlightedItem;if(er){var nr=this.itemsContainer,or=er.offsetParent===nr?er.offsetTop:er.offsetTop-nr.offsetTop,rr=nr.scrollTop;or<rr?rr=or:or+er.offsetHeight>rr+nr.offsetHeight&&(rr=or+er.offsetHeight-nr.offsetHeight),rr!==nr.scrollTop&&(nr.scrollTop=rr)}}},{key:"render",value:function(){var er=this.theme,nr=this.props,or=nr.id,rr=nr.multiSection,cr=nr.renderInputComponent,ir=nr.renderItemsContainer,dr=nr.highlightedSectionIndex,gr=nr.highlightedItemIndex,br=this.state.isInputFocused,ar=rr?this.renderSections():this.renderItems(),ur=ar!==null,xr=this.getItemId(dr,gr),Mr="react-autowhatever-".concat(or),Ar=Mt({role:"combobox","aria-haspopup":"listbox","aria-owns":Mr,"aria-expanded":ur},er("react-autowhatever-".concat(or,"-container"),"container",ur&&"containerOpen"),{},this.props.containerProps),Ir=cr(Mt({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":Mr,"aria-activedescendant":xr},er("react-autowhatever-".concat(or,"-input"),"input",ur&&"inputOpen",br&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),Rr=ir({containerProps:Mt({id:Mr,role:"listbox"},er("react-autowhatever-".concat(or,"-items-container"),"itemsContainer",ur&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:ar});return tt.default.createElement("div",Ar,Ir,Rr)}}]),Zt}(tt.Component);et.default=Vt,Ft(Vt,"propTypes",{id:rt.default.string,multiSection:rt.default.bool,renderInputComponent:rt.default.func,renderItemsContainer:rt.default.func,items:rt.default.array.isRequired,renderItem:rt.default.func,renderItemData:rt.default.object,renderSectionTitle:rt.default.func,getSectionItems:rt.default.func,containerProps:rt.default.object,inputProps:rt.default.object,itemProps:rt.default.oneOfType([rt.default.object,rt.default.func]),highlightedSectionIndex:rt.default.number,highlightedItemIndex:rt.default.number,theme:rt.default.oneOfType([rt.default.object,rt.default.array])}),Ft(Vt,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:jt,renderItemsContainer:Wt,renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:$t,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:$t,inputProps:$t,itemProps:$t,highlightedSectionIndex:null,highlightedItemIndex:null,theme:Ut})})(Autowhatever);var theme$2={};Object.defineProperty(theme$2,"__esModule",{value:!0});theme$2.mapToAutowhateverTheme=theme$2.defaultTheme=void 0;var defaultTheme$2={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};theme$2.defaultTheme=defaultTheme$2;var mapToAutowhateverTheme=function(tt){var rt={};for(var nt in tt)switch(nt){case"suggestionsContainer":rt.itemsContainer=tt[nt];break;case"suggestionsContainerOpen":rt.itemsContainerOpen=tt[nt];break;case"suggestion":rt.item=tt[nt];break;case"suggestionFirst":rt.itemFirst=tt[nt];break;case"suggestionHighlighted":rt.itemHighlighted=tt[nt];break;case"suggestionsList":rt.itemsList=tt[nt];break;default:rt[nt]=tt[nt]}return rt};theme$2.mapToAutowhateverTheme=mapToAutowhateverTheme;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=void 0;var tt=ht(reactExports),rt=dt(propTypesExports),nt=dt(arrays),lt=dt(Autowhatever),ut=theme$2;function dt(Vt){return Vt&&Vt.__esModule?Vt:{default:Vt}}function pt(){if(typeof WeakMap!="function")return null;var Vt=new WeakMap;return pt=function(){return Vt},Vt}function ht(Vt){if(Vt&&Vt.__esModule)return Vt;if(Vt===null||mt(Vt)!=="object"&&typeof Vt!="function")return{default:Vt};var Ht=pt();if(Ht&&Ht.has(Vt))return Ht.get(Vt);var Gt={},Zt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Xt in Vt)if(Object.prototype.hasOwnProperty.call(Vt,Xt)){var er=Zt?Object.getOwnPropertyDescriptor(Vt,Xt):null;er&&(er.get||er.set)?Object.defineProperty(Gt,Xt,er):Gt[Xt]=Vt[Xt]}return Gt.default=Vt,Ht&&Ht.set(Vt,Gt),Gt}function mt(Vt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mt=function(Gt){return typeof Gt}:mt=function(Gt){return Gt&&typeof Symbol=="function"&&Gt.constructor===Symbol&&Gt!==Symbol.prototype?"symbol":typeof Gt},mt(Vt)}function xt(Vt,Ht){var Gt=Object.keys(Vt);if(Object.getOwnPropertySymbols){var Zt=Object.getOwnPropertySymbols(Vt);Ht&&(Zt=Zt.filter(function(Xt){return Object.getOwnPropertyDescriptor(Vt,Xt).enumerable})),Gt.push.apply(Gt,Zt)}return Gt}function Mt(Vt){for(var Ht=1;Ht<arguments.length;Ht++){var Gt=arguments[Ht]!=null?arguments[Ht]:{};Ht%2?xt(Object(Gt),!0).forEach(function(Zt){qt(Vt,Zt,Gt[Zt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Vt,Object.getOwnPropertyDescriptors(Gt)):xt(Object(Gt)).forEach(function(Zt){Object.defineProperty(Vt,Zt,Object.getOwnPropertyDescriptor(Gt,Zt))})}return Vt}function vt(Vt,Ht){if(!(Vt instanceof Ht))throw new TypeError("Cannot call a class as a function")}function Ot(Vt,Ht){for(var Gt=0;Gt<Ht.length;Gt++){var Zt=Ht[Gt];Zt.enumerable=Zt.enumerable||!1,Zt.configurable=!0,"value"in Zt&&(Zt.writable=!0),Object.defineProperty(Vt,Zt.key,Zt)}}function At(Vt,Ht,Gt){return Ht&&Ot(Vt.prototype,Ht),Vt}function Rt(Vt){return function(){var Ht=It(Vt),Gt;if(Ct()){var Zt=It(this).constructor;Gt=Reflect.construct(Ht,arguments,Zt)}else Gt=Ht.apply(this,arguments);return zt(this,Gt)}}function zt(Vt,Ht){return Ht&&(mt(Ht)==="object"||typeof Ht=="function")?Ht:Tt(Vt)}function Tt(Vt){if(Vt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Vt}function Ct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function It(Vt){return It=Object.setPrototypeOf?Object.getPrototypeOf:function(Gt){return Gt.__proto__||Object.getPrototypeOf(Gt)},It(Vt)}function Dt(Vt,Ht){if(typeof Ht!="function"&&Ht!==null)throw new TypeError("Super expression must either be null or a function");Vt.prototype=Object.create(Ht&&Ht.prototype,{constructor:{value:Vt,writable:!0,configurable:!0}}),Ht&&kt(Vt,Ht)}function kt(Vt,Ht){return kt=Object.setPrototypeOf||function(Zt,Xt){return Zt.__proto__=Xt,Zt},kt(Vt,Ht)}function qt(Vt,Ht,Gt){return Ht in Vt?Object.defineProperty(Vt,Ht,{value:Gt,enumerable:!0,configurable:!0,writable:!0}):Vt[Ht]=Gt,Vt}var Nt=function(){return!0},Yt=function(Ht){return Ht.trim().length>0},Kt=function(Ht){var Gt=Ht.containerProps,Zt=Ht.children;return tt.default.createElement("div",Gt,Zt)},Jt="suggestions-revealed",Qt="suggestions-updated",Bt="suggestion-selected",Ft="input-focused",$t="input-changed",jt="input-blurred",Wt="escape-pressed",Ut=function(Vt){Dt(Gt,Vt);var Ht=Rt(Gt);function Gt(Zt){var Xt,er=Zt.alwaysRenderSuggestions;return vt(this,Gt),Xt=Ht.call(this),qt(Tt(Xt),"onDocumentMouseDown",function(nr){Xt.justClickedOnSuggestionsContainer=!1;for(var or=nr.detail&&nr.detail.target||nr.target;or!==null&&or!==document;){if(or.getAttribute&&or.getAttribute("data-suggestion-index")!==null)return;if(or===Xt.suggestionsContainer){Xt.justClickedOnSuggestionsContainer=!0;return}or=or.parentNode}}),qt(Tt(Xt),"storeAutowhateverRef",function(nr){nr!==null&&(Xt.autowhatever=nr)}),qt(Tt(Xt),"onSuggestionMouseEnter",function(nr,or){var rr=or.sectionIndex,cr=or.itemIndex;Xt.updateHighlightedSuggestion(rr,cr),nr.target===Xt.pressedSuggestion&&(Xt.justSelectedSuggestion=!0),Xt.justMouseEntered=!0,setTimeout(function(){Xt.justMouseEntered=!1})}),qt(Tt(Xt),"highlightFirstSuggestion",function(){Xt.updateHighlightedSuggestion(Xt.props.multiSection?0:null,0)}),qt(Tt(Xt),"onDocumentMouseUp",function(){Xt.pressedSuggestion&&!Xt.justSelectedSuggestion&&Xt.input.focus(),Xt.pressedSuggestion=null}),qt(Tt(Xt),"onSuggestionMouseDown",function(nr){Xt.justSelectedSuggestion||(Xt.justSelectedSuggestion=!0,Xt.pressedSuggestion=nr.target)}),qt(Tt(Xt),"onSuggestionsClearRequested",function(){var nr=Xt.props.onSuggestionsClearRequested;nr&&nr()}),qt(Tt(Xt),"onSuggestionSelected",function(nr,or){var rr=Xt.props,cr=rr.alwaysRenderSuggestions,ir=rr.onSuggestionSelected,dr=rr.onSuggestionsFetchRequested;ir&&ir(nr,or);var gr=Xt.props.shouldKeepSuggestionsOnSelect(or.suggestion);cr||gr?dr({value:or.suggestionValue,reason:Bt}):Xt.onSuggestionsClearRequested(),Xt.resetHighlightedSuggestion()}),qt(Tt(Xt),"onSuggestionClick",function(nr){var or=Xt.props,rr=or.alwaysRenderSuggestions,cr=or.focusInputOnSuggestionClick,ir=Xt.getSuggestionIndices(Xt.findSuggestionElement(nr.target)),dr=ir.sectionIndex,gr=ir.suggestionIndex,br=Xt.getSuggestion(dr,gr),ar=Xt.props.getSuggestionValue(br);Xt.maybeCallOnChange(nr,ar,"click"),Xt.onSuggestionSelected(nr,{suggestion:br,suggestionValue:ar,suggestionIndex:gr,sectionIndex:dr,method:"click"});var ur=Xt.props.shouldKeepSuggestionsOnSelect(br);rr||ur||Xt.closeSuggestions(),cr===!0?Xt.input.focus():Xt.onBlur(),setTimeout(function(){Xt.justSelectedSuggestion=!1})}),qt(Tt(Xt),"onBlur",function(){var nr=Xt.props,or=nr.inputProps,rr=nr.shouldRenderSuggestions,cr=or.value,ir=or.onBlur,dr=Xt.getHighlightedSuggestion(),gr=rr(cr,jt);Xt.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!gr}),ir&&ir(Xt.blurEvent,{highlightedSuggestion:dr})}),qt(Tt(Xt),"onSuggestionMouseLeave",function(nr){Xt.resetHighlightedSuggestion(!1),Xt.justSelectedSuggestion&&nr.target===Xt.pressedSuggestion&&(Xt.justSelectedSuggestion=!1)}),qt(Tt(Xt),"onSuggestionTouchStart",function(){Xt.justSelectedSuggestion=!0}),qt(Tt(Xt),"onSuggestionTouchMove",function(){Xt.justSelectedSuggestion=!1,Xt.pressedSuggestion=null,Xt.input.focus()}),qt(Tt(Xt),"itemProps",function(nr){var or=nr.sectionIndex,rr=nr.itemIndex;return{"data-section-index":or,"data-suggestion-index":rr,onMouseEnter:Xt.onSuggestionMouseEnter,onMouseLeave:Xt.onSuggestionMouseLeave,onMouseDown:Xt.onSuggestionMouseDown,onTouchStart:Xt.onSuggestionTouchStart,onTouchMove:Xt.onSuggestionTouchMove,onClick:Xt.onSuggestionClick}}),qt(Tt(Xt),"renderSuggestionsContainer",function(nr){var or=nr.containerProps,rr=nr.children,cr=Xt.props.renderSuggestionsContainer;return cr({containerProps:or,children:rr,query:Xt.getQuery()})}),Xt.state={isFocused:!1,isCollapsed:!er,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},Xt.justPressedUpDown=!1,Xt.justMouseEntered=!1,Xt.pressedSuggestion=null,Xt}return At(Gt,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(Xt){var er=this.state.highlightedSuggestionIndex===0&&this.props.highlightFirstSuggestion&&!Xt.highlightFirstSuggestion;(0,nt.default)(Xt.suggestions,this.props.suggestions)?Xt.highlightFirstSuggestion&&Xt.suggestions.length>0&&this.justPressedUpDown===!1&&this.justMouseEntered===!1?this.highlightFirstSuggestion():er&&this.resetHighlightedSuggestion():this.willRenderSuggestions(Xt,Qt)?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),er&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(Xt,er){var nr=this.props,or=nr.suggestions,rr=nr.onSuggestionHighlighted,cr=nr.highlightFirstSuggestion;if(!(0,nt.default)(or,Xt.suggestions)&&or.length>0&&cr){this.highlightFirstSuggestion();return}if(rr){var ir=this.getHighlightedSuggestion(),dr=er.highlightedSuggestion;ir!=dr&&rr({suggestion:ir})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(Xt,er,nr){var or=this;this.setState(function(rr){var cr=rr.valueBeforeUpDown;return er===null?cr=null:cr===null&&typeof nr<"u"&&(cr=nr),{highlightedSectionIndex:Xt,highlightedSuggestionIndex:er,highlightedSuggestion:er===null?null:or.getSuggestion(Xt,er),valueBeforeUpDown:cr}})}},{key:"resetHighlightedSuggestion",value:function(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.setState(function(er){var nr=er.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:Xt?null:nr}})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(Xt,er){var nr=this.props,or=nr.suggestions,rr=nr.multiSection,cr=nr.getSectionSuggestions;return rr?cr(or[Xt])[er]:or[er]}},{key:"getHighlightedSuggestion",value:function(){var Xt=this.state,er=Xt.highlightedSectionIndex,nr=Xt.highlightedSuggestionIndex;return nr===null?null:this.getSuggestion(er,nr)}},{key:"getSuggestionValueByIndex",value:function(Xt,er){var nr=this.props.getSuggestionValue;return nr(this.getSuggestion(Xt,er))}},{key:"getSuggestionIndices",value:function(Xt){var er=Xt.getAttribute("data-section-index"),nr=Xt.getAttribute("data-suggestion-index");return{sectionIndex:typeof er=="string"?parseInt(er,10):null,suggestionIndex:parseInt(nr,10)}}},{key:"findSuggestionElement",value:function(Xt){var er=Xt;do{if(er.getAttribute&&er.getAttribute("data-suggestion-index")!==null)return er;er=er.parentNode}while(er!==null);throw console.error("Clicked element:",Xt),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(Xt,er,nr){var or=this.props.inputProps,rr=or.value,cr=or.onChange;er!==rr&&cr(Xt,{newValue:er,method:nr})}},{key:"willRenderSuggestions",value:function(Xt,er){var nr=Xt.suggestions,or=Xt.inputProps,rr=Xt.shouldRenderSuggestions,cr=or.value;return nr.length>0&&rr(cr,er)}},{key:"getQuery",value:function(){var Xt=this.props.inputProps,er=Xt.value,nr=this.state.valueBeforeUpDown;return(nr===null?er:nr).trim()}},{key:"render",value:function(){var Xt=this,er=this.props,nr=er.suggestions,or=er.renderInputComponent,rr=er.onSuggestionsFetchRequested,cr=er.renderSuggestion,ir=er.inputProps,dr=er.multiSection,gr=er.renderSectionTitle,br=er.id,ar=er.getSectionSuggestions,ur=er.theme,xr=er.getSuggestionValue,Mr=er.alwaysRenderSuggestions,Ar=er.highlightFirstSuggestion,Ir=er.containerProps,Rr=this.state,wr=Rr.isFocused,qr=Rr.isCollapsed,Hr=Rr.highlightedSectionIndex,kr=Rr.highlightedSuggestionIndex,$r=Rr.valueBeforeUpDown,yr=Mr?Nt:this.props.shouldRenderSuggestions,Or=ir.value,Dr=ir.onFocus,Fr=ir.onKeyDown,Yr=this.willRenderSuggestions(this.props,"render"),Gr=Mr||wr&&!qr&&Yr,Jr=Gr?nr:[],jr=Mt({},ir,{onFocus:function(cn){if(!Xt.justSelectedSuggestion&&!Xt.justClickedOnSuggestionsContainer){var Qr=yr(Or,Ft);Xt.setState({isFocused:!0,isCollapsed:!Qr}),Dr&&Dr(cn),Qr&&rr({value:Or,reason:Ft})}},onBlur:function(cn){if(Xt.justClickedOnSuggestionsContainer){Xt.input.focus();return}Xt.blurEvent=cn,Xt.justSelectedSuggestion||(Xt.onBlur(),Xt.onSuggestionsClearRequested())},onChange:function(cn){var Qr=cn.target.value,rn=yr(Qr,$t);Xt.maybeCallOnChange(cn,Qr,"type"),Xt.suggestionsContainer&&(Xt.suggestionsContainer.scrollTop=0),Xt.setState(Mt({},Ar?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!rn})),rn?rr({value:Qr,reason:$t}):Xt.onSuggestionsClearRequested()},onKeyDown:function(cn,Qr){var rn=cn.keyCode;switch(rn){case 40:case 38:if(qr)yr(Or,Jt)&&(rr({value:Or,reason:Jt}),Xt.revealSuggestions(),cn.preventDefault());else if(nr.length>0){var _r=Qr.newHighlightedSectionIndex,ln=Qr.newHighlightedItemIndex,vn;ln===null?vn=$r===null?Or:$r:vn=Xt.getSuggestionValueByIndex(_r,ln),Xt.updateHighlightedSuggestion(_r,ln,Or),Xt.maybeCallOnChange(cn,vn,rn===40?"down":"up"),cn.preventDefault()}Xt.justPressedUpDown=!0,setTimeout(function(){Xt.justPressedUpDown=!1});break;case 13:{if(cn.keyCode===229)break;var Cr=Xt.getHighlightedSuggestion();if(Gr&&!Mr&&Xt.closeSuggestions(),Cr!=null){cn.preventDefault();var gn=xr(Cr);Xt.maybeCallOnChange(cn,gn,"enter"),Xt.onSuggestionSelected(cn,{suggestion:Cr,suggestionValue:gn,suggestionIndex:kr,sectionIndex:Hr,method:"enter"}),Xt.justSelectedSuggestion=!0,setTimeout(function(){Xt.justSelectedSuggestion=!1})}break}case 27:{Gr&&cn.preventDefault();var xn=Gr&&!Mr;if($r===null){if(!xn){var Vr="";Xt.maybeCallOnChange(cn,Vr,"escape"),yr(Vr,Wt)?rr({value:Vr,reason:Wt}):Xt.onSuggestionsClearRequested()}}else Xt.maybeCallOnChange(cn,$r,"escape");xn?(Xt.onSuggestionsClearRequested(),Xt.closeSuggestions()):Xt.resetHighlightedSuggestion();break}}Fr&&Fr(cn)}}),Zr={query:this.getQuery()};return tt.default.createElement(lt.default,{multiSection:dr,items:Jr,renderInputComponent:or,renderItemsContainer:this.renderSuggestionsContainer,renderItem:cr,renderItemData:Zr,renderSectionTitle:gr,getSectionItems:ar,highlightedSectionIndex:Hr,highlightedItemIndex:kr,containerProps:Ir,inputProps:jr,itemProps:this.itemProps,theme:(0,ut.mapToAutowhateverTheme)(ur),id:br,ref:this.storeAutowhateverRef})}}]),Gt}(tt.Component);et.default=Ut,qt(Ut,"propTypes",{suggestions:rt.default.array.isRequired,onSuggestionsFetchRequested:function(Ht,Gt){var Zt=Ht[Gt];if(typeof Zt!="function")throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(Ht,Gt){var Zt=Ht[Gt];if(Ht.alwaysRenderSuggestions===!1&&typeof Zt!="function")throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:rt.default.func,onSuggestionSelected:rt.default.func,onSuggestionHighlighted:rt.default.func,renderInputComponent:rt.default.func,renderSuggestionsContainer:rt.default.func,getSuggestionValue:rt.default.func.isRequired,renderSuggestion:rt.default.func.isRequired,inputProps:function(Ht,Gt){var Zt=Ht[Gt];if(!Zt)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(Zt,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(Zt,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:rt.default.func,alwaysRenderSuggestions:rt.default.bool,multiSection:rt.default.bool,renderSectionTitle:function(Ht,Gt){var Zt=Ht[Gt];if(Ht.multiSection===!0&&typeof Zt!="function")throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(Ht,Gt){var Zt=Ht[Gt];if(Ht.multiSection===!0&&typeof Zt!="function")throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:rt.default.bool,highlightFirstSuggestion:rt.default.bool,theme:rt.default.object,id:rt.default.string,containerProps:rt.default.object}),qt(Ut,"defaultProps",{renderSuggestionsContainer:Kt,shouldRenderSuggestions:Yt,alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:ut.defaultTheme,id:"1",containerProps:{}})})(Autosuggest$1);var dist$1=Autosuggest$1.default;const Autosuggest=getDefaultExportFromCjs$1(dist$1),REACT_APP_REGION$t=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$n=REACT_APP_REGION$t;class AsyncAutocomplete extends reactExports.Component{constructor(rt){super(rt);Nr(this,"inputWidth",0);Nr(this,"container");Nr(this,"onChange",(rt,{newValue:nt})=>{this.setState({value:nt}),nt===""&&this.setState({selectedsuggestion:void 0})});Nr(this,"setSuggestionValue",rt=>(this.setState({selectedsuggestion:rt.id}),this.onBlur(),rt.name));Nr(this,"renderSuggestion",rt=>{if(["oncologists","extPractitioners"].includes(this.props.grapheneField)&&region$n===Region.UK){const nt=rt,lt=nt.location?nt.location:"Centre not available";return jsxRuntimeExports.jsx("div",{style:{width:this.inputWidth-20},className:"suggestion-container",children:jsxRuntimeExports.jsxs("div",{className:"suggestion-item",children:[jsxRuntimeExports.jsxs("div",{className:"item-doc-name",children:[nt.name," ",nt.qualification?"("+nt.qualification+")":""]}),jsxRuntimeExports.jsx("div",{className:"item-doc-location",children:lt})]})})}else return jsxRuntimeExports.jsx("div",{style:{width:this.inputWidth-20},className:"suggestion-container",children:jsxRuntimeExports.jsx("div",{className:"suggestion-item",children:rt.name})})});Nr(this,"renderInputComponent",rt=>jsxRuntimeExports.jsx("input",{...rt,ref:nt=>{rt.ref&&rt.ref(nt),this.container=nt}}));Nr(this,"updateOnBlur",()=>{if(this.state.selectedsuggestion===void 0){const{suggestions:rt,value:nt}=this.state;if(rt.length===1&&rt[0].name.toLowerCase()===nt.toLowerCase())return!0}return!1});let nt={value:"",suggestions:[]};this.props.defaultValue&&(nt={...nt,value:this.props.defaultValue}),this.state=nt}onBlur(){let rt=this.state.selectedsuggestion,nt=this.state.value;this.updateOnBlur()&&(this.setState({selectedsuggestion:this.state.suggestions[0].id,value:this.state.suggestions[0].name}),rt=this.state.suggestions[0].id,nt=this.state.suggestions[0].name),rt||(rt=nt),this.props.onBlur(rt)}onKeyPress(rt){const nt=!isNaN(Number(rt.key.trim()));this.props.preventNumberInput&&nt&&rt.preventDefault()}render(){const{value:rt}=this.state,{disabled:nt,inputName:lt,placeholder:ut,patient:dt,errors:pt,grapheneField:ht,fullName:mt}=this.props,xt=100,Mt=["oncologists","extPractitioners"].includes(ht)&&region$n===Region.UK,vt=gql`
    query search ($search: String!, $patient: ID!) {
      choices: ${ht} (search: $search, patient: $patient) {
        id
        ${mt?"name: fullName":"name"}
        ${Mt?"location":""}
        ${Mt?"qualification":""}
      }
    }`;return jsxRuntimeExports.jsx(Query,{query:vt,variables:{search:rt,patient:dt},children:({data:Ot,error:At})=>At?jsxRuntimeExports.jsx("div",{children:"error"}):jsxRuntimeExports.jsxs("div",{className:classNames$1({"validation-error":pt&&pt.length>0}),style:{width:"100%"},children:[jsxRuntimeExports.jsx(Autosuggest,{suggestions:(Ot==null?void 0:Ot.choices)||[],onSuggestionsFetchRequested:()=>{},onSuggestionsClearRequested:()=>{},getSuggestionValue:this.setSuggestionValue,renderSuggestion:this.renderSuggestion,renderInputComponent:this.renderInputComponent,inputProps:{placeholder:ut,name:lt,value:rt,maxLength:xt,onBlur:Rt=>this.onBlur(),onChange:(Rt,zt)=>this.onChange(Rt,zt),onKeyPress:Rt=>this.onKeyPress(Rt),disabled:nt}}),jsxRuntimeExports.jsx(ErrorInfo,{errors:pt})]})})}}class AutoSuggestText extends reactExports.Component{constructor(rt){super(rt);Nr(this,"inputWidth",0);Nr(this,"container");Nr(this,"resizeId");Nr(this,"RESIZE_TIMEOUT",500);Nr(this,"suggestionList",this.props.suggestionList);Nr(this,"componentDidMount",()=>{this.setSuggestionBoxWidth(),window.addEventListener("resize",()=>{this.resizeId&&clearTimeout(this.resizeId),this.resizeId=setTimeout(this.setSuggestionBoxWidth,this.RESIZE_TIMEOUT)})});Nr(this,"renderSuggestion",rt=>jsxRuntimeExports.jsx("div",{style:{width:this.inputWidth-20},className:"suggestion-container",children:jsxRuntimeExports.jsx("div",{className:"suggestion-item",children:rt.name})}));Nr(this,"renderInputComponent",rt=>jsxRuntimeExports.jsx("input",{...rt,ref:nt=>{rt.ref&&rt.ref(nt),this.container=nt}}));Nr(this,"setSuggestionBoxWidth",()=>{this.container&&(this.inputWidth=this.container.getBoundingClientRect().width)});Nr(this,"setSuggestionValue",rt=>(this.setState({selectedsuggestion:rt.id}),rt.name));Nr(this,"onSuggestionsFetchRequested",({value:rt})=>{const nt=this.getSuggestions(rt);this.setState({suggestions:nt})});Nr(this,"onSuggestionsClearRequested",()=>{this.setState({suggestions:[]})});Nr(this,"updateOnBlur",()=>{if(this.state.selectedsuggestion===void 0){const{suggestions:rt,value:nt}=this.state;if(rt.length===1&&rt[0].name.toLowerCase()===nt.toLowerCase())return!0}return!1});Nr(this,"getSuggestions",rt=>{const nt=rt.trim().toLowerCase();return nt.length===0?[]:this.suggestionList.filter(ut=>ut.name.toLowerCase().includes(nt))});let nt={value:"",suggestions:[]};if(this.props.defaultValue!==void 0&&this.props.suggestionList.find(lt=>lt.id===this.props.defaultValue)){let lt=this.props.suggestionList.find(ut=>ut.id===this.props.defaultValue);nt={...nt,selectedsuggestion:lt.id,value:lt.name}}else this.props.defaultValue&&(nt={...nt,value:this.props.defaultValue});this.state=nt}onChange(rt,{newValue:nt,method:lt}){lt==="type"&&this.setState({selectedsuggestion:void 0}),this.setState({value:nt})}onBlur(){let rt=this.state.selectedsuggestion,nt=this.state.value;this.updateOnBlur()&&(this.setState({selectedsuggestion:this.state.suggestions[0].id,value:this.state.suggestions[0].name}),rt=this.state.suggestions[0].id,nt=this.state.suggestions[0].name),rt||(rt=nt),this.props.onBlur(rt)}onKeyPress(rt){const nt=!isNaN(Number(rt.key.trim()));this.props.preventNumberInput&&nt&&rt.preventDefault()}render(){const{value:rt,suggestions:nt}=this.state,{errors:lt,maxLength:ut}=this.props;return jsxRuntimeExports.jsxs("div",{className:classNames$1({"validation-error":lt&&lt.length>0}),children:[jsxRuntimeExports.jsx(Autosuggest,{suggestions:nt,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:this.setSuggestionValue,renderSuggestion:this.renderSuggestion,renderInputComponent:this.renderInputComponent,inputProps:{placeholder:this.props.placeholder||"",name:this.props.inputName,value:rt,maxLength:ut,onBlur:dt=>this.onBlur(),onChange:(dt,pt)=>this.onChange(dt,pt),onKeyPress:dt=>this.onKeyPress(dt),disabled:this.props.disabled}}),jsxRuntimeExports.jsx(ErrorInfo,{errors:lt})]})}}class Checkbox extends reactExports.Component{constructor(){super(...arguments);Nr(this,"renderLabel",()=>{const{inputLabel:rt,required:nt}=this.props;return typeof rt=="string"?nt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("p",{children:[nt&&jsxRuntimeExports.jsx("span",{style:{color:"red"},children:"*"})," ",jsxRuntimeExports.jsx("span",{children:rt})]})}):jsxRuntimeExports.jsx("span",{children:rt}):rt})}render(){const{inputName:rt,errors:nt,disabled:lt,labelFirst:ut}=this.props,dt=nt&&nt.length>0,pt=`checkbox-label-${rt}`;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("label",{id:pt,className:classNames$1("checkbox-container",{"validation-error":nt&&nt.length>0,"disabled-label":lt,"no-padding":ut}),children:[this.props.isChecked&&!dt&&jsxRuntimeExports.jsx(SvgCheckBoxSelected,{className:classNames$1("icon checkbox-custom",{disabled:this.props.disabled,"checkbox-right":ut,"checkbox-left":!ut})}),!this.props.isChecked&&!dt&&jsxRuntimeExports.jsx(SvgCheckBoxUnselected,{className:classNames$1("icon checkbox-custom",{disabled:this.props.disabled,"checkbox-right":ut,"checkbox-left":!ut})}),dt&&jsxRuntimeExports.jsx(SvgCheckBoxError,{className:classNames$1("icon checkbox-custom",{"checkbox-right":ut,"checkbox-left":!ut})}),jsxRuntimeExports.jsx("input",{type:"checkbox",name:rt,checked:this.props.isChecked,"aria-checked":this.props.isChecked,onChange:()=>{this.props.onChange(!this.props.isChecked)},className:classNames$1("checkbox",{"validation-error":dt}),disabled:this.props.disabled}),this.renderLabel()]}),jsxRuntimeExports.jsx(ErrorInfo,{errors:nt})]})}}const CircleInfo=et=>{const{messages:tt,infoMessages:rt}=et;if(!tt)return jsxRuntimeExports.jsx(reactExports.Fragment,{});const nt=tt.map(lt=>{let ut=lt;return rt&&(ut=rt[lt]),jsxRuntimeExports.jsxs("div",{className:"circle-state",children:[jsxRuntimeExports.jsx(SvgInfo,{className:"icon"}),jsxRuntimeExports.jsx("div",{className:"circle-message",children:ut})]},ut)});return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:nt})},REACT_APP_REGION$s=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$m=REACT_APP_REGION$s;class DropDownField extends reactExports.Component{constructor(){super(...arguments);Nr(this,"onChangeHandler",rt=>{this.props.onChange(rt)})}render(){const{defaultValue:rt,disabled:nt,errors:lt,inputName:ut,options:dt,placeholder:pt,controlled:ht,className:mt,enabledPlaceholder:xt,errorType:Mt,dataTestId:vt}=this.props,Ot={defaultValue:pt,value:pt};return(dt==null?void 0:dt.filter(Rt=>{const zt=Rt.appKey;if(Rt.name===rt||Rt.id===rt||zt===rt)return Rt})).length>0&&rt&&(Ot.defaultValue=rt,Ot.value=rt),ht?delete Ot.defaultValue:delete Ot.value,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("select",{ref:this.props.innerRef,name:ut,className:classNames$1("form-fields-dropdown",{placeholder:!rt},{"validation-error":lt&&lt.length>0},{"UK-dropdown-style":region$m===Region.UK},{"disabled-arrow":nt},mt),onChange:this.onChangeHandler,disabled:nt,"data-test-id":vt,...Ot,children:[jsxRuntimeExports.jsx("option",{className:"placeholder",disabled:!xt,value:pt,children:pt},`option-${this.props.inputKey}`),dt.map((Rt,zt)=>{let Tt=!1,Ct=Rt.id;const It=Rt.appKey;return It&&(Ct=It,Tt=rt===It),jsxRuntimeExports.jsx("option",{value:Ct,defaultChecked:rt===Rt.id||Tt,children:Rt.name},zt)})]},this.props.inputKey),jsxRuntimeExports.jsx(ErrorInfo,{errors:lt,type:Mt})]})}}class ErrorInfo extends reactExports.Component{render(){const{errors:tt,errorMessages:rt,type:nt,link:lt}=this.props;if(!tt)return jsxRuntimeExports.jsx(reactExports.Fragment,{});const ut=tt.map(dt=>{let pt=dt;return pt?(rt&&(pt=rt[dt]),jsxRuntimeExports.jsxs("div",{className:classNames$1("error-state",{"error-state-table-uk":nt==="table-error"},{"error-state-doc-upload":nt==="document-upload-table"}),children:[jsxRuntimeExports.jsx(SvgErrorCross,{className:"icon"}),jsxRuntimeExports.jsxs("div",{className:"error-message",children:[pt,lt!==void 0&&jsxRuntimeExports.jsx("p",{children:lt})]})]},pt)):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})});return jsxRuntimeExports.jsx(reactExports.Fragment,{children:ut})}}class SuccessInfo extends reactExports.Component{render(){const{successes:tt,successMessages:rt}=this.props;if(!tt)return jsxRuntimeExports.jsx(reactExports.Fragment,{});const nt=tt.map(lt=>{let ut=lt;return rt&&(ut=rt[lt]),jsxRuntimeExports.jsxs("div",{className:"success-state",children:[jsxRuntimeExports.jsx(SvgSuccess,{className:"icon"}),jsxRuntimeExports.jsx("div",{className:"success-message",children:ut})]},ut)});return jsxRuntimeExports.jsx(reactExports.Fragment,{children:nt})}}const WarningInfo=({warnings:et,black:tt,warningMessages:rt})=>{if(!et)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const nt=tt?"warning-message-black":"warning-message";return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et.map(lt=>{let ut=lt;return rt&&(ut=rt[lt]),jsxRuntimeExports.jsxs("div",{className:"warning-state",children:[jsxRuntimeExports.jsx(WarningOutlinedIcon,{className:"icon",color:"warning"}),jsxRuntimeExports.jsx("div",{className:nt,children:ut})]},ut)})})};class FreeTextArea extends reactExports.Component{render(){const{defaultValue:tt,disabled:rt,displayInputError:nt,elementRef:lt,errors:ut,inputName:dt,maxLength:pt,placeholder:ht,title:mt,errorMessages:xt,onBlur:Mt}=this.props,vt=ut&&ut.length>0||nt;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[mt&&jsxRuntimeExports.jsx("div",{className:"text-area-title",children:mt}),jsxRuntimeExports.jsx("textarea",{name:dt,className:classNames$1("form-fields-free-text-area",{"validation-error":vt}),defaultValue:tt,placeholder:ht||"",maxLength:pt,ref:lt,disabled:rt,onBlur:Mt,style:{font:"unset"}}),jsxRuntimeExports.jsx(ErrorInfo,{errors:ut,errorMessages:xt})]})}}Nr(FreeTextArea,"defaultProps",{displayInputError:!1});var Tm;let FreeTextField$1=(Tm=class extends reactExports.Component{render(){const{maxLength:tt,errors:rt,inputName:nt,inputType:lt="text",displayInputError:ut,elementRef:dt,onChange:pt,autoComplete:ht="off",errorMessages:mt,className:xt,sideLabel:Mt,onKeyPress:vt,dataTestId:Ot,inputStyle:At,showError:Rt,inputProps:zt}=this.props,Tt=rt&&rt.length>0||ut;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("input",{autoComplete:ht,name:nt,className:classNames$1("form-fields-free-text-field",{"validation-error":Tt,"side-label-field":Mt}),type:lt,defaultValue:this.props.defaultValue,onBlur:this.props.onBlur,onChange:pt,onKeyPress:vt,placeholder:this.props.placeholder!==null?this.props.placeholder:"",maxLength:tt,ref:dt,disabled:this.props.disabled,"data-test-id":Ot,style:At,...zt},this.props.inputKey),Mt&&jsxRuntimeExports.jsx("label",{className:"side-label",children:Mt}),Rt&&jsxRuntimeExports.jsx(ErrorInfo,{errors:rt,errorMessages:mt})]})}},Nr(Tm,"defaultProps",{displayInputError:!1,disabled:!1,showError:!0}),Tm);class HelperText extends reactExports.Component{constructor(){super(...arguments);Nr(this,"getIcon",()=>{const{iconType:rt}=this.props;switch(rt){case 0:return jsxRuntimeExports.jsx("div",{children:"INFO"});case 1:return jsxRuntimeExports.jsx(reactExports.Fragment,{});case 2:return jsxRuntimeExports.jsx(reactExports.Fragment,{});default:return jsxRuntimeExports.jsx(reactExports.Fragment,{})}})}render(){const{icon:rt,helperText:nt,idPrefix:lt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[this.props.children,jsxRuntimeExports.jsxs("div",{id:lt?`${lt}-helper-text`:void 0,className:classNames$1("helper-text",{"with-icon":rt}),children:[rt&&this.getIcon(),jsxRuntimeExports.jsx("span",{children:nt})]})]})}}Nr(HelperText,"defaultProps",{icon:!1});var reactInputMask={exports:{}};function _interopDefault(et){return et&&typeof et=="object"&&"default"in et?et.default:et}var React$1=_interopDefault(reactExports),reactDom=reactDomExports;function _defaults2(et,tt){for(var rt=Object.getOwnPropertyNames(tt),nt=0;nt<rt.length;nt++){var lt=rt[nt],ut=Object.getOwnPropertyDescriptor(tt,lt);ut&&ut.configurable&&et[lt]===void 0&&Object.defineProperty(et,lt,ut)}return et}function _extends$8(){return(_extends$8=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et}).apply(this,arguments)}function _inheritsLoose$1(et,tt){et.prototype=Object.create(tt.prototype),_defaults2(et.prototype.constructor=et,tt)}function _objectWithoutPropertiesLoose$3(et,tt){if(et==null)return{};var rt,nt,lt={},ut=Object.keys(et);for(nt=0;nt<ut.length;nt++)rt=ut[nt],0<=tt.indexOf(rt)||(lt[rt]=et[rt]);return lt}function _assertThisInitialized$1(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}var invariant$2=function(et,tt,rt,nt,lt,ut,dt,pt){if(!et){var ht;if(tt===void 0)ht=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var mt=[rt,nt,lt,ut,dt,pt],xt=0;(ht=new Error(tt.replace(/%s/g,function(){return mt[xt++]}))).name="Invariant Violation"}throw ht.framesToPop=1,ht}},invariant_1=invariant$2;function setInputSelection(et,tt,rt){if("selectionStart"in et&&"selectionEnd"in et)et.selectionStart=tt,et.selectionEnd=rt;else{var nt=et.createTextRange();nt.collapse(!0),nt.moveStart("character",tt),nt.moveEnd("character",rt-tt),nt.select()}}function getInputSelection(et){var tt=0,rt=0;if("selectionStart"in et&&"selectionEnd"in et)tt=et.selectionStart,rt=et.selectionEnd;else{var nt=document.selection.createRange();nt.parentElement()===et&&(tt=-nt.moveStart("character",-et.value.length),rt=-nt.moveEnd("character",-et.value.length))}return{start:tt,end:rt,length:rt-tt}}var defaultFormatChars={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},defaultMaskChar="_";function parseMask(et,tt,rt){var nt="",lt="",ut=null,dt=[];if(tt===void 0&&(tt=defaultMaskChar),rt==null&&(rt=defaultFormatChars),!et||typeof et!="string")return{maskChar:tt,formatChars:rt,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var pt=!1;return et.split("").forEach(function(ht){pt=!pt&&ht==="\\"||(pt||!rt[ht]?(dt.push(nt.length),nt.length===dt.length-1&&(lt+=ht)):ut=nt.length+1,nt+=ht,!1)}),{maskChar:tt,formatChars:rt,prefix:lt,mask:nt,lastEditablePosition:ut,permanents:dt}}function isPermanentCharacter(et,tt){return et.permanents.indexOf(tt)!==-1}function isAllowedCharacter(et,tt,rt){var nt=et.mask,lt=et.formatChars;if(!rt)return!1;if(isPermanentCharacter(et,tt))return nt[tt]===rt;var ut=lt[nt[tt]];return new RegExp(ut).test(rt)}function isEmpty$2(et,tt){return tt.split("").every(function(rt,nt){return isPermanentCharacter(et,nt)||!isAllowedCharacter(et,nt,rt)})}function getFilledLength(et,tt){var rt=et.maskChar,nt=et.prefix;if(!rt){for(;tt.length>nt.length&&isPermanentCharacter(et,tt.length-1);)tt=tt.slice(0,tt.length-1);return tt.length}for(var lt=nt.length,ut=tt.length;ut>=nt.length;ut--){var dt=tt[ut];if(!isPermanentCharacter(et,ut)&&isAllowedCharacter(et,ut,dt)){lt=ut+1;break}}return lt}function isFilled(et,tt){return getFilledLength(et,tt)===et.mask.length}function formatValue$2(et,tt){var rt=et.maskChar,nt=et.mask,lt=et.prefix;if(!rt){for((tt=insertString(et,"",tt,0)).length<lt.length&&(tt=lt);tt.length<nt.length&&isPermanentCharacter(et,tt.length);)tt+=nt[tt.length];return tt}if(tt)return insertString(et,formatValue$2(et,""),tt,0);for(var ut=0;ut<nt.length;ut++)isPermanentCharacter(et,ut)?tt+=nt[ut]:tt+=rt;return tt}function clearRange(et,tt,rt,nt){var lt=rt+nt,ut=et.maskChar,dt=et.mask,pt=et.prefix,ht=tt.split("");if(ut)return ht.map(function(xt,Mt){return Mt<rt||lt<=Mt?xt:isPermanentCharacter(et,Mt)?dt[Mt]:ut}).join("");for(var mt=lt;mt<ht.length;mt++)isPermanentCharacter(et,mt)&&(ht[mt]="");return rt=Math.max(pt.length,rt),ht.splice(rt,lt-rt),tt=ht.join(""),formatValue$2(et,tt)}function insertString(et,tt,rt,nt){var lt=et.mask,ut=et.maskChar,dt=et.prefix,pt=rt.split(""),ht=isFilled(et,tt);return!ut&&nt>tt.length&&(tt+=lt.slice(tt.length,nt)),pt.every(function(mt){for(;Ot=mt,isPermanentCharacter(et,vt=nt)&&Ot!==lt[vt];){if(nt>=tt.length&&(tt+=lt[nt]),xt=mt,Mt=nt,ut&&isPermanentCharacter(et,Mt)&&xt===ut)return!0;if(++nt>=lt.length)return!1}var xt,Mt,vt,Ot;return!isAllowedCharacter(et,nt,mt)&&mt!==ut||(nt<tt.length?tt=ut||ht||nt<dt.length?tt.slice(0,nt)+mt+tt.slice(nt+1):(tt=tt.slice(0,nt)+mt+tt.slice(nt),formatValue$2(et,tt)):ut||(tt+=mt),++nt<lt.length)}),tt}function getInsertStringLength(et,tt,rt,nt){var lt=et.mask,ut=et.maskChar,dt=rt.split(""),pt=nt;return dt.every(function(ht){for(;xt=ht,isPermanentCharacter(et,mt=nt)&&xt!==lt[mt];)if(++nt>=lt.length)return!1;var mt,xt;return(isAllowedCharacter(et,nt,ht)||ht===ut)&&nt++,nt<lt.length}),nt-pt}function getLeftEditablePosition(et,tt){for(var rt=tt;0<=rt;--rt)if(!isPermanentCharacter(et,rt))return rt;return null}function getRightEditablePosition(et,tt){for(var rt=et.mask,nt=tt;nt<rt.length;++nt)if(!isPermanentCharacter(et,nt))return nt;return null}function getStringValue(et){return et||et===0?et+"":""}function processChange(et,tt,rt,nt,lt){var ut=et.mask,dt=et.prefix,pt=et.lastEditablePosition,ht=tt,mt="",xt=0,Mt=0,vt=Math.min(lt.start,rt.start);return rt.end>lt.start?Mt=(xt=getInsertStringLength(et,nt,mt=ht.slice(lt.start,rt.end),vt))?lt.length:0:ht.length<nt.length&&(Mt=nt.length-ht.length),ht=nt,Mt&&(Mt===1&&!lt.length&&(vt=lt.start===rt.start?getRightEditablePosition(et,rt.start):getLeftEditablePosition(et,rt.start)),ht=clearRange(et,ht,vt,Mt)),ht=insertString(et,ht,mt,vt),(vt+=xt)>=ut.length?vt=ut.length:vt<dt.length&&!xt?vt=dt.length:vt>=dt.length&&vt<pt&&xt&&(vt=getRightEditablePosition(et,vt)),mt||(mt=null),{value:ht=formatValue$2(et,ht),enteredString:mt,selection:{start:vt,end:vt}}}function isWindowsPhoneBrowser(){var et=new RegExp("windows","i"),tt=new RegExp("phone","i"),rt=navigator.userAgent;return et.test(rt)&&tt.test(rt)}function isFunction$7(et){return typeof et=="function"}function getRequestAnimationFrame(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function getCancelAnimationFrame(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function defer(et){return(getCancelAnimationFrame()?getRequestAnimationFrame():function(){return setTimeout(et,1e3/60)})(et)}function cancelDefer(et){(getCancelAnimationFrame()||clearTimeout)(et)}var InputElement=function(et){function tt(nt){var lt=et.call(this,nt)||this;lt.focused=!1,lt.mounted=!1,lt.previousSelection=null,lt.selectionDeferId=null,lt.saveSelectionLoopDeferId=null,lt.saveSelectionLoop=function(){lt.previousSelection=lt.getSelection(),lt.saveSelectionLoopDeferId=defer(lt.saveSelectionLoop)},lt.runSaveSelectionLoop=function(){lt.saveSelectionLoopDeferId===null&&lt.saveSelectionLoop()},lt.stopSaveSelectionLoop=function(){lt.saveSelectionLoopDeferId!==null&&(cancelDefer(lt.saveSelectionLoopDeferId),lt.saveSelectionLoopDeferId=null,lt.previousSelection=null)},lt.getInputDOMNode=function(){if(!lt.mounted)return null;var At=reactDom.findDOMNode(_assertThisInitialized$1(_assertThisInitialized$1(lt))),Rt=typeof window<"u"&&At instanceof window.Element;if(At&&!Rt)return null;if(At.nodeName!=="INPUT"&&(At=At.querySelector("input")),!At)throw new Error("react-input-mask: inputComponent doesn't contain input node");return At},lt.getInputValue=function(){var At=lt.getInputDOMNode();return At?At.value:null},lt.setInputValue=function(At){var Rt=lt.getInputDOMNode();Rt&&(lt.value=At,Rt.value=At)},lt.setCursorToEnd=function(){var At=getFilledLength(lt.maskOptions,lt.value),Rt=getRightEditablePosition(lt.maskOptions,At);Rt!==null&&lt.setCursorPosition(Rt)},lt.setSelection=function(At,Rt,zt){zt===void 0&&(zt={});var Tt=lt.getInputDOMNode(),Ct=lt.isFocused();Tt&&Ct&&(zt.deferred||setInputSelection(Tt,At,Rt),lt.selectionDeferId!==null&&cancelDefer(lt.selectionDeferId),lt.selectionDeferId=defer(function(){lt.selectionDeferId=null,setInputSelection(Tt,At,Rt)}),lt.previousSelection={start:At,end:Rt,length:Math.abs(Rt-At)})},lt.getSelection=function(){return getInputSelection(lt.getInputDOMNode())},lt.getCursorPosition=function(){return lt.getSelection().start},lt.setCursorPosition=function(At){lt.setSelection(At,At)},lt.isFocused=function(){return lt.focused},lt.getBeforeMaskedValueChangeConfig=function(){var At=lt.maskOptions,Rt=At.mask,zt=At.maskChar,Tt=At.permanents,Ct=At.formatChars;return{mask:Rt,maskChar:zt,permanents:Tt,alwaysShowMask:!!lt.props.alwaysShowMask,formatChars:Ct}},lt.isInputAutofilled=function(At,Rt,zt,Tt){var Ct=lt.getInputDOMNode();try{if(Ct.matches(":-webkit-autofill"))return!0}catch{}return!lt.focused||Tt.end<zt.length&&Rt.end===At.length},lt.onChange=function(At){var Rt=_assertThisInitialized$1(_assertThisInitialized$1(lt)).beforePasteState,zt=_assertThisInitialized$1(_assertThisInitialized$1(lt)).previousSelection,Tt=lt.props.beforeMaskedValueChange,Ct=lt.getInputValue(),It=lt.value,Dt=lt.getSelection();lt.isInputAutofilled(Ct,Dt,It,zt)&&(It=formatValue$2(lt.maskOptions,""),zt={start:0,end:0,length:0}),Rt&&(zt=Rt.selection,It=Rt.value,Dt={start:zt.start+Ct.length,end:zt.start+Ct.length,length:0},Ct=It.slice(0,zt.start)+Ct+It.slice(zt.end),lt.beforePasteState=null);var kt=processChange(lt.maskOptions,Ct,Dt,It,zt),qt=kt.enteredString,Nt=kt.selection,Yt=kt.value;if(isFunction$7(Tt)){var Kt=Tt({value:Yt,selection:Nt},{value:It,selection:zt},qt,lt.getBeforeMaskedValueChangeConfig());Yt=Kt.value,Nt=Kt.selection}lt.setInputValue(Yt),isFunction$7(lt.props.onChange)&&lt.props.onChange(At),lt.isWindowsPhoneBrowser?lt.setSelection(Nt.start,Nt.end,{deferred:!0}):lt.setSelection(Nt.start,Nt.end)},lt.onFocus=function(At){var Rt=lt.props.beforeMaskedValueChange,zt=lt.maskOptions,Tt=zt.mask,Ct=zt.prefix;if(lt.focused=!0,lt.mounted=!0,Tt){if(lt.value)getFilledLength(lt.maskOptions,lt.value)<lt.maskOptions.mask.length&&lt.setCursorToEnd();else{var It=formatValue$2(lt.maskOptions,Ct),Dt=formatValue$2(lt.maskOptions,It),kt=getFilledLength(lt.maskOptions,Dt),qt=getRightEditablePosition(lt.maskOptions,kt),Nt={start:qt,end:qt};if(isFunction$7(Rt)){var Yt=Rt({value:Dt,selection:Nt},{value:lt.value,selection:null},null,lt.getBeforeMaskedValueChangeConfig());Dt=Yt.value,Nt=Yt.selection}var Kt=Dt!==lt.getInputValue();Kt&&lt.setInputValue(Dt),Kt&&isFunction$7(lt.props.onChange)&&lt.props.onChange(At),lt.setSelection(Nt.start,Nt.end)}lt.runSaveSelectionLoop()}isFunction$7(lt.props.onFocus)&&lt.props.onFocus(At)},lt.onBlur=function(At){var Rt=lt.props.beforeMaskedValueChange,zt=lt.maskOptions.mask;if(lt.stopSaveSelectionLoop(),lt.focused=!1,zt&&!lt.props.alwaysShowMask&&isEmpty$2(lt.maskOptions,lt.value)){var Tt="";isFunction$7(Rt)&&(Tt=Rt({value:Tt,selection:null},{value:lt.value,selection:lt.previousSelection},null,lt.getBeforeMaskedValueChangeConfig()).value);var Ct=Tt!==lt.getInputValue();Ct&&lt.setInputValue(Tt),Ct&&isFunction$7(lt.props.onChange)&&lt.props.onChange(At)}isFunction$7(lt.props.onBlur)&&lt.props.onBlur(At)},lt.onMouseDown=function(At){if(!lt.focused&&document.addEventListener){lt.mouseDownX=At.clientX,lt.mouseDownY=At.clientY,lt.mouseDownTime=new Date().getTime();var Rt=function zt(Tt){if(document.removeEventListener("mouseup",zt),lt.focused){var Ct=Math.abs(Tt.clientX-lt.mouseDownX),It=Math.abs(Tt.clientY-lt.mouseDownY),Dt=Math.max(Ct,It),kt=new Date().getTime()-lt.mouseDownTime;(Dt<=10&&kt<=200||Dt<=5&&kt<=300)&&lt.setCursorToEnd()}};document.addEventListener("mouseup",Rt)}isFunction$7(lt.props.onMouseDown)&&lt.props.onMouseDown(At)},lt.onPaste=function(At){isFunction$7(lt.props.onPaste)&&lt.props.onPaste(At),At.defaultPrevented||(lt.beforePasteState={value:lt.getInputValue(),selection:lt.getSelection()},lt.setInputValue(""))},lt.handleRef=function(At){lt.props.children==null&&isFunction$7(lt.props.inputRef)&&lt.props.inputRef(At)};var ut=nt.mask,dt=nt.maskChar,pt=nt.formatChars,ht=nt.alwaysShowMask,mt=nt.beforeMaskedValueChange,xt=nt.defaultValue,Mt=nt.value;lt.maskOptions=parseMask(ut,dt,pt),xt==null&&(xt=""),Mt==null&&(Mt=xt);var vt=getStringValue(Mt);if(lt.maskOptions.mask&&(ht||vt)&&(vt=formatValue$2(lt.maskOptions,vt),isFunction$7(mt))){var Ot=nt.value;nt.value==null&&(Ot=xt),vt=mt({value:vt,selection:null},{value:Ot=getStringValue(Ot),selection:null},null,lt.getBeforeMaskedValueChangeConfig()).value}return lt.value=vt,lt}_inheritsLoose$1(tt,et);var rt=tt.prototype;return rt.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=isWindowsPhoneBrowser(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},rt.componentDidUpdate=function(){var nt=this.previousSelection,lt=this.props,ut=lt.beforeMaskedValueChange,dt=lt.alwaysShowMask,pt=lt.mask,ht=lt.maskChar,mt=lt.formatChars,xt=this.maskOptions,Mt=dt||this.isFocused(),vt=this.props.value!=null,Ot=vt?getStringValue(this.props.value):this.value,At=nt?nt.start:null;if(this.maskOptions=parseMask(pt,ht,mt),this.maskOptions.mask){!xt.mask&&this.isFocused()&&this.runSaveSelectionLoop();var Rt=this.maskOptions.mask&&this.maskOptions.mask!==xt.mask;if(xt.mask||vt||(Ot=this.getInputValue()),(Rt||this.maskOptions.mask&&(Ot||Mt))&&(Ot=formatValue$2(this.maskOptions,Ot)),Rt){var zt=getFilledLength(this.maskOptions,Ot);(At===null||zt<At)&&(At=isFilled(this.maskOptions,Ot)?zt:getRightEditablePosition(this.maskOptions,zt))}!this.maskOptions.mask||!isEmpty$2(this.maskOptions,Ot)||Mt||vt&&this.props.value||(Ot="");var Tt={start:At,end:At};if(isFunction$7(ut)){var Ct=ut({value:Ot,selection:Tt},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());Ot=Ct.value,Tt=Ct.selection}this.value=Ot;var It=this.getInputValue()!==this.value;It?(this.setInputValue(this.value),this.forceUpdate()):Rt&&this.forceUpdate();var Dt=!1;Tt.start!=null&&Tt.end!=null&&(Dt=!nt||nt.start!==Tt.start||nt.end!==Tt.end),(Dt||It)&&this.setSelection(Tt.start,Tt.end)}else xt.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},rt.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&cancelDefer(this.selectionDeferId),this.stopSaveSelectionLoop()},rt.render=function(){var nt,lt=this.props,ut=(lt.mask,lt.alwaysShowMask,lt.maskChar,lt.formatChars,lt.inputRef,lt.beforeMaskedValueChange,lt.children),dt=_objectWithoutPropertiesLoose$3(lt,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(ut){isFunction$7(ut)||invariant_1(!1);var pt=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],ht=_extends$8({},dt);pt.forEach(function(xt){return delete ht[xt]}),nt=ut(ht),pt.filter(function(xt){return nt.props[xt]!=null&&nt.props[xt]!==dt[xt]}).length&&invariant_1(!1)}else nt=React$1.createElement("input",_extends$8({ref:this.handleRef},dt));var mt={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(dt.disabled||dt.readOnly||(mt.onChange=this.onChange,mt.onPaste=this.onPaste,mt.onMouseDown=this.onMouseDown),dt.value!=null&&(mt.value=this.value)),nt=React$1.cloneElement(nt,mt)},tt}(React$1.Component),reactInputMask_production_min=InputElement;reactInputMask.exports=reactInputMask_production_min;var reactInputMaskExports=reactInputMask.exports;const InputMask=getDefaultExportFromCjs$1(reactInputMaskExports);var zm;let MaskField$1=(zm=class extends reactExports.Component{render(){const{errors:tt,inputName:rt,inputType:nt="text",displayInputError:lt,elementRef:ut,onChange:dt,autoComplete:pt="off",mask:ht,dataTestId:mt}=this.props,xt=tt&&tt.length>0||lt;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(InputMask,{autoComplete:pt,mask:ht,alwaysShowMask:!0,name:rt,className:classNames$1("form-fields-free-text-field ",{"validation-error":xt}),type:nt,defaultValue:this.props.defaultValue,onBlur:this.props.onBlur,onChange:dt,ref:ut,disabled:this.props.disabled,"data-test-id":mt}),jsxRuntimeExports.jsx(ErrorInfo,{errors:tt})]})}},Nr(zm,"defaultProps",{displayInputError:!1,disabled:!1}),zm);var Im;let FormSegmentField$1=(Im=class extends reactExports.Component{render(){const{props:{isValid:tt,htmlFor:rt,title:nt,required:lt,hideOptional:ut}}=this;return jsxRuntimeExports.jsxs("div",{"data-test-id":`section-${rt}`,className:"form-section-field",style:{display:"flex",flexWrap:"wrap",alignItems:"baseline"},children:[jsxRuntimeExports.jsx("label",{style:{flex:"1 1 100%"},className:classNames$1("field-label",{"validation-error-text":!tt},this.props.additionalClassNames?this.props.additionalClassNames:null),htmlFor:rt,children:`${nt}${!ut&&!lt?" (optional)":""}`}),this.props.children]})}},Nr(Im,"defaultProps",{additionalClassNames:null,required:!0,isValid:!0}),Im);const REACT_APP_REGION$r=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$l=REACT_APP_REGION$r;class SegmentedInput extends reactExports.Component{constructor(rt){super(rt);Nr(this,"getDefaultSelectedOption",rt=>{let nt;return rt.defaultSelected!==void 0&&rt.defaultSelected!==null&&(nt=rt.options.filter(lt=>{if(lt.id===this.parseDefaultValue(rt.defaultSelected))return!0;const ut=lt.appKey;return!!(ut&&ut===rt.defaultSelected)})[0]),nt});Nr(this,"setSelectedItem",rt=>{const{itemSelected:nt,optionAreBoolean:lt}=this.props;this.setState({selectedOption:rt});let ut=rt;lt&&(ut=this.convertFromStringToBoolean(rt.id)),nt(ut)});Nr(this,"getChecked",rt=>this.state.selectedOption!=null?rt===this.state.selectedOption.id:!1);Nr(this,"parseDefaultValue",rt=>{if(typeof rt=="string")return rt;if(rt)return"1";if(rt===!1)return"2"});Nr(this,"convertFromStringToBoolean",rt=>rt==="1");const nt=this.getDefaultSelectedOption(rt);this.state={getDefaultValue:this.getDefaultSelectedOption.bind(this),selectedOption:nt}}static getDerivedStateFromProps(rt,nt){const lt=nt.getDefaultValue(rt);return nt.selectedOption!==lt&&(nt.selectedOption=lt),nt}render(){const{fieldName:rt,options:nt,errors:lt}=this.props,ut=nt.map((dt,pt)=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("input",{type:"radio",radioGroup:rt,value:dt.id,id:`${rt}_${dt.name}`,checked:this.getChecked(dt.id),"aria-checked":this.getChecked(dt.id),onChange:()=>this.setSelectedItem(dt),disabled:this.props.disabled}),jsxRuntimeExports.jsx("label",{className:classNames$1({"disabled-label":this.props.disabled},{"UK-label-style":region$l===Region.UK}),htmlFor:`${rt}-${dt.name}`,onClick:()=>{this.props.disabled||this.setSelectedItem(dt)},children:dt.name})]},pt)},pt));return jsxRuntimeExports.jsxs("div",{style:{width:"100%"},children:[jsxRuntimeExports.jsx("div",{className:classNames$1("segmented-control",{"segmented-error":lt&&lt.length>0},rt),children:ut}),jsxRuntimeExports.jsx(ErrorInfo,{errors:lt})]})}}const WIDTH="79px",LESS_THAN_OR_EQUAL$1="≤",CONSTRAINT_OPERATOR_OPTIONS=[{value:LESS_THAN_OR_EQUAL$1,label:LESS_THAN_OR_EQUAL$1},{value:"<",label:"<"}],VOL_SECOND_VALUE_UNIT_OPTIONS=[{value:"%",label:"%"},{value:"cc",label:"cc"}],D_FIRST_VALUE_UNIT_OPTIONS=[{value:"%",label:"%"},{value:"cc",label:"cc"}],ROConstraintRow=et=>{const{id:tt,required:rt}=et,nt=et.index===0?et.label:" ",{doseUnit:lt}=reactExports.useContext(TenantContext),ut=et.value,dt=et.value.firstValueUnit||lt,pt=et.value.secondValueUnit||"%",ht=et.value.operator||LESS_THAN_OR_EQUAL$1,mt=et.isVolumeData,xt=[{value:lt,label:lt},{value:"%",label:"%"}],Mt=mt?xt:D_FIRST_VALUE_UNIT_OPTIONS,vt=mt?VOL_SECOND_VALUE_UNIT_OPTIONS:xt;return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",paddingBottom:1,alignItems:"center",children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",width:"200px",minWidth:"200px",justifyContent:"space-between",alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{"data-testid":`label-${tt}`,variant:"body1",children:rt?`${nt}*`:nt}),!mt&&jsxRuntimeExports.jsxs(BaseTextField,{size:"small",id:`${tt}-prefixOperator`,select:!0,value:ut.dosetoPrefixOperator,disabled:et.disabled,sx:{width:"4rem",marginRight:"4px"},onChange:Ot=>{et.onChange&&(ut.dosetoPrefixOperator=Ot.target.value,et.onChange(et.index,ut))},children:[jsxRuntimeExports.jsx(MenuItem,{value:"",children:"blank"}),jsxRuntimeExports.jsx(MenuItem,{value:">",children:">"})]})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,children:[jsxRuntimeExports.jsx(Grid,{item:!0,container:!0,xs:10,children:jsxRuntimeExports.jsxs(Grid,{item:!0,container:!0,gap:"4px",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx(BaseTextField,{id:`firstValue-${tt}`,type:"number",value:et.value.firstValue||"",onChange:Ot=>{const At=Ot.target.value;et.onChange&&(ut.firstValue=At||void 0,et.onChange(et.index,ut))},disabled:et.disabled,onBlur:()=>{et.onBlur&&et.onBlur()}})}),jsxRuntimeExports.jsx(Grid,{item:!0,children:jsxRuntimeExports.jsx(BaseSelect,{id:`firstValueUnit-${tt}`,onChange:Ot=>{const At=Ot.target.value;et.onChange&&(ut.firstValueUnit=At,et.onChange(et.index,ut))},value:dt,options:Mt,disabled:et.disabled,sx:{width:WIDTH}})}),jsxRuntimeExports.jsx(Grid,{item:!0,children:jsxRuntimeExports.jsxs("div",{className:"oar-operator",children:[jsxRuntimeExports.jsx("div",{className:"oar-vertical-border-line"}),jsxRuntimeExports.jsx(BaseSelect,{id:`oarOperator-${tt}`,onChange:Ot=>{const At=Ot.target.value;et.onChange&&(ut.operator=At,et.onChange(et.index,ut))},value:ht,options:CONSTRAINT_OPERATOR_OPTIONS,disabled:et.disabled,sx:{width:WIDTH}}),jsxRuntimeExports.jsx("div",{className:"oar-vertical-border-line"})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,md:3,children:jsxRuntimeExports.jsx(ROTwoValueTextField,{id:`secondValue-${tt}`,value:et.value.secondValue||[""],onChange:Ot=>{et.onChange&&(ut.secondValue=Ot||void 0,et.onChange(et.index,ut))},onBlur:()=>{et.onBlur&&et.onBlur()},readOnly:et.disabled})}),jsxRuntimeExports.jsx(Grid,{item:!0,children:jsxRuntimeExports.jsx(BaseSelect,{id:`secondValueUnit-${tt}`,onChange:Ot=>{const At=Ot.target.value;et.onChange&&(ut.secondValueUnit=At,et.onChange(et.index,ut))},value:pt,options:vt,disabled:et.disabled,sx:{width:WIDTH}})})]})}),et.length>1&&jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx(Button,{variant:"text",onClick:()=>et.removeConstraint(),startIcon:jsxRuntimeExports.jsx(RemoveCircleOutline,{color:"primary"}),children:"Remove"})}),et.length<=1&&jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx("div",{})})]})]})},ROConstraintField=et=>{const{doseUnit:tt}=reactExports.useContext(TenantContext),rt=()=>{et.addConstraint&&et.addConstraint()},nt=pt=>{et.removeConstraint&&et.removeConstraint(pt)},{id:lt,label:ut}=et,dt=et.value&&et.value.length?et.value:[{firstValue:void 0,firstValueUnit:et.isVolumeData?tt:"%",operator:LESS_THAN_OR_EQUAL$1,secondValue:void 0,secondValueUnit:et.isVolumeData?"%":tt}];return jsxRuntimeExports.jsxs("div",{children:[dt.map((pt,ht)=>jsxRuntimeExports.jsx(ROConstraintRow,{removeConstraint:()=>nt(ht),index:ht,value:pt,id:`${lt}-${ht}`,placeholder:et.placeholder,label:et.label,onChange:et.onChange,disabled:et.readOnly,length:dt.length,isVolumeData:et.isVolumeData},ut+ht)),jsxRuntimeExports.jsx(Stack$5,{id:"imagingAdd",marginLeft:"200px",width:"fit-content",children:jsxRuntimeExports.jsx(Button,{style:{display:"flex",alignItems:"center"},onClick:()=>{rt()},variant:"text",startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),disabled:et.readOnly,children:"Add constraint"})})]})},ROTwoValueTextField=et=>{const[tt,rt]=reactExports.useState("");reactExports.useEffect(()=>{et.value&&(Array.isArray(et.value)?rt(et.value.join("/")):rt(et.value))},[et.value]);const nt=()=>{et.onBlur&&et.onBlur()},{placeholder:lt,required:ut,readOnly:dt,id:pt}=et;return jsxRuntimeExports.jsx(BaseTextField,{id:pt||void 0,type:"text",placeholder:lt||"",value:tt||"",onChange:ht=>{const mt=ht.target.value;/^$|^(\d+(\.\d{0,3})?)((\/)(\d+(\.\d{0,3})?)?)?$/g.test(mt)&&rt(mt)},onBlur:()=>{if(et.onChange){let ht=tt.split("/");ht=ht.filter(mt=>mt!==""),et.onChange(ht)}nt&&nt()},required:ut||!1,disabled:dt||!1})},SEARCH_DROPDOWN_PLACEHOLDER$1="Start typing or choose from dropdown...",ChildSectionWrapper=styled$1("div")`
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};

  & p {
    margin-left: 16px;
  }
  .gc-form-label {
    margin-right: -17px;
    margin-left: 16px;
  }
`,getBorderColor=(et,tt,rt)=>{const nt=useTheme$1();return et?nt.palette.error.main:tt?nt.palette.warning.dark:rt?nt.palette.info.main:nt.palette.grey[300]},ROHelperText=({id:et,error:tt,warning:rt,info:nt,helperText:lt})=>{const ut=getBorderColor(tt,rt,nt),dt=tt?HighlightOffIcon:rt||nt?ErrorOutlineIcon:null,pt=()=>tt&&!lt?"This field is required":lt||null;return pt()?jsxRuntimeExports.jsxs(Stack$5,{component:"span",direction:"row",gap:.5,color:ut,alignItems:"center",children:[dt&&jsxRuntimeExports.jsx(dt,{sx:{width:"16px",height:"16px"}}),jsxRuntimeExports.jsx(Typography,{variant:"caption",color:ut,"data-testid":`helper-text-${et}`,children:pt()})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},BaseTextField=({error:et,warning:tt,info:rt,helperText:nt,neverShowHelper:lt,alwaysShowHelper:ut,sx:dt,size:pt,maxLength:ht,inputProps:mt,autoComplete:xt,fieldLabel:Mt,...vt})=>{const Ot=getBorderColor(et,tt,rt),At=!lt&&(ut||et||tt||rt),Rt={error:et,warning:tt,info:rt,helperText:nt,id:vt.id},zt=et||tt||rt?{".MuiOutlinedInput-notchedOutline":{border:`1px solid ${Ot} !important`},":hover .MuiOutlinedInput-notchedOutline":{border:`2px solid ${Ot} !important`}}:{".MuiOutlinedInput-notchedOutline":{},":hover .MuiOutlinedInput-notchedOutline":{}},Tt={'input[type="number"]::-webkit-inner-spin-button':{"-webkit-appearance":"none",margin:0},'input[type="number"]::-webkit-outer-spin-button':{"-webkit-appearance":"none",margin:0},".MuiFormHelperText-root":{marginLeft:0},...zt,...dt},Ct={maxLength:ht||200,"data-testid":vt.id,...mt};return jsxRuntimeExports.jsx(TextField,{sx:Tt,inputProps:Ct,size:pt||"small",label:Mt,autoComplete:xt||"off",helperText:At?jsxRuntimeExports.jsx(ROHelperText,{...Rt}):void 0,...vt})},FormRow$1=({id:et,fieldlabel:tt,required:rt,children:nt,alignItems:lt="baseline",tooltip:ut,requiredFieldColor:dt,indent:pt=!1})=>{const ht=rt?jsxRuntimeExports.jsxs("div",{children:[tt,jsxRuntimeExports.jsx("span",{style:{color:dt||"black"},children:"*"})]}):tt;return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:lt,sx:{marginBottom:"1rem"},gap:1,children:[jsxRuntimeExports.jsxs(Stack$5,{gap:"6px",direction:"row",alignItems:"center",sx:{width:"280px",minWidth:"280px",marginBottom:"auto",marginTop:"6px"},children:[jsxRuntimeExports.jsx(Typography,{"data-testid":`label-${et}`,variant:"body1",paddingLeft:pt?2:0,children:ht}),ut??void 0]}),nt]})},ROTextField=et=>{const{requiredFieldColor:tt,indent:rt,...nt}=et,{fullWidth:lt,error:ut,warning:dt,info:pt,fieldlabel:ht,id:mt,required:xt,tooltip:Mt}=et,vt=ut?"error":dt?"warning":pt?"info":"primary";return jsxRuntimeExports.jsx(FormRow$1,{fieldlabel:ht,id:mt,required:xt,tooltip:Mt,requiredFieldColor:tt,indent:rt,children:jsxRuntimeExports.jsx(BaseTextField,{...nt,fullWidth:lt===void 0?!0:lt,color:vt,sx:{maxWidth:"400px",minWidth:"250px",...et==null?void 0:et.sx}})})},_excluded$y=["localeText"],MuiPickersAdapterContext=reactExports.createContext(null),LocalizationProvider=function(tt){const{localeText:rt}=tt,nt=_objectWithoutPropertiesLoose$d(tt,_excluded$y),{utils:lt,localeText:ut}=reactExports.useContext(MuiPickersAdapterContext)??{utils:void 0,localeText:void 0},dt=useThemeProps({props:nt,name:"MuiLocalizationProvider"}),{children:pt,dateAdapter:ht,dateFormats:mt,dateLibInstance:xt,adapterLocale:Mt,localeText:vt}=dt,Ot=reactExports.useMemo(()=>_extends$j({},vt,ut,rt),[vt,ut,rt]),At=reactExports.useMemo(()=>{if(!ht)return lt||null;const Tt=new ht({locale:Mt,formats:mt,instance:xt});if(!Tt.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
`));return Tt},[ht,Mt,mt,xt,lt]),Rt=reactExports.useMemo(()=>At?{minDate:At.date("1900-01-01T00:00:00.000"),maxDate:At.date("2099-12-31T00:00:00.000")}:null,[At]),zt=reactExports.useMemo(()=>({utils:At,defaultDates:Rt,localeText:Ot}),[Rt,At,Ot]);return jsxRuntimeExports.jsx(MuiPickersAdapterContext.Provider,{value:zt,children:pt})},getPickersLocalization=et=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:_extends$j({},et)}}}}),buildGetOpenDialogAriaText=et=>{const{utils:tt,formatKey:rt,contextTranslation:nt,propsTranslation:lt}=et;return ut=>{const dt=ut!==null&&tt.isValid(ut)?tt.format(ut,rt):null;return(lt??nt)(ut,tt,dt)}},enUSPickers={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:et=>et==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(et,tt,rt,nt)=>`Select ${et}. ${!nt&&(tt===null||!rt.isValid(tt))?"No time selected":`Selected time is ${nt??rt.format(tt,"fullTime")}`}`,hoursClockNumberText:et=>`${et} hours`,minutesClockNumberText:et=>`${et} minutes`,secondsClockNumberText:et=>`${et} seconds`,selectViewText:et=>`Select ${et}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:et=>`Week ${et}`,calendarWeekNumberText:et=>`${et}`,openDatePickerDialogue:(et,tt,rt)=>rt||et!==null&&tt.isValid(et)?`Choose date, selected date is ${rt??tt.format(et,"fullDate")}`:"Choose date",openTimePickerDialogue:(et,tt,rt)=>rt||et!==null&&tt.isValid(et)?`Choose time, selected time is ${rt??tt.format(et,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:et=>"Y".repeat(et.digitAmount),fieldMonthPlaceholder:et=>et.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:et=>et.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},DEFAULT_LOCALE=enUSPickers;getPickersLocalization(enUSPickers);const useLocalizationContext=()=>{const et=reactExports.useContext(MuiPickersAdapterContext);if(et===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
`));if(et.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
`));const tt=reactExports.useMemo(()=>_extends$j({},DEFAULT_LOCALE,et.localeText),[et.localeText]);return reactExports.useMemo(()=>_extends$j({},et,{localeText:tt}),[et,tt])},useUtils=()=>useLocalizationContext().utils,useDefaultDates=()=>useLocalizationContext().defaultDates,useNow=et=>{const tt=useUtils(),rt=reactExports.useRef();return rt.current===void 0&&(rt.current=tt.date(void 0,et)),rt.current},usePickersTranslations=()=>useLocalizationContext().localeText,ArrowDropDownIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ArrowLeftIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),ArrowRightIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),CalendarIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");createSvgIcon$1(jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),jsxRuntimeExports.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");createSvgIcon$1(jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),jsxRuntimeExports.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const ClearIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function getPickersArrowSwitcherUtilityClass(et){return generateUtilityClass("MuiPickersArrowSwitcher",et)}generateUtilityClasses("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const _excluded$x=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],_excluded2$8=["ownerState"],_excluded3$3=["ownerState"],PickersArrowSwitcherRoot=styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"flex"}),PickersArrowSwitcherSpacer=styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(et,tt)=>tt.spacer})(({theme:et})=>({width:et.spacing(3)})),PickersArrowSwitcherButton=styled(IconButton,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(et,tt)=>tt.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),useUtilityClasses$l=et=>{const{classes:tt}=et;return composeClasses({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},getPickersArrowSwitcherUtilityClass,tt)},PickersArrowSwitcher=reactExports.forwardRef(function(tt,rt){const nt=useRtl(),lt=useThemeProps({props:tt,name:"MuiPickersArrowSwitcher"}),{children:ut,className:dt,slots:pt,slotProps:ht,isNextDisabled:mt,isNextHidden:xt,onGoToNext:Mt,nextLabel:vt,isPreviousDisabled:Ot,isPreviousHidden:At,onGoToPrevious:Rt,previousLabel:zt,labelId:Tt}=lt,Ct=_objectWithoutPropertiesLoose$d(lt,_excluded$x),It=lt,Dt=useUtilityClasses$l(It),kt={isDisabled:mt,isHidden:xt,goTo:Mt,label:vt},qt={isDisabled:Ot,isHidden:At,goTo:Rt,label:zt},Nt=(pt==null?void 0:pt.previousIconButton)??PickersArrowSwitcherButton,Yt=useSlotProps({elementType:Nt,externalSlotProps:ht==null?void 0:ht.previousIconButton,additionalProps:{size:"medium",title:qt.label,"aria-label":qt.label,disabled:qt.isDisabled,edge:"end",onClick:qt.goTo},ownerState:_extends$j({},It,{hidden:qt.isHidden}),className:clsx(Dt.button,Dt.previousIconButton)}),Kt=(pt==null?void 0:pt.nextIconButton)??PickersArrowSwitcherButton,Jt=useSlotProps({elementType:Kt,externalSlotProps:ht==null?void 0:ht.nextIconButton,additionalProps:{size:"medium",title:kt.label,"aria-label":kt.label,disabled:kt.isDisabled,edge:"start",onClick:kt.goTo},ownerState:_extends$j({},It,{hidden:kt.isHidden}),className:clsx(Dt.button,Dt.nextIconButton)}),Qt=(pt==null?void 0:pt.leftArrowIcon)??ArrowLeftIcon,Bt=useSlotProps({elementType:Qt,externalSlotProps:ht==null?void 0:ht.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:It,className:Dt.leftArrowIcon}),Ft=_objectWithoutPropertiesLoose$d(Bt,_excluded2$8),$t=(pt==null?void 0:pt.rightArrowIcon)??ArrowRightIcon,jt=useSlotProps({elementType:$t,externalSlotProps:ht==null?void 0:ht.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:It,className:Dt.rightArrowIcon}),Wt=_objectWithoutPropertiesLoose$d(jt,_excluded3$3);return jsxRuntimeExports.jsxs(PickersArrowSwitcherRoot,_extends$j({ref:rt,className:clsx(Dt.root,dt),ownerState:It},Ct,{children:[jsxRuntimeExports.jsx(Nt,_extends$j({},Yt,{children:nt?jsxRuntimeExports.jsx($t,_extends$j({},Wt)):jsxRuntimeExports.jsx(Qt,_extends$j({},Ft))})),ut?jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",component:"span",id:Tt,children:ut}):jsxRuntimeExports.jsx(PickersArrowSwitcherSpacer,{className:Dt.spacer,ownerState:It}),jsxRuntimeExports.jsx(Kt,_extends$j({},Jt,{children:nt?jsxRuntimeExports.jsx(Qt,_extends$j({},Ft)):jsxRuntimeExports.jsx($t,_extends$j({},Wt))}))]}))}),areViewsEqual=(et,tt)=>et.length!==tt.length?!1:tt.every(rt=>et.includes(rt)),applyDefaultViewProps=({openTo:et,defaultOpenTo:tt,views:rt,defaultViews:nt})=>{const lt=rt??nt;let ut;if(et!=null)ut=et;else if(lt.includes(tt))ut=tt;else if(lt.length>0)ut=lt[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:lt,openTo:ut}},timeViews=["hours","minutes","seconds"],isTimeView=et=>timeViews.includes(et),getSecondsInDay=(et,tt)=>tt.getHours(et)*3600+tt.getMinutes(et)*60+tt.getSeconds(et),createIsAfterIgnoreDatePart=(et,tt)=>(rt,nt)=>et?tt.isAfter(rt,nt):getSecondsInDay(rt,tt)>getSecondsInDay(nt,tt);function useViews({onChange:et,onViewChange:tt,openTo:rt,view:nt,views:lt,autoFocus:ut,focusedView:dt,onFocusedViewChange:pt}){const ht=reactExports.useRef(rt),mt=reactExports.useRef(lt),xt=reactExports.useRef(lt.includes(rt)?rt:lt[0]),[Mt,vt]=useControlled({name:"useViews",state:"view",controlled:nt,default:xt.current}),Ot=reactExports.useRef(ut?Mt:null),[At,Rt]=useControlled({name:"useViews",state:"focusedView",controlled:dt,default:Ot.current});reactExports.useEffect(()=>{(ht.current&&ht.current!==rt||mt.current&&mt.current.some(Nt=>!lt.includes(Nt)))&&(vt(lt.includes(rt)?rt:lt[0]),mt.current=lt,ht.current=rt)},[rt,vt,Mt,lt]);const zt=lt.indexOf(Mt),Tt=lt[zt-1]??null,Ct=lt[zt+1]??null,It=useEventCallback$1((Nt,Yt)=>{Rt(Yt?Nt:Kt=>Nt===Kt?null:Kt),pt==null||pt(Nt,Yt)}),Dt=useEventCallback$1(Nt=>{It(Nt,!0),Nt!==Mt&&(vt(Nt),tt&&tt(Nt))}),kt=useEventCallback$1(()=>{Ct&&Dt(Ct)}),qt=useEventCallback$1((Nt,Yt,Kt)=>{const Jt=Yt==="finish",Qt=Kt?lt.indexOf(Kt)<lt.length-1:!!Ct;if(et(Nt,Jt&&Qt?"partial":Yt,Kt),Kt&&Kt!==Mt){const Ft=lt[lt.indexOf(Kt)+1];Ft&&Dt(Ft)}else Jt&&kt()});return{view:Mt,setView:Dt,focusedView:At,setFocusedView:It,nextView:Ct,previousView:Tt,defaultView:lt.includes(rt)?rt:lt[0],goToNextView:kt,setValueAndGoToNextView:qt}}function useNextMonthDisabled(et,{disableFuture:tt,maxDate:rt,timezone:nt}){const lt=useUtils();return reactExports.useMemo(()=>{const ut=lt.date(void 0,nt),dt=lt.startOfMonth(tt&&lt.isBefore(ut,rt)?ut:rt);return!lt.isAfter(dt,et)},[tt,rt,et,lt,nt])}function usePreviousMonthDisabled(et,{disablePast:tt,minDate:rt,timezone:nt}){const lt=useUtils();return reactExports.useMemo(()=>{const ut=lt.date(void 0,nt),dt=lt.startOfMonth(tt&&lt.isAfter(ut,rt)?ut:rt);return!lt.isBefore(dt,et)},[tt,rt,et,lt,nt])}const DAY_SIZE=36,DAY_MARGIN=2,DIALOG_WIDTH=320,MAX_CALENDAR_HEIGHT=280,VIEW_HEIGHT=336,PickerViewRoot=styled("div")({overflow:"hidden",width:DIALOG_WIDTH,maxHeight:VIEW_HEIGHT,display:"flex",flexDirection:"column",margin:"0 auto"}),mergeDateAndTime=(et,tt,rt)=>{let nt=tt;return nt=et.setHours(nt,et.getHours(rt)),nt=et.setMinutes(nt,et.getMinutes(rt)),nt=et.setSeconds(nt,et.getSeconds(rt)),nt=et.setMilliseconds(nt,et.getMilliseconds(rt)),nt},findClosestEnabledDate=({date:et,disableFuture:tt,disablePast:rt,maxDate:nt,minDate:lt,isDateDisabled:ut,utils:dt,timezone:pt})=>{const ht=mergeDateAndTime(dt,dt.date(void 0,pt),et);rt&&dt.isBefore(lt,ht)&&(lt=ht),tt&&dt.isAfter(nt,ht)&&(nt=ht);let mt=et,xt=et;for(dt.isBefore(et,lt)&&(mt=lt,xt=null),dt.isAfter(et,nt)&&(xt&&(xt=nt),mt=null);mt||xt;){if(mt&&dt.isAfter(mt,nt)&&(mt=null),xt&&dt.isBefore(xt,lt)&&(xt=null),mt){if(!ut(mt))return mt;mt=dt.addDays(mt,1)}if(xt){if(!ut(xt))return xt;xt=dt.addDays(xt,-1)}}return null},replaceInvalidDateByNull=(et,tt)=>tt==null||!et.isValid(tt)?null:tt,applyDefaultDate=(et,tt,rt)=>tt==null||!et.isValid(tt)?rt:tt,areDatesEqual=(et,tt,rt)=>!et.isValid(tt)&&tt!=null&&!et.isValid(rt)&&rt!=null?!0:et.isEqual(tt,rt),getMonthsInYear=(et,tt)=>{const nt=[et.startOfYear(tt)];for(;nt.length<12;){const lt=nt[nt.length-1];nt.push(et.addMonths(lt,1))}return nt},getTodayDate=(et,tt,rt)=>rt==="date"?et.startOfDay(et.date(void 0,tt)):et.date(void 0,tt),dateViews=["year","month","day"],isDatePickerView=et=>dateViews.includes(et),resolveDateFormat=(et,{format:tt,views:rt},nt)=>{if(tt!=null)return tt;const lt=et.formats;return areViewsEqual(rt,["year"])?lt.year:areViewsEqual(rt,["month"])?lt.month:areViewsEqual(rt,["day"])?lt.dayOfMonth:areViewsEqual(rt,["month","year"])?`${lt.month} ${lt.year}`:areViewsEqual(rt,["day","month"])?`${lt.month} ${lt.dayOfMonth}`:nt?/en/.test(et.getCurrentLocaleCode())?lt.normalDateWithWeekday:lt.normalDate:lt.keyboardDate},getWeekdays=(et,tt)=>{const rt=et.startOfWeek(tt);return[0,1,2,3,4,5,6].map(nt=>et.addDays(rt,nt))},useValueWithTimezone=({timezone:et,value:tt,defaultValue:rt,onChange:nt,valueManager:lt})=>{const ut=useUtils(),dt=reactExports.useRef(rt),pt=tt??dt.current??lt.emptyValue,ht=reactExports.useMemo(()=>lt.getTimezone(ut,pt),[ut,lt,pt]),mt=useEventCallback$1(Ot=>ht==null?Ot:lt.setTimezone(ut,ht,Ot)),xt=et??ht??"default",Mt=reactExports.useMemo(()=>lt.setTimezone(ut,xt,pt),[lt,ut,xt,pt]),vt=useEventCallback$1((Ot,...At)=>{const Rt=mt(Ot);nt==null||nt(Rt,...At)});return{value:Mt,handleValueChange:vt,timezone:xt}},useControlledValueWithTimezone=({name:et,timezone:tt,value:rt,defaultValue:nt,onChange:lt,valueManager:ut})=>{const[dt,pt]=useControlled({name:et,state:"value",controlled:rt,default:nt??ut.emptyValue}),ht=useEventCallback$1((mt,...xt)=>{pt(mt),lt==null||lt(mt,...xt)});return useValueWithTimezone({timezone:tt,value:dt,defaultValue:void 0,onChange:ht,valueManager:ut})},SECTION_TYPE_GRANULARITY={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},getSectionTypeGranularity=et=>Math.max(...et.map(tt=>SECTION_TYPE_GRANULARITY[tt.type]??1)),roundDate=(et,tt,rt)=>{if(tt===SECTION_TYPE_GRANULARITY.year)return et.startOfYear(rt);if(tt===SECTION_TYPE_GRANULARITY.month)return et.startOfMonth(rt);if(tt===SECTION_TYPE_GRANULARITY.day)return et.startOfDay(rt);let nt=rt;return tt<SECTION_TYPE_GRANULARITY.minutes&&(nt=et.setMinutes(nt,0)),tt<SECTION_TYPE_GRANULARITY.seconds&&(nt=et.setSeconds(nt,0)),tt<SECTION_TYPE_GRANULARITY.milliseconds&&(nt=et.setMilliseconds(nt,0)),nt},getDefaultReferenceDate=({props:et,utils:tt,granularity:rt,timezone:nt,getTodayDate:lt})=>{let ut=lt?lt():roundDate(tt,rt,getTodayDate(tt,nt));et.minDate!=null&&tt.isAfterDay(et.minDate,ut)&&(ut=roundDate(tt,rt,et.minDate)),et.maxDate!=null&&tt.isBeforeDay(et.maxDate,ut)&&(ut=roundDate(tt,rt,et.maxDate));const dt=createIsAfterIgnoreDatePart(et.disableIgnoringDatePartForTimeValidation??!1,tt);return et.minTime!=null&&dt(et.minTime,ut)&&(ut=roundDate(tt,rt,et.disableIgnoringDatePartForTimeValidation?et.minTime:mergeDateAndTime(tt,ut,et.minTime))),et.maxTime!=null&&dt(ut,et.maxTime)&&(ut=roundDate(tt,rt,et.disableIgnoringDatePartForTimeValidation?et.maxTime:mergeDateAndTime(tt,ut,et.maxTime))),ut},getDateSectionConfigFromFormatToken=(et,tt)=>{const rt=et.formatTokenMap[tt];if(rt==null)throw new Error([`MUI X: The token "${tt}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
`));return typeof rt=="string"?{type:rt,contentType:rt==="meridiem"?"letter":"digit",maxLength:void 0}:{type:rt.sectionType,contentType:rt.contentType,maxLength:rt.maxLength}},getDeltaFromKeyCode=et=>{switch(et){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},getDaysInWeekStr=(et,tt,rt)=>{const nt=[],lt=et.date(void 0,tt),ut=et.startOfWeek(lt),dt=et.endOfWeek(lt);let pt=ut;for(;et.isBefore(pt,dt);)nt.push(pt),pt=et.addDays(pt,1);return nt.map(ht=>et.formatByString(ht,rt))},getLetterEditingOptions=(et,tt,rt,nt)=>{switch(rt){case"month":return getMonthsInYear(et,et.date(void 0,tt)).map(lt=>et.formatByString(lt,nt));case"weekDay":return getDaysInWeekStr(et,tt,nt);case"meridiem":{const lt=et.date(void 0,tt);return[et.startOfDay(lt),et.endOfDay(lt)].map(ut=>et.formatByString(ut,nt))}default:return[]}},FORMAT_SECONDS_NO_LEADING_ZEROS="s",NON_LOCALIZED_DIGITS=["0","1","2","3","4","5","6","7","8","9"],getLocalizedDigits=et=>{const tt=et.date(void 0);return et.formatByString(et.setSeconds(tt,0),FORMAT_SECONDS_NO_LEADING_ZEROS)==="0"?NON_LOCALIZED_DIGITS:Array.from({length:10}).map((nt,lt)=>et.formatByString(et.setSeconds(tt,lt),FORMAT_SECONDS_NO_LEADING_ZEROS))},removeLocalizedDigits=(et,tt)=>{if(tt[0]==="0")return et;const rt=[];let nt="";for(let lt=0;lt<et.length;lt+=1){nt+=et[lt];const ut=tt.indexOf(nt);ut>-1&&(rt.push(ut.toString()),nt="")}return rt.join("")},applyLocalizedDigits=(et,tt)=>tt[0]==="0"?et:et.split("").map(rt=>tt[Number(rt)]).join(""),isStringNumber=(et,tt)=>{const rt=removeLocalizedDigits(et,tt);return rt!==" "&&!Number.isNaN(Number(rt))},cleanLeadingZeros=(et,tt)=>{let rt=et;for(rt=Number(rt).toString();rt.length<tt;)rt=`0${rt}`;return rt},cleanDigitSectionValue=(et,tt,rt,nt,lt)=>{if(lt.type==="day"&&lt.contentType==="digit-with-letter"){const dt=et.setDate(rt.longestMonth,tt);return et.formatByString(dt,lt.format)}let ut=tt.toString();return lt.hasLeadingZerosInInput&&(ut=cleanLeadingZeros(ut,lt.maxLength)),applyLocalizedDigits(ut,nt)},adjustSectionValue=(et,tt,rt,nt,lt,ut,dt,pt)=>{const ht=getDeltaFromKeyCode(nt),mt=nt==="Home",xt=nt==="End",Mt=rt.value===""||mt||xt,vt=()=>{const At=lt[rt.type]({currentDate:dt,format:rt.format,contentType:rt.contentType}),Rt=It=>cleanDigitSectionValue(et,It,At,ut,rt),zt=rt.type==="minutes"&&(pt!=null&&pt.minutesStep)?pt.minutesStep:1;let Ct=parseInt(removeLocalizedDigits(rt.value,ut),10)+ht*zt;if(Mt){if(rt.type==="year"&&!xt&&!mt)return et.formatByString(et.date(void 0,tt),rt.format);ht>0||mt?Ct=At.minimum:Ct=At.maximum}return Ct%zt!==0&&((ht<0||mt)&&(Ct+=zt-(zt+Ct)%zt),(ht>0||xt)&&(Ct-=Ct%zt)),Ct>At.maximum?Rt(At.minimum+(Ct-At.maximum-1)%(At.maximum-At.minimum+1)):Ct<At.minimum?Rt(At.maximum-(At.minimum-Ct-1)%(At.maximum-At.minimum+1)):Rt(Ct)},Ot=()=>{const At=getLetterEditingOptions(et,tt,rt.type,rt.format);if(At.length===0)return rt.value;if(Mt)return ht>0||mt?At[0]:At[At.length-1];const Tt=((At.indexOf(rt.value)+ht)%At.length+At.length)%At.length;return At[Tt]};return rt.contentType==="digit"||rt.contentType==="digit-with-letter"?vt():Ot()},getSectionVisibleValue=(et,tt,rt)=>{let nt=et.value||et.placeholder;const lt=tt==="non-input"?et.hasLeadingZerosInFormat:et.hasLeadingZerosInInput;return tt==="non-input"&&et.hasLeadingZerosInInput&&!et.hasLeadingZerosInFormat&&(nt=Number(removeLocalizedDigits(nt,rt)).toString()),["input-rtl","input-ltr"].includes(tt)&&et.contentType==="digit"&&!lt&&nt.length===1&&(nt=`${nt}‎`),tt==="input-rtl"&&(nt=`⁨${nt}⁩`),nt},changeSectionValueFormat=(et,tt,rt,nt)=>et.formatByString(et.parse(tt,rt),nt),isFourDigitYearFormat=(et,tt,rt)=>et.formatByString(et.date(void 0,tt),rt).length===4,doesSectionFormatHaveLeadingZeros=(et,tt,rt,nt,lt)=>{if(rt!=="digit")return!1;const ut=et.date(void 0,tt);switch(nt){case"year":return isFourDigitYearFormat(et,tt,lt)?et.formatByString(et.setYear(ut,1),lt)==="0001":et.formatByString(et.setYear(ut,2001),lt)==="01";case"month":return et.formatByString(et.startOfYear(ut),lt).length>1;case"day":return et.formatByString(et.startOfMonth(ut),lt).length>1;case"weekDay":return et.formatByString(et.startOfWeek(ut),lt).length>1;case"hours":return et.formatByString(et.setHours(ut,1),lt).length>1;case"minutes":return et.formatByString(et.setMinutes(ut,1),lt).length>1;case"seconds":return et.formatByString(et.setSeconds(ut,1),lt).length>1;default:throw new Error("Invalid section type")}},getDateFromDateSections=(et,tt,rt)=>{const nt=tt.some(ht=>ht.type==="day"),lt=[],ut=[];for(let ht=0;ht<tt.length;ht+=1){const mt=tt[ht];nt&&mt.type==="weekDay"||(lt.push(mt.format),ut.push(getSectionVisibleValue(mt,"non-input",rt)))}const dt=lt.join(" "),pt=ut.join(" ");return et.parse(pt,dt)},createDateStrForV7HiddenInputFromSections=et=>et.map(tt=>`${tt.startSeparator}${tt.value||tt.placeholder}${tt.endSeparator}`).join(""),createDateStrForV6InputFromSections=(et,tt,rt)=>{const lt=et.map(ut=>{const dt=getSectionVisibleValue(ut,rt?"input-rtl":"input-ltr",tt);return`${ut.startSeparator}${dt}${ut.endSeparator}`}).join("");return rt?`⁦${lt}⁩`:lt},getSectionsBoundaries=(et,tt,rt)=>{const nt=et.date(void 0,rt),lt=et.endOfYear(nt),ut=et.endOfDay(nt),{maxDaysInMonth:dt,longestMonth:pt}=getMonthsInYear(et,nt).reduce((ht,mt)=>{const xt=et.getDaysInMonth(mt);return xt>ht.maxDaysInMonth?{maxDaysInMonth:xt,longestMonth:mt}:ht},{maxDaysInMonth:0,longestMonth:null});return{year:({format:ht})=>({minimum:0,maximum:isFourDigitYearFormat(et,rt,ht)?9999:99}),month:()=>({minimum:1,maximum:et.getMonth(lt)+1}),day:({currentDate:ht})=>({minimum:1,maximum:ht!=null&&et.isValid(ht)?et.getDaysInMonth(ht):dt,longestMonth:pt}),weekDay:({format:ht,contentType:mt})=>{if(mt==="digit"){const xt=getDaysInWeekStr(et,rt,ht).map(Number);return{minimum:Math.min(...xt),maximum:Math.max(...xt)}}return{minimum:1,maximum:7}},hours:({format:ht})=>{const mt=et.getHours(ut);return removeLocalizedDigits(et.formatByString(et.endOfDay(nt),ht),tt)!==mt.toString()?{minimum:1,maximum:Number(removeLocalizedDigits(et.formatByString(et.startOfDay(nt),ht),tt))}:{minimum:0,maximum:mt}},minutes:()=>({minimum:0,maximum:et.getMinutes(ut)}),seconds:()=>({minimum:0,maximum:et.getSeconds(ut)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},transferDateSectionValue=(et,tt,rt,nt,lt)=>{switch(rt.type){case"year":return et.setYear(lt,et.getYear(nt));case"month":return et.setMonth(lt,et.getMonth(nt));case"weekDay":{const ut=getDaysInWeekStr(et,tt,rt.format),dt=et.formatByString(nt,rt.format),pt=ut.indexOf(dt),mt=ut.indexOf(rt.value)-pt;return et.addDays(nt,mt)}case"day":return et.setDate(lt,et.getDate(nt));case"meridiem":{const ut=et.getHours(nt)<12,dt=et.getHours(lt);return ut&&dt>=12?et.addHours(lt,-12):!ut&&dt<12?et.addHours(lt,12):lt}case"hours":return et.setHours(lt,et.getHours(nt));case"minutes":return et.setMinutes(lt,et.getMinutes(nt));case"seconds":return et.setSeconds(lt,et.getSeconds(nt));default:return lt}},reliableSectionModificationOrder={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},mergeDateIntoReferenceDate=(et,tt,rt,nt,lt,ut)=>[...nt].sort((dt,pt)=>reliableSectionModificationOrder[dt.type]-reliableSectionModificationOrder[pt.type]).reduce((dt,pt)=>!ut||pt.modified?transferDateSectionValue(et,tt,pt,rt,dt):dt,lt),isAndroid=()=>navigator.userAgent.toLowerCase().includes("android"),getSectionOrder=(et,tt)=>{const rt={};if(!tt)return et.forEach((ht,mt)=>{const xt=mt===0?null:mt-1,Mt=mt===et.length-1?null:mt+1;rt[mt]={leftIndex:xt,rightIndex:Mt}}),{neighbors:rt,startIndex:0,endIndex:et.length-1};const nt={},lt={};let ut=0,dt=0,pt=et.length-1;for(;pt>=0;){dt=et.findIndex((ht,mt)=>{var xt;return mt>=ut&&((xt=ht.endSeparator)==null?void 0:xt.includes(" "))&&ht.endSeparator!==" / "}),dt===-1&&(dt=et.length-1);for(let ht=dt;ht>=ut;ht-=1)lt[ht]=pt,nt[pt]=ht,pt-=1;ut=dt+1}return et.forEach((ht,mt)=>{const xt=lt[mt],Mt=xt===0?null:nt[xt-1],vt=xt===et.length-1?null:nt[xt+1];rt[mt]={leftIndex:Mt,rightIndex:vt}}),{neighbors:rt,startIndex:nt[0],endIndex:nt[et.length-1]}},parseSelectedSections=(et,tt)=>et==null?null:et==="all"?"all":typeof et=="string"?tt.findIndex(rt=>rt.type===et):et,getSectionValueText=(et,tt)=>{if(et.value)switch(et.type){case"month":{if(et.contentType==="digit")return tt.format(tt.setMonth(tt.date(),Number(et.value)-1),"month");const rt=tt.parse(et.value,et.format);return rt?tt.format(rt,"month"):void 0}case"day":return et.contentType==="digit"?tt.format(tt.setDate(tt.startOfYear(tt.date()),Number(et.value)),"dayOfMonthFull"):et.value;case"weekDay":return;default:return}},getSectionValueNow=(et,tt)=>{if(et.value)switch(et.type){case"weekDay":return et.contentType==="letter"?void 0:Number(et.value);case"meridiem":{const rt=tt.parse(`01:00 ${et.value}`,`${tt.formats.hours12h}:${tt.formats.minutes} ${et.format}`);return rt?tt.getHours(rt)>=12?1:0:void 0}case"day":return et.contentType==="digit-with-letter"?parseInt(et.value,10):Number(et.value);case"month":{if(et.contentType==="digit")return Number(et.value);const rt=tt.parse(et.value,et.format);return rt?tt.getMonth(rt)+1:void 0}default:return et.contentType!=="letter"?Number(et.value):void 0}},_excluded$w=["value","referenceDate"],singleItemValueManager={emptyValue:null,getTodayValue:getTodayDate,getInitialReferenceValue:et=>{let{value:tt,referenceDate:rt}=et,nt=_objectWithoutPropertiesLoose$d(et,_excluded$w);return tt!=null&&nt.utils.isValid(tt)?tt:rt??getDefaultReferenceDate(nt)},cleanValue:replaceInvalidDateByNull,areValuesEqual:areDatesEqual,isSameError:(et,tt)=>et===tt,hasError:et=>et!=null,defaultErrorState:null,getTimezone:(et,tt)=>tt==null||!et.isValid(tt)?null:et.getTimezone(tt),setTimezone:(et,tt,rt)=>rt==null?null:et.setTimezone(rt,tt)},singleItemFieldValueManager={updateReferenceValue:(et,tt,rt)=>tt==null||!et.isValid(tt)?rt:tt,getSectionsFromValue:(et,tt,rt,nt)=>!et.isValid(tt)&&!!rt?rt:nt(tt),getV7HiddenInputValueFromSections:createDateStrForV7HiddenInputFromSections,getV6InputValueFromSections:createDateStrForV6InputFromSections,getActiveDateManager:(et,tt)=>({date:tt.value,referenceDate:tt.referenceValue,getSections:rt=>rt,getNewValuesFromNewActiveDate:rt=>({value:rt,referenceValue:rt==null||!et.isValid(rt)?tt.referenceValue:rt})}),parseValueStr:(et,tt,rt)=>rt(et.trim(),tt)};function getPickersDayUtilityClass(et){return generateUtilityClass("MuiPickersDay",et)}const pickersDayClasses=generateUtilityClasses("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),_excluded$v=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],useUtilityClasses$k=et=>{const{selected:tt,disableMargin:rt,disableHighlightToday:nt,today:lt,disabled:ut,outsideCurrentMonth:dt,showDaysOutsideCurrentMonth:pt,classes:ht}=et,mt=dt&&!pt;return composeClasses({root:["root",tt&&!mt&&"selected",ut&&"disabled",!rt&&"dayWithMargin",!nt&&lt&&"today",dt&&pt&&"dayOutsideMonth",mt&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},getPickersDayUtilityClass,ht)},styleArg=({theme:et})=>_extends$j({},et.typography.caption,{width:DAY_SIZE,height:DAY_SIZE,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:et.transitions.create("background-color",{duration:et.transitions.duration.short}),color:(et.vars||et).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha$1(et.palette.primary.main,et.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:et.vars?`rgba(${et.vars.palette.primary.mainChannel} / ${et.vars.palette.action.focusOpacity})`:alpha$1(et.palette.primary.main,et.palette.action.focusOpacity),[`&.${pickersDayClasses.selected}`]:{willChange:"background-color",backgroundColor:(et.vars||et).palette.primary.dark}},[`&.${pickersDayClasses.selected}`]:{color:(et.vars||et).palette.primary.contrastText,backgroundColor:(et.vars||et).palette.primary.main,fontWeight:et.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(et.vars||et).palette.primary.dark}},[`&.${pickersDayClasses.disabled}:not(.${pickersDayClasses.selected})`]:{color:(et.vars||et).palette.text.disabled},[`&.${pickersDayClasses.disabled}&.${pickersDayClasses.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${DAY_MARGIN}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(et.vars||et).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${pickersDayClasses.selected})`]:{border:`1px solid ${(et.vars||et).palette.text.secondary}`}}}]}),overridesResolver=(et,tt)=>{const{ownerState:rt}=et;return[tt.root,!rt.disableMargin&&tt.dayWithMargin,!rt.disableHighlightToday&&rt.today&&tt.today,!rt.outsideCurrentMonth&&rt.showDaysOutsideCurrentMonth&&tt.dayOutsideMonth,rt.outsideCurrentMonth&&!rt.showDaysOutsideCurrentMonth&&tt.hiddenDaySpacingFiller]},PickersDayRoot=styled(ButtonBase,{name:"MuiPickersDay",slot:"Root",overridesResolver})(styleArg),PickersDayFiller=styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver})(({theme:et})=>_extends$j({},styleArg({theme:et}),{opacity:0,pointerEvents:"none"})),noop$7=()=>{},PickersDayRaw=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersDay"}),{autoFocus:lt=!1,className:ut,day:dt,disabled:pt=!1,disableHighlightToday:ht=!1,disableMargin:mt=!1,isAnimating:xt,onClick:Mt,onDaySelect:vt,onFocus:Ot=noop$7,onBlur:At=noop$7,onKeyDown:Rt=noop$7,onMouseDown:zt=noop$7,onMouseEnter:Tt=noop$7,outsideCurrentMonth:Ct,selected:It=!1,showDaysOutsideCurrentMonth:Dt=!1,children:kt,today:qt=!1}=nt,Nt=_objectWithoutPropertiesLoose$d(nt,_excluded$v),Yt=_extends$j({},nt,{autoFocus:lt,disabled:pt,disableHighlightToday:ht,disableMargin:mt,selected:It,showDaysOutsideCurrentMonth:Dt,today:qt}),Kt=useUtilityClasses$k(Yt),Jt=useUtils(),Qt=reactExports.useRef(null),Bt=useForkRef(Qt,rt);useEnhancedEffect(()=>{lt&&!pt&&!xt&&!Ct&&Qt.current.focus()},[lt,pt,xt,Ct]);const Ft=jt=>{zt(jt),Ct&&jt.preventDefault()},$t=jt=>{pt||vt(dt),Ct&&jt.currentTarget.focus(),Mt&&Mt(jt)};return Ct&&!Dt?jsxRuntimeExports.jsx(PickersDayFiller,{className:clsx(Kt.root,Kt.hiddenDaySpacingFiller,ut),ownerState:Yt,role:Nt.role}):jsxRuntimeExports.jsx(PickersDayRoot,_extends$j({className:clsx(Kt.root,ut),ref:Bt,centerRipple:!0,disabled:pt,tabIndex:It?0:-1,onKeyDown:jt=>Rt(jt,dt),onFocus:jt=>Ot(jt,dt),onBlur:jt=>At(jt,dt),onMouseEnter:jt=>Tt(jt,dt),onClick:$t,onMouseDown:Ft},Nt,{ownerState:Yt,children:kt||Jt.format(dt,"dayOfMonth")}))}),PickersDay=reactExports.memo(PickersDayRaw),validateDate=({props:et,value:tt,timezone:rt,adapter:nt})=>{if(tt===null)return null;const{shouldDisableDate:lt,shouldDisableMonth:ut,shouldDisableYear:dt,disablePast:pt,disableFuture:ht}=et,mt=nt.utils.date(void 0,rt),xt=applyDefaultDate(nt.utils,et.minDate,nt.defaultDates.minDate),Mt=applyDefaultDate(nt.utils,et.maxDate,nt.defaultDates.maxDate);switch(!0){case!nt.utils.isValid(tt):return"invalidDate";case!!(lt&&lt(tt)):return"shouldDisableDate";case!!(ut&&ut(tt)):return"shouldDisableMonth";case!!(dt&&dt(tt)):return"shouldDisableYear";case!!(ht&&nt.utils.isAfterDay(tt,mt)):return"disableFuture";case!!(pt&&nt.utils.isBeforeDay(tt,mt)):return"disablePast";case!!(xt&&nt.utils.isBeforeDay(tt,xt)):return"minDate";case!!(Mt&&nt.utils.isAfterDay(tt,Mt)):return"maxDate";default:return null}};validateDate.valueManager=singleItemValueManager;const DATE_VALIDATION_PROP_NAMES=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],TIME_VALIDATION_PROP_NAMES=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],DATE_TIME_VALIDATION_PROP_NAMES=["minDateTime","maxDateTime"],VALIDATION_PROP_NAMES=[...DATE_VALIDATION_PROP_NAMES,...TIME_VALIDATION_PROP_NAMES,...DATE_TIME_VALIDATION_PROP_NAMES],extractValidationProps=et=>VALIDATION_PROP_NAMES.reduce((tt,rt)=>(et.hasOwnProperty(rt)&&(tt[rt]=et[rt]),tt),{});function useValidation(et){const{props:tt,validator:rt,value:nt,timezone:lt,onError:ut}=et,dt=useLocalizationContext(),pt=reactExports.useRef(rt.valueManager.defaultErrorState),ht=rt({adapter:dt,value:nt,timezone:lt,props:tt}),mt=rt.valueManager.hasError(ht);reactExports.useEffect(()=>{ut&&!rt.valueManager.isSameError(ht,pt.current)&&ut(ht,nt),pt.current=ht},[rt,ut,ht,nt]);const xt=useEventCallback$1(Mt=>rt({adapter:dt,value:Mt,timezone:lt,props:tt}));return{validationError:ht,hasValidationError:mt,getValidationErrorForNewValue:xt}}const expandFormat=({utils:et,format:tt})=>{let rt=10,nt=tt,lt=et.expandFormat(tt);for(;lt!==nt;)if(nt=lt,lt=et.expandFormat(nt),rt-=1,rt<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return lt},getEscapedPartsFromFormat=({utils:et,expandedFormat:tt})=>{const rt=[],{start:nt,end:lt}=et.escapedCharacters,ut=new RegExp(`(\\${nt}[^\\${lt}]*\\${lt})+`,"g");let dt=null;for(;dt=ut.exec(tt);)rt.push({start:dt.index,end:ut.lastIndex-1});return rt},getSectionPlaceholder=(et,tt,rt,nt,lt)=>{switch(nt.type){case"year":return rt.fieldYearPlaceholder({digitAmount:et.formatByString(et.date(void 0,tt),lt).length,format:lt});case"month":return rt.fieldMonthPlaceholder({contentType:nt.contentType,format:lt});case"day":return rt.fieldDayPlaceholder({format:lt});case"weekDay":return rt.fieldWeekDayPlaceholder({contentType:nt.contentType,format:lt});case"hours":return rt.fieldHoursPlaceholder({format:lt});case"minutes":return rt.fieldMinutesPlaceholder({format:lt});case"seconds":return rt.fieldSecondsPlaceholder({format:lt});case"meridiem":return rt.fieldMeridiemPlaceholder({format:lt});default:return lt}},createSection=({utils:et,timezone:tt,date:rt,shouldRespectLeadingZeros:nt,localeText:lt,localizedDigits:ut,now:dt,token:pt,startSeparator:ht})=>{if(pt==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const mt=getDateSectionConfigFromFormatToken(et,pt),xt=doesSectionFormatHaveLeadingZeros(et,tt,mt.contentType,mt.type,pt),Mt=nt?xt:mt.contentType==="digit",vt=rt!=null&&et.isValid(rt);let Ot=vt?et.formatByString(rt,pt):"",At=null;if(Mt)if(xt)At=Ot===""?et.formatByString(dt,pt).length:Ot.length;else{if(mt.maxLength==null)throw new Error(`MUI X: The token ${pt} should have a 'maxDigitNumber' property on it's adapter`);At=mt.maxLength,vt&&(Ot=applyLocalizedDigits(cleanLeadingZeros(removeLocalizedDigits(Ot,ut),At),ut))}return _extends$j({},mt,{format:pt,maxLength:At,value:Ot,placeholder:getSectionPlaceholder(et,tt,lt,mt,pt),hasLeadingZerosInFormat:xt,hasLeadingZerosInInput:Mt,startSeparator:ht,endSeparator:"",modified:!1})},buildSections=et=>{var Ot;const{utils:tt,expandedFormat:rt,escapedParts:nt}=et,lt=tt.date(void 0),ut=[];let dt="";const pt=Object.keys(tt.formatTokenMap).sort((At,Rt)=>Rt.length-At.length),ht=/^([a-zA-Z]+)/,mt=new RegExp(`^(${pt.join("|")})*$`),xt=new RegExp(`^(${pt.join("|")})`),Mt=At=>nt.find(Rt=>Rt.start<=At&&Rt.end>=At);let vt=0;for(;vt<rt.length;){const At=Mt(vt),Rt=At!=null,zt=(Ot=ht.exec(rt.slice(vt)))==null?void 0:Ot[1];if(!Rt&&zt!=null&&mt.test(zt)){let Tt=zt;for(;Tt.length>0;){const Ct=xt.exec(Tt)[1];Tt=Tt.slice(Ct.length),ut.push(createSection(_extends$j({},et,{now:lt,token:Ct,startSeparator:dt}))),dt=""}vt+=zt.length}else{const Tt=rt[vt];Rt&&(At==null?void 0:At.start)===vt||(At==null?void 0:At.end)===vt||(ut.length===0?dt+=Tt:ut[ut.length-1].endSeparator+=Tt),vt+=1}}return ut.length===0&&dt.length>0&&ut.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:dt,endSeparator:"",modified:!1}),ut},postProcessSections=({isRtl:et,formatDensity:tt,sections:rt})=>rt.map(nt=>{const lt=ut=>{let dt=ut;return et&&dt!==null&&dt.includes(" ")&&(dt=`⁩${dt}⁦`),tt==="spacious"&&["/",".","-"].includes(dt)&&(dt=` ${dt} `),dt};return nt.startSeparator=lt(nt.startSeparator),nt.endSeparator=lt(nt.endSeparator),nt}),buildSectionsFromFormat=et=>{let tt=expandFormat(et);et.isRtl&&et.enableAccessibleFieldDOMStructure&&(tt=tt.split(" ").reverse().join(" "));const rt=getEscapedPartsFromFormat(_extends$j({},et,{expandedFormat:tt})),nt=buildSections(_extends$j({},et,{expandedFormat:tt,escapedParts:rt}));return postProcessSections(_extends$j({},et,{sections:nt}))},useFieldState=et=>{const tt=useUtils(),rt=usePickersTranslations(),nt=useLocalizationContext(),lt=useRtl(),{valueManager:ut,fieldValueManager:dt,valueType:pt,validator:ht,internalProps:mt,internalProps:{value:xt,defaultValue:Mt,referenceDate:vt,onChange:Ot,format:At,formatDensity:Rt="dense",selectedSections:zt,onSelectedSectionsChange:Tt,shouldRespectLeadingZeros:Ct=!1,timezone:It,enableAccessibleFieldDOMStructure:Dt=!1}}=et,{timezone:kt,value:qt,handleValueChange:Nt}=useValueWithTimezone({timezone:It,value:xt,defaultValue:Mt,onChange:Ot,valueManager:ut}),Yt=reactExports.useMemo(()=>getLocalizedDigits(tt),[tt]),Kt=reactExports.useMemo(()=>getSectionsBoundaries(tt,Yt,kt),[tt,Yt,kt]),Jt=reactExports.useCallback((or,rr=null)=>dt.getSectionsFromValue(tt,or,rr,cr=>buildSectionsFromFormat({utils:tt,timezone:kt,localeText:rt,localizedDigits:Yt,format:At,date:cr,formatDensity:Rt,shouldRespectLeadingZeros:Ct,enableAccessibleFieldDOMStructure:Dt,isRtl:lt})),[dt,At,rt,Yt,lt,Ct,tt,Rt,kt,Dt]),[Qt,Bt]=reactExports.useState(()=>{const or=Jt(qt),rr={sections:or,value:qt,referenceValue:ut.emptyValue,tempValueStrAndroid:null},cr=getSectionTypeGranularity(or),ir=ut.getInitialReferenceValue({referenceDate:vt,value:qt,utils:tt,props:mt,granularity:cr,timezone:kt});return _extends$j({},rr,{referenceValue:ir})}),[Ft,$t]=useControlled({controlled:zt,default:null,name:"useField",state:"selectedSections"}),jt=or=>{$t(or),Tt==null||Tt(or)},Wt=reactExports.useMemo(()=>parseSelectedSections(Ft,Qt.sections),[Ft,Qt.sections]),Ut=Wt==="all"?0:Wt,Vt=({value:or,referenceValue:rr,sections:cr})=>{if(Bt(dr=>_extends$j({},dr,{sections:cr,value:or,referenceValue:rr,tempValueStrAndroid:null})),ut.areValuesEqual(tt,Qt.value,or))return;const ir={validationError:ht({adapter:nt,value:or,timezone:kt,props:mt})};Nt(or,ir)},Ht=(or,rr)=>{const cr=[...Qt.sections];return cr[or]=_extends$j({},cr[or],{value:rr,modified:!0}),cr},Gt=()=>{Vt({value:ut.emptyValue,referenceValue:Qt.referenceValue,sections:Jt(ut.emptyValue)})},Zt=()=>{if(Ut==null)return;const or=Qt.sections[Ut],rr=dt.getActiveDateManager(tt,Qt,or),ir=rr.getSections(Qt.sections).filter(ar=>ar.value!=="").length===(or.value===""?0:1),dr=Ht(Ut,""),gr=ir?null:tt.getInvalidDate(),br=rr.getNewValuesFromNewActiveDate(gr);Vt(_extends$j({},br,{sections:dr}))},Xt=or=>{const rr=(dr,gr)=>{const br=tt.parse(dr,At);if(br==null||!tt.isValid(br))return null;const ar=buildSectionsFromFormat({utils:tt,timezone:kt,localeText:rt,localizedDigits:Yt,format:At,date:br,formatDensity:Rt,shouldRespectLeadingZeros:Ct,enableAccessibleFieldDOMStructure:Dt,isRtl:lt});return mergeDateIntoReferenceDate(tt,kt,br,ar,gr,!1)},cr=dt.parseValueStr(or,Qt.referenceValue,rr),ir=dt.updateReferenceValue(tt,cr,Qt.referenceValue);Vt({value:cr,referenceValue:ir,sections:Jt(cr,Qt.sections)})},er=({activeSection:or,newSectionValue:rr,shouldGoToNextSection:cr})=>{cr&&Ut<Qt.sections.length-1&&jt(Ut+1);const ir=dt.getActiveDateManager(tt,Qt,or),dr=Ht(Ut,rr),gr=ir.getSections(dr),br=getDateFromDateSections(tt,gr,Yt);let ar,ur;if(br!=null&&tt.isValid(br)){const xr=mergeDateIntoReferenceDate(tt,kt,br,gr,ir.referenceDate,!0);ar=ir.getNewValuesFromNewActiveDate(xr),ur=!0}else ar=ir.getNewValuesFromNewActiveDate(br),ur=(br!=null&&!tt.isValid(br))!=(ir.date!=null&&!tt.isValid(ir.date));return ur?Vt(_extends$j({},ar,{sections:dr})):Bt(xr=>_extends$j({},xr,ar,{sections:dr,tempValueStrAndroid:null}))},nr=or=>Bt(rr=>_extends$j({},rr,{tempValueStrAndroid:or}));return reactExports.useEffect(()=>{const or=Jt(Qt.value);Bt(rr=>_extends$j({},rr,{sections:or}))},[At,tt.locale,lt]),reactExports.useEffect(()=>{let or;ut.areValuesEqual(tt,Qt.value,qt)?or=ut.getTimezone(tt,Qt.value)!==ut.getTimezone(tt,qt):or=!0,or&&Bt(rr=>_extends$j({},rr,{value:qt,referenceValue:dt.updateReferenceValue(tt,qt,rr.referenceValue),sections:Jt(qt)}))},[qt]),{state:Qt,activeSectionIndex:Ut,parsedSelectedSections:Wt,setSelectedSections:jt,clearValue:Gt,clearActiveSection:Zt,updateSectionValue:er,updateValueFromValueStr:Xt,setTempAndroidValueStr:nr,getSectionsFromValue:Jt,sectionsValueBoundaries:Kt,localizedDigits:Yt,timezone:kt}},QUERY_LIFE_DURATION_MS=5e3,isQueryResponseWithoutValue=et=>et.saveQuery!=null,useFieldCharacterEditing=({sections:et,updateSectionValue:tt,sectionsValueBoundaries:rt,localizedDigits:nt,setTempAndroidValueStr:lt,timezone:ut})=>{const dt=useUtils(),[pt,ht]=reactExports.useState(null),mt=useEventCallback$1(()=>ht(null));reactExports.useEffect(()=>{var At;pt!=null&&((At=et[pt.sectionIndex])==null?void 0:At.type)!==pt.sectionType&&mt()},[et,pt,mt]),reactExports.useEffect(()=>{if(pt!=null){const At=setTimeout(()=>mt(),QUERY_LIFE_DURATION_MS);return()=>{clearTimeout(At)}}return()=>{}},[pt,mt]);const xt=({keyPressed:At,sectionIndex:Rt},zt,Tt)=>{const Ct=At.toLowerCase(),It=et[Rt];if(pt!=null&&(!Tt||Tt(pt.value))&&pt.sectionIndex===Rt){const kt=`${pt.value}${Ct}`,qt=zt(kt,It);if(!isQueryResponseWithoutValue(qt))return ht({sectionIndex:Rt,value:kt,sectionType:It.type}),qt}const Dt=zt(Ct,It);return isQueryResponseWithoutValue(Dt)&&!Dt.saveQuery?(mt(),null):(ht({sectionIndex:Rt,value:Ct,sectionType:It.type}),isQueryResponseWithoutValue(Dt)?null:Dt)},Mt=At=>{const Rt=(Ct,It,Dt)=>{const kt=It.filter(qt=>qt.toLowerCase().startsWith(Dt));return kt.length===0?{saveQuery:!1}:{sectionValue:kt[0],shouldGoToNextSection:kt.length===1}},zt=(Ct,It,Dt,kt)=>{const qt=Nt=>getLetterEditingOptions(dt,ut,It.type,Nt);if(It.contentType==="letter")return Rt(It.format,qt(It.format),Ct);if(Dt&&kt!=null&&getDateSectionConfigFromFormatToken(dt,Dt).contentType==="letter"){const Nt=qt(Dt),Yt=Rt(Dt,Nt,Ct);return isQueryResponseWithoutValue(Yt)?{saveQuery:!1}:_extends$j({},Yt,{sectionValue:kt(Yt.sectionValue,Nt)})}return{saveQuery:!1}};return xt(At,(Ct,It)=>{switch(It.type){case"month":{const Dt=kt=>changeSectionValueFormat(dt,kt,dt.formats.month,It.format);return zt(Ct,It,dt.formats.month,Dt)}case"weekDay":{const Dt=(kt,qt)=>qt.indexOf(kt).toString();return zt(Ct,It,dt.formats.weekday,Dt)}case"meridiem":return zt(Ct,It);default:return{saveQuery:!1}}})},vt=At=>{const Rt=(Tt,Ct)=>{const It=removeLocalizedDigits(Tt,nt),Dt=Number(It),kt=rt[Ct.type]({currentDate:null,format:Ct.format,contentType:Ct.contentType});if(Dt>kt.maximum)return{saveQuery:!1};if(Dt<kt.minimum)return{saveQuery:!0};const qt=Dt*10>kt.maximum||It.length===kt.maximum.toString().length;return{sectionValue:cleanDigitSectionValue(dt,Dt,kt,nt,Ct),shouldGoToNextSection:qt}};return xt(At,(Tt,Ct)=>{if(Ct.contentType==="digit"||Ct.contentType==="digit-with-letter")return Rt(Tt,Ct);if(Ct.type==="month"){const It=doesSectionFormatHaveLeadingZeros(dt,ut,"digit","month","MM"),Dt=Rt(Tt,{type:Ct.type,format:"MM",hasLeadingZerosInFormat:It,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(isQueryResponseWithoutValue(Dt))return Dt;const kt=changeSectionValueFormat(dt,Dt.sectionValue,"MM",Ct.format);return _extends$j({},Dt,{sectionValue:kt})}if(Ct.type==="weekDay"){const It=Rt(Tt,Ct);if(isQueryResponseWithoutValue(It))return It;const Dt=getDaysInWeekStr(dt,ut,Ct.format)[Number(It.sectionValue)-1];return _extends$j({},It,{sectionValue:Dt})}return{saveQuery:!1}},Tt=>isStringNumber(Tt,nt))};return{applyCharacterEditing:useEventCallback$1(At=>{const Rt=et[At.sectionIndex],Tt=isStringNumber(At.keyPressed,nt)?vt(_extends$j({},At,{keyPressed:applyLocalizedDigits(At.keyPressed,nt)})):Mt(At);if(Tt==null){lt(null);return}tt({activeSection:Rt,newSectionValue:Tt.sectionValue,shouldGoToNextSection:Tt.shouldGoToNextSection})}),resetCharacterQuery:mt}};function arrayIncludes(et,tt){return Array.isArray(tt)?tt.every(rt=>et.indexOf(rt)!==-1):et.indexOf(tt)!==-1}const onSpaceOrEnter=(et,tt)=>rt=>{(rt.key==="Enter"||rt.key===" ")&&(et(rt),rt.preventDefault(),rt.stopPropagation())},getActiveElement=(et=document)=>{const tt=et.activeElement;return tt?tt.shadowRoot?getActiveElement(tt.shadowRoot):tt:null},DEFAULT_DESKTOP_MODE_MEDIA_QUERY="@media (pointer: fine)",useFieldV7TextField=et=>{const{internalProps:{disabled:tt,readOnly:rt=!1},forwardedProps:{sectionListRef:nt,onBlur:lt,onClick:ut,onFocus:dt,onInput:pt,onPaste:ht,focused:mt,autoFocus:xt=!1},fieldValueManager:Mt,applyCharacterEditing:vt,resetCharacterQuery:Ot,setSelectedSections:At,parsedSelectedSections:Rt,state:zt,clearActiveSection:Tt,clearValue:Ct,updateSectionValue:It,updateValueFromValueStr:Dt,sectionOrder:kt,areAllSectionsEmpty:qt,sectionsValueBoundaries:Nt}=et,Yt=reactExports.useRef(null),Kt=useForkRef(nt,Yt),Jt=usePickersTranslations(),Qt=useUtils(),Bt=useId(),[Ft,$t]=reactExports.useState(!1),jt=reactExports.useMemo(()=>({syncSelectionToDOM:()=>{if(!Yt.current)return;const ur=document.getSelection();if(!ur)return;if(Rt==null){ur.rangeCount>0&&Yt.current.getRoot().contains(ur.getRangeAt(0).startContainer)&&ur.removeAllRanges(),Ft&&Yt.current.getRoot().blur();return}if(!Yt.current.getRoot().contains(getActiveElement(document)))return;const xr=new window.Range;let Mr;Rt==="all"?Mr=Yt.current.getRoot():zt.sections[Rt].type==="empty"?Mr=Yt.current.getSectionContainer(Rt):Mr=Yt.current.getSectionContent(Rt),xr.selectNodeContents(Mr),Mr.focus(),ur.removeAllRanges(),ur.addRange(xr)},getActiveSectionIndexFromDOM:()=>{const ur=getActiveElement(document);return!ur||!Yt.current||!Yt.current.getRoot().contains(ur)?null:Yt.current.getSectionIndexFromDOMElement(ur)},focusField:(ur=0)=>{if(!Yt.current)return;const xr=parseSelectedSections(ur,zt.sections);$t(!0),Yt.current.getSectionContent(xr).focus()},setSelectedSections:ur=>{if(!Yt.current)return;const xr=parseSelectedSections(ur,zt.sections);$t((xr==="all"?0:xr)!==null),At(ur)},isFieldFocused:()=>{const ur=getActiveElement(document);return!!Yt.current&&Yt.current.getRoot().contains(ur)}}),[Rt,At,zt.sections,Ft]),Wt=useEventCallback$1(ur=>{if(!Yt.current)return;const xr=zt.sections[ur];Yt.current.getSectionContent(ur).innerHTML=xr.value||xr.placeholder,jt.syncSelectionToDOM()}),Ut=useEventCallback$1((ur,...xr)=>{ur.isDefaultPrevented()||!Yt.current||($t(!0),ut==null||ut(ur,...xr),Rt==="all"?setTimeout(()=>{const Mr=document.getSelection().getRangeAt(0).startOffset;if(Mr===0){At(kt.startIndex);return}let Ar=0,Ir=0;for(;Ir<Mr&&Ar<zt.sections.length;){const Rr=zt.sections[Ar];Ar+=1,Ir+=`${Rr.startSeparator}${Rr.value||Rr.placeholder}${Rr.endSeparator}`.length}At(Ar-1)}):Ft?Yt.current.getRoot().contains(ur.target)||At(kt.startIndex):($t(!0),At(kt.startIndex)))}),Vt=useEventCallback$1(ur=>{if(pt==null||pt(ur),!Yt.current||Rt!=="all")return;const Mr=ur.target.textContent??"";Yt.current.getRoot().innerHTML=zt.sections.map(Ar=>`${Ar.startSeparator}${Ar.value||Ar.placeholder}${Ar.endSeparator}`).join(""),jt.syncSelectionToDOM(),Mr.length===0||Mr.charCodeAt(0)===10?(Ot(),Ct(),At("all")):Mr.length>1?Dt(Mr):vt({keyPressed:Mr,sectionIndex:0})}),Ht=useEventCallback$1(ur=>{if(ht==null||ht(ur),rt||Rt!=="all"){ur.preventDefault();return}const xr=ur.clipboardData.getData("text");ur.preventDefault(),Ot(),Dt(xr)}),Gt=useEventCallback$1((...ur)=>{if(dt==null||dt(...ur),Ft||!Yt.current)return;$t(!0),Yt.current.getSectionIndexFromDOMElement(getActiveElement(document))!=null||At(kt.startIndex)}),Zt=useEventCallback$1((...ur)=>{lt==null||lt(...ur),setTimeout(()=>{if(!Yt.current)return;const xr=getActiveElement(document);!Yt.current.getRoot().contains(xr)&&($t(!1),At(null))})}),Xt=useEventCallback$1(ur=>xr=>{xr.isDefaultPrevented()||At(ur)}),er=useEventCallback$1(ur=>{ur.preventDefault()}),nr=useEventCallback$1(ur=>()=>{At(ur)}),or=useEventCallback$1(ur=>{if(ur.preventDefault(),rt||tt||typeof Rt!="number")return;const xr=zt.sections[Rt],Mr=ur.clipboardData.getData("text"),Ar=/^[a-zA-Z]+$/.test(Mr),Ir=/^[0-9]+$/.test(Mr),Rr=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Mr);xr.contentType==="letter"&&Ar||xr.contentType==="digit"&&Ir||xr.contentType==="digit-with-letter"&&Rr?(Ot(),It({activeSection:xr,newSectionValue:Mr,shouldGoToNextSection:!0})):!Ar&&!Ir&&(Ot(),Dt(Mr))}),rr=useEventCallback$1(ur=>{ur.preventDefault(),ur.dataTransfer.dropEffect="none"}),cr=useEventCallback$1(ur=>{if(!Yt.current)return;const xr=ur.target,Mr=xr.textContent??"",Ar=Yt.current.getSectionIndexFromDOMElement(xr),Ir=zt.sections[Ar];if(rt||!Yt.current){Wt(Ar);return}if(Mr.length===0){if(Ir.value===""){Wt(Ar);return}const Rr=ur.nativeEvent.inputType;if(Rr==="insertParagraph"||Rr==="insertLineBreak"){Wt(Ar);return}Ot(),Tt();return}vt({keyPressed:Mr,sectionIndex:Ar}),Wt(Ar)});useEnhancedEffect(()=>{if(!(!Ft||!Yt.current)){if(Rt==="all")Yt.current.getRoot().focus();else if(typeof Rt=="number"){const ur=Yt.current.getSectionContent(Rt);ur&&ur.focus()}}},[Rt,Ft]);const ir=reactExports.useMemo(()=>zt.sections.reduce((ur,xr)=>(ur[xr.type]=Nt[xr.type]({currentDate:null,contentType:xr.contentType,format:xr.format}),ur),{}),[Nt,zt.sections]),dr=Rt==="all",gr=reactExports.useMemo(()=>zt.sections.map((ur,xr)=>{const Mr=!dr&&!tt&&!rt;return{container:{"data-sectionindex":xr,onClick:Xt(xr)},content:{tabIndex:dr||xr>0?-1:0,contentEditable:!dr&&!tt&&!rt,role:"spinbutton",id:`${Bt}-${ur.type}`,"aria-labelledby":`${Bt}-${ur.type}`,"aria-readonly":rt,"aria-valuenow":getSectionValueNow(ur,Qt),"aria-valuemin":ir[ur.type].minimum,"aria-valuemax":ir[ur.type].maximum,"aria-valuetext":ur.value?getSectionValueText(ur,Qt):Jt.empty,"aria-label":Jt[ur.type],"aria-disabled":tt,spellCheck:Mr?!1:void 0,autoCapitalize:Mr?"off":void 0,autoCorrect:Mr?"off":void 0,[parseInt(reactExports.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Mr?"next":void 0,children:ur.value||ur.placeholder,onInput:cr,onPaste:or,onFocus:nr(xr),onDragOver:rr,onMouseUp:er,inputMode:ur.contentType==="letter"?"text":"numeric"},before:{children:ur.startSeparator},after:{children:ur.endSeparator}}}),[zt.sections,nr,or,rr,cr,Xt,er,tt,rt,dr,Jt,Qt,ir,Bt]),br=useEventCallback$1(ur=>{Dt(ur.target.value)}),ar=reactExports.useMemo(()=>qt?"":Mt.getV7HiddenInputValueFromSections(zt.sections),[qt,zt.sections,Mt]);return reactExports.useEffect(()=>{if(Yt.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
`));xt&&Yt.current&&Yt.current.getSectionContent(kt.startIndex).focus()},[]),{interactions:jt,returnedValue:{autoFocus:xt,readOnly:rt,focused:mt??Ft,sectionListRef:Kt,onBlur:Zt,onClick:Ut,onFocus:Gt,onInput:Vt,onPaste:Ht,enableAccessibleFieldDOMStructure:!0,elements:gr,tabIndex:Rt===0?-1:0,contentEditable:dr,value:ar,onChange:br,areAllSectionsEmpty:qt}}},cleanString=et=>et.replace(/[\u2066\u2067\u2068\u2069]/g,""),addPositionPropertiesToSections=(et,tt,rt)=>{let nt=0,lt=rt?1:0;const ut=[];for(let dt=0;dt<et.length;dt+=1){const pt=et[dt],ht=getSectionVisibleValue(pt,rt?"input-rtl":"input-ltr",tt),mt=`${pt.startSeparator}${ht}${pt.endSeparator}`,xt=cleanString(mt).length,Mt=mt.length,vt=cleanString(ht),Ot=lt+(vt===""?0:ht.indexOf(vt[0]))+pt.startSeparator.length,At=Ot+vt.length;ut.push(_extends$j({},pt,{start:nt,end:nt+xt,startInInput:Ot,endInInput:At})),nt+=xt,lt+=Mt}return ut},useFieldV6TextField=et=>{const tt=useRtl(),rt=reactExports.useRef(),nt=reactExports.useRef(),{forwardedProps:{onFocus:lt,onClick:ut,onPaste:dt,onBlur:pt,inputRef:ht,placeholder:mt},internalProps:{readOnly:xt=!1,disabled:Mt=!1},parsedSelectedSections:vt,activeSectionIndex:Ot,state:At,fieldValueManager:Rt,valueManager:zt,applyCharacterEditing:Tt,resetCharacterQuery:Ct,updateSectionValue:It,updateValueFromValueStr:Dt,clearActiveSection:kt,clearValue:qt,setTempAndroidValueStr:Nt,setSelectedSections:Yt,getSectionsFromValue:Kt,areAllSectionsEmpty:Jt,localizedDigits:Qt}=et,Bt=reactExports.useRef(null),Ft=useForkRef(ht,Bt),$t=reactExports.useMemo(()=>addPositionPropertiesToSections(At.sections,Qt,tt),[At.sections,Qt,tt]),jt=reactExports.useMemo(()=>({syncSelectionToDOM:()=>{if(!Bt.current)return;if(vt==null){Bt.current.scrollLeft&&(Bt.current.scrollLeft=0);return}if(Bt.current!==getActiveElement(document))return;const cr=Bt.current.scrollTop;if(vt==="all")Bt.current.select();else{const ir=$t[vt],dr=ir.type==="empty"?ir.startInInput-ir.startSeparator.length:ir.startInInput,gr=ir.type==="empty"?ir.endInInput+ir.endSeparator.length:ir.endInInput;(dr!==Bt.current.selectionStart||gr!==Bt.current.selectionEnd)&&Bt.current===getActiveElement(document)&&Bt.current.setSelectionRange(dr,gr),clearTimeout(nt.current),nt.current=setTimeout(()=>{Bt.current&&Bt.current===getActiveElement(document)&&Bt.current.selectionStart===Bt.current.selectionEnd&&(Bt.current.selectionStart!==dr||Bt.current.selectionEnd!==gr)&&jt.syncSelectionToDOM()})}Bt.current.scrollTop=cr},getActiveSectionIndexFromDOM:()=>{const cr=Bt.current.selectionStart??0,ir=Bt.current.selectionEnd??0;if(cr===0&&ir===0)return null;const dr=cr<=$t[0].startInInput?1:$t.findIndex(gr=>gr.startInInput-gr.startSeparator.length>cr);return dr===-1?$t.length-1:dr-1},focusField:(cr=0)=>{var ir;(ir=Bt.current)==null||ir.focus(),Yt(cr)},setSelectedSections:cr=>Yt(cr),isFieldFocused:()=>Bt.current===getActiveElement(document)}),[Bt,vt,$t,Yt]),Wt=()=>{const cr=Bt.current.selectionStart??0;let ir;cr<=$t[0].startInInput||cr>=$t[$t.length-1].endInInput?ir=1:ir=$t.findIndex(gr=>gr.startInInput-gr.startSeparator.length>cr);const dr=ir===-1?$t.length-1:ir-1;Yt(dr)},Ut=useEventCallback$1((...cr)=>{lt==null||lt(...cr);const ir=Bt.current;clearTimeout(rt.current),rt.current=setTimeout(()=>{!ir||ir!==Bt.current||Ot==null&&(ir.value.length&&Number(ir.selectionEnd)-Number(ir.selectionStart)===ir.value.length?Yt("all"):Wt())})}),Vt=useEventCallback$1((cr,...ir)=>{cr.isDefaultPrevented()||(ut==null||ut(cr,...ir),Wt())}),Ht=useEventCallback$1(cr=>{if(dt==null||dt(cr),cr.preventDefault(),xt||Mt)return;const ir=cr.clipboardData.getData("text");if(typeof vt=="number"){const dr=At.sections[vt],gr=/^[a-zA-Z]+$/.test(ir),br=/^[0-9]+$/.test(ir),ar=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ir);if(dr.contentType==="letter"&&gr||dr.contentType==="digit"&&br||dr.contentType==="digit-with-letter"&&ar){Ct(),It({activeSection:dr,newSectionValue:ir,shouldGoToNextSection:!0});return}if(gr||br)return}Ct(),Dt(ir)}),Gt=useEventCallback$1((...cr)=>{pt==null||pt(...cr),Yt(null)}),Zt=useEventCallback$1(cr=>{if(xt)return;const ir=cr.target.value;if(ir===""){Ct(),qt();return}const dr=cr.nativeEvent.data,gr=dr&&dr.length>1,br=gr?dr:ir,ar=cleanString(br);if(Ot==null||gr){Dt(gr?dr:ar);return}let ur;if(vt==="all"&&ar.length===1)ur=ar;else{const xr=cleanString(Rt.getV6InputValueFromSections($t,Qt,tt));let Mr=-1,Ar=-1;for(let qr=0;qr<xr.length;qr+=1)Mr===-1&&xr[qr]!==ar[qr]&&(Mr=qr),Ar===-1&&xr[xr.length-qr-1]!==ar[ar.length-qr-1]&&(Ar=qr);const Ir=$t[Ot];if(Mr<Ir.start||xr.length-Ar-1>Ir.end)return;const wr=ar.length-xr.length+Ir.end-cleanString(Ir.endSeparator||"").length;ur=ar.slice(Ir.start+cleanString(Ir.startSeparator||"").length,wr)}if(ur.length===0){isAndroid()&&Nt(br),Ct(),kt();return}Tt({keyPressed:ur,sectionIndex:Ot})}),Xt=reactExports.useMemo(()=>mt!==void 0?mt:Rt.getV6InputValueFromSections(Kt(zt.emptyValue),Qt,tt),[mt,Rt,Kt,zt.emptyValue,Qt,tt]),er=reactExports.useMemo(()=>At.tempValueStrAndroid??Rt.getV6InputValueFromSections(At.sections,Qt,tt),[At.sections,Rt,At.tempValueStrAndroid,Qt,tt]);reactExports.useEffect(()=>(Bt.current&&Bt.current===getActiveElement(document)&&Yt("all"),()=>{clearTimeout(rt.current),clearTimeout(nt.current)}),[]);const nr=reactExports.useMemo(()=>Ot==null||At.sections[Ot].contentType==="letter"?"text":"numeric",[Ot,At.sections]),rr=!(Bt.current&&Bt.current===getActiveElement(document))&&Jt;return{interactions:jt,returnedValue:{readOnly:xt,onBlur:Gt,onClick:Vt,onFocus:Ut,onPaste:Ht,inputRef:Ft,enableAccessibleFieldDOMStructure:!1,placeholder:Xt,inputMode:nr,autoComplete:"off",value:rr?"":er,onChange:Zt}}},useField$1=et=>{const tt=useUtils(),{internalProps:rt,internalProps:{unstableFieldRef:nt,minutesStep:lt,enableAccessibleFieldDOMStructure:ut=!1,disabled:dt=!1,readOnly:pt=!1},forwardedProps:{onKeyDown:ht,error:mt,clearable:xt,onClear:Mt},fieldValueManager:vt,valueManager:Ot,validator:At}=et,Rt=useRtl(),zt=useFieldState(et),{state:Tt,activeSectionIndex:Ct,parsedSelectedSections:It,setSelectedSections:Dt,clearValue:kt,clearActiveSection:qt,updateSectionValue:Nt,setTempAndroidValueStr:Yt,sectionsValueBoundaries:Kt,localizedDigits:Jt,timezone:Qt}=zt,Bt=useFieldCharacterEditing({sections:Tt.sections,updateSectionValue:Nt,sectionsValueBoundaries:Kt,localizedDigits:Jt,setTempAndroidValueStr:Yt,timezone:Qt}),{resetCharacterQuery:Ft}=Bt,$t=Ot.areValuesEqual(tt,Tt.value,Ot.emptyValue),jt=ut?useFieldV7TextField:useFieldV6TextField,Wt=reactExports.useMemo(()=>getSectionOrder(Tt.sections,Rt&&!ut),[Tt.sections,Rt,ut]),{returnedValue:Ut,interactions:Vt}=jt(_extends$j({},et,zt,Bt,{areAllSectionsEmpty:$t,sectionOrder:Wt})),Ht=useEventCallback$1(or=>{if(ht==null||ht(or),!dt)switch(!0){case((or.ctrlKey||or.metaKey)&&or.key.toLowerCase()==="a"&&!or.shiftKey&&!or.altKey):{or.preventDefault(),Dt("all");break}case or.key==="ArrowRight":{if(or.preventDefault(),It==null)Dt(Wt.startIndex);else if(It==="all")Dt(Wt.endIndex);else{const rr=Wt.neighbors[It].rightIndex;rr!==null&&Dt(rr)}break}case or.key==="ArrowLeft":{if(or.preventDefault(),It==null)Dt(Wt.endIndex);else if(It==="all")Dt(Wt.startIndex);else{const rr=Wt.neighbors[It].leftIndex;rr!==null&&Dt(rr)}break}case or.key==="Delete":{if(or.preventDefault(),pt)break;It==null||It==="all"?kt():qt(),Ft();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(or.key):{if(or.preventDefault(),pt||Ct==null)break;const rr=Tt.sections[Ct],cr=vt.getActiveDateManager(tt,Tt,rr),ir=adjustSectionValue(tt,Qt,rr,or.key,Kt,Jt,cr.date,{minutesStep:lt});Nt({activeSection:rr,newSectionValue:ir,shouldGoToNextSection:!1});break}}});useEnhancedEffect(()=>{Vt.syncSelectionToDOM()});const{hasValidationError:Gt}=useValidation({props:rt,validator:At,timezone:Qt,value:Tt.value,onError:rt.onError}),Zt=reactExports.useMemo(()=>mt!==void 0?mt:Gt,[Gt,mt]);reactExports.useEffect(()=>{!Zt&&Ct==null&&Ft()},[Tt.referenceValue,Ct,Zt]),reactExports.useEffect(()=>{Tt.tempValueStrAndroid!=null&&Ct!=null&&(Ft(),qt())},[Tt.sections]),reactExports.useImperativeHandle(nt,()=>({getSections:()=>Tt.sections,getActiveSectionIndex:Vt.getActiveSectionIndexFromDOM,setSelectedSections:Vt.setSelectedSections,focusField:Vt.focusField,isFieldFocused:Vt.isFieldFocused}));const Xt=useEventCallback$1((or,...rr)=>{or.preventDefault(),Mt==null||Mt(or,...rr),kt(),Vt.isFieldFocused()?Dt(Wt.startIndex):Vt.focusField(0)}),er={onKeyDown:Ht,onClear:Xt,error:Zt,clearable:!!(xt&&!$t&&!pt&&!dt)},nr={disabled:dt,readOnly:pt};return _extends$j({},et.forwardedProps,er,nr,Ut)},_excluded$u=["clearable","onClear","InputProps","sx","slots","slotProps"],_excluded2$7=["ownerState"],useClearableField=et=>{const tt=usePickersTranslations(),{clearable:rt,onClear:nt,InputProps:lt,sx:ut,slots:dt,slotProps:pt}=et,ht=_objectWithoutPropertiesLoose$d(et,_excluded$u),mt=(dt==null?void 0:dt.clearButton)??IconButton,xt=useSlotProps({elementType:mt,externalSlotProps:pt==null?void 0:pt.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:tt.fieldClearLabel}}),Mt=_objectWithoutPropertiesLoose$d(xt,_excluded2$7),vt=(dt==null?void 0:dt.clearIcon)??ClearIcon,Ot=useSlotProps({elementType:vt,externalSlotProps:pt==null?void 0:pt.clearIcon,ownerState:{}});return _extends$j({},ht,{InputProps:_extends$j({},lt,{endAdornment:jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[rt&&jsxRuntimeExports.jsx(InputAdornment,{position:"end",sx:{marginRight:lt!=null&&lt.endAdornment?-1:-1.5},children:jsxRuntimeExports.jsx(mt,_extends$j({},Mt,{onClick:nt,children:jsxRuntimeExports.jsx(vt,_extends$j({fontSize:"small"},Ot))}))}),lt==null?void 0:lt.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(ut)?ut:[ut]]})},SHARED_FIELD_INTERNAL_PROP_NAMES=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],useSplitFieldProps=(et,tt)=>reactExports.useMemo(()=>{const rt=_extends$j({},et),nt={},lt=ut=>{rt.hasOwnProperty(ut)&&(nt[ut]=rt[ut],delete rt[ut])};return SHARED_FIELD_INTERNAL_PROP_NAMES.forEach(lt),DATE_VALIDATION_PROP_NAMES.forEach(lt),{forwardedProps:rt,internalProps:nt}},[et,tt]),useDefaultizedDateField=et=>{const tt=useUtils(),rt=useDefaultDates();return _extends$j({},et,{disablePast:et.disablePast??!1,disableFuture:et.disableFuture??!1,format:et.format??tt.formats.keyboardDate,minDate:applyDefaultDate(tt,et.minDate,rt.minDate),maxDate:applyDefaultDate(tt,et.maxDate,rt.maxDate)})},useDateField=et=>{const tt=useDefaultizedDateField(et),{forwardedProps:rt,internalProps:nt}=useSplitFieldProps(tt,"date");return useField$1({forwardedProps:rt,internalProps:nt,valueManager:singleItemValueManager,fieldValueManager:singleItemFieldValueManager,validator:validateDate,valueType:"date"})};function getPickersTextFieldUtilityClass(et){return generateUtilityClass("MuiPickersTextField",et)}generateUtilityClasses("MuiPickersTextField",["root","focused","disabled","error","required"]);function getPickersInputBaseUtilityClass(et){return generateUtilityClass("MuiPickersInputBase",et)}const pickersInputBaseClasses=generateUtilityClasses("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function getPickersSectionListUtilityClass(et){return generateUtilityClass("MuiPickersSectionList",et)}const pickersSectionListClasses=generateUtilityClasses("MuiPickersSectionList",["root","section","sectionContent"]),_excluded$t=["slots","slotProps","elements","sectionListRef"],PickersSectionListRoot=styled("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(et,tt)=>tt.root})({direction:"ltr /*! @noflip */",outline:"none"}),PickersSectionListSection=styled("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(et,tt)=>tt.section})({}),PickersSectionListSectionSeparator=styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(et,tt)=>tt.sectionSeparator})({whiteSpace:"pre"}),PickersSectionListSectionContent=styled("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(et,tt)=>tt.sectionContent})({outline:"none"}),useUtilityClasses$j=et=>{const{classes:tt}=et;return composeClasses({root:["root"],section:["section"],sectionContent:["sectionContent"]},getPickersSectionListUtilityClass,tt)};function PickersSection(et){const{slots:tt,slotProps:rt,element:nt,classes:lt}=et,ut=(tt==null?void 0:tt.section)??PickersSectionListSection,dt=useSlotProps({elementType:ut,externalSlotProps:rt==null?void 0:rt.section,externalForwardedProps:nt.container,className:lt.section,ownerState:{}}),pt=(tt==null?void 0:tt.sectionContent)??PickersSectionListSectionContent,ht=useSlotProps({elementType:pt,externalSlotProps:rt==null?void 0:rt.sectionContent,externalForwardedProps:nt.content,additionalProps:{suppressContentEditableWarning:!0},className:lt.sectionContent,ownerState:{}}),mt=(tt==null?void 0:tt.sectionSeparator)??PickersSectionListSectionSeparator,xt=useSlotProps({elementType:mt,externalSlotProps:rt==null?void 0:rt.sectionSeparator,externalForwardedProps:nt.before,ownerState:{position:"before"}}),Mt=useSlotProps({elementType:mt,externalSlotProps:rt==null?void 0:rt.sectionSeparator,externalForwardedProps:nt.after,ownerState:{position:"after"}});return jsxRuntimeExports.jsxs(ut,_extends$j({},dt,{children:[jsxRuntimeExports.jsx(mt,_extends$j({},xt)),jsxRuntimeExports.jsx(pt,_extends$j({},ht)),jsxRuntimeExports.jsx(mt,_extends$j({},Mt))]}))}const PickersSectionList=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersSectionList"}),{slots:lt,slotProps:ut,elements:dt,sectionListRef:pt}=nt,ht=_objectWithoutPropertiesLoose$d(nt,_excluded$t),mt=useUtilityClasses$j(nt),xt=reactExports.useRef(null),Mt=useForkRef(rt,xt),vt=Rt=>{if(!xt.current)throw new Error(`MUI X: Cannot call sectionListRef.${Rt} before the mount of the component.`);return xt.current};reactExports.useImperativeHandle(pt,()=>({getRoot(){return vt("getRoot")},getSectionContainer(Rt){return vt("getSectionContainer").querySelector(`.${pickersSectionListClasses.section}[data-sectionindex="${Rt}"]`)},getSectionContent(Rt){return vt("getSectionContent").querySelector(`.${pickersSectionListClasses.section}[data-sectionindex="${Rt}"] .${pickersSectionListClasses.sectionContent}`)},getSectionIndexFromDOMElement(Rt){const zt=vt("getSectionIndexFromDOMElement");if(Rt==null||!zt.contains(Rt))return null;let Tt=null;return Rt.classList.contains(pickersSectionListClasses.section)?Tt=Rt:Rt.classList.contains(pickersSectionListClasses.sectionContent)&&(Tt=Rt.parentElement),Tt==null?null:Number(Tt.dataset.sectionindex)}}));const Ot=(lt==null?void 0:lt.root)??PickersSectionListRoot,At=useSlotProps({elementType:Ot,externalSlotProps:ut==null?void 0:ut.root,externalForwardedProps:ht,additionalProps:{ref:Mt,suppressContentEditableWarning:!0},className:mt.root,ownerState:{}});return jsxRuntimeExports.jsx(Ot,_extends$j({},At,{children:At.contentEditable?dt.map(({content:Rt,before:zt,after:Tt})=>`${zt.children}${Rt.children}${Tt.children}`).join(""):jsxRuntimeExports.jsx(reactExports.Fragment,{children:dt.map((Rt,zt)=>jsxRuntimeExports.jsx(PickersSection,{slots:lt,slotProps:ut,element:Rt,classes:mt},zt))})}))}),_excluded$s=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],round$1=et=>Math.round(et*1e5)/1e5,PickersInputBaseRoot=styled("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(et,tt)=>tt.root})(({theme:et})=>_extends$j({},et.typography.body1,{color:(et.vars||et).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${round$1(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),PickersInputBaseSectionsContainer=styled(PickersSectionListRoot,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(et,tt)=>tt.sectionsContainer})(({theme:et})=>({padding:"4px 0 5px",fontFamily:et.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:tt,focused:rt,filled:nt,label:lt})=>!tt&&!rt&&!nt&&lt==null,style:et.vars?{opacity:et.vars.opacity.inputPlaceholder}:{opacity:et.palette.mode==="light"?.42:.5}}]})),PickersInputBaseSection=styled(PickersSectionListSection,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(et,tt)=>tt.section})(({theme:et})=>({fontFamily:et.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),PickersInputBaseSectionContent=styled(PickersSectionListSectionContent,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(et,tt)=>tt.content})(({theme:et})=>({fontFamily:et.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),PickersInputBaseSectionSeparator=styled(PickersSectionListSectionSeparator,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(et,tt)=>tt.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),PickersInputBaseInput=styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(et,tt)=>tt.hiddenInput})(_extends$j({},visuallyHidden$2)),useUtilityClasses$i=et=>{const{focused:tt,disabled:rt,error:nt,classes:lt,fullWidth:ut,readOnly:dt,color:pt,size:ht,endAdornment:mt,startAdornment:xt}=et,Mt={root:["root",tt&&!rt&&"focused",rt&&"disabled",dt&&"readOnly",nt&&"error",ut&&"fullWidth",`color${capitalize$3(pt)}`,ht==="small"&&"inputSizeSmall",!!xt&&"adornedStart",!!mt&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return composeClasses(Mt,getPickersInputBaseUtilityClass,lt)},PickersInputBase=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersInputBase"}),{elements:lt,areAllSectionsEmpty:ut,value:dt,onChange:pt,id:ht,endAdornment:mt,startAdornment:xt,renderSuffix:Mt,slots:vt,slotProps:Ot,contentEditable:At,tabIndex:Rt,onInput:zt,onPaste:Tt,onKeyDown:Ct,name:It,readOnly:Dt,inputProps:kt,inputRef:qt,sectionListRef:Nt}=nt,Yt=_objectWithoutPropertiesLoose$d(nt,_excluded$s),Kt=reactExports.useRef(null),Jt=useForkRef(rt,Kt),Qt=useForkRef(kt==null?void 0:kt.ref,qt),Bt=useRtl(),Ft=useFormControl();if(!Ft)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const $t=Gt=>{var Zt;if(Ft.disabled){Gt.stopPropagation();return}(Zt=Ft.onFocus)==null||Zt.call(Ft,Gt)};reactExports.useEffect(()=>{Ft&&Ft.setAdornedStart(!!xt)},[Ft,xt]),reactExports.useEffect(()=>{Ft&&(ut?Ft.onEmpty():Ft.onFilled())},[Ft,ut]);const jt=_extends$j({},nt,Ft,{isRtl:Bt}),Wt=useUtilityClasses$i(jt),Ut=(vt==null?void 0:vt.root)||PickersInputBaseRoot,Vt=useSlotProps({elementType:Ut,externalSlotProps:Ot==null?void 0:Ot.root,externalForwardedProps:Yt,additionalProps:{"aria-invalid":Ft.error,ref:Jt},className:Wt.root,ownerState:jt}),Ht=(vt==null?void 0:vt.input)||PickersInputBaseSectionsContainer;return jsxRuntimeExports.jsxs(Ut,_extends$j({},Vt,{children:[xt,jsxRuntimeExports.jsx(PickersSectionList,{sectionListRef:Nt,elements:lt,contentEditable:At,tabIndex:Rt,className:Wt.sectionsContainer,onFocus:$t,onBlur:Ft.onBlur,onInput:zt,onPaste:Tt,onKeyDown:Ct,slots:{root:Ht,section:PickersInputBaseSection,sectionContent:PickersInputBaseSectionContent,sectionSeparator:PickersInputBaseSectionSeparator},slotProps:{root:{ownerState:jt},sectionContent:{className:pickersInputBaseClasses.sectionContent},sectionSeparator:({position:Gt})=>({className:Gt==="before"?pickersInputBaseClasses.sectionBefore:pickersInputBaseClasses.sectionAfter})}}),mt,Mt?Mt(_extends$j({},Ft)):null,jsxRuntimeExports.jsx(PickersInputBaseInput,_extends$j({name:It,className:Wt.input,value:dt,onChange:pt,id:ht,"aria-hidden":"true",tabIndex:-1,readOnly:Dt,required:Ft.required,disabled:Ft.disabled},kt,{ref:Qt}))]}))});function getPickersOutlinedInputUtilityClass(et){return generateUtilityClass("MuiPickersOutlinedInput",et)}const pickersOutlinedInputClasses=_extends$j({},pickersInputBaseClasses,generateUtilityClasses("MuiPickersOutlinedInput",["root","notchedOutline","input"])),_excluded$r=["children","className","label","notched","shrink"],OutlineRoot=styled("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(et,tt)=>tt.notchedOutline})(({theme:et})=>{const tt=et.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:et.vars?`rgba(${et.vars.palette.common.onBackgroundChannel} / 0.23)`:tt}}),OutlineLabel=styled("span")(({theme:et})=>({fontFamily:et.typography.fontFamily,fontSize:"inherit"})),OutlineLegend=styled("legend")(({theme:et})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:et.transitions.create("width",{duration:150,easing:et.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:et.transitions.create("max-width",{duration:50,easing:et.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:et.transitions.create("max-width",{duration:100,easing:et.transitions.easing.easeOut,delay:50})}}]}));function Outline(et){const{className:tt,label:rt}=et,nt=_objectWithoutPropertiesLoose$d(et,_excluded$r),lt=rt!=null&&rt!=="",ut=_extends$j({},et,{withLabel:lt});return jsxRuntimeExports.jsx(OutlineRoot,_extends$j({"aria-hidden":!0,className:tt},nt,{ownerState:ut,children:jsxRuntimeExports.jsx(OutlineLegend,{ownerState:ut,children:lt?jsxRuntimeExports.jsx(OutlineLabel,{children:rt}):jsxRuntimeExports.jsx(OutlineLabel,{className:"notranslate",children:"​"})})}))}const _excluded$q=["label","autoFocus","ownerState","notched"],PickersOutlinedInputRoot=styled(PickersInputBaseRoot,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(et,tt)=>tt.root})(({theme:et})=>{const tt=et.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(et.vars||et).shape.borderRadius,[`&:hover .${pickersOutlinedInputClasses.notchedOutline}`]:{borderColor:(et.vars||et).palette.text.primary},"@media (hover: none)":{[`&:hover .${pickersOutlinedInputClasses.notchedOutline}`]:{borderColor:et.vars?`rgba(${et.vars.palette.common.onBackgroundChannel} / 0.23)`:tt}},[`&.${pickersOutlinedInputClasses.focused} .${pickersOutlinedInputClasses.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${pickersOutlinedInputClasses.disabled}`]:{[`& .${pickersOutlinedInputClasses.notchedOutline}`]:{borderColor:(et.vars||et).palette.action.disabled},"*":{color:(et.vars||et).palette.action.disabled}},[`&.${pickersOutlinedInputClasses.error} .${pickersOutlinedInputClasses.notchedOutline}`]:{borderColor:(et.vars||et).palette.error.main},variants:Object.keys((et.vars??et).palette).filter(rt=>{var nt;return((nt=(et.vars??et).palette[rt])==null?void 0:nt.main)??!1}).map(rt=>({props:{color:rt},style:{[`&.${pickersOutlinedInputClasses.focused}:not(.${pickersOutlinedInputClasses.error}) .${pickersOutlinedInputClasses.notchedOutline}`]:{borderColor:(et.vars||et).palette[rt].main}}}))}}),PickersOutlinedInputSectionsContainer=styled(PickersInputBaseSectionsContainer,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(et,tt)=>tt.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),useUtilityClasses$h=et=>{const{classes:tt}=et,nt=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getPickersOutlinedInputUtilityClass,tt);return _extends$j({},tt,nt)},PickersOutlinedInput=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersOutlinedInput"}),{label:lt,ownerState:ut,notched:dt}=nt,pt=_objectWithoutPropertiesLoose$d(nt,_excluded$q),ht=useFormControl(),mt=_extends$j({},nt,ut,ht,{color:(ht==null?void 0:ht.color)||"primary"}),xt=useUtilityClasses$h(mt);return jsxRuntimeExports.jsx(PickersInputBase,_extends$j({slots:{root:PickersOutlinedInputRoot,input:PickersOutlinedInputSectionsContainer},renderSuffix:Mt=>jsxRuntimeExports.jsx(Outline,{shrink:!!(dt||Mt.adornedStart||Mt.focused||Mt.filled),notched:!!(dt||Mt.adornedStart||Mt.focused||Mt.filled),className:xt.notchedOutline,label:lt!=null&&lt!==""&&(ht!=null&&ht.required)?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[lt," ","*"]}):lt,ownerState:mt})},pt,{label:lt,classes:xt,ref:rt}))});PickersOutlinedInput.muiName="Input";function getPickersFilledInputUtilityClass(et){return generateUtilityClass("MuiPickersFilledInput",et)}const pickersFilledInputClasses=_extends$j({},pickersInputBaseClasses,generateUtilityClasses("MuiPickersFilledInput",["root","underline","input"])),_excluded$p=["label","autoFocus","disableUnderline","ownerState"],PickersFilledInputRoot=styled(PickersInputBaseRoot,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(et,tt)=>tt.root,shouldForwardProp:et=>shouldForwardProp$1(et)&&et!=="disableUnderline"})(({theme:et})=>{const tt=et.palette.mode==="light",rt=tt?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",nt=tt?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",lt=tt?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",ut=tt?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:et.vars?et.vars.palette.FilledInput.bg:nt,borderTopLeftRadius:(et.vars||et).shape.borderRadius,borderTopRightRadius:(et.vars||et).shape.borderRadius,transition:et.transitions.create("background-color",{duration:et.transitions.duration.shorter,easing:et.transitions.easing.easeOut}),"&:hover":{backgroundColor:et.vars?et.vars.palette.FilledInput.hoverBg:lt,"@media (hover: none)":{backgroundColor:et.vars?et.vars.palette.FilledInput.bg:nt}},[`&.${pickersFilledInputClasses.focused}`]:{backgroundColor:et.vars?et.vars.palette.FilledInput.bg:nt},[`&.${pickersFilledInputClasses.disabled}`]:{backgroundColor:et.vars?et.vars.palette.FilledInput.disabledBg:ut},variants:[...Object.keys((et.vars??et).palette).filter(dt=>(et.vars??et).palette[dt].main).map(dt=>{var pt;return{props:{color:dt,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(pt=(et.vars||et).palette[dt])==null?void 0:pt.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:et.transitions.create("transform",{duration:et.transitions.duration.shorter,easing:et.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pickersFilledInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pickersFilledInputClasses.error}`]:{"&:before, &:after":{borderBottomColor:(et.vars||et).palette.error.main}},"&::before":{borderBottom:`1px solid ${et.vars?`rgba(${et.vars.palette.common.onBackgroundChannel} / ${et.vars.opacity.inputUnderline})`:rt}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:et.transitions.create("border-bottom-color",{duration:et.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pickersFilledInputClasses.disabled}, .${pickersFilledInputClasses.error}):before`]:{borderBottom:`1px solid ${(et.vars||et).palette.text.primary}`},[`&.${pickersFilledInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:dt})=>!!dt,style:{paddingLeft:12}},{props:({endAdornment:dt})=>!!dt,style:{paddingRight:12}}]}}),PickersFilledSectionsContainer=styled(PickersInputBaseSectionsContainer,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(et,tt)=>tt.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:et})=>!!et,style:{paddingLeft:0}},{props:({endAdornment:et})=>!!et,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),useUtilityClasses$g=et=>{const{classes:tt,disableUnderline:rt}=et,lt=composeClasses({root:["root",!rt&&"underline"],input:["input"]},getPickersFilledInputUtilityClass,tt);return _extends$j({},tt,lt)},PickersFilledInput=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersFilledInput"}),{label:lt,disableUnderline:ut=!1,ownerState:dt}=nt,pt=_objectWithoutPropertiesLoose$d(nt,_excluded$p),ht=useFormControl(),mt=_extends$j({},nt,dt,ht,{color:(ht==null?void 0:ht.color)||"primary"}),xt=useUtilityClasses$g(mt);return jsxRuntimeExports.jsx(PickersInputBase,_extends$j({slots:{root:PickersFilledInputRoot,input:PickersFilledSectionsContainer},slotProps:{root:{disableUnderline:ut}}},pt,{label:lt,classes:xt,ref:rt}))});PickersFilledInput.muiName="Input";function getPickersInputUtilityClass(et){return generateUtilityClass("MuiPickersFilledInput",et)}const pickersInputClasses=_extends$j({},pickersInputBaseClasses,generateUtilityClasses("MuiPickersInput",["root","input"])),_excluded$o=["label","autoFocus","disableUnderline","ownerState"],PickersInputRoot=styled(PickersInputBaseRoot,{name:"MuiPickersInput",slot:"Root",overridesResolver:(et,tt)=>tt.root})(({theme:et})=>{let rt=et.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return et.vars&&(rt=`rgba(${et.vars.palette.common.onBackgroundChannel} / ${et.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((et.vars??et).palette).filter(nt=>(et.vars??et).palette[nt].main).map(nt=>({props:{color:nt},style:{"&::after":{borderBottom:`2px solid ${(et.vars||et).palette[nt].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:et.transitions.create("transform",{duration:et.transitions.duration.shorter,easing:et.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pickersInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pickersInputClasses.error}`]:{"&:before, &:after":{borderBottomColor:(et.vars||et).palette.error.main}},"&::before":{borderBottom:`1px solid ${rt}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:et.transitions.create("border-bottom-color",{duration:et.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pickersInputClasses.disabled}, .${pickersInputClasses.error}):before`]:{borderBottom:`2px solid ${(et.vars||et).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${rt}`}},[`&.${pickersInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),useUtilityClasses$f=et=>{const{classes:tt,disableUnderline:rt}=et,lt=composeClasses({root:["root",!rt&&"underline"],input:["input"]},getPickersInputUtilityClass,tt);return _extends$j({},tt,lt)},PickersInput=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersInput"}),{label:lt,disableUnderline:ut=!1,ownerState:dt}=nt,pt=_objectWithoutPropertiesLoose$d(nt,_excluded$o),ht=useFormControl(),mt=_extends$j({},nt,dt,ht,{disableUnderline:ut,color:(ht==null?void 0:ht.color)||"primary"}),xt=useUtilityClasses$f(mt);return jsxRuntimeExports.jsx(PickersInputBase,_extends$j({slots:{root:PickersInputRoot}},pt,{label:lt,classes:xt,ref:rt}))});PickersInput.muiName="Input";const _excluded$n=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],VARIANT_COMPONENT={standard:PickersInput,filled:PickersFilledInput,outlined:PickersOutlinedInput},PickersTextFieldRoot=styled(FormControl,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(et,tt)=>tt.root})({}),useUtilityClasses$e=et=>{const{focused:tt,disabled:rt,classes:nt,required:lt}=et;return composeClasses({root:["root",tt&&!rt&&"focused",rt&&"disabled",lt&&"required"]},getPickersTextFieldUtilityClass,nt)},PickersTextField=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersTextField"}),{onFocus:lt,onBlur:ut,className:dt,color:pt="primary",disabled:ht=!1,error:mt=!1,variant:xt="outlined",required:Mt=!1,InputProps:vt,inputProps:Ot,inputRef:At,sectionListRef:Rt,elements:zt,areAllSectionsEmpty:Tt,onClick:Ct,onKeyDown:It,onKeyUp:Dt,onPaste:kt,onInput:qt,endAdornment:Nt,startAdornment:Yt,tabIndex:Kt,contentEditable:Jt,focused:Qt,value:Bt,onChange:Ft,fullWidth:$t,id:jt,name:Wt,helperText:Ut,FormHelperTextProps:Vt,label:Ht,InputLabelProps:Gt}=nt,Zt=_objectWithoutPropertiesLoose$d(nt,_excluded$n),Xt=reactExports.useRef(null),er=useForkRef(rt,Xt),nr=useId(jt),or=Ut&&nr?`${nr}-helper-text`:void 0,rr=Ht&&nr?`${nr}-label`:void 0,cr=_extends$j({},nt,{color:pt,disabled:ht,error:mt,focused:Qt,required:Mt,variant:xt}),ir=useUtilityClasses$e(cr),dr=VARIANT_COMPONENT[xt];return jsxRuntimeExports.jsxs(PickersTextFieldRoot,_extends$j({className:clsx(ir.root,dt),ref:er,focused:Qt,onFocus:lt,onBlur:ut,disabled:ht,variant:xt,error:mt,color:pt,fullWidth:$t,required:Mt,ownerState:cr},Zt,{children:[jsxRuntimeExports.jsx(InputLabel,_extends$j({htmlFor:nr,id:rr},Gt,{children:Ht})),jsxRuntimeExports.jsx(dr,_extends$j({elements:zt,areAllSectionsEmpty:Tt,onClick:Ct,onKeyDown:It,onKeyUp:Dt,onInput:qt,onPaste:kt,endAdornment:Nt,startAdornment:Yt,tabIndex:Kt,contentEditable:Jt,value:Bt,onChange:Ft,id:nr,fullWidth:$t,inputProps:Ot,inputRef:At,sectionListRef:Rt,label:Ht,name:Wt,role:"group","aria-labelledby":rr},vt)),Ut&&jsxRuntimeExports.jsx(FormHelperText,_extends$j({id:or},Vt,{children:Ut}))]}))}),_excluded$m=["enableAccessibleFieldDOMStructure"],_excluded2$6=["InputProps","readOnly"],_excluded3$2=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],convertFieldResponseIntoMuiTextFieldProps=et=>{let{enableAccessibleFieldDOMStructure:tt}=et,rt=_objectWithoutPropertiesLoose$d(et,_excluded$m);if(tt){const{InputProps:Mt,readOnly:vt}=rt,Ot=_objectWithoutPropertiesLoose$d(rt,_excluded2$6);return _extends$j({},Ot,{InputProps:_extends$j({},Mt??{},{readOnly:vt})})}const{onPaste:nt,onKeyDown:lt,inputMode:ut,readOnly:dt,InputProps:pt,inputProps:ht,inputRef:mt}=rt,xt=_objectWithoutPropertiesLoose$d(rt,_excluded3$2);return _extends$j({},xt,{InputProps:_extends$j({},pt??{},{readOnly:dt}),inputProps:_extends$j({},ht??{},{inputMode:ut,onPaste:nt,onKeyDown:lt,ref:mt})})},_excluded$l=["slots","slotProps","InputProps","inputProps"],DateField$1=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiDateField"}),{slots:lt,slotProps:ut,InputProps:dt,inputProps:pt}=nt,ht=_objectWithoutPropertiesLoose$d(nt,_excluded$l),mt=nt,xt=(lt==null?void 0:lt.textField)??(tt.enableAccessibleFieldDOMStructure?PickersTextField:TextField),Mt=useSlotProps({elementType:xt,externalSlotProps:ut==null?void 0:ut.textField,externalForwardedProps:ht,additionalProps:{ref:rt},ownerState:mt});Mt.inputProps=_extends$j({},pt,Mt.inputProps),Mt.InputProps=_extends$j({},dt,Mt.InputProps);const vt=useDateField(Mt),Ot=convertFieldResponseIntoMuiTextFieldProps(vt),At=useClearableField(_extends$j({},Ot,{slots:lt,slotProps:ut}));return jsxRuntimeExports.jsx(xt,_extends$j({},At))}),useIsDateDisabled=({shouldDisableDate:et,shouldDisableMonth:tt,shouldDisableYear:rt,minDate:nt,maxDate:lt,disableFuture:ut,disablePast:dt,timezone:pt})=>{const ht=useLocalizationContext();return reactExports.useCallback(mt=>validateDate({adapter:ht,value:mt,timezone:pt,props:{shouldDisableDate:et,shouldDisableMonth:tt,shouldDisableYear:rt,minDate:nt,maxDate:lt,disableFuture:ut,disablePast:dt}})!==null,[ht,et,tt,rt,nt,lt,ut,dt,pt])},createCalendarStateReducer=(et,tt,rt)=>(nt,lt)=>{switch(lt.type){case"changeMonth":return _extends$j({},nt,{slideDirection:lt.direction,currentMonth:lt.newMonth,isMonthSwitchingAnimating:!et});case"finishMonthSwitchingAnimation":return _extends$j({},nt,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(nt.focusedDay!=null&&lt.focusedDay!=null&&rt.isSameDay(lt.focusedDay,nt.focusedDay))return nt;const ut=lt.focusedDay!=null&&!tt&&!rt.isSameMonth(nt.currentMonth,lt.focusedDay);return _extends$j({},nt,{focusedDay:lt.focusedDay,isMonthSwitchingAnimating:ut&&!et&&!lt.withoutMonthSwitchingAnimation,currentMonth:ut?rt.startOfMonth(lt.focusedDay):nt.currentMonth,slideDirection:lt.focusedDay!=null&&rt.isAfterDay(lt.focusedDay,nt.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},useCalendarState=et=>{const{value:tt,referenceDate:rt,disableFuture:nt,disablePast:lt,disableSwitchToMonthOnDayFocus:ut=!1,maxDate:dt,minDate:pt,onMonthChange:ht,reduceAnimations:mt,shouldDisableDate:xt,timezone:Mt}=et,vt=useUtils(),Ot=reactExports.useRef(createCalendarStateReducer(!!mt,ut,vt)).current,At=reactExports.useMemo(()=>singleItemValueManager.getInitialReferenceValue({value:tt,utils:vt,timezone:Mt,props:et,referenceDate:rt,granularity:SECTION_TYPE_GRANULARITY.day}),[]),[Rt,zt]=reactExports.useReducer(Ot,{isMonthSwitchingAnimating:!1,focusedDay:At,currentMonth:vt.startOfMonth(At),slideDirection:"left"}),Tt=reactExports.useCallback(qt=>{zt(_extends$j({type:"changeMonth"},qt)),ht&&ht(qt.newMonth)},[ht]),Ct=reactExports.useCallback(qt=>{const Nt=qt;vt.isSameMonth(Nt,Rt.currentMonth)||Tt({newMonth:vt.startOfMonth(Nt),direction:vt.isAfterDay(Nt,Rt.currentMonth)?"left":"right"})},[Rt.currentMonth,Tt,vt]),It=useIsDateDisabled({shouldDisableDate:xt,minDate:pt,maxDate:dt,disableFuture:nt,disablePast:lt,timezone:Mt}),Dt=reactExports.useCallback(()=>{zt({type:"finishMonthSwitchingAnimation"})},[]),kt=useEventCallback$1((qt,Nt)=>{It(qt)||zt({type:"changeFocusedDay",focusedDay:qt,withoutMonthSwitchingAnimation:Nt})});return{referenceDate:At,calendarState:Rt,changeMonth:Ct,changeFocusedDay:kt,isDateDisabled:It,onMonthSwitchingAnimationEnd:Dt,handleChangeMonth:Tt}},getPickersFadeTransitionGroupUtilityClass=et=>generateUtilityClass("MuiPickersFadeTransitionGroup",et);generateUtilityClasses("MuiPickersFadeTransitionGroup",["root"]);const useUtilityClasses$d=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getPickersFadeTransitionGroupUtilityClass,tt)},PickersFadeTransitionGroupRoot=styled(TransitionGroup,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"block",position:"relative"});function PickersFadeTransitionGroup(et){const tt=useThemeProps({props:et,name:"MuiPickersFadeTransitionGroup"}),{children:rt,className:nt,reduceAnimations:lt,transKey:ut}=tt,dt=useUtilityClasses$d(tt),pt=useTheme$1();return lt?rt:jsxRuntimeExports.jsx(PickersFadeTransitionGroupRoot,{className:clsx(dt.root,nt),children:jsxRuntimeExports.jsx(Fade,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:pt.transitions.duration.enteringScreen,enter:pt.transitions.duration.enteringScreen,exit:0},children:rt},ut)})}const getPickersSlideTransitionUtilityClass=et=>generateUtilityClass("MuiPickersSlideTransition",et),pickersSlideTransitionClasses=generateUtilityClasses("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),_excluded$k=["children","className","reduceAnimations","slideDirection","transKey","classes"],useUtilityClasses$c=et=>{const{classes:tt,slideDirection:rt}=et,nt={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${rt}`],exitActive:[`slideExitActiveLeft-${rt}`]};return composeClasses(nt,getPickersSlideTransitionUtilityClass,tt)},PickersSlideTransitionRoot=styled(TransitionGroup,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(et,tt)=>[tt.root,{[`.${pickersSlideTransitionClasses["slideEnter-left"]}`]:tt["slideEnter-left"]},{[`.${pickersSlideTransitionClasses["slideEnter-right"]}`]:tt["slideEnter-right"]},{[`.${pickersSlideTransitionClasses.slideEnterActive}`]:tt.slideEnterActive},{[`.${pickersSlideTransitionClasses.slideExit}`]:tt.slideExit},{[`.${pickersSlideTransitionClasses["slideExitActiveLeft-left"]}`]:tt["slideExitActiveLeft-left"]},{[`.${pickersSlideTransitionClasses["slideExitActiveLeft-right"]}`]:tt["slideExitActiveLeft-right"]}]})(({theme:et})=>{const tt=et.transitions.create("transform",{duration:et.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${pickersSlideTransitionClasses["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${pickersSlideTransitionClasses["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${pickersSlideTransitionClasses.slideEnterActive}`]:{transform:"translate(0%)",transition:tt},[`& .${pickersSlideTransitionClasses.slideExit}`]:{transform:"translate(0%)"},[`& .${pickersSlideTransitionClasses["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:tt,zIndex:0},[`& .${pickersSlideTransitionClasses["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:tt,zIndex:0}}});function PickersSlideTransition(et){const tt=useThemeProps({props:et,name:"MuiPickersSlideTransition"}),{children:rt,className:nt,reduceAnimations:lt,transKey:ut}=tt,dt=_objectWithoutPropertiesLoose$d(tt,_excluded$k),pt=useUtilityClasses$c(tt),ht=useTheme$1();if(lt)return jsxRuntimeExports.jsx("div",{className:clsx(pt.root,nt),children:rt});const mt={exit:pt.exit,enterActive:pt.enterActive,enter:pt.enter,exitActive:pt.exitActive};return jsxRuntimeExports.jsx(PickersSlideTransitionRoot,{className:clsx(pt.root,nt),childFactory:xt=>reactExports.cloneElement(xt,{classNames:mt}),role:"presentation",children:jsxRuntimeExports.jsx(CSSTransition,_extends$j({mountOnEnter:!0,unmountOnExit:!0,timeout:ht.transitions.duration.complex,classNames:mt},dt,{children:rt}),ut)})}const getDayCalendarUtilityClass=et=>generateUtilityClass("MuiDayCalendar",et);generateUtilityClasses("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const _excluded$j=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],_excluded2$5=["ownerState"],useUtilityClasses$b=et=>{const{classes:tt}=et;return composeClasses({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},getDayCalendarUtilityClass,tt)},weeksContainerHeight=(DAY_SIZE+DAY_MARGIN*2)*6,PickersCalendarDayRoot=styled("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(et,tt)=>tt.root})({}),PickersCalendarDayHeader=styled("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(et,tt)=>tt.header})({display:"flex",justifyContent:"center",alignItems:"center"}),PickersCalendarWeekDayLabel=styled(Typography,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(et,tt)=>tt.weekDayLabel})(({theme:et})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(et.vars||et).palette.text.secondary})),PickersCalendarWeekNumberLabel=styled(Typography,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(et,tt)=>tt.weekNumberLabel})(({theme:et})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:et.palette.text.disabled})),PickersCalendarWeekNumber=styled(Typography,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(et,tt)=>tt.weekNumber})(({theme:et})=>_extends$j({},et.typography.caption,{width:DAY_SIZE,height:DAY_SIZE,padding:0,margin:`0 ${DAY_MARGIN}px`,color:et.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),PickersCalendarLoadingContainer=styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(et,tt)=>tt.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:weeksContainerHeight}),PickersCalendarSlideTransition=styled(PickersSlideTransition,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(et,tt)=>tt.slideTransition})({minHeight:weeksContainerHeight}),PickersCalendarWeekContainer=styled("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(et,tt)=>tt.monthContainer})({overflow:"hidden"}),PickersCalendarWeek=styled("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(et,tt)=>tt.weekContainer})({margin:`${DAY_MARGIN}px 0`,display:"flex",justifyContent:"center"});function WrappedDay(et){let{parentProps:tt,day:rt,focusableDay:nt,selectedDays:lt,isDateDisabled:ut,currentMonthNumber:dt,isViewFocused:pt}=et,ht=_objectWithoutPropertiesLoose$d(et,_excluded$j);const{disabled:mt,disableHighlightToday:xt,isMonthSwitchingAnimating:Mt,showDaysOutsideCurrentMonth:vt,slots:Ot,slotProps:At,timezone:Rt}=tt,zt=useUtils(),Tt=useNow(Rt),Ct=nt!==null&&zt.isSameDay(rt,nt),It=lt.some(Bt=>zt.isSameDay(Bt,rt)),Dt=zt.isSameDay(rt,Tt),kt=(Ot==null?void 0:Ot.day)??PickersDay,qt=useSlotProps({elementType:kt,externalSlotProps:At==null?void 0:At.day,additionalProps:_extends$j({disableHighlightToday:xt,showDaysOutsideCurrentMonth:vt,role:"gridcell",isAnimating:Mt,"data-timestamp":zt.toJsDate(rt).valueOf()},ht),ownerState:_extends$j({},tt,{day:rt,selected:It})}),Nt=_objectWithoutPropertiesLoose$d(qt,_excluded2$5),Yt=reactExports.useMemo(()=>mt||ut(rt),[mt,ut,rt]),Kt=reactExports.useMemo(()=>zt.getMonth(rt)!==dt,[zt,rt,dt]),Jt=reactExports.useMemo(()=>{const Bt=zt.startOfMonth(zt.setMonth(rt,dt));return vt?zt.isSameDay(rt,zt.startOfWeek(Bt)):zt.isSameDay(rt,Bt)},[dt,rt,vt,zt]),Qt=reactExports.useMemo(()=>{const Bt=zt.endOfMonth(zt.setMonth(rt,dt));return vt?zt.isSameDay(rt,zt.endOfWeek(Bt)):zt.isSameDay(rt,Bt)},[dt,rt,vt,zt]);return jsxRuntimeExports.jsx(kt,_extends$j({},Nt,{day:rt,disabled:Yt,autoFocus:pt&&Ct,today:Dt,outsideCurrentMonth:Kt,isFirstVisibleCell:Jt,isLastVisibleCell:Qt,selected:It,tabIndex:Ct?0:-1,"aria-selected":It,"aria-current":Dt?"date":void 0}))}function DayCalendar(et){const tt=useThemeProps({props:et,name:"MuiDayCalendar"}),rt=useUtils(),{onFocusedDayChange:nt,className:lt,currentMonth:ut,selectedDays:dt,focusedDay:pt,loading:ht,onSelectedDaysChange:mt,onMonthSwitchingAnimationEnd:xt,readOnly:Mt,reduceAnimations:vt,renderLoading:Ot=()=>jsxRuntimeExports.jsx("span",{children:"..."}),slideDirection:At,TransitionProps:Rt,disablePast:zt,disableFuture:Tt,minDate:Ct,maxDate:It,shouldDisableDate:Dt,shouldDisableMonth:kt,shouldDisableYear:qt,dayOfWeekFormatter:Nt=Ar=>rt.format(Ar,"weekdayShort").charAt(0).toUpperCase(),hasFocus:Yt,onFocusedViewChange:Kt,gridLabelId:Jt,displayWeekNumber:Qt,fixedWeekNumber:Bt,autoFocus:Ft,timezone:$t}=tt,jt=useNow($t),Wt=useUtilityClasses$b(tt),Ut=useRtl(),Vt=useIsDateDisabled({shouldDisableDate:Dt,shouldDisableMonth:kt,shouldDisableYear:qt,minDate:Ct,maxDate:It,disablePast:zt,disableFuture:Tt,timezone:$t}),Ht=usePickersTranslations(),[Gt,Zt]=useControlled({name:"DayCalendar",state:"hasFocus",controlled:Yt,default:Ft??!1}),[Xt,er]=reactExports.useState(()=>pt||jt),nr=useEventCallback$1(Ar=>{Mt||mt(Ar)}),or=Ar=>{Vt(Ar)||(nt(Ar),er(Ar),Kt==null||Kt(!0),Zt(!0))},rr=useEventCallback$1((Ar,Ir)=>{switch(Ar.key){case"ArrowUp":or(rt.addDays(Ir,-7)),Ar.preventDefault();break;case"ArrowDown":or(rt.addDays(Ir,7)),Ar.preventDefault();break;case"ArrowLeft":{const Rr=rt.addDays(Ir,Ut?1:-1),wr=rt.addMonths(Ir,Ut?1:-1),qr=findClosestEnabledDate({utils:rt,date:Rr,minDate:Ut?Rr:rt.startOfMonth(wr),maxDate:Ut?rt.endOfMonth(wr):Rr,isDateDisabled:Vt,timezone:$t});or(qr||Rr),Ar.preventDefault();break}case"ArrowRight":{const Rr=rt.addDays(Ir,Ut?-1:1),wr=rt.addMonths(Ir,Ut?-1:1),qr=findClosestEnabledDate({utils:rt,date:Rr,minDate:Ut?rt.startOfMonth(wr):Rr,maxDate:Ut?Rr:rt.endOfMonth(wr),isDateDisabled:Vt,timezone:$t});or(qr||Rr),Ar.preventDefault();break}case"Home":or(rt.startOfWeek(Ir)),Ar.preventDefault();break;case"End":or(rt.endOfWeek(Ir)),Ar.preventDefault();break;case"PageUp":or(rt.addMonths(Ir,1)),Ar.preventDefault();break;case"PageDown":or(rt.addMonths(Ir,-1)),Ar.preventDefault();break}}),cr=useEventCallback$1((Ar,Ir)=>or(Ir)),ir=useEventCallback$1((Ar,Ir)=>{Gt&&rt.isSameDay(Xt,Ir)&&(Kt==null||Kt(!1))}),dr=rt.getMonth(ut),gr=rt.getYear(ut),br=reactExports.useMemo(()=>dt.filter(Ar=>!!Ar).map(Ar=>rt.startOfDay(Ar)),[rt,dt]),ar=`${gr}-${dr}`,ur=reactExports.useMemo(()=>reactExports.createRef(),[ar]),xr=reactExports.useMemo(()=>{const Ar=rt.startOfMonth(ut),Ir=rt.endOfMonth(ut);return Vt(Xt)||rt.isAfterDay(Xt,Ir)||rt.isBeforeDay(Xt,Ar)?findClosestEnabledDate({utils:rt,date:Xt,minDate:Ar,maxDate:Ir,disablePast:zt,disableFuture:Tt,isDateDisabled:Vt,timezone:$t}):Xt},[ut,Tt,zt,Xt,Vt,rt,$t]),Mr=reactExports.useMemo(()=>{const Ar=rt.setTimezone(ut,$t),Ir=rt.getWeekArray(Ar);let Rr=rt.addMonths(Ar,1);for(;Bt&&Ir.length<Bt;){const wr=rt.getWeekArray(Rr),qr=rt.isSameDay(Ir[Ir.length-1][0],wr[0][0]);wr.slice(qr?1:0).forEach(Hr=>{Ir.length<Bt&&Ir.push(Hr)}),Rr=rt.addMonths(Rr,1)}return Ir},[ut,Bt,rt,$t]);return jsxRuntimeExports.jsxs(PickersCalendarDayRoot,{role:"grid","aria-labelledby":Jt,className:Wt.root,children:[jsxRuntimeExports.jsxs(PickersCalendarDayHeader,{role:"row",className:Wt.header,children:[Qt&&jsxRuntimeExports.jsx(PickersCalendarWeekNumberLabel,{variant:"caption",role:"columnheader","aria-label":Ht.calendarWeekNumberHeaderLabel,className:Wt.weekNumberLabel,children:Ht.calendarWeekNumberHeaderText}),getWeekdays(rt,jt).map((Ar,Ir)=>jsxRuntimeExports.jsx(PickersCalendarWeekDayLabel,{variant:"caption",role:"columnheader","aria-label":rt.format(Ar,"weekday"),className:Wt.weekDayLabel,children:Nt(Ar)},Ir.toString()))]}),ht?jsxRuntimeExports.jsx(PickersCalendarLoadingContainer,{className:Wt.loadingContainer,children:Ot()}):jsxRuntimeExports.jsx(PickersCalendarSlideTransition,_extends$j({transKey:ar,onExited:xt,reduceAnimations:vt,slideDirection:At,className:clsx(lt,Wt.slideTransition)},Rt,{nodeRef:ur,children:jsxRuntimeExports.jsx(PickersCalendarWeekContainer,{ref:ur,role:"rowgroup",className:Wt.monthContainer,children:Mr.map((Ar,Ir)=>jsxRuntimeExports.jsxs(PickersCalendarWeek,{role:"row",className:Wt.weekContainer,"aria-rowindex":Ir+1,children:[Qt&&jsxRuntimeExports.jsx(PickersCalendarWeekNumber,{className:Wt.weekNumber,role:"rowheader","aria-label":Ht.calendarWeekNumberAriaLabelText(rt.getWeekNumber(Ar[0])),children:Ht.calendarWeekNumberText(rt.getWeekNumber(Ar[0]))}),Ar.map((Rr,wr)=>jsxRuntimeExports.jsx(WrappedDay,{parentProps:tt,day:Rr,selectedDays:br,focusableDay:xr,onKeyDown:rr,onFocus:cr,onBlur:ir,onDaySelect:nr,isDateDisabled:Vt,currentMonthNumber:dr,isViewFocused:Gt,"aria-colindex":wr+1},Rr.toString()))]},`week-${Ar[0]}`))})}))]})}function getPickersMonthUtilityClass(et){return generateUtilityClass("MuiPickersMonth",et)}const pickersMonthClasses=generateUtilityClasses("MuiPickersMonth",["root","monthButton","disabled","selected"]),_excluded$i=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],useUtilityClasses$a=et=>{const{disabled:tt,selected:rt,classes:nt}=et;return composeClasses({root:["root"],monthButton:["monthButton",tt&&"disabled",rt&&"selected"]},getPickersMonthUtilityClass,nt)},PickersMonthRoot=styled("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(et,tt)=>[tt.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),MonthCalendarButton=styled("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(et,tt)=>[tt.monthButton,{[`&.${pickersMonthClasses.disabled}`]:tt.disabled},{[`&.${pickersMonthClasses.selected}`]:tt.selected}]})(({theme:et})=>_extends$j({color:"unset",backgroundColor:"transparent",border:0,outline:0},et.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:et.vars?`rgba(${et.vars.palette.action.activeChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha$1(et.palette.action.active,et.palette.action.hoverOpacity)},"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette.action.activeChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha$1(et.palette.action.active,et.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${pickersMonthClasses.disabled}`]:{color:(et.vars||et).palette.text.secondary},[`&.${pickersMonthClasses.selected}`]:{color:(et.vars||et).palette.primary.contrastText,backgroundColor:(et.vars||et).palette.primary.main,"&:focus, &:hover":{backgroundColor:(et.vars||et).palette.primary.dark}}})),PickersMonth=reactExports.memo(function(tt){const rt=useThemeProps({props:tt,name:"MuiPickersMonth"}),{autoFocus:nt,className:lt,children:ut,disabled:dt,selected:pt,value:ht,tabIndex:mt,onClick:xt,onKeyDown:Mt,onFocus:vt,onBlur:Ot,"aria-current":At,"aria-label":Rt,slots:zt,slotProps:Tt}=rt,Ct=_objectWithoutPropertiesLoose$d(rt,_excluded$i),It=reactExports.useRef(null),Dt=useUtilityClasses$a(rt);useEnhancedEffect(()=>{var Nt;nt&&((Nt=It.current)==null||Nt.focus())},[nt]);const kt=(zt==null?void 0:zt.monthButton)??MonthCalendarButton,qt=useSlotProps({elementType:kt,externalSlotProps:Tt==null?void 0:Tt.monthButton,additionalProps:{children:ut,disabled:dt,tabIndex:mt,ref:It,type:"button",role:"radio","aria-current":At,"aria-checked":pt,"aria-label":Rt,onClick:Nt=>xt(Nt,ht),onKeyDown:Nt=>Mt(Nt,ht),onFocus:Nt=>vt(Nt,ht),onBlur:Nt=>Ot(Nt,ht)},ownerState:rt,className:Dt.monthButton});return jsxRuntimeExports.jsx(PickersMonthRoot,_extends$j({className:clsx(Dt.root,lt),ownerState:rt},Ct,{children:jsxRuntimeExports.jsx(kt,_extends$j({},qt))}))});function getMonthCalendarUtilityClass(et){return generateUtilityClass("MuiMonthCalendar",et)}generateUtilityClasses("MuiMonthCalendar",["root"]);const _excluded$h=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],useUtilityClasses$9=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getMonthCalendarUtilityClass,tt)};function useMonthCalendarDefaultizedProps(et,tt){const rt=useUtils(),nt=useDefaultDates(),lt=useThemeProps({props:et,name:tt});return _extends$j({disableFuture:!1,disablePast:!1},lt,{minDate:applyDefaultDate(rt,lt.minDate,nt.minDate),maxDate:applyDefaultDate(rt,lt.maxDate,nt.maxDate)})}const MonthCalendarRoot=styled("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:DIALOG_WIDTH,boxSizing:"border-box"}),MonthCalendar=reactExports.forwardRef(function(tt,rt){const nt=useMonthCalendarDefaultizedProps(tt,"MuiMonthCalendar"),{className:lt,value:ut,defaultValue:dt,referenceDate:pt,disabled:ht,disableFuture:mt,disablePast:xt,maxDate:Mt,minDate:vt,onChange:Ot,shouldDisableMonth:At,readOnly:Rt,autoFocus:zt=!1,onMonthFocus:Tt,hasFocus:Ct,onFocusedViewChange:It,monthsPerRow:Dt=3,timezone:kt,gridLabelId:qt,slots:Nt,slotProps:Yt}=nt,Kt=_objectWithoutPropertiesLoose$d(nt,_excluded$h),{value:Jt,handleValueChange:Qt,timezone:Bt}=useControlledValueWithTimezone({name:"MonthCalendar",timezone:kt,value:ut,defaultValue:dt,onChange:Ot,valueManager:singleItemValueManager}),Ft=useNow(Bt),$t=useRtl(),jt=useUtils(),Wt=reactExports.useMemo(()=>singleItemValueManager.getInitialReferenceValue({value:Jt,utils:jt,props:nt,timezone:Bt,referenceDate:pt,granularity:SECTION_TYPE_GRANULARITY.month}),[]),Ut=nt,Vt=useUtilityClasses$9(Ut),Ht=reactExports.useMemo(()=>jt.getMonth(Ft),[jt,Ft]),Gt=reactExports.useMemo(()=>Jt!=null?jt.getMonth(Jt):null,[Jt,jt]),[Zt,Xt]=reactExports.useState(()=>Gt||jt.getMonth(Wt)),[er,nr]=useControlled({name:"MonthCalendar",state:"hasFocus",controlled:Ct,default:zt??!1}),or=useEventCallback$1(ar=>{nr(ar),It&&It(ar)}),rr=reactExports.useCallback(ar=>{const ur=jt.startOfMonth(xt&&jt.isAfter(Ft,vt)?Ft:vt),xr=jt.startOfMonth(mt&&jt.isBefore(Ft,Mt)?Ft:Mt),Mr=jt.startOfMonth(ar);return jt.isBefore(Mr,ur)||jt.isAfter(Mr,xr)?!0:At?At(Mr):!1},[mt,xt,Mt,vt,Ft,At,jt]),cr=useEventCallback$1((ar,ur)=>{if(Rt)return;const xr=jt.setMonth(Jt??Wt,ur);Qt(xr)}),ir=useEventCallback$1(ar=>{rr(jt.setMonth(Jt??Wt,ar))||(Xt(ar),or(!0),Tt&&Tt(ar))});reactExports.useEffect(()=>{Xt(ar=>Gt!==null&&ar!==Gt?Gt:ar)},[Gt]);const dr=useEventCallback$1((ar,ur)=>{switch(ar.key){case"ArrowUp":ir((12+ur-3)%12),ar.preventDefault();break;case"ArrowDown":ir((12+ur+3)%12),ar.preventDefault();break;case"ArrowLeft":ir((12+ur+($t?1:-1))%12),ar.preventDefault();break;case"ArrowRight":ir((12+ur+($t?-1:1))%12),ar.preventDefault();break}}),gr=useEventCallback$1((ar,ur)=>{ir(ur)}),br=useEventCallback$1((ar,ur)=>{Zt===ur&&or(!1)});return jsxRuntimeExports.jsx(MonthCalendarRoot,_extends$j({ref:rt,className:clsx(Vt.root,lt),ownerState:Ut,role:"radiogroup","aria-labelledby":qt},Kt,{children:getMonthsInYear(jt,Jt??Wt).map(ar=>{const ur=jt.getMonth(ar),xr=jt.format(ar,"monthShort"),Mr=jt.format(ar,"month"),Ar=ur===Gt,Ir=ht||rr(ar);return jsxRuntimeExports.jsx(PickersMonth,{selected:Ar,value:ur,onClick:cr,onKeyDown:dr,autoFocus:er&&ur===Zt,disabled:Ir,tabIndex:ur===Zt&&!Ir?0:-1,onFocus:gr,onBlur:br,"aria-current":Ht===ur?"date":void 0,"aria-label":Mr,monthsPerRow:Dt,slots:Nt,slotProps:Yt,children:xr},xr)})}))});function getPickersYearUtilityClass(et){return generateUtilityClass("MuiPickersYear",et)}const pickersYearClasses=generateUtilityClasses("MuiPickersYear",["root","yearButton","selected","disabled"]),_excluded$g=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],useUtilityClasses$8=et=>{const{disabled:tt,selected:rt,classes:nt}=et;return composeClasses({root:["root"],yearButton:["yearButton",tt&&"disabled",rt&&"selected"]},getPickersYearUtilityClass,nt)},PickersYearRoot=styled("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(et,tt)=>[tt.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),YearCalendarButton=styled("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(et,tt)=>[tt.yearButton,{[`&.${pickersYearClasses.disabled}`]:tt.disabled},{[`&.${pickersYearClasses.selected}`]:tt.selected}]})(({theme:et})=>_extends$j({color:"unset",backgroundColor:"transparent",border:0,outline:0},et.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:et.vars?`rgba(${et.vars.palette.action.activeChannel} / ${et.vars.palette.action.focusOpacity})`:alpha$1(et.palette.action.active,et.palette.action.focusOpacity)},"&:hover":{backgroundColor:et.vars?`rgba(${et.vars.palette.action.activeChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha$1(et.palette.action.active,et.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${pickersYearClasses.disabled}`]:{color:(et.vars||et).palette.text.secondary},[`&.${pickersYearClasses.selected}`]:{color:(et.vars||et).palette.primary.contrastText,backgroundColor:(et.vars||et).palette.primary.main,"&:focus, &:hover":{backgroundColor:(et.vars||et).palette.primary.dark}}})),PickersYear=reactExports.memo(function(tt){const rt=useThemeProps({props:tt,name:"MuiPickersYear"}),{autoFocus:nt,className:lt,children:ut,disabled:dt,selected:pt,value:ht,tabIndex:mt,onClick:xt,onKeyDown:Mt,onFocus:vt,onBlur:Ot,"aria-current":At,slots:Rt,slotProps:zt}=rt,Tt=_objectWithoutPropertiesLoose$d(rt,_excluded$g),Ct=reactExports.useRef(null),It=useUtilityClasses$8(rt);useEnhancedEffect(()=>{var qt;nt&&((qt=Ct.current)==null||qt.focus())},[nt]);const Dt=(Rt==null?void 0:Rt.yearButton)??YearCalendarButton,kt=useSlotProps({elementType:Dt,externalSlotProps:zt==null?void 0:zt.yearButton,additionalProps:{children:ut,disabled:dt,tabIndex:mt,ref:Ct,type:"button",role:"radio","aria-current":At,"aria-checked":pt,onClick:qt=>xt(qt,ht),onKeyDown:qt=>Mt(qt,ht),onFocus:qt=>vt(qt,ht),onBlur:qt=>Ot(qt,ht)},ownerState:rt,className:It.yearButton});return jsxRuntimeExports.jsx(PickersYearRoot,_extends$j({className:clsx(It.root,lt),ownerState:rt},Tt,{children:jsxRuntimeExports.jsx(Dt,_extends$j({},kt))}))});function getYearCalendarUtilityClass(et){return generateUtilityClass("MuiYearCalendar",et)}generateUtilityClasses("MuiYearCalendar",["root"]);const _excluded$f=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId","slots","slotProps"],useUtilityClasses$7=et=>{const{classes:tt}=et;return composeClasses({root:["root"]},getYearCalendarUtilityClass,tt)};function useYearCalendarDefaultizedProps(et,tt){const rt=useUtils(),nt=useDefaultDates(),lt=useThemeProps({props:et,name:tt});return _extends$j({disablePast:!1,disableFuture:!1},lt,{yearsPerRow:lt.yearsPerRow??3,minDate:applyDefaultDate(rt,lt.minDate,nt.minDate),maxDate:applyDefaultDate(rt,lt.maxDate,nt.maxDate)})}const YearCalendarRoot=styled("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:DIALOG_WIDTH,maxHeight:MAX_CALENDAR_HEIGHT,boxSizing:"border-box",position:"relative"}),YearCalendar=reactExports.forwardRef(function(tt,rt){const nt=useYearCalendarDefaultizedProps(tt,"MuiYearCalendar"),{autoFocus:lt,className:ut,value:dt,defaultValue:pt,referenceDate:ht,disabled:mt,disableFuture:xt,disablePast:Mt,maxDate:vt,minDate:Ot,onChange:At,readOnly:Rt,shouldDisableYear:zt,onYearFocus:Tt,hasFocus:Ct,onFocusedViewChange:It,yearsPerRow:Dt,timezone:kt,gridLabelId:qt,slots:Nt,slotProps:Yt}=nt,Kt=_objectWithoutPropertiesLoose$d(nt,_excluded$f),{value:Jt,handleValueChange:Qt,timezone:Bt}=useControlledValueWithTimezone({name:"YearCalendar",timezone:kt,value:dt,defaultValue:pt,onChange:At,valueManager:singleItemValueManager}),Ft=useNow(Bt),$t=useRtl(),jt=useUtils(),Wt=reactExports.useMemo(()=>singleItemValueManager.getInitialReferenceValue({value:Jt,utils:jt,props:nt,timezone:Bt,referenceDate:ht,granularity:SECTION_TYPE_GRANULARITY.year}),[]),Ut=nt,Vt=useUtilityClasses$7(Ut),Ht=reactExports.useMemo(()=>jt.getYear(Ft),[jt,Ft]),Gt=reactExports.useMemo(()=>Jt!=null?jt.getYear(Jt):null,[Jt,jt]),[Zt,Xt]=reactExports.useState(()=>Gt||jt.getYear(Wt)),[er,nr]=useControlled({name:"YearCalendar",state:"hasFocus",controlled:Ct,default:lt??!1}),or=useEventCallback$1(xr=>{nr(xr),It&&It(xr)}),rr=reactExports.useCallback(xr=>{if(Mt&&jt.isBeforeYear(xr,Ft)||xt&&jt.isAfterYear(xr,Ft)||Ot&&jt.isBeforeYear(xr,Ot)||vt&&jt.isAfterYear(xr,vt))return!0;if(!zt)return!1;const Mr=jt.startOfYear(xr);return zt(Mr)},[xt,Mt,vt,Ot,Ft,zt,jt]),cr=useEventCallback$1((xr,Mr)=>{if(Rt)return;const Ar=jt.setYear(Jt??Wt,Mr);Qt(Ar)}),ir=useEventCallback$1(xr=>{rr(jt.setYear(Jt??Wt,xr))||(Xt(xr),or(!0),Tt==null||Tt(xr))});reactExports.useEffect(()=>{Xt(xr=>Gt!==null&&xr!==Gt?Gt:xr)},[Gt]);const dr=useEventCallback$1((xr,Mr)=>{switch(xr.key){case"ArrowUp":ir(Mr-Dt),xr.preventDefault();break;case"ArrowDown":ir(Mr+Dt),xr.preventDefault();break;case"ArrowLeft":ir(Mr+($t?1:-1)),xr.preventDefault();break;case"ArrowRight":ir(Mr+($t?-1:1)),xr.preventDefault();break}}),gr=useEventCallback$1((xr,Mr)=>{ir(Mr)}),br=useEventCallback$1((xr,Mr)=>{Zt===Mr&&or(!1)}),ar=reactExports.useRef(null),ur=useForkRef(rt,ar);return reactExports.useEffect(()=>{if(lt||ar.current===null)return;const xr=ar.current.querySelector('[tabindex="0"]');if(!xr)return;const Mr=xr.offsetHeight,Ar=xr.offsetTop,Ir=ar.current.clientHeight,Rr=ar.current.scrollTop,wr=Ar+Mr;Mr>Ir||Ar<Rr||(ar.current.scrollTop=wr-Ir/2-Mr/2)},[lt]),jsxRuntimeExports.jsx(YearCalendarRoot,_extends$j({ref:ur,className:clsx(Vt.root,ut),ownerState:Ut,role:"radiogroup","aria-labelledby":qt},Kt,{children:jt.getYearRange([Ot,vt]).map(xr=>{const Mr=jt.getYear(xr),Ar=Mr===Gt,Ir=mt||rr(xr);return jsxRuntimeExports.jsx(PickersYear,{selected:Ar,value:Mr,onClick:cr,onKeyDown:dr,autoFocus:er&&Mr===Zt,disabled:Ir,tabIndex:Mr===Zt&&!Ir?0:-1,onFocus:gr,onBlur:br,"aria-current":Ht===Mr?"date":void 0,yearsPerRow:Dt,slots:Nt,slotProps:Yt,children:jt.format(xr,"year")},jt.format(xr,"year"))})}))}),getPickersCalendarHeaderUtilityClass=et=>generateUtilityClass("MuiPickersCalendarHeader",et),pickersCalendarHeaderClasses=generateUtilityClasses("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),_excluded$e=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],_excluded2$4=["ownerState"],useUtilityClasses$6=et=>{const{classes:tt}=et;return composeClasses({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},getPickersCalendarHeaderUtilityClass,tt)},PickersCalendarHeaderRoot=styled("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),PickersCalendarHeaderLabelContainer=styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(et,tt)=>tt.labelContainer})(({theme:et})=>_extends$j({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},et.typography.body1,{fontWeight:et.typography.fontWeightMedium})),PickersCalendarHeaderLabel=styled("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(et,tt)=>tt.label})({marginRight:6}),PickersCalendarHeaderSwitchViewButton=styled(IconButton,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(et,tt)=>tt.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${pickersCalendarHeaderClasses.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),PickersCalendarHeaderSwitchViewIcon=styled(ArrowDropDownIcon,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(et,tt)=>tt.switchViewIcon})(({theme:et})=>({willChange:"transform",transition:et.transitions.create("transform"),transform:"rotate(0deg)"})),PickersCalendarHeader=reactExports.forwardRef(function(tt,rt){const nt=usePickersTranslations(),lt=useUtils(),ut=useThemeProps({props:tt,name:"MuiPickersCalendarHeader"}),{slots:dt,slotProps:pt,currentMonth:ht,disabled:mt,disableFuture:xt,disablePast:Mt,maxDate:vt,minDate:Ot,onMonthChange:At,onViewChange:Rt,view:zt,reduceAnimations:Tt,views:Ct,labelId:It,className:Dt,timezone:kt,format:qt=`${lt.formats.month} ${lt.formats.year}`}=ut,Nt=_objectWithoutPropertiesLoose$d(ut,_excluded$e),Yt=ut,Kt=useUtilityClasses$6(ut),Jt=(dt==null?void 0:dt.switchViewButton)??PickersCalendarHeaderSwitchViewButton,Qt=useSlotProps({elementType:Jt,externalSlotProps:pt==null?void 0:pt.switchViewButton,additionalProps:{size:"small","aria-label":nt.calendarViewSwitchingButtonAriaLabel(zt)},ownerState:Yt,className:Kt.switchViewButton}),Bt=(dt==null?void 0:dt.switchViewIcon)??PickersCalendarHeaderSwitchViewIcon,Ft=useSlotProps({elementType:Bt,externalSlotProps:pt==null?void 0:pt.switchViewIcon,ownerState:Yt,className:Kt.switchViewIcon}),$t=_objectWithoutPropertiesLoose$d(Ft,_excluded2$4),jt=()=>At(lt.addMonths(ht,1),"left"),Wt=()=>At(lt.addMonths(ht,-1),"right"),Ut=useNextMonthDisabled(ht,{disableFuture:xt,maxDate:vt,timezone:kt}),Vt=usePreviousMonthDisabled(ht,{disablePast:Mt,minDate:Ot,timezone:kt}),Ht=()=>{if(!(Ct.length===1||!Rt||mt))if(Ct.length===2)Rt(Ct.find(Zt=>Zt!==zt)||Ct[0]);else{const Zt=Ct.indexOf(zt)!==0?0:1;Rt(Ct[Zt])}};if(Ct.length===1&&Ct[0]==="year")return null;const Gt=lt.formatByString(ht,qt);return jsxRuntimeExports.jsxs(PickersCalendarHeaderRoot,_extends$j({},Nt,{ownerState:Yt,className:clsx(Dt,Kt.root),ref:rt,children:[jsxRuntimeExports.jsxs(PickersCalendarHeaderLabelContainer,{role:"presentation",onClick:Ht,ownerState:Yt,"aria-live":"polite",className:Kt.labelContainer,children:[jsxRuntimeExports.jsx(PickersFadeTransitionGroup,{reduceAnimations:Tt,transKey:Gt,children:jsxRuntimeExports.jsx(PickersCalendarHeaderLabel,{id:It,ownerState:Yt,className:Kt.label,children:Gt})}),Ct.length>1&&!mt&&jsxRuntimeExports.jsx(Jt,_extends$j({},Qt,{children:jsxRuntimeExports.jsx(Bt,_extends$j({},$t))}))]}),jsxRuntimeExports.jsx(Fade,{in:zt==="day",children:jsxRuntimeExports.jsx(PickersArrowSwitcher,{slots:dt,slotProps:pt,onGoToPrevious:Wt,isPreviousDisabled:Vt,previousLabel:nt.previousMonth,onGoToNext:jt,isNextDisabled:Ut,nextLabel:nt.nextMonth})})]}))}),PREFERS_REDUCED_MOTION="@media (prefers-reduced-motion: reduce)",mobileVersionMatches=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),androidVersion=mobileVersionMatches&&mobileVersionMatches[1]?parseInt(mobileVersionMatches[1],10):null,iOSVersion=mobileVersionMatches&&mobileVersionMatches[2]?parseInt(mobileVersionMatches[2],10):null,slowAnimationDevices=androidVersion&&androidVersion<10||iOSVersion&&iOSVersion<13||!1,useDefaultReduceAnimations=()=>useMediaQuery(PREFERS_REDUCED_MOTION,{defaultMatches:!1})||slowAnimationDevices,getDateCalendarUtilityClass=et=>generateUtilityClass("MuiDateCalendar",et);generateUtilityClasses("MuiDateCalendar",["root","viewTransitionContainer"]);const _excluded$d=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],useUtilityClasses$5=et=>{const{classes:tt}=et;return composeClasses({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},getDateCalendarUtilityClass,tt)};function useDateCalendarDefaultizedProps(et,tt){const rt=useUtils(),nt=useDefaultDates(),lt=useDefaultReduceAnimations(),ut=useThemeProps({props:et,name:tt});return _extends$j({},ut,{loading:ut.loading??!1,disablePast:ut.disablePast??!1,disableFuture:ut.disableFuture??!1,openTo:ut.openTo??"day",views:ut.views??["year","day"],reduceAnimations:ut.reduceAnimations??lt,renderLoading:ut.renderLoading??(()=>jsxRuntimeExports.jsx("span",{children:"..."})),minDate:applyDefaultDate(rt,ut.minDate,nt.minDate),maxDate:applyDefaultDate(rt,ut.maxDate,nt.maxDate)})}const DateCalendarRoot=styled(PickerViewRoot,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"flex",flexDirection:"column",height:VIEW_HEIGHT}),DateCalendarViewTransitionContainer=styled(PickersFadeTransitionGroup,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(et,tt)=>tt.viewTransitionContainer})({}),DateCalendar=reactExports.forwardRef(function(tt,rt){const nt=useUtils(),lt=useId(),ut=useDateCalendarDefaultizedProps(tt,"MuiDateCalendar"),{autoFocus:dt,onViewChange:pt,value:ht,defaultValue:mt,referenceDate:xt,disableFuture:Mt,disablePast:vt,onChange:Ot,onYearChange:At,onMonthChange:Rt,reduceAnimations:zt,shouldDisableDate:Tt,shouldDisableMonth:Ct,shouldDisableYear:It,view:Dt,views:kt,openTo:qt,className:Nt,disabled:Yt,readOnly:Kt,minDate:Jt,maxDate:Qt,disableHighlightToday:Bt,focusedView:Ft,onFocusedViewChange:$t,showDaysOutsideCurrentMonth:jt,fixedWeekNumber:Wt,dayOfWeekFormatter:Ut,slots:Vt,slotProps:Ht,loading:Gt,renderLoading:Zt,displayWeekNumber:Xt,yearsPerRow:er,monthsPerRow:nr,timezone:or}=ut,rr=_objectWithoutPropertiesLoose$d(ut,_excluded$d),{value:cr,handleValueChange:ir,timezone:dr}=useControlledValueWithTimezone({name:"DateCalendar",timezone:or,value:ht,defaultValue:mt,onChange:Ot,valueManager:singleItemValueManager}),{view:gr,setView:br,focusedView:ar,setFocusedView:ur,goToNextView:xr,setValueAndGoToNextView:Mr}=useViews({view:Dt,views:kt,openTo:qt,onChange:ir,onViewChange:pt,autoFocus:dt,focusedView:Ft,onFocusedViewChange:$t}),{referenceDate:Ar,calendarState:Ir,changeFocusedDay:Rr,changeMonth:wr,handleChangeMonth:qr,isDateDisabled:Hr,onMonthSwitchingAnimationEnd:kr}=useCalendarState({value:cr,referenceDate:xt,reduceAnimations:zt,onMonthChange:Rt,minDate:Jt,maxDate:Qt,shouldDisableDate:Tt,disablePast:vt,disableFuture:Mt,timezone:dr}),$r=Yt&&cr||Jt,yr=Yt&&cr||Qt,Or=`${lt}-grid-label`,Dr=ar!==null,Fr=(Vt==null?void 0:Vt.calendarHeader)??PickersCalendarHeader,Yr=useSlotProps({elementType:Fr,externalSlotProps:Ht==null?void 0:Ht.calendarHeader,additionalProps:{views:kt,view:gr,currentMonth:Ir.currentMonth,onViewChange:br,onMonthChange:(ln,vn)=>qr({newMonth:ln,direction:vn}),minDate:$r,maxDate:yr,disabled:Yt,disablePast:vt,disableFuture:Mt,reduceAnimations:zt,timezone:dr,labelId:Or},ownerState:ut}),Gr=useEventCallback$1(ln=>{const vn=nt.startOfMonth(ln),Cr=nt.endOfMonth(ln),gn=Hr(ln)?findClosestEnabledDate({utils:nt,date:ln,minDate:nt.isBefore(Jt,vn)?vn:Jt,maxDate:nt.isAfter(Qt,Cr)?Cr:Qt,disablePast:vt,disableFuture:Mt,isDateDisabled:Hr,timezone:dr}):ln;gn?(Mr(gn,"finish"),Rt==null||Rt(vn)):(xr(),wr(vn)),Rr(gn,!0)}),Jr=useEventCallback$1(ln=>{const vn=nt.startOfYear(ln),Cr=nt.endOfYear(ln),gn=Hr(ln)?findClosestEnabledDate({utils:nt,date:ln,minDate:nt.isBefore(Jt,vn)?vn:Jt,maxDate:nt.isAfter(Qt,Cr)?Cr:Qt,disablePast:vt,disableFuture:Mt,isDateDisabled:Hr,timezone:dr}):ln;gn?(Mr(gn,"finish"),At==null||At(gn)):(xr(),wr(vn)),Rr(gn,!0)}),jr=useEventCallback$1(ln=>ir(ln&&mergeDateAndTime(nt,ln,cr??Ar),"finish",gr));reactExports.useEffect(()=>{cr!=null&&nt.isValid(cr)&&wr(cr)},[cr]);const Zr=ut,Xr=useUtilityClasses$5(Zr),cn={disablePast:vt,disableFuture:Mt,maxDate:Qt,minDate:Jt},Qr={disableHighlightToday:Bt,readOnly:Kt,disabled:Yt,timezone:dr,gridLabelId:Or,slots:Vt,slotProps:Ht},rn=reactExports.useRef(gr);reactExports.useEffect(()=>{rn.current!==gr&&(ar===rn.current&&ur(gr,!0),rn.current=gr)},[ar,ur,gr]);const _r=reactExports.useMemo(()=>[cr],[cr]);return jsxRuntimeExports.jsxs(DateCalendarRoot,_extends$j({ref:rt,className:clsx(Xr.root,Nt),ownerState:Zr},rr,{children:[jsxRuntimeExports.jsx(Fr,_extends$j({},Yr,{slots:Vt,slotProps:Ht})),jsxRuntimeExports.jsx(DateCalendarViewTransitionContainer,{reduceAnimations:zt,className:Xr.viewTransitionContainer,transKey:gr,ownerState:Zr,children:jsxRuntimeExports.jsxs("div",{children:[gr==="year"&&jsxRuntimeExports.jsx(YearCalendar,_extends$j({},cn,Qr,{value:cr,onChange:Jr,shouldDisableYear:It,hasFocus:Dr,onFocusedViewChange:ln=>ur("year",ln),yearsPerRow:er,referenceDate:Ar})),gr==="month"&&jsxRuntimeExports.jsx(MonthCalendar,_extends$j({},cn,Qr,{hasFocus:Dr,className:Nt,value:cr,onChange:Gr,shouldDisableMonth:Ct,onFocusedViewChange:ln=>ur("month",ln),monthsPerRow:nr,referenceDate:Ar})),gr==="day"&&jsxRuntimeExports.jsx(DayCalendar,_extends$j({},Ir,cn,Qr,{onMonthSwitchingAnimationEnd:kr,onFocusedDayChange:Rr,reduceAnimations:zt,selectedDays:_r,onSelectedDaysChange:jr,shouldDisableDate:Tt,shouldDisableMonth:Ct,shouldDisableYear:It,hasFocus:Dr,onFocusedViewChange:ln=>ur("day",ln),showDaysOutsideCurrentMonth:jt,fixedWeekNumber:Wt,dayOfWeekFormatter:Ut,displayWeekNumber:Xt,loading:Gt,renderLoading:Zt}))]})})]}))});function getPickersToolbarUtilityClass(et){return generateUtilityClass("MuiPickersToolbar",et)}generateUtilityClasses("MuiPickersToolbar",["root","content"]);const _excluded$c=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],useUtilityClasses$4=et=>{const{classes:tt,isLandscape:rt}=et;return composeClasses({root:["root"],content:["content"],penIconButton:["penIconButton",rt&&"penIconButtonLandscape"]},getPickersToolbarUtilityClass,tt)},PickersToolbarRoot=styled("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(et,tt)=>tt.root})(({theme:et})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:et.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),PickersToolbarContent=styled("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(et,tt)=>tt.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),PickersToolbar=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersToolbar"}),{children:lt,className:ut,toolbarTitle:dt,hidden:pt,titleId:ht}=nt,mt=_objectWithoutPropertiesLoose$d(nt,_excluded$c),xt=nt,Mt=useUtilityClasses$4(xt);return pt?null:jsxRuntimeExports.jsxs(PickersToolbarRoot,_extends$j({ref:rt,className:clsx(Mt.root,ut),ownerState:xt},mt,{children:[jsxRuntimeExports.jsx(Typography,{color:"text.secondary",variant:"overline",id:ht,children:dt}),jsxRuntimeExports.jsx(PickersToolbarContent,{className:Mt.content,ownerState:xt,children:lt})]}))});function getDatePickerToolbarUtilityClass(et){return generateUtilityClass("MuiDatePickerToolbar",et)}generateUtilityClasses("MuiDatePickerToolbar",["root","title"]);const _excluded$b=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],useUtilityClasses$3=et=>{const{classes:tt}=et;return composeClasses({root:["root"],title:["title"]},getDatePickerToolbarUtilityClass,tt)},DatePickerToolbarRoot=styled(PickersToolbar,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(et,tt)=>tt.root})({}),DatePickerToolbarTitle=styled(Typography,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(et,tt)=>tt.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),DatePickerToolbar=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiDatePickerToolbar"}),{value:lt,isLandscape:ut,toolbarFormat:dt,toolbarPlaceholder:pt="––",views:ht,className:mt}=nt,xt=_objectWithoutPropertiesLoose$d(nt,_excluded$b),Mt=useUtils(),vt=usePickersTranslations(),Ot=useUtilityClasses$3(nt),At=reactExports.useMemo(()=>{if(!lt)return pt;const zt=resolveDateFormat(Mt,{format:dt,views:ht},!0);return Mt.formatByString(lt,zt)},[lt,dt,pt,Mt,ht]),Rt=nt;return jsxRuntimeExports.jsx(DatePickerToolbarRoot,_extends$j({ref:rt,toolbarTitle:vt.datePickerToolbarTitle,isLandscape:ut,className:clsx(Ot.root,mt)},xt,{children:jsxRuntimeExports.jsx(DatePickerToolbarTitle,{variant:"h4",align:ut?"left":"center",ownerState:Rt,className:Ot.title,children:At})}))});function useDatePickerDefaultizedProps(et,tt){const rt=useUtils(),nt=useDefaultDates(),lt=useThemeProps({props:et,name:tt}),ut=reactExports.useMemo(()=>{var dt;return((dt=lt.localeText)==null?void 0:dt.toolbarTitle)==null?lt.localeText:_extends$j({},lt.localeText,{datePickerToolbarTitle:lt.localeText.toolbarTitle})},[lt.localeText]);return _extends$j({},lt,{localeText:ut},applyDefaultViewProps({views:lt.views,openTo:lt.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:lt.disableFuture??!1,disablePast:lt.disablePast??!1,minDate:applyDefaultDate(rt,lt.minDate,nt.minDate),maxDate:applyDefaultDate(rt,lt.maxDate,nt.maxDate),slots:_extends$j({toolbar:DatePickerToolbar},lt.slots)})}function getPickersPopperUtilityClass(et){return generateUtilityClass("MuiPickersPopper",et)}generateUtilityClasses("MuiPickersPopper",["root","paper"]);const _excluded$a=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],useUtilityClasses$2=et=>{const{classes:tt}=et;return composeClasses({root:["root"],paper:["paper"]},getPickersPopperUtilityClass,tt)},PickersPopperRoot=styled(Popper,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(et,tt)=>tt.root})(({theme:et})=>({zIndex:et.zIndex.modal})),PickersPopperPaper=styled(Paper,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(et,tt)=>tt.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:et})=>["top","top-start","top-end"].includes(et),style:{transformOrigin:"bottom center"}}]});function clickedRootScrollbar(et,tt){return tt.documentElement.clientWidth<et.clientX||tt.documentElement.clientHeight<et.clientY}function useClickAwayListener(et,tt){const rt=reactExports.useRef(!1),nt=reactExports.useRef(!1),lt=reactExports.useRef(null),ut=reactExports.useRef(!1);reactExports.useEffect(()=>{if(!et)return;function ht(){ut.current=!0}return document.addEventListener("mousedown",ht,!0),document.addEventListener("touchstart",ht,!0),()=>{document.removeEventListener("mousedown",ht,!0),document.removeEventListener("touchstart",ht,!0),ut.current=!1}},[et]);const dt=useEventCallback$1(ht=>{if(!ut.current)return;const mt=nt.current;nt.current=!1;const xt=ownerDocument(lt.current);if(!lt.current||"clientX"in ht&&clickedRootScrollbar(ht,xt))return;if(rt.current){rt.current=!1;return}let Mt;ht.composedPath?Mt=ht.composedPath().indexOf(lt.current)>-1:Mt=!xt.documentElement.contains(ht.target)||lt.current.contains(ht.target),!Mt&&!mt&&tt(ht)}),pt=()=>{nt.current=!0};return reactExports.useEffect(()=>{if(et){const ht=ownerDocument(lt.current),mt=()=>{rt.current=!0};return ht.addEventListener("touchstart",dt),ht.addEventListener("touchmove",mt),()=>{ht.removeEventListener("touchstart",dt),ht.removeEventListener("touchmove",mt)}}},[et,dt]),reactExports.useEffect(()=>{if(et){const ht=ownerDocument(lt.current);return ht.addEventListener("click",dt),()=>{ht.removeEventListener("click",dt),nt.current=!1}}},[et,dt]),[lt,pt,pt]}const PickersPopperPaperWrapper=reactExports.forwardRef((et,tt)=>{const{PaperComponent:rt,popperPlacement:nt,ownerState:lt,children:ut,paperSlotProps:dt,paperClasses:pt,onPaperClick:ht,onPaperTouchStart:mt}=et,xt=_objectWithoutPropertiesLoose$d(et,_excluded$a),Mt=_extends$j({},lt,{placement:nt}),vt=useSlotProps({elementType:rt,externalSlotProps:dt,additionalProps:{tabIndex:-1,elevation:8,ref:tt},className:pt,ownerState:Mt});return jsxRuntimeExports.jsx(rt,_extends$j({},xt,vt,{onClick:Ot=>{var At;ht(Ot),(At=vt.onClick)==null||At.call(vt,Ot)},onTouchStart:Ot=>{var At;mt(Ot),(At=vt.onTouchStart)==null||At.call(vt,Ot)},ownerState:Mt,children:ut}))});function PickersPopper(et){const tt=useThemeProps({props:et,name:"MuiPickersPopper"}),{anchorEl:rt,children:nt,containerRef:lt=null,shouldRestoreFocus:ut,onBlur:dt,onDismiss:pt,open:ht,role:mt,placement:xt,slots:Mt,slotProps:vt,reduceAnimations:Ot}=tt;reactExports.useEffect(()=>{function jt(Wt){ht&&Wt.key==="Escape"&&pt()}return document.addEventListener("keydown",jt),()=>{document.removeEventListener("keydown",jt)}},[pt,ht]);const At=reactExports.useRef(null);reactExports.useEffect(()=>{mt==="tooltip"||ut&&!ut()||(ht?At.current=getActiveElement(document):At.current&&At.current instanceof HTMLElement&&setTimeout(()=>{At.current instanceof HTMLElement&&At.current.focus()}))},[ht,mt,ut]);const[Rt,zt,Tt]=useClickAwayListener(ht,dt??pt),Ct=reactExports.useRef(null),It=useForkRef(Ct,lt),Dt=useForkRef(It,Rt),kt=tt,qt=useUtilityClasses$2(kt),Nt=useDefaultReduceAnimations(),Yt=Ot??Nt,Kt=jt=>{jt.key==="Escape"&&(jt.stopPropagation(),pt())},Jt=(Mt==null?void 0:Mt.desktopTransition)??Yt?Fade:Grow,Qt=(Mt==null?void 0:Mt.desktopTrapFocus)??FocusTrap,Bt=(Mt==null?void 0:Mt.desktopPaper)??PickersPopperPaper,Ft=(Mt==null?void 0:Mt.popper)??PickersPopperRoot,$t=useSlotProps({elementType:Ft,externalSlotProps:vt==null?void 0:vt.popper,additionalProps:{transition:!0,role:mt,open:ht,anchorEl:rt,placement:xt,onKeyDown:Kt},className:qt.root,ownerState:tt});return jsxRuntimeExports.jsx(Ft,_extends$j({},$t,{children:({TransitionProps:jt,placement:Wt})=>jsxRuntimeExports.jsx(Qt,_extends$j({open:ht,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:mt==="tooltip",isEnabled:()=>!0},vt==null?void 0:vt.desktopTrapFocus,{children:jsxRuntimeExports.jsx(Jt,_extends$j({},jt,vt==null?void 0:vt.desktopTransition,{children:jsxRuntimeExports.jsx(PickersPopperPaperWrapper,{PaperComponent:Bt,ownerState:kt,popperPlacement:Wt,ref:Dt,onPaperClick:zt,onPaperTouchStart:Tt,paperClasses:qt.paper,paperSlotProps:vt==null?void 0:vt.desktopPaper,children:nt})}))}))}))}const useOpenState=({open:et,onOpen:tt,onClose:rt})=>{const nt=reactExports.useRef(typeof et=="boolean").current,[lt,ut]=reactExports.useState(!1);reactExports.useEffect(()=>{if(nt){if(typeof et!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");ut(et)}},[nt,et]);const dt=reactExports.useCallback(pt=>{nt||ut(pt),pt&&tt&&tt(),!pt&&rt&&rt()},[nt,tt,rt]);return{isOpen:lt,setIsOpen:dt}},shouldPublishValue=et=>{const{action:tt,hasChanged:rt,dateState:nt,isControlled:lt}=et,ut=!lt&&!nt.hasBeenModifiedSinceMount;return tt.name==="setValueFromField"?!0:tt.name==="setValueFromAction"?ut&&["accept","today","clear"].includes(tt.pickerAction)?!0:rt(nt.lastPublishedValue):tt.name==="setValueFromView"&&tt.selectionState!=="shallow"||tt.name==="setValueFromShortcut"?ut?!0:rt(nt.lastPublishedValue):!1},shouldCommitValue=et=>{const{action:tt,hasChanged:rt,dateState:nt,isControlled:lt,closeOnSelect:ut}=et,dt=!lt&&!nt.hasBeenModifiedSinceMount;return tt.name==="setValueFromAction"?dt&&["accept","today","clear"].includes(tt.pickerAction)?!0:rt(nt.lastCommittedValue):tt.name==="setValueFromView"&&tt.selectionState==="finish"&&ut?dt?!0:rt(nt.lastCommittedValue):tt.name==="setValueFromShortcut"?tt.changeImportance==="accept"&&rt(nt.lastCommittedValue):!1},shouldClosePicker=et=>{const{action:tt,closeOnSelect:rt}=et;return tt.name==="setValueFromAction"?!0:tt.name==="setValueFromView"?tt.selectionState==="finish"&&rt:tt.name==="setValueFromShortcut"?tt.changeImportance==="accept":!1},usePickerValue=({props:et,valueManager:tt,valueType:rt,wrapperVariant:nt,validator:lt})=>{const{onAccept:ut,onChange:dt,value:pt,defaultValue:ht,closeOnSelect:mt=nt==="desktop",timezone:xt}=et,{current:Mt}=reactExports.useRef(ht),{current:vt}=reactExports.useRef(pt!==void 0),Ot=useUtils(),At=useLocalizationContext(),{isOpen:Rt,setIsOpen:zt}=useOpenState(et),{timezone:Tt,value:Ct,handleValueChange:It}=useValueWithTimezone({timezone:xt,value:pt,defaultValue:Mt,onChange:dt,valueManager:tt}),[Dt,kt]=reactExports.useState(()=>{let nr;return Ct!==void 0?nr=Ct:Mt!==void 0?nr=Mt:nr=tt.emptyValue,{draft:nr,lastPublishedValue:nr,lastCommittedValue:nr,lastControlledValue:Ct,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:qt}=useValidation({props:et,validator:lt,timezone:Tt,value:Dt.draft,onError:et.onError}),Nt=useEventCallback$1(nr=>{const or={action:nr,dateState:Dt,hasChanged:br=>!tt.areValuesEqual(Ot,nr.value,br),isControlled:vt,closeOnSelect:mt},rr=shouldPublishValue(or),cr=shouldCommitValue(or),ir=shouldClosePicker(or);kt(br=>_extends$j({},br,{draft:nr.value,lastPublishedValue:rr?nr.value:br.lastPublishedValue,lastCommittedValue:cr?nr.value:br.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let dr=null;const gr=()=>(dr||(dr={validationError:nr.name==="setValueFromField"?nr.context.validationError:qt(nr.value)},nr.name==="setValueFromShortcut"&&(dr.shortcut=nr.shortcut)),dr);rr&&It(nr.value,gr()),cr&&ut&&ut(nr.value,gr()),ir&&zt(!1)});if(Ct!==void 0&&(Dt.lastControlledValue===void 0||!tt.areValuesEqual(Ot,Dt.lastControlledValue,Ct))){const nr=tt.areValuesEqual(Ot,Dt.draft,Ct);kt(or=>_extends$j({},or,{lastControlledValue:Ct},nr?{}:{lastCommittedValue:Ct,lastPublishedValue:Ct,draft:Ct,hasBeenModifiedSinceMount:!0}))}const Yt=useEventCallback$1(()=>{Nt({value:tt.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),Kt=useEventCallback$1(()=>{Nt({value:Dt.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),Jt=useEventCallback$1(()=>{Nt({value:Dt.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),Qt=useEventCallback$1(()=>{Nt({value:Dt.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),Bt=useEventCallback$1(()=>{Nt({value:tt.getTodayValue(Ot,Tt,rt),name:"setValueFromAction",pickerAction:"today"})}),Ft=useEventCallback$1(nr=>{nr.preventDefault(),zt(!0)}),$t=useEventCallback$1(nr=>{nr==null||nr.preventDefault(),zt(!1)}),jt=useEventCallback$1((nr,or="partial")=>Nt({name:"setValueFromView",value:nr,selectionState:or})),Wt=useEventCallback$1((nr,or,rr)=>Nt({name:"setValueFromShortcut",value:nr,changeImportance:or,shortcut:rr})),Ut=useEventCallback$1((nr,or)=>Nt({name:"setValueFromField",value:nr,context:or})),Vt={onClear:Yt,onAccept:Kt,onDismiss:Jt,onCancel:Qt,onSetToday:Bt,onOpen:Ft,onClose:$t},Ht={value:Dt.draft,onChange:Ut},Gt=reactExports.useMemo(()=>tt.cleanValue(Ot,Dt.draft),[Ot,tt,Dt.draft]),Zt={value:Gt,onChange:jt,onClose:$t,open:Rt},er=_extends$j({},Vt,{value:Gt,onChange:jt,onSelectShortcut:Wt,isValid:nr=>{const or=lt({adapter:At,value:nr,timezone:Tt,props:et});return!tt.hasError(or)}});return{open:Rt,fieldProps:Ht,viewProps:Zt,layoutProps:er,actions:Vt}},_excluded$9=["className","sx"],usePickerViews=({props:et,propsFromPickerValue:tt,additionalViewProps:rt,autoFocusView:nt,rendererInterceptor:lt,fieldRef:ut})=>{const{onChange:dt,open:pt,onClose:ht}=tt,{view:mt,views:xt,openTo:Mt,onViewChange:vt,viewRenderers:Ot,timezone:At}=et,Rt=_objectWithoutPropertiesLoose$d(et,_excluded$9),{view:zt,setView:Tt,defaultView:Ct,focusedView:It,setFocusedView:Dt,setValueAndGoToNextView:kt}=useViews({view:mt,views:xt,openTo:Mt,onChange:dt,onViewChange:vt,autoFocus:nt}),{hasUIView:qt,viewModeLookup:Nt}=reactExports.useMemo(()=>xt.reduce(($t,jt)=>{let Wt;return Ot[jt]!=null?Wt="UI":Wt="field",$t.viewModeLookup[jt]=Wt,Wt==="UI"&&($t.hasUIView=!0),$t},{hasUIView:!1,viewModeLookup:{}}),[Ot,xt]),Yt=reactExports.useMemo(()=>xt.reduce(($t,jt)=>Ot[jt]!=null&&isTimeView(jt)?$t+1:$t,0),[Ot,xt]),Kt=Nt[zt],Jt=useEventCallback$1(()=>Kt==="UI"),[Qt,Bt]=reactExports.useState(Kt==="UI"?zt:null);return Qt!==zt&&Nt[zt]==="UI"&&Bt(zt),useEnhancedEffect(()=>{Kt==="field"&&pt&&(ht(),setTimeout(()=>{var $t,jt;($t=ut==null?void 0:ut.current)==null||$t.setSelectedSections(zt),(jt=ut==null?void 0:ut.current)==null||jt.focusField(zt)}))},[zt]),useEnhancedEffect(()=>{if(!pt)return;let $t=zt;Kt==="field"&&Qt!=null&&($t=Qt),$t!==Ct&&Nt[$t]==="UI"&&Nt[Ct]==="UI"&&($t=Ct),$t!==zt&&Tt($t),Dt($t,!0)},[pt]),{hasUIView:qt,shouldRestoreFocus:Jt,layoutProps:{views:xt,view:Qt,onViewChange:Tt},renderCurrentView:()=>{if(Qt==null)return null;const $t=Ot[Qt];if($t==null)return null;const jt=_extends$j({},Rt,rt,tt,{views:xt,timezone:At,onChange:kt,view:Qt,onViewChange:Tt,focusedView:It,onFocusedViewChange:Dt,showViewSwitcher:Yt>1,timeViewsCount:Yt});return lt?lt(Ot,Qt,jt):$t(jt)}}};function getOrientation(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const useIsLandscape=(et,tt)=>{const[rt,nt]=reactExports.useState(getOrientation);return useEnhancedEffect(()=>{const ut=()=>{nt(getOrientation())};return window.addEventListener("orientationchange",ut),()=>{window.removeEventListener("orientationchange",ut)}},[]),arrayIncludes(et,["hours","minutes","seconds"])?!1:(tt||rt)==="landscape"},usePickerLayoutProps=({props:et,propsFromPickerValue:tt,propsFromPickerViews:rt,wrapperVariant:nt})=>{const{orientation:lt}=et,ut=useIsLandscape(rt.views,lt),dt=useRtl();return{layoutProps:_extends$j({},rt,tt,{isLandscape:ut,isRtl:dt,wrapperVariant:nt,disabled:et.disabled,readOnly:et.readOnly})}},usePicker=({props:et,valueManager:tt,valueType:rt,wrapperVariant:nt,additionalViewProps:lt,validator:ut,autoFocusView:dt,rendererInterceptor:pt,fieldRef:ht})=>{const mt=usePickerValue({props:et,valueManager:tt,valueType:rt,wrapperVariant:nt,validator:ut}),xt=usePickerViews({props:et,additionalViewProps:lt,autoFocusView:dt,fieldRef:ht,propsFromPickerValue:mt.viewProps,rendererInterceptor:pt}),Mt=usePickerLayoutProps({props:et,wrapperVariant:nt,propsFromPickerValue:mt.layoutProps,propsFromPickerViews:xt.layoutProps});return{open:mt.open,actions:mt.actions,fieldProps:mt.fieldProps,renderCurrentView:xt.renderCurrentView,hasUIView:xt.hasUIView,shouldRestoreFocus:xt.shouldRestoreFocus,layoutProps:Mt.layoutProps}};function getPickersLayoutUtilityClass(et){return generateUtilityClass("MuiPickersLayout",et)}const pickersLayoutClasses=generateUtilityClasses("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),_excluded$8=["onAccept","onClear","onCancel","onSetToday","actions"];function PickersActionBar(et){const{onAccept:tt,onClear:rt,onCancel:nt,onSetToday:lt,actions:ut}=et,dt=_objectWithoutPropertiesLoose$d(et,_excluded$8),pt=usePickersTranslations();if(ut==null||ut.length===0)return null;const ht=ut==null?void 0:ut.map(mt=>{switch(mt){case"clear":return jsxRuntimeExports.jsx(Button,{onClick:rt,children:pt.clearButtonLabel},mt);case"cancel":return jsxRuntimeExports.jsx(Button,{onClick:nt,children:pt.cancelButtonLabel},mt);case"accept":return jsxRuntimeExports.jsx(Button,{onClick:tt,children:pt.okButtonLabel},mt);case"today":return jsxRuntimeExports.jsx(Button,{onClick:lt,children:pt.todayButtonLabel},mt);default:return null}});return jsxRuntimeExports.jsx(DialogActions,_extends$j({},dt,{children:ht}))}const _excluded$7=["items","changeImportance","isLandscape","onChange","isValid"],_excluded2$3=["getValue"];function PickersShortcuts(et){const{items:tt,changeImportance:rt="accept",onChange:nt,isValid:lt}=et,ut=_objectWithoutPropertiesLoose$d(et,_excluded$7);if(tt==null||tt.length===0)return null;const dt=tt.map(pt=>{let{getValue:ht}=pt,mt=_objectWithoutPropertiesLoose$d(pt,_excluded2$3);const xt=ht({isValid:lt});return _extends$j({},mt,{label:mt.label,onClick:()=>{nt(xt,rt,mt)},disabled:!lt(xt)})});return jsxRuntimeExports.jsx(List$2,_extends$j({dense:!0,sx:[{maxHeight:VIEW_HEIGHT,maxWidth:200,overflow:"auto"},...Array.isArray(ut.sx)?ut.sx:[ut.sx]]},ut,{children:dt.map(pt=>jsxRuntimeExports.jsx(ListItem,{children:jsxRuntimeExports.jsx(Chip,_extends$j({},pt))},pt.id??pt.label))}))}function toolbarHasView(et){return et.view!==null}const useUtilityClasses$1=et=>{const{classes:tt,isLandscape:rt}=et;return composeClasses({root:["root",rt&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},getPickersLayoutUtilityClass,tt)},usePickerLayout=et=>{const{wrapperVariant:tt,onAccept:rt,onClear:nt,onCancel:lt,onSetToday:ut,view:dt,views:pt,onViewChange:ht,value:mt,onChange:xt,onSelectShortcut:Mt,isValid:vt,isLandscape:Ot,disabled:At,readOnly:Rt,children:zt,slots:Tt,slotProps:Ct}=et,It=useUtilityClasses$1(et),Dt=(Tt==null?void 0:Tt.actionBar)??PickersActionBar,kt=useSlotProps({elementType:Dt,externalSlotProps:Ct==null?void 0:Ct.actionBar,additionalProps:{onAccept:rt,onClear:nt,onCancel:lt,onSetToday:ut,actions:tt==="desktop"?[]:["cancel","accept"]},className:It.actionBar,ownerState:_extends$j({},et,{wrapperVariant:tt})}),qt=jsxRuntimeExports.jsx(Dt,_extends$j({},kt)),Nt=Tt==null?void 0:Tt.toolbar,Yt=useSlotProps({elementType:Nt,externalSlotProps:Ct==null?void 0:Ct.toolbar,additionalProps:{isLandscape:Ot,onChange:xt,value:mt,view:dt,onViewChange:ht,views:pt,disabled:At,readOnly:Rt},className:It.toolbar,ownerState:_extends$j({},et,{wrapperVariant:tt})}),Kt=toolbarHasView(Yt)&&Nt?jsxRuntimeExports.jsx(Nt,_extends$j({},Yt)):null,Jt=zt,Qt=Tt==null?void 0:Tt.tabs,Bt=dt&&Qt?jsxRuntimeExports.jsx(Qt,_extends$j({view:dt,onViewChange:ht,className:It.tabs},Ct==null?void 0:Ct.tabs)):null,Ft=(Tt==null?void 0:Tt.shortcuts)??PickersShortcuts,$t=useSlotProps({elementType:Ft,externalSlotProps:Ct==null?void 0:Ct.shortcuts,additionalProps:{isValid:vt,isLandscape:Ot,onChange:Mt},className:It.shortcuts,ownerState:{isValid:vt,isLandscape:Ot,onChange:Mt,wrapperVariant:tt}}),jt=dt&&Ft?jsxRuntimeExports.jsx(Ft,_extends$j({},$t)):null;return{toolbar:Kt,content:Jt,tabs:Bt,actionBar:qt,shortcuts:jt}},useUtilityClasses=et=>{const{isLandscape:tt,classes:rt}=et;return composeClasses({root:["root",tt&&"landscape"],contentWrapper:["contentWrapper"]},getPickersLayoutUtilityClass,rt)},PickersLayoutRoot=styled("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${pickersLayoutClasses.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${pickersLayoutClasses.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${pickersLayoutClasses.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${pickersLayoutClasses.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${pickersLayoutClasses.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${pickersLayoutClasses.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${pickersLayoutClasses.shortcuts}`]:{gridColumn:3}}}]}),PickersLayoutContentWrapper=styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(et,tt)=>tt.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),PickersLayout=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiPickersLayout"}),{toolbar:lt,content:ut,tabs:dt,actionBar:pt,shortcuts:ht}=usePickerLayout(nt),{sx:mt,className:xt,isLandscape:Mt,wrapperVariant:vt}=nt,Ot=useUtilityClasses(nt);return jsxRuntimeExports.jsxs(PickersLayoutRoot,{ref:rt,sx:mt,className:clsx(xt,Ot.root),ownerState:nt,children:[Mt?ht:lt,Mt?lt:ht,jsxRuntimeExports.jsx(PickersLayoutContentWrapper,{className:Ot.contentWrapper,children:vt==="desktop"?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ut,dt]}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[dt,ut]})}),pt]})}),_excluded$6=["props","getOpenDialogAriaText"],_excluded2$2=["ownerState"],_excluded3$1=["ownerState"],useDesktopPicker=et=>{var xr;let{props:tt,getOpenDialogAriaText:rt}=et,nt=_objectWithoutPropertiesLoose$d(et,_excluded$6);const{slots:lt,slotProps:ut,className:dt,sx:pt,format:ht,formatDensity:mt,enableAccessibleFieldDOMStructure:xt,selectedSections:Mt,onSelectedSectionsChange:vt,timezone:Ot,name:At,label:Rt,inputRef:zt,readOnly:Tt,disabled:Ct,autoFocus:It,localeText:Dt,reduceAnimations:kt}=tt,qt=reactExports.useRef(null),Nt=reactExports.useRef(null),Yt=useId(),Kt=((xr=ut==null?void 0:ut.toolbar)==null?void 0:xr.hidden)??!1,{open:Jt,actions:Qt,hasUIView:Bt,layoutProps:Ft,renderCurrentView:$t,shouldRestoreFocus:jt,fieldProps:Wt}=usePicker(_extends$j({},nt,{props:tt,fieldRef:Nt,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Ut={open:Jt},Vt=lt.inputAdornment??InputAdornment,Ht=useSlotProps({elementType:Vt,externalSlotProps:ut==null?void 0:ut.inputAdornment,additionalProps:{position:"end"},ownerState:tt}),Gt=_objectWithoutPropertiesLoose$d(Ht,_excluded2$2),Zt=lt.openPickerButton??IconButton,Xt=useSlotProps({elementType:Zt,externalSlotProps:ut==null?void 0:ut.openPickerButton,additionalProps:{disabled:Ct||Tt,onClick:Jt?Qt.onClose:Qt.onOpen,"aria-label":rt(Wt.value),edge:Gt.position},ownerState:tt}),er=_objectWithoutPropertiesLoose$d(Xt,_excluded3$1),nr=lt.openPickerIcon,or=useSlotProps({elementType:nr,externalSlotProps:ut==null?void 0:ut.openPickerIcon,ownerState:Ut}),rr=lt.field,cr=useSlotProps({elementType:rr,externalSlotProps:ut==null?void 0:ut.field,additionalProps:_extends$j({},Wt,Kt&&{id:Yt},{readOnly:Tt,disabled:Ct,className:dt,sx:pt,format:ht,formatDensity:mt,enableAccessibleFieldDOMStructure:xt,selectedSections:Mt,onSelectedSectionsChange:vt,timezone:Ot,label:Rt,name:At,autoFocus:It&&!tt.open,focused:Jt?!0:void 0},zt?{inputRef:zt}:{}),ownerState:tt});Bt&&(cr.InputProps=_extends$j({},cr.InputProps,{ref:qt},!tt.disableOpenPicker&&{[`${Gt.position}Adornment`]:jsxRuntimeExports.jsx(Vt,_extends$j({},Gt,{children:jsxRuntimeExports.jsx(Zt,_extends$j({},er,{children:jsxRuntimeExports.jsx(nr,_extends$j({},or))}))}))}));const ir=_extends$j({textField:lt.textField,clearIcon:lt.clearIcon,clearButton:lt.clearButton},cr.slots),dr=lt.layout??PickersLayout;let gr=Yt;Kt&&(Rt?gr=`${Yt}-label`:gr=void 0);const br=_extends$j({},ut,{toolbar:_extends$j({},ut==null?void 0:ut.toolbar,{titleId:Yt}),popper:_extends$j({"aria-labelledby":gr},ut==null?void 0:ut.popper)}),ar=useForkRef(Nt,cr.unstableFieldRef);return{renderPicker:()=>jsxRuntimeExports.jsxs(LocalizationProvider,{localeText:Dt,children:[jsxRuntimeExports.jsx(rr,_extends$j({},cr,{slots:ir,slotProps:br,unstableFieldRef:ar})),jsxRuntimeExports.jsx(PickersPopper,_extends$j({role:"dialog",placement:"bottom-start",anchorEl:qt.current},Qt,{open:Jt,slots:lt,slotProps:br,shouldRestoreFocus:jt,reduceAnimations:kt,children:jsxRuntimeExports.jsx(dr,_extends$j({},Ft,br==null?void 0:br.layout,{slots:lt,slotProps:br,children:$t()}))}))]})}},renderDateViewCalendar=({view:et,onViewChange:tt,views:rt,focusedView:nt,onFocusedViewChange:lt,value:ut,defaultValue:dt,referenceDate:pt,onChange:ht,className:mt,classes:xt,disableFuture:Mt,disablePast:vt,minDate:Ot,maxDate:At,shouldDisableDate:Rt,shouldDisableMonth:zt,shouldDisableYear:Tt,reduceAnimations:Ct,onMonthChange:It,monthsPerRow:Dt,onYearChange:kt,yearsPerRow:qt,slots:Nt,slotProps:Yt,loading:Kt,renderLoading:Jt,disableHighlightToday:Qt,readOnly:Bt,disabled:Ft,showDaysOutsideCurrentMonth:$t,dayOfWeekFormatter:jt,sx:Wt,autoFocus:Ut,fixedWeekNumber:Vt,displayWeekNumber:Ht,timezone:Gt})=>jsxRuntimeExports.jsx(DateCalendar,{view:et,onViewChange:tt,views:rt.filter(isDatePickerView),focusedView:nt&&isDatePickerView(nt)?nt:null,onFocusedViewChange:lt,value:ut,defaultValue:dt,referenceDate:pt,onChange:ht,className:mt,classes:xt,disableFuture:Mt,disablePast:vt,minDate:Ot,maxDate:At,shouldDisableDate:Rt,shouldDisableMonth:zt,shouldDisableYear:Tt,reduceAnimations:Ct,onMonthChange:It,monthsPerRow:Dt,onYearChange:kt,yearsPerRow:qt,slots:Nt,slotProps:Yt,loading:Kt,renderLoading:Jt,disableHighlightToday:Qt,readOnly:Bt,disabled:Ft,showDaysOutsideCurrentMonth:$t,dayOfWeekFormatter:jt,sx:Wt,autoFocus:Ut,fixedWeekNumber:Vt,displayWeekNumber:Ht,timezone:Gt}),DesktopDatePicker=reactExports.forwardRef(function(tt,rt){var mt,xt;const nt=usePickersTranslations(),lt=useUtils(),ut=useDatePickerDefaultizedProps(tt,"MuiDesktopDatePicker"),dt=_extends$j({day:renderDateViewCalendar,month:renderDateViewCalendar,year:renderDateViewCalendar},ut.viewRenderers),pt=_extends$j({},ut,{viewRenderers:dt,format:resolveDateFormat(lt,ut,!1),yearsPerRow:ut.yearsPerRow??4,slots:_extends$j({openPickerIcon:CalendarIcon,field:DateField$1},ut.slots),slotProps:_extends$j({},ut.slotProps,{field:Mt=>{var vt;return _extends$j({},resolveComponentProps((vt=ut.slotProps)==null?void 0:vt.field,Mt),extractValidationProps(ut),{ref:rt})},toolbar:_extends$j({hidden:!0},(mt=ut.slotProps)==null?void 0:mt.toolbar)})}),{renderPicker:ht}=useDesktopPicker({props:pt,valueManager:singleItemValueManager,valueType:"date",getOpenDialogAriaText:buildGetOpenDialogAriaText({utils:lt,formatKey:"fullDate",contextTranslation:nt.openDatePickerDialogue,propsTranslation:(xt=pt.localeText)==null?void 0:xt.openDatePickerDialogue}),validator:validateDate});return ht()});DesktopDatePicker.propTypes={autoFocus:PropTypes.bool,className:PropTypes.string,closeOnSelect:PropTypes.bool,dayOfWeekFormatter:PropTypes.func,defaultValue:PropTypes.object,disabled:PropTypes.bool,disableFuture:PropTypes.bool,disableHighlightToday:PropTypes.bool,disableOpenPicker:PropTypes.bool,disablePast:PropTypes.bool,displayWeekNumber:PropTypes.bool,enableAccessibleFieldDOMStructure:PropTypes.any,fixedWeekNumber:PropTypes.number,format:PropTypes.string,formatDensity:PropTypes.oneOf(["dense","spacious"]),inputRef:refType,label:PropTypes.node,loading:PropTypes.bool,localeText:PropTypes.object,maxDate:PropTypes.object,minDate:PropTypes.object,monthsPerRow:PropTypes.oneOf([3,4]),name:PropTypes.string,onAccept:PropTypes.func,onChange:PropTypes.func,onClose:PropTypes.func,onError:PropTypes.func,onMonthChange:PropTypes.func,onOpen:PropTypes.func,onSelectedSectionsChange:PropTypes.func,onViewChange:PropTypes.func,onYearChange:PropTypes.func,open:PropTypes.bool,openTo:PropTypes.oneOf(["day","month","year"]),orientation:PropTypes.oneOf(["landscape","portrait"]),readOnly:PropTypes.bool,reduceAnimations:PropTypes.bool,referenceDate:PropTypes.object,renderLoading:PropTypes.func,selectedSections:PropTypes.oneOfType([PropTypes.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),PropTypes.number]),shouldDisableDate:PropTypes.func,shouldDisableMonth:PropTypes.func,shouldDisableYear:PropTypes.func,showDaysOutsideCurrentMonth:PropTypes.bool,slotProps:PropTypes.object,slots:PropTypes.object,sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),timezone:PropTypes.string,value:PropTypes.object,view:PropTypes.oneOf(["day","month","year"]),viewRenderers:PropTypes.shape({day:PropTypes.func,month:PropTypes.func,year:PropTypes.func}),views:PropTypes.arrayOf(PropTypes.oneOf(["day","month","year"]).isRequired),yearsPerRow:PropTypes.oneOf([3,4])};const PickersModalDialogRoot=styled(Dialog)({[`& .${dialogClasses.container}`]:{outline:0},[`& .${dialogClasses.paper}`]:{outline:0,minWidth:DIALOG_WIDTH}}),PickersModalDialogContent=styled(DialogContent)({"&:first-of-type":{padding:0}});function PickersModalDialog(et){const{children:tt,onDismiss:rt,open:nt,slots:lt,slotProps:ut}=et,dt=(lt==null?void 0:lt.dialog)??PickersModalDialogRoot,pt=(lt==null?void 0:lt.mobileTransition)??Fade;return jsxRuntimeExports.jsx(dt,_extends$j({open:nt,onClose:rt},ut==null?void 0:ut.dialog,{TransitionComponent:pt,TransitionProps:ut==null?void 0:ut.mobileTransition,PaperComponent:lt==null?void 0:lt.mobilePaper,PaperProps:ut==null?void 0:ut.mobilePaper,children:jsxRuntimeExports.jsx(PickersModalDialogContent,{children:tt})}))}const _excluded$5=["props","getOpenDialogAriaText"],useMobilePicker=et=>{var Gt;let{props:tt,getOpenDialogAriaText:rt}=et,nt=_objectWithoutPropertiesLoose$d(et,_excluded$5);const{slots:lt,slotProps:ut,className:dt,sx:pt,format:ht,formatDensity:mt,enableAccessibleFieldDOMStructure:xt,selectedSections:Mt,onSelectedSectionsChange:vt,timezone:Ot,name:At,label:Rt,inputRef:zt,readOnly:Tt,disabled:Ct,localeText:It}=tt,Dt=reactExports.useRef(null),kt=useId(),qt=((Gt=ut==null?void 0:ut.toolbar)==null?void 0:Gt.hidden)??!1,{open:Nt,actions:Yt,layoutProps:Kt,renderCurrentView:Jt,fieldProps:Qt}=usePicker(_extends$j({},nt,{props:tt,fieldRef:Dt,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),Bt=lt.field,Ft=useSlotProps({elementType:Bt,externalSlotProps:ut==null?void 0:ut.field,additionalProps:_extends$j({},Qt,qt&&{id:kt},!(Ct||Tt)&&{onClick:Yt.onOpen,onKeyDown:onSpaceOrEnter(Yt.onOpen)},{readOnly:Tt??!0,disabled:Ct,className:dt,sx:pt,format:ht,formatDensity:mt,enableAccessibleFieldDOMStructure:xt,selectedSections:Mt,onSelectedSectionsChange:vt,timezone:Ot,label:Rt,name:At},zt?{inputRef:zt}:{}),ownerState:tt});Ft.inputProps=_extends$j({},Ft.inputProps,{"aria-label":rt(Qt.value)});const $t=_extends$j({textField:lt.textField},Ft.slots),jt=lt.layout??PickersLayout;let Wt=kt;qt&&(Rt?Wt=`${kt}-label`:Wt=void 0);const Ut=_extends$j({},ut,{toolbar:_extends$j({},ut==null?void 0:ut.toolbar,{titleId:kt}),mobilePaper:_extends$j({"aria-labelledby":Wt},ut==null?void 0:ut.mobilePaper)}),Vt=useForkRef(Dt,Ft.unstableFieldRef);return{renderPicker:()=>jsxRuntimeExports.jsxs(LocalizationProvider,{localeText:It,children:[jsxRuntimeExports.jsx(Bt,_extends$j({},Ft,{slots:$t,slotProps:Ut,unstableFieldRef:Vt})),jsxRuntimeExports.jsx(PickersModalDialog,_extends$j({},Yt,{open:Nt,slots:lt,slotProps:Ut,children:jsxRuntimeExports.jsx(jt,_extends$j({},Kt,Ut==null?void 0:Ut.layout,{slots:lt,slotProps:Ut,children:Jt()}))}))]})}},MobileDatePicker=reactExports.forwardRef(function(tt,rt){var mt,xt;const nt=usePickersTranslations(),lt=useUtils(),ut=useDatePickerDefaultizedProps(tt,"MuiMobileDatePicker"),dt=_extends$j({day:renderDateViewCalendar,month:renderDateViewCalendar,year:renderDateViewCalendar},ut.viewRenderers),pt=_extends$j({},ut,{viewRenderers:dt,format:resolveDateFormat(lt,ut,!1),slots:_extends$j({field:DateField$1},ut.slots),slotProps:_extends$j({},ut.slotProps,{field:Mt=>{var vt;return _extends$j({},resolveComponentProps((vt=ut.slotProps)==null?void 0:vt.field,Mt),extractValidationProps(ut),{ref:rt})},toolbar:_extends$j({hidden:!1},(mt=ut.slotProps)==null?void 0:mt.toolbar)})}),{renderPicker:ht}=useMobilePicker({props:pt,valueManager:singleItemValueManager,valueType:"date",getOpenDialogAriaText:buildGetOpenDialogAriaText({utils:lt,formatKey:"fullDate",contextTranslation:nt.openDatePickerDialogue,propsTranslation:(xt=pt.localeText)==null?void 0:xt.openDatePickerDialogue}),validator:validateDate});return ht()});MobileDatePicker.propTypes={autoFocus:PropTypes.bool,className:PropTypes.string,closeOnSelect:PropTypes.bool,dayOfWeekFormatter:PropTypes.func,defaultValue:PropTypes.object,disabled:PropTypes.bool,disableFuture:PropTypes.bool,disableHighlightToday:PropTypes.bool,disableOpenPicker:PropTypes.bool,disablePast:PropTypes.bool,displayWeekNumber:PropTypes.bool,enableAccessibleFieldDOMStructure:PropTypes.any,fixedWeekNumber:PropTypes.number,format:PropTypes.string,formatDensity:PropTypes.oneOf(["dense","spacious"]),inputRef:refType,label:PropTypes.node,loading:PropTypes.bool,localeText:PropTypes.object,maxDate:PropTypes.object,minDate:PropTypes.object,monthsPerRow:PropTypes.oneOf([3,4]),name:PropTypes.string,onAccept:PropTypes.func,onChange:PropTypes.func,onClose:PropTypes.func,onError:PropTypes.func,onMonthChange:PropTypes.func,onOpen:PropTypes.func,onSelectedSectionsChange:PropTypes.func,onViewChange:PropTypes.func,onYearChange:PropTypes.func,open:PropTypes.bool,openTo:PropTypes.oneOf(["day","month","year"]),orientation:PropTypes.oneOf(["landscape","portrait"]),readOnly:PropTypes.bool,reduceAnimations:PropTypes.bool,referenceDate:PropTypes.object,renderLoading:PropTypes.func,selectedSections:PropTypes.oneOfType([PropTypes.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),PropTypes.number]),shouldDisableDate:PropTypes.func,shouldDisableMonth:PropTypes.func,shouldDisableYear:PropTypes.func,showDaysOutsideCurrentMonth:PropTypes.bool,slotProps:PropTypes.object,slots:PropTypes.object,sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),timezone:PropTypes.string,value:PropTypes.object,view:PropTypes.oneOf(["day","month","year"]),viewRenderers:PropTypes.shape({day:PropTypes.func,month:PropTypes.func,year:PropTypes.func}),views:PropTypes.arrayOf(PropTypes.oneOf(["day","month","year"]).isRequired),yearsPerRow:PropTypes.oneOf([3,4])};const _excluded$4=["desktopModeMediaQuery"],DatePicker=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiDatePicker"}),{desktopModeMediaQuery:lt=DEFAULT_DESKTOP_MODE_MEDIA_QUERY}=nt,ut=_objectWithoutPropertiesLoose$d(nt,_excluded$4);return useMediaQuery(lt,{defaultMatches:!0})?jsxRuntimeExports.jsx(DesktopDatePicker,_extends$j({ref:rt},ut)):jsxRuntimeExports.jsx(MobileDatePicker,_extends$j({ref:rt},ut))});var dayjs_min={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){var rt=1e3,nt=6e4,lt=36e5,ut="millisecond",dt="second",pt="minute",ht="hour",mt="day",xt="week",Mt="month",vt="quarter",Ot="year",At="date",Rt="Invalid Date",zt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Tt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ct={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($t){var jt=["th","st","nd","rd"],Wt=$t%100;return"["+$t+(jt[(Wt-20)%10]||jt[Wt]||jt[0])+"]"}},It=function($t,jt,Wt){var Ut=String($t);return!Ut||Ut.length>=jt?$t:""+Array(jt+1-Ut.length).join(Wt)+$t},Dt={s:It,z:function($t){var jt=-$t.utcOffset(),Wt=Math.abs(jt),Ut=Math.floor(Wt/60),Vt=Wt%60;return(jt<=0?"+":"-")+It(Ut,2,"0")+":"+It(Vt,2,"0")},m:function $t(jt,Wt){if(jt.date()<Wt.date())return-$t(Wt,jt);var Ut=12*(Wt.year()-jt.year())+(Wt.month()-jt.month()),Vt=jt.clone().add(Ut,Mt),Ht=Wt-Vt<0,Gt=jt.clone().add(Ut+(Ht?-1:1),Mt);return+(-(Ut+(Wt-Vt)/(Ht?Vt-Gt:Gt-Vt))||0)},a:function($t){return $t<0?Math.ceil($t)||0:Math.floor($t)},p:function($t){return{M:Mt,y:Ot,w:xt,d:mt,D:At,h:ht,m:pt,s:dt,ms:ut,Q:vt}[$t]||String($t||"").toLowerCase().replace(/s$/,"")},u:function($t){return $t===void 0}},kt="en",qt={};qt[kt]=Ct;var Nt="$isDayjsObject",Yt=function($t){return $t instanceof Bt||!(!$t||!$t[Nt])},Kt=function $t(jt,Wt,Ut){var Vt;if(!jt)return kt;if(typeof jt=="string"){var Ht=jt.toLowerCase();qt[Ht]&&(Vt=Ht),Wt&&(qt[Ht]=Wt,Vt=Ht);var Gt=jt.split("-");if(!Vt&&Gt.length>1)return $t(Gt[0])}else{var Zt=jt.name;qt[Zt]=jt,Vt=Zt}return!Ut&&Vt&&(kt=Vt),Vt||!Ut&&kt},Jt=function($t,jt){if(Yt($t))return $t.clone();var Wt=typeof jt=="object"?jt:{};return Wt.date=$t,Wt.args=arguments,new Bt(Wt)},Qt=Dt;Qt.l=Kt,Qt.i=Yt,Qt.w=function($t,jt){return Jt($t,{locale:jt.$L,utc:jt.$u,x:jt.$x,$offset:jt.$offset})};var Bt=function(){function $t(Wt){this.$L=Kt(Wt.locale,null,!0),this.parse(Wt),this.$x=this.$x||Wt.x||{},this[Nt]=!0}var jt=$t.prototype;return jt.parse=function(Wt){this.$d=function(Ut){var Vt=Ut.date,Ht=Ut.utc;if(Vt===null)return new Date(NaN);if(Qt.u(Vt))return new Date;if(Vt instanceof Date)return new Date(Vt);if(typeof Vt=="string"&&!/Z$/i.test(Vt)){var Gt=Vt.match(zt);if(Gt){var Zt=Gt[2]-1||0,Xt=(Gt[7]||"0").substring(0,3);return Ht?new Date(Date.UTC(Gt[1],Zt,Gt[3]||1,Gt[4]||0,Gt[5]||0,Gt[6]||0,Xt)):new Date(Gt[1],Zt,Gt[3]||1,Gt[4]||0,Gt[5]||0,Gt[6]||0,Xt)}}return new Date(Vt)}(Wt),this.init()},jt.init=function(){var Wt=this.$d;this.$y=Wt.getFullYear(),this.$M=Wt.getMonth(),this.$D=Wt.getDate(),this.$W=Wt.getDay(),this.$H=Wt.getHours(),this.$m=Wt.getMinutes(),this.$s=Wt.getSeconds(),this.$ms=Wt.getMilliseconds()},jt.$utils=function(){return Qt},jt.isValid=function(){return this.$d.toString()!==Rt},jt.isSame=function(Wt,Ut){var Vt=Jt(Wt);return this.startOf(Ut)<=Vt&&Vt<=this.endOf(Ut)},jt.isAfter=function(Wt,Ut){return Jt(Wt)<this.startOf(Ut)},jt.isBefore=function(Wt,Ut){return this.endOf(Ut)<Jt(Wt)},jt.$g=function(Wt,Ut,Vt){return Qt.u(Wt)?this[Ut]:this.set(Vt,Wt)},jt.unix=function(){return Math.floor(this.valueOf()/1e3)},jt.valueOf=function(){return this.$d.getTime()},jt.startOf=function(Wt,Ut){var Vt=this,Ht=!!Qt.u(Ut)||Ut,Gt=Qt.p(Wt),Zt=function(dr,gr){var br=Qt.w(Vt.$u?Date.UTC(Vt.$y,gr,dr):new Date(Vt.$y,gr,dr),Vt);return Ht?br:br.endOf(mt)},Xt=function(dr,gr){return Qt.w(Vt.toDate()[dr].apply(Vt.toDate("s"),(Ht?[0,0,0,0]:[23,59,59,999]).slice(gr)),Vt)},er=this.$W,nr=this.$M,or=this.$D,rr="set"+(this.$u?"UTC":"");switch(Gt){case Ot:return Ht?Zt(1,0):Zt(31,11);case Mt:return Ht?Zt(1,nr):Zt(0,nr+1);case xt:var cr=this.$locale().weekStart||0,ir=(er<cr?er+7:er)-cr;return Zt(Ht?or-ir:or+(6-ir),nr);case mt:case At:return Xt(rr+"Hours",0);case ht:return Xt(rr+"Minutes",1);case pt:return Xt(rr+"Seconds",2);case dt:return Xt(rr+"Milliseconds",3);default:return this.clone()}},jt.endOf=function(Wt){return this.startOf(Wt,!1)},jt.$set=function(Wt,Ut){var Vt,Ht=Qt.p(Wt),Gt="set"+(this.$u?"UTC":""),Zt=(Vt={},Vt[mt]=Gt+"Date",Vt[At]=Gt+"Date",Vt[Mt]=Gt+"Month",Vt[Ot]=Gt+"FullYear",Vt[ht]=Gt+"Hours",Vt[pt]=Gt+"Minutes",Vt[dt]=Gt+"Seconds",Vt[ut]=Gt+"Milliseconds",Vt)[Ht],Xt=Ht===mt?this.$D+(Ut-this.$W):Ut;if(Ht===Mt||Ht===Ot){var er=this.clone().set(At,1);er.$d[Zt](Xt),er.init(),this.$d=er.set(At,Math.min(this.$D,er.daysInMonth())).$d}else Zt&&this.$d[Zt](Xt);return this.init(),this},jt.set=function(Wt,Ut){return this.clone().$set(Wt,Ut)},jt.get=function(Wt){return this[Qt.p(Wt)]()},jt.add=function(Wt,Ut){var Vt,Ht=this;Wt=Number(Wt);var Gt=Qt.p(Ut),Zt=function(nr){var or=Jt(Ht);return Qt.w(or.date(or.date()+Math.round(nr*Wt)),Ht)};if(Gt===Mt)return this.set(Mt,this.$M+Wt);if(Gt===Ot)return this.set(Ot,this.$y+Wt);if(Gt===mt)return Zt(1);if(Gt===xt)return Zt(7);var Xt=(Vt={},Vt[pt]=nt,Vt[ht]=lt,Vt[dt]=rt,Vt)[Gt]||1,er=this.$d.getTime()+Wt*Xt;return Qt.w(er,this)},jt.subtract=function(Wt,Ut){return this.add(-1*Wt,Ut)},jt.format=function(Wt){var Ut=this,Vt=this.$locale();if(!this.isValid())return Vt.invalidDate||Rt;var Ht=Wt||"YYYY-MM-DDTHH:mm:ssZ",Gt=Qt.z(this),Zt=this.$H,Xt=this.$m,er=this.$M,nr=Vt.weekdays,or=Vt.months,rr=Vt.meridiem,cr=function(gr,br,ar,ur){return gr&&(gr[br]||gr(Ut,Ht))||ar[br].slice(0,ur)},ir=function(gr){return Qt.s(Zt%12||12,gr,"0")},dr=rr||function(gr,br,ar){var ur=gr<12?"AM":"PM";return ar?ur.toLowerCase():ur};return Ht.replace(Tt,function(gr,br){return br||function(ar){switch(ar){case"YY":return String(Ut.$y).slice(-2);case"YYYY":return Qt.s(Ut.$y,4,"0");case"M":return er+1;case"MM":return Qt.s(er+1,2,"0");case"MMM":return cr(Vt.monthsShort,er,or,3);case"MMMM":return cr(or,er);case"D":return Ut.$D;case"DD":return Qt.s(Ut.$D,2,"0");case"d":return String(Ut.$W);case"dd":return cr(Vt.weekdaysMin,Ut.$W,nr,2);case"ddd":return cr(Vt.weekdaysShort,Ut.$W,nr,3);case"dddd":return nr[Ut.$W];case"H":return String(Zt);case"HH":return Qt.s(Zt,2,"0");case"h":return ir(1);case"hh":return ir(2);case"a":return dr(Zt,Xt,!0);case"A":return dr(Zt,Xt,!1);case"m":return String(Xt);case"mm":return Qt.s(Xt,2,"0");case"s":return String(Ut.$s);case"ss":return Qt.s(Ut.$s,2,"0");case"SSS":return Qt.s(Ut.$ms,3,"0");case"Z":return Gt}return null}(gr)||Gt.replace(":","")})},jt.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},jt.diff=function(Wt,Ut,Vt){var Ht,Gt=this,Zt=Qt.p(Ut),Xt=Jt(Wt),er=(Xt.utcOffset()-this.utcOffset())*nt,nr=this-Xt,or=function(){return Qt.m(Gt,Xt)};switch(Zt){case Ot:Ht=or()/12;break;case Mt:Ht=or();break;case vt:Ht=or()/3;break;case xt:Ht=(nr-er)/6048e5;break;case mt:Ht=(nr-er)/864e5;break;case ht:Ht=nr/lt;break;case pt:Ht=nr/nt;break;case dt:Ht=nr/rt;break;default:Ht=nr}return Vt?Ht:Qt.a(Ht)},jt.daysInMonth=function(){return this.endOf(Mt).$D},jt.$locale=function(){return qt[this.$L]},jt.locale=function(Wt,Ut){if(!Wt)return this.$L;var Vt=this.clone(),Ht=Kt(Wt,Ut,!0);return Ht&&(Vt.$L=Ht),Vt},jt.clone=function(){return Qt.w(this.$d,this)},jt.toDate=function(){return new Date(this.valueOf())},jt.toJSON=function(){return this.isValid()?this.toISOString():null},jt.toISOString=function(){return this.$d.toISOString()},jt.toString=function(){return this.$d.toUTCString()},$t}(),Ft=Bt.prototype;return Jt.prototype=Ft,[["$ms",ut],["$s",dt],["$m",pt],["$H",ht],["$W",mt],["$M",Mt],["$y",Ot],["$D",At]].forEach(function($t){Ft[$t[1]]=function(jt){return this.$g(jt,$t[0],$t[1])}}),Jt.extend=function($t,jt){return $t.$i||($t(jt,Bt,Jt),$t.$i=!0),Jt},Jt.locale=Kt,Jt.isDayjs=Yt,Jt.unix=function($t){return Jt(1e3*$t)},Jt.en=qt[kt],Jt.Ls=qt,Jt.p={},Jt})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs$1(dayjs_minExports);var weekOfYear={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){var rt="week",nt="year";return function(lt,ut,dt){var pt=ut.prototype;pt.week=function(ht){if(ht===void 0&&(ht=null),ht!==null)return this.add(7*(ht-this.week()),"day");var mt=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var xt=dt(this).startOf(nt).add(1,nt).date(mt),Mt=dt(this).endOf(rt);if(xt.isBefore(Mt))return 1}var vt=dt(this).startOf(nt).date(mt).startOf(rt).subtract(1,"millisecond"),Ot=this.diff(vt,rt,!0);return Ot<0?dt(this).startOf("week").week():Math.ceil(Ot)},pt.weeks=function(ht){return ht===void 0&&(ht=null),this.week(ht)}}})})(weekOfYear);var weekOfYearExports=weekOfYear.exports;const weekOfYearPlugin=getDefaultExportFromCjs$1(weekOfYearExports);var customParseFormat={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){var rt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},nt=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,lt=/\d\d/,ut=/\d\d?/,dt=/\d*[^-_:/,()\s\d]+/,pt={},ht=function(Rt){return(Rt=+Rt)+(Rt>68?1900:2e3)},mt=function(Rt){return function(zt){this[Rt]=+zt}},xt=[/[+-]\d\d:?(\d\d)?|Z/,function(Rt){(this.zone||(this.zone={})).offset=function(zt){if(!zt||zt==="Z")return 0;var Tt=zt.match(/([+-]|\d\d)/g),Ct=60*Tt[1]+(+Tt[2]||0);return Ct===0?0:Tt[0]==="+"?-Ct:Ct}(Rt)}],Mt=function(Rt){var zt=pt[Rt];return zt&&(zt.indexOf?zt:zt.s.concat(zt.f))},vt=function(Rt,zt){var Tt,Ct=pt.meridiem;if(Ct){for(var It=1;It<=24;It+=1)if(Rt.indexOf(Ct(It,0,zt))>-1){Tt=It>12;break}}else Tt=Rt===(zt?"pm":"PM");return Tt},Ot={A:[dt,function(Rt){this.afternoon=vt(Rt,!1)}],a:[dt,function(Rt){this.afternoon=vt(Rt,!0)}],S:[/\d/,function(Rt){this.milliseconds=100*+Rt}],SS:[lt,function(Rt){this.milliseconds=10*+Rt}],SSS:[/\d{3}/,function(Rt){this.milliseconds=+Rt}],s:[ut,mt("seconds")],ss:[ut,mt("seconds")],m:[ut,mt("minutes")],mm:[ut,mt("minutes")],H:[ut,mt("hours")],h:[ut,mt("hours")],HH:[ut,mt("hours")],hh:[ut,mt("hours")],D:[ut,mt("day")],DD:[lt,mt("day")],Do:[dt,function(Rt){var zt=pt.ordinal,Tt=Rt.match(/\d+/);if(this.day=Tt[0],zt)for(var Ct=1;Ct<=31;Ct+=1)zt(Ct).replace(/\[|\]/g,"")===Rt&&(this.day=Ct)}],M:[ut,mt("month")],MM:[lt,mt("month")],MMM:[dt,function(Rt){var zt=Mt("months"),Tt=(Mt("monthsShort")||zt.map(function(Ct){return Ct.slice(0,3)})).indexOf(Rt)+1;if(Tt<1)throw new Error;this.month=Tt%12||Tt}],MMMM:[dt,function(Rt){var zt=Mt("months").indexOf(Rt)+1;if(zt<1)throw new Error;this.month=zt%12||zt}],Y:[/[+-]?\d+/,mt("year")],YY:[lt,function(Rt){this.year=ht(Rt)}],YYYY:[/\d{4}/,mt("year")],Z:xt,ZZ:xt};function At(Rt){var zt,Tt;zt=Rt,Tt=pt&&pt.formats;for(var Ct=(Rt=zt.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Kt,Jt,Qt){var Bt=Qt&&Qt.toUpperCase();return Jt||Tt[Qt]||rt[Qt]||Tt[Bt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Ft,$t,jt){return $t||jt.slice(1)})})).match(nt),It=Ct.length,Dt=0;Dt<It;Dt+=1){var kt=Ct[Dt],qt=Ot[kt],Nt=qt&&qt[0],Yt=qt&&qt[1];Ct[Dt]=Yt?{regex:Nt,parser:Yt}:kt.replace(/^\[|\]$/g,"")}return function(Kt){for(var Jt={},Qt=0,Bt=0;Qt<It;Qt+=1){var Ft=Ct[Qt];if(typeof Ft=="string")Bt+=Ft.length;else{var $t=Ft.regex,jt=Ft.parser,Wt=Kt.slice(Bt),Ut=$t.exec(Wt)[0];jt.call(Jt,Ut),Kt=Kt.replace(Ut,"")}}return function(Vt){var Ht=Vt.afternoon;if(Ht!==void 0){var Gt=Vt.hours;Ht?Gt<12&&(Vt.hours+=12):Gt===12&&(Vt.hours=0),delete Vt.afternoon}}(Jt),Jt}}return function(Rt,zt,Tt){Tt.p.customParseFormat=!0,Rt&&Rt.parseTwoDigitYear&&(ht=Rt.parseTwoDigitYear);var Ct=zt.prototype,It=Ct.parse;Ct.parse=function(Dt){var kt=Dt.date,qt=Dt.utc,Nt=Dt.args;this.$u=qt;var Yt=Nt[1];if(typeof Yt=="string"){var Kt=Nt[2]===!0,Jt=Nt[3]===!0,Qt=Kt||Jt,Bt=Nt[2];Jt&&(Bt=Nt[2]),pt=this.$locale(),!Kt&&Bt&&(pt=Tt.Ls[Bt]),this.$d=function(Wt,Ut,Vt){try{if(["x","X"].indexOf(Ut)>-1)return new Date((Ut==="X"?1e3:1)*Wt);var Ht=At(Ut)(Wt),Gt=Ht.year,Zt=Ht.month,Xt=Ht.day,er=Ht.hours,nr=Ht.minutes,or=Ht.seconds,rr=Ht.milliseconds,cr=Ht.zone,ir=new Date,dr=Xt||(Gt||Zt?1:ir.getDate()),gr=Gt||ir.getFullYear(),br=0;Gt&&!Zt||(br=Zt>0?Zt-1:ir.getMonth());var ar=er||0,ur=nr||0,xr=or||0,Mr=rr||0;return cr?new Date(Date.UTC(gr,br,dr,ar,ur,xr,Mr+60*cr.offset*1e3)):Vt?new Date(Date.UTC(gr,br,dr,ar,ur,xr,Mr)):new Date(gr,br,dr,ar,ur,xr,Mr)}catch{return new Date("")}}(kt,Yt,qt),this.init(),Bt&&Bt!==!0&&(this.$L=this.locale(Bt).$L),Qt&&kt!=this.format(Yt)&&(this.$d=new Date("")),pt={}}else if(Yt instanceof Array)for(var Ft=Yt.length,$t=1;$t<=Ft;$t+=1){Nt[1]=Yt[$t-1];var jt=Tt.apply(this,Nt);if(jt.isValid()){this.$d=jt.$d,this.$L=jt.$L,this.init();break}$t===Ft&&(this.$d=new Date(""))}else It.call(this,Dt)}}})})(customParseFormat);var customParseFormatExports=customParseFormat.exports;const customParseFormatPlugin=getDefaultExportFromCjs$1(customParseFormatExports);var localizedFormat={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){var rt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(nt,lt,ut){var dt=lt.prototype,pt=dt.format;ut.en.formats=rt,dt.format=function(ht){ht===void 0&&(ht="YYYY-MM-DDTHH:mm:ssZ");var mt=this.$locale().formats,xt=function(Mt,vt){return Mt.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Ot,At,Rt){var zt=Rt&&Rt.toUpperCase();return At||vt[Rt]||rt[Rt]||vt[zt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Tt,Ct,It){return Ct||It.slice(1)})})}(ht,mt===void 0?{}:mt);return pt.call(this,xt)}}})})(localizedFormat);var localizedFormatExports=localizedFormat.exports;const localizedFormatPlugin=getDefaultExportFromCjs$1(localizedFormatExports);var isBetween$1={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){return function(rt,nt,lt){nt.prototype.isBetween=function(ut,dt,pt,ht){var mt=lt(ut),xt=lt(dt),Mt=(ht=ht||"()")[0]==="(",vt=ht[1]===")";return(Mt?this.isAfter(mt,pt):!this.isBefore(mt,pt))&&(vt?this.isBefore(xt,pt):!this.isAfter(xt,pt))||(Mt?this.isBefore(mt,pt):!this.isAfter(mt,pt))&&(vt?this.isAfter(xt,pt):!this.isBefore(xt,pt))}}})})(isBetween$1);var isBetweenExports=isBetween$1.exports;const isBetweenPlugin=getDefaultExportFromCjs$1(isBetweenExports);var advancedFormat$1={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){return function(rt,nt){var lt=nt.prototype,ut=lt.format;lt.format=function(dt){var pt=this,ht=this.$locale();if(!this.isValid())return ut.bind(this)(dt);var mt=this.$utils(),xt=(dt||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(Mt){switch(Mt){case"Q":return Math.ceil((pt.$M+1)/3);case"Do":return ht.ordinal(pt.$D);case"gggg":return pt.weekYear();case"GGGG":return pt.isoWeekYear();case"wo":return ht.ordinal(pt.week(),"W");case"w":case"ww":return mt.s(pt.week(),Mt==="w"?1:2,"0");case"W":case"WW":return mt.s(pt.isoWeek(),Mt==="W"?1:2,"0");case"k":case"kk":return mt.s(String(pt.$H===0?24:pt.$H),Mt==="k"?1:2,"0");case"X":return Math.floor(pt.$d.getTime()/1e3);case"x":return pt.$d.getTime();case"z":return"["+pt.offsetName()+"]";case"zzz":return"["+pt.offsetName("long")+"]";default:return Mt}});return ut.bind(this)(xt)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs$1(advancedFormatExports);dayjs.extend(localizedFormatPlugin);dayjs.extend(weekOfYearPlugin);dayjs.extend(isBetweenPlugin);dayjs.extend(advancedFormat);const formatTokenMap={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},defaultFormats={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},MISSING_UTC_PLUGIN=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
`),MISSING_TIMEZONE_PLUGIN=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
`),withLocale=(et,tt)=>tt?(...rt)=>et(...rt).locale(tt):et;class AdapterDayjs{constructor({locale:tt,formats:rt}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=formatTokenMap,this.setLocaleToValue=nt=>{const lt=this.getCurrentLocaleCode();return lt===nt.locale()?nt:nt.locale(lt)},this.hasUTCPlugin=()=>typeof dayjs.utc<"u",this.hasTimezonePlugin=()=>typeof dayjs.tz<"u",this.isSame=(nt,lt,ut)=>{const dt=this.setTimezone(lt,this.getTimezone(nt));return nt.format(ut)===dt.format(ut)},this.cleanTimezone=nt=>{switch(nt){case"default":return;case"system":return dayjs.tz.guess();default:return nt}},this.createSystemDate=nt=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const lt=dayjs.tz.guess();return lt!=="UTC"?dayjs.tz(nt,lt):dayjs(nt)}return dayjs(nt)},this.createUTCDate=nt=>{if(!this.hasUTCPlugin())throw new Error(MISSING_UTC_PLUGIN);return dayjs.utc(nt)},this.createTZDate=(nt,lt)=>{if(!this.hasUTCPlugin())throw new Error(MISSING_UTC_PLUGIN);if(!this.hasTimezonePlugin())throw new Error(MISSING_TIMEZONE_PLUGIN);const ut=nt!==void 0&&!nt.endsWith("Z");return dayjs(nt).tz(this.cleanTimezone(lt),ut)},this.getLocaleFormats=()=>{const nt=dayjs.Ls,lt=this.locale||"en";let ut=nt[lt];return ut===void 0&&(ut=nt.en),ut.formats},this.adjustOffset=nt=>{if(!this.hasTimezonePlugin())return nt;const lt=this.getTimezone(nt);if(lt!=="UTC"){const ut=nt.tz(this.cleanTimezone(lt),!0);if(ut.$offset===(nt.$offset??0))return nt;nt.$offset=ut.$offset}return nt},this.date=(nt,lt="default")=>{if(nt===null)return null;let ut;return lt==="UTC"?ut=this.createUTCDate(nt):lt==="system"||lt==="default"&&!this.hasTimezonePlugin()?ut=this.createSystemDate(nt):ut=this.createTZDate(nt,lt),this.locale===void 0?ut:ut.locale(this.locale)},this.getInvalidDate=()=>dayjs(new Date("Invalid date")),this.getTimezone=nt=>{var lt;if(this.hasTimezonePlugin()){const ut=(lt=nt.$x)==null?void 0:lt.$timezone;if(ut)return ut}return this.hasUTCPlugin()&&nt.isUTC()?"UTC":"system"},this.setTimezone=(nt,lt)=>{if(this.getTimezone(nt)===lt)return nt;if(lt==="UTC"){if(!this.hasUTCPlugin())throw new Error(MISSING_UTC_PLUGIN);return nt.utc()}if(lt==="system")return nt.local();if(!this.hasTimezonePlugin()){if(lt==="default")return nt;throw new Error(MISSING_TIMEZONE_PLUGIN)}return dayjs.tz(nt,this.cleanTimezone(lt))},this.toJsDate=nt=>nt.toDate(),this.parse=(nt,lt)=>nt===""?null:this.dayjs(nt,lt,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=nt=>{const lt=this.getLocaleFormats(),ut=dt=>dt.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(pt,ht,mt)=>ht||mt.slice(1));return nt.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(dt,pt,ht)=>{const mt=ht&&ht.toUpperCase();return pt||lt[ht]||ut(lt[mt])})},this.isValid=nt=>nt==null?!1:nt.isValid(),this.format=(nt,lt)=>this.formatByString(nt,this.formats[lt]),this.formatByString=(nt,lt)=>this.dayjs(nt).format(lt),this.formatNumber=nt=>nt,this.isEqual=(nt,lt)=>nt===null&&lt===null?!0:nt===null||lt===null?!1:nt.toDate().getTime()===lt.toDate().getTime(),this.isSameYear=(nt,lt)=>this.isSame(nt,lt,"YYYY"),this.isSameMonth=(nt,lt)=>this.isSame(nt,lt,"YYYY-MM"),this.isSameDay=(nt,lt)=>this.isSame(nt,lt,"YYYY-MM-DD"),this.isSameHour=(nt,lt)=>nt.isSame(lt,"hour"),this.isAfter=(nt,lt)=>nt>lt,this.isAfterYear=(nt,lt)=>this.hasUTCPlugin()?!this.isSameYear(nt,lt)&&nt.utc()>lt.utc():nt.isAfter(lt,"year"),this.isAfterDay=(nt,lt)=>this.hasUTCPlugin()?!this.isSameDay(nt,lt)&&nt.utc()>lt.utc():nt.isAfter(lt,"day"),this.isBefore=(nt,lt)=>nt<lt,this.isBeforeYear=(nt,lt)=>this.hasUTCPlugin()?!this.isSameYear(nt,lt)&&nt.utc()<lt.utc():nt.isBefore(lt,"year"),this.isBeforeDay=(nt,lt)=>this.hasUTCPlugin()?!this.isSameDay(nt,lt)&&nt.utc()<lt.utc():nt.isBefore(lt,"day"),this.isWithinRange=(nt,[lt,ut])=>nt>=lt&&nt<=ut,this.startOfYear=nt=>this.adjustOffset(nt.startOf("year")),this.startOfMonth=nt=>this.adjustOffset(nt.startOf("month")),this.startOfWeek=nt=>this.adjustOffset(this.setLocaleToValue(nt).startOf("week")),this.startOfDay=nt=>this.adjustOffset(nt.startOf("day")),this.endOfYear=nt=>this.adjustOffset(nt.endOf("year")),this.endOfMonth=nt=>this.adjustOffset(nt.endOf("month")),this.endOfWeek=nt=>this.adjustOffset(this.setLocaleToValue(nt).endOf("week")),this.endOfDay=nt=>this.adjustOffset(nt.endOf("day")),this.addYears=(nt,lt)=>this.adjustOffset(lt<0?nt.subtract(Math.abs(lt),"year"):nt.add(lt,"year")),this.addMonths=(nt,lt)=>this.adjustOffset(lt<0?nt.subtract(Math.abs(lt),"month"):nt.add(lt,"month")),this.addWeeks=(nt,lt)=>this.adjustOffset(lt<0?nt.subtract(Math.abs(lt),"week"):nt.add(lt,"week")),this.addDays=(nt,lt)=>this.adjustOffset(lt<0?nt.subtract(Math.abs(lt),"day"):nt.add(lt,"day")),this.addHours=(nt,lt)=>this.adjustOffset(lt<0?nt.subtract(Math.abs(lt),"hour"):nt.add(lt,"hour")),this.addMinutes=(nt,lt)=>this.adjustOffset(lt<0?nt.subtract(Math.abs(lt),"minute"):nt.add(lt,"minute")),this.addSeconds=(nt,lt)=>this.adjustOffset(lt<0?nt.subtract(Math.abs(lt),"second"):nt.add(lt,"second")),this.getYear=nt=>nt.year(),this.getMonth=nt=>nt.month(),this.getDate=nt=>nt.date(),this.getHours=nt=>nt.hour(),this.getMinutes=nt=>nt.minute(),this.getSeconds=nt=>nt.second(),this.getMilliseconds=nt=>nt.millisecond(),this.setYear=(nt,lt)=>this.adjustOffset(nt.set("year",lt)),this.setMonth=(nt,lt)=>this.adjustOffset(nt.set("month",lt)),this.setDate=(nt,lt)=>this.adjustOffset(nt.set("date",lt)),this.setHours=(nt,lt)=>this.adjustOffset(nt.set("hour",lt)),this.setMinutes=(nt,lt)=>this.adjustOffset(nt.set("minute",lt)),this.setSeconds=(nt,lt)=>this.adjustOffset(nt.set("second",lt)),this.setMilliseconds=(nt,lt)=>this.adjustOffset(nt.set("millisecond",lt)),this.getDaysInMonth=nt=>nt.daysInMonth(),this.getWeekArray=nt=>{const lt=this.startOfWeek(this.startOfMonth(nt)),ut=this.endOfWeek(this.endOfMonth(nt));let dt=0,pt=lt;const ht=[];for(;pt<ut;){const mt=Math.floor(dt/7);ht[mt]=ht[mt]||[],ht[mt].push(pt),pt=this.addDays(pt,1),dt+=1}return ht},this.getWeekNumber=nt=>nt.week(),this.getYearRange=([nt,lt])=>{const ut=this.startOfYear(nt),dt=this.endOfYear(lt),pt=[];let ht=ut;for(;this.isBefore(ht,dt);)pt.push(ht),ht=this.addYears(ht,1);return pt},this.dayjs=withLocale(dayjs,tt),this.locale=tt,this.formats=_extends$j({},defaultFormats,rt),dayjs.extend(customParseFormatPlugin)}getDayOfWeek(tt){return tt.day()+1}}var utc$1={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){var rt="minute",nt=/[+-]\d\d(?::?\d\d)?/g,lt=/([+-]|\d\d)/g;return function(ut,dt,pt){var ht=dt.prototype;pt.utc=function(Rt){var zt={date:Rt,utc:!0,args:arguments};return new dt(zt)},ht.utc=function(Rt){var zt=pt(this.toDate(),{locale:this.$L,utc:!0});return Rt?zt.add(this.utcOffset(),rt):zt},ht.local=function(){return pt(this.toDate(),{locale:this.$L,utc:!1})};var mt=ht.parse;ht.parse=function(Rt){Rt.utc&&(this.$u=!0),this.$utils().u(Rt.$offset)||(this.$offset=Rt.$offset),mt.call(this,Rt)};var xt=ht.init;ht.init=function(){if(this.$u){var Rt=this.$d;this.$y=Rt.getUTCFullYear(),this.$M=Rt.getUTCMonth(),this.$D=Rt.getUTCDate(),this.$W=Rt.getUTCDay(),this.$H=Rt.getUTCHours(),this.$m=Rt.getUTCMinutes(),this.$s=Rt.getUTCSeconds(),this.$ms=Rt.getUTCMilliseconds()}else xt.call(this)};var Mt=ht.utcOffset;ht.utcOffset=function(Rt,zt){var Tt=this.$utils().u;if(Tt(Rt))return this.$u?0:Tt(this.$offset)?Mt.call(this):this.$offset;if(typeof Rt=="string"&&(Rt=function(kt){kt===void 0&&(kt="");var qt=kt.match(nt);if(!qt)return null;var Nt=(""+qt[0]).match(lt)||["-",0,0],Yt=Nt[0],Kt=60*+Nt[1]+ +Nt[2];return Kt===0?0:Yt==="+"?Kt:-Kt}(Rt),Rt===null))return this;var Ct=Math.abs(Rt)<=16?60*Rt:Rt,It=this;if(zt)return It.$offset=Ct,It.$u=Rt===0,It;if(Rt!==0){var Dt=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(It=this.local().add(Ct+Dt,rt)).$offset=Ct,It.$x.$localOffset=Dt}else It=this.utc();return It};var vt=ht.format;ht.format=function(Rt){var zt=Rt||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return vt.call(this,zt)},ht.valueOf=function(){var Rt=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*Rt},ht.isUTC=function(){return!!this.$u},ht.toISOString=function(){return this.toDate().toISOString()},ht.toString=function(){return this.toDate().toUTCString()};var Ot=ht.toDate;ht.toDate=function(Rt){return Rt==="s"&&this.$offset?pt(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():Ot.call(this)};var At=ht.diff;ht.diff=function(Rt,zt,Tt){if(Rt&&this.$u===Rt.$u)return At.call(this,Rt,zt,Tt);var Ct=this.local(),It=pt(Rt).local();return At.call(Ct,It,zt,Tt)}}})})(utc$1);var utcExports=utc$1.exports;const utc=getDefaultExportFromCjs$1(utcExports);var timezone$1={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){var rt={year:0,month:1,day:2,hour:3,minute:4,second:5},nt={};return function(lt,ut,dt){var pt,ht=function(vt,Ot,At){At===void 0&&(At={});var Rt=new Date(vt),zt=function(Tt,Ct){Ct===void 0&&(Ct={});var It=Ct.timeZoneName||"short",Dt=Tt+"|"+It,kt=nt[Dt];return kt||(kt=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Tt,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:It}),nt[Dt]=kt),kt}(Ot,At);return zt.formatToParts(Rt)},mt=function(vt,Ot){for(var At=ht(vt,Ot),Rt=[],zt=0;zt<At.length;zt+=1){var Tt=At[zt],Ct=Tt.type,It=Tt.value,Dt=rt[Ct];Dt>=0&&(Rt[Dt]=parseInt(It,10))}var kt=Rt[3],qt=kt===24?0:kt,Nt=Rt[0]+"-"+Rt[1]+"-"+Rt[2]+" "+qt+":"+Rt[4]+":"+Rt[5]+":000",Yt=+vt;return(dt.utc(Nt).valueOf()-(Yt-=Yt%1e3))/6e4},xt=ut.prototype;xt.tz=function(vt,Ot){vt===void 0&&(vt=pt);var At=this.utcOffset(),Rt=this.toDate(),zt=Rt.toLocaleString("en-US",{timeZone:vt}),Tt=Math.round((Rt-new Date(zt))/1e3/60),Ct=dt(zt,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(Rt.getTimezoneOffset()/15)-Tt,!0);if(Ot){var It=Ct.utcOffset();Ct=Ct.add(At-It,"minute")}return Ct.$x.$timezone=vt,Ct},xt.offsetName=function(vt){var Ot=this.$x.$timezone||dt.tz.guess(),At=ht(this.valueOf(),Ot,{timeZoneName:vt}).find(function(Rt){return Rt.type.toLowerCase()==="timezonename"});return At&&At.value};var Mt=xt.startOf;xt.startOf=function(vt,Ot){if(!this.$x||!this.$x.$timezone)return Mt.call(this,vt,Ot);var At=dt(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return Mt.call(At,vt,Ot).tz(this.$x.$timezone,!0)},dt.tz=function(vt,Ot,At){var Rt=At&&Ot,zt=At||Ot||pt,Tt=mt(+dt(),zt);if(typeof vt!="string")return dt(vt).tz(zt);var Ct=function(qt,Nt,Yt){var Kt=qt-60*Nt*1e3,Jt=mt(Kt,Yt);if(Nt===Jt)return[Kt,Nt];var Qt=mt(Kt-=60*(Jt-Nt)*1e3,Yt);return Jt===Qt?[Kt,Jt]:[qt-60*Math.min(Jt,Qt)*1e3,Math.max(Jt,Qt)]}(dt.utc(vt,Rt).valueOf(),Tt,zt),It=Ct[0],Dt=Ct[1],kt=dt(It).utcOffset(Dt);return kt.$x.$timezone=zt,kt},dt.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},dt.tz.setDefault=function(vt){pt=vt}}})})(timezone$1);var timezoneExports=timezone$1.exports;const timezone=getDefaultExportFromCjs$1(timezoneExports);var enGb={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt(dayjs_minExports)})(commonjsGlobal$1,function(rt){function nt(dt){return dt&&typeof dt=="object"&&"default"in dt?dt:{default:dt}}var lt=nt(rt),ut={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(dt){var pt=["th","st","nd","rd"],ht=dt%100;return"["+dt+(pt[(ht-20)%10]||pt[ht]||pt[0])+"]"}};return lt.default.locale(ut,null,!0),ut})})(enGb);var enAu={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt(dayjs_minExports)})(commonjsGlobal$1,function(rt){function nt(dt){return dt&&typeof dt=="object"&&"default"in dt?dt:{default:dt}}var lt=nt(rt),ut={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(dt){return dt},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};return lt.default.locale(ut,null,!0),ut})})(enAu);var en={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(rt){var nt=["th","st","nd","rd"],lt=rt%100;return"["+rt+(nt[(lt-20)%10]||nt[lt]||nt[0])+"]"}}})})(en);const DEFAULT_TREATMENT_INFO={intent:"",readyForCareDate:"",preferredTreatmentStartDate:"",startDateAdditionalInformation:"",treatingDepartment:"",pregnancy:"",delayCategory:"",previousRadioTreatment:"",previousCompositePlanRequired:"",previousTreatmentAt:"",previousTreatmentDate:"",patientStatus:"",inPatientAt:"",priority:"",cied:"",ciedPatientDependancy:"",ciedLinacRequired:"",ciedProtocolRequired:"",previousMdt:"",preTreatmentCiedCheckRequired:"",previousTreatmentAdditionalInformation:"",previousTreatmentRetreatment:"",previousTreatmentRetreatmentType:"",referralToGcCardiologist:"",otherCiedInstructions:"",cardioonc:"",endoscope:"",chemotherapy:"",chemoRegime:"",customChemoWhere:"",chemoWhere:"",chemoSequencing:"",chemoStartDate:"",chemoEndDate:"",hormonesRegime:"",hormones:"",hormonesStartDate:"",hormonesEndDate:""},BOOLEAN_OPTIONS$3=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],BOOLEAN_UNKNOWN_OPTIONS=[{label:"Yes",value:"yes"},{label:"No",value:"no"},{label:"Unknown",value:"Unknown"}],BOOLEAN_TBC_OPTIONS=[{label:"Yes",value:"yes"},{label:"No",value:"no"},{label:"To be clarified",value:"tbc"}],UK_CIED_OPTIONS=[{label:"CIED",value:"cied"},{label:"ICD",value:"icd"},{label:"To be clarified",value:"tbc"},{label:"No",value:"no"}],PATIENT_STATUS_OPTIONS=[{label:"In Patient",value:"inPatient"},{label:"Out Patient",value:"outPatient"},{label:"Unknown",value:"unknown"}],SCALE_OPTIONS=[{label:"ECOG",value:"ecog"},{label:"KPS",value:"kps"},{label:"N/A",value:"na"}],KPS_PERFORMANCE_STATUS_OPTIONS=[{value:"100 - Normal; no complaints; no evidence of disease",label:"100 - Normal; no complaints; no evidence of disease"},{value:"90 - Able to carry on normal activity; minor signs or symptoms of disease",label:"90 - Able to carry on normal activity; minor signs or symptoms of disease"},{value:"80 - Normal activity with effort; some signs or symptoms of disease",label:"80 - Normal activity with effort; some signs or symptoms of disease"},{value:"70 - Cares for self; unable to carry on normal activity or to do active work",label:"70 - Cares for self; unable to carry on normal activity or to do active work"},{value:"60 - Requires occasional assistance, but is able to care for most of his/her personal needs",label:"60 - Requires occasional assistance, but is able to care for most of his/her personal needs"},{value:"50 - Requires considerable assistance and frequent medical care",label:"50 - Requires considerable assistance and frequent medical care"},{value:"50 - Disabled; requires special care and assistance",label:"50 - Disabled; requires special care and assistance"},{value:"30 - Severely disabled; hospital admission is indicated although death not imminent",label:"30 - Severely disabled; hospital admission is indicated although death not imminent"},{value:"20 - Very sick; hospital admission necessary; active supportive treatment necessary",label:"20 - Very sick; hospital admission necessary; active supportive treatment necessary"},{value:"10 - Moribund; fatal processes progressing rapidly",label:"10 - Moribund; fatal processes progressing rapidly"},{value:"0 - Dead",label:"0 - Dead"}],KARNOFSKY_ABILITY_LEVELS=[{abilityLevel:"Able to carry on normal activity and to work; no special care needed.",rowSpan:3},{abilityLevel:"Unable to work; able to live at home and care for most personal needs; varying amount of assistance needed.",rowSpan:4},{abilityLevel:"Unable to care for self; requires equivalent of institutional or hospital care; disease may be progressing rapidly.",rowSpan:4}],ECOG_PERFORMANCE_STATUS_OPTIONS=[{value:"0 - Fully active, able to carry on all pre-disease performance without restriction",label:"0 - Fully active, able to carry on all pre-disease performance without restriction"},{value:"1 - Restricted in physically strenuous activity but ambulatory and able to carry out work of a light or sedentary nature",label:"1 - Restricted in physically strenuous activity but ambulatory and able to carry out work of a light or sedentary nature"},{value:"2 - Ambulatory and capable of all selfcare but unable to carry out any work activities. Up and about more than 50% of waking hours",label:"2 - Ambulatory and capable of all selfcare but unable to carry out any work activities. Up and about more than 50% of waking hours"},{value:"3 - Capable of only limited selfcare, confined to bed or chair more than 50% of waking hours",label:"3 - Capable of only limited selfcare, confined to bed or chair more than 50% of waking hours"},{value:"4 - Completely disabled. Cannot carry on any selfcare. Totally confined to bed or chair",label:"4 - Completely disabled. Cannot carry on any selfcare. Totally confined to bed or chair"},{value:"5 - Dead",label:"5 - Dead"}],BREADTH_HOLD_OPTIONS=[{label:"Free Breathing",value:"Free Breathing"},{label:"DIBH",value:"DIBH"},{label:"EEBH",value:"EEBH"},{label:"Determined at CT",value:"Determined at CT"}],DELAY_CATEGORY_OPTIONS=[{label:"Category 1",value:"Category 1",tooltip:{heading:"Priority 1",list:[{item:"SCC HN"},{item:"Lung cancer (small and non-small cell)"},{item:"Gynaecological SCC (cervix, vagina, vulva, etc.)"},{item:"Oesophagus (SCC+adeno)"},{item:"Cutaneous SCC"},{item:"SCC anus"},{item:"Meduloblastoma/PNET and other tumours with short doubling time"}]}},{label:"Category 2",value:"Category 2",tooltip:{heading:"Priority 2",body:"Patients with the following tumours should not have their radical radiotherapy prolonged:",list:[{item:"Squamous cell carcinoma of the head and neck region (grade B recommendation based on level 2 evidence)"},{item:"Non-small cell lung carcinoma (NSCLC) - (grade C recommendation)"},{item:"Squamous cell carcinoma of the cervix (grade D recommendation)"},{item:"Small cell lung carcinoma (chemoradiotherapy) - (grade D recommendation)"},{item:"Squamous cell carcinoma of oesophagus (grade D recommendation)"},{item:"Squamous cell carcinoma of skin, vagina or vulva (grade D recommendation)"},{item:"Squamous cell carcinoma of the anus (grade C recommendation)"},{item:"Adenocarcinoma of the oesophagus (grade D recommendation)"},{item:"Medulloblastoma and primitive neuroectodermal tumours (PNET) - (grade B recommendation based on level 2 evidence)"},{item:"Patients with tumours with a short mass-doubling time (grade D recommendation based on level 4 evidence)"}]}},{label:"Category 3",value:"Category 3",tooltip:{heading:"Priority 3",body:"Patients with the following receiving brachytherapy plus external beam therapy should not have the combined overall treatment time prolonged:",list:[{item:"Squamous cell carcinoma of the cervix (grade B recommendation)"},{item:"Squamous cell carcinoma of the tongue (grade C recommendation)"},{item:"Squamous cell carcinoma of the anus (grade D recommendation)"}]}}],PRIORITY_OPTIONS=[{label:"Emerg.",value:"emerg"},{label:"Urgent",value:"urgent"},{label:"Standard",value:"standard"}],RETREATMENT_OPTIONS=[{label:"Partial",value:"partial"},{label:"Complete",value:"complete"}],REACT_APP_REGION$q=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,{CROMWELL}=AuthorizedICDTreatingDepartments,AppConfig={[Region.AU]:{SpecialPhysicsConsultVisible:!1,RequestTemplateChangeActive:!1,ErrorPopup:{Generic:"We encountered an error. Please refresh the page. If the issue persists, please contact GenesisCare IT support: <a href='mailto:itsupport@genesiscare.com.au'>itsupport@genesiscare.com.au</a>",Practitioner:"We encountered an error. Please refresh the page. If the issue persists, please contact GenesisCare IT support: <a href='mailto:itsupport@genesiscare.com.au'>itsupport@genesiscare.com.au</a>"},ReferringPhysicians:{oncologist:"Responsible Physician",generalPractitioner:"Primary Physician (GP)",referringSurgeon:"Referring Physician 1",referringSurgeon2:"Referring Physician 2",referringSurgeon3:"Referring Physician 3"},DefaultValue:{cied:"",patientStatus:"unknown",previousRadioTreatment:"",treatmentRORequired:"",tumourName:"tumour "},Intake:{disabled:!1,isProstateDisabled:!1,breastMandatoryFields:["grade","er","pgr","her2"],lungMandatoryFields:["weightLoss","smokingHistory","egfr","alk","pdl1"],headNeckMandatoryFields:["P16","smokingHistory"],lymphomaMandatoryFields:["stage","aOrBSymptoms","extranodal","bulkDisease"],breastFormVersion:2},PatientSummary:{isVisible:!0,labsEnabled:!0,RODocumentUpload:!1,documentFilterField:"description"},OutcomesPage:{isVisible:!0,DateFormat:"DD-MMM-YYYY",DateTimeFormat:"DD MMM YYYY h:mma"},OTRPage:{isVisible:!1,DateFormat:"DD-MMM-YYYY",DateTimeFormat:"DD MMM YYYY h:mma"},DisplayButton:{displaySimButton:!0},DisplayModal:{submission:!1},TreatmentInfoPage:{mandatoryFields:["intent","treatingDepartment","readyForCareDate","cied","previousRadioTreatment"],ReadyForCareDate:!0,AdditionalBookingInfo:!0,DelayCategory:!0,MDT:!1,PreviousTreatmentRetreatment:!1,PreviousTreatmentRetreatmentType:!1,AuthorizedICDTreatingDepartments:[],Hormones:!0,Brachytherapy:!0,ccip:!1},SimulationPage:{ContrastRequiredChildFields:!0,SpacerGelWarning:!1,imagingText:"Add imaging request",imagingCountTitle:"Imaging",disableExtentDefined:!0,disablePositionSetup:!0},PrescriptionPage:{MicrodosimetryTld:!1,WeeklyPhysicsCheck:!1,BasicDoseCalculation:!1},SubmissionPage:{PlanAimSubmissionType:"Plan Aim",CPOTEnabled:!0},VolumingPage:{UsePrioritizedOARs:!1},RadiationDashboard:{dateTimeFormat:"DD/MM/YYYY hh:mm A",active:RoDashboardTabs.APPOINTMENTS,careplanDashboard:{careplanStatusFilters:[{id:CareplanStatusFilter.DRAFT,name:CareplanStatusFilter.DRAFT,checked:!0},{id:CareplanStatusFilter.SIMULATION,name:CareplanStatusFilter.SIMULATION,checked:!0},{id:CareplanStatusFilter.PLAN_AIM,name:CareplanStatusFilter.PLAN_AIM,checked:!0},{id:CareplanStatusFilter.PRESCRIPTION,name:CareplanStatusFilter.PRESCRIPTION,checked:!0},{id:CareplanStatusFilter.CPOT,name:CareplanStatusFilter.CPOT,checked:!0}],careplanFilters:[{id:CareplanFilter.UNSUBMITTED,name:CareplanFilter.UNSUBMITTED,checked:!1}],isPatientSummaryLinkEnabled:!0},isCancelledAppointmentsToggleEnabled:!1},QuestionLabel:{CIED:"Cardiac Implantable Electronic Device (CIED)",RoRequired:"RO Required",GoldSeeds:"Gold Seeds",phase:"Phase"},QuestionOptions:{CIED:BOOLEAN_TBC_OPTIONS,previousRadioTreatment:BOOLEAN_OPTIONS$3},QuestionValidationChildren:{CIED:["ciedProtocolRequired","preTreatmentCiedCheckRequired"],Staging:{Primary:{RO:["laterality","diagnosisDate"],MO:["laterality"]},Metastasis:{RO:["laterality","diagnosisDate"],MO:[]}}},ResetMutationVariableDefaults:{CIED:{ciedProtocolRequired:"",preTreatmentCiedCheckRequired:"",referralToGcCardiologist:"",otherCiedInstructions:""},CiedProtocolRequired:{preTreatmentCiedCheckRequired:"",referralToGcCardiologist:"",otherCiedInstructions:""}},GetMutationVariableDefaults:{CIED:{ciedProtocolRequired:"yes",preTreatmentCiedCheckRequired:"yes",referralToGcCardiologist:"no",otherCiedInstructions:""},CiedProtocolRequired:{preTreatmentCiedCheckRequired:"yes",referralToGcCardiologist:"no",otherCiedInstructions:""}},DoseSiteSummary:{enabled:!0,DateFormat:"DD/MM/YYYY"},SubmitDiagnosisOnlyAndExit:!1,CardioReferralField:!0,Tooltips:{hasPriority:!1,hasClinicalPathologicalStaging:!1},DefaultTimezone:"Australia/Sydney",DateFormat:"DD MM YYYY",CareplanVoidTimeRestriction:168,CareplanVoidDescription:"Documentation will be voided and a clinic note will be added into Mosaiq.",EmailMaxLength:40,Outage:{link:"https://genesiscare.sharepoint.com/sites/Oncologyportal/SitePages/Horizon-Offline-weekend.aspx",showBanner:!0,message:"Horizon will be offline from 9 PM Friday, March 15th to Sunday, March 17th, 2024, AEST."},Notes:{EnableSubmit:!0,DateTimeFormat:"DD/MM/YYYY hh:mm A"},DefaultLocale:"en-au",SupportEmail:"itsupport@genesiscare.com.au",ShowResetDemoDataMenuLink:!1,MenuItems:{manageProtocols:!1}},[Region.UK]:{SpecialPhysicsConsultVisible:!1,RequestTemplateChangeActive:!1,ErrorPopup:{Generic:"We encountered an error. Please refresh the page. If the issue persists, please contact GenesisCare IT support: <a href='mailto:genesiscare.itservicedesk@genesiscare.co.uk'>genesiscare.itservicedesk@genesiscare.co.uk</a>",Practitioner:"Your account setup appears to be incomplete or missing information. Please contact GenesisCare IT support: <a href='mailto:genesiscare.itservicedesk@genesiscare.co.uk'>genesiscare.itservicedesk@genesiscare.co.uk</a>"},ReferringPhysicians:{oncologist:"Responsible Physician",generalPractitioner:"Primary Physician (GP)",referringSurgeon:"Referring Clinician",referringSurgeon2:"Referring Other",referringSurgeon3:"Referring Other"},DefaultValue:{cied:"",patientStatus:"outPatient",previousRadioTreatment:"",treatmentRORequired:"",tumourName:"tumour "},Intake:{disabled:!0,isProstateDisabled:!0,breastMandatoryFields:["grade","er","pgr","her2"],lungMandatoryFields:["weightLoss","smokingHistory","egfr","alk","pdl1"],headNeckMandatoryFields:["P16","smokingHistory"],lymphomaMandatoryFields:["stage","aOrBSymptoms","extranodal","bulkDisease"],breastFormVersion:1},PatientSummary:{isVisible:!0,labsEnabled:!1,RODocumentUpload:!0,documentFilterField:"description"},OutcomesPage:{isVisible:!1,DateFormat:"DD-MMM-YYYY",DateTimeFormat:"DD MMM YYYY h:mma"},OTRPage:{isVisible:!1,DateFormat:"DD-MMM-YYYY",DateTimeFormat:"DD MMM YYYY h:mma"},DisplayButton:{displaySimButton:!1},DisplayModal:{submission:!0},SimulationPage:{SpacerGelWarning:!0,imagingText:"Add imaging request",imagingCountTitle:"Imaging",disableExtentDefined:!0,disablePositionSetup:!0},TreatmentInfoPage:{mandatoryFields:["intent","treatingDepartment","readyForCareDate","cied","previousRadioTreatment"],ReadyForCareDate:!0,AdditionalBookingInfo:!0,MDT:!0,DelayCategory:!0,PreviousTreatmentRetreatment:!0,PreviousTreatmentRetreatmentType:!0,AuthorizedICDTreatingDepartments:[CROMWELL],Hormones:!0,Brachytherapy:!0,ccip:!1},PrescriptionPage:{MicrodosimetryTld:!1,WeeklyPhysicsCheck:!1,BasicDoseCalculation:!1},SubmissionPage:{PlanAimSubmissionType:"Plan Aim",CPOTEnabled:!0},VolumingPage:{UsePrioritizedOARs:!1},RadiationDashboard:{dateTimeFormat:"DD/MM/YYYY hh:mm A",active:RoDashboardTabs.CLINIC_LIST,careplanDashboard:{careplanStatusFilters:[{id:CareplanStatusFilter.DRAFT,name:CareplanStatusFilter.DRAFT,checked:!0},{id:CareplanStatusFilter.PLAN_AIM,name:CareplanStatusFilter.PLAN_AIM,checked:!0},{id:CareplanStatusFilter.PRESCRIPTION,name:CareplanStatusFilter.PRESCRIPTION,checked:!0}],careplanFilters:[{id:CareplanFilter.UNSUBMITTED,name:CareplanFilter.UNSUBMITTED,checked:!1}],isPatientSummaryLinkEnabled:!0},isCancelledAppointmentsToggleEnabled:!1},QuestionLabel:{CIED:"Cardiac Device",RoRequired:"Clinical Oncologist required",GoldSeeds:"Fiducials",phase:"Phase"},QuestionOptions:{CIED:UK_CIED_OPTIONS,previousRadioTreatment:BOOLEAN_OPTIONS$3},QuestionValidationChildren:{CIED:["ciedPatientDependancy","ciedLinacRequired"],Staging:{Primary:{RO:["laterality","diagnosisDate"],MO:["laterality"]},Metastasis:{RO:["laterality","diagnosisDate"],MO:[]}}},ResetMutationVariableDefaults:{CIED:{ciedPatientDependancy:"",ciedLinacRequired:""},CiedProtocolRequired:{}},GetMutationVariableDefaults:{CIED:{ciedPatientDependancy:"",ciedLinacRequired:""},CiedProtocolRequired:{}},DoseSiteSummary:{enabled:!1,DateFormat:"DD/MM/YYYY"},SubmitDiagnosisOnlyAndExit:!1,CardioReferralField:!1,Tooltips:{hasPriority:!1,hasClinicalPathologicalStaging:!1},DefaultTimezone:"Europe/London",DateFormat:"DD MM YYYY",CareplanVoidTimeRestriction:8,CareplanVoidDescription:"Documentation will be voided and a clinic note will be added into Mosaiq.",EmailMaxLength:40,Outage:{link:"https://genesiscare.sharepoint.com/sites/HorizonPortalUK/SitePages/Lumonus-Transition.aspx",showBanner:!0,message:"Horizon will be offline from 7PM Friday, March 15th to Sunday, March 17th, 2024, GMT"},Notes:{EnableSubmit:!0,DateTimeFormat:"DD/MM/YYYY hh:mm A"},DefaultLocale:"en-gb",SupportEmail:"itsupport@genesiscare.com.au",ShowResetDemoDataMenuLink:!1,MenuItems:{manageProtocols:!1}},[Region.US]:{SpecialPhysicsConsultVisible:!0,RequestTemplateChangeActive:!0,ErrorPopup:{Generic:"We encountered an error. Please refresh the page. If the issue persists, please contact support: <a href='mailto:support-us@lumonus.com'>support-us@lumonus.com</a>",Practitioner:"We encountered an error. Please refresh the page. If the issue persists, please contact support: <a href='mailto:support-us@lumonus.com'>support-us@lumonus.com</a>"},ReferringPhysicians:{oncologist:"Responsible Physician",generalPractitioner:"Primary Physician (GP)",referringSurgeon:"Referring Physician 1",referringSurgeon2:"Referring Physician 2",referringSurgeon3:"Referring Physician 3"},DefaultValue:{cied:"tbc",patientStatus:"unknown",previousRadioTreatment:"Unknown",treatmentRORequired:"true",tumourName:"tumor"},Intake:{disabled:!1,isProstateDisabled:!1,breastMandatoryFields:[],lungMandatoryFields:[],headNeckMandatoryFields:[],lymphomaMandatoryFields:[],breastFormVersion:2},PatientSummary:{isVisible:!0,labsEnabled:!1,RODocumentUpload:!1,documentFilterField:"type"},OutcomesPage:{isVisible:!1,DateFormat:"MMM-DD-YYYY",DateTimeFormat:"MMM DD YYYY h:mma"},OTRPage:{isVisible:!0,DateFormat:"MMM-DD-YYYY",DateTimeFormat:"MMM DD YYYY h:mma"},DisplayButton:{displaySimButton:!0},DisplayModal:{submission:!1},TreatmentInfoPage:{mandatoryFields:["intent","treatingDepartment","cied","previousRadioTreatment"],ReadyForCareDate:!1,AdditionalBookingInfo:!1,DelayCategory:!1,MDT:!1,PreviousTreatmentRetreatment:!1,PreviousTreatmentRetreatmentType:!1,AuthorizedICDTreatingDepartments:[],Hormones:!1,Brachytherapy:!1,ccip:!0},SimulationPage:{SpacerGelWarning:!1,imagingText:"Add outside imaging request",imagingCountTitle:"Outside imaging",disableExtentDefined:!1,disablePositionSetup:!1},PrescriptionPage:{MicrodosimetryTld:!0,WeeklyPhysicsCheck:!0,BasicDoseCalculation:!0},SubmissionPage:{PlanAimSubmissionType:"Prescription Directive",CPOTEnabled:!1},VolumingPage:{UsePrioritizedOARs:!0},RadiationDashboard:{dateTimeFormat:"MM/DD/YYYY hh:mm A",active:RoDashboardTabs.APPOINTMENTS,careplanDashboard:{careplanStatusFilters:[{id:CareplanStatusFilter.DRAFT,name:CareplanStatusFilter.DRAFT,checked:!0},{id:CareplanStatusFilter.SIMULATION,name:CareplanStatusFilter.SIMULATION,checked:!0},{id:CareplanStatusFilter.PRESCRIPTION_DIRECTIVE,name:CareplanStatusFilter.PRESCRIPTION_DIRECTIVE,checked:!0},{id:CareplanStatusFilter.PRESCRIPTION,name:CareplanStatusFilter.PRESCRIPTION,checked:!0}],careplanFilters:[{id:CareplanFilter.UNSUBMITTED,name:CareplanFilter.UNSUBMITTED,checked:!1}],isPatientSummaryLinkEnabled:!0},isCancelledAppointmentsToggleEnabled:!0},QuestionLabel:{CIED:"Cardiac Implantable Electronic Device (CIED)",RoRequired:"Primary Physician required",GoldSeeds:"Fiducials",phase:"Sequence"},QuestionOptions:{CIED:BOOLEAN_TBC_OPTIONS,previousRadioTreatment:BOOLEAN_UNKNOWN_OPTIONS},QuestionValidationChildren:{CIED:["ciedProtocolRequired","preTreatmentCiedCheckRequired"],Staging:{Primary:{RO:["laterality"],MO:["laterality"]},Metastasis:{RO:["laterality"],MO:[]}}},ResetMutationVariableDefaults:{CIED:{ciedProtocolRequired:"",preTreatmentCiedCheckRequired:"",referralToGcCardiologist:"",otherCiedInstructions:""},CiedProtocolRequired:{preTreatmentCiedCheckRequired:"",referralToGcCardiologist:"",otherCiedInstructions:""}},GetMutationVariableDefaults:{CIED:{ciedProtocolRequired:"yes",preTreatmentCiedCheckRequired:"yes",referralToGcCardiologist:"no",otherCiedInstructions:""},CiedProtocolRequired:{preTreatmentCiedCheckRequired:"yes",referralToGcCardiologist:"no",otherCiedInstructions:""}},DoseSiteSummary:{enabled:!0,DateFormat:"MM/DD/YYYY"},SubmitDiagnosisOnlyAndExit:!1,CardioReferralField:!1,Tooltips:{hasPriority:!0,hasClinicalPathologicalStaging:!0},DefaultTimezone:"US/Eastern",DateFormat:"MM DD YYYY",CareplanVoidTimeRestriction:48,CareplanVoidDescription:"Documentation will be voided in your OIS.",EmailMaxLength:40,Outage:{showBanner:!1,link:"",message:""},Notes:{EnableSubmit:!1,DateTimeFormat:"MM/DD/YYYY hh:mm A"},DefaultLocale:"en",SupportEmail:"support-us@lumonus.com",ShowResetDemoDataMenuLink:!1,MenuItems:{manageProtocols:!0}},[Region.DEMO]:{SpecialPhysicsConsultVisible:!0,RequestTemplateChangeActive:!0,ErrorPopup:{Generic:"We encountered an error. Please refresh the page. If the issue persists, please contact Lumonus support: <a href='mailto:support@lumonus.com'>support@lumonus.com</a>",Practitioner:"We encountered an error. Please refresh the page. If the issue persists, please contact Lumonus support: <a href='mailto:support@lumonus.com'>support@lumonus.com</a>"},ReferringPhysicians:{oncologist:"Responsible Physician",generalPractitioner:"Primary Physician (GP)",referringSurgeon:"Referring Physician 1",referringSurgeon2:"Referring Physician 2",referringSurgeon3:"Referring Physician 3"},DefaultValue:{cied:"",patientStatus:"unknown",previousRadioTreatment:"",treatmentRORequired:"",tumourName:"tumor"},Intake:{disabled:!1,isProstateDisabled:!1,breastMandatoryFields:["grade","er","pgr","her2"],lungMandatoryFields:["weightLoss","smokingHistory","egfr","alk","pdl1"],headNeckMandatoryFields:["P16","smokingHistory"],lymphomaMandatoryFields:["stage","aOrBSymptoms","extranodal","bulkDisease"],breastFormVersion:2},PatientSummary:{isVisible:!0,labsEnabled:!1,RODocumentUpload:!1,documentFilterField:"description"},OutcomesPage:{isVisible:!0,DateFormat:"DD-MMM-YYYY",DateTimeFormat:"DD MMM YYYY h:mma"},OTRPage:{isVisible:!0,DateFormat:"DD-MMM-YYYY",DateTimeFormat:"DD MMM YYYY h:mma"},DisplayButton:{displaySimButton:!0},DisplayModal:{submission:!1},TreatmentInfoPage:{mandatoryFields:["intent","treatingDepartment","cied","previousRadioTreatment"],ReadyForCareDate:!1,AdditionalBookingInfo:!1,DelayCategory:!1,MDT:!1,PreviousTreatmentRetreatment:!1,PreviousTreatmentRetreatmentType:!1,AuthorizedICDTreatingDepartments:[],Hormones:!1,Brachytherapy:!1,ccip:!0},SimulationPage:{ContrastRequiredChildFields:!0,SpacerGelWarning:!1,imagingText:"Add outside imaging request",imagingCountTitle:"Outside imaging",disableExtentDefined:!1,disablePositionSetup:!1},PrescriptionPage:{MicrodosimetryTld:!0,WeeklyPhysicsCheck:!0,BasicDoseCalculation:!0},SubmissionPage:{PlanAimSubmissionType:"Plan Aim",CPOTEnabled:!1},VolumingPage:{UsePrioritizedOARs:!0},RadiationDashboard:{dateTimeFormat:"MM/DD/YYYY hh:mm A",active:RoDashboardTabs.APPOINTMENTS,careplanDashboard:{careplanStatusFilters:[{id:CareplanStatusFilter.DRAFT,name:CareplanStatusFilter.DRAFT,checked:!0},{id:CareplanStatusFilter.SIMULATION,name:CareplanStatusFilter.SIMULATION,checked:!0},{id:CareplanStatusFilter.PLAN_AIM,name:CareplanStatusFilter.PLAN_AIM,checked:!0},{id:CareplanStatusFilter.PRESCRIPTION,name:CareplanStatusFilter.PRESCRIPTION,checked:!0},{id:CareplanStatusFilter.CPOT,name:CareplanStatusFilter.CPOT,checked:!0}],careplanFilters:[{id:CareplanFilter.UNSUBMITTED,name:CareplanFilter.UNSUBMITTED,checked:!1}],isPatientSummaryLinkEnabled:!0},isCancelledAppointmentsToggleEnabled:!1},QuestionLabel:{CIED:"Cardiac Implantable Electronic Device (CIED)",RoRequired:"RO Required",GoldSeeds:"Gold Seeds",phase:"Sequence"},QuestionOptions:{CIED:BOOLEAN_TBC_OPTIONS,previousRadioTreatment:BOOLEAN_OPTIONS$3},QuestionValidationChildren:{CIED:["ciedProtocolRequired","preTreatmentCiedCheckRequired"],Staging:{Primary:{RO:["laterality","diagnosisDate"],MO:["laterality"]},Metastasis:{RO:["laterality","diagnosisDate"],MO:[]}}},ResetMutationVariableDefaults:{CIED:{ciedProtocolRequired:"",preTreatmentCiedCheckRequired:"",referralToGcCardiologist:"",otherCiedInstructions:""},CiedProtocolRequired:{preTreatmentCiedCheckRequired:"",referralToGcCardiologist:"",otherCiedInstructions:""}},GetMutationVariableDefaults:{CIED:{ciedProtocolRequired:"yes",preTreatmentCiedCheckRequired:"yes",referralToGcCardiologist:"no",otherCiedInstructions:""},CiedProtocolRequired:{preTreatmentCiedCheckRequired:"yes",referralToGcCardiologist:"no",otherCiedInstructions:""}},DoseSiteSummary:{enabled:!0,DateFormat:"MM/DD/YYYY"},SubmitDiagnosisOnlyAndExit:!1,CardioReferralField:!1,Tooltips:{hasPriority:!1,hasClinicalPathologicalStaging:!1},DefaultTimezone:"America/New_York",DateFormat:"MM DD YYYY",CareplanVoidTimeRestriction:168,CareplanVoidDescription:"Documentation will be voided in your OIS.",EmailMaxLength:40,Outage:{link:"https://genesiscare.sharepoint.com/sites/Oncologyportal/SitePages/Horizon-Offline-weekend.aspx",showBanner:!0,message:"Horizon will be offline from 9 PM Friday, March 15th to Sunday, March 17th, 2024, AEST."},Notes:{EnableSubmit:!0,DateTimeFormat:"MM/DD/YYYY hh:mm A"},DefaultLocale:"en",SupportEmail:"support-us@lumonus.com",ShowResetDemoDataMenuLink:!0,MenuItems:{manageProtocols:!0}}},CurrentAppConfig=AppConfig[REACT_APP_REGION$q||Region.AU];dayjs.extend(utc);dayjs.extend(timezone);dayjs.extend(advancedFormat);const getDateErrorMessage=et=>{switch(et){case"maxDate":return"Date is above the maximum date";case"minDate":return"Date is below the minimum date";case"disableFuture":return"Date cannot be in the future";case"disablePast":return"Date cannot be in the past";case"invalidDate":return"Please select a valid date";default:return""}},BaseDatePicker=({id:et,error:tt,warning:rt,info:nt,helperText:lt,onError:ut,...dt})=>{const[pt,ht]=reactExports.useState(""),mt=!!pt||tt,xt=getBorderColor(mt,rt,nt),Mt=useTheme$1(),vt=()=>{if(pt)return pt;if(lt)return lt;if(tt)return"This field is required"};return jsxRuntimeExports.jsx(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:CurrentAppConfig.DefaultLocale,children:jsxRuntimeExports.jsx(DatePicker,{sx:{"&:hover .MuiOutlinedInput-notchedOutline":{"border-color":`${mt?Mt.palette.error.main:Mt.palette.primary.main} !important`},".MuiSvgIcon-root":{outlineColor:Mt.palette.primary.main,color:mt?Mt.palette.error.main:Mt.palette.primary.main}},slots:{textField:BaseTextField},slotProps:{textField:{onBlur:Ot=>{dt.onBlur&&dt.onBlur(Ot)},error:mt,helperText:vt(),warning:rt,info:nt,id:et,sx:{".MuiOutlinedInput-notchedOutline":{border:`1px solid ${xt} !important`},":hover .MuiOutlinedInput-notchedOutline":{borderColor:xt}}},openPickerButton:{sx:{outline:"none !important"}},actionBar:{actions:["clear"]}},views:["year","month","day"],onError:(Ot,At)=>{ht(getDateErrorMessage(Ot)),ut&&ut(Ot,At)},...dt})})},getPlaceholder=(et,tt,rt)=>rt||tt===1?"":et===0?"High":et===tt-1?"Low":"Mid",ROMultiColumn=({disabled:et,index:tt,id:rt,value:nt,data:lt,error:ut,onChange:dt,removeColumn:pt,...ht})=>{const mt=getPlaceholder(tt,lt.length,et),xt=!et&&pt&&tt!==0;return jsxRuntimeExports.jsx(BaseTextField,{id:`${rt}-${tt}`,type:"number",fullWidth:!0,placeholder:mt,value:nt||"",neverShowHelper:!0,onChange:Mt=>{const vt=Mt.target.value;if(dt&&vt.slice(0,1)!=="-"){const Ot=lt;Ot[tt]=vt!==""?vt:null,dt(Ot)}},disabled:et,InputProps:{endAdornment:xt&&jsxRuntimeExports.jsx(IconButton,{sx:{paddingRight:"4px",paddingLeft:"4px"},onClick:()=>pt(tt),disableRipple:!0,"data-testid":`remove-dose-${tt}`,children:jsxRuntimeExports.jsx(RemoveCircleOutline,{color:"primary",style:{marginTop:"0px"}})}),sx:{height:"37px"}},error:ut&&!et,...ht})},RODoseField=({id:et,fieldlabel:tt,value:rt,required:nt,error:lt,warning:ut,info:dt,helperText:pt,disabled:ht,addColumn:mt,...xt})=>{const Mt=rt||[null];return jsxRuntimeExports.jsx(FormRow$1,{fieldlabel:tt,required:nt,id:et,children:jsxRuntimeExports.jsxs(Stack$6,{flex:1,maxWidth:"400px",children:[jsxRuntimeExports.jsx(Stack$6,{direction:"row",gap:1,id:et,divider:jsxRuntimeExports.jsx(Divider$1,{orientation:"vertical",flexItem:!0}),children:Mt.map((vt,Ot)=>jsxRuntimeExports.jsx(ROMultiColumn,{index:Ot,value:vt,id:et,disabled:ht,data:Mt,error:lt,warning:ut,info:dt,...xt},tt+Ot))}),jsxRuntimeExports.jsxs(Stack$6,{alignItems:"flex-start",children:[!ht&&Mt.length<4&&mt&&jsxRuntimeExports.jsx(Button,{id:"imagingAdd",size:"medium",startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),onClick:mt,variant:"text","data-testid":"add-dose-level-btn",sx:{textTransform:"none",fontWeight:400},children:"Add dose level"}),jsxRuntimeExports.jsx(Stack$6,{sx:{marginTop:"4px"},children:jsxRuntimeExports.jsx(ROHelperText,{id:et,error:lt,warning:ut,info:dt,helperText:pt})})]})]})})};var Close={},_interopRequireDefault$q=interopRequireDefaultExports;Object.defineProperty(Close,"__esModule",{value:!0});var default_1$n=Close.default=void 0,_createSvgIcon$n=_interopRequireDefault$q(requireCreateSvgIcon()),_jsxRuntime$n=jsxRuntimeExports;default_1$n=Close.default=(0,_createSvgIcon$n.default)((0,_jsxRuntime$n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const StyledTableCell$9=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[200],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$b=styled(TableRow$7)(({theme:et})=>({"&:nth-of-type(odd)":{backgroundColor:et.palette.action.hover},"&:last-child td, &:last-child th":{border:0}})),UpdateReferralMutation=gql`
  mutation changeServiceRequest($serviceRequestPk: String!, $referralStatus: String, $encounterDate: DateTime) {
    changeServiceRequest(
      serviceRequestPk: $serviceRequestPk
      referralStatus: $referralStatus
      encounterDate: $encounterDate
    ) {
      serviceRequest {
        id
        referralStatus
        date
        encounterDate
      }
    }
  }
`,CreateReferralMutation=gql`
  mutation createServiceRequest($patientPk: String!, $referralStatus: String, $encounterDate: DateTime) {
    createServiceRequest(patientPk: $patientPk, referralStatus: $referralStatus, encounterDate: $encounterDate) {
      serviceRequest {
        id
        referralStatus
        date
        encounterDate
      }
    }
  }
`,DeleteReferralMutation=gql`
  mutation deleteServiceRequest($serviceRequestPk: String!) {
    deleteServiceRequest(serviceRequestPk: $serviceRequestPk) {
      ok
    }
  }
`;let TableRow$6=class extends reactExports.Component{render(){const{referralPk:tt,status:rt,encounterDate:nt,removeReferral:lt,onChange:ut,dateCreated:dt}=this.props,pt=hooks(dt).isBefore(hooks(),"day");return jsxRuntimeExports.jsxs(StyledTableRow$b,{id:"table-header",className:classNames$1("pending-appts-table",{"disabled-pending-appts-row":pt}),children:[jsxRuntimeExports.jsx(TableCell,{children:!pt&&jsxRuntimeExports.jsx(IconButton,{onClick:lt,children:jsxRuntimeExports.jsx(default_1$n,{})})}),jsxRuntimeExports.jsx(TableCell,{children:rt}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(BaseTextField,{id:tt,disabled:!0,value:dayjs(nt).format("MMM DD, YYYY")})})})]})}};class ReferralField extends reactExports.Component{constructor(rt){super(rt);Nr(this,"handleChange",rt=>{this.handleReferralChange(rt)});this.state={selectedReferrals:[]}}handleReferralChange(rt){const{callbackHandler:nt}=this.props,lt=rt.serviceRequestPk,ut=rt.referralStatus,dt=rt.referralType,pt=rt.encounterDate,ht={serviceRequestPk:lt};ut&&(ht.referralStatus=ut),dt&&(ht.referralType=dt),pt&&(ht.encounterDate=pt),this.props.client.mutate({mutation:UpdateReferralMutation,variables:ht}).then(()=>nt())}handleReferralDeletion(rt){const{callbackHandler:nt}=this.props;this.props.client.mutate({mutation:DeleteReferralMutation,variables:{serviceRequestPk:rt}}).then(()=>nt())}createReferral(){const{callbackHandler:rt,patient:nt}=this.props;this.props.client.mutate({mutation:CreateReferralMutation,variables:{patientPk:nt.id,encounterDate:hooks()}}).then(()=>rt())}render(){const{patient:rt}=this.props;let nt=!0;rt.primaryCenter&&rt.oncologist&&!rt.hasPendingAppointments&&!rt.hasDraftCareplan&&(nt=!1);const lt=[];if(rt.serviceRequests)for(let ut=0;ut<rt.serviceRequests.length;ut++)rt.serviceRequests[ut].referralStatus!=="Cancelled"&&lt.push(rt.serviceRequests[ut]);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[lt&&lt.length>0&&jsxRuntimeExports.jsxs(Table$3,{sx:{marginBottom:2},children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsxs(TableRow$7,{id:"table-header",children:[jsxRuntimeExports.jsx(StyledTableCell$9,{}),jsxRuntimeExports.jsx(StyledTableCell$9,{children:"Status"}),jsxRuntimeExports.jsx(StyledTableCell$9,{children:"Date"})]})}),jsxRuntimeExports.jsx(TableBody$2,{children:lt.map(ut=>jsxRuntimeExports.jsx(TableRow$6,{referralPk:ut.id,status:ut.referralStatus,encounterDate:hooks(ut.encounterDate),dateCreated:hooks(ut.dateCreated),removeReferral:()=>{this.handleReferralDeletion(ut.id)},onChange:this.handleChange}))})]}),jsxRuntimeExports.jsx(Button,{disabled:nt,variant:"contained",onClick:()=>{this.createReferral()},children:"Add to Oncologist Referral list"}),rt.hasPendingAppointments||rt.hasDraftCareplan&&jsxRuntimeExports.jsx("p",{className:"helper-text",children:"The patient has a pending referral that is not completed or cancelled. The Oncologist will need to finalise the existing referral before creating a new one."})]})}}const ReferralField$1=withApollo(ReferralField),RODatePicker=et=>jsxRuntimeExports.jsxs(FormRow$1,{id:et.id,required:et.required,fieldlabel:et.fieldlabel,indent:et.indent,children:[jsxRuntimeExports.jsx(Stack$5,{sx:{width:"250px",...et==null?void 0:et.sx},children:jsxRuntimeExports.jsx(BaseDatePicker,{...et})}),et.children]}),DEFAULT_INTAKE_HEAD_AND_NECK_DATA={id:"",p16:null,smokingHistory:null,stageTCode:null,stageNCode:null,stageMCode:null,cigarettesPerDay:null,yearsSmoked:null,packYears:null,dateOfSurgery:null,extracapsularExtension:null,margins:null,marginsMeasurement:null,periNeuralInvasion:null,pniType:null,patientDiscussedAtMdt:null,treatmentConsistentMdt:null},DEFAULT_INTAKE_UROGENITAL_DATA={id:"",gleasonOne:null,gleasonTwo:null,isupGrade:null,psa:null,psaDate:null,psma:null,positiveSite:[],prostatectomy:null},DEFAULT_INTAKE_LUNG_DATA={id:"",weightLoss:null,smokingHistory:null,egfr:null,alk:null,pdl1:null},DEFAULT_INTAKE_BREAST_DATA={id:"",grade:null,er:null,pgr:null,her2:null,mastectomy:null,reconstruction:null,excerciseReferral:null,surgery:null,oncoplasticSurgery:null,reconstructionTimeline:null,reconstructionType:null,expandersInSitu:null,lymphovascularInvasion:null,lymphovascularInvasionExtent:null,radialMarginStatus:null,neoadjuvantSystemicTherapy:null,nstAdditionalInfo:null,exerciseDiscussedWithPatient:null},DEFAULT_INTAKE_LYMPHOMA_DATA={id:"",stage:null,aOrBSymptoms:null,extranodal:null,bulkDisease:null},DEFAULT_INTAKE_DATA={lung:DEFAULT_INTAKE_LUNG_DATA,urogenital:DEFAULT_INTAKE_UROGENITAL_DATA,breast:DEFAULT_INTAKE_BREAST_DATA,lymphoma:DEFAULT_INTAKE_LYMPHOMA_DATA,headAndNeck:DEFAULT_INTAKE_HEAD_AND_NECK_DATA},DEFAULT_DIAGNOSIS_TYPE={id:"",stageType:"",stageTCodePathological:null,stageMCodePathological:null,stageNCodePathological:null,stageTCodeClinical:null,stageMCodeClinical:null,stageNCodeClinical:null,disease:void 0,morphology:null,otherInfo:"",laterality:"",diagnosisDate:"",diagnosisCode:null,isPrimaryDiagnosis:null,relatedPrimaryDiagnosis:null,draft:!0,metastasisLaterality:"",metastasisDiagnosisDate:"",hasTreatmentStarted:!1,ajccMajorVersion:""},DEFAULT_DIAGNOSIS_CODE_TYPE={id:"",diagnosisCode:"",diagnosisDescription:"",stageNumber:"",tumourStream:{name:""}},DEFAULT_TNM_STAGE_TYPE={id:0,mainCode:"",description:"",subCode:""};var DiagnosisActionType=(et=>(et[et.SET_DIAGNOSIS=0]="SET_DIAGNOSIS",et[et.SET_INTAKE=1]="SET_INTAKE",et[et.SET_NEW_PRIMARY=2]="SET_NEW_PRIMARY",et[et.SET_NEW_METASTASIS=3]="SET_NEW_METASTASIS",et[et.CREATE_DIAGNOSIS=4]="CREATE_DIAGNOSIS",et[et.COMPLETED_CREATING_DIAGNOSIS=5]="COMPLETED_CREATING_DIAGNOSIS",et[et.CREATE_DIAGNOSIS_ONLY=6]="CREATE_DIAGNOSIS_ONLY",et[et.REPLACE_CURRENT_DIAGNOSIS=7]="REPLACE_CURRENT_DIAGNOSIS",et[et.RESET=8]="RESET",et))(DiagnosisActionType||{});const DEFAULT_DIAGNOSIS_STATE={diagnosis:DEFAULT_DIAGNOSIS_TYPE,intake:DEFAULT_INTAKE_DATA,newPrimary:!1,newSecondary:!1,creatingDiagnosis:!1,createDiagnosisOnly:!1},REACT_APP_REGION$p=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$k=REACT_APP_REGION$p,convertDiagnosisTypeToWithoutNulls=et=>({stageTCodePathological:et!=null&&et.stageTCodePathological?et.stageTCodePathological:DEFAULT_TNM_STAGE_TYPE,stageNCodePathological:et!=null&&et.stageNCodePathological?et.stageNCodePathological:DEFAULT_TNM_STAGE_TYPE,stageMCodePathological:et!=null&&et.stageMCodePathological?et.stageMCodePathological:DEFAULT_TNM_STAGE_TYPE,stageTCodeClinical:et.stageTCodeClinical?et.stageTCodeClinical:DEFAULT_TNM_STAGE_TYPE,stageNCodeClinical:et.stageNCodeClinical?et.stageNCodeClinical:DEFAULT_TNM_STAGE_TYPE,stageMCodeClinical:et.stageMCodeClinical?et.stageMCodeClinical:DEFAULT_TNM_STAGE_TYPE,id:et.id,stageType:et.stageType,otherInfo:et.otherInfo,laterality:et.laterality,diagnosisDate:et.diagnosisDate,morphology:et.morphology?et.morphology:{displayName:""},diagnosisCode:et.diagnosisCode?et.diagnosisCode:{id:"",diagnosisCode:"",diagnosisDescription:"",stageNumber:"",tumourStream:{name:""}},isPrimaryDiagnosis:et.isPrimaryDiagnosis!==null?et.isPrimaryDiagnosis:!0,relatedPrimaryDiagnosis:et.relatedPrimaryDiagnosis}),getOptionByValue=(et,tt)=>{const rt=et.find(nt=>nt.value===(tt==null?void 0:tt.toString()));return rt||(tt&&tt!==""?{label:tt,value:tt}:null)},codeToIntakePageMapping=(et,tt)=>{if(CurrentAppConfig.Intake.disabled)return"";if(region$k===Region.AU&&et==="C34.2")return"Lung";const rt=et in tt?tt[et]:"";return rt==="Urogenital"&&CurrentAppConfig.Intake.isProstateDisabled?"":rt},logger$P=new Logger("AddressField"),LINE1_POSTAL_LINE_HEADING="Postal address line 1",COUNTRY_FIELD_HEADING="Country",COUNTRY_NAME="United Kingdom",LINE1_RESIDENTIAL_FIELD_HEADING="Address line 1",LINE2_HEADING="Address line 2",CITYSUBURB_FIELD_HEADING="City / Town",REGION="County",ZIP_POSTCODE_HEADING="Postcode",AddressFieldRO=et=>{const[tt,rt]=reactExports.useState(new Set),[nt,lt]=reactExports.useState(et.addressInputs.line1.defaultValue),[ut,dt]=reactExports.useState(et.addressInputs.line2.defaultValue),[pt,ht]=reactExports.useState(et.addressInputs.city.defaultValue),[mt,xt]=reactExports.useState(et.addressInputs.state.defaultValue),[Mt,vt]=reactExports.useState(et.addressInputs.zipPostcode.defaultValue);reactExports.useEffect(()=>{lt(et.addressInputs.line1.defaultValue)},[et.addressInputs.line1.defaultValue]),reactExports.useEffect(()=>{dt(et.addressInputs.line2.defaultValue)},[et.addressInputs.line2.defaultValue]),reactExports.useEffect(()=>{ht(et.addressInputs.city.defaultValue)},[et.addressInputs.city.defaultValue]),reactExports.useEffect(()=>{xt(et.addressInputs.state.defaultValue)},[et.addressInputs.state.defaultValue]),reactExports.useEffect(()=>{vt(et.addressInputs.zipPostcode.defaultValue)},[et.addressInputs.zipPostcode.defaultValue]);const Ot=et.countries.findIndex(Kt=>Kt.name===COUNTRY_NAME),At=et.countries[Ot].id,Rt=(Kt,Jt,Qt,Bt)=>{const Ft=jt=>{jt==="state"?Bt.includes("country")&&tt.delete(jt):tt.has(jt)||tt.add(jt)},$t=[{key:Kt[0],value:Jt[0],type:Qt[0]}];Ft(Bt[0]);for(let jt=1;jt<Kt.length;jt++)$t.push({key:Kt[jt],value:Jt[jt],type:Qt[jt]}),Ft(Bt[jt]);rt(tt),et.onBlur($t)},zt=Kt=>{logger$P.debug("updateStateWithCountry","The country value is: ",Kt);const{addressInputs:Jt}=et,Qt=Jt.country.defaultValue===At&&Kt!==At,Bt=Jt.country.defaultValue!==At&&Kt===At,Ft=[Jt.country.graphArgumentKey],$t=[Kt],jt=["String"],Wt=["country"];(Bt||Qt)&&(logger$P.debug("updateStateWithCountry","The state should be updated"),Ft.push(Jt.state.graphArgumentKey),$t.push(""),jt.push("String"),Wt.push("state")),Rt(Ft,$t,jt,Wt)},{addressInputs:Tt,inputName:Ct}=et;let It="[a-zA-Z\\s]+|",Dt=".*";Tt.country.defaultValue===At&&(It=".*"),Tt.country.defaultValue===At&&(Dt=UK_POSTCODE_REGEX);let kt={};et.isMandatory?kt={line1:{presence:{allowEmpty:!1,message:"Please enter your street address."}},city:{presence:{allowEmpty:!1,message:"Please enter your City / Town"},format:{pattern:UK_CITY_REGEX,message:"Please enter a valid city/town"}},country:{presence:{allowEmpty:!1,message:"Please enter your Country."},list:{listdata:et.countries,message:"Please enter a valid country."}},state:{presence:{allowEmpty:Tt.country.defaultValue!==At,message:"Please enter your County."},format:{pattern:It,message:"Please enter your county"}},zipPostcode:{presence:{allowEmpty:Tt.country.defaultValue!==At,message:"Please enter your postcode."},format:{pattern:Dt,message:"Please enter valid postcode."}}}:kt={line1:{presence:{allowEmpty:!0,message:"Please enter your street address."}},city:{presence:{allowEmpty:!0,message:"Please enter your City / Town"}},country:{presence:{allowEmpty:!0,message:"Please enter your Country."}},state:{presence:{allowEmpty:!0,message:"Please enter your County."}},zipPostcode:{presence:{allowEmpty:!0,message:"Please enter your postcode."},format:{pattern:Dt,message:"Please enter valid postcode."}}};let qt=tt.keys();et.validateForm&&(qt=new Set(["line1","city","country","state","zipPostcode"]).keys());for(const Kt of qt)kt[Kt];for(const Kt of Object.keys(Tt))Tt[Kt].defaultValue;let Nt=LINE1_RESIDENTIAL_FIELD_HEADING;Ct==="postal"&&(Nt=LINE1_POSTAL_LINE_HEADING);const Yt=et.countries.map(Kt=>({label:Kt==null?void 0:Kt.name,value:Kt==null?void 0:Kt.id}));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROTextField,{fieldlabel:Nt,disabled:et.disabled,name:`${Ct}-line1`,value:nt,id:"residential-line1",maxLength:60,onChange:Kt=>{lt(Kt.target.value)},onBlur:Kt=>{lt(Kt.target.value),Rt([Tt.line1.graphArgumentKey],[Kt.target.value],["String"],["line1"])}}),jsxRuntimeExports.jsx(ROTextField,{fieldlabel:LINE2_HEADING,disabled:et.disabled,name:`${Ct}-line2`,value:ut,id:"residential-line2",maxLength:60,onChange:Kt=>{dt(Kt.target.value)},onBlur:Kt=>{Rt([Tt.line2.graphArgumentKey],[Kt.target.value],["String"],["line2"])}}),jsxRuntimeExports.jsx(ROTextField,{disabled:et.disabled,fieldlabel:CITYSUBURB_FIELD_HEADING,name:`${Ct}-city`,id:"residential-city",value:pt,maxLength:40,onChange:Kt=>{ht(Kt.target.value)},onBlur:Kt=>{Rt([Tt.city.graphArgumentKey],[Kt.target.value],["String"],["city"])}}),jsxRuntimeExports.jsx(ROAutocomplete,{inputProps:{name:`${Ct}-country`},id:"residential-country",fieldlabel:COUNTRY_FIELD_HEADING,placeholder:"Type to search",options:Yt,value:getOptionByValue(Yt,Tt.country.defaultValue),onChange:Kt=>{const Jt=typeof Kt=="string"?Kt:Kt==null?void 0:Kt.value;zt(Jt)}}),jsxRuntimeExports.jsx(ROTextField,{fieldlabel:REGION,disabled:et.disabled,id:"residential-state",name:`${Ct}-state`,value:mt,maxLength:100,onChange:Kt=>{xt(Kt.target.value),tt.add("state")},onBlur:Kt=>{Rt([Tt.state.graphArgumentKey],[Kt.target.value],["String"],["state"])}}),jsxRuntimeExports.jsx(ROTextField,{disabled:et.disabled,fieldlabel:ZIP_POSTCODE_HEADING,name:`${Ct}-zipPostcode`,id:"residential-zipPostcode",value:Mt,maxLength:25,onChange:Kt=>{vt(Kt.target.value)},onBlur:Kt=>{Rt([Tt.zipPostcode.graphArgumentKey],[Kt.target.value],["String"],["zipPostcode"])}})]})},REACT_APP_REGION$o=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$j=REACT_APP_REGION$o;class AsyncAutocompleteRO extends reactExports.Component{constructor(rt){super(rt);Nr(this,"inputWidth",0);Nr(this,"container");Nr(this,"onChange",(rt,{newValue:nt})=>{this.setState({value:nt}),nt===""&&this.setState({selectedsuggestion:void 0})});Nr(this,"setSuggestionValue",rt=>(this.setState({selectedsuggestion:rt.id}),this.onBlur(),rt.name));Nr(this,"renderSuggestion",rt=>{if(["oncologists","extPractitioners"].includes(this.props.grapheneField)&&region$j===Region.UK){const nt=rt,lt=nt.location?nt.location:"Centre not available";return jsxRuntimeExports.jsx("div",{style:{width:this.inputWidth-20},className:"suggestion-container",children:jsxRuntimeExports.jsxs("div",{className:"suggestion-item",children:[jsxRuntimeExports.jsxs("div",{className:"item-doc-name",children:[nt.name," ",nt.qualification?"("+nt.qualification+")":""]}),jsxRuntimeExports.jsx("div",{className:"item-doc-location",children:lt})]})})}else return jsxRuntimeExports.jsx("div",{style:{width:this.inputWidth-20},className:"suggestion-container",children:jsxRuntimeExports.jsx("div",{className:"suggestion-item",children:rt.name})})});Nr(this,"renderInputComponent",rt=>jsxRuntimeExports.jsx("input",{...rt,ref:nt=>{rt.ref&&rt.ref(nt),this.container=nt}}));Nr(this,"updateOnBlur",()=>{if(this.state.selectedsuggestion===void 0){const{suggestions:rt,value:nt}=this.state;if(rt.length===1&&rt[0].name.toLowerCase()===nt.toLowerCase())return!0}return!1});let nt={value:"",suggestions:[]};this.props.defaultValue&&(nt={...nt,value:this.props.defaultValue}),this.state=nt}onBlur(){let rt=this.state.selectedsuggestion,nt=this.state.value;this.updateOnBlur()&&(this.setState({selectedsuggestion:this.state.suggestions[0].id,value:this.state.suggestions[0].name}),rt=this.state.suggestions[0].id,nt=this.state.suggestions[0].name),rt||(rt=nt),this.props.onBlur(rt)}onKeyPress(rt){const nt=!isNaN(Number(rt.key.trim()));this.props.preventNumberInput&&nt&&rt.preventDefault()}render(){const{value:rt}=this.state,{disabled:nt,inputName:lt,placeholder:ut,patient:dt,errors:pt,grapheneField:ht,fullName:mt,dataTestId:xt}=this.props,Mt=100,vt=["oncologists","extPractitioners"].includes(ht)&&region$j===Region.UK,Ot=gql`
    query search ($search: String! $patient: ID!) {
      choices: ${ht} (search: $search patient: $patient) {
        id
        ${mt?"name: fullName":"name"}
        ${vt?"location":""}
        ${vt?"qualification":""}
      }
    }`;return jsxRuntimeExports.jsx(Query,{query:Ot,variables:{search:rt,patient:dt},children:({data:At,error:Rt})=>Rt?jsxRuntimeExports.jsx("div",{children:"error"}):jsxRuntimeExports.jsxs("div",{"data-test-id":xt||"spaget",className:classNames$1("async-autocomplete-ro-wrapper",{"validation-error":pt&&pt.length>0}),children:[jsxRuntimeExports.jsx(Autosuggest,{suggestions:(At==null?void 0:At.choices)||[],onSuggestionsFetchRequested:()=>{},onSuggestionsClearRequested:()=>{},getSuggestionValue:this.setSuggestionValue,renderSuggestion:this.renderSuggestion,renderInputComponent:this.renderInputComponent,inputProps:{placeholder:ut,name:lt,value:rt,maxLength:Mt,onBlur:zt=>this.onBlur(),onChange:(zt,Tt)=>this.onChange(zt,Tt),onKeyPress:zt=>this.onKeyPress(zt),disabled:nt}}),jsxRuntimeExports.jsx("div",{children:pt})]})})}}const BaseSelect=({options:et,...tt})=>jsxRuntimeExports.jsx(BaseTextField,{select:!0,SelectProps:{MenuProps:{sx:{height:"350px"}}},...tt,children:et.map((rt,nt)=>jsxRuntimeExports.jsx(MenuItem,{"data-testid":`option-${rt.value}`,value:rt.value,disabled:rt.disabled,children:rt.label},`option-${rt.value}-${nt}`))}),ROSelect=et=>{const{indent:tt,...rt}=et,{fieldlabel:nt,id:lt,required:ut}=rt;return jsxRuntimeExports.jsx(FormRow$1,{fieldlabel:nt,id:lt,required:ut,indent:tt,children:jsxRuntimeExports.jsx(BaseSelect,{...rt})})},BaseAutocomplete=({inputProps:et,onChange:tt,value:rt,sx:nt,InputProps:lt,placeholder:ut,label:dt,icon:pt,...ht})=>{const[mt,xt]=reactExports.useState((rt==null?void 0:rt.value)||""),Mt=useTheme$1();return jsxRuntimeExports.jsx(Autocomplete,{ListboxProps:{sx:{"& .MuiAutocomplete-option":{margin:0}},style:{maxHeight:250}},isOptionEqualToValue:(vt,Ot)=>typeof Ot=="string"?vt.value===Ot:vt.value===Ot.value,getOptionLabel:vt=>{var Ot;if(typeof vt=="string"){const At=(Ot=ht==null?void 0:ht.options)==null?void 0:Ot.find(Rt=>Rt.value===vt);return At?At.label:vt}return vt.label},fullWidth:!0,value:rt||null,inputValue:mt,"data-testid":ht==null?void 0:ht.id,getOptionDisabled:vt=>(vt==null?void 0:vt.disabled)||!1,onInputChange:(vt,Ot)=>{xt(Ot)},...ht,onChange:(vt,Ot)=>{if(Ot===null)return tt("");if(Array.isArray(Ot)){const At=Ot==null?void 0:Ot[0];return tt(At)}return tt(Ot)},renderOption:(vt,Ot,{selected:At})=>{const{key:Rt,...zt}=vt;return jsxRuntimeExports.jsx(Tooltip,{arrow:!0,placement:"right",disableInteractive:!0,title:Ot==null?void 0:Ot.tooltip,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-300]}}]}},children:jsxRuntimeExports.jsx("li",{...zt,style:{backgroundColor:At?Mt.palette.action.selected:"white !important","&:hover":{backgroundColor:At?Mt.palette.action.selected:Mt.palette.action.hover+" !important"}},children:Ot.label},Rt)},Rt)},renderInput:vt=>jsxRuntimeExports.jsx(BaseTextField,{...vt,...et,placeholder:ut??(et==null?void 0:et.placeholder),id:`${ht==null?void 0:ht.id}-input`,"data-testid":`${ht==null?void 0:ht.id}-input`,fieldLabel:dt,InputProps:{...vt==null?void 0:vt.InputProps,...lt,startAdornment:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[pt&&jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:pt}),vt==null?void 0:vt.InputProps.startAdornment]})}}),sx:{"& .MuiOutlinedInput-root":{paddingLeft:"0 !important"},"& .MuiAutocomplete-clearIndicator":{"& .MuiSvgIcon-root":{width:"20px",height:"20px"}},...nt}})},ROAutocomplete=({sx:et,requiredFieldColor:tt,tooltip:rt,...nt})=>jsxRuntimeExports.jsx(FormRow$1,{id:`row-${nt.id}`,fieldlabel:nt.fieldlabel,required:nt.required,requiredFieldColor:tt,tooltip:rt,children:jsxRuntimeExports.jsx(BaseAutocomplete,{...nt,sx:{width:"100%",maxWidth:"400px",minWidth:"250px",alignItems:"center","& .MuiTextField-root":{verticalAlign:"unset"},...et},placeholder:nt.placeholder||"Please select",label:nt.label,icon:nt.icon})}),legacyOnChange=(et,tt,rt,nt="selectAll")=>{const{target:{value:lt}}=et,ut=lt.at(-1);if(ut===nt){if(tt.every(ht=>ht.checked)){rt&&rt(tt==null?void 0:tt.map(ht=>ht.id),!1);return}rt&&rt(tt==null?void 0:tt.map(ht=>ht.id),!0);return}const dt=tt.find(ht=>(ht==null?void 0:ht.value)===ut),pt=lt.slice(0,-1).find(ht=>(ht==null?void 0:ht.value)===ut);dt&&rt&&rt([dt.id],!pt.checked)},Badge=({badgeNumber:et})=>{const tt=useTheme$1();return jsxRuntimeExports.jsx(Stack$5,{alignItems:"center",justifyContent:"center",sx:{backgroundColor:tt.palette.info.main,color:tt.palette.info.contrastText,border:`1px solid ${tt.palette.info.main}`,borderRadius:"50%",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",maxWdth:"18px",maxHeight:"18px",fontSize:"12px",position:"absolute",right:"30px",pointerEvents:"none"},children:et})},BaseSelectCheckbox=({id:et,options:tt,showSelectAll:rt=!1,placeholder:nt,badgeContent:lt,sx:ut,...dt})=>{const pt=tt.every(ht=>ht.checked);return jsxRuntimeExports.jsxs(Select$3,{id:et,"data-testid":`${et}-dropdown`,multiple:!0,value:tt,renderValue:()=>nt,endAdornment:lt&&jsxRuntimeExports.jsx(Badge,{badgeNumber:lt}),MenuProps:{PaperProps:{style:{maxHeight:"300px"}}},inputProps:{sx:{textAlign:"left",paddingRight:lt?"40px !important":"32px"}},sx:{height:"38px",...ut},...dt,children:[rt&&jsxRuntimeExports.jsxs(MenuItem,{value:"selectAll","data-testid":"select-all-option",children:[jsxRuntimeExports.jsx(Checkbox$1,{checked:pt}),jsxRuntimeExports.jsx(ListItemText,{primary:"Select All"})]},"selectAll"),tt.map(ht=>{const mt=ht.value,xt=ht.checked;return jsxRuntimeExports.jsxs(MenuItem,{value:mt,"data-testid":`${mt.toLowerCase()}-option`,children:[jsxRuntimeExports.jsx(Checkbox$1,{checked:xt}),jsxRuntimeExports.jsx(ListItemText,{primary:mt})]},mt)})]})},ToggleButtons=et=>{const{id:tt,sx:rt,options:nt,handleChange:lt,error:ut,warning:dt,info:pt,neverShowHelper:ht,alwaysShowHelper:mt,helperText:xt,fullWidth:Mt,...vt}=et,Ot=useTheme$1(),At=!ht&&(mt||ut||dt||pt),Rt={error:ut,warning:dt,info:pt,helperText:xt,id:tt},zt=getBorderColor(ut,dt,pt);return jsxRuntimeExports.jsxs(Stack$5,{sx:{width:Mt?"100%":"default",gap:"4px"},children:[jsxRuntimeExports.jsx(ToggleButtonGroup,{id:tt,"data-testid":tt,exclusive:!0,fullWidth:Mt,onChange:(Tt,Ct)=>{Ct!==null&&lt(Ct)},sx:{whiteSpace:"nowrap",height:"100%",...rt},...vt,children:nt.map(Tt=>{const Ct=`toggle-button-${Tt.value.replace(/\s/g,"")}`;return jsxRuntimeExports.jsx(ToggleButton$1,{id:Ct,sx:{color:Ot.palette.text.primary,maxHeight:"37px",fontSize:"14px",textTransform:"capitalize",borderColor:zt,fontWeight:"400","&.MuiToggleButton-root.Mui-selected":{backgroundColor:Ot.palette.action.selected,color:Ot.palette.text.primary},":hover":{backgroundColor:Ot.palette.action.hover},padding:Mt?"8px 4px":"8px"},color:"primary","data-testid":`${tt+Tt.value}`,disabled:et==null?void 0:et.disabled,value:Tt.value,children:Tt.label},Tt.value)})}),At&&jsxRuntimeExports.jsx(ROHelperText,{...Rt})]})},ROToggleButtons=et=>{const{fullWidth:tt,error:rt,warning:nt,info:lt,fieldlabel:ut,id:dt,required:pt,sx:ht,tooltip:mt}=et,xt=rt?"error":nt?"warning":lt?"info":"primary";return jsxRuntimeExports.jsx(FormRow$1,{fieldlabel:ut,id:dt,required:pt,tooltip:mt,children:jsxRuntimeExports.jsx(ToggleButtons,{...et,fullWidth:tt===void 0?!0:tt,color:xt,sx:{width:"400px",maxWidth:"400px",...ht}})})},CheckBoxGroup=et=>{const{id:tt,value:rt,disabled:nt,options:lt,onBlur:ut,onChange:dt}=et,pt=useTheme$1();return jsxRuntimeExports.jsx(FormGroup,{children:lt==null?void 0:lt.map(ht=>{const mt=`toggle-button-${ht.value.replace(/\s/g,"")}`;return jsxRuntimeExports.jsx(FormControlLabel,{sx:{width:"100%",borderRadius:"4px",border:`1px solid ${xt=>xt.theme.palette.grey[300]}`,"&:hover":{backgroundColor:pt.palette.primary.light}},control:jsxRuntimeExports.jsx(Checkbox$1,{}),id:mt,"data-testid":`${tt+ht.value}`,value:ht.value,disabled:nt,onBlur:ut,onChange:()=>{nt||(rt.includes(ht.value)?dt(rt.filter(xt=>xt!==ht.value)):dt([...rt,ht.value]))},checked:rt.includes(ht.value),label:jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px"},children:ht.label})},ht.value)})})};function TooltipModal(et){const{open:tt,setOpen:rt,tooltip:nt,modalWidth:lt="small"}=et;return jsxRuntimeExports.jsx(StandardDialog,{open:tt,onClose:()=>rt(!1),title:(nt==null?void 0:nt.header)||"",children:jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:(nt==null?void 0:nt.body)||""}})})}function FormRowToolTip(et){const{tooltip:tt}=et,[rt,nt]=reactExports.useState(!1);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelpOutline,{sx:{cursor:"pointer"},color:"info",onClick:()=>nt(!0)}),rt&&jsxRuntimeExports.jsx(TooltipModal,{open:rt,tooltip:tt,setOpen:nt})]})}const SectionTitle$3=styled$1("div")`
  font-size: 13px;
  line-height: 16px;
  color: ${et=>et.theme.palette.grey[600]};
  font-weight: bold;
  margin-bottom: 16px;
  text-transform: uppercase;
`;var CheckBoxOutlineBlank={},_interopRequireDefault$p=interopRequireDefaultExports;Object.defineProperty(CheckBoxOutlineBlank,"__esModule",{value:!0});var default_1$m=CheckBoxOutlineBlank.default=void 0,_createSvgIcon$m=_interopRequireDefault$p(requireCreateSvgIcon()),_jsxRuntime$m=jsxRuntimeExports;default_1$m=CheckBoxOutlineBlank.default=(0,_createSvgIcon$m.default)((0,_jsxRuntime$m.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");var CheckBox={},_interopRequireDefault$o=interopRequireDefaultExports;Object.defineProperty(CheckBox,"__esModule",{value:!0});var default_1$l=CheckBox.default=void 0,_createSvgIcon$l=_interopRequireDefault$o(requireCreateSvgIcon()),_jsxRuntime$l=jsxRuntimeExports;default_1$l=CheckBox.default=(0,_createSvgIcon$l.default)((0,_jsxRuntime$l.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");const icon$1=jsxRuntimeExports.jsx(default_1$m,{fontSize:"small"}),checkedIcon$1=jsxRuntimeExports.jsx(default_1$l,{fontSize:"small"}),ChipMultiSelect=et=>{const{handleChange:tt,selectedValues:rt,options:nt,placeholder:lt,fieldLabel:ut,error:dt,required:pt,id:ht,requiredFieldColor:mt}=et,xt=useTheme$1(),Mt={error:dt,id:"selectedCareplan"},vt=getBorderColor(dt);return jsxRuntimeExports.jsx(FormRow$1,{id:"selectedCareplan",fieldlabel:ut,required:pt,requiredFieldColor:mt,children:jsxRuntimeExports.jsxs(FormControl,{sx:{width:"100%",padding:0,borderColor:xt.palette.error.main},children:[jsxRuntimeExports.jsx(InputLabel,{id:"demo-multiple-chip-label",placeholder:lt}),jsxRuntimeExports.jsx(Autocomplete,{id:ht,"data-testid":ht,multiple:!0,disableCloseOnSelect:!0,limitTags:nt.length,size:"small",options:nt,value:rt,onChange:(Ot,At)=>{tt(At)},renderInput:Ot=>jsxRuntimeExports.jsx(TextField,{...Ot,size:"small",placeholder:rt.length>0?"":lt,error:dt,helperText:dt?jsxRuntimeExports.jsx(ROHelperText,{...Mt}):""}),renderOption:(Ot,At,{selected:Rt})=>{const{key:zt,...Tt}=Ot;return jsxRuntimeExports.jsxs("li",{...Tt,style:{padding:"0px",margin:"0px"},children:[jsxRuntimeExports.jsx(Checkbox$1,{icon:icon$1,checkedIcon:checkedIcon$1,style:{marginRight:8},checked:Rt}),At]},zt)},sx:{fontWeight:600,fontSize:"14px",maxWidth:"400px",minWidth:"250px","& .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input":{padding:"2.5px 4px 2.5px 0px"},"& .MuiOutlinedInput-root.Mui-disabled":{backgroundColor:xt.palette.grey[100]},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:xt.palette.text.primary},"& .MuiInputBase-root.MuiOutlinedInput-root ::placeholder":{opacity:1,color:xt.palette.grey[600]},".MuiInputBase-root":{"&:hover":{backgroundColor:xt.palette.grey[100]}},":hover .MuiOutlinedInput-notchedOutline":{borderColor:vt},'input[type="number"]::-webkit-inner-spin-button':{"-webkit-appearance":"none",margin:0},'input[type="number"]::-webkit-outer-spin-button':{"-webkit-appearance":"none",margin:0},".MuiFormHelperText-root":{marginLeft:0},"& .MuiChip-label":{height:"24px"},"& .MuiChip-deleteIcon":{color:xt.palette.primary.dark,width:"16px",height:"16px","&:hover":{color:xt.palette.primary.light}}}})]})})},DATATYPE$1={DATE:"DATE",STRING:"STRING",NUMBER:"NUMBER"},TableContainer$5=styled$1("table")`
  height: 100%;
  display: block;
  border-collapse: separate;
  min-width: ${et=>et.minWidth?et.minWidth:"0"};
  width: 100%;
  overflow: ${et=>et.overflow?et.overflow:"hidden"};
`,TableHead$1=styled$1("thead")`
  display: flex;
  padding-right: ${et=>et.isOverflow?"15px":"0px"};
`,TableHeaderRow$1=styled$1("tr")`
  flex-grow: 1;
  display: flex;
`,TableHeader$2=styled$1("th")`
  position: relative;
  display: flex;
  align-items: center;
  width: ${({$width:et})=>et||"100%"};
  white-space: nowrap;
  padding: 18px 16px;
  color: ${et=>et.theme.palette.text.primary};
  background-color: ${et=>et.theme.palette.grey[100]};
  font-size: ${getRemSize(16)};
`,TableBody$1=styled$1("tbody")`
  height: calc(100% - 60px);
  max-height: calc(100% - 60px);
  display: block;
  width: 100%;
  overflow: ${et=>et.isOverflow?"scroll":"hidden"};
  &:hover {
    overflow: ${et=>et.hoverScroll&&(et!=null&&et.isOverflow)?"scroll":"overlay"};
  }
`,TableRow$5=styled$1("tr")`
  display: flex;
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  background-color: ${et=>et.$rowBackgroundColor};
  &:hover {
    background-color: ${et=>et.$rowHoverColor};
    cursor: ${et=>et.$onRowClick?"pointer":"auto"};
  }
`,TableData$1=styled$1("td")`
  display: flex;
  align-items: center;
  width: ${et=>et.$width||"100%"};
  padding: ${et=>et.active?"6px 14px 7px 14px":"8px 16px"};
  font-size: ${getRemSize(16)};
  vertical-align: middle;
  border-top: ${et=>et.active?`2px solid ${et.theme.palette.primary.dark}`:""};
  border-bottom: ${et=>et.active?`2px solid ${et.theme.palette.primary.dark}`:`1px solid ${et.theme.palette.grey[300]}`};
  &:last-of-type {
    //justify-content: flex-end;
    border-right: ${et=>et.active?`2px solid ${et.theme.palette.primary.dark}`:""};
    border-radius: ${et=>et.active?"0 4px 4px 0":""};
  }
  &:first-of-type {
    border-left: ${et=>et.active?`2px solid ${et.theme.palette.primary.dark}`:""};
    border-radius: ${et=>et.active?"4px 0 0 4px":""};
  }
`,NoDataRow=styled$1("tr")`
  display: flex;
  width: 100%;
`;styled$1("td")`
  colspan: ${et=>et.colspan};
  width: 100%;
  border-bottom: 0px;
`;styled$1("div")`
  margin: 16px 0 0 16px;
`;const SORT_TYPES$1={ASC:"ASC",DESC:"DESC"},NO_DATA$2="No results found",Table$2=et=>{var Rt,zt;const{tableHeaders:tt,tableData:rt,testId:nt,defaultSortState:lt,activeRowIndex:ut,noRowsText:dt}=et,[pt,ht]=reactExports.useState(lt||{key:"",order:"",type:""}),[mt,xt]=reactExports.useState(),Mt=React$4.useRef(),vt=useIsOverflow(Mt,()=>{});reactExports.useEffect(()=>{if(rt!=null&&rt.length){const Ct=[...[...rt]].sort((It,Dt)=>{const kt=Yt=>Yt.find(Kt=>Kt.key===pt.key),qt=kt(It.tableRows),Nt=kt(Dt.tableRows);if(pt.type===DATATYPE$1.DATE){const Yt=hooks(qt.sortableField,"L").toDate().getTime(),Kt=hooks(Nt.sortableField,"L").toDate().getTime();return pt.order===SORT_TYPES$1.ASC?Kt-Yt:Yt-Kt}if(pt.type===DATATYPE$1.STRING){const Yt=pt.order===SORT_TYPES$1.ASC?1:-1;if(qt.sortableField>Nt.sortableField)return Yt;if(qt.sortableField<Nt.sortableField)return-1*Yt}return 0});xt(Ct)}else xt([])},[pt,rt]);const Ot=Tt=>{const Ct=pt.order===SORT_TYPES$1.DESC?SORT_TYPES$1.ASC:SORT_TYPES$1.DESC;ht({key:Tt.key,order:Ct,type:Tt.type})},At=jsxRuntimeExports.jsx(NoDataRow,{children:jsxRuntimeExports.jsx(Stack$5,{direction:"row",alignItems:"center",padding:1,gap:1,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:dt||NO_DATA$2})})});return jsxRuntimeExports.jsxs(TableContainer$5,{"data-test-id":nt,minWidth:(Rt=et.tableContainerProps)==null?void 0:Rt.minWidth,overflow:(zt=et.tableContainerProps)==null?void 0:zt.overflow,children:[jsxRuntimeExports.jsx(TableHead$1,{isOverflow:vt,children:jsxRuntimeExports.jsx(TableHeaderRow$1,{children:tt.map(Tt=>{var qt,Nt,Yt;const It=((qt=Tt==null?void 0:Tt.filterOptions)==null?void 0:qt.filter(Kt=>Kt.checked).length)===((Nt=Tt==null?void 0:Tt.filterOptions)==null?void 0:Nt.length),Dt=pt.key===Tt.key,kt=(Yt=Tt==null?void 0:Tt.filterOptions)==null?void 0:Yt.map(Kt=>({value:Kt.name,id:Kt.id,checked:Kt.checked||!1}));return jsxRuntimeExports.jsxs(TableHeader$2,{$width:Tt.width,"data-testid":"header-col-title",children:[Tt.hasOwnProperty("sort")&&jsxRuntimeExports.jsxs(Stack$5,{onClick:()=>{Ot(Tt)},"data-testid":`${Tt.title}-sort`,sx:{cursor:"pointer"},children:[jsxRuntimeExports.jsx(KeyboardArrowUp,{color:Dt&&pt.order===SORT_TYPES$1.ASC?"primary":"secondary",sx:{marginBottom:"-10px"}}),jsxRuntimeExports.jsx(KeyboardArrowDown,{color:Dt&&pt.order!==SORT_TYPES$1.ASC?"primary":"secondary"})]}),Tt.hasOwnProperty("filterOptions")?jsxRuntimeExports.jsx(BaseSelectCheckbox,{id:Tt.key,options:kt,showSelectAll:!Tt.disableCheckAll,badgeContent:It?void 0:String(Tt.badgeNumber||0),placeholder:Tt.dropdownTitle||Tt.title,onChange:Kt=>legacyOnChange(Kt,kt,Tt.onFilterChange),sx:{".MuiOutlinedInput-notchedOutline":{border:"none",outline:"none"},fontWeight:600,fontSize:"14px"}}):jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:Tt.title})]},Tt.key)})})}),jsxRuntimeExports.jsx(TableBody$1,{ref:Mt,"data-test-id":`${nt}-body`,hoverScroll:et.hoverScroll,isOverflow:vt,children:mt!=null&&mt.length?mt.map((Tt,Ct)=>{const It={active:Ct===ut};return jsxRuntimeExports.jsx(TableRow$5,{"data-test-id":`${nt}-row-${Ct}`,onClick:()=>{Tt.onRowClick&&Tt.onRowClick()},$rowHoverColor:Tt==null?void 0:Tt.rowHoverColor,$rowBackgroundColor:Tt==null?void 0:Tt.rowBackgroundColor,$onRowClick:Tt==null?void 0:Tt.onRowClick,children:Tt.tableRows.map((Dt,kt)=>jsxRuntimeExports.jsx(TableData$1,{...It,$width:Dt.width,children:Dt.component},kt))},`${Tt.tableRows[0].title}-${Ct}`)}):At})]})};var OnboardingPopoverFeatures=(et=>(et.CREATE_PATIENT="Create Patient",et.GP_REFERRER="GP Referrer",et.BUZZ_SMS="Buzz SMS Dashboard",et.SMS_LOG_WIDGET="SMS Log Widget",et))(OnboardingPopoverFeatures||{});const PopoverContentsCreatePatient=et=>{const tt=useTheme$1(),rt=tt.custom.title;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Typography,{variant:"h6",id:"onboarding-title",sx:{fontWeight:700},children:["Create patient record from"," ",jsxRuntimeExports.jsxs("span",{id:"onboarding-popover-new",children:[jsxRuntimeExports.jsx("span",{children:rt}),jsxRuntimeExports.jsx("span",{style:{color:tt.palette.warning.dark,fontSize:"14px",verticalAlign:"super"},children:"NEW"})]})]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",id:"onboarding-popover-textarea",children:[jsxRuntimeExports.jsxs("p",{children:["You can now create a new patient record directly from ",rt,"."]}),jsxRuntimeExports.jsxs("p",{children:["The feature conducts a duplicate record search and if none are found, creates a new patient record both in",rt," and Mosaiq."]}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("p",{children:["Click"," ",jsxRuntimeExports.jsx("span",{onClick:et.handleVisitLink,style:{color:tt.palette.info.main},children:"LATEST UPDATE"})," ","to learn more about this feature."]})]})]})},PopoverContentsGPReferrerStep1=et=>{const{pageLoadEvent:tt}=et,rt=useTheme$1();return reactExports.useEffect(()=>{const nt={eventName:POPOVER_LOG_EVENTS.DISPLAYED};tt&&tt(nt)},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("h1",{id:"onboarding-title",children:["Referring specialist and GP"," ",jsxRuntimeExports.jsxs("span",{id:"onboarding-popover-new",children:[jsxRuntimeExports.jsx("span",{children:"lookup"}),jsxRuntimeExports.jsx("span",{style:{color:rt.palette.warning.dark},children:"NEW"})]})]}),jsxRuntimeExports.jsx("div",{id:"onboarding-popover-textarea",children:jsxRuntimeExports.jsx("p",{children:"MOSAIQ external directory is now integrated in Horizon. You can select referring specialist and GP which will be added to the patient's record."})})]})},PopoverContentsGPReferrerStep2=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h1",{id:"onboarding-title",children:"Referring specialist lookup"}),jsxRuntimeExports.jsx("div",{id:"onboarding-popover-textarea",children:jsxRuntimeExports.jsx("p",{children:"To find a referring specialist, use the lookup to open the search box."})})]}),PopoverContentsGPReferrerStep3=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h1",{id:"onboarding-title",children:"Search referring specialist"}),jsxRuntimeExports.jsxs("div",{id:"onboarding-popover-textarea",children:[jsxRuntimeExports.jsx("p",{children:"Type referring specialist name, click search and select the correct match."}),jsxRuntimeExports.jsx("p",{children:"Want to look up GP? Follow the same steps using General Practitioner lookup."})]})]}),StyledBackdrop=styled$1("div")`
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(90, 90, 90, 0.5);
  z-index: 7099;
`,ImportantDiv=styled$1("div")`
  ${({$popoverOpen:et})=>et&&`
  position: relative !important;
  z-index: 7100;
  `}
`,OnboardingPopover=et=>{const tt=useTheme$1(),rt=()=>{switch(et.feature){case OnboardingPopoverFeatures.CREATE_PATIENT:return jsxRuntimeExports.jsx(PopoverContentsCreatePatient,{handleVisitLink:et.handleVisitLink});case OnboardingPopoverFeatures.GP_REFERRER:return et.step==="1"?jsxRuntimeExports.jsx(PopoverContentsGPReferrerStep1,{pageLoadEvent:et.logEvent}):et.step==="2"?jsxRuntimeExports.jsx(PopoverContentsGPReferrerStep2,{}):jsxRuntimeExports.jsx(PopoverContentsGPReferrerStep3,{});default:return jsxRuntimeExports.jsx(PopoverContentsCreatePatient,{handleVisitLink:et.handleVisitLink})}},nt=()=>{if(et.feature===OnboardingPopoverFeatures.GP_REFERRER){const dt={eventName:POPOVER_LOG_EVENTS.EXIT,exitStep:et.step||""};et.logEvent&&et.logEvent(dt)}et.handleClose()},lt=()=>{switch(et.feature){case OnboardingPopoverFeatures.GP_REFERRER:if(et.step==="1"||et.step==="2"){const dt={eventName:POPOVER_LOG_EVENTS.NEXT_STEP,currentStep:et.step||""};et.logEvent&&et.logEvent(dt)}else{const dt={eventName:POPOVER_LOG_EVENTS.COMPLETE,currentStep:et.step||""};et.logEvent&&et.logEvent(dt)}et.handleNext&&et.handleNext();break;case OnboardingPopoverFeatures.CREATE_PATIENT:default:nt()}},ut=()=>{switch(et.step){case"1":return"Show me!";case"2":return"Next";default:return"Got it!"}};return et.hidePopOverComponent?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et.children}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et.popoverOpen&&jsxRuntimeExports.jsx(StyledBackdrop,{}),jsxRuntimeExports.jsxs(ImportantDiv,{$popoverOpen:et.popoverOpen,children:[et.children,jsxRuntimeExports.jsx(Popover$1,{anchorOrigin:{vertical:"top",horizontal:"right"},open:et.popoverOpen,anchorEl:et.target,sx:{maxWidth:"800px"},children:jsxRuntimeExports.jsxs(Card$2,{children:[jsxRuntimeExports.jsx(CardHeader$1,{action:jsxRuntimeExports.jsx(CloseIcon,{style:{fill:tt.palette.primary.main,cursor:"pointer"},onClick:nt})}),jsxRuntimeExports.jsx(CardContent,{children:rt()}),jsxRuntimeExports.jsx(Divider$1,{color:"primary"}),jsxRuntimeExports.jsx(CardActions,{sx:{justifyContent:"flex-end"},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row-reverse",alignItems:"center",spacing:2,children:[jsxRuntimeExports.jsx(Button,{id:"onboarding-popover-ok",onClick:()=>lt(),variant:"contained",children:ut()}),et.step==="2"&&jsxRuntimeExports.jsx("div",{className:"l-l",onClick:nt,children:"Skip (1 of 2)"})]})})]})})]})]})},StyledStepContainer=styled$1("div")`
  min-width: 239px;
`;StyledStepContainer.displayName="stepContainer";const StyledStepHeader=styled$1("div")`
  text-align: left;
  color: ${et=>et.theme.palette.grey[600]};
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  text-transform: uppercase;
  margin: 16px auto 8px auto;
  padding-left: 16px;
`,StyledBubble=styled$1("div")`
  background: ${et=>et.current?et.theme.palette.primary.main:"white"};
  color: ${et=>et.current?"white":et.theme.palette.grey[600]};
  border: 2px solid ${et=>et.current?et.theme.palette.primary.light:et.theme.palette.grey[300]};
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 21px;
  margin-right: -13px;
  z-index: 2;
`,WarningBubble=styled$1("div")`
  background: ${et=>et.theme.palette.warning.dark};
  color: white;
  border: 2px solid ${et=>et.theme.palette.grey[300]};
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 21px;
  margin-right: -13px;
  z-index: 2;
`,StyledStepText=styled$1("div")`
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: black;
  min-height: 40px;
  padding: 10px 0;
  padding-left: 21px;
  border-left: ${et=>et.current?"":`2px solid ${et.theme.palette.grey[300]}`};
  border-image: ${et=>et.borderImage};
  border-image-slice: 1;
`;StyledStepText.displayName="stepText";const StyledStep=styled$1("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 16px;
  background: ${et=>et.current?"white":et.theme.palette.grey[100]};
  border-left: 3px solid ${et=>et.current?et.theme.palette.primary.main:"transparent"};
`;StyledStep.displayName="step";const OncologyStepper=et=>{const{steps:tt,showTopDivider:rt}=et,nt=useTheme$1(),lt=ut=>ut.map((dt,pt)=>{const ht=Array.isArray(dt.page)?dt.page.some(vt=>window.location.pathname.includes(vt)):window.location.pathname.includes(dt.page),mt=pt===0,xt=pt===ut.length-1,Mt=()=>mt&&xt?"linear-gradient(to bottom, transparent 50%, transparent 50%) 100% 1":mt?`linear-gradient(to bottom, transparent 50%, ${nt.palette.grey[300]} 50%) 100% 1`:xt?`linear-gradient(to bottom, ${nt.palette.grey[300]} 50%, transparent 50%) 100% 1`:"";return jsxRuntimeExports.jsxs(StyledStep,{className:ht&&"current",current:ht,"data-testid":`nav-step-${dt.idx+1}`,children:[dt.idx===-1?jsxRuntimeExports.jsx(WarningBubble,{children:"!"}):jsxRuntimeExports.jsx(StyledBubble,{current:ht,children:dt.idx+1}),jsxRuntimeExports.jsx(StyledStepText,{"data-testid":`nav-step-text-${dt.page}`,current:ht,borderImage:Mt(),children:dt.text})]},dt.idx)});return jsxRuntimeExports.jsxs("div",{"data-testid":"side-nav-stepper",children:[et==null?void 0:et.children,rt&&jsxRuntimeExports.jsx(Divider$1,{}),tt.map((ut,dt)=>jsxRuntimeExports.jsxs(StyledStepContainer,{children:[jsxRuntimeExports.jsx(StyledStepHeader,{"data-testid":`step-header-${dt}`,children:ut.header}),jsxRuntimeExports.jsx(Accordion$2,{sx:{boxShadow:"none","::before":{backgroundColor:nt.palette.grey[100]}},children:jsxRuntimeExports.jsxs(AccordionDetails,{sx:{padding:"0px"},children:[lt(ut.steps),jsxRuntimeExports.jsx(Box,{sx:{padding:"16px 0px",backgroundColor:nt.palette.grey[100]},children:jsxRuntimeExports.jsx(Divider$1,{})})]})})]},ut.key))]})},usRegoSteps=[{key:"pi",header:"Patient Info",short:"PI",steps:[{idx:0,text:"Basic details",page:"basic"},{idx:1,text:"Contact details",page:"contact"},{idx:2,text:"Address",page:"address"},{idx:3,text:"Emergency contact",page:"emergencyContact"}]},{key:"mc",header:"Referrers & Insurance",short:"MC",steps:[{idx:4,text:"Referrers",page:"referrers"},{idx:5,text:"Insurance & other benefits",page:"insurance"}]},{key:"de",header:"Demographics",short:"DE",steps:[{idx:6,text:"Demographic details",page:"demographics"},{idx:7,text:"Social geographic history",page:"socialHistory"},{idx:8,text:"Your feedback",page:"feedback"}]},{key:"su",header:"Submission",short:"SU",steps:[{idx:9,text:"Review & submit",page:"summary"}]}],createPatientSteps=[{key:"cp",header:"Create New Patient",short:"CP",steps:[{idx:0,text:"Basic details",page:"create"}]}],auRegoSteps=[{key:"pi",header:"Patient Info",short:"PI",steps:[{idx:0,text:"Information notice",page:"infonotice"},{idx:1,text:"Basic details",page:"basic"},{idx:2,text:"Contact details",page:"contact"},{idx:3,text:"Address",page:"address"},{idx:4,text:"Alternate contacts",page:"emergencyContact"}]},{key:"mc",header:"Referrers & Insurance",short:"MC",steps:[{idx:5,text:"Referrers",page:"referrers"},{idx:6,text:"Health insurance",page:"insurance"}]},{key:"de",header:"Information",short:"DE",steps:[{idx:7,text:"Demographics",page:"demographics"},{idx:8,text:"Document upload",page:"upload"}]},{key:"su",header:"Submission",short:"SU",steps:[{idx:9,text:"Review & submit",page:"summary"}]}],MiddleContainerCol$1=styled$1("div")`
  max-height: 100%;
  height: 100%;
  padding: 0px;
  flex-shrink: 0;
  flex-grow: 1;
  flex-basis: 0;

  #form-footer {
    @media all and (max-width: ${supportedSize.transition}px) {
      width: 100%;
      position: fixed;
      right: 0;
      bottom: 0;
    }

    @media all and (max-width: ${supportedSize.tablet}px) {
      padding: 9px 0;
    }
  }
`,RightContainerCol=styled$1("div")`
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  @media all and (max-width: ${supportedSize.transition}px) {
    display: none;
  }
  @media (min-width: ${supportedSize.transition}px) {
    max-width: 16.66666667%;
    display: flex;
    flex: 0 0 16.66666667%;
  }
`,DialogButton=({sx:et,children:tt,variant:rt="text",...nt})=>jsxRuntimeExports.jsx(Button,{sx:{textTransform:"uppercase",fontWeight:500,fontSize:"16px",...et},variant:rt,...nt,children:tt}),DialogLoadingButton=({sx:et,children:tt,...rt})=>jsxRuntimeExports.jsx(LoadingButton,{sx:{textTransform:"uppercase",fontWeight:500,fontSize:"16px",...et},...rt,children:tt}),StandardDialog=({title:et,open:tt,onClose:rt,children:nt,closeText:lt,onSubmit:ut,submitText:dt="Submit",onSecondarySubmit:pt,secondarySubmitText:ht="Secondary Submit",enableCloseOnBackdropClick:mt,showDividers:xt,destructiveSubmit:Mt,titleIcon:vt,submitButtonProps:Ot,...At})=>{const Rt=!ut&&!pt,zt=lt||(Rt?"Close":"Cancel"),Tt=(Ct,It)=>{It&&It==="backdropClick"&&!(Rt||mt)||rt&&rt(!1)};return jsxRuntimeExports.jsxs(Dialog,{open:tt,onClose:Tt,...At,children:[jsxRuntimeExports.jsx(DialogTitle,{id:"alert-dialog-title","data-testid":"dialog-title",children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:1,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:et}),vt]})}),xt&&jsxRuntimeExports.jsx(Divider$1,{}),jsxRuntimeExports.jsx(DialogContent,{children:nt}),xt&&jsxRuntimeExports.jsx(Divider$1,{}),jsxRuntimeExports.jsxs(DialogActions,{children:[rt&&jsxRuntimeExports.jsx(DialogButton,{"data-testid":"dialog-cancel-btn",onClick:()=>rt(!1),children:zt}),pt&&jsxRuntimeExports.jsx(DialogButton,{"data-testid":"dialog-secondary-submit-btn",onClick:pt,children:ht}),ut&&jsxRuntimeExports.jsx(DialogLoadingButton,{"data-testid":"dialog-submit-btn",onClick:ut,color:Mt?"error":"primary",variant:"text",sx:Mt?{color:"error.main"}:{},...Ot,children:dt})]})]})},mutation=gql`
  mutation archivePatient($patientId: ID!) {
    archivePatient(pk: $patientId) {
      ok
    }
  }
`;class ArchiveButton extends reactExports.Component{constructor(rt){super(rt);Nr(this,"toggleDialog",()=>{this.setState({isOpen:!this.state.isOpen})});Nr(this,"archivePatient",()=>{const{patient:rt,client:nt,history:lt,redirectPath:ut}=this.props;nt.mutate({mutation,variables:{patientId:rt.id}}).then(()=>{lt.push(ut)}).catch(()=>{lt.push(ut)})});this.state={isOpen:!1}}render(){const{patient:rt}=this.props,{isOpen:nt}=this.state;let lt=ARCHIVE.CONFIRMATION.NO_NAME;(rt.firstName||rt.lastName)&&(lt=`${ARCHIVE.CONFIRMATION.NAME_PRE}${rt.firstName} ${rt.lastName}${ARCHIVE.CONFIRMATION.NAME_POST}`);const ut=!!rt.ida;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Stack$5,{paddingLeft:1,children:jsxRuntimeExports.jsx(Button,{size:"large",color:ut?"primary":"error",onClick:()=>{this.toggleDialog()},disabled:ut,children:"Delete patient"})}),jsxRuntimeExports.jsx(StandardDialog,{open:nt,onClose:this.toggleDialog,title:ARCHIVE.MODAL.HEADER,maxWidth:"sm",submitText:"Delete patient",onSubmit:this.archivePatient,destructiveSubmit:!0,children:jsxRuntimeExports.jsx(Typography,{color:"error",children:lt})})]})}}const ArchiveButton$1=withRouter(withApollo(ArchiveButton)),LinkBehavior$1=React$4.forwardRef((et,tt)=>{const{href:rt,...nt}=et;return jsxRuntimeExports.jsx(Link$2,{ref:tt,to:rt,...nt})}),Logo$1=React$4.forwardRef((et,tt)=>jsxRuntimeExports.jsx("div",{ref:tt,children:jsxRuntimeExports.jsx(SvgHorizonWhiteLogo,{})})),DarkLogo$1=React$4.forwardRef((et,tt)=>jsxRuntimeExports.jsx("div",{ref:tt,children:jsxRuntimeExports.jsx(SvgHorizon,{})})),LogoOnly$1=React$4.forwardRef((et,tt)=>jsxRuntimeExports.jsx("div",{ref:tt,children:jsxRuntimeExports.jsx(SvgGenesisCareLogo,{})})),favicon$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAh9QTFRFAAAAd8effsqjR7qCpti/SbqDpNe+Eapi0urd1PHfa8SYecigecigecigecigecigecigecigecighc2oR7qCRrqCS7uFcMWaecigeciggsumo9e9pti/pti/R7qCR7qCR7qCR7qCpti/pti/pti/pti/R7qCR7qCR7qCpti/pti/pti/R7qCR7qCR7qCpti/pti/pti/SbuDSLqCpdi/pNe+C6heI69sxeXU2e3iEapiEapi0urd0urdEapiEapi0urd0urdEapiEapi0urdEapiEapi0urd0urdEapiEapi0urd0urdEapi0urdEapiEapiEapiEKphGKxmRrqCqNrAzeja0+re0urd0urd0urdEapiBaNUH6Za3fDl4vHo0urdecigR7qCZMKTesigeMigj9Cvpti/RrqCVL6KdseefMminNS4p9i/SLqDasSXic6rpdi+W8COltK0p9jAPLd7TLuFcMWbgsumota8sNzGGKxmLLJyQrh/SLqCY8KTkNCwpdi/q9rCveHOzejaEapiHa5pNLR3RbqBU72JdceefcmjnNW4qNnAt9/KyebX0urdEKpiE6tjI69tO7d7acSWis6ssdzGxOTT0enc0+rdF6xmK7JyQbh/esihl9O1q9rDveLPzujaHK1pM7R2RbmBTLyFb8Wag8ynqNnBuN/LyufXE6pjIq9sObZ6YcGRktGxs93IxeXU0erc////Z4NpDgAAAGF0Uk5TAAAAAAAAAAAAAAMfUH6TlnxOHQIOWaPa+fjXoFQMBVK69/W1SwQYju/tiRUntv79riEjvrQeEKqgDnn8+mw14NwvAZSGL93aK4T+/G25p5aura2tra2tra2vkgQEBAQEBMoZY2QAAAABYktHRLRECWrdAAAACXBIWXMAABYlAAAWJQFJUiTwAAABTElEQVQ4y2NgGAWogJGLm4eXj5+fT0BQSJgJQ5pZRFRMXCIRDCSlpGVkWVCl5eQVFJOSUyAKUtPSlZRVVJGUMKupayQlZWRmQRRk5+Smp2tqacNVMOvo6iUBQV4+2IjUgsJ0INA3MISqYDUyTgKDjCKwASnFJelgYGLKBpJnNzMvhShIKisHGVFRCZFPr7Kw5ADKs1tZV9fU1oFV1IMUNOSCZBubmltsbDk4GNjt7FtbW9vaO4BKMjq7EhO7e4AKGnv7+idMmODgyMHg5AyUb504afIUkDOnpqROAzlx+oyZs4AKJrhwMri6tYLBxNlz5tZlFKXOm5/buGDhIrD0hAnuHgyeXq0wsHjJ0mXLV1SuXLV6Agx4+zD4wuVbJ65Zu279ho2bNs+CK5jgx+AfEIgAQcEhoWHhEQgQGcUQjQJiYuPiE1DAQCeyIQMAkXWf8pWKV60AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMTAtMThUMDA6MzM6MTMrMDA6MDDKV7VEAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTEwLTE4VDAwOjMzOjEzKzAwOjAwuwoN+AAAAEZ0RVh0c29mdHdhcmUASW1hZ2VNYWdpY2sgNi43LjgtOSAyMDE0LTA1LTEyIFExNiBodHRwOi8vd3d3LmltYWdlbWFnaWNrLm9yZ9yG7QAAAAAYdEVYdFRodW1iOjpEb2N1bWVudDo6UGFnZXMAMaf/uy8AAAAYdEVYdFRodW1iOjpJbWFnZTo6aGVpZ2h0ADE5Mg8AcoUAAAAXdEVYdFRodW1iOjpJbWFnZTo6V2lkdGgAMTky06whCAAAABl0RVh0VGh1bWI6Ok1pbWV0eXBlAGltYWdlL3BuZz+yVk4AAAAXdEVYdFRodW1iOjpNVGltZQAxNTcxMzU4NzkzUXRoTAAAAA90RVh0VGh1bWI6OlNpemUAMEJClKI+7AAAAFZ0RVh0VGh1bWI6OlVSSQBmaWxlOi8vL21udGxvZy9mYXZpY29ucy8yMDE5LTEwLTE4LzRkZjQ5YzEyNDYzZDQwOThiNzU1NzBlZDQwNGJhYjY0Lmljby5wbmdH2ay1AAAAAElFTkSuQmCC",{palette:palette$1}=createTheme({palette:{text:{primary:"#2E2E2E",secondary:"#2E2E2E99",disabled:"#2E2E2E80"},primary:{main:"#008850",dark:"#006D40",light:"#33A073",contrastText:"#FFFFFF"},secondary:{main:"#585858",dark:"#3A3A3A",light:"#0088501F",contrastText:"#FFFFFF"},action:{active:"#008850",activatedOpacity:1,hover:"#0088500A",hoverOpacity:.04,selected:"#e0efe9",selectedOpacity:.12,focus:"#00885029",focusOpacity:.16,disabledBackground:"#0000000F",disabled:"#00000061",disabledOpacity:.38},error:{main:"#D42C2C",dark:"#B81718",light:"#F09999",contrastText:"#FFFFFF"},warning:{main:"#E57C00",dark:"#D55200",light:"#fdf5db",contrastText:"#2E2E2E"},info:{main:"#2476CE",dark:"#17489C",light:"#8FC2EF",contrastText:"#FFFFFF"},success:{main:"#008850",dark:"#006D40",light:"#33A073",contrastText:"#FFFFFF"},background:{default:"#FFFFFF",secondary:"#F5FAF8",paper:"#FFFFFF"},statusColors:{simulation:"#fbbc05",prescription:"#00a963",plan:"#00a3e1",cpot:"#e57c00"},tag:{main:"#c86ba8"}}}),theme$1=createTheme({custom:{logo:jsxRuntimeExports.jsx(Logo$1,{}),darkLogo:jsxRuntimeExports.jsx(DarkLogo$1,{}),logoOnly:jsxRuntimeExports.jsx(LogoOnly$1,{}),favicon:favicon$1,title:"Horizon",support:"GenesisCare support"},palette:palette$1,typography:{allVariants:{color:palette$1.text.primary},fontFamily:"Poppins, Arial",h1:{fontSize:96,fontWeight:300},h2:{fontSize:60,fontWeight:300},h3:{fontSize:48,fontWeight:400},h4:{fontSize:34,fontWeight:400},h5:{fontSize:24,fontWeight:400},h6:{fontSize:20,fontWeight:500},subtitle1:{fontSize:16,fontWeight:500},subtitle2:{fontSize:14,fontWeight:500},body1:{fontSize:16,fontWeight:400},body2:{fontSize:14,fontWeight:400},caption:{fontSize:12,fontWeight:400},overline:{fontSize:12,fontWeight:400}},components:{MuiLink:{defaultProps:{component:LinkBehavior$1},styleOverrides:{root:{":focus-visible":{outlineColor:palette$1.grey[300]}}}},MuiDialogContentText:{styleOverrides:{root:{color:"black"}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:{root:{color:palette$1.text.primary,textTransform:"capitalize",fontWeight:500,fontSize:"16px",borderRadius:"32px","&.Mui-disabled":{color:palette$1.text.disabled}},sizeLarge:{minWidth:"130px"},contained:{color:palette$1.primary.contrastText,backgroundColor:palette$1.primary.main},outlined:{backgroundColor:palette$1.primary.contrastText}}},MuiFormHelperText:{styleOverrides:{root:{"&.Mui-error":{color:palette$1.error.dark}}}},MuiFab:{styleOverrides:{root:{":hover":{color:"white"},":is(.MuiFab-colorInherit, .MuiFab-default):hover":{color:"inherit"}}}},MuiAvatar:{styleOverrides:{root:{backgroundColor:palette$1.grey[300],color:palette$1.primary.dark}}},MuiBadge:{styleOverrides:{badge:{':not([class*="MuiBadge-color"])':{backgroundColor:palette$1.error.main,color:palette$1.error.contrastText}}}},MuiChip:{styleOverrides:{filled:{"&.MuiChip-clickable:hover":{color:"white"},"&.MuiChip-colorDefault:hover":{color:"unset"}},root:{".MuiChip-avatar":{color:palette$1.text.primary},".MuiChip-avatarColorPrimary":{color:palette$1.primary.contrastText,backgroundColor:palette$1.primary.light},".MuiChip-avatarColorSecondary":{backgroundColor:palette$1.grey[100]},".MuiChip-avatarColorInfo":{backgroundColor:palette$1.info.light},".MuiChip-avatarColorWarning":{backgroundColor:palette$1.warning.light},".MuiChip-avatarColorError":{backgroundColor:palette$1.error.light},".MuiChip-avatarColorDefault":{backgroundColor:palette$1.grey[300]},".MuiChip-deleteIconColorDefault":{color:"#430098",opacity:.26},"&.MuiChip-outlinedPrimary":{color:palette$1.primary.dark},"&.MuiChip-outlinedSecondary":{color:palette$1.grey[600]},"&.MuiChip-outlinedInfo":{color:palette$1.info.dark},"&.MuiChip-outlinedWarning":{color:palette$1.warning.dark},"&.MuiChip-outlinedError":{color:palette$1.error.dark},"&.MuiChip-outlinedDefault":{color:palette$1.primary.dark,borderColor:palette$1.action.active}}}},MuiList:{styleOverrides:{root:{".MuiListItemButton-root.Mui-selected":{borderLeft:`4px solid ${palette$1.primary.main}`},".MuiListItem-root, .MuiListItemButton-root":{borderRadius:"4px"},".MuiListItem-gutters, .MuiListItemButton-gutters":{paddingLeft:"12px",paddingRight:0},".Mui-selected>.MuiTouchRipple-root":{borderRadius:"0px 4px 4px 0px"}}}},MuiAlert:{styleOverrides:{root:{"&.MuiAlert-filled.MuiAlert-closeIcon":{color:palette$1.text.primary}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiCircularProgress:{defaultProps:{color:"secondary"}},MuiSnackbarContent:{styleOverrides:{action:{color:palette$1.grey[100]}}},MuiPagination:{styleOverrides:{root:{".MuiPaginationItem-outlinedSecondary":{borderColor:"#43009839","&.Mui-selected":{color:palette$1.grey[600]}}}}},MuiStepLabel:{styleOverrides:{label:{"&.Mui-error":{color:palette$1.error.dark}}}},MuiStepIcon:{styleOverrides:{root:{minWidth:"24px"}}},MuiTab:{styleOverrides:{textColorSecondary:{"&.Mui-selected":{color:palette$1.grey[600]},"&.Mui-selected svg":{color:palette$1.grey[300]}}}},MuiTabs:{styleOverrides:{indicator:({ownerState:{indicatorColor:et}})=>({backgroundColor:et==="secondary"?palette$1.grey[600]:palette$1.primary.main})}},MuiIconButton:{styleOverrides:{root:{':not([class*="MuiIconButton-color"])':{color:palette$1.primary.main}}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:palette$1.common.black,color:palette$1.common.white,fontSize:"0.9rem"},arrow:{color:palette$1.common.black}}},MuiPopper:{styleOverrides:{root:{"&.MuiAutocomplete-popper>.MuiAutocomplete-paper":{".Mui-selected":{backgroundColor:palette$1.action.focus,":hover":{backgroundColor:palette$1.action.focus}}}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputBase-root":{paddingLeft:"8px",input:{paddingLeft:0}}}}},MuiOutlinedInput:{styleOverrides:{root:{".MuiOutlinedInput-notchedOutline":{borderColor:palette$1.grey[300]},"&.Mui-disabled":{".MuiOutlinedInput-notchedOutline":{borderColor:palette$1.grey[300]}}}}},MuiInputBase:{styleOverrides:{root:{paddingLeft:"8px"}}},MuiSelect:{styleOverrides:{select:{paddingLeft:"0"}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:palette$1.grey[100]}}},MuiTableCell:{styleOverrides:{root:{fontSize:"16px"}}}}}),Logo=React$4.forwardRef((et,tt)=>jsxRuntimeExports.jsx("div",{ref:tt,children:jsxRuntimeExports.jsx(SvgLumonusLogo,{})})),DarkLogo=React$4.forwardRef((et,tt)=>jsxRuntimeExports.jsx("div",{ref:tt,children:jsxRuntimeExports.jsx(SvgLumonusLogoDarkVertical,{})})),LogoOnly=React$4.forwardRef((et,tt)=>jsxRuntimeExports.jsx("div",{ref:tt,children:jsxRuntimeExports.jsx(SvgLumonusLogoOnly,{})})),favicon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAACBNJREFUWEelV2twVdUZXWvvcx95EEl4haAJUOuIVTs4orXqKL7q+BgQzK0KhEZbIjqiZUqLdrBXq9MfYmkdrcYCAYESgmAVpVrb0WlrH05bLWgUiyCCgDRAHiS5uffsvZoTBSMNocL5e/Zjfd+3vm+tTRzlk8TVC5BEcfsJQLzU04wleAaAoYZMRNu9962gNhPB26HwXuCwp3EHWtNphkc7n/0tWL9eiQNNKPPOnQuDiQTPhpRHmlCQI+ggGRGGgAFoQXxM8WUBzwbAexu2oqU/IH0CSKdlThmOEpuH8yhVSbqQRCihBdQHRnzL0WyTRxvlEjQsAVVB4QzQDAdUAHI/xBesxerdLXjnttvQTlKHB/w/AGprFRuSxKiQvlIe3yaRBLRNni9K7jmXiG2NNSOHLrjdAfyAAWA2C1MawLbGUZgIcbroJwE4n8RggVtIX9spu76qCvsOB/E5ANHlRUmcHsDfKeAqEP/xwgtBzqxMOGzqLEZXKkV35LKJr7wC27oFee0Mx1lrphC8HFCHd5rfZe0zh4M4BKChQdZncIoVfiD5awW9B+Ix5tlfNzaiI52mPxqhev9PpxV8+cTMiFgsPgvkZEgZSA+1y66prmbzwbU9AHqYvhrD0OFn0vBWJ7+Zwk87ZF+ormbmi1zce23PuXUYTOvvEFkFqRPW3IM4Xkyl2Bmt7QFQW6v8opi71lreDzL0LpfuRHzd8Vz+GRCxYTEGw/q5Em6gYWPWcfaUbXibaXpGKFctxWhD9zOJ4wC/jO3BfanbeeBYIz98X3RH/RJUGGo+ofMFPMwu88tUDVtYW7szf2By6CSKD4lqDF34nZuqE1v7apnjAZROK35qhZtAwwcI7TWwt06uwltsqFOp6B4FeA6ABdxnnkjN/qQ+x/pFBDx5BEoDmxtKw0Jvgg4r7PrkPD0C6Dwv/Njkm2V8eqnO9PIroz+GZprPW70hlUr102r9w1q5SGVBgHFe4cWkHdPdSUPg/X6BGyhtgDQK1nxL0GsuZr/L+iVhNcEHQL0ZBnbqlCncf6yRr1ioisD6KhBTu7N5AomdEttAlRAYBiAa4W8Q5lxBe0JvJrC+LrfAGDvJe7fKdAT3Hyv51ixURRj4aHJOh9AG4jl5/RnUPoll1nKsxCshnQYiAXBXGLoU6+vCFSS/Lrmft2SbnqypKev4ohmoq1OyELhV9LMBtEp4NGbM6knTuffTurNhIYppcYW3mkvpKwD2e69ZXLUkfJrgWO/1k07a5V+09yPCjRmNS7v7+UcARtBrQS7bvvymmqKmwwNpaFCeOvxdIGZTMJRJHzeAtfUak8v4e0l8A0S9Dc38yTdzS19ZjFT2tAqcCaNVgAZ5hx9yVV24CIaXQHi8ucs8WlPD/7sEz9RpYGgxU/KzIG0U7APNXfhLTQ1zRyrjmmUa7rx/mcAQ5zWT9Ytz9xlrqgWsS4Zm7oRb2HZwc2Vlg504sbIols1VeN+j8w4m2G+ED3Y048CJg3A14e/pnmwDQD2Y+bhpddWc0vb+ONSwVCMIvSSo2NFNYMMSXQ36WkhbrLXfnDwNuwFqxQoVx0Jc4eUuN0C5B4oNTTQf2iF9KIMdhM6meI4nFtJ1LkhVF+7u7/JX0gqaRuIi0T8uaa/3NsU1izOjvY0vEzTMQ3e1ZOxLQ5IoykXCQT9DwJcg7CP4rug9wHIDDFWPkDEG+ddBzUtND/4aAe8PQCR6JUk/R8DNJNZ0yDzIpUtbByVVcDeJG+CxyvnMw7SJy0jOJVAg+AaKrwJ2t/c5WRsrg/xNitZHSg5spVDvvVlbkMO71x6BQwcFyRotljRG0u2dsOvZ0KC4DoTjGdhfwKPZk4uMdCWgs0gsDV3XEzfenLcjim5drfI74riCdHcLrCD1PsChAAog/qt7z3PZwKyLx7GrshK+t6BFezN5mNHtoGeT3NiVy9459ZbE+z1+YOWi9jJjE/NIMxnQHgFlELYSZgby8WZjI3haOYpp3DUibgM5EsBayCyR3EjSTAU0DmAL5N8yhr8DzN+sw+btbegcnMAAJtwEQ95BoRTSnP1ZuybquE8Nyd9jxcFXz2Zg5/sociAp4R+BzEyHbEYmfhbkLyHxNQD5gp4R7ePvbsGm0aORl++zI3MKLrTU9STPEHlA3u+NPGX30GmlRwnAkwEMErWOzN1bOS35QZShQ57wscdUOCTfXQdyHg1GyaMT5CbIR3wbKKCI1Pbug5Y7Z9Zu+hAf9faJy5fvLUqGJSeF9BcYr/EwHCuglEAMQByAg/iaQjev2QWvH5wVhwBEJHnqKZQknLvOWn4fxKiIYRKaCG0U+aq8ebkwjs3X9KOYzy7SgK541zAX2uGG5voecgNRAO/Am3Rzdtdve+vN52x5bxDGcg6ECgAfEaiTzPOZpo//Pe17wzrJvh1y1OfbRyNRmMPJLsBEQdcBKpf0JmQfOeDx+1t6DbpDpvRwJxtlIg/usm4iThc5jsBegBsB/cnl3B9sUWxbezt8QRY9fR+LgxmP/MBiDIBLRV0MROAVyus33tq61s5dG/tS2j6fZlEmnn8See0xnErjbwRwFYliADkBnZCajDE7IXX1mCyoqOdJJg2MSArAAvwn5X8l2j8OKcfO8eP7fqj2+ziNpPaU4W0DTSxZLoMLLIOLBI0hUAREZfiMxAAJ+e0eeMPAvuiEDa1Z7JkxA1HJjjgh+wVwsDSSzOLFKIiHHYUmnl9IhSeRLIdY1FNHao/32mGs2+XjiZamJrTNmsWe7Bzt+y9t4DP+rjz79QAAAABJRU5ErkJggg==",LinkBehavior=React$4.forwardRef((et,tt)=>{const{href:rt,...nt}=et;return jsxRuntimeExports.jsx(Link$2,{ref:tt,to:rt,...nt})}),{palette}=createTheme({palette:{text:{primary:"#081e43",secondary:"#081e4399",disabled:"#081E4361"},primary:{main:"#081E43",dark:"#05152E",light:"#394B68",contrastText:"#FFFFFF"},secondary:{main:"#AAA1FD",dark:"#745DE5",light:"#CDC6FE",contrastText:"#081E43"},action:{active:"#AAA1FD",activatedOpacity:1,hover:"#745DE50A",hoverOpacity:.04,selected:"#edeafb",selectedOpacity:.12,focus:"#745DE529",focusOpacity:.16,disabledBackground:"#0000001F",disabled:"#00000061",disabledOpacity:.38},error:{main:"#FB6A76",dark:"#EC0031",light:"#FF969D",contrastText:"#081E43"},warning:{main:"#FFBD5B",dark:"#C55011",light:"#fdf5db",contrastText:"#081E43"},info:{main:"#65ABE8",dark:"#226BC0",light:"#EBE9FF",contrastText:"#081E43"},success:{main:"#3EC490",dark:"#007840",light:"#81D4B0",contrastText:"#081E43"},background:{default:"#FFFFFF",secondary:"#FAFAFF",paper:"#FFFFFF"},statusColors:{simulation:"#FBBC05",prescription:"#00a963",plan:"#00a3e1",cpot:"#e57c00"},tag:{main:"#c86ba8"}}}),theme=createTheme({custom:{logo:jsxRuntimeExports.jsx(Logo,{}),darkLogo:jsxRuntimeExports.jsx(DarkLogo,{}),logoOnly:jsxRuntimeExports.jsx(LogoOnly,{}),favicon,title:"Lumonus AI",support:"Lumonus support"},palette,typography:{allVariants:{color:palette.text.primary},fontFamily:"Poppins, Arial",h1:{fontSize:96,fontWeight:300},h2:{fontSize:60,fontWeight:300},h3:{fontSize:48,fontWeight:400},h4:{fontSize:34,fontWeight:400},h5:{fontSize:24,fontWeight:400},h6:{fontSize:20,fontWeight:500},subtitle1:{fontSize:16,fontWeight:500},subtitle2:{fontSize:14,fontWeight:500},body1:{fontSize:16,fontWeight:400},body2:{fontSize:14,fontWeight:400},caption:{fontSize:12,fontWeight:400},overline:{fontSize:12,fontWeight:400}},components:{MuiLink:{defaultProps:{component:LinkBehavior},styleOverrides:{root:{":focus-visible":{outlineColor:palette.grey[300]}}}},MuiDialogContentText:{styleOverrides:{root:{color:"black"}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:{root:{color:palette.text.primary,textTransform:"capitalize",fontWeight:500,fontSize:"16px",borderRadius:"32px","&.Mui-disabled":{color:palette.text.disabled}},sizeLarge:{minWidth:"130px"},contained:{color:palette.primary.contrastText,backgroundColor:palette.primary.main},outlined:{backgroundColor:palette.primary.contrastText}}},MuiFormHelperText:{styleOverrides:{root:{"&.Mui-error":{color:palette.error.dark}}}},MuiFab:{styleOverrides:{root:{":hover":{color:"white"},":is(.MuiFab-colorInherit, .MuiFab-default):hover":{color:"inherit"}}}},MuiAvatar:{styleOverrides:{root:{backgroundColor:palette.grey[300],color:palette.primary.dark}}},MuiBadge:{styleOverrides:{badge:{':not([class*="MuiBadge-color"])':{backgroundColor:palette.error.main,color:palette.error.contrastText}}}},MuiChip:{styleOverrides:{filled:{"&.MuiChip-clickable:hover":{color:"white"},"&.MuiChip-colorDefault:hover":{color:"unset"}},root:{".MuiChip-avatar":{color:palette.text.primary},".MuiChip-avatarColorPrimary":{color:palette.primary.contrastText,backgroundColor:palette.primary.light},".MuiChip-avatarColorSecondary":{backgroundColor:palette.grey[100]},".MuiChip-avatarColorInfo":{backgroundColor:palette.info.light},".MuiChip-avatarColorWarning":{backgroundColor:palette.warning.light},".MuiChip-avatarColorError":{backgroundColor:palette.error.light},".MuiChip-avatarColorDefault":{backgroundColor:palette.grey[300]},".MuiChip-deleteIconColorDefault":{color:"#430098",opacity:.26},"&.MuiChip-outlinedPrimary":{color:palette.primary.dark},"&.MuiChip-outlinedSecondary":{color:palette.grey[600]},"&.MuiChip-outlinedInfo":{color:palette.info.dark},"&.MuiChip-outlinedWarning":{color:palette.warning.dark},"&.MuiChip-outlinedError":{color:palette.error.dark},"&.MuiChip-outlinedDefault":{color:palette.primary.dark,borderColor:palette.action.active}}}},MuiList:{styleOverrides:{root:{".MuiListItemButton-root.Mui-selected":{borderLeft:`4px solid ${palette.primary.main}`},".MuiListItem-root, .MuiListItemButton-root":{borderRadius:"4px"},".MuiListItem-gutters, .MuiListItemButton-gutters":{paddingLeft:"12px",paddingRight:0},".Mui-selected>.MuiTouchRipple-root":{borderRadius:"0px 4px 4px 0px"}}}},MuiAlert:{styleOverrides:{root:{"&.MuiAlert-filled.MuiAlert-closeIcon":{color:palette.text.primary}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiCircularProgress:{defaultProps:{color:"secondary"}},MuiSnackbarContent:{styleOverrides:{action:{color:palette.grey[100]}}},MuiPagination:{styleOverrides:{root:{".MuiPaginationItem-outlinedSecondary":{borderColor:"#43009839","&.Mui-selected":{color:palette.grey[600]}}}}},MuiStepLabel:{styleOverrides:{label:{"&.Mui-error":{color:palette.error.dark}}}},MuiStepIcon:{styleOverrides:{root:{minWidth:"24px"}}},MuiTab:{styleOverrides:{textColorSecondary:{"&.Mui-selected":{color:palette.grey[600]},"&.Mui-selected svg":{color:palette.grey[300]}}}},MuiTabs:{styleOverrides:{indicator:({ownerState:{indicatorColor:et}})=>({backgroundColor:et==="secondary"?palette.grey[600]:palette.primary.main})}},MuiIconButton:{styleOverrides:{root:{':not([class*="MuiIconButton-color"])':{color:palette.primary.main}}}},MuiPopper:{styleOverrides:{root:{"&.MuiAutocomplete-popper>.MuiAutocomplete-paper":{".Mui-selected":{backgroundColor:palette.action.selected,":hover":{backgroundColor:palette.action.hover}}}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputBase-root":{paddingLeft:"8px",input:{paddingLeft:0}}}}},MuiOutlinedInput:{styleOverrides:{root:{".MuiOutlinedInput-notchedOutline":{borderColor:palette.grey[300]},"&.Mui-disabled":{".MuiOutlinedInput-notchedOutline":{borderColor:palette.grey[300]}}}}},MuiInputBase:{styleOverrides:{root:{paddingLeft:"8px"}}},MuiSelect:{styleOverrides:{select:{paddingLeft:"0"}}},MuiTableCell:{styleOverrides:{root:{fontSize:"16px"}}}}}),GET_USER_QUERY$2=gql`
  {
    user {
      id
      email
      firstName
      lastName
      isPso
      isRo
      isSuperuser
      isShowcaseUser
    }
  }
`,roleRoutes=[{path:"/search",text:"Patient Search",roles:["PSO","superUser"]},{path:"/appointments",text:"Appointments",roles:["PSO","superUser"]},{path:"/radiation",text:"RO Portal",roles:["ROUser"]}];class UKNavBar extends reactExports.Component{constructor(rt){super(rt);Nr(this,"toggle",()=>{this.setState({isOpen:!this.state.isOpen})});Nr(this,"renderDefaultHeader",rt=>{const nt=rt?"Error":"Loading";return jsxRuntimeExports.jsxs("div",{id:"navbar-container",children:[jsxRuntimeExports.jsx(HorizonLogoNavigator,{linkToSearch:!1}),jsxRuntimeExports.jsx("div",{children:nt})]})});this.state={isOpen:!1,roles:{PSO:["^\\/appointments$","^\\/search$","^\\/registration\\/[0-9]+","^\\/error$"],ROUser:["^\\/radiation$"]}}}render(){const rt=jsxRuntimeExports.jsxs("div",{id:"navbar-container",children:[jsxRuntimeExports.jsx(HorizonLogoNavigator,{linkToSearch:!1}),jsxRuntimeExports.jsx(Redirect,{to:"/error"})]});return jsxRuntimeExports.jsx(Query,{query:GET_USER_QUERY$2,fetchPolicy:"network-only",children:({loading:nt,error:lt,data:ut})=>{const{setError:dt}=useErrorModalContext();if(reactExports.useEffect(()=>{lt&&(this.renderDefaultHeader(!0),dt())},[lt]),nt)return this.renderDefaultHeader(!1);if(!ut)return rt;const{isPso:pt,isSuperuser:ht,isRo:mt,isShowcaseUser:xt}=ut==null?void 0:ut.user,Mt=[];if(ht&&Mt.push("superUser"),pt&&Mt.push("PSO"),(mt||xt)&&Mt.push("ROUser"),Mt.length===0)return rt;const vt=this.props.location.pathname;if(Mt.indexOf("superUser")===-1){let At=!0;const Rt=[];for(const zt in Mt){const Tt=Mt[zt],Ct=this.state.roles[Tt];for(const It in Ct){const Dt=Ct[It];vt.match(Dt)&&(Rt.push(vt),At=!0)}}if(At&&(vt==="/"||Rt.length===0)){if(Mt.length===1){if(mt||xt)return jsxRuntimeExports.jsx(Redirect,{to:"/radiation"});if(pt)return jsxRuntimeExports.jsx(Redirect,{to:"/search"})}return jsxRuntimeExports.jsx(Redirect,{to:"/app-selector"})}if(!At)return rt}const Ot=jsxRuntimeExports.jsx(Box,{onClick:this.toggle,sx:{textAlign:"center"},children:jsxRuntimeExports.jsxs(List$2,{children:[Mt.length>1&&jsxRuntimeExports.jsx(ListItem,{children:jsxRuntimeExports.jsx(NavLink,{to:"/app-selector",className:"mb-2",children:jsxRuntimeExports.jsx(AppsIcon,{htmlColor:theme$1.palette.grey[600]})})}),Mt.map((At,Rt)=>roleRoutes.map((zt,Tt)=>{if(zt.roles.indexOf(At)>-1)return jsxRuntimeExports.jsx(ListItem,{children:jsxRuntimeExports.jsx(NavLink,{to:zt.path,children:zt.text})},`roles-${Rt}-route-${Tt}`)}))]})});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AppBar,{position:"static",children:jsxRuntimeExports.jsx(Toolbar,{disableGutters:!0,children:jsxRuntimeExports.jsxs(Stack$6,{direction:"row",spacing:2,alignItems:"flex-end",children:[jsxRuntimeExports.jsx(HorizonLogoNavigator,{linkToSearch:pt}),(pt||ht)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconButton,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:this.toggle,sx:{mr:2,display:{sm:"none"}},children:jsxRuntimeExports.jsx(MenuIcon,{})}),jsxRuntimeExports.jsxs(Box,{sx:{flexGrow:1,display:{xs:"none",sm:"flex"},gap:"24px"},children:[Mt.length>1&&jsxRuntimeExports.jsx(NavLink,{to:"/app-selector",className:"mb-2",children:jsxRuntimeExports.jsx(AppsIcon,{htmlColor:theme$1.palette.grey[600]})}),Mt.map((At,Rt)=>roleRoutes.map((zt,Tt)=>{if(zt.roles.indexOf(At)>-1)return jsxRuntimeExports.jsx(Box,{sx:{"& a":{color:"white",fontSize:"18px"}},children:jsxRuntimeExports.jsx(NavLink,{to:zt.path,children:zt.text})},`roles-${Rt}-route-${Tt}`)}))]})]})]})})}),jsxRuntimeExports.jsx("nav",{children:jsxRuntimeExports.jsx(Drawer,{variant:"temporary",open:this.state.isOpen,onClose:this.toggle,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:"200px"}},children:Ot})})]})}})}}const routedComponent$w=withRouter(UKNavBar),SideNavContainer=et=>{const tt="side-nav-container",{children:rt,className:nt,...lt}=et;return jsxRuntimeExports.jsx("div",{id:tt,className:classNames$1(nt),...lt,children:rt})},isFieldVisible=et=>!!(et&&et.isShown),setYesNo=et=>et==="true"?"yes":et==="false"?"no":"",sortIntegerArrayToStrings=et=>[...et].sort((rt,nt)=>parseFloat(rt)-parseFloat(nt)).map(String),alphabeticalOrder=(et,tt)=>{const rt=[],nt=[];et.forEach(dt=>{isNaN(parseFloat(dt))?nt.push(dt):rt.push(dt)});const lt=sortIntegerArrayToStrings(rt),ut=[...nt].sort((dt,pt)=>tt&&dt.hasOwnProperty(tt)&&pt.hasOwnProperty(tt)?dt[tt].localeCompare(pt[tt]):dt.toString().localeCompare(pt));return lt.concat(ut)},getSiteName=et=>{let tt=et.treatmentSite.treatmentSite;if(et.treatmentSite.treatmentSite.toLowerCase().includes("specify")){const rt=et.sitevaluesSet.filter(nt=>nt.field.name==="Location");rt[0]&&(tt=`${tt} (${JSON.parse(rt[0].value)})`)}return tt},getTreatmentSiteWithLocation=et=>et.treatmentSite?CleanSpecifyFromSiteName(isSpecifySite(et.treatmentSite)?`${et.treatmentSite} (${et.location})`:et.treatmentSite):"",getTreatmentSiteHeader=et=>et.treatmentSite?getTreatmentSiteWithLocation(et)+` (${et.laterality})`:"",extractValueFromSite=(et,tt)=>{const rt=et.sitevaluesSet.filter(nt=>nt.field.name.toLowerCase()===tt);return rt[0]?JSON.parse(rt[0].value):""},cleanDoseValue=et=>{if(typeof et=="string"){const tt=parseFloat(et);return!isNaN(tt)&&tt%1===0?tt.toString().replace(/\.0$/,""):et.toString()}else if(typeof et=="number")return et.toString();return et},getSiteRepresentation=et=>{const tt=CleanSpecifyFromSiteName(getSiteName(et)),rt=extractValueFromSite(et,"technique"),nt=extractValueFromSite(et,"dose"),lt=extractValueFromSite(et,"fractions"),ut=typeof nt=="string"?cleanDoseValue(nt):nt==null?void 0:nt.map(cleanDoseValue),dt=lt?ut+"/"+lt:ut;return[tt,rt,dt].filter(Boolean).join(" ")},templatesWithValues=et=>et.filter(tt=>!!tt.siteSet[0]),CleanSpecifyFromSiteName=et=>{const tt=/\w+\s-\s(Specify\s\((.*)\))/,rt=et.match(tt);if(rt===null)return et;const nt=rt[1],lt=rt[2];return et.replace(nt,lt)},ScrollToTop=et=>{const tt=et.getElementsByClassName("page-header");tt&&tt.length>=1&&tt[0].scrollIntoView({behavior:"smooth",block:"center",inline:"start"})},redirectCareplanPath=(et,tt)=>{const{id:rt,latestPageUrl:nt,careplanStatus:lt,simulationModification:ut,prescriptionModification:dt,diagnosisModification:pt}=et,ht={SIMULATION:"simulation",PLAN_AIM:"prescription",PRESCRIPTION:"submission",PRESCRIPTION_DIRECTIVE:"prescription"};return lt===CAREPLAN_STATUS$2.draft||ut||dt||pt||lt===CAREPLAN_STATUS$2.cpot?nt:`/radiation/patient/${tt}/careplan/${rt}/${ht[lt]}`},removeUnicodeQuotes=et=>et==null?void 0:et.replace(/[\u201c\u201d]/g,'"'),CAREPLAN_STATUS$2={planAim:"PLAN_AIM",prescriptionDirective:"PRESCRIPTION_DIRECTIVE",prescription:"PRESCRIPTION",simulation:"SIMULATION",draft:"DRAFT",deleted:"DELETED",cpot:"CPOT",voided:"VOIDED"};var CONDITIONAL_FIELDS=(et=>(et.ABDOMEN_COMPRESSION="abdomenCompression",et.BLADDER="bladder",et.BOLUS="bolus",et.BOLUS_LOCATION="treatmentBolusLocation",et.BOLUS_THICKNESS="treatmentBolusThickness",et.BOLUS_THICKNESS_CUSTOM="treatmentBolusThicknessCustom",et.BOLUS_FREQUENCY="treatmentBolusFrequency",et.BOWEL_PREP="bowelPrep",et.BREATH_HOLD="breathHold",et.DIBH="dibh",et.FOUR_DCT="fourDct",et.GATING="gating",et.GOLD_SEEDS="goldSeeds",et.MASK="mask",et.MOUTH_PIECE="mouthpiece",et.SPACE_OAR="spacerGel",et.STOMACH="stomach",et.TONGUE_POSITION="tonguePosition",et.TREATMENT_BREAK="treatmentBreak",et.TREATMENT_BREAK_DURATION="treatmentBreakDuration",et.TREATMENT_BREAK_FRACTION="treatmentBreakFraction",et.VAGINAL_TAMPON="vaginalTampon",et))(CONDITIONAL_FIELDS||{});const CONDITIONAL_FIELD_MAP={bolus:"Bolus",bolusLocation:"Bolus_Location",bolusThickness:"Bolus_Thickness",bolusThicknessCustom:"Bolus_Thickness_Custom",bolusFrequency:"Bolus_Frequency",treatmentBreak:"Treatment_Break",treatmentBreakDuration:"Treatment_Break_Duration",treatmentBreakFraction:"Treatment_Break_Fraction",bladder:"Bladder",bowelPrep:"Bowel_Prep",spacerGel:"Spacer_Gel",goldSeeds:"Gold_Seeds",stomach:"Stomach",abdomenCompression:"Abdomen_Compression",tonguePosition:"Tongue_Position",mask:"Mask",mouthpiece:"Mouthpiece",gating:"Gating",vaginalTampon:"Vaginal_Tampon",fourDct:"Four_DCT",breathHold:"Breath_Hold",dibh:"DIBH"},mapConditionalFields=(et,tt)=>tt.map(rt=>et[rt]),MANUAL_SITE_TUMOUR_STREAM_MAP_V2=(()=>{const{ABDOMEN_COMPRESSION:et,BLADDER:tt,BOLUS:rt,BOLUS_FREQUENCY:nt,BOLUS_LOCATION:lt,BOLUS_THICKNESS:ut,BOLUS_THICKNESS_CUSTOM:dt,BOWEL_PREP:pt,BREATH_HOLD:ht,FOUR_DCT:mt,GATING:xt,GOLD_SEEDS:Mt,MASK:vt,MOUTH_PIECE:Ot,SPACE_OAR:At,STOMACH:Rt,TONGUE_POSITION:zt,TREATMENT_BREAK:Tt,TREATMENT_BREAK_DURATION:Ct,TREATMENT_BREAK_FRACTION:It,VAGINAL_TAMPON:Dt}=CONDITIONAL_FIELDS,kt=[rt,nt,lt,ut,dt],qt=[Tt,Ct,It];return{"GI, Colo-rectal + Abdo":[...kt,et,tt,pt,mt,Rt],Breast:[...kt,ht,mt],Skin:[...kt,...qt],"H&N":[...kt,vt,zt,Ot],Miscellaneous:[...kt,vt],Gynae:[...kt,tt,pt,Dt],Metastasis:[...kt,mt,xt,vt],"Sarcoma - Soft Tissue":[...kt],Benign:[...kt],Haematological:[...kt,vt],Brain:[vt],Urogenital:[tt,pt,Mt,At],Lung:[xt,ht,mt],"Skin - Melanoma":[],General:[]}})(),MANUAL_SITE_TUMOUR_STREAM_MAP_V1=(()=>{const{ABDOMEN_COMPRESSION:et,BLADDER:tt,BOLUS:rt,BOLUS_FREQUENCY:nt,BOLUS_LOCATION:lt,BOLUS_THICKNESS:ut,BOLUS_THICKNESS_CUSTOM:dt,BOWEL_PREP:pt,DIBH:ht,FOUR_DCT:mt,GATING:xt,GOLD_SEEDS:Mt,MASK:vt,MOUTH_PIECE:Ot,SPACE_OAR:At,STOMACH:Rt,TONGUE_POSITION:zt,TREATMENT_BREAK:Tt,TREATMENT_BREAK_DURATION:Ct,TREATMENT_BREAK_FRACTION:It,VAGINAL_TAMPON:Dt}=CONDITIONAL_FIELDS,kt=[rt,nt,lt,ut,dt],qt=[Tt,Ct,It];return{"GI, Colo-rectal + Abdo":[...kt,et,tt,pt,mt,Rt],Breast:[...kt,ht,mt],Skin:[...kt,...qt],"H&N":[...kt,vt,zt,Ot],Miscellaneous:[...kt,vt],Gynae:[...kt,tt,pt,Dt],Metastasis:[...kt,mt,xt,vt],"Sarcoma - Soft Tissue":[...kt],Benign:[...kt],Haematological:[...kt,vt],Brain:[vt],Urogenital:[tt,pt,Mt,At],Lung:[xt,ht,mt],"Skin - Melanoma":[],General:[]}})(),getManualSiteTumourStreamMap=et=>et>=4?MANUAL_SITE_TUMOUR_STREAM_MAP_V2:MANUAL_SITE_TUMOUR_STREAM_MAP_V1,ManualSiteAccordion=styled$1(Accordion$1)`
  margin-bottom: 42px;
  max-width: 648px;

  .bolus-heading-style:first-child {
    margin-top: 0;
  }
`,isSpecifySite=et=>et&&(["Skin - H&N","Skin - Upper Limb","Skin - Lower Limb","Skin - Torso","Skin - Face","Skin - Sub-total Scalp","Skin - Sub-total Nose"].includes(et)||et.toLowerCase().includes("specify")),logMissingDiagnosisCode=(et,tt,rt)=>{tt&&tt.diagnosis&&!tt.diagnosis.diagnosisCode&&et.error(`Missing Diagnosis Code from ${rt} Page`,JSON.stringify(tt))},StyledTitle=styled$1("span")`
  font-size: ${getRemSize(14)};
  color: ${et=>et.theme.palette.info.main};
  font-weight: bold;
  padding-left: 12px;
`,StyledArrow=styled$1(SvgArrowBackward)`
  color: ${et=>et.theme.palette.info.main};
  path {
    fill: ${et=>et.theme.palette.info.main};
    fill-opacity: 1;
  }
  height: 20px;
  width: 20px;
`,generateCareplanName=(et,tt)=>[...et].sort((lt,ut)=>parseFloat(lt.orderRanking)-parseFloat(ut.orderRanking)).map(lt=>getSiteGroupRepresentation(lt)).join(tt??", "),getCareplanStatusColor=et=>{const tt=useTheme$1();switch(et){case CAREPLAN_STATUS$2.planAim:return tt.palette.statusColors.plan;case CAREPLAN_STATUS$2.prescriptionDirective:return tt.palette.statusColors.plan;case CAREPLAN_STATUS$2.prescription:return tt.palette.statusColors.prescription;case CAREPLAN_STATUS$2.simulation:return tt.palette.statusColors.simulation;case CAREPLAN_STATUS$2.cpot:return tt.palette.statusColors.cpot;case CAREPLAN_STATUS$2.voided:return tt.palette.error.main;default:return tt.palette.grey[600]}},getSiteGroupRepresentation=et=>{const tt=et.siteSet.map(nt=>getSiteRepresentation(nt)).filter(Boolean),rt=et.siteSet.length-tt.length===1?"site":"sites";return et.siteSet.length-tt.length!==0?tt.join(", ")+` + ${et.siteSet.length-tt.length} ${rt}`:tt.join(", ")},StyledLink$9=styled(Link$2)`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 16px 16px 16px;
  text-decoration: none;
  height: 63px;
  transition: border-color 0.15s ease-in-out;

  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
`,NurseSidePatientNav=({patientId:et,createManagementPlan:tt,createReferralExistingService:rt,disableCreateButton:nt,showButtons:lt=!1})=>{const ut=useTheme$1(),dt=()=>{const mt=generatePath("/search");return jsxRuntimeExports.jsxs(StyledLink$9,{to:mt,"data-test-id":"back-to-search-button",children:[jsxRuntimeExports.jsx(StyledArrow,{}),jsxRuntimeExports.jsx(StyledTitle,{children:"Back to dashboard"})]})},pt=()=>{const mt=generatePath("/patient/:patientId/management",{patientId:et});return jsxRuntimeExports.jsxs(StyledLink$9,{to:mt,"data-test-id":"back-to-management-button",children:[jsxRuntimeExports.jsx(StyledArrow,{}),jsxRuntimeExports.jsx(StyledTitle,{children:"Management plans"})]})},ht=mt=>{const{linkTo:xt,label:Mt,id:vt,Icon:Ot}=mt.option,Rt=useLocation().pathname.split("/"),zt=Rt[Rt.length-1]===vt,Tt=generatePath(xt,{patientId:et}),Ct=zt?"active":"",It=zt?ut.palette.primary.contrastText:ut.palette.text.primary;return jsxRuntimeExports.jsx("div",{className:`ro-side-patient-nav-item-row ${Ct}`,style:{backgroundColor:zt?ut.palette.primary.main:"transparent"},children:jsxRuntimeExports.jsxs(Link$2,{to:Tt,className:"ro-side-patient-nav-item",style:{gap:"8px"},children:[jsxRuntimeExports.jsx(Ot,{htmlColor:It}),jsxRuntimeExports.jsx(Typography,{"data-testid":"side-nav-title",variant:"subtitle1",color:It,children:Mt})]})})};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[lt?jsxRuntimeExports.jsx(dt,{}):jsxRuntimeExports.jsx(pt,{}),jsxRuntimeExports.jsx(Stack$5,{children:lt&&jsxRuntimeExports.jsxs(Stack$5,{alignItems:"center",spacing:2,children:[jsxRuntimeExports.jsx(Stack$5,{className:"ro-side-patient-nav pso",paddingBottom:1,children:jsxRuntimeExports.jsx(ht,{option:{label:"Management Plan",linkTo:"/patient/:patientId/management",id:"management",Icon:BallotOutlinedIcon}},"management")}),jsxRuntimeExports.jsx(Button,{sx:{width:.9},id:"mx-create-plan-button","data-testid":"mx-create-plan-button",disabled:nt,startIcon:jsxRuntimeExports.jsx(SvgAddOutlineCircle,{}),onClick:()=>tt(),children:"Create plan"}),jsxRuntimeExports.jsx(Button,{sx:{width:.9},id:"mx-add-referral-button","data-testid":"mx-add-referral-button",startIcon:jsxRuntimeExports.jsx(SvgAddOutlineCircle,{}),onClick:()=>rt(),children:"Add referral"})]})})]})},HEADING$1="Document Upload",DRAG_AND_DROP="Drag and drop a file here or browse for a file to upload.",MAX_FILE_SIZE=104857600,DELETE_FILE="Delete",DELETE_DOCUMENT={HEADER:"Delete document",DESCRIPTION:"Once deleted this document can't be recovered."},UPLOAD_ERRORS={"file-invalid-type":"File type is not accepted","file-too-large":"File is too large (maximum supported file size is 100 MB)",other:"Upload failed. Please delete and try again"},MODAL={HEADER:"Proceed with submission",DESCRIPTION:"Please ensure details are correct before proceeding. On submission, uploaded documents will be visible in the patient's chart in MQ and Horizon",SUBMIT_BUTTON:"Submit"},CUT_OFF_POINT=1753,LEAVE_PAGE_WARNING$1="Documents have NOT been submitted. Are you sure you want to leave page without submitting?",FILE_TYPES_MIME_TO_FILE_TYPES={"image/jpg":[".jpg"],"image/jpeg":[".jpeg"],"application/pdf":[".pdf"],"image/bmp":[".bmp"],"image/png":[".png"],"image/gif":[".gif"]},GET_PATIENT_EMR=gql`
  query patient($patientId: ID!) {
    patient(id: $patientId) {
      id
      emrInstance
    }
  }
`,EMRContainer=styled$1("div")`
  display: flex;
  border: 1px ${et=>et.theme.palette.grey[300]};
  border-style: solid none;
  justify-content: flex-start;
  padding: 21px 16px 18px 20px;
  align-items: center;
  width: 100%;
`,PatientEMR=({patientId:et})=>{var lt;const{data:tt}=useQuery(GET_PATIENT_EMR,{variables:{patientId:et}}),rt=useTheme$1(),nt=reactExports.useMemo(()=>{var ut;return((ut=tt==null?void 0:tt.patient)==null?void 0:ut.emrInstance)||"-"},[(lt=tt==null?void 0:tt.patient)==null?void 0:lt.emrInstance]);return jsxRuntimeExports.jsxs(EMRContainer,{"data-testid":"emr-icon-container",children:[jsxRuntimeExports.jsx(SvgEmrOutlined,{}),jsxRuntimeExports.jsxs(Typography,{color:rt.palette.text.secondary,paddingLeft:1,variant:"subtitle1","data-testid":"emr-display-text",children:["EMR: ",nt]})]})},menuOptions$1=[{icon:jsxRuntimeExports.jsx(PollOutlinedIcon,{color:"primary"}),label:"Patient summary",linkTo:"/navigator/patient/:id/summary",id:"summary"}],StyledLink$8=styled$1(Link$2)`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 16px 16px 16px;
  text-decoration: none;
  height: 53px;
  transition: border-color 0.15s ease-in-out;
  margin-bottom: 3px;
  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
`,StyledRow$8=styled$1("div")`
  border-left: ${({$borderLeft:et})=>et};
  width: 100%;
  padding: 8px;
  background-color: ${({$backgroundColor:et})=>et};
`,StyledNavLabel=styled$1("span")`
  color: black;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
`,StyledNavLink=styled$1(Link$2)`
  display: flex;
  align-items: center;
  text-decoration: none;
`,PSOSidePatientNav=({refreshChartSummary:et})=>{const{activeFiles:tt}=reactExports.useContext(FileContext),rt=useRouteMatch(),{id:nt}=rt.params,lt=()=>{const pt=generatePath("/search");return jsxRuntimeExports.jsxs(StyledLink$8,{to:pt,"data-test-id":"back-to-search-button",children:[jsxRuntimeExports.jsx(StyledArrow,{}),jsxRuntimeExports.jsx(StyledTitle,{children:"Back to search"})]})},ut=pt=>{tt.length>0?(pt.preventDefault(),window.confirm(LEAVE_PAGE_WARNING$1)&&et()):et()},dt=pt=>{const{linkTo:ht,icon:mt,label:xt,id:Mt}=pt.option,At=useLocation().pathname.split("/").includes(Mt.toLowerCase()),Rt=generatePath(ht,{id:nt}),zt=useTheme$1(),Tt={$borderLeft:At?`5px solid ${Ct=>Ct.theme.palette.primary.main}`:"5px solid transparent",$backgroundColor:At?zt.palette.grey[300]:zt.palette.grey[100]};return jsxRuntimeExports.jsx(StyledRow$8,{...Tt,children:jsxRuntimeExports.jsxs(StyledNavLink,{to:Rt,onClick:Ct=>ut(Ct),"data-test-id":"nav-links-container",children:[mt,jsxRuntimeExports.jsx(StyledNavLabel,{children:xt})]})})};return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(PatientEMR,{patientId:nt}),jsxRuntimeExports.jsx(lt,{}),jsxRuntimeExports.jsx(Stack$5,{className:"ro-side-patient-nav pso",style:{width:"100%"},children:menuOptions$1.map(pt=>jsxRuntimeExports.jsx(dt,{option:pt},pt.label))})]})})},ROSideNav=({children:et})=>{const{state:tt}=reactExports.useContext(UserContext),rt=useTheme$1();return jsxRuntimeExports.jsx("div",{className:classNames$1("ro-side-nav",{active:tt.navShow}),children:jsxRuntimeExports.jsx(Stack$5,{sx:{backgroundColor:rt.palette.background.secondary},id:"profile-summary-side",className:"ro-side-nav-wrapper",children:et})})},GET_PATIENT_CAREPLAN_LIST=gql`
  query CareplanList($patientId: ID!) {
    careplanList(patientId: $patientId) {
      id
      careplanStatus
      submittedAt
      simulationModification
      prescriptionModification
      diagnosisModification
      latestPageUrl
      diagnosis {
        id
        diagnosisCode {
          id
          diagnosisCode
          diagnosisDescription
        }
      }
      sitegroupSet {
        orderRanking
        id
        siteSet {
          id
          orderRanking
          treatmentSite {
            id
            treatmentSite
          }
          sitevaluesSet {
            id
            field {
              id
              name
            }
            value
          }
        }
      }
    }
  }
`;gql`
  query notesTypes($patientId: ID!) {
    notesTypes(patientId: $patientId) {
      id
      alias
      name
      mosaiqId
      fallbackMosaiqId
      listWeight
    }
  }
`;const ADD_PATIENT_NOTE=gql`
  mutation SubmitNote($patientId: ID!, $message: String!, $messageType: String!, $noteId: ID) {
    submitNote(patientId: $patientId, message: $message, messageType: $messageType, noteId: $noteId) {
      noteCreated
    }
  }
`,UPDATE_PATIENT_NOTE=gql`
  mutation UpdateNote($patientId: ID!, $message: String!, $messageType: String!, $noteId: ID) {
    updateNote(patientId: $patientId, message: $message, messageType: $messageType, noteId: $noteId) {
      note {
        id
        title
        formattedMessage
        messageType
        messageTypeAlias
        practitioner
        status
        createdAt
        updatedAt
        isDraft
        createdBy {
          id
          name
        }
      }
    }
  }
`,GET_PATIENT_DOCUMENTS=gql`
  query documents($patientId: ID!) {
    documents(patientId: $patientId) {
      id
      status
      type
      description
      dateOfDocument
      docUrl
      patient {
        id
      }
    }
  }
`,PREFETCH_PATIENT_DOCUMENTS=gql`
  query prefetchDocuments($patientId: ID!) {
    prefetchDocuments(patientId: $patientId) {
      success
    }
  }
`,GET_PATIENT_DOCUMENT=gql`
  query document($documentId: ID!) {
    document(documentId: $documentId) {
      id
      status
      type
      description
      dateOfDocument
      docUrl
      hash: finkPath
    }
  }
`,GET_DISTRESS_THERMOMETER_PDF=gql`
  query dtPdf($patientId: ID!) {
    dtPdf(patientId: $patientId) {
      id
      status
      type
      description
      dateOfDocument
      docUrl
      patient {
        id
      }
    }
  }
`,GET_DOSE_SITE_SUMMARIES=gql`
  query getDoseSiteSummaries($patientId: ID!) {
    doseSiteSummaries(patientId: $patientId) {
      id
      isAria
      firstTreatment
      latestTreatment
      deliveredDosageQuantity
      perFractionDoseQuantity
      plannedDosageQuantity
      remainingDoseQuantity
      rxFxUniformQuantity
      totalDosageLimit
      deliveredDosageRatio
      plannedDosageRatio
      categorySiteGroup
      identifierSite
      emrDiagnosisKey
      medicationReference
      status
      statusReason
      technique
      endDate
    }
  }
`,GET_PATIENT_LAB_PANELS=gql`
  query labPanels($patientId: ID!) {
    labPanels(patientId: $patientId) {
      id
      status
      panelName
      observationDate
      observations {
        id
        loincCode
        abnormalFlags
        referenceRange
        resultValue
        unitOfMeasure
        cleanedNote
        description
      }
    }
  }
`,GET_PATIENT_PROFILE$1=gql`
  query patient($patientId: ID!) {
    patient(id: $patientId) {
      id
      emrInstance
      userProfile {
        id
        hasPatId1
      }
    }
  }
`;var LinearScale={},_interopRequireDefault$n=interopRequireDefaultExports;Object.defineProperty(LinearScale,"__esModule",{value:!0});var default_1$k=LinearScale.default=void 0,_createSvgIcon$k=_interopRequireDefault$n(requireCreateSvgIcon()),_jsxRuntime$k=jsxRuntimeExports;default_1$k=LinearScale.default=(0,_createSvgIcon$k.default)((0,_jsxRuntime$k.jsx)("path",{d:"M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 2.5 2.5c1.03 0 1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5s1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5 1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5"}),"LinearScale");const StyledStatusBubble=styled$1("div")`
  align-self: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto;
  border-radius: 50%;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  margin: 0 0.5em 0 0;
  margin-right: 8px;
  background-color: ${et=>getCareplanStatusColor(et.status)};
  border: 2px solid ${et=>getCareplanStatusColor(et.status)};
  // Inner text
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  color: ${et=>et.theme.palette.primary.contrastText};
  display: flex;
  justify-content: center;
  align-items: center;
`,WarningIcon$4=styled$1(SvgErrorCircleFill)`
  position: absolute;
  left: 26px;
  top: -1px;
  width: 18px;
  height: 18px;
`,CareplanStatusBubble=({status:et,hasUnsubmittedChanges:tt})=>jsxRuntimeExports.jsxs(StyledStatusBubble,{status:et,children:[statusAbbreviations(et),tt&&jsxRuntimeExports.jsx(WarningIcon$4,{})]}),statusAbbreviations=et=>{const tt=et.split("_");let rt="";return tt.map(nt=>rt+=nt.charAt(0)),rt},GET_PATIENT_NOTES=gql`
  query notes($patientId: ID!) {
    notes(patientId: $patientId) {
      id
      title
      formattedMessage
      messageType
      messageTypeAlias
      practitioner
      practitionerQualification
      status
      createdAt
      approvedAt
      editedAt
      updatedAt
      isDraft
      createdBy {
        id
        name
      }
      editedBy {
        id
        name
      }
    }
  }
`,GET_NOTE_TYPES=gql`
  query notesTypes($patientId: ID!) {
    notesTypes(patientId: $patientId) {
      id
      alias
      name
      mosaiqId
      fallbackMosaiqId
      listWeight
    }
  }
`;function usePatientNotes(et){const[tt,rt]=reactExports.useState([]),[nt,lt]=reactExports.useState([]),[ut,dt]=reactExports.useState(!0),[pt,ht]=reactExports.useState(!1),[mt,xt]=reactExports.useState([]),{data:Mt,loading:vt,error:Ot}=useQuery(GET_PATIENT_NOTES,{variables:{patientId:et},fetchPolicy:"cache-and-network",skip:!et});return reactExports.useEffect(()=>{dt(vt)},[vt]),reactExports.useEffect(()=>{if(Mt)if(rt(Mt.notes),Mt.notes&&Mt.notes.length){const At=mt.map(Tt=>Tt.type),Rt=Mt.notes.reduce((Tt,Ct)=>(Tt[Ct.messageType]=Ct.messageTypeAlias,Tt),{}),zt=[...new Set(Mt.notes.map(Tt=>Tt.messageType))].filter(Tt=>!At.includes(Tt)).map((Tt,Ct)=>({id:(At.length+Ct).toString(),type:Tt,alias:Rt[Tt],name:Rt[Tt],checked:!0}));xt([...mt,...zt])}else xt([])},[Mt]),reactExports.useEffect(()=>{Ot&&!pt&&ht(!0),!Ot&&pt&&ht(!1)},[Ot]),reactExports.useEffect(()=>{if(mt&&mt.length){const At=mt.filter(Rt=>Rt.checked).map(Rt=>Rt==null?void 0:Rt.type);tt&&tt.length&&lt(tt.filter(Rt=>At.includes(Rt.messageType)&&!Rt.isDraft))}else lt([])},[mt]),{notes:tt,filteredNotes:nt,filterNoteTypes:mt,setFilterNoteTypes:xt,isLoading:ut,hasErrors:pt}}function useNoteTypes(et){const[tt,rt]=reactExports.useState([]);return useQuery(GET_NOTE_TYPES,{variables:{patientId:et},fetchPolicy:"cache-and-network",onCompleted:nt=>{nt&&nt.notesTypes&&rt(nt.notesTypes)}}),tt}const CREATE_CAREPLAN=gql`
  mutation createCareplan($diagnosisId: ID, $patientId: ID) {
    createCareplan(diagnosisId: $diagnosisId, patientId: $patientId) {
      success
      careplan {
        id
        careplanName
        careplanStatus
        isPrimDiagnosisOwner
        isMetsDiagnosisOwner
        featureVersion
      }
    }
  }
`,UPDATE_CAREPLAN_DIAGNOSIS=gql`
  mutation updateCareplanDiagnosis($careplanId: ID!, $diagnosisId: ID, $relatedPrimaryDiagnosisId: ID) {
    updateCareplanDiagnosis(
      careplanId: $careplanId
      diagnosisId: $diagnosisId
      relatedPrimaryDiagnosisId: $relatedPrimaryDiagnosisId
    ) {
      success
      careplan {
        id
      }
      diagnosis
    }
  }
`,GET_CAREPLAN_SITE_GROUPS=gql`
  query siteGroupsByCareplan($careplanId: ID!) {
    siteGroupsByCareplan(careplanId: $careplanId) {
      id
      name
      selectionMethod
      template {
        id
        template {
          id
        }
      }
      imagingList {
        id
      }
      sitegroupvaluesSet {
        id
        field {
          id
          name
        }
        hasVaried
        value
      }

      siteSet {
        id
        treatmentSite {
          id
          treatmentSite
          defaultLaterality
        }
        template {
          id
        }
        sitevaluesSet {
          id
          field {
            id
            name
          }
          hasVaried
          value
        }
      }
    }
  }
`,DELETE_SITE=gql`
  mutation deleteSite($id: ID!) {
    deleteSite(id: $id) {
      success
    }
  }
`,LINK_SITE=gql`
  mutation linkSiteGroup($siteGroupId: ID!, $siteId: ID!) {
    linkSiteGroup(siteGroupId: $siteGroupId, siteId: $siteId) {
      success
    }
  }
`,UNLINK_SITE=gql`
  mutation unlinkSite($siteId: ID!, $careplanId: ID!, $originalSiteGroupId: ID!) {
    unlinkSite(siteId: $siteId, careplanId: $careplanId, originalSiteGroupId: $originalSiteGroupId) {
      success
    }
  }
`,CLEAN_SITE_GROUPS=gql`
  mutation cleanSiteGroups($careplanId: ID!) {
    cleanSiteGroups(careplanId: $careplanId) {
      success
    }
  }
`,DELETE_SITE_GROUP=gql`
  mutation deleteSiteGroup($id: ID!) {
    deleteSiteGroup(id: $id) {
      success
    }
  }
`,UPDATE_SITE=gql`
  mutation updatePrescription($siteId: ID!, $laterality: String, $location: String) {
    updatePrescription(siteId: $siteId, laterality: $laterality, location: $location) {
      site {
        id
        location
      }
    }
  }
`,UPDATE_GROUP_LATERALITY=gql`
  mutation updateGroupLaterality($siteGroupId: ID!, $siteId: ID!, $laterality: String!) {
    updateGroupLaterality(siteGroupId: $siteGroupId, siteId: $siteId, laterality: $laterality) {
      success
    }
  }
`;gql`
  query conditionalFieldList {
    conditionalFieldList {
      id
      name
    }
  }
`;const UPDATE_SITE_VALUE=gql`
  mutation updateSiteValue($id: ID!, $siteId: ID!, $fieldName: String, $value: String!) {
    updateSiteValue(id: $id, siteId: $siteId, fieldName: $fieldName, value: $value) {
      siteValues {
        id
        hasVaried
      }
    }
  }
`,UPDATE_SITE_GROUP_VALUE=gql`
  mutation updateSiteGroupValue($id: ID!, $siteGroupId: ID!, $fieldName: String, $value: String!) {
    updateSiteGroupValue(id: $id, siteGroupId: $siteGroupId, fieldName: $fieldName, value: $value) {
      siteGroupValue {
        id
        field {
          id
          name
        }
        value
      }
    }
  }
`,GET_INTAKE_CODE_MAPPING=gql`
  query {
    intakeCodeMapping {
      id
      intake {
        id
        name
      }
      diagnosisCode {
        id
        diagnosisCode
      }
    }
  }
`,UPDATE_CAREPLAN_LAST_PAGE=gql`
  mutation updateCareplan($id: ID!, $latestPageUrl: String) {
    updateCareplan(id: $id, latestPageUrl: $latestPageUrl) {
      careplan {
        id
        latestPageUrl
        featureVersion
      }
    }
  }
`,SOFT_DELETE_CAREPLAN=gql`
  mutation softDeleteCareplan($id: ID!) {
    softDeleteCareplan(id: $id) {
      careplan {
        id
      }
    }
  }
`,GET_CAREPLAN_STATUS=gql`
  query careplan($id: ID!) {
    careplan(id: $id) {
      id
      careplanStatus
    }
  }
`,SUBMIT_PRESCRIPTION=gql`
  mutation submitPrescription($id: ID!, $status: String!, $resubmitSimulation: Boolean) {
    submitPrescription(id: $id, status: $status, resubmitSimulation: $resubmitSimulation) {
      careplan {
        id
        careplanStatus
      }
    }
  }
`,SITE_GROUP_TEMPLATE_VALUE_VARIATION=gql`
  query siteGroupTemplateValueVariation($siteGroupId: ID!) {
    siteGroupTemplateValueVariation(siteGroupId: $siteGroupId) {
      variation
    }
  }
`,SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION=gql`
  query siteTemplateValuesByGroupVariation($siteGroupId: ID!, $volumingPage: Boolean) {
    siteTemplateValuesByGroupVariation(siteGroupId: $siteGroupId, volumingPage: $volumingPage) {
      variation
    }
  }
`,GET_CAREPLAN=gql`
  query careplan($id: ID!) {
    careplan(id: $id) {
      id
      careplanStatus
      templateChangeRequested
      treatingDepartment
      submittedAt
      simulationModification
      prescriptionModification
      diagnosisModification
      cied
      ciedPatientDependancy
      ciedLinacRequired
      changeType
      parent {
        id
        careplanStatus
        changeType
        submittedAt
      }
      practitioner {
        id
      }
      isPrimDiagnosisOwner
      isMetsDiagnosisOwner
      ajccMajorVersion
      featureVersion
    }
  }
`,SITE_TEMPLATE_VALUES_IN_SITE_GROUP=gql`
  query siteGroupTemplate($siteGroupId: ID!) {
    siteGroupTemplate(id: $siteGroupId) {
      id
      treatmentsiteprescriptiontemplateSet {
        id
        treatmentrulesiteSet {
          id
          field {
            id
            name
          }
          defaultValue
        }
      }
    }
  }
`,FREQUENTLY_USED_TEMPLATES=gql`
  query frequentlyUsedTemplates($patientId: ID!, $tumourStream: String!) {
    frequentlyUsedTemplates(patientId: $patientId, tumourStream: $tumourStream) {
      id
      name
      ranking
      approvedDate
    }
  }
`,SIGMA_DATA=gql`
  query sigmaData($careplanId: ID!) {
    sigmaData(careplanId: $careplanId) {
      id
      responseUUID
      status
      validationErrors {
        field
        message
      }
      templates {
        id
        name
        score
      }
    }
  }
`,USER_DATA=gql`
  query user {
    user {
      id
      isShowcaseUser
      isRegistrar
    }
  }
`,TRIGGER_CPOT=gql`
  mutation updateCareplan($id: ID!, $careplanStatus: String, $cpotTriggered: Boolean) {
    updateCareplan(id: $id, careplanStatus: $careplanStatus, cpotTriggered: $cpotTriggered) {
      careplan {
        id
        careplanStatus
        cpotTriggered
      }
    }
  }
`,UPDATE_TREATMENT_SITE=gql`
  mutation updateTreatmentSite($siteId: ID!, $treatmentSite: String) {
    updateTreatmentSite(siteId: $siteId, treatmentSite: $treatmentSite) {
      success
    }
  }
`,SITE_NAME_VARIATION=gql`
  query siteNameVariation($careplanId: ID!) {
    siteNameVariation(careplanId: $careplanId) {
      variation
    }
  }
`;gql`
  query siteListByCareplan($careplanId: ID!) {
    siteListByCareplan(careplanId: $careplanId) {
      id
      laterality
      treatmentSite
    }
  }
`;const GET_QUESTION=gql`
  query questionByType($type: String!) {
    questionByType(formType: $type) {
      id
      type
      values
      isActive
    }
  }
`,UPDATE_SPECIAL_PHYSICS_CONSULT=gql`
  mutation updateSpecialPhysicsConsult($siteGroupId: ID!, $value: String) {
    updateSpecialPhysicsConsult(siteGroupId: $siteGroupId, value: $value) {
      success
    }
  }
`,DISCARD_CAREPLAN_CHANGES=gql`
  mutation discardCareplanChanges($id: ID!) {
    discardCareplanChanges(id: $id) {
      careplan {
        id
        careplanStatus
      }
    }
  }
`,GET_SUBMISSION_PREVIEW_DOCUMENTS=gql`
  query previewDocuments($careplanId: ID!) {
    previewDocuments(careplanId: $careplanId) {
      id
      previewUrl
      siteGroupId
      siteGroupName
      documentType
    }
  }
`,c$2=et=>typeof et=="number"&&!isNaN(et),d$2=et=>typeof et=="string",u$4=et=>typeof et=="function",p$3=et=>d$2(et)||u$4(et)?et:null,m$2=et=>reactExports.isValidElement(et)||d$2(et)||u$4(et)||c$2(et);function f$3(et,tt,rt){rt===void 0&&(rt=300);const{scrollHeight:nt,style:lt}=et;requestAnimationFrame(()=>{lt.minHeight="initial",lt.height=nt+"px",lt.transition=`all ${rt}ms`,requestAnimationFrame(()=>{lt.height="0",lt.padding="0",lt.margin="0",setTimeout(tt,rt)})})}function g$3(et){let{enter:tt,exit:rt,appendPosition:nt=!1,collapse:lt=!0,collapseDuration:ut=300}=et;return function(dt){let{children:pt,position:ht,preventExitTransition:mt,done:xt,nodeRef:Mt,isIn:vt,playToast:Ot}=dt;const At=nt?`${tt}--${ht}`:tt,Rt=nt?`${rt}--${ht}`:rt,zt=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const Tt=Mt.current,Ct=At.split(" "),It=Dt=>{Dt.target===Mt.current&&(Ot(),Tt.removeEventListener("animationend",It),Tt.removeEventListener("animationcancel",It),zt.current===0&&Dt.type!=="animationcancel"&&Tt.classList.remove(...Ct))};Tt.classList.add(...Ct),Tt.addEventListener("animationend",It),Tt.addEventListener("animationcancel",It)},[]),reactExports.useEffect(()=>{const Tt=Mt.current,Ct=()=>{Tt.removeEventListener("animationend",Ct),lt?f$3(Tt,xt,ut):xt()};vt||(mt?Ct():(zt.current=1,Tt.className+=` ${Rt}`,Tt.addEventListener("animationend",Ct)))},[vt]),React$4.createElement(React$4.Fragment,null,pt)}}function y$2(et,tt){return et!=null?{content:et.content,containerId:et.props.containerId,id:et.props.toastId,theme:et.props.theme,type:et.props.type,data:et.props.data||{},isLoading:et.props.isLoading,icon:et.props.icon,status:tt}:{}}const v$3=new Map;let h$2=[];const T$1=new Set,E$2=et=>T$1.forEach(tt=>tt(et)),b$2=()=>v$3.size>0;function I$2(et,tt){var rt;if(tt)return!((rt=v$3.get(tt))==null||!rt.isToastActive(et));let nt=!1;return v$3.forEach(lt=>{lt.isToastActive(et)&&(nt=!0)}),nt}function _$5(et,tt){m$2(et)&&(b$2()||h$2.push({content:et,options:tt}),v$3.forEach(rt=>{rt.buildToast(et,tt)}))}function C$2(et,tt){v$3.forEach(rt=>{tt!=null&&tt!=null&&tt.containerId?(tt==null?void 0:tt.containerId)===rt.id&&rt.toggle(et,tt==null?void 0:tt.id):rt.toggle(et,tt==null?void 0:tt.id)})}function L$1(et){const{subscribe:tt,getSnapshot:rt,setProps:nt}=reactExports.useRef(function(ut){const dt=ut.containerId||1;return{subscribe(pt){const ht=function(xt,Mt,vt){let Ot=1,At=0,Rt=[],zt=[],Tt=[],Ct=Mt;const It=new Map,Dt=new Set,kt=()=>{Tt=Array.from(It.values()),Dt.forEach(Yt=>Yt())},qt=Yt=>{zt=Yt==null?[]:zt.filter(Kt=>Kt!==Yt),kt()},Nt=Yt=>{const{toastId:Kt,onOpen:Jt,updateId:Qt,children:Bt}=Yt.props,Ft=Qt==null;Yt.staleId&&It.delete(Yt.staleId),It.set(Kt,Yt),zt=[...zt,Yt.props.toastId].filter($t=>$t!==Yt.staleId),kt(),vt(y$2(Yt,Ft?"added":"updated")),Ft&&u$4(Jt)&&Jt(reactExports.isValidElement(Bt)&&Bt.props)};return{id:xt,props:Ct,observe:Yt=>(Dt.add(Yt),()=>Dt.delete(Yt)),toggle:(Yt,Kt)=>{It.forEach(Jt=>{Kt!=null&&Kt!==Jt.props.toastId||u$4(Jt.toggle)&&Jt.toggle(Yt)})},removeToast:qt,toasts:It,clearQueue:()=>{At-=Rt.length,Rt=[]},buildToast:(Yt,Kt)=>{if((Xt=>{let{containerId:er,toastId:nr,updateId:or}=Xt;const rr=er?er!==xt:xt!==1,cr=It.has(nr)&&or==null;return rr||cr})(Kt))return;const{toastId:Jt,updateId:Qt,data:Bt,staleId:Ft,delay:$t}=Kt,jt=()=>{qt(Jt)},Wt=Qt==null;Wt&&At++;const Ut={...Ct,style:Ct.toastStyle,key:Ot++,...Object.fromEntries(Object.entries(Kt).filter(Xt=>{let[er,nr]=Xt;return nr!=null})),toastId:Jt,updateId:Qt,data:Bt,closeToast:jt,isIn:!1,className:p$3(Kt.className||Ct.toastClassName),bodyClassName:p$3(Kt.bodyClassName||Ct.bodyClassName),progressClassName:p$3(Kt.progressClassName||Ct.progressClassName),autoClose:!Kt.isLoading&&(Vt=Kt.autoClose,Ht=Ct.autoClose,Vt===!1||c$2(Vt)&&Vt>0?Vt:Ht),deleteToast(){const Xt=It.get(Jt),{onClose:er,children:nr}=Xt.props;u$4(er)&&er(reactExports.isValidElement(nr)&&nr.props),vt(y$2(Xt,"removed")),It.delete(Jt),At--,At<0&&(At=0),Rt.length>0?Nt(Rt.shift()):kt()}};var Vt,Ht;Ut.closeButton=Ct.closeButton,Kt.closeButton===!1||m$2(Kt.closeButton)?Ut.closeButton=Kt.closeButton:Kt.closeButton===!0&&(Ut.closeButton=!m$2(Ct.closeButton)||Ct.closeButton);let Gt=Yt;reactExports.isValidElement(Yt)&&!d$2(Yt.type)?Gt=reactExports.cloneElement(Yt,{closeToast:jt,toastProps:Ut,data:Bt}):u$4(Yt)&&(Gt=Yt({closeToast:jt,toastProps:Ut,data:Bt}));const Zt={content:Gt,props:Ut,staleId:Ft};Ct.limit&&Ct.limit>0&&At>Ct.limit&&Wt?Rt.push(Zt):c$2($t)?setTimeout(()=>{Nt(Zt)},$t):Nt(Zt)},setProps(Yt){Ct=Yt},setToggle:(Yt,Kt)=>{It.get(Yt).toggle=Kt},isToastActive:Yt=>zt.some(Kt=>Kt===Yt),getSnapshot:()=>Ct.newestOnTop?Tt.reverse():Tt}}(dt,ut,E$2);v$3.set(dt,ht);const mt=ht.observe(pt);return h$2.forEach(xt=>_$5(xt.content,xt.options)),h$2=[],()=>{mt(),v$3.delete(dt)}},setProps(pt){var ht;(ht=v$3.get(dt))==null||ht.setProps(pt)},getSnapshot(){var pt;return(pt=v$3.get(dt))==null?void 0:pt.getSnapshot()}}}(et)).current;nt(et);const lt=reactExports.useSyncExternalStore(tt,rt,rt);return{getToastToRender:function(ut){if(!lt)return[];const dt=new Map;return lt.forEach(pt=>{const{position:ht}=pt.props;dt.has(ht)||dt.set(ht,[]),dt.get(ht).push(pt)}),Array.from(dt,pt=>ut(pt[0],pt[1]))},isToastActive:I$2,count:lt==null?void 0:lt.length}}function N$1(et){const[tt,rt]=reactExports.useState(!1),[nt,lt]=reactExports.useState(!1),ut=reactExports.useRef(null),dt=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:pt,pauseOnHover:ht,closeToast:mt,onClick:xt,closeOnClick:Mt}=et;var vt,Ot;function At(){rt(!0)}function Rt(){rt(!1)}function zt(It){const Dt=ut.current;dt.canDrag&&Dt&&(dt.didMove=!0,tt&&Rt(),dt.delta=et.draggableDirection==="x"?It.clientX-dt.start:It.clientY-dt.start,dt.start!==It.clientX&&(dt.canCloseOnClick=!1),Dt.style.transform=`translate3d(${et.draggableDirection==="x"?`${dt.delta}px, var(--y)`:`0, calc(${dt.delta}px + var(--y))`},0)`,Dt.style.opacity=""+(1-Math.abs(dt.delta/dt.removalDistance)))}function Tt(){document.removeEventListener("pointermove",zt),document.removeEventListener("pointerup",Tt);const It=ut.current;if(dt.canDrag&&dt.didMove&&It){if(dt.canDrag=!1,Math.abs(dt.delta)>dt.removalDistance)return lt(!0),et.closeToast(),void et.collapseAll();It.style.transition="transform 0.2s, opacity 0.2s",It.style.removeProperty("transform"),It.style.removeProperty("opacity")}}(Ot=v$3.get((vt={id:et.toastId,containerId:et.containerId,fn:rt}).containerId||1))==null||Ot.setToggle(vt.id,vt.fn),reactExports.useEffect(()=>{if(et.pauseOnFocusLoss)return document.hasFocus()||Rt(),window.addEventListener("focus",At),window.addEventListener("blur",Rt),()=>{window.removeEventListener("focus",At),window.removeEventListener("blur",Rt)}},[et.pauseOnFocusLoss]);const Ct={onPointerDown:function(It){if(et.draggable===!0||et.draggable===It.pointerType){dt.didMove=!1,document.addEventListener("pointermove",zt),document.addEventListener("pointerup",Tt);const Dt=ut.current;dt.canCloseOnClick=!0,dt.canDrag=!0,Dt.style.transition="none",et.draggableDirection==="x"?(dt.start=It.clientX,dt.removalDistance=Dt.offsetWidth*(et.draggablePercent/100)):(dt.start=It.clientY,dt.removalDistance=Dt.offsetHeight*(et.draggablePercent===80?1.5*et.draggablePercent:et.draggablePercent)/100)}},onPointerUp:function(It){const{top:Dt,bottom:kt,left:qt,right:Nt}=ut.current.getBoundingClientRect();It.nativeEvent.type!=="touchend"&&et.pauseOnHover&&It.clientX>=qt&&It.clientX<=Nt&&It.clientY>=Dt&&It.clientY<=kt?Rt():At()}};return pt&&ht&&(Ct.onMouseEnter=Rt,et.stacked||(Ct.onMouseLeave=At)),Mt&&(Ct.onClick=It=>{xt&&xt(It),dt.canCloseOnClick&&mt()}),{playToast:At,pauseToast:Rt,isRunning:tt,preventExitTransition:nt,toastRef:ut,eventHandlers:Ct}}function $$2(et){let{delay:tt,isRunning:rt,closeToast:nt,type:lt="default",hide:ut,className:dt,style:pt,controlledProgress:ht,progress:mt,rtl:xt,isIn:Mt,theme:vt}=et;const Ot=ut||ht&&mt===0,At={...pt,animationDuration:`${tt}ms`,animationPlayState:rt?"running":"paused"};ht&&(At.transform=`scaleX(${mt})`);const Rt=clsx("Toastify__progress-bar",ht?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${vt}`,`Toastify__progress-bar--${lt}`,{"Toastify__progress-bar--rtl":xt}),zt=u$4(dt)?dt({rtl:xt,type:lt,defaultClassName:Rt}):clsx(Rt,dt),Tt={[ht&&mt>=1?"onTransitionEnd":"onAnimationEnd"]:ht&&mt<1?null:()=>{Mt&&nt()}};return React$4.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":Ot},React$4.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${vt} Toastify__progress-bar--${lt}`}),React$4.createElement("div",{role:"progressbar","aria-hidden":Ot?"true":"false","aria-label":"notification timer",className:zt,style:At,...Tt}))}let w$2=1;const k$2=()=>""+w$2++;function P$1(et){return et&&(d$2(et.toastId)||c$2(et.toastId))?et.toastId:k$2()}function M$1(et,tt){return _$5(et,tt),tt.toastId}function x$2(et,tt){return{...tt,type:tt&&tt.type||et,toastId:P$1(tt)}}function A$2(et){return(tt,rt)=>M$1(tt,x$2(et,rt))}function B$3(et,tt){return M$1(et,x$2("default",tt))}B$3.loading=(et,tt)=>M$1(et,x$2("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...tt})),B$3.promise=function(et,tt,rt){let nt,{pending:lt,error:ut,success:dt}=tt;lt&&(nt=d$2(lt)?B$3.loading(lt,rt):B$3.loading(lt.render,{...rt,...lt}));const pt={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},ht=(xt,Mt,vt)=>{if(Mt==null)return void B$3.dismiss(nt);const Ot={type:xt,...pt,...rt,data:vt},At=d$2(Mt)?{render:Mt}:Mt;return nt?B$3.update(nt,{...Ot,...At}):B$3(At.render,{...Ot,...At}),vt},mt=u$4(et)?et():et;return mt.then(xt=>ht("success",dt,xt)).catch(xt=>ht("error",ut,xt)),mt},B$3.success=A$2("success"),B$3.info=A$2("info"),B$3.error=A$2("error"),B$3.warning=A$2("warning"),B$3.warn=B$3.warning,B$3.dark=(et,tt)=>M$1(et,x$2("default",{theme:"dark",...tt})),B$3.dismiss=function(et){(function(tt){var rt;if(b$2()){if(tt==null||d$2(rt=tt)||c$2(rt))v$3.forEach(nt=>{nt.removeToast(tt)});else if(tt&&("containerId"in tt||"id"in tt)){const nt=v$3.get(tt.containerId);nt?nt.removeToast(tt.id):v$3.forEach(lt=>{lt.removeToast(tt.id)})}}else h$2=h$2.filter(nt=>tt!=null&&nt.options.toastId!==tt)})(et)},B$3.clearWaitingQueue=function(et){et===void 0&&(et={}),v$3.forEach(tt=>{!tt.props.limit||et.containerId&&tt.id!==et.containerId||tt.clearQueue()})},B$3.isActive=I$2,B$3.update=function(et,tt){tt===void 0&&(tt={});const rt=((nt,lt)=>{var ut;let{containerId:dt}=lt;return(ut=v$3.get(dt||1))==null?void 0:ut.toasts.get(nt)})(et,tt);if(rt){const{props:nt,content:lt}=rt,ut={delay:100,...nt,...tt,toastId:tt.toastId||et,updateId:k$2()};ut.toastId!==et&&(ut.staleId=et);const dt=ut.render||lt;delete ut.render,M$1(dt,ut)}},B$3.done=et=>{B$3.update(et,{progress:1})},B$3.onChange=function(et){return T$1.add(et),()=>{T$1.delete(et)}},B$3.play=et=>C$2(!0,et),B$3.pause=et=>C$2(!1,et);const O$1=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D$3=et=>{let{theme:tt,type:rt,isLoading:nt,...lt}=et;return React$4.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:tt==="colored"?"currentColor":`var(--toastify-icon-color-${rt})`,...lt})},z$2={info:function(et){return React$4.createElement(D$3,{...et},React$4.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(et){return React$4.createElement(D$3,{...et},React$4.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(et){return React$4.createElement(D$3,{...et},React$4.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(et){return React$4.createElement(D$3,{...et},React$4.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return React$4.createElement("div",{className:"Toastify__spinner"})}},R$1=et=>{const{isRunning:tt,preventExitTransition:rt,toastRef:nt,eventHandlers:lt,playToast:ut}=N$1(et),{closeButton:dt,children:pt,autoClose:ht,onClick:mt,type:xt,hideProgressBar:Mt,closeToast:vt,transition:Ot,position:At,className:Rt,style:zt,bodyClassName:Tt,bodyStyle:Ct,progressClassName:It,progressStyle:Dt,updateId:kt,role:qt,progress:Nt,rtl:Yt,toastId:Kt,deleteToast:Jt,isIn:Qt,isLoading:Bt,closeOnClick:Ft,theme:$t}=et,jt=clsx("Toastify__toast",`Toastify__toast-theme--${$t}`,`Toastify__toast--${xt}`,{"Toastify__toast--rtl":Yt},{"Toastify__toast--close-on-click":Ft}),Wt=u$4(Rt)?Rt({rtl:Yt,position:At,type:xt,defaultClassName:jt}):clsx(jt,Rt),Ut=function(Zt){let{theme:Xt,type:er,isLoading:nr,icon:or}=Zt,rr=null;const cr={theme:Xt,type:er};return or===!1||(u$4(or)?rr=or({...cr,isLoading:nr}):reactExports.isValidElement(or)?rr=reactExports.cloneElement(or,cr):nr?rr=z$2.spinner():(ir=>ir in z$2)(er)&&(rr=z$2[er](cr))),rr}(et),Vt=!!Nt||!ht,Ht={closeToast:vt,type:xt,theme:$t};let Gt=null;return dt===!1||(Gt=u$4(dt)?dt(Ht):reactExports.isValidElement(dt)?reactExports.cloneElement(dt,Ht):function(Zt){let{closeToast:Xt,theme:er,ariaLabel:nr="close"}=Zt;return React$4.createElement("button",{className:`Toastify__close-button Toastify__close-button--${er}`,type:"button",onClick:or=>{or.stopPropagation(),Xt(or)},"aria-label":nr},React$4.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React$4.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ht)),React$4.createElement(Ot,{isIn:Qt,done:Jt,position:At,preventExitTransition:rt,nodeRef:nt,playToast:ut},React$4.createElement("div",{id:Kt,onClick:mt,"data-in":Qt,className:Wt,...lt,style:zt,ref:nt},React$4.createElement("div",{...Qt&&{role:qt},className:u$4(Tt)?Tt({type:xt}):clsx("Toastify__toast-body",Tt),style:Ct},Ut!=null&&React$4.createElement("div",{className:clsx("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Bt})},Ut),React$4.createElement("div",null,pt)),Gt,React$4.createElement($$2,{...kt&&!Vt?{key:`pb-${kt}`}:{},rtl:Yt,theme:$t,delay:ht,isRunning:tt,isIn:Qt,closeToast:vt,hide:Mt,type:xt,style:Dt,className:It,controlledProgress:Vt,progress:Nt||0})))},S$1=function(et,tt){return tt===void 0&&(tt=!1),{enter:`Toastify--animate Toastify__${et}-enter`,exit:`Toastify--animate Toastify__${et}-exit`,appendPosition:tt}},H$2=g$3(S$1("bounce",!0)),F$2=g$3(S$1("slide",!0));g$3(S$1("zoom"));g$3(S$1("flip"));const q$3={position:"top-right",transition:H$2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q$1(et){let tt={...q$3,...et};const rt=et.stacked,[nt,lt]=reactExports.useState(!0),ut=reactExports.useRef(null),{getToastToRender:dt,isToastActive:pt,count:ht}=L$1(tt),{className:mt,style:xt,rtl:Mt,containerId:vt}=tt;function Ot(Rt){const zt=clsx("Toastify__toast-container",`Toastify__toast-container--${Rt}`,{"Toastify__toast-container--rtl":Mt});return u$4(mt)?mt({position:Rt,rtl:Mt,defaultClassName:zt}):clsx(zt,p$3(mt))}function At(){rt&&(lt(!0),B$3.play())}return O$1(()=>{if(rt){var Rt;const zt=ut.current.querySelectorAll('[data-in="true"]'),Tt=12,Ct=(Rt=tt.position)==null?void 0:Rt.includes("top");let It=0,Dt=0;Array.from(zt).reverse().forEach((kt,qt)=>{const Nt=kt;Nt.classList.add("Toastify__toast--stacked"),qt>0&&(Nt.dataset.collapsed=`${nt}`),Nt.dataset.pos||(Nt.dataset.pos=Ct?"top":"bot");const Yt=It*(nt?.2:1)+(nt?0:Tt*qt);Nt.style.setProperty("--y",`${Ct?Yt:-1*Yt}px`),Nt.style.setProperty("--g",`${Tt}`),Nt.style.setProperty("--s",""+(1-(nt?Dt:0))),It+=Nt.offsetHeight,Dt+=.025})}},[nt,ht,rt]),React$4.createElement("div",{ref:ut,className:"Toastify",id:vt,onMouseEnter:()=>{rt&&(lt(!1),B$3.pause())},onMouseLeave:At},dt((Rt,zt)=>{const Tt=zt.length?{...xt}:{...xt,pointerEvents:"none"};return React$4.createElement("div",{className:Ot(Rt),style:Tt,key:`container-${Rt}`},zt.map(Ct=>{let{content:It,props:Dt}=Ct;return React$4.createElement(R$1,{...Dt,stacked:rt,collapseAll:At,isIn:pt(Dt.toastId,Dt.containerId),style:Dt.style,key:`toast-${Dt.key}`},It)}))}))}const StyledButton$4=styled$1("button")`
  border: none;
  background: none;
  display: flex;
  align-items: center;
  padding: 0;
  outline: none !important;
  border-radius: 4px;
  &:hover {
    cursor: ${et=>et.unclickable?"not-allowed":"pointer"};
    text-decoration: ${et=>et.unclickable?"none":"underline"};
  }
`,DeleteIcon$1=styled$1(et=>jsxRuntimeExports.jsx(SvgDelete,{title:"Delete.svg",...et}))`
  margin-right: ${et=>et.label?"8px":"0px"};
  path {
    fill: ${et=>et.unclickable?"black":`${tt=>tt.theme.palette.error.main}`};
    fill-opacity: ${et=>et.unclickable?"0.54":"1"};
  }
  width: 18px;
  height: 18px;
`,Label$5=styled$1("span")`
  font-weight: bold;
  font-size: 0.875rem;
  color: ${et=>et.unclickable?`${tt=>tt.theme.palette.grey[600]}`:"black"};
`,DeleteButton=({fieldId:et,label:tt,onClick:rt,unclickable:nt,buttonText:lt="Delete"})=>jsxRuntimeExports.jsxs(StyledButton$4,{type:"button",onClick:rt,"data-testid":`${et}-button-id`,unclickable:nt,children:[jsxRuntimeExports.jsx(DeleteIcon$1,{label:tt,unclickable:nt}),jsxRuntimeExports.jsx(Label$5,{unclickable:nt,children:lt})]}),StyledButton$3=styled$1("button")`
  border: none;
  background: none;
  padding: 0;
  outline: none !important;
  border-radius: 4px;
  &:hover {
    cursor: ${et=>et.unclickable?"not-allowed":"pointer"};
    text-decoration: ${et=>et.unclickable?"none":"underline"};
  }
`,DuplicateIcon=styled$1(ContentCopyIcon)`
  margin-right: ${et=>et.label?"8px":"0px"};
  height: 18px;
  width: 18px;
  path {
    fill: ${et=>et.unclickable?"black":et.theme.palette.primary.main};
    fill-opacity: ${et=>et.unclickable?"0.54":"1"};
  }
`,Label$4=styled$1("span")`
  font-weight: bold;
  font-size: 0.875rem;
  color: ${et=>et.unclickable?`${tt=>tt.theme.palette.grey[600]}`:"black"};
`,DuplicateButton=({fieldId:et,label:tt,onClick:rt,unclickable:nt})=>jsxRuntimeExports.jsx("div",{id:`${et}-wrapper`,children:jsxRuntimeExports.jsxs(StyledButton$3,{type:"button",onClick:rt,"data-test-id":`${et}-button-id`,unclickable:nt,children:[jsxRuntimeExports.jsx(DuplicateIcon,{label:tt,unclickable:nt}),jsxRuntimeExports.jsx(Label$4,{unclickable:nt,children:"Duplicate"})]})}),StyledButton$2=styled$1("button")`
  border: none;
  background: none;
  align-items: center;
  display: flex;
  padding: 0;
  outline: none !important;
  border-radius: 4px;
  &:hover {
    cursor: ${et=>et.unclickable?"not-allowed":"pointer"};
    text-decoration: ${et=>et.unclickable?"none":"underline"};
  }
`,AmendIcon=styled$1(SvgEdit)`
  margin-right: ${et=>et.label?"8px":"0px"};
  height: 18px;
  width: 18px;
  path {
    fill: ${et=>et.unclickable?"black":et.theme.palette.primary.main};
    fill-opacity: ${et=>et.unclickable?"0.54":"1"};
  }
`,Label$3=styled$1("span")`
  font-weight: bold;
  font-size: 0.875rem;
  color: ${et=>et.unclickable?`${tt=>tt.theme.palette.grey[600]}`:"black"};
`,AmendButton=({fieldId:et,label:tt,onClick:rt,unclickable:nt})=>jsxRuntimeExports.jsxs(StyledButton$2,{type:"button",onClick:rt,"data-test-id":`${et}-button-id`,unclickable:nt,children:[jsxRuntimeExports.jsx(AmendIcon,{label:tt,unclickable:nt}),jsxRuntimeExports.jsx(Label$3,{unclickable:nt,children:"Amend"})]}),StyledCheckboxField=styled$1("div")`
  cursor: pointer;
  width: ${({$width:et})=>et} !important;
  margin-top: ${({$marginTop:et})=>et};
  margin-bottom: ${({$marginBottom:et})=>et};
  border: 1px solid ${({$invalid:et,theme:tt})=>et?tt.palette.error.main:tt.palette.grey[300]} !important;
  border-radius: 10px !important;
  padding: 0.5em 1em;
  path {
    fill: ${et=>et.theme.palette.grey[300]} !important;
  }

  :hover {
    border-color: ${({$disabled:et,theme:tt})=>et?tt.palette.grey[300]:tt.palette.primary.main} !important;

    background-color: ${({$disabled:et,theme:tt})=>et?tt.palette.grey[100]:tt.palette.secondary.light} !important;
    path {
      fill: ${({$disabled:et,theme:tt})=>et?tt.palette.grey[300]:tt.palette.primary.main} !important;
    }
  }

  ${et=>({$isChecked:tt,$disabled:rt})=>tt&&!rt&&`
      border-color: ${et.theme.palette.primary.main} !important;
      path {
        fill: ${et.theme.palette.primary.main} !important;
      }
    `}
  background-color: ${et=>({$disabled:tt})=>tt?et.theme.palette.grey[100]:"white"};
`,CheckboxField=({name:et,label:tt,disabled:rt,width:nt,marginTop:lt,marginBottom:ut,handleMutation:dt,field:pt,form:ht,invalid:mt,required:xt,onClick:Mt=()=>{}})=>{const vt=et||(pt==null?void 0:pt.name),Ot=pt!=null&&pt.value?pt==null?void 0:pt.value:!1,[At,Rt]=reactExports.useState(Ot),zt=reactExports.useRef(!1);reactExports.useEffect(()=>{zt.current?dt&&dt(At):zt.current=!0},[At]);const Tt=It=>{Rt(It),ht!=null&&ht.setFieldValue&&ht.setFieldValue(vt,It)},Ct={$isChecked:At,$width:nt||"256px",$marginBottom:ut||"0px",$marginTop:lt||"0px",$invalid:mt||!1,$disabled:rt||!1};return jsxRuntimeExports.jsx(StyledCheckboxField,{...Ct,"data-test-id":`${vt}-checkbox`,onClick:It=>{It.stopPropagation(),It.preventDefault(),!rt&&Tt(!At),!rt&&Mt()},children:jsxRuntimeExports.jsx(Checkbox,{inputName:vt,inputLabel:tt,isChecked:At,disabled:rt,required:xt,onChange:()=>{}})})},Container$7=styled$1("div")`
  display: flex;
`,Description$1=styled$1("div")`
  margin-bottom: 16px;
`,ButtonsContainer$1=styled$1("section")`
  display: flex;
  width: 100%;
  margin-bottom: 0;
  justify-content: flex-end;
`,List$1=styled$1("ul")`
  margin: 8px auto 16px 0;
  list-style: none;
  li::before {
    margin-left: 0;
    content: '\\2022';
    width: 1em;
    font-size: 32px;
    font-weight: bold;
    vertical-align: middle;
    color: ${et=>et.theme.palette.primary.main};
  }
  li {
    margin-bottom: 0;
  }
`,BoldUnderline=styled$1("span")`
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
`,DeleteCareplan=({careplan:et,patientId:tt,handlePopUpClose:rt,anchorEl:nt,isPopUpOpen:lt})=>{const[ut,dt]=reactExports.useState(!1),[pt,ht]=reactExports.useState(!1),mt=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION===Region.US,xt=useTheme$1(),[Mt]=useMutation(SOFT_DELETE_CAREPLAN,{refetchQueries:[{query:GET_PATIENT_CAREPLAN_LIST,variables:{patientId:tt}},{query:GET_PATIENT_NOTES,variables:{patientId:tt}}]}),[vt]=useMutation(SOFT_DELETE_CAREPLAN,{refetchQueries:[{query:GET_PATIENT_CAREPLAN_LIST,variables:{patientId:tt}}]}),Ot={HEADER:`${et.careplanStatus===CAREPLAN_STATUS$2.draft?"Discard Draft":"Void"} Careplan`,DESCRIPTION:et.careplanStatus===CAREPLAN_STATUS$2.draft?"All data will be deleted. Once deleted careplan data cannot be recovered.":"Would you like to proceed with this action?"},At={HEADER:"Void Careplan"},Rt=()=>{vt({variables:{id:et.id}})},zt=()=>{rt(),dt(!0)},Tt=async()=>{await Mt({variables:{id:et.id}});const Ct=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("strong",{style:{maxWidth:"270px",wordWrap:"normal",overflow:"hidden"},className:"title",children:"Careplan Voided"}),et.sitegroupSet.map((It,Dt)=>jsxRuntimeExports.jsx("div",{style:{maxWidth:"270px",wordWrap:"normal",overflow:"hidden"},children:getSiteGroupRepresentation(It)},Dt))]});B$3.dark(jsxRuntimeExports.jsx(Ct,{}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,transition:F$2,progress:void 0})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Container$7,{children:jsxRuntimeExports.jsxs(Popover,{id:`dd-popover-${et.id}`,title:Ot.HEADER,open:lt,anchorEl:nt,handleClickAway:rt,fadeTimeout:350,placement:"bottom-end",children:[jsxRuntimeExports.jsx(Description$1,{children:Ot.DESCRIPTION}),jsxRuntimeExports.jsxs(ButtonsContainer$1,{children:[jsxRuntimeExports.jsx(DialogButton,{"data-testid":"dialog-cancel-btn",onClick:rt,children:"Cancel"}),jsxRuntimeExports.jsx(DialogButton,{"data-testid":"dialog-discard-btn",onClick:et.careplanStatus===CAREPLAN_STATUS$2.draft?Rt:zt,color:"error",sx:{color:xt.palette.error.main},children:"Yes"})]})]})}),jsxRuntimeExports.jsx(StandardDialog,{open:ut,onClose:()=>{dt(!1)},title:At.HEADER,destructiveSubmit:!0,titleIcon:jsxRuntimeExports.jsx(WarningSharp,{htmlColor:xt.palette.warning.dark}),maxWidth:"md",onSubmit:()=>{Tt(),dt(!1)},submitButtonProps:{disabled:!pt},submitText:"Void Careplan",children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Description$1,{children:jsxRuntimeExports.jsxs(Typography,{variant:"subtitle1",children:["Careplan: ",generateCareplanName(et.sitegroupSet," + ")]})}),jsxRuntimeExports.jsxs(Description$1,{children:[jsxRuntimeExports.jsx("div",{children:"This action should only be completed when:"}),jsxRuntimeExports.jsxs(List$1,{children:[jsxRuntimeExports.jsxs("li",{children:["The careplan is associated with an ",jsxRuntimeExports.jsx(BoldUnderline,{children:"incorrect patient or created in error"})]}),jsxRuntimeExports.jsxs("li",{children:["AND the patient has ",jsxRuntimeExports.jsx(BoldUnderline,{children:"NOT started"})," treatment"]})]}),jsxRuntimeExports.jsx("div",{children:CurrentAppConfig.CareplanVoidDescription})]}),!mt&&jsxRuntimeExports.jsxs(Description$1,{children:["If you need to revert this action please contact support:"," ",jsxRuntimeExports.jsx("a",{href:`mailto:${CurrentAppConfig.SupportEmail}`,children:CurrentAppConfig.SupportEmail})]}),jsxRuntimeExports.jsx(Typography,{paddingBottom:1,variant:"subtitle1",children:"Acknowledgement is required prior to voiding careplan*"}),jsxRuntimeExports.jsx(CheckboxField,{name:"voidAcknowledgement",label:"I acknowledge",onClick:()=>ht(!pt),width:"100%"})]})})]})},SvgMetastasis=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.999268 11.9985C0.999268 5.92853 5.92927 0.998535 11.9993 0.998535C18.0693 0.998535 22.9993 5.92853 22.9993 11.9985C22.9993 18.0685 18.0693 22.9985 11.9993 22.9985C5.92927 22.9985 0.999268 18.0685 0.999268 11.9985ZM2.99845 11.9984C2.99845 16.9584 7.03845 20.9984 11.9984 20.9984C16.9584 20.9984 20.9984 16.9584 20.9984 11.9984C20.9984 7.03842 16.9584 2.99842 11.9984 2.99842C7.03845 2.99842 2.99845 7.03842 2.99845 11.9984Z",fill:"#716E6A"}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0359 6.03516C10.0359 4.93516 10.9359 4.03516 12.0359 4.03516C13.1359 4.03516 14.0359 4.93516 14.0359 6.03516C14.0359 7.13516 13.1359 8.03516 12.0359 8.03516C10.9359 8.03516 10.0359 7.13516 10.0359 6.03516ZM6.03601 10.035C4.93601 10.035 4.03601 10.935 4.03601 12.035C4.03601 13.135 4.93601 14.035 6.03601 14.035C7.13601 14.035 8.03601 13.135 8.03601 12.035C8.03601 10.935 7.13601 10.035 6.03601 10.035ZM12.0359 16.0353C10.9359 16.0353 10.0359 16.9353 10.0359 18.0353C10.0359 19.1353 10.9359 20.0353 12.0359 20.0353C13.1359 20.0353 14.0359 19.1353 14.0359 18.0353C14.0359 16.9353 13.1359 16.0353 12.0359 16.0353ZM16.0358 12.035C16.0358 10.935 16.9358 10.035 18.0358 10.035C19.1358 10.035 20.0358 10.935 20.0358 12.035C20.0358 13.135 19.1358 14.035 18.0358 14.035C16.9358 14.035 16.0358 13.135 16.0358 12.035ZM12.0359 10.035C10.9359 10.035 10.0359 10.935 10.0359 12.035C10.0359 13.135 10.9359 14.035 12.0359 14.035C13.1359 14.035 14.0359 13.135 14.0359 12.035C14.0359 10.935 13.1359 10.035 12.0359 10.035Z",fill:"#716E6A"})),SvgSummary=et=>reactExports.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8333 0.421143H2.16667C1.25 0.421143 0.5 1.21062 0.5 2.17553V14.4562C0.5 15.4211 1.25 16.2106 2.16667 16.2106H13.8333C14.75 16.2106 15.5 15.4211 15.5 14.4562V2.17553C15.5 1.21062 14.75 0.421143 13.8333 0.421143ZM13.8332 14.4562H2.16657V2.17549H13.8332V14.4562ZM5.4999 6.56146H3.83323V12.7018H5.4999V6.56146ZM7.16657 3.92988H8.83323V12.7018H7.16657V3.92988ZM12.1666 9.19304H10.4999V12.7018H12.1666V9.19304Z"})),SvgLabs=et=>reactExports.createElement("svg",{width:20,height:22,viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M15.8366 11.8265C15.8366 11.8265 14.0234 13.8973 14.0234 15.1665C14.0234 16.2162 14.8393 17.075 15.8366 17.075C16.8338 17.075 17.6497 16.2162 17.6497 15.1665C17.6497 13.8973 15.8366 11.8265 15.8366 11.8265Z",fill:"black",fillOpacity:.54}),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5321 3.94019L16.0906 8.7386L14.7354 10.1652L14.3948 9.80667L6.88649 17.7102C5.82237 18.8303 4.10439 18.8303 3.04028 17.7102C1.97616 16.5901 1.97616 14.7817 3.04028 13.6616L10.5486 5.75803L10.1769 5.36674L11.5321 3.94019ZM7.13995 12.0591H9.70409L13.0965 8.48819L11.8144 7.13864L7.13995 12.0591Z",fill:"black",fillOpacity:.54})),SvgOutcomes=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("path",{d:"M3 14L3.5 14.07L8.07 9.5C7.89 8.85 8.06 8.11 8.59 7.59C9.37 6.8 10.63 6.8 11.41 7.59C11.94 8.11 12.11 8.85 11.93 9.5L14.5 12.07L15 12C15.18 12 15.35 12 15.5 12.07L19.07 8.5C19 8.35 19 8.18 19 8C19 7.46957 19.2107 6.96086 19.5858 6.58579C19.9609 6.21071 20.4696 6 21 6C21.5304 6 22.0391 6.21071 22.4142 6.58579C22.7893 6.96086 23 7.46957 23 8C23 8.53043 22.7893 9.03914 22.4142 9.41421C22.0391 9.78929 21.5304 10 21 10C20.82 10 20.65 10 20.5 9.93L16.93 13.5C17 13.65 17 13.82 17 14C17 14.5304 16.7893 15.0391 16.4142 15.4142C16.0391 15.7893 15.5304 16 15 16C14.4696 16 13.9609 15.7893 13.5858 15.4142C13.2107 15.0391 13 14.5304 13 14L13.07 13.5L10.5 10.93C10.18 11 9.82 11 9.5 10.93L4.93 15.5L5 16C5 16.5304 4.78929 17.0391 4.41421 17.4142C4.03914 17.7893 3.53043 18 3 18C2.46957 18 1.96086 17.7893 1.58579 17.4142C1.21071 17.0391 1 16.5304 1 16C1 15.4696 1.21071 14.9609 1.58579 14.5858C1.96086 14.2107 2.46957 14 3 14Z",fill:"#006D40"})),CAREPLAN_PAGES={CREATE:"",DIAGNOSIS_A:"primary",DIAGNOSIS_B:"newPrimary",STAGING:"tnmstaging",INTAKE:"intake",TREATMENT_INFO:"treatmentInfo",TEMPLATE_SELECTION:"templateSelection",SITESETUP:"linkSites",SIMULATION:"simulation",PRESCRIPTION:"prescription",VOLUMING:"voluming",SUBMISSION:"submission",CPOT:"cpot",SPECIAL_PHYSICS_CONSULT:"specialPhysicsConsult"},NO_TEMPLATES_MESSAGE="No careplan template/manual site selected.",VARIATION_MESSAGE="Variation from careplan template",PEER_REVIEW_MESSAGE="Variation from careplan template and peer review triggered",SUBMISSION_MESSAGE="This careplan has been submitted.",CPOT_SUBMISSION_MESSAGE="This careplan has been resubmitted, please ensure that you alert the treatment team of this change.",UNSUBMITTED_MESSAGE="You have unsubmitted changes, please resubmit.",CPOT_MESSAGE="You are making changes to a commenced treatment. Please remember to submit.";gql`
  query uxFeature($featureName: String!) {
    uxFeature(featureName: $featureName) {
      id
      name
    }
  }
`;const UX_FEATURE_OPTION_QUERY=gql`
  query uxFeatureOption($featureOptionName: String!) {
    uxFeatureOption(featureOptionName: $featureOptionName) {
      id
      name
      active
    }
  }
`,GET_RECENT_PATIENTS=gql`
  query GetRecentPatients {
    getRecentPatients {
      dob
      age
      fullName
      id
      ida
      gender
      emrInstance
      images {
        id
      }
      photoUrl
      address {
        city
        country
        formattedAddress
        id
        line1
        line2
        postcode
        state
      }
    }
  }
`,UPDATE_PATIENT_FORM_VISIBILITY=gql`
  mutation UpdatePatientFormVisibility(
    $patientId: ID!
    $showDistressThermometer: Boolean
    $showRegistration: Boolean
    $showHealthAssessment: Boolean
  ) {
    updatePatientFormVisibility(
      patientId: $patientId
      showDistressThermometer: $showDistressThermometer
      showRegistration: $showRegistration
      showHealthAssessment: $showHealthAssessment
    ) {
      profile {
        id
        showDistressThermometer
        showRegistration
        showHealthAssessment
      }
    }
  }
`,GET_USER=gql`
  query User {
    user {
      id
      isNurse
      isPso
      isRo
      isMo
      isShowcaseUser
      isSuperuser
      isRegistrar
      name
      hasStaffId
      primaryRole
      timezone
      isPractitioner
      state
    }
  }
`,GET_USER_PROFILE=gql`
  query UserAndLanguage {
    user {
      id
      isNurse
      isPso
      isRo
      isMo
      isShowcaseUser
      isSuperuser
      isRegistrar
      name
      hasStaffId
      primaryRole
      timezone
      isPractitioner
      state
    }
    language {
      language
    }
  }
`,GET_INTERNAL_ONCOLOGISTS=gql`
  query InternalOncologists {
    internalOncologists {
      id
      name
    }
  }
`,GET_PRACTITIONER=gql`
  query PractitionerQuery($patientId: ID!) {
    practitioner(patientId: $patientId) {
      id
      timezone
    }
  }
`,mapStatus={SIMULATION:"Simulation",PLAN_AIM:"Plan Aim",PRESCRIPTION:"Prescription",PRESCRIPTION_DIRECTIVE:"Prescription Directive"},VariationBanner=({variationMessage:et})=>jsxRuntimeExports.jsx("div",{className:"ro-careplan-variation-warning",children:jsxRuntimeExports.jsxs("div",{className:"variation-warning-content",children:[jsxRuntimeExports.jsx(SvgWarning,{className:"icon icon-form-warning"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"variation-warning-text",children:et||VARIATION_MESSAGE})]})}),SubmissionBanner=()=>jsxRuntimeExports.jsx("div",{className:"ro-careplan-submission-banner",children:jsxRuntimeExports.jsxs("div",{className:"submission-banner-content",children:[jsxRuntimeExports.jsx(SvgSuccess,{className:"icon icon-form-submission"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"submission-banner-text",children:SUBMISSION_MESSAGE})]})}),CpotSubmissionBanner=()=>jsxRuntimeExports.jsx("div",{className:"ro-careplan-submission-banner",children:jsxRuntimeExports.jsxs("div",{className:"submission-banner-content",children:[jsxRuntimeExports.jsx(SvgSuccess,{className:"icon icon-form-submission"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"submission-banner-text",children:CPOT_SUBMISSION_MESSAGE})]})}),UnsubmittedBanner=({lastSubmissionData:et,carePlanStatus:tt,handleDiscardChanges:rt,parentLastSubmissionDate:nt,parentCareplanStatus:lt})=>{const[ut,dt]=reactExports.useState(!1),pt=useTheme$1();return jsxRuntimeExports.jsxs("div",{className:"ro-careplan-unsubmitted-banner",children:[jsxRuntimeExports.jsx(StandardDialog,{id:"outcome-modal",open:ut,title:"Discard unsubmitted changes",onClose:dt,onSubmit:()=>{rt(),dt(!1)},submitText:"Continue",destructiveSubmit:!0,children:jsxRuntimeExports.jsx(Typography,{children:`You will lose all unsubmitted changes, and revert to the last submitted version ‘${mapStatus[lt]}’ at ${nt}. Are you sure you want to discard unsubmitted changes?`})}),jsxRuntimeExports.jsxs("div",{className:"unsubmitted-banner-content",children:[jsxRuntimeExports.jsx(SvgWarning,{className:"icon icon-form-unsubmitted"}),jsxRuntimeExports.jsxs(Typography,{"data-testid":"unsubmitted-banner",variant:"body2",children:[UNSUBMITTED_MESSAGE,et&&` Last submitted as '${mapStatus[tt]}' at: ${et}`]}),jsxRuntimeExports.jsx(Button,{onClick:()=>dt(!0),color:"info",variant:"text",sx:{marginLeft:"auto",textDecoration:"underline !important",fontSize:"14px",fontWeight:400,color:pt.palette.info.main},children:"Discard Changes"})]})]})},CpotBanner=()=>jsxRuntimeExports.jsx("div",{className:"ro-careplan-variation-warning",children:jsxRuntimeExports.jsxs("div",{className:"variation-warning-content",children:[jsxRuntimeExports.jsx(SvgWarning,{className:"icon icon-form-warning"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"variation-warning-text",children:CPOT_MESSAGE})]})}),hasSubmitted=(et,tt)=>et&&et.submittedAt&&tt?hooks(et.submittedAt).tz(tt).format("D MMM YYYY, h:mm a"):!1,changesFromLastEdited=et=>!!(et&&et.submittedAt&&(et.simulationModification||et.prescriptionModification||et.diagnosisModification)),CareplanBanners=({data:et,variation:tt,variationMessage:rt,forceUpdate:nt,refetchQueriesList:lt})=>{var Tt,Ct;const ut=useRouteMatch(),{id:dt}=ut.params,pt=et==null?void 0:et.careplan,ht=et&&et.careplan&&et.careplan.careplanStatus,mt=ht==="CPOT",xt=ht==="PRESCRIPTION"&&((Tt=et==null?void 0:et.careplan)==null?void 0:Tt.changeType)==="CPOT",Mt=pt==null?void 0:pt.parent,vt=Mt==null?void 0:Mt.careplanStatus,{data:Ot}=useQuery(GET_PRACTITIONER,{variables:{patientId:dt},skip:!dt}),At=reactExports.useMemo(()=>{var It;return((It=Ot==null?void 0:Ot.practitioner)==null?void 0:It.timezone)||CurrentAppConfig.DefaultTimezone},[(Ct=Ot==null?void 0:Ot.practitioner)==null?void 0:Ct.timezone]),[Rt]=useMutation(DISCARD_CAREPLAN_CHANGES,{awaitRefetchQueries:!0,refetchQueries:[...lt||[]]}),zt=()=>{Rt({variables:{id:(pt==null?void 0:pt.id)||0}}).then(It=>{nt&&nt()})};return jsxRuntimeExports.jsxs("div",{className:"ro-careplan-banner",children:[["Prescription","Plan Aim","Prescription Directive"].includes(mapStatus[ht])&&hasSubmitted(pt,At)&&!changesFromLastEdited(et==null?void 0:et.careplan)&&(xt?jsxRuntimeExports.jsx(CpotSubmissionBanner,{}):jsxRuntimeExports.jsx(SubmissionBanner,{})),!mt&&hasSubmitted(pt,At)&&changesFromLastEdited(et==null?void 0:et.careplan)&&jsxRuntimeExports.jsx(UnsubmittedBanner,{lastSubmissionData:hasSubmitted(pt,At),carePlanStatus:ht,handleDiscardChanges:zt,parentLastSubmissionDate:Mt?hasSubmitted(pt,At):void 0,parentCareplanStatus:vt}),tt&&!mt&&jsxRuntimeExports.jsx(VariationBanner,{variationMessage:rt}),mt&&jsxRuntimeExports.jsx(CpotBanner,{})]})},menuOptions=[{icon:isDemo?jsxRuntimeExports.jsx(PollOutlinedIcon,{color:"primary"}):jsxRuntimeExports.jsx(PollOutlinedIcon,{}),label:"Patient summary",linkTo:"/radiation/patient/:id/summary",id:"summary",disabled:!1,isExternal:!1,isVisible:!0},{icon:jsxRuntimeExports.jsx(default_1$k,{}),label:"Pathway",linkTo:"/radiation/patient/:id/pathway",id:"pathway",disabled:!1,isExternal:!1,isVisible:!!isDemo},{icon:jsxRuntimeExports.jsx(SvgDocuments,{}),label:"Documents",linkTo:"/radiation/patient/:id/documents/view",id:"documents",disabled:!1,isExternal:!1,isVisible:!0},{icon:jsxRuntimeExports.jsx(SvgEdit,{}),label:"Notes",linkTo:"/radiation/patient/:id/notes",id:"notes",disabled:!1,isExternal:!1,isVisible:!0},{icon:jsxRuntimeExports.jsx(SvgLabs,{}),label:"Labs",linkTo:"/radiation/patient/:id/labs",id:"labs",disabled:!1,isExternal:!1,isVisible:CurrentAppConfig.PatientSummary.labsEnabled},{icon:jsxRuntimeExports.jsx(Assignment,{}),label:"Treatment Review",linkTo:"/radiation/patient/:id/on-treatment-review",id:"on-treatment-review",disabled:!1,isExternal:!1,isVisible:CurrentAppConfig.OTRPage.isVisible},{icon:isDemo?jsxRuntimeExports.jsx(SvgOutcomes,{}):jsxRuntimeExports.jsx(Ballot,{}),label:"Outcomes",linkTo:"/radiation/patient/:id/outcomes",id:"outcomes",disabled:!1,isExternal:!1,isVisible:CurrentAppConfig.OutcomesPage.isVisible}],StyledCareplanName=styled$1("p")`
  font-style: normal;
  font-weight: normal;
  font-size: ${getRemSize(14)};
  line-height: 1.25em;
  text-transform: uppercase;
  color: ${et=>et.theme.palette.text.primary};
  min-width: 100%;
`,StyledDiagnosisCode=styled$1("span")`
  font-style: normal;
  font-weight: bold;
  font-size: ${getRemSize(14)};
  line-height: 1.25em;
  color: ${et=>et.theme.palette.text.primary};
`,StyledDiagnosisTitleDiv=styled$1("div")`
  margin: 0;
`,StyledDiagnosisCodeDescription=styled$1("span")`
  font-style: normal;
  font-weight: normal;
  font-size: ${getRemSize(14)};
  line-height: 1.25em;
  color: ${et=>et.theme.palette.text.primary};
`,StyledPatientNavContainer=styled$1(Stack$5)`
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 11px;

  &:hover {
    background: ${et=>et.theme.palette.action.hover};
    border-radius: 4px;

    a {
      text-decoration: none;
    }
  }

  p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
`,CareplanDetailWrapper=styled$1("div")`
  display: flex;
  align-items: center;
`,StyledScrollableRow=styled$1(Stack$5)`
  overflow-y: auto;
  max-height: 55vh;
  min-width: 100%;
`,StyledCareplanListItem=styled$1("div")`
  padding: 0 4px;
  cursor: pointer;
`,StyledNavLinksContainer=styled$1(Stack$5)`
  padding-top: 16px;
  padding-left: 7px;
  width: 100%;
`,UnsubmittedTooltip=styled$1("div")`
  color: ${et=>et.theme.palette.warning.dark};
  font-weight: bold;
  display: flex;
  align-items: center;
  svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }
`,PatientNavLinks=et=>{const{linkTo:tt,icon:rt,label:nt,id:lt,disabled:ut}=et.option,dt=useLocation(),pt=useRouteMatch(),mt=dt.pathname.split("/").includes(lt.toLowerCase()),{id:xt}=pt.params,Mt=generatePath(tt,{id:xt}),vt=mt?"active":"";return jsxRuntimeExports.jsx(NavLinks,{url:Mt,active:vt,label:nt,disabled:ut,icon:rt,id:lt})},ExternalNavLinks=et=>{const{linkTo:tt,icon:rt,label:nt,disabled:lt,id:ut}=et.option;return jsxRuntimeExports.jsx(NavLinks,{id:ut,url:{pathname:tt},icon:rt,label:nt,disabled:lt,active:"",additionalProps:{target:"_blank"}})},NavLinks=et=>{const{url:tt,active:rt,label:nt,disabled:lt,icon:ut,additionalProps:dt,id:pt}=et,ht=useTheme$1(),mt=`ro-nav-link-${pt}`,xt="ro-side-patient-nav-item-row",Mt=()=>jsxRuntimeExports.jsx("span",{className:"ro-side-patient-nav-item-title",children:jsxRuntimeExports.jsx(Typography,{variant:"body1",children:nt})});return jsxRuntimeExports.jsx("div",{"data-test-id":mt,className:xt,style:{backgroundColor:rt?ht.palette.secondary.light:"default",borderLeft:"4px solid",borderColor:rt?ht.palette.primary.main:"transparent"},children:lt?jsxRuntimeExports.jsxs("div",{className:"ro-side-patient-nav-item",children:[ut,jsxRuntimeExports.jsx(Mt,{})]}):jsxRuntimeExports.jsxs(Link$2,{to:tt,className:"ro-side-patient-nav-item",...dt,children:[ut,jsxRuntimeExports.jsx(Mt,{})]})})},CareplanNavLinks=({careplan:et,patientId:tt,index:rt})=>{var Yt,Kt,Jt;const[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(null),{id:pt,careplanStatus:ht,diagnosis:mt}=et,[xt,Mt]=reactExports.useState(!1),{data:vt}=useQuery(GET_PRACTITIONER,{variables:{patientId:tt},skip:!tt}),Ot=reactExports.useMemo(()=>{var Qt;return((Qt=vt==null?void 0:vt.practitioner)==null?void 0:Qt.timezone)||CurrentAppConfig.DefaultTimezone},[(Yt=vt==null?void 0:vt.practitioner)==null?void 0:Yt.timezone]),At=redirectCareplanPath(et,tt),Rt=ht.replace("_","-").toLowerCase(),zt=hasSubmitted(et,Ot)&&changesFromLastEdited(et),Tt=generateCareplanName(et.sitegroupSet),Ct=Qt=>{const{currentTarget:Bt}=Qt;dt(Bt),Mt(!xt)},It=()=>{Mt(!1),lt(!1)},Dt=CurrentAppConfig.CareplanVoidTimeRestriction,kt=hooks(et==null?void 0:et.submittedAt),qt=hooks.duration(hooks().diff(kt)).asHours(),Nt=et!=null&&et.submittedAt?qt<Dt:!0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tooltip,{arrow:!0,componentsProps:{tooltip:{sx:{color:"black",lineHeight:"1.4rem",bgcolor:"white",minWidth:"300px",fontSize:"0.9rem",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"}}},enterDelay:700,enterNextDelay:700,title:ht&&ht!==CAREPLAN_STATUS$2.voided&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{children:["Status:"," ",jsxRuntimeExports.jsx("strong",{style:{textTransform:"capitalize"},children:Rt==="cpot"?"CPOT":Rt})]}),jsxRuntimeExports.jsx("br",{}),Tt&&jsxRuntimeExports.jsxs("span",{children:["Careplan: ",jsxRuntimeExports.jsx("strong",{children:Tt})]}),zt&&jsxRuntimeExports.jsxs(UnsubmittedTooltip,{children:[jsxRuntimeExports.jsx(SvgErrorCircleFill,{})," Unsubmitted changes"]})]}),children:jsxRuntimeExports.jsx(StyledCareplanListItem,{onMouseEnter:()=>lt(!0),onMouseLeave:()=>lt(!1),"data-test-id":`careplan-nav-link-${rt}`,id:`template-${pt}`,children:jsxRuntimeExports.jsxs(StyledPatientNavContainer,{marginTop:1,style:{display:"flex",flexDirection:"row"},children:[jsxRuntimeExports.jsxs(CareplanDetailWrapper,{children:[jsxRuntimeExports.jsx(CareplanStatusBubble,{status:ht,hasUnsubmittedChanges:zt}),jsxRuntimeExports.jsx(Link$2,{to:At,"data-testid":`careplan-id-${pt}`,style:{textDecoration:"none"},children:Tt?jsxRuntimeExports.jsxs(StyledCareplanName,{children:[" ",Tt," "]}):jsxRuntimeExports.jsxs(StyledDiagnosisTitleDiv,{children:[jsxRuntimeExports.jsxs(StyledDiagnosisCode,{children:[" ",(Kt=mt.diagnosisCode)==null?void 0:Kt.diagnosisCode," "]}),jsxRuntimeExports.jsx(StyledDiagnosisCodeDescription,{children:((Jt=mt.diagnosisCode)==null?void 0:Jt.diagnosisDescription)||"Draft careplan"})]})})]}),et.careplanStatus!==CAREPLAN_STATUS$2.cpot&&Nt&&jsxRuntimeExports.jsx("div",{onClick:Ct,children:jsxRuntimeExports.jsx(Delete,{id:`dd-delete-${et.id}`,show:nt||xt})})]})},pt)}),jsxRuntimeExports.jsx(DeleteCareplan,{patientId:tt,careplan:et,handlePopUpClose:It,anchorEl:ut,isPopUpOpen:xt})]})},ROSidePatientNav=()=>{const et=useRouteMatch(),{id:tt}=et.params,rt=useHistory(),{setError:nt}=useErrorModalContext(),lt=useTheme$1(),ut=()=>{rt.push(`/radiation/patient/${tt}/careplan/create`)},{data:dt,error:pt}=useQuery(GET_PATIENT_CAREPLAN_LIST,{variables:{patientId:tt},fetchPolicy:"network-only"});return reactExports.useEffect(()=>{if(pt)return nt()},[pt]),jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(Stack$5,{sx:{alignItems:"center"},children:[jsxRuntimeExports.jsx(StyledNavLinksContainer,{children:jsxRuntimeExports.jsx(Stack$5,{className:"ro-side-patient-nav",marginBottom:1,children:[...menuOptions].filter(ht=>ht.isVisible).map(ht=>ht.isExternal?jsxRuntimeExports.jsx(ExternalNavLinks,{option:ht},ht.label):jsxRuntimeExports.jsx(PatientNavLinks,{option:ht},ht.label))})}),jsxRuntimeExports.jsx(Stack$5,{width:1,paddingLeft:1,marginBottom:1,sx:{borderWidth:"1px 0 1px 0",borderStyle:"solid",borderColor:lt.palette.grey[300],backgroundColor:lt.palette.action.hover},children:jsxRuntimeExports.jsx(Typography,{paddingLeft:1,lineHeight:"28px",variant:"caption",children:"Actions"})}),jsxRuntimeExports.jsx(Button,{id:"pts-create-careplan-button","data-testid":"pts-create-careplan-button",variant:"outlined",size:"large",sx:{width:.9},startIcon:jsxRuntimeExports.jsx(ControlPoint,{color:"primary"}),onClick:()=>{ut()},children:"Create careplan"}),jsxRuntimeExports.jsx(StyledScrollableRow,{children:dt&&dt.careplanList.filter(ht=>ht.careplanStatus!==CAREPLAN_STATUS$2.voided).map((ht,mt)=>jsxRuntimeExports.jsx(CareplanNavLinks,{careplan:ht,patientId:tt,index:mt},ht.id))})]})})},GreetingsSection=et=>{const tt="greetings-section",rt=isUs()?"ddd, MMMM DD YYYY":"ddd, DD MMMM YYYY",nt=generateGreetingText(),{showDateTime:lt,showProfilePhoto:ut,showGreeting:dt,showUsername:pt,username:ht}=et;return jsxRuntimeExports.jsxs("div",{id:tt,children:[lt&&jsxRuntimeExports.jsx("div",{className:"side-date-wrapper",children:hooks().format(rt)}),ut&&jsxRuntimeExports.jsx("div",{className:"side-user-photo",children:jsxRuntimeExports.jsx(ROProfilePhoto,{})}),dt&&jsxRuntimeExports.jsx("div",{className:"side-greeting-wrapper",children:nt}),pt&&jsxRuntimeExports.jsx("div",{className:"side-username-wrapper",children:ht})]})};GreetingsSection.defaultProps={showDateTime:!0,showProfilePhoto:!0,showGreeting:!0,showUsername:!0};const GET_PATIENT_PROFILE=gql`
  query patient($patientId: ID!) {
    patient(id: $patientId) {
      id
      firstName
      lastName
      middleName
      fullName
      email
      pxOptedIn
      pxOptOutComment
      horizonCenterId
      ida
      dob
      patientState
      gpFullName
      patientGender
      primaryPhone
      secondaryPhone
      healthMedicareNumber
      healthMedicareIrn
      medicareExpiryRawYear
      medicareExpiryRawMonth
      policyNumber
      insurances {
        id
        policyNumber
        payor {
          id
          name
        }
        expiryDate
      }
      healthPrivateHealthFundName
      userProfile {
        id
        registrationAccessType
        showDistressThermometer
        hasPatId1
        patientFeatures {
          distressThermometerEotEnabled
          distressThermometerEnabled
          managementPlansEnabled
          covidEnabled
        }
      }
      emergencyContact {
        id
        firstName
        lastName
        relationship
        homePhoneNumber
        mobilePhoneNumber
      }
      address {
        id
        line1
        line2
        city
        state
        country
        postcode
        formattedAddress
        ukFormattedAddress
      }
      allergy {
        id
        name
        reaction
        severity
        status
      }
      appointments {
        id
        startTime
        description
        location {
          id
          name
        }
        department {
          id
          alias
        }
      }
      allReferrers {
        id
        relationshipType
        practitioner {
          id
          qualification
          firstName
          lastName
          phone
        }
      }
      carepathPatientDiagnosis {
        id
        isPrimaryDiagnosis
        emrDiagnosisKey
        isMostRecent
        diagnosisCode {
          id
          diagnosisCode
          diagnosisDescription
          tumourStream {
            id
            name
          }
        }
      }
      tags {
        id
        tag {
          id
          name
        }
      }
      emrPatientId
      emrInstance
    }
  }
`,GET_PATIENT_PHOTO=gql`
  query GetPatientPhoto($patientId: ID!) {
    patientPhoto(id: $patientId) {
      id
      photoUrl
    }
  }
`,GET_LOCATION_PROFILE=gql`
  query GetLocationProfile($patientId: ID!) {
    locationsPsoSystem(patientId: $patientId) {
      id
      alias
    }
  }
`,GET_ALERTS=gql`
  query alerts($patientId: ID!) {
    alerts(patientId: $patientId) {
      id
      name
      comment
      status
      assigned
    }
  }
`,UPDATE_CENTER_MUTATION=gql`
  mutation updateHorizonCenter($id: ID!, $horizonCenterId: ID!) {
    updateHorizonCenter(id: $id, horizonCenterId: $horizonCenterId) {
      horizonCenterId
      patient {
        id
        horizonCenterId
      }
      user {
        id
      }
    }
  }
`,UPDATE_PATIENT_OPT_IN=gql`
  mutation UpdatePatient(
    $id: ID!
    $pxOptedIn: Boolean
    $email: String
    $primaryPhone: String
    $pxOptOutComment: String
  ) {
    updatePatient(
      id: $id
      pxOptedIn: $pxOptedIn
      email: $email
      primaryPhone: $primaryPhone
      pxOptOutComment: $pxOptOutComment
    ) {
      patient {
        id
        pxOptedIn
        email
        primaryPhone
        pxOptOutComment
      }
    }
  }
`,GET_TAG_OPTIONS=gql`
  query tagOptions {
    tagOptions {
      id
      name
    }
  }
`,UPDATE_PATIENT_TAGS=gql`
  mutation updatePatientTagItems($patientId: ID!, $updatedTags: [String]!) {
    updatePatientTagItems(patientId: $patientId, updatedTags: $updatedTags) {
      tagItems {
        id
        tag {
          id
          name
        }
      }
    }
  }
`,useInterval=(et,tt)=>{const rt=reactExports.useRef();reactExports.useEffect(()=>{rt.current=et},[et]),reactExports.useEffect(()=>{const nt=(...lt)=>rt.current(...lt);if(tt!==null){const lt=setInterval(nt,tt);return()=>clearInterval(lt)}},[tt])},PhotoWrapper$1=styled$1("div")`
  height: ${et=>et.size}px;
  width: ${et=>et.size}px;
  & img {
    object-fit: cover;
    width: ${et=>et.size}px;
    height: ${et=>et.size}px;
  }
  & svg {
    width: ${et=>et.size}px;
    height: ${et=>et.size}px;
  }
`,StyledPopupWindow=styled$1("div")`
  height: 320px;
  width: 320px;
  border-radius: 32px;
  overflow: hidden;
  & img {
    object-fit: cover;
    height: 320px;
    width: 320px;
    border-radius: 32px;
    border-radius: 32px;
    border: 4px solid ${et=>et.theme.palette.grey[300]};
  }
`,PHOTO_SIZE={sm:32,reg:48,md:64,lg:128},PhotoWidget=et=>{var At,Rt;const[tt,rt]=reactExports.useState(!0),[nt,lt]=reactExports.useState(0),[ut,dt]=React$4.useState(null),pt=et.numRetries?et.numRetries:3,ht=et.size?PHOTO_SIZE[et.size]:PHOTO_SIZE.md,mt=jsxRuntimeExports.jsx(SvgPatients,{viewBox:"0 0 32 32",height:"50%"}),{data:xt}=useQuery(GET_PATIENT_PHOTO,{variables:{patientId:et.patientId},skip:!!et.url||!et.patientId});useInterval(()=>{lt(nt+1)},tt&&nt<pt?1e4:null);const Mt=zt=>{dt(zt.currentTarget)},vt=()=>{dt(null)},Ot=!!ut;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PhotoWrapper$1,{"data-test-id":"photo-wrapper",size:ht,onMouseEnter:Mt,onMouseLeave:vt,children:et.url||(At=xt==null?void 0:xt.patientPhoto)!=null&&At.photoUrl?jsxRuntimeExports.jsx(Avatar,{sx:{width:ht,height:ht},src:et.url||xt.patientPhoto.photoUrl,hidden:tt,onLoad:()=>{rt(!1)},children:mt}):mt}),jsxRuntimeExports.jsx(Popover$1,{id:"mouse-over-popover",sx:{pointerEvents:"none",backgroundColor:"transparent",borderRadius:"28px",boxShadow:"none","& .MuiPopover-paper":{boxShadow:"none"}},open:Ot,anchorEl:ut,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:vt,disableRestoreFocus:!0,children:(et.url||((Rt=xt==null?void 0:xt.patientPhoto)==null?void 0:Rt.photoUrl))&&jsxRuntimeExports.jsx(StyledPopupWindow,{children:jsxRuntimeExports.jsx("img",{src:et.url||xt.patientPhoto.photoUrl})})})]})},StyledPatientName$1=styled$1("div")`
  font-size: 16px;
  line-height: 24px;
`,StyledPatientDetail=styled$1("div")`
  font-size: 13px;
  line-height: 15px;
`,StyledLink$7=styled$1(Link$2)`
  color: inherit;
  text-decoration: none;

  &:hover {
    color: inherit;
    text-decoration: none;
  }
`,StyledPopoverBody=styled$1(Stack$5)`
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;

  padding: 16px;
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
`,StyledPopoverName=styled$1("div")`
  font-size: 18px;
  line-height: 28px;
`,StyledPopoverField=styled$1("div")`
  padding: 4px 0;
`,StyledPopoverLabel=styled$1("div")`
  font-weight: 400;
`,StyledPopoverId=styled$1(StyledPopoverField)`
  color: ${et=>et.theme.palette.grey[600]};
`,RecentPatientBlock=({patient:et})=>{const tt=useTheme$1();return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Tooltip,{placement:"right",arrow:!0,componentsProps:{tooltip:{sx:{bgcolor:"white",color:"black",minWidth:"300px !important",fontSize:"0.9rem",boxShadow:tt.shadows[1]}},arrow:{sx:{color:"white","&::before":{backgroundColor:tt.palette.common.white,border:"1px solid #ddd"}}}},title:jsxRuntimeExports.jsxs(StyledPopoverBody,{direction:"row",children:[jsxRuntimeExports.jsx(PhotoWidget,{patientId:et.id,enableOverlay:!0,size:"reg"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(StyledPopoverName,{children:et.fullName}),jsxRuntimeExports.jsxs(StyledPopoverId,{children:["Patient ID: ",et.ida]}),jsxRuntimeExports.jsxs(StyledPopoverField,{children:[jsxRuntimeExports.jsx(StyledPopoverLabel,{children:"Date of birth"}),jsxRuntimeExports.jsx("div",{children:et.dob?`${hooks(et.dob).format("D MMM YYYY")} (age ${et.age})`:"N/A"})]}),jsxRuntimeExports.jsxs(StyledPopoverField,{children:[jsxRuntimeExports.jsx(StyledPopoverLabel,{children:"Address"}),jsxRuntimeExports.jsx("div",{children:et.address?et.address.formattedAddress:"N/A"})]})]})]}),children:jsxRuntimeExports.jsx(StyledLink$7,{to:`/navigator/patient/${et.id}/summary`,children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:"8px",padding:"4px",children:[jsxRuntimeExports.jsx(PhotoWidget,{patientId:et.id,enableOverlay:!0,size:"sm"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(StyledPatientName$1,{className:"patient-name",children:et.fullName}),jsxRuntimeExports.jsxs(StyledPatientDetail,{className:"patient-id",children:["ID: ",et.ida]}),jsxRuntimeExports.jsxs(StyledPatientDetail,{className:"patient-emr",children:["EMR: ",et.emrInstance||"-"]})]})]})})})})},StyledRecentPatientsContainer=styled$1("div")`
  padding-top: 8px;
  font-style: normal;
  font-weight: 400;
`,StyledSectionHeader=styled$1("div")`
  padding-left: 16px;
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  text-transform: uppercase;
  color: ${et=>et.theme.palette.grey[600]};
`,StyledContent=styled$1("div")`
  max-width: 240px;
`,StyledPlaceholder=styled$1("div")`
  padding: 16px;
`,RecentPatientSection=({data:et,hasPractitionerId:tt,limit:rt,showTitle:nt})=>{const lt=useTheme$1(),ut="recent-patient-section",dt=tt?"No recent patients available because you have not visited any patient summaries.":`Your account setup appears to be incomplete or missing information. Please contact ${lt.custom.support}.`,pt=reactExports.useMemo(()=>et.slice(0,rt),[et]);return jsxRuntimeExports.jsxs(StyledRecentPatientsContainer,{children:[nt&&jsxRuntimeExports.jsxs(StyledSectionHeader,{children:["Last ",rt," patients"]}),jsxRuntimeExports.jsx(StyledContent,{children:pt.length>0?pt.map((ht,mt)=>jsxRuntimeExports.jsx(RecentPatientBlock,{parentComponentID:ut,patient:ht},`${ut}-content-${mt}`)):jsxRuntimeExports.jsx(StyledPlaceholder,{children:dt})})]})};RecentPatientSection.defaultProps={showTitle:!0,limit:5};const SidePatientNav=et=>{const{state:tt}=reactExports.useContext(UserContext),{RO:rt,PSO:nt,NURSE:lt}=RoleType,ut={[rt]:ROSidePatientNav,[nt]:PSOSidePatientNav,[lt]:NurseSidePatientNav};if(tt.primaryRole){const dt=ut[tt.primaryRole];return jsxRuntimeExports.jsx(dt,{...et})}return jsxRuntimeExports.jsx(reactExports.Fragment,{})};var isMergeableObject=function(tt){return isNonNullObject(tt)&&!isSpecial(tt)};function isNonNullObject(et){return!!et&&typeof et=="object"}function isSpecial(et){var tt=Object.prototype.toString.call(et);return tt==="[object RegExp]"||tt==="[object Date]"||isReactElement(et)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE$1=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(et){return et.$$typeof===REACT_ELEMENT_TYPE$1}function emptyTarget(et){return Array.isArray(et)?[]:{}}function cloneUnlessOtherwiseSpecified(et,tt){return tt.clone!==!1&&tt.isMergeableObject(et)?deepmerge(emptyTarget(et),et,tt):et}function defaultArrayMerge(et,tt,rt){return et.concat(tt).map(function(nt){return cloneUnlessOtherwiseSpecified(nt,rt)})}function mergeObject(et,tt,rt){var nt={};return rt.isMergeableObject(et)&&Object.keys(et).forEach(function(lt){nt[lt]=cloneUnlessOtherwiseSpecified(et[lt],rt)}),Object.keys(tt).forEach(function(lt){!rt.isMergeableObject(tt[lt])||!et[lt]?nt[lt]=cloneUnlessOtherwiseSpecified(tt[lt],rt):nt[lt]=deepmerge(et[lt],tt[lt],rt)}),nt}function deepmerge(et,tt,rt){rt=rt||{},rt.arrayMerge=rt.arrayMerge||defaultArrayMerge,rt.isMergeableObject=rt.isMergeableObject||isMergeableObject;var nt=Array.isArray(tt),lt=Array.isArray(et),ut=nt===lt;return ut?nt?rt.arrayMerge(et,tt,rt):mergeObject(et,tt,rt):cloneUnlessOtherwiseSpecified(tt,rt)}deepmerge.all=function(tt,rt){if(!Array.isArray(tt))throw new Error("first argument should be an array");return tt.reduce(function(nt,lt){return deepmerge(nt,lt,rt)},{})};var deepmerge_1=deepmerge,freeGlobal$4=typeof global$2=="object"&&global$2&&global$2.Object===Object&&global$2,freeSelf$3=typeof self=="object"&&self&&self.Object===Object&&self,root$c=freeGlobal$4||freeSelf$3||Function("return this")(),Symbol$6=root$c.Symbol,objectProto$t=Object.prototype,hasOwnProperty$n=objectProto$t.hasOwnProperty,nativeObjectToString$3=objectProto$t.toString,symToStringTag$3=Symbol$6?Symbol$6.toStringTag:void 0;function getRawTag$2(et){var tt=hasOwnProperty$n.call(et,symToStringTag$3),rt=et[symToStringTag$3];try{et[symToStringTag$3]=void 0;var nt=!0}catch{}var lt=nativeObjectToString$3.call(et);return nt&&(tt?et[symToStringTag$3]=rt:delete et[symToStringTag$3]),lt}var objectProto$s=Object.prototype,nativeObjectToString$2=objectProto$s.toString;function objectToString$5(et){return nativeObjectToString$2.call(et)}var nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$6?Symbol$6.toStringTag:void 0;function baseGetTag$6(et){return et==null?et===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(et)?getRawTag$2(et):objectToString$5(et)}function overArg$2(et,tt){return function(rt){return et(tt(rt))}}var getPrototype=overArg$2(Object.getPrototypeOf,Object);function isObjectLike$9(et){return et!=null&&typeof et=="object"}var objectTag$6="[object Object]",funcProto$4=Function.prototype,objectProto$r=Object.prototype,funcToString$4=funcProto$4.toString,hasOwnProperty$m=objectProto$r.hasOwnProperty,objectCtorString=funcToString$4.call(Object);function isPlainObject$3(et){if(!isObjectLike$9(et)||baseGetTag$6(et)!=objectTag$6)return!1;var tt=getPrototype(et);if(tt===null)return!0;var rt=hasOwnProperty$m.call(tt,"constructor")&&tt.constructor;return typeof rt=="function"&&rt instanceof rt&&funcToString$4.call(rt)==objectCtorString}function listCacheClear$2(){this.__data__=[],this.size=0}function eq$3(et,tt){return et===tt||et!==et&&tt!==tt}function assocIndexOf$5(et,tt){for(var rt=et.length;rt--;)if(eq$3(et[rt][0],tt))return rt;return-1}var arrayProto$1=Array.prototype,splice$1=arrayProto$1.splice;function listCacheDelete$2(et){var tt=this.__data__,rt=assocIndexOf$5(tt,et);if(rt<0)return!1;var nt=tt.length-1;return rt==nt?tt.pop():splice$1.call(tt,rt,1),--this.size,!0}function listCacheGet$2(et){var tt=this.__data__,rt=assocIndexOf$5(tt,et);return rt<0?void 0:tt[rt][1]}function listCacheHas$2(et){return assocIndexOf$5(this.__data__,et)>-1}function listCacheSet$2(et,tt){var rt=this.__data__,nt=assocIndexOf$5(rt,et);return nt<0?(++this.size,rt.push([et,tt])):rt[nt][1]=tt,this}function ListCache$5(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt<rt;){var nt=et[tt];this.set(nt[0],nt[1])}}ListCache$5.prototype.clear=listCacheClear$2;ListCache$5.prototype.delete=listCacheDelete$2;ListCache$5.prototype.get=listCacheGet$2;ListCache$5.prototype.has=listCacheHas$2;ListCache$5.prototype.set=listCacheSet$2;function stackClear$2(){this.__data__=new ListCache$5,this.size=0}function stackDelete$2(et){var tt=this.__data__,rt=tt.delete(et);return this.size=tt.size,rt}function stackGet$2(et){return this.__data__.get(et)}function stackHas$2(et){return this.__data__.has(et)}function isObject$d(et){var tt=typeof et;return et!=null&&(tt=="object"||tt=="function")}var asyncTag$1="[object AsyncFunction]",funcTag$4="[object Function]",genTag$2="[object GeneratorFunction]",proxyTag$1="[object Proxy]";function isFunction$6(et){if(!isObject$d(et))return!1;var tt=baseGetTag$6(et);return tt==funcTag$4||tt==genTag$2||tt==asyncTag$1||tt==proxyTag$1}var coreJsData$2=root$c["__core-js_shared__"],maskSrcKey$1=function(){var et=/[^.]+$/.exec(coreJsData$2&&coreJsData$2.keys&&coreJsData$2.keys.IE_PROTO||"");return et?"Symbol(src)_1."+et:""}();function isMasked$2(et){return!!maskSrcKey$1&&maskSrcKey$1 in et}var funcProto$3=Function.prototype,funcToString$3=funcProto$3.toString;function toSource$3(et){if(et!=null){try{return funcToString$3.call(et)}catch{}try{return et+""}catch{}}return""}var reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$1=/^\[object .+?Constructor\]$/,funcProto$2=Function.prototype,objectProto$q=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$l=objectProto$q.hasOwnProperty,reIsNative$1=RegExp("^"+funcToString$2.call(hasOwnProperty$l).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$2(et){if(!isObject$d(et)||isMasked$2(et))return!1;var tt=isFunction$6(et)?reIsNative$1:reIsHostCtor$1;return tt.test(toSource$3(et))}function getValue$4(et,tt){return et==null?void 0:et[tt]}function getNative$8(et,tt){var rt=getValue$4(et,tt);return baseIsNative$2(rt)?rt:void 0}var Map$6=getNative$8(root$c,"Map"),nativeCreate$5=getNative$8(Object,"create");function hashClear$2(){this.__data__=nativeCreate$5?nativeCreate$5(null):{},this.size=0}function hashDelete$2(et){var tt=this.has(et)&&delete this.__data__[et];return this.size-=tt?1:0,tt}var HASH_UNDEFINED$4="__lodash_hash_undefined__",objectProto$p=Object.prototype,hasOwnProperty$k=objectProto$p.hasOwnProperty;function hashGet$2(et){var tt=this.__data__;if(nativeCreate$5){var rt=tt[et];return rt===HASH_UNDEFINED$4?void 0:rt}return hasOwnProperty$k.call(tt,et)?tt[et]:void 0}var objectProto$o=Object.prototype,hasOwnProperty$j=objectProto$o.hasOwnProperty;function hashHas$2(et){var tt=this.__data__;return nativeCreate$5?tt[et]!==void 0:hasOwnProperty$j.call(tt,et)}var HASH_UNDEFINED$3="__lodash_hash_undefined__";function hashSet$2(et,tt){var rt=this.__data__;return this.size+=this.has(et)?0:1,rt[et]=nativeCreate$5&&tt===void 0?HASH_UNDEFINED$3:tt,this}function Hash$a(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt<rt;){var nt=et[tt];this.set(nt[0],nt[1])}}Hash$a.prototype.clear=hashClear$2;Hash$a.prototype.delete=hashDelete$2;Hash$a.prototype.get=hashGet$2;Hash$a.prototype.has=hashHas$2;Hash$a.prototype.set=hashSet$2;function mapCacheClear$2(){this.size=0,this.__data__={hash:new Hash$a,map:new(Map$6||ListCache$5),string:new Hash$a}}function isKeyable$2(et){var tt=typeof et;return tt=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?et!=="__proto__":et===null}function getMapData$5(et,tt){var rt=et.__data__;return isKeyable$2(tt)?rt[typeof tt=="string"?"string":"hash"]:rt.map}function mapCacheDelete$2(et){var tt=getMapData$5(this,et).delete(et);return this.size-=tt?1:0,tt}function mapCacheGet$2(et){return getMapData$5(this,et).get(et)}function mapCacheHas$2(et){return getMapData$5(this,et).has(et)}function mapCacheSet$2(et,tt){var rt=getMapData$5(this,et),nt=rt.size;return rt.set(et,tt),this.size+=rt.size==nt?0:1,this}function MapCache$4(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt<rt;){var nt=et[tt];this.set(nt[0],nt[1])}}MapCache$4.prototype.clear=mapCacheClear$2;MapCache$4.prototype.delete=mapCacheDelete$2;MapCache$4.prototype.get=mapCacheGet$2;MapCache$4.prototype.has=mapCacheHas$2;MapCache$4.prototype.set=mapCacheSet$2;var LARGE_ARRAY_SIZE$1=200;function stackSet$2(et,tt){var rt=this.__data__;if(rt instanceof ListCache$5){var nt=rt.__data__;if(!Map$6||nt.length<LARGE_ARRAY_SIZE$1-1)return nt.push([et,tt]),this.size=++rt.size,this;rt=this.__data__=new MapCache$4(nt)}return rt.set(et,tt),this.size=rt.size,this}function Stack$4(et){var tt=this.__data__=new ListCache$5(et);this.size=tt.size}Stack$4.prototype.clear=stackClear$2;Stack$4.prototype.delete=stackDelete$2;Stack$4.prototype.get=stackGet$2;Stack$4.prototype.has=stackHas$2;Stack$4.prototype.set=stackSet$2;function arrayEach(et,tt){for(var rt=-1,nt=et==null?0:et.length;++rt<nt&&tt(et[rt],rt,et)!==!1;);return et}var defineProperty$3=function(){try{var et=getNative$8(Object,"defineProperty");return et({},"",{}),et}catch{}}();function baseAssignValue$3(et,tt,rt){tt=="__proto__"&&defineProperty$3?defineProperty$3(et,tt,{configurable:!0,enumerable:!0,value:rt,writable:!0}):et[tt]=rt}var objectProto$n=Object.prototype,hasOwnProperty$i=objectProto$n.hasOwnProperty;function assignValue(et,tt,rt){var nt=et[tt];(!(hasOwnProperty$i.call(et,tt)&&eq$3(nt,rt))||rt===void 0&&!(tt in et))&&baseAssignValue$3(et,tt,rt)}function copyObject(et,tt,rt,nt){var lt=!rt;rt||(rt={});for(var ut=-1,dt=tt.length;++ut<dt;){var pt=tt[ut],ht=void 0;ht===void 0&&(ht=et[pt]),lt?baseAssignValue$3(rt,pt,ht):assignValue(rt,pt,ht)}return rt}function baseTimes$2(et,tt){for(var rt=-1,nt=Array(et);++rt<et;)nt[rt]=tt(rt);return nt}var argsTag$5="[object Arguments]";function baseIsArguments$2(et){return isObjectLike$9(et)&&baseGetTag$6(et)==argsTag$5}var objectProto$m=Object.prototype,hasOwnProperty$h=objectProto$m.hasOwnProperty,propertyIsEnumerable$3=objectProto$m.propertyIsEnumerable,isArguments$4=baseIsArguments$2(function(){return arguments}())?baseIsArguments$2:function(et){return isObjectLike$9(et)&&hasOwnProperty$h.call(et,"callee")&&!propertyIsEnumerable$3.call(et,"callee")},isArray$f=Array.isArray;function stubFalse$1(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$C=moduleExports$2?root$c.Buffer:void 0,nativeIsBuffer=Buffer$C?Buffer$C.isBuffer:void 0,isBuffer$5=nativeIsBuffer||stubFalse$1,MAX_SAFE_INTEGER$3=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$3(et,tt){var rt=typeof et;return tt=tt??MAX_SAFE_INTEGER$3,!!tt&&(rt=="number"||rt!="symbol"&&reIsUint$1.test(et))&&et>-1&&et%1==0&&et<tt}var MAX_SAFE_INTEGER$2=9007199254740991;function isLength$4(et){return typeof et=="number"&&et>-1&&et%1==0&&et<=MAX_SAFE_INTEGER$2}var argsTag$4="[object Arguments]",arrayTag$3="[object Array]",boolTag$4="[object Boolean]",dateTag$4="[object Date]",errorTag$3="[object Error]",funcTag$3="[object Function]",mapTag$8="[object Map]",numberTag$4="[object Number]",objectTag$5="[object Object]",regexpTag$4="[object RegExp]",setTag$8="[object Set]",stringTag$4="[object String]",weakMapTag$4="[object WeakMap]",arrayBufferTag$4="[object ArrayBuffer]",dataViewTag$6="[object DataView]",float32Tag$3="[object Float32Array]",float64Tag$3="[object Float64Array]",int8Tag$3="[object Int8Array]",int16Tag$3="[object Int16Array]",int32Tag$3="[object Int32Array]",uint8Tag$3="[object Uint8Array]",uint8ClampedTag$3="[object Uint8ClampedArray]",uint16Tag$3="[object Uint16Array]",uint32Tag$3="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$3]=typedArrayTags$1[float64Tag$3]=typedArrayTags$1[int8Tag$3]=typedArrayTags$1[int16Tag$3]=typedArrayTags$1[int32Tag$3]=typedArrayTags$1[uint8Tag$3]=typedArrayTags$1[uint8ClampedTag$3]=typedArrayTags$1[uint16Tag$3]=typedArrayTags$1[uint32Tag$3]=!0;typedArrayTags$1[argsTag$4]=typedArrayTags$1[arrayTag$3]=typedArrayTags$1[arrayBufferTag$4]=typedArrayTags$1[boolTag$4]=typedArrayTags$1[dataViewTag$6]=typedArrayTags$1[dateTag$4]=typedArrayTags$1[errorTag$3]=typedArrayTags$1[funcTag$3]=typedArrayTags$1[mapTag$8]=typedArrayTags$1[numberTag$4]=typedArrayTags$1[objectTag$5]=typedArrayTags$1[regexpTag$4]=typedArrayTags$1[setTag$8]=typedArrayTags$1[stringTag$4]=typedArrayTags$1[weakMapTag$4]=!1;function baseIsTypedArray$2(et){return isObjectLike$9(et)&&isLength$4(et.length)&&!!typedArrayTags$1[baseGetTag$6(et)]}function baseUnary$2(et){return function(tt){return et(tt)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$4.process,nodeUtil$1=function(){try{var et=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return et||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeIsTypedArray$1=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray$5=nodeIsTypedArray$1?baseUnary$2(nodeIsTypedArray$1):baseIsTypedArray$2,objectProto$l=Object.prototype,hasOwnProperty$g=objectProto$l.hasOwnProperty;function arrayLikeKeys$2(et,tt){var rt=isArray$f(et),nt=!rt&&isArguments$4(et),lt=!rt&&!nt&&isBuffer$5(et),ut=!rt&&!nt&&!lt&&isTypedArray$5(et),dt=rt||nt||lt||ut,pt=dt?baseTimes$2(et.length,String):[],ht=pt.length;for(var mt in et)(tt||hasOwnProperty$g.call(et,mt))&&!(dt&&(mt=="length"||lt&&(mt=="offset"||mt=="parent")||ut&&(mt=="buffer"||mt=="byteLength"||mt=="byteOffset")||isIndex$3(mt,ht)))&&pt.push(mt);return pt}var objectProto$k=Object.prototype;function isPrototype$3(et){var tt=et&&et.constructor,rt=typeof tt=="function"&&tt.prototype||objectProto$k;return et===rt}var nativeKeys$2=overArg$2(Object.keys,Object),objectProto$j=Object.prototype,hasOwnProperty$f=objectProto$j.hasOwnProperty;function baseKeys$3(et){if(!isPrototype$3(et))return nativeKeys$2(et);var tt=[];for(var rt in Object(et))hasOwnProperty$f.call(et,rt)&&rt!="constructor"&&tt.push(rt);return tt}function isArrayLike$4(et){return et!=null&&isLength$4(et.length)&&!isFunction$6(et)}function keys$5(et){return isArrayLike$4(et)?arrayLikeKeys$2(et):baseKeys$3(et)}function baseAssign(et,tt){return et&&copyObject(tt,keys$5(tt),et)}function nativeKeysIn(et){var tt=[];if(et!=null)for(var rt in Object(et))tt.push(rt);return tt}var objectProto$i=Object.prototype,hasOwnProperty$e=objectProto$i.hasOwnProperty;function baseKeysIn(et){if(!isObject$d(et))return nativeKeysIn(et);var tt=isPrototype$3(et),rt=[];for(var nt in et)nt=="constructor"&&(tt||!hasOwnProperty$e.call(et,nt))||rt.push(nt);return rt}function keysIn(et){return isArrayLike$4(et)?arrayLikeKeys$2(et,!0):baseKeysIn(et)}function baseAssignIn(et,tt){return et&&copyObject(tt,keysIn(tt),et)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$B=moduleExports?root$c.Buffer:void 0,allocUnsafe=Buffer$B?Buffer$B.allocUnsafe:void 0;function cloneBuffer(et,tt){if(tt)return et.slice();var rt=et.length,nt=allocUnsafe?allocUnsafe(rt):new et.constructor(rt);return et.copy(nt),nt}function copyArray(et,tt){var rt=-1,nt=et.length;for(tt||(tt=Array(nt));++rt<nt;)tt[rt]=et[rt];return tt}function arrayFilter$2(et,tt){for(var rt=-1,nt=et==null?0:et.length,lt=0,ut=[];++rt<nt;){var dt=et[rt];tt(dt,rt,et)&&(ut[lt++]=dt)}return ut}function stubArray$2(){return[]}var objectProto$h=Object.prototype,propertyIsEnumerable$2=objectProto$h.propertyIsEnumerable,nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbols$2=nativeGetSymbols$2?function(et){return et==null?[]:(et=Object(et),arrayFilter$2(nativeGetSymbols$2(et),function(tt){return propertyIsEnumerable$2.call(et,tt)}))}:stubArray$2;function copySymbols(et,tt){return copyObject(et,getSymbols$2(et),tt)}function arrayPush$2(et,tt){for(var rt=-1,nt=tt.length,lt=et.length;++rt<nt;)et[lt+rt]=tt[rt];return et}var nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols$1?function(et){for(var tt=[];et;)arrayPush$2(tt,getSymbols$2(et)),et=getPrototype(et);return tt}:stubArray$2;function copySymbolsIn(et,tt){return copyObject(et,getSymbolsIn(et),tt)}function baseGetAllKeys$2(et,tt,rt){var nt=tt(et);return isArray$f(et)?nt:arrayPush$2(nt,rt(et))}function getAllKeys$2(et){return baseGetAllKeys$2(et,keys$5,getSymbols$2)}function getAllKeysIn(et){return baseGetAllKeys$2(et,keysIn,getSymbolsIn)}var DataView$3=getNative$8(root$c,"DataView"),Promise$3=getNative$8(root$c,"Promise"),Set$4=getNative$8(root$c,"Set"),WeakMap$3=getNative$8(root$c,"WeakMap"),mapTag$7="[object Map]",objectTag$4="[object Object]",promiseTag$1="[object Promise]",setTag$7="[object Set]",weakMapTag$3="[object WeakMap]",dataViewTag$5="[object DataView]",dataViewCtorString$1=toSource$3(DataView$3),mapCtorString$1=toSource$3(Map$6),promiseCtorString$1=toSource$3(Promise$3),setCtorString$1=toSource$3(Set$4),weakMapCtorString$1=toSource$3(WeakMap$3),getTag$4=baseGetTag$6;(DataView$3&&getTag$4(new DataView$3(new ArrayBuffer(1)))!=dataViewTag$5||Map$6&&getTag$4(new Map$6)!=mapTag$7||Promise$3&&getTag$4(Promise$3.resolve())!=promiseTag$1||Set$4&&getTag$4(new Set$4)!=setTag$7||WeakMap$3&&getTag$4(new WeakMap$3)!=weakMapTag$3)&&(getTag$4=function(et){var tt=baseGetTag$6(et),rt=tt==objectTag$4?et.constructor:void 0,nt=rt?toSource$3(rt):"";if(nt)switch(nt){case dataViewCtorString$1:return dataViewTag$5;case mapCtorString$1:return mapTag$7;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$7;case weakMapCtorString$1:return weakMapTag$3}return tt});var objectProto$g=Object.prototype,hasOwnProperty$d=objectProto$g.hasOwnProperty;function initCloneArray(et){var tt=et.length,rt=new et.constructor(tt);return tt&&typeof et[0]=="string"&&hasOwnProperty$d.call(et,"index")&&(rt.index=et.index,rt.input=et.input),rt}var Uint8Array$3=root$c.Uint8Array;function cloneArrayBuffer(et){var tt=new et.constructor(et.byteLength);return new Uint8Array$3(tt).set(new Uint8Array$3(et)),tt}function cloneDataView(et,tt){var rt=tt?cloneArrayBuffer(et.buffer):et.buffer;return new et.constructor(rt,et.byteOffset,et.byteLength)}var reFlags=/\w*$/;function cloneRegExp(et){var tt=new et.constructor(et.source,reFlags.exec(et));return tt.lastIndex=et.lastIndex,tt}var symbolProto$3=Symbol$6?Symbol$6.prototype:void 0,symbolValueOf$1=symbolProto$3?symbolProto$3.valueOf:void 0;function cloneSymbol(et){return symbolValueOf$1?Object(symbolValueOf$1.call(et)):{}}function cloneTypedArray(et,tt){var rt=tt?cloneArrayBuffer(et.buffer):et.buffer;return new et.constructor(rt,et.byteOffset,et.length)}var boolTag$3="[object Boolean]",dateTag$3="[object Date]",mapTag$6="[object Map]",numberTag$3="[object Number]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",symbolTag$6="[object Symbol]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]";function initCloneByTag(et,tt,rt){var nt=et.constructor;switch(tt){case arrayBufferTag$3:return cloneArrayBuffer(et);case boolTag$3:case dateTag$3:return new nt(+et);case dataViewTag$4:return cloneDataView(et,rt);case float32Tag$2:case float64Tag$2:case int8Tag$2:case int16Tag$2:case int32Tag$2:case uint8Tag$2:case uint8ClampedTag$2:case uint16Tag$2:case uint32Tag$2:return cloneTypedArray(et,rt);case mapTag$6:return new nt;case numberTag$3:case stringTag$3:return new nt(et);case regexpTag$3:return cloneRegExp(et);case setTag$6:return new nt;case symbolTag$6:return cloneSymbol(et)}}var objectCreate=Object.create,baseCreate=function(){function et(){}return function(tt){if(!isObject$d(tt))return{};if(objectCreate)return objectCreate(tt);et.prototype=tt;var rt=new et;return et.prototype=void 0,rt}}();function initCloneObject(et){return typeof et.constructor=="function"&&!isPrototype$3(et)?baseCreate(getPrototype(et)):{}}var mapTag$5="[object Map]";function baseIsMap(et){return isObjectLike$9(et)&&getTag$4(et)==mapTag$5}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary$2(nodeIsMap):baseIsMap,setTag$5="[object Set]";function baseIsSet(et){return isObjectLike$9(et)&&getTag$4(et)==setTag$5}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary$2(nodeIsSet):baseIsSet,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",symbolTag$5="[object Symbol]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$3]=cloneableTags[arrayTag$2]=cloneableTags[arrayBufferTag$2]=cloneableTags[dataViewTag$3]=cloneableTags[boolTag$2]=cloneableTags[dateTag$2]=cloneableTags[float32Tag$1]=cloneableTags[float64Tag$1]=cloneableTags[int8Tag$1]=cloneableTags[int16Tag$1]=cloneableTags[int32Tag$1]=cloneableTags[mapTag$4]=cloneableTags[numberTag$2]=cloneableTags[objectTag$3]=cloneableTags[regexpTag$2]=cloneableTags[setTag$4]=cloneableTags[stringTag$2]=cloneableTags[symbolTag$5]=cloneableTags[uint8Tag$1]=cloneableTags[uint8ClampedTag$1]=cloneableTags[uint16Tag$1]=cloneableTags[uint32Tag$1]=!0;cloneableTags[errorTag$2]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag$2]=!1;function baseClone$1(et,tt,rt,nt,lt,ut){var dt,pt=tt&CLONE_DEEP_FLAG$1,ht=tt&CLONE_FLAT_FLAG,mt=tt&CLONE_SYMBOLS_FLAG$2;if(dt!==void 0)return dt;if(!isObject$d(et))return et;var xt=isArray$f(et);if(xt){if(dt=initCloneArray(et),!pt)return copyArray(et,dt)}else{var Mt=getTag$4(et),vt=Mt==funcTag$2||Mt==genTag$1;if(isBuffer$5(et))return cloneBuffer(et,pt);if(Mt==objectTag$3||Mt==argsTag$3||vt&&!lt){if(dt=ht||vt?{}:initCloneObject(et),!pt)return ht?copySymbolsIn(et,baseAssignIn(dt,et)):copySymbols(et,baseAssign(dt,et))}else{if(!cloneableTags[Mt])return lt?et:{};dt=initCloneByTag(et,Mt,pt)}}ut||(ut=new Stack$4);var Ot=ut.get(et);if(Ot)return Ot;ut.set(et,dt),isSet(et)?et.forEach(function(zt){dt.add(baseClone$1(zt,tt,rt,zt,et,ut))}):isMap(et)&&et.forEach(function(zt,Tt){dt.set(Tt,baseClone$1(zt,tt,rt,Tt,et,ut))});var At=mt?ht?getAllKeysIn:getAllKeys$2:ht?keysIn:keys$5,Rt=xt?void 0:At(et);return arrayEach(Rt||et,function(zt,Tt){Rt&&(Tt=zt,zt=et[Tt]),assignValue(dt,Tt,baseClone$1(zt,tt,rt,Tt,et,ut))}),dt}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep(et){return baseClone$1(et,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG$1)}var isArray$e=Array.isArray,keyList$1=Object.keys,hasProp$1=Object.prototype.hasOwnProperty,hasElementType=typeof Element<"u";function equal$1(et,tt){if(et===tt)return!0;if(et&&tt&&typeof et=="object"&&typeof tt=="object"){var rt=isArray$e(et),nt=isArray$e(tt),lt,ut,dt;if(rt&&nt){if(ut=et.length,ut!=tt.length)return!1;for(lt=ut;lt--!==0;)if(!equal$1(et[lt],tt[lt]))return!1;return!0}if(rt!=nt)return!1;var pt=et instanceof Date,ht=tt instanceof Date;if(pt!=ht)return!1;if(pt&&ht)return et.getTime()==tt.getTime();var mt=et instanceof RegExp,xt=tt instanceof RegExp;if(mt!=xt)return!1;if(mt&&xt)return et.toString()==tt.toString();var Mt=keyList$1(et);if(ut=Mt.length,ut!==keyList$1(tt).length)return!1;for(lt=ut;lt--!==0;)if(!hasProp$1.call(tt,Mt[lt]))return!1;if(hasElementType&&et instanceof Element&&tt instanceof Element)return et===tt;for(lt=ut;lt--!==0;)if(dt=Mt[lt],!(dt==="_owner"&&et.$$typeof)&&!equal$1(et[dt],tt[dt]))return!1;return!0}return et!==et&&tt!==tt}var reactFastCompare=function(tt,rt){try{return equal$1(tt,rt)}catch(nt){if(nt.message&&nt.message.match(/stack|recursion/i)||nt.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",nt.name,nt.message),!1;throw nt}};const isEqual$5=getDefaultExportFromCjs$1(reactFastCompare);var CLONE_SYMBOLS_FLAG=4;function clone$1(et){return baseClone$1(et,CLONE_SYMBOLS_FLAG)}function arrayMap$2(et,tt){for(var rt=-1,nt=et==null?0:et.length,lt=Array(nt);++rt<nt;)lt[rt]=tt(et[rt],rt,et);return lt}var symbolTag$4="[object Symbol]";function isSymbol$8(et){return typeof et=="symbol"||isObjectLike$9(et)&&baseGetTag$6(et)==symbolTag$4}var FUNC_ERROR_TEXT$3="Expected a function";function memoize$3(et,tt){if(typeof et!="function"||tt!=null&&typeof tt!="function")throw new TypeError(FUNC_ERROR_TEXT$3);var rt=function(){var nt=arguments,lt=tt?tt.apply(this,nt):nt[0],ut=rt.cache;if(ut.has(lt))return ut.get(lt);var dt=et.apply(this,nt);return rt.cache=ut.set(lt,dt)||ut,dt};return rt.cache=new(memoize$3.Cache||MapCache$4),rt}memoize$3.Cache=MapCache$4;var MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$2(et){var tt=memoize$3(et,function(nt){return rt.size===MAX_MEMOIZE_SIZE$1&&rt.clear(),nt}),rt=tt.cache;return tt}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=memoizeCapped$2(function(et){var tt=[];return et.charCodeAt(0)===46&&tt.push(""),et.replace(rePropName$1,function(rt,nt,lt,ut){tt.push(lt?ut.replace(reEscapeChar$1,"$1"):nt||rt)}),tt}),INFINITY$5=1/0;function toKey$5(et){if(typeof et=="string"||isSymbol$8(et))return et;var tt=et+"";return tt=="0"&&1/et==-INFINITY$5?"-0":tt}var INFINITY$4=1/0,symbolProto$2=Symbol$6?Symbol$6.prototype:void 0,symbolToString$2=symbolProto$2?symbolProto$2.toString:void 0;function baseToString$3(et){if(typeof et=="string")return et;if(isArray$f(et))return arrayMap$2(et,baseToString$3)+"";if(isSymbol$8(et))return symbolToString$2?symbolToString$2.call(et):"";var tt=et+"";return tt=="0"&&1/et==-INFINITY$4?"-0":tt}function toString$a(et){return et==null?"":baseToString$3(et)}function toPath(et){return isArray$f(et)?arrayMap$2(et,toKey$5):isSymbol$8(et)?[et]:copyArray(stringToPath$2(toString$a(et)))}function _extends$7(){return _extends$7=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$7.apply(this,arguments)}function _inheritsLoose(et,tt){et.prototype=Object.create(tt.prototype),et.prototype.constructor=et,et.__proto__=tt}function _objectWithoutPropertiesLoose$2(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function _assertThisInitialized(et){if(et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et}var FormikContext=reactExports.createContext(void 0);FormikContext.displayName="FormikContext";var FormikProvider=FormikContext.Provider,FormikConsumer=FormikContext.Consumer;function useFormikContext(){var et=reactExports.useContext(FormikContext);return et}var isEmptyArray=function(tt){return Array.isArray(tt)&&tt.length===0},isFunction$5=function(tt){return typeof tt=="function"},isObject$c=function(tt){return tt!==null&&typeof tt=="object"},isInteger=function(tt){return String(Math.floor(Number(tt)))===tt},isString$4=function(tt){return Object.prototype.toString.call(tt)==="[object String]"},isEmptyChildren=function(tt){return reactExports.Children.count(tt)===0},isPromise=function(tt){return isObject$c(tt)&&isFunction$5(tt.then)};function getIn$1(et,tt,rt,nt){nt===void 0&&(nt=0);for(var lt=toPath(tt);et&&nt<lt.length;)et=et[lt[nt++]];return nt!==lt.length&&!et||et===void 0?rt:et}function setIn(et,tt,rt){for(var nt=clone$1(et),lt=nt,ut=0,dt=toPath(tt);ut<dt.length-1;ut++){var pt=dt[ut],ht=getIn$1(et,dt.slice(0,ut+1));if(ht&&(isObject$c(ht)||Array.isArray(ht)))lt=lt[pt]=clone$1(ht);else{var mt=dt[ut+1];lt=lt[pt]=isInteger(mt)&&Number(mt)>=0?[]:{}}}return(ut===0?et:lt)[dt[ut]]===rt?et:(rt===void 0?delete lt[dt[ut]]:lt[dt[ut]]=rt,ut===0&&rt===void 0&&delete nt[dt[ut]],nt)}function setNestedObjectValues(et,tt,rt,nt){rt===void 0&&(rt=new WeakMap),nt===void 0&&(nt={});for(var lt=0,ut=Object.keys(et);lt<ut.length;lt++){var dt=ut[lt],pt=et[dt];isObject$c(pt)?rt.get(pt)||(rt.set(pt,!0),nt[dt]=Array.isArray(pt)?[]:{},setNestedObjectValues(pt,tt,rt,nt[dt])):nt[dt]=tt}return nt}function formikReducer(et,tt){switch(tt.type){case"SET_VALUES":return _extends$7({},et,{values:tt.payload});case"SET_TOUCHED":return _extends$7({},et,{touched:tt.payload});case"SET_ERRORS":return isEqual$5(et.errors,tt.payload)?et:_extends$7({},et,{errors:tt.payload});case"SET_STATUS":return _extends$7({},et,{status:tt.payload});case"SET_ISSUBMITTING":return _extends$7({},et,{isSubmitting:tt.payload});case"SET_ISVALIDATING":return _extends$7({},et,{isValidating:tt.payload});case"SET_FIELD_VALUE":return _extends$7({},et,{values:setIn(et.values,tt.payload.field,tt.payload.value)});case"SET_FIELD_TOUCHED":return _extends$7({},et,{touched:setIn(et.touched,tt.payload.field,tt.payload.value)});case"SET_FIELD_ERROR":return _extends$7({},et,{errors:setIn(et.errors,tt.payload.field,tt.payload.value)});case"RESET_FORM":return _extends$7({},et,tt.payload);case"SET_FORMIK_STATE":return tt.payload(et);case"SUBMIT_ATTEMPT":return _extends$7({},et,{touched:setNestedObjectValues(et.values,!0),isSubmitting:!0,submitCount:et.submitCount+1});case"SUBMIT_FAILURE":return _extends$7({},et,{isSubmitting:!1});case"SUBMIT_SUCCESS":return _extends$7({},et,{isSubmitting:!1});default:return et}}var emptyErrors={},emptyTouched={};function useFormik(et){var tt=et.validateOnChange,rt=tt===void 0?!0:tt,nt=et.validateOnBlur,lt=nt===void 0?!0:nt,ut=et.validateOnMount,dt=ut===void 0?!1:ut,pt=et.isInitialValid,ht=et.enableReinitialize,mt=ht===void 0?!1:ht,xt=et.onSubmit,Mt=_objectWithoutPropertiesLoose$2(et,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),vt=_extends$7({validateOnChange:rt,validateOnBlur:lt,validateOnMount:dt,onSubmit:xt},Mt),Ot=reactExports.useRef(vt.initialValues),At=reactExports.useRef(vt.initialErrors||emptyErrors),Rt=reactExports.useRef(vt.initialTouched||emptyTouched),zt=reactExports.useRef(vt.initialStatus),Tt=reactExports.useRef(!1),Ct=reactExports.useRef({});reactExports.useEffect(function(){return Tt.current=!0,function(){Tt.current=!1}},[]);var It=reactExports.useState(0),Dt=It[1],kt=reactExports.useRef({values:cloneDeep(vt.initialValues),errors:cloneDeep(vt.initialErrors)||emptyErrors,touched:cloneDeep(vt.initialTouched)||emptyTouched,status:cloneDeep(vt.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),qt=kt.current,Nt=reactExports.useCallback(function(kr){var $r=kt.current;kt.current=formikReducer($r,kr),$r!==kt.current&&Dt(function(yr){return yr+1})},[]),Yt=reactExports.useCallback(function(kr,$r){return new Promise(function(yr,Or){var Dr=vt.validate(kr,$r);Dr==null?yr(emptyErrors):isPromise(Dr)?Dr.then(function(Fr){yr(Fr||emptyErrors)},function(Fr){Or(Fr)}):yr(Dr)})},[vt.validate]),Kt=reactExports.useCallback(function(kr,$r){var yr=vt.validationSchema,Or=isFunction$5(yr)?yr($r):yr,Dr=$r&&Or.validateAt?Or.validateAt($r,kr):validateYupSchema(kr,Or);return new Promise(function(Fr,Yr){Dr.then(function(){Fr(emptyErrors)},function(Gr){Gr.name==="ValidationError"?Fr(yupToFormErrors(Gr)):Yr(Gr)})})},[vt.validationSchema]),Jt=reactExports.useCallback(function(kr,$r){return new Promise(function(yr){return yr(Ct.current[kr].validate($r))})},[]),Qt=reactExports.useCallback(function(kr){var $r=Object.keys(Ct.current).filter(function(Or){return isFunction$5(Ct.current[Or].validate)}),yr=$r.length>0?$r.map(function(Or){return Jt(Or,getIn$1(kr,Or))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(yr).then(function(Or){return Or.reduce(function(Dr,Fr,Yr){return Fr==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Fr&&(Dr=setIn(Dr,$r[Yr],Fr)),Dr},{})})},[Jt]),Bt=reactExports.useCallback(function(kr){return Promise.all([Qt(kr),vt.validationSchema?Kt(kr):{},vt.validate?Yt(kr):{}]).then(function($r){var yr=$r[0],Or=$r[1],Dr=$r[2],Fr=deepmerge_1.all([yr,Or,Dr],{arrayMerge});return Fr})},[vt.validate,vt.validationSchema,Qt,Yt,Kt]),Ft=useEventCallback(function(kr){return kr===void 0&&(kr=qt.values),Nt({type:"SET_ISVALIDATING",payload:!0}),Bt(kr).then(function($r){return Tt.current&&(Nt({type:"SET_ISVALIDATING",payload:!1}),Nt({type:"SET_ERRORS",payload:$r})),$r})});reactExports.useEffect(function(){dt&&Tt.current===!0&&isEqual$5(Ot.current,vt.initialValues)&&Ft(Ot.current)},[dt,Ft]);var $t=reactExports.useCallback(function(kr){var $r=kr&&kr.values?kr.values:Ot.current,yr=kr&&kr.errors?kr.errors:At.current?At.current:vt.initialErrors||{},Or=kr&&kr.touched?kr.touched:Rt.current?Rt.current:vt.initialTouched||{},Dr=kr&&kr.status?kr.status:zt.current?zt.current:vt.initialStatus;Ot.current=$r,At.current=yr,Rt.current=Or,zt.current=Dr;var Fr=function(){Nt({type:"RESET_FORM",payload:{isSubmitting:!!kr&&!!kr.isSubmitting,errors:yr,touched:Or,status:Dr,values:$r,isValidating:!!kr&&!!kr.isValidating,submitCount:kr&&kr.submitCount&&typeof kr.submitCount=="number"?kr.submitCount:0}})};if(vt.onReset){var Yr=vt.onReset(qt.values,ur);isPromise(Yr)?Yr.then(Fr):Fr()}else Fr()},[vt.initialErrors,vt.initialStatus,vt.initialTouched,vt.onReset]);reactExports.useEffect(function(){Tt.current===!0&&!isEqual$5(Ot.current,vt.initialValues)&&mt&&(Ot.current=vt.initialValues,$t(),dt&&Ft(Ot.current))},[mt,vt.initialValues,$t,dt,Ft]),reactExports.useEffect(function(){mt&&Tt.current===!0&&!isEqual$5(At.current,vt.initialErrors)&&(At.current=vt.initialErrors||emptyErrors,Nt({type:"SET_ERRORS",payload:vt.initialErrors||emptyErrors}))},[mt,vt.initialErrors]),reactExports.useEffect(function(){mt&&Tt.current===!0&&!isEqual$5(Rt.current,vt.initialTouched)&&(Rt.current=vt.initialTouched||emptyTouched,Nt({type:"SET_TOUCHED",payload:vt.initialTouched||emptyTouched}))},[mt,vt.initialTouched]),reactExports.useEffect(function(){mt&&Tt.current===!0&&!isEqual$5(zt.current,vt.initialStatus)&&(zt.current=vt.initialStatus,Nt({type:"SET_STATUS",payload:vt.initialStatus}))},[mt,vt.initialStatus,vt.initialTouched]);var jt=useEventCallback(function(kr){if(Ct.current[kr]&&isFunction$5(Ct.current[kr].validate)){var $r=getIn$1(qt.values,kr),yr=Ct.current[kr].validate($r);return isPromise(yr)?(Nt({type:"SET_ISVALIDATING",payload:!0}),yr.then(function(Or){return Or}).then(function(Or){Nt({type:"SET_FIELD_ERROR",payload:{field:kr,value:Or}}),Nt({type:"SET_ISVALIDATING",payload:!1})})):(Nt({type:"SET_FIELD_ERROR",payload:{field:kr,value:yr}}),Promise.resolve(yr))}else if(vt.validationSchema)return Nt({type:"SET_ISVALIDATING",payload:!0}),Kt(qt.values,kr).then(function(Or){return Or}).then(function(Or){Nt({type:"SET_FIELD_ERROR",payload:{field:kr,value:getIn$1(Or,kr)}}),Nt({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Wt=reactExports.useCallback(function(kr,$r){var yr=$r.validate;Ct.current[kr]={validate:yr}},[]),Ut=reactExports.useCallback(function(kr){delete Ct.current[kr]},[]),Vt=useEventCallback(function(kr,$r){Nt({type:"SET_TOUCHED",payload:kr});var yr=$r===void 0?lt:$r;return yr?Ft(qt.values):Promise.resolve()}),Ht=reactExports.useCallback(function(kr){Nt({type:"SET_ERRORS",payload:kr})},[]),Gt=useEventCallback(function(kr,$r){var yr=isFunction$5(kr)?kr(qt.values):kr;Nt({type:"SET_VALUES",payload:yr});var Or=$r===void 0?rt:$r;return Or?Ft(yr):Promise.resolve()}),Zt=reactExports.useCallback(function(kr,$r){Nt({type:"SET_FIELD_ERROR",payload:{field:kr,value:$r}})},[]),Xt=useEventCallback(function(kr,$r,yr){Nt({type:"SET_FIELD_VALUE",payload:{field:kr,value:$r}});var Or=yr===void 0?rt:yr;return Or?Ft(setIn(qt.values,kr,$r)):Promise.resolve()}),er=reactExports.useCallback(function(kr,$r){var yr=$r,Or=kr,Dr;if(!isString$4(kr)){kr.persist&&kr.persist();var Fr=kr.target?kr.target:kr.currentTarget,Yr=Fr.type,Gr=Fr.name,Jr=Fr.id,jr=Fr.value,Zr=Fr.checked,Xr=Fr.outerHTML,cn=Fr.options,Qr=Fr.multiple;yr=$r||Gr||Jr,Or=/number|range/.test(Yr)?(Dr=parseFloat(jr),isNaN(Dr)?"":Dr):/checkbox/.test(Yr)?getValueForCheckbox(getIn$1(qt.values,yr),Zr,jr):cn&&Qr?getSelectedValues(cn):jr}yr&&Xt(yr,Or)},[Xt,qt.values]),nr=useEventCallback(function(kr){if(isString$4(kr))return function($r){return er($r,kr)};er(kr)}),or=useEventCallback(function(kr,$r,yr){$r===void 0&&($r=!0),Nt({type:"SET_FIELD_TOUCHED",payload:{field:kr,value:$r}});var Or=yr===void 0?lt:yr;return Or?Ft(qt.values):Promise.resolve()}),rr=reactExports.useCallback(function(kr,$r){kr.persist&&kr.persist();var yr=kr.target,Or=yr.name,Dr=yr.id,Fr=yr.outerHTML,Yr=$r||Or||Dr;or(Yr,!0)},[or]),cr=useEventCallback(function(kr){if(isString$4(kr))return function($r){return rr($r,kr)};rr(kr)}),ir=reactExports.useCallback(function(kr){isFunction$5(kr)?Nt({type:"SET_FORMIK_STATE",payload:kr}):Nt({type:"SET_FORMIK_STATE",payload:function(){return kr}})},[]),dr=reactExports.useCallback(function(kr){Nt({type:"SET_STATUS",payload:kr})},[]),gr=reactExports.useCallback(function(kr){Nt({type:"SET_ISSUBMITTING",payload:kr})},[]),br=useEventCallback(function(){return Nt({type:"SUBMIT_ATTEMPT"}),Ft().then(function(kr){var $r=kr instanceof Error,yr=!$r&&Object.keys(kr).length===0;if(yr){var Or;try{if(Or=xr(),Or===void 0)return}catch(Dr){throw Dr}return Promise.resolve(Or).then(function(Dr){return Tt.current&&Nt({type:"SUBMIT_SUCCESS"}),Dr}).catch(function(Dr){if(Tt.current)throw Nt({type:"SUBMIT_FAILURE"}),Dr})}else if(Tt.current&&(Nt({type:"SUBMIT_FAILURE"}),$r))throw kr})}),ar=useEventCallback(function(kr){kr&&kr.preventDefault&&isFunction$5(kr.preventDefault)&&kr.preventDefault(),kr&&kr.stopPropagation&&isFunction$5(kr.stopPropagation)&&kr.stopPropagation(),br().catch(function($r){console.warn("Warning: An unhandled error was caught from submitForm()",$r)})}),ur={resetForm:$t,validateForm:Ft,validateField:jt,setErrors:Ht,setFieldError:Zt,setFieldTouched:or,setFieldValue:Xt,setStatus:dr,setSubmitting:gr,setTouched:Vt,setValues:Gt,setFormikState:ir,submitForm:br},xr=useEventCallback(function(){return xt(qt.values,ur)}),Mr=useEventCallback(function(kr){kr&&kr.preventDefault&&isFunction$5(kr.preventDefault)&&kr.preventDefault(),kr&&kr.stopPropagation&&isFunction$5(kr.stopPropagation)&&kr.stopPropagation(),$t()}),Ar=reactExports.useCallback(function(kr){return{value:getIn$1(qt.values,kr),error:getIn$1(qt.errors,kr),touched:!!getIn$1(qt.touched,kr),initialValue:getIn$1(Ot.current,kr),initialTouched:!!getIn$1(Rt.current,kr),initialError:getIn$1(At.current,kr)}},[qt.errors,qt.touched,qt.values]),Ir=reactExports.useCallback(function(kr){return{setValue:function(yr,Or){return Xt(kr,yr,Or)},setTouched:function(yr,Or){return or(kr,yr,Or)},setError:function(yr){return Zt(kr,yr)}}},[Xt,or,Zt]),Rr=reactExports.useCallback(function(kr){var $r=isObject$c(kr),yr=$r?kr.name:kr,Or=getIn$1(qt.values,yr),Dr={name:yr,value:Or,onChange:nr,onBlur:cr};if($r){var Fr=kr.type,Yr=kr.value,Gr=kr.as,Jr=kr.multiple;Fr==="checkbox"?Yr===void 0?Dr.checked=!!Or:(Dr.checked=!!(Array.isArray(Or)&&~Or.indexOf(Yr)),Dr.value=Yr):Fr==="radio"?(Dr.checked=Or===Yr,Dr.value=Yr):Gr==="select"&&Jr&&(Dr.value=Dr.value||[],Dr.multiple=!0)}return Dr},[cr,nr,qt.values]),wr=reactExports.useMemo(function(){return!isEqual$5(Ot.current,qt.values)},[Ot.current,qt.values]),qr=reactExports.useMemo(function(){return typeof pt<"u"?wr?qt.errors&&Object.keys(qt.errors).length===0:pt!==!1&&isFunction$5(pt)?pt(vt):pt:qt.errors&&Object.keys(qt.errors).length===0},[pt,wr,qt.errors,vt]),Hr=_extends$7({},qt,{initialValues:Ot.current,initialErrors:At.current,initialTouched:Rt.current,initialStatus:zt.current,handleBlur:cr,handleChange:nr,handleReset:Mr,handleSubmit:ar,resetForm:$t,setErrors:Ht,setFormikState:ir,setFieldTouched:or,setFieldValue:Xt,setFieldError:Zt,setStatus:dr,setSubmitting:gr,setTouched:Vt,setValues:Gt,submitForm:br,validateForm:Ft,validateField:jt,isValid:qr,dirty:wr,unregisterField:Ut,registerField:Wt,getFieldProps:Rr,getFieldMeta:Ar,getFieldHelpers:Ir,validateOnBlur:lt,validateOnChange:rt,validateOnMount:dt});return Hr}function Formik(et){var tt=useFormik(et),rt=et.component,nt=et.children,lt=et.render,ut=et.innerRef;return reactExports.useImperativeHandle(ut,function(){return tt}),reactExports.createElement(FormikProvider,{value:tt},rt?reactExports.createElement(rt,tt):lt?lt(tt):nt?isFunction$5(nt)?nt(tt):isEmptyChildren(nt)?null:reactExports.Children.only(nt):null)}function warnAboutMissingIdentifier(et){var tt=et.htmlContent,rt=et.documentationAnchorLink,nt=et.handlerName;console.warn("Warning: Formik called `"+nt+"`, but you forgot to pass an `id` or `name` attribute to your input:\n    "+tt+`
    Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+rt+`
  `)}function yupToFormErrors(et){var tt={};if(et.inner){if(et.inner.length===0)return setIn(tt,et.path,et.message);for(var lt=et.inner,rt=Array.isArray(lt),nt=0,lt=rt?lt:lt[Symbol.iterator]();;){var ut;if(rt){if(nt>=lt.length)break;ut=lt[nt++]}else{if(nt=lt.next(),nt.done)break;ut=nt.value}var dt=ut;getIn$1(tt,dt.path)||(tt=setIn(tt,dt.path,dt.message))}}return tt}function validateYupSchema(et,tt,rt,nt){rt===void 0&&(rt=!1);var lt=prepareDataForValidation(et);return tt[rt?"validateSync":"validate"](lt,{abortEarly:!1,context:nt||lt})}function prepareDataForValidation(et){var tt=Array.isArray(et)?[]:{};for(var rt in et)if(Object.prototype.hasOwnProperty.call(et,rt)){var nt=String(rt);Array.isArray(et[nt])===!0?tt[nt]=et[nt].map(function(lt){return Array.isArray(lt)===!0||isPlainObject$3(lt)?prepareDataForValidation(lt):lt!==""?lt:void 0}):isPlainObject$3(et[nt])?tt[nt]=prepareDataForValidation(et[nt]):tt[nt]=et[nt]!==""?et[nt]:void 0}return tt}function arrayMerge(et,tt,rt){var nt=et.slice();return tt.forEach(function(ut,dt){if(typeof nt[dt]>"u"){var pt=rt.clone!==!1,ht=pt&&rt.isMergeableObject(ut);nt[dt]=ht?deepmerge_1(Array.isArray(ut)?[]:{},ut,rt):ut}else rt.isMergeableObject(ut)?nt[dt]=deepmerge_1(et[dt],ut,rt):et.indexOf(ut)===-1&&nt.push(ut)}),nt}function getSelectedValues(et){return Array.from(et).filter(function(tt){return tt.selected}).map(function(tt){return tt.value})}function getValueForCheckbox(et,tt,rt){if(typeof et=="boolean")return!!tt;var nt=[],lt=!1,ut=-1;if(Array.isArray(et))nt=et,ut=et.indexOf(rt),lt=ut>=0;else if(!rt||rt=="true"||rt=="false")return!!tt;return tt&&rt&&!lt?nt.concat(rt):lt?nt.slice(0,ut).concat(nt.slice(ut+1)):nt}var useIsomorphicLayoutEffect$4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useEventCallback(et){var tt=reactExports.useRef(et);return useIsomorphicLayoutEffect$4(function(){tt.current=et}),reactExports.useCallback(function(){for(var rt=arguments.length,nt=new Array(rt),lt=0;lt<rt;lt++)nt[lt]=arguments[lt];return tt.current.apply(void 0,nt)},[])}function useField(et){var tt=useFormikContext(),rt=tt.getFieldProps,nt=tt.getFieldMeta,lt=tt.getFieldHelpers,ut=tt.registerField,dt=tt.unregisterField,pt=isObject$c(et),ht=pt?et:{name:et},mt=ht.name,xt=ht.validate;reactExports.useEffect(function(){return mt&&ut(mt,{validate:xt}),function(){mt&&dt(mt)}},[ut,dt,mt,xt]);var Mt=reactExports.useMemo(function(){return lt(mt)},[lt,mt]);return[rt(ht),nt(mt),Mt]}function Field(et){var tt=et.validate,rt=et.name,nt=et.render,lt=et.children,ut=et.as,dt=et.component,pt=et.className,ht=_objectWithoutPropertiesLoose$2(et,["validate","name","render","children","as","component","className"]),mt=useFormikContext(),xt=_objectWithoutPropertiesLoose$2(mt,["validate","validationSchema"]),Mt=xt.registerField,vt=xt.unregisterField;reactExports.useEffect(function(){return Mt(rt,{validate:tt}),function(){vt(rt)}},[Mt,vt,rt,tt]);var Ot=xt.getFieldProps(_extends$7({name:rt},ht)),At=xt.getFieldMeta(rt),Rt={field:Ot,form:xt};if(nt)return nt(_extends$7({},Rt,{meta:At}));if(isFunction$5(lt))return lt(_extends$7({},Rt,{meta:At}));if(dt){if(typeof dt=="string"){var zt=ht.innerRef,Tt=_objectWithoutPropertiesLoose$2(ht,["innerRef"]);return reactExports.createElement(dt,_extends$7({ref:zt},Ot,Tt,{className:pt}),lt)}return reactExports.createElement(dt,_extends$7({field:Ot,form:xt},ht,{className:pt}),lt)}var Ct=ut||"input";if(typeof Ct=="string"){var It=ht.innerRef,Dt=_objectWithoutPropertiesLoose$2(ht,["innerRef"]);return reactExports.createElement(Ct,_extends$7({ref:It},Ot,Dt,{className:pt}),lt)}return reactExports.createElement(Ct,_extends$7({},Ot,ht,{className:pt}),lt)}var Form$3=reactExports.forwardRef(function(et,tt){var rt=et.action,nt=_objectWithoutPropertiesLoose$2(et,["action"]),lt=rt??"#",ut=useFormikContext(),dt=ut.handleReset,pt=ut.handleSubmit;return reactExports.createElement("form",_extends$7({onSubmit:pt,ref:tt,onReset:dt,action:lt},nt))});Form$3.displayName="Form";function connect$2(et){var tt=function(lt){return reactExports.createElement(FormikConsumer,null,function(ut){return reactExports.createElement(et,_extends$7({},lt,{formik:ut}))})},rt=et.displayName||et.name||et.constructor&&et.constructor.name||"Component";return tt.WrappedComponent=et,tt.displayName="FormikConnect("+rt+")",hoistStatics(tt,et)}var move$2=function(tt,rt,nt){var lt=copyArrayLike(tt),ut=lt[rt];return lt.splice(rt,1),lt.splice(nt,0,ut),lt},swap=function(tt,rt,nt){var lt=copyArrayLike(tt),ut=lt[rt];return lt[rt]=lt[nt],lt[nt]=ut,lt},insert$1=function(tt,rt,nt){var lt=copyArrayLike(tt);return lt.splice(rt,0,nt),lt},replace=function(tt,rt,nt){var lt=copyArrayLike(tt);return lt[rt]=nt,lt},copyArrayLike=function(tt){if(tt){if(Array.isArray(tt))return[].concat(tt);var rt=Object.keys(tt).map(function(nt){return parseInt(nt)}).reduce(function(nt,lt){return lt>nt?lt:nt},0);return Array.from(_extends$7({},tt,{length:rt+1}))}else return[]},createAlterationHandler=function(tt,rt){var nt=typeof tt=="function"?tt:rt;return function(lt){if(Array.isArray(lt)||isObject$c(lt)){var ut=copyArrayLike(lt);return nt(ut)}return lt}},FieldArrayInner=function(et){_inheritsLoose(tt,et);function tt(nt){var lt;return lt=et.call(this,nt)||this,lt.updateArrayField=function(ut,dt,pt){var ht=lt.props,mt=ht.name,xt=ht.formik.setFormikState;xt(function(Mt){var vt=createAlterationHandler(pt,ut),Ot=createAlterationHandler(dt,ut),At=setIn(Mt.values,mt,ut(getIn$1(Mt.values,mt))),Rt=pt?vt(getIn$1(Mt.errors,mt)):void 0,zt=dt?Ot(getIn$1(Mt.touched,mt)):void 0;return isEmptyArray(Rt)&&(Rt=void 0),isEmptyArray(zt)&&(zt=void 0),_extends$7({},Mt,{values:At,errors:pt?setIn(Mt.errors,mt,Rt):Mt.errors,touched:dt?setIn(Mt.touched,mt,zt):Mt.touched})})},lt.push=function(ut){return lt.updateArrayField(function(dt){return[].concat(copyArrayLike(dt),[cloneDeep(ut)])},!1,!1)},lt.handlePush=function(ut){return function(){return lt.push(ut)}},lt.swap=function(ut,dt){return lt.updateArrayField(function(pt){return swap(pt,ut,dt)},!0,!0)},lt.handleSwap=function(ut,dt){return function(){return lt.swap(ut,dt)}},lt.move=function(ut,dt){return lt.updateArrayField(function(pt){return move$2(pt,ut,dt)},!0,!0)},lt.handleMove=function(ut,dt){return function(){return lt.move(ut,dt)}},lt.insert=function(ut,dt){return lt.updateArrayField(function(pt){return insert$1(pt,ut,dt)},function(pt){return insert$1(pt,ut,null)},function(pt){return insert$1(pt,ut,null)})},lt.handleInsert=function(ut,dt){return function(){return lt.insert(ut,dt)}},lt.replace=function(ut,dt){return lt.updateArrayField(function(pt){return replace(pt,ut,dt)},!1,!1)},lt.handleReplace=function(ut,dt){return function(){return lt.replace(ut,dt)}},lt.unshift=function(ut){var dt=-1;return lt.updateArrayField(function(pt){var ht=pt?[ut].concat(pt):[ut];return dt=ht.length,ht},function(pt){return pt?[null].concat(pt):[null]},function(pt){return pt?[null].concat(pt):[null]}),dt},lt.handleUnshift=function(ut){return function(){return lt.unshift(ut)}},lt.handleRemove=function(ut){return function(){return lt.remove(ut)}},lt.handlePop=function(){return function(){return lt.pop()}},lt.remove=lt.remove.bind(_assertThisInitialized(lt)),lt.pop=lt.pop.bind(_assertThisInitialized(lt)),lt}var rt=tt.prototype;return rt.componentDidUpdate=function(lt){this.props.validateOnChange&&this.props.formik.validateOnChange&&!isEqual$5(getIn$1(lt.formik.values,lt.name),getIn$1(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},rt.remove=function(lt){var ut;return this.updateArrayField(function(dt){var pt=dt?copyArrayLike(dt):[];return ut||(ut=pt[lt]),isFunction$5(pt.splice)&&pt.splice(lt,1),isFunction$5(pt.every)&&pt.every(function(ht){return ht===void 0})?[]:pt},!0,!0),ut},rt.pop=function(){var lt;return this.updateArrayField(function(ut){var dt=ut.slice();return lt||(lt=dt&&dt.pop&&dt.pop()),dt},!0,!0),lt},rt.render=function(){var lt={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},ut=this.props,dt=ut.component,pt=ut.render,ht=ut.children,mt=ut.name,xt=ut.formik,Mt=_objectWithoutPropertiesLoose$2(xt,["validate","validationSchema"]),vt=_extends$7({},lt,{form:Mt,name:mt});return dt?reactExports.createElement(dt,vt):pt?pt(vt):ht?typeof ht=="function"?ht(vt):isEmptyChildren(ht)?null:reactExports.Children.only(ht):null},tt}(reactExports.Component);FieldArrayInner.defaultProps={validateOnChange:!0};var FieldArray=connect$2(FieldArrayInner);const StyledRow$7=styled$1("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  width: ${et=>(et==null?void 0:et.width)||"100%"};
`,StyledFieldRow=({children:et,...tt})=>jsxRuntimeExports.jsx(StyledRow$7,{...tt,children:et}),InputField$1=({field:et,form:tt,multiline:rt=!1,helperType:nt,units:lt,width:ut,rows:dt,handleMutation:pt,type:ht,valueToBlank:mt,placeHolder:xt,lastUpdateUser:Mt,maxLength:vt})=>{const{onBlur:Ot,name:At,value:Rt,onChange:zt}=et,{errors:Tt,touched:Ct,submitCount:It}=tt,Dt=getIn$1(Tt,At),kt=getIn$1(Ct,At),qt=Rt!==null,Nt=(It>0||qt||kt)&&Dt,Yt=async Kt=>{Ot(Kt);const Jt=mt&&Kt.target.value===""?mt:Kt.target.value;pt(At,Jt)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledFieldRow,{children:[jsxRuntimeExports.jsx(Input$3,{name:At,value:Rt||void 0,invalid:Nt,onChange:zt,onFocus:Kt=>{Kt.target.setAttribute("autocomplete","off")},onBlur:Kt=>Yt(Kt),width:ut,rows:dt,multiline:rt,units:lt,type:ht,placeHolder:xt,maxLength:vt}),Mt&&jsxRuntimeExports.jsx(UserIcon,{userType:Mt})]}),Nt&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:At,helperType:nt,fieldText:Dt})]})},SvgCircleBorder=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:12,cy:12,r:11.5,fill:"#F5F5F4",stroke:"#CFCDC9"})),SvgCheckedCircle=et=>reactExports.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...et},reactExports.createElement("circle",{cx:12,cy:12,r:11.5,fill:"#008850",stroke:"#008850"}),reactExports.createElement("mask",{id:"path-2-inside-1",fill:"white"},reactExports.createElement("path",{d:"M21 19C21 20.1046 20.1046 21 19 21H6C4.89543 21 4 20.1046 4 19V6C4 4.89543 4.89543 4 6 4H19C20.1046 4 21 4.89543 21 6V19Z"})),reactExports.createElement("path",{d:"M21 19C21 20.1046 20.1046 21 19 21H6C4.89543 21 4 20.1046 4 19V6C4 4.89543 4.89543 4 6 4H19C20.1046 4 21 4.89543 21 6V19Z",fill:"#008850"}),reactExports.createElement("path",{d:"M19 20H6V22H19V20ZM5 19V6H3V19H5ZM6 5H19V3H6V5ZM20 6V19H22V6H20ZM19 5C19.5523 5 20 5.44772 20 6H22C22 4.34315 20.6569 3 19 3V5ZM5 6C5 5.44772 5.44772 5 6 5V3C4.34315 3 3 4.34315 3 6H5ZM6 20C5.44772 20 5 19.5523 5 19H3C3 20.6569 4.34315 22 6 22V20ZM19 22C20.6569 22 22 20.6569 22 19H20C20 19.5523 19.5523 20 19 20V22Z",fill:"#008850",mask:"url(#path-2-inside-1)"}),reactExports.createElement("path",{d:"M18.1576 9.66728L16.8259 8.32617L10.602 14.5501L8.16533 12.1228L6.82422 13.4545L10.602 17.2228L18.1576 9.66728Z",fill:"white"})),StyledSelectButton=styled$1("button")`
  border: solid
    ${et=>({$active:tt,$invalid:rt,$activeColor:nt,$borderColor:lt})=>tt?`2px ${nt}`:rt?`1px ${et.theme.palette.error.main}`:`1px ${lt}`};
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  min-width: ${({$width:et})=>et};
  min-height: 40px;
  font-size: ${getRemSize(14)};
  text-transform: none;
  display: flex;
  align-items: center;
  position: relative;
  background-color: white;
  color: ${({$textColor:et})=>et};
  outline: none !important;
`,IconContainer=styled$1("section")`
  align-self: flex-start;
  height: 24px;
  width: 24px;
`,ButtonText=styled$1("span")`
  width: 90%;
  font-size: 16px;
  font-family: 'Poppins';
  margin-left: ${({$showCheckIcon:et})=>et?"-5px":"auto"};
  text-align: center;
  padding: 0 5px;
  padding-left: 7px;
`,SelectButton=({active:et,borderColor:tt,showCheckIcon:rt,buttonText:nt,onClick:lt,activeColor:ut,textColor:dt,width:pt,invalid:ht})=>{const mt=useTheme$1(),xt=et?jsxRuntimeExports.jsx(SvgCheckedCircle,{title:"Checked_circle.svg"}):jsxRuntimeExports.jsx(SvgCircleBorder,{title:"Border_circle.svg"}),Mt={$active:et,$activeColor:ut||mt.palette.primary.dark,$borderColor:tt||mt.palette.grey[300],$textColor:dt||mt.palette.text.primary,$width:pt||"168px",$invalid:ht||!1};return jsxRuntimeExports.jsxs(StyledSelectButton,{...Mt,type:"button","data-test-id":`${nt}-select`,onClick:lt,children:[rt&&jsxRuntimeExports.jsx(IconContainer,{children:xt}),jsxRuntimeExports.jsx(ButtonText,{$showCheckIcon:rt,children:nt})]})},MultiSelectContainer=styled$1("section")`
  display: flex;
`,SelectButtonContainer=styled$1("section")`
  margin-right: ${({isLastItem:et})=>et?"0":"16px"};
`,MultiSelectButtonGroup=({options:et,createMutation:tt,deleteMutation:rt,parentField:nt,form:lt,field:ut,error:dt})=>{const{name:pt}=ut,{values:ht,setFieldValue:mt,setTouched:xt}=lt,Mt=dt,vt=At=>ht[pt].filter(Rt=>Rt.name===At).length,Ot=(At,Rt)=>{const zt=ht[At],Tt=zt.filter(Ct=>Ct.name===Rt);if(Tt.length>0){rt(Tt[0].id);const Ct=zt.filter(It=>It.name!==Rt);mt(At,Ct,!1)}else zt.push({fieldName:At,value:Rt}),tt(At,Rt).then(Ct=>{const It=Object.values(Ct.data)[0];zt.pop(),mt(At,[...zt,{...It[nt]}],!1)});xt({[At]:!0})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(MultiSelectContainer,{children:et.map((At,Rt)=>{const Tt={isLastItem:Rt===et.length-1};return reactExports.createElement(SelectButtonContainer,{...Tt,key:At,onClick:()=>Ot(pt,At)},jsxRuntimeExports.jsx(SelectButton,{buttonText:At,active:vt(At),showCheckIcon:!0}))})}),Mt&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:pt,fieldText:Mt})]})},Container$6=styled$1("div")`
  display: flex;
  flex-grow: ${et=>et.grow?et.grow:"1"};
  flex-direction: ${et=>et.fitToContent?"row":"column"};
`,SelectWrapper=styled$1("div")`
  align-items: center;
  display: flex;

  select {
    font-size: 16px;
    font-family: 'Poppins';
  }
`,SelectFieldBase=({field:et,fitToContent:tt,form:rt,options:nt,placeholder:lt,updateMutation:ut,removable:dt,handleRemoveButton:pt,conditionalHandleChange:ht,errorMargin:mt,grow:xt,lastUpdateUser:Mt,width:vt,borderRadius:Ot,padding:At,alternateStyle:Rt})=>{const{name:zt,value:Tt,onChange:Ct,onBlur:It}=et,{errors:Dt,touched:kt,submitCount:qt}=rt,Nt=getIn$1(Dt,zt),Yt=getIn$1(kt,zt),Kt=Tt&&Tt!=="",Jt=(qt>0||Kt||Yt)&&Nt,Qt=nt.find(Ft=>Ft.value===Tt),Bt=async Ft=>{Ct(Ft),ut(Ft.target.value),ht&&ht(Ft.target.value)};return jsxRuntimeExports.jsxs(Container$6,{fitToContent:tt,grow:xt,children:[jsxRuntimeExports.jsxs(SelectWrapper,{children:[jsxRuntimeExports.jsx(Select$2,{name:zt,width:vt,value:Qt&&Qt.value,invalid:Jt,onChange:Ft=>Bt(Ft),onBlur:It,options:nt,placeholder:lt,removable:dt,borderRadius:Ot,padding:At}),dt&&pt&&jsxRuntimeExports.jsx(ActionButton,{fieldId:zt,type:"remove",onClick:pt}),Mt&&jsxRuntimeExports.jsx(UserIcon,{userType:Mt})]}),Jt&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:zt,fieldText:Nt,errorMargin:mt,fontSize:Rt?14:16})]})},Container$5=styled$1("div")`
  display: flex;
  flex-direction: column;
  width: ${et=>et.width?et.width:"100%"};
`,TextAreaField=({field:et,form:tt,placeholder:rt,updateMutation:nt,rows:lt,lastUpdateUser:ut,width:dt,maxLength:pt,alternateStyle:ht,disabled:mt=!1,...xt})=>{const{name:Mt,value:vt,onBlur:Ot,onChange:At}=et,[Rt,zt]=reactExports.useState({show:!1,message:"Character limit reached"}),{errors:Tt,touched:Ct,submitCount:It}=tt,Dt=getIn$1(Tt,Mt),kt=getIn$1(Ct,Mt),qt=(It>0||kt)&&Dt,Nt=async Yt=>{Ot(Yt),nt&&nt(Yt.target.value)};return reactExports.useEffect(()=>{pt&&vt.length===pt?zt({...Rt,show:!0}):zt({...Rt,show:!1})},[vt]),jsxRuntimeExports.jsx(Container$5,{width:dt,children:jsxRuntimeExports.jsxs(StyledFieldRow,{children:[jsxRuntimeExports.jsx(BaseTextField,{id:Mt,name:Mt,fullWidth:!0,value:vt,error:qt,warning:Rt.show,onChange:At,onBlur:Yt=>Nt(Yt),placeholder:rt,rows:lt,maxLength:pt,disabled:mt,helperText:Dt||Rt.message,...xt}),ut&&jsxRuntimeExports.jsx(UserIcon,{userType:ut})]})})},StyledFormRow$1=styled$1(FormRow$2)`
  margin-top: 0px;
`,SelectFieldContainer=styled$1("div")`
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  width: 560px;
`,TextAreaContainer=styled$1("div")`
  width: 526px;
  align-items: ${et=>!et.isLastItem&&"center"};
  margin-bottom: ${et=>et.isLastItem?"12px":"16px"};
  padding-right: ${et=>et.index===0?"0px":"32px"}; ;
`,SelectFieldGroup=({name:et,addButtonText:tt,createMutation:rt,deleteMutation:nt,updateMutation:lt,label:ut,options:dt,selectPlaceholder:pt,selectFieldName:ht,textFieldName:mt,textFieldOptionsForOther:xt,values:Mt,userIconFieldName:vt,userTypeValue:Ot,width:At})=>{const{setFieldValue:Rt}=useFormikContext();return jsxRuntimeExports.jsx(FieldArray,{name:et,render:({push:zt,remove:Tt})=>{const Ct=async()=>{const It=await rt();zt(It)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Mt.length>0?Mt.map((It,Dt)=>{const kt=`${ut} ${Dt+1}`,qt=Dt===Mt.length-1,{id:Nt,[ht]:Yt}=It,Kt=`${et}[${Dt}].${ht}`,Jt=`${et}[${Dt}].${mt}`;let Qt,Bt="";return vt&&(Qt=It[vt],Bt=`${et}[${Dt}].${vt}`),jsxRuntimeExports.jsxs(StyledFormRow$1,{fieldLabel:kt,fieldName:kt,children:[jsxRuntimeExports.jsx(SelectFieldContainer,{children:jsxRuntimeExports.jsx(Field,{name:Kt,component:SelectFieldBase,width:At,updateMutation:Ft=>{lt({variables:{id:Nt,[ht]:Ft}}),vt&&Rt(Bt,Ot)},placeholder:pt,options:dt,removable:Mt.length>1,handleRemoveButton:()=>{Tt(Dt),nt(Nt)},lastUpdateUser:Qt})}),xt.includes(Yt)&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(TextAreaContainer,{isLastItem:qt,index:Dt,children:jsxRuntimeExports.jsx(Field,{component:TextAreaField,name:Jt,width:At,placeholder:"Please specify",updateMutation:Ft=>{lt({variables:{id:Nt,[mt]:Ft}})}})})}),qt&&jsxRuntimeExports.jsx(ActionButton,{fieldId:et,type:"add",onClick:Ct,label:tt})]},Dt)}):null})}})};var lib$2={exports:{}},_default$4={},lib$1={exports:{}},_default$3={};function getDefaultWhiteList$1(){var et={};return et["align-content"]=!1,et["align-items"]=!1,et["align-self"]=!1,et["alignment-adjust"]=!1,et["alignment-baseline"]=!1,et.all=!1,et["anchor-point"]=!1,et.animation=!1,et["animation-delay"]=!1,et["animation-direction"]=!1,et["animation-duration"]=!1,et["animation-fill-mode"]=!1,et["animation-iteration-count"]=!1,et["animation-name"]=!1,et["animation-play-state"]=!1,et["animation-timing-function"]=!1,et.azimuth=!1,et["backface-visibility"]=!1,et.background=!0,et["background-attachment"]=!0,et["background-clip"]=!0,et["background-color"]=!0,et["background-image"]=!0,et["background-origin"]=!0,et["background-position"]=!0,et["background-repeat"]=!0,et["background-size"]=!0,et["baseline-shift"]=!1,et.binding=!1,et.bleed=!1,et["bookmark-label"]=!1,et["bookmark-level"]=!1,et["bookmark-state"]=!1,et.border=!0,et["border-bottom"]=!0,et["border-bottom-color"]=!0,et["border-bottom-left-radius"]=!0,et["border-bottom-right-radius"]=!0,et["border-bottom-style"]=!0,et["border-bottom-width"]=!0,et["border-collapse"]=!0,et["border-color"]=!0,et["border-image"]=!0,et["border-image-outset"]=!0,et["border-image-repeat"]=!0,et["border-image-slice"]=!0,et["border-image-source"]=!0,et["border-image-width"]=!0,et["border-left"]=!0,et["border-left-color"]=!0,et["border-left-style"]=!0,et["border-left-width"]=!0,et["border-radius"]=!0,et["border-right"]=!0,et["border-right-color"]=!0,et["border-right-style"]=!0,et["border-right-width"]=!0,et["border-spacing"]=!0,et["border-style"]=!0,et["border-top"]=!0,et["border-top-color"]=!0,et["border-top-left-radius"]=!0,et["border-top-right-radius"]=!0,et["border-top-style"]=!0,et["border-top-width"]=!0,et["border-width"]=!0,et.bottom=!1,et["box-decoration-break"]=!0,et["box-shadow"]=!0,et["box-sizing"]=!0,et["box-snap"]=!0,et["box-suppress"]=!0,et["break-after"]=!0,et["break-before"]=!0,et["break-inside"]=!0,et["caption-side"]=!1,et.chains=!1,et.clear=!0,et.clip=!1,et["clip-path"]=!1,et["clip-rule"]=!1,et.color=!0,et["color-interpolation-filters"]=!0,et["column-count"]=!1,et["column-fill"]=!1,et["column-gap"]=!1,et["column-rule"]=!1,et["column-rule-color"]=!1,et["column-rule-style"]=!1,et["column-rule-width"]=!1,et["column-span"]=!1,et["column-width"]=!1,et.columns=!1,et.contain=!1,et.content=!1,et["counter-increment"]=!1,et["counter-reset"]=!1,et["counter-set"]=!1,et.crop=!1,et.cue=!1,et["cue-after"]=!1,et["cue-before"]=!1,et.cursor=!1,et.direction=!1,et.display=!0,et["display-inside"]=!0,et["display-list"]=!0,et["display-outside"]=!0,et["dominant-baseline"]=!1,et.elevation=!1,et["empty-cells"]=!1,et.filter=!1,et.flex=!1,et["flex-basis"]=!1,et["flex-direction"]=!1,et["flex-flow"]=!1,et["flex-grow"]=!1,et["flex-shrink"]=!1,et["flex-wrap"]=!1,et.float=!1,et["float-offset"]=!1,et["flood-color"]=!1,et["flood-opacity"]=!1,et["flow-from"]=!1,et["flow-into"]=!1,et.font=!0,et["font-family"]=!0,et["font-feature-settings"]=!0,et["font-kerning"]=!0,et["font-language-override"]=!0,et["font-size"]=!0,et["font-size-adjust"]=!0,et["font-stretch"]=!0,et["font-style"]=!0,et["font-synthesis"]=!0,et["font-variant"]=!0,et["font-variant-alternates"]=!0,et["font-variant-caps"]=!0,et["font-variant-east-asian"]=!0,et["font-variant-ligatures"]=!0,et["font-variant-numeric"]=!0,et["font-variant-position"]=!0,et["font-weight"]=!0,et.grid=!1,et["grid-area"]=!1,et["grid-auto-columns"]=!1,et["grid-auto-flow"]=!1,et["grid-auto-rows"]=!1,et["grid-column"]=!1,et["grid-column-end"]=!1,et["grid-column-start"]=!1,et["grid-row"]=!1,et["grid-row-end"]=!1,et["grid-row-start"]=!1,et["grid-template"]=!1,et["grid-template-areas"]=!1,et["grid-template-columns"]=!1,et["grid-template-rows"]=!1,et["hanging-punctuation"]=!1,et.height=!0,et.hyphens=!1,et.icon=!1,et["image-orientation"]=!1,et["image-resolution"]=!1,et["ime-mode"]=!1,et["initial-letters"]=!1,et["inline-box-align"]=!1,et["justify-content"]=!1,et["justify-items"]=!1,et["justify-self"]=!1,et.left=!1,et["letter-spacing"]=!0,et["lighting-color"]=!0,et["line-box-contain"]=!1,et["line-break"]=!1,et["line-grid"]=!1,et["line-height"]=!1,et["line-snap"]=!1,et["line-stacking"]=!1,et["line-stacking-ruby"]=!1,et["line-stacking-shift"]=!1,et["line-stacking-strategy"]=!1,et["list-style"]=!0,et["list-style-image"]=!0,et["list-style-position"]=!0,et["list-style-type"]=!0,et.margin=!0,et["margin-bottom"]=!0,et["margin-left"]=!0,et["margin-right"]=!0,et["margin-top"]=!0,et["marker-offset"]=!1,et["marker-side"]=!1,et.marks=!1,et.mask=!1,et["mask-box"]=!1,et["mask-box-outset"]=!1,et["mask-box-repeat"]=!1,et["mask-box-slice"]=!1,et["mask-box-source"]=!1,et["mask-box-width"]=!1,et["mask-clip"]=!1,et["mask-image"]=!1,et["mask-origin"]=!1,et["mask-position"]=!1,et["mask-repeat"]=!1,et["mask-size"]=!1,et["mask-source-type"]=!1,et["mask-type"]=!1,et["max-height"]=!0,et["max-lines"]=!1,et["max-width"]=!0,et["min-height"]=!0,et["min-width"]=!0,et["move-to"]=!1,et["nav-down"]=!1,et["nav-index"]=!1,et["nav-left"]=!1,et["nav-right"]=!1,et["nav-up"]=!1,et["object-fit"]=!1,et["object-position"]=!1,et.opacity=!1,et.order=!1,et.orphans=!1,et.outline=!1,et["outline-color"]=!1,et["outline-offset"]=!1,et["outline-style"]=!1,et["outline-width"]=!1,et.overflow=!1,et["overflow-wrap"]=!1,et["overflow-x"]=!1,et["overflow-y"]=!1,et.padding=!0,et["padding-bottom"]=!0,et["padding-left"]=!0,et["padding-right"]=!0,et["padding-top"]=!0,et.page=!1,et["page-break-after"]=!1,et["page-break-before"]=!1,et["page-break-inside"]=!1,et["page-policy"]=!1,et.pause=!1,et["pause-after"]=!1,et["pause-before"]=!1,et.perspective=!1,et["perspective-origin"]=!1,et.pitch=!1,et["pitch-range"]=!1,et["play-during"]=!1,et.position=!1,et["presentation-level"]=!1,et.quotes=!1,et["region-fragment"]=!1,et.resize=!1,et.rest=!1,et["rest-after"]=!1,et["rest-before"]=!1,et.richness=!1,et.right=!1,et.rotation=!1,et["rotation-point"]=!1,et["ruby-align"]=!1,et["ruby-merge"]=!1,et["ruby-position"]=!1,et["shape-image-threshold"]=!1,et["shape-outside"]=!1,et["shape-margin"]=!1,et.size=!1,et.speak=!1,et["speak-as"]=!1,et["speak-header"]=!1,et["speak-numeral"]=!1,et["speak-punctuation"]=!1,et["speech-rate"]=!1,et.stress=!1,et["string-set"]=!1,et["tab-size"]=!1,et["table-layout"]=!1,et["text-align"]=!0,et["text-align-last"]=!0,et["text-combine-upright"]=!0,et["text-decoration"]=!0,et["text-decoration-color"]=!0,et["text-decoration-line"]=!0,et["text-decoration-skip"]=!0,et["text-decoration-style"]=!0,et["text-emphasis"]=!0,et["text-emphasis-color"]=!0,et["text-emphasis-position"]=!0,et["text-emphasis-style"]=!0,et["text-height"]=!0,et["text-indent"]=!0,et["text-justify"]=!0,et["text-orientation"]=!0,et["text-overflow"]=!0,et["text-shadow"]=!0,et["text-space-collapse"]=!0,et["text-transform"]=!0,et["text-underline-position"]=!0,et["text-wrap"]=!0,et.top=!1,et.transform=!1,et["transform-origin"]=!1,et["transform-style"]=!1,et.transition=!1,et["transition-delay"]=!1,et["transition-duration"]=!1,et["transition-property"]=!1,et["transition-timing-function"]=!1,et["unicode-bidi"]=!1,et["vertical-align"]=!1,et.visibility=!1,et["voice-balance"]=!1,et["voice-duration"]=!1,et["voice-family"]=!1,et["voice-pitch"]=!1,et["voice-range"]=!1,et["voice-rate"]=!1,et["voice-stress"]=!1,et["voice-volume"]=!1,et.volume=!1,et["white-space"]=!1,et.widows=!1,et.width=!0,et["will-change"]=!1,et["word-break"]=!0,et["word-spacing"]=!0,et["word-wrap"]=!0,et["wrap-flow"]=!1,et["wrap-through"]=!1,et["writing-mode"]=!1,et["z-index"]=!1,et}function onAttr(et,tt,rt){}function onIgnoreAttr(et,tt,rt){}var REGEXP_URL_JAVASCRIPT=/javascript\s*\:/img;function safeAttrValue$1(et,tt){return REGEXP_URL_JAVASCRIPT.test(tt)?"":tt}_default$3.whiteList=getDefaultWhiteList$1();_default$3.getDefaultWhiteList=getDefaultWhiteList$1;_default$3.onAttr=onAttr;_default$3.onIgnoreAttr=onIgnoreAttr;_default$3.safeAttrValue=safeAttrValue$1;var util$4={indexOf:function(et,tt){var rt,nt;if(Array.prototype.indexOf)return et.indexOf(tt);for(rt=0,nt=et.length;rt<nt;rt++)if(et[rt]===tt)return rt;return-1},forEach:function(et,tt,rt){var nt,lt;if(Array.prototype.forEach)return et.forEach(tt,rt);for(nt=0,lt=et.length;nt<lt;nt++)tt.call(rt,et[nt],nt,et)},trim:function(et){return String.prototype.trim?et.trim():et.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(et){return String.prototype.trimRight?et.trimRight():et.replace(/(\s*$)/g,"")}},_$4=util$4;function parseStyle$1(et,tt){et=_$4.trimRight(et),et[et.length-1]!==";"&&(et+=";");var rt=et.length,nt=!1,lt=0,ut=0,dt="";function pt(){if(!nt){var xt=_$4.trim(et.slice(lt,ut)),Mt=xt.indexOf(":");if(Mt!==-1){var vt=_$4.trim(xt.slice(0,Mt)),Ot=_$4.trim(xt.slice(Mt+1));if(vt){var At=tt(lt,dt.length,vt,Ot,xt);At&&(dt+=At+"; ")}}}lt=ut+1}for(;ut<rt;ut++){var ht=et[ut];if(ht==="/"&&et[ut+1]==="*"){var mt=et.indexOf("*/",ut+2);if(mt===-1)break;ut=mt+1,lt=ut+1,nt=!1}else ht==="("?nt=!0:ht===")"?nt=!1:ht===";"?nt||pt():ht===`
`&&pt()}return _$4.trim(dt)}var parser$3=parseStyle$1,DEFAULT$1=_default$3,parseStyle=parser$3;function isNull$2(et){return et==null}function shallowCopyObject$1(et){var tt={};for(var rt in et)tt[rt]=et[rt];return tt}function FilterCSS$2(et){et=shallowCopyObject$1(et||{}),et.whiteList=et.whiteList||DEFAULT$1.whiteList,et.onAttr=et.onAttr||DEFAULT$1.onAttr,et.onIgnoreAttr=et.onIgnoreAttr||DEFAULT$1.onIgnoreAttr,et.safeAttrValue=et.safeAttrValue||DEFAULT$1.safeAttrValue,this.options=et}FilterCSS$2.prototype.process=function(et){if(et=et||"",et=et.toString(),!et)return"";var tt=this,rt=tt.options,nt=rt.whiteList,lt=rt.onAttr,ut=rt.onIgnoreAttr,dt=rt.safeAttrValue,pt=parseStyle(et,function(ht,mt,xt,Mt,vt){var Ot=nt[xt],At=!1;if(Ot===!0?At=Ot:typeof Ot=="function"?At=Ot(Mt):Ot instanceof RegExp&&(At=Ot.test(Mt)),At!==!0&&(At=!1),Mt=dt(xt,Mt),!!Mt){var Rt={position:mt,sourcePosition:ht,source:vt,isWhite:At};if(At){var zt=lt(xt,Mt,Rt);return isNull$2(zt)?xt+":"+Mt:zt}else{var zt=ut(xt,Mt,Rt);if(!isNull$2(zt))return zt}}});return pt};var css$3=FilterCSS$2;(function(et,tt){var rt=_default$3,nt=css$3;function lt(dt,pt){var ht=new nt(pt);return ht.process(dt)}tt=et.exports=lt,tt.FilterCSS=nt;for(var ut in rt)tt[ut]=rt[ut];typeof window<"u"&&(window.filterCSS=et.exports)})(lib$1,lib$1.exports);var libExports$1=lib$1.exports,util$3={indexOf:function(et,tt){var rt,nt;if(Array.prototype.indexOf)return et.indexOf(tt);for(rt=0,nt=et.length;rt<nt;rt++)if(et[rt]===tt)return rt;return-1},forEach:function(et,tt,rt){var nt,lt;if(Array.prototype.forEach)return et.forEach(tt,rt);for(nt=0,lt=et.length;nt<lt;nt++)tt.call(rt,et[nt],nt,et)},trim:function(et){return String.prototype.trim?et.trim():et.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(et){var tt=/\s|\n|\t/,rt=tt.exec(et);return rt?rt.index:-1}},FilterCSS$1=libExports$1.FilterCSS,getDefaultCSSWhiteList=libExports$1.getDefaultWhiteList,_$3=util$3;function getDefaultWhiteList(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var defaultCSSFilter=new FilterCSS$1;function onTag(et,tt,rt){}function onIgnoreTag(et,tt,rt){}function onTagAttr(et,tt,rt){}function onIgnoreTagAttr(et,tt,rt){}function escapeHtml(et){return et.replace(REGEXP_LT,"&lt;").replace(REGEXP_GT,"&gt;")}function safeAttrValue(et,tt,rt,nt){if(rt=friendlyAttrValue(rt),tt==="href"||tt==="src"){if(rt=_$3.trim(rt),rt==="#")return"#";if(!(rt.substr(0,7)==="http://"||rt.substr(0,8)==="https://"||rt.substr(0,7)==="mailto:"||rt.substr(0,4)==="tel:"||rt.substr(0,11)==="data:image/"||rt.substr(0,6)==="ftp://"||rt.substr(0,2)==="./"||rt.substr(0,3)==="../"||rt[0]==="#"||rt[0]==="/"))return""}else if(tt==="background"){if(REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex=0,REGEXP_DEFAULT_ON_TAG_ATTR_4.test(rt))return""}else if(tt==="style"){if(REGEXP_DEFAULT_ON_TAG_ATTR_7.lastIndex=0,REGEXP_DEFAULT_ON_TAG_ATTR_7.test(rt)||(REGEXP_DEFAULT_ON_TAG_ATTR_8.lastIndex=0,REGEXP_DEFAULT_ON_TAG_ATTR_8.test(rt)&&(REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex=0,REGEXP_DEFAULT_ON_TAG_ATTR_4.test(rt))))return"";nt!==!1&&(nt=nt||defaultCSSFilter,rt=nt.process(rt))}return rt=escapeAttrValue(rt),rt}var REGEXP_LT=/</g,REGEXP_GT=/>/g,REGEXP_QUOTE=/"/g,REGEXP_QUOTE_2=/&quot;/g,REGEXP_ATTR_VALUE_1=/&#([a-zA-Z0-9]*);?/gim,REGEXP_ATTR_VALUE_COLON=/&colon;?/gim,REGEXP_ATTR_VALUE_NEWLINE=/&newline;?/gim,REGEXP_DEFAULT_ON_TAG_ATTR_4=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,REGEXP_DEFAULT_ON_TAG_ATTR_7=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,REGEXP_DEFAULT_ON_TAG_ATTR_8=/u\s*r\s*l\s*\(.*/gi;function escapeQuote(et){return et.replace(REGEXP_QUOTE,"&quot;")}function unescapeQuote(et){return et.replace(REGEXP_QUOTE_2,'"')}function escapeHtmlEntities(et){return et.replace(REGEXP_ATTR_VALUE_1,function(rt,nt){return nt[0]==="x"||nt[0]==="X"?String.fromCharCode(parseInt(nt.substr(1),16)):String.fromCharCode(parseInt(nt,10))})}function escapeDangerHtml5Entities(et){return et.replace(REGEXP_ATTR_VALUE_COLON,":").replace(REGEXP_ATTR_VALUE_NEWLINE," ")}function clearNonPrintableCharacter(et){for(var tt="",rt=0,nt=et.length;rt<nt;rt++)tt+=et.charCodeAt(rt)<32?" ":et.charAt(rt);return _$3.trim(tt)}function friendlyAttrValue(et){return et=unescapeQuote(et),et=escapeHtmlEntities(et),et=escapeDangerHtml5Entities(et),et=clearNonPrintableCharacter(et),et}function escapeAttrValue(et){return et=escapeQuote(et),et=escapeHtml(et),et}function onIgnoreTagStripAll(){return""}function StripTagBody(et,tt){typeof tt!="function"&&(tt=function(){});var rt=!Array.isArray(et);function nt(dt){return rt?!0:_$3.indexOf(et,dt)!==-1}var lt=[],ut=!1;return{onIgnoreTag:function(dt,pt,ht){if(nt(dt))if(ht.isClosing){var mt="[/removed]",xt=ht.position+mt.length;return lt.push([ut!==!1?ut:ht.position,xt]),ut=!1,mt}else return ut||(ut=ht.position),"[removed]";else return tt(dt,pt,ht)},remove:function(dt){var pt="",ht=0;return _$3.forEach(lt,function(mt){pt+=dt.slice(ht,mt[0]),ht=mt[1]}),pt+=dt.slice(ht),pt}}}function stripCommentTag(et){for(var tt="",rt=0;rt<et.length;){var nt=et.indexOf("<!--",rt);if(nt===-1){tt+=et.slice(rt);break}tt+=et.slice(rt,nt);var lt=et.indexOf("-->",nt);if(lt===-1)break;rt=lt+3}return tt}function stripBlankChar(et){var tt=et.split("");return tt=tt.filter(function(rt){var nt=rt.charCodeAt(0);return nt===127?!1:nt<=31?nt===10||nt===13:!0}),tt.join("")}_default$4.whiteList=getDefaultWhiteList();_default$4.getDefaultWhiteList=getDefaultWhiteList;_default$4.onTag=onTag;_default$4.onIgnoreTag=onIgnoreTag;_default$4.onTagAttr=onTagAttr;_default$4.onIgnoreTagAttr=onIgnoreTagAttr;_default$4.safeAttrValue=safeAttrValue;_default$4.escapeHtml=escapeHtml;_default$4.escapeQuote=escapeQuote;_default$4.unescapeQuote=unescapeQuote;_default$4.escapeHtmlEntities=escapeHtmlEntities;_default$4.escapeDangerHtml5Entities=escapeDangerHtml5Entities;_default$4.clearNonPrintableCharacter=clearNonPrintableCharacter;_default$4.friendlyAttrValue=friendlyAttrValue;_default$4.escapeAttrValue=escapeAttrValue;_default$4.onIgnoreTagStripAll=onIgnoreTagStripAll;_default$4.StripTagBody=StripTagBody;_default$4.stripCommentTag=stripCommentTag;_default$4.stripBlankChar=stripBlankChar;_default$4.attributeWrapSign='"';_default$4.cssFilter=defaultCSSFilter;_default$4.getDefaultCSSWhiteList=getDefaultCSSWhiteList;var parser$2={},_$2=util$3;function getTagName(et){var tt=_$2.spaceIndex(et),rt;return tt===-1?rt=et.slice(1,-1):rt=et.slice(1,tt+1),rt=_$2.trim(rt).toLowerCase(),rt.slice(0,1)==="/"&&(rt=rt.slice(1)),rt.slice(-1)==="/"&&(rt=rt.slice(0,-1)),rt}function isClosing(et){return et.slice(0,2)==="</"}function parseTag$1(et,tt,rt){var nt="",lt=0,ut=!1,dt=!1,pt=0,ht=et.length,mt="",xt="";e:for(pt=0;pt<ht;pt++){var Mt=et.charAt(pt);if(ut===!1){if(Mt==="<"){ut=pt;continue}}else if(dt===!1){if(Mt==="<"){nt+=rt(et.slice(lt,pt)),ut=pt,lt=pt;continue}if(Mt===">"||pt===ht-1){nt+=rt(et.slice(lt,ut)),xt=et.slice(ut,pt+1),mt=getTagName(xt),nt+=tt(ut,nt.length,mt,xt,isClosing(xt)),lt=pt+1,ut=!1;continue}if(Mt==='"'||Mt==="'")for(var vt=1,Ot=et.charAt(pt-vt);Ot.trim()===""||Ot==="=";){if(Ot==="="){dt=Mt;continue e}Ot=et.charAt(pt-++vt)}}else if(Mt===dt){dt=!1;continue}}return lt<ht&&(nt+=rt(et.substr(lt))),nt}var REGEXP_ILLEGAL_ATTR_NAME=/[^a-zA-Z0-9\\_:.-]/gim;function parseAttr$1(et,tt){var rt=0,nt=0,lt=[],ut=!1,dt=et.length;function pt(vt,Ot){if(vt=_$2.trim(vt),vt=vt.replace(REGEXP_ILLEGAL_ATTR_NAME,"").toLowerCase(),!(vt.length<1)){var At=tt(vt,Ot||"");At&&lt.push(At)}}for(var ht=0;ht<dt;ht++){var mt=et.charAt(ht),xt,Mt;if(ut===!1&&mt==="="){ut=et.slice(rt,ht),rt=ht+1,nt=et.charAt(rt)==='"'||et.charAt(rt)==="'"?rt:findNextQuotationMark(et,ht+1);continue}if(ut!==!1&&ht===nt){if(Mt=et.indexOf(mt,ht+1),Mt===-1)break;xt=_$2.trim(et.slice(nt+1,Mt)),pt(ut,xt),ut=!1,ht=Mt,rt=ht+1;continue}if(/\s|\n|\t/.test(mt))if(et=et.replace(/\s|\n|\t/g," "),ut===!1)if(Mt=findNextEqual(et,ht),Mt===-1){xt=_$2.trim(et.slice(rt,ht)),pt(xt),ut=!1,rt=ht+1;continue}else{ht=Mt-1;continue}else if(Mt=findBeforeEqual(et,ht-1),Mt===-1){xt=_$2.trim(et.slice(rt,ht)),xt=stripQuoteWrap(xt),pt(ut,xt),ut=!1,rt=ht+1;continue}else continue}return rt<et.length&&(ut===!1?pt(et.slice(rt)):pt(ut,stripQuoteWrap(_$2.trim(et.slice(rt))))),_$2.trim(lt.join(" "))}function findNextEqual(et,tt){for(;tt<et.length;tt++){var rt=et[tt];if(rt!==" ")return rt==="="?tt:-1}}function findNextQuotationMark(et,tt){for(;tt<et.length;tt++){var rt=et[tt];if(rt!==" ")return rt==="'"||rt==='"'?tt:-1}}function findBeforeEqual(et,tt){for(;tt>0;tt--){var rt=et[tt];if(rt!==" ")return rt==="="?tt:-1}}function isQuoteWrapString(et){return et[0]==='"'&&et[et.length-1]==='"'||et[0]==="'"&&et[et.length-1]==="'"}function stripQuoteWrap(et){return isQuoteWrapString(et)?et.substr(1,et.length-2):et}parser$2.parseTag=parseTag$1;parser$2.parseAttr=parseAttr$1;var FilterCSS=libExports$1.FilterCSS,DEFAULT=_default$4,parser$1=parser$2,parseTag=parser$1.parseTag,parseAttr=parser$1.parseAttr,_$1=util$3;function isNull$1(et){return et==null}function getAttrs(et){var tt=_$1.spaceIndex(et);if(tt===-1)return{html:"",closing:et[et.length-2]==="/"};et=_$1.trim(et.slice(tt+1,-1));var rt=et[et.length-1]==="/";return rt&&(et=_$1.trim(et.slice(0,-1))),{html:et,closing:rt}}function shallowCopyObject(et){var tt={};for(var rt in et)tt[rt]=et[rt];return tt}function keysToLowerCase(et){var tt={};for(var rt in et)Array.isArray(et[rt])?tt[rt.toLowerCase()]=et[rt].map(function(nt){return nt.toLowerCase()}):tt[rt.toLowerCase()]=et[rt];return tt}function FilterXSS(et){et=shallowCopyObject(et||{}),et.stripIgnoreTag&&(et.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),et.onIgnoreTag=DEFAULT.onIgnoreTagStripAll),et.whiteList||et.allowList?et.whiteList=keysToLowerCase(et.whiteList||et.allowList):et.whiteList=DEFAULT.whiteList,this.attributeWrapSign=et.singleQuotedAttributeValue===!0?"'":DEFAULT.attributeWrapSign,et.onTag=et.onTag||DEFAULT.onTag,et.onTagAttr=et.onTagAttr||DEFAULT.onTagAttr,et.onIgnoreTag=et.onIgnoreTag||DEFAULT.onIgnoreTag,et.onIgnoreTagAttr=et.onIgnoreTagAttr||DEFAULT.onIgnoreTagAttr,et.safeAttrValue=et.safeAttrValue||DEFAULT.safeAttrValue,et.escapeHtml=et.escapeHtml||DEFAULT.escapeHtml,this.options=et,et.css===!1?this.cssFilter=!1:(et.css=et.css||{},this.cssFilter=new FilterCSS(et.css))}FilterXSS.prototype.process=function(et){if(et=et||"",et=et.toString(),!et)return"";var tt=this,rt=tt.options,nt=rt.whiteList,lt=rt.onTag,ut=rt.onIgnoreTag,dt=rt.onTagAttr,pt=rt.onIgnoreTagAttr,ht=rt.safeAttrValue,mt=rt.escapeHtml,xt=tt.attributeWrapSign,Mt=tt.cssFilter;rt.stripBlankChar&&(et=DEFAULT.stripBlankChar(et)),rt.allowCommentTag||(et=DEFAULT.stripCommentTag(et));var vt=!1;rt.stripIgnoreTagBody&&(vt=DEFAULT.StripTagBody(rt.stripIgnoreTagBody,ut),ut=vt.onIgnoreTag);var Ot=parseTag(et,function(At,Rt,zt,Tt,Ct){var It={sourcePosition:At,position:Rt,isClosing:Ct,isWhite:Object.prototype.hasOwnProperty.call(nt,zt)},Dt=lt(zt,Tt,It);if(!isNull$1(Dt))return Dt;if(It.isWhite){if(It.isClosing)return"</"+zt+">";var kt=getAttrs(Tt),qt=nt[zt],Nt=parseAttr(kt.html,function(Yt,Kt){var Jt=_$1.indexOf(qt,Yt)!==-1,Qt=dt(zt,Yt,Kt,Jt);return isNull$1(Qt)?Jt?(Kt=ht(zt,Yt,Kt,Mt),Kt?Yt+"="+xt+Kt+xt:Yt):(Qt=pt(zt,Yt,Kt,Jt),isNull$1(Qt)?void 0:Qt):Qt});return Tt="<"+zt,Nt&&(Tt+=" "+Nt),kt.closing&&(Tt+=" /"),Tt+=">",Tt}else return Dt=ut(zt,Tt,It),isNull$1(Dt)?mt(Tt):Dt},mt);return vt&&(Ot=vt.remove(Ot)),Ot};var xss$1=FilterXSS;(function(et,tt){var rt=_default$4,nt=parser$2,lt=xss$1;function ut(pt,ht){var mt=new lt(ht);return mt.process(pt)}tt=et.exports=ut,tt.filterXSS=ut,tt.FilterXSS=lt,function(){for(var pt in rt)tt[pt]=rt[pt];for(var ht in nt)tt[ht]=nt[ht]}(),typeof window<"u"&&(window.filterXSS=et.exports);function dt(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}dt()&&(self.filterXSS=et.exports)})(lib$2,lib$2.exports);var libExports=lib$2.exports;const xss=getDefaultExportFromCjs$1(libExports),whiteList={h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],b:[],i:[],em:[],strong:[],div:[],table:[],tbody:[],td:[],tfoot:[],th:[],thead:[],tr:[],span:[],hr:[],li:[],ul:[],ol:[],p:[],br:[],img:["src","alt"],a:[]},sanitizeNote=et=>({__html:xss(et,{whiteList,stripIgnoreTag:!0}).trim()}),Container$4=styled$1("section")`
  min-width: 320px;
  width: 320px;
  height: calc(100vh - 60px);
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};
  display: flex;
  flex-direction: column;
`,Header$5=styled$1("div")`
  display: flex;
  background: ${et=>et.theme.palette.grey[100]};
`,Heading$1=styled$1("span")`
  font-size: ${getRemSize(18)};
  font-weight: 500;
  padding: 20px 16px;
`,NotesArea=styled$1("div")`
  padding: 15px;
  flex-grow: 1;
  resize: none;
  border: none;
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  outline-color: ${et=>et.theme.palette.primary.main};
`,InfoTextContainer=styled$1("section")`
  padding: 16px 18px;
`,SideTextArea=({onBlur:et,onChange:tt,value:rt,name:nt,title:lt,helperText:ut,disabled:dt})=>{const pt=ht=>{const mt=document.createElement("div");return mt.innerHTML=ht,mt.childNodes.length>4?mt.innerText:ht};return jsxRuntimeExports.jsxs(Container$4,{children:[jsxRuntimeExports.jsx(Header$5,{children:jsxRuntimeExports.jsx(Heading$1,{children:lt})}),jsxRuntimeExports.jsx(NotesArea,{contentEditable:!dt,dangerouslySetInnerHTML:sanitizeNote(pt(rt)),onBlur:et,onChange:tt,"data-testid":nt}),jsxRuntimeExports.jsx(InfoTextContainer,{children:jsxRuntimeExports.jsx(HelperMessage,{fieldName:nt,fieldText:ut,helperType:"info",fontSize:13,iconHeight:"18px"})})]})},SideTextAreaField=({name:et,onChange:tt,onBlur:rt,value:nt,title:lt,helperText:ut,disabled:dt})=>jsxRuntimeExports.jsx(SideTextArea,{name:et,value:nt,onBlur:rt,onChange:tt,title:lt,helperText:ut,disabled:dt}),MultipleTextArea=styled$1("div")`
  display: flex;
  align-items: center;
  margin-bottom: ${({isLastItem:et})=>et?"0":"12px"};
`,TextAreaFieldGroup=({name:et,createMutation:tt,deleteMutation:rt,updateMutation:nt,fieldText:lt,placeholder:ut,addButtonText:dt,helperMessageType:pt,parentField:ht,values:mt,textFieldValue:xt,textFieldName:Mt,userIconFieldName:vt,userTypeValue:Ot,isManagementForm:At=!1})=>{const Rt="",{setFieldTouched:zt,setFieldValue:Tt}=useFormikContext();reactExports.useEffect(()=>{(mt==null?void 0:mt.length)===0&&tt(et,Rt).then(It=>{const Dt=Object.values(It.data)[0];vt&&(Dt[ht][vt]=""),Tt(et,[{...Dt[ht]}],!1)})},[mt]);const Ct=At||(mt==null?void 0:mt.length)>0&&mt.filter(It=>It[xt]!=="").length>0;return jsxRuntimeExports.jsx(FieldArray,{name:et,render:({push:It,remove:Dt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[(mt==null?void 0:mt.length)>0&&mt.map((kt,qt)=>{const Yt={isLastItem:qt===mt.length-1},{id:Kt}=kt,Jt=`${et}[${qt}].${xt}`;let Qt,Bt="";return vt&&(Qt=kt[vt],Bt=`${et}[${qt}].${vt}`),reactExports.createElement(MultipleTextArea,{...Yt,key:qt},jsxRuntimeExports.jsx(Field,{name:Jt,component:TextAreaField,placeholder:ut,updateMutation:Ft=>{nt({variables:{id:Kt,[Mt]:et,[xt]:Ft}}),zt(et,!0),vt&&Tt(Bt,Ot)},multiline:!0,maxLength:2048}),vt&&jsxRuntimeExports.jsx(UserIcon,{userType:Qt}),mt.length>1&&jsxRuntimeExports.jsx(IconButton,{"data-testid":`remove-icon-${et}-${qt}`,sx:{marginLeft:.5},onClick:()=>{Dt(qt),rt(Kt)},color:"primary",children:jsxRuntimeExports.jsx(RemoveCircleOutline,{})}))}),Ct&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lt&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:et,fieldText:lt,helperType:pt}),jsxRuntimeExports.jsx(Button,{variant:"text",sx:{marginRight:"auto",marginTop:1},startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),onClick:()=>At?tt(et,Rt):tt(et,Rt).then(kt=>{const qt=Object.values(kt.data)[0];It({...qt[ht]})}),children:dt})]})]})})},StyledToggleButtonGroup=styled$1(ToggleButtonGroup)`
  && {
    width: ${({width:et})=>et||""};
  }
`,ToggleButtonGroupField=({field:et,form:tt,label:rt,options:nt,helperType:lt,handleMutation:ut,conditionalHandleChange:dt,lastUpdateUser:pt,allowUnset:ht=!1,minwidth:mt,alternateStyle:xt})=>{const{name:Mt,value:vt}=et,{touched:Ot,errors:At,setFieldValue:Rt,submitCount:zt}=tt,[Tt,Ct]=reactExports.useState(vt),It=getIn$1(At,Mt),Dt=getIn$1(Ot,Mt),kt=vt!==null&&vt!=="",qt=(zt>0||kt||Dt)&&It,Nt=DeviceUtilities$1.isMobileDevice();reactExports.useEffect(()=>{vt&&!Tt&&Ct(vt)},[vt,Tt]);const Yt=(Kt,Jt)=>{(Jt!==null||ht)&&(ut&&ut(Mt,Jt),Rt(Mt,Jt),Ct(Jt),dt&&dt(Jt))};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledFieldRow,{width:Nt?"100%":void 0,children:[jsxRuntimeExports.jsx(StyledToggleButtonGroup,{...et,value:Tt,exclusive:!0,width:Nt?"100%":void 0,onChange:Yt,"aria-label":`${rt}-group`,children:nt.map((Kt,Jt)=>jsxRuntimeExports.jsx(ToggleButton,{name:Mt,firstChild:Jt===0,lastChild:Jt===nt.length-1,invalid:qt,selected:Tt===Kt.value,value:Kt.value,"aria-label":Kt.label,minwidth:Nt?`${100/((nt==null?void 0:nt.length)||1)}%`:mt,alternateStyle:xt,children:Kt.label},Jt))}),pt&&jsxRuntimeExports.jsx(UserIcon,{userType:pt})]}),qt&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:Mt,fieldText:It,helperType:lt,fontSize:xt?14:16})]})};var dist={},PlacesAutocomplete$1={},FUNC_ERROR_TEXT$2="Expected a function",NAN$2=NaN,symbolTag$3="[object Symbol]",reTrim$1=/^\s+|\s+$/g,reIsBadHex$2=/^[-+]0x[0-9a-f]+$/i,reIsBinary$2=/^0b[01]+$/i,reIsOctal$2=/^0o[0-7]+$/i,freeParseInt$2=parseInt,freeGlobal$3=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,freeSelf$2=typeof self=="object"&&self&&self.Object===Object&&self,root$b=freeGlobal$3||freeSelf$2||Function("return this")(),objectProto$f=Object.prototype,objectToString$4=objectProto$f.toString,nativeMax$2=Math.max,nativeMin$2=Math.min,now$1=function(){return root$b.Date.now()};function debounce$1(et,tt,rt){var nt,lt,ut,dt,pt,ht,mt=0,xt=!1,Mt=!1,vt=!0;if(typeof et!="function")throw new TypeError(FUNC_ERROR_TEXT$2);tt=toNumber$3(tt)||0,isObject$b(rt)&&(xt=!!rt.leading,Mt="maxWait"in rt,ut=Mt?nativeMax$2(toNumber$3(rt.maxWait)||0,tt):ut,vt="trailing"in rt?!!rt.trailing:vt);function Ot(qt){var Nt=nt,Yt=lt;return nt=lt=void 0,mt=qt,dt=et.apply(Yt,Nt),dt}function At(qt){return mt=qt,pt=setTimeout(Tt,tt),xt?Ot(qt):dt}function Rt(qt){var Nt=qt-ht,Yt=qt-mt,Kt=tt-Nt;return Mt?nativeMin$2(Kt,ut-Yt):Kt}function zt(qt){var Nt=qt-ht,Yt=qt-mt;return ht===void 0||Nt>=tt||Nt<0||Mt&&Yt>=ut}function Tt(){var qt=now$1();if(zt(qt))return Ct(qt);pt=setTimeout(Tt,Rt(qt))}function Ct(qt){return pt=void 0,vt&&nt?Ot(qt):(nt=lt=void 0,dt)}function It(){pt!==void 0&&clearTimeout(pt),mt=0,nt=ht=lt=pt=void 0}function Dt(){return pt===void 0?dt:Ct(now$1())}function kt(){var qt=now$1(),Nt=zt(qt);if(nt=arguments,lt=this,ht=qt,Nt){if(pt===void 0)return At(ht);if(Mt)return pt=setTimeout(Tt,tt),Ot(ht)}return pt===void 0&&(pt=setTimeout(Tt,tt)),dt}return kt.cancel=It,kt.flush=Dt,kt}function isObject$b(et){var tt=typeof et;return!!et&&(tt=="object"||tt=="function")}function isObjectLike$8(et){return!!et&&typeof et=="object"}function isSymbol$7(et){return typeof et=="symbol"||isObjectLike$8(et)&&objectToString$4.call(et)==symbolTag$3}function toNumber$3(et){if(typeof et=="number")return et;if(isSymbol$7(et))return NAN$2;if(isObject$b(et)){var tt=typeof et.valueOf=="function"?et.valueOf():et;et=isObject$b(tt)?tt+"":tt}if(typeof et!="string")return et===0?et:+et;et=et.replace(reTrim$1,"");var rt=reIsBinary$2.test(et);return rt||reIsOctal$2.test(et)?freeParseInt$2(et.slice(2),rt?2:8):reIsBadHex$2.test(et)?NAN$2:+et}var lodash_debounce=debounce$1;const debounce$2=getDefaultExportFromCjs$1(lodash_debounce);var helpers={};Object.defineProperty(helpers,"__esModule",{value:!0});helpers.compose=function(){for(var tt=arguments.length,rt=Array(tt),nt=0;nt<tt;nt++)rt[nt]=arguments[nt];return function(){for(var lt=arguments.length,ut=Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];rt.forEach(function(pt){return pt&&pt.apply(void 0,ut)})}};helpers.pick=function(tt){for(var rt=arguments.length,nt=Array(rt>1?rt-1:0),lt=1;lt<rt;lt++)nt[lt-1]=arguments[lt];return nt.reduce(function(ut,dt){return tt&&tt.hasOwnProperty(dt)&&(ut[dt]=tt[dt]),ut},{})};Object.defineProperty(PlacesAutocomplete$1,"__esModule",{value:!0});var _extends$6=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_createClass$2=function(){function et(tt,rt){for(var nt=0;nt<rt.length;nt++){var lt=rt[nt];lt.enumerable=lt.enumerable||!1,lt.configurable=!0,"value"in lt&&(lt.writable=!0),Object.defineProperty(tt,lt.key,lt)}}return function(tt,rt,nt){return rt&&et(tt.prototype,rt),nt&&et(tt,nt),tt}}(),_react$1=reactExports,_react2$1=_interopRequireDefault$m(_react$1),_propTypes$1=propTypesExports,_propTypes2$1=_interopRequireDefault$m(_propTypes$1),_lodash=lodash_debounce,_lodash2=_interopRequireDefault$m(_lodash),_helpers=helpers;function _interopRequireDefault$m(et){return et&&et.__esModule?et:{default:et}}function _classCallCheck$2(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$2(et,tt){if(!et)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt&&(typeof tt=="object"||typeof tt=="function")?tt:et}function _inherits$2(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof tt);et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}),tt&&(Object.setPrototypeOf?Object.setPrototypeOf(et,tt):et.__proto__=tt)}var formattedSuggestion=function(tt){return{mainText:tt.main_text,secondaryText:tt.secondary_text}},PlacesAutocomplete=function(et){_inherits$2(tt,et);function tt(rt){_classCallCheck$2(this,tt);var nt=_possibleConstructorReturn$2(this,(tt.__proto__||Object.getPrototypeOf(tt)).call(this,rt));return nt.init=function(){if(!window.google)throw new Error("[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");if(!window.google.maps.places)throw new Error("[react-places-autocomplete]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");nt.autocompleteService=new window.google.maps.places.AutocompleteService,nt.autocompleteOK=window.google.maps.places.PlacesServiceStatus.OK,nt.setState(function(lt){return lt.ready?null:{ready:!0}})},nt.autocompleteCallback=function(lt,ut){if(nt.setState({loading:!1}),ut!==nt.autocompleteOK){nt.props.onError(ut,nt.clearSuggestions);return}var dt=nt.props.highlightFirstSuggestion;nt.setState({suggestions:lt.map(function(pt,ht){return{id:pt.id,description:pt.description,placeId:pt.place_id,active:!!(dt&&ht===0),index:ht,formattedSuggestion:formattedSuggestion(pt.structured_formatting),matchedSubstrings:pt.matched_substrings,terms:pt.terms,types:pt.types}})})},nt.fetchPredictions=function(){var lt=nt.props.value;lt.length&&(nt.setState({loading:!0}),nt.autocompleteService.getPlacePredictions(_extends$6({},nt.props.searchOptions,{input:lt}),nt.autocompleteCallback))},nt.clearSuggestions=function(){nt.setState({suggestions:[]})},nt.clearActive=function(){nt.setState({suggestions:nt.state.suggestions.map(function(lt){return _extends$6({},lt,{active:!1})})})},nt.handleSelect=function(lt,ut,dt){nt.clearSuggestions(),nt.props.onSelect?nt.props.onSelect(lt,ut,dt):nt.props.onChange(lt)},nt.getActiveSuggestion=function(){return nt.state.suggestions.find(function(lt){return lt.active})},nt.selectActiveAtIndex=function(lt){var ut=nt.state.suggestions.find(function(dt){return dt.index===lt}).description;nt.setActiveAtIndex(lt),nt.props.onChange(ut)},nt.selectUserInputValue=function(){nt.clearActive(),nt.props.onChange(nt.state.userInputValue)},nt.handleEnterKey=function(){var lt=nt.getActiveSuggestion();lt===void 0?nt.handleSelect(nt.props.value,null,null):nt.handleSelect(lt.description,lt.placeId,lt)},nt.handleDownKey=function(){if(nt.state.suggestions.length!==0){var lt=nt.getActiveSuggestion();lt===void 0?nt.selectActiveAtIndex(0):lt.index===nt.state.suggestions.length-1?nt.selectUserInputValue():nt.selectActiveAtIndex(lt.index+1)}},nt.handleUpKey=function(){if(nt.state.suggestions.length!==0){var lt=nt.getActiveSuggestion();lt===void 0?nt.selectActiveAtIndex(nt.state.suggestions.length-1):lt.index===0?nt.selectUserInputValue():nt.selectActiveAtIndex(lt.index-1)}},nt.handleInputKeyDown=function(lt){switch(lt.key){case"Enter":lt.preventDefault(),nt.handleEnterKey();break;case"ArrowDown":lt.preventDefault(),nt.handleDownKey();break;case"ArrowUp":lt.preventDefault(),nt.handleUpKey();break;case"Escape":nt.clearSuggestions();break}},nt.setActiveAtIndex=function(lt){nt.setState({suggestions:nt.state.suggestions.map(function(ut,dt){return dt===lt?_extends$6({},ut,{active:!0}):_extends$6({},ut,{active:!1})})})},nt.handleInputChange=function(lt){var ut=lt.target.value;if(nt.props.onChange(ut),nt.setState({userInputValue:ut}),!ut){nt.clearSuggestions();return}nt.props.shouldFetchSuggestions&&nt.debouncedFetchPredictions()},nt.handleInputOnBlur=function(){nt.mousedownOnSuggestion||nt.clearSuggestions()},nt.getActiveSuggestionId=function(){var lt=nt.getActiveSuggestion();return lt?"PlacesAutocomplete__suggestion-"+lt.placeId:void 0},nt.getIsExpanded=function(){return nt.state.suggestions.length>0},nt.getInputProps=function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(lt.hasOwnProperty("value"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `value`. Use `value` prop instead");if(lt.hasOwnProperty("onChange"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `onChange`. Use `onChange` prop instead");var ut={type:"text",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":nt.getIsExpanded(),"aria-activedescendant":nt.getActiveSuggestionId(),disabled:!nt.state.ready};return _extends$6({},ut,lt,{onKeyDown:(0,_helpers.compose)(nt.handleInputKeyDown,lt.onKeyDown),onBlur:(0,_helpers.compose)(nt.handleInputOnBlur,lt.onBlur),value:nt.props.value,onChange:function(pt){nt.handleInputChange(pt)}})},nt.getSuggestionItemProps=function(lt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=nt.handleSuggestionMouseEnter.bind(nt,lt.index),pt=nt.handleSuggestionClick.bind(nt,lt);return _extends$6({},ut,{key:lt.id,id:nt.getActiveSuggestionId(),role:"option",onMouseEnter:(0,_helpers.compose)(dt,ut.onMouseEnter),onMouseLeave:(0,_helpers.compose)(nt.handleSuggestionMouseLeave,ut.onMouseLeave),onMouseDown:(0,_helpers.compose)(nt.handleSuggestionMouseDown,ut.onMouseDown),onMouseUp:(0,_helpers.compose)(nt.handleSuggestionMouseUp,ut.onMouseUp),onTouchStart:(0,_helpers.compose)(nt.handleSuggestionTouchStart,ut.onTouchStart),onTouchEnd:(0,_helpers.compose)(nt.handleSuggestionMouseUp,ut.onTouchEnd),onClick:(0,_helpers.compose)(pt,ut.onClick)})},nt.handleSuggestionMouseEnter=function(lt){nt.setActiveAtIndex(lt)},nt.handleSuggestionMouseLeave=function(){nt.mousedownOnSuggestion=!1,nt.clearActive()},nt.handleSuggestionMouseDown=function(lt){lt.preventDefault(),nt.mousedownOnSuggestion=!0},nt.handleSuggestionTouchStart=function(){nt.mousedownOnSuggestion=!0},nt.handleSuggestionMouseUp=function(){nt.mousedownOnSuggestion=!1},nt.handleSuggestionClick=function(lt,ut){ut&&ut.preventDefault&&ut.preventDefault();var dt=lt.description,pt=lt.placeId;nt.handleSelect(dt,pt,lt),setTimeout(function(){nt.mousedownOnSuggestion=!1})},nt.state={loading:!1,suggestions:[],userInputValue:rt.value,ready:!rt.googleCallbackName},nt.debouncedFetchPredictions=(0,_lodash2.default)(nt.fetchPredictions,rt.debounce),nt}return _createClass$2(tt,[{key:"componentDidMount",value:function(){var nt=this.props.googleCallbackName;if(nt){var lt=window.google&&window.google.maps&&window.google.maps.places;lt?this.init():window[nt]=this.init}else this.init()}},{key:"componentWillUnmount",value:function(){var nt=this.props.googleCallbackName;nt&&window[nt]&&delete window[nt]}},{key:"render",value:function(){return this.props.children({getInputProps:this.getInputProps,getSuggestionItemProps:this.getSuggestionItemProps,loading:this.state.loading,suggestions:this.state.suggestions})}}]),tt}(_react2$1.default.Component);PlacesAutocomplete.propTypes={onChange:_propTypes2$1.default.func.isRequired,value:_propTypes2$1.default.string.isRequired,children:_propTypes2$1.default.func.isRequired,onError:_propTypes2$1.default.func,onSelect:_propTypes2$1.default.func,searchOptions:_propTypes2$1.default.shape({bounds:_propTypes2$1.default.object,componentRestrictions:_propTypes2$1.default.object,location:_propTypes2$1.default.object,offset:_propTypes2$1.default.oneOfType([_propTypes2$1.default.number,_propTypes2$1.default.string]),radius:_propTypes2$1.default.oneOfType([_propTypes2$1.default.number,_propTypes2$1.default.string]),types:_propTypes2$1.default.array}),debounce:_propTypes2$1.default.number,highlightFirstSuggestion:_propTypes2$1.default.bool,shouldFetchSuggestions:_propTypes2$1.default.bool,googleCallbackName:_propTypes2$1.default.string};PlacesAutocomplete.defaultProps={onError:function(tt,rt){return console.error(`[react-places-autocomplete]: error happened when fetching data from Google Maps API.
Please check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)
Status: `,tt)},searchOptions:{},debounce:200,highlightFirstSuggestion:!1,shouldFetchSuggestions:!0};PlacesAutocomplete$1.default=PlacesAutocomplete;var utils$q={};Object.defineProperty(utils$q,"__esModule",{value:!0});utils$q.geocodeByAddress=function(tt){var rt=new window.google.maps.Geocoder,nt=window.google.maps.GeocoderStatus.OK;return new Promise(function(lt,ut){rt.geocode({address:tt},function(dt,pt){pt!==nt&&ut(pt),lt(dt)})})};utils$q.getLatLng=function(tt){return new Promise(function(rt,nt){try{var lt={lat:tt.geometry.location.lat(),lng:tt.geometry.location.lng()};rt(lt)}catch(ut){nt(ut)}})};utils$q.geocodeByPlaceId=function(tt){var rt=new window.google.maps.Geocoder,nt=window.google.maps.GeocoderStatus.OK;return new Promise(function(lt,ut){rt.geocode({placeId:tt},function(dt,pt){pt!==nt&&ut(pt),lt(dt)})})};Object.defineProperty(dist,"__esModule",{value:!0});dist.getLatLng=geocodeByPlaceId=dist.geocodeByPlaceId=geocodeByAddress=dist.geocodeByAddress=void 0;var _PlacesAutocomplete=PlacesAutocomplete$1,_PlacesAutocomplete2=_interopRequireDefault$l(_PlacesAutocomplete),_utils=utils$q;function _interopRequireDefault$l(et){return et&&et.__esModule?et:{default:et}}var geocodeByAddress=dist.geocodeByAddress=_utils.geocodeByAddress,geocodeByPlaceId=dist.geocodeByPlaceId=_utils.geocodeByPlaceId;dist.getLatLng=_utils.getLatLng;var _default$2=dist.default=_PlacesAutocomplete2.default;const StyledField$3=styled$1(et=>jsxRuntimeExports.jsx(Field,{...et}))`
  width: 100%;
  height: 100%;
  font-size: ${getRemSize(14)};
  box-shadow: none;
  outline: none;
  height: 40px;
  resize: none;
`,StyledSpinner=styled$1(CircularProgress)`
  position: absolute;
  margin-left: 8px;
  bottom: 11px;
  right: 8px;
  color: ${et=>et.theme.palette.primary.main};
`,StyledSuggestionsContainer=styled$1("div")`
  position: relative;
  margin-top: 8px;
  border-radius: 4px;
`,StyledSuggestions=styled$1(et=>jsxRuntimeExports.jsx("div",{...et}))`
  position: absolute;
  z-index: 1000;
  background: white;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 10%), 0 4px 11px hsl(0deg 0% 0% / 10%);

  &:first-child {
    padding-top: 5px;
  }

  .suggestion-item {
    cursor: pointer;
    padding-left: 8px;

    &.active {
      &:hover {
        background-color: ${et=>et.theme.palette.grey[100]};
      }
    }
  }

  &:last-child {
    padding-bottom: 5px;
  }
`,AddressAutocompleteField=et=>{const{placeholder:tt,name:rt,updateAddressField:nt,updateAutoFilledAddress:lt,value:ut="",locationBiasing:dt=!0}=et,[pt,ht]=reactExports.useState(!0),mt={types:["address"],radius:2e3};dt&&(Object.create(globalThis.import_meta_env||null).REACT_APP_REGION===Region.AU&&(mt.location=new google.maps.LatLng(-25,134)),Object.create(globalThis.import_meta_env||null).REACT_APP_REGION===Region.UK&&(mt.location=new google.maps.LatLng(55,-3)),Object.create(globalThis.import_meta_env||null).REACT_APP_REGION===Region.US&&(mt.location=new google.maps.LatLng(37,-96)));const[,,xt]=useField(`${rt}.autofilled`),[,,Mt]=useField(`${rt}.country`),[,,vt]=useField(`${rt}.state`),[,Ot,At]=useField(`${rt}.line1`),[,,Rt]=useField(`${rt}.line2`),[,,zt]=useField(`${rt}.city`),[,,Tt]=useField(`${rt}.postcode`),[Ct,It]=reactExports.useState(ut),Dt=Nt=>{Nt.preventDefault(),nt&&nt(Nt.target.value),ht(!1)},kt=Nt=>{geocodeByAddress(Nt).then(Yt=>{var Kt;if(Yt.length>0){const Jt=Yt[0],Qt=Jt.formatted_address,Bt=Jt.address_components;It(Qt),xt.setValue(Qt);let Ft=(Kt=Bt.filter(Ht=>Ht.types.includes("country"))[0])==null?void 0:Kt.long_name;switch(Ft){case"US":case"USA":case"United States":case"United States of America":Ft="United States of America";break;case"UK":case"United Kingdom":Ft="United Kingdom";break}let $t="",jt="",Wt="",Ut="",Vt="";for(const Ht of Jt.address_components){switch(Ht.types[0]){case"street_number":{$t=`${Ht.long_name} ${$t}`;break}case"route":{$t+=Ht.short_name;break}case"subpremise":{jt=`${Ht.long_name}`;break}case"postal_code":{Ut=`${Ht.long_name}${Ut}`;break}case"postal_code_suffix":{Ut=`${Ut}-${Ht.long_name}`;break}case"locality":Wt=Ht.long_name;break;case"postal_town":Wt=Ht.long_name;break;case"administrative_area_level_1":{Vt=Ft==="Australia"?Ht==null?void 0:Ht.short_name:Ht==null?void 0:Ht.long_name;break}}It($t),At.setValue($t),Rt.setValue(jt),zt.setValue(Wt),vt.setValue(Vt),Tt.setValue(Ut),Mt.setValue(Ft)}lt({country:Ft,line1:$t,line2:jt,city:Wt,state:Vt,postcode:Ut})}})},qt=Nt=>{At.setValue(Nt),It(Nt),ht(!0)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(_default$2,{value:Ct,onChange:qt,onSelect:kt,searchOptions:mt,children:({getInputProps:Nt,suggestions:Yt,getSuggestionItemProps:Kt,loading:Jt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledField$3,{component:BaseTextField,id:`${rt}.line1`,...Nt({placeholder:tt,className:"location-search-input"}),onFocus:Qt=>{Qt.target.setAttribute("autocomplete","random-text")},name:`${rt}.line1`,onBlur:Dt}),(Jt||(Yt==null?void 0:Yt.length)>0)&&jsxRuntimeExports.jsx(StyledSuggestionsContainer,{children:Jt?jsxRuntimeExports.jsx(StyledSpinner,{sx:{height:"24px !important",width:"24px !important",marginBottom:"6px"}}):pt&&Yt.length>0&&jsxRuntimeExports.jsx(StyledSuggestions,{className:classNames$1("autocomplete-dropdown-container",{"with-suggestions":Yt.length>0}),children:Yt.map((Qt,Bt)=>{const Ft=classNames$1("suggestion-item",{active:Qt.active});return reactExports.createElement("div",{...Kt(Qt,{className:Ft}),key:Bt},jsxRuntimeExports.jsx("span",{children:Qt.description}))})})}),Ot.touched&&(Ot==null?void 0:Ot.error)&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:rt,fieldText:Ot.error,helperType:"error",fontSize:14})]})})})},SelectField$1=et=>{const{options:tt,field:rt,form:nt,updateMutation:lt,disabled:ut=!1,...dt}=et,{name:pt,value:ht}=rt,{errors:mt,touched:xt,submitCount:Mt,setFieldValue:vt}=nt,Ot=getIn$1(mt,pt),At=getIn$1(xt,pt),Rt=!!((Mt>0||At)&&Ot),zt=reactExports.useMemo(()=>tt==null?void 0:tt.find(Ct=>Ct.value===ht),[ht,tt]),Tt=Ct=>{lt(Ct||""),vt(pt,Ct,!0)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(BaseAutocomplete,{...dt,id:pt,"data-testid":pt,fullWidth:!0,value:zt,onChange:Ct=>{const It=typeof Ct=="string"?Ct:Ct==null?void 0:Ct.value;Tt(It)},inputProps:{error:Rt,helperText:Ot},disabled:ut,options:tt})})},COUNTRY_LIST=gql`
  query CountryList {
    data: listData(category: "countryOfBirth") {
      id
      name
    }
  }
`,AUSTRALIA_STATES_LIST=gql`
  query AustraliaStatesList {
    data: listData(category: "australiaStates") {
      id
      name
    }
  }
`;gql`
  query UKCountiesList {
    data: listData(category: "ukCounties") {
      id
      name
    }
  }
`;const mapListData=et=>et==null?void 0:et.map(tt=>({label:tt.name,value:tt.name})),AddressField=et=>{const{label:tt,name:rt,updateField:nt,required:lt=!1,placeholder:ut="",...dt}=et;return jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:`${tt}${lt?"*":""}`,fieldName:rt,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{...dt,placeholder:ut||`Enter ${tt.toLowerCase()}`,htmlFor:rt,name:rt,component:TextAreaField,updateMutation:pt=>{nt&&nt(rt,pt)},alternateStyle:!0})})},AddressSelect=et=>{const{label:tt,name:rt,options:nt,updateField:lt,required:ut=!1,placeholder:dt="",...pt}=et;return jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:`${tt}${ut?"*":""}`,fieldName:rt,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{...pt,placeholder:dt||`Enter ${tt.toLowerCase()}`,htmlFor:rt,name:rt,fullWidth:!0,options:nt,component:SelectField$1,updateMutation:lt})})},AddressSectionField=et=>{const{name:tt,values:rt,updateAddress:nt,includeMandatoryLabels:lt,locationBiasing:ut=!0}=et,dt=addressLabelForRegion(),pt=addressPlaceholdersForRegion(),ht=["Australia"],{data:mt,loading:xt}=useQuery(AUSTRALIA_STATES_LIST),Mt=reactExports.useMemo(()=>mt==null?void 0:mt.data,[mt==null?void 0:mt.data]),{data:vt,loading:Ot}=useQuery(COUNTRY_LIST),At=reactExports.useMemo(()=>vt==null?void 0:vt.data,[vt==null?void 0:vt.data]),Rt=!1,[,,zt]=useField(`${tt}.state`),[,,Tt]=useField(`${tt}.country`),[Ct,It]=reactExports.useState(!1),Dt=new Logger("AddressSectionField");reactExports.useEffect(()=>{if(typeof google>"u"){let Nt=0;const Yt=setInterval(()=>{Nt++,Dt.info(`waiting for google API ${Nt*2} seconds`),typeof google<"u"&&(It(!0),clearInterval(Yt)),Nt>=3&&(Dt.info("Failed to load google api"),It(!1),clearInterval(Yt))},2e3)}else It(!0)},[]);const kt=(Nt,Yt)=>{const Kt=Nt.split(".").pop();let Jt={...rt,[Kt]:Yt};Kt==="country"&&ht.includes(Yt)&&(Jt={...Jt,state:""}),nt&&nt(Jt)},qt=Nt=>{nt&&nt(Nt)};return xt||Ot?jsxRuntimeExports.jsx(CircularProgress,{color:"primary"}):vt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ct?jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:`${dt.line1}${lt?"*":""}`,fieldName:`${tt}.line1`,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(AddressAutocompleteField,{name:tt,placeholder:pt.line1,value:rt.line1,updateAutoFilledAddress:qt,locationBiasing:ut,updateAddressField:Nt=>kt(`${tt}.line1`,Nt)})}):jsxRuntimeExports.jsx(AddressField,{name:`${tt}.line1`,label:dt.line1,placeholder:"Address line 1",updateField:kt,disabled:Rt}),jsxRuntimeExports.jsx(AddressField,{name:`${tt}.line2`,label:dt.line2,placeholder:pt.line2,updateField:kt,disabled:Rt}),jsxRuntimeExports.jsx(AddressField,{name:`${tt}.city`,label:dt.city,placeholder:pt.city,required:lt,updateField:kt,disabled:Rt}),ht.includes(rt==null?void 0:rt.country)?jsxRuntimeExports.jsx(AddressSelect,{name:`${tt}.state`,label:dt.state,placeholder:pt.state,required:lt,disabled:Rt,options:mapListData(Mt),updateField:Nt=>{zt.setValue(Nt),kt(`${tt}.state`,Nt||"")}}):jsxRuntimeExports.jsx(AddressField,{name:`${tt}.state`,label:dt.state,placeholder:pt.state,required:lt,updateField:kt,disabled:Rt}),jsxRuntimeExports.jsx(AddressField,{name:`${tt}.postcode`,label:dt.postcode,placeholder:pt.postcode,required:lt,updateField:kt,disabled:Rt}),jsxRuntimeExports.jsx(AddressSelect,{id:`${tt}.country`,name:`${tt}.country`,label:dt.country,placeholder:pt.country,required:lt,disabled:Rt,options:mapListData(At),updateField:Nt=>{Tt.setValue(Nt),kt(`${tt}.country`,Nt||"")}})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},StyledInputMask=styled$1(InputMask)`
  border: 1px solid
    ${et=>et.warning?et.theme.palette.warning.dark:et.invalid?et.theme.palette.error.main:et.theme.palette.grey[300]} !important;
  border-radius: 4px;
  height: 42px;
  padding: 8px;
  width: 250px;
`,MaskField=({field:et,form:tt,updateMutation:rt,initialMask:nt,mask:lt,defaultValue:ut,inputType:dt="text",elementRef:pt,autoComplete:ht="off",dataTestId:mt,maskChar:xt="_",maxLength:Mt})=>{const{name:vt,value:Ot,onBlur:At,onChange:Rt}=et,[zt,Tt]=reactExports.useState({show:!1,message:"Character limit reached"}),{errors:Ct,touched:It,submitCount:Dt}=tt,kt=getIn$1(Ct,vt),qt=getIn$1(It,vt),Nt=(Dt>0||qt)&&kt,Yt=reactExports.useMemo(()=>!Ot||Ot===lt.replace(/9/g,"X")||!isNaN(Number(Ot.replace(/\s/g,"").replace(/X/g,"")))?lt:nt&&(Nt||!qt)?nt:lt,[qt,Nt,Ot]),Kt=async Jt=>{At(Jt),rt&&rt(Jt.target.value)};return reactExports.useEffect(()=>{Mt&&Ot.length===parseInt(Mt)?Tt({...zt,show:!0}):Tt({...zt,show:!1})},[Ot]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledFieldRow,{children:jsxRuntimeExports.jsx(StyledInputMask,{autoComplete:ht,mask:Yt,alwaysShowMask:!0,invalid:Nt,name:vt,type:dt,onBlur:Jt=>Kt(Jt),onChange:Rt,ref:pt,"data-test-id":mt,maskChar:xt,defaultValue:ut,value:Ot})}),(Nt||zt.show)&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:vt,fieldText:kt||zt.message,helperType:zt.show?"warning":"error",fontSize:14})]})};function _objectWithoutProperties$2(et,tt){if(et==null)return{};var rt,nt,lt=_objectWithoutPropertiesLoose$d(et,tt);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(nt=0;nt<ut.length;nt++)rt=ut[nt],tt.includes(rt)||{}.propertyIsEnumerable.call(et,rt)&&(lt[rt]=et[rt])}return lt}function _arrayWithHoles$2(et){if(Array.isArray(et))return et}function _iterableToArrayLimit$2(et,tt){var rt=et==null?null:typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt!=null){var nt,lt,ut,dt,pt=[],ht=!0,mt=!1;try{if(ut=(rt=rt.call(et)).next,tt!==0)for(;!(ht=(nt=ut.call(rt)).done)&&(pt.push(nt.value),pt.length!==tt);ht=!0);}catch(xt){mt=!0,lt=xt}finally{try{if(!ht&&rt.return!=null&&(dt=rt.return(),Object(dt)!==dt))return}finally{if(mt)throw lt}}return pt}}function _arrayLikeToArray$2(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _unsupportedIterableToArray$2(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$2(et,tt);var rt={}.toString.call(et).slice(8,-1);return rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set"?Array.from(et):rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt)?_arrayLikeToArray$2(et,tt):void 0}}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray$2(et,tt){return _arrayWithHoles$2(et)||_iterableToArrayLimit$2(et,tt)||_unsupportedIterableToArray$2(et,tt)||_nonIterableRest$2()}function _arrayWithoutHoles$2(et){if(Array.isArray(et))return _arrayLikeToArray$2(et)}function _iterableToArray$2(et){if(typeof Symbol<"u"&&et[Symbol.iterator]!=null||et["@@iterator"]!=null)return Array.from(et)}function _nonIterableSpread$2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray$2(et){return _arrayWithoutHoles$2(et)||_iterableToArray$2(et)||_unsupportedIterableToArray$2(et)||_nonIterableSpread$2()}function _defineProperty$3(et,tt,rt){return(tt=toPropertyKey(tt))in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _classCallCheck$1(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _defineProperties(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(et,toPropertyKey(nt.key),nt)}}function _createClass$1(et,tt,rt){return tt&&_defineProperties(et.prototype,tt),Object.defineProperty(et,"prototype",{writable:!1}),et}function _inherits$1(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function");et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,writable:!0,configurable:!0}}),Object.defineProperty(et,"prototype",{writable:!1}),tt&&_setPrototypeOf$6(et,tt)}function _possibleConstructorReturn$1(et,tt){if(tt&&(_typeof$5(tt)=="object"||typeof tt=="function"))return tt;if(tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$4(et)}function _getPrototypeOf(et){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf(et)}var safeIsNaN$1=Number.isNaN||function(tt){return typeof tt=="number"&&tt!==tt};function isEqual$4(et,tt){return!!(et===tt||safeIsNaN$1(et)&&safeIsNaN$1(tt))}function areInputsEqual$2(et,tt){if(et.length!==tt.length)return!1;for(var rt=0;rt<et.length;rt++)if(!isEqual$4(et[rt],tt[rt]))return!1;return!0}function memoizeOne$1(et,tt){tt===void 0&&(tt=areInputsEqual$2);var rt,nt=[],lt,ut=!1;function dt(){for(var pt=[],ht=0;ht<arguments.length;ht++)pt[ht]=arguments[ht];return ut&&rt===this&&tt(pt,nt)||(lt=et.apply(this,pt),ut=!0,rt=this,nt=pt),lt}return dt}function sheetForTag(et){if(et.sheet)return et.sheet;for(var tt=0;tt<document.styleSheets.length;tt++)if(document.styleSheets[tt].ownerNode===et)return document.styleSheets[tt]}function createStyleElement(et){var tt=document.createElement("style");return tt.setAttribute("data-emotion",et.key),et.nonce!==void 0&&tt.setAttribute("nonce",et.nonce),tt.appendChild(document.createTextNode("")),tt}var StyleSheet=function(){function et(rt){this.isSpeedy=rt.speedy===void 0?!0:rt.speedy,this.tags=[],this.ctr=0,this.nonce=rt.nonce,this.key=rt.key,this.container=rt.container,this.before=null}var tt=et.prototype;return tt.insert=function(nt){if(this.ctr%(this.isSpeedy?65e3:1)===0){var lt=createStyleElement(this),ut;this.tags.length===0?ut=this.before:ut=this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(lt,ut),this.tags.push(lt)}var dt=this.tags[this.tags.length-1];if(this.isSpeedy){var pt=sheetForTag(dt);try{var ht=nt.charCodeAt(1)===105&&nt.charCodeAt(0)===64;pt.insertRule(nt,ht?0:pt.cssRules.length)}catch{}}else dt.appendChild(document.createTextNode(nt));this.ctr++},tt.flush=function(){this.tags.forEach(function(nt){return nt.parentNode.removeChild(nt)}),this.tags=[],this.ctr=0},et}();function stylis_min(et){function tt(Xt,er,nr,or,rr){for(var cr=0,ir=0,dr=0,gr=0,br,ar,ur=0,xr=0,Mr,Ar=Mr=br=0,Ir=0,Rr=0,wr=0,qr=0,Hr=nr.length,kr=Hr-1,$r,yr="",Or="",Dr="",Fr="",Yr;Ir<Hr;){if(ar=nr.charCodeAt(Ir),Ir===kr&&ir+gr+dr+cr!==0&&(ir!==0&&(ar=ir===47?10:47),gr=dr=cr=0,Hr++,kr++),ir+gr+dr+cr===0){if(Ir===kr&&(0<Rr&&(yr=yr.replace(vt,"")),0<yr.trim().length)){switch(ar){case 32:case 9:case 59:case 13:case 10:break;default:yr+=nr.charAt(Ir)}ar=59}switch(ar){case 123:for(yr=yr.trim(),br=yr.charCodeAt(0),Mr=1,qr=++Ir;Ir<Hr;){switch(ar=nr.charCodeAt(Ir)){case 123:Mr++;break;case 125:Mr--;break;case 47:switch(ar=nr.charCodeAt(Ir+1)){case 42:case 47:e:{for(Ar=Ir+1;Ar<kr;++Ar)switch(nr.charCodeAt(Ar)){case 47:if(ar===42&&nr.charCodeAt(Ar-1)===42&&Ir+2!==Ar){Ir=Ar+1;break e}break;case 10:if(ar===47){Ir=Ar+1;break e}}Ir=Ar}}break;case 91:ar++;case 40:ar++;case 34:case 39:for(;Ir++<kr&&nr.charCodeAt(Ir)!==ar;);}if(Mr===0)break;Ir++}switch(Mr=nr.substring(qr,Ir),br===0&&(br=(yr=yr.replace(Mt,"").trim()).charCodeAt(0)),br){case 64:switch(0<Rr&&(yr=yr.replace(vt,"")),ar=yr.charCodeAt(1),ar){case 100:case 109:case 115:case 45:Rr=er;break;default:Rr=Wt}if(Mr=tt(er,Rr,Mr,ar,rr+1),qr=Mr.length,0<Vt&&(Rr=rt(Wt,yr,wr),Yr=pt(3,Mr,Rr,er,Ft,Bt,qr,ar,rr,or),yr=Rr.join(""),Yr!==void 0&&(qr=(Mr=Yr.trim()).length)===0&&(ar=0,Mr="")),0<qr)switch(ar){case 115:yr=yr.replace(qt,dt);case 100:case 109:case 45:Mr=yr+"{"+Mr+"}";break;case 107:yr=yr.replace(Ct,"$1 $2"),Mr=yr+"{"+Mr+"}",Mr=jt===1||jt===2&&ut("@"+Mr,3)?"@-webkit-"+Mr+"@"+Mr:"@"+Mr;break;default:Mr=yr+Mr,or===112&&(Mr=(Or+=Mr,""))}else Mr="";break;default:Mr=tt(er,rt(er,yr,wr),Mr,or,rr+1)}Dr+=Mr,Mr=wr=Rr=Ar=br=0,yr="",ar=nr.charCodeAt(++Ir);break;case 125:case 59:if(yr=(0<Rr?yr.replace(vt,""):yr).trim(),1<(qr=yr.length))switch(Ar===0&&(br=yr.charCodeAt(0),br===45||96<br&&123>br)&&(qr=(yr=yr.replace(" ",":")).length),0<Vt&&(Yr=pt(1,yr,er,Xt,Ft,Bt,Or.length,or,rr,or))!==void 0&&(qr=(yr=Yr.trim()).length)===0&&(yr="\0\0"),br=yr.charCodeAt(0),ar=yr.charCodeAt(1),br){case 0:break;case 64:if(ar===105||ar===99){Fr+=yr+nr.charAt(Ir);break}default:yr.charCodeAt(qr-1)!==58&&(Or+=lt(yr,br,ar,yr.charCodeAt(2)))}wr=Rr=Ar=br=0,yr="",ar=nr.charCodeAt(++Ir)}}switch(ar){case 13:case 10:ir===47?ir=0:1+br===0&&or!==107&&0<yr.length&&(Rr=1,yr+="\0"),0<Vt*Gt&&pt(0,yr,er,Xt,Ft,Bt,Or.length,or,rr,or),Bt=1,Ft++;break;case 59:case 125:if(ir+gr+dr+cr===0){Bt++;break}default:switch(Bt++,$r=nr.charAt(Ir),ar){case 9:case 32:if(gr+cr+ir===0)switch(ur){case 44:case 58:case 9:case 32:$r="";break;default:ar!==32&&($r=" ")}break;case 0:$r="\\0";break;case 12:$r="\\f";break;case 11:$r="\\v";break;case 38:gr+ir+cr===0&&(Rr=wr=1,$r="\f"+$r);break;case 108:if(gr+ir+cr+$t===0&&0<Ar)switch(Ir-Ar){case 2:ur===112&&nr.charCodeAt(Ir-3)===58&&($t=ur);case 8:xr===111&&($t=xr)}break;case 58:gr+ir+cr===0&&(Ar=Ir);break;case 44:ir+dr+gr+cr===0&&(Rr=1,$r+="\r");break;case 34:case 39:ir===0&&(gr=gr===ar?0:gr===0?ar:gr);break;case 91:gr+ir+dr===0&&cr++;break;case 93:gr+ir+dr===0&&cr--;break;case 41:gr+ir+cr===0&&dr--;break;case 40:if(gr+ir+cr===0){if(br===0)switch(2*ur+3*xr){case 533:break;default:br=1}dr++}break;case 64:ir+dr+gr+cr+Ar+Mr===0&&(Mr=1);break;case 42:case 47:if(!(0<gr+cr+dr))switch(ir){case 0:switch(2*ar+3*nr.charCodeAt(Ir+1)){case 235:ir=47;break;case 220:qr=Ir,ir=42}break;case 42:ar===47&&ur===42&&qr+2!==Ir&&(nr.charCodeAt(qr+2)===33&&(Or+=nr.substring(qr,Ir+1)),$r="",ir=0)}}ir===0&&(yr+=$r)}xr=ur,ur=ar,Ir++}if(qr=Or.length,0<qr){if(Rr=er,0<Vt&&(Yr=pt(2,Or,Rr,Xt,Ft,Bt,qr,or,rr,or),Yr!==void 0&&(Or=Yr).length===0))return Fr+Or+Dr;if(Or=Rr.join(",")+"{"+Or+"}",jt*$t!==0){switch(jt!==2||ut(Or,2)||($t=0),$t){case 111:Or=Or.replace(Dt,":-moz-$1")+Or;break;case 112:Or=Or.replace(It,"::-webkit-input-$1")+Or.replace(It,"::-moz-$1")+Or.replace(It,":-ms-input-$1")+Or}$t=0}}return Fr+Or+Dr}function rt(Xt,er,nr){var or=er.trim().split(zt);er=or;var rr=or.length,cr=Xt.length;switch(cr){case 0:case 1:var ir=0;for(Xt=cr===0?"":Xt[0]+" ";ir<rr;++ir)er[ir]=nt(Xt,er[ir],nr).trim();break;default:var dr=ir=0;for(er=[];ir<rr;++ir)for(var gr=0;gr<cr;++gr)er[dr++]=nt(Xt[gr]+" ",or[ir],nr).trim()}return er}function nt(Xt,er,nr){var or=er.charCodeAt(0);switch(33>or&&(or=(er=er.trim()).charCodeAt(0)),or){case 38:return er.replace(Tt,"$1"+Xt.trim());case 58:return Xt.trim()+er.replace(Tt,"$1"+Xt.trim());default:if(0<1*nr&&0<er.indexOf("\f"))return er.replace(Tt,(Xt.charCodeAt(0)===58?"":"$1")+Xt.trim())}return Xt+er}function lt(Xt,er,nr,or){var rr=Xt+";",cr=2*er+3*nr+4*or;if(cr===944){Xt=rr.indexOf(":",9)+1;var ir=rr.substring(Xt,rr.length-1).trim();return ir=rr.substring(0,Xt).trim()+ir+";",jt===1||jt===2&&ut(ir,1)?"-webkit-"+ir+ir:ir}if(jt===0||jt===2&&!ut(rr,1))return rr;switch(cr){case 1015:return rr.charCodeAt(10)===97?"-webkit-"+rr+rr:rr;case 951:return rr.charCodeAt(3)===116?"-webkit-"+rr+rr:rr;case 963:return rr.charCodeAt(5)===110?"-webkit-"+rr+rr:rr;case 1009:if(rr.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+rr+rr;case 978:return"-webkit-"+rr+"-moz-"+rr+rr;case 1019:case 983:return"-webkit-"+rr+"-moz-"+rr+"-ms-"+rr+rr;case 883:if(rr.charCodeAt(8)===45)return"-webkit-"+rr+rr;if(0<rr.indexOf("image-set(",11))return rr.replace(Qt,"$1-webkit-$2")+rr;break;case 932:if(rr.charCodeAt(4)===45)switch(rr.charCodeAt(5)){case 103:return"-webkit-box-"+rr.replace("-grow","")+"-webkit-"+rr+"-ms-"+rr.replace("grow","positive")+rr;case 115:return"-webkit-"+rr+"-ms-"+rr.replace("shrink","negative")+rr;case 98:return"-webkit-"+rr+"-ms-"+rr.replace("basis","preferred-size")+rr}return"-webkit-"+rr+"-ms-"+rr+rr;case 964:return"-webkit-"+rr+"-ms-flex-"+rr+rr;case 1023:if(rr.charCodeAt(8)!==99)break;return ir=rr.substring(rr.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+ir+"-webkit-"+rr+"-ms-flex-pack"+ir+rr;case 1005:return At.test(rr)?rr.replace(Ot,":-webkit-")+rr.replace(Ot,":-moz-")+rr:rr;case 1e3:switch(ir=rr.substring(13).trim(),er=ir.indexOf("-")+1,ir.charCodeAt(0)+ir.charCodeAt(er)){case 226:ir=rr.replace(kt,"tb");break;case 232:ir=rr.replace(kt,"tb-rl");break;case 220:ir=rr.replace(kt,"lr");break;default:return rr}return"-webkit-"+rr+"-ms-"+ir+rr;case 1017:if(rr.indexOf("sticky",9)===-1)break;case 975:switch(er=(rr=Xt).length-10,ir=(rr.charCodeAt(er)===33?rr.substring(0,er):rr).substring(Xt.indexOf(":",7)+1).trim(),cr=ir.charCodeAt(0)+(ir.charCodeAt(7)|0)){case 203:if(111>ir.charCodeAt(8))break;case 115:rr=rr.replace(ir,"-webkit-"+ir)+";"+rr;break;case 207:case 102:rr=rr.replace(ir,"-webkit-"+(102<cr?"inline-":"")+"box")+";"+rr.replace(ir,"-webkit-"+ir)+";"+rr.replace(ir,"-ms-"+ir+"box")+";"+rr}return rr+";";case 938:if(rr.charCodeAt(5)===45)switch(rr.charCodeAt(6)){case 105:return ir=rr.replace("-items",""),"-webkit-"+rr+"-webkit-box-"+ir+"-ms-flex-"+ir+rr;case 115:return"-webkit-"+rr+"-ms-flex-item-"+rr.replace(Yt,"")+rr;default:return"-webkit-"+rr+"-ms-flex-line-pack"+rr.replace("align-content","").replace(Yt,"")+rr}break;case 973:case 989:if(rr.charCodeAt(3)!==45||rr.charCodeAt(4)===122)break;case 931:case 953:if(Jt.test(Xt)===!0)return(ir=Xt.substring(Xt.indexOf(":")+1)).charCodeAt(0)===115?lt(Xt.replace("stretch","fill-available"),er,nr,or).replace(":fill-available",":stretch"):rr.replace(ir,"-webkit-"+ir)+rr.replace(ir,"-moz-"+ir.replace("fill-",""))+rr;break;case 962:if(rr="-webkit-"+rr+(rr.charCodeAt(5)===102?"-ms-"+rr:"")+rr,nr+or===211&&rr.charCodeAt(13)===105&&0<rr.indexOf("transform",10))return rr.substring(0,rr.indexOf(";",27)+1).replace(Rt,"$1-webkit-$2")+rr}return rr}function ut(Xt,er){var nr=Xt.indexOf(er===1?":":"{"),or=Xt.substring(0,er!==3?nr:10);return nr=Xt.substring(nr+1,Xt.length-1),Ht(er!==2?or:or.replace(Kt,"$1"),nr,er)}function dt(Xt,er){var nr=lt(er,er.charCodeAt(0),er.charCodeAt(1),er.charCodeAt(2));return nr!==er+";"?nr.replace(Nt," or ($1)").substring(4):"("+er+")"}function pt(Xt,er,nr,or,rr,cr,ir,dr,gr,br){for(var ar=0,ur=er,xr;ar<Vt;++ar)switch(xr=Ut[ar].call(xt,Xt,ur,nr,or,rr,cr,ir,dr,gr,br)){case void 0:case!1:case!0:case null:break;default:ur=xr}if(ur!==er)return ur}function ht(Xt){switch(Xt){case void 0:case null:Vt=Ut.length=0;break;default:if(typeof Xt=="function")Ut[Vt++]=Xt;else if(typeof Xt=="object")for(var er=0,nr=Xt.length;er<nr;++er)ht(Xt[er]);else Gt=!!Xt|0}return ht}function mt(Xt){return Xt=Xt.prefix,Xt!==void 0&&(Ht=null,Xt?typeof Xt!="function"?jt=1:(jt=2,Ht=Xt):jt=0),mt}function xt(Xt,er){var nr=Xt;if(33>nr.charCodeAt(0)&&(nr=nr.trim()),Zt=nr,nr=[Zt],0<Vt){var or=pt(-1,er,nr,nr,Ft,Bt,0,0,0,0);or!==void 0&&typeof or=="string"&&(er=or)}var rr=tt(Wt,nr,er,0,0);return 0<Vt&&(or=pt(-2,rr,nr,nr,Ft,Bt,rr.length,0,0,0),or!==void 0&&(rr=or)),Zt="",$t=0,Bt=Ft=1,rr}var Mt=/^\0+/g,vt=/[\0\r\f]/g,Ot=/: */g,At=/zoo|gra/,Rt=/([,: ])(transform)/g,zt=/,\r+?/g,Tt=/([\t\r\n ])*\f?&/g,Ct=/@(k\w+)\s*(\S*)\s*/,It=/::(place)/g,Dt=/:(read-only)/g,kt=/[svh]\w+-[tblr]{2}/,qt=/\(\s*(.*)\s*\)/g,Nt=/([\s\S]*?);/g,Yt=/-self|flex-/g,Kt=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Jt=/stretch|:\s*\w+\-(?:conte|avail)/,Qt=/([^-])(image-set\()/,Bt=1,Ft=1,$t=0,jt=1,Wt=[],Ut=[],Vt=0,Ht=null,Gt=0,Zt="";return xt.use=ht,xt.set=mt,et!==void 0&&mt(et),xt}var delimiter="/*|*/",needle=delimiter+"}";function toSheet(et){et&&Sheet.current.insert(et+"}")}var Sheet={current:null},ruleSheet=function(tt,rt,nt,lt,ut,dt,pt,ht,mt,xt){switch(tt){case 1:{switch(rt.charCodeAt(0)){case 64:return Sheet.current.insert(rt+";"),"";case 108:if(rt.charCodeAt(2)===98)return""}break}case 2:{if(ht===0)return rt+delimiter;break}case 3:switch(ht){case 102:case 112:return Sheet.current.insert(nt[0]+rt),"";default:return rt+(xt===0?delimiter:"")}case-2:rt.split(needle).forEach(toSheet)}},createCache=function(tt){tt===void 0&&(tt={});var rt=tt.key||"css",nt;tt.prefix!==void 0&&(nt={prefix:tt.prefix});var lt=new stylis_min(nt),ut={},dt;{dt=tt.container||document.head;var pt=document.querySelectorAll("style[data-emotion-"+rt+"]");Array.prototype.forEach.call(pt,function(xt){var Mt=xt.getAttribute("data-emotion-"+rt);Mt.split(" ").forEach(function(vt){ut[vt]=!0}),xt.parentNode!==dt&&dt.appendChild(xt)})}var ht;lt.use(tt.stylisPlugins)(ruleSheet),ht=function(Mt,vt,Ot,At){var Rt=vt.name;Sheet.current=Ot,lt(Mt,vt.styles),At&&(mt.inserted[Rt]=!0)};var mt={key:rt,sheet:new StyleSheet({key:rt,container:dt,nonce:tt.nonce,speedy:tt.speedy}),nonce:tt.nonce,inserted:ut,registered:{},insert:ht};return mt},isBrowser=!0;function getRegisteredStyles(et,tt,rt){var nt="";return rt.split(" ").forEach(function(lt){et[lt]!==void 0?tt.push(et[lt]):nt+=lt+" "}),nt}var insertStyles=function(tt,rt,nt){var lt=tt.key+"-"+rt.name;if((nt===!1||isBrowser===!1)&&tt.registered[lt]===void 0&&(tt.registered[lt]=rt.styles),tt.inserted[rt.name]===void 0){var ut=rt;do tt.insert("."+lt,ut,tt.sheet,!0),ut=ut.next;while(ut!==void 0)}};function murmur2(et){for(var tt=0,rt,nt=0,lt=et.length;lt>=4;++nt,lt-=4)rt=et.charCodeAt(nt)&255|(et.charCodeAt(++nt)&255)<<8|(et.charCodeAt(++nt)&255)<<16|(et.charCodeAt(++nt)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,tt=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(tt&65535)*1540483477+((tt>>>16)*59797<<16);switch(lt){case 3:tt^=(et.charCodeAt(nt+2)&255)<<16;case 2:tt^=(et.charCodeAt(nt+1)&255)<<8;case 1:tt^=et.charCodeAt(nt)&255,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16)}return tt^=tt>>>13,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16),((tt^tt>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount: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,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};function memoize$2(et){var tt={};return function(rt){return tt[rt]===void 0&&(tt[rt]=et(rt)),tt[rt]}}var hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(tt){return tt.charCodeAt(1)===45},isProcessableValue=function(tt){return tt!=null&&typeof tt!="boolean"},processStyleName=memoize$2(function(et){return isCustomProperty(et)?et:et.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(tt,rt){switch(tt){case"animation":case"animationName":if(typeof rt=="string")return rt.replace(animationRegex,function(nt,lt,ut){return cursor={name:lt,styles:ut,next:cursor},lt})}return unitlessKeys[tt]!==1&&!isCustomProperty(tt)&&typeof rt=="number"&&rt!==0?rt+"px":rt};function handleInterpolation(et,tt,rt,nt){if(rt==null)return"";if(rt.__emotion_styles!==void 0)return rt;switch(typeof rt){case"boolean":return"";case"object":{if(rt.anim===1)return cursor={name:rt.name,styles:rt.styles,next:cursor},rt.name;if(rt.styles!==void 0){var lt=rt.next;if(lt!==void 0)for(;lt!==void 0;)cursor={name:lt.name,styles:lt.styles,next:cursor},lt=lt.next;var ut=rt.styles+";";return ut}return createStringFromObject(et,tt,rt)}}if(tt==null)return rt;var dt=tt[rt];return dt!==void 0&&!nt?dt:rt}function createStringFromObject(et,tt,rt){var nt="";if(Array.isArray(rt))for(var lt=0;lt<rt.length;lt++)nt+=handleInterpolation(et,tt,rt[lt],!1);else for(var ut in rt){var dt=rt[ut];if(typeof dt!="object")tt!=null&&tt[dt]!==void 0?nt+=ut+"{"+tt[dt]+"}":isProcessableValue(dt)&&(nt+=processStyleName(ut)+":"+processStyleValue(ut,dt)+";");else if(Array.isArray(dt)&&typeof dt[0]=="string"&&(tt==null||tt[dt[0]]===void 0))for(var pt=0;pt<dt.length;pt++)isProcessableValue(dt[pt])&&(nt+=processStyleName(ut)+":"+processStyleValue(ut,dt[pt])+";");else{var ht=handleInterpolation(et,tt,dt,!1);switch(ut){case"animation":case"animationName":{nt+=processStyleName(ut)+":"+ht+";";break}default:nt+=ut+"{"+ht+"}"}}}return nt}var labelPattern=/label:\s*([^\s;\n{]+)\s*;/g,cursor,serializeStyles=function(tt,rt,nt){if(tt.length===1&&typeof tt[0]=="object"&&tt[0]!==null&&tt[0].styles!==void 0)return tt[0];var lt=!0,ut="";cursor=void 0;var dt=tt[0];dt==null||dt.raw===void 0?(lt=!1,ut+=handleInterpolation(nt,rt,dt,!1)):ut+=dt[0];for(var pt=1;pt<tt.length;pt++)ut+=handleInterpolation(nt,rt,tt[pt],ut.charCodeAt(ut.length-1)===46),lt&&(ut+=dt[pt]);labelPattern.lastIndex=0;for(var ht="",mt;(mt=labelPattern.exec(ut))!==null;)ht+="-"+mt[1];var xt=murmur2(ut)+ht;return{name:xt,styles:ut,next:cursor}},hasOwnProperty$c=Object.prototype.hasOwnProperty,EmotionCacheContext=reactExports.createContext(typeof HTMLElement<"u"?createCache():null),ThemeContext=reactExports.createContext({});EmotionCacheContext.Provider;var withEmotionCache=function(tt){var rt=function(lt,ut){return reactExports.createElement(EmotionCacheContext.Consumer,null,function(dt){return tt(lt,dt,ut)})};return reactExports.forwardRef(rt)},typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(tt,rt){var nt={};for(var lt in rt)hasOwnProperty$c.call(rt,lt)&&(nt[lt]=rt[lt]);return nt[typePropName]=tt,nt},Noop$1=function(){return null},render=function(tt,rt,nt,lt){var ut=nt===null?rt.css:rt.css(nt);typeof ut=="string"&&tt.registered[ut]!==void 0&&(ut=tt.registered[ut]);var dt=rt[typePropName],pt=[ut],ht="";typeof rt.className=="string"?ht=getRegisteredStyles(tt.registered,pt,rt.className):rt.className!=null&&(ht=rt.className+" ");var mt=serializeStyles(pt);insertStyles(tt,mt,typeof dt=="string"),ht+=tt.key+"-"+mt.name;var xt={};for(var Mt in rt)hasOwnProperty$c.call(rt,Mt)&&Mt!=="css"&&Mt!==typePropName&&(xt[Mt]=rt[Mt]);xt.ref=lt,xt.className=ht;var vt=reactExports.createElement(dt,xt),Ot=reactExports.createElement(Noop$1,null);return reactExports.createElement(reactExports.Fragment,null,Ot,vt)},Emotion=withEmotionCache(function(et,tt,rt){return typeof et.css=="function"?reactExports.createElement(ThemeContext.Consumer,null,function(nt){return render(tt,et,nt,rt)}):render(tt,et,null,rt)});function css$2(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return serializeStyles(tt)}var jsx=function(tt,rt){var nt=arguments;if(rt==null||!hasOwnProperty$c.call(rt,"css"))return reactExports.createElement.apply(void 0,nt);var lt=nt.length,ut=new Array(lt);ut[0]=Emotion,ut[1]=createEmotionProps(tt,rt);for(var dt=2;dt<lt;dt++)ut[dt]=nt[dt];return reactExports.createElement.apply(null,ut)},keyframes=function(){var tt=css$2.apply(void 0,arguments),rt="animation-"+tt.name;return{name:rt,styles:"@keyframes "+rt+"{"+tt.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},classnames=function et(tt){for(var rt=tt.length,nt=0,lt="";nt<rt;nt++){var ut=tt[nt];if(ut!=null){var dt=void 0;switch(typeof ut){case"boolean":break;case"object":{if(Array.isArray(ut))dt=et(ut);else{dt="";for(var pt in ut)ut[pt]&&pt&&(dt&&(dt+=" "),dt+=pt)}break}default:dt=ut}dt&&(lt&&(lt+=" "),lt+=dt)}}return lt};function merge$2(et,tt,rt){var nt=[],lt=getRegisteredStyles(et,nt,rt);return nt.length<2?rt:lt+tt(nt)}var Noop=function(){return null},ClassNames=withEmotionCache(function(et,tt){return reactExports.createElement(ThemeContext.Consumer,null,function(rt){var nt=!1,lt=function(){for(var xt=arguments.length,Mt=new Array(xt),vt=0;vt<xt;vt++)Mt[vt]=arguments[vt];var Ot=serializeStyles(Mt,tt.registered);return insertStyles(tt,Ot,!1),tt.key+"-"+Ot.name},ut=function(){for(var xt=arguments.length,Mt=new Array(xt),vt=0;vt<xt;vt++)Mt[vt]=arguments[vt];return merge$2(tt.registered,lt,classnames(Mt))},dt={css:lt,cx:ut,theme:rt},pt=et.children(dt);nt=!0;var ht=reactExports.createElement(Noop,null);return reactExports.createElement(reactExports.Fragment,null,ht,pt)})});function _taggedTemplateLiteral(et,tt){return tt||(tt=et.slice(0)),Object.freeze(Object.defineProperties(et,{raw:{value:Object.freeze(tt)}}))}var AutosizeInput$1={};Object.defineProperty(AutosizeInput$1,"__esModule",{value:!0});var _extends$5=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_createClass=function(){function et(tt,rt){for(var nt=0;nt<rt.length;nt++){var lt=rt[nt];lt.enumerable=lt.enumerable||!1,lt.configurable=!0,"value"in lt&&(lt.writable=!0),Object.defineProperty(tt,lt.key,lt)}}return function(tt,rt,nt){return rt&&et(tt.prototype,rt),nt&&et(tt,nt),tt}}(),_react=reactExports,_react2=_interopRequireDefault$k(_react),_propTypes=propTypesExports,_propTypes2=_interopRequireDefault$k(_propTypes);function _interopRequireDefault$k(et){return et&&et.__esModule?et:{default:et}}function _objectWithoutProperties$1(et,tt){var rt={};for(var nt in et)tt.indexOf(nt)>=0||Object.prototype.hasOwnProperty.call(et,nt)&&(rt[nt]=et[nt]);return rt}function _classCallCheck(et,tt){if(!(et instanceof tt))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(et,tt){if(!et)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt&&(typeof tt=="object"||typeof tt=="function")?tt:et}function _inherits(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof tt);et.prototype=Object.create(tt&&tt.prototype,{constructor:{value:et,enumerable:!1,writable:!0,configurable:!0}}),tt&&(Object.setPrototypeOf?Object.setPrototypeOf(et,tt):et.__proto__=tt)}var sizerStyle={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},INPUT_PROPS_BLACKLIST=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],cleanInputProps=function(tt){return INPUT_PROPS_BLACKLIST.forEach(function(rt){return delete tt[rt]}),tt},copyStyles=function(tt,rt){rt.style.fontSize=tt.fontSize,rt.style.fontFamily=tt.fontFamily,rt.style.fontWeight=tt.fontWeight,rt.style.fontStyle=tt.fontStyle,rt.style.letterSpacing=tt.letterSpacing,rt.style.textTransform=tt.textTransform},isIE$1=typeof window<"u"&&window.navigator?/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent):!1,generateId=function(){return isIE$1?"_"+Math.random().toString(36).substr(2,12):void 0},AutosizeInput=function(et){_inherits(tt,et),_createClass(tt,null,[{key:"getDerivedStateFromProps",value:function(nt,lt){var ut=nt.id;return ut!==lt.prevId?{inputId:ut||generateId(),prevId:ut}:null}}]);function tt(rt){_classCallCheck(this,tt);var nt=_possibleConstructorReturn(this,(tt.__proto__||Object.getPrototypeOf(tt)).call(this,rt));return nt.inputRef=function(lt){nt.input=lt,typeof nt.props.inputRef=="function"&&nt.props.inputRef(lt)},nt.placeHolderSizerRef=function(lt){nt.placeHolderSizer=lt},nt.sizerRef=function(lt){nt.sizer=lt},nt.state={inputWidth:rt.minWidth,inputId:rt.id||generateId(),prevId:rt.id},nt}return _createClass(tt,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(nt,lt){lt.inputWidth!==this.state.inputWidth&&typeof this.props.onAutosize=="function"&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(!(!this.mounted||!window.getComputedStyle)){var nt=this.input&&window.getComputedStyle(this.input);nt&&(copyStyles(nt,this.sizer),this.placeHolderSizer&&copyStyles(nt,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth>"u")){var nt=void 0;this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?nt=Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:nt=this.sizer.scrollWidth+2;var lt=this.props.type==="number"&&this.props.extraWidth===void 0?16:parseInt(this.props.extraWidth)||0;nt+=lt,nt<this.props.minWidth&&(nt=this.props.minWidth),nt!==this.state.inputWidth&&this.setState({inputWidth:nt})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var nt=this.props.injectStyles;return isIE$1&&nt?_react2.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var nt=[this.props.defaultValue,this.props.value,""].reduce(function(pt,ht){return pt??ht}),lt=_extends$5({},this.props.style);lt.display||(lt.display="inline-block");var ut=_extends$5({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),dt=_objectWithoutProperties$1(this.props,[]);return cleanInputProps(dt),dt.className=this.props.inputClassName,dt.id=this.state.inputId,dt.style=ut,_react2.default.createElement("div",{className:this.props.className,style:lt},this.renderStyles(),_react2.default.createElement("input",_extends$5({},dt,{ref:this.inputRef})),_react2.default.createElement("div",{ref:this.sizerRef,style:sizerStyle},nt),this.props.placeholder?_react2.default.createElement("div",{ref:this.placeHolderSizerRef,style:sizerStyle},this.props.placeholder):null)}}]),tt}(_react.Component);AutosizeInput.propTypes={className:_propTypes2.default.string,defaultValue:_propTypes2.default.any,extraWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),id:_propTypes2.default.string,injectStyles:_propTypes2.default.bool,inputClassName:_propTypes2.default.string,inputRef:_propTypes2.default.func,inputStyle:_propTypes2.default.object,minWidth:_propTypes2.default.oneOfType([_propTypes2.default.number,_propTypes2.default.string]),onAutosize:_propTypes2.default.func,onChange:_propTypes2.default.func,placeholder:_propTypes2.default.string,placeholderIsMinWidth:_propTypes2.default.bool,style:_propTypes2.default.object,value:_propTypes2.default.any};AutosizeInput.defaultProps={minWidth:1,injectStyles:!0};var _default$1=AutosizeInput$1.default=AutosizeInput,noop$6=function(){};function applyPrefixToName(et,tt){return tt?tt[0]==="-"?et+tt:et+"__"+tt:et}function classNames(et,tt,rt){var nt=[rt];if(tt&&et)for(var lt in tt)tt.hasOwnProperty(lt)&&tt[lt]&&nt.push("".concat(applyPrefixToName(et,lt)));return nt.filter(function(ut){return ut}).map(function(ut){return String(ut).trim()}).join(" ")}var cleanValue=function(tt){return Array.isArray(tt)?tt.filter(Boolean):_typeof$5(tt)==="object"&&tt!==null?[tt]:[]};function isDocumentElement(et){return[document.documentElement,document.body,window].indexOf(et)>-1}function getScrollTop(et){return isDocumentElement(et)?window.pageYOffset:et.scrollTop}function scrollTo(et,tt){if(isDocumentElement(et)){window.scrollTo(0,tt);return}et.scrollTop=tt}function getScrollParent(et){var tt=getComputedStyle(et),rt=tt.position==="absolute",nt=/(auto|scroll)/,lt=document.documentElement;if(tt.position==="fixed")return lt;for(var ut=et;ut=ut.parentElement;)if(tt=getComputedStyle(ut),!(rt&&tt.position==="static")&&nt.test(tt.overflow+tt.overflowY+tt.overflowX))return ut;return lt}function easeOutCubic(et,tt,rt,nt){return rt*((et=et/nt-1)*et*et+1)+tt}function animatedScrollTo(et,tt){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:noop$6,lt=getScrollTop(et),ut=tt-lt,dt=10,pt=0;function ht(){pt+=dt;var mt=easeOutCubic(pt,lt,ut,rt);scrollTo(et,mt),pt<rt?window.requestAnimationFrame(ht):nt(et)}ht()}function scrollIntoView(et,tt){var rt=et.getBoundingClientRect(),nt=tt.getBoundingClientRect(),lt=tt.offsetHeight/3;nt.bottom+lt>rt.bottom?scrollTo(et,Math.min(tt.offsetTop+tt.clientHeight-et.offsetHeight+lt,et.scrollHeight)):nt.top-lt<rt.top&&scrollTo(et,Math.max(tt.offsetTop-lt,0))}function getBoundingClientObj(et){var tt=et.getBoundingClientRect();return{bottom:tt.bottom,height:tt.height,left:tt.left,right:tt.right,top:tt.top,width:tt.width}}function isTouchCapable(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function isMobileDevice(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}function ownKeys$4(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$3(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$4(Object(rt),!0).forEach(function(nt){_defineProperty$3(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$4(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _createSuper$5(et){var tt=_isNativeReflectConstruct$5();return function(){var nt=_getPrototypeOf(et),lt;if(tt){var ut=_getPrototypeOf(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$1(this,lt)}}function _isNativeReflectConstruct$5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function getMenuPlacement(et){var tt=et.maxHeight,rt=et.menuEl,nt=et.minHeight,lt=et.placement,ut=et.shouldScroll,dt=et.isFixedPosition,pt=et.theme,ht=pt.spacing,mt=getScrollParent(rt),xt={placement:"bottom",maxHeight:tt};if(!rt||!rt.offsetParent)return xt;var Mt=mt.getBoundingClientRect(),vt=Mt.height,Ot=rt.getBoundingClientRect(),At=Ot.bottom,Rt=Ot.height,zt=Ot.top,Tt=rt.offsetParent.getBoundingClientRect(),Ct=Tt.top,It=window.innerHeight,Dt=getScrollTop(mt),kt=parseInt(getComputedStyle(rt).marginBottom,10),qt=parseInt(getComputedStyle(rt).marginTop,10),Nt=Ct-qt,Yt=It-zt,Kt=Nt+Dt,Jt=vt-Dt-zt,Qt=At-It+Dt+kt,Bt=Dt+zt-qt,Ft=160;switch(lt){case"auto":case"bottom":if(Yt>=Rt)return{placement:"bottom",maxHeight:tt};if(Jt>=Rt&&!dt)return ut&&animatedScrollTo(mt,Qt,Ft),{placement:"bottom",maxHeight:tt};if(!dt&&Jt>=nt||dt&&Yt>=nt){ut&&animatedScrollTo(mt,Qt,Ft);var $t=dt?Yt-kt:Jt-kt;return{placement:"bottom",maxHeight:$t}}if(lt==="auto"||dt){var jt=tt,Wt=dt?Nt:Kt;return Wt>=nt&&(jt=Math.min(Wt-kt-ht.controlHeight,tt)),{placement:"top",maxHeight:jt}}if(lt==="bottom")return scrollTo(mt,Qt),{placement:"bottom",maxHeight:tt};break;case"top":if(Nt>=Rt)return{placement:"top",maxHeight:tt};if(Kt>=Rt&&!dt)return ut&&animatedScrollTo(mt,Bt,Ft),{placement:"top",maxHeight:tt};if(!dt&&Kt>=nt||dt&&Nt>=nt){var Ut=tt;return(!dt&&Kt>=nt||dt&&Nt>=nt)&&(Ut=dt?Nt-qt:Kt-qt),ut&&animatedScrollTo(mt,Bt,Ft),{placement:"top",maxHeight:Ut}}return{placement:"bottom",maxHeight:tt};default:throw new Error('Invalid placement provided "'.concat(lt,'".'))}return xt}function alignToControl(et){var tt={bottom:"top",top:"bottom"};return et?tt[et]:"bottom"}var coercePlacement=function(tt){return tt==="auto"?"bottom":tt},menuCSS=function(tt){var rt,nt=tt.placement,lt=tt.theme,ut=lt.borderRadius,dt=lt.spacing,pt=lt.colors;return rt={label:"menu"},_defineProperty$3(rt,alignToControl(nt),"100%"),_defineProperty$3(rt,"backgroundColor",pt.neutral0),_defineProperty$3(rt,"borderRadius",ut),_defineProperty$3(rt,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),_defineProperty$3(rt,"marginBottom",dt.menuGutter),_defineProperty$3(rt,"marginTop",dt.menuGutter),_defineProperty$3(rt,"position","absolute"),_defineProperty$3(rt,"width","100%"),_defineProperty$3(rt,"zIndex",1),rt},PortalPlacementContext=reactExports.createContext({getPortalPlacement:null}),MenuPlacer=function(et){_inherits$1(rt,et);var tt=_createSuper$5(rt);function rt(){var nt;_classCallCheck$1(this,rt);for(var lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=tt.call.apply(tt,[this].concat(ut)),nt.state={maxHeight:nt.props.maxMenuHeight,placement:null},nt.getPlacement=function(pt){var ht=nt.props,mt=ht.minMenuHeight,xt=ht.maxMenuHeight,Mt=ht.menuPlacement,vt=ht.menuPosition,Ot=ht.menuShouldScrollIntoView,At=ht.theme;if(pt){var Rt=vt==="fixed",zt=Ot&&!Rt,Tt=getMenuPlacement({maxHeight:xt,menuEl:pt,minHeight:mt,placement:Mt,shouldScroll:zt,isFixedPosition:Rt,theme:At}),Ct=nt.context.getPortalPlacement;Ct&&Ct(Tt),nt.setState(Tt)}},nt.getUpdatedProps=function(){var pt=nt.props.menuPlacement,ht=nt.state.placement||coercePlacement(pt);return _objectSpread$3(_objectSpread$3({},nt.props),{},{placement:ht,maxHeight:nt.state.maxHeight})},nt}return _createClass$1(rt,[{key:"render",value:function(){var lt=this.props.children;return lt({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),rt}(reactExports.Component);MenuPlacer.contextType=PortalPlacementContext;var Menu=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.innerRef,pt=tt.innerProps;return jsx("div",_extends$j({css:ut("menu",tt),className:lt({menu:!0},nt)},pt,{ref:dt}),rt)},menuListCSS=function(tt){var rt=tt.maxHeight,nt=tt.theme.spacing.baseUnit;return{maxHeight:rt,overflowY:"auto",paddingBottom:nt,paddingTop:nt,position:"relative",WebkitOverflowScrolling:"touch"}},MenuList=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.isMulti,pt=tt.innerRef,ht=tt.innerProps;return jsx("div",_extends$j({css:ut("menuList",tt),className:lt({"menu-list":!0,"menu-list--is-multi":dt},nt),ref:pt},ht),rt)},noticeCSS=function(tt){var rt=tt.theme,nt=rt.spacing.baseUnit,lt=rt.colors;return{color:lt.neutral40,padding:"".concat(nt*2,"px ").concat(nt*3,"px"),textAlign:"center"}},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.innerProps;return jsx("div",_extends$j({css:ut("noOptionsMessage",tt),className:lt({"menu-notice":!0,"menu-notice--no-options":!0},nt)},dt),rt)};NoOptionsMessage.defaultProps={children:"No options"};var LoadingMessage=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.innerProps;return jsx("div",_extends$j({css:ut("loadingMessage",tt),className:lt({"menu-notice":!0,"menu-notice--loading":!0},nt)},dt),rt)};LoadingMessage.defaultProps={children:"Loading..."};var menuPortalCSS=function(tt){var rt=tt.rect,nt=tt.offset,lt=tt.position;return{left:rt.left,position:lt,top:nt,width:rt.width,zIndex:1}},MenuPortal=function(et){_inherits$1(rt,et);var tt=_createSuper$5(rt);function rt(){var nt;_classCallCheck$1(this,rt);for(var lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=tt.call.apply(tt,[this].concat(ut)),nt.state={placement:null},nt.getPortalPlacement=function(pt){var ht=pt.placement,mt=coercePlacement(nt.props.menuPlacement);ht!==mt&&nt.setState({placement:ht})},nt}return _createClass$1(rt,[{key:"render",value:function(){var lt=this.props,ut=lt.appendTo,dt=lt.children,pt=lt.controlElement,ht=lt.menuPlacement,mt=lt.menuPosition,xt=lt.getStyles,Mt=mt==="fixed";if(!ut&&!Mt||!pt)return null;var vt=this.state.placement||coercePlacement(ht),Ot=getBoundingClientObj(pt),At=Mt?0:window.pageYOffset,Rt=Ot[vt]+At,zt={offset:Rt,position:mt,rect:Ot},Tt=jsx("div",{css:xt("menuPortal",zt)},dt);return jsx(PortalPlacementContext.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},ut?reactDomExports.createPortal(Tt,ut):Tt)}}]),rt}(reactExports.Component),isArray$d=Array.isArray,keyList=Object.keys,hasProp=Object.prototype.hasOwnProperty;function equal(et,tt){if(et===tt)return!0;if(et&&tt&&_typeof$5(et)=="object"&&_typeof$5(tt)=="object"){var rt=isArray$d(et),nt=isArray$d(tt),lt,ut,dt;if(rt&&nt){if(ut=et.length,ut!=tt.length)return!1;for(lt=ut;lt--!==0;)if(!equal(et[lt],tt[lt]))return!1;return!0}if(rt!=nt)return!1;var pt=et instanceof Date,ht=tt instanceof Date;if(pt!=ht)return!1;if(pt&&ht)return et.getTime()==tt.getTime();var mt=et instanceof RegExp,xt=tt instanceof RegExp;if(mt!=xt)return!1;if(mt&&xt)return et.toString()==tt.toString();var Mt=keyList(et);if(ut=Mt.length,ut!==keyList(tt).length)return!1;for(lt=ut;lt--!==0;)if(!hasProp.call(tt,Mt[lt]))return!1;for(lt=ut;lt--!==0;)if(dt=Mt[lt],!(dt==="_owner"&&et.$$typeof)&&!equal(et[dt],tt[dt]))return!1;return!0}return et!==et&&tt!==tt}function exportedEqual(et,tt){try{return equal(et,tt)}catch(rt){if(rt.message&&rt.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",rt.name,rt.message),!1;throw rt}}var containerCSS=function(tt){var rt=tt.isDisabled,nt=tt.isRtl;return{label:"container",direction:nt?"rtl":null,pointerEvents:rt?"none":null,position:"relative"}},SelectContainer=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.innerProps,pt=tt.isDisabled,ht=tt.isRtl;return jsx("div",_extends$j({css:ut("container",tt),className:lt({"--is-disabled":pt,"--is-rtl":ht},nt)},dt),rt)},valueContainerCSS=function(tt){var rt=tt.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(rt.baseUnit/2,"px ").concat(rt.baseUnit*2,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ValueContainer=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.isMulti,dt=tt.getStyles,pt=tt.hasValue;return jsx("div",{css:dt("valueContainer",tt),className:lt({"value-container":!0,"value-container--is-multi":ut,"value-container--has-value":pt},nt)},rt)},indicatorsContainerCSS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles;return jsx("div",{css:ut("indicatorsContainer",tt),className:lt({indicators:!0},nt)},rt)};function _templateObject(){var et=_taggedTemplateLiteral([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]);return _templateObject=function(){return et},et}var _ref2={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Svg=function(tt){var rt=tt.size,nt=_objectWithoutProperties$2(tt,["size"]);return jsx("svg",_extends$j({height:rt,width:rt,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2},nt))},CrossIcon=function(tt){return jsx(Svg,_extends$j({size:20},tt),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function(tt){return jsx(Svg,_extends$j({size:20},tt),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function(tt){var rt=tt.isFocused,nt=tt.theme,lt=nt.spacing.baseUnit,ut=nt.colors;return{label:"indicatorContainer",color:rt?ut.neutral60:ut.neutral20,display:"flex",padding:lt*2,transition:"color 150ms",":hover":{color:rt?ut.neutral80:ut.neutral40}}},dropdownIndicatorCSS=baseCSS,DropdownIndicator=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.innerProps;return jsx("div",_extends$j({},dt,{css:ut("dropdownIndicator",tt),className:lt({indicator:!0,"dropdown-indicator":!0},nt)}),rt||jsx(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator$1=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.innerProps;return jsx("div",_extends$j({},dt,{css:ut("clearIndicator",tt),className:lt({indicator:!0,"clear-indicator":!0},nt)}),rt||jsx(CrossIcon,null))},indicatorSeparatorCSS=function(tt){var rt=tt.isDisabled,nt=tt.theme,lt=nt.spacing.baseUnit,ut=nt.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:rt?ut.neutral10:ut.neutral20,marginBottom:lt*2,marginTop:lt*2,width:1}},IndicatorSeparator=function(tt){var rt=tt.className,nt=tt.cx,lt=tt.getStyles,ut=tt.innerProps;return jsx("span",_extends$j({},ut,{css:lt("indicatorSeparator",tt),className:nt({"indicator-separator":!0},rt)}))},loadingDotAnimations=keyframes(_templateObject()),loadingIndicatorCSS=function(tt){var rt=tt.isFocused,nt=tt.size,lt=tt.theme,ut=lt.colors,dt=lt.spacing.baseUnit;return{label:"loadingIndicator",color:rt?ut.neutral60:ut.neutral20,display:"flex",padding:dt*2,transition:"color 150ms",alignSelf:"center",fontSize:nt,lineHeight:1,marginRight:nt,textAlign:"center",verticalAlign:"middle"}},LoadingDot=function(tt){var rt=tt.delay,nt=tt.offset;return jsx("span",{css:css$2({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(rt,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:nt?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},LoadingIndicator=function(tt){var rt=tt.className,nt=tt.cx,lt=tt.getStyles,ut=tt.innerProps,dt=tt.isRtl;return jsx("div",_extends$j({},ut,{css:lt("loadingIndicator",tt),className:nt({indicator:!0,"loading-indicator":!0},rt)}),jsx(LoadingDot,{delay:0,offset:dt}),jsx(LoadingDot,{delay:160,offset:!0}),jsx(LoadingDot,{delay:320,offset:!dt}))};LoadingIndicator.defaultProps={size:4};var css=function(tt){var rt=tt.isDisabled,nt=tt.isFocused,lt=tt.theme,ut=lt.colors,dt=lt.borderRadius,pt=lt.spacing;return{label:"control",alignItems:"center",backgroundColor:rt?ut.neutral5:ut.neutral0,borderColor:rt?ut.neutral10:nt?ut.primary:ut.neutral20,borderRadius:dt,borderStyle:"solid",borderWidth:1,boxShadow:nt?"0 0 0 1px ".concat(ut.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:pt.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:nt?ut.primary:ut.neutral30}}},Control=function(tt){var rt=tt.children,nt=tt.cx,lt=tt.getStyles,ut=tt.className,dt=tt.isDisabled,pt=tt.isFocused,ht=tt.innerRef,mt=tt.innerProps,xt=tt.menuIsOpen;return jsx("div",_extends$j({ref:ht,css:lt("control",tt),className:nt({control:!0,"control--is-disabled":dt,"control--is-focused":pt,"control--menu-is-open":xt},ut)},mt),rt)};function ownKeys$1$1(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$1$1(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$1$1(Object(rt),!0).forEach(function(nt){_defineProperty$3(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$1$1(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}var groupCSS=function(tt){var rt=tt.theme.spacing;return{paddingBottom:rt.baseUnit*2,paddingTop:rt.baseUnit*2}},Group=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.Heading,pt=tt.headingProps,ht=tt.label,mt=tt.theme,xt=tt.selectProps;return jsx("div",{css:ut("group",tt),className:lt({group:!0},nt)},jsx(dt,_extends$j({},pt,{selectProps:xt,theme:mt,getStyles:ut,cx:lt}),ht),jsx("div",null,rt))},groupHeadingCSS=function(tt){var rt=tt.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:rt.baseUnit*3,paddingRight:rt.baseUnit*3,textTransform:"uppercase"}},GroupHeading=function(tt){var rt=tt.className,nt=tt.cx,lt=tt.getStyles,ut=tt.theme;tt.selectProps;var dt=_objectWithoutProperties$2(tt,["className","cx","getStyles","theme","selectProps"]);return jsx("div",_extends$j({css:lt("groupHeading",_objectSpread$1$1({theme:ut},dt)),className:nt({"group-heading":!0},rt)},dt))};function ownKeys$2$2(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$2$2(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$2$2(Object(rt),!0).forEach(function(nt){_defineProperty$3(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$2$2(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}var inputCSS=function(tt){var rt=tt.isDisabled,nt=tt.theme,lt=nt.spacing,ut=nt.colors;return{margin:lt.baseUnit/2,paddingBottom:lt.baseUnit/2,paddingTop:lt.baseUnit/2,visibility:rt?"hidden":"visible",color:ut.neutral80}},inputStyle=function(tt){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:tt?0:1,outline:0,padding:0,color:"inherit"}},Input$1=function(tt){var rt=tt.className,nt=tt.cx,lt=tt.getStyles,ut=tt.innerRef,dt=tt.isHidden,pt=tt.isDisabled,ht=tt.theme;tt.selectProps;var mt=_objectWithoutProperties$2(tt,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]);return jsx("div",{css:lt("input",_objectSpread$2$2({theme:ht},mt))},jsx(_default$1,_extends$j({className:nt({input:!0},rt),inputRef:ut,inputStyle:inputStyle(dt),disabled:pt},mt)))};function ownKeys$3$1(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$3$1(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$3$1(Object(rt),!0).forEach(function(nt){_defineProperty$3(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$3$1(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}var multiValueCSS=function(tt){var rt=tt.theme,nt=rt.spacing,lt=rt.borderRadius,ut=rt.colors;return{label:"multiValue",backgroundColor:ut.neutral10,borderRadius:lt/2,display:"flex",margin:nt.baseUnit/2,minWidth:0}},multiValueLabelCSS=function(tt){var rt=tt.theme,nt=rt.borderRadius,lt=rt.colors,ut=tt.cropWithEllipsis;return{borderRadius:nt/2,color:lt.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:ut?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemoveCSS=function(tt){var rt=tt.theme,nt=rt.spacing,lt=rt.borderRadius,ut=rt.colors,dt=tt.isFocused;return{alignItems:"center",borderRadius:lt/2,backgroundColor:dt&&ut.dangerLight,display:"flex",paddingLeft:nt.baseUnit,paddingRight:nt.baseUnit,":hover":{backgroundColor:ut.dangerLight,color:ut.danger}}},MultiValueGeneric=function(tt){var rt=tt.children,nt=tt.innerProps;return jsx("div",nt,rt)},MultiValueContainer=MultiValueGeneric,MultiValueLabel=MultiValueGeneric;function MultiValueRemove(et){var tt=et.children,rt=et.innerProps;return jsx("div",rt,tt||jsx(CrossIcon,{size:14}))}var MultiValue=function(tt){var rt=tt.children,nt=tt.className,lt=tt.components,ut=tt.cx,dt=tt.data,pt=tt.getStyles,ht=tt.innerProps,mt=tt.isDisabled,xt=tt.removeProps,Mt=tt.selectProps,vt=lt.Container,Ot=lt.Label,At=lt.Remove;return jsx(ClassNames,null,function(Rt){var zt=Rt.css,Tt=Rt.cx;return jsx(vt,{data:dt,innerProps:_objectSpread$3$1(_objectSpread$3$1({},ht),{},{className:Tt(zt(pt("multiValue",tt)),ut({"multi-value":!0,"multi-value--is-disabled":mt},nt))}),selectProps:Mt},jsx(Ot,{data:dt,innerProps:{className:Tt(zt(pt("multiValueLabel",tt)),ut({"multi-value__label":!0},nt))},selectProps:Mt},rt),jsx(At,{data:dt,innerProps:_objectSpread$3$1({className:Tt(zt(pt("multiValueRemove",tt)),ut({"multi-value__remove":!0},nt))},xt),selectProps:Mt}))})};MultiValue.defaultProps={cropWithEllipsis:!0};var optionCSS=function(tt){var rt=tt.isDisabled,nt=tt.isFocused,lt=tt.isSelected,ut=tt.theme,dt=ut.spacing,pt=ut.colors;return{label:"option",backgroundColor:lt?pt.primary:nt?pt.primary25:"transparent",color:rt?pt.neutral20:lt?pt.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(dt.baseUnit*2,"px ").concat(dt.baseUnit*3,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!rt&&(lt?pt.primary:pt.primary50)}}},Option=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.isDisabled,pt=tt.isFocused,ht=tt.isSelected,mt=tt.innerRef,xt=tt.innerProps;return jsx("div",_extends$j({css:ut("option",tt),className:lt({option:!0,"option--is-disabled":dt,"option--is-focused":pt,"option--is-selected":ht},nt),ref:mt},xt),rt)},placeholderCSS=function(tt){var rt=tt.theme,nt=rt.spacing,lt=rt.colors;return{label:"placeholder",color:lt.neutral50,marginLeft:nt.baseUnit/2,marginRight:nt.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Placeholder$3=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.innerProps;return jsx("div",_extends$j({css:ut("placeholder",tt),className:lt({placeholder:!0},nt)},dt),rt)},css$1=function(tt){var rt=tt.isDisabled,nt=tt.theme,lt=nt.spacing,ut=nt.colors;return{label:"singleValue",color:rt?ut.neutral40:ut.neutral80,marginLeft:lt.baseUnit/2,marginRight:lt.baseUnit/2,maxWidth:"calc(100% - ".concat(lt.baseUnit*2,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},SingleValue=function(tt){var rt=tt.children,nt=tt.className,lt=tt.cx,ut=tt.getStyles,dt=tt.isDisabled,pt=tt.innerProps;return jsx("div",_extends$j({css:ut("singleValue",tt),className:lt({"single-value":!0,"single-value--is-disabled":dt},nt)},pt),rt)};function ownKeys$4$1(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$4(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$4$1(Object(rt),!0).forEach(function(nt){_defineProperty$3(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$4$1(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}var components={ClearIndicator:ClearIndicator$1,Control,DropdownIndicator,DownChevron,CrossIcon,Group,GroupHeading,IndicatorsContainer,IndicatorSeparator,Input:Input$1,LoadingIndicator,Menu,MenuList,MenuPortal,LoadingMessage,NoOptionsMessage,MultiValue,MultiValueContainer,MultiValueLabel,MultiValueRemove,Option,Placeholder:Placeholder$3,SelectContainer,SingleValue,ValueContainer},defaultComponents=function(tt){return _objectSpread$4(_objectSpread$4({},components),tt.components)},diacritics=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],anyDiacritic=new RegExp("["+diacritics.map(function(et){return et.letters}).join("")+"]","g"),diacriticToBase={};for(var i$1=0;i$1<diacritics.length;i$1++)for(var diacritic=diacritics[i$1],j$1=0;j$1<diacritic.letters.length;j$1++)diacriticToBase[diacritic.letters[j$1]]=diacritic.base;var stripDiacritics=function(tt){return tt.replace(anyDiacritic,function(rt){return diacriticToBase[rt]})};function ownKeys$3(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$2(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$3(Object(rt),!0).forEach(function(nt){_defineProperty$3(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$3(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}var trimString=function(tt){return tt.replace(/^\s+|\s+$/g,"")},defaultStringify=function(tt){return"".concat(tt.label," ").concat(tt.value)},createFilter=function(tt){return function(rt,nt){var lt=_objectSpread$2({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},tt),ut=lt.ignoreCase,dt=lt.ignoreAccents,pt=lt.stringify,ht=lt.trim,mt=lt.matchFrom,xt=ht?trimString(nt):nt,Mt=ht?trimString(pt(rt)):pt(rt);return ut&&(xt=xt.toLowerCase(),Mt=Mt.toLowerCase()),dt&&(xt=stripDiacritics(xt),Mt=stripDiacritics(Mt)),mt==="start"?Mt.substr(0,xt.length)===xt:Mt.indexOf(xt)>-1}},_ref={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},A11yText=function(tt){return jsx("span",_extends$j({css:_ref},tt))};function DummyInput(et){et.in,et.out,et.onExited,et.appear,et.enter,et.exit;var tt=et.innerRef;et.emotion;var rt=_objectWithoutProperties$2(et,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return jsx("input",_extends$j({ref:tt},rt,{css:css$2({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function _createSuper$1(et){var tt=_isNativeReflectConstruct$1();return function(){var nt=_getPrototypeOf(et),lt;if(tt){var ut=_getPrototypeOf(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$1(this,lt)}}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var NodeResolver=function(et){_inherits$1(rt,et);var tt=_createSuper$1(rt);function rt(){return _classCallCheck$1(this,rt),tt.apply(this,arguments)}return _createClass$1(rt,[{key:"componentDidMount",value:function(){this.props.innerRef(reactDomExports.findDOMNode(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),rt}(reactExports.Component),STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(et){et.preventDefault()}function allowTouchMove(et){et.stopPropagation()}function preventInertiaScroll(){var et=this.scrollTop,tt=this.scrollHeight,rt=et+this.offsetHeight;et===0?this.scrollTop=1:rt===tt&&(this.scrollTop=et-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}function _createSuper$1$1(et){var tt=_isNativeReflectConstruct$1$1();return function(){var nt=_getPrototypeOf(et),lt;if(tt){var ut=_getPrototypeOf(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$1(this,lt)}}function _isNativeReflectConstruct$1$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var canUseDOM$1=!!(window.document&&window.document.createElement),activeScrollLocks=0,ScrollLock=function(et){_inherits$1(rt,et);var tt=_createSuper$1$1(rt);function rt(){var nt;_classCallCheck$1(this,rt);for(var lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=tt.call.apply(tt,[this].concat(ut)),nt.originalStyles={},nt.listenerOptions={capture:!1,passive:!1},nt}return _createClass$1(rt,[{key:"componentDidMount",value:function(){var lt=this;if(canUseDOM$1){var ut=this.props,dt=ut.accountForScrollbars,pt=ut.touchScrollTarget,ht=document.body,mt=ht&&ht.style;if(dt&&STYLE_KEYS.forEach(function(Ot){var At=mt&&mt[Ot];lt.originalStyles[Ot]=At}),dt&&activeScrollLocks<1){var xt=parseInt(this.originalStyles.paddingRight,10)||0,Mt=document.body?document.body.clientWidth:0,vt=window.innerWidth-Mt+xt||0;Object.keys(LOCK_STYLES).forEach(function(Ot){var At=LOCK_STYLES[Ot];mt&&(mt[Ot]=At)}),mt&&(mt.paddingRight="".concat(vt,"px"))}ht&&isTouchDevice()&&(ht.addEventListener("touchmove",preventTouchMove,this.listenerOptions),pt&&(pt.addEventListener("touchstart",preventInertiaScroll,this.listenerOptions),pt.addEventListener("touchmove",allowTouchMove,this.listenerOptions))),activeScrollLocks+=1}}},{key:"componentWillUnmount",value:function(){var lt=this;if(canUseDOM$1){var ut=this.props,dt=ut.accountForScrollbars,pt=ut.touchScrollTarget,ht=document.body,mt=ht&&ht.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),dt&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(xt){var Mt=lt.originalStyles[xt];mt&&(mt[xt]=Mt)}),ht&&isTouchDevice()&&(ht.removeEventListener("touchmove",preventTouchMove,this.listenerOptions),pt&&(pt.removeEventListener("touchstart",preventInertiaScroll,this.listenerOptions),pt.removeEventListener("touchmove",allowTouchMove,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),rt}(reactExports.Component);ScrollLock.defaultProps={accountForScrollbars:!0};function _createSuper$2(et){var tt=_isNativeReflectConstruct$2();return function(){var nt=_getPrototypeOf(et),lt;if(tt){var ut=_getPrototypeOf(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$1(this,lt)}}function _isNativeReflectConstruct$2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var _ref$1={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},ScrollBlock=function(et){_inherits$1(rt,et);var tt=_createSuper$2(rt);function rt(){var nt;_classCallCheck$1(this,rt);for(var lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=tt.call.apply(tt,[this].concat(ut)),nt.state={touchScrollTarget:null},nt.getScrollTarget=function(pt){pt!==nt.state.touchScrollTarget&&nt.setState({touchScrollTarget:pt})},nt.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},nt}return _createClass$1(rt,[{key:"render",value:function(){var lt=this.props,ut=lt.children,dt=lt.isEnabled,pt=this.state.touchScrollTarget;return dt?jsx("div",null,jsx("div",{onClick:this.blurSelectInput,css:_ref$1}),jsx(NodeResolver,{innerRef:this.getScrollTarget},ut),pt?jsx(ScrollLock,{touchScrollTarget:pt}):null):ut}}]),rt}(reactExports.PureComponent);function _createSuper$3(et){var tt=_isNativeReflectConstruct$3();return function(){var nt=_getPrototypeOf(et),lt;if(tt){var ut=_getPrototypeOf(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$1(this,lt)}}function _isNativeReflectConstruct$3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var ScrollCaptor=function(et){_inherits$1(rt,et);var tt=_createSuper$3(rt);function rt(){var nt;_classCallCheck$1(this,rt);for(var lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=tt.call.apply(tt,[this].concat(ut)),nt.isBottom=!1,nt.isTop=!1,nt.scrollTarget=void 0,nt.touchStart=void 0,nt.cancelScroll=function(pt){pt.preventDefault(),pt.stopPropagation()},nt.handleEventDelta=function(pt,ht){var mt=nt.props,xt=mt.onBottomArrive,Mt=mt.onBottomLeave,vt=mt.onTopArrive,Ot=mt.onTopLeave,At=nt.scrollTarget,Rt=At.scrollTop,zt=At.scrollHeight,Tt=At.clientHeight,Ct=nt.scrollTarget,It=ht>0,Dt=zt-Tt-Rt,kt=!1;Dt>ht&&nt.isBottom&&(Mt&&Mt(pt),nt.isBottom=!1),It&&nt.isTop&&(Ot&&Ot(pt),nt.isTop=!1),It&&ht>Dt?(xt&&!nt.isBottom&&xt(pt),Ct.scrollTop=zt,kt=!0,nt.isBottom=!0):!It&&-ht>Rt&&(vt&&!nt.isTop&&vt(pt),Ct.scrollTop=0,kt=!0,nt.isTop=!0),kt&&nt.cancelScroll(pt)},nt.onWheel=function(pt){nt.handleEventDelta(pt,pt.deltaY)},nt.onTouchStart=function(pt){nt.touchStart=pt.changedTouches[0].clientY},nt.onTouchMove=function(pt){var ht=nt.touchStart-pt.changedTouches[0].clientY;nt.handleEventDelta(pt,ht)},nt.getScrollTarget=function(pt){nt.scrollTarget=pt},nt}return _createClass$1(rt,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(lt){lt&&(typeof lt.addEventListener=="function"&&lt.addEventListener("wheel",this.onWheel,!1),typeof lt.addEventListener=="function"&&lt.addEventListener("touchstart",this.onTouchStart,!1),typeof lt.addEventListener=="function"&&lt.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(lt){lt&&(typeof lt.removeEventListener=="function"&&lt.removeEventListener("wheel",this.onWheel,!1),typeof lt.removeEventListener=="function"&&lt.removeEventListener("touchstart",this.onTouchStart,!1),typeof lt.removeEventListener=="function"&&lt.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return React$4.createElement(NodeResolver,{innerRef:this.getScrollTarget},this.props.children)}}]),rt}(reactExports.Component);function ScrollCaptorSwitch(et){var tt=et.isEnabled,rt=tt===void 0?!0:tt,nt=_objectWithoutProperties$2(et,["isEnabled"]);return rt?React$4.createElement(ScrollCaptor,nt):nt.children}var instructionsAriaMessage=function(tt){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=rt.isSearchable,lt=rt.isMulti,ut=rt.label,dt=rt.isDisabled,pt=rt.tabSelectsValue;switch(tt){case"menu":return"Use Up and Down to choose options".concat(dt?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(pt?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(ut||"Select"," is focused ").concat(nt?",type to refine list":"",", press Down to open the menu, ").concat(lt?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},valueEventAriaMessage=function(tt,rt){var nt=rt.value,lt=rt.isDisabled;if(nt)switch(tt){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(nt,", deselected.");case"select-option":return lt?"option ".concat(nt," is disabled. Select another option."):"option ".concat(nt,", selected.")}},valueFocusAriaMessage=function(tt){var rt=tt.focusedValue,nt=tt.getOptionLabel,lt=tt.selectValue;return"value ".concat(nt(rt)," focused, ").concat(lt.indexOf(rt)+1," of ").concat(lt.length,".")},optionFocusAriaMessage=function(tt){var rt=tt.focusedOption,nt=tt.getOptionLabel,lt=tt.options;return"option ".concat(nt(rt)," focused").concat(rt.isDisabled?" disabled":"",", ").concat(lt.indexOf(rt)+1," of ").concat(lt.length,".")},resultsAriaMessage=function(tt){var rt=tt.inputValue,nt=tt.screenReaderMessage;return"".concat(nt).concat(rt?" for search term "+rt:"",".")},formatGroupLabel=function(tt){return tt.label},getOptionLabel=function(tt){return tt.label},getOptionValue=function(tt){return tt.value},isOptionDisabled=function(tt){return!!tt.isDisabled},defaultStyles={clearIndicator:clearIndicatorCSS,container:containerCSS,control:css,dropdownIndicator:dropdownIndicatorCSS,group:groupCSS,groupHeading:groupHeadingCSS,indicatorsContainer:indicatorsContainerCSS,indicatorSeparator:indicatorSeparatorCSS,input:inputCSS,loadingIndicator:loadingIndicatorCSS,loadingMessage:loadingMessageCSS,menu:menuCSS,menuList:menuListCSS,menuPortal:menuPortalCSS,multiValue:multiValueCSS,multiValueLabel:multiValueLabelCSS,multiValueRemove:multiValueRemoveCSS,noOptionsMessage:noOptionsMessageCSS,option:optionCSS,placeholder:placeholderCSS,singleValue:css$1,valueContainer:valueContainerCSS},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},borderRadius=4,baseUnit=4,controlHeight=38,menuGutter=baseUnit*2,spacing={baseUnit,controlHeight,menuGutter},defaultTheme$1={borderRadius,colors,spacing};function ownKeys$2$1(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$2$1(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$2$1(Object(rt),!0).forEach(function(nt){_defineProperty$3(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$2$1(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _createSuper$4(et){var tt=_isNativeReflectConstruct$4();return function(){var nt=_getPrototypeOf(et),lt;if(tt){var ut=_getPrototypeOf(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$1(this,lt)}}function _isNativeReflectConstruct$4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var defaultProps$4={backspaceRemovesValue:!0,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:createFilter(),formatGroupLabel,getOptionLabel,getOptionValue,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!isMobileDevice(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(tt){var rt=tt.count;return"".concat(rt," result").concat(rt!==1?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},instanceId=1,Select$1=function(et){_inherits$1(rt,et);var tt=_createSuper$4(rt);function rt(nt){var lt;_classCallCheck$1(this,rt),lt=tt.call(this,nt),lt.state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},lt.blockOptionHover=!1,lt.isComposing=!1,lt.clearFocusValueOnUpdate=!1,lt.commonProps=void 0,lt.components=void 0,lt.hasGroups=!1,lt.initialTouchX=0,lt.initialTouchY=0,lt.inputIsHiddenAfterUpdate=void 0,lt.instancePrefix="",lt.openAfterFocus=!1,lt.scrollToFocusedOptionOnUpdate=!1,lt.userIsDragging=void 0,lt.controlRef=null,lt.getControlRef=function(ht){lt.controlRef=ht},lt.focusedOptionRef=null,lt.getFocusedOptionRef=function(ht){lt.focusedOptionRef=ht},lt.menuListRef=null,lt.getMenuListRef=function(ht){lt.menuListRef=ht},lt.inputRef=null,lt.getInputRef=function(ht){lt.inputRef=ht},lt.cacheComponents=function(ht){lt.components=defaultComponents({components:ht})},lt.focus=lt.focusInput,lt.blur=lt.blurInput,lt.onChange=function(ht,mt){var xt=lt.props,Mt=xt.onChange,vt=xt.name;Mt(ht,_objectSpread$2$1(_objectSpread$2$1({},mt),{},{name:vt}))},lt.setValue=function(ht){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set-value",xt=arguments.length>2?arguments[2]:void 0,Mt=lt.props,vt=Mt.closeMenuOnSelect,Ot=Mt.isMulti;lt.onInputChange("",{action:"set-value"}),vt&&(lt.inputIsHiddenAfterUpdate=!Ot,lt.onMenuClose()),lt.clearFocusValueOnUpdate=!0,lt.onChange(ht,{action:mt,option:xt})},lt.selectOption=function(ht){var mt=lt.props,xt=mt.blurInputOnSelect,Mt=mt.isMulti,vt=lt.state.selectValue;if(Mt)if(lt.isOptionSelected(ht,vt)){var Ot=lt.getOptionValue(ht);lt.setValue(vt.filter(function(At){return lt.getOptionValue(At)!==Ot}),"deselect-option",ht),lt.announceAriaLiveSelection({event:"deselect-option",context:{value:lt.getOptionLabel(ht)}})}else lt.isOptionDisabled(ht,vt)?lt.announceAriaLiveSelection({event:"select-option",context:{value:lt.getOptionLabel(ht),isDisabled:!0}}):(lt.setValue([].concat(_toConsumableArray$2(vt),[ht]),"select-option",ht),lt.announceAriaLiveSelection({event:"select-option",context:{value:lt.getOptionLabel(ht)}}));else lt.isOptionDisabled(ht,vt)?lt.announceAriaLiveSelection({event:"select-option",context:{value:lt.getOptionLabel(ht),isDisabled:!0}}):(lt.setValue(ht,"select-option"),lt.announceAriaLiveSelection({event:"select-option",context:{value:lt.getOptionLabel(ht)}}));xt&&lt.blurInput()},lt.removeValue=function(ht){var mt=lt.state.selectValue,xt=lt.getOptionValue(ht),Mt=mt.filter(function(vt){return lt.getOptionValue(vt)!==xt});lt.onChange(Mt.length?Mt:null,{action:"remove-value",removedValue:ht}),lt.announceAriaLiveSelection({event:"remove-value",context:{value:ht?lt.getOptionLabel(ht):""}}),lt.focusInput()},lt.clearValue=function(){lt.onChange(null,{action:"clear"})},lt.popValue=function(){var ht=lt.state.selectValue,mt=ht[ht.length-1],xt=ht.slice(0,ht.length-1);lt.announceAriaLiveSelection({event:"pop-value",context:{value:mt?lt.getOptionLabel(mt):""}}),lt.onChange(xt.length?xt:null,{action:"pop-value",removedValue:mt})},lt.getValue=function(){return lt.state.selectValue},lt.cx=function(){for(var ht=arguments.length,mt=new Array(ht),xt=0;xt<ht;xt++)mt[xt]=arguments[xt];return classNames.apply(void 0,[lt.props.classNamePrefix].concat(mt))},lt.getOptionLabel=function(ht){return lt.props.getOptionLabel(ht)},lt.getOptionValue=function(ht){return lt.props.getOptionValue(ht)},lt.getStyles=function(ht,mt){var xt=defaultStyles[ht](mt);xt.boxSizing="border-box";var Mt=lt.props.styles[ht];return Mt?Mt(xt,mt):xt},lt.getElementId=function(ht){return"".concat(lt.instancePrefix,"-").concat(ht)},lt.getActiveDescendentId=function(){var ht=lt.props.menuIsOpen,mt=lt.state,xt=mt.menuOptions,Mt=mt.focusedOption;if(!(!Mt||!ht)){var vt=xt.focusable.indexOf(Mt),Ot=xt.render[vt];return Ot&&Ot.key}},lt.announceAriaLiveSelection=function(ht){var mt=ht.event,xt=ht.context;lt.setState({ariaLiveSelection:valueEventAriaMessage(mt,xt)})},lt.announceAriaLiveContext=function(ht){var mt=ht.event,xt=ht.context;lt.setState({ariaLiveContext:instructionsAriaMessage(mt,_objectSpread$2$1(_objectSpread$2$1({},xt),{},{label:lt.props["aria-label"]}))})},lt.onMenuMouseDown=function(ht){ht.button===0&&(ht.stopPropagation(),ht.preventDefault(),lt.focusInput())},lt.onMenuMouseMove=function(ht){lt.blockOptionHover=!1},lt.onControlMouseDown=function(ht){var mt=lt.props.openMenuOnClick;lt.state.isFocused?lt.props.menuIsOpen?ht.target.tagName!=="INPUT"&&ht.target.tagName!=="TEXTAREA"&&lt.onMenuClose():mt&&lt.openMenu("first"):(mt&&(lt.openAfterFocus=!0),lt.focusInput()),ht.target.tagName!=="INPUT"&&ht.target.tagName!=="TEXTAREA"&&ht.preventDefault()},lt.onDropdownIndicatorMouseDown=function(ht){if(!(ht&&ht.type==="mousedown"&&ht.button!==0)&&!lt.props.isDisabled){var mt=lt.props,xt=mt.isMulti,Mt=mt.menuIsOpen;lt.focusInput(),Mt?(lt.inputIsHiddenAfterUpdate=!xt,lt.onMenuClose()):lt.openMenu("first"),ht.preventDefault(),ht.stopPropagation()}},lt.onClearIndicatorMouseDown=function(ht){ht&&ht.type==="mousedown"&&ht.button!==0||(lt.clearValue(),ht.stopPropagation(),lt.openAfterFocus=!1,ht.type==="touchend"?lt.focusInput():setTimeout(function(){return lt.focusInput()}))},lt.onScroll=function(ht){typeof lt.props.closeMenuOnScroll=="boolean"?ht.target instanceof HTMLElement&&isDocumentElement(ht.target)&&lt.props.onMenuClose():typeof lt.props.closeMenuOnScroll=="function"&&lt.props.closeMenuOnScroll(ht)&&lt.props.onMenuClose()},lt.onCompositionStart=function(){lt.isComposing=!0},lt.onCompositionEnd=function(){lt.isComposing=!1},lt.onTouchStart=function(ht){var mt=ht.touches,xt=mt&&mt.item(0);xt&&(lt.initialTouchX=xt.clientX,lt.initialTouchY=xt.clientY,lt.userIsDragging=!1)},lt.onTouchMove=function(ht){var mt=ht.touches,xt=mt&&mt.item(0);if(xt){var Mt=Math.abs(xt.clientX-lt.initialTouchX),vt=Math.abs(xt.clientY-lt.initialTouchY),Ot=5;lt.userIsDragging=Mt>Ot||vt>Ot}},lt.onTouchEnd=function(ht){lt.userIsDragging||(lt.controlRef&&!lt.controlRef.contains(ht.target)&&lt.menuListRef&&!lt.menuListRef.contains(ht.target)&&lt.blurInput(),lt.initialTouchX=0,lt.initialTouchY=0)},lt.onControlTouchEnd=function(ht){lt.userIsDragging||lt.onControlMouseDown(ht)},lt.onClearIndicatorTouchEnd=function(ht){lt.userIsDragging||lt.onClearIndicatorMouseDown(ht)},lt.onDropdownIndicatorTouchEnd=function(ht){lt.userIsDragging||lt.onDropdownIndicatorMouseDown(ht)},lt.handleInputChange=function(ht){var mt=ht.currentTarget.value;lt.inputIsHiddenAfterUpdate=!1,lt.onInputChange(mt,{action:"input-change"}),lt.props.menuIsOpen||lt.onMenuOpen()},lt.onInputFocus=function(ht){var mt=lt.props,xt=mt.isSearchable,Mt=mt.isMulti;lt.props.onFocus&&lt.props.onFocus(ht),lt.inputIsHiddenAfterUpdate=!1,lt.announceAriaLiveContext({event:"input",context:{isSearchable:xt,isMulti:Mt}}),lt.setState({isFocused:!0}),(lt.openAfterFocus||lt.props.openMenuOnFocus)&&lt.openMenu("first"),lt.openAfterFocus=!1},lt.onInputBlur=function(ht){if(lt.menuListRef&&lt.menuListRef.contains(document.activeElement)){lt.inputRef.focus();return}lt.props.onBlur&&lt.props.onBlur(ht),lt.onInputChange("",{action:"input-blur"}),lt.onMenuClose(),lt.setState({focusedValue:null,isFocused:!1})},lt.onOptionHover=function(ht){lt.blockOptionHover||lt.state.focusedOption===ht||lt.setState({focusedOption:ht})},lt.shouldHideSelectedOptions=function(){var ht=lt.props,mt=ht.hideSelectedOptions,xt=ht.isMulti;return mt===void 0?xt:mt},lt.onKeyDown=function(ht){var mt=lt.props,xt=mt.isMulti,Mt=mt.backspaceRemovesValue,vt=mt.escapeClearsValue,Ot=mt.inputValue,At=mt.isClearable,Rt=mt.isDisabled,zt=mt.menuIsOpen,Tt=mt.onKeyDown,Ct=mt.tabSelectsValue,It=mt.openMenuOnFocus,Dt=lt.state,kt=Dt.focusedOption,qt=Dt.focusedValue,Nt=Dt.selectValue;if(!Rt&&!(typeof Tt=="function"&&(Tt(ht),ht.defaultPrevented))){switch(lt.blockOptionHover=!0,ht.key){case"ArrowLeft":if(!xt||Ot)return;lt.focusValue("previous");break;case"ArrowRight":if(!xt||Ot)return;lt.focusValue("next");break;case"Delete":case"Backspace":if(Ot)return;if(qt)lt.removeValue(qt);else{if(!Mt)return;xt?lt.popValue():At&&lt.clearValue()}break;case"Tab":if(lt.isComposing||ht.shiftKey||!zt||!Ct||!kt||It&&lt.isOptionSelected(kt,Nt))return;lt.selectOption(kt);break;case"Enter":if(ht.keyCode===229)break;if(zt){if(!kt||lt.isComposing)return;lt.selectOption(kt);break}return;case"Escape":zt?(lt.inputIsHiddenAfterUpdate=!1,lt.onInputChange("",{action:"menu-close"}),lt.onMenuClose()):At&&vt&&lt.clearValue();break;case" ":if(Ot)return;if(!zt){lt.openMenu("first");break}if(!kt)return;lt.selectOption(kt);break;case"ArrowUp":zt?lt.focusOption("up"):lt.openMenu("last");break;case"ArrowDown":zt?lt.focusOption("down"):lt.openMenu("first");break;case"PageUp":if(!zt)return;lt.focusOption("pageup");break;case"PageDown":if(!zt)return;lt.focusOption("pagedown");break;case"Home":if(!zt)return;lt.focusOption("first");break;case"End":if(!zt)return;lt.focusOption("last");break;default:return}ht.preventDefault()}},lt.buildMenuOptions=function(ht,mt){var xt=ht.inputValue,Mt=xt===void 0?"":xt,vt=ht.options,Ot=function(Rt,zt){var Tt=lt.isOptionDisabled(Rt,mt),Ct=lt.isOptionSelected(Rt,mt),It=lt.getOptionLabel(Rt),Dt=lt.getOptionValue(Rt);if(!(lt.shouldHideSelectedOptions()&&Ct||!lt.filterOption({label:It,value:Dt,data:Rt},Mt))){var kt=Tt?void 0:function(){return lt.onOptionHover(Rt)},qt=Tt?void 0:function(){return lt.selectOption(Rt)},Nt="".concat(lt.getElementId("option"),"-").concat(zt);return{innerProps:{id:Nt,onClick:qt,onMouseMove:kt,onMouseOver:kt,tabIndex:-1},data:Rt,isDisabled:Tt,isSelected:Ct,key:Nt,label:It,type:"option",value:Dt}}};return vt.reduce(function(At,Rt,zt){if(Rt.options){lt.hasGroups||(lt.hasGroups=!0);var Tt=Rt.options,Ct=Tt.map(function(kt,qt){var Nt=Ot(kt,"".concat(zt,"-").concat(qt));return Nt&&At.focusable.push(kt),Nt}).filter(Boolean);if(Ct.length){var It="".concat(lt.getElementId("group"),"-").concat(zt);At.render.push({type:"group",key:It,data:Rt,options:Ct})}}else{var Dt=Ot(Rt,"".concat(zt));Dt&&(At.render.push(Dt),At.focusable.push(Rt))}return At},{render:[],focusable:[]})};var ut=nt.value;lt.cacheComponents=memoizeOne$1(lt.cacheComponents,exportedEqual).bind(_assertThisInitialized$4(lt)),lt.cacheComponents(nt.components),lt.instancePrefix="react-select-"+(lt.props.instanceId||++instanceId);var dt=cleanValue(ut);lt.buildMenuOptions=memoizeOne$1(lt.buildMenuOptions,function(ht,mt){var xt=ht,Mt=_slicedToArray$2(xt,2),vt=Mt[0],Ot=Mt[1],At=mt,Rt=_slicedToArray$2(At,2),zt=Rt[0],Tt=Rt[1];return Ot===Tt&&vt.inputValue===zt.inputValue&&vt.options===zt.options}).bind(_assertThisInitialized$4(lt));var pt=nt.menuIsOpen?lt.buildMenuOptions(nt,dt):{render:[],focusable:[]};return lt.state.menuOptions=pt,lt.state.selectValue=dt,lt}return _createClass$1(rt,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(lt){var ut=this.props,dt=ut.options,pt=ut.value,ht=ut.menuIsOpen,mt=ut.inputValue;if(this.cacheComponents(lt.components),lt.value!==pt||lt.options!==dt||lt.menuIsOpen!==ht||lt.inputValue!==mt){var xt=cleanValue(lt.value),Mt=lt.menuIsOpen?this.buildMenuOptions(lt,xt):{render:[],focusable:[]},vt=this.getNextFocusedValue(xt),Ot=this.getNextFocusedOption(Mt.focusable);this.setState({menuOptions:Mt,selectValue:xt,focusedOption:Ot,focusedValue:vt})}this.inputIsHiddenAfterUpdate!=null&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(lt){var ut=this.props,dt=ut.isDisabled,pt=ut.menuIsOpen,ht=this.state.isFocused;(ht&&!dt&&lt.isDisabled||ht&&pt&&!lt.menuIsOpen)&&this.focusInput(),ht&&dt&&!lt.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var lt=this.props,ut=lt.isSearchable,dt=lt.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:ut,isMulti:dt}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(lt,ut){this.props.onInputChange(lt,ut)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(lt){var ut=this,dt=this.state,pt=dt.selectValue,ht=dt.isFocused,mt=this.buildMenuOptions(this.props,pt),xt=this.props,Mt=xt.isMulti,vt=xt.tabSelectsValue,Ot=lt==="first"?0:mt.focusable.length-1;if(!Mt){var At=mt.focusable.indexOf(pt[0]);At>-1&&(Ot=At)}this.scrollToFocusedOptionOnUpdate=!(ht&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:mt,focusedValue:null,focusedOption:mt.focusable[Ot]},function(){ut.onMenuOpen(),ut.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:vt}})})}},{key:"focusValue",value:function(lt){var ut=this.props,dt=ut.isMulti,pt=ut.isSearchable,ht=this.state,mt=ht.selectValue,xt=ht.focusedValue;if(dt){this.setState({focusedOption:null});var Mt=mt.indexOf(xt);xt||(Mt=-1,this.announceAriaLiveContext({event:"value"}));var vt=mt.length-1,Ot=-1;if(mt.length){switch(lt){case"previous":Mt===0?Ot=0:Mt===-1?Ot=vt:Ot=Mt-1;break;case"next":Mt>-1&&Mt<vt&&(Ot=Mt+1);break}Ot===-1&&this.announceAriaLiveContext({event:"input",context:{isSearchable:pt,isMulti:dt}}),this.setState({inputIsHidden:Ot!==-1,focusedValue:mt[Ot]})}}}},{key:"focusOption",value:function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",ut=this.props,dt=ut.pageSize,pt=ut.tabSelectsValue,ht=this.state,mt=ht.focusedOption,xt=ht.menuOptions,Mt=xt.focusable;if(Mt.length){var vt=0,Ot=Mt.indexOf(mt);mt||(Ot=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:pt}})),lt==="up"?vt=Ot>0?Ot-1:Mt.length-1:lt==="down"?vt=(Ot+1)%Mt.length:lt==="pageup"?(vt=Ot-dt,vt<0&&(vt=0)):lt==="pagedown"?(vt=Ot+dt,vt>Mt.length-1&&(vt=Mt.length-1)):lt==="last"&&(vt=Mt.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:Mt[vt],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:isOptionDisabled(Mt[vt]),tabSelectsValue:pt}})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(defaultTheme$1):_objectSpread$2$1(_objectSpread$2$1({},defaultTheme$1),this.props.theme):defaultTheme$1}},{key:"getCommonProps",value:function(){var lt=this.clearValue,ut=this.cx,dt=this.getStyles,pt=this.getValue,ht=this.setValue,mt=this.selectOption,xt=this.props,Mt=xt.isMulti,vt=xt.isRtl,Ot=xt.options,At=this.hasValue();return{cx:ut,clearValue:lt,getStyles:dt,getValue:pt,hasValue:At,isMulti:Mt,isRtl:vt,options:Ot,selectOption:mt,setValue:ht,selectProps:xt,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(lt){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var ut=this.state,dt=ut.focusedValue,pt=ut.selectValue,ht=pt.indexOf(dt);if(ht>-1){var mt=lt.indexOf(dt);if(mt>-1)return dt;if(ht<lt.length)return lt[ht]}return null}},{key:"getNextFocusedOption",value:function(lt){var ut=this.state.focusedOption;return ut&&lt.indexOf(ut)>-1?ut:lt[0]}},{key:"hasValue",value:function(){var lt=this.state.selectValue;return lt.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var lt=this.props,ut=lt.isClearable,dt=lt.isMulti;return ut===void 0?dt:ut}},{key:"isOptionDisabled",value:function(lt,ut){return typeof this.props.isOptionDisabled=="function"?this.props.isOptionDisabled(lt,ut):!1}},{key:"isOptionSelected",value:function(lt,ut){var dt=this;if(ut.indexOf(lt)>-1)return!0;if(typeof this.props.isOptionSelected=="function")return this.props.isOptionSelected(lt,ut);var pt=this.getOptionValue(lt);return ut.some(function(ht){return dt.getOptionValue(ht)===pt})}},{key:"filterOption",value:function(lt,ut){return this.props.filterOption?this.props.filterOption(lt,ut):!0}},{key:"formatOptionLabel",value:function(lt,ut){if(typeof this.props.formatOptionLabel=="function"){var dt=this.props.inputValue,pt=this.state.selectValue;return this.props.formatOptionLabel(lt,{context:ut,inputValue:dt,selectValue:pt})}else return this.getOptionLabel(lt)}},{key:"formatGroupLabel",value:function(lt){return this.props.formatGroupLabel(lt)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var lt=this.state,ut=lt.ariaLiveContext,dt=lt.selectValue,pt=lt.focusedValue,ht=lt.focusedOption,mt=this.props,xt=mt.options,Mt=mt.menuIsOpen,vt=mt.inputValue,Ot=mt.screenReaderStatus,At=pt?valueFocusAriaMessage({focusedValue:pt,getOptionLabel:this.getOptionLabel,selectValue:dt}):"",Rt=ht&&Mt?optionFocusAriaMessage({focusedOption:ht,getOptionLabel:this.getOptionLabel,options:xt}):"",zt=resultsAriaMessage({inputValue:vt,screenReaderMessage:Ot({count:this.countOptions()})});return"".concat(At," ").concat(Rt," ").concat(zt," ").concat(ut)}},{key:"renderInput",value:function(){var lt=this.props,ut=lt.isDisabled,dt=lt.isSearchable,pt=lt.inputId,ht=lt.inputValue,mt=lt.tabIndex,xt=lt.form,Mt=this.components.Input,vt=this.state.inputIsHidden,Ot=pt||this.getElementId("input"),At={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!dt)return React$4.createElement(DummyInput,_extends$j({id:Ot,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop$6,onFocus:this.onInputFocus,readOnly:!0,disabled:ut,tabIndex:mt,form:xt,value:""},At));var Rt=this.commonProps,zt=Rt.cx,Tt=Rt.theme,Ct=Rt.selectProps;return React$4.createElement(Mt,_extends$j({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:zt,getStyles:this.getStyles,id:Ot,innerRef:this.getInputRef,isDisabled:ut,isHidden:vt,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:Ct,spellCheck:"false",tabIndex:mt,form:xt,theme:Tt,type:"text",value:ht},At))}},{key:"renderPlaceholderOrValue",value:function(){var lt=this,ut=this.components,dt=ut.MultiValue,pt=ut.MultiValueContainer,ht=ut.MultiValueLabel,mt=ut.MultiValueRemove,xt=ut.SingleValue,Mt=ut.Placeholder,vt=this.commonProps,Ot=this.props,At=Ot.controlShouldRenderValue,Rt=Ot.isDisabled,zt=Ot.isMulti,Tt=Ot.inputValue,Ct=Ot.placeholder,It=this.state,Dt=It.selectValue,kt=It.focusedValue,qt=It.isFocused;if(!this.hasValue()||!At)return Tt?null:React$4.createElement(Mt,_extends$j({},vt,{key:"placeholder",isDisabled:Rt,isFocused:qt}),Ct);if(zt){var Nt=Dt.map(function(Kt,Jt){var Qt=Kt===kt;return React$4.createElement(dt,_extends$j({},vt,{components:{Container:pt,Label:ht,Remove:mt},isFocused:Qt,isDisabled:Rt,key:"".concat(lt.getOptionValue(Kt)).concat(Jt),index:Jt,removeProps:{onClick:function(){return lt.removeValue(Kt)},onTouchEnd:function(){return lt.removeValue(Kt)},onMouseDown:function(Ft){Ft.preventDefault(),Ft.stopPropagation()}},data:Kt}),lt.formatOptionLabel(Kt,"value"))});return Nt}if(Tt)return null;var Yt=Dt[0];return React$4.createElement(xt,_extends$j({},vt,{data:Yt,isDisabled:Rt}),this.formatOptionLabel(Yt,"value"))}},{key:"renderClearIndicator",value:function(){var lt=this.components.ClearIndicator,ut=this.commonProps,dt=this.props,pt=dt.isDisabled,ht=dt.isLoading,mt=this.state.isFocused;if(!this.isClearable()||!lt||pt||!this.hasValue()||ht)return null;var xt={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return React$4.createElement(lt,_extends$j({},ut,{innerProps:xt,isFocused:mt}))}},{key:"renderLoadingIndicator",value:function(){var lt=this.components.LoadingIndicator,ut=this.commonProps,dt=this.props,pt=dt.isDisabled,ht=dt.isLoading,mt=this.state.isFocused;if(!lt||!ht)return null;var xt={"aria-hidden":"true"};return React$4.createElement(lt,_extends$j({},ut,{innerProps:xt,isDisabled:pt,isFocused:mt}))}},{key:"renderIndicatorSeparator",value:function(){var lt=this.components,ut=lt.DropdownIndicator,dt=lt.IndicatorSeparator;if(!ut||!dt)return null;var pt=this.commonProps,ht=this.props.isDisabled,mt=this.state.isFocused;return React$4.createElement(dt,_extends$j({},pt,{isDisabled:ht,isFocused:mt}))}},{key:"renderDropdownIndicator",value:function(){var lt=this.components.DropdownIndicator;if(!lt)return null;var ut=this.commonProps,dt=this.props.isDisabled,pt=this.state.isFocused,ht={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return React$4.createElement(lt,_extends$j({},ut,{innerProps:ht,isDisabled:dt,isFocused:pt}))}},{key:"renderMenu",value:function(){var lt=this,ut=this.components,dt=ut.Group,pt=ut.GroupHeading,ht=ut.Menu,mt=ut.MenuList,xt=ut.MenuPortal,Mt=ut.LoadingMessage,vt=ut.NoOptionsMessage,Ot=ut.Option,At=this.commonProps,Rt=this.state,zt=Rt.focusedOption,Tt=Rt.menuOptions,Ct=this.props,It=Ct.captureMenuScroll,Dt=Ct.inputValue,kt=Ct.isLoading,qt=Ct.loadingMessage,Nt=Ct.minMenuHeight,Yt=Ct.maxMenuHeight,Kt=Ct.menuIsOpen,Jt=Ct.menuPlacement,Qt=Ct.menuPosition,Bt=Ct.menuPortalTarget,Ft=Ct.menuShouldBlockScroll,$t=Ct.menuShouldScrollIntoView,jt=Ct.noOptionsMessage,Wt=Ct.onMenuScrollToTop,Ut=Ct.onMenuScrollToBottom;if(!Kt)return null;var Vt=function(or){var rr=zt===or.data;return or.innerRef=rr?lt.getFocusedOptionRef:void 0,React$4.createElement(Ot,_extends$j({},At,or,{isFocused:rr}),lt.formatOptionLabel(or.data,"menu"))},Ht;if(this.hasOptions())Ht=Tt.render.map(function(nr){if(nr.type==="group"){nr.type;var or=_objectWithoutProperties$2(nr,["type"]),rr="".concat(nr.key,"-heading");return React$4.createElement(dt,_extends$j({},At,or,{Heading:pt,headingProps:{id:rr,data:nr.data},label:lt.formatGroupLabel(nr.data)}),nr.options.map(function(cr){return Vt(cr)}))}else if(nr.type==="option")return Vt(nr)});else if(kt){var Gt=qt({inputValue:Dt});if(Gt===null)return null;Ht=React$4.createElement(Mt,At,Gt)}else{var Zt=jt({inputValue:Dt});if(Zt===null)return null;Ht=React$4.createElement(vt,At,Zt)}var Xt={minMenuHeight:Nt,maxMenuHeight:Yt,menuPlacement:Jt,menuPosition:Qt,menuShouldScrollIntoView:$t},er=React$4.createElement(MenuPlacer,_extends$j({},At,Xt),function(nr){var or=nr.ref,rr=nr.placerProps,cr=rr.placement,ir=rr.maxHeight;return React$4.createElement(ht,_extends$j({},At,Xt,{innerRef:or,innerProps:{onMouseDown:lt.onMenuMouseDown,onMouseMove:lt.onMenuMouseMove},isLoading:kt,placement:cr}),React$4.createElement(ScrollCaptorSwitch,{isEnabled:It,onTopArrive:Wt,onBottomArrive:Ut},React$4.createElement(ScrollBlock,{isEnabled:Ft},React$4.createElement(mt,_extends$j({},At,{innerRef:lt.getMenuListRef,isLoading:kt,maxHeight:ir}),Ht))))});return Bt||Qt==="fixed"?React$4.createElement(xt,_extends$j({},At,{appendTo:Bt,controlElement:this.controlRef,menuPlacement:Jt,menuPosition:Qt}),er):er}},{key:"renderFormField",value:function(){var lt=this,ut=this.props,dt=ut.delimiter,pt=ut.isDisabled,ht=ut.isMulti,mt=ut.name,xt=this.state.selectValue;if(!(!mt||pt))if(ht)if(dt){var Mt=xt.map(function(At){return lt.getOptionValue(At)}).join(dt);return React$4.createElement("input",{name:mt,type:"hidden",value:Mt})}else{var vt=xt.length>0?xt.map(function(At,Rt){return React$4.createElement("input",{key:"i-".concat(Rt),name:mt,type:"hidden",value:lt.getOptionValue(At)})}):React$4.createElement("input",{name:mt,type:"hidden"});return React$4.createElement("div",null,vt)}else{var Ot=xt[0]?this.getOptionValue(xt[0]):"";return React$4.createElement("input",{name:mt,type:"hidden",value:Ot})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?React$4.createElement(A11yText,{"aria-live":"polite"},React$4.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),React$4.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var lt=this.components,ut=lt.Control,dt=lt.IndicatorsContainer,pt=lt.SelectContainer,ht=lt.ValueContainer,mt=this.props,xt=mt.className,Mt=mt.id,vt=mt.isDisabled,Ot=mt.menuIsOpen,At=this.state.isFocused,Rt=this.commonProps=this.getCommonProps();return React$4.createElement(pt,_extends$j({},Rt,{className:xt,innerProps:{id:Mt,onKeyDown:this.onKeyDown},isDisabled:vt,isFocused:At}),this.renderLiveRegion(),React$4.createElement(ut,_extends$j({},Rt,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:vt,isFocused:At,menuIsOpen:Ot}),React$4.createElement(ht,_extends$j({},Rt,{isDisabled:vt}),this.renderPlaceholderOrValue(),this.renderInput()),React$4.createElement(dt,_extends$j({},Rt,{isDisabled:vt}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),rt}(reactExports.Component);Select$1.defaultProps=defaultProps$4;function _createSuper(et){var tt=_isNativeReflectConstruct();return function(){var nt=_getPrototypeOf(et),lt;if(tt){var ut=_getPrototypeOf(this).constructor;lt=Reflect.construct(nt,arguments,ut)}else lt=nt.apply(this,arguments);return _possibleConstructorReturn$1(this,lt)}}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var defaultProps$3={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},manageState=function(tt){var rt,nt;return nt=rt=function(lt){_inherits$1(dt,lt);var ut=_createSuper(dt);function dt(){var pt;_classCallCheck$1(this,dt);for(var ht=arguments.length,mt=new Array(ht),xt=0;xt<ht;xt++)mt[xt]=arguments[xt];return pt=ut.call.apply(ut,[this].concat(mt)),pt.select=void 0,pt.state={inputValue:pt.props.inputValue!==void 0?pt.props.inputValue:pt.props.defaultInputValue,menuIsOpen:pt.props.menuIsOpen!==void 0?pt.props.menuIsOpen:pt.props.defaultMenuIsOpen,value:pt.props.value!==void 0?pt.props.value:pt.props.defaultValue},pt.onChange=function(Mt,vt){pt.callProp("onChange",Mt,vt),pt.setState({value:Mt})},pt.onInputChange=function(Mt,vt){var Ot=pt.callProp("onInputChange",Mt,vt);pt.setState({inputValue:Ot!==void 0?Ot:Mt})},pt.onMenuOpen=function(){pt.callProp("onMenuOpen"),pt.setState({menuIsOpen:!0})},pt.onMenuClose=function(){pt.callProp("onMenuClose"),pt.setState({menuIsOpen:!1})},pt}return _createClass$1(dt,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(ht){return this.props[ht]!==void 0?this.props[ht]:this.state[ht]}},{key:"callProp",value:function(ht){if(typeof this.props[ht]=="function"){for(var mt,xt=arguments.length,Mt=new Array(xt>1?xt-1:0),vt=1;vt<xt;vt++)Mt[vt-1]=arguments[vt];return(mt=this.props)[ht].apply(mt,Mt)}}},{key:"render",value:function(){var ht=this,mt=this.props;mt.defaultInputValue,mt.defaultMenuIsOpen,mt.defaultValue;var xt=_objectWithoutProperties$2(mt,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return React$4.createElement(tt,_extends$j({},xt,{ref:function(vt){ht.select=vt},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),dt}(reactExports.Component),rt.defaultProps=defaultProps$3,nt},index$1=manageState(Select$1);const selectStyle=et=>{const tt=useTheme$1();return{dropdownIndicator:()=>({color:tt.palette.primary.main,marginRight:"8px"}),indicatorSeparator:()=>({display:"none"}),control:(rt,nt)=>({...rt,border:et?`1px solid ${tt.palette.error.main}`:nt.isFocused?`1px solid ${tt.palette.primary.main}`:`1px solid ${tt.palette.grey[300]}`,boxShadow:"none",color:tt.palette.text.primary,height:"40px","&:hover":{border:`1px solid ${tt.palette.grey[300]}`}}),input:rt=>({...rt,color:tt.palette.text.primary}),valueContainer:rt=>({...rt,lineHeight:"32px",fontSize:"14px",padding:"0px 8px"}),option:(rt,nt)=>({...rt,color:tt.palette.text.primary,fontSize:"14px",backgroundColor:nt.isSelected?tt.palette.action.selected:nt.isFocused?tt.palette.action.hover:void 0,cursor:"pointer",":active":{...rt[":active"],backgroundColor:tt.palette.action.selected}}),menuPortal:rt=>({...rt,zIndex:9999})}},ratherNotSayOption={label:"Rather not say",value:"Rather not say"},CustomFooter=styled$1("div")`
  line-height: 32px;
  font-size: 1rem;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 10px;
  font-size: 14px;
  color: ${et=>et.theme.palette.text.primary};
  cursor: pointer;
  border-top: 1px solid ${et=>et.theme.palette.grey[300]};
  text-decoration: underline;
  background-color: ${et=>et.isselected==="true"?et.theme.palette.action.selected:"white"};
`,SelectField=et=>{const{options:tt,field:rt,form:nt,updateMutation:lt,disabled:ut=!1,menuPlacement:dt="auto",...pt}=et;useTheme$1();const[ht,mt]=reactExports.useState(!1),{name:xt,value:Mt,onBlur:vt}=rt,{errors:Ot,touched:At,submitCount:Rt,setFieldValue:zt,setFieldTouched:Tt}=nt,Ct=getIn$1(Ot,xt),It=getIn$1(At,xt),Dt=(Rt>0||It)&&Ct,kt=`${xt}-select-input`,qt=reactExports.useMemo(()=>tt==null?void 0:tt.find(Jt=>Jt.value===Mt),[Mt,tt]),Nt=Jt=>{lt(Jt?Jt.value:""),zt(xt,Jt.value,!0),mt(!1)},Yt=reactExports.useMemo(()=>({children:Jt,...Qt})=>jsxRuntimeExports.jsxs(components.Menu,{...Qt,children:[Jt,jsxRuntimeExports.jsx(CustomFooter,{onClick:()=>{var Bt;Nt(ratherNotSayOption),(Bt=document==null?void 0:document.querySelector(`#${kt}`))==null||Bt.blur()},id:`${xt}-footer-option`,isselected:(Mt===(ratherNotSayOption==null?void 0:ratherNotSayOption.value)).toString(),children:ratherNotSayOption.label})]}),[tt]),Kt=Jt=>{setTimeout(()=>{mt(!1),Tt(xt,!0),vt(Jt)},150)};return jsxRuntimeExports.jsxs("div",{"data-testid":`select-${xt}`,onClick:()=>{ht||mt(!0)},onBlur:Kt,children:[jsxRuntimeExports.jsx(index$1,{...pt,inputId:kt,styles:selectStyle(Dt),options:tt==null?void 0:tt.filter(Jt=>(Jt==null?void 0:Jt.label)!==(ratherNotSayOption==null?void 0:ratherNotSayOption.label)),name:xt,value:qt,onFocus:()=>mt(!0),menuShouldScrollIntoView:!0,menuPortalTarget:document.body,onBlur:Kt,onChange:Jt=>Nt(Jt),classNamePrefix:xt,isDisabled:ut,components:{Menu:Yt},menuIsOpen:ht,menuPlacement:dt}),Dt&&jsxRuntimeExports.jsx(ROHelperText,{id:xt,error:!0,helperText:Ct})]})},Container$3=styled$1("div")`
  display: flex;
  flex-direction: column;
`,StyledInput$1=styled$1("input")`
  border: 1px solid ${et=>et.invalid?et.theme.palette.error.main:et.theme.palette.grey[300]};
  width: 100%;
  padding: 8px 8px;
  font-size: ${getRemSize(14)};
  border-radius: 4px;
  height: 40px;
`,HtmlInputField=({field:et,form:tt,placeholder:rt,updateMutation:nt,lastUpdateUser:lt,width:ut,inputProps:dt,disabled:pt=!1})=>{const{name:ht,value:mt,onBlur:xt,onChange:Mt}=et,{errors:vt,touched:Ot,submitCount:At}=tt,Rt=getIn$1(vt,ht),zt=getIn$1(Ot,ht),Tt=(At>0||zt)&&Rt,Ct=async It=>{xt(It),nt&&nt(It.target.value)};return jsxRuntimeExports.jsxs(Container$3,{children:[jsxRuntimeExports.jsxs(StyledFieldRow,{width:ut,children:[jsxRuntimeExports.jsx(StyledInput$1,{name:ht,value:mt,invalid:Tt,onChange:Mt,onBlur:It=>Ct(It),placeholder:rt,disabled:pt,onInput:It=>{dt!=null&&dt.maxLength&&(It.target.value=It.target.value.slice(0,dt.maxLength))},...dt}),lt&&jsxRuntimeExports.jsx(UserIcon,{userType:lt})]}),Tt&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:ht,fieldText:Rt,helperType:"error",fontSize:14})]})},PATIENT_FRAGMENT=gql`
  fragment Patient on PatientType {
    id
    firstName
    middleName
    lastName
    gender
    dob
    primaryPhone
    secondaryPhone
    creatorRole
    creator {
      id
    }
    address {
      id
      line1
      line2
      city
      postcode
      state
      country
    }
    postalAddress {
      id
      line1
      line2
      city
      postcode
      state
      country
    }
  }
`,ADD_PATIENT=gql`
  mutation AddPatient(
    $firstName: String!
    $middleName: String
    $lastName: String!
    $gender: String!
    $dob: Date!
    $responsiblePhysicianId: ID!
    $mobilePhoneNumber: String
    $homePhoneNumber: String
    $line1: String
    $line2: String
    $city: String
    $postcode: String
    $state: String
    $country: String
  ) {
    addPatient(
      firstName: $firstName
      middleName: $middleName
      lastName: $lastName
      gender: $gender
      dob: $dob
      responsiblePhysicianId: $responsiblePhysicianId
      mobilePhoneNumber: $mobilePhoneNumber
      homePhoneNumber: $homePhoneNumber
      addressLineOne: $line1
      addressLineTwo: $line2
      addressCity: $city
      addressPostcode: $postcode
      addressState: $state
      addressCountry: $country
    ) {
      patient {
        id
        ...Patient
      }
    }
  }

  ${PATIENT_FRAGMENT}
`,CREATE_PATIENT_DUPLICATION_CHECK=gql`
  query createPatientDuplicationCheck(
    $firstName: String!
    $middleName: String
    $lastName: String!
    $gender: String!
    $dob: Date!
    $mobilePhoneNumber: String
    $homePhoneNumber: String
  ) {
    createPatientDuplicationCheck(
      firstName: $firstName
      middleName: $middleName
      lastName: $lastName
      gender: $gender
      dob: $dob
      mobilePhoneNumber: $mobilePhoneNumber
      homePhoneNumber: $homePhoneNumber
    ) {
      id
      firstName
      middleName
      lastName
      gender
      dob
      photoUrl
      primaryPhoneFormatted
      secondaryPhoneFormatted
      address {
        id
        state
        country
        formattedAddress
        ukFormattedAddress
      }
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressPostcode
      residentialAddressState
      residentialAddressCountry
      residentialAddressCountryName
      postalAddressLine1
      postalAddressLine2
      postalAddressCity
      postalAddressPostcode
      postalAddressState
      postalAddressCountry
    }
  }
`,CONTINUE_BUTTON_TEXT$1="Continue",RETURN_TO_SUBMIT_TEXT$1="Return to submit",VALUE_REQUIRED$5="This field is required",PHONE_VALIDATION$3="Please enter a valid phone number",PHONE_REQUIRED$2="Please enter at least one phone number",PSO_SUMMARY_LINK$1="/navigator/patient/:patientId/summary",SPECIFY_MARITAL_FIELDS=["Married","De Facto","Domestic Partner"],EMPTY_ADDRESS$1={country:"",line1:"",line2:"",city:"",state:"",postcode:""},HeaderTitle$3=styled$1("div")`
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  margin-bottom: 8px;
`,SectionTitle$2=styled$1("div")`
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;

  color: ${et=>et.theme.palette.text.primary};
`,HeaderSubTitle$1=styled$1("div")`
  margin-bottom: 30px;
`,StyledIndentedSection$1=styled$1("div")`
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};
  label {
    margin-left: 16px;
    @media all and (max-width: ${supportedSize.transition}px) {
      margin-left: 0;
    }
  }
  padding-left: 10px;
  @media all and (max-width: ${supportedSize.transition}px) {
    padding-left: 18px;
  }
  margin-top: 10px;
`,StyledHorizontalLine$1=styled$1("div")`
  margin-top: -5px !important;
  margin-bottom: 5px !important;
  width: 100%;
  height: 10px;
  border-bottom: 1px solid black;
  border-color: ${et=>et.theme.palette.grey[300]};
  text-align: center;

  span {
    font-size: 13px;
    background-color: white;
    padding: 0 20px;
    color: ${et=>et.theme.palette.grey[600]};
  }
`,ExtraInformation$1=styled$1("div")`
  margin-top: 6px;
  color: ${et=>et.theme.palette.info.main};
  font-size: 13px;
  display: flex;
  align-items: center;
`,StyledInfoIcon$2=styled$1(SvgInfo)`
  fill: ${et=>et.theme.palette.info.main};
  width: 16px;
  height: 16px;
  margin-right: 6px;
`,extraInformation$1=et=>jsxRuntimeExports.jsxs(ExtraInformation$1,{children:[jsxRuntimeExports.jsx(StyledInfoIcon$2,{}),jsxRuntimeExports.jsx("span",{"data-test-id":["extra","info",et??"generic"].join("-"),children:"Please provide a copy of the document to the clinic"})]}),yesNoOptions$1=[{label:"Yes",value:!0},{label:"No",value:!1}],getDisplayValue$1=(et,tt)=>{const rt=et==null?void 0:et.filter(nt=>nt.id===tt);return rt!=null&&rt.length?rt[0].name:tt},sharedFormContainerProps$1=(et,tt,rt,nt=!0)=>({isLocked:!1,updatedBy:"",deleteModal:()=>{},showSaveAndExit:!0,pageNumber:tt,sectionTitle:et,showDiscard:!1,sidePanelWidth:"-15%",footerPosition:"relative",isLoading:!1,isShowSaveExitConfirm:nt,backLink:rt}),registrationPath$1=(et,tt)=>generatePath(`/patient/${et}/registration/${tt}`),standardField$1=(et,tt,rt,nt=!0)=>jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:et.TITLE,fieldName:et.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:et.NAME,component:et.COMPONENT,alternateStyle:nt,updateMutation:lt=>tt(et.NAME,lt),handleMutation:tt,placeholder:et.PLACE_HOLDER,options:rt||[]})}),linkedField$1=(et,tt,rt,nt)=>jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:et.TITLE,fieldName:et.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:et.NAME,component:et.COMPONENT,alternateStyle:!0,updateMutation:lt=>{nt(tt.NAME,!0),rt(et.NAME,lt)},placeholder:et.PLACE_HOLDER})}),TITLE="Basic Details",SUBTITLE="Please enter patient basic details.",SUBMIT_BUTTON_TEXT="Create patient",GENDER_OPTIONS=[{label:"Female",value:"Female"},{label:"Male",value:"Male"},{label:"Other",value:"Other"}],US_GENDER_OPTIONS=[{label:"Female",value:"Female"},{label:"Male",value:"Male"},{label:"Unknown",value:"Unknown"}],VALUE_REQUIRED$4="This field is required",PHONE_VALIDATION$2="Please enter a valid phone number",SEARCH_DROPDOWN_PLACEHOLDER="Start typing or choose from dropdown...",PHONE_REQUIRED$1="Enter at least one phone number",ADDRESS_LINE1_REQUIRED="Please fill in Address Line 1",mapListDataWithId=et=>(et==null?void 0:et.map(tt=>({label:tt.name,value:tt.id})))||[],ModalCreateNewPatient=et=>{const{isOpen:tt,handleClose:rt,submissionProcessingTime:nt=1,isLoading:lt,rightButtonHandleClick:ut}=et,pt=useTheme$1().custom.title;return jsxRuntimeExports.jsx(StandardDialog,{onClose:rt,open:tt,maxWidth:"sm",title:"Create New Patient",onSubmit:ut,submitText:"Create patient",submitButtonProps:{disabled:lt,loading:lt},children:jsxRuntimeExports.jsxs(Stack$5,{children:[isUs()?jsxRuntimeExports.jsx("p",{children:"Proceeding will create a new patient record. Please ensure all patient details are correct."}):jsxRuntimeExports.jsxs("p",{children:["Proceeding will create a new patient record in both ",pt," and Mosaiq. Please ensure all patient details are correct."]}),jsxRuntimeExports.jsxs("p",{children:["It may take up to ",nt," min",nt>1&&"s",", please do"," ",jsxRuntimeExports.jsx("b",{children:jsxRuntimeExports.jsx("u",{children:"NOT"})})," ","close the browser while loading."]}),jsxRuntimeExports.jsx("br",{})]})})},tableHeader={DEFAULT:{headers:["Potential duplicate patient(s)","Date of Birth","Address"]},[Region.UK]:{headers:["Potential duplicate patient(s)","Date of Birth","Address"]}},StyledTableCell$8=styled(TableCell)(et=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.theme.palette.grey[200],color:et.theme.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$a=styled(TableRow$7)(({theme:et})=>({"&:last-child td, &:last-child th":{border:0}})),ModalDuplicationResult=et=>{const{newPatientData:tt,duplicateData:rt,isOpen:nt,handleClose:lt,rightButtonText:ut,rightButtonHandleClick:dt}=et,[pt]=useMutation(LOG_EVENT),ht=reactExports.useRef(new Date().getTime()),mt=useTheme$1(),xt=Ot=>{const At={eventName:"create_patient_duplicate_selected",patientId:Ot};logPage(ht==null?void 0:ht.current,At,pt);const Rt=window.open(`/navigator/patient/${Ot}/summary`,"_blank");Rt==null||Rt.focus()},Mt=(Ot,At)=>`${Ot} ${At}`;let vt=tt.address.line2?`${tt.address.line2}, `:"";return vt+=tt.address.line1?`${tt.address.line1}, `:"",vt+=tt.address.city?`${tt.address.city}, `:"",vt+=tt.address.state?`${tt.address.state} `:"",vt+=tt.address.postcode?`${tt.address.postcode} `:"",vt+=tt.address.country?`${tt.address.country} `:"",jsxRuntimeExports.jsx(StandardDialog,{open:nt,maxWidth:"lg",title:"Check potiential duplicate patient record",titleIcon:jsxRuntimeExports.jsx(WarningSharp,{htmlColor:mt.palette.warning.dark}),submitText:ut,onSubmit:dt,children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{lineHeight:"1.6rem",fontSize:"16px",paddingBottom:"8px"},children:"The patient you are about to create may already exist in the system. If a match is listed in the table below, open the patient record by clicking on the table row. If no match is found, click continue to create a new patient record."}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",sx:{fontWeight:600},children:"Create new patient"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Table$3,{style:{border:`1px solid ${mt.palette.primary.main}`},children:jsxRuntimeExports.jsx(TableBody$2,{children:jsxRuntimeExports.jsxs(TableRow$7,{children:[jsxRuntimeExports.jsx(TableCell,{style:{width:"300px",borderBottom:`1px solid ${mt.palette.primary.main}`},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px"},children:[jsxRuntimeExports.jsx(RadioButtonCheckedIcon,{color:"primary",sx:{height:"100%"}}),jsxRuntimeExports.jsxs("div",{children:[Mt(tt.firstName,tt.lastName)," ",genderTitle(tt.gender)]})]})}),jsxRuntimeExports.jsxs(TableCell,{style:{width:"200px",borderBottom:`1px solid ${mt.palette.primary.main}`},children:[hooks(tt.dateOfBirth).format(isUs()?"MMM DD, YYYY":"DD MMM YYYY")," (age"," ",calculateMomentAge(hooks(tt.dateOfBirth)),")"]}),jsxRuntimeExports.jsx(TableCell,{sx:{borderBottom:`1px solid ${mt.palette.primary.main}`},children:vt})]})})})})]}),jsxRuntimeExports.jsx(TableContainer$6,{sx:{paddingTop:"8px"},children:jsxRuntimeExports.jsxs(Table$3,{children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsx(TableRow$7,{children:tableHeader.DEFAULT.headers.map((Ot,At)=>jsxRuntimeExports.jsx(StyledTableCell$8,{children:Ot},At))})}),jsxRuntimeExports.jsx(TableBody$2,{children:rt.map((Ot,At)=>{var Rt;return jsxRuntimeExports.jsxs(StyledTableRow$a,{onClick:()=>xt(Ot.id),children:[jsxRuntimeExports.jsx(TableCell,{style:{width:"300px"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px"},children:[jsxRuntimeExports.jsx(PhotoWidget,{patientId:Ot.id,enableOverlay:!0,size:"sm"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:Mt(Ot.firstName,Ot.lastName)}),jsxRuntimeExports.jsxs("div",{children:["Patient ID: ",Ot.id]})]})]})}),jsxRuntimeExports.jsxs(TableCell,{style:{width:"188px"},children:[isUs()?hooks(Ot.dob).format("MMM DD, YYYY"):hooks(Ot.dob).format("DD MMM YYYY")," ","(age ",calculateMomentAge(hooks(Ot.dob)),")"]}),jsxRuntimeExports.jsx(TableCell,{children:(Rt=Ot.address)==null?void 0:Rt.formattedAddress})]},At)})})]})})]})})};ModalDuplicationResult.defaultProps={rightButtonText:"Continue"};var map;try{map=Map}catch{}var set$1;try{set$1=Set}catch{}function baseClone(et,tt,rt){if(!et||typeof et!="object"||typeof et=="function")return et;if(et.nodeType&&"cloneNode"in et)return et.cloneNode(!0);if(et instanceof Date)return new Date(et.getTime());if(et instanceof RegExp)return new RegExp(et);if(Array.isArray(et))return et.map(clone);if(map&&et instanceof map)return new Map(Array.from(et.entries()));if(set$1&&et instanceof set$1)return new Set(Array.from(et.values()));if(et instanceof Object){tt.push(et);var nt=Object.create(et);rt.push(nt);for(var lt in et){var ut=tt.findIndex(function(dt){return dt===et[lt]});nt[lt]=ut>-1?rt[ut]:baseClone(et[lt],tt,rt)}return nt}return et}function clone(et){return baseClone(et,[],[])}const toString$9=Object.prototype.toString,errorToString=Error.prototype.toString,regExpToString=RegExp.prototype.toString,symbolToString$1=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/;function printNumber(et){return et!=+et?"NaN":et===0&&1/et<0?"-0":""+et}function printSimpleValue(et,tt=!1){if(et==null||et===!0||et===!1)return""+et;const rt=typeof et;if(rt==="number")return printNumber(et);if(rt==="string")return tt?`"${et}"`:et;if(rt==="function")return"[Function "+(et.name||"anonymous")+"]";if(rt==="symbol")return symbolToString$1.call(et).replace(SYMBOL_REGEXP,"Symbol($1)");const nt=toString$9.call(et).slice(8,-1);return nt==="Date"?isNaN(et.getTime())?""+et:et.toISOString(et):nt==="Error"||et instanceof Error?"["+errorToString.call(et)+"]":nt==="RegExp"?regExpToString.call(et):null}function printValue(et,tt){let rt=printSimpleValue(et,tt);return rt!==null?rt:JSON.stringify(et,function(nt,lt){let ut=printSimpleValue(this[nt],tt);return ut!==null?ut:lt},2)}let mixed={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:et,type:tt,value:rt,originalValue:nt})=>{let lt=nt!=null&&nt!==rt,ut=`${et} must be a \`${tt}\` type, but the final value was: \`${printValue(rt,!0)}\``+(lt?` (cast from the value \`${printValue(nt,!0)}\`).`:".");return rt===null&&(ut+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),ut},defined:"${path} must be defined"},string={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},number={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},boolean={isValue:"${path} field must be ${value}"},object={noUnknown:"${path} field has unspecified keys: ${unknown}"},array={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed,string,number,date,object,array,boolean});var objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty;function baseHas$1(et,tt){return et!=null&&hasOwnProperty$b.call(et,tt)}var _baseHas=baseHas$1,isArray$c=Array.isArray,isArray_1=isArray$c,freeGlobal$2=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$2,freeGlobal$1=_freeGlobal,freeSelf$1=typeof self=="object"&&self&&self.Object===Object&&self,root$a=freeGlobal$1||freeSelf$1||Function("return this")(),_root=root$a,root$9=_root,Symbol$5=root$9.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(et){var tt=hasOwnProperty$a.call(et,symToStringTag$1),rt=et[symToStringTag$1];try{et[symToStringTag$1]=void 0;var nt=!0}catch{}var lt=nativeObjectToString$1.call(et);return nt&&(tt?et[symToStringTag$1]=rt:delete et[symToStringTag$1]),lt}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$3(et){return nativeObjectToString.call(et)}var _objectToString=objectToString$3,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString$2=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(et){return et==null?et===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(et)?getRawTag(et):objectToString$2(et)}var _baseGetTag=baseGetTag$5;function isObjectLike$7(et){return et!=null&&typeof et=="object"}var isObjectLike_1=isObjectLike$7,baseGetTag$4=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$6(et){return typeof et=="symbol"||isObjectLike$6(et)&&baseGetTag$4(et)==symbolTag$2}var isSymbol_1=isSymbol$6,isArray$b=isArray_1,isSymbol$5=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(et,tt){if(isArray$b(et))return!1;var rt=typeof et;return rt=="number"||rt=="symbol"||rt=="boolean"||et==null||isSymbol$5(et)?!0:reIsPlainProp.test(et)||!reIsDeepProp.test(et)||tt!=null&&et in Object(tt)}var _isKey=isKey$3;function isObject$a(et){var tt=typeof et;return et!=null&&(tt=="object"||tt=="function")}var isObject_1=isObject$a,baseGetTag$3=_baseGetTag,isObject$9=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$4(et){if(!isObject$9(et))return!1;var tt=baseGetTag$3(et);return tt==funcTag$1||tt==genTag||tt==asyncTag||tt==proxyTag}var isFunction_1=isFunction$4,root$8=_root,coreJsData$1=root$8["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var et=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return et?"Symbol(src)_1."+et:""}();function isMasked$1(et){return!!maskSrcKey&&maskSrcKey in et}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(et){if(et!=null){try{return funcToString$1.call(et)}catch{}try{return et+""}catch{}}return""}var _toSource=toSource$2,isFunction$3=isFunction_1,isMasked=_isMasked,isObject$8=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$b=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(et){if(!isObject$8(et)||isMasked(et))return!1;var tt=isFunction$3(et)?reIsNative:reIsHostCtor;return tt.test(toSource$1(et))}var _baseIsNative=baseIsNative$1;function getValue$3(et,tt){return et==null?void 0:et[tt]}var _getValue=getValue$3,baseIsNative=_baseIsNative,getValue$2=_getValue;function getNative$7(et,tt){var rt=getValue$2(et,tt);return baseIsNative(rt)?rt:void 0}var _getNative=getNative$7,getNative$6=_getNative,nativeCreate$4=getNative$6(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(et){var tt=this.has(et)&&delete this.__data__[et];return this.size-=tt?1:0,tt}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(et){var tt=this.__data__;if(nativeCreate$2){var rt=tt[et];return rt===HASH_UNDEFINED$2?void 0:rt}return hasOwnProperty$8.call(tt,et)?tt[et]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(et){var tt=this.__data__;return nativeCreate$1?tt[et]!==void 0:hasOwnProperty$7.call(tt,et)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(et,tt){var rt=this.__data__;return this.size+=this.has(et)?0:1,rt[et]=nativeCreate&&tt===void 0?HASH_UNDEFINED$1:tt,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$9(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt<rt;){var nt=et[tt];this.set(nt[0],nt[1])}}Hash$9.prototype.clear=hashClear;Hash$9.prototype.delete=hashDelete;Hash$9.prototype.get=hashGet;Hash$9.prototype.has=hashHas;Hash$9.prototype.set=hashSet;var _Hash=Hash$9;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(et,tt){return et===tt||et!==et&&tt!==tt}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(et,tt){for(var rt=et.length;rt--;)if(eq$1(et[rt][0],tt))return rt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(et){var tt=this.__data__,rt=assocIndexOf$3(tt,et);if(rt<0)return!1;var nt=tt.length-1;return rt==nt?tt.pop():splice.call(tt,rt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(et){var tt=this.__data__,rt=assocIndexOf$2(tt,et);return rt<0?void 0:tt[rt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(et){return assocIndexOf$1(this.__data__,et)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(et,tt){var rt=this.__data__,nt=assocIndexOf(rt,et);return nt<0?(++this.size,rt.push([et,tt])):rt[nt][1]=tt,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt<rt;){var nt=et[tt];this.set(nt[0],nt[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$5=_getNative,root$7=_root,Map$5=getNative$5(root$7,"Map"),_Map=Map$5,Hash$8=_Hash,ListCache$3=_ListCache,Map$4=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash$8,map:new(Map$4||ListCache$3),string:new Hash$8}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(et){var tt=typeof et;return tt=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?et!=="__proto__":et===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(et,tt){var rt=et.__data__;return isKeyable(tt)?rt[typeof tt=="string"?"string":"hash"]:rt.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(et){var tt=getMapData$3(this,et).delete(et);return this.size-=tt?1:0,tt}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(et){return getMapData$2(this,et).get(et)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(et){return getMapData$1(this,et).has(et)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(et,tt){var rt=getMapData(this,et),nt=rt.size;return rt.set(et,tt),this.size+=rt.size==nt?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt<rt;){var nt=et[tt];this.set(nt[0],nt[1])}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype.delete=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(et,tt){if(typeof et!="function"||tt!=null&&typeof tt!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var rt=function(){var nt=arguments,lt=tt?tt.apply(this,nt):nt[0],ut=rt.cache;if(ut.has(lt))return ut.get(lt);var dt=et.apply(this,nt);return rt.cache=ut.set(lt,dt)||ut,dt};return rt.cache=new(memoize$1.Cache||MapCache$2),rt}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(et){var tt=memoize(et,function(nt){return rt.size===MAX_MEMOIZE_SIZE&&rt.clear(),nt}),rt=tt.cache;return tt}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(et){var tt=[];return et.charCodeAt(0)===46&&tt.push(""),et.replace(rePropName,function(rt,nt,lt,ut){tt.push(lt?ut.replace(reEscapeChar,"$1"):nt||rt)}),tt}),_stringToPath=stringToPath$1;function arrayMap$1(et,tt){for(var rt=-1,nt=et==null?0:et.length,lt=Array(nt);++rt<nt;)lt[rt]=tt(et[rt],rt,et);return lt}var _arrayMap=arrayMap$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$a=isArray_1,isSymbol$4=isSymbol_1,INFINITY$3=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$2(et){if(typeof et=="string")return et;if(isArray$a(et))return arrayMap(et,baseToString$2)+"";if(isSymbol$4(et))return symbolToString?symbolToString.call(et):"";var tt=et+"";return tt=="0"&&1/et==-INFINITY$3?"-0":tt}var _baseToString=baseToString$2,baseToString$1=_baseToString;function toString$8(et){return et==null?"":baseToString$1(et)}var toString_1=toString$8,isArray$9=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$7=toString_1;function castPath$2(et,tt){return isArray$9(et)?et:isKey$2(et,tt)?[et]:stringToPath(toString$7(et))}var _castPath=castPath$2,baseGetTag$2=_baseGetTag,isObjectLike$5=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(et){return isObjectLike$5(et)&&baseGetTag$2(et)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$4=isObjectLike_1,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty,propertyIsEnumerable$1=objectProto$8.propertyIsEnumerable,isArguments$3=baseIsArguments(function(){return arguments}())?baseIsArguments:function(et){return isObjectLike$4(et)&&hasOwnProperty$6.call(et,"callee")&&!propertyIsEnumerable$1.call(et,"callee")},isArguments_1=isArguments$3,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(et,tt){var rt=typeof et;return tt=tt??MAX_SAFE_INTEGER$1,!!tt&&(rt=="number"||rt!="symbol"&&reIsUint.test(et))&&et>-1&&et%1==0&&et<tt}var _isIndex=isIndex$2,MAX_SAFE_INTEGER=9007199254740991;function isLength$3(et){return typeof et=="number"&&et>-1&&et%1==0&&et<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,isSymbol$3=isSymbol_1,INFINITY$2=1/0;function toKey$4(et){if(typeof et=="string"||isSymbol$3(et))return et;var tt=et+"";return tt=="0"&&1/et==-INFINITY$2?"-0":tt}var _toKey=toKey$4,castPath$1=_castPath,isArguments$2=isArguments_1,isArray$8=isArray_1,isIndex$1=_isIndex,isLength$2=isLength_1,toKey$3=_toKey;function hasPath$2(et,tt,rt){tt=castPath$1(tt,et);for(var nt=-1,lt=tt.length,ut=!1;++nt<lt;){var dt=toKey$3(tt[nt]);if(!(ut=et!=null&&rt(et,dt)))break;et=et[dt]}return ut||++nt!=lt?ut:(lt=et==null?0:et.length,!!lt&&isLength$2(lt)&&isIndex$1(dt,lt)&&(isArray$8(et)||isArguments$2(et)))}var _hasPath=hasPath$2,baseHas=_baseHas,hasPath$1=_hasPath;function has(et,tt){return et!=null&&hasPath$1(et,tt,baseHas)}var has_1=has;const has$1=getDefaultExportFromCjs$1(has_1),isSchema=et=>et&&et.__isYupSchema__;class Condition{constructor(tt,rt){if(this.fn=void 0,this.refs=tt,this.refs=tt,typeof rt=="function"){this.fn=rt;return}if(!has$1(rt,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!rt.then&&!rt.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:nt,then:lt,otherwise:ut}=rt,dt=typeof nt=="function"?nt:(...pt)=>pt.every(ht=>ht===nt);this.fn=function(...pt){let ht=pt.pop(),mt=pt.pop(),xt=dt(...pt)?lt:ut;if(xt)return typeof xt=="function"?xt(mt):mt.concat(xt.resolve(ht))}}resolve(tt,rt){let nt=this.refs.map(ut=>ut.getValue(rt==null?void 0:rt.value,rt==null?void 0:rt.parent,rt==null?void 0:rt.context)),lt=this.fn.apply(tt,nt.concat(tt,rt));if(lt===void 0||lt===tt)return tt;if(!isSchema(lt))throw new TypeError("conditions must return a schema object");return lt.resolve(rt)}}function toArray$4(et){return et==null?[]:[].concat(et)}function _extends$4(){return _extends$4=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$4.apply(this,arguments)}let strReg=/\$\{\s*(\w+)\s*\}/g;class ValidationError extends Error{static formatError(tt,rt){const nt=rt.label||rt.path||"this";return nt!==rt.path&&(rt=_extends$4({},rt,{path:nt})),typeof tt=="string"?tt.replace(strReg,(lt,ut)=>printValue(rt[ut])):typeof tt=="function"?tt(rt):tt}static isError(tt){return tt&&tt.name==="ValidationError"}constructor(tt,rt,nt,lt){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=rt,this.path=nt,this.type=lt,this.errors=[],this.inner=[],toArray$4(tt).forEach(ut=>{ValidationError.isError(ut)?(this.errors.push(...ut.errors),this.inner=this.inner.concat(ut.inner.length?ut.inner:ut)):this.errors.push(ut)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}}const once=et=>{let tt=!1;return(...rt)=>{tt||(tt=!0,et(...rt))}};function runTests(et,tt){let{endEarly:rt,tests:nt,args:lt,value:ut,errors:dt,sort:pt,path:ht}=et,mt=once(tt),xt=nt.length;const Mt=[];if(dt=dt||[],!xt)return dt.length?mt(new ValidationError(dt,ut,ht)):mt(null,ut);for(let vt=0;vt<nt.length;vt++){const Ot=nt[vt];Ot(lt,function(Rt){if(Rt){if(!ValidationError.isError(Rt))return mt(Rt,ut);if(rt)return Rt.value=ut,mt(Rt,ut);Mt.push(Rt)}if(--xt<=0){if(Mt.length&&(pt&&Mt.sort(pt),dt.length&&Mt.push(...dt),dt=Mt),dt.length){mt(new ValidationError(dt,ut,ht),ut);return}mt(null,ut)}})}}var getNative$4=_getNative,defineProperty$2=function(){try{var et=getNative$4(Object,"defineProperty");return et({},"",{}),et}catch{}}(),_defineProperty$2=defineProperty$2,defineProperty$1=_defineProperty$2;function baseAssignValue$2(et,tt,rt){tt=="__proto__"&&defineProperty$1?defineProperty$1(et,tt,{configurable:!0,enumerable:!0,value:rt,writable:!0}):et[tt]=rt}var _baseAssignValue=baseAssignValue$2;function createBaseFor$1(et){return function(tt,rt,nt){for(var lt=-1,ut=Object(tt),dt=nt(tt),pt=dt.length;pt--;){var ht=dt[et?pt:++lt];if(rt(ut[ht],ht,ut)===!1)break}return tt}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1;function baseTimes$1(et,tt){for(var rt=-1,nt=Array(et);++rt<et;)nt[rt]=tt(rt);return nt}var _baseTimes=baseTimes$1,isBuffer$4={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$4.exports;(function(et,tt){var rt=_root,nt=stubFalse_1,lt=tt&&!tt.nodeType&&tt,ut=lt&&!0&&et&&!et.nodeType&&et,dt=ut&&ut.exports===lt,pt=dt?rt.Buffer:void 0,ht=pt?pt.isBuffer:void 0,mt=ht||nt;et.exports=mt})(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$3="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$3="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$3]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$3]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(et){return isObjectLike$3(et)&&isLength$1(et.length)&&!!typedArrayTags[baseGetTag$1(et)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(et){return function(tt){return et(tt)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(et,tt){var rt=_freeGlobal,nt=tt&&!tt.nodeType&&tt,lt=nt&&!0&&et&&!et.nodeType&&et,ut=lt&&lt.exports===nt,dt=ut&&rt.process,pt=function(){try{var ht=lt&&lt.require&&lt.require("util").types;return ht||dt&&dt.binding&&dt.binding("util")}catch{}}();et.exports=pt})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$4=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$4,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$3=isBufferExports,isIndex=_isIndex,isTypedArray$3=isTypedArray_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty;function arrayLikeKeys$1(et,tt){var rt=isArray$7(et),nt=!rt&&isArguments$1(et),lt=!rt&&!nt&&isBuffer$3(et),ut=!rt&&!nt&&!lt&&isTypedArray$3(et),dt=rt||nt||lt||ut,pt=dt?baseTimes(et.length,String):[],ht=pt.length;for(var mt in et)(tt||hasOwnProperty$5.call(et,mt))&&!(dt&&(mt=="length"||lt&&(mt=="offset"||mt=="parent")||ut&&(mt=="buffer"||mt=="byteLength"||mt=="byteOffset")||isIndex(mt,ht)))&&pt.push(mt);return pt}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$6=Object.prototype;function isPrototype$2(et){var tt=et&&et.constructor,rt=typeof tt=="function"&&tt.prototype||objectProto$6;return et===rt}var _isPrototype=isPrototype$2;function overArg$1(et,tt){return function(rt){return et(tt(rt))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function baseKeys$2(et){if(!isPrototype$1(et))return nativeKeys(et);var tt=[];for(var rt in Object(et))hasOwnProperty$4.call(et,rt)&&rt!="constructor"&&tt.push(rt);return tt}var _baseKeys=baseKeys$2,isFunction$2=isFunction_1,isLength=isLength_1;function isArrayLike$3(et){return et!=null&&isLength(et.length)&&!isFunction$2(et)}var isArrayLike_1=isArrayLike$3,arrayLikeKeys=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$4(et){return isArrayLike$2(et)?arrayLikeKeys(et):baseKeys$1(et)}var keys_1=keys$4,baseFor=_baseFor,keys$3=keys_1;function baseForOwn$2(et,tt){return et&&baseFor(et,tt,keys$3)}var _baseForOwn=baseForOwn$2,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(et){var tt=this.__data__,rt=tt.delete(et);return this.size=tt.size,rt}var _stackDelete=stackDelete$1;function stackGet$1(et){return this.__data__.get(et)}var _stackGet=stackGet$1;function stackHas$1(et){return this.__data__.has(et)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$3=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(et,tt){var rt=this.__data__;if(rt instanceof ListCache$1){var nt=rt.__data__;if(!Map$3||nt.length<LARGE_ARRAY_SIZE-1)return nt.push([et,tt]),this.size=++rt.size,this;rt=this.__data__=new MapCache$1(nt)}return rt.set(et,tt),this.size=rt.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$3(et){var tt=this.__data__=new ListCache(et);this.size=tt.size}Stack$3.prototype.clear=stackClear;Stack$3.prototype.delete=stackDelete;Stack$3.prototype.get=stackGet;Stack$3.prototype.has=stackHas;Stack$3.prototype.set=stackSet;var _Stack=Stack$3,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(et){return this.__data__.set(et,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(et){return this.__data__.has(et)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(et){var tt=-1,rt=et==null?0:et.length;for(this.__data__=new MapCache;++tt<rt;)this.add(et[tt])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(et,tt){for(var rt=-1,nt=et==null?0:et.length;++rt<nt;)if(tt(et[rt],rt,et))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(et,tt){return et.has(tt)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(et,tt,rt,nt,lt,ut){var dt=rt&COMPARE_PARTIAL_FLAG$5,pt=et.length,ht=tt.length;if(pt!=ht&&!(dt&&ht>pt))return!1;var mt=ut.get(et),xt=ut.get(tt);if(mt&&xt)return mt==tt&&xt==et;var Mt=-1,vt=!0,Ot=rt&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(ut.set(et,tt),ut.set(tt,et);++Mt<pt;){var At=et[Mt],Rt=tt[Mt];if(nt)var zt=dt?nt(Rt,At,Mt,tt,et,ut):nt(At,Rt,Mt,et,tt,ut);if(zt!==void 0){if(zt)continue;vt=!1;break}if(Ot){if(!arraySome(tt,function(Tt,Ct){if(!cacheHas(Ot,Ct)&&(At===Tt||lt(At,Tt,rt,nt,ut)))return Ot.push(Ct)})){vt=!1;break}}else if(!(At===Rt||lt(At,Rt,rt,nt,ut))){vt=!1;break}}return ut.delete(et),ut.delete(tt),vt}var _equalArrays=equalArrays$2,root$6=_root,Uint8Array$2=root$6.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(et){var tt=-1,rt=Array(et.size);return et.forEach(function(nt,lt){rt[++tt]=[lt,nt]}),rt}var _mapToArray=mapToArray$1;function setToArray$1(et){var tt=-1,rt=Array(et.size);return et.forEach(function(nt){rt[++tt]=nt}),rt}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$2="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag$2="[object Set]",stringTag="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(et,tt,rt,nt,lt,ut,dt){switch(rt){case dataViewTag$1:if(et.byteLength!=tt.byteLength||et.byteOffset!=tt.byteOffset)return!1;et=et.buffer,tt=tt.buffer;case arrayBufferTag:return!(et.byteLength!=tt.byteLength||!ut(new Uint8Array$1(et),new Uint8Array$1(tt)));case boolTag:case dateTag:case numberTag:return eq(+et,+tt);case errorTag:return et.name==tt.name&&et.message==tt.message;case regexpTag:case stringTag:return et==tt+"";case mapTag$2:var pt=mapToArray;case setTag$2:var ht=nt&COMPARE_PARTIAL_FLAG$4;if(pt||(pt=setToArray),et.size!=tt.size&&!ht)return!1;var mt=dt.get(et);if(mt)return mt==tt;nt|=COMPARE_UNORDERED_FLAG$2,dt.set(et,tt);var xt=equalArrays$1(pt(et),pt(tt),nt,lt,ut,dt);return dt.delete(et),xt;case symbolTag$1:if(symbolValueOf)return symbolValueOf.call(et)==symbolValueOf.call(tt)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(et,tt){for(var rt=-1,nt=tt.length,lt=et.length;++rt<nt;)et[lt+rt]=tt[rt];return et}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$6=isArray_1;function baseGetAllKeys$1(et,tt,rt){var nt=tt(et);return isArray$6(et)?nt:arrayPush(nt,rt(et))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(et,tt){for(var rt=-1,nt=et==null?0:et.length,lt=0,ut=[];++rt<nt;){var dt=et[rt];tt(dt,rt,et)&&(ut[lt++]=dt)}return ut}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$4=Object.prototype,propertyIsEnumerable=objectProto$4.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(et){return et==null?[]:(et=Object(et),arrayFilter(nativeGetSymbols(et),function(tt){return propertyIsEnumerable.call(et,tt)}))}:stubArray,_getSymbols=getSymbols$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(et){return baseGetAllKeys(et,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function equalObjects$1(et,tt,rt,nt,lt,ut){var dt=rt&COMPARE_PARTIAL_FLAG$3,pt=getAllKeys(et),ht=pt.length,mt=getAllKeys(tt),xt=mt.length;if(ht!=xt&&!dt)return!1;for(var Mt=ht;Mt--;){var vt=pt[Mt];if(!(dt?vt in tt:hasOwnProperty$3.call(tt,vt)))return!1}var Ot=ut.get(et),At=ut.get(tt);if(Ot&&At)return Ot==tt&&At==et;var Rt=!0;ut.set(et,tt),ut.set(tt,et);for(var zt=dt;++Mt<ht;){vt=pt[Mt];var Tt=et[vt],Ct=tt[vt];if(nt)var It=dt?nt(Ct,Tt,vt,tt,et,ut):nt(Tt,Ct,vt,et,tt,ut);if(!(It===void 0?Tt===Ct||lt(Tt,Ct,rt,nt,ut):It)){Rt=!1;break}zt||(zt=vt=="constructor")}if(Rt&&!zt){var Dt=et.constructor,kt=tt.constructor;Dt!=kt&&"constructor"in et&&"constructor"in tt&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof kt=="function"&&kt instanceof kt)&&(Rt=!1)}return ut.delete(et),ut.delete(tt),Rt}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$5=_root,DataView$2=getNative$3(root$5,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$4=_root,Promise$2=getNative$2(root$4,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$3=_root,Set$3=getNative$1(root$3,"Set"),_Set=Set$3,getNative=_getNative,root$2=_root,WeakMap$2=getNative(root$2,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$2=_Map,Promise$1=_Promise,Set$2=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag$1="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag;(DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag||Map$2&&getTag$3(new Map$2)!=mapTag$1||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$2&&getTag$3(new Set$2)!=setTag$1||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag)&&(getTag$3=function(et){var tt=baseGetTag(et),rt=tt==objectTag$1?et.constructor:void 0,nt=rt?toSource(rt):"";if(nt)switch(nt){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return tt});var _getTag=getTag$3,Stack$2=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag$2=_getTag,isArray$5=isArray_1,isBuffer$2=isBufferExports,isTypedArray$2=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function baseIsEqualDeep$1(et,tt,rt,nt,lt,ut){var dt=isArray$5(et),pt=isArray$5(tt),ht=dt?arrayTag:getTag$2(et),mt=pt?arrayTag:getTag$2(tt);ht=ht==argsTag?objectTag:ht,mt=mt==argsTag?objectTag:mt;var xt=ht==objectTag,Mt=mt==objectTag,vt=ht==mt;if(vt&&isBuffer$2(et)){if(!isBuffer$2(tt))return!1;dt=!0,xt=!1}if(vt&&!xt)return ut||(ut=new Stack$2),dt||isTypedArray$2(et)?equalArrays(et,tt,rt,nt,lt,ut):equalByTag(et,tt,ht,rt,nt,lt,ut);if(!(rt&COMPARE_PARTIAL_FLAG$2)){var Ot=xt&&hasOwnProperty$2.call(et,"__wrapped__"),At=Mt&&hasOwnProperty$2.call(tt,"__wrapped__");if(Ot||At){var Rt=Ot?et.value():et,zt=At?tt.value():tt;return ut||(ut=new Stack$2),lt(Rt,zt,rt,nt,ut)}}return vt?(ut||(ut=new Stack$2),equalObjects(et,tt,rt,nt,lt,ut)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$2=isObjectLike_1;function baseIsEqual$2(et,tt,rt,nt,lt){return et===tt?!0:et==null||tt==null||!isObjectLike$2(et)&&!isObjectLike$2(tt)?et!==et&&tt!==tt:baseIsEqualDeep(et,tt,rt,nt,baseIsEqual$2,lt)}var _baseIsEqual=baseIsEqual$2,Stack$1=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(et,tt,rt,nt){var lt=rt.length,ut=lt,dt=!nt;if(et==null)return!ut;for(et=Object(et);lt--;){var pt=rt[lt];if(dt&&pt[2]?pt[1]!==et[pt[0]]:!(pt[0]in et))return!1}for(;++lt<ut;){pt=rt[lt];var ht=pt[0],mt=et[ht],xt=pt[1];if(dt&&pt[2]){if(mt===void 0&&!(ht in et))return!1}else{var Mt=new Stack$1;if(nt)var vt=nt(mt,xt,ht,et,tt,Mt);if(!(vt===void 0?baseIsEqual$1(xt,mt,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,nt,Mt):vt))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$7=isObject_1;function isStrictComparable$2(et){return et===et&&!isObject$7(et)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(et){for(var tt=keys$1(et),rt=tt.length;rt--;){var nt=tt[rt],lt=et[nt];tt[rt]=[nt,lt,isStrictComparable$1(lt)]}return tt}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(et,tt){return function(rt){return rt==null?!1:rt[et]===tt&&(tt!==void 0||et in Object(rt))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(et){var tt=getMatchData(et);return tt.length==1&&tt[0][2]?matchesStrictComparable$1(tt[0][0],tt[0][1]):function(rt){return rt===et||baseIsMatch(rt,et,tt)}}var _baseMatches=baseMatches$1,castPath=_castPath,toKey$2=_toKey;function baseGet$2(et,tt){tt=castPath(tt,et);for(var rt=0,nt=tt.length;et!=null&&rt<nt;)et=et[toKey$2(tt[rt++])];return rt&&rt==nt?et:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$3(et,tt,rt){var nt=et==null?void 0:baseGet$1(et,tt);return nt===void 0?rt:nt}var get_1=get$3;function baseHasIn$1(et,tt){return et!=null&&tt in Object(et)}var _baseHasIn=baseHasIn$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(et,tt){return et!=null&&hasPath(et,tt,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get$2=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(et,tt){return isKey$1(et)&&isStrictComparable(tt)?matchesStrictComparable(toKey$1(et),tt):function(rt){var nt=get$2(rt,et);return nt===void 0&&nt===tt?hasIn(rt,et):baseIsEqual(tt,nt,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(et){return et}var identity_1=identity$1;function baseProperty$1(et){return function(tt){return tt==null?void 0:tt[et]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(et){return function(tt){return baseGet(tt,et)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(et){return isKey(et)?baseProperty(toKey(et)):basePropertyDeep(et)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray$4=isArray_1,property=property_1;function baseIteratee$4(et){return typeof et=="function"?et:et==null?identity:typeof et=="object"?isArray$4(et)?baseMatchesProperty(et[0],et[1]):baseMatches(et):property(et)}var _baseIteratee=baseIteratee$4,baseAssignValue$1=_baseAssignValue,baseForOwn$1=_baseForOwn,baseIteratee$3=_baseIteratee;function mapValues$1(et,tt){var rt={};return tt=baseIteratee$3(tt),baseForOwn$1(et,function(nt,lt,ut){baseAssignValue$1(rt,lt,tt(nt,lt,ut))}),rt}var mapValues_1=mapValues$1;const mapValues$2=getDefaultExportFromCjs$1(mapValues_1);function Cache(et){this._maxSize=et,this.clear()}Cache.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Cache.prototype.get=function(et){return this._values[et]};Cache.prototype.set=function(et,tt){return this._size>=this._maxSize&&this.clear(),et in this._values||this._size++,this._values[et]=tt};var SPLIT_REGEX=/[^.^\]^[]+|(?=\[\]|\.\.)/g,DIGIT_REGEX=/^\d+$/,LEAD_DIGIT_REGEX=/^\d/,SPEC_CHAR_REGEX=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,CLEAN_QUOTES_REGEX=/^\s*(['"]?)(.*?)(\1)\s*$/,MAX_CACHE_SIZE=512,pathCache=new Cache(MAX_CACHE_SIZE),setCache=new Cache(MAX_CACHE_SIZE),getCache=new Cache(MAX_CACHE_SIZE),propertyExpr={Cache,split:split$1,normalizePath,setter:function(et){var tt=normalizePath(et);return setCache.get(et)||setCache.set(et,function(nt,lt){for(var ut=0,dt=tt.length,pt=nt;ut<dt-1;){var ht=tt[ut];if(ht==="__proto__"||ht==="constructor"||ht==="prototype")return nt;pt=pt[tt[ut++]]}pt[tt[ut]]=lt})},getter:function(et,tt){var rt=normalizePath(et);return getCache.get(et)||getCache.set(et,function(lt){for(var ut=0,dt=rt.length;ut<dt;)if(lt!=null||!tt)lt=lt[rt[ut++]];else return;return lt})},join:function(et){return et.reduce(function(tt,rt){return tt+(isQuoted(rt)||DIGIT_REGEX.test(rt)?"["+rt+"]":(tt?".":"")+rt)},"")},forEach:function(et,tt,rt){forEach$2(Array.isArray(et)?et:split$1(et),tt,rt)}};function normalizePath(et){return pathCache.get(et)||pathCache.set(et,split$1(et).map(function(tt){return tt.replace(CLEAN_QUOTES_REGEX,"$2")}))}function split$1(et){return et.match(SPLIT_REGEX)||[""]}function forEach$2(et,tt,rt){var nt=et.length,lt,ut,dt,pt;for(ut=0;ut<nt;ut++)lt=et[ut],lt&&(shouldBeQuoted(lt)&&(lt='"'+lt+'"'),pt=isQuoted(lt),dt=!pt&&/^\d+$/.test(lt),tt.call(rt,lt,pt,dt,ut,et))}function isQuoted(et){return typeof et=="string"&&et&&["'",'"'].indexOf(et.charAt(0))!==-1}function hasLeadingNumber(et){return et.match(LEAD_DIGIT_REGEX)&&!et.match(DIGIT_REGEX)}function hasSpecialChars(et){return SPEC_CHAR_REGEX.test(et)}function shouldBeQuoted(et){return!isQuoted(et)&&(hasLeadingNumber(et)||hasSpecialChars(et))}const prefixes={context:"$",value:"."};class Reference{constructor(tt,rt={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof tt!="string")throw new TypeError("ref must be a string, got: "+tt);if(this.key=tt.trim(),tt==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===prefixes.context,this.isValue=this.key[0]===prefixes.value,this.isSibling=!this.isContext&&!this.isValue;let nt=this.isContext?prefixes.context:this.isValue?prefixes.value:"";this.path=this.key.slice(nt.length),this.getter=this.path&&propertyExpr.getter(this.path,!0),this.map=rt.map}getValue(tt,rt,nt){let lt=this.isContext?nt:this.isValue?tt:rt;return this.getter&&(lt=this.getter(lt||{})),this.map&&(lt=this.map(lt)),lt}cast(tt,rt){return this.getValue(tt,rt==null?void 0:rt.parent,rt==null?void 0:rt.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(tt){return tt&&tt.__isYupRef}}Reference.prototype.__isYupRef=!0;function _extends$3(){return _extends$3=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$3.apply(this,arguments)}function _objectWithoutPropertiesLoose$1(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}function createValidation(et){function tt(rt,nt){let{value:lt,path:ut="",label:dt,options:pt,originalValue:ht,sync:mt}=rt,xt=_objectWithoutPropertiesLoose$1(rt,["value","path","label","options","originalValue","sync"]);const{name:Mt,test:vt,params:Ot,message:At}=et;let{parent:Rt,context:zt}=pt;function Tt(qt){return Reference.isRef(qt)?qt.getValue(lt,Rt,zt):qt}function Ct(qt={}){const Nt=mapValues$2(_extends$3({value:lt,originalValue:ht,label:dt,path:qt.path||ut},Ot,qt.params),Tt),Yt=new ValidationError(ValidationError.formatError(qt.message||At,Nt),lt,Nt.path,qt.type||Mt);return Yt.params=Nt,Yt}let It=_extends$3({path:ut,parent:Rt,type:Mt,createError:Ct,resolve:Tt,options:pt,originalValue:ht},xt);if(!mt){try{Promise.resolve(vt.call(It,lt,It)).then(qt=>{ValidationError.isError(qt)?nt(qt):qt?nt(null,qt):nt(Ct())}).catch(nt)}catch(qt){nt(qt)}return}let Dt;try{var kt;if(Dt=vt.call(It,lt,It),typeof((kt=Dt)==null?void 0:kt.then)=="function")throw new Error(`Validation test of type: "${It.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(qt){nt(qt);return}ValidationError.isError(Dt)?nt(Dt):Dt?nt(null,Dt):nt(Ct())}return tt.OPTIONS=et,tt}let trim$1=et=>et.substr(0,et.length-1).substr(1);function getIn(et,tt,rt,nt=rt){let lt,ut,dt;return tt?(propertyExpr.forEach(tt,(pt,ht,mt)=>{let xt=ht?trim$1(pt):pt;if(et=et.resolve({context:nt,parent:lt,value:rt}),et.innerType){let Mt=mt?parseInt(xt,10):0;if(rt&&Mt>=rt.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${pt}, in the path: ${tt}. because there is no value at that index. `);lt=rt,rt=rt&&rt[Mt],et=et.innerType}if(!mt){if(!et.fields||!et.fields[xt])throw new Error(`The schema does not contain the path: ${tt}. (failed at: ${dt} which is a type: "${et._type}")`);lt=rt,rt=rt&&rt[xt],et=et.fields[xt]}ut=xt,dt=ht?"["+pt+"]":"."+pt}),{schema:et,parent:lt,parentPath:ut}):{parent:lt,parentPath:tt,schema:et}}class ReferenceSet{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const tt=[];for(const rt of this.list)tt.push(rt);for(const[,rt]of this.refs)tt.push(rt.describe());return tt}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(tt){return this.toArray().reduce((rt,nt)=>rt.concat(Reference.isRef(nt)?tt(nt):nt),[])}add(tt){Reference.isRef(tt)?this.refs.set(tt.key,tt):this.list.add(tt)}delete(tt){Reference.isRef(tt)?this.refs.delete(tt.key):this.list.delete(tt)}clone(){const tt=new ReferenceSet;return tt.list=new Set(this.list),tt.refs=new Map(this.refs),tt}merge(tt,rt){const nt=this.clone();return tt.list.forEach(lt=>nt.add(lt)),tt.refs.forEach(lt=>nt.add(lt)),rt.list.forEach(lt=>nt.delete(lt)),rt.refs.forEach(lt=>nt.delete(lt)),nt}}function _extends$2(){return _extends$2=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$2.apply(this,arguments)}class BaseSchema{constructor(tt){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new ReferenceSet,this._blacklist=new ReferenceSet,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(mixed.notType)}),this.type=(tt==null?void 0:tt.type)||"mixed",this.spec=_extends$2({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},tt==null?void 0:tt.spec)}get _type(){return this.type}_typeCheck(tt){return!0}clone(tt){if(this._mutate)return tt&&Object.assign(this.spec,tt),this;const rt=Object.create(Object.getPrototypeOf(this));return rt.type=this.type,rt._typeError=this._typeError,rt._whitelistError=this._whitelistError,rt._blacklistError=this._blacklistError,rt._whitelist=this._whitelist.clone(),rt._blacklist=this._blacklist.clone(),rt.exclusiveTests=_extends$2({},this.exclusiveTests),rt.deps=[...this.deps],rt.conditions=[...this.conditions],rt.tests=[...this.tests],rt.transforms=[...this.transforms],rt.spec=clone(_extends$2({},this.spec,tt)),rt}label(tt){let rt=this.clone();return rt.spec.label=tt,rt}meta(...tt){if(tt.length===0)return this.spec.meta;let rt=this.clone();return rt.spec.meta=Object.assign(rt.spec.meta||{},tt[0]),rt}withMutation(tt){let rt=this._mutate;this._mutate=!0;let nt=tt(this);return this._mutate=rt,nt}concat(tt){if(!tt||tt===this)return this;if(tt.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${tt.type}`);let rt=this,nt=tt.clone();const lt=_extends$2({},rt.spec,nt.spec);return nt.spec=lt,nt._typeError||(nt._typeError=rt._typeError),nt._whitelistError||(nt._whitelistError=rt._whitelistError),nt._blacklistError||(nt._blacklistError=rt._blacklistError),nt._whitelist=rt._whitelist.merge(tt._whitelist,tt._blacklist),nt._blacklist=rt._blacklist.merge(tt._blacklist,tt._whitelist),nt.tests=rt.tests,nt.exclusiveTests=rt.exclusiveTests,nt.withMutation(ut=>{tt.tests.forEach(dt=>{ut.test(dt.OPTIONS)})}),nt.transforms=[...rt.transforms,...nt.transforms],nt}isType(tt){return this.spec.nullable&&tt===null?!0:this._typeCheck(tt)}resolve(tt){let rt=this;if(rt.conditions.length){let nt=rt.conditions;rt=rt.clone(),rt.conditions=[],rt=nt.reduce((lt,ut)=>ut.resolve(lt,tt),rt),rt=rt.resolve(tt)}return rt}cast(tt,rt={}){let nt=this.resolve(_extends$2({value:tt},rt)),lt=nt._cast(tt,rt);if(tt!==void 0&&rt.assert!==!1&&nt.isType(lt)!==!0){let ut=printValue(tt),dt=printValue(lt);throw new TypeError(`The value of ${rt.path||"field"} could not be cast to a value that satisfies the schema type: "${nt._type}". 

attempted value: ${ut} 
`+(dt!==ut?`result of cast: ${dt}`:""))}return lt}_cast(tt,rt){let nt=tt===void 0?tt:this.transforms.reduce((lt,ut)=>ut.call(this,lt,tt,this),tt);return nt===void 0&&(nt=this.getDefault()),nt}_validate(tt,rt={},nt){let{sync:lt,path:ut,from:dt=[],originalValue:pt=tt,strict:ht=this.spec.strict,abortEarly:mt=this.spec.abortEarly}=rt,xt=tt;ht||(xt=this._cast(xt,_extends$2({assert:!1},rt)));let Mt={value:xt,path:ut,options:rt,originalValue:pt,schema:this,label:this.spec.label,sync:lt,from:dt},vt=[];this._typeError&&vt.push(this._typeError);let Ot=[];this._whitelistError&&Ot.push(this._whitelistError),this._blacklistError&&Ot.push(this._blacklistError),runTests({args:Mt,value:xt,path:ut,sync:lt,tests:vt,endEarly:mt},At=>{if(At)return void nt(At,xt);runTests({tests:this.tests.concat(Ot),args:Mt,path:ut,sync:lt,value:xt,endEarly:mt},nt)})}validate(tt,rt,nt){let lt=this.resolve(_extends$2({},rt,{value:tt}));return typeof nt=="function"?lt._validate(tt,rt,nt):new Promise((ut,dt)=>lt._validate(tt,rt,(pt,ht)=>{pt?dt(pt):ut(ht)}))}validateSync(tt,rt){let nt=this.resolve(_extends$2({},rt,{value:tt})),lt;return nt._validate(tt,_extends$2({},rt,{sync:!0}),(ut,dt)=>{if(ut)throw ut;lt=dt}),lt}isValid(tt,rt){return this.validate(tt,rt).then(()=>!0,nt=>{if(ValidationError.isError(nt))return!1;throw nt})}isValidSync(tt,rt){try{return this.validateSync(tt,rt),!0}catch(nt){if(ValidationError.isError(nt))return!1;throw nt}}_getDefault(){let tt=this.spec.default;return tt==null?tt:typeof tt=="function"?tt.call(this):clone(tt)}getDefault(tt){return this.resolve(tt||{})._getDefault()}default(tt){return arguments.length===0?this._getDefault():this.clone({default:tt})}strict(tt=!0){let rt=this.clone();return rt.spec.strict=tt,rt}_isPresent(tt){return tt!=null}defined(tt=mixed.defined){return this.test({message:tt,name:"defined",exclusive:!0,test(rt){return rt!==void 0}})}required(tt=mixed.required){return this.clone({presence:"required"}).withMutation(rt=>rt.test({message:tt,name:"required",exclusive:!0,test(nt){return this.schema._isPresent(nt)}}))}notRequired(){let tt=this.clone({presence:"optional"});return tt.tests=tt.tests.filter(rt=>rt.OPTIONS.name!=="required"),tt}nullable(tt=!0){return this.clone({nullable:tt!==!1})}transform(tt){let rt=this.clone();return rt.transforms.push(tt),rt}test(...tt){let rt;if(tt.length===1?typeof tt[0]=="function"?rt={test:tt[0]}:rt=tt[0]:tt.length===2?rt={name:tt[0],test:tt[1]}:rt={name:tt[0],message:tt[1],test:tt[2]},rt.message===void 0&&(rt.message=mixed.default),typeof rt.test!="function")throw new TypeError("`test` is a required parameters");let nt=this.clone(),lt=createValidation(rt),ut=rt.exclusive||rt.name&&nt.exclusiveTests[rt.name]===!0;if(rt.exclusive&&!rt.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return rt.name&&(nt.exclusiveTests[rt.name]=!!rt.exclusive),nt.tests=nt.tests.filter(dt=>!(dt.OPTIONS.name===rt.name&&(ut||dt.OPTIONS.test===lt.OPTIONS.test))),nt.tests.push(lt),nt}when(tt,rt){!Array.isArray(tt)&&typeof tt!="string"&&(rt=tt,tt=".");let nt=this.clone(),lt=toArray$4(tt).map(ut=>new Reference(ut));return lt.forEach(ut=>{ut.isSibling&&nt.deps.push(ut.key)}),nt.conditions.push(new Condition(lt,rt)),nt}typeError(tt){let rt=this.clone();return rt._typeError=createValidation({message:tt,name:"typeError",test(nt){return nt!==void 0&&!this.schema.isType(nt)?this.createError({params:{type:this.schema._type}}):!0}}),rt}oneOf(tt,rt=mixed.oneOf){let nt=this.clone();return tt.forEach(lt=>{nt._whitelist.add(lt),nt._blacklist.delete(lt)}),nt._whitelistError=createValidation({message:rt,name:"oneOf",test(lt){if(lt===void 0)return!0;let ut=this.schema._whitelist,dt=ut.resolveAll(this.resolve);return dt.includes(lt)?!0:this.createError({params:{values:ut.toArray().join(", "),resolved:dt}})}}),nt}notOneOf(tt,rt=mixed.notOneOf){let nt=this.clone();return tt.forEach(lt=>{nt._blacklist.add(lt),nt._whitelist.delete(lt)}),nt._blacklistError=createValidation({message:rt,name:"notOneOf",test(lt){let ut=this.schema._blacklist,dt=ut.resolveAll(this.resolve);return dt.includes(lt)?this.createError({params:{values:ut.toArray().join(", "),resolved:dt}}):!0}}),nt}strip(tt=!0){let rt=this.clone();return rt.spec.strip=tt,rt}describe(){const tt=this.clone(),{label:rt,meta:nt}=tt.spec;return{meta:nt,label:rt,type:tt.type,oneOf:tt._whitelist.describe(),notOneOf:tt._blacklist.describe(),tests:tt.tests.map(ut=>({name:ut.OPTIONS.name,params:ut.OPTIONS.params})).filter((ut,dt,pt)=>pt.findIndex(ht=>ht.name===ut.name)===dt)}}}BaseSchema.prototype.__isYupSchema__=!0;for(const et of["validate","validateSync"])BaseSchema.prototype[`${et}At`]=function(tt,rt,nt={}){const{parent:lt,parentPath:ut,schema:dt}=getIn(this,tt,rt,nt.context);return dt[et](lt&&lt[ut],_extends$2({},nt,{parent:lt,path:tt}))};for(const et of["equals","is"])BaseSchema.prototype[et]=BaseSchema.prototype.oneOf;for(const et of["not","nope"])BaseSchema.prototype[et]=BaseSchema.prototype.notOneOf;BaseSchema.prototype.optional=BaseSchema.prototype.notRequired;const Mixed=BaseSchema;Mixed.prototype;const isAbsent=et=>et==null;function create$7(){return new BooleanSchema}class BooleanSchema extends BaseSchema{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(tt){if(!this.isType(tt)){if(/^(true|1)$/i.test(String(tt)))return!0;if(/^(false|0)$/i.test(String(tt)))return!1}return tt})})}_typeCheck(tt){return tt instanceof Boolean&&(tt=tt.valueOf()),typeof tt=="boolean"}isTrue(tt=boolean.isValue){return this.test({message:tt,name:"is-value",exclusive:!0,params:{value:"true"},test(rt){return isAbsent(rt)||rt===!0}})}isFalse(tt=boolean.isValue){return this.test({message:tt,name:"is-value",exclusive:!0,params:{value:"false"},test(rt){return isAbsent(rt)||rt===!1}})}}create$7.prototype=BooleanSchema.prototype;let rEmail=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,rUrl=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,rUUID=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,isTrimmed=et=>isAbsent(et)||et===et.trim(),objStringTag={}.toString();function create$6(){return new StringSchema}class StringSchema extends BaseSchema{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(tt){if(this.isType(tt)||Array.isArray(tt))return tt;const rt=tt!=null&&tt.toString?tt.toString():tt;return rt===objStringTag?tt:rt})})}_typeCheck(tt){return tt instanceof String&&(tt=tt.valueOf()),typeof tt=="string"}_isPresent(tt){return super._isPresent(tt)&&!!tt.length}length(tt,rt=string.length){return this.test({message:rt,name:"length",exclusive:!0,params:{length:tt},test(nt){return isAbsent(nt)||nt.length===this.resolve(tt)}})}min(tt,rt=string.min){return this.test({message:rt,name:"min",exclusive:!0,params:{min:tt},test(nt){return isAbsent(nt)||nt.length>=this.resolve(tt)}})}max(tt,rt=string.max){return this.test({name:"max",exclusive:!0,message:rt,params:{max:tt},test(nt){return isAbsent(nt)||nt.length<=this.resolve(tt)}})}matches(tt,rt){let nt=!1,lt,ut;return rt&&(typeof rt=="object"?{excludeEmptyString:nt=!1,message:lt,name:ut}=rt:lt=rt),this.test({name:ut||"matches",message:lt||string.matches,params:{regex:tt},test:dt=>isAbsent(dt)||dt===""&&nt||dt.search(tt)!==-1})}email(tt=string.email){return this.matches(rEmail,{name:"email",message:tt,excludeEmptyString:!0})}url(tt=string.url){return this.matches(rUrl,{name:"url",message:tt,excludeEmptyString:!0})}uuid(tt=string.uuid){return this.matches(rUUID,{name:"uuid",message:tt,excludeEmptyString:!1})}ensure(){return this.default("").transform(tt=>tt===null?"":tt)}trim(tt=string.trim){return this.transform(rt=>rt!=null?rt.trim():rt).test({message:tt,name:"trim",test:isTrimmed})}lowercase(tt=string.lowercase){return this.transform(rt=>isAbsent(rt)?rt:rt.toLowerCase()).test({message:tt,name:"string_case",exclusive:!0,test:rt=>isAbsent(rt)||rt===rt.toLowerCase()})}uppercase(tt=string.uppercase){return this.transform(rt=>isAbsent(rt)?rt:rt.toUpperCase()).test({message:tt,name:"string_case",exclusive:!0,test:rt=>isAbsent(rt)||rt===rt.toUpperCase()})}}create$6.prototype=StringSchema.prototype;let isNaN$1=et=>et!=+et;function create$5(){return new NumberSchema}class NumberSchema extends BaseSchema{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(tt){let rt=tt;if(typeof rt=="string"){if(rt=rt.replace(/\s/g,""),rt==="")return NaN;rt=+rt}return this.isType(rt)?rt:parseFloat(rt)})})}_typeCheck(tt){return tt instanceof Number&&(tt=tt.valueOf()),typeof tt=="number"&&!isNaN$1(tt)}min(tt,rt=number.min){return this.test({message:rt,name:"min",exclusive:!0,params:{min:tt},test(nt){return isAbsent(nt)||nt>=this.resolve(tt)}})}max(tt,rt=number.max){return this.test({message:rt,name:"max",exclusive:!0,params:{max:tt},test(nt){return isAbsent(nt)||nt<=this.resolve(tt)}})}lessThan(tt,rt=number.lessThan){return this.test({message:rt,name:"max",exclusive:!0,params:{less:tt},test(nt){return isAbsent(nt)||nt<this.resolve(tt)}})}moreThan(tt,rt=number.moreThan){return this.test({message:rt,name:"min",exclusive:!0,params:{more:tt},test(nt){return isAbsent(nt)||nt>this.resolve(tt)}})}positive(tt=number.positive){return this.moreThan(0,tt)}negative(tt=number.negative){return this.lessThan(0,tt)}integer(tt=number.integer){return this.test({name:"integer",message:tt,test:rt=>isAbsent(rt)||Number.isInteger(rt)})}truncate(){return this.transform(tt=>isAbsent(tt)?tt:tt|0)}round(tt){var rt;let nt=["ceil","floor","round","trunc"];if(tt=((rt=tt)==null?void 0:rt.toLowerCase())||"round",tt==="trunc")return this.truncate();if(nt.indexOf(tt.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+nt.join(", "));return this.transform(lt=>isAbsent(lt)?lt:Math[tt](lt))}}create$5.prototype=NumberSchema.prototype;var isoReg=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function parseIsoDate(et){var tt=[1,4,5,6,7,10,11],rt=0,nt,lt;if(lt=isoReg.exec(et)){for(var ut=0,dt;dt=tt[ut];++ut)lt[dt]=+lt[dt]||0;lt[2]=(+lt[2]||1)-1,lt[3]=+lt[3]||1,lt[7]=lt[7]?String(lt[7]).substr(0,3):0,(lt[8]===void 0||lt[8]==="")&&(lt[9]===void 0||lt[9]==="")?nt=+new Date(lt[1],lt[2],lt[3],lt[4],lt[5],lt[6],lt[7]):(lt[8]!=="Z"&&lt[9]!==void 0&&(rt=lt[10]*60+lt[11],lt[9]==="+"&&(rt=0-rt)),nt=Date.UTC(lt[1],lt[2],lt[3],lt[4],lt[5]+rt,lt[6],lt[7]))}else nt=Date.parse?Date.parse(et):NaN;return nt}let invalidDate=new Date(""),isDate$2=et=>Object.prototype.toString.call(et)==="[object Date]";function create$4(){return new DateSchema}class DateSchema extends BaseSchema{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(tt){return this.isType(tt)?tt:(tt=parseIsoDate(tt),isNaN(tt)?invalidDate:new Date(tt))})})}_typeCheck(tt){return isDate$2(tt)&&!isNaN(tt.getTime())}prepareParam(tt,rt){let nt;if(Reference.isRef(tt))nt=tt;else{let lt=this.cast(tt);if(!this._typeCheck(lt))throw new TypeError(`\`${rt}\` must be a Date or a value that can be \`cast()\` to a Date`);nt=lt}return nt}min(tt,rt=date.min){let nt=this.prepareParam(tt,"min");return this.test({message:rt,name:"min",exclusive:!0,params:{min:tt},test(lt){return isAbsent(lt)||lt>=this.resolve(nt)}})}max(tt,rt=date.max){let nt=this.prepareParam(tt,"max");return this.test({message:rt,name:"max",exclusive:!0,params:{max:tt},test(lt){return isAbsent(lt)||lt<=this.resolve(nt)}})}}DateSchema.INVALID_DATE=invalidDate;create$4.prototype=DateSchema.prototype;create$4.INVALID_DATE=invalidDate;function arrayReduce$1(et,tt,rt,nt){var lt=-1,ut=et==null?0:et.length;for(nt&&ut&&(rt=et[++lt]);++lt<ut;)rt=tt(rt,et[lt],lt,et);return rt}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(et){return function(tt){return et==null?void 0:et[tt]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$6=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsCombo$2="["+rsComboRange$3+"]",reComboMark=RegExp(rsCombo$2,"g");function deburr$1(et){return et=toString$6(et),et&&et.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(et){return et.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(et){return reHasUnicodeWord.test(et)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange$2="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo$1="["+rsComboRange$2+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange$2+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$1+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$2+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ$2="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$2+"]?",rsOptJoin$1="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsEmoji="(?:"+[rsDingbat,rsRegional$1,rsSurrPair$1].join("|")+")"+rsSeq$1,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(et){return et.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$5=toString_1,unicodeWords=_unicodeWords;function words$1(et,tt,rt){return et=toString$5(et),tt=rt?void 0:tt,tt===void 0?hasUnicodeWord(et)?unicodeWords(et):asciiWords(et):et.match(tt)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$2(et){return function(tt){return arrayReduce(words(deburr(tt).replace(reApos,"")),et,"")}}var _createCompounder=createCompounder$2,createCompounder$1=_createCompounder,snakeCase=createCompounder$1(function(et,tt,rt){return et+(rt?"_":"")+tt.toLowerCase()}),snakeCase_1=snakeCase;const snakeCase$1=getDefaultExportFromCjs$1(snakeCase_1);function baseSlice$1(et,tt,rt){var nt=-1,lt=et.length;tt<0&&(tt=-tt>lt?0:lt+tt),rt=rt>lt?lt:rt,rt<0&&(rt+=lt),lt=tt>rt?0:rt-tt>>>0,tt>>>=0;for(var ut=Array(lt);++nt<lt;)ut[nt]=et[nt+tt];return ut}var _baseSlice=baseSlice$1,baseSlice=_baseSlice;function castSlice$1(et,tt,rt){var nt=et.length;return rt=rt===void 0?nt:rt,!tt&&rt>=nt?et:baseSlice(et,tt,rt)}var _castSlice=castSlice$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f",rsZWJ$1="\\u200d",reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$1+rsVarRange$1+"]");function hasUnicode$2(et){return reHasUnicode.test(et)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(et){return et.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeToArray$1(et){return et.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(et){return hasUnicode$1(et)?unicodeToArray(et):asciiToArray(et)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$4=toString_1;function createCaseFirst$1(et){return function(tt){tt=toString$4(tt);var rt=hasUnicode(tt)?stringToArray(tt):void 0,nt=rt?rt[0]:tt.charAt(0),lt=rt?castSlice(rt,1).join(""):tt.slice(1);return nt[et]()+lt}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$3=toString_1,upperFirst=upperFirst_1;function capitalize$1(et){return upperFirst(toString$3(et).toLowerCase())}var capitalize_1=capitalize$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(et,tt,rt){return tt=tt.toLowerCase(),et+(rt?capitalize(tt):tt)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs$1(camelCase_1);var baseAssignValue=_baseAssignValue,baseForOwn=_baseForOwn,baseIteratee$2=_baseIteratee;function mapKeys(et,tt){var rt={};return tt=baseIteratee$2(tt),baseForOwn(et,function(nt,lt,ut){baseAssignValue(rt,tt(nt,lt,ut),nt)}),rt}var mapKeys_1=mapKeys;const mapKeys$1=getDefaultExportFromCjs$1(mapKeys_1);var toposort$2={exports:{}};toposort$2.exports=function(et){return toposort(uniqueNodes(et),et)};toposort$2.exports.array=toposort;function toposort(et,tt){var rt=et.length,nt=new Array(rt),lt={},ut=rt,dt=makeOutgoingEdges(tt),pt=makeNodesHash(et);for(tt.forEach(function(mt){if(!pt.has(mt[0])||!pt.has(mt[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});ut--;)lt[ut]||ht(et[ut],ut,new Set);return nt;function ht(mt,xt,Mt){if(Mt.has(mt)){var vt;try{vt=", node was:"+JSON.stringify(mt)}catch{vt=""}throw new Error("Cyclic dependency"+vt)}if(!pt.has(mt))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(mt));if(!lt[xt]){lt[xt]=!0;var Ot=dt.get(mt)||new Set;if(Ot=Array.from(Ot),xt=Ot.length){Mt.add(mt);do{var At=Ot[--xt];ht(At,pt.get(At),Mt)}while(xt);Mt.delete(mt)}nt[--rt]=mt}}}function uniqueNodes(et){for(var tt=new Set,rt=0,nt=et.length;rt<nt;rt++){var lt=et[rt];tt.add(lt[0]),tt.add(lt[1])}return Array.from(tt)}function makeOutgoingEdges(et){for(var tt=new Map,rt=0,nt=et.length;rt<nt;rt++){var lt=et[rt];tt.has(lt[0])||tt.set(lt[0],new Set),tt.has(lt[1])||tt.set(lt[1],new Set),tt.get(lt[0]).add(lt[1])}return tt}function makeNodesHash(et){for(var tt=new Map,rt=0,nt=et.length;rt<nt;rt++)tt.set(et[rt],rt);return tt}var toposortExports=toposort$2.exports;const toposort$1=getDefaultExportFromCjs$1(toposortExports);function sortFields(et,tt=[]){let rt=[],nt=new Set,lt=new Set(tt.map(([dt,pt])=>`${dt}-${pt}`));function ut(dt,pt){let ht=propertyExpr.split(dt)[0];nt.add(ht),lt.has(`${pt}-${ht}`)||rt.push([pt,ht])}for(const dt in et)if(has$1(et,dt)){let pt=et[dt];nt.add(dt),Reference.isRef(pt)&&pt.isSibling?ut(pt.path,dt):isSchema(pt)&&"deps"in pt&&pt.deps.forEach(ht=>ut(ht,dt))}return toposort$1.array(Array.from(nt),rt).reverse()}function findIndex$1(et,tt){let rt=1/0;return et.some((nt,lt)=>{var ut;if(((ut=tt.path)==null?void 0:ut.indexOf(nt))!==-1)return rt=lt,!0}),rt}function sortByKeyOrder(et){return(tt,rt)=>findIndex$1(et,tt)-findIndex$1(et,rt)}function _extends$1(){return _extends$1=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends$1.apply(this,arguments)}let isObject$6=et=>Object.prototype.toString.call(et)==="[object Object]";function unknown(et,tt){let rt=Object.keys(et.fields);return Object.keys(tt).filter(nt=>rt.indexOf(nt)===-1)}const defaultSort=sortByKeyOrder([]);class ObjectSchema extends BaseSchema{constructor(tt){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=defaultSort,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(nt){if(typeof nt=="string")try{nt=JSON.parse(nt)}catch{nt=null}return this.isType(nt)?nt:null}),tt&&this.shape(tt)})}_typeCheck(tt){return isObject$6(tt)||typeof tt=="function"}_cast(tt,rt={}){var nt;let lt=super._cast(tt,rt);if(lt===void 0)return this.getDefault();if(!this._typeCheck(lt))return lt;let ut=this.fields,dt=(nt=rt.stripUnknown)!=null?nt:this.spec.noUnknown,pt=this._nodes.concat(Object.keys(lt).filter(Mt=>this._nodes.indexOf(Mt)===-1)),ht={},mt=_extends$1({},rt,{parent:ht,__validating:rt.__validating||!1}),xt=!1;for(const Mt of pt){let vt=ut[Mt],Ot=has$1(lt,Mt);if(vt){let At,Rt=lt[Mt];mt.path=(rt.path?`${rt.path}.`:"")+Mt,vt=vt.resolve({value:Rt,context:rt.context,parent:ht});let zt="spec"in vt?vt.spec:void 0,Tt=zt==null?void 0:zt.strict;if(zt!=null&&zt.strip){xt=xt||Mt in lt;continue}At=!rt.__validating||!Tt?vt.cast(lt[Mt],mt):lt[Mt],At!==void 0&&(ht[Mt]=At)}else Ot&&!dt&&(ht[Mt]=lt[Mt]);ht[Mt]!==lt[Mt]&&(xt=!0)}return xt?ht:lt}_validate(tt,rt={},nt){let lt=[],{sync:ut,from:dt=[],originalValue:pt=tt,abortEarly:ht=this.spec.abortEarly,recursive:mt=this.spec.recursive}=rt;dt=[{schema:this,value:pt},...dt],rt.__validating=!0,rt.originalValue=pt,rt.from=dt,super._validate(tt,rt,(xt,Mt)=>{if(xt){if(!ValidationError.isError(xt)||ht)return void nt(xt,Mt);lt.push(xt)}if(!mt||!isObject$6(Mt)){nt(lt[0]||null,Mt);return}pt=pt||Mt;let vt=this._nodes.map(Ot=>(At,Rt)=>{let zt=Ot.indexOf(".")===-1?(rt.path?`${rt.path}.`:"")+Ot:`${rt.path||""}["${Ot}"]`,Tt=this.fields[Ot];if(Tt&&"validate"in Tt){Tt.validate(Mt[Ot],_extends$1({},rt,{path:zt,from:dt,strict:!0,parent:Mt,originalValue:pt[Ot]}),Rt);return}Rt(null)});runTests({sync:ut,tests:vt,value:Mt,errors:lt,endEarly:ht,sort:this._sortErrors,path:rt.path},nt)})}clone(tt){const rt=super.clone(tt);return rt.fields=_extends$1({},this.fields),rt._nodes=this._nodes,rt._excludedEdges=this._excludedEdges,rt._sortErrors=this._sortErrors,rt}concat(tt){let rt=super.concat(tt),nt=rt.fields;for(let[lt,ut]of Object.entries(this.fields)){const dt=nt[lt];dt===void 0?nt[lt]=ut:dt instanceof BaseSchema&&ut instanceof BaseSchema&&(nt[lt]=ut.concat(dt))}return rt.withMutation(()=>rt.shape(nt,this._excludedEdges))}getDefaultFromShape(){let tt={};return this._nodes.forEach(rt=>{const nt=this.fields[rt];tt[rt]="default"in nt?nt.getDefault():void 0}),tt}_getDefault(){if("default"in this.spec)return super._getDefault();if(this._nodes.length)return this.getDefaultFromShape()}shape(tt,rt=[]){let nt=this.clone(),lt=Object.assign(nt.fields,tt);return nt.fields=lt,nt._sortErrors=sortByKeyOrder(Object.keys(lt)),rt.length&&(Array.isArray(rt[0])||(rt=[rt]),nt._excludedEdges=[...nt._excludedEdges,...rt]),nt._nodes=sortFields(lt,nt._excludedEdges),nt}pick(tt){const rt={};for(const nt of tt)this.fields[nt]&&(rt[nt]=this.fields[nt]);return this.clone().withMutation(nt=>(nt.fields={},nt.shape(rt)))}omit(tt){const rt=this.clone(),nt=rt.fields;rt.fields={};for(const lt of tt)delete nt[lt];return rt.withMutation(()=>rt.shape(nt))}from(tt,rt,nt){let lt=propertyExpr.getter(tt,!0);return this.transform(ut=>{if(ut==null)return ut;let dt=ut;return has$1(ut,tt)&&(dt=_extends$1({},ut),nt||delete dt[tt],dt[rt]=lt(ut)),dt})}noUnknown(tt=!0,rt=object.noUnknown){typeof tt=="string"&&(rt=tt,tt=!0);let nt=this.test({name:"noUnknown",exclusive:!0,message:rt,test(lt){if(lt==null)return!0;const ut=unknown(this.schema,lt);return!tt||ut.length===0||this.createError({params:{unknown:ut.join(", ")}})}});return nt.spec.noUnknown=tt,nt}unknown(tt=!0,rt=object.noUnknown){return this.noUnknown(!tt,rt)}transformKeys(tt){return this.transform(rt=>rt&&mapKeys$1(rt,(nt,lt)=>tt(lt)))}camelCase(){return this.transformKeys(camelCase$1)}snakeCase(){return this.transformKeys(snakeCase$1)}constantCase(){return this.transformKeys(tt=>snakeCase$1(tt).toUpperCase())}describe(){let tt=super.describe();return tt.fields=mapValues$2(this.fields,rt=>rt.describe()),tt}}function create$3(et){return new ObjectSchema(et)}create$3.prototype=ObjectSchema.prototype;function _extends(){return _extends=Object.assign||function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},_extends.apply(this,arguments)}function create$2(et){return new ArraySchema(et)}class ArraySchema extends BaseSchema{constructor(tt){super({type:"array"}),this.innerType=void 0,this.innerType=tt,this.withMutation(()=>{this.transform(function(rt){if(typeof rt=="string")try{rt=JSON.parse(rt)}catch{rt=null}return this.isType(rt)?rt:null})})}_typeCheck(tt){return Array.isArray(tt)}get _subType(){return this.innerType}_cast(tt,rt){const nt=super._cast(tt,rt);if(!this._typeCheck(nt)||!this.innerType)return nt;let lt=!1;const ut=nt.map((dt,pt)=>{const ht=this.innerType.cast(dt,_extends({},rt,{path:`${rt.path||""}[${pt}]`}));return ht!==dt&&(lt=!0),ht});return lt?ut:nt}_validate(tt,rt={},nt){var lt,ut;let dt=[],pt=rt.sync,ht=rt.path,mt=this.innerType,xt=(lt=rt.abortEarly)!=null?lt:this.spec.abortEarly,Mt=(ut=rt.recursive)!=null?ut:this.spec.recursive,vt=rt.originalValue!=null?rt.originalValue:tt;super._validate(tt,rt,(Ot,At)=>{if(Ot){if(!ValidationError.isError(Ot)||xt)return void nt(Ot,At);dt.push(Ot)}if(!Mt||!mt||!this._typeCheck(At)){nt(dt[0]||null,At);return}vt=vt||At;let Rt=new Array(At.length);for(let zt=0;zt<At.length;zt++){let Tt=At[zt],Ct=`${rt.path||""}[${zt}]`,It=_extends({},rt,{path:Ct,strict:!0,parent:At,index:zt,originalValue:vt[zt]});Rt[zt]=(Dt,kt)=>mt.validate(Tt,It,kt)}runTests({sync:pt,path:ht,value:At,errors:dt,endEarly:xt,tests:Rt},nt)})}clone(tt){const rt=super.clone(tt);return rt.innerType=this.innerType,rt}concat(tt){let rt=super.concat(tt);return rt.innerType=this.innerType,tt.innerType&&(rt.innerType=rt.innerType?rt.innerType.concat(tt.innerType):tt.innerType),rt}of(tt){let rt=this.clone();if(!isSchema(tt))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+printValue(tt));return rt.innerType=tt,rt}length(tt,rt=array.length){return this.test({message:rt,name:"length",exclusive:!0,params:{length:tt},test(nt){return isAbsent(nt)||nt.length===this.resolve(tt)}})}min(tt,rt){return rt=rt||array.min,this.test({message:rt,name:"min",exclusive:!0,params:{min:tt},test(nt){return isAbsent(nt)||nt.length>=this.resolve(tt)}})}max(tt,rt){return rt=rt||array.max,this.test({message:rt,name:"max",exclusive:!0,params:{max:tt},test(nt){return isAbsent(nt)||nt.length<=this.resolve(tt)}})}ensure(){return this.default(()=>[]).transform((tt,rt)=>this._typeCheck(tt)?tt:rt==null?[]:[].concat(rt))}compact(tt){let rt=tt?(nt,lt,ut)=>!tt(nt,lt,ut):nt=>!!nt;return this.transform(nt=>nt!=null?nt.filter(rt):nt)}describe(){let tt=super.describe();return this.innerType&&(tt.innerType=this.innerType.describe()),tt}nullable(tt=!0){return super.nullable(tt)}defined(){return super.defined()}required(tt){return super.required(tt)}}create$2.prototype=ArraySchema.prototype;function addMethod(et,tt,rt){if(!et||!isSchema(et.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof rt!="function")throw new TypeError("Method function must be provided");et.prototype[tt]=rt}function withMetadataArgument(et,tt){var rt=Array.prototype.slice.call(tt);return rt.push(metadata$1),et.apply(this,rt)}function isValidPhoneNumber(){return withMetadataArgument(isValidPhoneNumber$1,arguments)}function isSupportedCountry(){return withMetadataArgument(isSupportedCountry$1,arguments)}var YUP_PHONE_METHOD="phone",isValidCountryCode=function(tt){return typeof tt!="string"?!1:isSupportedCountry(tt)};addMethod(create$6,YUP_PHONE_METHOD,function(tt,rt){tt===void 0&&(tt="US");var nt=typeof tt=="string"?[tt]:[].concat(tt),lt=nt.filter(isValidCountryCode);lt.length||(lt=["US"]);var ut=typeof rt=="string"&&rt?rt:"${path} must be a valid phone number for region"+(lt.length>1?"s":"")+" "+lt.join(", ");return this.test(YUP_PHONE_METHOD,ut,function(dt){try{if(dt===void 0||dt==="")return!0;var pt=lt.reduce(function(ht,mt){var xt=isValidPhoneNumber(dt,mt);return ht||xt},!1);return pt}catch{return!1}})});const generateValidationSchema$f=et=>{const tt=PHONE_REQUIRED$1;let rt=create$6();const lt=`Please enter your correct ${addressLabelForRegion().postcode}`;switch(et.address.country){case"Australia":rt=create$6().matches(AU_POSTCODE_REGEXP,lt);break;case"United Kingdom":case"Scotland":case"England":case"Northern Ireland":case"Wales":rt=create$6().matches(UK_POSTCODE_REGEXP,lt);break;case"US":case"USA":case"United States":case"United States of America":rt=create$6().matches(US_POSTCODE_REGEXP,lt);break}const ut=create$3().shape({firstName:create$6().ensure().required(VALUE_REQUIRED$4),lastName:create$6().ensure().required(VALUE_REQUIRED$4),gender:create$6().ensure().required(VALUE_REQUIRED$4),dateOfBirth:create$6().ensure().required(VALUE_REQUIRED$4),responsiblePhysicianId:create$6().ensure().required(VALUE_REQUIRED$4),address:create$3().shape({autofilled:create$6().when("postcode",{is:dt=>rt.isValidSync(dt),then:dt=>dt.ensure(),otherwise:()=>rt}),line1:create$6().when(["postcode","country","city","state"],{is:(dt,pt,ht,mt)=>!!dt||!!pt||!!ht||!!mt,then:create$6().required(VALUE_REQUIRED$4)}),line2:create$6().test("line2-required",ADDRESS_LINE1_REQUIRED,function(dt){return dt?!!this.parent.line1:!0}),country:create$6().when(["line1","city","state","postcode"],{is:(dt,pt,ht,mt)=>!!dt||!!pt||!!ht||!!mt,then:create$6().required(VALUE_REQUIRED$4)}),city:create$6().when(["line1","country","state","postcode"],{is:(dt,pt,ht,mt)=>!!dt||!!pt||!!ht||!!mt,then:create$6().required(VALUE_REQUIRED$4)}),state:create$6().when(["line1","country","city","postcode"],{is:(dt,pt,ht,mt)=>!!dt||!!pt||!!ht||!!mt,then:create$6().required(VALUE_REQUIRED$4)}),postcode:create$6().when(["line1","country","city","state"],{is:(dt,pt,ht,mt)=>!!dt||!!pt||!!ht||!!mt,then:create$6().required(VALUE_REQUIRED$4)})},[["country","city"],["country","postcode"],["line1","country"],["state","country"],["state","city"],["state","postcode"],["line1","state"],["line1","postcode"],["line1","city"],["postcode","city"]]),mobileNumber:create$6().phone(Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,PHONE_VALIDATION$2).test("home-number-required",tt,function(dt){return!!dt||!!this.parent.homeNumber}),homeNumber:create$6().phone(Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,PHONE_VALIDATION$2).test("mobile-number-required",tt,function(dt){return!!dt||!!this.parent.mobileNumber})},[["mobileNumber","homeNumber"]]);try{validateYupSchema(et,ut,!0,{validatePostcode:!!(et.address.postcode&&et.address.country)})}catch(dt){return yupToFormErrors(dt)}return{}},REACT_APP_REGION$n=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$i=REACT_APP_REGION$n,SidePanel$1=styled$1("div")`
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};
  height: 100%;
  width: 20%;
`,HeaderTitle$2=styled$1("div")`
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 8px;
`,SubTitle$2=styled$1("div")`
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 40px;
`,CreatePatientBasicForm=({physiciansRefData:et})=>{const tt=useHistory(),{setError:rt}=useErrorModalContext(),nt={firstName:"",middleName:"",lastName:"",gender:"",dateOfBirth:"",responsiblePhysicianId:"",mobileNumber:"",homeNumber:"",address:{autofilled:"",country:"",line1:"",line2:"",city:"",state:"",postcode:""}},[lt,ut]=reactExports.useState(!1),[dt,pt]=reactExports.useState(!1),[ht,mt]=reactExports.useState(0),[xt,Mt]=reactExports.useState(nt),[vt,Ot]=reactExports.useState(!1),[At,Rt]=reactExports.useState(new Date().getTime()),{state:zt}=reactExports.useContext(UserContext),Tt=reactExports.useRef(new Date().getTime()),Ct=useTheme$1(),It=sessionStorage.getItem("createPatientKey"),[Dt,{data:kt,error:qt,loading:Nt}]=useLazyQuery(CREATE_PATIENT_DUPLICATION_CHECK,{onCompleted:()=>{const Wt=(new Date().getTime()-At)/1e3,Ut={eventName:ELASTIC_SEARCH_EVENTS.DUPLICATE_SEARCH_TIME,searchTime:Wt,createPatientKey:It};Qt({variables:{data:JSON.stringify(Ut)}})}}),[Yt,{loading:Kt,error:Jt}]=useMutation(ADD_PATIENT),[Qt]=useMutation(LOG_EVENT),Bt=reactExports.useMemo(()=>(kt==null?void 0:kt.createPatientDuplicationCheck)??[],[kt]);console.log(Bt,qt,ht,Nt,Jt),reactExports.useEffect(()=>{var Wt,Ut,Vt;if(qt||Jt)return rt();if(ut(!1),pt(!1),ht>0&&!vt&&kt){const Ht=(Wt=kt.createPatientDuplicationCheck)==null?void 0:Wt.length;if(Ht>0){kt.createPatientDuplicationCheck.map(Xt=>Xt==null?void 0:Xt.id);const Gt={};for(let Xt=0;Xt<10;Xt++)Gt[`duplicateId${Xt}`]=((Vt=(Ut=kt.createPatientDuplicationCheck)==null?void 0:Ut[Xt])==null?void 0:Vt.id)||"0";const Zt={eventName:ELASTIC_SEARCH_EVENTS.DUPLICATE_TRIGGERED,numberOfDuplicates:Ht,createPatientKey:It,...Gt};logPage(Tt==null?void 0:Tt.current,Zt,Qt),pt(!0)}else console.log("AAAAA"),ut(!0)}},[Bt,qt,ht,Nt,Jt]);const Ft=()=>Yt({variables:{firstName:xt.firstName,middleName:xt.middleName,lastName:xt.lastName,gender:xt.gender,dob:xt.dateOfBirth,responsiblePhysicianId:xt.responsiblePhysicianId,mobilePhoneNumber:xt.mobileNumber,homePhoneNumber:xt.homeNumber,line1:xt.address.line1,line2:xt.address.line2,city:xt.address.city,postcode:xt.address.postcode,state:xt.address.state,country:xt.address.country}}).then(Wt=>{const Ut=Wt.data.addPatient.patient,Vt={eventName:ELASTIC_SEARCH_EVENTS.SUBMIT,patientId:Ut.id,createPatientKey:It};if(logPage(Tt==null?void 0:Tt.current,Vt,Qt),(zt==null?void 0:zt.primaryRole)==="mo"){tt.push(`/medonc/patient/${Ut.id}/summary`);return}tt.push((zt==null?void 0:zt.primaryRole)==="ro"?"/radiation":`/navigator/patient/${Ut.id}/summary`)}),$t=Wt=>{Wt>ht&&mt(Wt)},jt={isLocked:!1,updatedBy:"",deleteModal:()=>{},showSaveAndExit:!1,pageNumber:1,sectionTitle:TITLE,continueLink:"",submitButtonText:SUBMIT_BUTTON_TEXT,showDiscard:!1,sidePanelWidth:"-15%",footerPosition:"relative",isLoading:Nt};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Formik,{initialValues:xt,onSubmit:Wt=>{Mt(Wt),Rt(new Date().getTime()),Dt({variables:{firstName:Wt.firstName,middleName:Wt.middleName,lastName:Wt.lastName,gender:Wt.gender,dob:Wt.dateOfBirth,mobilePhoneNumber:Wt.mobileNumber,homePhoneNumber:Wt.homeNumber,line1:Wt.address.line1,line2:Wt.address.line2,city:Wt.address.city,postcode:Wt.address.postcode,state:Wt.address.state,country:Wt.address.country}})},validate:Wt=>generateValidationSchema$f(Wt),validateOnBlur:ht>0,children:({values:Wt,errors:Ut,submitForm:Vt,submitCount:Ht,setFieldValue:Gt})=>{Ot(Object.keys(Ut).length>0),$t(Ht);const Zt={dropdownIndicator:()=>({color:Ct.palette.primary.dark,marginRight:"8px"}),indicatorSeparator:()=>({display:"none"}),control:Xt=>({...Xt,border:Ht>0&&Ut.responsiblePhysicianId?`1px solid ${Ct.palette.error.main}`:`1px solid ${Ct.palette.grey[300]}`,boxShadow:"none",height:"40px","&:hover":{border:`1px solid ${Ct.palette.grey[300]}`}}),valueContainer:Xt=>({...Xt,lineHeight:"32px",padding:"0px 8px"})};return jsxRuntimeExports.jsx(FormContainer$1,{...jt,handleValidation:Xt=>{},submitForm:Vt,children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$2,{"data-test-id":"create-patient-page-title",children:TITLE}),jsxRuntimeExports.jsx(SubTitle$2,{"data-test-id":"create-patient-page-subtitle",children:SUBTITLE}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"First name*",fieldName:"firstName",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{id:"firstName",name:"firstName",component:TextAreaField})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Middle name",fieldName:"middleName",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{id:"middleName",name:"middleName",component:TextAreaField})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Last name*",fieldName:"lastName",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{id:"lastName",name:"lastName",component:TextAreaField})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:isUs()?"Sex*":"Gender*",fieldName:"gender",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:"gender",component:ToggleButtonGroupField,options:isUs()?US_GENDER_OPTIONS:GENDER_OPTIONS,minwidth:"131px",alternateStyle:!0})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Date of birth*",fieldName:"dateOfBirth",className:Ht>0&&Ut.dateOfBirth?"create-patient-date-error":"create-patient-date",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Stack$5,{sx:{maxWidth:"200px"},children:jsxRuntimeExports.jsx(BaseDatePicker,{id:"dateOfBirth",disableFuture:!0,value:Wt.dateOfBirth?dayjs(Wt.dateOfBirth):null,error:Ht>0&&!!Ut.dateOfBirth,onChange:(Xt,er)=>{if(er.validationError)return;const nr=Xt?dayjs(Xt).format("YYYY-MM-DD"):"";Gt("dateOfBirth",nr)}})})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:isUs()?"Assigned provider*":"Responsible physician*",fieldName:"responsiblePhysicianId",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:"responsiblePhysicianId",id:"responsiblePhysicianId",component:BaseAutocomplete,value:getOptionByValue(et.map(Xt=>({label:Xt==null?void 0:Xt.name,value:Xt==null?void 0:Xt.id})),Wt==null?void 0:Wt.responsiblePhysicianId),options:et?mapListDataWithId(et):[],styles:Zt,placeholder:SEARCH_DROPDOWN_PLACEHOLDER,classNamePrefix:"responsible-physician-search",noOptionsMessage:()=>"No matches found",onChange:Xt=>{const er=typeof Xt=="string"?Xt:Xt==null?void 0:Xt.value;Gt("responsiblePhysicianId",er)},inputProps:{error:Ht>0&&!!Ut.responsiblePhysicianId}})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Mobile phone number*",fieldName:"mobileNumber",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{id:"mobileNumber",name:"mobileNumber",component:TextAreaField,placeholder:PHONE_REQUIRED$1,updateMutation:Xt=>{const er=formatMyPhoneNumber(Xt,region$i);Gt("mobileNumber",er)}})}),jsxRuntimeExports.jsx(FormRow$2,{labelClass:"label-form-row",children:jsxRuntimeExports.jsx(StyledHorizontalLine$1,{children:jsxRuntimeExports.jsx("span",{children:"OR"})})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Home phone number*",fieldName:"homeNumber",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{id:"homeNumber",name:"homeNumber",placeholder:PHONE_REQUIRED$1,component:TextAreaField,updateMutation:Xt=>{const er=formatMyPhoneNumber(Xt,region$i);Gt("homeNumber",er)}})}),jsxRuntimeExports.jsx(AddressSectionField,{name:"address",values:Wt.address,includeMandatoryLabels:isUs()})]})})}}),jsxRuntimeExports.jsx(SidePanel$1,{}),dt&&jsxRuntimeExports.jsx(ModalDuplicationResult,{newPatientData:xt,duplicateData:Bt,isOpen:dt,handleClose:()=>pt(!1),rightButtonHandleClick:()=>{const Wt={eventName:ELASTIC_SEARCH_EVENTS.DUPLICATE_IGNORED,createPatientKey:It};logPage(Tt==null?void 0:Tt.current,Wt,Qt),ut(!0),pt(!1)}}),lt&&jsxRuntimeExports.jsx(ModalCreateNewPatient,{isOpen:lt,handleClose:()=>ut(!1),isLoading:Kt,submissionProcessingTime:1,rightButtonHandleClick:()=>{Ft()}})]})},EXTEND_LOCK_MUTATION=gql`
  mutation ExtendLock($accessPatientId: ID!) {
    extendLock(accessPatientId: $accessPatientId) {
      success
      patient {
        lock {
          lockedBy
          readOnly
          lockedByName
        }
      }
    }
  }
`,headers=Object.create(globalThis.import_meta_env||null).AWS_WAF_MAGIC?{"x-aws-waf-magic":Object.create(globalThis.import_meta_env||null).AWS_WAF_MAGIC}:{},ExtendLock=({accessPatientId:et})=>{const[tt]=useMutation(EXTEND_LOCK_MUTATION,{context:{headers}});return reactExports.useEffect(()=>{setTimeout(()=>{tt({variables:{accessPatientId:et}})},500);const rt=setInterval(()=>{tt({variables:{accessPatientId:et}})},5e3);return()=>{clearInterval(rt)}},[et]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},COVID_SUBMIT={HEADER_TEXT_EXIT:"Are you sure you want to submit and exit the form?",HEADER_TEXT_CONTINUE:"Are you sure you want to submit and continue to the next form?",HEADER_TEXT_ERROR:"Please fix the errors to submit",SUBMIT_AND_EXIT:"Submit and exit",SUBMIT_AND_CONTINUE:"Submit and continue",FIX_ERRORS:"I'll fix the errors",MODAL_TEXT_ERROR:"To submit this form you must answer all required questions and fix all errors.",MODAL_TITLE:"Change of circumstances",MODAL_TEXT:"If your circumstances change before your next visit, please let us know prior to arrival"};class CovidSubmit extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderErrorText",()=>jsxRuntimeExports.jsx("div",{children:COVID_SUBMIT.MODAL_TEXT_ERROR}));Nr(this,"renderChangeOfCircumstance",()=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:COVID_SUBMIT.MODAL_TITLE}),jsxRuntimeExports.jsx("div",{children:COVID_SUBMIT.MODAL_TEXT})]})}));this.state={locked:!1}}render(){const{dismissFunction:rt,isOpen:nt,submitForm:lt,continueNextForm:ut}=this.props,{locked:dt}=this.state,pt=this.props.isComplete?ut?COVID_SUBMIT.HEADER_TEXT_CONTINUE:COVID_SUBMIT.HEADER_TEXT_EXIT:COVID_SUBMIT.HEADER_TEXT_ERROR,ht=this.props.isComplete?ut?COVID_SUBMIT.SUBMIT_AND_CONTINUE:COVID_SUBMIT.SUBMIT_AND_EXIT:COVID_SUBMIT.FIX_ERRORS;return jsxRuntimeExports.jsx(StandardDialog,{id:"covid-submit-modal",open:nt,onClose:rt,title:pt,onSubmit:()=>{this.props.isComplete?lt():rt()},submitButtonProps:{disabled:dt},submitText:ht,children:jsxRuntimeExports.jsx(Stack$5,{paddingY:2,children:this.props.isComplete?this.renderChangeOfCircumstance():this.renderErrorText()})})}}Nr(CovidSubmit,"defaultProps",{isPSO:!0});const ConsultationDiscussionText=styled$1("div")`
  margin-bottom: 16px;
  line-height: 24px;
`,ModalContentSection=styled$1("div")`
  padding-bottom: 16px;
`,ModalContentSectionHeader=styled$1("div")`
  font-weight: bold;
  color: ${et=>et.theme.palette.primary.main};
`,ModalConsultationDiscussion=({title:et,isOpen:tt,setIsOpen:rt})=>{const nt=jsxRuntimeExports.jsxs(ConsultationDiscussionText,{children:[jsxRuntimeExports.jsxs(ModalContentSection,{children:[jsxRuntimeExports.jsx(ModalContentSectionHeader,{children:"Patient concerns/needs"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:"Discuss items raised in distress/PROMs screening, main worries patient has about getting through treatment:"}),jsxRuntimeExports.jsx("div",{children:"e.g. being able to continue working, managing pain, body being exposed to strangers"})]})]}),jsxRuntimeExports.jsxs(ModalContentSection,{children:[jsxRuntimeExports.jsx(ModalContentSectionHeader,{children:"Goal of care"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{children:["Based on addressing concerns raised: e.g. body being exposed to strangers, goal of care = maintaining dignity by minimising amount and duration of body exposure;"," "]}),jsxRuntimeExports.jsx("div",{children:"managing pain, goal of care = pain control to enable maintenance of ADLs; "}),jsxRuntimeExports.jsx("div",{children:"being able to continue working, goal of care = maintaining independence"})]})]}),jsxRuntimeExports.jsxs(ModalContentSection,{children:[jsxRuntimeExports.jsx(ModalContentSectionHeader,{children:"Plan of care"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:"Action required to achieve goal of care and how you will assess impact of action taken: "}),jsxRuntimeExports.jsxs("div",{children:["e.g. maintaining dignity = handover to RTs use sheets/covers and only expose required visualisation points for set up;"," "]}),jsxRuntimeExports.jsx("div",{children:"Pain control = pain regime, keep pain diary, escalate if any significant changes, review in 2 days"})]})]})]});return jsxRuntimeExports.jsx(StandardDialog,{open:tt,maxWidth:"lg",title:et,onClose:()=>rt(!1),children:nt})},DeleteFormText=styled$1("div")`
  margin-bottom: 40px;
  line-height: 24px;
`,ModalDeleteForm=({deleteFormMutation:et,title:tt,isOpen:rt,setIsOpen:nt,discard:lt=!0})=>{useTheme$1();const ut=jsxRuntimeExports.jsx(DeleteFormText,{children:lt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:"You'll lose all the answers you have entered on this form. We can't recover them once you discard it."}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("div",{children:"Are you sure you want to discard?"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:"Deactivating this plan will complete and archive this plan, making it and all previous versions inactive."}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("div",{children:"You will need to create a new plan for this patient, if required in future."})]})});return jsxRuntimeExports.jsx(StandardDialog,{open:rt,title:tt,onClose:()=>nt(!1),submitText:lt?"Discard":"Deactivate plan",destructiveSubmit:!0,onSubmit:()=>{et(),nt(!1)},children:ut})},ModalInfo$1=et=>{const{title:tt,isOpen:rt,text:nt,dismissFunction:lt,isButton:ut,buttonName:dt,buttonFunction:pt}=et,ht=ut&&dt&&pt;return jsxRuntimeExports.jsx(StandardDialog,{id:"modal-info",open:rt,onClose:lt,title:tt,onSubmit:ht?pt:void 0,submitText:ht?dt:void 0,maxWidth:"sm",children:jsxRuntimeExports.jsx(Typography,{paddingY:2,children:nt})})},MODAL_HEADER="Oops sorry...",ERROR="Something went wrong while saving your changes.",CONTACT_SUPPORT="Please check your internet connection or contact Innovation Support.",SEE_FRONT_DESK="Please see front desk.",HOME="Back to home",LOGOUT="Logout",ModalInfo=et=>{const{isOpen:tt,isPSO:rt}=et;return jsxRuntimeExports.jsx(StandardDialog,{open:tt,title:MODAL_HEADER,onSubmit:()=>{et.callbackRouting&&et.callbackRouting()},submitText:rt?HOME:LOGOUT,children:jsxRuntimeExports.jsxs(Stack$5,{paddingY:2,children:[jsxRuntimeExports.jsx(SvgOops,{}),jsxRuntimeExports.jsx(Typography,{children:ERROR}),jsxRuntimeExports.jsx(Typography,{children:rt?CONTACT_SUPPORT:SEE_FRONT_DESK})]})})},ModalSaveExit=et=>{const{isOpen:tt,dismissFunction:rt,exitForm:nt,exitText:lt}=et;return jsxRuntimeExports.jsx(StandardDialog,{open:tt,onClose:rt,title:"Are you sure you want to exit the form without submitting?",submitText:lt,onSubmit:nt,children:jsxRuntimeExports.jsx(Typography,{paddingY:2,children:"All changes have been successfully saved and you will be redirected to the Main Menu"})})},SUBMIT_MODAL={CONFIRM_EXIT:"Are you sure you want to submit and exit the form?",CONFIRM_SUBMIT:"Are you sure you want to submit the form?",CONFIRM_DETAILS_COMPLETE:"Please ensure all your details are correct. You will be redirected to the Main Menu upon submission.",CONFIRM_DETAILS_CONTINUE:"Please ensure all your details are correct. You will be redirected to the next form upon submission.",CONFIRM_PATIENT_DETAILS:"Please ensure patient details are correct.",PATIENT_INFO_UPDATE:"Patient information will be updated in both systems.",SUBMIT_TO_MOSAIQ:"You are submitting a patient to the Clinical Mosaiq system. This should not be used to create test patient records; once created records cannot be deleted.",SUBMIT_TO_TEST:"You are about to submit a patient to the TEST instance of MOSAIQ",PDF_SENT:"A PDF of this registration form will be sent to Mosaiq.",PATIENT_PORTAL_REMINDER:"Don't forget to ask the patient if they would like to join the Patient Portal"},REACT_APP_REGION$m=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$h=REACT_APP_REGION$m;class ModalSubmit extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderPatientContent",()=>{const{continueNextForm:rt}=this.props;return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("div",{children:rt?SUBMIT_MODAL.CONFIRM_DETAILS_CONTINUE:SUBMIT_MODAL.CONFIRM_DETAILS_COMPLETE})})});Nr(this,"renderPSOContent",()=>{const{isProd:rt}=this.props;return region$h===Region.UK?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("ul",{children:[jsxRuntimeExports.jsx("li",{children:SUBMIT_MODAL.CONFIRM_PATIENT_DETAILS}),jsxRuntimeExports.jsx("li",{children:SUBMIT_MODAL.PATIENT_INFO_UPDATE}),jsxRuntimeExports.jsx("li",{id:"warning-message",children:rt?SUBMIT_MODAL.SUBMIT_TO_MOSAIQ:SUBMIT_MODAL.SUBMIT_TO_TEST})]})}):jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("ul",{children:[jsxRuntimeExports.jsx("li",{children:SUBMIT_MODAL.CONFIRM_PATIENT_DETAILS}),jsxRuntimeExports.jsx("li",{children:SUBMIT_MODAL.PDF_SENT}),jsxRuntimeExports.jsx("li",{children:SUBMIT_MODAL.PATIENT_INFO_UPDATE})]}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",width:1,children:[jsxRuntimeExports.jsx(SvgInfo,{className:"info icon"}),jsxRuntimeExports.jsx("div",{children:SUBMIT_MODAL.PATIENT_PORTAL_REMINDER})]})]})});this.state={locked:!1}}setLocked(){this.setState({locked:!0})}render(){const{dismissFunction:rt,isOpen:nt,isPSO:lt,submitForm:ut,submitText:dt,headerText:pt,bodyText:ht,emptyBody:mt,keepUnlocked:xt}=this.props,{locked:Mt}=this.state;return jsxRuntimeExports.jsx(StandardDialog,{id:"submit-modal",open:nt,title:pt||(lt?SUBMIT_MODAL.CONFIRM_EXIT:SUBMIT_MODAL.CONFIRM_SUBMIT),onClose:rt,submitText:dt,submitButtonProps:{disabled:Mt},onSubmit:()=>{ut(),xt||this.setLocked()},children:jsxRuntimeExports.jsx(Stack$5,{children:mt?null:ht||(lt?this.renderPSOContent():this.renderPatientContent())})})}}Nr(ModalSubmit,"defaultProps",{isPSO:!0});const ModalSubmitForm=({submitFormMutation:et,title:tt="Confirm and Submit",isOpen:rt,setIsOpen:nt,submitText:lt="Submit plan",formText:ut="By submitting you confirm that you have reviewed all information on this form and ensured all details are correct.",pdfText:dt})=>{const pt=jsxRuntimeExports.jsxs(Stack$5,{paddingY:2,children:[jsxRuntimeExports.jsx(Typography,{children:ut}),dt&&jsxRuntimeExports.jsx(Typography,{paddingTop:2,children:"Once submitted, a PDF of this registration from will be sent to EMR. Patient information will be updated in both systems."})]});return jsxRuntimeExports.jsx(StandardDialog,{open:rt,title:tt,onClose:()=>nt(!1),submitText:lt,onSubmit:()=>{et(),nt(!1)},children:pt})},REACT_APP_REGION$l=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,StyledErrorIcon=styled$1(ErrorInfo)`
  width: 13px;
`,TextContainer=styled$1("div")`
  margin-bottom: 24px;
`,keyNames={firstName:"First name",middleName:"Middle name",lastName:"Last name",namePrefix:"Name prefix",gender:"Gender",dobRaw:"Date of birth",primaryCenter:"Preferred centre",primaryPhone:"Home or mobile phone number",secondaryPhone:"Home or mobile phone number",email:"Email",residentialAddressLine1:"Address line 1",residentialAddressCity:"Town/City",residentialAddressState:"County",residentialAddressCountry:"Country",residentialAddressPostcode:"Post code","emergencyContact.firstName":"Emergency contact first name","emergencyContact.lastName":"Emergency contact last name","emergencyContact.relationship":"Emergency contact relationship","emergencyContact.mobilePhoneNumber":"Emergency contact home or mobile phone number","emergencyContact.homePhoneNumber":"Emergency contact home or mobile phone number","emergencyContact.authorisedForEnquiries":"Emergency contact authorised for enquiries","emergencyContact.supportPerson":"Emergency contact identified as support","emergencyContact.email":"Emergency contact email",generalPractitioner:"General practitioner",referringSurgeon:"Referring surgeon",oncologist:"Responsible clinician",idb:"NHS ID number",nhsOptions:"Reason NHS ID not provided",payor:"Insurance company",registrationReason:"Registration reason",registrationReasonText:"Registration reason",apptClash:"Selected appointment",countryOfBirth:"Country of birth",languageAtHome:"Language spoken at home",heritage:"Aboriginal or Torres Strait Islander",maritalStatus:"Marital status",attachments:"Document type",attachmentAcknowledged:"Document type acknowledgement"},ModalValidationError=({validationErrors:et,mandatoryFields:tt})=>{const nt=REACT_APP_REGION$l===Region.AU;et&&et.primaryPhone&&et.secondaryPhone&&delete et.secondaryPhone,et&&et["emergencyContact.homePhoneNumber"]&&et["emergencyContact.mobilePhoneNumber"]&&delete et["emergencyContact.mobilePhoneNumber"];const lt=ht=>jsxRuntimeExports.jsx(StyledErrorIcon,{errors:[ht]},ht),ut=tt.filter(ht=>Object.keys(et).includes(ht)),dt=ut.length-5,pt=generateOrderedValidation(keyNames,et);return jsxRuntimeExports.jsxs("div",{className:"modal-submit-validation-error-body","data-testid":"modal-submit-validation-error-body",children:[!nt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et&&Object.keys(et).length>5&&"The form contains multiple errors. Please fix and try again",et&&Object.keys(et).length<6&&"Please complete the below required fields for submission and ensure that there are no errors in all fields.",et&&Object.keys(et).length<6&&Object.keys(et).map(ht=>{if(keyNames[ht])return lt(keyNames[ht])})]}),nt&&et&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(TextContainer,{children:["Please answer all mandatory questions before submitting. Mandatory questions are marked with an"," ",jsxRuntimeExports.jsx("strong",{children:"asterisk*"}),". Use the left menu or Review and Submit page to return to a section."]}),ut.length>0&&pt.slice(0,5).map(ht=>lt(ht)),ut.length>5&&jsxRuntimeExports.jsx(StyledErrorIcon,{errors:[`And ${dt} more incomplete ${dt>1?"fields":"field"}...`]})]})]})},generateOrderedValidation=(et,tt)=>Object.keys(et).filter(rt=>Object.keys(tt).includes(rt)).map(rt=>et[rt]);class WelcomeBackModal extends reactExports.Component{render(){const{isOpen:tt,dismissFunction:rt,returnToStart:nt,updateFirstReturn:lt}=this.props;return jsxRuntimeExports.jsx(StandardDialog,{open:tt,onClose:rt,title:"Welcome Back!",closeText:"Continue from here",submitText:"Go back to start",onSubmit:()=>{rt(),nt()},children:jsxRuntimeExports.jsxs(Stack$5,{paddingY:2,gap:1,children:[jsxRuntimeExports.jsx(Typography,{children:"Would you like to continue from your last change or start from the beginning of this form?"}),jsxRuntimeExports.jsx(Typography,{children:"Any information you previously entered will remain saved."})]})})}}const REACT_APP_REGION$k=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$g=REACT_APP_REGION$k,PageContainer$1=et=>{const{children:tt}=et;return jsxRuntimeExports.jsx("div",{className:"page-slider-container",children:jsxRuntimeExports.jsx("div",{className:classNames$1("page-container page-slider-container",{"uk-page-container":region$g===Region.UK}),children:jsxRuntimeExports.jsx("div",{className:classNames$1("page-content"),children:tt})})})};class PageTitle extends reactExports.Component{render(){const{title:tt,idPrefix:rt}=this.props;return jsxRuntimeExports.jsx("h2",{id:`${rt}-page-title`,className:"form-page-title",children:tt})}}const StyledSvg=styled$1("svg")`
  margin-bottom: 8px;
  margin-left: -8px;
  position: absolute;
}
`,StyledClose$2=styled$1("div")`
  cursor: pointer;
`,StyledMenu=et=>jsxRuntimeExports.jsx(Menu$1,{elevation:2,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...et}),SearchFilter=et=>{const[tt,rt]=React$4.useState(null),nt=useTheme$1(),lt=pt=>{rt(pt.currentTarget)},ut=()=>{rt(null)},dt=jsxRuntimeExports.jsx(StyledSvg,{height:"15",width:"15",children:jsxRuntimeExports.jsx("circle",{cx:"7.5",cy:"7.5",r:"7.5",fill:nt.palette.success.dark})});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Button,{"data-testid":"search-filter-button",color:"secondary",startIcon:jsxRuntimeExports.jsx(FilterList$2,{}),onClick:lt,children:"Filter"}),jsxRuntimeExports.jsxs(StyledMenu,{id:"customized-menu",anchorEl:tt,keepMounted:!0,open:!!tt,onClose:ut,children:[jsxRuntimeExports.jsx(Box,{display:"flex",flexDirection:"row-reverse",mx:1,children:jsxRuntimeExports.jsx(StyledClose$2,{"data-test-id":"close-filter",onClick:ut,children:jsxRuntimeExports.jsx(CloseIcon,{color:"primary"})})}),et.children]}),et.showAlert&&dt]})},StyledLabel$2=styled$1(InputLabel)`
  &.MuiFormLabel-root.Mui-focused {
    color: ${et=>et.theme.palette.primary.dark};
  },
`,StyledInput=styled$1(Input$4)`
  &.MuiInput-underline:after {
    border-bottom: 2px solid ${et=>et.theme.palette.primary.dark};
  }
`,FieldWrapper=styled$1("div")`
  display: inline-flex;
  flex-wrap: wrap;
`,ChipsWrapper=styled$1("div")`
  display: flex;
  flex-wrap: wrap;
`,StyledChip$1=styled$1(Chip)`
  && {
    margin: 2px;
  }
`,StyledFormControl=styled$1(FormControl)`
  && {
    min-width: 200px;
    max-width: 400px;
  }
`,StyledSelect=styled$1(Select$3)`
  && {
    margin: 16px 8px 8px 0px;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
  }
`,StyledCheckbox$2=styled$1(Checkbox$1)`
&& {
  &.Mui-checked {
    color: ${et=>et.checked?et.theme.palette.primary.dark:"white"};
  }
}}
`,StyledClose$1=styled$1("div")`
  cursor: pointer;
`,arrayMatch=(et,tt)=>([...et]=et.sort(),[...tt]=tt.sort(),Array.isArray(et)&&Array.isArray(tt)&&et.length===tt.length&&et.every((rt,nt)=>rt===tt[nt])),SearchMultiSelectField=({options:et,placeholder:tt,selectedOptionsUpdated:rt,resetSearchResults:nt,defaultSelectedOptions:lt,allSelected:ut,allSelectedLabel:dt,selectAllEnabled:pt,selectAllLabel:ht})=>{const mt=[],[xt,Mt]=React$4.useState(lt||[]),[vt,Ot]=React$4.useState(!1),[At,Rt]=React$4.useState(!1);if(reactExports.useEffect(()=>{Mt(lt),lt&&lt.length&&arrayMatch(mt,lt)&&Ot(!0)},[lt,mt]),!(et!=null&&et.length))return null;et==null||et.forEach(It=>{mt.push(It.value)});const zt=It=>{const Dt=It.target.value||"";if(Dt[0]==="SelectAll"||Dt.indexOf("SelectAll")>-1){Tt(mt);return}Mt(Dt),rt(Dt),nt(),arrayMatch(Dt,mt)?Ot(!0):Ot(!1)},Tt=It=>{Ot(!vt),Mt(vt?[]:It),rt(vt?[]:It),nt()},Ct=It=>jsxRuntimeExports.jsx(ChipsWrapper,{children:ut===!0&&dt&&It.length>1?jsxRuntimeExports.jsx(StyledChip$1,{label:dt},dt):It.map(Dt=>{var qt;const kt=(qt=et.find(Nt=>Nt.value===Dt))==null?void 0:qt.label;return jsxRuntimeExports.jsx(StyledChip$1,{label:kt},Dt)})});return jsxRuntimeExports.jsx(FieldWrapper,{children:jsxRuntimeExports.jsxs(StyledFormControl,{children:[jsxRuntimeExports.jsx(StyledLabel$2,{id:`search-multi-select-${tt}`,children:tt}),jsxRuntimeExports.jsxs(StyledSelect,{multiple:!0,"data-test-id":`search-filter-${tt}`,"data-testid":`search-filter-${tt}`,value:xt,onChange:zt,input:jsxRuntimeExports.jsx(StyledInput,{}),placeholder:tt,renderValue:Ct,open:At,onOpen:()=>Rt(!0),onClose:()=>Rt(!1),children:[jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"space-between",p:1,mx:1,children:[jsxRuntimeExports.jsx("span",{style:{color:"grey"},children:jsxRuntimeExports.jsx("em",{children:tt})}),jsxRuntimeExports.jsx(StyledClose$1,{"data-test-id":`close-${tt}`,onClick:It=>{It.stopPropagation(),Rt(!1)},children:jsxRuntimeExports.jsx(CloseIcon,{color:"primary"})})]}),pt&&jsxRuntimeExports.jsxs(MenuItem,{value:"SelectAll",onChange:()=>{Tt(mt)},children:[jsxRuntimeExports.jsx(StyledCheckbox$2,{checked:vt}),jsxRuntimeExports.jsx(ListItemText,{primary:ht||"Select all"})]},"SelectAll"),et==null?void 0:et.map(It=>jsxRuntimeExports.jsxs(MenuItem,{"data-test-id":`${tt}-${It.label}`,value:It.value,children:[jsxRuntimeExports.jsx(StyledCheckbox$2,{checked:xt.indexOf(It.value)>-1}),jsxRuntimeExports.jsx(ListItemText,{primary:It.label})]},It.label))]})]})})};var COMMON_MIME_TYPES=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(et,tt){var rt=withMimeType(et);if(typeof rt.path!="string"){var nt=et.webkitRelativePath;Object.defineProperty(rt,"path",{value:typeof tt=="string"?tt:typeof nt=="string"&&nt.length>0?nt:et.name,writable:!1,configurable:!1,enumerable:!0})}return rt}function withMimeType(et){var tt=et.name,rt=tt&&tt.lastIndexOf(".")!==-1;if(rt&&!et.type){var nt=tt.split(".").pop().toLowerCase(),lt=COMMON_MIME_TYPES.get(nt);lt&&Object.defineProperty(et,"type",{value:lt,writable:!1,configurable:!1,enumerable:!0})}return et}var FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(et){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(tt){return isObject$5(et)&&isDataTransfer(et.dataTransfer)?[2,getDataTransferFiles(et.dataTransfer,et.type)]:isChangeEvt(et)?[2,getInputFiles(et)]:Array.isArray(et)&&et.every(function(rt){return"getFile"in rt&&typeof rt.getFile=="function"})?[2,getFsHandleFiles(et)]:[2,[]]})})}function isDataTransfer(et){return isObject$5(et)}function isChangeEvt(et){return isObject$5(et)&&isObject$5(et.target)}function isObject$5(et){return typeof et=="object"&&et!==null}function getInputFiles(et){return fromList(et.target.files).map(function(tt){return toFileWithPath(tt)})}function getFsHandleFiles(et){return __awaiter$1(this,void 0,void 0,function(){var tt;return __generator$1(this,function(rt){switch(rt.label){case 0:return[4,Promise.all(et.map(function(nt){return nt.getFile()}))];case 1:return tt=rt.sent(),[2,tt.map(function(nt){return toFileWithPath(nt)})]}})})}function getDataTransferFiles(et,tt){return __awaiter$1(this,void 0,void 0,function(){var rt,nt;return __generator$1(this,function(lt){switch(lt.label){case 0:return et.items?(rt=fromList(et.items).filter(function(ut){return ut.kind==="file"}),tt!=="drop"?[2,rt]:[4,Promise.all(rt.map(toFilePromises))]):[3,2];case 1:return nt=lt.sent(),[2,noIgnoredFiles(flatten(nt))];case 2:return[2,noIgnoredFiles(fromList(et.files).map(function(ut){return toFileWithPath(ut)}))]}})})}function noIgnoredFiles(et){return et.filter(function(tt){return FILES_TO_IGNORE.indexOf(tt.name)===-1})}function fromList(et){if(et===null)return[];for(var tt=[],rt=0;rt<et.length;rt++){var nt=et[rt];tt.push(nt)}return tt}function toFilePromises(et){if(typeof et.webkitGetAsEntry!="function")return fromDataTransferItem(et);var tt=et.webkitGetAsEntry();return tt&&tt.isDirectory?fromDirEntry(tt):fromDataTransferItem(et)}function flatten(et){return et.reduce(function(tt,rt){return __spreadArray$2(__spreadArray$2([],__read(tt),!1),__read(Array.isArray(rt)?flatten(rt):[rt]),!1)},[])}function fromDataTransferItem(et){var tt=et.getAsFile();if(!tt)return Promise.reject("".concat(et," is not a File"));var rt=toFileWithPath(tt);return Promise.resolve(rt)}function fromEntry(et){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(tt){return[2,et.isDirectory?fromDirEntry(et):fromFileEntry(et)]})})}function fromDirEntry(et){var tt=et.createReader();return new Promise(function(rt,nt){var lt=[];function ut(){var dt=this;tt.readEntries(function(pt){return __awaiter$1(dt,void 0,void 0,function(){var ht,mt,xt;return __generator$1(this,function(Mt){switch(Mt.label){case 0:if(pt.length)return[3,5];Mt.label=1;case 1:return Mt.trys.push([1,3,,4]),[4,Promise.all(lt)];case 2:return ht=Mt.sent(),rt(ht),[3,4];case 3:return mt=Mt.sent(),nt(mt),[3,4];case 4:return[3,6];case 5:xt=Promise.all(pt.map(fromEntry)),lt.push(xt),ut(),Mt.label=6;case 6:return[2]}})})},function(pt){nt(pt)})}ut()})}function fromFileEntry(et){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(tt){return[2,new Promise(function(rt,nt){et.file(function(lt){var ut=toFileWithPath(lt,et.fullPath);rt(ut)},function(lt){nt(lt)})})]})})}var _default=function(et,tt){if(et&&tt){var rt=Array.isArray(tt)?tt:tt.split(","),nt=et.name||"",lt=(et.type||"").toLowerCase(),ut=lt.replace(/\/.*$/,"");return rt.some(function(dt){var pt=dt.trim().toLowerCase();return pt.charAt(0)==="."?nt.toLowerCase().endsWith(pt):pt.endsWith("/*")?ut===pt.replace(/\/.*$/,""):lt===pt})}return!0};function _toConsumableArray$1(et){return _arrayWithoutHoles$1(et)||_iterableToArray$1(et)||_unsupportedIterableToArray$1(et)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$1(et){if(typeof Symbol<"u"&&et[Symbol.iterator]!=null||et["@@iterator"]!=null)return Array.from(et)}function _arrayWithoutHoles$1(et){if(Array.isArray(et))return _arrayLikeToArray$1(et)}function ownKeys$2(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread$1(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$2(Object(rt),!0).forEach(function(nt){_defineProperty$1(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$2(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty$1(et,tt,rt){return tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _slicedToArray$1(et,tt){return _arrayWithHoles$1(et)||_iterableToArrayLimit$1(et,tt)||_unsupportedIterableToArray$1(et,tt)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray$1(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray$1(et,tt)}}function _arrayLikeToArray$1(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _iterableToArrayLimit$1(et,tt){var rt=et==null?null:typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt!=null){var nt=[],lt=!0,ut=!1,dt,pt;try{for(rt=rt.call(et);!(lt=(dt=rt.next()).done)&&(nt.push(dt.value),!(tt&&nt.length===tt));lt=!0);}catch(ht){ut=!0,pt=ht}finally{try{!lt&&rt.return!=null&&rt.return()}finally{if(ut)throw pt}}return nt}}function _arrayWithHoles$1(et){if(Array.isArray(et))return et}var FILE_INVALID_TYPE="file-invalid-type",FILE_TOO_LARGE="file-too-large",FILE_TOO_SMALL="file-too-small",TOO_MANY_FILES="too-many-files",getInvalidTypeRejectionErr=function(tt){tt=Array.isArray(tt)&&tt.length===1?tt[0]:tt;var rt=Array.isArray(tt)?"one of ".concat(tt.join(", ")):tt;return{code:FILE_INVALID_TYPE,message:"File type must be ".concat(rt)}},getTooLargeRejectionErr=function(tt){return{code:FILE_TOO_LARGE,message:"File is larger than ".concat(tt," ").concat(tt===1?"byte":"bytes")}},getTooSmallRejectionErr=function(tt){return{code:FILE_TOO_SMALL,message:"File is smaller than ".concat(tt," ").concat(tt===1?"byte":"bytes")}},TOO_MANY_FILES_REJECTION={code:TOO_MANY_FILES,message:"Too many files"};function fileAccepted(et,tt){var rt=et.type==="application/x-moz-file"||_default(et,tt);return[rt,rt?null:getInvalidTypeRejectionErr(tt)]}function fileMatchSize(et,tt,rt){if(isDefined$1(et.size))if(isDefined$1(tt)&&isDefined$1(rt)){if(et.size>rt)return[!1,getTooLargeRejectionErr(rt)];if(et.size<tt)return[!1,getTooSmallRejectionErr(tt)]}else{if(isDefined$1(tt)&&et.size<tt)return[!1,getTooSmallRejectionErr(tt)];if(isDefined$1(rt)&&et.size>rt)return[!1,getTooLargeRejectionErr(rt)]}return[!0,null]}function isDefined$1(et){return et!=null}function allFilesAccepted(et){var tt=et.files,rt=et.accept,nt=et.minSize,lt=et.maxSize,ut=et.multiple,dt=et.maxFiles,pt=et.validator;return!ut&&tt.length>1||ut&&dt>=1&&tt.length>dt?!1:tt.every(function(ht){var mt=fileAccepted(ht,rt),xt=_slicedToArray$1(mt,1),Mt=xt[0],vt=fileMatchSize(ht,nt,lt),Ot=_slicedToArray$1(vt,1),At=Ot[0],Rt=pt?pt(ht):null;return Mt&&At&&!Rt})}function isPropagationStopped(et){return typeof et.isPropagationStopped=="function"?et.isPropagationStopped():typeof et.cancelBubble<"u"?et.cancelBubble:!1}function isEvtWithFiles(et){return et.dataTransfer?Array.prototype.some.call(et.dataTransfer.types,function(tt){return tt==="Files"||tt==="application/x-moz-file"}):!!et.target&&!!et.target.files}function onDocumentDragOver(et){et.preventDefault()}function isIe(et){return et.indexOf("MSIE")!==-1||et.indexOf("Trident/")!==-1}function isEdge(et){return et.indexOf("Edge/")!==-1}function isIeOrEdge(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return isIe(et)||isEdge(et)}function composeEventHandlers(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return function(nt){for(var lt=arguments.length,ut=new Array(lt>1?lt-1:0),dt=1;dt<lt;dt++)ut[dt-1]=arguments[dt];return tt.some(function(pt){return!isPropagationStopped(nt)&&pt&&pt.apply(void 0,[nt].concat(ut)),isPropagationStopped(nt)})}}function canUseFileSystemAccessAPI(){return"showOpenFilePicker"in window}function pickerOptionsFromAccept(et){if(isDefined$1(et)){var tt=Object.entries(et).filter(function(rt){var nt=_slicedToArray$1(rt,2),lt=nt[0],ut=nt[1],dt=!0;return isMIMEType(lt)||(console.warn('Skipped "'.concat(lt,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),dt=!1),(!Array.isArray(ut)||!ut.every(isExt))&&(console.warn('Skipped "'.concat(lt,'" because an invalid file extension was provided.')),dt=!1),dt}).reduce(function(rt,nt){var lt=_slicedToArray$1(nt,2),ut=lt[0],dt=lt[1];return _objectSpread$1(_objectSpread$1({},rt),{},_defineProperty$1({},ut,dt))},{});return[{description:"Files",accept:tt}]}return et}function acceptPropAsAcceptAttr(et){if(isDefined$1(et))return Object.entries(et).reduce(function(tt,rt){var nt=_slicedToArray$1(rt,2),lt=nt[0],ut=nt[1];return[].concat(_toConsumableArray$1(tt),[lt],_toConsumableArray$1(ut))},[]).filter(function(tt){return isMIMEType(tt)||isExt(tt)}).join(",")}function isAbort(et){return et instanceof DOMException&&(et.name==="AbortError"||et.code===et.ABORT_ERR)}function isSecurityError(et){return et instanceof DOMException&&(et.name==="SecurityError"||et.code===et.SECURITY_ERR)}function isMIMEType(et){return et==="audio/*"||et==="video/*"||et==="image/*"||et==="text/*"||/\w+\/[-+.\w]+/g.test(et)}function isExt(et){return/^.*\.[\w]+$/.test(et)}var _excluded$3=["children"],_excluded2$1=["open"],_excluded3=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],_excluded4=["refKey","onChange","onClick"];function _toConsumableArray(et){return _arrayWithoutHoles(et)||_iterableToArray(et)||_unsupportedIterableToArray(et)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray(et){if(typeof Symbol<"u"&&et[Symbol.iterator]!=null||et["@@iterator"]!=null)return Array.from(et)}function _arrayWithoutHoles(et){if(Array.isArray(et))return _arrayLikeToArray(et)}function _slicedToArray(et,tt){return _arrayWithHoles(et)||_iterableToArrayLimit(et,tt)||_unsupportedIterableToArray(et,tt)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(et,tt){if(et){if(typeof et=="string")return _arrayLikeToArray(et,tt);var rt=Object.prototype.toString.call(et).slice(8,-1);if(rt==="Object"&&et.constructor&&(rt=et.constructor.name),rt==="Map"||rt==="Set")return Array.from(et);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return _arrayLikeToArray(et,tt)}}function _arrayLikeToArray(et,tt){(tt==null||tt>et.length)&&(tt=et.length);for(var rt=0,nt=new Array(tt);rt<tt;rt++)nt[rt]=et[rt];return nt}function _iterableToArrayLimit(et,tt){var rt=et==null?null:typeof Symbol<"u"&&et[Symbol.iterator]||et["@@iterator"];if(rt!=null){var nt=[],lt=!0,ut=!1,dt,pt;try{for(rt=rt.call(et);!(lt=(dt=rt.next()).done)&&(nt.push(dt.value),!(tt&&nt.length===tt));lt=!0);}catch(ht){ut=!0,pt=ht}finally{try{!lt&&rt.return!=null&&rt.return()}finally{if(ut)throw pt}}return nt}}function _arrayWithHoles(et){if(Array.isArray(et))return et}function ownKeys$1(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys$1(Object(rt),!0).forEach(function(nt){_defineProperty(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys$1(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function _defineProperty(et,tt,rt){return tt in et?Object.defineProperty(et,tt,{value:rt,enumerable:!0,configurable:!0,writable:!0}):et[tt]=rt,et}function _objectWithoutProperties(et,tt){if(et==null)return{};var rt=_objectWithoutPropertiesLoose(et,tt),nt,lt;if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(et);for(lt=0;lt<ut.length;lt++)nt=ut[lt],!(tt.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(et,nt)&&(rt[nt]=et[nt])}return rt}function _objectWithoutPropertiesLoose(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),lt,ut;for(ut=0;ut<nt.length;ut++)lt=nt[ut],!(tt.indexOf(lt)>=0)&&(rt[lt]=et[lt]);return rt}var Dropzone=reactExports.forwardRef(function(et,tt){var rt=et.children,nt=_objectWithoutProperties(et,_excluded$3),lt=useDropzone(nt),ut=lt.open,dt=_objectWithoutProperties(lt,_excluded2$1);return reactExports.useImperativeHandle(tt,function(){return{open:ut}},[ut]),React$4.createElement(reactExports.Fragment,null,rt(_objectSpread(_objectSpread({},dt),{},{open:ut})))});Dropzone.displayName="Dropzone";var defaultProps$2={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Dropzone.defaultProps=defaultProps$2;Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,maxFiles:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onFileDialogOpen:PropTypes.func,useFsAccessApi:PropTypes.bool,autoFocus:PropTypes.bool,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func,onError:PropTypes.func,validator:PropTypes.func};var initialState={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function useDropzone(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=_objectSpread(_objectSpread({},defaultProps$2),et),rt=tt.accept,nt=tt.disabled,lt=tt.getFilesFromEvent,ut=tt.maxSize,dt=tt.minSize,pt=tt.multiple,ht=tt.maxFiles,mt=tt.onDragEnter,xt=tt.onDragLeave,Mt=tt.onDragOver,vt=tt.onDrop,Ot=tt.onDropAccepted,At=tt.onDropRejected,Rt=tt.onFileDialogCancel,zt=tt.onFileDialogOpen,Tt=tt.useFsAccessApi,Ct=tt.autoFocus,It=tt.preventDropOnDocument,Dt=tt.noClick,kt=tt.noKeyboard,qt=tt.noDrag,Nt=tt.noDragEventsBubbling,Yt=tt.onError,Kt=tt.validator,Jt=reactExports.useMemo(function(){return acceptPropAsAcceptAttr(rt)},[rt]),Qt=reactExports.useMemo(function(){return pickerOptionsFromAccept(rt)},[rt]),Bt=reactExports.useMemo(function(){return typeof zt=="function"?zt:noop$5},[zt]),Ft=reactExports.useMemo(function(){return typeof Rt=="function"?Rt:noop$5},[Rt]),$t=reactExports.useRef(null),jt=reactExports.useRef(null),Wt=reactExports.useReducer(reducer$2,initialState),Ut=_slicedToArray(Wt,2),Vt=Ut[0],Ht=Ut[1],Gt=Vt.isFocused,Zt=Vt.isFileDialogActive,Xt=reactExports.useRef(typeof window<"u"&&window.isSecureContext&&Tt&&canUseFileSystemAccessAPI()),er=function(){!Xt.current&&Zt&&setTimeout(function(){if(jt.current){var Or=jt.current.files;Or.length||(Ht({type:"closeDialog"}),Ft())}},300)};reactExports.useEffect(function(){return window.addEventListener("focus",er,!1),function(){window.removeEventListener("focus",er,!1)}},[jt,Zt,Ft,Xt]);var nr=reactExports.useRef([]),or=function(Or){$t.current&&$t.current.contains(Or.target)||(Or.preventDefault(),nr.current=[])};reactExports.useEffect(function(){return It&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",or,!1)),function(){It&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",or))}},[$t,It]),reactExports.useEffect(function(){return!nt&&Ct&&$t.current&&$t.current.focus(),function(){}},[$t,Ct,nt]);var rr=reactExports.useCallback(function(yr){Yt?Yt(yr):console.error(yr)},[Yt]),cr=reactExports.useCallback(function(yr){yr.preventDefault(),yr.persist(),qr(yr),nr.current=[].concat(_toConsumableArray(nr.current),[yr.target]),isEvtWithFiles(yr)&&Promise.resolve(lt(yr)).then(function(Or){if(!(isPropagationStopped(yr)&&!Nt)){var Dr=Or.length,Fr=Dr>0&&allFilesAccepted({files:Or,accept:Jt,minSize:dt,maxSize:ut,multiple:pt,maxFiles:ht,validator:Kt}),Yr=Dr>0&&!Fr;Ht({isDragAccept:Fr,isDragReject:Yr,isDragActive:!0,type:"setDraggedFiles"}),mt&&mt(yr)}}).catch(function(Or){return rr(Or)})},[lt,mt,rr,Nt,Jt,dt,ut,pt,ht,Kt]),ir=reactExports.useCallback(function(yr){yr.preventDefault(),yr.persist(),qr(yr);var Or=isEvtWithFiles(yr);if(Or&&yr.dataTransfer)try{yr.dataTransfer.dropEffect="copy"}catch{}return Or&&Mt&&Mt(yr),!1},[Mt,Nt]),dr=reactExports.useCallback(function(yr){yr.preventDefault(),yr.persist(),qr(yr);var Or=nr.current.filter(function(Fr){return $t.current&&$t.current.contains(Fr)}),Dr=Or.indexOf(yr.target);Dr!==-1&&Or.splice(Dr,1),nr.current=Or,!(Or.length>0)&&(Ht({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),isEvtWithFiles(yr)&&xt&&xt(yr))},[$t,xt,Nt]),gr=reactExports.useCallback(function(yr,Or){var Dr=[],Fr=[];yr.forEach(function(Yr){var Gr=fileAccepted(Yr,Jt),Jr=_slicedToArray(Gr,2),jr=Jr[0],Zr=Jr[1],Xr=fileMatchSize(Yr,dt,ut),cn=_slicedToArray(Xr,2),Qr=cn[0],rn=cn[1],_r=Kt?Kt(Yr):null;if(jr&&Qr&&!_r)Dr.push(Yr);else{var ln=[Zr,rn];_r&&(ln=ln.concat(_r)),Fr.push({file:Yr,errors:ln.filter(function(vn){return vn})})}}),(!pt&&Dr.length>1||pt&&ht>=1&&Dr.length>ht)&&(Dr.forEach(function(Yr){Fr.push({file:Yr,errors:[TOO_MANY_FILES_REJECTION]})}),Dr.splice(0)),Ht({acceptedFiles:Dr,fileRejections:Fr,type:"setFiles"}),vt&&vt(Dr,Fr,Or),Fr.length>0&&At&&At(Fr,Or),Dr.length>0&&Ot&&Ot(Dr,Or)},[Ht,pt,Jt,dt,ut,ht,vt,Ot,At,Kt]),br=reactExports.useCallback(function(yr){yr.preventDefault(),yr.persist(),qr(yr),nr.current=[],isEvtWithFiles(yr)&&Promise.resolve(lt(yr)).then(function(Or){isPropagationStopped(yr)&&!Nt||gr(Or,yr)}).catch(function(Or){return rr(Or)}),Ht({type:"reset"})},[lt,gr,rr,Nt]),ar=reactExports.useCallback(function(){if(Xt.current){Ht({type:"openDialog"}),Bt();var yr={multiple:pt,types:Qt};window.showOpenFilePicker(yr).then(function(Or){return lt(Or)}).then(function(Or){gr(Or,null),Ht({type:"closeDialog"})}).catch(function(Or){isAbort(Or)?(Ft(Or),Ht({type:"closeDialog"})):isSecurityError(Or)?(Xt.current=!1,jt.current?(jt.current.value=null,jt.current.click()):rr(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):rr(Or)});return}jt.current&&(Ht({type:"openDialog"}),Bt(),jt.current.value=null,jt.current.click())},[Ht,Bt,Ft,Tt,gr,rr,Qt,pt]),ur=reactExports.useCallback(function(yr){!$t.current||!$t.current.isEqualNode(yr.target)||(yr.key===" "||yr.key==="Enter"||yr.keyCode===32||yr.keyCode===13)&&(yr.preventDefault(),ar())},[$t,ar]),xr=reactExports.useCallback(function(){Ht({type:"focus"})},[]),Mr=reactExports.useCallback(function(){Ht({type:"blur"})},[]),Ar=reactExports.useCallback(function(){Dt||(isIeOrEdge()?setTimeout(ar,0):ar())},[Dt,ar]),Ir=function(Or){return nt?null:Or},Rr=function(Or){return kt?null:Ir(Or)},wr=function(Or){return qt?null:Ir(Or)},qr=function(Or){Nt&&Or.stopPropagation()},Hr=reactExports.useMemo(function(){return function(){var yr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Or=yr.refKey,Dr=Or===void 0?"ref":Or,Fr=yr.role,Yr=yr.onKeyDown,Gr=yr.onFocus,Jr=yr.onBlur,jr=yr.onClick,Zr=yr.onDragEnter,Xr=yr.onDragOver,cn=yr.onDragLeave,Qr=yr.onDrop,rn=_objectWithoutProperties(yr,_excluded3);return _objectSpread(_objectSpread(_defineProperty({onKeyDown:Rr(composeEventHandlers(Yr,ur)),onFocus:Rr(composeEventHandlers(Gr,xr)),onBlur:Rr(composeEventHandlers(Jr,Mr)),onClick:Ir(composeEventHandlers(jr,Ar)),onDragEnter:wr(composeEventHandlers(Zr,cr)),onDragOver:wr(composeEventHandlers(Xr,ir)),onDragLeave:wr(composeEventHandlers(cn,dr)),onDrop:wr(composeEventHandlers(Qr,br)),role:typeof Fr=="string"&&Fr!==""?Fr:"presentation"},Dr,$t),!nt&&!kt?{tabIndex:0}:{}),rn)}},[$t,ur,xr,Mr,Ar,cr,ir,dr,br,kt,qt,nt]),kr=reactExports.useCallback(function(yr){yr.stopPropagation()},[]),$r=reactExports.useMemo(function(){return function(){var yr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Or=yr.refKey,Dr=Or===void 0?"ref":Or,Fr=yr.onChange,Yr=yr.onClick,Gr=_objectWithoutProperties(yr,_excluded4),Jr=_defineProperty({accept:Jt,multiple:pt,type:"file",style:{display:"none"},onChange:Ir(composeEventHandlers(Fr,br)),onClick:Ir(composeEventHandlers(Yr,kr)),tabIndex:-1},Dr,jt);return _objectSpread(_objectSpread({},Jr),Gr)}},[jt,rt,pt,br,nt]);return _objectSpread(_objectSpread({},Vt),{},{isFocused:Gt&&!nt,getRootProps:Hr,getInputProps:$r,rootRef:$t,inputRef:jt,open:Ir(ar)})}function reducer$2(et,tt){switch(tt.type){case"focus":return _objectSpread(_objectSpread({},et),{},{isFocused:!0});case"blur":return _objectSpread(_objectSpread({},et),{},{isFocused:!1});case"openDialog":return _objectSpread(_objectSpread({},initialState),{},{isFileDialogActive:!0});case"closeDialog":return _objectSpread(_objectSpread({},et),{},{isFileDialogActive:!1});case"setDraggedFiles":return _objectSpread(_objectSpread({},et),{},{isDragActive:tt.isDragActive,isDragAccept:tt.isDragAccept,isDragReject:tt.isDragReject});case"setFiles":return _objectSpread(_objectSpread({},et),{},{acceptedFiles:tt.acceptedFiles,fileRejections:tt.fileRejections});case"reset":return _objectSpread({},initialState);default:return et}}function noop$5(){}const ATTACHMENT_FRAGMENT=gql`
  fragment Attachment on AttachmentType {
    id
    url
    documentType
    submitted
    encounterDate
    isRegistrationAttachment
  }
`,GET_PATIENT_ATTACHMENTS=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      attachments {
        id
        filename
        documentType
        submitted
        uploader {
          id
        }
        url
        encounterDate
        staging
        isRegistrationAttachment
      }
      userProfile {
        id
        hasPatId1
      }
    }
    user {
      id
      isRo
    }
  }
`,GET_UPLOAD_DETAILS=gql`
  query GetUploadDetails($fileName: String!) {
    fileUploadPayload(fileName: $fileName) {
      url
      fields {
        awsKey
        awsPayload
      }
    }
  }
`,CREATE_ATTACHMENT=gql`
  mutation createAttachment(
    $awsKey: String!
    $patientPk: String!
    $documentType: String!
    $encounterDate: String!
    $isRegistrationAttachment: Boolean
  ) {
    createAttachment(
      awsKey: $awsKey
      patientPk: $patientPk
      documentType: $documentType
      encounterDate: $encounterDate
      isRegistrationAttachment: $isRegistrationAttachment
    ) {
      attachment {
        id
        ...Attachment
      }
    }
  }

  ${ATTACHMENT_FRAGMENT}
`,CHANGE_DOCUMENT_TYPE=gql`
  mutation changeDocumentType($attachmentPk: String!, $documentType: String!) {
    changeDocumentType(attachmentPk: $attachmentPk, documentType: $documentType) {
      attachment {
        id
        ...Attachment
      }
    }
  }

  ${ATTACHMENT_FRAGMENT}
`,CHANGE_ENCOUNTER_DATE=gql`
  mutation changeEncounterDate($attachmentPk: String!, $encounterDate: String!) {
    changeEncounterDate(attachmentPk: $attachmentPk, encounterDate: $encounterDate) {
      attachment {
        id
        ...Attachment
      }
    }
  }

  ${ATTACHMENT_FRAGMENT}
`,DELETE_ATTACHMENT=gql`
  mutation deleteDocument($attachmentPk: String!) {
    deleteAttachment(attachmentPk: $attachmentPk) {
      ok
    }
  }
`,SET_STAGING_VALUE=gql`
  mutation setStagingValue($id: ID) {
    setStagingValue(id: $id) {
      attachment {
        id
        url
        documentType
        submitted
        staging
      }
    }
  }
`;gql`
  mutation CreateSubmission(
    $patientID: ID!
    $includePdf: Boolean
    $updateFormStatus: Boolean
    $fromHomeRego: Boolean
    $userPk: ID
    $isRegistrationSubmission: Boolean
  ) {
    createSubmission(
      patientId: $patientID
      includePdf: $includePdf
      updateFormStatus: $updateFormStatus
      fromHomeRego: $fromHomeRego
      userPk: $userPk
      isRegistrationSubmission: $isRegistrationSubmission
    ) {
      submission {
        id
        pdf
      }
    }
  }
`;const SUBMIT_ATTACHMENT=gql`
  mutation SubmitAttachment($patientID: ID!) {
    submitAttachment(patientId: $patientID) {
      success
    }
  }
`;gql`
  mutation UpdatePatient($id: ID!, $attachmentAcknowledged: Boolean!) {
    updatePatient(id: $id, attachmentAcknowledged: $attachmentAcknowledged) {
      patient {
        id
        attachmentAcknowledged
      }
    }
  }
`;const GET_ATTACHMENTS_TYPES=gql`
  query attachmentTypes {
    documentTypeRefData: attachmentTypes {
      id
      conceptCode
      conceptDisplay
    }
  }
`,getFileExtension=et=>{const tt=et.split(".");return tt[tt.length-1].toLowerCase()},allowedExtensions=["JPG","JPEG","PDF","BMP","PNG","GIF"],checkFileExtension=et=>allowedExtensions.indexOf(et.toUpperCase())===-1?`File attachments must be in ${allowedExtensions.join(", ")} format`:"",REACT_APP_REGION$j=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$f=REACT_APP_REGION$j,categories=["emergency","basic","contact","demographics"],isAU=region$f===Region.AU,applyRequired=({title:et,category:tt,optionalForPSO:rt})=>`${et}${isAU&&categories.includes(tt)&&!rt?"*":""}`,documentTypeOptions=[{id:"advance_care_directive",name:"Advance Care Directive"},{id:"concession_card",name:"Cards"},{id:"medication_list",name:"Medications list"},{id:"pacemaker_card",name:"CIED Card"},{id:"power_of_attorney",name:"Power of attorney"},{id:"referral",name:"Incoming referral"},{id:"other",name:"Other"}],getDocumentType=(et,tt="id")=>{const{documentType:rt,suggestedDocumentType:nt}=et,lt=rt||nt||null;return!nt&&rt?documentTypeOptions.filter(ut=>ut.id.toLowerCase()===lt)[0][tt]:lt&&lt!=="other"?documentTypeOptions.filter(ut=>ut.id.toLowerCase()===lt)[0][tt]:null};function useOnClickOutside(et,tt){reactExports.useEffect(()=>{const rt=nt=>{!et.current||et.current.contains(nt.target)||tt(nt)};return document.addEventListener("mousedown",rt),document.addEventListener("touchstart",rt),()=>{document.removeEventListener("mousedown",rt),document.removeEventListener("touchstart",rt)}},[et,tt])}function useWindowSize(){const[et,tt]=reactExports.useState({width:window.innerWidth,height:window.innerHeight});return reactExports.useEffect(()=>{function rt(){tt({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",rt),rt(),()=>window.removeEventListener("resize",rt)},[]),et}const defaultMutationCallback=et=>et;function useMutationObserver(et,tt,rt=defaultMutationCallback){const[nt,lt]=reactExports.useState(),ut=reactExports.useMemo(()=>new MutationObserver((dt,pt)=>{const ht=rt(dt,pt);lt(ht)}),[rt]);return reactExports.useEffect(()=>{if(et!=null&&et.current)return ut.observe(et==null?void 0:et.current,tt),()=>ut.disconnect()},[et,tt]),nt}function useOverflow(et){const[tt,rt]=reactExports.useState(!1),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!0),[pt,ht]=reactExports.useState(!1),[mt,xt]=reactExports.useState(!0),[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(),Rt=useWindowSize(),zt=()=>{var It,Dt;if(et&&et.current){const kt=et.current.scrollWidth-et.current.clientWidth;et.current.scrollLeft>=kt&&pt===!1?ht(!0):ht(!1),((It=et==null?void 0:et.current)==null?void 0:It.scrollLeft)===0?dt(!0):dt(!1);const qt=et.current.scrollHeight-et.current.clientHeight;et.current.scrollTop>=qt&&Mt===!1?vt(!0):vt(!1),((Dt=et==null?void 0:et.current)==null?void 0:Dt.scrollTop)===0?xt(!0):xt(!1)}};return useMutationObserver(et,{childList:!0,subtree:!0},It=>{for(const Dt of It)Dt.type==="childList"&&At(Dt)}),reactExports.useEffect(()=>{if(!(et!=null&&et.current))return;const It=et.current.scrollWidth>et.current.clientWidth,Dt=et.current.scrollHeight>et.current.clientHeight;return tt!==It&&rt(It),nt!==Dt&&lt(Dt),et.current.addEventListener("scroll",zt),()=>{var kt;(kt=et.current)==null||kt.removeEventListener("scroll",zt)}},[et,Rt.width,Ot]),{refXOverflowing:tt,refYOverflowing:nt,refXScrollBegin:ut,refXScrollEnd:pt,refYScrollBegin:mt,refYScrollEnd:Mt}}function usePrevious$2(et){const tt=reactExports.useRef();return reactExports.useEffect(()=>{tt.current=et},[et]),tt.current}const usePreventUnload=et=>{const tt=reactExports.useCallback(rt=>{rt.preventDefault(),rt.returnValue=""},[]);reactExports.useEffect(()=>(et&&window.addEventListener("beforeunload",tt),()=>{et&&window.removeEventListener("beforeunload",tt)}),[et,tt])},deepCopyFunction=et=>{let tt,rt;if(typeof et!="object"||et===null)return et;if(et instanceof Date)return new Date(et);if(et instanceof Date)return new Date(et);const nt=Array.isArray(et)?[]:{};for(rt in et)tt=et[rt],nt[rt]=deepCopyFunction(tt);return nt},Container$2=styled$1("div")`
  display: flex;
`,DeleteFile=styled$1("div")`
  cursor: pointer;
  border-radius: 128px;
  width: 90px;
  height: 36px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: get-rem-size(14px);
  color: ${et=>et.theme.palette.text.primary};

  svg {
    margin-left: 11px;
    margin-right: 7px;
  }

  #delete-icon {
    path {
      fill: ${et=>et.theme.palette.error.main};
      fill-opacity: 1;
    }
  }

  &:hover {
    background-color: ${et=>et.theme.palette.error.light};
  }
`,Description=styled$1("div")`
  margin-bottom: 16px;
`,ButtonsContainer=styled$1("section")`
  display: flex;
  width: 100%;
  margin-bottom: 0;
  justify-content: flex-end;
`,DeleteDocument=({document:et,documentId:tt,handleMutation:rt,dataTestId:nt})=>{const ut=useWindowSize().width<CUT_OFF_POINT,{activeFiles:dt,setActiveFiles:pt}=reactExports.useContext(FileContext),[ht,mt]=reactExports.useState(null),[xt,Mt]=reactExports.useState(!1),vt=Rt=>{const{currentTarget:zt}=Rt;mt(zt),Mt(!xt)},Ot=()=>{Mt(!1)},At=()=>{et.id?rt({variables:{attachmentPk:et.id}}):(dt.splice(tt,1),pt([...dt])),Mt(!1)};return jsxRuntimeExports.jsxs(Container$2,{children:[jsxRuntimeExports.jsxs(DeleteFile,{onClick:vt,"data-test-id":nt,children:[jsxRuntimeExports.jsx(SvgDelete,{id:"delete-icon"}),jsxRuntimeExports.jsx("strong",{children:DELETE_FILE})]}),jsxRuntimeExports.jsxs(Popover,{id:`dd-popover-${tt}`,title:DELETE_DOCUMENT.HEADER,open:xt,anchorEl:ht,handleClickAway:Ot,fadeTimeout:350,triangleLeftPos:ut?"-50px":"-10px",triangleBottomPos:"-15px",trianglePosition:ut?"285px":"168px",children:[jsxRuntimeExports.jsx(Description,{children:DELETE_DOCUMENT.DESCRIPTION}),jsxRuntimeExports.jsxs(ButtonsContainer,{children:[jsxRuntimeExports.jsx(Button,{onClick:Ot,children:"Cancel"}),jsxRuntimeExports.jsx(Button,{"data-testid":"delete-doc-btn",color:"error",onClick:At,children:"Delete"})]})]})]})},logger$O=new Logger("UploadToS3"),FileNameWrapper=styled$1("div")`
  display: flex;
  flex-direction: column;
  margin-top: 5px;
`,SuccessName=styled$1("div")`
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  text-decoration-line: underline;
  color: ${et=>et.theme.palette.info.main};
`,SuccessContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  font-size: 13px;
  line-height: 15px;
  align-items: center;
  color: black;
`,LoadingName=styled$1("div")`
  font-size: 16px;
  line-height: 24px;
`,LoadingContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  font-size: 13px;
  line-height: 15px;
  align-items: center;
  color: black;
`,FailedName=styled$1("div")`
  font-size: 16px;
  line-height: 24px;
  color: ${et=>et.theme.palette.error.main};
`,FailedContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  font-size: 13px;
  line-height: 15px;
  align-items: center;
  color: ${et=>et.theme.palette.error.main};
`,SuccessIcon=styled$1(CheckCircleOutlined)`
  width: 16px;
  height: 16px;
  margin-right: 5px;
`,ErrorIcon=styled$1(SvgErrorCross)`
  width: 18px;
  height: 18px;
  margin-right: 5px;
`,UploadToS3=({index:et,patientId:tt})=>{const{activeFiles:rt,setActiveFiles:nt}=reactExports.useContext(FileContext),[lt,{error:ut}]=useMutation(CREATE_ATTACHMENT,{awaitRefetchQueries:!0,refetchQueries:[{query:GET_PATIENT_ATTACHMENTS,variables:{id:tt}}]});useTheme$1();const dt=Mt=>{if(rt[Mt].uploadErrors!==""||rt[Mt].uploadingToS3===!0)return;rt[Mt].uploadingToS3=!0;const vt=new XMLHttpRequest,Ot=new FormData,At=JSON.parse(rt[Mt].s3Fields.awsPayload);for(const[Rt,zt]of Object.entries(At.fields))Ot.append(Rt,String(zt));Ot.append("Content-Type",rt[Mt].baseFile.type),Ot.append("file",rt[Mt].baseFile),vt.addEventListener("load",()=>{const Rt=vt.status;[200,201,204].includes(Rt)?lt({variables:{awsKey:rt[Mt].s3Fields.awsKey,patientPk:tt,documentType:"",encounterDate:rt[Mt].encounterDate}}).then(zt=>{if(!zt.data.errors){const Tt=zt.data.createAttachment.attachment;rt[Mt].id=Tt.id,rt[Mt].loading=!1}}):(rt[Mt].loading=!1,rt[Mt].uploadErrors=UPLOAD_ERRORS.other,nt([...rt]))}),vt.addEventListener("error",()=>{rt[Mt].loading=!1,rt[Mt].uploadErrors=UPLOAD_ERRORS.other,nt([...rt])}),vt.open("POST",rt[Mt].baseS3Url),vt.send(Ot)},pt=!(rt[et].accepted&&rt[et].previewUrl===""&&rt[et].uploadErrors==="");!rt[et].baseFile.name&&!pt&&logger$O.error(`UploadToS3.tsx may be attempting to upload a file without a name. File ${rt[et]}`);const{data:ht,error:mt}=useQuery(GET_UPLOAD_DETAILS,{variables:{fileName:rt[et].baseFile.name},skip:pt});ht!=null&&ht.fileUploadPayload&&!pt&&(rt[et].baseS3Url=ht.fileUploadPayload.url,rt[et].s3Fields=ht.fileUploadPayload.fields,dt(et)),reactExports.useEffect(()=>{(mt||ut)&&(rt[et].uploadErrors="Upload failed. Please try again.",rt[et].loading=!1),nt([...rt])},[mt,ut]);const xt=rt[et].loading?"Loading":rt[et].uploadErrors===""?"Success":"Failed";return jsxRuntimeExports.jsx(FileNameWrapper,{children:xt==="Loading"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LoadingName,{children:rt[et].baseFile.name}),jsxRuntimeExports.jsx(LoadingContainer,{children:"Uploading..."})]}):xt==="Success"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("a",{href:rt[et].previewUrl,target:"_blank",rel:"noopener noreferrer",children:jsxRuntimeExports.jsx(SuccessName,{children:rt[et].baseFile.name})}),jsxRuntimeExports.jsxs(SuccessContainer,{children:[jsxRuntimeExports.jsx(SuccessIcon,{color:"primary"}),"Uploaded"]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FailedName,{children:rt[et].baseFile.name}),jsxRuntimeExports.jsxs(FailedContainer,{children:[jsxRuntimeExports.jsx(ErrorIcon,{}),rt[et].uploadErrors]})]})})},region$e=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,DocUploadWrapper=styled$1("div")`
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
`,StyledContainer$4=styled$1("div")`
  height: 100%;
  overflow: auto;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
  margin-bottom: 16px;
`,StyledBoxHeader=styled$1("h3")`
  font-style: normal;
  font-weight: bold;
  font-size: 23px;
  line-height: 28px;
  width: 100%;
  color: ${et=>et.theme.palette.text.primary};
`,TableContainer$4=styled$1("div")`
  overflow-y: auto;
  min-height: 8.2%;
  margin: 15px 0px 30px 0px;
`,StyledTable$2=styled$1("table")`
  display: table;
  width: 100%;
  font-size: 16px;
  line-height: 52px;
  float: left;
  border-collapse: separate;
`,Header$4=styled$1("thead")`
  width: auto;
  font-weight: 500;
  th {
    top: 0;
    background: ${et=>et.theme.palette.grey[100]};
    font-weight: 500;
    position: sticky;
    z-index: 100;
  }
`,HeaderRow$3=styled$1("tr")`
  width: auto;
`,HeaderCol$2=styled$1("th")`
  width: auto;
  vertical-align: middle;
  border-collapse: collapse;
  padding: 0 16px;
  text-align: left;
`,DataBody$2=styled$1("tbody")`
  width: auto;
`,DataCol$2=styled$1("td")`
  width: auto;
  border-collapse: collapse;
  padding: 8px 8px 8px 16px;
  text-align: left;
`,StyledDragAndDropBox=styled$1(Stack$5)`
  height: 143px;
  border: 1px dashed ${et=>et.theme.palette.grey[200]};
  border-radius: 4px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  cursor: pointer;
`,FileUploadLabel=styled$1(Typography)`
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
`,FilesAcceptedLabel=styled$1(Typography)`
  font-size: 13px;
  line-height: 15px;
  cursor: pointer;
`,UploadIcon$2=styled$1(UploadOutlinedIcon)`
  width: 24px;
  height: 24px;
  margin-top: -5px;
  margin-right: 5px;
  cursor: pointer;
`,StyledDropDown$1=styled$1(DropDownField)`
  width: 90%;
  border: 1px ${et=>et.theme.palette.grey[300]} solid !important;
  border-radius: 4px;
  height: 42px !important;
  padding-top: 1px;
`,FooterWrapper=styled$1("div")`
  background: white;
  position: fixed;
  right: 0;
  left: 240px;
  bottom: 0;
  @media screen and (max-width: 576px) {
    left: 0;
  }
`,StyledFooter$1=styled$1("div")`
  display: flex;
  justify-content: space-between;
  text-align: end;
  border-top: 1px solid ${et=>et.theme.palette.primary.main};
  padding: 12px 24px;
  && button {
    margin: 0px;
  }
`,DataRow$2=styled$1("tr")`
  background: 'none';
  & td:first-child {
    text-align: left;
    border-radius: 'none';
    border-left: 'none';
    vertical-align: top;
  }
  & td:last-child {
    border-radius: 'none';
    border-right: 'none';
  }
  & td {
    border-top: 'none';
    border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
    text-align: left;
  }
  box-shadow: 0px 1px 0px ${et=>et.theme.palette.grey[300]};
  width: auto;
  height: 50px;
`,StyledSubmitModalBody=styled$1("div")`
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.4rem;
`,StyledSubmitModalBodyNote=styled$1("div")`
  font-weight: 500;
`,DocumentUpload$1=et=>{var Ht;const{patientId:tt,userId:rt,currentDocuments:nt,onSubmitDocumentUpload:lt,onCancelDocumentUpload:ut}=et,{state:dt}=reactExports.useContext(UserContext),[pt,ht]=reactExports.useState(documentTypeOptions),{activeFiles:mt,setActiveFiles:xt}=reactExports.useContext(FileContext),{PSO:Mt,RO:vt,OTHER:Ot}=RoleType,[At,Rt]=reactExports.useState(!1),[zt,Tt]=reactExports.useState(!1),[Ct,It]=reactExports.useState(!1),[Dt]=useMutation(SET_STAGING_VALUE,{awaitRefetchQueries:!0,refetchQueries:[{query:GET_PATIENT_ATTACHMENTS,variables:{id:tt}}]});useQuery(GET_ATTACHMENTS_TYPES,{skip:region$e!==Region.UK,onCompleted:Gt=>{const Xt=(Gt!=null&&Gt.documentTypeRefData?Gt==null?void 0:Gt.documentTypeRefData:[]).map((er,nr)=>({id:er.conceptCode,key:nr,name:er.conceptDisplay}));Xt.length>0&&ht(Xt)}});const kt=`File types accepted:  ${allowedExtensions.join(", ")}`,qt={[Mt]:{headers:["File name","Type*","Encounter date*","Actions"],widths:["40%","25%","25%","10%"]},[vt]:{headers:["File name","Type*","Encounter date*","Actions"],widths:["40%","25%","25%","10%"]},[Ot]:{headers:["File name","Actions"],widths:["80%","20%"]}},Nt=dt.primaryRole!==Ot,Yt=dt.primaryRole!==Ot,[Kt]=useMutation(CHANGE_DOCUMENT_TYPE),[Jt]=useMutation(CHANGE_ENCOUNTER_DATE),[Qt]=useMutation(DELETE_ATTACHMENT,{awaitRefetchQueries:!0,refetchQueries:[{query:GET_PATIENT_ATTACHMENTS,variables:{id:tt}}]});reactExports.useEffect(()=>{const Gt=mt==null?void 0:mt.filter(Xt=>Xt.accepted===!1),Zt=nt==null?void 0:nt.map(Xt=>({id:Xt.id,baseFile:{name:Xt.filename,type:Xt.documentType},encounterDate:Xt.encounterDate,accepted:!0,uploadErrors:"",loading:!1,baseS3Url:"",uploadingToS3:!1,fileType:Xt.documentType,previewUrl:Xt.url,s3Fields:{awsKey:"",awsPayload:{}}}));xt([...Zt,...Gt])},[nt]);const Bt=()=>{const Gt=reactExports.useCallback((er,nr)=>{const or=[],rr=[];er.length!==0&&er.forEach(cr=>{or.push({baseFile:cr,encounterDate:new Date,accepted:!0,validationError:!1,uploadErrors:"",loading:!0,previewUrl:"",uploadingToS3:!1})}),nr.length!==0&&nr.forEach(cr=>{rr.push({baseFile:cr.file,encounterDate:new Date,accepted:!1,uploadErrors:UPLOAD_ERRORS[cr.errors[0].code],previewUrl:""})}),xt([...mt,...or,...rr])},[]),{getRootProps:Zt,getInputProps:Xt}=useDropzone({onDrop:Gt,accept:FILE_TYPES_MIME_TO_FILE_TYPES,maxSize:MAX_FILE_SIZE,multiple:!0});return jsxRuntimeExports.jsxs(StyledDragAndDropBox,{...Zt({refKey:"innerRef"}),children:[jsxRuntimeExports.jsx("input",{...Xt(),"data-test-id":"drag-and-drop-box"}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",justifyContent:"center",children:[jsxRuntimeExports.jsx(UploadIcon$2,{color:"primary"}),jsxRuntimeExports.jsx(FileUploadLabel,{children:DRAG_AND_DROP})]}),jsxRuntimeExports.jsx(FilesAcceptedLabel,{children:kt})]})]})},Ft=(Gt,Zt)=>{Kt({variables:{attachmentPk:mt[Gt].id,documentType:Zt}}),mt[Gt].fileType=Zt,xt([...mt])},$t=(Gt,Zt)=>{Zt&&(Jt({variables:{attachmentPk:mt[Gt].id,encounterDate:Zt}}),mt[Gt].encounterDate=Zt,xt([...mt]))},jt=()=>{It(!0);let Gt=!0;mt.forEach(Zt=>{(Zt.fileType===void 0||Zt.fileType==="")&&(Gt=!1)}),Rt(!!(Gt&&mt.length))},Wt=async()=>{await lt()&&(mt.forEach(Zt=>{Zt.accepted&&Dt({variables:{id:Zt.id}})}),xt([...mt]))},Ut=()=>{mt.length>0?Tt(!0):ut()},Vt=()=>{Rt(!1)};return usePreventUnload(mt.length),jsxRuntimeExports.jsxs(DocUploadWrapper,{"data-testid":"doc-upload-wrapper",children:[jsxRuntimeExports.jsxs(StyledContainer$4,{children:[jsxRuntimeExports.jsx(StyledBoxHeader,{children:HEADING$1}),jsxRuntimeExports.jsx(Bt,{}),jsxRuntimeExports.jsx(TableContainer$4,{children:jsxRuntimeExports.jsxs(StyledTable$2,{"data-test-id":"document-table",children:[jsxRuntimeExports.jsx(Header$4,{children:jsxRuntimeExports.jsx(HeaderRow$3,{children:qt[dt.primaryRole]&&((Ht=qt[dt.primaryRole])==null?void 0:Ht.headers.map((Gt,Zt)=>jsxRuntimeExports.jsx(HeaderCol$2,{style:{width:qt[dt.primaryRole].widths[Zt]},children:Gt},`head-${Zt}`)))})}),mt.length!==0&&jsxRuntimeExports.jsx(DataBody$2,{className:"document-list-table",children:mt.map((Gt,Zt)=>jsxRuntimeExports.jsxs(DataRow$2,{id:`row-${Zt}`,className:"not-clicky","data-test-id":`upload-row-${Zt}`,children:[jsxRuntimeExports.jsx(DataCol$2,{id:`${Gt.baseFile.name}-name-col-${Zt}`,children:jsxRuntimeExports.jsx(UploadToS3,{index:Zt,patientId:tt,userId:rt})},`name-col-${Zt}`),Yt&&jsxRuntimeExports.jsx(DataCol$2,{id:`${Gt.baseFile.name}-type-col-${Zt}`,children:jsxRuntimeExports.jsx(StyledDropDown$1,{inputKey:`document-type-${Zt}`,inputName:"document-type",placeholder:"Please choose...",defaultValue:Gt.baseFile.type,options:pt,disabled:Gt.loading||!Gt.accepted,onChange:Xt=>{Ft(Zt,Xt.target.value)},errors:Ct&&Gt.baseFile.type===""?["This field is required"]:void 0,errorType:"document-upload-table",dataTestId:`document-type-dropdown-${Zt}`})},`type-col-${Zt}`),Nt&&jsxRuntimeExports.jsx("td",{id:`${Gt.baseFile.name}-date-col-${Zt}`,children:jsxRuntimeExports.jsx(Stack$5,{sx:{marginTop:"6px"},children:jsxRuntimeExports.jsx(BaseDatePicker,{id:"encounterDate",value:Gt.encounterDate?dayjs(Gt.encounterDate):null,onChange:(Xt,er)=>{if(er.validationError)return;const nr=Xt?Xt.format("YYYY-MM-DD").toString():"";$t(Zt,nr)},disabled:Gt.loading||!Gt.accepted})})},`date-col-${Zt}`),jsxRuntimeExports.jsx(DataCol$2,{id:`${Gt.baseFile.name}-actions-col-${Zt}`,children:jsxRuntimeExports.jsx(DeleteDocument,{document:Gt,handleMutation:Qt,documentId:Zt.toString(),dataTestId:`delete-document-${Zt}`})},`actions-col-${Zt}`)]},`row-${Zt}`))})]})})]}),jsxRuntimeExports.jsx(FooterWrapper,{children:jsxRuntimeExports.jsxs(StyledFooter$1,{children:[jsxRuntimeExports.jsx(Button,{"data-testid":"cancel-button",variant:"outlined",onClick:()=>{Ut()},children:"Cancel"}),jsxRuntimeExports.jsx(Button,{"data-testid":"submit-button",variant:"contained",onClick:()=>{jt()},disabled:!(mt&&mt.length!==0),children:"Submit"})]})}),jsxRuntimeExports.jsx(Prompt,{when:!(zt||At)&&mt.length>0,message:LEAVE_PAGE_WARNING$1}),jsxRuntimeExports.jsxs(StandardDialog,{open:At,title:MODAL.HEADER,onClose:Vt,onSubmit:Wt,submitText:MODAL.SUBMIT_BUTTON,children:[region$e===Region.AU&&jsxRuntimeExports.jsx("div",{children:MODAL.DESCRIPTION}),region$e===Region.UK&&jsxRuntimeExports.jsxs(StyledSubmitModalBody,{children:[jsxRuntimeExports.jsx("p",{children:"Please ensure details are correct before proceeding."}),jsxRuntimeExports.jsxs(StyledSubmitModalBodyNote,{children:[jsxRuntimeExports.jsx(SvgWarningTriangle,{title:"Warning_Triangle.svg"})," Note: Any upload failed documents will not be submitted."]})]})]}),jsxRuntimeExports.jsxs(StandardDialog,{open:zt,title:"Quit document upload",onClose:Tt,onSubmit:()=>{ut&&ut()},submitText:"Quit",children:[jsxRuntimeExports.jsx("div",{children:"The uploaded document(s) are NOT submitted and will be cleared upon leaving the page."}),jsxRuntimeExports.jsx("div",{children:"Are you sure you want to leave this page?"})]})]})},CACHE_ERROR_MSG_QUERY=gql`
  query GlobalErrorMessage {
    error {
      message
      statusCode
    }
  }
`,GET_CONTENT_SHOWN=gql`
  query GetContentShown {
    contentShown
  }
`,logger$N=new Logger("ROErrorDialog"),ErrorModal=et=>{const[tt,rt]=reactExports.useState(!1),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),{data:pt}=useQuery(CACHE_ERROR_MSG_QUERY),ht=useApolloClient(),[mt]=useMutation(LOGOUT_MUTATION$4),xt=()=>{ht.clearStore().then(()=>{ht.writeQuery({query:GET_CONTENT_SHOWN,data:{contentShown:!1}})}),mt({variables:{}}).then(({data:vt})=>{if(vt.logout.errors!==null){logger$N.error("logout",["Unable to logout",vt.logout.errors]);return}navigateToExternalURL("/sso/logout")})};if(reactExports.useEffect(()=>(pt&&pt.error.statusCode!==-1&&rt(!0),pt&&pt.error.statusCode>=400&&pt.error.statusCode<500&&et.errorType&&et.errorType==="ACCOUNT"&&lt(!0),et.errorType&&et.errorType==="NON_BLOCKING"&&dt(!0),()=>{rt(!1),lt(!1)}),[pt,et]),!(tt||nt)||ut)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Mt=nt?CurrentAppConfig.ErrorPopup.Practitioner:CurrentAppConfig.ErrorPopup.Generic;return jsxRuntimeExports.jsx(StandardDialog,{open:!0,title:nt?"Account Error":"Something went wrong",submitText:nt?"Logout":"Refresh page",onSubmit:()=>{nt?xt():window.location.reload()},children:jsxRuntimeExports.jsx("div",{style:{lineHeight:1.2},dangerouslySetInnerHTML:{__html:Mt}})})},ErrorModalContextProvider=et=>{const[tt,rt]=reactExports.useState("");return jsxRuntimeExports.jsxs(ErrorModalContext.Provider,{value:{state:{error:tt},setError:rt},children:[jsxRuntimeExports.jsx(ErrorModal,{errorType:tt}),et.children]})},CreateAUSAttachmentMutation=gql`
  mutation createAttachment(
    $awsKey: String!
    $patientPk: String!
    $encounterDate: String!
    $isRegistrationAttachment: Boolean
  ) {
    createAttachment(
      awsKey: $awsKey
      patientPk: $patientPk
      encounterDate: $encounterDate
      isRegistrationAttachment: $isRegistrationAttachment
    ) {
      attachment {
        id
        url
        documentType
        submitted
        encounterDate
        isRegistrationAttachment
      }
    }
  }
`,CreateUKAttachmentMutation=gql`
  mutation createAttachment(
    $awsKey: String!
    $patientPk: String!
    $documentType: String!
    $encounterDate: String!
    $isRegistrationAttachment: Boolean
  ) {
    createAttachment(
      awsKey: $awsKey
      patientPk: $patientPk
      documentType: $documentType
      encounterDate: $encounterDate
      isRegistrationAttachment: $isRegistrationAttachment
    ) {
      attachment {
        id
        url
        documentType
        submitted
        encounterDate
        isRegistrationAttachment
      }
    }
  }
`,ChangeDocumentTypeMutation=gql`
  mutation changeDocumentType($attachmentPk: String!, $documentType: String!) {
    changeDocumentType(attachmentPk: $attachmentPk, documentType: $documentType) {
      attachment {
        id
        url
        documentType
        submitted
        encounterDate
      }
    }
  }
`,ChangeEncounterDateMutation=gql`
  mutation changeEncounterDate($attachmentPk: String!, $encounterDate: String!) {
    changeEncounterDate(attachmentPk: $attachmentPk, encounterDate: $encounterDate) {
      attachment {
        id
        url
        documentType
        submitted
        encounterDate
      }
    }
  }
`,DeleteDocumentMutation=gql`
  mutation deleteDocument($attachmentPk: String!) {
    deleteAttachment(attachmentPk: $attachmentPk) {
      ok
    }
  }
`,GET_UPLOAD_DETAILS_QUERY=gql`
  query GetUploadDetails($fileName: String!) {
    fileUploadPayload(fileName: $fileName) {
      url
      fields {
        awsKey
        awsPayload
      }
    }
  }
`,UploadCard=et=>{const{downloadUrl:tt,filename:rt,progress:nt=0,errors:lt,removeDocument:ut}=et,dt=useTheme$1(),[pt,ht]=reactExports.useState(!0),mt=reactExports.useMemo(()=>!!(lt&&(lt!=null&&lt.length)),[lt]),xt=reactExports.useMemo(()=>(rt==null?void 0:rt.length)>25?rt.slice(0,22)+"…"+rt.slice(-4):rt,[rt]),Mt=reactExports.useMemo(()=>nt===100&&!mt&&!tt,[nt,tt]),vt=()=>mt?"ERROR IN UPLOAD":nt!==100?`UPLOADING ${Math.round(nt)}%`:"COMPLETED -",Ot=At=>{ht(!1),ut(At)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:classNames$1({"attachment-card":pt,"hide-upload-box":!pt}),children:[jsxRuntimeExports.jsx(Card$2,{className:classNames$1("file-card",{"upload-error-outline":mt}),children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",justifyContent:"space-evenly",alignItems:"center",sx:{height:"100%"},children:[jsxRuntimeExports.jsx(InsertDriveFile,{fontSize:"large",htmlColor:dt.palette.grey[600]}),jsxRuntimeExports.jsxs("div",{className:"upload-card-content",children:[jsxRuntimeExports.jsx("div",{"data-test-id":xt,className:"file-upload-name",children:xt}),jsxRuntimeExports.jsx(LinearProgress,{id:"bar-adjustments",color:"primary",variant:"determinate",value:nt}),jsxRuntimeExports.jsxs("div",{className:"file-upload-status",children:[vt(),Mt&&jsxRuntimeExports.jsx(LoadingSpinner,{container:!1,relativeSpinner:!0,loadingText:""}),tt&&jsxRuntimeExports.jsx("a",{"data-testid":"file-preview",href:tt,rel:"noreferrer",target:"_blank",children:"PREVIEW"})]})]})]})}),jsxRuntimeExports.jsx("div",{className:"close-section",children:pt?jsxRuntimeExports.jsx("div",{"data-test-id":`delete-${xt}`,className:classNames$1("close-icon",{"green-icon-to-red":mt}),onClick:Ot}):jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0,loadingText:""})})]}),jsxRuntimeExports.jsx("div",{className:classNames$1({"hide-upload-box":!pt}),children:jsxRuntimeExports.jsx(ErrorInfo,{errors:lt})})]})},UploadCard$1=reactExports.memo(UploadCard),FILE_SIZE_ERROR="Max file size is 20MB",ATTACHMENT_AMOUNT_ERROR="Patient can only have up to 10 attachments",FORGOT_UPLOAD_TITLE$1="Forgot to upload?",FORGOT_UPLOAD_TEXT$1="Please upload the last file you added or remove it from the list.",DELETE_RETRY="Please delete and upload again",UNKNOWN_ERROR="An unknown error occurred",AUSFIELD={HELPER_TEXT:"To help our staff prepare for your upcoming appointment, you are required to upload a copy or photo of the following documents and cards (if they are applicable to you)",HELPER_TITLE:"Documents to upload (if applicable)",DOCUMENTS:{MEDICARE:"Medicare card",PRIVATE_INSURANCE:"Private insurance card",PENSION:"Pension card",DVA:"DVA card",TEST_RESULTS:"Test results",PACEMAKER:"Pacemaker card",REFERRAL:"Referral letter",ATTORNEY:"Power of attorney",AMBULANCE:"Ambulance membership",MEDICATIONS:"Medications",ADVANCE_CARE:"Advance care directive"},ATTACHMENTS_INFO:"If you do not have an electronic copy of any of the above documents, please bring them with you to your first appointment",SYSTEM_STATE_MSG:"Horizon will try to choose a document type for patient-uploaded attachments. Please review each the following attachments and acknowledge once document type/s are correct.",MODAL:{HEADER:"Are you sure you want to delete this attachment?",SUBMIT:"Delete"},PATIENT_ATTACHMENTS:{FILE_NAME:"File name",PREVIEW:"Preview",DELETE:"Delete",DOC_TYPE:"Document type*",SUGGESTED_DOC_TYPE:"Suggested document type"},ACKNOWLEDGMENT:{TITLE:"Acknowledgement*",SUBTITLE:"(Please tick after uploading any additional attachments)",INPUT_LABEL:"I have reviewed and acknowledge the above document labels are correct",INPUT_ERROR:"Document types must be reviewed and acknowledged"},CARD:{TAKE_OR_ATTACH:"Take photos or attach files here",DRAG_AND_DROP:"Drag and drop files here",CHOOSE_FILE:"Choose file or photo",LIMIT_REACHED:"File limit of 10 has been reached.",REMOVE_EXISTING:"If you would like to upload something else, please remove one of the existing files.",FILE_TYPES:"File types accepted: JPG, JPEG, BMP, PDF, PNG, GIF"}},UKFIELD={HEADER:{FILENAME:"Filename",FILE_SIZE:"File size",DOC_TYPE:"Document Type",SUBMIT_TO_MOSAIQ:"Submitted to Mosaiq?",ENCOUNTER_DATE:"Encounter date",UPLOAD:"Upload",PROGRESS:"Progress"},REMOVE_OR_UPLOAD:"Please remove or upload the above file(s) before adding more",CLICK_OR_DRAG:"Click or drag here to attach some files"},FileUploadCard=et=>{const{patient:tt,file:rt,refetchCallback:nt,handleFileDelete:lt}=et,{setError:ut}=useErrorModalContext(),[dt,pt]=reactExports.useState(0),[ht,mt]=reactExports.useState([]),[xt,{data:Mt,loading:vt,error:Ot}]=useLazyQuery(GET_UPLOAD_DETAILS_QUERY);reactExports.useEffect(()=>{let Tt;if((rt==null?void 0:rt.name)==="image.jpg"){const kt=`${new Date().toJSON().trim().replace(/[-:z.]/gi,"")}-${rt.name}`;Tt=new File([rt],kt)}const Ct=Tt||rt;let It=!1;const Dt=getFileExtension(rt.name);if(Dt){const kt=checkFileExtension(Dt);kt&&(mt([...ht,kt]),It=!0)}rt.size>20971520&&ht.indexOf(FILE_SIZE_ERROR)===-1&&(mt([...ht,FILE_SIZE_ERROR]),It=!0),It||xt({variables:{fileName:Ct.name}})},[]);const At=new Date,[Rt]=useMutation(CreateAUSAttachmentMutation),zt=reactExports.useCallback(()=>{if(ht!=null&&ht.length)return;const Tt=Mt.fileUploadPayload,Ct=Tt.url,It=Tt.fields,Dt=new XMLHttpRequest,kt=new FormData,qt=JSON.parse(It.awsPayload);for(const[Nt,Yt]of Object.entries(qt.fields))kt.append(Nt,String(Yt));kt.append("Content-Type",rt.type),kt.append("file",rt),Dt.upload.addEventListener("progress",Nt=>{pt(Nt.loaded/Nt.total*100)}),Dt.addEventListener("load",()=>{const Nt=Dt.status;[200,201,204].includes(Nt)?Rt({variables:{awsKey:It.awsKey,patientPk:tt.id,isRegistrationAttachment:!0,encounterDate:At}}).then(async()=>{nt(),lt(rt)}).catch(()=>{mt([DELETE_RETRY])}):mt([DELETE_RETRY])}),Dt.addEventListener("error",()=>{mt([DELETE_RETRY])}),Dt.open("POST",Ct),Dt.send(kt)},[Mt]);return reactExports.useEffect(()=>{Mt&&zt()},[Mt]),Ot?(ut(),jsxRuntimeExports.jsx(reactExports.Fragment,{})):vt?jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0,loadingText:""}):jsxRuntimeExports.jsx(UploadCard$1,{downloadUrl:"",errors:ht,progress:dt,filename:rt.name,removeDocument:lt})},FileUploadCard$1=reactExports.memo(FileUploadCard),StyledTableCell$7=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[200],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$9=styled(TableRow$7)(({theme:et})=>({"&:nth-of-type(odd)":{backgroundColor:et.palette.secondary.light},"&:last-child td, &:last-child th":{border:0}})),StyledDownloadLink=styled("a")`
  margin-top: 16px,
  color: ${et=>et.theme.palette.primary.main},
  fontWeight: bolder,
  display: inline-block,
`,StyledDocumentContainer=styled("div")`
  padding-bottom: 24px;
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-bottom: 16px;
`;let TableRow$4=class extends reactExports.Component{humanFileSize(tt){if(Math.abs(tt)<1024)return tt+" B";const nt=["KB","MB","GB","TB"];let lt=-1;do tt/=1024,++lt;while(Math.abs(tt)>=1024&&lt<nt.length-1);return tt.toFixed(1)+" "+nt[lt]}render(){const{downloadUrl:tt,filename:rt,filesize:nt,btnTitle:lt,loading:ut,disableBtn:dt,disableSelect:pt,onClick:ht,progress:mt,changeDocument:xt,documentType:Mt,documentTypeRefData:vt,errors:Ot,removeDocument:At,attachmentPk:Rt,submittedToMosaiq:zt,allowDelete:Tt,handleDateChange:Ct,encounterDate:It}=this.props;return jsxRuntimeExports.jsxs(StyledTableRow$9,{id:"table-header",children:[jsxRuntimeExports.jsx(TableCell,{children:Tt&&jsxRuntimeExports.jsx(IconButton,{onClick:At,children:jsxRuntimeExports.jsx(CloseIcon,{})})}),jsxRuntimeExports.jsxs(TableCell,{children:[tt?jsxRuntimeExports.jsx(StyledDownloadLink,{id:"link-adjustment",href:tt,children:rt}):jsxRuntimeExports.jsx("p",{id:"file-adjustments",children:rt}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(ErrorInfo,{type:"table-error",errors:Ot})]}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx("p",{id:"file-adjustments",children:this.humanFileSize(nt)})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(DropDownField,{disabled:pt,inputName:Rt,controlled:!0,placeholder:"Select",defaultValue:Mt,options:vt,onChange:xt})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx("p",{id:"file-adjustments",children:zt?"Yes":"No"})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx("div",{className:"dobDiv",children:jsxRuntimeExports.jsx(BaseDatePicker,{id:"dobDiv",readOnly:pt,disableFuture:!0,value:dayjs(It),onChange:Ct})})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(LoadingButton,{loading:ut,disabled:dt,onClick:ht,children:lt})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(LinearProgress,{id:"bar-adjustments",color:"primary",variant:"determinate",value:mt})})]})}},Uploader$1=class extends reactExports.Component{constructor(rt){super(rt);Nr(this,"region",Object.create(globalThis.import_meta_env||null).REACT_APP_REGION);Nr(this,"closeUploadInfoErrorModal",()=>{this.props.onCloseUploadErrorModal()});Nr(this,"openUploadInfoErrorModal",()=>{this.props.onOpenUploadErrorModal()});Nr(this,"handleBlockedNavigation",()=>(this.openUploadInfoErrorModal(),!1));const{file:nt}=this.props,lt=nt.name.split(".")[nt.name.split(".").length-1],ut=[];if(lt){const dt=checkFileExtension(lt);dt&&ut.push(dt)}this.state={progress:0,documentType:rt.documentType.toString(),loading:!1,fields:[],errors:ut,url:"",encounterDate:dayjs()}}uploadFile(rt,nt){this.setState({...this.state,loading:!0});const{file:lt,refetchCallback:ut,handleFileDelete:dt}=this.props,{documentType:pt,encounterDate:ht}=this.state,mt=new XMLHttpRequest,xt=new FormData,Mt=JSON.parse(nt.awsPayload);for(const[vt,Ot]of Object.entries(Mt.fields))xt.append(vt,String(Ot));xt.append("Content-Type",lt.type),xt.append("file",lt),mt.upload.addEventListener("progress",vt=>{const Ot=vt.loaded/vt.total*100;this.setState({...this.state,progress:Ot})}),mt.addEventListener("load",()=>{const{patient:vt,user:Ot,client:At}=this.props,Rt={awsKey:nt.awsKey,patientPk:vt.id,userPk:Ot.id,isRegistrationAttachment:!0,documentType:pt,encounterDate:ht},zt=mt.status;[200,201,204].includes(zt)?At.mutate({mutation:CreateUKAttachmentMutation,variables:Rt}).then(async function(){await ut(),dt(lt)}).catch(()=>{this.setState({...this.state,errors:[UNKNOWN_ERROR],loading:!1})}):this.setState({...this.state,errors:[UNKNOWN_ERROR],loading:!1})}),mt.addEventListener("error",()=>{this.setState({...this.state,errors:[UNKNOWN_ERROR],loading:!1})}),mt.open("POST",rt),mt.send(xt)}render(){const{file:rt,documentTypeRefData:nt,handleFileDelete:lt}=this.props,{documentType:ut,encounterDate:dt}=this.state,pt={fileName:rt.name},ht=mt=>{this.setState({encounterDate:mt})};return jsxRuntimeExports.jsx(Query,{query:GET_UPLOAD_DETAILS_QUERY,variables:pt,children:({loading:mt,data:xt,error:Mt})=>{const{setError:vt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(Mt)return vt()},[Mt]),xt&&xt.fileUploadPayload){const{fields:Ot,url:At}=xt.fileUploadPayload;rt.size>20971520&&this.state.errors.indexOf(FILE_SIZE_ERROR)===-1&&this.setState({...this.state,errors:[...this.state.errors,FILE_SIZE_ERROR]});const{loading:Rt,progress:zt,errors:Tt}=this.state,Ct=this.state.url;this.state&&!this.state.fields&&this.setState({...this.state,fields:Ot,url:At});const It=Nt=>{Nt.target&&Nt.target.value&&this.setState({...this.state,documentType:Nt.target.value})},Dt=zt>=100;let kt=Dt||Tt.length>0;this.region===Region.UK&&(kt=Dt||!ut||!dt||Tt.length>0);const qt=`${rt.name}-${rt.lastModified}`;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(Prompt,{message:this.handleBlockedNavigation}),jsxRuntimeExports.jsx(ModalInfo$1,{isOpen:this.props.uploadInfoErrorModalOpen,title:FORGOT_UPLOAD_TITLE$1,text:FORGOT_UPLOAD_TEXT$1,extraClass:"pending-submit-modal",dismissFunction:()=>{this.closeUploadInfoErrorModal()}}),jsxRuntimeExports.jsx(TableRow$4,{attachmentPk:qt,downloadUrl:Ct,errors:Tt,documentTypeRefData:nt,documentType:ut,changeDocument:It,removeDocument:lt,submittedToMosaiq:!1,filename:rt.name,filesize:rt.size,encounterDate:dt,handleDateChange:ht,btnTitle:Dt?"Uploaded":"Upload",loading:Rt,disableBtn:kt,allowDelete:!0,disableSelect:zt>=100,onClick:Nt=>{Nt.preventDefault(),this.uploadFile(At,Ot)},progress:zt})]})}return mt?jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{children:"loading"})}):jsxRuntimeExports.jsx("div",{})}})}};const ApolloUploader$1=withApollo(Uploader$1);class FileUploadField extends reactExports.Component{constructor(rt){super(rt);Nr(this,"fileInputRef");Nr(this,"region",Object.create(globalThis.import_meta_env||null).REACT_APP_REGION);Nr(this,"uploadFile",()=>{this.fileInputRef.current.click()});Nr(this,"validateAttachments",rt=>{const{attachments:nt}=rt,lt={documentType:{presence:{allowEmpty:!1}}},ut={};if(nt&&nt.forEach(dt=>{const pt=validate(dt,lt);pt&&(ut[`${dt.filename}`]=pt.documentType)}),Object.keys(ut).length!==0)return ut});Nr(this,"validateAcknowledge",(rt,nt)=>{let lt={};return rt.attachmentAcknowledged||(lt={attachmentAcknowledged:{presence:nt,inclusion:{within:[!0]}}}),validate(rt,lt)});this.fileInputRef=React$4.createRef(),this.state={documentType:"",selectedFiles:[],dropzoneClass:"dropzone",deleteModalOpen:!1,continueModalOpen:!1,selectedDocumentId:""}}componentDidMount(){window.addEventListener("dragover",rt=>{rt.preventDefault()}),window.addEventListener("drop",rt=>{rt.preventDefault()})}selectFiles(rt){const{selectedFiles:nt}=this.state,lt=Array.from(rt)[0];lt instanceof File&&(nt.push(lt),this.setState({selectedFiles:nt}))}removeFile(rt){const{selectedFiles:nt}=this.state,lt=nt.filter(ut=>{let dt=!0;return rt.name&&rt.name===ut.name&&rt.lastModified===ut.lastModified&&(dt=!1),dt});this.setState({...this.state,selectedFiles:lt})}handleDocumentTypeChange(rt,nt){this.props.client.mutate({mutation:ChangeDocumentTypeMutation,variables:{attachmentPk:rt,documentType:nt}})}handleDateChange(rt,nt){const{refetchCallback:lt}=this.props;this.props.client.mutate({mutation:ChangeEncounterDateMutation,variables:{attachmentPk:rt,encounterDate:nt}}).then(()=>lt())}handleDocumentRemoval(rt){const{refetchCallback:nt}=this.props;this.props.client.mutate({mutation:DeleteDocumentMutation,variables:{attachmentPk:rt}}).then(()=>nt())}renderAUSfield(rt){var Tt,Ct;const{selectedFiles:nt,patient:lt,refetchCallback:ut,handleDrop:dt,onDragOver:pt,onDragLeave:ht,fileLimitReached:mt,isPso:xt,updateAttachmentAcknowledged:Mt,validateOnLoad:vt}=rt,Ot=DeviceUtilities$1.isTabletDevice(),At=nt.map((It,Dt)=>jsxRuntimeExports.jsx(FileUploadCard$1,{patient:lt,file:It,refetchCallback:ut,handleFileDelete:()=>{this.removeFile(It)}},Dt)),Rt=vt&&this.validateAttachments(lt),zt=vt&&this.validateAcknowledge(lt,xt);return jsxRuntimeExports.jsxs("div",{className:"attachments-body",children:[xt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[((Tt=lt.userProfile)==null?void 0:Tt.systemState)!=="THA"&&jsxRuntimeExports.jsx("h3",{children:AUSFIELD.SYSTEM_STATE_MSG}),registrationAttachments(lt.attachments).map((It,Dt)=>{var kt;return jsxRuntimeExports.jsxs("div",{className:"attachment-container",children:[jsxRuntimeExports.jsx(ModalSubmit,{isOpen:this.state.deleteModalOpen||this.state.continueModalOpen,submitForm:()=>{this.handleDocumentRemoval(this.state.selectedDocumentId),this.setState({...this.state,deleteModalOpen:!1,selectedDocumentId:""})},dismissFunction:()=>{this.setState({...this.state,deleteModalOpen:!1})},headerText:AUSFIELD.MODAL.HEADER,submitText:AUSFIELD.MODAL.SUBMIT,emptyBody:!0,removeHeaderPadding:!0,keepUnlocked:!0}),jsxRuntimeExports.jsxs(StyledDocumentContainer,{className:"document-container",children:[jsxRuntimeExports.jsxs("div",{className:"document-list",children:[jsxRuntimeExports.jsx("strong",{children:AUSFIELD.PATIENT_ATTACHMENTS.FILE_NAME}),jsxRuntimeExports.jsxs("div",{className:"preview-delete-container",children:[jsxRuntimeExports.jsxs("a",{"data-testid":`preview-${It.filename}`,className:"document-icon-column",href:It.url,target:"_blank",rel:"noopener noreferrer",children:[jsxRuntimeExports.jsx(DescriptionOutlinedIcon,{color:"primary"}),jsxRuntimeExports.jsx("strong",{children:AUSFIELD.PATIENT_ATTACHMENTS.PREVIEW})]}),jsxRuntimeExports.jsxs("span",{"data-testid":`delete-${It.filename}`,className:"document-icon-column",onClick:()=>{this.setState({...this.state,deleteModalOpen:!0,selectedDocumentId:It.id})},children:[jsxRuntimeExports.jsx(SvgDelete,{id:"delete-icon"}),jsxRuntimeExports.jsx("strong",{children:AUSFIELD.PATIENT_ATTACHMENTS.DELETE})]})]})]}),jsxRuntimeExports.jsx("span",{children:It.filename}),((kt=lt.userProfile)==null?void 0:kt.systemState)!=="THA"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"document-type-header",children:jsxRuntimeExports.jsx("strong",{children:AUSFIELD.PATIENT_ATTACHMENTS.DOC_TYPE})}),jsxRuntimeExports.jsx(DropDownField,{inputKey:`document-type-${Dt}`,inputName:"document-type",placeholder:"Please choose...",options:documentTypeOptions,onChange:qt=>{this.handleDocumentTypeChange(It.id,qt.target.value)},className:`document-type-dropdown document-type-${Dt}`,defaultValue:getDocumentType(It),errors:!It.documentType&&Rt&&Rt[It.filename]?Rt[It.filename]:""}),It.suggestedDocumentType&&getDocumentType(It)===It.suggestedDocumentType&&jsxRuntimeExports.jsxs("span",{id:"suggested-document-container",children:[jsxRuntimeExports.jsx(SvgInfo,{id:"info-icon"}),AUSFIELD.PATIENT_ATTACHMENTS.SUGGESTED_DOC_TYPE]})]})]})]},It.id)}),At,((Ct=lt.userProfile)==null?void 0:Ct.systemState)!=="THA"&&registrationAttachments(lt.attachments).length>=1&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h2",{className:"acknowledgement-title",children:AUSFIELD.ACKNOWLEDGMENT.TITLE}),jsxRuntimeExports.jsx("p",{className:"acknowledgement-subtitle",children:AUSFIELD.ACKNOWLEDGMENT.SUBTITLE}),jsxRuntimeExports.jsx(Checkbox,{inputName:"attachmentAcknowledged",inputLabel:AUSFIELD.ACKNOWLEDGMENT.INPUT_LABEL,isChecked:lt.attachmentAcknowledged,onChange:It=>Mt(lt.id,It),errors:zt!=null&&zt.attachmentAcknowledged?[AUSFIELD.ACKNOWLEDGMENT.INPUT_ERROR]:void 0}),!(zt!=null&&zt.attachmentAcknowledged)&&jsxRuntimeExports.jsx("div",{className:"checkbox-padding"})]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("p",{className:"attachments-helper-text",children:AUSFIELD.HELPER_TEXT})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h4",{children:AUSFIELD.HELPER_TITLE}),jsxRuntimeExports.jsxs("div",{className:"unordered-lists",children:[jsxRuntimeExports.jsxs("ul",{className:"attachments-list",children:[jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.MEDICARE},"medicare"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.PRIVATE_INSURANCE},"insurance"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.PENSION},"Pension"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.DVA},"DVA"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.TEST_RESULTS},"Test"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.PACEMAKER},"Pacemaker")]}),jsxRuntimeExports.jsxs("ul",{className:"attachments-list",children:[jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.REFERRAL},"Referral"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.ATTORNEY},"attorney"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.AMBULANCE},"Ambulance"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.MEDICATIONS},"Medications"),jsxRuntimeExports.jsx("li",{children:AUSFIELD.DOCUMENTS.ADVANCE_CARE},"directive")]})]}),jsxRuntimeExports.jsx("div",{className:"attachments-info-text",children:AUSFIELD.ATTACHMENTS_INFO})]})]}),jsxRuntimeExports.jsxs(Stack$5,{onDrop:mt?()=>{}:dt,onDragOver:pt,onDragLeave:ht,className:"AU-dropzone",id:"dropContainer",onClick:this.uploadFile,children:[mt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Typography,{variant:"subtitle2",className:"dropzone-text",children:[AUSFIELD.CARD.LIMIT_REACHED,jsxRuntimeExports.jsx("br",{}),AUSFIELD.CARD.REMOVE_EXISTING]})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"cloud-upload-image"}),jsxRuntimeExports.jsxs(Typography,{variant:"subtitle2",className:"dropzone-text",children:[Ot&&AUSFIELD.CARD.TAKE_OR_ATTACH,!Ot&&AUSFIELD.CARD.DRAG_AND_DROP,!Ot&&jsxRuntimeExports.jsx("br",{}),!Ot&&"OR"]}),jsxRuntimeExports.jsx("div",{className:"choose-file-button",children:AUSFIELD.CARD.CHOOSE_FILE})]}),jsxRuntimeExports.jsx("input",{id:"fileInput",type:"file",disabled:mt,ref:this.fileInputRef,className:"invisibleFiles",onClick:It=>{It.target.value=null},onChange:It=>{this.selectFiles(It.target.files),this.props.onIncompleteFileUpload()}}),!mt&&jsxRuntimeExports.jsx("div",{className:"dropzone-file-types",children:AUSFIELD.CARD.FILE_TYPES})]}),!xt&&lt.attachments.map(It=>jsxRuntimeExports.jsx(UploadCard$1,{downloadUrl:It.url,errors:[],removeDocument:()=>{this.handleDocumentRemoval(It.id)},filename:It.filename,progress:100},It.filename+It.id)),!xt&&At]})}renderUKfield(rt){const{selectedFiles:nt,patient:lt,documentTypeRefData:ut,user:dt,refetchCallback:pt,handleDrop:ht,onDragOver:mt,onDragLeave:xt,dropzoneClass:Mt,fileLimitReached:vt}=rt;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs(Table$3,{children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsxs("tr",{id:"table-header",children:[jsxRuntimeExports.jsx(StyledTableCell$7,{}),jsxRuntimeExports.jsx(StyledTableCell$7,{children:UKFIELD.HEADER.FILENAME}),jsxRuntimeExports.jsx(StyledTableCell$7,{children:UKFIELD.HEADER.FILE_SIZE}),jsxRuntimeExports.jsx(StyledTableCell$7,{children:UKFIELD.HEADER.DOC_TYPE}),jsxRuntimeExports.jsx(StyledTableCell$7,{children:UKFIELD.HEADER.SUBMIT_TO_MOSAIQ}),jsxRuntimeExports.jsx(StyledTableCell$7,{children:UKFIELD.HEADER.ENCOUNTER_DATE}),jsxRuntimeExports.jsx(StyledTableCell$7,{children:UKFIELD.HEADER.UPLOAD}),jsxRuntimeExports.jsx(StyledTableCell$7,{children:UKFIELD.HEADER.PROGRESS})]})}),jsxRuntimeExports.jsxs(TableBody$2,{children:[lt.attachments.map((Ot,At)=>jsxRuntimeExports.jsx(TableRow$4,{attachmentPk:Ot.id,downloadUrl:Ot.url,filename:Ot.filename,filesize:Ot.filesize,errors:[],submittedToMosaiq:Ot.submitted,changeDocument:Rt=>{this.handleDocumentTypeChange(Ot.id,Rt.target.value)},removeDocument:()=>{this.handleDocumentRemoval(Ot.id)},handleDateChange:Rt=>{this.handleDateChange(Ot.id,Rt)},encounterDate:dayjs(Ot.encounterDate),documentTypeRefData:ut,documentType:Ot.documentType,btnTitle:"Uploaded",loading:!1,allowDelete:!Ot.submitted,disableBtn:!0,disableSelect:Ot.submitted,progress:100},nt.length+At)),nt.map((Ot,At)=>jsxRuntimeExports.jsx(ApolloUploader$1,{handleFileDelete:()=>{this.removeFile(Ot),this.props.onCompleteFileUpload()},documentType:"",refetchCallback:pt,documentTypeRefData:ut,file:Ot,patient:lt,user:dt,fileUploaded:this.props.fileUploaded,onCloseUploadErrorModal:this.props.onCloseUploadErrorModal,onOpenUploadErrorModal:this.props.onOpenUploadErrorModal,uploadInfoErrorModalOpen:this.props.uploadInfoErrorModalOpen},At))]})]}),jsxRuntimeExports.jsx(Stack$5,{onDragOver:mt,onDragLeave:xt,style:vt||nt.length>0?{backgroundColor:"lightgrey"}:{},className:Mt,onDrop:vt||nt.length>0?()=>{}:ht,id:"dropContainer",onClick:this.uploadFile,children:jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",className:"dropzone-text",children:vt?ATTACHMENT_AMOUNT_ERROR:nt.length>0?UKFIELD.REMOVE_OR_UPLOAD:UKFIELD.CLICK_OR_DRAG}),jsxRuntimeExports.jsx("input",{id:"fileInput",type:"file",disabled:vt||nt.length>0,ref:this.fileInputRef,className:"invisibleFiles",onClick:Ot=>{Ot.target.value=null},onChange:Ot=>{this.selectFiles(Ot.target.files),this.props.onIncompleteFileUpload()}})]})})]})}render(){const{documentTypeRefData:rt,patient:nt,user:lt,refetchCallback:ut,isPso:dt,updateAttachmentAcknowledged:pt,validateOnLoad:ht}=this.props,mt=Tt=>{const Ct=[];Tt.dataTransfer.items.length&&Tt.dataTransfer.items[0].kind==="file"&&Ct.push(Tt.dataTransfer.items[0].getAsFile()),this.selectFiles(Ct),this.setState({...this.state,dropzoneClass:"dropzone"})},xt=()=>{this.setState({...this.state,dropzoneClass:"hovered"})},Mt=()=>{this.setState({...this.state,dropzoneClass:"dropzone"})},{selectedFiles:vt,dropzoneClass:Ot}=this.state,Rt=nt.attachments.length+vt.length>=10,zt={selectedFiles:vt,patient:nt,documentTypeRefData:rt,user:lt,refetchCallback:ut,handleDrop:mt,onDragOver:xt,onDragLeave:Mt,dropzoneClass:Ot,fileLimitReached:Rt,isPso:dt,updateAttachmentAcknowledged:pt,validateOnLoad:ht};return this.region===Region.UK?this.renderUKfield(zt):this.renderAUSfield(zt)}}const apolloComponent$t=withApollo(FileUploadField),HeaderContainer$3=styled$1("div")`
  display: flex;
  justify-content: space-between;
  padding: 0px 15px 0px 15px;
  background-color: white;
  height: 56px;
  position: sticky;
  z-index: 50;
  box-shadow: 0px 4px 8px rgba(113, 110, 106, 0.25);
  align-items: center;
`,StyledGCLogo=styled$1(SvgGenesisCareTextLogo)`
  height: 28px;
`,StyledHeadingText$1=styled$1("div")`
  color: black;
  font-size: 23px;
  font-weight: bold;
`,DefaultHeader=({patientFacing:et,headingText:tt})=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(HeaderContainer$3,{children:[et?jsxRuntimeExports.jsx(StyledGCLogo,{id:"gc-logo-patient-facing"}):jsxRuntimeExports.jsx(SvgHorizonGreenLogo,{}),tt&&jsxRuntimeExports.jsx(StyledHeadingText$1,{children:tt})]})}),sharedContent$1={feedbackForm:{placeholder:"Type your message here...",closeButton:"Close feedback",submissionSuccess:"Your feedback has been submitted successfully. Thank you for your time."},menuLinks:{feedback:"Give us feedback",newSummary:"New patient summary",manageProtocols:"Manage protocols",logout:"Log out"},generic:{label:{feedback:"Feedback",myAccount:"My Account"}}},REACT_APP_REGION$i=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$d=REACT_APP_REGION$i,StyledMenuLinkItem$1=styled$1("li")`
  border-bottom: solid 1px ${et=>et.theme.palette.grey[300]};
`,StyledMenuLink$1=styled$1("div")`
  border: none;
  background: transparent;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  color: ${et=>et.theme.palette.text.primary};
  margin-bottom: 0;
  width: 100%;
  font-weight: bold;

  svg {
    margin-right: 10px;
  }

  span {
    font-size: ${getRemSize(14)};
  }
`,StyledMenuLinkIcon$1=styled$1("div")`
  svg {
    width: 20px;
    height: 20px;
  }

  path {
    fill: ${et=>et.theme.palette.primary.main}};
  }
`,ToggleButtonsWrapper=styled$1("div")`
  padding: 0 16px 13px;
`,NEW_PATIENT_SUMMARY_OPTIONS=[{label:"Enable",value:"enable"},{label:"Disable",value:"disable"}],VIEW_MAPPINGS={Unset:"",Simple:"enable",Default:"disable"},PATIENT_SUMMARY="PatientSummary",NewPatientSummary=et=>{var Dt;const{menuLink:tt,index:rt,defaultButtonState:nt}=et,[lt,ut]=reactExports.useState(nt),dt=reactExports.useContext(UserContext),[pt]=useMutation(UPDATE_USER_PREFERENCE_MUTATION),{refetch:ht}=useQuery(USER_PREFERENCE_QUERY,{variables:{featureName:PATIENT_SUMMARY}}),{setFeatures:mt,getEMRFeature:xt,getUserFeature:Mt}=dt,vt=Mt(PATIENT_SUMMARY),Ot=vt?(Dt=vt.featureOption)==null?void 0:Dt.name:null,At=xt(PATIENT_SUMMARY),Rt=At?At.default.name:null,zt=Ot||Rt||"";if(reactExports.useEffect(()=>{ut(VIEW_MAPPINGS[zt])},[zt]),!zt||region$d!==Region.AU)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Tt=At==null?void 0:At.feature.id,Ct=()=>{var qt;const kt=(qt=At==null?void 0:At.options)==null?void 0:qt.find(Nt=>Nt.name==="Simple");pt({variables:{featureId:Tt,featureOptionId:kt==null?void 0:kt.id}}).then(()=>ht().then(({data:Nt})=>mt(Nt)))},It=()=>{var qt;const kt=(qt=At==null?void 0:At.options)==null?void 0:qt.find(Nt=>Nt.name==="Default");pt({variables:{featureId:Tt,featureOptionId:kt==null?void 0:kt.id}}).then(()=>ht().then(({data:Nt})=>mt(Nt)))};return jsxRuntimeExports.jsxs(StyledMenuLinkItem$1,{children:[jsxRuntimeExports.jsxs(StyledMenuLink$1,{className:"nav-drop-down-link","data-test-id":`menu-title-${tt.title.replace(/\s+/g,"-").toLowerCase()}`,tabIndex:0,onClick:()=>{},onKeyPress:()=>{},children:[jsxRuntimeExports.jsx(StyledMenuLinkIcon$1,{children:tt.icon},rt),jsxRuntimeExports.jsx("span",{className:"nav-drop-down-link-text",children:tt.title})]},rt),jsxRuntimeExports.jsx(ToggleButtonsWrapper,{children:jsxRuntimeExports.jsx(ToggleButtons,{id:"new-patient-summary-toggle",options:NEW_PATIENT_SUMMARY_OPTIONS,value:lt,handleChange:kt=>{ut(kt),kt===VIEW_MAPPINGS.Simple?Ct():It()}})})]},tt.title.replace(/\s+/g,"-").toLowerCase())},SUBMIT_FEEDBACK_QUERY=gql`
  mutation CreateFeedback($page: String!, $message: String!) {
    createFeedback(page: $page, message: $message) {
      feedback {
        id
      }
    }
  }
`,StyledH3$1=styled("h3")`
  font-style: normal;
  font-weight: bold;
  font-size: ${getRemSize(18)};
  line-height: 1.55em;
  color: ${et=>et.theme.palette.text.primary};
`,StyledFeedbackFormButtonWrapper=styled("div")`
  display: flex;
  justify-content: space-between;
  background-color: ${et=>et.theme.palette.grey[100]};
  padding: 8px;

  button {
    font-size: 14px !important;
    width: 148px !important;
    height: 40px !important;
  }
`,StyledFeedbackSuccessMessage=styled("div")`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100% - 40px);
  max-width: 320px;
  padding: 0 20px;

  h3 {
    text-align: center;
    padding: 25px 0 50px;
  }
`,StyledFeedbackFormInputWrapper=styled("div")`
  height: calc(100% - 100px);

  textarea {
    border: none;
    height: 100%;
    resize: none;
  }
`,FeedbackForm$1=({setOpenDropDown:et,setIsFeedbackFormOpen:tt})=>{const[rt]=useMutation(SUBMIT_FEEDBACK_QUERY),[nt,lt]=reactExports.useState(""),[ut,dt]=reactExports.useState(!1),pt=()=>{rt({variables:{message:nt,page:location.pathname}}).then(()=>{ht()}).catch(mt=>{ht()})},ht=()=>{dt(!0),setTimeout(function(){et(!1),tt(!1),dt(!1),lt("")},5e3)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ut?jsxRuntimeExports.jsxs(StyledFeedbackSuccessMessage,{children:[jsxRuntimeExports.jsx(CheckCircleOutlined,{color:"primary"}),jsxRuntimeExports.jsx(StyledH3$1,{children:sharedContent$1.feedbackForm.submissionSuccess}),jsxRuntimeExports.jsx(Button,{id:"closeFeedbackSuccessMessage",title:sharedContent$1.feedbackForm.closeButton,onClick:()=>{et(!1),tt(!1),dt(!1),lt("")},variant:"contained"},sharedContent$1.feedbackForm.closeButton)]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledFeedbackFormInputWrapper,{children:jsxRuntimeExports.jsx(TextArea,{placeholder:sharedContent$1.feedbackForm.placeholder,value:nt,onBlur:()=>{},onChange:mt=>{lt(mt.target.value)},name:"FeedbackFormTextArea"},"FeedbackTextArea")}),jsxRuntimeExports.jsxs(StyledFeedbackFormButtonWrapper,{children:[jsxRuntimeExports.jsx(Button,{id:"FeedbackBackButton",onClick:()=>{tt(!1)},children:"Back"},"Back"),jsxRuntimeExports.jsx(Button,{id:"SubmitFeedbackButton",onClick:()=>{pt()},disabled:nt.length<1,variant:nt.length>=1?"contained":"text",children:"Submit"},"Submit")]})]})})},logger$M=new Logger("LogoutPage"),LOGOUT_MUTATION$3=gql`
  mutation Logout {
    logout {
      errors
    }
  }
`,StyleNavDropdownMenu=styled("div")`
  position: absolute;
  background: white;
  top: 60px;
  right: 0;
  flex-direction: column;
  font-weight: bold;
  cursor: default;
  color: ${et=>et.theme.palette.grey[600]};
  height: calc(100vh - 60px);
  right: 0;
  transform: translateX(101%);
  ${et=>et.$dropdownOpen&&`
      transform: translateX(0);
      transition: 0.3s;
    `};
  min-width: 320px;
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};
  transition-timing-function: ease-in-out;
  transition: 0.2s;
`,StyledDropdownMobileOverlay=styled("div")`
  width: 100vw;
  height: 100vh;
  position: absolute;
  right: 0;
  top: 62px;
  visibility: hidden;
  pointer-events: none;
  background: none;

  @media (max-width: 767px) {
    ${et=>et.$dropdownOpen&&`
        visibility: visible;
        background: rgba(46, 46, 46, 0.25);
        pointer-events: auto;
      `};
  }
`,StyledDropdownContainerOP=styled("div")`
  padding: 8px 12px;
  margin: -13px 0;
  margin-right: 16px;
  height: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  transition: border-color 0.1s ease-in-out;

  .icon {
    pointer-events: none;
  }

  &:hover,
  &:focus {
    border-color: white;
  }
`,StyledH3=styled("h3")`
  font-style: normal;
  font-weight: bold;
  font-size: ${getRemSize(18)};
  line-height: 1.55em;
  color: ${et=>et.theme.palette.text.primary};
`,StyledDropdownControls=styled("div")`
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 5px;
  background: ${et=>et.theme.palette.grey[100]};

  svg {
    width: 25px;
    height: 25px;
    padding: 5px;

    path {
      fill: ${et=>et.theme.palette.primary.main};
    }
  }
`,StyledDropdownCloseButton=styled("div")`
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;

  path {
    transition: fill 0.15s ease-in-out;
  }

  &:hover,
  &:focus {
    path {
      fill: ${et=>et.theme.palette.grey[600]};
    }
  }
`,StyledUserInformation=styled("div")`
  display: flex;
  border-bottom: solid 1px ${et=>et.theme.palette.grey[300]};
  padding-right: 18px;

  svg {
    margin: 16px;
  }
`,StyledUserName=styled("div")`
  font-style: normal;
  font-weight: bold;
  font-size: ${getRemSize(18)};
  text-transform: uppercase;
  color: ${et=>et.theme.palette.text.primary};
  display: flex;
  align-items: center;
  max-width: 225px;
  line-height: 130%;
`,StyledMenuLinks=styled("ul")`
  list-style: none;
  margin-left: 0;
`,StyledMenuLinkItem=styled("li")``,StyledMenuLink=styled("div")`
  border: none;
  background: transparent;
  border-bottom: solid 1px ${et=>et.theme.palette.grey[300]};
  padding: 15px 18px;
  display: flex;
  align-items: center;
  color: ${et=>et.theme.palette.text.primary};
  cursor: pointer;
  margin-bottom: 0;
  width: 100%;
  font-weight: bold;
  transition: background-color 0.15s ease-in-out;

  svg {
    margin-right: 10px;
  }

  span {
    font-size: ${getRemSize(14)};
  }

  &:hover,
  &:focus {
    color: ${et=>et.theme.palette.text.primary};
    text-decoration: none;
    background-color: ${et=>et.theme.palette.grey[100]};
  }
`,StyledMenuLinkIcon=styled("div")`
  svg {
    width: 25px;
    height: 25px;
  }

  path {
    fill: ${et=>et.theme.palette.primary.main}};
  }
`,NavigationDropDown$1=et=>{const{client:tt,forROPortal:rt=!1,name:nt,ukSide:lt}=et,ut=reactExports.useContext(ThemeContext$3),[dt,pt]=reactExports.useState(!1),[ht,mt]=reactExports.useState(!1),[xt,Mt]=reactExports.useState(!1),{hasFeature:vt}=reactExports.useContext(UserContext),{data:Ot}=useQuery(UX_FEATURE_OPTION_QUERY,{variables:{featureOptionName:"ShowThemeSwitch"}}),At=reactExports.useMemo(()=>{var Qt;return(Qt=Ot==null?void 0:Ot.uxFeatureOption)==null?void 0:Qt.active},[Ot]),Rt=CurrentAppConfig.ShowResetDemoDataMenuLink,zt=[{title:sharedContent$1.menuLinks.newSummary,url:"/",icon:jsxRuntimeExports.jsx(PollOutlinedIcon,{color:"primary"}),isROPortal:rt},{title:sharedContent$1.menuLinks.manageProtocols,url:(CurrentAppConfig.MenuItems.manageProtocols?"/sso/carepath_redirect":"")||"",icon:jsxRuntimeExports.jsx(ManageAccounts,{color:"primary"}),isROPortal:rt},{title:sharedContent$1.menuLinks.logout,url:"/",icon:jsxRuntimeExports.jsx(ExitToAppIcon,{htmlColor:ut==null?void 0:ut.theme.palette.grey[600]}),isROPortal:rt}],Tt=rt?`Dr. ${nt}`:nt,Ct=reactExports.useRef(null);useOnClickOutside(Ct,()=>{kt(),Mt(!1)});const It=()=>{mt(!1),pt(!1)},Dt=()=>{dt||pt(!0)},kt=()=>{pt(!1)},qt=Qt=>{Mt(Qt)},Nt=useLocation(),Yt=()=>{tt&&(tt.clearStore().then(()=>{tt.writeQuery({query:gql`
          query {
            contentShown
          }
        `,data:{contentShown:!1}})}),tt.mutate({mutation:LOGOUT_MUTATION$3,variables:{}}).then(Qt=>{if(Qt.data.logout.errors!==null){logger$M.error("logout","Unable to logout"),logger$M.error("logout",Qt.data.logout.errors);return}navigateToExternalURL("/sso/logout")}))},Kt=()=>zt.filter(Qt=>Qt.url).map((Qt,Bt)=>{if(Qt.title===sharedContent$1.menuLinks.newSummary)return jsxRuntimeExports.jsx(NewPatientSummary,{menuLink:Qt,index:Bt,defaultButtonState:"disable"},Bt);if(Qt.title===sharedContent$1.menuLinks.feedback&&!Qt.isROPortal)return jsxRuntimeExports.jsx(reactExports.Fragment,{},Qt.title);const Ft=()=>{Qt.title===sharedContent$1.menuLinks.feedback?qt(!0):Qt.title===sharedContent$1.menuLinks.logout?mt(!0):Qt.title===sharedContent$1.menuLinks.manageProtocols?window.open(Qt.url,"_blank"):et.history.push({pathname:Qt.url,state:{from:Nt.pathname}})};return Qt.title===sharedContent$1.menuLinks.newSummary&&!vt(Features.PATIENT_SUMMARY)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(StyledMenuLinkItem,{children:jsxRuntimeExports.jsxs(StyledMenuLink,{className:"nav-drop-down-link","data-test-id":`menu-title-${Qt.title.replace(/\s+/g,"-").toLowerCase()}`,role:"button",tabIndex:0,onClick:Ft,onKeyPress:$t=>{$t.key==="Enter"&&Ft()},children:[jsxRuntimeExports.jsx(StyledMenuLinkIcon,{children:Qt.icon},Bt),jsxRuntimeExports.jsx("span",{className:"nav-drop-down-link-text",children:Qt.title})]},Bt)},Qt.title.replace(/\s+/g,"-").toLowerCase())}),Jt=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyleNavDropdownMenu,{$dropdownOpen:dt,id:"navigation-dropdown-menu",children:[jsxRuntimeExports.jsxs(StyledDropdownControls,{children:[jsxRuntimeExports.jsx(StyledH3,{children:xt?sharedContent$1.generic.label.feedback:sharedContent$1.generic.label.myAccount}),jsxRuntimeExports.jsx(StyledDropdownCloseButton,{tabIndex:0,role:"button",id:"closeDropdownButton",onKeyPress:Qt=>{Qt.key==="Enter"&&kt()},onClick:kt,children:jsxRuntimeExports.jsx(CloseIcon,{color:"primary"})})]},"dropdownControls"),Tt?xt?jsxRuntimeExports.jsx(FeedbackForm$1,{setOpenDropDown:pt,setIsFeedbackFormOpen:Mt}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledUserInformation,{children:[jsxRuntimeExports.jsx(ROProfilePhoto,{}),jsxRuntimeExports.jsx(StyledUserName,{children:Tt})]}),jsxRuntimeExports.jsx(StyledMenuLinks,{children:Kt()},"menuLink")]}):jsxRuntimeExports.jsx(StyledMenuLinks,{children:Kt()},"menuLink"),At&&jsxRuntimeExports.jsx(Stack$5,{sx:{padding:"8px"},children:jsxRuntimeExports.jsx(ToggleButtons,{id:"theme-toggle",fullWidth:!0,options:[{label:"GC",value:"GC"},{label:"Lumonus",value:"Lumonus"}],value:(ut==null?void 0:ut.theme)===theme$1?"GC":"Lumonus",handleChange:Qt=>{Qt==="GC"?ut==null||ut.setTheme(theme$1):Qt==="Lumonus"&&(ut==null||ut.setTheme(theme))}})}),Rt&&jsxRuntimeExports.jsx(Stack$5,{sx:{padding:"8px"},children:jsxRuntimeExports.jsx(Button,{onClick:()=>{navigateToExternalURL("/server/demo/reset-demo-data/")},children:"Reset Demo Data"})})]}),jsxRuntimeExports.jsx(StyledDropdownMobileOverlay,{$dropdownOpen:dt,className:"nav-drop-down-mobile-overlay",onClick:()=>{}},"mobileOverlay")]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledDropdownContainerOP,{ref:Ct,role:"presentation",id:"dropdown-nav-link",tabIndex:0,onKeyPress:Qt=>{Qt.key==="Enter"&&Dt()},onClick:Dt,children:[rt?jsxRuntimeExports.jsx(ROProfilePhoto,{inHeader:!lt}):jsxRuntimeExports.jsx(AccountCircleOutlinedIcon,{htmlColor:"white"}),Jt()]}),jsxRuntimeExports.jsx(StandardDialog,{id:"logoutModal",title:"Logout",open:ht,onClose:It,submitText:"Logout",closeText:"Cancel",onSubmit:()=>{Yt(),It()},children:jsxRuntimeExports.jsx(Typography,{paddingY:2,children:"Are you sure you want to logout?"})})]})},routedComponent$v=withRouter(withApollo(NavigationDropDown$1)),HAS_LATEST_NOTIFICATION=gql`
  query HasLatestNotification {
    hasLatestNotification {
      hasLatest
    }
  }
`,UPDATE_USER_NOTIFICATION=gql`
  mutation UpdateUserNotification {
    updateUserNotification {
      ok
    }
  }
`;gql`
  {
    user {
      id
      email
      firstName
      lastName
      isPso
      isSuperuser
      isShowcaseUser
      primaryRole
    }
  }
`;const LOGGED_IN_PATIENT_QUERY=gql`
  {
    patient {
      id
      ida
    }
  }
`,OutageBanner=()=>{var mt;const et=useLocation(),tt=new Date,rt=useTheme$1(),nt=et.pathname,lt=new Date(tt.getFullYear(),2,17),ut=new Date(tt.getFullYear(),2,11),dt=tt>lt,pt=tt>ut,ht=((mt=CurrentAppConfig==null?void 0:CurrentAppConfig.Outage)==null?void 0:mt.showBanner)&&(nt==="/radiation"||nt==="/search")&&!dt&&pt;return jsxRuntimeExports.jsx("div",{style:{width:"100%",backgroundColor:rt.palette.grey[600],height:"48px",display:ht?"block":"none"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"16px",lineHeight:"24px",color:"white",fontWeight:"500",fontStyle:" normal",height:"48px"},children:[CurrentAppConfig==null?void 0:CurrentAppConfig.Outage.message,jsxRuntimeExports.jsxs("a",{href:CurrentAppConfig==null?void 0:CurrentAppConfig.Outage.link,style:{color:"white",textDecoration:"underline",marginLeft:"10px"},target:"_blank",children:["Learn more"," "]})]})})},{RO:RO$2,CAREPLANVIEWER:CAREPLANVIEWER$1,MO:MO$3,PSO:PSO$6}=RoleType,HeaderContainer$2=styled$1(Stack$5)`
  width: 100%;
  background-color: ${et=>et.theme.palette.primary.main};
  height: 56px;
  z-index: 7000;
  position: relative;
  box-shadow: 0px 1px 2px ${et=>et.theme.palette.grey[600]};
  align-items: center;
  padding: 0px 0px 0px 20px;
`,NavLinksContainer=styled$1(Stack$5)`
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: 81px;
  height: 56px;

  a {
    text-decoration: unset;
  }

  a:hover {
    color: white;
    text-decoration: unset;
  }
`,StyledLink$6=styled$1(NavLink)`
  color: white;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  :hover {
    color: white;
    text-decoration: none;
    border-bottom: 3px solid white;
  }

  text-decoration: unset;
  height: 100%;
  display: flex;
  align-items: center;
`,StyledLatestUpdatesLink=styled$1("a")`
  color: white;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  :hover {
    color: white;
    text-decoration: none;
    border-bottom: 3px solid white;
  }
  text-decoration: unset;
  height: 100%;
  display: flex;
  align-items: center;
`,NotificationIcon=styled$1(et=>jsxRuntimeExports.jsx(SvgNotificationIcon,{title:"notificationIcon.svg",...et}))`
  margin-top: -5px;
`,NotificationCircle=styled$1("div")`
  margin: -24px 0px 0px 130px;
`,StyledName$1=styled$1("div")`
  color: white;
  font-size: 16px;
  width: 150px;
  text-align: right;
`,SearchIcon=styled$1(et=>jsxRuntimeExports.jsx(SvgSearchWhite,{...et}))`
  cursor: pointer;
  margin-right: 10px;
  height: 56px;
  width: 30px;
  :hover {
    color: white;
    text-decoration: none;
    border-bottom: 3px solid white;
  }
`,InternalHeader=({children:et,primaryRole:tt,isPso:rt,firstName:nt,lastName:lt,recentPatients:ut})=>{var qt,Nt;const dt=useTheme$1(),ht=useWindowSize().width<1440,[mt,xt]=reactExports.useState(!1),{data:Mt,loading:vt}=useQuery(HAS_LATEST_NOTIFICATION),Ot=vt?!1:!((qt=Mt==null?void 0:Mt.hasLatestNotification)!=null&&qt.hasLatest)&&rt,[At]=useMutation(UPDATE_USER_NOTIFICATION,{awaitRefetchQueries:!0,refetchQueries:[{query:HAS_LATEST_NOTIFICATION}]}),zt={[RO$2]:"/radiation",[CAREPLANVIEWER$1]:"/radiation",[MO$3]:"/medonc",[PSO$6]:"/search"}[tt]||"/search",Tt=jsxRuntimeExports.jsx(NotificationCircle,{children:jsxRuntimeExports.jsxs("svg",{className:"notification-red-circle",height:"15",width:"15",children:[jsxRuntimeExports.jsx("circle",{cx:"7.5",cy:"7.5",r:"7.5",fill:dt.palette.error.main}),jsxRuntimeExports.jsx("text",{fontSize:"0.8em",x:"28%",y:"50%",fill:"white",dy:".35em",children:"1"})]})}),Ct=tt===RO$2,It=[{label:Ct?"APPOINTMENTS":"DASHBOARD",linkTo:zt,id:"appointments"}];Ct&&It.push({label:"CAREPLANS",linkTo:"/radiation/careplans",id:"careplans"}),isDemo&&It.push({label:"TRACKER",linkTo:"/radiation/patient-tracker",id:"dashboard"},{label:"INSIGHTS",linkTo:"/radiation/insights",id:"insights"}),isUs()||It.push({label:"LATEST UPDATES",linkTo:"https://genesiscare.sharepoint.com/sites/Oncologyportal/SitePages/Latest-Release-information.aspx",id:"latestUpdates"});const Dt=Yt=>{xt(Kt=>!Kt),Yt.stopPropagation()},kt=Yt=>{const{linkTo:Kt,label:Jt,id:Qt}=Yt.option,Bt=()=>{Ot&&At()};return Qt==="latestUpdates"?[RO$2,CAREPLANVIEWER$1,MO$3].includes(tt)?null:jsxRuntimeExports.jsx(StyledLatestUpdatesLink,{href:Kt,target:"_blank",id:"sharepoint-link",children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",sx:{display:"flex",alignItems:"center"},onClick:()=>{Qt==="latestUpdates"&&Bt()},children:[jsxRuntimeExports.jsx(Typography,{color:dt.palette.primary.contrastText,variant:"button",children:Jt}),jsxRuntimeExports.jsx(NotificationIcon,{}),Ot&&Tt]})}):jsxRuntimeExports.jsx(StyledLink$6,{exact:!0,to:Kt,activeStyle:{borderBottom:"3px solid white"},id:Qt,children:jsxRuntimeExports.jsx(Typography,{color:dt.palette.primary.contrastText,variant:"button",children:Jt})})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(OutageBanner,{}),jsxRuntimeExports.jsxs(HeaderContainer$2,{direction:"row",id:"internal-header",children:[jsxRuntimeExports.jsx(Link$2,{to:zt,id:"gc-logo-navigator",children:(Nt=dt==null?void 0:dt.custom)==null?void 0:Nt.logo}),jsxRuntimeExports.jsx(NavLinksContainer,{gap:"32px",direction:"row",children:It.map(Yt=>jsxRuntimeExports.jsx(kt,{option:Yt},Yt.label))}),jsxRuntimeExports.jsxs("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center"},children:[isOncologist(tt)?jsxRuntimeExports.jsxs("div",{role:"presentation",className:`inline-search-div ${mt?"active-search":""}`,children:[!mt&&jsxRuntimeExports.jsx(SearchIcon,{"data-testid":"search-icon",onClick:Dt}),mt&&jsxRuntimeExports.jsx(ROInlinePatientSearch,{primaryRole:tt,closeSearch:()=>xt(!1),recentPatients:ut})]}):!isViewer(tt)&&jsxRuntimeExports.jsx(StyledName$1,{id:"logged-in-user-name",children:ht?nt[0]+". "+lt:nt+" "+lt}),jsxRuntimeExports.jsx(routedComponent$v,{name:nt+" "+lt,forROPortal:isOncologist(tt)})]})]}),et&&React$4.cloneElement(et,{primaryRole:tt})]})},HeaderContainer$1=styled$1("div")`
  display: flex;
  justify-content: space-between;
  padding: 0px 15px 0px 15px;
  background-color: white;
  height: 56px;
  position: sticky;
  z-index: 50;
  box-shadow: 0px 3px 8px ${et=>et.theme.palette.grey[600]};
  align-items: center;
`,StyledLogo=styled$1(SvgGenesisCareTextLogo)`
  height: 28px;
`,StyledHeadingText=styled$1("div")`
  color: black;
  font-size: 23px;
  font-weight: bold;
`,PatientFacingHeader=({children:et,primaryRole:tt,headingText:rt,menuButton:nt,menuButtonText:lt})=>{const dt=useWindowSize().width<1440,{loading:pt,data:ht,error:mt}=useQuery(LOGGED_IN_PATIENT_QUERY,{fetchPolicy:"network-only"}),{setError:xt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(mt)return xt()},[mt]),pt)return jsxRuntimeExports.jsx(DefaultHeader,{patientFacing:!0});const Mt=()=>jsxRuntimeExports.jsx(Link$2,{to:`/patient/${ht.patient.id}/home`,children:jsxRuntimeExports.jsx(Button,{"data-testid":"go-to-home",children:lt||"Main Menu"})});return ht?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs(HeaderContainer$1,{id:"patient-facing-header",children:[jsxRuntimeExports.jsx(Link$2,{to:`/patient/${ht.patient.id}/home`,id:"gc-logo-patient-facing",children:jsxRuntimeExports.jsx(StyledLogo,{})}),rt&&dt&&jsxRuntimeExports.jsx(StyledHeadingText,{children:rt}),nt&&jsxRuntimeExports.jsx(Mt,{})]}),et&&React$4.cloneElement(et,{primaryRole:tt})]}):jsxRuntimeExports.jsx(DefaultHeader,{patientFacing:!0})},{PSO:PSO$5,MO:MO$2,RO:RO$1,SUPERUSER:SUPERUSER$4,DOCTOR,NURSE:NURSE$3,CAREPLANVIEWER,OTHER:OTHER$3}=RoleType,isOncologist=et=>et===RO$1||et===MO$2,isViewer=et=>et===CAREPLANVIEWER,HeaderBar=({children:et,defaultHeader:tt,headingText:rt,menuButton:nt,recentPatients:lt,styledProps:ut,preventQuery:dt=!1,menuButtonText:pt,hasRendered:ht})=>{const[mt,xt]=reactExports.useState(!1),{setError:Mt}=useErrorModalContext(),{data:vt,error:Ot}=useQuery(USER_QUERY$2,{fetchPolicy:"network-only",skip:dt});if(reactExports.useEffect(()=>{Ot&&(xt(!0),Mt())},[Ot]),reactExports.useEffect(()=>{vt&&ht&&ht()},[vt]),tt||mt)return jsxRuntimeExports.jsx(DefaultHeader,{patientFacing:tt,headingText:rt});if(vt&&vt.user.primaryRole){const At=[PSO$5,SUPERUSER$4,NURSE$3].includes(vt.user.primaryRole)||vt.user.isShowcaseUser;if(window.location.pathname==="/search"&&!At)return jsxRuntimeExports.jsx(Redirect,{to:"/error"});const Rt={[RO$1]:InternalHeader,[MO$2]:InternalHeader,[PSO$5]:InternalHeader,[NURSE$3]:InternalHeader,[SUPERUSER$4]:InternalHeader,[CAREPLANVIEWER]:InternalHeader,[DOCTOR]:DefaultHeader,[OTHER$3]:PatientFacingHeader},zt={children:et,primaryRole:vt.user.primaryRole,isPso:vt.user.isPso,firstName:vt.user.firstName,lastName:vt.user.lastName,headingText:rt,menuButton:nt,recentPatients:lt,styledProps:ut,menuButtonText:pt},Tt=Rt[vt.user.primaryRole];return jsxRuntimeExports.jsx(Tt,{...zt})}return jsxRuntimeExports.jsx(reactExports.Fragment,{})};class HeroImage extends reactExports.Component{constructor(){super(...arguments);Nr(this,"getAddress",()=>{const{patient:{address:rt}}=this.props;if(!rt)return"";const{formattedAddress:nt}=rt;return nt});Nr(this,"getDob",()=>{const{patient:rt}=this.props,nt=moment$2(rt.dob,"YYYY-MM-DD");return`${nt.format(isUs()?"MMMM DD, YYYY":"DD MMM YYYY")} (age ${calculateMomentAge(nt)})`})}render(){const{patient:rt}=this.props;return jsxRuntimeExports.jsx("div",{id:"hero-image",children:jsxRuntimeExports.jsx("div",{className:"image",children:jsxRuntimeExports.jsxs("div",{className:"patient-identifiers",children:[jsxRuntimeExports.jsx("div",{className:"title",children:`Welcome ${rt.resolvedNamePrefix} ${rt.firstName} ${rt.lastName}`}),jsxRuntimeExports.jsxs("div",{className:"content-container",children:[jsxRuntimeExports.jsx("div",{"data-test-id":"dob-subtitle",className:"sub-title",children:"Date of birth"}),jsxRuntimeExports.jsx("div",{"data-test-id":"dob-content",className:"sub-content",children:this.getDob()})]}),jsxRuntimeExports.jsxs("div",{className:"content-container",children:[jsxRuntimeExports.jsx("div",{"data-test-id":"address-subtitle",className:"sub-title",children:"Address"}),jsxRuntimeExports.jsx("div",{"data-test-id":"address-content",className:"sub-content",children:this.getAddress()})]})]})})})}}const SEARCH_FILTERS_REF_DATA_QUERY$1=gql`
  query SearchFilters {
    searchFiltersRefData: listData(category: "searchFilters", removeOutdated: true) {
      id
      name
      appKey
    }
  }
`,PATIENT_SEARCH=gql`
  query PatientSearch($searchTerm: String!, $selectedFilter: [String]!, $locationFilter: [Int]!, $tagFilter: [Int]!) {
    searchPatients(
      searchString: $searchTerm
      selectedFilter: $selectedFilter
      locationFilter: $locationFilter
      tagFilter: $tagFilter
    ) {
      id
      firstName
      lastName
      ida
      dob
      primaryPhone
      primaryPhoneFormatted
      email
      pxOptedIn
      pxOptOutComment
      overallStatus
      horizonCenterId
      address {
        id
        line1
        line2
        city
        state
        country
        postcode
      }
      regFormStatus
      primaryCenterAlias
      emrInstance
      userProfile {
        id
        registrationAccessType
        showDistressThermometer
        showRegistration
        showHealthAssessment
        patientFeatures {
          distressThermometerEotEnabled
          distressThermometerEnabled
          managementPlansEnabled
          covidEnabled
        }
      }
      tags {
        id
        tag {
          id
          name
        }
      }
    }
    user {
      id
    }
  }
`;gql`
  mutation getPin($id: ID!, $toForm: String) {
    getPin(id: $id, toForm: $toForm) {
      pin
    }
  }
`;const SEND_PX_EMAIL_INVITATION=gql`
  mutation SendPXEmailInvitation($recipientEmail: String!) {
    sendPxEmailInvitation(recipientEmail: $recipientEmail) {
      success
      inviteLink
    }
  }
`,CREATE_SUBMISSION$1=gql`
  mutation CreateSubmission($patientID: ID, $includePdf: Boolean, $updateFormStatus: Boolean, $fromHomeRego: Boolean) {
    createSubmission(
      patientId: $patientID
      includePdf: $includePdf
      updateFormStatus: $updateFormStatus
      fromHomeRego: $fromHomeRego
    ) {
      submission {
        id
        pdf
      }
    }
  }
`,GET_USER_DETAILS$1=gql`
  query UserDetails($roles: [String]!, $hasOther: Boolean!) {
    user {
      id
      username
      features {
        distressThermometer
      }
      primaryRole
      isPractitioner
    }
    allowedLocations(roles: $roles, hasOther: $hasOther) {
      id
      alias
    }
  }
`;gql`
  mutation CreatePatient {
    createPatient {
      patient {
        id
      }
    }
  }
`;const LOGOUT_MUTATION$2=gql`
  mutation Logout {
    logout {
      user {
        id
      }
      errors
    }
  }
`,GET_PATIENTS_BY_EMAIL=gql`
  query GetPatientsByEmail($email: String) {
    patients: getPatientsByEmail(email: $email) {
      id
    }
  }
`,HEADER_TITLE="Patient Portal access",DESCRIPTION$1={LINE_1:"Does the patient want to sign up?",LINE_2:"This will update the Patient Portal access status."},SEGMENT_INPUT={OPT_IN:"optIn",OPT_OUT:"optOut"},FIELD_INFO$5={OPT_IN:{NAME:"pxOptedIn",KEY:"pxOptedIn"},EMAIL:{NAME:"email",KEY:"email",PLACEHOLDER:"Enter email address",TITLE:"Email"},PRIMARY_PHONE:{NAME:"primaryPhone",KEY:"primaryPhone",PLACEHOLDER:"Enter mobile",TITLE:"Mobile"},OPT_OUT_REASON:{NAME:"pxOptOutComment",KEY:"pxOptOutComment",PLACEHOLDER:"Please enter the reason for opting out as this will help us to improve the experience... (limit to 500 characters)",TITLE:"Reason for opting out of Patient Portal"}},OPT_OUT_PLACEHOLDER="Please enter the reason for opting out as this will help us to improve the experience... (limit to 500 characters)",VALIDATION_MESSAGE={primaryPhone:{INVALID_DATA:"Please enter a valid mobile number.",MISSING_DATA:"Please enter your mobile phone number."},email:{INVALID_DATA:"Please enter a valid email address.",MISSING_DATA:"Please enter your email address.",DUPLICATE_EMAIL:"Email address already in use, please use another email address"},pxOptOutComment:{MISSING_DATA:"Please enter a reason for opting out."}},DialogOptIn=et=>{const{isOpen:tt,dismissFunction:rt,patient:nt,patientIda:lt,dob:ut,address:dt,setMutationLoading:pt,saveFunction:ht,dismissLock:mt}=et,{id:xt,firstName:Mt,lastName:vt,pxOptedIn:Ot}=nt,At=Ot?SEGMENT_INPUT.OPT_IN:Ot===!1?SEGMENT_INPUT.OPT_OUT:"",[Rt,zt]=reactExports.useState(At),[Tt,Ct]=reactExports.useState({}),[It,Dt]=reactExports.useState(nt==null?void 0:nt.primaryPhone),[kt,qt]=reactExports.useState(nt==null?void 0:nt.email),[Nt,Yt]=reactExports.useState(nt==null?void 0:nt.pxOptOutComment),Kt=useTheme$1(),Jt=()=>{if(Rt===SEGMENT_INPUT.OPT_IN){let Ut,Vt;return Tt&&(Tt.primaryPhone&&Tt.primaryPhone.length>0&&(Ut=Tt.primaryPhone.map(Ht=>VALIDATION_MESSAGE.primaryPhone[Ht])),Tt.email&&Tt.email.length>0&&(Vt=Tt.email.map(Ht=>VALIDATION_MESSAGE.email[Ht]))),jsxRuntimeExports.jsxs(Stack$5,{gap:2,paddingBottom:2,width:"80%",children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:2,children:[jsxRuntimeExports.jsx(Typography,{id:"primaryPhoneLabel",width:"30%",variant:"subtitle2",children:FIELD_INFO$5.PRIMARY_PHONE.TITLE}),jsxRuntimeExports.jsx(BaseTextField,{name:"primaryPhone",sx:{width:"70%"},id:FIELD_INFO$5.PRIMARY_PHONE.NAME,value:It,placeholder:FIELD_INFO$5.PRIMARY_PHONE.PLACEHOLDER,onChange:Ht=>Dt(Ht.target.value),error:!!Ut,helperText:Ut==null?void 0:Ut.join(" ")})]}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:2,children:[jsxRuntimeExports.jsx(Typography,{id:"emailLabel",width:"30%",variant:"subtitle2",children:FIELD_INFO$5.EMAIL.TITLE}),jsxRuntimeExports.jsx(BaseTextField,{name:"email",sx:{width:"70%"},id:FIELD_INFO$5.EMAIL.NAME,value:kt,placeholder:FIELD_INFO$5.EMAIL.PLACEHOLDER,onChange:Ht=>qt(Ht.target.value),error:!!Vt,helperText:Vt==null?void 0:Vt.join(" ")})]})]})}else if(Rt===SEGMENT_INPUT.OPT_OUT){let Ut;return Tt!=null&&Tt.pxOptOutComment&&Tt.pxOptOutComment.length>0&&(Ut=Tt.pxOptOutComment.map(Vt=>VALIDATION_MESSAGE.pxOptOutComment[Vt])),jsxRuntimeExports.jsxs(Stack$5,{width:1,paddingBottom:2,children:[jsxRuntimeExports.jsx(Typography,{"data-testid":"label-pxOptOutComment",variant:"subtitle1",children:FIELD_INFO$5.OPT_OUT_REASON.TITLE}),jsxRuntimeExports.jsx(TextareaAutosize,{style:{outline:"none",fontFamily:"unset"},placeholder:OPT_OUT_PLACEHOLDER,value:Nt,name:"pxOptOutComment",maxLength:500,onChange:Vt=>{Yt(Vt.target.value)}}),Ut==null?void 0:Ut.map(Vt=>jsxRuntimeExports.jsx(ROHelperText,{error:!0,helperText:Vt}))]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},Qt=async()=>{var Gt;let Ut=!1,Vt=[{key:"pxOptOutComment",value:Nt,type:"String"}];const Ht=Bt();if(Rt===SEGMENT_INPUT.OPT_IN){Ut=!0;const Zt=validateRegistration({id:xt,firstName:Mt,lastName:vt,email:kt,primaryPhone:It},ValidationKeys$1.ContactPXSignUp);if(Zt&&Object.keys(Zt).length>0){Ct({...Zt});return}else{const Xt=await((Gt=et.client)==null?void 0:Gt.query({query:GET_PATIENTS_BY_EMAIL,fetchPolicy:"no-cache",variables:{email:kt}})),er=Xt==null?void 0:Xt.data.patients,nr=er.filter(or=>or.id===xt).length;if(er.length===1&&!nr||er.length>1){Ct({email:["DUPLICATE_EMAIL"]});return}}}if(Ut)Vt=[{key:"email",value:kt,type:"String"},{key:"primaryPhone",value:It,type:"String"}];else if(Nt.trim().length===0)return Ct({pxOptOutComment:["MISSING_DATA"]}),mt();ht(Vt,Ut,Ht)},Bt=()=>{const Ut=nt==null?void 0:nt.primaryPhone.split(" ").join(""),Vt=It.split(" ").join("");return!(Ut===Vt&&kt===(nt==null?void 0:nt.email))},Ft=(Ut,Vt,Ht)=>{let Gt=!1,Zt;return Zt=$t(Vt),Gt=Zt===Ht||Zt==="Not provided",jsxRuntimeExports.jsxs(Grid,{container:!0,className:"patient-data-row",children:[jsxRuntimeExports.jsx(Grid,{item:!0,className:"patient-data-title",xs:6,children:jsxRuntimeExports.jsxs(Typography,{variant:"subtitle1",textAlign:"right",paddingRight:"16px",children:[Ut,":"]})}),jsxRuntimeExports.jsx(Grid,{item:!0,className:classNames$1("patient-data-content",{optional:Gt}),xs:6,children:jsxRuntimeExports.jsx(Typography,{variant:"body1",children:Zt})})]})},$t=(Ut,Vt)=>Ut||"Not provided",jt=Ut=>{if(Ut){const{line1:Vt,line2:Ht,city:Gt,state:Zt,country:Xt,postcode:er}=Ut;if(Vt||Gt||Zt||Xt||er)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{children:[Vt,",",jsxRuntimeExports.jsx("br",{}),Wt(Ht),Gt,",",jsxRuntimeExports.jsx("br",{}),Zt," ",Xt," ",er]})})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Not provided"})},Wt=Ut=>Ut?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ut,",",jsxRuntimeExports.jsx("br",{})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});return jsxRuntimeExports.jsx(StandardDialog,{id:"patient-portal-access",open:tt,onClose:rt,fullWidth:!0,maxWidth:"sm",title:HEADER_TITLE,showDividers:!0,onSubmit:()=>{pt(),Qt()},submitText:Rt===SEGMENT_INPUT.OPT_IN?"Send invitation link":"Save",children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsxs("div",{className:"description",style:{textAlign:"center",paddingBottom:"16px"},children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:DESCRIPTION$1.LINE_1}),jsxRuntimeExports.jsx(Typography,{variant:"body1",children:DESCRIPTION$1.LINE_2})]}),jsxRuntimeExports.jsxs("form",{className:"form-container",style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[jsxRuntimeExports.jsx("div",{style:{width:"70%",paddingBottom:"16px"},children:jsxRuntimeExports.jsx(SegmentedInput,{options:[{id:SEGMENT_INPUT.OPT_IN,name:"Sign up"},{id:SEGMENT_INPUT.OPT_OUT,name:"Opt out"}],fieldName:FIELD_INFO$5.OPT_IN.NAME,defaultSelected:Rt,itemSelected:Ut=>{zt(Ut.id),Ct({})}})}),Jt()]}),jsxRuntimeExports.jsxs("div",{id:"patient-portal-name",children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",textAlign:"center",sx:{backgroundColor:Kt.palette.grey[200],padding:"8px 0px"},children:`${nt.firstName} ${nt.lastName}`}),Ft("EMR",nt.emrInstance),Ft("Patient ID",lt),Ft("Date of birth",DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(ut)),Ft("Address",jt(dt))]})]})},`patient-portal-access-${xt}`)},apolloDialogOptIn=withApollo(DialogOptIn),ASSESSMENT_AND_REVIEW={ASSESSMENT_TITLE:"We greatly appreciate your cooperation and your time to fill out this form",HAVE_YOU_BEEN_DIAGNOSED:"Have you been diagnosed with COVID-19?",TESTED_AND_WAITING:"Or have you been tested for COVID-19 and are awaiting results?",ADVISED_TO_QUARANTINE:"Have you been advised to quarantine in regard to COVID-19?",CLOSE_CONTACT_WITH_QUARANTINE:"Have you had close contact with a person who is in quarantine or is a confirmed case?",TRAVELLED_TO_HOTSPOT:"Have you or any household member visited an exposure site in the last 14 days?",EXPERIENCING_THE_FOLLOWING:`Are you currently experiencing (or have recently experienced) one or more of the following:
- A fever 37.5°C or above
- Symptoms such as night sweats, chills, cough, sore throat, shortness of breath, loss of smell or taste`,VALID_DATE:"Please enter a valid date.",SELECT_OPTION:"Please select an option.",COVID_SCREENING:"Covid-19 Screening",DATE_OF_SYMPTOMS:"Date of symptom/s onset?"},INFO$1={TITLE:"We are committed to the health and safety of all our patients and staff",PARA_1:"We are asking all patients to complete COVID-19 related questions to ensure we can keep everyone safe when attending our clinic.",PARA_2:"You will be asked to repeat this questionnaire after a break from treatment or between treatment cycles.",PARA_3:"The answers will not impact our care, it will assist us in keeping all patients, visitors and staff safe.",VISITORS_PARA_1:"For the safety of all patients and staff, visitor numbers are to be minimised to ensure appropriate social distancing within the centre.",VISITORS_PARA_2:"In areas where there are COVID-19 restrictions, visitors are limited to only those required for patient safety and wellbeing – if you are unsure if this applies to you, please contact your Centre for more information."};class CovidInformation extends reactExports.Component{render(){return jsxRuntimeExports.jsx("div",{id:"covid-content",children:jsxRuntimeExports.jsx("div",{className:"covid-information-content",children:jsxRuntimeExports.jsxs("div",{className:"covid-information-text-body",children:[jsxRuntimeExports.jsx("p",{className:"covid-information-title",children:INFO$1.TITLE}),jsxRuntimeExports.jsxs("div",{className:"covid-top-half",children:[jsxRuntimeExports.jsx("p",{children:INFO$1.PARA_1}),jsxRuntimeExports.jsx("p",{children:INFO$1.PARA_2}),jsxRuntimeExports.jsx("p",{children:INFO$1.PARA_3})]}),jsxRuntimeExports.jsxs("div",{className:"covid-bottom-half",children:[jsxRuntimeExports.jsxs("div",{className:"covid-left-section",children:[jsxRuntimeExports.jsx("h4",{className:"visitors-title",children:"Visitors"}),jsxRuntimeExports.jsxs("div",{className:"visitors-content",children:[jsxRuntimeExports.jsx("p",{children:INFO$1.VISITORS_PARA_1}),jsxRuntimeExports.jsx("p",{children:INFO$1.VISITORS_PARA_2})]})]}),jsxRuntimeExports.jsx("div",{className:"covid-right-section",children:jsxRuntimeExports.jsx("div",{className:"covid-image"})})]})]})})})}}const routedComponent$u=withRouter(CovidInformation);class CovidInformationContentApollo extends reactExports.Component{render(){return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(routedComponent$u,{})})}}const apolloComponent$s=withApollo(CovidInformationContentApollo);withRouter(apolloComponent$s);const logger$L=new Logger("CovidScreening");function withCovidScreening(et){return class extends reactExports.Component{constructor(){super(...arguments);Nr(this,"getGQLVariables",(rt,nt)=>{const lt={id:rt};for(const ut of Object.entries(nt)){const[dt,pt]=ut;lt[dt]=typeof pt=="object"?{...pt}:pt}return logger$L.debug("getGQLVariables",JSON.stringify(lt)),lt});Nr(this,"getGQLUpdateCovidMutationString",(rt,nt)=>{const lt=mapObjectToMutationParams(rt),ut=mapObjectToFunctionParams(rt),dt=flattenObjectToQueryString(rt);let pt=`mutation UpdateCovidScreening(${lt}) {
        updateCovidScreening(${ut}) {
          covidScreening ${dt}
        }
      }`;return nt&&(pt=pt.replace(/#replaceId/g,`"${nt}"`)),logger$L.debug("getGQLUpdateCovidMutationString",pt),gql(pt)});Nr(this,"getCovidScreeningMutation",(rt,nt)=>{const lt=rt.id;(lt==null||lt==="")&&logger$L.debug("getCovidScreeningMutation","**** MISSING THE ID FROM THE UPDATE OBJECT ****",JSON.stringify(rt));const dt={...this.getGQLVariables(lt,rt),__typename:"CovidScreeningType"};return{mutation:this.getGQLUpdateCovidMutationString(rt,nt),variables:this.getGQLVariables(lt,rt),optimisticResponse:{updateCovidScreening:{covidScreening:dt,errors:null,__typename:"UpdateCovidScreening"}}}})}render(){return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(et,{getCovidMutation:(rt,nt)=>this.getCovidScreeningMutation(rt,nt),...this.props})})}}}const FIELD_NAMES$6={HAS_BEEN_DIAGNOSED:"hasBeenDiagnosed",HAS_BEEN_TESTED:"hasBeenTested",ADVISED_TO_QUARANTINE:"advisedToQuarantine",HAD_CONTACT:"hadContact",TRAVELLED_TO_HOTSPOT:"travelledToHotspot",HAS_SYMPTOMS:"hasSymptoms",SYMPTOM_DATE:"dateOfFeverSymptoms",SYMPTOM_DATE_DAY:"symptom_date_day",SYMPTOM_DATE_MONTH:"symptom_date_month",SYMPTOM_DATE_YEAR:"symptom_date_year"};class CovidAssessment extends reactExports.Component{constructor(rt){super(rt);Nr(this,"addValidationToSubmit",()=>{const rt=document.getElementById("covid-nav-submit");rt?rt.addEventListener("click",()=>{const nt=[FIELD_NAMES$6.HAS_BEEN_DIAGNOSED,FIELD_NAMES$6.HAS_BEEN_TESTED,FIELD_NAMES$6.ADVISED_TO_QUARANTINE,FIELD_NAMES$6.HAD_CONTACT,FIELD_NAMES$6.TRAVELLED_TO_HOTSPOT,FIELD_NAMES$6.HAS_SYMPTOMS,FIELD_NAMES$6.SYMPTOM_DATE];this.setState({viewedFields:new Set(nt)})}):setTimeout(this.addValidationToSubmit,1e3)});Nr(this,"validateObject",rt=>{const nt={dateOfFeverSymptoms:{futureDateDDMMYYYY:{inputDateformat:"DDMMYYYY",message:ASSESSMENT_AND_REVIEW.VALID_DATE}},hasBeenDiagnosed:{presence:{allowEmpty:!1,message:ASSESSMENT_AND_REVIEW.SELECT_OPTION}},hasBeenTested:{presence:{allowEmpty:!1,message:ASSESSMENT_AND_REVIEW.SELECT_OPTION}},advisedToQuarantine:{presence:{allowEmpty:!1,message:ASSESSMENT_AND_REVIEW.SELECT_OPTION}},hadContact:{presence:{allowEmpty:!1,message:ASSESSMENT_AND_REVIEW.SELECT_OPTION}},travelledToHotspot:{presence:{allowEmpty:!1,message:ASSESSMENT_AND_REVIEW.SELECT_OPTION}},hasSymptoms:{presence:{allowEmpty:!1,message:ASSESSMENT_AND_REVIEW.SELECT_OPTION}}},lt={...rt};lt.dateOfFeverSymptoms=`${appendZeroInFront(this.state.symptomDay)}${appendZeroInFront(this.state.symptomMonth)}${this.state.symptomYear}`;const ut={};for(const pt of this.state.viewedFields.keys())ut[pt]=nt[pt];return validate(lt,ut,{fullMessages:!1})});Nr(this,"autoSaveAndValidate",(rt,nt)=>{const{autosave:lt}=this.props;lt(rt);const ut=[...this.state.viewedFields];ut.push(nt),this.setState({viewedFields:new Set(ut)})});Nr(this,"autoSave",rt=>{const{autosave:nt}=this.props;nt(rt)});Nr(this,"addToViewedFields",rt=>{const nt=[...this.state.viewedFields];nt.push(rt),this.setState({viewedFields:new Set(nt)})});let nt="",lt="",ut="";if(this.props.covidScreening.dateOfFeverSymptoms){const dt=new Date(this.props.covidScreening.dateOfFeverSymptoms);nt=dt.getDate().toString(),lt=(dt.getMonth()+1).toString(),ut=dt.getFullYear().toString()}this.state={viewedFields:new Set,hasBeenDiagnosed:!1,hasBeenTested:!1,advisedToQuarantine:!1,hadContact:!1,travelledToHotspot:!1,hasSymptoms:!1,symptomDay:nt,symptomMonth:lt,symptomYear:ut,symptomDateError:!1}}componentDidMount(){setTimeout(this.addValidationToSubmit,500)}renderSymptomsDateField(rt){const{covidScreening:nt}=this.props;if(nt.hasSymptoms){const lt=this.state.symptomDay,ut=this.state.symptomMonth,dt=this.state.symptomYear;return jsxRuntimeExports.jsx(HelperText,{helperText:"DD MM YYYY e.g. 10 03 2020",idPrefix:"covid_symptom",children:jsxRuntimeExports.jsxs(FormSegmentField$1,{required:!0,isValid:rt&&rt.dateOfFeverSymptoms?rt.dateOfFeverSymptoms:void 0,title:"Date of symptom/s onset",htmlFor:FIELD_NAMES$6.SYMPTOM_DATE_DAY,children:[jsxRuntimeExports.jsxs("div",{className:"date-dd-mm-yyy",children:[jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:lt,inputName:FIELD_NAMES$6.SYMPTOM_DATE_DAY,maxLength:2,inputType:"text",defaultValue:lt,onBlur:pt=>{this.setState({symptomDay:pt.target.value}),this.addToViewedFields(FIELD_NAMES$6.SYMPTOM_DATE_DAY),ut&&dt&&this.autoSaveAndValidate({id:parseInt(this.props.patientId),symptomDay:pt.target.value,symptomMonth:this.state.symptomMonth,symptomYear:this.state.symptomYear},FIELD_NAMES$6.SYMPTOM_DATE_DAY)},displayInputError:rt&&rt.dateOfFeverSymptoms?rt.dateOfFeverSymptoms:void 0,placeholder:"DD"}),jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:ut,inputName:FIELD_NAMES$6.SYMPTOM_DATE_MONTH,maxLength:2,inputType:"text",defaultValue:ut,onBlur:pt=>{this.setState({symptomMonth:pt.target.value}),this.addToViewedFields(FIELD_NAMES$6.SYMPTOM_DATE_MONTH),lt&&dt&&this.autoSaveAndValidate({id:parseInt(this.props.patientId),symptomDay:this.state.symptomDay,symptomMonth:pt.target.value,symptomYear:this.state.symptomYear},FIELD_NAMES$6.SYMPTOM_DATE_MONTH)},displayInputError:rt&&rt.dateOfFeverSymptoms?rt.dateOfFeverSymptoms:void 0,placeholder:"MM"}),jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:dt,inputName:FIELD_NAMES$6.SYMPTOM_DATE_YEAR,maxLength:4,inputType:"text",defaultValue:dt,onBlur:pt=>{this.setState({symptomYear:pt.target.value}),this.addToViewedFields(FIELD_NAMES$6.SYMPTOM_DATE),lt&&ut&&this.autoSaveAndValidate({id:parseInt(this.props.patientId),symptomDay:this.state.symptomDay,symptomMonth:this.state.symptomMonth,symptomYear:pt.target.value},FIELD_NAMES$6.SYMPTOM_DATE)},displayInputError:rt&&rt.dateOfFeverSymptoms?rt.dateOfFeverSymptoms:void 0,placeholder:"YYYY"})]}),jsxRuntimeExports.jsx(ErrorInfo,{errors:rt&&rt.dateOfFeverSymptoms?rt.dateOfFeverSymptoms:void 0})]})})}else return jsxRuntimeExports.jsx(reactExports.Fragment,{})}render(){return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:"covid-assessment-content",children:jsxRuntimeExports.jsx("div",{className:"covid-assessment-right-content",children:this.renderCovidQuestion()})})})}renderCovidQuestion(){const{covidScreening:rt}=this.props,nt=this.validateObject(rt);return jsxRuntimeExports.jsxs("div",{className:"covid-fields",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{title:ASSESSMENT_AND_REVIEW.HAVE_YOU_BEEN_DIAGNOSED,htmlFor:FIELD_NAMES$6.HAS_BEEN_DIAGNOSED,required:!0,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:FIELD_NAMES$6.HAS_BEEN_DIAGNOSED,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.hasBeenDiagnosed,itemSelected:lt=>{this.autoSave({id:parseInt(this.props.patientId),hasBeenDiagnosed:lt})},errors:nt&&nt.hasBeenDiagnosed?nt.hasBeenDiagnosed:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{required:!0,title:ASSESSMENT_AND_REVIEW.TESTED_AND_WAITING,htmlFor:FIELD_NAMES$6.HAS_BEEN_TESTED,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:FIELD_NAMES$6.HAS_BEEN_TESTED,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.hasBeenTested,itemSelected:lt=>{this.setState({hasBeenTested:!!lt}),this.autoSave({id:parseInt(this.props.patientId),hasBeenTested:lt})},errors:nt&&nt.hasBeenTested?nt.hasBeenTested:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{required:!0,isValid:!0,title:ASSESSMENT_AND_REVIEW.ADVISED_TO_QUARANTINE,htmlFor:FIELD_NAMES$6.ADVISED_TO_QUARANTINE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:FIELD_NAMES$6.ADVISED_TO_QUARANTINE,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.advisedToQuarantine,itemSelected:lt=>{this.autoSave({id:parseInt(this.props.patientId),advisedToQuarantine:lt})},errors:nt&&nt.advisedToQuarantine?nt.advisedToQuarantine:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{required:!0,isValid:!0,title:ASSESSMENT_AND_REVIEW.CLOSE_CONTACT_WITH_QUARANTINE,htmlFor:FIELD_NAMES$6.HAD_CONTACT,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:FIELD_NAMES$6.HAD_CONTACT,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.hadContact,itemSelected:lt=>{this.autoSave({id:parseInt(this.props.patientId),hadContact:lt})},errors:nt&&nt.hadContact?nt.hadContact:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{required:!0,isValid:!0,title:ASSESSMENT_AND_REVIEW.TRAVELLED_TO_HOTSPOT,htmlFor:FIELD_NAMES$6.TRAVELLED_TO_HOTSPOT,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:FIELD_NAMES$6.TRAVELLED_TO_HOTSPOT,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.travelledToHotspot,itemSelected:lt=>{this.autoSave({id:parseInt(this.props.patientId),travelledToHotspot:lt})},errors:nt&&nt.travelledToHotspot?nt.travelledToHotspot:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{required:!0,title:ASSESSMENT_AND_REVIEW.EXPERIENCING_THE_FOLLOWING,additionalClassNames:"prewrapText",htmlFor:FIELD_NAMES$6.HAS_SYMPTOMS,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:FIELD_NAMES$6.HAS_SYMPTOMS,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.hasSymptoms,itemSelected:lt=>{this.setState({hasSymptoms:!!lt}),this.autoSave({id:parseInt(this.props.patientId),hasSymptoms:lt})},errors:nt&&nt.hasSymptoms?nt.hasSymptoms:void 0})}),this.renderSymptomsDateField(nt)]})}}class DTBase{constructor(){Nr(this,"id");this.id=""}}class DTRatingItem extends DTBase{constructor(){super();Nr(this,"distressRating");Nr(this,"version");Nr(this,"loadData",rt=>(this.id=rt.id,this.distressRating=Number(rt.distressRating),this.version=rt.version,this));this.distressRating=-1,this.version=""}}class CovidBase{constructor(){Nr(this,"id");this.id=""}}class CovidAssessmentItem extends CovidBase{constructor(){super();Nr(this,"hasSymptoms");Nr(this,"hasBeenDiagnosed");Nr(this,"hasBeenTested");Nr(this,"advisedToQuarantine");Nr(this,"hadContact");Nr(this,"travelledToHotspot");Nr(this,"dateOfFeverSymptoms");Nr(this,"symptomDay");Nr(this,"symptomMonth");Nr(this,"symptomYear");Nr(this,"status");Nr(this,"loadData",rt=>(this.id=rt.id,this.hasSymptoms=rt.hasSymptoms,this.hasBeenDiagnosed=rt.hasBeenDiagnosed,this.hasBeenTested=rt.hasBeenTested,this.advisedToQuarantine=rt.advisedToQuarantine,this.hadContact=rt.hadContact,this.travelledToHotspot=rt.travelledToHotspot,this.dateOfFeverSymptoms=rt.dateOfFeverSymptoms,this.symptomDay=rt.symptomDay,this.symptomMonth=rt.symptomMonth,this.symptomYear=rt.symptomYear,this.status=rt.status,this));this.hasSymptoms=!1,this.hasBeenDiagnosed=!1,this.hasBeenTested=!1,this.advisedToQuarantine=!1,this.hadContact=!1,this.travelledToHotspot=!1,this.dateOfFeverSymptoms=new Date,this.symptomDay="",this.symptomMonth="",this.symptomYear="",this.status=""}}class HABase{constructor(){Nr(this,"id");this.id=""}}class HAPatientInformationItem extends HABase{constructor(){super();Nr(this,"patient");Nr(this,"height");Nr(this,"weight");Nr(this,"loadData",rt=>(this.id=rt.id,this.patient=rt.patient,this.height=rt.height,this.weight=rt.weight,this));this.patient={fullName:"",dob:""},this.height="",this.weight=""}}class HAOtherMedicalProblemsItem extends HABase{constructor(){super();Nr(this,"otherMedProblemBool");Nr(this,"otherMedProblemDescription");Nr(this,"altMedicineBool");Nr(this,"altMedicineDescription");Nr(this,"loadData",rt=>(this.id=rt.id,this.otherMedProblemBool=rt.otherMedProblemBool,this.otherMedProblemDescription=rt.otherMedProblemDescription,this.altMedicineBool=rt.altMedicineBool,this.altMedicineDescription=rt.altMedicineDescription,this));this.otherMedProblemBool=!1,this.otherMedProblemDescription="",this.altMedicineBool=!1,this.altMedicineDescription=""}}class HAMedicalHistoryOtherItem extends HABase{constructor(){super();Nr(this,"mobilityAid");Nr(this,"mobilityAids");Nr(this,"wellbeingIssue");Nr(this,"wellbeingIssues");Nr(this,"activeInjury");Nr(this,"activeInjuryReason");Nr(this,"inPain");Nr(this,"inPainReason");Nr(this,"fallen");Nr(this,"fallenReason");Nr(this,"pregnant");Nr(this,"advancedCareDirective");Nr(this,"advancedCareAdditionalInformation");Nr(this,"loadData",rt=>(this.id=rt.id,this.mobilityAid=rt.mobilityAid,this.mobilityAids=rt.mobilityAids,this.wellbeingIssue=rt.wellbeingIssue,this.wellbeingIssues=rt.wellbeingIssues,this.activeInjury=rt.activeInjury,this.activeInjuryReason=rt.activeInjuryReason,this.inPain=rt.inPain,this.inPainReason=rt.inPainReason,this.fallen=rt.fallen,this.fallenReason=rt.fallenReason,this.pregnant=rt.pregnant,this.advancedCareDirective=rt.advancedCareDirective,this.advancedCareAdditionalInformation=rt.advancedCareAdditionalInformation,this));this.mobilityAid=null,this.mobilityAids=[],this.wellbeingIssue=null,this.wellbeingIssues=[],this.activeInjury=null,this.activeInjuryReason="",this.inPain=null,this.inPainReason="",this.fallen=null,this.fallenReason="",this.pregnant=null,this.advancedCareDirective=null,this.advancedCareAdditionalInformation=null}}class HASocialAssessmentItem extends HABase{constructor(){super();Nr(this,"alcoholBool");Nr(this,"alcoholFrequency");Nr(this,"smokingBool");Nr(this,"smokingHistory");Nr(this,"smokingFrequency");Nr(this,"smokingStopDate");Nr(this,"smokingStopRawMonth");Nr(this,"smokingStopRawYear");Nr(this,"exerciseBool");Nr(this,"exerciseFrequency");Nr(this,"accommodationAssistance");Nr(this,"accommodationAssistanceReason");Nr(this,"transportationAssistance");Nr(this,"transportationAssistanceReason");Nr(this,"loadData",rt=>(this.id=rt.id,this.alcoholBool=rt.alcoholBool,this.alcoholFrequency=rt.alcoholFrequency,this.smokingBool=rt.smokingBool,this.smokingHistory=rt.smokingHistory,this.smokingFrequency=rt.smokingFrequency,this.smokingStopDate=rt.smokingStopDate,this.smokingStopRawMonth=rt.smokingStopRawMonth,this.smokingStopRawYear=rt.smokingStopRawYear,this.exerciseBool=rt.exerciseBool,this.exerciseFrequency=rt.exerciseFrequency,this.accommodationAssistance=rt.accommodationAssistance,this.accommodationAssistanceReason=rt.accommodationAssistanceReason,this.transportationAssistance=rt.transportationAssistance,this.transportationAssistanceReason=rt.transportationAssistanceReason,this));this.alcoholBool=!1,this.alcoholFrequency="",this.smokingBool=!1,this.smokingHistory="",this.smokingFrequency="",this.smokingStopDate="",this.smokingStopRawMonth="",this.smokingStopRawYear="",this.exerciseBool=!1,this.exerciseFrequency="",this.accommodationAssistance=!1,this.accommodationAssistanceReason="",this.transportationAssistance=!1,this.transportationAssistanceReason=""}}class HAMedicalHistoryIllnessItem extends HABase{constructor(){super();Nr(this,"internalDevice");Nr(this,"internalDevices");Nr(this,"bloodClot");Nr(this,"bloodClotAnswer");Nr(this,"heartOrLungProblem");Nr(this,"heartOrLungAnswer");Nr(this,"highOrLowBloodPressure");Nr(this,"bloodPressureAnswer");Nr(this,"diabetes");Nr(this,"diabetesResponses");Nr(this,"intractableInfectionOrIllness");Nr(this,"intractableInfectionOrIllnesses");Nr(this,"immunosuppressiveCondition");Nr(this,"immunosuppressiveConditions");Nr(this,"loadData",rt=>(this.id=rt.id,this.internalDevice=rt.internalDevice,this.internalDevices=rt.internalDevices,this.bloodClot=rt.bloodClot,this.bloodClotAnswer=rt.bloodClotAnswer,this.heartOrLungProblem=rt.heartOrLungProblem,this.heartOrLungAnswer=rt.heartOrLungAnswer,this.highOrLowBloodPressure=rt.highOrLowBloodPressure,this.bloodPressureAnswer=rt.bloodPressureAnswer,this.diabetes=rt.diabetes,this.diabetesResponses=rt.diabetesResponses,this.intractableInfectionOrIllness=rt.intractableInfectionOrIllness,this.intractableInfectionOrIllnesses=rt.intractableInfectionOrIllnesses,this.immunosuppressiveCondition=rt.immunosuppressiveCondition,this.immunosuppressiveConditions=rt.immunosuppressiveConditions,this));this.internalDevice=null,this.internalDevices=[],this.bloodClot=null,this.bloodClotAnswer="",this.heartOrLungProblem=null,this.heartOrLungAnswer="",this.highOrLowBloodPressure=null,this.bloodPressureAnswer="",this.diabetes=null,this.diabetesResponses=[],this.intractableInfectionOrIllness=null,this.intractableInfectionOrIllnesses=[],this.immunosuppressiveCondition=null,this.immunosuppressiveConditions=[]}}class HAOperationsItem extends HABase{constructor(){super();Nr(this,"prevOperation");Nr(this,"operations");Nr(this,"loadData",rt=>(this.id=rt.id,this.prevOperation=rt.prevOperation,this.operations=rt.operations,this));this.prevOperation=!1,this.operations=[]}}class HACancerItem extends HABase{constructor(){super();Nr(this,"previousCancer");Nr(this,"cancer");Nr(this,"otherRadiotherapy");Nr(this,"otherRadiotherapyConditions");Nr(this,"familyHistory");Nr(this,"familyHistoryAnswer");Nr(this,"usFamilyHistory");Nr(this,"loadData",rt=>(this.id=rt.id,this.previousCancer=rt.previousCancer,this.cancer=rt.cancer,this.otherRadiotherapy=rt.otherRadiotherapy,this.otherRadiotherapyConditions=rt.otherRadiotherapyConditions,this.familyHistory=rt.familyHistory,this.familyHistoryAnswer=rt.familyHistoryAnswer,this.usFamilyHistory=rt.usFamilyHistory,this));this.previousCancer=null,this.cancer=[],this.otherRadiotherapy="",this.otherRadiotherapyConditions=[],this.familyHistory="",this.familyHistoryAnswer="",this.usFamilyHistory=[]}}class HAAllergiesItem extends HABase{constructor(){super();Nr(this,"allergyBool");Nr(this,"allergies");Nr(this,"loadData",rt=>(this.id=rt.id,this.allergyBool=rt.allergyBool,this.allergies=rt.allergies,this));this.allergyBool=!1,this.allergies=[]}}class HAReviewSummaryItem extends HABase{constructor(){super();Nr(this,"patient");Nr(this,"height");Nr(this,"weight");Nr(this,"otherMedProblemBool");Nr(this,"otherMedProblemDescription");Nr(this,"altMedicineBool");Nr(this,"altMedicineDescription");Nr(this,"mobilityAid");Nr(this,"mobilityAids");Nr(this,"wellbeingIssue");Nr(this,"wellbeingIssues");Nr(this,"activeInjury");Nr(this,"activeInjuryReason");Nr(this,"inPain");Nr(this,"inPainReason");Nr(this,"fallen");Nr(this,"fallenReason");Nr(this,"pregnant");Nr(this,"advancedCareDirective");Nr(this,"advancedCareAdditionalInformation");Nr(this,"alcoholBool");Nr(this,"alcoholFrequency");Nr(this,"smokingBool");Nr(this,"smokingHistory");Nr(this,"smokingFrequency");Nr(this,"smokingStopDate");Nr(this,"smokingStopRawMonth");Nr(this,"smokingStopRawYear");Nr(this,"exerciseBool");Nr(this,"exerciseFrequency");Nr(this,"accommodationAssistance");Nr(this,"accommodationAssistanceReason");Nr(this,"transportationAssistance");Nr(this,"transportationAssistanceReason");Nr(this,"internalDevice");Nr(this,"internalDevices");Nr(this,"bloodClot");Nr(this,"bloodClotAnswer");Nr(this,"heartOrLungProblem");Nr(this,"heartOrLungAnswer");Nr(this,"highOrLowBloodPressure");Nr(this,"bloodPressureAnswer");Nr(this,"diabetes");Nr(this,"diabetesResponses");Nr(this,"intractableInfectionOrIllness");Nr(this,"intractableInfectionOrIllnesses");Nr(this,"immunosuppressiveCondition");Nr(this,"immunosuppressiveConditions");Nr(this,"medicationBool");Nr(this,"medications");Nr(this,"prevOperation");Nr(this,"operations");Nr(this,"previousCancer");Nr(this,"cancer");Nr(this,"otherRadiotherapy");Nr(this,"otherRadiotherapyConditions");Nr(this,"familyHistory");Nr(this,"familyHistoryAnswer");Nr(this,"allergyBool");Nr(this,"allergies");Nr(this,"loadData",rt=>(this.id=rt.id,this.patient=rt.patient,this.height=rt.height,this.weight=rt.weight,this.otherMedProblemBool=rt.otherMedProblemBool,this.otherMedProblemDescription=rt.otherMedProblemDescription,this.altMedicineBool=rt.altMedicineBool,this.altMedicineDescription=rt.altMedicineDescription,this.mobilityAid=rt.mobilityAid,this.mobilityAids=rt.mobilityAids,this.wellbeingIssue=rt.wellbeingIssue,this.wellbeingIssues=rt.wellbeingIssues,this.activeInjury=rt.activeInjury,this.activeInjuryReason=rt.activeInjuryReason,this.inPain=rt.inPain,this.inPainReason=rt.inPainReason,this.fallen=rt.fallen,this.fallenReason=rt.fallenReason,this.pregnant=rt.pregnant,this.advancedCareDirective=rt.advancedCareDirective,this.advancedCareAdditionalInformation=rt.advancedCareAdditionalInformation,this.alcoholBool=rt.alcoholBool,this.alcoholFrequency=rt.alcoholFrequency,this.smokingBool=rt.smokingBool,this.smokingHistory=rt.smokingHistory,this.smokingFrequency=rt.smokingFrequency,this.smokingStopDate=rt.smokingStopDate,this.smokingStopRawMonth=rt.smokingStopRawMonth,this.smokingStopRawYear=rt.smokingStopRawYear,this.exerciseBool=rt.exerciseBool,this.exerciseFrequency=rt.exerciseFrequency,this.accommodationAssistance=rt.accommodationAssistance,this.accommodationAssistanceReason=rt.accommodationAssistanceReason,this.transportationAssistance=rt.transportationAssistance,this.transportationAssistanceReason=rt.transportationAssistanceReason,this.internalDevice=rt.internalDevice,this.internalDevices=rt.internalDevices,this.bloodClot=rt.bloodClot,this.bloodClotAnswer=rt.bloodClotAnswer,this.heartOrLungProblem=rt.heartOrLungProblem,this.heartOrLungAnswer=rt.heartOrLungAnswer,this.highOrLowBloodPressure=rt.highOrLowBloodPressure,this.bloodPressureAnswer=rt.bloodPressureAnswer,this.diabetes=rt.diabetes,this.diabetesResponses=rt.diabetesResponses,this.intractableInfectionOrIllness=rt.intractableInfectionOrIllness,this.intractableInfectionOrIllnesses=rt.intractableInfectionOrIllnesses,this.immunosuppressiveCondition=rt.immunosuppressiveCondition,this.immunosuppressiveConditions=rt.immunosuppressiveConditions,this.medicationBool=rt.medicationBool,this.medications=rt.medications,this.prevOperation=rt.prevOperation,this.operations=rt.operations,this.previousCancer=rt.previousCancer,this.cancer=rt.cancer,this.otherRadiotherapy=rt.otherRadiotherapy,this.otherRadiotherapyConditions=rt.otherRadiotherapyConditions,this.familyHistory=rt.familyHistory,this.familyHistoryAnswer=rt.familyHistoryAnswer,this.allergyBool=rt.allergyBool,this.allergies=rt.allergies,this));this.patient={fullName:"",dob:""},this.height="",this.weight="",this.otherMedProblemBool=!1,this.otherMedProblemDescription="",this.altMedicineBool=!1,this.altMedicineDescription="",this.mobilityAid=null,this.mobilityAids=[],this.wellbeingIssue=null,this.wellbeingIssues=[],this.activeInjury=null,this.activeInjuryReason="",this.inPain=null,this.inPainReason="",this.fallen=null,this.fallenReason="",this.pregnant=null,this.advancedCareDirective=null,this.advancedCareAdditionalInformation=null,this.alcoholBool=!1,this.alcoholFrequency="",this.smokingBool=!1,this.smokingHistory="",this.smokingFrequency="",this.smokingStopDate="",this.smokingStopRawMonth="",this.smokingStopRawYear="",this.exerciseBool=!1,this.exerciseFrequency="",this.accommodationAssistance=!1,this.accommodationAssistanceReason="",this.transportationAssistance=!1,this.transportationAssistanceReason="",this.internalDevice=null,this.internalDevices=[],this.bloodClot=null,this.bloodClotAnswer="",this.heartOrLungProblem=null,this.heartOrLungAnswer="",this.highOrLowBloodPressure=null,this.bloodPressureAnswer="",this.diabetes=null,this.diabetesResponses=[],this.intractableInfectionOrIllness=null,this.intractableInfectionOrIllnesses=[],this.immunosuppressiveCondition=null,this.immunosuppressiveConditions=[],this.medicationBool=!1,this.medications=[],this.prevOperation=!1,this.operations=[],this.previousCancer=null,this.cancer=[],this.otherRadiotherapy="",this.otherRadiotherapyConditions=[],this.familyHistory="",this.familyHistoryAnswer="",this.allergyBool=!1,this.allergies=[]}}const logger$K=new Logger("CovidAssessmentApollo"),COVID_ASSESSMENT_QUERY$1=gql`
  query CovidScreening($id: ID!) {
    covidScreening(id: $id) {
      id
      hasSymptoms
      dateOfFeverSymptoms
      hasBeenDiagnosed
      hasBeenTested
      advisedToQuarantine
      hadContact
      travelledToHotspot
    }
  }
`;class CovidAssessmentApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"autosave",(rt,nt)=>{const{client:lt,getCovidMutation:ut}=this.props;lt==null||lt.mutate(ut(rt,nt)).catch(()=>{logger$K.debug("autosave","**** FAILED TO SAVE ****",JSON.stringify(rt))})})}render(){const{match:{params:{patientId:rt}}}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:COVID_ASSESSMENT_QUERY$1,variables:{id:rt},children:({loading:nt,data:lt,error:ut})=>{const{setError:dt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(ut)return dt()},[ut]),nt)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(lt&&lt.covidScreening){const pt=new CovidAssessmentItem;return pt.loadData(lt.covidScreening),jsxRuntimeExports.jsx(CovidAssessment,{autosave:this.autosave,patientId:rt,covidScreening:pt,validateOnLoad:!1})}return jsxRuntimeExports.jsx("div",{children:"Error!"})}})})}}const apolloComponent$r=withApollo(CovidAssessmentApollo),routedComponent$t=withRouter(apolloComponent$r),covidComponent=withCovidScreening(routedComponent$t);class CovidPSOReview extends reactExports.Component{constructor(){super(...arguments);Nr(this,"formatDate",rt=>{if(!rt)return"Not provided";const nt=hooks.utc(rt).local().format("DD/MM/YYYY");return nt==="Invalid date"?rt.toString():nt});Nr(this,"renderBoolContent",rt=>rt===null||typeof rt>"u"?"Not provided":rt?"Yes":"No")}render(){const{patient:rt,history:nt,isPso:lt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{id:"covid-review-header",children:jsxRuntimeExports.jsx("div",{id:"covid-review-header-title",children:ASSESSMENT_AND_REVIEW.COVID_SCREENING})}),jsxRuntimeExports.jsxs("div",{className:"covid-review-elements",children:[jsxRuntimeExports.jsxs("div",{className:"left-container",children:[jsxRuntimeExports.jsx("div",{className:"newspaper-container",children:jsxRuntimeExports.jsx(RegistrationPatientDetails,{patient:rt})}),jsxRuntimeExports.jsx(Button,{type:"submit",onClick:ut=>{ut.preventDefault();const dt=(lt?"/navigator/":"/")+`patient/${rt.id}/summary`;nt.push(dt)},children:lt?"Go to summary":"View all forms"})]}),jsxRuntimeExports.jsx("div",{className:"right-container",children:jsxRuntimeExports.jsx("div",{children:this.renderCovidSummary()})})]})]})}renderCovidSummary(){const{covidScreening:rt}=this.props,nt=jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"});let lt="Not applicable";return rt.hasSymptoms&&(lt=this.formatDate(rt.dateOfFeverSymptoms)),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Review and submit",idPrefix:"covid"}),jsxRuntimeExports.jsx("div",{className:"covid-review-summary-page",children:jsxRuntimeExports.jsxs(SummaryCard,{title:ASSESSMENT_AND_REVIEW.COVID_SCREENING,primaryIcon:jsxRuntimeExports.jsx(reactExports.Fragment,{}),secondaryIcon:nt,invalidContent:!1,children:[jsxRuntimeExports.jsx("h2",{children:"1. COVID-19 diagnosis"}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ASSESSMENT_AND_REVIEW.HAVE_YOU_BEEN_DIAGNOSED,detailText:this.renderBoolContent(rt.hasBeenDiagnosed),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ASSESSMENT_AND_REVIEW.TESTED_AND_WAITING,detailText:this.renderBoolContent(rt.hasBeenTested),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx("h2",{children:"2. Epidemiological criteria"}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ASSESSMENT_AND_REVIEW.ADVISED_TO_QUARANTINE,detailText:this.renderBoolContent(rt.advisedToQuarantine),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ASSESSMENT_AND_REVIEW.CLOSE_CONTACT_WITH_QUARANTINE,detailText:this.renderBoolContent(rt.hadContact),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ASSESSMENT_AND_REVIEW.TRAVELLED_TO_HOTSPOT,detailText:this.renderBoolContent(rt.travelledToHotspot),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx("h2",{children:"3. Clinical criteria"}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ASSESSMENT_AND_REVIEW.EXPERIENCING_THE_FOLLOWING,detailText:this.renderBoolContent(rt.hasSymptoms),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ASSESSMENT_AND_REVIEW.DATE_OF_SYMPTOMS,detailText:lt,displayAsError:!1,displayAsOptional:!1})]})})]})}}const routerComponent$2=withRouter(CovidPSOReview),PATIENT_AND_USER_DETAILS_QUERY$h=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      address {
        id
        formattedAddress
      }
      firstName
      middleName
      lastName
      ida
      idb
      gender
      dob
    }
    user {
      id
      isPso
    }
    covidScreening(id: $id) {
      id
      hasSymptoms
      dateOfFeverSymptoms
      hasBeenDiagnosed
      hasBeenTested
      advisedToQuarantine
      hadContact
      travelledToHotspot
      status
    }
  }
`;let PatientFormSummaryApollo$3=class extends reactExports.Component{render(){const{match:{params:{patientId:tt}}}=this.props;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$h,variables:{id:tt},fetchPolicy:"network-only",children:({loading:rt,data:nt,error:lt})=>{const{setError:ut}=useErrorModalContext();if(reactExports.useEffect(()=>{if(lt)return ut()},[lt]),rt)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(nt&&nt.patient&&nt.user&&nt.covidScreening){const dt=new CovidAssessmentItem;return dt.loadData(nt.covidScreening),jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(routerComponent$2,{patient:nt.patient,isPso:nt.user.isPso,covidScreening:dt})})}return jsxRuntimeExports.jsx("div",{})}})}};const CovidPSOReviewApollo=withRouter(PatientFormSummaryApollo$3);class CovidContainer extends reactExports.Component{constructor(tt){super(tt),this.state={visitedPages:{}}}static getDerivedStateFromProps(tt,rt){const{location:{pathname:nt}}=tt,lt=nt.split("/"),ut=lt[lt.length-1];return Object.keys(rt.visitedPages).includes(ut)?rt.visitedPages[ut]+=1:rt.visitedPages[ut]=0,rt}render(){const{client:tt,match:{path:rt}}=this.props,nt=[{linkText:"Covid-19 Information",href:"/information"},{linkText:"Covid-19 Assessment",href:"/assessment"}],lt=jsxRuntimeExports.jsx("div",{className:"covid-information-image",children:jsxRuntimeExports.jsx("div",{className:"covid-header-text",children:"Covid-19 related questions"})});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(HeaderBar,{headingText:"Covid-19",menuButton:!0}),jsxRuntimeExports.jsx("div",{id:"covid-container",className:"page-container full-viewport",children:jsxRuntimeExports.jsxs("div",{id:"foobar",children:[jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsxs(Route,{path:`${rt}/information`,children:[lt,jsxRuntimeExports.jsx(routedComponent$u,{})]}),jsxRuntimeExports.jsxs(Route,{path:`${rt}/assessment`,children:[lt,jsxRuntimeExports.jsx(covidComponent,{})]}),jsxRuntimeExports.jsx(Route,{path:`${rt}/review`,children:jsxRuntimeExports.jsx(CovidPSOReviewApollo,{client:tt})})]}),jsxRuntimeExports.jsx(routeComponent$2,{links:nt})]})})]})}}const apolloComponent$q=withApollo(CovidContainer),routedComponent$s=withRouter(apolloComponent$q),logger$J=new Logger("DistressThermometer");function withDistressThermometer(et){return class extends reactExports.Component{constructor(){super(...arguments);Nr(this,"getGQLVariables",(rt,nt,lt)=>{const ut={id:rt};for(const dt of Object.entries(nt)){const[pt,ht]=dt;typeof ht=="object"?ut[pt]={...ht}:ut[pt]=ht,lt&&pt==="answers"&&(ut[pt].__typename="DTCheckboxAnswerMutationType")}return logger$J.debug("getGQLVariables",JSON.stringify(ut)),ut});Nr(this,"getGQLUpdateDTMutationString",(rt,nt)=>{const lt=mapObjectToMutationParams(rt),ut=mapObjectToFunctionParams(rt),dt=flattenObjectToQueryString(rt);let pt=`mutation UpdateDistressThermometer(${lt}) {
        updateDistressThermometer(${ut}) {
          distressThermometer ${dt}
        }
      }`;return nt&&(pt=pt.replace(/#replaceId/g,`"${nt}"`)),logger$J.debug("getGQLUpdateDTMutationString",pt),gql(pt)});Nr(this,"getDistressThermometerMutation",(rt,nt)=>{const lt=rt.id;(lt==null||lt==="")&&logger$J.debug("getDistressThermometerMutation","**** MISSING THE ID FROM THE UPDATE OBJECT ****",JSON.stringify(rt));const dt={...this.getGQLVariables(lt,rt,!0),__typename:"DistressThermometerType"};return{mutation:this.getGQLUpdateDTMutationString(rt,nt),variables:this.getGQLVariables(lt,rt),optimisticResponse:{updateDistressThermometer:{distressThermometer:dt,errors:null,__typename:"UpdateDistressThermometer"}}}})}render(){return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(et,{getDTMutation:(rt,nt)=>this.getDistressThermometerMutation(rt,nt),...this.props})})}}}const DTContext=React$4.createContext({}),DTContextProvider=({children:et})=>{const[tt,rt]=reactExports.useState(-1);return jsxRuntimeExports.jsx(DTContext.Provider,{value:{selectedRating:tt,setSelectedRating:rt},children:et})},DTRating=et=>{const{autosave:tt,patientId:rt,dtRating:{id:nt,distressRating:lt}}=et,[ut,dt]=reactExports.useState(window.innerHeight),{selectedRating:pt,setSelectedRating:ht}=React$4.useContext(DTContext),mt=640,xt=190,Mt=()=>{dt(window.innerHeight)};reactExports.useEffect(()=>(lt>=0&&ht(lt),window.addEventListener("resize",Mt),()=>window.removeEventListener("resize",Mt)),[]);const vt=()=>{let Rt=ut-mt;return Rt<xt&&(Rt=xt),`${Rt}px`},Ot=Rt=>{ht(Number(Rt.target.value))},At=Rt=>{ht(Rt.target.value);const zt={id:nt,patientId:rt,distressRating:Number(Rt.target.value)};tt(zt)};return jsxRuntimeExports.jsxs("div",{id:"dt-rating",children:[jsxRuntimeExports.jsx("div",{id:"dt-rating-image"}),jsxRuntimeExports.jsxs("div",{id:"dt-rating-content",children:[jsxRuntimeExports.jsxs("div",{id:"dt-rating-left-content",children:[jsxRuntimeExports.jsxs("div",{className:"text-content",children:[jsxRuntimeExports.jsx("div",{className:"title",children:"Instructions"}),jsxRuntimeExports.jsx("div",{className:"content",children:"Please use the slider on the right to select a number (0-10) that best describes how much distress you have been experiencing in the past week including today."})]}),jsxRuntimeExports.jsxs("div",{id:"dt-rating-display-value",children:[jsxRuntimeExports.jsx("div",{className:"scale-title",children:"Scale:"}),jsxRuntimeExports.jsxs("div",{className:"scale-value",children:[jsxRuntimeExports.jsx("span",{className:classNames$1("scale-value",{highlight:pt>=0}),children:pt<0?"-":pt}),"/10"]})]})]}),jsxRuntimeExports.jsxs("div",{id:"dt-rating-right-content",children:[jsxRuntimeExports.jsx("div",{className:"top-label",children:jsxRuntimeExports.jsxs("div",{className:"numeric-text-fields",children:[jsxRuntimeExports.jsx("div",{className:classNames$1("numeric-text-value",{disabled:pt<0}),children:"10"}),jsxRuntimeExports.jsx("div",{className:"numeric-text",children:"Extreme distress"})]})}),jsxRuntimeExports.jsx("input",{className:classNames$1({disabled:pt<0}),style:{width:vt()},id:"dt-rating-input",type:"range",min:"0",max:"10",step:"1",defaultValue:lt||0,onChange:Rt=>{Ot(Rt)},onMouseUp:Rt=>{At(Rt)},onTouchEnd:Rt=>{At(Rt)}}),jsxRuntimeExports.jsx("div",{className:"bottom-label",children:jsxRuntimeExports.jsxs("div",{className:"numeric-text-fields",children:[jsxRuntimeExports.jsx("div",{className:classNames$1("numeric-text-value",{disabled:pt<0}),children:"0"}),jsxRuntimeExports.jsx("div",{className:"numeric-text",children:"No distress"})]})})]})]})]})},logger$I=new Logger("DTRatingApollo"),DT_RATING_QUERY$2=gql`
  query DTRating($patientId: ID!, $id: ID) {
    distressThermometer(patientId: $patientId, id: $id) {
      id
      distressRating
      version
    }
  }
`,DTRatingApollo=et=>{const{match:{params:{patientId:tt,distressId:rt}},client:nt,getDTMutation:lt}=et,{setError:ut}=useErrorModalContext(),{loading:dt,data:pt,error:ht}=useQuery(DT_RATING_QUERY$2,{variables:{patientId:tt,id:rt}});reactExports.useEffect(()=>{if(ht)return ut()},[ht]);const mt=xt=>{nt.mutate(lt(xt)).catch(()=>{logger$I.debug("autosave","*** FAILED TO SAVE ****",JSON.stringify(xt))})};if(dt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(pt&&pt.distressThermometer){const xt=new DTRatingItem().loadData(pt.distressThermometer);return jsxRuntimeExports.jsx(DTRating,{autosave:mt,dtRating:xt,patientId:tt})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},apolloComponent$p=withApollo(DTRatingApollo),routedComponent$r=withRouter(apolloComponent$p),dtComponent$2=withDistressThermometer(routedComponent$r),INFO={TITLE:"Your completion of the NCCN Distress Thermometer allows us to provide more individualised patient care",PARA_1:"Distress is an unpleasant experience of mental, physical, social or spiritual nature. It can affect the way you think, feel, or act. Distress may make it harder to cope with having cancer, its symptoms and its treatment.",PARA_2:"The answers from your Distress Thermometer are reviewed by your care team with the aim to better support you throughout your cancer journey at GenesisCare.",PARA_3:"To note: this tool is not reviewed in isolation and may not be seen until your consultation. If you have any immediate or severe medical concerns that you are raising here, please escalate these immediately to your existing doctor or call 000 if needed."},DTInformation=()=>{const tt="dt-info-container",rt=`${tt}-header`,nt=`${tt}-content`;return jsxRuntimeExports.jsxs("div",{id:tt,children:[jsxRuntimeExports.jsx("div",{id:`${rt}`}),jsxRuntimeExports.jsxs("div",{id:`${nt}`,children:[jsxRuntimeExports.jsx("p",{className:`${nt}-title`,children:INFO.TITLE}),jsxRuntimeExports.jsxs("div",{className:`${nt}-body`,children:[jsxRuntimeExports.jsx("p",{children:INFO.PARA_1}),jsxRuntimeExports.jsx("p",{children:INFO.PARA_2}),jsxRuntimeExports.jsx("p",{children:INFO.PARA_3})]})]})]})},CONTENT_HEADING$1={physical:"Physical concerns",emotional:"Emotional concerns",social:"Social concerns",practical:"Practical concerns",spiritual:"Spiritual/Religious concerns",other:"Other concerns"};class DTQuestionContent extends reactExports.Component{constructor(){super(...arguments);Nr(this,"mapAnswers",()=>{const{answers:rt,category:nt,distressId:lt,patientId:ut}=this.props;return rt.map((dt,pt)=>{const ht=jsxRuntimeExports.jsx("span",{className:"checkbox-item-label",children:dt.question}),mt=dt.question.split(" ")[0].toLowerCase();return jsxRuntimeExports.jsx("div",{className:"checkbox-item",children:jsxRuntimeExports.jsx(Checkbox,{inputName:`${nt}-${pt+1}-${mt}-${dt.id}`,inputLabel:ht,isChecked:dt.value,labelFirst:!0,onChange:xt=>{const Mt={id:lt,patientId:ut,answers:{id:dt.id,value:xt}};this.props.autosave(Mt,dt.id)}})},dt.id)})})}render(){const{category:rt}=this.props;return jsxRuntimeExports.jsxs("div",{id:"dt-question-content",children:[jsxRuntimeExports.jsx("div",{id:"dt-question-title",children:CONTENT_HEADING$1[rt]}),jsxRuntimeExports.jsxs("div",{id:"dt-question-instructions",children:["Please indicate by ticking the boxes",jsxRuntimeExports.jsx(CheckBox$1,{color:"primary",sx:{margin:"0 4px",verticalAlign:"sub"}}),"below if any of the following has been a problem for you in the past week including today."]}),jsxRuntimeExports.jsx("div",{id:"dt-question-checkboxes",children:this.mapAnswers()})]})}}const logger$H=new Logger("DTQuestionContentApollo"),CATEGORY_TYPE={physical:"Physical",emotional:"Emotional",social:"Social",practical:"Practical",spiritual:"Spiritual/Religious"};class DTQuestionContentApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"createQueryGQL",()=>{const{match:{params:{ratingPage:rt}}}=this.props,nt=`query DTQuestions($patientId: ID!, $id: ID!) {
      distressThermometer(patientId: $patientId, id: $id) {
        id
        answers(category:"${CATEGORY_TYPE[rt]}") {
          id
          question
          value
        }
      }
    }`;return logger$H.debug("createQueryGQL","The query string is: ",nt),gql(nt)});Nr(this,"autosave",(rt,nt)=>{const{client:lt,getDTMutation:ut}=this.props;if(!ut)throw new Error("getDTMutation is not defined");lt==null||lt.mutate(ut(rt,nt)).catch(()=>{logger$H.debug("autosave","**** FAILED TO SAVE ****",JSON.stringify(rt))})})}render(){const{match:{params:{patientId:rt,distressId:nt,ratingPage:lt}}}=this.props;let ut=DT_CATEGORY.NONE;for(const dt in DT_CATEGORY)DT_CATEGORY[dt]===lt&&(ut=DT_CATEGORY[dt]);return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:this.createQueryGQL(),variables:{patientId:rt,id:nt},children:({loading:dt,data:pt,error:ht})=>{const{setError:mt}=useErrorModalContext();return reactExports.useEffect(()=>{if(ht)return mt()},[ht]),dt?jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0}):pt&&pt.distressThermometer?jsxRuntimeExports.jsx(DTQuestionContent,{distressId:nt,category:ut,answers:pt.distressThermometer.answers,autosave:this.autosave,patientId:rt}):jsxRuntimeExports.jsx("div",{})}})})}}const apolloComponent$o=withApollo(DTQuestionContentApollo),routedComponent$q=withRouter(apolloComponent$o),dtComponent$1=withDistressThermometer(routedComponent$q),CONTENT_HEADING="Other concerns",FIELDS$e={OTHER_PROBLEMS:{NAME:"otherProblems",PLACEHOLDER:"Start typing...",INPUT_HEADING:"Please specify"}};class DTQuestionOtherProblems extends reactExports.Component{render(){const{autosave:tt,distressId:rt,data:nt,patientId:lt}=this.props;return jsxRuntimeExports.jsxs("div",{id:"dt-question-content",children:[jsxRuntimeExports.jsx("div",{id:"dt-other-question-title",children:CONTENT_HEADING}),jsxRuntimeExports.jsxs("div",{id:"dt-other-problems",children:[jsxRuntimeExports.jsx("div",{style:{fontWeight:"bold",padding:"8px 4px"},children:FIELDS$e.OTHER_PROBLEMS.INPUT_HEADING}),jsxRuntimeExports.jsx(BaseTextField,{id:FIELDS$e.OTHER_PROBLEMS.NAME,multiline:!0,maxRows:12,minRows:12,placeholder:FIELDS$e.OTHER_PROBLEMS.PLACEHOLDER,onBlur:ut=>{const dt={id:rt,patientId:lt,otherProblems:ut.target.value};tt(dt)},defaultValue:nt.otherProblems,sx:{height:"400px",width:"400px"},inputProps:{style:{fontSize:"16px"}}})]})]})}}const logger$G=new Logger("DTQuestionOtherProblemsApollo");class DTQuestionOtherProblemsApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"createQueryGQL",()=>{const rt=`query DTQuestions($patientId: ID!, $id: ID!) {
      distressThermometer(patientId: $patientId, id: $id) {
        id
        otherProblems
      }
    }`;return logger$G.debug("createQueryGQL","The query string is: ",rt),gql(rt)});Nr(this,"autosave",rt=>{const{client:nt,getDTMutation:lt}=this.props;nt==null||nt.mutate(lt(rt)).catch(()=>{logger$G.debug("autosave","**** FAILED TO SAVE ****",JSON.stringify(rt))})})}render(){const{match:{params:{patientId:rt,distressId:nt}}}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:this.createQueryGQL(),variables:{patientId:rt,id:nt},children:({loading:lt,data:ut,error:dt})=>{const{setError:pt}=useErrorModalContext();return reactExports.useEffect(()=>{if(dt)return pt()},[dt]),lt?jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0}):ut&&ut.distressThermometer?jsxRuntimeExports.jsx(DTQuestionOtherProblems,{autosave:this.autosave,distressId:ut.distressThermometer.id,data:ut.distressThermometer,patientId:rt}):jsxRuntimeExports.jsx("div",{})}})})}}const apolloComponent$n=withApollo(DTQuestionOtherProblemsApollo),routedComponent$p=withRouter(apolloComponent$n),dtComponent=withDistressThermometer(routedComponent$p),RATING_PAGES=["physical","emotional","social","practical","spiritual","other"];class DTQuestions extends reactExports.Component{constructor(){super(...arguments);Nr(this,"checkRatingPage",()=>{const{match:{params:{ratingPage:rt}}}=this.props;return RATING_PAGES.includes(rt)})}render(){if(!this.checkRatingPage())return jsxRuntimeExports.jsx(Redirect,{to:"/patient"});const{match:{params:{ratingPage:rt}},stepperBasePath:nt,stepperLinks:lt,visitedPages:ut}=this.props;let dt=DT_CATEGORY.NONE;for(const mt in DT_CATEGORY)if(DT_CATEGORY[mt]===rt){dt=DT_CATEGORY[mt];break}const pt=dt!==DT_CATEGORY.OTHER&&dt!==DT_CATEGORY.NONE,ht=dt===DT_CATEGORY.OTHER;return jsxRuntimeExports.jsxs("div",{id:"dt-question-root",children:[jsxRuntimeExports.jsx(Stepper$2,{links:lt,basePath:nt,visitedLinks:ut}),ht&&jsxRuntimeExports.jsx(dtComponent,{}),pt&&jsxRuntimeExports.jsx(dtComponent$1,{})]})}}const routedComponent$o=withRouter(DTQuestions),DISTRESS_THERMOMETER_VERSION=gql`
  query DistressThermometer($patientId: ID!, $id: ID) {
    distressThermometer(patientId: $patientId, id: $id) {
      id
      version
    }
  }
`,DTContainer=et=>{var Mt;const[tt,rt]=reactExports.useState({}),{location:{pathname:nt},match:{path:lt,params:{patientId:ut,distressId:dt}}}=et,{data:pt}=useQuery(DISTRESS_THERMOMETER_VERSION,{variables:{patientId:ut,id:dt}}),ht=(Mt=pt==null?void 0:pt.distressThermometer)==null?void 0:Mt.version;reactExports.useEffect(()=>{const vt=nt.split("/"),Ot=vt[vt.length-1];Object.keys(tt).includes(Ot)?rt({...tt,[Ot]:tt[Ot]+1}):rt({...tt,[Ot]:0})},[nt]);const mt=[{linkText:"Distress thermometer Information",href:"/information"},{linkText:`Distress thermometer ${ht==="EOT"?"EOT":""}`,href:"/rating"},{linkText:"Physical concerns",href:"/physical"},{linkText:"Emotional concerns",href:"/emotional"},{linkText:"Social concerns",href:"/social"},{linkText:"Practical concerns",href:"/practical"},{linkText:"Spiritual/Religious concerns",href:"/spiritual"},{linkText:"Other concerns",href:"/other"}],xt=`/patient/${ut}/distress/${dt}`;return jsxRuntimeExports.jsx(DTContextProvider,{children:jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(HeaderBar,{headingText:`Distress Thermometer${ht==="EOT"?" EOT":""}`,menuButton:!0}),jsxRuntimeExports.jsxs("div",{id:"dt-container",className:"page-container full-viewport",children:[jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:`${lt}/information`,children:jsxRuntimeExports.jsx(DTInformation,{})}),jsxRuntimeExports.jsx(Route,{path:`${lt}/rating`,children:jsxRuntimeExports.jsx(dtComponent$2,{})}),jsxRuntimeExports.jsx(Route,{path:`${lt}/:ratingPage`,children:jsxRuntimeExports.jsx(routedComponent$o,{stepperLinks:mt,stepperBasePath:xt,visitedPages:tt})}),jsxRuntimeExports.jsx(Route,{path:`${lt}`,children:jsxRuntimeExports.jsx(Redirect,{to:"/patient"})}),jsxRuntimeExports.jsx(Route,{})]}),jsxRuntimeExports.jsx(routeComponent$1,{links:mt})]})]})})},routedComponent$n=withRouter(DTContainer),ErrorPage=()=>{const et=useTheme$1();return jsxRuntimeExports.jsx("div",{id:"error-page",children:jsxRuntimeExports.jsxs("div",{id:"error-container",children:[jsxRuntimeExports.jsxs("div",{children:[et.custom.darkLogo,jsxRuntimeExports.jsx("div",{id:"error-title",children:"You do not have permission to view this page"}),jsxRuntimeExports.jsxs("div",{id:"error-detail",children:[jsxRuntimeExports.jsx("span",{children:"If you believe you are seeing this screen in error, please contact Innovation Support by email at:"})," ",jsxRuntimeExports.jsx("a",{href:`mailto:${CurrentAppConfig.SupportEmail}`,children:CurrentAppConfig.SupportEmail})]})]}),jsxRuntimeExports.jsx("div",{id:"error-logo",children:et.custom.logoOnly})]})})},AU_PAGE_LINKS=[{linkText:"Patient information",href:"/info"},{linkText:"Medical history: cancer",href:"/history-cancer"},{linkText:"Medical history: illness",href:"/history-illness"},{linkText:"Medical history: other",href:"/history-other"},{linkText:"Operations",href:"/operations"},{linkText:"Social assessment",href:"/social"},{linkText:"Medications",href:"/medications"},{linkText:"Allergies/ sensitivities",href:"/allergies"},{linkText:"Other medical problems",href:"/other"},{linkText:"Review and Submit",href:"/summary"}],US_PAGE_LINKS=[{linkText:"Patient information",href:"/info"},{linkText:"Medical history: 1",href:"/history-cancer"},{linkText:"Medical history: 2",href:"/history-illness"},{linkText:"Medical history: 3",href:"/biological"},{linkText:"Operations",href:"/operations"},{linkText:"Mobility-fall risk assessment",href:"/mobility"},{linkText:"Pain assessment",href:"/painAssessment"},{linkText:"Social assessment",href:"/social-us"},{linkText:"Medications",href:"/medications"},{linkText:"Allergies/ sensitivities",href:"/allergies"},{linkText:"Patient consent",href:"/consent"},{linkText:"Review and Submit",href:"/summary"}],logger$F=new Logger("HealthAssessment"),GET_APOLLO_CACHE$1=gql`
  {
    pendingSaveCount @client
    saveErrorCount @client
  }
`,mapOptimisticResponse={mobilityAids:"MobilityAidType",wellbeingIssues:"WellbeingIssueType",internalDevices:"InternalDeviceType",intractableInfectionOrIllnesses:"IntractableInfectionOrIllnessType",diabetesResponses:"DiabetesResponseType",immunosuppressiveConditions:"ImmunosuppressiveConditionType",medications:"MedicationType",allergies:"AllergyType",operations:"OperationType",cancer:"CancerType",otherRadiotherapyConditions:"OtherRadiotherapyConditionType"};function withHealthAssessment(et){return class extends reactExports.Component{constructor(){super(...arguments);Nr(this,"getGQLVariables",(nt,lt,ut)=>{const dt={id:nt};return this.buildInternalGQLVariables(dt,lt,ut),logger$F.debug("getGQLVariables",JSON.stringify(dt)),dt});Nr(this,"buildInternalGQLVariables",(nt,lt,ut)=>{for(const dt of Object.entries(lt)){const[pt,ht]=dt;typeof ht=="object"?nt[pt]={...ht}:nt[pt]=ht,ut&&mapOptimisticResponse.hasOwnProperty(pt)&&(nt[pt].__typename=mapOptimisticResponse[pt])}return nt});Nr(this,"getGQLUpdateHAMutationString",(nt,lt)=>{const ut=mapObjectToMutationParams(nt),dt=mapObjectToFunctionParams(nt),pt=flattenObjectToQueryString(nt);let ht=`mutation UpdateHealthAssessment(${ut}) {
        updateHealthAssessment(${dt}) {
          healthAssessment ${pt}
        }
      }`;return lt&&(ht=ht.replace(/#replaceId/g,`"${lt}"`)),logger$F.debug("getGQLUpdateHAMutationString",ht),gql(ht)});Nr(this,"getGQLTreatmentMutationString",(nt,lt)=>{const ut=mapObjectToMutationParams(nt),dt=mapObjectToFunctionParams(nt),pt=flattenObjectToQueryString(nt);let ht=`mutation UpdateTreatment(${ut}) {
        updateTreatment(${dt}) {
          treatment ${pt}
        }
      }`;return lt&&(ht=ht.replace(/#replaceId/g,`"${lt}"`)),logger$F.debug("getGQLUpdateHAMutationString",ht),gql(ht)});Nr(this,"getGQLReactionMutationString",(nt,lt)=>{const ut=mapObjectToMutationParams(nt),dt=mapObjectToFunctionParams(nt),pt=flattenObjectToQueryString(nt);let ht=`mutation UpdateReaction(${ut}) {
        updateReaction(${dt}) {
          reaction ${pt}
        }
      }`;return lt&&(ht=ht.replace(/#replaceId/g,`"${lt}"`)),logger$F.debug("getGQLReactionMutationString",ht),gql(ht)});Nr(this,"getHealthAssessmentMutation",(nt,lt,ut)=>{const dt=nt.id,{UPDATE_TREATMENT:pt,UPDATE_REACTION:ht}=HAMutationType;(dt==null||dt==="")&&logger$F.debug("getHealthAssessmentMutation","**** MISSING THE ID FROM THE UPDATE OBJECT ****",JSON.stringify(nt));const mt=this.getGQLVariables(dt,nt,!0);let xt,Mt;switch(ut){case pt:xt=this.getGQLTreatmentMutationString(nt,lt),Mt={updateTreatment:{treatment:{...mt,__typename:"TreatmentType"},errors:null,__typename:"UpdateTreatmentType"}};break;case ht:xt=this.getGQLReactionMutationString(nt,lt),Mt={updateReaction:{reaction:{...mt,__typename:"ReactionType"},errors:null,__typename:"UpdateReaction"}};break;default:xt=this.getGQLUpdateHAMutationString(nt,lt),Mt={updateHealthAssessment:{healthAssessment:{...mt,__typename:"HealthAssessmentType"},errors:null,__typename:"UpdateHealthAssessment"}};break}return{mutation:xt,variables:this.getGQLVariables(dt,nt),optimisticResponse:Mt}});Nr(this,"getGQLCRUDHAMutationString",nt=>{const lt=mapObjectToMutationParams(nt),ut=mapObjectToFunctionParams(nt),dt=`mutation ManageHARelatedObjects(${lt}) {
        manageHARelatedObjects(${ut}) {
          completed
        }
      }`;return logger$F.debug("getGQLCRUDHAMutationString",dt),gql(dt)});Nr(this,"getHealthAssessmentCRUDMutation",nt=>{const lt=this.buildInternalGQLVariables({},nt),ut={...lt};return{mutation:this.getGQLCRUDHAMutationString(nt),fetchPolicy:"no-cache",variables:lt,optimisticResponse:{manageHARelatedObjects:ut,__typename:"ManageHARelatedObjects"}}});Nr(this,"getSaveStatus",async nt=>{if(nt.query)try{const lt=await nt.query({query:GET_APOLLO_CACHE$1}),ut=lt.data.pendingSaveCount,dt=lt.data.saveErrorCount;if(ut>0)return SavingStatus.SAVING;if(dt>0)return SavingStatus.FAILED}catch{logger$F.debug("**** FAILED TO FETCH CACHED APOLLO ****")}return SavingStatus.SAVED});Nr(this,"mutateGraph",async(nt,lt,ut,dt,pt,ht,mt,xt,Mt)=>{if(!nt.mutate)throw"Mutate missing";let vt=0,Ot=0,At=!1;try{const zt=await this.getApolloCache(nt);Ot=zt.currentPendingSaveCount,vt=zt.saveErrorCount}catch(zt){logger$F.debug("mutateGraph","**** Error mutating during cached data fetch ****",zt),At=!0,pt(zt)}if(!At)try{nt&&nt.writeQuery({query:gql`
                query {
                  pendingSaveCount
                }
              `,data:{pendingSaveCount:Ot+1}}),ut();let zt;xt===!0?zt=this.getHealthAssessmentCRUDMutation(lt):zt=this.getHealthAssessmentMutation(lt,mt,Mt);const Tt=await nt.mutate(zt);Tt.data.updateHealthAssessment&&Tt.data.updateHealthAssessment.errors?nt&&nt.writeQuery({query:gql`
                  query {
                    saveErrorCount
                  }
                `,data:{saveErrorCount:vt+1}}):dt(Tt)}catch(zt){logger$F.debug("mutateGraph","**** Error mutating ****",zt),nt&&nt.writeQuery({query:gql`
                query {
                  saveErrorCount
                }
              `,data:{saveErrorCount:vt+1}}),pt(zt)}const Rt=await this.getApolloCache(nt);nt&&nt.writeQuery({query:gql`
            query {
              pendingSaveCount
            }
          `,data:{pendingSaveCount:Rt.currentPendingSaveCount-1}}),await ht()});Nr(this,"getApolloCache",async nt=>{try{const lt=await nt.query({query:GET_APOLLO_CACHE$1}),ut=lt.data.pendingSaveCount,dt=lt.data.saveErrorCount;return{currentPendingSaveCount:ut,saveErrorCount:dt}}catch(lt){throw lt}})}render(){return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(et,{getHAMutation:(nt,lt)=>this.getHealthAssessmentMutation(nt,lt,HAMutationType.GET_HEALTH_ASSESSMENT_MUTATION),getSaveStatus:nt=>this.getSaveStatus(nt),mutateGraph:(nt,lt,ut,dt,pt,ht,mt,xt,Mt)=>this.mutateGraph(nt,lt,ut,dt,pt,ht,mt,xt,Mt),mutateCRUDGraph:(nt,lt,ut,dt,pt,ht)=>this.mutateGraph(nt,lt,ut,dt,pt,ht,void 0,!0),getApolloCache:nt=>this.getApolloCache(nt),...this.props})})}}}var ValidationKeys=(et=>(et[et.All=0]="All",et[et.Info=1]="Info",et[et.OtherMedicalProblems=2]="OtherMedicalProblems",et[et.MedicalOther=3]="MedicalOther",et[et.SocialAssessment=4]="SocialAssessment",et[et.MedicalIllness=5]="MedicalIllness",et[et.Medication=6]="Medication",et[et.Operations=7]="Operations",et[et.Cancer=8]="Cancer",et[et.Allergies=9]="Allergies",et))(ValidationKeys||{});const VALIDATION_MESSAGE_TYPE={INVALID:"INVALID_DATA",MISSING:"MISSING_DATA",MISSING_DESCRIPTION:"Please enter a description"},INVALID_SECTIONS={INFO:"info",OTHER_MEDICAL_PROBLEMS:"otherMedicalProblems",MEDICAL_HISTORY_OTHER:"medicalHistoryOther",MEDICAL_HISTORY_ILLNESS:"medicalHistoryIlness",SOCIAL_ASSESSMENT:"socialAssesment",MEDICATION:"medication",OPERATIONS:"operations",ALLERGIES:"allergies",CANCER:"cancer"},INFO_RULES={height:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE.MISSING},numeric:{greaterThan:0,lessThan:300,message:VALIDATION_MESSAGE_TYPE.INVALID}},weight:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE.MISSING},numeric:{greaterThan:0,message:VALIDATION_MESSAGE_TYPE.INVALID}}},MEDICAL_HISTORY_ILLNESS_ERRORS={MISSING:"Please select an option."},MEDICAL_HISTORY_ILLNESS_RULES={internalDevice:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},internalDevices:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},doctorClearance:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},bloodClot:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},bloodClotAnswer:{presence:{allowEmpty:!1,message:"Please describe your blood clot."}},heartOrLungProblem:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},heartOrLungAnswer:{presence:{allowEmpty:!1,message:"Please describe your heart or lung problems."}},highOrLowBloodPressure:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},bloodPressureAnswer:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},internalDeviceAnswer:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},diabetesAnswer:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},intractableInfectionOrIllnessAnswer:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},immunosuppressiveConditionAnswer:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},diabetes:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},intractableInfectionOrIllness:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}},immunosuppressiveCondition:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_ILLNESS_ERRORS.MISSING}}},MEDICAL_HISTORY_OTHER_ERRORS={MISSING:"Please select an option."},MEDICAL_HISTORY_OTHER_RULES={mobilityAid:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_OTHER_ERRORS.MISSING}},value:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_OTHER_ERRORS.MISSING}},wellbeingIssue:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_OTHER_ERRORS.MISSING}},activeInjury:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_OTHER_ERRORS.MISSING}},activeInjuryReason:{presence:{allowEmpty:!1,message:"Please describe your pressure injury."}},inPain:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_OTHER_ERRORS.MISSING}},inPainReason:{presence:{allowEmpty:!1,message:"Please describe your pain."}},fallen:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_OTHER_ERRORS.MISSING}},fallenReason:{presence:{allowEmpty:!1,message:"Please describe your recent fall."}},pregnant:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_OTHER_ERRORS.MISSING}},advancedCareDirective:{presence:{allowEmpty:!1,message:MEDICAL_HISTORY_OTHER_ERRORS.MISSING}}},OTHER_MEDICAL_PROBLEMS_RULES={otherMedProblemBool:{presence:{allowEmpty:!1,message:"Please select an option"}},otherMedProblemDescription:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE.MISSING_DESCRIPTION}},altMedicineBool:{presence:{allowEmpty:!1,message:"Please select an option"}},altMedicineDescription:{presence:{allowEmpty:!1,message:VALIDATION_MESSAGE_TYPE.MISSING_DESCRIPTION}}},SOCIAL_ASSESSMENT_RULES={alcoholBool:{presence:{allowEmpty:!1,message:"Please select an option"}},alcoholFrequency:{presence:{allowEmpty:!1,message:"Please select a drinking frequency."}},smokingBool:{presence:{allowEmpty:!1,message:"Please select an option."}},smokingHistory:{presence:{allowEmpty:!1,message:"Please enter valid years for your smoking history."},numeric:{greaterThan:0,message:"Please enter valid years for your smoking history."}},smokingFrequency:{presence:{allowEmpty:!1,message:"Please select your smoking frequency."}},exerciseBool:{presence:{allowEmpty:!1,message:"Please select an option."}},exerciseFrequency:{presence:{allowEmpty:!1,message:"Please select exercise frequency."}},accommodationAssistance:{presence:{allowEmpty:!1,message:"Please select an option."}},accommodationAssistanceReason:{presence:{allowEmpty:!1,message:"Please enter the reason assistance is required."}},transportationAssistance:{presence:{allowEmpty:!1,message:"Please select an option."}},transportationAssistanceReason:{presence:{allowEmpty:!1,message:"Please enter the reason assistance is required."}}},CANCER_RULES={previousCancer:{presence:{allowEmpty:!1,message:"Please select an option."}},otherRadiotherapy:{presence:{allowEmpty:!1,message:"Please select an option."}},familyHistory:{presence:{allowEmpty:!1,message:"Please select an option."}},familyHistoryAnswer:{presence:{allowEmpty:!1,message:"Please enter your family history of cancer."}},hospital:{presence:{allowEmpty:!1,message:"Please enter the name of the clinic/hospital."}},condition:{presence:{allowEmpty:!1,message:"Please enter your condition name."}},doctor:{presence:{allowEmpty:!1,message:"Please enter your doctor's name."}},bodyPart:{presence:{allowEmpty:!1,message:"Please enter your part of body that was treated."}},cancerType:{presence:{allowEmpty:!1,message:"Please enter a type of cancer"}}},OPERATIONS_RULES={prevOperation:{presence:{allowEmpty:!1,message:"Please select an option"}},operationSpecify:{presence:{allowEmpty:!1,message:"Please specify your operation"}}},ALLERGIES_RULES={allergyBool:{presence:{allowEmpty:!1,message:"Please select an option"}},sensitivity:{presence:{allowEmpty:!1,message:"Please select your allergy/sensitivity"}},specify:{presence:{allowEmpty:!1,message:"Please provide details about your allergy/sensitivity"}},area:{presence:{allowEmpty:!1,message:"Please specify your affected area"}}},GENERIC_RULES={treatmentDateSlash:{futureDateDDMMYYYY:{inputDateformat:"DD/MM/YYYY",message:"Please enter a valid date of treatment"}}},fetchRules=(et,tt)=>{let rt=null,nt=null;switch(et){case 1:rt=INFO_RULES;break;case 2:rt=OTHER_MEDICAL_PROBLEMS_RULES;break;case 3:rt=MEDICAL_HISTORY_OTHER_RULES;break;case 4:rt=SOCIAL_ASSESSMENT_RULES;break;case 5:rt=MEDICAL_HISTORY_ILLNESS_RULES;break;case 6:rt=isUs()?MEDICATION_RULES_US:MEDICATION_RULES;break;case 7:rt=OPERATIONS_RULES;break;case 8:rt=CANCER_RULES;break;case 9:rt=ALLERGIES_RULES;break}if(rt!==null){nt={};for(const lt of tt)nt[lt]=rt[lt];return nt}},removeHiddenFieldRules=(et,tt)=>{const rt={...tt};if(et.previousCancer&&et.previousCancer!=="YES")delete rt.cancerType;else if(et.previousCancer==="YES"){let nt=!1;for(let lt=0;lt<et.cancer.length;lt++)et.cancer[lt].cancerType===""&&(nt=!0);nt||delete rt.cancerType}if(et.otherRadiotherapy&&et.otherRadiotherapy!=="YES")["treatmentDate","condition","hospital","doctor","bodyPart"].forEach(nt=>delete rt[nt]);else if(et.otherRadiotherapy==="YES"){let nt=!1;for(let lt=0;lt<et.otherRadiotherapyConditions.length;lt++){const ut=et.otherRadiotherapyConditions[lt];[ut.condition,ut.bodyPart,ut.doctor,ut.hospital].includes("")&&(nt=!0)}nt||["treatmentDate","condition","hospital","doctor","bodyPart"].forEach(lt=>delete rt[lt])}if((et.familyHistory&&et.familyHistory!=="YES"||et.familyHistoryAnswer!==""&&et.familyHistory==="YES")&&delete rt.familyHistoryAnswer,et.highOrLowBloodPressure!=="YES"&&delete rt.bloodPressureAnswer,et.internalDevice!=="YES")["internalDeviceAnswer","internalDevices"].forEach(nt=>delete rt[nt]);else if(et.internalDevice==="YES"){let nt=!1;for(let lt=0;lt<et.internalDevices.length;lt++)et.internalDevices[lt].value===""&&(nt=!0);nt||["internalDeviceAnswer","internalDevices"].forEach(lt=>delete rt[lt])}if(et.diabetes!=="YES")delete rt.diabetesAnswer;else if(et.diabetes==="YES"){let nt=!1;for(let lt=0;lt<et.diabetesResponses.length;lt++)et.diabetesResponses[lt].value===""&&(nt=!0);nt||["diabetesAnswer","diabetes"].forEach(lt=>delete rt[lt])}if(et.intractableInfectionOrIllness!=="YES")["intractableInfectionOrIllnessAnswer","doctorClearance"].forEach(nt=>delete rt[nt]);else if(et.intractableInfectionOrIllness==="YES"){let nt=!1;for(let lt=0;lt<et.intractableInfectionOrIllnesses.length;lt++){const ut=et.intractableInfectionOrIllnesses[lt];(ut.value===""||ut.doctorClearance===null)&&(nt=!0)}nt||["intractableInfectionOrIllnessAnswer","doctorClearance"].forEach(lt=>delete rt[lt])}if(et.immunosuppressiveCondition!=="YES")delete rt.immunosuppressiveConditionAnswer;else if(et.immunosuppressiveCondition==="YES"){let nt=!1;for(let lt=0;lt<et.immunosuppressiveConditions.length;lt++)et.immunosuppressiveConditions[lt].value===""&&(nt=!0);nt||delete rt.immunosuppressiveConditionAnswer}if(et.activeInjury!=="YES"&&delete rt.activeInjuryReason,et.inPain!=="YES"&&delete rt.inPainReason,et.fallen!=="YES"&&delete rt.fallenReason,et.mobilityAid!=="YES"&&delete rt.value,et.mobilityAid==="YES"){let nt=!1;for(let lt=0;lt<et.mobilityAids.length;lt++)et.mobilityAids[lt].value===""&&(nt=!0);nt||delete rt.value}if(et.prevOperation||["operationSpecify","operationRawDay","operationDate"].forEach(nt=>delete rt[nt]),et.prevOperation){let nt=!1;for(let lt=0;lt<et.operations.length;lt++)et.operations[lt].operationSpecify||(nt=!0);nt||["operationSpecify","operationRawDay","operationDate"].forEach(lt=>delete rt[lt])}if(et.medicationBool||["medicationName","dosage"].forEach(nt=>delete rt[nt]),et.medicationBool){let nt=!1;for(let lt=0;lt<et.medications.length;lt++){const ut=et.medications[lt];(ut.dosage===""||ut.medicationName==="")&&(nt=!0)}nt||["medicationName","dosage"].forEach(lt=>delete rt[lt])}if(!et.allergyBool)["sensitivity","specify","area"].forEach(nt=>delete rt[nt]);else{let nt=!1;for(let lt=0;lt<et.allergies.length;lt++)et.allergies[lt].sensitivity===""&&(nt=!0);nt||["sensitivity","specify","area"].forEach(lt=>delete rt[lt])}return rt},validateHealthAssesment=et=>{const tt={fullMessages:!1},rt={...INFO_RULES,...OTHER_MEDICAL_PROBLEMS_RULES,...MEDICAL_HISTORY_OTHER_RULES,...SOCIAL_ASSESSMENT_RULES,...MEDICAL_HISTORY_ILLNESS_RULES,...isUs()?MEDICATION_RULES_US:MEDICATION_RULES,...OPERATIONS_RULES,...CANCER_RULES,...ALLERGIES_RULES},nt=removeHiddenFieldRules(et,rt),lt=validate(et,nt,tt);return getInvalidSection(lt)},getValidationForSingleProperty=(et,tt,rt)=>{const nt={fullMessages:!1};let lt=!1;const ut=validate(et,tt,nt);return ut&&ut[rt]&&Array.isArray(ut[rt])&&ut[rt].length&&(lt=!0),lt},getValidationRule=et=>({...INFO_RULES,...OTHER_MEDICAL_PROBLEMS_RULES,...MEDICAL_HISTORY_OTHER_RULES,...SOCIAL_ASSESSMENT_RULES,...MEDICAL_HISTORY_ILLNESS_RULES,...MEDICATION_RULES,...OPERATIONS_RULES,...CANCER_RULES,...ALLERGIES_RULES,...GENERIC_RULES})[et],getErrorsForSingleViewedField=(et,tt,rt)=>{const nt={fullMessages:!1};let lt;const ut=validate(et,tt,nt);return ut&&ut[rt]&&Array.isArray(ut[rt])&&ut[rt].length&&(lt=ut[rt]),lt},getInvalidSection=et=>{const tt=new Set;if(et&&Object.keys(et).forEach(rt=>{Object.keys(INFO_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.INFO),Object.keys(OTHER_MEDICAL_PROBLEMS_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.OTHER_MEDICAL_PROBLEMS),Object.keys(MEDICAL_HISTORY_OTHER_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.MEDICAL_HISTORY_OTHER),Object.keys(SOCIAL_ASSESSMENT_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.SOCIAL_ASSESSMENT),Object.keys(MEDICAL_HISTORY_ILLNESS_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.MEDICAL_HISTORY_ILLNESS),Object.keys(MEDICATION_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.MEDICATION),Object.keys(OPERATIONS_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.OPERATIONS),Object.keys(CANCER_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.CANCER),Object.keys(ALLERGIES_RULES).includes(rt)&&tt.add(INVALID_SECTIONS.ALLERGIES)}),tt.size>0){const rt=[];tt.forEach(nt=>{rt.push(nt)}),et.invalidSections=rt}return et},defaultButtonOption={presence:{allowEmpty:!1,message:"Please select an option."}},BIOLOGICAL_RULES={biologicalGender:defaultButtonOption},MEDICATION_RULES={medicationBool:{presence:{allowEmpty:!1,message:"Please select an option"}},medicationName:{presence:{allowEmpty:!1,message:"Please enter a value"}},dosage:{presence:{allowEmpty:!1,message:"Please enter a value"}}},MEDICATION_RULES_US={medicationBool:{presence:{allowEmpty:!1,message:"Please select an option"}},pharmacyName:{presence:{allowEmpty:!1,message:"Please enter a value"}},pharmacyPhone:{presence:{allowEmpty:!1,message:"Please enter a value"}},medicationName:{presence:{allowEmpty:!1,message:"Please enter a value"}},dosage:{presence:{allowEmpty:!1,message:"Please enter a value"}},route:{presence:{allowEmpty:!1,message:"Please enter a value"}},prescribingPhysician:{presence:{allowEmpty:!1,message:"Please enter a value"}}},FIELD_NAMES$5={PATIENT_FULL_NAME:"patient-full-name",PATIENT_DOB:"patient-dob",PATIENT_DOB_DAY:"patient-dob-day",PATIENT_DOB_MONTH:"patient-dob-month",PATIENT_DOB_YEAR:"patient-dob-year",HEIGHT:"patient-height",WEIGHT:"patient-weight"},FIELD_VALIDATION_KEYS$3={HEIGHT:"height",WEIGHT:"weight"},ERROR_MESSAGES={HEIGHT:{MISSING_DATA:"Please enter Height",INVALID_DATA:"Please enter a valid Height"},WEIGHT:{MISSING_DATA:"Please enter Weight",INVALID_DATA:"Please enter a valid Weight"}};class HAPatientInformation extends reactExports.Component{constructor(rt){super(rt);Nr(this,"getNewWeightInKg",rt=>rt===""?"":convertPoundToKg(parseFloat(rt)).toString());Nr(this,"validateObject",rt=>{const nt=fetchRules(ValidationKeys.Info,this.state.viewedFields);return validate(rt,nt,{fullMessages:!1})});Nr(this,"autoSaveAndValidate",async(rt,nt)=>{const{autosave:lt}=this.props;lt(rt).then(()=>{const ut=[...this.state.viewedFields];ut.push(nt),this.setState({viewedFields:new Set(ut)})})});this.state={viewedFields:new Set}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad){const lt=Object.keys(FIELD_VALIDATION_KEYS$3).map(dt=>FIELD_VALIDATION_KEYS$3[dt]);return{viewedFields:new Set(lt)}}return nt}render(){const{haPatientInfo:rt,isPso:nt}=this.props,lt=rt.patient.dob||"",[ut,dt,pt]=(lt.match(/-/g)||[]).length===2?lt.split("-"):["","",""],ht=this.validateObject(rt),mt=Mt=>{const vt=Mt;if(!nt){const At=Mt==null?void 0:Mt.indexOf("MISSING_DATA");At>=0&&vt.splice(At,1)}if(vt==null?void 0:vt.length)return vt},xt=(Mt=0,vt=!1)=>{const Ot=convertCmToInch(parseFloat(rt.height))||0,At=lodash.round(Math.floor(Ot/12),0),Rt=Math.floor(Ot%12),zt=vt?Mt*12+Rt:At*12+Mt,Tt=convertInchToCm(zt).toString();this.autoSaveAndValidate({id:parseInt(this.props.patientId),height:Tt==="0"?"":Tt},FIELD_VALIDATION_KEYS$3.HEIGHT)};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Patient Information",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Patient Name",htmlFor:FIELD_NAMES$5.PATIENT_FULL_NAME,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:FIELD_NAMES$5.PATIENT_FULL_NAME,disabled:!0,defaultValue:rt.patient.fullName,inputType:"text"})}),jsxRuntimeExports.jsx(HelperText,{helperText:CurrentAppConfig.DateFormat,idPrefix:"ha-dob",children:jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Date of Birth",htmlFor:FIELD_NAMES$5.PATIENT_DOB,children:jsxRuntimeExports.jsx("div",{className:"dob-fields",children:isUs()?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FreeTextField$1,{disabled:!0,inputName:FIELD_NAMES$5.PATIENT_DOB_MONTH,maxLength:2,inputType:"text",defaultValue:dt}),jsxRuntimeExports.jsx(FreeTextField$1,{disabled:!0,inputName:FIELD_NAMES$5.PATIENT_DOB_DAY,maxLength:2,inputType:"text",defaultValue:pt}),jsxRuntimeExports.jsx(FreeTextField$1,{disabled:!0,inputName:FIELD_NAMES$5.PATIENT_DOB_YEAR,maxLength:4,inputType:"text",defaultValue:ut})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FreeTextField$1,{disabled:!0,inputName:FIELD_NAMES$5.PATIENT_DOB_DAY,maxLength:2,inputType:"text",defaultValue:pt}),jsxRuntimeExports.jsx(FreeTextField$1,{disabled:!0,inputName:FIELD_NAMES$5.PATIENT_DOB_MONTH,maxLength:2,inputType:"text",defaultValue:dt}),jsxRuntimeExports.jsx(FreeTextField$1,{disabled:!0,inputName:FIELD_NAMES$5.PATIENT_DOB_YEAR,maxLength:4,inputType:"text",defaultValue:ut})]})})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Height",htmlFor:FIELD_NAMES$5.HEIGHT,children:isUs()?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FreeTextField$1,{inputName:`${FIELD_NAMES$5.HEIGHT}-ft`,defaultValue:convertCmToFeetAndInches(rt.height).heightFt,inputType:"number",sideLabel:"Feet",inputProps:{min:0},maxLength:200,onBlur:Mt=>{let vt=parseFloat(Mt.target.value);vt<0&&(vt=0,Mt.target.value="0"),xt(vt||0,!0)},errors:ht==null?void 0:ht.height,errorMessages:ERROR_MESSAGES.HEIGHT,showError:!1,inputStyle:{width:"100px"}}),jsxRuntimeExports.jsx(FreeTextField$1,{inputName:`${FIELD_NAMES$5.HEIGHT}-in`,defaultValue:convertCmToFeetAndInches(rt.height).heightIn,inputType:"number",sideLabel:"Inches",inputProps:{max:11,min:0},maxLength:200,onBlur:Mt=>{let vt=parseFloat(Mt.target.value);vt>11?(vt=11,Mt.target.value="11"):vt<0&&(vt=0,Mt.target.value="0"),xt(vt||0)},errors:ht==null?void 0:ht.height,errorMessages:ERROR_MESSAGES.HEIGHT,inputStyle:{width:"100px",marginLeft:"8px"}})]}):jsxRuntimeExports.jsx(FreeTextField$1,{inputName:FIELD_NAMES$5.HEIGHT,defaultValue:rt.height,inputType:"number",sideLabel:"cm",inputProps:{max:300,min:0},maxLength:200,onBlur:Mt=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),height:Mt.target.value},FIELD_VALIDATION_KEYS$3.HEIGHT)},errors:mt(ht==null?void 0:ht.height),errorMessages:ERROR_MESSAGES.HEIGHT})}),jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Weight",htmlFor:FIELD_NAMES$5.WEIGHT,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:FIELD_NAMES$5.WEIGHT,defaultValue:isUs()?convertKgToPound(parseFloat(rt.weight),2).toString():rt.weight,inputType:"number",sideLabel:isUs()?"Pounds":"kg",inputProps:{min:3},maxLength:200,onBlur:Mt=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),weight:isUs()?this.getNewWeightInKg(Mt.target.value):Mt.target.value},FIELD_VALIDATION_KEYS$3.WEIGHT)},errors:mt(ht==null?void 0:ht.weight),errorMessages:ERROR_MESSAGES.WEIGHT,inputStyle:isUs()?{width:"100px"}:void 0})})]})]})}}const logger$E=new Logger("HAPatientInformationApollo"),HEALTH_ASSESMENT_QUERY$3=gql`
  query HealthAssessment($id: ID!) {
    healthAssessment(id: $id) {
      id
      patient {
        id
        fullName
        dob
      }
      height
      weight
    }
    user {
      id
      isPso
    }
  }
`;class HAPatientInformationApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"autosave",rt=>{const{mutateGraph:nt,client:lt,getSaveStatus:ut,updateSaveStatus:dt}=this.props;return nt(lt,rt,()=>{ut(lt).then(pt=>{dt(pt)})},()=>{},()=>{},async()=>{const pt=await ut(lt);dt(pt)})})}render(){const{match:{params:{patientId:rt}},validateOnLoad:nt}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:HEALTH_ASSESMENT_QUERY$3,variables:{id:rt},children:({loading:lt,data:ut,error:dt})=>{const{setError:pt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(dt)return pt()},[dt]),lt)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(ut&&ut.healthAssessment){const ht=new HAPatientInformationItem;return ht.loadData(ut.healthAssessment),logger$E.debug("render","Query Data ",JSON.stringify(ut)),logger$E.debug("render","HA Patient Info: ",JSON.stringify(ht)),jsxRuntimeExports.jsx(HAPatientInformation,{haPatientInfo:ht,patientId:rt,autosave:this.autosave,validateOnLoad:nt,isPso:ut.user&&ut.user.isPso})}return jsxRuntimeExports.jsx("div",{})}})})}}const routedComponent$m=withRouter(HAPatientInformationApollo),haComponent$8=withHealthAssessment(routedComponent$m),HEALTH_ASSESMENT_US_SUMMARY_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      patient {
        userProfile {
          id
          showRegistration
        }
        id
        fullName
        dob
      }
      height
      weight
      previousCancer
      cancer {
        id
        ...HealthAssessmentCancer
      }
      otherRadiotherapy
      otherRadiotherapyConditions {
        id
        ...HealthAssessmentOtherRT
      }
      familyHistory
      familyHistoryAnswer
      mobilityAid
      mobilityAids {
        id
        ...HealthAssessmentMobilityAid
      }
      wellbeingIssue
      wellbeingIssues {
        id
        ...HealthAssessmentWellbeingIssue
      }
      activeInjury
      activeInjuryReason
      inPain
      inPainReason
      fallen
      fallenReason
      pregnant
      advancedCareDirective
      advancedCareAdditionalInformation
      alcoholBool
      alcoholFrequency
      smokingBool
      smokingHistory
      smokingFrequency
      smokingStopDate
      smokingStopRawMonth
      smokingStopRawYear
      exerciseBool
      exerciseFrequency
      accommodationAssistance
      accommodationAssistanceReason
      transportationAssistance
      transportationAssistanceReason
      prevOperation
      operations {
        id
        ...HealthAssessmentOperation
      }
      medicationBool
      medications {
        id
        ...HealthAssessmentMedication
      }
      allergyBool
      allergies {
        id
        ...HealthAssessmentAllergy
      }
      otherMedProblemBool
      otherMedProblemDescription
      altMedicineBool
      altMedicineDescription
    }
    referenceData: listData(
      categories: [
        "treatmentType"
        "treatmentStage"
        "diabetes"
        "immunosuppresiveConditions"
        "internalDevices"
        "intractableInfectionOrIllnesses"
        "mobilityAids"
        "wellbeingIssues"
        "alcohol_frequency"
        "smoking_frequency"
        "exercise_frequency"
        "exercise_frequency"
        "sensitivity"
        "reaction"
      ]
    ) {
      id
      name
    }
    treatmentTypeRefData: listData(category: "treatmentType") {
      id
      name
    }
    treatmentStageRefData: listData(category: "treatmentStage") {
      id
      name
    }
    diabetesRefData: listData(category: "diabetes") {
      id
      name
    }
    immunosuppresiveConditionsRefData: listData(category: "immunosuppresiveConditions") {
      id
      name
    }
    internalDevicesRefData: listData(category: "internalDevices") {
      id
      name
    }
    intractableInfectionOrIllnessesRefData: listData(category: "intractableInfectionOrIllnesses") {
      id
      name
    }
    mobilityAidRefData: listData(category: "mobilityAids") {
      id
      name
    }
    wellbeingIssueRefData: listData(category: "wellbeingIssues") {
      id
      name
    }
    alcoholFrequencyRefData: listData(category: "alcohol_frequency") {
      id
      name
    }
    smokingFrequencyRefData: listData(category: "smoking_frequency") {
      id
      name
    }
    exerciseFrequencyRefData: listData(category: "exercise_frequency") {
      id
      name
    }
    sensitivityRefData: listData(category: "sensitivity") {
      id
      name
    }
    reactionRefData: listData(category: "reaction") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
  ${HEALTH_ASSESSMENT_ALLERGY_FRAGMENT}
  ${HEALTH_ASSESSMENT_CANCER_FRAGMENT}
  ${HEALTH_ASSESSMENT_MEDICATION_FRAGMENT}
  ${HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT}
  ${HEALTH_ASSESSMENT_OPERATION_FRAGMENT}
  ${HEALTH_ASSESSMENT_OTHER_RT_FRAGMENT}
  ${HEALTH_ASSESSMENT_WELLBEING_ISSUE_FRAGMENT}
`,HA_MEDICAL_HISTORY_CANCER_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      previousCancer
      cancer {
        id
        ...HealthAssessmentCancer
      }
      patient {
        id
        fullName
      }
      otherRadiotherapy
      otherRadiotherapyConditions {
        id
        ...HealthAssessmentOtherRT
      }
      familyHistory
      familyHistoryAnswer
      usFamilyHistory {
        id
        ...HealthAssessmentFamilyHistory
      }
    }
    treatmentTypeRefData: listData(category: "treatmentType") {
      id
      name
    }
    treatmentStageRefData: listData(category: "treatmentStage") {
      id
      name
    }
    familyMemberRefData: listData(category: "familyMember") {
      id
      name
    }
  }

  ${HEALTH_ASSESSMENT_FAMILY_HISTORY_FRAGMENT}
  ${HEALTH_ASSESSMENT_CANCER_FRAGMENT}
  ${HEALTH_ASSESSMENT_OTHER_RT_FRAGMENT}
`,HA_BIOLOGICAL_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      ...HealthAssessmentBiological
    }
  }
  ${HA_BIOLOGICAL_FRAGMENT}
`,UPDATE_HA_BIOLOGICAL=gql`
  mutation UpdateHaBiological(
    $haId: ID!
    $patientId: ID!
    $biologicalGender: String
    $periodAge: String
    $breastBiopsy: String
    $abnormalMammograms: String
    $periodWhen: String
    $menopause: String
    $menopauseAge: String
    $biologicalPregnant: String
    $pregnantCount: String
    $pregnantDeliveries: String
    $pregnantAge: String
    $breastfeed: String
    $hormones: String
    $hormonesDuration: String
    $braSize: String
    $nippleDischarge: String
    $nippleDischargeExplain: String
    $vaginalBleeding: String
    $vaginalBleedingExplain: String
    $vaginalDischarge: String
    $vaginalDischargeExplain: String
    $stdFemale: String
    $papSmearDateRawMonth: String
    $papSmearDateRawDay: String
    $papSmearDateRawYear: String
    $mammogramDateRawMonth: String
    $mammogramDateRawDay: String
    $mammogramDateRawYear: String
    $psaDateRawMonth: String
    $psaDateRawDay: String
    $psaDateRawYear: String
    $psaScore: String
    $psaLocation: String
    $stdMale: String
  ) {
    updateHaBiological(
      id: $haId
      patientId: $patientId
      biologicalGender: $biologicalGender
      periodAge: $periodAge
      breastBiopsy: $breastBiopsy
      abnormalMammograms: $abnormalMammograms
      periodWhen: $periodWhen
      menopause: $menopause
      menopauseAge: $menopauseAge
      biologicalPregnant: $biologicalPregnant
      pregnantCount: $pregnantCount
      pregnantDeliveries: $pregnantDeliveries
      pregnantAge: $pregnantAge
      breastfeed: $breastfeed
      hormones: $hormones
      hormonesDuration: $hormonesDuration
      braSize: $braSize
      nippleDischarge: $nippleDischarge
      nippleDischargeExplain: $nippleDischargeExplain
      vaginalBleeding: $vaginalBleeding
      vaginalBleedingExplain: $vaginalBleedingExplain
      vaginalDischarge: $vaginalDischarge
      vaginalDischargeExplain: $vaginalDischargeExplain
      stdFemale: $stdFemale
      papSmearDateRawMonth: $papSmearDateRawMonth
      papSmearDateRawDay: $papSmearDateRawDay
      papSmearDateRawYear: $papSmearDateRawYear
      mammogramDateRawMonth: $mammogramDateRawMonth
      mammogramDateRawDay: $mammogramDateRawDay
      mammogramDateRawYear: $mammogramDateRawYear
      psaDateRawMonth: $psaDateRawMonth
      psaDateRawDay: $psaDateRawDay
      psaDateRawYear: $psaDateRawYear
      psaScore: $psaScore
      psaLocation: $psaLocation
      stdMale: $stdMale
    ) {
      healthAssessment {
        id
        ...HealthAssessmentBiological
      }
    }
  }
  ${HA_BIOLOGICAL_FRAGMENT}
`,HA_MOBILITY_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      mobilityAids {
        id
        ...HealthAssessmentMobilityAid
      }
      ...HealthAssessmentMobility
    }
    mobilityAidRefData: listData(category: "mobilityAids") {
      id
      name
    }
  }
  ${HA_MOBILITY_FRAGMENT}
  ${HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT}
`,UPDATE_HA_MOBILITY=gql`
  mutation UpdateHaMobility(
    $haId: ID!
    $patientId: ID!
    $mobilityAid: String
    $fallen: String
    $fallenHowMany: String
    $fallenInjuries: String
    $footPain: String
    $unsteady: String
    $lightheaded: String
  ) {
    updateHaMobility(
      id: $haId
      patientId: $patientId
      mobilityAid: $mobilityAid
      fallen: $fallen
      fallenHowMany: $fallenHowMany
      fallenInjuries: $fallenInjuries
      footPain: $footPain
      unsteady: $unsteady
      lightheaded: $lightheaded
    ) {
      healthAssessment {
        id
        mobilityAids {
          id
          ...HealthAssessmentMobilityAid
        }
        ...HealthAssessmentMobility
      }
    }
  }
  ${HA_MOBILITY_FRAGMENT}
  ${HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT}
`,DELETE_MOBILITY_AID=gql`
  mutation DeleteMobilityAid($id: ID!, $patientId: ID!) {
    deleteMobilityAid(id: $id, patientId: $patientId) {
      success
    }
  }
`,ADD_MOBILITY_AID=gql`
  mutation AddMobilityAid($haId: ID!, $patientId: ID!) {
    addMobilityAid(haId: $haId, patientId: $patientId) {
      mobilityAid {
        id
        ...HealthAssessmentMobilityAid
      }
    }
  }
  ${HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT}
`,UPDATE_MOBILITY_AID=gql`
  mutation UpdateMobilityAid($id: ID!, $patientId: ID!, $value: String, $other: String) {
    updateMobilityAid(id: $id, patientId: $patientId, value: $value, other: $other) {
      healthAssessment {
        id
        mobilityAids {
          id
          ...HealthAssessmentMobilityAid
        }
        ...HealthAssessmentMobility
      }
    }
  }
  ${HA_MOBILITY_FRAGMENT}
  ${HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT}
`,HA_PAIN_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      ...HealthAssessmentPain
    }
    painQualityRefData: listData(category: "pain_quality") {
      id
      name
      key: appKey
    }
  }
  ${HA_PAIN_FRAGMENT}
`,UPDATE_HA_PAIN=gql`
  mutation UpdateHaPainAssessment(
    $haId: ID!
    $patientId: ID!
    $inPain: String
    $painStart: String
    $painSeverity: String
    $painLocation: String
    $painQuality: String
    $painLength: String
    $painManagement: String
    $painBetter: String
    $painWorse: String
  ) {
    updateHaPain(
      id: $haId
      patientId: $patientId
      inPain: $inPain
      painStart: $painStart
      painSeverity: $painSeverity
      painLocation: $painLocation
      painQuality: $painQuality
      painLength: $painLength
      painManagement: $painManagement
      painBetter: $painBetter
      painWorse: $painWorse
    ) {
      healthAssessment {
        id
        ...HealthAssessmentPain
      }
    }
  }
  ${HA_PAIN_FRAGMENT}
`,HA_SOCIAL_US_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      ...HealthAssessmentSocialUS
    }
    alcoholFrequencyRefData: listData(category: "alcohol_frequency") {
      id
      name
    }
    smokingFrequencyRefData: listData(category: "smoking_frequency") {
      id
      name
    }
    streetDrugsRefData: listData(category: "streetDrugs") {
      id
      name
    }
  }

  ${HA_SOCIAL_US_FRAGMENT}
`,UPDATE_HA_SOCIAL_US=gql`
  mutation UpdateHaSocialUS(
    $haId: ID!
    $patientId: ID!
    $smokingBool: Boolean
    $smokingHistory: String
    $smokingFrequency: String
    $smokingStopRawMonth: String
    $smokingStopRawYear: String
    $tobaccoChew: Boolean
    $tobaccoChewHistory: String
    $tobaccoStopRawMonth: String
    $tobaccoStopRawYear: String
    $tobaccoStopClassesRawMonth: String
    $tobaccoStopClassesRawYear: String
    $alcoholBool: Boolean
    $alcoholFrequency: String
    $alcoholStopRawMonth: String
    $alcoholStopRawYear: String
    $streetDrugs: Boolean
    $streetDrugsUse: String
    $medicalMarijuanaCard: Boolean
    $socialSupportSystem: Boolean
    $socialSupportPeople: String
    $religiousBeliefs: Boolean
    $religiousBeliefsDescription: String
    $stillWorking: Boolean
    $stillWorkingReason: String
    $financialAssisstance: Boolean
    $financialAssisstanceReason: String
    $servedInMilitary: Boolean
    $servedInMilitaryBranch: String
    $chemicals: Boolean
    $chemicalsExposed: String
    $physicallyActive: Boolean
    $physicallyActiveExercise: String
    $difficultyTravellingBool: Boolean
    $difficultyTravelling: String
  ) {
    updateHaSocialUS(
      id: $haId
      patientId: $patientId
      smokingBool: $smokingBool
      smokingHistory: $smokingHistory
      smokingFrequency: $smokingFrequency
      smokingStopRawMonth: $smokingStopRawMonth
      smokingStopRawYear: $smokingStopRawYear
      tobaccoChew: $tobaccoChew
      tobaccoChewHistory: $tobaccoChewHistory
      tobaccoStopRawMonth: $tobaccoStopRawMonth
      tobaccoStopRawYear: $tobaccoStopRawYear
      tobaccoStopClassesRawMonth: $tobaccoStopClassesRawMonth
      tobaccoStopClassesRawYear: $tobaccoStopClassesRawYear
      alcoholBool: $alcoholBool
      alcoholFrequency: $alcoholFrequency
      alcoholStopRawMonth: $alcoholStopRawMonth
      alcoholStopRawYear: $alcoholStopRawYear
      streetDrugs: $streetDrugs
      streetDrugsUse: $streetDrugsUse
      medicalMarijuanaCard: $medicalMarijuanaCard
      socialSupportSystem: $socialSupportSystem
      socialSupportPeople: $socialSupportPeople
      religiousBeliefs: $religiousBeliefs
      religiousBeliefsDescription: $religiousBeliefsDescription
      stillWorking: $stillWorking
      stillWorkingReason: $stillWorkingReason
      financialAssisstance: $financialAssisstance
      financialAssisstanceReason: $financialAssisstanceReason
      servedInMilitary: $servedInMilitary
      servedInMilitaryBranch: $servedInMilitaryBranch
      chemicals: $chemicals
      chemicalsExposed: $chemicalsExposed
      physicallyActive: $physicallyActive
      difficultyTravelling: $difficultyTravelling
      physicallyActiveExercise: $physicallyActiveExercise
      difficultyTravellingBool: $difficultyTravellingBool
    ) {
      healthAssessment {
        id
        ...HealthAssessmentSocialUS
      }
    }
  }
  ${HA_SOCIAL_US_FRAGMENT}
`,HA_ALLERGY_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      allergyBool
      allergies {
        id
        ...HealthAssessmentAllergy
      }
    }
    sensitivityRefData: listData(category: "sensitivity") {
      id
      name
    }
    reactionRefData: listData(category: "reaction") {
      id
      name
    }
  }

  ${HEALTH_ASSESSMENT_ALLERGY_FRAGMENT}
`,HA_ILLNESS_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      ...HealthAssessmentIllness
    }
    screeningRefData: listData(category: "screening") {
      id
      name
      key: appKey
    }
    bonesJointsRefData: listData(category: "bones_joints") {
      id
      name
      key: appKey
    }
    pastMedicalHistoryRefData: listData(category: "past_medical_history") {
      id
      name
      key: appKey
    }
    cardiacRefData: listData(category: "cardiac") {
      id
      name
      key: appKey
    }
    constitutionalRefData: listData(category: "constitutional") {
      id
      name
      key: appKey
    }
    eyesEarsNoseThroatRefData: listData(category: "eyes_ears_nose_throat") {
      id
      name
      key: appKey
    }
    gastrointestinalRefData: listData(category: "gastrointestinal") {
      id
      name
      key: appKey
    }
    genitourinaryRefData: listData(category: "genitourinary") {
      id
      name
      key: appKey
    }
    neurologicalRefData: listData(category: "neurological") {
      id
      name
      key: appKey
    }
    psychiatricRefData: listData(category: "psychiatric") {
      id
      name
      key: appKey
    }
    pulmonaryRefData: listData(category: "pulmonary") {
      id
      name
      key: appKey
    }
    hematologicRefData: listData(category: "hematologic") {
      id
      name
      key: appKey
    }
    skinRefData: listData(category: "skin") {
      id
      name
      key: appKey
    }
  }
  ${HEALTH_ASSESSMENT_ILLNESS_FRAGMENT}
`,HA_OPERATIONS_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      prevOperation
      operations {
        id
        ...HealthAssessmentOperation
      }
    }
    operationsRefData: listData(category: "operations") {
      id
      name
    }
  }

  ${HEALTH_ASSESSMENT_OPERATION_FRAGMENT}
`,HA_MEDICATION_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      pharmacyName
      pharmacyPhone
      medicationBool
      medications {
        id
        ...HealthAssessmentMedication
      }
    }
  }
  ${HEALTH_ASSESSMENT_MEDICATION_FRAGMENT}
`,UPDATE_HA_MEDICATION=gql`
  mutation UpdateHaMedication(
    $haId: ID!
    $patientId: ID!
    $medicationBool: Boolean
    $pharmacyName: String
    $pharmacyPhone: String
  ) {
    updateHaMedication(
      id: $haId
      patientId: $patientId
      medicationBool: $medicationBool
      pharmacyName: $pharmacyName
      pharmacyPhone: $pharmacyPhone
    ) {
      healthAssessment {
        id
        pharmacyName
        pharmacyPhone
        medicationBool
        medications {
          id
          ...HealthAssessmentMedication
        }
      }
    }
  }
  ${HEALTH_ASSESSMENT_MEDICATION_FRAGMENT}
`,DELETE_MEDICATION=gql`
  mutation DeleteMedication($id: ID!, $patientId: ID!) {
    deleteMedication(id: $id, patientId: $patientId) {
      success
    }
  }
`,ADD_MEDICATION=gql`
  mutation AddMedication($haId: ID!, $patientId: ID!) {
    addMedication(haId: $haId, patientId: $patientId) {
      medication {
        id
        ...HealthAssessmentMedication
      }
    }
  }
  ${HEALTH_ASSESSMENT_MEDICATION_FRAGMENT}
`,UPDATE_MEDICATION=gql`
  mutation UpdateMedication(
    $id: ID!
    $patientId: ID!
    $medicationName: String
    $dosage: String
    $route: String
    $prescribingPhysician: String
  ) {
    updateMedication(
      id: $id
      patientId: $patientId
      medicationName: $medicationName
      dosage: $dosage
      route: $route
      prescribingPhysician: $prescribingPhysician
    ) {
      healthAssessment {
        id
        pharmacyName
        pharmacyPhone
        medicationBool
        medications {
          id
          ...HealthAssessmentMedication
        }
      }
    }
  }
  ${HEALTH_ASSESSMENT_MEDICATION_FRAGMENT}
`;gql`
  mutation UpdateFamilyHistory(
    $id: ID!
    $patientId: ID!
    $familyMember: String
    $cancerType: String
    $ageOfFamilyMember: String
    $stillAlive: Boolean
    $other: String
  ) {
    updateFamilyHistory(
      id: $id
      patientId: $patientId
      familyMember: $familyMember
      cancerType: $cancerType
      ageOfFamilyMember: $ageOfFamilyMember
      stillAlive: $stillAlive
      other: $other
    ) {
      usFamilyHistory {
        id
        ...HealthAssessmentFamilyHistory
      }
    }
  }

  ${HEALTH_ASSESSMENT_FAMILY_HISTORY_FRAGMENT}
`;const DELETE_FAMILY_HISTORY=gql`
  mutation DeleteFamilyHistory($id: ID!, $patientId: ID!) {
    deleteFamilyHistory(id: $id, patientId: $patientId) {
      success
    }
  }
`,ADD_FAMILY_HISTORY=gql`
  mutation AddFamilyHistory($haId: ID!, $patientId: ID!) {
    addFamilyHistory(haId: $haId, patientId: $patientId) {
      usFamilyHistory {
        id
        ...HealthAssessmentFamilyHistory
      }
    }
  }
  ${HEALTH_ASSESSMENT_FAMILY_HISTORY_FRAGMENT}
`,OTHER$2="Other",YES$2="YES",MALE="MALE",FEMALE="FEMALE",OP_FIELDS={PREV_OPERATION:{NAME:"previous-operation",TITLE:"Have you had any previous operations?",KEY:"prevOperation"}};var TREATMENT_TYPES=(et=>(et.SURGERY="Surgery",et.RADIATION_THERAPY="Radiation therapy",et.CHEMOTHERAPY="Chemotherapy",et.IMMUNOTHERAPY="Immunotherapy",et.HORMONAL_THERAPY="Hormonal therapy",et.BRACHYTHERAPY="Brachytherapy",et.THERANOSTICS="Theranostics",et.NONE="None - observation",et.OTHER="Other",et.UNSURE="Unsure",et))(TREATMENT_TYPES||{});const SA_FIELDS={ALCOHOL:{NAME:"alcohol",TITLE:"Do you drink alcohol?",KEY:"alcoholDrinker"},ALCOHOL_FREQUENCY:{NAME:"alcohol-frequency",TITLE:"How frequently do you drink?",KEY:"alcoholFrequency"},SMOKING:{NAME:"smoking",TITLE:"Do you or have you ever smoked?",KEY:"alcoholFrequency"},SMOKING_HISTORY:{NAME:"smoking-history",TITLE:"Smoking history",KEY:"smokingHistory",MORE_INFO:"Round up to the nearest year, e.g. 1.7 = 2 years"},SMOKING_FREQUENCY:{NAME:"smoking-frequency",TITLE:"How frequently do/did you smoke?",KEY:"smokingFrequency"},SMOKING_STOP:{NAME:"smoking-stop",TITLE:"Date stopped smoking",KEY:"smokingStop",MORE_INFO:"Please enter date if known e.g. Dec 2001"},EXERCISE:{NAME:"exercise",TITLE:"Do you exercise?",KEY:"exercise"},EXERCISE_FREQUENCY:{NAME:"exercise-frequency",TITLE:"How frequently do you exercise?",KEY:"exerciseFrequency"},ACCOMMODATION:{NAME:"accommodation",TITLE:"Do you require accommodation assistance?",KEY:"accommodationAssitance"},ACCOMMODATION_REASON:{NAME:"accommodation-reason",TITLE:"Reason accommodation assistance required",KEY:"accommodationReason"},TRANSPORTATION:{NAME:"transportation",TITLE:"Do you require transportation assistance?",KEY:"transportationAssistance"},TRANSPORTATION_REASON:{NAME:"transportation-reason",TITLE:"Reason transportation assistance required",KEY:"transportationReason"}},ILL_FIELDS={DEVICES:{NAME:"internalDevices",TITLE:"Do you have any implanted/artificial internal devices?",KEY:"internalDevice",INFO:"e.g. pacemaker, heart stent, port internal defibrillator or joint replacement",PACEMAKER_INFO:"Please bring your pacemaker card with you"},CLOT:{NAME:"blood-clot",TITLE:"Have you ever had a blood clot in your legs (DVT) or lungs (PE)?",KEY:"bloodClot",DETAIL:{NAME:"blood-clot-detail",TITLE:"Please specify",KEY:"bloodClotAnswer"}},PROBLEMS:{NAME:"heart-problems",TITLE:"Have you had any heart or lung problems?",KEY:"heartOrLungProblem",DETAIL:{NAME:"heart-problems-detail",TITLE:"Please specify",KEY:"heartOrLungAnswer"}},PRESSURE:{NAME:"blood-pressure",TITLE:"Do you suffer from high or low blood pressure?",KEY:"highOrLowBloodPressure",DETAIL:{NAME:"blood-pressure-detail",TITLE:"Please specify",KEY:"bloodPressureAnswer"}},DIABETES:{NAME:"diabetes",TITLE:"Do you have diabetes?",KEY:"diabetes",DETAIL:{NAME:"diabetes-detail",TITLE:"Diabetes type",KEY:"diabetesResponses"}},RESISTANT:{NAME:"resistant",TITLE:"Have you ever been diagnosed with an antibiotic-resistant illness OR an infection that has been hard to treat?",KEY:"intractableInfectionOrIllness",INFO:"e.g. MRSA – Golden Staph, VRE, MRO, or other infections that have been hard to treat",PERMISSION:{NAME:"permission",TITLE:"Did you have clearance from your doctor?"}},SUPPRESSIVE:{NAME:"suppressive",TITLE:"Do you have an immune suppressive condition or current infectious disease?",KEY:"immunosuppressiveCondition",INFO:"e.g. HIV, hepatitis, chicken pox, influenza or tuberculosis"}},CR_FIELDS={CANCER:{NAME:"previousCancer",TITLE:"Have you had any form of cancer previously (including skin)?",KEY:""},TREATMENT:{NAME:"treatment",TITLE:"Treatment",KEY:""},RADIOTHERAPY:{NAME:"otherRadiotherapy",INFO:"Start with the most recent treatment",TITLE:`Have you had any other condition for which you received ${isUs()?"Radiotherapy":"radiation treatment"}?`,DETAILS:{NAME:"otherRadiotherapyConditions"}},HISTORY:{NAME:"familyHistory",TITLE:"Do you have any family history of cancer or blood disease?",DETAILS:{NAME:"familyHistoryAnswer",TITLE:"Please specify"}}},CR_MODAL_FIELDS={CANCER_TYPE:{NAME:"cancer-type",TITLE:"Type of cancer",KEY:"cancerType"},CANCER_STAGE:{NAME:"cancer-stage",TITLE:"Stage of cancer (if known)",KEY:"cancerStage"},TREATMENT_TYPE:{NAME:"treatment-type",TITLE:"Treatment type",KEY:""},HOSPITAL:{NAME:"hospital",TITLE:"Name of the clinic/hospital",KEY:"hospital"},HORMONAL:{NAME:"medication",TITLE:"Medication",KEY:"medication"},DOCTOR:{NAME:"doctor",TITLE:"Doctor",KEY:"doctor",HINT:"e.g. Dr Michael Stephens"},BODY:{NAME:"body-part",TITLE:"What part of your body?",KEY:"bodyPart",HINT:"e.g. left hand, nose, left, side of neck"},STAGE:{NAME:"stage",TITLE:"Stage",KEY:"stage"},OTHER:{NAME:"other",TITLE:"Please specify",KEY:"other"},TREATMENT_DATE:{NAME:"treatment-date",KEY:"treatmentDate"},TREATMENT_DATE_HEADING:"Date of the last treatment",TREATMENT_DATE_EXAMPLE_TEXT:"Please enter date if known",TREATMENT_DATE_RAW_DAY:{NAME:"treatment-day",KEY:"treatmentDay"},TREATMENT_DATE_RAW_MONTH:{NAME:"treatment-month",KEY:"stage"},TREATMENT_DATE_RAW_YEAR:{NAME:"treatment-year",KEY:"stage"},RADIOTHERAPY:{NAME:"radiotherapy",TITLE:`Have you had any other condition for which you received ${isUs()?"Radiotherapy":"radiation treatment"}?`},HISTORY:{NAME:"history",TITLE:"Do you have any family history of cancer or blood disease?",DETAILS:{NAME:"history-details",TITLE:"Please specify."}},ADD_BUTTON:"Add"},FAMILY_HISTORY_MODAL={FAMILY_MEMBER:{NAME:"familyMember",TITLE:"Family member",KEY:"familyMember"},TYPE_OF_CANCER:{NAME:"cancerType",TITLE:"Type of cancer or blood disease",KEY:"cancerType"},STILL_ALIVE:{NAME:"stillAlive",TITLE:"Is this family member still alive?",KEY:"stillAlive"},AGE_OF_FAMILY_MEMBER:{NAME:"ageOfFamilyMember",TITLE:"Age of family member",KEY:"ageOfFamilyMember"},OTHER:{NAME:"other",TITLE:"Please specify",KEY:"other"}},MHO_FIELDS={WALKING:{NAME:"assistance-walking",TITLE:"Do you need assistance with walking?",MORE_INFO:"e.g. artificial limb, require a walking aid or a wheelchair",KEY:"mobilityAid"},MOBILITY_AIDS:{KEY:"mobilityAids"},MOBILITY_AIDS_OTHER:{KEY:"mobilityAidsOther"},MENTAL:{NAME:"mental-health",TITLE:"Do you have any wellbeing or mental health issues?",MORE_INFO:"e.g. depression, anxiety, claustrophobia, memory loss or other mental health issues",KEY:"wellbeingIssue"},MENTAL_ISSUES:{KEY:"wellbeingIssues"},ACTIVE_INJURY:{NAME:"active-injury",TITLE:"Do you currently have any pressure injuries, ulcers, or open wounds?",KEY:"activeInjury"},ACTIVE_INJURY_REASON:{NAME:"active-injury-reason",TITLE:"Please specify",KEY:"activeInjuryReason"},IN_PAIN:{NAME:"in-pain",TITLE:"Are you currently in pain?",KEY:"inPain"},IN_PAIN_REASON:{NAME:"in-pain-reason",TITLE:"Please specify",KEY:"inPainReason"},FALLEN:{NAME:"fallen",TITLE:"Have you had a fall within the past 12 months?",KEY:"fallen"},FALLEN_REASON:{NAME:"fallen-reason",TITLE:"Please describe what happened",KEY:"fallenReason"},PREGNANT:{NAME:"pregnant",TITLE:"Could you be pregnant?",KEY:"pregnant"},ADVANCED:{NAME:"advanced-care-directive",TITLE:"Do you have an Advance Care Directive?",MORE_INFO:"Please bring the original or a certified copy with you to your next doctor's appointment.",KEY:"advancedCareDirective"},INFO:{NAME:"further-info",KEY:"advancedCareAdditionalInformation",TITLE:"Would you like further information about the Advance Care Directive? (optional)"}},MOBILITY_FIELDS={MOBILITY_AID:{NAME:"mobilityAid",TITLE:"Do you need assistance with walking?",MORE_INFO:"e.g. artificial limb, walking aid or a wheelchair",KEY:"mobilityAid"},FALLEN:{NAME:"fallen",TITLE:"Have you fallen before?",KEY:"fallen"},FALLEN_HOW_MANY:{NAME:"fallenHowMany",TITLE:"How many falls in the past 12 months?",KEY:"fallenHowMany"},FALLEN_INJURIES:{NAME:"fallenInjuries",TITLE:"Please list any injuries related to the falls",KEY:"fallenInjuries"},FOOT_PAIN:{NAME:"footPain",TITLE:"Do you have foot ulcers, bunions, hammertoes, or calluses that are painful or cause you to adjust your steps while walking?",KEY:"footPain"},UNSTEADY:{NAME:"unsteady",TITLE:"Do you feel unsteady on your feet or shuffle when you walk?",KEY:"unsteady"},LIGHTHEADED:{NAME:"lightheaded",TITLE:"Do you feel dizzy/lightheaded when you stand up?",KEY:"lightheaded"}},BIOLOGICAL_FIELDS={GENDER:{NAME:"gender",TITLE:"Your biological gender (sex at birth)"},PERIOD_AGE:{NAME:"periodAge",TITLE:"Age when you had your first menstrual period"},ABNORMAL_MAMMOGRAMS:{NAME:"abnormalMammograms",TITLE:"Have you had prior abnormal mammograms?"},BREAST_BIOPSY:{NAME:"breastBiopsy",TITLE:"Have you had prior breast biopsy?"},PERIOD_WHEN:{NAME:"periodWhen",TITLE:"When was your last menstrual period",MORE_INFO:"e.g. last week, two weeks ago etc."},MENOPAUSE:{NAME:"menopause",TITLE:"Have you been through menopause?"},MENOPAUSE_AGE:{NAME:"menopauseAge",TITLE:"Age at menopause"},PREGNANT:{NAME:"pregnant",TITLE:"Any chance you could be pregnant?"},PREGNANT_COUNT:{NAME:"pregnantCount",TITLE:"Number of pregnancies"},PREGNANT_DELIVERIES:{NAME:"pregnantDeliveries",TITLE:"Number of deliveries"},PREGNANT_AGE:{NAME:"pregnantAge",TITLE:"Your age when you had your first delivery, if applicable"},BREASTFEED:{NAME:"breastfeed",TITLE:"Did you breastfeed?"},HORMONES:{NAME:"hormones",TITLE:"Did you ever take hormones?",MORE_INFO:"e.g. estrogen, birth control pills, androgens, etc."},HORMONES_DURATION:{NAME:"hormonesDuration",TITLE:"How long did you take hormones?"},BRA_SIZE:{NAME:"braSize",TITLE:"Bra cup size"},NIPPLE_DISCHARGE:{NAME:"nippleDischarge",TITLE:"Do you have nipple discharge?"},NIPPLE_DISCHARGE_EXPLAIN:{NAME:"nippleDischargeExplain",TITLE:"Please explain"},VAGINAL_BLEEDING:{NAME:"vaginalBleeding",TITLE:"Do you have vaginal bleeding?"},VAGINAL_BLEEDING_EXPLAIN:{NAME:"vaginalBleedingExplain",TITLE:"Please explain"},VAGINAL_DISCHARGE:{NAME:"vaginalDischarge",TITLE:"Do you have vaginal discharge?"},VAGINAL_DISCHARGE_EXPLAIN:{NAME:"vaginalDischargeExplain",TITLE:"Please explain"},STD_FEMALE:{NAME:"stdFemale",TITLE:"History of sexually transmitted diseases?"},PAP_SMEAR_DATE:{NAME:"papSmearDate",TITLE:"Date of PAP smear (if known)",MORE_INFO:"e.g. Jan 31 2007"},MAMMOGRAM_DATE:{NAME:"mammogramDate",TITLE:"Date of last mammogram (if known)",MORE_INFO:"e.g. Jan 31 2007"},PSA_DATE:{NAME:"psaDate",TITLE:"Date of last PSA: ",MORE_INFO:"Please enter date if known e.g. Jan 31 2007"},PSA_SCORE:{NAME:"psaScore",TITLE:"Score of last PSA:"},PSA_LOCATION:{NAME:"psaLocation",TITLE:"Where was the last PSA done?"},STD_MALE:{NAME:"stdMale",TITLE:"History of sexually transmitted diseases?"}},SOCIAL_US_FIELDS={SMOKING_BOOL:{NAME:"smokingBool",TITLE:"Do you or have you ever smoked?"},SMOKING_HISTORY:{NAME:"smokingHistory",TITLE:"Smoking history",MORE_INFO:"Round up to the nearest year, e.g. 1.7 = 2 years"},SMOKING_FREQUENCY:{NAME:"smokingFrequency",TITLE:"How frequently do/did you smoke?"},SMOKING_STOP:{NAME:"smokingStop",TITLE:"Date stopped smoking (optional)",MORE_INFO:"e.g. 12 2001"},TOBACCO_BOOL:{NAME:"tobaccoBool",TITLE:"Have you ever chewed tobacco?"},TOBACCO_HISTORY:{NAME:"tobaccoHistory",TITLE:"How much tobacco have you chewed?"},TOBACCO_STOP:{NAME:"tobaccoStop",TITLE:"Date stopped chewing tobacco (optional)",MORE_INFO:"e.g. 12 2001"},TOBACCO_CLASSES:{NAME:"tobaccoClasses",TITLE:"Have you ever attended tobacco cessation classes",MORE_INFO:"e.g. 12 2001"},ALCOHOL_BOOL:{NAME:"alcoholBool",TITLE:"Do/did you drink alcohol?"},ALCOHOL_FREQUENCY:{NAME:"alcoholFrequency",TITLE:"How frequently do/did you drink?"},ALCOHOL_STOP:{NAME:"alcoholStop",TITLE:"Date stopped drinking (optional)",MORE_INFO:"e.g. 12 2001"},STREET_DRUGS_BOOL:{NAME:"streetDrugsBool",TITLE:"Do you use any recreational drugs?"},STREET_DRUGS_OPTIONS:{NAME:"streetDrugsOptions",TITLE:"Please describe which ones?"},MEDICAL_MARIJUANA_CARD_BOOL:{NAME:"medicalMarijuanaCardBool",TITLE:"Do you have a medical marijuana card? "},SOCIAL_SUPPORT_SYSTEM_BOOL:{NAME:"socialSupportSystemBool",TITLE:"Do you have a strong social support system?"},SOCIAL_SUPPORT_SYSTEM:{NAME:"socialSupportSystem",TITLE:"If yes, who?"},RELIGIOUS_BELIEFS_BOOL:{NAME:"religiousBeliefsBool",TITLE:"Do you adhere to any religious beliefs that you would like us to know about?"},RELIGIOUS_BELIEFS:{NAME:"religiousBeliefs",TITLE:"Specify any religious beliefs (optional)"},STILL_WORKING_BOOL:{NAME:"stillWorkingBool",TITLE:"Are you still working?"},STILL_WORKING:{NAME:"stillWorking",TITLE:"If no, please explain"},FINANCIAL_ASSISTANCE_BOOL:{NAME:"financialAssisstance",TITLE:"Do you need any help with any of the following: coping, financial assistance, nutrition, social work, transportation, home assistance?"},FINANCIAL_ASSISTANCE_REASON:{NAME:"financialAssisstanceReason",TITLE:"If yes, please explain"},DIFFICULTY_TRAVELLING_BOOL:{NAME:"difficultyTravellingBool",TITLE:"Do you have difficulty travelling?"},DIFFICULTY_TRAVELLING:{NAME:"difficultyTravelling",TITLE:"If yes, please explain"},SERVED_IN_MILITARY_BOOL:{NAME:"servedInMilitaryBool",TITLE:"Have you served in the military?"},SERVED_IN_MILITARY:{NAME:"servedInMilitary",TITLE:"Which branch?"},CHEMICALS_BOOL:{NAME:"chemicalsBool",TITLE:"Did you ever work in an occupation that involved exposure to asbestos or any other cancerous chemicals, fumes, or carcinogens?"},CHEMICALS:{NAME:"chemicals",TITLE:"If yes, please explain"},PHYSICALLY_ACTIVE:{NAME:"physicallyActive",TITLE:"Are you physically active?"},PHYSICALLY_ACTIVE_EXERCISE:{NAME:"physicallyActiveExercise",TITLE:"How much exercise"}},MEDICATION_FIELDS={MEDICATION:{NAME:"medicationBool",TITLE:"Are you currently on any medications?",HINT:"If you do not have a current printed list of your medications from your GP, please list current medications and dosage (if known) below"},PHARMACY_NAME:{NAME:"pharmacyName",TITLE:"Pharmacy Name"},PHARMACY_PHONE:{NAME:"pharmacyPhone",TITLE:"Pharmacy Phone"},MEDICATION_NAME:{NAME:"medicationName",TITLE:"Medication"},DOSAGE:{NAME:"dosage",TITLE:"Dosage and Frequency",HINT:"e.g. 2 tablets per day, 10ml once a week"},ROUTE:{NAME:"route",TITLE:"Route",HINT:"e.g. Oral, Injection"},PHYSICIAN:{NAME:"prescribingPhysician",TITLE:"Prescribing Physician"}},PAIN_ASSESSMENT_FIELDS={IN_PAIN:{NAME:"inPain",TITLE:"Are you currently in pain?"},PAIN_START:{NAME:"painStart",TITLE:"When did the pain start?",MORE_INFO:"e.g. 2 weeks ago, 3 months ago etc."},PAIN_SEVERITY:{NAME:"painSeverity",TITLE:"How severe is your pain?",MORE_INFO:"0 - No pain, 10 - Worst possible pain"},PAIN_LOCATION:{NAME:"painLocation",TITLE:"What is the location of your pain?",MORE_INFO:"Please use commas to separate locations"},PAIN_QUALITY:{NAME:"painQuality",TITLE:"What is the quality of the pain?",MORE_INFO:"Please use commas to separate locations"},PAIN_LENGTH:{NAME:"painLength",TITLE:"How long have you been in pain?"},PAIN_MANAGEMENT:{NAME:"painManagement",TITLE:"How is your pain being managed?"},PAIN_BETTER:{NAME:"painBetter",TITLE:"Is anything making it better?"},PAIN_WORSE:{NAME:"painWorse",TITLE:"Is anything making it worse?"}},HAFreeTextField=({name:et,title:tt,required:rt=!1,defaultValue:nt,onBlur:lt,hint:ut,errors:dt})=>jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:et,title:tt,required:rt,children:[jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:nt,inputName:et,defaultValue:nt,onBlur:lt,errors:dt}),ut&&jsxRuntimeExports.jsx("div",{"data-test-id":"body-hint-text",className:"example-text",children:ut})]}),HADropDownField=({name:et,title:tt,defaultValue:rt,onChange:nt,hint:lt,options:ut})=>jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:et,title:tt,children:[jsxRuntimeExports.jsx(DropDownField,{inputName:et,placeholder:"Please select",options:ut,defaultValue:rt,controlled:!0,onChange:nt}),lt&&jsxRuntimeExports.jsx("div",{"data-test-id":"body-hint-text",className:"example-text",children:lt})]}),renderArrow=()=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:"line",children:jsxRuntimeExports.jsx("div",{className:"arrow-down"})})});var ExpandMore={},_interopRequireDefault$j=interopRequireDefaultExports;Object.defineProperty(ExpandMore,"__esModule",{value:!0});var default_1$j=ExpandMore.default=void 0,_createSvgIcon$j=_interopRequireDefault$j(requireCreateSvgIcon()),_jsxRuntime$j=jsxRuntimeExports;default_1$j=ExpandMore.default=(0,_createSvgIcon$j.default)((0,_jsxRuntime$j.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");styled$1("button")`
  align-items: center;
  text-align: left;
  padding: 18px 0;
  border: none;
  background: none;
  width: 100%;
  font-weight: 500;
  font-size: ${getRemSize(16)};
  transition: background-color 0.3s ease;
  background-color: white;

  &.disabled {
    background-color: white !important;
  }

  &:hover,
  &:focus {
    outline: unset;
  }

  svg {
    position: relative;
    bottom: 10;
    float: right;
    path {
      fill: ${et=>et.theme.palette.primary.main};
    }
  }
`;styled$1("div")`
  padding: 8px 0;
  background-color: ${et=>et.theme.palette.grey[100]};

  & > *:last-child {
    margin-bottom: 0 !important;
  }
`;styled$1("div")`
  width: 98%;
  margin-bottom: 8px;
  border: unset,
  overflow: ${({$isOpen:et})=>et?"visible":"hidden"};

  svg {
    margin-right: 10px;
    transition: transform 0.15s ease-in-out;
  }
`;styled$1("span")`
  margin-left: 14px;
  width: 20px;
  height: 20px;
  background-color: ${et=>et.theme.palette.info.main};
  color: ${et=>et.theme.palette.info.contrastText};
  font-weight: 700;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
`;styled$1("span")`
  line-height: 28px;
  font-size: 18px;
  color: ${et=>et.theme.palette.grey[600]};
  vertical-align: middle;
  font-weight: 700;
`;styled$1("div")`
  background: unset;
  display: block;
  font-size: 13px;
  font-weigth: 400;
  line-height: 15px;
  padding-top: 8px;
  color: ${et=>et.theme.palette.grey[600]};
  max-width: 80%;
`;const HAAccordion=et=>{const{title:tt,subtitle:rt,badgeValue:nt,startOpen:lt,children:ut}=et,dt=et.readOnly||!1;return jsxRuntimeExports.jsxs(Accordion$2,{defaultExpanded:lt,disabled:dt,sx:{marginBottom:"8px"},children:[jsxRuntimeExports.jsx(AccordionSummary$1,{expandIcon:jsxRuntimeExports.jsx(default_1$j,{}),children:jsxRuntimeExports.jsxs(Stack$5,{direction:"column",children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",fontWeight:700,color:theme$1.palette.grey[600],children:tt}),!!nt&&jsxRuntimeExports.jsx(Avatar,{sx:{width:"20px",height:"20px",fontSize:"12px",fontWeight:700},"data-test-id":`badge-${tt}`,children:nt})]}),rt&&jsxRuntimeExports.jsx(Typography,{variant:"body2",color:theme$1.palette.grey[600],children:rt})]})}),jsxRuntimeExports.jsx(AccordionDetails,{children:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:theme$1.palette.grey[100]},children:ut})})]})},StyledCheckbox$1=styled$1("span")`
  svg {
    fill: ${et=>et!=null&&et.$isSelected?et.theme.palette.primary.dark:et.theme.palette.grey[600]};
    cursor: pointer;
  }
`,StyledCol$1=styled$1(Stack$5)`
  padding: 9px;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
`,AccordionCheckboxItem=et=>{const{label:tt,value:rt,children:nt,onClick:lt,disabled:ut}=et,[dt,pt]=reactExports.useState(rt),ht=()=>{ut||(pt(!rt),lt(!rt))};return jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsxs("div",{onClick:ht,style:{cursor:"pointer",padding:"6px 9px",display:"flex",justifyContent:"space-between",flexWrap:"wrap",marginRight:"16px"},children:[jsxRuntimeExports.jsx(StyledCol$1,{"data-test-name":`label-${tt}`,children:tt}),jsxRuntimeExports.jsx(StyledCol$1,{children:jsxRuntimeExports.jsx(StyledCheckbox$1,{$isSelected:dt,"data-test-id":tt,children:dt?jsxRuntimeExports.jsx(SvgCheckBoxSelected,{"data-test-value":"checked"}):jsxRuntimeExports.jsx(SvgCheckBoxUnselected,{"data-test-value":"unchecked"})})})]}),nt&&dt&&jsxRuntimeExports.jsx(Stack$5,{sx:{padding:"9px 18px"},children:jsxRuntimeExports.jsx("div",{children:nt})})]})},DropDownRODay=et=>{const{selectedMonth:tt,selectedYear:rt,value:nt,onChange:lt,useLastOption:ut,...dt}=et,pt=reactExports.useMemo(()=>{const mt=rt||2e3,xt=tt||12;let Mt=31;const vt=parseInt(hooks().format("YYYY")),Ot=parseInt(hooks().format("MM")),At=parseInt(hooks().format("DD"));return mt===vt&&xt===Ot?Mt=At:Mt=new Date(mt,xt,0).getDate()??31,[...Array(Mt).keys()].map(zt=>{const Tt=zt+1;return{label:Tt.toString(),value:Tt.toString()}})},[tt,rt]),ht=reactExports.useMemo(()=>{if(pt.find(xt=>xt.value==nt))return nt;let mt="";return nt&&ut&&(mt=pt[pt.length-1].value),lt(mt),mt},[nt,pt]);return jsxRuntimeExports.jsx(BaseSelect,{value:ht,options:[{label:"--",value:""},...pt],onChange:mt=>{lt(mt.target.value)},...dt,sx:{".MuiOutlinedInput-root":{backgroundColor:"white"},width:"120px",paddingRight:"8px",paddingBottom:"6px"}})};DropDownRODay.defaultProps={required:!0,readonly:!1,searchable:!0,useLastOption:!0,placeholder:"Date"};const DropDownROMonth=et=>{const{selectedYear:tt,value:rt,onChange:nt,useLastOption:lt,...ut}=et,dt=reactExports.useMemo(()=>{const ht=Months.map(xt=>({label:xt,value:xt})),mt=parseInt(hooks().format("YYYY"));if(tt===mt){const xt=parseInt(hooks().format("MM"));return ht.slice(0,xt)}return ht},[tt]),pt=reactExports.useMemo(()=>{if(dt.find(mt=>mt.value==rt))return rt;let ht="";return rt&&lt&&(ht=dt[dt.length-1].value),nt(ht),ht},[rt,dt]);return jsxRuntimeExports.jsx(BaseSelect,{value:pt,options:[{label:"--",value:""},...dt],onChange:ht=>{nt(ht.target.value)},sx:{".MuiOutlinedInput-root":{backgroundColor:"white"},width:"120px",paddingRight:"8px",paddingBottom:"6px"},...ut})};DropDownROMonth.defaultProps={required:!0,readonly:!1,searchable:!0,useLastOption:!1,placeholder:"Month"};const DropDownROYear=et=>{const tt=reactExports.useMemo(()=>{const rt=parseInt(hooks().format("YYYY")),nt=rt-150,lt=1900,ut=nt>0&&nt>lt?nt:lt,dt=[];for(let pt=ut;pt<=rt;pt++)dt.push(pt);return dt.reverse().map(pt=>({label:pt.toString(),value:pt.toString()}))},[]);return jsxRuntimeExports.jsx(BaseSelect,{options:[{label:"--",value:""},...tt],sx:{".MuiOutlinedInput-root":{backgroundColor:"white"},width:"120px",paddingRight:"8px",paddingBottom:"6px"},...et,onChange:rt=>{et==null||et.onChange(rt.target.value)}})};DropDownROYear.defaultProps={required:!0,readonly:!1,searchable:!0,placeholder:"Year"};const HADate=({dayValue:et,dayField:tt,monthValue:rt,monthField:nt,yearValue:lt,yearField:ut,onChange:dt})=>{const pt=jsxRuntimeExports.jsx(DropDownROMonth,{id:nt,value:rt>0?Months[rt-1]:"",onChange:mt=>{if(mt){const xt=Months.indexOf(mt)>=0?Months.indexOf(mt)+1:"";dt(nt,xt.toString())}},selectedYear:parseInt(lt),dataTestId:`${nt}-subform-date-month`}),ht=jsxRuntimeExports.jsx(DropDownRODay,{id:tt,value:et,onChange:mt=>{mt&&dt(tt,mt)},selectedMonth:rt,selectedYear:parseInt(lt),dataTestId:`${tt}-subform-date-day`});return jsxRuntimeExports.jsxs("div",{className:"ha-shared_components-date-fields",children:[isUs()?pt:ht,isUs()?ht:pt,jsxRuntimeExports.jsx(DropDownROYear,{id:ut,value:lt,onChange:mt=>{dt(ut,mt)},dataTestId:`${ut}-subform-date-year`})]})},HAMonthYear=({monthValue:et,monthField:tt,yearValue:rt,yearField:nt,onChange:lt})=>{const ut=parseInt(et);return jsxRuntimeExports.jsxs("div",{className:"ha-shared_components-date-fields",children:[jsxRuntimeExports.jsx(DropDownROMonth,{id:tt,value:ut>0?Months[ut-1]:"",onChange:dt=>{if(dt){const pt=Months.indexOf(dt)>=0?Months.indexOf(dt)+1:"";lt(tt,pt.toString())}},selectedYear:parseInt(rt)}),jsxRuntimeExports.jsx(DropDownROYear,{id:nt,value:rt,onChange:dt=>{lt(nt,dt)}})]})},StyledLabelDiv=styled$1("div")`
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: ${et=>et.theme.palette.grey[600]};
  padding-bottom: 9px;
`,StyledTextfieldSubformDiv=styled$1(et=>jsxRuntimeExports.jsx("div",{...et}))`
  input {
    width: 100%;
  }
`,StyledDateSubformDiv=styled$1(et=>jsxRuntimeExports.jsx("div",{...et}))`
  .rodropdown-wrapper {
    padding: 2px;
    flex: 1;
  }
  .default-option-search__value-container {
    position: unset;
    height: 34px;
    align-content: center;
  }
`,TextFieldSubform=et=>{const{inputName:tt,value:rt,label:nt,onChange:lt,placeholder:ut="Enter value here",inputType:dt="text"}=et;return jsxRuntimeExports.jsxs(StyledTextfieldSubformDiv,{children:[nt&&jsxRuntimeExports.jsx(StyledLabelDiv,{children:nt}),jsxRuntimeExports.jsx(FreeTextField$1,{inputName:tt,dataTestId:`${tt}-subform-text`,defaultValue:rt,placeholder:ut,inputType:dt,onBlur:pt=>lt(pt.target.value)})]})},DateFieldSubform=et=>{const{label:tt}=et;return jsxRuntimeExports.jsxs(StyledDateSubformDiv,{children:[tt&&jsxRuntimeExports.jsx(StyledLabelDiv,{children:tt}),jsxRuntimeExports.jsx(HADate,{...et})]})},UPDATE_HA_CANCER_MODAL=gql`
  mutation UpdateHaCancerModal($haId: ID!, $patientId: ID!, $cancer: CancerInputType!) {
    updateHaCancerModal(haId: $haId, patientId: $patientId, cancer: $cancer) {
      cancer {
        id
        ...HealthAssessmentCancer
      }
    }
  }
  ${HEALTH_ASSESSMENT_CANCER_FRAGMENT}
`,DEFAULT_CANCER_ITEM={id:"-1",cancerType:"",cancerStage:"",treatment:[]},DEFAULT_TREATMENT_ITEM={other:"",treatmentType:"",hospital:"",doctor:"",bodyPart:"",stage:"",treatmentRawYear:"",treatmentRawDay:"",treatmentRawMonth:"",medication:""},StyledTreatmentTitle=styled$1("div")`
  font-size: 18px;
  font-weight: bold;
  line-height: 28px;
  margin-bottom: 9px;
`,StyledCancerSection=styled$1("div")`
  background-color: ${et=>et.theme.palette.grey[100]};
  padding: 16px 24px;
  margin-bottom: 16px;
`,renderRemoveItem=(et,tt)=>jsxRuntimeExports.jsx("div",{className:"remove-item",children:jsxRuntimeExports.jsxs("div",{onClick:tt,children:[jsxRuntimeExports.jsx(SvgMinusNoFill,{className:"icon"}),et]})}),renderAdditionalItem=(et,tt)=>jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("div",{"data-test-id":et,className:"additional-item-button",onClick:tt,children:[jsxRuntimeExports.jsx(AddIcon$1,{className:"icon",color:"primary"}),et]})}),HAMedicalHistoryCancerModal=et=>{const{isOpen:tt,dismissModal:rt,medicalHistoryCancer:nt,selectedCancerId:lt,patientId:ut,treatmentTypesRefData:dt,treatmentStagesRefData:pt}=et,ht=nt.cancer.find(Bt=>{var Ft;return((Ft=Bt==null?void 0:Bt.id)==null?void 0:Ft.toString())===lt}),[mt,xt]=reactExports.useState(ht||DEFAULT_CANCER_ITEM),[Mt,vt]=reactExports.useState((ht==null?void 0:ht.treatment)||[DEFAULT_TREATMENT_ITEM]),[Ot]=useMutation(UPDATE_HA_CANCER_MODAL),At=()=>{var Ft;const Bt=nt.cancer.find($t=>{var jt;return((jt=$t==null?void 0:$t.id)==null?void 0:jt.toString())===lt})||DEFAULT_CANCER_ITEM;xt(lodash.omit(Bt,"__typename")),vt(((Ft=Bt==null?void 0:Bt.treatment)==null?void 0:Ft.map($t=>lodash.omit($t,["__typename","treatmentDate"])))||[DEFAULT_TREATMENT_ITEM]),rt()},Rt=()=>{mt.treatment=Mt,Ot({variables:{cancer:mt,patientId:ut,haId:nt.id}}),rt()},zt=(Bt,Ft,$t)=>{vt([...Mt].map((jt,Wt)=>Wt===Bt?{...jt,[Ft]:$t}:jt))},Tt=(Bt,Ft)=>{const $t=resolveListDataValue(Bt.stage,pt);return["Not started","Unsure"].includes($t)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):kt(Bt,Ft)},Ct=(Bt,Ft,$t,jt,Wt=!0)=>{const Ut=$t[Bt];return jsxRuntimeExports.jsx(HAFreeTextField,{name:Ft.NAME,title:Ft.TITLE,required:Wt,defaultValue:Ut||"",hint:Ft.HINT,onBlur:Vt=>{zt(jt,Bt,Vt.target.value)}})},It=(Bt,Ft,$t,jt=!0)=>{const Wt=$t[Bt];return jsxRuntimeExports.jsx(HAFreeTextField,{name:Ft.NAME,title:Ft.TITLE,required:jt,defaultValue:Wt,hint:Ft.HINT,onBlur:Ut=>{$t[Bt]=Ut.target.value,xt({...$t})}})},Dt=(Bt,Ft,$t,jt,Wt)=>{const Ut=$t[Bt],Vt=Ht=>{zt(Wt,Bt,Ht.target.value)};return jsxRuntimeExports.jsx(HADropDownField,{name:Ft.NAME,title:Ft.TITLE,defaultValue:Ut||"",hint:Ft.HINT,options:jt,onChange:Vt})};reactExports.useEffect(()=>{var Ft;const Bt=nt.cancer.find($t=>{var jt;return((jt=$t==null?void 0:$t.id)==null?void 0:jt.toString())===lt})||DEFAULT_CANCER_ITEM;xt(lodash.omit(Bt,"__typename")),vt(((Ft=Bt==null?void 0:Bt.treatment)==null?void 0:Ft.map($t=>lodash.omit($t,["__typename","treatmentDate"])))||[DEFAULT_TREATMENT_ITEM])},[lt,nt]);const kt=(Bt,Ft)=>{const $t=jsxRuntimeExports.jsx(DropDownRODay,{id:`${CR_MODAL_FIELDS.TREATMENT_DATE_RAW_DAY.NAME}-${Ft}`,menuPlacement:"top",value:Bt.treatmentRawDay,onChange:Wt=>{zt(Ft,"treatmentRawDay",Wt)},selectedMonth:parseInt(Bt.treatmentRawMonth),selectedYear:parseInt(Bt.treatmentRawYear)}),jt=jsxRuntimeExports.jsx(DropDownROMonth,{id:`${CR_MODAL_FIELDS.TREATMENT_DATE_RAW_MONTH.NAME}-${Ft}`,menuPlacement:"top",value:parseInt(Bt.treatmentRawMonth)>0?Months[parseInt(Bt.treatmentRawMonth)-1]:"",onChange:Wt=>{const Ut=Months.indexOf(Wt)>=0?Months.indexOf(Wt)+1:"";zt(Ft,"treatmentRawMonth",Ut.toString())},selectedYear:parseInt(Bt.treatmentRawYear)});return jsxRuntimeExports.jsx("div",{className:"date-of-operation-container",children:jsxRuntimeExports.jsx("div",{className:"date-dd-mm-yyy",children:jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:CR_MODAL_FIELDS.TREATMENT_DATE.NAME,title:CR_MODAL_FIELDS.TREATMENT_DATE_HEADING,children:[jsxRuntimeExports.jsxs("div",{className:"treatment-date",children:[isUs()?jt:$t,isUs()?$t:jt,jsxRuntimeExports.jsx(DropDownROYear,{id:`${CR_MODAL_FIELDS.TREATMENT_DATE_RAW_YEAR.NAME}-${Ft}`,menuPlacement:"top",value:Bt.treatmentRawYear,onChange:Wt=>{zt(Ft,"treatmentRawYear",Wt)}})]}),jsxRuntimeExports.jsx("div",{"data-test-id":"date-hint-text",className:"example-text",children:CR_MODAL_FIELDS.TREATMENT_DATE_EXAMPLE_TEXT})]})})})},qt=(Bt,Ft)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ct("hospital",CR_MODAL_FIELDS.HOSPITAL,Bt,Ft),Ct("doctor",CR_MODAL_FIELDS.DOCTOR,Bt,Ft,!1),Ct("bodyPart",CR_MODAL_FIELDS.BODY,Bt,Ft),kt(Bt,Ft)]}),Nt=(Bt,Ft)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Dt("stage",CR_MODAL_FIELDS.STAGE,Bt,pt,Ft),Ct("doctor",CR_MODAL_FIELDS.DOCTOR,Bt,Ft,!1),Tt(Bt,Ft)]}),Yt=(Bt,Ft)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ct("medication",CR_MODAL_FIELDS.HORMONAL,Bt,Ft),kt(Bt,Ft)]}),Kt=(Bt,Ft)=>Ct("other",CR_MODAL_FIELDS.OTHER,Bt,Ft),Jt=(Bt,Ft)=>{switch(resolveListDataValue(Bt.treatmentType,dt)){case TREATMENT_TYPES.RADIATION_THERAPY:return qt(Bt,Ft);case TREATMENT_TYPES.CHEMOTHERAPY:case TREATMENT_TYPES.IMMUNOTHERAPY:return Nt(Bt,Ft);case TREATMENT_TYPES.HORMONAL_THERAPY:return isUs()?Yt(Bt,Ft):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});case TREATMENT_TYPES.OTHER:return Kt(Bt,Ft);default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}},Qt=()=>{const Bt=(Mt==null?void 0:Mt.length)===1,Ft=Mt.map(($t,jt)=>jsxRuntimeExports.jsxs(StyledCancerSection,{"data-testid":`treatment-section-${jt}`,children:[jsxRuntimeExports.jsx(StyledTreatmentTitle,{children:`Treatment ${jt+1}`}),Dt("treatmentType",CR_MODAL_FIELDS.TREATMENT_TYPE,$t,dt,jt),Jt($t,jt),!Bt&&renderRemoveItem("Remove treatment",()=>{vt([...Mt].filter(Wt=>Wt.id!==$t.id))})]},jt));return jsxRuntimeExports.jsxs(Stack$5,{width:1,children:[jsxRuntimeExports.jsx(MoreInfoText,{showIcon:!1,moreInfoText:"Please start with the most recent diagnosis"}),It("cancerType",CR_MODAL_FIELDS.CANCER_TYPE,mt,!0),isUs()&&It("cancerStage",CR_MODAL_FIELDS.CANCER_STAGE,mt,!0),Ft,renderAdditionalItem("Add another treatment",()=>{mt&&vt($t=>[...$t,DEFAULT_TREATMENT_ITEM])})]})};return jsxRuntimeExports.jsx(StandardDialog,{title:"Enter Cancer Type",open:tt||!1,maxWidth:"sm",fullWidth:!0,onClose:At,onSubmit:Rt,submitText:"Add",children:Qt()})},CRUD_OPERATION$4={CREATE:"CREATE",DELETE:"DELETE"},OTHER$1="Other",HAMedicalHistoryCancer=et=>{const{medicalHistoryCancer:tt,autosave:rt,performCRUD:nt,refetch:lt,treatmentTypesRefData:ut,treatmentStagesRefData:dt,familyMemberRefData:pt,patientId:ht,validateOnLoad:mt}=et,xt=()=>{if(mt){const Zt=new Set(["previousCancer","otherRadiotherapy","familyHistory","familyHistoryAnswer"]);return Object.keys(tt).forEach(function(Xt){Array.isArray(tt[Xt])&&tt[Xt].forEach(function(er,nr){Object.keys(er).forEach(function(or){if(or!=="id"&&or!=="__typename"){const rr=nr+1;Zt.add(Xt+"-"+rr+"-"+or)}})})}),Zt}return new Set},[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(!1),[Rt,zt]=reactExports.useState(void 0),[Tt,Ct]=reactExports.useState(void 0),[It,Dt]=reactExports.useState(xt()),kt=usePrevious$2(tt),[qt,{loading:Nt}]=useMutation(ADD_FAMILY_HISTORY,{refetchQueries:["HealthAssessment"],onCompleted:Zt=>{At(!0),Ct(Zt.addFamilyHistory.usFamilyHistory.id)}}),[Yt,{loading:Kt}]=useMutation(DELETE_FAMILY_HISTORY,{refetchQueries:["HealthAssessment"]});reactExports.useEffect(()=>{const Zt=tt.cancer,Xt=kt==null?void 0:kt.cancer;(Zt==null?void 0:Zt.length)>(Xt==null?void 0:Xt.length)&&(vt(!0),zt(Zt[Zt.length-1].id))},[tt]);const Jt=Zt=>Zt==="YES",Qt=()=>tt.cancer.map((Zt,Xt)=>{const er=tt.cancer.length===1;return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("div",{className:"flex previous-cancer-list",children:[jsxRuntimeExports.jsxs("div",{className:"flex details-container",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cancer-condition",children:Zt.cancerType}),jsxRuntimeExports.jsx("div",{className:"cancer-types",children:Ft(Zt)})]}),jsxRuntimeExports.jsxs("div",{className:"flex edit-cancer",role:"button",onClick:()=>{vt(!0),zt(Zt.id)},children:["Edit"," ",jsxRuntimeExports.jsx(SvgEdit,{className:"icon edit-pencil"})]})]}),!er&&jsxRuntimeExports.jsx("div",{className:"delete-cancer",onClick:()=>{nt(tt.id,CRUD_OPERATION$4.DELETE,"cancer",Zt.id,lt)},children:jsxRuntimeExports.jsx(CloseIcon,{color:"primary",className:"icon"})})]},`cancerList=${Xt}`)},`cancerList-${Xt}`)}),Bt=()=>{var or,rr;const Zt=tt.usFamilyHistory.length===1,Xt=cr=>{const ir=resolveListDataValue(cr==null?void 0:cr.familyMember,pt);return ir===OTHER$1&&cr.other?cr.other:ir},er=(or=tt==null?void 0:tt.usFamilyHistory)==null?void 0:or.map(cr=>Xt(cr)),nr=[];return(rr=tt==null?void 0:tt.usFamilyHistory)==null?void 0:rr.map((cr,ir)=>{const dr=Xt(cr);let gr=dr;if(er.filter(br=>br===dr).length>1){const br=nr.filter(ar=>ar===dr).length+1;nr.push(dr),gr=`${gr} ${br}`}return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("div",{className:"flex previous-cancer-list",children:[jsxRuntimeExports.jsxs("div",{className:"flex details-container",children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cancer-condition",children:gr}),jsxRuntimeExports.jsx("div",{className:"cancer-types",children:cr==null?void 0:cr.cancerType})]}),jsxRuntimeExports.jsxs("div",{className:"flex edit-cancer",role:"button",onClick:()=>{At(!0),Ct(cr.id)},children:["Edit"," ",jsxRuntimeExports.jsx(SvgEdit,{className:"icon edit-pencil"})]})]}),!Zt&&jsxRuntimeExports.jsx("div",{className:"delete-cancer",onClick:()=>{Kt||Yt({variables:{id:cr.id,patientId:ht}})},children:jsxRuntimeExports.jsx(CloseIcon,{color:"primary",className:"icon"})})]},`familyHistory-${ir}`)},`familyHistoryParent-${ir}`)})},Ft=Zt=>Zt.treatment.map((Xt,er)=>jsxRuntimeExports.jsx("div",{children:resolveListDataValue(Xt.treatmentType,ut)},`treatmentForCancer-${er}`)),$t=(Zt,Xt)=>jsxRuntimeExports.jsxs("div",{className:"additional-item-button",onClick:()=>Xt(),children:[jsxRuntimeExports.jsx(AddIcon$1,{className:"icon",color:"primary"}),Zt]}),jt=()=>{const Zt=tt.otherRadiotherapyConditions.map((Xt,er)=>Vt(er,nr=>{rt({id:parseInt(ht),otherRadiotherapyConditions:{id:Xt.id,...nr}},Xt.id)},()=>{nt(tt.id,CRUD_OPERATION$4.DELETE,"otherRadiotherapy",Xt.id,lt)}));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Zt,$t("Add another condition",()=>{nt(tt.id,CRUD_OPERATION$4.CREATE,"otherRadiotherapy",void 0,lt)})]})},Wt=()=>jsxRuntimeExports.jsx(FormSegmentField$1,{title:CR_FIELDS.HISTORY.DETAILS.TITLE,htmlFor:CR_FIELDS.HISTORY.DETAILS.NAME,children:jsxRuntimeExports.jsx(FreeTextArea,{inputName:CR_FIELDS.HISTORY.DETAILS.NAME,defaultValue:tt.familyHistoryAnswer,placeholder:"",onBlur:Zt=>{Ht({id:parseInt(ht),familyHistoryAnswer:Zt.target.value},CR_FIELDS.HISTORY.DETAILS.NAME,!1)}})}),Ut=(Zt,Xt,er,nr)=>{const or=`${Xt}-${Zt+1}`,rr=`${appendZeroInFront(er[Zt].treatmentRawDay)}${appendZeroInFront(er[Zt].treatmentRawMonth)}${er[Zt].treatmentRawYear}`;er[Zt].treatmentDate=rr;const cr=jsxRuntimeExports.jsx(DropDownRODay,{id:`${or}-day`,value:er[Zt].treatmentRawDay,onChange:dr=>{const gr={condition:er[Zt].condition,hospital:er[Zt].hospital,doctor:er[Zt].doctor,bodyPart:er[Zt].bodyPart,treatmentRawDay:dr,treatmentRawMonth:er[Zt].treatmentRawMonth,treatmentRawYear:er[Zt].treatmentRawYear};nr(gr),Gt(or+"-treatmentRawDay")},selectedMonth:parseInt(er[Zt].treatmentRawMonth),selectedYear:parseInt(er[Zt].treatmentRawYear)}),ir=jsxRuntimeExports.jsx(DropDownROMonth,{id:`${or}-month`,value:parseInt(er[Zt].treatmentRawMonth)>0?Months[parseInt(er[Zt].treatmentRawMonth)-1]:"",onChange:dr=>{const gr=Months.indexOf(dr)>=0?Months.indexOf(dr)+1:"",br={condition:er[Zt].condition,hospital:er[Zt].hospital,doctor:er[Zt].doctor,bodyPart:er[Zt].bodyPart,treatmentRawDay:er[Zt].treatmentRawDay,treatmentRawMonth:gr.toString(),treatmentRawYear:er[Zt].treatmentRawYear};nr(br),Gt(or+"-treatmentRawMonth")},selectedYear:parseInt(er[Zt].treatmentRawYear)});return jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Date of treatment",htmlFor:or,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:"Please enter date if known",children:jsxRuntimeExports.jsxs("div",{className:"dob-fields",children:[isUs()?ir:cr,isUs()?cr:ir,jsxRuntimeExports.jsx(DropDownROYear,{id:`${or}-year`,value:er[Zt].treatmentRawYear,onChange:dr=>{const gr={condition:er[Zt].condition,hospital:er[Zt].hospital,doctor:er[Zt].doctor,bodyPart:er[Zt].bodyPart,treatmentRawDay:er[Zt].treatmentRawDay,treatmentRawMonth:er[Zt].treatmentRawMonth,treatmentRawYear:dr};nr(gr),Gt(or+"-treatmentRawYear")}})]})})})},Vt=(Zt,Xt,er)=>{const nr="otherRadiotherapyConditions",or="Condition",rr=`${nr}-${Zt+1}`,cr=lodash.cloneDeep(tt.otherRadiotherapyConditions),ir=tt.otherRadiotherapyConditions.length!==1;return jsxRuntimeExports.jsxs("div",{className:"infinite-dropdown-item",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:rr,title:`${or} ${Zt+1}`,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:cr[Zt].condition,inputName:`${rr}-condition`,inputType:"text",defaultValue:cr[Zt].condition,onBlur:dr=>{const gr={condition:dr.target.value,hospital:cr[Zt].hospital,doctor:cr[Zt].doctor,bodyPart:cr[Zt].bodyPart,treatmentRawDay:cr[Zt].treatmentRawDay,treatmentRawMonth:cr[Zt].treatmentRawMonth,treatmentRawYear:cr[Zt].treatmentRawYear};Gt(`${rr}-condition`),Xt(gr)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:rr,title:"Name of clinic/hospital",children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:cr[Zt].hospital,inputName:`${rr}-hospital`,inputType:"text",defaultValue:cr[Zt].hospital,onBlur:dr=>{const gr={condition:cr[Zt].condition,hospital:dr.target.value,doctor:cr[Zt].doctor,bodyPart:cr[Zt].bodyPart,treatmentRawDay:cr[Zt].treatmentRawDay,treatmentRawMonth:cr[Zt].treatmentRawMonth,treatmentRawYear:cr[Zt].treatmentRawYear};Gt(`${rr}-hospital`),Xt(gr)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:rr,title:"Doctor",children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:cr[Zt].doctor,inputName:`${rr}-doctor`,inputType:"text",defaultValue:cr[Zt].doctor,onBlur:dr=>{const gr={condition:cr[Zt].condition,hospital:cr[Zt].hospital,doctor:dr.target.value,bodyPart:cr[Zt].bodyPart,treatmentRawDay:cr[Zt].treatmentRawDay,treatmentRawMonth:cr[Zt].treatmentRawMonth,treatmentRawYear:cr[Zt].treatmentRawYear};Gt(`${rr}-doctor`),Xt(gr)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:rr,title:"What part of your body?",children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:"e.g. left hand, nose, left side of neck",children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:cr[Zt].bodyPart,inputName:`${rr}-bodyPart`,inputType:"text",defaultValue:cr[Zt].bodyPart,onBlur:dr=>{const gr={condition:cr[Zt].condition,hospital:cr[Zt].hospital,doctor:cr[Zt].doctor,bodyPart:dr.target.value,treatmentDate:cr[Zt].treatmentDate,treatmentRawDay:cr[Zt].treatmentRawDay,treatmentRawMonth:cr[Zt].treatmentRawMonth,treatmentRawYear:cr[Zt].treatmentRawYear};Gt(`${rr}-bodyPart`),Xt(gr)}})})}),Ut(Zt,nr,cr,Xt),ir&&jsxRuntimeExports.jsx("div",{className:"remove-item",children:jsxRuntimeExports.jsxs("div",{onClick:()=>{er()},children:[jsxRuntimeExports.jsx(SvgMinusNoFill,{className:"icon"}),"Remove"]})})]},`radiotherapy-${Zt}`)},Ht=async(Zt,Xt,er)=>{await(er?rt(Zt,void 0,lt):rt(Zt)).then(()=>{[...It],Dt(new Set([...It]))})},Gt=Zt=>{const Xt=[...It];Xt.push(Zt),Dt(new Set(Xt))};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:`Medical history: ${isUs()?"1":"cancer"}`,idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-medical-history-cancer",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:CR_FIELDS.CANCER.NAME,title:CR_FIELDS.CANCER.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:CR_FIELDS.CANCER.NAME,options:SegementedInputYesNoUnsure,defaultSelected:tt.previousCancer,itemSelected:Zt=>{const Xt=Zt.id;tt.previousCancer!==Xt&&Ht({id:parseInt(ht),previousCancer:Xt},CR_FIELDS.CANCER.NAME,lt)}})}),jsxRuntimeExports.jsx(HAMedicalHistoryCancerModal,{medicalHistoryCancer:tt,dismissModal:()=>vt(!1),selectedCancerId:Rt,treatmentTypesRefData:ut,treatmentStagesRefData:dt,patientId:ht,isOpen:!!(Mt&&Rt)}),tt.previousCancer==="YES"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Qt(),$t("Add another cancer",()=>{nt(tt.id,CRUD_OPERATION$4.CREATE,"cancer",void 0,lt)})]}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:CR_FIELDS.RADIOTHERAPY.NAME,title:CR_FIELDS.RADIOTHERAPY.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:CR_FIELDS.RADIOTHERAPY.INFO,showIcon:!0,showInfo:tt.otherRadiotherapy==="YES",children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:CR_FIELDS.RADIOTHERAPY.NAME,options:SegementedInputYesNoUnsure,defaultSelected:tt.otherRadiotherapy,itemSelected:Zt=>{const Xt=Zt.id;tt.otherRadiotherapy!==Xt&&Ht({id:parseInt(ht),otherRadiotherapy:Xt},CR_FIELDS.RADIOTHERAPY.NAME,lt)}})})}),Jt(tt.otherRadiotherapy)&&jt(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:CR_FIELDS.HISTORY.NAME,title:CR_FIELDS.HISTORY.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:CR_FIELDS.HISTORY.NAME,options:SegementedInputYesNoUnsure,defaultSelected:tt.familyHistory,itemSelected:Zt=>{const Xt=Zt.id;tt.familyHistory!==Xt&&(Ht({id:parseInt(ht),familyHistory:Xt},CR_FIELDS.CANCER.KEY,lt),isUs()&&Xt==="YES"&&!Nt&&qt({variables:{haId:tt.id,patientId:ht}}))}})}),isUs()&&tt.familyHistory==="YES"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Bt(),$t("Add another family member",()=>{Nt||qt({variables:{haId:tt.id,patientId:ht}})})]}),!isUs()&&Jt(tt.familyHistory)&&Wt()]})]})},logger$D=new Logger("HAMedicalHistoryCancerApollo");class HAMedicalHistoryCancerApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"autosave",(rt,nt,lt,ut)=>{const{mutateGraph:dt,client:pt,getSaveStatus:ht,updateSaveStatus:mt}=this.props;return dt(pt,rt,()=>{ht(pt).then(xt=>{mt(xt)})},()=>{},()=>{},async()=>{const xt=await ht(pt);if(mt(xt),lt!==void 0)try{lt()}catch(Mt){logger$D.debug("Refetch failed",Mt)}},nt,void 0,ut)});Nr(this,"performOperation",(rt,nt,lt,ut,dt,pt)=>{const{mutateCRUDGraph:ht,client:mt,getSaveStatus:xt,updateSaveStatus:Mt}=this.props,vt={haId:rt,objectType:lt,operation:nt};pt&&(vt.relatedObjectId=pt),ut!==void 0&&ut!==""&&(vt.id=ut),ht(mt,vt,()=>{xt(mt).then(Ot=>{Mt(Ot)})},()=>{},()=>{},async()=>{const Ot=await xt(mt);if(Mt(Ot),dt!==void 0)try{dt()}catch(At){logger$D.debug("Refetch failed",At)}})});Nr(this,"manualSortListData",(rt,nt,lt=!0)=>{const ut=[];for(const dt of rt){const pt=nt.find(ht=>ht.name===dt);pt&&(ut.push(pt),nt=nt.filter(ht=>ht.name!==dt))}return lt?ut.concat(nt):ut});this.state={selectedCancer:void 0}}render(){const{match:{params:{patientId:rt}},validateOnLoad:nt}=this.props;return jsxRuntimeExports.jsx(Query,{query:HA_MEDICAL_HISTORY_CANCER_QUERY,variables:{patientId:rt},children:({error:lt,loading:ut,data:dt,refetch:pt,networkStatus:ht})=>{const{setError:mt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(lt)return mt()},[lt]),ut&&ht!==NetworkStatus.refetch)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(dt&&dt.healthAssessment){const xt=new HACancerItem().loadData(dt.healthAssessment),Mt=["Surgery","Radiation therapy","Chemotherapy","Immunotherapy","Hormonal therapy","Brachytherapy","Theranostics","None - observation","Other","Unsure"],vt=["Not started","In progress","In-between courses","Completed","Unsure"],Ot=["Father","Mother","Daughter","Son","Brother","Sister","Grandfather","Grandmother","Aunt","Uncle","Cousin","Other"],At=this.manualSortListData(Mt,dt.treatmentTypeRefData),Rt=this.manualSortListData(vt,dt.treatmentStageRefData),zt=this.manualSortListData(Ot,dt.familyMemberRefData,!1);return jsxRuntimeExports.jsx(HAMedicalHistoryCancer,{medicalHistoryCancer:xt,autosave:this.autosave,performCRUD:this.performOperation,treatmentTypesRefData:At,treatmentStagesRefData:Rt,familyMemberRefData:zt,refetch:pt,validateOnLoad:nt,patientId:rt})}return jsxRuntimeExports.jsx("div",{})}})}}const routedComponent$l=withRouter(HAMedicalHistoryCancerApollo),haComponent$7=withHealthAssessment(routedComponent$l),FIELD_NAMES$4={OTHER_MEDICAL_PROBLEMS_TOGGLE:"otherMedicalProblemsBool",OTHER_MEDICAL_PROBLEMS_TEXT:"otherMedicalProblemsInput",ALT_MEDICINE_PROBLEMS_TOGGLE:"alternativeMedBool",ALT_MEDICINE_PROBLEMS_TEXT:"alternativeMedInput"},FIELD_VALIDATION_KEYS$2={MEDICAL_PROBLEMS_BOOL:"otherMedProblemBool",MEDICAL_PROBLEMS_DESCRIPTION:"otherMedProblemDescription",ALT_MEDICINE_BOOL:"altMedicineBool",ALT_MEDICINE_DESCRIPTION:"altMedicineDescription"};class HAOtherMedicalProblems extends reactExports.Component{constructor(rt){super(rt);Nr(this,"validateObject",rt=>{const nt=fetchRules(ValidationKeys.OtherMedicalProblems,this.state.viewedFields);return validate(rt,nt,{fullMessages:!1})});Nr(this,"autoSaveAndValidate",async(rt,nt)=>{const{autosave:lt}=this.props;await lt(rt).then(()=>{const ut=[...this.state.viewedFields];ut.push(nt),this.setState({viewedFields:new Set(ut)})})});this.state={viewedFields:new Set}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad){const lt=Object.keys(FIELD_VALIDATION_KEYS$2).map(dt=>FIELD_VALIDATION_KEYS$2[dt]);return{viewedFields:new Set(lt)}}return nt}render(){const{haPatientInfo:rt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Other medical problems",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Do you have any other medical problems?",htmlFor:FIELD_NAMES$4.OTHER_MEDICAL_PROBLEMS_TOGGLE,children:jsxRuntimeExports.jsx(SegmentedInput,{options:SegmentedInputBoolean,fieldName:FIELD_NAMES$4.OTHER_MEDICAL_PROBLEMS_TOGGLE,optionAreBoolean:!0,defaultSelected:rt.otherMedProblemBool,itemSelected:nt=>{const lt=nt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),otherMedProblemBool:lt},FIELD_VALIDATION_KEYS$2.MEDICAL_PROBLEMS_BOOL)}})}),this.renderOtherMedicalProblemsDescription(),jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Do you use complementary or alternative medicine?",htmlFor:FIELD_NAMES$4.ALT_MEDICINE_PROBLEMS_TOGGLE,children:jsxRuntimeExports.jsx(SegmentedInput,{options:SegmentedInputBoolean,fieldName:FIELD_NAMES$4.ALT_MEDICINE_PROBLEMS_TOGGLE,optionAreBoolean:!0,defaultSelected:rt.altMedicineBool,itemSelected:nt=>{const lt=nt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),altMedicineBool:lt},FIELD_VALIDATION_KEYS$2.MEDICAL_PROBLEMS_BOOL)}})}),this.renderAltMedicineDescription()]})]})}renderOtherMedicalProblemsDescription(){const{haPatientInfo:rt}=this.props;return rt.otherMedProblemBool?jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Other medical problems description",htmlFor:FIELD_NAMES$4.OTHER_MEDICAL_PROBLEMS_TEXT,children:jsxRuntimeExports.jsx(FreeTextArea,{inputName:FIELD_NAMES$4.OTHER_MEDICAL_PROBLEMS_TEXT,defaultValue:rt.otherMedProblemDescription,placeholder:"",onBlur:nt=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),otherMedProblemDescription:nt.target.value},FIELD_VALIDATION_KEYS$2.MEDICAL_PROBLEMS_DESCRIPTION)}})}):jsxRuntimeExports.jsx(reactExports.Fragment,{})}renderAltMedicineDescription(){const{haPatientInfo:rt}=this.props;return rt.altMedicineBool?jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Alternative medicine description",htmlFor:FIELD_NAMES$4.ALT_MEDICINE_PROBLEMS_TEXT,children:jsxRuntimeExports.jsx(FreeTextArea,{inputName:FIELD_NAMES$4.ALT_MEDICINE_PROBLEMS_TEXT,defaultValue:rt.altMedicineDescription,placeholder:"",onBlur:nt=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),altMedicineDescription:nt.target.value},FIELD_VALIDATION_KEYS$2.ALT_MEDICINE_DESCRIPTION)}})}):jsxRuntimeExports.jsx(reactExports.Fragment,{})}}const HEALTH_ASSESMENT_QUERY$2=gql`
  query HealthAssessment($id: ID!) {
    healthAssessment(id: $id) {
      id
      patient {
        id
        fullName
        dob
      }
      otherMedProblemBool
      otherMedProblemDescription
      altMedicineBool
      altMedicineDescription
    }
  }
`;class HAOtherMedicalProblemsApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"autosave",rt=>{const{mutateGraph:nt,client:lt,getSaveStatus:ut,updateSaveStatus:dt}=this.props;return nt(lt,rt,()=>{ut(lt).then(pt=>{dt(pt)})},()=>{},()=>{},async()=>{const pt=await ut(lt);dt(pt)})})}render(){const{match:{params:{patientId:rt}},validateOnLoad:nt}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:HEALTH_ASSESMENT_QUERY$2,variables:{id:rt},children:({loading:lt,data:ut,error:dt})=>{const{setError:pt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(dt)return pt()},[dt]),lt)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(ut&&ut.healthAssessment){const ht=new HAOtherMedicalProblemsItem;return ht.loadData(ut.healthAssessment),jsxRuntimeExports.jsx(HAOtherMedicalProblems,{patientId:rt,autosave:this.autosave,haPatientInfo:ht,validateOnLoad:nt})}return jsxRuntimeExports.jsx("div",{})}})})}}const routedComponent$k=withRouter(HAOtherMedicalProblemsApollo),haComponent$6=withHealthAssessment(routedComponent$k),CRUD_OPERATION$3={CREATE:"CREATE",DELETE:"DELETE"};class HAMedicalHistoryIllness extends reactExports.Component{constructor(rt){super(rt);Nr(this,"shouldDisplayDynamic",rt=>rt==="YES");Nr(this,"clearDynamicViewedFields",rt=>{const{viewedFields:nt}=this.state;let lt="";switch(rt){case"internalDevice":lt="internalDevices-";break;case"diabetes":lt="diabetesResponses-";break;case"intractableInfectionOrIllness":lt="intractableInfectionOrIllnesses-";break;case"immunosuppressiveCondition":lt="immunosuppressiveCondition-";break}const ut=nt;for(let dt=ut.values(),pt=null;pt=dt.next().value;)pt.includes(lt)&&ut.delete(pt);this.setState({viewedFields:ut})});Nr(this,"renderDeviceSelection",()=>{const{medicalHistoryIllness:rt,deviceRefData:nt,autosave:lt,performCRUD:ut,refetch:dt,patientId:pt}=this.props,ht=rt.internalDevices.map((mt,xt)=>{let Mt=!1;return rt.internalDevices.length!==1&&(Mt=!0),this.renderExpandableElement(xt,"internalDevices","Implanted/artificial internal device",rt.internalDevices,lodash.cloneDeep(nt),vt=>{lt({id:parseInt(pt),internalDevices:{id:mt.id,...vt}},mt.id)},()=>{ut(rt.id,CRUD_OPERATION$3.DELETE,"internalDevice",mt.id,dt)},Mt)});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ht,this.renderAdditionalItem("Add another device",()=>{ut(rt.id,CRUD_OPERATION$3.CREATE,"internalDevice",void 0,dt)})]})});Nr(this,"renderAdditionalItem",(rt,nt)=>jsxRuntimeExports.jsxs("div",{className:"additional-item-button",onClick:()=>{nt()},children:[jsxRuntimeExports.jsx(AddIcon$1,{color:"primary",className:"icon"}),rt]}));Nr(this,"renderClotSelection",()=>{const{medicalHistoryIllness:rt,patientId:nt}=this.props;return jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:ILL_FIELDS.CLOT.DETAIL.NAME,title:ILL_FIELDS.CLOT.DETAIL.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:ILL_FIELDS.CLOT.DETAIL.NAME,defaultValue:rt.bloodClotAnswer,onBlur:lt=>{this.autoSaveAndValidate({id:parseInt(nt),bloodClotAnswer:lt.target.value},ILL_FIELDS.CLOT.DETAIL.KEY,this.props.refetch)}})})});Nr(this,"renderProblemsSelection",()=>{const{medicalHistoryIllness:rt,patientId:nt}=this.props;return jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:ILL_FIELDS.PROBLEMS.DETAIL.NAME,title:ILL_FIELDS.PROBLEMS.DETAIL.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:ILL_FIELDS.PROBLEMS.DETAIL.NAME,defaultValue:rt.heartOrLungAnswer,onBlur:lt=>{this.autoSaveAndValidate({id:parseInt(nt),heartOrLungAnswer:lt.target.value},ILL_FIELDS.PROBLEMS.DETAIL.KEY,this.props.refetch)}})})});Nr(this,"renderPressureSelection",()=>{const{medicalHistoryIllness:rt,patientId:nt}=this.props,lt=[{id:"LOW",name:"Low"},{id:"HIGH",name:"High"}];return jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:ILL_FIELDS.PRESSURE.DETAIL.NAME,title:ILL_FIELDS.PRESSURE.DETAIL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{options:lt,fieldName:ILL_FIELDS.PRESSURE.DETAIL.NAME,defaultSelected:rt.bloodPressureAnswer,itemSelected:ut=>{typeof ut=="object"&&this.autoSaveAndValidate({id:parseInt(nt),bloodPressureAnswer:ut.id},ILL_FIELDS.PRESSURE.DETAIL.KEY,this.props.refetch)}})})});Nr(this,"renderDiabetesSelection",()=>{const{medicalHistoryIllness:rt,diabetesRefData:nt,autosave:lt,performCRUD:ut,refetch:dt,patientId:pt}=this.props,ht=rt.diabetesResponses.map((mt,xt)=>{let Mt=!1;return rt.diabetesResponses.length!==1&&(Mt=!0),this.renderExpandableElement(xt,"diabetesResponses","Diabetes",rt.diabetesResponses,lodash.cloneDeep(nt),vt=>{lt({id:parseInt(pt),diabetesResponses:{id:mt.id,...vt}},mt.id)},()=>{ut(rt.id,CRUD_OPERATION$3.DELETE,"diabetes",mt.id,dt)},Mt)});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ht,this.renderAdditionalItem("Add another diabetes type",()=>{ut(rt.id,CRUD_OPERATION$3.CREATE,"diabetes",void 0,dt)})]})});Nr(this,"renderResistantSelection",()=>{const{medicalHistoryIllness:rt,resistantRefData:nt,autosave:lt,performCRUD:ut,refetch:dt,patientId:pt}=this.props,ht=rt.intractableInfectionOrIllnesses.map((mt,xt)=>{let Mt=!1;return rt.intractableInfectionOrIllnesses.length!==1&&(Mt=!0),this.renderExpandableElement(xt,"intractableInfectionOrIllnesses","Illness or infection",rt.intractableInfectionOrIllnesses,lodash.cloneDeep(nt),vt=>{lt({id:parseInt(pt),intractableInfectionOrIllnesses:{id:mt.id,...vt}},mt.id)},()=>{ut(rt.id,CRUD_OPERATION$3.DELETE,"intractableInfectionOrIllness",mt.id,dt)},Mt,!0)});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ht,this.renderAdditionalItem("Add another illness or infection",()=>{ut(rt.id,CRUD_OPERATION$3.CREATE,"intractableInfectionOrIllness",void 0,dt)})]})});Nr(this,"renderSuppressiveSelection",()=>{const{medicalHistoryIllness:rt,suppressiveRefData:nt,autosave:lt,performCRUD:ut,refetch:dt,patientId:pt}=this.props,ht=rt.immunosuppressiveConditions.map((mt,xt)=>{let Mt=!1;return rt.immunosuppressiveConditions.length!==1&&(Mt=!0),this.renderExpandableElement(xt,"immunosuppressiveConditions","Condition or disease",rt.immunosuppressiveConditions,lodash.cloneDeep(nt),vt=>{lt({id:parseInt(pt),immunosuppressiveConditions:{id:mt.id,...vt}},mt.id)},()=>{ut(rt.id,CRUD_OPERATION$3.DELETE,"immunosuppressiveCondition",mt.id,dt)},Mt)});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ht,this.renderAdditionalItem("Add another condition or disease",()=>{ut(rt.id,CRUD_OPERATION$3.CREATE,"immunosuppressiveCondition",void 0,dt)})]})});Nr(this,"renderExpandableElement",(rt,nt,lt,ut,dt,pt,ht,mt=!0,xt=!1)=>{const Mt=`${nt}-${rt+1}`,vt=dt.filter(At=>At.name.toLowerCase().trim()==="other")[0].id,Ot=dt.map(At=>At.name.toLowerCase().trim()).indexOf("other");if(Ot!==dt.length){const At=dt.splice(Ot,1);dt.push(At[0])}return jsxRuntimeExports.jsxs("div",{className:"infinite-dropdown-item",children:[jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:Mt,title:`${lt} ${rt+1}`,children:[jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:ILL_FIELDS.DEVICES.PACEMAKER_INFO,showIcon:!0,showInfo:resolveListDataValue(ut[rt].value,dt)==="Pacemaker",children:jsxRuntimeExports.jsx(DropDownField,{inputName:Mt,placeholder:"Please select",options:dt,defaultValue:ut[rt].value,controlled:!0,onChange:At=>{let Rt={};At.target.value===vt?Rt={value:At.target.value}:Rt={value:At.target.value,other:""},pt(Rt)}})}),ut[rt].value===vt&&jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:ut[rt].other,inputName:`${Mt}-other`,placeholder:"Please describe",inputType:"text",defaultValue:ut[rt].other,onBlur:At=>{const Rt={value:ut[rt].value,other:At.target.value};this.addToViewedFields(`${Mt}-other`),pt(Rt)}}),xt&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:ILL_FIELDS.RESISTANT.PERMISSION.NAME,title:ILL_FIELDS.RESISTANT.PERMISSION.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:ILL_FIELDS.RESISTANT.PERMISSION.NAME,options:SegementedInputYesNoUnsure,defaultSelected:ut[rt].doctorClearance,itemSelected:At=>{const Rt=ut[rt].other,zt=ut[rt].value;let Tt="";typeof At!="boolean"&&(Tt=At.name.toUpperCase()),pt({value:zt,other:Rt,doctorClearance:Tt}),this.forceUpdate()}})})]}),mt&&jsxRuntimeExports.jsx("div",{className:"remove-item",children:jsxRuntimeExports.jsxs("div",{onClick:()=>{ht()},children:[jsxRuntimeExports.jsx(SvgMinusNoFill,{className:"icon"}),"Remove"]})})]},Mt)});Nr(this,"autoSaveAndValidate",async(rt,nt,lt)=>{const{autosave:ut,refetch:dt}=this.props;await(lt?ut(rt,void 0,dt):ut(rt)).then(()=>{const ht=[...this.state.viewedFields];ht.push(nt),this.setState({viewedFields:new Set(ht)})})});Nr(this,"addToViewedFields",rt=>{const nt=[...this.state.viewedFields];nt.push(rt),this.setState({viewedFields:new Set(nt)})});Nr(this,"validateObject",rt=>{const nt=fetchRules(ValidationKeys.MedicalIllness,this.state.viewedFields);return validate(rt,nt,{fullMessages:!1})});this.state={viewedFields:new Set}}static getDerivedStateFromProps(rt,nt){const{medicalHistoryIllness:lt}=rt;if(rt.validateOnLoad&&nt.viewedFields.size<1){const ut=Object.entries(ILL_FIELDS).map(pt=>pt[1].KEY);ut.push("bloodClotAnswer","heartOrLungAnswer","bloodPressureAnswer");const dt=new Set(ut);return dt.add(ILL_FIELDS.RESISTANT.PERMISSION.NAME),Object.keys(lt).forEach(function(pt){Array.isArray(lt[pt])&&lt[pt].forEach(function(ht,mt){Object.keys(ht).forEach(function(xt){if(xt!=="id"&&xt!=="__typename"){const Mt=mt+1;dt.add(pt+"-"+Mt+"-"+xt)}})})}),{viewedFields:dt}}return nt}render(){const{medicalHistoryIllness:rt,patientId:nt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Medical history: illness",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-medical-history-illness",children:[jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:ILL_FIELDS.DEVICES.NAME,title:ILL_FIELDS.DEVICES.TITLE,children:[jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:ILL_FIELDS.DEVICES.INFO,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:ILL_FIELDS.DEVICES.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.internalDevice,itemSelected:lt=>{const ut=lt.id;ut!=="Yes"&&this.clearDynamicViewedFields("internalDevice"),rt.internalDevice!==ut&&this.autoSaveAndValidate({id:parseInt(nt),internalDevice:ut},ILL_FIELDS.DEVICES.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.internalDevice)&&this.renderDeviceSelection()]}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:ILL_FIELDS.CLOT.NAME,title:ILL_FIELDS.CLOT.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:ILL_FIELDS.CLOT.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.bloodClot,itemSelected:lt=>{const ut=lt.id;rt.bloodClot!==ut&&this.autoSaveAndValidate({id:parseInt(nt),bloodClot:ut},ILL_FIELDS.CLOT.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.bloodClot)&&this.renderClotSelection(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:ILL_FIELDS.PROBLEMS.NAME,title:ILL_FIELDS.PROBLEMS.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:ILL_FIELDS.PROBLEMS.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.heartOrLungProblem,itemSelected:lt=>{const ut=lt.id;rt.heartOrLungProblem!==ut&&this.autoSaveAndValidate({id:parseInt(nt),heartOrLungProblem:ut},ILL_FIELDS.PROBLEMS.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.heartOrLungProblem)&&this.renderProblemsSelection(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:ILL_FIELDS.PRESSURE.NAME,title:ILL_FIELDS.PRESSURE.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:ILL_FIELDS.PRESSURE.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.highOrLowBloodPressure,itemSelected:lt=>{const ut=lt.id;rt.highOrLowBloodPressure!==ut&&this.autoSaveAndValidate({id:parseInt(nt),highOrLowBloodPressure:ut},ILL_FIELDS.PRESSURE.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.highOrLowBloodPressure)&&this.renderPressureSelection(),jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:ILL_FIELDS.DIABETES.NAME,title:ILL_FIELDS.DIABETES.TITLE,children:[jsxRuntimeExports.jsx(SegmentedInput,{fieldName:ILL_FIELDS.DIABETES.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.diabetes,itemSelected:lt=>{const ut=lt.id;ut!=="Yes"&&this.clearDynamicViewedFields("diabetes"),rt.diabetes!==ut&&this.autoSaveAndValidate({id:parseInt(nt),diabetes:ut},ILL_FIELDS.DIABETES.KEY,this.props.refetch)}}),this.shouldDisplayDynamic(rt.diabetes)&&this.renderDiabetesSelection()]}),jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:ILL_FIELDS.RESISTANT.NAME,title:ILL_FIELDS.RESISTANT.TITLE,children:[jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:ILL_FIELDS.RESISTANT.INFO,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:ILL_FIELDS.RESISTANT.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.intractableInfectionOrIllness,itemSelected:lt=>{const ut=lt.id;ut!=="Yes"&&this.clearDynamicViewedFields("intractableInfectionOrIllness"),rt.intractableInfectionOrIllness!==ut&&this.autoSaveAndValidate({id:parseInt(nt),intractableInfectionOrIllness:ut},ILL_FIELDS.RESISTANT.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.intractableInfectionOrIllness)&&this.renderResistantSelection()]}),jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:ILL_FIELDS.SUPPRESSIVE.NAME,title:ILL_FIELDS.SUPPRESSIVE.TITLE,children:[jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:ILL_FIELDS.SUPPRESSIVE.INFO,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:ILL_FIELDS.SUPPRESSIVE.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.immunosuppressiveCondition,itemSelected:lt=>{const ut=lt.id;ut!=="Yes"&&this.clearDynamicViewedFields("immunosuppressiveCondition"),rt.immunosuppressiveCondition!==ut&&this.autoSaveAndValidate({id:parseInt(nt),immunosuppressiveCondition:ut},ILL_FIELDS.SUPPRESSIVE.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.immunosuppressiveCondition)&&this.renderSuppressiveSelection()]})]})]})}}const logger$C=new Logger("HAMedicalHistoryIllnessApollo"),HA_MEDICAL_ILLNESS=gql`
  query HealthAssessment($id: ID!) {
    healthAssessment(id: $id) {
      id
      internalDevice
      internalDevices {
        id
        ...HealthAssessmentInternalDevice
      }
      bloodClot
      bloodClotAnswer
      heartOrLungProblem
      heartOrLungAnswer
      highOrLowBloodPressure
      bloodPressureAnswer
      diabetes
      diabetesResponses {
        id
        ...HealthAssessmentDiabetesResponse
      }
      intractableInfectionOrIllness
      intractableInfectionOrIllnesses {
        id
        ...HealthAssessmentInfection
      }
      immunosuppressiveCondition
      immunosuppressiveConditions {
        id
        ...HealthAssessmentImmunosuppressiveCondition
      }
    }
    diabetesRefData: listData(category: "diabetes") {
      id
      name
    }
    immunosuppresiveConditionsRefData: listData(category: "immunosuppresiveConditions") {
      id
      name
    }
    internalDevicesRefData: listData(category: "internalDevices") {
      id
      name
    }
    intractableInfectionOrIllnessesRefData: listData(category: "intractableInfectionOrIllnesses") {
      id
      name
    }
  }

  ${HEALTH_ASSESSMENT_DIABETES_RESPONSE_FRAGMENT}
  ${HEALTH_ASSESSMENT_IMMUNOSUPPRESSIVE_CONDITION_FRAGMENT}
  ${HEALTH_ASSESSMENT_INFECTION_FRAGMENT}
  ${HEALTH_ASSESSMENT_INTERNAL_DEVICE_FRAGMENT}
`;class HAMedicalHistoryIllnessApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"autosave",(rt,nt,lt)=>{const{mutateGraph:ut,client:dt,getSaveStatus:pt,updateSaveStatus:ht}=this.props;return ut(dt,rt,()=>{pt(dt).then(mt=>{ht(mt)})},()=>{},()=>{},async()=>{const mt=await pt(dt);if(ht(mt),lt!==void 0)try{lt()}catch(xt){logger$C.debug("Refetch failed",xt)}},nt)});Nr(this,"performOperation",(rt,nt,lt,ut,dt)=>{const{mutateCRUDGraph:pt,client:ht,getSaveStatus:mt,updateSaveStatus:xt}=this.props,Mt={haId:rt,objectType:lt,operation:nt};ut!==void 0&&ut!==""&&(Mt.id=ut),pt(ht,Mt,()=>{mt(ht).then(vt=>{xt(vt)})},()=>{},()=>{},async()=>{const vt=await mt(ht);if(xt(vt),dt!==void 0)try{dt()}catch(Ot){logger$C.debug("Refetch failed",Ot)}})})}render(){const{match:{params:{patientId:rt}},validateOnLoad:nt}=this.props;return jsxRuntimeExports.jsx(Query,{query:HA_MEDICAL_ILLNESS,variables:{id:rt},children:({error:lt,loading:ut,data:dt,refetch:pt,networkStatus:ht})=>{const{setError:mt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(lt)return mt()},[lt]),ut&&ht!==NetworkStatus.refetch)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(dt&&dt.healthAssessment){const xt=new HAMedicalHistoryIllnessItem().loadData(dt.healthAssessment);return jsxRuntimeExports.jsx(HAMedicalHistoryIllness,{medicalHistoryIllness:xt,deviceRefData:dt.internalDevicesRefData,resistantRefData:dt.intractableInfectionOrIllnessesRefData,suppressiveRefData:dt.immunosuppresiveConditionsRefData,diabetesRefData:dt.diabetesRefData,autosave:this.autosave,performCRUD:this.performOperation,refetch:pt,validateOnLoad:nt,patientId:rt})}return jsxRuntimeExports.jsx("div",{})}})}}const routedComponent$j=withRouter(HAMedicalHistoryIllnessApollo),haComponent$5=withHealthAssessment(routedComponent$j),UPDATE_HA_ILLNESS=gql`
  mutation UpdateIllness(
    $id: ID!
    $patientId: ID!
    $colonoscopyRawYear: String
    $colonoscopyRawMonth: String
    $colonoscopyRawDay: String
    $chestCtScanRawYear: String
    $chestCtScanRawMonth: String
    $chestCtScanRawDay: String
    $covid19VaccineRawYear: String
    $covid19VaccineRawMonth: String
    $covid19VaccineRawDay: String
    $influenzaVaccineRawYear: String
    $influenzaVaccineRawMonth: String
    $influenzaVaccineRawDay: String
    $pneumoniaVaccineRawYear: String
    $pneumoniaVaccineRawMonth: String
    $pneumoniaVaccineRawDay: String
    $screening: String
    $pastMedicalHistory: String
    $cardiac: String
    $constitutional: String
    $eyesEarsNoseThroat: String
    $gastrointestinal: String
    $genitourinary: String
    $neurological: String
    $psychiatric: String
    $pulmonary: String
    $bonesJoints: String
    $hematologic: String
    $skin: String
  ) {
    updateHaIllness(
      id: $id
      patientId: $patientId
      colonoscopyRawYear: $colonoscopyRawYear
      colonoscopyRawMonth: $colonoscopyRawMonth
      colonoscopyRawDay: $colonoscopyRawDay
      chestCtScanRawYear: $chestCtScanRawYear
      chestCtScanRawMonth: $chestCtScanRawMonth
      chestCtScanRawDay: $chestCtScanRawDay
      covid19VaccineRawYear: $covid19VaccineRawYear
      covid19VaccineRawMonth: $covid19VaccineRawMonth
      covid19VaccineRawDay: $covid19VaccineRawDay
      influenzaVaccineRawYear: $influenzaVaccineRawYear
      influenzaVaccineRawMonth: $influenzaVaccineRawMonth
      influenzaVaccineRawDay: $influenzaVaccineRawDay
      pneumoniaVaccineRawYear: $pneumoniaVaccineRawYear
      pneumoniaVaccineRawMonth: $pneumoniaVaccineRawMonth
      pneumoniaVaccineRawDay: $pneumoniaVaccineRawDay
      screening: $screening
      pastMedicalHistory: $pastMedicalHistory
      cardiac: $cardiac
      constitutional: $constitutional
      eyesEarsNoseThroat: $eyesEarsNoseThroat
      gastrointestinal: $gastrointestinal
      genitourinary: $genitourinary
      neurological: $neurological
      psychiatric: $psychiatric
      pulmonary: $pulmonary
      bonesJoints: $bonesJoints
      hematologic: $hematologic
      skin: $skin
    ) {
      healthAssessment {
        id
        ...HealthAssessmentIllness
      }
    }
  }

  ${HEALTH_ASSESSMENT_ILLNESS_FRAGMENT}
`,PAST_MEDICAL_HISTORY$1={key:"pastMedicalHistory",title:"Past Medical History",subtitle:"Have you been diagnosed with any of the following conditions?",childFields:[{parentKey:"other",key:"otherText",label:"What other?"}]},CARDIAC$1={key:"cardiac",title:"Cardiac",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms related to the heart such as ",jsxRuntimeExports.jsx("b",{children:"Chest pain, irregular heartbeat etc."})]})},CONSTITUTIONAL$1={key:"constitutional",title:"Constitutional",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms that may impact the whole body or the general well-being of an individual such as"," ",jsxRuntimeExports.jsx("b",{children:"fever/chills, fatigue etc."})]}),childFields:[{parentKey:"weightLoss",key:"weightLossCount",label:"How much (pounds)?",inputType:"number"},{parentKey:"weightGain",key:"weightGainCount",label:"How much (pounds)?",inputType:"number"}]},SCREENING$1={key:"screening",title:"Screening",subtitle:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Have you had any of the following screening examinations in the past?"}),childFields:[{parentKey:"chestCtScan",key:"chestCtScan",label:"Date of last CT scan",inputType:"date"},{parentKey:"colonoscopy",key:"colonoscopy",label:"Date of last colonoscopy",inputType:"date"}]},HEMATOLOGIC$1={key:"hematologic",title:"Hematologic",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms related to blood such as ",jsxRuntimeExports.jsx("b",{children:"bleeding, paleness, enlarged lymph nodes etc"})]})},SKIN$1={key:"skin",title:"Skin",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms related to skin such as ",jsxRuntimeExports.jsx("b",{children:"itching, nodule/tumor, rashes"})]})},EYES_EARS_NOSE_THROAT$1={key:"eyesEarsNoseThroat",title:"Eyes/Ears/Nose/Throat",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms such as ",jsxRuntimeExports.jsx("b",{children:"Hearing, vision loss, hoarseness, sinus problems etc."})]})},GASTROINTESTINAL$1={key:"gastrointestinal",title:"Gastrointestinal",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms that may impact the stomach or bowel such as ",jsxRuntimeExports.jsx("b",{children:"reflux, diarrhea, vomitting etc."})]}),childFields:[{parentKey:"colonoscopySigmoidoscopy",key:"colonoscopy",label:"Date (if known)",inputType:"date"}]},GENITOURINARY$1={key:"genitourinary",title:"Genitourinary",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms related to the urinary tract or reproductive system such as"," ",jsxRuntimeExports.jsx("b",{children:"painful urination, erectile dysfunction etc."})]})},NEUROLOGICAL$1={key:"neurological",title:"Neurological",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms related to brain, spinal cord or nerves such as ",jsxRuntimeExports.jsx("b",{children:"dizziness, numbness, seizures etc."})]})},PSYCHIATRIC$1={key:"psychiatric",title:"Psychiatric",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms related to mental health such as ",jsxRuntimeExports.jsx("b",{children:"anxiety, depression etc."})]})},PULMONARY$1={key:"pulmonary",title:"Pulmonary",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms related to lungs such as ",jsxRuntimeExports.jsx("b",{children:"cough, shortness of breath etc."})]}),childFields:[{parentKey:"covidVaccine",key:"covid19Vaccine",label:"Date of vaccination (if known)",inputType:"date"},{parentKey:"influenzaVaccine",key:"influenzaVaccine",label:"Date of vaccination (if known)",inputType:"date"},{parentKey:"pneumoniaVaccine",key:"pneumoniaVaccine",label:"Date of vaccination (if known)",inputType:"date"}]},BONESJOINTS$1={key:"bonesJoints",title:"Bones/joints",subtitle:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Symptoms related to joints and bones ",jsxRuntimeExports.jsx("b",{children:"bone pain, back pain, fractures etc."})]}),childFields:[{parentKey:"brokenBones",key:"brokenBonesCount",label:"How many broken bones?",inputType:"number"}]},medicalIllnessConstants=Object.freeze(Object.defineProperty({__proto__:null,BONESJOINTS:BONESJOINTS$1,CARDIAC:CARDIAC$1,CONSTITUTIONAL:CONSTITUTIONAL$1,EYES_EARS_NOSE_THROAT:EYES_EARS_NOSE_THROAT$1,GASTROINTESTINAL:GASTROINTESTINAL$1,GENITOURINARY:GENITOURINARY$1,HEMATOLOGIC:HEMATOLOGIC$1,NEUROLOGICAL:NEUROLOGICAL$1,PAST_MEDICAL_HISTORY:PAST_MEDICAL_HISTORY$1,PSYCHIATRIC:PSYCHIATRIC$1,PULMONARY:PULMONARY$1,SCREENING:SCREENING$1,SKIN:SKIN$1},Symbol.toStringTag,{value:"Module"})),DateHelpText=styled$1("div")`
{
  width: 322px;
  height: 28px;
  align-items: center;
  color: ${et=>et.theme.palette.text.primary};
  flex: none;
  margin-top: 8px;
`,HAMedicalHistoryIllnessPageUS=()=>{const{patientId:et}=useParams(),[tt,{loading:rt}]=useMutation(UPDATE_HA_ILLNESS),{data:nt}=useQuery(HA_ILLNESS_QUERY,{variables:{patientId:et}});if(!nt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const lt=nt.healthAssessment,ut=lt==null?void 0:lt.id,dt=JSON.parse((lt==null?void 0:lt.pastMedicalHistory)||"{}"),pt=JSON.parse((lt==null?void 0:lt.cardiac)||"{}"),ht=JSON.parse((lt==null?void 0:lt.constitutional)||"{}"),mt=JSON.parse((lt==null?void 0:lt.eyesEarsNoseThroat)||"{}"),xt=JSON.parse((lt==null?void 0:lt.gastrointestinal)||"{}"),Mt=JSON.parse((lt==null?void 0:lt.genitourinary)||"{}"),vt=JSON.parse((lt==null?void 0:lt.neurological)||"{}"),Ot=JSON.parse((lt==null?void 0:lt.psychiatric)||"{}"),At=JSON.parse((lt==null?void 0:lt.pulmonary)||"{}"),Rt=JSON.parse((lt==null?void 0:lt.bonesJoints)||"{}"),zt=JSON.parse((lt==null?void 0:lt.skin)||"{}"),Tt=JSON.parse((lt==null?void 0:lt.hematologic)||"{}"),Ct=JSON.parse((lt==null?void 0:lt.screening)||"{}"),It=(Kt,Jt)=>{tt({variables:{id:ut,patientId:et,[Kt]:Jt}})},Dt=(Kt,Jt,Qt,Bt)=>{Jt[Qt.key]={id:Qt.id,value:Bt,name:Qt.name},It(Kt,JSON.stringify(Jt))},kt=Kt=>{const Jt=`${Kt.key}RawDay`,Qt=`${Kt.key}RawMonth`,Bt=`${Kt.key}RawYear`,Ft={dayField:Jt,monthField:Qt,yearField:Bt,dayValue:lt[Jt],monthValue:parseInt(lt[Qt]),yearValue:lt[Bt],label:Kt.label};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(DateFieldSubform,{onChange:($t,jt)=>It($t,jt.toString()),...Ft}),jsxRuntimeExports.jsx(DateHelpText,{children:"e.g. Jan 31 2007"})]})},qt=(Kt,Jt,Qt)=>{var Bt;return Qt.inputType==="date"?kt(Qt):jsxRuntimeExports.jsx(TextFieldSubform,{value:(Bt=Kt==null?void 0:Kt[Qt.key])==null?void 0:Bt.value,inputName:Qt.key,onChange:Ft=>Dt(Jt,Kt,{id:"-1",key:Qt.key,name:Qt.label},Ft),...Qt})},Nt=(Kt,Jt,Qt=!1)=>{const Bt=nt[`${Jt.key}RefData`]||[];return jsxRuntimeExports.jsx(HAAccordion,{title:Jt.title,subtitle:Jt.subtitle,badgeValue:Yt(Kt),startOpen:Qt,children:Bt==null?void 0:Bt.map(Ft=>{var jt,Wt;const $t=(jt=Jt==null?void 0:Jt.childFields)==null?void 0:jt.find(Ut=>Ft.key===Ut.parentKey);return jsxRuntimeExports.jsx(AccordionCheckboxItem,{label:Ft.name,value:!!((Wt=Kt[Ft.key])!=null&&Wt.value),disabled:rt,onClick:Ut=>{Dt(Jt.key,Kt,Ft,Ut)},children:$t&&qt(Kt,Jt.key,$t)||void 0},Ft.key)})})},Yt=Kt=>Object.keys(Kt).filter(Jt=>{var Qt;return((Qt=Kt[Jt])==null?void 0:Qt.value)===!0}).length;return jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-medical-history-illness",children:[jsxRuntimeExports.jsx(PageTitle,{title:"Medical history: 2",idPrefix:"ha"}),Nt(Ct,SCREENING$1,!0),Nt(dt,PAST_MEDICAL_HISTORY$1),jsxRuntimeExports.jsx("div",{className:"py-3",style:{fontWeight:700,fontSize:"17px",lineHeight:"28px"},children:"Do you have history of any of the following?"}),Nt(pt,CARDIAC$1),Nt(ht,CONSTITUTIONAL$1),Nt(mt,EYES_EARS_NOSE_THROAT$1),Nt(xt,GASTROINTESTINAL$1),Nt(Mt,GENITOURINARY$1),Nt(vt,NEUROLOGICAL$1),Nt(Ot,PSYCHIATRIC$1),Nt(At,PULMONARY$1),Nt(Rt,BONESJOINTS$1),Nt(Tt,HEMATOLOGIC$1),Nt(zt,SKIN$1)]})},CRUD_OPERATION$2={CREATE:"CREATE",DELETE:"DELETE"};class HAMedicalHistoryOther extends reactExports.Component{constructor(rt){super(rt);Nr(this,"validateObject",rt=>{const nt=fetchRules(ValidationKeys.MedicalOther,this.state.viewedFields);return validate(rt,nt,{fullMessages:!1})});Nr(this,"autoSaveAndValidate",async(rt,nt,lt)=>{const{autosave:ut,refetch:dt}=this.props;await(lt?ut(rt,void 0,dt):ut(rt)).then(()=>{const ht=[...this.state.viewedFields];ht.push(nt),this.setState({viewedFields:new Set(ht)})})});Nr(this,"shouldDisplayDynamic",rt=>rt==="YES");Nr(this,"renderExpandableElement",(rt,nt,lt,ut,dt,pt,ht,mt=!0)=>{const xt=`${nt}-${rt+1}`,Mt=dt.filter(Ot=>Ot.name.toLowerCase().trim()==="other")[0].id,vt=dt.map(Ot=>Ot.name.toLowerCase().trim()).indexOf("other");if(vt!==dt.length){const Ot=dt.splice(vt,1);dt.push(Ot[0])}return jsxRuntimeExports.jsxs("div",{className:"infinite-dropdown-item",children:[jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:xt,title:`${lt} ${rt+1}`,children:[jsxRuntimeExports.jsx(DropDownField,{inputName:xt,placeholder:"Please select",options:dt,defaultValue:ut[rt].value,controlled:!0,onChange:Ot=>{let At={};Ot.target.value===Mt?At={value:Ot.target.value}:At={value:Ot.target.value,other:""},pt(At)}}),ut[rt].value===Mt&&jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:ut[rt].other,inputName:`${xt}-other`,placeholder:"Please describe",inputType:"text",defaultValue:ut[rt].other,onBlur:Ot=>{const At={value:Mt,other:Ot.target.value};this.addToViewedFields(`${xt}-other`),pt(At)}})]}),mt&&jsxRuntimeExports.jsxs("div",{className:"remove-item",onClick:()=>{ht()},children:[jsxRuntimeExports.jsx(SvgMinusNoFill,{className:"icon"}),"Remove"]})]},xt)});Nr(this,"renderAdditionalItem",(rt,nt)=>jsxRuntimeExports.jsxs("div",{className:"additional-item-button",onClick:()=>{nt()},children:[jsxRuntimeExports.jsx(AddIcon$1,{className:"icon",color:"primary"}),rt]}));Nr(this,"renderWalkingSelection",()=>{const{medicalHistoryOther:rt,mobilityAidRefData:nt,autosave:lt,performCRUD:ut,refetch:dt,patientId:pt}=this.props,ht=rt.mobilityAids.map((mt,xt)=>{let Mt=!1;return rt.mobilityAids.length!==1&&(Mt=!0),this.renderExpandableElement(xt,"mobilityAids","Mobility aid",rt.mobilityAids,lodash.cloneDeep(nt),vt=>{lt({id:parseInt(pt),mobilityAids:{id:mt.id,...vt}},mt.id)},()=>{ut(rt.id,CRUD_OPERATION$2.DELETE,"mobilityAid",mt.id,dt)},Mt)});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ht,this.renderAdditionalItem("Add another mobility aid",()=>{ut(rt.id,CRUD_OPERATION$2.CREATE,"mobilityAid",void 0,dt)})]})});Nr(this,"renderMentalHealth",()=>{const{medicalHistoryOther:rt,wellbeingIssueRefData:nt,performCRUD:lt,refetch:ut,autosave:dt,patientId:pt}=this.props,ht=rt.wellbeingIssues.map((mt,xt)=>{let Mt=!1;return rt.wellbeingIssues.length!==1&&(Mt=!0),this.renderExpandableElement(xt,"wellbeingIssues","Wellbeing or mental health issue",rt.wellbeingIssues,lodash.cloneDeep(nt),vt=>{dt({id:parseInt(pt),wellbeingIssues:{id:mt.id,...vt}},mt.id)},()=>{lt(rt.id,CRUD_OPERATION$2.DELETE,"wellbeingIssue",mt.id,ut)},Mt)});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ht,this.renderAdditionalItem("Add another wellbeing or mental health issue",()=>{lt(rt.id,CRUD_OPERATION$2.CREATE,"wellbeingIssue",void 0,ut)})]})});Nr(this,"renderActiveInjury",()=>{const{medicalHistoryOther:rt,patientId:nt}=this.props;return jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MHO_FIELDS.ACTIVE_INJURY_REASON.NAME,title:MHO_FIELDS.ACTIVE_INJURY_REASON.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:MHO_FIELDS.ACTIVE_INJURY_REASON.NAME,defaultValue:rt.activeInjuryReason,onBlur:lt=>{this.autoSaveAndValidate({id:parseInt(nt),activeInjuryReason:lt.target.value},MHO_FIELDS.ACTIVE_INJURY_REASON.KEY,this.props.refetch)}})})});Nr(this,"renderInPainReason",()=>{const{medicalHistoryOther:rt,patientId:nt}=this.props;return jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MHO_FIELDS.IN_PAIN_REASON.NAME,title:MHO_FIELDS.IN_PAIN_REASON.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:MHO_FIELDS.IN_PAIN_REASON.NAME,defaultValue:rt.inPainReason,onBlur:lt=>{this.autoSaveAndValidate({id:parseInt(nt),inPainReason:lt.target.value},MHO_FIELDS.IN_PAIN_REASON.KEY,this.props.refetch)}})})});Nr(this,"renderFallenReason",()=>{const{medicalHistoryOther:rt,patientId:nt}=this.props;return jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MHO_FIELDS.FALLEN_REASON.NAME,title:MHO_FIELDS.FALLEN_REASON.TITLE,children:jsxRuntimeExports.jsx(FreeTextArea,{placeholder:"",inputName:MHO_FIELDS.FALLEN_REASON.NAME,defaultValue:rt.fallenReason,onBlur:lt=>{this.autoSaveAndValidate({id:parseInt(nt),fallenReason:lt.target.value},MHO_FIELDS.FALLEN_REASON.KEY,this.props.refetch)}})})});Nr(this,"addToViewedFields",rt=>{const nt=[...this.state.viewedFields];nt.push(rt),this.setState({viewedFields:new Set(nt)})});Nr(this,"renderFurtherInfo",()=>{const{medicalHistoryOther:rt,patientId:nt}=this.props,lt=[{id:"1",name:"Yes"},{id:"2",name:"No"}];return jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Would you like further information about the Advance Care Directive?",htmlFor:MHO_FIELDS.INFO.NAME,required:!1,children:jsxRuntimeExports.jsx(SegmentedInput,{options:lt,fieldName:"advancedCareAdditionalInformation",optionAreBoolean:!0,defaultSelected:rt.advancedCareAdditionalInformation,itemSelected:ut=>{const dt=ut;this.autoSaveAndValidate({id:parseInt(nt),advancedCareAdditionalInformation:dt},MHO_FIELDS.INFO.KEY,this.props.refetch)}})})});this.state={viewedFields:new Set}}static getDerivedStateFromProps(rt,nt){const{medicalHistoryOther:lt}=rt;if(rt.validateOnLoad){const ut=Object.entries(MHO_FIELDS).map(pt=>pt[1].KEY),dt=new Set(ut);return Object.keys(lt).forEach(function(pt){Array.isArray(lt[pt])&&lt[pt].forEach(function(ht,mt){Object.keys(ht).forEach(function(xt){if(xt!=="id"&&xt!=="__typename"){const Mt=mt+1;dt.add(pt+"-"+Mt+"-"+xt)}})})}),{viewedFields:dt}}return nt}render(){const{medicalHistoryOther:rt,patientId:nt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Medical history: other",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-medical-history-other",children:[jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:MHO_FIELDS.WALKING.NAME,title:MHO_FIELDS.WALKING.TITLE,children:[jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:MHO_FIELDS.WALKING.MORE_INFO,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MHO_FIELDS.WALKING.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.mobilityAid,itemSelected:lt=>{const ut=lt.id;rt.mobilityAid!==ut&&this.autoSaveAndValidate({id:parseInt(nt),mobilityAid:ut},MHO_FIELDS.WALKING.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.mobilityAid)&&this.renderWalkingSelection()]}),jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:MHO_FIELDS.MENTAL.NAME,title:MHO_FIELDS.MENTAL.TITLE,children:[jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:MHO_FIELDS.MENTAL.MORE_INFO,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MHO_FIELDS.MENTAL.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.wellbeingIssue,itemSelected:lt=>{const ut=lt.id;rt.wellbeingIssue!==ut&&this.autoSaveAndValidate({id:parseInt(nt),wellbeingIssue:ut},MHO_FIELDS.MENTAL.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.wellbeingIssue)&&this.renderMentalHealth()]}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MHO_FIELDS.ACTIVE_INJURY.NAME,title:MHO_FIELDS.ACTIVE_INJURY.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MHO_FIELDS.ACTIVE_INJURY.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.activeInjury,itemSelected:lt=>{const ut=lt.id;this.autoSaveAndValidate({id:parseInt(nt),activeInjury:ut},MHO_FIELDS.ACTIVE_INJURY.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.activeInjury)&&this.renderActiveInjury(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MHO_FIELDS.IN_PAIN.NAME,title:MHO_FIELDS.IN_PAIN.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MHO_FIELDS.IN_PAIN.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.inPain,itemSelected:lt=>{const ut=lt.id;this.autoSaveAndValidate({id:parseInt(nt),inPain:ut},MHO_FIELDS.IN_PAIN.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.inPain)&&this.renderInPainReason(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MHO_FIELDS.FALLEN.NAME,title:MHO_FIELDS.FALLEN.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MHO_FIELDS.FALLEN.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.fallen,itemSelected:lt=>{const ut=lt.id;this.autoSaveAndValidate({id:parseInt(nt),fallen:ut},MHO_FIELDS.FALLEN.KEY,this.props.refetch)}})}),this.shouldDisplayDynamic(rt.fallen)&&this.renderFallenReason(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MHO_FIELDS.ADVANCED.NAME,title:MHO_FIELDS.ADVANCED.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:MHO_FIELDS.ADVANCED.MORE_INFO,showIcon:!0,showInfo:rt.advancedCareDirective==="YES",children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MHO_FIELDS.ADVANCED.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.advancedCareDirective,itemSelected:lt=>{const ut=lt.id;this.autoSaveAndValidate({id:parseInt(nt),advancedCareDirective:ut},MHO_FIELDS.ADVANCED.KEY,this.props.refetch)}})})}),rt.advancedCareDirective==="NO"&&this.renderFurtherInfo(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MHO_FIELDS.PREGNANT.NAME,title:MHO_FIELDS.PREGNANT.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MHO_FIELDS.PREGNANT.NAME,options:SegementedInputYesNoUnsure,defaultSelected:rt.pregnant,itemSelected:lt=>{const ut=lt.id;this.autoSaveAndValidate({id:parseInt(nt),pregnant:ut},MHO_FIELDS.PREGNANT.KEY,this.props.refetch)}})})]})]})}}const logger$B=new Logger("HAMedicalHistoryOther"),HA_MEDICAL_OTHER=gql`
  query HealthAssessment($id: ID!) {
    healthAssessment(id: $id) {
      id
      mobilityAid
      mobilityAids {
        id
        ...HealthAssessmentMobilityAid
      }
      wellbeingIssue
      wellbeingIssues {
        id
        ...HealthAssessmentWellbeingIssue
      }
      activeInjury
      activeInjuryReason
      inPain
      inPainReason
      fallen
      fallenReason
      pregnant
      advancedCareDirective
      advancedCareAdditionalInformation
    }
    mobilityAidRefData: listData(category: "mobilityAids") {
      id
      name
    }
    wellbeingIssueRefData: listData(category: "wellbeingIssues") {
      id
      name
    }
  }

  ${HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT}
  ${HEALTH_ASSESSMENT_WELLBEING_ISSUE_FRAGMENT}
`;class HAMedicalHistoryOtherApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"autosave",(rt,nt,lt)=>{const{mutateGraph:ut,client:dt,getSaveStatus:pt,updateSaveStatus:ht}=this.props;return ut(dt,rt,()=>{pt(dt).then(mt=>{ht(mt)})},()=>{},()=>{},async()=>{const mt=await pt(dt);if(ht(mt),lt!==void 0)try{lt()}catch(xt){logger$B.debug("Refetch failed",xt)}},nt)});Nr(this,"performOperation",(rt,nt,lt,ut,dt)=>{const{mutateCRUDGraph:pt,client:ht,getSaveStatus:mt,updateSaveStatus:xt}=this.props,Mt={haId:rt,objectType:lt,operation:nt};ut!==void 0&&ut!==""&&(Mt.id=ut),pt(ht,Mt,()=>{mt(ht).then(vt=>{xt(vt)})},()=>{},()=>{},async()=>{const vt=await mt(ht);if(xt(vt),dt!==void 0)try{dt()}catch(Ot){logger$B.debug("Refetch failed",Ot)}})})}render(){const{match:{params:{patientId:rt}},validateOnLoad:nt}=this.props;return jsxRuntimeExports.jsx(Query,{query:HA_MEDICAL_OTHER,variables:{id:rt},children:({error:lt,loading:ut,data:dt,refetch:pt,networkStatus:ht})=>{const{setError:mt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(lt)return mt()},[lt]),ut&&ht!==NetworkStatus.refetch)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(dt&&dt.healthAssessment){const xt=new HAMedicalHistoryOtherItem().loadData(dt.healthAssessment);return jsxRuntimeExports.jsx(HAMedicalHistoryOther,{medicalHistoryOther:xt,mobilityAidRefData:dt.mobilityAidRefData,wellbeingIssueRefData:dt.wellbeingIssueRefData,autosave:this.autosave,performCRUD:this.performOperation,refetch:pt,validateOnLoad:nt,patientId:rt})}return jsxRuntimeExports.jsx("div",{children:"Error!"})}})}}const routedComponent$i=withRouter(HAMedicalHistoryOtherApollo),haComponent$4=withHealthAssessment(routedComponent$i),FIELD_VALIDATION_KEYS$1={ALCOHOL_BOOL:"alcoholBool",ALCOHOL_FREQUENCY:"alcoholFrequency",SMOKING_BOOL:"smokingBool",SMOKING_HISTORY:"smokingHistory",SMOKING_FREQUENCY:"smokingFrequency",EXERCISE_BOOL:"exerciseBool",EXERCISE_FREQUENCY:"exerciseFrequency",ACCOMMODATION_BOOL:"accommodationAssistance",ACCOMMODATION_REASON:"accommodationAssistanceReason",TRANSPORTATION_BOOL:"transportationAssistance",TRANSPORTATION_REASON:"transportationAssistanceReason"};class HASocialAssessment extends reactExports.Component{constructor(rt){super(rt);Nr(this,"validateObject",rt=>{const nt=fetchRules(ValidationKeys.SocialAssessment,this.state.viewedFields),lt={fullMessages:!1},ut={...rt};return ut.smokingStopDate=`${appendZeroInFront(ut.smokingStopRawMonth)}${ut.smokingStopRawYear}`,validate(ut,nt,lt)});Nr(this,"autoSaveAndValidate",async(rt,nt)=>{const{autosave:lt}=this.props;lt(rt).then(()=>{const ut=[...this.state.viewedFields];nt&&ut.push(nt),this.setState({viewedFields:new Set(ut)})})});this.state={viewedFields:new Set}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad){const lt=Object.keys(FIELD_VALIDATION_KEYS$1).map(dt=>FIELD_VALIDATION_KEYS$1[dt]);return{viewedFields:new Set(lt)}}return nt}render(){const{haSocialAssessment:rt}=this.props,nt=this.validateObject(rt);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Social assessment",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SA_FIELDS.ALCOHOL.NAME,title:SA_FIELDS.ALCOHOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SA_FIELDS.ALCOHOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.alcoholBool,itemSelected:lt=>{const ut=lt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),alcoholBool:ut},FIELD_VALIDATION_KEYS$1.ALCOHOL_BOOL)}})}),this.renderDrinkerFields(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SA_FIELDS.SMOKING.NAME,title:SA_FIELDS.SMOKING.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SA_FIELDS.SMOKING.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.smokingBool,itemSelected:lt=>{const ut=lt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),smokingBool:ut},FIELD_VALIDATION_KEYS$1.SMOKING_BOOL)}})}),this.renderSmokingFields(nt),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SA_FIELDS.EXERCISE.NAME,title:SA_FIELDS.EXERCISE.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SA_FIELDS.EXERCISE.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.exerciseBool,itemSelected:lt=>{const ut=lt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),exerciseBool:ut},FIELD_VALIDATION_KEYS$1.EXERCISE_BOOL)}})}),this.renderExerciseFields(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SA_FIELDS.ACCOMMODATION.NAME,title:SA_FIELDS.ACCOMMODATION.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SA_FIELDS.ACCOMMODATION.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.accommodationAssistance,itemSelected:lt=>{const ut=lt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),accommodationAssistance:ut},FIELD_VALIDATION_KEYS$1.ACCOMMODATION_BOOL)}})}),this.renderAccomodationFields(),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SA_FIELDS.TRANSPORTATION.NAME,title:SA_FIELDS.TRANSPORTATION.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SA_FIELDS.TRANSPORTATION.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.transportationAssistance,itemSelected:lt=>{const ut=lt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),transportationAssistance:ut},FIELD_VALIDATION_KEYS$1.TRANSPORTATION_BOOL)}})}),this.renderTransportationFields()]})]})}renderDrinkerFields(){const{haSocialAssessment:rt,alcoholFrequencyRefData:nt}=this.props;return rt.alcoholBool?jsxRuntimeExports.jsx(FormSegmentField$1,{title:SA_FIELDS.ALCOHOL_FREQUENCY.TITLE,htmlFor:SA_FIELDS.ALCOHOL_FREQUENCY.NAME,children:jsxRuntimeExports.jsx(DropDownField,{inputName:SA_FIELDS.ALCOHOL_FREQUENCY.KEY,placeholder:"Please select",options:nt,defaultValue:rt.alcoholFrequency,controlled:!0,onChange:lt=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),alcoholFrequency:lt.target.value},FIELD_VALIDATION_KEYS$1.ALCOHOL_FREQUENCY)}})}):jsxRuntimeExports.jsx(reactExports.Fragment,{})}renderSmokingFields(rt){const{haSocialAssessment:nt,smokingFrequencyRefData:lt,isPso:ut}=this.props,dt=[...lt].sort((ht,mt)=>ht.name.localeCompare(mt.name,void 0,{numeric:!0,sensitivity:"base"})),pt=ht=>{const mt=ht;if(!ut){const Mt=ht==null?void 0:ht.indexOf("Please enter valid years for your smoking history.");Mt>=0&&mt.splice(Mt,1)}if(mt==null?void 0:mt.length)return mt};return nt.smokingBool?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperText,{helperText:SA_FIELDS.SMOKING_HISTORY.MORE_INFO,idPrefix:"ha-history",children:jsxRuntimeExports.jsx(FormSegmentField$1,{title:SA_FIELDS.SMOKING_HISTORY.TITLE,htmlFor:SA_FIELDS.SMOKING_HISTORY.KEY,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputType:"number",inputProps:{min:0},inputName:SA_FIELDS.SMOKING_HISTORY.KEY,maxLength:2,defaultValue:nt.smokingHistory,sideLabel:"year(s)",onBlur:ht=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),smokingHistory:ht.target.value},FIELD_VALIDATION_KEYS$1.SMOKING_HISTORY)},errors:pt(rt==null?void 0:rt.smokingHistory)})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{title:SA_FIELDS.SMOKING_FREQUENCY.TITLE,htmlFor:SA_FIELDS.SMOKING_FREQUENCY.NAME,children:jsxRuntimeExports.jsx(DropDownField,{inputName:SA_FIELDS.SMOKING_FREQUENCY.KEY,placeholder:"Please select",options:dt,defaultValue:nt.smokingFrequency,controlled:!0,onChange:ht=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),smokingFrequency:ht.target.value},FIELD_VALIDATION_KEYS$1.SMOKING_FREQUENCY)}})}),jsxRuntimeExports.jsx(HelperText,{helperText:SA_FIELDS.SMOKING_STOP.MORE_INFO,idPrefix:"ha-date-stop",children:jsxRuntimeExports.jsx(FormSegmentField$1,{title:SA_FIELDS.SMOKING_STOP.TITLE,htmlFor:SA_FIELDS.SMOKING_STOP.KEY,children:jsxRuntimeExports.jsxs("div",{className:"stop-fields",children:[jsxRuntimeExports.jsx(DropDownROMonth,{id:"smoking-month",value:parseInt(nt.smokingStopRawMonth)>0?Months[parseInt(nt.smokingStopRawMonth)-1]:"",onChange:ht=>{const mt=Months.indexOf(ht)>=0?Months.indexOf(ht)+1:"";this.autoSaveAndValidate({id:parseInt(this.props.patientId),smokingStopRawMonth:mt.toString()})},selectedYear:parseInt(nt.smokingStopRawYear),useLastOption:!0}),jsxRuntimeExports.jsx(DropDownROYear,{id:"smoking-year",value:nt.smokingStopRawYear,onChange:ht=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),smokingStopRawYear:ht})}})]})})})]}):jsxRuntimeExports.jsx(reactExports.Fragment,{})}renderExerciseFields(){const{haSocialAssessment:rt,exerciseFrequencyRefData:nt}=this.props;return rt.exerciseBool?jsxRuntimeExports.jsx(FormSegmentField$1,{title:SA_FIELDS.EXERCISE_FREQUENCY.TITLE,htmlFor:SA_FIELDS.EXERCISE_FREQUENCY.NAME,children:jsxRuntimeExports.jsx(DropDownField,{inputName:SA_FIELDS.EXERCISE_FREQUENCY.KEY,placeholder:"Please select",options:nt,defaultValue:rt.exerciseFrequency,controlled:!0,onChange:lt=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),exerciseFrequency:lt.target.value},FIELD_VALIDATION_KEYS$1.EXERCISE_FREQUENCY)}})}):jsxRuntimeExports.jsx(reactExports.Fragment,{})}renderAccomodationFields(){const{haSocialAssessment:rt}=this.props;return rt.accommodationAssistance?jsxRuntimeExports.jsx(FormSegmentField$1,{title:SA_FIELDS.ACCOMMODATION_REASON.TITLE,htmlFor:SA_FIELDS.ACCOMMODATION_REASON.NAME,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SA_FIELDS.ACCOMMODATION_REASON.KEY,defaultValue:rt.accommodationAssistanceReason,placeholder:"",onBlur:nt=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),accommodationAssistanceReason:nt.target.value},FIELD_VALIDATION_KEYS$1.ACCOMMODATION_REASON)}})}):jsxRuntimeExports.jsx(reactExports.Fragment,{})}renderTransportationFields(){const{haSocialAssessment:rt}=this.props;return rt.transportationAssistance?jsxRuntimeExports.jsx(FormSegmentField$1,{title:SA_FIELDS.TRANSPORTATION_REASON.TITLE,htmlFor:SA_FIELDS.TRANSPORTATION_REASON.NAME,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SA_FIELDS.TRANSPORTATION_REASON.KEY,defaultValue:rt.transportationAssistanceReason,placeholder:"",onBlur:nt=>{this.autoSaveAndValidate({id:parseInt(this.props.patientId),transportationAssistanceReason:nt.target.value},FIELD_VALIDATION_KEYS$1.TRANSPORTATION_REASON)}})}):jsxRuntimeExports.jsx(reactExports.Fragment,{})}}const HEALTH_ASSESMENT_QUERY$1=gql`
  query HealthAssessment($id: ID!) {
    healthAssessment(id: $id) {
      id
      patient {
        id
        fullName
        dob
      }
      alcoholBool
      alcoholFrequency
      smokingBool
      smokingHistory
      smokingFrequency
      smokingStopRawMonth
      smokingStopRawYear
      exerciseBool
      exerciseFrequency
      accommodationAssistance
      accommodationAssistanceReason
      transportationAssistance
      transportationAssistanceReason
    }
    alcoholFrequencyRefData: listData(category: "alcohol_frequency") {
      id
      name
    }
    smokingFrequencyRefData: listData(category: "smoking_frequency") {
      id
      name
    }
    exerciseFrequencyRefData: listData(category: "exercise_frequency") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`;class HASocialAssessmentApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"autosave",rt=>{const{mutateGraph:nt,client:lt,getSaveStatus:ut,updateSaveStatus:dt}=this.props;return nt(lt,rt,()=>{ut(lt).then(pt=>{dt(pt)})},()=>{},()=>{},async()=>{const pt=await ut(lt);dt(pt)})})}render(){const{match:{params:{patientId:rt}},validateOnLoad:nt}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:HEALTH_ASSESMENT_QUERY$1,variables:{id:rt},children:({loading:lt,data:ut,error:dt})=>{const{setError:pt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(dt)return pt()},[dt]),lt)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(ut&&ut.healthAssessment){const ht=new HASocialAssessmentItem;return ht.loadData(ut.healthAssessment),jsxRuntimeExports.jsx(HASocialAssessment,{patientId:rt,autosave:this.autosave,haSocialAssessment:ht,validateOnLoad:nt,alcoholFrequencyRefData:ut.alcoholFrequencyRefData,smokingFrequencyRefData:ut.smokingFrequencyRefData,exerciseFrequencyRefData:ut.exerciseFrequencyRefData,isPso:ut.user&&ut.user.isPso})}return jsxRuntimeExports.jsx("div",{children:"Error!"})}})})}}const routedComponent$h=withRouter(HASocialAssessmentApollo),haComponent$3=withHealthAssessment(routedComponent$h),initialViewedFields$3=["pharmacyName","pharmacyPhone","medicationBool"],medicationFields=["medicationName","dosage","route","prescribingPhysician"],getValidationRules$1=et=>{const tt={},rt=isUs()?MEDICATION_RULES_US:MEDICATION_RULES;return et.forEach(nt=>{nt.includes("medications")?tt[nt]=rt[nt.split(".")[2]]:tt[nt]=rt[nt]}),tt},initalValidationFields$1=(et,tt,rt)=>{const nt=tt;for(let lt=0;lt<et;lt++)rt.forEach(ut=>nt.push(`medications.${lt}.${ut}`));return nt},runValidation$1=(et,tt)=>{const rt=getValidationRules$1(tt);return validate(et,rt,{fullMessages:!1})},HAMedication=et=>{const{validateOnLoad:tt}=et;useTheme$1();const[rt,nt]=reactExports.useState(new Set),[lt,ut]=reactExports.useState(Object),[dt,pt]=reactExports.useState(!1),{patientId:ht}=useParams(),{data:mt,refetch:xt,error:Mt}=useQuery(HA_MEDICATION_QUERY,{variables:{patientId:ht},onCompleted:Qt=>{var $t,jt;if(!tt)return;const Bt=((jt=($t=Qt==null?void 0:Qt.healthAssessment)==null?void 0:$t.medications)==null?void 0:jt.length)||0,Ft=new Set(initalValidationFields$1(Bt,initialViewedFields$3,medicationFields));nt(Ft),ut(runValidation$1(Qt==null?void 0:Qt.healthAssessment,Ft))}}),[vt]=useMutation(UPDATE_HA_MEDICATION,{onCompleted:Qt=>{var Bt;ut(runValidation$1((Bt=Qt==null?void 0:Qt.updateHaMedication)==null?void 0:Bt.healthAssessment,rt))}}),[Ot,{loading:At}]=useMutation(ADD_MEDICATION,{refetchQueries:["HealthAssessment"]}),[Rt,{loading:zt}]=useMutation(DELETE_MEDICATION,{refetchQueries:["HealthAssessment"]}),[Tt]=useMutation(UPDATE_MEDICATION,{refetchQueries:["HealthAssessment"],onCompleted:Qt=>{var Bt;ut(runValidation$1((Bt=Qt==null?void 0:Qt.updateMedication)==null?void 0:Bt.healthAssessment,rt))}});if(Mt||!(mt!=null&&mt.healthAssessment))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Ct=Qt=>{const Bt=[...rt];Bt.push(Qt),nt(new Set(Bt))},It=mt.healthAssessment,Dt=It.id,kt=It.medicationBool===!0,qt=kt&&isUs(),Nt=(Qt,Bt)=>{const Ft=Qt==="pharmacyPhone"?formatMyPhoneNumber(Bt,Object.create(globalThis.import_meta_env||null).REACT_APP_REGION):Bt;vt({variables:{haId:Dt,patientId:ht,[Qt]:Ft}}),Ct(Qt)},Yt=(Qt,Bt,Ft,$t)=>{Tt({variables:{id:Qt,patientId:ht,[Bt]:Ft}}).catch(()=>{pt(!0)}),Ct(`medications.${$t}.${Bt}`)},Kt=()=>{pt(!1),xt()},Jt=()=>{const Qt=It.medications.length>1;return It.medications.map((Bt,Ft)=>{const $t=`medications-${Ft}`;return jsxRuntimeExports.jsxs("div",{className:"infinite-dropdown-item",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:$t,title:`${MEDICATION_FIELDS.MEDICATION_NAME.TITLE} ${Ft+1}`,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Bt.medicationName,inputName:`${$t}-medicationName`,placeholder:"Please describe",inputType:"text",defaultValue:Bt.medicationName,onBlur:jt=>{Yt(Bt==null?void 0:Bt.id,"medicationName",jt.target.value,Ft)}})}),jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:$t,title:MEDICATION_FIELDS.DOSAGE.TITLE,children:[jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Bt.dosage,inputName:`${$t}-dosage`,placeholder:"Please describe",inputType:"text",defaultValue:Bt.dosage,onBlur:jt=>{Yt(Bt==null?void 0:Bt.id,"dosage",jt.target.value,Ft)}}),jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:MEDICATION_FIELDS.DOSAGE.HINT})]}),isUs()&&jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:$t,title:MEDICATION_FIELDS.ROUTE.TITLE,children:[jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Bt.route,inputName:`${$t}-route`,placeholder:"Please describe",inputType:"text",defaultValue:Bt.route,onBlur:jt=>{Yt(Bt==null?void 0:Bt.id,"route",jt.target.value,Ft)}}),jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:MEDICATION_FIELDS.ROUTE.HINT})]}),isUs()&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:$t,title:MEDICATION_FIELDS.PHYSICIAN.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Bt.prescribingPhysician,inputName:`${$t}-prescribingPhysician`,placeholder:"Please describe",inputType:"text",defaultValue:Bt.prescribingPhysician,onBlur:jt=>{Yt(Bt==null?void 0:Bt.id,"prescribingPhysician",jt.target.value,Ft)}})}),Qt&&jsxRuntimeExports.jsx("div",{className:"remove-item",children:jsxRuntimeExports.jsxs("div",{onClick:()=>{zt||Rt({variables:{id:Bt.id,patientId:ht}}).catch(()=>{pt(!0)})},children:[jsxRuntimeExports.jsx(SvgMinusNoFill,{className:"icon"}),"Remove"]})})]},$t)})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Medications",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-medical-history-cancer",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MEDICATION_FIELDS.MEDICATION.NAME,title:"Are you currently on any medications?",children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:MEDICATION_FIELDS.MEDICATION.HINT,showInfo:It.medicationBool,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MEDICATION_FIELDS.MEDICATION.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:It.medicationBool,itemSelected:Qt=>{const Bt=Qt;Nt("medicationBool",Bt),Bt&&Bt!==(It==null?void 0:It.medicationBool)&&Ot({variables:{haId:Dt,patientId:ht}})}})})}),kt&&Jt(),kt&&jsxRuntimeExports.jsxs("div",{className:"additional-item-button",onClick:()=>{At||Ot({variables:{haId:Dt,patientId:ht}})},children:[jsxRuntimeExports.jsx(AddIcon$1,{className:"icon",color:"primary"}),"Add another medication"]}),qt&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MEDICATION_FIELDS.PHARMACY_NAME.NAME,title:MEDICATION_FIELDS.PHARMACY_NAME.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:MEDICATION_FIELDS.PHARMACY_NAME.NAME,inputName:MEDICATION_FIELDS.PHARMACY_NAME.NAME,placeholder:"",inputType:"text",defaultValue:It.pharmacyName,onBlur:Qt=>{Nt("pharmacyName",Qt.target.value)}})}),qt&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MEDICATION_FIELDS.PHARMACY_PHONE.NAME,title:MEDICATION_FIELDS.PHARMACY_PHONE.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:MEDICATION_FIELDS.PHARMACY_PHONE.NAME,inputName:MEDICATION_FIELDS.PHARMACY_PHONE.NAME,placeholder:"",inputType:"text",defaultValue:It.pharmacyPhone,onBlur:Qt=>{Nt("pharmacyPhone",Qt.target.value)},errors:lt==null?void 0:lt.pharmacyPhone})})]}),jsxRuntimeExports.jsx(StandardDialog,{open:dt,title:"Error updating Medication",onSubmit:Kt,submitText:"Ok",onClose:Kt,children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Typography,{children:"This medication was deleted, and can no longer be updated."}),jsxRuntimeExports.jsx(Typography,{children:"Please click OK to refresh."})]})})]})},FIELD_VALIDATION_KEYS={PREV_OPERATION:"prevOperation"},CRUD_OPERATION$1={CREATE:"CREATE",DELETE:"DELETE"};class HAOperations extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderExpandableElement",(rt,nt,lt,ut,dt,pt,ht=!0)=>{const mt=`${nt}-${rt+1}`,xt=`${appendZeroInFront(ut[rt].operationRawDay)}${appendZeroInFront(ut[rt].operationRawMonth)}${ut[rt].operationRawYear}`;ut[rt].operationDate=xt;const Mt=jsxRuntimeExports.jsx(DropDownRODay,{id:`${mt}-day`,value:ut[rt].operationRawDay??"",onChange:zt=>{const Tt={operationRawDay:zt};this.addToViewedFields(`${mt}-operationRawDay`),dt(Tt)},selectedMonth:parseInt(ut[rt].operationRawMonth),selectedYear:parseInt(ut[rt].operationRawYear)}),vt=jsxRuntimeExports.jsx(DropDownROMonth,{id:`${mt}-month`,value:parseInt(ut[rt].operationRawMonth)>0?Months[parseInt(ut[rt].operationRawMonth)-1]:"",onChange:zt=>{const Ct={operationRawMonth:(Months.indexOf(zt)>=0?Months.indexOf(zt)+1:"").toString()};this.addToViewedFields(`${mt}-operationRawMonth`),dt(Ct)},selectedYear:parseInt(ut[rt].operationRawYear)}),Ot=[OTHER$2,"Pacemaker placement"],At=zt=>zt==="Pacemaker placement"?"Type/model":"Please describe",Rt=isUs()?resolveListDataValue(ut[rt].operationSpecify,this.props.operationsRefData):"";return jsxRuntimeExports.jsxs("div",{className:"infinite-item",children:[!isUs()&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:mt,title:`${lt} ${rt+1}`,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:ut[rt].operationSpecify,inputName:`${mt}-operationSpecify`,placeholder:"Please describe",inputType:"text",defaultValue:ut[rt].operationSpecify,onBlur:zt=>{const Tt={operationSpecify:zt.target.value};this.addToViewedFields(mt+"-operationSpecify"),dt(Tt)}})}),isUs()&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:mt,title:`${lt} ${rt+1}`,children:jsxRuntimeExports.jsx(DropDownField,{inputKey:ut[rt].operationSpecify,inputName:`${mt}-operationSpecify`,placeholder:"Please select",options:this.props.operationsRefData,defaultValue:ut[rt].operationSpecify,controlled:!0,onChange:zt=>{const Tt={operationSpecify:zt.target.value};this.addToViewedFields(mt+"-operationSpecify"),dt(Tt)}})}),isUs()&&Ot.includes(Rt)&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:`${mt}-other`,title:At(Rt),children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:ut[rt].operationOther,inputName:`${mt}-operationOther`,placeholder:"Please describe",inputType:"text",defaultValue:ut[rt].operationOther,onBlur:zt=>{const Tt={operationOther:zt.target.value};this.addToViewedFields(mt+"-operationOther"),dt(Tt)},errors:this.state.viewedFields.has(mt+"-operationOther")?getErrorsForSingleViewedField({operationOther:ut[rt].operationOther},{operationOther:getValidationRule("operationOther")},"operationOther"):void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{title:"Operation date",htmlFor:`operationDate${rt+1}`,children:jsxRuntimeExports.jsxs("div",{className:"operation-date",children:[isUs()?vt:Mt,isUs()?Mt:vt,jsxRuntimeExports.jsx(DropDownROYear,{id:`${mt}-year`,value:ut[rt].operationRawYear??"",onChange:zt=>{const Tt={operationRawYear:zt};this.addToViewedFields(`${mt}-operationRawYear`),dt(Tt)}})]})}),ht&&jsxRuntimeExports.jsx("div",{className:"remove-item",children:jsxRuntimeExports.jsxs("div",{onClick:()=>{pt()},children:[jsxRuntimeExports.jsx(SvgMinusNoFill,{className:"icon"}),"Remove"]})})]},mt)});Nr(this,"renderAdditionalItem",(rt,nt)=>jsxRuntimeExports.jsxs("div",{className:"additional-item-button",onClick:()=>{nt()},children:[jsxRuntimeExports.jsx(AddIcon$1,{className:"icon",color:"primary"}),rt]}));Nr(this,"renderOperation",()=>{const{haOperations:rt,autosave:nt,performCRUD:lt,refetch:ut,patientId:dt}=this.props,pt=rt.operations.map((ht,mt)=>{let xt=!1;return rt.operations.length!==1&&(xt=!0),this.renderExpandableElement(mt,"operations","Operation",lodash.cloneDeep(rt.operations),Mt=>{nt({id:parseInt(dt),operations:{id:ht.id,...Mt}},ht.id)},()=>{lt(rt.id,CRUD_OPERATION$1.DELETE,"operation",ht.id,ut)},xt)});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[pt,this.renderAdditionalItem("Add another operation",()=>{lt(rt.id,CRUD_OPERATION$1.CREATE,"operation",void 0,ut)})]})});Nr(this,"validateObject",rt=>{const nt=fetchRules(ValidationKeys.Operations,this.state.viewedFields);return validate(rt,nt,{fullMessages:!1})});Nr(this,"addToViewedFields",rt=>{const nt=[...this.state.viewedFields];nt.push(rt),this.setState({viewedFields:new Set(nt)})});Nr(this,"autoSaveAndValidate",async(rt,nt,lt)=>{const{autosave:ut,refetch:dt}=this.props;await(lt?ut(rt,void 0,dt):ut(rt)).then(()=>{this.addToViewedFields(nt)})});this.state={viewedFields:new Set}}static getDerivedStateFromProps(rt,nt){const{haOperations:lt}=rt;if(rt.validateOnLoad){const ut=Object.keys(FIELD_VALIDATION_KEYS).map(pt=>FIELD_VALIDATION_KEYS[pt]),dt=new Set(ut);return Object.keys(lt).forEach(function(pt){Array.isArray(lt[pt])&&lt[pt].forEach(function(ht,mt){Object.keys(ht).forEach(function(xt){if(xt!=="id"&&xt!=="__typename"){const Mt=mt+1;dt.add(pt+"-"+Mt+"-"+xt)}})})}),{viewedFields:dt}}return nt}render(){const{haOperations:rt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Operations",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:OP_FIELDS.PREV_OPERATION.NAME,title:OP_FIELDS.PREV_OPERATION.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:OP_FIELDS.PREV_OPERATION.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.prevOperation,itemSelected:nt=>{const lt=nt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),prevOperation:lt},FIELD_VALIDATION_KEYS.PREV_OPERATION,this.props.refetch)}})}),rt.prevOperation&&this.renderOperation()]})]})}}const logger$A=new Logger("HAOperationsApollo"),HEALTH_ASSESMENT_QUERY=gql`
  query HealthAssessment($id: ID!) {
    healthAssessment(id: $id) {
      id
      patient {
        id
        fullName
        dob
      }
      prevOperation
      operations {
        id
        ...HealthAssessmentOperation
      }
    }
    operationsRefData: listData(category: "operations") {
      id
      name
    }
  }

  ${HEALTH_ASSESSMENT_OPERATION_FRAGMENT}
`;class HAOperationsApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"autosave",(rt,nt,lt)=>{const{mutateGraph:ut,client:dt,getSaveStatus:pt,updateSaveStatus:ht}=this.props;return ut(dt,rt,()=>{pt(dt).then(mt=>{ht(mt)})},()=>{},()=>{},async()=>{const mt=await pt(dt);if(ht(mt),lt!==void 0)try{lt()}catch(xt){logger$A.debug("Refetch failed",xt)}},nt)});Nr(this,"performOperation",(rt,nt,lt,ut,dt)=>{const{mutateCRUDGraph:pt,client:ht,getSaveStatus:mt,updateSaveStatus:xt}=this.props,Mt={haId:rt,objectType:lt,operation:nt};ut!==void 0&&ut!==""&&(Mt.id=ut),pt(ht,Mt,()=>{mt(ht).then(vt=>{xt(vt)})},()=>{},()=>{},async()=>{const vt=await mt(ht);if(xt(vt),dt!==void 0)try{dt()}catch(Ot){logger$A.debug("Refetch failed",Ot)}})})}render(){const{match:{params:{patientId:rt}},validateOnLoad:nt}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:HEALTH_ASSESMENT_QUERY,variables:{id:rt},children:({error:lt,loading:ut,data:dt,refetch:pt,networkStatus:ht})=>{const{setError:mt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(lt)return mt()},[lt]),ut&&ht!==NetworkStatus.refetch)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});const xt=(vt,Ot)=>vt.name==="Other"?1:vt.name.localeCompare(Ot.name),Mt=dt!=null&&dt.operationsRefData?[...dt==null?void 0:dt.operationsRefData].sort(xt):[];if(dt!=null&&dt.healthAssessment){const vt=new HAOperationsItem().loadData(dt.healthAssessment);return jsxRuntimeExports.jsx(HAOperations,{patientId:rt,autosave:this.autosave,haOperations:vt,validateOnLoad:nt,performCRUD:this.performOperation,refetch:pt,operationsRefData:Mt})}return jsxRuntimeExports.jsx("div",{})}})})}}const routedComponent$g=withRouter(HAOperationsApollo),haComponent$2=withHealthAssessment(routedComponent$g),FIELDS$d={PAGE:{TITLE:"Allergies/sensitivities"},ALLERGY_BOOLEAN:{NAME:"allergyBool",TITLE:"Do you have any allergies?"},ALLERGIES:"allergies"},CRUD_OPERATION={CREATE:"CREATE",DELETE:"DELETE"};class HAAllergies extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderAllergies",()=>{const{haAllergies:rt,performCRUD:nt,refetch:lt,autosave:ut,patientId:dt}=this.props,pt=rt.allergies.map((ht,mt)=>{let xt=!1;return rt.allergies.length!==1&&(xt=!0),this.renderExpandableElement(mt,"allergies","Allergy/sensitivity",rt.allergies,[],Mt=>{ut({id:parseInt(dt),allergies:{id:ht.id,...Mt}},ht.id)},()=>{nt(rt.id,CRUD_OPERATION.DELETE,"allergyBool",ht.id,lt)},xt)});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[pt,this.renderAdditionalItem("Add another allergy",()=>{nt(rt.id,CRUD_OPERATION.CREATE,"allergyBool",void 0,lt)})]})});Nr(this,"renderExpandableElement",(rt,nt,lt,ut,dt,pt,ht,mt=!0)=>{var Tt;const{sensitivityRefData:xt}=this.props,Mt=`${nt}-${rt+1}`,vt=xt.filter(Ct=>Ct.name.toLowerCase().trim()==="food")[0].id,Ot=xt.filter(Ct=>Ct.name.toLowerCase().trim()==="latex"),At=Ot.length?(Tt=Ot[0])==null?void 0:Tt.id:"-1";let Rt="",zt=!1;return(ut[rt].sensitivity===""||ut[rt].sensitivity===At)&&(Rt="",zt=!0),ut[rt].sensitivity===vt&&(Rt="You are not required to provide more information regarding food allergies",zt=!0),ut[rt].sensitivity===At&&(Rt="You are not required to provide more information regarding latex allergies",zt=!0),jsxRuntimeExports.jsxs("div",{className:"infinite-dropdown-item",children:[jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:Mt,title:`${lt} ${rt+1}`,children:[jsxRuntimeExports.jsx(DropDownField,{inputName:`${Mt}-sensitivity`,placeholder:"Please select",options:xt,defaultValue:ut[rt].sensitivity,controlled:!0,onChange:Ct=>{const It={sensitivity:Ct.target.value,specify:ut[rt].specify,area:ut[rt].area};pt(It),this.addToViewedFields(`${Mt}-sensitivity`)}}),zt?jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:Rt,children:jsxRuntimeExports.jsx(reactExports.Fragment,{})}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("label",{className:"form-section-field field-label",children:"Specify"}),jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:ut[rt].specify,inputName:`${Mt}-specify`,inputType:"text",defaultValue:ut[rt].specify,onBlur:Ct=>{const It={sensitivity:ut[rt].sensitivity,specify:Ct.target.value,area:ut[rt].area};this.addToViewedFields(`${Mt}-specify`),pt(It)}}),jsxRuntimeExports.jsx("label",{className:"form-section-field field-label",children:"Reaction experienced"}),jsxRuntimeExports.jsx(reactExports.Fragment,{children:this.renderPatientsReactions(rt)}),jsxRuntimeExports.jsx("label",{className:"form-section-field field-label",children:"Area affected"}),jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:ut[rt].area,inputName:`${Mt}-area`,inputType:"text",defaultValue:ut[rt].area,onBlur:Ct=>{const It={sensitivity:ut[rt].sensitivity,specify:ut[rt].specify,area:Ct.target.value};this.addToViewedFields(`${Mt}-area`),pt(It)}})]},Mt)]}),mt&&jsxRuntimeExports.jsx("div",{className:"remove-item",children:jsxRuntimeExports.jsxs("div",{onClick:()=>{ht()},children:[jsxRuntimeExports.jsx(SvgMinusNoFill,{className:"icon"}),"Remove"]})})]},Mt)});Nr(this,"renderPatientsReactions",rt=>{const{haAllergies:nt,reactionRefData:lt,autosave:ut,performCRUD:dt,refetch:pt}=this.props,ht=nt.allergies[rt].reaction.length===1,mt=lt.filter(Mt=>Mt.name.toLowerCase().trim()==="other")[0].id,xt=nt.allergies[rt].reaction.map((Mt,vt)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"reaction",onBlur:()=>{this.addToViewedFields(`allergies-${rt}-reaction-${vt}`)},children:[jsxRuntimeExports.jsx(DropDownField,{inputName:`reaction-${vt}`,placeholder:"Please select",options:lt,defaultValue:nt.allergies[rt].reaction[vt].value,controlled:!0,onChange:Ot=>{ut({id:parseInt(Mt.id),value:Ot.target.value},"",this.props.refetch,HAMutationType.UPDATE_REACTION)}}),jsxRuntimeExports.jsx("div",{className:"delete-reaction-button",onClick:()=>{dt(nt.id,CRUD_OPERATION.DELETE,"reaction",Mt.id,pt)},children:ht?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgDelete,{className:"icon"})})]}),Mt.value===mt&&jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:nt.allergies[rt].reaction[vt].other,inputName:`reaction-other-${vt}`,className:"reaction-other",placeholder:"Please describe",inputType:"text",defaultValue:nt.allergies[rt].reaction[vt].other,onBlur:Ot=>{this.addToViewedFields(`reaction-other-${vt}`),ut({id:parseInt(Mt.id),other:Ot.target.value},"",this.props.refetch,HAMutationType.UPDATE_REACTION)}})]},`reaction-${vt}`));return jsxRuntimeExports.jsxs("div",{children:[xt,jsxRuntimeExports.jsx(reactExports.Fragment,{children:this.renderAdditionalItem("Add another reaction",()=>{dt(nt.id,CRUD_OPERATION.CREATE,"reaction",void 0,pt,nt.allergies[rt].id)})})]})});Nr(this,"renderAdditionalItem",(rt,nt)=>jsxRuntimeExports.jsxs("div",{"data-test-id":`additional-${rt}`,className:"additional-item-button",onClick:()=>{nt()},children:[jsxRuntimeExports.jsx(AddIcon$1,{className:"icon",color:"primary"}),rt]}));Nr(this,"addToViewedFields",rt=>{const nt=[...this.state.viewedFields];nt.push(rt),this.setState({viewedFields:new Set(nt)})});Nr(this,"validateObject",rt=>{const nt=fetchRules(ValidationKeys.Allergies,this.state.viewedFields);return validate(rt,nt,{fullMessages:!1})});Nr(this,"autoSaveAndValidate",async(rt,nt,lt)=>{const{autosave:ut,refetch:dt}=this.props;await(lt?ut(rt,void 0,dt):ut(rt)).then(()=>{const ht=[...this.state.viewedFields];ht.push(nt),this.setState({viewedFields:new Set(ht)})})});this.state={viewedFields:new Set}}static getDerivedStateFromProps(rt,nt){const{haAllergies:lt}=rt;if(rt.validateOnLoad&&nt.viewedFields.size<1){const ut=[FIELDS$d.ALLERGY_BOOLEAN.NAME],dt=new Set(ut);return Object.keys(lt).forEach(function(pt){Array.isArray(lt[pt])&&lt[pt].forEach(function(ht,mt){Object.keys(ht).forEach(function(xt){if(xt!=="id"&&xt!=="__typename"){const Mt=mt+1;dt.add(pt+"-"+Mt+"-"+xt)}})})}),{viewedFields:dt}}return nt}render(){const{haAllergies:rt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:FIELDS$d.PAGE.TITLE,idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-medical-history-other",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{title:FIELDS$d.ALLERGY_BOOLEAN.TITLE,htmlFor:FIELDS$d.ALLERGY_BOOLEAN.NAME,children:jsxRuntimeExports.jsx(SegmentedInput,{options:SegmentedInputBoolean,fieldName:FIELDS$d.ALLERGY_BOOLEAN.NAME,optionAreBoolean:!0,defaultSelected:rt.allergyBool,itemSelected:nt=>{const lt=nt;this.autoSaveAndValidate({id:parseInt(this.props.patientId),allergyBool:lt},FIELDS$d.ALLERGY_BOOLEAN.NAME,this.props.refetch)}})}),rt.allergyBool&&this.renderAllergies()]})]})}}const logger$z=new Logger("HAAllergiesApollo");class HAAllergiesApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"autosave",(rt,nt,lt,ut)=>{const{mutateGraph:dt,client:pt,getSaveStatus:ht,updateSaveStatus:mt}=this.props;return dt(pt,rt,()=>{ht(pt).then(xt=>{mt(xt)})},()=>{},()=>{},async()=>{const xt=await ht(pt);if(mt(xt),lt!==void 0)try{lt()}catch(Mt){logger$z.debug("Refetch failed",Mt)}},nt,void 0,ut)});Nr(this,"performOperation",(rt,nt,lt,ut,dt,pt)=>{const{mutateCRUDGraph:ht,client:mt,getSaveStatus:xt,updateSaveStatus:Mt}=this.props,vt={haId:rt,objectType:lt,operation:nt};pt&&(vt.relatedObjectId=pt),ut!==void 0&&ut!==""&&(vt.id=ut),ht(mt,vt,()=>{xt(mt).then(Ot=>{Mt(Ot)})},()=>{},()=>{},async()=>{const Ot=await xt(mt);if(Mt(Ot),dt!==void 0)try{dt()}catch(At){logger$z.debug("Refetch failed",At)}})})}render(){const{match:{params:{patientId:rt}},validateOnLoad:nt}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:HA_ALLERGY_QUERY,variables:{patientId:rt},children:({loading:lt,data:ut,refetch:dt,networkStatus:pt,error:ht})=>{const{setError:mt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(ht)return mt()},[ht]),lt&&pt!==NetworkStatus.refetch)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(ut&&ut.healthAssessment){const xt=new HAAllergiesItem().loadData(ut.healthAssessment);return jsxRuntimeExports.jsx(HAAllergies,{patientId:rt,autosave:this.autosave,performCRUD:this.performOperation,refetch:dt,haAllergies:xt,validateOnLoad:nt,sensitivityRefData:ut.sensitivityRefData,reactionRefData:ut.reactionRefData})}return jsxRuntimeExports.jsx("div",{})}})})}}const routedComponent$f=withRouter(HAAllergiesApollo),haComponent$1=withHealthAssessment(routedComponent$f),notProvidedDisplayValue="-";class HAReviewSummary extends reactExports.Component{constructor(){super(...arguments);Nr(this,"renderArrow",()=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:"line",children:jsxRuntimeExports.jsx("div",{className:"arrow-down"})})}));Nr(this,"renderPatientInformation",rt=>{const{haPatientSummary:nt,navigate:lt,isPso:ut}=this.props,dt=nt.patient,pt=ut&&this.isInvalidSection(INVALID_SECTIONS.INFO,rt),ht=ut?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),mt=!ut;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{title:"Patient information",primaryIcon:ht,secondaryIcon:this.validationIcon(pt),invalidContent:pt,showEdit:mt,onClick:()=>{ut||lt("info")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Patient Name",detailText:dt.fullName,displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Date of Birth",detailText:DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(dt.dob),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Height",detailText:nt.height?`${nt.height} cm`:notProvidedDisplayValue,displayAsError:ut&&!!(rt!=null&&rt.height),displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Weight",detailText:nt.weight?`${nt.weight} kg`:notProvidedDisplayValue,displayAsError:ut&&!!(rt!=null&&rt.weight),displayAsOptional:!1})]})})});Nr(this,"renderMedicalHistoryOtherSection",rt=>{const{haPatientSummary:nt,mobilityAidRefData:lt,wellbeingIssueRefData:ut,navigate:dt,isPso:pt}=this.props;let ht=this.isInvalidSection(INVALID_SECTIONS.MEDICAL_HISTORY_OTHER,rt);const mt=pt?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),xt=!pt;return ht=this.validateDropdownOther(nt.mobilityAids,lt,ht),ht=this.validateDropdownOther(nt.wellbeingIssues,ut,ht),ht=pt&&ht,jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{title:"Medical history: other",primaryIcon:mt,secondaryIcon:this.validationIcon(ht),invalidContent:ht,showEdit:xt,onClick:()=>{pt||dt("history-other")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.WALKING.TITLE,detailText:nt.mobilityAid,displayAsError:pt&&!!(rt!=null&&rt.mobilityAid),displayAsOptional:!1}),nt.mobilityAid==="YES"&&this.renderArrow(),nt.mobilityAids.map((Mt,vt)=>{const Ot=resolveListDataValue(Mt.value,lt);return jsxRuntimeExports.jsx(SummaryRow,{headingText:`Mobility Aid ${vt+1}`,detailText:this.getDetailTextWithOther(Ot,Mt),displayAsError:pt&&(Ot==="Other"&&Mt.other===""||Ot===""),displayAsOptional:!1,subQuestion:!0},vt)}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.MENTAL.TITLE,detailText:nt.wellbeingIssue,displayAsError:pt&&!!(rt!=null&&rt.wellbeingIssue),displayAsOptional:!1}),nt.wellbeingIssue==="YES"&&this.renderArrow(),nt.wellbeingIssues.map((Mt,vt)=>{const Ot=resolveListDataValue(Mt.value,ut);return jsxRuntimeExports.jsx(SummaryRow,{headingText:`Wellbeing or mental health issue ${vt+1}`,detailText:this.getDetailTextWithOther(Ot,Mt),displayAsError:pt&&(Ot==="Other"&&Mt.other===""||Ot===""),displayAsOptional:!1,subQuestion:!0},vt)}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.ACTIVE_INJURY.TITLE,detailText:nt.activeInjury,displayAsError:pt&&!!(rt!=null&&rt.activeInjury),displayAsOptional:!1}),nt.activeInjury==="YES"&&this.renderArrow(),nt.activeInjury==="YES"&&jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:"pressure",headingText:MHO_FIELDS.ACTIVE_INJURY_REASON.TITLE,detailText:nt.activeInjuryReason,displayAsError:pt&&!!(rt!=null&&rt.activeInjuryReason),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.IN_PAIN.TITLE,detailText:nt.inPain,displayAsError:pt&&(rt&&rt.inPain?rt.inPain:void 0),displayAsOptional:!1}),nt.inPain==="YES"&&this.renderArrow(),nt.inPain==="YES"&&jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:"pain",headingText:MHO_FIELDS.IN_PAIN_REASON.TITLE,detailText:nt.inPainReason,displayAsError:pt&&!!(rt!=null&&rt.inPainReason),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.FALLEN.TITLE,detailText:nt.fallen,displayAsError:pt&&!!(rt!=null&&rt.fallen),displayAsOptional:!1}),nt.fallen==="YES"&&this.renderArrow(),nt.fallen==="YES"&&jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.FALLEN_REASON.TITLE,detailText:nt.fallenReason,displayAsError:pt&&!!(rt!=null&&rt.fallenReason),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.ADVANCED.TITLE,detailText:nt.advancedCareDirective,displayAsError:pt&&!!(rt!=null&&rt.advancedCareDirective),displayAsOptional:!1}),nt.advancedCareDirective==="NO"&&this.renderArrow(),nt.advancedCareDirective==="NO"&&jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.INFO.TITLE,detailText:this.renderBoolContent(nt.advancedCareAdditionalInformation),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MHO_FIELDS.PREGNANT.TITLE,detailText:nt.pregnant,displayAsError:pt&&!!(rt!=null&&rt.pregnant),displayAsOptional:!1})]})})});Nr(this,"renderCancerSection",rt=>{const{haPatientSummary:nt,treatmentStageRefData:lt,treatmentTypeRefData:ut,navigate:dt,isPso:pt}=this.props;let ht=this.isInvalidSection(INVALID_SECTIONS.CANCER,rt);const mt=pt?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),xt=!pt,Mt=["Chemotherapy","Immunotherapy"];return nt.cancer.forEach(vt=>{vt.treatment.forEach(Ot=>{const At=resolveListDataValue(Ot.treatmentType,ut),Rt=resolveListDataValue(Ot.stage,lt);(Mt.includes(At)&&Rt===""||At==="Radiation therapy"&&(Ot.hospital===""||Ot.bodyPart==="")||At==="Other"&&Ot.other===""||At==="")&&(ht=!0)})}),ht=pt&&ht,jsxRuntimeExports.jsxs(SummaryCard,{title:"Medical history: cancer",primaryIcon:mt,secondaryIcon:this.validationIcon(ht),invalidContent:ht,showEdit:xt,onClick:()=>{pt||dt("history-cancer")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_FIELDS.CANCER.TITLE,detailText:nt.previousCancer,displayAsError:pt&&!!(rt!=null&&rt.previousCancer),displayAsOptional:!1}),nt.previousCancer==="YES"&&this.renderArrow(),jsxRuntimeExports.jsx("div",{className:"summary-section grey",children:nt.cancer.map((vt,Ot)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"section-title",children:`Cancer ${Ot+1}`}),jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_MODAL_FIELDS.CANCER_TYPE.TITLE,detailText:vt.cancerType,displayAsError:pt&&!vt.cancerType,displayAsOptional:!1,subQuestion:!0}),vt.treatment.map((At,Rt)=>{const zt=resolveListDataValue(At.treatmentType,ut),Tt=resolveListDataValue(At.stage,lt),Ct=!(Tt==="Unsure"||Tt==="Not started"),It=displayRawDate(At.treatmentRawMonth,At.treatmentRawYear,At.treatmentRawDay),Dt=zt===TREATMENT_TYPES.RADIATION_THERAPY,kt=zt===TREATMENT_TYPES.OTHER,qt=zt===TREATMENT_TYPES.CHEMOTHERAPY||zt===TREATMENT_TYPES.IMMUNOTHERAPY;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"sub-section-title",children:`Treatment ${Rt+1}`}),jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_MODAL_FIELDS.TREATMENT_TYPE.TITLE,detailText:zt,displayAsError:pt&&!zt,displayAsOptional:!1,subQuestion:!0}),kt&&jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_MODAL_FIELDS.OTHER.TITLE,detailText:At.other,displayAsError:pt&&!At.other,displayAsOptional:!1,subQuestion:!0}),Dt&&jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_MODAL_FIELDS.HOSPITAL.TITLE,detailText:At.hospital,displayAsError:pt&&!At.hospital,displayAsOptional:!1,subQuestion:!0}),qt&&jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_MODAL_FIELDS.STAGE.TITLE,detailText:Tt,displayAsError:pt&&!Tt,displayAsOptional:!1,subQuestion:!0}),(Dt||qt)&&jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_MODAL_FIELDS.DOCTOR.TITLE,detailText:At.doctor,displayAsError:!1,displayAsOptional:!0,subQuestion:!0}),Dt&&jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_MODAL_FIELDS.BODY.TITLE,detailText:At.bodyPart,displayAsError:pt&&!At.bodyPart,displayAsOptional:!0,subQuestion:!0}),(Dt||qt)&&Ct&&jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_MODAL_FIELDS.TREATMENT_DATE_HEADING,detailText:It,displayAsError:!1,displayAsOptional:!0,subQuestion:!0})]},Rt)})]},Ot))}),jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_FIELDS.RADIOTHERAPY.TITLE,detailText:nt.otherRadiotherapy,displayAsError:pt&&!!(rt!=null&&rt.otherRadiotherapy),displayAsOptional:!1}),nt.otherRadiotherapy=="YES"&&this.renderArrow(),jsxRuntimeExports.jsx("div",{className:"summary-section grey",children:nt.otherRadiotherapy==="YES"&&nt.otherRadiotherapyConditions.map((vt,Ot)=>{const At="condition",Rt=displayRawDate(vt.treatmentRawMonth,vt.treatmentRawYear,vt.treatmentRawDay);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"sub-section-title",children:`Condition ${Ot+1}`}),jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:At,headingText:"Condition",detailText:vt.condition,displayAsError:pt&&!vt.condition,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:At,headingText:"Hospital",detailText:vt.hospital,displayAsError:pt&&!vt.hospital,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:At,headingText:"Doctor",detailText:vt.doctor,displayAsError:pt&&!vt.doctor,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:At,headingText:"Body Part",detailText:vt.bodyPart,displayAsError:pt&&!vt.bodyPart,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:At,headingText:"Treatment Date",detailText:Rt,displayAsError:pt&&Rt===notProvidedDisplayValue,displayAsOptional:!1,subQuestion:!0})]},Ot)})}),jsxRuntimeExports.jsx(SummaryRow,{headingText:CR_FIELDS.HISTORY.TITLE,detailText:nt.familyHistory,displayAsError:pt&&!!(rt!=null&&rt.familyHistory),displayAsOptional:!1}),nt.familyHistory==="YES"&&this.renderArrow(),nt.familyHistory==="YES"&&jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:"history-cancer",headingText:CR_FIELDS.HISTORY.DETAILS.TITLE,detailText:nt.familyHistoryAnswer,displayAsError:pt&&!nt.familyHistoryAnswer,displayAsOptional:!1,subQuestion:!0})]})});Nr(this,"renderIllnessSection",rt=>{const{haPatientSummary:nt,internalDevicesRefData:lt,immunosuppresiveConditionsRefData:ut,intractableInfectionOrIllnessesRefData:dt,diabetesRefData:pt,referenceData:ht,navigate:mt,isPso:xt}=this.props;let Mt=this.isInvalidSection(INVALID_SECTIONS.MEDICAL_HISTORY_ILLNESS,rt);const vt=xt?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),Ot=!xt;return Mt=this.validateDropdownOther(nt.internalDevices,lt,Mt),Mt=this.validateDropdownOther(nt.diabetesResponses,pt,Mt),Mt=this.validateDropdownOther(nt.intractableInfectionOrIllnesses,dt,Mt),Mt=this.validateDropdownOther(nt.immunosuppressiveConditions,ut,Mt),Mt=xt&&Mt,jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{title:"Medical history: illness",primaryIcon:vt,secondaryIcon:this.validationIcon(Mt),invalidContent:Mt,showEdit:Ot,onClick:()=>{xt||mt("history-illness")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:ILL_FIELDS.DEVICES.TITLE,detailText:nt.internalDevice,displayAsError:xt&&!!(rt!=null&&rt.internalDevice),displayAsOptional:!1}),nt.internalDevice==="YES"&&this.renderArrow(),nt.internalDevices.map((At,Rt)=>{const zt=resolveListDataValue(At.value,ht);return jsxRuntimeExports.jsx(SummaryRow,{headingText:`Implanted / artificial internal device ${Rt+1}`,detailText:this.getDetailTextWithOther(zt,At),displayAsError:xt&&(zt==="Other"&&At.other===""||zt===""),displayAsOptional:!1,subQuestion:!0},Rt)}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ILL_FIELDS.CLOT.TITLE,detailText:nt.bloodClot,displayAsError:xt&&!!(rt!=null&&rt.bloodClot),displayAsOptional:!1}),nt.bloodClot==="YES"&&this.renderArrow(),nt.bloodClot==="YES"&&jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:"blood-clot",headingText:ILL_FIELDS.CLOT.DETAIL.TITLE,detailText:nt.bloodClotAnswer,displayAsError:xt&&!!(rt!=null&&rt.bloodClotAnswer),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ILL_FIELDS.PROBLEMS.TITLE,detailText:nt.heartOrLungProblem,displayAsError:xt&&!!(rt!=null&&rt.heartOrLungProblem),displayAsOptional:!1}),nt.heartOrLungProblem==="YES"&&this.renderArrow(),nt.heartOrLungProblem==="YES"&&jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:"heart-lung",headingText:ILL_FIELDS.PROBLEMS.DETAIL.TITLE,detailText:nt.heartOrLungAnswer,displayAsError:xt&&!!(rt!=null&&rt.heartOrLungAnswer),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ILL_FIELDS.PRESSURE.TITLE,detailText:nt.highOrLowBloodPressure,displayAsError:xt&&!!(rt!=null&&rt.highOrLowBloodPressure),displayAsOptional:!1}),nt.highOrLowBloodPressure==="YES"&&this.renderArrow(),nt.highOrLowBloodPressure==="YES"&&jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:"blood-pressure",headingText:ILL_FIELDS.PRESSURE.DETAIL.TITLE,detailText:nt.bloodPressureAnswer,displayAsError:xt&&!!(rt!=null&&rt.bloodPressureAnswer),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ILL_FIELDS.DIABETES.TITLE,detailText:nt.diabetes,displayAsError:xt&&!!(rt!=null&&rt.diabetes),displayAsOptional:!1}),nt.diabetes==="YES"&&this.renderArrow(),nt.diabetesResponses.map((At,Rt)=>{const zt=resolveListDataValue(At.value,ht);return jsxRuntimeExports.jsx(SummaryRow,{headingText:`${ILL_FIELDS.DIABETES.DETAIL.TITLE} ${Rt+1}`,detailText:this.getDetailTextWithOther(zt,At),displayAsError:xt&&(zt==="Other"&&At.other===""||zt===""),displayAsOptional:!1,subQuestion:!0},Rt)}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ILL_FIELDS.RESISTANT.TITLE,detailText:nt.intractableInfectionOrIllness,displayAsError:xt&&!!(rt!=null&&rt.intractableInfectionOrIllness),displayAsOptional:!1}),nt.intractableInfectionOrIllness==="YES"&&this.renderArrow(),nt.intractableInfectionOrIllnesses.map((At,Rt)=>{const zt=resolveListDataValue(At.value,ht),Tt=At.doctorClearance?At.doctorClearance:"";return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"sub-section-title",children:`Illness or infection ${Rt+1}`}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Illness or infection",detailText:this.getDetailTextWithOther(zt,At),displayAsError:xt&&(zt==="Other"&&(getValidationForSingleProperty({other:At.other},{other:getValidationRule("other")},"other")||At.other==="")||zt===""),displayAsOptional:!1,subQuestion:!0},`resistant-${Rt}`),jsxRuntimeExports.jsx(SummaryRow,{headingText:`${ILL_FIELDS.RESISTANT.PERMISSION.TITLE}`,detailText:Tt,displayAsError:xt&&getValidationForSingleProperty({doctorClearance:At.doctorClearance},{doctorClearance:getValidationRule("doctorClearance")},"doctorClearance"),displayAsOptional:!1,subQuestion:!0},`clerance-${Rt}`)]},Rt)}),jsxRuntimeExports.jsx(SummaryRow,{headingText:ILL_FIELDS.SUPPRESSIVE.TITLE,detailText:nt.immunosuppressiveCondition,displayAsError:xt&&!!(rt!=null&&rt.immunosuppressiveCondition),displayAsOptional:!1}),nt.immunosuppressiveCondition==="YES"&&this.renderArrow(),nt.immunosuppressiveConditions.map((At,Rt)=>{const zt=resolveListDataValue(At.value,ht);return jsxRuntimeExports.jsx(SummaryRow,{headingText:`Condition or disease ${Rt+1}`,detailText:this.getDetailTextWithOther(zt,At),displayAsError:xt&&(zt==="Other"&&At.other===""||zt===""),displayAsOptional:!1,subQuestion:!0},`resistant-${Rt}`)})]})})});Nr(this,"renderOperations",rt=>{const{haPatientSummary:nt,navigate:lt,isPso:ut}=this.props,dt=ut&&this.isInvalidSection(INVALID_SECTIONS.OPERATIONS,rt),pt=ut?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),ht=!ut;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{title:"Operations",primaryIcon:pt,secondaryIcon:this.validationIcon(dt),invalidContent:ut&&dt,showEdit:ht,onClick:()=>{ut||lt("operations")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:OP_FIELDS.PREV_OPERATION.TITLE,detailText:this.renderBoolContent(nt.prevOperation),displayAsError:ut&&!!(rt!=null&&rt.prevOperation),displayAsOptional:!1}),nt.prevOperation&&this.renderArrow(),nt.prevOperation&&nt.operations.map((mt,xt)=>{const Mt=displayRawDate(mt.operationRawMonth,mt.operationRawYear,mt.operationRawDay);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"sub-section-title",children:`Operation ${xt+1}`}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Operation",detailText:mt.operationSpecify,displayAsError:ut&&getValidationForSingleProperty({operationSpecify:mt.operationSpecify},{operationSpecify:getValidationRule("operationSpecify")},"operationSpecify"),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Operation date",detailText:Mt,displayAsError:!1,displayAsOptional:!0,subQuestion:!0})]},xt)})]})})});Nr(this,"renderSocialAssessment",rt=>{const{haPatientSummary:nt,navigate:lt,referenceData:ut,isPso:dt}=this.props,pt=resolveListDataValue(nt.alcoholFrequency,ut),ht=resolveListDataValue(nt.smokingFrequency,ut),mt=resolveListDataValue(nt.exerciseFrequency,ut),xt=displayRawDate(nt.smokingStopRawMonth,nt.smokingStopRawYear,null,!0),Mt=dt&&this.isInvalidSection(INVALID_SECTIONS.SOCIAL_ASSESSMENT,rt),vt=dt?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),Ot=!dt;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{title:"Social assessment",primaryIcon:vt,secondaryIcon:this.validationIcon(Mt),invalidContent:Mt,showEdit:Ot,onClick:()=>{dt||lt("social")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.ALCOHOL.TITLE,detailText:this.renderBoolContent(nt.alcoholBool),displayAsError:dt&&!!(rt!=null&&rt.alcoholBool),displayAsOptional:!1}),nt.alcoholBool&&this.renderArrow(),nt.alcoholBool&&jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.ALCOHOL_FREQUENCY.TITLE,detailText:nt.alcoholFrequency?`${pt}`:notProvidedDisplayValue,displayAsError:dt&&!!(rt!=null&&rt.alcoholFrequency),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.SMOKING.TITLE,detailText:this.renderBoolContent(nt.smokingBool),displayAsError:dt&&!!(rt!=null&&rt.smokingBool),displayAsOptional:!1}),nt.smokingBool&&this.renderArrow(),nt.smokingBool&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.SMOKING_HISTORY.TITLE,detailText:nt.smokingHistory?`${nt.smokingHistory} year(s)`:notProvidedDisplayValue,displayAsError:dt&&!!(rt!=null&&rt.smokingHistory),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.SMOKING_FREQUENCY.TITLE,detailText:nt.smokingFrequency?`${ht}`:notProvidedDisplayValue,displayAsError:dt&&!!(rt!=null&&rt.smokingFrequency),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.SMOKING_STOP.TITLE,detailText:xt,displayAsError:dt&&!!(rt!=null&&rt.smokingStopDate),displayAsOptional:!0,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.EXERCISE.TITLE,detailText:this.renderBoolContent(nt.exerciseBool),displayAsError:dt&&!!(rt!=null&&rt.exerciseBool),displayAsOptional:!1}),nt.exerciseBool&&this.renderArrow(),nt.exerciseBool&&jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.EXERCISE_FREQUENCY.TITLE,detailText:nt.exerciseFrequency?`${mt}`:notProvidedDisplayValue,displayAsError:dt&&!!(rt!=null&&rt.exerciseFrequency),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.ACCOMMODATION.TITLE,detailText:this.renderBoolContent(nt.accommodationAssistance),displayAsError:dt&&!!(rt!=null&&rt.accommodationAssistance),displayAsOptional:!1}),nt.accommodationAssistance&&this.renderArrow(),nt.accommodationAssistance&&jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.ACCOMMODATION_REASON.TITLE,detailText:(nt==null?void 0:nt.accommodationAssistanceReason)??notProvidedDisplayValue,displayAsError:dt&&!!(rt!=null&&rt.accommodationAssistanceReason),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.TRANSPORTATION.TITLE,detailText:this.renderBoolContent(nt.transportationAssistance),displayAsError:dt&&!!(rt!=null&&rt.transportationAssistance),displayAsOptional:!1}),nt.transportationAssistance&&this.renderArrow(),nt.transportationAssistance&&jsxRuntimeExports.jsx(SummaryRow,{headingText:SA_FIELDS.TRANSPORTATION_REASON.TITLE,detailText:(nt==null?void 0:nt.transportationAssistanceReason)??notProvidedDisplayValue,displayAsError:dt&&!!(rt!=null&&rt.transportationAssistanceReason),displayAsOptional:!1,subQuestion:!0})]})})});Nr(this,"renderMedications",rt=>{const{haPatientSummary:nt,navigate:lt,isPso:ut}=this.props,dt=ut&&this.isInvalidSection(INVALID_SECTIONS.MEDICATION,rt),pt=ut?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),ht=!ut;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{title:"Medications",primaryIcon:pt,secondaryIcon:this.validationIcon(dt),invalidContent:ut&&dt,showEdit:ht,onClick:()=>{ut||lt("medications")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Are you currently on any medications?",detailText:this.renderBoolContent(nt.medicationBool),displayAsError:ut&&!!(rt!=null&&rt.medicationBool),displayAsOptional:!1}),nt.medicationBool&&this.renderArrow(),nt.medicationBool&&nt.medications.map((mt,xt)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"sub-section-title",children:`Medication ${xt+1}`}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Medication",detailText:mt.medicationName,displayAsError:ut&&getValidationForSingleProperty({medicationName:mt.medicationName},{medicationName:getValidationRule("medicationName")},"medicationName"),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Dosage and frequency",detailText:mt.dosage,displayAsError:ut&&getValidationForSingleProperty({dosage:mt.dosage},{dosage:getValidationRule("dosage")},"dosage"),displayAsOptional:!1,subQuestion:!0})]},xt))]})})});Nr(this,"renderAllergies",rt=>{const{haPatientSummary:nt,navigate:lt,referenceData:ut,isPso:dt}=this.props;let pt=this.isInvalidSection(INVALID_SECTIONS.ALLERGIES,rt);const ht=dt?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),mt=!dt;return nt.allergies&&nt.allergies.map(xt=>{const Mt=resolveListDataValue(xt.sensitivity,ut),vt=xt.specify,Ot=xt.area,At=vt!==""&&Ot!=="";let Rt=!0;Mt==="Food"?pt=!1:(xt.reaction.map(zt=>{const Tt=resolveListDataValue(zt.value,ut);Rt=Tt==="Other"&&zt.other!==""||Tt!==""&&Tt!=="Other"}),pt=!(Rt&&At))}),pt=dt&&pt,jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{title:"Allergies/sensitivities",primaryIcon:ht,secondaryIcon:this.validationIcon(pt),invalidContent:dt&&pt,showEdit:mt,onClick:()=>{dt||lt("allergies")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Do you have any allergies?",detailText:this.renderBoolContent(nt.allergyBool),displayAsError:dt&&!!(rt!=null&&rt.allergyBool),displayAsOptional:!1}),nt.allergyBool&&this.renderArrow(),nt.allergyBool&&nt.allergies.map((xt,Mt)=>{const vt=resolveListDataValue(xt.sensitivity,ut);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"sub-section-title",children:`Allergy/sensitivity ${Mt+1}`}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Allergy/sensitivity",detailText:vt,displayAsError:dt&&!vt,displayAsOptional:!1,subQuestion:!0}),vt!=="Food"&&vt!==""&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Specify",detailText:xt.specify,displayAsError:dt&&!xt.specify,displayAsOptional:!1,subQuestion:!0}),xt.reaction.map((Ot,At)=>{const Rt=resolveListDataValue(Ot.value,ut);return jsxRuntimeExports.jsx(SummaryRow,{headingText:"Reaction experienced",detailText:this.getDetailTextWithOther(Rt,Ot),displayAsError:dt&&(Rt==="Other"&&Ot.other===""||Rt===""),displayAsOptional:!1,subQuestion:!0},`reaction-${At}`)}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Area affected",detailText:xt.area,displayAsError:dt&&!xt.area,displayAsOptional:!1,subQuestion:!0})]})]},Mt)})]})})});Nr(this,"renderOtherMedicalProblems",rt=>{const{haPatientSummary:nt,navigate:lt,isPso:ut}=this.props,dt=ut&&this.isInvalidSection(INVALID_SECTIONS.OTHER_MEDICAL_PROBLEMS,rt),pt=ut?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),ht=!ut;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{title:"Other medical problems",primaryIcon:pt,secondaryIcon:this.validationIcon(dt),invalidContent:ut&&dt,showEdit:ht,onClick:()=>{ut||lt("other")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Do you have any other medical problems?",detailText:this.renderBoolContent(nt.otherMedProblemBool),displayAsError:ut&&!!(rt!=null&&rt.otherMedProblemBool),displayAsOptional:!1}),nt.otherMedProblemBool&&this.renderArrow(),nt.otherMedProblemBool&&jsxRuntimeExports.jsx(SummaryRow,{headingText:"Other medical problems description",detailText:nt.otherMedProblemDescription,displayAsError:ut&&!!(rt!=null&&rt.otherMedProblemDescription),displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Do you use complementary or alternative medicine?",detailText:this.renderBoolContent(nt.altMedicineBool),displayAsError:ut&&!!(rt!=null&&rt.altMedicineBool),displayAsOptional:!1}),nt.altMedicineBool&&this.renderArrow(),nt.altMedicineBool&&jsxRuntimeExports.jsx(SummaryRow,{headingText:"Alternative medicine description",detailText:nt.altMedicineDescription,displayAsError:ut&&!!(rt!=null&&rt.altMedicineDescription),displayAsOptional:!1,subQuestion:!0})]})})});Nr(this,"getDetailTextWithOther",(rt,nt)=>{if(rt==="Other"){const lt=nt.other?nt.other:notProvidedDisplayValue;return`${rt}
${lt}`}else return rt});Nr(this,"renderBoolContent",rt=>rt===null||typeof rt>"u"?notProvidedDisplayValue:rt?"Yes":"No");Nr(this,"validationIcon",rt=>{const nt="secondary-icon";return rt?jsxRuntimeExports.jsx(SvgErrorExclamation,{className:`${nt} invalid-icon`}):jsxRuntimeExports.jsx(SvgSuccess,{className:`${nt} valid-icon`})});Nr(this,"isInvalidSection",(rt,nt)=>nt&&nt.invalidSections?nt.invalidSections.includes(rt):!1);Nr(this,"reValidate",rt=>{const{haPatientSummary:nt}=this.props,lt=["NO","UNSURE",!1,null],ut=rt;if(!rt)return rt;ut&&"invalidSections"in ut&&delete ut.invalidSections;const dt={otherMedProblemDescription:nt.otherMedProblemBool,altMedicineDescription:nt.altMedicineBool,activeInjuryReason:nt.activeInjury,inPainReason:nt.inPain,fallenReason:nt.fallen,alcoholFrequency:nt.alcoholBool,smokingHistory:nt.smokingBool,smokingFrequency:nt.smokingBool,smokingStopDate:nt.smokingBool,exerciseFrequency:nt.exerciseBool,accommodationAssistanceReason:nt.accommodationAssistance,transportationAssistanceReason:nt.transportationAssistance,bloodClotAnswer:nt.bloodClot,heartOrLungAnswer:nt.heartOrLungProblem,allergies:nt.allergyBool,pharmacyPhone:nt.medicationBool,pharmacyName:nt.medicationBool,medicationName:nt.medicationBool,dosage:nt.medicationBool,route:nt.medicationBool,prescribingPhysician:nt.medicationBool};return Object.keys(rt).forEach(pt=>{Object.keys(dt).includes(pt)&&lt.includes(dt[pt])&&delete ut[pt]}),getInvalidSection(ut)});Nr(this,"validateDropdownOther",(rt,nt,lt)=>(rt!==null&&rt.map(ut=>{resolveListDataValue(ut.value,nt)==="Other"&&ut.other===""&&(lt=!0)}),lt))}componentDidMount(){const{isPso:rt}=this.props;rt||this.context.setHaSummaryVisited(!0)}render(){const{haPatientSummary:rt,isPso:nt}=this.props,lt={...rt};lt.smokingStopDate=`${appendZeroInFront(lt.smokingStopRawMonth)}${lt.smokingStopRawYear}`;const ut=validateHealthAssesment(lt),dt=this.reValidate(ut),pt=nt?"Review":"Review and submit";return jsxRuntimeExports.jsxs("div",{className:"ha-review-summary-page",children:[jsxRuntimeExports.jsx(PageTitle,{title:pt,idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{className:"newspaper-container",children:[this.renderPatientInformation(dt),this.renderCancerSection(dt),this.renderIllnessSection(dt),this.renderMedicalHistoryOtherSection(dt),this.renderOperations(dt),this.renderSocialAssessment(dt),this.renderMedications(dt),this.renderAllergies(dt),this.renderOtherMedicalProblems(dt)]})]})}}Nr(HAReviewSummary,"contextType",RegistrationContext);const HEALTH_ASSESMENT_SUMMARY_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      patient {
        id
        fullName
        dob
      }
      height
      weight
      previousCancer
      cancer {
        id
        ...HealthAssessmentCancer
      }
      otherRadiotherapy
      otherRadiotherapyConditions {
        id
        ...HealthAssessmentOtherRT
      }
      familyHistory
      familyHistoryAnswer
      internalDevice
      internalDevices {
        id
        ...HealthAssessmentInternalDevice
      }
      bloodClot
      bloodClotAnswer
      heartOrLungProblem
      heartOrLungAnswer
      highOrLowBloodPressure
      bloodPressureAnswer
      diabetes
      diabetesResponses {
        id
        ...HealthAssessmentDiabetesResponse
      }
      intractableInfectionOrIllness
      intractableInfectionOrIllnesses {
        id
        ...HealthAssessmentInfection
      }
      immunosuppressiveCondition
      immunosuppressiveConditions {
        id
      ...HealthAssessmentImmunosuppressiveCondition
      }
      mobilityAid
      mobilityAids {
        id
        ...HealthAssessmentMobilityAid
      }
      wellbeingIssue
      wellbeingIssues {
        id
        ...HealthAssessmentWellbeingIssue
      }
      activeInjury
      activeInjuryReason
      inPain
      inPainReason
      fallen
      fallenReason
      pregnant
      advancedCareDirective
      advancedCareAdditionalInformation
      alcoholBool
      alcoholFrequency
      smokingBool
      smokingHistory
      smokingFrequency
      smokingStopDate
      smokingStopRawMonth
      smokingStopRawYear
      exerciseBool
      exerciseFrequency
      accommodationAssistance
      accommodationAssistanceReason
      transportationAssistance
      transportationAssistanceReason
      prevOperation
      operations {
        id
      ...HealthAssessmentOperation
      }
      medicationBool
      medications {
        id
        ...HealthAssessmentMedication
      }
      allergyBool
      allergies {
        id
        ...HealthAssessmentAllergy
      }
      otherMedProblemBool
      otherMedProblemDescription
      altMedicineBool
      altMedicineDescription
    }
    referenceData: listData(
      categories: [
        "treatmentType",
        "treatmentStage",
        "diabetes",
        "immunosuppresiveConditions",
        "internalDevices",
        "intractableInfectionOrIllnesses",
        "mobilityAids",
        "wellbeingIssues",
        "alcohol_frequency",
        "smoking_frequency",
        "exercise_frequency",
        "exercise_frequency",
        "sensitivity",
        "reaction",
      ]
    ) {
      id
      name
    }
    treatmentTypeRefData: listData(category: "treatmentType") {
      id
      name
    }
    treatmentStageRefData: listData(category: "treatmentStage") {
      id
      name
    }
    diabetesRefData: listData(category: "diabetes") {
      id
      name
    }
    immunosuppresiveConditionsRefData: listData(category: "immunosuppresiveConditions") {
      id
      name
    }
    internalDevicesRefData: listData(category: "internalDevices") {
      id
      name
    }
    intractableInfectionOrIllnessesRefData: listData(category: "intractableInfectionOrIllnesses") {
      id
      name
    }
    mobilityAidRefData: listData(category: "mobilityAids") {
      id
      name
    }
    wellbeingIssueRefData: listData(category: "wellbeingIssues") {
      id
      name
    }
    alcoholFrequencyRefData: listData(category: "alcohol_frequency") {
      id
      name
    }
    smokingFrequencyRefData: listData(category: "smoking_frequency") {
      id
      name
    }
    exerciseFrequencyRefData: listData(category: "exercise_frequency") {
      id
      name
    }
    sensitivityRefData: listData(category: "sensitivity") {
      id
      name
    }
    reactionRefData: listData(category: "reaction") {
      id
      name
    }
    user {
      id
      isPso
    }
  }

  ${HEALTH_ASSESSMENT_ALLERGY_FRAGMENT}
  ${HEALTH_ASSESSMENT_CANCER_FRAGMENT}
  ${HEALTH_ASSESSMENT_DIABETES_RESPONSE_FRAGMENT}
  ${HEALTH_ASSESSMENT_IMMUNOSUPPRESSIVE_CONDITION_FRAGMENT}
  ${HEALTH_ASSESSMENT_INFECTION_FRAGMENT}
  ${HEALTH_ASSESSMENT_INTERNAL_DEVICE_FRAGMENT}
  ${HEALTH_ASSESSMENT_MEDICATION_FRAGMENT}
  ${HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT}
  ${HEALTH_ASSESSMENT_OPERATION_FRAGMENT}
  ${HEALTH_ASSESSMENT_OTHER_RT_FRAGMENT}
  ${HEALTH_ASSESSMENT_WELLBEING_ISSUE_FRAGMENT}
`;class HAReviewSummaryApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"navigate",rt=>{this.props.history.push(rt)})}render(){const{match:{params:{patientId:rt}}}=this.props;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:HEALTH_ASSESMENT_SUMMARY_QUERY,variables:{patientId:rt},children:({loading:nt,data:lt,error:ut})=>{const{setError:dt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(ut)return dt()},[ut]),nt)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(lt&&lt.healthAssessment){const pt=new HAReviewSummaryItem;return pt.loadData(lt.healthAssessment),jsxRuntimeExports.jsx(HAReviewSummary,{haPatientSummary:pt,patientId:rt,internalDevicesRefData:lt.internalDevicesRefData,intractableInfectionOrIllnessesRefData:lt.intractableInfectionOrIllnessesRefData,immunosuppresiveConditionsRefData:lt.immunosuppresiveConditionsRefData,mobilityAidRefData:lt.mobilityAidRefData,diabetesRefData:lt.diabetesRefData,wellbeingIssueRefData:lt.wellbeingIssueRefData,treatmentTypeRefData:lt.treatmentTypeRefData,treatmentStageRefData:lt.treatmentStageRefData,referenceData:lt.referenceData,navigate:this.navigate,isPso:lt.user&&lt.user.isPso})}return jsxRuntimeExports.jsx("div",{})}})})}}const routedComponent$e=withRouter(HAReviewSummaryApollo),haComponent=withHealthAssessment(routedComponent$e);class SummaryRow extends reactExports.Component{constructor(){super(...arguments);Nr(this,"renderContentMessage",(rt,nt)=>{var lt;return!rt&&((lt=this.props)!=null&&lt.allowEmptyDetailText)?"":!rt||rt.trim()===""?nt||"-":rt})}render(){const{props:{testIdGroup:rt,headingText:nt,detailText:lt,displayAsError:ut,displayAsOptional:dt,fallbackText:pt,subQuestion:ht,underLine:mt}}=this;let xt=this.renderContentMessage(lt,pt);xt.match(/^(YES|NO|UNSURE|HIGH|LOW)$/)&&(xt=this.capitalize(xt));const Mt=xt===pt||xt==="Not provided"||xt==="-"&&dt;let vt="";return rt&&(vt=rt+"-"),jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:classNames$1("summary-row newscard-row",{"invalid-data":ut,"sub-question":ht}),children:[jsxRuntimeExports.jsxs("div",{"data-test-id":`question-${vt}${nt}`,className:"title",children:[mt?jsxRuntimeExports.jsx("span",{style:{fontSize:"23px"},children:jsxRuntimeExports.jsx("u",{children:nt||""})}):nt||"",dt&&" (optional)"]}),jsxRuntimeExports.jsx("div",{"data-test-id":`answer-${vt}${nt}`,className:classNames$1("content",{optional:Mt}),children:xt})]})})}capitalize(rt){rt=rt.toLowerCase().split(" ");for(let nt=0;nt<rt.length;nt++)rt[nt]=rt[nt].charAt(0).toUpperCase()+rt[nt].slice(1);return rt.join(" ")}}const evaluateDetailText=et=>typeof et=="string"?et:et==null?null:et?"YES":"NO",convertListDataToObject=(et,tt="id")=>{const rt={};return et?et.reduce((nt,lt)=>lt[tt]?{...nt,[lt[tt]]:lt.name}:nt,rt):{}},AllergiesSensitivities=et=>{const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_ALLERGY_QUERY,{variables:{patientId:tt}}),dt=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.sensitivityRefData),[lt==null?void 0:lt.sensitivityRefData]),pt=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.reactionRefData),[lt==null?void 0:lt.reactionRefData]);if(!lt||ut)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{healthAssessment:{allergies:ht,allergyBool:mt}}=lt,xt=(Ot,At,Rt=!1)=>jsxRuntimeExports.jsx(SummaryRow,{headingText:Ot,detailText:evaluateDetailText(At),displayAsError:!1,displayAsOptional:!1,subQuestion:Rt}),Mt=Ot=>Ot.map((At,Rt)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[xt(`Reaction experienced ${Rt+1}`,pt[At.value],!0),pt[At.value]==="Other"&&xt("Details",At.other,!0)]},At.id)),vt=Ot=>{const At=dt[Ot];return!(At==="Food"||At==="Latex")};return jsxRuntimeExports.jsxs(SummaryCard,{title:"Allergies/sensitivities",primaryIcon:rt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("allergies")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Do you have any allergies or reactions?",detailText:evaluateDetailText(mt),displayAsError:!1,displayAsOptional:!1}),mt&&ht.map((Ot,At)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[xt(`Allergy/sensitivity ${At+1}`,dt[Ot.sensitivity],!0),vt(Ot.sensitivity)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[xt("Specify",Ot.specify,!0),Ot.reaction.length>0&&Mt(Ot.reaction),xt("Area affected",Ot.area,!0)]})]},Ot.id))]})},renderMaleBioHistory=et=>{const{psaDateRawDay:tt,psaDateRawMonth:rt,psaDateRawYear:nt,psaLocation:lt,psaScore:ut,stdMale:dt}=et;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Male history",detailText:"",displayAsError:!1,displayAsOptional:!1,allowEmptyDetailText:!0}),renderArrow(),renderSummaryRow(BIOLOGICAL_FIELDS.PSA_DATE.TITLE,displayRawDate(rt,nt,tt),!0),renderSummaryRow(BIOLOGICAL_FIELDS.PSA_SCORE.TITLE,ut,!0),renderSummaryRow(BIOLOGICAL_FIELDS.PSA_LOCATION.TITLE,lt,!0),renderSummaryRow(BIOLOGICAL_FIELDS.STD_MALE.TITLE,dt)]})},renderFemaleHistorySection=et=>{const{periodAge:tt,periodWhen:rt,abnormalMammograms:nt,breastBiopsy:lt}=et;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Female history",detailText:"",displayAsError:!1,displayAsOptional:!1,allowEmptyDetailText:!0}),renderArrow(),renderSummaryRow(BIOLOGICAL_FIELDS.PERIOD_AGE.TITLE,tt,!0),renderSummaryRow(BIOLOGICAL_FIELDS.ABNORMAL_MAMMOGRAMS.TITLE,nt,!0),renderSummaryRow(BIOLOGICAL_FIELDS.BREAST_BIOPSY.TITLE,lt,!0),renderSummaryRow(BIOLOGICAL_FIELDS.PERIOD_WHEN.TITLE,rt,!0)]})},renderMenoPauseSection=et=>{const{menopause:tt,menopauseAge:rt}=et;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSummaryRow(BIOLOGICAL_FIELDS.MENOPAUSE.TITLE,tt),tt===YES$2&&renderArrow(),tt===YES$2&&renderSummaryRow(BIOLOGICAL_FIELDS.MENOPAUSE_AGE.TITLE,rt,!0)]})},renderPregnancySection=et=>{const{biologicalPregnant:tt,pregnantAge:rt,pregnantCount:nt,pregnantDeliveries:lt}=et;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSummaryRow(BIOLOGICAL_FIELDS.PREGNANT.TITLE,tt),renderSummaryRow(BIOLOGICAL_FIELDS.PREGNANT_COUNT.TITLE,nt),renderSummaryRow(BIOLOGICAL_FIELDS.PREGNANT_DELIVERIES.TITLE,lt),renderSummaryRow(BIOLOGICAL_FIELDS.PREGNANT_AGE.TITLE,rt)]})},renderRemaningFemaleSection=et=>{const{hormones:tt,hormonesDuration:rt,breastfeed:nt,braSize:lt,nippleDischarge:ut,nippleDischargeExplain:dt,vaginalBleeding:pt,vaginalDischarge:ht,vaginalBleedingExplain:mt,vaginalDischargeExplain:xt,stdFemale:Mt,papSmearDateRawDay:vt,papSmearDateRawMonth:Ot,papSmearDateRawYear:At,mammogramDateRawDay:Rt,mammogramDateRawMonth:zt,mammogramDateRawYear:Tt}=et;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSummaryRow(BIOLOGICAL_FIELDS.BREASTFEED.TITLE,nt),renderSummaryRow(BIOLOGICAL_FIELDS.HORMONES.TITLE,tt),tt===YES$2&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),renderSummaryRow(BIOLOGICAL_FIELDS.HORMONES_DURATION.TITLE,rt,!0)]}),renderSummaryRow(BIOLOGICAL_FIELDS.BRA_SIZE.TITLE,lt),renderSummaryRow(BIOLOGICAL_FIELDS.NIPPLE_DISCHARGE.TITLE,ut),ut===YES$2&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),renderSummaryRow(BIOLOGICAL_FIELDS.NIPPLE_DISCHARGE_EXPLAIN.TITLE,dt,!0)]}),renderSummaryRow(BIOLOGICAL_FIELDS.VAGINAL_BLEEDING.TITLE,pt),pt===YES$2&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),renderSummaryRow(BIOLOGICAL_FIELDS.VAGINAL_BLEEDING_EXPLAIN.TITLE,mt,!0)]}),renderSummaryRow(BIOLOGICAL_FIELDS.VAGINAL_DISCHARGE.TITLE,ht),ht===YES$2&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),renderSummaryRow(BIOLOGICAL_FIELDS.VAGINAL_DISCHARGE_EXPLAIN.TITLE,xt,!0)]}),renderSummaryRow(BIOLOGICAL_FIELDS.STD_FEMALE.TITLE,Mt),renderSummaryRow(BIOLOGICAL_FIELDS.PAP_SMEAR_DATE.TITLE,displayRawDate(Ot,At,vt),!1),renderSummaryRow(BIOLOGICAL_FIELDS.MAMMOGRAM_DATE.TITLE,displayRawDate(zt,Tt,Rt),!1)]})},renderSummaryRow=(et,tt,rt=!1)=>jsxRuntimeExports.jsx(SummaryRow,{headingText:et,detailText:evaluateDetailText(tt),displayAsError:!1,displayAsOptional:!1,subQuestion:rt}),renderFemaleBioHistory=et=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderFemaleHistorySection(et),renderMenoPauseSection(et),renderPregnancySection(et),renderRemaningFemaleSection(et)]}),MedicalHistoryBiological=et=>{const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_BIOLOGICAL_QUERY,{variables:{patientId:tt}}),dt=pt=>{var ht,mt,xt;return((ht=pt.healthAssessment)==null?void 0:ht.biologicalGender)==="MALE"?renderMaleBioHistory(pt.healthAssessment):((mt=pt.healthAssessment)==null?void 0:mt.biologicalGender)==="FEMALE"?renderFemaleBioHistory(pt.healthAssessment):jsxRuntimeExports.jsx(SummaryRow,{headingText:"Biological Gender",detailText:((xt=pt.healthAssessment)==null?void 0:xt.biologicalGender)==="NOT STATED"?"Not stated":null,displayAsError:!1,displayAsOptional:!1})};return!lt||ut?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(SummaryCard,{title:"Medical history 3",primaryIcon:rt?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("biological")},children:dt(lt)})})},MedicalHistoryCancer=et=>{const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_MEDICAL_HISTORY_CANCER_QUERY,{variables:{patientId:tt}}),dt=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.familyMemberRefData),[lt==null?void 0:lt.familyMemberRefData]),pt=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.treatmentStageRefData),[lt==null?void 0:lt.treatmentStageRefData]),ht=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.treatmentTypeRefData),[lt==null?void 0:lt.treatmentTypeRefData]);if(!lt||ut)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{cancer:mt,previousCancer:xt,otherRadiotherapyConditions:Mt,familyHistory:vt,otherRadiotherapy:Ot,usFamilyHistory:At}=lt.healthAssessment,Rt=(kt,qt,Nt=!1,Yt=!1,Kt=!1)=>jsxRuntimeExports.jsx(SummaryRow,{headingText:kt,detailText:evaluateDetailText(qt),displayAsError:!1,displayAsOptional:Kt,subQuestion:Nt,allowEmptyDetailText:Yt}),zt=kt=>jsxRuntimeExports.jsx(SummaryRow,{headingText:kt,detailText:"",displayAsError:!1,displayAsOptional:!1,subQuestion:!0,allowEmptyDetailText:!0,underLine:!0}),Tt=kt=>{const qt=ht[kt.treatmentType],Nt=pt[kt.stage];switch(qt){case TREATMENT_TYPES.SURGERY:case TREATMENT_TYPES.BRACHYTHERAPY:case TREATMENT_TYPES.THERANOSTICS:case TREATMENT_TYPES.NONE:case TREATMENT_TYPES.UNSURE:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Rt(CR_MODAL_FIELDS.TREATMENT_TYPE.TITLE,qt,!0)});case TREATMENT_TYPES.RADIATION_THERAPY:return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt(CR_MODAL_FIELDS.TREATMENT_TYPE.TITLE,qt,!0),Rt(CR_MODAL_FIELDS.HOSPITAL.TITLE,kt.hospital,!0),Rt(CR_MODAL_FIELDS.DOCTOR.TITLE,kt.doctor,!0,!1,!0),Rt(CR_MODAL_FIELDS.BODY.TITLE,kt.bodyPart,!0),Rt(CR_MODAL_FIELDS.TREATMENT_DATE_HEADING,displayRawDate(kt.treatmentRawMonth,kt.treatmentRawYear,kt.treatmentRawDay),!0)]});case TREATMENT_TYPES.CHEMOTHERAPY:case TREATMENT_TYPES.IMMUNOTHERAPY:return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt(CR_MODAL_FIELDS.TREATMENT_TYPE.TITLE,qt,!0),Rt(CR_MODAL_FIELDS.STAGE.TITLE,Nt,!0),Rt(CR_MODAL_FIELDS.DOCTOR.TITLE,kt.doctor,!0,!1,!0),Nt!=="Not started"&&Nt!=="Unsure"&&Rt(CR_MODAL_FIELDS.TREATMENT_DATE_HEADING,displayRawDate(kt.treatmentRawMonth,kt.treatmentRawYear,kt.treatmentRawDay),!0)]});case TREATMENT_TYPES.HORMONAL_THERAPY:return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt(CR_MODAL_FIELDS.TREATMENT_TYPE.TITLE,qt,!0),Rt(CR_MODAL_FIELDS.HORMONAL.TITLE,kt.medication,!0),Rt(CR_MODAL_FIELDS.TREATMENT_DATE_HEADING,displayRawDate(kt.treatmentRawMonth,kt.treatmentRawYear,kt.treatmentRawDay),!0)]});case TREATMENT_TYPES.OTHER:return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt(CR_MODAL_FIELDS.TREATMENT_TYPE.TITLE,qt,!0),Rt(CR_MODAL_FIELDS.OTHER.TITLE,kt.other,!0)]});default:return Rt(CR_MODAL_FIELDS.TREATMENT_TYPE.TITLE,"",!0)}},Ct=kt=>kt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt(CR_FIELDS.CANCER.TITLE,xt),xt===YES$2&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),kt.map((qt,Nt)=>jsxRuntimeExports.jsxs("div",{className:"key-color",children:[zt(`Cancer ${Nt+1}`),Rt(CR_MODAL_FIELDS.CANCER_TYPE.TITLE,qt.cancerType,!0),Rt(CR_MODAL_FIELDS.CANCER_STAGE.TITLE,qt.cancerStage,!0),qt.treatment.map((Yt,Kt)=>jsxRuntimeExports.jsxs("div",{children:[zt(`Treatment ${Kt+1}`),Tt(Yt)]},`cancer-treatment-${Yt.id}`))]},`cancer-${qt.id}`))]})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),It=kt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt(CR_FIELDS.RADIOTHERAPY.TITLE,Ot),Ot===YES$2&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),kt.map((qt,Nt)=>jsxRuntimeExports.jsxs("div",{className:"key-color",children:[zt(`Condition ${Nt+1}`),Rt("Type of condition",qt.condition,!0),Rt(CR_MODAL_FIELDS.HOSPITAL.TITLE,qt.hospital,!0),Rt(CR_MODAL_FIELDS.DOCTOR.TITLE,qt.doctor,!0),Rt(CR_MODAL_FIELDS.BODY.TITLE,qt.bodyPart,!0),Rt("Date of treatment",displayRawDate(qt.treatmentRawMonth,qt.treatmentRawYear,qt.treatmentRawDay),!0)]},qt.id))]})]}),Dt=kt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt(CR_FIELDS.HISTORY.TITLE,vt),vt===YES$2&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),kt.map((qt,Nt)=>jsxRuntimeExports.jsxs("div",{className:"key-color",children:[zt(`Member ${Nt+1}`),Rt(FAMILY_HISTORY_MODAL.FAMILY_MEMBER.TITLE,dt[qt.familyMember],!0),dt[qt.familyMember]==="Other"&&Rt("Please specify",qt.other,!0,!0),Rt("Type",qt.cancerType,!0),Rt("Alive",qt.stillAlive,!0),Rt("Age",qt.ageOfFamilyMember,!0)]},qt.id))]})]});return jsxRuntimeExports.jsxs(SummaryCard,{title:"Medical history 1",primaryIcon:rt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("history-cancer")},children:[Ct(mt),It(Mt),Dt(At)]})},{PAST_MEDICAL_HISTORY,CARDIAC,CONSTITUTIONAL,EYES_EARS_NOSE_THROAT,GASTROINTESTINAL,GENITOURINARY,NEUROLOGICAL,PSYCHIATRIC,PULMONARY,BONESJOINTS,SKIN,SCREENING,HEMATOLOGIC}=medicalIllnessConstants,convertObjectToArray=et=>{const tt=[];for(const rt in et)tt.push(et[rt]);return tt},getDetailText=(et,tt)=>tt&&tt.includes(et.name)&&et.value?`${et.value}`:"",parseListItemsWithMapping=(et,tt)=>{const rt=JSON.parse(et),nt=Object.keys(tt||{}),lt=Object.values(tt||{});if(rt)return nt.forEach((ut,dt)=>{var mt;const pt=rt[ut],ht=lt[dt];pt!=null&&pt.value&&(pt.value=((mt=rt[ht])==null?void 0:mt.value)||"Not Provided"),delete rt[ht]}),rt},shouldRender=et=>!!et.find(rt=>rt.value),mapDates=(et,tt)=>{var rt,nt,lt,ut,dt;return(rt=tt.covidVaccine)!=null&&rt.value&&(tt.covidVaccine.value=et.covid),(nt=tt.influenzaVaccine)!=null&&nt.value&&(tt.influenzaVaccine.value=et.influenza),(lt=tt.pneumoniaVaccine)!=null&&lt.value&&(tt.pneumoniaVaccine.value=et.pneumonia),(ut=tt.colonoscopy)!=null&&ut.value&&(tt.colonoscopy.value=et.colonoscopy),(dt=tt.chestCtScan)!=null&&dt.value&&(tt.chestCtScan.value=et.chestCtScan),tt},renderMedicalHistoryList=(et,tt,rt,nt)=>{if(!et)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});let lt=parseListItemsWithMapping(et,nt==null?void 0:nt.mapping);if(!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});lt=tt===SCREENING$1.title?mapDates(nt==null?void 0:nt.screeningDates,lt):lt;const ut=convertObjectToArray(lt);return shouldRender(ut)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:tt,detailText:"",displayAsError:!1,displayAsOptional:!1,allowEmptyDetailText:!0}),renderArrow(),rt.map(dt=>{if(!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const pt=lt[`${dt.key}`];return pt!=null&&pt.value?jsxRuntimeExports.jsx(SummaryRow,{headingText:pt.name,detailText:getDetailText(pt,nt==null?void 0:nt.detailTexts),displayAsError:!1,displayAsOptional:!1,subQuestion:!0,allowEmptyDetailText:!0},pt.id):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},MedicalHistoryIllness=et=>{const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_ILLNESS_QUERY,{variables:{patientId:tt}});if(!lt||ut)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{screeningRefData:dt,bonesJointsRefData:pt,pastMedicalHistoryRefData:ht,cardiacRefData:mt,constitutionalRefData:xt,eyesEarsNoseThroatRefData:Mt,gastrointestinalRefData:vt,genitourinaryRefData:Ot,neurologicalRefData:At,psychiatricRefData:Rt,pulmonaryRefData:zt,hematologicRefData:Tt,skinRefData:Ct}=lt,{cardiac:It,constitutional:Dt,eyesEarsNoseThroat:kt,gastrointestinal:qt,genitourinary:Nt,neurological:Yt,psychiatric:Kt,pulmonary:Jt,screening:Qt,bonesJoints:Bt,pastMedicalHistory:Ft,hematologic:$t,skin:jt,colonoscopyRawDay:Wt,colonoscopyRawMonth:Ut,colonoscopyRawYear:Vt,chestCtScanRawDay:Ht,chestCtScanRawMonth:Gt,chestCtScanRawYear:Zt}=lt.healthAssessment,Xt={colonoscopy:displayRawDate(Ut,Vt,Wt),chestCtScan:displayRawDate(Gt,Zt,Ht)},er=()=>{const nr=(rr,cr)=>{if(!rr)return!1;const ir=JSON.parse(rr),dr=Object.entries(ir).filter(ar=>{var ur;return(ur=ar[1])==null?void 0:ur.value}),gr=dr.map(ar=>ar[0]);let br=dr.length>0;if(cr){const ar=cr.length;for(let ur=0;ur<ar;ur++)gr.includes(cr[ur][0])&&(br=gr.includes(cr[ur][1]))}return br};return nr(Qt)||nr(Ft,[["otherText","other"]])||nr(It)||nr(Dt,[["weightGainCount","weightGain"],["weightLossCount","weightLoss"]])||nr(kt)||nr(qt)||nr(Nt)||nr(Yt)||nr(Kt)||nr(Jt)||nr(Bt)};return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(SummaryCard,{title:"Medical history 2",primaryIcon:rt?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("history-illness")},children:er()?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderMedicalHistoryList(Qt,SCREENING.title,dt,{screeningDates:Xt,detailTexts:["Colonoscopy","Chest CT scan"]}),renderMedicalHistoryList(Ft,PAST_MEDICAL_HISTORY.title,ht,{mapping:{other:"otherText"},detailTexts:["Other"]}),renderMedicalHistoryList(It,CARDIAC.title,mt),renderMedicalHistoryList(Dt,CONSTITUTIONAL.title,xt,{mapping:{weightLoss:"weightLossCount",weightGain:"weightGainCount"},detailTexts:["Unexplained weight loss","Weight gain"]}),renderMedicalHistoryList(kt,EYES_EARS_NOSE_THROAT.title,Mt),renderMedicalHistoryList(qt,GASTROINTESTINAL.title,vt),renderMedicalHistoryList(Nt,GENITOURINARY.title,Ot),renderMedicalHistoryList(Yt,NEUROLOGICAL.title,At),renderMedicalHistoryList(Kt,PSYCHIATRIC.title,Rt),renderMedicalHistoryList(Jt,PULMONARY.title,zt),renderMedicalHistoryList(Bt,BONESJOINTS.title,pt),renderMedicalHistoryList($t,HEMATOLOGIC.title,Tt),renderMedicalHistoryList(jt,SKIN.title,Ct)]}):jsxRuntimeExports.jsx(SummaryRow,{headingText:"Not provided",detailText:null,fallbackText:" ",displayAsError:!1,displayAsOptional:!1,allowEmptyDetailText:!0})})})},HAMedicationsUS=et=>{const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_MEDICATION_QUERY,{variables:{patientId:tt}}),dt=reactExports.useMemo(()=>lt==null?void 0:lt.healthAssessment,[lt]);return ut?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):dt?jsxRuntimeExports.jsxs(SummaryCard,{id:"operations",title:"Medications",primaryIcon:rt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("medications")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:MEDICATION_FIELDS.MEDICATION.TITLE,detailText:evaluateDetailText(dt.medicationBool),displayAsError:!1,displayAsOptional:!1}),dt.medicationBool&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[dt.medications.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),dt.medications.map((pt,ht)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:`${MEDICATION_FIELDS.MEDICATION_NAME.TITLE} ${ht+1}`,detailText:evaluateDetailText(pt.medicationName),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MEDICATION_FIELDS.DOSAGE.TITLE,detailText:evaluateDetailText(pt.dosage),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MEDICATION_FIELDS.PHYSICIAN.TITLE,detailText:evaluateDetailText(pt.prescribingPhysician),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MEDICATION_FIELDS.ROUTE.TITLE,detailText:evaluateDetailText(pt.route),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]},ht))]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MEDICATION_FIELDS.PHARMACY_NAME.TITLE,detailText:evaluateDetailText(dt.pharmacyName),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MEDICATION_FIELDS.PHARMACY_PHONE.TITLE,detailText:evaluateDetailText(dt.pharmacyPhone),displayAsError:!1,displayAsOptional:!1})]})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},HAMobilityAssessmentUS=et=>{const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_MOBILITY_QUERY,{variables:{patientId:tt}}),dt=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.mobilityAidRefData),[lt==null?void 0:lt.mobilityAidRefData]),pt=reactExports.useMemo(()=>lt==null?void 0:lt.healthAssessment,[lt]);return ut?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):lt?jsxRuntimeExports.jsxs(SummaryCard,{id:"mobility-assessment",title:"Mobility-fall risk assessment",primaryIcon:rt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("mobility")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:MOBILITY_FIELDS.MOBILITY_AID.TITLE,detailText:evaluateDetailText(pt.mobilityAid),displayAsError:!1,displayAsOptional:!1}),pt.mobilityAid=="YES"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),pt.mobilityAids.map((ht,mt)=>jsxRuntimeExports.jsx(SummaryRow,{headingText:`Mobility aid ${mt+1}`,detailText:dt[ht.value]==="Other"?evaluateDetailText(ht.other):dt[ht.value],fallbackText:" ",displayAsError:!1,displayAsOptional:!1,subQuestion:!0},mt))]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MOBILITY_FIELDS.FALLEN.TITLE,detailText:evaluateDetailText(pt.fallen),displayAsError:!1,displayAsOptional:!1}),pt.fallen=="YES"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:MOBILITY_FIELDS.FALLEN_HOW_MANY.TITLE,detailText:evaluateDetailText(pt.fallenHowMany),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MOBILITY_FIELDS.FALLEN_INJURIES.TITLE,detailText:evaluateDetailText(pt.fallenInjuries),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MOBILITY_FIELDS.FOOT_PAIN.TITLE,detailText:evaluateDetailText(pt.footPain),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MOBILITY_FIELDS.UNSTEADY.TITLE,detailText:evaluateDetailText(pt.unsteady),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:MOBILITY_FIELDS.LIGHTHEADED.TITLE,detailText:evaluateDetailText(pt.lightheaded),displayAsError:!1,displayAsOptional:!1})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},HAOperationsUS=et=>{const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_OPERATIONS_QUERY,{variables:{patientId:tt}}),dt=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.operationsRefData),[lt==null?void 0:lt.operationsRefData]),pt=reactExports.useMemo(()=>lt==null?void 0:lt.healthAssessment,[lt]);return ut?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):lt?jsxRuntimeExports.jsxs(SummaryCard,{id:"operations",title:"Operations",primaryIcon:rt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("operations")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:OP_FIELDS.PREV_OPERATION.TITLE,detailText:evaluateDetailText(pt.prevOperation),displayAsError:!1,displayAsOptional:!1}),pt.prevOperation&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),pt.operations.map((ht,mt)=>{const xt=dt[ht.operationSpecify],Mt=(xt==null?void 0:xt.toLowerCase())==="Other".toLowerCase(),vt=(xt==null?void 0:xt.toLowerCase())==="Pacemaker placement".toLowerCase();return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:`Operation ${mt+1}`,detailText:evaluateDetailText(xt),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Operation date",detailText:displayRawDate(ht.operationRawMonth,ht.operationRawYear,ht.operationRawDay),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),Mt&&ht.operationOther&&jsxRuntimeExports.jsx(SummaryRow,{headingText:"Description",detailText:evaluateDetailText(ht.operationOther),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),vt&&jsxRuntimeExports.jsx(SummaryRow,{headingText:"Type/Model",detailText:evaluateDetailText(ht.operationOther),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]},mt)})]})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},HAPainAssessmentUS=et=>{var xt;const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_PAIN_QUERY,{variables:{patientId:tt}}),dt=reactExports.useMemo(()=>lt==null?void 0:lt.healthAssessment,[lt]),pt=reactExports.useMemo(()=>{var Mt;return JSON.parse(((Mt=lt==null?void 0:lt.healthAssessment)==null?void 0:Mt.painQuality)||"{}")},[(xt=lt==null?void 0:lt.healthAssessment)==null?void 0:xt.painQuality]),ht=reactExports.useMemo(()=>Object.entries(pt).map(Mt=>Mt[1]).filter(Mt=>Mt.value).length>0,[pt]),mt=reactExports.useMemo(()=>{const Mt=[];for(const vt in pt)Mt.push({...pt[vt],key:vt});return[...Mt].sort((vt,Ot)=>vt.id<Ot.id?-1:vt.id<Ot.id?1:0).map(vt=>vt.key)},[pt]);return ut?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):lt?jsxRuntimeExports.jsxs(SummaryCard,{id:"pain-assessment",title:"Pain assessment",primaryIcon:rt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("painAssessment")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.IN_PAIN.TITLE,detailText:evaluateDetailText(dt.inPain),displayAsError:!1,displayAsOptional:!1}),dt.inPain===YES$2&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.PAIN_START.TITLE,detailText:dt.painStart,displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.PAIN_SEVERITY.TITLE,detailText:evaluateDetailText(dt.painSeverity),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.PAIN_LOCATION.TITLE,detailText:evaluateDetailText(dt.painLocation),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.PAIN_QUALITY.TITLE,detailText:null,fallbackText:ht?" ":"",displayAsError:!1,displayAsOptional:!1}),ht&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:mt.filter(Mt=>pt[Mt].value).map((Mt,vt)=>jsxRuntimeExports.jsx(SummaryRow,{headingText:pt[Mt].name,detailText:null,fallbackText:" ",displayAsError:!1,displayAsOptional:!1,subQuestion:!0},vt))}),jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.PAIN_LENGTH.TITLE,detailText:evaluateDetailText(dt.painLength),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.PAIN_MANAGEMENT.TITLE,detailText:evaluateDetailText(dt.painManagement),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.PAIN_BETTER.TITLE,detailText:evaluateDetailText(dt.painBetter),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:PAIN_ASSESSMENT_FIELDS.PAIN_WORSE.TITLE,detailText:evaluateDetailText(dt.painWorse),displayAsError:!1,displayAsOptional:!1})]})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},getHeightInFeetAndInches=et=>{if(et==="0"||et==="")return"-";const tt=convertCmToFeetAndInches(et);return`${tt.heightFt} ft, ${tt.heightIn} in`},PatientInformation=({isPso:et,navigate:tt,healthAssessment:rt})=>{const nt=rt.patient;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(SummaryCard,{id:"patient-information",title:"Patient information",primaryIcon:et?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!et,onClick:()=>{et||tt("info")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:"Patient Name",detailText:nt.fullName,displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Date of Birth",detailText:DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(nt.dob,Object.create(globalThis.import_meta_env||null).REACT_APP_REGION),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Height",detailText:getHeightInFeetAndInches(rt.height),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:"Weight",detailText:rt.weight?`${convertKgToPound(parseFloat(rt.weight),2)} lbs`:"-",displayAsError:!1,displayAsOptional:!1})]})})},HASocialAssessmentUS=et=>{var vt,Ot,At,Rt,zt,Tt;const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_SOCIAL_US_QUERY,{variables:{patientId:tt}}),dt=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.alcoholFrequencyRefData),[lt==null?void 0:lt.alcoholFrequencyRefData]),pt=reactExports.useMemo(()=>convertListDataToObject(lt==null?void 0:lt.smokingFrequencyRefData),[lt==null?void 0:lt.smokingFrequencyRefData]),ht=reactExports.useMemo(()=>lt==null?void 0:lt.healthAssessment,[lt]),mt=reactExports.useMemo(()=>{var Ct;return JSON.parse(((Ct=lt==null?void 0:lt.healthAssessment)==null?void 0:Ct.streetDrugsUse)||"{}")},[(vt=lt==null?void 0:lt.healthAssessment)==null?void 0:vt.streetDrugsUse]),xt=()=>Object.entries(mt).filter(It=>{var Dt;return(Dt=It[1])==null?void 0:Dt.value}).length>0,Mt=Ct=>{let It=null;const Dt=evaluateDetailText(Ct);if(Dt===null)return It;const kt=parseInt(Dt);return kt>1?It=`${Dt} years`:kt==1&&(It=`${Dt} year`),It};return ut?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):ht?jsxRuntimeExports.jsxs(SummaryCard,{id:"social-assessment",title:"Social assessment",primaryIcon:rt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("social-us")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.SMOKING_BOOL.TITLE,detailText:evaluateDetailText(ht.smokingBool),displayAsError:!1,displayAsOptional:!1}),ht.smokingBool&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.SMOKING_HISTORY.TITLE,detailText:Mt(ht.smokingHistory),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.SMOKING_FREQUENCY.TITLE,detailText:evaluateDetailText(pt[ht.smokingFrequency]),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.SMOKING_STOP.TITLE,detailText:displayRawDate(ht.smokingStopRawMonth,ht.smokingStopRawYear,null,!0),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.TOBACCO_BOOL.TITLE,detailText:evaluateDetailText(ht.tobaccoChew),displayAsError:!1,displayAsOptional:!1}),ht.tobaccoChew&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.TOBACCO_HISTORY.TITLE,detailText:evaluateDetailText(ht.tobaccoChewHistory),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.TOBACCO_STOP.TITLE,detailText:displayRawDate(ht.tobaccoStopRawMonth,ht.tobaccoStopRawYear,null,!0),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.TOBACCO_CLASSES.TITLE,detailText:displayRawDate(ht.tobaccoStopClassesRawMonth,ht.tobaccoStopClassesRawYear,null,!0),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.ALCOHOL_BOOL.TITLE,detailText:evaluateDetailText(ht.alcoholBool),displayAsError:!1,displayAsOptional:!1}),ht.alcoholBool&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.ALCOHOL_FREQUENCY.TITLE,detailText:evaluateDetailText(dt[ht.alcoholFrequency]),displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.ALCOHOL_STOP.TITLE,detailText:displayRawDate(ht.alcoholStopRawMonth,ht.alcoholStopRawYear,null,!0),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.STREET_DRUGS_BOOL.TITLE,detailText:evaluateDetailText(ht.streetDrugs),displayAsError:!1,displayAsOptional:!1}),ht.streetDrugs&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[xt()&&renderArrow(),((Ot=mt==null?void 0:mt.Marijuana)==null?void 0:Ot.value)&&jsxRuntimeExports.jsx(SummaryRow,{headingText:"Marijuana",detailText:"",fallbackText:" ",displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),((At=mt==null?void 0:mt.Cocaine)==null?void 0:At.value)&&jsxRuntimeExports.jsx(SummaryRow,{headingText:"Cocaine",detailText:"",fallbackText:" ",displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),((Rt=mt==null?void 0:mt.Methamphetamine)==null?void 0:Rt.value)&&jsxRuntimeExports.jsx(SummaryRow,{headingText:"Methamphetamine",detailText:"",fallbackText:" ",displayAsError:!1,displayAsOptional:!1,subQuestion:!0}),((zt=mt==null?void 0:mt.OtherDrugs)==null?void 0:zt.value)&&jsxRuntimeExports.jsx(SummaryRow,{headingText:"Other drugs",detailText:evaluateDetailText((Tt=mt==null?void 0:mt.OtherDrugsDescription)==null?void 0:Tt.value),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.MEDICAL_MARIJUANA_CARD_BOOL.TITLE,detailText:evaluateDetailText(ht.medicalMarijuanaCard),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.SOCIAL_SUPPORT_SYSTEM_BOOL.TITLE,detailText:evaluateDetailText(ht.socialSupportSystem),displayAsError:!1,displayAsOptional:!1}),ht.socialSupportSystem&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.SOCIAL_SUPPORT_SYSTEM.TITLE,detailText:evaluateDetailText(ht.socialSupportPeople),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.STILL_WORKING_BOOL.TITLE,detailText:evaluateDetailText(ht.stillWorking),displayAsError:!1,displayAsOptional:!1}),ht.stillWorking!==null&&!ht.stillWorking&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.STILL_WORKING.TITLE,detailText:evaluateDetailText(ht.stillWorkingReason),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.FINANCIAL_ASSISTANCE_BOOL.TITLE,detailText:evaluateDetailText(ht.financialAssisstance),displayAsError:!1,displayAsOptional:!1}),ht.financialAssisstance&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:"financial-assistance",headingText:SOCIAL_US_FIELDS.FINANCIAL_ASSISTANCE_REASON.TITLE,detailText:evaluateDetailText(ht.financialAssisstanceReason),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING_BOOL.TITLE,detailText:evaluateDetailText(ht.difficultyTravellingBool),displayAsError:!1,displayAsOptional:!1}),ht.difficultyTravellingBool&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING.TITLE,detailText:evaluateDetailText(ht.difficultyTravelling),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.SERVED_IN_MILITARY_BOOL.TITLE,detailText:evaluateDetailText(ht.servedInMilitary),displayAsError:!1,displayAsOptional:!1}),ht.servedInMilitary&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.SERVED_IN_MILITARY.TITLE,detailText:evaluateDetailText(ht.servedInMilitaryBranch),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.PHYSICALLY_ACTIVE.TITLE,detailText:evaluateDetailText(ht.physicallyActive),displayAsError:!1,displayAsOptional:!1}),ht.physicallyActive&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.PHYSICALLY_ACTIVE_EXERCISE.TITLE,detailText:evaluateDetailText(ht.physicallyActiveExercise),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.CHEMICALS_BOOL.TITLE,detailText:evaluateDetailText(ht.chemicals),displayAsError:!1,displayAsOptional:!1}),ht.chemicals&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{testIdGroup:"chemicals",headingText:SOCIAL_US_FIELDS.CHEMICALS.TITLE,detailText:evaluateDetailText(ht.chemicalsExposed),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]}),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.RELIGIOUS_BELIEFS_BOOL.TITLE,detailText:evaluateDetailText(ht.religiousBeliefs),displayAsError:!1,displayAsOptional:!1}),ht.religiousBeliefs&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderArrow(),jsxRuntimeExports.jsx(SummaryRow,{headingText:SOCIAL_US_FIELDS.RELIGIOUS_BELIEFS.TITLE,detailText:evaluateDetailText(ht.religiousBeliefsDescription),displayAsError:!1,displayAsOptional:!1,subQuestion:!0})]})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},UPDATE_HA_CONSENT=gql`
  mutation UpdateHealthAssessmentConsent(
    $patientId: ID!
    $patientAcknowledgement: Boolean
    $patientDigitalSignature: String
  ) {
    updateHealthAssessment(
      id: $patientId
      patientAcknowledgement: $patientAcknowledgement
      patientDigitalSignature: $patientDigitalSignature
    ) {
      healthAssessment {
        id
        ...HealthAssessmentConsent
      }
    }
  }
  ${HA_CONSENT_FRAGMENT}
`,HA_CONSENT_QUERY=gql`
  query HealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
      ...HealthAssessmentConsent
    }
  }
  ${HA_CONSENT_FRAGMENT}
`,StyledTypography$1=styled$1("div")`
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
`,StyledLabel$1=styled$1("div")`
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.55556;
  font-weight: bold;
  width: 100%;
`,patientConsentQuestions={acknowledgement:"As the patient, you acknowledge, that with the completion of this form, it constitutes your complete clinical history summary.",patientSignature:'I understand that by typing my name and clicking on "Continue" I am electronically signing this document.'},HAPatientConsent$1=()=>{const{patientId:et}=useParams(),{data:tt,error:rt,loading:nt}=useQuery(HA_CONSENT_QUERY,{variables:{patientId:et}}),[lt]=useMutation(UPDATE_HA_CONSENT);if(nt||rt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ut=(dt,pt)=>{lt({variables:{patientId:et,[dt]:pt}})};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Formik,{enableReinitialize:!0,initialValues:tt.healthAssessment,validateOnBlur:!0,onSubmit:()=>{},children:()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Patient consent",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-pain-assessment",children:[jsxRuntimeExports.jsx(StyledTypography$1,{children:patientConsentQuestions.acknowledgement}),jsxRuntimeExports.jsx(Field,{name:"patientAcknowledgement",component:CheckboxField,width:"366px",alternateStyle:!0,handleMutation:dt=>{ut("patientAcknowledgement",dt)},label:"I acknowledge"}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(StyledTypography$1,{children:patientConsentQuestions.patientSignature}),jsxRuntimeExports.jsx(StyledLabel$1,{children:" Patient Name"}),jsxRuntimeExports.jsx(Field,{name:"patientDigitalSignature",component:InputField$1,label:"Patient Name",width:"366px",alternateStyle:!0,handleMutation:ut,placeHolder:"Type your name"})]})]})})})},HAPatientConsent=et=>{const{patientId:tt,isPso:rt,navigate:nt}=et,{data:lt,loading:ut}=useQuery(HA_CONSENT_QUERY,{variables:{patientId:tt}});if(ut)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const dt=lt==null?void 0:lt.healthAssessment;return dt?jsxRuntimeExports.jsxs(SummaryCard,{id:"consent",title:"Patient consent",primaryIcon:rt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:jsxRuntimeExports.jsx(SvgSuccess,{className:"secondary-icon valid-icon"}),showEdit:!rt,onClick:()=>{rt||nt("consent")},children:[jsxRuntimeExports.jsx(SummaryRow,{headingText:patientConsentQuestions.acknowledgement,detailText:evaluateDetailText(dt.patientAcknowledgement),displayAsError:!1,displayAsOptional:!1}),jsxRuntimeExports.jsx(SummaryRow,{headingText:patientConsentQuestions.patientSignature,detailText:evaluateDetailText(dt.patientDigitalSignature),displayAsError:!1,displayAsOptional:!1})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},HAReviewSummaryUS=({history:et})=>{const{setHaSummaryVisited:tt}=reactExports.useContext(RegistrationContext),{patientId:rt}=useParams(),{data:nt,loading:lt,error:ut}=useQuery(HEALTH_ASSESMENT_US_SUMMARY_QUERY,{variables:{patientId:rt}}),{setError:dt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(ut)return dt()},[ut]),reactExports.useEffect(()=>{tt(!0)},[]),lt)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(!nt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const pt=nt.user.isPso,ht=pt?"Review":"Review and submit",mt=xt=>et.push(xt);return jsxRuntimeExports.jsxs("div",{className:"ha-review-summary-page",children:[jsxRuntimeExports.jsx(PageTitle,{title:ht,idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{className:"newspaper-container",children:[jsxRuntimeExports.jsx(PatientInformation,{isPso:pt,navigate:mt,healthAssessment:nt.healthAssessment}),jsxRuntimeExports.jsx(MedicalHistoryCancer,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(MedicalHistoryIllness,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(MedicalHistoryBiological,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(HAOperationsUS,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(HAMobilityAssessmentUS,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(HAPainAssessmentUS,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(HASocialAssessmentUS,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(HAMedicationsUS,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(AllergiesSensitivities,{isPso:pt,navigate:mt,patientId:rt}),jsxRuntimeExports.jsx(HAPatientConsent,{isPso:pt,navigate:mt,patientId:rt})]})]})},HAReviewSummaryUS$1=withRouter(HAReviewSummaryUS),initialViewedFields$2=["mobilityAid","fallen","fallenHowMany","fallenInjuries","footPain","unsteady","lightheaded"],mobilityFields=["value","other"],YES$1="YES",initalValidationFields=(et,tt,rt)=>{const nt=tt;for(let lt=0;lt<et;lt++)rt.forEach(ut=>nt.push(`mobilityAids.${lt}.${ut}`));return nt},HAMobility$1=et=>{const{validateOnLoad:tt}=et,{patientId:rt}=useParams(),[nt,lt]=reactExports.useState(new Set),{data:ut,error:dt}=useQuery(HA_MOBILITY_QUERY,{variables:{patientId:rt},onCompleted:kt=>{var Yt,Kt;if(!tt)return;const qt=((Kt=(Yt=kt==null?void 0:kt.healthAssessment)==null?void 0:Yt.mobilityAids)==null?void 0:Kt.length)||0,Nt=new Set(initalValidationFields(qt,initialViewedFields$2,mobilityFields));lt(Nt)}}),[pt]=useMutation(UPDATE_HA_MOBILITY),[ht,{loading:mt}]=useMutation(ADD_MOBILITY_AID,{refetchQueries:["HealthAssessment"]}),[xt,{loading:Mt}]=useMutation(DELETE_MOBILITY_AID,{refetchQueries:["HealthAssessment"]}),[vt]=useMutation(UPDATE_MOBILITY_AID,{refetchQueries:["HealthAssessment"]});if(dt||!(ut!=null&&ut.healthAssessment))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Ot=ut.healthAssessment,At=Ot.id,Rt=ut.mobilityAidRefData,zt=Ot.mobilityAid===YES$1,Tt=kt=>{const qt=[...nt];qt.push(kt),lt(new Set(qt))},Ct=(kt,qt)=>{pt({variables:{haId:At,patientId:rt,[kt]:qt}}),Tt(kt)},It=(kt,qt,Nt,Yt)=>{vt({variables:{id:kt,patientId:rt,[qt]:Nt}}),Tt(`mobilityAids.${Yt}.${qt}`)},Dt=()=>{const kt=Ot.mobilityAids.length>1;return Ot.mobilityAids.map((qt,Nt)=>{const Yt=`mobilityAids ${Nt}`,Kt=resolveListDataValue(qt.value,Rt);return jsxRuntimeExports.jsxs("div",{className:"infinite-dropdown-item",children:[jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:Yt,title:`Mobility Aid ${Nt+1}`,children:[jsxRuntimeExports.jsx(DropDownField,{inputName:Yt,placeholder:"Please select",options:Rt,defaultValue:qt.value,controlled:!0,onChange:Jt=>{It(qt==null?void 0:qt.id,"value",Jt.target.value,Nt)}}),Kt==="Other"&&jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:qt.other,inputName:`${Yt}-other`,placeholder:"Please describe",inputType:"text",defaultValue:qt.other,onBlur:Jt=>{It(qt==null?void 0:qt.id,"other",Jt.target.value,Nt)}})]}),kt&&jsxRuntimeExports.jsx("div",{className:"remove-item",children:jsxRuntimeExports.jsxs("div",{onClick:()=>{Mt||xt({variables:{id:qt.id,patientId:rt}})},children:[jsxRuntimeExports.jsx(SvgMinusNoFill,{className:"icon"}),"Remove"]})})]},Yt)})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Mobility-fall risk assessment",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-medical-history-cancer",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MOBILITY_FIELDS.MOBILITY_AID.NAME,title:MOBILITY_FIELDS.MOBILITY_AID.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:MOBILITY_FIELDS.MOBILITY_AID.MORE_INFO,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MOBILITY_FIELDS.MOBILITY_AID.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Ot.mobilityAid,itemSelected:kt=>{const qt=kt.id;Ct("mobilityAid",qt),qt===YES$1&&qt!==(Ot==null?void 0:Ot.mobilityAid)&&ht({variables:{haId:At,patientId:rt}})}})})}),zt&&Dt(),!!Ot.mobilityAids.length&&zt&&jsxRuntimeExports.jsxs("div",{className:"additional-item-button",onClick:()=>{mt||ht({variables:{haId:At,patientId:rt}})},children:[jsxRuntimeExports.jsx(AddIcon$1,{className:"icon",color:"primary"}),"Add another mobility aid"]}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MOBILITY_FIELDS.FALLEN.NAME,title:MOBILITY_FIELDS.FALLEN.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MOBILITY_FIELDS.FALLEN.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Ot.fallen,itemSelected:kt=>{const qt=kt.id;Ct("fallen",qt)}})}),Ot.fallen===YES$1&&jsxRuntimeExports.jsxs("div",{className:"infinite-item",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MOBILITY_FIELDS.FALLEN_HOW_MANY.NAME,title:MOBILITY_FIELDS.FALLEN_HOW_MANY.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Ot.fallenHowMany,inputName:"fallenHowMany",inputType:"number",defaultValue:Ot.fallenHowMany,onBlur:kt=>{Ct("fallenHowMany",kt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MOBILITY_FIELDS.FALLEN_INJURIES.NAME,title:MOBILITY_FIELDS.FALLEN_INJURIES.TITLE,children:jsxRuntimeExports.jsx(FreeTextArea,{inputName:MOBILITY_FIELDS.FALLEN_INJURIES.NAME,defaultValue:Ot.fallenInjuries,onBlur:kt=>{Ct("fallenInjuries",kt.target.value)}})})]},"fallenYes"),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MOBILITY_FIELDS.FOOT_PAIN.NAME,title:MOBILITY_FIELDS.FOOT_PAIN.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MOBILITY_FIELDS.FOOT_PAIN.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Ot.footPain,itemSelected:kt=>{const qt=kt.id;Ct("footPain",qt)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MOBILITY_FIELDS.UNSTEADY.NAME,title:MOBILITY_FIELDS.UNSTEADY.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MOBILITY_FIELDS.UNSTEADY.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Ot.unsteady,itemSelected:kt=>{const qt=kt.id;Ct("unsteady",qt)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:MOBILITY_FIELDS.LIGHTHEADED.NAME,title:MOBILITY_FIELDS.LIGHTHEADED.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:MOBILITY_FIELDS.LIGHTHEADED.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Ot.lightheaded,itemSelected:kt=>{const qt=kt.id;Ct("lightheaded",qt)}})})]})]})},initialViewedFields$1=["biologicalGender"],initialValidationFields=et=>et,GenderTitle=styled$1("div")`

  font-style: normal;
  font-weight: 700;
  font-size: 29px;
  line-height: 36px;
  color ${et=>et.theme.palette.grey[600]};
  margin-bottom: 20px;
`,getValidationRules=et=>{const tt={};return et.forEach(rt=>{tt[rt]=BIOLOGICAL_RULES[rt]}),tt},runValidation=(et,tt)=>{const rt=getValidationRules(tt);return validate(et,rt,{fullMessages:!1})},HABiological=et=>{const{validateOnLoad:tt}=et,{patientId:rt}=useParams(),[nt,lt]=reactExports.useState(new Set),[ut,dt]=reactExports.useState(Object),{data:pt,error:ht}=useQuery(HA_BIOLOGICAL_QUERY,{variables:{patientId:rt},onCompleted:()=>{if(!tt)return;const At=new Set(initialValidationFields(initialViewedFields$1));lt(At),dt(runValidation(pt==null?void 0:pt.healthAssessment,At))}}),[mt]=useMutation(UPDATE_HA_BIOLOGICAL,{onCompleted:At=>{var Rt;dt(runValidation((Rt=At==null?void 0:At.updateHaBiological)==null?void 0:Rt.healthAssessment,nt))}}),xt=At=>{switch(At){case FEMALE:mt({variables:{haId:vt,patientId:rt,psaDateRawMonth:"",psaDateRawDay:"",psaDateRawYear:"",psaScore:"",psaLocation:"",stdMale:""}});break;case MALE:mt({variables:{haId:vt,patientId:rt,periodAge:"",abnormalMammograms:"",breastBiopsy:"",periodWhen:"",menopause:"",menopauseAge:"",biologicalPregnant:"",pregnantCount:"",pregnantDeliveries:"",pregnantAge:"",breastfeed:"",hormones:"",hormonesDuration:"",braSize:"",nippleDischarge:"",nippleDischargeExplain:"",vaginalBleeding:"",vaginalBleedingExplain:"",vaginalDischarge:"",vaginalDischargeExplain:"",stdFemale:"",papSmearDateRawMonth:"",papSmearDateRawDay:"",papSmearDateRawYear:"",mammogramDateRawMonth:"",mammogramDateRawDay:"",mammogramDateRawYear:""}});break;default:mt({variables:{haId:vt,patientId:rt,periodAge:"",abnormalMammograms:"",breastBiopsy:"",periodWhen:"",menopause:"",menopauseAge:"",biologicalPregnant:"",pregnantCount:"",pregnantDeliveries:"",pregnantAge:"",breastfeed:"",hormones:"",hormonesDuration:"",braSize:"",nippleDischarge:"",nippleDischargeExplain:"",vaginalBleeding:"",vaginalBleedingExplain:"",vaginalDischarge:"",vaginalDischargeExplain:"",stdFemale:"",papSmearDateRawMonth:"",papSmearDateRawDay:"",papSmearDateRawYear:"",mammogramDateRawMonth:"",mammogramDateRawDay:"",mammogramDateRawYear:"",psaDateRawMonth:"",psaDateRawDay:"",psaDateRawYear:"",psaScore:"",psaLocation:"",stdMale:""}})}};if(ht||!(pt!=null&&pt.healthAssessment))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Mt=pt.healthAssessment,vt=Mt.id,Ot=(At,Rt)=>{mt({variables:{haId:vt,patientId:rt,[At]:Rt}}),At==="biologicalGender"&&xt(Rt)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Medical history: 3",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-medical-history-biological",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.GENDER.NAME,title:BIOLOGICAL_FIELDS.GENDER.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.GENDER.NAME,options:SegementedInputGender,defaultSelected:Mt.biologicalGender,itemSelected:At=>{const Rt=At.id;Ot("biologicalGender",Rt)}})}),Mt.biologicalGender===FEMALE&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(GenderTitle,{children:"Female History"}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PERIOD_AGE.NAME,title:BIOLOGICAL_FIELDS.PERIOD_AGE.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.periodAge,inputName:"periodAge",inputType:"number",defaultValue:Mt.periodAge,onBlur:At=>{Ot("periodAge",At.target.value)},errors:ut==null?void 0:ut.periodAge})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.ABNORMAL_MAMMOGRAMS.NAME,title:BIOLOGICAL_FIELDS.ABNORMAL_MAMMOGRAMS.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.ABNORMAL_MAMMOGRAMS.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.abnormalMammograms,itemSelected:At=>{const Rt=At.id;Ot("abnormalMammograms",Rt)},errors:ut==null?void 0:ut.abnormalMammograms})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.BREAST_BIOPSY.NAME,title:BIOLOGICAL_FIELDS.BREAST_BIOPSY.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.BREAST_BIOPSY.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.breastBiopsy,itemSelected:At=>{const Rt=At.id;Ot("breastBiopsy",Rt)},errors:ut==null?void 0:ut.breastBiopsy})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PERIOD_WHEN.NAME,title:BIOLOGICAL_FIELDS.PERIOD_WHEN.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:BIOLOGICAL_FIELDS.PERIOD_WHEN.MORE_INFO,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.periodWhen,inputName:"periodWhen",inputType:"text",defaultValue:Mt.periodWhen,onBlur:At=>{Ot("periodWhen",At.target.value)},errors:ut==null?void 0:ut.periodWhen})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.MENOPAUSE.NAME,title:BIOLOGICAL_FIELDS.MENOPAUSE.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.MENOPAUSE.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.menopause,itemSelected:At=>{const Rt=At.id;Ot("menopause",Rt)},errors:ut==null?void 0:ut.menopause})}),Mt.menopause===YES$2&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.MENOPAUSE_AGE.NAME,title:BIOLOGICAL_FIELDS.MENOPAUSE_AGE.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.menopauseAge,inputName:"menopauseAge",inputType:"number",defaultValue:Mt.menopauseAge,onBlur:At=>{Ot("menopauseAge",At.target.value)},errors:ut==null?void 0:ut.menopauseAge})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PREGNANT.NAME,title:BIOLOGICAL_FIELDS.PREGNANT.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.PREGNANT.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.biologicalPregnant,itemSelected:At=>{const Rt=At.id;Ot("biologicalPregnant",Rt)},errors:ut==null?void 0:ut.biologicalPregnant})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PREGNANT_COUNT.NAME,title:BIOLOGICAL_FIELDS.PREGNANT_COUNT.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.pregnantCount,inputName:"pregnantCount",inputType:"number",defaultValue:Mt.pregnantCount,onBlur:At=>{Ot("pregnantCount",At.target.value)},errors:ut==null?void 0:ut.pregnantCount})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PREGNANT_DELIVERIES.NAME,title:BIOLOGICAL_FIELDS.PREGNANT_DELIVERIES.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.pregnantDeliveries,inputName:"pregnantDeliveries",inputType:"number",defaultValue:Mt.pregnantDeliveries,onBlur:At=>{Ot("pregnantDeliveries",At.target.value)},errors:ut==null?void 0:ut.pregnantDeliveries})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PREGNANT_AGE.NAME,title:BIOLOGICAL_FIELDS.PREGNANT_AGE.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.pregnantAge,inputName:"pregnantAge",inputType:"number",defaultValue:Mt.pregnantAge,onBlur:At=>{Ot("pregnantAge",At.target.value)},errors:ut==null?void 0:ut.pregnantAge})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.BREASTFEED.NAME,title:BIOLOGICAL_FIELDS.BREASTFEED.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.BREASTFEED.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.breastfeed,itemSelected:At=>{const Rt=At.id;Ot("breastfeed",Rt)},errors:ut==null?void 0:ut.breastfeed})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.HORMONES.NAME,title:BIOLOGICAL_FIELDS.HORMONES.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.HORMONES.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.hormones,itemSelected:At=>{const Rt=At.id;Ot("hormones",Rt)},errors:ut==null?void 0:ut.hormones})}),Mt.hormones===YES$2&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.HORMONES_DURATION.NAME,title:BIOLOGICAL_FIELDS.HORMONES_DURATION.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.hormonesDuration,inputName:"hormonesDuration",inputType:"text",defaultValue:Mt.hormonesDuration,onBlur:At=>{Ot("hormonesDuration",At.target.value)},errors:ut==null?void 0:ut.hormonesDuration})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.BRA_SIZE.NAME,title:BIOLOGICAL_FIELDS.BRA_SIZE.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.braSize,inputName:"braSize",inputType:"text",defaultValue:Mt.braSize,onBlur:At=>{Ot("braSize",At.target.value)},errors:ut==null?void 0:ut.braSize})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.NIPPLE_DISCHARGE.NAME,title:BIOLOGICAL_FIELDS.NIPPLE_DISCHARGE.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.NIPPLE_DISCHARGE.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.nippleDischarge,itemSelected:At=>{const Rt=At.id;Ot("nippleDischarge",Rt)},errors:ut==null?void 0:ut.nippleDischarge})}),Mt.nippleDischarge===YES$2&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.NIPPLE_DISCHARGE_EXPLAIN.NAME,title:BIOLOGICAL_FIELDS.NIPPLE_DISCHARGE_EXPLAIN.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.nippleDischargeExplain,inputName:"nippleDischargeExplain",inputType:"text",defaultValue:Mt.nippleDischargeExplain,onBlur:At=>{Ot("nippleDischargeExplain",At.target.value)},errors:ut==null?void 0:ut.nippleDischargeExplain})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.VAGINAL_BLEEDING.NAME,title:BIOLOGICAL_FIELDS.VAGINAL_BLEEDING.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.VAGINAL_BLEEDING.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.vaginalBleeding,itemSelected:At=>{const Rt=At.id;Ot("vaginalBleeding",Rt)},errors:ut==null?void 0:ut.vaginalBleeding})}),Mt.vaginalBleeding===YES$2&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.VAGINAL_BLEEDING_EXPLAIN.NAME,title:BIOLOGICAL_FIELDS.VAGINAL_BLEEDING_EXPLAIN.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.vaginalBleedingExplain,inputName:"vaginalBleedingExplain",inputType:"text",defaultValue:Mt.vaginalBleedingExplain,onBlur:At=>{Ot("vaginalBleedingExplain",At.target.value)},errors:ut==null?void 0:ut.vaginalBleedingExplain})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.VAGINAL_DISCHARGE.NAME,title:BIOLOGICAL_FIELDS.VAGINAL_DISCHARGE.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.VAGINAL_DISCHARGE.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.vaginalDischarge,itemSelected:At=>{const Rt=At.id;Ot("vaginalDischarge",Rt)},errors:ut==null?void 0:ut.vaginalDischarge})}),Mt.vaginalDischarge===YES$2&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.VAGINAL_DISCHARGE_EXPLAIN.NAME,title:BIOLOGICAL_FIELDS.VAGINAL_DISCHARGE_EXPLAIN.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.vaginalDischargeExplain,inputName:"vaginalDischargeExplain",inputType:"text",defaultValue:Mt.vaginalDischargeExplain,onBlur:At=>{Ot("vaginalDischargeExplain",At.target.value)},errors:ut==null?void 0:ut.vaginalDischargeExplain})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.STD_FEMALE.NAME,title:BIOLOGICAL_FIELDS.STD_FEMALE.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.STD_FEMALE.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.stdFemale,itemSelected:At=>{const Rt=At.id;Ot("stdFemale",Rt)},errors:ut==null?void 0:ut.stdFemale})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PAP_SMEAR_DATE.NAME,title:BIOLOGICAL_FIELDS.PAP_SMEAR_DATE.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:BIOLOGICAL_FIELDS.PAP_SMEAR_DATE.MORE_INFO,children:jsxRuntimeExports.jsx(HADate,{dayValue:Mt.papSmearDateRawDay,dayField:"papSmearDateRawDay",monthValue:Mt.papSmearDateRawMonth,monthField:"papSmearDateRawMonth",yearValue:Mt.papSmearDateRawYear,yearField:"papSmearDateRawYear",onChange:Ot})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.MAMMOGRAM_DATE.NAME,title:BIOLOGICAL_FIELDS.MAMMOGRAM_DATE.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:BIOLOGICAL_FIELDS.MAMMOGRAM_DATE.MORE_INFO,children:jsxRuntimeExports.jsx(HADate,{dayValue:Mt.mammogramDateRawDay,dayField:"mammogramDateRawDay",monthValue:Mt.mammogramDateRawMonth,monthField:"mammogramDateRawMonth",yearValue:Mt.mammogramDateRawYear,yearField:"mammogramDateRawYear",onChange:Ot})})})]},"genderFemale"),Mt.biologicalGender===MALE&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(GenderTitle,{children:"Male History"}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PSA_DATE.NAME,title:BIOLOGICAL_FIELDS.PSA_DATE.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:BIOLOGICAL_FIELDS.PSA_DATE.MORE_INFO,children:jsxRuntimeExports.jsx(HADate,{dayValue:Mt.psaDateRawDay,dayField:"psaDateRawDay",monthValue:Mt.psaDateRawMonth,monthField:"psaDateRawMonth",yearValue:Mt.psaDateRawYear,yearField:"psaDateRawYear",onChange:Ot})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PSA_SCORE.NAME,title:BIOLOGICAL_FIELDS.PSA_SCORE.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.psaScore,inputName:"psaScore",inputType:"text",defaultValue:Mt.psaScore,onBlur:At=>{Ot("psaScore",At.target.value)},errors:ut==null?void 0:ut.psaScore})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.PSA_LOCATION.NAME,title:BIOLOGICAL_FIELDS.PSA_LOCATION.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:Mt.psaLocation,inputName:"psaLocation",inputType:"text",defaultValue:Mt.psaLocation,onBlur:At=>{Ot("psaLocation",At.target.value)},errors:ut==null?void 0:ut.psaLocation})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:BIOLOGICAL_FIELDS.STD_MALE.NAME,title:BIOLOGICAL_FIELDS.STD_MALE.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:BIOLOGICAL_FIELDS.STD_MALE.NAME,options:SegementedInputYesNoUnsure,defaultSelected:Mt.stdMale,itemSelected:At=>{const Rt=At.id;Ot("stdMale",Rt)},errors:ut==null?void 0:ut.stdMale})})]},"genderMale")]})]})},CheckboxContainer=styled$1("section")`
  background-color: ${et=>et.theme.palette.grey[100]};
  padding-bottom: 10px;
  margin-bottom: 10px;
`,OtherDrugsHeading=styled$1("section")`
  color: grey;
  font-weight: bold;
  margin-bottom: 10px;
`,SmokingHistoryUom=styled$1("section")`
  display: inline;
  font-size: 16px;
  font-weight: bold;
  margin-left: 10px;
`,SubHeading$2=styled$1("section")`
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
`,HASocialUS=()=>{var Rt,zt;const{patientId:et}=useParams(),{data:tt,error:rt}=useQuery(HA_SOCIAL_US_QUERY,{variables:{patientId:et}}),[nt,{loading:lt}]=useMutation(UPDATE_HA_SOCIAL_US);if(rt||!(tt!=null&&tt.healthAssessment))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ut=tt.healthAssessment,dt=tt.smokingFrequencyRefData,pt=tt.alcoholFrequencyRefData,ht=tt.streetDrugsRefData,mt=JSON.parse(tt.healthAssessment.streetDrugsUse||"{}"),xt=ut.id,Mt=[...dt].sort((Tt,Ct)=>Tt.name.localeCompare(Ct.name,void 0,{numeric:!0,sensitivity:"base"})),vt=(Tt,Ct)=>{nt({variables:{haId:xt,patientId:et,[Tt]:Ct}})},Ot=(Tt,Ct)=>{mt[Tt.name]={id:Tt.id,value:Ct,name:Tt.name},Tt.name==="OtherDrugs"&&(mt.OtherDrugsDescription={id:"-1",name:"OtherDrugsDescription",value:""}),nt({variables:{haId:xt,patientId:et,streetDrugsUse:JSON.stringify(mt)}})},At=()=>[...ht].map(Tt=>{var Ct;return jsxRuntimeExports.jsx(AccordionCheckboxItem,{disabled:lt,label:Tt.name,value:(Ct=mt[Tt.name])==null?void 0:Ct.value,onClick:It=>Ot(Tt,It)},Tt.name)});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Social assessment",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-social-assessment-us",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.SMOKING_BOOL.NAME,title:SOCIAL_US_FIELDS.SMOKING_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.SMOKING_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.smokingBool,itemSelected:Tt=>{vt("smokingBool",Tt)}})}),ut.smokingBool&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.SMOKING_HISTORY.NAME,title:SOCIAL_US_FIELDS.SMOKING_HISTORY.TITLE,children:jsxRuntimeExports.jsxs(MoreInfoText,{moreInfoText:SOCIAL_US_FIELDS.SMOKING_HISTORY.MORE_INFO,children:[jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.SMOKING_HISTORY.NAME,inputType:"number",defaultValue:ut.smokingHistory,onBlur:Tt=>{vt("smokingHistory",Tt.target.value)},inputStyle:{width:"80px"}}),jsxRuntimeExports.jsx(SmokingHistoryUom,{children:"years"})]})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.SMOKING_FREQUENCY.NAME,title:SOCIAL_US_FIELDS.SMOKING_FREQUENCY.TITLE,children:jsxRuntimeExports.jsx(DropDownField,{inputName:SOCIAL_US_FIELDS.SMOKING_FREQUENCY.NAME,placeholder:"Please select",options:Mt,defaultValue:ut.smokingFrequency,controlled:!0,onChange:Tt=>{vt("smokingFrequency",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.SMOKING_STOP.NAME,title:SOCIAL_US_FIELDS.SMOKING_STOP.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:SOCIAL_US_FIELDS.SMOKING_STOP.MORE_INFO,children:jsxRuntimeExports.jsx(HAMonthYear,{monthValue:ut.smokingStopRawMonth,monthField:"smokingStopRawMonth",yearValue:ut.smokingStopRawYear,yearField:"smokingStopRawYear",onChange:vt})})})]}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.TOBACCO_BOOL.NAME,title:SOCIAL_US_FIELDS.TOBACCO_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.TOBACCO_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.tobaccoChew,itemSelected:Tt=>{vt("tobaccoChew",Tt)}})}),ut.tobaccoChew&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.TOBACCO_HISTORY.NAME,title:SOCIAL_US_FIELDS.TOBACCO_HISTORY.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.TOBACCO_HISTORY.NAME,inputType:"text",defaultValue:ut.tobaccoChewHistory,onBlur:Tt=>{vt("tobaccoChewHistory",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.TOBACCO_STOP.NAME,title:SOCIAL_US_FIELDS.TOBACCO_STOP.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:SOCIAL_US_FIELDS.TOBACCO_STOP.MORE_INFO,children:jsxRuntimeExports.jsx(HAMonthYear,{monthValue:ut.tobaccoStopRawMonth,monthField:"tobaccoStopRawMonth",yearValue:ut.tobaccoStopRawYear,yearField:"tobaccoStopRawYear",onChange:vt})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.TOBACCO_CLASSES.NAME,title:SOCIAL_US_FIELDS.TOBACCO_CLASSES.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:SOCIAL_US_FIELDS.TOBACCO_CLASSES.MORE_INFO,children:jsxRuntimeExports.jsx(HAMonthYear,{monthValue:ut.tobaccoStopClassesRawMonth,monthField:"tobaccoStopClassesRawMonth",yearValue:ut.tobaccoStopClassesRawYear,yearField:"tobaccoStopClassesRawYear",onChange:vt})})})]}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.ALCOHOL_BOOL.NAME,title:SOCIAL_US_FIELDS.ALCOHOL_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.ALCOHOL_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.alcoholBool,itemSelected:Tt=>{vt("alcoholBool",Tt)}})}),ut.alcoholBool&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.ALCOHOL_FREQUENCY.NAME,title:SOCIAL_US_FIELDS.ALCOHOL_FREQUENCY.TITLE,children:jsxRuntimeExports.jsx(DropDownField,{inputName:SOCIAL_US_FIELDS.ALCOHOL_FREQUENCY.NAME,placeholder:"Please select",options:pt,defaultValue:ut.alcoholFrequency,controlled:!0,onChange:Tt=>{vt("alcoholFrequency",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.ALCOHOL_STOP.NAME,title:SOCIAL_US_FIELDS.ALCOHOL_STOP.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:SOCIAL_US_FIELDS.ALCOHOL_STOP.MORE_INFO,children:jsxRuntimeExports.jsx(HAMonthYear,{monthValue:ut.alcoholStopRawMonth,monthField:"alcoholStopRawMonth",yearValue:ut.alcoholStopRawYear,yearField:"alcoholStopRawYear",onChange:vt})})})]}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.STREET_DRUGS_BOOL.NAME,title:SOCIAL_US_FIELDS.STREET_DRUGS_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.STREET_DRUGS_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.streetDrugs,itemSelected:Tt=>{vt("streetDrugs",Tt)}})}),ut.streetDrugs&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SubHeading$2,{children:"Please describe which ones?"}),jsxRuntimeExports.jsxs(CheckboxContainer,{children:[At(),jsxRuntimeExports.jsx(AccordionCheckboxItem,{label:"Other drugs",value:((Rt=mt==null?void 0:mt.OtherDrugs)==null?void 0:Rt.value)||!1,onClick:Tt=>Ot({name:"OtherDrugs",id:"-1"},Tt),children:mt!=null&&mt.OtherDrugs?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(OtherDrugsHeading,{children:"Please describe other drugs"}),jsxRuntimeExports.jsx(FreeTextField$1,{inputName:"OtherDrugsDescription",inputType:"text",defaultValue:(zt=mt==null?void 0:mt.OtherDrugsDescription)==null?void 0:zt.value,onBlur:Tt=>{Ot({name:"OtherDrugsDescription",id:"-1"},Tt.target.value)}})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},"OtherDrugs")]})]}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.MEDICAL_MARIJUANA_CARD_BOOL.NAME,title:SOCIAL_US_FIELDS.MEDICAL_MARIJUANA_CARD_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.MEDICAL_MARIJUANA_CARD_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.medicalMarijuanaCard,itemSelected:Tt=>{vt("medicalMarijuanaCard",Tt)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.SOCIAL_SUPPORT_SYSTEM_BOOL.NAME,title:SOCIAL_US_FIELDS.SOCIAL_SUPPORT_SYSTEM_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.SOCIAL_SUPPORT_SYSTEM_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.socialSupportSystem,itemSelected:Tt=>{vt("socialSupportSystem",Tt)}})}),ut.socialSupportSystem&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.SOCIAL_SUPPORT_SYSTEM.NAME,title:SOCIAL_US_FIELDS.SOCIAL_SUPPORT_SYSTEM.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.SOCIAL_SUPPORT_SYSTEM.NAME,inputType:"text",defaultValue:ut.socialSupportPeople,onBlur:Tt=>{vt("socialSupportPeople",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.STILL_WORKING_BOOL.NAME,title:SOCIAL_US_FIELDS.STILL_WORKING_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.STILL_WORKING_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.stillWorking,itemSelected:Tt=>{vt("stillWorking",Tt)}})}),ut.stillWorking===!1&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.STILL_WORKING.NAME,title:SOCIAL_US_FIELDS.STILL_WORKING.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.STILL_WORKING.NAME,inputType:"text",defaultValue:ut.stillWorkingReason,onBlur:Tt=>{vt("stillWorkingReason",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.FINANCIAL_ASSISTANCE_BOOL.NAME,title:SOCIAL_US_FIELDS.FINANCIAL_ASSISTANCE_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.FINANCIAL_ASSISTANCE_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.financialAssisstance,itemSelected:Tt=>{vt("financialAssisstance",Tt)}})}),ut.financialAssisstance&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.FINANCIAL_ASSISTANCE_REASON.NAME,title:SOCIAL_US_FIELDS.FINANCIAL_ASSISTANCE_REASON.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.FINANCIAL_ASSISTANCE_REASON.NAME,inputType:"text",defaultValue:ut.financialAssisstanceReason,onBlur:Tt=>{vt("financialAssisstanceReason",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING_BOOL.NAME,title:SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.difficultyTravellingBool,itemSelected:Tt=>{const Ct=Tt;vt(SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING_BOOL.NAME,Ct)}})}),ut.difficultyTravellingBool&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING.NAME,title:SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING.NAME,inputType:"text",defaultValue:ut.difficultyTravelling,onBlur:Tt=>{vt(SOCIAL_US_FIELDS.DIFFICULTY_TRAVELLING.NAME,Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.SERVED_IN_MILITARY_BOOL.NAME,title:SOCIAL_US_FIELDS.SERVED_IN_MILITARY_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.SERVED_IN_MILITARY_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.servedInMilitary,itemSelected:Tt=>{vt("servedInMilitary",Tt)}})}),ut.servedInMilitary&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.SERVED_IN_MILITARY.NAME,title:SOCIAL_US_FIELDS.SERVED_IN_MILITARY.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.SERVED_IN_MILITARY.NAME,inputType:"text",defaultValue:ut.servedInMilitaryBranch,onBlur:Tt=>{vt("servedInMilitaryBranch",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.PHYSICALLY_ACTIVE.NAME,title:SOCIAL_US_FIELDS.PHYSICALLY_ACTIVE.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.PHYSICALLY_ACTIVE.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.physicallyActive,itemSelected:Tt=>{vt("physicallyActive",Tt)}})}),ut.physicallyActive&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.PHYSICALLY_ACTIVE_EXERCISE.NAME,title:SOCIAL_US_FIELDS.PHYSICALLY_ACTIVE_EXERCISE.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.PHYSICALLY_ACTIVE_EXERCISE.NAME,inputType:"text",defaultValue:ut.physicallyActiveExercise,onBlur:Tt=>{vt("physicallyActiveExercise",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.CHEMICALS_BOOL.NAME,title:SOCIAL_US_FIELDS.CHEMICALS_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.CHEMICALS_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.chemicals,itemSelected:Tt=>{vt("chemicals",Tt)}})}),ut.chemicals&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.CHEMICALS.NAME,title:SOCIAL_US_FIELDS.CHEMICALS.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.CHEMICALS.NAME,inputType:"text",defaultValue:ut.chemicalsExposed,onBlur:Tt=>{vt("chemicalsExposed",Tt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.RELIGIOUS_BELIEFS_BOOL.NAME,title:SOCIAL_US_FIELDS.RELIGIOUS_BELIEFS_BOOL.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:SOCIAL_US_FIELDS.RELIGIOUS_BELIEFS_BOOL.NAME,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:ut.religiousBeliefs,itemSelected:Tt=>{vt("religiousBeliefs",Tt)}})}),ut.religiousBeliefs&&jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:SOCIAL_US_FIELDS.RELIGIOUS_BELIEFS.NAME,title:SOCIAL_US_FIELDS.RELIGIOUS_BELIEFS.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:SOCIAL_US_FIELDS.RELIGIOUS_BELIEFS.NAME,inputType:"text",defaultValue:ut.religiousBeliefsDescription,onBlur:Tt=>{vt("religiousBeliefsDescription",Tt.target.value)}})})]})]})},initialViewedFields=["inPain","painStart","painSeverity","painLocation","painLength","painManagement","painBetter","painWorse"],StyledQuestionsBackground=styled$1("div")`
  background-color: ${et=>et.theme.palette.grey[100]};
  padding: 24px 24px 42px 14px;
`,HAMobility=et=>{const{validateOnLoad:tt}=et,{patientId:rt}=useParams(),[nt,lt]=reactExports.useState(new Set),{data:ut,error:dt}=useQuery(HA_PAIN_QUERY,{variables:{patientId:rt},onCompleted:()=>{if(!tt)return;const Dt=new Set(initialViewedFields);lt(Dt)}}),[pt,{loading:ht}]=useMutation(UPDATE_HA_PAIN);if(dt||!(ut!=null&&ut.healthAssessment))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const mt=ut.healthAssessment,xt=ut.painQualityRefData,Mt=mt.id,vt=mt.inPain===YES$2,Ot=JSON.parse((mt==null?void 0:mt.painQuality)||"{}"),At=Dt=>{const kt=[...nt];kt.push(Dt),lt(new Set(kt))},Rt=(Dt,kt)=>{pt({variables:{haId:Mt,patientId:rt,[Dt]:kt}}),At(Dt)},zt=(Dt,kt)=>{Ot[Dt.key]={id:Dt.id,value:kt,name:Dt.name},Rt(PAIN_ASSESSMENT_FIELDS.PAIN_QUALITY.NAME,JSON.stringify(Ot))},Ct=Array.from(Array(11).keys()).map(Dt=>Dt.toString()).map(Dt=>({id:Dt,name:Dt})),It=()=>xt.map(Dt=>{var kt;return jsxRuntimeExports.jsx(AccordionCheckboxItem,{label:Dt.name,disabled:ht,value:(kt=Ot[Dt.key])==null?void 0:kt.value,onClick:qt=>zt(Dt,qt)},Dt.key)});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PageTitle,{title:"Pain assessment",idPrefix:"ha"}),jsxRuntimeExports.jsxs("div",{id:"ha-fields",className:"ha-pain-assessment",children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.IN_PAIN.NAME,title:PAIN_ASSESSMENT_FIELDS.IN_PAIN.TITLE,children:jsxRuntimeExports.jsx(SegmentedInput,{fieldName:PAIN_ASSESSMENT_FIELDS.IN_PAIN.NAME,options:SegementedInputYesNoUnsure,defaultSelected:mt.inPain,itemSelected:Dt=>{const kt=Dt.id;Rt(PAIN_ASSESSMENT_FIELDS.IN_PAIN.NAME,kt)}})}),vt&&jsxRuntimeExports.jsxs(StyledQuestionsBackground,{children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.PAIN_START.NAME,title:PAIN_ASSESSMENT_FIELDS.PAIN_START.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:PAIN_ASSESSMENT_FIELDS.PAIN_START.MORE_INFO,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:mt.painStart,inputName:PAIN_ASSESSMENT_FIELDS.PAIN_START.NAME,defaultValue:mt.painStart,onBlur:Dt=>{Rt(PAIN_ASSESSMENT_FIELDS.PAIN_START.NAME,Dt.target.value)}})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.PAIN_SEVERITY.NAME,title:PAIN_ASSESSMENT_FIELDS.PAIN_SEVERITY.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:PAIN_ASSESSMENT_FIELDS.PAIN_SEVERITY.MORE_INFO,children:jsxRuntimeExports.jsx(DropDownField,{inputName:PAIN_ASSESSMENT_FIELDS.PAIN_SEVERITY.NAME,placeholder:"Please select",options:Ct,defaultValue:mt.painSeverity,controlled:!0,onChange:Dt=>{Rt(PAIN_ASSESSMENT_FIELDS.PAIN_SEVERITY.NAME,Dt.target.value)}})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.PAIN_LOCATION.NAME,title:PAIN_ASSESSMENT_FIELDS.PAIN_LOCATION.TITLE,children:jsxRuntimeExports.jsx(MoreInfoText,{moreInfoText:PAIN_ASSESSMENT_FIELDS.PAIN_LOCATION.MORE_INFO,children:jsxRuntimeExports.jsx(FreeTextArea,{inputName:PAIN_ASSESSMENT_FIELDS.PAIN_LOCATION.NAME,defaultValue:mt.painLocation,onBlur:Dt=>{Rt(PAIN_ASSESSMENT_FIELDS.PAIN_LOCATION.NAME,Dt.target.value)}})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.PAIN_QUALITY.NAME,title:PAIN_ASSESSMENT_FIELDS.PAIN_QUALITY.TITLE,children:It()}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.PAIN_LENGTH.NAME,title:PAIN_ASSESSMENT_FIELDS.PAIN_LENGTH.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:mt.painLength,inputName:PAIN_ASSESSMENT_FIELDS.PAIN_LENGTH.NAME,defaultValue:mt.painLength,onBlur:Dt=>{Rt(PAIN_ASSESSMENT_FIELDS.PAIN_LENGTH.NAME,Dt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.PAIN_MANAGEMENT.NAME,title:PAIN_ASSESSMENT_FIELDS.PAIN_MANAGEMENT.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:mt.painManagement,inputName:PAIN_ASSESSMENT_FIELDS.PAIN_MANAGEMENT.NAME,defaultValue:mt.painManagement,onBlur:Dt=>{Rt(PAIN_ASSESSMENT_FIELDS.PAIN_MANAGEMENT.NAME,Dt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.PAIN_BETTER.NAME,title:PAIN_ASSESSMENT_FIELDS.PAIN_BETTER.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:mt.painBetter,inputName:PAIN_ASSESSMENT_FIELDS.PAIN_BETTER.NAME,defaultValue:mt.painBetter,onBlur:Dt=>{Rt(PAIN_ASSESSMENT_FIELDS.PAIN_BETTER.NAME,Dt.target.value)}})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:PAIN_ASSESSMENT_FIELDS.PAIN_WORSE.NAME,title:PAIN_ASSESSMENT_FIELDS.PAIN_WORSE.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputKey:mt.painWorse,inputName:PAIN_ASSESSMENT_FIELDS.PAIN_WORSE.NAME,defaultValue:mt.painWorse,onBlur:Dt=>{Rt(PAIN_ASSESSMENT_FIELDS.PAIN_WORSE.NAME,Dt.target.value)}})})]},"pain-questions")]})]})},HAFormHeadingText="Health Assessment";class HAContainer extends reactExports.Component{constructor(rt){super(rt);Nr(this,"updateSaveStatus",rt=>{this.setState({saveStatus:rt})});const{location:{pathname:nt}}=rt,lt=nt.split("/"),ut=lt[lt.length-1];this.state={visitedPages:{[ut]:0},saveStatus:SavingStatus.SAVED,currentPage:ut,previousPageTitle:""}}componentDidMount(){this.setState({previousPageTitle:document.title}),document.title=`${document.title} - ${HAFormHeadingText}`}componentWillUnmount(){const rt=this.state.previousPageTitle;document.title=rt||"Horizon"}static getDerivedStateFromProps(rt,nt){const{location:{pathname:lt}}=rt,ut=lt.split("/"),dt=ut[ut.length-1];return dt!==nt.currentPage&&(nt.currentPage=dt,Object.keys(nt.visitedPages).includes(dt)?nt.visitedPages[dt]+=1:nt.visitedPages[dt]=0),nt}render(){const{match:{path:rt,params:{patientId:nt}}}=this.props,{visitedPages:lt}=this.state,ut=isUs()?US_PAGE_LINKS:AU_PAGE_LINKS,dt=`/patient/${nt}/health`,{client:pt}=this.props,{currentPage:ht}=this.state,mt=DeviceUtilities$1.isMobileDevice();return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(HeaderBar,{headingText:mt?void 0:"Health Assessment",menuButton:!0,menuButtonText:mt?"Save & Exit":""}),jsxRuntimeExports.jsxs("div",{id:"ha-container",className:"page-container full-viewport",children:[!mt&&ht!=="review"&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:"right-container d-flex flex-wrap px-2",children:jsxRuntimeExports.jsxs("div",{id:"reg-container-stepper",children:[jsxRuntimeExports.jsx("div",{id:"reg-container-header",children:jsxRuntimeExports.jsx("div",{id:"reg-container-header-title",children:HAFormHeadingText})}),jsxRuntimeExports.jsx(Stepper$2,{basePath:dt,links:ut})]})})}),jsxRuntimeExports.jsx("div",{id:"ha-content-root",children:jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:`${rt}/info`,children:jsxRuntimeExports.jsx(haComponent$8,{client:pt,updateSaveStatus:this.updateSaveStatus,validateOnLoad:lt.info>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/history-cancer`,children:jsxRuntimeExports.jsx(haComponent$7,{client:pt,updateSaveStatus:this.updateSaveStatus,validateOnLoad:lt["history-cancer"]>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/history-illness`,children:isUs()?jsxRuntimeExports.jsx(HAMedicalHistoryIllnessPageUS,{}):jsxRuntimeExports.jsx(haComponent$5,{client:pt,updateSaveStatus:this.updateSaveStatus,validateOnLoad:lt["history-illness"]>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/biological`,children:jsxRuntimeExports.jsx(HABiological,{validateOnLoad:lt.biological>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/history-other`,children:jsxRuntimeExports.jsx(haComponent$4,{client:pt,updateSaveStatus:this.updateSaveStatus,validateOnLoad:lt["history-other"]>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/mobility`,children:jsxRuntimeExports.jsx(HAMobility$1,{validateOnLoad:lt.mobility>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/painAssessment`,children:jsxRuntimeExports.jsx(HAMobility,{validateOnLoad:lt.painAssessment>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/operations`,children:jsxRuntimeExports.jsx(haComponent$2,{client:pt,updateSaveStatus:this.updateSaveStatus,validateOnLoad:lt.operations>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/social`,children:jsxRuntimeExports.jsx(haComponent$3,{client:pt,updateSaveStatus:this.updateSaveStatus,validateOnLoad:lt.social>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/social-us`,children:jsxRuntimeExports.jsx(HASocialUS,{})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/medications`,children:jsxRuntimeExports.jsx(HAMedication,{validateOnLoad:lt.medications>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/allergies`,children:jsxRuntimeExports.jsx(haComponent$1,{client:pt,updateSaveStatus:this.updateSaveStatus,validateOnLoad:lt.allergies>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/other`,children:jsxRuntimeExports.jsx(haComponent$6,{client:pt,updateSaveStatus:this.updateSaveStatus,validateOnLoad:lt.other>0})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/consent`,children:jsxRuntimeExports.jsx(HAPatientConsent$1,{})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/summary`,children:isUs()?jsxRuntimeExports.jsx(HAReviewSummaryUS$1,{}):jsxRuntimeExports.jsx(haComponent,{})}),jsxRuntimeExports.jsx(Route,{path:`${rt}/review`,children:jsxRuntimeExports.jsx(HAPSOReviewApollo,{client:pt})}),jsxRuntimeExports.jsx(Route,{path:`${rt}`,children:jsxRuntimeExports.jsx(Redirect,{to:"/patient"})})]})}),ht!=="review"&&jsxRuntimeExports.jsx(routeComponent,{links:ut})]})]})}}const apolloComponent$m=withApollo(HAContainer),routedComponent$d=withRouter(apolloComponent$m),FooterContainer$1=styled$1("footer")`
  position: fixed;
  bottom: 0;
  padding: 12px 24px;
  height: 76px;
  width: 100%;
  border-top: 1px solid ${et=>et.theme.palette.primary.main};
`;class HAPSOReview extends reactExports.Component{constructor(tt){super(tt)}render(){const{patient:tt,history:rt,isPso:nt}=this.props,lt=[{linkText:"Patient summary",href:`/patient/${tt.id}/summary`}];return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{id:"ha-review-header",children:jsxRuntimeExports.jsx("div",{id:"ha-review-header-title",children:"Health Assessment"})}),jsxRuntimeExports.jsxs("div",{className:"ha-review-elements",children:[jsxRuntimeExports.jsxs("div",{className:"left-container",children:[jsxRuntimeExports.jsx("div",{className:"card-wrapper",children:jsxRuntimeExports.jsx("div",{className:"newspaper-container",children:jsxRuntimeExports.jsx(RegistrationPatientDetails,{patient:tt})})}),jsxRuntimeExports.jsx(Button,{"data-testid":"back-to-summary-button",type:"submit",onClick:ut=>{ut.preventDefault();const dt=(nt?"/navigator/":"/")+`patient/${tt.id}/summary`;rt.push(dt)},children:nt?"Back to patient summary":"View all forms"})]}),jsxRuntimeExports.jsx("div",{className:"right-container",children:jsxRuntimeExports.jsx("div",{children:this.renderHASummary()})}),isUs()?jsxRuntimeExports.jsx(FooterContainer$1,{}):jsxRuntimeExports.jsx(routeComponent,{links:lt})]})]})}renderHASummary(){return jsxRuntimeExports.jsx(reactExports.Fragment,{children:isUs()?jsxRuntimeExports.jsx(HAReviewSummaryUS$1,{}):jsxRuntimeExports.jsx(haComponent,{})})}}const routerComponent$1=withRouter(HAPSOReview),PATIENT_AND_USER_DETAILS_QUERY$g=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      address {
        id
        formattedAddress
      }
      firstName
      middleName
      lastName
      ida
      idb
      gender
      dob
      emrInstance
    }
    user {
      id
      isPso
    }
  }
`;let PatientFormSummaryApollo$2=class extends reactExports.Component{render(){const{match:{params:{patientId:tt}}}=this.props;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$g,variables:{id:tt},fetchPolicy:"network-only",children:({loading:rt,data:nt,error:lt})=>{const{setError:ut}=useErrorModalContext();return reactExports.useEffect(()=>{if(lt)return ut()},[lt]),rt?jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0}):nt&&nt.patient&&nt.user?jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(routerComponent$1,{patient:nt.patient,isPso:nt.user.isPso})}):jsxRuntimeExports.jsx("div",{})}})}};const HAPSOReviewApollo=withRouter(PatientFormSummaryApollo$2),logo="/media/content/assets/Horizon_Green_Logo-CMiKVcp_.png",LogoutOP=()=>{const et=useTheme$1();return jsxRuntimeExports.jsxs("div",{id:"logout-container",className:"logout-container",children:[jsxRuntimeExports.jsx("img",{src:logo}),jsxRuntimeExports.jsxs("h1",{children:["You have been logged out of ",et.custom.title]}),jsxRuntimeExports.jsx("p",{children:"You may now safely close this window"})]})},UNSEEN_POPUP_NOTIFICATIONS_FRAGMENT=gql`
  fragment UnseenPopups on UnseenPopupType {
    id
    description
    createdBy
  }
`,UNSEEN_POPUP_NOTIFICATIONS=gql`
  query UnseenPopupNotifications {
    unseenPopups {
      id
      ...UnseenPopups
    }
  }

  ${UNSEEN_POPUP_NOTIFICATIONS_FRAGMENT}
`,UPDATE_USER_POPUP_NOTIFICATION=gql`
  mutation UpdateUserPopupNotification($id: ID!) {
    updateUserPopupNotification(id: $id) {
      ok
    }
  }
`;gql`
  query HasLatestNotification {
    hasLatestNotification {
      hasLatest
    }
  }
`;gql`
  mutation UpdateUserNotification {
    updateUserNotification {
      ok
    }
  }
`;const CONSTANTS$1={FULL_NAME:"fullName",FORM:"form",STATUS:"status",LOCATION:"location",LAST_MODIFIED:"lastModified",REGISTRATION_STATUS:"registrationStatus",FILTER_REVIEW_REQUIRED:"filterReviewRequired",FILTER_IN_PROGRESS:"filterInProgress",REVIEW_REQUIRED:"Review Required",IN_PROGRESS:"In Progress",REGISTRATION_FORM:"registration",REGISTRATION_LABEL:"Registration Form",COVID_FORM:"covid",COVID_LABEL:"COVID-19 Form",NO_PATIENTS_MESSAGE:"No results to display",REVIEW_FORMS:"Review Forms",DEFAULT_PAGINATION_LIMIT:25,SELECT_ALL:"Select All",BLANK:"Blank"},TABLE_HEADERS=["Patient Name","Form","Form Status","Location","Last Modified","Registration Status"],formatTime$1=et=>{const tt=hooks.utc(et).local(),rt=hooks.utc(et).local().format("hh:mm A");return hooks().startOf("day").diff(tt.startOf("day"),"days")===0?`Today ${rt}`:hooks.utc(et).format(isUs()?"MM/DD/YYYY":"DD/MM/YYYY")},generateClassFromStatus=et=>et===CONSTANTS$1.FILTER_REVIEW_REQUIRED?"review-required":et===CONSTANTS$1.FILTER_IN_PROGRESS?"in-progress":"",formatStatusValue=et=>et===CONSTANTS$1.FILTER_REVIEW_REQUIRED?CONSTANTS$1.REVIEW_REQUIRED:et===CONSTANTS$1.FILTER_IN_PROGRESS?CONSTANTS$1.IN_PROGRESS:"",formatLocation=(et,tt)=>{for(const rt of Object.values(tt))if(rt.id===et.toString())return rt.alias;return""},generateFormUrl=(et,tt,rt,nt=!1)=>et===CONSTANTS$1.COVID_FORM?`/patient/${tt}/covid/review`:et===CONSTANTS$1.REGISTRATION_FORM&&(isUs()||rt)?nt?`/patient/${tt}/registration/conflicts`:`/patient/${tt}/registration/summary`:et===CONSTANTS$1.REGISTRATION_FORM?`/registration/${tt}/summary`:"",generateFormName=et=>et===CONSTANTS$1.COVID_FORM?"covid-form":et===CONSTANTS$1.REGISTRATION_FORM?"registration-form":"form",generateFormTypeValue=et=>et===CONSTANTS$1.REGISTRATION_FORM?CONSTANTS$1.REGISTRATION_LABEL:et===CONSTANTS$1.COVID_FORM?CONSTANTS$1.COVID_LABEL:"",mapFormData=et=>{const{firstName:tt,lastName:rt,ida:nt,overallStatus:lt,formType:ut,locationCode:dt,updatedAt:pt,status:ht}=et;return[{name:CONSTANTS$1.FULL_NAME,value:`${tt+" "+rt}`,otherValue:`${nt}`,valueClass:"url-underline",linkClass:"name-ida-container",otherValueClass:"ida"},{name:generateFormName(ut),value:generateFormTypeValue(ut),valueClass:"url-underline"},{name:CONSTANTS$1.STATUS,value:formatStatusValue(ht),valueClass:`form-status ${generateClassFromStatus(ht)}`},{name:CONSTANTS$1.LOCATION,value:dt},{name:CONSTANTS$1.LAST_MODIFIED,value:formatTime$1(pt)},{name:CONSTANTS$1.REGISTRATION_STATUS,value:formatStatusValue(lt),valueClass:`form-status ${generateClassFromStatus(lt)}`}]},FORMS_IN_REVIEW_QUERY=gql`
  query PatientSearch($start: Int, $limit: Int, $location: String) {
    reviewRequiredPatients(start: $start, limit: $limit, location: $location) {
      totalCount
      forms {
        id
        firstName
        lastName
        patientId
        ida
        horizonCenterId
        status
        overallStatus
        formType
        updatedAt
        hasDataConflicts
      }
    }
  }
`,ALLOWED_LOCATION_QUERY=gql`
  query AllowedLocations($roles: [String]!, $hasOther: Boolean!) {
    allowedLocations(roles: $roles, hasOther: $hasOther) {
      id
      alias
    }
    featureOptions {
      id
      name
      description
      active
    }
  }
`,ReviewFormsApollo=()=>{const et=useLocation(),{setError:tt}=useErrorModalContext(),{data:rt,error:nt}=useQuery(ALLOWED_LOCATION_QUERY,{variables:{roles:["PSO"],hasOther:!0}}),{loading:lt,data:ut,refetch:dt,error:pt}=useQuery(FORMS_IN_REVIEW_QUERY,{variables:{start:0,limit:CONSTANTS$1.DEFAULT_PAGINATION_LIMIT}}),ht=reactExports.useContext(NavigationContext),xt=((rt==null?void 0:rt.featureOptions)||[]).find(Mt=>Mt.name==="NewAusRego"&&Mt.active);return reactExports.useEffect(()=>{if(nt||pt)return tt()},[nt,pt]),reactExports.useEffect(()=>{ht.setRegEntryPath(et.pathname)},[et.pathname]),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ut&&rt&&jsxRuntimeExports.jsx(ReviewFormsTable$1,{forms:ut.reviewRequiredPatients.forms,totalCount:ut.reviewRequiredPatients.totalCount,allowedLocations:rt.allowedLocations,loading:lt,getFormsInReview:dt,showNewRego:xt}),!ut&&lt&&jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading forms"})]})},SMS_LOGS_PAGINATED=gql`
  query getSmsLogs($page: Int, $locationFilter: [String], $smsTypeFilter: [String], $statusFilter: [String]) {
    paginatedSmsLogs(
      page: $page
      locationFilter: $locationFilter
      smsTypeFilter: $smsTypeFilter
      statusFilter: $statusFilter
    ) {
      id
      success
      department
      patientId
      patientFullName
      patientDob
      message
      smsType
      activity
      sentDttm
      templateName
      bookingDttm
      practitionerName
    }
    totalSmsLogPages(locationFilter: $locationFilter, smsTypeFilter: $smsTypeFilter, statusFilter: $statusFilter)
  }
`,SMS_LOGS_SMS_TYPES=gql`
  query CurrentSmsTypes {
    currentSmsTypes
  }
`,MESSAGE_ERROR=`This message could not be sent. If you require further information, please email ${CurrentAppConfig.SupportEmail}`,DEPARTMENTS="departments",SMS_TYPES="smsTypes",STATUSES$1="statuses",formatDepartmentOptions=et=>et==null?void 0:et.map(tt=>({label:tt.alias,value:tt.alias})),formatStringListOptions=et=>et==null?void 0:et.map(tt=>({label:tt,value:tt})),filterSelectedOptions=et=>et.filter(tt=>!(tt===""||tt===void 0||tt===null)),SmsLogsSearchFilter=et=>{const{selectedDepartments:tt,selectedSmsType:rt,selectedStatus:nt,setSelectedDepartments:lt,setSelectedSmsType:ut,setSelectedStatus:dt}=et,pt=!!(tt.length||rt.length||nt.length),{data:ht}=useQuery(GET_USER_DETAILS$1,{variables:{roles:["PSO"],hasOther:!1}}),{data:mt}=useQuery(SMS_LOGS_SMS_TYPES),xt=formatDepartmentOptions(ht==null?void 0:ht.allowedLocations),Mt=formatStringListOptions([...new Set(mt==null?void 0:mt.currentSmsTypes)]),vt=formatStringListOptions(["Sent","Failed"]);return jsxRuntimeExports.jsxs("div",{className:"search-filter-wrapper",children:[jsxRuntimeExports.jsxs(SearchFilter,{showAlert:pt,children:[jsxRuntimeExports.jsx("div",{className:"search-menu-item",children:jsxRuntimeExports.jsx(SearchMultiSelectField,{selectAllEnabled:!0,selectAllLabel:"Select all",selectedOptionsUpdated:Ot=>lt(filterSelectedOptions(Ot)),resetSearchResults:()=>null,defaultSelectedOptions:tt,options:xt,placeholder:"Departments",allSelected:(tt==null?void 0:tt.length)===(xt==null?void 0:xt.length),allSelectedLabel:"All departments"})}),jsxRuntimeExports.jsx("div",{className:"search-menu-item",children:jsxRuntimeExports.jsx(SearchMultiSelectField,{selectAllEnabled:!0,selectAllLabel:"Select all",selectedOptionsUpdated:Ot=>ut(filterSelectedOptions(Ot)),resetSearchResults:()=>null,defaultSelectedOptions:rt,options:Mt,placeholder:"SMS Types",allSelected:(rt==null?void 0:rt.length)===(Mt==null?void 0:Mt.length),allSelectedLabel:"All sms types"})}),jsxRuntimeExports.jsx("div",{className:"search-menu-item",children:jsxRuntimeExports.jsx(SearchMultiSelectField,{selectAllEnabled:!0,selectAllLabel:"Select all",selectedOptionsUpdated:Ot=>dt(filterSelectedOptions(Ot)),resetSearchResults:()=>null,defaultSelectedOptions:nt,options:vt,placeholder:"Statuses",allSelected:(nt==null?void 0:nt.length)===(vt==null?void 0:vt.length),allSelectedLabel:"All statuses"})})]}),jsxRuntimeExports.jsx("div",{"data-test-id":"clear-filter",className:"clear-filter",onClick:()=>{tt!=null&&tt.length&&lt([]),rt!=null&&rt.length&&ut([]),nt!=null&&nt.length&&dt([])},children:"Clear filters"})]})},StyledTableCell$6=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[200],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$8=styled(TableRow$7)(({theme:et})=>({"&:nth-of-type(odd)":{backgroundColor:et.palette.action.hover},"&:last-child td, &:last-child th":{border:0}})),tableHeaders$1=[{title:"Patient Name",width:17.89},{title:"Appointment",width:13.16},{title:"SMS type",width:12.32},{title:"Activity",width:11.31},{title:"Department",width:13.08},{title:"Doctor",width:10.8},{title:"Status",width:10.55},{title:"Sent",width:10.89}],getFromStorage=et=>JSON.parse(sessionStorage.getItem(et)||"[]"),setInStorage=(et,tt)=>sessionStorage.setItem(et,JSON.stringify(tt)),renderLoadingIcon=()=>jsxRuntimeExports.jsx("div",{className:"loading-icon",children:jsxRuntimeExports.jsx(LoadingSpinner,{})}),renderPatientDetails=et=>{const tt="patient-details-section",rt=hooks(et.patientDob).format("DD MMM YYYY");return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Link$2,{to:`/navigator/patient/${et.patientId}/summary`,children:et.patientFullName}),jsxRuntimeExports.jsxs("div",{className:"minor-text",children:[jsxRuntimeExports.jsxs("span",{className:`${tt}-patient-id`,children:["Patient ID: ",et.patientId]}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("span",{className:`${tt}-dob`,children:["Date of birth: ",rt]})]})]})},renderFormattedTime=et=>{const rt=hooks(et).calendar().split(" "),nt=rt[0]==="Today"||rt[0]==="Yesterday";return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{children:nt?rt[0]:hooks(et).format("DD-MMM-YYYY")}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("span",{children:[hooks(et).format("LT")," "]})]})},renderSmsSentStatus=et=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et.success?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"success"})," ",jsxRuntimeExports.jsx("span",{children:"Sent"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:"fail"})," ",jsxRuntimeExports.jsx("span",{children:"Failed"})]})}),SmsLogs=()=>{var Nt;const[et,tt]=reactExports.useState(1),[rt,nt]=reactExports.useState(1),[lt,ut]=reactExports.useState(0),dt=()=>tt(1),pt=()=>ut(0),[ht,mt]=reactExports.useState(getFromStorage(DEPARTMENTS)),[xt,Mt]=reactExports.useState(getFromStorage(SMS_TYPES)),[vt,Ot]=reactExports.useState(getFromStorage(STATUSES$1));reactExports.useEffect(()=>{dt(),pt()},[ht,xt,vt]),reactExports.useEffect(()=>{setInStorage(DEPARTMENTS,ht)},[ht]),reactExports.useEffect(()=>{setInStorage(SMS_TYPES,xt)},[xt]),reactExports.useEffect(()=>{setInStorage(STATUSES$1,vt)},[vt]);const At=Yt=>{pt(),Yt&&nt(Yt.totalSmsLogPages)},{data:Rt,loading:zt,refetch:Tt}=useQuery(SMS_LOGS_PAGINATED,{variables:{page:et,locationFilter:ht,smsTypeFilter:xt,statusFilter:vt},onCompleted:At}),Ct=()=>{document.querySelectorAll("#buzz-log-table tr")[1].scrollIntoView({behavior:"smooth",block:"center"})},It=Yt=>{Tt({page:Yt,locationFilter:ht,smsTypeFilter:xt,statusFilter:vt}).finally(()=>Ct()),tt(Yt)},Dt=Yt=>Yt.map((Kt,Jt)=>{const Bt=Jt===lt?"selected-row":void 0;return jsxRuntimeExports.jsxs(StyledTableRow$8,{className:"buzz-table-row",id:`buzz-table-row-${Jt}`,onClick:()=>ut(Jt),children:[jsxRuntimeExports.jsx(TableCell,{className:classNames$1(Bt,"patient-name-col"),children:renderPatientDetails(Kt)}),jsxRuntimeExports.jsx(TableCell,{className:classNames$1(Bt,"appointment-dttm-col"),children:renderFormattedTime(Kt.bookingDttm)}),jsxRuntimeExports.jsx(TableCell,{className:classNames$1(Bt,"sms-type-col"),children:jsxRuntimeExports.jsx("span",{children:Kt.templateName})}),jsxRuntimeExports.jsx(TableCell,{className:classNames$1(Bt,"activity-col"),children:Kt.activity}),jsxRuntimeExports.jsx(TableCell,{className:classNames$1(Bt,"department-col"),children:Kt.department}),jsxRuntimeExports.jsx(TableCell,{className:classNames$1(Bt,"doctor-col"),children:Kt.practitionerName}),jsxRuntimeExports.jsx(TableCell,{className:classNames$1(Bt,"sms-status-col"),children:renderSmsSentStatus(Kt)}),jsxRuntimeExports.jsx(TableCell,{className:classNames$1(Bt,"sent-col"),children:jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:renderFormattedTime(Kt.sentDttm)})})]},Jt)}),kt=()=>{var Jt,Qt;const Yt=(Jt=Rt==null?void 0:Rt.paginatedSmsLogs[lt])==null?void 0:Jt.message,Kt=((Qt=Rt==null?void 0:Rt.paginatedSmsLogs[lt])==null?void 0:Qt.success)===!1;return jsxRuntimeExports.jsxs("div",{className:"message-container",children:[jsxRuntimeExports.jsx("div",{className:"message-header",children:"Message"}),jsxRuntimeExports.jsx("div",{className:"message-body",children:Yt}),Kt&&jsxRuntimeExports.jsx("div",{className:"message-error",children:MESSAGE_ERROR})]})},qt=()=>jsxRuntimeExports.jsx("div",{className:"buzz-log-table-container",children:jsxRuntimeExports.jsxs(Table$3,{className:"buzz-log-table",id:"buzz-log-table",children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsx(TableRow$7,{children:tableHeaders$1.map(Yt=>{const Kt=Yt.title,Jt=Yt.width;return jsxRuntimeExports.jsx(StyledTableCell$6,{id:Kt,style:{width:`${Jt}%`},children:Kt==="Sent"?jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:Kt}):Kt},Kt)})})}),!zt&&Rt&&Rt.paginatedSmsLogs.length>0&&jsxRuntimeExports.jsx(TableBody$2,{children:Dt(Rt.paginatedSmsLogs)})]})});return jsxRuntimeExports.jsxs("div",{className:"sms-logs-container",children:[jsxRuntimeExports.jsxs("div",{className:"table-container",children:[jsxRuntimeExports.jsxs("div",{className:"filter-title-container",children:[jsxRuntimeExports.jsx("div",{className:"buzz-table-title",children:"Buzz SMS"}),jsxRuntimeExports.jsx("div",{className:"title-info",children:"This dashboard only displays SMS sent within the last 30 days"}),jsxRuntimeExports.jsx(SmsLogsSearchFilter,{selectedDepartments:ht,selectedSmsType:xt,selectedStatus:vt,setSelectedDepartments:mt,setSelectedSmsType:Mt,setSelectedStatus:Ot})]}),qt(),zt&&renderLoadingIcon(),!zt&&Rt&&((Nt=Rt.paginatedSmsLogs)==null?void 0:Nt.length)<1&&jsxRuntimeExports.jsx("div",{className:"no-patients",children:"No results to display"}),!zt&&Rt&&Rt.totalSmsLogPages>1&&jsxRuntimeExports.jsx(GCPagination,{totalPages:rt,currentPage:et,onPageChange:It})]}),kt()]})},SmsLogs$1=withRouter(SmsLogs);var AddCircleOutline={},_interopRequireDefault$i=interopRequireDefaultExports;Object.defineProperty(AddCircleOutline,"__esModule",{value:!0});var default_1$i=AddCircleOutline.default=void 0,_createSvgIcon$i=_interopRequireDefault$i(requireCreateSvgIcon()),_jsxRuntime$i=jsxRuntimeExports;default_1$i=AddCircleOutline.default=(0,_createSvgIcon$i.default)((0,_jsxRuntime$i.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.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 8"}),"AddCircleOutline");const{PSO:PSO$4,SUPERUSER:SUPERUSER$3}=RoleType,DashboardContent=et=>{var Ut,Vt;const{primaryRole:tt,path:rt,...nt}=et,[lt,ut]=reactExports.useState([]),[dt,pt]=reactExports.useState(!1),ht=reactExports.useRef(new Date().getTime()),mt=reactExports.useRef(),[xt,Mt]=reactExports.useState(null);useTheme$1();const[vt]=useMutation(LOG_EVENT),{data:Ot}=useQuery(GET_USER),{data:At,loading:Rt}=useQuery(GET_RECENT_PATIENTS,{fetchPolicy:"network-only"}),{data:zt}=useQuery(UX_FEATURE_OPTION_QUERY,{variables:{featureOptionName:"PSOSideNav"}}),{data:Tt}=useQuery(UX_FEATURE_OPTION_QUERY,{variables:{featureOptionName:"CreatePatient"}}),{data:Ct}=useQuery(UX_FEATURE_OPTION_QUERY,{variables:{featureOptionName:"ShowRecentPatients"}}),{data:It}=useQuery(UX_FEATURE_OPTION_QUERY,{variables:{featureOptionName:"Buzz SMS Log Widget"}}),{data:Dt}=useQuery(UNSEEN_POPUP_NOTIFICATIONS),[kt]=useMutation(UPDATE_USER_NOTIFICATION,{awaitRefetchQueries:!0,refetchQueries:[{query:HAS_LATEST_NOTIFICATION}]}),[qt]=useMutation(UPDATE_USER_POPUP_NOTIFICATION,{awaitRefetchQueries:!0,refetchQueries:[{query:UNSEEN_POPUP_NOTIFICATIONS}]}),Nt=()=>{qt({variables:{id:Ft}}),kt();const Ht=window.open("https://genesiscare.sharepoint.com/sites/Oncologyportal/SitePages/Create-Patient-Record-in-Horizon.aspx","_blank");Ht==null||Ht.focus()};reactExports.useEffect(()=>{At&&At.getRecentPatients&&ut(At.getRecentPatients)},[At]),reactExports.useEffect(()=>{mt.current&&Mt(mt.current)},[mt.current]);const Yt=reactExports.useMemo(()=>Ot==null?void 0:Ot.user,[Ot]),Kt=reactExports.useMemo(()=>{var Ht;return(Ht=zt==null?void 0:zt.uxFeatureOption)==null?void 0:Ht.active},[zt]),Jt=reactExports.useMemo(()=>{var Ht,Gt;return(((Ht=It==null?void 0:It.uxFeatureOption)==null?void 0:Ht.active)&&((Gt=Ot==null?void 0:Ot.user)==null?void 0:Gt.isPso))??!1},[It,Ot]),Qt=reactExports.useMemo(()=>{var Ht;return(Ht=Tt==null?void 0:Tt.uxFeatureOption)==null?void 0:Ht.active},[Tt]),Bt=reactExports.useMemo(()=>{var Ht;return(Ht=Ct==null?void 0:Ct.uxFeatureOption)==null?void 0:Ht.active},[Ct]),Ft=(Vt=(Ut=Dt==null?void 0:Dt.unseenPopups)==null?void 0:Ut.find(Ht=>Ht.description==="Create Patient"))==null?void 0:Vt.id,$t=!!Ft;reactExports.useEffect(()=>{pt(!!($t&&Kt&&(Yt!=null&&Yt.isPso)))},[$t,Kt,Yt]);const jt=()=>{qt({variables:{id:Ft}}),pt(!1)},Wt=()=>{$t&&jt();const Ht=String(Math.floor(Math.random()*1e7));sessionStorage.setItem("createPatientKey",Ht);const Gt={eventName:ELASTIC_SEARCH_EVENTS.START,state:(Yt==null?void 0:Yt.state)||"",createPatientKey:Ht};logPage(ht==null?void 0:ht.current,Gt,vt),nt.history.push("/patient/create")};return jsxRuntimeExports.jsx(PageContainer$1,{children:jsxRuntimeExports.jsxs("div",{id:"pso-dashboard-wrapper",children:[Kt&&((Yt==null?void 0:Yt.isPso)||(Yt==null?void 0:Yt.isSuperuser))&&jsxRuntimeExports.jsxs(SideNavContainer,{children:[jsxRuntimeExports.jsx(GreetingsSection,{username:Yt==null?void 0:Yt.name}),jsxRuntimeExports.jsx(OnboardingPopover,{handleClose:()=>jt(),handleVisitLink:Nt,popoverOpen:dt,target:xt,feature:"Create Patient",children:jsxRuntimeExports.jsx(Box,{ref:mt,paddingBottom:1,paddingTop:2,sx:{display:"flex",justifyContent:"center"},children:jsxRuntimeExports.jsx(Button,{id:"create-patient-button",disabled:!Qt,startIcon:jsxRuntimeExports.jsx(default_1$i,{color:"primary"}),onClick:Wt,variant:"outlined",children:"Create new patient"})})}),!isUs()&&Bt&&!Rt&&Ot&&Ot.user&&jsxRuntimeExports.jsx(RecentPatientSection,{data:lt,hasPractitionerId:Ot.user.isPractitioner})]}),jsxRuntimeExports.jsxs("div",{className:"dashboard-content-container",children:[tt&&[PSO$4,SUPERUSER$3].includes(tt)&&jsxRuntimeExports.jsx("div",{className:"dashboard-content-header-container",children:jsxRuntimeExports.jsx(ReviewFormsHeader$1,{pageShown:rt,showSmsLogHeader:Jt})}),jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:"/search",component:PatientSearch$1}),jsxRuntimeExports.jsx(Route,{path:"/review-forms",component:ReviewFormsApollo}),Jt&&jsxRuntimeExports.jsx(Route,{path:"/sms-logs",component:SmsLogs$1})]})]})]})})},PSODashboard=et=>{const{match:{path:tt}}=et;return jsxRuntimeExports.jsx(HeaderBar,{children:jsxRuntimeExports.jsx(DashboardContent,{...et,path:tt})})},PSODashboard$1=withRouter(PSODashboard);(function(et){var tt=function(){try{if(et.URLSearchParams&&new et.URLSearchParams("foo=bar").get("foo")==="bar")return et.URLSearchParams}catch{}return null}(),rt=tt&&new tt({a:1}).toString()==="a=1",nt=tt&&new tt("s=%2B").get("s")==="+",lt=tt&&"size"in tt.prototype,ut="__URLSearchParams__",dt=tt?function(){var Dt=new tt;return Dt.append("s"," &"),Dt.toString()==="s=+%26"}():!0,pt=mt.prototype,ht=!!(et.Symbol&&et.Symbol.iterator);if(tt&&rt&&nt&&dt&&lt)return;function mt(Dt){Dt=Dt||"",(Dt instanceof URLSearchParams||Dt instanceof mt)&&(Dt=Dt.toString()),this[ut]=zt(Dt)}pt.append=function(Dt,kt){Tt(this[ut],Dt,kt)},pt.delete=function(Dt){delete this[ut][Dt]},pt.get=function(Dt){var kt=this[ut];return this.has(Dt)?kt[Dt][0]:null},pt.getAll=function(Dt){var kt=this[ut];return this.has(Dt)?kt[Dt].slice(0):[]},pt.has=function(Dt){return It(this[ut],Dt)},pt.set=function(kt,qt){this[ut][kt]=[""+qt]},pt.toString=function(){var Dt=this[ut],kt=[],qt,Nt,Yt,Kt;for(Nt in Dt)for(Yt=Ot(Nt),qt=0,Kt=Dt[Nt];qt<Kt.length;qt++)kt.push(Yt+"="+Ot(Kt[qt]));return kt.join("&")};var xt=et.Proxy&&tt&&(!nt||!dt||!rt||!lt),Mt;xt?(Mt=new Proxy(tt,{construct:function(Dt,kt){return new Dt(new mt(kt[0]).toString())}}),Mt.toString=Function.prototype.toString.bind(mt)):Mt=mt,Object.defineProperty(et,"URLSearchParams",{value:Mt});var vt=et.URLSearchParams.prototype;vt.polyfill=!0,!xt&&et.Symbol&&(vt[et.Symbol.toStringTag]="URLSearchParams"),"forEach"in vt||(vt.forEach=function(Dt,kt){var qt=zt(this.toString());Object.getOwnPropertyNames(qt).forEach(function(Nt){qt[Nt].forEach(function(Yt){Dt.call(kt,Yt,Nt,this)},this)},this)}),"sort"in vt||(vt.sort=function(){var Dt=zt(this.toString()),kt=[],qt,Nt,Yt;for(qt in Dt)kt.push(qt);for(kt.sort(),Nt=0;Nt<kt.length;Nt++)this.delete(kt[Nt]);for(Nt=0;Nt<kt.length;Nt++){var Kt=kt[Nt],Jt=Dt[Kt];for(Yt=0;Yt<Jt.length;Yt++)this.append(Kt,Jt[Yt])}}),"keys"in vt||(vt.keys=function(){var Dt=[];return this.forEach(function(kt,qt){Dt.push(qt)}),Rt(Dt)}),"values"in vt||(vt.values=function(){var Dt=[];return this.forEach(function(kt){Dt.push(kt)}),Rt(Dt)}),"entries"in vt||(vt.entries=function(){var Dt=[];return this.forEach(function(kt,qt){Dt.push([qt,kt])}),Rt(Dt)}),ht&&(vt[et.Symbol.iterator]=vt[et.Symbol.iterator]||vt.entries),"size"in vt||Object.defineProperty(vt,"size",{get:function(){var Dt=zt(this.toString());if(vt===this)throw new TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(Dt).reduce(function(kt,qt){return kt+Dt[qt].length},0)}});function Ot(Dt){var kt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(Dt).replace(/[!'\(\)~]|%20|%00/g,function(qt){return kt[qt]})}function At(Dt){return Dt.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(kt){return decodeURIComponent(kt)})}function Rt(Dt){var kt={next:function(){var qt=Dt.shift();return{done:qt===void 0,value:qt}}};return ht&&(kt[et.Symbol.iterator]=function(){return kt}),kt}function zt(Dt){var kt={};if(typeof Dt=="object")if(Ct(Dt))for(var qt=0;qt<Dt.length;qt++){var Nt=Dt[qt];if(Ct(Nt)&&Nt.length===2)Tt(kt,Nt[0],Nt[1]);else throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements")}else for(var Yt in Dt)Dt.hasOwnProperty(Yt)&&Tt(kt,Yt,Dt[Yt]);else{Dt.indexOf("?")===0&&(Dt=Dt.slice(1));for(var Kt=Dt.split("&"),Jt=0;Jt<Kt.length;Jt++){var Qt=Kt[Jt],Bt=Qt.indexOf("=");-1<Bt?Tt(kt,At(Qt.slice(0,Bt)),At(Qt.slice(Bt+1))):Qt&&Tt(kt,At(Qt),"")}}return kt}function Tt(Dt,kt,qt){var Nt=typeof qt=="string"?qt:qt!=null&&typeof qt.toString=="function"?qt.toString():JSON.stringify(qt);It(Dt,kt)?Dt[kt].push(Nt):Dt[kt]=[Nt]}function Ct(Dt){return!!Dt&&Object.prototype.toString.call(Dt)==="[object Array]"}function It(Dt,kt){return Object.prototype.hasOwnProperty.call(Dt,kt)}})(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:commonjsGlobal$1);const logger$y=new Logger("PatientSearch"),BASE_SEARCH_URL="/search",SEARCH_NAME$1="q",FILTER="filter",FILTER_PLACEHOLDER="Select filter",EMPTY_PATIENT_OPT_IN$1={id:"",firstName:"",lastName:"",pxOptedIn:null,primaryPhone:"",email:"",pxOptOutComment:"",emrInstance:""},EMPTY_PATIENT_ADDRESS$1={line1:"",line2:"",city:"",state:"",country:"",postcode:""},UK_PATIENT_SEARCH$1=gql`
  query ukPatientSearch($searchTerm: String, $submissionStatus: String, $primaryCenterId: Int, $page: Int) {
    searchPatients: ukPatientSearch(
      search: $searchTerm
      threshold: 0.5
      submissionStatus: $submissionStatus
      primaryCenterId: $primaryCenterId
      page: $page
    ) {
      id
      firstName
      lastName
      ida
      dob
      primaryPhone
      primaryPhoneFormatted
      email
      pxOptedIn
      regFormStatus
      pxOptOutComment
      address {
        id
        line1
        line2
        city
        state
        country
        postcode
      }
    }
  }
`,SEARCH_FILTERS_REF_DATA_QUERY=gql`
  query ukSearchFilters {
    searchFiltersRefData: listData(category: "ukSearchFilters") {
      id
      name
      appKey
    }
  }
`,GET_USER_DETAILS=gql`
  query UserDetails {
    user {
      id
      username
      features {
        distressThermometer
      }
    }
  }
`,CREATE_PATIENT$1=gql`
  mutation CreatePatient {
    createPatient {
      patient {
        id
      }
    }
  }
`,StyledSearchInput$1=styled$1("input")`
  max-width: 872px;
  flex: 1;
  font-size: 16px;
  line-height: get-line-height(16, 24);
  padding: 12px 24px 12px 48px;
  background-image: url('../../../../../shared_components/images/Search.svg');
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-position: 12px 12px;
  background-color: ${et=>et.theme.palette.grey[100]};
  border: 2px solid ${et=>et.theme.palette.grey[600]};
  margin-right: 16px;

  &:focus {
    background-image: url('../../../../../shared_components/images/Search_Green.svg');
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: 12px 12px;
    outline: none;
  }
`;class UKPatientSearch extends reactExports.Component{constructor(rt){super(rt);Nr(this,"searchTerm");Nr(this,"liveSearchInput",null);Nr(this,"submissionStatus","");Nr(this,"triggerSubmit",null);Nr(this,"extractSearchTerm",()=>{const rt=this.props.location.search;if(rt){const lt=new URLSearchParams(rt).get(SEARCH_NAME$1);lt&&(this.searchTerm=lt)}});Nr(this,"extractFilter",()=>{const rt=this.props.location.search;if(rt){const lt=new URLSearchParams(rt).get(FILTER);lt&&(this.submissionStatus=lt)}});Nr(this,"makePatientButton",()=>jsxRuntimeExports.jsx(Mutation,{mutation:CREATE_PATIENT$1,children:(rt,{loading:nt,data:lt})=>{if(!nt&&lt){const{id:dt}=lt.createPatient.patient;return jsxRuntimeExports.jsx(Redirect,{to:`/registration/${dt}/basic`,push:!0})}const ut=nt?"Loading":"Register new patient";return jsxRuntimeExports.jsx(LoadingButton,{sx:{marginLeft:2},variant:"outlined",size:"large",type:"submit","data-testid":"uk-create-patient",onClick:rt,loading:nt,children:ut})}}));Nr(this,"fetchSearchResults",()=>jsxRuntimeExports.jsx(Query,{query:UK_PATIENT_SEARCH$1,variables:{searchTerm:this.searchTerm,submissionStatus:this.submissionStatus},children:({loading:rt,error:nt,data:lt})=>{const ut=lt,dt=nt;return rt?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt||!ut?this.renderNoSearchResults():jsxRuntimeExports.jsxs("div",{id:"patient-search-results",children:[this.renderContents(ut),this.searchTerm!==void 0&&this.renderSearchTips(ut&&ut.searchPatients&&ut.searchPatients.length>0)]})}}));Nr(this,"renderContents",rt=>{if(this.searchTerm)return rt&&rt.searchPatients&&rt.searchPatients.length>0?this.renderSearchResults(rt):this.renderNoSearchResults()});Nr(this,"renderSearchResults",rt=>{if(rt&&rt.searchPatients&&rt.searchPatients.length>0)return rt.searchPatients.map(lt=>jsxRuntimeExports.jsxs("div",{id:`patient_${lt.ida}`,className:"patient-search-result",children:[jsxRuntimeExports.jsxs("div",{className:"patient-search-name",children:[lt.firstName," ",lt.lastName]}),jsxRuntimeExports.jsxs(Stack$5,{className:"patient-search-details",children:[jsxRuntimeExports.jsxs("div",{className:"patient-search-all",children:[this.renderContentDetails("Patient ID",lt.ida),this.renderContentDetails("Date of birth",DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(lt.dob)),this.renderContentDetails("Phone",lt.primaryPhone)]}),jsxRuntimeExports.jsx("div",{className:"patient-search-address",children:this.renderContentDetails("Address",this.createAddress(lt.address))}),jsxRuntimeExports.jsxs("div",{className:"patient-registration-link",children:[jsxRuntimeExports.jsx("a",{href:`/registration/${lt.id}/basic`,children:"Registration form"}),this.renderFormStatus(lt.regFormStatus)]})]})]},lt.ida))});Nr(this,"renderSearchTips",rt=>{let nt="Cant find what youre looking for? Try some of these search tips";return rt||(nt="Search tips"),jsxRuntimeExports.jsxs("div",{id:"patient-search-tips",children:[jsxRuntimeExports.jsx("div",{id:"patient-search-tips-heading",children:nt}),jsxRuntimeExports.jsx("div",{id:"patient-search-tips-points",children:jsxRuntimeExports.jsxs("ul",{children:[jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(SvgBulletPoint,{}),"Check your spelling and try again"]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(SvgBulletPoint,{}),"Just created a new patient in the EMR? Please wait one minute and then refresh the page"]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(SvgBulletPoint,{}),"Search using the patients' first name and last name or patient IDA"]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(SvgBulletPoint,{}),"Try to clear the status filter"]})]})})]})});Nr(this,"renderContentDetails",(rt,nt)=>{let lt=nt;return(lt==null||lt==="")&&(lt="Not provided"),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",children:[jsxRuntimeExports.jsxs("div",{className:"patient-search-title-column",children:[rt,":"]}),jsxRuntimeExports.jsx("div",{className:"patient-search-value-column",children:lt})]})});Nr(this,"renderFormStatus",rt=>{let nt=jsxRuntimeExports.jsx("div",{}),lt="";return rt==="filterSubmittedToMosaiq"?(nt=jsxRuntimeExports.jsx(SvgSuccess,{className:"reviewed icon"}),lt="Submitted to Mosaiq"):rt==="filterReviewRequired"&&(nt=jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning",className:"icon"}),lt="Review required"),jsxRuntimeExports.jsxs("div",{className:"patient-search-form-status-container",children:[nt,jsxRuntimeExports.jsx("span",{className:"patient-search-form-status",children:lt})]})});Nr(this,"createAddress",rt=>{if(rt){const{line1:nt,line2:lt,city:ut,state:dt,country:pt,postcode:ht}=rt;if(nt||ut||dt||pt||ht)return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{children:[nt,",",jsxRuntimeExports.jsx("br",{}),this.renderLine2(lt),ut,",",jsxRuntimeExports.jsx("br",{}),dt," ",pt," ",ht]})})}});Nr(this,"renderLine2",rt=>rt?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[rt,",",jsxRuntimeExports.jsx("br",{})]}):jsxRuntimeExports.jsx(reactExports.Fragment,{}));Nr(this,"submitHandler",rt=>{this.liveSearchInput&&this.liveSearchInput.value===""&&rt.preventDefault()});this.state={modalIsOpen:!1,modalHeader:void 0,selectedName:"",selectedPIN:"",buttonLoadingId:"",optInModalLoadingId:"",optInModalOpen:!1,optInModalInDOM:!1,selectedPatientId:"",selectedPatientIda:"",selectedDob:"",selectedAddress:{...EMPTY_PATIENT_ADDRESS$1},lockErrorModalOpen:!1,lockErrorText:"",selectedPatientOptIn:{...EMPTY_PATIENT_OPT_IN$1},distressThermometerEnabled:!1}}componentDidMount(){const{client:rt}=this.props;rt&&(rt.query({query:GET_USER_DETAILS}).then(nt=>{{const lt=getCurrentScope();lt.setTag("user_type","pso"),lt.setUser({id:nt.data.user.id,username:nt.data.user.username})}this.setState({distressThermometerEnabled:nt.data.user.features.distressThermometer})}),rt.writeQuery({query:gql`
        query {
          registrationPagesViewed
        }
      `,data:{registrationPagesViewed:[]}}))}render(){return logger$y.debug("render","State: ",JSON.stringify(this.state)),this.extractSearchTerm(),this.extractFilter(),jsxRuntimeExports.jsx(Query,{query:SEARCH_FILTERS_REF_DATA_QUERY,children:({loading:rt,error:nt,data:lt})=>{const{setError:ut}=useErrorModalContext();return reactExports.useEffect(()=>{if(nt)return ut()},[nt]),rt?jsxRuntimeExports.jsx(LoadingSpinner,{}):jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(PageContainer$1,{children:[jsxRuntimeExports.jsxs("div",{id:"patient-search",children:[jsxRuntimeExports.jsx("div",{id:"patient-search-title",children:"Patient Search"}),jsxRuntimeExports.jsxs("form",{action:"/search",id:"patient-search-form",method:"GET",onSubmit:this.submitHandler,ref:dt=>{this.triggerSubmit=dt},children:[jsxRuntimeExports.jsxs("div",{className:"patient-search-input-container",children:[jsxRuntimeExports.jsx(StyledSearchInput$1,{type:"text",id:"patient-search-input","data-testid":"patient-search-input",name:SEARCH_NAME$1,placeholder:"Search patient name or enter GC number",defaultValue:this.searchTerm,ref:dt=>{this.liveSearchInput=dt}}),jsxRuntimeExports.jsx(Button,{"data-testid":"patient-search",size:"large",type:"submit",variant:"contained",children:"Search"}),this.makePatientButton()]}),jsxRuntimeExports.jsxs("div",{id:"patient-search-filter",children:[jsxRuntimeExports.jsx("span",{children:"Registration form status:"}),jsxRuntimeExports.jsx(DropDownField,{inputName:FILTER,placeholder:FILTER_PLACEHOLDER,defaultValue:this.submissionStatus,options:lt&&lt.searchFiltersRefData||[],onChange:dt=>{this.submissionStatus=dt.target.value,this.liveSearchInput&&this.liveSearchInput.value!==""&&this.triggerSubmit&&this.triggerSubmit.submit()}}),jsxRuntimeExports.jsx("a",{href:this.searchTerm?`${BASE_SEARCH_URL}?${SEARCH_NAME$1}=${this.searchTerm}`:BASE_SEARCH_URL,onClick:()=>{this.triggerSubmit&&this.triggerSubmit.submit()},children:"Clear filter"})]})]}),jsxRuntimeExports.jsx("br",{})]}),this.searchTerm&&this.fetchSearchResults()]})})}})}renderNoSearchResults(){return jsxRuntimeExports.jsxs(Typography,{style:{margin:"48px 0px 48px 8px",fontWeight:"bold"},variant:"h6",id:"patient-search-no-results",children:['Sorry we couldnt find any results matching  "',this.searchTerm,'"']})}}const apolloComponent$l=withApollo(UKPatientSearch),UKPatientSearch$1=withRouter(apolloComponent$l),REACT_APP_REGION$h=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,logger$x=new Logger("RegistrationForm"),region$c=REACT_APP_REGION$h,GET_APOLLO_CACHE=gql`
  {
    pendingSaveCount @client
    saveErrorCount @client
    registrationPagesViewed @client
  }
`;function withRegistrationForm(et){return class extends reactExports.Component{constructor(rt){super(rt);Nr(this,"getGQLVariablesUsingObject",(rt,nt,lt,ut)=>{const dt={id:rt};for(const pt of Object.entries(nt)){const[ht,mt]=pt;typeof mt=="object"?dt[ht]={...mt}:dt[ht]=mt,ut&&(ht==="emergencyContact"||ht==="nextOfKinContact")&&(dt[ht].__typename="AlternateContactInputType")}if(lt&&lt.length>0)for(const pt of lt)Object.keys(pt).forEach(ht=>{dt[ht]=pt[ht]});return logger$x.debug("getGQLVariablesUsingObject","getGQLVariablesUsingObject return"),logger$x.debug("getGQLVariablesUsingObject",JSON.stringify(dt)),dt});Nr(this,"getPatientMutationUsingObject",(rt,nt,lt)=>{const dt={...this.getGQLVariablesUsingObject(rt,nt,lt,!0),__typename:"PatientType"};return{mutation:this.getGQLUpdatePatientUsingObject(nt,lt),variables:this.getGQLVariablesUsingObject(rt,nt),optimisticResponse:{updatePatient:{patient:dt,errors:null,__typename:"UpdatePatient"}}}});Nr(this,"getGQLUpdatePatientUsingObject",(rt,nt)=>{const lt=mapObjectToMutationParams(rt),ut=mapObjectToFunctionParams(rt),dt=flattenObjectToQueryString(rt,void 0,this.buildForceFetchString(nt)),pt=`mutation UpdatePatient(${lt}) {
        updatePatient(${ut}) {
          patient ${dt}
          errors
        }
      }`;return logger$x.debug("getgqlUpdatePatient","getgqlUpdatePatient return"),logger$x.debug("getgqlUpdatePatient",pt),gql(pt)});Nr(this,"getSaveStatus",(rt,nt)=>{let lt=SavingStatus.SAVED;return rt>0&&(lt=SavingStatus.SAVING),nt>0&&(lt=SavingStatus.FAILED),lt});Nr(this,"showModal",(rt,nt,lt)=>{this.setState({modalIsOpen:!0,modalTitle:rt,modalText:nt,modalButton:lt})});Nr(this,"showSavingErrorModal",(rt,nt)=>{this.setState({errorModalIsOpen:!0,errorForPSO:rt,errorModalCallback:nt})});this.state={modalIsOpen:!1,modalTitle:"",modalText:"",modalButton:!1,errorModalIsOpen:!1,errorForPSO:!1}}render(){const{modalIsOpen:rt,modalTitle:nt,modalText:lt,modalButton:ut,errorModalIsOpen:dt,errorForPSO:pt,errorModalCallback:ht}=this.state;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalInfo$1,{title:nt,text:lt,isOpen:rt,extraClass:"locked-patient",isButton:ut,buttonName:"Main menu",buttonFunction:()=>{const mt=window.location.pathname.split("/").slice(1)[1],xt=window.location.origin+"/patient/"+mt+"/home";window.location.assign(xt)},dismissFunction:()=>{this.setState({modalIsOpen:!1})}}),jsxRuntimeExports.jsx(ModalInfo,{isOpen:dt,isPSO:pt,callbackRouting:ht}),jsxRuntimeExports.jsx(et,{getPatientMutation:(mt,xt,Mt,vt,Ot)=>vt&&Ot?this.getPatientMutationUsingObject(mt.id,Ot,Mt):this.getPatientMutation(mt,xt,Mt),getSaveStatus:(mt,xt)=>this.getSaveStatus(mt,xt),showModalIfLocked:mt=>{if(mt&&mt.patient&&mt.patient.lock&&mt.patient.lock.readOnly)if(mt.user.isPso){const xt="Record in use",Mt="This patient record is currently in use by",vt="and cannot be edited until it is released by the user. Any changes made to this record will not be saved",Ot=mt.patient.lock&&mt.patient.lock.lockedByName,At=`${Mt} ${Ot} ${vt}`;this.showModal(xt,At,!1)}else{const xt=region$c===Region.UK&&mt.patient.lock.lockedByName==="system"?"Patient already submitted":"Temporarily unavailable";this.showModal(xt,"Currently a staff member is reviewing your registration form. Please come back later.",!0)}},showSavingErrorModal:(mt,xt)=>{const Mt=()=>{xt(mt?"/search":"/patient")};this.showSavingErrorModal(mt,Mt)},...this.props})]})}getgqlVariables(rt,nt,lt){const ut={id:rt.id};for(const dt of nt)ut[dt.key]=dt.value;if(lt&&lt.length>0)for(const dt of lt)Object.keys(dt).forEach(pt=>{ut[pt]=dt[pt]});return rt.address&&rt.address.id&&ut.address&&(ut.address.id=rt.address.id),logger$x.debug("getgqlVariables","getgqlVariables return"),logger$x.debug("getgqlVariables",JSON.stringify(ut)),ut}getPatientMutation(rt,nt,lt){const ut={...this.getgqlVariables(rt,nt),__typename:"PatientType"};return{mutation:this.getgqlUpdatePatient(nt,lt),variables:this.getgqlVariables(rt,nt),optimisticResponse:{updatePatient:{patient:ut,errors:null,__typename:"UpdatePatient"}}}}getgqlUpdatePatient(rt,nt){const lt=rt.map(ht=>`$${ht.key}: ${ht.type}`).join(", "),ut=rt.map(ht=>`${ht.key}: $${ht.key}`).join(", ");let dt=rt.map(ht=>`${ht.key}`).join(`
`);dt+=this.buildForceFetchString(nt);const pt=`mutation UpdatePatient($id: ID!, ${lt}) {
      updatePatient(id: $id, ${ut}) {
        patient {
          id
          ${dt}
        }
        errors
      }
     }`;return logger$x.debug("getgqlUpdatePatient","getgqlUpdatePatient return"),logger$x.debug("getgqlUpdatePatient",pt),gql(pt)}buildForceFetchString(rt){const nt=ut=>{const dt=typeof ut;return dt==="object"&&dt!==null};let lt="";return rt&&rt.length>0&&(lt+=`
`,rt.forEach(ut=>{const dt=Object.keys(ut);if(nt(ut)&&dt.length>0){const pt=ut;for(const ht of dt){const mt=pt[ht];lt+=`${ht}`;const xt=Object.keys(mt);if(nt(mt)&&xt.length>0){lt+=` {
`,lt+=`id
`;for(const Mt of xt)lt+=`${Mt}
`;lt+=`}
`}else lt+=`
`}}else lt+=`${ut}
`})),lt}}}const REACT_APP_REGION$g=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,logger$w=new Logger("RegistrationAddress"),FORM_HEADING$a="Address",region$b=REACT_APP_REGION$g;class RegistrationAddress extends reactExports.Component{constructor(rt){var nt;super(rt);Nr(this,"forceFetchItems",region$b!==Region.UK?[{address:{id:"",formattedAddress:"",__typename:"AddressType"}}]:[{address:{id:"",formattedAddress:"",ukFormattedAddress:"",__typename:"AddressType"}}]);Nr(this,"handleAddressAutocomplete",rt=>{const{patient:nt,ausStates:lt}=this.props,ut={residentialAddressLine1:"",residentialAddressLine2:"",residentialAddressCity:"",residentialAddressCountry:"",residentialAddressPostcode:"",residentialAddressState:""},dt=rt.country==="England"?"United Kingdom":rt.country,pt=[rt.line2,rt.locality].filter(xt=>xt).join(", ");ut.residentialAddressLine1=rt.line1,ut.residentialAddressLine2=pt,ut.residentialAddressCity=rt.city,ut.residentialAddressPostcode=rt.postcode,ut.residentialAddressState=rt.county;const ht=this.props.countries.filter(xt=>{if(xt.name.toLowerCase()===dt.toLowerCase())return xt});ht.length>0?ut.residentialAddressCountry=ht[0].id:ut.residentialAddressCountry=dt,this.props.countries.findIndex(xt=>xt.id===ut.residentialAddressCountry&&xt.name.toLowerCase()==="australia"),this.props.countries.findIndex(xt=>xt.id===ut.residentialAddressCountry&&xt.name.toLowerCase()==="united kingdom"),logger$w.debug("handleAddressAutocomplete","The temp patient address is: ",JSON.stringify(ut));const mt=Object.keys(ut).map(xt=>({key:xt,value:ut[xt],type:"String"}));this.autoSaveAddress(nt,mt,this.forceFetchItems)});Nr(this,"handleAutoCompleteOnBlur",(rt,nt)=>{const{patient:lt}=this.props;if(rt&&rt.target&&rt.target.value.trim()===""){const ut={residentialAddressLine1:"",residentialAddressLine2:"",residentialAddressCity:"",residentialAddressCountry:"",residentialAddressPostcode:"",residentialAddressState:""},dt=Object.keys(ut).map(pt=>({key:pt,value:ut[pt],type:"String"}));this.setState({autoCompleteBlankError:!0,autoCompleteInvalidError:!1}),this.autoSaveAddress(lt,dt,this.forceFetchItems)}else this.setState({autoCompleteBlankError:!1,autoCompleteInvalidError:nt})});Nr(this,"getAddressAutocompleteErrorMessage",()=>{let rt;if(this.state.autoCompleteBlankError?rt="Please complete your address.":this.state.autoCompleteInvalidError&&(rt="Cannot find address"),rt)return[rt]});this.state={autoCompleteBlankError:!1,autoCompleteInvalidError:!1,validateAddressFields:!1,currentAddress:"",manualAddressEntry:!!((nt=this.props.patient.address)!=null&&nt.formattedAddress)}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad&&rt.patient.lock&&!rt.patient.lock.readOnly){let lt=!1;rt.patient&&rt.patient.address&&rt.patient.address.formattedAddress===""&&(lt=!0),nt={...nt,validateAddressFields:!0,autoCompleteBlankError:lt}}else if(region$b===Region.UK&&rt.patient.address&&nt.currentAddress!==rt.patient.address.ukFormattedAddress&&rt.patient.address.ukFormattedAddress!=="")return{...nt,currentAddress:rt.patient.address.ukFormattedAddress,manualAddressEntry:!0};return nt}render(){const{patient:rt,genderRefData:nt,saveStatus:lt,isPso:ut}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:rt,genderRefData:nt,isPso:ut,saveStatus:lt,children:this.renderRegistrationAddressForm(rt)})}renderRegistrationAddressForm(rt){const{countries:nt,ausStates:lt,patient:{postalAddressSameAsResidential:ut}}=this.props,dt={line1:{inputName:"line1",defaultValue:rt.residentialAddressLine1,graphArgumentKey:"residentialAddressLine1",maxlength:60},line2:{inputName:"line2",defaultValue:rt.residentialAddressLine2,graphArgumentKey:"residentialAddressLine2",maxlength:60},city:{inputName:"city",defaultValue:rt.residentialAddressCity,graphArgumentKey:"residentialAddressCity",maxlength:40},country:{inputName:"country",defaultValue:rt.residentialAddressCountry,graphArgumentKey:"residentialAddressCountry"},stateprovienceregion:{inputName:"stateprovienceregion",defaultValue:rt.residentialAddressState,graphArgumentKey:"residentialAddressState"},zipPostcode:{inputName:"zippostcode",defaultValue:rt.residentialAddressPostcode,graphArgumentKey:"residentialAddressPostcode"},state:{inputName:"state",defaultValue:rt.residentialAddressState,graphArgumentKey:"residentialAddressState"}},pt={line1:{inputName:"line1",defaultValue:rt.postalAddressLine1,graphArgumentKey:"postalAddressLine1"},line2:{inputName:"line2",defaultValue:rt.postalAddressLine2,graphArgumentKey:"postalAddressLine2"},city:{inputName:"city",defaultValue:rt.postalAddressCity,graphArgumentKey:"postalAddressCity"},country:{inputName:"country",defaultValue:rt.postalAddressCountry,graphArgumentKey:"postalAddressCountry"},stateprovienceregion:{inputName:"stateprovienceregion",defaultValue:rt.postalAddressState,graphArgumentKey:"postalAddressState"},zipPostcode:{inputName:"zippostcode",defaultValue:rt.postalAddressPostcode,graphArgumentKey:"postalAddressPostcode"},state:{inputName:"state",defaultValue:rt.postalAddressState,graphArgumentKey:"postalAddressState"}},ht=ut?"1":"2";let mt=!0;region$b===Region.UK&&rt.registrationReason&&(mt=rt.registrationReason!=="New Patient for Outpatient Visit");const{manualAddressEntry:xt}=this.state;return jsxRuntimeExports.jsx("div",{className:"reg-address-form",children:jsxRuntimeExports.jsx("div",{className:"form-page",children:jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading basic-details",children:FORM_HEADING$a}),!xt&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:"residential-autocomplete",title:"Residential address",isValid:mt?!this.state.autoCompleteBlankError&&!this.state.autoCompleteInvalidError:!0,children:jsxRuntimeExports.jsx(AddressAutocomplete,{placeholder:"Start typing",name:"residential-autocomplete",onSelected:this.handleAddressAutocomplete,disabled:rt.lock&&rt.lock.readOnly,loadingMessage:"Loading...",errorMessage:mt?this.getAddressAutocompleteErrorMessage():void 0,defaultValue:rt.address&&rt.address.formattedAddress,inputOnBlur:this.handleAutoCompleteOnBlur,region:region$b})}),jsxRuntimeExports.jsx("div",{className:"clickable-link manual-entry",onClick:()=>{this.setState({manualAddressEntry:!0})},children:"Can't find your address? Click here."})]}),xt&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"address-row",children:[jsxRuntimeExports.jsx(SvgSearch,{className:"icon"}),jsxRuntimeExports.jsx("div",{className:"clickable-link",onClick:()=>{this.setState({manualAddressEntry:!1,autoCompleteBlankError:!1,autoCompleteInvalidError:!1})},children:"Address lookup"})]}),jsxRuntimeExports.jsx(AddressField$1,{isMandatory:mt,disabled:rt.lock&&rt.lock.readOnly,validateForm:this.state.validateAddressFields,inputName:"residential",addressInputs:dt,onBlur:Mt=>{this.autoSaveAddress(this.props.patient,Mt,this.forceFetchItems)},countries:nt,ausStates:lt})]}),region$b!==Region.UK?jsxRuntimeExports.jsxs(FormSegmentField$1,{htmlFor:"segmented-input",title:"Postal address",children:[jsxRuntimeExports.jsx("p",{className:"postal-subtitle",children:"Same as above"}),jsxRuntimeExports.jsx(SegmentedInput,{disabled:rt.lock&&rt.lock.readOnly,options:[{id:"1",name:"Yes"},{id:"2",name:"No"}],fieldName:"postal-selection",defaultSelected:ht,optionAreBoolean:!0,itemSelected:Mt=>{const Ot=[{key:"postalAddressSameAsResidential",value:Mt,type:"Boolean"}];this.autoSaveAddress(rt,Ot)}})]}):null,!ut&&region$b!==Region.UK&&jsxRuntimeExports.jsx(AddressField$1,{isMandatory:mt,disabled:rt.lock&&rt.lock.readOnly,validateForm:this.state.validateAddressFields,inputName:"postal",ausStates:lt,countries:nt,addressInputs:pt,onBlur:Mt=>{this.autoSaveAddress(this.props.patient,Mt,this.forceFetchItems)}})]})})})}autoSaveAddress(rt,nt,lt){this.props.autosave(rt,nt,lt)}}const PATIENT_AND_USER_DETAILS_QUERY$f=gql`
  query PatientAndUserDetails($id: ID!, $stateKey: String!) {
    patient(id: $id) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      firstName
      lastName
      ida
      idb
      gender
      dob
      isProd
      registrationReason
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressState
      residentialAddressPostcode
      residentialAddressCountry
      postalAddressSameAsResidential
      postalAddressLine1
      postalAddressLine2
      postalAddressCity
      postalAddressState
      postalAddressPostcode
      postalAddressCountry
      lastVisitedSection
      regFormStatus
      address {
        id
        formattedAddress
        ukFormattedAddress
      }
    }
    countries: listData(category: "countryOfBirth") {
      id
      name
    }
    ausState: listData(category: $stateKey) {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`;class RegistrationAddressApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"autosave",async(rt,nt,lt)=>{const ut=this.props.client,dt="ukCounties",pt=await this.getApolloCache();let ht=pt.currentPendingSaveCount+1,mt=pt.saveErrorCount;return ut&&ut.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:ht}}),this.setState({saveStatus:this.props.getSaveStatus(ht,mt)}),ut==null?void 0:ut.mutate({...this.props.getPatientMutation(rt,nt,lt),refetchQueries:[{query:PATIENT_AND_USER_DETAILS_QUERY$f,variables:{id:rt.id,stateKey:dt},notifyOnNetworkStatusChange:!0,fetchPolicy:"network-only"}]}).then(xt=>{xt.data.updatePatient.errors&&mt++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),mt++}).finally(async()=>{ht=(await this.getApolloCache()).currentPendingSaveCount-1,ut&&ut.writeQuery({query:gql`
                query {
                  pendingSaveCount
                  saveErrorCount
                }
              `,data:{pendingSaveCount:ht,saveErrorCount:mt}}),this.setState({saveStatus:this.props.getSaveStatus(ht,mt)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=[...lt.registrationPagesViewed];nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.ADDRESS)}),nt.includes(BASE_REGISTRATION_PAGES.ADDRESS)||(nt=[...nt,BASE_REGISTRATION_PAGES.ADDRESS]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$f,fetchPolicy:"cache-and-network",variables:{id:lt,stateKey:"ukCounties"},onCompleted:dt=>{nt(dt)},children:({loading:dt,data:pt,error:ht})=>dt?jsxRuntimeExports.jsx(LoadingSpinner,{}):pt&&pt.patient?(this.userIsPSO=pt.user.isPso||!1,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:pt.patient.id}),jsxRuntimeExports.jsx(RegistrationAddress,{autosave:this.autosave,patient:pt.patient,genderRefData:pt.genderRefData,countries:pt.countries,ausStates:pt.ausState,saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO})]})):ht?jsxRuntimeExports.jsx("div",{children:`Error loading: ${ht}`}):jsxRuntimeExports.jsx("div",{})})}}const apolloComponent$k=withApollo(RegistrationAddressApollo),component$d=withRegistrationForm(apolloComponent$k),FIELDS$c={FORM_HEADING:{NAME:"formHeading",TITLE:"Address"},IN_HOSPITAL_BOOL:{NAME:"inHospitalHospiceFacility",TITLE:"Are you currently admitted to a hospital or enrolled in a Hospice or Skilled Nursing Facility?",COMPONENT:ToggleButtonGroupField},FACILITY_NAME:{NAME:"facilityName",TITLE:"Facility name",PLACE_HOLDER:"Enter facility name",COMPONENT:TextAreaField},CONTACT_NUMBER:{NAME:"facilityContactNumber",TITLE:"Contact number",PLACE_HOLDER:"Enter contact number",COMPONENT:TextAreaField}},ADDRESS_VALIDATION="Please enter a valid address",POSTCODE_VALIDATION="Please enter your correct Postcode",validateAddress$1=et=>{let tt=create$6();const nt=`Please enter your correct ${addressLabelForRegion().postcode}`;switch(et==null?void 0:et.country){case"Australia":tt=create$6().matches(AU_POSTCODE_REGEXP,nt);break;case"United Kingdom":case"Scotland":case"England":case"Northern Ireland":case"Wales":tt=create$6().matches(UK_POSTCODE_REGEXP,nt);break;case"US":case"USA":case"United States":case"United States of America":tt=create$6().matches(US_POSTCODE_REGEXP,nt);break}return tt},generateValidationSchema$e=et=>{const tt=validateAddress$1(et==null?void 0:et.adress),rt=validateAddress$1(et==null?void 0:et.facilityAddress),nt=create$3().shape({facilityContactNumber:create$6().matches(US_PHONE_REGEX,PHONE_VALIDATION$3),address:create$3().shape({autofilled:create$6().when("postcode",{is:lt=>tt.isValidSync(lt),then:lt=>lt.ensure(),otherwise:()=>tt}),line1:create$6().required(ADDRESS_VALIDATION),city:create$6().required(ADDRESS_VALIDATION),state:create$6().required(ADDRESS_VALIDATION),country:create$6().required(ADDRESS_VALIDATION),postcode:create$6().required(POSTCODE_VALIDATION).when(["$validatePostcode"],(lt,ut)=>lt?tt:ut.ensure())}),facilityAddress:create$3().shape({autofilled:create$6().when("postcode",{is:lt=>rt.isValidSync(lt),then:lt=>lt.ensure(),otherwise:()=>rt}),postcode:create$6().when(["$validatePostcode"],(lt,ut)=>lt?rt:ut.ensure())}).nullable()});try{validateYupSchema(et,nt,!0,{validatePostcode:!!(et.address.postcode&&et.address.country)})}catch(lt){return yupToFormErrors(lt)}},AddressForm$1=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,previousPageLink:lt,isPso:ut}=et,dt=reactExports.useContext(RegistrationContext),pt=useHistory(),{patientId:ht}=useParams(),mt=(dt==null?void 0:dt.registrationSummaryVisited)&&!ut,xt=[{query:REGISTRATION_ADDRESS_QUERY$1,variables:{id:ht}}],[Mt]=useMutation(UPDATE_PATIENT_ADDRESS$1,{refetchQueries:xt}),[vt]=useMutation(REMOVE_PATIENT_ADDRESS$1,{refetchQueries:xt}),Ot=sessionStorage.getItem("referringPage");return jsxRuntimeExports.jsx(Formik,{initialValues:rt,validate:At=>generateValidationSchema$e(At),validateOnChange:!1,onSubmit:()=>pt.push(registrationPath$1(ht,mt?"summary":"emergencyContact")),children:({values:At,submitForm:Rt,errors:zt,setFieldValue:Tt})=>{const It={...sharedFormContainerProps$1("Address",3,lt,!ut),submitButtonText:mt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,continueDisabled:Object.keys(zt).length>0,handleShowSaveExitConfirm:nt,saveAndExitLink:ut&&generatePath(Ot||PSO_SUMMARY_LINK$1,{patientId:ht})},Dt=()=>{const Nt="facilityAddress";Tt(`${Nt}.country`,""),Tt(`${Nt}.line1`,""),Tt(`${Nt}.line2`,""),Tt(`${Nt}.city`,""),Tt(`${Nt}.state`,""),Tt(`${Nt}.postcode`,""),vt({variables:{patientId:ht,relatedName:"facility_address"}})},kt=(Nt,Yt)=>{tt(FIELDS$c.IN_HOSPITAL_BOOL.NAME,Yt),Yt||(Tt(FIELDS$c.FACILITY_NAME.NAME,""),Tt(FIELDS$c.CONTACT_NUMBER.NAME,""),Dt())},qt=(Nt,Yt)=>{Mt({variables:{patientId:ht,relatedName:Nt,line1:(Yt==null?void 0:Yt.line1)??"",line2:(Yt==null?void 0:Yt.line2)??"",city:(Yt==null?void 0:Yt.city)??"",postcode:(Yt==null?void 0:Yt.postcode)??"",state:(Yt==null?void 0:Yt.state)??"",country:(Yt==null?void 0:Yt.country)??""}})};return jsxRuntimeExports.jsx(FormContainer$1,{...It,submitForm:Rt,children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:FIELDS$c.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"* = required field"}),jsxRuntimeExports.jsx(AddressSectionField,{name:"address",values:At.address||EMPTY_ADDRESS$1,updateAddress:Nt=>qt("address",Nt),includeMandatoryLabels:!0}),standardField$1(FIELDS$c.IN_HOSPITAL_BOOL,kt,yesNoOptions$2),At.inHospitalHospiceFacility&&jsxRuntimeExports.jsxs(StyledIndentedSection$1,{children:[standardField$1(FIELDS$c.FACILITY_NAME,tt),standardField$1(FIELDS$c.CONTACT_NUMBER,tt),jsxRuntimeExports.jsx(AddressSectionField,{name:"facilityAddress",values:At.facilityAddress||EMPTY_ADDRESS$1,updateAddress:Nt=>qt("facility_address",Nt)})]})]})})}})},Address$1=et=>{const{patientId:tt}=useParams(),{exitForm:rt}=et,[nt]=useMutation(UPDATE_REGISTRATION_FACILITY_DETAILS),{data:lt,error:ut}=useQuery(REGISTRATION_ADDRESS_QUERY$1,{variables:{id:tt}}),{patient:dt,user:pt}=lt||{};if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ht=(mt,xt)=>{if(mt==="inHospitalHospiceFacility"&&xt===!1){nt({variables:{id:tt,inHospitalHospiceFacility:!1,facilityName:"",facilityContactNumber:""}});return}nt({variables:{id:tt,[mt]:xt}})};return jsxRuntimeExports.jsx(AddressForm$1,{updateField:ht,patient:dt,handleShowSaveExitConfirm:()=>rt(!0),previousPageLink:generatePath(`/patient/${dt.id}/registration/contact`),isPso:pt.isPso})},REACT_APP_REGION$f=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$a=REACT_APP_REGION$f,FORM_HEADING$9="Basic details",TITLE_PREFIX_FIELD_HEADING="Title",TITLE_PREFIX_FIELD_PLACEHOLDER="Select title",PREFERRED_CENTRE_FIELD_HEADING="Preferred centre",PREFERRED_CENTRE_FIELD_PLACEHOLDER="Select preferred centre",NHS_OPTIONS_FIELD_HEADING="Reason why NHS ID is not provided",NHS_OPTIONS_FIELD_PLACEHOLDER="Select one option",REGISTRATION_REASON_FIELD_HEADING="Registration reason",REGISTRATION_REASON_FIELD_PLACEHOLDER="Select one option",REGISTRATION_REASON_TEXT_FIELD_HEADING="Registration reason",REGISTRATION_REASON_TEXT_FIELD_PLACEHOLDER="Enter registration reason",FIRST_NAME_FIELD_HEADING="First name",FIRST_NAME_FIELD_PLACEHOLDER="Enter first name",MIDDLE_NAME_FIELD_HEADING="Middle name",MIDDLE_NAME_FIELD_PLACEHOLDER="Enter middle name",LAST_NAME_FIELD_HEADING="Last name",LAST_NAME_FIELD_PLACEHOLDER="Enter last name",PREFERRED_NAME_FIELD_HEADING="Preferred name",PREFERRED_NAME_FIELD_PLACEHOLDER="Enter preferred name",DATE_OF_BIRTH_FIELD_HEADING="Date of birth",DATE_OF_BIRTH_EXAMPLE_TEXT="DD MM YYYY e.g. 12 06 1995",FIELD_INFO$4={DOB_RAW_DAY:{key:"dobRawDay",name:"dobRawDay"},DOB_RAW_MONTH:{key:"dobRawMonth",name:"dobRawMonth"},DOB_RAW_YEAR:{key:"dobRawYear",name:"dobRawYear"},DOB:{key:"dob",name:"dob"},IDB:{key:"idb",name:"idb"},GENDER:{TITLE:"Gender",NAME:"gender",KEY:"gender",IS_MANDATORY:!0,MISSING_INPUT_ERROR:"Please select your gender"}},emptySearch=gql`
  {
    ukDedupSearch(search: "") {
      id
      firstName
      lastName
      dob
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressPostcode
    }
  }
`;region$a===Region.UK&&(FIELD_INFO$4.PREFERRED_CENTRE={TITLE:"Preferred centre",NAME:"preferred centre",KEY:"centre",IS_MANDATORY:!0,MISSING_INPUT_ERROR:"Please select a centre",INVALID_INPUT_ERROR:"Please select a centre"},FIELD_INFO$4.IDB={TITLE:"NHS ID",NAME:"idb",KEY:"idb",IS_MANDATORY:!1,INVALID_INPUT_ERROR:"This is not a valid NHS ID"},FIELD_INFO$4.NHS_OPTIONS={TITLE:"Reason why NHS ID is not provided",NAME:"nhsOptions",KEY:"nhsOptions",IS_MANDATORY:!1,INVALID_INPUT_ERROR:"Please select a correct reason",MISSING_INPUT_ERROR:"Please select a reason"},FIELD_INFO$4.REGISTRATION_REASON={TITLE:"Registration reason",NAME:"registrationReason",KEY:"registrationReason",IS_MANDATORY:!0,MISSING_INPUT_ERROR:"Please select a reason"},FIELD_INFO$4.REGISTRATION_REASON_TEXT={TITLE:"Registration Reason",NAME:"registrationReasonText",KEY:"registrationReasonText",MISSING_INPUT_ERROR:"Please enter a reason"});const VALIDATION_FIELD_NAMES={NAME_PREFIX:"namePrefix",FIRST_NAME:"firstName",MIDDLE_NAME:"middleName",LAST_NAME:"lastName",PREFERRED_NAME:"preferredName",DOB_RAW:"dobRaw",IDB:"idb",GENDER:"gender",NHS_OPTIONS:"nhsOptions",PREFERRED_CENTRE:"primaryCenter",REGISTRATION_REASON:"registrationReason",REGISTRATION_REASON_TEXT:"registrationReasonText"};validate.validators.patientdob=function(et){if(!et||et.length===0)return null;if(et.length!==8)return"Please complete date of birth.";if(isNaN(Number(et)))return"Please enter a valid date";const tt=moment$2(et,"DDMMYYYY");return tt.isValid()?tt.isAfter(moment$2())?"Please enter a date not in the future":null:"Please enter a valid date"};class RegistrationBasic extends reactExports.Component{constructor(rt){super(rt);Nr(this,"autosave",async(rt,nt,lt,ut=!0)=>{rt[nt]=lt,this.setState({patient:rt}),await this.props.autosave(rt,nt,lt).then(()=>{if(nt==="idb"){lt=lt.replace(/ /g,"").replace(/_/g,"");const dt=this.state.viewed.add("nhsOptions");this.setState({viewed:dt})}if(ut){let dt=nt;nt===FIELD_INFO$4.DOB_RAW_YEAR.key&&(dt="dobRaw");const pt=this.state.viewed.add(dt);this.setState({viewed:pt})}})});this.state={showDialog:!1,viewed:new Set,searchQuery:emptySearch,patient:rt.patient}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad&&rt.patient.lock&&!rt.patient.lock.readOnly){const lt=Object.keys(VALIDATION_FIELD_NAMES).map(dt=>VALIDATION_FIELD_NAMES[dt]);return{viewed:new Set(lt),showDialog:!1,searchQuery:emptySearch,patient:rt.patient}}return nt}render(){const{genderRefData:rt,isPso:nt,saveStatus:lt,titleReferenceData:ut}=this.props,dt=this.state.patient;return jsxRuntimeExports.jsx(routerComponent,{patient:dt,genderRefData:rt,isPso:nt,saveStatus:lt,children:this.renderRegistrationBasicDetailsForm(dt,ut)})}deduplicate(rt,nt,lt){if(region$a===Region.UK){let{firstName:ut,lastName:dt,dob:pt}=rt;nt==="firstName"&&(ut=lt),nt==="lastName"&&(dt=lt),nt==="dob"&&(pt=lt);const ht=gql`
        {
          ukDedupSearch (search: "${ut} ${dt}" dob: "${pt}" existingPatient: "${rt.id}") {
            id
            firstName
            lastName
            dob
            ida
            residentialAddressLine1
            residentialAddressLine2
            residentialAddressCity
            residentialAddressPostcode

          }
        }
      `;this.setState({...this.state,searchQuery:ht})}this.autosave(rt,nt,lt)}hideModal(){this.setState({...this.state,searchQuery:emptySearch})}isIsBn(rt){if(rt==="")return!0;if(typeof rt=="string"){const nt=[];for(let dt=0;dt<9;dt++)nt.push(parseInt(rt[dt])*[dt+1]);return nt.reduce((dt,pt)=>dt+pt,0)%11===parseInt(rt[9])}}isAbove18(rt){return new Date(parseInt(rt.slice(0,4))+18,parseInt(rt.slice(5,7))-1,parseInt(rt.slice(8,10)))<=new Date}renderRegistrationBasicDetailsForm(rt,nt){var Tt,Ct;const{genderRefData:lt,locationsRefData:ut,nhsOptionsRefData:dt,registrationReasonRefData:pt,forceRefetch:ht,isPso:mt}=this.props,xt={namePrefix:{presence:{allowEmpty:!1,message:"Please select title."}},firstName:{presence:{allowEmpty:!1,message:region$a===Region.UK?"Please enter given names":"Please complete first name."},length:{maximum:30,message:"Please limit character length to 30 including spaces"},format:{pattern:region$a===Region.UK?UK_NAME_REGEX:NAME_REGEX,message:"Please enter characters only."}},middleName:{presence:{allowEmpty:!0},length:{maximum:40,message:"Please limit character length to 40 including spaces"},format:{pattern:region$a===Region.UK?UK_NAME_REGEX:NAME_REGEX,message:"Please enter characters only."}},lastName:{presence:{allowEmpty:!1,message:"Please complete last name."},length:{maximum:40,message:"Please limit character length to 40 including spaces"},format:{pattern:region$a===Region.UK?UK_NAME_REGEX:NAME_REGEX,message:"Please enter characters only."}},preferredName:{presence:{allowEmpty:!0},length:{maximum:40,message:"Please limit character length to 40 including spaces"},format:{pattern:NAME_REGEX,message:"Please enter characters only."}},dobRaw:{presence:{allowEmpty:!1,message:"Please complete date of birth."},patientdob:{}},gender:{presence:{allowEmpty:!FIELD_INFO$4.GENDER.IS_MANDATORY,message:FIELD_INFO$4.GENDER.MISSING_INPUT_ERROR},list:{listdata:lt,message:FIELD_INFO$4.GENDER.INVALID_INPUT_ERROR}}};if(region$a===Region.UK){const It=this.isIsBn(rt.idb);let Dt=!0;rt.dob&&(Dt=this.isAbove18(rt.dob)),It?rt.idbConflict?xt.idb={format:{pattern:"'a^'",message:"This NHS number is in use on another patient"}}:xt.idb={presence:{allowEmpty:!0}}:xt.idb={format:{pattern:"'a^'",message:"This is not a valid NHS number"}},xt.dobRaw={presence:{allowEmpty:!1,message:"Please complete date of birth"},format:{pattern:Dt?".*":"ERROR",message:"Patient is under 18"}},xt.primaryCenter={presence:{allowEmpty:!FIELD_INFO$4.PREFERRED_CENTRE.IS_MANDATORY,message:FIELD_INFO$4.PREFERRED_CENTRE.MISSING_INPUT_ERROR},list:{listdata:ut,message:FIELD_INFO$4.PREFERRED_CENTRE.INVALID_INPUT_ERROR}},xt.nhsOptions={presence:{allowEmpty:!!rt.idb,message:FIELD_INFO$4.NHS_OPTIONS.MISSING_INPUT_ERROR}},xt.registrationReason={presence:{allowEmpty:!FIELD_INFO$4.REGISTRATION_REASON.IS_MANDATORY,message:FIELD_INFO$4.REGISTRATION_REASON.MISSING_INPUT_ERROR}},xt.registrationReasonText={presence:{allowEmpty:rt.registrationReason!=="Other",message:FIELD_INFO$4.REGISTRATION_REASON_TEXT.MISSING_INPUT_ERROR}}}const Mt={};for(const It of this.state.viewed.keys())Mt[It]=xt[It];const vt={fullMessages:!1},Ot={...rt};Ot.dobRaw=appendRawToDOBRawString(rt);const At=validate(Ot,Mt,vt),{searchQuery:Rt}=this.state,zt="basic";return jsxRuntimeExports.jsxs("div",{className:"form-page",children:[region$a===Region.UK&&rt.firstName&&rt.lastName&&rt.dob&&jsxRuntimeExports.jsx(Query,{query:Rt,fetchPolicy:"network-only",nextFetchPolicy:"network-only",children:({data:It,error:Dt})=>{const{setError:kt}=useErrorModalContext();return reactExports.useEffect(()=>{if(Dt)return kt()},[Dt]),jsxRuntimeExports.jsx(ModalSearchResults,{isOpen:!!(It&&It.ukDedupSearch&&It.ukDedupSearch.length>0),data:It,dismissFunction:this.hideModal.bind(this),patient:rt,redirect:"/registration/temppatientid/basic"})}}),jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading basic-details",children:FORM_HEADING$9}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.namePrefix),htmlFor:"namePrefix",title:TITLE_PREFIX_FIELD_HEADING,children:jsxRuntimeExports.jsx(DropDownField,{disabled:rt.lock&&rt.lock.readOnly,inputName:"namePrefix",placeholder:TITLE_PREFIX_FIELD_PLACEHOLDER,defaultValue:rt.namePrefix,options:nt,onChange:It=>this.autosave(rt,"namePrefix",It.target.value),errors:At&&At.namePrefix?At.namePrefix:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.firstName),htmlFor:"firstName",title:applyRequired({title:FIRST_NAME_FIELD_HEADING,category:zt,optionalForPSO:mt}),children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:"firstName",maxLength:30,placeholder:FIRST_NAME_FIELD_PLACEHOLDER,defaultValue:rt.firstName,onBlur:It=>this.deduplicate(rt,"firstName",It.target.value),errors:At&&At.firstName?At.firstName:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.middleName),htmlFor:"middleName",hideOptional:region$a===Region.UK,title:MIDDLE_NAME_FIELD_HEADING,required:!1,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:"middleName",maxLength:40,placeholder:MIDDLE_NAME_FIELD_PLACEHOLDER,defaultValue:rt.middleName,onBlur:It=>{this.autosave(rt,"middleName",It.target.value)},errors:At&&At.middleName?At.middleName:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.lastName),htmlFor:"lastName",title:applyRequired({title:LAST_NAME_FIELD_HEADING,category:zt,optionalForPSO:mt}),children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:"lastName",maxLength:40,placeholder:LAST_NAME_FIELD_PLACEHOLDER,defaultValue:rt.lastName,onBlur:It=>this.deduplicate(rt,"lastName",It.target.value),errors:At&&At.lastName?At.lastName:void 0})}),region$a!==Region.UK&&jsxRuntimeExports.jsxs(FormSegmentField$1,{isValid:!(At&&At.preferredName),htmlFor:"preferredName",title:PREFERRED_NAME_FIELD_HEADING,required:!1,children:[jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:"preferredName",maxLength:40,placeholder:PREFERRED_NAME_FIELD_PLACEHOLDER,defaultValue:rt.preferredName,onBlur:It=>{this.autosave(rt,"preferredName",It.target.value)},errors:At&&At.preferredName?At.preferredName:void 0}),jsxRuntimeExports.jsx(CircleInfo,{messages:["If different than first name"]})]}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.gender),htmlFor:FIELD_INFO$4.GENDER.NAME,title:applyRequired({title:FIELD_INFO$4.GENDER.TITLE,category:zt,optionalForPSO:mt}),children:jsxRuntimeExports.jsx(SegmentedInput,{disabled:rt.lock&&rt.lock.readOnly,options:lt,fieldName:FIELD_INFO$4.GENDER.NAME,defaultSelected:rt.gender,itemSelected:It=>{this.autosave(rt,FIELD_INFO$4.GENDER.KEY,It.id)},errors:At&&At.gender?At.gender:void 0})}),region$a!==Region.UK?jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.dobRaw),htmlFor:"dobRaw",title:applyRequired({title:DATE_OF_BIRTH_FIELD_HEADING,category:zt,optionalForPSO:mt}),children:jsxRuntimeExports.jsxs("div",{className:"date-of-birth-container",children:[jsxRuntimeExports.jsxs("div",{className:"date-of-birth-input-container",children:[jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_INFO$4.DOB_RAW_DAY.name,maxLength:2,inputType:"text",defaultValue:Ot.dobRawDay,displayInputError:At&&At.dobRaw,onBlur:It=>{this.autosave(Ot,FIELD_INFO$4.DOB_RAW_DAY.key,It.target.value)},placeholder:"DD"}),jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_INFO$4.DOB_RAW_MONTH.name,maxLength:2,inputType:"text",defaultValue:Ot.dobRawMonth,displayInputError:At&&At.dobRaw,onBlur:It=>{this.autosave(Ot,FIELD_INFO$4.DOB_RAW_MONTH.key,It.target.value)},placeholder:"MM"}),jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_INFO$4.DOB_RAW_YEAR.name,maxLength:4,inputType:"text",defaultValue:Ot.dobRawYear,displayInputError:At&&At.dobRaw,onBlur:It=>{this.autosave(Ot,FIELD_INFO$4.DOB_RAW_YEAR.key,It.target.value)},placeholder:"YYYY"})]}),jsxRuntimeExports.jsx("div",{className:"date-of-birth-example-text",children:DATE_OF_BIRTH_EXAMPLE_TEXT}),jsxRuntimeExports.jsx(ErrorInfo,{errors:At&&At.dobRaw})]})}):jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At!=null&&At.dobRaw),htmlFor:"dobRaw",title:DATE_OF_BIRTH_FIELD_HEADING,children:jsxRuntimeExports.jsx(BaseDatePicker,{id:"dobRaw",sx:{height:"48px"},disabled:(Tt=Ot==null?void 0:Ot.lock)==null?void 0:Tt.readOnly,disableFuture:!0,openTo:"year",value:Ot.dob?dayjs(Ot.dob):null,onAccept:It=>{const Dt=dayjs(It);Dt.isValid()?this.deduplicate(Ot,FIELD_INFO$4.DOB.key,Dt.format("YYYY-MM-DD")):It===null&&this.deduplicate(Ot,FIELD_INFO$4.DOB.key,"")},minDate:dayjs().subtract(120,"year"),maxDate:dayjs().subtract(18,"years"),error:!!(At!=null&&At.dobRaw),helperText:(Ct=At==null?void 0:At.dobRaw)==null?void 0:Ct[0],onBlur:It=>{const Dt=dayjs(It.target.value,"DD/MM/YYYY");Dt.isValid()?this.deduplicate(Ot,FIELD_INFO$4.DOB.key,Dt.format("YYYY-MM-DD")):this.deduplicate(Ot,FIELD_INFO$4.DOB.key,"")}})}),region$a===Region.UK&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.primaryCenter),htmlFor:"primaryCenter",title:PREFERRED_CENTRE_FIELD_HEADING,children:jsxRuntimeExports.jsx(DropDownField,{inputName:"primaryCenter",placeholder:PREFERRED_CENTRE_FIELD_PLACEHOLDER,defaultValue:rt.primaryCenter,options:ut,onChange:It=>this.autosave(rt,"primaryCenter",It.target.value),errors:At&&At.primaryCenter?At.primaryCenter:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.idb),htmlFor:"idb",title:FIELD_INFO$4.IDB.TITLE,children:jsxRuntimeExports.jsx(MaskField$1,{mask:"999 999 9999",disabled:rt.lock&&rt.lock.readOnly,inputName:"idb",inputType:"text",defaultValue:Ot.idb,displayInputError:At&&At.idb,onBlur:It=>{const Dt=It.target.value.replace(/ /g,"").replace(/_/g,"");this.autosave(Ot,"idb",Dt),setTimeout(ht,300)},errors:At&&At.idb?At.idb:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{disabled:!rt.idb,isValid:!(At&&At.nhsOptions),htmlFor:"nhsOptions",title:NHS_OPTIONS_FIELD_HEADING,children:jsxRuntimeExports.jsx(DropDownField,{inputName:"nhsOptions",disabled:!!rt.idb,placeholder:rt.idb?"":NHS_OPTIONS_FIELD_PLACEHOLDER,defaultValue:rt.nhsOptions,options:rt.idb?[]:dt,onChange:It=>this.autosave(rt,"nhsOptions",It.target.value),errors:At&&At.nhsOptions?At.nhsOptions:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.registrationReason),htmlFor:"registrationReason",title:REGISTRATION_REASON_FIELD_HEADING,children:jsxRuntimeExports.jsx(DropDownField,{inputName:"registrationReason",placeholder:REGISTRATION_REASON_FIELD_PLACEHOLDER,defaultValue:rt.registrationReason,options:pt,onChange:It=>this.autosave(rt,"registrationReason",It.target.value),errors:At&&At.registrationReason?At.registrationReason:void 0})})]}),region$a===Region.UK&&rt.registrationReason==="Other"&&jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(At&&At.registrationReasonText),htmlFor:"registrationReasonText",title:REGISTRATION_REASON_TEXT_FIELD_HEADING,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:"registrationReasonText",maxLength:200,placeholder:REGISTRATION_REASON_TEXT_FIELD_PLACEHOLDER,defaultValue:rt.registrationReasonText,onBlur:It=>this.deduplicate(rt,"registrationReasonText",It.target.value),errors:At&&At.registrationReasonText?At.registrationReasonText:void 0})})]})]})}}Nr(RegistrationBasic,"defaultProps",{locationsRefData:[]});const PATIENT_AND_USER_DETAILS_QUERY$e=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      address {
        id
        formattedAddress
        ukFormattedAddress
      }
      lastVisitedSection
      regFormStatus
      firstName
      middleName
      lastName
      ida
      idb
      gender
      dob
      isProd
      namePrefix
      preferredName
      dobRawDay
      dobRawMonth
      dobRawYear
      primaryCenter
      nhsOptions
      idbConflict
      registrationReason
      registrationReasonText
    }
    nameTitle: listData(category: "nameTitle") {
      id
      name
    }
    user {
      id
      isPso
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    locationsRefData: configs {
      id
      name
    }
    nhsOptionsRefData: listData(category: "nhsOptions") {
      id
      name
    }
    registrationReasonRefData: listData(category: "registrationReason") {
      id
      name
    }
  }
`;class RegistrationBasicApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"formartRegistrationReasonListData",rt=>rt.map(nt=>{const lt=lodash.cloneDeep(nt);return lt.id=lt.name,lt}));Nr(this,"autosave",async(rt,nt,lt,ut="String")=>{const dt=this.props.client,ht=[{key:nt,value:lt,type:ut}];nt==="idb"&&rt.nhsOptions&&ht.push({key:"nhsOptions",value:rt.nhsOptions?rt.nhsOptions:"",type:ut}),nt==="registrationReason"&&ht.push({key:"registrationReasonText",value:"",type:ut});const mt=await this.getApolloCache();let xt=mt.currentPendingSaveCount+1,Mt=mt.saveErrorCount;return dt&&dt.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:xt}}),this.setState({saveStatus:this.props.getSaveStatus(xt,Mt)}),dt==null?void 0:dt.mutate(this.props.getPatientMutation(rt,ht)).then(vt=>{vt.data.updatePatient.errors&&Mt++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),Mt++}).finally(async()=>{xt=(await this.getApolloCache()).currentPendingSaveCount-1,dt&&dt.writeQuery({query:gql`
                query {
                  pendingSaveCount
                  saveErrorCount
                }
              `,data:{pendingSaveCount:xt,saveErrorCount:Mt}}),this.setState({saveStatus:this.props.getSaveStatus(xt,Mt)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=[...lt.registrationPagesViewed];nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.BASIC)}),nt.includes(BASE_REGISTRATION_PAGES.BASIC)||(nt=[...nt,BASE_REGISTRATION_PAGES.BASIC]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$e,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,data:dt,refetch:pt})=>{if(ut)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(dt&&dt.patient){const ht={...dt.patient};this.userIsPSO=dt.user.isPso||!1;const mt=dt.patient.namePrefix;return dt.nameTitle.findIndex(Mt=>Mt.id===mt)<0&&(ht.namePrefix=""),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(RegistrationBasic,{autosave:this.autosave,patient:ht,nhsOptionsRefData:dt.nhsOptionsRefData,locationsRefData:dt.locationsRefData,genderRefData:dt.genderRefData,titleReferenceData:dt.nameTitle,registrationReasonRefData:this.formartRegistrationReasonListData(dt.registrationReasonRefData),saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO,forceRefetch:pt})]})}return jsxRuntimeExports.jsx("div",{children:"Error"})}})}}const apolloComponent$j=withApollo(RegistrationBasicApollo),component$c=withRegistrationForm(apolloComponent$j),FIELDS$b={FORM_HEADING:{NAME:"formHeading",TITLE:"Emergency Contact"},FIRST_NAME:{NAME:"firstName",TITLE:"First name*",PLACE_HOLDER:"Enter first name",COMPONENT:TextAreaField},LAST_NAME:{NAME:"lastName",TITLE:"Last name*",PLACE_HOLDER:"Enter last name",COMPONENT:TextAreaField},RELATIONSHIP:{NAME:"relationship",TITLE:"Relationship*",PLACE_HOLDER:"Select from drop down",COMPONENT:SelectField$1},GUARDIAN:{NAME:"guardian",TITLE:"Guardian",PLACE_HOLDER:"",COMPONENT:TextAreaField},GUARDIAN_RELATIONSHIP:{NAME:"guardianRelationship",TITLE:"Guardian Relationship",PLACE_HOLDER:"Select from drop down",COMPONENT:SelectField$1},MOBILE:{NAME:"mobilePhoneNumber",TITLE:"Mobile*",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},HOME_PHONE:{NAME:"homePhoneNumber",TITLE:"Landline*",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField}},EMERGENCY_CONTACT_QUERY$1=gql`
  query EmergencyContactQuery($id: ID!) {
    patient(id: $id) {
      id
      guardian
      guardianRelationship
      emergencyContact {
        id
        contactType
        relationship
        firstName
        lastName
        mobilePhoneNumber
        homePhoneNumber
        address {
          id
          ...Address
        }
      }
    }
    relationshipsRefData: listData(category: "relationships") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,UPDATE_EMERGENCY_CONTACT$1=gql`
  mutation UpdateEmergencyContactUs(
    $id: ID!
    $firstName: String
    $lastName: String
    $relationship: String
    $mobilePhoneNumber: String
    $homePhoneNumber: String
    $guardian: String
    $guardianRelationship: String
  ) {
    updateEmergencyContactUs(
      id: $id
      firstName: $firstName
      lastName: $lastName
      relationship: $relationship
      mobilePhoneNumber: $mobilePhoneNumber
      homePhoneNumber: $homePhoneNumber
      guardian: $guardian
      guardianRelationship: $guardianRelationship
    ) {
      patient {
        id
        guardian
        guardianRelationship
        emergencyContact {
          id
          contactType
          relationship
          firstName
          lastName
          mobilePhoneNumber
          homePhoneNumber
          address {
            id
            ...Address
          }
        }
      }
    }
  }

  ${REGISTRATION_ADDRESS_FRAGMENT}
`,generateValidationSchema$d=et=>{const tt=create$3().shape({firstName:create$6().ensure().required(VALUE_REQUIRED$5),lastName:create$6().ensure().required(VALUE_REQUIRED$5),relationship:create$6().ensure().required(VALUE_REQUIRED$5),homePhoneNumber:create$6().matches(US_PHONE_REGEX,{message:PHONE_VALIDATION$3,excludeEmptyString:!0}).ensure().when("mobilePhoneNumber",{is:"",then:create$6().required(PHONE_REQUIRED$2).matches(US_PHONE_REGEX,PHONE_VALIDATION$3)}),mobilePhoneNumber:create$6().matches(US_PHONE_REGEX,{message:PHONE_VALIDATION$3,excludeEmptyString:!0}).ensure().when("homePhoneNumber",{is:"",then:create$6().required(PHONE_REQUIRED$2).matches(US_PHONE_REGEX,PHONE_VALIDATION$3)})},[["homePhoneNumber","mobilePhoneNumber"]]);try{validateYupSchema(et,tt,!0)}catch(rt){return yupToFormErrors(rt)}return{}},EmergencyContactForm$1=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,isPso:lt,refData:{relationshipsRefData:ut}}=et,dt=reactExports.useContext(RegistrationContext),pt=useHistory(),{patientId:ht}=useParams(),mt=(dt==null?void 0:dt.registrationSummaryVisited)&&!lt,xt={...rt.emergencyContact,...rt},[Mt]=useMutation(UPDATE_ALTERNATE_CONTACT_ADDRESS,{refetchQueries:[{query:EMERGENCY_CONTACT_QUERY$1,variables:{id:ht}}]}),vt=sessionStorage.getItem("referringPage");return jsxRuntimeExports.jsx(Formik,{initialValues:xt,validate:Ot=>generateValidationSchema$d(Ot),validateOnChange:!1,validateOnBlur:!0,onSubmit:()=>pt.push(registrationPath$1(ht,mt?"summary":"referrers")),children:({errors:Ot,submitForm:At,setFieldTouched:Rt,values:zt})=>{const Ct={...sharedFormContainerProps$1("Emergency Contact",4,"",!lt),submitButtonText:mt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,continueDisabled:Object.keys(Ot).length>0,backLink:registrationPath$1(ht,"address"),handleShowSaveExitConfirm:nt,saveAndExitLink:lt&&generatePath(vt||PSO_SUMMARY_LINK$1,{patientId:ht})},It=(Dt,kt)=>{var qt;Mt({variables:{patientId:ht,alternateContactId:(qt=rt==null?void 0:rt.emergencyContact)==null?void 0:qt.id,relatedName:Dt,line1:(kt==null?void 0:kt.line1)??"",line2:(kt==null?void 0:kt.line2)??"",city:(kt==null?void 0:kt.city)??"",postcode:(kt==null?void 0:kt.postcode)??"",state:(kt==null?void 0:kt.state)??"",country:(kt==null?void 0:kt.country)??""}})};return jsxRuntimeExports.jsx(FormContainer$1,{...Ct,submitForm:At,handleValidation:Dt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:FIELDS$b.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"* = required field"}),standardField$1(FIELDS$b.FIRST_NAME,tt),standardField$1(FIELDS$b.LAST_NAME,tt),standardField$1(FIELDS$b.RELATIONSHIP,tt,mapListData$1(ut)),linkedField$1(FIELDS$b.MOBILE,FIELDS$b.HOME_PHONE,tt,Rt),jsxRuntimeExports.jsx(FormRow$2,{labelClass:"label-form-row",children:jsxRuntimeExports.jsx(StyledHorizontalLine$1,{children:jsxRuntimeExports.jsx("span",{children:"OR"})})}),linkedField$1(FIELDS$b.HOME_PHONE,FIELDS$b.MOBILE,tt,Rt),jsxRuntimeExports.jsx(AddressSectionField,{name:"address",values:zt.address||EMPTY_ADDRESS$1,updateAddress:Dt=>It("address",Dt)}),standardField$1(FIELDS$b.GUARDIAN,tt),standardField$1(FIELDS$b.GUARDIAN_RELATIONSHIP,tt,mapListData$1(ut))]})})}})},EmergencyContact$1=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_EMERGENCY_CONTACT$1),{data:lt,error:ut}=useQuery(EMERGENCY_CONTACT_QUERY$1,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{relationshipsRefData:dt,patient:pt,user:ht}=lt,mt=(xt,Mt)=>{nt({variables:{id:rt,[xt]:Mt}})};return jsxRuntimeExports.jsx(EmergencyContactForm$1,{refData:{relationshipsRefData:dt},patient:pt,updateField:mt,handleShowSaveExitConfirm:()=>tt(!0),isPso:ht.isPso})},FIELDS$a={FORM_HEADING:{NAME:"formHeading",TITLE:"Your feedback"},HEARD_ABOUT_US:{NAME:"heardAboutUs",TITLE:"How did you hear about us?",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},HEARD_ABOUT_US_OTHER:{NAME:"heardAboutUsOther",TITLE:"Please specify",PLACE_HOLDER:"Please specify",COMPONENT:TextAreaField},INTERNET_FOR_RESEARCH:{NAME:"internetForResearch",TITLE:"When conducting your own research, how often do you use the internet for gathering information?",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},AGREE_TO_SURVEY:{NAME:"agreeToSurvey",TITLE:"By checking yes, you agree that you understand these risks and to receive surveys and/or requests for online reviews through standard unsecure (unencrypted) email, and/or mobile text messaging.",COMPONENT:null}},EXPERIENCE_TEXT="At GenesisCare, we know you have a choice in where you receive your medical care and we thank you for choosing GenesisCare.  We would like to invite you to share your experience by completing surveys and/or online reviews. Sharing this information can help others who are interested in knowing more about the patient services provided by GenesisCare and can help promote our mission of providing high-quality, patient-centered care.  Surveys and/or online review requests may  be sent to you via US mail, email, mobile text messaging, and/or telephone calls. Communication platforms using standard email/mobile text messaging may not utilize encryption, which can place your information at risk of being read or accessed by an unintended third party.",WILLING_TEXT="If you are willing to allow GenesisCare to share your online review or testimonial, please let us know so we can get your written permission.",TextHeading=styled$1("div")`
  font-size: ${getRemSize(16)};
  font-weight: bold;
  padding-bottom: 10px;
  padding-top: 10px;
`,FeedbackForm=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,isPso:lt,refData:{heardAboutRefData:ut,internetForResearchRefData:dt}}=et,pt=reactExports.useContext(RegistrationContext),ht=useHistory(),{patientId:mt}=useParams(),xt=(pt==null?void 0:pt.registrationSummaryVisited)&&!lt,Mt=sessionStorage.getItem("referringPage");return jsxRuntimeExports.jsx(Formik,{initialValues:rt,onSubmit:()=>ht.push(registrationPath$1(mt,"summary")),children:({submitForm:vt,values:Ot})=>{const Rt={...sharedFormContainerProps$1("Your Feedback",8,"",!lt),submitButtonText:xt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,backLink:registrationPath$1(mt,"socialHistory"),handleShowSaveExitConfirm:nt,saveAndExitLink:lt&&generatePath(Mt||PSO_SUMMARY_LINK$1,{patientId:mt})};return jsxRuntimeExports.jsx(FormContainer$1,{...Rt,submitForm:vt,handleValidation:zt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:FIELDS$a.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"* = required field"}),standardField$1(FIELDS$a.HEARD_ABOUT_US,tt,mapListData$1(ut)),(Ot==null?void 0:Ot.heardAboutUs)==="Other"&&jsxRuntimeExports.jsx(StyledIndentedSection$1,{children:standardField$1(FIELDS$a.HEARD_ABOUT_US_OTHER,tt)}),standardField$1(FIELDS$a.INTERNET_FOR_RESEARCH,tt,mapListData$1(dt)),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TextHeading,{className:"label-form-row","data-test-id":"share-exp-div",children:"Share your experience"}),jsxRuntimeExports.jsx("div",{"data-test-id":"experience-text-div",children:EXPERIENCE_TEXT}),jsxRuntimeExports.jsx(CheckboxField,{label:FIELDS$a.AGREE_TO_SURVEY.TITLE,name:"agreeToSurvey",handleMutation:zt=>tt(FIELDS$a.AGREE_TO_SURVEY.NAME,zt),field:{value:rt.agreeToSurvey},width:"100%",marginTop:"30px",marginBottom:"30px"}),jsxRuntimeExports.jsx("div",{"data-test-id":"willing-text-div",children:WILLING_TEXT})]})]})})}})},FEEDBACK_QUERY=gql`
  query FeedbackQuery($id: ID!) {
    patient(id: $id) {
      id
      heardAboutUs
      heardAboutUsOther
      internetForResearch
      agreeToSurvey
    }
    heardAboutRefData: listData(category: "heardAboutUs") {
      id
      name
    }
    internetForResearchRefData: listData(category: "internetForResearch") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_FEEDBACK=gql`
  mutation UpdateFeedbackUs(
    $id: ID!
    $heardAboutUs: String
    $internetForResearch: String
    $agreeToSurvey: Boolean
    $heardAboutUsOther: String
  ) {
    updateFeedbackUs(
      id: $id
      heardAboutUs: $heardAboutUs
      heardAboutUsOther: $heardAboutUsOther
      internetForResearch: $internetForResearch
      agreeToSurvey: $agreeToSurvey
    ) {
      patient {
        id
        heardAboutUs
        heardAboutUsOther
        internetForResearch
        agreeToSurvey
      }
    }
  }
`,Feedback$1=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_FEEDBACK),{data:lt,error:ut}=useQuery(FEEDBACK_QUERY,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{heardAboutRefData:dt,internetForResearchRefData:pt,patient:ht,user:mt}=lt,xt=(Mt,vt)=>{nt({variables:{id:rt,[Mt]:vt}})};return jsxRuntimeExports.jsx(FeedbackForm,{refData:{heardAboutRefData:dt,internetForResearchRefData:pt},patient:ht,updateField:xt,handleShowSaveExitConfirm:()=>tt(!0),isPso:mt.isPso})},BASIC_FIELDS$3={FORM_HEADING:{NAME:"formHeading",TITLE:"Basic Details"},TITLE_PREFIX:{NAME:"namePrefix",TITLE:"Title",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},FIRST_NAME:{NAME:"firstName",TITLE:"First name*",PLACE_HOLDER:"Enter first name",COMPONENT:TextAreaField},MIDDLE_NAME:{NAME:"middleName",TITLE:"Middle name",PLACE_HOLDER:"Enter middle name",COMPONENT:TextAreaField},LAST_NAME:{NAME:"lastName",TITLE:"Last name*",PLACE_HOLDER:"Enter last name",COMPONENT:TextAreaField},PREFERRED_NAME:{NAME:"preferredName",TITLE:"Preferred name",PLACE_HOLDER:"If different than first name",COMPONENT:TextAreaField},GENDER:{NAME:"gender",TITLE:"Sex*",COMPONENT:ToggleButtonGroupField},DOB_RAW:{NAME:"dob",TITLE:"Date of birth*"},SSN:{NAME:"socialSecurityNumber",TITLE:"Social Security Number (SSN)",PLACE_HOLDER:""}},NOT_VALID="This is not a valid SSN",generateValidationSchema$c=et=>{const tt={firstName:create$6().ensure().required(VALUE_REQUIRED$5),lastName:create$6().ensure().required(VALUE_REQUIRED$5),gender:create$6().ensure().required(VALUE_REQUIRED$5),socialSecurityNumber:create$6().matches(US_SSN_REGEX,NOT_VALID)};try{validateYupSchema(et,create$3(tt),!0)}catch(rt){return yupToFormErrors(rt)}return{}},BasicForm$1=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,isPso:lt,refData:{titleReferenceData:ut,genderRefData:dt}}=et,pt=reactExports.useContext(RegistrationContext),ht={...rt,namePrefix:getDisplayValue$1(ut,rt.namePrefix),gender:getDisplayValue$1(dt,rt.gender)},mt=(pt==null?void 0:pt.registrationSummaryVisited)&&!lt,[xt,Mt]=reactExports.useState(!1),vt=useHistory(),{patientId:Ot}=useParams(),At=sessionStorage.getItem("referringPage");return jsxRuntimeExports.jsx(Formik,{initialValues:ht,validate:Rt=>generateValidationSchema$c(Rt),validateOnChange:!1,validateOnBlur:!0,onSubmit:()=>vt.push(registrationPath$1(ht==null?void 0:ht.id,mt?"summary":"contact")),children:({errors:Rt,submitForm:zt,values:Tt})=>{const It={...sharedFormContainerProps$1("Basic Details",void 0,"",!lt),submitButtonText:mt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,continueDisabled:Object.keys(Rt).length>0||!(ht!=null&&ht.dob),handleShowSaveExitConfirm:nt,saveAndExitLink:lt&&generatePath(At||PSO_SUMMARY_LINK$1,{patientId:Ot})};return jsxRuntimeExports.jsx(FormContainer$1,{...It,submitForm:zt,handleValidation:Dt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:BASIC_FIELDS$3.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"* = required field"}),standardField$1(BASIC_FIELDS$3.TITLE_PREFIX,tt,mapListData$1(ut)),standardField$1(BASIC_FIELDS$3.FIRST_NAME,tt),standardField$1(BASIC_FIELDS$3.MIDDLE_NAME,tt),standardField$1(BASIC_FIELDS$3.LAST_NAME,tt),standardField$1(BASIC_FIELDS$3.PREFERRED_NAME,tt),standardField$1(BASIC_FIELDS$3.GENDER,tt,mapListData$1(dt)),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:BASIC_FIELDS$3.DOB_RAW.TITLE,fieldName:BASIC_FIELDS$3.DOB_RAW.NAME,className:xt&&Tt.dob===null?"registration-date-error":"registration-date",labelClass:"label-form-row",children:[jsxRuntimeExports.jsx(Field,{name:BASIC_FIELDS$3.DOB_RAW.NAME,component:RODatePicker,alternateStyle:!0,isUs:!0,id:BASIC_FIELDS$3.DOB_RAW.NAME,value:ht.dob?hooks(ht.dob).toDate():null,disableFuture:!0,onChange:Dt=>{const kt=Dt?hooks(Dt).format("YYYY-MM-DD"):"";Mt(!kt),tt(BASIC_FIELDS$3.DOB_RAW.NAME,kt)},isManualEditEnabled:!0}),xt&&Tt.dob===null&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:BASIC_FIELDS$3.DOB_RAW.NAME,fieldText:VALUE_REQUIRED$5,helperType:"error",fontSize:14})]}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:BASIC_FIELDS$3.SSN.TITLE,fieldName:BASIC_FIELDS$3.SSN.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:BASIC_FIELDS$3.SSN.NAME,component:MaskField,defaultValue:ht.socialSecurityNumber,inputType:"text",updateMutation:Dt=>tt(BASIC_FIELDS$3.SSN.NAME,Dt),mask:"999 - 99 - 9999",maskChar:"X"})})]})})}})},REGISTRATION_BASIC_DETAILS_QUERY$1=gql`
  query RegistrationBasicDetails($id: ID!) {
    patient(id: $id) {
      id
      firstName
      middleName
      lastName
      gender
      dob
      namePrefix
      preferredName
      socialSecurityNumber
    }
    nameTitle: listData(category: "nameTitle") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_REGISTRATION_BASIC_DETAILS$1=gql`
  mutation UpdatePatientUsBasic(
    $id: ID!
    $firstName: String
    $middleName: String
    $lastName: String
    $namePrefix: String
    $preferredName: String
    $gender: String
    $socialSecurityNumber: String
    $dob: String
  ) {
    updatePatientUsBasic(
      id: $id
      firstName: $firstName
      middleName: $middleName
      lastName: $lastName
      namePrefix: $namePrefix
      preferredName: $preferredName
      gender: $gender
      socialSecurityNumber: $socialSecurityNumber
      dob: $dob
    ) {
      patient {
        id
        firstName
        middleName
        lastName
        namePrefix
        preferredName
        gender
        socialSecurityNumber
        dob
      }
    }
  }
`,Basic$1=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION_BASIC_DETAILS$1),{data:lt,error:ut}=useQuery(REGISTRATION_BASIC_DETAILS_QUERY$1,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{genderRefData:dt,nameTitle:pt,patient:ht,user:mt}=lt,xt=(Mt,vt)=>{if(!((Mt==="firstName"||Mt==="lastName")&&vt==="")){if(Mt==="socialSecurityNumber"){if(!vt.toString().match(US_SSN_REGEX))return;vt=vt.toString().replace(/\D/g,"")}nt({variables:{id:rt,[Mt]:vt}})}};return jsxRuntimeExports.jsx(BasicForm$1,{refData:{genderRefData:dt,titleReferenceData:pt},patient:ht,updateField:xt,handleShowSaveExitConfirm:()=>tt(!0),isPso:mt.isPso})},CONTACT_FIELDS$3={FORM_HEADING:{NAME:"formHeading",TITLE:"Contact Details"},MOBILE:{NAME:"primaryPhone",TITLE:"Mobile*",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},HOME_PHONE:{NAME:"secondaryPhone",TITLE:"Home phone*",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},EMAIL:{NAME:"email",TITLE:"Email",PLACE_HOLDER:"e.g. yourname@email.com",COMPONENT:TextAreaField},EMPLOYER:{NAME:"employer",TITLE:"Employer",PLACE_HOLDER:"Enter employer name",COMPONENT:TextAreaField},WORK_PHONE:{NAME:"workPhone",TITLE:"Work phone",PLACE_HOLDER:"Enter work phone number",COMPONENT:TextAreaField}},EMAIL_VALIDATION$1="Please enter a valid email address.",VALUE_REQUIRED$3="This field is required",EMAIL_VALIDATION="Please enter a valid email or clear field.",EMAIL_DUPLICATE_VALIDATION="Email address already in use, please use another email address.",EMAIL_LENGTH_VALIDATION="Max length: 40 characters.",PHONE_VALIDATION$1="Please enter a valid phone number.",generateValidationSchema$b=et=>{const tt=create$3().shape({primaryPhone:create$6().ensure().when("secondaryPhone",{is:"",then:create$6().required(PHONE_REQUIRED$2).matches(US_PHONE_REGEX,PHONE_VALIDATION$3)}),secondaryPhone:create$6().ensure().when("primaryPhone",{is:"",then:create$6().required(PHONE_REQUIRED$2).matches(US_PHONE_REGEX,PHONE_VALIDATION$3)}),email:create$6().matches(new RegExp(EMAIL_STRING_REGEX),EMAIL_VALIDATION$1).max(CurrentAppConfig.EmailMaxLength,EMAIL_LENGTH_VALIDATION),workPhone:create$6().matches(US_PHONE_REGEX,PHONE_VALIDATION$3)},[["primaryPhone","secondaryPhone"]]),rt={primaryPhone:create$6().matches(US_PHONE_REGEX,PHONE_VALIDATION$3),secondaryPhone:create$6().matches(new RegExp(US_PHONE_REGEX),PHONE_VALIDATION$3)};try{validateYupSchema(et,tt,!0),validateYupSchema(et,create$3(rt),!0)}catch(nt){return yupToFormErrors(nt)}},ContactDetailsForm$1=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,previousPageLink:lt,isPso:ut}=et,dt=reactExports.useContext(RegistrationContext),{patientId:pt}=useParams(),ht=useHistory(),mt=(dt==null?void 0:dt.registrationSummaryVisited)&&!ut,xt=sessionStorage.getItem("referringPage");return jsxRuntimeExports.jsx(Formik,{initialValues:rt,validate:Mt=>generateValidationSchema$b(Mt),validateOnChange:!1,onSubmit:()=>ht.push(registrationPath$1(pt,mt?"summary":"address")),children:({submitForm:Mt,setFieldTouched:vt,errors:Ot})=>{const Rt={...sharedFormContainerProps$1("Contact Details",2,lt,!ut),submitButtonText:mt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,continueDisabled:Object.keys(Ot).length>0,handleShowSaveExitConfirm:nt,saveAndExitLink:ut&&generatePath(xt||PSO_SUMMARY_LINK$1,{patientId:pt})};return jsxRuntimeExports.jsx(FormContainer$1,{...Rt,submitForm:Mt,handleValidation:zt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:CONTACT_FIELDS$3.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"* = required field"}),linkedField$1(CONTACT_FIELDS$3.MOBILE,CONTACT_FIELDS$3.HOME_PHONE,tt,vt),jsxRuntimeExports.jsx(FormRow$2,{labelClass:"label-form-row",children:jsxRuntimeExports.jsx(StyledHorizontalLine$1,{children:jsxRuntimeExports.jsx("span",{children:"OR"})})}),linkedField$1(CONTACT_FIELDS$3.HOME_PHONE,CONTACT_FIELDS$3.MOBILE,tt,vt),standardField$1(CONTACT_FIELDS$3.EMAIL,tt),standardField$1(CONTACT_FIELDS$3.EMPLOYER,tt),standardField$1(CONTACT_FIELDS$3.WORK_PHONE,tt)]})})}})},REGISTRATION_CONTACT_DETAILS_QUERY$1=gql`
  query RegistrationContactDetails($id: ID!) {
    patient(id: $id) {
      id
      primaryPhone
      secondaryPhone
      email
      workPhone
      employer
      lastVisitedSection
      regFormStatus
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_REGISTRATION_CONTACT_DETAILS$1=gql`
  mutation UpdatePatientUsContacts(
    $id: ID!
    $primaryPhone: String
    $secondaryPhone: String
    $email: String
    $workPhone: String
    $employer: String
  ) {
    updatePatientUsContacts(
      id: $id
      primaryPhone: $primaryPhone
      secondaryPhone: $secondaryPhone
      email: $email
      workPhone: $workPhone
      employer: $employer
    ) {
      patient {
        id
        primaryPhone
        secondaryPhone
        email
        workPhone
        employer
      }
    }
  }
`,ContactDetails$1=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION_CONTACT_DETAILS$1),{data:lt,error:ut}=useQuery(REGISTRATION_CONTACT_DETAILS_QUERY$1,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:dt,user:pt}=lt,ht=(mt,xt)=>{nt({variables:{id:rt,[mt]:xt}})};return jsxRuntimeExports.jsx(ContactDetailsForm$1,{updateField:ht,patient:dt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:registrationPath$1(dt.id,"basic"),isPso:pt.isPso})},SPOUSE_WORKING_STATUS_OPTIONS=[{label:"Working",value:"Working"},{label:"Retired",value:"Retired"},{label:"Other",value:"Other"}],ALTERNATE_ADDRESS_OPTIONS=[{label:"Yes",value:!0},{label:"No",value:!1}],FIELDS$9={FORM_HEADING:{NAME:"formHeading",TITLE:"Demographic Details"},PRIMARY_OCCUPATION:{NAME:"primaryOccupation",TITLE:"What is/was your primary occupation?",PLACE_HOLDER:"Enter primary occupation",COMPONENT:TextAreaField},MARITAL_STATUS:{NAME:"maritalStatus",TITLE:"Marital status",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},SPOUSE_WORKING_STATUS:{NAME:"spouseWorkingStatus",TITLE:"Spouse working status",PLACE_HOLDER:"",COMPONENT:ToggleButtonGroupField},SPOUSE_NAME:{NAME:"spouseName",TITLE:"Spouse name",PLACE_HOLDER:"Enter spouse name",COMPONENT:TextAreaField},SPOUSE_DOB:{NAME:"spouseDob",TITLE:"Spouse date of birth",PLACE_HOLDER:""},SPOUSE_SSN:{NAME:"spouseSocialSecurityNumber",TITLE:"Spouse Social Security Number (SSN)",PLACE_HOLDER:"",COMPONENT:MaskField},SPOUSE_CONTACT:{NAME:"spouseContactNumber",TITLE:"Spouse contact number",PLACE_HOLDER:"Enter contact number",COMPONENT:TextAreaField},ALTERNATE_ADDRESS_BOOL:{NAME:"spouseAlternateAddressBool",TITLE:"Is your spouse's address different to yours?",PLACE_HOLDER:"",COMPONENT:ToggleButtonGroupField},ALTERNATE_ADDRESS:{NAME:"spouseAlternateAddress",TITLE:"",PLACE_HOLDER:""},RACE:{NAME:"race",TITLE:"Which of the following best describes your race?",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},RACE_SPECIFIED:{NAME:"raceSpecified",TITLE:"Please specify",PLACE_HOLDER:"Please specify",COMPONENT:TextAreaField},ANCESTRY:{NAME:"ancestry",TITLE:"Please select one ethnic group that best describes your ancestry",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},LANGUAGE:{NAME:"languageAtHome",TITLE:"What language do you feel most comfortable using when discussing your healthcare?",PLACE_HOLDER:"Start typing or select from dropdown",COMPONENT:SelectField$1}},SPECIFY_RACE_FIELDS=["Other","More than one race"],DEMOGRAPHICS_QUERY$1=gql`
  query RegistrationDemographicDetails($id: ID!) {
    patient(id: $id) {
      id
      ...PatientDemographics
      lastVisitedSection
      regFormStatus
    }
    raceRefData: listData(category: "race") {
      id
      ...ListData
    }
    ancestryRefData: listData(category: "ancestry") {
      id
      ...ListData
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      ...ListData
    }
    languageRefData: listData(category: "languages") {
      id
      ...ListData
    }
    user {
      id
      isPso
    }
  }
  ${REGISTRATION_DEMOGRAPHICS_FRAGMENT}
  ${LIST_DATA_FRAGMENT}
`,UPDATE_REGISTRATION_DEMOGRAPHIC_DETAILS$1=gql`
  mutation UpdatePatientUsDemographics(
    $patientId: ID!
    $primaryOccupation: String
    $maritalStatus: String
    $spouseWorkingStatus: String
    $spouseName: String
    $spouseDobRawYear: String
    $spouseDobRawMonth: String
    $spouseDobRawDay: String
    $spouseSocialSecurityNumber: String
    $spouseContactNumber: String
    $spouseAlternateAddressBool: Boolean
    $race: String
    $raceSpecified: String
    $ancestry: String
    $languageAtHome: String
  ) {
    updatePatientUsDemographics(
      patientId: $patientId
      primaryOccupation: $primaryOccupation
      maritalStatus: $maritalStatus
      spouseWorkingStatus: $spouseWorkingStatus
      spouseName: $spouseName
      spouseDobRawYear: $spouseDobRawYear
      spouseDobRawMonth: $spouseDobRawMonth
      spouseDobRawDay: $spouseDobRawDay
      spouseSocialSecurityNumber: $spouseSocialSecurityNumber
      spouseContactNumber: $spouseContactNumber
      spouseAlternateAddressBool: $spouseAlternateAddressBool
      race: $race
      raceSpecified: $raceSpecified
      ancestry: $ancestry
      languageAtHome: $languageAtHome
    ) {
      patient {
        id
        ...PatientDemographics
      }
    }
  }
  ${REGISTRATION_DEMOGRAPHICS_FRAGMENT}
`,RegistrationDemographicsFormUS=et=>{const{patient:tt,updateField:rt,handleShowSaveExitConfirm:nt,previousPageLink:lt,refData:{maritalStatusRefData:ut,ancestryRefData:dt,raceRefData:pt,languageRefData:ht},isPso:mt}=et,xt=reactExports.useContext(RegistrationContext),Mt={...tt,maritalStatus:getDisplayValue$1(ut,tt.maritalStatus),ancestry:getDisplayValue$1(dt,tt.ancestry),race:getDisplayValue$1(pt,tt.race),languageAtHome:getDisplayValue$1(ht,tt.languageAtHome)},vt=(xt==null?void 0:xt.registrationSummaryVisited)&&!mt,Ot=useHistory(),{patientId:At}=useParams(),Rt=[{query:DEMOGRAPHICS_QUERY$1,variables:{id:At}}],[zt]=useMutation(UPDATE_PATIENT_ADDRESS$1,{refetchQueries:Rt}),[Tt]=useMutation(REMOVE_PATIENT_ADDRESS$1,{refetchQueries:Rt}),Ct=sessionStorage.getItem("referringPage");return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Formik,{initialValues:Mt,onSubmit:()=>Ot.push(registrationPath$1(Mt==null?void 0:Mt.id,vt?"summary":"socialHistory")),children:({errors:It,submitForm:Dt,setFieldValue:kt,values:qt})=>{const Yt={...sharedFormContainerProps$1("Demographics details",7,lt,!mt),submitButtonText:vt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,continueDisabled:Object.keys(It).length>0,handleShowSaveExitConfirm:nt,saveAndExitLink:mt&&generatePath(Ct||PSO_SUMMARY_LINK$1,{patientId:At})},Kt=()=>{kt(`${FIELDS$9.ALTERNATE_ADDRESS.NAME}.line1`,""),kt(`${FIELDS$9.ALTERNATE_ADDRESS.NAME}.line2`,""),kt(`${FIELDS$9.ALTERNATE_ADDRESS.NAME}.city`,""),kt(`${FIELDS$9.ALTERNATE_ADDRESS.NAME}.postcode`,""),kt(`${FIELDS$9.ALTERNATE_ADDRESS.NAME}.state`,""),kt(`${FIELDS$9.ALTERNATE_ADDRESS.NAME}.country`,""),Tt({variables:{patientId:At,relatedName:"spouse_alternate_address"}})},Jt=(Ut,Vt)=>{rt(Ut,Vt),SPECIFY_MARITAL_FIELDS.includes(Vt)||(kt(FIELDS$9.SPOUSE_WORKING_STATUS.NAME,""),kt(FIELDS$9.SPOUSE_NAME.NAME,""),kt(FIELDS$9.SPOUSE_DOB.NAME,""),kt(FIELDS$9.SPOUSE_SSN.NAME,""),kt(FIELDS$9.SPOUSE_CONTACT.NAME,""),kt(FIELDS$9.ALTERNATE_ADDRESS_BOOL.NAME,""),Kt())},Qt=(Ut,Vt)=>{rt(Ut,Vt),Vt||Kt()},Bt=(Ut,Vt)=>{rt(Ut,Vt),SPECIFY_RACE_FIELDS.includes(Vt)||kt(FIELDS$9.RACE_SPECIFIED.NAME,"")},Ft=(Ut,Vt)=>{rt(Ut,Vt),kt(Ut,Vt)},$t=(Ut,Vt)=>{zt({variables:{patientId:At,relatedName:Ut,line1:(Vt==null?void 0:Vt.line1)??"",line2:(Vt==null?void 0:Vt.line2)??"",city:(Vt==null?void 0:Vt.city)??"",postcode:(Vt==null?void 0:Vt.postcode)??"",state:(Vt==null?void 0:Vt.state)??"",country:(Vt==null?void 0:Vt.country)??""}})},jt=SPECIFY_RACE_FIELDS.includes(qt==null?void 0:qt.race),Wt=SPECIFY_MARITAL_FIELDS.includes(qt==null?void 0:qt.maritalStatus);return jsxRuntimeExports.jsx(FormContainer$1,{...Yt,submitForm:Dt,handleValidation:Ut=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"registration-demographics-page-title",children:FIELDS$9.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"registration-demographics-page-subtitle",children:"* = required field"}),standardField$1(FIELDS$9.PRIMARY_OCCUPATION,rt),standardField$1(FIELDS$9.MARITAL_STATUS,Jt,mapListData$1(ut)),Wt&&jsxRuntimeExports.jsxs(StyledIndentedSection$1,{children:[standardField$1(FIELDS$9.SPOUSE_WORKING_STATUS,rt,SPOUSE_WORKING_STATUS_OPTIONS),standardField$1(FIELDS$9.SPOUSE_NAME,rt),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:FIELDS$9.SPOUSE_DOB.TITLE,fieldName:FIELDS$9.SPOUSE_DOB.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:FIELDS$9.SPOUSE_DOB.NAME,component:RODatePicker,alternateStyle:!0,isUs:!0,id:FIELDS$9.SPOUSE_DOB.NAME,value:Mt!=null&&Mt.spouseDob?dayjs(Mt.spouseDob).toDate():null,disableFuture:!0,isManualEditEnabled:!0,onChange:Ut=>{const Vt=Ut?dayjs(Ut).format("YYYY-MM-DD"):"";rt(FIELDS$9.SPOUSE_DOB.NAME,Vt)}})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:FIELDS$9.SPOUSE_SSN.TITLE,fieldName:FIELDS$9.SPOUSE_SSN.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:FIELDS$9.SPOUSE_SSN.NAME,component:MaskField,defaultValue:Mt.spouseSocialSecurityNumber,inputType:"text",updateMutation:Ut=>rt(FIELDS$9.SPOUSE_SSN.NAME,Ut),mask:"999 - 99 - 9999",maskChar:"X"})}),standardField$1(FIELDS$9.SPOUSE_CONTACT,rt),standardField$1(FIELDS$9.ALTERNATE_ADDRESS_BOOL,Qt,ALTERNATE_ADDRESS_OPTIONS),(qt==null?void 0:qt.spouseAlternateAddressBool)&&jsxRuntimeExports.jsx(AddressSectionField,{name:FIELDS$9.ALTERNATE_ADDRESS.NAME,values:Mt.spouseAlternateAddress||{},updateAddress:Ut=>$t("spouse_alternate_address",Ut)})]}),standardField$1(FIELDS$9.RACE,Bt,mapListData$1(pt)),jt&&standardField$1(FIELDS$9.RACE_SPECIFIED,rt,[],!1),standardField$1(FIELDS$9.ANCESTRY,rt,mapListData$1(dt)),standardField$1(FIELDS$9.LANGUAGE,Ft,mapListData$1(ht))]})})}})})},Demographics$1=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),{data:nt,error:lt}=useQuery(DEMOGRAPHICS_QUERY$1,{variables:{id:rt}}),[ut]=useMutation(UPDATE_REGISTRATION_DEMOGRAPHIC_DETAILS$1);if(lt||!nt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:dt,maritalStatusRefData:pt,ancestryRefData:ht,raceRefData:mt,languageRefData:xt,user:Mt}=nt,vt=(Ot,At)=>{if(Ot===FIELDS$9.SPOUSE_SSN.NAME){if(!At.toString().match(US_SSN_REGEX))return;At=At.toString().replace(/\D/g,"")}let Rt={patientId:rt,[Ot]:At};if(Ot===FIELDS$9.RACE.NAME&&(SPECIFY_RACE_FIELDS.includes(At)||(Rt[FIELDS$9.RACE_SPECIFIED.NAME]="")),Ot===FIELDS$9.SPOUSE_DOB.NAME){const zt=At?new Date(At):null,Tt=zt?zt.getDate().toString():"",Ct=zt?(zt.getMonth()+1).toString():"",It=zt?zt.getFullYear().toString():"";Rt={patientId:rt,[`${FIELDS$9.SPOUSE_DOB.NAME}RawYear`]:It,[`${FIELDS$9.SPOUSE_DOB.NAME}RawMonth`]:Ct,[`${FIELDS$9.SPOUSE_DOB.NAME}RawDay`]:Tt}}ut({variables:Rt})};return jsxRuntimeExports.jsx(RegistrationDemographicsFormUS,{patient:dt,updateField:vt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:generatePath(`/patient/${rt}/registration/insurance`),refData:{maritalStatusRefData:pt,ancestryRefData:ht,raceRefData:mt,languageRefData:xt},isPso:Mt.isPso})},addressLabels$2=addressLabelForRegion(),FIELDS$8={FORM_HEADING:{NAME:"formHeading",TITLE:"Insurance & Other Benefits"},PRIMARY:{HEALTH_FUND_NAME:{NAME:"primaryInsurance.fundName",TITLE:"Health fund name",PLACE_HOLDER:"Enter primary health fund name",COMPONENT:TextAreaField},PLAN_ID:{NAME:"primaryInsurance.planId",TITLE:"Plan ID",PLACE_HOLDER:"Enter plan ID",COMPONENT:TextAreaField},GROUP:{NAME:"primaryInsurance.group",TITLE:"Group #",PLACE_HOLDER:"Enter group #",COMPONENT:TextAreaField},PHONE_NUMBER:{NAME:"primaryInsurance.phoneNumber",TITLE:"Phone number",PLACE_HOLDER:"Enter phone number",COMPONENT:TextAreaField},POLICY_HOLDER:{NAME:"primaryInsurance.policyHolder",TITLE:"Policyholder",PLACE_HOLDER:"Enter policyholder name",COMPONENT:TextAreaField},HOLDER_DOB:{NAME:"primaryInsurance.policyDob",TITLE:"Policyholder date of birth"},GUARANTOR:{NAME:"primaryInsurance.guarantor",TITLE:"Guarantor",PLACE_HOLDER:"Enter guarantor name",COMPONENT:TextAreaField},GUARANTOR_RELATION:{NAME:"primaryInsurance.guarantorRelationship",TITLE:"Guarantor relationship",PLACE_HOLDER:"Start typing or select from dropdown",COMPONENT:SelectField$1}},HAS_SECONDARY_INSURANCE:{NAME:"hasSecondaryInsurance",TITLE:"Do you have a secondary insurance?",COMPONENT:ToggleButtonGroupField},SECONDARY:{HEALTH_FUND_NAME:{NAME:"secondaryInsurance.fundName",TITLE:"Health fund name",PLACE_HOLDER:"Enter secondary health fund name",COMPONENT:TextAreaField},PLAN_ID:{NAME:"secondaryInsurance.planId",TITLE:"Plan ID",PLACE_HOLDER:"Enter plan ID",COMPONENT:TextAreaField},GROUP:{NAME:"secondaryInsurance.group",TITLE:"Group #",PLACE_HOLDER:"Enter group #",COMPONENT:TextAreaField},PHONE_NUMBER:{NAME:"secondaryInsurance.phoneNumber",TITLE:"Phone number",PLACE_HOLDER:"Enter phone number",COMPONENT:TextAreaField},POLICY_HOLDER:{NAME:"secondaryInsurance.policyHolder",TITLE:"Policyholder",PLACE_HOLDER:"Enter policyholder name",COMPONENT:TextAreaField},HOLDER_DOB:{NAME:"secondaryInsurance.policyDob",TITLE:"Policyholder date of birth"},GUARANTOR:{NAME:"secondaryInsurance.guarantor",TITLE:"Guarantor",PLACE_HOLDER:"Enter guarantor name",COMPONENT:TextAreaField},GUARANTOR_RELATION:{NAME:"secondaryInsurance.guarantorRelationship",TITLE:"Guarantor relationship",PLACE_HOLDER:"Start typing or select from dropdown",COMPONENT:SelectField$1}},OTHER_BENEFITS:{NAME:"receiveVeteransAdminBenefits",TITLE:"Are you receiving benefits from the Veterans Administration?",COMPONENT:ToggleButtonGroupField},VETERANS_ADMIN_NAME:{NAME:"veteransAdminName",TITLE:"Veterans Administration name",PLACE_HOLDER:"Enter Veterans Administration name",COMPONENT:TextAreaField},VETERANS_CONTACT_NUMBER:{NAME:"veteransContactNumber",TITLE:"Contact number",PLACE_HOLDER:"Enter contact number",COMPONENT:TextAreaField},VETERANS_CITY:{NAME:"veteransCity",TITLE:addressLabels$2.city,PLACE_HOLDER:`Enter ${addressLabels$2.city.toLowerCase()}`,COMPONENT:TextAreaField},VETERANS_STATE_PROVINCE:{NAME:"veteransStateProvince",TITLE:addressLabels$2.state,PLACE_HOLDER:`Enter ${addressLabels$2.state.toLowerCase()}`,COMPONENT:TextAreaField},VETERANS_ZIP:{NAME:"veteransZip",TITLE:addressLabels$2.postcode,PLACE_HOLDER:`Enter ${addressLabels$2.postcode.toLowerCase()}`,COMPONENT:TextAreaField}},REGISTRATION_INSURANCE_QUERY$1=gql`
  query RegistrationInsuranceOtherBenefits($id: ID!) {
    patient(id: $id) {
      id
      primaryInsurance {
        id
        ...InsuranceUS
      }
      hasSecondaryInsurance
      secondaryInsurance {
        id
        ...InsuranceUS
      }
      receiveVeteransAdminBenefits
      veteransAdminName
      veteransContactNumber
      veteransCity
      veteransStateProvince
      veteransZip
    }
    relationshipRefData: listData(category: "relationships") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
  ${REGISTRATION_INSURANCE_US_FRAGMENT}
`,UPDATE_REGISTRATION_INSURANCE$1=gql`
  mutation UpdatePatientUsInsurance(
    $id: ID!
    $insuranceId: ID
    $fundName: String
    $planId: String
    $group: String
    $phoneNumber: String
    $policyHolder: String
    $policyDob: String
    $guarantor: String
    $guarantorRelationship: String
    $hasSecondaryInsurance: Boolean
    $secondaryInsuranceId: ID
    $secondaryfundName: String
    $secondaryplanId: String
    $secondarygroup: String
    $secondaryphoneNumber: String
    $secondarypolicyHolder: String
    $secondarypolicyDob: String
    $secondaryguarantor: String
    $secondaryguarantorRelationship: String
    $receiveVeteransAdminBenefits: Boolean
    $veteransAdminName: String
    $veteransContactNumber: String
    $veteransCity: String
    $veteransStateProvince: String
    $veteransZip: String
  ) {
    updatePatientUsInsurance(
      id: $id
      primaryInsurance: {
        id: $insuranceId
        fundName: $fundName
        planId: $planId
        group: $group
        phoneNumber: $phoneNumber
        policyHolder: $policyHolder
        policyDob: $policyDob
        guarantor: $guarantor
        guarantorRelationship: $guarantorRelationship
      }
      hasSecondaryInsurance: $hasSecondaryInsurance
      secondaryInsurance: {
        id: $secondaryInsuranceId
        fundName: $secondaryfundName
        planId: $secondaryplanId
        group: $secondarygroup
        phoneNumber: $secondaryphoneNumber
        policyHolder: $secondarypolicyHolder
        policyDob: $secondarypolicyDob
        guarantor: $secondaryguarantor
        guarantorRelationship: $secondaryguarantorRelationship
      }
      receiveVeteransAdminBenefits: $receiveVeteransAdminBenefits
      veteransAdminName: $veteransAdminName
      veteransContactNumber: $veteransContactNumber
      veteransCity: $veteransCity
      veteransStateProvince: $veteransStateProvince
      veteransZip: $veteransZip
    ) {
      patient {
        id
        primaryInsurance {
          id
          ...InsuranceUS
        }
        hasSecondaryInsurance
        secondaryInsurance {
          id
          ...InsuranceUS
        }
        receiveVeteransAdminBenefits
        veteransAdminName
        veteransContactNumber
        veteransCity
        veteransStateProvince
        veteransZip
      }
    }
  }
  ${REGISTRATION_INSURANCE_US_FRAGMENT}
`,generateValidationSchema$a=et=>{const tt="Please enter a valid phone number",rt=create$3().shape({secondaryInsurance:create$3().shape({phoneNumber:create$6().matches(US_PHONE_REGEX,tt).nullable(!0)}).nullable(!0),primaryInsurance:create$3().shape({phoneNumber:create$6().matches(US_PHONE_REGEX,tt).nullable(!0)}).nullable(!0),veteransContactNumber:create$6().matches(US_PHONE_REGEX,tt).nullable(!0)});try{validateYupSchema(et,rt,!0)}catch(nt){return yupToFormErrors(nt)}},{FORM_HEADING:FORM_HEADING$8}=FIELDS$8,renderOtherBenefits=et=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[standardField$1(FIELDS$8.VETERANS_ADMIN_NAME,et),standardField$1(FIELDS$8.VETERANS_CONTACT_NUMBER,et),standardField$1(FIELDS$8.VETERANS_CITY,et),standardField$1(FIELDS$8.VETERANS_STATE_PROVINCE,et),standardField$1(FIELDS$8.VETERANS_ZIP,et)]}),removePrefix=(et,tt)=>{let rt=et.replace(`${tt.toLowerCase()}Insurance.`,"");return tt==="SECONDARY"&&(rt=`secondary${rt}`),rt},renderInsurance=(et,tt,rt,nt)=>{var dt;const lt=FIELDS$8[et],ut=(pt,ht)=>tt(removePrefix(pt,et),ht);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[standardField$1(lt.HEALTH_FUND_NAME,ut),standardField$1(lt.PLAN_ID,ut),standardField$1(lt.GROUP,ut),standardField$1(lt.PHONE_NUMBER,ut),standardField$1(lt.POLICY_HOLDER,ut),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:lt.HOLDER_DOB.TITLE,fieldName:lt.HOLDER_DOB.NAME,className:"registration-date",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:lt.HOLDER_DOB.NAME,component:RODatePicker,alternateStyle:!0,isUs:!0,id:lt.HOLDER_DOB.NAME,value:(dt=rt[`${et.toLowerCase()}Insurance`])!=null&&dt.policyDob?dayjs(rt[`${et.toLowerCase()}Insurance`].policyDob).toDate():null,disableFuture:!0,onChange:pt=>{const ht=pt?hooks(pt).format("YYYY-MM-DD"):"";ut(lt.HOLDER_DOB.NAME,ht)}})}),standardField$1(lt.GUARANTOR,ut),standardField$1(lt.GUARANTOR_RELATION,ut,nt)]})},InsuranceForm$1=et=>{const{updateField:tt,patient:rt,previousPageLink:nt,handleShowSaveExitConfirm:lt,isPso:ut,refData:{relationshipRefData:dt}}=et,pt=reactExports.useContext(RegistrationContext),ht=useHistory(),{patientId:mt}=useParams(),xt=reactExports.useMemo(()=>mapListData$1(dt),dt),Mt=(pt==null?void 0:pt.registrationSummaryVisited)&&!ut,vt=sessionStorage.getItem("referringPage");return jsxRuntimeExports.jsx(Formik,{initialValues:rt,validateOnBlur:!0,validate:Ot=>generateValidationSchema$a(Ot),onSubmit:()=>ht.push(registrationPath$1(rt==null?void 0:rt.id,Mt?"summary":"demographics")),children:({submitForm:Ot,values:At,errors:Rt,setFieldValue:zt})=>{const Ct={...sharedFormContainerProps$1("Insurance and other benefits",2,nt,!ut),submitButtonText:Mt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,continueDisabled:Object.keys(Rt).length>0,handleShowSaveExitConfirm:lt,saveAndExitLink:ut&&generatePath(vt||PSO_SUMMARY_LINK$1,{patientId:mt})},It=(kt,qt)=>{tt(kt,qt),zt("secondaryInsurance.fundName",""),zt("secondaryInsurance.planId",""),zt("secondaryInsurance.group",""),zt("secondaryInsurance.phoneNumber",""),zt("secondaryInsurance.policyHolder",""),zt("secondaryInsurance.policyDob",""),zt("secondaryInsurance.guarantor",""),zt("secondaryInsurance.guarantorRelationship","")},Dt=(kt,qt)=>{tt(kt,qt),zt("veteransAdminName",""),zt("veteransContactNumber",""),zt("veteransCity",""),zt("veteransStateProvince",""),zt("veteransZip","")};return jsxRuntimeExports.jsx(FormContainer$1,{...Ct,submitForm:Ot,handleValidation:kt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:FORM_HEADING$8.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"* = required field"}),jsxRuntimeExports.jsx(SectionTitle$2,{"data-test-id":"us-rego-primary-insurance-section-title",children:"Primary Insurance"}),renderInsurance("PRIMARY",tt,rt,xt),jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsx(SectionTitle$2,{"data-test-id":"us-rego-secondary-insurance-section-title",children:"Secondary Insurance"}),standardField$1(FIELDS$8.HAS_SECONDARY_INSURANCE,It,yesNoOptions$1),At.hasSecondaryInsurance&&jsxRuntimeExports.jsx(StyledIndentedSection$1,{children:renderInsurance("SECONDARY",tt,rt,xt)}),jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsx(SectionTitle$2,{"data-test-id":"us-rego-benefits-insurance-section-title",children:"Other Benefits"}),standardField$1(FIELDS$8.OTHER_BENEFITS,Dt,yesNoOptions$1),jsxRuntimeExports.jsx(StyledIndentedSection$1,{children:At.receiveVeteransAdminBenefits&&renderOtherBenefits(tt)})]})})}})},Insurance$1=et=>{var At,Rt,zt,Tt;const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION_INSURANCE$1),{data:lt,error:ut,loading:dt}=useQuery(REGISTRATION_INSURANCE_QUERY$1,{variables:{id:rt}}),pt=(Rt=(At=lt==null?void 0:lt.patient)==null?void 0:At.primaryInsurance)==null?void 0:Rt.id,ht=(Tt=(zt=lt==null?void 0:lt.patient)==null?void 0:zt.secondaryInsurance)==null?void 0:Tt.id,mt=()=>nt({variables:{id:rt,...{receiveVeteransAdminBenefits:!1,veteransAdminName:"",veteransContactNumber:"",veteransCity:"",veteransStateProvince:"",veteransZip:""}}}),xt=(Ct,It)=>Ct===FIELDS$8.OTHER_BENEFITS.NAME&&!It?mt():nt({variables:{id:rt,insuranceId:pt,secondaryInsuranceId:ht,[Ct]:It}});if(dt||!lt||ut)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:Mt,relationshipRefData:vt,user:Ot}=lt;return jsxRuntimeExports.jsx(InsuranceForm$1,{refData:{relationshipRefData:vt},patient:Mt,updateField:xt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:registrationPath$1(Mt.id,"referrers"),isPso:!!Ot.isPso})},SOCIAL_HISTORY_FIELDS={FORM_HEADING:{NAME:"formHeading",TITLE:"Social Geographic History",COMPONENT:TextAreaField},COUNTRY_OF_BIRTH:{NAME:"countryOfBirth",TITLE:"Country of birth",COMPONENT:SelectField$1},STATE_OF_BIRTH:{NAME:"stateOfBirth",TITLE:"In which state were you born?",PLACE_HOLDER:"Enter state",COMPONENT:TextAreaField},AREA_LIVED_MOST:{NAME:"areaLivedMost",TITLE:"In what area did you live most of your life?",PLACE_HOLDER:"Enter area",COMPONENT:TextAreaField},CURRENT_STATE_HOW_LONG:{NAME:"currentStateHowLong",TITLE:"How long have you lived in your current state of residence?",PLACE_HOLDER:"e.g. 5 years and 4 months",COMPONENT:TextAreaField},IN_STATE_ALL_YEAR_BOOL:{NAME:"inThisStateAllYear",TITLE:"Do you live in this state all year round?",COMPONENT:ToggleButtonGroupField},ALTERNATE_PHONE:{NAME:"alternateAddressPhone",TITLE:"Alternate phone number",PLACE_HOLDER:"Enter alternate phone number",COMPONENT:TextAreaField}},REGISTRATION_SOCIAL_GEO_HIST_QUERY=gql`
  query RegistrationSocialGeoHist($id: ID!) {
    patient(id: $id) {
      id
      countryOfBirth
      stateOfBirth
      areaLivedMost
      currentStateHowLong
      inThisStateAllYear
      lastVisitedSection
      regFormStatus
      alternateAddress {
        id
        ...Address
      }
      alternateAddressPhone
    }
    countryRefData: listData(category: "countryOfBirth") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,UPDATE_REGISTRATION$1=gql`
  mutation UpdatePatientUsSocialGeoHist(
    $patientId: ID!
    $addressId: ID
    $countryOfBirth: String
    $stateOfBirth: String
    $areaLivedMost: String
    $currentStateHowLong: String
    $inThisStateAllYear: Boolean
    $alternateAddressPhone: String
  ) {
    updatePatientUsSocialGeoHist(
      patientId: $patientId
      addressId: $addressId
      countryOfBirth: $countryOfBirth
      stateOfBirth: $stateOfBirth
      areaLivedMost: $areaLivedMost
      currentStateHowLong: $currentStateHowLong
      inThisStateAllYear: $inThisStateAllYear
      alternateAddressPhone: $alternateAddressPhone
    ) {
      patient {
        id
        countryOfBirth
        stateOfBirth
        areaLivedMost
        currentStateHowLong
        inThisStateAllYear
        alternateAddress {
          id
          ...Address
        }
        alternateAddressPhone
      }
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,validateAddress=et=>{let tt=create$6();const nt=`Please enter your correct ${addressLabelForRegion().postcode}`;switch(et==null?void 0:et.country){case"Australia":tt=create$6().matches(AU_POSTCODE_REGEXP,nt);break;case"United Kingdom":case"Scotland":case"England":case"Northern Ireland":case"Wales":tt=create$6().matches(UK_POSTCODE_REGEXP,nt);break;case"United States of America":tt=create$6().matches(US_POSTCODE_REGEXP,nt);break}return tt},generateValidationSchema$9=et=>{const tt=validateAddress(et==null?void 0:et.alternateAddress),rt=create$3().shape({alternateAddress:create$3().shape({autofilled:create$6().when("postcode",{is:nt=>tt.isValidSync(nt),then:nt=>nt.ensure(),otherwise:()=>tt}),postcode:create$6().when(["$validatePostcode"],(nt,lt)=>nt?tt:lt.ensure())})});try{validateYupSchema(et,rt,!0,{validatePostcode:!!(et.alternateAddress.postcode&&et.alternateAddress.country)})}catch(nt){return yupToFormErrors(nt)}},SocialGeographicHistoryForm=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,previousPageLink:lt,isPso:ut,refData:{countryRefData:dt}}=et,pt=reactExports.useContext(RegistrationContext),ht=useHistory(),{patientId:mt}=useParams(),xt=(pt==null?void 0:pt.registrationSummaryVisited)&&!ut,Mt=sessionStorage.getItem("referringPage"),[vt]=useMutation(UPDATE_PATIENT_ADDRESS$1,{refetchQueries:[{query:REGISTRATION_SOCIAL_GEO_HIST_QUERY,variables:{id:mt}}]}),[Ot]=useMutation(REMOVE_PATIENT_ADDRESS$1,{refetchQueries:[{query:REGISTRATION_SOCIAL_GEO_HIST_QUERY,variables:{id:mt}}]}),Rt={...rt,countryOfBirth:((zt,Tt)=>{const Ct=zt.filter(It=>It.id===Tt);return Ct.length?Ct[0].name:Tt})(dt,rt.countryOfBirth)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Formik,{initialValues:Rt,validate:zt=>generateValidationSchema$9(zt),validateOnChange:!1,onSubmit:()=>ht.push(registrationPath$1(mt,xt?"summary":"feedback")),children:({submitForm:zt,errors:Tt,values:Ct,setFieldValue:It})=>{const kt={...sharedFormContainerProps$1("Social Geographic History",8,lt,!ut),submitButtonText:xt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,continueDisabled:Object.keys(Tt).length>0,handleShowSaveExitConfirm:nt,saveAndExitLink:ut&&generatePath(Mt||PSO_SUMMARY_LINK$1,{patientId:mt})},qt=()=>{const Kt="alternateAddress";It(`${Kt}.country`,""),It(`${Kt}.line1`,""),It(`${Kt}.line2`,""),It(`${Kt}.city`,""),It(`${Kt}.state`,""),It(`${Kt}.postcode`,""),Ot({variables:{patientId:mt,relatedName:"alternate_address"}})},Nt=(Kt,Jt)=>{tt(SOCIAL_HISTORY_FIELDS.IN_STATE_ALL_YEAR_BOOL.NAME,Jt),Jt&&(It(SOCIAL_HISTORY_FIELDS.ALTERNATE_PHONE.NAME,""),qt())},Yt=(Kt,Jt)=>{vt({variables:{patientId:mt,relatedName:Kt,line1:(Jt==null?void 0:Jt.line1)??"",line2:(Jt==null?void 0:Jt.line2)??"",city:(Jt==null?void 0:Jt.city)??"",postcode:(Jt==null?void 0:Jt.postcode)??"",state:(Jt==null?void 0:Jt.state)??"",country:(Jt==null?void 0:Jt.country)??""}})};return jsxRuntimeExports.jsx(FormContainer$1,{...kt,submitForm:zt,handleValidation:Kt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:SOCIAL_HISTORY_FIELDS.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"* = required field"}),standardField$1(SOCIAL_HISTORY_FIELDS.COUNTRY_OF_BIRTH,tt,mapListData$1(dt)),Ct.countryOfBirth==="United States of America"&&jsxRuntimeExports.jsx(StyledIndentedSection$1,{children:standardField$1(SOCIAL_HISTORY_FIELDS.STATE_OF_BIRTH,tt)}),standardField$1(SOCIAL_HISTORY_FIELDS.AREA_LIVED_MOST,tt),standardField$1(SOCIAL_HISTORY_FIELDS.CURRENT_STATE_HOW_LONG,tt),standardField$1(SOCIAL_HISTORY_FIELDS.IN_STATE_ALL_YEAR_BOOL,Nt,yesNoOptions$2),Ct.inThisStateAllYear===!1&&jsxRuntimeExports.jsxs(StyledIndentedSection$1,{children:[jsxRuntimeExports.jsx(AddressSectionField,{name:"alternateAddress",values:Ct.alternateAddress||EMPTY_ADDRESS$1,updateAddress:Kt=>Yt("alternate_address",Kt)}),standardField$1(SOCIAL_HISTORY_FIELDS.ALTERNATE_PHONE,tt)]})]})})}})})},SocialGeographicHistory=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION$1),{data:lt,error:ut}=useQuery(REGISTRATION_SOCIAL_GEO_HIST_QUERY,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:dt,countryRefData:pt,user:ht}=lt,mt=(xt,Mt)=>{if(xt==="inThisStateAllYear"&&Mt===!0){nt({variables:{patientId:rt,inThisStateAllYear:!0,alternateAddressPhone:""}});return}nt({variables:{patientId:rt,[xt]:Mt}})};return jsxRuntimeExports.jsx(SocialGeographicHistoryForm,{updateField:mt,patient:dt,refData:{countryRefData:pt},handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:registrationPath$1(dt.id,"demographics"),isPso:ht.isPso})},FIELDS$7={FORM_HEADING:{NAME:"formHeading",TITLE:"Referrers"},PRIMARY_PROVIDER:{NAME:"primaryProvider",TITLE:"Primary provider",PLACE_HOLDER:"Enter primary provider name",COMPONENT:TextAreaField},REFERRING_PROVIDER:{NAME:"referringProvider",TITLE:"Referring provider",PLACE_HOLDER:"Enter referring provider name",COMPONENT:TextAreaField},ADVANCED_DIRECTIVE:{NAME:"advancedDirective",TITLE:"Do you have an Advanced Directive?",COMPONENT:ToggleButtonGroupField},POWER_OF_ATTORNEY:{NAME:"powerOfAttorney",TITLE:"Do you have a medical Durable Power of Attorney?",COMPONENT:ToggleButtonGroupField},LIVING_WILL:{NAME:"livingWill",TITLE:"Do you have a Living Will?",COMPONENT:ToggleButtonGroupField}},ReferrerForm$1=et=>{const{patient:tt,handleShowSaveExitConfirm:rt,previousPageLink:nt,updateField:lt,isPso:ut}=et,dt=reactExports.useContext(RegistrationContext),pt=useHistory(),{patientId:ht}=useParams(),mt=(dt==null?void 0:dt.registrationSummaryVisited)&&!ut,xt=sessionStorage.getItem("referringPage"),Mt=(vt,Ot,At)=>jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:vt.TITLE,fieldName:vt.NAME,labelClass:"label-form-row",children:[jsxRuntimeExports.jsx(Field,{name:vt.NAME,component:vt.COMPONENT,alternateStyle:!0,updateMutation:Rt=>Ot(vt.NAME,Rt),handleMutation:Ot,placeholder:vt.PLACE_HOLDER,options:yesNoOptions$1}),At]});return jsxRuntimeExports.jsx(Formik,{enableReinitialize:!0,initialValues:tt,validateOnChange:!1,onSubmit:()=>{pt.push(registrationPath$1(tt==null?void 0:tt.id,mt?"summary":"insurance"))},children:({submitForm:vt,errors:Ot,values:At})=>{const zt={...sharedFormContainerProps$1("Referrers",2,nt,!ut),submitButtonText:mt?RETURN_TO_SUBMIT_TEXT$1:CONTINUE_BUTTON_TEXT$1,continueDisabled:Object.keys(Ot).length>0,handleShowSaveExitConfirm:rt,saveAndExitLink:ut&&generatePath(xt||PSO_SUMMARY_LINK$1,{patientId:ht})};return jsxRuntimeExports.jsx(FormContainer$1,{...zt,submitForm:vt,children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:FIELDS$7.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"* = required field"}),standardField$1(FIELDS$7.PRIMARY_PROVIDER,lt),standardField$1(FIELDS$7.REFERRING_PROVIDER,lt),Mt(FIELDS$7.ADVANCED_DIRECTIVE,lt,At.advancedDirective?extraInformation$1(FIELDS$7.ADVANCED_DIRECTIVE.NAME):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})),Mt(FIELDS$7.POWER_OF_ATTORNEY,lt,At.powerOfAttorney?extraInformation$1(FIELDS$7.POWER_OF_ATTORNEY.NAME):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})),Mt(FIELDS$7.LIVING_WILL,lt,At.livingWill?extraInformation$1(FIELDS$7.LIVING_WILL.NAME):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}))]})})}})},REGISTRATION_REFERRER_QUERY$1=gql`
  query RegistrationReferrer($id: ID!) {
    patient(id: $id) {
      id
      primaryProvider
      referringProvider
      advancedDirective
      powerOfAttorney
      livingWill
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_REGISTRATION_REFERRER$1=gql`
  mutation UpdatePatientUsReferrer(
    $id: ID!
    $primaryProvider: String
    $referringProvider: String
    $advancedDirective: Boolean
    $powerOfAttorney: Boolean
    $livingWill: Boolean
  ) {
    updatePatientUsReferrer(
      id: $id
      primaryProvider: $primaryProvider
      referringProvider: $referringProvider
      advancedDirective: $advancedDirective
      powerOfAttorney: $powerOfAttorney
      livingWill: $livingWill
    ) {
      patient {
        id
        primaryProvider
        referringProvider
        advancedDirective
        powerOfAttorney
        livingWill
      }
    }
  }
`,Referrer$1=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION_REFERRER$1),{data:lt,error:ut}=useQuery(REGISTRATION_REFERRER_QUERY$1,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:dt,user:pt}=lt||{},ht=(mt,xt)=>{nt({variables:{id:rt,[mt]:xt}})};return jsxRuntimeExports.jsx(ReferrerForm$1,{updateField:ht,patient:dt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:registrationPath$1(rt,"emergencyContact"),isPso:pt.isPso})},addressLabels$1=addressLabelForRegion();isUs();const FORM_TEXT$1="Please ensure all your details are correct.",BASIC_FIELDS$2={fields:[{key:"resolvedNamePrefix",label:"Title"},{key:"firstName",label:"First name"},{key:"middleName",label:"Middle name"},{key:"lastName",label:"Last name"},{key:"preferredName",label:"Preferred name"},{key:"patientGender",label:"Sex"},{key:"dob",label:"Date of birth"},{key:"formattedSsn",label:"Social Security Number (SSN)"}],title:"Basic Details",path:"basic"},CONTACT_FIELDS$2={fields:[{key:"primaryPhone",label:"Mobile"},{key:"secondaryPhone",label:"Home phone"},{key:"email",label:"Email"},{key:"employer",label:"Employer"},{key:"workPhone",label:"Work phone"}],title:"Contact Details",path:"contact"},REFERRER_FIELDS$1={fields:[{key:"primaryProvider",label:"Primary provider"},{key:"referringProvider",label:"Referring provider"},{key:"advancedDirective",label:"Do you have an Advanced Directive?"},{key:"powerOfAttorney",label:"Do you have a medical Durable Power of Attorney?"},{key:"livingWill",label:"Do you have a Living Will?"}],title:"Referrers",path:"referrers"},ADDRESS_FIELDS$1={fields:[{key:"address.line1",label:addressLabels$1.line1},{key:"address.line2",label:addressLabels$1.line2},{key:"address.city",label:addressLabels$1.city},{key:"address.state",label:addressLabels$1.state},{key:"address.country",label:addressLabels$1.country},{key:"address.postcode",label:addressLabels$1.postcode},{key:"inHospitalHospiceFacility",label:"Are you currently admitted to a hospital or enrolled in a Hospice or Skilled Nursive Facility?"}],facilityFields:[{key:"facilityName",label:"Facility Name"},{key:"facilityContactNumber",label:"Contact number"},{key:"facilityAddress.line1",label:addressLabels$1.line1},{key:"facilityAddress.line2",label:addressLabels$1.line2},{key:"facilityAddress.city",label:addressLabels$1.city},{key:"facilityAddress.state",label:addressLabels$1.state},{key:"facilityAddress.country",label:addressLabels$1.country},{key:"facilityAddress.postcode",label:addressLabels$1.postcode}],title:"Address",path:"address"},INSURANCE_FIELDS$1={title:"Insurance & Other Benefits",path:"insurance",fields:[{key:"primaryInsurance.fundName",label:"Health fund name"},{key:"primaryInsurance.planId",label:"Plan ID"},{key:"primaryInsurance.group",label:"Group #"},{key:"primaryInsurance.phoneNumber",label:"Phone number"},{key:"primaryInsurance.policyHolder",label:"Policyholder"},{key:"primaryInsurance.policyDob",label:"Policyholder date of birth"},{key:"primaryInsurance.guarantor",label:"Guarantor"},{key:"primaryInsurance.guarantorRelationship",label:"Guarantor relationship"}],secondaryFields:[{key:"secondaryInsurance.fundName",label:"Health fund name"},{key:"secondaryInsurance.planId",label:"Plan ID"},{key:"secondaryInsurance.group",label:"Group #"},{key:"secondaryInsurance.phoneNumber",label:"Phone number"},{key:"secondaryInsurance.policyHolder",label:"Policyholder"},{key:"secondaryInsurance.policyDob",label:"Policyholder date of birth"},{key:"secondaryInsurance.guarantor",label:"Guarantor"},{key:"secondaryInsurance.guarantorRelationship",label:"Guarantor relationship"}],secondaryConditional:{key:"hasSecondaryInsurance",label:"Do you have a secondary insurance?"},veteranConditional:{key:"receiveVeteransAdminBenefits",label:"Are you receiving benefits from the Veterans Administration?"},veteranFields:[{key:"veteransAdminName",label:"Veterans Administration name"},{key:"veteransContactNumber",label:"Contact number"},{key:"veteransCity",label:addressLabels$1.city},{key:"veteransStateProvince",label:addressLabels$1.state},{key:"veteransZip",label:addressLabels$1.postcode}]},DEMOGRAPHICS_FIELDS$1={fields:[{key:"primaryOccupation",label:"What is/was your primary occupation?"},{key:"maritalStatusValue",label:"Marital status"}],title:"Demographic Details",path:"demographics",spouseFields:[{key:"spouseWorkingStatus",label:"Spouse working status"},{key:"spouseName",label:"Spouse name"},{key:"spouseDob",label:"Spouse date of birth"},{key:"formattedSpouseSsn",label:"Spouse Social Security Number (SSN)"},{key:"spouseAlternateAddressBool",label:"Is your spouse's address different to yours?"}],spouseAlternateAddressFields:[{key:"spouseAlternateAddress.line1",label:addressLabels$1.line1},{key:"spouseAlternateAddress.line2",label:addressLabels$1.line2},{key:"spouseAlternateAddress.city",label:addressLabels$1.city},{key:"spouseAlternateAddress.state",label:addressLabels$1.state},{key:"spouseAlternateAddress.country",label:addressLabels$1.country},{key:"spouseAlternateAddress.postcode",label:addressLabels$1.postcode}],raceField:[{key:"race",label:"Which of the following best describes your race?"}],raceSpecifiedFields:[{key:"raceSpecified",label:"Please specify"}],ancestryAndLanguageFields:[{key:"ancestry",label:"Please select one ethnic group that best describes your ancestry"},{key:"niceLanguageAtHome",label:"What language do you feel most comfortable using when discussing your healthcare?"}]},SOCIAL_GEOGRAPHIC_FIELDS={countryConditional:{key:"countryOfBirth",label:"Country of birth"},stateConditional:{key:"stateOfBirth",label:"In which state where you born?"},fields:[{key:"areaLivedMost",label:"In what area did you live most of your life?"},{key:"currentStateHowLong",label:"How long have you lived in your current state of residence?"},{key:"inThisStateAllYear",label:"Do you live in this state all year round?"}],addressFields:[{key:"alternateAddress.line1",label:addressLabels$1.line1},{key:"alternateAddress.line2",label:addressLabels$1.line2},{key:"alternateAddress.city",label:addressLabels$1.city},{key:"alternateAddress.state",label:addressLabels$1.state},{key:"alternateAddress.country",label:addressLabels$1.country},{key:"alternateAddress.postcode",label:addressLabels$1.postcode},{key:"alternateAddressPhone",label:"Alternate phone number"}],title:"Social Geographic History",path:"socialHistory"},FEEDBACK_FIELDS={heardAboutUs:{key:"heardAboutUs",label:"How did you hear about us?"},heardAboutUsOther:{key:"heardAboutUsOther",label:"Please specify"},fields:[{key:"internetForResearch",label:"When conducting your own research, how often do you use the internet for gathering information?"},{key:"agreeToSurvey",label:"May we contact you by mail, email, SMS or telephone for our survey?"}],title:"Your Feedback",path:"feedback"},EMERGENCY_CONTACT_FIELDS$1={fields:[{key:"emergencyContact.firstName",label:"First name"},{key:"emergencyContact.lastName",label:"Last name"},{key:"emergencyContact.relationship",label:"Relationship"},{key:"emergencyContact.mobilePhoneNumber",label:"Mobile"},{key:"emergencyContact.homePhoneNumber",label:"Landline"},{key:"emergencyContact.address.line1",label:addressLabels$1.line1},{key:"emergencyContact.address.line2",label:addressLabels$1.line2},{key:"emergencyContact.address.city",label:addressLabels$1.city},{key:"emergencyContact.address.state",label:addressLabels$1.state},{key:"emergencyContact.address.country",label:addressLabels$1.country},{key:"emergencyContact.address.postcode",label:addressLabels$1.postcode},{key:"guardian",label:"Guardian"},{key:"guardianRelationship",label:"Guardian relationship"}],title:"Emergency Contact",path:"emergencyContact"},REVIEW_AND_SUBMIT_QUERY$1=gql`
  query ReviewAndSubmit($id: ID!) {
    patient(id: $id) {
      id
      userProfile {
        id
        showHealthAssessment
      }
      ida
      regFormStatus
      healthAssessment {
        id
        status
      }
      firstName
      middleName
      lastName
      patientGender
      dob
      resolvedNamePrefix
      preferredName
      formattedSsn

      primaryPhone
      secondaryPhone
      email
      workPhone
      employer

      guardian
      guardianRelationship
      emergencyContact {
        id
        contactType
        relationship
        firstName
        lastName
        mobilePhoneNumber
        homePhoneNumber
        address {
          id
          line1
          line2
          city
          postcode
          state
          country
        }
      }

      countryOfBirth
      stateOfBirth
      areaLivedMost
      currentStateHowLong
      inThisStateAllYear
      alternateAddress {
        id
        ...Address
      }
      alternateAddressPhone

      address {
        id
        ...Address
      }
      facilityAddress {
        id
        ...Address
      }
      inHospitalHospiceFacility
      facilityName
      facilityContactNumber

      primaryProvider
      referringProvider
      advancedDirective
      powerOfAttorney
      livingWill

      primaryInsurance {
        id
        ...InsuranceUS
      }
      hasSecondaryInsurance
      secondaryInsurance {
        id
        ...InsuranceUS
      }
      receiveVeteransAdminBenefits
      veteransAdminName
      veteransContactNumber
      veteransCity
      veteransStateProvince
      veteransZip

      primaryOccupation
      maritalStatusValue
      spouseWorkingStatus
      spouseName
      spouseDob
      formattedSpouseSsn
      spouseContactNumber
      spouseAlternateAddressBool
      spouseAlternateAddress {
        id
        ...Address
      }
      race
      raceSpecified
      ancestry
      niceLanguageAtHome

      heardAboutUs
      heardAboutUsOther
      internetForResearch
      agreeToSurvey
    }
    user {
      id
      isPso
    }
    profile(id: $id) {
      id
      registrationAccessType
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
  ${REGISTRATION_INSURANCE_US_FRAGMENT}
`,SUBMIT_FORM$1=gql`
  mutation PatientSubmitRegistrationUs($id: ID!) {
    patientSubmitRegistrationUs(id: $id) {
      patient {
        id
        regFormStatus
      }
    }
  }
`,SUBMIT_FORM_PSO$1=gql`
  mutation StaffSubmitRegistrationUs($id: ID!) {
    staffSubmitRegistrationUs(id: $id) {
      patient {
        id
        regFormStatus
      }
    }
  }
`,StyledCard$1=styled$1("div")`
  padding: 16px 24px 24px 24px;
  margin-bottom: 16px;
  box-shadow: 0px 2px 8px rgba(113, 110, 106, 0.4);
`,StyledHeader$2=styled$1("div")`
  color: ${et=>et.theme.palette.primary.main};
  font-size: 23px;
  line-height: 28px;
`,StyledHeaderRow$1=styled$1("div")`
  line-height: 40px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 10px;

  .ro-button-style .form-fields-default-button {
    margin-right: 0;
  }
`,StyledRow$6=styled$1("div")`
  line-height: 28px;
  display: flex;
  flex-direction: row;
`,StyledField$2=styled$1("label")`
  flex-grow: 1;
  width: 50%;
  padding-right: 16px;
`,StyledInfoField$1=styled$1("div")`
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  width: 50%;
  justify-content: flex-start;
  line-height: 28px;
  align-items: flex-start;
  margin-bottom: 13px;

  label:first-of-type {
    line-height: initial;
    flex-grow: 0;
  }

  div:first-of-type {
    margin-top: 2px;
    line-height: initial;
    flex-grow: 1;
    align-items: start;
  }
`,StyledConditionalSection$1=styled$1("div")`
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};

  label:first-of-type {
    padding-left: 16px;
  }
`,StyledSubHeading$1=styled$1("div")`
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  padding-top: 8px;
  padding-bottom: 8px;
`,StyledDivider$3=styled$1("div")`
  border-top: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-top: 24px;
  padding-top: 18px;
`,EditIcon$2=styled$1(SvgEdit)`
  fill: ${et=>et.theme.palette.primary.main};
  width: 24px;
  height: 24px;
  margin-left: 4px;
`,StyledButton$1=styled$1("button")`
  width: 90px;
  min-width: 90px;
  height: 40px;
  display: flex;
  background: white;
  border: 2px solid ${et=>et.theme.palette.primary.main};
  border-radius: 20px;
  align-items: center;
  justify-content: space-evenly;
  padding-right: 17px;
`,StyledButtonText=styled$1("div")`
  font-size: 14px;
  font-weight: 700;
  color: ${et=>et.theme.palette.text.primary};
`,dateFields$1=["dob","spouseDob","primaryInsurance.policyDob","secondaryInsurance.policyDob"],infoFields$1=["advancedDirective","powerOfAttorney","livingWill"],checkboxFields$1=["agreeToSurvey"],UNITED_STATES_OF_AMERICA="United States of America",formatValue$1=(et,tt)=>dateFields$1.includes(et)?tt?hooks(tt.toString()).format("MM/DD/YYYY"):tt??"-":typeof tt=="boolean"?tt?"Yes":tt===!1&&!checkboxFields$1.includes(et)?"No":"-":(tt==null?void 0:tt.toString())||"-",ReviewAndSubmit$3=et=>{var Kt,Jt;const{exitForm:tt}=et,[rt,nt]=reactExports.useState(!1),{patientId:lt}=useParams(),{data:ut,error:dt,loading:pt}=useQuery(REVIEW_AND_SUBMIT_QUERY$1,{variables:{id:lt}}),ht=sessionStorage.getItem("referringPage"),[mt]=useMutation(SUBMIT_FORM$1),[xt,{loading:Mt}]=useMutation(SUBMIT_FORM_PSO$1,{onCompleted:()=>{sessionStorage.setItem("referringPage",""),vt.push(ht||`/navigator/patient/${lt}/summary`)}}),vt=useHistory();if(pt||!ut||dt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(Mt)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Submitting registration form"});const{patient:Ot,user:At,profile:Rt}=ut,zt=((Kt=Ot==null?void 0:Ot.healthAssessment)==null?void 0:Kt.status)===FormStatus.REG_SUBMITTED,Tt=(Jt=Ot==null?void 0:Ot.userProfile)==null?void 0:Jt.showHealthAssessment,Ct=(Rt==null?void 0:Rt.registrationAccessType)==="inClinic",It=()=>{if(At.isPso)xt({variables:{id:lt}});else{if(mt({variables:{id:lt}}),Ct&&(zt||!Tt))return vt.push(`/patient/${lt}/home`);if(zt||!Tt)return vt.push("/patient/registrationComplete");vt.push(`/patient/${lt}/health/info`)}},Dt=({title:Qt,path:Bt})=>{const Ft=Qt.toLowerCase().replace(/[^\w\s]/g,"").replace(/\s/g,"-");return jsxRuntimeExports.jsxs(StyledHeaderRow$1,{children:[jsxRuntimeExports.jsx(StyledHeader$2,{"data-test-id":`${Ft}-header-text`,children:Qt}),jsxRuntimeExports.jsxs(StyledButton$1,{"data-test-id":`${Ft}-header-button`,onClick:()=>{vt.push(`/patient/${lt}/registration/${Bt}`)},children:[jsxRuntimeExports.jsx(EditIcon$2,{}),jsxRuntimeExports.jsx(StyledButtonText,{children:"Edit"})]})]})},kt=({field:Qt})=>{const Bt=lodash.get(Ot,Qt.key),Ft=jsxRuntimeExports.jsx(StyledField$2,{"data-test-id":`${Qt.key}`,children:formatValue$1(Qt.key,Bt)}),$t=infoFields$1.includes(Qt.key)&&Bt===!0&&!At.isPso?jsxRuntimeExports.jsxs(StyledInfoField$1,{children:[Ft,extraInformation$1(Qt.key)]}):Ft;return jsxRuntimeExports.jsxs(StyledRow$6,{children:[jsxRuntimeExports.jsx(StyledField$2,{"data-test-id":`${Qt.key}-label`,children:Qt.label}),$t]})},qt=({fields:Qt})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Qt.map((Bt,Ft)=>jsxRuntimeExports.jsx(kt,{field:Bt},`${Bt.label}-${Ft}`))}),Yt={...sharedFormContainerProps$1("Review and Submit",10,registrationPath$1(lt,"feedback"),!At.isPso),continueLink:"",submitButtonText:"Submit",handleShowSaveExitConfirm:()=>tt(!0),submitForm:()=>nt(!0),showPTSummaryNav:At.isPso,patient:At.isPso&&Ot,saveAndExitLink:At.isPso&&generatePath(ht||PSO_SUMMARY_LINK$1,{patientId:lt})};return jsxRuntimeExports.jsx(RegistrationContext.Consumer,{children:Qt=>(Qt.setRegistrationSummaryVisited(!0),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormContainer$1,{...Yt,children:[jsxRuntimeExports.jsx(HeaderTitle$3,{"data-test-id":"us-rego-page-title",children:"Review & Submit"}),jsxRuntimeExports.jsx(HeaderSubTitle$1,{"data-test-id":"us-rego-page-subtitle",children:"Please review the following details and click 'Submit'."}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:BASIC_FIELDS$2.title,path:BASIC_FIELDS$2.path}),jsxRuntimeExports.jsx(qt,{fields:BASIC_FIELDS$2.fields})]}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:CONTACT_FIELDS$2.title,path:CONTACT_FIELDS$2.path}),jsxRuntimeExports.jsx(qt,{fields:CONTACT_FIELDS$2.fields})]}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:ADDRESS_FIELDS$1.title,path:ADDRESS_FIELDS$1.path}),jsxRuntimeExports.jsx(qt,{fields:ADDRESS_FIELDS$1.fields}),Ot.inHospitalHospiceFacility&&jsxRuntimeExports.jsx(StyledConditionalSection$1,{children:jsxRuntimeExports.jsx(qt,{fields:ADDRESS_FIELDS$1.facilityFields})})]}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:EMERGENCY_CONTACT_FIELDS$1.title,path:EMERGENCY_CONTACT_FIELDS$1.path}),jsxRuntimeExports.jsx(qt,{fields:EMERGENCY_CONTACT_FIELDS$1.fields})]}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:REFERRER_FIELDS$1.title,path:REFERRER_FIELDS$1.path}),jsxRuntimeExports.jsx(qt,{fields:REFERRER_FIELDS$1.fields})]}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:INSURANCE_FIELDS$1.title,path:INSURANCE_FIELDS$1.path}),jsxRuntimeExports.jsx(StyledSubHeading$1,{children:"Primary Insurance"}),jsxRuntimeExports.jsx(qt,{fields:INSURANCE_FIELDS$1.fields}),jsxRuntimeExports.jsx(StyledDivider$3,{}),jsxRuntimeExports.jsx(StyledSubHeading$1,{children:"Secondary Insurance"}),jsxRuntimeExports.jsx(kt,{field:INSURANCE_FIELDS$1.secondaryConditional},`${INSURANCE_FIELDS$1.path}-98`),Ot.hasSecondaryInsurance&&jsxRuntimeExports.jsx(StyledConditionalSection$1,{children:jsxRuntimeExports.jsx(qt,{fields:INSURANCE_FIELDS$1.secondaryFields})}),jsxRuntimeExports.jsx(StyledDivider$3,{}),jsxRuntimeExports.jsx(StyledSubHeading$1,{children:"Other Benefits"}),jsxRuntimeExports.jsx(kt,{field:INSURANCE_FIELDS$1.veteranConditional},`${INSURANCE_FIELDS$1.path}-99`),Ot.receiveVeteransAdminBenefits&&jsxRuntimeExports.jsx(StyledConditionalSection$1,{children:jsxRuntimeExports.jsx(qt,{fields:INSURANCE_FIELDS$1.veteranFields})})]}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:DEMOGRAPHICS_FIELDS$1.title,path:DEMOGRAPHICS_FIELDS$1.path}),jsxRuntimeExports.jsx(qt,{fields:DEMOGRAPHICS_FIELDS$1.fields}),SPECIFY_MARITAL_FIELDS.includes(Ot.maritalStatusValue)&&jsxRuntimeExports.jsxs(StyledConditionalSection$1,{children:[jsxRuntimeExports.jsx(qt,{fields:DEMOGRAPHICS_FIELDS$1.spouseFields}),Ot.spouseAlternateAddressBool&&jsxRuntimeExports.jsx(qt,{fields:DEMOGRAPHICS_FIELDS$1.spouseAlternateAddressFields})]}),jsxRuntimeExports.jsx(qt,{fields:DEMOGRAPHICS_FIELDS$1.raceField}),["Other","More than one race"].includes(Ot.race)&&jsxRuntimeExports.jsx(StyledConditionalSection$1,{children:jsxRuntimeExports.jsx(qt,{fields:DEMOGRAPHICS_FIELDS$1.raceSpecifiedFields})}),jsxRuntimeExports.jsx(qt,{fields:DEMOGRAPHICS_FIELDS$1.ancestryAndLanguageFields})]}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:SOCIAL_GEOGRAPHIC_FIELDS.title,path:SOCIAL_GEOGRAPHIC_FIELDS.path}),jsxRuntimeExports.jsx(kt,{field:SOCIAL_GEOGRAPHIC_FIELDS.countryConditional},`${SOCIAL_GEOGRAPHIC_FIELDS.path}-99`),Ot.countryOfBirth===UNITED_STATES_OF_AMERICA&&jsxRuntimeExports.jsx(StyledConditionalSection$1,{children:jsxRuntimeExports.jsx(kt,{field:SOCIAL_GEOGRAPHIC_FIELDS.stateConditional},`${SOCIAL_GEOGRAPHIC_FIELDS.path}-99`)}),jsxRuntimeExports.jsx(qt,{fields:SOCIAL_GEOGRAPHIC_FIELDS.fields}),Ot.inThisStateAllYear===!1&&jsxRuntimeExports.jsx(StyledConditionalSection$1,{children:jsxRuntimeExports.jsx(qt,{fields:SOCIAL_GEOGRAPHIC_FIELDS.addressFields})})]}),jsxRuntimeExports.jsxs(StyledCard$1,{children:[jsxRuntimeExports.jsx(Dt,{title:FEEDBACK_FIELDS.title,path:FEEDBACK_FIELDS.path}),jsxRuntimeExports.jsx(qt,{fields:[FEEDBACK_FIELDS.heardAboutUs]}),Ot.heardAboutUs==="Other"&&jsxRuntimeExports.jsx(StyledConditionalSection$1,{children:jsxRuntimeExports.jsx(qt,{fields:[FEEDBACK_FIELDS.heardAboutUsOther]})}),jsxRuntimeExports.jsx(qt,{fields:FEEDBACK_FIELDS.fields})]})]}),jsxRuntimeExports.jsx(ModalSubmitForm,{isOpen:rt,setIsOpen:nt,submitFormMutation:()=>{It()},title:"Are you sure you want to submit the form?",submitText:"Submit",formText:FORM_TEXT$1})]}))})},StyledContainer$3=styled$1("div")`
  height: calc(100vh - 54px);
`,StyledRow$5=styled$1("div")`
  height: 100%;
  flex-wrap: nowrap;
  display: flex;
  flex-direction: row;
`,StyledWrapper$1=styled$1("div")`
  display: flex;
  flex-direction: column;
  height: 100%;

  div:nth-child(1) {
    flex-shrink: 0;
  }
`,StyledLink$5=styled$1(Link$2)`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 0px 0 16px;
  text-decoration: none;
  height: 45px;

  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
`,StyledDivider$2=styled$1("div")`
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-left: 16px;
  margin-right: 16px;
  padding-top: 16px;
`,StyledStepperHeading$1=styled$1("div")`
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  margin: 16px 0 0 16px;
  color: ${et=>et.theme.palette.grey[600]};
`,StyledSideNavContainer$1=styled$1(et=>jsxRuntimeExports.jsx(SideNavContainer,{...lodash.omit(et,["$isvisible"])}))`
  @media all and (max-width: ${supportedSize.transition}px) {
    display: ${et=>et!=null&&et.$isvisible?"auto":"none"};
  }
`,getCurrentPage$1=()=>window.location.href.split("/").pop()||"",RegistrationUS=()=>{const{path:et}=useRouteMatch(),{patientId:tt}=useParams(),rt=useHistory(),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),[pt,ht]=reactExports.useState(!1),[mt]=useMutation(UPDATE_LAST_VISITED_SECTION$2),{data:xt,error:Mt}=useQuery(LAST_VISITED_QUERY$1,{variables:{id:tt},onCompleted:Tt=>{const{patient:Ct,user:It}=Tt;ht(It==null?void 0:It.isPso);const Dt=getCurrentPage$1();(It==null?void 0:It.isPso)===!1&&Dt!=="basic"&&(Ct==null?void 0:Ct.lastVisitedSection)===getCurrentPage$1()&&(Ct!=null&&Ct.regFormStatus)&&dt(!0)}});if(Mt||!xt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const vt=()=>{const Tt=generatePath(`/navigator/patient/${tt}/summary`);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledLink$5,{to:Tt,"data-testid":"back-to-summary-button",children:[jsxRuntimeExports.jsx(StyledArrow,{}),jsxRuntimeExports.jsx(StyledTitle,{children:"Back to patient summary"})]}),jsxRuntimeExports.jsx(StyledDivider$2,{})]})},Ot=()=>{mt({variables:{id:tt,lastVisitedSection:""}}),rt.push({pathname:registrationPath$1(tt,"basic"),state:{pxRedirect:!0}})},At=()=>{mt({variables:{id:tt,lastVisitedSection:""}}),dt(!1)},Rt=()=>{mt({variables:{id:tt,lastVisitedSection:getCurrentPage$1()}}),rt.push({pathname:`/patient/${tt}/home`,state:{pxRedirect:!0}})},zt=!window.location.href.includes("summary");return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(WelcomeBackModal,{returnToStart:()=>Ot(),dismissFunction:()=>At(),updateFirstReturn:()=>{},isOpen:ut}),jsxRuntimeExports.jsx(ModalSaveExit,{isOpen:nt,dismissFunction:()=>lt(!1),exitForm:Rt,exitText:"Exit form"}),jsxRuntimeExports.jsxs(StyledWrapper$1,{children:[jsxRuntimeExports.jsx(HeaderBar,{defaultHeader:!pt}),jsxRuntimeExports.jsx(StyledContainer$3,{children:jsxRuntimeExports.jsxs(StyledRow$5,{children:[jsxRuntimeExports.jsxs(StyledSideNavContainer$1,{$isvisible:zt,children:[pt&&jsxRuntimeExports.jsx(PatientEMR,{patientId:tt}),jsxRuntimeExports.jsxs(OncologyStepper,{steps:usRegoSteps,showTopDivider:!0,children:[pt&&jsxRuntimeExports.jsx(vt,{}),jsxRuntimeExports.jsx(StyledStepperHeading$1,{children:"REGISTRATION FORM"})]})]}),jsxRuntimeExports.jsx(MiddleContainerCol$1,{children:jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:`${et}/basic`,children:jsxRuntimeExports.jsx(Basic$1,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/contact`,children:jsxRuntimeExports.jsx(ContactDetails$1,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/address`,children:jsxRuntimeExports.jsx(Address$1,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/emergencyContact`,children:jsxRuntimeExports.jsx(EmergencyContact$1,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/referrers`,children:jsxRuntimeExports.jsx(Referrer$1,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/insurance`,children:jsxRuntimeExports.jsx(Insurance$1,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/demographics`,children:jsxRuntimeExports.jsx(Demographics$1,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/feedback`,children:jsxRuntimeExports.jsx(Feedback$1,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/socialHistory`,children:jsxRuntimeExports.jsx(SocialGeographicHistory,{exitForm:lt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/summary`,children:jsxRuntimeExports.jsx(ReviewAndSubmit$3,{exitForm:lt})})]})}),jsxRuntimeExports.jsx(RightContainerCol,{})]})})]})]})},apolloComponent$i=withApollo(withRouter(RegistrationUS)),CONTINUE_BUTTON_TEXT="Continue",RETURN_TO_SUBMIT_TEXT="Return to submit",PSO_SUMMARY_LINK="/navigator/patient/:patientId/summary",VALUE_REQUIRED$2="This field is required",CHAR_ONLY="Please enter characters only.",PHONE_VALIDATION="Please enter a valid phone number",PHONE_REQUIRED="Please enter at least one phone number",MEDICARE_NUMBER_VALIDATION="Please enter a valid Medicare card number",MEDICARE_IRN_VALIDATION="Please enter a valid IRN",DVA_FORMAT_VALIDATION="Please enter a valid DVA card number",VIC_AMBULANCE_NUMBER_LENGTH_VALIDATION="Max length: 20 characters",VIC_AMBULANCE_NUMBER_VALIDATION="Please enter a valid ambulance membership number",GENDER_DIFFERENT_TERM_VALIDATION="Max length: 25 characters",MONTH_FORMAT_VALIDATION="Please enter a valid month",YEAR_FORMAT_VALIDATION="Please enter a valid year",EMPTY_ADDRESS={country:"",line1:"",line2:"",city:"",state:"",postcode:""},generatePractitionerValidation=(et,tt)=>{switch(tt){case"warning":return jsxRuntimeExports.jsx(WarningInfo,{warnings:[`This ${et} cannot be found in the system. Please check for ${et} in MOSAIQ or add new record.`]});case"error":return jsxRuntimeExports.jsx(ErrorInfo,{errors:[`This ${et} cannot be found in the system. Please use the lookup above`]});default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}},HeaderTitle$1=styled$1("div")`
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  margin-bottom: 8px;

  @media all and (max-width: ${supportedSize.tablet}px) {
    margin-bottom: 0;
    font-size: 1.5rem;
    line-height: 1.5rem;
    padding: 6px 0;
  }
`,SectionTitle$1=styled$1("div")`
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;

  color: ${et=>et.theme.palette.text.primary};
`,HeaderSubTitle=styled$1("div")`
  margin-bottom: 30px;

  @media all and (max-width: ${supportedSize.transition}px) {
    margin-bottom: 0;
  }
`,SubText=styled$1("div")`
  font-size: 14px;
  margin-bottom: 30px;
  margin-top: 10px;
`,SecondaryTitle=styled$1("div")`
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: ${et=>et.theme.palette.text.primary};
  margin-top: 40px;
  margin-bottom: 20px;

  @media all and (max-width: ${supportedSize.tablet}px) {
    margin-top: 10px;
    margin-bottom: 5px;
  }
`,StyledIndentedSection=styled$1("div")`
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};
  label {
    margin-left: 16px;
    @media all and (max-width: ${supportedSize.transition}px) {
      margin-left: 0;
    }
  }
  padding-left: 10px;
  @media all and (max-width: ${supportedSize.transition}px) {
    padding-left: 18px;
  }
  margin-top: 10px;
`,StyledHorizontalLine=styled$1("div")`
  margin-top: -5px !important;
  margin-bottom: 5px !important;
  width: 100%;
  height: 10px;
  border-bottom: 1px solid black;
  border-color: ${et=>et.theme.palette.grey[300]};
  text-align: center;

  span {
    font-size: 13px;
    background-color: white;
    padding: 0 20px;
    color: ${et=>et.theme.palette.grey[600]};
  }
`,ExtraInformation=styled$1("div")`
  margin-top: 6px;
  color: ${et=>et.theme.palette.info.main};
  font-size: 13px;
  display: flex;
  align-items: center;
`,StyledInfoIcon$1=styled$1(SvgInfo)`
  fill: ${et=>et.theme.palette.info.main};
  width: 16px;
  height: 16px;
  margin-right: 6px;
`,extraInformation=jsxRuntimeExports.jsxs(ExtraInformation,{children:[jsxRuntimeExports.jsx(StyledInfoIcon$1,{}),"Please provide a copy of the document to the clinic"]}),yesNoOptions=[{label:"Yes",value:!0},{label:"No",value:!1}],getDisplayValue=(et,tt)=>{const rt=et==null?void 0:et.filter(nt=>nt.id===tt);return rt!=null&&rt.length?rt[0].name:tt},sharedFormContainerProps=(et,tt,rt)=>({isLocked:!1,updatedBy:"",deleteModal:()=>{},showSaveAndExit:!0,pageNumber:tt,sectionTitle:et,showDiscard:!1,sidePanelWidth:"-15%",footerPosition:"relative",isLoading:!1,isShowSaveExitConfirm:!0,backLink:rt}),registrationPath=(et,tt)=>generatePath(`/patient/${et}/registration/${tt}`),standardField=(et,tt,rt,nt=!0)=>{const lt=["maritalStatus"].includes(et.NAME)&&!DeviceUtilities$1.isDesktopDevice();return jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:et.TITLE,fieldName:et.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{id:et.NAME,name:et.NAME,component:et.COMPONENT,alternateStyle:nt,updateMutation:ut=>tt(et.NAME,ut),handleMutation:tt,placeholder:et.PLACE_HOLDER,options:rt||[],menuPlacement:lt?"top":void 0})})},linkedField=(et,tt,rt)=>jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:et.TITLE,fieldName:et.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{id:et.NAME,name:et.NAME,component:et.COMPONENT,alternateStyle:!0,updateMutation:nt=>{rt(et.NAME,nt)},placeholder:et.PLACE_HOLDER})}),isFormValid=(et,tt)=>Object.keys(et).some(rt=>tt[rt]===!0),MEDICARE_DVA_FIELD_MAPPINGS={healthFundMedicareDVA:"Medicare and DVA",healthFundMedicare:"Medicare"},DVA_FIELD_MAPPINGS={dvaCardGold:"Gold",dvaCardWhite:"White"},DateField=(et,tt,rt,nt,lt,ut,dt)=>jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:et.TITLE,fieldName:et.NAME,className:rt?"registration-date":"registration-date-error",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Stack$5,{sx:{maxWidth:"200px"},children:jsxRuntimeExports.jsx(Field,{name:et.NAME,component:BaseDatePicker,alternateStyle:!0,id:et.NAME,value:tt?dayjs(tt):void 0,disableFuture:dt,onChange:pt=>{const ht=dayjs(pt);ht.isValid()?(nt(et.NAME,ht.format("YYYY-MM-DD")),ut(et.NAME,ht.format("YYYY-MM-DD"),!0)):(nt(et.NAME,""),ut(et.NAME,"",!0))},onBlur:()=>{lt(et.NAME,!0,!0)},error:!rt})})}),FIELDS$6={FORM_HEADING:{NAME:"formHeading",TITLE:"Alternate Contacts"},FIRST_NAME:{NAME:"firstName",TITLE:"First name*",PLACE_HOLDER:"Enter first name",COMPONENT:TextAreaField},LAST_NAME:{NAME:"lastName",TITLE:"Last name*",PLACE_HOLDER:"Enter last name",COMPONENT:TextAreaField},RELATIONSHIP:{NAME:"relationship",TITLE:"Relationship*",PLACE_HOLDER:"Select from drop down",COMPONENT:SelectField$1},MOBILE:{NAME:"mobilePhoneNumber",TITLE:"Mobile*",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},HOME_PHONE:{NAME:"homePhoneNumber",TITLE:"Home phone*",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},EMAIL:{NAME:"email",TITLE:"Email",PLACE_HOLDER:"Enter email address",COMPONENT:TextAreaField},ENQUIRIES:{NAME:"authorisedForEnquiries",TITLE:"Authorised to make enquiries for appointment times*",COMPONENT:ToggleButtonGroupField},CONTACT_PERSON:{NAME:"supportPerson",TITLE:"Identified as support person in making decisions*",COMPONENT:ToggleButtonGroupField},ANOTHER_CONTACT:{NAME:"altContactProvided",TITLE:"Add another contact?",COMPONENT:ToggleButtonGroupField}},ADDITIONAL_CONTACT_FIELDS={FIRST_NAME:{NAME:"nextOfKinContact.firstName",TITLE:"First name",PLACE_HOLDER:"Enter first name",COMPONENT:TextAreaField},LAST_NAME:{NAME:"nextOfKinContact.lastName",TITLE:"Last name",PLACE_HOLDER:"Enter last name",COMPONENT:TextAreaField},RELATIONSHIP:{NAME:"nextOfKinContact.relationship",TITLE:"Relationship",PLACE_HOLDER:"Select from drop down",COMPONENT:SelectField$1},MOBILE:{NAME:"nextOfKinContact.mobilePhoneNumber",TITLE:"Mobile",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},HOME_PHONE:{NAME:"nextOfKinContact.homePhoneNumber",TITLE:"Home phone",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},EMAIL:{NAME:"nextOfKinContact.email",TITLE:"Email",PLACE_HOLDER:"Enter email address",COMPONENT:TextAreaField},ENQUIRIES:{NAME:"nextOfKinContact.authorisedForEnquiries",TITLE:"Authorised to make enquiries for appointment times",COMPONENT:ToggleButtonGroupField},CONTACT_PERSON:{NAME:"nextOfKinContact.supportPerson",TITLE:"Identified as support person in making decisions",COMPONENT:ToggleButtonGroupField}},generateValidationSchema$8=et=>{const tt=create$3().shape({firstName:create$6().ensure().required(VALUE_REQUIRED$2),lastName:create$6().ensure().required(VALUE_REQUIRED$2),relationship:create$6().ensure().required(VALUE_REQUIRED$2),authorisedForEnquiries:create$6().ensure().required(VALUE_REQUIRED$2),supportPerson:create$6().ensure().required(VALUE_REQUIRED$2),email:create$6().matches(EMAIL_STRING_REGEX,EMAIL_VALIDATION).max(CurrentAppConfig.EmailMaxLength,EMAIL_LENGTH_VALIDATION),nextOfKinContact:create$3().nullable().when("altContactProvided",{is:!0,then:create$3().nullable().shape({email:create$6().nullable().matches(EMAIL_STRING_REGEX,EMAIL_VALIDATION).max(CurrentAppConfig.EmailMaxLength,EMAIL_LENGTH_VALIDATION)})}),mobilePhoneNumber:create$6().matches(AU_PHONE_REGEX,{message:PHONE_VALIDATION,excludeEmptyString:!0}).ensure().when("homePhoneNumber",{is:"",then:create$6().required(PHONE_REQUIRED)}),homePhoneNumber:create$6().matches(AU_PHONE_REGEX,{message:PHONE_VALIDATION,excludeEmptyString:!0}).ensure().when("mobilePhoneNumber",{is:"",then:create$6().required(PHONE_REQUIRED)})},[["mobilePhoneNumber","homePhoneNumber"]]);try{validateYupSchema(et,tt,!0)}catch(rt){return yupToFormErrors(rt)}return{}},EmergencyContactForm=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,refData:{relationshipsRefData:lt}}=et,ut=reactExports.useContext(RegistrationContext),dt=useHistory(),pt=ut==null?void 0:ut.registrationSummaryVisited,ht={altContactProvided:rt.altContactProvided,nextOfKinContact:rt.nextOfKinContact,...rt==null?void 0:rt.emergencyContact,id:rt==null?void 0:rt.id},mt=(Mt,vt)=>{Mt===FIELDS$6.EMAIL.NAME&&String(vt).length>CurrentAppConfig.EmailMaxLength||tt(Mt,vt,"C")},xt=(Mt,vt)=>{if(Mt===ADDITIONAL_CONTACT_FIELDS.EMAIL.NAME&&String(vt).length>CurrentAppConfig.EmailMaxLength)return;const Ot=Mt.split(".").pop()||"";return tt(Ot,vt,"N")};return jsxRuntimeExports.jsx(Formik,{initialValues:ht,validate:Mt=>generateValidationSchema$8(Mt),validateOnBlur:!0,validateOnChange:!0,onSubmit:()=>dt.push(registrationPath(ht==null?void 0:ht.id,pt?"summary":"referrers")),children:({errors:Mt,submitForm:vt,setFieldValue:Ot,setFieldTouched:At,touched:Rt})=>{var It;const Tt={...sharedFormContainerProps(FIELDS$6.FORM_HEADING.TITLE,4,""),submitButtonText:pt?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,continueDisabled:isFormValid(Mt,Rt)||!!((It=Mt==null?void 0:Mt.nextOfKinContact)!=null&&It.email),backLink:registrationPath(ht==null?void 0:ht.id,"address"),handleShowSaveExitConfirm:nt},Ct=(Dt,kt)=>{kt===!1?(Ot(ADDITIONAL_CONTACT_FIELDS.EMAIL.NAME,null,!0),xt(ADDITIONAL_CONTACT_FIELDS.EMAIL.NAME,"")):At(ADDITIONAL_CONTACT_FIELDS.EMAIL.NAME,!1,!1),tt(Dt,kt)};return jsxRuntimeExports.jsx(FormContainer$1,{...Tt,submitForm:vt,handleValidation:Dt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"rego-header-title",children:FIELDS$6.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle,{children:"* = required field"}),jsxRuntimeExports.jsx(SecondaryTitle,{children:"Emergency contact"}),standardField(FIELDS$6.FIRST_NAME,mt),standardField(FIELDS$6.LAST_NAME,mt),standardField(FIELDS$6.RELATIONSHIP,mt,mapListData$1(lt)),linkedField(FIELDS$6.MOBILE,FIELDS$6.HOME_PHONE,mt),jsxRuntimeExports.jsx(FormRow$2,{labelClass:"label-form-row",children:jsxRuntimeExports.jsx(StyledHorizontalLine,{children:jsxRuntimeExports.jsx("span",{children:"OR"})})}),linkedField(FIELDS$6.HOME_PHONE,FIELDS$6.MOBILE,mt),standardField(FIELDS$6.EMAIL,mt),standardField(FIELDS$6.ENQUIRIES,mt,yesNoOptions$2),standardField(FIELDS$6.CONTACT_PERSON,mt,yesNoOptions$2),jsxRuntimeExports.jsx(SecondaryTitle,{children:"Additional contact"}),jsxRuntimeExports.jsx(HeaderSubTitle,{"data-test-id":"emergency-sub-text",children:"If you have someone you would like to list in addition to your emergency contact, please provide their details here."}),standardField(FIELDS$6.ANOTHER_CONTACT,Ct,yesNoOptions$2),ht.altContactProvided&&jsxRuntimeExports.jsxs(StyledIndentedSection,{children:[standardField(ADDITIONAL_CONTACT_FIELDS.FIRST_NAME,xt),standardField(ADDITIONAL_CONTACT_FIELDS.LAST_NAME,xt),standardField(ADDITIONAL_CONTACT_FIELDS.RELATIONSHIP,xt,mapListData$1(lt)),linkedField(ADDITIONAL_CONTACT_FIELDS.MOBILE,ADDITIONAL_CONTACT_FIELDS.HOME_PHONE,xt),jsxRuntimeExports.jsx(FormRow$2,{labelClass:"label-form-row",children:jsxRuntimeExports.jsx(StyledHorizontalLine,{children:jsxRuntimeExports.jsx("span",{children:"OR"})})}),linkedField(ADDITIONAL_CONTACT_FIELDS.HOME_PHONE,ADDITIONAL_CONTACT_FIELDS.MOBILE,xt),standardField(ADDITIONAL_CONTACT_FIELDS.EMAIL,xt),standardField(ADDITIONAL_CONTACT_FIELDS.ENQUIRIES,xt,yesNoOptions$2),standardField(ADDITIONAL_CONTACT_FIELDS.CONTACT_PERSON,xt,yesNoOptions$2)]})]})})}})},EMERGENCY_CONTACT_QUERY=gql`
  query EmergencyContactQuery($id: ID!) {
    patient(id: $id) {
      id
      altContactProvided
      emergencyContact {
        id
        contactType
        relationship
        firstName
        lastName
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      nextOfKinContact {
        id
        contactType
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
    }
    relationshipsRefData: listData(category: "relationships") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_EMERGENCY_CONTACT=gql`
  mutation UpdateEmergencyContactAu(
    $id: ID!
    $firstName: String
    $lastName: String
    $relationship: String
    $mobilePhoneNumber: String
    $homePhoneNumber: String
    $email: String
    $authorisedForEnquiries: Boolean
    $supportPerson: Boolean
    $altContactProvided: Boolean
    $contactType: String
  ) {
    updateEmergencyContactAu(
      id: $id
      firstName: $firstName
      lastName: $lastName
      relationship: $relationship
      mobilePhoneNumber: $mobilePhoneNumber
      homePhoneNumber: $homePhoneNumber
      email: $email
      authorisedForEnquiries: $authorisedForEnquiries
      supportPerson: $supportPerson
      altContactProvided: $altContactProvided
      contactType: $contactType
    ) {
      patient {
        id
        altContactProvided
        emergencyContact {
          id
          contactType
          relationship
          firstName
          lastName
          mobilePhoneNumber
          homePhoneNumber
          email
          authorisedForEnquiries
          supportPerson
        }
        nextOfKinContact {
          id
          contactType
          firstName
          lastName
          relationship
          mobilePhoneNumber
          homePhoneNumber
          email
          authorisedForEnquiries
          supportPerson
        }
      }
    }
  }
`,EmergencyContact=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_EMERGENCY_CONTACT),{data:lt,error:ut}=useQuery(EMERGENCY_CONTACT_QUERY,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{relationshipsRefData:dt,patient:pt,user:ht}=lt,mt=(xt,Mt,vt)=>{nt({variables:{id:rt,[xt]:Mt,contactType:vt||""}})};return jsxRuntimeExports.jsx(EmergencyContactForm,{refData:{relationshipsRefData:dt},patient:pt,updateField:mt,handleShowSaveExitConfirm:()=>tt(!0),isPso:ht.isPso})},FIELDS$5={FORM_HEADING:{NAME:"formHeading",TITLE:"Document Upload"},HEARD_ABOUT_US:{NAME:"heardAboutUs",TITLE:"How did you hear about us?",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},HEARD_ABOUT_US_OTHER:{NAME:"heardAboutUsOther",TITLE:"Please specify",PLACE_HOLDER:"Please specify",COMPONENT:TextAreaField},INTERNET_FOR_RESEARCH:{NAME:"internetForResearch",TITLE:"When conducting your own research, how often do you use the internet for gathering information?",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},AGREE_TO_SURVEY:{NAME:"agreeToSurvey",TITLE:"By checking yes, you agree that you understand these risks and to receive surveys and/or requests for online reviews through standard unsecure (unencrypted) email, and/or mobile text messaging.",COMPONENT:null}},ATTACHMENT_ACKNOWLEDGED_MUTATION$1=gql`
  mutation UpdateAttachmentAcknowledgement($patientId: ID!, $attachmentAcknowledged: Boolean!) {
    updateAttachmentAcknowledgement(patientId: $patientId, attachmentAcknowledged: $attachmentAcknowledged) {
      patient {
        id
        attachmentAcknowledged
      }
    }
  }
`,DOCUMENT_UPLOAD_QUERY=gql`
  query DocumentUploadQuery($id: ID!) {
    patient(id: $id) {
      id
      attachments {
        id
        documentType
        encounterDate
        isRegistrationAttachment
        filename
        filesize
        populatedDocumentType
        submitted
        suggestedDocumentType
        url
      }
      attachmentAcknowledged
    }
    documentTypeRefData: attachmentTypes {
      id
      conceptCode
      name: conceptDisplay
    }
    user {
      id
      isPso
    }
  }
`,documentValidationSchema=et=>{const tt={attachmentAcknowledged:create$7().oneOf([!0],"Field must be checked."),attachments:create$2().of(create$3().shape({documentType:create$6().required()}))};try{validateYupSchema(et,create$3(tt),!0)}catch(rt){return yupToFormErrors(rt)}return{}},isDisabled=(et,tt)=>{if(!registrationAttachments(et==null?void 0:et.attachments).length||!tt)return!1;const rt=documentValidationSchema(et);return!!(rt.attachmentAcknowledged||rt.attachments)},DocumentUploadForm=et=>{const tt=reactExports.useContext(RegistrationContext),{patient:rt,refetch:nt,user:lt,handleShowSaveExitConfirm:ut,isPso:dt,refData:{documentTypeRefData:pt}}=et,ht=useHistory(),{patientId:mt}=useParams(),xt=tt==null?void 0:tt.registrationSummaryVisited,[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(!1),[Rt]=useMutation(ATTACHMENT_ACKNOWLEDGED_MUTATION$1),zt=Tt=>lodash.cloneDeep(Tt).map(Ct=>(Ct.conceptCode&&(Ct.id=Ct.conceptCode,delete Ct.conceptCode),Ct));return reactExports.useEffect(()=>{rt.attachmentAcknowledged&&!rt.attachments.length&&Rt({variables:{patientId:mt,attachmentAcknowledged:!1}})},[rt.attachments]),jsxRuntimeExports.jsx(Formik,{initialValues:rt,onSubmit:()=>ht.push(registrationPath(mt,"summary")),children:({submitForm:Tt})=>{const Ct=sharedFormContainerProps("Document Upload",8,""),It=isDisabled(rt,dt),Dt={...Ct,continueDisabled:It,submitButtonText:xt?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,backLink:registrationPath(mt,"demographics"),handleShowSaveExitConfirm:ut};return jsxRuntimeExports.jsx(FormContainer$1,{...Dt,submitForm:Tt,handleValidation:kt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"doc-upload-title",children:FIELDS$5.FORM_HEADING.TITLE}),dt&&jsxRuntimeExports.jsx(HeaderSubTitle,{children:"* = required field"}),jsxRuntimeExports.jsx(apolloComponent$t,{refetchCallback:()=>nt(),documentTypeRefData:zt(pt),patient:rt,user:lt,fileUploaded:Ot,onIncompleteFileUpload:()=>At(!1),onCompleteFileUpload:()=>At(!0),onOpenUploadErrorModal:()=>vt(!0),onCloseUploadErrorModal:()=>vt(!1),uploadInfoErrorModalOpen:Mt,isPso:dt,updateAttachmentAcknowledged:(kt,qt)=>Rt({variables:{patientId:mt,attachmentAcknowledged:qt}}),validateOnLoad:dt})]})})}})},DocumentUpload=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),{data:nt,loading:lt,error:ut,refetch:dt}=useQuery(DOCUMENT_UPLOAD_QUERY,{variables:{id:rt}});if(lt)return jsxRuntimeExports.jsx(LoadingSpinner,{container:!0,relativeSpinner:!0});if(ut||!nt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});{const{documentTypeRefData:pt,patient:ht,user:mt}=nt;return jsxRuntimeExports.jsx(DocumentUploadForm,{refData:{documentTypeRefData:pt},refetch:dt,patient:ht,handleShowSaveExitConfirm:()=>tt(!0),user:mt,isPso:mt.isPso})}},LAST_VISITED_QUERY=gql`
  query RegistrationLastVisited($id: ID!) {
    patient(id: $id) {
      id
      lastVisitedSection
      regFormStatus
      diffMqData
      lock {
        lockedBy
        readOnly
        lockedByName
      }
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_LAST_VISITED_SECTION$1=gql`
  mutation UpdateLastVisited($id: ID!, $lastVisitedSection: String!) {
    updateLastVisited(patientId: $id, lastVisitedSection: $lastVisitedSection) {
      patient {
        id
        lastVisitedSection
      }
    }
  }
`,UPDATE_PATIENT_ADDRESS=gql`
  mutation UpdatePatientAddress(
    $patientId: ID!
    $relatedName: String!
    $line1: String
    $line2: String
    $city: String
    $postcode: String
    $state: String
    $country: String
  ) {
    updatePatientAddress(
      patientId: $patientId
      relatedName: $relatedName
      address: { line1: $line1, line2: $line2, city: $city, postcode: $postcode, state: $state, country: $country }
    ) {
      address {
        id
        ...Address
      }
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,REMOVE_PATIENT_ADDRESS=gql`
  mutation RemovePatientAddress($patientId: ID!, $relatedName: String!) {
    removePatientAddress(patientId: $patientId, relatedName: $relatedName) {
      success
    }
  }
`;gql`
  mutation UpdateAlternateContactAddress(
    $patientId: ID!
    $alternateContactId: ID!
    $relatedName: String!
    $line1: String
    $line2: String
    $city: String
    $postcode: String
    $state: String
    $country: String
  ) {
    updateAlternateContactAddress(
      patientId: $patientId
      alternateContactId: $alternateContactId
      relatedName: $relatedName
      address: { line1: $line1, line2: $line2, city: $city, postcode: $postcode, state: $state, country: $country }
    ) {
      address {
        id
        ...Address
      }
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`;gql`
  mutation RemoveAlternateContactAddress($patientId: ID!, $alternateContactId: ID!, $relatedName: String!) {
    removeAlternateContactAddress(
      patientId: $patientId
      alternateContactId: $alternateContactId
      relatedName: $relatedName
    ) {
      success
    }
  }
`;const FIELDS$4={FORM_HEADING:{NAME:"formHeading",TITLE:"Address"},SAME_POSTAL_ADDRESS:{NAME:"postalAddressSameAsResidential",TITLE:"Same as above (Residential address)",COMPONENT:ToggleButtonGroupField}},AddressForm=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,previousPageLink:lt}=et,ut=reactExports.useContext(RegistrationContext),dt=useHistory(),pt=ut==null?void 0:ut.registrationSummaryVisited,ht=[{query:REGISTRATION_ADDRESS_QUERY,variables:{id:rt==null?void 0:rt.id}}],[mt]=useMutation(UPDATE_PATIENT_ADDRESS,{refetchQueries:ht}),[xt]=useMutation(REMOVE_PATIENT_ADDRESS,{refetchQueries:ht});return jsxRuntimeExports.jsx(Formik,{initialValues:rt,onSubmit:()=>dt.push(registrationPath(rt==null?void 0:rt.id,pt?"summary":"emergencyContact")),children:({values:Mt,submitForm:vt,errors:Ot,setFieldValue:At})=>{const zt={...sharedFormContainerProps("Address",3,lt),submitButtonText:pt?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,continueDisabled:Object.keys(Ot).length>0,handleShowSaveExitConfirm:nt},Tt=()=>{const Dt="postalAddress";At(`${Dt}.country`,""),At(`${Dt}.line1`,""),At(`${Dt}.line2`,""),At(`${Dt}.city`,""),At(`${Dt}.state`,""),At(`${Dt}.postcode`,""),xt({variables:{patientId:rt==null?void 0:rt.id,relatedName:"postal_address"}})},Ct=(Dt,kt)=>{tt(FIELDS$4.SAME_POSTAL_ADDRESS.NAME,kt),kt||Tt()},It=(Dt,kt)=>{mt({variables:{patientId:rt==null?void 0:rt.id,relatedName:Dt,line1:(kt==null?void 0:kt.line1)??"",line2:(kt==null?void 0:kt.line2)??"",city:(kt==null?void 0:kt.city)??"",postcode:(kt==null?void 0:kt.postcode)??"",state:(kt==null?void 0:kt.state)??"",country:(kt==null?void 0:kt.country)??""}})};return jsxRuntimeExports.jsx(FormContainer$1,{...zt,submitForm:vt,children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"rego-page-title",children:FIELDS$4.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(SecondaryTitle,{children:"Residential Address"}),jsxRuntimeExports.jsx(AddressSectionField,{name:"address",values:Mt.address||EMPTY_ADDRESS,updateAddress:Dt=>It("address",Dt)}),jsxRuntimeExports.jsx(SecondaryTitle,{children:"Postal Address"}),standardField(FIELDS$4.SAME_POSTAL_ADDRESS,Ct,yesNoOptions$2),Mt.postalAddressSameAsResidential===!1&&jsxRuntimeExports.jsx(StyledIndentedSection,{children:jsxRuntimeExports.jsx(AddressSectionField,{name:"postalAddress",values:Mt.postalAddress||EMPTY_ADDRESS,updateAddress:Dt=>It("postal_address",Dt)})})]})})}})},Address=et=>{const{patientId:tt}=useParams(),{exitForm:rt}=et,[nt]=useMutation(UPDATE_REGISTRATION_POSTAL_ADDRESS),{data:lt,error:ut}=useQuery(REGISTRATION_ADDRESS_QUERY,{variables:{id:tt}}),{patient:dt,user:pt}=lt||{};if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ht=(mt,xt)=>{nt({variables:{id:tt,[mt]:xt}})};return jsxRuntimeExports.jsx(AddressForm,{updateField:ht,patient:dt,handleShowSaveExitConfirm:()=>rt(!0),previousPageLink:generatePath(`/patient/${dt.id}/registration/contact`),isPso:pt.isPso})},BASIC_FIELDS$1={FORM_HEADING:{NAME:"formHeading",TITLE:"Basic Details"},TITLE_PREFIX:{NAME:"namePrefix",TITLE:"Title",PLACE_HOLDER:"Please select",COMPONENT:SelectField$1},FIRST_NAME:{NAME:"firstName",TITLE:"First name*",PLACE_HOLDER:"Enter first name",COMPONENT:TextAreaField},MIDDLE_NAME:{NAME:"middleName",TITLE:"Middle name",PLACE_HOLDER:"Enter middle name",COMPONENT:TextAreaField},LAST_NAME:{NAME:"lastName",TITLE:"Last name*",PLACE_HOLDER:"Enter last name",COMPONENT:TextAreaField},PREFERRED_NAME:{NAME:"preferredName",TITLE:"Preferred name",PLACE_HOLDER:"If different than first name",COMPONENT:TextAreaField},GENDER:{NAME:"gender",TITLE:"What was your sex recorded at birth*",COMPONENT:ToggleButtonGroupField},GENDER_IDENTIFICATION:{NAME:"genderIdentification",TITLE:"How would you describe your gender*",COMPONENT:SelectField$1},SPECIFY_GENDER:{NAME:"genderIdentificationOther",TITLE:"Please specify",COMPONENT:TextAreaField},DOB_RAW:{NAME:"dob",TITLE:"Date of birth*",COMPONENT:null}},generateValidationSchema$7=et=>{const tt={firstName:create$6().ensure().required(VALUE_REQUIRED$2),lastName:create$6().ensure().required(VALUE_REQUIRED$2),gender:create$6().ensure().required(VALUE_REQUIRED$2),genderIdentification:create$6().ensure().required(VALUE_REQUIRED$2),genderIdentificationOther:create$6().matches(GENDER_IDENTIFICATION_DESCRIBE_REGEX,CHAR_ONLY).max(25,GENDER_DIFFERENT_TERM_VALIDATION).nullable(),dob:create$6().ensure().required(VALUE_REQUIRED$2)};try{validateYupSchema(et,create$3(tt),!0)}catch(rt){return yupToFormErrors(rt)}return{}},BasicForm=et=>{const{updateField:tt,patient:rt,handleShowSaveExitConfirm:nt,refData:{titleReferenceData:lt,genderRefData:ut,genderIdentificationRefData:dt}}=et,pt=reactExports.useContext(RegistrationContext),ht={...rt,namePrefix:getDisplayValue(lt,rt.namePrefix),gender:getDisplayValue(ut,rt.gender),genderIdentification:getDisplayValue(dt,rt.genderIdentification)},mt=pt==null?void 0:pt.registrationSummaryVisited,xt=useHistory();return jsxRuntimeExports.jsx(Formik,{initialValues:ht,validate:Mt=>generateValidationSchema$7(Mt),validateOnChange:!0,validateOnBlur:!0,onSubmit:()=>xt.push(registrationPath(ht==null?void 0:ht.id,mt?"summary":"contact")),children:({errors:Mt,submitForm:vt,values:Ot,setFieldTouched:At,setFieldValue:Rt,touched:zt})=>{const Ct={...sharedFormContainerProps(BASIC_FIELDS$1.FORM_HEADING.TITLE,2,registrationPath(ht.id,"infonotice")),submitButtonText:mt?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,continueDisabled:isFormValid(Mt,zt),handleShowSaveExitConfirm:nt},It=!(Mt.dob&&zt.dob),Dt=(kt,qt)=>{kt==="genderIdentification"&&qt!=="Different Term"&&Rt("genderIdentificationOther",null,!0),tt(kt,qt)};return jsxRuntimeExports.jsx(FormContainer$1,{...Ct,submitForm:vt,handleValidation:kt=>{},children:jsxRuntimeExports.jsxs(Form$3,{style:{paddingBottom:"50%"},children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"rego-page-title",children:BASIC_FIELDS$1.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle,{children:"* = required field"}),standardField(BASIC_FIELDS$1.TITLE_PREFIX,tt,mapListData$1(lt)),standardField(BASIC_FIELDS$1.FIRST_NAME,tt),standardField(BASIC_FIELDS$1.MIDDLE_NAME,tt),standardField(BASIC_FIELDS$1.LAST_NAME,tt),standardField(BASIC_FIELDS$1.PREFERRED_NAME,tt),standardField(BASIC_FIELDS$1.GENDER,tt,mapListData$1(ut)),standardField(BASIC_FIELDS$1.GENDER_IDENTIFICATION,Dt,mapListData$1(dt)),ht.genderIdentification==="Different Term"&&standardField(BASIC_FIELDS$1.SPECIFY_GENDER,tt),DateField(BASIC_FIELDS$1.DOB_RAW,Ot==null?void 0:Ot.dob,It,tt,At,Rt,!0)]})})}})},REGISTRATION_BASIC_DETAILS_QUERY=gql`
  query RegistrationBasicDetails($id: ID!) {
    patient(id: $id) {
      id
      firstName
      middleName
      lastName
      gender
      genderIdentification
      genderIdentificationOther
      dob
      namePrefix
      preferredName
    }
    nameTitle: listData(category: "nameTitle") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    genderIdentificationRefData: listData(category: "genderIdentification") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_REGISTRATION_BASIC_DETAILS=gql`
  mutation UpdatePatientUsBasic(
    $id: ID!
    $firstName: String
    $middleName: String
    $lastName: String
    $namePrefix: String
    $preferredName: String
    $gender: String
    $genderIdentification: String
    $genderIdentificationOther: String
    $dob: String
  ) {
    updatePatientUsBasic(
      id: $id
      firstName: $firstName
      middleName: $middleName
      lastName: $lastName
      namePrefix: $namePrefix
      preferredName: $preferredName
      gender: $gender
      genderIdentification: $genderIdentification
      genderIdentificationOther: $genderIdentificationOther
      dob: $dob
    ) {
      patient {
        id
        firstName
        middleName
        lastName
        namePrefix
        preferredName
        gender
        genderIdentification
        genderIdentificationOther
        dob
      }
    }
  }
`,Basic=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION_BASIC_DETAILS),{data:lt,error:ut}=useQuery(REGISTRATION_BASIC_DETAILS_QUERY,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{genderRefData:dt,genderIdentificationRefData:pt,nameTitle:ht,patient:mt,user:xt}=lt,Mt=(vt,Ot)=>{if(["firstName","lastName"].includes(vt)&&Ot==="")return;const At={id:rt,[vt]:Ot};vt==="genderIdentification"&&Ot!=="Different Term"&&(At.genderIdentificationOther=null),nt({variables:At})};return jsxRuntimeExports.jsx(BasicForm,{refData:{genderRefData:dt,genderIdentificationRefData:pt,titleReferenceData:ht},patient:mt,updateField:Mt,handleShowSaveExitConfirm:()=>tt(!0),isPso:xt.isPso})},CONTACT_FIELDS$1={FORM_HEADING:{NAME:"formHeading",TITLE:"Contact Details"},MOBILE:{NAME:"primaryPhone",TITLE:"Mobile*",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},HOME_PHONE:{NAME:"secondaryPhone",TITLE:"Home phone*",PLACE_HOLDER:"Enter at least one phone number",COMPONENT:TextAreaField},EMAIL:{NAME:"email",TITLE:"Email",PLACE_HOLDER:"e.g. yourname@email.com",COMPONENT:TextAreaField}},generateValidationSchema$6=et=>{const tt=create$3().shape({primaryPhone:create$6().phone("AU",PHONE_VALIDATION).test("secondary-number-required",PHONE_REQUIRED,function(rt){return!!rt||!!this.parent.secondaryPhone}),secondaryPhone:create$6().phone("AU",PHONE_VALIDATION).test("primary-number-required",PHONE_REQUIRED,function(rt){return!!rt||!!this.parent.primaryPhone}),email:create$6().matches(EMAIL_STRING_REGEX,EMAIL_VALIDATION).max(CurrentAppConfig.EmailMaxLength,EMAIL_LENGTH_VALIDATION)},[["primaryPhone","secondaryPhone"]]);try{validateYupSchema(et,tt,!0)}catch(rt){return yupToFormErrors(rt)}},ContactDetailsForm=et=>{const tt=reactExports.useContext(RegistrationContext),{updateField:rt,patient:nt,handleShowSaveExitConfirm:lt,previousPageLink:ut}=et,dt=useHistory(),pt=tt==null?void 0:tt.registrationSummaryVisited;return jsxRuntimeExports.jsx(Formik,{initialValues:nt,validate:ht=>generateValidationSchema$6(ht),validateOnChange:!0,validateOnBlur:!0,onSubmit:()=>dt.push(registrationPath(nt==null?void 0:nt.id,pt?"summary":"address")),children:({submitForm:ht,setTouched:mt,errors:xt,touched:Mt})=>{const Ot={...sharedFormContainerProps("Contact Details",2,ut),submitButtonText:pt?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,continueDisabled:isFormValid(xt,Mt),handleShowSaveExitConfirm:lt};return jsxRuntimeExports.jsx(FormContainer$1,{...Ot,submitForm:ht,handleValidation:At=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"rego-page-title",children:CONTACT_FIELDS$1.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle,{children:"* = required field"}),linkedField(CONTACT_FIELDS$1.MOBILE,CONTACT_FIELDS$1.HOME_PHONE,rt),jsxRuntimeExports.jsx(FormRow$2,{labelClass:"label-form-row",children:jsxRuntimeExports.jsx(StyledHorizontalLine,{children:jsxRuntimeExports.jsx("span",{children:"OR"})})}),linkedField(CONTACT_FIELDS$1.HOME_PHONE,CONTACT_FIELDS$1.MOBILE,rt),standardField(CONTACT_FIELDS$1.EMAIL,rt)]})})}})},REGISTRATION_CONTACT_DETAILS_QUERY=gql`
  query RegistrationContactDetails($id: ID!) {
    patient(id: $id) {
      id
      primaryPhone
      secondaryPhone
      email
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_REGISTRATION_CONTACT_DETAILS=gql`
  mutation UpdatePatientUsContacts($id: ID!, $primaryPhone: String, $secondaryPhone: String, $email: String) {
    updatePatientUsContacts(id: $id, primaryPhone: $primaryPhone, secondaryPhone: $secondaryPhone, email: $email) {
      patient {
        id
        primaryPhone
        secondaryPhone
        email
      }
    }
  }
`,ContactDetails=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION_CONTACT_DETAILS),{data:lt,error:ut}=useQuery(REGISTRATION_CONTACT_DETAILS_QUERY,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:dt,user:pt}=lt,ht=(mt,xt)=>{mt===CONTACT_FIELDS$1.EMAIL.NAME&&String(xt).length>CurrentAppConfig.EmailMaxLength||nt({variables:{id:rt,[mt]:xt}})};return jsxRuntimeExports.jsx(ContactDetailsForm,{updateField:ht,patient:dt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:registrationPath(dt.id,"basic"),isPso:pt.isPso})},generateValidationSchema$5=et=>{const{values:tt,refData:{maritalStatusRefData:rt,atsiHeritageRefData:nt,countryOfBirthRefData:lt,languageSpokenRefData:ut}}=et,dt=lt.map(Mt=>Mt.name),pt=ut.map(Mt=>Mt.name),ht=nt.map(Mt=>Mt.name),mt=rt.map(Mt=>Mt.name),xt={countryOfBirth:create$6().ensure().required(VALUE_REQUIRED$2).oneOf(dt,VALUE_REQUIRED$2),languageAtHome:create$6().ensure().required(VALUE_REQUIRED$2).oneOf(pt,VALUE_REQUIRED$2),heritage:create$6().ensure().required(VALUE_REQUIRED$2).oneOf(ht,VALUE_REQUIRED$2),maritalStatus:create$6().ensure().required(VALUE_REQUIRED$2).oneOf(mt,VALUE_REQUIRED$2),ambulanceMembershipNumber:create$6().nullable().when("ambulanceMembership",{is:!0,then:create$6().ensure().max(20,VIC_AMBULANCE_NUMBER_LENGTH_VALIDATION).required(VALUE_REQUIRED$2).matches(VIC_AMBULANCE_MEMBERSHIP_NUM_REGEXP,{message:VIC_AMBULANCE_NUMBER_VALIDATION})})};try{validateYupSchema(tt,create$3(xt),!0)}catch(Mt){return yupToFormErrors(Mt)}return{}},FIELDS$3={FORM_HEADING:{NAME:"formHeading",TITLE:"Demographics"},COUNTRY_OF_BIRTH:{NAME:"countryOfBirth",TITLE:"Country of birth*",PLACE_HOLDER:"Please select an option",COMPONENT:SelectField},LANGUAGE_AT_HOME:{NAME:"languageAtHome",TITLE:"Language spoken at home*",PLACE_HOLDER:"Please select an option",COMPONENT:SelectField},INTERPRETER:{NAME:"interpreterRequired",TITLE:"Do you require an interpreter?",COMPONENT:ToggleButtonGroupField},OCCUPATION:{NAME:"occupation",TITLE:"What is your primary occupation?",PLACE_HOLDER:"",COMPONENT:TextAreaField},HERITAGE:{NAME:"heritage",TITLE:"Are you of Aboriginal or Torres Strait Islander heritage?*",PLACE_HOLDER:"Please select an option",COMPONENT:SelectField},MARITAL_STATUS:{NAME:"maritalStatus",TITLE:"Marital status*",PLACE_HOLDER:"Please select an option",COMPONENT:SelectField},AMBULANCE_MEMBERSHIP:{NAME:"ambulanceMembership",TITLE:"Do you have an ambulance membership?",COMPONENT:ToggleButtonGroupField},AMBULANCE_MEMBERSHIP_NUMBER:{NAME:"ambulanceMembershipNumber",TITLE:"Ambulance membership number",COMPONENT:TextAreaField}},RegistrationDemographicsFormAU=et=>{const tt=reactExports.useContext(RegistrationContext),{patient:rt,updateField:nt,handleShowSaveExitConfirm:lt,previousPageLink:ut,refData:{maritalStatusRefData:dt,atsiHeritageRefData:pt,countryOfBirthRefData:ht,languageSpokenRefData:mt}}=et,xt={...rt,maritalStatus:getDisplayValue(dt,rt.maritalStatus),heritage:getDisplayValue(pt,rt.heritage),countryOfBirth:getDisplayValue(ht,rt.countryOfBirth),languageAtHome:getDisplayValue(mt,rt.languageAtHome)},Mt=tt==null?void 0:tt.registrationSummaryVisited,vt=useHistory();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Formik,{initialValues:xt,validate:Ot=>generateValidationSchema$5({values:Ot,refData:{maritalStatusRefData:dt,atsiHeritageRefData:pt,countryOfBirthRefData:ht,languageSpokenRefData:mt}}),validateOnBlur:!0,validateOnChange:!0,onSubmit:()=>vt.push(registrationPath(xt==null?void 0:xt.id,Mt?"summary":"upload")),children:({errors:Ot,submitForm:At,values:Rt,touched:zt,setFieldValue:Tt,setFieldTouched:Ct})=>{const Dt={...sharedFormContainerProps(FIELDS$3.FORM_HEADING.TITLE,7,ut),submitButtonText:Mt?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,continueDisabled:isFormValid(Ot,zt),handleShowSaveExitConfirm:lt},kt=!["English",""].includes(Rt==null?void 0:Rt.languageAtHome),qt=(Kt,Jt)=>{Kt===FIELDS$3.LANGUAGE_AT_HOME.NAME&&Jt==="English"&&Tt("interpreterRequired",null,!0),nt(Kt,Jt)},Nt=(Kt,Jt)=>{Kt===FIELDS$3.AMBULANCE_MEMBERSHIP.NAME&&Jt===!1?(Tt(FIELDS$3.AMBULANCE_MEMBERSHIP_NUMBER.NAME,null,!0),nt(FIELDS$3.AMBULANCE_MEMBERSHIP_NUMBER.NAME,"")):Ct(FIELDS$3.AMBULANCE_MEMBERSHIP_NUMBER.NAME,!1,!1),nt(Kt,Jt)},Yt=[...mt].sort((Kt,Jt)=>Kt.name==="English"?-10:Kt.name.localeCompare(Jt.name));return jsxRuntimeExports.jsx(FormContainer$1,{...Dt,submitForm:At,handleValidation:Kt=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"registration-demographics-page-title",children:FIELDS$3.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle,{"data-test-id":"registration-demographics-page-subtitle",children:"* = required field"}),standardField(FIELDS$3.COUNTRY_OF_BIRTH,nt,mapListData$1(ht)),standardField(FIELDS$3.LANGUAGE_AT_HOME,qt,mapListData$1(Yt)),kt&&jsxRuntimeExports.jsx(StyledIndentedSection,{children:standardField(FIELDS$3.INTERPRETER,nt,yesNoOptions$2)}),standardField(FIELDS$3.OCCUPATION,nt),standardField(FIELDS$3.HERITAGE,nt,mapListData$1(pt)),jsxRuntimeExports.jsx(SubText,{"data-test-id":"demographics-sub-text",children:"This is used to help collect better information on Aboriginal and Torres Strait Islander people, including how and why services are used. The information is used to help measure progress in health and wellbeing and will ensure all Australians receive the best possible services in the future."}),standardField(FIELDS$3.MARITAL_STATUS,nt,mapListData$1(dt)),xt.patientState===AustralianStates.VIC&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[standardField(FIELDS$3.AMBULANCE_MEMBERSHIP,Nt,yesNoOptions$2),(Rt==null?void 0:Rt.ambulanceMembership)&&standardField(FIELDS$3.AMBULANCE_MEMBERSHIP_NUMBER,nt)]})]})})}})})},DEMOGRAPHICS_QUERY=gql`
  query RegistrationDemographicDetails($id: ID!) {
    patient(id: $id) {
      id
      patientState
      countryOfBirth
      languageAtHome
      interpreterRequired
      occupation
      heritage
      maritalStatus
      ambulanceMembership
      ambulanceMembershipNumber
    }
    atsiHeritageRefData: listData(category: "heritage") {
      id
      name
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      name
    }
    countryOfBirthRefData: listData(category: "countryOfBirth", removeOutdated: true) {
      id
      name
    }
    languageSpokenRefData: listData(category: "languages", removeOutdated: true) {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_REGISTRATION_DEMOGRAPHIC_DETAILS=gql`
  mutation UpdatePatientAuDemographics(
    $patientId: ID!
    $countryOfBirth: String
    $languageAtHome: String
    $interpreterRequired: Boolean
    $occupation: String
    $heritage: String
    $maritalStatus: String
    $ambulanceMembership: Boolean
    $ambulanceMembershipNumber: String
  ) {
    updatePatientAuDemographics(
      patientId: $patientId
      countryOfBirth: $countryOfBirth
      languageAtHome: $languageAtHome
      interpreterRequired: $interpreterRequired
      occupation: $occupation
      heritage: $heritage
      maritalStatus: $maritalStatus
      ambulanceMembership: $ambulanceMembership
      ambulanceMembershipNumber: $ambulanceMembershipNumber
    ) {
      patient {
        id
        countryOfBirth
        languageAtHome
        niceLanguageAtHome
        interpreterRequired
        occupation
        heritage
        niceHeritage
        maritalStatus
        maritalStatusValue
        ambulanceMembership
        ambulanceMembershipNumber
      }
    }
  }
`,Demographics=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),{data:nt,error:lt}=useQuery(DEMOGRAPHICS_QUERY,{variables:{id:rt}}),[ut]=useMutation(UPDATE_REGISTRATION_DEMOGRAPHIC_DETAILS);if(lt||!nt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:dt,atsiHeritageRefData:pt,maritalStatusRefData:ht,countryOfBirthRefData:mt,languageSpokenRefData:xt,user:Mt}=nt,vt=(Ot,At)=>{const Rt={patientId:rt,[Ot]:At};Ot===FIELDS$3.LANGUAGE_AT_HOME.NAME&&At==="English"&&(Rt.interpreterRequired=null),ut({variables:Rt})};return jsxRuntimeExports.jsx(RegistrationDemographicsFormAU,{patient:dt,updateField:vt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:generatePath(`/patient/${rt}/registration/insurance`),refData:{maritalStatusRefData:ht,atsiHeritageRefData:pt,countryOfBirthRefData:mt,languageSpokenRefData:xt},isPso:Mt.isPso})},FIELDS$2={FORM_HEADING:{NAME:"formHeading",TITLE:"Health insurance"},MEDICARE_OR_DVA:{NAME:"healthMedicareDvaOption",TITLE:"Medicare and/or Department of Veterans Affairs (DVA) number*",PLACE_HOLDER:"Start typing or select from dropdown",COMPONENT:ToggleButtonGroupField},MEDICARE_CARD_NUMBER:{NAME:"healthMedicareNumber",TITLE:"Medicare card number",COMPONENT:MaskField},MEDICARE_CARD_IRN:{NAME:"healthMedicareIrn",TITLE:"IRN",PLACE_HOLDER:"#",COMPONENT:HtmlInputField},MEDICARE_CARD_EXPIRY_MONTH:{NAME:"medicareExpiryRawMonth",TITLE:"Medicare card expiry month",PLACE_HOLDER:"MM",COMPONENT:HtmlInputField},MEDICARE_CARD_EXPIRY_YEAR:{NAME:"medicareExpiryRawYear",TITLE:"Medicare card expiry year",PLACE_HOLDER:"YYYY",COMPONENT:HtmlInputField},DVA_CARD_NUMBER:{NAME:"healthDvaNumber",TITLE:"Department of Veterans Affairs (DVA) card number*",PLACE_HOLDER:"e.g. QSS12345 or VSS54321A",COMPONENT:HtmlInputField},DVA_CARD_TYPE:{NAME:"healthDvaType",TITLE:"DVA card type*",PLACE_HOLDER:"e.g. QSS12345 or VSS54321A",COMPONENT:ToggleButtonGroupField},DVA_CARD_EXPIRY_MONTH:{NAME:"dvaExpiryRawMonth",TITLE:"DVA card expiry month*",PLACE_HOLDER:"MM",COMPONENT:HtmlInputField},DVA_CARD_EXPIRY_YEAR:{NAME:"dvaExpiryRawYear",TITLE:"DVA card expiry year*",PLACE_HOLDER:"YYYY",COMPONENT:HtmlInputField},HAS_PRIVATE_INSURANCE:{NAME:"healthPrivateHealthInsurance",TITLE:"Private health insurance",COMPONENT:ToggleButtonGroupField},HEALTH_FUND_NAME:{NAME:"healthPrivateHealthFundName",TITLE:"Private health fund name",PLACE_HOLDER:"Enter fund name",COMPONENT:TextAreaField},HEALTH_FUND_NUMBER:{NAME:"healthPrivateHealthFundNumber",TITLE:"Private health fund number",PLACE_HOLDER:"Enter fund number",COMPONENT:TextAreaField},HAS_PENSION_CARD:{NAME:"healthPensionCard",TITLE:"Are you a concession card holder?*",COMPONENT:ToggleButtonGroupField},CONCESSION_CARD_TYPE:{NAME:"healthPensionCardType",TITLE:"Type of Services Australia card*",COMPONENT:ToggleButtonGroupField},PENSION_CRN:{NAME:"healthPensionCardNumber",TITLE:"Concession card number*",PLACE_HOLDER:"e.g. 123123123A",COMPONENT:HtmlInputField},PENSION_CARD_EXPIRY:{NAME:"healthPensionCardExpiry",TITLE:"Concession card expiry date*",COMPONENT:null},PENSION_CARD_START:{NAME:"healthPensionCardStart",TITLE:"Concession card start date*",COMPONENT:null}},dvaFieldsToDelete=[FIELDS$2.DVA_CARD_NUMBER.NAME,FIELDS$2.DVA_CARD_EXPIRY_MONTH.NAME,FIELDS$2.DVA_CARD_EXPIRY_YEAR.NAME,FIELDS$2.DVA_CARD_TYPE.NAME],medicareFieldsToDelete=[FIELDS$2.MEDICARE_CARD_NUMBER.NAME,FIELDS$2.MEDICARE_CARD_IRN.NAME,FIELDS$2.MEDICARE_CARD_EXPIRY_MONTH.NAME,FIELDS$2.MEDICARE_CARD_EXPIRY_YEAR.NAME],privateFieldsToDelete=[FIELDS$2.HEALTH_FUND_NAME.NAME,FIELDS$2.HEALTH_FUND_NUMBER.NAME],pensionFieldsToDelete=[FIELDS$2.PENSION_CRN.NAME,FIELDS$2.PENSION_CARD_EXPIRY.NAME,FIELDS$2.PENSION_CARD_START.NAME,FIELDS$2.CONCESSION_CARD_TYPE.NAME],REGISTRATION_INSURANCE_QUERY=gql`
  query RegistrationInsuranceOtherBenefits($id: ID!) {
    patient(id: $id) {
      id
      healthMedicareDvaOption
      healthMedicareNumber
      healthMedicareIrn
      medicareExpiryRawYear
      medicareExpiryRawMonth
      dvaExpiryRawYear
      dvaExpiryRawMonth
      healthDvaNumber
      healthDvaType
      healthPrivateHealthInsurance
      healthPrivateHealthFundName
      healthPrivateHealthFundNumber
      healthPensionCard
      healthPensionCardType
      healthPensionCardNumber
      healthPensionCardExpiry
      healthPensionCardStart
    }
    medicareTypeRefData: listData(category: "healthFund") {
      id
      name
      appKey
    }
    dvaTypeRefData: listData(category: "dvaCardType") {
      id
      name
      appKey
    }
    concessionCardTypeRefData: listData(category: "concessionCardType") {
      id
      name
      appKey
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_REGISTRATION_INSURANCE=gql`
  mutation UpdatePatientAuInsurance(
    $id: ID!
    $healthMedicareDvaOption: String
    $healthMedicareNumber: String
    $healthMedicareIrn: String
    $medicareExpiryRawYear: String
    $medicareExpiryRawMonth: String
    $dvaExpiryRawYear: String
    $dvaExpiryRawMonth: String
    $healthDvaNumber: String
    $healthDvaType: String
    $healthPrivateHealthInsurance: Boolean
    $healthPrivateHealthFundName: String
    $healthPrivateHealthFundNumber: String
    $healthPensionCard: Boolean
    $healthPensionCardType: String
    $healthPensionCardNumber: String
    $healthPensionCardExpiry: String
    $healthPensionCardStart: String
  ) {
    updatePatientAuInsurance(
      id: $id
      healthMedicareDvaOption: $healthMedicareDvaOption
      healthMedicareNumber: $healthMedicareNumber
      healthMedicareIrn: $healthMedicareIrn
      medicareExpiryRawYear: $medicareExpiryRawYear
      medicareExpiryRawMonth: $medicareExpiryRawMonth
      dvaExpiryRawYear: $dvaExpiryRawYear
      dvaExpiryRawMonth: $dvaExpiryRawMonth
      healthDvaNumber: $healthDvaNumber
      healthDvaType: $healthDvaType
      healthPrivateHealthInsurance: $healthPrivateHealthInsurance
      healthPrivateHealthFundName: $healthPrivateHealthFundName
      healthPrivateHealthFundNumber: $healthPrivateHealthFundNumber
      healthPensionCard: $healthPensionCard
      healthPensionCardType: $healthPensionCardType
      healthPensionCardNumber: $healthPensionCardNumber
      healthPensionCardExpiry: $healthPensionCardExpiry
      healthPensionCardStart: $healthPensionCardStart
    ) {
      patient {
        id
        healthMedicareDvaOption
        healthMedicareNumber
        healthMedicareIrn
        medicareExpiryRawYear
        medicareExpiryRawMonth
        dvaExpiryRawYear
        dvaExpiryRawMonth
        healthDvaNumber
        healthDvaType
        healthPrivateHealthInsurance
        healthPrivateHealthFundName
        healthPrivateHealthFundNumber
        healthPensionCard
        healthPensionCardType
        healthPensionCardNumber
        healthPensionCardExpiry
        healthPensionCardStart
      }
    }
  }
`,validateInsurance=et=>{const rt=new Date().getFullYear(),nt=20,{values:lt,refData:{medicareTypeRefData:ut,dvaTypeRefData:dt,concessionCardTypeRefData:pt}}=et,ht=ut.map(vt=>vt.name),mt=dt.map(vt=>vt.name),xt=pt.map(vt=>vt.name);let Mt={healthMedicareNumber:create$6().max(10,MEDICARE_NUMBER_VALIDATION).matches(MEDICARE_REGEX,MEDICARE_NUMBER_VALIDATION),healthMedicareIrn:create$6().matches(MEDICARE_IRN_REGEXP,MEDICARE_IRN_VALIDATION),medicareExpiryRawMonth:create$5().typeError(MONTH_FORMAT_VALIDATION).min(1,MONTH_FORMAT_VALIDATION).max(12,MONTH_FORMAT_VALIDATION),medicareExpiryRawYear:create$5().typeError(YEAR_FORMAT_VALIDATION).min(rt,YEAR_FORMAT_VALIDATION).max(rt+nt,YEAR_FORMAT_VALIDATION),healthPensionCard:create$6().ensure().required(VALUE_REQUIRED$2),healthMedicareDvaOption:create$6().ensure().oneOf(ht,VALUE_REQUIRED$2)};return lt!=null&&lt.healthPensionCard&&(Mt={...Mt,healthPensionCardType:create$6().ensure().required(VALUE_REQUIRED$2).oneOf(xt,VALUE_REQUIRED$2),healthPensionCardNumber:create$6().ensure().required(VALUE_REQUIRED$2),healthPensionCardStart:create$6().ensure().required(VALUE_REQUIRED$2),healthPensionCardExpiry:create$6().ensure().required(VALUE_REQUIRED$2)}),(lt==null?void 0:lt.healthMedicareDvaOption)==="Medicare and DVA"&&(Mt={...Mt,healthDvaType:create$6().ensure().required(VALUE_REQUIRED$2).oneOf(mt,VALUE_REQUIRED$2),healthDvaNumber:create$6().required(VALUE_REQUIRED$2).matches(DVA_NUMBER_REGEXP,DVA_FORMAT_VALIDATION).min(8,DVA_FORMAT_VALIDATION),dvaExpiryRawMonth:create$5().typeError(MONTH_FORMAT_VALIDATION).required(VALUE_REQUIRED$2).min(1,MONTH_FORMAT_VALIDATION).max(12,MONTH_FORMAT_VALIDATION),dvaExpiryRawYear:create$5().typeError(YEAR_FORMAT_VALIDATION).required(VALUE_REQUIRED$2).min(rt,YEAR_FORMAT_VALIDATION).max(rt+nt,YEAR_FORMAT_VALIDATION)}),Mt},generateValidationSchema$4=et=>{const tt=validateInsurance(et);try{validateYupSchema(et.values,create$3(tt),!0)}catch(rt){return yupToFormErrors(rt)}},{FORM_HEADING:FORM_HEADING$7}=FIELDS$2,monthFieldWidth="80px",monthFieldInputProps={maxLength:2,type:"string"},yearFieldWidth="80px",yearFieldInputProps={maxLength:4,type:"string"},InfoDiv=styled$1("div")`
  margin-top: 5px;
  font-size: 14px;
`,InputField=(et,tt,rt,nt)=>jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:et.TITLE,fieldName:et.NAME,labelClass:"label-form-row",children:[jsxRuntimeExports.jsx(Field,{name:et.NAME,component:et.COMPONENT,updateMutation:lt=>tt(et.NAME,lt),handleMutation:tt,width:rt,placeholder:et.PLACE_HOLDER,inputProps:nt}),et.NAME==="healthMedicareIrn"&&jsxRuntimeExports.jsx(InfoDiv,{children:"*IRN - Individual Reference Number (the number which appears next to your name)"})]}),InsuranceForm=et=>{const{updateField:tt,patient:rt,previousPageLink:nt,handleShowSaveExitConfirm:lt,refData:{medicareTypeRefData:ut,dvaTypeRefData:dt,concessionCardTypeRefData:pt}}=et,ht=reactExports.useContext(RegistrationContext),mt=useHistory(),xt=reactExports.useMemo(()=>mapListData$1(ut),ut),Mt=reactExports.useMemo(()=>mapListData$1(dt),dt),vt=reactExports.useMemo(()=>mapListData$1(pt),pt),Ot=ht==null?void 0:ht.registrationSummaryVisited;return jsxRuntimeExports.jsx(Formik,{initialValues:rt,validate:At=>generateValidationSchema$4({values:At,refData:{medicareTypeRefData:ut,dvaTypeRefData:dt,concessionCardTypeRefData:pt}}),validateOnBlur:!0,validateOnChange:!1,onSubmit:()=>mt.push(registrationPath(rt==null?void 0:rt.id,Ot?"summary":"demographics")),children:({submitForm:At,values:Rt,errors:zt,setFieldValue:Tt,setFieldTouched:Ct,setTouched:It,touched:Dt,submitCount:kt})=>{const qt=sharedFormContainerProps("Insurance and other benefits",2,nt),Nt=(Qt,Bt)=>jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Qt.TITLE,fieldName:Qt.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:Qt.NAME,component:Qt.COMPONENT,updateMutation:Ft=>{Tt(Qt.NAME,Ft.replace(/ /g,""),!0),Bt(Qt.NAME,Ft.replace(/ /g,""))},handleMutation:(Ft,$t)=>{Tt(Ft,$t.replace(/ /g,""),!0),Bt(Ft,$t.replace(/ /g,""))},initialMask:"**** ***** *",mask:"9999 99999 9",maskChar:"X"})}),Yt={...qt,submitButtonText:Ot?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,continueDisabled:isFormValid(zt,Dt),handleShowSaveExitConfirm:lt},Kt=Qt=>{Qt.forEach(Bt=>Tt(Bt,"",!0))},Jt=(Qt,Bt)=>{if(Qt===FIELDS$2.MEDICARE_OR_DVA.NAME)switch(Bt){case"None":Kt(medicareFieldsToDelete);case"Medicare":Kt(dvaFieldsToDelete),It({...Dt,healthDvaNumber:!1,healthDvaType:!1,dvaExpiryRawMonth:!1,dvaExpiryRawYear:!1},!1);break}if(Qt===FIELDS$2.HAS_PRIVATE_INSURANCE.NAME&&Bt===!1&&Kt(privateFieldsToDelete),Qt===FIELDS$2.HAS_PENSION_CARD.NAME&&Bt===!1&&(Kt(pensionFieldsToDelete),It({...Dt,healthPensionCardType:!1,healthPensionCardNumber:!1,healthPensionCardStart:!1,healthPensionCardExpiry:!1},!1)),Qt===FIELDS$2.MEDICARE_CARD_NUMBER.NAME&&["XXXXXXXXXX",""].includes(Bt.toString()))return Kt([FIELDS$2.MEDICARE_CARD_NUMBER.NAME]),tt(Qt,"");tt(Qt,Bt),Tt(Qt,Bt,!0)};return jsxRuntimeExports.jsx(FormContainer$1,{...Yt,submitForm:At,handleValidation:Qt=>{},children:jsxRuntimeExports.jsxs(Form$3,{style:{paddingBottom:"50%"},children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"rego-insurance-page-title",children:FORM_HEADING$7.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle,{children:"* = required field"}),standardField(FIELDS$2.MEDICARE_OR_DVA,Jt,xt),["Medicare","Medicare and DVA"].includes(Rt.healthMedicareDvaOption)&&jsxRuntimeExports.jsxs(StyledIndentedSection,{children:[Nt(FIELDS$2.MEDICARE_CARD_NUMBER,Jt),InputField(FIELDS$2.MEDICARE_CARD_IRN,Jt,"50px",{maxLength:1,type:"string"}),InputField(FIELDS$2.MEDICARE_CARD_EXPIRY_MONTH,Jt,monthFieldWidth,monthFieldInputProps),InputField(FIELDS$2.MEDICARE_CARD_EXPIRY_YEAR,Jt,yearFieldWidth,yearFieldInputProps)]}),["Medicare and DVA"].includes(Rt.healthMedicareDvaOption)&&jsxRuntimeExports.jsxs(StyledIndentedSection,{children:[InputField(FIELDS$2.DVA_CARD_NUMBER,Jt,"default",{maxLength:9}),standardField(FIELDS$2.DVA_CARD_TYPE,Jt,Mt),InputField(FIELDS$2.DVA_CARD_EXPIRY_MONTH,Jt,monthFieldWidth,monthFieldInputProps),InputField(FIELDS$2.DVA_CARD_EXPIRY_YEAR,Jt,yearFieldWidth,yearFieldInputProps)]}),standardField(FIELDS$2.HAS_PRIVATE_INSURANCE,Jt,yesNoOptions),Rt.healthPrivateHealthInsurance&&jsxRuntimeExports.jsxs(StyledIndentedSection,{children:[standardField(FIELDS$2.HEALTH_FUND_NAME,Jt),standardField(FIELDS$2.HEALTH_FUND_NUMBER,Jt)]}),standardField(FIELDS$2.HAS_PENSION_CARD,Jt,yesNoOptions),Rt.healthPensionCard&&jsxRuntimeExports.jsxs(StyledIndentedSection,{children:[standardField(FIELDS$2.CONCESSION_CARD_TYPE,Jt,vt),InputField(FIELDS$2.PENSION_CRN,Jt,"default",{maxLength:10}),DateField(FIELDS$2.PENSION_CARD_START,Rt==null?void 0:Rt.healthPensionCardStart,!((kt>0||Dt.healthPensionCardStart)&&zt.healthPensionCardStart),tt,Ct,Tt),DateField(FIELDS$2.PENSION_CARD_EXPIRY,Rt==null?void 0:Rt.healthPensionCardExpiry,!((kt>0||Dt.healthPensionCardExpiry)&&zt.healthPensionCardExpiry),tt,Ct,Tt)]})]})})}})},Insurance=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION_INSURANCE),{data:lt,error:ut,loading:dt}=useQuery(REGISTRATION_INSURANCE_QUERY,{variables:{id:rt}}),pt=()=>nt({variables:{id:rt,...{healthDvaNumber:"",healthDvaType:"",dvaExpiryRawMonth:"",dvaExpiryRawYear:"",healthMedicareDvaOption:"Medicare"}}}),ht=()=>nt({variables:{id:rt,...{healthDvaNumber:"",healthDvaType:"",dvaExpiryRawMonth:"",dvaExpiryRawYear:"",healthMedicareNumber:"",healthMedicareIrn:"",medicareExpiryRawYear:"",medicareExpiryRawMonth:"",healthMedicareDvaOption:"None"}}}),mt=()=>nt({variables:{id:rt,...{healthPensionCardNumber:"",healthPensionCardType:"",healthPensionCard:!1,healthPensionCardStart:"",healthPensionCardExpiry:""}}}),xt=(It,Dt)=>It===FIELDS$2.MEDICARE_OR_DVA.NAME&&Dt==="Medicare"?pt():It===FIELDS$2.MEDICARE_OR_DVA.NAME&&Dt==="None"?ht():It===FIELDS$2.HAS_PENSION_CARD.NAME&&Dt===!1?mt():nt({variables:{id:rt,[It]:Dt}});if(dt||!lt||ut)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:Mt,medicareTypeRefData:vt,dvaTypeRefData:Ot,concessionCardTypeRefData:At,user:Rt}=lt,zt={...Mt},Tt=(Mt==null?void 0:Mt.healthMedicareDvaOption)||"";Object.keys(MEDICARE_DVA_FIELD_MAPPINGS).includes(Tt)&&(zt.healthMedicareDvaOption=MEDICARE_DVA_FIELD_MAPPINGS[Tt]);const Ct=(Mt==null?void 0:Mt.healthDvaType)||"";return Object.keys(DVA_FIELD_MAPPINGS).includes(Ct)&&(zt.healthDvaType=DVA_FIELD_MAPPINGS[Ct]),jsxRuntimeExports.jsx(InsuranceForm,{refData:{medicareTypeRefData:vt,dvaTypeRefData:Ot,concessionCardTypeRefData:At},patient:zt,updateField:xt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:registrationPath(Mt.id,"referrers"),isPso:!!Rt.isPso})};function t$1(){return t$1=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt];for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(et[nt]=rt[nt])}return et},t$1.apply(this,arguments)}const n$2=["children","options"],r$3={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var i;(function(et){et[et.MAX=0]="MAX",et[et.HIGH=1]="HIGH",et[et.MED=2]="MED",et[et.LOW=3]="LOW",et[et.MIN=4]="MIN"})(i||(i={}));const l$1=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((et,tt)=>(et[tt.toLowerCase()]=tt,et),{for:"htmlFor"}),a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o$1=["style","script"],c$1=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s$1=/mailto:/i,d$1=/\n{2,}$/,u$3=/^(\s*>[\s\S]*?)(?=\n{2,})/,p$2=/^ *> ?/gm,f$2=/^ {2,}\n/,h$1=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,m$1=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,g$2=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y$1=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k$1=/^(?:\n *)*\n/,x$1=/\r\n?/g,b$1=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,v$2=/^\[\^([^\]]+)]/,S=/\f/g,E$1=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,$$1=/^\s*?\[(x|\s)\]/,w$1=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,C$1=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z$1=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,L=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,A$1=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,T=/^<!--[\s\S]*?(?:-->)/,O=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,B$2=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,R=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,I$1=/^<([^ >]+@[^ >]+)>/,U=/^<([^ >]+:\/[^ >]+)>/,D$2=/-([a-z])?/gi,j=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,N=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,H$1=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F$1=/^\[([^\]]*)\] ?\[([^\]]*)\]/,P=/(\[|\])/g,_=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W$6=/\t/g,G$2=/(^ *\||\| *$)/g,Z=/^ *:-+: *$/,q$2=/^ *:-+ *$/,Q=/^ *-+: *$/,V="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",X=new RegExp(`^([*_])\\1${V}\\1\\1(?!\\1)`),J=new RegExp(`^([*_])${V}\\1(?!\\1|\\w)`),K$5=new RegExp(`^==${V}==`),Y=new RegExp(`^~~${V}~~`),ee=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ne=/^\n+/,re=/^([ \t]*)/,ie=/\\([^\\])/g,le=/ *\n+$/,ae=/(?:^|\n)( *)$/,oe="(?:\\d+\\.)",ce="(?:[*+-])";function se(et){return"( *)("+(et===1?oe:ce)+") +"}const de=se(1),ue=se(2);function pe(et){return new RegExp("^"+(et===1?de:ue))}const fe=pe(1),he=pe(2);function me(et){return new RegExp("^"+(et===1?de:ue)+"[^\\n]*(?:\\n(?!\\1"+(et===1?oe:ce)+" )[^\\n]*)*(\\n|$)","gm")}const ge=me(1),ye=me(2);function ke(et){const tt=et===1?oe:ce;return new RegExp("^( *)("+tt+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+tt+" (?!"+tt+" ))\\n*|\\s*\\n*$)")}const xe=ke(1),be=ke(2);function ve(et,tt){const rt=tt===1,nt=rt?xe:be,lt=rt?ge:ye,ut=rt?fe:he;return{match(dt,pt,ht){const mt=ae.exec(ht);return mt&&(pt.list||!pt.inline&&!pt.simple)?nt.exec(dt=mt[1]+dt):null},order:1,parse(dt,pt,ht){const mt=rt?+dt[2]:void 0,xt=dt[0].replace(d$1,`
`).match(lt);let Mt=!1;return{items:xt.map(function(vt,Ot){const At=ut.exec(vt)[0].length,Rt=new RegExp("^ {1,"+At+"}","gm"),zt=vt.replace(Rt,"").replace(ut,""),Tt=Ot===xt.length-1,Ct=zt.indexOf(`

`)!==-1||Tt&&Mt;Mt=Ct;const It=ht.inline,Dt=ht.list;let kt;ht.list=!0,Ct?(ht.inline=!1,kt=zt.replace(le,`

`)):(ht.inline=!0,kt=zt.replace(le,""));const qt=pt(kt,ht);return ht.inline=It,ht.list=Dt,qt}),ordered:rt,start:mt}},render:(dt,pt,ht)=>et(dt.ordered?"ol":"ul",{key:ht.key,start:dt.type===r$3.orderedList?dt.start:void 0},dt.items.map(function(mt,xt){return et("li",{key:xt},pt(mt,ht))}))}}const Se=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Ee=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$e=[u$3,m$1,g$2,w$1,z$1,C$1,T,j,ge,xe,ye,be],we=[...$e,/^[^\n]+(?:  \n|\n{2,})/,L,B$2];function Ce(et){return et.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ze(et){return Q.test(et)?"right":Z.test(et)?"center":q$2.test(et)?"left":null}function Le(et,tt,rt,nt){const lt=rt.inTable;rt.inTable=!0;let ut=et.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((pt,ht)=>(ht.trim()==="|"?pt.push(nt?{type:r$3.tableSeparator}:{type:r$3.text,text:ht}):ht!==""&&pt.push.apply(pt,tt(ht,rt)),pt),[]);rt.inTable=lt;let dt=[[]];return ut.forEach(function(pt,ht){pt.type===r$3.tableSeparator?ht!==0&&ht!==ut.length-1&&dt.push([]):(pt.type!==r$3.text||ut[ht+1]!=null&&ut[ht+1].type!==r$3.tableSeparator||(pt.text=pt.text.trimEnd()),dt[dt.length-1].push(pt))}),dt}function Ae(et,tt,rt){rt.inline=!0;const nt=et[2]?et[2].replace(G$2,"").split("|").map(ze):[],lt=et[3]?function(dt,pt,ht){return dt.trim().split(`
`).map(function(mt){return Le(mt,pt,ht,!0)})}(et[3],tt,rt):[],ut=Le(et[1],tt,rt,!!lt.length);return rt.inline=!1,lt.length?{align:nt,cells:lt,header:ut,type:r$3.table}:{children:ut,type:r$3.paragraph}}function Te(et,tt){return et.align[tt]==null?{}:{textAlign:et.align[tt]}}function Oe(et){return function(tt,rt){return rt.inline?et.exec(tt):null}}function Be(et){return function(tt,rt){return rt.inline||rt.simple?et.exec(tt):null}}function Me(et){return function(tt,rt){return rt.inline||rt.simple?null:et.exec(tt)}}function Re(et){return function(tt){return et.exec(tt)}}function Ie(et,tt,rt){if(tt.inline||tt.simple||rt&&!rt.endsWith(`
`))return null;let nt="";et.split(`
`).every(ut=>!$e.some(dt=>dt.test(ut))&&(nt+=ut+`
`,ut.trim()));const lt=nt.trimEnd();return lt==""?null:[nt,lt]}function Ue(et){try{if(decodeURIComponent(et).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return et}function De(et){return et.replace(ie,"$1")}function je(et,tt,rt){const nt=rt.inline||!1,lt=rt.simple||!1;rt.inline=!0,rt.simple=!0;const ut=et(tt,rt);return rt.inline=nt,rt.simple=lt,ut}function Ne(et,tt,rt){const nt=rt.inline||!1,lt=rt.simple||!1;rt.inline=!1,rt.simple=!0;const ut=et(tt,rt);return rt.inline=nt,rt.simple=lt,ut}function He(et,tt,rt){const nt=rt.inline||!1;rt.inline=!1;const lt=et(tt,rt);return rt.inline=nt,lt}const Fe=(et,tt,rt)=>({children:je(tt,et[1],rt)});function Pe(){return{}}function _e(){return null}function We(...et){return et.filter(Boolean).join(" ")}function Ge(et,tt,rt){let nt=et;const lt=tt.split(".");for(;lt.length&&(nt=nt[lt[0]],nt!==void 0);)lt.shift();return nt||rt}function Ze(et="",tt={}){function rt(vt,Ot,...At){const Rt=Ge(tt.overrides,`${vt}.props`,{});return tt.createElement(function(zt,Tt){const Ct=Ge(Tt,zt);return Ct?typeof Ct=="function"||typeof Ct=="object"&&"render"in Ct?Ct:Ge(Tt,`${zt}.component`,zt):zt}(vt,tt.overrides),t$1({},Ot,Rt,{className:We(Ot==null?void 0:Ot.className,Rt.className)||void 0}),...At)}function nt(vt){vt=vt.replace(E$1,"");let Ot=!1;tt.forceInline?Ot=!0:tt.forceBlock||(Ot=_.test(vt)===!1);const At=mt(ht(Ot?vt:`${vt.trimEnd().replace(ne,"")}

`,{inline:Ot}));for(;typeof At[At.length-1]=="string"&&!At[At.length-1].trim();)At.pop();if(tt.wrapper===null)return At;const Rt=tt.wrapper||(Ot?"span":"div");let zt;if(At.length>1||tt.forceWrapper)zt=At;else{if(At.length===1)return zt=At[0],typeof zt=="string"?rt("span",{key:"outer"},zt):zt;zt=null}return reactExports.createElement(Rt,{key:"outer"},zt)}function lt(vt,Ot){const At=Ot.match(c$1);return At?At.reduce(function(Rt,zt,Tt){const Ct=zt.indexOf("=");if(Ct!==-1){const It=function(Nt){return Nt.indexOf("-")!==-1&&Nt.match(O)===null&&(Nt=Nt.replace(D$2,function(Yt,Kt){return Kt.toUpperCase()})),Nt}(zt.slice(0,Ct)).trim(),Dt=function(Nt){const Yt=Nt[0];return(Yt==='"'||Yt==="'")&&Nt.length>=2&&Nt[Nt.length-1]===Yt?Nt.slice(1,-1):Nt}(zt.slice(Ct+1).trim()),kt=l$1[It]||It,qt=Rt[kt]=function(Nt,Yt,Kt,Jt){return Yt==="style"?Kt.split(/;\s?/).reduce(function(Qt,Bt){const Ft=Bt.slice(0,Bt.indexOf(":"));return Qt[Ft.trim().replace(/(-[a-z])/g,$t=>$t[1].toUpperCase())]=Bt.slice(Ft.length+1).trim(),Qt},{}):Yt==="href"||Yt==="src"?Jt(Kt,Nt,Yt):(Kt.match(M)&&(Kt=Kt.slice(1,Kt.length-1)),Kt==="true"||Kt!=="false"&&Kt)}(vt,It,Dt,tt.sanitizer);typeof qt=="string"&&(L.test(qt)||B$2.test(qt))&&(Rt[kt]=reactExports.cloneElement(nt(qt.trim()),{key:Tt}))}else zt!=="style"&&(Rt[l$1[zt]||zt]=!0);return Rt},{}):null}tt.overrides=tt.overrides||{},tt.sanitizer=tt.sanitizer||Ue,tt.slugify=tt.slugify||Ce,tt.namedCodesToUnicode=tt.namedCodesToUnicode?t$1({},a,tt.namedCodesToUnicode):a,tt.createElement=tt.createElement||reactExports.createElement;const ut=[],dt={},pt={[r$3.blockQuote]:{match:Me(u$3),order:1,parse:(vt,Ot,At)=>({children:Ot(vt[0].replace(p$2,""),At)}),render:(vt,Ot,At)=>rt("blockquote",{key:At.key},Ot(vt.children,At))},[r$3.breakLine]:{match:Re(f$2),order:1,parse:Pe,render:(vt,Ot,At)=>rt("br",{key:At.key})},[r$3.breakThematic]:{match:Me(h$1),order:1,parse:Pe,render:(vt,Ot,At)=>rt("hr",{key:At.key})},[r$3.codeBlock]:{match:Me(g$2),order:0,parse:vt=>({lang:void 0,text:vt[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(vt,Ot,At)=>rt("pre",{key:At.key},rt("code",t$1({},vt.attrs,{className:vt.lang?`lang-${vt.lang}`:""}),vt.text))},[r$3.codeFenced]:{match:Me(m$1),order:0,parse:vt=>({attrs:lt("code",vt[3]||""),lang:vt[2]||void 0,text:vt[4],type:r$3.codeBlock})},[r$3.codeInline]:{match:Be(y$1),order:3,parse:vt=>({text:vt[2]}),render:(vt,Ot,At)=>rt("code",{key:At.key},vt.text)},[r$3.footnote]:{match:Me(b$1),order:0,parse:vt=>(ut.push({footnote:vt[2],identifier:vt[1]}),{}),render:_e},[r$3.footnoteReference]:{match:Oe(v$2),order:1,parse:vt=>({target:`#${tt.slugify(vt[1],Ce)}`,text:vt[1]}),render:(vt,Ot,At)=>rt("a",{key:At.key,href:tt.sanitizer(vt.target,"a","href")},rt("sup",{key:At.key},vt.text))},[r$3.gfmTask]:{match:Oe($$1),order:1,parse:vt=>({completed:vt[1].toLowerCase()==="x"}),render:(vt,Ot,At)=>rt("input",{checked:vt.completed,key:At.key,readOnly:!0,type:"checkbox"})},[r$3.heading]:{match:Me(tt.enforceAtxHeadings?C$1:w$1),order:1,parse:(vt,Ot,At)=>({children:je(Ot,vt[2],At),id:tt.slugify(vt[2],Ce),level:vt[1].length}),render:(vt,Ot,At)=>rt(`h${vt.level}`,{id:vt.id,key:At.key},Ot(vt.children,At))},[r$3.headingSetext]:{match:Me(z$1),order:0,parse:(vt,Ot,At)=>({children:je(Ot,vt[1],At),level:vt[2]==="="?1:2,type:r$3.heading})},[r$3.htmlBlock]:{match:Re(L),order:1,parse(vt,Ot,At){const[,Rt]=vt[3].match(re),zt=new RegExp(`^${Rt}`,"gm"),Tt=vt[3].replace(zt,""),Ct=(It=Tt,we.some(Yt=>Yt.test(It))?He:je);var It;const Dt=vt[1].toLowerCase(),kt=o$1.indexOf(Dt)!==-1,qt=(kt?Dt:vt[1]).trim(),Nt={attrs:lt(qt,vt[2]),noInnerParse:kt,tag:qt};return At.inAnchor=At.inAnchor||Dt==="a",kt?Nt.text=vt[3]:Nt.children=Ct(Ot,Tt,At),At.inAnchor=!1,Nt},render:(vt,Ot,At)=>rt(vt.tag,t$1({key:At.key},vt.attrs),vt.text||Ot(vt.children,At))},[r$3.htmlSelfClosing]:{match:Re(B$2),order:1,parse(vt){const Ot=vt[1].trim();return{attrs:lt(Ot,vt[2]||""),tag:Ot}},render:(vt,Ot,At)=>rt(vt.tag,t$1({},vt.attrs,{key:At.key}))},[r$3.htmlComment]:{match:Re(T),order:1,parse:()=>({}),render:_e},[r$3.image]:{match:Be(Ee),order:1,parse:vt=>({alt:vt[1],target:De(vt[2]),title:vt[3]}),render:(vt,Ot,At)=>rt("img",{key:At.key,alt:vt.alt||void 0,title:vt.title||void 0,src:tt.sanitizer(vt.target,"img","src")})},[r$3.link]:{match:Oe(Se),order:3,parse:(vt,Ot,At)=>({children:Ne(Ot,vt[1],At),target:De(vt[2]),title:vt[3]}),render:(vt,Ot,At)=>rt("a",{key:At.key,href:tt.sanitizer(vt.target,"a","href"),title:vt.title},Ot(vt.children,At))},[r$3.linkAngleBraceStyleDetector]:{match:Oe(U),order:0,parse:vt=>({children:[{text:vt[1],type:r$3.text}],target:vt[1],type:r$3.link})},[r$3.linkBareUrlDetector]:{match:(vt,Ot)=>Ot.inAnchor?null:Oe(R)(vt,Ot),order:0,parse:vt=>({children:[{text:vt[1],type:r$3.text}],target:vt[1],title:void 0,type:r$3.link})},[r$3.linkMailtoDetector]:{match:Oe(I$1),order:0,parse(vt){let Ot=vt[1],At=vt[1];return s$1.test(At)||(At="mailto:"+At),{children:[{text:Ot.replace("mailto:",""),type:r$3.text}],target:At,type:r$3.link}}},[r$3.orderedList]:ve(rt,1),[r$3.unorderedList]:ve(rt,2),[r$3.newlineCoalescer]:{match:Me(k$1),order:3,parse:Pe,render:()=>`
`},[r$3.paragraph]:{match:Ie,order:3,parse:Fe,render:(vt,Ot,At)=>rt("p",{key:At.key},Ot(vt.children,At))},[r$3.ref]:{match:Oe(N),order:0,parse:vt=>(dt[vt[1]]={target:vt[2],title:vt[4]},{}),render:_e},[r$3.refImage]:{match:Be(H$1),order:0,parse:vt=>({alt:vt[1]||void 0,ref:vt[2]}),render:(vt,Ot,At)=>dt[vt.ref]?rt("img",{key:At.key,alt:vt.alt,src:tt.sanitizer(dt[vt.ref].target,"img","src"),title:dt[vt.ref].title}):null},[r$3.refLink]:{match:Oe(F$1),order:0,parse:(vt,Ot,At)=>({children:Ot(vt[1],At),fallbackChildren:Ot(vt[0].replace(P,"\\$1"),At),ref:vt[2]}),render:(vt,Ot,At)=>dt[vt.ref]?rt("a",{key:At.key,href:tt.sanitizer(dt[vt.ref].target,"a","href"),title:dt[vt.ref].title},Ot(vt.children,At)):rt("span",{key:At.key},Ot(vt.fallbackChildren,At))},[r$3.table]:{match:Me(j),order:1,parse:Ae,render(vt,Ot,At){const Rt=vt;return rt("table",{key:At.key},rt("thead",null,rt("tr",null,Rt.header.map(function(zt,Tt){return rt("th",{key:Tt,style:Te(Rt,Tt)},Ot(zt,At))}))),rt("tbody",null,Rt.cells.map(function(zt,Tt){return rt("tr",{key:Tt},zt.map(function(Ct,It){return rt("td",{key:It,style:Te(Rt,It)},Ot(Ct,At))}))})))}},[r$3.text]:{match:Re(te),order:4,parse:vt=>({text:vt[0].replace(A$1,(Ot,At)=>tt.namedCodesToUnicode[At]?tt.namedCodesToUnicode[At]:Ot)}),render:vt=>vt.text},[r$3.textBolded]:{match:Be(X),order:2,parse:(vt,Ot,At)=>({children:Ot(vt[2],At)}),render:(vt,Ot,At)=>rt("strong",{key:At.key},Ot(vt.children,At))},[r$3.textEmphasized]:{match:Be(J),order:3,parse:(vt,Ot,At)=>({children:Ot(vt[2],At)}),render:(vt,Ot,At)=>rt("em",{key:At.key},Ot(vt.children,At))},[r$3.textEscaped]:{match:Be(ee),order:1,parse:vt=>({text:vt[1],type:r$3.text})},[r$3.textMarked]:{match:Be(K$5),order:3,parse:Fe,render:(vt,Ot,At)=>rt("mark",{key:At.key},Ot(vt.children,At))},[r$3.textStrikethroughed]:{match:Be(Y),order:3,parse:Fe,render:(vt,Ot,At)=>rt("del",{key:At.key},Ot(vt.children,At))}};tt.disableParsingRawHTML===!0&&(delete pt[r$3.htmlBlock],delete pt[r$3.htmlSelfClosing]);const ht=function(vt){let Ot=Object.keys(vt);function At(Rt,zt){let Tt=[],Ct="";for(;Rt;){let It=0;for(;It<Ot.length;){const Dt=Ot[It],kt=vt[Dt],qt=kt.match(Rt,zt,Ct);if(qt){const Nt=qt[0];Rt=Rt.substring(Nt.length);const Yt=kt.parse(qt,At,zt);Yt.type==null&&(Yt.type=Dt),Tt.push(Yt),Ct=Nt;break}It++}}return Tt}return Ot.sort(function(Rt,zt){let Tt=vt[Rt].order,Ct=vt[zt].order;return Tt!==Ct?Tt-Ct:Rt<zt?-1:1}),function(Rt,zt){return At(function(Tt){return Tt.replace(x$1,`
`).replace(S,"").replace(W$6,"    ")}(Rt),zt)}}(pt),mt=(xt=function(vt,Ot){return function(At,Rt,zt){const Tt=vt[At.type].render;return Ot?Ot(()=>Tt(At,Rt,zt),At,Rt,zt):Tt(At,Rt,zt)}}(pt,tt.renderRule),function vt(Ot,At={}){if(Array.isArray(Ot)){const Rt=At.key,zt=[];let Tt=!1;for(let Ct=0;Ct<Ot.length;Ct++){At.key=Ct;const It=vt(Ot[Ct],At),Dt=typeof It=="string";Dt&&Tt?zt[zt.length-1]+=It:It!==null&&zt.push(It),Tt=Dt}return At.key=Rt,zt}return xt(Ot,vt,At)});var xt;const Mt=nt(et);return ut.length?rt("div",null,Mt,rt("footer",{key:"footer"},ut.map(function(vt){return rt("div",{id:tt.slugify(vt.identifier,Ce),key:vt.identifier},vt.identifier,mt(ht(vt.footnote,{inline:!0})))}))):Mt}const Markdown=et=>{let{children:tt="",options:rt}=et,nt=function(lt,ut){if(lt==null)return{};var dt,pt,ht={},mt=Object.keys(lt);for(pt=0;pt<mt.length;pt++)ut.indexOf(dt=mt[pt])>=0||(ht[dt]=lt[dt]);return ht}(et,n$2);return reactExports.cloneElement(Ze(tt,rt),nt)},FIELDS$1={FORM_HEADING:{NAME:"formHeading",TITLE:"Information Notice"},NOTICE:{NAME:"informationNoticeAccepted",TITLE:"Social Geographic History",CONTENT:"By signing below, you confirm that you understand what you have read and consent to the collection, use and disclosure of your personal information (including health and other sensitive information) as described in this form. You are free to withdraw your consent at any time by contacting us."},ALLIED_HEALTH:{NAME:"informationNoticeAlliedHealthReceiveUpdates",SUB_TITLE:"Allied health and well being services and information",CONTENT:"During or after your time as a patient of GenesisCare, you may wish to consider accessing certain allied health or wellbeing services or information. GenesisCare (or third parties with whom we work) may offer or provide access to such services or information relevant to you. If you are interested in hearing more about allied health and wellbeing initiatives, please tick here."}},INVALID="Information notice must be read and acknowledged to process registration. Please contact your local Centre with any questions on this.",BoldTitle=styled$1("div")`
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  padding: 8px 0px;
`,Content$1=styled$1("div")`
  width: 100%;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: ${et=>et.theme.palette.text.primary}
  flex: none;
  order: 2;
  flex-grow: 0;
`,InfoNoticeWrapper=styled$1("div")`
  height: 416px;
  overflow-y: auto;
  border: 2px solid ${et=>et.theme.palette.grey[300]};
  background-color: ${et=>et.theme.palette.grey[100]};
  padding: 16px;
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.5;
  ul {
    list-style-type: disc;
  }

  @media all and (max-width: ${supportedSize.tablet}px) {
    height: 300px;
    margin-top: 10px;
  }
`,InformationNoticeForm=et=>{const{updateField:tt,patient:rt,informationNoticeContent:nt,handleShowSaveExitConfirm:lt,previousPageLink:ut,isPso:dt}=et,pt=reactExports.useContext(RegistrationContext),ht=useHistory(),mt=pt==null?void 0:pt.registrationSummaryVisited,[xt,Mt]=reactExports.useState(!1);return jsxRuntimeExports.jsx(Formik,{initialValues:rt,onSubmit:vt=>{if(!vt.informationNoticeAccepted&&!dt){Mt(!0);return}Mt(!1),ht.push(registrationPath(rt==null?void 0:rt.id,mt?"summary":"basic"))},children:({submitForm:vt,setFieldValue:Ot,values:At})=>{const zt={...sharedFormContainerProps(FIELDS$1.FORM_HEADING.TITLE,1,ut),submitButtonText:mt?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,continueDisabled:xt,handleShowSaveExitConfirm:lt},Tt=(Ct,It)=>{Mt(!It),tt(Ct,It),Ot(Ct,It)};return jsxRuntimeExports.jsx(FormContainer$1,{...zt,submitForm:vt,handleValidation:Ct=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"rego-page-title",children:FIELDS$1.FORM_HEADING.TITLE}),jsxRuntimeExports.jsx(HeaderSubTitle,{children:"* = required field"}),jsxRuntimeExports.jsx(InfoNoticeWrapper,{id:"information-notice",children:jsxRuntimeExports.jsx(Markdown,{children:nt.informationNotice})}),jsxRuntimeExports.jsx(CheckboxField,{label:FIELDS$1.NOTICE.CONTENT,name:FIELDS$1.NOTICE.NAME,handleMutation:Ct=>Tt(FIELDS$1.NOTICE.NAME,Ct),field:{value:At.informationNoticeAccepted},width:"100%",invalid:!!xt,disabled:!!At.informationNoticeAccepted,marginTop:"30px",marginBottom:xt?"10px":"30px",required:!0}),xt&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:FIELDS$1.NOTICE.NAME,fieldText:INVALID,helperType:"error",fontSize:14}),jsxRuntimeExports.jsx(BoldTitle,{children:"Additional options"}),jsxRuntimeExports.jsx(Content$1,{children:"If you do not provide your consent to the following options, this will not affect our ability to provide you with healthcare. You are free to withdraw your consent at any time by contacting us."}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(Content$1,{children:FIELDS$1.ALLIED_HEALTH.SUB_TITLE}),jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(CheckboxField,{label:FIELDS$1.ALLIED_HEALTH.CONTENT,name:FIELDS$1.ALLIED_HEALTH.NAME,handleMutation:Ct=>tt(FIELDS$1.ALLIED_HEALTH.NAME,Ct),field:{value:At.informationNoticeAlliedHealthReceiveUpdates},width:"100%",marginTop:"30px",marginBottom:"30px"})})]})})}})},REGISTRATION_INFORMATION_NOTICE_QUERY=gql`
  query RegistrationInformationNotice($id: ID!) {
    patient(id: $id) {
      id
      informationNoticeAccepted
      informationNoticeAlliedHealthReceiveUpdates
    }
    informationNoticeContent {
      id
      informationNotice
    }
    user {
      id
      isPso
    }
  }
`,UPDATE_REGISTRATION=gql`
  mutation UpdatePatientInformationNotice(
    $patientId: ID!
    $informationNoticeAccepted: Boolean
    $informationNoticeAlliedHealthReceiveUpdates: Boolean
  ) {
    updatePatientInformationNotice(
      patientId: $patientId
      informationNoticeAccepted: $informationNoticeAccepted
      informationNoticeAlliedHealthReceiveUpdates: $informationNoticeAlliedHealthReceiveUpdates
    ) {
      patient {
        id
        informationNoticeContent
        informationNoticeAccepted
        informationNoticeAlliedHealthReceiveUpdates
      }
    }
  }
`,InformationNotice$1=et=>{const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION),{data:lt,error:ut}=useQuery(REGISTRATION_INFORMATION_NOTICE_QUERY,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:dt,informationNoticeContent:pt,user:ht}=lt,mt=(xt,Mt)=>{nt({variables:{patientId:rt,[xt]:Mt}})};return jsxRuntimeExports.jsx(InformationNoticeForm,{updateField:mt,patient:dt,informationNoticeContent:pt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:registrationPath(dt.id,"demographics"),isPso:ht.isPso})},FIELDS={FORM_HEADING:{NAME:"formHeading",TITLE:"Referrers"},REFERRING_FIRST_NAME:{NAME:"referringFirstName",TITLE:"First name",PLACE_HOLDER:"Enter first name",COMPONENT:TextAreaField},REFERRING_LAST_NAME:{NAME:"referringLastName",TITLE:"Last name",PLACE_HOLDER:"Enter last name",COMPONENT:TextAreaField},REFERRING_PRACTICE:{NAME:"referringPractice",TITLE:"Practice / medical centre",PLACE_HOLDER:"Enter practice / medical centre /name",COMPONENT:TextAreaField},GP_FIRST_NAME:{NAME:"gpFirstName",TITLE:"First name",PLACE_HOLDER:"Enter first name",COMPONENT:TextAreaField},GP_LAST_NAME:{NAME:"gpLastName",TITLE:"Last name",PLACE_HOLDER:"Enter last name",COMPONENT:TextAreaField},GP_PRACTICE:{NAME:"gpPractice",TITLE:"Practice / medical centre",PLACE_HOLDER:"Enter practice / medical centre /name",COMPONENT:TextAreaField},OTHER_SPECIALISTS:{NAME:"referrersOtherSpecialists",TITLE:"Names of other specialists",PLACE_HOLDER:"E.g. John Smith, Sally Thomas...",COMPONENT:TextAreaField}},REGISTRATION_REFERRER_QUERY=gql`
  query RegistrationReferrer($id: ID!) {
    patient(id: $id) {
      id
      referringFirstName
      referringLastName
      referringPractice
      referringIsInMosaiq
      gpFirstName
      gpLastName
      gpPractice
      gpIsInMosaiq
      referrersOtherSpecialists
    }
    user {
      id
      isPso
    }
    profile(id: $id) {
      id
      patientFeatures(id: $id) {
        doctorReferralLookupEnabled
      }
    }
  }
`,UPDATE_REGISTRATION_REFERRER_LOOKUP=gql`
  mutation UpdatePatientAuReferrerByLookup(
    $id: ID!
    $referrerType: String
    $referrerId: ID
    $firstName: String
    $lastName: String
    $practice: String
  ) {
    updatePatientAuReferrerByLookup(
      id: $id
      referrerType: $referrerType
      referrer: { referrerId: $referrerId, firstName: $firstName, lastName: $lastName, practice: $practice }
    ) {
      patient {
        id
        referringFirstName
        referringLastName
        referringPractice
        referringIsInMosaiq
        gpFirstName
        gpLastName
        gpPractice
        gpIsInMosaiq
        referrersOtherSpecialists
      }
    }
  }
`,UPDATE_REGISTRATION_REFERRER=gql`
  mutation UpdatePatientAuReferrer($id: ID!, $referrersOtherSpecialists: String) {
    updatePatientAuReferrer(id: $id, referrersOtherSpecialists: $referrersOtherSpecialists) {
      patient {
        id
        referringFirstName
        referringLastName
        referringPractice
        referringIsInMosaiq
        gpFirstName
        gpLastName
        gpPractice
        gpIsInMosaiq
        referrersOtherSpecialists
      }
    }
  }
`,StyledReferrerSearch=styled$1("div")`
  cursor: pointer;
  color: ${et=>et.theme.palette.text.primary};
  display: flex;
  text-decoration: underline;
  margin: 15px 0;
  align-items: center;
  .icon {
    filter: invert(38%) sepia(91%) saturate(3068%) hue-rotate(137deg) brightness(100%) contrast(101%);
    margin-right: 11px;
  }
`,disabledField=(et,tt,rt,nt)=>jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:et.TITLE,fieldName:et.NAME,labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:et.NAME,component:et.COMPONENT,alternateStyle:!0,updateMutation:lt=>tt(et.NAME,lt,nt),handleMutation:tt,placeholder:et.PLACE_HOLDER,disabled:rt})}),ReferrerForm=et=>{const{patient:tt,handleShowSaveExitConfirm:rt,previousPageLink:nt,updateField:lt,isPso:ut,enableGpLookup:dt,enableLogging:pt=!0,logTime:ht=!0}=et,mt=reactExports.useContext(RegistrationContext),xt=reactExports.useMemo(()=>ut&&dt,[ut,dt]),Mt=useHistory(),[vt,Ot]=reactExports.useState(!1),[At,Rt]=reactExports.useState(xt),[zt,Tt]=reactExports.useState(xt),[Ct,It]=reactExports.useState(ReferralType.GP),Dt=mt==null?void 0:mt.registrationSummaryVisited,kt=mt==null?void 0:mt.gpLookupUsed,qt=mt==null?void 0:mt.referrerLookupUsed,Nt=mt==null?void 0:mt.setGpLookupUsed,Yt=mt==null?void 0:mt.setReferrerLookupUsed,Kt=[{query:REGISTRATION_REFERRER_QUERY,variables:{id:tt==null?void 0:tt.id}}],Jt=reactExports.useRef(new Date().getTime()),[Qt]=useMutation(LOG_EVENT),[Bt]=useMutation(UPDATE_REGISTRATION_REFERRER_LOOKUP,{refetchQueries:Kt}),Ft=(Wt,Ut)=>{let Vt=!1;if(Wt===ReferralType.GP?Vt=!!(Ut.gpFirstName&&Ut.gpLastName&&Ut.gpPractice&&Ut.gpIsInMosaiq):Wt===ReferralType.SPECIALIST&&(Vt=!!(Ut.referringFirstName&&Ut.referringLastName&&Ut.referringPractice&&Ut.referringIsInMosaiq)),pt&&xt&&Vt){const Zt={timeOnPage:(new Date().getTime()-(Jt==null?void 0:Jt.current))/1e3,patientHzId:tt.id,referralType:Wt,eventName:`${PRACTITIONER_LOG_EVENTS.PRACTITIONER_EXACT_MATCH}`};logPage(Jt==null?void 0:Jt.current,Zt,Qt,ht)}return Vt},$t=reactExports.useMemo(()=>Ft(ReferralType.SPECIALIST,tt),[tt]),jt=reactExports.useMemo(()=>Ft(ReferralType.GP,tt),[tt]);return jsxRuntimeExports.jsx(Formik,{initialValues:tt,enableReinitialize:ut,validateOnChange:!1,onSubmit:()=>{Mt.push(registrationPath(tt==null?void 0:tt.id,Dt?"summary":"insurance"))},children:({submitForm:Wt,errors:Ut})=>{const Ht={...sharedFormContainerProps("Referrers",2,nt),submitButtonText:Dt?RETURN_TO_SUBMIT_TEXT:CONTINUE_BUTTON_TEXT,continueDisabled:Object.keys(Ut).length>0,handleShowSaveExitConfirm:rt},Gt=(Xt,er)=>{const nr=or=>or?generatePractitionerValidation(Xt,"warning"):generatePractitionerValidation(Xt,"error");return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledReferrerSearch,{"data-test-id":`${Xt}-search`,onClick:or=>{or.preventDefault(),It(Xt),Ot(!0)},children:[jsxRuntimeExports.jsx(SvgSearch,{className:"icon"}),"Referring specialist lookup"]}),(Xt===ReferralType.GP&&!jt||Xt===ReferralType.SPECIALIST&&!$t)&&!vt&&nr(er)]})},Zt=(Xt,er,nr)=>{let or={id:tt==null?void 0:tt.id};nr===ReferralType.GP?or={...or,referrerType:"generalPractitioner",firstName:tt.gpFirstName,lastName:tt.gpLastName,practice:tt.gpPractice}:nr===ReferralType.SPECIALIST&&(or={...or,referrerType:"referringSurgeon",firstName:tt.referringFirstName,lastName:tt.referringLastName,practice:tt.referringPractice});const cr={gpFirstName:"firstName",gpLastName:"lastName",gpPractice:"practice",referringFirstName:"firstName",referringLastName:"lastName",referringPractice:"practice"}[Xt]||"";cr&&(or={...or,[cr]:er}),Bt({variables:or})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalPractitionerSearch,{isOpen:vt,dismissFunction:Xt=>{Ot(!1)},userInfo:tt,referralType:Ct,makeFieldsEditable:Xt=>{Xt===ReferralType.GP&&(Rt(!1),Nt(!0)),Xt===ReferralType.SPECIALIST&&(Tt(!1),Yt(!0))},disableFields:Xt=>{Xt===ReferralType.GP&&Rt(!0),Xt===ReferralType.SPECIALIST&&Tt(!0)},enableLogging:xt&&pt}),jsxRuntimeExports.jsx(FormContainer$1,{...Ht,submitForm:Wt,children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"au-rego-page-title",children:FIELDS.FORM_HEADING.TITLE}),!ut&&jsxRuntimeExports.jsx(HeaderSubTitle,{children:"This information may be used by your care team at GenesisCare to provide correspondence updates and/or request additional information."}),jsxRuntimeExports.jsx(SectionTitle$1,{children:"Referring specialist"}),$t&&xt&&jsxRuntimeExports.jsx(SuccessInfo,{successes:["Record matched in database"]}),!ut&&jsxRuntimeExports.jsx("div",{children:"Referring specialist is the doctor who sent you to GenesisCare."}),disabledField(FIELDS.REFERRING_FIRST_NAME,Zt,zt,ReferralType.SPECIALIST),disabledField(FIELDS.REFERRING_LAST_NAME,Zt,zt,ReferralType.SPECIALIST),disabledField(FIELDS.REFERRING_PRACTICE,Zt,zt,ReferralType.SPECIALIST),xt&&Gt(ReferralType.SPECIALIST,qt),xt&&jsxRuntimeExports.jsx(StyledHorizontalLine,{}),jsxRuntimeExports.jsx("div",{style:{paddingTop:"32px"},children:jsxRuntimeExports.jsx(SectionTitle$1,{children:"GP (General practitioner)"})}),jt&&xt&&jsxRuntimeExports.jsx(SuccessInfo,{successes:["Record matched in database"]}),disabledField(FIELDS.GP_FIRST_NAME,Zt,At,ReferralType.GP),disabledField(FIELDS.GP_LAST_NAME,Zt,At,ReferralType.GP),disabledField(FIELDS.GP_PRACTICE,Zt,At,ReferralType.GP),xt&&Gt(ReferralType.GP,kt),xt&&jsxRuntimeExports.jsx(StyledHorizontalLine,{}),jsxRuntimeExports.jsxs("div",{style:{paddingTop:"32px"},children:[jsxRuntimeExports.jsx(SectionTitle$1,{children:"Other specialists"}),standardField(FIELDS.OTHER_SPECIALISTS,lt)]})]})})]})}})},Referrer=et=>{var xt;const{exitForm:tt}=et,{patientId:rt}=useParams(),[nt]=useMutation(UPDATE_REGISTRATION_REFERRER),{data:lt,error:ut}=useQuery(REGISTRATION_REFERRER_QUERY,{variables:{id:rt}});if(ut||!lt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{patient:dt,user:pt,profile:ht}=lt||{},mt=(Mt,vt)=>{nt({variables:{id:rt,[Mt]:vt}})};return jsxRuntimeExports.jsx(ReferrerForm,{updateField:mt,patient:dt,handleShowSaveExitConfirm:()=>tt(!0),previousPageLink:registrationPath(rt,"emergencyContact"),isPso:pt.isPso,enableGpLookup:(xt=ht==null?void 0:ht.patientFeatures)==null?void 0:xt.doctorReferralLookupEnabled})},FormContext$2=reactExports.createContext({}),FormContextProvider=({children:et})=>{const[tt,rt]=reactExports.useState();return jsxRuntimeExports.jsx(FormContext$2.Provider,{value:{formStatusDetails:tt,setFormStatusDetails:rt},children:et})},REVIEW_AND_SUBMIT_QUERY=gql`
  query ReviewAndSubmit($id: ID!) {
    patient(id: $id) {
      id
      patientState
      userProfile {
        id
        showHealthAssessment
        showDistressThermometer
      }
      ida
      attachmentAcknowledged
      regFormStatus
      healthAssessment {
        id
        status
      }
      firstName
      middleName
      lastName
      patientGender
      patientGenderIdentification
      patientGenderIdentificationOther
      dob
      resolvedNamePrefix
      preferredName

      primaryPhone
      secondaryPhone
      email
      workPhone
      employer

      guardian
      guardianRelationship
      emergencyContact {
        id
        contactType
        relationship
        firstName
        lastName
        mobilePhoneNumber
        homePhoneNumber
        address {
          id
          line1
          line2
          city
          postcode
          state
          country
        }
      }

      countryOfBirth
      stateOfBirth
      areaLivedMost
      currentStateHowLong
      inThisStateAllYear
      alternateAddress {
        id
        ...Address
      }
      alternateAddressPhone

      address {
        id
        ...Address
      }
      postalAddressSameAsResidential
      postalAddress {
        id
        ...Address
      }

      referringFirstName
      referringLastName
      referringPractice
      referringIsInMosaiq
      gpFirstName
      gpLastName
      gpPractice
      gpIsInMosaiq
      referrersOtherSpecialists
      referringEditedByPso
      generalPractitionerEditedByPso

      altContactProvided
      emergencyContact {
        id
        contactType
        relationship
        firstName
        lastName
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      nextOfKinContact {
        id
        contactType
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }

      healthMedicareDvaOption
      healthMedicareNumber
      healthMedicareIrn
      medicareExpiryRawYear
      medicareExpiryRawMonth
      dvaExpiryRawYear
      dvaExpiryRawMonth
      healthDvaNumber
      healthDvaType
      healthPrivateHealthInsurance
      healthPrivateHealthFundName
      healthPrivateHealthFundNumber
      healthPensionCard
      healthPensionCardType
      healthPensionCardNumber
      healthPensionCardExpiry
      healthPensionCardStart

      countryOfBirth
      interpreterRequired
      occupation
      niceHeritage
      maritalStatusValue
      niceLanguageAtHome
      ambulanceMembership
      ambulanceMembershipNumber

      informationNoticeAccepted
      informationNoticeAlliedHealthReceiveUpdates

      attachments {
        id
        filename
        url
        documentType
        isRegistrationAttachment
      }
      emrInstance
      emr
    }
    user {
      id
      isPso
    }
    profile(id: $id) {
      id
      registrationAccessType
    }
    distressThermometerInitial(patientId: $id) {
      id
      status
      version
    }
  }
  ${REGISTRATION_ADDRESS_FRAGMENT}
`,SUBMIT_FORM=gql`
  mutation PatientSubmitRegistrationUs($id: ID!) {
    patientSubmitRegistrationUs(id: $id) {
      patient {
        id
        regFormStatus
      }
    }
  }
`,SUBMIT_FORM_PSO=gql`
  mutation StaffSubmitRegistrationUs($id: ID!) {
    staffSubmitRegistrationUs(id: $id) {
      patient {
        id
        regFormStatus
      }
      pdfName
    }
  }
`,addressLabels=addressLabelForRegion();isUs();const MODAL_SUBMIT_COPY="Are you sure you want to submit the form?",MODAL_PSO_SUBMIT_COPY="Confirm and Submit",FORM_TEXT="Please ensure all your details are correct.",PSO_FORM_TEXT="By submitting this page you confirm that you have reviewed all information and ensured all details are correct. Once submitted, a PDF of this registration from will be sent to MOSAIQ. Patient information will be updated in both systems.",BASIC_FIELDS={fields:[{key:"resolvedNamePrefix",label:"Title"},{key:"firstName",label:"First name"},{key:"middleName",label:"Middle name"},{key:"lastName",label:"Last name"},{key:"preferredName",label:"Preferred Name"},{key:"patientGender",label:"What was your sex recorded at birth"},{key:"patientGenderIdentification",label:"How would you describe your gender"},{key:"patientGenderIdentificationOther",label:"Gender description specify"},{key:"dob",label:"Date of birth"}],title:"Basic Details",path:"basic"},CONTACT_FIELDS={fields:[{key:"primaryPhone",label:"Mobile"},{key:"secondaryPhone",label:"Home phone"},{key:"email",label:"Email"}],title:"Contact Details",path:"contact"},REFERRER_FIELDS={fields:[{key:"referringFirstName",label:"First name"},{key:"referringLastName",label:"Last name"},{key:"referringPractice",label:"Practice / medical centre"}],gpFields:[{key:"gpFirstName",label:"First name"},{key:"gpLastName",label:"Last name"},{key:"gpPractice",label:"Practice / medical centre"}],otherReferrer:[{key:"referrersOtherSpecialists",label:"Other specialist names"}],title:"Referrers",path:"referrers"},ADDRESS_FIELDS={fields:[{key:"address.line1",label:addressLabels.line1},{key:"address.line2",label:addressLabels.line2},{key:"address.city",label:addressLabels.city},{key:"address.state",label:addressLabels.state},{key:"address.country",label:addressLabels.country},{key:"address.postcode",label:addressLabels.postcode}],postalSameField:[{key:"postalAddressSameAsResidential",label:"Same as above (residential address)"}],postalFields:[{key:"postalAddress.line1",label:addressLabels.line1},{key:"postalAddress.line2",label:addressLabels.line2},{key:"postalAddress.city",label:addressLabels.city},{key:"postalAddress.state",label:addressLabels.state},{key:"postalAddress.country",label:addressLabels.country},{key:"postalAddress.postcode",label:addressLabels.postcode}],title:"Address",path:"address"},INSURANCE_FIELDS={title:"Health Insurance",path:"insurance",fields:[{key:"healthMedicareDvaOption",label:"Medicare and/or Department of Veterans Affairs (DVA) number"}],medicareFields:[{key:"healthMedicareNumber",label:"Medicare card number"},{key:"healthMedicareIrn",label:"IRN"},{key:"medicareExpiryRawMonth",label:"Medicare card expiry month"},{key:"medicareExpiryRawYear",label:"Medicare card expiry year"}],dvaFields:[{key:"healthDvaNumber",label:"Department of Veterans Affairs (DVA) card number"},{key:"healthDvaType",label:"DVA card type"},{key:"dvaExpiryRawMonth",label:"DVA card expiry month"},{key:"dvaExpiryRawYear",label:"DVA card expiry year"}],privateInsuranceConditional:[{key:"healthPrivateHealthInsurance",label:"Private health insurance"}],privateInsuranceFields:[{key:"healthPrivateHealthFundName",label:"Private health fund name"},{key:"healthPrivateHealthFundNumber",label:"Private health fund number"}],pensionCardConditional:[{key:"healthPensionCard",label:"Are you a concession card holder?"}],pensionCardFields:[{key:"healthPensionCardType",label:"Type of Services Australia card"},{key:"healthPensionCardNumber",label:"Concession card number"},{key:"healthPensionCardStart",label:"Concession card start date"},{key:"healthPensionCardExpiry",label:"Concession card expiry date"}]},DEMOGRAPHICS_FIELDS={title:"Demographics",path:"demographics",fields:[{key:"countryOfBirth",label:"Country of birth"},{key:"niceLanguageAtHome",label:"Language spoken at home"}],interpreterRequiredField:[{key:"interpreterRequired",label:"Do you require an interpreter?"}],remainingFields:[{key:"occupation",label:"What is your primary occupation?"},{key:"niceHeritage",label:"Are you of Aboriginal or Torres Strait Islander heritage?"},{key:"maritalStatusValue",label:"Marital status"}],vicSpecificFields:[{key:"ambulanceMembership",label:"Do you have an ambulance membership?"}],ambulanceNumberFields:[{key:"ambulanceMembershipNumber",label:"Ambulance membership number"}]},INFORMATION_NOTICE_FIELDS={fields:[{key:"informationNoticeAccepted",label:"Patient has read and acknowledged information notice"},{key:"informationNoticeAlliedHealthReceiveUpdates",label:"Patient would like to receive information about allied health and well being services and information"}],title:"Information Notice",path:"infonotice"},DOCUMENT_UPLOAD_FIELDS={title:"Document Upload",path:"upload"},EMERGENCY_CONTACT_FIELDS={fields:[{key:"emergencyContact.firstName",label:"First name"},{key:"emergencyContact.lastName",label:"Last name"},{key:"emergencyContact.relationship",label:"Relationship"},{key:"emergencyContact.mobilePhoneNumber",label:"Mobile"},{key:"emergencyContact.homePhoneNumber",label:"Home phone"},{key:"emergencyContact.email",label:"Email"},{key:"emergencyContact.authorisedForEnquiries",label:"Authorised to make enquiries for appointment times"},{key:"emergencyContact.supportPerson",label:"Identified as support person in making decisions"},{key:"altContactProvided",label:"Add another contact?"}],nextOfKinFields:[{key:"nextOfKinContact.firstName",label:"First name"},{key:"nextOfKinContact.lastName",label:"Last name"},{key:"nextOfKinContact.relationship",label:"Relationship"},{key:"nextOfKinContact.mobilePhoneNumber",label:"Mobile"},{key:"nextOfKinContact.homePhoneNumber",label:"Home phone"},{key:"nextOfKinContact.email",label:"Email"},{key:"nextOfKinContact.authorisedForEnquiries",label:"Authorised to make enquiries for appointment times"},{key:"nextOfKinContact.supportPerson",label:"Identified as support person in making decisions"}],title:"Alternate Contacts",path:"emergencyContact"},fieldsToExclude=["email","address.line2","postalAddress.line2","middleName","preferredName","postalAddressSameAsResidential","altContactProvided","emergencyContact.email","nextOfKinContact.email","patientGenderIdentificationOther"],documentTypeMapping={advance_care_directive:"Advance Care Directive",concession_card:"Cards",medication_list:"Medications list",pacemaker_card:"CIED Card",power_of_attorney:"Power of attorney",referral:"Incoming referral",other:"Other"},BannerContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
`,BannerTextContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  padding-left: 8px;
`,StyledSuccess=styled$1(SvgSuccess)`
  fill: ${et=>et.theme.palette.primary.main};
`,renderAttentionBanner=()=>jsxRuntimeExports.jsxs(BannerContainer,{children:[jsxRuntimeExports.jsx(SvgWarningTriangle,{title:"Warning_Triangle.svg"}),jsxRuntimeExports.jsx(BannerTextContainer,{children:jsxRuntimeExports.jsx("p",{children:"= requires attention. Please complete the missing information (‘-‘) if applicable before submission. "})})]}),renderCompleteBanner=()=>jsxRuntimeExports.jsxs(BannerContainer,{children:[jsxRuntimeExports.jsx(StyledSuccess,{}),jsxRuntimeExports.jsx(BannerTextContainer,{children:jsxRuntimeExports.jsx("h1",{children:"Completed & ready for review"})})]}),reviewValidationHelpers={getInvalidFields:(et,tt)=>{const rt={primaryPhone:"secondaryPhone",secondaryPhone:"primaryPhone","emergencyContact.mobilePhoneNumber":"emergencyContact.homePhoneNumber","emergencyContact.homePhoneNumber":"emergencyContact.mobilePhoneNumber","nextOfKinContact.mobilePhoneNumber":"nextOfKinContact.homePhoneNumber","nextOfKinContact.homePhoneNumber":"nextOfKinContact.mobilePhoneNumber"};return lodash.filter(et,lt=>{if(fieldsToExclude.includes(lt==null?void 0:lt.key))return!1;const ut=lodash.get(tt,lt==null?void 0:lt.key);if(Object.keys(rt).includes(lt==null?void 0:lt.key)){const dt=lodash.get(tt,rt[lt==null?void 0:lt.key]);return["",null,void 0].includes(ut||dt)}return["",null,void 0].includes(ut)})}},documentUploadInvalid=et=>{const tt=registrationAttachments(et.attachments);return tt!=null&&tt.length?tt.some(nt=>!nt.documentType)||!et.attachmentAcknowledged:!1},resolveDocumentType=et=>Object.keys(documentTypeMapping).includes(et)?documentTypeMapping[et]:et,RenderInvalidSections=({patient:et})=>{const tt=reactExports.useContext(RegistrationContext),rt=useTheme$1(),{patientId:nt}=useParams(),[lt]=useMutation(ATTACHMENT_ACKNOWLEDGED_MUTATION$1,{refetchQueries:["ReviewAndSubmit"]}),ut=reviewValidationHelpers.getInvalidFields,dt=ut(BASIC_FIELDS.fields,et),pt=ut(CONTACT_FIELDS.fields,et),ht=ut(ADDRESS_FIELDS.fields,et),mt=et.postalAddressSameAsResidential?[]:ut(ADDRESS_FIELDS.postalFields,et),xt=ht.concat(mt),Mt=ut(EMERGENCY_CONTACT_FIELDS.fields,et),vt=et.altContactProvided?ut(EMERGENCY_CONTACT_FIELDS.nextOfKinFields,et):[],Ot=Mt.concat(vt),At=ut(REFERRER_FIELDS.gpFields,et),Rt=ut(REFERRER_FIELDS.fields,et),zt=At.concat(Rt),Tt=er=>{const{referringFirstName:nr,referringLastName:or,referringPractice:rr,referringIsInMosaiq:cr,gpFirstName:ir,gpLastName:dr,gpPractice:gr,gpIsInMosaiq:br}=et;return er===ReferralType.GP?!!(ir&&dr&&gr&&br):er===ReferralType.SPECIALIST?!!(nr&&or&&rr&&cr):!1},Ct=ut(INSURANCE_FIELDS.fields,et),It=["Medicare","Medicare and DVA"].includes(et.healthMedicareDvaOption)?ut(INSURANCE_FIELDS.medicareFields,et):[],Dt=["Medicare and DVA"].includes(et.healthMedicareDvaOption)?ut(INSURANCE_FIELDS.dvaFields,et):[],kt=ut(INSURANCE_FIELDS.privateInsuranceConditional,et),qt=et!=null&&et.healthPrivateHealthInsurance?ut(INSURANCE_FIELDS.privateInsuranceFields,et):[],Nt=ut(INSURANCE_FIELDS.pensionCardConditional,et),Yt=et!=null&&et.healthPensionCard?ut(INSURANCE_FIELDS.pensionCardFields,et):[],Kt=Ct.concat(It,Dt,kt,qt,Nt,Yt),Jt=(et==null?void 0:et.niceLanguageAtHome)&&(et==null?void 0:et.niceLanguageAtHome)!=="English",Qt=ut(DEMOGRAPHICS_FIELDS.fields,et),Bt=Jt?ut(DEMOGRAPHICS_FIELDS.interpreterRequiredField,et):[],Ft=ut(DEMOGRAPHICS_FIELDS.remainingFields,et),$t=Qt.concat(Ft,Bt),jt=documentUploadInvalid(et);if(!(!!(dt.length||pt.length||xt.length||Ot.length||zt.length||!Tt(ReferralType.SPECIALIST)&&!et.referringEditedByPso||!Tt(ReferralType.GP)&&!et.generalPractitionerEditedByPso||Kt.length||$t.length)||jt))return jsxRuntimeExports.jsx(HeaderSubTitle,{"data-test-id":"no-invalid-data-heading",children:"Please review the following details and click 'Submit'."});const Ut=()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:registrationAttachments(et.attachments).map((er,nr)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("u",{children:jsxRuntimeExports.jsx("a",{style:{color:rt.palette.info.main},href:er.url,target:"_blank",rel:"noopener noreferrer",children:er.filename})}),jsxRuntimeExports.jsxs(StyledRow$4,{children:[jsxRuntimeExports.jsx(StyledField$1,{children:"Document type*"}),jsxRuntimeExports.jsx(StyledInfoField,{"data-test-id":`document-type-${nr}`,children:er.documentType?resolveDocumentType(er.documentType):jsxRuntimeExports.jsx("span",{style:{color:rt.palette.error.main},children:"This field is required"})})]}),jsxRuntimeExports.jsx("u",{})]},`upload-${nr}`))}),Vt=()=>jsxRuntimeExports.jsxs(StyledRow$4,{children:[jsxRuntimeExports.jsx(StyledField$1,{children:jsxRuntimeExports.jsx("b",{children:"Acknowledgement*"})}),jsxRuntimeExports.jsx(StyledInfoField,{children:jsxRuntimeExports.jsx(CheckboxTile,{label:"I have reviewed and acknowledge the above document type(s) are correct",error:!et.attachmentAcknowledged,id:"doc-ack-pso",checked:et.attachmentAcknowledged,onChange:()=>{lt({variables:{patientId:nt,attachmentAcknowledged:!et.attachmentAcknowledged}})},errorMessage:"This field is required"})})]}),Ht=(er,nr=!1)=>!Tt(er)&&!nr?jsxRuntimeExports.jsx(StyledRow$4,{style:{color:rt.palette.error.main},children:"Referrer not found. Click 'edit' to lookup referrer or add new record in MOSAIQ."}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),Gt=!Tt(ReferralType.SPECIALIST)&&!(et.referringEditedByPso||tt.referrerLookupUsed),Zt=!Tt(ReferralType.GP)&&!(et.generalPractitionerEditedByPso||tt.gpLookupUsed),Xt=zt.length>0||Gt||Zt;return jsxRuntimeExports.jsxs("div",{style:{marginTop:"12px"},children:[renderAttentionBanner(),jt&&jsxRuntimeExports.jsxs(StyledCard,{notvalid:!0,"data-testid":"document-upload-invalid",children:[jsxRuntimeExports.jsx(Header$3,{title:DOCUMENT_UPLOAD_FIELDS.title,path:DOCUMENT_UPLOAD_FIELDS.path,notvalid:!0}),Ut(),Vt()]}),Xt&&jsxRuntimeExports.jsxs(StyledCard,{notvalid:!0,"data-testid":"referrer-invalid",children:[jsxRuntimeExports.jsx(Header$3,{title:REFERRER_FIELDS.title,path:REFERRER_FIELDS.path,notvalid:!0}),(Rt.length>0||Gt)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledSubHeading,{"data-test-id":"referring-sub-heading",children:"Referring specialist"}),jsxRuntimeExports.jsx(RowBlock,{fields:REFERRER_FIELDS.fields,isValidationField:!Gt||Rt.length>0,patient:et,isPso:!1}),Ht(ReferralType.SPECIALIST,Rt.length>0)]}),(At.length>0||Zt)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledSubHeading,{"data-test-id":"gp-sub-heading",children:"GP (General practitioner)"}),jsxRuntimeExports.jsx(RowBlock,{fields:REFERRER_FIELDS.gpFields,isValidationField:Zt||At.length>0,patient:et,isPso:!1}),Ht(ReferralType.GP,At.length>0)]})]}),dt.length>0&&jsxRuntimeExports.jsxs(StyledCard,{notvalid:!0,"data-testid":"basic-invalid",children:[jsxRuntimeExports.jsx(Header$3,{title:BASIC_FIELDS.title,path:BASIC_FIELDS.path,notvalid:!0}),jsxRuntimeExports.jsx(RowBlock,{fields:dt,isValidationField:!0,patient:et,isPso:!1})]}),pt.length>0&&jsxRuntimeExports.jsxs(StyledCard,{notvalid:!0,"data-testid":"contact-invalid",children:[jsxRuntimeExports.jsx(Header$3,{title:CONTACT_FIELDS.title,path:CONTACT_FIELDS.path,notvalid:!0}),jsxRuntimeExports.jsx(RowBlock,{fields:pt,isValidationField:!0,patient:et,isPso:!1})]}),xt.length>0&&jsxRuntimeExports.jsxs(StyledCard,{notvalid:!0,"data-testid":"address-invalid",children:[jsxRuntimeExports.jsx(Header$3,{title:ADDRESS_FIELDS.title,path:ADDRESS_FIELDS.path,notvalid:!0}),jsxRuntimeExports.jsx(RowBlock,{fields:ht,isValidationField:!0,patient:et,isPso:!1}),mt.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledSubHeading,{"data-test-id":"separate-postal-sub-heading",children:"Postal address"}),jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:mt,isValidationField:!0,patient:et,isPso:!1})})]})]}),Ot.length>0&&jsxRuntimeExports.jsxs(StyledCard,{notvalid:!0,"data-testid":"emergency-contact-invalid",children:[jsxRuntimeExports.jsx(Header$3,{title:EMERGENCY_CONTACT_FIELDS.title,path:EMERGENCY_CONTACT_FIELDS.path,notvalid:!0}),jsxRuntimeExports.jsx(RowBlock,{fields:Mt,isValidationField:!0,patient:et,isPso:!1}),vt.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledSubHeading,{"data-test-id":"additional-contact-sub-heading",children:"Additional contact"}),jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:EMERGENCY_CONTACT_FIELDS.nextOfKinFields,isValidationField:!0,patient:et,isPso:!1})})]})]}),Kt.length>0&&jsxRuntimeExports.jsxs(StyledCard,{notvalid:!0,"data-testid":"insurance-invalid",children:[jsxRuntimeExports.jsx(Header$3,{title:INSURANCE_FIELDS.title,path:INSURANCE_FIELDS.path,notvalid:!0}),Ct.length>0&&jsxRuntimeExports.jsx(RowBlock,{fields:Ct,isValidationField:!0,patient:et,isPso:!1}),It.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledSubHeading,{"data-test-id":"medicare-sub-heading",children:"Medicare card"}),jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.medicareFields,isValidationField:!0,patient:et,isPso:!1})})]}),Dt.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledSubHeading,{"data-test-id":"dva-sub-heading",children:"DVA card"}),jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.dvaFields,isValidationField:!0,patient:et,isPso:!1})})]}),kt.length>0&&jsxRuntimeExports.jsx(RowBlock,{fields:kt,isValidationField:!0,patient:et,isPso:!1}),qt.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledRow$4,{children:[jsxRuntimeExports.jsx(StyledField$1,{children:"Private health insurance?"}),jsxRuntimeExports.jsx(StyledField$1,{children:"Yes"})]}),jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:qt,isValidationField:!0,patient:et,isPso:!1})})]}),Nt.length>0&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(RowBlock,{fields:Nt,patient:et,isPso:!1})}),Yt.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledRow$4,{children:[jsxRuntimeExports.jsx(StyledField$1,{children:"Are you a concession card holder?"}),jsxRuntimeExports.jsx(StyledField$1,{children:"Yes"})]}),jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:Yt,isValidationField:!0,patient:et,isPso:!1})})]})]}),$t.length>0&&jsxRuntimeExports.jsxs(StyledCard,{notvalid:!0,"data-testid":"demographic-invalid",children:[jsxRuntimeExports.jsx(Header$3,{title:DEMOGRAPHICS_FIELDS.title,path:DEMOGRAPHICS_FIELDS.path,notvalid:!0}),jsxRuntimeExports.jsx(RowBlock,{fields:Qt,isValidationField:!0,patient:et,isPso:!1}),Bt.length>0&&jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:Bt,isValidationField:!0,patient:et,isPso:!1})}),jsxRuntimeExports.jsx(RowBlock,{fields:Ft,isValidationField:!0,patient:et,isPso:!1})]}),jsxRuntimeExports.jsx(StyledDivider$1,{}),renderCompleteBanner()]})},StyledCard=styled$1("div")`
  padding: 16px 24px 24px 24px;
  margin-bottom: 16px;
  box-shadow: 0px 2px 8px rgba(113, 110, 106, 0.4);
  ${et=>et!=null&&et.notvalid?`border: solid 2px ${et.theme.palette.error.main}`:""};

  @media all and (max-width: ${supportedSize.tablet}px) {
    padding 8px 12px 12px 12px;
  }
`,StyledHeader$1=styled$1("div")`
  color: ${et=>et!=null&&et.notvalid?et.theme.palette.error.main:et.theme.palette.primary.main};
  font-size: 23px;
  line-height: 28px;

  @media all and (max-width: ${supportedSize.tablet}px) {
    font-size: 20px;
    align-self: center;
  }
`,StyledHeaderRow=styled$1("div")`
  line-height: 40px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 10px;

  .ro-button-style .form-fields-default-button {
    margin-right: 0;
  }
`,StyledRow$4=styled$1("div")`
  line-height: 28px;
  display: flex;
  flex-direction: row;

  @media all and (max-width: ${supportedSize.tablet}px) {
    padding-bottom: 6px;
    font-size: 0.9rem;
  }
`,StyledField$1=styled$1("label")`
  flex-grow: 1;
  width: 50%;
  padding-right: 16px;
  overflow-wrap: break-word;
`,StyledInfoField=styled$1("div")`
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  width: 50%;
  justify-content: flex-start;
  line-height: 28px;
  align-items: flex-start;
  margin-bottom: 13px;
  overflow-wrap: break-word;

  label:first-of-type {
    line-height: initial;
    flex-grow: 0;
  }

  div:first-of-type {
    margin-top: 2px;
    line-height: initial;
    flex-grow: 1;
    align-items: start;
  }
`,StyledConditionalSection=styled$1("div")`
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};

  label:first-of-type {
    padding-left: 16px;
  }
`,StyledSubHeading=styled$1("div")`
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  padding-top: 8px;
  padding-bottom: 8px;
`,StyledDivider$1=styled$1("div")`
  border-top: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-top: 24px;
  padding-top: 18px;
`,EditIcon$1=styled$1(SvgEdit)`
  fill: ${et=>et.theme.palette.primary.main};
  width: 24px;
  height: 24px;
  margin-left: 4px;
`;styled$1("div")`
  font-size: 14px;
  font-weight: 700;
  color: ${et=>et.theme.palette.text.primary};
`;const THERANOSTICS$2="THA",Header$3=et=>{const{patientId:tt}=useParams(),{title:rt,path:nt,notvalid:lt}=et,ut=useHistory();return jsxRuntimeExports.jsxs(StyledHeaderRow,{children:[jsxRuntimeExports.jsxs(StyledHeader$1,{"data-test-id":`header-${rt}`,notvalid:lt,children:[rt," ",jsxRuntimeExports.jsx("span",{children:lt&&jsxRuntimeExports.jsx(SvgWarningTriangle,{title:"Warning_Triangle.svg"})})]}),jsxRuntimeExports.jsx(Button,{"data-test-id":`edit-button-${rt}`,startIcon:jsxRuntimeExports.jsx(EditIcon$1,{}),variant:"outlined",onClick:()=>{ut.push(`/patient/${tt}/registration/${nt}`)},children:"Edit"})]})},dateFields=["dob","spouseDob","primaryInsurance.policyDob","secondaryInsurance.policyDob","healthPensionCardExpiry","healthPensionCardStart"],infoFields=["advancedDirective","powerOfAttorney","livingWill"],checkboxFields=["agreeToSurvey"],formatValue=(et,tt)=>{if(dateFields.includes(et))return tt?hooks(tt.toString()).format("DD/MM/YYYY"):tt??"-";if(typeof tt=="boolean")return tt?"Yes":tt===!1&&!checkboxFields.includes(et)?"No":"-";if(et==="healthMedicareNumber"&&MEDICARE_REGEX.test(tt.toString())){const rt=tt.toString();return rt.slice(0,4)+" "+rt.slice(4,9)+" "+rt.slice(9,10)}return(tt==null?void 0:tt.toString())||"-"},Row$1=({field:et,isValidationField:tt,patient:rt,isPso:nt})=>{const lt=lodash.get(rt,et.key),ut=jsxRuntimeExports.jsx(StyledField$1,{"data-test-id":`${et.key}`,children:formatValue(et.key,lt)});if(tt&&(lt||fieldsToExclude.includes(et.key)))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const dt=infoFields.includes(et.key)&&lt===!0&&!nt?jsxRuntimeExports.jsxs(StyledInfoField,{children:[ut,extraInformation]}):ut;return jsxRuntimeExports.jsxs(StyledRow$4,{children:[jsxRuntimeExports.jsx(StyledField$1,{children:et.label}),dt]})},RowBlock=({fields:et,isValidationField:tt,patient:rt,isPso:nt})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et.map((lt,ut)=>jsxRuntimeExports.jsx(Row$1,{field:lt,isValidationField:tt,patient:rt,isPso:nt},`${lt.label}-${ut}`))}),ReviewAndSubmit$2=et=>{var Zt,Xt,er,nr;const{formStatusDetails:tt,setFormStatusDetails:rt}=reactExports.useContext(FormContext$2),nt=reactExports.useContext(RegistrationContext),lt=useTheme$1(),{exitForm:ut}=et,[dt,pt]=reactExports.useState(!1),[ht,mt]=reactExports.useState(!1),{patientId:xt}=useParams(),{data:Mt,error:vt,loading:Ot}=useQuery(REVIEW_AND_SUBMIT_QUERY,{variables:{id:xt},fetchPolicy:"no-cache"}),At=sessionStorage.getItem("referringPage"),[Rt]=useMutation(SUBMIT_FORM,{refetchQueries:["PatientFormsDetails"],onCompleted:()=>{tt&&rt({...tt,patient:{...tt.patient,regFormStatus:FormStatus.REG_REVIEW_REQUIRED}})}}),[zt,{loading:Tt}]=useMutation(SUBMIT_FORM_PSO,{onCompleted:()=>{sessionStorage.setItem("referringPage","")}}),[Ct]=useMutation(RELEASE_LOCK_MUTATION),It=useHistory();if(Ot||!Mt||vt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(Tt)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Submitting registration form"});const{patient:Dt,user:kt}=Mt,qt=(Dt==null?void 0:Dt.healthMedicareDvaOption)||"";Object.keys(MEDICARE_DVA_FIELD_MAPPINGS).includes(qt)&&(Dt.healthMedicareDvaOption=MEDICARE_DVA_FIELD_MAPPINGS[qt]);const Nt=()=>{var rr;if(Kt){sessionStorage.setItem("referringPage",""),It.push({pathname:At||`/navigator/patient/${xt}/summary`});return}const or="/server/forms/theranostics";if(Jt&&Ft&&$t)return It.push(`/patient/${xt}/distress/${$t}/information`);if(!Jt&&Qt)return It.push(`/patient/${xt}/health/info`);if(Dt.emr===THERANOSTICS$2&&((rr=tt==null?void 0:tt.theranostics)==null?void 0:rr.status)!==FormStatus.REG_SUBMITTED)return navigateToExternalURL(or);It.push({pathname:`/patient/${xt}/home`,state:{pxRedirect:!0}})},Yt=(Dt==null?void 0:Dt.healthDvaType)||"";Object.keys(DVA_FIELD_MAPPINGS).includes(Yt)&&(Dt.healthDvaType=DVA_FIELD_MAPPINGS[Yt]);const Kt=kt==null?void 0:kt.isPso,Jt=(Dt==null?void 0:Dt.healthAssessment.status)===FormStatus.REG_SUBMITTED,Qt=(Zt=Dt==null?void 0:Dt.userProfile)==null?void 0:Zt.showHealthAssessment,Bt=(Xt=Dt==null?void 0:Dt.userProfile)==null?void 0:Xt.showDistressThermometer,Ft=((er=Mt==null?void 0:Mt.distressThermometerInitial)==null?void 0:er.status)!==FormStatus.REG_SUBMITTED&&Bt,$t=(nr=Mt==null?void 0:Mt.distressThermometerInitial)==null?void 0:nr.id,jt=()=>{Ct({variables:{accessPatientId:xt}}),Kt?zt({variables:{id:xt}}).then(()=>{Nt()}):Rt({variables:{id:xt}}).then(()=>{Nt()})},Ut={...sharedFormContainerProps("Review and Submit",10,registrationPath(xt,"upload")),continueLink:"",submitButtonText:"Submit",handleShowSaveExitConfirm:()=>ut(!0),submitForm:()=>{if(Kt&&documentUploadInvalid(Dt))return mt(!0);pt(!0)},showPTSummaryNav:Kt,patient:Kt&&Dt},Vt=(Dt==null?void 0:Dt.niceLanguageAtHome)&&(Dt==null?void 0:Dt.niceLanguageAtHome)!=="English",Ht=registrationAttachments(Dt.attachments);nt.setRegistrationSummaryVisited(!0);const Gt=()=>(Dt==null?void 0:Dt.patientGenderIdentification)!=="Different Term"?BASIC_FIELDS.fields.filter(or=>or.key!=="patientGenderIdentificationOther"):BASIC_FIELDS.fields;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormContainer$1,{...Ut,children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"au-rego-page-title",children:"Review & Submit"}),Kt&&jsxRuntimeExports.jsx(RenderInvalidSections,{patient:Dt}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:INFORMATION_NOTICE_FIELDS.title,path:INFORMATION_NOTICE_FIELDS.path}),jsxRuntimeExports.jsx(RowBlock,{fields:INFORMATION_NOTICE_FIELDS.fields,patient:Dt,isPso:Kt})]}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:BASIC_FIELDS.title,path:BASIC_FIELDS.path}),jsxRuntimeExports.jsx(RowBlock,{fields:Gt(),patient:Dt,isPso:Kt})]}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:CONTACT_FIELDS.title,path:CONTACT_FIELDS.path}),jsxRuntimeExports.jsx(RowBlock,{fields:CONTACT_FIELDS.fields,patient:Dt,isPso:Kt})]}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:ADDRESS_FIELDS.title,path:ADDRESS_FIELDS.path}),jsxRuntimeExports.jsx(StyledSubHeading,{children:"Residential Address"}),jsxRuntimeExports.jsx(RowBlock,{fields:ADDRESS_FIELDS.fields,patient:Dt,isPso:Kt}),jsxRuntimeExports.jsx(StyledDivider$1,{}),jsxRuntimeExports.jsx(StyledSubHeading,{children:"Postal Address"}),jsxRuntimeExports.jsx(RowBlock,{fields:ADDRESS_FIELDS.postalSameField,patient:Dt,isPso:Kt}),(Dt==null?void 0:Dt.postalAddressSameAsResidential)===!1&&jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:ADDRESS_FIELDS.postalFields,patient:Dt,isPso:Kt})})]}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:EMERGENCY_CONTACT_FIELDS.title,path:EMERGENCY_CONTACT_FIELDS.path}),jsxRuntimeExports.jsx(RowBlock,{fields:EMERGENCY_CONTACT_FIELDS.fields,patient:Dt,isPso:Kt}),(Dt==null?void 0:Dt.altContactProvided)===!0&&jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:EMERGENCY_CONTACT_FIELDS.nextOfKinFields,patient:Dt,isPso:Kt})})]}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:REFERRER_FIELDS.title,path:REFERRER_FIELDS.path}),jsxRuntimeExports.jsx(StyledSubHeading,{children:"Referring specialist"}),jsxRuntimeExports.jsx(RowBlock,{fields:REFERRER_FIELDS.fields,patient:Dt,isPso:Kt}),jsxRuntimeExports.jsx(StyledSubHeading,{children:"GP (General practitioner)"}),jsxRuntimeExports.jsx(RowBlock,{fields:REFERRER_FIELDS.gpFields,patient:Dt,isPso:Kt}),jsxRuntimeExports.jsx(StyledSubHeading,{children:"Other specialists"}),jsxRuntimeExports.jsx(RowBlock,{fields:REFERRER_FIELDS.otherReferrer,patient:Dt,isPso:Kt})]}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:INSURANCE_FIELDS.title,path:INSURANCE_FIELDS.path}),jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.fields,patient:Dt,isPso:Kt}),["Medicare","Medicare and DVA"].includes(Dt.healthMedicareDvaOption)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledSubHeading,{children:"Medicare card"}),jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.medicareFields,patient:Dt,isPso:Kt})})]}),["Medicare and DVA"].includes(Dt.healthMedicareDvaOption)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledSubHeading,{children:"DVA card"}),jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.dvaFields,patient:Dt,isPso:Kt})})]}),jsxRuntimeExports.jsx(StyledDivider$1,{}),jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.privateInsuranceConditional,patient:Dt,isPso:Kt}),(Dt==null?void 0:Dt.healthPrivateHealthInsurance)&&jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.privateInsuranceFields,patient:Dt,isPso:Kt})}),jsxRuntimeExports.jsx(StyledDivider$1,{}),jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.pensionCardConditional,patient:Dt,isPso:Kt}),(Dt==null?void 0:Dt.healthPensionCard)&&jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:INSURANCE_FIELDS.pensionCardFields,patient:Dt,isPso:Kt})})]}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:DEMOGRAPHICS_FIELDS.title,path:DEMOGRAPHICS_FIELDS.path}),jsxRuntimeExports.jsx(RowBlock,{fields:DEMOGRAPHICS_FIELDS.fields,patient:Dt,isPso:Kt}),Vt&&jsxRuntimeExports.jsx(StyledConditionalSection,{children:jsxRuntimeExports.jsx(RowBlock,{fields:DEMOGRAPHICS_FIELDS.interpreterRequiredField,patient:Dt,isPso:Kt})}),jsxRuntimeExports.jsx(RowBlock,{fields:DEMOGRAPHICS_FIELDS.remainingFields,patient:Dt,isPso:Kt}),Dt.patientState===AustralianStates.VIC&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(RowBlock,{fields:DEMOGRAPHICS_FIELDS.vicSpecificFields,patient:Dt,isPso:Kt}),Dt.ambulanceMembership&&jsxRuntimeExports.jsx(RowBlock,{fields:DEMOGRAPHICS_FIELDS.ambulanceNumberFields,patient:Dt,isPso:Kt})]})]}),jsxRuntimeExports.jsxs(StyledCard,{children:[jsxRuntimeExports.jsx(Header$3,{title:DOCUMENT_UPLOAD_FIELDS.title,path:DOCUMENT_UPLOAD_FIELDS.path}),Ht.length?Ht.map((or,rr)=>jsxRuntimeExports.jsx("div",{className:"py-1",children:jsxRuntimeExports.jsx("a",{style:{color:lt.palette.info.main},href:or.url,target:"_blank",rel:"noopener noreferrer",children:`${rr+1}. ${or.filename}`})},`attachment-${rr}`)):jsxRuntimeExports.jsx("div",{children:"No attachments provided."})]})]}),jsxRuntimeExports.jsx(ModalSubmitForm,{isOpen:dt,setIsOpen:pt,submitFormMutation:()=>{jt()},title:Kt?MODAL_PSO_SUBMIT_COPY:MODAL_SUBMIT_COPY,submitText:"Submit",formText:Kt?PSO_FORM_TEXT:FORM_TEXT}),jsxRuntimeExports.jsxs(StandardDialog,{open:ht,title:"Required Fields Are Incomplete",onClose:mt,submitText:"Go to incomplete field",onSubmit:()=>{It.push({pathname:"upload"}),mt(!1)},children:[jsxRuntimeExports.jsx(Typography,{paddingTop:1,children:"Please answer all mandatory fields before submitting. Mandatory fields are marked with an asterisk*."}),Ht.some(or=>!or.documentType)&&jsxRuntimeExports.jsx(ErrorInfo,{errors:["docType"],errorMessages:{docType:"Document type"}}),!Dt.attachmentAcknowledged&&jsxRuntimeExports.jsx(ErrorInfo,{errors:["documentAck"],errorMessages:{documentAck:"Document acknowledgement"}})]})]})},categoryFieldNames$1={basicDetails:{categoryLabel:"Basic Details",name_prefix:{label:"Title"},first_name:{label:"First name"},middle_name:{label:"Middle name"},last_name:{label:"Last name"},preferred_name:{label:"Preferred name"},gender:{label:"What was your sex recorded at birth"},gender_identification:{label:"How would you describe your gender"},gender_identification_other:{label:"Gender description specify"}},contactDetails:{categoryLabel:"Contact Details",primary_phone:{label:"Mobile phone number"},secondary_phone:{label:"Landline phone number"},email:{label:"Email"}},emergencyContact:{categoryLabel:" Emergency contact",first_name:{label:"First name"},last_name:{label:"Last name"},relationship:{label:"Relationship"},mobile_phone_number:{label:"Mobile phone number"},home_phone_number:{label:"Landline phone number"},email:{label:"Email"}},healthMedicareDva:{categoryLabel:"Medicare / heath fund",health_medicare_number:{label:"Medicare number"},health_medicare_irn:{label:"Medicare IRN"},health_medicare_expiry:{label:"Medicare expiry",formatAs:"dayMonth"},health_dva_number:{label:"DVA number"},health_dva_expiry:{label:"Health DVA expiry",formatAs:"dayMonth"}},demographics:{categoryLabel:"Demographics",country_of_birth:{label:"Country of birth"},occupation:{label:"Occupation"},heritage:{label:"Are you of Aboriginal or Torres Strait Islander"},marital_status:{label:"Marital status"}}},REGISTRATION_CONFLICTS_CONTENT$1={HEADER:"Resolve data conflicts",SUBHEADER:"An update made in Mosaiq has resulted in the following data conflicts. Please confirm which information is correct before submitting this registration form.",NO_DATA_CONFLICTS_MESSAGE:"There are currently no data conflicts to resolve, please continue reviewing the Registration form for submission.",RADIO:{LABEL:{NOT_PROVIDED:"Not Provided"},VALUE:{HZ:"HZ",MQ:"MQ"}},BUTTON:{RESOLVE_CONFLICTS:"Resolve conflicts"}},preNestedCategory$1=["emergencyContact"],mapFieldToCategory$1=(et,tt)=>{const rt=Object.keys(tt).filter(lt=>!preNestedCategory$1.includes(lt)),nt=Object.entries(et).reduce((lt,ut)=>{const[dt,pt]=ut;return rt.forEach(ht=>{tt[ht].hasOwnProperty(dt)&&(lt[ht]?lt[ht][dt]=pt:lt[ht]={[dt]:pt})}),lt},{});if(et.hasOwnProperty("emergencyContact")){const{emergencyContact:lt}=et;return{...nt,emergencyContact:lt}}else return nt},displayLabelAs$1=({value:et,refData:tt,formatAs:rt})=>{const{NOT_PROVIDED:nt}=REGISTRATION_CONFLICTS_CONTENT$1.RADIO.LABEL;return et===""?nt:tt?resolveListDataValue(et.toString(),tt):rt&&rt==="dayMonth"?hooks(et).format("MM / YYYY"):et},RegistrationConflicts$1=({patient:et,refData:tt,updatePatient:rt,resolvePatientConflicts:nt,handleShowSaveExitConfirm:lt})=>{const{HEADER:ut,SUBHEADER:dt,RADIO:pt}=REGISTRATION_CONFLICTS_CONTENT$1,ht=JSON.parse(et.diffMqData),mt=mapFieldToCategory$1(ht,categoryFieldNames$1),[xt,Mt]=reactExports.useState(mt),vt={name_prefix:tt.titleRefData,relationship:tt.relationshipsRefData,heritage:tt.heritageRefData,gender:tt.genderRefData,genderIdentificationRefData:tt.genderIdentificationRefData,marital_status:tt.maritalStatusRefData,country_of_birth:tt.countryOfBirthRefData,language_spoken:tt.languageSpokenRefData,medicare_type:tt.medicareTypeRefData,aus_state:tt.ausStateRefData},Ot=async(Ct,It,Dt,kt)=>{let qt=It,Nt=kt.target.value;const Yt={[Ct]:{...xt[Ct],[qt]:{...xt[Ct][qt],selectedOption:Nt}}};Mt({...xt,...Yt}),preNestedCategory$1.includes(Ct)&&(qt=Ct,Nt=JSON.stringify({...Yt[Ct]})),rt({variables:{patientId:Dt,diffSelectedKey:qt,diffSelectedValue:Nt}})},At=Object.values(xt).reduce((Ct,It)=>[...Ct,...Object.values(It)],[]).map(Ct=>Ct.selectedOption).includes(""),Rt=()=>nt(),Tt={...sharedFormContainerProps("Basic Details",void 0,""),submitForm:()=>Rt(),submitButtonText:"Resolve Conflicts",continueDisabled:At,handleShowSaveExitConfirm:lt};return jsxRuntimeExports.jsx(FormContainer$1,{...Tt,children:jsxRuntimeExports.jsxs("div",{className:"form-page form-page-registration-conflicts",children:[jsxRuntimeExports.jsx(HeaderTitle$1,{"data-test-id":"au-rego-page-title",children:ut}),jsxRuntimeExports.jsx(HeaderSubTitle,{"data-test-id":"au-rego-page-subtitle",children:dt}),jsxRuntimeExports.jsx("form",{className:"form-container",children:Object.entries(xt).map((Ct,It)=>{const[Dt,kt]=Ct,{categoryLabel:qt}=categoryFieldNames$1[Dt],Nt=Object.entries(kt).map(Kt=>Kt[1].selectedOption).includes(""),Yt=(Kt,Jt)=>({value:preNestedCategory$1.includes(Kt)?et[Kt][snakeToCamel(Jt)]:et[snakeToCamel(Jt)],refData:vt[Jt]});return jsxRuntimeExports.jsx("div",{className:"newspaper-container",children:jsxRuntimeExports.jsx(NewsCard,{title:qt,invalidContent:Nt,primaryIcon:Nt?jsxRuntimeExports.jsx(SvgErrorExclamation,{className:"primary-icon invalid-icon"}):jsxRuntimeExports.jsx(SvgSuccess,{className:"primary-icon valid-icon"}),children:Object.entries(kt).map((Kt,Jt)=>{const[Qt,Bt]=Kt,Ft=categoryFieldNames$1[Dt][Qt].label,$t=categoryFieldNames$1[Dt][Qt].formatAs,jt=displayLabelAs$1({value:Bt.mqConflictValue,refData:vt[Qt],formatAs:$t}),Wt=Yt(Dt,Qt);Wt.formatAs=$t;const Vt=[{label:displayLabelAs$1(Wt),value:pt.VALUE.HZ},{label:jt,value:pt.VALUE.MQ}];return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(RadioGroupField,{name:`${Dt}${Qt}`,fieldLabel:Ft,options:Vt,selectedOption:xt[Dt][Qt].selectedOption,handleChange:Ht=>Ot(Dt,Qt,et.id,Ht)})},`radiogroupfield-${Qt}-${Jt}`)})})},`category-card-${Dt}-${It}`)})})]})})},ModalResolveConflicts=et=>{const{dismissFunction:tt,isOpen:rt,resolveConflictsPage:nt,resolveConflictsText:lt="Resolve conflicts"}=et,[ut,dt]=reactExports.useState(!1);return jsxRuntimeExports.jsx(StandardDialog,{open:rt,onClose:tt,title:"Are you sure you want to resolve these conflicts?",submitText:lt,onSubmit:()=>{dt(!0),nt()},submitButtonProps:{disabled:ut},children:jsxRuntimeExports.jsx(Typography,{children:"Please ensure all value selections are correct before resolving. When resolved, you will then be taken to the Review & Submit section."})})},PATIENT_AND_USER_DETAILS_QUERY$d=gql`
  query PatientAndUserDetails($patientId: ID!) {
    patient(id: $patientId) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      firstName
      middleName
      lastName
      ida
      gender
      genderIdentification
      genderIdentificationOther
      dob
      namePrefix
      preferredName
      dobRawDay
      dobRawMonth
      dobRawYear
      primaryPhone
      secondaryPhone
      email
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressState
      residentialAddressPostcode
      residentialAddressCountry
      postalAddressSameAsResidential
      postalAddressLine1
      postalAddressLine2
      postalAddressCity
      postalAddressState
      postalAddressPostcode
      postalAddressCountry
      address {
        id
        formattedAddress
      }
      attachments {
        id
        filename
        documentType
        filesize
        submitted
        url
        encounterDate
      }
      emergencyContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      nextOfKinContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      altContactProvided
      referringFirstName
      referringLastName
      referringPractice
      referringIsInMosaiq
      gpFirstName
      gpLastName
      gpPractice
      gpIsInMosaiq
      referrersOtherSpecialists
      healthMedicareDvaOption
      healthMedicareNumber
      healthMedicareIrn
      healthMedicareExpiry
      healthDvaExpiry
      healthDvaNumber
      healthDvaType
      healthPrivateHealthInsurance
      healthPrivateHealthFundName
      healthPrivateHealthFundNumber
      healthPensionCard
      healthPensionCardNumber
      healthPensionCardExpiry
      countryOfBirth
      languageAtHome
      occupation
      heritage
      maritalStatus
      interpreterRequired
      informationNoticeContent
      informationNoticeAccepted
      additionalComments
      diffMqData
    }

    titleRefData: listData(category: "nameTitle") {
      id
      name
    }
    relationshipsRefData: listData(category: "relationships") {
      id
      name
    }
    heritageRefData: listData(category: "heritage") {
      id
      name
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      name
    }
    countryOfBirthRefData: listData(category: "countryOfBirth") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    genderIdentificationRefData: listData(category: "genderIdentification") {
      id
      name
    }
    languageSpokenRefData: listData(category: "languages") {
      id
      name
    }
    medicareTypeRefData: listData(category: "healthFund") {
      id
      name
      appKey
    }
    dvaTypeRefData: listData(category: "dvaCardType") {
      id
      name
      appKey
    }
    ausStateRefData: listData(category: "australiaStates") {
      id
      name
    }
    user {
      id
      isPso
    }
    profile(id: $patientId) {
      id
      patientFeatures(id: $patientId) {
        doctorReferralLookupEnabled
      }
    }
  }
`,UPDATE_REGO_DATA_CONFLICTS$1=gql`
  mutation UpdateRegistrationDataConflicts($patientId: ID!, $diffSelectedKey: String!, $diffSelectedValue: String!) {
    updateRegistrationDataConflicts(
      patientId: $patientId
      diffSelectedKey: $diffSelectedKey
      diffSelectedValue: $diffSelectedValue
    ) {
      patient {
        id
        diffMqData
      }
    }
  }
`,RESOLVE_PATIENT_CONFLICTS$1=gql`
  mutation resolveDataConflicts($patientId: ID!) {
    resolvePatientConflicts(patientId: $patientId) {
      patient {
        id
        diffMqData
      }
    }
  }
`,RegistrationConflictsApollo$1=({exitForm:et})=>{const[tt,rt]=reactExports.useState(""),[nt,lt]=reactExports.useState(!1),ut=useHistory(),{patientId:dt}=useParams(),{setError:pt}=useErrorModalContext(),{data:ht,loading:mt,error:xt}=useQuery(PATIENT_AND_USER_DETAILS_QUERY$d,{variables:{patientId:dt},fetchPolicy:"no-cache",onCompleted:At=>At}),Mt=reactExports.useMemo(()=>(ht==null?void 0:ht.patient)??{},[ht]);reactExports.useEffect(()=>{if(xt)return pt()},[xt]);const[vt]=useMutation(UPDATE_REGO_DATA_CONFLICTS$1,{onError:()=>{rt(SavingStatus.FAILED)},onCompleted:At=>(rt(SavingStatus.SAVED),At)}),[Ot]=useMutation(RESOLVE_PATIENT_CONFLICTS$1,{onCompleted:()=>{ut.push({pathname:`/patient/${dt}/registration/summary`})}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[mt&&jsxRuntimeExports.jsx(LoadingSpinner,{}),ht&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:Mt.id}),jsxRuntimeExports.jsx(RegistrationConflicts$1,{patient:Mt,handleShowSaveExitConfirm:()=>et(!0),refData:{titleRefData:ht.titleRefData,relationshipsRefData:ht.relationshipsRefData,heritageRefData:ht.heritageRefData,genderRefData:ht.genderRefData,genderIdentificationRefData:ht.genderIdentificationData,maritalStatusRefData:ht.maritalStatusRefData,countryOfBirthRefData:ht.countryOfBirthRefData,languageSpokenRefData:ht.languageSpokenRefData,medicareTypeRefData:ht.medicareTypeRefData,ausStateRefData:ht.ausStateRefData},updatePatient:vt,resolvePatientConflicts:()=>lt(!0),saveStatus:tt})]}),jsxRuntimeExports.jsx(ModalResolveConflicts,{isOpen:nt,dismissFunction:()=>lt(!1),resolveConflictsPage:()=>Ot({variables:{patientId:Mt.id}})})]})},StyledContainer$2=styled$1("div")`
  height: calc(100vh - 54px);
`,StyledRow$3=styled$1("div")`
  height: 100%;
  flex-wrap: nowrap;
  display: flex;
  flex-direction: row;
`,StyledWrapper=styled$1("div")`
  display: flex;
  flex-direction: column;
  height: 100%;

  div:nth-child(1) {
    flex-shrink: 0;
  }
`,StyledLink$4=styled$1(Link$2)`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 0px 0 16px;
  text-decoration: none;
  height: 45px;

  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
`,StyledDivider=styled$1("div")`
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-left: 16px;
  margin-right: 16px;
  padding-top: 16px;
`,StyledStepperHeading=styled$1("div")`
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  margin: 16px 0 0 16px;
  color: ${et=>et.theme.palette.grey[600]};
`,StyledSideNavContainer=styled$1(et=>jsxRuntimeExports.jsx(SideNavContainer,{...et}))`
  @media all and (max-width: ${supportedSize.transition}px) {
    display: ${et=>et!=null&&et.$isvisible?"auto":"none"};
  }
`,getCurrentPage=()=>window.location.href.split("/").pop()||"",conflictsStepper={key:"co",header:"Conflicts",short:"CO",steps:[{idx:-1,text:"Conflicts",page:"conflicts"}]},RegistrationAU=()=>{var $t,jt,Wt;const{path:et}=useRouteMatch(),{patientId:tt}=useParams(),rt=useHistory(),nt=DeviceUtilities$1.isMobileDevice(),[lt,ut]=reactExports.useState(!1),[dt,pt]=reactExports.useState(!1),[ht,mt]=reactExports.useState(!1),[xt,Mt]=reactExports.useState(!1),[vt]=useMutation(UPDATE_LAST_VISITED_SECTION$1),[Ot]=useMutation(RELEASE_LOCK_MUTATION),{data:At,error:Rt}=useQuery(LAST_VISITED_QUERY,{variables:{id:tt},fetchPolicy:"network-only",onCompleted:Ut=>{const{patient:Vt,user:Ht}=Ut;Mt(Ht==null?void 0:Ht.isPso);const Gt=getCurrentPage();Vt.lock.readOnly&&Vt.lock.lockedBy!==Ht.id.toString()?mt(!0):(Ht==null?void 0:Ht.isPso)===!1&&Gt!=="infonotice"&&(Vt==null?void 0:Vt.lastVisitedSection)===getCurrentPage()&&(Vt!=null&&Vt.regFormStatus)&&pt(!0)}});if(Rt||!At)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const zt=()=>{const Ut=generatePath(`/navigator/patient/${tt}/summary`);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledLink$4,{to:Ut,"data-testid":"back-to-summary-button",children:[jsxRuntimeExports.jsx(StyledArrow,{}),jsxRuntimeExports.jsx(StyledTitle,{children:"Back to patient summary"})]}),jsxRuntimeExports.jsx(StyledDivider,{})]})},Tt=()=>{vt({variables:{id:tt,lastVisitedSection:""}}),rt.push({pathname:registrationPath(tt,"infonotice"),state:{pxRedirect:!0}})},Ct=()=>{vt({variables:{id:tt,lastVisitedSection:""}}),pt(!1)},It=()=>{const Ut=xt?generatePath(Dt||PSO_SUMMARY_LINK,{patientId:tt}):`/patient/${tt}/home`;rt.push({pathname:Ut})},Dt=sessionStorage.getItem("referringPage"),kt=async()=>{await vt({variables:{id:tt,lastVisitedSection:getCurrentPage()}}),Ot({variables:{accessPatientId:tt}}),rt.push({pathname:`/patient/${tt}/home`,state:{pxRedirect:!0}})},Nt=xt?()=>{Ot({variables:{accessPatientId:tt}});const Ut=generatePath(Dt||PSO_SUMMARY_LINK,{patientId:tt});rt.push({pathname:Ut})}:()=>ut(!0),Yt=!window.location.href.includes("summary")&&!nt,Kt=($t=At==null?void 0:At.patient)==null?void 0:$t.diffMqData,Jt=Kt&&Object.entries(JSON.parse(`${Kt}`)).length!==0,Qt=xt&&Jt?[conflictsStepper].concat(auRegoSteps):auRegoSteps,Bt=`This patient record is currently in use by ${(Wt=(jt=At==null?void 0:At.patient)==null?void 0:jt.lock)==null?void 0:Wt.lockedByName}. Please try and access again later.`;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StandardDialog,{open:ht,title:"Record in use",onSubmit:It,submitText:"Exit form",children:jsxRuntimeExports.jsx(Typography,{children:xt?Bt:"Your patient record is currently in use. Please try and access again later."})}),jsxRuntimeExports.jsx(WelcomeBackModal,{returnToStart:()=>Tt(),dismissFunction:()=>Ct(),updateFirstReturn:()=>{},isOpen:dt}),jsxRuntimeExports.jsx(ModalSaveExit,{isOpen:lt,dismissFunction:()=>ut(!1),exitForm:kt,exitText:"Exit form"}),jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:At.patient.id}),jsxRuntimeExports.jsxs(StyledWrapper,{children:[jsxRuntimeExports.jsx(HeaderBar,{defaultHeader:!nt&&!xt,menuButton:nt,menuButtonText:nt?"Save & Exit":""}),jsxRuntimeExports.jsx(StyledContainer$2,{children:jsxRuntimeExports.jsxs(StyledRow$3,{children:[jsxRuntimeExports.jsxs(StyledSideNavContainer,{$isvisible:Yt,children:[xt&&jsxRuntimeExports.jsx(PatientEMR,{patientId:tt}),jsxRuntimeExports.jsxs(OncologyStepper,{steps:Qt,showTopDivider:!0,children:[xt&&jsxRuntimeExports.jsx(zt,{}),jsxRuntimeExports.jsx(StyledStepperHeading,{children:"REGISTRATION FORM"})]})]}),jsxRuntimeExports.jsx(MiddleContainerCol$1,{children:jsxRuntimeExports.jsxs(Switch$2,{children:[xt&&Jt&&jsxRuntimeExports.jsx(Route,{path:`${et}/conflicts`,children:jsxRuntimeExports.jsx(RegistrationConflictsApollo$1,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/basic`,children:jsxRuntimeExports.jsx(Basic,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/contact`,children:jsxRuntimeExports.jsx(ContactDetails,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/address`,children:jsxRuntimeExports.jsx(Address,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/emergencyContact`,children:jsxRuntimeExports.jsx(EmergencyContact,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/referrers`,children:jsxRuntimeExports.jsx(Referrer,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/insurance`,children:jsxRuntimeExports.jsx(Insurance,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/demographics`,children:jsxRuntimeExports.jsx(Demographics,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/upload`,children:jsxRuntimeExports.jsx(DocumentUpload,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/infonotice`,children:jsxRuntimeExports.jsx(InformationNotice$1,{exitForm:Nt})}),jsxRuntimeExports.jsx(Route,{path:`${et}/summary`,children:jsxRuntimeExports.jsx(ReviewAndSubmit$2,{exitForm:Nt})})]})}),jsxRuntimeExports.jsx(RightContainerCol,{})]})})]})]})},apolloComponent$h=withApollo(withRouter(RegistrationAU)),logger$v=new Logger("RegistrationComplete"),HeaderImage=styled$1("div")`
  width: 100%;
  height: 420px;
  background-image: url(${beach});
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
`,StyledSection=styled$1("section")`
  width: 100%;
  overflow-y: auto;
  height: calc(100% - 76px - 32px);
`,StyledMain=styled$1("main")`
  margin: 48px 56px;
`,Paragraph=styled$1("p")`
  font-size: 18px;
  line-height: 28px;
`,Headline=styled$1("h1")`
  font-size: 29px;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 16px;
`,Bulletpoints=styled$1("ul")`
  list-style: disc;
  font-size: 18px;
  line-height: 28px;
`,StyledFooter=styled$1("footer")`
  height: 76px;
  background-color: white;
  border-top: 1px solid ${et=>et.theme.palette.grey[300]};
`,RegistrationComplete=()=>{const et=useApolloClient(),[tt]=useMutation(LOGOUT_MUTATION$4);return reactExports.useEffect(()=>{et.clearStore().then(()=>{et.writeQuery({query:gql`
          query {
            contentShown
          }
        `,data:{contentShown:!1}})}),tt({variables:{}}).then(({data:rt})=>{if(rt.logout.errors!==null){logger$v.error("logout",["Unable to logout",rt.logout.errors]);return}})},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HeaderBar,{defaultHeader:!0}),jsxRuntimeExports.jsxs(StyledSection,{children:[jsxRuntimeExports.jsx(HeaderImage,{}),jsxRuntimeExports.jsxs(StyledMain,{children:[jsxRuntimeExports.jsx(Headline,{"data-testid":"registration-header",children:"Registration Complete!"}),jsxRuntimeExports.jsx(Paragraph,{children:"We have received your registration. If applicable, please bring a copy of the documents below with you to your appointment."}),jsxRuntimeExports.jsxs(Bulletpoints,{children:[jsxRuntimeExports.jsx("li",{children:"Advanced Directive"}),jsxRuntimeExports.jsx("li",{children:"Medical Durable Power of Attorney"}),jsxRuntimeExports.jsx("li",{children:"Living Will"})]}),jsxRuntimeExports.jsxs(Paragraph,{"data-testid":"registration-questions",children:["If you have any questions before your appointment, please contact your local centre."," "]})]})]}),jsxRuntimeExports.jsx(StyledFooter,{})]})},REACT_APP_REGION$e=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,FORM_HEADING$6="Contact details",region$9=REACT_APP_REGION$e,FIELD_INFO$3={PRIMARY:{TITLE:"Mobile phone number",PLACEHOLDER:"Enter mobile",KEY:"primaryPhone",NAME:"primaryPhone",EMPTY:"Please enter your home or mobile phone number.",INVALID:"Please enter a valid mobile number."},SECONDARY:{TITLE:"Landline phone number",PLACEHOLDER:"Please include area code e.g. 02 8236 3300",KEY:"secondaryPhone",NAME:"secondaryPhone",EMPTY:"Please enter your home or mobile phone number.",INVALID:"Please enter a valid home number."},EMAIL:{TITLE:"Email",PLACEHOLDER:"Enter your email address",KEY:"email",NAME:"email",INVALID:"Please enter a valid email address."},PREFERENCES:{TITLE:"Contact preferences",PLACEHOLDER:"",NAME:"contactPreferences",KEY:"contactPreferences"}};region$9===Region.UK&&(FIELD_INFO$3.PRIMARY.TITLE="Mobile phone number",FIELD_INFO$3.PRIMARY.PLACEHOLDER="At least one phone number is required",FIELD_INFO$3.SECONDARY.TITLE="Home phone number",FIELD_INFO$3.SECONDARY.PLACEHOLDER="At least one phone number is required",FIELD_INFO$3.EMAIL.PLACEHOLDER="",FIELD_INFO$3.PREFERENCES.TITLE="Contact preferences",FIELD_INFO$3.PREFERENCES.NAME="contactPreferences",FIELD_INFO$3.PREFERENCES.KEY="contactPreferences");class RegistrationContactDetails extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderContents",()=>{const{isPso:rt}=this.props,nt=this.state.details,lt=this.validateObject(nt),ut="contact";return jsxRuntimeExports.jsx("div",{className:"form-page",children:jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading",children:FORM_HEADING$6}),region$9===Region.AU&&!rt&&jsxRuntimeExports.jsxs("div",{className:"phone-required-message",children:[jsxRuntimeExports.jsx(SvgInfo,{})," ",jsxRuntimeExports.jsx("span",{children:"At least one phone number is required"})]}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(lt&&lt.primaryPhone),htmlFor:FIELD_INFO$3.PRIMARY.NAME,title:applyRequired({title:FIELD_INFO$3.PRIMARY.TITLE,category:ut,optionalForPSO:rt}),children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:nt.lock&&nt.lock.readOnly,inputName:FIELD_INFO$3.PRIMARY.NAME,maxLength:25,placeholder:FIELD_INFO$3.PRIMARY.PLACEHOLDER,defaultValue:nt.primaryPhone,onBlur:dt=>{this.autosave(nt,FIELD_INFO$3.PRIMARY.KEY,dt.target.value)},errors:lt&&lt.primaryPhone?lt.primaryPhone:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(lt&&lt.secondaryPhone),htmlFor:FIELD_INFO$3.SECONDARY.NAME,title:applyRequired({title:FIELD_INFO$3.SECONDARY.TITLE,category:ut,optionalForPSO:rt}),hideOptional:region$9===Region.UK,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:nt.lock&&nt.lock.readOnly,inputName:FIELD_INFO$3.SECONDARY.NAME,maxLength:25,placeholder:FIELD_INFO$3.SECONDARY.PLACEHOLDER,defaultValue:nt.secondaryPhone,onBlur:dt=>{this.autosave(nt,FIELD_INFO$3.SECONDARY.KEY,dt.target.value)},errors:lt&&lt.secondaryPhone?lt.secondaryPhone:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(lt&&lt.email),htmlFor:FIELD_INFO$3.EMAIL.NAME,title:FIELD_INFO$3.EMAIL.TITLE,hideOptional:!0,required:!1,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:nt.lock&&nt.lock.readOnly,inputName:FIELD_INFO$3.EMAIL.NAME,maxLength:40,placeholder:FIELD_INFO$3.EMAIL.PLACEHOLDER,defaultValue:nt.email,onBlur:dt=>{this.autosave(nt,FIELD_INFO$3.EMAIL.KEY,dt.target.value)},errors:lt&&lt.email?lt.email:void 0})}),region$9===Region.UK&&jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!0,htmlFor:FIELD_INFO$3.PREFERENCES.NAME,title:FIELD_INFO$3.PREFERENCES.TITLE,hideOptional:region$9===Region.UK,required:!1,children:jsxRuntimeExports.jsxs("div",{className:"comms-checkbox-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"comms-checkbox",children:jsxRuntimeExports.jsx(Checkbox,{disabled:nt.lock&&nt.lock.readOnly,inputName:"preferenceMessage",inputLabel:"Voicemail",onChange:dt=>{const pt=dt;this.autosave(nt,"preferenceMessage",pt,"Boolean")},isChecked:!!nt.preferenceMessage})}),jsxRuntimeExports.jsx("div",{className:"comms-checkbox",children:jsxRuntimeExports.jsx(Checkbox,{disabled:nt.lock&&nt.lock.readOnly,inputName:"preferenceText",inputLabel:"Text (SMS)",onChange:dt=>{const pt=dt;this.autosave(nt,"preferenceText",pt,"Boolean")},isChecked:!!nt.preferenceText})}),jsxRuntimeExports.jsx("div",{className:"comms-checkbox",children:jsxRuntimeExports.jsx(Checkbox,{disabled:!nt.email||lt&&lt.email&&lt.email.length>0,inputName:"preferenceEmail",inputLabel:"Email",onChange:dt=>{const pt=dt;this.autosave(nt,"preferenceEmail",pt,"Boolean")},isChecked:!!nt.preferenceEmail})})]})}),jsxRuntimeExports.jsx("br",{})]})})});Nr(this,"autosave",async(rt,nt,lt,ut="String")=>{const dt=lodash.cloneDeep(rt);dt[nt]=lt,this.setState({details:dt});const{autosave:pt}=this.props;await pt(dt,nt,lt,ut).then(()=>{const{viewed:ht}=this.state;ht.add(nt),this.setState({viewed:ht})})});Nr(this,"validateForm",()=>{const rt=Object.keys(FIELD_INFO$3).map(lt=>FIELD_INFO$3[lt].KEY),nt=new Set(rt);this.setState({viewed:nt})});Nr(this,"validateObject",rt=>{const nt={primaryPhone:{presence:{allowEmpty:!!rt.secondaryPhone,message:FIELD_INFO$3.PRIMARY.EMPTY},format:{pattern:region$9===Region.UK?UK_PHONE_REGEX:PHONE_NUMBER_REGEX,message:FIELD_INFO$3.PRIMARY.INVALID}},secondaryPhone:{presence:{allowEmpty:!!rt.primaryPhone,message:FIELD_INFO$3.SECONDARY.EMPTY},format:{pattern:region$9===Region.UK?UK_PHONE_REGEX:PHONE_NUMBER_REGEX,message:FIELD_INFO$3.SECONDARY.INVALID}},email:{presence:{allowEmpty:!0},format:{pattern:EMAIL_REGEX,message:FIELD_INFO$3.EMAIL.INVALID}}};rt.primaryPhone===""?nt.primaryPhone.format.pattern=".*":rt.secondaryPhone===""&&(nt.secondaryPhone.format.pattern=".*");const lt={};for(const dt of this.state.viewed.keys())lt[dt]=nt[dt];return validate(rt,lt,{fullMessages:!1})});this.state={viewed:new Set,details:rt.details}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad&&rt.details.lock&&!rt.details.lock.readOnly){const lt=Object.keys(FIELD_INFO$3).map(dt=>FIELD_INFO$3[dt].KEY);return{viewed:new Set(lt),details:rt.details}}return nt}render(){const{details:rt,genderRefData:nt,isPso:lt,saveStatus:ut}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:rt,genderRefData:nt,isPso:lt,saveStatus:ut,children:this.renderContents()})}}const PATIENT_AND_USER_DETAILS_QUERY$c=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      address {
        id
        formattedAddress
        ukFormattedAddress
      }
      lastVisitedSection
      regFormStatus
      firstName
      lastName
      ida
      idb
      gender
      isProd
      dob
      primaryPhone
      secondaryPhone
      email
      preferenceText
      preferenceEmail
      preferenceMessage
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`;class RegistrationContactDetailsApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"autosave",async(rt,nt,lt,ut="String")=>{const dt=this.props.client,pt={key:nt,value:lt,type:ut},ht=await this.getApolloCache();let mt=ht.currentPendingSaveCount+1,xt=ht.saveErrorCount;return dt&&dt.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:mt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)}),dt==null?void 0:dt.mutate(this.props.getPatientMutation(rt,[pt])).then(Mt=>{Mt.data.updatePatient.errors&&xt++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),xt++}).finally(async()=>{mt=(await this.getApolloCache()).currentPendingSaveCount-1,dt&&dt.writeQuery({query:gql`
                query {
                  pendingSaveCount
                  saveErrorCount
                }
              `,data:{pendingSaveCount:mt,saveErrorCount:xt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=[...lt.registrationPagesViewed];nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.CONTACT)}),nt.includes(BASE_REGISTRATION_PAGES.CONTACT)||(nt=[...nt,BASE_REGISTRATION_PAGES.CONTACT]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$c,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,data:dt,error:pt})=>ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt&&dt.patient?(this.userIsPSO=dt.user.isPso||!1,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(RegistrationContactDetails,{details:dt.patient,genderRefData:dt.genderRefData,autosave:this.autosave,saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO})]})):pt?jsxRuntimeExports.jsx("div",{children:`Error loading: ${pt}`}):jsxRuntimeExports.jsx("div",{})})}}const apolloComponent$g=withApollo(RegistrationContactDetailsApollo),component$b=withRegistrationForm(apolloComponent$g),FIELD_INFO$2={INFORMATION_NOTICE:{NAME:"infoNotice"},I_AGREE:{KEY:"informationNoticeAccepted",MISSING_INPUT_ERROR:"Information notice must be read and acknowledged to process registration",NAME:"agreeToInfoNotice",TITLE:"I confirm that I understand what I have read and consent to the collection, use and disclosure of my personal information (including health and other sensitive information) for the purposes described in this notice.",WITHDRAWAL:"You are free to withdraw, alter or restrict your consent at any time by contacting us."},ALLIED_HEALTH:{KEY:"informationNoticeAlliedHealthReceiveUpdates",NAME:"alliedHealthRecieveUpdates",INSTRUCTION_TEXT:"Allied health and well being services and information",TITLE:"During or after your time as a patient of GenesisCare, you may wish to consider accessing certain allied health or wellbeing services or information. GenesisCare (or third parties with whom we work) may offer or provide access to such services or information relevant to you. If you are interested in hearing more about allied health and wellbeing initiatives, please tick here."}},VALIDATION_FIELDS$1=[FIELD_INFO$2.I_AGREE.KEY],FORM_HEADING$5="Information notice",OPTIONAL_TEXT="(optional)";class RegistrationInformationNotice extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderAlliedHealthServiceInfoCheckbox",rt=>{var nt;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"gc-foundation-container",children:[jsxRuntimeExports.jsx("div",{id:"allied-health-instruction",children:FIELD_INFO$2.ALLIED_HEALTH.INSTRUCTION_TEXT+" "+OPTIONAL_TEXT}),jsxRuntimeExports.jsx(Checkbox,{disabled:(nt=rt.lock)==null?void 0:nt.readOnly,inputName:FIELD_INFO$2.ALLIED_HEALTH.NAME,inputLabel:FIELD_INFO$2.ALLIED_HEALTH.TITLE,isChecked:!!(rt!=null&&rt.informationNoticeAlliedHealthReceiveUpdates),onChange:lt=>{this.autosave(rt,FIELD_INFO$2.ALLIED_HEALTH.KEY,lt,"Boolean")}})]})})});Nr(this,"renderContents",()=>{const{information:rt,informationNoticeContent:nt}=this.props,lt=this.validateObject(rt);return jsxRuntimeExports.jsx("div",{className:"form-page form-registration-information-notice",children:jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading",children:FORM_HEADING$5}),jsxRuntimeExports.jsx("div",{id:FIELD_INFO$2.INFORMATION_NOTICE.NAME,children:jsxRuntimeExports.jsx(Markdown,{children:nt.informationNotice})}),jsxRuntimeExports.jsx(Checkbox,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_INFO$2.I_AGREE.NAME,inputLabel:FIELD_INFO$2.I_AGREE.TITLE,isChecked:rt.informationNoticeAccepted,onChange:ut=>{this.autosave(rt,FIELD_INFO$2.I_AGREE.KEY,ut,"Boolean")},errors:lt&&lt.informationNoticeAccepted?lt.informationNoticeAccepted:void 0}),jsxRuntimeExports.jsx("div",{className:"consent-withdrawal-text",children:FIELD_INFO$2.I_AGREE.WITHDRAWAL}),this.renderAlliedHealthServiceInfoCheckbox(rt)]})})});Nr(this,"autosave",async(rt,nt,lt,ut="String")=>{const{autosave:dt}=this.props;await dt(rt,nt,lt,ut).then(()=>{const pt=this.state.viewed.add(nt);this.setState({viewed:pt})})});Nr(this,"validateObject",rt=>{const nt={informationNoticeAccepted:{inclusion:{within:[!0],message:FIELD_INFO$2.I_AGREE.MISSING_INPUT_ERROR}}},lt={};for(const dt of this.state.viewed.keys())lt[dt]=nt[dt];return validate(rt,lt,{fullMessages:!1})});this.state={viewed:new Set}}static getDerivedStateFromProps(rt,nt){return rt.validateOnLoad&&rt.information.lock&&!rt.information.lock.readOnly?{viewed:new Set(VALIDATION_FIELDS$1)}:nt}render(){const{information:rt,genderRefData:nt,isPso:lt,saveStatus:ut}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:rt,genderRefData:nt,isPso:lt,saveStatus:ut,children:this.renderContents()})}validateForm(){const rt=new Set(VALIDATION_FIELDS$1);this.setState({viewed:rt})}}const PATIENT_AND_USER_DETAILS_QUERY$b=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      address {
        id
        formattedAddress
      }
      firstName
      lastName
      ida
      gender
      dob
      informationNoticeContent
      informationNoticeAccepted
      informationNoticeAlliedHealthReceiveUpdates
      lastVisitedSection
      regFormStatus
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    user {
      id
      isPso
    }
    informationNoticeContent {
      id
      informationNotice
    }
  }
`;class RegistrationInformationNoticeApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"autosave",async(rt,nt,lt,ut)=>{const dt=this.props.client,pt={key:nt,value:lt,type:ut},ht=await this.getApolloCache();let mt=ht.currentPendingSaveCount+1,xt=ht.saveErrorCount;return dt&&dt.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:mt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)}),dt==null?void 0:dt.mutate(this.props.getPatientMutation(rt,[pt])).then(Mt=>{Mt.data.updatePatient.errors&&xt++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),xt++}).finally(async()=>{mt=(await this.getApolloCache()).currentPendingSaveCount-1,dt&&dt.writeQuery({query:gql`
                query {
                  pendingSaveCount
                  saveErrorCount
                }
              `,data:{pendingSaveCount:mt,saveErrorCount:xt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=[...lt.registrationPagesViewed];nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.INFO_NOTICE)}),nt.includes(BASE_REGISTRATION_PAGES.INFO_NOTICE)||(nt=[...nt,BASE_REGISTRATION_PAGES.INFO_NOTICE]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$b,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,data:dt,error:pt})=>ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt&&dt.patient&&dt.informationNoticeContent?(this.userIsPSO=dt.user.isPso||!1,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(RegistrationInformationNotice,{information:dt.patient,informationNoticeContent:dt.informationNoticeContent,genderRefData:dt.genderRefData,autosave:this.autosave,saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO})]})):pt?jsxRuntimeExports.jsx("div",{children:`Error loading: ${pt}`}):jsxRuntimeExports.jsx("div",{})})}}const apolloComponent$f=withApollo(RegistrationInformationNoticeApollo),component$a=withRegistrationForm(apolloComponent$f),FORM_HEADING$4="Insurance",FIELD_INFO$1={PAYOR:{NAME:"payor",TITLE:"Insurance company",KEY:"payor",IS_MANDATORY:!1,MISSING_INPUT_ERROR:"Insurance company is mandatory if you entered a policy number",INVALID_INPUT_ERROR:"Please select an insurance company",MAX_FIELD_LENGTH:100,PLACEHOLDER:"Start typing to search"},RELATIONSHIP:{NAME:"coverageRelationship",TITLE:"Patient relationship to policy holder",KEY:"coverageRelationship",IS_MANDATORY:!1,MISSING_INPUT_ERROR:"Please select relationship",INVALID_INPUT_ERROR:"Please select relationship",PLACEHOLDER:"Please select relationship"},PRE_AUTH_NUMBER:{NAME:"preAuthNumber",TITLE:"Pre auth number",KEY:"preAuthNumber",IS_MANDATORY:!1,MISSING_INPUT_ERROR:"",MAX_FIELD_LENGTH:100,PLACEHOLDER:""},POLICY_NUMBER:{NAME:"policyNumber",TITLE:"Insurance policy number",KEY:"policyNumber",IS_MANDATORY:!1,MISSING_INPUT_ERROR:"",MAX_FIELD_LENGTH:100,PLACEHOLDER:""}},VALIDATION_FIELDS=[FIELD_INFO$1.PAYOR.KEY,FIELD_INFO$1.POLICY_NUMBER.KEY,FIELD_INFO$1.RELATIONSHIP.KEY];class RegistrationInsurance extends reactExports.Component{constructor(rt){super(rt);Nr(this,"autosave",async(rt,nt,lt,ut=!0)=>{this.props.autosave(rt,nt,lt).then(()=>{if(ut){const dt=this.state.viewed.add(nt);this.setState({viewed:dt})}})});Nr(this,"validateObject",rt=>{const{insurerRefData:nt,relationshipRefData:lt}=this.props,ut={payor:{presence:{allowEmpty:!rt.policyNumber,message:FIELD_INFO$1.PAYOR.MISSING_INPUT_ERROR},list:{listdata:nt,message:FIELD_INFO$1.PAYOR.INVALID_INPUT_ERROR}},policyNumber:{presence:{allowEmpty:!FIELD_INFO$1.POLICY_NUMBER.IS_MANDATORY,message:FIELD_INFO$1.POLICY_NUMBER.MISSING_INPUT_ERROR}},coverageRelationship:{presence:{allowEmpty:!FIELD_INFO$1.RELATIONSHIP.IS_MANDATORY,message:FIELD_INFO$1.RELATIONSHIP.MISSING_INPUT_ERROR},list:{listdata:lt,message:FIELD_INFO$1.RELATIONSHIP.INVALID_INPUT_ERROR}}},dt={};for(const ht of this.state.viewed.keys())dt[ht]=ut[ht];return validate(rt,dt,{fullMessages:!1})});this.state={viewed:new Set}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad&&rt.coverage.lock&&!rt.coverage.lock.readOnly){const lt=Object.keys(VALIDATION_FIELDS).map(dt=>VALIDATION_FIELDS[dt]);return{viewed:new Set(lt)}}return nt}render(){const{coverage:rt,genderRefData:nt,isPso:lt,saveStatus:ut}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:rt,genderRefData:nt,isPso:lt,saveStatus:ut,children:this.renderRegistrationBasicDetailsForm(rt)})}renderRegistrationBasicDetailsForm(rt){const{insurerRefData:nt,coverage:lt,relationshipRefData:ut}=this.props,dt=this.validateObject(lt);return jsxRuntimeExports.jsx("div",{className:"form-page",children:jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading basic-details",children:FORM_HEADING$4}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt.payor),htmlFor:FIELD_INFO$1.PAYOR.NAME,title:FIELD_INFO$1.PAYOR.TITLE,children:jsxRuntimeExports.jsx("div",{style:{width:"100%"},children:jsxRuntimeExports.jsx(AutoSuggestText,{disabled:lt.lock&&lt.lock.readOnly,inputName:FIELD_INFO$1.PAYOR.NAME,suggestionList:nt,maxLength:FIELD_INFO$1.PAYOR.MAX_FIELD_LENGTH,placeholder:FIELD_INFO$1.PAYOR.PLACEHOLDER,onBlur:pt=>{this.autosave(lt,FIELD_INFO$1.PAYOR.KEY,pt)},defaultValue:lt.payor,errors:dt&&dt.payor?dt.payor:void 0})})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt.coverageRelationship),htmlFor:FIELD_INFO$1.RELATIONSHIP.NAME,title:FIELD_INFO$1.RELATIONSHIP.TITLE,children:jsxRuntimeExports.jsx(DropDownField,{disabled:lt.lock&&lt.lock.readOnly,inputName:FIELD_INFO$1.RELATIONSHIP.NAME,placeholder:FIELD_INFO$1.RELATIONSHIP.PLACEHOLDER,defaultValue:lt.coverageRelationship,options:ut,onChange:pt=>this.autosave(lt,FIELD_INFO$1.RELATIONSHIP.KEY,pt.target.value),errors:dt&&dt.coverageRelationship?dt.coverageRelationship:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt.preAuthNumber),htmlFor:"preAuthNumber",title:FIELD_INFO$1.PRE_AUTH_NUMBER.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_INFO$1.PRE_AUTH_NUMBER.NAME,placeholder:FIELD_INFO$1.PRE_AUTH_NUMBER.PLACEHOLDER,defaultValue:rt.preAuthNumber,onBlur:pt=>this.autosave(rt,"preAuthNumber",pt.target.value),errors:dt&&dt.preAuthNumber?dt.preAuthNumber:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt.policyNumber),htmlFor:FIELD_INFO$1.POLICY_NUMBER.NAME,title:FIELD_INFO$1.POLICY_NUMBER.TITLE,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:lt.lock&&lt.lock.readOnly,inputName:FIELD_INFO$1.POLICY_NUMBER.NAME,maxLength:30,placeholder:FIELD_INFO$1.POLICY_NUMBER.PLACEHOLDER,defaultValue:lt.policyNumber,onBlur:pt=>this.autosave(lt,FIELD_INFO$1.POLICY_NUMBER.NAME,pt.target.value),errors:dt&&dt.policyNumber?dt.policyNumber:void 0})})]})})}}const PATIENT_AND_USER_DETAILS_QUERY$a=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      isProd
      ida
      idb
      firstName
      lastName
      dob
      address {
        id
        ukFormattedAddress
      }
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      payor
      policyNumber
      coverageRelationship
      preAuthNumber
    }
    user {
      id
      isPso
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    insurerRefData: departments {
      id
      name
    }
    relationshipRefData: listData(category: "coverageRelationship") {
      id
      name
    }
  }
`;class RegistrationInsuranceApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"autosave",async(rt,nt,lt,ut="String")=>{const dt=this.props.client,pt={key:nt,value:lt,type:ut},ht=await this.getApolloCache();let mt=ht.currentPendingSaveCount+1,xt=ht.saveErrorCount;return dt&&dt.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:mt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)}),dt==null?void 0:dt.mutate(this.props.getPatientMutation(rt,[pt])).then(Mt=>{Mt.data.updatePatient.errors&&xt++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),xt++}).finally(async()=>{mt=(await this.getApolloCache()).currentPendingSaveCount-1,dt&&dt.writeQuery({query:gql`
                query {
                  pendingSaveCount
                  saveErrorCount
                }
              `,data:{pendingSaveCount:mt,saveErrorCount:xt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=lt.registrationPagesViewed;nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.INSURANCE)}),nt.includes(BASE_REGISTRATION_PAGES.INSURANCE)||(nt=[...nt,BASE_REGISTRATION_PAGES.INSURANCE]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$a,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,data:dt,error:pt})=>{if(ut)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(dt&&dt.patient){const ht={...dt.patient};return this.userIsPSO=dt.user.isPso||!1,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(RegistrationInsurance,{autosave:this.autosave,coverage:ht,genderRefData:dt.genderRefData,insurerRefData:dt.insurerRefData,relationshipRefData:dt.relationshipRefData,saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO})]})}return pt?jsxRuntimeExports.jsx("div",{children:`Error loading: ${pt}`}):jsxRuntimeExports.jsx("div",{})}})}}const apolloComponent$e=withApollo(RegistrationInsuranceApollo),component$9=withRegistrationForm(apolloComponent$e);function bind(et,tt){return function(){return et.apply(tt,arguments)}}const{toString:toString$2}=Object.prototype,{getPrototypeOf:getPrototypeOf$1}=Object,kindOf=(et=>tt=>{const rt=toString$2.call(tt);return et[rt]||(et[rt]=rt.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=et=>(et=et.toLowerCase(),tt=>kindOf(tt)===et),typeOfTest=et=>tt=>typeof tt===et,{isArray:isArray$3}=Array,isUndefined$1=typeOfTest("undefined");function isBuffer$1(et){return et!==null&&!isUndefined$1(et)&&et.constructor!==null&&!isUndefined$1(et.constructor)&&isFunction$1(et.constructor.isBuffer)&&et.constructor.isBuffer(et)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(et){let tt;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?tt=ArrayBuffer.isView(et):tt=et&&et.buffer&&isArrayBuffer(et.buffer),tt}const isString$3=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$3=typeOfTest("number"),isObject$4=et=>et!==null&&typeof et=="object",isBoolean$2=et=>et===!0||et===!1,isPlainObject$2=et=>{if(kindOf(et)!=="object")return!1;const tt=getPrototypeOf$1(et);return(tt===null||tt===Object.prototype||Object.getPrototypeOf(tt)===null)&&!(Symbol.toStringTag in et)&&!(Symbol.iterator in et)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=et=>isObject$4(et)&&isFunction$1(et.pipe),isFormData=et=>{let tt;return et&&(typeof FormData=="function"&&et instanceof FormData||isFunction$1(et.append)&&((tt=kindOf(et))==="formdata"||tt==="object"&&isFunction$1(et.toString)&&et.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=et=>et.trim?et.trim():et.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$1(et,tt,{allOwnKeys:rt=!1}={}){if(et===null||typeof et>"u")return;let nt,lt;if(typeof et!="object"&&(et=[et]),isArray$3(et))for(nt=0,lt=et.length;nt<lt;nt++)tt.call(null,et[nt],nt,et);else{const ut=rt?Object.getOwnPropertyNames(et):Object.keys(et),dt=ut.length;let pt;for(nt=0;nt<dt;nt++)pt=ut[nt],tt.call(null,et[pt],pt,et)}}function findKey(et,tt){tt=tt.toLowerCase();const rt=Object.keys(et);let nt=rt.length,lt;for(;nt-- >0;)if(lt=rt[nt],tt===lt.toLowerCase())return lt;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global$2,isContextDefined=et=>!isUndefined$1(et)&&et!==_global;function merge$1(){const{caseless:et}=isContextDefined(this)&&this||{},tt={},rt=(nt,lt)=>{const ut=et&&findKey(tt,lt)||lt;isPlainObject$2(tt[ut])&&isPlainObject$2(nt)?tt[ut]=merge$1(tt[ut],nt):isPlainObject$2(nt)?tt[ut]=merge$1({},nt):isArray$3(nt)?tt[ut]=nt.slice():tt[ut]=nt};for(let nt=0,lt=arguments.length;nt<lt;nt++)arguments[nt]&&forEach$1(arguments[nt],rt);return tt}const extend=(et,tt,rt,{allOwnKeys:nt}={})=>(forEach$1(tt,(lt,ut)=>{rt&&isFunction$1(lt)?et[ut]=bind(lt,rt):et[ut]=lt},{allOwnKeys:nt}),et),stripBOM=et=>(et.charCodeAt(0)===65279&&(et=et.slice(1)),et),inherits$r=(et,tt,rt,nt)=>{et.prototype=Object.create(tt.prototype,nt),et.prototype.constructor=et,Object.defineProperty(et,"super",{value:tt.prototype}),rt&&Object.assign(et.prototype,rt)},toFlatObject=(et,tt,rt,nt)=>{let lt,ut,dt;const pt={};if(tt=tt||{},et==null)return tt;do{for(lt=Object.getOwnPropertyNames(et),ut=lt.length;ut-- >0;)dt=lt[ut],(!nt||nt(dt,et,tt))&&!pt[dt]&&(tt[dt]=et[dt],pt[dt]=!0);et=rt!==!1&&getPrototypeOf$1(et)}while(et&&(!rt||rt(et,tt))&&et!==Object.prototype);return tt},endsWith$1=(et,tt,rt)=>{et=String(et),(rt===void 0||rt>et.length)&&(rt=et.length),rt-=tt.length;const nt=et.indexOf(tt,rt);return nt!==-1&&nt===rt},toArray$3=et=>{if(!et)return null;if(isArray$3(et))return et;let tt=et.length;if(!isNumber$3(tt))return null;const rt=new Array(tt);for(;tt-- >0;)rt[tt]=et[tt];return rt},isTypedArray$1=(et=>tt=>et&&tt instanceof et)(typeof Uint8Array<"u"&&getPrototypeOf$1(Uint8Array)),forEachEntry=(et,tt)=>{const nt=(et&&et[Symbol.iterator]).call(et);let lt;for(;(lt=nt.next())&&!lt.done;){const ut=lt.value;tt.call(et,ut[0],ut[1])}},matchAll=(et,tt)=>{let rt;const nt=[];for(;(rt=et.exec(tt))!==null;)nt.push(rt);return nt},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=et=>et.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(rt,nt,lt){return nt.toUpperCase()+lt}),hasOwnProperty$1=(({hasOwnProperty:et})=>(tt,rt)=>et.call(tt,rt))(Object.prototype),isRegExp$1=kindOfTest("RegExp"),reduceDescriptors=(et,tt)=>{const rt=Object.getOwnPropertyDescriptors(et),nt={};forEach$1(rt,(lt,ut)=>{let dt;(dt=tt(lt,ut,et))!==!1&&(nt[ut]=dt||lt)}),Object.defineProperties(et,nt)},freezeMethods=et=>{reduceDescriptors(et,(tt,rt)=>{if(isFunction$1(et)&&["arguments","caller","callee"].indexOf(rt)!==-1)return!1;const nt=et[rt];if(isFunction$1(nt)){if(tt.enumerable=!1,"writable"in tt){tt.writable=!1;return}tt.set||(tt.set=()=>{throw Error("Can not rewrite read-only method '"+rt+"'")})}})},toObjectSet=(et,tt)=>{const rt={},nt=lt=>{lt.forEach(ut=>{rt[ut]=!0})};return isArray$3(et)?nt(et):nt(String(et).split(tt)),rt},noop$4=()=>{},toFiniteNumber=(et,tt)=>et!=null&&Number.isFinite(et=+et)?et:tt,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(et=16,tt=ALPHABET.ALPHA_DIGIT)=>{let rt="";const{length:nt}=tt;for(;et--;)rt+=tt[Math.random()*nt|0];return rt};function isSpecCompliantForm(et){return!!(et&&isFunction$1(et.append)&&et[Symbol.toStringTag]==="FormData"&&et[Symbol.iterator])}const toJSONObject=et=>{const tt=new Array(10),rt=(nt,lt)=>{if(isObject$4(nt)){if(tt.indexOf(nt)>=0)return;if(!("toJSON"in nt)){tt[lt]=nt;const ut=isArray$3(nt)?[]:{};return forEach$1(nt,(dt,pt)=>{const ht=rt(dt,lt+1);!isUndefined$1(ht)&&(ut[pt]=ht)}),tt[lt]=void 0,ut}}return nt};return rt(et,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=et=>et&&(isObject$4(et)||isFunction$1(et))&&isFunction$1(et.then)&&isFunction$1(et.catch),_setImmediate=((et,tt)=>et?setImmediate:tt?((rt,nt)=>(_global.addEventListener("message",({source:lt,data:ut})=>{lt===_global&&ut===rt&&nt.length&&nt.shift()()},!1),lt=>{nt.push(lt),_global.postMessage(rt,"*")}))(`axios@${Math.random()}`,[]):rt=>setTimeout(rt))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process$1$1<"u"&&process$1$1.nextTick||_setImmediate,utils$p={isArray:isArray$3,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$3,isNumber:isNumber$3,isBoolean:isBoolean$2,isObject:isObject$4,isPlainObject:isPlainObject$2,isReadableStream,isRequest,isResponse,isHeaders,isUndefined:isUndefined$1,isDate:isDate$1,isFile,isBlob,isRegExp:isRegExp$1,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray:isTypedArray$1,isFileList,forEach:forEach$1,merge:merge$1,extend,trim,stripBOM,inherits:inherits$r,toFlatObject,kindOf,kindOfTest,endsWith:endsWith$1,toArray:toArray$3,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop$4,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(et,tt,rt,nt,lt){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=et,this.name="AxiosError",tt&&(this.code=tt),rt&&(this.config=rt),nt&&(this.request=nt),lt&&(this.response=lt)}utils$p.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$p.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(et=>{descriptors[et]={value:et}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(et,tt,rt,nt,lt,ut)=>{const dt=Object.create(prototype$1);return utils$p.toFlatObject(et,dt,function(ht){return ht!==Error.prototype},pt=>pt!=="isAxiosError"),AxiosError.call(dt,et.message,tt,rt,nt,lt),dt.cause=et,dt.name=et.name,ut&&Object.assign(dt,ut),dt};const httpAdapter=null;function isVisitable(et){return utils$p.isPlainObject(et)||utils$p.isArray(et)}function removeBrackets(et){return utils$p.endsWith(et,"[]")?et.slice(0,-2):et}function renderKey(et,tt,rt){return et?et.concat(tt).map(function(lt,ut){return lt=removeBrackets(lt),!rt&&ut?"["+lt+"]":lt}).join(rt?".":""):tt}function isFlatArray(et){return utils$p.isArray(et)&&!et.some(isVisitable)}const predicates=utils$p.toFlatObject(utils$p,{},null,function(tt){return/^is[A-Z]/.test(tt)});function toFormData(et,tt,rt){if(!utils$p.isObject(et))throw new TypeError("target must be an object");tt=tt||new FormData,rt=utils$p.toFlatObject(rt,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Rt,zt){return!utils$p.isUndefined(zt[Rt])});const nt=rt.metaTokens,lt=rt.visitor||xt,ut=rt.dots,dt=rt.indexes,ht=(rt.Blob||typeof Blob<"u"&&Blob)&&utils$p.isSpecCompliantForm(tt);if(!utils$p.isFunction(lt))throw new TypeError("visitor must be a function");function mt(At){if(At===null)return"";if(utils$p.isDate(At))return At.toISOString();if(!ht&&utils$p.isBlob(At))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$p.isArrayBuffer(At)||utils$p.isTypedArray(At)?ht&&typeof Blob=="function"?new Blob([At]):Buffer$E.from(At):At}function xt(At,Rt,zt){let Tt=At;if(At&&!zt&&typeof At=="object"){if(utils$p.endsWith(Rt,"{}"))Rt=nt?Rt:Rt.slice(0,-2),At=JSON.stringify(At);else if(utils$p.isArray(At)&&isFlatArray(At)||(utils$p.isFileList(At)||utils$p.endsWith(Rt,"[]"))&&(Tt=utils$p.toArray(At)))return Rt=removeBrackets(Rt),Tt.forEach(function(It,Dt){!(utils$p.isUndefined(It)||It===null)&&tt.append(dt===!0?renderKey([Rt],Dt,ut):dt===null?Rt:Rt+"[]",mt(It))}),!1}return isVisitable(At)?!0:(tt.append(renderKey(zt,Rt,ut),mt(At)),!1)}const Mt=[],vt=Object.assign(predicates,{defaultVisitor:xt,convertValue:mt,isVisitable});function Ot(At,Rt){if(!utils$p.isUndefined(At)){if(Mt.indexOf(At)!==-1)throw Error("Circular reference detected in "+Rt.join("."));Mt.push(At),utils$p.forEach(At,function(Tt,Ct){(!(utils$p.isUndefined(Tt)||Tt===null)&&lt.call(tt,Tt,utils$p.isString(Ct)?Ct.trim():Ct,Rt,vt))===!0&&Ot(Tt,Rt?Rt.concat(Ct):[Ct])}),Mt.pop()}}if(!utils$p.isObject(et))throw new TypeError("data must be an object");return Ot(et),tt}function encode$1(et){const tt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(et).replace(/[!'()~]|%20|%00/g,function(nt){return tt[nt]})}function AxiosURLSearchParams(et,tt){this._pairs=[],et&&toFormData(et,this,tt)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(tt,rt){this._pairs.push([tt,rt])};prototype.toString=function(tt){const rt=tt?function(nt){return tt.call(this,nt,encode$1)}:encode$1;return this._pairs.map(function(lt){return rt(lt[0])+"="+rt(lt[1])},"").join("&")};function encode(et){return encodeURIComponent(et).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(et,tt,rt){if(!tt)return et;const nt=rt&&rt.encode||encode,lt=rt&&rt.serialize;let ut;if(lt?ut=lt(tt,rt):ut=utils$p.isURLSearchParams(tt)?tt.toString():new AxiosURLSearchParams(tt,rt).toString(nt),ut){const dt=et.indexOf("#");dt!==-1&&(et=et.slice(0,dt)),et+=(et.indexOf("?")===-1?"?":"&")+ut}return et}class InterceptorManager{constructor(){this.handlers=[]}use(tt,rt,nt){return this.handlers.push({fulfilled:tt,rejected:rt,synchronous:nt?nt.synchronous:!1,runWhen:nt?nt.runWhen:null}),this.handlers.length-1}eject(tt){this.handlers[tt]&&(this.handlers[tt]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(tt){utils$p.forEach(this.handlers,function(nt){nt!==null&&tt(nt)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",hasStandardBrowserEnv=(et=>hasBrowserEnv&&["ReactNative","NativeScript","NS"].indexOf(et)<0)(typeof navigator<"u"&&navigator.product),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin$2=hasBrowserEnv&&window.location.href||"http://localhost",utils$o=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,origin:origin$2},Symbol.toStringTag,{value:"Module"})),platform={...utils$o,...platform$1};function toURLEncodedForm(et,tt){return toFormData(et,new platform.classes.URLSearchParams,Object.assign({visitor:function(rt,nt,lt,ut){return platform.isNode&&utils$p.isBuffer(rt)?(this.append(nt,rt.toString("base64")),!1):ut.defaultVisitor.apply(this,arguments)}},tt))}function parsePropPath(et){return utils$p.matchAll(/\w+|\[(\w*)]/g,et).map(tt=>tt[0]==="[]"?"":tt[1]||tt[0])}function arrayToObject(et){const tt={},rt=Object.keys(et);let nt;const lt=rt.length;let ut;for(nt=0;nt<lt;nt++)ut=rt[nt],tt[ut]=et[ut];return tt}function formDataToJSON(et){function tt(rt,nt,lt,ut){let dt=rt[ut++];if(dt==="__proto__")return!0;const pt=Number.isFinite(+dt),ht=ut>=rt.length;return dt=!dt&&utils$p.isArray(lt)?lt.length:dt,ht?(utils$p.hasOwnProp(lt,dt)?lt[dt]=[lt[dt],nt]:lt[dt]=nt,!pt):((!lt[dt]||!utils$p.isObject(lt[dt]))&&(lt[dt]=[]),tt(rt,nt,lt[dt],ut)&&utils$p.isArray(lt[dt])&&(lt[dt]=arrayToObject(lt[dt])),!pt)}if(utils$p.isFormData(et)&&utils$p.isFunction(et.entries)){const rt={};return utils$p.forEachEntry(et,(nt,lt)=>{tt(parsePropPath(nt),lt,rt,0)}),rt}return null}function stringifySafely(et,tt,rt){if(utils$p.isString(et))try{return(tt||JSON.parse)(et),utils$p.trim(et)}catch(nt){if(nt.name!=="SyntaxError")throw nt}return(0,JSON.stringify)(et)}const defaults$2={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(tt,rt){const nt=rt.getContentType()||"",lt=nt.indexOf("application/json")>-1,ut=utils$p.isObject(tt);if(ut&&utils$p.isHTMLForm(tt)&&(tt=new FormData(tt)),utils$p.isFormData(tt))return lt?JSON.stringify(formDataToJSON(tt)):tt;if(utils$p.isArrayBuffer(tt)||utils$p.isBuffer(tt)||utils$p.isStream(tt)||utils$p.isFile(tt)||utils$p.isBlob(tt)||utils$p.isReadableStream(tt))return tt;if(utils$p.isArrayBufferView(tt))return tt.buffer;if(utils$p.isURLSearchParams(tt))return rt.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),tt.toString();let pt;if(ut){if(nt.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(tt,this.formSerializer).toString();if((pt=utils$p.isFileList(tt))||nt.indexOf("multipart/form-data")>-1){const ht=this.env&&this.env.FormData;return toFormData(pt?{"files[]":tt}:tt,ht&&new ht,this.formSerializer)}}return ut||lt?(rt.setContentType("application/json",!1),stringifySafely(tt)):tt}],transformResponse:[function(tt){const rt=this.transitional||defaults$2.transitional,nt=rt&&rt.forcedJSONParsing,lt=this.responseType==="json";if(utils$p.isResponse(tt)||utils$p.isReadableStream(tt))return tt;if(tt&&utils$p.isString(tt)&&(nt&&!this.responseType||lt)){const dt=!(rt&&rt.silentJSONParsing)&&lt;try{return JSON.parse(tt)}catch(pt){if(dt)throw pt.name==="SyntaxError"?AxiosError.from(pt,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):pt}}return tt}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(tt){return tt>=200&&tt<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$p.forEach(["delete","get","head","post","put","patch"],et=>{defaults$2.headers[et]={}});const ignoreDuplicateOf=utils$p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=et=>{const tt={};let rt,nt,lt;return et&&et.split(`
`).forEach(function(dt){lt=dt.indexOf(":"),rt=dt.substring(0,lt).trim().toLowerCase(),nt=dt.substring(lt+1).trim(),!(!rt||tt[rt]&&ignoreDuplicateOf[rt])&&(rt==="set-cookie"?tt[rt]?tt[rt].push(nt):tt[rt]=[nt]:tt[rt]=tt[rt]?tt[rt]+", "+nt:nt)}),tt},$internals=Symbol("internals");function normalizeHeader(et){return et&&String(et).trim().toLowerCase()}function normalizeValue(et){return et===!1||et==null?et:utils$p.isArray(et)?et.map(normalizeValue):String(et)}function parseTokens(et){const tt=Object.create(null),rt=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let nt;for(;nt=rt.exec(et);)tt[nt[1]]=nt[2];return tt}const isValidHeaderName=et=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(et.trim());function matchHeaderValue(et,tt,rt,nt,lt){if(utils$p.isFunction(nt))return nt.call(this,tt,rt);if(lt&&(tt=rt),!!utils$p.isString(tt)){if(utils$p.isString(nt))return tt.indexOf(nt)!==-1;if(utils$p.isRegExp(nt))return nt.test(tt)}}function formatHeader(et){return et.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(tt,rt,nt)=>rt.toUpperCase()+nt)}function buildAccessors(et,tt){const rt=utils$p.toCamelCase(" "+tt);["get","set","has"].forEach(nt=>{Object.defineProperty(et,nt+rt,{value:function(lt,ut,dt){return this[nt].call(this,tt,lt,ut,dt)},configurable:!0})})}class AxiosHeaders{constructor(tt){tt&&this.set(tt)}set(tt,rt,nt){const lt=this;function ut(pt,ht,mt){const xt=normalizeHeader(ht);if(!xt)throw new Error("header name must be a non-empty string");const Mt=utils$p.findKey(lt,xt);(!Mt||lt[Mt]===void 0||mt===!0||mt===void 0&&lt[Mt]!==!1)&&(lt[Mt||ht]=normalizeValue(pt))}const dt=(pt,ht)=>utils$p.forEach(pt,(mt,xt)=>ut(mt,xt,ht));if(utils$p.isPlainObject(tt)||tt instanceof this.constructor)dt(tt,rt);else if(utils$p.isString(tt)&&(tt=tt.trim())&&!isValidHeaderName(tt))dt(parseHeaders(tt),rt);else if(utils$p.isHeaders(tt))for(const[pt,ht]of tt.entries())ut(ht,pt,nt);else tt!=null&&ut(rt,tt,nt);return this}get(tt,rt){if(tt=normalizeHeader(tt),tt){const nt=utils$p.findKey(this,tt);if(nt){const lt=this[nt];if(!rt)return lt;if(rt===!0)return parseTokens(lt);if(utils$p.isFunction(rt))return rt.call(this,lt,nt);if(utils$p.isRegExp(rt))return rt.exec(lt);throw new TypeError("parser must be boolean|regexp|function")}}}has(tt,rt){if(tt=normalizeHeader(tt),tt){const nt=utils$p.findKey(this,tt);return!!(nt&&this[nt]!==void 0&&(!rt||matchHeaderValue(this,this[nt],nt,rt)))}return!1}delete(tt,rt){const nt=this;let lt=!1;function ut(dt){if(dt=normalizeHeader(dt),dt){const pt=utils$p.findKey(nt,dt);pt&&(!rt||matchHeaderValue(nt,nt[pt],pt,rt))&&(delete nt[pt],lt=!0)}}return utils$p.isArray(tt)?tt.forEach(ut):ut(tt),lt}clear(tt){const rt=Object.keys(this);let nt=rt.length,lt=!1;for(;nt--;){const ut=rt[nt];(!tt||matchHeaderValue(this,this[ut],ut,tt,!0))&&(delete this[ut],lt=!0)}return lt}normalize(tt){const rt=this,nt={};return utils$p.forEach(this,(lt,ut)=>{const dt=utils$p.findKey(nt,ut);if(dt){rt[dt]=normalizeValue(lt),delete rt[ut];return}const pt=tt?formatHeader(ut):String(ut).trim();pt!==ut&&delete rt[ut],rt[pt]=normalizeValue(lt),nt[pt]=!0}),this}concat(...tt){return this.constructor.concat(this,...tt)}toJSON(tt){const rt=Object.create(null);return utils$p.forEach(this,(nt,lt)=>{nt!=null&&nt!==!1&&(rt[lt]=tt&&utils$p.isArray(nt)?nt.join(", "):nt)}),rt}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([tt,rt])=>tt+": "+rt).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(tt){return tt instanceof this?tt:new this(tt)}static concat(tt,...rt){const nt=new this(tt);return rt.forEach(lt=>nt.set(lt)),nt}static accessor(tt){const nt=(this[$internals]=this[$internals]={accessors:{}}).accessors,lt=this.prototype;function ut(dt){const pt=normalizeHeader(dt);nt[pt]||(buildAccessors(lt,dt),nt[pt]=!0)}return utils$p.isArray(tt)?tt.forEach(ut):ut(tt),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$p.reduceDescriptors(AxiosHeaders.prototype,({value:et},tt)=>{let rt=tt[0].toUpperCase()+tt.slice(1);return{get:()=>et,set(nt){this[rt]=nt}}});utils$p.freezeMethods(AxiosHeaders);function transformData(et,tt){const rt=this||defaults$2,nt=tt||rt,lt=AxiosHeaders.from(nt.headers);let ut=nt.data;return utils$p.forEach(et,function(pt){ut=pt.call(rt,ut,lt.normalize(),tt?tt.status:void 0)}),lt.normalize(),ut}function isCancel(et){return!!(et&&et.__CANCEL__)}function CanceledError(et,tt,rt){AxiosError.call(this,et??"canceled",AxiosError.ERR_CANCELED,tt,rt),this.name="CanceledError"}utils$p.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(et,tt,rt){const nt=rt.config.validateStatus;!rt.status||!nt||nt(rt.status)?et(rt):tt(new AxiosError("Request failed with status code "+rt.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(rt.status/100)-4],rt.config,rt.request,rt))}function parseProtocol(et){const tt=/^([-+\w]{1,25})(:?\/\/|:)/.exec(et);return tt&&tt[1]||""}function speedometer(et,tt){et=et||10;const rt=new Array(et),nt=new Array(et);let lt=0,ut=0,dt;return tt=tt!==void 0?tt:1e3,function(ht){const mt=Date.now(),xt=nt[ut];dt||(dt=mt),rt[lt]=ht,nt[lt]=mt;let Mt=ut,vt=0;for(;Mt!==lt;)vt+=rt[Mt++],Mt=Mt%et;if(lt=(lt+1)%et,lt===ut&&(ut=(ut+1)%et),mt-dt<tt)return;const Ot=xt&&mt-xt;return Ot?Math.round(vt*1e3/Ot):void 0}}function throttle$3(et,tt){let rt=0,nt=1e3/tt,lt,ut;const dt=(mt,xt=Date.now())=>{rt=xt,lt=null,ut&&(clearTimeout(ut),ut=null),et.apply(null,mt)};return[(...mt)=>{const xt=Date.now(),Mt=xt-rt;Mt>=nt?dt(mt,xt):(lt=mt,ut||(ut=setTimeout(()=>{ut=null,dt(lt)},nt-Mt)))},()=>lt&&dt(lt)]}const progressEventReducer=(et,tt,rt=3)=>{let nt=0;const lt=speedometer(50,250);return throttle$3(ut=>{const dt=ut.loaded,pt=ut.lengthComputable?ut.total:void 0,ht=dt-nt,mt=lt(ht),xt=dt<=pt;nt=dt;const Mt={loaded:dt,total:pt,progress:pt?dt/pt:void 0,bytes:ht,rate:mt||void 0,estimated:mt&&pt&&xt?(pt-dt)/mt:void 0,event:ut,lengthComputable:pt!=null,[tt?"download":"upload"]:!0};et(Mt)},rt)},progressEventDecorator=(et,tt)=>{const rt=et!=null;return[nt=>tt[0]({lengthComputable:rt,total:et,loaded:nt}),tt[1]]},asyncDecorator=et=>(...tt)=>utils$p.asap(()=>et(...tt)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const tt=/(msie|trident)/i.test(navigator.userAgent),rt=document.createElement("a");let nt;function lt(ut){let dt=ut;return tt&&(rt.setAttribute("href",dt),dt=rt.href),rt.setAttribute("href",dt),{href:rt.href,protocol:rt.protocol?rt.protocol.replace(/:$/,""):"",host:rt.host,search:rt.search?rt.search.replace(/^\?/,""):"",hash:rt.hash?rt.hash.replace(/^#/,""):"",hostname:rt.hostname,port:rt.port,pathname:rt.pathname.charAt(0)==="/"?rt.pathname:"/"+rt.pathname}}return nt=lt(window.location.href),function(dt){const pt=utils$p.isString(dt)?lt(dt):dt;return pt.protocol===nt.protocol&&pt.host===nt.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(et,tt,rt,nt,lt,ut){const dt=[et+"="+encodeURIComponent(tt)];utils$p.isNumber(rt)&&dt.push("expires="+new Date(rt).toGMTString()),utils$p.isString(nt)&&dt.push("path="+nt),utils$p.isString(lt)&&dt.push("domain="+lt),ut===!0&&dt.push("secure"),document.cookie=dt.join("; ")},read(et){const tt=document.cookie.match(new RegExp("(^|;\\s*)("+et+")=([^;]*)"));return tt?decodeURIComponent(tt[3]):null},remove(et){this.write(et,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(et){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(et)}function combineURLs(et,tt){return tt?et.replace(/\/?\/$/,"")+"/"+tt.replace(/^\/+/,""):et}function buildFullPath(et,tt){return et&&!isAbsoluteURL(tt)?combineURLs(et,tt):tt}const headersToObject=et=>et instanceof AxiosHeaders?{...et}:et;function mergeConfig(et,tt){tt=tt||{};const rt={};function nt(mt,xt,Mt){return utils$p.isPlainObject(mt)&&utils$p.isPlainObject(xt)?utils$p.merge.call({caseless:Mt},mt,xt):utils$p.isPlainObject(xt)?utils$p.merge({},xt):utils$p.isArray(xt)?xt.slice():xt}function lt(mt,xt,Mt){if(utils$p.isUndefined(xt)){if(!utils$p.isUndefined(mt))return nt(void 0,mt,Mt)}else return nt(mt,xt,Mt)}function ut(mt,xt){if(!utils$p.isUndefined(xt))return nt(void 0,xt)}function dt(mt,xt){if(utils$p.isUndefined(xt)){if(!utils$p.isUndefined(mt))return nt(void 0,mt)}else return nt(void 0,xt)}function pt(mt,xt,Mt){if(Mt in tt)return nt(mt,xt);if(Mt in et)return nt(void 0,mt)}const ht={url:ut,method:ut,data:ut,baseURL:dt,transformRequest:dt,transformResponse:dt,paramsSerializer:dt,timeout:dt,timeoutMessage:dt,withCredentials:dt,withXSRFToken:dt,adapter:dt,responseType:dt,xsrfCookieName:dt,xsrfHeaderName:dt,onUploadProgress:dt,onDownloadProgress:dt,decompress:dt,maxContentLength:dt,maxBodyLength:dt,beforeRedirect:dt,transport:dt,httpAgent:dt,httpsAgent:dt,cancelToken:dt,socketPath:dt,responseEncoding:dt,validateStatus:pt,headers:(mt,xt)=>lt(headersToObject(mt),headersToObject(xt),!0)};return utils$p.forEach(Object.keys(Object.assign({},et,tt)),function(xt){const Mt=ht[xt]||lt,vt=Mt(et[xt],tt[xt],xt);utils$p.isUndefined(vt)&&Mt!==pt||(rt[xt]=vt)}),rt}const resolveConfig=et=>{const tt=mergeConfig({},et);let{data:rt,withXSRFToken:nt,xsrfHeaderName:lt,xsrfCookieName:ut,headers:dt,auth:pt}=tt;tt.headers=dt=AxiosHeaders.from(dt),tt.url=buildURL(buildFullPath(tt.baseURL,tt.url),et.params,et.paramsSerializer),pt&&dt.set("Authorization","Basic "+btoa((pt.username||"")+":"+(pt.password?unescape(encodeURIComponent(pt.password)):"")));let ht;if(utils$p.isFormData(rt)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)dt.setContentType(void 0);else if((ht=dt.getContentType())!==!1){const[mt,...xt]=ht?ht.split(";").map(Mt=>Mt.trim()).filter(Boolean):[];dt.setContentType([mt||"multipart/form-data",...xt].join("; "))}}if(platform.hasStandardBrowserEnv&&(nt&&utils$p.isFunction(nt)&&(nt=nt(tt)),nt||nt!==!1&&isURLSameOrigin(tt.url))){const mt=lt&&ut&&cookies.read(ut);mt&&dt.set(lt,mt)}return tt},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(et){return new Promise(function(rt,nt){const lt=resolveConfig(et);let ut=lt.data;const dt=AxiosHeaders.from(lt.headers).normalize();let{responseType:pt,onUploadProgress:ht,onDownloadProgress:mt}=lt,xt,Mt,vt,Ot,At;function Rt(){Ot&&Ot(),At&&At(),lt.cancelToken&&lt.cancelToken.unsubscribe(xt),lt.signal&&lt.signal.removeEventListener("abort",xt)}let zt=new XMLHttpRequest;zt.open(lt.method.toUpperCase(),lt.url,!0),zt.timeout=lt.timeout;function Tt(){if(!zt)return;const It=AxiosHeaders.from("getAllResponseHeaders"in zt&&zt.getAllResponseHeaders()),kt={data:!pt||pt==="text"||pt==="json"?zt.responseText:zt.response,status:zt.status,statusText:zt.statusText,headers:It,config:et,request:zt};settle(function(Nt){rt(Nt),Rt()},function(Nt){nt(Nt),Rt()},kt),zt=null}"onloadend"in zt?zt.onloadend=Tt:zt.onreadystatechange=function(){!zt||zt.readyState!==4||zt.status===0&&!(zt.responseURL&&zt.responseURL.indexOf("file:")===0)||setTimeout(Tt)},zt.onabort=function(){zt&&(nt(new AxiosError("Request aborted",AxiosError.ECONNABORTED,et,zt)),zt=null)},zt.onerror=function(){nt(new AxiosError("Network Error",AxiosError.ERR_NETWORK,et,zt)),zt=null},zt.ontimeout=function(){let Dt=lt.timeout?"timeout of "+lt.timeout+"ms exceeded":"timeout exceeded";const kt=lt.transitional||transitionalDefaults;lt.timeoutErrorMessage&&(Dt=lt.timeoutErrorMessage),nt(new AxiosError(Dt,kt.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,et,zt)),zt=null},ut===void 0&&dt.setContentType(null),"setRequestHeader"in zt&&utils$p.forEach(dt.toJSON(),function(Dt,kt){zt.setRequestHeader(kt,Dt)}),utils$p.isUndefined(lt.withCredentials)||(zt.withCredentials=!!lt.withCredentials),pt&&pt!=="json"&&(zt.responseType=lt.responseType),mt&&([vt,At]=progressEventReducer(mt,!0),zt.addEventListener("progress",vt)),ht&&zt.upload&&([Mt,Ot]=progressEventReducer(ht),zt.upload.addEventListener("progress",Mt),zt.upload.addEventListener("loadend",Ot)),(lt.cancelToken||lt.signal)&&(xt=It=>{zt&&(nt(!It||It.type?new CanceledError(null,et,zt):It),zt.abort(),zt=null)},lt.cancelToken&&lt.cancelToken.subscribe(xt),lt.signal&&(lt.signal.aborted?xt():lt.signal.addEventListener("abort",xt)));const Ct=parseProtocol(lt.url);if(Ct&&platform.protocols.indexOf(Ct)===-1){nt(new AxiosError("Unsupported protocol "+Ct+":",AxiosError.ERR_BAD_REQUEST,et));return}zt.send(ut||null)})},composeSignals=(et,tt)=>{let rt=new AbortController,nt;const lt=function(ht){if(!nt){nt=!0,dt();const mt=ht instanceof Error?ht:this.reason;rt.abort(mt instanceof AxiosError?mt:new CanceledError(mt instanceof Error?mt.message:mt))}};let ut=tt&&setTimeout(()=>{lt(new AxiosError(`timeout ${tt} of ms exceeded`,AxiosError.ETIMEDOUT))},tt);const dt=()=>{et&&(ut&&clearTimeout(ut),ut=null,et.forEach(ht=>{ht&&(ht.removeEventListener?ht.removeEventListener("abort",lt):ht.unsubscribe(lt))}),et=null)};et.forEach(ht=>ht&&ht.addEventListener&&ht.addEventListener("abort",lt));const{signal:pt}=rt;return pt.unsubscribe=dt,[pt,()=>{ut&&clearTimeout(ut),ut=null}]},streamChunk=function*(et,tt){let rt=et.byteLength;if(rt<tt){yield et;return}let nt=0,lt;for(;nt<rt;)lt=nt+tt,yield et.slice(nt,lt),nt=lt},readBytes=async function*(et,tt,rt){for await(const nt of et)yield*streamChunk(ArrayBuffer.isView(nt)?nt:await rt(String(nt)),tt)},trackStream=(et,tt,rt,nt,lt)=>{const ut=readBytes(et,tt,lt);let dt=0,pt,ht=mt=>{pt||(pt=!0,nt&&nt(mt))};return new ReadableStream({async pull(mt){try{const{done:xt,value:Mt}=await ut.next();if(xt){ht(),mt.close();return}let vt=Mt.byteLength;if(rt){let Ot=dt+=vt;rt(Ot)}mt.enqueue(new Uint8Array(Mt))}catch(xt){throw ht(xt),xt}},cancel(mt){return ht(mt),ut.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(et=>tt=>et.encode(tt))(new TextEncoder):async et=>new Uint8Array(await new Response(et).arrayBuffer())),test=(et,...tt)=>{try{return!!et(...tt)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let et=!1;const tt=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return et=!0,"half"}}).headers.has("Content-Type");return et&&!tt}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$p.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(et=>et.body)};isFetchSupported&&(et=>{["text","arrayBuffer","blob","formData","stream"].forEach(tt=>{!resolvers[tt]&&(resolvers[tt]=utils$p.isFunction(et[tt])?rt=>rt[tt]():(rt,nt)=>{throw new AxiosError(`Response type '${tt}' is not supported`,AxiosError.ERR_NOT_SUPPORT,nt)})})})(new Response);const getBodyLength=async et=>{if(et==null)return 0;if(utils$p.isBlob(et))return et.size;if(utils$p.isSpecCompliantForm(et))return(await new Request(et).arrayBuffer()).byteLength;if(utils$p.isArrayBufferView(et)||utils$p.isArrayBuffer(et))return et.byteLength;if(utils$p.isURLSearchParams(et)&&(et=et+""),utils$p.isString(et))return(await encodeText(et)).byteLength},resolveBodyLength=async(et,tt)=>{const rt=utils$p.toFiniteNumber(et.getContentLength());return rt??getBodyLength(tt)},fetchAdapter=isFetchSupported&&(async et=>{let{url:tt,method:rt,data:nt,signal:lt,cancelToken:ut,timeout:dt,onDownloadProgress:pt,onUploadProgress:ht,responseType:mt,headers:xt,withCredentials:Mt="same-origin",fetchOptions:vt}=resolveConfig(et);mt=mt?(mt+"").toLowerCase():"text";let[Ot,At]=lt||ut||dt?composeSignals([lt,ut],dt):[],Rt,zt;const Tt=()=>{!Rt&&setTimeout(()=>{Ot&&Ot.unsubscribe()}),Rt=!0};let Ct;try{if(ht&&supportsRequestStream&&rt!=="get"&&rt!=="head"&&(Ct=await resolveBodyLength(xt,nt))!==0){let qt=new Request(tt,{method:"POST",body:nt,duplex:"half"}),Nt;if(utils$p.isFormData(nt)&&(Nt=qt.headers.get("content-type"))&&xt.setContentType(Nt),qt.body){const[Yt,Kt]=progressEventDecorator(Ct,progressEventReducer(asyncDecorator(ht)));nt=trackStream(qt.body,DEFAULT_CHUNK_SIZE,Yt,Kt,encodeText)}}utils$p.isString(Mt)||(Mt=Mt?"include":"omit"),zt=new Request(tt,{...vt,signal:Ot,method:rt.toUpperCase(),headers:xt.normalize().toJSON(),body:nt,duplex:"half",credentials:Mt});let It=await fetch(zt);const Dt=supportsResponseStream&&(mt==="stream"||mt==="response");if(supportsResponseStream&&(pt||Dt)){const qt={};["status","statusText","headers"].forEach(Jt=>{qt[Jt]=It[Jt]});const Nt=utils$p.toFiniteNumber(It.headers.get("content-length")),[Yt,Kt]=pt&&progressEventDecorator(Nt,progressEventReducer(asyncDecorator(pt),!0))||[];It=new Response(trackStream(It.body,DEFAULT_CHUNK_SIZE,Yt,()=>{Kt&&Kt(),Dt&&Tt()},encodeText),qt)}mt=mt||"text";let kt=await resolvers[utils$p.findKey(resolvers,mt)||"text"](It,et);return!Dt&&Tt(),At&&At(),await new Promise((qt,Nt)=>{settle(qt,Nt,{data:kt,headers:AxiosHeaders.from(It.headers),status:It.status,statusText:It.statusText,config:et,request:zt})})}catch(It){throw Tt(),It&&It.name==="TypeError"&&/fetch/i.test(It.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,et,zt),{cause:It.cause||It}):AxiosError.from(It,It&&It.code,et,zt)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$p.forEach(knownAdapters,(et,tt)=>{if(et){try{Object.defineProperty(et,"name",{value:tt})}catch{}Object.defineProperty(et,"adapterName",{value:tt})}});const renderReason=et=>`- ${et}`,isResolvedHandle=et=>utils$p.isFunction(et)||et===null||et===!1,adapters={getAdapter:et=>{et=utils$p.isArray(et)?et:[et];const{length:tt}=et;let rt,nt;const lt={};for(let ut=0;ut<tt;ut++){rt=et[ut];let dt;if(nt=rt,!isResolvedHandle(rt)&&(nt=knownAdapters[(dt=String(rt)).toLowerCase()],nt===void 0))throw new AxiosError(`Unknown adapter '${dt}'`);if(nt)break;lt[dt||"#"+ut]=nt}if(!nt){const ut=Object.entries(lt).map(([pt,ht])=>`adapter ${pt} `+(ht===!1?"is not supported by the environment":"is not available in the build"));let dt=tt?ut.length>1?`since :
`+ut.map(renderReason).join(`
`):" "+renderReason(ut[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+dt,"ERR_NOT_SUPPORT")}return nt},adapters:knownAdapters};function throwIfCancellationRequested(et){if(et.cancelToken&&et.cancelToken.throwIfRequested(),et.signal&&et.signal.aborted)throw new CanceledError(null,et)}function dispatchRequest(et){return throwIfCancellationRequested(et),et.headers=AxiosHeaders.from(et.headers),et.data=transformData.call(et,et.transformRequest),["post","put","patch"].indexOf(et.method)!==-1&&et.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(et.adapter||defaults$2.adapter)(et).then(function(nt){return throwIfCancellationRequested(et),nt.data=transformData.call(et,et.transformResponse,nt),nt.headers=AxiosHeaders.from(nt.headers),nt},function(nt){return isCancel(nt)||(throwIfCancellationRequested(et),nt&&nt.response&&(nt.response.data=transformData.call(et,et.transformResponse,nt.response),nt.response.headers=AxiosHeaders.from(nt.response.headers))),Promise.reject(nt)})}const VERSION="1.7.4",validators$1={};["object","boolean","number","function","string","symbol"].forEach((et,tt)=>{validators$1[et]=function(nt){return typeof nt===et||"a"+(tt<1?"n ":" ")+et}});const deprecatedWarnings={};validators$1.transitional=function(tt,rt,nt){function lt(ut,dt){return"[Axios v"+VERSION+"] Transitional option '"+ut+"'"+dt+(nt?". "+nt:"")}return(ut,dt,pt)=>{if(tt===!1)throw new AxiosError(lt(dt," has been removed"+(rt?" in "+rt:"")),AxiosError.ERR_DEPRECATED);return rt&&!deprecatedWarnings[dt]&&(deprecatedWarnings[dt]=!0,console.warn(lt(dt," has been deprecated since v"+rt+" and will be removed in the near future"))),tt?tt(ut,dt,pt):!0}};function assertOptions(et,tt,rt){if(typeof et!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const nt=Object.keys(et);let lt=nt.length;for(;lt-- >0;){const ut=nt[lt],dt=tt[ut];if(dt){const pt=et[ut],ht=pt===void 0||dt(pt,ut,et);if(ht!==!0)throw new AxiosError("option "+ut+" must be "+ht,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(rt!==!0)throw new AxiosError("Unknown option "+ut,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(tt){this.defaults=tt,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(tt,rt){try{return await this._request(tt,rt)}catch(nt){if(nt instanceof Error){let lt;Error.captureStackTrace?Error.captureStackTrace(lt={}):lt=new Error;const ut=lt.stack?lt.stack.replace(/^.+\n/,""):"";try{nt.stack?ut&&!String(nt.stack).endsWith(ut.replace(/^.+\n.+\n/,""))&&(nt.stack+=`
`+ut):nt.stack=ut}catch{}}throw nt}}_request(tt,rt){typeof tt=="string"?(rt=rt||{},rt.url=tt):rt=tt||{},rt=mergeConfig(this.defaults,rt);const{transitional:nt,paramsSerializer:lt,headers:ut}=rt;nt!==void 0&&validator.assertOptions(nt,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),lt!=null&&(utils$p.isFunction(lt)?rt.paramsSerializer={serialize:lt}:validator.assertOptions(lt,{encode:validators.function,serialize:validators.function},!0)),rt.method=(rt.method||this.defaults.method||"get").toLowerCase();let dt=ut&&utils$p.merge(ut.common,ut[rt.method]);ut&&utils$p.forEach(["delete","get","head","post","put","patch","common"],At=>{delete ut[At]}),rt.headers=AxiosHeaders.concat(dt,ut);const pt=[];let ht=!0;this.interceptors.request.forEach(function(Rt){typeof Rt.runWhen=="function"&&Rt.runWhen(rt)===!1||(ht=ht&&Rt.synchronous,pt.unshift(Rt.fulfilled,Rt.rejected))});const mt=[];this.interceptors.response.forEach(function(Rt){mt.push(Rt.fulfilled,Rt.rejected)});let xt,Mt=0,vt;if(!ht){const At=[dispatchRequest.bind(this),void 0];for(At.unshift.apply(At,pt),At.push.apply(At,mt),vt=At.length,xt=Promise.resolve(rt);Mt<vt;)xt=xt.then(At[Mt++],At[Mt++]);return xt}vt=pt.length;let Ot=rt;for(Mt=0;Mt<vt;){const At=pt[Mt++],Rt=pt[Mt++];try{Ot=At(Ot)}catch(zt){Rt.call(this,zt);break}}try{xt=dispatchRequest.call(this,Ot)}catch(At){return Promise.reject(At)}for(Mt=0,vt=mt.length;Mt<vt;)xt=xt.then(mt[Mt++],mt[Mt++]);return xt}getUri(tt){tt=mergeConfig(this.defaults,tt);const rt=buildFullPath(tt.baseURL,tt.url);return buildURL(rt,tt.params,tt.paramsSerializer)}}utils$p.forEach(["delete","get","head","options"],function(tt){Axios.prototype[tt]=function(rt,nt){return this.request(mergeConfig(nt||{},{method:tt,url:rt,data:(nt||{}).data}))}});utils$p.forEach(["post","put","patch"],function(tt){function rt(nt){return function(ut,dt,pt){return this.request(mergeConfig(pt||{},{method:tt,headers:nt?{"Content-Type":"multipart/form-data"}:{},url:ut,data:dt}))}}Axios.prototype[tt]=rt(),Axios.prototype[tt+"Form"]=rt(!0)});class CancelToken{constructor(tt){if(typeof tt!="function")throw new TypeError("executor must be a function.");let rt;this.promise=new Promise(function(ut){rt=ut});const nt=this;this.promise.then(lt=>{if(!nt._listeners)return;let ut=nt._listeners.length;for(;ut-- >0;)nt._listeners[ut](lt);nt._listeners=null}),this.promise.then=lt=>{let ut;const dt=new Promise(pt=>{nt.subscribe(pt),ut=pt}).then(lt);return dt.cancel=function(){nt.unsubscribe(ut)},dt},tt(function(ut,dt,pt){nt.reason||(nt.reason=new CanceledError(ut,dt,pt),rt(nt.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(tt){if(this.reason){tt(this.reason);return}this._listeners?this._listeners.push(tt):this._listeners=[tt]}unsubscribe(tt){if(!this._listeners)return;const rt=this._listeners.indexOf(tt);rt!==-1&&this._listeners.splice(rt,1)}static source(){let tt;return{token:new CancelToken(function(lt){tt=lt}),cancel:tt}}}function spread(et){return function(rt){return et.apply(null,rt)}}function isAxiosError(et){return utils$p.isObject(et)&&et.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([et,tt])=>{HttpStatusCode[tt]=et});function createInstance(et){const tt=new Axios(et),rt=bind(Axios.prototype.request,tt);return utils$p.extend(rt,Axios.prototype,tt,{allOwnKeys:!0}),utils$p.extend(rt,tt,null,{allOwnKeys:!0}),rt.create=function(lt){return createInstance(mergeConfig(et,lt))},rt}const axios=createInstance(defaults$2);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(tt){return Promise.all(tt)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=et=>formDataToJSON(utils$p.isHTMLForm(et)?new FormData(et):et);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;const GC_LOGO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA/CAYAAACmVEtSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAT+SURBVHgB7VpNcts2FP4AUm2X7gnKnsDOCSxNpt3aPUHlXafNRPIJ7JwgUtLpNsoJLK8605+Rsui68gnMnCDMLuMRibyHB/1aimgJJEeZfDOUKBHA+wHwgPcRCnkwaB8gS5vQ+pB+1ek6cBcjtldm3iAd9/HjHyPsgjyygBHG6TV++H2oNjQWAeaC7prIjxGyrIvHL3t4CGayTucU3oR4vQGDp9SYusT26FP9czQ68caSg6ctJyuv4lPcN0A88QrSfbsiJhE/kRGrhxUPF5irXWSppQYjanBAdxH8ISExjXtGiPIs6wg7QC/+tN6I4BeiqHXOgizu5Z2UZ8wMsGN+9wbXYGLEwZysU3iADCEZOrcoGpl5RuGxR7L+xxYTdhVC+bLhq3hoRdHGcHz3ojxDleb9gqCReQmXlUFDmxPsMTgKRdhjsAFFhc5SoLHn+CwMiLHHYAN2S0AqBq0D2RvsMWgdCPrYY2iXMQ1RHrw6zEUh9QzloGfTTI8QAxqdITx7ZgVi6yjucd5We8LcOqDOUGhItblxbG8fv7iEp+g3M6DRkdy1ECPIOfcSezLIg6zFldh6yKsRiVO+d++JJ1l6bcPGvMbOWKP8oqxHNCe62FbCJ58O2k2XbkbYDgnlG20cv9jsjEGbdsXmOR7GESUqV7FBu04r9inltJz8RHgotGnmMkJkRSSrTbIm3OgyYtgAwDuIoLdEbLXysAURtgINlXUM3aewyCclEmzmWp0VbHH3tVEcYmdEAo+QSSxWFqk8Q4aGZ7goVCIvNGHnfDXpvN9EOZCXFx5RPi+ktVcapwpeyCsLUgUvdID/fvsOnlANL3RX+x6e8IUXqhpV8ULeVuNqeKFt9kRrUAUvNIRHMC/UQ6nIPCRKM2i3OxyiNARDeETJvJCjVTxixgvtkJfmRExXB54xWwe0vkTxvJDXZIZRIS/kB9XxQp6wjhd65IEXGrlTKj0UiE28UN2lm3XkR+KijfcJuwp5eaF5roa338t5LTPO1xQI+o7pLg35DFiGJOZihOe4/gX7Cx4Wf/4SwTf+JYLYErfFIJydHDRH+ObrhChGuPAXwwuyiKI1r8DLh/6iuXNzPJ967pjmg1br0FHaRJp2v3UNNzGZoH8/qSMMTigC3diDrOxNpLztOLZ5BP8nirSkOdW1hsuZU1JMvSbeKQZHKaHPW5Aw25UTi/S80Wk4uZdghmTQjh35ldBalCAIR/T7lO5jKBXZ7f/kOb0iVuRx4zw+xD9PTqnQwbSiCDmHIWrdkBJaHYtxvKfXF/hqfIS7cGgVsYqZn5GmfC6uDcVn4xj0X0blmdDKzFv6dr1Bvd7orji32rqda+851T2jOheYrC/W4dPnJ1puxuJxFdatoCDgik2nQIuMOnTKwx4rbrzs2HofgjMxyBxzY3Y4BGSQUu/kv/k8g4TadSQzmAynZZ6Ue5x7q9G5dAvh3LAjR6ZjLMmrh3YbrUnhv36NcfehQ/OgZQtpPZJCyilpKy6SwFIGLp+IbZmUVm2TdhHqQ+rJDhkjZbOUnqXnqNXIg+MbSWyovUHb5SLctnpr5+L0nYBZNDAI4yV5kZZXnjQma7VXpDwPmfdu69un72uZaE7xzNyQsbFrbiSNsIHUrSbrs0cQ0GcYcDfLMJrWoTlRq11JVR6eVM8YmnfmnRw6JLnW63Z+3NqjmYpkaDMJAInsaO3zKxneafQR/G8J8VdNTuoAAAAASUVORK5CYII=",REG_LOGIN_TITLE="Registration",USERNAME_LABEL="Last name",USERNAME_PLACEHOLDER="Enter last name",PASSWORD_LABEL="PIN",PASSWORD_PLACEHOLDER="Enter 4 digit PIN (e.g. 1234)",LOGIN_ERROR_MESSAGE="Please enter a valid last name and/or PIN";class RegistrationLogin extends reactExports.Component{constructor(rt){super(rt);Nr(this,"usernameRef",null);Nr(this,"passwordRef",null);Nr(this,"login",()=>{const{history:rt}=this.props;if(this.usernameRef&&this.passwordRef){this.setState({loading:!0,loginError:!1});const nt={lastname:this.usernameRef.value,pin:this.passwordRef.value};axios.post("/server/auth/pinlogin",nt,{headers:{"Content-Type":"application/json"}}).then(lt=>{let ut;const{id:dt,username:pt}=lt.data;sessionStorage.removeItem("userId"),this.setState({loading:!1,loginError:!1}),this.onLoginSuccess(dt,pt),rt.push({pathname:`/patient/${dt}/home`,state:{version:ut}})}).catch(lt=>{this.setState({loading:!1,loginError:!0})})}});Nr(this,"onLoginSuccess",(rt,nt)=>{{const lt=getCurrentScope();lt.setTag("user_type","patient"),lt.setUser({id:rt,username:nt})}});this.state={loading:!1,loginError:!1}}render(){const{loading:rt,loginError:nt}=this.state;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx("div",{className:"auth-container",children:jsxRuntimeExports.jsxs("div",{className:"auth-container-inner",children:[jsxRuntimeExports.jsxs("div",{className:"auth-header-container",children:[jsxRuntimeExports.jsx("img",{src:GC_LOGO,alt:"GenesisCare Logo"}),jsxRuntimeExports.jsx("div",{className:"auth-header-title",children:REG_LOGIN_TITLE})]}),jsxRuntimeExports.jsxs("form",{id:"patient-login-form",className:"auth-form",onSubmit:()=>this.login(),children:[jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:"username",title:USERNAME_LABEL,isValid:!nt,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:"username",placeholder:USERNAME_PLACEHOLDER,elementRef:lt=>{this.usernameRef=lt},displayInputError:nt})}),jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:"password",title:PASSWORD_LABEL,isValid:!nt,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:"password",inputType:"number",placeholder:PASSWORD_PLACEHOLDER,elementRef:lt=>{this.passwordRef=lt},displayInputError:nt})}),nt&&jsxRuntimeExports.jsx(ErrorInfo,{errors:nt?[LOGIN_ERROR_MESSAGE]:void 0}),jsxRuntimeExports.jsx("div",{className:"auth-submit-button",children:jsxRuntimeExports.jsx(LoadingButton,{type:"submit",sx:{width:.6},onClick:lt=>{lt&&lt.preventDefault(),this.login()},"data-testid":"login-button",name:"login",size:"large",variant:"contained",loading:rt,children:"Login"})})]})]})})})}}const RegistrationLogin$1=withRouter(RegistrationLogin),logger$u=new Logger("RegistrationLoginApollo");class RegistrationLoginApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"loggedOut",!1)}componentDidMount(){const{client:rt}=this.props;rt==null||rt.clearStore().then(()=>{rt&&rt.writeQuery({query:gql`
            query {
              pendingSaveCount
              saveErrorCount
              registrationPagesViewed
            }
          `,data:{pendingSaveCount:0,saveErrorCount:0,registrationPagesViewed:[]}})}),this.loggedOut||(logger$u.debug("componentDidMount","Calling logout"),rt==null||rt.mutate({mutation:LOGOUT_MUTATION$4}),logger$u.debug("componentDidMount","Called logout"),this.loggedOut=!0)}render(){return jsxRuntimeExports.jsx(RegistrationLogin$1,{})}}const RegistrationLoginApollo$1=withApollo(RegistrationLoginApollo),FORM_HEADING$3="Preferences",YES_REFERENCE_LIST_DATA_ITEM_ID="1",NO_REFERENCE_LIST_DATA_ITEM_ID="2",FIELD_NAMES$3={ACCEPTS_DATA_SHARE:"acceptsDataShare"},FIELD_HEADINGS$1={ACCEPTS_DATA_SHARE:"Accepts data share?"},WARNING_MESSAGE="Please select a value";class RegistrationPreferences extends reactExports.Component{constructor(rt){super(rt);Nr(this,"convertBooleanToNumberString",rt=>{switch(rt){case!0:return YES_REFERENCE_LIST_DATA_ITEM_ID;case!1:return NO_REFERENCE_LIST_DATA_ITEM_ID;default:return}});Nr(this,"renderContents",()=>{const{preferences:rt}=this.props,nt=[{id:YES_REFERENCE_LIST_DATA_ITEM_ID,name:"Yes"},{id:NO_REFERENCE_LIST_DATA_ITEM_ID,name:"No"}],lt=this.validateObject(rt);return jsxRuntimeExports.jsx("div",{className:"form-page form-registration-information-notice",children:jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading",children:FORM_HEADING$3}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(lt&&lt.contactAuthorisedForEnquiries),htmlFor:FIELD_NAMES$3.ACCEPTS_DATA_SHARE,title:FIELD_HEADINGS$1.ACCEPTS_DATA_SHARE,children:jsxRuntimeExports.jsx(SegmentedInput,{disabled:rt.lock&&rt.lock.readOnly,fieldName:FIELD_NAMES$3.ACCEPTS_DATA_SHARE,options:nt,defaultSelected:this.convertBooleanToNumberString(rt.acceptsDataShare),optionAreBoolean:!0,itemSelected:ut=>{const dt=ut;this.autosave(rt,FIELD_NAMES$3.ACCEPTS_DATA_SHARE,dt,"Boolean")},errors:lt&&lt.contactAuthorisedForEnquiries?lt.contactAuthorisedForEnquiries:void 0})})]})})});Nr(this,"autosave",async(rt,nt,lt,ut="String")=>{const{autosave:dt}=this.props;dt(rt,nt,lt,ut).then(()=>{const pt=this.state.viewed.add(nt);this.setState({viewed:pt})})});Nr(this,"validateObject",rt=>{const nt={acceptsDataShare:{presence:{allowEmpty:!1,message:WARNING_MESSAGE}}},lt={};for(const dt of this.state.viewed.keys())lt[dt]=nt[dt];return validate(rt,lt,{fullMessages:!1})});this.state={viewed:new Set}}static getDerivedStateFromProps(rt,nt){return rt.validateOnLoad&&rt.preferences.lock&&rt.preferences.lock.readOnly,nt}render(){const{preferences:rt,genderRefData:nt,isPso:lt,saveStatus:ut}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:rt,genderRefData:nt,isPso:lt,saveStatus:ut,children:this.renderContents()})}validateForm(){}}const PATIENT_AND_USER_DETAILS_QUERY$9=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      ida
      idb
      isProd
      firstName
      lastName
      dob
      address {
        id
        ukFormattedAddress
      }
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      acceptsDataShare
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`;class RegistrationPreferencesApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"autosave",async(rt,nt,lt,ut)=>{const dt=this.props.client,pt={key:nt,value:lt,type:ut},ht=await this.getApolloCache();let mt=ht.currentPendingSaveCount+1,xt=ht.saveErrorCount;return dt&&dt.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:mt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)}),dt==null?void 0:dt.mutate(this.props.getPatientMutation(rt,[pt])).then(Mt=>{Mt.data.updatePatient.errors&&xt++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),xt++}).finally(async()=>{mt=(await this.getApolloCache()).currentPendingSaveCount-1,dt&&dt.writeQuery({query:gql`
                query {
                  pendingSaveCount
                  saveErrorCount
                }
              `,data:{pendingSaveCount:mt,saveErrorCount:xt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=lt.registrationPagesViewed;nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.PREFERENCES)}),nt.includes(BASE_REGISTRATION_PAGES.PREFERENCES)||(nt=[...nt,BASE_REGISTRATION_PAGES.PREFERENCES]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$9,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,data:dt,error:pt})=>ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt&&dt.patient?(this.userIsPSO=dt.user.isPso||!1,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(RegistrationPreferences,{autosave:this.autosave,preferences:dt.patient,genderRefData:dt.genderRefData,saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO})]})):pt?jsxRuntimeExports.jsx("div",{children:`Error loading: ${pt}`}):jsxRuntimeExports.jsx("div",{})})}}const apolloComponent$d=withApollo(RegistrationPreferencesApollo),component$8=withRegistrationForm(apolloComponent$d),categoryFieldNames={basicDetails:{categoryLabel:"Basic Details",name_prefix:{label:"Title"},first_name:{label:"First name"},middle_name:{label:"Middle name"},last_name:{label:"Last name"},preferred_name:{label:"Preferred name"},gender:{label:"What was your sex recorded at birth"},genderIdentification:{label:"How would you describe your gender"}},contactDetails:{categoryLabel:"Contact Details",primary_phone:{label:"Mobile phone number"},secondary_phone:{label:"Landline phone number"},email:{label:"Email"}},emergencyContact:{categoryLabel:" Emergency contact",first_name:{label:"First name"},last_name:{label:"Last name"},relationship:{label:"Relationship"},mobile_phone_number:{label:"Mobile phone number"},home_phone_number:{label:"Landline phone number"},email:{label:"Email"}},healthMedicareDva:{categoryLabel:"Medicare / heath fund",health_medicare_number:{label:"Medicare number"},health_medicare_irn:{label:"Medicare IRN"},health_medicare_expiry:{label:"Medicare expiry",formatAs:"dayMonth"},health_dva_number:{label:"DVA number"},health_dva_expiry:{label:"Health DVA expiry",formatAs:"dayMonth"}},demographics:{categoryLabel:"Demographics",country_of_birth:{label:"Country of birth"},occupation:{label:"Occupation"},heritage:{label:"Are you of Aboriginal or Torres Strait Islander"},marital_status:{label:"Marital status"}}},REGISTRATION_CONFLICTS_CONTENT={HEADER:"Resolve data conflicts",SUBHEADER:"An update made in Mosaiq has resulted in the below data conflicts. Please confirm which information is correct below before submitting this registration form.",NO_DATA_CONFLICTS_MESSAGE:"There are currently no data conflicts to resolve, please continue reviewing the Registration form for submission.",RADIO:{LABEL:{NOT_PROVIDED:"Not Provided"},VALUE:{HZ:"HZ",MQ:"MQ"}},BUTTON:{RESOLVE_CONFLICTS:"Resolve conflicts"}},preNestedCategory=["emergencyContact"],mapFieldToCategory=(et,tt)=>{const rt=Object.keys(tt).filter(lt=>!preNestedCategory.includes(lt)),nt=Object.entries(et).reduce((lt,ut)=>{const[dt,pt]=ut;return rt.forEach(ht=>{tt[ht].hasOwnProperty(dt)&&(lt[ht]?lt[ht][dt]=pt:lt[ht]={[dt]:pt})}),lt},{});if(et.hasOwnProperty("emergencyContact")){const{emergencyContact:lt}=et;return{...nt,emergencyContact:lt}}else return nt},displayLabelAs=({value:et,refData:tt,formatAs:rt})=>{const{NOT_PROVIDED:nt}=REGISTRATION_CONFLICTS_CONTENT.RADIO.LABEL;return et===""?nt:tt?resolveListDataValue(et.toString(),tt):rt&&rt=="dayMonth"?hooks(et).format("MM / YYYY"):et},RegistrationConflicts=({patient:et,refData:tt,updatePatient:rt,resolvePatientConflicts:nt,isPso:lt,saveStatus:ut})=>{const{HEADER:dt,SUBHEADER:pt,NO_DATA_CONFLICTS_MESSAGE:ht,RADIO:mt}=REGISTRATION_CONFLICTS_CONTENT,xt=JSON.parse(et.diffMqData),Mt=mapFieldToCategory(xt,categoryFieldNames),[vt,Ot]=reactExports.useState(Mt),At={name_prefix:tt.titleRefData,relationship:tt.relationshipsRefData,heritage:tt.heritageRefData,gender:tt.genderRefData,marital_status:tt.maritalStatusRefData,country_of_birth:tt.countryOfBirthRefData,language_spoken:tt.languageSpokenRefData,medicare_type:tt.medicareTypeRefData,aus_state:tt.ausStateRefData},Rt=async(It,Dt,kt,qt)=>{let Nt=Dt,Yt=qt.target.value;const Kt={[It]:{...vt[It],[Nt]:{...vt[It][Nt],selectedOption:Yt}}};Ot({...vt,...Kt}),preNestedCategory.includes(It)&&(Nt=It,Yt=JSON.stringify({...Kt[It]})),rt({variables:{patientId:kt,diffSelectedKey:Nt,diffSelectedValue:Yt}})},zt=Object.values(vt).reduce((It,Dt)=>[...It,...Object.values(Dt)],[]).map(It=>It.selectedOption).includes(""),Tt={displayStyle:"warning",title:"Warning: ",text:"Resolve data conflicts. Please resolve these conflicts first before reviewing the registration form."},Ct=et&&et.diffMqData&&Object.entries(JSON.parse(`${et.diffMqData}`)).length!==0;return jsxRuntimeExports.jsx(routerComponent,{patient:et,genderRefData:tt.genderRefData,isPso:lt,saveStatus:ut,resolvePatientConflicts:nt,hasDataConflicts:Ct,resolveConflictsIncomplete:zt,alertHeader:Tt,children:Ct?jsxRuntimeExports.jsxs("div",{className:"form-page form-page-registration-conflicts",children:[jsxRuntimeExports.jsx("div",{className:"form-heading",children:dt}),jsxRuntimeExports.jsxs("div",{className:"info-container",children:[jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning",className:"alertIcon"}),jsxRuntimeExports.jsx("span",{"data-test-id":"form-subheader",children:pt})]}),jsxRuntimeExports.jsx("form",{className:"form-container",children:Object.entries(vt).map((It,Dt)=>{const[kt,qt]=It,{categoryLabel:Nt}=categoryFieldNames[kt],Yt=Object.entries(qt).map(Jt=>Jt[1].selectedOption).includes(""),Kt=(Jt,Qt)=>({value:preNestedCategory.includes(Jt)?et[Jt][snakeToCamel(Qt)]:et[snakeToCamel(Qt)],refData:At[Qt]});return jsxRuntimeExports.jsx("div",{className:"newspaper-container",children:jsxRuntimeExports.jsx(NewsCard,{title:Nt,invalidContent:Yt,primaryIcon:Yt?jsxRuntimeExports.jsx(SvgErrorExclamation,{className:"primary-icon invalid-icon"}):jsxRuntimeExports.jsx(SvgSuccess,{className:"primary-icon valid-icon"}),children:Object.entries(qt).map((Jt,Qt)=>{const[Bt,Ft]=Jt,$t=categoryFieldNames[kt][Bt].label,jt=categoryFieldNames[kt][Bt].formatAs,Wt=displayLabelAs({value:Ft.mqConflictValue,refData:At[Bt],formatAs:jt}),Ut=Kt(kt,Bt);Ut.formatAs=jt;const Ht=[{label:displayLabelAs(Ut),value:mt.VALUE.HZ},{label:Wt,value:mt.VALUE.MQ}];return jsxRuntimeExports.jsx(RadioGroupField,{name:`${kt}${Bt}`,fieldLabel:$t,options:Ht,selectedOption:vt[kt][Bt].selectedOption,handleChange:Gt=>Rt(kt,Bt,et.id,Gt)},`radiogroupfield-${Bt}-${Qt}`)})})},`category-card-${kt}-${Dt}`)})})]}):jsxRuntimeExports.jsx("div",{children:ht})})},PATIENT_AND_USER_DETAILS_QUERY$8=gql`
  query PatientAndUserDetails($patientId: ID!) {
    patient(id: $patientId) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      firstName
      middleName
      lastName
      ida
      gender
      dob
      namePrefix
      preferredName
      dobRawDay
      dobRawMonth
      dobRawYear
      primaryPhone
      secondaryPhone
      email
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressState
      residentialAddressPostcode
      residentialAddressCountry
      postalAddressSameAsResidential
      postalAddressLine1
      postalAddressLine2
      postalAddressCity
      postalAddressState
      postalAddressPostcode
      postalAddressCountry
      address {
        id
        formattedAddress
      }
      attachments {
        id
        filename
        documentType
        filesize
        submitted
        url
        encounterDate
      }
      emergencyContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      nextOfKinContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      altContactProvided
      referringFirstName
      referringLastName
      referringPractice
      referringIsInMosaiq
      gpFirstName
      gpLastName
      gpPractice
      gpIsInMosaiq
      referrersOtherSpecialists
      healthMedicareDvaOption
      healthMedicareNumber
      healthMedicareIrn
      healthMedicareExpiry
      healthDvaExpiry
      healthDvaNumber
      healthDvaType
      healthPrivateHealthInsurance
      healthPrivateHealthFundName
      healthPrivateHealthFundNumber
      healthPensionCard
      healthPensionCardNumber
      healthPensionCardExpiry
      countryOfBirth
      languageAtHome
      occupation
      heritage
      maritalStatus
      interpreterRequired
      informationNoticeContent
      informationNoticeAccepted
      additionalComments
      diffMqData
    }

    titleRefData: listData(category: "nameTitle") {
      id
      name
    }
    relationshipsRefData: listData(category: "relationships") {
      id
      name
    }
    heritageRefData: listData(category: "heritage") {
      id
      name
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      name
    }
    countryOfBirthRefData: listData(category: "countryOfBirth") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    languageSpokenRefData: listData(category: "languages") {
      id
      name
    }
    medicareTypeRefData: listData(category: "healthFund") {
      id
      name
      appKey
    }
    dvaTypeRefData: listData(category: "dvaCardType") {
      id
      name
      appKey
    }
    ausStateRefData: listData(category: "australiaStates") {
      id
      name
    }
    user {
      id
      isPso
    }
    profile(id: $id) {
      id
      patientFeatures(id: $id) {
        doctorReferralLookupEnabled
      }
    }
  }
`,UPDATE_REGO_DATA_CONFLICTS=gql`
  mutation UpdateRegistrationDataConflicts($patientId: ID!, $diffSelectedKey: String!, $diffSelectedValue: String!) {
    updateRegistrationDataConflicts(
      patientId: $patientId
      diffSelectedKey: $diffSelectedKey
      diffSelectedValue: $diffSelectedValue
    ) {
      patient {
        id
        diffMqData
      }
    }
  }
`,RESOLVE_PATIENT_CONFLICTS=gql`
  mutation resolveDataConflicts($patientId: ID!) {
    resolvePatientConflicts(patientId: $patientId) {
      patient {
        id
      }
    }
  }
`,RegistrationConflictsApollo=({match:et,history:tt,showModalIfLocked:rt})=>{const[nt,lt]=reactExports.useState(""),{patientId:ut}=et.params,{setError:dt}=useErrorModalContext(),{loading:pt,error:ht,data:mt}=useQuery(PATIENT_AND_USER_DETAILS_QUERY$8,{variables:{patientId:ut},fetchPolicy:"no-cache",onCompleted:vt=>(rt(vt),vt)});reactExports.useEffect(()=>{if(ht)return dt()},[ht]);const[xt]=useMutation(UPDATE_REGO_DATA_CONFLICTS,{onError:()=>{lt(SavingStatus.FAILED)},onCompleted:vt=>(rt(vt),lt(SavingStatus.SAVED),vt)}),[Mt]=useMutation(RESOLVE_PATIENT_CONFLICTS,{onCompleted:()=>{tt.push({pathname:`/registration/${ut}/summary`})}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[pt&&jsxRuntimeExports.jsx(LoadingSpinner,{}),mt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:mt.patient.id}),jsxRuntimeExports.jsx(RegistrationConflicts,{patient:mt.patient,refData:{titleRefData:mt.titleRefData,relationshipsRefData:mt.relationshipsRefData,heritageRefData:mt.heritageRefData,genderRefData:mt.genderRefData,maritalStatusRefData:mt.maritalStatusRefData,countryOfBirthRefData:mt.countryOfBirthRefData,languageSpokenRefData:mt.languageSpokenRefData,medicareTypeRefData:mt.medicareTypeRefData,ausStateRefData:mt.ausStateRefData},isPso:mt.user.isPso,updatePatient:xt,resolvePatientConflicts:Mt,saveStatus:nt})]})]})},apolloComponent$c=RegistrationConflictsApollo,component$7=withRegistrationForm(apolloComponent$c),SSOPage=()=>{const et=useHistory(),{data:tt,loading:rt}=useQuery(GET_USER_PROFILE);if(rt)return jsxRuntimeExports.jsxs(Stack$5,{width:1,height:1,justifyContent:"center",direction:"row",padding:3,alignItems:"center",gap:2,children:[jsxRuntimeExports.jsx(CircularProgress,{color:"primary"}),jsxRuntimeExports.jsx(Typography,{children:"Redirecting..."})]});tt!=null&&tt.user&&window.location.replace("/server/auth/redirect");const nt=et.location.pathname,lt=nt==="/"?"server/auth/redirect":nt;return jsxRuntimeExports.jsx(Redirect,{to:`/sso/login?next=/${lt}`})},FORM_HEADING$2="Demographics",FIELD_INFO={ETHNICITY:{key:"ethnicity",name:"ethnicity",emptyMessage:"Please select one of the options",heading:"Ethnicity",placeholder:""},RELIGION:{key:"religion",name:"religion",emptyMessage:"Please select one of the options",heading:"Religion",placeholder:""},MARITAL_STATUS:{key:"maritalStatus",name:"maritalStatus",emptyMessage:"Please select one of the options",heading:"Marital status",placeholder:""}};class UKRegistrationDemographics extends reactExports.Component{constructor(tt){super(tt),this.state={viewed:new Set}}render(){const{patient:tt,genderRefData:rt,isPso:nt,saveStatus:lt}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:tt,genderRefData:rt,isPso:nt,saveStatus:lt,children:this.renderRegistrationBasicDetailsForm(tt)})}autosave(tt,rt,nt,lt=!0){if(this.props.autosave(tt,rt,nt),lt){const ut=this.state.viewed.add(rt);this.setState({viewed:ut})}}validateForm(){const tt=[FIELD_INFO.ETHNICITY.key,FIELD_INFO.RELIGION.key,FIELD_INFO.MARITAL_STATUS.key],rt=new Set(tt);this.setState({viewed:rt})}renderRegistrationBasicDetailsForm(tt){const{ethnicityRefData:rt,religionRefData:nt,maritalStatusRefData:lt}=this.props,ut={ethnicity:{presence:{allowEmpty:!1,message:FIELD_INFO.ETHNICITY.emptyMessage}},religion:{presence:{allowEmpty:!1,message:FIELD_INFO.RELIGION.emptyMessage}},maritalStatus:{presence:{allowEmpty:!1,message:FIELD_INFO.MARITAL_STATUS.emptyMessage}}},dt={};for(const xt of this.state.viewed.keys())dt[xt]=ut[xt];const pt={fullMessages:!1},ht={...tt},mt=validate(ht,dt,pt);return jsxRuntimeExports.jsx("div",{className:"form-page",children:jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading basic-details",children:FORM_HEADING$2}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(mt&&mt.ethnicity),htmlFor:FIELD_INFO.ETHNICITY.name,title:FIELD_INFO.ETHNICITY.heading,children:jsxRuntimeExports.jsx(DropDownField,{disabled:tt.lock&&tt.lock.readOnly,inputName:FIELD_INFO.ETHNICITY.name,placeholder:FIELD_INFO.ETHNICITY.placeholder,defaultValue:tt.ethnicity,options:rt,onChange:xt=>this.autosave(tt,"ethnicity",xt.target.value),errors:mt&&mt.ethnicity?mt.ethnicity:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(mt&&mt.religion),htmlFor:FIELD_INFO.RELIGION.name,title:FIELD_INFO.RELIGION.heading,children:jsxRuntimeExports.jsx(DropDownField,{disabled:tt.lock&&tt.lock.readOnly,inputName:FIELD_INFO.RELIGION.name,placeholder:FIELD_INFO.RELIGION.placeholder,defaultValue:tt.religion,options:nt,onChange:xt=>this.autosave(tt,"religion",xt.target.value),errors:mt&&mt.religion?mt.religion:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(mt&&mt.maritalStatus),htmlFor:FIELD_INFO.MARITAL_STATUS.name,title:FIELD_INFO.MARITAL_STATUS.heading,children:jsxRuntimeExports.jsx(DropDownField,{disabled:tt.lock&&tt.lock.readOnly,inputName:FIELD_INFO.MARITAL_STATUS.name,placeholder:FIELD_INFO.MARITAL_STATUS.placeholder,defaultValue:tt.maritalStatus,options:lt,onChange:xt=>this.autosave(tt,"maritalStatus",xt.target.value),errors:mt&&mt.maritalStatus?mt.maritalStatus:void 0})})]})})}}const PATIENT_AND_USER_DETAILS_QUERY$7=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      ida
      idb
      isProd
      ethnicity
      religion
      maritalStatus
      firstName
      lastName
      dob
      address {
        id
        ukFormattedAddress
      }
      lock {
        lockedBy
        readOnly
        lockedByName
      }
    }
    user {
      id
      isPso
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    ethnicityRefData: listData(category: "ethnicity") {
      id
      name
    }
    religionRefData: listData(category: "religion") {
      id
      name
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      name
    }
  }
`;class UKRegistrationDemographicsApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"autosave",async(rt,nt,lt,ut="String")=>{const dt=this.props.client,pt={key:nt,value:lt,type:ut},ht=await this.getPendingSaveCount();let mt=ht.currentPendingSaveCount+1,xt=ht.saveErrorCount;dt&&dt.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:mt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)}),dt==null||dt.mutate(this.props.getPatientMutation(rt,[pt])).then(Mt=>{Mt.data.updatePatient.errors&&xt++}).catch(()=>{xt++}).finally(async()=>{mt=(await this.getPendingSaveCount()).currentPendingSaveCount-1,dt&&dt.writeQuery({query:gql`
              query {
                pendingSaveCount
                saveErrorCount
              }
            `,data:{pendingSaveCount:mt,saveErrorCount:xt}}),this.setState({saveStatus:this.props.getSaveStatus(mt,xt)})})});Nr(this,"getPendingSaveCount",async()=>{const rt=this.props.client;let nt=0,lt=0;try{const ut=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE,variables:{}}));return nt=ut==null?void 0:ut.data.pendingSaveCount,lt=ut==null?void 0:ut.data.saveErrorCount,{currentPendingSaveCount:nt,saveErrorCount:lt}}catch(ut){throw ut}});this.state={saveStatus:SavingStatus.SAVED},this.getPendingSaveCount().then(nt=>{const lt=nt.currentPendingSaveCount,ut=nt.saveErrorCount;this.state={saveStatus:this.props.getSaveStatus(lt,ut)}})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$7,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,data:dt,error:pt})=>{if(ut)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(dt&&dt.patient){const ht={...dt.patient};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(UKRegistrationDemographics,{autosave:this.autosave,patient:ht,genderRefData:dt.genderRefData,religionRefData:dt.religionRefData,ethnicityRefData:dt.ethnicityRefData,maritalStatusRefData:dt.maritalStatusRefData,saveStatus:this.state.saveStatus,isPso:dt.user.isPso||!1})]})}return pt?jsxRuntimeExports.jsx("div",{children:`Error loading: ${pt}`}):jsxRuntimeExports.jsx("div",{})}})}}const apolloComponent$b=withApollo(UKRegistrationDemographicsApollo),component$6=withRegistrationForm(apolloComponent$b),GP_OPTIONS_QUERY=gql`
  query PatientAndUserDetails($id: ID!) {
    choices: practitioners(url: "https://genesiscare.com/fhir/general-practice-surgery", patient: $id) {
      id
      name
    }
  }
`,gpHelpString="Select the GP surgery to filter the available GP names",PLACEHOLDERS={GP_SURGERY:"Type to search",GP_NAME:"",SURGEON_LOCATION:"Type to search",SURGEON_NAME:"Type to search",ONCOLOGIST:"Required"},HEADINGS={GP_SURGERY:"GP surgery",GP_NAME:"General practitioner name",SURGEON_LOCATION:"Referring facility",SURGEON_NAME:"Referring clinician name",ONCOLOGIST:"Responsible clinician",PENDING_APPT:"Pending Appointment"},FIELD_NAMES$2={GP_SURGERY:"generalPractitionerLocation",GP_NAME:"generalPractitioner",SURGEON_LOCATION:"referringSurgeonLocation",SURGEON_NAME:"referringSurgeon",ONCOLOGIST:"oncologist",PENDING_APPT:"pendingAppt"},FORM_HEADING$1="Referring clinicians",StyledHelperDiv=styled$1("div")`
  margin-bottom: 8px;
  font-size: 14px;
  width: 100%;
  color: ${et=>et.theme.palette.grey[600]};
`;class UpdatableDropDown extends reactExports.Component{cleanInput(tt,rt){return rt&&rt.length>0&&rt.map(lt=>lt.id).indexOf(tt)>-1?tt:""}render(){const{gpInfo:tt,autosave:rt,errors:nt,initial:lt,query:ut,inputName:dt,placeholder:pt}=this.props;return jsxRuntimeExports.jsx(Query,{query:ut,variables:{id:tt.id},children:({data:ht,error:mt,refetch:xt})=>{const{setError:Mt}=useErrorModalContext();return reactExports.useEffect(()=>{if(mt)return Mt()},[mt]),this.refetch=xt,ht&&ht.choices?jsxRuntimeExports.jsx("div",{style:{width:"100%"},children:jsxRuntimeExports.jsx(DropDownField,{disabled:tt.lock&&tt.lock.readOnly,inputName:dt,placeholder:pt,defaultValue:this.cleanInput(lt,ht&&ht.choices?ht.choices:[]),options:ht&&ht.choices?ht.choices:[],onChange:async vt=>rt(tt,dt,vt.target.value),errors:nt})}):jsxRuntimeExports.jsx("div",{children:"loading"})}})}}class UKRegistrationGP extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderContents",()=>{const{gpInfo:rt,gpList:nt,outerCallbackHandler:lt}=this.props,ut=this.validateObject(rt);return jsxRuntimeExports.jsx("div",{className:"form-page",children:jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading gp-form-heading",children:FORM_HEADING$1}),jsxRuntimeExports.jsxs(FormSegmentField$1,{isValid:!(ut&&ut.generalPractitionerLocation),htmlFor:FIELD_NAMES$2.GP_SURGERY,title:HEADINGS.GP_SURGERY,children:[jsxRuntimeExports.jsx(StyledHelperDiv,{children:gpHelpString}),jsxRuntimeExports.jsx(AsyncAutocomplete,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES$2.GP_SURGERY,placeholder:PLACEHOLDERS.GP_SURGERY,fullName:!0,patient:rt.id,grapheneField:"practitionerLocations",onBlur:dt=>{this.autosave(rt,FIELD_NAMES$2.GP_SURGERY,dt)},defaultValue:rt.generalPractitionerLocation,errors:ut&&ut.generalPractitionerLocation?ut.generalPractitionerLocation:void 0})]}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(ut&&ut.generalPractitioner),htmlFor:FIELD_NAMES$2.GP_NAME,title:HEADINGS.GP_NAME,children:jsxRuntimeExports.jsx(UpdatableDropDown,{inputName:FIELD_NAMES$2.GP_NAME,placeholder:PLACEHOLDERS.GP_NAME,initial:rt.generalPractitioner,gpInfo:rt,query:GP_OPTIONS_QUERY,autosave:this.autosave,errors:ut&&ut.generalPractitioner?ut.generalPractitioner:void 0,ref:nt})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(ut&&ut.referringSurgeon),htmlFor:FIELD_NAMES$2.SURGEON_NAME,title:HEADINGS.SURGEON_NAME,children:jsxRuntimeExports.jsx(AsyncAutocomplete,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES$2.SURGEON_NAME,placeholder:PLACEHOLDERS.SURGEON_NAME,grapheneField:"extPractitioners",fullName:!1,patient:rt.id,onBlur:dt=>{this.autosave(rt,FIELD_NAMES$2.SURGEON_NAME,dt)},defaultValue:rt.referringSurgeon,errors:ut&&ut.referringSurgeon?ut.referringSurgeon:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(ut&&ut.referringSurgeonLocation),htmlFor:FIELD_NAMES$2.SURGEON_LOCATION,title:HEADINGS.SURGEON_LOCATION,children:jsxRuntimeExports.jsx(AsyncAutocomplete,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES$2.SURGEON_LOCATION,placeholder:PLACEHOLDERS.SURGEON_LOCATION,grapheneField:"practitionerLocations",fullName:!0,patient:rt.id,onBlur:dt=>{this.autosave(rt,FIELD_NAMES$2.SURGEON_LOCATION,dt)},defaultValue:rt.referringSurgeonLocation,errors:ut&&ut.referringSurgeonLocation?ut.referringSurgeonLocation:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(ut&&ut.oncologist),htmlFor:FIELD_NAMES$2.ONCOLOGIST,title:HEADINGS.ONCOLOGIST,children:jsxRuntimeExports.jsx(AsyncAutocomplete,{inputName:FIELD_NAMES$2.ONCOLOGIST,placeholder:PLACEHOLDERS.ONCOLOGIST,grapheneField:"oncologists",fullName:!1,patient:rt.id,onBlur:dt=>{this.autosave(rt,FIELD_NAMES$2.ONCOLOGIST,dt)},defaultValue:rt.oncologist,errors:ut&&ut.oncologist?ut.oncologist:void 0})}),jsxRuntimeExports.jsx(ReferralField$1,{patient:rt,callbackHandler:lt})]})})});Nr(this,"autosave",async(rt,nt,lt)=>{let ut=this.state.viewed.add(nt);const{gpList:dt}=this.props;await this.props.autosave(rt,nt,lt),nt==="generalPractitionerLocation"&&(lt&&(ut=ut.add("generalPractitioner")),setTimeout(function(){dt.current&&dt.current.refetch()},500)),await this.setState({viewed:ut})});Nr(this,"validateObject",rt=>{const nt={generalPractitionerLocation:{presence:{allowEmpty:!0}},generalPractitioner:{presence:{allowEmpty:!rt.generalPractitionerLocation,message:"Please select a practitioner"}},referringSurgeonLocation:{presence:{allowEmpty:!0}},referringSurgeon:{presence:{allowEmpty:!0,message:"Please select a surgeon"}},oncologist:{presence:{allowEmpty:!1,message:"Please select oncologist"}}},lt={};for(const dt of this.state.viewed.keys())lt[dt]=nt[dt];return validate(rt,lt,{fullMessages:!1})});this.state={viewed:new Set}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad&&rt.gpInfo.lock&&!rt.gpInfo.lock.readOnly){const lt=Object.keys(FIELD_NAMES$2).map(dt=>FIELD_NAMES$2[dt]);return{viewed:new Set(lt)}}return nt}render(){const{isPso:rt,saveStatus:nt,gpInfo:lt,genderRefData:ut}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:lt,isPso:rt,saveStatus:nt,genderRefData:ut,children:this.renderContents()})}}Nr(UKRegistrationGP,"defaultProps",{gpList:React$4.createRef()});const PATIENT_AND_USER_DETAILS_QUERY$6=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      generalPractitionerLocation
      generalPractitioner
      referringSurgeonLocation
      referringSurgeon
      oncologist
      ida
      idb
      gender
      isProd
      dob
      firstName
      lastName
      primaryCenter
      hasPendingAppointments
      hasDraftCareplan
      serviceRequests {
        id
        referralType
        referralStatus
        date
        createdAt
        encounterDate
      }
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      address {
        id
        ukFormattedAddress
      }
    }
    user {
      id
      isPso
    }
    gpRefData: practitioners(url: "https://genesiscare.com/fhir/general-practice-surgery", patient: $id) {
      id
      name
    }
    surgeonRefData: practitioners(url: "https://genesiscare.com/fhir/referring-surgeon-location", patient: $id) {
      id
      name
    }
    oncologistRefData: oncologists(patient: $id, search: "") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
  }
`;class UKRegistrationGPApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"autosave",async(rt,nt,lt)=>{const ut=this.props.client,dt=[{key:nt,value:lt,type:"String"}],pt=await this.getApolloCache();let ht=pt.currentPendingSaveCount+1,mt=pt.saveErrorCount;ut&&ut.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:ht}}),this.setState({saveStatus:this.props.getSaveStatus(ht,mt)}),ut==null||ut.mutate(this.props.getPatientMutation(rt,dt)).then(xt=>{xt.data.updatePatient.errors&&mt++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),mt++}).finally(async()=>{ht=(await this.getApolloCache()).currentPendingSaveCount-1;const Mt={saveStatus:this.props.getSaveStatus(ht,mt)};ut&&ut.writeQuery({query:gql`
              query {
                pendingSaveCount
                saveErrorCount
              }
            `,data:{pendingSaveCount:ht,saveErrorCount:mt}}),this.setState(Mt)})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1,pollInterval:0}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=lt.registrationPagesViewed;nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.GP_INFO)}),nt.includes(BASE_REGISTRATION_PAGES.GP_INFO)||(nt=[...nt,BASE_REGISTRATION_PAGES.GP_INFO]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$6,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,error:dt,data:pt,refetch:ht})=>{if(ut)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(pt&&pt.patient){const mt={...pt.patient};return this.userIsPSO=pt.user.isPso||!1,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:pt.patient.id}),jsxRuntimeExports.jsx(UKRegistrationGP,{gpInfo:mt,autosave:this.autosave,gpRefData:pt.gpRefData,genderRefData:pt.genderRefData,surgeonRefData:pt.surgeonRefData,saveStatus:this.state.saveStatus,oncologistRefData:pt.oncologistRefData,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO,outerCallbackHandler:ht})]})}return dt?jsxRuntimeExports.jsx("div",{children:`Error loading: ${dt}`}):jsxRuntimeExports.jsx("div",{})}})}}const apolloComponent$a=withApollo(UKRegistrationGPApollo),component$5=withRegistrationForm(apolloComponent$a),FORM_HEADING="Review & submit";class UKRegistrationSummary extends reactExports.Component{constructor(){super(...arguments);Nr(this,"renderContents",()=>{const{patient:rt,countryOfBirthRefData:nt,languageSpokenRefData:lt,ethnicityRefData:ut,religionRefData:dt,maritalStatusRefData:pt,gpSurgeryRefData:ht,surgeonLocationRefData:mt,insurerRefData:xt,relationshipRefData:Mt,gpRefData:vt,surgeonRefData:Ot,oncologistRefData:At,documentTypeRefData:Rt}=this.props,zt={countries:nt,languages:lt,ethnicities:ut,religions:dt,maritalStatuses:pt,gpSurgeryRefData:ht,surgeonLocationRefData:mt,gpRefData:vt,surgeonRefData:Ot,insurers:xt,coverageRelationships:Mt,oncologistRefData:At,documentTypeRefData:Rt},Tt=validateRegistration(rt,ValidationKeys$1.All,zt,Region.UK);return jsxRuntimeExports.jsxs("div",{className:"form-page form-page-registration-summary",children:[jsxRuntimeExports.jsx("div",{className:"form-heading",children:FORM_HEADING}),jsxRuntimeExports.jsx("form",{className:"form-container",children:jsxRuntimeExports.jsxs("div",{className:"newspaper-container",children:[this.renderBasicDetails(Tt),this.renderContactDetails(Tt),this.renderAddress(Tt),this.renderAlternateContact(Tt),this.renderGPInformation(Tt),this.renderDemographics(Tt),this.renderPreferencesInformation(Tt),this.renderInsuranceInformation(Tt),rt.attachments.length>0&&this.renderAttachments()]})})]})});Nr(this,"renderBasicDetails",rt=>{const{patient:nt,titleRefData:lt,genderRefData:ut,primaryCenterRefData:dt,navigateToPage:pt,nhsOptionsRefData:ht,registrationReasonRefData:mt}=this.props,xt=this.isInvalidSection(INVALID_SECTIONS$1.BASIC,rt);let Mt="";nt.primaryCenter&&(Mt=this.getDisplayValue(dt,nt.primaryCenter));let vt="";nt.nhsOptions&&(vt=this.getDisplayValue(ht,nt.nhsOptions));let Ot="";nt.registrationReason&&(Ot=this.getDisplayValue(mt,nt.registrationReason));let At="";return nt.registrationReasonText&&(At=nt.registrationReasonText),jsxRuntimeExports.jsxs(NewsCard,{title:"Basic details",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(xt),invalidContent:xt,onClick:()=>{pt("basic")},children:[this.renderNewsCardRow("Title",this.getDisplayValue(lt,nt.namePrefix),rt&&rt.namePrefix?rt.namePrefix:void 0),this.renderNewsCardRow("First name",nt.firstName,rt&&rt.firstName?rt.firstName:void 0),this.renderNewsCardRow("Middle name",nt.middleName,rt&&rt.middleName?rt.middleName:void 0),this.renderNewsCardRow("Last name",nt.lastName,rt&&rt.lastName?rt.lastName:void 0),this.renderNewsCardRow("Gender",this.getDisplayValue(ut,nt.gender),!nt.gender),this.renderNewsCardRow("Date of birth",DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(nt.dob),rt&&rt.dobRaw?rt.dobRaw:void 0),this.renderNewsCardRow("Preferred centre",Mt,!Mt),this.renderNewsCardRow("NHS number",nt.idb,rt&&rt.idb?rt.idb:void 0),this.renderNewsCardRow("Reason NHS ID is not provided",vt,rt&&rt.nhsOptions?rt.nhsOptions:void 0),this.renderNewsCardRow("Registration reason",Ot,rt&&rt.registrationReason?rt.registrationReason:void 0),Ot==="Other"&&this.renderNewsCardRow("Registration reason",At,rt&&rt.registrationReasonText?rt.registrationReasonText:void 0)]})});Nr(this,"addPlus",(rt,nt)=>rt!==""?rt+" + "+nt:rt+nt);Nr(this,"getPreference",()=>{const{patient:rt}=this.props;let nt="";return rt.preferenceMessage&&(nt=this.addPlus(nt,"Voicemail")),rt.preferenceText&&(nt=this.addPlus(nt,"Text (SMS)")),rt.preferenceEmail&&(nt=this.addPlus(nt,"Email")),nt!==""&&nt.split(" ").length===1&&(nt+=" ONLY"),nt});Nr(this,"renderContactDetails",rt=>{const{patient:nt,navigateToPage:lt}=this.props,ut=this.isInvalidSection(INVALID_SECTIONS$1.CONTACT,rt),dt=this.getPreference();return jsxRuntimeExports.jsxs(NewsCard,{title:"Contact details",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(ut),invalidContent:ut,onClick:()=>{lt("contact")},children:[this.renderNewsCardRow("Mobile phone number",nt.primaryPhone,rt&&rt.primaryPhone?rt.primaryPhone:void 0),this.renderNewsCardRow("Home phone number",nt.secondaryPhone,rt&&rt.secondaryPhone?rt.secondaryPhone:void 0),this.renderNewsCardRow("Email",nt.email,rt&&rt.email?rt.email:void 0,!1),this.renderNewsCardRow("Contact preferences",dt,!1,!0)]})});Nr(this,"renderAddress",rt=>{const{patient:nt,countryOfBirthRefData:lt,navigateToPage:ut}=this.props,dt=this.isInvalidSection(INVALID_SECTIONS$1.ADDRESS,rt);return jsxRuntimeExports.jsxs(NewsCard,{title:"Address",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(dt),invalidContent:dt,onClick:()=>{ut("address")},children:[this.renderNewsCardRow("Address line 1",nt.residentialAddressLine1,rt&&rt.residentialAddressLine1?rt.residentialAddressLine1:void 0),this.renderNewsCardRow("Address line 2",nt.residentialAddressLine2,!1,!0),this.renderNewsCardRow("City / Town",nt.residentialAddressCity,rt&&rt.residentialAddressCity?rt.residentialAddressCity:void 0),this.renderNewsCardRow("Country",this.getDisplayValue(lt,nt.residentialAddressCountry),rt&&rt.residentialAddressCountry?rt.residentialAddressCountry:void 0),this.renderNewsCardRow("County",this.getUKCounty(nt.residentialAddressCountry,nt.residentialAddressState),rt&&rt.residentialAddressState?rt.residentialAddressState:void 0),this.renderNewsCardRow("Postcode",nt.residentialAddressPostcode,rt&&rt.residentialAddressPostcode?rt.residentialAddressPostcode:void 0)]})});Nr(this,"renderAlternateContact",rt=>{const{patient:nt,relationshipsRefData:lt,navigateToPage:ut}=this.props,{emergencyContact:dt,nextOfKinContact:pt}=nt,ht=!!dt.homePhoneNumber,mt=pt&&!!pt.homePhoneNumber,xt=this.isInvalidSection(INVALID_SECTIONS$1.UK_ALT_CONTACT,rt);return jsxRuntimeExports.jsxs(NewsCard,{title:"Alternate contacts",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(xt),invalidContent:xt,onClick:()=>{ut("altcontact")},children:[jsxRuntimeExports.jsx("div",{className:"form-heading",children:"Emergency"}),this.renderNewsCardRow("First name",dt.firstName,rt&&rt["emergencyContact.firstName"]?rt["emergencyContact.firstName"]:void 0),this.renderNewsCardRow("Last name",dt.lastName,rt&&rt["emergencyContact.lastName"]?rt["emergencyContact.lastName"]:void 0),this.renderNewsCardRow("Relationship",this.getDisplayValue(lt,dt.relationship),rt&&rt["emergencyContact.relationship"]?rt["emergencyContact.relationship"]:void 0),this.renderNewsCardRow("Mobile phone number",dt.mobilePhoneNumber,rt&&rt["emergencyContact.mobilePhoneNumber"]?rt["emergencyContact.mobilePhoneNumber"]:void 0),ht&&this.renderNewsCardRow("Home phone number",dt.homePhoneNumber,rt&&rt["emergencyContact.homePhoneNumber"]?rt["emergencyContact.homePhoneNumber"]:void 0),this.renderNewsCardRow("Email",dt.email,rt&&rt["emergencyContact.email"]?rt["emergencyContact.email"]:void 0),this.renderNewsCardRow("Next of Kin is the same as Emergency contact",this.convertFromBooleanToString(nt.sameAsEmergency),rt&&rt.sameAsEmergency?rt.sameAsEmergency:void 0),nt.sameAsEmergency!==!0&&!!pt&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"form-heading",children:"Next of Kin"}),this.renderNewsCardRow("First name",pt.firstName,rt&&rt["nextOfKinContact.firstName"]?rt["nextOfKinContact.firstName"]:void 0),this.renderNewsCardRow("Last name",pt.lastName,rt&&rt["nextOfKinContact.lastName"]?rt["nextOfKinContact.lastName"]:void 0),this.renderNewsCardRow("Relationship",this.getDisplayValue(lt,pt.relationship),rt&&rt["nextOfKinContact.relationship"]?rt["nextOfKinContact.relationship"]:void 0),this.renderNewsCardRow("Mobile phone number",pt.mobilePhoneNumber,rt&&rt["nextOfKinContact.mobilePhoneNumber"]?rt["nextOfKinContact.mobilePhoneNumber"]:void 0),mt&&this.renderNewsCardRow("Home phone number",pt.homePhoneNumber,rt&&rt["nextOfKinContact.homePhoneNumber"]?rt["nextOfKinContact.homePhoneNumber"]:void 0),this.renderNewsCardRow("Email",pt.email,rt&&rt["nextOfKinContact.email"]?rt["nextOfKinContact.email"]:void 0)]})]})});Nr(this,"renderGPInformation",rt=>{const{patient:nt,navigateToPage:lt,gpRefData:ut,gpSurgeryRefData:dt,surgeonLocationRefData:pt,surgeonRefData:ht,oncologistRefData:mt}=this.props,xt=this.isInvalidSection(INVALID_SECTIONS$1.UK_GP,rt),Mt=nt.serviceRequests?nt.serviceRequests:[];return jsxRuntimeExports.jsxs(NewsCard,{title:"Referring clinicians",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(xt),invalidContent:xt,onClick:()=>{lt("gp")},children:[this.renderNewsCardRow("GP surgery",this.getDisplayValue(dt,nt.generalPractitionerLocation),rt&&rt.generalPractitionerLocation?rt.generalPractitionerLocation:void 0),this.renderNewsCardRow("GP name",this.getDisplayValue(ut,nt.generalPractitioner),rt&&rt.generalPractitioner?rt.generalPractitioner:void 0),this.renderNewsCardRow("Referring clinician name",this.getDisplayValue(ht,nt.referringSurgeon),rt&&rt.referringSurgeon?rt.referringSurgeon:void 0),this.renderNewsCardRow("Referring facility",this.getDisplayValue(pt,nt.referringSurgeonLocation),rt&&rt.referringSurgeonLocation?rt.referringSurgeonLocation:void 0),this.renderNewsCardRow("Responsible clinician",this.getDisplayValue(mt,nt.oncologist),rt&&rt.oncologist?rt.oncologist:void 0),Mt.length>0&&jsxRuntimeExports.jsx("div",{className:"form-heading",children:"Referrals"}),Mt.length>0&&nt.serviceRequests.map(vt=>this.renderNewsCardRow("Pending Referral",moment$2(vt.encounterDate).format("DD MMM YYYY")))]})});Nr(this,"renderDemographics",rt=>{const{patient:nt,maritalStatusRefData:lt,ethnicityRefData:ut,religionRefData:dt,navigateToPage:pt}=this.props,ht=this.isInvalidSection(INVALID_SECTIONS$1.UK_DEMOGRAPHICS,rt);return jsxRuntimeExports.jsxs(NewsCard,{title:"Demographics",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(ht),invalidContent:ht,onClick:()=>{pt("demographics")},children:[this.renderNewsCardRow("Ethnicity",this.getDisplayValue(ut,nt.ethnicity),rt&&rt.ethnicity?rt.ethnicity:void 0),this.renderNewsCardRow("Religion",this.getDisplayValue(dt,nt.religion),rt&&rt.religion?rt.religion:void 0),this.renderNewsCardRow("Marital status",this.getDisplayValue(lt,nt.maritalStatus),rt&&rt.maritalStatus?rt.maritalStatus:void 0)]})});Nr(this,"renderPreferencesInformation",rt=>{const{patient:nt,navigateToPage:lt}=this.props,ut=this.isInvalidSection(INVALID_SECTIONS$1.PREFERENCES,rt);return jsxRuntimeExports.jsx(NewsCard,{title:"Preferences",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(ut),invalidContent:ut,onClick:()=>{lt("preferences")},children:this.renderNewsCardRow("Accepts Data Share",this.convertFromBooleanToString(nt.acceptsDataShare),rt&&rt.acceptsDataShare?rt.acceptsDataShare:!1)})});Nr(this,"renderInsuranceInformation",rt=>{const{patient:nt,navigateToPage:lt,relationshipRefData:ut,insurerRefData:dt}=this.props,pt=this.isInvalidSection(INVALID_SECTIONS$1.INSURANCE,rt);return jsxRuntimeExports.jsxs(NewsCard,{title:"Insurance",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(pt),invalidContent:pt,onClick:()=>{lt("insurance")},children:[this.renderNewsCardRow("Insurance company",this.getDisplayValue(dt,nt.payor),rt&&rt.payor?rt.payor:void 0),this.renderNewsCardRow("Patient relationship to policy holder",this.getDisplayValue(ut,nt.coverageRelationship),rt&&rt.coverageRelationship?rt.coverageRelationship:void 0),this.renderNewsCardRow("Pre auth number",nt.preAuthNumber,rt&&rt.preAuthNumber?rt.preAuthNumber:void 0),this.renderNewsCardRow("Insurance policy number",nt.policyNumber,rt&&rt.policyNumber?rt.policyNumber:void 0)]})});Nr(this,"renderAttachments",()=>{const{patient:rt,navigateToPage:nt,documentTypeRefData:lt}=this.props;return jsxRuntimeExports.jsx(NewsCard,{title:"Attachments",primaryIcon:jsxRuntimeExports.jsx(SvgEdit,{className:"primary-icon"}),secondaryIcon:this.validationIcon(!1),invalidContent:!1,onClick:()=>{nt("attachments")},children:rt.attachments.map(ut=>this.renderNewsCardRow(this.getDisplayValue(lt,ut.typeDisplay),ut.filename))})});Nr(this,"renderNewsCardRow",(rt,nt,lt=!1,ut=!1,dt)=>{const pt=this.renderContentMessage(nt,dt),ht=(pt===dt||pt==="Not provided")&&ut;return jsxRuntimeExports.jsxs("div",{className:classNames$1("newscard-row",{"invalid-data":lt}),children:[jsxRuntimeExports.jsxs("div",{className:"newscard__title newscard--bold",children:[rt,ut&&" (optional)"]}),jsxRuntimeExports.jsx("div",{className:classNames$1("newscard__content",{optional:ht}),children:pt})]})});Nr(this,"renderContentMessage",(rt,nt)=>!rt||rt.trim()===""?nt||"Not provided":rt);Nr(this,"convertFromBooleanToString",rt=>rt?"Yes":rt===!1?"No":"");Nr(this,"getDisplayValue",(rt,nt)=>{for(let lt=0;lt<rt.length;lt++)if(rt[lt].id===nt)return rt[lt].name;return nt});Nr(this,"getUKCounty",(rt,nt)=>{const{countryOfBirthRefData:lt,ausStateRefData:ut}=this.props,dt=this.getCountryRefId();return rt===lt[dt].id?this.getDisplayValue(ut,nt):nt});Nr(this,"getStateOrTerritoryLabel",rt=>{const{countryOfBirthRefData:nt}=this.props,lt=this.getCountryRefId();return rt===nt[lt].id?"County":"State / Province / Region"});Nr(this,"getCountryRefId",()=>{const{countryOfBirthRefData:rt}=this.props;return rt.findIndex(nt=>nt.name.toLowerCase()==="united kingdom")});Nr(this,"isInvalidSection",(rt,nt)=>nt&&nt.invalidSections?nt.invalidSections.includes(rt):!1);Nr(this,"validationIcon",rt=>{const nt="secondary-icon";return rt?jsxRuntimeExports.jsx(SvgErrorExclamation,{className:`${nt} invalid-icon`}):jsxRuntimeExports.jsx(SvgSuccess,{className:`${nt} valid-icon`})})}render(){const{patient:rt,genderRefData:nt,isPso:lt,saveStatus:ut,submitRegistration:dt,submitStatus:pt}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:rt,genderRefData:nt,isProd:rt.isProd,isPso:lt,saveStatus:ut,submitRegistration:dt,submitStatus:pt,children:this.renderContents()})}}const logger$t=new Logger("RegistrationSummaryApollo"),PATIENT_AND_USER_DETAILS_QUERY$5=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      ida
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      firstName
      middleName
      lastName
      namePrefix
      preferredName
      dob
      address {
        id
        ukFormattedAddress
      }
      serviceRequests {
        id
        referralType
        referralStatus
        date
        encounterDate
      }
      dobRawDay
      dobRawMonth
      dobRawYear
      primaryPhone
      secondaryPhone
      email
      preferenceText
      preferenceEmail
      preferenceMessage
      contactPreferences
      attachments {
        id
        filename
        typeDisplay
        filesize
        url
      }
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressState
      residentialAddressPostcode
      residentialAddressCountry
      residentialAddressCountryName
      postalAddressSameAsResidential
      postalAddressLine1
      postalAddressLine2
      postalAddressCity
      postalAddressState
      postalAddressPostcode
      postalAddressCountry
      emergencyContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      nextOfKinContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      idb
      generalPractitionerLocation
      generalPractitioner
      referringSurgeonLocation
      referringSurgeon
      oncologist
      payor
      coverageRelationship
      policyNumber
      preAuthNumber
      countryOfBirth
      languageAtHome
      gender
      maritalStatus
      ethnicity
      religion
      additionalComments
      acceptsDataShare
      primaryCenter
      sameAsEmergency
      nhsOptions
      idbConflict
      registrationReason
      registrationReasonText
      isProd
      hasPendingSubmission
    }
    documentTypeRefData: listData(category: "attachmentType") {
      id
      name
    }
    gpSurgeryRefData: practitionerLocations(patient: $id, search: "") {
      id
      name: fullName
    }
    surgeonLocationRefData: practitionerLocations(patient: $id, search: "") {
      id
      name: fullName
    }
    gpRefData: practitioners(url: "https://genesiscare.com/fhir/general-practice-surgery", patient: $id) {
      id
      name
    }
    surgeonRefData: extPractitioners(patient: $id, search: "") {
      id
      name: name
    }
    oncologistRefData: oncologists(patient: $id, search: "") {
      id
      name
    }
    titleRefData: listData(category: "nameTitle") {
      id
      name
    }
    relationshipsRefData: listData(category: "relationships") {
      id
      name
    }
    heritageRefData: listData(category: "heritage") {
      id
      name
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      name
    }
    ethnicityRefData: listData(category: "ethnicity") {
      id
      name
    }
    religionRefData: listData(category: "religion") {
      id
      name
    }
    countryOfBirthRefData: listData(category: "countryOfBirth") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    languageSpokenRefData: listData(category: "languages") {
      id
      name
    }
    medicareTypeRefData: listData(category: "healthFund") {
      id
      name
      appKey
    }
    insurerRefData: departments {
      id
      name
    }
    relationshipRefData: listData(category: "coverageRelationship") {
      id
      name
    }
    dvaTypeRefData: listData(category: "dvaCardType") {
      id
      name
      appKey
    }
    ausStateRefData: listData(category: "ukCounties") {
      id
      name
    }
    primaryCenterRefData: configs {
      id
      name
    }
    nhsOptionsRefData: listData(category: "nhsOptions") {
      id
      name
    }
    registrationReasonRefData: listData(category: "registrationReason") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`,CREATE_SUBMISSION=gql`
  mutation CreateSubmission($patientID: ID) {
    createSubmission(patientId: $patientID) {
      submission {
        id
        pdf
        patient {
          id
          firstName
          lastName
        }
      }
    }
  }
`;class UKRegistrationSummaryApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"formatRefData",rt=>rt.map(nt=>{const lt=lodash.cloneDeep(nt);return lt.id=lt.name,nt}));Nr(this,"autosave",async(rt,nt,lt)=>{const ut=this.props.client,dt={key:nt,value:lt,type:"String"},pt=await this.getPendingSaveCount();let ht=pt.currentPendingSaveCount+1,mt=pt.saveErrorCount;ut&&ut.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:ht}}),this.setState({saveStatus:this.props.getSaveStatus(ht,mt)}),ut==null||ut.mutate(this.props.getPatientMutation(rt,[dt])).then(xt=>{xt.data.updatePatient.errors&&mt++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),mt++}).finally(async()=>{ht=(await this.getPendingSaveCount()).currentPendingSaveCount-1,ut&&ut.writeQuery({query:gql`
              query {
                pendingSaveCount
                saveErrorCount
              }
            `,data:{pendingSaveCount:ht,saveErrorCount:mt}}),this.setState({saveStatus:this.props.getSaveStatus(ht,mt)})})});Nr(this,"getPendingSaveCount",async()=>{const rt=this.props.client;let nt=0,lt=0;try{const ut=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE,variables:{}}));return nt=ut==null?void 0:ut.data.pendingSaveCount,lt=ut==null?void 0:ut.data.saveErrorCount,{currentPendingSaveCount:nt,saveErrorCount:lt}}catch(ut){throw ut}});Nr(this,"navigate",rt=>{this.props.history.push(rt)});Nr(this,"submitRegistration",rt=>{const{match:{params:{patientId:nt}},client:lt}=this.props;this.setState({submitStatus:SubmitButtonType.SUBMITTING}),lt==null||lt.mutate({mutation:CREATE_SUBMISSION,variables:{patientID:nt}}).then(ut=>{if(ut.data&&ut.data.createSubmission){this.setState({submitStatus:SubmitButtonType.SUBMITTED}),ut.data.createSubmission.submission&&ut.data.createSubmission.submission.pdf&&logger$t.debug("submitRegistration",`Response came back: /server/media/${ut.data.createSubmission.submission.pdf}`),rt();const{patient:dt}=ut.data.createSubmission.submission,pt=encodeURI(`${dt.firstName}+${dt.lastName}`);this.props.history.replace(`/search?q=${pt}`)}})});this.state={saveStatus:SavingStatus.SAVED,submitStatus:SubmitButtonType.SUBMIT_AND_EXIT},this.getPendingSaveCount().then(nt=>{const lt=nt.currentPendingSaveCount,ut=nt.saveErrorCount;this.state={saveStatus:this.props.getSaveStatus(lt,ut),submitStatus:SubmitButtonType.SUBMIT_AND_EXIT}})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$5,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,data:dt,error:pt})=>ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt&&dt.patient?(this.userIsPSO=dt.user.isPso||!1,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(UKRegistrationSummary,{patient:dt.patient,registrationReasonRefData:dt.registrationReasonRefData,nhsOptionsRefData:dt.nhsOptionsRefData,insurerRefData:dt.insurerRefData,relationshipRefData:dt.relationshipRefData,gpSurgeryRefData:this.formatRefData(dt.gpSurgeryRefData),surgeonLocationRefData:dt.surgeonLocationRefData,gpRefData:dt.gpRefData,extPracRefData:dt.extPracRefData,documentTypeRefData:dt.documentTypeRefData,surgeonRefData:this.formatRefData(dt.surgeonRefData),oncologistRefData:dt.oncologistRefData,titleRefData:dt.titleRefData,relationshipsRefData:dt.relationshipsRefData,maritalStatusRefData:dt.maritalStatusRefData,ethnicityRefData:dt.ethnicityRefData,religionRefData:dt.religionRefData,acceptsDataShareRefData:dt.acceptsDataShareRefData,countryOfBirthRefData:dt.countryOfBirthRefData,genderRefData:dt.genderRefData,primaryCenterRefData:dt.primaryCenterRefData,languageSpokenRefData:dt.languageSpokenRefData,ausStateRefData:dt.ausStateRefData,navigateToPage:this.navigate,autosave:this.autosave,saveStatus:this.state.saveStatus,submitRegistration:this.submitRegistration,submitStatus:this.state.submitStatus,isPso:this.userIsPSO})]})):pt?jsxRuntimeExports.jsx("div",{children:`Error loading: ${pt}`}):jsxRuntimeExports.jsx("div",{})})}}const apolloComponent$9=withApollo(UKRegistrationSummaryApollo),component$4=withRegistrationForm(apolloComponent$9),ROPatientContext=reactExports.createContext({}),ROPatientContextProvider=({children:et})=>{const[tt,rt]=reactExports.useState(),[nt,lt]=reactExports.useState();return jsxRuntimeExports.jsx(ROPatientContext.Provider,{value:{patientDetails:tt,setPatientDetails:rt,patientAlerts:nt,setPatientAlerts:lt},children:et})},GridContainer=styled$1("section")`
  margin: 0 16px 16px 16px;
  height: 100%;
  display: flex;
  width: 100%;
`,GridSection=styled$1("section")`
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0px 2px 8px rgba(113, 110, 106, 0.4);
  background-color: white;
`,Title$1=styled$1("h3")`
  font-size: 18px;
  color: ${et=>et.theme.palette.primary.dark};
  margin-bottom: 12px;
`,Container$1=styled$1("div")`
  display: flex;
  overflow-x: hidden;
  margin-bottom: 10px;
  min-height: 32px;

  &:hover {
    overflow-x: overlay;
  }
`,OptionContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  margin: 0 16px 0 0;
`,OptionButton=styled$1("button")`
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 4px;
  white-space: nowrap;
  font-weight: ${({$active:et})=>et?"bold":"normal"};
`,OptionText=styled$1("div")`
  margin-bottom: 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
`,ActiveOption=styled$1("div")`
  width: 100%;
  height: 3px;
  background-color: ${et=>et.theme.palette.primary.dark};
`,TabSelectHeader=et=>{const{options:tt,title:rt,onClickHandler:nt,activeIndex:lt,setActiveIndex:ut}=et,dt=pt=>{pt!=null&&pt.target&&pt.target.scrollIntoView({behaviour:"smooth"})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Title$1,{children:rt}),jsxRuntimeExports.jsx(Container$1,{children:tt.map((pt,ht)=>{const{text:mt,notification:xt}=pt,Mt=lt===ht;return jsxRuntimeExports.jsxs(OptionContainer,{children:[jsxRuntimeExports.jsx(OptionButton,{type:"button",onClick:vt=>{ut(ht),dt(vt),nt(vt)},$active:Mt,children:jsxRuntimeExports.jsxs(OptionText,{children:[mt,xt&&jsxRuntimeExports.jsx(Badge$1,{$bgColor:xt.color,children:xt.text})]})}),Mt&&jsxRuntimeExports.jsx(ActiveOption,{})]},`${mt}-${ht}`)})})]})},CardTitle=({children:et})=>{const tt=useTheme$1();return jsxRuntimeExports.jsx(Typography,{justifyContent:"space-between",alignItems:"center",sx:{display:"flex",borderBottom:`1px solid ${tt.palette.grey[300]}`},padding:"8px 16px",variant:"subtitle1",children:et})},CardBody=styled$1("div")`
  height: 300px;
  overflow: auto;
`,CardBodyGroup=styled$1("div")`
  margin: 8px 16px;
  font-size: 14px;
  line-height: 20px;
`,CardBodyBold=styled$1("div")`
  font-weight: bold;
`,BubbleTitle=styled$1("div")`
  background-color: ${et=>et.theme.palette.grey[100]};
  display: inline-block;
  line-height: 20px;
  border-radius: 16px;
  padding: 0 8px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: bold;
`,CardText=styled$1("div")`
  font-size: 13px;
  line-height: 15px;
`,CONSTANTS={RESPONSIBLE:"Responsible Physician",PRIMARY:"Primary Physician (GP)",REFERRING:"Referring Physician",CONTACT:"Contact number",NO_UPCOMING:"No upcoming appointments",MEDICARE_NO:"Medicare card number/IRN",MEDICARE_EXP:"Medicare card expiry",EMG_CONTACT:"Emergency Contact",RELATIONSHIP:"Relationship",PRIM_DIAG:"Primary",METASTASIS:"Metastasis",NO_DIAGNOSIS:"No diagnosis available",SEVERITY:"Severity",NOTES:"Notes",NO_ALLERGIES:"No allergies available",STATUS:"Status",ASSIGNED:"Assigned",NO_ALERTS:"No alerts available",INSURANCE:"Insurance policy number",EXPIRATION_DATE:"Expiration date"},useReferrers=et=>{const tt=ut=>et.filter(dt=>dt.relationshipType.startsWith(ut)),rt=tt("oncologist")[0],nt=tt("generalPractitioner")[0],lt=tt("referringSurgeon").sort((ut,dt)=>ut.relationshipType>dt.relationshipType?1:-1);return{responsiblePhysician:rt,primaryPhysician:nt,referringSurgeon:lt}},TreatmentTeamCard=({name:et,allReferrers:tt})=>{var pt;const{CONTACT:rt,REFERRING:nt}=CONSTANTS,{responsiblePhysician:lt,primaryPhysician:ut,referringSurgeon:dt}=useReferrers(tt);return jsxRuntimeExports.jsxs("div",{"data-testid":"treatmentTeamCard",children:[jsxRuntimeExports.jsx(CardTitle,{children:et}),jsxRuntimeExports.jsxs(CardBody,{children:[jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"responsiblePhysician",children:[CurrentAppConfig.ReferringPhysicians.oncologist,jsxRuntimeExports.jsx(CardBodyBold,{children:lt?`${lt.practitioner.firstName} ${lt.practitioner.lastName}`:"-"})]}),jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"primaryPhysician",children:[CurrentAppConfig.ReferringPhysicians.generalPractitioner,jsxRuntimeExports.jsx(CardBodyBold,{children:ut?`${ut.practitioner.firstName} ${ut.practitioner.lastName}`:"-"}),((pt=ut==null?void 0:ut.practitioner)==null?void 0:pt.phone)&&jsxRuntimeExports.jsxs(CardBodyBold,{children:[rt,": ",ut.practitioner.phone]})]}),dt.length>0?dt.map((ht,mt)=>jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":`referringPhysician-${mt}`,children:[CurrentAppConfig.ReferringPhysicians[ht.relationshipType],jsxRuntimeExports.jsxs(CardBodyBold,{children:[ht.practitioner.firstName," ",ht.practitioner.lastName]}),ht.practitioner.phone&&jsxRuntimeExports.jsxs(CardBodyBold,{children:[rt,": ",ht.practitioner.phone]})]},`${ht.practitioner.firstName}-${mt}`)):jsxRuntimeExports.jsxs(CardBodyGroup,{children:[nt,jsxRuntimeExports.jsx(CardBodyBold,{children:"-"})]})]})]})},{NO_UPCOMING:NO_UPCOMING$1}=CONSTANTS,ApptHeader=styled$1("div")`
  display: flex;
  justify-content: space-between;
  background: ${et=>et.theme.palette.grey[100]};
  font-size: 12px;
  padding: 8px 16px;
`,ApptItemWrapper=styled$1("div")`
  margin-bottom: 8px;
  display: flex;
`,ApptTime=styled$1("div")`
  padding-right: 8px;
  display: inline-block;
  width: 60px;
  font-size: 13px;
`,ApptLocation=styled$1("div")`
  display: inline-flex;
  border-left: 1px solid ${et=>et.theme.palette.primary.main};
  flex-direction: column;
  padding-left: 8px;
`,getReducedAppointments=et=>et.reduce((tt,rt)=>{var pt,ht;const nt=hooks(rt.startTime).format("ddd, Do MMMM YYYY"),lt=hooks().format("ddd, Do MMMM YYYY"),ut=hooks().add(1,"days").format("ddd, Do MMMM YYYY"),dt={time:hooks(rt==null?void 0:rt.startTime),displayTime:hooks(rt==null?void 0:rt.startTime).format("h:mma"),description:(rt==null?void 0:rt.description)||"",location:((pt=rt==null?void 0:rt.location)==null?void 0:pt.name)||"",department:((ht=rt==null?void 0:rt.department)==null?void 0:ht.alias)||""};if(hooks(rt.startTime).diff(hooks())>0){const mt=tt.findIndex(xt=>xt.formattedDate===nt);mt>=0?tt[mt].appts.push(dt):tt.push({date:rt.startTime,formattedDate:nt,isToday:nt===lt,isTomorrow:nt===ut,appts:[dt]})}return[...tt].sort((mt,xt)=>new Date(mt.date).getTime()-new Date(xt.date).getTime())},[]),AppointmentsCard=({name:et,appointments:tt})=>{const rt=tt.length>0?getReducedAppointments(tt):[],nt=lt=>[...lt].sort((dt,pt)=>dt.time-pt.time).map(dt=>jsxRuntimeExports.jsx(CardBodyGroup,{children:jsxRuntimeExports.jsxs(ApptItemWrapper,{children:[jsxRuntimeExports.jsx(ApptTime,{children:dt.displayTime}),jsxRuntimeExports.jsxs(ApptLocation,{children:[dt.description&&jsxRuntimeExports.jsx("b",{children:dt.description}),dt.department?dt.department.concat(" - ",dt.location):dt.location]})]})},dt.displayTime));return jsxRuntimeExports.jsxs("div",{"data-testid":"appointmentsCard",children:[jsxRuntimeExports.jsx(CardTitle,{children:et}),jsxRuntimeExports.jsx(CardBody,{children:rt.length>0?rt.map(lt=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs(ApptHeader,{children:[jsxRuntimeExports.jsx("b",{children:lt.formattedDate}),lt.isToday?"Today":lt.isTomorrow?"Tomorrow":null]}),nt(lt.appts)]},lt.formattedDate)):jsxRuntimeExports.jsx(CardBodyGroup,{children:NO_UPCOMING$1})})]})},EmergencyContactCard=({name:et,patientDetails:tt})=>{const{emergencyContact:rt}=tt,nt=(rt==null?void 0:rt.mobilePhoneNumber)||(rt==null?void 0:rt.homePhoneNumber)||"-",lt=(rt==null?void 0:rt.firstName)&&(rt==null?void 0:rt.lastName),{EMG_CONTACT:ut,RELATIONSHIP:dt,CONTACT:pt}=CONSTANTS;return jsxRuntimeExports.jsxs("div",{"data-testid":"emergencyContactCard",children:[jsxRuntimeExports.jsx(CardTitle,{children:et}),jsxRuntimeExports.jsxs(CardBody,{children:[jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"emgContactName",children:[ut,jsxRuntimeExports.jsx(CardBodyBold,{children:lt?`${rt.firstName} ${rt.lastName}`:"-"})]}),jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"emgContactRelationship",children:[dt,jsxRuntimeExports.jsx(CardBodyBold,{children:(rt==null?void 0:rt.relationship)||"-"})]}),jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"emgContactPhone",children:[pt,jsxRuntimeExports.jsx(CardBodyBold,{children:nt})]})]})]})},DiagnosisCard$1=({name:et,patientDiagnosis:tt})=>{const{PRIM_DIAG:rt,METASTASIS:nt,NO_DIAGNOSIS:lt}=CONSTANTS,ut=useTheme$1();return jsxRuntimeExports.jsxs("div",{"data-testid":"diagnosisCard",children:[jsxRuntimeExports.jsxs(CardTitle,{children:[et," ",jsxRuntimeExports.jsx(Badge$1,{$bgColor:ut.palette.grey[600],"data-testid":"diagnosisBadge",children:(tt==null?void 0:tt.length)||0})]}),jsxRuntimeExports.jsx(CardBody,{children:tt.length>0?tt.filter(dt=>!!(dt!=null&&dt.diagnosisCode)).map((dt,pt)=>jsxRuntimeExports.jsxs(CardBodyGroup,{children:[jsxRuntimeExports.jsxs(BubbleTitle,{children:[pt+1,". ",dt.diagnosisCode.diagnosisCode," ",dt.isPrimaryDiagnosis?rt:nt]}),jsxRuntimeExports.jsx(CardText,{children:`${dt.diagnosisCode.tumourStream.name} - ${dt.diagnosisCode.diagnosisDescription}`})]},dt.diagnosisCode.diagnosisCode)):jsxRuntimeExports.jsx(CardBodyGroup,{children:jsxRuntimeExports.jsx("b",{children:lt})})})]})},{SEVERITY,NOTES:NOTES$1,NO_ALLERGIES}=CONSTANTS,AllergiesCard=({name:et,allergies:tt})=>{const rt=tt.filter(ut=>ut.status==="Active"),nt=useTheme$1(),lt=rt==null?void 0:rt.some(ut=>ut.name&&["no known drug allergies","no known allergies"].includes(ut.name.toLowerCase()));return jsxRuntimeExports.jsxs("div",{"data-testid":"allergiesCard",children:[jsxRuntimeExports.jsxs(CardTitle,{children:[et," ",jsxRuntimeExports.jsx(Badge$1,{$bgColor:lt?nt.palette.grey[600]:(rt==null?void 0:rt.length)!==0?nt.palette.error.main:nt.palette.warning.dark,"data-testid":"allergiesBadge",children:lt?"N":rt.length>0?rt.length:"?"})]}),jsxRuntimeExports.jsx(CardBody,{children:rt.length?rt.map((ut,dt)=>jsxRuntimeExports.jsxs(CardBodyGroup,{children:[jsxRuntimeExports.jsxs(BubbleTitle,{children:[dt+1,". ",ut.name]}),jsxRuntimeExports.jsxs(CardText,{children:[SEVERITY,": ",jsxRuntimeExports.jsx("b",{children:ut.severity})]}),jsxRuntimeExports.jsxs(CardText,{children:[NOTES$1,": ",jsxRuntimeExports.jsx("b",{children:ut.reaction})]})]},ut.name)):jsxRuntimeExports.jsx(CardBodyGroup,{children:jsxRuntimeExports.jsx("b",{children:NO_ALLERGIES})})})]})},{STATUS,NOTES,ASSIGNED,NO_ALERTS}=CONSTANTS,AlertsCard=({name:et,alerts:tt})=>{const rt=useTheme$1();return jsxRuntimeExports.jsxs("div",{"data-testid":"alertsCard",children:[jsxRuntimeExports.jsxs(CardTitle,{children:[et," ",jsxRuntimeExports.jsx(Badge$1,{$bgColor:tt!=null&&tt.length?rt.palette.error.main:rt.palette.warning.dark,"data-testid":"alertsBadge",children:(tt==null?void 0:tt.length)||"?"})]}),jsxRuntimeExports.jsx(CardBody,{children:(tt==null?void 0:tt.length)>0?tt.map((nt,lt)=>jsxRuntimeExports.jsxs(CardBodyGroup,{children:[jsxRuntimeExports.jsxs(BubbleTitle,{children:[lt+1,". ",nt.name]}),jsxRuntimeExports.jsxs(CardText,{children:[STATUS,": ",jsxRuntimeExports.jsx("b",{children:nt.status})," | ",ASSIGNED,":"," ",jsxRuntimeExports.jsx("b",{children:nt.assigned&&hooks.utc(nt.assigned).format("L")})]}),jsxRuntimeExports.jsxs(CardText,{children:[NOTES,": ",jsxRuntimeExports.jsx("b",{children:nt.comment})]})]},`${tt.name}-${tt.index}`)):jsxRuntimeExports.jsx(CardBodyGroup,{children:jsxRuntimeExports.jsx("b",{children:NO_ALERTS})})})]})},InsuranceCard=({name:et,patientDetails:tt})=>{const{healthMedicareNumber:rt,healthMedicareIrn:nt,medicareExpiryRawMonth:lt,medicareExpiryRawYear:ut,insurances:dt}=tt,pt=lt+"/"+ut.slice(-2),ht=lt&&ut,mt=rt&&nt,{MEDICARE_NO:xt,MEDICARE_EXP:Mt,INSURANCE:vt,EXPIRATION_DATE:Ot}=CONSTANTS,At=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"otherInfoMedicareNo",children:[xt,jsxRuntimeExports.jsx(CardBodyBold,{children:mt?`${rt} ${nt}`:"-"})]}),jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"otherInfoMedicareExp",children:[Mt,jsxRuntimeExports.jsx(CardBodyBold,{children:ht?`${pt}`:"-"})]})]}),Rt=dt.map(zt=>{var Tt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CardBodyGroup,{"data-testid":"insuranceCardInsuranceName",children:jsxRuntimeExports.jsx(CardBodyBold,{children:((Tt=zt.payor)==null?void 0:Tt.name)||"-"})}),jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"insuranceCardInsuranceNumber",children:[vt,jsxRuntimeExports.jsx(CardBodyBold,{children:zt.policyNumber||"-"})]}),jsxRuntimeExports.jsxs(CardBodyGroup,{"data-testid":"insuranceCardInsuranceExpiry",children:[Ot,jsxRuntimeExports.jsx(CardBodyBold,{children:zt.expiryDate?`${hooks(new Date(zt.expiryDate)).format("L")}`:"-"})]})]})});return jsxRuntimeExports.jsxs("div",{"data-testid":"insuranceCard",children:[jsxRuntimeExports.jsx(CardTitle,{children:et}),jsxRuntimeExports.jsxs(CardBody,{children:[region===Region.AU&&At,region===Region.AU&&jsxRuntimeExports.jsx("hr",{}),Rt]})]})},MiddleContainer=styled$1(Stack$5)`
  display: flex;
  flex-direction: column;
  max-height: 100%;
  height: 100%;
  width: 100%;
`,StyedPatientSummaryRow=styled$1(Stack$5,{shouldForwardProp:et=>!["$rowSpace","$marginBottom"].includes(et)})`
  position: relative;
  min-height: 0;
  flex: 1;
  padding: ${et=>et.$rowSpace||"16px 0"};
`,StyledROSidePatientNavCol=styled$1(Stack$5)`
  max-width: 240px;
  min-width: 240px;
  background-color: ${et=>et.theme.palette.background.secondary};
  border-right: 1px solid rgba(0, 0, 0, 0.2);
`,StyledROSidePatientNav=styled$1(SidePatientNav)`
  max-width: 240px;
  min-width: 240px;
  height: 100vh;
`,MoreDetailsContainer=styled$1("div")`
  position: absolute;
  top: 1px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 49;
  padding: 0;
  overflow-y: auto;
`,MoreDetailsBody=styled$1("div")`
  padding-top: 16px;
  background-color: white;
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
`,MoreInfoBox=styled$1("div")`
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  border-radius: 4px;
  width: ${et=>`calc(${et.cardWidth} - 16px)`};
  margin: 0 8px 16px;
`,OuterContainer=({children:et,refreshChartSummary:tt,patientCardView:rt,rowSpace:nt,marginBottom:lt})=>{const[ut,dt]=reactExports.useState(!1),pt=useRouteMatch(),{id:ht}=pt.params,mt=reactExports.useRef(null),{patientDetails:xt,patientAlerts:Mt}=reactExports.useContext(ROPatientContext),vt=reactExports.useRef(null),[Ot,At]=reactExports.useState("");reactExports.useEffect(()=>{const Tt=()=>{if(vt.current){const{width:Ct}=vt.current.getBoundingClientRect();return Ct>=1500&&Ct/6<262?At("20%"):Ct<1500&&Ct/6<262?At("25%"):At("16.666667%")}};return window.addEventListener("resize",Tt),Tt(),()=>window.removeEventListener("resize",Tt)});const Rt=()=>{dt(!ut)};useOnClickOutside(mt,Tt=>{var Ct,It;typeof((Ct=Tt==null?void 0:Tt.target)==null?void 0:Ct.className)=="string"&&((It=Tt==null?void 0:Tt.target)!=null&&It.className.includes("more-details-container"))&&dt(!1)});const zt=[jsxRuntimeExports.jsx(TreatmentTeamCard,{name:"Treating Physicians",allReferrers:xt==null?void 0:xt.allReferrers}),jsxRuntimeExports.jsx(AppointmentsCard,{name:"Upcoming Appointments",appointments:xt==null?void 0:xt.appointments}),jsxRuntimeExports.jsx(InsuranceCard,{name:"Insurance",patientDetails:xt}),jsxRuntimeExports.jsx(DiagnosisCard$1,{name:"Diagnosis",patientDiagnosis:xt==null?void 0:xt.carepathPatientDiagnosis.filter(Tt=>(Tt==null?void 0:Tt.isMostRecent)&&(Tt==null?void 0:Tt.emrDiagnosisKey))}),jsxRuntimeExports.jsx(AllergiesCard,{name:"Allergies",allergies:xt==null?void 0:xt.allergy}),jsxRuntimeExports.jsx(AlertsCard,{name:"Alerts",alerts:Mt}),jsxRuntimeExports.jsx(EmergencyContactCard,{name:"Emergency Contact",patientDetails:xt})];return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack$5,{id:"patient-summary-primary",sx:{display:"flex",flexDirection:"row",height:"100%",width:"100%",position:"absolute",paddingTop:"56px"},children:[jsxRuntimeExports.jsx(StyledROSidePatientNavCol,{children:jsxRuntimeExports.jsx(StyledROSidePatientNav,{patientId:ht,refreshChartSummary:tt})}),jsxRuntimeExports.jsxs(MiddleContainer,{ref:vt,children:[jsxRuntimeExports.jsx(PatientCard,{id:ht,simple:!1,moreDetailsClickHandler:Rt,showMoreDetails:ut,patientCardView:rt}),jsxRuntimeExports.jsxs(StyedPatientSummaryRow,{"data-testid":"patient-summary-row",$rowSpace:nt,$marginBottom:lt,style:{display:"flex",flexDirection:"row"},children:[ut&&jsxRuntimeExports.jsx(MoreDetailsContainer,{className:"more-details-container",children:jsxRuntimeExports.jsx(MoreDetailsBody,{className:"more-details-body",ref:mt,children:xt&&zt.map(Tt=>jsxRuntimeExports.jsx(MoreInfoBox,{cardWidth:Ot,children:Tt},Tt.props.name))})}),et]})]})]}),jsxRuntimeExports.jsx(Q$1,{limit:3,style:{width:"fit-content"}})]})},routedComponent$c=withRouter(OuterContainer),StyledSideDrawerContainer=styled$1(GridSection)`
  margin-left: 16px;
  flex-grow: 1;
  background-color: white;
  padding: 0;
  display: flex;
  height: 100%;

  ${({isOpen:et})=>`
    @media screen and (max-width: ${supportedSize.desktop-1}px) {
      width: 35%;
      position: absolute;
      right: 0;
      transform: translateX(${et?"0":"100%"});
      transition: transform 0.2s ease-in-out;
      max-height: calc(100% - 32px);
    }`}
`,SideDrawerContent=styled$1("div")`
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 100%;
`,SideDrawer=({isOpen:et,children:tt,showToggleBtn:rt,toggleBtn:nt,...lt})=>jsxRuntimeExports.jsxs(StyledSideDrawerContainer,{isOpen:et,...lt,children:[jsxRuntimeExports.jsx(SideDrawerContent,{className:"overflow-auto",children:tt}),rt&&nt]}),StyledTrigger=styled$1("button")`
  background-color: ${et=>et.theme.palette.primary.dark};
  position: absolute;
  cursor: pointer;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: ${et=>et.theme.palette.primary.contrastText};
  font-weight: 700;
  text-align: center;
  font-size: 13px;
  border-radius: 4px 0 0 4px;
  border: none;
  text-transform: uppercase;
  width: 64px;
  transition: background-color 0.15s ease-in-out;
  height: 94px;

  &:hover,
  &:focus {
    background-color: ${et=>et.theme.palette.primary.main};
  }

  svg {
    margin-bottom: 13px;
  }
`,SideDrawerToggle=({onClick:et,primaryIcon:tt,statusIcon:rt,showStatusIcon:nt,text:lt,...ut})=>jsxRuntimeExports.jsx(StyledTrigger,{onClick:et,...ut,children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[tt,lt,nt&&rt]})}),NotesFilter=et=>{const{noteTypes:tt,setFilterNoteTypes:rt}=et,nt=(ut,dt)=>{const pt=tt==null?void 0:tt.map(ht=>((ut==null?void 0:ut.filter(xt=>xt===ht.id)).length&&(ht.checked=dt),ht));rt(pt||[])},lt=tt.map(ut=>({value:ut.name,id:ut.id,checked:ut.checked||!1}));return jsxRuntimeExports.jsx(BaseSelectCheckbox,{id:"notes-filter",options:lt,placeholder:"Notes filter",showSelectAll:!0,fullWidth:!0,onChange:ut=>legacyOnChange(ut,lt,nt)})},THERANOSTICS$1=["THA","THA MQ"],StyledColNoteMessage=styled$1(Stack$5)`
  line-height: 24px;
  color: ${et=>et.theme.palette.text.primary};
  margin: 8px 0 8px 0;
  word-break: break-word;
  font,
  *,
`,StyledColHr=styled$1(Stack$5)`
  content: '';
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  width: 100%;
`,ToastNotificationMessage=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("strong",{style:{maxWidth:"270px",wordWrap:"normal",overflow:"hidden"},children:"New Note Added"}),jsxRuntimeExports.jsx("p",{style:{maxWidth:"270px",wordWrap:"normal",overflow:"hidden",lineHeight:"14px"},children:"View previous notes via the notes page on the left"})]}),ReadPatientNotes=et=>{const{setError:tt}=useErrorModalContext(),{notes:rt,loading:nt,error:lt,filter:ut,practitionerTimezone:dt}=et,pt=useTheme$1();if(reactExports.useEffect(()=>{if(lt)return tt()},[lt]),nt)return jsxRuntimeExports.jsx(Stack$5,{children:jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0,loadingText:"Loading notes"})});if(!rt&&!ut)return jsxRuntimeExports.jsx("div",{});const ht=mt=>formatNoteCreationDate(mt,dt,CurrentAppConfig.Notes.DateTimeFormat);return rt&&!rt.length?jsxRuntimeExports.jsx(Stack$5,{paddingTop:1,children:"No notes found."}):rt==null?void 0:rt.map(mt=>{var xt;return jsxRuntimeExports.jsxs(Stack$5,{marginTop:1,className:"quick-notes-note-option",children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignContent:"center",justifyContent:"space-between",paddingRight:2,children:[jsxRuntimeExports.jsxs(Typography,{variant:"subtitle2",children:[(xt=mt.createdBy)==null?void 0:xt.name," ",mt.practitionerQualification&&`(${mt.practitionerQualification})`]}),jsxRuntimeExports.jsx(Typography,{color:pt.palette.text.secondary,variant:"caption",children:ht(mt)})]}),mt.messageTypeAlias&&jsxRuntimeExports.jsx(Typography,{variant:"body2",color:pt.palette.text.secondary,"data-test-id":"note-heading",children:mt.messageTypeAlias}),jsxRuntimeExports.jsx(Stack$5,{children:jsxRuntimeExports.jsx(StyledColNoteMessage,{style:{whiteSpace:mt.formattedMessage.startsWith("<!DOCTYPE html")?"normal":"pre-wrap"},children:jsxRuntimeExports.jsx(Typography,{variant:"body2","data-test-id":"note-content",id:"note-content",dangerouslySetInnerHTML:sanitizeNote(mt.formattedMessage)})})}),jsxRuntimeExports.jsx(Stack$5,{children:jsxRuntimeExports.jsx(StyledColHr,{})})]},mt.id)})},NoteTypeButtons=et=>{const{noteTypes:tt,selected:rt,setSelectedNoteType:nt}=et,lt=useTheme$1(),ut=[...tt];return tt?jsxRuntimeExports.jsx(ButtonGroup,{id:"noteTypeButtons","aria-label":"Basic example",sx:{width:"fit-content"},children:tt&&[...ut].sort((dt,pt)=>dt.listWeight-pt.listWeight).map((dt,pt)=>{const ht=rt===dt.name;return jsxRuntimeExports.jsx(Button,{"data-test-id":`noteType-${pt}`,onClick:()=>{nt(dt.name)},variant:"text",sx:{textTransform:"none",color:"darkslategrey",fontSize:"1rem",borderBottom:ht?`4px solid ${lt.palette.primary.main}`:"none",paddingBottom:ht?"8px !important":"12px !important",borderRadius:"0px"},children:jsxRuntimeExports.jsx("span",{children:dt.alias?dt.alias:dt.name})},pt)})}):jsxRuntimeExports.jsx("div",{})},ROPatientNotes=()=>{var er,nr,or;const{setError:et}=useErrorModalContext(),{state:tt}=reactExports.useContext(UserContext),[rt,nt]=reactExports.useState(!1),[lt,ut]=reactExports.useState(""),[dt,pt]=reactExports.useState(),[ht,mt]=reactExports.useState(""),xt=useRouteMatch(),[Mt,vt]=reactExports.useState(null),Ot=reactExports.useRef(null),{id:At}=xt.params,Rt=useTheme$1(),[zt,Tt]=reactExports.useState([]),{data:Ct}=useQuery(GET_PRACTITIONER,{variables:{patientId:At},skip:!At}),It=reactExports.useMemo(()=>{var rr;return((rr=Ct==null?void 0:Ct.practitioner)==null?void 0:rr.timezone)||CurrentAppConfig.DefaultTimezone},[(er=Ct==null?void 0:Ct.practitioner)==null?void 0:er.timezone]),{notes:Dt,filteredNotes:kt,filterNoteTypes:qt,setFilterNoteTypes:Nt,isLoading:Yt,hasErrors:Kt}=usePatientNotes(At),[Jt]=useMutation(UPDATE_PATIENT_NOTE,{refetchQueries:[{query:GET_PATIENT_NOTES,variables:{patientId:At}}]}),{data:Qt,loading:Bt}=useQuery(GET_NOTE_TYPES,{variables:{patientId:At},fetchPolicy:"cache-and-network"}),{data:Ft,error:$t,refetch:jt}=useQuery(GET_PATIENT_PROFILE$1,{variables:{patientId:At}});useInterval(()=>{jt()},(or=(nr=Ft==null?void 0:Ft.patient)==null?void 0:nr.userProfile)!=null&&or.hasPatId1?null:PAT_ID_1_REFRESH_TIME),reactExports.useEffect(()=>{if(Kt||$t)return et()},[Kt,$t]),reactExports.useEffect(()=>{const rr=Qt==null?void 0:Qt.notesTypes;rr&&rr.length&&(ut(rr[0].name),Tt(rr))},[Qt]);const[Wt]=useMutation(ADD_PATIENT_NOTE,{refetchQueries:[{query:GET_PATIENT_NOTES,variables:{patientId:At}}],onCompleted:()=>{mt("")}});useOnClickOutside(Ot,()=>rt&&nt(!1)),reactExports.useEffect(()=>{if(Dt){const rr=Dt==null?void 0:Dt.filter(cr=>{var ir,dr;return(cr==null?void 0:cr.isDraft)&&((ir=cr==null?void 0:cr.createdBy)==null?void 0:ir.id)===((dr=Ct==null?void 0:Ct.practitioner)==null?void 0:dr.id)})[0];pt(rr||null),Vt()}},[Dt]);const Ut=(rr,cr)=>{rr&&cr&&(Wt({variables:{patientId:At,messageType:cr,message:rr,noteId:dt==null?void 0:dt.id}}),mt(""),(tt==null?void 0:tt.primaryRole)==="ro"&&B$3.dark(jsxRuntimeExports.jsx(ToastNotificationMessage,{}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,transition:F$2,progress:void 0}))},Vt=()=>{const rr=document.getElementsByClassName("quick-notes-note-option");typeof rr[0]<"u"&&rr[0].scrollIntoView({behavior:"smooth",block:"nearest"})},Ht=rr=>{const{relatedTarget:cr}=rr;!["add-note-button","note-type-button"].includes(cr==null?void 0:cr.id)&&lt&&Jt({variables:{patientId:At,message:rr.target.value,messageType:lt,noteId:dt==null?void 0:dt.id}})},Gt=reactExports.useMemo(()=>{var rr,cr;return(cr=(rr=Ft==null?void 0:Ft.patient)==null?void 0:rr.userProfile)==null?void 0:cr.hasPatId1},[Ft]),Zt=reactExports.useMemo(()=>{var rr;return THERANOSTICS$1.includes((rr=Ft==null?void 0:Ft.patient)==null?void 0:rr.emrInstance)},[Ft]),Xt=reactExports.useMemo(()=>!tt.hasStaffId||!Gt||Zt||!CurrentAppConfig.Notes.EnableSubmit,[tt,Gt,Zt]);return jsxRuntimeExports.jsx(Card$1,{style:{display:"flex",flexDirection:"column",height:"100%"},ref:Ot,children:jsxRuntimeExports.jsxs(Stack$5,{sx:{height:"100%"},children:[jsxRuntimeExports.jsxs(Stack$5,{sx:{height:"50%"},children:[jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"baseline",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:6,children:jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"Notes"})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:6,children:jsxRuntimeExports.jsx(NotesFilter,{noteTypes:qt,setFilterNoteTypes:Nt})})]}),jsxRuntimeExports.jsx(Stack$5,{sx:{overflowY:"auto"},height:1,children:jsxRuntimeExports.jsx(ReadPatientNotes,{notes:kt,loading:Yt,error:Kt,filter:qt,practitionerTimezone:It})})]}),jsxRuntimeExports.jsxs(Stack$5,{sx:{height:"50%"},borderTop:`1px solid ${Rt.palette.grey[300]}`,children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",justifyContent:"space-between",height:"48px",sx:{backgroundColor:Rt.palette.background.secondary,marginX:-2,paddingRight:2},children:[jsxRuntimeExports.jsx(Typography,{lineHeight:"48px",paddingLeft:2,variant:"h6",children:"Quick notes"}),jsxRuntimeExports.jsx(Button,{id:"add-note-button","data-testid":"add-note-button",onClick:()=>{clearTimeout(Mt),vt(null),Ut(ht,lt)},disabled:!ht||Xt||Bt||lt==="",variant:"contained",children:"Add note"})]}),!Xt&&jsxRuntimeExports.jsx(Stack$5,{style:{width:"60px"},children:jsxRuntimeExports.jsx(NoteTypeButtons,{noteTypes:zt,selected:lt,setSelectedNoteType:ut})}),jsxRuntimeExports.jsx("textarea",{id:"quickNotesInput",disabled:Xt,placeholder:Xt?"Please add notes in your EMR.":"Type your notes here...",value:ht||"",onChange:rr=>{mt(rr.target.value||"")},onBlur:rr=>{const cr=setTimeout(()=>Ht(rr),400);vt(cr)},style:{maxHeight:"100%",maxWidth:"100%",height:"100%",width:"100%",fontFamily:"unset",border:"unset"}})]})]})})},TopContainer=styled$1("div")`
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
`;styled$1("h3")`
  font-size: 18px;
  color: ${et=>et.theme.palette.primary.dark};
  margin-bottom: 12px;
`;const NoteTypesContainer=styled$1("div")`
  display: flex;
`,NoteTypeButtonContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  margin: 0 16px 16px 0;
`,NoteTypeButton=styled$1("button")`
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 4px;
`,NoteTypeText=styled$1("span")`
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 16px;
`,ActiveNoteType=styled$1("div")`
  width: 100%;
  height: 3px;
  background-color: ${et=>et.theme.palette.primary.main};
`,AddNoteButtonContainer=styled$1("div")`
  border-top: 2px solid ${et=>et.theme.palette.primary.dark};
  display: flex;
  justify-content: flex-end;
  padding: 12px 9px 12px 16px;
`,WarningIcon$3=styled$1(SvgErrorCircleFill)`
  position: absolute;
  left: -10px;
  top: -10px;
`,AddNotes=et=>{var Wt;const{className:tt,showToast:rt}=et,nt=useRouteMatch(),{id:lt}=nt.params,ut=useNoteTypes(lt),{notes:dt,isLoading:pt,hasErrors:ht}=usePatientNotes(lt),[mt,xt]=reactExports.useState(),[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(null),[Rt,zt]=reactExports.useState(""),[Tt,Ct]=reactExports.useState(),[It,Dt]=reactExports.useState(!1),{state:kt}=reactExports.useContext(UserContext),Nt=useWindowSize().width<supportedSize.desktop,{data:Yt}=useQuery(GET_PRACTITIONER,{variables:{patientId:lt}}),Kt=(Wt=Yt==null?void 0:Yt.practitioner)==null?void 0:Wt.id,[Jt]=useMutation(ADD_PATIENT_NOTE,{refetchQueries:[{query:GET_PATIENT_NOTES,variables:{patientId:lt}}],onCompleted:()=>{vt(!1)}}),[Qt]=useMutation(UPDATE_PATIENT_NOTE,{refetchQueries:[{query:GET_PATIENT_NOTES,variables:{patientId:lt}}]}),Bt=(Ut,Vt,Ht)=>{vt(!0),Jt({variables:{patientId:lt,message:Ut,messageType:Vt,noteId:Ht}})},Ft=(Ut,Vt,Ht)=>{Qt({variables:{patientId:lt,message:Ut,messageType:Vt,noteId:Ht}})};reactExports.useEffect(()=>{ut&&xt(ut[0])},[ut]),reactExports.useEffect(()=>{if(dt&&dt.length){const Ut=dt.filter(Vt=>{var Ht;return Vt.isDraft&&((Ht=Vt.createdBy)==null?void 0:Ht.id)===Kt})[0];Ct(Ut||null),zt((Ut==null?void 0:Ut.formattedMessage)||""),xt(Ut?ut.filter(Vt=>(Vt==null?void 0:Vt.name)===(Ut==null?void 0:Ut.messageType))[0]:ut[0])}},[dt]);const $t=Ut=>{const{relatedTarget:Vt}=Ut;!["add-note-button","note-type-button"].includes(Vt==null?void 0:Vt.id)&&mt&&!Mt&&Ft(Ut.target.value,mt.name,Tt==null?void 0:Tt.id)},jt=!CurrentAppConfig.Notes.EnableSubmit;return usePreventUnload(Tt&&Rt!==(Tt==null?void 0:Tt.formattedMessage)),pt?jsxRuntimeExports.jsx(LoadingSpinner,{}):ht?jsxRuntimeExports.jsx("div",{children:"Error"}):jsxRuntimeExports.jsxs(SideDrawer,{isOpen:It,className:tt,showToggleBtn:ut.length>0&&Nt,toggleBtn:jsxRuntimeExports.jsx(SideDrawerToggle,{"data-test-id":"add-notes-toggle",onClick:()=>Dt(!It),primaryIcon:It?jsxRuntimeExports.jsx(CloseIcon,{htmlColor:"white"}):jsxRuntimeExports.jsx(EditOutlined,{htmlColor:"white"}),showStatusIcon:Tt&&Rt.length>0&&!It,statusIcon:jsxRuntimeExports.jsx(WarningIcon$3,{}),text:It?"Close":"Add Notes"}),children:[Rt&&jsxRuntimeExports.jsx(Banner$2,{type:"info",text:"",subtext:"This note is not submitted, please add note",testId:"unsubmitted-notes"}),jsxRuntimeExports.jsxs(TopContainer,{children:[jsxRuntimeExports.jsx(Typography,{paddingBottom:1,variant:"h6",children:"Add Notes"}),jsxRuntimeExports.jsx(NoteTypesContainer,{children:[...ut].sort((Ut,Vt)=>Ut.listWeight-Vt.listWeight).map(Ut=>{const{alias:Vt=null,name:Ht}=Ut;return jsxRuntimeExports.jsxs(NoteTypeButtonContainer,{children:[jsxRuntimeExports.jsx(NoteTypeButton,{type:"button",id:"note-type-button",onClick:()=>{xt(Ut),Rt&&Ft(Rt,Ht,Tt==null?void 0:Tt.id)},children:jsxRuntimeExports.jsx(NoteTypeText,{children:Vt||Ht})},Ut==null?void 0:Ut.id),(mt==null?void 0:mt.alias)===Ut.alias&&jsxRuntimeExports.jsx(ActiveNoteType,{})]},Ht)})}),jsxRuntimeExports.jsx(TextareaAutosize,{id:"add-note-textarea",placeholder:jt?"Please add notes in your EMR.":"Type your notes here...",disabled:jt,value:Rt,onChange:Ut=>zt(Ut.target.value),onBlur:Ut=>{const Vt=setTimeout(()=>$t(Ut),400);At(Vt)},style:{fontFamily:"unset",border:"unset",padding:0,maxHeight:"calc(100vh - 460px)"}})]}),jsxRuntimeExports.jsx(AddNoteButtonContainer,{children:jsxRuntimeExports.jsx(Button,{"data-testid":"add-note-button",id:"add-note-button",variant:"contained",disabled:!Rt||Mt||jt,onClick:()=>{mt&&(clearTimeout(Ot),At(null),zt(""),Bt(Rt,mt.name,Tt==null?void 0:Tt.id),(kt==null?void 0:kt.primaryRole)==="ro"&&rt&&B$3.dark(jsxRuntimeExports.jsx(ToastNotificationMessage,{}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,transition:F$2,progress:void 0}))},children:"Add note"})})]})},ClinicalInfoWrapper$1=styled$1("div")`
  height: 100%;
  display: flex;
  flex-direction: column;
`,ContentContainer$2=styled$1("div")`
  overflow: auto;
  flex-grow: 1;
  min-height: 0;
  font-size: 16px;
`,DxAllergyAlertItem=styled$1("div")`
  margin-bottom: 16px;
  line-height: 24px;
`,BubbleTextContainer=styled$1("div")`
  display: inline-block;
  padding: 8px 16px;
  background-color: ${et=>et.theme.palette.grey[100]};
  color: black;
  font-weight: bold;
  font-size: 16px;
  border-radius: 16px;
  margin-bottom: 8px;
`,ClinicalInformation=()=>{const[et,tt]=reactExports.useState(0),rt=useTheme$1(),{patientDetails:nt,setPatientAlerts:lt}=reactExports.useContext(ROPatientContext),ut=useRouteMatch(),{id:dt}=ut.params,{data:pt}=useQuery(GET_ALERTS,{variables:{patientId:dt},onCompleted:Tt=>lt(Tt==null?void 0:Tt.alerts)}),ht=nt==null?void 0:nt.carepathPatientDiagnosis,mt=nt==null?void 0:nt.allergy.filter(Tt=>Tt.status==="Active"),xt=pt==null?void 0:pt.alerts,Mt=ht==null?void 0:ht.filter(Tt=>Tt.isMostRecent&&Tt.emrDiagnosisKey!==null),vt=mt==null?void 0:mt.some(Tt=>Tt.name&&["no known drug allergies","no known allergies"].includes(Tt.name.toLowerCase())),Ot=()=>Mt!=null&&Mt.length?Mt.map((Tt,Ct)=>jsxRuntimeExports.jsxs(DxAllergyAlertItem,{children:[jsxRuntimeExports.jsxs(BubbleTextContainer,{children:[Ct+1,". ",Tt.diagnosisCode.diagnosisCode," ",Tt.isPrimaryDiagnosis?"Primary":"Metastasis"]}),jsxRuntimeExports.jsx("div",{children:`${Tt.diagnosisCode.tumourStream.name} - ${Tt.diagnosisCode.diagnosisDescription}`})]},`diagnosis-${Ct}`)):jsxRuntimeExports.jsx("p",{children:"No diagnoses available"}),At=()=>mt&&mt.length===0?jsxRuntimeExports.jsx("p",{children:"No allergies available "}):mt.map((Tt,Ct)=>jsxRuntimeExports.jsxs(DxAllergyAlertItem,{children:[jsxRuntimeExports.jsxs(BubbleTextContainer,{children:[Ct+1,". ",Tt.name]}),jsxRuntimeExports.jsxs("div",{children:["Severity: ",jsxRuntimeExports.jsx("strong",{children:Tt.severity})]}),jsxRuntimeExports.jsxs("div",{children:["Notes: ",jsxRuntimeExports.jsx("strong",{children:Tt.reaction})]})]},`allergy-${Ct}`)),Rt=()=>(xt==null?void 0:xt.length)>0?xt.map((Tt,Ct)=>jsxRuntimeExports.jsxs(DxAllergyAlertItem,{children:[jsxRuntimeExports.jsxs(BubbleTextContainer,{children:[Ct+1,". ",Tt.name]}),jsxRuntimeExports.jsxs("div",{children:["Status: ",jsxRuntimeExports.jsx("b",{children:Tt.status})," | Assigned: ",jsxRuntimeExports.jsx("b",{children:Tt.assigned&&hooks.utc(Tt.assigned).format("L")})]}),jsxRuntimeExports.jsxs("div",{children:["Notes: ",jsxRuntimeExports.jsx("b",{children:Tt.comment})]})]},`alert-${Ct}`)):jsxRuntimeExports.jsx("p",{children:"No alerts available"}),zt=[{text:"Diagnosis",notification:{color:rt.palette.grey[600],text:(Mt==null?void 0:Mt.length)||0},component:jsxRuntimeExports.jsx(Ot,{})},{text:"Allergies",notification:{color:vt?rt.palette.grey[600]:!vt&&(mt==null?void 0:mt.length)>0?rt.palette.error.main:rt.palette.warning.dark,text:mt!=null&&mt.length&&vt?"N":(mt==null?void 0:mt.length)>0?mt.length:"?"},component:jsxRuntimeExports.jsx(At,{})},{text:"Alerts",notification:{color:(xt==null?void 0:xt.length)>0?rt.palette.error.main:rt.palette.warning.dark,text:(xt==null?void 0:xt.length)||"?"},component:jsxRuntimeExports.jsx(Rt,{})}];return nt?jsxRuntimeExports.jsxs(ClinicalInfoWrapper$1,{children:[jsxRuntimeExports.jsx(TabSelectHeader,{title:"Clinical Information",options:zt,onClickHandler:()=>{},activeIndex:et,setActiveIndex:tt}),jsxRuntimeExports.jsx(ContentContainer$2,{children:zt[et].component})]}):jsxRuntimeExports.jsx("div",{children:"Loading..."})},{NO_UPCOMING}=CONSTANTS,OtherInfoWrapper$1=styled$1("div")`
  height: 100%;
  display: flex;
  flex-direction: column;
`,ContentContainer$1=styled$1("div")`
  overflow: overlay;
  flex-grow: 1;
  min-height: 0;
`,TabContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  font-size: 16px;
`,AppointmentHeader=styled$1("div")`
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 8px;
  background-color: ${et=>et.theme.palette.grey[100]};
  font-weight: bold;
`,AppointmentBody=styled$1("div")`
  padding: 16px 16px 0;
  overflow: auto;
  font-size: 16px;
`,SingleAppointment=styled$1("div")`
  display: flex;
  min-height: 40px;
  font-size: 16px;
  margin-bottom: 16px;
`,DateWrapper=styled$1("div")`
  width: 30%;
  display: flex;
  align-items: center;
`,DescriptionWrapper=styled$1("div")`
  word-break: break-word;
  padding: 0 8px;
  border-left: 1px solid ${et=>et.theme.palette.primary.main};
  width: 40%;
  font-weight: bold;
  display: flex;
  align-items: center;
`,LocationWrapper=styled$1(DescriptionWrapper)`
  width: 30%;
  font-weight: normal;
`,RowInfoWrapper=styled$1("div")`
  display: flex;
  margin-bottom: 16px;
`,ColumnInfoWrapper=styled$1("div")`
  width: ${({$width:et})=>et};
  line-height: 24px;
`,InfoHeader=styled$1("div")`
  :after {
    content: '_';
    visibility: hidden;
  }
`,InfoSubtitle=styled$1("div")`
  font-weight: bold;
`,StyledHr=styled$1("hr")`
  width: 100%;
`,OtherInformation=()=>{const[et,tt]=reactExports.useState(0),{patientDetails:rt}=reactExports.useContext(ROPatientContext),nt=rt==null?void 0:rt.appointments,lt=(rt==null?void 0:rt.allReferrers)||[],{responsiblePhysician:ut,primaryPhysician:dt,referringSurgeon:pt}=useReferrers(lt),ht=rt==null?void 0:rt.healthMedicareNumber,mt=rt==null?void 0:rt.healthMedicareIrn,xt=rt==null?void 0:rt.medicareExpiryRawMonth,Mt=rt==null?void 0:rt.medicareExpiryRawYear,vt=rt==null?void 0:rt.insurances,Ot=rt==null?void 0:rt.emergencyContact,At=nt!=null&&nt.length?getReducedAppointments(nt):null,Rt=Nt=>jsxRuntimeExports.jsxs(ColumnInfoWrapper,{$width:Nt.width||"50%",children:[jsxRuntimeExports.jsx(InfoHeader,{children:Nt.header}),jsxRuntimeExports.jsx(InfoSubtitle,{children:Nt.subtitle||"-"})]}),zt=()=>At!=null&&At.length?At.map(Nt=>jsxRuntimeExports.jsxs(TabContainer,{children:[jsxRuntimeExports.jsxs(AppointmentHeader,{children:[jsxRuntimeExports.jsx("div",{children:Nt.formattedDate}),jsxRuntimeExports.jsx("div",{children:Nt.isToday?"Today":Nt.isTomorrow?"Tomorrow":null})]}),jsxRuntimeExports.jsx(AppointmentBody,{children:Nt.appts.map(Yt=>jsxRuntimeExports.jsxs(SingleAppointment,{children:[jsxRuntimeExports.jsx(DateWrapper,{children:Yt.displayTime}),jsxRuntimeExports.jsx(DescriptionWrapper,{children:Yt.description||"-"}),jsxRuntimeExports.jsx(LocationWrapper,{children:Yt.location||"-"})]}))})]})):jsxRuntimeExports.jsx(TabContainer,{children:NO_UPCOMING}),Tt=()=>{var Nt;return jsxRuntimeExports.jsxs(TabContainer,{children:[jsxRuntimeExports.jsx(RowInfoWrapper,{children:Rt({header:CurrentAppConfig.ReferringPhysicians.oncologist,subtitle:ut!=null&&ut.practitioner?`${ut.practitioner.firstName} ${ut.practitioner.lastName}`:null,width:"100%"})}),jsxRuntimeExports.jsxs(RowInfoWrapper,{children:[Rt({header:CurrentAppConfig.ReferringPhysicians.generalPractitioner,subtitle:dt!=null&&dt.practitioner?`${dt.practitioner.firstName} ${dt.practitioner.lastName}`:null}),((Nt=dt==null?void 0:dt.practitioner)==null?void 0:Nt.phone)&&Rt({subtitle:`Contact number: ${dt.practitioner.phone}`})]}),pt.length>0?pt.map((Yt,Kt)=>jsxRuntimeExports.jsxs(RowInfoWrapper,{"data-testid":`referringPhysician-${Kt}`,children:[Rt({header:CurrentAppConfig.ReferringPhysicians[Yt.relationshipType],subtitle:`${Yt.practitioner.firstName} ${Yt.practitioner.lastName}`}),Rt({subtitle:`${Yt.practitioner.phone&&`Contact number: ${Yt.practitioner.phone}`}`})]},`${Yt.practitioner.firstName}-${Kt}`)):jsxRuntimeExports.jsx(RowInfoWrapper,{children:Rt({header:"Referring Physician"})})]})},Ct=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(RowInfoWrapper,{children:[Rt({header:"Medicare card number/IRN",subtitle:ht&&mt&&`${ht} ${mt}`}),Rt({header:"Medicare card expiry",subtitle:xt&&Mt&&`${xt}/${Mt.slice(-2)}`})]}),jsxRuntimeExports.jsx(StyledHr,{})]}),It=()=>jsxRuntimeExports.jsxs(TabContainer,{children:[region===Region.AU&&Ct(),vt==null?void 0:vt.map(Nt=>{var Yt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(RowInfoWrapper,{children:Rt({subtitle:((Yt=Nt.payor)==null?void 0:Yt.name)||"-"})}),jsxRuntimeExports.jsxs(RowInfoWrapper,{children:[Rt({header:"Insurance policy number",subtitle:Nt.policyNumber||"-"}),Rt({header:"Expiration date",subtitle:Nt.expiryDate?hooks(new Date(Nt.expiryDate)).format("L"):"-"})]})]})})]}),Dt=()=>jsxRuntimeExports.jsx(TabContainer,{children:jsxRuntimeExports.jsx(RowInfoWrapper,{children:Ot?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Rt({header:(Ot==null?void 0:Ot.relationship)||"-",subtitle:`${Ot==null?void 0:Ot.firstName} ${Ot==null?void 0:Ot.lastName}`}),Rt({subtitle:`Contact number: ${(Ot==null?void 0:Ot.mobilePhoneNumber)||(Ot==null?void 0:Ot.homePhoneNumber)||"-"}`})]}):jsxRuntimeExports.jsx("div",{children:"No emergency contact assigned"})})}),qt=[{text:"Appointments",component:jsxRuntimeExports.jsx(zt,{}),hide:!1},{text:"Treating physicians",component:jsxRuntimeExports.jsx(Tt,{}),hide:!1},{text:"Insurance",component:jsxRuntimeExports.jsx(It,{}),hide:!1},{text:"Emergency contact",component:jsxRuntimeExports.jsx(Dt,{}),false:!1}].filter(Nt=>!Nt.hide);return jsxRuntimeExports.jsxs(OtherInfoWrapper$1,{children:[jsxRuntimeExports.jsx(TabSelectHeader,{title:"Other Information",options:qt,onClickHandler:()=>{},activeIndex:et,setActiveIndex:tt}),jsxRuntimeExports.jsx(ContentContainer$1,{children:qt[et].component})]})},TitleStatus=styled$1("div")`
  line-height: 24px;
  ${et=>et.$grouped&&"padding-left: 16px;"}
`,StatusContainer=styled$1("div")`
  display: flex;
  align-items: center;
`,StatusCircle$1=styled$1("div")`
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: ${({statusColor:et})=>`${et}`};
  margin-right: 2px;
`,tableHeaders=[{title:"Dose site summary",key:"title",type:"string",width:"26%"},{title:"Course",key:"course",type:"string",width:"11%"},{title:"Delivered",key:"delivered",type:"string",width:"11%"},{title:"Prescribed",key:"prescribed",type:"string",width:"11%"},{title:"Start Tx",key:"treatmentStart",type:"string",width:"11%"},{title:"Latest Tx",key:"treatmentLatest",type:"string",width:"11%"},{title:"Final Tx",key:"treatmentFinal",type:"string",width:"11%"},{title:"Source",key:"source",type:"string",width:"8%"}],createDoseGroup=(et,tt)=>{const rt=sortByNewestToOldest(tt),nt=rt.length>1,{totalDeliveredDose:lt,totalDoseMax:ut}=computeGroupTotal(rt);return{groupName:et,totalDeliveredDose:lt,totalDoseMax:ut,isAria:!0,sortDate:rt[0].sortDate,showTotal:nt,doseGroupCards:rt}},DoseSiteSummarySimple=()=>{const et=useRouteMatch(),{setError:tt}=useErrorModalContext(),{id:rt}=et.params,{data:nt,loading:lt,error:ut}=useQuery(GET_DOSE_SITE_SUMMARIES,{variables:{patientId:rt},fetchPolicy:"cache-and-network"});if(lt)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading dose site summaries",relativeSpinner:!0});if(ut)return tt("NON_BLOCKING"),jsxRuntimeExports.jsx(DoseSiteSummary$1,{doseSiteSummaries:[]});const dt=(nt==null?void 0:nt.doseSiteSummaries)||[];return jsxRuntimeExports.jsx(DoseSiteSummary$1,{doseSiteSummaries:dt})},DoseSiteSummary$1=({doseSiteSummaries:et})=>{const tt=useTheme$1(),rt=reactExports.useContext(TenantContext),nt=rt.doseUnit,lt=[],ut=et.filter(Tt=>!Tt.isAria).map(Tt=>({...Tt,sortDate:hooks(Tt.latestTreatment).format(CurrentAppConfig.DoseSiteSummary.DateFormat)})),dt=et.filter(Tt=>Tt.isAria).map(Tt=>({...Tt,sortDate:hooks(Tt.latestTreatment).format(CurrentAppConfig.DoseSiteSummary.DateFormat)})),pt=groupBy(dt,"categorySiteGroup"),ht=[];Object.entries(pt).forEach(Tt=>{ht.push(createDoseGroup(Tt[0],Tt[1]))});const mt=Tt=>Tt.toUpperCase()==="IN PROGRESS"?tt.palette.warning.dark:Tt.toUpperCase()==="COMPLETE"?tt.palette.primary.main:tt.palette.grey[600],xt=({title:Tt,status:Ct,grouped:It})=>jsxRuntimeExports.jsxs(TitleStatus,{$grouped:It,children:[jsxRuntimeExports.jsx("div",{children:display$1(Tt)}),Ct&&jsxRuntimeExports.jsxs(StatusContainer,{children:[jsxRuntimeExports.jsx(StatusCircle$1,{statusColor:mt(Ct)}),Ct]})]}),Mt=Tt=>{const Ct=(Tt==null?void 0:Tt.remainingDoseQuantity)||0;let It="In progress";return Tt.statusReason==="CompletedEarly"?It="Completed early":Ct===0&&(It="Complete"),It},vt=Tt=>Tt?hooks(Tt).format(CurrentAppConfig.DoseSiteSummary.DateFormat):"-",Ot=({data:Tt})=>jsxRuntimeExports.jsx("div",{children:display$1(Tt)}),At=Tt=>{const{title:Ct,status:It,course:Dt,delivered:kt,prescribed:qt,treatmentStart:Nt,treatmentLatest:Yt,treatmentFinal:Kt,source:Jt,grouped:Qt}=Tt,Bt={rows:[{key:"title",component:jsxRuntimeExports.jsx(xt,{title:Ct,status:It,grouped:Qt}),width:"26%"},{key:"course",component:jsxRuntimeExports.jsx(Ot,{data:Dt}),width:"11%"},{key:"delivered",component:jsxRuntimeExports.jsx(Ot,{data:kt}),width:"11%"},{key:"prescribed",component:jsxRuntimeExports.jsx(Ot,{data:qt}),width:"11%"},{key:"treatmentStart",component:jsxRuntimeExports.jsx(Ot,{data:Nt}),width:"11%"},{key:"treatmentLatest",component:jsxRuntimeExports.jsx(Ot,{data:Yt}),width:"11%"},{key:"treatmentFinal",component:jsxRuntimeExports.jsx(Ot,{data:Kt}),width:"11%"},{key:"source",component:jsxRuntimeExports.jsx(Ot,{data:Jt}),width:"8%"}]};(It==null?void 0:It.toUpperCase())==="IN PROGRESS"&&(Bt.rowBackgroundColor=tt.palette.warning.light),lt.push(Bt)},Rt=({dose:Tt,grouped:Ct})=>{const It=Tt.deliveredDosageQuantity||0,Dt=Tt.remainingDoseQuantity||0,kt=It+Dt,qt=Tt.deliveredDosageRatio||0,Nt=Tt.plannedDosageRatio||0,Yt=Mt(Tt),Kt=Tt.latestTreatment?vt(Tt.latestTreatment):null,Jt=Yt.startsWith("Complete")?Kt:"See Appointments",Qt={title:Tt==null?void 0:Tt.identifierSite,course:Tt==null?void 0:Tt.medicationReference,delivered:`${doseRounding(It,!0,rt)}${nt}/${qt}#`,prescribed:`${doseRounding(kt,!0,rt)}${nt}/${Nt}#`,treatmentStart:Tt.firstTreatment?vt(Tt.firstTreatment):null,treatmentLatest:Kt,treatmentFinal:Jt,source:"Aria",status:Yt,grouped:Ct};At(Qt)};ut.forEach(Tt=>{const Ct=doseRounding(Tt.deliveredDosageQuantity,!1,rt),It=doseRounding(Tt.plannedDosageQuantity,!1,rt),Dt=Tt.deliveredDosageRatio||0,kt=Tt.plannedDosageRatio||0,qt=Dt===kt?"Complete":"In progress",Nt=vt(Tt.latestTreatment),Yt=qt.startsWith("Complete")?Nt:"See Appointments",Kt={title:Tt.identifierSite,status:qt,course:Tt==null?void 0:Tt.medicationReference,delivered:`${Ct}${nt}/${Dt}#`,prescribed:`${It}${nt}/${kt}#`,treatmentStart:vt(Tt.firstTreatment),treatmentLatest:vt(Tt.latestTreatment),treatmentFinal:Yt,source:"Mosaiq"};At(Kt)}),ht.forEach(Tt=>{if(Tt.doseGroupCards.length>1){const Ct={title:Tt==null?void 0:Tt.groupName,course:display$1(null),delivered:(Tt==null?void 0:Tt.showTotal)&&(Tt==null?void 0:Tt.totalDeliveredDose)&&`${Tt.totalDeliveredDose}${nt}`,prescribed:(Tt==null?void 0:Tt.showTotal)&&(Tt==null?void 0:Tt.totalDoseMax)&&`${Tt.totalDoseMax}${nt}`,treatmentStart:display$1(null),treatmentLatest:display$1(null),treatmentFinal:display$1(null),source:"Aria"};At(Ct),Tt.doseGroupCards.forEach(It=>{Rt({dose:It,grouped:!0})})}else{const Ct=Tt.doseGroupCards[0];Rt({dose:Ct})}});const zt=lt.map(Tt=>({tableRows:Tt.rows,...Tt}));return jsxRuntimeExports.jsx(Table$2,{tableHeaders,tableData:zt,noRowsText:"Treatment has not started yet."})},SummaryWrapper=styled$1(GridContainer)`
  position: relative;
`,MiddleWrapper=styled$1("div")`
  display: flex;
  flex-direction: column;
  width: ${({$windowWidth:et})=>et<LARGE_DISPLAY_SIZE?"calc(100% - 88px)":"75%"};
`,InformationWrapper=styled$1("div")`
  width: 100%;
  height: 66%;
  display: flex;
  margin-bottom: 8px;
  min-height: 0;
`,ClinicalInfoWrapper=styled$1(GridSection)`
  width: 50%;
  margin-right: 8px;
`,OtherInfoWrapper=styled$1(GridSection)`
  width: 50%;
  margin-left: 8px;
`,DoseSiteWrapper=styled$1(GridSection)`
  height: 34%;
  margin-top: 8px;
`,Summary$2=()=>{const et=useWindowSize();return jsxRuntimeExports.jsx(FileContextProvider,{children:jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{patientCardView:"roSimplified",children:jsxRuntimeExports.jsxs(SummaryWrapper,{id:"patient-summary-primary",children:[jsxRuntimeExports.jsxs(MiddleWrapper,{$windowWidth:et==null?void 0:et.width,children:[jsxRuntimeExports.jsxs(InformationWrapper,{children:[jsxRuntimeExports.jsx(ClinicalInfoWrapper,{children:jsxRuntimeExports.jsx(ClinicalInformation,{})}),jsxRuntimeExports.jsx(OtherInfoWrapper,{children:jsxRuntimeExports.jsx(OtherInformation,{})})]}),jsxRuntimeExports.jsx(DoseSiteWrapper,{children:jsxRuntimeExports.jsx(DoseSiteSummarySimple,{})})]}),jsxRuntimeExports.jsx(AddNotes,{showToast:!0})]})})})})},DoseSiteSummaryContainer=({mqDoses:et,ariaDoses:tt,doseSize:rt,index:nt,setIndex:lt})=>{if(et||tt){const ut=dt=>{lt(dt%rt)};return jsxRuntimeExports.jsx(RODoseSiteCarousel,{handleSelect:ut,index:nt,mqDoses:et,ariaDoses:tt,doseSize:rt})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},DoseSiteSummary=()=>{const{setError:et}=useErrorModalContext(),tt=useRouteMatch(),rt=useTheme$1(),[nt,lt]=reactExports.useState(0),{id:ut}=tt.params,{data:dt,loading:pt,error:ht}=useQuery(GET_DOSE_SITE_SUMMARIES,{variables:{patientId:ut},fetchPolicy:"cache-and-network"});if(reactExports.useEffect(()=>{if(ht)return et("NON_BLOCKING")},[ht]),reactExports.useEffect(()=>{lt(0)},[dt]),!dt&&pt)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading dose site summaries",relativeSpinner:!0});if(!dt&&ht)return jsxRuntimeExports.jsx(GeneralError,{primaryText:"Unable to load dose site summaries.",secondaryText:`Please contact ${rt.custom.support}.`});const mt=dt.doseSiteSummaries.filter(At=>!At.isAria),xt=dt.doseSiteSummaries.filter(At=>At.isAria),Mt=groupBy(xt,"categorySiteGroup"),vt=mt.length+Object.keys(Mt).length,Ot=vt?`${nt+1}/${vt}`:"";return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Card$2,{sx:{height:"50%",padding:"16px",boxShadow:"0px 2px 8px rgba(113, 110, 106, 0.2)"},children:jsxRuntimeExports.jsxs(Stack$5,{height:1,children:[jsxRuntimeExports.jsxs(Typography,{variant:"h6","data-test-id":"dose-site-summary-title",paddingBottom:1,children:["Dose site summary ",Ot]}),jsxRuntimeExports.jsx(DoseSiteSummaryContainer,{mqDoses:mt,ariaDoses:xt,doseSize:vt,index:nt,setIndex:lt})]})})})},ResponsiveContainer$1=styled$1("div")`
  overflow-x: auto;
  overflow-y: auto;
  width: 100%;
`,TableContainer$3=styled$1("table")`
  display: table;
  width: 100%;
  font-size: 16px;
  line-height: 24px;
  float: left;
  border-collapse: separate;
  margin: 10px 0px;
`,Header$2=styled$1("thead")`
  width: auto;
  font-weight: 500;
  margin: 25px 5px;

  th {
    top: 0;
    background: ${et=>et.theme.palette.grey[100]};
    font-weight: 500;
    position: sticky;
  }
`,HeaderRow$2=styled$1("tr")`
  width: auto;
`,HeaderCol$1=styled$1("th")`
  width: auto;
  vertical-align: middle;
  border-collapse: collapse;
  padding: 8px;
  text-align: left;
`,DataBody$1=styled$1("tbody")`
  width: auto;
`,DataCol$1=styled$1("td")`
  width: auto;
  padding: 8px;
  height: 44px;
`,DataRow$1=styled$1("tr")`
  background: ${et=>et.highlight?tt=>tt.theme.palette.action.selected:"none"};
  & td:first-child {
    text-align: left;
    border-radius: ${et=>et.highlight?"5px  0  0 5px":"none"};
    border-left: ${et=>et.highlight?`2px solid ${tt=>tt.theme.palette.primary.main}`:"none"};
    padding: 8px;
  }
  & td:last-child {
    border-radius: ${et=>et.highlight?"0px  5px  5px  0px":"none"};
    border-right: ${et=>et.highlight?`2px solid ${tt=>tt.theme.palette.primary.main}`:"none"};
    padding: 8px;
    text-align: right;
  }
  & td {
    border-top: ${et=>et.highlight?`2px solid ${tt=>tt.theme.palette.primary.main}`:"none"};
    border-bottom: ${et=>et.highlight?`2px solid ${tt=>tt.theme.palette.primary.main}`:"none"};
    padding: 8px;
    text-align: left;
  }
  &:hover {
    background: ${et=>et.highlight?et.theme.palette.action.selected:et.theme.palette.action.hover};
  }
  box-shadow: 0px 1px 0px ${et=>et.theme.palette.grey[300]};
  width: auto;
`,OrderLabelContainer=styled$1("div")`
  display: flex;
  justify-content: ${et=>et.isLastColumn?"flex-end":"flex-start"};
  align-items: center;
`,ORDERING={ASC:"ASC",DESC:"DESC"},DATATYPE={DATE:"DATE",STRING:"STRING",NUMBER:"NUMBER"},OrderLabel=et=>{const{ASC:tt,DESC:rt}=ORDERING,nt=et.sortState.order===ORDERING.ASC,lt=et.sortState.key===et.header.key;return jsxRuntimeExports.jsxs(OrderLabelContainer,{isLastColumn:et.isLastColumn,children:[jsxRuntimeExports.jsxs(Stack$5,{onClick:()=>{et.onSortCallback(nt?rt:tt)},sx:{cursor:"pointer"},children:[jsxRuntimeExports.jsx(KeyboardArrowUp,{color:lt&&nt?"primary":"secondary",sx:{marginBottom:"-10px"}}),jsxRuntimeExports.jsx(KeyboardArrowDown,{color:lt&&!nt?"primary":"secondary"})]}),jsxRuntimeExports.jsx(Typography,{children:et.label})]})},DropdownOrderLabel=et=>{const tt=et.docTypeOptions.filter(dt=>dt.checked).length,rt=tt===et.docTypeOptions.length,nt=rt?"Type (All)":"Type",lt=String(tt),ut=et.docTypeOptions.map(dt=>({value:dt.name,id:dt.id,checked:dt.checked||!1}));return jsxRuntimeExports.jsx(OrderLabelContainer,{isLastColumn:et.isLastColumn,children:jsxRuntimeExports.jsx(BaseSelectCheckbox,{id:"documents",options:ut,placeholder:nt,showSelectAll:!0,badgeContent:rt?void 0:lt,onChange:dt=>legacyOnChange(dt,ut,et.updateDocumentTypeOptions),sx:{".MuiOutlinedInput-notchedOutline":{border:"none",outline:"none"}}})})},SimpleTable=et=>{const[tt,rt]=reactExports.useState({key:"",order:"",type:""}),[nt,lt]=reactExports.useState(et.selectedRow);let ut=et.data;const dt=et.dataProps.filter(mt=>mt.sort).map(mt=>mt.key),pt=et.dataProps.map(mt=>mt.key);dt&&tt.key&&(ut=[...et.data].sort((mt,xt)=>{if(tt.type===DATATYPE.DATE){const Mt=hooks(mt[tt.key],"L").toDate().getTime(),vt=hooks(xt[tt.key],"L").toDate().getTime();return tt.order===ORDERING.ASC?Mt-vt:vt-Mt}else{const Mt=tt.order===ORDERING.ASC?1:-1;if(mt[tt.key]>xt[tt.key])return Mt;if(mt[tt.key]<xt[tt.key])return-1*Mt}return 0})),reactExports.useEffect(()=>{lt(et.selectedRow)},[et.selectedRow]);const ht=et.header==="Documents"?et.dataProps.filter(mt=>mt.key!=="description"):et.dataProps;return jsxRuntimeExports.jsx(ResponsiveContainer$1,{style:{minHeight:"100%"},children:jsxRuntimeExports.jsxs(TableContainer$3,{"data-test-id":`${et.header}-table`,children:[jsxRuntimeExports.jsx(Header$2,{children:jsxRuntimeExports.jsxs(HeaderRow$2,{children:[et.header==="Documents"?jsxRuntimeExports.jsx(HeaderCol$1,{children:jsxRuntimeExports.jsx(DropdownOrderLabel,{sortState:tt,isLastColumn:!1,header:{header:"Type",key:"description",sort:!1,type:DATATYPE.STRING},label:"Key",onSortCallback:mt=>{rt({key:"description",order:mt,type:DATATYPE.STRING})},updateDocumentTypeOptions:et.updateDocumentTypeOptions,docTypeOptions:et.docTypeOptions})},"head-99"):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),ht.map((mt,xt)=>jsxRuntimeExports.jsx(HeaderCol$1,{children:dt&&dt.includes(mt.key)?jsxRuntimeExports.jsx(OrderLabel,{sortState:tt,isLastColumn:xt===ht.length-1,header:mt,label:mt.header,onSortCallback:Mt=>{rt({key:mt.key,order:Mt,type:mt.type})}}):mt.header},`head-${xt}`))]})}),ut?jsxRuntimeExports.jsx(DataBody$1,{className:"document-list-table",children:ut.map((mt,xt)=>jsxRuntimeExports.jsx(DataRow$1,{"data-test-id":`docs-table-row-${mt.description}`,highlight:nt===mt.id,onClick:()=>{nt!==mt.id&&(lt(mt.id),et.onRowClick&&et.onRowClick(mt.id))},children:pt.map((Mt,vt)=>jsxRuntimeExports.jsx(DataCol$1,{children:mt[Mt]},`col-${vt}`))},`row-${xt}`))}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})]})})},WarningIcon$2=styled$1(SvgWarning)`
  width: 20px;
  height: 20px;
  margin-right: 5px;
  margin-left: 3px;
`,TooltipWarning=({message:et,children:tt,disabled:rt})=>jsxRuntimeExports.jsx(Tooltip,{arrow:!0,disableFocusListener:rt,disableHoverListener:rt,disableTouchListener:rt,title:jsxRuntimeExports.jsx(React$4.Fragment,{children:jsxRuntimeExports.jsxs(Box,{style:{textAlign:"center",fontSize:"14px"},children:[jsxRuntimeExports.jsx(WarningIcon$2,{}),et]})}),children:tt}),StyledDocListCol$2=styled$1(Stack$5)`
  color: ${et=>et.theme.palette.text.primary};
  height: 100%;
  overflow: auto;
  padding: 0px;
  justify-content: center;
  td {
    font-size: 14px;
  }
  table {
    margin: 0;
  }
`,StyledContainer$1=styled$1(Card$1)`
  height: 50%;
  padding: 16px;
  tbody tr:hover {
    cursor: pointer;
  }
  display: flex;
  flex-direction: column;
`,StyledSimpleTable$1=styled$1(SimpleTable)`
  line-height: 40px;
  margin: 25px 5px;
  height: 100%;
  width: 100%;
`,UploadIcon$1=styled$1(UploadOutlinedIcon)`
  width: 24px;
  height: 24px;
  margin-right: -5px;
`,WarningIcon$1=styled$1(SvgWarning)`
  width: 20px;
  height: 20px;
  margin-right: 5px;
  margin-left: 3px;
`,DOC_FILTER_FIELD$1=CurrentAppConfig.PatientSummary.documentFilterField,ROPatientDocList=et=>{var Qt,Bt;const{setError:tt}=useErrorModalContext(),rt=useRouteMatch(),[nt,lt]=reactExports.useState([]),{state:ut}=reactExports.useContext(UserContext),{PSO:dt,RO:pt}=RoleType,[ht,mt]=reactExports.useState([]),xt=reactExports.useRef(null),{id:Mt}=rt.params,{data:vt,loading:Ot,error:At,refetch:Rt}=useQuery(GET_PATIENT_DOCUMENTS,{variables:{patientId:Mt},skip:!Mt,fetchPolicy:"network-only"});reactExports.useEffect(()=>{if(At)return tt()},[At]);const zt=usePrevious$2(Mt);useQuery(PREFETCH_PATIENT_DOCUMENTS,{variables:{patientId:Mt},skip:!Mt,fetchPolicy:"network-only"});const Tt=[{header:"Type",key:"description",sort:!1,type:DATATYPE.STRING},{header:"Status",key:"status",sort:!0,type:DATATYPE.STRING},{header:"Date",key:"dateOfDocument",sort:!0,type:DATATYPE.DATE}],Ct="Documents",It=(Ft,$t)=>[...Ft].sort((jt,Wt)=>{if(!jt.hasOwnProperty($t)||!Wt.hasOwnProperty($t))return 0;const Ut=jt[$t].toLowerCase(),Vt=Wt[$t].toLowerCase();return Ut>Vt?1:Vt>Ut?-1:0}),Dt=Ft=>{et.setDocument(Ft!=null?ht.filter($t=>$t.id===Ft)[0]:null)},kt=Ft=>Ft.map($t=>({...$t,dateOfDocument:hooks.utc($t.dateOfDocument).format("l")})),qt=Ft=>{const $t=Ft.map(Wt=>Wt[DOC_FILTER_FIELD$1]);return[...new Set($t)].map(Wt=>{const Ut=nt&&nt.filter(Ht=>Ht.id===Wt).length;let Vt=!0;return Ut&&Mt===zt&&(Vt=nt.filter(Ht=>Ht.id===Wt)[0].checked),{id:Wt,name:Wt,checked:Vt}})},Nt=Ft=>{Dt(Ft),et.isSmallDisplay&&et.triggerModal()},Yt=(Ft,$t)=>{const jt=nt.map(Wt=>{const Ut=Ft.filter(Vt=>Vt===Wt.id);return Ut.length?{id:Ut[0],name:Ut[0],checked:$t}:Wt});lt(jt?It(jt,"name"):[])};useInterval(()=>{Rt()},8e3),reactExports.useEffect(()=>{if(vt&&vt.documents){mt(vt.documents);const Ft=qt(vt.documents),$t=It(Ft,"name");lt($t)}},[vt]),reactExports.useEffect(()=>{ht&&ht.length&&ht[0].patient.id===Mt&&!ht.filter(Ft=>{var $t;return Ft.id===(($t=et.currentDocument)==null?void 0:$t.id)}).length&&(window==null?void 0:window.innerWidth)>=LARGE_DISPLAY_SIZE?Dt(ht[0].id):vt&&!vt.documents.length&&Dt(null)},[ht]),reactExports.useEffect(()=>{const Ft=nt.filter(jt=>jt.checked).map(jt=>jt.id),$t=vt&&vt.documents?vt.documents.filter(jt=>Ft.includes(jt[DOC_FILTER_FIELD$1])):[];mt($t)},[nt]);const Kt=kt(ht),Jt=Kt.length?Kt:[{id:0}];return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(StyledContainer$1,{children:[jsxRuntimeExports.jsxs(Stack$5,{justifyContent:"space-between",alignItems:"center",direction:"row",paddingBottom:1,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:Ct}),(ut.primaryRole===dt||ut.primaryRole===pt&&CurrentAppConfig.PatientSummary.RODocumentUpload)&&jsxRuntimeExports.jsx(TooltipWarning,{disabled:!(et.disableUpload||et.unsubmittedDocuments),message:et.disableUpload?"Syncing patient with Mosaiq, please try again soon...":et.unsubmittedDocuments?"Unsubmitted documents":"",children:jsxRuntimeExports.jsx(Button,{onClick:()=>{et.disableUpload||et.setShowDocumentUploadPage(!0)},variant:"text",id:"upload-document-block",disabled:et.disableUpload,startIcon:jsxRuntimeExports.jsx(UploadIcon$1,{color:"primary"}),endIcon:et.unsubmittedDocuments?jsxRuntimeExports.jsx(WarningIcon$1,{}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),children:"Upload document"})})]}),jsxRuntimeExports.jsxs(StyledDocListCol$2,{ref:xt,children:[Ot?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Documents",relativeSpinner:!0}):null,!Ot&&((Qt=vt==null?void 0:vt.documents)!=null&&Qt.length)?jsxRuntimeExports.jsx(StyledSimpleTable$1,{header:Ct,onRowClick:Ft=>Nt(Ft),dataProps:Tt,data:Jt,selectedRow:et.currentDocument?et.currentDocument.id:window.innerWidth>=LARGE_DISPLAY_SIZE?Jt[0].id:null,docTypeOptions:nt,updateDocumentTypeOptions:Yt}):null,!Ot&&!((Bt=vt==null?void 0:vt.documents)!=null&&Bt.length)&&jsxRuntimeExports.jsxs(Stack$5,{alignItems:"center",children:[jsxRuntimeExports.jsx(FindInPageOutlinedIcon,{fontSize:"large",color:"primary"}),jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"No document available"})]})]})]})})},StyledCol=styled$1(Card$1)`
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
`,Date$2=styled$1("span")`
  font-size: ${getRemSize(16)};
`,ROPatientDocs=et=>{var Tt,Ct,It;const[tt,rt]=reactExports.useState(!0),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(null),[pt,ht]=reactExports.useState(0),mt=3e3,xt=100,{setError:Mt}=useErrorModalContext(),vt=useTheme$1(),[Ot,{data:At,error:Rt}]=useLazyQuery(GET_PATIENT_DOCUMENT);reactExports.useEffect(()=>{if(Rt)return Mt()},[Rt]);const zt=()=>{var Dt,kt;At&&((Dt=At.document)!=null&&Dt.docUrl)&&(fetch((kt=At.document)==null?void 0:kt.docUrl).then(qt=>{var Nt;qt.ok&&((ut==null?void 0:ut.hash)!==((Nt=At.document)==null?void 0:Nt.hash)&&dt(At.document),rt(!1),ht(0)),pt===xt&&lt(!0)}),ht(qt=>qt+1))};return reactExports.useEffect(()=>{ht(0),et.document&&et.document.id?(Ot({variables:{documentId:et.document.id}}),rt(!0),lt(!1)):(dt(null),rt(!1))},[et.document]),reactExports.useEffect(()=>{zt()},[At]),useInterval(zt,pt<xt&&tt?mt:null),jsxRuntimeExports.jsx(Stack$5,{sx:{display:"flex",flexDirection:"row",height:"100%"},children:jsxRuntimeExports.jsxs(StyledCol,{$noPadding:!0,children:[!tt&&!et.document&&jsxRuntimeExports.jsxs(Stack$5,{alignItems:"center",paddingTop:9,children:[jsxRuntimeExports.jsx(FindInPageOutlinedIcon,{fontSize:"large",color:"primary"}),jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"No document available"})]}),tt&&!nt&&jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Document Viewer",subtitle:"This may take longer for larger documents",relativeSpinner:!0}),!tt&&!nt&&ut&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack$5,{padding:2,alignItems:"center",justifyContent:"space-between",direction:"row",children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:.5,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6","data-test-id":"document-preview-header",children:((Tt=et.document)==null?void 0:Tt.description)||"No title available"}),jsxRuntimeExports.jsxs(Typography,{variant:"h6",color:vt.palette.text.secondary,children:["(",(Ct=et.document)==null?void 0:Ct.status,")"]})]}),jsxRuntimeExports.jsx(Date$2,{children:hooks((It=et.document)==null?void 0:It.dateOfDocument).utc(!1).format("D MMMM YYYY h:mm:ss A")})]}),jsxRuntimeExports.jsx("iframe",{title:"patientPDFView",src:ut.docUrl.concat("#view=fitH"),width:"100%",style:{height:"calc(100% - 60px)"},onLoad:()=>{rt(!1)},onError:()=>{lt(!0)},children:"This browser does not support PDFs."})]})]})})},PatientCardModalHeader=et=>{var pt;const{patientId:tt}=et,rt="patient-card-modal-header",{data:nt,loading:lt}=useQuery(GET_PATIENT_PROFILE,{variables:{patientId:tt}}),ut=reactExports.useMemo(()=>{if(nt)return nt.patient},[nt]),dt=reactExports.useMemo(()=>{if(ut!=null&&ut.dob){const ht=hooks(ut.dob).format(`${isUs()?"MMM D":"D MMM"} YYYY`)??"-",mt=calculateMomentAge(hooks(ut.dob))??"-";return`${ht} (age ${mt})`}else return"-"},[ut]);return lt?jsxRuntimeExports.jsx("div",{style:{textAlign:"center"},children:jsxRuntimeExports.jsx("div",{className:"spinner-border",role:"status",children:jsxRuntimeExports.jsx("div",{className:"sr-only"})})}):jsxRuntimeExports.jsxs(Grid,{id:rt,container:!0,width:1,children:[jsxRuntimeExports.jsx(Grid,{item:!0,className:"patient-avatar-wrapper",xs:4,children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[jsxRuntimeExports.jsx("div",{id:"patient-avatar",children:jsxRuntimeExports.jsx(PhotoWidget,{patientId:tt,enableOverlay:!0,size:"sm"})}),jsxRuntimeExports.jsx("div",{id:"patient-text-info",children:jsxRuntimeExports.jsxs("div",{id:"patient-identifications",className:"",children:[jsxRuntimeExports.jsx("div",{id:"patient-fullname",children:(ut==null?void 0:ut.fullName)??""}),jsxRuntimeExports.jsxs("div",{id:"patient-id-emr",children:[jsxRuntimeExports.jsx("div",{id:"patient-id",children:`ID: ${(ut==null?void 0:ut.ida)??""}`}),jsxRuntimeExports.jsx("div",{id:"patient-emr",children:`EMR: ${(ut==null?void 0:ut.emrInstance)??""}`})]})]})})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,id:"patient-dob-age",xs:4,children:dt}),jsxRuntimeExports.jsx(Grid,{item:!0,id:"patient-address",xs:4,children:((pt=ut==null?void 0:ut.address)==null?void 0:pt.formattedAddress)??"-"})]})},GET_PATIENT_PIN=gql`
  mutation getPin($patientId: ID!, $toForm: String) {
    getPin(id: $patientId, toForm: $toForm) {
      pin
    }
  }
`,UPDATE_REGISTRATION_TYPE=gql`
  mutation UpdateRegistrationType($patientId: ID!, $registrationAccessType: String!) {
    updateRegistrationType(patientId: $patientId, registrationAccessType: $registrationAccessType) {
      profile {
        id
        registrationAccessType
      }
    }
  }
`,SEND_HOME_REGO_INVITATION=gql`
  mutation SendHomeRegistrationInvitation(
    $patientId: ID!
    $toForm: String!
    $recipientEmail: String!
    $recipientPhone: String!
  ) {
    sendHomeRegistrationInvitation(
      patientId: $patientId
      toForm: $toForm
      recipientEmail: $recipientEmail
      recipientPhone: $recipientPhone
    ) {
      success
      inviteLink
      patient {
        id
        email
        primaryPhone
      }
    }
  }
`,generateValidationSchema$3=(et,tt)=>{const rt=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION;let nt=AU_PHONE_REGEX;rt===Region.US?nt=US_PHONE_REGEX:rt===Region.UK&&(nt=new RegExp(UK_PHONE_REGEX));const lt=tt.map(dt=>dt.value.toString()),ut={userProfile:create$3().shape({registrationAccessType:create$6().ensure().required(VALUE_REQUIRED$3)}),horizonCenterId:create$6().ensure().required(VALUE_REQUIRED$3).oneOf(lt,VALUE_REQUIRED$3),selectedFormPack:create$6().ensure().required(VALUE_REQUIRED$3),primaryPhone:create$6().ensure().when("userProfile.registrationAccessType",{is:"atHome",then:create$6().required(VALUE_REQUIRED$3).matches(nt,PHONE_VALIDATION$1)}),email:create$6().ensure().when("userProfile.registrationAccessType",{is:"atHome",then:create$6().required(VALUE_REQUIRED$3).matches(EMAIL_STRING_REGEX,EMAIL_VALIDATION)}).max(CurrentAppConfig.EmailMaxLength,EMAIL_LENGTH_VALIDATION)};try{validateYupSchema(et,create$3(ut),!0)}catch(dt){return yupToFormErrors(dt)}},logger$s=new Logger("PatientAccessModal"),StyledPinSpan=styled$1(et=>jsxRuntimeExports.jsx("span",{...et}))`
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  line-height: 58px;
  color: ${et=>et.theme.palette.text.primary};
`,PatientAccessModal=et=>{const{isOpen:tt=!1,onClose:rt,patient:nt}=et,lt="patient-access-modal",ut=nt.id,dt={selectedFormPack:"",...nt},[pt,ht]=reactExports.useState(!0),mt=reactExports.useMemo(()=>{var Qt,Bt;return(Bt=(Qt=nt==null?void 0:nt.userProfile)==null?void 0:Qt.patientFeatures)==null?void 0:Bt.distressThermometerEnabled},[nt]),xt=reactExports.useMemo(()=>{var Qt,Bt;return(Bt=(Qt=nt==null?void 0:nt.userProfile)==null?void 0:Qt.patientFeatures)==null?void 0:Bt.distressThermometerEotEnabled},[nt]),Mt=Qt=>{if(isUs())return[{label:"Registration Form Only",value:"rego"},{label:"Health Assessment Form Only",value:"ha"},{label:"Registration Forms Pack",value:"rego_ha"}];{const Bt=[{label:"Registration Forms Pack",value:"rego_ha"},{label:"Registration Forms Pack + Distress Thermometer",value:"rego_ha_dt"},{label:"Distress Thermometer EOT",value:"dt_eot"}].filter(Ft=>mt?Ft:Ft.value!=="rego_ha_dt").filter(Ft=>xt?Ft:Ft.value!=="dt_eot");return Qt==="atHome"?Bt.filter(Ft=>Ft.value!=="dt_eot"):Bt}},vt=Mt("inClinic"),Ot=Mt("atHome"),[At,{data:Rt,loading:zt}]=useMutation(GET_PATIENT_PIN),[Tt]=useMutation(UPDATE_CENTER_MUTATION),[Ct]=useMutation(CREATE_SUBMISSION$1),[It]=useMutation(RELEASE_LOCK_MUTATION),[Dt]=useMutation(UPDATE_PATIENT_FORM_VISIBILITY),[kt]=useMutation(UPDATE_REGISTRATION_TYPE),[qt]=useMutation(SEND_HOME_REGO_INVITATION),{data:Nt}=useQuery(GET_LOCATION_PROFILE,{variables:{patientId:ut}}),Yt=reactExports.useMemo(()=>{var Qt;return Nt?((Qt=Nt==null?void 0:Nt.locationsPsoSystem)==null?void 0:Qt.map(Bt=>({label:Bt.alias,value:Bt.id})))??[]:[]},[Nt]),Kt=(Qt,Bt)=>{const Ft=Qt.selectedFormPack==="dt_eot"?FormType.DISTRESS_EOT:FormType.REGISTRATION,$t=Qt.userProfile.registrationAccessType,jt=()=>{kt({variables:{patientId:ut,registrationAccessType:$t}});const Wt={patientId:ut,showDistressThermometer:!1,showRegistration:!1,showHealthAssessment:!1};switch(Qt.selectedFormPack){case"rego":Dt({variables:{...Wt,showRegistration:!0}});break;case"ha":Dt({variables:{...Wt,showHealthAssessment:!0}});break;case"rego_ha":Dt({variables:{...Wt,showRegistration:!0,showHealthAssessment:!0}});break;case"rego_ha_dt":Dt({variables:{...Wt,showDistressThermometer:!0,showRegistration:!0,showHealthAssessment:!0}});break;default:Dt({variables:Wt});break}};$t==="inClinic"?(ht(!1),At({variables:{patientId:ut,toForm:Ft}}).then(()=>{jt(),It({variables:{accessPatientId:ut}})}).finally(()=>{setTimeout(()=>{ht(!0)},3e3)})):$t==="atHome"&&qt({variables:{patientId:ut,toForm:Ft,recipientEmail:Qt.email,recipientPhone:Qt.primaryPhone}}).then(Wt=>{logger$s.debug("sendHomeRegistrationEmail invite link",Wt.data.sendHomeRegistrationInvitation.inviteLink),Ct({variables:{patientID:ut,includePdf:!1,updateFormStatus:!1,fromHomeRego:!0}})}).then(()=>{jt(),Jt()}).catch(Wt=>{Wt.toString().includes("More than one email found")&&(Bt.setFieldError("email",EMAIL_DUPLICATE_VALIDATION),Bt.setSubmitting(!1))})},Jt=()=>{It({variables:{accessPatientId:ut}}),rt()};return jsxRuntimeExports.jsx(Formik,{initialValues:dt,validate:Qt=>generateValidationSchema$3(Qt,Yt),validateOnChange:!1,validateOnBlur:!0,onSubmit:Kt,children:({submitForm:Qt,handleSubmit:Bt,submitCount:Ft,values:$t,setFieldValue:jt,resetForm:Wt})=>{var Gt;const Ut=$t.userProfile.registrationAccessType||"atHome";$t.userProfile.registrationAccessType||jt("userProfile.registrationAccessType","atHome");const Vt=()=>Ut==="inClinic"?"Get PIN":Ut==="atHome"?"Send Link":"Continue",Ht=Zt=>{Wt({values:{...$t,userProfile:{...$t.userProfile,registrationAccessType:Zt}}})};return jsxRuntimeExports.jsx(Form$3,{onSubmit:Bt,children:jsxRuntimeExports.jsxs(StandardDialog,{id:`${lt}-${ut}`,open:tt,onClose:Jt,title:"Patient Form Access",showDividers:!0,fullWidth:!0,maxWidth:"md",onSubmit:Qt,submitText:Vt(),submitButtonProps:{loading:zt,disabled:zt||!pt},PaperProps:{sx:{minHeight:"58vh"}},children:[jsxRuntimeExports.jsx(PatientCardModalHeader,{patientId:ut}),ut&&Ut==="atHome"&&jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:ut}),jsxRuntimeExports.jsxs(Stack$5,{paddingTop:2,sx:{"& label":{minWidth:"220px"}},children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Access type",fieldName:"userProfile.registrationAccessType",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:"userProfile.registrationAccessType",component:ToggleButtonGroupField,conditionalHandleChange:Ht,options:[{value:"inClinic",label:"In Clinic"},{value:"atHome",label:"At Home"}],alternateStyle:!0})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Patient primary department",fieldName:"horizonCenterId",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:"horizonCenterId",component:SelectField$1,placeholder:"Please select",disabled:!pt,updateMutation:Zt=>{Tt({variables:{id:ut,horizonCenterId:Zt}})},options:Yt})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Select form(s)",fieldName:"selectedFormPack",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:"selectedFormPack",component:SelectField$1,placeholder:"Please select",disabled:!pt,updateMutation:()=>{},options:Ut==="inClinic"?vt:Ot})}),Ut==="inClinic"&&Ft>0&&jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:"One time Access PIN",fieldName:"pin-text",labelClass:"label-form-row pin-label",children:[zt&&jsxRuntimeExports.jsx("div",{style:{lineHeight:"58px"},children:jsxRuntimeExports.jsx("div",{className:"spinner-border",role:"status",style:{alignSelf:"center"},children:jsxRuntimeExports.jsx("div",{className:"sr-only"})})}),!zt&&Rt&&jsxRuntimeExports.jsx(StyledPinSpan,{children:(Gt=Rt==null?void 0:Rt.getPin)==null?void 0:Gt.pin})]}),Ut==="atHome"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Mobile",fieldName:"primaryPhone",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:"primaryPhone",component:TextAreaField,id:"primaryPhone"})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Email",fieldName:"email",labelClass:"label-form-row",children:jsxRuntimeExports.jsx(Field,{name:"email",component:TextAreaField,id:"email"})})]})]})]})})}})},COPY$1={IS_PRACTITIONER_ERROR:"Your account setup appears to be incomplete or missing information. Please contact GenesisCare Innovation support: ",CANT_FIND_ACC_DETAILS:"We Couldn't Find Your Account Details",SEARCH_PLACEHOLDER:"Search patient name or type in patient details...",NO_RESULTS:"Sorry, we couldn't find any results matching",CANT_FIND_SEARCH_TIP:"Can't find what you're looking for? Try some of these search tips:",SEARCH_TIPS:"Search tips",CHECK_SPELLING:"Check your spelling and try again",NEW_MOSAIQ_PATIENT_WAIT:"Just created a new patient in the EMR? Please wait one minute and then refresh the page",NAME_OR_ID_MESSAGE:"Search using the patients' first name and last name or patient ID",CLEAR_STATUS_FILTER:"Try to clear the status filter",NOT_SIGNED_UP:"Not signed up",SIGNED_UP:"Signed up",OPTED_OUT:"Opted out",SUBMITTED_TO_MOSAIQ:"Submitted to Mosaiq",REVIEW_REQUIRED:"Review required",PATIENT_REGISTRATION:"Patient Registration",DISTRESS_PIN:"Distress Thermometer PIN",RECORD_IN_USE_BY:"This patient record is currently in use by",RECORD_IN_USE_NO_VIEW:". Please try and access again later."},PATIENT_DETAILS_FRAGMENT=gql`
  fragment PatientDetails on PatientType {
    id
    address {
      id
      formattedAddress
    }
    firstName
    middleName
    lastName
    ida
    idb
    gender
    dob
    updatedAt
    updatedBy
    horizonCenterId
    regFormStatus
    diffMqData
    userProfile {
      id
      systemState
      registrationAccessType
      showDistressThermometer
    }
  }
`,QUERY_PSO=gql`
  query PatientAndUserDetails($id: ID!, $patientId: ID!) {
    patient(id: $id) {
      id
      ...PatientDetails
    }
    healthAssessment(id: $id) {
      id
      updatedAt
      updatedBy
      status
    }
    distressThermometerInitial(patientId: $patientId) {
      id
      updatedAt
      updatedBy
      status
    }
    distressThermometerEot(patientId: $patientId) {
      id
      status
      version
    }
    profile(id: $id) {
      id
      showDistressThermometer
      patientFeatures(id: $id) {
        distressThermometerEnabled
        healthAssessmentEnabled
        distressThermometerEotEnabled
        covidEnabled
      }
    }
    covidScreening(id: $id) {
      id
      updatedAt
      updatedBy
      status
    }
    theranostics(id: $id) {
      id
      patient {
        id
        firstName
        lastName
      }
      updatedAt
      status
    }
    locationsPsoSystem(patientId: $patientId) {
      id
      alias
    }
    featureOptions {
      id
      name
      description
      active
    }
  }
  ${PATIENT_DETAILS_FRAGMENT}
`,QUERY_NURSE=gql`
  query PatientAndUserDetails($id: ID!) {
    user {
      id
      firstName
      lastName
    }
    patient(id: $id) {
      id
      ...PatientDetails
    }
    allPreCtChartCheck(patientId: $id) {
      id
      isAmendment
      nurseLocation
      updatedBy
      updatedAt
      status
      isLocked
    }
    allPreCtTriage(patientId: $id) {
      id
      isAmendment
      isLocked
      updatedBy
      updatedAt
      submissionUser {
        id
      }
      status
    }
  }
  ${PATIENT_DETAILS_FRAGMENT}
`,CREATE_PRE_CT_CHART_CHECK=gql`
  mutation CreatePreCtChartCheck($patientId: ID!) {
    createPreCtChartCheck(patientId: $patientId) {
      preCtChartCheck {
        id
        updatedBy
        updatedAt
        isAmendment
      }
    }
  }
`,CREATE_AMENDED_PRE_CT_CHART_CHECK=gql`
  mutation CreateAmendedPreCtChartCheck($id: ID!) {
    createAmendedPreCtChartCheck(id: $id) {
      preCtChartCheck {
        id
        updatedBy
        updatedAt
        isAmendment
        status
      }
    }
  }
`,DUPLICATE_PRE_CT_CHART_CHECK=gql`
  mutation duplicatePreCtChartCheck($id: ID!) {
    duplicatePreCtChartCheck(id: $id) {
      preCtChartCheck {
        id
        updatedBy
        updatedAt
        isAmendment
        status
      }
    }
  }
`,DELETE_PRE_CT_CHART_CHECK=gql`
  mutation deletePreCtChartCheck($id: ID!) {
    deletePreCtChartCheck(id: $id) {
      ok
    }
  }
`,CREATE_AMENDED_PRE_CT_TRIAGE=gql`
  mutation CreateAmendedPreCtTriage($id: ID!) {
    createAmendedPreCtTriage(id: $id) {
      preCtTriage {
        id
        updatedBy
        updatedAt
        isAmendment
        status
      }
    }
  }
`,DUPLICATE_PRE_CT_TRIAGE=gql`
  mutation duplicatePreCtTriage($id: ID!) {
    duplicatePreCtTriage(id: $id) {
      preCtTriage {
        id
        updatedBy
        updatedAt
        isAmendment
        status
      }
    }
  }
`,CREATE_PRE_CT_TRIAGE=gql`
  mutation CreatePreCtTriage($patientId: ID!) {
    createPreCtTriage(patientId: $patientId) {
      preCtTriage {
        id
        isAmendment
        updatedBy
        updatedAt
      }
    }
  }
`,DELETE_PRE_CT_TRIAGE=gql`
  mutation deletePreCtTriage($id: ID!) {
    deletePreCtTriage(id: $id) {
      ok
    }
  }
`,QUERY_SUPERUSER=QUERY_PSO,patientSummaryLink$1="/patient/:patientId/summary";var SECTIONS$1=(et=>(et.BASIC_INFORMATION="basic-information",et.CHEMOTHERAPY_RISK="chemotherapy-risk",et.IMPLANTED_MEDICAL_DEVICES="implanted-medical-devices",et.INFECTIOUS_RISK="infectious-risk",et.FALLS_RISK="falls-risk",et.PRESSURE_INJURY="pressure-injury",et.WELLBEING="wellbeing",et.ADVANCED_CARE_DIRECTIVE="advance-care-directive",et.ALLERGIES="allergies",et.REVIEW_AND_SUBMIT="review-and-submit",et))(SECTIONS$1||{});const routes$2={basicInformation:{sectionTitle:"Basic Information",path:"/patient/:patientId/nurse/prectchartcheck/:formId/basic-information",name:"basic-information"},chemoRisk:{sectionTitle:"Chemotherapy Risk",path:"/patient/:patientId/nurse/prectchartcheck/:formId/chemotherapy-risk",name:"chemotherapy-risk"},implantedMedicalDevices:{sectionTitle:"Implanted Medical Devices",path:"/patient/:patientId/nurse/prectchartcheck/:formId/implanted-medical-devices",name:"implanted-medical-devices"},infectiousRisk:{sectionTitle:"Infectious Risk",path:"/patient/:patientId/nurse/prectchartcheck/:formId/infectious-risk",name:"infectious-risk"},fallsRisk:{sectionTitle:"Falls Risk",path:"/patient/:patientId/nurse/prectchartcheck/:formId/falls-risk",name:"falls-risk"},pressureInjuryRisk:{sectionTitle:"Pressure Injury Risk",path:"/patient/:patientId/nurse/prectchartcheck/:formId/pressure-injury",name:"pressure-injury"},wellbeing:{sectionTitle:"Wellbeing",path:"/patient/:patientId/nurse/prectchartcheck/:formId/wellbeing",name:"wellbeing"},advancedCareDirective:{sectionTitle:"Advance Care Directive/NFR",path:"/patient/:patientId/nurse/prectchartcheck/:formId/advance-care-directive",name:"advance-care-directive"},allergies:{sectionTitle:"Allergies",path:"/patient/:patientId/nurse/prectchartcheck/:formId/allergies",name:"allergies"},reviewAndSubmit:{sectionTitle:"Review & Submit",path:"/patient/:patientId/nurse/prectchartcheck/:formId/review-and-submit",name:"review-and-submit"}},patientSummaryLink="/patient/:patientId/summary";var SECTIONS=(et=>(et.MALNUTRITION_RISK="malnutrition-risk",et.COGNITIVE_IMPAIRMENT_RISK="cognitive-impairment-risk",et.PAIN="pain",et.TRANSPORT_MODE="transport-mode",et.SOCIAL_CIRCUMSTANCES="social-circumstances",et.WELLBEING_SCREEN="wellbeing-screen",et.SUMMARY="summary",et.REVIEW_AND_SUBMIT="review-and-submit",et))(SECTIONS||{});const routes$1={malnutritionRisk:{sectionTitle:"Malnutrition Risk",path:"/patient/:patientId/nurse/precttriage/:formId/malnutrition-risk",name:"malnutrition-risk"},cognitiveImpairmentRisk:{sectionTitle:"Cognitive Impairment Risk",path:"/patient/:patientId/nurse/precttriage/:formId/cognitive-impairment-risk",name:"cognitive-impairment-risk"},pain:{sectionTitle:"Pain",path:"/patient/:patientId/nurse/precttriage/:formId/pain",name:"pain"},transportMode:{sectionTitle:"Transport Mode",path:"/patient/:patientId/nurse/precttriage/:formId/transport-mode",name:"transport-mode"},socialCircumstances:{sectionTitle:"Social Circumstances",path:"/patient/:patientId/nurse/precttriage/:formId/social-circumstances",name:"social-circumstances"},wellbeingScreen:{sectionTitle:"Wellbeing Screen",path:"/patient/:patientId/nurse/precttriage/:formId/wellbeing-screen",name:"wellbeing-screen"},summary:{sectionTitle:"Summary",path:"/patient/:patientId/nurse/precttriage/:formId/summary",name:"summary"},reviewAndSubmit:{sectionTitle:"Review & Submit",path:"/patient/:patientId/nurse/precttriage/:formId/review-and-submit",name:"review-and-submit"}},AssessmentContext=reactExports.createContext({}),AssessmentProvider=({children:et})=>{const[tt,rt]=reactExports.useState(0),[nt,lt]=reactExports.useState(0);return jsxRuntimeExports.jsx(AssessmentContext.Provider,{value:{triageIdentifier:tt,chartCheckIdentifier:nt,setTriageIdentifier:rt,setChartCheckIdentifier:lt},children:et})},NOT_STARTED="Not started",TableContainer$2=styled$1("div")`
  max-height: 65%;
  overflow-y: auto;
`,NurseDeleteFormText=styled$1("div")`
  margin-bottom: 40px;
  line-height: 1.6rem;
`,{SUPERUSER:SUPERUSER$2,PSO:PSO$3,NURSE:NURSE$2}=RoleType,{REGISTRATION_FORM,HEALTH_ASSESSMENT,DISTRESS_THERMOMETER,DISTRESS_THERMOMETER_EOT,COVID_SCREENING,THERANOSTICS}=FormTypeId,formType={registration:"registration",healthAssessment:"ha",distressThermometer:"dt",distressThermometerEot:"dt-eot",covid:"covid",theranostics:"tha",initialTriage:"PreCtTriageType",initialChartCheck:"PreCtChartCheckType"},staticRowForm=[DISTRESS_THERMOMETER,DISTRESS_THERMOMETER_EOT],ResizedDeleteButton=styled$1(DeleteButton)`
  svg {
    width: 18px;
    height: 18px;
  }
`,formatTime=et=>hooks.utc(et).local().format(`${isUs()?"MM/DD/YYYY":"DD/MM/YYYY"} hh:mm A`),checkUnclickable=et=>et?!0:void 0,duplicateChartCheckTooltipMessage="This will create a new Chart Check assessment with pre-filled answers copied from this assessment. If the patient has submitted a new digital health assessment, this will be visible in the read-only tables.",duplicateTriageTooltipMessage="This will create a new Triage assessment with pre-filled answers copied from this assessment. If the patient has submitted a new digital health assessment, this will be visible in the read-only tables.",getFormData=et=>{var Kt;const{patient:tt,haInfo:rt,dtInfo:nt,dtEotInfo:lt,profile:ut,covidInfo:dt,thaInfo:pt,primaryRole:ht,featureOptions:mt}=et,xt=ht===PSO$3,Mt=Object.keys(JSON.parse(`${tt.diffMqData}`)).length===0?xt?"summary":"basic":"conflicts",vt=mt==null?void 0:mt.find(Jt=>Jt.name==="NewAusRego"&&Jt.active),Ot=isUs()||vt?`/patient/${tt.id}/registration/${Mt}`:`/registration/${tt.id}/${Mt}`,At=`/patient/${tt.id}/health/review`,Rt=`/patient/${tt.id}/covid/review`,zt=tt.updatedAt?formatTime(tt.updatedAt):"-",Tt=rt&&rt.updatedAt?formatTime(rt.updatedAt):"-",Ct=nt&&nt.updatedAt?formatTime(nt.updatedAt):"-",It=nt?nt.updatedBy:"-",Dt=lt&&lt.updatedAt?formatTime(lt.updatedAt):"-",kt=lt?lt.updatedBy:"-",qt=dt&&dt.updatedAt?formatTime(dt.updatedAt):"-";pt&&pt.updatedAt&&formatTime(pt.updatedAt),pt&&pt.status&&`${pt.patient.firstName}${pt.patient.lastName}`;const Nt={title:"Registration Form",id:REGISTRATION_FORM,formLink:Ot,formStatus:"registration",updatedBy:tt.updatedBy,updatedAt:zt,isHidden:!1,displayTo:[PSO$3,SUPERUSER$2]},Yt={title:"Health Assessment",id:HEALTH_ASSESSMENT,formLink:At,formStatus:"ha",updatedBy:rt&&rt.updatedBy,updatedAt:Tt,isHidden:!ut||!ut.patientFeatures.healthAssessmentEnabled,displayTo:[PSO$3,SUPERUSER$2]};return isUs()?[Nt,Yt]:[Nt,Yt,{title:"Covid-19 Screening",id:COVID_SCREENING,formLink:Rt,formStatus:"covid",updatedBy:dt&&dt.updatedBy,updatedAt:qt,isHidden:!((Kt=ut==null?void 0:ut.patientFeatures)!=null&&Kt.covidEnabled)&&["",NOT_STARTED].includes(dt==null?void 0:dt.status),displayTo:[PSO$3,SUPERUSER$2]},{title:"Distress Thermometer",id:DISTRESS_THERMOMETER,formLink:"",formStatus:"dt",updatedBy:It,updatedAt:Ct,isHidden:!ut||!ut.patientFeatures.distressThermometerEnabled,displayTo:[PSO$3,SUPERUSER$2]},{title:"Distress Thermometer EOT",id:DISTRESS_THERMOMETER_EOT,formLink:"",formStatus:"dt-eot",updatedBy:kt,updatedAt:Dt,isHidden:!ut||!ut.patientFeatures.distressThermometerEotEnabled,displayTo:[PSO$3,SUPERUSER$2]}]},renderFormStatus=(et,tt,rt,nt)=>{let lt=tt.patient.regFormStatus;switch(et){case formType.registration:lt=tt.patient.regFormStatus;break;case formType.healthAssessment:tt.haInfo&&tt.haInfo.status?lt=tt.haInfo.status:lt="";break;case formType.distressThermometer:tt.dtInfo&&tt.dtInfo.status?lt=tt.dtInfo.status:lt="";break;case formType.distressThermometerEot:tt.dtEotInfo&&tt.dtEotInfo.status?lt=tt.dtEotInfo.status:lt="";break;case formType.covid:tt.covidInfo&&tt.covidInfo.status?lt=tt.covidInfo.status:lt="";break;case formType.theranostics:tt.thaInfo&&tt.thaInfo.status?lt=tt.thaInfo.status:lt="";break;case formType.initialTriage:rt?lt=rt:lt="";break;case formType.initialChartCheck:rt?lt=rt:lt="";break;case"na":lt=FormStatus.REG_SUBMITTED;break}if(lt==="")return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"-"});const ut=getFormStatus(lt,PSO$3);return nt?ut:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:lt===""?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"-"}):jsxRuntimeExports.jsx("div",{className:"status-container",children:jsxRuntimeExports.jsx("span",{className:classNames$1("form-status",{"needs-review":lt===FormStatus.REG_REVIEW_REQUIRED,"submitted-to-mq":lt===FormStatus.REG_SUBMITTED,"in-progress":lt===FormStatus.IN_PROGRESS||lt===FormStatus.IN_PROGRESS_AMENDED,"no-status":lt===""}),children:ut})})})},PatientFormSummary=et=>{const tt=useHistory(),rt=useLocation(),{setTriageIdentifier:nt,setChartCheckIdentifier:lt}=reactExports.useContext(AssessmentContext),{primaryRole:ut,patient:dt,pCCCInfo:pt,preCtTriageInfo:ht}=et,[mt]=useMutation(CREATE_PRE_CT_TRIAGE),[xt]=useMutation(CREATE_PRE_CT_CHART_CHECK),[Mt]=useMutation(DELETE_PRE_CT_CHART_CHECK,{refetchQueries:[{query:QUERY_NURSE,variables:{id:dt.id}}]}),[vt]=useMutation(DELETE_PRE_CT_TRIAGE,{refetchQueries:[{query:QUERY_NURSE,variables:{id:dt.id}}]}),[Ot]=useMutation(CREATE_AMENDED_PRE_CT_TRIAGE,{refetchQueries:[{query:QUERY_NURSE,variables:{id:dt.id}}]}),[At]=useMutation(CREATE_AMENDED_PRE_CT_CHART_CHECK,{refetchQueries:[{query:QUERY_NURSE,variables:{id:dt.id}}]}),[Rt]=useMutation(DUPLICATE_PRE_CT_TRIAGE,{refetchQueries:[{query:QUERY_NURSE,variables:{id:dt.id}}]}),[zt]=useMutation(DUPLICATE_PRE_CT_CHART_CHECK,{refetchQueries:[{query:QUERY_NURSE,variables:{id:dt.id}}]}),[Tt,Ct]=reactExports.useState(!1),[It,Dt]=reactExports.useState(!1),[kt,qt]=reactExports.useState({}),Nt=useTheme$1(),Yt={preCtTriageInfo:ht,pCCCInfo:pt},Kt="/patient/:patientId/nurse/prectchartcheck/:formId",Jt="/patient/:patientId/nurse/precttriage/:formId",Qt=reactExports.useContext(NavigationContext);reactExports.useEffect(()=>{Qt.setRegEntryPath(rt.pathname)},[rt.pathname]);const Bt=()=>{const $t=getFormData(et),jt=[{id:"pCCCInfo",title:"Initial Chart Check",url:`${Kt}/basic-information`,reviewUrl:`${Kt}/review-and-submit`,displayTo:[NURSE$2,SUPERUSER$2]},{id:"preCtTriageInfo",title:"Initial Triage",url:`${Jt}/malnutrition-risk`,reviewUrl:`${Jt}/review-and-submit`,displayTo:[NURSE$2,SUPERUSER$2]}],Wt=async(Vt,Ht)=>{const Xt={query:Ht==="amendment"?{"Initial Chart Check":At,"Initial Triage":Ot}[Vt.name]:{"Initial Chart Check":zt,"Initial Triage":Rt}[Vt.name],redirectPath:Vt.name==="Initial Chart Check"?routes$2.basicInformation.path:routes$1.malnutritionRisk.path,contextSetter:Vt.name==="Initial Chart Check"?lt:nt};await Xt.query({variables:{id:Vt.id}}).then(({data:er})=>{let nr;return Ht==="amendment"&&(nr=Vt.name==="Initial Chart Check"?er.createAmendedPreCtChartCheck.preCtChartCheck.id:er.createAmendedPreCtTriage.preCtTriage.id),Ht==="duplicate"&&(nr=Vt.name==="Initial Chart Check"?er.duplicatePreCtChartCheck.preCtChartCheck.id:er.duplicatePreCtTriage.preCtTriage.id),Ht==="duplicate"&&Xt.contextSetter(nr),tt.push(generatePath(Xt.redirectPath,{patientId:dt.id,formId:nr}))})},Ut=()=>{var or,rr;const Vt=[],Ht=cr=>cr==="Initial Chart Check"?"chartcheck":"triage",Gt=ut===NURSE$2,Zt=cr=>cr.filter(ir=>ir.status===FormStatus.REG_SUBMITTED).length,Xt=Gt&&((or=Yt.preCtTriageInfo)!=null&&or.length)&&Zt(Yt.preCtTriageInfo)?duplicateTriageTooltipMessage:"",er=Gt&&((rr=Yt.pCCCInfo)!=null&&rr.length)&&Zt(Yt.pCCCInfo)?duplicateChartCheckTooltipMessage:"";for(const[cr,ir]of Object.entries(Yt))ir.forEach((dr,gr)=>{const br=dr.status===FormStatus.REG_SUBMITTED,ar=dr.status===FormStatus.IN_PROGRESS&&dr.isAmendment===!0?`${dr.status}Amendment`:dr.status,ur=jt.filter(xr=>xr.id===cr);ur.length===1&&ur[0].displayTo.includes(ut)&&Vt.push(jsxRuntimeExports.jsxs(TableRow$7,{"data-test-id":`${ur[0].title}-${gr}`,sx:{"&:hover":{backgroundColor:Nt.palette.action.hover,cursor:"pointer"}},onClick:()=>{sessionStorage.setItem("referringPage",`/navigator/patient/${dt.id}/summary`),tt.push(generatePath(dr.isLocked?ur[0].reviewUrl:ur[0].url,{patientId:dt.id,formId:dr.id}))},children:[jsxRuntimeExports.jsx(TableCell,{children:ur[0].title}),jsxRuntimeExports.jsx(TableCell,{children:renderFormStatus(dr.__typename,et,ar)}),jsxRuntimeExports.jsx(TableCell,{children:dr.updatedBy}),jsxRuntimeExports.jsx(TableCell,{children:formatTime(dr.updatedAt)}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs("div",{className:"space-between",children:[br&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AmendButton,{unclickable:checkUnclickable(!br),fieldId:"nurse-amend-form",label:"Amend assessment",onClick:xr=>{xr.stopPropagation(),br&&Wt({name:ur[0].title,id:dr.id},"amendment")}}),jsxRuntimeExports.jsx(Tooltip,{title:Ht(ur[0].title)==="chartcheck"?er:Xt,arrow:!0,children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(DuplicateButton,{unclickable:checkUnclickable(!br),fieldId:`nurse-duplicate-form-${Ht(ur[0].title)}`,label:"Duplicate assessment",onClick:xr=>{xr.stopPropagation(),br&&Wt({name:ur[0].title,id:dr.id},"duplicate")}})})})]}),!br&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ResizedDeleteButton,{unclickable:checkUnclickable(br),fieldId:"nurse-delete-form",label:"discard",buttonText:"Discard",onClick:xr=>{xr.stopPropagation(),br||(qt({id:dr.id,title:ur[0].title,isAmendment:dr.isAmendment}),Dt(!0))}})})]})})]},dr.updatedAt))});return[...Vt].sort((cr,ir)=>hooks(ir.key).unix()-hooks(cr.key).unix())};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Table$3,{sx:{[`& .${tableCellClasses.root}`]:{borderBottom:"none"},"& td":{padding:"17px",verticalAlign:"middle"},"& th":{padding:"17px",verticalAlign:"middle",fontWeight:"bold"}},id:"patient-forms-table",children:[jsxRuntimeExports.jsx(TableHead$2,{sx:{backgroundColor:Nt.palette.grey[100],fontWeight:"bold",maxHeight:"90px"},children:jsxRuntimeExports.jsxs(TableRow$7,{children:[jsxRuntimeExports.jsx(TableCell,{children:"Forms"}),jsxRuntimeExports.jsx(TableCell,{children:"Status"}),jsxRuntimeExports.jsx(TableCell,{children:"Last Modified By"}),jsxRuntimeExports.jsx(TableCell,{children:"Last Modified"}),ut===NURSE$2&&jsxRuntimeExports.jsx(TableCell,{children:"Actions"})]})}),jsxRuntimeExports.jsxs(TableBody$2,{children:[$t.filter(Vt=>!Vt.isHidden&&Vt.displayTo.includes(ut)).map(Vt=>jsxRuntimeExports.jsxs(TableRow$7,{"data-test-id":Vt.id,className:`${staticRowForm.includes(Vt.id)&&"static-row"}`,sx:{"&:hover":{backgroundColor:Nt.palette.action.hover,cursor:"pointer"}},onClick:()=>Vt.id===THERANOSTICS?navigateToExternalURL(Vt.formLink):staticRowForm.includes(Vt.id)?null:tt.push(Vt.formLink),children:[jsxRuntimeExports.jsx(TableCell,{children:Vt.title}),jsxRuntimeExports.jsx(TableCell,{children:renderFormStatus(Vt.formStatus,et)}),jsxRuntimeExports.jsx(TableCell,{children:Vt.updatedBy}),jsxRuntimeExports.jsx(TableCell,{children:Vt.updatedAt})]},Vt.id)),ut===NURSE$2&&Ut()]})]})})},Ft=async $t=>{$t==="Initial Chart Check"&&await xt({variables:{patientId:dt.id}}).then(({data:jt})=>tt.push(generatePath(`${Kt}/basic-information`,{patientId:dt.id,formId:jt.createPreCtChartCheck.preCtChartCheck.id}))),$t==="Initial Triage"&&await mt({variables:{patientId:dt.id}}).then(({data:jt})=>tt.push(generatePath(`${Jt}/malnutrition-risk`,{patientId:dt.id,formId:jt.createPreCtTriage.preCtTriage.id})))};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalSelect,{isOpen:Tt,dismissFunction:()=>Ct(!1),submitForm:$t=>{Ft($t),Ct(!1)}}),deletePreCtModal(Mt,vt,It,Dt,kt,tt,dt.id),jsxRuntimeExports.jsx(PatientIdentifierBar,{patient:dt}),jsxRuntimeExports.jsx("div",{id:"summary-header",children:jsxRuntimeExports.jsx("div",{id:"summary-header-title",children:"Patient Summary"})}),jsxRuntimeExports.jsxs("div",{className:"summary-elements",children:[jsxRuntimeExports.jsx("div",{className:"left-container",children:jsxRuntimeExports.jsx("div",{className:"newspaper-container",children:jsxRuntimeExports.jsx("div",{className:"home-clinic-container",children:jsxRuntimeExports.jsx(component$1,{disabled:ut===NURSE$2,patient:dt,horizonCenterId:dt.horizonCenterId})})})}),jsxRuntimeExports.jsxs("div",{className:"right-container",children:[jsxRuntimeExports.jsx("h2",{children:ut===PSO$3?"Registration Forms":"Forms"}),jsxRuntimeExports.jsx(TableContainer$2,{children:Bt()}),ut===NURSE$2&&jsxRuntimeExports.jsx(Stack$5,{sx:{width:"100%",justifyContent:"flex-end",marginTop:"16px"},direction:"row",children:jsxRuntimeExports.jsx(Button,{variant:"text",size:"large",onClick:()=>Ct(!0),startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),"data-testid":"nurse-assessment-modal",children:"Create new assessment"})})]})]})]})},deletePreCtModal=(et,tt,rt,nt,lt,ut,dt,pt=!1)=>{const ht="discard-icc-modal",mt=(At,Rt)=>{if(At==="Initial Chart Check"&&et({variables:{id:Rt}}),At==="Initial Triage"&&tt({variables:{id:Rt}}),pt)return dt.push(`/patient/${ut}/summary`)},xt=()=>jsxRuntimeExports.jsxs(NurseDeleteFormText,{children:[jsxRuntimeExports.jsx("div",{children:"You'll lose all answers collected by this proposed amendment."}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("div",{children:"Are you sure you want to discard this amendment?"})]}),Mt=()=>jsxRuntimeExports.jsxs(NurseDeleteFormText,{children:[jsxRuntimeExports.jsx("div",{children:"You'll lose all answers collected by this assessment. We can't recover them once you discard it."}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("div",{children:"Are you sure you want to discard this assessment?"})]}),vt=lt.isAmendment?xt():Mt(),Ot=`Discard ${lt.isAmendment?"amendment":"assessment"}`;return jsxRuntimeExports.jsx(StandardDialog,{id:ht,open:rt,onClose:()=>nt(!1),title:`Discard ${lt==null?void 0:lt.title}`,onSubmit:()=>{mt(lt==null?void 0:lt.title,lt==null?void 0:lt.id),nt(!1)},destructiveSubmit:!0,submitText:Ot,children:jsxRuntimeExports.jsx(Stack$5,{paddingY:2,children:vt})})},{SUPERUSER:SUPERUSER$1,PSO:PSO$2,NURSE:NURSE$1}=RoleType,mapQuery={[NURSE$1]:QUERY_NURSE,[PSO$2]:QUERY_PSO,[SUPERUSER$1]:QUERY_SUPERUSER},PatientFormSummaryData=({primaryRole:et,patientId:tt})=>{const{setError:rt,loading:nt,data:lt,error:ut}=PatientFormSummaryQueryResponse(et,tt);return reactExports.useEffect(()=>{if(ut)return rt()},[ut]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[nt&&jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0}),lt&&lt.patient&&et&&jsxRuntimeExports.jsx(PatientFormSummary,{primaryRole:et,patient:lt.patient,haInfo:lt.healthAssessment,dtInfo:lt.distressThermometerInitial,dtEotInfo:lt.distressThermometerEot,thaInfo:lt.theranostics,pCCCInfo:lt.allPreCtChartCheck,preCtTriageInfo:lt.allPreCtTriage,profile:lt.profile,covidInfo:lt.covidScreening,locationsPsoSystem:lt.locationsPsoSystem,featureOptions:lt.featureOptions})]})},PatientFormSummaryApollo=et=>{const{match:{params:{patientId:tt}}}=et;return jsxRuntimeExports.jsx(HeaderBar,{children:jsxRuntimeExports.jsx(PatientFormSummaryData,{...et,patientId:tt})})},PatientFormSummaryQueryResponse=(et,tt)=>{const rt=mapQuery[et],{setError:nt}=useErrorModalContext(),{loading:lt,data:ut,error:dt}=useQuery(rt,{variables:{id:tt,patientId:tt},fetchPolicy:"network-only"});return{setError:nt,loading:lt,data:ut,error:dt}},PatientFormSummaryApollo$1=withRouter(PatientFormSummaryApollo),{PSO:PSO$1}=RoleType,ResponsiveContainer=styled("div")`
  overflow-x: hidden;
  overflow-y: hidden;
`,TableScrollContainer=styled("div")`
  overflow: ${isUs()?"unset":"scroll"};
  max-height: 100%;
`,TableContainer$1=styled("table")`
  display: table;
  width: 100%;
  font-size: 16px;
  line-height: 24px;
  float: left;
  border-collapse: separate;
  margin: 10px 0px;
`,Header$1=styled("thead")`
  width: auto;
  font-weight: 500;
  margin: 25px 5px;

  th {
    top: 0;
    background: ${et=>et.theme.palette.grey[100]};
    font-weight: 500;
    position: sticky;
  }
`,HeaderRow$1=styled("tr")`
  width: auto;
`,HeaderCol=styled("th")`
  width: auto;
  vertical-align: middle;
  border-collapse: collapse;
  padding: 8px;
  text-align: left;
`,DataBody=styled("tbody")`
  width: auto;
`,DataCol=styled("td")`
  width: auto;
  vertical-align: middle;
  border-collapse: collapse;
  padding: 8px;
  text-align: left;
`,FlexDiv=styled("div")`
  display: flex;
  align-items: center;
`,DataRow=styled("tr")`
  background: ${et=>(et.highlight,"none")};
  & td:first-child {
    text-align: left;
    border-radius: ${et=>et.highlight?"5px  0  0 5px":"none"};
    border-left: ${et=>et.highlight?`2px solid ${et.theme.palette.primary.main}`:"none"};
  }
  & td:last-child {
    border-radius: ${et=>et.highlight?"0px  5px  5px  0px":"none"};
    border-right: ${et=>et.highlight?`2px solid ${et.theme.palette.primary.main}`:"none"};
  }
  & td {
    border-top: ${et=>et.highlight?`2px solid ${et.theme.palette.primary.main}`:"none"};
    border-bottom: ${et=>et.highlight?`2px solid ${et.theme.palette.primary.main}`:"none"};
    text-align: left;
  }
  &:hover {
    background: ${et=>et.theme.palette.grey[100]};
  }
  box-shadow: 0px 1px 0px ${et=>et.theme.palette.grey[300]};
  width: auto;
  height: 50px;
`,StyledDocListCol$1=styled(Card$1)`
  color: ${et=>et.theme.palette.text.primary};
  overflow: auto;

  td {
    font-size: 14px;
  }
  table {
    margin: 0;
  }
`,StyledLabelCol=styled(Stack$5)`
  height: 2em;
  display: flex;
  align-items: center;
`;styled(StyledLabelCol)`
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-end;
  cursor: pointer;
`;const NoDocumentContainer=styled("div")`
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
`,NoDocumentMessage=styled("div")`
  margin-top: 28px;
  font-size: ${getRemSize(18)};
  font-weight: 700;
  color: ${et=>et.theme.palette.grey[600]};
`,CircleDiv$1=styled("div")`
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 10px;
`,FormTitleText=styled("div")`
  font-size: 16px;
  line-height: 24px;
`,FormLocationText=styled("div")`
  font-size: 12px;
  margin-left: 8px;
  line-height: 15px;
`,SmallCross=styled(HighlightOffIcon)`
  height: 16px;
  width: 16px;
`,SmallSuccess=styled(CheckCircleOutlined)`
  height: 16px;
  width: 16px;
`,FlexRow=styled("div")`
  width: 100%;
  justify-content: space-between;
  display: flex;
  align-items: baseline;
  padding-bottom: 15px;
  margin-top: -5px;
`,displayLocationAccessed=et=>{let tt="Not provided";et==="inClinic"?tt="In clinic":et==="atHome"&&(tt="At home");const rt=["inClinic","atHome"].includes(et)?jsxRuntimeExports.jsx(SmallSuccess,{color:"primary"}):jsxRuntimeExports.jsx(SmallCross,{color:"error"});return jsxRuntimeExports.jsxs(FlexDiv,{children:[rt,jsxRuntimeExports.jsx(FormLocationText,{children:tt})]})},ROPatientForms=et=>{var Ut,Vt,Ht,Gt,Zt,Xt,er,nr,or,rr,cr,ir,dr;const tt=useTheme$1(),rt={line1:"",line2:"",city:"",state:"",country:"",postcode:""},nt={id:"",firstName:"",lastName:"",ida:"",dob:"",primaryPhone:"",primaryPhoneFormatted:"",email:"",primaryCenterAlias:"",address:rt,pxOptedIn:!1,pxOptOutComment:"",regFormStatus:"",overallStatus:"",userProfile:{id:"",registrationAccessType:"",showRegistration:!0,showHealthAssessment:!0,patientFeatures:{distressThermometerEotEnabled:!1,distressThermometerEnabled:!1,managementPlansEnabled:!1,covidEnabled:!1}},horizonCenterId:"",tags:[],emrInstance:""},lt={id:"",firstName:"",lastName:"",pxOptedIn:!1,primaryPhone:"",email:"",pxOptOutComment:"",emrInstance:""},ut=reactExports.useRef(null),dt=PatientFormSummaryQueryResponse(PSO$1,et.patientId),{data:pt,loading:ht,refetch:mt}=useQuery(GET_PATIENT_PROFILE,{variables:{patientId:et.patientId}}),xt=pt==null?void 0:pt.patient;useInterval(()=>{mt()},(Ut=xt==null?void 0:xt.userProfile)!=null&&Ut.hasPatId1?null:PAT_ID_1_REFRESH_TIME);const{loading:Mt}=dt,[vt,Ot]=reactExports.useState({registrationInviteModalOpen:!1,modalPatientRegAcces:!1,modalHeader:void 0,selectedName:"",selectedPIN:"",buttonLoadingId:"",optInModalLoadingId:"",optInModalOpen:!1,optInModalInDOM:!1,selectedPatient:nt,selectedPatientId:"",selectedPatientIda:"",selectedDob:"",selectedAddress:{...rt},lockErrorModalOpen:!1,lockErrorText:"",selectedPatientOptIn:{...lt},distressThermometerEnabled:!1,allowedLocations:[],primaryRole:"",locationFilter:"",formType:"",profileSlideOpen:!1,pageShown:"search",isPractitioner:!0}),[At,Rt]=reactExports.useState(!1),zt="Forms",Tt={patient:(Vt=dt.data)==null?void 0:Vt.patient,haInfo:(Ht=dt.data)==null?void 0:Ht.healthAssessment,dtInfo:(Gt=dt.data)==null?void 0:Gt.distressThermometerInitial,dtEotInfo:(Zt=dt.data)==null?void 0:Zt.distressThermometerEot,thaInfo:(Xt=dt.data)==null?void 0:Xt.theranostics,pCCCInfo:(er=dt.data)==null?void 0:er.allPreCtChartCheck,preCtTriageInfo:(nr=dt.data)==null?void 0:nr.allPreCtTriage,profile:(or=dt.data)==null?void 0:or.profile,covidInfo:(rr=dt.data)==null?void 0:rr.covidScreening,locationsPsoSystem:(cr=dt.data)==null?void 0:cr.locationsPsoSystem,primaryRole:PSO$1,featureOptions:(ir=dt.data)==null?void 0:ir.featureOptions},Ct=!Mt&&dt.data&&getFormData(Tt),It=gr=>{const br={"-":tt.palette.grey[600],"Review required":tt.palette.warning.dark,"Not started":tt.palette.grey[600],"In progress":tt.palette.info.main,"Submitted to MQ":tt.palette.primary.dark,Submitted:tt.palette.primary.dark};return jsxRuntimeExports.jsx(CircleDiv$1,{style:{background:br[gr]}})},Dt=(gr,br)=>{var ar;return((ar=renderFormStatus(gr,br,void 0,!0).props)==null?void 0:ar.children)==="-"?"Not started":renderFormStatus(gr,br,void 0,!0)},kt=dt&&dt.data?dt.data:{},[qt]=useMutation(RELEASE_LOCK_MUTATION),{refetch:Nt}=useQuery(RECORD_LOCK_QUERY,{variables:{id:"0"},skip:!0}),Yt=gr=>Nt({id:gr.id}).then(({data:br})=>{const ar=br.patient;return ar&&ar.lock&&!ar.lock.readOnly?{readOnly:!0,lockedByName:void 0}:{readOnly:!1,lockedByName:ar!=null&&ar.lock?ar.lock.lockedByName:"a staff member"}}),Kt=gr=>{if(gr){const br=COPY$1.RECORD_IN_USE_BY,ar=COPY$1.RECORD_IN_USE_NO_VIEW,ur=`${br} ${gr}${ar}`;Ot({...vt,lockErrorModalOpen:!0,optInModalLoadingId:"",buttonLoadingId:"",lockErrorText:ur})}},Jt=gr=>{qt({variables:{accessPatientId:gr}})},Qt=(gr,br=COPY$1.PATIENT_REGISTRATION)=>{let ar;br===FormType.DISTRESS&&(ar=COPY$1.DISTRESS_PIN),Ot({...vt,buttonLoadingId:gr.id,modalHeader:ar}),Yt(gr).then(xr=>{xr.readOnly?(Rt(!0),Ot({...vt,selectedName:`${gr.firstName} ${gr.lastName}`,selectedPatient:gr,selectedPatientId:gr.id,selectedDob:gr.dob,buttonLoadingId:"",selectedPatientIda:gr.ida,selectedAddress:gr.address,selectedPatientOptIn:{id:gr.id,firstName:gr.firstName,lastName:gr.lastName,pxOptedIn:gr.pxOptedIn,primaryPhone:gr.primaryPhone,email:gr.email,pxOptOutComment:gr.pxOptOutComment,emrInstance:gr.emrInstance}}),Jt(gr.id)):Kt(xr.lockedByName)})},Bt=useHistory(),{selectedPatient:Ft,selectedPatientId:$t}=vt,jt=(dr=xt==null?void 0:xt.userProfile)==null?void 0:dr.hasPatId1,Wt=Mt||ht;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[At&&$t&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(PatientAccessModal,{patient:Ft,isOpen:At,onClose:()=>{Rt(!1)}})}),jsxRuntimeExports.jsx(Stack$5,{sx:{height:"50%"},children:jsxRuntimeExports.jsxs(StyledDocListCol$1,{$noPadding:!0,style:{display:"flex",height:"100%"},ref:ut,children:[Wt?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Forms",relativeSpinner:!0}):null,!Wt&&(dt!=null&&dt.data)?jsxRuntimeExports.jsxs(ResponsiveContainer,{style:{height:"100%",padding:"16px",width:"100%"},children:[jsxRuntimeExports.jsxs(FlexRow,{children:[jsxRuntimeExports.jsx(StyledLabelCol,{children:jsxRuntimeExports.jsx(Typography,{variant:"h6",children:zt})}),jsxRuntimeExports.jsx(Button,{onClick:gr=>{gr.preventDefault(),Qt(xt)},variant:"text","data-test-id":"provide-access",startIcon:jsxRuntimeExports.jsx(LaunchIcon,{color:"primary"}),children:"Provide access"})]}),jsxRuntimeExports.jsx(TableScrollContainer,{children:jsxRuntimeExports.jsxs(TableContainer$1,{"data-test-id":"forms-table",children:[jsxRuntimeExports.jsx(Header$1,{children:jsxRuntimeExports.jsxs(HeaderRow$1,{children:[jsxRuntimeExports.jsx(HeaderCol,{id:"head-1",children:"Type"},"head-1"),jsxRuntimeExports.jsx(HeaderCol,{id:"head-2",children:"Status"},"head-2")]})}),kt?jsxRuntimeExports.jsx(DataBody,{id:"form-list-table",className:"document-list-table",children:Ct.filter(gr=>!gr.isHidden).map((gr,br)=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsxs("div",{style:{fontSize:"14px",lineHeight:"24px",textAlign:"left"},children:["Last modified by: ",gr.updatedBy,jsxRuntimeExports.jsx("br",{}),"Last modified: ",gr.updatedAt]},`tooltip-${br}`),arrow:!0,children:jsxRuntimeExports.jsxs(DataRow,{"data-test-id":`form-table-row-${gr.formStatus}`,id:`row-${br}`,highlight:!1,className:!staticRowForm.includes(gr.id)&&jt?"form-hover-as-pointer":"not-clicky",onClick:()=>{if(gr.id==="theranostics"){navigateToExternalURL(gr.formLink);return}staticRowForm.includes(gr.id)||!jt||(sessionStorage.setItem("referringPage",`/navigator/patient/${xt.id}/summary`),Bt.push(gr.formLink))},children:[jsxRuntimeExports.jsxs(DataCol,{id:`${gr.title}-title-col-${br}`,children:[jsxRuntimeExports.jsx(FormTitleText,{children:gr.title}),displayLocationAccessed(Tt.patient.userProfile.registrationAccessType)]},`title-col-${br}`),jsxRuntimeExports.jsx(DataCol,{id:`${gr.title}-status-col-${br}`,children:jsxRuntimeExports.jsxs(FlexDiv,{children:[It(Dt(gr.formStatus,Tt))," ",Dt(gr.formStatus,Tt)]})},`status-col-${br}`)]},`row-${br}`)})},`row-${br}`))}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})]})})]}):null,!kt&&jsxRuntimeExports.jsxs(NoDocumentContainer,{children:[jsxRuntimeExports.jsx(FindInPageOutlinedIcon,{fontSize:"large",htmlColor:tt.palette.grey[600]}),jsxRuntimeExports.jsx(NoDocumentMessage,{children:"No forms available"})]})]})})]})},StyledROPatientDocs=styled$1(ROPatientDocs)`
  margin-top: 2em;
`,ROPatientSummaryPage=()=>{var It,Dt,kt,qt,Nt,Yt,Kt;const et=useLocation(),tt=useWindowSize(),[rt,nt]=reactExports.useState(null),[lt,ut]=reactExports.useState(!1),[dt,pt]=reactExports.useState(!1),ht=useRouteMatch(),{id:mt}=ht.params,xt=tt.width<LARGE_DISPLAY_SIZE,[Mt]=useMutation(SUBMIT_ATTACHMENT),{data:vt,refetch:Ot}=useQuery(GET_PATIENT_ATTACHMENTS,{variables:{id:mt}});useInterval(()=>{Ot()},(Dt=(It=vt==null?void 0:vt.patient)==null?void 0:It.userProfile)!=null&&Dt.hasPatId1?null:PAT_ID_1_REFRESH_TIME);const At=vt==null?void 0:vt.user.id;(kt=vt==null?void 0:vt.user)==null||kt.isRo;const Rt=((Nt=(qt=vt==null?void 0:vt.patient)==null?void 0:qt.attachments)==null?void 0:Nt.filter(Jt=>{var Qt;return!Jt.submitted&&((Qt=Jt.uploader)==null?void 0:Qt.id)===At&&!Jt.staging&&!Jt.isRegistrationAttachment}))||[],zt=reactExports.useContext(NavigationContext);if(reactExports.useEffect(()=>{nt(null)},[mt]),reactExports.useEffect(()=>{zt.setRegEntryPath(et.pathname)},[et.pathname]),!vt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Tt=jsxRuntimeExports.jsx(ROPatientDocList,{isSmallDisplay:xt,triggerModal:()=>ut(!0),currentDocument:rt,setDocument:Jt=>{nt(Jt)},setShowDocumentUploadPage:Jt=>{pt(Jt)},unsubmittedDocuments:!!Rt.length,disableUpload:!((Kt=(Yt=vt==null?void 0:vt.patient)==null?void 0:Yt.userProfile)!=null&&Kt.hasPatId1)}),Ct=window.location.href.includes("radiation");return jsxRuntimeExports.jsx(FileContextProvider,{children:jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{rowSpace:dt?"0px":void 0,marginBottom:dt?"64px":"56px",refreshChartSummary:()=>pt(!1),children:jsxRuntimeExports.jsxs(Grid,{container:!0,children:[!dt&&(Ct?jsxRuntimeExports.jsxs(Grid,{item:!0,xs:xt?6:3,sx:{padding:"0 16px",gap:"16px",display:"flex",flexDirection:"column",height:"100%"},children:[Tt,jsxRuntimeExports.jsx(DoseSiteSummary,{})]}):jsxRuntimeExports.jsxs(Grid,{item:!0,xs:xt?6:3,sx:{padding:"0 16px",gap:"16px",display:"flex",flexDirection:"column",height:"100%"},children:[jsxRuntimeExports.jsx(ROPatientForms,{patientId:mt,isSmallDisplay:xt}),Tt]})),!xt&&!dt?jsxRuntimeExports.jsx(Grid,{item:!0,xs:6,children:jsxRuntimeExports.jsx(StyledROPatientDocs,{document:rt})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),xt&&!dt?jsxRuntimeExports.jsxs(Dialog,{fullWidth:!0,sx:{"& .MuiPaper-root":{minWidth:"90%",height:"100%"}},open:lt,onClose:()=>{ut(!1),nt(null)},id:"document-modal",children:[jsxRuntimeExports.jsx(DialogTitle,{sx:{display:"flex"},children:jsxRuntimeExports.jsx(IconButton,{sx:{marginLeft:"auto"},className:"btn-close",onClick:()=>{ut(!1),nt(null)},children:jsxRuntimeExports.jsx(default_1$n,{color:"primary"})})}),jsxRuntimeExports.jsx(DialogContent,{sx:{width:"100%"},children:jsxRuntimeExports.jsx(StyledROPatientDocs,{document:rt})})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),dt?jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx(DocumentUpload$1,{patientId:mt,userId:At,currentDocuments:Rt,onSubmitDocumentUpload:async()=>{const Jt=await Mt({variables:{patientID:mt}}).then(Qt=>Qt.data.submitAttachment.success);return Jt&&pt(!1),Jt},onCancelDocumentUpload:()=>pt(!1)})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),dt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(Grid,{item:!0,xs:xt?6:3,style:{padding:xt?"0 16px 0 0":"0 16px",height:"100%"},children:jsxRuntimeExports.jsx(ROPatientNotes,{})})]})})})})},routedComponent$b=withRouter(ROPatientSummaryPage),viewMappings={Simple:jsxRuntimeExports.jsx(Summary$2,{}),Default:jsxRuntimeExports.jsx(routedComponent$b,{})},Summary$1=()=>{var pt;const{getEMRFeature:et,getUserFeature:tt}=React$4.useContext(UserContext),rt=tt("PatientSummary"),nt=rt?(pt=rt.featureOption)==null?void 0:pt.name:null,lt=et("PatientSummary"),ut=lt?lt.default.name:null,dt=nt||ut;return dt?viewMappings[dt]:jsxRuntimeExports.jsx(routedComponent$b,{})},TableContainer=styled("table")`
  height: 100%;
  display: block;
  border-collapse: separate;
  width: 100%;
`,TableHead=styled("thead")`
  display: block;
`,TableHeaderRow=styled("tr")`
  display: block;
  max-width: 100%;
`,TableHeader$1=styled("th")`
  width: 100%;
  white-space: nowrap;
  align-items: center;
  padding: 14px 14px 12px;
  color: ${et=>et.theme.palette.text.primary};
  background-color: ${et=>et.theme.palette.grey[100]};
  &:last-of-type {
    text-align: right;
  }
`,TableBody=styled("tbody")`
  max-height: calc(100% - 50px);
  display: block;
  width: 100%;
  overflow: auto;
`,TableRow$3=styled("tr")`
  cursor: pointer;
  &:hover {
    background-color: ${et=>et.active?et.theme.palette.action.selected:et.theme.palette.action.hover};
  }
  background-color: ${et=>et.active?et.theme.palette.action.selected:""};
`,TableData=styled("td")`
  width: 100%;
  padding: 8px 16px;
  font-size: ${getRemSize(16)};
  vertical-align: middle;
`,SubTableData=styled("div")`
  padding-top: 4px;
  font-size: ${getRemSize(13)};
  color: ${et=>et.theme.palette.grey[600]};
`,NoDataContainer$1=styled("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
`,SORT_TYPES={ASC:"ASC",DESC:"DESC"},NO_DATA$1="No results found",Table$1=et=>{const{tableHeaders:tt,tableData:rt,dateFormat:nt="DD-MM-YYYY",onRowClick:lt,defaultSelectedIndex:ut,testId:dt}=et,[pt,ht]=reactExports.useState({key:"",order:"",type:""}),[mt,xt]=reactExports.useState({id:null}),Mt=rt&&[...rt].sort((Ot,At)=>{if(pt.type===DATATYPE.DATE){const Rt=Ot.find(It=>It.key===pt.key).title,zt=At.find(It=>It.key===pt.key).title,Tt=hooks(Rt,nt),Ct=hooks(zt,nt);return pt.order===SORT_TYPES.ASC?Ct.diff(Tt):Tt.diff(Ct)}return 0}),vt=Ot=>{const At=pt.order===SORT_TYPES.DESC?SORT_TYPES.ASC:SORT_TYPES.DESC;ht({key:Ot.key,order:At,type:Ot.type})};return reactExports.useEffect(()=>{Mt&&Mt.length&&ut!==void 0&&ut>=0&&Mt!==void 0&&Mt[ut][0]&&(xt(Mt&&Mt[ut][0]),lt&&Mt&&Mt[ut]&&lt(Mt[ut]));const At=tt.filter(Rt=>Rt.sort)[0];At&&ht({key:At.key,order:SORT_TYPES.DESC,type:At.type})},[]),rt&&rt.length&&Mt?jsxRuntimeExports.jsxs(TableContainer,{"data-test-id":dt,children:[jsxRuntimeExports.jsx(TableHead,{children:jsxRuntimeExports.jsx(TableHeaderRow,{children:tt.map(Ot=>jsxRuntimeExports.jsx(TableHeader$1,{children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",children:[Ot.hasOwnProperty("sort")&&jsxRuntimeExports.jsxs(Stack$5,{onClick:()=>{vt(Ot)},"data-testid":`${Ot.title}-sort`,sx:{cursor:"pointer"},children:[jsxRuntimeExports.jsx(KeyboardArrowUp,{color:pt.key===Ot.key&&pt.order===SORT_TYPES.ASC?"primary":"secondary",sx:{marginBottom:"-10px"}}),jsxRuntimeExports.jsx(KeyboardArrowDown,{color:pt.key===Ot.key&&pt.order!==SORT_TYPES.ASC?"primary":"secondary"})]}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:Ot.title})]})},Ot.key))})}),jsxRuntimeExports.jsx(TableBody,{"data-test-id":`${dt}-body`,children:Mt.map((Ot,At)=>{const Rt={active:Ot[0].id===mt.id};return jsxRuntimeExports.jsx(TableRow$3,{"data-test-id":`${dt}-row-${At}`,...Rt,onClick:()=>{xt(Ot[0]),lt&&lt(Ot)},children:Ot.map((zt,Tt)=>jsxRuntimeExports.jsxs(TableData,{...Rt,children:[zt.title,zt.subtitle&&jsxRuntimeExports.jsx(SubTableData,{children:zt.subtitle})]},Tt))},`${Ot[0].title}-${At}`)})})]}):jsxRuntimeExports.jsxs(NoDataContainer$1,{children:[jsxRuntimeExports.jsx(FindInPageOutlinedIcon,{fontSize:"large"}),jsxRuntimeExports.jsx(Typography,{paddingTop:2,variant:"body1",children:NO_DATA$1})]})},ResultsTable=({data:et,setActiveResult:tt,setActiveDocument:rt})=>{const nt=[{title:"Type",key:"description",type:DATATYPE.STRING},{title:"Observation Date",key:"observationDate",sort:!0,type:DATATYPE.DATE}],lt=et.map(dt=>[{title:dt.panelName!==""?dt.panelName:"No title available",subtitle:dt.status,id:dt.id,key:"description"},{title:hooks(dt.observationDate).utc(!1).format("L"),key:"observationDate"}]),ut=dt=>et.filter(pt=>pt.id===dt)[0];return jsxRuntimeExports.jsx(Table$1,{testId:"labs-results-panel-table",tableHeaders:nt,tableData:lt,dateFormat:"L",onRowClick:dt=>{dt[0].id&&(tt(ut(dt[0].id)),rt(void 0))},defaultSelectedIndex:0})},StyledTableContainer$2=styled$1("div")`
  flex: 1;
`,StyledTable$1=styled$1(Table$3)`
  border-collapse: separate;
  margin-bottom: 0;

  tbody tr:last-child td {
    border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  }

  & td {
    padding: 7px 12px;
    border-right: 1px solid ${et=>et.theme.palette.grey[300]};
    text-align: left;

    &:first-child {
      border-left: 1px solid ${et=>et.theme.palette.grey[300]};
    }
  }

  & thead {
    & th {
      position: sticky;
      top: 0;
      text-align: left;
      padding: 8px 8px;
      border-right: 1px solid ${et=>et.theme.palette.grey[300]};
      background-color: ${et=>et.theme.palette.grey[100]};
      &:first-child {
        border-left: 1px solid ${et=>et.theme.palette.grey[300]};
      }
    }
  }
`,StyledDetailsTableContainer=styled$1("div")`
  position: sticky;
  top: 0;
  right: 0;
`,StyledDetailsTable=styled$1(StyledTable$1)`
  height: 100%;
  border-left: none;
  margin-bottom: 0;
  table-layout: fixed;
`,StyledTableWrapper=styled$1("div")`
  display: flex;
  width: 100%;
  overflow: auto;
  flex: 1;
`,StyledTableRow$7=styled$1("tr")`
  cursor: ${et=>et.clickable?"pointer":"default"} !important;

  & td {
    border-top: ${et=>et.active?`2px solid ${et.theme.palette.primary.dark}`:""};
    border-bottom: ${et=>et.active?`2px solid ${et.theme.palette.primary.dark} !important`:"none"};

    &:last-of-type {
      border-right: ${et=>et.active?`2px solid ${et.theme.palette.primary.dark}`:""};
      border-radius: ${et=>et.active?"0 4px 4px 0":""};
    }

    &:first-of-type {
      border-left: ${et=>et.active?`2px solid ${et.theme.palette.primary.dark}`:""};
      border-radius: ${et=>et.active?"4px 0 0 4px":""};
    }
  }
`,DetailsCell$1=styled$1("td")`
  font-size: ${getRemSize(16)};
  line-height: 24px;
  padding: 0 !important;

  &:hover {
    background: white;
    cursor: default;
  }

  & > div {
    padding: 7px 12px;
  }

  & a {
    text-decoration: underline;
    color: ${et=>et.theme.palette.info.main};

    &:hover {
      text-decoration: none;
    }
  }

  & font {
    & > * {
      font-size: 16px !important;
    }
  }
`,DetailTable=({activeResult:et,setActiveDocument:tt,activeDocument:rt,testId:nt})=>{var Mt;const lt=reactExports.useRef(null),ut=useWindowSize(),dt=[{title:"Test",key:"loincCode",type:DATATYPE.STRING},{title:"Result",key:"resultValue",type:DATATYPE.STRING},{title:"Units",key:"unitOfMeasure",type:DATATYPE.STRING},{title:"Normal",key:"referenceRange",type:DATATYPE.STRING},{title:"Criticality",key:"abnormalFlags",type:DATATYPE.STRING},{title:"Description",key:"description",type:DATATYPE.STRING}],pt=dt.map(vt=>vt.key),ht=["loincCode","resultValue"],mt=(Mt=et==null?void 0:et.observations)==null?void 0:Mt.map((vt,Ot)=>{const At=rt?ht:pt,Rt=vt.cleanedNote!=="",zt={active:!!(Rt&&rt===vt.cleanedNote),clickable:!!(Rt&&rt)};return jsxRuntimeExports.jsx(StyledTableRow$7,{...zt,onClick:()=>{rt&&Rt&&tt(zt.active?void 0:vt.cleanedNote)},children:At.map((Tt,Ct)=>jsxRuntimeExports.jsx("td",{style:{verticalAlign:"middle"},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:"6px",alignItems:"center",children:[Tt!=="resultValue"||Tt==="resultValue"&&!Rt?vt[Tt]!==""?vt[Tt]:"-":null,Tt==="resultValue"&&Rt?jsxRuntimeExports.jsx(DescriptionOutlinedIcon,{color:"primary",cursor:"pointer",onClick:()=>tt(zt.active?void 0:vt.cleanedNote)}):null,Tt==="abnormalFlags"&&(vt[Tt]==="HH"||vt[Tt]==="LL")&&jsxRuntimeExports.jsx(WarningIcon$6,{color:"warning"})]})},Ot+Ct))},Ot)}),xt=()=>{const vt=lt==null?void 0:lt.current;vt&&!rt&&vt.querySelectorAll("tr").forEach(At=>{At.style.height="auto",At.style.height=`${At.offsetHeight}px`})};return reactExports.useEffect(xt,[]),reactExports.useEffect(xt,[ut]),jsxRuntimeExports.jsxs(StyledTableWrapper,{children:[jsxRuntimeExports.jsx(StyledTableContainer$2,{children:jsxRuntimeExports.jsxs(StyledTable$1,{"data-test-id":nt,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:dt.map((vt,Ot)=>rt&&!ht.includes(vt.key)?null:jsxRuntimeExports.jsx("th",{children:vt.title},`header-${Ot}`))})}),jsxRuntimeExports.jsx("tbody",{"data-test-id":`${nt}-body`,ref:lt,children:mt})]})}),rt&&jsxRuntimeExports.jsx(StyledDetailsTableContainer,{children:jsxRuntimeExports.jsxs(StyledDetailsTable,{children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("th",{style:{padding:"5px 8px"},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:"4px",children:["Details",jsxRuntimeExports.jsx(CloseIcon,{fontSize:"small",color:"primary",cursor:"pointer","data-testid":"close-details-labs",onClick:()=>tt(void 0)})]})})})}),jsxRuntimeExports.jsx("tbody",{children:jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx(DetailsCell$1,{style:{height:"fit-content"},children:jsxRuntimeExports.jsx("div",{style:{maxHeight:"500px",overflowY:"auto"},children:jsxRuntimeExports.jsx("div",{"data-test-id":`${nt}-body-notes`,dangerouslySetInnerHTML:{__html:wrapURLs(rt)}})})})})})]})})]})},ResultsContainer=styled$1(Card$1)`
  height: 100%;
`,Date$1=styled$1("span")`
  font-size: ${getRemSize(16)};
`,NoDataContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
`,AddNotesStyled=styled$1(AddNotes)`
  &&& {
    margin-right: 16px;
  }
`,NO_DATA="No results to show",ROPatientLabs=()=>{var Ot;const et=useWindowSize(),[tt,rt]=reactExports.useState(),[nt,lt]=reactExports.useState(),ut=et.width<LARGE_DISPLAY_SIZE,dt=useRouteMatch(),{id:pt}=dt.params,{setError:ht}=useErrorModalContext(),{data:mt,loading:xt,error:Mt}=useQuery(GET_PATIENT_LAB_PANELS,{variables:{patientId:pt}}),vt=useTheme$1();return reactExports.useEffect(()=>{if(Mt)return ht()},[Mt]),xt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Loading..."}):jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{children:jsxRuntimeExports.jsxs(Grid,{container:!0,sx:{width:"100%",paddingLeft:"16px"},children:[jsxRuntimeExports.jsx(Grid,{xs:ut?4:3,children:jsxRuntimeExports.jsx(Stack$5,{sx:{height:"100%"},children:jsxRuntimeExports.jsxs(ResultsContainer,{children:[jsxRuntimeExports.jsx(Typography,{paddingBottom:1,variant:"h6",id:"patient-summary-header",children:"Lab Results"}),jsxRuntimeExports.jsx(ResultsTable,{data:mt.labPanels,setActiveResult:rt,setActiveDocument:lt})]})})}),jsxRuntimeExports.jsx(Grid,{xs:ut?7:6,sx:{paddingLeft:"16px"},children:jsxRuntimeExports.jsx(Card$1,{$filled:!0,children:tt&&((Ot=tt.observations)!=null&&Ot.length)?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack$5,{paddingBottom:1,alignItems:"center",justifyContent:"space-between",direction:"row",children:[jsxRuntimeExports.jsxs(Stack$5,{"data-testid":"labs-results-table-header",direction:"row",gap:.5,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6","data-test-id":"document-preview-header",children:tt.panelName||"No title available"}),jsxRuntimeExports.jsxs(Typography,{variant:"h6",color:vt.palette.text.secondary,children:["(",tt.status,")"]})]}),jsxRuntimeExports.jsx(Date$1,{children:hooks(tt.observationDate).utc(!1).format("D MMMM YYYY h:mm:ss A")})]}),jsxRuntimeExports.jsx(DetailTable,{testId:"labs-results-table",activeResult:tt,activeDocument:nt,setActiveDocument:lt})]}):jsxRuntimeExports.jsxs(NoDataContainer,{children:[jsxRuntimeExports.jsx(FindInPageOutlinedIcon,{fontSize:"large"}),jsxRuntimeExports.jsx(Typography,{paddingTop:2,variant:"body1",children:NO_DATA})]})})}),jsxRuntimeExports.jsx(Grid,{xs:ut?1:3,sx:{width:"100%"},children:jsxRuntimeExports.jsx(AddNotesStyled,{className:"add-notes-styled"})})]})})})};var CarePlanActionType=(et=>(et[et.SET_CAREPLAN=0]="SET_CAREPLAN",et[et.SET_TREATMENT_INFO=1]="SET_TREATMENT_INFO",et[et.SET_CAREPLAN_SITES=2]="SET_CAREPLAN_SITES",et[et.SET_CAREPLAN_TEMPLATE=3]="SET_CAREPLAN_TEMPLATE",et[et.SET_INTAKE_CODE_MAPPING=4]="SET_INTAKE_CODE_MAPPING",et))(CarePlanActionType||{});const DEFAULT_CAREPLAN_STATE={careplan:{id:"",treatmentInfo:DEFAULT_TREATMENT_INFO},diagnosis:DEFAULT_DIAGNOSIS_TYPE,template:[],createCarePlan:()=>{},updateCarePlanDiagnosis:()=>{},history:{},creatingCareplan:!1,intakePageMapping:{}},DEFAULT_SITE_DETAIL={id:"",added:"",compliance:"",usage:0,national:!1},DEFAULT_PRESCRIPTION={prescriptionTreatmentSite:"Lung",prescriptionPhase:"",prescriptionTechnique:"",prescriptionModality:"",prescriptionDose:"",prescriptionDoseHigh:"",prescriptionDoseLow:"",prescriptionDoseIntermediate:[],prescriptionFractions:"",prescriptionFractionDose:"",prescriptionDoseTo:"",prescriptionFrequency:"",prescriptionCustomDoseFrequency:"",prescriptionImaging:"",prescriptionImagingTechnique:"",prescriptionAdditionalPrescriptionInfo:""},DEFAULT_SIMULATION={treatmentSimulationId:"",treatmentCtSimulation:!1,treatmentRORequired:!1,treatmentPatientPosition:"",treatmentPositionSetup:"",treatmentExtentOfCt:"",treatmentExtentDefined:"",treatmentSpacerGel:!1,treatmentGoldSeeds:!1,treatmentBladder:"",treatmentBowelPrep:!1,treatmentExtraCtMarkers:"",treatmentAdditionalSimInfo:"Bladder comfortably full. Bowel comfortably empty with no cross section of rectum > 50 mm"},DEFAULT_SITE={id:"",treatmentSite:"",laterality:"",detail:{...DEFAULT_SITE_DETAIL},...DEFAULT_PRESCRIPTION},DEFAULT_VOLUMING_DOSE_TEMPLATES=[{label:"Rectum",value:""},{label:"FemHead_Neck_L",value:""},{label:"FemHead_Neck_R",value:""},{label:"Skin",value:""}],DEFAULT_VOLUMING={volumingGtv:"",volumingCtv:"",volumingPtv:"",volumingDose:"",volumingDoseTemplates:[...DEFAULT_VOLUMING_DOSE_TEMPLATES],volumingAdditionalOarInfo:""},DEFAULT_SUBMISSION={submissionId:"",submissionPdfUrl:"https://ray-op.zh-everest.testing-genesis.care/server/static/sample/GenesisCare_pdf_sample.pdf",submissionComments:""},DEFAULT_SITEGROUP={siteGroupId:"",sites:[],treatment:{...DEFAULT_SIMULATION},imagingList:[],voluming:{...DEFAULT_VOLUMING},submission:{...DEFAULT_SUBMISSION}},ROPatientCarePlanContext=React$4.createContext({state:DEFAULT_CAREPLAN_STATE,dispatch:et=>{}}),GET_DIAGNOSIS_FROM_CAREPLAN=gql`
  query careplan($careplanId: ID!) {
    careplan(id: $careplanId) {
      id
      careplanStatus
      isPrimDiagnosisOwner
      isMetsDiagnosisOwner
      diagnosis {
        hasTreatmentStarted
        id
        stageType
        stageTCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageNCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageMCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageTCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageMCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageNCodeClinical {
          id
          subCode
          description
          mainCode
        }
        morphology {
          id
          code
          displayName
        }
        otherInfo
        laterality
        diagnosisDate
        diagnosisCode {
          id
          diagnosisCode
          diagnosisDescription
          stageNumber
          tumourStream {
            id
            name
          }
        }
        isPrimaryDiagnosis
        draft
        relatedPrimaryDiagnosis {
          id
          stageType
          stageTCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageNCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageMCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageTCodeClinical {
            id
            subCode
            description
            mainCode
          }
          stageMCodeClinical {
            id
            subCode
            description
            mainCode
          }
          stageNCodeClinical {
            id
            subCode
            description
            mainCode
          }
          morphology {
            id
            code
            displayName
          }
          otherInfo
          laterality
          diagnosisDate
          diagnosisCode {
            id
            diagnosisCode
            diagnosisDescription
            stageNumber
            tumourStream {
              id
              name
            }
          }
          isPrimaryDiagnosis
          draft
        }
      }
    }
  }
`;gql`
  query careplan {
    templateSites @client {
      treatmentSite
    }
  }
`;const GET_PEER_REVIEW=gql`
  query peerReview($careplanId: ID!) {
    peerReview(careplanId: $careplanId) {
      isActive
      credentials
      alwaysTrigger
      notes
      disableNotes
      violations {
        site {
          siteId
          name
        }
        ruleSets {
          rules {
            field
            careplanValue
            peerReviewValue
            operator
          }
        }
      }
    }
  }
`,UPDATE_PEER_REVIEW_NOTES=gql`
  mutation updatePeerReviewNotes($careplanId: ID!, $notes: String!) {
    updatePeerReviewNotes(careplanId: $careplanId, notes: $notes) {
      success
    }
  }
`,getTNMSubCode$1=et=>et?et.subCode:"",renderPrimaryCode=et=>{const tt=useTheme$1();return jsxRuntimeExports.jsxs("div",{id:"diagnosis-current-code",className:"diagnosis-code-body",children:[jsxRuntimeExports.jsx(Typography,{"data-testid":"diagnosis-code-clinical",variant:"subtitle2",className:"diagnosis-item-body-type-title",children:"Clinical"}),jsxRuntimeExports.jsx("div",{className:"item-body",style:{paddingTop:"0px",marginBottom:"8px",paddingBottom:"0px",maxHeight:"40px"},children:jsxRuntimeExports.jsxs("div",{className:"item-stages-container",children:[jsxRuntimeExports.jsx("div",{className:"item-stage-container",children:jsxRuntimeExports.jsxs("div",{className:"item-stage",children:[jsxRuntimeExports.jsx("div",{className:"item-stage-title",children:"T Stage"}),jsxRuntimeExports.jsx("div",{className:"item-stage-name",children:getTNMSubCode$1(et.stageTCodeClinical)||"-"})]})}),jsxRuntimeExports.jsx("div",{className:"item-stage-container",children:jsxRuntimeExports.jsxs("div",{className:"item-stage",children:[jsxRuntimeExports.jsx("div",{className:"item-stage-title",children:"N Stage"}),jsxRuntimeExports.jsx("div",{className:"item-stage-name",children:getTNMSubCode$1(et.stageNCodeClinical)||"-"})]})}),jsxRuntimeExports.jsx("div",{className:"item-stage-container",children:jsxRuntimeExports.jsxs("div",{className:"item-stage",children:[jsxRuntimeExports.jsx("div",{className:"item-stage-title",children:"M Stage"}),jsxRuntimeExports.jsx("div",{className:"item-stage-name",children:getTNMSubCode$1(et.stageMCodeClinical)||"-"})]})})]})}),jsxRuntimeExports.jsx(Typography,{"data-testid":"diagnosis-code-pathological",variant:"subtitle2",className:"diagnosis-item-body-type-title",children:"Pathological"}),jsxRuntimeExports.jsx("div",{className:"item-body",style:{paddingTop:"0px",marginBottom:"8px",paddingBottom:"0px",maxHeight:"40px"},children:jsxRuntimeExports.jsxs("div",{className:"item-stages-container",children:[jsxRuntimeExports.jsx("div",{className:"item-stage-container",children:jsxRuntimeExports.jsxs("div",{className:"item-stage",children:[jsxRuntimeExports.jsx("div",{className:"item-stage-title",children:"T Stage"}),jsxRuntimeExports.jsx("div",{className:"item-stage-name",children:getTNMSubCode$1(et.stageTCodePathological)||"-"})]})}),jsxRuntimeExports.jsx("div",{className:"item-stage-container",children:jsxRuntimeExports.jsxs("div",{className:"item-stage",children:[jsxRuntimeExports.jsx("div",{className:"item-stage-title",children:"N Stage"}),jsxRuntimeExports.jsx("div",{className:"item-stage-name",children:getTNMSubCode$1(et.stageNCodePathological)||"-"})]})}),jsxRuntimeExports.jsx("div",{className:"item-stage-container",children:jsxRuntimeExports.jsxs("div",{className:"item-stage",children:[jsxRuntimeExports.jsx("div",{className:"item-stage-title",children:"M Stage"}),jsxRuntimeExports.jsx("div",{className:"item-stage-name",children:getTNMSubCode$1(et.stageMCodePathological)||"-"})]})})]})}),jsxRuntimeExports.jsxs("div",{className:"item-footer",children:[jsxRuntimeExports.jsx("div",{className:"item-detail-row",children:jsxRuntimeExports.jsxs("div",{className:"item-detail-col diagnosis-date",children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",color:tt.palette.text.secondary,className:"item-detail-title",children:"Diagnosis Date"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"item-detail",children:et.diagnosisDate?hooks(et.diagnosisDate).format("L"):"-"})]})}),jsxRuntimeExports.jsxs("div",{className:"item-detail-row morphology",children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",color:tt.palette.text.secondary,className:"item-detail-title",children:"Morphology"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"item-detail morphology-wrapper",children:et.morphology.displayName||"-"})]})]})]})},renderMetastasisCode=et=>{const tt=et.relatedPrimaryDiagnosis,rt=tt&&tt.diagnosisCode,nt=useTheme$1();return jsxRuntimeExports.jsxs("div",{id:"diagnosis-current-code",className:"diagnosis-code-body",children:[jsxRuntimeExports.jsxs("div",{style:{background:nt.palette.grey[300]},className:"metastasis-link",children:[jsxRuntimeExports.jsx(Link$1,{color:"secondary"}),jsxRuntimeExports.jsx("div",{children:rt?`Related to ${rt.diagnosisCode} - Primary`:"Not related to a primary diagnosis"})]}),jsxRuntimeExports.jsxs("div",{className:"item-footer",children:[jsxRuntimeExports.jsx("div",{className:"item-detail-row",children:jsxRuntimeExports.jsxs("div",{className:"item-detail-col diagnosis-date",children:[jsxRuntimeExports.jsx("div",{className:"item-detail-title",children:"Diagnosis Date"}),jsxRuntimeExports.jsx("div",{className:"item-detail",children:et.diagnosisDate?hooks(et.diagnosisDate).format("L"):"-"})]})}),jsxRuntimeExports.jsxs("div",{className:"item-detail-row related-primary-diagnosis",children:[jsxRuntimeExports.jsx("div",{className:"item-detail-title",children:"Related Primary Diagnosis"}),jsxRuntimeExports.jsx("div",{className:"item-detail",children:rt?`${rt.diagnosisCode} ${rt.tumourStream.name} - ${rt.diagnosisDescription}`:"-"})]})]})]})},ROPatientDiagnosisCurrentCode=et=>{const[tt,rt]=reactExports.useState(!1),nt=useTheme$1(),{open:lt,showTitle:ut,showExpandButton:dt,active:pt,onClick:ht,showPrimary:mt,diagnosisCodeSet:xt}=et;if(!et.diagnosisCodeSet)return jsxRuntimeExports.jsx(reactExports.Fragment,{});const Mt=convertDiagnosisTypeToWithoutNulls(et.diagnosisCodeSet),vt=typeof mt>"u"?Mt.isPrimaryDiagnosis:mt,Ot=Mt.diagnosisCode,{isPrimaryDiagnosis:At}=xt;return jsxRuntimeExports.jsxs("div",{className:classNames$1("ro-careplan-tweaks","diagnosis-code-container",{primary:At,metastasis:!At}),style:{cursor:"pointer",border:pt?`3px solid ${nt.palette.primary.main}`:"none",paddingBottom:"8px"},"data-test-id":"existing-diagnosis",onClick:()=>{ht&&ht()},children:[jsxRuntimeExports.jsxs("div",{style:{borderTopColor:vt?nt.palette.primary.main:nt.palette.warning.main,margin:"0 -2px",borderTopWidth:"4px"},className:classNames$1("diagnosis-code-header",{primary:vt,"is-expand":tt}),children:[ut&&jsxRuntimeExports.jsxs("div",{className:"diagnosis-code-title",children:[pt?jsxRuntimeExports.jsx(CheckCircle$1,{sx:{fontSize:"30px"},color:"primary"}):vt?jsxRuntimeExports.jsx(Adjust,{sx:{color:nt.palette.grey[600]}}):jsxRuntimeExports.jsx(SvgMetastasis,{}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{color:nt.palette.text.primary},className:"diagnosis-code-header-text",children:vt?"Primary diagnosis":"Metastasis diagnosis"})]}),jsxRuntimeExports.jsxs("div",{className:"diagnosis-current-item",children:[jsxRuntimeExports.jsxs("span",{children:[Ot&&`${Ot.diagnosisCode} `,Ot&&Ot.tumourStream.name||"-"," :"," "]}),jsxRuntimeExports.jsx("span",{children:Ot&&Ot.diagnosisDescription||"-"}),jsxRuntimeExports.jsx("span",{children:Mt.laterality?` (${Mt.laterality})`:""})]}),dt&&jsxRuntimeExports.jsx("button",{onClick:()=>{rt(!tt)},className:"diag-sidebar-collapse-button","aria-controls":"diagnosis-current-code","aria-expanded":lt||tt,style:{border:0,background:"unset",cursor:"pointer"},children:lt||tt?jsxRuntimeExports.jsx(KeyboardArrowUp,{fontSize:"large",color:"primary",sx:{paddingTop:"12px",marginBotom:"-8px"}}):jsxRuntimeExports.jsx(KeyboardArrowDown,{fontSize:"large",color:"primary",sx:{paddingTop:"12px",marginBotom:"-8px"}})})]}),jsxRuntimeExports.jsx(Collapse,{in:lt||tt,children:vt?renderPrimaryCode(Mt):renderMetastasisCode(Mt)})]})},PeerReviewContext=reactExports.createContext({}),PeerReviewProvider=({children:et})=>{const[tt,rt]=reactExports.useState();return jsxRuntimeExports.jsx(PeerReviewContext.Provider,{value:{peerReviewViolations:tt,setPeerReviewViolations:rt},children:et})},SidePanelItem=({title:et,topBorderColor:tt,children:rt})=>{const nt=useTheme$1();return jsxRuntimeExports.jsxs(Stack$5,{sx:{display:"block",border:`1px solid ${nt.palette.grey[300]}`,margin:"10px 0 10px",borderRadius:"7px",width:"100%"},children:[jsxRuntimeExports.jsx(Stack$5,{"data-testid":"side-panel-title",sx:{borderTop:`4px solid ${tt}`,borderRadius:"6px 6px 0 0",padding:"10px",borderBottom:`1px solid ${nt.palette.grey[300]}`,lineHeight:"20px",margin:"-1px"},children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:et})}),rt]})},ROPeerReviewSidePanel=()=>{var It,Dt,kt;const et=useRouteMatch(),{careplanId:tt}=et.params,rt=useTheme$1(),{setError:nt}=useErrorModalContext(),[lt,ut]=reactExports.useState(""),[dt,pt]=reactExports.useState(!1),{setPeerReviewViolations:ht}=reactExports.useContext(PeerReviewContext),{loading:mt,error:xt,data:Mt}=useQuery(GET_PEER_REVIEW,{variables:{careplanId:tt},onCompleted:()=>{var qt,Nt,Yt;ut((qt=Mt==null?void 0:Mt.peerReview)==null?void 0:qt.notes),ht((Nt=Mt==null?void 0:Mt.peerReview)==null?void 0:Nt.violations),pt((Yt=Mt==null?void 0:Mt.peerReview)==null?void 0:Yt.disableNotes)}}),[vt]=useMutation(UPDATE_PEER_REVIEW_NOTES,{refetchQueries:[{query:GET_PEER_REVIEW,variables:{careplanId:tt}}]});if(reactExports.useEffect(()=>{if(xt)return nt("NON_BLOCKING")},[xt]),mt)return jsxRuntimeExports.jsx(Stack$5,{sx:{width:"100%"},className:"px-0",children:jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading peer review",relativeSpinner:!0})});if(!Mt)return jsxRuntimeExports.jsx("div",{});const Ot=Mt==null?void 0:Mt.peerReview,At=Ot==null?void 0:Ot.alwaysTrigger,Rt=((It=Ot==null?void 0:Ot.credentials)==null?void 0:It.length)>0,zt=((Dt=Ot==null?void 0:Ot.violations)==null?void 0:Dt.length)>0;if(!zt&&!Rt&&!At)return jsxRuntimeExports.jsx("div",{});const Tt=qt=>qt==null?void 0:qt.map((Nt,Yt)=>{var Kt;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"peer-review-text",children:(Kt=Nt==null?void 0:Nt.site)==null?void 0:Kt.name},`violation-${Yt}`),jsxRuntimeExports.jsx("div",{className:"peer-review-text",children:Nt==null?void 0:Nt.ruleSets.map((Jt,Qt)=>jsxRuntimeExports.jsx("div",{children:Jt.rules.map((Bt,Ft)=>{const $t=Bt.peerReviewValue,jt=isNaN(Number($t))?$t:parseFloat($t);return jsxRuntimeExports.jsx("div",{children:` • ${Bt.field} must be ${Bt.operator} ${jt}`},`violation-rule-${Yt}-${Qt}-${Ft}`)})},`violation-ruleSet-${Yt}-${Qt}`))},`violation-peer-review-${Yt}`)]},`violation-wrapper-${Yt}`)}),Ct=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(BaseTextField,{id:"reason",defaultValue:lt,maxRows:4,minRows:4,multiline:!0,fullWidth:!0,disabled:dt,placeholder:dt?"Peer review already submitted":"Type your notes here... (Notes will be autosaved and added to the submission PDF)",onBlur:()=>{typeof lt<"u"&&vt({variables:{careplanId:tt,notes:lt}})},onChange:qt=>{ut(qt.target.value)},sx:{padding:"12px"}}),At&&jsxRuntimeExports.jsxs("div",{"data-test-id":"pr-auto-trigger",children:[jsxRuntimeExports.jsx("div",{className:"peer-review-sub-heading",children:"Automatically triggered"}),jsxRuntimeExports.jsx("div",{className:"peer-review-text",children:`Peer review is set to always trigger for ${At}`},"auto-trigger")]}),Rt&&jsxRuntimeExports.jsxs("div",{"data-test-id":"pr-credentials",children:[jsxRuntimeExports.jsx("div",{className:"peer-review-sub-heading",children:"Missing credentials"}),(kt=Ot==null?void 0:Ot.credentials)==null?void 0:kt.map((qt,Nt)=>jsxRuntimeExports.jsx("div",{className:"peer-review-text","data-test-id":`pr-credentials-${Nt}`,children:qt},`credential-${Nt}`))]}),zt&&jsxRuntimeExports.jsxs("div",{"data-test-id":"pr-violations",children:[jsxRuntimeExports.jsx("div",{className:"peer-review-sub-heading",children:"Off careplan protocol"}),Tt(Ot==null?void 0:Ot.violations)]})]});return jsxRuntimeExports.jsx(SidePanelItem,{title:"Peer review",topBorderColor:rt.palette.warning.main,children:Ct})},getOTVCareplanName=(et,tt)=>{const{doseUnit:rt,fractionUnit:nt}=tt,lt=doseRounding(et.plannedDosageQuantity,et.isAria,tt),ut=et.plannedDosageRatio,dt=et.technique!==null?et.technique:"";return`${et.identifierSite} ${dt} ${lt}${rt}/${ut}${nt}`},ROPatientCarePathDiagnosisWidget=()=>{const et=useRouteMatch(),{careplanId:tt}=et.params,{setError:rt}=useErrorModalContext(),{loading:nt,error:lt,data:ut}=useQuery(GET_DIAGNOSIS_FROM_CAREPLAN,{variables:{careplanId:tt}});if(reactExports.useEffect(()=>{if(lt)return rt()},[lt]),nt)return jsxRuntimeExports.jsx("div",{children:"Loading"});if(!ut)return jsxRuntimeExports.jsx("div",{});const{diagnosis:dt}=ut.careplan,pt=dt.isPrimaryDiagnosis?dt:dt.relatedPrimaryDiagnosis,ht=dt.isPrimaryDiagnosis?null:dt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[pt&&jsxRuntimeExports.jsx(ROPatientDiagnosisCurrentCode,{showTitle:!0,showExpandButton:!0,diagnosisCodeSet:pt,showPrimary:!0}),ht&&jsxRuntimeExports.jsx(ROPatientDiagnosisCurrentCode,{showTitle:!0,diagnosisCodeSet:ht,showPrimary:!1})]})},ROPatientCarePathCarePlanSitesWidget=()=>{const et=useRouteMatch(),{careplanId:tt,siteGroupIdx:rt,siteIdx:nt}=et.params,lt=useLocation().pathname,{setError:ut}=useErrorModalContext(),dt=useTheme$1(),{loading:pt,error:ht,data:mt}=useQuery(GET_CAREPLAN_SITE_GROUPS,{variables:{careplanId:tt}}),[xt,Mt]=reactExports.useState([]),[vt]=useMutation(DELETE_SITE_GROUP,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:tt}},{query:GET_CAREPLAN,variables:{id:tt}},{query:GET_PEER_REVIEW,variables:{careplanId:tt}}]});if(reactExports.useEffect(()=>{const Yt=document.getElementsByClassName("sidepanel-container active");!Yt||!Yt.length||(Yt[0].scrollIntoView({behavior:"smooth",block:"end",inline:"start"}),Yt[0].focus({preventScroll:!0}))}),reactExports.useEffect(()=>{if(ht)return ut()},[ht]),pt)return jsxRuntimeExports.jsx("div",{children:"Loading careplan sites list"});if(!mt)return jsxRuntimeExports.jsx("div",{});const{siteGroupsByCareplan:Ot}=mt;if(!Ot)return jsxRuntimeExports.jsx("div",{});const At=(Yt="0")=>{const Kt=[];return Ot.map(Jt=>Kt.push(Jt.siteSet)),Kt.reduce((Jt,Qt)=>Jt.concat(Qt),[])[Yt]},Rt=(Yt,Kt)=>lt.includes(CAREPLAN_PAGES.PRESCRIPTION)&&!lt.includes(CAREPLAN_PAGES.TEMPLATE_SELECTION)&&At(Yt).id===Kt?" active":"",zt=(Yt,Kt)=>{if(!lt.includes(CAREPLAN_PAGES.PRESCRIPTION)&&!lt.includes(CAREPLAN_PAGES.TEMPLATE_SELECTION)){let Jt=Yt||"0";if(Yt==="last"){const Qt=Ot;Jt=Qt?String(Qt.length-1):"0"}return Kt===Jt?" active":""}return""},Tt=(Yt,Kt)=>{const Jt=()=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{maxWidth:"270px",wordWrap:"normal",overflow:"hidden"},className:"title","data-testid":"delete-group-message",children:`Treatment group ${Yt} removed`}),jsxRuntimeExports.jsx("div",{style:{maxWidth:"270px",wordWrap:"normal",overflow:"hidden"},children:Kt.map((Qt,Bt)=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:[getSiteRepresentation(Qt),extractValueFromSite(Qt,"laterality")?`- ${extractValueFromSite(Qt,"laterality")}`:""].join(" ")},`${Bt}-notification-message`))})]});B$3.dark(jsxRuntimeExports.jsx(Jt,{}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,transition:F$2,progress:void 0})},Ct=Ot;let It="",Dt="",kt=0;const qt=(Yt,Kt,Jt,Qt)=>{const Bt=`sp-site-${Yt}-${Jt}`;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Tooltip,{arrow:!0,title:jsxRuntimeExports.jsx("div",{children:[getSiteRepresentation(Kt),extractValueFromSite(Kt,"laterality")?`- ${extractValueFromSite(Kt,"laterality")}`:""].join(" ")}),children:jsxRuntimeExports.jsx("div",{className:`sidepanel-container ${It||Qt}`,style:{borderLeft:It||Qt?`4px solid ${dt.palette.primary.main}`:"none"},children:jsxRuntimeExports.jsxs("div",{className:`sidepanel-site ${It||Qt}`,id:Bt,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[Qt&&jsxRuntimeExports.jsx(ArrowRightIcon$1,{color:"primary"}),[getSiteRepresentation(Kt),extractValueFromSite(Kt,"laterality")?`- ${extractValueFromSite(Kt,"laterality")}`:""].join(" ")]},Bt)})})})};if(!templatesWithValues(Ct).length)return jsxRuntimeExports.jsx(reactExports.Fragment,{});const Nt=jsxRuntimeExports.jsx("div",{className:"sidepanel-template-contents",children:templatesWithValues(Ct).length?templatesWithValues(Ct).map((Yt,Kt)=>{if(It=zt(rt,String(Kt)),xt.indexOf(Yt.id)!==-1)return jsxRuntimeExports.jsx(reactExports.Fragment,{},`frag-${Yt.id}`);if(kt=kt+1,Yt.name)return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{"data-testid":"sidepanel-template-title",className:`sidepanel-template-title ${It}`,children:[jsxRuntimeExports.jsxs("div",{"data-testid":"sidepanel-template-text",className:"sidepanel-template-text",children:[It&&jsxRuntimeExports.jsx(ArrowRightIcon$1,{color:"primary"}),jsxRuntimeExports.jsxs(Typography,{"data-testid":`sidepanel-template-title ${It}`,variant:"body1",children:["Treatment group ",kt]})]},`sidepanel-text-${Kt}`),lt.includes(CAREPLAN_PAGES.TEMPLATE_SELECTION)&&jsxRuntimeExports.jsx(DeleteOutline,{"data-testid":"delete-template",color:"error",className:"close",sx:{cursor:"pointer",":hover":{fillOpacity:.75}},onClick:()=>{const Jt=xt;Jt.push(Yt.id),Mt(Jt),Tt(kt,Yt.siteSet),vt({variables:{id:Yt.id}})}})]},`sidepanel-${Kt}`),Yt.siteSet.map((Jt,Qt)=>(Dt=Rt(nt,Jt.id),jsxRuntimeExports.jsx(reactExports.Fragment,{children:qt(Kt,Jt,Qt,Dt)},Qt)))]},`templates-with-values-${Kt}`);{const Jt=Yt&&Yt.siteSet[0];return Jt?(Dt=Rt(nt,Jt.id),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{"data-testid":"sidepanel-template-title",className:`sidepanel-template-title ${It}`,children:[jsxRuntimeExports.jsxs("div",{"data-testid":"sidepanel-template-text",className:"sidepanel-template-text",children:[It&&jsxRuntimeExports.jsx(ArrowRightIcon$1,{color:"primary"}),jsxRuntimeExports.jsxs(Typography,{"data-testid":`sidepanel-template-title ${It}`,variant:"body1",children:["Treatment group ",kt]})]},`sidepanel-text-${Kt}`),lt.includes(CAREPLAN_PAGES.TEMPLATE_SELECTION)&&jsxRuntimeExports.jsx(DeleteOutline,{"data-testid":"delete-template",color:"error",className:"close",sx:{cursor:"pointer",":hover":{fillOpacity:.75}},onClick:()=>{const Qt=xt;Qt.push(Yt.id),Mt(Qt),Tt(kt,Yt.siteSet),vt({variables:{id:Yt.id}})}})]},`sidepanel-${Kt}`),Yt.siteSet.map((Qt,Bt)=>(Dt=Rt(nt,Qt.id),jsxRuntimeExports.jsx(reactExports.Fragment,{children:qt(Kt,Qt,Bt,Dt)},Bt)))]},Yt.id)):jsxRuntimeExports.jsx("div",{})}}):jsxRuntimeExports.jsx("div",{className:"sidepanel-message",children:jsxRuntimeExports.jsx("span",{children:NO_TEMPLATES_MESSAGE})})});return jsxRuntimeExports.jsx(SidePanelItem,{title:"Treatment groups",topBorderColor:dt.palette.primary.main,children:Nt})},ROPatientCarePathDoseSummaryWidget=({selectedCareplan:et})=>{const{setError:tt}=useErrorModalContext(),rt=useRouteMatch(),nt=reactExports.useContext(TenantContext),{id:lt}=rt.params,[ut,dt]=reactExports.useState(0),{data:pt,loading:ht,error:mt}=useQuery(GET_DOSE_SITE_SUMMARIES,{variables:{patientId:lt},fetchPolicy:"cache-and-network"}),xt=useTheme$1();if(reactExports.useEffect(()=>{if(mt)return tt("NON_BLOCKING")},[mt]),reactExports.useEffect(()=>{if(!(!pt||(pt==null?void 0:pt.doseSiteSummaries.length)===0)){if(et){const Ot=pt.doseSiteSummaries.find(At=>getOTVCareplanName(At,nt)===et);if(Ot){const At=pt.doseSiteSummaries.indexOf(Ot);dt(At);return}}dt(0)}},[pt]),!pt&&ht)return jsxRuntimeExports.jsx(Stack$5,{sx:{width:"100%"},className:"px-0",children:jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading dose site summaries",relativeSpinner:!0})});let Mt=jsxRuntimeExports.jsx(GeneralError,{primaryText:"Unable to load dose site summaries.",secondaryText:`Please contact ${xt.custom.support}.`}),vt;if(pt){const Ot=pt.doseSiteSummaries.filter(Ct=>!Ct.isAria),At=pt.doseSiteSummaries.filter(Ct=>Ct.isAria),Rt=groupBy(At,"categorySiteGroup"),zt=Ot.length+Object.keys(Rt).length,Tt=Ct=>{dt(Ct%zt)};vt=zt?`${ut+1}/${zt}`:"",Mt=jsxRuntimeExports.jsx(RODoseSiteCarousel,{handleSelect:Tt,index:ut,mqDoses:Ot,ariaDoses:At,doseSize:zt})}return jsxRuntimeExports.jsx(SidePanelItem,{title:`Dose site summary ${vt}`,topBorderColor:xt.palette.primary.main,children:Mt})},ROPatientCarePathSidePanel=()=>jsxRuntimeExports.jsx("div",{className:"carepath-site-panel-component",children:jsxRuntimeExports.jsxs(ROSidePanel,{children:[jsxRuntimeExports.jsx(ROPatientCarePathDiagnosisWidget,{}),jsxRuntimeExports.jsx(ROPatientCarePathCarePlanSitesWidget,{}),jsxRuntimeExports.jsx(ROPeerReviewSidePanel,{}),CurrentAppConfig.DoseSiteSummary.enabled&&jsxRuntimeExports.jsx(ROPatientCarePathDoseSummaryWidget,{})]})}),StyledNavbarFooter=styled$1(Stack$5)`
  display: flex;
  flex-direction: row;
  border-top: 2px solid ${et=>et.theme.palette.primary.main};
  padding: 12px 16px;
  background: white;
  transition: box-shadow 0.15s ease-in-out;
`;class ROPatientCarePlanPageFooter extends reactExports.Component{render(){const{onReset:tt,onBack:rt,onNext:nt,onAdditionLeft:lt,onAdditionRight:ut,resetText:dt="Reset page",backText:pt="Back",backHidden:ht,nextText:mt="Continue",nextTextId:xt,additionLeftText:Mt="",additionLeftTextId:vt,additionRightText:Ot="",additionRightTextId:At,nextDisabled:Rt,backDisabled:zt,resetDisabled:Tt,nextHidden:Ct,resetHidden:It,additionRightDisabled:Dt,additionLeftDisabled:kt,nextLoading:qt,additionRightLoading:Nt,additionalLeftTooltip:Yt="",backButtonTooltip:Kt}=this.props;return jsxRuntimeExports.jsx("div",{className:"gc-navbar-footer-container",children:jsxRuntimeExports.jsxs(StyledNavbarFooter,{className:"gc-navbar-footer",gap:"4px",children:[jsxRuntimeExports.jsx("div",{className:"button-list",children:!It&&dt&&!!tt&&jsxRuntimeExports.jsx(Button,{size:"large",variant:"outlined","data-testid":"gc-reset-button",id:"gc-reset-button",onClick:tt,disabled:Tt,children:dt})}),jsxRuntimeExports.jsxs(Stack$5,{marginLeft:"auto",direction:"row",gap:2,children:[lt&&jsxRuntimeExports.jsx(Tooltip,{title:Yt,arrow:!0,children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(Button,{size:"large",variant:"outlined",disabled:kt,"data-testid":vt||"additional-left-text",id:vt||"additional-left-text",onClick:lt,children:Mt})})}),!ht&&jsxRuntimeExports.jsx(Tooltip,{title:Kt,arrow:!0,children:jsxRuntimeExports.jsx(Button,{size:"large",variant:"outlined",id:"footer-button-back","data-testid":"footer-button-back",onClick:rt,disabled:zt,children:pt})}),!Ct&&jsxRuntimeExports.jsx(Tooltip,{title:this.props.nextTooltip||"",arrow:!0,children:jsxRuntimeExports.jsx(LoadingButton,{size:"large",id:xt||"footer-button-continue","data-testid":"footer-button-continue",loading:qt,onClick:nt,variant:"contained",disabled:Rt,children:mt})}),!!ut&&jsxRuntimeExports.jsx(LoadingButton,{size:"large",id:At,"data-testid":At,loading:Nt,onClick:ut,disabled:Dt,variant:"contained",children:Ot})]})]})})}}const UPDATE_TREATMENTINFO=gql`
  mutation updateCareplan(
    $id: ID
    $readyForCareDate: String
    $intent: String
    $preferredTreatmentStartDate: String
    $startDateAdditionalInformation: String
    $treatingDepartment: String
    $previousRadioTreatment: String
    $patientStatus: String
    $priority: String
    $pregnancy: String
    $delayCategory: String
    $isDelayCategoryManual: Boolean
    $cied: String
    $ciedPatientDependancy: String
    $ciedLinacRequired: String
    $inPatientAt: String
    $ciedProtocolRequired: String
    $preTreatmentCiedCheckRequired: String
    $previousCompositePlanRequired: String
    $previousTreatmentAt: String
    $previousTreatmentAdditionalInformation: String
    $previousTreatmentRetreatment: String
    $previousTreatmentRetreatmentType: String
    $referralToGcCardiologist: String
    $otherCiedInstructions: String
    $cardioonc: String
    $endoscope: String
    $chemotherapy: String
    $chemoRegime: String
    $chemoWhere: String
    $customChemoWhere: String
    $chemoSequencing: String
    $chemoStartDate: String
    $chemoEndDate: String
    $hormones: String
    $hormonesRegime: String
    $hormonesStartDate: String
    $hormonesEndDate: String
    $previousMdt: String
    $brachytherapy: String
    $brachyWhere: String
    $brachySequencing: String
    $brachyDose: String
    $brachyStartDate: String
    $brachyEndDate: String
    $performanceScaleType: String
    $performanceScaleRating: String
    $chiefComplaint: String
    $impressionPlan: String
  ) {
    updateCareplan(
      id: $id
      readyForCareDate: $readyForCareDate
      intent: $intent
      preferredTreatmentStartDate: $preferredTreatmentStartDate
      startDateAdditionalInformation: $startDateAdditionalInformation
      treatingDepartment: $treatingDepartment
      previousRadioTreatment: $previousRadioTreatment
      patientStatus: $patientStatus
      pregnancy: $pregnancy
      priority: $priority
      cied: $cied
      ciedPatientDependancy: $ciedPatientDependancy
      ciedLinacRequired: $ciedLinacRequired
      delayCategory: $delayCategory
      isDelayCategoryManual: $isDelayCategoryManual
      inPatientAt: $inPatientAt
      ciedProtocolRequired: $ciedProtocolRequired
      preTreatmentCiedCheckRequired: $preTreatmentCiedCheckRequired
      previousTreatmentAdditionalInformation: $previousTreatmentAdditionalInformation
      previousCompositePlanRequired: $previousCompositePlanRequired
      previousTreatmentAt: $previousTreatmentAt
      previousTreatmentRetreatment: $previousTreatmentRetreatment
      previousTreatmentRetreatmentType: $previousTreatmentRetreatmentType
      referralToGcCardiologist: $referralToGcCardiologist
      otherCiedInstructions: $otherCiedInstructions
      cardioonc: $cardioonc
      endoscope: $endoscope
      chemotherapy: $chemotherapy
      chemoRegime: $chemoRegime
      chemoWhere: $chemoWhere
      customChemoWhere: $customChemoWhere
      chemoSequencing: $chemoSequencing
      chemoStartDate: $chemoStartDate
      chemoEndDate: $chemoEndDate
      hormones: $hormones
      hormonesRegime: $hormonesRegime
      hormonesStartDate: $hormonesStartDate
      hormonesEndDate: $hormonesEndDate
      previousMdt: $previousMdt
      brachytherapy: $brachytherapy
      brachyWhere: $brachyWhere
      brachySequencing: $brachySequencing
      brachyDose: $brachyDose
      brachyStartDate: $brachyStartDate
      brachyEndDate: $brachyEndDate
      performanceScaleType: $performanceScaleType
      performanceScaleRating: $performanceScaleRating
      chiefComplaint: $chiefComplaint
      impressionPlan: $impressionPlan
    ) {
      careplan {
        id
        readyForCareDate
        intent
        preferredTreatmentStartDate
        startDateAdditionalInformation
        treatingDepartment
        previousRadioTreatment
        pregnancy
        patientStatus
        priority
        cied
        ciedPatientDependancy
        ciedLinacRequired
        inPatientAt

        ciedProtocolRequired
        preTreatmentCiedCheckRequired
        previousCompositePlanRequired
        previousTreatmentAt
        previousTreatmentAdditionalInformation
        previousTreatmentRetreatment
        previousTreatmentRetreatmentType
        referralToGcCardiologist
        otherCiedInstructions
        cardioonc
        endoscope
        chemotherapy
        chemoRegime
        chemoWhere
        customChemoWhere
        chemoSequencing
        chemoStartDate
        chemoEndDate
        hormones
        hormonesRegime
        hormonesStartDate
        hormonesEndDate
        previousMdt
        brachytherapy
        brachyWhere
        brachySequencing
        brachyDose
        brachyStartDate
        brachyEndDate
        performanceScaleType
        performanceScaleRating
        chiefComplaint
        impressionPlan
      }
    }
  }
`,LOAD_TREATMENTINFO=gql`
  query careplan($id: ID!) {
    careplan(id: $id) {
      id
      readyForCareDate
      intent
      preferredTreatmentStartDate
      startDateAdditionalInformation
      treatingDepartment
      previousRadioTreatment
      patientStatus
      priority
      pregnancy
      delayCategory
      isDelayCategoryManual
      cied
      ciedPatientDependancy
      ciedLinacRequired
      inPatientAt
      ciedProtocolRequired
      preTreatmentCiedCheckRequired
      previousCompositePlanRequired
      previousTreatmentAt
      previousMdt
      previousTreatmentAdditionalInformation
      previousTreatmentRetreatment
      previousTreatmentRetreatmentType
      referralToGcCardiologist
      otherCiedInstructions
      cardioonc
      endoscope
      chemotherapy
      chemoRegime
      chemoWhere
      customChemoWhere
      chemoSequencing
      chemoStartDate
      chemoEndDate
      hormones
      hormonesRegime
      hormonesStartDate
      hormonesEndDate
      brachytherapy
      brachyWhere
      brachySequencing
      brachyDose
      brachyStartDate
      brachyEndDate
      performanceScaleType
      performanceScaleRating
      chiefComplaint
      impressionPlan
    }
  }
`,LOAD_TREATMENT_LIST_DATA=gql`
  query carepathDataReferenceList($listCategory: [String!]!, $patientId: ID) {
    carepathDataReferenceList(listCategory: $listCategory, patientId: $patientId) {
      id
      data {
        id
        option
      }
      listWeight
      category {
        id
        category
      }
    }
  }
`;gql`
  query patient($patientId: ID!) {
    patient(id: $patientId) {
      id
      fullName
      gender
      ida
      dob
      healthMedicareNumber
      secondaryPhone
      patientState
      primaryPhone
      address {
        id
        formattedAddress
      }
    }
  }
`;var define_import_meta_env_default={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let REACT_APP_BYPASS_HRO_FE_VALIDATION=define_import_meta_env_default.REACT_APP_BYPASS_HRO_FE_VALIDATION;const setReactAppValidation=et=>{REACT_APP_BYPASS_HRO_FE_VALIDATION=et},NULL_VALUES=["","null","None","NaN"],validationCandidates=(et,tt)=>tt.map(rt=>et[rt]),isValue=et=>typeof et=="object"&&et&&et.hasOwnProperty("isShown")&&et.hasOwnProperty("value"),extractValue=et=>isValue(et)?et.value:et,validateField=et=>{if(REACT_APP_BYPASS_HRO_FE_VALIDATION==="Y")return!0;if(Array.isArray(et))return!et.map(nt=>!!nt&&!NULL_VALUES.includes(nt)).includes(!1);const tt=extractValue(et);return!!tt&&!NULL_VALUES.includes(tt)},allFieldsValid=(et,tt)=>!validationCandidates(et,tt).map(rt=>validateField(rt)).includes(!1),isPageValid=(et,tt)=>REACT_APP_BYPASS_HRO_FE_VALIDATION==="Y"?!0:tt?!et.map(rt=>{const nt=rt.parent?tt[rt.parent]:null;if(!rt.parent&&!rt.expansionCondition)return allFieldsValid(tt,rt.children);if(rt.expansionCondition&&rt.expansionCondition(nt)===!1)return!0;const lt=rt.expansionCondition!==void 0&&rt.hasOwnProperty("expansionValue")&&rt.expansionCondition(nt)&&rt.expansionValue===extractValue(nt)||rt.expansionCondition!==void 0&&!rt.hasOwnProperty("expansionValue")&&rt.expansionCondition(nt),ut=extractValue(nt)!=rt.expansionValue;return lt?allFieldsValid(tt,rt.children):ut?!0:allFieldsValid(tt,rt.children)}).includes(!1):!1,CareplanContainer=({children:et,className:tt})=>{const rt=reactExports.useRef(null),{refYOverflowing:nt,refYScrollEnd:lt}=useOverflow(rt),ut=nt&&!lt;return jsxRuntimeExports.jsx("div",{ref:rt,className:`main-container create-careplan-page ${tt||""} ${ut?"create-careplan-page--scroll":""}`,children:et})},priorityTooltip=jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("b",{children:"Emergency"}),": aim 24hrs, accept 48 hours",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("b",{children:"Urgent"}),": within 3 working days, 5 days acceptable",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("b",{children:"Standard"}),":",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("li",{children:"Palliative: within 5 working days, 7 days acceptable"}),jsxRuntimeExports.jsx("li",{children:"Curative: within 5 working days, 10 days acceptable"}),jsxRuntimeExports.jsx("li",{children:"SABR: anything within working 10 days (i.e. 2 weeks)"}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("b",{children:"Note"}),": assume working days calculated from simulation date."]}),TooltipIcon=styled$1(SvgInfoCircleBlueIcon)`
  height: 16px;
  width: 16px;
  margin-left: 2px;
`,tooltipIconWrapper=et=>jsxRuntimeExports.jsx(Tooltip,{arrow:!0,title:et,children:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx(TooltipIcon,{})})}),validRcrCodeRanges=[{name:"H&N",diagnosis:[[0,14.9],[30,32.9]],morphology:[[8050,8084]]},{name:"Anus",diagnosis:[[21,21.8]],morphology:[[8050,8084]]},{name:"Oesophagus",diagnosis:[[15,16]],morphology:[[8050,8084],[8140,8430]]},{name:"Gynaecological",diagnosis:[[51,58]],morphology:[[8050,8084]]},{name:"Cutaneous",diagnosis:[[44,44.9]],morphology:[[8050,8084]]},{name:"Medullablastoma",diagnosis:[[72.8,72.8]],morphology:[[9470,9470]]},{name:"Breast Carcinoma",diagnosis:[[50,50.9]],morphology:[[8530,8530]]},{name:"Lung",diagnosis:[[34,34.9]],morphology:[[8050,8084],[8041,8041]]}],isRcrCodeInRange=(et,tt)=>validRcrCodeRanges.some(rt=>rt.diagnosis.some(nt=>et>=nt[0]&&et<=nt[1])&&rt.morphology.some(nt=>tt>=nt[0]&&tt<=nt[1])),ModalBodyContainer=styled$1("div")`
   {
    p {
      margin: 8px 0;
    }
    h2 {
      color: ${et=>et.theme.palette.primary.main};
      margin: 8px 0;
    }
    ul {
      margin-left: 0;
      list-style: none;
      li::before {
        margin-left: 0;
        content: '\\2022';
        width: 1em;
        font-size: 32px;
        font-weight: bold;
        vertical-align: middle;
        color: ${et=>et.theme.palette.primary.main};
      }
      li {
        margin-bottom: 8px;
      }
    }
  }
`,ModalBody=()=>jsxRuntimeExports.jsxs(ModalBodyContainer,{children:[jsxRuntimeExports.jsx("h2",{children:"Category 1: Radical intent with 5 fractions/week"}),jsxRuntimeExports.jsx("p",{children:"Where possible, there is to be no compromise to treatment scheduling, as prolongation of treatment affects outcomes."}),jsxRuntimeExports.jsx("p",{children:"Treatment duration must not be protracted, there is to be no increase in overall number of days to deliver the radiotherapy prescriptions such that the end date remains the same. Where this is not possible for significant patient and/or operational reasons, end date is to be within 2 days of the original prescription date."}),jsxRuntimeExports.jsx("p",{children:"Category 1 patients includes those with disease histology of SCC or with a known or probable harmful effect of treatment interruption:"}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsxs("ul",{children:[jsxRuntimeExports.jsx("li",{children:"SCC H&N"}),jsxRuntimeExports.jsx("li",{children:"SCC Anus"}),jsxRuntimeExports.jsx("li",{children:"Oesophagus (SCC and Adenocarcinoma)"}),jsxRuntimeExports.jsx("li",{children:"Lung cancer (SCLC and NSCLC)"}),jsxRuntimeExports.jsx("li",{children:"Gynaecological SCC (cervix, vagina, vulva, etc.)"}),jsxRuntimeExports.jsx("li",{children:"Cutaneous SCC (excluding wide field skin protocols)"}),jsxRuntimeExports.jsx("li",{children:"Meduloblastoma/PNET"}),jsxRuntimeExports.jsx("li",{children:"Inflammatory breast cancer"}),jsxRuntimeExports.jsx("li",{children:"Other tumours with short doubling time"})]})}),jsxRuntimeExports.jsx("p",{children:"Missed fraction(s) for Category 1 patients are to be made up by accelerating the remaining schedule or treating BID on another day(s), or working on an additional day in lieu of a public holiday (e.g. Easter, Christmas)"}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("h2",{children:"Category 2: Radical intent (other)"}),jsxRuntimeExports.jsx("p",{children:"There are reports that prolongation may not be deleterious, but no safe minimum has been established. Minimal compromise to treatment scheduling and treatment duration recommended – in these instances, overall treatment timeframe recommended not to be prolonged by more than 2 days acknowledging there will be more variability in Category 2 than Category 1 patients. This includes:"}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx("ul",{children:jsxRuntimeExports.jsx("li",{children:"All other radical intent tumours not listed in Category 1"})})}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("h2",{children:"Category 3: Palliative intent or benign treatment"}),jsxRuntimeExports.jsxs("p",{children:["Patients being treated with palliative intent or benign treatment. Overall time is less critical in achieving the desired outcome.",jsxRuntimeExports.jsx("br",{}),"In these instances:"]}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx("ul",{children:jsxRuntimeExports.jsxs("li",{children:["Prolonged interruptions ",">"," 7 days may require compensation"]})})})]}),REACT_APP_REGION$d=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,logger$r=new Logger("ROPatientDiagnosisSelectionPage"),LIST_OPTIONS$4={INTENT:"intent",TREATING_DEPARTMENT:"treatingDepartment",CHEMO_WHERE:"chemoWhere",CHEMO_SEQUENCING:"chemoSequencing",PREVIOUS_MDT:"previousMdt",BRACHY_WHERE:"brachyWhere",BRACHY_SEQUENCING:"brachySequencing"},StyledQuestionCircleIcon$1=styled$1(HelpOutline)`
  cursor: pointer;
`,region$8=REACT_APP_REGION$d;let pressedContinue$5=!1;const isFieldValid$5=(et,tt)=>pressedContinue$5?tt==="ciedLinacRequired"&&et==="yes"?!1:validateField(et):!0,filterListdata$1=(et,tt)=>[...et.carepathDataReferenceList.filter(rt=>rt.category.category===tt)].sort((rt,nt)=>rt.listWeight-nt.listWeight).map(rt=>({label:rt.data.option==="MRDRO"?"Murdoch":rt.data.option,value:rt.data.option})).sort((rt,nt)=>rt.value.localeCompare(nt.value)),previousURL=(et,tt,rt,nt,lt)=>{var ht;const ut=et.isPrimaryDiagnosis===!0?et:et.relatedPrimaryDiagnosis,dt=et.isPrimaryDiagnosis===!1?et:null;return ut&&ut.diagnosisCode&&ut.diagnosisCode.diagnosisCode&&codeToIntakePageMapping(ut.diagnosisCode.diagnosisCode,lt.intakePageMapping)!==""&&tt.isPrimDiagnosisOwner?`/radiation/patient/${rt}/careplan/${nt}/diagnosis/${et.id}/${CAREPLAN_PAGES.INTAKE}`:ut&&tt.isPrimDiagnosisOwner||dt&&tt.isMetsDiagnosisOwner||((ht=et.relatedPrimaryDiagnosis)==null?void 0:ht.draft)===!1?`/radiation/patient/${rt}/careplan/${nt}/diagnosis/${et.id}/${CAREPLAN_PAGES.STAGING}`:dt&&!tt.isMetsDiagnosisOwner?`/radiation/patient/${rt}/careplan/${nt}/diagnosis/${et.id}/metastasis`:ut&&!tt.isPrimDiagnosisOwner?`/radiation/patient/${rt}/careplan/${nt}/diagnosis/${et.id}/primary`:(logger$r.error("previousURL",["Treatment Info Page: Unable to determine the previous URL this user should be directed to.",et]),"")},ROPatientTreatmentInfoPage=()=>{var Xr,cn,Qr,rn;const{patientDetails:et}=reactExports.useContext(ROPatientContext),tt=useHistory(),rt=useRouteMatch(),[nt,lt]=reactExports.useState({chemoWhereOptions:[],intentOptions:[],chemoSequencingOptions:[],treatingDepartmentOptions:[],emdtOptions:[],brachyWhereOptions:[],brachySequencingOptions:[]}),[ut,dt]=reactExports.useState(!1),[pt,ht]=reactExports.useState(!1),{id:mt,careplanId:xt}=rt.params,[Mt,vt]=reactExports.useState(""),{data:Ot,error:At,loading:Rt}=useQuery(GET_DIAGNOSIS_FROM_CAREPLAN,{fetchPolicy:"network-only",variables:{careplanId:xt},onCompleted:_r=>{logMissingDiagnosisCode(logger$r,_r.careplan,"Treatment Info"),vt(_r.careplan.diagnosis.diagnosisCode.tumourStream.name)}}),{values:zt,setFieldValue:Tt}=useFormikContext(),{state:Ct}=reactExports.useContext(ROPatientCarePlanContext),It=(zt==null?void 0:zt.treatmentInfo)||{},[Dt,kt]=reactExports.useState(It==null?void 0:It.inPatient),[qt,Nt]=reactExports.useState(It==null?void 0:It.otherCiedInstructions),[Yt,Kt]=reactExports.useState(It==null?void 0:It.hormonesRegime),[Jt,Qt]=reactExports.useState(It==null?void 0:It.brachyDose),[Bt,Ft]=reactExports.useState(It==null?void 0:It.startDateAdditionalInformation),[$t,jt]=reactExports.useState(It==null?void 0:It.previousTreatmentAdditionalInformation),[Wt,Ut]=reactExports.useState(It==null?void 0:It.previousTreatmentAt),[Vt,Ht]=reactExports.useState(It==null?void 0:It.chemoRegime),[Gt,Zt]=reactExports.useState(It==null?void 0:It.customChemoWhere),[Xt,er]=reactExports.useState(It==null?void 0:It.chiefComplaint),[nr,or]=reactExports.useState(It==null?void 0:It.impressionPlan),[rr]=useMutation(UPDATE_TREATMENTINFO,{refetchQueries:[{query:LOAD_TREATMENTINFO,variables:{id:xt}},{query:GET_CAREPLAN,variables:{id:xt}}]}),[cr,ir]=reactExports.useState(null),dr=(et==null?void 0:et.patientState)==="SA",gr=["Benign","Gynae","H&N","Brain","Urogenital","Metastasis"].includes(Mt),br=Mt==="H&N",ar=CurrentAppConfig.TreatmentInfoPage.AuthorizedICDTreatingDepartments.includes(It.treatingDepartment),ur=[{parent:null,expansionValue:null,children:CurrentAppConfig.TreatmentInfoPage.mandatoryFields},{parent:null,expansionValue:null,expansionCondition:()=>CurrentAppConfig.TreatmentInfoPage.MDT,children:["previousMdt"]},{parent:null,expansionValue:null,expansionCondition:()=>region$8!==Region.US&&CurrentAppConfig.TreatmentInfoPage.DelayCategory,children:["delayCategory"]},{parent:"previousRadioTreatment",expansionValue:"yes",children:["previousCompositePlanRequired"]},{parent:"previousRadioTreatment",expansionValue:"yes",expansionCondition:()=>CurrentAppConfig.TreatmentInfoPage.PreviousTreatmentRetreatment,children:["previousTreatmentRetreatment"]},{parent:"previousTreatmentRetreatment",expansionValue:"yes",expansionCondition:()=>CurrentAppConfig.TreatmentInfoPage.PreviousTreatmentRetreatmentType,children:["previousTreatmentRetreatmentType"]},{parent:"cied",expansionValue:"cied",expansionCondition:()=>region$8===Region.UK,children:["ciedPatientDependancy","ciedLinacRequired"]},{parent:"cied",expansionValue:"yes",expansionCondition:()=>region$8===Region.AU,children:["ciedProtocolRequired"]},{parent:"cied",expansionValue:"icd",expansionCondition:()=>region$8===Region.UK&&!ar,children:["PREVENT_CONTINUE"]},{parent:"ciedPatientDependancy",expansionValue:null,expansionCondition:()=>region$8===Region.UK,children:[]},{parent:"ciedLinacRequired",expansionValue:"yes",expansionCondition:()=>region$8===Region.UK,children:["PREVENT_CONTINUE"]},{parent:null,expansionValue:null,expansionCondition:()=>dr,children:["cardioonc"]},{parent:null,expansionValue:null,expansionCondition:()=>dr&&br,children:["endoscope"]},{parent:"performanceScaleType",expansionValue:"ecog",children:["performanceScaleRating"]},{parent:"performanceScaleType",expansionValue:"kps",children:["performanceScaleRating"]}],{data:xr}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:xt}}),{loading:Mr,data:Ar}=useQuery(LOAD_TREATMENT_LIST_DATA,{variables:{listCategory:[LIST_OPTIONS$4.CHEMO_WHERE,LIST_OPTIONS$4.INTENT,LIST_OPTIONS$4.TREATING_DEPARTMENT,LIST_OPTIONS$4.CHEMO_SEQUENCING,LIST_OPTIONS$4.PREVIOUS_MDT,LIST_OPTIONS$4.BRACHY_WHERE,LIST_OPTIONS$4.BRACHY_SEQUENCING],patientId:mt},onCompleted:_r=>{const ln=filterListdata$1(_r,LIST_OPTIONS$4.CHEMO_SEQUENCING),vn=filterListdata$1(_r,LIST_OPTIONS$4.CHEMO_WHERE),Cr=filterListdata$1(_r,LIST_OPTIONS$4.INTENT),gn=filterListdata$1(_r,LIST_OPTIONS$4.TREATING_DEPARTMENT),xn=filterListdata$1(_r,LIST_OPTIONS$4.PREVIOUS_MDT),Vr=filterListdata$1(_r,LIST_OPTIONS$4.BRACHY_WHERE),fn=filterListdata$1(_r,LIST_OPTIONS$4.BRACHY_SEQUENCING),pn={...nt};pn.chemoWhereOptions=vn,pn.chemoSequencingOptions=ln,pn.intentOptions=Cr,pn.treatingDepartmentOptions=gn,pn.emdtOptions=xn,pn.brachyWhereOptions=Vr,pn.brachySequencingOptions=fn,lt(pn)},fetchPolicy:"cache-and-network"}),[,Ir]=reactExports.useState(),Rr=reactExports.useCallback(()=>Ir({}),[]);reactExports.useEffect(()=>{pressedContinue$5=!1},[]),reactExports.useEffect(()=>{const _r=document.getElementsByClassName("icon-form-error");_r&&_r.length>0?(_r[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),_r[0].focus({preventScroll:!0})):pressedContinue$5=!1});const[wr,qr]=reactExports.useState(""),[Hr,kr]=reactExports.useState(""),$r=(Xr=Ot==null?void 0:Ot.careplan)==null?void 0:Xr.diagnosis,yr=($r==null?void 0:$r.isPrimaryDiagnosis)===!0?$r:$r==null?void 0:$r.relatedPrimaryDiagnosis,Or=(cn=yr==null?void 0:yr.diagnosisCode)==null?void 0:cn.diagnosisCode,Dr=Number(Or==null?void 0:Or.substring(1)),Fr=Number((Qr=yr==null?void 0:yr.morphology)==null?void 0:Qr.code.substring(0,4)),Yr=isRcrCodeInRange(Dr,Fr),Gr=()=>It.intent==="Palliative"||!["C","D"].includes(Or==null?void 0:Or.charAt(0))?"Category 3":Yr?"Category 1":Fr?"Category 2":"";reactExports.useEffect(()=>{if(yr){const _r=Gr();_r!==(It==null?void 0:It.delayCategory)&&(!It.isDelayCategoryManual||_r!==""&&_r!==null)&&Zr({delayCategory:_r,isDelayCategoryManual:!1})}},[yr,It.intent]),reactExports.useEffect(()=>{Vt===void 0&&Ht(It==null?void 0:It.chemoRegime),Jt===void 0&&Qt(It==null?void 0:It.brachyDose),Gt===void 0&&Zt(It==null?void 0:It.customChemoWhere),Bt===void 0&&Ft(It==null?void 0:It.startDateAdditionalInformation),Wt===void 0&&Ut(It==null?void 0:It.previousTreatmentAt),$t===void 0&&jt(It==null?void 0:It.previousTreatmentAdditionalInformation),Dt===void 0&&kt(It==null?void 0:It.inPatientAt),qt===void 0&&Nt(It==null?void 0:It.otherCiedInstructions),Yt===void 0&&Kt(It==null?void 0:It.hormonesRegime),Xt===void 0&&er(It==null?void 0:It.chiefComplaint),nr===void 0&&or(It==null?void 0:It.impressionPlan)},[It]);const Jr=It&&(It!=null&&It.cardioonc?It==null?void 0:It.cardioonc:dr&&gr?"no":""),jr=It!=null&&It.endoscope?It==null?void 0:It.endoscope:dr&&br?"no":"";It&&(wr!==Jr||Hr!==jr)&&(qr(Jr),kr(jr),Tt("treatmentInfo.cardioonc",Jr),Tt("treatmentInfo.endoscope",jr),rr({variables:{id:xt,cardioonc:Jr,endoscope:jr}}));const Zr=_r=>{Object.keys(_r).forEach(vn=>Tt(`treatmentInfo.${vn}`,_r[vn])),rr({variables:{id:xt,..._r}})};return Mr&&!Ar?jsxRuntimeExports.jsx(LoadingSpinner,{}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsx(CareplanBanners,{data:xr,forceUpdate:()=>{Rr()},refetchQueriesList:[{query:GET_DIAGNOSIS_FROM_CAREPLAN,variables:{careplanId:xt}},{query:GET_CAREPLAN,variables:{id:xt}}]}),jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsx("div",{className:"page-header",children:jsxRuntimeExports.jsx(Typography,{variant:"h5",children:"Treatment Information"})}),jsxRuntimeExports.jsxs(Box,{component:"form",id:"treatmentInfoForm",noValidate:!0,children:[CurrentAppConfig.TreatmentInfoPage.ReadyForCareDate&&jsxRuntimeExports.jsx(RODatePicker,{id:"readyForCareDate",fieldlabel:"Ready for Care Date",value:It.readyForCareDate?dayjs(It.readyForCareDate):null,error:!isFieldValid$5(It.readyForCareDate),required:!0,onChange:(_r,ln)=>{if(ln.validationError){ir(ln.validationError);return}const vn=_r?dayjs(_r).format("YYYY-MM-DD"):"";Zr({readyForCareDate:vn})},onError:ir}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"intent",fieldlabel:"Intent",options:nt.intentOptions,value:getOptionByValue(nt.intentOptions.map(_r=>({label:_r.label,value:_r.value})),It.intent),inputProps:{error:!isFieldValid$5(It.intent),helperText:isFieldValid$5(It.intent)?"":"This field is required"},required:!0,onChange:_r=>{const ln=typeof _r=="string"?_r:_r==null?void 0:_r.value;Zr({intent:ln||""})}}),jsxRuntimeExports.jsx(RODatePicker,{id:"preferredTreatmentStartDate",disablePast:!0,value:It.preferredTreatmentStartDate?dayjs(It.preferredTreatmentStartDate):null,onChange:(_r,ln)=>{if(ln.validationError){ir(ln.validationError);return}const vn=_r?dayjs(_r).format("YYYY-MM-DD"):"";Zr({preferredTreatmentStartDate:vn})},onError:ir,fieldlabel:"Preferred Treatment Start Date"}),CurrentAppConfig.TreatmentInfoPage.AdditionalBookingInfo&&jsxRuntimeExports.jsx(ROTextField,{id:"startDateAdditionalInformation",fieldlabel:"Additional Booking Information",value:Bt,multiline:!0,maxRows:4,placeholder:"e.g. start treatment two weeks after Easter holidays",onChange:_r=>{Ft(_r.target.value)},onBlur:()=>{Zr({startDateAdditionalInformation:Bt})}}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatingDepartment",fieldlabel:"Treating Department",options:nt.treatingDepartmentOptions,value:getOptionByValue(nt.treatingDepartmentOptions.map(_r=>({label:_r.label,value:_r.value})),It.treatingDepartment),required:!0,onChange:_r=>{const ln=typeof _r=="string"?_r:_r==null?void 0:_r.value;Zr({treatingDepartment:ln||""})},inputProps:{error:!isFieldValid$5(It.treatingDepartment),helperText:isFieldValid$5(It.treatingDepartment)?"":"This field is required"}}),CurrentAppConfig.TreatmentInfoPage.MDT&&jsxRuntimeExports.jsx(ROAutocomplete,{id:"previousMdt",fieldlabel:"Has patient been through a MDT?",options:nt.emdtOptions,value:getOptionByValue(nt.emdtOptions.map(_r=>({label:_r.label,value:_r.value})),It.previousMdt),inputProps:{error:!isFieldValid$5(It.previousMdt),helperText:isFieldValid$5(It.treatingDepartment)?"":"This field is required"},required:!0,onChange:_r=>{const ln=typeof _r=="string"?_r:_r==null?void 0:_r.value;Zr({previousMdt:ln||""})}}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"previousRadioTreatment",fieldlabel:"Previous Radiotherapy Treatment",required:!0,options:CurrentAppConfig.QuestionOptions.previousRadioTreatment,value:It.previousRadioTreatment,error:!isFieldValid$5(It.previousRadioTreatment),handleChange:_r=>{Zr({previousRadioTreatment:_r,previousCompositePlanRequired:"",previousTreatmentAt:"",previousTreatmentAdditionalInformation:"",previousTreatmentRetreatment:""}),Ut(""),jt("")}}),It.previousRadioTreatment==="yes"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[CurrentAppConfig.TreatmentInfoPage.PreviousTreatmentRetreatmentType&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:"previousTreatmentRetreatment",fieldlabel:"Is this a retreatment?",required:!0,options:BOOLEAN_OPTIONS$3,value:It.previousTreatmentRetreatment,error:!isFieldValid$5(It.previousTreatmentRetreatment),handleChange:_r=>{Zr({previousTreatmentRetreatment:_r,previousTreatmentRetreatmentType:""})}}),It.previousTreatmentRetreatment==="yes"&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"previousTreatmentRetreatmentType",fieldlabel:"Retreatment Type",required:!0,options:RETREATMENT_OPTIONS,value:It.previousTreatmentRetreatmentType,error:!isFieldValid$5(It.previousTreatmentRetreatmentType),handleChange:_r=>{Zr({previousTreatmentRetreatmentType:_r})}})]}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"previousCompositePlanRequired",fieldlabel:"Is a Composite Plan Required",required:!0,options:BOOLEAN_OPTIONS$3,value:It.previousCompositePlanRequired,error:!isFieldValid$5(It.previousCompositePlanRequired),handleChange:_r=>{Zr({previousCompositePlanRequired:_r})}}),jsxRuntimeExports.jsx(ROTextField,{id:"previousTreatmentAt",fieldlabel:"Previous Treatment Centre & Date",placeholder:"Please specify centre & year if known",value:Wt,onChange:_r=>{Ut(_r.target.value)},onBlur:()=>{Zr({previousTreatmentAt:Wt})}}),jsxRuntimeExports.jsx(ROTextField,{id:"previousTreatmentAdditionalInformation",fieldlabel:"Additional Information",placeholder:"e.g. composite dose information",value:$t,onChange:_r=>{jt(_r.target.value)},onBlur:()=>{Zr({previousTreatmentAdditionalInformation:$t})}})]}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"patientStatus",fieldlabel:"Patient Status",options:PATIENT_STATUS_OPTIONS,value:It.patientStatus?It.patientStatus:CurrentAppConfig.DefaultValue.patientStatus,handleChange:_r=>{Zr({patientStatus:_r,inPatientAt:""}),kt("")}}),It.patientStatus==="inPatient"&&jsxRuntimeExports.jsx(ROTextField,{id:"inPatientAt",placeholder:"In patient at..",value:Dt,onChange:_r=>{kt(_r.target.value)},onBlur:()=>{Zr({inPatientAt:Dt})}}),CurrentAppConfig.TreatmentInfoPage.DelayCategory&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"delayCategory",fieldlabel:"RCR Treatment Delay Priority",required:!0,error:!isFieldValid$5(It.delayCategory,"delayCategory"),options:DELAY_CATEGORY_OPTIONS,value:It.delayCategory?It.delayCategory:"Not Applicable",handleChange:_r=>{Zr({delayCategory:_r,isDelayCategoryManual:!0})},tooltip:jsxRuntimeExports.jsx(StyledQuestionCircleIcon$1,{color:"info",fontSize:"small",onClick:()=>{dt(!0)}})}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"priority",fieldlabel:CurrentAppConfig.Tooltips.hasPriority?"Treatment Start Priority":"Priority",options:PRIORITY_OPTIONS,value:It.priority?It.priority:"standard",handleChange:_r=>{Zr({priority:_r})},tooltip:CurrentAppConfig.Tooltips.hasPriority?tooltipIconWrapper(priorityTooltip):void 0}),et&&et.patientGender!==Gender.MALE&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"pregnancy",fieldlabel:"Pregnancy",options:BOOLEAN_UNKNOWN_OPTIONS,value:It.pregnancy?It.pregnancy:"Unknown",error:!It.pregnancy,handleChange:_r=>{Zr({pregnancy:_r})}}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"cied",fieldlabel:CurrentAppConfig.QuestionLabel.CIED,options:CurrentAppConfig.QuestionOptions.CIED,value:It.cied,error:It.cied==="icd"&&!ar||!isFieldValid$5(It.cied,"CIED"),warning:It.cied==="yes"&&region$8!==Region.UK,helperText:It.cied==="yes"&&region$8!==Region.UK?"Warning: Patient has Cardiac Implantable Electronic Device (CIED)":It.cied==="icd"&&!ar?"The patient cannot be treated at GenesisCare, as per the ICD protocol.":void 0,handleChange:_r=>{const ln=_r!=="yes"?CurrentAppConfig.ResetMutationVariableDefaults.CIED:CurrentAppConfig.GetMutationVariableDefaults.CIED;Zr({cied:_r,...ln}),Nt("")},required:!0}),It.cied==="yes"&&region$8!==Region.UK&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:"ciedProtocolRequired",fieldlabel:"CIED Protocol Required",options:BOOLEAN_OPTIONS$3,required:!0,value:It.ciedProtocolRequired,error:!isFieldValid$5(It.ciedProtocolRequired),handleChange:_r=>{const ln=_r!=="yes"?CurrentAppConfig.ResetMutationVariableDefaults.CiedProtocolRequired:CurrentAppConfig.GetMutationVariableDefaults.CiedProtocolRequired;Zr({ciedProtocolRequired:_r,...ln})}}),It.cied==="yes"&&It.ciedProtocolRequired==="yes"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:"preTreatmentCiedCheckRequired",fieldlabel:"Pre-treatment CIED Check Required",options:BOOLEAN_OPTIONS$3,value:It.preTreatmentCiedCheckRequired,required:!0,error:!isFieldValid$5(It.preTreatmentCiedCheckRequired),handleChange:_r=>{Zr({preTreatmentCiedCheckRequired:_r})}}),CurrentAppConfig.CardioReferralField&&It.ciedProtocolRequired==="yes"&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"referralToGcCardiologist",fieldlabel:"Referral to GC Cardiologist",options:BOOLEAN_OPTIONS$3,value:It.referralToGcCardiologist?It.referralToGcCardiologist:"no",error:!isFieldValid$5(It.referralToGcCardiologist),handleChange:_r=>{Zr({referralToGcCardiologist:_r})}}),It.ciedProtocolRequired==="yes"&&jsxRuntimeExports.jsx(ROTextField,{id:"otherCiedInstructions",fieldlabel:"Other CIED Instructions",value:qt,onChange:_r=>{Nt(_r.target.value)},onBlur:()=>{Zr({otherCiedInstructions:qt})}})]})]}),It.cied==="cied"&&region$8===Region.UK&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:"ciedPatientDependancy",fieldlabel:"Is patient dependent on CIED?",options:BOOLEAN_OPTIONS$3,value:It.ciedPatientDependancy,required:!0,error:!isFieldValid$5(It.ciedPatientDependancy,"ciedPatientDependency"),handleChange:_r=>{Zr({ciedPatientDependancy:_r})}}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"ciedPatientLinac",fieldlabel:"Will patient be treated on MR Linac?",options:BOOLEAN_OPTIONS$3,value:It.ciedLinacRequired,required:!0,error:!isFieldValid$5(It.ciedLinacRequired,"ciedLinacRequired")||It.ciedLinacRequired==="yes",helperText:It.ciedLinacRequired==="yes"?"The patient cannot be treated at GenesisCare, as per the CIED protocol.":It.ciedLinacRequired==="no"?"Please send Pacing Report to GenesisCare.":void 0,info:It.ciedLinacRequired==="no",handleChange:_r=>{Zr({ciedLinacRequired:_r})}})]}),dr&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"cardioonc",fieldlabel:"CardioOnc Referral Required",error:!isFieldValid$5(wr),required:!0,options:BOOLEAN_OPTIONS$3,value:It.cardioonc?It.cardioonc:gr?"no":"",handleChange:_r=>{Zr({cardioonc:_r})}}),dr&&br&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"endoscope",fieldlabel:"Endoscope Required",error:!isFieldValid$5(Hr),required:!0,options:BOOLEAN_OPTIONS$3,value:It.endoscope?It.endoscope:"no",handleChange:_r=>{Zr({endoscope:_r})}}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"chemotherapy",fieldlabel:"Chemotherapy",options:BOOLEAN_UNKNOWN_OPTIONS,value:It.chemotherapy?It.chemotherapy:"Unknown",handleChange:_r=>{Zr({chemotherapy:_r,chemoRegime:"",chemoWhere:"",customChemoWhere:"",chemoSequencing:"",chemoStartDate:"",chemoEndDate:""}),Zt("")}}),It.chemotherapy==="yes"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROTextField,{id:"chemoRegime",fieldlabel:"Chemo Regime",value:Vt,onChange:_r=>{Ht(_r.target.value)},onBlur:()=>{Zr({chemoRegime:Vt})}}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"chemoWhere",fieldlabel:"Chemo Where",options:nt.chemoWhereOptions,value:getOptionByValue(nt.chemoWhereOptions.map(_r=>({label:_r.label,value:_r.value})),It.chemoWhere),onChange:_r=>{const ln=typeof _r=="string"?_r:_r==null?void 0:_r.value;Zr({chemoWhere:ln||"",customChemoWhere:""}),Zt("")}}),It.chemoWhere&&It.chemoWhere.toLowerCase()==="other"&&jsxRuntimeExports.jsx(ROTextField,{id:"customChemoWhere",fieldlabel:"Specify Chemo Where",value:Gt,onChange:_r=>{Zt(_r.target.value)},onBlur:()=>{Zr({customChemoWhere:Gt})}}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"chemoSequencing",fieldlabel:"Chemo Sequencing",options:nt.chemoSequencingOptions,value:getOptionByValue(nt.chemoSequencingOptions.map(_r=>({label:_r.label,value:_r.value})),It.chemoSequencing),onChange:_r=>{const ln=typeof _r=="string"?_r:_r==null?void 0:_r.value;Zr({chemoSequencing:ln||""})}}),jsxRuntimeExports.jsx(RODatePicker,{id:"chemoStartDate",fieldlabel:"Chemo Start Date",value:It.chemoStartDate?dayjs(It.chemoStartDate):null,maxDate:dayjs(It.chemoEndDate),onChange:(_r,ln)=>{if(ln.validationError){ir(ln.validationError);return}const vn=_r?dayjs(_r).format("YYYY-MM-DD"):"";Zr({chemoStartDate:vn})},onError:ir}),jsxRuntimeExports.jsx(RODatePicker,{id:"chemoEndDate",fieldlabel:"Chemo End Date",value:It.chemoEndDate?dayjs(It.chemoEndDate):null,minDate:dayjs(It.chemoStartDate),onChange:(_r,ln)=>{if(ln.validationError){ir(ln.validationError);return}const vn=_r?dayjs(_r).format("YYYY-MM-DD"):"";Zr({chemoEndDate:vn})},onError:ir})]}),CurrentAppConfig.TreatmentInfoPage.Hormones&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"hormones",fieldlabel:"Hormones",options:BOOLEAN_UNKNOWN_OPTIONS,value:It.hormones||"unknown",handleChange:_r=>{Zr({hormones:_r,hormonesRegime:"",hormonesStartDate:"",hormonesEndDate:""}),Kt("")}}),CurrentAppConfig.TreatmentInfoPage.Hormones&&It.hormones==="yes"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROTextField,{id:"hormonesRegime",fieldlabel:"Hormones Regime",value:Yt,onChange:_r=>{Kt(_r.target.value)},onBlur:()=>{Zr({hormonesRegime:Yt})}}),jsxRuntimeExports.jsx(RODatePicker,{id:"hormonesStartDate",fieldlabel:"Hormones Start Date",value:It.hormonesStartDate?dayjs(It.hormonesStartDate):null,maxDate:dayjs(It.hormonesEndDate),onChange:(_r,ln)=>{if(ln.validationError){ir(ln.validationError);return}const vn=_r?dayjs(_r).format("YYYY-MM-DD"):"";Zr({hormonesStartDate:vn})},onError:ir}),jsxRuntimeExports.jsx(RODatePicker,{id:"hormonesEndDate",fieldlabel:"Hormones End Date",value:It.hormonesEndDate?dayjs(It.hormonesEndDate):null,minDate:dayjs(It.hormonesStartDate),onChange:(_r,ln)=>{if(ln.validationError){ir(ln.validationError);return}const vn=_r?dayjs(_r).format("YYYY-MM-DD"):"";Zr({hormonesEndDate:vn})},onError:ir})]}),CurrentAppConfig.TreatmentInfoPage.Brachytherapy&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"brachytherapy",fieldlabel:"Brachytherapy",options:BOOLEAN_UNKNOWN_OPTIONS,value:It.brachytherapy?It.brachytherapy:"unknown",handleChange:_r=>{Zr({brachytherapy:_r,brachyWhere:"",brachySequencing:"",brachyDose:"",brachyStartDate:"",brachyEndDate:""}),Qt("")}}),CurrentAppConfig.TreatmentInfoPage.Brachytherapy&&It.brachytherapy==="yes"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROAutocomplete,{id:"brachyWhere",fieldlabel:"Brachy Where",options:nt.brachyWhereOptions,value:getOptionByValue(nt.brachyWhereOptions.map(_r=>({label:_r.label,value:_r.value})),It.brachyWhere),onChange:_r=>{const ln=typeof _r=="string"?_r:_r==null?void 0:_r.value;Zr({brachyWhere:ln||""})}}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"brachySequencing",fieldlabel:"Brachy Sequencing",options:nt.brachySequencingOptions,value:getOptionByValue(nt.brachySequencingOptions.map(_r=>({label:_r.label,value:_r.value})),It.brachySequencing),onChange:_r=>{const ln=typeof _r=="string"?_r:_r==null?void 0:_r.value;Zr({brachySequencing:ln||""})}}),jsxRuntimeExports.jsx(ROTextField,{id:"brachyDose",fieldlabel:"Brachy Dose",value:Jt,onChange:_r=>{Qt(_r.target.value)},onBlur:()=>{Zr({brachyDose:Jt})}}),jsxRuntimeExports.jsx(RODatePicker,{id:"brachyStartDate",fieldlabel:"Brachy Start Date",value:It.brachyStartDate?dayjs(It.brachyStartDate):null,maxDate:dayjs(It.brachyEndDate),onChange:(_r,ln)=>{if(ln.validationError){ir(ln.validationError);return}const vn=_r?dayjs(_r).format("YYYY-MM-DD"):"";Zr({brachyStartDate:vn})},onError:ir}),jsxRuntimeExports.jsx(RODatePicker,{id:"brachyEndDate",fieldlabel:"Brachy End Date",value:It.brachyEndDate?dayjs(It.brachyEndDate):null,minDate:dayjs(It.brachyStartDate),onChange:(_r,ln)=>{if(ln.validationError){ir(ln.validationError);return}const vn=_r?dayjs(_r).format("YYYY-MM-DD"):"";Zr({brachyEndDate:vn})},onError:ir})]}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"performanceScaleType",fieldlabel:"Performance Status",options:SCALE_OPTIONS,value:It.performanceScaleType,handleChange:_r=>{Zr({performanceScaleType:_r||"",performanceScaleRating:null})}}),["ecog","kps"].includes(It.performanceScaleType)?jsxRuntimeExports.jsx(ROAutocomplete,{id:"performanceScaleRating",fieldlabel:It.performanceScaleType==="ecog"?"ECOG":"Karnofsky",options:It.performanceScaleType==="ecog"?ECOG_PERFORMANCE_STATUS_OPTIONS:KPS_PERFORMANCE_STATUS_OPTIONS,value:It.performanceScaleRating,required:!0,onChange:_r=>{const ln=typeof _r=="string"?_r:_r==null?void 0:_r.value;Zr({performanceScaleRating:ln||""})},inputProps:{error:!isFieldValid$5(It.performanceScaleRating),helperText:isFieldValid$5(It.performanceScaleRating)?"":"This field is required"},tooltip:It.performanceScaleType==="kps"?jsxRuntimeExports.jsx(StyledQuestionCircleIcon$1,{color:"info",fontSize:"small",onClick:()=>{ht(!0)}}):void 0}):null,CurrentAppConfig.TreatmentInfoPage.ccip&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROTextField,{id:"chiefComplaint",fieldlabel:"Chief Complaint",value:Xt,onChange:_r=>{er(_r.target.value)},onBlur:()=>{Zr({chiefComplaint:Xt})},minRows:4,maxRows:8,multiline:!0}),jsxRuntimeExports.jsx(ROTextField,{id:"impressionPlan",fieldlabel:"Impression/Plan",value:nr,onChange:_r=>{or(_r.target.value)},onBlur:()=>{Zr({impressionPlan:nr})},minRows:4,maxRows:8,multiline:!0})]})]})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{const _r=previousURL($r,Ot==null?void 0:Ot.careplan,mt,xt,Ct);_r!==""&&tt.push(_r)},onNext:()=>{pressedContinue$5=!0,Rr(),isPageValid(ur,It)&&(cr||tt.push(`/radiation/patient/${mt}/careplan/${xt}/templateSelection`))},nextDisabled:!xt,backDisabled:!Ot||Ot&&(!Ot.careplan.diagnosis.isPrimaryDiagnosis||!Ot.careplan.isPrimDiagnosisOwner)&&((rn=Ot==null?void 0:Ot.careplan)==null?void 0:rn.careplanStatus)!=="DRAFT",backButtonId:"treatment-info-back-button",backButtonTooltip:region$8!==Region.UK&&!Rt&&!At&&!(Ot!=null&&Ot.careplan.diagnosis.isPrimaryDiagnosis)?"If you would like to edit the submitted 'Metastasis' diagnosis, please update in Mosaiq (This feature is coming soon)":""})]}),jsxRuntimeExports.jsx(ROPatientCarePathSidePanel,{})]}),jsxRuntimeExports.jsx(StandardDialog,{open:pt,maxWidth:"xl",onClose:()=>{ht(!1)},showDividers:!0,title:"Karnofsky Performance Status Scale Definitions Rating (%) Criteria",children:jsxRuntimeExports.jsx(TableContainer$6,{children:jsxRuntimeExports.jsxs(Table$3,{children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsxs(TableRow$7,{children:[jsxRuntimeExports.jsx(TableCell,{width:"45%",children:"Ability Level"}),jsxRuntimeExports.jsx(TableCell,{width:"10%",children:"Rating (%)"}),jsxRuntimeExports.jsx(TableCell,{width:"45%",children:"Criteria"})]})}),jsxRuntimeExports.jsx(TableBody$2,{children:KPS_PERFORMANCE_STATUS_OPTIONS.map(({label:_r},ln)=>{const vn=_r.split(" - ")[0],Cr=_r.split(" - ")[1];let gn=0,xn="";return ln===0?(gn=KARNOFSKY_ABILITY_LEVELS[0].rowSpan,xn=KARNOFSKY_ABILITY_LEVELS[0].abilityLevel):ln===3?(gn=KARNOFSKY_ABILITY_LEVELS[1].rowSpan,xn=KARNOFSKY_ABILITY_LEVELS[1].abilityLevel):ln===7&&(gn=KARNOFSKY_ABILITY_LEVELS[2].rowSpan,xn=KARNOFSKY_ABILITY_LEVELS[2].abilityLevel),jsxRuntimeExports.jsxs(TableRow$7,{children:[xn?jsxRuntimeExports.jsx(TableCell,{rowSpan:gn,children:xn}):null,jsxRuntimeExports.jsx(TableCell,{children:vn}),jsxRuntimeExports.jsx(TableCell,{children:Cr})]},_r)})})]})})}),jsxRuntimeExports.jsx(StandardDialog,{maxWidth:"lg",open:ut,onClose:dt,showDividers:!0,title:"RCR Treatment Delay Categories of Priority",children:jsxRuntimeExports.jsx(ModalBody,{})})]})},renderSelectedDiagnosis=et=>{const tt=useTheme$1();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{paddingTop:2,variant:"body1",children:"Selected Diagnosis"}),et.map((rt,nt)=>{const lt=`${rt.type}-diagnosis`;return jsxRuntimeExports.jsx(Tooltip,{componentsProps:{tooltip:{sx:{minWidth:"250px",lineHeight:"1.2rem"}}},title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{children:[rt.type," diagnosis:"]}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("span",{children:[rt.code," ",rt.name," ",rt.description&&rt.description||"-"]})]}),arrow:!0,children:jsxRuntimeExports.jsxs(Typography,{color:tt.palette.text.secondary,variant:"body2",id:lt,whiteSpace:"break-spaces",children:[rt.type,": ",rt.code," ",rt.name]})},`${rt.code}-${nt}`)})]})},isCpot$1=et=>et==="cpot",ROStepperSummary=({status:et,statusText:tt,diagnosisCodeSet:rt})=>{const{pathname:nt}=window.location,lt=nt.split("/"),ut=lt.includes("diagnosis")?lt.indexOf("diagnosis")+1:null,dt=ut?lt[ut]:null;return jsxRuntimeExports.jsxs(Stack$5,{padding:2,paddingBottom:1,children:[jsxRuntimeExports.jsx(Typography,{paddingBottom:.5,variant:"body1",children:"Careplan Status"}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",padding:"2px 0",children:[jsxRuntimeExports.jsx(CareplanStatusBubble,{status:et}),jsxRuntimeExports.jsx(Typography,{variant:"body2",textTransform:"capitalize","data-testid":"careplan-status-text",sx:{textWrap:"wrap"},children:isCpot$1(tt)?"Change prescription on treatment":tt})]}),nt.includes("diagnosis")&&dt!=="create"&&rt&&renderSelectedDiagnosis(rt)]})},{DX_LANDING_PG:DX_LANDING_PG$1}=RoCarePlanPages,INITIAL_RO_CAREPLAN_CONTEXT={page:DX_LANDING_PG$1,primaryOrMetastasis:"primary",careplanId:"create",diagnosisId:"0",activeSiteIdx:0,activeSiteGroupIdx:0,setPage:et=>{},setPageState:(et,tt)=>{},resetForm:()=>{},newDiagnosis:!1},ROCareplanContext=reactExports.createContext(INITIAL_RO_CAREPLAN_CONTEXT),isCpot=et=>et==="cpot",showSpecialPhysicsConsultPage=CurrentAppConfig.SpecialPhysicsConsultVisible,pageMap={[RoCarePlanPages.DX_LANDING_PG]:CAREPLAN_PAGES.CREATE,[RoCarePlanPages.DX_NEW_DIAGNOSIS_PG]:CAREPLAN_PAGES.DIAGNOSIS_A,[RoCarePlanPages.DX_SELECT_DIAGNOSIS_PG]:CAREPLAN_PAGES.DIAGNOSIS_B,[RoCarePlanPages.DX_STAGING_PG]:CAREPLAN_PAGES.STAGING,[RoCarePlanPages.DX_INTAKE_PG]:CAREPLAN_PAGES.INTAKE,[RoCarePlanPages.CP_TREATMENT_INFO_PG]:CAREPLAN_PAGES.TREATMENT_INFO,[RoCarePlanPages.CP_CAREPLAN_SELECTION_PG]:CAREPLAN_PAGES.TEMPLATE_SELECTION,[RoCarePlanPages.CP_SITESETUP_PG]:CAREPLAN_PAGES.SITESETUP,[RoCarePlanPages.TM_SIMULATION_PG]:CAREPLAN_PAGES.SIMULATION,[RoCarePlanPages.TM_PRESCRIPTION_PG]:CAREPLAN_PAGES.PRESCRIPTION,[RoCarePlanPages.TM_VOLUMING_PG]:CAREPLAN_PAGES.VOLUMING,[RoCarePlanPages.TM_SUBMISSION_PG]:CAREPLAN_PAGES.SUBMISSION},mapPathToStep=et=>{switch(et){case CAREPLAN_PAGES.CREATE:return RoCarePlanPages.DX_LANDING_PG;case CAREPLAN_PAGES.DIAGNOSIS_A:return RoCarePlanPages.DX_NEW_DIAGNOSIS_PG;case CAREPLAN_PAGES.DIAGNOSIS_B:return RoCarePlanPages.DX_SELECT_DIAGNOSIS_PG;case CAREPLAN_PAGES.STAGING:return RoCarePlanPages.DX_STAGING_PG;case CAREPLAN_PAGES.INTAKE:return RoCarePlanPages.DX_INTAKE_PG;case CAREPLAN_PAGES.TREATMENT_INFO:return RoCarePlanPages.CP_TREATMENT_INFO_PG;case CAREPLAN_PAGES.TEMPLATE_SELECTION:return RoCarePlanPages.CP_CAREPLAN_SELECTION_PG;case CAREPLAN_PAGES.SITESETUP:return RoCarePlanPages.CP_SITESETUP_PG;case CAREPLAN_PAGES.SIMULATION:return RoCarePlanPages.TM_SIMULATION_PG;case CAREPLAN_PAGES.VOLUMING:return RoCarePlanPages.TM_VOLUMING_PG;case CAREPLAN_PAGES.PRESCRIPTION:return RoCarePlanPages.TM_PRESCRIPTION_PG;case CAREPLAN_PAGES.SPECIAL_PHYSICS_CONSULT:return RoCarePlanPages.TM_SPECIAL_PHYSICS_CONSULT;case CAREPLAN_PAGES.SUBMISSION:return showSpecialPhysicsConsultPage?RoCarePlanPages.TM_SUBMISSION_PG_US:RoCarePlanPages.TM_SUBMISSION_PG;default:return RoCarePlanPages.DX_LANDING_PG}},ROStepperSteps=({steps:et,previousUrl:tt,disabled:rt,isExistingDiagnosis:nt,patientId:lt,careplanId:ut,diagnosisId:dt,statusText:pt})=>{const ht=tt.endsWith(CAREPLAN_PAGES.INTAKE),mt=tt.endsWith(CAREPLAN_PAGES.STAGING),xt=reactExports.useContext(ROCareplanContext),Mt=useTheme$1(),vt=useHistory(),Ot=At=>{const Rt=`/radiation/patient/${lt}/careplan/${ut}/`;return At===CAREPLAN_PAGES.CREATE?`${Rt}diagnosis/${dt}/${CAREPLAN_PAGES.DIAGNOSIS_A}/${CAREPLAN_PAGES.DIAGNOSIS_B}`:[CAREPLAN_PAGES.STAGING,CAREPLAN_PAGES.INTAKE].includes(At)?`${Rt}diagnosis/${dt}/${At}`:Rt+At};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et.map((At,Rt)=>{const zt=Object.values(CAREPLAN_PAGES).map(Nt=>window.location.pathname.includes(Nt)?Nt:null).filter(Boolean),Tt=mapPathToStep(zt[0]||"1"),Ct=Number(isNaN(Number(Tt))?Tt.substring(0,Tt.length-1):Tt),It=Ct===At.idx,Dt=Ct?Ct>At.idx:!1,qt=(()=>{const Nt=At.page===RoCarePlanPages.DX_INTAKE_PG&&!ht,Yt=At.page===RoCarePlanPages.DX_STAGING_PG&&!(ht||mt),Kt=nt&&At.idx<=Number(RoCarePlanPages.DX_INTAKE_PG),Jt=isCpot(pt)&&At.idx<Number(RoCarePlanPages.TM_SIMULATION_PG);return Ct<At.idx||Jt||Kt||Nt||Yt||rt})();return jsxRuntimeExports.jsx("div",{style:{background:It?"white":"transparent",borderLeft:`5px solid ${It?Mt.palette.primary.main:"transparent"}`,borderRadius:"4px 0 0 4px",cursor:qt?"not-allowed":"pointer"},"data-testid":`nav-step-${At.page}${qt?"-disabled":""}`,onClick:()=>{if(qt||It)return;const Nt={...pageMap,...showSpecialPhysicsConsultPage?{[RoCarePlanPages.TM_SPECIAL_PHYSICS_CONSULT]:CAREPLAN_PAGES.SPECIAL_PHYSICS_CONSULT,[RoCarePlanPages.TM_SUBMISSION_PG_US]:CAREPLAN_PAGES.SUBMISSION}:{}};if(At.page in Nt){const Yt=Ot({...Nt}[At.page]);xt.setPage(At.page),vt.push(Yt)}},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:"8px",sx:{borderRadius:"0 4px 4px 0",padding:"8px",background:It?Mt.palette.secondary.light:"inherit"},children:[Dt?jsxRuntimeExports.jsx(Check,{color:"primary","data-testid":`nav-step-${At.page}-complete`,sx:{backgroundColor:Mt.palette.primary.contrastText,backgroundSize:"24px",border:`2px solid ${Mt.palette.primary.main}`,borderRadius:"16px",color:Mt.palette.primary.main}}):jsxRuntimeExports.jsx(Typography,{variant:"body2",style:{background:Mt.palette.primary.main,color:Mt.palette.primary.contrastText,width:"24px",height:"24px",border:`2px solid ${Mt.palette.primary.main}`,lineHeight:"20px",borderRadius:"100%",textAlign:"center"},children:Ct<=At.idx?At.idx:null}),jsxRuntimeExports.jsx(Typography,{textTransform:"capitalize",variant:"body1","data-testid":`nav-step-text-${At.page}${It?"-current":""}`,children:At.text})]})},At.idx)})})},{DX_LANDING_PG,DX_STAGING_PG,DX_INTAKE_PG,CP_TREATMENT_INFO_PG,CP_CAREPLAN_SELECTION_PG,CP_SITESETUP_PG,TM_SIMULATION_PG,TM_PRESCRIPTION_PG,TM_VOLUMING_PG,TM_SUBMISSION_PG,TM_SUBMISSION_PG_US,TM_SPECIAL_PHYSICS_CONSULT}=RoCarePlanPages,ROPatientDiagnosisSteps=et=>{var Tt,Ct,It;const{id:tt,careplanId:rt}=et.match.params,{values:nt}=useFormikContext(),{state:lt}=reactExports.useContext(ROPatientCarePlanContext),ut=CurrentAppConfig.SpecialPhysicsConsultVisible,dt=nt==null?void 0:nt.diagnosis,pt=[{key:"dx",steps:[{idx:1,text:"Diagnosis selection",page:DX_LANDING_PG},{idx:2,text:"Staging",page:DX_STAGING_PG},{idx:3,text:"Intake information",page:DX_INTAKE_PG}]},{key:"cp",steps:[{idx:4,text:"Treatment information",page:CP_TREATMENT_INFO_PG},{idx:5,text:"Careplan selection",page:CP_CAREPLAN_SELECTION_PG},{idx:6,text:"Site setup",page:CP_SITESETUP_PG}]},{key:"tx",steps:[{idx:7,text:"Simulation",page:TM_SIMULATION_PG},{idx:8,text:"Prescription",page:TM_PRESCRIPTION_PG},{idx:9,text:"Voluming",page:TM_VOLUMING_PG},...ut?[{idx:10,text:"Special Physics Consult",page:TM_SPECIAL_PHYSICS_CONSULT}]:[],{idx:ut?11:10,text:"Submission",page:ut?TM_SUBMISSION_PG_US:TM_SUBMISSION_PG}]}],ht=getDiagnosisCode(dt),{data:mt,error:xt}=useQuery(GET_CAREPLAN,{variables:{id:rt},skip:rt==="create",fetchPolicy:"cache-and-network"}),Mt=((Tt=mt==null?void 0:mt.careplan)==null?void 0:Tt.careplanStatus)||"DRAFT",vt=Mt==null?void 0:Mt.replace("_"," ").toLowerCase(),{setError:Ot}=useErrorModalContext();reactExports.useEffect(()=>{const Dt=document.getElementsByClassName("timeline-item current");!Dt||!Dt.length||(Dt[0].scrollIntoView({behavior:"smooth",block:"end",inline:"start"}),Dt[0].focus({preventScroll:!0}))});const At=!!dt&&(!(dt!=null&&dt.isPrimaryDiagnosis)||!((Ct=mt==null?void 0:mt.careplan)!=null&&Ct.isPrimDiagnosisOwner))&&Mt!=="DRAFT",Rt=dt&&mt?previousURL(dt,mt==null?void 0:mt.careplan,tt,rt,lt):"",zt=((It=mt==null?void 0:mt.careplan)==null?void 0:It.changeType)==="CPOT"&&Mt==="PRESCRIPTION";return xt?Ot():jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(ROStepperSummary,{status:Mt,statusText:vt,diagnosisCodeSet:ht}),pt.map((Dt,kt)=>jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"8px 0"}}),jsxRuntimeExports.jsx(ROStepperSteps,{careplanId:rt,patientId:tt,diagnosisId:dt==null?void 0:dt.id,steps:Dt.steps,isExistingDiagnosis:At,previousUrl:Rt,disabled:zt,statusText:vt})]},kt))]})},ROPatientDiagnosisSteps$1=withRouter(ROPatientDiagnosisSteps),POSITIVE_NEGATIVE_UNKNOWN_OPTIONS=[{value:"Positive",label:"Positive"},{value:"Negative",label:"Negative"},{value:"Unknown",label:"Unknown"}],SMOKING_HISTORY_OPTIONS=[{value:"Current Smoker",label:"Current Smoker"},{value:"Previous Smoker",label:"Previous Smoker"},{value:"Never Smoked",label:"Never Smoked"},{value:"Unknown",label:"Unknown"}],YES_NO_OPTIONS=[{value:"Yes",label:"Yes"},{value:"No",label:"No"}],INVOLVED_UNINVOLVED_OPTIONS=[{value:"Involved",label:"Involved"},{value:"Uninvolved",label:"Uninvolved"}],PNI_TYPE_OPTIONS=[{value:"Minor",label:"Minor"},{value:"Major (0.5mm diameter) or named nerve",label:"Major (0.5mm diameter) or named nerve"},{value:"Intracranial",label:"Intracranial"}],YES_NO_UNKNOWN_OPTIONS=[{value:"Yes",label:"Yes"},{value:"No",label:"No"},{value:"Unknown",label:"Unknown"}],YES_NO_NOTAPPLICABLE_OPTIONS=[{value:"Yes",label:"Yes"},{value:"No",label:"No"},{value:"Not Applicable",label:"Not Applicable"}],GRADE_OPTIONS=[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"Unknown",label:"Unknown"}],WEIGHT_LOSS_OPTIONS=[{value:">10%",label:">10%"},{value:"<10%",label:"<10%"},{value:"Unkown",label:"Unknown"}],LYMPHOMA_STAGE_OPTIONS=[{label:"1 - Involvement of a single lymph node region* or lymphoid structure",value:"Involvement of a single lymph node region* or lymphoid structure"},{label:"2 - Involvement of two or more lymph node regions,* or localised involvement of one extranodal site and one or lymph node regions, all on the same side of the diaphragm",value:"Involvement of two or more lymph node regions,* or localised involvement of one extranodal site and one or lymph node regions, all on the same side of the diaphragm"},{label:"3 - Involvement of lymph node regions* or structures on both sides of the diaphragm",value:"Involvement of lymph node regions* or structures on both sides of the diaphragm"},{label:"4 - Diffuse or disseminated involvement of one or more extralymphatic organs, OR isolated extralymphatic organ involvement without adjacent regional lymph node involvement, but with disease in distant site(s), OR any involvement of the liver, bone marrow, pleura or CSF",value:"Diffuse or disseminated involvement of one or more extralymphatic organs, OR isolated extralymphatic organ involvement without adjacent regional lymph node involvement, but with disease in distant site(s), OR any involvement of the liver, bone marrow, pleura or CSF"},{label:"Unknown",value:"Unknown"}],A_B_SYMPTOMS_OPTIONS=[{value:"A",label:"A"},{value:"B",label:"B"},{value:"Unknown",label:"Unknown"}],PSMA_OPTIONS=[{value:"Positive",label:"Positive"},{value:"Negative",label:"Negative"},{value:"Not Done",label:"Not Done"}],POSITIVE_SITE_OPTIONS=[{value:"Local",label:"Local"},{value:"Pelvic Nodal",label:"Pelvic Nodal"},{value:"Distant",label:"Distant"}],EXTRANODAL_OPTIONS=[{value:"Yes - E",label:"Yes - E"},{value:"Not Applicable",label:"Not Applicable"},{value:"Unknown",label:"Unknown"}],BULK_DISEASE_OPTIONS=[{value:"Yes",label:"Yes"},{value:"No",label:"No"},{value:"Unknown",label:"Unknown"}],SURGERY_OPTIONS=[{value:"Breast conserving",label:"Breast conserving"},{value:"Mastectomy",label:"Mastectomy"},{value:"Biopsy only",label:"Biopsy only"},{value:"None",label:"None"}],EXTENT_LVI_OPTIONS=[{value:"Extensive",label:"Extensive"},{value:"Focal",label:"Focal"},{value:"Unknown",label:"Unknown"}],RECONSTRUCTION_TIMELINE_OPTIONS=[{value:"Immediate",label:"Immediate"},{value:"Delayed",label:"Delayed"},{value:"None",label:"None"}],RECONSTRUCTION_IMMEDIATE_SURGERY_OPTIONS=[{value:"Autologous",label:"Autologous"},{value:"Implant only",label:"Implant only"}],RECONSTRUCTION_DELAYED_SURGERY_OPTIONS=[{value:"Yes",label:"Yes"},{value:"No",label:"No"}],VALUE_REQUIRED$1="This field is required",absymptomsTooltip=jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("b",{children:"A"})," - Absence of constitutional symptoms ",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("b",{children:"B"})," - Constitutional symptoms: fever (>38°C), drenching sweats, weight loss (10% body weight over 6 months)"]}),extranodalTooltip=jsxRuntimeExports.jsx("div",{children:"Involvement of a single, extranodal site contiguous or proximal to a known nodal site (Stages I to III; additional extranodal involvement is stage IV)"}),bulkDiseaseTooltip=jsxRuntimeExports.jsx("div",{children:"One or more site of disease of >10cm diameter, or mediastinal widening to >1/3 of the chest width on chest X-ray"}),GLEASON_LEVEL_OPTIONS=[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"}],getIntakeISUPGrade=(et,tt)=>{const rt=+et+ +tt;let nt="1";return rt===7&&+et<+tt?nt="2":rt===7&&+et>+tt?nt="3":rt===8?nt="4":rt>=9&&(nt="5"),nt},surgeryTooltip={header:"Surgery",body:"<b>Breast conserving surgery includes:</b> Partial Mastectomy, Lumpectomy, Mammoplasty, MLE, Breast Conservation and Quadrantectomy."},oncoplasticSurgeryTooltip={header:"Oncoplastic Surgery",body:"Removal of the breast cancer using plastic surgical techniques to reconstruct the defect produced when the cancer is removed. <br/>Examples include: Mammoplasty, Mastopexy, Fat grafting."},radialMarginStatusTooltip={header:"Radial Margin Status",body:"Radial margin is the distance measure perpendicularly from the tumour to the margin of specimen.</br></br><b>Positive margin:</b> Tumour at the inked margin</br><b>Negative margin:</b> No ink on the tumour</br></br>Do not include deep and superficial."},lymphovascularInvasionTooltip={header:"Lymphovascular Invasion",body:"Tumour cells present within a definite endothelial-lined space (either lymphatic or blood vessels) in the area surrounding invasive carcinoma and includes dermal lymphovascular invasion."},reconstructionTooltip={header:"Reconstruction",body:"<b>Immediate:</b> Breast reconstruction done at the same surgery as the mastectomy</br><b>Delayed:</b> Breast reconstruction at any time other than the same surgery as the mastectomy</br><b>None:</b> Breast reconstruction has not been completed</br>"},EcogMovedTooltip=()=>jsxRuntimeExports.jsx(Stack$5,{margin:"-10px 0 10px 290px",children:jsxRuntimeExports.jsx(ROHelperText,{id:"ecogTooltip",info:!0,helperText:"ECOG has been moved to the Treatment Information page."})}),LOAD_CAREPLAN_LIST_DATA=gql`
  query carepathDataReferenceList($listCategory: [String!]!, $patientId: ID) {
    carepathDataReferenceList(listCategory: $listCategory, patientId: $patientId) {
      id
      data {
        id
        option
      }
      listWeight
      category {
        id
        category
      }
    }
  }
`,DEFAULT_OPTION$1=[{label:"",value:""}],filterListdata=(et,tt)=>et?[...et.carepathDataReferenceList.filter(lt=>lt.category.category==tt)].sort((lt,ut)=>lt.listWeight-ut.listWeight).map(lt=>({label:lt.data.option,value:lt.data.option})):[],ROPatientDiagnosisIntakeHNPage=({updateIntakeHandler:et,setDateError:tt})=>{var zt;const{values:rt,touched:nt,setFieldValue:lt}=useFormikContext(),ut=useRouteMatch(),{id:dt}=ut.params,{setError:pt}=useErrorModalContext(),[ht,mt]=reactExports.useState([]),[xt,Mt]=reactExports.useState([]),[vt,Ot]=reactExports.useState([]),{loading:At,error:Rt}=useQuery(LOAD_CAREPLAN_LIST_DATA,{variables:{listCategory:"headNeckIntakeTNM",patientId:dt},onCompleted:Tt=>{const Ct=filterListdata(Tt,"headNeckIntakeTNM"),It=Ct.filter(qt=>qt.value.startsWith("T")),Dt=Ct.filter(qt=>qt.value.startsWith("N")),kt=Ct.filter(qt=>qt.value.startsWith("M"));mt(It.map(qt=>({label:qt.label,value:qt.value}))),Mt(Dt.map(qt=>({label:qt.label,value:qt.value}))),Ot(kt.map(qt=>({label:qt.label,value:qt.value})))}});if(reactExports.useEffect(()=>{if(Rt)return pt()},[Rt]),At)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Intake",subtitle:"Please wait while we set things up for you"});if((zt=rt.intake)!=null&&zt.headAndNeck){const{p16:Tt,smokingHistory:Ct,stageTCode:It,stageNCode:Dt,stageMCode:kt,cigarettesPerDay:qt,yearsSmoked:Nt,packYears:Yt,dateOfSurgery:Kt,extracapsularExtension:Jt,margins:Qt,marginsMeasurement:Bt,periNeuralInvasion:Ft,pniType:$t,patientDiscussedAtMdt:jt,treatmentConsistentMdt:Wt}=rt.intake.headAndNeck,Ut=["Current","Previous"].some(Ht=>Ct==null?void 0:Ct.includes(Ht)),Vt=(Ht,Gt)=>{if(Ht&&Gt){const Zt=Math.round(Number(Ht/20*Gt)*10)/10;et({cigarettesPerDay:Ht,yearsSmoked:Gt,packYears:Zt})}else et({cigarettesPerDay:Ht,yearsSmoked:Gt,packYears:null})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Field,{name:"p16",component:ROToggleButtons,id:"P16",fieldlabel:"P16",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:Tt,handleChange:Ht=>{et(Ht!=="Positive"?{p16:Ht,stageTCode:null,stageNCode:null,stageMCode:null}:{p16:Ht})},error:getIn$1(nt,"p16")&&!Tt,required:!0}),Tt==="Positive"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"AJCC V7"}),jsxRuntimeExports.jsxs(ChildSectionWrapper,{children:[jsxRuntimeExports.jsx(Field,{name:"stageTCode",component:ROAutocomplete,id:"stageTCode",fieldlabel:"T Stage",placeholder:SEARCH_DROPDOWN_PLACEHOLDER$1,options:ht,value:getOptionByValue(ht,It||null),onChange:Ht=>{et({stageTCode:Ht.value})}}),jsxRuntimeExports.jsx(Field,{name:"stageNCode",component:ROAutocomplete,id:"stageNCode",fieldlabel:"N Stage",placeholder:SEARCH_DROPDOWN_PLACEHOLDER$1,options:xt,value:getOptionByValue(xt,Dt||null),onChange:Ht=>{et({stageNCode:Ht.value})}}),jsxRuntimeExports.jsx(Field,{name:"stageMCode",component:ROAutocomplete,id:"stageMCode",fieldlabel:"M Stage",placeholder:SEARCH_DROPDOWN_PLACEHOLDER$1,options:vt,value:getOptionByValue(vt,kt||null),onChange:Ht=>{et({stageMCode:Ht.value})}})]})]}),jsxRuntimeExports.jsx(Field,{name:"smokingHistory",component:ROToggleButtons,id:"smokingHistory",fieldlabel:"Smoking History",options:SMOKING_HISTORY_OPTIONS,value:Ct,handleChange:Ht=>{if(Ht==="Never Smoked"||Ht==="Unknown"){et({smokingHistory:Ht,cigarettesPerDay:null,yearsSmoked:null,packYears:null});return}et({smokingHistory:Ht})},error:getIn$1(nt,"smokingHistory")&&!Ct,required:!0}),Ut&&jsxRuntimeExports.jsxs(ChildSectionWrapper,{children:[jsxRuntimeExports.jsx(Field,{name:"cigarettesPerDay",component:ROTextField,id:"cigarettesPerDay",fieldlabel:"No. of Cigarettes Per Day",value:qt?Number(qt).toString():"",onChange:Ht=>{lt("intake.headAndNeck.cigarettesPerDay",Number(Ht.target.value))},onBlur:()=>{Vt(qt,Nt)},InputProps:{endAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:"Per Day"})},fullWidth:!1}),jsxRuntimeExports.jsx(Field,{name:"yearsSmoked",component:ROTextField,id:"yearsSmoked",fieldlabel:"Over How Many Year(s)",value:Nt?Number(Nt).toString():"",onChange:Ht=>{lt("intake.headAndNeck.yearsSmoked",Number(Ht.target.value))},onBlur:()=>{Vt(qt,Nt)},InputProps:{endAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:"Year(s)"})},fullWidth:!1}),jsxRuntimeExports.jsx(Field,{name:"packYears",component:ROTextField,id:"packYears",fieldlabel:"Pack Years",value:Yt==null?void 0:Yt.toString(),disabled:!0,fullWidth:!1})]}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"32px 0"}}),jsxRuntimeExports.jsx(RODatePicker,{id:"dateOfSurgery",fieldlabel:"Date of Surgery",disableFuture:!0,value:Kt?dayjs(Kt):null,onChange:(Ht,Gt)=>{if(Gt.validationError)tt(Gt.validationError),Gt.validationError==="maxDate"&&et({dateOfSurgery:Ht?Ht.format("YYYY-MM-DD").toString():""});else{const Zt=Ht?Ht.format("YYYY-MM-DD").toString():"";et({dateOfSurgery:Ht?Zt:""})}},onError:tt}),jsxRuntimeExports.jsx(Field,{name:"extracapsularExtension",component:ROToggleButtons,id:"extracapsularExtension",fieldlabel:"Extracapsular Extension (ECE)",options:YES_NO_OPTIONS,value:Jt,handleChange:Ht=>{et({extracapsularExtension:Ht})}}),jsxRuntimeExports.jsx(Field,{name:"margins",component:ROToggleButtons,id:"margins",fieldlabel:"Margins",options:INVOLVED_UNINVOLVED_OPTIONS,value:Qt,handleChange:Ht=>{if(Ht!=="Involved"){et({margins:Ht,marginsMeasurement:null});return}et({margins:Ht})}}),Qt==="Involved"&&jsxRuntimeExports.jsx(ChildSectionWrapper,{children:jsxRuntimeExports.jsx(Field,{name:"marginsMeasurement",component:ROTextField,id:"marginsMeasurement",fieldlabel:"Measurement",value:Bt?Number(Bt).toString():"",onChange:Ht=>{et({marginsMeasurement:Number(Ht.target.value)})},InputProps:{endAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:"mm"})},fullWidth:!1})}),jsxRuntimeExports.jsx(Field,{name:"periNeuralInvasion",component:ROToggleButtons,id:"periNeuralInvasion",fieldlabel:"Peri Neural Invasion - Skin H&N",options:YES_NO_OPTIONS,value:Ft,handleChange:Ht=>{if(Ht!=="Yes"){et({periNeuralInvasion:Ht,pniType:null});return}et({periNeuralInvasion:Ht})}}),Ft==="Yes"&&jsxRuntimeExports.jsx(ChildSectionWrapper,{children:jsxRuntimeExports.jsx(Field,{name:"pniType",component:ROAutocomplete,id:"pniType",fieldlabel:"PNI Type",placeholder:SEARCH_DROPDOWN_PLACEHOLDER$1,options:PNI_TYPE_OPTIONS,value:getOptionByValue(PNI_TYPE_OPTIONS,$t||null),onChange:Ht=>{et({pniType:Ht.value})}})}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"32px 0"}}),jsxRuntimeExports.jsx(Field,{name:"patientDiscussedAtMdt",component:ROToggleButtons,id:"patientDiscussedAtMdt",fieldlabel:"Patient discussed at MDT",options:YES_NO_OPTIONS,value:jt,handleChange:Ht=>{et({patientDiscussedAtMdt:Ht})}}),jsxRuntimeExports.jsx(Field,{name:"treatmentConsistentMdt",component:ROToggleButtons,id:"treatmentConsistentMdt",fieldlabel:"Treatment consistent with MDT recommendations",options:YES_NO_OPTIONS,value:Wt,handleChange:Ht=>{et({treatmentConsistentMdt:Ht})}})]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:" "})};/* @preserve
* @terraformer/wkt - v2.2.0 - MIT
* Copyright (c) 2012-2024 Environmental Systems Research Institute, Inc.
* Wed May 15 2024 14:35:51 GMT-0700 (Pacific Daylight Time)
*/var o=function(tt,rt,nt,lt){for(nt=nt||{},lt=tt.length;lt--;nt[tt[lt]]=rt);return nt},$V0=[1,9],$V1=[1,10],$V2=[1,11],$V3=[1,12],$V4=[1,13],$V5=[1,14],$V6=[1,15],$V7=[1,60],$V8=[5,15,19],$V9=[1,67],$Va=[1,73],$Vb=[1,87],$Vc=[1,104],$Vd=[15,19],$Ve=[1,110],$Vf=[1,116],$Vg=[1,130],$Vh=[1,136],parser={trace:function(){},yy:{},symbols_:{error:2,expressions:3,point:4,EOF:5,linestring:6,polygon:7,multipoint:8,multilinestring:9,multipolygon:10,geometrycollection:11,coordinate:12,DOUBLE_TOK:13,ptarray:14,COMMA:15,ring_list:16,ring:17,"(":18,")":19,POINT:20,Z:21,ZM:22,M:23,EMPTY:24,point_untagged:25,polygon_list:26,polygon_untagged:27,point_list:28,LINESTRING:29,POLYGON:30,MULTIPOINT:31,MULTILINESTRING:32,MULTIPOLYGON:33,geometry:34,geometry_collection:35,GEOMETRYCOLLECTION:36,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",13:"DOUBLE_TOK",15:"COMMA",18:"(",19:")",20:"POINT",21:"Z",22:"ZM",23:"M",24:"EMPTY",29:"LINESTRING",30:"POLYGON",31:"MULTIPOINT",32:"MULTILINESTRING",33:"MULTIPOLYGON",36:"GEOMETRYCOLLECTION"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[12,2],[12,3],[12,4],[14,3],[14,1],[16,3],[16,1],[17,3],[4,4],[4,5],[4,5],[4,5],[4,2],[25,1],[25,3],[26,3],[26,1],[27,3],[28,3],[28,1],[6,4],[6,5],[6,5],[6,5],[6,2],[7,4],[7,5],[7,5],[7,5],[7,2],[8,4],[8,5],[8,5],[8,5],[8,2],[9,4],[9,5],[9,5],[9,5],[9,2],[10,4],[10,5],[10,5],[10,5],[10,2],[34,1],[34,1],[34,1],[34,1],[34,1],[34,1],[34,1],[35,3],[35,1],[11,4],[11,5],[11,5],[11,5],[11,2]],performAction:function(tt,rt,nt,lt,ut,dt,pt){var ht=dt.length-1;switch(ut){case 1:case 2:case 3:case 4:case 5:case 6:case 7:return dt[ht-1];case 8:this.$=new PointArray([Number(dt[ht-1]),Number(dt[ht])]);break;case 9:this.$=new PointArray([Number(dt[ht-2]),Number(dt[ht-1]),Number(dt[ht])]);break;case 10:this.$=new PointArray([Number(dt[ht-3]),Number(dt[ht-2]),Number(dt[ht-1]),Number(dt[ht])]);break;case 11:case 26:this.$=dt[ht-2].addPoint(dt[ht]);break;case 12:case 21:case 27:case 53:case 54:case 55:case 56:case 57:case 58:case 59:this.$=dt[ht];break;case 13:this.$=dt[ht-2].addRing(dt[ht]);break;case 14:this.$=new RingList(dt[ht]);break;case 15:this.$=new Ring(dt[ht-1]);break;case 16:this.$={type:"Point",coordinates:dt[ht-1].data[0]};break;case 17:this.$={type:"Point",coordinates:dt[ht-1].data[0],properties:{z:!0}};break;case 18:this.$={type:"Point",coordinates:dt[ht-1].data[0],properties:{z:!0,m:!0}};break;case 19:this.$={type:"Point",coordinates:dt[ht-1].data[0],properties:{m:!0}};break;case 20:this.$={type:"Point",coordinates:[]};break;case 22:case 25:this.$=dt[ht-1];break;case 23:this.$=dt[ht-2].addPolygon(dt[ht]);break;case 24:this.$=new PolygonList(dt[ht]);break;case 28:this.$={type:"LineString",coordinates:dt[ht-1].data};break;case 29:this.$={type:"LineString",coordinates:dt[ht-1].data,properties:{z:!0}};break;case 30:this.$={type:"LineString",coordinates:dt[ht-1].data,properties:{m:!0}};break;case 31:this.$={type:"LineString",coordinates:dt[ht-1].data,properties:{z:!0,m:!0}};break;case 32:this.$={type:"LineString",coordinates:[]};break;case 33:this.$={type:"Polygon",coordinates:dt[ht-1].toJSON()};break;case 34:this.$={type:"Polygon",coordinates:dt[ht-1].toJSON(),properties:{z:!0}};break;case 35:this.$={type:"Polygon",coordinates:dt[ht-1].toJSON(),properties:{m:!0}};break;case 36:this.$={type:"Polygon",coordinates:dt[ht-1].toJSON(),properties:{z:!0,m:!0}};break;case 37:this.$={type:"Polygon",coordinates:[]};break;case 38:this.$={type:"MultiPoint",coordinates:dt[ht-1].data};break;case 39:this.$={type:"MultiPoint",coordinates:dt[ht-1].data,properties:{z:!0}};break;case 40:this.$={type:"MultiPoint",coordinates:dt[ht-1].data,properties:{m:!0}};break;case 41:this.$={type:"MultiPoint",coordinates:dt[ht-1].data,properties:{z:!0,m:!0}};break;case 42:this.$={type:"MultiPoint",coordinates:[]};break;case 43:this.$={type:"MultiLineString",coordinates:dt[ht-1].toJSON()};break;case 44:this.$={type:"MultiLineString",coordinates:dt[ht-1].toJSON(),properties:{z:!0}};break;case 45:this.$={type:"MultiLineString",coordinates:dt[ht-1].toJSON(),properties:{m:!0}};break;case 46:this.$={type:"MultiLineString",coordinates:dt[ht-1].toJSON(),properties:{z:!0,m:!0}};break;case 47:this.$={type:"MultiLineString",coordinates:[]};break;case 48:this.$={type:"MultiPolygon",coordinates:dt[ht-1].toJSON()};break;case 49:this.$={type:"MultiPolygon",coordinates:dt[ht-1].toJSON(),properties:{z:!0}};break;case 50:this.$={type:"MultiPolygon",coordinates:dt[ht-1].toJSON(),properties:{m:!0}};break;case 51:this.$={type:"MultiPolygon",coordinates:dt[ht-1].toJSON(),properties:{z:!0,m:!0}};break;case 52:this.$={type:"MultiPolygon",coordinates:[]};break;case 60:this.$=dt[ht-2].addGeometry(dt[ht]);break;case 61:this.$=new GeometryList(dt[ht]);break;case 62:this.$={type:"GeometryCollection",geometries:dt[ht-1].toJSON()};break;case 63:this.$={type:"GeometryCollection",geometries:dt[ht-1].toJSON(),properties:{z:!0}};break;case 64:this.$={type:"GeometryCollection",geometries:dt[ht-1].toJSON(),properties:{m:!0}};break;case 65:this.$={type:"GeometryCollection",geometries:dt[ht-1].toJSON(),properties:{z:!0,m:!0}};break;case 66:this.$={type:"GeometryCollection",geometries:[]};break}},table:[{3:1,4:2,6:3,7:4,8:5,9:6,10:7,11:8,20:$V0,29:$V1,30:$V2,31:$V3,32:$V4,33:$V5,36:$V6},{1:[3]},{5:[1,16]},{5:[1,17]},{5:[1,18]},{5:[1,19]},{5:[1,20]},{5:[1,21]},{5:[1,22]},{18:[1,23],21:[1,24],22:[1,25],23:[1,26],24:[1,27]},{18:[1,28],21:[1,29],22:[1,31],23:[1,30],24:[1,32]},{18:[1,33],21:[1,34],22:[1,36],23:[1,35],24:[1,37]},{18:[1,38],21:[1,39],22:[1,41],23:[1,40],24:[1,42]},{18:[1,43],21:[1,44],22:[1,46],23:[1,45],24:[1,47]},{18:[1,48],21:[1,49],22:[1,51],23:[1,50],24:[1,52]},{18:[1,53],21:[1,54],22:[1,56],23:[1,55],24:[1,57]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{12:59,13:$V7,14:58},{18:[1,61]},{18:[1,62]},{18:[1,63]},o($V8,[2,20]),{12:66,13:$V7,18:$V9,25:65,28:64},{18:[1,68]},{18:[1,69]},{18:[1,70]},o($V8,[2,32]),{16:71,17:72,18:$Va},{18:[1,74]},{18:[1,75]},{18:[1,76]},o($V8,[2,37]),{12:66,13:$V7,18:$V9,25:65,28:77},{18:[1,78]},{18:[1,79]},{18:[1,80]},o($V8,[2,42]),{16:81,17:72,18:$Va},{18:[1,82]},{18:[1,83]},{18:[1,84]},o($V8,[2,47]),{18:$Vb,26:85,27:86},{18:[1,88]},{18:[1,89]},{18:[1,90]},o($V8,[2,52]),{4:93,6:94,7:95,8:96,9:97,10:98,11:99,20:$V0,29:$V1,30:$V2,31:$V3,32:$V4,33:$V5,34:92,35:91,36:$V6},{18:[1,100]},{18:[1,101]},{18:[1,102]},o($V8,[2,66]),{15:$Vc,19:[1,103]},o($Vd,[2,12]),{13:[1,105]},{12:59,13:$V7,14:106},{12:59,13:$V7,14:107},{12:59,13:$V7,14:108},{15:$Ve,19:[1,109]},o($Vd,[2,27]),o($Vd,[2,21]),{12:111,13:$V7},{12:66,13:$V7,18:$V9,25:65,28:112},{12:66,13:$V7,18:$V9,25:65,28:113},{12:66,13:$V7,18:$V9,25:65,28:114},{15:$Vf,19:[1,115]},o($Vd,[2,14]),{12:59,13:$V7,14:117},{16:118,17:72,18:$Va},{16:119,17:72,18:$Va},{16:120,17:72,18:$Va},{15:$Ve,19:[1,121]},{12:66,13:$V7,18:$V9,25:65,28:122},{12:66,13:$V7,18:$V9,25:65,28:123},{12:66,13:$V7,18:$V9,25:65,28:124},{15:$Vf,19:[1,125]},{16:126,17:72,18:$Va},{16:127,17:72,18:$Va},{16:128,17:72,18:$Va},{15:$Vg,19:[1,129]},o($Vd,[2,24]),{16:131,17:72,18:$Va},{18:$Vb,26:132,27:86},{18:$Vb,26:133,27:86},{18:$Vb,26:134,27:86},{15:$Vh,19:[1,135]},o($Vd,[2,61]),o($Vd,[2,53]),o($Vd,[2,54]),o($Vd,[2,55]),o($Vd,[2,56]),o($Vd,[2,57]),o($Vd,[2,58]),o($Vd,[2,59]),{4:93,6:94,7:95,8:96,9:97,10:98,11:99,20:$V0,29:$V1,30:$V2,31:$V3,32:$V4,33:$V5,34:92,35:137,36:$V6},{4:93,6:94,7:95,8:96,9:97,10:98,11:99,20:$V0,29:$V1,30:$V2,31:$V3,32:$V4,33:$V5,34:92,35:138,36:$V6},{4:93,6:94,7:95,8:96,9:97,10:98,11:99,20:$V0,29:$V1,30:$V2,31:$V3,32:$V4,33:$V5,34:92,35:139,36:$V6},o($V8,[2,16]),{12:140,13:$V7},o($Vd,[2,8],{13:[1,141]}),{15:$Vc,19:[1,142]},{15:$Vc,19:[1,143]},{15:$Vc,19:[1,144]},o($V8,[2,28]),{12:66,13:$V7,18:$V9,25:145},{19:[1,146]},{15:$Ve,19:[1,147]},{15:$Ve,19:[1,148]},{15:$Ve,19:[1,149]},o($V8,[2,33]),{17:150,18:$Va},{15:$Vc,19:[1,151]},{15:$Vf,19:[1,152]},{15:$Vf,19:[1,153]},{15:$Vf,19:[1,154]},o($V8,[2,38]),{15:$Ve,19:[1,155]},{15:$Ve,19:[1,156]},{15:$Ve,19:[1,157]},o($V8,[2,43]),{15:$Vf,19:[1,158]},{15:$Vf,19:[1,159]},{15:$Vf,19:[1,160]},o($V8,[2,48]),{18:$Vb,27:161},{15:$Vf,19:[1,162]},{15:$Vg,19:[1,163]},{15:$Vg,19:[1,164]},{15:$Vg,19:[1,165]},o($V8,[2,62]),{4:93,6:94,7:95,8:96,9:97,10:98,11:99,20:$V0,29:$V1,30:$V2,31:$V3,32:$V4,33:$V5,34:166,36:$V6},{15:$Vh,19:[1,167]},{15:$Vh,19:[1,168]},{15:$Vh,19:[1,169]},o($Vd,[2,11]),o($Vd,[2,9],{13:[1,170]}),o($V8,[2,17]),o($V8,[2,18]),o($V8,[2,19]),o($Vd,[2,26]),o($Vd,[2,22]),o($V8,[2,29]),o($V8,[2,30]),o($V8,[2,31]),o($Vd,[2,13]),o($Vd,[2,15]),o($V8,[2,34]),o($V8,[2,35]),o($V8,[2,36]),o($V8,[2,39]),o($V8,[2,40]),o($V8,[2,41]),o($V8,[2,44]),o($V8,[2,45]),o($V8,[2,46]),o($Vd,[2,23]),o($Vd,[2,25]),o($V8,[2,49]),o($V8,[2,50]),o($V8,[2,51]),o($Vd,[2,60]),o($V8,[2,63]),o($V8,[2,64]),o($V8,[2,65]),o($Vd,[2,10])],defaultActions:{16:[2,1],17:[2,2],18:[2,3],19:[2,4],20:[2,5],21:[2,6],22:[2,7]},parseError:function(tt,rt){if(rt.recoverable)this.trace(tt);else{var nt=new Error(tt);throw nt.hash=rt,nt}},parse:function(tt){var rt=this,nt=[0],lt=[null],ut=[],dt=this.table,pt="",ht=0,mt=0,xt=2,Mt=1,vt=ut.slice.call(arguments,1),Ot=Object.create(this.lexer),At={yy:{}};for(var Rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Rt)&&(At.yy[Rt]=this.yy[Rt]);Ot.setInput(tt,At.yy),At.yy.lexer=Ot,At.yy.parser=this,typeof Ot.yylloc>"u"&&(Ot.yylloc={});var zt=Ot.yylloc;ut.push(zt);var Tt=Ot.options&&Ot.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ct=function(){var $t;return $t=Ot.lex()||Mt,typeof $t!="number"&&($t=rt.symbols_[$t]||$t),$t},It,Dt,kt,qt,Nt={},Yt,Kt,Jt,Qt;;){if(Dt=nt[nt.length-1],this.defaultActions[Dt]?kt=this.defaultActions[Dt]:((It===null||typeof It>"u")&&(It=Ct()),kt=dt[Dt]&&dt[Dt][It]),typeof kt>"u"||!kt.length||!kt[0]){var Bt="";Qt=[];for(Yt in dt[Dt])this.terminals_[Yt]&&Yt>xt&&Qt.push("'"+this.terminals_[Yt]+"'");Ot.showPosition?Bt="Parse error on line "+(ht+1)+`:
`+Ot.showPosition()+`
Expecting `+Qt.join(", ")+", got '"+(this.terminals_[It]||It)+"'":Bt="Parse error on line "+(ht+1)+": Unexpected "+(It==Mt?"end of input":"'"+(this.terminals_[It]||It)+"'"),this.parseError(Bt,{text:Ot.match,token:this.terminals_[It]||It,line:Ot.yylineno,loc:zt,expected:Qt})}if(kt[0]instanceof Array&&kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Dt+", token: "+It);switch(kt[0]){case 1:nt.push(It),lt.push(Ot.yytext),ut.push(Ot.yylloc),nt.push(kt[1]),It=null,mt=Ot.yyleng,pt=Ot.yytext,ht=Ot.yylineno,zt=Ot.yylloc;break;case 2:if(Kt=this.productions_[kt[1]][1],Nt.$=lt[lt.length-Kt],Nt._$={first_line:ut[ut.length-(Kt||1)].first_line,last_line:ut[ut.length-1].last_line,first_column:ut[ut.length-(Kt||1)].first_column,last_column:ut[ut.length-1].last_column},Tt&&(Nt._$.range=[ut[ut.length-(Kt||1)].range[0],ut[ut.length-1].range[1]]),qt=this.performAction.apply(Nt,[pt,mt,ht,At.yy,kt[1],lt,ut].concat(vt)),typeof qt<"u")return qt;Kt&&(nt=nt.slice(0,-1*Kt*2),lt=lt.slice(0,-1*Kt),ut=ut.slice(0,-1*Kt)),nt.push(this.productions_[kt[1]][0]),lt.push(Nt.$),ut.push(Nt._$),Jt=dt[nt[nt.length-2]][nt[nt.length-1]],nt.push(Jt);break;case 3:return!0}}return!0}},lexer=function(){var et={EOF:1,parseError:function(rt,nt){if(this.yy.parser)this.yy.parser.parseError(rt,nt);else throw new Error(rt)},setInput:function(rt,nt){return this.yy=nt||this.yy||{},this._input=rt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var rt=this._input[0];this.yytext+=rt,this.yyleng++,this.offset++,this.match+=rt,this.matched+=rt;var nt=rt.match(/(?:\r\n?|\n).*/g);return nt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),rt},unput:function(rt){var nt=rt.length,lt=rt.split(/(?:\r\n?|\n)/g);this._input=rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nt),this.offset-=nt;var ut=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lt.length-1&&(this.yylineno-=lt.length-1);var dt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lt?(lt.length===ut.length?this.yylloc.first_column:0)+ut[ut.length-lt.length].length-lt[0].length:this.yylloc.first_column-nt},this.options.ranges&&(this.yylloc.range=[dt[0],dt[0]+this.yyleng-nt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(rt){this.unput(this.match.slice(rt))},pastInput:function(){var rt=this.matched.substr(0,this.matched.length-this.match.length);return(rt.length>20?"...":"")+rt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var rt=this.match;return rt.length<20&&(rt+=this._input.substr(0,20-rt.length)),(rt.substr(0,20)+(rt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var rt=this.pastInput(),nt=new Array(rt.length+1).join("-");return rt+this.upcomingInput()+`
`+nt+"^"},test_match:function(rt,nt){var lt,ut,dt;if(this.options.backtrack_lexer&&(dt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(dt.yylloc.range=this.yylloc.range.slice(0))),ut=rt[0].match(/(?:\r\n?|\n).*/g),ut&&(this.yylineno+=ut.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ut?ut[ut.length-1].length-ut[ut.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+rt[0].length},this.yytext+=rt[0],this.match+=rt[0],this.matches=rt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(rt[0].length),this.matched+=rt[0],lt=this.performAction.call(this,this.yy,this,nt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),lt)return lt;if(this._backtrack){for(var pt in dt)this[pt]=dt[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var rt,nt,lt,ut;this._more||(this.yytext="",this.match="");for(var dt=this._currentRules(),pt=0;pt<dt.length;pt++)if(lt=this._input.match(this.rules[dt[pt]]),lt&&(!nt||lt[0].length>nt[0].length)){if(nt=lt,ut=pt,this.options.backtrack_lexer){if(rt=this.test_match(lt,dt[pt]),rt!==!1)return rt;if(this._backtrack){nt=!1;continue}else return!1}else if(!this.options.flex)break}return nt?(rt=this.test_match(nt,dt[ut]),rt!==!1?rt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var rt=this.next();return rt||this.lex()},begin:function(rt){this.conditionStack.push(rt)},popState:function(){var rt=this.conditionStack.length-1;return rt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(rt){return rt=this.conditionStack.length-1-Math.abs(rt||0),rt>=0?this.conditionStack[rt]:"INITIAL"},pushState:function(rt){this.begin(rt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(rt,nt,lt,ut){switch(lt){case 0:break;case 1:return 18;case 2:return 19;case 3:return 13;case 4:return 20;case 5:return 29;case 6:return 30;case 7:return 31;case 8:return 32;case 9:return 33;case 10:return 36;case 11:return 15;case 12:return 24;case 13:return 23;case 14:return 21;case 15:return 22;case 16:return 5;case 17:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:\()/,/^(?:\))/,/^(?:-?[0-9]+(\.[0-9]+)?([eE][\-\+]?[0-9]+)?)/,/^(?:POINT\b)/,/^(?:LINESTRING\b)/,/^(?:POLYGON\b)/,/^(?:MULTIPOINT\b)/,/^(?:MULTILINESTRING\b)/,/^(?:MULTIPOLYGON\b)/,/^(?:GEOMETRYCOLLECTION\b)/,/^(?:,)/,/^(?:EMPTY\b)/,/^(?:M\b)/,/^(?:Z\b)/,/^(?:ZM\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};return et}();parser.lexer=lexer;function Parser(){this.yy={}}Parser.prototype=parser;parser.Parser=Parser;parser.yy.parseError=function(et){throw et};function PointArray(et){this.data=[et],this.type="PointArray"}PointArray.prototype.addPoint=function(et){return et.type==="PointArray"?this.data=this.data.concat(et.data):this.data.push(et),this};PointArray.prototype.toJSON=function(){return this.data};function Ring(et){this.data=et,this.type="Ring"}Ring.prototype.toJSON=function(){for(var et=[],tt=0;tt<this.data.data.length;tt++)et.push(this.data.data[tt]);return et};function RingList(et){this.data=[et],this.type="RingList"}RingList.prototype.addRing=function(et){return this.data.push(et),this};RingList.prototype.toJSON=function(){for(var et=[],tt=0;tt<this.data.length;tt++)et.push(this.data[tt].toJSON());return et.length===1,et};function GeometryList(et){this.data=[et],this.type="GeometryList"}GeometryList.prototype.addGeometry=function(et){return this.data.push(et),this};GeometryList.prototype.toJSON=function(){return this.data};function PolygonList(et){this.data=[et],this.type="PolygonList"}PolygonList.prototype.addPolygon=function(et){return this.data.push(et),this};PolygonList.prototype.toJSON=function(){for(var et=[],tt=0;tt<this.data.length;tt++)et=et.concat([this.data[tt].toJSON()]);return et};var wktToGeoJSON=function(tt){var rt;try{rt=parser.parse(tt)}catch(nt){throw Error("Unable to parse: "+nt)}return rt};function feature(et,tt,rt={}){const nt={type:"Feature"};return(rt.id===0||rt.id)&&(nt.id=rt.id),rt.bbox&&(nt.bbox=rt.bbox),nt.properties={},nt.geometry=et,nt}function polygon(et,tt,rt={}){for(const lt of et){if(lt.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(lt[lt.length-1].length!==lt[0].length)throw new Error("First and last Position are not equivalent.");for(let ut=0;ut<lt[lt.length-1].length;ut++)if(lt[lt.length-1][ut]!==lt[0][ut])throw new Error("First and last Position are not equivalent.")}return feature({type:"Polygon",coordinates:et},tt,rt)}function multiPolygon(et,tt,rt={}){return feature({type:"MultiPolygon",coordinates:et},tt,rt)}styled$1(PlagiarismOutlined)`
  position: relative;
  top: 10px;
  left: 6px;
  color: ${et=>et.theme.palette.primary.main};
  &:hover {
    cursor: pointer;
  }
`;styled$1(ArrowRightIcon$1)`
  position: relative;
  left: 2px;
  color: ${et=>et.theme.palette.primary.main};
  top: 6px;
  font-size: 32px;
`;const PleaseReviewText=styled$1("div")`
  display: flex;
  align-items: center;
  margin-top: 8px;
`,getHighlightFeatures$1=et=>{const tt=[];for(const rt of et)if(rt!=="GEOMETRYCOLLECTION EMPTY"){const nt=wktToGeoJSON(rt);nt.type==="Polygon"?tt.push(polygon(nt.coordinates)):nt.type==="MultiPolygon"&&tt.push(multiPolygon(nt.coordinates))}return tt},stagingClinexMappings={ajcc_disease:{field:"disease",value:"diseaseId"},histology_code:{field:"morphology",value:"displayName"},t_stage_pathological:{field:"stageTCodePathological",value:"subCode"},m_stage_pathological:{field:"stageMCodePathological",value:"subCode"},n_stage_pathological:{field:"stageNCodePathological",value:"subCode"},t_stage_clinical:{field:"stageTCodeClinical",value:"subCode"},m_stage_clinical:{field:"stageMCodeClinical",value:"subCode"},n_stage_clinical:{field:"stageNCodeClinical",value:"subCode"},laterality:{field:"laterality"},diagnosis_date:{field:"diagnosisDate"}},breastIntakeClinexMappings={grade:{field:"grade"},er:{field:"er"},pgr:{field:"pgr"},her2:{field:"her2"},mastectomy:{field:"mastectomy"},reconstruction:{field:"reconstruction"},reconstructionTimeline:{field:"reconstructionTimeline"},surgery:{field:"surgery"},lymphovascular_invasion:{field:"lymphovascularInvasion"},lymphovascular_invasion_extent:{field:"lymphovascularInvasionExtent"}},lungIntakeClinexMappings={egfr:{field:"egfr"},alk:{field:"alk"},pdl1:{field:"pdl1"}},urogenitalClinexMappings={gleason_score_highest:{field:"gleason",firstField:"gleasonOne",secondField:"gleasonTwo"},total_psa:{field:"psa"},total_psa_date:{field:"psaDate"},prostatectomy:{field:"prostatectomy"}},clinexFieldsMapping={...stagingClinexMappings,...breastIntakeClinexMappings,...lungIntakeClinexMappings,...urogenitalClinexMappings},ClinexTooltip=({clinexData:et,clinexField:tt,formValues:rt,children:nt})=>{var dt;const[lt,ut]=React$4.useState(!1);return et&&isFieldValueClinex(et,tt,rt)&&((dt=et[tt])!=null&&dt.description)?jsxRuntimeExports.jsx(Tooltip,{arrow:!0,open:lt,title:et[tt].description,onMouseEnter:()=>ut(!0),onMouseLeave:()=>ut(!1),onClick:()=>ut(!1),children:nt}):nt},getClinexTooltipText=(et,tt,rt)=>{var nt;return et&&isFieldValueClinex(et,tt,rt)&&((nt=et[tt])!=null&&nt.description)?et[tt].description:""},isFieldValueClinex=(et,tt,rt)=>{var pt,ht,mt,xt;const nt=clinexFieldsMapping[tt];let lt;const{field:ut}=nt;if(ut==="gleason")lt=[rt.gleasonOne,rt.gleasonTwo];else if(nt.hasOwnProperty("value")){const{value:Mt}=nt;lt=((pt=rt[ut])==null?void 0:pt[Mt])||((ht=rt[ut])==null?void 0:ht.value)}else lt=typeof rt[ut]=="string"?rt[ut]:(mt=rt[ut])==null?void 0:mt.value;const dt=(xt=et==null?void 0:et[tt])==null?void 0:xt.value;return lt&&lt.toString().includes(dt==null?void 0:dt.toString())},navigateToClinexHighlight=(et,tt)=>{const{setPageIndex:rt,setIndexLock:nt,pages:lt,setHighlights:ut,setFieldSelected:dt,clinexData:pt}=tt,ht=Object.keys(pt[et].highlight_geoms);if(ht.length>0){const mt=lt.filter(Mt=>ht.includes(Mt.document_id));dt(et);const xt={};for(const Mt of Object.keys(pt[et].highlight_geoms)){const vt=pt[et].highlight_geoms[Mt],Ot=[];vt.forEach(At=>{Ot.push([At])}),xt[Mt]=Ot}ut(xt),mt.forEach(Mt=>{Mt.document_id in xt&&getHighlightFeatures$1(xt[Mt.document_id][Mt.page_index]).length>0&&(rt(lt.indexOf(Mt)),nt(!0),dt(et))})}},isFieldLowCertainty=(et,tt,rt)=>{var nt;return((nt=et==null?void 0:et[tt])==null?void 0:nt.certainty)!=="low"?!1:isFieldValueClinex(et,tt,rt)&&et[tt].certainty==="low"},selectFirstHighlight=(et,tt)=>{const{clinexData:rt}=tt,nt=Object.keys(et);let lt=!1;return rt&&nt.forEach(ut=>{var pt;((pt=rt==null?void 0:rt[ut])==null?void 0:pt.highlight_geoms)&&!lt&&(navigateToClinexHighlight(ut,tt),lt=!0)})},LOW_CERTAINTY="Lower certainty",PLEASE_REVIEW_CLINEX=jsxRuntimeExports.jsxs(PleaseReviewText,{"data-testid":"subtitle",children:[jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Please review prepopulated values found by Clinex. You can view the source document by clicking on"," "]}),jsxRuntimeExports.jsx(PlagiarismOutlined,{color:"primary"})]}),ClinexContext=reactExports.createContext({}),ClinexProvider=({children:et})=>{const[tt,rt]=reactExports.useState([]),[nt,lt]=reactExports.useState(0),[ut,dt]=reactExports.useState(!1),[pt,ht]=reactExports.useState({}),[mt,xt]=reactExports.useState(),[Mt,vt]=reactExports.useState(),[Ot,At]=reactExports.useState({}),[Rt,zt]=reactExports.useState(!1),[Tt,Ct]=reactExports.useState(),[It,Dt]=reactExports.useState(!1),[kt,qt]=reactExports.useState(!0);return jsxRuntimeExports.jsx(ClinexContext.Provider,{value:{pageIndex:nt,setPageIndex:lt,indexLock:ut,setIndexLock:dt,pages:tt,setPages:rt,highlights:pt,setHighlights:ht,fieldSelected:mt,setFieldSelected:xt,clinexData:Mt,setClinexData:vt,clinexDocuments:Ot,setClinexDocuments:At,clinexModalOpen:Rt,setClinexModalOpen:zt,uuid:Tt,setUuid:Ct,intakeFieldsLoaded:It,setIntakeFieldsLoaded:Dt,showClinexDocument:kt,setShowClinexDocument:qt},children:et})},ClinexFieldWrapper=({children:et,ajccVersion:tt,field:rt})=>{var Mt,vt;let nt=rt;const lt=rt.slice(0,7),ut=reactExports.useContext(ClinexContext),{fieldSelected:dt,clinexData:pt,setClinexModalOpen:ht}=ut;let mt=(Mt=pt==null?void 0:pt[rt])==null?void 0:Mt.highlight_geoms;if(!mt&&tt){const Ot=rt.slice(8),At=Ot==="clinical"?"pathological":"clinical";nt=rt.replace(Ot,At),mt=(vt=pt==null?void 0:pt[nt])==null?void 0:vt.highlight_geoms}const xt=(dt==null?void 0:dt.slice(0,7))===lt&&tt||dt===nt;return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",sx:{width:"100%"},"data-testid":`clinex-wrapper-${rt}`,children:[et,jsxRuntimeExports.jsxs(Stack$5,{direction:"row",sx:{height:"100%",marginBottom:"auto"},children:[mt&&jsxRuntimeExports.jsx(PlagiarismOutlined,{"data-testid":"clinex-icon",sx:{cursor:"pointer",marginLeft:"6px",height:"100%",marginTop:"6px"},color:"primary",onClick:()=>{navigateToClinexHighlight(nt,ut),ht(!0)}}),mt&&(xt?jsxRuntimeExports.jsx(ArrowRightIcon$1,{"data-testid":"clinex-icon-arrow",sx:{fontSize:"32px",marginLeft:"-4px",marginRight:"-6px",marginTop:"2px"},color:"primary"}):jsxRuntimeExports.jsx(Stack$5,{sx:{width:"22px"}}))]})]})},REACT_APP_REGION$c=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$7=REACT_APP_REGION$c,BreastIntakeV1=({updateIntakeHandler:et})=>{var ut;const{values:tt,touched:rt}=useFormikContext(),nt=reactExports.useContext(ClinexContext),{clinexData:lt}=nt;if((ut=tt.intake)!=null&&ut.breast){const{grade:dt,er:pt,pgr:ht,her2:mt,mastectomy:xt,reconstruction:Mt,excerciseReferral:vt}=tt.intake.breast;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"grade",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"grade",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"grade",component:ROToggleButtons,id:"grade",fieldlabel:"Grade",options:GRADE_OPTIONS,value:dt,handleChange:Ot=>{et({grade:Ot})},error:getIn$1(rt,"grade")&&!dt,required:!0,helperText:dt?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"grade",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"er",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"er",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"er",component:ROToggleButtons,id:"er",fieldlabel:"ER",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:pt,handleChange:Ot=>{et({er:Ot})},error:getIn$1(rt,"er")&&!pt,required:!0,helperText:pt?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"er",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"pgr",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"pgr",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"pgr",component:ROToggleButtons,id:"pgr",fieldlabel:"PgR",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:ht,handleChange:Ot=>{et({pgr:Ot})},error:getIn$1(rt,"pgr")&&!ht,required:!0,helperText:ht?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"pgr",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"her2",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"her2",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"her2",component:ROToggleButtons,id:"her2",fieldlabel:"Her2",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:mt,handleChange:Ot=>{et({her2:Ot})},error:getIn$1(rt,"her2")&&!mt,required:!0,helperText:mt?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"her2",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"mastectomy",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"mastectomy",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"mastectomy",component:ROToggleButtons,id:"mastectomy",fieldlabel:"Mastectomy",options:YES_NO_UNKNOWN_OPTIONS,value:xt,error:getIn$1(rt,"mastectomy")&&!xt,handleChange:Ot=>{et({mastectomy:Ot})},message:LOW_CERTAINTY,warning:isFieldLowCertainty(lt,"mastectomy",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"reconstruction",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"reconstruction",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"reconstruction",component:ROToggleButtons,id:"reconstruction",fieldlabel:"Reconstruction",options:YES_NO_UNKNOWN_OPTIONS,value:Mt,error:getIn$1(rt,"reconstruction")&&!Mt,handleChange:Ot=>{et({reconstruction:Ot})},message:LOW_CERTAINTY,warning:isFieldLowCertainty(lt,"reconstruction",tt)})})}),region$7!==Region.UK&&jsxRuntimeExports.jsx(Field,{name:"exerciseReferral",component:ROToggleButtons,id:"excercise",fieldlabel:"Referred for Exercise Clinic",options:YES_NO_NOTAPPLICABLE_OPTIONS,value:vt,error:getIn$1(rt,"excerciseReferral")&&!vt,handleChange:Ot=>{et({excerciseReferral:Ot})}})]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:" "})},REACT_APP_REGION$b=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$6=REACT_APP_REGION$b,StyledQuestionCircleIcon=styled$1(HelpOutline)`
  cursor: pointer;
`,BreastIntakeV2=({updateIntakeHandler:et})=>{var Rt,zt,Tt;const{values:tt,touched:rt}=useFormikContext(),nt=reactExports.useContext(ClinexContext),{clinexData:lt}=nt,[ut,dt]=reactExports.useState(!1),[pt,ht]=reactExports.useState(!1),[mt,xt]=reactExports.useState(!1),[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(!1);if((Rt=tt.intake)!=null&&Rt.breast){const{grade:Ct,er:It,pgr:Dt,her2:kt,surgery:qt,mastectomy:Nt,reconstruction:Yt,oncoplasticSurgery:Kt,reconstructionTimeline:Jt,reconstructionType:Qt,expandersInSitu:Bt,lymphovascularInvasion:Ft,lymphovascularInvasionExtent:$t,radialMarginStatus:jt,neoadjuvantSystemicTherapy:Wt,exerciseDiscussedWithPatient:Ut,excerciseReferral:Vt}=tt.intake.breast,[Ht,Gt]=reactExports.useState(((Tt=(zt=tt==null?void 0:tt.intake)==null?void 0:zt.breast)==null?void 0:Tt.nstAdditionalInfo)||"");return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(EcogMovedTooltip,{}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"grade",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"grade",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"grade",component:ROToggleButtons,id:"grade",fieldlabel:"Grade",options:GRADE_OPTIONS,value:Ct,handleChange:Zt=>{et({grade:Zt})},error:getIn$1(rt,"grade")&&!Ct,warning:isFieldLowCertainty(lt,"grade",tt),required:!0,helperText:Ct?LOW_CERTAINTY:VALUE_REQUIRED$1})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"er",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"er",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"er",component:ROToggleButtons,id:"er",fieldlabel:"ER",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:It,handleChange:Zt=>{et({er:Zt})},error:getIn$1(rt,"er")&&!It,required:!0,clinexRow:!0,helperText:It?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"er",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"pgr",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"pgr",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"pgr",component:ROToggleButtons,id:"pgr",fieldlabel:"PgR",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:Dt,handleChange:Zt=>{et({pgr:Zt})},error:getIn$1(rt,"pgr")&&!Dt,required:!0,helperText:Dt?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"pgr",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"her2",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"her2",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"her2",component:ROToggleButtons,id:"her2",fieldlabel:"Her2",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:kt,handleChange:Zt=>{et({her2:Zt})},error:getIn$1(rt,"her2")&&!kt,required:!0,helperText:kt?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"her2",tt)})})}),region$6===Region.UK&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"mastectomy",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"mastectomy",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"mastectomy",component:ROToggleButtons,id:"mastectomy",fieldlabel:"Mastectomy",options:YES_NO_UNKNOWN_OPTIONS,value:Nt,error:getIn$1(rt,"mastectomy")&&!Nt,onChange:Zt=>{et({mastectomy:Zt})},message:LOW_CERTAINTY,warning:isFieldLowCertainty(lt,"mastectomy",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"reconstruction",children:jsxRuntimeExports.jsx(Field,{name:"reconstruction",component:ROToggleButtons,id:"reconstruction",fieldlabel:"Reconstruction",options:YES_NO_UNKNOWN_OPTIONS,value:Yt,error:getIn$1(rt,"reconstruction")&&!Yt,handleChange:Zt=>{et({reconstruction:Zt})},helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(lt,"reconstruction",tt)})})]}),region$6!==Region.UK&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"surgery",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"surgery",formValues:tt.intake.breast,children:jsxRuntimeExports.jsx(Field,{name:"surgery",component:ROToggleButtons,id:"surgery",fieldlabel:"Surgery",options:SURGERY_OPTIONS,value:qt,handleChange:Zt=>{const Xt={surgery:Zt};let er={};Zt!=="Mastectomy"&&(er={reconstructionTimeline:null}),Zt!=="Breast conserving"&&(er={...er,oncoplasticSurgery:null}),et({...Xt,...er})},helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(lt,"surgery",tt),tooltip:jsxRuntimeExports.jsx(StyledQuestionCircleIcon,{fontSize:"small",color:"info",onClick:()=>dt(!0)})})})}),jsxRuntimeExports.jsx(TooltipModal,{open:ut,tooltip:surgeryTooltip,setOpen:dt}),qt==="Breast conserving"&&jsxRuntimeExports.jsxs(ChildSectionWrapper,{children:[jsxRuntimeExports.jsx(Field,{name:"oncoplasticSurgery",component:ROToggleButtons,id:"oncoplasticSurgery",fieldlabel:"Oncoplastic Surgery",options:YES_NO_UNKNOWN_OPTIONS,value:Kt,handleChange:Zt=>{et({oncoplasticSurgery:Zt})},tooltip:jsxRuntimeExports.jsx(StyledQuestionCircleIcon,{fontSize:"small",color:"info",onClick:()=>ht(!0)})}),jsxRuntimeExports.jsx(TooltipModal,{open:pt,tooltip:oncoplasticSurgeryTooltip,setOpen:ht})]}),qt==="Mastectomy"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(ChildSectionWrapper,{children:[jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"reconstructionTimeline",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"reconstructionTimeline",formValues:tt,children:jsxRuntimeExports.jsx(Field,{name:"reconstructionTimeline",component:ROToggleButtons,id:"reconstructionTimeline",fieldlabel:"Reconstruction",options:RECONSTRUCTION_TIMELINE_OPTIONS,value:Jt,handleChange:Zt=>{et({reconstructionTimeline:Zt,reconstructionType:"",expandersInSitu:""})},tooltip:jsxRuntimeExports.jsx(StyledQuestionCircleIcon,{fontSize:"small",color:"info",onClick:()=>At(!0)})})})}),jsxRuntimeExports.jsx(TooltipModal,{open:Ot,tooltip:reconstructionTooltip,setOpen:At,modalWidth:"medium"})]}),Jt==="Immediate"&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ChildSectionWrapper,{children:jsxRuntimeExports.jsx(Field,{name:"reconstructionType",component:ROToggleButtons,id:"reconstructionType",fieldlabel:"Type",options:RECONSTRUCTION_IMMEDIATE_SURGERY_OPTIONS,value:Qt,handleChange:Zt=>{et({reconstructionType:Zt})}})})}),Jt==="Delayed"&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ChildSectionWrapper,{children:jsxRuntimeExports.jsx(Field,{name:"expandersInSitu",component:ROToggleButtons,id:"expandersInSitu",fieldlabel:"Expanders in situ",options:RECONSTRUCTION_DELAYED_SURGERY_OPTIONS,value:Bt,handleChange:Zt=>{et({expandersInSitu:Zt})}})})})]}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"lymphovascular_invasion",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"lymphovascular_invasion",formValues:tt,children:jsxRuntimeExports.jsx(Field,{name:"lymphovascularInvasion",component:ROToggleButtons,id:"lymphovascularInvasion",fieldlabel:"Lymphovascular Invasion",options:YES_NO_UNKNOWN_OPTIONS,value:Ft,handleChange:Zt=>{et(Zt!=="Yes"?{lymphovascularInvasion:Zt,lymphovascularInvasionExtent:null}:{lymphovascularInvasion:Zt})},helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(lt,"lymphovascular_invasion",tt),tooltip:jsxRuntimeExports.jsx(StyledQuestionCircleIcon,{fontSize:"small",color:"info",onClick:()=>xt(!0)})})})}),jsxRuntimeExports.jsx(TooltipModal,{open:mt,tooltip:lymphovascularInvasionTooltip,setOpen:xt}),Ft==="Yes"&&jsxRuntimeExports.jsx(ChildSectionWrapper,{children:jsxRuntimeExports.jsx(Field,{name:"lymphovascularInvasionExtent",component:ROToggleButtons,id:"lymphovascularInvasionExtent",fieldlabel:"Extent of LVI",options:EXTENT_LVI_OPTIONS,value:$t,handleChange:Zt=>{et({lymphovascularInvasionExtent:Zt})},helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(lt,"lymphovascular_invasion_extent",tt)})}),jsxRuntimeExports.jsx(Field,{name:"radialMarginStatus",component:ROToggleButtons,id:"radialMarginStatus",fieldlabel:"Radial Margin Status",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:jt,handleChange:Zt=>{et({radialMarginStatus:Zt})},tooltip:jsxRuntimeExports.jsx(StyledQuestionCircleIcon,{fontSize:"small",color:"info",onClick:()=>vt(!0)})}),jsxRuntimeExports.jsx(TooltipModal,{open:Mt,tooltip:radialMarginStatusTooltip,setOpen:vt,modalWidth:"medium"}),jsxRuntimeExports.jsx(Field,{name:"neoadjuvantSystemicTherapy",component:ROToggleButtons,id:"neoadjuvantSystemicTherapy",fieldlabel:"Neoadjuvant Systemic Therapy",options:YES_NO_OPTIONS,value:Wt,handleChange:Zt=>{et(Zt!=="Yes"?{neoadjuvantSystemicTherapy:Zt,nstAdditionalInfo:null}:{neoadjuvantSystemicTherapy:Zt})}}),Wt==="Yes"&&jsxRuntimeExports.jsx(ChildSectionWrapper,{children:jsxRuntimeExports.jsx(Field,{name:"nstAdditionalInfo",component:ROTextField,id:"nstAdditionalInfo",fieldlabel:"Additional Info",value:Ht,onChange:Zt=>{Gt(Zt.target.value)},onBlur:()=>{et({nstAdditionalInfo:Ht})},multiline:!0,maxRows:4})}),jsxRuntimeExports.jsx(Field,{name:"exerciseDiscussedWithPatient",component:ROToggleButtons,id:"exerciseDiscussedWithPatient",fieldlabel:"Exercise Discussed with Patient",options:YES_NO_OPTIONS,value:Ut,handleChange:Zt=>{et({exerciseDiscussedWithPatient:Zt})}}),jsxRuntimeExports.jsx(Field,{name:"exerciseReferral",component:ROToggleButtons,id:"excercise",fieldlabel:"Referred for Exercise",options:YES_NO_OPTIONS,value:Vt,handleChange:Zt=>{et({excerciseReferral:Zt})}})]})]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:" "})},ROPatientDiagnosisIntakeBreastPageRouter=({updateIntakeHandler:et,featureVersion:tt})=>tt!==void 0&&tt>1&&CurrentAppConfig.Intake.breastFormVersion===2?jsxRuntimeExports.jsx(BreastIntakeV2,{updateIntakeHandler:et}):jsxRuntimeExports.jsx(BreastIntakeV1,{updateIntakeHandler:et}),ROPatientDiagnosisIntakeLungPage=({updateIntakeHandler:et})=>{var ut;const{values:tt,touched:rt}=useFormikContext(),nt=reactExports.useContext(ClinexContext),{clinexData:lt}=nt;if((ut=tt.intake)!=null&&ut.lung){const{weightLoss:dt,smokingHistory:pt,egfr:ht,alk:mt,pdl1:xt}=tt.intake.lung;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(EcogMovedTooltip,{}),jsxRuntimeExports.jsx(Field,{name:"weightLoss",component:ROToggleButtons,id:"weightLoss",fieldlabel:"Weight Loss",options:WEIGHT_LOSS_OPTIONS,value:dt,error:getIn$1(rt,"weightLoss")&&!dt,required:!0,handleChange:Mt=>{et({weightLoss:Mt})}}),jsxRuntimeExports.jsx(Field,{name:"smokingHistory",component:ROToggleButtons,id:"smokingHistory",fieldlabel:"Smoking History",options:SMOKING_HISTORY_OPTIONS,value:pt,error:getIn$1(rt,"smokingHistory")&&!pt,required:!0,handleChange:Mt=>{et({smokingHistory:Mt})}}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"egfr",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"egfr",formValues:tt.intake.lung,children:jsxRuntimeExports.jsx(Field,{name:"egfr",component:ROToggleButtons,id:"egfr",fieldlabel:"EGFR",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:ht,error:getIn$1(rt,"egfr")&&!ht,required:!0,handleChange:Mt=>{et({egfr:Mt})},helperText:ht?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"egfr",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"alk",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"alk",formValues:tt.intake.lung,children:jsxRuntimeExports.jsx(Field,{name:"alk",component:ROToggleButtons,id:"alk",fieldlabel:"ALK",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:mt,error:getIn$1(rt,"alk")&&!mt,required:!0,handleChange:Mt=>{et({alk:Mt})},helperText:mt?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"alk",tt)})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"pdl1",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"pdl1",formValues:tt.intake.lung,children:jsxRuntimeExports.jsx(Field,{name:"pdl1",component:ROToggleButtons,id:"pdl1",fieldlabel:"PDL1",options:POSITIVE_NEGATIVE_UNKNOWN_OPTIONS,value:xt,error:getIn$1(rt,"pdl1")&&!xt,required:!0,handleChange:Mt=>{et({pdl1:Mt})},helperText:xt?LOW_CERTAINTY:VALUE_REQUIRED$1,warning:isFieldLowCertainty(lt,"pdl1",tt)})})})]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:" "})},ROPatientDiagnosisIntakeUrogenitalPage=({updateIntakeHandler:et,setDateError:tt})=>{var ht,mt,xt,Mt;const{values:rt}=useFormikContext(),nt=reactExports.useContext(ClinexContext),{clinexData:lt}=nt,ut={header:"PSA",body:"The PSA level recorded should be the patient's maximum PSA result"},[dt,pt]=reactExports.useState((mt=(ht=rt==null?void 0:rt.intake)==null?void 0:ht.urogenital)==null?void 0:mt.psa);if(reactExports.useEffect(()=>{var vt,Ot;dt===void 0&&pt((Ot=(vt=rt==null?void 0:rt.intake)==null?void 0:vt.urogenital)==null?void 0:Ot.psa)},[(xt=rt==null?void 0:rt.intake)==null?void 0:xt.urogenital]),(Mt=rt.intake)!=null&&Mt.urogenital){const{gleasonOne:vt,gleasonTwo:Ot,isupGrade:At,psaDate:Rt,prostatectomy:zt,psma:Tt,positiveSite:Ct}=rt.intake.urogenital;return At===""&&vt&&Ot&&et({isupGrade:getIntakeISUPGrade(vt.toString(),Ot.toString())}),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"gleason_score_highest",children:jsxRuntimeExports.jsx(FormRow$1,{id:"row-intakeGleasonOne",fieldlabel:"Gleason",alignItems:"center",children:jsxRuntimeExports.jsxs(Stack$6,{gap:"4px",width:"400px",children:[jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"gleason_score_highest",formValues:rt.intake.urogenital,children:jsxRuntimeExports.jsxs(Stack$6,{direction:"row",alignItems:"center",gap:"8px",children:[jsxRuntimeExports.jsx(Field,{name:"intakeGleasonOne",component:BaseSelect,id:"intakeGleasonOne",options:GLEASON_LEVEL_OPTIONS,placeholder:"-",value:vt?vt.toString():"-",onChange:It=>{const Dt=It.target.value;let kt="";Dt&&Ot&&(kt=`${getIntakeISUPGrade(Dt||"0",Ot.toString())}`),et({gleasonOne:parseInt(Dt)||0,isupGrade:kt})},sx:{width:"70px"}}),jsxRuntimeExports.jsx("span",{children:"+"}),jsxRuntimeExports.jsx(Field,{name:"intakeGleasonTwo",component:BaseSelect,id:"intakeGleasonTwo",options:GLEASON_LEVEL_OPTIONS,value:Ot?Ot.toString():"-",placeholder:"-",onChange:It=>{const Dt=It.target.value;let kt="";vt&&Dt&&(kt=`${getIntakeISUPGrade(vt.toString(),Dt||"0")}`),et({gleasonTwo:parseInt(Dt)||0,isupGrade:kt})},sx:{width:"70px"}}),vt&&Ot?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"="}),jsxRuntimeExports.jsx("span",{id:"intakeGleasonTotal",children:parseInt(vt,10)+parseInt(Ot,10)})]}):null]})}),jsxRuntimeExports.jsx(ROHelperText,{id:"intakeGleasonOne",warning:isFieldLowCertainty(lt,"gleason_score_highest",rt),helperText:isFieldLowCertainty(lt,"gleason_score_highest",rt)?LOW_CERTAINTY:void 0})]})})}),jsxRuntimeExports.jsx(Field,{name:"intakeISUPGrade",component:ROTextField,id:"intakeISUPGrade",fieldlabel:"ISUP Grade",value:At?`Grade ${At}`:vt&&Ot?`Grade ${getIntakeISUPGrade(vt.toString(),Ot.toString())}`:"",disabled:!0}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"total_psa",children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:lt,clinexField:"total_psa",formValues:rt.intake.urogenital,children:jsxRuntimeExports.jsx(Field,{name:"intakePSA",component:ROTextField,fieldlabel:"PSA",id:"intakePSA",tooltip:jsxRuntimeExports.jsx(FormRowToolTip,{tooltip:ut}),value:dt,onChange:It=>{pt(It.target.value)},onBlur:()=>{et({psa:dt||""})},fullWidth:!0,warning:isFieldLowCertainty(lt,"total_psa",rt),helperText:LOW_CERTAINTY,sx:{width:"400px"}})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"total_psa_date",children:jsxRuntimeExports.jsx(RODatePicker,{id:"psaDate",fieldlabel:"PSA Date",disableFuture:!0,value:Rt?dayjs(Rt):null,onChange:(It,Dt)=>{if(Dt.validationError){tt(Dt.validationError);return}const kt=It?dayjs(It).format("YYYY-MM-DD"):null;et({psaDate:kt})},onError:tt,warning:isFieldLowCertainty(lt,"total_psa_date",rt),helperText:isFieldLowCertainty(lt,"total_psa_date",rt)?LOW_CERTAINTY:void 0,sx:{marginRight:"150px"}})}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"psma",fieldlabel:"PSMA",warning:isFieldLowCertainty(lt,"psma",rt),helperText:LOW_CERTAINTY,options:PSMA_OPTIONS,value:Tt||"",handleChange:It=>{et(It!=="Positive"?{psma:It,positiveSite:null}:{psma:It})}}),Tt==="Positive"&&jsxRuntimeExports.jsx(ChildSectionWrapper,{children:jsxRuntimeExports.jsx(FormRow$1,{id:"positiveSite",fieldlabel:"Positive Sites",children:jsxRuntimeExports.jsx(CheckBoxGroup,{id:"positiveSite",value:Ct||[],options:POSITIVE_SITE_OPTIONS,onChange:It=>{et({positiveSite:It})}})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"prostatectomy",children:jsxRuntimeExports.jsx(ROToggleButtons,{id:"prostatectomy",fieldlabel:"Prostatectomy",warning:isFieldLowCertainty(lt,"prostatectomy",rt),helperText:LOW_CERTAINTY,options:YES_NO_OPTIONS,value:zt||"",handleChange:It=>{et({prostatectomy:It})}})})]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:" "})},ROPatientDiagnosisIntakeLymphomaPage=({updateIntakeHandler:et})=>{var nt;const{values:tt,touched:rt}=useFormikContext();if((nt=tt.intake)!=null&&nt.lymphoma){const{stage:lt,aOrBSymptoms:ut,extranodal:dt,bulkDisease:pt}=tt.intake.lymphoma;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Field,{name:"stage",component:ROAutocomplete,id:"stage",fieldlabel:"Stage",options:LYMPHOMA_STAGE_OPTIONS,value:lt,required:!0,inputProps:{error:getIn$1(rt,"stage")&&!lt,helperText:VALUE_REQUIRED$1},onChange:ht=>{et({stage:ht?ht.value:""})}}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"32px 0"}}),jsxRuntimeExports.jsx(Field,{name:"aOrBSymptoms",component:ROToggleButtons,id:"aorbSymptoms",fieldlabel:"A or B Symptoms",options:A_B_SYMPTOMS_OPTIONS,value:ut,required:!0,error:getIn$1(rt,"aOrBSymptoms")&&!ut,handleChange:ht=>{et({aOrBSymptoms:ht})},tooltip:tooltipIconWrapper(absymptomsTooltip)}),jsxRuntimeExports.jsx(Field,{name:"extranodal",component:ROToggleButtons,id:"extranodal",fieldlabel:"Extranodal",options:EXTRANODAL_OPTIONS,value:dt,required:!0,error:getIn$1(rt,"extranodal")&&!dt,handleChange:ht=>{et({extranodal:ht})},tooltip:tooltipIconWrapper(extranodalTooltip)}),jsxRuntimeExports.jsx(Field,{name:"bulkDisease",component:ROToggleButtons,id:"bulkDisease",fieldlabel:"Bulk Disease",options:BULK_DISEASE_OPTIONS,value:pt,required:!0,error:getIn$1(rt,"bulkDisease")&&!pt,handleChange:ht=>{et({bulkDisease:ht})},tooltip:tooltipIconWrapper(bulkDiseaseTooltip)}),jsxRuntimeExports.jsx(EcogMovedTooltip,{})]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:" "})},CREATE_DIAGNOSIS=gql`
  mutation createDiagnosis($patientId: ID!, $diagnosisInput: DiagnosisInputType, $secondaryInput: DiagnosisInputType) {
    createDiagnosis(patientId: $patientId, diagnosisInput: $diagnosisInput, secondaryInput: $secondaryInput) {
      diagnosis {
        id
        stageType
        draft
        stageTCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageNCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageMCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageTCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageMCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageNCodeClinical {
          id
          subCode
          description
          mainCode
        }
        morphology {
          id
          displayName
        }
        otherInfo
        laterality
        diagnosisDate
        diagnosisCode {
          id
          diagnosisCode
          diagnosisDescription
          stageNumber
          tumourStream {
            id
            name
          }
        }
        isPrimaryDiagnosis
        relatedPrimaryDiagnosis {
          id
          stageType
          stageTCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageNCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageMCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageTCodeClinical {
            id
            subCode
            description
            mainCode
          }
          stageMCodeClinical {
            id
            subCode
            description
            mainCode
          }
          stageNCodeClinical {
            id
            subCode
            description
            mainCode
          }
          morphology {
            id
            displayName
          }
          otherInfo
          laterality
          diagnosisDate
          diagnosisCode {
            id
            diagnosisCode
            diagnosisDescription
            stageNumber
            tumourStream {
              id
              name
            }
          }
          isPrimaryDiagnosis
        }
      }
    }
  }
`,GET_PATIENT_DIAGNOSIS_LIST=gql`
  query getPatientDiagnosisList($patientId: ID!, $diagnosisType: String!, $secondaryCode: String) {
    diagnosisList(patientId: $patientId, diagnosisType: $diagnosisType, secondaryCode: $secondaryCode) {
      id
      stageType
      draft
      stageTCodePathological {
        id
        subCode
        description
        mainCode
      }
      stageNCodePathological {
        id
        subCode
        description
        mainCode
      }
      stageMCodePathological {
        id
        subCode
        description
        mainCode
      }
      stageTCodeClinical {
        id
        subCode
        description
        mainCode
      }
      stageMCodeClinical {
        id
        subCode
        description
        mainCode
      }
      stageNCodeClinical {
        id
        subCode
        description
        mainCode
      }
      morphology {
        id
        displayName
      }
      otherInfo
      laterality
      diagnosisDate
      diagnosisCode {
        id
        diagnosisCode
        diagnosisDescription
        stageNumber
        tumourStream {
          id
          name
        }
      }
      isPrimaryDiagnosis
      relatedPrimaryDiagnosis {
        id
        stageType
        stageTCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageNCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageMCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageTCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageMCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageNCodeClinical {
          id
          subCode
          description
          mainCode
        }
        morphology {
          id
          displayName
        }
        otherInfo
        laterality
        diagnosisDate
        diagnosisCode {
          id
          diagnosisCode
          diagnosisDescription
          stageNumber
          tumourStream {
            id
            name
          }
        }
        isPrimaryDiagnosis
      }
    }
  }
`,CHECK_DIAGNOSIS_CAREPLAN_STATUS=gql`
  query CheckDiagnosisToCareplanStatus($diagnosisId: ID!, $careplanId: ID!) {
    checkDiagnosisToCareplanStatus(diagnosisId: $diagnosisId, careplanId: $careplanId) {
      id
      status
    }
  }
`,GET_DIAGNOSIS=gql`
  query getPatientDiagnosis($diagnosisId: ID!) {
    diagnosis(id: $diagnosisId) {
      ajccMajorVersion
      emrDiagnosisKey
      id
      isPrimaryDiagnosis
      stageType
      draft
      hasTreatmentStarted
      disease {
        id
        diseaseId
        title
        chapter
      }
      stageTCodePathological {
        id
        subCode
        description
        mainCode
      }
      stageNCodePathological {
        id
        subCode
        description
        mainCode
      }
      stageMCodePathological {
        id
        subCode
        description
        mainCode
      }
      stageTCodeClinical {
        id
        subCode
        description
        mainCode
      }
      stageMCodeClinical {
        id
        subCode
        description
        mainCode
      }
      stageNCodeClinical {
        id
        subCode
        description
        mainCode
      }
      morphology {
        id
        displayName
        code
      }
      otherInfo
      laterality
      diagnosisDate
      diagnosisCode {
        id
        diagnosisCode
        diagnosisDescription
        stageNumber
        tumourStream {
          id
          name
        }
      }
      relatedPrimaryDiagnosis {
        emrDiagnosisKey
        id
        isPrimaryDiagnosis
        stageType
        draft
        disease {
          id
          diseaseId
          title
          chapter
        }
        stageTCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageNCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageMCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageTCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageMCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageNCodeClinical {
          id
          subCode
          description
          mainCode
        }
        morphology {
          id
          displayName
        }
        otherInfo
        laterality
        diagnosisDate
        diagnosisCode {
          id
          diagnosisCode
          diagnosisDescription
          stageNumber
          tumourStream {
            id
            name
          }
        }
      }
    }
    user {
      id
      isShowcaseUser
    }
  }
`,UPDATE_DIAGNOSIS=gql`
  mutation updateDiagnosis(
    $id: ID!
    $stageType: String
    $diagnosisCodeId: ID
    $stageTCodePathological: ID
    $stageNCodePathological: ID
    $stageMCodePathological: ID
    $stageTCodeClinical: ID
    $stageNCodeClinical: ID
    $stageMCodeClinical: ID
    $morphology: String
    $laterality: String
    $otherInfo: String
    $diagnosisDate: String
    $isPrimaryDiagnosis: Boolean
    $relatedPrimaryDiagnosis: ID
    $draft: Boolean
    $isSubmitDiagnosisOnly: Boolean
    $disease: String
    $majorVersion: Int
  ) {
    updateDiagnosis(
      id: $id
      diagnosisCodeId: $diagnosisCodeId
      stageType: $stageType
      stageTCodePathological: $stageTCodePathological
      stageNCodePathological: $stageNCodePathological
      stageMCodePathological: $stageMCodePathological
      stageTCodeClinical: $stageTCodeClinical
      stageNCodeClinical: $stageNCodeClinical
      stageMCodeClinical: $stageMCodeClinical
      morphology: $morphology
      laterality: $laterality
      otherInfo: $otherInfo
      diagnosisDate: $diagnosisDate
      isPrimaryDiagnosis: $isPrimaryDiagnosis
      relatedPrimaryDiagnosis: $relatedPrimaryDiagnosis
      draft: $draft
      isSubmitDiagnosisOnly: $isSubmitDiagnosisOnly
      disease: $disease
      majorVersion: $majorVersion
    ) {
      diagnosis {
        id
        stageType
        draft
        hasTreatmentStarted
        disease {
          id
          diseaseId
          title
          chapter
        }
        stageTCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageNCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageMCodePathological {
          id
          subCode
          description
          mainCode
        }
        stageTCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageMCodeClinical {
          id
          subCode
          description
          mainCode
        }
        stageNCodeClinical {
          id
          subCode
          description
          mainCode
        }
        morphology {
          id
          displayName
        }
        otherInfo
        laterality
        diagnosisDate
        diagnosisCode {
          id
          diagnosisCode
          diagnosisDescription
          stageNumber
          tumourStream {
            id
            name
          }
        }
        relatedPrimaryDiagnosis {
          id
          stageType
          draft
          stageTCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageNCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageMCodePathological {
            id
            subCode
            description
            mainCode
          }
          stageTCodeClinical {
            id
            subCode
            description
            mainCode
          }
          stageMCodeClinical {
            id
            subCode
            description
            mainCode
          }
          stageNCodeClinical {
            id
            subCode
            description
            mainCode
          }
          morphology {
            id
            displayName
          }
          otherInfo
          laterality
          diagnosisDate
          diagnosisCode {
            id
            diagnosisCode
            diagnosisDescription
            stageNumber
            tumourStream {
              id
              name
            }
          }
        }
      }
    }
  }
`,LOAD_STAGE_MORPHOLOGY_LIST=gql`
  query morphologyLookupList($tumourStream: String!) {
    morphologyLookupList(tumourStream: $tumourStream) {
      id
      displayName
    }
  }
`,LOAD_STAGE_TNM_LIST=gql`
  query tnmLookupGroupList($groupNumber: String!) {
    tnmLookupGroupList(groupNumber: $groupNumber) {
      id
      mainCode
      subCode
      description
    }
  }
`,GET_ICD10_CATEGORY_LIST=gql`
  query icd10($isPrimaryDiagnosis: Boolean!) {
    diagnosisCategoryList(isPrimaryDiagnosis: $isPrimaryDiagnosis) {
      tumourStream
      diagnosisList {
        id
        diagnosisCode
        diagnosisDescription
        stageNumber
      }
    }
  }
`,GET_ORDERED_DIAGNOSIS_LIST=gql`
  query diagnosisOrdered($patientId: ID!, $isPrimaryDiagnosis: Boolean) {
    diagnosisCodeList(patientId: $patientId, isPrimaryDiagnosis: $isPrimaryDiagnosis) {
      id
      diagnosisCode
      diagnosisDescription
      stageNumber
      tumourStream {
        id
        name
      }
    }
  }
`,GET_CLINEX_CODES=gql`
  query clinexDiagnosis($patientId: ID!) {
    clinexDiagnosisCode(patientId: $patientId) {
      clinexUuid
      diagnosisList {
        id
        diagnosisCode
        diagnosisDescription
        stageNumber
        certainty
        tumourStream {
          id
          name
        }
      }
    }
  }
`,CLINEX_DIAGNOSIS_DATA=gql`
  query clinexDiagnosisDataFull($diagnosisId: ID!) {
    clinexDiagnosisDataFull(diagnosisId: $diagnosisId) {
      diagnosisData
    }
  }
`,LOG_SIGMA_MUTATION=gql`
  mutation logSigma($data: String!) {
    sigmaLogEvent(data: $data) {
      success
    }
  }
`,LOG_CLINEX_MUTATION=gql`
  mutation logClinex($data: String!) {
    clinexLogEvent(data: $data) {
      success
    }
  }
`,GET_DISEASES=gql`
  query diseases($ajccMajorVersion: Int!, $relatedIcdCode: String) {
    diseases(ajccMajorVersion: $ajccMajorVersion, relatedIcdCode: $relatedIcdCode) {
      id
      diseaseId
      title
      chapter
    }
  }
`,GET_MORPHOLOGY_LIST_BY_DISEASE=gql`
  query morphologyListByDisease($diseaseId: String!, $majorVersion: Int!) {
    morphologyListByDisease(diseaseId: $diseaseId, majorVersion: $majorVersion) {
      id
      displayName
    }
  }
`,GET_TNM_LIST_BY_DISEASE=gql`
  query tnmListByDisease($diseaseId: String!, $majorVersion: Int!) {
    tnmListByDisease(diseaseId: $diseaseId, majorVersion: $majorVersion) {
      id
      mainCode
      subCode
      description
    }
  }
`,GET_DIAGNOSIS_INTAKE=gql`
  query intake($diagnosisId: ID!) {
    intake(diagnosisId: $diagnosisId) {
      id
      breast {
        id
        grade
        er
        pgr
        her2
        mastectomy
        reconstruction
        excerciseReferral
        surgery
        oncoplasticSurgery
        reconstructionTimeline
        reconstructionType
        expandersInSitu
        lymphovascularInvasion
        lymphovascularInvasionExtent
        radialMarginStatus
        neoadjuvantSystemicTherapy
        nstAdditionalInfo
        exerciseDiscussedWithPatient
      }
      lung {
        id
        weightLoss
        smokingHistory
        egfr
        alk
        pdl1
      }
      urogenital {
        id
        gleasonOne
        gleasonTwo
        isupGrade
        psa
        psaDate
        psma
        positiveSite
        prostatectomy
      }
      lymphoma {
        id
        stage
        aOrBSymptoms
        extranodal
        bulkDisease
      }
      headAndNeck {
        id
        p16
        smokingHistory
        stageTCode
        stageNCode
        stageMCode
        cigarettesPerDay
        yearsSmoked
        packYears
        dateOfSurgery
        extracapsularExtension
        margins
        marginsMeasurement
        periNeuralInvasion
        pniType
        patientDiscussedAtMdt
        treatmentConsistentMdt
      }
    }
  }
`,CREATE_DIAGNOSIS_INTAKE=gql`
  mutation createIntake($diagnosisId: ID!, $careplanId: ID!, $intakeData: IntakeData) {
    createIntake(diagnosisId: $diagnosisId, careplanId: $careplanId, intakeData: $intakeData) {
      intake {
        id
        breast {
          id
          grade
          er
          pgr
          her2
          mastectomy
          reconstruction
          excerciseReferral
          surgery
          oncoplasticSurgery
          reconstructionTimeline
          reconstructionType
          expandersInSitu
          lymphovascularInvasion
          lymphovascularInvasionExtent
          radialMarginStatus
          neoadjuvantSystemicTherapy
          nstAdditionalInfo
          exerciseDiscussedWithPatient
        }
        lung {
          id
          weightLoss
          smokingHistory
          egfr
          alk
          pdl1
        }
        urogenital {
          id
          gleasonOne
          gleasonTwo
          isupGrade
          psa
          psaDate
          psma
          positiveSite
          prostatectomy
        }
        lymphoma {
          id
          stage
          aOrBSymptoms
          extranodal
          bulkDisease
        }
        headAndNeck {
          id
          p16
          smokingHistory
          stageTCode
          stageNCode
          stageMCode
          cigarettesPerDay
          yearsSmoked
          packYears
          dateOfSurgery
          extracapsularExtension
          margins
          marginsMeasurement
          periNeuralInvasion
          pniType
          patientDiscussedAtMdt
          treatmentConsistentMdt
        }
      }
    }
  }
`,UPDATE_DIAGNOSIS_INTAKE=gql`
  mutation updateIntake($diagnosisId: ID!, $intakeData: IntakeData) {
    updateIntake(diagnosisId: $diagnosisId, intakeData: $intakeData) {
      intake {
        id
        breast {
          id
          grade
          er
          pgr
          her2
          mastectomy
          reconstruction
          excerciseReferral
          surgery
          oncoplasticSurgery
          reconstructionTimeline
          reconstructionType
          expandersInSitu
          lymphovascularInvasion
          lymphovascularInvasionExtent
          radialMarginStatus
          neoadjuvantSystemicTherapy
          nstAdditionalInfo
          exerciseDiscussedWithPatient
        }
        lung {
          id
          weightLoss
          smokingHistory
          egfr
          alk
          pdl1
        }
        urogenital {
          id
          gleasonOne
          gleasonTwo
          isupGrade
          psa
          psaDate
          psma
          positiveSite
          prostatectomy
        }
        lymphoma {
          id
          stage
          aOrBSymptoms
          extranodal
          bulkDisease
        }
        headAndNeck {
          id
          p16
          smokingHistory
          stageTCode
          stageNCode
          stageMCode
          cigarettesPerDay
          yearsSmoked
          packYears
          dateOfSurgery
          extracapsularExtension
          margins
          marginsMeasurement
          periNeuralInvasion
          pniType
          patientDiscussedAtMdt
          treatmentConsistentMdt
        }
      }
    }
  }
`,logger$q=new Logger("ROPatientDiagnosisIntakePage"),intakePageMapping={"H&N":{createVariable:{headAndNeck:{p16:""}},key:"headAndNeck",component:ROPatientDiagnosisIntakeHNPage},Breast:{createVariable:{breast:{grade:""}},key:"breast",component:ROPatientDiagnosisIntakeBreastPageRouter,clinexMappings:breastIntakeClinexMappings},Lung:{createVariable:{lung:{weightLoss:""}},key:"lung",component:ROPatientDiagnosisIntakeLungPage,clinexMappings:lungIntakeClinexMappings},Lymphoma:{createVariable:{lymphoma:{stage:""}},key:"lymphoma",component:ROPatientDiagnosisIntakeLymphomaPage},Urogenital:{createVariable:{urogenital:{isupGrade:""}},key:"urogenital",component:ROPatientDiagnosisIntakeUrogenitalPage,clinexMappings:urogenitalClinexMappings}},ROPatientDiagnosisIntakePage=()=>{var Wt,Ut,Vt,Ht,Gt,Zt;const et=useHistory(),tt=useRouteMatch(),{state:rt}=reactExports.useContext(ROPatientCarePlanContext),{diagnosisId:nt,id:lt,careplanId:ut,oncologyType:dt}=tt.params,[pt]=useMutation(CREATE_CAREPLAN),[ht]=useMutation(UPDATE_DIAGNOSIS),mt=reactExports.useContext(ClinexContext),{clinexData:xt,uuid:Mt,setIntakeFieldsLoaded:vt}=mt,Ot=reactExports.useRef(new Date().getTime()),Rt=useWindowSize().width<1900,[zt]=useMutation(LOG_CLINEX_MUTATION),{data:Tt,loading:Ct}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:ut}}),{values:It,setFieldValue:Dt,setFieldTouched:kt,validateForm:qt}=useFormikContext(),{loading:Nt}=useQuery(GET_DIAGNOSIS_INTAKE,{variables:{diagnosisId:nt},fetchPolicy:"cache-and-network"}),[Yt]=useMutation(UPDATE_DIAGNOSIS_INTAKE),{loading:Kt}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:nt},onCompleted:Xt=>{logMissingDiagnosisCode(logger$q,Xt,"Intake Information")}}),Jt=It==null?void 0:It.intake,Qt=It==null?void 0:It.intakePage,[Bt,Ft]=reactExports.useState(null),$t=()=>{var Xt;if(Qt&&Jt[(Xt=intakePageMapping[Qt])==null?void 0:Xt.key]){const nr={fields:(({__typename:or,id:rr,...cr})=>cr)(Jt[`${intakePageMapping[Qt].key}`]),patientId:lt,diagnosisId:nt,page:"intake",intakeType:intakePageMapping[Qt].key,careplanId:ut,clinexResponseUuid:Mt};logPage(Ot==null?void 0:Ot.current,nr,zt)}};if(reactExports.useEffect(()=>{var Xt,er;!Rt&&((Xt=It==null?void 0:It.intake)!=null&&Xt.id)&&((er=intakePageMapping[Qt])!=null&&er.clinexMappings)&&selectFirstHighlight(intakePageMapping[Qt].clinexMappings,mt)},[xt,Qt,(Wt=It==null?void 0:It.intake)==null?void 0:Wt.id]),!Qt||Kt&&!(It!=null&&It.diagnosis)||Nt&&!It.intake||Ct)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Intake Info",subtitle:"Please wait while we set things up for you"});let jt={};if(CurrentAppConfig.SubmitDiagnosisOnlyAndExit&&(jt={additionLeftText:"Submit diagnosis only and exit",additionLeftDisabled:(Ut=It==null?void 0:It.user)==null?void 0:Ut.isShowcaseUser,onAdditionLeft:()=>{ht({variables:{id:nt,draft:!1,isSubmitDiagnosisOnly:!0}}).then(()=>{et.push(`/${dt}/patient/${lt}/summary`)},Xt=>{logger$q.error(Xt)})}}),Qt&&(It!=null&&It.intake)&&(It!=null&&It.intake[(Vt=intakePageMapping[Qt])==null?void 0:Vt.key])){vt(!0);const Xt=(Ht=intakePageMapping[Qt])==null?void 0:Ht.component,er=(Gt=intakePageMapping[Qt])==null?void 0:Gt.key,nr=(({__typename:rr,id:cr,...ir})=>ir)(It.intake[er]),or=rr=>{Object.keys(rr).forEach(ir=>Dt(`intake.${[intakePageMapping[Qt].key]}.${ir}`,rr[ir])),Yt({variables:{diagnosisId:nt,intakeData:{[`${er}`]:{...nr,...rr}}}})};return jsxRuntimeExports.jsxs("div",{className:classNames$1("main-container-wrapper",{"clinex-wrapper":xt&&!Rt}),children:[jsxRuntimeExports.jsx(CareplanBanners,{data:Tt}),jsxRuntimeExports.jsxs(CareplanContainer,{className:"ro-intake-page",children:[jsxRuntimeExports.jsxs("div",{className:"page-header",children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",children:"Intake Info"}),xt&&PLEASE_REVIEW_CLINEX]}),jsxRuntimeExports.jsx(Xt,{updateIntakeHandler:or,setDateError:Ft,featureVersion:(Zt=Tt==null?void 0:Tt.careplan)==null?void 0:Zt.featureVersion})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{...jt,onBack:()=>{et.push(`/${dt}/patient/${lt}/careplan/${ut}/diagnosis/${nt}/tnmstaging`)},onNext:()=>{$t(),qt().then(rr=>{Object.keys(nr).forEach(ir=>kt(ir)),!(Object.keys(rr).length>0||Bt)&&(ut==="create"&&!rt.careplan.id?pt({variables:{patientId:lt,diagnosisId:nt}}).then(ir=>{const dr=ir.data.createCareplan.careplan.id;et.push(`/${dt}/patient/${lt}/careplan/${dr}/treatmentInfo`)}):et.push(`/${dt}/patient/${lt}/careplan/${rt.careplan.id}/treatmentInfo`))})}})]})}else return jsxRuntimeExports.jsx(reactExports.Fragment,{})},ROPortalDiagnosisContext=React$4.createContext({state:DEFAULT_DIAGNOSIS_STATE,dispatch:()=>{}}),useDiagnosisWorkflow=()=>{const et=useRouteMatch(),{id:tt,careplanId:rt,diagnosisId:nt}=et.params,[lt]=useMutation(CREATE_DIAGNOSIS),[ut]=useMutation(CREATE_CAREPLAN),[dt]=useMutation(UPDATE_CAREPLAN_DIAGNOSIS,{refetchQueries:[{query:GET_DIAGNOSIS,variables:{diagnosisId:nt}}],awaitRefetchQueries:!0}),{state:pt,dispatch:ht}=reactExports.useContext(ROPortalDiagnosisContext),{patientDetails:mt}=reactExports.useContext(ROPatientContext),xt=reactExports.useCallback((Dt,kt)=>{lt({variables:{patientId:tt,diagnosisInput:{isPrimaryDiagnosis:Dt}}}).then(({data:qt})=>{kt&&kt(qt.createDiagnosis.diagnosis)})},[lt,tt]),Mt=reactExports.useCallback(Dt=>{xt(!0,kt=>{ht({type:DiagnosisActionType.SET_DIAGNOSIS,payload:{diagnosis:{...kt}}}),Dt&&Dt(kt.id)})},[xt,ht]),vt=reactExports.useCallback(Dt=>{xt(!1,kt=>{ht({type:DiagnosisActionType.SET_DIAGNOSIS,payload:{diagnosis:{...kt}}}),Dt&&Dt(kt.id)})},[xt,ht]),Ot=reactExports.useCallback(Dt=>{xt(!0,kt=>{ht({type:DiagnosisActionType.SET_DIAGNOSIS,payload:{diagnosis:{...pt.diagnosis,relatedPrimaryDiagnosis:{...kt}}}}),dt({variables:{careplanId:rt,diagnosisId:nt,relatedPrimaryDiagnosisId:kt.id}}).then(()=>{Dt&&Dt(kt.id)})})},[xt,pt,dt,nt,ht]),At=reactExports.useCallback((Dt,kt,qt)=>{ut({variables:{patientId:tt,diagnosisId:Dt,isPrimDiagnosisOwner:kt,isMetsDiagnosisOwner:!kt}}).then(({data:Nt})=>{qt&&qt(Nt.createCareplan.careplan.id)})},[ut,tt]),Rt=reactExports.useCallback(Dt=>{Mt(kt=>{At(kt,!0,qt=>{Dt&&Dt(qt,kt)})})},[At,Mt]),zt=reactExports.useCallback(Dt=>{vt(kt=>{At(kt,!1,qt=>{Dt&&Dt(qt,kt)})})},[At,vt]),Tt=reactExports.useCallback((Dt,kt)=>{dt({variables:{careplanId:Dt,diagnosisId:kt}})},[dt]),Ct=reactExports.useCallback(()=>mt==null?void 0:mt.carepathPatientDiagnosis.some(Dt=>Dt.isPrimaryDiagnosis&&Dt.emrDiagnosisKey!==null),[mt]),It=reactExports.useCallback(()=>mt==null?void 0:mt.carepathPatientDiagnosis.some(Dt=>!Dt.isPrimaryDiagnosis&&Dt.emrDiagnosisKey!==null),[mt]);return{createPrimaryDiagnosisWithContext:Mt,createMetastasisDiagnosisWithContext:vt,createCareplanAndPrimaryDiagnosis:Rt,createCareplanAndMetastasisDiagnosis:zt,createRelatedDiagnosisWithContext:Ot,updateCareplanDiagnosis:Tt,hasExistingPrimaryDiagnosis:Ct,hasExistingMetastasisDiagnosis:It}};var ArrowForwardIos={},_interopRequireDefault$h=interopRequireDefaultExports;Object.defineProperty(ArrowForwardIos,"__esModule",{value:!0});var default_1$h=ArrowForwardIos.default=void 0,_createSvgIcon$h=_interopRequireDefault$h(requireCreateSvgIcon()),_jsxRuntime$h=jsxRuntimeExports;default_1$h=ArrowForwardIos.default=(0,_createSvgIcon$h.default)((0,_jsxRuntime$h.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");const DiagnosisSelectionButton=({diagnosis:et,button:tt,nextPage:rt})=>{const nt=useTheme$1();return jsxRuntimeExports.jsx("div",{className:"item-container",id:`button-${tt.id}`,children:jsxRuntimeExports.jsxs("button",{style:{cursor:"pointer"},"data-testid":tt.id,className:classNames$1("item",{[tt.id]:!0,active:Object.keys(et).length!==0&&et.isPrimaryDiagnosis!==null&&(et.isPrimaryDiagnosis?tt.id==="primary":tt.id==="metastasis")}),onClick:()=>{rt(tt.id)},children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("i",{className:classNames$1("dx-icon","icon",{"icon-dx-primary":tt.id==="primary","icon-dx-metastasis":tt.id==="metastasis"})})}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:tt.text}),jsxRuntimeExports.jsx(default_1$h,{fontSize:"small",htmlColor:nt.palette.grey[600]})]}),jsxRuntimeExports.jsx("hr",{style:{border:`2px solid ${tt.id==="primary"?nt.palette.primary.main:nt.palette.warning.main}`,marginBottom:"15px"}}),jsxRuntimeExports.jsx(Typography,{className:"dx-description",variant:"body1",children:tt.description})]})},tt.id)},ROPatientDiagnosisPrimaryOrMetastasis=()=>{const et=useHistory(),tt=useRouteMatch(),{id:rt,careplanId:nt,diagnosisId:lt,oncologyType:ut}=tt.params,{state:dt,dispatch:pt}=reactExports.useContext(ROPortalDiagnosisContext),{createCareplanAndPrimaryDiagnosis:ht,createCareplanAndMetastasisDiagnosis:mt,hasExistingMetastasisDiagnosis:xt,hasExistingPrimaryDiagnosis:Mt}=useDiagnosisWorkflow(),{data:vt}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:lt},skip:lt==="create"||lt===void 0,onCompleted:()=>{vt&&pt({type:DiagnosisActionType.REPLACE_CURRENT_DIAGNOSIS,payload:{diagnosis:vt.diagnosis}})}}),{diagnosis:Ot}=dt,At=[{id:"primary",text:`Primary ${CurrentAppConfig.DefaultValue.tumourName}`,description:"Create a careplan of the primary diagnosis for the patient."},{id:"metastasis",text:"Metastasis",description:"Create a careplan of the metastatic diagnosis for the patient."}],Rt=zt=>{const Tt=nt||"create",Ct=lt||"create",It=zt||(Ot.isPrimaryDiagnosis?"primary":"metastasis"),kt=zt&&(zt&&zt==="primary")!==Ot.isPrimaryDiagnosis;if(nt==="create"&&(!lt||lt==="create")){const qt=(Nt,Yt)=>{const Kt=It==="primary"?"newPrimary":"newMetastasis";et.push(`/${ut}/patient/${rt}/careplan/${Nt}/diagnosis/${Yt}/${It}/${Kt}`)};if(It==="primary"&&!Mt()){ht(qt);return}if(It==="metastasis"&&!xt()){mt(qt);return}}kt&&(pt({type:DiagnosisActionType.RESET,payload:{isPrimaryDiagnosis:It==="primary"}}),et.push(`/${ut}/patient/${rt}/careplan/${Tt}/diagnosis/create/${It}`)),et.push(`/${ut}/patient/${rt}/careplan/${Tt}/diagnosis/${Ct}/${It}`)};return jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsx("div",{className:"page-header",children:jsxRuntimeExports.jsx(Typography,{variant:"h5",children:"Diagnosis Selection"})}),jsxRuntimeExports.jsx("div",{className:"create-diagnosis-list",children:jsxRuntimeExports.jsx("div",{className:"item-list-container",children:jsxRuntimeExports.jsx("div",{className:"item-list",children:At.map(zt=>jsxRuntimeExports.jsx(DiagnosisSelectionButton,{diagnosis:Ot,button:zt,nextPage:Rt},zt.id))})})})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{},onNext:()=>{Rt(null)},nextDisabled:Ot.isPrimaryDiagnosis===null,backDisabled:!0})]})},logger$p=new Logger("ROPatientDiagnosisSelectionPage"),PRIMARY_DIAG_HEADING="Primary Diagnosis Selection",PRIMARY_SUBTITLE="Use existing primary diagnosis or record a new primary diagnosis",METASTASIS_DIAG_HEADING="Metastasis Diagnosis Selection",METASTASIS_SUBTITLE="Use existing metastasis diagnosis or record a new metastasis diagnosis",PRIMARY_DIAG_BTN_TITLE="New primary diagnosis",METASTASIS_DIAG_BTN_TITLE="New metastasis diagnosis",PRIMARY_DIAG_SEC_HEADING="Existing Primary Diagnosis",METASTASIS_DIAG_SEC_HEADING="Existing Metastasis Diagnosis",ROPatientDiagnosisSelectionPage=()=>{var dr;const[et,tt]=reactExports.useState(!1),{state:rt,dispatch:nt}=reactExports.useContext(ROPortalDiagnosisContext),lt=useRouteMatch(),{id:ut,diagnosisId:dt,careplanId:pt,page:ht,oncologyType:mt}=lt.params,xt=useHistory(),{setError:Mt}=useErrorModalContext(),{setFieldValue:vt,values:Ot}=useFormikContext(),[At]=useMutation(CREATE_DIAGNOSIS),[Rt]=useMutation(CREATE_CAREPLAN),zt=useTheme$1(),{data:Tt,error:Ct,refetch:It}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:dt},skip:dt==="create",onCompleted:()=>{Tt&&nt({type:DiagnosisActionType.REPLACE_CURRENT_DIAGNOSIS,payload:{diagnosis:Tt.diagnosis}})}});reactExports.useEffect(()=>{dt!=="create"&&It()},[dt]);const{diagnosis:Dt}=rt,kt=Dt.diagnosisCode&&!Dt.isPrimaryDiagnosis?Dt.diagnosisCode.diagnosisCode:"",{data:qt,loading:Nt,error:Yt}=useQuery(GET_PATIENT_DIAGNOSIS_LIST,{variables:{patientId:ut,diagnosisType:ht,secondaryCode:kt},fetchPolicy:"cache-and-network"});reactExports.useEffect(()=>{if(Ct)return Mt()},[Ct]),useQuery(GET_ORDERED_DIAGNOSIS_LIST,{variables:{isPrimaryDiagnosis:ht==="primary",patientId:ut},fetchPolicy:"network-only"});const Kt=ht==="primary"?PRIMARY_DIAG_HEADING:METASTASIS_DIAG_HEADING,Jt=ht==="primary"?PRIMARY_SUBTITLE:METASTASIS_SUBTITLE,Qt=ht==="primary"?PRIMARY_DIAG_BTN_TITLE:METASTASIS_DIAG_BTN_TITLE,Bt=ht==="primary"?PRIMARY_DIAG_SEC_HEADING:METASTASIS_DIAG_SEC_HEADING,Ft=ht==="primary"?"newPrimary":"newMetastasis",$t=()=>jsxRuntimeExports.jsx(Typography,{variant:"body1",style:{marginLeft:"9px"},children:"No existing diagnosis found."}),jt=(gr,br,ar,ur,xr,Mr,Ar,Ir)=>{if(["primary","metastasis"].includes(ur)&&ar.diagnosisCode){if(Mr({type:DiagnosisActionType.REPLACE_CURRENT_DIAGNOSIS,payload:{diagnosis:{...gr,...ar}}}),ur==="primary"){const Rr=gr&&gr.isPrimaryDiagnosis===!0,wr=xr!=="create"&&br==="create";if(Rr){Ir({variables:{careplanId:xr,diagnosisId:ar.id}});return}if(wr){Ir({variables:{careplanId:xr,diagnosisId:ar.id,relatedPrimaryDiagnosisId:""}});return}Ir({variables:{careplanId:xr,diagnosisId:ar.id,relatedPrimaryDiagnosisId:ar.id}}),vt("diagnosis",{...Ot.diagnosis,relatedPrimaryDiagnosis:{id:ar.id}});return}if(ur==="metastasis"){const Rr=ar.relatedPrimaryDiagnosis?ar.relatedPrimaryDiagnosis.id:"";Ir({variables:{careplanId:xr,diagnosisId:ar.id,relatedPrimaryDiagnosisId:Rr}}),vt("diagnosis",{...Ot.diagnosis,relatedPrimaryDiagnosis:{id:Rr}});return}}},Wt=(gr,br,ar,ur,xr,Mr,Ar,Ir)=>{const Rr=()=>{Ar({variables:{id:br,relatedPrimaryDiagnosis:ar.id}}),vt("diagnosis",{...Ot.diagnosis,relatedPrimaryDiagnosis:{id:ar.id,diagnosisCode:ar.diagnosisCode}}),Mr({type:DiagnosisActionType.SET_DIAGNOSIS,payload:{diagnosis:{...gr,relatedPrimaryDiagnosis:ar}}})},wr=()=>{jt(gr,br,ar,ur,xr,Mr,Ar,Ir)},qr=()=>{Mr({type:DiagnosisActionType.SET_DIAGNOSIS,payload:{diagnosis:{...gr,...ar}}})};if(ur==="primary"){const Hr=gr&&gr.isPrimaryDiagnosis===!1,kr=xr!=="create",$r=xr==="create";if(Hr){Rr();return}if(kr){wr(),xt.push(`/${mt}/patient/${ut}/careplan/${xr}/diagnosis/${ar.id}/${ur}/`);return}if($r){qr(),xt.push(`/${mt}/patient/${ut}/careplan/${xr}/diagnosis/${ar.id}/${ur}/`);return}}if(ur==="metastasis"){const Hr=xr!=="create",kr=xr==="create";if(Hr){wr(),xt.push(`/${mt}/patient/${ut}/careplan/${xr}/diagnosis/${ar.id}/${ur}/`);return}if(kr){qr(),xt.push(`/${mt}/patient/${ut}/careplan/${xr}/diagnosis/${ar.id}/${ur}/`);return}}},Ut=(gr,br,ar,ur,xr,Mr,Ar,Ir)=>{const{diagnosis:Rr}=gr;return ar.diagnosisList.filter(wr=>wr.diagnosisCode).map(wr=>jsxRuntimeExports.jsx(ROPatientDiagnosisCurrentCode,{active:Rr.id===wr.id||Rr.relatedPrimaryDiagnosis&&Rr.relatedPrimaryDiagnosis.id===wr.id,diagnosisCodeSet:wr,open:!0,showTitle:!0,onClick:()=>{Wt(Rr,Mr,wr,ur,xr,br,Ar,Ir)}},wr.id))},Vt=(gr,br,ar,ur,xr,Mr,Ar,Ir)=>ar&&ar.diagnosisList&&ar.diagnosisList.length>0?Ut(gr,br,ar,ur,xr,Mr,Ar,Ir):$t(),Ht=()=>{const gr=useRouteMatch(),br=useHistory(),{id:ar,diagnosisId:ur,careplanId:xr,page:Mr}=gr.params,{state:Ar,dispatch:Ir}=reactExports.useContext(ROPortalDiagnosisContext),{diagnosis:Rr}=Ar,{setError:wr}=useErrorModalContext(),[qr]=useMutation(UPDATE_DIAGNOSIS,{refetchQueries:[{query:GET_DIAGNOSIS,variables:{diagnosisId:ur}}],awaitRefetchQueries:!0}),[Hr]=useMutation(UPDATE_CAREPLAN_DIAGNOSIS,{refetchQueries:[{query:GET_DIAGNOSIS,variables:{diagnosisId:ur}}],awaitRefetchQueries:!0,onCompleted:({updateCareplanDiagnosis:kr})=>{br.push(`/${mt}/patient/${ar}/careplan/${xr}/diagnosis/${kr.diagnosis}/${Mr}`)}});return reactExports.useEffect(()=>{if(Yt)return wr()},[Yt]),Nt&&!qt?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Diagnosis Selection"}):jsxRuntimeExports.jsx("div",{className:classNames$1("diagnosis-selection-list",{primary:Rr.isPrimaryDiagnosis}),children:jsxRuntimeExports.jsx("div",{className:"item-list-container",children:jsxRuntimeExports.jsx("div",{className:"item-list",children:Vt(Ar,Ir,qt,Mr,xr,ur,qr,Hr)})})})},Gt=()=>ht==="primary"&&Tt&&!Tt.diagnosis.isPrimaryDiagnosis?`/${mt}/patient/${ut}/careplan/${pt}/diagnosis/${dt}/metastasis/newMetastasis`:`/${mt}/patient/${ut}/careplan/${pt}/diagnosis/${dt}/`,[Zt]=useMutation(UPDATE_CAREPLAN_DIAGNOSIS,{onCompleted:({updateCareplanDiagnosis:gr})=>{xt.push(`/${mt}/patient/${ut}/careplan/${pt}/diagnosis/${gr.diagnosis}/${ht}/${Ft}`)}}),Xt=()=>{const gr=ht==="primary";tt(!0),At({variables:{patientId:ut,diagnosisInput:{isPrimaryDiagnosis:gr}}}).then(br=>{const ar=br.data.createDiagnosis.diagnosis.id;nt({type:DiagnosisActionType.SET_DIAGNOSIS,payload:{diagnosis:{...br.data.createDiagnosis.diagnosis}}}),Zt({variables:{careplanId:pt,diagnosisId:ar,isPrimDiagnosisOwner:gr,isMetsDiagnosisOwner:!gr}})},br=>{logger$p.info(br)}).finally(()=>tt(!1))},er=()=>{tt(!0),At({variables:{patientId:ut,diagnosisInput:{isPrimaryDiagnosis:ht==="primary"}}}).then(gr=>{const br=gr.data.createDiagnosis.diagnosis.id;nt({type:DiagnosisActionType.SET_DIAGNOSIS,payload:{diagnosis:{...gr.data.createDiagnosis.diagnosis}}}),Rt({variables:{diagnosisId:br,patientId:ut}}).then(ar=>{const ur=ar.data.createCareplan.careplan.id;xt.push(`/${mt}/patient/${ut}/careplan/${ur}/diagnosis/${br}/${ht}/${Ft}`)})},gr=>{logger$p.info(gr)}).finally(()=>tt(!1))},nr=()=>{tt(!0),At({variables:{patientId:ut,diagnosisInput:{isPrimaryDiagnosis:!0}}}).then(gr=>{const br=gr.data.createDiagnosis.diagnosis.id;Zt({variables:{careplanId:pt,diagnosisId:dt,relatedPrimaryDiagnosisId:br}}),vt("diagnosis",{...Ot.diagnosis,relatedPrimaryDiagnosis:{id:br}}),xt.push(`/${mt}/patient/${ut}/careplan/${pt}/diagnosis/${dt}/${ht}/${Ft}`)},gr=>{logger$p.info(gr)}).finally(()=>tt(!1))},or=(gr,br)=>{Rt({variables:{diagnosisId:gr,patientId:br}}).then(ar=>{const ur=ar.data.createCareplan.careplan.id;xt.push(`/${mt}/patient/${br}/careplan/${ur}/${CAREPLAN_PAGES.TREATMENT_INFO}`)},ar=>{logger$p.error(ar)})},rr=()=>{if(ht==="primary"){const gr=Tt&&Tt.diagnosis&&!Tt.diagnosis.isPrimaryDiagnosis,br=rt.diagnosis&&rt.diagnosis.id&&pt==="create",ar=rt.diagnosis&&rt.diagnosis.id&&pt!=="create";if(Tt&&Tt.diagnosis&&Tt.diagnosis.relatedPrimaryDiagnosis&&Tt.diagnosis.relatedPrimaryDiagnosis.draft||Tt&&Tt.diagnosis&&Tt.diagnosis.isPrimaryDiagnosis&&Tt.diagnosis.draft)return`/${mt}/patient/${ut}/careplan/${pt}/diagnosis/${dt}/primary/newPrimary`;if(gr)return`/${mt}/patient/${ut}/careplan/${pt}/diagnosis/${dt}/${CAREPLAN_PAGES.STAGING}`;if(br)return or(dt,ut),"NOTHING";if(ar)return`/${mt}/patient/${ut}/careplan/${pt}/${CAREPLAN_PAGES.TREATMENT_INFO}`}if(ht==="metastasis"){const gr=pt!=="create",br=pt==="create";if(Tt&&Tt.diagnosis&&!Tt.diagnosis.isPrimaryDiagnosis&&Tt.diagnosis.draft)return`/${mt}/patient/${ut}/careplan/${pt}/diagnosis/${dt}/metastasis/newMetastasis`;if(br)return or(dt,ut),"NOTHING";if(gr)return`/${mt}/patient/${ut}/careplan/${pt}/${CAREPLAN_PAGES.TREATMENT_INFO}`}return logger$p.error("nextURL",["Diagnosis Selection Page: Unable to determine the next URL this user should be directed to.",Tt]),""},cr=ht==="primary"&&Tt&&Tt.diagnosis&&Tt.diagnosis.isPrimaryDiagnosis===!1&&!Tt.diagnosis.relatedPrimaryDiagnosis,ir=Tt&&Tt.diagnosis&&((dr=Tt.diagnosis)==null?void 0:dr.diagnosisCode)===null;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsxs("div",{className:"page-header",children:[jsxRuntimeExports.jsx(Typography,{paddingBottom:1,variant:"h5",children:Kt}),jsxRuntimeExports.jsx(Typography,{color:zt.palette.text.secondary,variant:"body1",children:Jt})]}),jsxRuntimeExports.jsx("div",{style:{marginBottom:"16px"},"data-test-id":"new-dx-button",className:"title-button-row",children:jsxRuntimeExports.jsx(Button,{variant:"outlined","data-testid":"new-diagnosis-button",disabled:et,startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),onClick:()=>{if(nt({type:ht==="primary"?DiagnosisActionType.SET_NEW_PRIMARY:DiagnosisActionType.SET_NEW_METASTASIS,payload:{}}),ht==="primary"){const gr=pt==="create"&&dt==="create",br=dt!=="create"&&rt.diagnosis&&!rt.diagnosis.isPrimaryDiagnosis,ar=pt!=="create"&&dt==="create",ur=dt!=="create"&&pt!=="create",xr=dt!=="create"&&pt==="create";if(br){nr();return}if(gr||xr){er();return}if(ar||ur){Xt();return}}if(ht==="metastasis")if(pt==="create"){er();return}else{Xt();return}logger$p.error("Select Diagnosis",["Diagnosis Selection Page: Unhandled scenario for joining diagnosis.",rt])},children:Qt})}),jsxRuntimeExports.jsx(Divider$1,{sx:{marginBottom:"16px"},children:"OR"}),jsxRuntimeExports.jsx("div",{style:{marginBottom:"16px"},children:jsxRuntimeExports.jsx(Typography,{variant:"h6",style:{lineHeight:"32px"},children:Bt})}),jsxRuntimeExports.jsx("div",{className:"create-diagnosis-list",children:jsxRuntimeExports.jsx(Ht,{})})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{xt.push(Gt())},onNext:()=>{const gr=rr();gr!=="NOTHING"&&gr!==""&&xt.push(gr)},nextDisabled:dt==="create"||cr||ir,backDisabled:et})]})})},REACT_APP_REGION$a=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$5=REACT_APP_REGION$a,NEW_PRIMARY="newPrimary",NEW_METASTASIS="newMetastasis",CLINEX=0,FREQUENT=1,ICD10=2,ROPatientDiagnosisICD10Page=()=>{var Zr;const et=useHistory(),tt=useTheme$1(),rt=useLocation(),nt=reactExports.useRef(new Date().getTime()),lt=useRouteMatch(),{id:ut,careplanId:dt,page:pt,operation:ht,diagnosisId:mt,oncologyType:xt}=lt.params,{values:Mt,setFieldValue:vt}=useFormikContext(),[Ot,At]=reactExports.useState(!1),[Rt,zt]=reactExports.useState(FREQUENT),[Tt,{loading:Ct,called:It}]=useMutation(CREATE_DIAGNOSIS_INTAKE),{hasExistingPrimaryDiagnosis:Dt,createRelatedDiagnosisWithContext:kt}=useDiagnosisWorkflow(),{setError:qt}=useErrorModalContext(),{data:Nt}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:dt}}),[Yt]=useMutation(UPDATE_DIAGNOSIS,{refetchQueries:[{query:GET_DIAGNOSIS,variables:{diagnosisId:mt}},{query:GET_CAREPLAN,variables:{id:dt}}],awaitRefetchQueries:!0,onCompleted:()=>{At(!1)}}),[Kt]=useMutation(CREATE_CAREPLAN),[Jt]=useMutation(UPDATE_CAREPLAN_DIAGNOSIS,{onCompleted:({data:Xr})=>{et.push(`/${xt}/patient/${ut}/careplan/${dt}/diagnosis/${Xr.diagnosis}/${pt}`)}}),[Qt,Bt]=reactExports.useState(!1),[Ft,$t]=reactExports.useState([]),[jt,Wt]=reactExports.useState(),[Ut,Vt]=reactExports.useState({selectedDiagCode:"",selectedCategoryIdx:0,selectedTumourSteam:Mt.selectedTumourStream}),[Ht,Gt]=reactExports.useState(void 0),[Zt]=useMutation(LOG_CLINEX_MUTATION),[Xt,er]=reactExports.useState([]),[nr,or]=reactExports.useState([]),[rr,cr]=reactExports.useState([]),{loading:ir,error:dr,data:gr}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:mt},fetchPolicy:"cache-and-network"}),{loading:br,error:ar,data:ur}=useQuery(GET_ORDERED_DIAGNOSIS_LIST,{variables:{isPrimaryDiagnosis:rt.pathname.includes("primary"),patientId:ut},onCompleted:Xr=>{or(Xr.diagnosisCodeList)},fetchPolicy:"cache-and-network"}),{error:xr}=useQuery(GET_ICD10_CATEGORY_LIST,{variables:{isPrimaryDiagnosis:ht===NEW_PRIMARY},onCompleted:Xr=>{if(Xr!=null&&Xr.diagnosisCategoryList){const cn={...Xr},Qr=cn.diagnosisCategoryList.reduce((_r,ln)=>{if(ln!=null&&ln.diagnosisList.length){const vn=ln.diagnosisList.map(Cr=>({...Cr,tumourStream:{name:ln==null?void 0:ln.tumourStream}}));return _r=[..._r,...vn],_r}else return[]},[]);er(Qr);const rn=[...cn.diagnosisCategoryList].sort((_r,ln)=>_r.tumourStream.localeCompare(ln.tumourStream));cr(rn)}Xr!=null&&Xr.diagnosisCategoryList[0]&&Vt({...Ut,selectedTumourSteam:Xr.diagnosisCategoryList[0].tumourStream})},fetchPolicy:"cache-and-network"}),{loading:Mr,error:Ar,data:Ir}=useQuery(GET_CLINEX_CODES,{variables:{patientId:ut},onCompleted:Xr=>{const cn=Xr.clinexDiagnosisCode.diagnosisList,Qr=Xr.clinexDiagnosisCode.clinexUuid;Wt(Qr),$t(cn);const rn=(cn==null?void 0:cn.length)>0&&region$5!==Region.UK;(cn==null?void 0:cn.length)>0&&region$5!==Region.UK&&ht!==NEW_METASTASIS&&(Bt(rn),Vt({...Ut}),zt(CLINEX))},fetchPolicy:"cache-and-network"});reactExports.useEffect(()=>{if(dr||Ar||xr||ar)return qt()},[dr,Ar,xr,ar]);const Rr=Xr=>{if(zt(FREQUENT),ht===NEW_PRIMARY&&(qr.isPrimaryDiagnosis||qr.relatedPrimaryDiagnosis&&qr.relatedPrimaryDiagnosis.id&&qr.diagnosisCode))return et.push(`/${xt}/patient/${ut}/careplan/${Xr}/diagnosis/${mt}/${CAREPLAN_PAGES.STAGING}`);if(Dt())return et.push(`/${xt}/patient/${ut}/careplan/${Xr}/diagnosis/${mt}/primary`);if(qr.relatedPrimaryDiagnosis&&qr.relatedPrimaryDiagnosis.id)return et.push(`/${xt}/patient/${ut}/careplan/${dt}/diagnosis/${mt}/primary/newPrimary`);kt(cn=>{var Qr;return vt("diagnosis",{...Mt.diagnosis,relatedPrimaryDiagnosis:{...(Qr=Mt.diagnosis)==null?void 0:Qr.relatedPrimaryDiagnosis,id:cn}}),et.push(`/${xt}/patient/${ut}/careplan/${dt}/diagnosis/${mt}/primary/newPrimary`)})};if(ir&&!(Mt!=null&&Mt.diagnosis)||Mr&&!((Zr=Ir==null?void 0:Ir.clinexDiagnosisCode)!=null&&Zr.diagnosisList)||br||!ur)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Diagnosis Selection",subtitle:"Please wait while we set things up for you"});const wr=(Xr,cn)=>{[NEW_PRIMARY,NEW_METASTASIS].includes(pt)&&(Xr.isPrimaryDiagnosis&&Jt({variables:{careplanId:dt,diagnosisId:Xr.id}}),Xr.isPrimaryDiagnosis||Jt({variables:{careplanId:dt,diagnosisId:Xr.id,relatedPrimaryDiagnosisId:cn.id}}))},qr=Mt==null?void 0:Mt.diagnosis,Hr=ht===NEW_PRIMARY&&(qr!=null&&qr.isPrimaryDiagnosis)||ht===NEW_METASTASIS&&!(qr!=null&&qr.isPrimaryDiagnosis)?qr:qr==null?void 0:qr.relatedPrimaryDiagnosis,kr=ht===NEW_PRIMARY?"primary":"metastasis",$r=(Xr,cn=!0)=>{var rn,_r,ln,vn,Cr;if(ht===NEW_PRIMARY){const gn={diagnosisCode:Xr.diagnosisCode,diagnosisDescription:Xr.diagnosisDescription,tumourStream:{name:Xr.tumourStream.name}};Mt.diagnosis.isPrimaryDiagnosis?vt("diagnosis",{...Mt.diagnosis,diagnosisCode:{...(rn=Mt.diagnosis)==null?void 0:rn.diagnosisCode,...gn}}):vt("diagnosis",{...Mt.diagnosis,relatedPrimaryDiagnosis:{...(_r=Mt.diagnosis)==null?void 0:_r.relatedPrimaryDiagnosis,diagnosisCode:{...(vn=(ln=Mt.diagnosis)==null?void 0:ln.relatedPrimaryDiagnosis)==null?void 0:vn.diagnosisCode,...gn}}})}if(ht===NEW_METASTASIS){const gn={diagnosisCode:Xr.diagnosisCode,description:Xr.diagnosisDescription};vt("diagnosis",{...Mt.diagnosis,diagnosisCode:{...(Cr=Mt.diagnosis)==null?void 0:Cr.diagnosisCode,...gn}})}if(!Xr.id)return;Vt({...Ut,selectedDiagCode:Xr.id});let Qr="clinical";if(Xr.tumourStream.name==="Breast"&&(Qr="pathological"),qr.isPrimaryDiagnosis&&ht===NEW_PRIMARY||!qr.isPrimaryDiagnosis&&ht===NEW_METASTASIS)At(!0),Yt({variables:{id:qr.id,diagnosisCodeId:Xr.id,stageType:Qr}});else{const gn=qr.relatedPrimaryDiagnosis?qr.relatedPrimaryDiagnosis.id:"";gn!==""&&!qr.isPrimaryDiagnosis?(At(!0),wr(qr.id,gn),Yt({variables:{id:gn,diagnosisCodeId:Xr.id,stageType:Qr}})):qr.relatedPrimaryDiagnosis&&(At(!0),Yt({variables:{id:qr.relatedPrimaryDiagnosis.id,diagnosisCodeId:Xr.id,stageType:Qr}}))}cn&&Gt(void 0)},yr=()=>Hr&&(typeof Hr.diagnosisCode>"u"||Hr.diagnosisCode===null)||Ot||Ct,Or=()=>jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{className:"icd10-cate-item",children:"No data available"})}),Dr=Xr=>Xr&&Xr.length>0?Yr(Xr):Or(),Fr=(Xr,cn)=>Xr&&Xr.length>0?Xr.map(rn=>{var ln;const _r=((ln=Hr==null?void 0:Hr.diagnosisCode)==null?void 0:ln.diagnosisCode)===rn.diagnosisCode;return jsxRuntimeExports.jsx("div",{style:{display:"flex"},children:jsxRuntimeExports.jsx(Button,{className:classNames$1("code-list-item-icd10",{"best-match":cn&&rn.certainty==="high"}),"data-testid":"item-description",value:rn.id,onClick:()=>{Hr&&$r(rn),Vt({...Ut,selectedDiagCode:rn.id})},style:{width:"100%",border:_r?`2px solid ${tt.palette.primary.main}`:`1px solid ${tt.palette.grey[300]}`},children:jsxRuntimeExports.jsxs(Stack$5,{width:1,height:1,paddingLeft:2,justifyContent:"top",children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",justifyContent:"left",children:[_r&&jsxRuntimeExports.jsx(CheckCircle$1,{color:"primary",style:{fontSize:"32px"},sx:{paddingRight:"8px"}}),jsxRuntimeExports.jsxs(Typography,{variant:"h6","data-testid":"item-code",children:[rn.diagnosisCode," ",rn.tumourStream.name]})]}),jsxRuntimeExports.jsx(Typography,{variant:"body1",children:rn.diagnosisDescription.trim()})]})})},rn.id)}):[],Yr=Xr=>{if(Xr&&Xr.length>0)return Xr.map((Qr,rn)=>{const _r=rn===Ut.selectedCategoryIdx;return jsxRuntimeExports.jsx(Stack$5,{className:classNames$1("icd10-cate-item",{active:_r}),onClick:()=>{Vt({...Ut,selectedCategoryIdx:rn,selectedTumourSteam:Qr.tumourStream})},children:jsxRuntimeExports.jsx(Typography,{variant:"body1",className:classNames$1({active:_r}),style:{borderLeft:_r?`4px solid ${tt.palette.primary.main}`:"none",borderRadius:`${rn===0?"4px 0 0 0":"0"}`},children:Qr.tumourStream})},`${Qr.tumourStream}_${rn}`)})},Gr=Xr=>{if(Xr&&Xr.length>0)return Xr.map(Qr=>Ut.selectedTumourSteam!==Qr.tumourStream?[]:Qr.diagnosisList.map(rn=>{const _r=Ut.selectedDiagCode===rn.id;return jsxRuntimeExports.jsx("button",{className:classNames$1("code-list-item",{active:_r}),style:{borderLeft:_r?`4px solid ${tt.palette.primary.main}`:"none"},value:rn.id,onClick:()=>{$r({...rn,tumourStream:{name:Qr.tumourStream}})},children:jsxRuntimeExports.jsxs(Typography,{variant:"body1",sx:{lineHeight:"16px"},children:[rn.diagnosisCode,"-",Qr.tumourStream,": ",rn.diagnosisDescription]})},rn.id)}))},Jr=(Xr,cn)=>{zt(cn)},jr={display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gridColumnGap:"15px",gridAutoRows:"1fr",gridRowGap:"5px",maxWidth:"100%"};return jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsx(CareplanBanners,{data:Nt}),jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsx("div",{className:"page-header",children:jsxRuntimeExports.jsx(Typography,{variant:"h5",children:`${ht===NEW_PRIMARY?"Primary":"Metastasis"} Diagnosis Selection`})}),jsxRuntimeExports.jsx("div",{className:"create-diagnosis-icd10-list",children:jsxRuntimeExports.jsx(Stack$5,{id:"icd10-cate-list-conainer",children:jsxRuntimeExports.jsxs("div",{className:classNames$1({primary:pt===NEW_PRIMARY}),children:[jsxRuntimeExports.jsxs("div",{className:"create-diagnosis-icd10-list-header",style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"16px",paddingBottom:"16px"},children:[jsxRuntimeExports.jsxs(Tabs,{className:"freq-icd10-menu",value:Rt,onChange:Jr,children:[Qt&&ht!==NEW_METASTASIS&&jsxRuntimeExports.jsx(Tab,{label:"Suggested diagnosis",className:"suggested",value:0}),jsxRuntimeExports.jsx(Tab,{label:"Frequently used",className:"freq",value:1}),jsxRuntimeExports.jsx(Tab,{label:"ICD 10",className:"icd10",value:2})]}),jsxRuntimeExports.jsx(BaseAutocomplete,{id:"icd10Select",value:Ht,fullWidth:!0,disableClearable:!0,onChange:Xr=>{const cn=typeof Xr=="string"?Xr:Xr==null?void 0:Xr.value;if(Gt(typeof Xr=="string"?{label:Xr,value:Xr}:Xr),cn){const rn=cn,_r=Xt.find(({id:ln})=>ln===rn);$r(_r,!1)}else $r(DEFAULT_DIAGNOSIS_CODE_TYPE,!1)},options:Xt.map(Xr=>({value:Xr.id.toString(),label:Xr.diagnosisCode+" - "+Xr.diagnosisDescription})),placeholder:`Search ${kr} diagnoses…`,sx:{width:"400px"},InputProps:{startAdornment:jsxRuntimeExports.jsx(Search,{color:"primary",sx:{marginLeft:"8px"}})}})]}),jsxRuntimeExports.jsxs(Stack$5,{id:"icd10-list-content",children:[Qt&&Rt===CLINEX&&jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",marginBottom:3,children:"The following diagnosis codes are suggested by Clinex based on the patient's pathology and imaging reports."}),jsxRuntimeExports.jsx("div",{className:"code-list-container",children:jsxRuntimeExports.jsx("div",{className:"code-list","data-testid":"top-9-list",children:jsxRuntimeExports.jsx("div",{style:jr,children:Fr(Ft,!0)})})})]}),Rt===FREQUENT&&jsxRuntimeExports.jsx(Stack$5,{children:jsxRuntimeExports.jsx("div",{className:"code-list-container",children:jsxRuntimeExports.jsx("div",{className:"code-list","data-testid":"top-9-list",children:jsxRuntimeExports.jsx("div",{style:jr,children:Fr(nr.slice(0,9),!1)})})})}),Rt===ICD10&&jsxRuntimeExports.jsx(Stack$5,{className:"icd10-list",children:jsxRuntimeExports.jsx("div",{className:"code-list-container",style:{maxHeight:"600px"},children:jsxRuntimeExports.jsx("div",{className:"code-list",children:jsxRuntimeExports.jsxs(Grid,{container:!0,sx:{border:`1px solid ${tt.palette.grey[300]}`,borderRadius:"5px"},children:[jsxRuntimeExports.jsx(Grid,{item:!0,md:3,xs:12,className:"icd10-cate-list flex-column",id:"icd10-cate-list",children:Dr(rr)}),jsxRuntimeExports.jsx(Grid,{item:!0,md:9,xs:12,className:"px-0",sx:{overflowY:"auto",maxHeight:"600px"},children:Gr(rr)})]})})})})]})]})})})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{ht===NEW_PRIMARY?et.push(`/${xt}/patient/${ut}/careplan/${dt}/diagnosis/${mt}/primary`):et.push(`/${xt}/patient/${ut}/careplan/${dt}/diagnosis/${mt}/metastasis`)},backDisabled:gr&&!gr.diagnosis.draft,onNext:()=>{var Qr,rn,_r,ln,vn,Cr;let Xr=dt;if(dt==="create"&&Kt({variables:{patientId:ut,diagnosisId:mt}}).then(gn=>{Xr=gn.data.createCareplan.careplan.id}).then(()=>{Rr(Xr)}),qr&&Mt.intake&&qr.id&&Mt.intakePage&&!Mt.intake[(Qr=intakePageMapping[Mt.intakePage])==null?void 0:Qr.key]&&!It){const{createVariable:gn}=intakePageMapping[Mt.intakePage];Tt({variables:{diagnosisId:qr.id,careplanId:dt,intakeData:gn}}).then(xn=>{vt("intake",xn.data.createIntake.intake)})}const cn={page:pt,diagnosisId:mt,isPrimaryDiagnosis:qr==null?void 0:qr.isPrimaryDiagnosis,diagnosisCode:pt==="primary"&&!(qr!=null&&qr.isPrimaryDiagnosis)?(_r=(rn=qr==null?void 0:qr.relatedPrimaryDiagnosis)==null?void 0:rn.diagnosisCode)==null?void 0:_r.diagnosisCode:(ln=qr==null?void 0:qr.diagnosisCode)==null?void 0:ln.diagnosisCode,tumourStream:(Cr=(vn=qr.diagnosisCode)==null?void 0:vn.tumourStream)==null?void 0:Cr.name,operation:ht,patientId:ut,careplanId:Xr==="create"?"":Xr,clinexResponseUuid:jt};logPage(nt==null?void 0:nt.current,cn,Zt),Rr(Xr)},nextDisabled:yr()})]})},VALUE_REQUIRED="This field is required";styled$1("div")`
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 8px;
`;styled$1("div")`
  font-size: 14px;
  line-height: 20px;
`;styled$1("div")`
  font-size: 18px;
  line-height: 28px;
  margin-top: 32px;
`;const convertMorphologyValuesToOptions=et=>et.map(rt=>({label:rt.displayName,value:rt.displayName})),convertTNM=et=>{if(et&&(et!=null&&et.mainCode)&&(et!=null&&et.subCode)&&(et!=null&&et.description))return{value:`${et.mainCode[0]}${et.subCode}`,label:`${et.mainCode[0]}${et.subCode} - ${et==null?void 0:et.description}`,category:et.mainCode[0]==="p"&&"Pathological"||et.mainCode[0]==="c"&&"Clinical"||void 0}},getTNMSubCode=et=>{var tt;if(et&&((tt=et==null?void 0:et.value)==null?void 0:tt.length)>1)return et.value.substring(1)},getTNMDescription=et=>{if(et&&(et!=null&&et.label))return et.label.split("- ")[1]},convertDisease=et=>{if(et&&et.diseaseId&&et.title)return{value:et.diseaseId,label:et.title,category:et.chapter}},convertToOptionType=et=>{if(et)return{value:et,label:et}},calculateStageType=et=>{let tt="";return(et.stageTCodePathological||et.stageNCodePathological||et.stageMCodePathological)&&(tt="pathological"),(et.stageTCodeClinical||et.stageNCodeClinical||et.stageMCodeClinical)&&(tt=tt?"both":"clinical"),tt||"pathological"},convertTypeForStagingPage=et=>{var tt;if(et)return{...et,disease:convertDisease(et==null?void 0:et.disease),laterality:convertToOptionType(et==null?void 0:et.laterality),morphology:convertToOptionType((tt=et==null?void 0:et.morphology)==null?void 0:tt.displayName),stageTCodeClinical:convertTNM(et==null?void 0:et.stageTCodeClinical),stageNCodeClinical:convertTNM(et==null?void 0:et.stageNCodeClinical),stageMCodeClinical:convertTNM(et==null?void 0:et.stageMCodeClinical),stageTCodePathological:convertTNM(et==null?void 0:et.stageTCodePathological),stageNCodePathological:convertTNM(et==null?void 0:et.stageNCodePathological),stageMCodePathological:convertTNM(et==null?void 0:et.stageMCodePathological)}},fieldsToClearMap={disease:["morphology","stageTCodeClinical","stageTCodePathological","stageNCodeClinical","stageNCodePathological","stageMCodeClinical","stageMCodePathological"],stageTCodeClinical:["stageTCodePathological"],stageTCodePathological:["stageTCodeClinical"],stageNCodeClinical:["stageNCodePathological"],stageNCodePathological:["stageNCodeClinical"],stageMCodeClinical:["stageMCodePathological"],stageMCodePathological:["stageMCodeClinical"]},getMorphologyAndTNMString=et=>{var dt;const tt=((dt=et.morphology)==null?void 0:dt.displayName.split(" ")[0])||"-";let rt="";et.stageTCodePathological&&(rt+=" "+et.stageTCodePathological.subCode),et.stageNCodePathological&&(rt+=" "+et.stageNCodePathological.subCode),et.stageMCodePathological&&(rt+=" "+et.stageMCodePathological.subCode);let nt="";et.stageTCodeClinical&&(nt+=" "+et.stageTCodeClinical.subCode),et.stageNCodeClinical&&(nt+=" "+et.stageNCodeClinical.subCode),et.stageMCodeClinical&&(nt+=" "+et.stageMCodeClinical.subCode);const lt=rt?`(P): ${rt}`:"",ut=nt?`(C): ${nt}`:"";return tt==="-"&&!rt&&!nt?"":`${tt} | ${lt} ${ut}`},DEFAULT_T_STAGE="T",DEFAULT_N_STAGE="N",DEFAULT_M_STAGE="M",STAGE_TYPE_OPTIONS=[{value:"clinical",label:"Clinical"},{value:"pathological",label:"Pathological"},{value:"both",label:"Clinical & Pathological"}],tnmOptionList=et=>et.map(tt=>({value:tt.subCode,label:`${tt.subCode} - ${tt.description}`})),setTnmStagingOptions=(et,tt,rt)=>{const nt=tt.filter(ut=>ut.mainCode==="c"+rt||ut.mainCode===rt),lt=tt.filter(ut=>ut.mainCode==="p"+rt||ut.mainCode===rt);switch(rt){case DEFAULT_T_STAGE:et.tStagePathologicalList=tnmOptionList(lt),et.tStageClinicalList=tnmOptionList(nt);break;case DEFAULT_N_STAGE:et.nStagePathologicalList=tnmOptionList(lt),et.nStageClinicalList=tnmOptionList(nt);break;case DEFAULT_M_STAGE:et.mStagePathologicalList=tnmOptionList(lt),et.mStageClinicalList=tnmOptionList(nt);break;case"global":et.tnmStagingOption=tt;break;default:return et}return et},getStageOptionType=et=>{if(et!=null&&et.subCode)return{label:et.subCode+" - "+et.description,value:et.subCode}},ROPatientDiagnosisStagingPageLegacy=et=>{var gn,xn,Vr,fn,pn,qn,Bn,Kr,Tr,Pr,an;const{setError:tt}=useErrorModalContext(),{onDataRefresh:rt}=et,nt=useRouteMatch(),[lt,ut]=reactExports.useState(!1),{diagnosisId:dt,id:pt,careplanId:ht,oncologyType:mt}=nt.params,xt=reactExports.useRef(new Date().getTime()),[Mt]=useMutation(LOG_CLINEX_MUTATION),{state:vt}=reactExports.useContext(ROPatientCarePlanContext),Ot=reactExports.useContext(ClinexContext),{clinexData:At,uuid:Rt}=Ot,[zt,Tt]=reactExports.useState(!1),[Ct,It]=reactExports.useState(!1),Dt=useTheme$1(),kt=useHistory(),[,qt]=reactExports.useState({}),Nt=reactExports.useCallback(()=>qt({}),[]),{loading:Yt,error:Kt,data:Jt}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:dt}});reactExports.useEffect(()=>{if(Kt)return tt()},[Kt]);const{data:Qt}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:ht}}),[Bt]=useMutation(UPDATE_DIAGNOSIS,{refetchQueries:[{query:GET_DIAGNOSIS,variables:{diagnosisId:dt}},{query:GET_CAREPLAN,variables:{id:ht}}],awaitRefetchQueries:!0,onCompleted:()=>{rt()}}),[Ft,$t]=reactExports.useState({tStagePathologicalList:[],nStagePathologicalList:[],mStagePathologicalList:[],tStageClinicalList:[],nStageClinicalList:[],mStageClinicalList:[],tnmStagingOption:[],diagnosis:{stageType:"",stageTCodePathological:null,stageNCodePathological:null,stageMCodePathological:null,stageTCodeClinical:null,stageNCodeClinical:null,stageMCodeClinical:null}}),Wt=useWindowSize().width<1900,[Ut,Vt]=reactExports.useState(null),[Ht,Gt]=reactExports.useState([]),[Zt,Xt]=reactExports.useState([]),[er]=reactExports.useState(!1);reactExports.useEffect(()=>{At&&!Wt&&selectFirstHighlight(stagingClinexMappings,Ot)},[At]),useQuery(LOAD_CAREPLAN_LIST_DATA,{variables:{listCategory:"lateralityDiagnosis",patientId:pt},onCompleted:nn=>{Xt(filterListdata(nn,"lateralityDiagnosis"))}});const or=!!Jt.diagnosis.isPrimaryDiagnosis?Jt==null?void 0:Jt.diagnosis:Jt==null?void 0:Jt.diagnosis.relatedPrimaryDiagnosis,rr=Jt!=null&&Jt.diagnosis.isPrimaryDiagnosis?null:Jt==null?void 0:Jt.diagnosis,cr=(gn=Jt==null?void 0:Jt.diagnosis)!=null&&gn.diagnosisCode?(Vr=(xn=Jt==null?void 0:Jt.diagnosis)==null?void 0:xn.diagnosisCode)==null?void 0:Vr.tumourStream.name:"",ir=or.diagnosisCode?or.diagnosisCode.stageNumber:"",dr=typeof ir<"u"&&ir!==null&&ir!=="",gr=dr?ir.toString():null,[br,{loading:ar,error:ur}]=useLazyQuery(LOAD_STAGE_TNM_LIST,{variables:{groupNumber:gr},onCompleted:nn=>{if(nn&&nn.tnmLookupGroupList){const Mn=nn.tnmLookupGroupList.filter(kn=>kn.mainCode.includes(DEFAULT_T_STAGE)),An=nn.tnmLookupGroupList.filter(kn=>kn.mainCode.includes(DEFAULT_N_STAGE)),Vn=nn.tnmLookupGroupList.filter(kn=>kn.mainCode.includes(DEFAULT_M_STAGE));let Cn={...Ft};Cn=setTnmStagingOptions(Cn,nn.tnmLookupGroupList,"global"),Cn=setTnmStagingOptions(Cn,Mn,DEFAULT_T_STAGE),Cn=setTnmStagingOptions(Cn,An,DEFAULT_N_STAGE),Cn=setTnmStagingOptions(Cn,Vn,DEFAULT_M_STAGE),$t(Cn)}}}),[xr,{loading:Mr,error:Ar,refetch:Ir}]=useLazyQuery(LOAD_STAGE_MORPHOLOGY_LIST,{variables:{tumourStream:cr},onCompleted:nn=>{nn!=null&&nn.morphologyLookupList&&Gt(convertMorphologyValuesToOptions(nn.morphologyLookupList))}});if(reactExports.useEffect(()=>{dr&&gr&&br(),cr&&cr!==""&&xr()},[gr,cr]),reactExports.useEffect(()=>{Ir()},[cr]),reactExports.useEffect(()=>{if(ur||Ar)return tt()},[ur,Ar]),cr==="")return jsxRuntimeExports.jsx("h1",{children:"Error primary diagnosis not selected"});if(!Jt||Yt||ar||Mr)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Staging",subtitle:"Please wait while we set things up for you"});const Rr=Jt.diagnosis,wr={...Rr},qr=((fn=rr==null?void 0:rr.relatedPrimaryDiagnosis)==null?void 0:fn.draft)===!1,Hr=Rr.isPrimaryDiagnosis?Rr.otherInfo:Rr.relatedPrimaryDiagnosis.otherInfo,kr=nn=>{var Mn,An,Vn,Cn,kn,Qn;Bt({variables:{id:nn.id,stageType:nn.stageType,stageTCodePathological:((Mn=nn.stageTCodePathological)==null?void 0:Mn.id)||-1,stageNCodePathological:((An=nn.stageNCodePathological)==null?void 0:An.id)||-1,stageMCodePathological:((Vn=nn.stageMCodePathological)==null?void 0:Vn.id)||-1,stageTCodeClinical:((Cn=nn.stageTCodeClinical)==null?void 0:Cn.id)||-1,stageNCodeClinical:((kn=nn.stageNCodeClinical)==null?void 0:kn.id)||-1,stageMCodeClinical:((Qn=nn.stageMCodeClinical)==null?void 0:Qn.id)||-1,morphology:nn.morphology&&nn.morphology.displayName,laterality:nn.laterality,otherInfo:nn.otherInfo,diagnosisDate:nn.diagnosisDate}})},$r=(nn,Mn)=>{const An=deepCopyFunction(nn),Vn=deepCopyFunction(wr),Cn=Un=>(Object.keys(Un).map(jn=>(Un[jn]&&typeof Un[jn]=="object"&&(Reflect.deleteProperty(Un,"id"),Reflect.deleteProperty(Un,"__typename"),Un[jn]=[...Object.values(Un[jn])].sort()),Un[jn])),Un),kn=Cn(An),Qn=Cn(Vn),Gn=JSON.stringify([...Object.values(kn)].sort())===JSON.stringify([...Object.values(Qn)].sort());Rr.isPrimaryDiagnosis&&!Gn&&kr(nn),Rr.isPrimaryDiagnosis||(kr(nn),kr(Mn))},yr=mt==="radiation"?CurrentAppConfig.QuestionValidationChildren.Staging.Primary.RO:CurrentAppConfig.QuestionValidationChildren.Staging.Primary.MO,Or=mt==="radiation"?CurrentAppConfig.QuestionValidationChildren.Staging.Metastasis.RO:CurrentAppConfig.QuestionValidationChildren.Staging.Metastasis.MO,Dr=[{parent:null,expansionValue:!0,children:yr}],Fr=[{parent:null,expansionValue:!0,children:Or}],Yr=()=>{Hr==="BORIS_BYPASS_VALIDATION"&&setReactAppValidation("Y"),Hr==="BORIS_ENABLE_VALIDATION"&&setReactAppValidation("N");const nn=qr?!0:or?isPageValid(Dr,or):!0,Mn=rr?isPageValid(Fr,rr):!0;return nn&&Mn},Jr={diagnosisId:dt,fields:(()=>{var Vn,Cn,kn,Qn,Gn,Un,jn,In,Kn,Wn,ao,_i,ho,So;let nn=Rr,Mn={};return Rr.isPrimaryDiagnosis||(nn=Rr.relatedPrimaryDiagnosis,Mn={metastasisLaterality:Rr.laterality,metastasisDiagnosisDate:Rr.diagnosisDate,metastasisDiagnosis:(Vn=Rr.diagnosisCode)==null?void 0:Vn.diagnosisCode}),{morphology:(Cn=nn.morphology)==null?void 0:Cn.displayName,stageType:nn.stageType,stageTCodePathologicalSubcode:(kn=nn.stageTCodePathological)==null?void 0:kn.subCode,stageTCodePathologicalDescription:(Qn=nn.stageTCodePathological)==null?void 0:Qn.description,stageNCodePathologicalSubcode:(Gn=nn.stageNCodePathological)==null?void 0:Gn.subCode,stageNCodePathologicalDescription:(Un=nn.stageNCodePathological)==null?void 0:Un.description,stageMCodePathologicalSubcode:(jn=nn.stageMCodePathological)==null?void 0:jn.subCode,stageMCodePathologicalDescription:(In=nn.stageMCodePathological)==null?void 0:In.description,stageTCodeClinicalSubcode:(Kn=nn.stageTCodeClinical)==null?void 0:Kn.subCode,stageTCodeClinicalDescription:(Wn=nn.stageTCodeClinical)==null?void 0:Wn.description,stageNCodeClinicalSubcode:(ao=nn.stageNCodeClinical)==null?void 0:ao.subCode,stageNCodeClinicalDescription:(_i=nn.stageNCodeClinical)==null?void 0:_i.description,stageMCodeClinicalSubcode:(ho=nn.stageMCodeClinical)==null?void 0:ho.subCode,stageMCodeClinicalDescription:(So=nn.stageMCodeClinical)==null?void 0:So.description,primaryLaterality:nn.laterality,primaryDiagnosisDate:nn.diagnosisDate,otherInfo:nn.otherInfo,...Mn}})(),isPrimaryDiagnosis:Rr.isPrimaryDiagnosis,relatedPrimaryDiagnosis:Rr.isPrimaryDiagnosis?"":(qn=(pn=Rr.relatedPrimaryDiagnosis)==null?void 0:pn.diagnosisCode)==null?void 0:qn.diagnosisCode,tumourStream:(Bn=Rr.diagnosisCode)==null?void 0:Bn.tumourStream.name,patientId:pt,page:CAREPLAN_PAGES.STAGING,ajcc_major_version:7,careplanId:ht,clinexResponseUuid:Rt},jr=nn=>Ct?validateField(nn):!0,Zr=()=>{const{stageType:nn}=or,Mn=lodash.cloneDeep(or);nn==="pathological"&&(Mn.stageTCodeClinical=null,Mn.stageNCodeClinical=null,Mn.stageMCodeClinical=null),nn==="clinical"&&(Mn.stageTCodePathological=null,Mn.stageNCodePathological=null,Mn.stageMCodePathological=null),$r(Mn,rr)},Xr=!!(codeToIntakePageMapping((Kr=or==null?void 0:or.diagnosisCode)==null?void 0:Kr.diagnosisCode,vt.intakePageMapping)&&((Tr=Qt==null?void 0:Qt.careplan)!=null&&Tr.isPrimDiagnosisOwner)),cn=or?`/${mt}/patient/${pt}/careplan/${ht}/diagnosis/${dt}/primary/newPrimary`:`/${mt}/patient/${pt}/careplan/${ht}/diagnosis/${dt}/primary`,Qr=Xr?`/${mt}/patient/${pt}/careplan/${ht}/diagnosis/${dt}/${CAREPLAN_PAGES.INTAKE}`:`/${mt}/patient/${pt}/careplan/${ht}/${CAREPLAN_PAGES.TREATMENT_INFO}`,rn={backDisabled:Rr&&Rr.hasTreatmentStarted,onBack:()=>{kt.push(cn)},onNext:()=>{Zr(),It(!0),Nt(),!lt&&Yr()&&(logPage(xt==null?void 0:xt.current,Jr,Mt),kt.push(Qr))}},_r=Ft.diagnosis&&Ft.diagnosis.stageType?Ft.diagnosis.stageType:or.stageType,ln=Or.includes("diagnosisDate"),vn=yr.includes("laterality"),Cr=Or.includes("laterality");return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:classNames$1("main-container-wrapper",{"clinex-wrapper":At&&!Wt}),children:[jsxRuntimeExports.jsx(CareplanBanners,{data:Qt}),jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsxs("div",{className:"page-header",children:[jsxRuntimeExports.jsx(Typography,{"data-testid":"title",variant:"h5",children:"Staging"}),At&&PLEASE_REVIEW_CLINEX]}),typeof er<"u"&&er===!0&&jsxRuntimeExports.jsx(ROAlert,{title:"Please fix the errors.",children:"Mandatory field missing"}),jsxRuntimeExports.jsx(Box,{component:"form",id:"stagingForm",noValidate:!0,children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[or&&((Pr=Rr.relatedPrimaryDiagnosis)==null?void 0:Pr.draft)!==!1&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{marginBottom:1.5,variant:"h6",children:"Primary Diagnosis"}),jsxRuntimeExports.jsxs(Accordion$2,{sx:{marginBottom:"16px",maxWidth:"720px"},expanded:zt,children:[jsxRuntimeExports.jsx(AccordionSummary$1,{"data-testid":"staging-accordion",expandIcon:jsxRuntimeExports.jsx(default_1$j,{}),onClick:()=>Tt(nn=>!nn),children:zt?jsxRuntimeExports.jsx(Typography,{children:"Morphology & TNM Staging"}):jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"row",maxWidth:"680px",alignItems:"center"},children:[jsxRuntimeExports.jsx(Typography,{style:{minWidth:"234px"},children:"Morphology & TNM Staging"}),jsxRuntimeExports.jsx(Typography,{children:getMorphologyAndTNMString(or)})]})}),jsxRuntimeExports.jsxs(AccordionDetails,{children:[jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"histology_code",formValues:Rr,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"morphology",fieldlabel:"Morphology",options:Ht,value:getOptionByValue(Ht,((an=or==null?void 0:or.morphology)==null?void 0:an.displayName)||""),onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(or);An.morphology={displayName:Mn||""},$r(An,rr)},inputProps:{helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(At,"histology_code",Rr)},sx:{maxWidth:"400px"}})}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"stageType",fieldlabel:"",options:STAGE_TYPE_OPTIONS,value:_r||or.stageType,handleChange:nn=>{$t({...Ft,diagnosis:{...Ft.diagnosis,stageType:nn}});const Mn=lodash.cloneDeep(or);or&&((nn==="clinical"||nn==="pathological")&&$t({...Ft,diagnosis:{...Ft.diagnosis,stageType:nn}}),Mn.stageType=nn,$r(Mn,rr))}}),_r==="clinical"||_r==="both"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",color:Dt.palette.text.secondary,children:"Clinical"}),window.console.log(Ft.tStageClinicalList),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"n_stage_clinical",formValues:Rr,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"stageTCodeClinical",fieldlabel:"T Stage",options:Ft.tStageClinicalList,value:getStageOptionType(Ft.diagnosis.stageTCodeClinical||or.stageTCodeClinical),onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(or),Vn=Mn?Ft.tnmStagingOption.find(Cn=>Cn.subCode===Mn):DEFAULT_TNM_STAGE_TYPE;Vn&&(An.stageTCodeClinical=Vn,$t({...Ft,diagnosis:{...Ft.diagnosis,stageTCodeClinical:Vn}}),$r(An,rr))},inputProps:{helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(At,"t_stage_clinical",Rr)}})}),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"m_stage_pathological",formValues:Rr,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"stageNCodeClinical",fieldlabel:"N Stage",options:Ft.nStageClinicalList,value:getStageOptionType(Ft.diagnosis.stageNCodeClinical||or.stageNCodeClinical),onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(or),Vn=Mn?Ft.tnmStagingOption.find(Cn=>Cn.subCode===Mn):DEFAULT_TNM_STAGE_TYPE;Vn&&(An.stageNCodeClinical=Vn,$t({...Ft,diagnosis:{...Ft.diagnosis,stageNCodeClinical:Vn}}),$r(An,rr))},inputProps:{helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(At,"n_stage_clinical",Rr)}})}),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"m_stage_clinical",formValues:Rr,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"stageMCodeClinical",fieldlabel:"M Stage",options:Ft.mStageClinicalList,value:getStageOptionType(Ft.diagnosis.stageMCodeClinical||or.stageMCodeClinical),onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(or),Vn=Mn?Ft.tnmStagingOption.find(Cn=>Cn.subCode===Mn):DEFAULT_TNM_STAGE_TYPE;Vn&&(An.stageMCodeClinical=Vn,$t({...Ft,diagnosis:{...Ft.diagnosis,stageMCodeClinical:Vn}}),$r(An,rr))},inputProps:{helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(At,"m_stage_clinical",Rr)}})})]}):null,_r==="pathological"||_r==="both"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",color:Dt.palette.text.secondary,children:"Pathological"}),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"t_stage_pathological",formValues:Rr,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"stageTCodePathological",fieldlabel:"T Stage",options:Ft.tStagePathologicalList,value:getStageOptionType(Ft.diagnosis.stageTCodePathological||or.stageTCodePathological),onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(or),Vn=Mn?Ft.tnmStagingOption.find(Cn=>Cn.subCode===Mn):DEFAULT_TNM_STAGE_TYPE;Vn&&(An.stageTCodePathological=Vn,$t({...Ft,diagnosis:{...Ft.diagnosis,stageTCodePathological:Vn}}),$r(An,rr))},inputProps:{helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(At,"t_stage_pathological",Rr)}})}),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"n_stage_pathological",formValues:Rr,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"stageNCodePathological",fieldlabel:"N Stage",options:Ft.nStagePathologicalList,value:getStageOptionType(Ft.diagnosis.stageNCodePathological||or.stageNCodePathological),onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(or),Vn=Mn?Ft.tnmStagingOption.find(Cn=>Cn.subCode===Mn):DEFAULT_TNM_STAGE_TYPE;Vn&&(An.stageNCodePathological=Vn,$t({...Ft,diagnosis:{...Ft.diagnosis,stageNCodePathological:Vn}}),$r(An,rr))},inputProps:{helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(At,"n_stage_pathological",Rr)}})}),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"m_stage_pathological",formValues:Rr,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"stageMCodePathological",fieldlabel:"M Stage",options:Ft.mStagePathologicalList,value:getStageOptionType(Ft.diagnosis.stageMCodePathological||or.stageMCodePathological),onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(or),Vn=Mn?Ft.tnmStagingOption.find(Cn=>Cn.subCode===Mn):DEFAULT_TNM_STAGE_TYPE;Vn&&(An.stageMCodePathological=Vn,$t({...Ft,diagnosis:{...Ft.diagnosis,stageMCodePathological:Vn}}),$r(An,rr))},inputProps:{helperText:LOW_CERTAINTY,warning:isFieldLowCertainty(At,"m_stage_pathological",Rr)}})})]}):null]})]}),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"laterality",formValues:Rr,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"laterality",fieldlabel:"Primary Laterality",options:Zt,value:or.laterality,inputProps:{error:!jr(or.laterality),helperText:jr(or.laterality)?LOW_CERTAINTY:"This field is required",warning:isFieldLowCertainty(At,"laterality",Rr)},required:vn,onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(or);An.laterality=Mn||"",$r(An,rr)},sx:{maxWidth:"430px"}})}),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:At,clinexField:"diagnosis_date",formValues:Rr,children:jsxRuntimeExports.jsx(RODatePicker,{id:"diagnosisDate",fieldlabel:"Primary Diagnosis Date",required:!0,disableFuture:!0,value:or.diagnosisDate?dayjs(or.diagnosisDate.toString()):void 0,error:!jr(or.diagnosisDate),warning:isFieldLowCertainty(At,"diagnosis_date",Rr),helperText:isFieldLowCertainty(At,"diagnosis_date",Rr)?LOW_CERTAINTY:void 0,onChange:(nn,Mn)=>{const An=lodash.cloneDeep(or);if(Mn.validationError)ut(!0),Mn.validationError==="maxDate"&&(An.diagnosisDate="",$r(An,rr));else{ut(!1);const Vn=nn?nn.format("YYYY-MM-DD").toString():"";An.diagnosisDate=Vn,$r(An,rr)}}})}),jsxRuntimeExports.jsx(ROTextField,{id:"otherInfo",fieldlabel:"Other Information",value:Ut!==null?Ut:Hr,onChange:nn=>{Vt(nn.target.value)},onBlur:nn=>{const Mn=nn.target.value;if(Mn==null)return;Vt(Mn);const An=lodash.cloneDeep(or);An.otherInfo=Mn,$r(An,rr)},sx:{maxWidth:"430px"}})]}),!Rr.isPrimaryDiagnosis&&rr&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider$1,{style:{marginTop:"12px",marginBottom:"12px"}}),jsxRuntimeExports.jsx(Typography,{marginBottom:1.5,variant:"h6",children:"Metastasis Diagnosis"}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"metastasisLaterality",fieldlabel:"Metastasis Laterality",options:Zt,value:rr.laterality,inputProps:{error:Cr&&!jr(rr.laterality)},required:Cr,onChange:nn=>{const Mn=typeof nn=="string"?nn:nn==null?void 0:nn.value,An=lodash.cloneDeep(rr);An.laterality=Mn||"",$r(or,An)},sx:{maxWidth:"430px"}}),jsxRuntimeExports.jsx(RODatePicker,{id:"metastasisDiagnosisDate",fieldlabel:"Metastasis Diagnosis Date",required:ln,error:ln&&!jr(rr.diagnosisDate),value:rr.diagnosisDate?dayjs(rr.diagnosisDate):null,disableFuture:!0,onChange:(nn,Mn)=>{const An=lodash.cloneDeep(rr);if(Mn.validationError)ut(!0),Mn.validationError==="maxDate"&&(An.diagnosisDate="",$r(or,An));else{ut(!1);const Vn=nn?nn.format("YYYY-MM-DD").toString():"";An.diagnosisDate=Vn,$r(or,An)}}})]})]})})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{...rn})]})})},generateValidationSchema$2=(et,tt,rt,nt)=>{var Ot;let lt={},ut={};const dt=et==="radiation"?CurrentAppConfig.QuestionValidationChildren.Staging.Primary.RO:CurrentAppConfig.QuestionValidationChildren.Staging.Primary.MO,pt=et==="radiation"?CurrentAppConfig.QuestionValidationChildren.Staging.Metastasis.RO:CurrentAppConfig.QuestionValidationChildren.Staging.Metastasis.MO,ht=pt.includes("diagnosisDate"),mt=dt.includes("diagnosisDate"),xt=pt.includes("laterality"),Mt=dt.includes("laterality");rt&&(ut={...xt&&{metastasisLaterality:create$3().shape({value:create$6(),label:create$6()}).nullable().required(VALUE_REQUIRED)},...ht&&{metastasisDiagnosisDate:create$6().ensure().required(VALUE_REQUIRED)}}),nt&&(!rt||rt&&((Ot=rt==null?void 0:rt.relatedPrimaryDiagnosis)==null?void 0:Ot.draft)!==!1)&&(lt={...Mt&&{laterality:create$3().shape({value:create$6(),label:create$6()}).nullable().required(VALUE_REQUIRED)},...mt&&{diagnosisDate:create$6().ensure().required(VALUE_REQUIRED)}});const vt={...lt,...ut};try{validateYupSchema(tt,create$3(vt),!0)}catch(At){return yupToFormErrors(At)}return{}},StyledListItem$1=styled$1("li")`
  cursor: default;
  line-height: 20px;
  background-color: white;
  border-left-style: solid;
  border-width: thick;
  ${et=>`
    font-weight: ${et.isSelected?"bold":"normal"};
    padding: ${et.isSelected?"6px 0px 6px 8px":"6px 12px 6px 8px"} ;
    &:hover {
      background-color: ${et.theme.palette.grey[100]};
      border-left-color: ${et.isSelected?et.theme.palette.primary.dark:et.theme.palette.grey[100]};
    }
    border-left-color: ${et.isSelected?et.theme.palette.primary.dark:"white"};
    background-color: ${et.isSelected?et.theme.palette.grey[100]:"white"};
  `};
`,FilterListItem=et=>{const{option:tt,onClick:rt,isSelected:nt}=et;return jsxRuntimeExports.jsx(StyledListItem$1,{value:tt==null?void 0:tt.value,isSelected:nt,onClick:()=>rt(tt==null?void 0:tt.label),children:tt==null?void 0:tt.label})},ValuesList=styled("ul")`
  overflow: auto;
  width: 100%;
  padding: 4px 0;
  border-left-style: solid;
  border-width: thin;
  border-color: lightgrey;
`,FilterIcon=styled(FilterListOutlinedIcon)`
  height: 20px;
  padding: 2px;
  margin-right: 6px;
`,FiltersPanelContainer=styled("div")`
  padding: 2px;
  min-width: 32%;
  max-width: 32%;
  overflow: auto;
  border-width: thin;
  border-color: lightgrey;
`,StyledListItem=styled("li")`
  padding: 6px 16px;
  line-height: 20px;
  background-color: white;
  cursor: pointer;
  ${et=>`
      background-color: ${et.isSelected?et.theme.palette.action.selected:"white"};
      color: ${et.theme.palette.text.primary};
      &:hover {
        background-color: ${et.isSelected?et.theme.palette.action.selected:et.theme.palette.action.hover};
      }
    `};
`,FilterList$1=styled("ul")`
  overflow: auto;
`,FilterBox=styled("div")`
  display: flex;
  padding: 8px;
  border-bottom-style: solid;
  border-width: thin;
  border-color: lightgrey;
`,FilterBoxLabel=styled("div")`
  color: ${et=>et.theme.palette.grey[600]};
  padding-top: 4px;
`,FilteredList=et=>{const{children:tt,isLoading:rt,selectProps:nt,options:lt}=et,ut=et.selectProps.inputValue??"",[dt,pt]=reactExports.useState(mt()),ht=useTheme$1();function mt(){if(lt.length>0){const xt=lt.find(Mt=>{var vt;return(vt=Mt.options)==null?void 0:vt.some(Ot=>JSON.stringify(Ot)===JSON.stringify(nt.value))});return(xt==null?void 0:xt.value)??(nt==null?void 0:nt.defaultSelectedFilter)??lt[0].value}}return rt?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading...",relativeSpinner:!0}):ut.length===0&&lt.length>0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FiltersPanelContainer,{"data-testid":"filters-panel-container",children:[jsxRuntimeExports.jsxs(FilterBox,{children:[jsxRuntimeExports.jsx(FilterIcon,{htmlColor:ht.palette.grey[600]}),jsxRuntimeExports.jsx(FilterBoxLabel,{children:"Filters"})]}),jsxRuntimeExports.jsx(FilterList$1,{children:lt.map((xt,Mt)=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(FilterListItem,{option:xt,isSelected:dt===xt.value,onClick:()=>pt(xt.value)})},Mt))})]}),jsxRuntimeExports.jsx(ValuesList,{ref:et.innerRef,"data-testid":"values-list-container",children:lt.map(xt=>{var Mt;return JSON.stringify(xt.value)===JSON.stringify(dt)?(Mt=xt.options)==null?void 0:Mt.map(vt=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(StyledListItem,{value:vt.value,isSelected:JSON.stringify(nt.value)===JSON.stringify(vt),onClick:()=>et.selectOption(vt),children:vt.label})},vt.value)):null})})]}):lt.length>0?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:tt}):jsxRuntimeExports.jsx(Stack$5,{children:jsxRuntimeExports.jsx(Typography,{color:ht.palette.text.secondary,padding:1,"data-testid":"no-match-box",children:"No options"})})},StyledClearIndication=styled$1("div")`
  svg {
    cursor: pointer;
    display: none;
  }
`,ClearIndicator=et=>{const{children:tt=jsxRuntimeExports.jsx(IconButton,{size:"small",children:jsxRuntimeExports.jsx(Clear,{color:"primary",sx:{height:"20px",width:"20px"}})}),innerProps:{ref:rt,...nt}}=et;return jsxRuntimeExports.jsx(StyledClearIndication,{...nt,ref:rt,children:jsxRuntimeExports.jsx("div",{children:tt})})},FilteredListDropdown=et=>{const{options:tt,onChange:rt,hasError:nt,isLoading:lt,isDisabled:ut,selectedOption:dt,id:pt,hasWarning:ht,defaultSelectedFilter:mt}=et,[xt,Mt]=reactExports.useState(!1),[vt,Ot]=reactExports.useState(""),[At,Rt]=reactExports.useState([]),zt=useTheme$1();reactExports.useEffect(()=>{function Dt(){if(tt)if(vt.length>0){const qt=[...new Set(tt==null?void 0:tt.map(Kt=>Kt.value))].map(Kt=>tt.filter(Jt=>Jt.value===Kt)[0]);return[...new Set(qt)].map(Kt=>JSON.parse(JSON.stringify(Kt))).sort((Kt,Jt)=>Kt.label>Jt.label?1:-1).filter(Kt=>Kt.label.toLowerCase().includes(vt.toLowerCase()))}else return[...new Set(tt.map(Nt=>Nt.category))].map(Nt=>{const Yt=tt==null?void 0:tt.filter(Kt=>Kt.category===Nt);return{value:Nt??"",label:Nt??"",options:Yt||[]}});return[]}Rt(Dt())},[vt,tt]);const Tt={menu:Dt=>({...Dt,display:vt.length>0&&At.length>0?"block":"flex",overflow:vt.length>0?"auto":"hidden",minHeight:vt.length>0||At.length===0?At.length>0?"auto":"104px":"200px",maxHeight:At.length===0?"104px":"200px"}),menulist:Dt=>({...Dt,flex:1}),clearIndicator:()=>({padding:0}),dropdownIndicator:()=>({color:ut?zt.palette.grey[300]:zt.palette.primary.dark,padding:"8px",transition:"transform 300ms",transform:xt?"rotate(180deg)":"none"}),indicatorSeparator:()=>({display:"none"}),singleValue:()=>({color:zt.palette.text.primary}),control:Dt=>({...Dt,color:zt.palette.text.primary,cursor:"pointer",boxShadow:"none",height:"40px",border:`1px solid ${nt?zt.palette.error.main:ht?zt.palette.warning.dark:xt?zt.palette.primary.dark:zt.palette.grey[300]}`,"&:hover":{backgroundColor:zt.palette.grey[100],svg:{display:"block !important"}}}),valueContainer:Dt=>({...Dt,lineHeight:"32px",padding:"0px 8px",whiteSpace:"nowrap",textOverflow:"ellipsis",fontSize:"16px",cursor:"pointer","> div":{maxWidth:"300px"}})},Ct=et.tooltip||"",It=reactExports.useCallback(Dt=>jsxRuntimeExports.jsx(Tooltip,{arrow:!0,title:Ct,placement:"bottom",disableInteractive:!0,children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(components.Control,{...Dt})})}),[Ct]);return jsxRuntimeExports.jsx(index$1,{tooltip:"hello world",id:pt,"data-testid":pt,defaultSelectedFilter:mt,onInputChange:Dt=>Ot(Dt),value:dt,onMenuOpen:()=>Mt(!0),onBlur:()=>{Mt(!1)},onMenuClose:()=>Mt(!1),onChange:rt,isLoading:xt?lt:!1,isDisabled:ut,placeholder:SEARCH_DROPDOWN_PLACEHOLDER$1,styles:Tt,isClearable:!0,components:{Control:It,MenuList:FilteredList,ClearIndicator,LoadingIndicator:null},options:lt?void 0:At,classNamePrefix:"filtered-option-search"})},logger$o=new Logger("StagingPage.tsx"),scrollToClassName=(et,tt)=>{const rt=document.getElementsByClassName(et);rt&&setTimeout(()=>{var nt;(nt=rt[0])==null||nt.scrollIntoView({block:"nearest",behavior:"smooth",inline:"start"})},0)},ROPatientDiagnosisStagingPage=et=>{var Bn,Kr,Tr,Pr,an,nn,Mn,An,Vn;const rt=useWindowSize().width<1900,nt=useHistory(),{setError:lt}=useErrorModalContext(),ut=useRouteMatch(),{diagnosisId:dt,careplanId:pt,id:ht,oncologyType:mt}=ut.params,{onDataRefresh:xt}=et,Mt=reactExports.useContext(ClinexContext),{clinexData:vt,uuid:Ot}=Mt,At=useTheme$1(),[Rt]=useMutation(LOG_CLINEX_MUTATION),[zt,Tt]=reactExports.useState(),[Ct,It]=reactExports.useState(),[Dt,kt]=reactExports.useState(!1),[qt,Nt]=reactExports.useState(!1),[Yt,Kt]=reactExports.useState(dt),[Jt,Qt]=reactExports.useState(8),[Bt,Ft]=reactExports.useState([]),[$t,jt]=reactExports.useState("t_stage_clinical"),[Wt,Ut]=reactExports.useState("n_stage_clinical"),[Vt,Ht]=reactExports.useState("m_stage_clinical"),Gt=reactExports.useRef(new Date().getTime()),[Zt,Xt]=reactExports.useState(null),[er,nr]=reactExports.useState(null),{state:or}=reactExports.useContext(ROPatientCarePlanContext),[rr,cr]=reactExports.useState([]),[ir,dr]=reactExports.useState([]),[gr,br]=reactExports.useState([]),[ar,ur]=reactExports.useState([]),[xr,Mr]=reactExports.useState(null),[Ar,Ir]=reactExports.useState(null),Rr=`/${mt}/patient/${ht}/careplan/${pt}`,{data:wr,loading:qr,error:Hr,refetch:kr}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:dt},fetchPolicy:"network-only",onCompleted:Cn=>{logMissingDiagnosisCode(logger$o,Cn,"Staging")}});useQuery(CHECK_DIAGNOSIS_CAREPLAN_STATUS,{variables:{diagnosisId:dt,careplanId:pt},fetchPolicy:"network-only",skip:!dt||!pt,onCompleted:Cn=>{const{status:kn,id:Qn}=Cn==null?void 0:Cn.checkDiagnosisToCareplanStatus;kn||(Kt(Qn),Nt(!0))}});const{data:$r,loading:yr,error:Or}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:pt}}),[Dr]=useMutation(UPDATE_DIAGNOSIS,{refetchQueries:[{query:GET_DIAGNOSIS,variables:{diagnosisId:dt}},{query:GET_CAREPLAN,variables:{id:pt}}],awaitRefetchQueries:!0,onCompleted:()=>{xt()}}),Fr=(Cn,kn=!1)=>{var Qn,Gn,Un,jn,In,Kn,Wn,ao,_i;Dr({variables:{id:Cn.id,disease:((Qn=Cn==null?void 0:Cn.disease)==null?void 0:Qn.value)||"",morphology:((Gn=Cn.morphology)==null?void 0:Gn.value)||"",stageTCodePathological:((Un=Cn.stageTCodePathological)==null?void 0:Un.value)||"",stageNCodePathological:((jn=Cn.stageNCodePathological)==null?void 0:jn.value)||"",stageMCodePathological:((In=Cn.stageMCodePathological)==null?void 0:In.value)||"",stageTCodeClinical:((Kn=Cn.stageTCodeClinical)==null?void 0:Kn.value)||"",stageNCodeClinical:((Wn=Cn.stageNCodeClinical)==null?void 0:Wn.value)||"",stageMCodeClinical:((ao=Cn.stageMCodeClinical)==null?void 0:ao.value)||"",stageType:kn?"":calculateStageType(Cn),laterality:((_i=Cn.laterality)==null?void 0:_i.value)||"",diagnosisDate:Cn.diagnosisDate,otherInfo:Cn.otherInfo||"",majorVersion:Jt}})},{loading:Yr,error:Gr,refetch:Jr}=useQuery(GET_MORPHOLOGY_LIST_BY_DISEASE,{variables:{diseaseId:(Bn=zt==null?void 0:zt.disease)==null?void 0:Bn.value,majorVersion:Jt},skip:!((Kr=zt==null?void 0:zt.disease)!=null&&Kr.value)||!Jt,fetchPolicy:"cache-first",onCompleted:Cn=>{Cn!=null&&Cn.morphologyListByDisease&&cr(convertMorphologyValuesToOptions(Cn.morphologyListByDisease))}});reactExports.useEffect(()=>{vt&&!rt&&selectFirstHighlight(stagingClinexMappings,Mt)},[vt]),reactExports.useEffect(()=>{var Cn;(Cn=zt==null?void 0:zt.disease)!=null&&Cn.value&&Jt&&(Jr(),_r())},[zt==null?void 0:zt.disease]);const{data:jr,loading:Zr}=useQuery(GET_DISEASES,{variables:{ajccMajorVersion:Jt,relatedIcdCode:(Tr=zt==null?void 0:zt.diagnosisCode)==null?void 0:Tr.diagnosisCode},skip:!zt||!$r}),{data:Xr}=useQuery(GET_DISEASES,{variables:{ajccMajorVersion:Jt},skip:!zt||!$r}),cn=(Cn,kn)=>[...Cn.filter(Qn=>Qn.mainCode[1]===kn&&Qn.mainCode[0]==="p").map(Qn=>({value:`${Qn.mainCode[0]}${Qn.subCode}`,label:`${Qn.mainCode[0]}${Qn.subCode} - ${Qn.description}`,category:"Pathological"})),...Cn.filter(Qn=>Qn.mainCode[1]===kn&&Qn.mainCode[0]==="c").map(Qn=>({value:`${Qn.mainCode[0]}${Qn.subCode}`,label:`${Qn.mainCode[0]}${Qn.subCode} - ${Qn.description}`,category:"Clinical"}))],{loading:Qr,error:rn,refetch:_r}=useQuery(GET_TNM_LIST_BY_DISEASE,{variables:{diseaseId:(Pr=zt==null?void 0:zt.disease)==null?void 0:Pr.value,majorVersion:Jt},skip:!((an=zt==null?void 0:zt.disease)!=null&&an.value)||!Jt,onCompleted:Cn=>{if(Cn!=null&&Cn.tnmListByDisease){const kn=Cn.tnmListByDisease;dr(cn(kn,"T")),br(cn(kn,"N")),ur(cn(kn,"M"))}}});reactExports.useEffect(()=>{if(Or||Hr||Gr||rn)return lt()},[Or,Hr,Gr,rn]),reactExports.useEffect(()=>{var Cn;if(wr&&wr.diagnosis){const kn=convertTypeForStagingPage(wr.diagnosis.isPrimaryDiagnosis?wr.diagnosis:wr.diagnosis.relatedPrimaryDiagnosis),Qn=convertTypeForStagingPage(wr.diagnosis.isPrimaryDiagnosis||wr==null?void 0:wr.diagnosis);Tt(kn),It(Qn),kt(((Cn=Qn==null?void 0:Qn.relatedPrimaryDiagnosis)==null?void 0:Cn.draft)!==!1),Qt(parseInt(wr.diagnosis.ajccMajorVersion))}},[wr]);const ln=()=>{var Cn,kn,Qn,Gn,Un,jn;if(zt){let In={};return Ct&&(In={metastasisLaterality:(Cn=Ct.laterality)==null?void 0:Cn.value,metastasisDiagnosisDate:Ct.diagnosisDate,metastasisDiagnosis:(kn=Ct.diagnosisCode)==null?void 0:kn.diagnosisCode}),{diseaseGroup:zt.disease?{selection_method:((Qn=vt==null?void 0:vt.ajcc_disease)==null?void 0:Qn.value)===zt.disease.value?"Clinex":zt.disease.category,selection_value:zt.disease.value,most_relevant_options:(Gn=jr==null?void 0:jr.diseases)==null?void 0:Gn.map(Kn=>Kn.diseaseId)}:void 0,morphology:(Un=zt.morphology)==null?void 0:Un.value,stageType:zt.stageType,stageTCodePathologicalSubcode:getTNMSubCode(zt.stageTCodePathological),stageTCodePathologicalDescription:getTNMDescription(zt.stageTCodePathological),stageNCodePathologicalSubcode:getTNMSubCode(zt.stageNCodePathological),stageNCodePathologicalDescription:getTNMDescription(zt.stageNCodePathological),stageMCodePathologicalSubcode:getTNMSubCode(zt.stageMCodePathological),stageMCodePathologicalDescription:getTNMDescription(zt.stageMCodePathological),stageTCodeClinicalSubcode:getTNMSubCode(zt.stageTCodeClinical),stageTCodeClinicalDescription:getTNMDescription(zt.stageTCodeClinical),stageNCodeClinicalSubcode:getTNMSubCode(zt.stageNCodeClinical),stageNCodeClinicalDescription:getTNMDescription(zt.stageNCodeClinical),stageMCodeClinicalSubcode:getTNMSubCode(zt.stageMCodeClinical),stageMCodeClinicalDescription:getTNMDescription(zt.stageMCodeClinical),primaryLaterality:(jn=zt.laterality)==null?void 0:jn.value,primaryDiagnosisDate:zt.diagnosisDate,otherInfo:zt.otherInfo,...In}}};if(useQuery(LOAD_CAREPLAN_LIST_DATA,{variables:{listCategory:"lateralityDiagnosis",patientId:ht},onCompleted:Cn=>{Ft(filterListdata(Cn,"lateralityDiagnosis"))}}),reactExports.useEffect(()=>{vt&&!rt&&selectFirstHighlight(stagingClinexMappings,Mt)},[vt]),reactExports.useEffect(()=>{var Cn;if(ht&&pt&&dt){const kn=Yt;zt!=null&&zt.emrDiagnosisKey?(Xt(`${Rr}/diagnosis/${kn}/primary`),nr(`${Rr}/${CAREPLAN_PAGES.TREATMENT_INFO}`)):(Xt(`${Rr}/diagnosis/${kn}/primary/newPrimary`),zt!=null&&zt.diagnosisCode&&(codeToIntakePageMapping(zt.diagnosisCode.diagnosisCode,or.intakePageMapping)&&((Cn=$r==null?void 0:$r.careplan)!=null&&Cn.isPrimDiagnosisOwner)?nr(`${Rr}/diagnosis/${kn}/${CAREPLAN_PAGES.INTAKE}`):nr(`${Rr}/${CAREPLAN_PAGES.TREATMENT_INFO}`)))}},[zt,ht,pt,dt,$r]),qr||yr||!zt||Zr)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Staging",subtitle:"Please wait while we set things up for you"});const vn=mt==="radiation"?CurrentAppConfig.QuestionValidationChildren.Staging.Primary.RO:CurrentAppConfig.QuestionValidationChildren.Staging.Primary.MO,Cr=mt==="radiation"?CurrentAppConfig.QuestionValidationChildren.Staging.Metastasis.RO:CurrentAppConfig.QuestionValidationChildren.Staging.Metastasis.MO,gn=vn.includes("diagnosisDate"),xn=Cr.includes("diagnosisDate"),Vr=vn.includes("laterality"),fn=Cr.includes("laterality");if(Dt&&(zt==null?void 0:zt.disease)===void 0&&((nn=jr==null?void 0:jr.diseases)==null?void 0:nn.length)===1){const Cn=convertDisease(jr.diseases[0]);Cn&&(Cn.category="Most Relevant",Tt({...zt,disease:Cn}),Fr({...zt,disease:Cn}))}const pn={disease:zt==null?void 0:zt.disease,morphology:getOptionByValue(rr.map(Cn=>({label:Cn.label,value:Cn.value})),(Mn=zt==null?void 0:zt.morphology)==null?void 0:Mn.value),stageTCodeClinical:zt==null?void 0:zt.stageTCodeClinical,stageTCodePathological:zt==null?void 0:zt.stageTCodePathological,stageNCodeClinical:zt==null?void 0:zt.stageNCodeClinical,stageNCodePathological:zt==null?void 0:zt.stageNCodePathological,stageMCodeClinical:zt==null?void 0:zt.stageMCodeClinical,stageMCodePathological:zt==null?void 0:zt.stageMCodePathological,laterality:getOptionByValue(Bt.map(Cn=>({label:Cn.label,value:Cn.value})),((An=zt==null?void 0:zt.laterality)==null?void 0:An.value)||null),diagnosisDate:zt==null?void 0:zt.diagnosisDate,otherInfo:zt==null?void 0:zt.otherInfo,metastasisLaterality:getOptionByValue(Bt.map(Cn=>({label:Cn.label,value:Cn.value})),((Vn=Ct==null?void 0:Ct.laterality)==null?void 0:Vn.value)||null),metastasisDiagnosisDate:Ct==null?void 0:Ct.diagnosisDate},qn=vt&&!rt?"420px":"526px";return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StandardDialog,{id:"diagnosis-error-modal",open:qt,title:"Diagnosis code error",titleIcon:jsxRuntimeExports.jsx(WarningOutlinedIcon,{color:"warning"}),PaperProps:{style:{maxWidth:"500px"}},onSubmit:()=>nt.push(Zt),submitText:"Review diagnosis selection",children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",sx:{color:"text.primary"},children:"Please review the selected diagnosis code"})}),jsxRuntimeExports.jsx("div",{className:classNames$1("main-container-wrapper",{"clinex-wrapper":vt&&!rt}),style:{flexGrow:vt?0:1},children:jsxRuntimeExports.jsx(Formik,{initialValues:pn,onSubmit:()=>{},validate:Cn=>generateValidationSchema$2(mt,Cn,Ct,zt),children:({values:Cn,errors:kn,submitForm:Qn,submitCount:Gn,setFieldValue:Un,validateForm:jn})=>{var _i,ho,So,ko,us,Jo;const In={onBack:()=>{nt.push(Zt)},backDisabled:!Zt||zt&&zt.hasTreatmentStarted,onNext:()=>{var $o,vo,Go,Wo,cs,rs;Qn(),jn().then(xs=>{Object.keys(xs).length===0&&!xr&&!Ar&&nt.push(er)});const go={diagnosisId:dt,fields:ln(),isPrimaryDiagnosis:Ct?Ct.isPrimaryDiagnosis:zt==null?void 0:zt.isPrimaryDiagnosis,relatedPrimaryDiagnosis:Ct?(vo=($o=Ct==null?void 0:Ct.relatedPrimaryDiagnosis)==null?void 0:$o.diagnosisCode)==null?void 0:vo.diagnosisCode:"",tumourStream:Ct?(Wo=(Go=Ct==null?void 0:Ct.diagnosisCode)==null?void 0:Go.tumourStream)==null?void 0:Wo.name:(rs=(cs=zt==null?void 0:zt.diagnosisCode)==null?void 0:cs.tumourStream)==null?void 0:rs.name,patientId:ht,page:CAREPLAN_PAGES.STAGING,ajcc_major_version:Jt,careplanId:pt,clinexResponseUuid:Ot};logPage(Gt==null?void 0:Gt.current,go,Rt)}};if(Gn>0&&kn){const go=document.getElementsByClassName("icon-form-error");go&&go.length>0&&scrollToClassName("icon-form-error")}const Kn=(go,$o)=>{const vo={},Go={metastasisLaterality:"laterality",metastasisDiagnosisDate:"diagnosisDate"},Wo=go.includes("metastasis")?Go[go]:go;vo[Wo]=$o??"";const cs=fieldsToClearMap[go];if(cs&&cs.forEach(rs=>{vo[rs]="",Un(rs,"")}),go.includes("metastasis")){const rs={...Ct,...vo};It(rs),Fr(rs,!0)}else{const rs={...zt,...vo};Tt(rs),Fr(rs)}Un(go,$o)};function Wn(){var vo,Go;const go=(vo=jr==null?void 0:jr.diseases)==null?void 0:vo.map(Wo=>({value:Wo.diseaseId,label:Wo.title,category:"Most Relevant"})),$o=(Go=Xr==null?void 0:Xr.diseases)==null?void 0:Go.map(Wo=>({value:Wo.diseaseId,label:Wo.title,category:Wo.chapter}));return[...go||[],...$o||[]].flat()}function ao(go,$o,vo){var Wo;const Go=$o?$o.category:((Wo=Cn[`stage${go.toUpperCase()}CodePathological`])==null?void 0:Wo.category)||"Clinical";vo(`${go.toLowerCase()}_stage_${Go.toLowerCase()}`),Kn(`stage${go.toUpperCase()}Code${Go}`,$o)}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CareplanBanners,{data:$r,forceUpdate:()=>{kr()},refetchQueriesList:[{query:GET_DIAGNOSIS,variables:{diagnosisId:dt}},{query:GET_CAREPLAN,variables:{id:pt}}]}),jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h5","data-testid":"title",children:"Staging"}),vt?PLEASE_REVIEW_CLINEX:jsxRuntimeExports.jsx(Typography,{color:At.palette.text.secondary,paddingTop:1,variant:"body1","data-testid":"subtitle",children:"Please enter staging information."}),zt&&Dt&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{paddingTop:2,variant:"h6","data-testid":"sectionTitle",children:"Primary Diagnosis"}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"ajcc_disease",ajccVersion:Jt,children:jsxRuntimeExports.jsx(FormRow$1,{id:"row-disease",fieldlabel:"Disease Group",alignItems:"center",children:jsxRuntimeExports.jsxs(Stack$5,{sx:{width:qn},gap:"4px",children:[jsxRuntimeExports.jsx(FilteredListDropdown,{id:"disease",options:Wn(),selectedOption:Cn.disease,onChange:go=>{Kn("disease",go)},hasError:!!(Gn>0&&kn.disease),hasWarning:isFieldLowCertainty(vt,"ajcc_disease",zt)}),jsxRuntimeExports.jsx(ROHelperText,{id:"disease",warning:isFieldLowCertainty(vt,"ajcc_disease",zt),helperText:isFieldLowCertainty(vt,"ajcc_disease",zt)?LOW_CERTAINTY:void 0})]})})}),jsxRuntimeExports.jsx(Typography,{paddingBottom:2,color:At.palette.text.secondary,variant:"subtitle1",children:`AJCC ${Jt}TH EDITION`}),jsxRuntimeExports.jsxs(ChildSectionWrapper,{children:[jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"histology_code",ajccVersion:Jt,children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"morphology",fieldlabel:"Morphology",fullWidth:!0,sx:{width:qn,maxWidth:qn},options:rr,value:Cn.morphology||null,onChange:go=>{Kn("morphology",typeof go=="string"?{label:go,value:go}:go)},disabled:!Cn.disease||Yr,inputProps:{helperText:isFieldLowCertainty(vt,"histology_code",zt)?LOW_CERTAINTY:void 0,placeholder:SEARCH_DROPDOWN_PLACEHOLDER$1,warning:isFieldLowCertainty(vt,"histology_code",zt)},placeholder:"Start typing or choose from dropdown..."})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:$t,ajccVersion:Jt,children:jsxRuntimeExports.jsx(FormRow$1,{id:"row-stageTCode",fieldlabel:"T Stage",alignItems:"center",children:jsxRuntimeExports.jsxs(Stack$5,{sx:{width:qn},gap:"4px",children:[jsxRuntimeExports.jsx(FilteredListDropdown,{tooltip:getClinexTooltipText(vt,$t,zt),id:"stageTCode",options:ir,selectedOption:Cn.stageTCodePathological||Cn.stageTCodeClinical,onChange:go=>{ao("t",go,jt)},isLoading:Qr,isDisabled:!Cn.disease,hasError:!!(Gn>0&&kn[`stageTCode${((_i=Cn.stageTCodePathological)==null?void 0:_i.category)||"Clinical"}`]),hasWarning:isFieldLowCertainty(vt,$t,zt)}),jsxRuntimeExports.jsx(ROHelperText,{id:"stageTCode",error:Gn>0&&kn[`stageTCode${((ho=Cn.stageTCodePathological)==null?void 0:ho.category)||"Clinical"}`],warning:isFieldLowCertainty(vt,$t,zt),helperText:isFieldLowCertainty(vt,$t,zt)?LOW_CERTAINTY:void 0})]})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:Wt,ajccVersion:Jt,children:jsxRuntimeExports.jsx(FormRow$1,{id:"row-stageNCode",fieldlabel:"N Stage",alignItems:"center",children:jsxRuntimeExports.jsxs(Stack$5,{sx:{width:qn},gap:"4px",children:[jsxRuntimeExports.jsx(FilteredListDropdown,{id:"stageNCode",tooltip:getClinexTooltipText(vt,Wt,zt),options:gr,selectedOption:Cn.stageNCodePathological||Cn.stageNCodeClinical,onChange:go=>{ao("n",go,Ut)},isLoading:Qr,isDisabled:!Cn.disease,hasError:!!(Gn>0&&kn[`stageNCode${((So=Cn.stageNCodePathological)==null?void 0:So.category)||"Clinical"}`]),hasWarning:isFieldLowCertainty(vt,Wt,zt)}),jsxRuntimeExports.jsx(ROHelperText,{id:"stageNCode",error:Gn>0&&kn[`stageNCode${((ko=Cn.stageTCodePathological)==null?void 0:ko.category)||"Clinical"}`],warning:isFieldLowCertainty(vt,Wt,zt),helperText:isFieldLowCertainty(vt,Wt,zt)?LOW_CERTAINTY:void 0})]})})}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:Vt,ajccVersion:Jt,children:jsxRuntimeExports.jsx(FormRow$1,{id:"row-stageMCode",fieldlabel:"M Stage",alignItems:"center",children:jsxRuntimeExports.jsxs(Stack$5,{sx:{width:qn},gap:"4px",children:[jsxRuntimeExports.jsx(FilteredListDropdown,{tooltip:getClinexTooltipText(vt,Vt,zt),defaultSelectedFilter:"Clinical",id:"stageMCode",options:ar,selectedOption:Cn.stageMCodePathological||Cn.stageMCodeClinical,onChange:go=>{ao("m",go,Ht)},isLoading:Qr,isDisabled:!Cn.disease,hasError:!!(Gn>0&&kn[`stageMCode${((us=Cn.stageMCodePathological)==null?void 0:us.category)||"Clinical"}`]),hasWarning:isFieldLowCertainty(vt,Vt,zt)}),jsxRuntimeExports.jsx(ROHelperText,{id:"stageMCode",error:Gn>0&&kn[`stageMCode${((Jo=Cn.stageTCodePathological)==null?void 0:Jo.category)||"Clinical"}`],warning:isFieldLowCertainty(vt,Vt,zt),helperText:isFieldLowCertainty(vt,Vt,zt)?LOW_CERTAINTY:void 0})]})})})]}),jsxRuntimeExports.jsx(ClinexFieldWrapper,{field:"laterality",ajccVersion:Jt,children:jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:vt,clinexField:"laterality",formValues:zt,children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"laterality",fieldlabel:"Primary Laterality",required:Vr,sx:{width:qn,maxWidth:qn},disableClearable:!0,options:Bt,value:Cn.laterality,onChange:go=>{Kn("laterality",typeof go=="string"?{label:go,value:go}:go)},inputProps:{error:!!(Gn>0&&kn.laterality),warning:isFieldLowCertainty(vt,"laterality",zt),helperText:Gn>0&&kn.laterality?VALUE_REQUIRED:LOW_CERTAINTY}})})})}),jsxRuntimeExports.jsx(ClinexTooltip,{clinexData:vt,clinexField:"diagnosis_date",formValues:zt,children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(RODatePicker,{id:"diagnosisDate",fieldlabel:"Primary Diagnosis Date",error:!!(Gn>0&&kn.diagnosisDate),warning:isFieldLowCertainty(vt,"diagnosis_date",zt),helperText:isFieldLowCertainty(vt,"diagnosis_date",zt)?LOW_CERTAINTY:void 0,required:gn,value:Cn.diagnosisDate?dayjs(Cn.diagnosisDate):null,disableFuture:!0,onChange:(go,$o)=>{if($o.validationError)Mr($o.validationError),$o.validationError==="maxDate"&&Kn("diagnosisDate",go?go.format("YYYY-MM-DD").toString():"");else{const vo=go?go.format("YYYY-MM-DD").toString():"";Kn("diagnosisDate",vo)}},onError:Mr})})}),jsxRuntimeExports.jsx(ROTextField,{id:"otherInfo",fieldlabel:"Other Information",value:zt==null?void 0:zt.otherInfo,onChange:go=>{Tt({...zt,otherInfo:go.target.value})},onBlur:go=>{Tt({...zt,otherInfo:go.target.value}),Kn("otherInfo",go.target.value)},multiline:!0,maxRows:4})]}),Ct&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider$1,{sx:{padding:"8px 0"}}),jsxRuntimeExports.jsx(Typography,{paddingTop:2,paddingBottom:2,variant:"h6",children:"Metastasis Diagnosis"}),jsxRuntimeExports.jsx(FormGroup,{children:jsxRuntimeExports.jsx(ROAutocomplete,{id:"metastasisLaterality",fieldlabel:"Metastasis Laterality",options:Bt,value:Cn.metastasisLaterality,required:fn,onChange:go=>{Kn("metastasisLaterality",typeof go=="string"?{label:go,value:go}:go)},inputProps:{error:!!(Gn>0&&kn.metastasisLaterality),helperText:VALUE_REQUIRED}})}),jsxRuntimeExports.jsx(RODatePicker,{id:"metastasisDiagnosisDate",value:Cn.metastasisDiagnosisDate?dayjs(Cn.metastasisDiagnosisDate.toString()):null,fieldlabel:"Metastasis Diagnosis Date",required:xn,disableFuture:!0,error:xn&&!!(Gn>0&&kn.metastasisDiagnosisDate),onChange:(go,$o)=>{if($o.validationError)Ir($o.validationError),$o.validationError==="maxDate"&&Kn("metastasisDiagnosisDate",go?go.format("YYYY-MM-DD").toString():"");else{const vo=go?go.format("YYYY-MM-DD").toString():"";Kn("metastasisDiagnosisDate",vo)}},onError:Ir})]})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{...In})]})}})})]})},StagingPageRouter=et=>{var pt;const tt=useRouteMatch(),{diagnosisId:rt}=tt.params,{setError:nt}=useErrorModalContext(),{data:lt,loading:ut,error:dt}=useQuery(GET_DIAGNOSIS,{fetchPolicy:"network-only",variables:{diagnosisId:rt}});return reactExports.useEffect(()=>{if(dt)return nt()},[dt]),ut?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Staging",subtitle:"Please wait while we set things up for you"}):((pt=lt==null?void 0:lt.diagnosis)==null?void 0:pt.ajccMajorVersion)>7?jsxRuntimeExports.jsx(ROPatientDiagnosisStagingPage,{onDataRefresh:et.onDataRefresh}):jsxRuntimeExports.jsx(ROPatientDiagnosisStagingPageLegacy,{onDataRefresh:et.onDataRefresh})},ROPatientDiagnosisRouter=et=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/diagnosis/:diagnosisId/${CAREPLAN_PAGES.INTAKE}`,component:ROPatientDiagnosisIntakePage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/diagnosis/:diagnosisId/${CAREPLAN_PAGES.STAGING}`,children:jsxRuntimeExports.jsx(StagingPageRouter,{onDataRefresh:et.onDataRefresh})}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/careplan/:careplanId/diagnosis/:diagnosisId/:page/:operation",component:ROPatientDiagnosisICD10Page}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/careplan/:careplanId/diagnosis/:diagnosisId/:page",component:ROPatientDiagnosisSelectionPage}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/careplan/:careplanId/(diagnosis)?/:diagnosisId?",component:ROPatientDiagnosisPrimaryOrMetastasis})]})});var jquery={exports:{}};/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */(function(et){(function(tt,rt){et.exports=tt.document?rt(tt,!0):function(nt){if(!nt.document)throw new Error("jQuery requires a window with a document");return rt(nt)}})(typeof window<"u"?window:commonjsGlobal$1,function(tt,rt){var nt=[],lt=Object.getPrototypeOf,ut=nt.slice,dt=nt.flat?function(pr){return nt.flat.call(pr)}:function(pr){return nt.concat.apply([],pr)},pt=nt.push,ht=nt.indexOf,mt={},xt=mt.toString,Mt=mt.hasOwnProperty,vt=Mt.toString,Ot=vt.call(Object),At={},Rt=function(vr){return typeof vr=="function"&&typeof vr.nodeType!="number"&&typeof vr.item!="function"},zt=function(vr){return vr!=null&&vr===vr.window},Tt=tt.document,Ct={type:!0,src:!0,nonce:!0,noModule:!0};function It(pr,vr,Lr){Lr=Lr||Tt;var Wr,on,sn=Lr.createElement("script");if(sn.text=pr,vr)for(Wr in Ct)on=vr[Wr]||vr.getAttribute&&vr.getAttribute(Wr),on&&sn.setAttribute(Wr,on);Lr.head.appendChild(sn).parentNode.removeChild(sn)}function Dt(pr){return pr==null?pr+"":typeof pr=="object"||typeof pr=="function"?mt[xt.call(pr)]||"object":typeof pr}var kt="3.7.1",qt=/HTML$/i,Nt=function(pr,vr){return new Nt.fn.init(pr,vr)};Nt.fn=Nt.prototype={jquery:kt,constructor:Nt,length:0,toArray:function(){return ut.call(this)},get:function(pr){return pr==null?ut.call(this):pr<0?this[pr+this.length]:this[pr]},pushStack:function(pr){var vr=Nt.merge(this.constructor(),pr);return vr.prevObject=this,vr},each:function(pr){return Nt.each(this,pr)},map:function(pr){return this.pushStack(Nt.map(this,function(vr,Lr){return pr.call(vr,Lr,vr)}))},slice:function(){return this.pushStack(ut.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Nt.grep(this,function(pr,vr){return(vr+1)%2}))},odd:function(){return this.pushStack(Nt.grep(this,function(pr,vr){return vr%2}))},eq:function(pr){var vr=this.length,Lr=+pr+(pr<0?vr:0);return this.pushStack(Lr>=0&&Lr<vr?[this[Lr]]:[])},end:function(){return this.prevObject||this.constructor()},push:pt,sort:nt.sort,splice:nt.splice},Nt.extend=Nt.fn.extend=function(){var pr,vr,Lr,Wr,on,sn,dn=arguments[0]||{},zn=1,_n=arguments.length,Fn=!1;for(typeof dn=="boolean"&&(Fn=dn,dn=arguments[zn]||{},zn++),typeof dn!="object"&&!Rt(dn)&&(dn={}),zn===_n&&(dn=this,zn--);zn<_n;zn++)if((pr=arguments[zn])!=null)for(vr in pr)Wr=pr[vr],!(vr==="__proto__"||dn===Wr)&&(Fn&&Wr&&(Nt.isPlainObject(Wr)||(on=Array.isArray(Wr)))?(Lr=dn[vr],on&&!Array.isArray(Lr)?sn=[]:!on&&!Nt.isPlainObject(Lr)?sn={}:sn=Lr,on=!1,dn[vr]=Nt.extend(Fn,sn,Wr)):Wr!==void 0&&(dn[vr]=Wr));return dn},Nt.extend({expando:"jQuery"+(kt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(pr){throw new Error(pr)},noop:function(){},isPlainObject:function(pr){var vr,Lr;return!pr||xt.call(pr)!=="[object Object]"?!1:(vr=lt(pr),vr?(Lr=Mt.call(vr,"constructor")&&vr.constructor,typeof Lr=="function"&&vt.call(Lr)===Ot):!0)},isEmptyObject:function(pr){var vr;for(vr in pr)return!1;return!0},globalEval:function(pr,vr,Lr){It(pr,{nonce:vr&&vr.nonce},Lr)},each:function(pr,vr){var Lr,Wr=0;if(Yt(pr))for(Lr=pr.length;Wr<Lr&&vr.call(pr[Wr],Wr,pr[Wr])!==!1;Wr++);else for(Wr in pr)if(vr.call(pr[Wr],Wr,pr[Wr])===!1)break;return pr},text:function(pr){var vr,Lr="",Wr=0,on=pr.nodeType;if(!on)for(;vr=pr[Wr++];)Lr+=Nt.text(vr);return on===1||on===11?pr.textContent:on===9?pr.documentElement.textContent:on===3||on===4?pr.nodeValue:Lr},makeArray:function(pr,vr){var Lr=vr||[];return pr!=null&&(Yt(Object(pr))?Nt.merge(Lr,typeof pr=="string"?[pr]:pr):pt.call(Lr,pr)),Lr},inArray:function(pr,vr,Lr){return vr==null?-1:ht.call(vr,pr,Lr)},isXMLDoc:function(pr){var vr=pr&&pr.namespaceURI,Lr=pr&&(pr.ownerDocument||pr).documentElement;return!qt.test(vr||Lr&&Lr.nodeName||"HTML")},merge:function(pr,vr){for(var Lr=+vr.length,Wr=0,on=pr.length;Wr<Lr;Wr++)pr[on++]=vr[Wr];return pr.length=on,pr},grep:function(pr,vr,Lr){for(var Wr,on=[],sn=0,dn=pr.length,zn=!Lr;sn<dn;sn++)Wr=!vr(pr[sn],sn),Wr!==zn&&on.push(pr[sn]);return on},map:function(pr,vr,Lr){var Wr,on,sn=0,dn=[];if(Yt(pr))for(Wr=pr.length;sn<Wr;sn++)on=vr(pr[sn],sn,Lr),on!=null&&dn.push(on);else for(sn in pr)on=vr(pr[sn],sn,Lr),on!=null&&dn.push(on);return dt(dn)},guid:1,support:At}),typeof Symbol=="function"&&(Nt.fn[Symbol.iterator]=nt[Symbol.iterator]),Nt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(pr,vr){mt["[object "+vr+"]"]=vr.toLowerCase()});function Yt(pr){var vr=!!pr&&"length"in pr&&pr.length,Lr=Dt(pr);return Rt(pr)||zt(pr)?!1:Lr==="array"||vr===0||typeof vr=="number"&&vr>0&&vr-1 in pr}function Kt(pr,vr){return pr.nodeName&&pr.nodeName.toLowerCase()===vr.toLowerCase()}var Jt=nt.pop,Qt=nt.sort,Bt=nt.splice,Ft="[\\x20\\t\\r\\n\\f]",$t=new RegExp("^"+Ft+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ft+"+$","g");Nt.contains=function(pr,vr){var Lr=vr&&vr.parentNode;return pr===Lr||!!(Lr&&Lr.nodeType===1&&(pr.contains?pr.contains(Lr):pr.compareDocumentPosition&&pr.compareDocumentPosition(Lr)&16))};var jt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Wt(pr,vr){return vr?pr==="\0"?"�":pr.slice(0,-1)+"\\"+pr.charCodeAt(pr.length-1).toString(16)+" ":"\\"+pr}Nt.escapeSelector=function(pr){return(pr+"").replace(jt,Wt)};var Ut=Tt,Vt=pt;(function(){var pr,vr,Lr,Wr,on,sn=Vt,dn,zn,_n,Fn,Jn,ro=Nt.expando,Xn=0,co=0,bo=L0(),wo=L0(),Lo=L0(),Cs=L0(),Ms=function(Rn,Ln){return Rn===Ln&&(on=!0),0},$a="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",_l="(?:\\\\[\\da-fA-F]{1,6}"+Ft+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Vo="\\["+Ft+"*("+_l+")(?:"+Ft+"*([*^$|!~]?=)"+Ft+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+_l+"))|)"+Ft+"*\\]",r0=":("+_l+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Vo+")*)|.*)\\)|)",Yo=new RegExp(Ft+"+","g"),ds=new RegExp("^"+Ft+"*,"+Ft+"*"),C0=new RegExp("^"+Ft+"*([>+~]|"+Ft+")"+Ft+"*"),n1=new RegExp(Ft+"|>"),Ps=new RegExp(r0),h0=new RegExp("^"+_l+"$"),Us={ID:new RegExp("^#("+_l+")"),CLASS:new RegExp("^\\.("+_l+")"),TAG:new RegExp("^("+_l+"|[*])"),ATTR:new RegExp("^"+Vo),PSEUDO:new RegExp("^"+r0),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ft+"*(even|odd|(([+-]|)(\\d*)n|)"+Ft+"*(?:([+-]|)"+Ft+"*(\\d+)|))"+Ft+"*\\)|)","i"),bool:new RegExp("^(?:"+$a+")$","i"),needsContext:new RegExp("^"+Ft+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ft+"*((?:-\\d)?\\d*)"+Ft+"*\\)|)(?=[^-]|$)","i")},Wl=/^(?:input|select|textarea|button)$/i,Cl=/^h\d$/i,Hs=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,P0=/[+~]/,Ul=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ft+"?|\\\\([^\\r\\n\\f])","g"),Tl=function(Rn,Ln){var Yn="0x"+Rn.slice(1)-65536;return Ln||(Yn<0?String.fromCharCode(Yn+65536):String.fromCharCode(Yn>>10|55296,Yn&1023|56320))},Gs=function(){n0()},b1=Gl(function(Rn){return Rn.disabled===!0&&Kt(Rn,"fieldset")},{dir:"parentNode",next:"legend"});function T0(){try{return dn.activeElement}catch{}}try{sn.apply(nt=ut.call(Ut.childNodes),Ut.childNodes),nt[Ut.childNodes.length].nodeType}catch{sn={apply:function(Ln,Yn){Vt.apply(Ln,ut.call(Yn))},call:function(Ln){Vt.apply(Ln,ut.call(arguments,1))}}}function Oo(Rn,Ln,Yn,Zn){var En,Nn,Dn,no,io,yo,Eo,fo=Ln&&Ln.ownerDocument,Do=Ln?Ln.nodeType:9;if(Yn=Yn||[],typeof Rn!="string"||!Rn||Do!==1&&Do!==9&&Do!==11)return Yn;if(!Zn&&(n0(Ln),Ln=Ln||dn,_n)){if(Do!==11&&(io=Hs.exec(Rn)))if(En=io[1]){if(Do===9)if(Dn=Ln.getElementById(En)){if(Dn.id===En)return sn.call(Yn,Dn),Yn}else return Yn;else if(fo&&(Dn=fo.getElementById(En))&&Oo.contains(Ln,Dn)&&Dn.id===En)return sn.call(Yn,Dn),Yn}else{if(io[2])return sn.apply(Yn,Ln.getElementsByTagName(Rn)),Yn;if((En=io[3])&&Ln.getElementsByClassName)return sn.apply(Yn,Ln.getElementsByClassName(En)),Yn}if(!Cs[Rn+" "]&&(!Fn||!Fn.test(Rn))){if(Eo=Rn,fo=Ln,Do===1&&(n1.test(Rn)||C0.test(Rn))){for(fo=P0.test(Rn)&&x1(Ln.parentNode)||Ln,(fo!=Ln||!At.scope)&&((no=Ln.getAttribute("id"))?no=Nt.escapeSelector(no):Ln.setAttribute("id",no=ro)),yo=Hl(Rn),Nn=yo.length;Nn--;)yo[Nn]=(no?"#"+no:":scope")+" "+Vs(yo[Nn]);Eo=yo.join(",")}try{return sn.apply(Yn,fo.querySelectorAll(Eo)),Yn}catch{Cs(Rn,!0)}finally{no===ro&&Ln.removeAttribute("id")}}}return L1(Rn.replace($t,"$1"),Ln,Yn,Zn)}function L0(){var Rn=[];function Ln(Yn,Zn){return Rn.push(Yn+" ")>vr.cacheLength&&delete Ln[Rn.shift()],Ln[Yn+" "]=Zn}return Ln}function xl(Rn){return Rn[ro]=!0,Rn}function m0(Rn){var Ln=dn.createElement("fieldset");try{return!!Rn(Ln)}catch{return!1}finally{Ln.parentNode&&Ln.parentNode.removeChild(Ln),Ln=null}}function au(Rn){return function(Ln){return Kt(Ln,"input")&&Ln.type===Rn}}function lu(Rn){return function(Ln){return(Kt(Ln,"input")||Kt(Ln,"button"))&&Ln.type===Rn}}function j1(Rn){return function(Ln){return"form"in Ln?Ln.parentNode&&Ln.disabled===!1?"label"in Ln?"label"in Ln.parentNode?Ln.parentNode.disabled===Rn:Ln.disabled===Rn:Ln.isDisabled===Rn||Ln.isDisabled!==!Rn&&b1(Ln)===Rn:Ln.disabled===Rn:"label"in Ln?Ln.disabled===Rn:!1}}function Ls(Rn){return xl(function(Ln){return Ln=+Ln,xl(function(Yn,Zn){for(var En,Nn=Rn([],Yn.length,Ln),Dn=Nn.length;Dn--;)Yn[En=Nn[Dn]]&&(Yn[En]=!(Zn[En]=Yn[En]))})})}function x1(Rn){return Rn&&typeof Rn.getElementsByTagName<"u"&&Rn}function n0(Rn){var Ln,Yn=Rn?Rn.ownerDocument||Rn:Ut;return Yn==dn||Yn.nodeType!==9||!Yn.documentElement||(dn=Yn,zn=dn.documentElement,_n=!Nt.isXMLDoc(dn),Jn=zn.matches||zn.webkitMatchesSelector||zn.msMatchesSelector,zn.msMatchesSelector&&Ut!=dn&&(Ln=dn.defaultView)&&Ln.top!==Ln&&Ln.addEventListener("unload",Gs),At.getById=m0(function(Zn){return zn.appendChild(Zn).id=Nt.expando,!dn.getElementsByName||!dn.getElementsByName(Nt.expando).length}),At.disconnectedMatch=m0(function(Zn){return Jn.call(Zn,"*")}),At.scope=m0(function(){return dn.querySelectorAll(":scope")}),At.cssHas=m0(function(){try{return dn.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),At.getById?(vr.filter.ID=function(Zn){var En=Zn.replace(Ul,Tl);return function(Nn){return Nn.getAttribute("id")===En}},vr.find.ID=function(Zn,En){if(typeof En.getElementById<"u"&&_n){var Nn=En.getElementById(Zn);return Nn?[Nn]:[]}}):(vr.filter.ID=function(Zn){var En=Zn.replace(Ul,Tl);return function(Nn){var Dn=typeof Nn.getAttributeNode<"u"&&Nn.getAttributeNode("id");return Dn&&Dn.value===En}},vr.find.ID=function(Zn,En){if(typeof En.getElementById<"u"&&_n){var Nn,Dn,no,io=En.getElementById(Zn);if(io){if(Nn=io.getAttributeNode("id"),Nn&&Nn.value===Zn)return[io];for(no=En.getElementsByName(Zn),Dn=0;io=no[Dn++];)if(Nn=io.getAttributeNode("id"),Nn&&Nn.value===Zn)return[io]}return[]}}),vr.find.TAG=function(Zn,En){return typeof En.getElementsByTagName<"u"?En.getElementsByTagName(Zn):En.querySelectorAll(Zn)},vr.find.CLASS=function(Zn,En){if(typeof En.getElementsByClassName<"u"&&_n)return En.getElementsByClassName(Zn)},Fn=[],m0(function(Zn){var En;zn.appendChild(Zn).innerHTML="<a id='"+ro+"' href='' disabled='disabled'></a><select id='"+ro+"-\r\\' disabled='disabled'><option selected=''></option></select>",Zn.querySelectorAll("[selected]").length||Fn.push("\\["+Ft+"*(?:value|"+$a+")"),Zn.querySelectorAll("[id~="+ro+"-]").length||Fn.push("~="),Zn.querySelectorAll("a#"+ro+"+*").length||Fn.push(".#.+[+~]"),Zn.querySelectorAll(":checked").length||Fn.push(":checked"),En=dn.createElement("input"),En.setAttribute("type","hidden"),Zn.appendChild(En).setAttribute("name","D"),zn.appendChild(Zn).disabled=!0,Zn.querySelectorAll(":disabled").length!==2&&Fn.push(":enabled",":disabled"),En=dn.createElement("input"),En.setAttribute("name",""),Zn.appendChild(En),Zn.querySelectorAll("[name='']").length||Fn.push("\\["+Ft+"*name"+Ft+"*="+Ft+`*(?:''|"")`)}),At.cssHas||Fn.push(":has"),Fn=Fn.length&&new RegExp(Fn.join("|")),Ms=function(Zn,En){if(Zn===En)return on=!0,0;var Nn=!Zn.compareDocumentPosition-!En.compareDocumentPosition;return Nn||(Nn=(Zn.ownerDocument||Zn)==(En.ownerDocument||En)?Zn.compareDocumentPosition(En):1,Nn&1||!At.sortDetached&&En.compareDocumentPosition(Zn)===Nn?Zn===dn||Zn.ownerDocument==Ut&&Oo.contains(Ut,Zn)?-1:En===dn||En.ownerDocument==Ut&&Oo.contains(Ut,En)?1:Wr?ht.call(Wr,Zn)-ht.call(Wr,En):0:Nn&4?-1:1)}),dn}Oo.matches=function(Rn,Ln){return Oo(Rn,null,null,Ln)},Oo.matchesSelector=function(Rn,Ln){if(n0(Rn),_n&&!Cs[Ln+" "]&&(!Fn||!Fn.test(Ln)))try{var Yn=Jn.call(Rn,Ln);if(Yn||At.disconnectedMatch||Rn.document&&Rn.document.nodeType!==11)return Yn}catch{Cs(Ln,!0)}return Oo(Ln,dn,null,[Rn]).length>0},Oo.contains=function(Rn,Ln){return(Rn.ownerDocument||Rn)!=dn&&n0(Rn),Nt.contains(Rn,Ln)},Oo.attr=function(Rn,Ln){(Rn.ownerDocument||Rn)!=dn&&n0(Rn);var Yn=vr.attrHandle[Ln.toLowerCase()],Zn=Yn&&Mt.call(vr.attrHandle,Ln.toLowerCase())?Yn(Rn,Ln,!_n):void 0;return Zn!==void 0?Zn:Rn.getAttribute(Ln)},Oo.error=function(Rn){throw new Error("Syntax error, unrecognized expression: "+Rn)},Nt.uniqueSort=function(Rn){var Ln,Yn=[],Zn=0,En=0;if(on=!At.sortStable,Wr=!At.sortStable&&ut.call(Rn,0),Qt.call(Rn,Ms),on){for(;Ln=Rn[En++];)Ln===Rn[En]&&(Zn=Yn.push(En));for(;Zn--;)Bt.call(Rn,Yn[Zn],1)}return Wr=null,Rn},Nt.fn.uniqueSort=function(){return this.pushStack(Nt.uniqueSort(ut.apply(this)))},vr=Nt.expr={cacheLength:50,createPseudo:xl,match:Us,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Rn){return Rn[1]=Rn[1].replace(Ul,Tl),Rn[3]=(Rn[3]||Rn[4]||Rn[5]||"").replace(Ul,Tl),Rn[2]==="~="&&(Rn[3]=" "+Rn[3]+" "),Rn.slice(0,4)},CHILD:function(Rn){return Rn[1]=Rn[1].toLowerCase(),Rn[1].slice(0,3)==="nth"?(Rn[3]||Oo.error(Rn[0]),Rn[4]=+(Rn[4]?Rn[5]+(Rn[6]||1):2*(Rn[3]==="even"||Rn[3]==="odd")),Rn[5]=+(Rn[7]+Rn[8]||Rn[3]==="odd")):Rn[3]&&Oo.error(Rn[0]),Rn},PSEUDO:function(Rn){var Ln,Yn=!Rn[6]&&Rn[2];return Us.CHILD.test(Rn[0])?null:(Rn[3]?Rn[2]=Rn[4]||Rn[5]||"":Yn&&Ps.test(Yn)&&(Ln=Hl(Yn,!0))&&(Ln=Yn.indexOf(")",Yn.length-Ln)-Yn.length)&&(Rn[0]=Rn[0].slice(0,Ln),Rn[2]=Yn.slice(0,Ln)),Rn.slice(0,3))}},filter:{TAG:function(Rn){var Ln=Rn.replace(Ul,Tl).toLowerCase();return Rn==="*"?function(){return!0}:function(Yn){return Kt(Yn,Ln)}},CLASS:function(Rn){var Ln=bo[Rn+" "];return Ln||(Ln=new RegExp("(^|"+Ft+")"+Rn+"("+Ft+"|$)"))&&bo(Rn,function(Yn){return Ln.test(typeof Yn.className=="string"&&Yn.className||typeof Yn.getAttribute<"u"&&Yn.getAttribute("class")||"")})},ATTR:function(Rn,Ln,Yn){return function(Zn){var En=Oo.attr(Zn,Rn);return En==null?Ln==="!=":Ln?(En+="",Ln==="="?En===Yn:Ln==="!="?En!==Yn:Ln==="^="?Yn&&En.indexOf(Yn)===0:Ln==="*="?Yn&&En.indexOf(Yn)>-1:Ln==="$="?Yn&&En.slice(-Yn.length)===Yn:Ln==="~="?(" "+En.replace(Yo," ")+" ").indexOf(Yn)>-1:Ln==="|="?En===Yn||En.slice(0,Yn.length+1)===Yn+"-":!1):!0}},CHILD:function(Rn,Ln,Yn,Zn,En){var Nn=Rn.slice(0,3)!=="nth",Dn=Rn.slice(-4)!=="last",no=Ln==="of-type";return Zn===1&&En===0?function(io){return!!io.parentNode}:function(io,yo,Eo){var fo,Do,Ro,Uo,Rs,Ts=Nn!==Dn?"nextSibling":"previousSibling",zs=io.parentNode,Qs=no&&io.nodeName.toLowerCase(),$l=!Eo&&!no,jo=!1;if(zs){if(Nn){for(;Ts;){for(Ro=io;Ro=Ro[Ts];)if(no?Kt(Ro,Qs):Ro.nodeType===1)return!1;Rs=Ts=Rn==="only"&&!Rs&&"nextSibling"}return!0}if(Rs=[Dn?zs.firstChild:zs.lastChild],Dn&&$l){for(Do=zs[ro]||(zs[ro]={}),fo=Do[Rn]||[],Uo=fo[0]===Xn&&fo[1],jo=Uo&&fo[2],Ro=Uo&&zs.childNodes[Uo];Ro=++Uo&&Ro&&Ro[Ts]||(jo=Uo=0)||Rs.pop();)if(Ro.nodeType===1&&++jo&&Ro===io){Do[Rn]=[Xn,Uo,jo];break}}else if($l&&(Do=io[ro]||(io[ro]={}),fo=Do[Rn]||[],Uo=fo[0]===Xn&&fo[1],jo=Uo),jo===!1)for(;(Ro=++Uo&&Ro&&Ro[Ts]||(jo=Uo=0)||Rs.pop())&&!((no?Kt(Ro,Qs):Ro.nodeType===1)&&++jo&&($l&&(Do=Ro[ro]||(Ro[ro]={}),Do[Rn]=[Xn,jo]),Ro===io)););return jo-=En,jo===Zn||jo%Zn===0&&jo/Zn>=0}}},PSEUDO:function(Rn,Ln){var Yn,Zn=vr.pseudos[Rn]||vr.setFilters[Rn.toLowerCase()]||Oo.error("unsupported pseudo: "+Rn);return Zn[ro]?Zn(Ln):Zn.length>1?(Yn=[Rn,Rn,"",Ln],vr.setFilters.hasOwnProperty(Rn.toLowerCase())?xl(function(En,Nn){for(var Dn,no=Zn(En,Ln),io=no.length;io--;)Dn=ht.call(En,no[io]),En[Dn]=!(Nn[Dn]=no[io])}):function(En){return Zn(En,0,Yn)}):Zn}},pseudos:{not:xl(function(Rn){var Ln=[],Yn=[],Zn=M1(Rn.replace($t,"$1"));return Zn[ro]?xl(function(En,Nn,Dn,no){for(var io,yo=Zn(En,null,no,[]),Eo=En.length;Eo--;)(io=yo[Eo])&&(En[Eo]=!(Nn[Eo]=io))}):function(En,Nn,Dn){return Ln[0]=En,Zn(Ln,null,Dn,Yn),Ln[0]=null,!Yn.pop()}}),has:xl(function(Rn){return function(Ln){return Oo(Rn,Ln).length>0}}),contains:xl(function(Rn){return Rn=Rn.replace(Ul,Tl),function(Ln){return(Ln.textContent||Nt.text(Ln)).indexOf(Rn)>-1}}),lang:xl(function(Rn){return h0.test(Rn||"")||Oo.error("unsupported lang: "+Rn),Rn=Rn.replace(Ul,Tl).toLowerCase(),function(Ln){var Yn;do if(Yn=_n?Ln.lang:Ln.getAttribute("xml:lang")||Ln.getAttribute("lang"))return Yn=Yn.toLowerCase(),Yn===Rn||Yn.indexOf(Rn+"-")===0;while((Ln=Ln.parentNode)&&Ln.nodeType===1);return!1}}),target:function(Rn){var Ln=tt.location&&tt.location.hash;return Ln&&Ln.slice(1)===Rn.id},root:function(Rn){return Rn===zn},focus:function(Rn){return Rn===T0()&&dn.hasFocus()&&!!(Rn.type||Rn.href||~Rn.tabIndex)},enabled:j1(!1),disabled:j1(!0),checked:function(Rn){return Kt(Rn,"input")&&!!Rn.checked||Kt(Rn,"option")&&!!Rn.selected},selected:function(Rn){return Rn.parentNode&&Rn.parentNode.selectedIndex,Rn.selected===!0},empty:function(Rn){for(Rn=Rn.firstChild;Rn;Rn=Rn.nextSibling)if(Rn.nodeType<6)return!1;return!0},parent:function(Rn){return!vr.pseudos.empty(Rn)},header:function(Rn){return Cl.test(Rn.nodeName)},input:function(Rn){return Wl.test(Rn.nodeName)},button:function(Rn){return Kt(Rn,"input")&&Rn.type==="button"||Kt(Rn,"button")},text:function(Rn){var Ln;return Kt(Rn,"input")&&Rn.type==="text"&&((Ln=Rn.getAttribute("type"))==null||Ln.toLowerCase()==="text")},first:Ls(function(){return[0]}),last:Ls(function(Rn,Ln){return[Ln-1]}),eq:Ls(function(Rn,Ln,Yn){return[Yn<0?Yn+Ln:Yn]}),even:Ls(function(Rn,Ln){for(var Yn=0;Yn<Ln;Yn+=2)Rn.push(Yn);return Rn}),odd:Ls(function(Rn,Ln){for(var Yn=1;Yn<Ln;Yn+=2)Rn.push(Yn);return Rn}),lt:Ls(function(Rn,Ln,Yn){var Zn;for(Yn<0?Zn=Yn+Ln:Yn>Ln?Zn=Ln:Zn=Yn;--Zn>=0;)Rn.push(Zn);return Rn}),gt:Ls(function(Rn,Ln,Yn){for(var Zn=Yn<0?Yn+Ln:Yn;++Zn<Ln;)Rn.push(Zn);return Rn})}},vr.pseudos.nth=vr.pseudos.eq;for(pr in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})vr.pseudos[pr]=au(pr);for(pr in{submit:!0,reset:!0})vr.pseudos[pr]=lu(pr);function i1(){}i1.prototype=vr.filters=vr.pseudos,vr.setFilters=new i1;function Hl(Rn,Ln){var Yn,Zn,En,Nn,Dn,no,io,yo=wo[Rn+" "];if(yo)return Ln?0:yo.slice(0);for(Dn=Rn,no=[],io=vr.preFilter;Dn;){(!Yn||(Zn=ds.exec(Dn)))&&(Zn&&(Dn=Dn.slice(Zn[0].length)||Dn),no.push(En=[])),Yn=!1,(Zn=C0.exec(Dn))&&(Yn=Zn.shift(),En.push({value:Yn,type:Zn[0].replace($t," ")}),Dn=Dn.slice(Yn.length));for(Nn in vr.filter)(Zn=Us[Nn].exec(Dn))&&(!io[Nn]||(Zn=io[Nn](Zn)))&&(Yn=Zn.shift(),En.push({value:Yn,type:Nn,matches:Zn}),Dn=Dn.slice(Yn.length));if(!Yn)break}return Ln?Dn.length:Dn?Oo.error(Rn):wo(Rn,no).slice(0)}function Vs(Rn){for(var Ln=0,Yn=Rn.length,Zn="";Ln<Yn;Ln++)Zn+=Rn[Ln].value;return Zn}function Gl(Rn,Ln,Yn){var Zn=Ln.dir,En=Ln.next,Nn=En||Zn,Dn=Yn&&Nn==="parentNode",no=co++;return Ln.first?function(io,yo,Eo){for(;io=io[Zn];)if(io.nodeType===1||Dn)return Rn(io,yo,Eo);return!1}:function(io,yo,Eo){var fo,Do,Ro=[Xn,no];if(Eo){for(;io=io[Zn];)if((io.nodeType===1||Dn)&&Rn(io,yo,Eo))return!0}else for(;io=io[Zn];)if(io.nodeType===1||Dn)if(Do=io[ro]||(io[ro]={}),En&&Kt(io,En))io=io[Zn]||io;else{if((fo=Do[Nn])&&fo[0]===Xn&&fo[1]===no)return Ro[2]=fo[2];if(Do[Nn]=Ro,Ro[2]=Rn(io,yo,Eo))return!0}return!1}}function y1(Rn){return Rn.length>1?function(Ln,Yn,Zn){for(var En=Rn.length;En--;)if(!Rn[En](Ln,Yn,Zn))return!1;return!0}:Rn[0]}function P1(Rn,Ln,Yn){for(var Zn=0,En=Ln.length;Zn<En;Zn++)Oo(Rn,Ln[Zn],Yn);return Yn}function o1(Rn,Ln,Yn,Zn,En){for(var Nn,Dn=[],no=0,io=Rn.length,yo=Ln!=null;no<io;no++)(Nn=Rn[no])&&(!Yn||Yn(Nn,Zn,En))&&(Dn.push(Nn),yo&&Ln.push(no));return Dn}function Il(Rn,Ln,Yn,Zn,En,Nn){return Zn&&!Zn[ro]&&(Zn=Il(Zn)),En&&!En[ro]&&(En=Il(En,Nn)),xl(function(Dn,no,io,yo){var Eo,fo,Do,Ro,Uo=[],Rs=[],Ts=no.length,zs=Dn||P1(Ln||"*",io.nodeType?[io]:io,[]),Qs=Rn&&(Dn||!Ln)?o1(zs,Uo,Rn,io,yo):zs;if(Yn?(Ro=En||(Dn?Rn:Ts||Zn)?[]:no,Yn(Qs,Ro,io,yo)):Ro=Qs,Zn)for(Eo=o1(Ro,Rs),Zn(Eo,[],io,yo),fo=Eo.length;fo--;)(Do=Eo[fo])&&(Ro[Rs[fo]]=!(Qs[Rs[fo]]=Do));if(Dn){if(En||Rn){if(En){for(Eo=[],fo=Ro.length;fo--;)(Do=Ro[fo])&&Eo.push(Qs[fo]=Do);En(null,Ro=[],Eo,yo)}for(fo=Ro.length;fo--;)(Do=Ro[fo])&&(Eo=En?ht.call(Dn,Do):Uo[fo])>-1&&(Dn[Eo]=!(no[Eo]=Do))}}else Ro=o1(Ro===no?Ro.splice(Ts,Ro.length):Ro),En?En(null,no,Ro,yo):sn.apply(no,Ro)})}function ks(Rn){for(var Ln,Yn,Zn,En=Rn.length,Nn=vr.relative[Rn[0].type],Dn=Nn||vr.relative[" "],no=Nn?1:0,io=Gl(function(fo){return fo===Ln},Dn,!0),yo=Gl(function(fo){return ht.call(Ln,fo)>-1},Dn,!0),Eo=[function(fo,Do,Ro){var Uo=!Nn&&(Ro||Do!=Lr)||((Ln=Do).nodeType?io(fo,Do,Ro):yo(fo,Do,Ro));return Ln=null,Uo}];no<En;no++)if(Yn=vr.relative[Rn[no].type])Eo=[Gl(y1(Eo),Yn)];else{if(Yn=vr.filter[Rn[no].type].apply(null,Rn[no].matches),Yn[ro]){for(Zn=++no;Zn<En&&!vr.relative[Rn[Zn].type];Zn++);return Il(no>1&&y1(Eo),no>1&&Vs(Rn.slice(0,no-1).concat({value:Rn[no-2].type===" "?"*":""})).replace($t,"$1"),Yn,no<Zn&&ks(Rn.slice(no,Zn)),Zn<En&&ks(Rn=Rn.slice(Zn)),Zn<En&&Vs(Rn))}Eo.push(Yn)}return y1(Eo)}function s1(Rn,Ln){var Yn=Ln.length>0,Zn=Rn.length>0,En=function(Nn,Dn,no,io,yo){var Eo,fo,Do,Ro=0,Uo="0",Rs=Nn&&[],Ts=[],zs=Lr,Qs=Nn||Zn&&vr.find.TAG("*",yo),$l=Xn+=zs==null?1:Math.random()||.1,jo=Qs.length;for(yo&&(Lr=Dn==dn||Dn||yo);Uo!==jo&&(Eo=Qs[Uo])!=null;Uo++){if(Zn&&Eo){for(fo=0,!Dn&&Eo.ownerDocument!=dn&&(n0(Eo),no=!_n);Do=Rn[fo++];)if(Do(Eo,Dn||dn,no)){sn.call(io,Eo);break}yo&&(Xn=$l)}Yn&&((Eo=!Do&&Eo)&&Ro--,Nn&&Rs.push(Eo))}if(Ro+=Uo,Yn&&Uo!==Ro){for(fo=0;Do=Ln[fo++];)Do(Rs,Ts,Dn,no);if(Nn){if(Ro>0)for(;Uo--;)Rs[Uo]||Ts[Uo]||(Ts[Uo]=Jt.call(io));Ts=o1(Ts)}sn.apply(io,Ts),yo&&!Nn&&Ts.length>0&&Ro+Ln.length>1&&Nt.uniqueSort(io)}return yo&&(Xn=$l,Lr=zs),Rs};return Yn?xl(En):En}function M1(Rn,Ln){var Yn,Zn=[],En=[],Nn=Lo[Rn+" "];if(!Nn){for(Ln||(Ln=Hl(Rn)),Yn=Ln.length;Yn--;)Nn=ks(Ln[Yn]),Nn[ro]?Zn.push(Nn):En.push(Nn);Nn=Lo(Rn,s1(En,Zn)),Nn.selector=Rn}return Nn}function L1(Rn,Ln,Yn,Zn){var En,Nn,Dn,no,io,yo=typeof Rn=="function"&&Rn,Eo=!Zn&&Hl(Rn=yo.selector||Rn);if(Yn=Yn||[],Eo.length===1){if(Nn=Eo[0]=Eo[0].slice(0),Nn.length>2&&(Dn=Nn[0]).type==="ID"&&Ln.nodeType===9&&_n&&vr.relative[Nn[1].type]){if(Ln=(vr.find.ID(Dn.matches[0].replace(Ul,Tl),Ln)||[])[0],Ln)yo&&(Ln=Ln.parentNode);else return Yn;Rn=Rn.slice(Nn.shift().value.length)}for(En=Us.needsContext.test(Rn)?0:Nn.length;En--&&(Dn=Nn[En],!vr.relative[no=Dn.type]);)if((io=vr.find[no])&&(Zn=io(Dn.matches[0].replace(Ul,Tl),P0.test(Nn[0].type)&&x1(Ln.parentNode)||Ln))){if(Nn.splice(En,1),Rn=Zn.length&&Vs(Nn),!Rn)return sn.apply(Yn,Zn),Yn;break}}return(yo||M1(Rn,Eo))(Zn,Ln,!_n,Yn,!Ln||P0.test(Rn)&&x1(Ln.parentNode)||Ln),Yn}At.sortStable=ro.split("").sort(Ms).join("")===ro,n0(),At.sortDetached=m0(function(Rn){return Rn.compareDocumentPosition(dn.createElement("fieldset"))&1}),Nt.find=Oo,Nt.expr[":"]=Nt.expr.pseudos,Nt.unique=Nt.uniqueSort,Oo.compile=M1,Oo.select=L1,Oo.setDocument=n0,Oo.tokenize=Hl,Oo.escape=Nt.escapeSelector,Oo.getText=Nt.text,Oo.isXML=Nt.isXMLDoc,Oo.selectors=Nt.expr,Oo.support=Nt.support,Oo.uniqueSort=Nt.uniqueSort})();var Ht=function(pr,vr,Lr){for(var Wr=[],on=Lr!==void 0;(pr=pr[vr])&&pr.nodeType!==9;)if(pr.nodeType===1){if(on&&Nt(pr).is(Lr))break;Wr.push(pr)}return Wr},Gt=function(pr,vr){for(var Lr=[];pr;pr=pr.nextSibling)pr.nodeType===1&&pr!==vr&&Lr.push(pr);return Lr},Zt=Nt.expr.match.needsContext,Xt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function er(pr,vr,Lr){return Rt(vr)?Nt.grep(pr,function(Wr,on){return!!vr.call(Wr,on,Wr)!==Lr}):vr.nodeType?Nt.grep(pr,function(Wr){return Wr===vr!==Lr}):typeof vr!="string"?Nt.grep(pr,function(Wr){return ht.call(vr,Wr)>-1!==Lr}):Nt.filter(vr,pr,Lr)}Nt.filter=function(pr,vr,Lr){var Wr=vr[0];return Lr&&(pr=":not("+pr+")"),vr.length===1&&Wr.nodeType===1?Nt.find.matchesSelector(Wr,pr)?[Wr]:[]:Nt.find.matches(pr,Nt.grep(vr,function(on){return on.nodeType===1}))},Nt.fn.extend({find:function(pr){var vr,Lr,Wr=this.length,on=this;if(typeof pr!="string")return this.pushStack(Nt(pr).filter(function(){for(vr=0;vr<Wr;vr++)if(Nt.contains(on[vr],this))return!0}));for(Lr=this.pushStack([]),vr=0;vr<Wr;vr++)Nt.find(pr,on[vr],Lr);return Wr>1?Nt.uniqueSort(Lr):Lr},filter:function(pr){return this.pushStack(er(this,pr||[],!1))},not:function(pr){return this.pushStack(er(this,pr||[],!0))},is:function(pr){return!!er(this,typeof pr=="string"&&Zt.test(pr)?Nt(pr):pr||[],!1).length}});var nr,or=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,rr=Nt.fn.init=function(pr,vr,Lr){var Wr,on;if(!pr)return this;if(Lr=Lr||nr,typeof pr=="string")if(pr[0]==="<"&&pr[pr.length-1]===">"&&pr.length>=3?Wr=[null,pr,null]:Wr=or.exec(pr),Wr&&(Wr[1]||!vr))if(Wr[1]){if(vr=vr instanceof Nt?vr[0]:vr,Nt.merge(this,Nt.parseHTML(Wr[1],vr&&vr.nodeType?vr.ownerDocument||vr:Tt,!0)),Xt.test(Wr[1])&&Nt.isPlainObject(vr))for(Wr in vr)Rt(this[Wr])?this[Wr](vr[Wr]):this.attr(Wr,vr[Wr]);return this}else return on=Tt.getElementById(Wr[2]),on&&(this[0]=on,this.length=1),this;else return!vr||vr.jquery?(vr||Lr).find(pr):this.constructor(vr).find(pr);else{if(pr.nodeType)return this[0]=pr,this.length=1,this;if(Rt(pr))return Lr.ready!==void 0?Lr.ready(pr):pr(Nt)}return Nt.makeArray(pr,this)};rr.prototype=Nt.fn,nr=Nt(Tt);var cr=/^(?:parents|prev(?:Until|All))/,ir={children:!0,contents:!0,next:!0,prev:!0};Nt.fn.extend({has:function(pr){var vr=Nt(pr,this),Lr=vr.length;return this.filter(function(){for(var Wr=0;Wr<Lr;Wr++)if(Nt.contains(this,vr[Wr]))return!0})},closest:function(pr,vr){var Lr,Wr=0,on=this.length,sn=[],dn=typeof pr!="string"&&Nt(pr);if(!Zt.test(pr)){for(;Wr<on;Wr++)for(Lr=this[Wr];Lr&&Lr!==vr;Lr=Lr.parentNode)if(Lr.nodeType<11&&(dn?dn.index(Lr)>-1:Lr.nodeType===1&&Nt.find.matchesSelector(Lr,pr))){sn.push(Lr);break}}return this.pushStack(sn.length>1?Nt.uniqueSort(sn):sn)},index:function(pr){return pr?typeof pr=="string"?ht.call(Nt(pr),this[0]):ht.call(this,pr.jquery?pr[0]:pr):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(pr,vr){return this.pushStack(Nt.uniqueSort(Nt.merge(this.get(),Nt(pr,vr))))},addBack:function(pr){return this.add(pr==null?this.prevObject:this.prevObject.filter(pr))}});function dr(pr,vr){for(;(pr=pr[vr])&&pr.nodeType!==1;);return pr}Nt.each({parent:function(pr){var vr=pr.parentNode;return vr&&vr.nodeType!==11?vr:null},parents:function(pr){return Ht(pr,"parentNode")},parentsUntil:function(pr,vr,Lr){return Ht(pr,"parentNode",Lr)},next:function(pr){return dr(pr,"nextSibling")},prev:function(pr){return dr(pr,"previousSibling")},nextAll:function(pr){return Ht(pr,"nextSibling")},prevAll:function(pr){return Ht(pr,"previousSibling")},nextUntil:function(pr,vr,Lr){return Ht(pr,"nextSibling",Lr)},prevUntil:function(pr,vr,Lr){return Ht(pr,"previousSibling",Lr)},siblings:function(pr){return Gt((pr.parentNode||{}).firstChild,pr)},children:function(pr){return Gt(pr.firstChild)},contents:function(pr){return pr.contentDocument!=null&&lt(pr.contentDocument)?pr.contentDocument:(Kt(pr,"template")&&(pr=pr.content||pr),Nt.merge([],pr.childNodes))}},function(pr,vr){Nt.fn[pr]=function(Lr,Wr){var on=Nt.map(this,vr,Lr);return pr.slice(-5)!=="Until"&&(Wr=Lr),Wr&&typeof Wr=="string"&&(on=Nt.filter(Wr,on)),this.length>1&&(ir[pr]||Nt.uniqueSort(on),cr.test(pr)&&on.reverse()),this.pushStack(on)}});var gr=/[^\x20\t\r\n\f]+/g;function br(pr){var vr={};return Nt.each(pr.match(gr)||[],function(Lr,Wr){vr[Wr]=!0}),vr}Nt.Callbacks=function(pr){pr=typeof pr=="string"?br(pr):Nt.extend({},pr);var vr,Lr,Wr,on,sn=[],dn=[],zn=-1,_n=function(){for(on=on||pr.once,Wr=vr=!0;dn.length;zn=-1)for(Lr=dn.shift();++zn<sn.length;)sn[zn].apply(Lr[0],Lr[1])===!1&&pr.stopOnFalse&&(zn=sn.length,Lr=!1);pr.memory||(Lr=!1),vr=!1,on&&(Lr?sn=[]:sn="")},Fn={add:function(){return sn&&(Lr&&!vr&&(zn=sn.length-1,dn.push(Lr)),function Jn(ro){Nt.each(ro,function(Xn,co){Rt(co)?(!pr.unique||!Fn.has(co))&&sn.push(co):co&&co.length&&Dt(co)!=="string"&&Jn(co)})}(arguments),Lr&&!vr&&_n()),this},remove:function(){return Nt.each(arguments,function(Jn,ro){for(var Xn;(Xn=Nt.inArray(ro,sn,Xn))>-1;)sn.splice(Xn,1),Xn<=zn&&zn--}),this},has:function(Jn){return Jn?Nt.inArray(Jn,sn)>-1:sn.length>0},empty:function(){return sn&&(sn=[]),this},disable:function(){return on=dn=[],sn=Lr="",this},disabled:function(){return!sn},lock:function(){return on=dn=[],!Lr&&!vr&&(sn=Lr=""),this},locked:function(){return!!on},fireWith:function(Jn,ro){return on||(ro=ro||[],ro=[Jn,ro.slice?ro.slice():ro],dn.push(ro),vr||_n()),this},fire:function(){return Fn.fireWith(this,arguments),this},fired:function(){return!!Wr}};return Fn};function ar(pr){return pr}function ur(pr){throw pr}function xr(pr,vr,Lr,Wr){var on;try{pr&&Rt(on=pr.promise)?on.call(pr).done(vr).fail(Lr):pr&&Rt(on=pr.then)?on.call(pr,vr,Lr):vr.apply(void 0,[pr].slice(Wr))}catch(sn){Lr.apply(void 0,[sn])}}Nt.extend({Deferred:function(pr){var vr=[["notify","progress",Nt.Callbacks("memory"),Nt.Callbacks("memory"),2],["resolve","done",Nt.Callbacks("once memory"),Nt.Callbacks("once memory"),0,"resolved"],["reject","fail",Nt.Callbacks("once memory"),Nt.Callbacks("once memory"),1,"rejected"]],Lr="pending",Wr={state:function(){return Lr},always:function(){return on.done(arguments).fail(arguments),this},catch:function(sn){return Wr.then(null,sn)},pipe:function(){var sn=arguments;return Nt.Deferred(function(dn){Nt.each(vr,function(zn,_n){var Fn=Rt(sn[_n[4]])&&sn[_n[4]];on[_n[1]](function(){var Jn=Fn&&Fn.apply(this,arguments);Jn&&Rt(Jn.promise)?Jn.promise().progress(dn.notify).done(dn.resolve).fail(dn.reject):dn[_n[0]+"With"](this,Fn?[Jn]:arguments)})}),sn=null}).promise()},then:function(sn,dn,zn){var _n=0;function Fn(Jn,ro,Xn,co){return function(){var bo=this,wo=arguments,Lo=function(){var Ms,$a;if(!(Jn<_n)){if(Ms=Xn.apply(bo,wo),Ms===ro.promise())throw new TypeError("Thenable self-resolution");$a=Ms&&(typeof Ms=="object"||typeof Ms=="function")&&Ms.then,Rt($a)?co?$a.call(Ms,Fn(_n,ro,ar,co),Fn(_n,ro,ur,co)):(_n++,$a.call(Ms,Fn(_n,ro,ar,co),Fn(_n,ro,ur,co),Fn(_n,ro,ar,ro.notifyWith))):(Xn!==ar&&(bo=void 0,wo=[Ms]),(co||ro.resolveWith)(bo,wo))}},Cs=co?Lo:function(){try{Lo()}catch(Ms){Nt.Deferred.exceptionHook&&Nt.Deferred.exceptionHook(Ms,Cs.error),Jn+1>=_n&&(Xn!==ur&&(bo=void 0,wo=[Ms]),ro.rejectWith(bo,wo))}};Jn?Cs():(Nt.Deferred.getErrorHook?Cs.error=Nt.Deferred.getErrorHook():Nt.Deferred.getStackHook&&(Cs.error=Nt.Deferred.getStackHook()),tt.setTimeout(Cs))}}return Nt.Deferred(function(Jn){vr[0][3].add(Fn(0,Jn,Rt(zn)?zn:ar,Jn.notifyWith)),vr[1][3].add(Fn(0,Jn,Rt(sn)?sn:ar)),vr[2][3].add(Fn(0,Jn,Rt(dn)?dn:ur))}).promise()},promise:function(sn){return sn!=null?Nt.extend(sn,Wr):Wr}},on={};return Nt.each(vr,function(sn,dn){var zn=dn[2],_n=dn[5];Wr[dn[1]]=zn.add,_n&&zn.add(function(){Lr=_n},vr[3-sn][2].disable,vr[3-sn][3].disable,vr[0][2].lock,vr[0][3].lock),zn.add(dn[3].fire),on[dn[0]]=function(){return on[dn[0]+"With"](this===on?void 0:this,arguments),this},on[dn[0]+"With"]=zn.fireWith}),Wr.promise(on),pr&&pr.call(on,on),on},when:function(pr){var vr=arguments.length,Lr=vr,Wr=Array(Lr),on=ut.call(arguments),sn=Nt.Deferred(),dn=function(zn){return function(_n){Wr[zn]=this,on[zn]=arguments.length>1?ut.call(arguments):_n,--vr||sn.resolveWith(Wr,on)}};if(vr<=1&&(xr(pr,sn.done(dn(Lr)).resolve,sn.reject,!vr),sn.state()==="pending"||Rt(on[Lr]&&on[Lr].then)))return sn.then();for(;Lr--;)xr(on[Lr],dn(Lr),sn.reject);return sn.promise()}});var Mr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Nt.Deferred.exceptionHook=function(pr,vr){tt.console&&tt.console.warn&&pr&&Mr.test(pr.name)&&tt.console.warn("jQuery.Deferred exception: "+pr.message,pr.stack,vr)},Nt.readyException=function(pr){tt.setTimeout(function(){throw pr})};var Ar=Nt.Deferred();Nt.fn.ready=function(pr){return Ar.then(pr).catch(function(vr){Nt.readyException(vr)}),this},Nt.extend({isReady:!1,readyWait:1,ready:function(pr){(pr===!0?--Nt.readyWait:Nt.isReady)||(Nt.isReady=!0,!(pr!==!0&&--Nt.readyWait>0)&&Ar.resolveWith(Tt,[Nt]))}}),Nt.ready.then=Ar.then;function Ir(){Tt.removeEventListener("DOMContentLoaded",Ir),tt.removeEventListener("load",Ir),Nt.ready()}Tt.readyState==="complete"||Tt.readyState!=="loading"&&!Tt.documentElement.doScroll?tt.setTimeout(Nt.ready):(Tt.addEventListener("DOMContentLoaded",Ir),tt.addEventListener("load",Ir));var Rr=function(pr,vr,Lr,Wr,on,sn,dn){var zn=0,_n=pr.length,Fn=Lr==null;if(Dt(Lr)==="object"){on=!0;for(zn in Lr)Rr(pr,vr,zn,Lr[zn],!0,sn,dn)}else if(Wr!==void 0&&(on=!0,Rt(Wr)||(dn=!0),Fn&&(dn?(vr.call(pr,Wr),vr=null):(Fn=vr,vr=function(Jn,ro,Xn){return Fn.call(Nt(Jn),Xn)})),vr))for(;zn<_n;zn++)vr(pr[zn],Lr,dn?Wr:Wr.call(pr[zn],zn,vr(pr[zn],Lr)));return on?pr:Fn?vr.call(pr):_n?vr(pr[0],Lr):sn},wr=/^-ms-/,qr=/-([a-z])/g;function Hr(pr,vr){return vr.toUpperCase()}function kr(pr){return pr.replace(wr,"ms-").replace(qr,Hr)}var $r=function(pr){return pr.nodeType===1||pr.nodeType===9||!+pr.nodeType};function yr(){this.expando=Nt.expando+yr.uid++}yr.uid=1,yr.prototype={cache:function(pr){var vr=pr[this.expando];return vr||(vr={},$r(pr)&&(pr.nodeType?pr[this.expando]=vr:Object.defineProperty(pr,this.expando,{value:vr,configurable:!0}))),vr},set:function(pr,vr,Lr){var Wr,on=this.cache(pr);if(typeof vr=="string")on[kr(vr)]=Lr;else for(Wr in vr)on[kr(Wr)]=vr[Wr];return on},get:function(pr,vr){return vr===void 0?this.cache(pr):pr[this.expando]&&pr[this.expando][kr(vr)]},access:function(pr,vr,Lr){return vr===void 0||vr&&typeof vr=="string"&&Lr===void 0?this.get(pr,vr):(this.set(pr,vr,Lr),Lr!==void 0?Lr:vr)},remove:function(pr,vr){var Lr,Wr=pr[this.expando];if(Wr!==void 0){if(vr!==void 0)for(Array.isArray(vr)?vr=vr.map(kr):(vr=kr(vr),vr=vr in Wr?[vr]:vr.match(gr)||[]),Lr=vr.length;Lr--;)delete Wr[vr[Lr]];(vr===void 0||Nt.isEmptyObject(Wr))&&(pr.nodeType?pr[this.expando]=void 0:delete pr[this.expando])}},hasData:function(pr){var vr=pr[this.expando];return vr!==void 0&&!Nt.isEmptyObject(vr)}};var Or=new yr,Dr=new yr,Fr=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Yr=/[A-Z]/g;function Gr(pr){return pr==="true"?!0:pr==="false"?!1:pr==="null"?null:pr===+pr+""?+pr:Fr.test(pr)?JSON.parse(pr):pr}function Jr(pr,vr,Lr){var Wr;if(Lr===void 0&&pr.nodeType===1)if(Wr="data-"+vr.replace(Yr,"-$&").toLowerCase(),Lr=pr.getAttribute(Wr),typeof Lr=="string"){try{Lr=Gr(Lr)}catch{}Dr.set(pr,vr,Lr)}else Lr=void 0;return Lr}Nt.extend({hasData:function(pr){return Dr.hasData(pr)||Or.hasData(pr)},data:function(pr,vr,Lr){return Dr.access(pr,vr,Lr)},removeData:function(pr,vr){Dr.remove(pr,vr)},_data:function(pr,vr,Lr){return Or.access(pr,vr,Lr)},_removeData:function(pr,vr){Or.remove(pr,vr)}}),Nt.fn.extend({data:function(pr,vr){var Lr,Wr,on,sn=this[0],dn=sn&&sn.attributes;if(pr===void 0){if(this.length&&(on=Dr.get(sn),sn.nodeType===1&&!Or.get(sn,"hasDataAttrs"))){for(Lr=dn.length;Lr--;)dn[Lr]&&(Wr=dn[Lr].name,Wr.indexOf("data-")===0&&(Wr=kr(Wr.slice(5)),Jr(sn,Wr,on[Wr])));Or.set(sn,"hasDataAttrs",!0)}return on}return typeof pr=="object"?this.each(function(){Dr.set(this,pr)}):Rr(this,function(zn){var _n;if(sn&&zn===void 0)return _n=Dr.get(sn,pr),_n!==void 0||(_n=Jr(sn,pr),_n!==void 0)?_n:void 0;this.each(function(){Dr.set(this,pr,zn)})},null,vr,arguments.length>1,null,!0)},removeData:function(pr){return this.each(function(){Dr.remove(this,pr)})}}),Nt.extend({queue:function(pr,vr,Lr){var Wr;if(pr)return vr=(vr||"fx")+"queue",Wr=Or.get(pr,vr),Lr&&(!Wr||Array.isArray(Lr)?Wr=Or.access(pr,vr,Nt.makeArray(Lr)):Wr.push(Lr)),Wr||[]},dequeue:function(pr,vr){vr=vr||"fx";var Lr=Nt.queue(pr,vr),Wr=Lr.length,on=Lr.shift(),sn=Nt._queueHooks(pr,vr),dn=function(){Nt.dequeue(pr,vr)};on==="inprogress"&&(on=Lr.shift(),Wr--),on&&(vr==="fx"&&Lr.unshift("inprogress"),delete sn.stop,on.call(pr,dn,sn)),!Wr&&sn&&sn.empty.fire()},_queueHooks:function(pr,vr){var Lr=vr+"queueHooks";return Or.get(pr,Lr)||Or.access(pr,Lr,{empty:Nt.Callbacks("once memory").add(function(){Or.remove(pr,[vr+"queue",Lr])})})}}),Nt.fn.extend({queue:function(pr,vr){var Lr=2;return typeof pr!="string"&&(vr=pr,pr="fx",Lr--),arguments.length<Lr?Nt.queue(this[0],pr):vr===void 0?this:this.each(function(){var Wr=Nt.queue(this,pr,vr);Nt._queueHooks(this,pr),pr==="fx"&&Wr[0]!=="inprogress"&&Nt.dequeue(this,pr)})},dequeue:function(pr){return this.each(function(){Nt.dequeue(this,pr)})},clearQueue:function(pr){return this.queue(pr||"fx",[])},promise:function(pr,vr){var Lr,Wr=1,on=Nt.Deferred(),sn=this,dn=this.length,zn=function(){--Wr||on.resolveWith(sn,[sn])};for(typeof pr!="string"&&(vr=pr,pr=void 0),pr=pr||"fx";dn--;)Lr=Or.get(sn[dn],pr+"queueHooks"),Lr&&Lr.empty&&(Wr++,Lr.empty.add(zn));return zn(),on.promise(vr)}});var jr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Zr=new RegExp("^(?:([+-])=|)("+jr+")([a-z%]*)$","i"),Xr=["Top","Right","Bottom","Left"],cn=Tt.documentElement,Qr=function(pr){return Nt.contains(pr.ownerDocument,pr)},rn={composed:!0};cn.getRootNode&&(Qr=function(pr){return Nt.contains(pr.ownerDocument,pr)||pr.getRootNode(rn)===pr.ownerDocument});var _r=function(pr,vr){return pr=vr||pr,pr.style.display==="none"||pr.style.display===""&&Qr(pr)&&Nt.css(pr,"display")==="none"};function ln(pr,vr,Lr,Wr){var on,sn,dn=20,zn=Wr?function(){return Wr.cur()}:function(){return Nt.css(pr,vr,"")},_n=zn(),Fn=Lr&&Lr[3]||(Nt.cssNumber[vr]?"":"px"),Jn=pr.nodeType&&(Nt.cssNumber[vr]||Fn!=="px"&&+_n)&&Zr.exec(Nt.css(pr,vr));if(Jn&&Jn[3]!==Fn){for(_n=_n/2,Fn=Fn||Jn[3],Jn=+_n||1;dn--;)Nt.style(pr,vr,Jn+Fn),(1-sn)*(1-(sn=zn()/_n||.5))<=0&&(dn=0),Jn=Jn/sn;Jn=Jn*2,Nt.style(pr,vr,Jn+Fn),Lr=Lr||[]}return Lr&&(Jn=+Jn||+_n||0,on=Lr[1]?Jn+(Lr[1]+1)*Lr[2]:+Lr[2],Wr&&(Wr.unit=Fn,Wr.start=Jn,Wr.end=on)),on}var vn={};function Cr(pr){var vr,Lr=pr.ownerDocument,Wr=pr.nodeName,on=vn[Wr];return on||(vr=Lr.body.appendChild(Lr.createElement(Wr)),on=Nt.css(vr,"display"),vr.parentNode.removeChild(vr),on==="none"&&(on="block"),vn[Wr]=on,on)}function gn(pr,vr){for(var Lr,Wr,on=[],sn=0,dn=pr.length;sn<dn;sn++)Wr=pr[sn],Wr.style&&(Lr=Wr.style.display,vr?(Lr==="none"&&(on[sn]=Or.get(Wr,"display")||null,on[sn]||(Wr.style.display="")),Wr.style.display===""&&_r(Wr)&&(on[sn]=Cr(Wr))):Lr!=="none"&&(on[sn]="none",Or.set(Wr,"display",Lr)));for(sn=0;sn<dn;sn++)on[sn]!=null&&(pr[sn].style.display=on[sn]);return pr}Nt.fn.extend({show:function(){return gn(this,!0)},hide:function(){return gn(this)},toggle:function(pr){return typeof pr=="boolean"?pr?this.show():this.hide():this.each(function(){_r(this)?Nt(this).show():Nt(this).hide()})}});var xn=/^(?:checkbox|radio)$/i,Vr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,fn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var pr=Tt.createDocumentFragment(),vr=pr.appendChild(Tt.createElement("div")),Lr=Tt.createElement("input");Lr.setAttribute("type","radio"),Lr.setAttribute("checked","checked"),Lr.setAttribute("name","t"),vr.appendChild(Lr),At.checkClone=vr.cloneNode(!0).cloneNode(!0).lastChild.checked,vr.innerHTML="<textarea>x</textarea>",At.noCloneChecked=!!vr.cloneNode(!0).lastChild.defaultValue,vr.innerHTML="<option></option>",At.option=!!vr.lastChild})();var pn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};pn.tbody=pn.tfoot=pn.colgroup=pn.caption=pn.thead,pn.th=pn.td,At.option||(pn.optgroup=pn.option=[1,"<select multiple='multiple'>","</select>"]);function qn(pr,vr){var Lr;return typeof pr.getElementsByTagName<"u"?Lr=pr.getElementsByTagName(vr||"*"):typeof pr.querySelectorAll<"u"?Lr=pr.querySelectorAll(vr||"*"):Lr=[],vr===void 0||vr&&Kt(pr,vr)?Nt.merge([pr],Lr):Lr}function Bn(pr,vr){for(var Lr=0,Wr=pr.length;Lr<Wr;Lr++)Or.set(pr[Lr],"globalEval",!vr||Or.get(vr[Lr],"globalEval"))}var Kr=/<|&#?\w+;/;function Tr(pr,vr,Lr,Wr,on){for(var sn,dn,zn,_n,Fn,Jn,ro=vr.createDocumentFragment(),Xn=[],co=0,bo=pr.length;co<bo;co++)if(sn=pr[co],sn||sn===0)if(Dt(sn)==="object")Nt.merge(Xn,sn.nodeType?[sn]:sn);else if(!Kr.test(sn))Xn.push(vr.createTextNode(sn));else{for(dn=dn||ro.appendChild(vr.createElement("div")),zn=(Vr.exec(sn)||["",""])[1].toLowerCase(),_n=pn[zn]||pn._default,dn.innerHTML=_n[1]+Nt.htmlPrefilter(sn)+_n[2],Jn=_n[0];Jn--;)dn=dn.lastChild;Nt.merge(Xn,dn.childNodes),dn=ro.firstChild,dn.textContent=""}for(ro.textContent="",co=0;sn=Xn[co++];){if(Wr&&Nt.inArray(sn,Wr)>-1){on&&on.push(sn);continue}if(Fn=Qr(sn),dn=qn(ro.appendChild(sn),"script"),Fn&&Bn(dn),Lr)for(Jn=0;sn=dn[Jn++];)fn.test(sn.type||"")&&Lr.push(sn)}return ro}var Pr=/^([^.]*)(?:\.(.+)|)/;function an(){return!0}function nn(){return!1}function Mn(pr,vr,Lr,Wr,on,sn){var dn,zn;if(typeof vr=="object"){typeof Lr!="string"&&(Wr=Wr||Lr,Lr=void 0);for(zn in vr)Mn(pr,zn,Lr,Wr,vr[zn],sn);return pr}if(Wr==null&&on==null?(on=Lr,Wr=Lr=void 0):on==null&&(typeof Lr=="string"?(on=Wr,Wr=void 0):(on=Wr,Wr=Lr,Lr=void 0)),on===!1)on=nn;else if(!on)return pr;return sn===1&&(dn=on,on=function(_n){return Nt().off(_n),dn.apply(this,arguments)},on.guid=dn.guid||(dn.guid=Nt.guid++)),pr.each(function(){Nt.event.add(this,vr,on,Wr,Lr)})}Nt.event={global:{},add:function(pr,vr,Lr,Wr,on){var sn,dn,zn,_n,Fn,Jn,ro,Xn,co,bo,wo,Lo=Or.get(pr);if($r(pr))for(Lr.handler&&(sn=Lr,Lr=sn.handler,on=sn.selector),on&&Nt.find.matchesSelector(cn,on),Lr.guid||(Lr.guid=Nt.guid++),(_n=Lo.events)||(_n=Lo.events=Object.create(null)),(dn=Lo.handle)||(dn=Lo.handle=function(Cs){return typeof Nt<"u"&&Nt.event.triggered!==Cs.type?Nt.event.dispatch.apply(pr,arguments):void 0}),vr=(vr||"").match(gr)||[""],Fn=vr.length;Fn--;)zn=Pr.exec(vr[Fn])||[],co=wo=zn[1],bo=(zn[2]||"").split(".").sort(),co&&(ro=Nt.event.special[co]||{},co=(on?ro.delegateType:ro.bindType)||co,ro=Nt.event.special[co]||{},Jn=Nt.extend({type:co,origType:wo,data:Wr,handler:Lr,guid:Lr.guid,selector:on,needsContext:on&&Nt.expr.match.needsContext.test(on),namespace:bo.join(".")},sn),(Xn=_n[co])||(Xn=_n[co]=[],Xn.delegateCount=0,(!ro.setup||ro.setup.call(pr,Wr,bo,dn)===!1)&&pr.addEventListener&&pr.addEventListener(co,dn)),ro.add&&(ro.add.call(pr,Jn),Jn.handler.guid||(Jn.handler.guid=Lr.guid)),on?Xn.splice(Xn.delegateCount++,0,Jn):Xn.push(Jn),Nt.event.global[co]=!0)},remove:function(pr,vr,Lr,Wr,on){var sn,dn,zn,_n,Fn,Jn,ro,Xn,co,bo,wo,Lo=Or.hasData(pr)&&Or.get(pr);if(!(!Lo||!(_n=Lo.events))){for(vr=(vr||"").match(gr)||[""],Fn=vr.length;Fn--;){if(zn=Pr.exec(vr[Fn])||[],co=wo=zn[1],bo=(zn[2]||"").split(".").sort(),!co){for(co in _n)Nt.event.remove(pr,co+vr[Fn],Lr,Wr,!0);continue}for(ro=Nt.event.special[co]||{},co=(Wr?ro.delegateType:ro.bindType)||co,Xn=_n[co]||[],zn=zn[2]&&new RegExp("(^|\\.)"+bo.join("\\.(?:.*\\.|)")+"(\\.|$)"),dn=sn=Xn.length;sn--;)Jn=Xn[sn],(on||wo===Jn.origType)&&(!Lr||Lr.guid===Jn.guid)&&(!zn||zn.test(Jn.namespace))&&(!Wr||Wr===Jn.selector||Wr==="**"&&Jn.selector)&&(Xn.splice(sn,1),Jn.selector&&Xn.delegateCount--,ro.remove&&ro.remove.call(pr,Jn));dn&&!Xn.length&&((!ro.teardown||ro.teardown.call(pr,bo,Lo.handle)===!1)&&Nt.removeEvent(pr,co,Lo.handle),delete _n[co])}Nt.isEmptyObject(_n)&&Or.remove(pr,"handle events")}},dispatch:function(pr){var vr,Lr,Wr,on,sn,dn,zn=new Array(arguments.length),_n=Nt.event.fix(pr),Fn=(Or.get(this,"events")||Object.create(null))[_n.type]||[],Jn=Nt.event.special[_n.type]||{};for(zn[0]=_n,vr=1;vr<arguments.length;vr++)zn[vr]=arguments[vr];if(_n.delegateTarget=this,!(Jn.preDispatch&&Jn.preDispatch.call(this,_n)===!1)){for(dn=Nt.event.handlers.call(this,_n,Fn),vr=0;(on=dn[vr++])&&!_n.isPropagationStopped();)for(_n.currentTarget=on.elem,Lr=0;(sn=on.handlers[Lr++])&&!_n.isImmediatePropagationStopped();)(!_n.rnamespace||sn.namespace===!1||_n.rnamespace.test(sn.namespace))&&(_n.handleObj=sn,_n.data=sn.data,Wr=((Nt.event.special[sn.origType]||{}).handle||sn.handler).apply(on.elem,zn),Wr!==void 0&&(_n.result=Wr)===!1&&(_n.preventDefault(),_n.stopPropagation()));return Jn.postDispatch&&Jn.postDispatch.call(this,_n),_n.result}},handlers:function(pr,vr){var Lr,Wr,on,sn,dn,zn=[],_n=vr.delegateCount,Fn=pr.target;if(_n&&Fn.nodeType&&!(pr.type==="click"&&pr.button>=1)){for(;Fn!==this;Fn=Fn.parentNode||this)if(Fn.nodeType===1&&!(pr.type==="click"&&Fn.disabled===!0)){for(sn=[],dn={},Lr=0;Lr<_n;Lr++)Wr=vr[Lr],on=Wr.selector+" ",dn[on]===void 0&&(dn[on]=Wr.needsContext?Nt(on,this).index(Fn)>-1:Nt.find(on,this,null,[Fn]).length),dn[on]&&sn.push(Wr);sn.length&&zn.push({elem:Fn,handlers:sn})}}return Fn=this,_n<vr.length&&zn.push({elem:Fn,handlers:vr.slice(_n)}),zn},addProp:function(pr,vr){Object.defineProperty(Nt.Event.prototype,pr,{enumerable:!0,configurable:!0,get:Rt(vr)?function(){if(this.originalEvent)return vr(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[pr]},set:function(Lr){Object.defineProperty(this,pr,{enumerable:!0,configurable:!0,writable:!0,value:Lr})}})},fix:function(pr){return pr[Nt.expando]?pr:new Nt.Event(pr)},special:{load:{noBubble:!0},click:{setup:function(pr){var vr=this||pr;return xn.test(vr.type)&&vr.click&&Kt(vr,"input")&&An(vr,"click",!0),!1},trigger:function(pr){var vr=this||pr;return xn.test(vr.type)&&vr.click&&Kt(vr,"input")&&An(vr,"click"),!0},_default:function(pr){var vr=pr.target;return xn.test(vr.type)&&vr.click&&Kt(vr,"input")&&Or.get(vr,"click")||Kt(vr,"a")}},beforeunload:{postDispatch:function(pr){pr.result!==void 0&&pr.originalEvent&&(pr.originalEvent.returnValue=pr.result)}}}};function An(pr,vr,Lr){if(!Lr){Or.get(pr,vr)===void 0&&Nt.event.add(pr,vr,an);return}Or.set(pr,vr,!1),Nt.event.add(pr,vr,{namespace:!1,handler:function(Wr){var on,sn=Or.get(this,vr);if(Wr.isTrigger&1&&this[vr]){if(sn)(Nt.event.special[vr]||{}).delegateType&&Wr.stopPropagation();else if(sn=ut.call(arguments),Or.set(this,vr,sn),this[vr](),on=Or.get(this,vr),Or.set(this,vr,!1),sn!==on)return Wr.stopImmediatePropagation(),Wr.preventDefault(),on}else sn&&(Or.set(this,vr,Nt.event.trigger(sn[0],sn.slice(1),this)),Wr.stopPropagation(),Wr.isImmediatePropagationStopped=an)}})}Nt.removeEvent=function(pr,vr,Lr){pr.removeEventListener&&pr.removeEventListener(vr,Lr)},Nt.Event=function(pr,vr){if(!(this instanceof Nt.Event))return new Nt.Event(pr,vr);pr&&pr.type?(this.originalEvent=pr,this.type=pr.type,this.isDefaultPrevented=pr.defaultPrevented||pr.defaultPrevented===void 0&&pr.returnValue===!1?an:nn,this.target=pr.target&&pr.target.nodeType===3?pr.target.parentNode:pr.target,this.currentTarget=pr.currentTarget,this.relatedTarget=pr.relatedTarget):this.type=pr,vr&&Nt.extend(this,vr),this.timeStamp=pr&&pr.timeStamp||Date.now(),this[Nt.expando]=!0},Nt.Event.prototype={constructor:Nt.Event,isDefaultPrevented:nn,isPropagationStopped:nn,isImmediatePropagationStopped:nn,isSimulated:!1,preventDefault:function(){var pr=this.originalEvent;this.isDefaultPrevented=an,pr&&!this.isSimulated&&pr.preventDefault()},stopPropagation:function(){var pr=this.originalEvent;this.isPropagationStopped=an,pr&&!this.isSimulated&&pr.stopPropagation()},stopImmediatePropagation:function(){var pr=this.originalEvent;this.isImmediatePropagationStopped=an,pr&&!this.isSimulated&&pr.stopImmediatePropagation(),this.stopPropagation()}},Nt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Nt.event.addProp),Nt.each({focus:"focusin",blur:"focusout"},function(pr,vr){function Lr(Wr){if(Tt.documentMode){var on=Or.get(this,"handle"),sn=Nt.event.fix(Wr);sn.type=Wr.type==="focusin"?"focus":"blur",sn.isSimulated=!0,on(Wr),sn.target===sn.currentTarget&&on(sn)}else Nt.event.simulate(vr,Wr.target,Nt.event.fix(Wr))}Nt.event.special[pr]={setup:function(){var Wr;if(An(this,pr,!0),Tt.documentMode)Wr=Or.get(this,vr),Wr||this.addEventListener(vr,Lr),Or.set(this,vr,(Wr||0)+1);else return!1},trigger:function(){return An(this,pr),!0},teardown:function(){var Wr;if(Tt.documentMode)Wr=Or.get(this,vr)-1,Wr?Or.set(this,vr,Wr):(this.removeEventListener(vr,Lr),Or.remove(this,vr));else return!1},_default:function(Wr){return Or.get(Wr.target,pr)},delegateType:vr},Nt.event.special[vr]={setup:function(){var Wr=this.ownerDocument||this.document||this,on=Tt.documentMode?this:Wr,sn=Or.get(on,vr);sn||(Tt.documentMode?this.addEventListener(vr,Lr):Wr.addEventListener(pr,Lr,!0)),Or.set(on,vr,(sn||0)+1)},teardown:function(){var Wr=this.ownerDocument||this.document||this,on=Tt.documentMode?this:Wr,sn=Or.get(on,vr)-1;sn?Or.set(on,vr,sn):(Tt.documentMode?this.removeEventListener(vr,Lr):Wr.removeEventListener(pr,Lr,!0),Or.remove(on,vr))}}}),Nt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(pr,vr){Nt.event.special[pr]={delegateType:vr,bindType:vr,handle:function(Lr){var Wr,on=this,sn=Lr.relatedTarget,dn=Lr.handleObj;return(!sn||sn!==on&&!Nt.contains(on,sn))&&(Lr.type=dn.origType,Wr=dn.handler.apply(this,arguments),Lr.type=vr),Wr}}}),Nt.fn.extend({on:function(pr,vr,Lr,Wr){return Mn(this,pr,vr,Lr,Wr)},one:function(pr,vr,Lr,Wr){return Mn(this,pr,vr,Lr,Wr,1)},off:function(pr,vr,Lr){var Wr,on;if(pr&&pr.preventDefault&&pr.handleObj)return Wr=pr.handleObj,Nt(pr.delegateTarget).off(Wr.namespace?Wr.origType+"."+Wr.namespace:Wr.origType,Wr.selector,Wr.handler),this;if(typeof pr=="object"){for(on in pr)this.off(on,vr,pr[on]);return this}return(vr===!1||typeof vr=="function")&&(Lr=vr,vr=void 0),Lr===!1&&(Lr=nn),this.each(function(){Nt.event.remove(this,pr,Lr,vr)})}});var Vn=/<script|<style|<link/i,Cn=/checked\s*(?:[^=]|=\s*.checked.)/i,kn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Qn(pr,vr){return Kt(pr,"table")&&Kt(vr.nodeType!==11?vr:vr.firstChild,"tr")&&Nt(pr).children("tbody")[0]||pr}function Gn(pr){return pr.type=(pr.getAttribute("type")!==null)+"/"+pr.type,pr}function Un(pr){return(pr.type||"").slice(0,5)==="true/"?pr.type=pr.type.slice(5):pr.removeAttribute("type"),pr}function jn(pr,vr){var Lr,Wr,on,sn,dn,zn,_n;if(vr.nodeType===1){if(Or.hasData(pr)&&(sn=Or.get(pr),_n=sn.events,_n)){Or.remove(vr,"handle events");for(on in _n)for(Lr=0,Wr=_n[on].length;Lr<Wr;Lr++)Nt.event.add(vr,on,_n[on][Lr])}Dr.hasData(pr)&&(dn=Dr.access(pr),zn=Nt.extend({},dn),Dr.set(vr,zn))}}function In(pr,vr){var Lr=vr.nodeName.toLowerCase();Lr==="input"&&xn.test(pr.type)?vr.checked=pr.checked:(Lr==="input"||Lr==="textarea")&&(vr.defaultValue=pr.defaultValue)}function Kn(pr,vr,Lr,Wr){vr=dt(vr);var on,sn,dn,zn,_n,Fn,Jn=0,ro=pr.length,Xn=ro-1,co=vr[0],bo=Rt(co);if(bo||ro>1&&typeof co=="string"&&!At.checkClone&&Cn.test(co))return pr.each(function(wo){var Lo=pr.eq(wo);bo&&(vr[0]=co.call(this,wo,Lo.html())),Kn(Lo,vr,Lr,Wr)});if(ro&&(on=Tr(vr,pr[0].ownerDocument,!1,pr,Wr),sn=on.firstChild,on.childNodes.length===1&&(on=sn),sn||Wr)){for(dn=Nt.map(qn(on,"script"),Gn),zn=dn.length;Jn<ro;Jn++)_n=on,Jn!==Xn&&(_n=Nt.clone(_n,!0,!0),zn&&Nt.merge(dn,qn(_n,"script"))),Lr.call(pr[Jn],_n,Jn);if(zn)for(Fn=dn[dn.length-1].ownerDocument,Nt.map(dn,Un),Jn=0;Jn<zn;Jn++)_n=dn[Jn],fn.test(_n.type||"")&&!Or.access(_n,"globalEval")&&Nt.contains(Fn,_n)&&(_n.src&&(_n.type||"").toLowerCase()!=="module"?Nt._evalUrl&&!_n.noModule&&Nt._evalUrl(_n.src,{nonce:_n.nonce||_n.getAttribute("nonce")},Fn):It(_n.textContent.replace(kn,""),_n,Fn))}return pr}function Wn(pr,vr,Lr){for(var Wr,on=vr?Nt.filter(vr,pr):pr,sn=0;(Wr=on[sn])!=null;sn++)!Lr&&Wr.nodeType===1&&Nt.cleanData(qn(Wr)),Wr.parentNode&&(Lr&&Qr(Wr)&&Bn(qn(Wr,"script")),Wr.parentNode.removeChild(Wr));return pr}Nt.extend({htmlPrefilter:function(pr){return pr},clone:function(pr,vr,Lr){var Wr,on,sn,dn,zn=pr.cloneNode(!0),_n=Qr(pr);if(!At.noCloneChecked&&(pr.nodeType===1||pr.nodeType===11)&&!Nt.isXMLDoc(pr))for(dn=qn(zn),sn=qn(pr),Wr=0,on=sn.length;Wr<on;Wr++)In(sn[Wr],dn[Wr]);if(vr)if(Lr)for(sn=sn||qn(pr),dn=dn||qn(zn),Wr=0,on=sn.length;Wr<on;Wr++)jn(sn[Wr],dn[Wr]);else jn(pr,zn);return dn=qn(zn,"script"),dn.length>0&&Bn(dn,!_n&&qn(pr,"script")),zn},cleanData:function(pr){for(var vr,Lr,Wr,on=Nt.event.special,sn=0;(Lr=pr[sn])!==void 0;sn++)if($r(Lr)){if(vr=Lr[Or.expando]){if(vr.events)for(Wr in vr.events)on[Wr]?Nt.event.remove(Lr,Wr):Nt.removeEvent(Lr,Wr,vr.handle);Lr[Or.expando]=void 0}Lr[Dr.expando]&&(Lr[Dr.expando]=void 0)}}}),Nt.fn.extend({detach:function(pr){return Wn(this,pr,!0)},remove:function(pr){return Wn(this,pr)},text:function(pr){return Rr(this,function(vr){return vr===void 0?Nt.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=vr)})},null,pr,arguments.length)},append:function(){return Kn(this,arguments,function(pr){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var vr=Qn(this,pr);vr.appendChild(pr)}})},prepend:function(){return Kn(this,arguments,function(pr){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var vr=Qn(this,pr);vr.insertBefore(pr,vr.firstChild)}})},before:function(){return Kn(this,arguments,function(pr){this.parentNode&&this.parentNode.insertBefore(pr,this)})},after:function(){return Kn(this,arguments,function(pr){this.parentNode&&this.parentNode.insertBefore(pr,this.nextSibling)})},empty:function(){for(var pr,vr=0;(pr=this[vr])!=null;vr++)pr.nodeType===1&&(Nt.cleanData(qn(pr,!1)),pr.textContent="");return this},clone:function(pr,vr){return pr=pr??!1,vr=vr??pr,this.map(function(){return Nt.clone(this,pr,vr)})},html:function(pr){return Rr(this,function(vr){var Lr=this[0]||{},Wr=0,on=this.length;if(vr===void 0&&Lr.nodeType===1)return Lr.innerHTML;if(typeof vr=="string"&&!Vn.test(vr)&&!pn[(Vr.exec(vr)||["",""])[1].toLowerCase()]){vr=Nt.htmlPrefilter(vr);try{for(;Wr<on;Wr++)Lr=this[Wr]||{},Lr.nodeType===1&&(Nt.cleanData(qn(Lr,!1)),Lr.innerHTML=vr);Lr=0}catch{}}Lr&&this.empty().append(vr)},null,pr,arguments.length)},replaceWith:function(){var pr=[];return Kn(this,arguments,function(vr){var Lr=this.parentNode;Nt.inArray(this,pr)<0&&(Nt.cleanData(qn(this)),Lr&&Lr.replaceChild(vr,this))},pr)}}),Nt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(pr,vr){Nt.fn[pr]=function(Lr){for(var Wr,on=[],sn=Nt(Lr),dn=sn.length-1,zn=0;zn<=dn;zn++)Wr=zn===dn?this:this.clone(!0),Nt(sn[zn])[vr](Wr),pt.apply(on,Wr.get());return this.pushStack(on)}});var ao=new RegExp("^("+jr+")(?!px)[a-z%]+$","i"),_i=/^--/,ho=function(pr){var vr=pr.ownerDocument.defaultView;return(!vr||!vr.opener)&&(vr=tt),vr.getComputedStyle(pr)},So=function(pr,vr,Lr){var Wr,on,sn={};for(on in vr)sn[on]=pr.style[on],pr.style[on]=vr[on];Wr=Lr.call(pr);for(on in vr)pr.style[on]=sn[on];return Wr},ko=new RegExp(Xr.join("|"),"i");(function(){function pr(){if(Fn){_n.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Fn.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",cn.appendChild(_n).appendChild(Fn);var Jn=tt.getComputedStyle(Fn);Lr=Jn.top!=="1%",zn=vr(Jn.marginLeft)===12,Fn.style.right="60%",sn=vr(Jn.right)===36,Wr=vr(Jn.width)===36,Fn.style.position="absolute",on=vr(Fn.offsetWidth/3)===12,cn.removeChild(_n),Fn=null}}function vr(Jn){return Math.round(parseFloat(Jn))}var Lr,Wr,on,sn,dn,zn,_n=Tt.createElement("div"),Fn=Tt.createElement("div");Fn.style&&(Fn.style.backgroundClip="content-box",Fn.cloneNode(!0).style.backgroundClip="",At.clearCloneStyle=Fn.style.backgroundClip==="content-box",Nt.extend(At,{boxSizingReliable:function(){return pr(),Wr},pixelBoxStyles:function(){return pr(),sn},pixelPosition:function(){return pr(),Lr},reliableMarginLeft:function(){return pr(),zn},scrollboxSize:function(){return pr(),on},reliableTrDimensions:function(){var Jn,ro,Xn,co;return dn==null&&(Jn=Tt.createElement("table"),ro=Tt.createElement("tr"),Xn=Tt.createElement("div"),Jn.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ro.style.cssText="box-sizing:content-box;border:1px solid",ro.style.height="1px",Xn.style.height="9px",Xn.style.display="block",cn.appendChild(Jn).appendChild(ro).appendChild(Xn),co=tt.getComputedStyle(ro),dn=parseInt(co.height,10)+parseInt(co.borderTopWidth,10)+parseInt(co.borderBottomWidth,10)===ro.offsetHeight,cn.removeChild(Jn)),dn}}))})();function us(pr,vr,Lr){var Wr,on,sn,dn,zn=_i.test(vr),_n=pr.style;return Lr=Lr||ho(pr),Lr&&(dn=Lr.getPropertyValue(vr)||Lr[vr],zn&&dn&&(dn=dn.replace($t,"$1")||void 0),dn===""&&!Qr(pr)&&(dn=Nt.style(pr,vr)),!At.pixelBoxStyles()&&ao.test(dn)&&ko.test(vr)&&(Wr=_n.width,on=_n.minWidth,sn=_n.maxWidth,_n.minWidth=_n.maxWidth=_n.width=dn,dn=Lr.width,_n.width=Wr,_n.minWidth=on,_n.maxWidth=sn)),dn!==void 0?dn+"":dn}function Jo(pr,vr){return{get:function(){if(pr()){delete this.get;return}return(this.get=vr).apply(this,arguments)}}}var go=["Webkit","Moz","ms"],$o=Tt.createElement("div").style,vo={};function Go(pr){for(var vr=pr[0].toUpperCase()+pr.slice(1),Lr=go.length;Lr--;)if(pr=go[Lr]+vr,pr in $o)return pr}function Wo(pr){var vr=Nt.cssProps[pr]||vo[pr];return vr||(pr in $o?pr:vo[pr]=Go(pr)||pr)}var cs=/^(none|table(?!-c[ea]).+)/,rs={position:"absolute",visibility:"hidden",display:"block"},xs={letterSpacing:"0",fontWeight:"400"};function Es(pr,vr,Lr){var Wr=Zr.exec(vr);return Wr?Math.max(0,Wr[2]-(Lr||0))+(Wr[3]||"px"):vr}function Os(pr,vr,Lr,Wr,on,sn){var dn=vr==="width"?1:0,zn=0,_n=0,Fn=0;if(Lr===(Wr?"border":"content"))return 0;for(;dn<4;dn+=2)Lr==="margin"&&(Fn+=Nt.css(pr,Lr+Xr[dn],!0,on)),Wr?(Lr==="content"&&(_n-=Nt.css(pr,"padding"+Xr[dn],!0,on)),Lr!=="margin"&&(_n-=Nt.css(pr,"border"+Xr[dn]+"Width",!0,on))):(_n+=Nt.css(pr,"padding"+Xr[dn],!0,on),Lr!=="padding"?_n+=Nt.css(pr,"border"+Xr[dn]+"Width",!0,on):zn+=Nt.css(pr,"border"+Xr[dn]+"Width",!0,on));return!Wr&&sn>=0&&(_n+=Math.max(0,Math.ceil(pr["offset"+vr[0].toUpperCase()+vr.slice(1)]-sn-_n-zn-.5))||0),_n+Fn}function Ds(pr,vr,Lr){var Wr=ho(pr),on=!At.boxSizingReliable()||Lr,sn=on&&Nt.css(pr,"boxSizing",!1,Wr)==="border-box",dn=sn,zn=us(pr,vr,Wr),_n="offset"+vr[0].toUpperCase()+vr.slice(1);if(ao.test(zn)){if(!Lr)return zn;zn="auto"}return(!At.boxSizingReliable()&&sn||!At.reliableTrDimensions()&&Kt(pr,"tr")||zn==="auto"||!parseFloat(zn)&&Nt.css(pr,"display",!1,Wr)==="inline")&&pr.getClientRects().length&&(sn=Nt.css(pr,"boxSizing",!1,Wr)==="border-box",dn=_n in pr,dn&&(zn=pr[_n])),zn=parseFloat(zn)||0,zn+Os(pr,vr,Lr||(sn?"border":"content"),dn,Wr,zn)+"px"}Nt.extend({cssHooks:{opacity:{get:function(pr,vr){if(vr){var Lr=us(pr,"opacity");return Lr===""?"1":Lr}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(pr,vr,Lr,Wr){if(!(!pr||pr.nodeType===3||pr.nodeType===8||!pr.style)){var on,sn,dn,zn=kr(vr),_n=_i.test(vr),Fn=pr.style;if(_n||(vr=Wo(zn)),dn=Nt.cssHooks[vr]||Nt.cssHooks[zn],Lr!==void 0){if(sn=typeof Lr,sn==="string"&&(on=Zr.exec(Lr))&&on[1]&&(Lr=ln(pr,vr,on),sn="number"),Lr==null||Lr!==Lr)return;sn==="number"&&!_n&&(Lr+=on&&on[3]||(Nt.cssNumber[zn]?"":"px")),!At.clearCloneStyle&&Lr===""&&vr.indexOf("background")===0&&(Fn[vr]="inherit"),(!dn||!("set"in dn)||(Lr=dn.set(pr,Lr,Wr))!==void 0)&&(_n?Fn.setProperty(vr,Lr):Fn[vr]=Lr)}else return dn&&"get"in dn&&(on=dn.get(pr,!1,Wr))!==void 0?on:Fn[vr]}},css:function(pr,vr,Lr,Wr){var on,sn,dn,zn=kr(vr),_n=_i.test(vr);return _n||(vr=Wo(zn)),dn=Nt.cssHooks[vr]||Nt.cssHooks[zn],dn&&"get"in dn&&(on=dn.get(pr,!0,Lr)),on===void 0&&(on=us(pr,vr,Wr)),on==="normal"&&vr in xs&&(on=xs[vr]),Lr===""||Lr?(sn=parseFloat(on),Lr===!0||isFinite(sn)?sn||0:on):on}}),Nt.each(["height","width"],function(pr,vr){Nt.cssHooks[vr]={get:function(Lr,Wr,on){if(Wr)return cs.test(Nt.css(Lr,"display"))&&(!Lr.getClientRects().length||!Lr.getBoundingClientRect().width)?So(Lr,rs,function(){return Ds(Lr,vr,on)}):Ds(Lr,vr,on)},set:function(Lr,Wr,on){var sn,dn=ho(Lr),zn=!At.scrollboxSize()&&dn.position==="absolute",_n=zn||on,Fn=_n&&Nt.css(Lr,"boxSizing",!1,dn)==="border-box",Jn=on?Os(Lr,vr,on,Fn,dn):0;return Fn&&zn&&(Jn-=Math.ceil(Lr["offset"+vr[0].toUpperCase()+vr.slice(1)]-parseFloat(dn[vr])-Os(Lr,vr,"border",!1,dn)-.5)),Jn&&(sn=Zr.exec(Wr))&&(sn[3]||"px")!=="px"&&(Lr.style[vr]=Wr,Wr=Nt.css(Lr,vr)),Es(Lr,Wr,Jn)}}}),Nt.cssHooks.marginLeft=Jo(At.reliableMarginLeft,function(pr,vr){if(vr)return(parseFloat(us(pr,"marginLeft"))||pr.getBoundingClientRect().left-So(pr,{marginLeft:0},function(){return pr.getBoundingClientRect().left}))+"px"}),Nt.each({margin:"",padding:"",border:"Width"},function(pr,vr){Nt.cssHooks[pr+vr]={expand:function(Lr){for(var Wr=0,on={},sn=typeof Lr=="string"?Lr.split(" "):[Lr];Wr<4;Wr++)on[pr+Xr[Wr]+vr]=sn[Wr]||sn[Wr-2]||sn[0];return on}},pr!=="margin"&&(Nt.cssHooks[pr+vr].set=Es)}),Nt.fn.extend({css:function(pr,vr){return Rr(this,function(Lr,Wr,on){var sn,dn,zn={},_n=0;if(Array.isArray(Wr)){for(sn=ho(Lr),dn=Wr.length;_n<dn;_n++)zn[Wr[_n]]=Nt.css(Lr,Wr[_n],!1,sn);return zn}return on!==void 0?Nt.style(Lr,Wr,on):Nt.css(Lr,Wr)},pr,vr,arguments.length>1)}});function gs(pr,vr,Lr,Wr,on){return new gs.prototype.init(pr,vr,Lr,Wr,on)}Nt.Tween=gs,gs.prototype={constructor:gs,init:function(pr,vr,Lr,Wr,on,sn){this.elem=pr,this.prop=Lr,this.easing=on||Nt.easing._default,this.options=vr,this.start=this.now=this.cur(),this.end=Wr,this.unit=sn||(Nt.cssNumber[Lr]?"":"px")},cur:function(){var pr=gs.propHooks[this.prop];return pr&&pr.get?pr.get(this):gs.propHooks._default.get(this)},run:function(pr){var vr,Lr=gs.propHooks[this.prop];return this.options.duration?this.pos=vr=Nt.easing[this.easing](pr,this.options.duration*pr,0,1,this.options.duration):this.pos=vr=pr,this.now=(this.end-this.start)*vr+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),Lr&&Lr.set?Lr.set(this):gs.propHooks._default.set(this),this}},gs.prototype.init.prototype=gs.prototype,gs.propHooks={_default:{get:function(pr){var vr;return pr.elem.nodeType!==1||pr.elem[pr.prop]!=null&&pr.elem.style[pr.prop]==null?pr.elem[pr.prop]:(vr=Nt.css(pr.elem,pr.prop,""),!vr||vr==="auto"?0:vr)},set:function(pr){Nt.fx.step[pr.prop]?Nt.fx.step[pr.prop](pr):pr.elem.nodeType===1&&(Nt.cssHooks[pr.prop]||pr.elem.style[Wo(pr.prop)]!=null)?Nt.style(pr.elem,pr.prop,pr.now+pr.unit):pr.elem[pr.prop]=pr.now}}},gs.propHooks.scrollTop=gs.propHooks.scrollLeft={set:function(pr){pr.elem.nodeType&&pr.elem.parentNode&&(pr.elem[pr.prop]=pr.now)}},Nt.easing={linear:function(pr){return pr},swing:function(pr){return .5-Math.cos(pr*Math.PI)/2},_default:"swing"},Nt.fx=gs.prototype.init,Nt.fx.step={};var na,Xs,Zl=/^(?:toggle|show|hide)$/,Jl=/queueHooks$/;function Ks(){Xs&&(Tt.hidden===!1&&tt.requestAnimationFrame?tt.requestAnimationFrame(Ks):tt.setTimeout(Ks,Nt.fx.interval),Nt.fx.tick())}function Al(){return tt.setTimeout(function(){na=void 0}),na=Date.now()}function Ol(pr,vr){var Lr,Wr=0,on={height:pr};for(vr=vr?1:0;Wr<4;Wr+=2-vr)Lr=Xr[Wr],on["margin"+Lr]=on["padding"+Lr]=pr;return vr&&(on.opacity=on.width=pr),on}function On(pr,vr,Lr){for(var Wr,on=(_o.tweeners[vr]||[]).concat(_o.tweeners["*"]),sn=0,dn=on.length;sn<dn;sn++)if(Wr=on[sn].call(Lr,vr,pr))return Wr}function Sn(pr,vr,Lr){var Wr,on,sn,dn,zn,_n,Fn,Jn,ro="width"in vr||"height"in vr,Xn=this,co={},bo=pr.style,wo=pr.nodeType&&_r(pr),Lo=Or.get(pr,"fxshow");Lr.queue||(dn=Nt._queueHooks(pr,"fx"),dn.unqueued==null&&(dn.unqueued=0,zn=dn.empty.fire,dn.empty.fire=function(){dn.unqueued||zn()}),dn.unqueued++,Xn.always(function(){Xn.always(function(){dn.unqueued--,Nt.queue(pr,"fx").length||dn.empty.fire()})}));for(Wr in vr)if(on=vr[Wr],Zl.test(on)){if(delete vr[Wr],sn=sn||on==="toggle",on===(wo?"hide":"show"))if(on==="show"&&Lo&&Lo[Wr]!==void 0)wo=!0;else continue;co[Wr]=Lo&&Lo[Wr]||Nt.style(pr,Wr)}if(_n=!Nt.isEmptyObject(vr),!(!_n&&Nt.isEmptyObject(co))){ro&&pr.nodeType===1&&(Lr.overflow=[bo.overflow,bo.overflowX,bo.overflowY],Fn=Lo&&Lo.display,Fn==null&&(Fn=Or.get(pr,"display")),Jn=Nt.css(pr,"display"),Jn==="none"&&(Fn?Jn=Fn:(gn([pr],!0),Fn=pr.style.display||Fn,Jn=Nt.css(pr,"display"),gn([pr]))),(Jn==="inline"||Jn==="inline-block"&&Fn!=null)&&Nt.css(pr,"float")==="none"&&(_n||(Xn.done(function(){bo.display=Fn}),Fn==null&&(Jn=bo.display,Fn=Jn==="none"?"":Jn)),bo.display="inline-block")),Lr.overflow&&(bo.overflow="hidden",Xn.always(function(){bo.overflow=Lr.overflow[0],bo.overflowX=Lr.overflow[1],bo.overflowY=Lr.overflow[2]})),_n=!1;for(Wr in co)_n||(Lo?"hidden"in Lo&&(wo=Lo.hidden):Lo=Or.access(pr,"fxshow",{display:Fn}),sn&&(Lo.hidden=!wo),wo&&gn([pr],!0),Xn.done(function(){wo||gn([pr]),Or.remove(pr,"fxshow");for(Wr in co)Nt.style(pr,Wr,co[Wr])})),_n=On(wo?Lo[Wr]:0,Wr,Xn),Wr in Lo||(Lo[Wr]=_n.start,wo&&(_n.end=_n.start,_n.start=0))}}function po(pr,vr){var Lr,Wr,on,sn,dn;for(Lr in pr)if(Wr=kr(Lr),on=vr[Wr],sn=pr[Lr],Array.isArray(sn)&&(on=sn[1],sn=pr[Lr]=sn[0]),Lr!==Wr&&(pr[Wr]=sn,delete pr[Lr]),dn=Nt.cssHooks[Wr],dn&&"expand"in dn){sn=dn.expand(sn),delete pr[Wr];for(Lr in sn)Lr in pr||(pr[Lr]=sn[Lr],vr[Lr]=on)}else vr[Wr]=on}function _o(pr,vr,Lr){var Wr,on,sn=0,dn=_o.prefilters.length,zn=Nt.Deferred().always(function(){delete _n.elem}),_n=function(){if(on)return!1;for(var ro=na||Al(),Xn=Math.max(0,Fn.startTime+Fn.duration-ro),co=Xn/Fn.duration||0,bo=1-co,wo=0,Lo=Fn.tweens.length;wo<Lo;wo++)Fn.tweens[wo].run(bo);return zn.notifyWith(pr,[Fn,bo,Xn]),bo<1&&Lo?Xn:(Lo||zn.notifyWith(pr,[Fn,1,0]),zn.resolveWith(pr,[Fn]),!1)},Fn=zn.promise({elem:pr,props:Nt.extend({},vr),opts:Nt.extend(!0,{specialEasing:{},easing:Nt.easing._default},Lr),originalProperties:vr,originalOptions:Lr,startTime:na||Al(),duration:Lr.duration,tweens:[],createTween:function(ro,Xn){var co=Nt.Tween(pr,Fn.opts,ro,Xn,Fn.opts.specialEasing[ro]||Fn.opts.easing);return Fn.tweens.push(co),co},stop:function(ro){var Xn=0,co=ro?Fn.tweens.length:0;if(on)return this;for(on=!0;Xn<co;Xn++)Fn.tweens[Xn].run(1);return ro?(zn.notifyWith(pr,[Fn,1,0]),zn.resolveWith(pr,[Fn,ro])):zn.rejectWith(pr,[Fn,ro]),this}}),Jn=Fn.props;for(po(Jn,Fn.opts.specialEasing);sn<dn;sn++)if(Wr=_o.prefilters[sn].call(Fn,pr,Jn,Fn.opts),Wr)return Rt(Wr.stop)&&(Nt._queueHooks(Fn.elem,Fn.opts.queue).stop=Wr.stop.bind(Wr)),Wr;return Nt.map(Jn,On,Fn),Rt(Fn.opts.start)&&Fn.opts.start.call(pr,Fn),Fn.progress(Fn.opts.progress).done(Fn.opts.done,Fn.opts.complete).fail(Fn.opts.fail).always(Fn.opts.always),Nt.fx.timer(Nt.extend(_n,{elem:pr,anim:Fn,queue:Fn.opts.queue})),Fn}Nt.Animation=Nt.extend(_o,{tweeners:{"*":[function(pr,vr){var Lr=this.createTween(pr,vr);return ln(Lr.elem,pr,Zr.exec(vr),Lr),Lr}]},tweener:function(pr,vr){Rt(pr)?(vr=pr,pr=["*"]):pr=pr.match(gr);for(var Lr,Wr=0,on=pr.length;Wr<on;Wr++)Lr=pr[Wr],_o.tweeners[Lr]=_o.tweeners[Lr]||[],_o.tweeners[Lr].unshift(vr)},prefilters:[Sn],prefilter:function(pr,vr){vr?_o.prefilters.unshift(pr):_o.prefilters.push(pr)}}),Nt.speed=function(pr,vr,Lr){var Wr=pr&&typeof pr=="object"?Nt.extend({},pr):{complete:Lr||!Lr&&vr||Rt(pr)&&pr,duration:pr,easing:Lr&&vr||vr&&!Rt(vr)&&vr};return Nt.fx.off?Wr.duration=0:typeof Wr.duration!="number"&&(Wr.duration in Nt.fx.speeds?Wr.duration=Nt.fx.speeds[Wr.duration]:Wr.duration=Nt.fx.speeds._default),(Wr.queue==null||Wr.queue===!0)&&(Wr.queue="fx"),Wr.old=Wr.complete,Wr.complete=function(){Rt(Wr.old)&&Wr.old.call(this),Wr.queue&&Nt.dequeue(this,Wr.queue)},Wr},Nt.fn.extend({fadeTo:function(pr,vr,Lr,Wr){return this.filter(_r).css("opacity",0).show().end().animate({opacity:vr},pr,Lr,Wr)},animate:function(pr,vr,Lr,Wr){var on=Nt.isEmptyObject(pr),sn=Nt.speed(vr,Lr,Wr),dn=function(){var zn=_o(this,Nt.extend({},pr),sn);(on||Or.get(this,"finish"))&&zn.stop(!0)};return dn.finish=dn,on||sn.queue===!1?this.each(dn):this.queue(sn.queue,dn)},stop:function(pr,vr,Lr){var Wr=function(on){var sn=on.stop;delete on.stop,sn(Lr)};return typeof pr!="string"&&(Lr=vr,vr=pr,pr=void 0),vr&&this.queue(pr||"fx",[]),this.each(function(){var on=!0,sn=pr!=null&&pr+"queueHooks",dn=Nt.timers,zn=Or.get(this);if(sn)zn[sn]&&zn[sn].stop&&Wr(zn[sn]);else for(sn in zn)zn[sn]&&zn[sn].stop&&Jl.test(sn)&&Wr(zn[sn]);for(sn=dn.length;sn--;)dn[sn].elem===this&&(pr==null||dn[sn].queue===pr)&&(dn[sn].anim.stop(Lr),on=!1,dn.splice(sn,1));(on||!Lr)&&Nt.dequeue(this,pr)})},finish:function(pr){return pr!==!1&&(pr=pr||"fx"),this.each(function(){var vr,Lr=Or.get(this),Wr=Lr[pr+"queue"],on=Lr[pr+"queueHooks"],sn=Nt.timers,dn=Wr?Wr.length:0;for(Lr.finish=!0,Nt.queue(this,pr,[]),on&&on.stop&&on.stop.call(this,!0),vr=sn.length;vr--;)sn[vr].elem===this&&sn[vr].queue===pr&&(sn[vr].anim.stop(!0),sn.splice(vr,1));for(vr=0;vr<dn;vr++)Wr[vr]&&Wr[vr].finish&&Wr[vr].finish.call(this);delete Lr.finish})}}),Nt.each(["toggle","show","hide"],function(pr,vr){var Lr=Nt.fn[vr];Nt.fn[vr]=function(Wr,on,sn){return Wr==null||typeof Wr=="boolean"?Lr.apply(this,arguments):this.animate(Ol(vr,!0),Wr,on,sn)}}),Nt.each({slideDown:Ol("show"),slideUp:Ol("hide"),slideToggle:Ol("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(pr,vr){Nt.fn[pr]=function(Lr,Wr,on){return this.animate(vr,Lr,Wr,on)}}),Nt.timers=[],Nt.fx.tick=function(){var pr,vr=0,Lr=Nt.timers;for(na=Date.now();vr<Lr.length;vr++)pr=Lr[vr],!pr()&&Lr[vr]===pr&&Lr.splice(vr--,1);Lr.length||Nt.fx.stop(),na=void 0},Nt.fx.timer=function(pr){Nt.timers.push(pr),Nt.fx.start()},Nt.fx.interval=13,Nt.fx.start=function(){Xs||(Xs=!0,Ks())},Nt.fx.stop=function(){Xs=null},Nt.fx.speeds={slow:600,fast:200,_default:400},Nt.fn.delay=function(pr,vr){return pr=Nt.fx&&Nt.fx.speeds[pr]||pr,vr=vr||"fx",this.queue(vr,function(Lr,Wr){var on=tt.setTimeout(Lr,pr);Wr.stop=function(){tt.clearTimeout(on)}})},function(){var pr=Tt.createElement("input"),vr=Tt.createElement("select"),Lr=vr.appendChild(Tt.createElement("option"));pr.type="checkbox",At.checkOn=pr.value!=="",At.optSelected=Lr.selected,pr=Tt.createElement("input"),pr.value="t",pr.type="radio",At.radioValue=pr.value==="t"}();var Co,ls=Nt.expr.attrHandle;Nt.fn.extend({attr:function(pr,vr){return Rr(this,Nt.attr,pr,vr,arguments.length>1)},removeAttr:function(pr){return this.each(function(){Nt.removeAttr(this,pr)})}}),Nt.extend({attr:function(pr,vr,Lr){var Wr,on,sn=pr.nodeType;if(!(sn===3||sn===8||sn===2)){if(typeof pr.getAttribute>"u")return Nt.prop(pr,vr,Lr);if((sn!==1||!Nt.isXMLDoc(pr))&&(on=Nt.attrHooks[vr.toLowerCase()]||(Nt.expr.match.bool.test(vr)?Co:void 0)),Lr!==void 0){if(Lr===null){Nt.removeAttr(pr,vr);return}return on&&"set"in on&&(Wr=on.set(pr,Lr,vr))!==void 0?Wr:(pr.setAttribute(vr,Lr+""),Lr)}return on&&"get"in on&&(Wr=on.get(pr,vr))!==null?Wr:(Wr=Nt.find.attr(pr,vr),Wr??void 0)}},attrHooks:{type:{set:function(pr,vr){if(!At.radioValue&&vr==="radio"&&Kt(pr,"input")){var Lr=pr.value;return pr.setAttribute("type",vr),Lr&&(pr.value=Lr),vr}}}},removeAttr:function(pr,vr){var Lr,Wr=0,on=vr&&vr.match(gr);if(on&&pr.nodeType===1)for(;Lr=on[Wr++];)pr.removeAttribute(Lr)}}),Co={set:function(pr,vr,Lr){return vr===!1?Nt.removeAttr(pr,Lr):pr.setAttribute(Lr,Lr),Lr}},Nt.each(Nt.expr.match.bool.source.match(/\w+/g),function(pr,vr){var Lr=ls[vr]||Nt.find.attr;ls[vr]=function(Wr,on,sn){var dn,zn,_n=on.toLowerCase();return sn||(zn=ls[_n],ls[_n]=dn,dn=Lr(Wr,on,sn)!=null?_n:null,ls[_n]=zn),dn}});var qs=/^(?:input|select|textarea|button)$/i,Bs=/^(?:a|area)$/i;Nt.fn.extend({prop:function(pr,vr){return Rr(this,Nt.prop,pr,vr,arguments.length>1)},removeProp:function(pr){return this.each(function(){delete this[Nt.propFix[pr]||pr]})}}),Nt.extend({prop:function(pr,vr,Lr){var Wr,on,sn=pr.nodeType;if(!(sn===3||sn===8||sn===2))return(sn!==1||!Nt.isXMLDoc(pr))&&(vr=Nt.propFix[vr]||vr,on=Nt.propHooks[vr]),Lr!==void 0?on&&"set"in on&&(Wr=on.set(pr,Lr,vr))!==void 0?Wr:pr[vr]=Lr:on&&"get"in on&&(Wr=on.get(pr,vr))!==null?Wr:pr[vr]},propHooks:{tabIndex:{get:function(pr){var vr=Nt.find.attr(pr,"tabindex");return vr?parseInt(vr,10):qs.test(pr.nodeName)||Bs.test(pr.nodeName)&&pr.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),At.optSelected||(Nt.propHooks.selected={get:function(pr){var vr=pr.parentNode;return vr&&vr.parentNode&&vr.parentNode.selectedIndex,null},set:function(pr){var vr=pr.parentNode;vr&&(vr.selectedIndex,vr.parentNode&&vr.parentNode.selectedIndex)}}),Nt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Nt.propFix[this.toLowerCase()]=this});function Ns(pr){var vr=pr.match(gr)||[];return vr.join(" ")}function Rl(pr){return pr.getAttribute&&pr.getAttribute("class")||""}function O0(pr){return Array.isArray(pr)?pr:typeof pr=="string"?pr.match(gr)||[]:[]}Nt.fn.extend({addClass:function(pr){var vr,Lr,Wr,on,sn,dn;return Rt(pr)?this.each(function(zn){Nt(this).addClass(pr.call(this,zn,Rl(this)))}):(vr=O0(pr),vr.length?this.each(function(){if(Wr=Rl(this),Lr=this.nodeType===1&&" "+Ns(Wr)+" ",Lr){for(sn=0;sn<vr.length;sn++)on=vr[sn],Lr.indexOf(" "+on+" ")<0&&(Lr+=on+" ");dn=Ns(Lr),Wr!==dn&&this.setAttribute("class",dn)}}):this)},removeClass:function(pr){var vr,Lr,Wr,on,sn,dn;return Rt(pr)?this.each(function(zn){Nt(this).removeClass(pr.call(this,zn,Rl(this)))}):arguments.length?(vr=O0(pr),vr.length?this.each(function(){if(Wr=Rl(this),Lr=this.nodeType===1&&" "+Ns(Wr)+" ",Lr){for(sn=0;sn<vr.length;sn++)for(on=vr[sn];Lr.indexOf(" "+on+" ")>-1;)Lr=Lr.replace(" "+on+" "," ");dn=Ns(Lr),Wr!==dn&&this.setAttribute("class",dn)}}):this):this.attr("class","")},toggleClass:function(pr,vr){var Lr,Wr,on,sn,dn=typeof pr,zn=dn==="string"||Array.isArray(pr);return Rt(pr)?this.each(function(_n){Nt(this).toggleClass(pr.call(this,_n,Rl(this),vr),vr)}):typeof vr=="boolean"&&zn?vr?this.addClass(pr):this.removeClass(pr):(Lr=O0(pr),this.each(function(){if(zn)for(sn=Nt(this),on=0;on<Lr.length;on++)Wr=Lr[on],sn.hasClass(Wr)?sn.removeClass(Wr):sn.addClass(Wr);else(pr===void 0||dn==="boolean")&&(Wr=Rl(this),Wr&&Or.set(this,"__className__",Wr),this.setAttribute&&this.setAttribute("class",Wr||pr===!1?"":Or.get(this,"__className__")||""))}))},hasClass:function(pr){var vr,Lr,Wr=0;for(vr=" "+pr+" ";Lr=this[Wr++];)if(Lr.nodeType===1&&(" "+Ns(Rl(Lr))+" ").indexOf(vr)>-1)return!0;return!1}});var R0=/\r/g;Nt.fn.extend({val:function(pr){var vr,Lr,Wr,on=this[0];return arguments.length?(Wr=Rt(pr),this.each(function(sn){var dn;this.nodeType===1&&(Wr?dn=pr.call(this,sn,Nt(this).val()):dn=pr,dn==null?dn="":typeof dn=="number"?dn+="":Array.isArray(dn)&&(dn=Nt.map(dn,function(zn){return zn==null?"":zn+""})),vr=Nt.valHooks[this.type]||Nt.valHooks[this.nodeName.toLowerCase()],(!vr||!("set"in vr)||vr.set(this,dn,"value")===void 0)&&(this.value=dn))})):on?(vr=Nt.valHooks[on.type]||Nt.valHooks[on.nodeName.toLowerCase()],vr&&"get"in vr&&(Lr=vr.get(on,"value"))!==void 0?Lr:(Lr=on.value,typeof Lr=="string"?Lr.replace(R0,""):Lr??"")):void 0}}),Nt.extend({valHooks:{option:{get:function(pr){var vr=Nt.find.attr(pr,"value");return vr??Ns(Nt.text(pr))}},select:{get:function(pr){var vr,Lr,Wr,on=pr.options,sn=pr.selectedIndex,dn=pr.type==="select-one",zn=dn?null:[],_n=dn?sn+1:on.length;for(sn<0?Wr=_n:Wr=dn?sn:0;Wr<_n;Wr++)if(Lr=on[Wr],(Lr.selected||Wr===sn)&&!Lr.disabled&&(!Lr.parentNode.disabled||!Kt(Lr.parentNode,"optgroup"))){if(vr=Nt(Lr).val(),dn)return vr;zn.push(vr)}return zn},set:function(pr,vr){for(var Lr,Wr,on=pr.options,sn=Nt.makeArray(vr),dn=on.length;dn--;)Wr=on[dn],(Wr.selected=Nt.inArray(Nt.valHooks.option.get(Wr),sn)>-1)&&(Lr=!0);return Lr||(pr.selectedIndex=-1),sn}}}}),Nt.each(["radio","checkbox"],function(){Nt.valHooks[this]={set:function(pr,vr){if(Array.isArray(vr))return pr.checked=Nt.inArray(Nt(pr).val(),vr)>-1}},At.checkOn||(Nt.valHooks[this].get=function(pr){return pr.getAttribute("value")===null?"on":pr.value})});var e0=tt.location,xa={guid:Date.now()},Bl=/\?/;Nt.parseXML=function(pr){var vr,Lr;if(!pr||typeof pr!="string")return null;try{vr=new tt.DOMParser().parseFromString(pr,"text/xml")}catch{}return Lr=vr&&vr.getElementsByTagName("parsererror")[0],(!vr||Lr)&&Nt.error("Invalid XML: "+(Lr?Nt.map(Lr.childNodes,function(Wr){return Wr.textContent}).join(`
`):pr)),vr};var K0=/^(?:focusinfocus|focusoutblur)$/,p0=function(pr){pr.stopPropagation()};Nt.extend(Nt.event,{trigger:function(pr,vr,Lr,Wr){var on,sn,dn,zn,_n,Fn,Jn,ro,Xn=[Lr||Tt],co=Mt.call(pr,"type")?pr.type:pr,bo=Mt.call(pr,"namespace")?pr.namespace.split("."):[];if(sn=ro=dn=Lr=Lr||Tt,!(Lr.nodeType===3||Lr.nodeType===8)&&!K0.test(co+Nt.event.triggered)&&(co.indexOf(".")>-1&&(bo=co.split("."),co=bo.shift(),bo.sort()),_n=co.indexOf(":")<0&&"on"+co,pr=pr[Nt.expando]?pr:new Nt.Event(co,typeof pr=="object"&&pr),pr.isTrigger=Wr?2:3,pr.namespace=bo.join("."),pr.rnamespace=pr.namespace?new RegExp("(^|\\.)"+bo.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,pr.result=void 0,pr.target||(pr.target=Lr),vr=vr==null?[pr]:Nt.makeArray(vr,[pr]),Jn=Nt.event.special[co]||{},!(!Wr&&Jn.trigger&&Jn.trigger.apply(Lr,vr)===!1))){if(!Wr&&!Jn.noBubble&&!zt(Lr)){for(zn=Jn.delegateType||co,K0.test(zn+co)||(sn=sn.parentNode);sn;sn=sn.parentNode)Xn.push(sn),dn=sn;dn===(Lr.ownerDocument||Tt)&&Xn.push(dn.defaultView||dn.parentWindow||tt)}for(on=0;(sn=Xn[on++])&&!pr.isPropagationStopped();)ro=sn,pr.type=on>1?zn:Jn.bindType||co,Fn=(Or.get(sn,"events")||Object.create(null))[pr.type]&&Or.get(sn,"handle"),Fn&&Fn.apply(sn,vr),Fn=_n&&sn[_n],Fn&&Fn.apply&&$r(sn)&&(pr.result=Fn.apply(sn,vr),pr.result===!1&&pr.preventDefault());return pr.type=co,!Wr&&!pr.isDefaultPrevented()&&(!Jn._default||Jn._default.apply(Xn.pop(),vr)===!1)&&$r(Lr)&&_n&&Rt(Lr[co])&&!zt(Lr)&&(dn=Lr[_n],dn&&(Lr[_n]=null),Nt.event.triggered=co,pr.isPropagationStopped()&&ro.addEventListener(co,p0),Lr[co](),pr.isPropagationStopped()&&ro.removeEventListener(co,p0),Nt.event.triggered=void 0,dn&&(Lr[_n]=dn)),pr.result}},simulate:function(pr,vr,Lr){var Wr=Nt.extend(new Nt.Event,Lr,{type:pr,isSimulated:!0});Nt.event.trigger(Wr,null,vr)}}),Nt.fn.extend({trigger:function(pr,vr){return this.each(function(){Nt.event.trigger(pr,vr,this)})},triggerHandler:function(pr,vr){var Lr=this[0];if(Lr)return Nt.event.trigger(pr,vr,Lr,!0)}});var g1=/\[\]$/,j0=/\r?\n/g,Q0=/^(?:submit|button|image|reset|file)$/i,Z0=/^(?:input|select|textarea|keygen)/i;function S0(pr,vr,Lr,Wr){var on;if(Array.isArray(vr))Nt.each(vr,function(sn,dn){Lr||g1.test(pr)?Wr(pr,dn):S0(pr+"["+(typeof dn=="object"&&dn!=null?sn:"")+"]",dn,Lr,Wr)});else if(!Lr&&Dt(vr)==="object")for(on in vr)S0(pr+"["+on+"]",vr[on],Lr,Wr);else Wr(pr,vr)}Nt.param=function(pr,vr){var Lr,Wr=[],on=function(sn,dn){var zn=Rt(dn)?dn():dn;Wr[Wr.length]=encodeURIComponent(sn)+"="+encodeURIComponent(zn??"")};if(pr==null)return"";if(Array.isArray(pr)||pr.jquery&&!Nt.isPlainObject(pr))Nt.each(pr,function(){on(this.name,this.value)});else for(Lr in pr)S0(Lr,pr[Lr],vr,on);return Wr.join("&")},Nt.fn.extend({serialize:function(){return Nt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var pr=Nt.prop(this,"elements");return pr?Nt.makeArray(pr):this}).filter(function(){var pr=this.type;return this.name&&!Nt(this).is(":disabled")&&Z0.test(this.nodeName)&&!Q0.test(pr)&&(this.checked||!xn.test(pr))}).map(function(pr,vr){var Lr=Nt(this).val();return Lr==null?null:Array.isArray(Lr)?Nt.map(Lr,function(Wr){return{name:vr.name,value:Wr.replace(j0,`\r
`)}}):{name:vr.name,value:Lr.replace(j0,`\r
`)}}).get()}});var J0=/%20/g,_0=/#.*$/,_c=/([?&])_=[^&]*/,e1=/^(.*?):[ \t]*([^\r\n]*)$/mg,Pn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,mo=/^(?:GET|HEAD)$/,ps=/^\/\//,qo={},Bo={},ga="*/".concat("*"),bs=Tt.createElement("a");bs.href=e0.href;function t0(pr){return function(vr,Lr){typeof vr!="string"&&(Lr=vr,vr="*");var Wr,on=0,sn=vr.toLowerCase().match(gr)||[];if(Rt(Lr))for(;Wr=sn[on++];)Wr[0]==="+"?(Wr=Wr.slice(1)||"*",(pr[Wr]=pr[Wr]||[]).unshift(Lr)):(pr[Wr]=pr[Wr]||[]).push(Lr)}}function t1(pr,vr,Lr,Wr){var on={},sn=pr===Bo;function dn(zn){var _n;return on[zn]=!0,Nt.each(pr[zn]||[],function(Fn,Jn){var ro=Jn(vr,Lr,Wr);if(typeof ro=="string"&&!sn&&!on[ro])return vr.dataTypes.unshift(ro),dn(ro),!1;if(sn)return!(_n=ro)}),_n}return dn(vr.dataTypes[0])||!on["*"]&&dn("*")}function Ws(pr,vr){var Lr,Wr,on=Nt.ajaxSettings.flatOptions||{};for(Lr in vr)vr[Lr]!==void 0&&((on[Lr]?pr:Wr||(Wr={}))[Lr]=vr[Lr]);return Wr&&Nt.extend(!0,pr,Wr),pr}function Po(pr,vr,Lr){for(var Wr,on,sn,dn,zn=pr.contents,_n=pr.dataTypes;_n[0]==="*";)_n.shift(),Wr===void 0&&(Wr=pr.mimeType||vr.getResponseHeader("Content-Type"));if(Wr){for(on in zn)if(zn[on]&&zn[on].test(Wr)){_n.unshift(on);break}}if(_n[0]in Lr)sn=_n[0];else{for(on in Lr){if(!_n[0]||pr.converters[on+" "+_n[0]]){sn=on;break}dn||(dn=on)}sn=sn||dn}if(sn)return sn!==_n[0]&&_n.unshift(sn),Lr[sn]}function ws(pr,vr,Lr,Wr){var on,sn,dn,zn,_n,Fn={},Jn=pr.dataTypes.slice();if(Jn[1])for(dn in pr.converters)Fn[dn.toLowerCase()]=pr.converters[dn];for(sn=Jn.shift();sn;)if(pr.responseFields[sn]&&(Lr[pr.responseFields[sn]]=vr),!_n&&Wr&&pr.dataFilter&&(vr=pr.dataFilter(vr,pr.dataType)),_n=sn,sn=Jn.shift(),sn){if(sn==="*")sn=_n;else if(_n!=="*"&&_n!==sn){if(dn=Fn[_n+" "+sn]||Fn["* "+sn],!dn){for(on in Fn)if(zn=on.split(" "),zn[1]===sn&&(dn=Fn[_n+" "+zn[0]]||Fn["* "+zn[0]],dn)){dn===!0?dn=Fn[on]:Fn[on]!==!0&&(sn=zn[0],Jn.unshift(zn[1]));break}}if(dn!==!0)if(dn&&pr.throws)vr=dn(vr);else try{vr=dn(vr)}catch(ro){return{state:"parsererror",error:dn?ro:"No conversion from "+_n+" to "+sn}}}}return{state:"success",data:vr}}Nt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:e0.href,type:"GET",isLocal:Pn.test(e0.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ga,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Nt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(pr,vr){return vr?Ws(Ws(pr,Nt.ajaxSettings),vr):Ws(Nt.ajaxSettings,pr)},ajaxPrefilter:t0(qo),ajaxTransport:t0(Bo),ajax:function(pr,vr){typeof pr=="object"&&(vr=pr,pr=void 0),vr=vr||{};var Lr,Wr,on,sn,dn,zn,_n,Fn,Jn,ro,Xn=Nt.ajaxSetup({},vr),co=Xn.context||Xn,bo=Xn.context&&(co.nodeType||co.jquery)?Nt(co):Nt.event,wo=Nt.Deferred(),Lo=Nt.Callbacks("once memory"),Cs=Xn.statusCode||{},Ms={},$a={},_l="canceled",Vo={readyState:0,getResponseHeader:function(Yo){var ds;if(_n){if(!sn)for(sn={};ds=e1.exec(on);)sn[ds[1].toLowerCase()+" "]=(sn[ds[1].toLowerCase()+" "]||[]).concat(ds[2]);ds=sn[Yo.toLowerCase()+" "]}return ds==null?null:ds.join(", ")},getAllResponseHeaders:function(){return _n?on:null},setRequestHeader:function(Yo,ds){return _n==null&&(Yo=$a[Yo.toLowerCase()]=$a[Yo.toLowerCase()]||Yo,Ms[Yo]=ds),this},overrideMimeType:function(Yo){return _n==null&&(Xn.mimeType=Yo),this},statusCode:function(Yo){var ds;if(Yo)if(_n)Vo.always(Yo[Vo.status]);else for(ds in Yo)Cs[ds]=[Cs[ds],Yo[ds]];return this},abort:function(Yo){var ds=Yo||_l;return Lr&&Lr.abort(ds),r0(0,ds),this}};if(wo.promise(Vo),Xn.url=((pr||Xn.url||e0.href)+"").replace(ps,e0.protocol+"//"),Xn.type=vr.method||vr.type||Xn.method||Xn.type,Xn.dataTypes=(Xn.dataType||"*").toLowerCase().match(gr)||[""],Xn.crossDomain==null){zn=Tt.createElement("a");try{zn.href=Xn.url,zn.href=zn.href,Xn.crossDomain=bs.protocol+"//"+bs.host!=zn.protocol+"//"+zn.host}catch{Xn.crossDomain=!0}}if(Xn.data&&Xn.processData&&typeof Xn.data!="string"&&(Xn.data=Nt.param(Xn.data,Xn.traditional)),t1(qo,Xn,vr,Vo),_n)return Vo;Fn=Nt.event&&Xn.global,Fn&&Nt.active++===0&&Nt.event.trigger("ajaxStart"),Xn.type=Xn.type.toUpperCase(),Xn.hasContent=!mo.test(Xn.type),Wr=Xn.url.replace(_0,""),Xn.hasContent?Xn.data&&Xn.processData&&(Xn.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Xn.data=Xn.data.replace(J0,"+")):(ro=Xn.url.slice(Wr.length),Xn.data&&(Xn.processData||typeof Xn.data=="string")&&(Wr+=(Bl.test(Wr)?"&":"?")+Xn.data,delete Xn.data),Xn.cache===!1&&(Wr=Wr.replace(_c,"$1"),ro=(Bl.test(Wr)?"&":"?")+"_="+xa.guid+++ro),Xn.url=Wr+ro),Xn.ifModified&&(Nt.lastModified[Wr]&&Vo.setRequestHeader("If-Modified-Since",Nt.lastModified[Wr]),Nt.etag[Wr]&&Vo.setRequestHeader("If-None-Match",Nt.etag[Wr])),(Xn.data&&Xn.hasContent&&Xn.contentType!==!1||vr.contentType)&&Vo.setRequestHeader("Content-Type",Xn.contentType),Vo.setRequestHeader("Accept",Xn.dataTypes[0]&&Xn.accepts[Xn.dataTypes[0]]?Xn.accepts[Xn.dataTypes[0]]+(Xn.dataTypes[0]!=="*"?", "+ga+"; q=0.01":""):Xn.accepts["*"]);for(Jn in Xn.headers)Vo.setRequestHeader(Jn,Xn.headers[Jn]);if(Xn.beforeSend&&(Xn.beforeSend.call(co,Vo,Xn)===!1||_n))return Vo.abort();if(_l="abort",Lo.add(Xn.complete),Vo.done(Xn.success),Vo.fail(Xn.error),Lr=t1(Bo,Xn,vr,Vo),!Lr)r0(-1,"No Transport");else{if(Vo.readyState=1,Fn&&bo.trigger("ajaxSend",[Vo,Xn]),_n)return Vo;Xn.async&&Xn.timeout>0&&(dn=tt.setTimeout(function(){Vo.abort("timeout")},Xn.timeout));try{_n=!1,Lr.send(Ms,r0)}catch(Yo){if(_n)throw Yo;r0(-1,Yo)}}function r0(Yo,ds,C0,n1){var Ps,h0,Us,Wl,Cl,Hs=ds;_n||(_n=!0,dn&&tt.clearTimeout(dn),Lr=void 0,on=n1||"",Vo.readyState=Yo>0?4:0,Ps=Yo>=200&&Yo<300||Yo===304,C0&&(Wl=Po(Xn,Vo,C0)),!Ps&&Nt.inArray("script",Xn.dataTypes)>-1&&Nt.inArray("json",Xn.dataTypes)<0&&(Xn.converters["text script"]=function(){}),Wl=ws(Xn,Wl,Vo,Ps),Ps?(Xn.ifModified&&(Cl=Vo.getResponseHeader("Last-Modified"),Cl&&(Nt.lastModified[Wr]=Cl),Cl=Vo.getResponseHeader("etag"),Cl&&(Nt.etag[Wr]=Cl)),Yo===204||Xn.type==="HEAD"?Hs="nocontent":Yo===304?Hs="notmodified":(Hs=Wl.state,h0=Wl.data,Us=Wl.error,Ps=!Us)):(Us=Hs,(Yo||!Hs)&&(Hs="error",Yo<0&&(Yo=0))),Vo.status=Yo,Vo.statusText=(ds||Hs)+"",Ps?wo.resolveWith(co,[h0,Hs,Vo]):wo.rejectWith(co,[Vo,Hs,Us]),Vo.statusCode(Cs),Cs=void 0,Fn&&bo.trigger(Ps?"ajaxSuccess":"ajaxError",[Vo,Xn,Ps?h0:Us]),Lo.fireWith(co,[Vo,Hs]),Fn&&(bo.trigger("ajaxComplete",[Vo,Xn]),--Nt.active||Nt.event.trigger("ajaxStop")))}return Vo},getJSON:function(pr,vr,Lr){return Nt.get(pr,vr,Lr,"json")},getScript:function(pr,vr){return Nt.get(pr,void 0,vr,"script")}}),Nt.each(["get","post"],function(pr,vr){Nt[vr]=function(Lr,Wr,on,sn){return Rt(Wr)&&(sn=sn||on,on=Wr,Wr=void 0),Nt.ajax(Nt.extend({url:Lr,type:vr,dataType:sn,data:Wr,success:on},Nt.isPlainObject(Lr)&&Lr))}}),Nt.ajaxPrefilter(function(pr){var vr;for(vr in pr.headers)vr.toLowerCase()==="content-type"&&(pr.contentType=pr.headers[vr]||"")}),Nt._evalUrl=function(pr,vr,Lr){return Nt.ajax({url:pr,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Wr){Nt.globalEval(Wr,vr,Lr)}})},Nt.fn.extend({wrapAll:function(pr){var vr;return this[0]&&(Rt(pr)&&(pr=pr.call(this[0])),vr=Nt(pr,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&vr.insertBefore(this[0]),vr.map(function(){for(var Lr=this;Lr.firstElementChild;)Lr=Lr.firstElementChild;return Lr}).append(this)),this},wrapInner:function(pr){return Rt(pr)?this.each(function(vr){Nt(this).wrapInner(pr.call(this,vr))}):this.each(function(){var vr=Nt(this),Lr=vr.contents();Lr.length?Lr.wrapAll(pr):vr.append(pr)})},wrap:function(pr){var vr=Rt(pr);return this.each(function(Lr){Nt(this).wrapAll(vr?pr.call(this,Lr):pr)})},unwrap:function(pr){return this.parent(pr).not("body").each(function(){Nt(this).replaceWith(this.childNodes)}),this}}),Nt.expr.pseudos.hidden=function(pr){return!Nt.expr.pseudos.visible(pr)},Nt.expr.pseudos.visible=function(pr){return!!(pr.offsetWidth||pr.offsetHeight||pr.getClientRects().length)},Nt.ajaxSettings.xhr=function(){try{return new tt.XMLHttpRequest}catch{}};var su={0:200,1223:204},ys=Nt.ajaxSettings.xhr();At.cors=!!ys&&"withCredentials"in ys,At.ajax=ys=!!ys,Nt.ajaxTransport(function(pr){var vr,Lr;if(At.cors||ys&&!pr.crossDomain)return{send:function(Wr,on){var sn,dn=pr.xhr();if(dn.open(pr.type,pr.url,pr.async,pr.username,pr.password),pr.xhrFields)for(sn in pr.xhrFields)dn[sn]=pr.xhrFields[sn];pr.mimeType&&dn.overrideMimeType&&dn.overrideMimeType(pr.mimeType),!pr.crossDomain&&!Wr["X-Requested-With"]&&(Wr["X-Requested-With"]="XMLHttpRequest");for(sn in Wr)dn.setRequestHeader(sn,Wr[sn]);vr=function(zn){return function(){vr&&(vr=Lr=dn.onload=dn.onerror=dn.onabort=dn.ontimeout=dn.onreadystatechange=null,zn==="abort"?dn.abort():zn==="error"?typeof dn.status!="number"?on(0,"error"):on(dn.status,dn.statusText):on(su[dn.status]||dn.status,dn.statusText,(dn.responseType||"text")!=="text"||typeof dn.responseText!="string"?{binary:dn.response}:{text:dn.responseText},dn.getAllResponseHeaders()))}},dn.onload=vr(),Lr=dn.onerror=dn.ontimeout=vr("error"),dn.onabort!==void 0?dn.onabort=Lr:dn.onreadystatechange=function(){dn.readyState===4&&tt.setTimeout(function(){vr&&Lr()})},vr=vr("abort");try{dn.send(pr.hasContent&&pr.data||null)}catch(zn){if(vr)throw zn}},abort:function(){vr&&vr()}}}),Nt.ajaxPrefilter(function(pr){pr.crossDomain&&(pr.contents.script=!1)}),Nt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(pr){return Nt.globalEval(pr),pr}}}),Nt.ajaxPrefilter("script",function(pr){pr.cache===void 0&&(pr.cache=!1),pr.crossDomain&&(pr.type="GET")}),Nt.ajaxTransport("script",function(pr){if(pr.crossDomain||pr.scriptAttrs){var vr,Lr;return{send:function(Wr,on){vr=Nt("<script>").attr(pr.scriptAttrs||{}).prop({charset:pr.scriptCharset,src:pr.url}).on("load error",Lr=function(sn){vr.remove(),Lr=null,sn&&on(sn.type==="error"?404:200,sn.type)}),Tt.head.appendChild(vr[0])},abort:function(){Lr&&Lr()}}}});var r1=[],Sl=/(=)\?(?=&|$)|\?\?/;Nt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var pr=r1.pop()||Nt.expando+"_"+xa.guid++;return this[pr]=!0,pr}}),Nt.ajaxPrefilter("json jsonp",function(pr,vr,Lr){var Wr,on,sn,dn=pr.jsonp!==!1&&(Sl.test(pr.url)?"url":typeof pr.data=="string"&&(pr.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Sl.test(pr.data)&&"data");if(dn||pr.dataTypes[0]==="jsonp")return Wr=pr.jsonpCallback=Rt(pr.jsonpCallback)?pr.jsonpCallback():pr.jsonpCallback,dn?pr[dn]=pr[dn].replace(Sl,"$1"+Wr):pr.jsonp!==!1&&(pr.url+=(Bl.test(pr.url)?"&":"?")+pr.jsonp+"="+Wr),pr.converters["script json"]=function(){return sn||Nt.error(Wr+" was not called"),sn[0]},pr.dataTypes[0]="json",on=tt[Wr],tt[Wr]=function(){sn=arguments},Lr.always(function(){on===void 0?Nt(tt).removeProp(Wr):tt[Wr]=on,pr[Wr]&&(pr.jsonpCallback=vr.jsonpCallback,r1.push(Wr)),sn&&Rt(on)&&on(sn[0]),sn=on=void 0}),"script"}),At.createHTMLDocument=function(){var pr=Tt.implementation.createHTMLDocument("").body;return pr.innerHTML="<form></form><form></form>",pr.childNodes.length===2}(),Nt.parseHTML=function(pr,vr,Lr){if(typeof pr!="string")return[];typeof vr=="boolean"&&(Lr=vr,vr=!1);var Wr,on,sn;return vr||(At.createHTMLDocument?(vr=Tt.implementation.createHTMLDocument(""),Wr=vr.createElement("base"),Wr.href=Tt.location.href,vr.head.appendChild(Wr)):vr=Tt),on=Xt.exec(pr),sn=!Lr&&[],on?[vr.createElement(on[1])]:(on=Tr([pr],vr,sn),sn&&sn.length&&Nt(sn).remove(),Nt.merge([],on.childNodes))},Nt.fn.load=function(pr,vr,Lr){var Wr,on,sn,dn=this,zn=pr.indexOf(" ");return zn>-1&&(Wr=Ns(pr.slice(zn)),pr=pr.slice(0,zn)),Rt(vr)?(Lr=vr,vr=void 0):vr&&typeof vr=="object"&&(on="POST"),dn.length>0&&Nt.ajax({url:pr,type:on||"GET",dataType:"html",data:vr}).done(function(_n){sn=arguments,dn.html(Wr?Nt("<div>").append(Nt.parseHTML(_n)).find(Wr):_n)}).always(Lr&&function(_n,Fn){dn.each(function(){Lr.apply(this,sn||[_n.responseText,Fn,_n])})}),this},Nt.expr.pseudos.animated=function(pr){return Nt.grep(Nt.timers,function(vr){return pr===vr.elem}).length},Nt.offset={setOffset:function(pr,vr,Lr){var Wr,on,sn,dn,zn,_n,Fn,Jn=Nt.css(pr,"position"),ro=Nt(pr),Xn={};Jn==="static"&&(pr.style.position="relative"),zn=ro.offset(),sn=Nt.css(pr,"top"),_n=Nt.css(pr,"left"),Fn=(Jn==="absolute"||Jn==="fixed")&&(sn+_n).indexOf("auto")>-1,Fn?(Wr=ro.position(),dn=Wr.top,on=Wr.left):(dn=parseFloat(sn)||0,on=parseFloat(_n)||0),Rt(vr)&&(vr=vr.call(pr,Lr,Nt.extend({},zn))),vr.top!=null&&(Xn.top=vr.top-zn.top+dn),vr.left!=null&&(Xn.left=vr.left-zn.left+on),"using"in vr?vr.using.call(pr,Xn):ro.css(Xn)}},Nt.fn.extend({offset:function(pr){if(arguments.length)return pr===void 0?this:this.each(function(on){Nt.offset.setOffset(this,pr,on)});var vr,Lr,Wr=this[0];if(Wr)return Wr.getClientRects().length?(vr=Wr.getBoundingClientRect(),Lr=Wr.ownerDocument.defaultView,{top:vr.top+Lr.pageYOffset,left:vr.left+Lr.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var pr,vr,Lr,Wr=this[0],on={top:0,left:0};if(Nt.css(Wr,"position")==="fixed")vr=Wr.getBoundingClientRect();else{for(vr=this.offset(),Lr=Wr.ownerDocument,pr=Wr.offsetParent||Lr.documentElement;pr&&(pr===Lr.body||pr===Lr.documentElement)&&Nt.css(pr,"position")==="static";)pr=pr.parentNode;pr&&pr!==Wr&&pr.nodeType===1&&(on=Nt(pr).offset(),on.top+=Nt.css(pr,"borderTopWidth",!0),on.left+=Nt.css(pr,"borderLeftWidth",!0))}return{top:vr.top-on.top-Nt.css(Wr,"marginTop",!0),left:vr.left-on.left-Nt.css(Wr,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var pr=this.offsetParent;pr&&Nt.css(pr,"position")==="static";)pr=pr.offsetParent;return pr||cn})}}),Nt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(pr,vr){var Lr=vr==="pageYOffset";Nt.fn[pr]=function(Wr){return Rr(this,function(on,sn,dn){var zn;if(zt(on)?zn=on:on.nodeType===9&&(zn=on.defaultView),dn===void 0)return zn?zn[vr]:on[sn];zn?zn.scrollTo(Lr?zn.pageXOffset:dn,Lr?dn:zn.pageYOffset):on[sn]=dn},pr,Wr,arguments.length)}}),Nt.each(["top","left"],function(pr,vr){Nt.cssHooks[vr]=Jo(At.pixelPosition,function(Lr,Wr){if(Wr)return Wr=us(Lr,vr),ao.test(Wr)?Nt(Lr).position()[vr]+"px":Wr})}),Nt.each({Height:"height",Width:"width"},function(pr,vr){Nt.each({padding:"inner"+pr,content:vr,"":"outer"+pr},function(Lr,Wr){Nt.fn[Wr]=function(on,sn){var dn=arguments.length&&(Lr||typeof on!="boolean"),zn=Lr||(on===!0||sn===!0?"margin":"border");return Rr(this,function(_n,Fn,Jn){var ro;return zt(_n)?Wr.indexOf("outer")===0?_n["inner"+pr]:_n.document.documentElement["client"+pr]:_n.nodeType===9?(ro=_n.documentElement,Math.max(_n.body["scroll"+pr],ro["scroll"+pr],_n.body["offset"+pr],ro["offset"+pr],ro["client"+pr])):Jn===void 0?Nt.css(_n,Fn,zn):Nt.style(_n,Fn,Jn,zn)},vr,dn?on:void 0,dn)}})}),Nt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(pr,vr){Nt.fn[vr]=function(Lr){return this.on(vr,Lr)}}),Nt.fn.extend({bind:function(pr,vr,Lr){return this.on(pr,null,vr,Lr)},unbind:function(pr,vr){return this.off(pr,null,vr)},delegate:function(pr,vr,Lr,Wr){return this.on(vr,pr,Lr,Wr)},undelegate:function(pr,vr,Lr){return arguments.length===1?this.off(pr,"**"):this.off(vr,pr||"**",Lr)},hover:function(pr,vr){return this.on("mouseenter",pr).on("mouseleave",vr||pr)}}),Nt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(pr,vr){Nt.fn[vr]=function(Lr,Wr){return arguments.length>0?this.on(vr,null,Lr,Wr):this.trigger(vr)}});var hs=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Nt.proxy=function(pr,vr){var Lr,Wr,on;if(typeof vr=="string"&&(Lr=pr[vr],vr=pr,pr=Lr),!!Rt(pr))return Wr=ut.call(arguments,2),on=function(){return pr.apply(vr||this,Wr.concat(ut.call(arguments)))},on.guid=pr.guid=pr.guid||Nt.guid++,on},Nt.holdReady=function(pr){pr?Nt.readyWait++:Nt.ready(!0)},Nt.isArray=Array.isArray,Nt.parseJSON=JSON.parse,Nt.nodeName=Kt,Nt.isFunction=Rt,Nt.isWindow=zt,Nt.camelCase=kr,Nt.type=Dt,Nt.now=Date.now,Nt.isNumeric=function(pr){var vr=Nt.type(pr);return(vr==="number"||vr==="string")&&!isNaN(pr-parseFloat(pr))},Nt.trim=function(pr){return pr==null?"":(pr+"").replace(hs,"$1")};var f0=tt.jQuery,js=tt.$;return Nt.noConflict=function(pr){return tt.$===Nt&&(tt.$=js),pr&&tt.jQuery===Nt&&(tt.jQuery=f0),Nt},typeof rt>"u"&&(tt.jQuery=tt.$=Nt),Nt})})(jquery);var jqueryExports=jquery.exports;const $=getDefaultExportFromCjs$1(jqueryExports);"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(tt){if(this===void 0||this===null)throw new TypeError(this+" is not an object");var rt=Object(this),nt=Math.max(Math.min(rt.length,9007199254740991),0)||0,lt=1 in arguments&&parseInt(Number(arguments[1]),10)||0;lt=lt<0?Math.max(nt+lt,0):Math.min(lt,nt);var ut=2 in arguments&&arguments[2]!==void 0?parseInt(Number(arguments[2]),10)||0:nt;for(ut=ut<0?Math.max(nt+arguments[2],0):Math.min(ut,nt);lt<ut;)rt[lt]=tt,++lt;return rt},writable:!0});Number.isFinite=Number.isFinite||function(et){return typeof et=="number"&&isFinite(et)};Number.isInteger=Number.isInteger||function(et){return typeof et=="number"&&isFinite(et)&&Math.floor(et)===et};Number.parseFloat=Number.parseFloat||parseFloat;Number.isNaN=Number.isNaN||function(et){return et!==et};Math.trunc=Math.trunc||function(et){return et<0?Math.ceil(et):Math.floor(et)};var NumberUtil=function(){};NumberUtil.prototype.interfaces_=function(){return[]};NumberUtil.prototype.getClass=function(){return NumberUtil};NumberUtil.prototype.equalsWithTolerance=function(tt,rt,nt){return Math.abs(tt-rt)<=nt};var IllegalArgumentException=function(et){function tt(rt){et.call(this,rt),this.name="IllegalArgumentException",this.message=rt,this.stack=new et().stack}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt}(Error),Double=function(){},staticAccessors$1={MAX_VALUE:{configurable:!0}};Double.isNaN=function(tt){return Number.isNaN(tt)};Double.doubleToLongBits=function(tt){return tt};Double.longBitsToDouble=function(tt){return tt};Double.isInfinite=function(tt){return!Number.isFinite(tt)};staticAccessors$1.MAX_VALUE.get=function(){return Number.MAX_VALUE};Object.defineProperties(Double,staticAccessors$1);var Comparable=function(){},Clonable=function(){},Comparator=function(){};function Serializable(){}var Coordinate=function et(){if(this.x=null,this.y=null,this.z=null,arguments.length===0)this.x=0,this.y=0,this.z=et.NULL_ORDINATE;else if(arguments.length===1){var tt=arguments[0];this.x=tt.x,this.y=tt.y,this.z=tt.z}else arguments.length===2?(this.x=arguments[0],this.y=arguments[1],this.z=et.NULL_ORDINATE):arguments.length===3&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},staticAccessors={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};Coordinate.prototype.setOrdinate=function(tt,rt){switch(tt){case Coordinate.X:this.x=rt;break;case Coordinate.Y:this.y=rt;break;case Coordinate.Z:this.z=rt;break;default:throw new IllegalArgumentException("Invalid ordinate index: "+tt)}};Coordinate.prototype.equals2D=function(){if(arguments.length===1){var tt=arguments[0];return!(this.x!==tt.x||this.y!==tt.y)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];return!(!NumberUtil.equalsWithTolerance(this.x,rt.x,nt)||!NumberUtil.equalsWithTolerance(this.y,rt.y,nt))}};Coordinate.prototype.getOrdinate=function(tt){switch(tt){case Coordinate.X:return this.x;case Coordinate.Y:return this.y;case Coordinate.Z:return this.z}throw new IllegalArgumentException("Invalid ordinate index: "+tt)};Coordinate.prototype.equals3D=function(tt){return this.x===tt.x&&this.y===tt.y&&(this.z===tt.z||Double.isNaN(this.z))&&Double.isNaN(tt.z)};Coordinate.prototype.equals=function(tt){return tt instanceof Coordinate?this.equals2D(tt):!1};Coordinate.prototype.equalInZ=function(tt,rt){return NumberUtil.equalsWithTolerance(this.z,tt.z,rt)};Coordinate.prototype.compareTo=function(tt){var rt=tt;return this.x<rt.x?-1:this.x>rt.x?1:this.y<rt.y?-1:this.y>rt.y?1:0};Coordinate.prototype.clone=function(){};Coordinate.prototype.copy=function(){return new Coordinate(this)};Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"};Coordinate.prototype.distance3D=function(tt){var rt=this.x-tt.x,nt=this.y-tt.y,lt=this.z-tt.z;return Math.sqrt(rt*rt+nt*nt+lt*lt)};Coordinate.prototype.distance=function(tt){var rt=this.x-tt.x,nt=this.y-tt.y;return Math.sqrt(rt*rt+nt*nt)};Coordinate.prototype.hashCode=function(){var tt=17;return tt=37*tt+Coordinate.hashCode(this.x),tt=37*tt+Coordinate.hashCode(this.y),tt};Coordinate.prototype.setCoordinate=function(tt){this.x=tt.x,this.y=tt.y,this.z=tt.z};Coordinate.prototype.interfaces_=function(){return[Comparable,Clonable,Serializable]};Coordinate.prototype.getClass=function(){return Coordinate};Coordinate.hashCode=function(){if(arguments.length===1){var tt=arguments[0],rt=Double.doubleToLongBits(tt);return Math.trunc((rt^rt)>>>32)}};staticAccessors.DimensionalComparator.get=function(){return DimensionalComparator};staticAccessors.serialVersionUID.get=function(){return 6683108902428367e3};staticAccessors.NULL_ORDINATE.get=function(){return Double.NaN};staticAccessors.X.get=function(){return 0};staticAccessors.Y.get=function(){return 1};staticAccessors.Z.get=function(){return 2};Object.defineProperties(Coordinate,staticAccessors);var DimensionalComparator=function(tt){if(this._dimensionsToTest=2,arguments.length!==0){if(arguments.length===1){var rt=arguments[0];if(rt!==2&&rt!==3)throw new IllegalArgumentException("only 2 or 3 dimensions may be specified");this._dimensionsToTest=rt}}};DimensionalComparator.prototype.compare=function(tt,rt){var nt=tt,lt=rt,ut=DimensionalComparator.compare(nt.x,lt.x);if(ut!==0)return ut;var dt=DimensionalComparator.compare(nt.y,lt.y);if(dt!==0)return dt;if(this._dimensionsToTest<=2)return 0;var pt=DimensionalComparator.compare(nt.z,lt.z);return pt};DimensionalComparator.prototype.interfaces_=function(){return[Comparator]};DimensionalComparator.prototype.getClass=function(){return DimensionalComparator};DimensionalComparator.compare=function(tt,rt){return tt<rt?-1:tt>rt?1:Double.isNaN(tt)?Double.isNaN(rt)?0:-1:Double.isNaN(rt)?1:0};var CoordinateSequenceFactory=function(){};CoordinateSequenceFactory.prototype.create=function(){};CoordinateSequenceFactory.prototype.interfaces_=function(){return[]};CoordinateSequenceFactory.prototype.getClass=function(){return CoordinateSequenceFactory};var Location=function(){},staticAccessors$4={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};Location.prototype.interfaces_=function(){return[]};Location.prototype.getClass=function(){return Location};Location.toLocationSymbol=function(tt){switch(tt){case Location.EXTERIOR:return"e";case Location.BOUNDARY:return"b";case Location.INTERIOR:return"i";case Location.NONE:return"-"}throw new IllegalArgumentException("Unknown location value: "+tt)};staticAccessors$4.INTERIOR.get=function(){return 0};staticAccessors$4.BOUNDARY.get=function(){return 1};staticAccessors$4.EXTERIOR.get=function(){return 2};staticAccessors$4.NONE.get=function(){return-1};Object.defineProperties(Location,staticAccessors$4);var hasInterface=function(et,tt){return et.interfaces_&&et.interfaces_().indexOf(tt)>-1},MathUtil=function(){},staticAccessors$5={LOG_10:{configurable:!0}};MathUtil.prototype.interfaces_=function(){return[]};MathUtil.prototype.getClass=function(){return MathUtil};MathUtil.log10=function(tt){var rt=Math.log(tt);return Double.isInfinite(rt)||Double.isNaN(rt)?rt:rt/MathUtil.LOG_10};MathUtil.min=function(tt,rt,nt,lt){var ut=tt;return rt<ut&&(ut=rt),nt<ut&&(ut=nt),lt<ut&&(ut=lt),ut};MathUtil.clamp=function(){if(typeof arguments[2]=="number"&&typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var tt=arguments[0],rt=arguments[1],nt=arguments[2];return tt<rt?rt:tt>nt?nt:tt}else if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var lt=arguments[0],ut=arguments[1],dt=arguments[2];return lt<ut?ut:lt>dt?dt:lt}};MathUtil.wrap=function(tt,rt){return tt<0?rt- -tt%rt:tt%rt};MathUtil.max=function(){if(arguments.length===3){var tt=arguments[0],rt=arguments[1],nt=arguments[2],lt=tt;return rt>lt&&(lt=rt),nt>lt&&(lt=nt),lt}else if(arguments.length===4){var ut=arguments[0],dt=arguments[1],pt=arguments[2],ht=arguments[3],mt=ut;return dt>mt&&(mt=dt),pt>mt&&(mt=pt),ht>mt&&(mt=ht),mt}};MathUtil.average=function(tt,rt){return(tt+rt)/2};staticAccessors$5.LOG_10.get=function(){return Math.log(10)};Object.defineProperties(MathUtil,staticAccessors$5);var StringBuffer=function(tt){this.str=tt};StringBuffer.prototype.append=function(tt){this.str+=tt};StringBuffer.prototype.setCharAt=function(tt,rt){this.str=this.str.substr(0,tt)+rt+this.str.substr(tt+1)};StringBuffer.prototype.toString=function(tt){return this.str};var Integer=function(tt){this.value=tt};Integer.prototype.intValue=function(){return this.value};Integer.prototype.compareTo=function(tt){return this.value<tt?-1:this.value>tt?1:0};Integer.isNaN=function(tt){return Number.isNaN(tt)};var Character=function(){};Character.isWhitespace=function(tt){return tt<=32&&tt>=0||tt===127};Character.toUpperCase=function(tt){return tt.toUpperCase()};var DD=function et(){if(this._hi=0,this._lo=0,arguments.length===0)this.init(0);else if(arguments.length===1){if(typeof arguments[0]=="number"){var tt=arguments[0];this.init(tt)}else if(arguments[0]instanceof et){var rt=arguments[0];this.init(rt)}else if(typeof arguments[0]=="string"){var nt=arguments[0];et.call(this,et.parse(nt))}}else if(arguments.length===2){var lt=arguments[0],ut=arguments[1];this.init(lt,ut)}},staticAccessors$7={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};DD.prototype.le=function(tt){return(this._hi<tt._hi||this._hi===tt._hi)&&this._lo<=tt._lo};DD.prototype.extractSignificantDigits=function(tt,rt){var nt=this.abs(),lt=DD.magnitude(nt._hi),ut=DD.TEN.pow(lt);nt=nt.divide(ut),nt.gt(DD.TEN)?(nt=nt.divide(DD.TEN),lt+=1):nt.lt(DD.ONE)&&(nt=nt.multiply(DD.TEN),lt-=1);for(var dt=lt+1,pt=new StringBuffer,ht=DD.MAX_PRINT_DIGITS-1,mt=0;mt<=ht;mt++){tt&&mt===dt&&pt.append(".");var xt=Math.trunc(nt._hi);if(xt<0)break;var Mt=!1,vt=0;xt>9?(Mt=!0,vt="9"):vt="0"+xt,pt.append(vt),nt=nt.subtract(DD.valueOf(xt)).multiply(DD.TEN),Mt&&nt.selfAdd(DD.TEN);var Ot=!0,At=DD.magnitude(nt._hi);if(At<0&&Math.abs(At)>=ht-mt&&(Ot=!1),!Ot)break}return rt[0]=lt,pt.toString()};DD.prototype.sqr=function(){return this.multiply(this)};DD.prototype.doubleValue=function(){return this._hi+this._lo};DD.prototype.subtract=function(){if(arguments[0]instanceof DD){var tt=arguments[0];return this.add(tt.negate())}else if(typeof arguments[0]=="number"){var rt=arguments[0];return this.add(-rt)}};DD.prototype.equals=function(){if(arguments.length===1){var tt=arguments[0];return this._hi===tt._hi&&this._lo===tt._lo}};DD.prototype.isZero=function(){return this._hi===0&&this._lo===0};DD.prototype.selfSubtract=function(){if(arguments[0]instanceof DD){var tt=arguments[0];return this.isNaN()?this:this.selfAdd(-tt._hi,-tt._lo)}else if(typeof arguments[0]=="number"){var rt=arguments[0];return this.isNaN()?this:this.selfAdd(-rt,0)}};DD.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null};DD.prototype.min=function(tt){return this.le(tt)?this:tt};DD.prototype.selfDivide=function(){if(arguments.length===1){if(arguments[0]instanceof DD){var tt=arguments[0];return this.selfDivide(tt._hi,tt._lo)}else if(typeof arguments[0]=="number"){var rt=arguments[0];return this.selfDivide(rt,0)}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1],ut=null,dt=null,pt=null,ht=null,mt=null,xt=null,Mt=null,vt=null;return mt=this._hi/nt,xt=DD.SPLIT*mt,ut=xt-mt,vt=DD.SPLIT*nt,ut=xt-ut,dt=mt-ut,pt=vt-nt,Mt=mt*nt,pt=vt-pt,ht=nt-pt,vt=ut*pt-Mt+ut*ht+dt*pt+dt*ht,xt=(this._hi-Mt-vt+this._lo-mt*lt)/nt,vt=mt+xt,this._hi=vt,this._lo=mt-vt+xt,this}};DD.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"};DD.prototype.divide=function(){if(arguments[0]instanceof DD){var tt=arguments[0],rt=null,nt=null,lt=null,ut=null,dt=null,pt=null,ht=null,mt=null;dt=this._hi/tt._hi,pt=DD.SPLIT*dt,rt=pt-dt,mt=DD.SPLIT*tt._hi,rt=pt-rt,nt=dt-rt,lt=mt-tt._hi,ht=dt*tt._hi,lt=mt-lt,ut=tt._hi-lt,mt=rt*lt-ht+rt*ut+nt*lt+nt*ut,pt=(this._hi-ht-mt+this._lo-dt*tt._lo)/tt._hi,mt=dt+pt;var xt=mt,Mt=dt-mt+pt;return new DD(xt,Mt)}else if(typeof arguments[0]=="number"){var vt=arguments[0];return Double.isNaN(vt)?DD.createNaN():DD.copy(this).selfDivide(vt,0)}};DD.prototype.ge=function(tt){return(this._hi>tt._hi||this._hi===tt._hi)&&this._lo>=tt._lo};DD.prototype.pow=function(tt){if(tt===0)return DD.valueOf(1);var rt=new DD(this),nt=DD.valueOf(1),lt=Math.abs(tt);if(lt>1)for(;lt>0;)lt%2===1&&nt.selfMultiply(rt),lt/=2,lt>0&&(rt=rt.sqr());else nt=rt;return tt<0?nt.reciprocal():nt};DD.prototype.ceil=function(){if(this.isNaN())return DD.NaN;var tt=Math.ceil(this._hi),rt=0;return tt===this._hi&&(rt=Math.ceil(this._lo)),new DD(tt,rt)};DD.prototype.compareTo=function(tt){var rt=tt;return this._hi<rt._hi?-1:this._hi>rt._hi?1:this._lo<rt._lo?-1:this._lo>rt._lo?1:0};DD.prototype.rint=function(){if(this.isNaN())return this;var tt=this.add(.5);return tt.floor()};DD.prototype.setValue=function(){if(arguments[0]instanceof DD){var tt=arguments[0];return this.init(tt),this}else if(typeof arguments[0]=="number"){var rt=arguments[0];return this.init(rt),this}};DD.prototype.max=function(tt){return this.ge(tt)?this:tt};DD.prototype.sqrt=function(){if(this.isZero())return DD.valueOf(0);if(this.isNegative())return DD.NaN;var tt=1/Math.sqrt(this._hi),rt=this._hi*tt,nt=DD.valueOf(rt),lt=this.subtract(nt.sqr()),ut=lt._hi*(tt*.5);return nt.add(ut)};DD.prototype.selfAdd=function(){if(arguments.length===1){if(arguments[0]instanceof DD){var tt=arguments[0];return this.selfAdd(tt._hi,tt._lo)}else if(typeof arguments[0]=="number"){var rt=arguments[0],nt=null,lt=null,ut=null,dt=null,pt=null,ht=null;return ut=this._hi+rt,pt=ut-this._hi,dt=ut-pt,dt=rt-pt+(this._hi-dt),ht=dt+this._lo,nt=ut+ht,lt=ht+(ut-nt),this._hi=nt+lt,this._lo=lt+(nt-this._hi),this}}else if(arguments.length===2){var mt=arguments[0],xt=arguments[1],Mt=null,vt=null,Ot=null,At=null,Rt=null,zt=null,Tt=null,Ct=null;Rt=this._hi+mt,Ot=this._lo+xt,Tt=Rt-this._hi,Ct=Ot-this._lo,zt=Rt-Tt,At=Ot-Ct,zt=mt-Tt+(this._hi-zt),At=xt-Ct+(this._lo-At),Tt=zt+Ot,Mt=Rt+Tt,vt=Tt+(Rt-Mt),Tt=At+vt;var It=Mt+Tt,Dt=Tt+(Mt-It);return this._hi=It,this._lo=Dt,this}};DD.prototype.selfMultiply=function(){if(arguments.length===1){if(arguments[0]instanceof DD){var tt=arguments[0];return this.selfMultiply(tt._hi,tt._lo)}else if(typeof arguments[0]=="number"){var rt=arguments[0];return this.selfMultiply(rt,0)}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1],ut=null,dt=null,pt=null,ht=null,mt=null,xt=null;mt=DD.SPLIT*this._hi,ut=mt-this._hi,xt=DD.SPLIT*nt,ut=mt-ut,dt=this._hi-ut,pt=xt-nt,mt=this._hi*nt,pt=xt-pt,ht=nt-pt,xt=ut*pt-mt+ut*ht+dt*pt+dt*ht+(this._hi*lt+this._lo*nt);var Mt=mt+xt;ut=mt-Mt;var vt=xt+ut;return this._hi=Mt,this._lo=vt,this}};DD.prototype.selfSqr=function(){return this.selfMultiply(this)};DD.prototype.floor=function(){if(this.isNaN())return DD.NaN;var tt=Math.floor(this._hi),rt=0;return tt===this._hi&&(rt=Math.floor(this._lo)),new DD(tt,rt)};DD.prototype.negate=function(){return this.isNaN()?this:new DD(-this._hi,-this._lo)};DD.prototype.clone=function(){};DD.prototype.multiply=function(){if(arguments[0]instanceof DD){var tt=arguments[0];return tt.isNaN()?DD.createNaN():DD.copy(this).selfMultiply(tt)}else if(typeof arguments[0]=="number"){var rt=arguments[0];return Double.isNaN(rt)?DD.createNaN():DD.copy(this).selfMultiply(rt,0)}};DD.prototype.isNaN=function(){return Double.isNaN(this._hi)};DD.prototype.intValue=function(){return Math.trunc(this._hi)};DD.prototype.toString=function(){var tt=DD.magnitude(this._hi);return tt>=-3&&tt<=20?this.toStandardNotation():this.toSciNotation()};DD.prototype.toStandardNotation=function(){var tt=this.getSpecialNumberString();if(tt!==null)return tt;var rt=new Array(1).fill(null),nt=this.extractSignificantDigits(!0,rt),lt=rt[0]+1,ut=nt;if(nt.charAt(0)===".")ut="0"+nt;else if(lt<0)ut="0."+DD.stringOfChar("0",-lt)+nt;else if(nt.indexOf(".")===-1){var dt=lt-nt.length,pt=DD.stringOfChar("0",dt);ut=nt+pt+".0"}return this.isNegative()?"-"+ut:ut};DD.prototype.reciprocal=function(){var tt=null,rt=null,nt=null,lt=null,ut=null,dt=null,pt=null,ht=null;ut=1/this._hi,dt=DD.SPLIT*ut,tt=dt-ut,ht=DD.SPLIT*this._hi,tt=dt-tt,rt=ut-tt,nt=ht-this._hi,pt=ut*this._hi,nt=ht-nt,lt=this._hi-nt,ht=tt*nt-pt+tt*lt+rt*nt+rt*lt,dt=(1-pt-ht-ut*this._lo)/this._hi;var mt=ut+dt,xt=ut-mt+dt;return new DD(mt,xt)};DD.prototype.toSciNotation=function(){if(this.isZero())return DD.SCI_NOT_ZERO;var tt=this.getSpecialNumberString();if(tt!==null)return tt;var rt=new Array(1).fill(null),nt=this.extractSignificantDigits(!1,rt),lt=DD.SCI_NOT_EXPONENT_CHAR+rt[0];if(nt.charAt(0)==="0")throw new Error("Found leading zero: "+nt);var ut="";nt.length>1&&(ut=nt.substring(1));var dt=nt.charAt(0)+"."+ut;return this.isNegative()?"-"+dt+lt:dt+lt};DD.prototype.abs=function(){return this.isNaN()?DD.NaN:this.isNegative()?this.negate():new DD(this)};DD.prototype.isPositive=function(){return(this._hi>0||this._hi===0)&&this._lo>0};DD.prototype.lt=function(tt){return(this._hi<tt._hi||this._hi===tt._hi)&&this._lo<tt._lo};DD.prototype.add=function(){if(arguments[0]instanceof DD){var tt=arguments[0];return DD.copy(this).selfAdd(tt)}else if(typeof arguments[0]=="number"){var rt=arguments[0];return DD.copy(this).selfAdd(rt)}};DD.prototype.init=function(){if(arguments.length===1){if(typeof arguments[0]=="number"){var tt=arguments[0];this._hi=tt,this._lo=0}else if(arguments[0]instanceof DD){var rt=arguments[0];this._hi=rt._hi,this._lo=rt._lo}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];this._hi=nt,this._lo=lt}};DD.prototype.gt=function(tt){return(this._hi>tt._hi||this._hi===tt._hi)&&this._lo>tt._lo};DD.prototype.isNegative=function(){return(this._hi<0||this._hi===0)&&this._lo<0};DD.prototype.trunc=function(){return this.isNaN()?DD.NaN:this.isPositive()?this.floor():this.ceil()};DD.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0};DD.prototype.interfaces_=function(){return[Serializable,Comparable,Clonable]};DD.prototype.getClass=function(){return DD};DD.sqr=function(tt){return DD.valueOf(tt).selfMultiply(tt)};DD.valueOf=function(){if(typeof arguments[0]=="string"){var tt=arguments[0];return DD.parse(tt)}else if(typeof arguments[0]=="number"){var rt=arguments[0];return new DD(rt)}};DD.sqrt=function(tt){return DD.valueOf(tt).sqrt()};DD.parse=function(tt){for(var rt=0,nt=tt.length;Character.isWhitespace(tt.charAt(rt));)rt++;var lt=!1;if(rt<nt){var ut=tt.charAt(rt);(ut==="-"||ut==="+")&&(rt++,ut==="-"&&(lt=!0))}for(var dt=new DD,pt=0,ht=0,mt=0;!(rt>=nt);){var xt=tt.charAt(rt);if(rt++,Character.isDigit(xt)){var Mt=xt-"0";dt.selfMultiply(DD.TEN),dt.selfAdd(Mt),pt++;continue}if(xt==="."){ht=pt;continue}if(xt==="e"||xt==="E"){var vt=tt.substring(rt);try{mt=Integer.parseInt(vt)}catch(Tt){throw Tt instanceof Error?new Error("Invalid exponent "+vt+" in string "+tt):Tt}finally{}break}throw new Error("Unexpected character '"+xt+"' at position "+rt+" in string "+tt)}var Ot=dt,At=pt-ht-mt;if(At===0)Ot=dt;else if(At>0){var Rt=DD.TEN.pow(At);Ot=dt.divide(Rt)}else if(At<0){var zt=DD.TEN.pow(-At);Ot=dt.multiply(zt)}return lt?Ot.negate():Ot};DD.createNaN=function(){return new DD(Double.NaN,Double.NaN)};DD.copy=function(tt){return new DD(tt)};DD.magnitude=function(tt){var rt=Math.abs(tt),nt=Math.log(rt)/Math.log(10),lt=Math.trunc(Math.floor(nt)),ut=Math.pow(10,lt);return ut*10<=rt&&(lt+=1),lt};DD.stringOfChar=function(tt,rt){for(var nt=new StringBuffer,lt=0;lt<rt;lt++)nt.append(tt);return nt.toString()};staticAccessors$7.PI.get=function(){return new DD(3.141592653589793,12246467991473532e-32)};staticAccessors$7.TWO_PI.get=function(){return new DD(6.283185307179586,24492935982947064e-32)};staticAccessors$7.PI_2.get=function(){return new DD(1.5707963267948966,6123233995736766e-32)};staticAccessors$7.E.get=function(){return new DD(2.718281828459045,14456468917292502e-32)};staticAccessors$7.NaN.get=function(){return new DD(Double.NaN,Double.NaN)};staticAccessors$7.EPS.get=function(){return 123259516440783e-46};staticAccessors$7.SPLIT.get=function(){return 134217729};staticAccessors$7.MAX_PRINT_DIGITS.get=function(){return 32};staticAccessors$7.TEN.get=function(){return DD.valueOf(10)};staticAccessors$7.ONE.get=function(){return DD.valueOf(1)};staticAccessors$7.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"};staticAccessors$7.SCI_NOT_ZERO.get=function(){return"0.0E0"};Object.defineProperties(DD,staticAccessors$7);var CGAlgorithmsDD=function(){},staticAccessors$6={DP_SAFE_EPSILON:{configurable:!0}};CGAlgorithmsDD.prototype.interfaces_=function(){return[]};CGAlgorithmsDD.prototype.getClass=function(){return CGAlgorithmsDD};CGAlgorithmsDD.orientationIndex=function(tt,rt,nt){var lt=CGAlgorithmsDD.orientationIndexFilter(tt,rt,nt);if(lt<=1)return lt;var ut=DD.valueOf(rt.x).selfAdd(-tt.x),dt=DD.valueOf(rt.y).selfAdd(-tt.y),pt=DD.valueOf(nt.x).selfAdd(-rt.x),ht=DD.valueOf(nt.y).selfAdd(-rt.y);return ut.selfMultiply(ht).selfSubtract(dt.selfMultiply(pt)).signum()};CGAlgorithmsDD.signOfDet2x2=function(tt,rt,nt,lt){var ut=tt.multiply(lt).selfSubtract(rt.multiply(nt));return ut.signum()};CGAlgorithmsDD.intersection=function(tt,rt,nt,lt){var ut=DD.valueOf(lt.y).selfSubtract(nt.y).selfMultiply(DD.valueOf(rt.x).selfSubtract(tt.x)),dt=DD.valueOf(lt.x).selfSubtract(nt.x).selfMultiply(DD.valueOf(rt.y).selfSubtract(tt.y)),pt=ut.subtract(dt),ht=DD.valueOf(lt.x).selfSubtract(nt.x).selfMultiply(DD.valueOf(tt.y).selfSubtract(nt.y)),mt=DD.valueOf(lt.y).selfSubtract(nt.y).selfMultiply(DD.valueOf(tt.x).selfSubtract(nt.x)),xt=ht.subtract(mt),Mt=xt.selfDivide(pt).doubleValue(),vt=DD.valueOf(tt.x).selfAdd(DD.valueOf(rt.x).selfSubtract(tt.x).selfMultiply(Mt)).doubleValue(),Ot=DD.valueOf(rt.x).selfSubtract(tt.x).selfMultiply(DD.valueOf(tt.y).selfSubtract(nt.y)),At=DD.valueOf(rt.y).selfSubtract(tt.y).selfMultiply(DD.valueOf(tt.x).selfSubtract(nt.x)),Rt=Ot.subtract(At),zt=Rt.selfDivide(pt).doubleValue(),Tt=DD.valueOf(nt.y).selfAdd(DD.valueOf(lt.y).selfSubtract(nt.y).selfMultiply(zt)).doubleValue();return new Coordinate(vt,Tt)};CGAlgorithmsDD.orientationIndexFilter=function(tt,rt,nt){var lt=null,ut=(tt.x-nt.x)*(rt.y-nt.y),dt=(tt.y-nt.y)*(rt.x-nt.x),pt=ut-dt;if(ut>0){if(dt<=0)return CGAlgorithmsDD.signum(pt);lt=ut+dt}else if(ut<0){if(dt>=0)return CGAlgorithmsDD.signum(pt);lt=-ut-dt}else return CGAlgorithmsDD.signum(pt);var ht=CGAlgorithmsDD.DP_SAFE_EPSILON*lt;return pt>=ht||-pt>=ht?CGAlgorithmsDD.signum(pt):2};CGAlgorithmsDD.signum=function(tt){return tt>0?1:tt<0?-1:0};staticAccessors$6.DP_SAFE_EPSILON.get=function(){return 1e-15};Object.defineProperties(CGAlgorithmsDD,staticAccessors$6);var CoordinateSequence=function(){},staticAccessors$8={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};staticAccessors$8.X.get=function(){return 0};staticAccessors$8.Y.get=function(){return 1};staticAccessors$8.Z.get=function(){return 2};staticAccessors$8.M.get=function(){return 3};CoordinateSequence.prototype.setOrdinate=function(tt,rt,nt){};CoordinateSequence.prototype.size=function(){};CoordinateSequence.prototype.getOrdinate=function(tt,rt){};CoordinateSequence.prototype.getCoordinate=function(){};CoordinateSequence.prototype.getCoordinateCopy=function(tt){};CoordinateSequence.prototype.getDimension=function(){};CoordinateSequence.prototype.getX=function(tt){};CoordinateSequence.prototype.clone=function(){};CoordinateSequence.prototype.expandEnvelope=function(tt){};CoordinateSequence.prototype.copy=function(){};CoordinateSequence.prototype.getY=function(tt){};CoordinateSequence.prototype.toCoordinateArray=function(){};CoordinateSequence.prototype.interfaces_=function(){return[Clonable]};CoordinateSequence.prototype.getClass=function(){return CoordinateSequence};Object.defineProperties(CoordinateSequence,staticAccessors$8);var Exception=function(){},NotRepresentableException=function(et){function tt(){et.call(this,"Projective point not representable on the Cartesian plane.")}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(Exception),System=function(){};System.arraycopy=function(tt,rt,nt,lt,ut){for(var dt=0,pt=rt;pt<rt+ut;pt++)nt[lt+dt]=tt[pt],dt++};System.getProperty=function(tt){return{"line.separator":`
`}[tt]};var HCoordinate=function et(){if(this.x=null,this.y=null,this.w=null,arguments.length===0)this.x=0,this.y=0,this.w=1;else if(arguments.length===1){var tt=arguments[0];this.x=tt.x,this.y=tt.y,this.w=1}else if(arguments.length===2){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var rt=arguments[0],nt=arguments[1];this.x=rt,this.y=nt,this.w=1}else if(arguments[0]instanceof et&&arguments[1]instanceof et){var lt=arguments[0],ut=arguments[1];this.x=lt.y*ut.w-ut.y*lt.w,this.y=ut.x*lt.w-lt.x*ut.w,this.w=lt.x*ut.y-ut.x*lt.y}else if(arguments[0]instanceof Coordinate&&arguments[1]instanceof Coordinate){var dt=arguments[0],pt=arguments[1];this.x=dt.y-pt.y,this.y=pt.x-dt.x,this.w=dt.x*pt.y-pt.x*dt.y}}else if(arguments.length===3){var ht=arguments[0],mt=arguments[1],xt=arguments[2];this.x=ht,this.y=mt,this.w=xt}else if(arguments.length===4){var Mt=arguments[0],vt=arguments[1],Ot=arguments[2],At=arguments[3],Rt=Mt.y-vt.y,zt=vt.x-Mt.x,Tt=Mt.x*vt.y-vt.x*Mt.y,Ct=Ot.y-At.y,It=At.x-Ot.x,Dt=Ot.x*At.y-At.x*Ot.y;this.x=zt*Dt-It*Tt,this.y=Ct*Tt-Rt*Dt,this.w=Rt*It-Ct*zt}};HCoordinate.prototype.getY=function(){var tt=this.y/this.w;if(Double.isNaN(tt)||Double.isInfinite(tt))throw new NotRepresentableException;return tt};HCoordinate.prototype.getX=function(){var tt=this.x/this.w;if(Double.isNaN(tt)||Double.isInfinite(tt))throw new NotRepresentableException;return tt};HCoordinate.prototype.getCoordinate=function(){var tt=new Coordinate;return tt.x=this.getX(),tt.y=this.getY(),tt};HCoordinate.prototype.interfaces_=function(){return[]};HCoordinate.prototype.getClass=function(){return HCoordinate};HCoordinate.intersection=function(tt,rt,nt,lt){var ut=tt.y-rt.y,dt=rt.x-tt.x,pt=tt.x*rt.y-rt.x*tt.y,ht=nt.y-lt.y,mt=lt.x-nt.x,xt=nt.x*lt.y-lt.x*nt.y,Mt=dt*xt-mt*pt,vt=ht*pt-ut*xt,Ot=ut*mt-ht*dt,At=Mt/Ot,Rt=vt/Ot;if(Double.isNaN(At)||Double.isInfinite(At)||Double.isNaN(Rt)||Double.isInfinite(Rt))throw new NotRepresentableException;return new Coordinate(At,Rt)};var Envelope=function et(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,arguments.length===0)this.init();else if(arguments.length===1){if(arguments[0]instanceof Coordinate){var tt=arguments[0];this.init(tt.x,tt.x,tt.y,tt.y)}else if(arguments[0]instanceof et){var rt=arguments[0];this.init(rt)}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];this.init(nt.x,lt.x,nt.y,lt.y)}else if(arguments.length===4){var ut=arguments[0],dt=arguments[1],pt=arguments[2],ht=arguments[3];this.init(ut,dt,pt,ht)}},staticAccessors$9={serialVersionUID:{configurable:!0}};Envelope.prototype.getArea=function(){return this.getWidth()*this.getHeight()};Envelope.prototype.equals=function(tt){if(!(tt instanceof Envelope))return!1;var rt=tt;return this.isNull()?rt.isNull():this._maxx===rt.getMaxX()&&this._maxy===rt.getMaxY()&&this._minx===rt.getMinX()&&this._miny===rt.getMinY()};Envelope.prototype.intersection=function(tt){if(this.isNull()||tt.isNull()||!this.intersects(tt))return new Envelope;var rt=this._minx>tt._minx?this._minx:tt._minx,nt=this._miny>tt._miny?this._miny:tt._miny,lt=this._maxx<tt._maxx?this._maxx:tt._maxx,ut=this._maxy<tt._maxy?this._maxy:tt._maxy;return new Envelope(rt,lt,nt,ut)};Envelope.prototype.isNull=function(){return this._maxx<this._minx};Envelope.prototype.getMaxX=function(){return this._maxx};Envelope.prototype.covers=function(){if(arguments.length===1){if(arguments[0]instanceof Coordinate){var tt=arguments[0];return this.covers(tt.x,tt.y)}else if(arguments[0]instanceof Envelope){var rt=arguments[0];return this.isNull()||rt.isNull()?!1:rt.getMinX()>=this._minx&&rt.getMaxX()<=this._maxx&&rt.getMinY()>=this._miny&&rt.getMaxY()<=this._maxy}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];return this.isNull()?!1:nt>=this._minx&&nt<=this._maxx&&lt>=this._miny&&lt<=this._maxy}};Envelope.prototype.intersects=function(){if(arguments.length===1){if(arguments[0]instanceof Envelope){var tt=arguments[0];return this.isNull()||tt.isNull()?!1:!(tt._minx>this._maxx||tt._maxx<this._minx||tt._miny>this._maxy||tt._maxy<this._miny)}else if(arguments[0]instanceof Coordinate){var rt=arguments[0];return this.intersects(rt.x,rt.y)}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];return this.isNull()?!1:!(nt>this._maxx||nt<this._minx||lt>this._maxy||lt<this._miny)}};Envelope.prototype.getMinY=function(){return this._miny};Envelope.prototype.getMinX=function(){return this._minx};Envelope.prototype.expandToInclude=function(){if(arguments.length===1){if(arguments[0]instanceof Coordinate){var tt=arguments[0];this.expandToInclude(tt.x,tt.y)}else if(arguments[0]instanceof Envelope){var rt=arguments[0];if(rt.isNull())return null;this.isNull()?(this._minx=rt.getMinX(),this._maxx=rt.getMaxX(),this._miny=rt.getMinY(),this._maxy=rt.getMaxY()):(rt._minx<this._minx&&(this._minx=rt._minx),rt._maxx>this._maxx&&(this._maxx=rt._maxx),rt._miny<this._miny&&(this._miny=rt._miny),rt._maxy>this._maxy&&(this._maxy=rt._maxy))}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];this.isNull()?(this._minx=nt,this._maxx=nt,this._miny=lt,this._maxy=lt):(nt<this._minx&&(this._minx=nt),nt>this._maxx&&(this._maxx=nt),lt<this._miny&&(this._miny=lt),lt>this._maxy&&(this._maxy=lt))}};Envelope.prototype.minExtent=function(){if(this.isNull())return 0;var tt=this.getWidth(),rt=this.getHeight();return tt<rt?tt:rt};Envelope.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx};Envelope.prototype.compareTo=function(tt){var rt=tt;return this.isNull()?rt.isNull()?0:-1:rt.isNull()?1:this._minx<rt._minx?-1:this._minx>rt._minx?1:this._miny<rt._miny?-1:this._miny>rt._miny?1:this._maxx<rt._maxx?-1:this._maxx>rt._maxx?1:this._maxy<rt._maxy?-1:this._maxy>rt._maxy?1:0};Envelope.prototype.translate=function(tt,rt){if(this.isNull())return null;this.init(this.getMinX()+tt,this.getMaxX()+tt,this.getMinY()+rt,this.getMaxY()+rt)};Envelope.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"};Envelope.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1};Envelope.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny};Envelope.prototype.maxExtent=function(){if(this.isNull())return 0;var tt=this.getWidth(),rt=this.getHeight();return tt>rt?tt:rt};Envelope.prototype.expandBy=function(){if(arguments.length===1){var tt=arguments[0];this.expandBy(tt,tt)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];if(this.isNull())return null;this._minx-=rt,this._maxx+=rt,this._miny-=nt,this._maxy+=nt,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}};Envelope.prototype.contains=function(){if(arguments.length===1){if(arguments[0]instanceof Envelope){var tt=arguments[0];return this.covers(tt)}else if(arguments[0]instanceof Coordinate){var rt=arguments[0];return this.covers(rt)}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];return this.covers(nt,lt)}};Envelope.prototype.centre=function(){return this.isNull()?null:new Coordinate((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)};Envelope.prototype.init=function(){if(arguments.length===0)this.setToNull();else if(arguments.length===1){if(arguments[0]instanceof Coordinate){var tt=arguments[0];this.init(tt.x,tt.x,tt.y,tt.y)}else if(arguments[0]instanceof Envelope){var rt=arguments[0];this._minx=rt._minx,this._maxx=rt._maxx,this._miny=rt._miny,this._maxy=rt._maxy}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];this.init(nt.x,lt.x,nt.y,lt.y)}else if(arguments.length===4){var ut=arguments[0],dt=arguments[1],pt=arguments[2],ht=arguments[3];ut<dt?(this._minx=ut,this._maxx=dt):(this._minx=dt,this._maxx=ut),pt<ht?(this._miny=pt,this._maxy=ht):(this._miny=ht,this._maxy=pt)}};Envelope.prototype.getMaxY=function(){return this._maxy};Envelope.prototype.distance=function(tt){if(this.intersects(tt))return 0;var rt=0;this._maxx<tt._minx?rt=tt._minx-this._maxx:this._minx>tt._maxx&&(rt=this._minx-tt._maxx);var nt=0;return this._maxy<tt._miny?nt=tt._miny-this._maxy:this._miny>tt._maxy&&(nt=this._miny-tt._maxy),rt===0?nt:nt===0?rt:Math.sqrt(rt*rt+nt*nt)};Envelope.prototype.hashCode=function(){var tt=17;return tt=37*tt+Coordinate.hashCode(this._minx),tt=37*tt+Coordinate.hashCode(this._maxx),tt=37*tt+Coordinate.hashCode(this._miny),tt=37*tt+Coordinate.hashCode(this._maxy),tt};Envelope.prototype.interfaces_=function(){return[Comparable,Serializable]};Envelope.prototype.getClass=function(){return Envelope};Envelope.intersects=function(){if(arguments.length===3){var tt=arguments[0],rt=arguments[1],nt=arguments[2];return nt.x>=(tt.x<rt.x?tt.x:rt.x)&&nt.x<=(tt.x>rt.x?tt.x:rt.x)&&nt.y>=(tt.y<rt.y?tt.y:rt.y)&&nt.y<=(tt.y>rt.y?tt.y:rt.y)}else if(arguments.length===4){var lt=arguments[0],ut=arguments[1],dt=arguments[2],pt=arguments[3],ht=Math.min(dt.x,pt.x),mt=Math.max(dt.x,pt.x),xt=Math.min(lt.x,ut.x),Mt=Math.max(lt.x,ut.x);return!(xt>mt||Mt<ht||(ht=Math.min(dt.y,pt.y),mt=Math.max(dt.y,pt.y),xt=Math.min(lt.y,ut.y),Mt=Math.max(lt.y,ut.y),xt>mt)||Mt<ht)}};staticAccessors$9.serialVersionUID.get=function(){return 5873921885273102e3};Object.defineProperties(Envelope,staticAccessors$9);var regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},WKTParser=function(tt){this.geometryFactory=tt||new GeometryFactory};WKTParser.prototype.read=function(tt){var rt,nt,lt;tt=tt.replace(/[\n\r]/g," ");var ut=regExes.typeStr.exec(tt);if(tt.search("EMPTY")!==-1&&(ut=regExes.emptyTypeStr.exec(tt),ut[2]=void 0),ut&&(nt=ut[1].toLowerCase(),lt=ut[2],parse$1$1[nt]&&(rt=parse$1$1[nt].apply(this,[lt]))),rt===void 0)throw new Error("Could not parse WKT "+tt);return rt};WKTParser.prototype.write=function(tt){return this.extractGeometry(tt)};WKTParser.prototype.extractGeometry=function(tt){var rt=tt.getGeometryType().toLowerCase();if(!extract$1[rt])return null;var nt=rt.toUpperCase(),lt;return tt.isEmpty()?lt=nt+" EMPTY":lt=nt+"("+extract$1[rt].apply(this,[tt])+")",lt};var extract$1={coordinate:function(tt){return tt.x+" "+tt.y},point:function(tt){return extract$1.coordinate.call(this,tt._coordinates._coordinates[0])},multipoint:function(tt){for(var rt=this,nt=[],lt=0,ut=tt._geometries.length;lt<ut;++lt)nt.push("("+extract$1.point.apply(rt,[tt._geometries[lt]])+")");return nt.join(",")},linestring:function(tt){for(var rt=this,nt=[],lt=0,ut=tt._points._coordinates.length;lt<ut;++lt)nt.push(extract$1.coordinate.apply(rt,[tt._points._coordinates[lt]]));return nt.join(",")},linearring:function(tt){for(var rt=this,nt=[],lt=0,ut=tt._points._coordinates.length;lt<ut;++lt)nt.push(extract$1.coordinate.apply(rt,[tt._points._coordinates[lt]]));return nt.join(",")},multilinestring:function(tt){for(var rt=this,nt=[],lt=0,ut=tt._geometries.length;lt<ut;++lt)nt.push("("+extract$1.linestring.apply(rt,[tt._geometries[lt]])+")");return nt.join(",")},polygon:function(tt){var rt=this,nt=[];nt.push("("+extract$1.linestring.apply(this,[tt._shell])+")");for(var lt=0,ut=tt._holes.length;lt<ut;++lt)nt.push("("+extract$1.linestring.apply(rt,[tt._holes[lt]])+")");return nt.join(",")},multipolygon:function(tt){for(var rt=this,nt=[],lt=0,ut=tt._geometries.length;lt<ut;++lt)nt.push("("+extract$1.polygon.apply(rt,[tt._geometries[lt]])+")");return nt.join(",")},geometrycollection:function(tt){for(var rt=this,nt=[],lt=0,ut=tt._geometries.length;lt<ut;++lt)nt.push(rt.extractGeometry(tt._geometries[lt]));return nt.join(",")}},parse$1$1={point:function(tt){if(tt===void 0)return this.geometryFactory.createPoint();var rt=tt.trim().split(regExes.spaces);return this.geometryFactory.createPoint(new Coordinate(Number.parseFloat(rt[0]),Number.parseFloat(rt[1])))},multipoint:function(tt){var rt=this;if(tt===void 0)return this.geometryFactory.createMultiPoint();for(var nt,lt=tt.trim().split(","),ut=[],dt=0,pt=lt.length;dt<pt;++dt)nt=lt[dt].replace(regExes.trimParens,"$1"),ut.push(parse$1$1.point.apply(rt,[nt]));return this.geometryFactory.createMultiPoint(ut)},linestring:function(tt){if(tt===void 0)return this.geometryFactory.createLineString();for(var rt=tt.trim().split(","),nt=[],lt,ut=0,dt=rt.length;ut<dt;++ut)lt=rt[ut].trim().split(regExes.spaces),nt.push(new Coordinate(Number.parseFloat(lt[0]),Number.parseFloat(lt[1])));return this.geometryFactory.createLineString(nt)},linearring:function(tt){if(tt===void 0)return this.geometryFactory.createLinearRing();for(var rt=tt.trim().split(","),nt=[],lt,ut=0,dt=rt.length;ut<dt;++ut)lt=rt[ut].trim().split(regExes.spaces),nt.push(new Coordinate(Number.parseFloat(lt[0]),Number.parseFloat(lt[1])));return this.geometryFactory.createLinearRing(nt)},multilinestring:function(tt){var rt=this;if(tt===void 0)return this.geometryFactory.createMultiLineString();for(var nt,lt=tt.trim().split(regExes.parenComma),ut=[],dt=0,pt=lt.length;dt<pt;++dt)nt=lt[dt].replace(regExes.trimParens,"$1"),ut.push(parse$1$1.linestring.apply(rt,[nt]));return this.geometryFactory.createMultiLineString(ut)},polygon:function(tt){var rt=this;if(tt===void 0)return this.geometryFactory.createPolygon();for(var nt,lt,ut,dt=tt.trim().split(regExes.parenComma),pt,ht=[],mt=0,xt=dt.length;mt<xt;++mt)nt=dt[mt].replace(regExes.trimParens,"$1"),lt=parse$1$1.linestring.apply(rt,[nt]),ut=rt.geometryFactory.createLinearRing(lt._points),mt===0?pt=ut:ht.push(ut);return this.geometryFactory.createPolygon(pt,ht)},multipolygon:function(tt){var rt=this;if(tt===void 0)return this.geometryFactory.createMultiPolygon();for(var nt,lt=tt.trim().split(regExes.doubleParenComma),ut=[],dt=0,pt=lt.length;dt<pt;++dt)nt=lt[dt].replace(regExes.trimParens,"$1"),ut.push(parse$1$1.polygon.apply(rt,[nt]));return this.geometryFactory.createMultiPolygon(ut)},geometrycollection:function(tt){var rt=this;if(tt===void 0)return this.geometryFactory.createGeometryCollection();tt=tt.replace(/,\s*([A-Za-z])/g,"|$1");for(var nt=tt.trim().split("|"),lt=[],ut=0,dt=nt.length;ut<dt;++ut)lt.push(rt.read(nt[ut]));return this.geometryFactory.createGeometryCollection(lt)}},WKTWriter=function(tt){this.parser=new WKTParser(tt)};WKTWriter.prototype.write=function(tt){return this.parser.write(tt)};WKTWriter.toLineString=function(tt,rt){if(arguments.length!==2)throw new Error("Not implemented");return"LINESTRING ( "+tt.x+" "+tt.y+", "+rt.x+" "+rt.y+" )"};var RuntimeException=function(et){function tt(rt){et.call(this,rt),this.name="RuntimeException",this.message=rt,this.stack=new et().stack}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt}(Error),AssertionFailedException=function(et){function tt(){if(et.call(this),arguments.length===0)et.call(this);else if(arguments.length===1){var rt=arguments[0];et.call(this,rt)}}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(RuntimeException),Assert=function(){};Assert.prototype.interfaces_=function(){return[]};Assert.prototype.getClass=function(){return Assert};Assert.shouldNeverReachHere=function(){if(arguments.length===0)Assert.shouldNeverReachHere(null);else if(arguments.length===1){var tt=arguments[0];throw new AssertionFailedException("Should never reach here"+(tt!==null?": "+tt:""))}};Assert.isTrue=function(){var tt,rt;if(arguments.length===1)tt=arguments[0],Assert.isTrue(tt,null);else if(arguments.length===2&&(tt=arguments[0],rt=arguments[1],!tt))throw rt===null?new AssertionFailedException:new AssertionFailedException(rt)};Assert.equals=function(){var tt,rt,nt;if(arguments.length===2)tt=arguments[0],rt=arguments[1],Assert.equals(tt,rt,null);else if(arguments.length===3&&(tt=arguments[0],rt=arguments[1],nt=arguments[2],!rt.equals(tt)))throw new AssertionFailedException("Expected "+tt+" but encountered "+rt+(nt!==null?": "+nt:""))};var LineIntersector=function(){this._result=null,this._inputLines=Array(2).fill().map(function(){return Array(2)}),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new Coordinate,this._intPt[1]=new Coordinate,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},staticAccessors$10={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};LineIntersector.prototype.getIndexAlongSegment=function(tt,rt){return this.computeIntLineIndex(),this._intLineIndex[tt][rt]};LineIntersector.prototype.getTopologySummary=function(){var tt=new StringBuffer;return this.isEndPoint()&&tt.append(" endpoint"),this._isProper&&tt.append(" proper"),this.isCollinear()&&tt.append(" collinear"),tt.toString()};LineIntersector.prototype.computeIntersection=function(tt,rt,nt,lt){this._inputLines[0][0]=tt,this._inputLines[0][1]=rt,this._inputLines[1][0]=nt,this._inputLines[1][1]=lt,this._result=this.computeIntersect(tt,rt,nt,lt)};LineIntersector.prototype.getIntersectionNum=function(){return this._result};LineIntersector.prototype.computeIntLineIndex=function(){if(arguments.length===0)this._intLineIndex===null&&(this._intLineIndex=Array(2).fill().map(function(){return Array(2)}),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(arguments.length===1){var tt=arguments[0],rt=this.getEdgeDistance(tt,0),nt=this.getEdgeDistance(tt,1);rt>nt?(this._intLineIndex[tt][0]=0,this._intLineIndex[tt][1]=1):(this._intLineIndex[tt][0]=1,this._intLineIndex[tt][1]=0)}};LineIntersector.prototype.isProper=function(){return this.hasIntersection()&&this._isProper};LineIntersector.prototype.setPrecisionModel=function(tt){this._precisionModel=tt};LineIntersector.prototype.isInteriorIntersection=function(){var tt=this;if(arguments.length===0)return!!(this.isInteriorIntersection(0)||this.isInteriorIntersection(1));if(arguments.length===1){for(var rt=arguments[0],nt=0;nt<this._result;nt++)if(!(tt._intPt[nt].equals2D(tt._inputLines[rt][0])||tt._intPt[nt].equals2D(tt._inputLines[rt][1])))return!0;return!1}};LineIntersector.prototype.getIntersection=function(tt){return this._intPt[tt]};LineIntersector.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper};LineIntersector.prototype.hasIntersection=function(){return this._result!==LineIntersector.NO_INTERSECTION};LineIntersector.prototype.getEdgeDistance=function(tt,rt){var nt=LineIntersector.computeEdgeDistance(this._intPt[rt],this._inputLines[tt][0],this._inputLines[tt][1]);return nt};LineIntersector.prototype.isCollinear=function(){return this._result===LineIntersector.COLLINEAR_INTERSECTION};LineIntersector.prototype.toString=function(){return WKTWriter.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+WKTWriter.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()};LineIntersector.prototype.getEndpoint=function(tt,rt){return this._inputLines[tt][rt]};LineIntersector.prototype.isIntersection=function(tt){for(var rt=this,nt=0;nt<this._result;nt++)if(rt._intPt[nt].equals2D(tt))return!0;return!1};LineIntersector.prototype.getIntersectionAlongSegment=function(tt,rt){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[tt][rt]]};LineIntersector.prototype.interfaces_=function(){return[]};LineIntersector.prototype.getClass=function(){return LineIntersector};LineIntersector.computeEdgeDistance=function(tt,rt,nt){var lt=Math.abs(nt.x-rt.x),ut=Math.abs(nt.y-rt.y),dt=-1;if(tt.equals(rt))dt=0;else if(tt.equals(nt))lt>ut?dt=lt:dt=ut;else{var pt=Math.abs(tt.x-rt.x),ht=Math.abs(tt.y-rt.y);lt>ut?dt=pt:dt=ht,dt===0&&!tt.equals(rt)&&(dt=Math.max(pt,ht))}return Assert.isTrue(!(dt===0&&!tt.equals(rt)),"Bad distance calculation"),dt};LineIntersector.nonRobustComputeEdgeDistance=function(tt,rt,nt){var lt=tt.x-rt.x,ut=tt.y-rt.y,dt=Math.sqrt(lt*lt+ut*ut);return Assert.isTrue(!(dt===0&&!tt.equals(rt)),"Invalid distance calculation"),dt};staticAccessors$10.DONT_INTERSECT.get=function(){return 0};staticAccessors$10.DO_INTERSECT.get=function(){return 1};staticAccessors$10.COLLINEAR.get=function(){return 2};staticAccessors$10.NO_INTERSECTION.get=function(){return 0};staticAccessors$10.POINT_INTERSECTION.get=function(){return 1};staticAccessors$10.COLLINEAR_INTERSECTION.get=function(){return 2};Object.defineProperties(LineIntersector,staticAccessors$10);var RobustLineIntersector=function(et){function tt(){et.apply(this,arguments)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.isInSegmentEnvelopes=function(nt){var lt=new Envelope(this._inputLines[0][0],this._inputLines[0][1]),ut=new Envelope(this._inputLines[1][0],this._inputLines[1][1]);return lt.contains(nt)&&ut.contains(nt)},tt.prototype.computeIntersection=function(){if(arguments.length===3){var nt=arguments[0],lt=arguments[1],ut=arguments[2];if(this._isProper=!1,Envelope.intersects(lt,ut,nt)&&CGAlgorithms.orientationIndex(lt,ut,nt)===0&&CGAlgorithms.orientationIndex(ut,lt,nt)===0)return this._isProper=!0,(nt.equals(lt)||nt.equals(ut))&&(this._isProper=!1),this._result=et.POINT_INTERSECTION,null;this._result=et.NO_INTERSECTION}else return et.prototype.computeIntersection.apply(this,arguments)},tt.prototype.normalizeToMinimum=function(nt,lt,ut,dt,pt){pt.x=this.smallestInAbsValue(nt.x,lt.x,ut.x,dt.x),pt.y=this.smallestInAbsValue(nt.y,lt.y,ut.y,dt.y),nt.x-=pt.x,nt.y-=pt.y,lt.x-=pt.x,lt.y-=pt.y,ut.x-=pt.x,ut.y-=pt.y,dt.x-=pt.x,dt.y-=pt.y},tt.prototype.safeHCoordinateIntersection=function(nt,lt,ut,dt){var pt=null;try{pt=HCoordinate.intersection(nt,lt,ut,dt)}catch(ht){if(ht instanceof NotRepresentableException)pt=tt.nearestEndpoint(nt,lt,ut,dt);else throw ht}finally{}return pt},tt.prototype.intersection=function(nt,lt,ut,dt){var pt=this.intersectionWithNormalization(nt,lt,ut,dt);return this.isInSegmentEnvelopes(pt)||(pt=new Coordinate(tt.nearestEndpoint(nt,lt,ut,dt))),this._precisionModel!==null&&this._precisionModel.makePrecise(pt),pt},tt.prototype.smallestInAbsValue=function(nt,lt,ut,dt){var pt=nt,ht=Math.abs(pt);return Math.abs(lt)<ht&&(pt=lt,ht=Math.abs(lt)),Math.abs(ut)<ht&&(pt=ut,ht=Math.abs(ut)),Math.abs(dt)<ht&&(pt=dt),pt},tt.prototype.checkDD=function(nt,lt,ut,dt,pt){var ht=CGAlgorithmsDD.intersection(nt,lt,ut,dt),mt=this.isInSegmentEnvelopes(ht);System.out.println("DD in env = "+mt+"  --------------------- "+ht),pt.distance(ht)>1e-4&&System.out.println("Distance = "+pt.distance(ht))},tt.prototype.intersectionWithNormalization=function(nt,lt,ut,dt){var pt=new Coordinate(nt),ht=new Coordinate(lt),mt=new Coordinate(ut),xt=new Coordinate(dt),Mt=new Coordinate;this.normalizeToEnvCentre(pt,ht,mt,xt,Mt);var vt=this.safeHCoordinateIntersection(pt,ht,mt,xt);return vt.x+=Mt.x,vt.y+=Mt.y,vt},tt.prototype.computeCollinearIntersection=function(nt,lt,ut,dt){var pt=Envelope.intersects(nt,lt,ut),ht=Envelope.intersects(nt,lt,dt),mt=Envelope.intersects(ut,dt,nt),xt=Envelope.intersects(ut,dt,lt);return pt&&ht?(this._intPt[0]=ut,this._intPt[1]=dt,et.COLLINEAR_INTERSECTION):mt&&xt?(this._intPt[0]=nt,this._intPt[1]=lt,et.COLLINEAR_INTERSECTION):pt&&mt?(this._intPt[0]=ut,this._intPt[1]=nt,ut.equals(nt)&&!ht&&!xt?et.POINT_INTERSECTION:et.COLLINEAR_INTERSECTION):pt&&xt?(this._intPt[0]=ut,this._intPt[1]=lt,ut.equals(lt)&&!ht&&!mt?et.POINT_INTERSECTION:et.COLLINEAR_INTERSECTION):ht&&mt?(this._intPt[0]=dt,this._intPt[1]=nt,dt.equals(nt)&&!pt&&!xt?et.POINT_INTERSECTION:et.COLLINEAR_INTERSECTION):ht&&xt?(this._intPt[0]=dt,this._intPt[1]=lt,dt.equals(lt)&&!pt&&!mt?et.POINT_INTERSECTION:et.COLLINEAR_INTERSECTION):et.NO_INTERSECTION},tt.prototype.normalizeToEnvCentre=function(nt,lt,ut,dt,pt){var ht=nt.x<lt.x?nt.x:lt.x,mt=nt.y<lt.y?nt.y:lt.y,xt=nt.x>lt.x?nt.x:lt.x,Mt=nt.y>lt.y?nt.y:lt.y,vt=ut.x<dt.x?ut.x:dt.x,Ot=ut.y<dt.y?ut.y:dt.y,At=ut.x>dt.x?ut.x:dt.x,Rt=ut.y>dt.y?ut.y:dt.y,zt=ht>vt?ht:vt,Tt=xt<At?xt:At,Ct=mt>Ot?mt:Ot,It=Mt<Rt?Mt:Rt,Dt=(zt+Tt)/2,kt=(Ct+It)/2;pt.x=Dt,pt.y=kt,nt.x-=pt.x,nt.y-=pt.y,lt.x-=pt.x,lt.y-=pt.y,ut.x-=pt.x,ut.y-=pt.y,dt.x-=pt.x,dt.y-=pt.y},tt.prototype.computeIntersect=function(nt,lt,ut,dt){if(this._isProper=!1,!Envelope.intersects(nt,lt,ut,dt))return et.NO_INTERSECTION;var pt=CGAlgorithms.orientationIndex(nt,lt,ut),ht=CGAlgorithms.orientationIndex(nt,lt,dt);if(pt>0&&ht>0||pt<0&&ht<0)return et.NO_INTERSECTION;var mt=CGAlgorithms.orientationIndex(ut,dt,nt),xt=CGAlgorithms.orientationIndex(ut,dt,lt);if(mt>0&&xt>0||mt<0&&xt<0)return et.NO_INTERSECTION;var Mt=pt===0&&ht===0&&mt===0&&xt===0;return Mt?this.computeCollinearIntersection(nt,lt,ut,dt):(pt===0||ht===0||mt===0||xt===0?(this._isProper=!1,nt.equals2D(ut)||nt.equals2D(dt)?this._intPt[0]=nt:lt.equals2D(ut)||lt.equals2D(dt)?this._intPt[0]=lt:pt===0?this._intPt[0]=new Coordinate(ut):ht===0?this._intPt[0]=new Coordinate(dt):mt===0?this._intPt[0]=new Coordinate(nt):xt===0&&(this._intPt[0]=new Coordinate(lt))):(this._isProper=!0,this._intPt[0]=this.intersection(nt,lt,ut,dt)),et.POINT_INTERSECTION)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt.nearestEndpoint=function(nt,lt,ut,dt){var pt=nt,ht=CGAlgorithms.distancePointLine(nt,ut,dt),mt=CGAlgorithms.distancePointLine(lt,ut,dt);return mt<ht&&(ht=mt,pt=lt),mt=CGAlgorithms.distancePointLine(ut,nt,lt),mt<ht&&(ht=mt,pt=ut),mt=CGAlgorithms.distancePointLine(dt,nt,lt),mt<ht&&(ht=mt,pt=dt),pt},tt}(LineIntersector),RobustDeterminant=function(){};RobustDeterminant.prototype.interfaces_=function(){return[]};RobustDeterminant.prototype.getClass=function(){return RobustDeterminant};RobustDeterminant.orientationIndex=function(tt,rt,nt){var lt=rt.x-tt.x,ut=rt.y-tt.y,dt=nt.x-rt.x,pt=nt.y-rt.y;return RobustDeterminant.signOfDet2x2(lt,ut,dt,pt)};RobustDeterminant.signOfDet2x2=function(tt,rt,nt,lt){var ut=null,dt=null,pt=null;if(ut=1,tt===0||lt===0)return rt===0||nt===0?0:rt>0?nt>0?-ut:ut:nt>0?ut:-ut;if(rt===0||nt===0)return lt>0?tt>0?ut:-ut:tt>0?-ut:ut;if(rt>0?lt>0?rt<=lt||(ut=-ut,dt=tt,tt=nt,nt=dt,dt=rt,rt=lt,lt=dt):rt<=-lt?(ut=-ut,nt=-nt,lt=-lt):(dt=tt,tt=-nt,nt=dt,dt=rt,rt=-lt,lt=dt):lt>0?-rt<=lt?(ut=-ut,tt=-tt,rt=-rt):(dt=-tt,tt=nt,nt=dt,dt=-rt,rt=lt,lt=dt):rt>=lt?(tt=-tt,rt=-rt,nt=-nt,lt=-lt):(ut=-ut,dt=-tt,tt=-nt,nt=dt,dt=-rt,rt=-lt,lt=dt),tt>0)if(nt>0){if(!(tt<=nt))return ut}else return ut;else{if(nt>0)return-ut;if(tt>=nt)ut=-ut,tt=-tt,nt=-nt;else return-ut}for(;;){if(pt=Math.floor(nt/tt),nt=nt-pt*tt,lt=lt-pt*rt,lt<0)return-ut;if(lt>rt)return ut;if(tt>nt+nt){if(rt<lt+lt)return ut}else{if(rt>lt+lt)return-ut;nt=tt-nt,lt=rt-lt,ut=-ut}if(lt===0)return nt===0?0:-ut;if(nt===0||(pt=Math.floor(tt/nt),tt=tt-pt*nt,rt=rt-pt*lt,rt<0))return ut;if(rt>lt)return-ut;if(nt>tt+tt){if(lt<rt+rt)return-ut}else{if(lt>rt+rt)return ut;tt=nt-tt,rt=lt-rt,ut=-ut}if(rt===0)return tt===0?0:ut;if(tt===0)return-ut}};var RayCrossingCounter=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var tt=arguments[0];this._p=tt};RayCrossingCounter.prototype.countSegment=function(tt,rt){if(tt.x<this._p.x&&rt.x<this._p.x)return null;if(this._p.x===rt.x&&this._p.y===rt.y)return this._isPointOnSegment=!0,null;if(tt.y===this._p.y&&rt.y===this._p.y){var nt=tt.x,lt=rt.x;return nt>lt&&(nt=rt.x,lt=tt.x),this._p.x>=nt&&this._p.x<=lt&&(this._isPointOnSegment=!0),null}if(tt.y>this._p.y&&rt.y<=this._p.y||rt.y>this._p.y&&tt.y<=this._p.y){var ut=tt.x-this._p.x,dt=tt.y-this._p.y,pt=rt.x-this._p.x,ht=rt.y-this._p.y,mt=RobustDeterminant.signOfDet2x2(ut,dt,pt,ht);if(mt===0)return this._isPointOnSegment=!0,null;ht<dt&&(mt=-mt),mt>0&&this._crossingCount++}};RayCrossingCounter.prototype.isPointInPolygon=function(){return this.getLocation()!==Location.EXTERIOR};RayCrossingCounter.prototype.getLocation=function(){return this._isPointOnSegment?Location.BOUNDARY:this._crossingCount%2===1?Location.INTERIOR:Location.EXTERIOR};RayCrossingCounter.prototype.isOnSegment=function(){return this._isPointOnSegment};RayCrossingCounter.prototype.interfaces_=function(){return[]};RayCrossingCounter.prototype.getClass=function(){return RayCrossingCounter};RayCrossingCounter.locatePointInRing=function(){if(arguments[0]instanceof Coordinate&&hasInterface(arguments[1],CoordinateSequence)){for(var tt=arguments[0],rt=arguments[1],nt=new RayCrossingCounter(tt),lt=new Coordinate,ut=new Coordinate,dt=1;dt<rt.size();dt++)if(rt.getCoordinate(dt,lt),rt.getCoordinate(dt-1,ut),nt.countSegment(lt,ut),nt.isOnSegment())return nt.getLocation();return nt.getLocation()}else if(arguments[0]instanceof Coordinate&&arguments[1]instanceof Array){for(var pt=arguments[0],ht=arguments[1],mt=new RayCrossingCounter(pt),xt=1;xt<ht.length;xt++){var Mt=ht[xt],vt=ht[xt-1];if(mt.countSegment(Mt,vt),mt.isOnSegment())return mt.getLocation()}return mt.getLocation()}};var CGAlgorithms=function(){},staticAccessors$3={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};CGAlgorithms.prototype.interfaces_=function(){return[]};CGAlgorithms.prototype.getClass=function(){return CGAlgorithms};CGAlgorithms.orientationIndex=function(tt,rt,nt){return CGAlgorithmsDD.orientationIndex(tt,rt,nt)};CGAlgorithms.signedArea=function(){if(arguments[0]instanceof Array){var tt=arguments[0];if(tt.length<3)return 0;for(var rt=0,nt=tt[0].x,lt=1;lt<tt.length-1;lt++){var ut=tt[lt].x-nt,dt=tt[lt+1].y,pt=tt[lt-1].y;rt+=ut*(pt-dt)}return rt/2}else if(hasInterface(arguments[0],CoordinateSequence)){var ht=arguments[0],mt=ht.size();if(mt<3)return 0;var xt=new Coordinate,Mt=new Coordinate,vt=new Coordinate;ht.getCoordinate(0,Mt),ht.getCoordinate(1,vt);var Ot=Mt.x;vt.x-=Ot;for(var At=0,Rt=1;Rt<mt-1;Rt++)xt.y=Mt.y,Mt.x=vt.x,Mt.y=vt.y,ht.getCoordinate(Rt+1,vt),vt.x-=Ot,At+=Mt.x*(xt.y-vt.y);return At/2}};CGAlgorithms.distanceLineLine=function(tt,rt,nt,lt){if(tt.equals(rt))return CGAlgorithms.distancePointLine(tt,nt,lt);if(nt.equals(lt))return CGAlgorithms.distancePointLine(lt,tt,rt);var ut=!1;if(!Envelope.intersects(tt,rt,nt,lt))ut=!0;else{var dt=(rt.x-tt.x)*(lt.y-nt.y)-(rt.y-tt.y)*(lt.x-nt.x);if(dt===0)ut=!0;else{var pt=(tt.y-nt.y)*(lt.x-nt.x)-(tt.x-nt.x)*(lt.y-nt.y),ht=(tt.y-nt.y)*(rt.x-tt.x)-(tt.x-nt.x)*(rt.y-tt.y),mt=ht/dt,xt=pt/dt;(xt<0||xt>1||mt<0||mt>1)&&(ut=!0)}}return ut?MathUtil.min(CGAlgorithms.distancePointLine(tt,nt,lt),CGAlgorithms.distancePointLine(rt,nt,lt),CGAlgorithms.distancePointLine(nt,tt,rt),CGAlgorithms.distancePointLine(lt,tt,rt)):0};CGAlgorithms.isPointInRing=function(tt,rt){return CGAlgorithms.locatePointInRing(tt,rt)!==Location.EXTERIOR};CGAlgorithms.computeLength=function(tt){var rt=tt.size();if(rt<=1)return 0;var nt=0,lt=new Coordinate;tt.getCoordinate(0,lt);for(var ut=lt.x,dt=lt.y,pt=1;pt<rt;pt++){tt.getCoordinate(pt,lt);var ht=lt.x,mt=lt.y,xt=ht-ut,Mt=mt-dt;nt+=Math.sqrt(xt*xt+Mt*Mt),ut=ht,dt=mt}return nt};CGAlgorithms.isCCW=function(tt){var rt=tt.length-1;if(rt<3)throw new IllegalArgumentException("Ring has fewer than 4 points, so orientation cannot be determined");for(var nt=tt[0],lt=0,ut=1;ut<=rt;ut++){var dt=tt[ut];dt.y>nt.y&&(nt=dt,lt=ut)}var pt=lt;do pt=pt-1,pt<0&&(pt=rt);while(tt[pt].equals2D(nt)&&pt!==lt);var ht=lt;do ht=(ht+1)%rt;while(tt[ht].equals2D(nt)&&ht!==lt);var mt=tt[pt],xt=tt[ht];if(mt.equals2D(nt)||xt.equals2D(nt)||mt.equals2D(xt))return!1;var Mt=CGAlgorithms.computeOrientation(mt,nt,xt),vt=!1;return Mt===0?vt=mt.x>xt.x:vt=Mt>0,vt};CGAlgorithms.locatePointInRing=function(tt,rt){return RayCrossingCounter.locatePointInRing(tt,rt)};CGAlgorithms.distancePointLinePerpendicular=function(tt,rt,nt){var lt=(nt.x-rt.x)*(nt.x-rt.x)+(nt.y-rt.y)*(nt.y-rt.y),ut=((rt.y-tt.y)*(nt.x-rt.x)-(rt.x-tt.x)*(nt.y-rt.y))/lt;return Math.abs(ut)*Math.sqrt(lt)};CGAlgorithms.computeOrientation=function(tt,rt,nt){return CGAlgorithms.orientationIndex(tt,rt,nt)};CGAlgorithms.distancePointLine=function(){if(arguments.length===2){var tt=arguments[0],rt=arguments[1];if(rt.length===0)throw new IllegalArgumentException("Line array must contain at least one vertex");for(var nt=tt.distance(rt[0]),lt=0;lt<rt.length-1;lt++){var ut=CGAlgorithms.distancePointLine(tt,rt[lt],rt[lt+1]);ut<nt&&(nt=ut)}return nt}else if(arguments.length===3){var dt=arguments[0],pt=arguments[1],ht=arguments[2];if(pt.x===ht.x&&pt.y===ht.y)return dt.distance(pt);var mt=(ht.x-pt.x)*(ht.x-pt.x)+(ht.y-pt.y)*(ht.y-pt.y),xt=((dt.x-pt.x)*(ht.x-pt.x)+(dt.y-pt.y)*(ht.y-pt.y))/mt;if(xt<=0)return dt.distance(pt);if(xt>=1)return dt.distance(ht);var Mt=((pt.y-dt.y)*(ht.x-pt.x)-(pt.x-dt.x)*(ht.y-pt.y))/mt;return Math.abs(Mt)*Math.sqrt(mt)}};CGAlgorithms.isOnLine=function(tt,rt){for(var nt=new RobustLineIntersector,lt=1;lt<rt.length;lt++){var ut=rt[lt-1],dt=rt[lt];if(nt.computeIntersection(tt,ut,dt),nt.hasIntersection())return!0}return!1};staticAccessors$3.CLOCKWISE.get=function(){return-1};staticAccessors$3.RIGHT.get=function(){return CGAlgorithms.CLOCKWISE};staticAccessors$3.COUNTERCLOCKWISE.get=function(){return 1};staticAccessors$3.LEFT.get=function(){return CGAlgorithms.COUNTERCLOCKWISE};staticAccessors$3.COLLINEAR.get=function(){return 0};staticAccessors$3.STRAIGHT.get=function(){return CGAlgorithms.COLLINEAR};Object.defineProperties(CGAlgorithms,staticAccessors$3);var GeometryComponentFilter=function(){};GeometryComponentFilter.prototype.filter=function(tt){};GeometryComponentFilter.prototype.interfaces_=function(){return[]};GeometryComponentFilter.prototype.getClass=function(){return GeometryComponentFilter};var Geometry=function(){var tt=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=tt,this._SRID=tt.getSRID()},staticAccessors$11={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};Geometry.prototype.isGeometryCollection=function(){return this.getSortIndex()===Geometry.SORTINDEX_GEOMETRYCOLLECTION};Geometry.prototype.getFactory=function(){return this._factory};Geometry.prototype.getGeometryN=function(tt){return this};Geometry.prototype.getArea=function(){return 0};Geometry.prototype.isRectangle=function(){return!1};Geometry.prototype.equals=function(){if(arguments[0]instanceof Geometry){var tt=arguments[0];return tt===null?!1:this.equalsTopo(tt)}else if(arguments[0]instanceof Object){var rt=arguments[0];if(!(rt instanceof Geometry))return!1;var nt=rt;return this.equalsExact(nt)}};Geometry.prototype.equalsExact=function(tt){return this===tt||this.equalsExact(tt,0)};Geometry.prototype.geometryChanged=function(){this.apply(Geometry.geometryChangedFilter)};Geometry.prototype.geometryChangedAction=function(){this._envelope=null};Geometry.prototype.equalsNorm=function(tt){return tt===null?!1:this.norm().equalsExact(tt.norm())};Geometry.prototype.getLength=function(){return 0};Geometry.prototype.getNumGeometries=function(){return 1};Geometry.prototype.compareTo=function(){if(arguments.length===1){var tt=arguments[0],rt=tt;return this.getSortIndex()!==rt.getSortIndex()?this.getSortIndex()-rt.getSortIndex():this.isEmpty()&&rt.isEmpty()?0:this.isEmpty()?-1:rt.isEmpty()?1:this.compareToSameClass(tt)}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];return this.getSortIndex()!==nt.getSortIndex()?this.getSortIndex()-nt.getSortIndex():this.isEmpty()&&nt.isEmpty()?0:this.isEmpty()?-1:nt.isEmpty()?1:this.compareToSameClass(nt,lt)}};Geometry.prototype.getUserData=function(){return this._userData};Geometry.prototype.getSRID=function(){return this._SRID};Geometry.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())};Geometry.prototype.checkNotGeometryCollection=function(tt){if(tt.getSortIndex()===Geometry.SORTINDEX_GEOMETRYCOLLECTION)throw new IllegalArgumentException("This method does not support GeometryCollection arguments")};Geometry.prototype.equal=function(tt,rt,nt){return nt===0?tt.equals(rt):tt.distance(rt)<=nt};Geometry.prototype.norm=function(){var tt=this.copy();return tt.normalize(),tt};Geometry.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()};Geometry.prototype.getEnvelopeInternal=function(){return this._envelope===null&&(this._envelope=this.computeEnvelopeInternal()),new Envelope(this._envelope)};Geometry.prototype.setSRID=function(tt){this._SRID=tt};Geometry.prototype.setUserData=function(tt){this._userData=tt};Geometry.prototype.compare=function(tt,rt){for(var nt=tt.iterator(),lt=rt.iterator();nt.hasNext()&&lt.hasNext();){var ut=nt.next(),dt=lt.next(),pt=ut.compareTo(dt);if(pt!==0)return pt}return nt.hasNext()?1:lt.hasNext()?-1:0};Geometry.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()};Geometry.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===Geometry.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===Geometry.SORTINDEX_MULTIPOINT||this.getSortIndex()===Geometry.SORTINDEX_MULTILINESTRING||this.getSortIndex()===Geometry.SORTINDEX_MULTIPOLYGON};Geometry.prototype.interfaces_=function(){return[Clonable,Comparable,Serializable]};Geometry.prototype.getClass=function(){return Geometry};Geometry.hasNonEmptyElements=function(tt){for(var rt=0;rt<tt.length;rt++)if(!tt[rt].isEmpty())return!0;return!1};Geometry.hasNullElements=function(tt){for(var rt=0;rt<tt.length;rt++)if(tt[rt]===null)return!0;return!1};staticAccessors$11.serialVersionUID.get=function(){return 8763622679187377e3};staticAccessors$11.SORTINDEX_POINT.get=function(){return 0};staticAccessors$11.SORTINDEX_MULTIPOINT.get=function(){return 1};staticAccessors$11.SORTINDEX_LINESTRING.get=function(){return 2};staticAccessors$11.SORTINDEX_LINEARRING.get=function(){return 3};staticAccessors$11.SORTINDEX_MULTILINESTRING.get=function(){return 4};staticAccessors$11.SORTINDEX_POLYGON.get=function(){return 5};staticAccessors$11.SORTINDEX_MULTIPOLYGON.get=function(){return 6};staticAccessors$11.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7};staticAccessors$11.geometryChangedFilter.get=function(){return geometryChangedFilter};Object.defineProperties(Geometry,staticAccessors$11);var geometryChangedFilter=function(){};geometryChangedFilter.interfaces_=function(){return[GeometryComponentFilter]};geometryChangedFilter.filter=function(tt){tt.geometryChangedAction()};var CoordinateFilter=function(){};CoordinateFilter.prototype.filter=function(tt){};CoordinateFilter.prototype.interfaces_=function(){return[]};CoordinateFilter.prototype.getClass=function(){return CoordinateFilter};var BoundaryNodeRule=function(){},staticAccessors$12={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};BoundaryNodeRule.prototype.isInBoundary=function(tt){};BoundaryNodeRule.prototype.interfaces_=function(){return[]};BoundaryNodeRule.prototype.getClass=function(){return BoundaryNodeRule};staticAccessors$12.Mod2BoundaryNodeRule.get=function(){return Mod2BoundaryNodeRule};staticAccessors$12.EndPointBoundaryNodeRule.get=function(){return EndPointBoundaryNodeRule};staticAccessors$12.MultiValentEndPointBoundaryNodeRule.get=function(){return MultiValentEndPointBoundaryNodeRule};staticAccessors$12.MonoValentEndPointBoundaryNodeRule.get=function(){return MonoValentEndPointBoundaryNodeRule};staticAccessors$12.MOD2_BOUNDARY_RULE.get=function(){return new Mod2BoundaryNodeRule};staticAccessors$12.ENDPOINT_BOUNDARY_RULE.get=function(){return new EndPointBoundaryNodeRule};staticAccessors$12.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new MultiValentEndPointBoundaryNodeRule};staticAccessors$12.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new MonoValentEndPointBoundaryNodeRule};staticAccessors$12.OGC_SFS_BOUNDARY_RULE.get=function(){return BoundaryNodeRule.MOD2_BOUNDARY_RULE};Object.defineProperties(BoundaryNodeRule,staticAccessors$12);var Mod2BoundaryNodeRule=function(){};Mod2BoundaryNodeRule.prototype.isInBoundary=function(tt){return tt%2===1};Mod2BoundaryNodeRule.prototype.interfaces_=function(){return[BoundaryNodeRule]};Mod2BoundaryNodeRule.prototype.getClass=function(){return Mod2BoundaryNodeRule};var EndPointBoundaryNodeRule=function(){};EndPointBoundaryNodeRule.prototype.isInBoundary=function(tt){return tt>0};EndPointBoundaryNodeRule.prototype.interfaces_=function(){return[BoundaryNodeRule]};EndPointBoundaryNodeRule.prototype.getClass=function(){return EndPointBoundaryNodeRule};var MultiValentEndPointBoundaryNodeRule=function(){};MultiValentEndPointBoundaryNodeRule.prototype.isInBoundary=function(tt){return tt>1};MultiValentEndPointBoundaryNodeRule.prototype.interfaces_=function(){return[BoundaryNodeRule]};MultiValentEndPointBoundaryNodeRule.prototype.getClass=function(){return MultiValentEndPointBoundaryNodeRule};var MonoValentEndPointBoundaryNodeRule=function(){};MonoValentEndPointBoundaryNodeRule.prototype.isInBoundary=function(tt){return tt===1};MonoValentEndPointBoundaryNodeRule.prototype.interfaces_=function(){return[BoundaryNodeRule]};MonoValentEndPointBoundaryNodeRule.prototype.getClass=function(){return MonoValentEndPointBoundaryNodeRule};var Collection=function(){};Collection.prototype.add=function(){};Collection.prototype.addAll=function(){};Collection.prototype.isEmpty=function(){};Collection.prototype.iterator=function(){};Collection.prototype.size=function(){};Collection.prototype.toArray=function(){};Collection.prototype.remove=function(){};function IndexOutOfBoundsException(et){this.message=et||""}IndexOutOfBoundsException.prototype=new Error;IndexOutOfBoundsException.prototype.name="IndexOutOfBoundsException";var Iterator$1=function(){};Iterator$1.prototype.hasNext=function(){};Iterator$1.prototype.next=function(){};Iterator$1.prototype.remove=function(){};var List=function(et){function tt(){et.apply(this,arguments)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.get=function(){},tt.prototype.set=function(){},tt.prototype.isEmpty=function(){},tt}(Collection);function NoSuchElementException(et){this.message=et||""}NoSuchElementException.prototype=new Error;NoSuchElementException.prototype.name="NoSuchElementException";var ArrayList=function(et){function tt(){et.call(this),this.array_=[],arguments[0]instanceof Collection&&this.addAll(arguments[0])}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.ensureCapacity=function(){},tt.prototype.interfaces_=function(){return[et,Collection]},tt.prototype.add=function(nt){return arguments.length===1?this.array_.push(nt):this.array_.splice(arguments[0],arguments[1]),!0},tt.prototype.clear=function(){this.array_=[]},tt.prototype.addAll=function(nt){for(var lt=this,ut=nt.iterator();ut.hasNext();)lt.add(ut.next());return!0},tt.prototype.set=function(nt,lt){var ut=this.array_[nt];return this.array_[nt]=lt,ut},tt.prototype.iterator=function(){return new Iterator_(this)},tt.prototype.get=function(nt){if(nt<0||nt>=this.size())throw new IndexOutOfBoundsException;return this.array_[nt]},tt.prototype.isEmpty=function(){return this.array_.length===0},tt.prototype.size=function(){return this.array_.length},tt.prototype.toArray=function(){for(var nt=this,lt=[],ut=0,dt=this.array_.length;ut<dt;ut++)lt.push(nt.array_[ut]);return lt},tt.prototype.remove=function(nt){for(var lt=this,ut=!1,dt=0,pt=this.array_.length;dt<pt;dt++)if(lt.array_[dt]===nt){lt.array_.splice(dt,1),ut=!0;break}return ut},tt}(List),Iterator_=function(et){function tt(rt){et.call(this),this.arrayList_=rt,this.position_=0}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new NoSuchElementException;return this.arrayList_.get(this.position_++)},tt.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},tt.prototype.set=function(nt){return this.arrayList_.set(this.position_-1,nt)},tt.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},tt}(Iterator$1),CoordinateList=function(et){function tt(){if(et.call(this),arguments.length!==0){if(arguments.length===1){var nt=arguments[0];this.ensureCapacity(nt.length),this.add(nt,!0)}else if(arguments.length===2){var lt=arguments[0],ut=arguments[1];this.ensureCapacity(lt.length),this.add(lt,ut)}}}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={coordArrayType:{configurable:!0}};return rt.coordArrayType.get=function(){return new Array(0).fill(null)},tt.prototype.getCoordinate=function(lt){return this.get(lt)},tt.prototype.addAll=function(){var lt=this;if(arguments.length===2){for(var ut=arguments[0],dt=arguments[1],pt=!1,ht=ut.iterator();ht.hasNext();)lt.add(ht.next(),dt),pt=!0;return pt}else return et.prototype.addAll.apply(this,arguments)},tt.prototype.clone=function(){for(var lt=this,ut=et.prototype.clone.call(this),dt=0;dt<this.size();dt++)ut.add(dt,lt.get(dt).copy());return ut},tt.prototype.toCoordinateArray=function(){return this.toArray(tt.coordArrayType)},tt.prototype.add=function(){var lt=this;if(arguments.length===1){var ut=arguments[0];et.prototype.add.call(this,ut)}else if(arguments.length===2){if(arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var dt=arguments[0],pt=arguments[1];return this.add(dt,pt,!0),!0}else if(arguments[0]instanceof Coordinate&&typeof arguments[1]=="boolean"){var ht=arguments[0],mt=arguments[1];if(!mt&&this.size()>=1){var xt=this.get(this.size()-1);if(xt.equals2D(ht))return null}et.prototype.add.call(this,ht)}else if(arguments[0]instanceof Object&&typeof arguments[1]=="boolean"){var Mt=arguments[0],vt=arguments[1];return this.add(Mt,vt),!0}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var Ot=arguments[0],At=arguments[1],Rt=arguments[2];if(Rt)for(var zt=0;zt<Ot.length;zt++)lt.add(Ot[zt],At);else for(var Tt=Ot.length-1;Tt>=0;Tt--)lt.add(Ot[Tt],At);return!0}else if(typeof arguments[2]=="boolean"&&Number.isInteger(arguments[0])&&arguments[1]instanceof Coordinate){var Ct=arguments[0],It=arguments[1],Dt=arguments[2];if(!Dt){var kt=this.size();if(kt>0){if(Ct>0){var qt=this.get(Ct-1);if(qt.equals2D(It))return null}if(Ct<kt){var Nt=this.get(Ct);if(Nt.equals2D(It))return null}}}et.prototype.add.call(this,Ct,It)}}else if(arguments.length===4){var Yt=arguments[0],Kt=arguments[1],Jt=arguments[2],Qt=arguments[3],Bt=1;Jt>Qt&&(Bt=-1);for(var Ft=Jt;Ft!==Qt;Ft+=Bt)lt.add(Yt[Ft],Kt);return!0}},tt.prototype.closeRing=function(){this.size()>0&&this.add(new Coordinate(this.get(0)),!1)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},Object.defineProperties(tt,rt),tt}(ArrayList),CoordinateArrays=function(){},staticAccessors$13={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};staticAccessors$13.ForwardComparator.get=function(){return ForwardComparator};staticAccessors$13.BidirectionalComparator.get=function(){return BidirectionalComparator};staticAccessors$13.coordArrayType.get=function(){return new Array(0).fill(null)};CoordinateArrays.prototype.interfaces_=function(){return[]};CoordinateArrays.prototype.getClass=function(){return CoordinateArrays};CoordinateArrays.isRing=function(tt){return!(tt.length<4||!tt[0].equals2D(tt[tt.length-1]))};CoordinateArrays.ptNotInList=function(tt,rt){for(var nt=0;nt<tt.length;nt++){var lt=tt[nt];if(CoordinateArrays.indexOf(lt,rt)<0)return lt}return null};CoordinateArrays.scroll=function(tt,rt){var nt=CoordinateArrays.indexOf(rt,tt);if(nt<0)return null;var lt=new Array(tt.length).fill(null);System.arraycopy(tt,nt,lt,0,tt.length-nt),System.arraycopy(tt,0,lt,tt.length-nt,nt),System.arraycopy(lt,0,tt,0,tt.length)};CoordinateArrays.equals=function(){if(arguments.length===2){var tt=arguments[0],rt=arguments[1];if(tt===rt)return!0;if(tt===null||rt===null||tt.length!==rt.length)return!1;for(var nt=0;nt<tt.length;nt++)if(!tt[nt].equals(rt[nt]))return!1;return!0}else if(arguments.length===3){var lt=arguments[0],ut=arguments[1],dt=arguments[2];if(lt===ut)return!0;if(lt===null||ut===null||lt.length!==ut.length)return!1;for(var pt=0;pt<lt.length;pt++)if(dt.compare(lt[pt],ut[pt])!==0)return!1;return!0}};CoordinateArrays.intersection=function(tt,rt){for(var nt=new CoordinateList,lt=0;lt<tt.length;lt++)rt.intersects(tt[lt])&&nt.add(tt[lt],!0);return nt.toCoordinateArray()};CoordinateArrays.hasRepeatedPoints=function(tt){for(var rt=1;rt<tt.length;rt++)if(tt[rt-1].equals(tt[rt]))return!0;return!1};CoordinateArrays.removeRepeatedPoints=function(tt){if(!CoordinateArrays.hasRepeatedPoints(tt))return tt;var rt=new CoordinateList(tt,!1);return rt.toCoordinateArray()};CoordinateArrays.reverse=function(tt){for(var rt=tt.length-1,nt=Math.trunc(rt/2),lt=0;lt<=nt;lt++){var ut=tt[lt];tt[lt]=tt[rt-lt],tt[rt-lt]=ut}};CoordinateArrays.removeNull=function(tt){for(var rt=0,nt=0;nt<tt.length;nt++)tt[nt]!==null&&rt++;var lt=new Array(rt).fill(null);if(rt===0)return lt;for(var ut=0,dt=0;dt<tt.length;dt++)tt[dt]!==null&&(lt[ut++]=tt[dt]);return lt};CoordinateArrays.copyDeep=function(){if(arguments.length===1){for(var tt=arguments[0],rt=new Array(tt.length).fill(null),nt=0;nt<tt.length;nt++)rt[nt]=new Coordinate(tt[nt]);return rt}else if(arguments.length===5)for(var lt=arguments[0],ut=arguments[1],dt=arguments[2],pt=arguments[3],ht=arguments[4],mt=0;mt<ht;mt++)dt[pt+mt]=new Coordinate(lt[ut+mt])};CoordinateArrays.isEqualReversed=function(tt,rt){for(var nt=0;nt<tt.length;nt++){var lt=tt[nt],ut=rt[tt.length-nt-1];if(lt.compareTo(ut)!==0)return!1}return!0};CoordinateArrays.envelope=function(tt){for(var rt=new Envelope,nt=0;nt<tt.length;nt++)rt.expandToInclude(tt[nt]);return rt};CoordinateArrays.toCoordinateArray=function(tt){return tt.toArray(CoordinateArrays.coordArrayType)};CoordinateArrays.atLeastNCoordinatesOrNothing=function(tt,rt){return rt.length>=tt?rt:[]};CoordinateArrays.indexOf=function(tt,rt){for(var nt=0;nt<rt.length;nt++)if(tt.equals(rt[nt]))return nt;return-1};CoordinateArrays.increasingDirection=function(tt){for(var rt=0;rt<Math.trunc(tt.length/2);rt++){var nt=tt.length-1-rt,lt=tt[rt].compareTo(tt[nt]);if(lt!==0)return lt}return 1};CoordinateArrays.compare=function(tt,rt){for(var nt=0;nt<tt.length&&nt<rt.length;){var lt=tt[nt].compareTo(rt[nt]);if(lt!==0)return lt;nt++}return nt<rt.length?-1:nt<tt.length?1:0};CoordinateArrays.minCoordinate=function(tt){for(var rt=null,nt=0;nt<tt.length;nt++)(rt===null||rt.compareTo(tt[nt])>0)&&(rt=tt[nt]);return rt};CoordinateArrays.extract=function(tt,rt,nt){rt=MathUtil.clamp(rt,0,tt.length),nt=MathUtil.clamp(nt,-1,tt.length);var lt=nt-rt+1;nt<0&&(lt=0),rt>=tt.length&&(lt=0),nt<rt&&(lt=0);var ut=new Array(lt).fill(null);if(lt===0)return ut;for(var dt=0,pt=rt;pt<=nt;pt++)ut[dt++]=tt[pt];return ut};Object.defineProperties(CoordinateArrays,staticAccessors$13);var ForwardComparator=function(){};ForwardComparator.prototype.compare=function(tt,rt){var nt=tt,lt=rt;return CoordinateArrays.compare(nt,lt)};ForwardComparator.prototype.interfaces_=function(){return[Comparator]};ForwardComparator.prototype.getClass=function(){return ForwardComparator};var BidirectionalComparator=function(){};BidirectionalComparator.prototype.compare=function(tt,rt){var nt=tt,lt=rt;if(nt.length<lt.length)return-1;if(nt.length>lt.length)return 1;if(nt.length===0)return 0;var ut=CoordinateArrays.compare(nt,lt),dt=CoordinateArrays.isEqualReversed(nt,lt);return dt?0:ut};BidirectionalComparator.prototype.OLDcompare=function(tt,rt){var nt=tt,lt=rt;if(nt.length<lt.length)return-1;if(nt.length>lt.length)return 1;if(nt.length===0)return 0;for(var ut=CoordinateArrays.increasingDirection(nt),dt=CoordinateArrays.increasingDirection(lt),pt=ut>0?0:nt.length-1,ht=dt>0?0:nt.length-1,mt=0;mt<nt.length;mt++){var xt=nt[pt].compareTo(lt[ht]);if(xt!==0)return xt;pt+=ut,ht+=dt}return 0};BidirectionalComparator.prototype.interfaces_=function(){return[Comparator]};BidirectionalComparator.prototype.getClass=function(){return BidirectionalComparator};var Map$1=function(){};Map$1.prototype.get=function(){};Map$1.prototype.put=function(){};Map$1.prototype.size=function(){};Map$1.prototype.values=function(){};Map$1.prototype.entrySet=function(){};var SortedMap=function(et){function tt(){et.apply(this,arguments)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt}(Map$1);function OperationNotSupported(et){this.message=et||""}OperationNotSupported.prototype=new Error;OperationNotSupported.prototype.name="OperationNotSupported";function Set$1(){}Set$1.prototype=new Collection;Set$1.prototype.contains=function(){};var HashSet=function(et){function tt(){et.call(this),this.array_=[],arguments[0]instanceof Collection&&this.addAll(arguments[0])}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.contains=function(nt){for(var lt=this,ut=0,dt=this.array_.length;ut<dt;ut++){var pt=lt.array_[ut];if(pt===nt)return!0}return!1},tt.prototype.add=function(nt){return this.contains(nt)?!1:(this.array_.push(nt),!0)},tt.prototype.addAll=function(nt){for(var lt=this,ut=nt.iterator();ut.hasNext();)lt.add(ut.next());return!0},tt.prototype.remove=function(nt){throw new Error},tt.prototype.size=function(){return this.array_.length},tt.prototype.isEmpty=function(){return this.array_.length===0},tt.prototype.toArray=function(){for(var nt=this,lt=[],ut=0,dt=this.array_.length;ut<dt;ut++)lt.push(nt.array_[ut]);return lt},tt.prototype.iterator=function(){return new Iterator_$1(this)},tt}(Set$1),Iterator_$1=function(et){function tt(rt){et.call(this),this.hashSet_=rt,this.position_=0}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new NoSuchElementException;return this.hashSet_.array_[this.position_++]},tt.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},tt.prototype.remove=function(){throw new OperationNotSupported},tt}(Iterator$1),BLACK=0,RED=1;function colorOf(et){return et===null?BLACK:et.color}function parentOf(et){return et===null?null:et.parent}function setColor(et,tt){et!==null&&(et.color=tt)}function leftOf(et){return et===null?null:et.left}function rightOf(et){return et===null?null:et.right}function TreeMap(){this.root_=null,this.size_=0}TreeMap.prototype=new SortedMap;TreeMap.prototype.get=function(et){for(var tt=this.root_;tt!==null;){var rt=et.compareTo(tt.key);if(rt<0)tt=tt.left;else if(rt>0)tt=tt.right;else return tt.value}return null};TreeMap.prototype.put=function(et,tt){if(this.root_===null)return this.root_={key:et,value:tt,left:null,right:null,parent:null,color:BLACK,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var rt=this.root_,nt,lt;do if(nt=rt,lt=et.compareTo(rt.key),lt<0)rt=rt.left;else if(lt>0)rt=rt.right;else{var ut=rt.value;return rt.value=tt,ut}while(rt!==null);var dt={key:et,left:null,right:null,value:tt,parent:nt,color:BLACK,getValue:function(){return this.value},getKey:function(){return this.key}};return lt<0?nt.left=dt:nt.right=dt,this.fixAfterInsertion(dt),this.size_++,null};TreeMap.prototype.fixAfterInsertion=function(et){var tt=this;for(et.color=RED;et!=null&&et!==this.root_&&et.parent.color===RED;)if(parentOf(et)===leftOf(parentOf(parentOf(et)))){var rt=rightOf(parentOf(parentOf(et)));colorOf(rt)===RED?(setColor(parentOf(et),BLACK),setColor(rt,BLACK),setColor(parentOf(parentOf(et)),RED),et=parentOf(parentOf(et))):(et===rightOf(parentOf(et))&&(et=parentOf(et),tt.rotateLeft(et)),setColor(parentOf(et),BLACK),setColor(parentOf(parentOf(et)),RED),tt.rotateRight(parentOf(parentOf(et))))}else{var nt=leftOf(parentOf(parentOf(et)));colorOf(nt)===RED?(setColor(parentOf(et),BLACK),setColor(nt,BLACK),setColor(parentOf(parentOf(et)),RED),et=parentOf(parentOf(et))):(et===leftOf(parentOf(et))&&(et=parentOf(et),tt.rotateRight(et)),setColor(parentOf(et),BLACK),setColor(parentOf(parentOf(et)),RED),tt.rotateLeft(parentOf(parentOf(et))))}this.root_.color=BLACK};TreeMap.prototype.values=function(){var et=new ArrayList,tt=this.getFirstEntry();if(tt!==null)for(et.add(tt.value);(tt=TreeMap.successor(tt))!==null;)et.add(tt.value);return et};TreeMap.prototype.entrySet=function(){var et=new HashSet,tt=this.getFirstEntry();if(tt!==null)for(et.add(tt);(tt=TreeMap.successor(tt))!==null;)et.add(tt);return et};TreeMap.prototype.rotateLeft=function(et){if(et!=null){var tt=et.right;et.right=tt.left,tt.left!=null&&(tt.left.parent=et),tt.parent=et.parent,et.parent===null?this.root_=tt:et.parent.left===et?et.parent.left=tt:et.parent.right=tt,tt.left=et,et.parent=tt}};TreeMap.prototype.rotateRight=function(et){if(et!=null){var tt=et.left;et.left=tt.right,tt.right!=null&&(tt.right.parent=et),tt.parent=et.parent,et.parent===null?this.root_=tt:et.parent.right===et?et.parent.right=tt:et.parent.left=tt,tt.right=et,et.parent=tt}};TreeMap.prototype.getFirstEntry=function(){var et=this.root_;if(et!=null)for(;et.left!=null;)et=et.left;return et};TreeMap.successor=function(et){if(et===null)return null;if(et.right!==null){for(var tt=et.right;tt.left!==null;)tt=tt.left;return tt}else{for(var rt=et.parent,nt=et;rt!==null&&nt===rt.right;)nt=rt,rt=rt.parent;return rt}};TreeMap.prototype.size=function(){return this.size_};var Lineal=function(){};Lineal.prototype.interfaces_=function(){return[]};Lineal.prototype.getClass=function(){return Lineal};function SortedSet(){}SortedSet.prototype=new Set$1;function TreeSet(){this.array_=[],arguments[0]instanceof Collection&&this.addAll(arguments[0])}TreeSet.prototype=new SortedSet;TreeSet.prototype.contains=function(et){for(var tt=this,rt=0,nt=this.array_.length;rt<nt;rt++){var lt=tt.array_[rt];if(lt.compareTo(et)===0)return!0}return!1};TreeSet.prototype.add=function(et){var tt=this;if(this.contains(et))return!1;for(var rt=0,nt=this.array_.length;rt<nt;rt++){var lt=tt.array_[rt];if(lt.compareTo(et)===1)return tt.array_.splice(rt,0,et),!0}return this.array_.push(et),!0};TreeSet.prototype.addAll=function(et){for(var tt=this,rt=et.iterator();rt.hasNext();)tt.add(rt.next());return!0};TreeSet.prototype.remove=function(et){throw new OperationNotSupported};TreeSet.prototype.size=function(){return this.array_.length};TreeSet.prototype.isEmpty=function(){return this.array_.length===0};TreeSet.prototype.toArray=function(){for(var et=this,tt=[],rt=0,nt=this.array_.length;rt<nt;rt++)tt.push(et.array_[rt]);return tt};TreeSet.prototype.iterator=function(){return new Iterator_$2(this)};var Iterator_$2=function(et){this.treeSet_=et,this.position_=0};Iterator_$2.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new NoSuchElementException;return this.treeSet_.array_[this.position_++]};Iterator_$2.prototype.hasNext=function(){return this.position_<this.treeSet_.size()};Iterator_$2.prototype.remove=function(){throw new OperationNotSupported};var Arrays=function(){};Arrays.sort=function(){var tt=arguments[0],rt,nt,lt,ut;if(arguments.length===1)ut=function(pt,ht){return pt.compareTo(ht)},tt.sort(ut);else if(arguments.length===2)lt=arguments[1],ut=function(pt,ht){return lt.compare(pt,ht)},tt.sort(ut);else if(arguments.length===3){nt=tt.slice(arguments[1],arguments[2]),nt.sort();var dt=tt.slice(0,arguments[1]).concat(nt,tt.slice(arguments[2],tt.length));for(tt.splice(0,tt.length),rt=0;rt<dt.length;rt++)tt.push(dt[rt])}else if(arguments.length===4)for(nt=tt.slice(arguments[1],arguments[2]),lt=arguments[3],ut=function(pt,ht){return lt.compare(pt,ht)},nt.sort(ut),dt=tt.slice(0,arguments[1]).concat(nt,tt.slice(arguments[2],tt.length)),tt.splice(0,tt.length),rt=0;rt<dt.length;rt++)tt.push(dt[rt])};Arrays.asList=function(tt){for(var rt=new ArrayList,nt=0,lt=tt.length;nt<lt;nt++)rt.add(tt[nt]);return rt};var Dimension=function(){},staticAccessors$14={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};staticAccessors$14.P.get=function(){return 0};staticAccessors$14.L.get=function(){return 1};staticAccessors$14.A.get=function(){return 2};staticAccessors$14.FALSE.get=function(){return-1};staticAccessors$14.TRUE.get=function(){return-2};staticAccessors$14.DONTCARE.get=function(){return-3};staticAccessors$14.SYM_FALSE.get=function(){return"F"};staticAccessors$14.SYM_TRUE.get=function(){return"T"};staticAccessors$14.SYM_DONTCARE.get=function(){return"*"};staticAccessors$14.SYM_P.get=function(){return"0"};staticAccessors$14.SYM_L.get=function(){return"1"};staticAccessors$14.SYM_A.get=function(){return"2"};Dimension.prototype.interfaces_=function(){return[]};Dimension.prototype.getClass=function(){return Dimension};Dimension.toDimensionSymbol=function(tt){switch(tt){case Dimension.FALSE:return Dimension.SYM_FALSE;case Dimension.TRUE:return Dimension.SYM_TRUE;case Dimension.DONTCARE:return Dimension.SYM_DONTCARE;case Dimension.P:return Dimension.SYM_P;case Dimension.L:return Dimension.SYM_L;case Dimension.A:return Dimension.SYM_A}throw new IllegalArgumentException("Unknown dimension value: "+tt)};Dimension.toDimensionValue=function(tt){switch(Character.toUpperCase(tt)){case Dimension.SYM_FALSE:return Dimension.FALSE;case Dimension.SYM_TRUE:return Dimension.TRUE;case Dimension.SYM_DONTCARE:return Dimension.DONTCARE;case Dimension.SYM_P:return Dimension.P;case Dimension.SYM_L:return Dimension.L;case Dimension.SYM_A:return Dimension.A}throw new IllegalArgumentException("Unknown dimension symbol: "+tt)};Object.defineProperties(Dimension,staticAccessors$14);var GeometryFilter=function(){};GeometryFilter.prototype.filter=function(tt){};GeometryFilter.prototype.interfaces_=function(){return[]};GeometryFilter.prototype.getClass=function(){return GeometryFilter};var CoordinateSequenceFilter=function(){};CoordinateSequenceFilter.prototype.filter=function(tt,rt){};CoordinateSequenceFilter.prototype.isDone=function(){};CoordinateSequenceFilter.prototype.isGeometryChanged=function(){};CoordinateSequenceFilter.prototype.interfaces_=function(){return[]};CoordinateSequenceFilter.prototype.getClass=function(){return CoordinateSequenceFilter};var GeometryCollection=function(et){function tt(nt,lt){if(et.call(this,lt),this._geometries=nt||[],et.hasNullElements(this._geometries))throw new IllegalArgumentException("geometries must not contain null elements")}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={serialVersionUID:{configurable:!0}};return tt.prototype.computeEnvelopeInternal=function(){for(var lt=this,ut=new Envelope,dt=0;dt<this._geometries.length;dt++)ut.expandToInclude(lt._geometries[dt].getEnvelopeInternal());return ut},tt.prototype.getGeometryN=function(lt){return this._geometries[lt]},tt.prototype.getSortIndex=function(){return et.SORTINDEX_GEOMETRYCOLLECTION},tt.prototype.getCoordinates=function(){for(var lt=this,ut=new Array(this.getNumPoints()).fill(null),dt=-1,pt=0;pt<this._geometries.length;pt++)for(var ht=lt._geometries[pt].getCoordinates(),mt=0;mt<ht.length;mt++)dt++,ut[dt]=ht[mt];return ut},tt.prototype.getArea=function(){for(var lt=this,ut=0,dt=0;dt<this._geometries.length;dt++)ut+=lt._geometries[dt].getArea();return ut},tt.prototype.equalsExact=function(){var lt=this;if(arguments.length===2){var ut=arguments[0],dt=arguments[1];if(!this.isEquivalentClass(ut))return!1;var pt=ut;if(this._geometries.length!==pt._geometries.length)return!1;for(var ht=0;ht<this._geometries.length;ht++)if(!lt._geometries[ht].equalsExact(pt._geometries[ht],dt))return!1;return!0}else return et.prototype.equalsExact.apply(this,arguments)},tt.prototype.normalize=function(){for(var lt=this,ut=0;ut<this._geometries.length;ut++)lt._geometries[ut].normalize();Arrays.sort(this._geometries)},tt.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},tt.prototype.getBoundaryDimension=function(){for(var lt=this,ut=Dimension.FALSE,dt=0;dt<this._geometries.length;dt++)ut=Math.max(ut,lt._geometries[dt].getBoundaryDimension());return ut},tt.prototype.getDimension=function(){for(var lt=this,ut=Dimension.FALSE,dt=0;dt<this._geometries.length;dt++)ut=Math.max(ut,lt._geometries[dt].getDimension());return ut},tt.prototype.getLength=function(){for(var lt=this,ut=0,dt=0;dt<this._geometries.length;dt++)ut+=lt._geometries[dt].getLength();return ut},tt.prototype.getNumPoints=function(){for(var lt=this,ut=0,dt=0;dt<this._geometries.length;dt++)ut+=lt._geometries[dt].getNumPoints();return ut},tt.prototype.getNumGeometries=function(){return this._geometries.length},tt.prototype.reverse=function(){for(var lt=this,ut=this._geometries.length,dt=new Array(ut).fill(null),pt=0;pt<this._geometries.length;pt++)dt[pt]=lt._geometries[pt].reverse();return this.getFactory().createGeometryCollection(dt)},tt.prototype.compareToSameClass=function(){var lt=this;if(arguments.length===1){var ut=arguments[0],dt=new TreeSet(Arrays.asList(this._geometries)),pt=new TreeSet(Arrays.asList(ut._geometries));return this.compare(dt,pt)}else if(arguments.length===2){for(var ht=arguments[0],mt=arguments[1],xt=ht,Mt=this.getNumGeometries(),vt=xt.getNumGeometries(),Ot=0;Ot<Mt&&Ot<vt;){var At=lt.getGeometryN(Ot),Rt=xt.getGeometryN(Ot),zt=At.compareToSameClass(Rt,mt);if(zt!==0)return zt;Ot++}return Ot<Mt?1:Ot<vt?-1:0}},tt.prototype.apply=function(){var lt=this;if(hasInterface(arguments[0],CoordinateFilter))for(var ut=arguments[0],dt=0;dt<this._geometries.length;dt++)lt._geometries[dt].apply(ut);else if(hasInterface(arguments[0],CoordinateSequenceFilter)){var pt=arguments[0];if(this._geometries.length===0)return null;for(var ht=0;ht<this._geometries.length&&(lt._geometries[ht].apply(pt),!pt.isDone());ht++);pt.isGeometryChanged()&&this.geometryChanged()}else if(hasInterface(arguments[0],GeometryFilter)){var mt=arguments[0];mt.filter(this);for(var xt=0;xt<this._geometries.length;xt++)lt._geometries[xt].apply(mt)}else if(hasInterface(arguments[0],GeometryComponentFilter)){var Mt=arguments[0];Mt.filter(this);for(var vt=0;vt<this._geometries.length;vt++)lt._geometries[vt].apply(Mt)}},tt.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),Assert.shouldNeverReachHere(),null},tt.prototype.clone=function(){var lt=this,ut=et.prototype.clone.call(this);ut._geometries=new Array(this._geometries.length).fill(null);for(var dt=0;dt<this._geometries.length;dt++)ut._geometries[dt]=lt._geometries[dt].clone();return ut},tt.prototype.getGeometryType=function(){return"GeometryCollection"},tt.prototype.copy=function(){for(var lt=this,ut=new Array(this._geometries.length).fill(null),dt=0;dt<ut.length;dt++)ut[dt]=lt._geometries[dt].copy();return new tt(ut,this._factory)},tt.prototype.isEmpty=function(){for(var lt=this,ut=0;ut<this._geometries.length;ut++)if(!lt._geometries[ut].isEmpty())return!1;return!0},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},rt.serialVersionUID.get=function(){return-5694727726395021e3},Object.defineProperties(tt,rt),tt}(Geometry),MultiLineString=function(et){function tt(){et.apply(this,arguments)}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={serialVersionUID:{configurable:!0}};return tt.prototype.getSortIndex=function(){return Geometry.SORTINDEX_MULTILINESTRING},tt.prototype.equalsExact=function(){if(arguments.length===2){var lt=arguments[0],ut=arguments[1];return this.isEquivalentClass(lt)?et.prototype.equalsExact.call(this,lt,ut):!1}else return et.prototype.equalsExact.apply(this,arguments)},tt.prototype.getBoundaryDimension=function(){return this.isClosed()?Dimension.FALSE:0},tt.prototype.isClosed=function(){var lt=this;if(this.isEmpty())return!1;for(var ut=0;ut<this._geometries.length;ut++)if(!lt._geometries[ut].isClosed())return!1;return!0},tt.prototype.getDimension=function(){return 1},tt.prototype.reverse=function(){for(var lt=this,ut=this._geometries.length,dt=new Array(ut).fill(null),pt=0;pt<this._geometries.length;pt++)dt[ut-1-pt]=lt._geometries[pt].reverse();return this.getFactory().createMultiLineString(dt)},tt.prototype.getBoundary=function(){return new BoundaryOp(this).getBoundary()},tt.prototype.getGeometryType=function(){return"MultiLineString"},tt.prototype.copy=function(){for(var lt=this,ut=new Array(this._geometries.length).fill(null),dt=0;dt<ut.length;dt++)ut[dt]=lt._geometries[dt].copy();return new tt(ut,this._factory)},tt.prototype.interfaces_=function(){return[Lineal]},tt.prototype.getClass=function(){return tt},rt.serialVersionUID.get=function(){return 8166665132445434e3},Object.defineProperties(tt,rt),tt}(GeometryCollection),BoundaryOp=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,arguments.length===1){var tt=arguments[0],rt=BoundaryNodeRule.MOD2_BOUNDARY_RULE;this._geom=tt,this._geomFact=tt.getFactory(),this._bnRule=rt}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];this._geom=nt,this._geomFact=nt.getFactory(),this._bnRule=lt}};BoundaryOp.prototype.boundaryMultiLineString=function(tt){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var rt=this.computeBoundaryCoordinates(tt);return rt.length===1?this._geomFact.createPoint(rt[0]):this._geomFact.createMultiPointFromCoords(rt)};BoundaryOp.prototype.getBoundary=function(){return this._geom instanceof LineString?this.boundaryLineString(this._geom):this._geom instanceof MultiLineString?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()};BoundaryOp.prototype.boundaryLineString=function(tt){if(this._geom.isEmpty())return this.getEmptyMultiPoint();if(tt.isClosed()){var rt=this._bnRule.isInBoundary(2);return rt?tt.getStartPoint():this._geomFact.createMultiPoint()}return this._geomFact.createMultiPoint([tt.getStartPoint(),tt.getEndPoint()])};BoundaryOp.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()};BoundaryOp.prototype.computeBoundaryCoordinates=function(tt){var rt=this,nt=new ArrayList;this._endpointMap=new TreeMap;for(var lt=0;lt<tt.getNumGeometries();lt++){var ut=tt.getGeometryN(lt);ut.getNumPoints()!==0&&(rt.addEndpoint(ut.getCoordinateN(0)),rt.addEndpoint(ut.getCoordinateN(ut.getNumPoints()-1)))}for(var dt=this._endpointMap.entrySet().iterator();dt.hasNext();){var pt=dt.next(),ht=pt.getValue(),mt=ht.count;rt._bnRule.isInBoundary(mt)&&nt.add(pt.getKey())}return CoordinateArrays.toCoordinateArray(nt)};BoundaryOp.prototype.addEndpoint=function(tt){var rt=this._endpointMap.get(tt);rt===null&&(rt=new Counter,this._endpointMap.put(tt,rt)),rt.count++};BoundaryOp.prototype.interfaces_=function(){return[]};BoundaryOp.prototype.getClass=function(){return BoundaryOp};BoundaryOp.getBoundary=function(){if(arguments.length===1){var tt=arguments[0],rt=new BoundaryOp(tt);return rt.getBoundary()}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1],ut=new BoundaryOp(nt,lt);return ut.getBoundary()}};var Counter=function(){this.count=null};Counter.prototype.interfaces_=function(){return[]};Counter.prototype.getClass=function(){return Counter};function PrintStream(){}function StringReader(){}var DecimalFormat=function(){};function ByteArrayOutputStream(){}function IOException(){}function LineNumberReader(){}var StringUtil=function(){},staticAccessors$15={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};StringUtil.prototype.interfaces_=function(){return[]};StringUtil.prototype.getClass=function(){return StringUtil};StringUtil.chars=function(tt,rt){for(var nt=new Array(rt).fill(null),lt=0;lt<rt;lt++)nt[lt]=tt;return String(nt)};StringUtil.getStackTrace=function(){if(arguments.length===1){var tt=arguments[0],rt=new ByteArrayOutputStream,nt=new PrintStream;return tt.printStackTrace(nt),rt.toString()}else if(arguments.length===2){var lt=arguments[0],ut=arguments[1],dt="";new StringReader(StringUtil.getStackTrace(lt));for(var pt=new LineNumberReader,ht=0;ht<ut;ht++)try{dt+=pt.readLine()+StringUtil.NEWLINE}catch(mt){if(mt instanceof IOException)Assert.shouldNeverReachHere();else throw mt}finally{}return dt}};StringUtil.split=function(tt,rt){for(var nt=rt.length,lt=new ArrayList,ut=""+tt,dt=ut.indexOf(rt);dt>=0;){var pt=ut.substring(0,dt);lt.add(pt),ut=ut.substring(dt+nt),dt=ut.indexOf(rt)}ut.length>0&&lt.add(ut);for(var ht=new Array(lt.size()).fill(null),mt=0;mt<ht.length;mt++)ht[mt]=lt.get(mt);return ht};StringUtil.toString=function(){if(arguments.length===1){var tt=arguments[0];return StringUtil.SIMPLE_ORDINATE_FORMAT.format(tt)}};StringUtil.spaces=function(tt){return StringUtil.chars(" ",tt)};staticAccessors$15.NEWLINE.get=function(){return System.getProperty("line.separator")};staticAccessors$15.SIMPLE_ORDINATE_FORMAT.get=function(){return new DecimalFormat};Object.defineProperties(StringUtil,staticAccessors$15);var CoordinateSequences=function(){};CoordinateSequences.prototype.interfaces_=function(){return[]};CoordinateSequences.prototype.getClass=function(){return CoordinateSequences};CoordinateSequences.copyCoord=function(tt,rt,nt,lt){for(var ut=Math.min(tt.getDimension(),nt.getDimension()),dt=0;dt<ut;dt++)nt.setOrdinate(lt,dt,tt.getOrdinate(rt,dt))};CoordinateSequences.isRing=function(tt){var rt=tt.size();return rt===0?!0:rt<=3?!1:tt.getOrdinate(0,CoordinateSequence.X)===tt.getOrdinate(rt-1,CoordinateSequence.X)&&tt.getOrdinate(0,CoordinateSequence.Y)===tt.getOrdinate(rt-1,CoordinateSequence.Y)};CoordinateSequences.isEqual=function(tt,rt){var nt=tt.size(),lt=rt.size();if(nt!==lt)return!1;for(var ut=Math.min(tt.getDimension(),rt.getDimension()),dt=0;dt<nt;dt++)for(var pt=0;pt<ut;pt++){var ht=tt.getOrdinate(dt,pt),mt=rt.getOrdinate(dt,pt);if(tt.getOrdinate(dt,pt)!==rt.getOrdinate(dt,pt)&&!(Double.isNaN(ht)&&Double.isNaN(mt)))return!1}return!0};CoordinateSequences.extend=function(tt,rt,nt){var lt=tt.create(nt,rt.getDimension()),ut=rt.size();if(CoordinateSequences.copy(rt,0,lt,0,ut),ut>0)for(var dt=ut;dt<nt;dt++)CoordinateSequences.copy(rt,ut-1,lt,dt,1);return lt};CoordinateSequences.reverse=function(tt){for(var rt=tt.size()-1,nt=Math.trunc(rt/2),lt=0;lt<=nt;lt++)CoordinateSequences.swap(tt,lt,rt-lt)};CoordinateSequences.swap=function(tt,rt,nt){if(rt===nt)return null;for(var lt=0;lt<tt.getDimension();lt++){var ut=tt.getOrdinate(rt,lt);tt.setOrdinate(rt,lt,tt.getOrdinate(nt,lt)),tt.setOrdinate(nt,lt,ut)}};CoordinateSequences.copy=function(tt,rt,nt,lt,ut){for(var dt=0;dt<ut;dt++)CoordinateSequences.copyCoord(tt,rt+dt,nt,lt+dt)};CoordinateSequences.toString=function(){if(arguments.length===1){var tt=arguments[0],rt=tt.size();if(rt===0)return"()";var nt=tt.getDimension(),lt=new StringBuffer;lt.append("(");for(var ut=0;ut<rt;ut++){ut>0&&lt.append(" ");for(var dt=0;dt<nt;dt++)dt>0&&lt.append(","),lt.append(StringUtil.toString(tt.getOrdinate(ut,dt)))}return lt.append(")"),lt.toString()}};CoordinateSequences.ensureValidRing=function(tt,rt){var nt=rt.size();if(nt===0)return rt;if(nt<=3)return CoordinateSequences.createClosedRing(tt,rt,4);var lt=rt.getOrdinate(0,CoordinateSequence.X)===rt.getOrdinate(nt-1,CoordinateSequence.X)&&rt.getOrdinate(0,CoordinateSequence.Y)===rt.getOrdinate(nt-1,CoordinateSequence.Y);return lt?rt:CoordinateSequences.createClosedRing(tt,rt,nt+1)};CoordinateSequences.createClosedRing=function(tt,rt,nt){var lt=tt.create(nt,rt.getDimension()),ut=rt.size();CoordinateSequences.copy(rt,0,lt,0,ut);for(var dt=ut;dt<nt;dt++)CoordinateSequences.copy(rt,0,lt,dt,1);return lt};var LineString=function(et){function tt(nt,lt){et.call(this,lt),this._points=null,this.init(nt)}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={serialVersionUID:{configurable:!0}};return tt.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new Envelope:this._points.expandEnvelope(new Envelope)},tt.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},tt.prototype.getSortIndex=function(){return et.SORTINDEX_LINESTRING},tt.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},tt.prototype.equalsExact=function(){var lt=this;if(arguments.length===2){var ut=arguments[0],dt=arguments[1];if(!this.isEquivalentClass(ut))return!1;var pt=ut;if(this._points.size()!==pt._points.size())return!1;for(var ht=0;ht<this._points.size();ht++)if(!lt.equal(lt._points.getCoordinate(ht),pt._points.getCoordinate(ht),dt))return!1;return!0}else return et.prototype.equalsExact.apply(this,arguments)},tt.prototype.normalize=function(){for(var lt=this,ut=0;ut<Math.trunc(this._points.size()/2);ut++){var dt=lt._points.size()-1-ut;if(!lt._points.getCoordinate(ut).equals(lt._points.getCoordinate(dt)))return lt._points.getCoordinate(ut).compareTo(lt._points.getCoordinate(dt))>0&&CoordinateSequences.reverse(lt._points),null}},tt.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},tt.prototype.getBoundaryDimension=function(){return this.isClosed()?Dimension.FALSE:0},tt.prototype.isClosed=function(){return this.isEmpty()?!1:this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},tt.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},tt.prototype.getDimension=function(){return 1},tt.prototype.getLength=function(){return CGAlgorithms.computeLength(this._points)},tt.prototype.getNumPoints=function(){return this._points.size()},tt.prototype.reverse=function(){var lt=this._points.copy();CoordinateSequences.reverse(lt);var ut=this.getFactory().createLineString(lt);return ut},tt.prototype.compareToSameClass=function(){var lt=this;if(arguments.length===1){for(var ut=arguments[0],dt=ut,pt=0,ht=0;pt<this._points.size()&&ht<dt._points.size();){var mt=lt._points.getCoordinate(pt).compareTo(dt._points.getCoordinate(ht));if(mt!==0)return mt;pt++,ht++}return pt<this._points.size()?1:ht<dt._points.size()?-1:0}else if(arguments.length===2){var xt=arguments[0],Mt=arguments[1],vt=xt;return Mt.compare(this._points,vt._points)}},tt.prototype.apply=function(){var lt=this;if(hasInterface(arguments[0],CoordinateFilter))for(var ut=arguments[0],dt=0;dt<this._points.size();dt++)ut.filter(lt._points.getCoordinate(dt));else if(hasInterface(arguments[0],CoordinateSequenceFilter)){var pt=arguments[0];if(this._points.size()===0)return null;for(var ht=0;ht<this._points.size()&&(pt.filter(lt._points,ht),!pt.isDone());ht++);pt.isGeometryChanged()&&this.geometryChanged()}else if(hasInterface(arguments[0],GeometryFilter)){var mt=arguments[0];mt.filter(this)}else if(hasInterface(arguments[0],GeometryComponentFilter)){var xt=arguments[0];xt.filter(this)}},tt.prototype.getBoundary=function(){return new BoundaryOp(this).getBoundary()},tt.prototype.isEquivalentClass=function(lt){return lt instanceof tt},tt.prototype.clone=function(){var lt=et.prototype.clone.call(this);return lt._points=this._points.clone(),lt},tt.prototype.getCoordinateN=function(lt){return this._points.getCoordinate(lt)},tt.prototype.getGeometryType=function(){return"LineString"},tt.prototype.copy=function(){return new tt(this._points.copy(),this._factory)},tt.prototype.getCoordinateSequence=function(){return this._points},tt.prototype.isEmpty=function(){return this._points.size()===0},tt.prototype.init=function(lt){if(lt===null&&(lt=this.getFactory().getCoordinateSequenceFactory().create([])),lt.size()===1)throw new IllegalArgumentException("Invalid number of points in LineString (found "+lt.size()+" - must be 0 or >= 2)");this._points=lt},tt.prototype.isCoordinate=function(lt){for(var ut=this,dt=0;dt<this._points.size();dt++)if(ut._points.getCoordinate(dt).equals(lt))return!0;return!1},tt.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},tt.prototype.getPointN=function(lt){return this.getFactory().createPoint(this._points.getCoordinate(lt))},tt.prototype.interfaces_=function(){return[Lineal]},tt.prototype.getClass=function(){return tt},rt.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(tt,rt),tt}(Geometry),Puntal=function(){};Puntal.prototype.interfaces_=function(){return[]};Puntal.prototype.getClass=function(){return Puntal};var Point$3=function(et){function tt(nt,lt){et.call(this,lt),this._coordinates=nt||null,this.init(this._coordinates)}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={serialVersionUID:{configurable:!0}};return tt.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new Envelope;var lt=new Envelope;return lt.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),lt},tt.prototype.getSortIndex=function(){return et.SORTINDEX_POINT},tt.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},tt.prototype.equalsExact=function(){if(arguments.length===2){var lt=arguments[0],ut=arguments[1];return this.isEquivalentClass(lt)?this.isEmpty()&&lt.isEmpty()?!0:this.isEmpty()!==lt.isEmpty()?!1:this.equal(lt.getCoordinate(),this.getCoordinate(),ut):!1}else return et.prototype.equalsExact.apply(this,arguments)},tt.prototype.normalize=function(){},tt.prototype.getCoordinate=function(){return this._coordinates.size()!==0?this._coordinates.getCoordinate(0):null},tt.prototype.getBoundaryDimension=function(){return Dimension.FALSE},tt.prototype.getDimension=function(){return 0},tt.prototype.getNumPoints=function(){return this.isEmpty()?0:1},tt.prototype.reverse=function(){return this.copy()},tt.prototype.getX=function(){if(this.getCoordinate()===null)throw new Error("getX called on empty Point");return this.getCoordinate().x},tt.prototype.compareToSameClass=function(){if(arguments.length===1){var lt=arguments[0],ut=lt;return this.getCoordinate().compareTo(ut.getCoordinate())}else if(arguments.length===2){var dt=arguments[0],pt=arguments[1],ht=dt;return pt.compare(this._coordinates,ht._coordinates)}},tt.prototype.apply=function(){if(hasInterface(arguments[0],CoordinateFilter)){var lt=arguments[0];if(this.isEmpty())return null;lt.filter(this.getCoordinate())}else if(hasInterface(arguments[0],CoordinateSequenceFilter)){var ut=arguments[0];if(this.isEmpty())return null;ut.filter(this._coordinates,0),ut.isGeometryChanged()&&this.geometryChanged()}else if(hasInterface(arguments[0],GeometryFilter)){var dt=arguments[0];dt.filter(this)}else if(hasInterface(arguments[0],GeometryComponentFilter)){var pt=arguments[0];pt.filter(this)}},tt.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},tt.prototype.clone=function(){var lt=et.prototype.clone.call(this);return lt._coordinates=this._coordinates.clone(),lt},tt.prototype.getGeometryType=function(){return"Point"},tt.prototype.copy=function(){return new tt(this._coordinates.copy(),this._factory)},tt.prototype.getCoordinateSequence=function(){return this._coordinates},tt.prototype.getY=function(){if(this.getCoordinate()===null)throw new Error("getY called on empty Point");return this.getCoordinate().y},tt.prototype.isEmpty=function(){return this._coordinates.size()===0},tt.prototype.init=function(lt){lt===null&&(lt=this.getFactory().getCoordinateSequenceFactory().create([])),Assert.isTrue(lt.size()<=1),this._coordinates=lt},tt.prototype.isSimple=function(){return!0},tt.prototype.interfaces_=function(){return[Puntal]},tt.prototype.getClass=function(){return tt},rt.serialVersionUID.get=function(){return 4902022702746615e3},Object.defineProperties(tt,rt),tt}(Geometry),Polygonal=function(){};Polygonal.prototype.interfaces_=function(){return[]};Polygonal.prototype.getClass=function(){return Polygonal};var Polygon=function(et){function tt(nt,lt,ut){if(et.call(this,ut),this._shell=null,this._holes=null,nt===null&&(nt=this.getFactory().createLinearRing()),lt===null&&(lt=[]),et.hasNullElements(lt))throw new IllegalArgumentException("holes must not contain null elements");if(nt.isEmpty()&&et.hasNonEmptyElements(lt))throw new IllegalArgumentException("shell is empty but holes are not");this._shell=nt,this._holes=lt}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={serialVersionUID:{configurable:!0}};return tt.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},tt.prototype.getSortIndex=function(){return et.SORTINDEX_POLYGON},tt.prototype.getCoordinates=function(){var lt=this;if(this.isEmpty())return[];for(var ut=new Array(this.getNumPoints()).fill(null),dt=-1,pt=this._shell.getCoordinates(),ht=0;ht<pt.length;ht++)dt++,ut[dt]=pt[ht];for(var mt=0;mt<this._holes.length;mt++)for(var xt=lt._holes[mt].getCoordinates(),Mt=0;Mt<xt.length;Mt++)dt++,ut[dt]=xt[Mt];return ut},tt.prototype.getArea=function(){var lt=this,ut=0;ut+=Math.abs(CGAlgorithms.signedArea(this._shell.getCoordinateSequence()));for(var dt=0;dt<this._holes.length;dt++)ut-=Math.abs(CGAlgorithms.signedArea(lt._holes[dt].getCoordinateSequence()));return ut},tt.prototype.isRectangle=function(){if(this.getNumInteriorRing()!==0||this._shell===null||this._shell.getNumPoints()!==5)return!1;for(var lt=this._shell.getCoordinateSequence(),ut=this.getEnvelopeInternal(),dt=0;dt<5;dt++){var pt=lt.getX(dt);if(!(pt===ut.getMinX()||pt===ut.getMaxX()))return!1;var ht=lt.getY(dt);if(!(ht===ut.getMinY()||ht===ut.getMaxY()))return!1}for(var mt=lt.getX(0),xt=lt.getY(0),Mt=1;Mt<=4;Mt++){var vt=lt.getX(Mt),Ot=lt.getY(Mt),At=vt!==mt,Rt=Ot!==xt;if(At===Rt)return!1;mt=vt,xt=Ot}return!0},tt.prototype.equalsExact=function(){var lt=this;if(arguments.length===2){var ut=arguments[0],dt=arguments[1];if(!this.isEquivalentClass(ut))return!1;var pt=ut,ht=this._shell,mt=pt._shell;if(!ht.equalsExact(mt,dt)||this._holes.length!==pt._holes.length)return!1;for(var xt=0;xt<this._holes.length;xt++)if(!lt._holes[xt].equalsExact(pt._holes[xt],dt))return!1;return!0}else return et.prototype.equalsExact.apply(this,arguments)},tt.prototype.normalize=function(){var lt=this;if(arguments.length===0){this.normalize(this._shell,!0);for(var ut=0;ut<this._holes.length;ut++)lt.normalize(lt._holes[ut],!1);Arrays.sort(this._holes)}else if(arguments.length===2){var dt=arguments[0],pt=arguments[1];if(dt.isEmpty())return null;var ht=new Array(dt.getCoordinates().length-1).fill(null);System.arraycopy(dt.getCoordinates(),0,ht,0,ht.length);var mt=CoordinateArrays.minCoordinate(dt.getCoordinates());CoordinateArrays.scroll(ht,mt),System.arraycopy(ht,0,dt.getCoordinates(),0,ht.length),dt.getCoordinates()[ht.length]=ht[0],CGAlgorithms.isCCW(dt.getCoordinates())===pt&&CoordinateArrays.reverse(dt.getCoordinates())}},tt.prototype.getCoordinate=function(){return this._shell.getCoordinate()},tt.prototype.getNumInteriorRing=function(){return this._holes.length},tt.prototype.getBoundaryDimension=function(){return 1},tt.prototype.getDimension=function(){return 2},tt.prototype.getLength=function(){var lt=this,ut=0;ut+=this._shell.getLength();for(var dt=0;dt<this._holes.length;dt++)ut+=lt._holes[dt].getLength();return ut},tt.prototype.getNumPoints=function(){for(var lt=this,ut=this._shell.getNumPoints(),dt=0;dt<this._holes.length;dt++)ut+=lt._holes[dt].getNumPoints();return ut},tt.prototype.reverse=function(){var lt=this,ut=this.copy();ut._shell=this._shell.copy().reverse(),ut._holes=new Array(this._holes.length).fill(null);for(var dt=0;dt<this._holes.length;dt++)ut._holes[dt]=lt._holes[dt].copy().reverse();return ut},tt.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},tt.prototype.compareToSameClass=function(){var lt=this;if(arguments.length===1){var ut=arguments[0],dt=this._shell,pt=ut._shell;return dt.compareToSameClass(pt)}else if(arguments.length===2){var ht=arguments[0],mt=arguments[1],xt=ht,Mt=this._shell,vt=xt._shell,Ot=Mt.compareToSameClass(vt,mt);if(Ot!==0)return Ot;for(var At=this.getNumInteriorRing(),Rt=xt.getNumInteriorRing(),zt=0;zt<At&&zt<Rt;){var Tt=lt.getInteriorRingN(zt),Ct=xt.getInteriorRingN(zt),It=Tt.compareToSameClass(Ct,mt);if(It!==0)return It;zt++}return zt<At?1:zt<Rt?-1:0}},tt.prototype.apply=function(lt){var ut=this;if(hasInterface(lt,CoordinateFilter)){this._shell.apply(lt);for(var dt=0;dt<this._holes.length;dt++)ut._holes[dt].apply(lt)}else if(hasInterface(lt,CoordinateSequenceFilter)){if(this._shell.apply(lt),!lt.isDone())for(var pt=0;pt<this._holes.length&&(ut._holes[pt].apply(lt),!lt.isDone());pt++);lt.isGeometryChanged()&&this.geometryChanged()}else if(hasInterface(lt,GeometryFilter))lt.filter(this);else if(hasInterface(lt,GeometryComponentFilter)){lt.filter(this),this._shell.apply(lt);for(var ht=0;ht<this._holes.length;ht++)ut._holes[ht].apply(lt)}},tt.prototype.getBoundary=function(){var lt=this;if(this.isEmpty())return this.getFactory().createMultiLineString();var ut=new Array(this._holes.length+1).fill(null);ut[0]=this._shell;for(var dt=0;dt<this._holes.length;dt++)ut[dt+1]=lt._holes[dt];return ut.length<=1?this.getFactory().createLinearRing(ut[0].getCoordinateSequence()):this.getFactory().createMultiLineString(ut)},tt.prototype.clone=function(){var lt=this,ut=et.prototype.clone.call(this);ut._shell=this._shell.clone(),ut._holes=new Array(this._holes.length).fill(null);for(var dt=0;dt<this._holes.length;dt++)ut._holes[dt]=lt._holes[dt].clone();return ut},tt.prototype.getGeometryType=function(){return"Polygon"},tt.prototype.copy=function(){for(var lt=this,ut=this._shell.copy(),dt=new Array(this._holes.length).fill(null),pt=0;pt<dt.length;pt++)dt[pt]=lt._holes[pt].copy();return new tt(ut,dt,this._factory)},tt.prototype.getExteriorRing=function(){return this._shell},tt.prototype.isEmpty=function(){return this._shell.isEmpty()},tt.prototype.getInteriorRingN=function(lt){return this._holes[lt]},tt.prototype.interfaces_=function(){return[Polygonal]},tt.prototype.getClass=function(){return tt},rt.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(tt,rt),tt}(Geometry),MultiPoint=function(et){function tt(){et.apply(this,arguments)}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={serialVersionUID:{configurable:!0}};return tt.prototype.getSortIndex=function(){return Geometry.SORTINDEX_MULTIPOINT},tt.prototype.isValid=function(){return!0},tt.prototype.equalsExact=function(){if(arguments.length===2){var lt=arguments[0],ut=arguments[1];return this.isEquivalentClass(lt)?et.prototype.equalsExact.call(this,lt,ut):!1}else return et.prototype.equalsExact.apply(this,arguments)},tt.prototype.getCoordinate=function(){if(arguments.length===1){var lt=arguments[0];return this._geometries[lt].getCoordinate()}else return et.prototype.getCoordinate.apply(this,arguments)},tt.prototype.getBoundaryDimension=function(){return Dimension.FALSE},tt.prototype.getDimension=function(){return 0},tt.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},tt.prototype.getGeometryType=function(){return"MultiPoint"},tt.prototype.copy=function(){for(var lt=this,ut=new Array(this._geometries.length).fill(null),dt=0;dt<ut.length;dt++)ut[dt]=lt._geometries[dt].copy();return new tt(ut,this._factory)},tt.prototype.interfaces_=function(){return[Puntal]},tt.prototype.getClass=function(){return tt},rt.serialVersionUID.get=function(){return-8048474874175356e3},Object.defineProperties(tt,rt),tt}(GeometryCollection),LinearRing=function(et){function tt(nt,lt){nt instanceof Coordinate&&lt instanceof GeometryFactory&&(nt=lt.getCoordinateSequenceFactory().create(nt)),et.call(this,nt,lt),this.validateConstruction()}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return tt.prototype.getSortIndex=function(){return Geometry.SORTINDEX_LINEARRING},tt.prototype.getBoundaryDimension=function(){return Dimension.FALSE},tt.prototype.isClosed=function(){return this.isEmpty()?!0:et.prototype.isClosed.call(this)},tt.prototype.reverse=function(){var lt=this._points.copy();CoordinateSequences.reverse(lt);var ut=this.getFactory().createLinearRing(lt);return ut},tt.prototype.validateConstruction=function(){if(!this.isEmpty()&&!et.prototype.isClosed.call(this))throw new IllegalArgumentException("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<tt.MINIMUM_VALID_SIZE)throw new IllegalArgumentException("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},tt.prototype.getGeometryType=function(){return"LinearRing"},tt.prototype.copy=function(){return new tt(this._points.copy(),this._factory)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},rt.MINIMUM_VALID_SIZE.get=function(){return 4},rt.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(tt,rt),tt}(LineString),MultiPolygon=function(et){function tt(){et.apply(this,arguments)}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={serialVersionUID:{configurable:!0}};return tt.prototype.getSortIndex=function(){return Geometry.SORTINDEX_MULTIPOLYGON},tt.prototype.equalsExact=function(){if(arguments.length===2){var lt=arguments[0],ut=arguments[1];return this.isEquivalentClass(lt)?et.prototype.equalsExact.call(this,lt,ut):!1}else return et.prototype.equalsExact.apply(this,arguments)},tt.prototype.getBoundaryDimension=function(){return 1},tt.prototype.getDimension=function(){return 2},tt.prototype.reverse=function(){for(var lt=this,ut=this._geometries.length,dt=new Array(ut).fill(null),pt=0;pt<this._geometries.length;pt++)dt[pt]=lt._geometries[pt].reverse();return this.getFactory().createMultiPolygon(dt)},tt.prototype.getBoundary=function(){var lt=this;if(this.isEmpty())return this.getFactory().createMultiLineString();for(var ut=new ArrayList,dt=0;dt<this._geometries.length;dt++)for(var pt=lt._geometries[dt],ht=pt.getBoundary(),mt=0;mt<ht.getNumGeometries();mt++)ut.add(ht.getGeometryN(mt));var xt=new Array(ut.size()).fill(null);return this.getFactory().createMultiLineString(ut.toArray(xt))},tt.prototype.getGeometryType=function(){return"MultiPolygon"},tt.prototype.copy=function(){for(var lt=this,ut=new Array(this._geometries.length).fill(null),dt=0;dt<ut.length;dt++)ut[dt]=lt._geometries[dt].copy();return new tt(ut,this._factory)},tt.prototype.interfaces_=function(){return[Polygonal]},tt.prototype.getClass=function(){return tt},rt.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(tt,rt),tt}(GeometryCollection),GeometryEditor=function(tt){this._factory=tt||null,this._isUserDataCopied=!1},staticAccessors$16={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};GeometryEditor.prototype.setCopyUserData=function(tt){this._isUserDataCopied=tt};GeometryEditor.prototype.edit=function(tt,rt){if(tt===null)return null;var nt=this.editInternal(tt,rt);return this._isUserDataCopied&&nt.setUserData(tt.getUserData()),nt};GeometryEditor.prototype.editInternal=function(tt,rt){return this._factory===null&&(this._factory=tt.getFactory()),tt instanceof GeometryCollection?this.editGeometryCollection(tt,rt):tt instanceof Polygon?this.editPolygon(tt,rt):tt instanceof Point$3?rt.edit(tt,this._factory):tt instanceof LineString?rt.edit(tt,this._factory):(Assert.shouldNeverReachHere("Unsupported Geometry class: "+tt.getClass().getName()),null)};GeometryEditor.prototype.editGeometryCollection=function(tt,rt){for(var nt=this,lt=rt.edit(tt,this._factory),ut=new ArrayList,dt=0;dt<lt.getNumGeometries();dt++){var pt=nt.edit(lt.getGeometryN(dt),rt);pt===null||pt.isEmpty()||ut.add(pt)}return lt.getClass()===MultiPoint?this._factory.createMultiPoint(ut.toArray([])):lt.getClass()===MultiLineString?this._factory.createMultiLineString(ut.toArray([])):lt.getClass()===MultiPolygon?this._factory.createMultiPolygon(ut.toArray([])):this._factory.createGeometryCollection(ut.toArray([]))};GeometryEditor.prototype.editPolygon=function(tt,rt){var nt=this,lt=rt.edit(tt,this._factory);if(lt===null&&(lt=this._factory.createPolygon(null)),lt.isEmpty())return lt;var ut=this.edit(lt.getExteriorRing(),rt);if(ut===null||ut.isEmpty())return this._factory.createPolygon();for(var dt=new ArrayList,pt=0;pt<lt.getNumInteriorRing();pt++){var ht=nt.edit(lt.getInteriorRingN(pt),rt);ht===null||ht.isEmpty()||dt.add(ht)}return this._factory.createPolygon(ut,dt.toArray([]))};GeometryEditor.prototype.interfaces_=function(){return[]};GeometryEditor.prototype.getClass=function(){return GeometryEditor};GeometryEditor.GeometryEditorOperation=function(){};staticAccessors$16.NoOpGeometryOperation.get=function(){return NoOpGeometryOperation};staticAccessors$16.CoordinateOperation.get=function(){return CoordinateOperation};staticAccessors$16.CoordinateSequenceOperation.get=function(){return CoordinateSequenceOperation};Object.defineProperties(GeometryEditor,staticAccessors$16);var NoOpGeometryOperation=function(){};NoOpGeometryOperation.prototype.edit=function(tt,rt){return tt};NoOpGeometryOperation.prototype.interfaces_=function(){return[GeometryEditor.GeometryEditorOperation]};NoOpGeometryOperation.prototype.getClass=function(){return NoOpGeometryOperation};var CoordinateOperation=function(){};CoordinateOperation.prototype.edit=function(tt,rt){var nt=this.editCoordinates(tt.getCoordinates(),tt);return nt===null?tt:tt instanceof LinearRing?rt.createLinearRing(nt):tt instanceof LineString?rt.createLineString(nt):tt instanceof Point$3?nt.length>0?rt.createPoint(nt[0]):rt.createPoint():tt};CoordinateOperation.prototype.interfaces_=function(){return[GeometryEditor.GeometryEditorOperation]};CoordinateOperation.prototype.getClass=function(){return CoordinateOperation};var CoordinateSequenceOperation=function(){};CoordinateSequenceOperation.prototype.edit=function(tt,rt){return tt instanceof LinearRing?rt.createLinearRing(this.edit(tt.getCoordinateSequence(),tt)):tt instanceof LineString?rt.createLineString(this.edit(tt.getCoordinateSequence(),tt)):tt instanceof Point$3?rt.createPoint(this.edit(tt.getCoordinateSequence(),tt)):tt};CoordinateSequenceOperation.prototype.interfaces_=function(){return[GeometryEditor.GeometryEditorOperation]};CoordinateSequenceOperation.prototype.getClass=function(){return CoordinateSequenceOperation};var CoordinateArraySequence=function(){var tt=this;if(this._dimension=3,this._coordinates=null,arguments.length===1){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var rt=arguments[0];this._coordinates=new Array(rt).fill(null);for(var nt=0;nt<rt;nt++)tt._coordinates[nt]=new Coordinate}else if(hasInterface(arguments[0],CoordinateSequence)){var lt=arguments[0];if(lt===null)return this._coordinates=new Array(0).fill(null),null;this._dimension=lt.getDimension(),this._coordinates=new Array(lt.size()).fill(null);for(var ut=0;ut<this._coordinates.length;ut++)tt._coordinates[ut]=lt.getCoordinateCopy(ut)}}else if(arguments.length===2){if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var dt=arguments[0],pt=arguments[1];this._coordinates=dt,this._dimension=pt,dt===null&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var ht=arguments[0],mt=arguments[1];this._coordinates=new Array(ht).fill(null),this._dimension=mt;for(var xt=0;xt<ht;xt++)tt._coordinates[xt]=new Coordinate}}},staticAccessors$18={serialVersionUID:{configurable:!0}};CoordinateArraySequence.prototype.setOrdinate=function(tt,rt,nt){switch(rt){case CoordinateSequence.X:this._coordinates[tt].x=nt;break;case CoordinateSequence.Y:this._coordinates[tt].y=nt;break;case CoordinateSequence.Z:this._coordinates[tt].z=nt;break;default:throw new IllegalArgumentException("invalid ordinateIndex")}};CoordinateArraySequence.prototype.size=function(){return this._coordinates.length};CoordinateArraySequence.prototype.getOrdinate=function(tt,rt){switch(rt){case CoordinateSequence.X:return this._coordinates[tt].x;case CoordinateSequence.Y:return this._coordinates[tt].y;case CoordinateSequence.Z:return this._coordinates[tt].z}return Double.NaN};CoordinateArraySequence.prototype.getCoordinate=function(){if(arguments.length===1){var tt=arguments[0];return this._coordinates[tt]}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];nt.x=this._coordinates[rt].x,nt.y=this._coordinates[rt].y,nt.z=this._coordinates[rt].z}};CoordinateArraySequence.prototype.getCoordinateCopy=function(tt){return new Coordinate(this._coordinates[tt])};CoordinateArraySequence.prototype.getDimension=function(){return this._dimension};CoordinateArraySequence.prototype.getX=function(tt){return this._coordinates[tt].x};CoordinateArraySequence.prototype.clone=function(){for(var tt=this,rt=new Array(this.size()).fill(null),nt=0;nt<this._coordinates.length;nt++)rt[nt]=tt._coordinates[nt].clone();return new CoordinateArraySequence(rt,this._dimension)};CoordinateArraySequence.prototype.expandEnvelope=function(tt){for(var rt=this,nt=0;nt<this._coordinates.length;nt++)tt.expandToInclude(rt._coordinates[nt]);return tt};CoordinateArraySequence.prototype.copy=function(){for(var tt=this,rt=new Array(this.size()).fill(null),nt=0;nt<this._coordinates.length;nt++)rt[nt]=tt._coordinates[nt].copy();return new CoordinateArraySequence(rt,this._dimension)};CoordinateArraySequence.prototype.toString=function(){var tt=this;if(this._coordinates.length>0){var rt=new StringBuffer(17*this._coordinates.length);rt.append("("),rt.append(this._coordinates[0]);for(var nt=1;nt<this._coordinates.length;nt++)rt.append(", "),rt.append(tt._coordinates[nt]);return rt.append(")"),rt.toString()}else return"()"};CoordinateArraySequence.prototype.getY=function(tt){return this._coordinates[tt].y};CoordinateArraySequence.prototype.toCoordinateArray=function(){return this._coordinates};CoordinateArraySequence.prototype.interfaces_=function(){return[CoordinateSequence,Serializable]};CoordinateArraySequence.prototype.getClass=function(){return CoordinateArraySequence};staticAccessors$18.serialVersionUID.get=function(){return-0xcb44a778db18e00};Object.defineProperties(CoordinateArraySequence,staticAccessors$18);var CoordinateArraySequenceFactory=function(){},staticAccessors$17={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};CoordinateArraySequenceFactory.prototype.readResolve=function(){return CoordinateArraySequenceFactory.instance()};CoordinateArraySequenceFactory.prototype.create=function(){if(arguments.length===1){if(arguments[0]instanceof Array){var tt=arguments[0];return new CoordinateArraySequence(tt)}else if(hasInterface(arguments[0],CoordinateSequence)){var rt=arguments[0];return new CoordinateArraySequence(rt)}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];return lt>3&&(lt=3),lt<2?new CoordinateArraySequence(nt):new CoordinateArraySequence(nt,lt)}};CoordinateArraySequenceFactory.prototype.interfaces_=function(){return[CoordinateSequenceFactory,Serializable]};CoordinateArraySequenceFactory.prototype.getClass=function(){return CoordinateArraySequenceFactory};CoordinateArraySequenceFactory.instance=function(){return CoordinateArraySequenceFactory.instanceObject};staticAccessors$17.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00};staticAccessors$17.instanceObject.get=function(){return new CoordinateArraySequenceFactory};Object.defineProperties(CoordinateArraySequenceFactory,staticAccessors$17);var HashMap=function(et){function tt(){et.call(this),this.map_=new Map}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.get=function(nt){return this.map_.get(nt)||null},tt.prototype.put=function(nt,lt){return this.map_.set(nt,lt),lt},tt.prototype.values=function(){for(var nt=new ArrayList,lt=this.map_.values(),ut=lt.next();!ut.done;)nt.add(ut.value),ut=lt.next();return nt},tt.prototype.entrySet=function(){var nt=new HashSet;return this.map_.entries().forEach(function(lt){return nt.add(lt)}),nt},tt.prototype.size=function(){return this.map_.size()},tt}(Map$1),PrecisionModel=function et(){if(this._modelType=null,this._scale=null,arguments.length===0)this._modelType=et.FLOATING;else if(arguments.length===1){if(arguments[0]instanceof Type){var tt=arguments[0];this._modelType=tt,tt===et.FIXED&&this.setScale(1)}else if(typeof arguments[0]=="number"){var rt=arguments[0];this._modelType=et.FIXED,this.setScale(rt)}else if(arguments[0]instanceof et){var nt=arguments[0];this._modelType=nt._modelType,this._scale=nt._scale}}},staticAccessors$19={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};PrecisionModel.prototype.equals=function(tt){if(!(tt instanceof PrecisionModel))return!1;var rt=tt;return this._modelType===rt._modelType&&this._scale===rt._scale};PrecisionModel.prototype.compareTo=function(tt){var rt=tt,nt=this.getMaximumSignificantDigits(),lt=rt.getMaximumSignificantDigits();return new Integer(nt).compareTo(new Integer(lt))};PrecisionModel.prototype.getScale=function(){return this._scale};PrecisionModel.prototype.isFloating=function(){return this._modelType===PrecisionModel.FLOATING||this._modelType===PrecisionModel.FLOATING_SINGLE};PrecisionModel.prototype.getType=function(){return this._modelType};PrecisionModel.prototype.toString=function(){var tt="UNKNOWN";return this._modelType===PrecisionModel.FLOATING?tt="Floating":this._modelType===PrecisionModel.FLOATING_SINGLE?tt="Floating-Single":this._modelType===PrecisionModel.FIXED&&(tt="Fixed (Scale="+this.getScale()+")"),tt};PrecisionModel.prototype.makePrecise=function(){if(typeof arguments[0]=="number"){var tt=arguments[0];if(Double.isNaN(tt))return tt;if(this._modelType===PrecisionModel.FLOATING_SINGLE){var rt=tt;return rt}return this._modelType===PrecisionModel.FIXED?Math.round(tt*this._scale)/this._scale:tt}else if(arguments[0]instanceof Coordinate){var nt=arguments[0];if(this._modelType===PrecisionModel.FLOATING)return null;nt.x=this.makePrecise(nt.x),nt.y=this.makePrecise(nt.y)}};PrecisionModel.prototype.getMaximumSignificantDigits=function(){var tt=16;return this._modelType===PrecisionModel.FLOATING?tt=16:this._modelType===PrecisionModel.FLOATING_SINGLE?tt=6:this._modelType===PrecisionModel.FIXED&&(tt=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),tt};PrecisionModel.prototype.setScale=function(tt){this._scale=Math.abs(tt)};PrecisionModel.prototype.interfaces_=function(){return[Serializable,Comparable]};PrecisionModel.prototype.getClass=function(){return PrecisionModel};PrecisionModel.mostPrecise=function(tt,rt){return tt.compareTo(rt)>=0?tt:rt};staticAccessors$19.serialVersionUID.get=function(){return 7777263578777804e3};staticAccessors$19.maximumPreciseValue.get=function(){return 9007199254740992};Object.defineProperties(PrecisionModel,staticAccessors$19);var Type=function et(tt){this._name=tt||null,et.nameToTypeMap.put(tt,this)},staticAccessors$1$1={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};Type.prototype.readResolve=function(){return Type.nameToTypeMap.get(this._name)};Type.prototype.toString=function(){return this._name};Type.prototype.interfaces_=function(){return[Serializable]};Type.prototype.getClass=function(){return Type};staticAccessors$1$1.serialVersionUID.get=function(){return-552860263173159e4};staticAccessors$1$1.nameToTypeMap.get=function(){return new HashMap};Object.defineProperties(Type,staticAccessors$1$1);PrecisionModel.Type=Type;PrecisionModel.FIXED=new Type("FIXED");PrecisionModel.FLOATING=new Type("FLOATING");PrecisionModel.FLOATING_SINGLE=new Type("FLOATING SINGLE");var GeometryFactory=function et(){this._precisionModel=new PrecisionModel,this._SRID=0,this._coordinateSequenceFactory=et.getDefaultCoordinateSequenceFactory(),arguments.length===0||(arguments.length===1?hasInterface(arguments[0],CoordinateSequenceFactory)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof PrecisionModel&&(this._precisionModel=arguments[0]):arguments.length===2?(this._precisionModel=arguments[0],this._SRID=arguments[1]):arguments.length===3&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},staticAccessors$2={serialVersionUID:{configurable:!0}};GeometryFactory.prototype.toGeometry=function(tt){return tt.isNull()?this.createPoint(null):tt.getMinX()===tt.getMaxX()&&tt.getMinY()===tt.getMaxY()?this.createPoint(new Coordinate(tt.getMinX(),tt.getMinY())):tt.getMinX()===tt.getMaxX()||tt.getMinY()===tt.getMaxY()?this.createLineString([new Coordinate(tt.getMinX(),tt.getMinY()),new Coordinate(tt.getMaxX(),tt.getMaxY())]):this.createPolygon(this.createLinearRing([new Coordinate(tt.getMinX(),tt.getMinY()),new Coordinate(tt.getMinX(),tt.getMaxY()),new Coordinate(tt.getMaxX(),tt.getMaxY()),new Coordinate(tt.getMaxX(),tt.getMinY()),new Coordinate(tt.getMinX(),tt.getMinY())]),null)};GeometryFactory.prototype.createLineString=function(tt){if(tt){if(tt instanceof Array)return new LineString(this.getCoordinateSequenceFactory().create(tt),this);if(hasInterface(tt,CoordinateSequence))return new LineString(tt,this)}else return new LineString(this.getCoordinateSequenceFactory().create([]),this)};GeometryFactory.prototype.createMultiLineString=function(){if(arguments.length===0)return new MultiLineString(null,this);if(arguments.length===1){var tt=arguments[0];return new MultiLineString(tt,this)}};GeometryFactory.prototype.buildGeometry=function(tt){for(var rt=null,nt=!1,lt=!1,ut=tt.iterator();ut.hasNext();){var dt=ut.next(),pt=dt.getClass();rt===null&&(rt=pt),pt!==rt&&(nt=!0),dt.isGeometryCollectionOrDerived()&&(lt=!0)}if(rt===null)return this.createGeometryCollection();if(nt||lt)return this.createGeometryCollection(GeometryFactory.toGeometryArray(tt));var ht=tt.iterator().next(),mt=tt.size()>1;if(mt){if(ht instanceof Polygon)return this.createMultiPolygon(GeometryFactory.toPolygonArray(tt));if(ht instanceof LineString)return this.createMultiLineString(GeometryFactory.toLineStringArray(tt));if(ht instanceof Point$3)return this.createMultiPoint(GeometryFactory.toPointArray(tt));Assert.shouldNeverReachHere("Unhandled class: "+ht.getClass().getName())}return ht};GeometryFactory.prototype.createMultiPointFromCoords=function(tt){return this.createMultiPoint(tt!==null?this.getCoordinateSequenceFactory().create(tt):null)};GeometryFactory.prototype.createPoint=function(){if(arguments.length===0)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Coordinate){var tt=arguments[0];return this.createPoint(tt!==null?this.getCoordinateSequenceFactory().create([tt]):null)}else if(hasInterface(arguments[0],CoordinateSequence)){var rt=arguments[0];return new Point$3(rt,this)}}};GeometryFactory.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory};GeometryFactory.prototype.createPolygon=function(){if(arguments.length===0)return new Polygon(null,null,this);if(arguments.length===1){if(hasInterface(arguments[0],CoordinateSequence)){var tt=arguments[0];return this.createPolygon(this.createLinearRing(tt))}else if(arguments[0]instanceof Array){var rt=arguments[0];return this.createPolygon(this.createLinearRing(rt))}else if(arguments[0]instanceof LinearRing){var nt=arguments[0];return this.createPolygon(nt,null)}}else if(arguments.length===2){var lt=arguments[0],ut=arguments[1];return new Polygon(lt,ut,this)}};GeometryFactory.prototype.getSRID=function(){return this._SRID};GeometryFactory.prototype.createGeometryCollection=function(){if(arguments.length===0)return new GeometryCollection(null,this);if(arguments.length===1){var tt=arguments[0];return new GeometryCollection(tt,this)}};GeometryFactory.prototype.createGeometry=function(tt){var rt=new GeometryEditor(this);return rt.edit(tt,{edit:function(){if(arguments.length===2){var nt=arguments[0];return this._coordinateSequenceFactory.create(nt)}}})};GeometryFactory.prototype.getPrecisionModel=function(){return this._precisionModel};GeometryFactory.prototype.createLinearRing=function(){if(arguments.length===0)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var tt=arguments[0];return this.createLinearRing(tt!==null?this.getCoordinateSequenceFactory().create(tt):null)}else if(hasInterface(arguments[0],CoordinateSequence)){var rt=arguments[0];return new LinearRing(rt,this)}}};GeometryFactory.prototype.createMultiPolygon=function(){if(arguments.length===0)return new MultiPolygon(null,this);if(arguments.length===1){var tt=arguments[0];return new MultiPolygon(tt,this)}};GeometryFactory.prototype.createMultiPoint=function(){var tt=this;if(arguments.length===0)return new MultiPoint(null,this);if(arguments.length===1){if(arguments[0]instanceof Array){var rt=arguments[0];return new MultiPoint(rt,this)}else if(arguments[0]instanceof Array){var nt=arguments[0];return this.createMultiPoint(nt!==null?this.getCoordinateSequenceFactory().create(nt):null)}else if(hasInterface(arguments[0],CoordinateSequence)){var lt=arguments[0];if(lt===null)return this.createMultiPoint(new Array(0).fill(null));for(var ut=new Array(lt.size()).fill(null),dt=0;dt<lt.size();dt++){var pt=tt.getCoordinateSequenceFactory().create(1,lt.getDimension());CoordinateSequences.copy(lt,dt,pt,0,1),ut[dt]=tt.createPoint(pt)}return this.createMultiPoint(ut)}}};GeometryFactory.prototype.interfaces_=function(){return[Serializable]};GeometryFactory.prototype.getClass=function(){return GeometryFactory};GeometryFactory.toMultiPolygonArray=function(tt){var rt=new Array(tt.size()).fill(null);return tt.toArray(rt)};GeometryFactory.toGeometryArray=function(tt){if(tt===null)return null;var rt=new Array(tt.size()).fill(null);return tt.toArray(rt)};GeometryFactory.getDefaultCoordinateSequenceFactory=function(){return CoordinateArraySequenceFactory.instance()};GeometryFactory.toMultiLineStringArray=function(tt){var rt=new Array(tt.size()).fill(null);return tt.toArray(rt)};GeometryFactory.toLineStringArray=function(tt){var rt=new Array(tt.size()).fill(null);return tt.toArray(rt)};GeometryFactory.toMultiPointArray=function(tt){var rt=new Array(tt.size()).fill(null);return tt.toArray(rt)};GeometryFactory.toLinearRingArray=function(tt){var rt=new Array(tt.size()).fill(null);return tt.toArray(rt)};GeometryFactory.toPointArray=function(tt){var rt=new Array(tt.size()).fill(null);return tt.toArray(rt)};GeometryFactory.toPolygonArray=function(tt){var rt=new Array(tt.size()).fill(null);return tt.toArray(rt)};GeometryFactory.createPointFromInternalCoord=function(tt,rt){return rt.getPrecisionModel().makePrecise(tt),rt.getFactory().createPoint(tt)};staticAccessors$2.serialVersionUID.get=function(){return-6820524753094096e3};Object.defineProperties(GeometryFactory,staticAccessors$2);var geometryTypes=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],GeoJSONParser=function(tt){this.geometryFactory=tt||new GeometryFactory};GeoJSONParser.prototype.read=function(tt){var rt;typeof tt=="string"?rt=JSON.parse(tt):rt=tt;var nt=rt.type;if(!parse$2[nt])throw new Error("Unknown GeoJSON type: "+rt.type);return geometryTypes.indexOf(nt)!==-1?parse$2[nt].apply(this,[rt.coordinates]):nt==="GeometryCollection"?parse$2[nt].apply(this,[rt.geometries]):parse$2[nt].apply(this,[rt])};GeoJSONParser.prototype.write=function(tt){var rt=tt.getGeometryType();if(!extract[rt])throw new Error("Geometry is not supported");return extract[rt].apply(this,[tt])};var parse$2={Feature:function(et){var tt={};for(var rt in et)tt[rt]=et[rt];if(et.geometry){var nt=et.geometry.type;if(!parse$2[nt])throw new Error("Unknown GeoJSON type: "+et.type);tt.geometry=this.read(et.geometry)}return et.bbox&&(tt.bbox=parse$2.bbox.apply(this,[et.bbox])),tt},FeatureCollection:function(et){var tt=this,rt={};if(et.features){rt.features=[];for(var nt=0;nt<et.features.length;++nt)rt.features.push(tt.read(et.features[nt]))}return et.bbox&&(rt.bbox=this.parse.bbox.apply(this,[et.bbox])),rt},coordinates:function(et){for(var tt=[],rt=0;rt<et.length;++rt){var nt=et[rt];tt.push(new Coordinate(nt[0],nt[1]))}return tt},bbox:function(et){return this.geometryFactory.createLinearRing([new Coordinate(et[0],et[1]),new Coordinate(et[2],et[1]),new Coordinate(et[2],et[3]),new Coordinate(et[0],et[3]),new Coordinate(et[0],et[1])])},Point:function(et){var tt=new Coordinate(et[0],et[1]);return this.geometryFactory.createPoint(tt)},MultiPoint:function(et){for(var tt=this,rt=[],nt=0;nt<et.length;++nt)rt.push(parse$2.Point.apply(tt,[et[nt]]));return this.geometryFactory.createMultiPoint(rt)},LineString:function(et){var tt=parse$2.coordinates.apply(this,[et]);return this.geometryFactory.createLineString(tt)},MultiLineString:function(et){for(var tt=this,rt=[],nt=0;nt<et.length;++nt)rt.push(parse$2.LineString.apply(tt,[et[nt]]));return this.geometryFactory.createMultiLineString(rt)},Polygon:function(et){for(var tt=this,rt=parse$2.coordinates.apply(this,[et[0]]),nt=this.geometryFactory.createLinearRing(rt),lt=[],ut=1;ut<et.length;++ut){var dt=et[ut],pt=parse$2.coordinates.apply(tt,[dt]),ht=tt.geometryFactory.createLinearRing(pt);lt.push(ht)}return this.geometryFactory.createPolygon(nt,lt)},MultiPolygon:function(et){for(var tt=this,rt=[],nt=0;nt<et.length;++nt){var lt=et[nt];rt.push(parse$2.Polygon.apply(tt,[lt]))}return this.geometryFactory.createMultiPolygon(rt)},GeometryCollection:function(et){for(var tt=this,rt=[],nt=0;nt<et.length;++nt){var lt=et[nt];rt.push(tt.read(lt))}return this.geometryFactory.createGeometryCollection(rt)}},extract={coordinate:function(et){return[et.x,et.y]},Point:function(et){var tt=extract.coordinate.apply(this,[et.getCoordinate()]);return{type:"Point",coordinates:tt}},MultiPoint:function(et){for(var tt=this,rt=[],nt=0;nt<et._geometries.length;++nt){var lt=et._geometries[nt],ut=extract.Point.apply(tt,[lt]);rt.push(ut.coordinates)}return{type:"MultiPoint",coordinates:rt}},LineString:function(et){for(var tt=this,rt=[],nt=et.getCoordinates(),lt=0;lt<nt.length;++lt){var ut=nt[lt];rt.push(extract.coordinate.apply(tt,[ut]))}return{type:"LineString",coordinates:rt}},MultiLineString:function(et){for(var tt=this,rt=[],nt=0;nt<et._geometries.length;++nt){var lt=et._geometries[nt],ut=extract.LineString.apply(tt,[lt]);rt.push(ut.coordinates)}return{type:"MultiLineString",coordinates:rt}},Polygon:function(et){var tt=this,rt=[],nt=extract.LineString.apply(this,[et._shell]);rt.push(nt.coordinates);for(var lt=0;lt<et._holes.length;++lt){var ut=et._holes[lt],dt=extract.LineString.apply(tt,[ut]);rt.push(dt.coordinates)}return{type:"Polygon",coordinates:rt}},MultiPolygon:function(et){for(var tt=this,rt=[],nt=0;nt<et._geometries.length;++nt){var lt=et._geometries[nt],ut=extract.Polygon.apply(tt,[lt]);rt.push(ut.coordinates)}return{type:"MultiPolygon",coordinates:rt}},GeometryCollection:function(et){for(var tt=this,rt=[],nt=0;nt<et._geometries.length;++nt){var lt=et._geometries[nt],ut=lt.getGeometryType();rt.push(extract[ut].apply(tt,[lt]))}return{type:"GeometryCollection",geometries:rt}}},GeoJSONReader=function(tt){this.geometryFactory=tt||new GeometryFactory,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new GeoJSONParser(this.geometryFactory)};GeoJSONReader.prototype.read=function(tt){var rt=this.parser.read(tt);return this.precisionModel.getType()===PrecisionModel.FIXED&&this.reducePrecision(rt),rt};GeoJSONReader.prototype.reducePrecision=function(tt){var rt=this,nt,lt;if(tt.coordinate)this.precisionModel.makePrecise(tt.coordinate);else if(tt.points)for(nt=0,lt=tt.points.length;nt<lt;nt++)rt.precisionModel.makePrecise(tt.points[nt]);else if(tt.geometries)for(nt=0,lt=tt.geometries.length;nt<lt;nt++)rt.reducePrecision(tt.geometries[nt])};var GeoJSONWriter=function(){this.parser=new GeoJSONParser(this.geometryFactory)};GeoJSONWriter.prototype.write=function(tt){return this.parser.write(tt)};var Position$1=function(){},staticAccessors$20={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};Position$1.prototype.interfaces_=function(){return[]};Position$1.prototype.getClass=function(){return Position$1};Position$1.opposite=function(tt){return tt===Position$1.LEFT?Position$1.RIGHT:tt===Position$1.RIGHT?Position$1.LEFT:tt};staticAccessors$20.ON.get=function(){return 0};staticAccessors$20.LEFT.get=function(){return 1};staticAccessors$20.RIGHT.get=function(){return 2};Object.defineProperties(Position$1,staticAccessors$20);function EmptyStackException(et){this.message=et||""}EmptyStackException.prototype=new Error;EmptyStackException.prototype.name="EmptyStackException";function Stack(){this.array_=[]}Stack.prototype=new List;Stack.prototype.add=function(et){return this.array_.push(et),!0};Stack.prototype.get=function(et){if(et<0||et>=this.size())throw new Error;return this.array_[et]};Stack.prototype.push=function(et){return this.array_.push(et),et};Stack.prototype.pop=function(et){if(this.array_.length===0)throw new EmptyStackException;return this.array_.pop()};Stack.prototype.peek=function(){if(this.array_.length===0)throw new EmptyStackException;return this.array_[this.array_.length-1]};Stack.prototype.empty=function(){return this.array_.length===0};Stack.prototype.isEmpty=function(){return this.empty()};Stack.prototype.search=function(et){return this.array_.indexOf(et)};Stack.prototype.size=function(){return this.array_.length};Stack.prototype.toArray=function(){for(var et=this,tt=[],rt=0,nt=this.array_.length;rt<nt;rt++)tt.push(et.array_[rt]);return tt};var RightmostEdgeFinder=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};RightmostEdgeFinder.prototype.getCoordinate=function(){return this._minCoord};RightmostEdgeFinder.prototype.getRightmostSide=function(tt,rt){var nt=this.getRightmostSideOfSegment(tt,rt);return nt<0&&(nt=this.getRightmostSideOfSegment(tt,rt-1)),nt<0&&(this._minCoord=null,this.checkForRightmostCoordinate(tt)),nt};RightmostEdgeFinder.prototype.findRightmostEdgeAtVertex=function(){var tt=this._minDe.getEdge().getCoordinates();Assert.isTrue(this._minIndex>0&&this._minIndex<tt.length,"rightmost point expected to be interior vertex of edge");var rt=tt[this._minIndex-1],nt=tt[this._minIndex+1],lt=CGAlgorithms.computeOrientation(this._minCoord,nt,rt),ut=!1;(rt.y<this._minCoord.y&&nt.y<this._minCoord.y&&lt===CGAlgorithms.COUNTERCLOCKWISE||rt.y>this._minCoord.y&&nt.y>this._minCoord.y&&lt===CGAlgorithms.CLOCKWISE)&&(ut=!0),ut&&(this._minIndex=this._minIndex-1)};RightmostEdgeFinder.prototype.getRightmostSideOfSegment=function(tt,rt){var nt=tt.getEdge(),lt=nt.getCoordinates();if(rt<0||rt+1>=lt.length||lt[rt].y===lt[rt+1].y)return-1;var ut=Position$1.LEFT;return lt[rt].y<lt[rt+1].y&&(ut=Position$1.RIGHT),ut};RightmostEdgeFinder.prototype.getEdge=function(){return this._orientedDe};RightmostEdgeFinder.prototype.checkForRightmostCoordinate=function(tt){for(var rt=this,nt=tt.getEdge().getCoordinates(),lt=0;lt<nt.length-1;lt++)(rt._minCoord===null||nt[lt].x>rt._minCoord.x)&&(rt._minDe=tt,rt._minIndex=lt,rt._minCoord=nt[lt])};RightmostEdgeFinder.prototype.findRightmostEdgeAtNode=function(){var tt=this._minDe.getNode(),rt=tt.getEdges();this._minDe=rt.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)};RightmostEdgeFinder.prototype.findEdge=function(tt){for(var rt=this,nt=tt.iterator();nt.hasNext();){var lt=nt.next();lt.isForward()&&rt.checkForRightmostCoordinate(lt)}Assert.isTrue(this._minIndex!==0||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),this._minIndex===0?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe;var ut=this.getRightmostSide(this._minDe,this._minIndex);ut===Position$1.LEFT&&(this._orientedDe=this._minDe.getSym())};RightmostEdgeFinder.prototype.interfaces_=function(){return[]};RightmostEdgeFinder.prototype.getClass=function(){return RightmostEdgeFinder};var TopologyException=function(et){function tt(rt,nt){et.call(this,tt.msgWithCoord(rt,nt)),this.pt=nt?new Coordinate(nt):null,this.name="TopologyException"}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.getCoordinate=function(){return this.pt},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt.msgWithCoord=function(nt,lt){return lt?nt:nt+" [ "+lt+" ]"},tt}(RuntimeException),LinkedList=function(){this.array_=[]};LinkedList.prototype.addLast=function(tt){this.array_.push(tt)};LinkedList.prototype.removeFirst=function(){return this.array_.shift()};LinkedList.prototype.isEmpty=function(){return this.array_.length===0};var BufferSubgraph=function(){this._finder=null,this._dirEdgeList=new ArrayList,this._nodes=new ArrayList,this._rightMostCoord=null,this._env=null,this._finder=new RightmostEdgeFinder};BufferSubgraph.prototype.clearVisitedEdges=function(){for(var tt=this._dirEdgeList.iterator();tt.hasNext();){var rt=tt.next();rt.setVisited(!1)}};BufferSubgraph.prototype.getRightmostCoordinate=function(){return this._rightMostCoord};BufferSubgraph.prototype.computeNodeDepth=function(tt){for(var rt=this,nt=null,lt=tt.getEdges().iterator();lt.hasNext();){var ut=lt.next();if(ut.isVisited()||ut.getSym().isVisited()){nt=ut;break}}if(nt===null)throw new TopologyException("unable to find edge to compute depths at "+tt.getCoordinate());tt.getEdges().computeDepths(nt);for(var dt=tt.getEdges().iterator();dt.hasNext();){var pt=dt.next();pt.setVisited(!0),rt.copySymDepths(pt)}};BufferSubgraph.prototype.computeDepth=function(tt){this.clearVisitedEdges();var rt=this._finder.getEdge();rt.setEdgeDepths(Position$1.RIGHT,tt),this.copySymDepths(rt),this.computeDepths(rt)};BufferSubgraph.prototype.create=function(tt){this.addReachable(tt),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()};BufferSubgraph.prototype.findResultEdges=function(){for(var tt=this._dirEdgeList.iterator();tt.hasNext();){var rt=tt.next();rt.getDepth(Position$1.RIGHT)>=1&&rt.getDepth(Position$1.LEFT)<=0&&!rt.isInteriorAreaEdge()&&rt.setInResult(!0)}};BufferSubgraph.prototype.computeDepths=function(tt){var rt=this,nt=new HashSet,lt=new LinkedList,ut=tt.getNode();for(lt.addLast(ut),nt.add(ut),tt.setVisited(!0);!lt.isEmpty();){var dt=lt.removeFirst();nt.add(dt),rt.computeNodeDepth(dt);for(var pt=dt.getEdges().iterator();pt.hasNext();){var ht=pt.next(),mt=ht.getSym();if(!mt.isVisited()){var xt=mt.getNode();nt.contains(xt)||(lt.addLast(xt),nt.add(xt))}}}};BufferSubgraph.prototype.compareTo=function(tt){var rt=tt;return this._rightMostCoord.x<rt._rightMostCoord.x?-1:this._rightMostCoord.x>rt._rightMostCoord.x?1:0};BufferSubgraph.prototype.getEnvelope=function(){if(this._env===null){for(var tt=new Envelope,rt=this._dirEdgeList.iterator();rt.hasNext();)for(var nt=rt.next(),lt=nt.getEdge().getCoordinates(),ut=0;ut<lt.length-1;ut++)tt.expandToInclude(lt[ut]);this._env=tt}return this._env};BufferSubgraph.prototype.addReachable=function(tt){var rt=this,nt=new Stack;for(nt.add(tt);!nt.empty();){var lt=nt.pop();rt.add(lt,nt)}};BufferSubgraph.prototype.copySymDepths=function(tt){var rt=tt.getSym();rt.setDepth(Position$1.LEFT,tt.getDepth(Position$1.RIGHT)),rt.setDepth(Position$1.RIGHT,tt.getDepth(Position$1.LEFT))};BufferSubgraph.prototype.add=function(tt,rt){var nt=this;tt.setVisited(!0),this._nodes.add(tt);for(var lt=tt.getEdges().iterator();lt.hasNext();){var ut=lt.next();nt._dirEdgeList.add(ut);var dt=ut.getSym(),pt=dt.getNode();pt.isVisited()||rt.push(pt)}};BufferSubgraph.prototype.getNodes=function(){return this._nodes};BufferSubgraph.prototype.getDirectedEdges=function(){return this._dirEdgeList};BufferSubgraph.prototype.interfaces_=function(){return[Comparable]};BufferSubgraph.prototype.getClass=function(){return BufferSubgraph};var TopologyLocation=function et(){var tt=this;if(this.location=null,arguments.length===1){if(arguments[0]instanceof Array){var rt=arguments[0];this.init(rt.length)}else if(Number.isInteger(arguments[0])){var nt=arguments[0];this.init(1),this.location[Position$1.ON]=nt}else if(arguments[0]instanceof et){var lt=arguments[0];if(this.init(lt.location.length),lt!==null)for(var ut=0;ut<this.location.length;ut++)tt.location[ut]=lt.location[ut]}}else if(arguments.length===3){var dt=arguments[0],pt=arguments[1],ht=arguments[2];this.init(3),this.location[Position$1.ON]=dt,this.location[Position$1.LEFT]=pt,this.location[Position$1.RIGHT]=ht}};TopologyLocation.prototype.setAllLocations=function(tt){for(var rt=this,nt=0;nt<this.location.length;nt++)rt.location[nt]=tt};TopologyLocation.prototype.isNull=function(){for(var tt=this,rt=0;rt<this.location.length;rt++)if(tt.location[rt]!==Location.NONE)return!1;return!0};TopologyLocation.prototype.setAllLocationsIfNull=function(tt){for(var rt=this,nt=0;nt<this.location.length;nt++)rt.location[nt]===Location.NONE&&(rt.location[nt]=tt)};TopologyLocation.prototype.isLine=function(){return this.location.length===1};TopologyLocation.prototype.merge=function(tt){var rt=this;if(tt.location.length>this.location.length){var nt=new Array(3).fill(null);nt[Position$1.ON]=this.location[Position$1.ON],nt[Position$1.LEFT]=Location.NONE,nt[Position$1.RIGHT]=Location.NONE,this.location=nt}for(var lt=0;lt<this.location.length;lt++)rt.location[lt]===Location.NONE&&lt<tt.location.length&&(rt.location[lt]=tt.location[lt])};TopologyLocation.prototype.getLocations=function(){return this.location};TopologyLocation.prototype.flip=function(){if(this.location.length<=1)return null;var tt=this.location[Position$1.LEFT];this.location[Position$1.LEFT]=this.location[Position$1.RIGHT],this.location[Position$1.RIGHT]=tt};TopologyLocation.prototype.toString=function(){var tt=new StringBuffer;return this.location.length>1&&tt.append(Location.toLocationSymbol(this.location[Position$1.LEFT])),tt.append(Location.toLocationSymbol(this.location[Position$1.ON])),this.location.length>1&&tt.append(Location.toLocationSymbol(this.location[Position$1.RIGHT])),tt.toString()};TopologyLocation.prototype.setLocations=function(tt,rt,nt){this.location[Position$1.ON]=tt,this.location[Position$1.LEFT]=rt,this.location[Position$1.RIGHT]=nt};TopologyLocation.prototype.get=function(tt){return tt<this.location.length?this.location[tt]:Location.NONE};TopologyLocation.prototype.isArea=function(){return this.location.length>1};TopologyLocation.prototype.isAnyNull=function(){for(var tt=this,rt=0;rt<this.location.length;rt++)if(tt.location[rt]===Location.NONE)return!0;return!1};TopologyLocation.prototype.setLocation=function(){if(arguments.length===1){var tt=arguments[0];this.setLocation(Position$1.ON,tt)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];this.location[rt]=nt}};TopologyLocation.prototype.init=function(tt){this.location=new Array(tt).fill(null),this.setAllLocations(Location.NONE)};TopologyLocation.prototype.isEqualOnSide=function(tt,rt){return this.location[rt]===tt.location[rt]};TopologyLocation.prototype.allPositionsEqual=function(tt){for(var rt=this,nt=0;nt<this.location.length;nt++)if(rt.location[nt]!==tt)return!1;return!0};TopologyLocation.prototype.interfaces_=function(){return[]};TopologyLocation.prototype.getClass=function(){return TopologyLocation};var Label$2=function et(){if(this.elt=new Array(2).fill(null),arguments.length===1){if(Number.isInteger(arguments[0])){var tt=arguments[0];this.elt[0]=new TopologyLocation(tt),this.elt[1]=new TopologyLocation(tt)}else if(arguments[0]instanceof et){var rt=arguments[0];this.elt[0]=new TopologyLocation(rt.elt[0]),this.elt[1]=new TopologyLocation(rt.elt[1])}}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];this.elt[0]=new TopologyLocation(Location.NONE),this.elt[1]=new TopologyLocation(Location.NONE),this.elt[nt].setLocation(lt)}else if(arguments.length===3){var ut=arguments[0],dt=arguments[1],pt=arguments[2];this.elt[0]=new TopologyLocation(ut,dt,pt),this.elt[1]=new TopologyLocation(ut,dt,pt)}else if(arguments.length===4){var ht=arguments[0],mt=arguments[1],xt=arguments[2],Mt=arguments[3];this.elt[0]=new TopologyLocation(Location.NONE,Location.NONE,Location.NONE),this.elt[1]=new TopologyLocation(Location.NONE,Location.NONE,Location.NONE),this.elt[ht].setLocations(mt,xt,Mt)}};Label$2.prototype.getGeometryCount=function(){var tt=0;return this.elt[0].isNull()||tt++,this.elt[1].isNull()||tt++,tt};Label$2.prototype.setAllLocations=function(tt,rt){this.elt[tt].setAllLocations(rt)};Label$2.prototype.isNull=function(tt){return this.elt[tt].isNull()};Label$2.prototype.setAllLocationsIfNull=function(){if(arguments.length===1){var tt=arguments[0];this.setAllLocationsIfNull(0,tt),this.setAllLocationsIfNull(1,tt)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];this.elt[rt].setAllLocationsIfNull(nt)}};Label$2.prototype.isLine=function(tt){return this.elt[tt].isLine()};Label$2.prototype.merge=function(tt){for(var rt=this,nt=0;nt<2;nt++)rt.elt[nt]===null&&tt.elt[nt]!==null?rt.elt[nt]=new TopologyLocation(tt.elt[nt]):rt.elt[nt].merge(tt.elt[nt])};Label$2.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()};Label$2.prototype.getLocation=function(){if(arguments.length===1){var tt=arguments[0];return this.elt[tt].get(Position$1.ON)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];return this.elt[rt].get(nt)}};Label$2.prototype.toString=function(){var tt=new StringBuffer;return this.elt[0]!==null&&(tt.append("A:"),tt.append(this.elt[0].toString())),this.elt[1]!==null&&(tt.append(" B:"),tt.append(this.elt[1].toString())),tt.toString()};Label$2.prototype.isArea=function(){if(arguments.length===0)return this.elt[0].isArea()||this.elt[1].isArea();if(arguments.length===1){var tt=arguments[0];return this.elt[tt].isArea()}};Label$2.prototype.isAnyNull=function(tt){return this.elt[tt].isAnyNull()};Label$2.prototype.setLocation=function(){if(arguments.length===2){var tt=arguments[0],rt=arguments[1];this.elt[tt].setLocation(Position$1.ON,rt)}else if(arguments.length===3){var nt=arguments[0],lt=arguments[1],ut=arguments[2];this.elt[nt].setLocation(lt,ut)}};Label$2.prototype.isEqualOnSide=function(tt,rt){return this.elt[0].isEqualOnSide(tt.elt[0],rt)&&this.elt[1].isEqualOnSide(tt.elt[1],rt)};Label$2.prototype.allPositionsEqual=function(tt,rt){return this.elt[tt].allPositionsEqual(rt)};Label$2.prototype.toLine=function(tt){this.elt[tt].isArea()&&(this.elt[tt]=new TopologyLocation(this.elt[tt].location[0]))};Label$2.prototype.interfaces_=function(){return[]};Label$2.prototype.getClass=function(){return Label$2};Label$2.toLineLabel=function(tt){for(var rt=new Label$2(Location.NONE),nt=0;nt<2;nt++)rt.setLocation(nt,tt.getLocation(nt));return rt};var EdgeRing=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new ArrayList,this._pts=new ArrayList,this._label=new Label$2(Location.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new ArrayList,this._geometryFactory=null;var tt=arguments[0],rt=arguments[1];this._geometryFactory=rt,this.computePoints(tt),this.computeRing()};EdgeRing.prototype.computeRing=function(){var tt=this;if(this._ring!==null)return null;for(var rt=new Array(this._pts.size()).fill(null),nt=0;nt<this._pts.size();nt++)rt[nt]=tt._pts.get(nt);this._ring=this._geometryFactory.createLinearRing(rt),this._isHole=CGAlgorithms.isCCW(this._ring.getCoordinates())};EdgeRing.prototype.isIsolated=function(){return this._label.getGeometryCount()===1};EdgeRing.prototype.computePoints=function(tt){var rt=this;this._startDe=tt;var nt=tt,lt=!0;do{if(nt===null)throw new TopologyException("Found null DirectedEdge");if(nt.getEdgeRing()===rt)throw new TopologyException("Directed Edge visited twice during ring-building at "+nt.getCoordinate());rt._edges.add(nt);var ut=nt.getLabel();Assert.isTrue(ut.isArea()),rt.mergeLabel(ut),rt.addPoints(nt.getEdge(),nt.isForward(),lt),lt=!1,rt.setEdgeRing(nt,rt),nt=rt.getNext(nt)}while(nt!==this._startDe)};EdgeRing.prototype.getLinearRing=function(){return this._ring};EdgeRing.prototype.getCoordinate=function(tt){return this._pts.get(tt)};EdgeRing.prototype.computeMaxNodeDegree=function(){var tt=this;this._maxNodeDegree=0;var rt=this._startDe;do{var nt=rt.getNode(),lt=nt.getEdges().getOutgoingDegree(tt);lt>tt._maxNodeDegree&&(tt._maxNodeDegree=lt),rt=tt.getNext(rt)}while(rt!==this._startDe);this._maxNodeDegree*=2};EdgeRing.prototype.addPoints=function(tt,rt,nt){var lt=this,ut=tt.getCoordinates();if(rt){var dt=1;nt&&(dt=0);for(var pt=dt;pt<ut.length;pt++)lt._pts.add(ut[pt])}else{var ht=ut.length-2;nt&&(ht=ut.length-1);for(var mt=ht;mt>=0;mt--)lt._pts.add(ut[mt])}};EdgeRing.prototype.isHole=function(){return this._isHole};EdgeRing.prototype.setInResult=function(){var tt=this._startDe;do tt.getEdge().setInResult(!0),tt=tt.getNext();while(tt!==this._startDe)};EdgeRing.prototype.containsPoint=function(tt){var rt=this.getLinearRing(),nt=rt.getEnvelopeInternal();if(!nt.contains(tt)||!CGAlgorithms.isPointInRing(tt,rt.getCoordinates()))return!1;for(var lt=this._holes.iterator();lt.hasNext();){var ut=lt.next();if(ut.containsPoint(tt))return!1}return!0};EdgeRing.prototype.addHole=function(tt){this._holes.add(tt)};EdgeRing.prototype.isShell=function(){return this._shell===null};EdgeRing.prototype.getLabel=function(){return this._label};EdgeRing.prototype.getEdges=function(){return this._edges};EdgeRing.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree};EdgeRing.prototype.getShell=function(){return this._shell};EdgeRing.prototype.mergeLabel=function(){if(arguments.length===1){var tt=arguments[0];this.mergeLabel(tt,0),this.mergeLabel(tt,1)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1],lt=rt.getLocation(nt,Position$1.RIGHT);if(lt===Location.NONE)return null;if(this._label.getLocation(nt)===Location.NONE)return this._label.setLocation(nt,lt),null}};EdgeRing.prototype.setShell=function(tt){this._shell=tt,tt!==null&&tt.addHole(this)};EdgeRing.prototype.toPolygon=function(tt){for(var rt=this,nt=new Array(this._holes.size()).fill(null),lt=0;lt<this._holes.size();lt++)nt[lt]=rt._holes.get(lt).getLinearRing();var ut=tt.createPolygon(this.getLinearRing(),nt);return ut};EdgeRing.prototype.interfaces_=function(){return[]};EdgeRing.prototype.getClass=function(){return EdgeRing};var MinimalEdgeRing=function(et){function tt(){var rt=arguments[0],nt=arguments[1];et.call(this,rt,nt)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.setEdgeRing=function(nt,lt){nt.setMinEdgeRing(lt)},tt.prototype.getNext=function(nt){return nt.getNextMin()},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(EdgeRing),MaximalEdgeRing=function(et){function tt(){var rt=arguments[0],nt=arguments[1];et.call(this,rt,nt)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.buildMinimalRings=function(){var nt=this,lt=new ArrayList,ut=this._startDe;do{if(ut.getMinEdgeRing()===null){var dt=new MinimalEdgeRing(ut,nt._geometryFactory);lt.add(dt)}ut=ut.getNext()}while(ut!==this._startDe);return lt},tt.prototype.setEdgeRing=function(nt,lt){nt.setEdgeRing(lt)},tt.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var nt=this,lt=this._startDe;do{var ut=lt.getNode();ut.getEdges().linkMinimalDirectedEdges(nt),lt=lt.getNext()}while(lt!==this._startDe)},tt.prototype.getNext=function(nt){return nt.getNext()},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(EdgeRing),GraphComponent=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,arguments.length!==0){if(arguments.length===1){var tt=arguments[0];this._label=tt}}};GraphComponent.prototype.setVisited=function(tt){this._isVisited=tt};GraphComponent.prototype.setInResult=function(tt){this._isInResult=tt};GraphComponent.prototype.isCovered=function(){return this._isCovered};GraphComponent.prototype.isCoveredSet=function(){return this._isCoveredSet};GraphComponent.prototype.setLabel=function(tt){this._label=tt};GraphComponent.prototype.getLabel=function(){return this._label};GraphComponent.prototype.setCovered=function(tt){this._isCovered=tt,this._isCoveredSet=!0};GraphComponent.prototype.updateIM=function(tt){Assert.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(tt)};GraphComponent.prototype.isInResult=function(){return this._isInResult};GraphComponent.prototype.isVisited=function(){return this._isVisited};GraphComponent.prototype.interfaces_=function(){return[]};GraphComponent.prototype.getClass=function(){return GraphComponent};var Node$2=function(et){function tt(){et.call(this),this._coord=null,this._edges=null;var rt=arguments[0],nt=arguments[1];this._coord=rt,this._edges=nt,this._label=new Label$2(0,Location.NONE)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.isIncidentEdgeInResult=function(){for(var nt=this.getEdges().getEdges().iterator();nt.hasNext();){var lt=nt.next();if(lt.getEdge().isInResult())return!0}return!1},tt.prototype.isIsolated=function(){return this._label.getGeometryCount()===1},tt.prototype.getCoordinate=function(){return this._coord},tt.prototype.print=function(nt){nt.println("node "+this._coord+" lbl: "+this._label)},tt.prototype.computeIM=function(nt){},tt.prototype.computeMergedLocation=function(nt,lt){var ut=Location.NONE;if(ut=this._label.getLocation(lt),!nt.isNull(lt)){var dt=nt.getLocation(lt);ut!==Location.BOUNDARY&&(ut=dt)}return ut},tt.prototype.setLabel=function(){if(arguments.length===2){var nt=arguments[0],lt=arguments[1];this._label===null?this._label=new Label$2(nt,lt):this._label.setLocation(nt,lt)}else return et.prototype.setLabel.apply(this,arguments)},tt.prototype.getEdges=function(){return this._edges},tt.prototype.mergeLabel=function(){var nt=this;if(arguments[0]instanceof tt){var lt=arguments[0];this.mergeLabel(lt._label)}else if(arguments[0]instanceof Label$2)for(var ut=arguments[0],dt=0;dt<2;dt++){var pt=nt.computeMergedLocation(ut,dt),ht=nt._label.getLocation(dt);ht===Location.NONE&&nt._label.setLocation(dt,pt)}},tt.prototype.add=function(nt){this._edges.insert(nt),nt.setNode(this)},tt.prototype.setLabelBoundary=function(nt){if(this._label===null)return null;var lt=Location.NONE;this._label!==null&&(lt=this._label.getLocation(nt));var ut=null;switch(lt){case Location.BOUNDARY:ut=Location.INTERIOR;break;case Location.INTERIOR:ut=Location.BOUNDARY;break;default:ut=Location.BOUNDARY;break}this._label.setLocation(nt,ut)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(GraphComponent),NodeMap=function(){this.nodeMap=new TreeMap,this.nodeFact=null;var tt=arguments[0];this.nodeFact=tt};NodeMap.prototype.find=function(tt){return this.nodeMap.get(tt)};NodeMap.prototype.addNode=function(){if(arguments[0]instanceof Coordinate){var tt=arguments[0],rt=this.nodeMap.get(tt);return rt===null&&(rt=this.nodeFact.createNode(tt),this.nodeMap.put(tt,rt)),rt}else if(arguments[0]instanceof Node$2){var nt=arguments[0],lt=this.nodeMap.get(nt.getCoordinate());return lt===null?(this.nodeMap.put(nt.getCoordinate(),nt),nt):(lt.mergeLabel(nt),lt)}};NodeMap.prototype.print=function(tt){for(var rt=this.iterator();rt.hasNext();){var nt=rt.next();nt.print(tt)}};NodeMap.prototype.iterator=function(){return this.nodeMap.values().iterator()};NodeMap.prototype.values=function(){return this.nodeMap.values()};NodeMap.prototype.getBoundaryNodes=function(tt){for(var rt=new ArrayList,nt=this.iterator();nt.hasNext();){var lt=nt.next();lt.getLabel().getLocation(tt)===Location.BOUNDARY&&rt.add(lt)}return rt};NodeMap.prototype.add=function(tt){var rt=tt.getCoordinate(),nt=this.addNode(rt);nt.add(tt)};NodeMap.prototype.interfaces_=function(){return[]};NodeMap.prototype.getClass=function(){return NodeMap};var Quadrant=function(){},staticAccessors$21={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Quadrant.prototype.interfaces_=function(){return[]};Quadrant.prototype.getClass=function(){return Quadrant};Quadrant.isNorthern=function(tt){return tt===Quadrant.NE||tt===Quadrant.NW};Quadrant.isOpposite=function(tt,rt){if(tt===rt)return!1;var nt=(tt-rt+4)%4;return nt===2};Quadrant.commonHalfPlane=function(tt,rt){if(tt===rt)return tt;var nt=(tt-rt+4)%4;if(nt===2)return-1;var lt=tt<rt?tt:rt,ut=tt>rt?tt:rt;return lt===0&&ut===3?3:lt};Quadrant.isInHalfPlane=function(tt,rt){return rt===Quadrant.SE?tt===Quadrant.SE||tt===Quadrant.SW:tt===rt||tt===rt+1};Quadrant.quadrant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var tt=arguments[0],rt=arguments[1];if(tt===0&&rt===0)throw new IllegalArgumentException("Cannot compute the quadrant for point ( "+tt+", "+rt+" )");return tt>=0?rt>=0?Quadrant.NE:Quadrant.SE:rt>=0?Quadrant.NW:Quadrant.SW}else if(arguments[0]instanceof Coordinate&&arguments[1]instanceof Coordinate){var nt=arguments[0],lt=arguments[1];if(lt.x===nt.x&&lt.y===nt.y)throw new IllegalArgumentException("Cannot compute the quadrant for two identical points "+nt);return lt.x>=nt.x?lt.y>=nt.y?Quadrant.NE:Quadrant.SE:lt.y>=nt.y?Quadrant.NW:Quadrant.SW}};staticAccessors$21.NE.get=function(){return 0};staticAccessors$21.NW.get=function(){return 1};staticAccessors$21.SW.get=function(){return 2};staticAccessors$21.SE.get=function(){return 3};Object.defineProperties(Quadrant,staticAccessors$21);var EdgeEnd=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,arguments.length===1){var tt=arguments[0];this._edge=tt}else if(arguments.length===3){var rt=arguments[0],nt=arguments[1],lt=arguments[2],ut=null;this._edge=rt,this.init(nt,lt),this._label=ut}else if(arguments.length===4){var dt=arguments[0],pt=arguments[1],ht=arguments[2],mt=arguments[3];this._edge=dt,this.init(pt,ht),this._label=mt}};EdgeEnd.prototype.compareDirection=function(tt){return this._dx===tt._dx&&this._dy===tt._dy?0:this._quadrant>tt._quadrant?1:this._quadrant<tt._quadrant?-1:CGAlgorithms.computeOrientation(tt._p0,tt._p1,this._p1)};EdgeEnd.prototype.getDy=function(){return this._dy};EdgeEnd.prototype.getCoordinate=function(){return this._p0};EdgeEnd.prototype.setNode=function(tt){this._node=tt};EdgeEnd.prototype.print=function(tt){var rt=Math.atan2(this._dy,this._dx),nt=this.getClass().getName(),lt=nt.lastIndexOf("."),ut=nt.substring(lt+1);tt.print("  "+ut+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+rt+"   "+this._label)};EdgeEnd.prototype.compareTo=function(tt){var rt=tt;return this.compareDirection(rt)};EdgeEnd.prototype.getDirectedCoordinate=function(){return this._p1};EdgeEnd.prototype.getDx=function(){return this._dx};EdgeEnd.prototype.getLabel=function(){return this._label};EdgeEnd.prototype.getEdge=function(){return this._edge};EdgeEnd.prototype.getQuadrant=function(){return this._quadrant};EdgeEnd.prototype.getNode=function(){return this._node};EdgeEnd.prototype.toString=function(){var tt=Math.atan2(this._dy,this._dx),rt=this.getClass().getName(),nt=rt.lastIndexOf("."),lt=rt.substring(nt+1);return"  "+lt+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+tt+"   "+this._label};EdgeEnd.prototype.computeLabel=function(tt){};EdgeEnd.prototype.init=function(tt,rt){this._p0=tt,this._p1=rt,this._dx=rt.x-tt.x,this._dy=rt.y-tt.y,this._quadrant=Quadrant.quadrant(this._dx,this._dy),Assert.isTrue(!(this._dx===0&&this._dy===0),"EdgeEnd with identical endpoints found")};EdgeEnd.prototype.interfaces_=function(){return[Comparable]};EdgeEnd.prototype.getClass=function(){return EdgeEnd};var DirectedEdge=function(et){function tt(){var rt=arguments[0],nt=arguments[1];if(et.call(this,rt),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=nt,nt)this.init(rt.getCoordinate(0),rt.getCoordinate(1));else{var lt=rt.getNumPoints()-1;this.init(rt.getCoordinate(lt),rt.getCoordinate(lt-1))}this.computeDirectedLabel()}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.getNextMin=function(){return this._nextMin},tt.prototype.getDepth=function(nt){return this._depth[nt]},tt.prototype.setVisited=function(nt){this._isVisited=nt},tt.prototype.computeDirectedLabel=function(){this._label=new Label$2(this._edge.getLabel()),this._isForward||this._label.flip()},tt.prototype.getNext=function(){return this._next},tt.prototype.setDepth=function(nt,lt){if(this._depth[nt]!==-999&&this._depth[nt]!==lt)throw new TopologyException("assigned depths do not match",this.getCoordinate());this._depth[nt]=lt},tt.prototype.isInteriorAreaEdge=function(){for(var nt=this,lt=!0,ut=0;ut<2;ut++)nt._label.isArea(ut)&&nt._label.getLocation(ut,Position$1.LEFT)===Location.INTERIOR&&nt._label.getLocation(ut,Position$1.RIGHT)===Location.INTERIOR||(lt=!1);return lt},tt.prototype.setNextMin=function(nt){this._nextMin=nt},tt.prototype.print=function(nt){et.prototype.print.call(this,nt),nt.print(" "+this._depth[Position$1.LEFT]+"/"+this._depth[Position$1.RIGHT]),nt.print(" ("+this.getDepthDelta()+")"),this._isInResult&&nt.print(" inResult")},tt.prototype.setMinEdgeRing=function(nt){this._minEdgeRing=nt},tt.prototype.isLineEdge=function(){var nt=this._label.isLine(0)||this._label.isLine(1),lt=!this._label.isArea(0)||this._label.allPositionsEqual(0,Location.EXTERIOR),ut=!this._label.isArea(1)||this._label.allPositionsEqual(1,Location.EXTERIOR);return nt&&lt&&ut},tt.prototype.setEdgeRing=function(nt){this._edgeRing=nt},tt.prototype.getMinEdgeRing=function(){return this._minEdgeRing},tt.prototype.getDepthDelta=function(){var nt=this._edge.getDepthDelta();return this._isForward||(nt=-nt),nt},tt.prototype.setInResult=function(nt){this._isInResult=nt},tt.prototype.getSym=function(){return this._sym},tt.prototype.isForward=function(){return this._isForward},tt.prototype.getEdge=function(){return this._edge},tt.prototype.printEdge=function(nt){this.print(nt),nt.print(" "),this._isForward?this._edge.print(nt):this._edge.printReverse(nt)},tt.prototype.setSym=function(nt){this._sym=nt},tt.prototype.setVisitedEdge=function(nt){this.setVisited(nt),this._sym.setVisited(nt)},tt.prototype.setEdgeDepths=function(nt,lt){var ut=this.getEdge().getDepthDelta();this._isForward||(ut=-ut);var dt=1;nt===Position$1.LEFT&&(dt=-1);var pt=Position$1.opposite(nt),ht=ut*dt,mt=lt+ht;this.setDepth(nt,lt),this.setDepth(pt,mt)},tt.prototype.getEdgeRing=function(){return this._edgeRing},tt.prototype.isInResult=function(){return this._isInResult},tt.prototype.setNext=function(nt){this._next=nt},tt.prototype.isVisited=function(){return this._isVisited},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt.depthFactor=function(nt,lt){return nt===Location.EXTERIOR&&lt===Location.INTERIOR?1:nt===Location.INTERIOR&&lt===Location.EXTERIOR?-1:0},tt}(EdgeEnd),NodeFactory=function(){};NodeFactory.prototype.createNode=function(tt){return new Node$2(tt,null)};NodeFactory.prototype.interfaces_=function(){return[]};NodeFactory.prototype.getClass=function(){return NodeFactory};var PlanarGraph=function(){if(this._edges=new ArrayList,this._nodes=null,this._edgeEndList=new ArrayList,arguments.length===0)this._nodes=new NodeMap(new NodeFactory);else if(arguments.length===1){var tt=arguments[0];this._nodes=new NodeMap(tt)}};PlanarGraph.prototype.printEdges=function(tt){var rt=this;tt.println("Edges:");for(var nt=0;nt<this._edges.size();nt++){tt.println("edge "+nt+":");var lt=rt._edges.get(nt);lt.print(tt),lt.eiList.print(tt)}};PlanarGraph.prototype.find=function(tt){return this._nodes.find(tt)};PlanarGraph.prototype.addNode=function(){if(arguments[0]instanceof Node$2){var tt=arguments[0];return this._nodes.addNode(tt)}else if(arguments[0]instanceof Coordinate){var rt=arguments[0];return this._nodes.addNode(rt)}};PlanarGraph.prototype.getNodeIterator=function(){return this._nodes.iterator()};PlanarGraph.prototype.linkResultDirectedEdges=function(){for(var tt=this._nodes.iterator();tt.hasNext();){var rt=tt.next();rt.getEdges().linkResultDirectedEdges()}};PlanarGraph.prototype.debugPrintln=function(tt){System.out.println(tt)};PlanarGraph.prototype.isBoundaryNode=function(tt,rt){var nt=this._nodes.find(rt);if(nt===null)return!1;var lt=nt.getLabel();return lt!==null&&lt.getLocation(tt)===Location.BOUNDARY};PlanarGraph.prototype.linkAllDirectedEdges=function(){for(var tt=this._nodes.iterator();tt.hasNext();){var rt=tt.next();rt.getEdges().linkAllDirectedEdges()}};PlanarGraph.prototype.matchInSameDirection=function(tt,rt,nt,lt){return tt.equals(nt)?CGAlgorithms.computeOrientation(tt,rt,lt)===CGAlgorithms.COLLINEAR&&Quadrant.quadrant(tt,rt)===Quadrant.quadrant(nt,lt):!1};PlanarGraph.prototype.getEdgeEnds=function(){return this._edgeEndList};PlanarGraph.prototype.debugPrint=function(tt){System.out.print(tt)};PlanarGraph.prototype.getEdgeIterator=function(){return this._edges.iterator()};PlanarGraph.prototype.findEdgeInSameDirection=function(tt,rt){for(var nt=this,lt=0;lt<this._edges.size();lt++){var ut=nt._edges.get(lt),dt=ut.getCoordinates();if(nt.matchInSameDirection(tt,rt,dt[0],dt[1])||nt.matchInSameDirection(tt,rt,dt[dt.length-1],dt[dt.length-2]))return ut}return null};PlanarGraph.prototype.insertEdge=function(tt){this._edges.add(tt)};PlanarGraph.prototype.findEdgeEnd=function(tt){for(var rt=this.getEdgeEnds().iterator();rt.hasNext();){var nt=rt.next();if(nt.getEdge()===tt)return nt}return null};PlanarGraph.prototype.addEdges=function(tt){for(var rt=this,nt=tt.iterator();nt.hasNext();){var lt=nt.next();rt._edges.add(lt);var ut=new DirectedEdge(lt,!0),dt=new DirectedEdge(lt,!1);ut.setSym(dt),dt.setSym(ut),rt.add(ut),rt.add(dt)}};PlanarGraph.prototype.add=function(tt){this._nodes.add(tt),this._edgeEndList.add(tt)};PlanarGraph.prototype.getNodes=function(){return this._nodes.values()};PlanarGraph.prototype.findEdge=function(tt,rt){for(var nt=this,lt=0;lt<this._edges.size();lt++){var ut=nt._edges.get(lt),dt=ut.getCoordinates();if(tt.equals(dt[0])&&rt.equals(dt[1]))return ut}return null};PlanarGraph.prototype.interfaces_=function(){return[]};PlanarGraph.prototype.getClass=function(){return PlanarGraph};PlanarGraph.linkResultDirectedEdges=function(tt){for(var rt=tt.iterator();rt.hasNext();){var nt=rt.next();nt.getEdges().linkResultDirectedEdges()}};var PolygonBuilder=function(){this._geometryFactory=null,this._shellList=new ArrayList;var tt=arguments[0];this._geometryFactory=tt};PolygonBuilder.prototype.sortShellsAndHoles=function(tt,rt,nt){for(var lt=tt.iterator();lt.hasNext();){var ut=lt.next();ut.isHole()?nt.add(ut):rt.add(ut)}};PolygonBuilder.prototype.computePolygons=function(tt){for(var rt=this,nt=new ArrayList,lt=tt.iterator();lt.hasNext();){var ut=lt.next(),dt=ut.toPolygon(rt._geometryFactory);nt.add(dt)}return nt};PolygonBuilder.prototype.placeFreeHoles=function(tt,rt){for(var nt=this,lt=rt.iterator();lt.hasNext();){var ut=lt.next();if(ut.getShell()===null){var dt=nt.findEdgeRingContaining(ut,tt);if(dt===null)throw new TopologyException("unable to assign hole to a shell",ut.getCoordinate(0));ut.setShell(dt)}}};PolygonBuilder.prototype.buildMinimalEdgeRings=function(tt,rt,nt){for(var lt=this,ut=new ArrayList,dt=tt.iterator();dt.hasNext();){var pt=dt.next();if(pt.getMaxNodeDegree()>2){pt.linkDirectedEdgesForMinimalEdgeRings();var ht=pt.buildMinimalRings(),mt=lt.findShell(ht);mt!==null?(lt.placePolygonHoles(mt,ht),rt.add(mt)):nt.addAll(ht)}else ut.add(pt)}return ut};PolygonBuilder.prototype.containsPoint=function(tt){for(var rt=this._shellList.iterator();rt.hasNext();){var nt=rt.next();if(nt.containsPoint(tt))return!0}return!1};PolygonBuilder.prototype.buildMaximalEdgeRings=function(tt){for(var rt=this,nt=new ArrayList,lt=tt.iterator();lt.hasNext();){var ut=lt.next();if(ut.isInResult()&&ut.getLabel().isArea()&&ut.getEdgeRing()===null){var dt=new MaximalEdgeRing(ut,rt._geometryFactory);nt.add(dt),dt.setInResult()}}return nt};PolygonBuilder.prototype.placePolygonHoles=function(tt,rt){for(var nt=rt.iterator();nt.hasNext();){var lt=nt.next();lt.isHole()&&lt.setShell(tt)}};PolygonBuilder.prototype.getPolygons=function(){var tt=this.computePolygons(this._shellList);return tt};PolygonBuilder.prototype.findEdgeRingContaining=function(tt,rt){for(var nt=tt.getLinearRing(),lt=nt.getEnvelopeInternal(),ut=nt.getCoordinateN(0),dt=null,pt=null,ht=rt.iterator();ht.hasNext();){var mt=ht.next(),xt=mt.getLinearRing(),Mt=xt.getEnvelopeInternal();dt!==null&&(pt=dt.getLinearRing().getEnvelopeInternal());var vt=!1;Mt.contains(lt)&&CGAlgorithms.isPointInRing(ut,xt.getCoordinates())&&(vt=!0),vt&&(dt===null||pt.contains(Mt))&&(dt=mt)}return dt};PolygonBuilder.prototype.findShell=function(tt){for(var rt=0,nt=null,lt=tt.iterator();lt.hasNext();){var ut=lt.next();ut.isHole()||(nt=ut,rt++)}return Assert.isTrue(rt<=1,"found two shells in MinimalEdgeRing list"),nt};PolygonBuilder.prototype.add=function(){if(arguments.length===1){var tt=arguments[0];this.add(tt.getEdgeEnds(),tt.getNodes())}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];PlanarGraph.linkResultDirectedEdges(nt);var lt=this.buildMaximalEdgeRings(rt),ut=new ArrayList,dt=this.buildMinimalEdgeRings(lt,this._shellList,ut);this.sortShellsAndHoles(dt,this._shellList,ut),this.placeFreeHoles(this._shellList,ut)}};PolygonBuilder.prototype.interfaces_=function(){return[]};PolygonBuilder.prototype.getClass=function(){return PolygonBuilder};var Boundable=function(){};Boundable.prototype.getBounds=function(){};Boundable.prototype.interfaces_=function(){return[]};Boundable.prototype.getClass=function(){return Boundable};var ItemBoundable=function(){this._bounds=null,this._item=null;var tt=arguments[0],rt=arguments[1];this._bounds=tt,this._item=rt};ItemBoundable.prototype.getItem=function(){return this._item};ItemBoundable.prototype.getBounds=function(){return this._bounds};ItemBoundable.prototype.interfaces_=function(){return[Boundable,Serializable]};ItemBoundable.prototype.getClass=function(){return ItemBoundable};var PriorityQueue=function(){this._size=null,this._items=null,this._size=0,this._items=new ArrayList,this._items.add(null)};PriorityQueue.prototype.poll=function(){if(this.isEmpty())return null;var tt=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),tt};PriorityQueue.prototype.size=function(){return this._size};PriorityQueue.prototype.reorder=function(tt){for(var rt=this,nt=null,lt=this._items.get(tt);tt*2<=this._size&&(nt=tt*2,nt!==rt._size&&rt._items.get(nt+1).compareTo(rt._items.get(nt))<0&&nt++,rt._items.get(nt).compareTo(lt)<0);tt=nt)rt._items.set(tt,rt._items.get(nt));this._items.set(tt,lt)};PriorityQueue.prototype.clear=function(){this._size=0,this._items.clear()};PriorityQueue.prototype.isEmpty=function(){return this._size===0};PriorityQueue.prototype.add=function(tt){var rt=this;this._items.add(null),this._size+=1;var nt=this._size;for(this._items.set(0,tt);tt.compareTo(this._items.get(Math.trunc(nt/2)))<0;nt/=2)rt._items.set(nt,rt._items.get(Math.trunc(nt/2)));this._items.set(nt,tt)};PriorityQueue.prototype.interfaces_=function(){return[]};PriorityQueue.prototype.getClass=function(){return PriorityQueue};var ItemVisitor=function(){};ItemVisitor.prototype.visitItem=function(tt){};ItemVisitor.prototype.interfaces_=function(){return[]};ItemVisitor.prototype.getClass=function(){return ItemVisitor};var SpatialIndex=function(){};SpatialIndex.prototype.insert=function(tt,rt){};SpatialIndex.prototype.remove=function(tt,rt){};SpatialIndex.prototype.query=function(){};SpatialIndex.prototype.interfaces_=function(){return[]};SpatialIndex.prototype.getClass=function(){return SpatialIndex};var AbstractNode=function(){if(this._childBoundables=new ArrayList,this._bounds=null,this._level=null,arguments.length!==0){if(arguments.length===1){var tt=arguments[0];this._level=tt}}},staticAccessors$22={serialVersionUID:{configurable:!0}};AbstractNode.prototype.getLevel=function(){return this._level};AbstractNode.prototype.size=function(){return this._childBoundables.size()};AbstractNode.prototype.getChildBoundables=function(){return this._childBoundables};AbstractNode.prototype.addChildBoundable=function(tt){Assert.isTrue(this._bounds===null),this._childBoundables.add(tt)};AbstractNode.prototype.isEmpty=function(){return this._childBoundables.isEmpty()};AbstractNode.prototype.getBounds=function(){return this._bounds===null&&(this._bounds=this.computeBounds()),this._bounds};AbstractNode.prototype.interfaces_=function(){return[Boundable,Serializable]};AbstractNode.prototype.getClass=function(){return AbstractNode};staticAccessors$22.serialVersionUID.get=function(){return 6493722185909574e3};Object.defineProperties(AbstractNode,staticAccessors$22);var Collections=function(){};Collections.reverseOrder=function(){return{compare:function(rt,nt){return nt.compareTo(rt)}}};Collections.min=function(tt){return Collections.sort(tt),tt.get(0)};Collections.sort=function(tt,rt){var nt=tt.toArray();rt?Arrays.sort(nt,rt):Arrays.sort(nt);for(var lt=tt.iterator(),ut=0,dt=nt.length;ut<dt;ut++)lt.next(),lt.set(nt[ut])};Collections.singletonList=function(tt){var rt=new ArrayList;return rt.add(tt),rt};var BoundablePair=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var tt=arguments[0],rt=arguments[1],nt=arguments[2];this._boundable1=tt,this._boundable2=rt,this._itemDistance=nt,this._distance=this.distance()};BoundablePair.prototype.expandToQueue=function(tt,rt){var nt=BoundablePair.isComposite(this._boundable1),lt=BoundablePair.isComposite(this._boundable2);if(nt&&lt)return BoundablePair.area(this._boundable1)>BoundablePair.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,tt,rt),null):(this.expand(this._boundable2,this._boundable1,tt,rt),null);if(nt)return this.expand(this._boundable1,this._boundable2,tt,rt),null;if(lt)return this.expand(this._boundable2,this._boundable1,tt,rt),null;throw new IllegalArgumentException("neither boundable is composite")};BoundablePair.prototype.isLeaves=function(){return!(BoundablePair.isComposite(this._boundable1)||BoundablePair.isComposite(this._boundable2))};BoundablePair.prototype.compareTo=function(tt){var rt=tt;return this._distance<rt._distance?-1:this._distance>rt._distance?1:0};BoundablePair.prototype.expand=function(tt,rt,nt,lt){for(var ut=this,dt=tt.getChildBoundables(),pt=dt.iterator();pt.hasNext();){var ht=pt.next(),mt=new BoundablePair(ht,rt,ut._itemDistance);mt.getDistance()<lt&&nt.add(mt)}};BoundablePair.prototype.getBoundable=function(tt){return tt===0?this._boundable1:this._boundable2};BoundablePair.prototype.getDistance=function(){return this._distance};BoundablePair.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())};BoundablePair.prototype.interfaces_=function(){return[Comparable]};BoundablePair.prototype.getClass=function(){return BoundablePair};BoundablePair.area=function(tt){return tt.getBounds().getArea()};BoundablePair.isComposite=function(tt){return tt instanceof AbstractNode};var AbstractSTRtree=function et(){if(this._root=null,this._built=!1,this._itemBoundables=new ArrayList,this._nodeCapacity=null,arguments.length===0){var tt=et.DEFAULT_NODE_CAPACITY;this._nodeCapacity=tt}else if(arguments.length===1){var rt=arguments[0];Assert.isTrue(rt>1,"Node capacity must be greater than 1"),this._nodeCapacity=rt}},staticAccessors$23={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};AbstractSTRtree.prototype.getNodeCapacity=function(){return this._nodeCapacity};AbstractSTRtree.prototype.lastNode=function(tt){return tt.get(tt.size()-1)};AbstractSTRtree.prototype.size=function(){var tt=this;if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.size(this._root));if(arguments.length===1){for(var rt=arguments[0],nt=0,lt=rt.getChildBoundables().iterator();lt.hasNext();){var ut=lt.next();ut instanceof AbstractNode?nt+=tt.size(ut):ut instanceof ItemBoundable&&(nt+=1)}return nt}};AbstractSTRtree.prototype.removeItem=function(tt,rt){for(var nt=null,lt=tt.getChildBoundables().iterator();lt.hasNext();){var ut=lt.next();ut instanceof ItemBoundable&&ut.getItem()===rt&&(nt=ut)}return nt!==null?(tt.getChildBoundables().remove(nt),!0):!1};AbstractSTRtree.prototype.itemsTree=function(){var tt=this;if(arguments.length===0){this.build();var rt=this.itemsTree(this._root);return rt===null?new ArrayList:rt}else if(arguments.length===1){for(var nt=arguments[0],lt=new ArrayList,ut=nt.getChildBoundables().iterator();ut.hasNext();){var dt=ut.next();if(dt instanceof AbstractNode){var pt=tt.itemsTree(dt);pt!==null&&lt.add(pt)}else dt instanceof ItemBoundable?lt.add(dt.getItem()):Assert.shouldNeverReachHere()}return lt.size()<=0?null:lt}};AbstractSTRtree.prototype.insert=function(tt,rt){Assert.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new ItemBoundable(tt,rt))};AbstractSTRtree.prototype.boundablesAtLevel=function(){var tt=this;if(arguments.length===1){var rt=arguments[0],nt=new ArrayList;return this.boundablesAtLevel(rt,this._root,nt),nt}else if(arguments.length===3){var lt=arguments[0],ut=arguments[1],dt=arguments[2];if(Assert.isTrue(lt>-2),ut.getLevel()===lt)return dt.add(ut),null;for(var pt=ut.getChildBoundables().iterator();pt.hasNext();){var ht=pt.next();ht instanceof AbstractNode?tt.boundablesAtLevel(lt,ht,dt):(Assert.isTrue(ht instanceof ItemBoundable),lt===-1&&dt.add(ht))}return null}};AbstractSTRtree.prototype.query=function(){var tt=this;if(arguments.length===1){var rt=arguments[0];this.build();var nt=new ArrayList;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),rt)&&this.query(rt,this._root,nt),nt}else if(arguments.length===2){var lt=arguments[0],ut=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),lt)&&this.query(lt,this._root,ut)}else if(arguments.length===3){if(hasInterface(arguments[2],ItemVisitor)&&arguments[0]instanceof Object&&arguments[1]instanceof AbstractNode)for(var dt=arguments[0],pt=arguments[1],ht=arguments[2],mt=pt.getChildBoundables(),xt=0;xt<mt.size();xt++){var Mt=mt.get(xt);tt.getIntersectsOp().intersects(Mt.getBounds(),dt)&&(Mt instanceof AbstractNode?tt.query(dt,Mt,ht):Mt instanceof ItemBoundable?ht.visitItem(Mt.getItem()):Assert.shouldNeverReachHere())}else if(hasInterface(arguments[2],List)&&arguments[0]instanceof Object&&arguments[1]instanceof AbstractNode)for(var vt=arguments[0],Ot=arguments[1],At=arguments[2],Rt=Ot.getChildBoundables(),zt=0;zt<Rt.size();zt++){var Tt=Rt.get(zt);tt.getIntersectsOp().intersects(Tt.getBounds(),vt)&&(Tt instanceof AbstractNode?tt.query(vt,Tt,At):Tt instanceof ItemBoundable?At.add(Tt.getItem()):Assert.shouldNeverReachHere())}}};AbstractSTRtree.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0};AbstractSTRtree.prototype.getRoot=function(){return this.build(),this._root};AbstractSTRtree.prototype.remove=function(){var tt=this;if(arguments.length===2){var rt=arguments[0],nt=arguments[1];return this.build(),this.getIntersectsOp().intersects(this._root.getBounds(),rt)?this.remove(rt,this._root,nt):!1}else if(arguments.length===3){var lt=arguments[0],ut=arguments[1],dt=arguments[2],pt=this.removeItem(ut,dt);if(pt)return!0;for(var ht=null,mt=ut.getChildBoundables().iterator();mt.hasNext();){var xt=mt.next();if(tt.getIntersectsOp().intersects(xt.getBounds(),lt)&&xt instanceof AbstractNode&&(pt=tt.remove(lt,xt,dt),pt)){ht=xt;break}}return ht!==null&&ht.getChildBoundables().isEmpty()&&ut.getChildBoundables().remove(ht),pt}};AbstractSTRtree.prototype.createHigherLevels=function(tt,rt){Assert.isTrue(!tt.isEmpty());var nt=this.createParentBoundables(tt,rt+1);return nt.size()===1?nt.get(0):this.createHigherLevels(nt,rt+1)};AbstractSTRtree.prototype.depth=function(){var tt=this;if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(arguments.length===1){for(var rt=arguments[0],nt=0,lt=rt.getChildBoundables().iterator();lt.hasNext();){var ut=lt.next();if(ut instanceof AbstractNode){var dt=tt.depth(ut);dt>nt&&(nt=dt)}}return nt+1}};AbstractSTRtree.prototype.createParentBoundables=function(tt,rt){var nt=this;Assert.isTrue(!tt.isEmpty());var lt=new ArrayList;lt.add(this.createNode(rt));var ut=new ArrayList(tt);Collections.sort(ut,this.getComparator());for(var dt=ut.iterator();dt.hasNext();){var pt=dt.next();nt.lastNode(lt).getChildBoundables().size()===nt.getNodeCapacity()&&lt.add(nt.createNode(rt)),nt.lastNode(lt).addChildBoundable(pt)}return lt};AbstractSTRtree.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()};AbstractSTRtree.prototype.interfaces_=function(){return[Serializable]};AbstractSTRtree.prototype.getClass=function(){return AbstractSTRtree};AbstractSTRtree.compareDoubles=function(tt,rt){return tt>rt?1:tt<rt?-1:0};staticAccessors$23.IntersectsOp.get=function(){return IntersectsOp};staticAccessors$23.serialVersionUID.get=function(){return-3886435814360241e3};staticAccessors$23.DEFAULT_NODE_CAPACITY.get=function(){return 10};Object.defineProperties(AbstractSTRtree,staticAccessors$23);var IntersectsOp=function(){},ItemDistance=function(){};ItemDistance.prototype.distance=function(tt,rt){};ItemDistance.prototype.interfaces_=function(){return[]};ItemDistance.prototype.getClass=function(){return ItemDistance};var STRtree=function(et){function tt(nt){nt=nt||tt.DEFAULT_NODE_CAPACITY,et.call(this,nt)}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return tt.prototype.createParentBoundablesFromVerticalSlices=function(lt,ut){var dt=this;Assert.isTrue(lt.length>0);for(var pt=new ArrayList,ht=0;ht<lt.length;ht++)pt.addAll(dt.createParentBoundablesFromVerticalSlice(lt[ht],ut));return pt},tt.prototype.createNode=function(lt){return new STRtreeNode(lt)},tt.prototype.size=function(){return arguments.length===0?et.prototype.size.call(this):et.prototype.size.apply(this,arguments)},tt.prototype.insert=function(){if(arguments.length===2){var lt=arguments[0],ut=arguments[1];if(lt.isNull())return null;et.prototype.insert.call(this,lt,ut)}else return et.prototype.insert.apply(this,arguments)},tt.prototype.getIntersectsOp=function(){return tt.intersectsOp},tt.prototype.verticalSlices=function(lt,ut){for(var dt=Math.trunc(Math.ceil(lt.size()/ut)),pt=new Array(ut).fill(null),ht=lt.iterator(),mt=0;mt<ut;mt++){pt[mt]=new ArrayList;for(var xt=0;ht.hasNext()&&xt<dt;){var Mt=ht.next();pt[mt].add(Mt),xt++}}return pt},tt.prototype.query=function(){if(arguments.length===1){var lt=arguments[0];return et.prototype.query.call(this,lt)}else if(arguments.length===2){var ut=arguments[0],dt=arguments[1];et.prototype.query.call(this,ut,dt)}else if(arguments.length===3){if(hasInterface(arguments[2],ItemVisitor)&&arguments[0]instanceof Object&&arguments[1]instanceof AbstractNode){var pt=arguments[0],ht=arguments[1],mt=arguments[2];et.prototype.query.call(this,pt,ht,mt)}else if(hasInterface(arguments[2],List)&&arguments[0]instanceof Object&&arguments[1]instanceof AbstractNode){var xt=arguments[0],Mt=arguments[1],vt=arguments[2];et.prototype.query.call(this,xt,Mt,vt)}}},tt.prototype.getComparator=function(){return tt.yComparator},tt.prototype.createParentBoundablesFromVerticalSlice=function(lt,ut){return et.prototype.createParentBoundables.call(this,lt,ut)},tt.prototype.remove=function(){if(arguments.length===2){var lt=arguments[0],ut=arguments[1];return et.prototype.remove.call(this,lt,ut)}else return et.prototype.remove.apply(this,arguments)},tt.prototype.depth=function(){return arguments.length===0?et.prototype.depth.call(this):et.prototype.depth.apply(this,arguments)},tt.prototype.createParentBoundables=function(lt,ut){Assert.isTrue(!lt.isEmpty());var dt=Math.trunc(Math.ceil(lt.size()/this.getNodeCapacity())),pt=new ArrayList(lt);Collections.sort(pt,tt.xComparator);var ht=this.verticalSlices(pt,Math.trunc(Math.ceil(Math.sqrt(dt))));return this.createParentBoundablesFromVerticalSlices(ht,ut)},tt.prototype.nearestNeighbour=function(){if(arguments.length===1){if(hasInterface(arguments[0],ItemDistance)){var lt=arguments[0],ut=new BoundablePair(this.getRoot(),this.getRoot(),lt);return this.nearestNeighbour(ut)}else if(arguments[0]instanceof BoundablePair){var dt=arguments[0];return this.nearestNeighbour(dt,Double.POSITIVE_INFINITY)}}else if(arguments.length===2){if(arguments[0]instanceof tt&&hasInterface(arguments[1],ItemDistance)){var pt=arguments[0],ht=arguments[1],mt=new BoundablePair(this.getRoot(),pt.getRoot(),ht);return this.nearestNeighbour(mt)}else if(arguments[0]instanceof BoundablePair&&typeof arguments[1]=="number"){var xt=arguments[0],Mt=arguments[1],vt=Mt,Ot=null,At=new PriorityQueue;for(At.add(xt);!At.isEmpty()&&vt>0;){var Rt=At.poll(),zt=Rt.getDistance();if(zt>=vt)break;Rt.isLeaves()?(vt=zt,Ot=Rt):Rt.expandToQueue(At,vt)}return[Ot.getBoundable(0).getItem(),Ot.getBoundable(1).getItem()]}}else if(arguments.length===3){var Tt=arguments[0],Ct=arguments[1],It=arguments[2],Dt=new ItemBoundable(Tt,Ct),kt=new BoundablePair(this.getRoot(),Dt,It);return this.nearestNeighbour(kt)[0]}},tt.prototype.interfaces_=function(){return[SpatialIndex,Serializable]},tt.prototype.getClass=function(){return tt},tt.centreX=function(lt){return tt.avg(lt.getMinX(),lt.getMaxX())},tt.avg=function(lt,ut){return(lt+ut)/2},tt.centreY=function(lt){return tt.avg(lt.getMinY(),lt.getMaxY())},rt.STRtreeNode.get=function(){return STRtreeNode},rt.serialVersionUID.get=function(){return 0x39920f7d5f261e0},rt.xComparator.get=function(){return{interfaces_:function(){return[Comparator]},compare:function(nt,lt){return et.compareDoubles(tt.centreX(nt.getBounds()),tt.centreX(lt.getBounds()))}}},rt.yComparator.get=function(){return{interfaces_:function(){return[Comparator]},compare:function(nt,lt){return et.compareDoubles(tt.centreY(nt.getBounds()),tt.centreY(lt.getBounds()))}}},rt.intersectsOp.get=function(){return{interfaces_:function(){return[et.IntersectsOp]},intersects:function(nt,lt){return nt.intersects(lt)}}},rt.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(tt,rt),tt}(AbstractSTRtree),STRtreeNode=function(et){function tt(){var rt=arguments[0];et.call(this,rt)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.computeBounds=function(){for(var nt=null,lt=this.getChildBoundables().iterator();lt.hasNext();){var ut=lt.next();nt===null?nt=new Envelope(ut.getBounds()):nt.expandToInclude(ut.getBounds())}return nt},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(AbstractNode),SegmentPointComparator=function(){};SegmentPointComparator.prototype.interfaces_=function(){return[]};SegmentPointComparator.prototype.getClass=function(){return SegmentPointComparator};SegmentPointComparator.relativeSign=function(tt,rt){return tt<rt?-1:tt>rt?1:0};SegmentPointComparator.compare=function(tt,rt,nt){if(rt.equals2D(nt))return 0;var lt=SegmentPointComparator.relativeSign(rt.x,nt.x),ut=SegmentPointComparator.relativeSign(rt.y,nt.y);switch(tt){case 0:return SegmentPointComparator.compareValue(lt,ut);case 1:return SegmentPointComparator.compareValue(ut,lt);case 2:return SegmentPointComparator.compareValue(ut,-lt);case 3:return SegmentPointComparator.compareValue(-lt,ut);case 4:return SegmentPointComparator.compareValue(-lt,-ut);case 5:return SegmentPointComparator.compareValue(-ut,-lt);case 6:return SegmentPointComparator.compareValue(-ut,lt);case 7:return SegmentPointComparator.compareValue(lt,-ut)}return Assert.shouldNeverReachHere("invalid octant value"),0};SegmentPointComparator.compareValue=function(tt,rt){return tt<0?-1:tt>0?1:rt<0?-1:rt>0?1:0};var SegmentNode=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var tt=arguments[0],rt=arguments[1],nt=arguments[2],lt=arguments[3];this._segString=tt,this.coord=new Coordinate(rt),this.segmentIndex=nt,this._segmentOctant=lt,this._isInterior=!rt.equals2D(tt.getCoordinate(nt))};SegmentNode.prototype.getCoordinate=function(){return this.coord};SegmentNode.prototype.print=function(tt){tt.print(this.coord),tt.print(" seg # = "+this.segmentIndex)};SegmentNode.prototype.compareTo=function(tt){var rt=tt;return this.segmentIndex<rt.segmentIndex?-1:this.segmentIndex>rt.segmentIndex?1:this.coord.equals2D(rt.coord)?0:SegmentPointComparator.compare(this._segmentOctant,this.coord,rt.coord)};SegmentNode.prototype.isEndPoint=function(tt){return this.segmentIndex===0&&!this._isInterior||this.segmentIndex===tt};SegmentNode.prototype.isInterior=function(){return this._isInterior};SegmentNode.prototype.interfaces_=function(){return[Comparable]};SegmentNode.prototype.getClass=function(){return SegmentNode};var SegmentNodeList=function(){this._nodeMap=new TreeMap,this._edge=null;var tt=arguments[0];this._edge=tt};SegmentNodeList.prototype.getSplitCoordinates=function(){var tt=this,rt=new CoordinateList;this.addEndpoints();for(var nt=this.iterator(),lt=nt.next();nt.hasNext();){var ut=nt.next();tt.addEdgeCoordinates(lt,ut,rt),lt=ut}return rt.toCoordinateArray()};SegmentNodeList.prototype.addCollapsedNodes=function(){var tt=this,rt=new ArrayList;this.findCollapsesFromInsertedNodes(rt),this.findCollapsesFromExistingVertices(rt);for(var nt=rt.iterator();nt.hasNext();){var lt=nt.next().intValue();tt.add(tt._edge.getCoordinate(lt),lt)}};SegmentNodeList.prototype.print=function(tt){tt.println("Intersections:");for(var rt=this.iterator();rt.hasNext();){var nt=rt.next();nt.print(tt)}};SegmentNodeList.prototype.findCollapsesFromExistingVertices=function(tt){for(var rt=this,nt=0;nt<this._edge.size()-2;nt++){var lt=rt._edge.getCoordinate(nt),ut=rt._edge.getCoordinate(nt+2);lt.equals2D(ut)&&tt.add(new Integer(nt+1))}};SegmentNodeList.prototype.addEdgeCoordinates=function(tt,rt,nt){var lt=this,ut=this._edge.getCoordinate(rt.segmentIndex),dt=rt.isInterior()||!rt.coord.equals2D(ut);nt.add(new Coordinate(tt.coord),!1);for(var pt=tt.segmentIndex+1;pt<=rt.segmentIndex;pt++)nt.add(lt._edge.getCoordinate(pt));dt&&nt.add(new Coordinate(rt.coord))};SegmentNodeList.prototype.iterator=function(){return this._nodeMap.values().iterator()};SegmentNodeList.prototype.addSplitEdges=function(tt){var rt=this;this.addEndpoints(),this.addCollapsedNodes();for(var nt=this.iterator(),lt=nt.next();nt.hasNext();){var ut=nt.next(),dt=rt.createSplitEdge(lt,ut);tt.add(dt),lt=ut}};SegmentNodeList.prototype.findCollapseIndex=function(tt,rt,nt){if(!tt.coord.equals2D(rt.coord))return!1;var lt=rt.segmentIndex-tt.segmentIndex;return rt.isInterior()||lt--,lt===1?(nt[0]=tt.segmentIndex+1,!0):!1};SegmentNodeList.prototype.findCollapsesFromInsertedNodes=function(tt){for(var rt=this,nt=new Array(1).fill(null),lt=this.iterator(),ut=lt.next();lt.hasNext();){var dt=lt.next(),pt=rt.findCollapseIndex(ut,dt,nt);pt&&tt.add(new Integer(nt[0])),ut=dt}};SegmentNodeList.prototype.getEdge=function(){return this._edge};SegmentNodeList.prototype.addEndpoints=function(){var tt=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(tt),tt)};SegmentNodeList.prototype.createSplitEdge=function(tt,rt){var nt=this,lt=rt.segmentIndex-tt.segmentIndex+2,ut=this._edge.getCoordinate(rt.segmentIndex),dt=rt.isInterior()||!rt.coord.equals2D(ut);dt||lt--;var pt=new Array(lt).fill(null),ht=0;pt[ht++]=new Coordinate(tt.coord);for(var mt=tt.segmentIndex+1;mt<=rt.segmentIndex;mt++)pt[ht++]=nt._edge.getCoordinate(mt);return dt&&(pt[ht]=new Coordinate(rt.coord)),new NodedSegmentString(pt,this._edge.getData())};SegmentNodeList.prototype.add=function(tt,rt){var nt=new SegmentNode(this._edge,tt,rt,this._edge.getSegmentOctant(rt)),lt=this._nodeMap.get(nt);return lt!==null?(Assert.isTrue(lt.coord.equals2D(tt),"Found equal nodes with different coordinates"),lt):(this._nodeMap.put(nt,nt),nt)};SegmentNodeList.prototype.checkSplitEdgesCorrectness=function(tt){var rt=this._edge.getCoordinates(),nt=tt.get(0),lt=nt.getCoordinate(0);if(!lt.equals2D(rt[0]))throw new RuntimeException("bad split edge start point at "+lt);var ut=tt.get(tt.size()-1),dt=ut.getCoordinates(),pt=dt[dt.length-1];if(!pt.equals2D(rt[rt.length-1]))throw new RuntimeException("bad split edge end point at "+pt)};SegmentNodeList.prototype.interfaces_=function(){return[]};SegmentNodeList.prototype.getClass=function(){return SegmentNodeList};var Octant=function(){};Octant.prototype.interfaces_=function(){return[]};Octant.prototype.getClass=function(){return Octant};Octant.octant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var tt=arguments[0],rt=arguments[1];if(tt===0&&rt===0)throw new IllegalArgumentException("Cannot compute the octant for point ( "+tt+", "+rt+" )");var nt=Math.abs(tt),lt=Math.abs(rt);return tt>=0?rt>=0?nt>=lt?0:1:nt>=lt?7:6:rt>=0?nt>=lt?3:2:nt>=lt?4:5}else if(arguments[0]instanceof Coordinate&&arguments[1]instanceof Coordinate){var ut=arguments[0],dt=arguments[1],pt=dt.x-ut.x,ht=dt.y-ut.y;if(pt===0&&ht===0)throw new IllegalArgumentException("Cannot compute the octant for two identical points "+ut);return Octant.octant(pt,ht)}};var SegmentString=function(){};SegmentString.prototype.getCoordinates=function(){};SegmentString.prototype.size=function(){};SegmentString.prototype.getCoordinate=function(tt){};SegmentString.prototype.isClosed=function(){};SegmentString.prototype.setData=function(tt){};SegmentString.prototype.getData=function(){};SegmentString.prototype.interfaces_=function(){return[]};SegmentString.prototype.getClass=function(){return SegmentString};var NodableSegmentString=function(){};NodableSegmentString.prototype.addIntersection=function(tt,rt){};NodableSegmentString.prototype.interfaces_=function(){return[SegmentString]};NodableSegmentString.prototype.getClass=function(){return NodableSegmentString};var NodedSegmentString=function(){this._nodeList=new SegmentNodeList(this),this._pts=null,this._data=null;var tt=arguments[0],rt=arguments[1];this._pts=tt,this._data=rt};NodedSegmentString.prototype.getCoordinates=function(){return this._pts};NodedSegmentString.prototype.size=function(){return this._pts.length};NodedSegmentString.prototype.getCoordinate=function(tt){return this._pts[tt]};NodedSegmentString.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])};NodedSegmentString.prototype.getSegmentOctant=function(tt){return tt===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(tt),this.getCoordinate(tt+1))};NodedSegmentString.prototype.setData=function(tt){this._data=tt};NodedSegmentString.prototype.safeOctant=function(tt,rt){return tt.equals2D(rt)?0:Octant.octant(tt,rt)};NodedSegmentString.prototype.getData=function(){return this._data};NodedSegmentString.prototype.addIntersection=function(){if(arguments.length===2){var tt=arguments[0],rt=arguments[1];this.addIntersectionNode(tt,rt)}else if(arguments.length===4){var nt=arguments[0],lt=arguments[1],ut=arguments[3],dt=new Coordinate(nt.getIntersection(ut));this.addIntersection(dt,lt)}};NodedSegmentString.prototype.toString=function(){return WKTWriter.toLineString(new CoordinateArraySequence(this._pts))};NodedSegmentString.prototype.getNodeList=function(){return this._nodeList};NodedSegmentString.prototype.addIntersectionNode=function(tt,rt){var nt=rt,lt=nt+1;if(lt<this._pts.length){var ut=this._pts[lt];tt.equals2D(ut)&&(nt=lt)}var dt=this._nodeList.add(tt,nt);return dt};NodedSegmentString.prototype.addIntersections=function(tt,rt,nt){for(var lt=this,ut=0;ut<tt.getIntersectionNum();ut++)lt.addIntersection(tt,rt,nt,ut)};NodedSegmentString.prototype.interfaces_=function(){return[NodableSegmentString]};NodedSegmentString.prototype.getClass=function(){return NodedSegmentString};NodedSegmentString.getNodedSubstrings=function(){if(arguments.length===1){var tt=arguments[0],rt=new ArrayList;return NodedSegmentString.getNodedSubstrings(tt,rt),rt}else if(arguments.length===2)for(var nt=arguments[0],lt=arguments[1],ut=nt.iterator();ut.hasNext();){var dt=ut.next();dt.getNodeList().addSplitEdges(lt)}};var LineSegment=function(){if(this.p0=null,this.p1=null,arguments.length===0)this.p0=new Coordinate,this.p1=new Coordinate;else if(arguments.length===1){var tt=arguments[0];this.p0=new Coordinate(tt.p0),this.p1=new Coordinate(tt.p1)}else if(arguments.length===2)this.p0=arguments[0],this.p1=arguments[1];else if(arguments.length===4){var rt=arguments[0],nt=arguments[1],lt=arguments[2],ut=arguments[3];this.p0=new Coordinate(rt,nt),this.p1=new Coordinate(lt,ut)}},staticAccessors$24={serialVersionUID:{configurable:!0}};LineSegment.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)};LineSegment.prototype.orientationIndex=function(){if(arguments[0]instanceof LineSegment){var tt=arguments[0],rt=CGAlgorithms.orientationIndex(this.p0,this.p1,tt.p0),nt=CGAlgorithms.orientationIndex(this.p0,this.p1,tt.p1);return rt>=0&&nt>=0||rt<=0&&nt<=0?Math.max(rt,nt):0}else if(arguments[0]instanceof Coordinate){var lt=arguments[0];return CGAlgorithms.orientationIndex(this.p0,this.p1,lt)}};LineSegment.prototype.toGeometry=function(tt){return tt.createLineString([this.p0,this.p1])};LineSegment.prototype.isVertical=function(){return this.p0.x===this.p1.x};LineSegment.prototype.equals=function(tt){if(!(tt instanceof LineSegment))return!1;var rt=tt;return this.p0.equals(rt.p0)&&this.p1.equals(rt.p1)};LineSegment.prototype.intersection=function(tt){var rt=new RobustLineIntersector;return rt.computeIntersection(this.p0,this.p1,tt.p0,tt.p1),rt.hasIntersection()?rt.getIntersection(0):null};LineSegment.prototype.project=function(){if(arguments[0]instanceof Coordinate){var tt=arguments[0];if(tt.equals(this.p0)||tt.equals(this.p1))return new Coordinate(tt);var rt=this.projectionFactor(tt),nt=new Coordinate;return nt.x=this.p0.x+rt*(this.p1.x-this.p0.x),nt.y=this.p0.y+rt*(this.p1.y-this.p0.y),nt}else if(arguments[0]instanceof LineSegment){var lt=arguments[0],ut=this.projectionFactor(lt.p0),dt=this.projectionFactor(lt.p1);if(ut>=1&&dt>=1||ut<=0&&dt<=0)return null;var pt=this.project(lt.p0);ut<0&&(pt=this.p0),ut>1&&(pt=this.p1);var ht=this.project(lt.p1);return dt<0&&(ht=this.p0),dt>1&&(ht=this.p1),new LineSegment(pt,ht)}};LineSegment.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()};LineSegment.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)};LineSegment.prototype.getCoordinate=function(tt){return tt===0?this.p0:this.p1};LineSegment.prototype.distancePerpendicular=function(tt){return CGAlgorithms.distancePointLinePerpendicular(tt,this.p0,this.p1)};LineSegment.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)};LineSegment.prototype.midPoint=function(){return LineSegment.midPoint(this.p0,this.p1)};LineSegment.prototype.projectionFactor=function(tt){if(tt.equals(this.p0))return 0;if(tt.equals(this.p1))return 1;var rt=this.p1.x-this.p0.x,nt=this.p1.y-this.p0.y,lt=rt*rt+nt*nt;if(lt<=0)return Double.NaN;var ut=((tt.x-this.p0.x)*rt+(tt.y-this.p0.y)*nt)/lt;return ut};LineSegment.prototype.closestPoints=function(tt){var rt=this.intersection(tt);if(rt!==null)return[rt,rt];var nt=new Array(2).fill(null),lt=Double.MAX_VALUE,ut=null,dt=this.closestPoint(tt.p0);lt=dt.distance(tt.p0),nt[0]=dt,nt[1]=tt.p0;var pt=this.closestPoint(tt.p1);ut=pt.distance(tt.p1),ut<lt&&(lt=ut,nt[0]=pt,nt[1]=tt.p1);var ht=tt.closestPoint(this.p0);ut=ht.distance(this.p0),ut<lt&&(lt=ut,nt[0]=this.p0,nt[1]=ht);var mt=tt.closestPoint(this.p1);return ut=mt.distance(this.p1),ut<lt&&(lt=ut,nt[0]=this.p1,nt[1]=mt),nt};LineSegment.prototype.closestPoint=function(tt){var rt=this.projectionFactor(tt);if(rt>0&&rt<1)return this.project(tt);var nt=this.p0.distance(tt),lt=this.p1.distance(tt);return nt<lt?this.p0:this.p1};LineSegment.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)};LineSegment.prototype.getLength=function(){return this.p0.distance(this.p1)};LineSegment.prototype.compareTo=function(tt){var rt=tt,nt=this.p0.compareTo(rt.p0);return nt!==0?nt:this.p1.compareTo(rt.p1)};LineSegment.prototype.reverse=function(){var tt=this.p0;this.p0=this.p1,this.p1=tt};LineSegment.prototype.equalsTopo=function(tt){return this.p0.equals(tt.p0)&&(this.p1.equals(tt.p1)||this.p0.equals(tt.p1))&&this.p1.equals(tt.p0)};LineSegment.prototype.lineIntersection=function(tt){try{var rt=HCoordinate.intersection(this.p0,this.p1,tt.p0,tt.p1);return rt}catch(nt){if(!(nt instanceof NotRepresentableException))throw nt}finally{}return null};LineSegment.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)};LineSegment.prototype.pointAlongOffset=function(tt,rt){var nt=this.p0.x+tt*(this.p1.x-this.p0.x),lt=this.p0.y+tt*(this.p1.y-this.p0.y),ut=this.p1.x-this.p0.x,dt=this.p1.y-this.p0.y,pt=Math.sqrt(ut*ut+dt*dt),ht=0,mt=0;if(rt!==0){if(pt<=0)throw new Error("Cannot compute offset from zero-length line segment");ht=rt*ut/pt,mt=rt*dt/pt}var xt=nt-mt,Mt=lt+ht,vt=new Coordinate(xt,Mt);return vt};LineSegment.prototype.setCoordinates=function(){if(arguments.length===1){var tt=arguments[0];this.setCoordinates(tt.p0,tt.p1)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];this.p0.x=rt.x,this.p0.y=rt.y,this.p1.x=nt.x,this.p1.y=nt.y}};LineSegment.prototype.segmentFraction=function(tt){var rt=this.projectionFactor(tt);return rt<0?rt=0:(rt>1||Double.isNaN(rt))&&(rt=1),rt};LineSegment.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"};LineSegment.prototype.isHorizontal=function(){return this.p0.y===this.p1.y};LineSegment.prototype.distance=function(){if(arguments[0]instanceof LineSegment){var tt=arguments[0];return CGAlgorithms.distanceLineLine(this.p0,this.p1,tt.p0,tt.p1)}else if(arguments[0]instanceof Coordinate){var rt=arguments[0];return CGAlgorithms.distancePointLine(rt,this.p0,this.p1)}};LineSegment.prototype.pointAlong=function(tt){var rt=new Coordinate;return rt.x=this.p0.x+tt*(this.p1.x-this.p0.x),rt.y=this.p0.y+tt*(this.p1.y-this.p0.y),rt};LineSegment.prototype.hashCode=function(){var tt=Double.doubleToLongBits(this.p0.x);tt^=Double.doubleToLongBits(this.p0.y)*31;var rt=Math.trunc(tt)^Math.trunc(tt>>32),nt=Double.doubleToLongBits(this.p1.x);nt^=Double.doubleToLongBits(this.p1.y)*31;var lt=Math.trunc(nt)^Math.trunc(nt>>32);return rt^lt};LineSegment.prototype.interfaces_=function(){return[Comparable,Serializable]};LineSegment.prototype.getClass=function(){return LineSegment};LineSegment.midPoint=function(tt,rt){return new Coordinate((tt.x+rt.x)/2,(tt.y+rt.y)/2)};staticAccessors$24.serialVersionUID.get=function(){return 0x2d2172135f411c00};Object.defineProperties(LineSegment,staticAccessors$24);var MonotoneChainOverlapAction=function(){this.tempEnv1=new Envelope,this.tempEnv2=new Envelope,this._overlapSeg1=new LineSegment,this._overlapSeg2=new LineSegment};MonotoneChainOverlapAction.prototype.overlap=function(){if(arguments.length!==2){if(arguments.length===4){var tt=arguments[0],rt=arguments[1],nt=arguments[2],lt=arguments[3];tt.getLineSegment(rt,this._overlapSeg1),nt.getLineSegment(lt,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}}};MonotoneChainOverlapAction.prototype.interfaces_=function(){return[]};MonotoneChainOverlapAction.prototype.getClass=function(){return MonotoneChainOverlapAction};var MonotoneChain=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var tt=arguments[0],rt=arguments[1],nt=arguments[2],lt=arguments[3];this._pts=tt,this._start=rt,this._end=nt,this._context=lt};MonotoneChain.prototype.getLineSegment=function(tt,rt){rt.p0=this._pts[tt],rt.p1=this._pts[tt+1]};MonotoneChain.prototype.computeSelect=function(tt,rt,nt,lt){var ut=this._pts[rt],dt=this._pts[nt];if(lt.tempEnv1.init(ut,dt),nt-rt===1)return lt.select(this,rt),null;if(!tt.intersects(lt.tempEnv1))return null;var pt=Math.trunc((rt+nt)/2);rt<pt&&this.computeSelect(tt,rt,pt,lt),pt<nt&&this.computeSelect(tt,pt,nt,lt)};MonotoneChain.prototype.getCoordinates=function(){for(var tt=this,rt=new Array(this._end-this._start+1).fill(null),nt=0,lt=this._start;lt<=this._end;lt++)rt[nt++]=tt._pts[lt];return rt};MonotoneChain.prototype.computeOverlaps=function(tt,rt){this.computeOverlapsInternal(this._start,this._end,tt,tt._start,tt._end,rt)};MonotoneChain.prototype.setId=function(tt){this._id=tt};MonotoneChain.prototype.select=function(tt,rt){this.computeSelect(tt,this._start,this._end,rt)};MonotoneChain.prototype.getEnvelope=function(){if(this._env===null){var tt=this._pts[this._start],rt=this._pts[this._end];this._env=new Envelope(tt,rt)}return this._env};MonotoneChain.prototype.getEndIndex=function(){return this._end};MonotoneChain.prototype.getStartIndex=function(){return this._start};MonotoneChain.prototype.getContext=function(){return this._context};MonotoneChain.prototype.getId=function(){return this._id};MonotoneChain.prototype.computeOverlapsInternal=function(tt,rt,nt,lt,ut,dt){var pt=this._pts[tt],ht=this._pts[rt],mt=nt._pts[lt],xt=nt._pts[ut];if(rt-tt===1&&ut-lt===1)return dt.overlap(this,tt,nt,lt),null;if(dt.tempEnv1.init(pt,ht),dt.tempEnv2.init(mt,xt),!dt.tempEnv1.intersects(dt.tempEnv2))return null;var Mt=Math.trunc((tt+rt)/2),vt=Math.trunc((lt+ut)/2);tt<Mt&&(lt<vt&&this.computeOverlapsInternal(tt,Mt,nt,lt,vt,dt),vt<ut&&this.computeOverlapsInternal(tt,Mt,nt,vt,ut,dt)),Mt<rt&&(lt<vt&&this.computeOverlapsInternal(Mt,rt,nt,lt,vt,dt),vt<ut&&this.computeOverlapsInternal(Mt,rt,nt,vt,ut,dt))};MonotoneChain.prototype.interfaces_=function(){return[]};MonotoneChain.prototype.getClass=function(){return MonotoneChain};var MonotoneChainBuilder=function(){};MonotoneChainBuilder.prototype.interfaces_=function(){return[]};MonotoneChainBuilder.prototype.getClass=function(){return MonotoneChainBuilder};MonotoneChainBuilder.getChainStartIndices=function(tt){var rt=0,nt=new ArrayList;nt.add(new Integer(rt));do{var lt=MonotoneChainBuilder.findChainEnd(tt,rt);nt.add(new Integer(lt)),rt=lt}while(rt<tt.length-1);var ut=MonotoneChainBuilder.toIntArray(nt);return ut};MonotoneChainBuilder.findChainEnd=function(tt,rt){for(var nt=rt;nt<tt.length-1&&tt[nt].equals2D(tt[nt+1]);)nt++;if(nt>=tt.length-1)return tt.length-1;for(var lt=Quadrant.quadrant(tt[nt],tt[nt+1]),ut=rt+1;ut<tt.length;){if(!tt[ut-1].equals2D(tt[ut])){var dt=Quadrant.quadrant(tt[ut-1],tt[ut]);if(dt!==lt)break}ut++}return ut-1};MonotoneChainBuilder.getChains=function(){if(arguments.length===1){var tt=arguments[0];return MonotoneChainBuilder.getChains(tt,null)}else if(arguments.length===2){for(var rt=arguments[0],nt=arguments[1],lt=new ArrayList,ut=MonotoneChainBuilder.getChainStartIndices(rt),dt=0;dt<ut.length-1;dt++){var pt=new MonotoneChain(rt,ut[dt],ut[dt+1],nt);lt.add(pt)}return lt}};MonotoneChainBuilder.toIntArray=function(tt){for(var rt=new Array(tt.size()).fill(null),nt=0;nt<rt.length;nt++)rt[nt]=tt.get(nt).intValue();return rt};var Noder=function(){};Noder.prototype.computeNodes=function(tt){};Noder.prototype.getNodedSubstrings=function(){};Noder.prototype.interfaces_=function(){return[]};Noder.prototype.getClass=function(){return Noder};var SinglePassNoder=function(){if(this._segInt=null,arguments.length!==0){if(arguments.length===1){var tt=arguments[0];this.setSegmentIntersector(tt)}}};SinglePassNoder.prototype.setSegmentIntersector=function(tt){this._segInt=tt};SinglePassNoder.prototype.interfaces_=function(){return[Noder]};SinglePassNoder.prototype.getClass=function(){return SinglePassNoder};var MCIndexNoder=function(et){function tt(nt){nt?et.call(this,nt):et.call(this),this._monoChains=new ArrayList,this._index=new STRtree,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt;var rt={SegmentOverlapAction:{configurable:!0}};return tt.prototype.getMonotoneChains=function(){return this._monoChains},tt.prototype.getNodedSubstrings=function(){return NodedSegmentString.getNodedSubstrings(this._nodedSegStrings)},tt.prototype.getIndex=function(){return this._index},tt.prototype.add=function(lt){for(var ut=this,dt=MonotoneChainBuilder.getChains(lt.getCoordinates(),lt),pt=dt.iterator();pt.hasNext();){var ht=pt.next();ht.setId(ut._idCounter++),ut._index.insert(ht.getEnvelope(),ht),ut._monoChains.add(ht)}},tt.prototype.computeNodes=function(lt){var ut=this;this._nodedSegStrings=lt;for(var dt=lt.iterator();dt.hasNext();)ut.add(dt.next());this.intersectChains()},tt.prototype.intersectChains=function(){for(var lt=this,ut=new SegmentOverlapAction(this._segInt),dt=this._monoChains.iterator();dt.hasNext();)for(var pt=dt.next(),ht=lt._index.query(pt.getEnvelope()),mt=ht.iterator();mt.hasNext();){var xt=mt.next();if(xt.getId()>pt.getId()&&(pt.computeOverlaps(xt,ut),lt._nOverlaps++),lt._segInt.isDone())return null}},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},rt.SegmentOverlapAction.get=function(){return SegmentOverlapAction},Object.defineProperties(tt,rt),tt}(SinglePassNoder),SegmentOverlapAction=function(et){function tt(){et.call(this),this._si=null;var rt=arguments[0];this._si=rt}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.overlap=function(){if(arguments.length===4){var nt=arguments[0],lt=arguments[1],ut=arguments[2],dt=arguments[3],pt=nt.getContext(),ht=ut.getContext();this._si.processIntersections(pt,lt,ht,dt)}else return et.prototype.overlap.apply(this,arguments)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(MonotoneChainOverlapAction),BufferParameters=function et(){if(this._quadrantSegments=et.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=et.CAP_ROUND,this._joinStyle=et.JOIN_ROUND,this._mitreLimit=et.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=et.DEFAULT_SIMPLIFY_FACTOR,arguments.length!==0){if(arguments.length===1){var tt=arguments[0];this.setQuadrantSegments(tt)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];this.setQuadrantSegments(rt),this.setEndCapStyle(nt)}else if(arguments.length===4){var lt=arguments[0],ut=arguments[1],dt=arguments[2],pt=arguments[3];this.setQuadrantSegments(lt),this.setEndCapStyle(ut),this.setJoinStyle(dt),this.setMitreLimit(pt)}}},staticAccessors$25={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};BufferParameters.prototype.getEndCapStyle=function(){return this._endCapStyle};BufferParameters.prototype.isSingleSided=function(){return this._isSingleSided};BufferParameters.prototype.setQuadrantSegments=function(tt){this._quadrantSegments=tt,this._quadrantSegments===0&&(this._joinStyle=BufferParameters.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=BufferParameters.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),tt<=0&&(this._quadrantSegments=1),this._joinStyle!==BufferParameters.JOIN_ROUND&&(this._quadrantSegments=BufferParameters.DEFAULT_QUADRANT_SEGMENTS)};BufferParameters.prototype.getJoinStyle=function(){return this._joinStyle};BufferParameters.prototype.setJoinStyle=function(tt){this._joinStyle=tt};BufferParameters.prototype.setSimplifyFactor=function(tt){this._simplifyFactor=tt<0?0:tt};BufferParameters.prototype.getSimplifyFactor=function(){return this._simplifyFactor};BufferParameters.prototype.getQuadrantSegments=function(){return this._quadrantSegments};BufferParameters.prototype.setEndCapStyle=function(tt){this._endCapStyle=tt};BufferParameters.prototype.getMitreLimit=function(){return this._mitreLimit};BufferParameters.prototype.setMitreLimit=function(tt){this._mitreLimit=tt};BufferParameters.prototype.setSingleSided=function(tt){this._isSingleSided=tt};BufferParameters.prototype.interfaces_=function(){return[]};BufferParameters.prototype.getClass=function(){return BufferParameters};BufferParameters.bufferDistanceError=function(tt){var rt=Math.PI/2/tt;return 1-Math.cos(rt/2)};staticAccessors$25.CAP_ROUND.get=function(){return 1};staticAccessors$25.CAP_FLAT.get=function(){return 2};staticAccessors$25.CAP_SQUARE.get=function(){return 3};staticAccessors$25.JOIN_ROUND.get=function(){return 1};staticAccessors$25.JOIN_MITRE.get=function(){return 2};staticAccessors$25.JOIN_BEVEL.get=function(){return 3};staticAccessors$25.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8};staticAccessors$25.DEFAULT_MITRE_LIMIT.get=function(){return 5};staticAccessors$25.DEFAULT_SIMPLIFY_FACTOR.get=function(){return .01};Object.defineProperties(BufferParameters,staticAccessors$25);var BufferInputLineSimplifier=function(tt){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=CGAlgorithms.COUNTERCLOCKWISE,this._inputLine=tt||null},staticAccessors$26={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};BufferInputLineSimplifier.prototype.isDeletable=function(tt,rt,nt,lt){var ut=this._inputLine[tt],dt=this._inputLine[rt],pt=this._inputLine[nt];return!this.isConcave(ut,dt,pt)||!this.isShallow(ut,dt,pt,lt)?!1:this.isShallowSampled(ut,dt,tt,nt,lt)};BufferInputLineSimplifier.prototype.deleteShallowConcavities=function(){for(var tt=this,rt=1,nt=this.findNextNonDeletedIndex(rt),lt=this.findNextNonDeletedIndex(nt),ut=!1;lt<this._inputLine.length;){var dt=!1;tt.isDeletable(rt,nt,lt,tt._distanceTol)&&(tt._isDeleted[nt]=BufferInputLineSimplifier.DELETE,dt=!0,ut=!0),dt?rt=lt:rt=nt,nt=tt.findNextNonDeletedIndex(rt),lt=tt.findNextNonDeletedIndex(nt)}return ut};BufferInputLineSimplifier.prototype.isShallowConcavity=function(tt,rt,nt,lt){var ut=CGAlgorithms.computeOrientation(tt,rt,nt),dt=ut===this._angleOrientation;if(!dt)return!1;var pt=CGAlgorithms.distancePointLine(rt,tt,nt);return pt<lt};BufferInputLineSimplifier.prototype.isShallowSampled=function(tt,rt,nt,lt,ut){var dt=this,pt=Math.trunc((lt-nt)/BufferInputLineSimplifier.NUM_PTS_TO_CHECK);pt<=0&&(pt=1);for(var ht=nt;ht<lt;ht+=pt)if(!dt.isShallow(tt,rt,dt._inputLine[ht],ut))return!1;return!0};BufferInputLineSimplifier.prototype.isConcave=function(tt,rt,nt){var lt=CGAlgorithms.computeOrientation(tt,rt,nt),ut=lt===this._angleOrientation;return ut};BufferInputLineSimplifier.prototype.simplify=function(tt){var rt=this;this._distanceTol=Math.abs(tt),tt<0&&(this._angleOrientation=CGAlgorithms.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var nt=!1;do nt=rt.deleteShallowConcavities();while(nt);return this.collapseLine()};BufferInputLineSimplifier.prototype.findNextNonDeletedIndex=function(tt){for(var rt=tt+1;rt<this._inputLine.length&&this._isDeleted[rt]===BufferInputLineSimplifier.DELETE;)rt++;return rt};BufferInputLineSimplifier.prototype.isShallow=function(tt,rt,nt,lt){var ut=CGAlgorithms.distancePointLine(rt,tt,nt);return ut<lt};BufferInputLineSimplifier.prototype.collapseLine=function(){for(var tt=this,rt=new CoordinateList,nt=0;nt<this._inputLine.length;nt++)tt._isDeleted[nt]!==BufferInputLineSimplifier.DELETE&&rt.add(tt._inputLine[nt]);return rt.toCoordinateArray()};BufferInputLineSimplifier.prototype.interfaces_=function(){return[]};BufferInputLineSimplifier.prototype.getClass=function(){return BufferInputLineSimplifier};BufferInputLineSimplifier.simplify=function(tt,rt){var nt=new BufferInputLineSimplifier(tt);return nt.simplify(rt)};staticAccessors$26.INIT.get=function(){return 0};staticAccessors$26.DELETE.get=function(){return 1};staticAccessors$26.KEEP.get=function(){return 1};staticAccessors$26.NUM_PTS_TO_CHECK.get=function(){return 10};Object.defineProperties(BufferInputLineSimplifier,staticAccessors$26);var OffsetSegmentString=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new ArrayList},staticAccessors$28={COORDINATE_ARRAY_TYPE:{configurable:!0}};OffsetSegmentString.prototype.getCoordinates=function(){var tt=this._ptList.toArray(OffsetSegmentString.COORDINATE_ARRAY_TYPE);return tt};OffsetSegmentString.prototype.setPrecisionModel=function(tt){this._precisionModel=tt};OffsetSegmentString.prototype.addPt=function(tt){var rt=new Coordinate(tt);if(this._precisionModel.makePrecise(rt),this.isRedundant(rt))return null;this._ptList.add(rt)};OffsetSegmentString.prototype.revere=function(){};OffsetSegmentString.prototype.addPts=function(tt,rt){var nt=this;if(rt)for(var lt=0;lt<tt.length;lt++)nt.addPt(tt[lt]);else for(var ut=tt.length-1;ut>=0;ut--)nt.addPt(tt[ut])};OffsetSegmentString.prototype.isRedundant=function(tt){if(this._ptList.size()<1)return!1;var rt=this._ptList.get(this._ptList.size()-1),nt=tt.distance(rt);return nt<this._minimimVertexDistance};OffsetSegmentString.prototype.toString=function(){var tt=new GeometryFactory,rt=tt.createLineString(this.getCoordinates());return rt.toString()};OffsetSegmentString.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var tt=new Coordinate(this._ptList.get(0)),rt=this._ptList.get(this._ptList.size()-1);if(tt.equals(rt))return null;this._ptList.add(tt)};OffsetSegmentString.prototype.setMinimumVertexDistance=function(tt){this._minimimVertexDistance=tt};OffsetSegmentString.prototype.interfaces_=function(){return[]};OffsetSegmentString.prototype.getClass=function(){return OffsetSegmentString};staticAccessors$28.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)};Object.defineProperties(OffsetSegmentString,staticAccessors$28);var Angle=function(){},staticAccessors$29={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};Angle.prototype.interfaces_=function(){return[]};Angle.prototype.getClass=function(){return Angle};Angle.toDegrees=function(tt){return tt*180/Math.PI};Angle.normalize=function(tt){for(;tt>Math.PI;)tt-=Angle.PI_TIMES_2;for(;tt<=-Math.PI;)tt+=Angle.PI_TIMES_2;return tt};Angle.angle=function(){if(arguments.length===1){var tt=arguments[0];return Math.atan2(tt.y,tt.x)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1],lt=nt.x-rt.x,ut=nt.y-rt.y;return Math.atan2(ut,lt)}};Angle.isAcute=function(tt,rt,nt){var lt=tt.x-rt.x,ut=tt.y-rt.y,dt=nt.x-rt.x,pt=nt.y-rt.y,ht=lt*dt+ut*pt;return ht>0};Angle.isObtuse=function(tt,rt,nt){var lt=tt.x-rt.x,ut=tt.y-rt.y,dt=nt.x-rt.x,pt=nt.y-rt.y,ht=lt*dt+ut*pt;return ht<0};Angle.interiorAngle=function(tt,rt,nt){var lt=Angle.angle(rt,tt),ut=Angle.angle(rt,nt);return Math.abs(ut-lt)};Angle.normalizePositive=function(tt){if(tt<0){for(;tt<0;)tt+=Angle.PI_TIMES_2;tt>=Angle.PI_TIMES_2&&(tt=0)}else{for(;tt>=Angle.PI_TIMES_2;)tt-=Angle.PI_TIMES_2;tt<0&&(tt=0)}return tt};Angle.angleBetween=function(tt,rt,nt){var lt=Angle.angle(rt,tt),ut=Angle.angle(rt,nt);return Angle.diff(lt,ut)};Angle.diff=function(tt,rt){var nt=null;return tt<rt?nt=rt-tt:nt=tt-rt,nt>Math.PI&&(nt=2*Math.PI-nt),nt};Angle.toRadians=function(tt){return tt*Math.PI/180};Angle.getTurn=function(tt,rt){var nt=Math.sin(rt-tt);return nt>0?Angle.COUNTERCLOCKWISE:nt<0?Angle.CLOCKWISE:Angle.NONE};Angle.angleBetweenOriented=function(tt,rt,nt){var lt=Angle.angle(rt,tt),ut=Angle.angle(rt,nt),dt=ut-lt;return dt<=-Math.PI?dt+Angle.PI_TIMES_2:dt>Math.PI?dt-Angle.PI_TIMES_2:dt};staticAccessors$29.PI_TIMES_2.get=function(){return 2*Math.PI};staticAccessors$29.PI_OVER_2.get=function(){return Math.PI/2};staticAccessors$29.PI_OVER_4.get=function(){return Math.PI/4};staticAccessors$29.COUNTERCLOCKWISE.get=function(){return CGAlgorithms.COUNTERCLOCKWISE};staticAccessors$29.CLOCKWISE.get=function(){return CGAlgorithms.CLOCKWISE};staticAccessors$29.NONE.get=function(){return CGAlgorithms.COLLINEAR};Object.defineProperties(Angle,staticAccessors$29);var OffsetSegmentGenerator=function et(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new LineSegment,this._seg1=new LineSegment,this._offset0=new LineSegment,this._offset1=new LineSegment,this._side=0,this._hasNarrowConcaveAngle=!1;var tt=arguments[0],rt=arguments[1],nt=arguments[2];this._precisionModel=tt,this._bufParams=rt,this._li=new RobustLineIntersector,this._filletAngleQuantum=Math.PI/2/rt.getQuadrantSegments(),rt.getQuadrantSegments()>=8&&rt.getJoinStyle()===BufferParameters.JOIN_ROUND&&(this._closingSegLengthFactor=et.MAX_CLOSING_SEG_LEN_FACTOR),this.init(nt)},staticAccessors$27={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};OffsetSegmentGenerator.prototype.addNextSegment=function(tt,rt){if(this._s0=this._s1,this._s1=this._s2,this._s2=tt,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var nt=CGAlgorithms.computeOrientation(this._s0,this._s1,this._s2),lt=nt===CGAlgorithms.CLOCKWISE&&this._side===Position$1.LEFT||nt===CGAlgorithms.COUNTERCLOCKWISE&&this._side===Position$1.RIGHT;nt===0?this.addCollinear(rt):lt?this.addOutsideTurn(nt,rt):this.addInsideTurn(nt,rt)};OffsetSegmentGenerator.prototype.addLineEndCap=function(tt,rt){var nt=new LineSegment(tt,rt),lt=new LineSegment;this.computeOffsetSegment(nt,Position$1.LEFT,this._distance,lt);var ut=new LineSegment;this.computeOffsetSegment(nt,Position$1.RIGHT,this._distance,ut);var dt=rt.x-tt.x,pt=rt.y-tt.y,ht=Math.atan2(pt,dt);switch(this._bufParams.getEndCapStyle()){case BufferParameters.CAP_ROUND:this._segList.addPt(lt.p1),this.addFilletArc(rt,ht+Math.PI/2,ht-Math.PI/2,CGAlgorithms.CLOCKWISE,this._distance),this._segList.addPt(ut.p1);break;case BufferParameters.CAP_FLAT:this._segList.addPt(lt.p1),this._segList.addPt(ut.p1);break;case BufferParameters.CAP_SQUARE:var mt=new Coordinate;mt.x=Math.abs(this._distance)*Math.cos(ht),mt.y=Math.abs(this._distance)*Math.sin(ht);var xt=new Coordinate(lt.p1.x+mt.x,lt.p1.y+mt.y),Mt=new Coordinate(ut.p1.x+mt.x,ut.p1.y+mt.y);this._segList.addPt(xt),this._segList.addPt(Mt);break}};OffsetSegmentGenerator.prototype.getCoordinates=function(){var tt=this._segList.getCoordinates();return tt};OffsetSegmentGenerator.prototype.addMitreJoin=function(tt,rt,nt,lt){var ut=!0,dt=null;try{dt=HCoordinate.intersection(rt.p0,rt.p1,nt.p0,nt.p1);var pt=lt<=0?1:dt.distance(tt)/Math.abs(lt);pt>this._bufParams.getMitreLimit()&&(ut=!1)}catch(ht){if(ht instanceof NotRepresentableException)dt=new Coordinate(0,0),ut=!1;else throw ht}finally{}ut?this._segList.addPt(dt):this.addLimitedMitreJoin(rt,nt,lt,this._bufParams.getMitreLimit())};OffsetSegmentGenerator.prototype.addFilletCorner=function(tt,rt,nt,lt,ut){var dt=rt.x-tt.x,pt=rt.y-tt.y,ht=Math.atan2(pt,dt),mt=nt.x-tt.x,xt=nt.y-tt.y,Mt=Math.atan2(xt,mt);lt===CGAlgorithms.CLOCKWISE?ht<=Mt&&(ht+=2*Math.PI):ht>=Mt&&(ht-=2*Math.PI),this._segList.addPt(rt),this.addFilletArc(tt,ht,Mt,lt,ut),this._segList.addPt(nt)};OffsetSegmentGenerator.prototype.addOutsideTurn=function(tt,rt){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*OffsetSegmentGenerator.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===BufferParameters.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===BufferParameters.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(rt&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,tt,this._distance),this._segList.addPt(this._offset1.p0))};OffsetSegmentGenerator.prototype.createSquare=function(tt){this._segList.addPt(new Coordinate(tt.x+this._distance,tt.y+this._distance)),this._segList.addPt(new Coordinate(tt.x+this._distance,tt.y-this._distance)),this._segList.addPt(new Coordinate(tt.x-this._distance,tt.y-this._distance)),this._segList.addPt(new Coordinate(tt.x-this._distance,tt.y+this._distance)),this._segList.closeRing()};OffsetSegmentGenerator.prototype.addSegments=function(tt,rt){this._segList.addPts(tt,rt)};OffsetSegmentGenerator.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)};OffsetSegmentGenerator.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)};OffsetSegmentGenerator.prototype.initSideSegments=function(tt,rt,nt){this._s1=tt,this._s2=rt,this._side=nt,this._seg1.setCoordinates(tt,rt),this.computeOffsetSegment(this._seg1,nt,this._distance,this._offset1)};OffsetSegmentGenerator.prototype.addLimitedMitreJoin=function(tt,rt,nt,lt){var ut=this._seg0.p1,dt=Angle.angle(ut,this._seg0.p0),pt=Angle.angleBetweenOriented(this._seg0.p0,ut,this._seg1.p1),ht=pt/2,mt=Angle.normalize(dt+ht),xt=Angle.normalize(mt+Math.PI),Mt=lt*nt,vt=Mt*Math.abs(Math.sin(ht)),Ot=nt-vt,At=ut.x+Mt*Math.cos(xt),Rt=ut.y+Mt*Math.sin(xt),zt=new Coordinate(At,Rt),Tt=new LineSegment(ut,zt),Ct=Tt.pointAlongOffset(1,Ot),It=Tt.pointAlongOffset(1,-Ot);this._side===Position$1.LEFT?(this._segList.addPt(Ct),this._segList.addPt(It)):(this._segList.addPt(It),this._segList.addPt(Ct))};OffsetSegmentGenerator.prototype.computeOffsetSegment=function(tt,rt,nt,lt){var ut=rt===Position$1.LEFT?1:-1,dt=tt.p1.x-tt.p0.x,pt=tt.p1.y-tt.p0.y,ht=Math.sqrt(dt*dt+pt*pt),mt=ut*nt*dt/ht,xt=ut*nt*pt/ht;lt.p0.x=tt.p0.x-xt,lt.p0.y=tt.p0.y+mt,lt.p1.x=tt.p1.x-xt,lt.p1.y=tt.p1.y+mt};OffsetSegmentGenerator.prototype.addFilletArc=function(tt,rt,nt,lt,ut){var dt=this,pt=lt===CGAlgorithms.CLOCKWISE?-1:1,ht=Math.abs(rt-nt),mt=Math.trunc(ht/this._filletAngleQuantum+.5);if(mt<1)return null;for(var xt=0,Mt=ht/mt,vt=xt,Ot=new Coordinate;vt<ht;){var At=rt+pt*vt;Ot.x=tt.x+ut*Math.cos(At),Ot.y=tt.y+ut*Math.sin(At),dt._segList.addPt(Ot),vt+=Mt}};OffsetSegmentGenerator.prototype.addInsideTurn=function(tt,rt){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*OffsetSegmentGenerator.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var nt=new Coordinate((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(nt);var lt=new Coordinate((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(lt)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}};OffsetSegmentGenerator.prototype.createCircle=function(tt){var rt=new Coordinate(tt.x+this._distance,tt.y);this._segList.addPt(rt),this.addFilletArc(tt,0,2*Math.PI,-1,this._distance),this._segList.closeRing()};OffsetSegmentGenerator.prototype.addBevelJoin=function(tt,rt){this._segList.addPt(tt.p1),this._segList.addPt(rt.p0)};OffsetSegmentGenerator.prototype.init=function(tt){this._distance=tt,this._maxCurveSegmentError=tt*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new OffsetSegmentString,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(tt*OffsetSegmentGenerator.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)};OffsetSegmentGenerator.prototype.addCollinear=function(tt){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2);var rt=this._li.getIntersectionNum();rt>=2&&(this._bufParams.getJoinStyle()===BufferParameters.JOIN_BEVEL||this._bufParams.getJoinStyle()===BufferParameters.JOIN_MITRE?(tt&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,CGAlgorithms.CLOCKWISE,this._distance))};OffsetSegmentGenerator.prototype.closeRing=function(){this._segList.closeRing()};OffsetSegmentGenerator.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle};OffsetSegmentGenerator.prototype.interfaces_=function(){return[]};OffsetSegmentGenerator.prototype.getClass=function(){return OffsetSegmentGenerator};staticAccessors$27.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return .001};staticAccessors$27.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return .001};staticAccessors$27.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6};staticAccessors$27.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80};Object.defineProperties(OffsetSegmentGenerator,staticAccessors$27);var OffsetCurveBuilder=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var tt=arguments[0],rt=arguments[1];this._precisionModel=tt,this._bufParams=rt};OffsetCurveBuilder.prototype.getOffsetCurve=function(tt,rt){if(this._distance=rt,rt===0)return null;var nt=rt<0,lt=Math.abs(rt),ut=this.getSegGen(lt);tt.length<=1?this.computePointCurve(tt[0],ut):this.computeOffsetCurve(tt,nt,ut);var dt=ut.getCoordinates();return nt&&CoordinateArrays.reverse(dt),dt};OffsetCurveBuilder.prototype.computeSingleSidedBufferCurve=function(tt,rt,nt){var lt=this.simplifyTolerance(this._distance);if(rt){nt.addSegments(tt,!0);var ut=BufferInputLineSimplifier.simplify(tt,-lt),dt=ut.length-1;nt.initSideSegments(ut[dt],ut[dt-1],Position$1.LEFT),nt.addFirstSegment();for(var pt=dt-2;pt>=0;pt--)nt.addNextSegment(ut[pt],!0)}else{nt.addSegments(tt,!1);var ht=BufferInputLineSimplifier.simplify(tt,lt),mt=ht.length-1;nt.initSideSegments(ht[0],ht[1],Position$1.LEFT),nt.addFirstSegment();for(var xt=2;xt<=mt;xt++)nt.addNextSegment(ht[xt],!0)}nt.addLastSegment(),nt.closeRing()};OffsetCurveBuilder.prototype.computeRingBufferCurve=function(tt,rt,nt){var lt=this.simplifyTolerance(this._distance);rt===Position$1.RIGHT&&(lt=-lt);var ut=BufferInputLineSimplifier.simplify(tt,lt),dt=ut.length-1;nt.initSideSegments(ut[dt-1],ut[0],rt);for(var pt=1;pt<=dt;pt++){var ht=pt!==1;nt.addNextSegment(ut[pt],ht)}nt.closeRing()};OffsetCurveBuilder.prototype.computeLineBufferCurve=function(tt,rt){var nt=this.simplifyTolerance(this._distance),lt=BufferInputLineSimplifier.simplify(tt,nt),ut=lt.length-1;rt.initSideSegments(lt[0],lt[1],Position$1.LEFT);for(var dt=2;dt<=ut;dt++)rt.addNextSegment(lt[dt],!0);rt.addLastSegment(),rt.addLineEndCap(lt[ut-1],lt[ut]);var pt=BufferInputLineSimplifier.simplify(tt,-nt),ht=pt.length-1;rt.initSideSegments(pt[ht],pt[ht-1],Position$1.LEFT);for(var mt=ht-2;mt>=0;mt--)rt.addNextSegment(pt[mt],!0);rt.addLastSegment(),rt.addLineEndCap(pt[1],pt[0]),rt.closeRing()};OffsetCurveBuilder.prototype.computePointCurve=function(tt,rt){switch(this._bufParams.getEndCapStyle()){case BufferParameters.CAP_ROUND:rt.createCircle(tt);break;case BufferParameters.CAP_SQUARE:rt.createSquare(tt);break}};OffsetCurveBuilder.prototype.getLineCurve=function(tt,rt){if(this._distance=rt,rt<0&&!this._bufParams.isSingleSided()||rt===0)return null;var nt=Math.abs(rt),lt=this.getSegGen(nt);if(tt.length<=1)this.computePointCurve(tt[0],lt);else if(this._bufParams.isSingleSided()){var ut=rt<0;this.computeSingleSidedBufferCurve(tt,ut,lt)}else this.computeLineBufferCurve(tt,lt);var dt=lt.getCoordinates();return dt};OffsetCurveBuilder.prototype.getBufferParameters=function(){return this._bufParams};OffsetCurveBuilder.prototype.simplifyTolerance=function(tt){return tt*this._bufParams.getSimplifyFactor()};OffsetCurveBuilder.prototype.getRingCurve=function(tt,rt,nt){if(this._distance=nt,tt.length<=2)return this.getLineCurve(tt,nt);if(nt===0)return OffsetCurveBuilder.copyCoordinates(tt);var lt=this.getSegGen(nt);return this.computeRingBufferCurve(tt,rt,lt),lt.getCoordinates()};OffsetCurveBuilder.prototype.computeOffsetCurve=function(tt,rt,nt){var lt=this.simplifyTolerance(this._distance);if(rt){var ut=BufferInputLineSimplifier.simplify(tt,-lt),dt=ut.length-1;nt.initSideSegments(ut[dt],ut[dt-1],Position$1.LEFT),nt.addFirstSegment();for(var pt=dt-2;pt>=0;pt--)nt.addNextSegment(ut[pt],!0)}else{var ht=BufferInputLineSimplifier.simplify(tt,lt),mt=ht.length-1;nt.initSideSegments(ht[0],ht[1],Position$1.LEFT),nt.addFirstSegment();for(var xt=2;xt<=mt;xt++)nt.addNextSegment(ht[xt],!0)}nt.addLastSegment()};OffsetCurveBuilder.prototype.getSegGen=function(tt){return new OffsetSegmentGenerator(this._precisionModel,this._bufParams,tt)};OffsetCurveBuilder.prototype.interfaces_=function(){return[]};OffsetCurveBuilder.prototype.getClass=function(){return OffsetCurveBuilder};OffsetCurveBuilder.copyCoordinates=function(tt){for(var rt=new Array(tt.length).fill(null),nt=0;nt<rt.length;nt++)rt[nt]=new Coordinate(tt[nt]);return rt};var SubgraphDepthLocater=function(){this._subgraphs=null,this._seg=new LineSegment,this._cga=new CGAlgorithms;var tt=arguments[0];this._subgraphs=tt},staticAccessors$30={DepthSegment:{configurable:!0}};SubgraphDepthLocater.prototype.findStabbedSegments=function(){var tt=this;if(arguments.length===1){for(var rt=arguments[0],nt=new ArrayList,lt=this._subgraphs.iterator();lt.hasNext();){var ut=lt.next(),dt=ut.getEnvelope();rt.y<dt.getMinY()||rt.y>dt.getMaxY()||tt.findStabbedSegments(rt,ut.getDirectedEdges(),nt)}return nt}else if(arguments.length===3){if(hasInterface(arguments[2],List)&&arguments[0]instanceof Coordinate&&arguments[1]instanceof DirectedEdge)for(var pt=arguments[0],ht=arguments[1],mt=arguments[2],xt=ht.getEdge().getCoordinates(),Mt=0;Mt<xt.length-1;Mt++){tt._seg.p0=xt[Mt],tt._seg.p1=xt[Mt+1],tt._seg.p0.y>tt._seg.p1.y&&tt._seg.reverse();var vt=Math.max(tt._seg.p0.x,tt._seg.p1.x);if(!(vt<pt.x)&&!tt._seg.isHorizontal()&&!(pt.y<tt._seg.p0.y||pt.y>tt._seg.p1.y)&&CGAlgorithms.computeOrientation(tt._seg.p0,tt._seg.p1,pt)!==CGAlgorithms.RIGHT){var Ot=ht.getDepth(Position$1.LEFT);tt._seg.p0.equals(xt[Mt])||(Ot=ht.getDepth(Position$1.RIGHT));var At=new DepthSegment(tt._seg,Ot);mt.add(At)}}else if(hasInterface(arguments[2],List)&&arguments[0]instanceof Coordinate&&hasInterface(arguments[1],List))for(var Rt=arguments[0],zt=arguments[1],Tt=arguments[2],Ct=zt.iterator();Ct.hasNext();){var It=Ct.next();It.isForward()&&tt.findStabbedSegments(Rt,It,Tt)}}};SubgraphDepthLocater.prototype.getDepth=function(tt){var rt=this.findStabbedSegments(tt);if(rt.size()===0)return 0;var nt=Collections.min(rt);return nt._leftDepth};SubgraphDepthLocater.prototype.interfaces_=function(){return[]};SubgraphDepthLocater.prototype.getClass=function(){return SubgraphDepthLocater};staticAccessors$30.DepthSegment.get=function(){return DepthSegment};Object.defineProperties(SubgraphDepthLocater,staticAccessors$30);var DepthSegment=function(){this._upwardSeg=null,this._leftDepth=null;var tt=arguments[0],rt=arguments[1];this._upwardSeg=new LineSegment(tt),this._leftDepth=rt};DepthSegment.prototype.compareTo=function(tt){var rt=tt;if(this._upwardSeg.minX()>=rt._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=rt._upwardSeg.minX())return-1;var nt=this._upwardSeg.orientationIndex(rt._upwardSeg);return nt!==0||(nt=-1*rt._upwardSeg.orientationIndex(this._upwardSeg),nt!==0)?nt:this._upwardSeg.compareTo(rt._upwardSeg)};DepthSegment.prototype.compareX=function(tt,rt){var nt=tt.p0.compareTo(rt.p0);return nt!==0?nt:tt.p1.compareTo(rt.p1)};DepthSegment.prototype.toString=function(){return this._upwardSeg.toString()};DepthSegment.prototype.interfaces_=function(){return[Comparable]};DepthSegment.prototype.getClass=function(){return DepthSegment};var Triangle=function(tt,rt,nt){this.p0=tt||null,this.p1=rt||null,this.p2=nt||null};Triangle.prototype.area=function(){return Triangle.area(this.p0,this.p1,this.p2)};Triangle.prototype.signedArea=function(){return Triangle.signedArea(this.p0,this.p1,this.p2)};Triangle.prototype.interpolateZ=function(tt){if(tt===null)throw new IllegalArgumentException("Supplied point is null.");return Triangle.interpolateZ(tt,this.p0,this.p1,this.p2)};Triangle.prototype.longestSideLength=function(){return Triangle.longestSideLength(this.p0,this.p1,this.p2)};Triangle.prototype.isAcute=function(){return Triangle.isAcute(this.p0,this.p1,this.p2)};Triangle.prototype.circumcentre=function(){return Triangle.circumcentre(this.p0,this.p1,this.p2)};Triangle.prototype.area3D=function(){return Triangle.area3D(this.p0,this.p1,this.p2)};Triangle.prototype.centroid=function(){return Triangle.centroid(this.p0,this.p1,this.p2)};Triangle.prototype.inCentre=function(){return Triangle.inCentre(this.p0,this.p1,this.p2)};Triangle.prototype.interfaces_=function(){return[]};Triangle.prototype.getClass=function(){return Triangle};Triangle.area=function(tt,rt,nt){return Math.abs(((nt.x-tt.x)*(rt.y-tt.y)-(rt.x-tt.x)*(nt.y-tt.y))/2)};Triangle.signedArea=function(tt,rt,nt){return((nt.x-tt.x)*(rt.y-tt.y)-(rt.x-tt.x)*(nt.y-tt.y))/2};Triangle.det=function(tt,rt,nt,lt){return tt*lt-rt*nt};Triangle.interpolateZ=function(tt,rt,nt,lt){var ut=rt.x,dt=rt.y,pt=nt.x-ut,ht=lt.x-ut,mt=nt.y-dt,xt=lt.y-dt,Mt=pt*xt-ht*mt,vt=tt.x-ut,Ot=tt.y-dt,At=(xt*vt-ht*Ot)/Mt,Rt=(-mt*vt+pt*Ot)/Mt,zt=rt.z+At*(nt.z-rt.z)+Rt*(lt.z-rt.z);return zt};Triangle.longestSideLength=function(tt,rt,nt){var lt=tt.distance(rt),ut=rt.distance(nt),dt=nt.distance(tt),pt=lt;return ut>pt&&(pt=ut),dt>pt&&(pt=dt),pt};Triangle.isAcute=function(tt,rt,nt){return!(!Angle.isAcute(tt,rt,nt)||!Angle.isAcute(rt,nt,tt)||!Angle.isAcute(nt,tt,rt))};Triangle.circumcentre=function(tt,rt,nt){var lt=nt.x,ut=nt.y,dt=tt.x-lt,pt=tt.y-ut,ht=rt.x-lt,mt=rt.y-ut,xt=2*Triangle.det(dt,pt,ht,mt),Mt=Triangle.det(pt,dt*dt+pt*pt,mt,ht*ht+mt*mt),vt=Triangle.det(dt,dt*dt+pt*pt,ht,ht*ht+mt*mt),Ot=lt-Mt/xt,At=ut+vt/xt;return new Coordinate(Ot,At)};Triangle.perpendicularBisector=function(tt,rt){var nt=rt.x-tt.x,lt=rt.y-tt.y,ut=new HCoordinate(tt.x+nt/2,tt.y+lt/2,1),dt=new HCoordinate(tt.x-lt+nt/2,tt.y+nt+lt/2,1);return new HCoordinate(ut,dt)};Triangle.angleBisector=function(tt,rt,nt){var lt=rt.distance(tt),ut=rt.distance(nt),dt=lt/(lt+ut),pt=nt.x-tt.x,ht=nt.y-tt.y,mt=new Coordinate(tt.x+dt*pt,tt.y+dt*ht);return mt};Triangle.area3D=function(tt,rt,nt){var lt=rt.x-tt.x,ut=rt.y-tt.y,dt=rt.z-tt.z,pt=nt.x-tt.x,ht=nt.y-tt.y,mt=nt.z-tt.z,xt=ut*mt-dt*ht,Mt=dt*pt-lt*mt,vt=lt*ht-ut*pt,Ot=xt*xt+Mt*Mt+vt*vt,At=Math.sqrt(Ot)/2;return At};Triangle.centroid=function(tt,rt,nt){var lt=(tt.x+rt.x+nt.x)/3,ut=(tt.y+rt.y+nt.y)/3;return new Coordinate(lt,ut)};Triangle.inCentre=function(tt,rt,nt){var lt=rt.distance(nt),ut=tt.distance(nt),dt=tt.distance(rt),pt=lt+ut+dt,ht=(lt*tt.x+ut*rt.x+dt*nt.x)/pt,mt=(lt*tt.y+ut*rt.y+dt*nt.y)/pt;return new Coordinate(ht,mt)};var OffsetCurveSetBuilder=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new ArrayList;var tt=arguments[0],rt=arguments[1],nt=arguments[2];this._inputGeom=tt,this._distance=rt,this._curveBuilder=nt};OffsetCurveSetBuilder.prototype.addPoint=function(tt){if(this._distance<=0)return null;var rt=tt.getCoordinates(),nt=this._curveBuilder.getLineCurve(rt,this._distance);this.addCurve(nt,Location.EXTERIOR,Location.INTERIOR)};OffsetCurveSetBuilder.prototype.addPolygon=function(tt){var rt=this,nt=this._distance,lt=Position$1.LEFT;this._distance<0&&(nt=-this._distance,lt=Position$1.RIGHT);var ut=tt.getExteriorRing(),dt=CoordinateArrays.removeRepeatedPoints(ut.getCoordinates());if(this._distance<0&&this.isErodedCompletely(ut,this._distance)||this._distance<=0&&dt.length<3)return null;this.addPolygonRing(dt,nt,lt,Location.EXTERIOR,Location.INTERIOR);for(var pt=0;pt<tt.getNumInteriorRing();pt++){var ht=tt.getInteriorRingN(pt),mt=CoordinateArrays.removeRepeatedPoints(ht.getCoordinates());rt._distance>0&&rt.isErodedCompletely(ht,-rt._distance)||rt.addPolygonRing(mt,nt,Position$1.opposite(lt),Location.INTERIOR,Location.EXTERIOR)}};OffsetCurveSetBuilder.prototype.isTriangleErodedCompletely=function(tt,rt){var nt=new Triangle(tt[0],tt[1],tt[2]),lt=nt.inCentre(),ut=CGAlgorithms.distancePointLine(lt,nt.p0,nt.p1);return ut<Math.abs(rt)};OffsetCurveSetBuilder.prototype.addLineString=function(tt){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var rt=CoordinateArrays.removeRepeatedPoints(tt.getCoordinates()),nt=this._curveBuilder.getLineCurve(rt,this._distance);this.addCurve(nt,Location.EXTERIOR,Location.INTERIOR)};OffsetCurveSetBuilder.prototype.addCurve=function(tt,rt,nt){if(tt===null||tt.length<2)return null;var lt=new NodedSegmentString(tt,new Label$2(0,Location.BOUNDARY,rt,nt));this._curveList.add(lt)};OffsetCurveSetBuilder.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList};OffsetCurveSetBuilder.prototype.addPolygonRing=function(tt,rt,nt,lt,ut){if(rt===0&&tt.length<LinearRing.MINIMUM_VALID_SIZE)return null;var dt=lt,pt=ut;tt.length>=LinearRing.MINIMUM_VALID_SIZE&&CGAlgorithms.isCCW(tt)&&(dt=ut,pt=lt,nt=Position$1.opposite(nt));var ht=this._curveBuilder.getRingCurve(tt,nt,rt);this.addCurve(ht,dt,pt)};OffsetCurveSetBuilder.prototype.add=function(tt){if(tt.isEmpty())return null;tt instanceof Polygon?this.addPolygon(tt):tt instanceof LineString?this.addLineString(tt):tt instanceof Point$3?this.addPoint(tt):tt instanceof MultiPoint?this.addCollection(tt):tt instanceof MultiLineString?this.addCollection(tt):tt instanceof MultiPolygon?this.addCollection(tt):tt instanceof GeometryCollection&&this.addCollection(tt)};OffsetCurveSetBuilder.prototype.isErodedCompletely=function(tt,rt){var nt=tt.getCoordinates();if(nt.length<4)return rt<0;if(nt.length===4)return this.isTriangleErodedCompletely(nt,rt);var lt=tt.getEnvelopeInternal(),ut=Math.min(lt.getHeight(),lt.getWidth());return rt<0&&2*Math.abs(rt)>ut};OffsetCurveSetBuilder.prototype.addCollection=function(tt){for(var rt=this,nt=0;nt<tt.getNumGeometries();nt++){var lt=tt.getGeometryN(nt);rt.add(lt)}};OffsetCurveSetBuilder.prototype.interfaces_=function(){return[]};OffsetCurveSetBuilder.prototype.getClass=function(){return OffsetCurveSetBuilder};var PointOnGeometryLocator=function(){};PointOnGeometryLocator.prototype.locate=function(tt){};PointOnGeometryLocator.prototype.interfaces_=function(){return[]};PointOnGeometryLocator.prototype.getClass=function(){return PointOnGeometryLocator};var GeometryCollectionIterator=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var tt=arguments[0];this._parent=tt,this._atStart=!0,this._index=0,this._max=tt.getNumGeometries()};GeometryCollectionIterator.prototype.next=function(){if(this._atStart)return this._atStart=!1,GeometryCollectionIterator.isAtomic(this._parent)&&this._index++,this._parent;if(this._subcollectionIterator!==null){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new NoSuchElementException;var tt=this._parent.getGeometryN(this._index++);return tt instanceof GeometryCollection?(this._subcollectionIterator=new GeometryCollectionIterator(tt),this._subcollectionIterator.next()):tt};GeometryCollectionIterator.prototype.remove=function(){throw new Error(this.getClass().getName())};GeometryCollectionIterator.prototype.hasNext=function(){if(this._atStart)return!0;if(this._subcollectionIterator!==null){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)};GeometryCollectionIterator.prototype.interfaces_=function(){return[Iterator$1]};GeometryCollectionIterator.prototype.getClass=function(){return GeometryCollectionIterator};GeometryCollectionIterator.isAtomic=function(tt){return!(tt instanceof GeometryCollection)};var SimplePointInAreaLocator=function(){this._geom=null;var tt=arguments[0];this._geom=tt};SimplePointInAreaLocator.prototype.locate=function(tt){return SimplePointInAreaLocator.locate(tt,this._geom)};SimplePointInAreaLocator.prototype.interfaces_=function(){return[PointOnGeometryLocator]};SimplePointInAreaLocator.prototype.getClass=function(){return SimplePointInAreaLocator};SimplePointInAreaLocator.isPointInRing=function(tt,rt){return rt.getEnvelopeInternal().intersects(tt)?CGAlgorithms.isPointInRing(tt,rt.getCoordinates()):!1};SimplePointInAreaLocator.containsPointInPolygon=function(tt,rt){if(rt.isEmpty())return!1;var nt=rt.getExteriorRing();if(!SimplePointInAreaLocator.isPointInRing(tt,nt))return!1;for(var lt=0;lt<rt.getNumInteriorRing();lt++){var ut=rt.getInteriorRingN(lt);if(SimplePointInAreaLocator.isPointInRing(tt,ut))return!1}return!0};SimplePointInAreaLocator.containsPoint=function(tt,rt){if(rt instanceof Polygon)return SimplePointInAreaLocator.containsPointInPolygon(tt,rt);if(rt instanceof GeometryCollection)for(var nt=new GeometryCollectionIterator(rt);nt.hasNext();){var lt=nt.next();if(lt!==rt&&SimplePointInAreaLocator.containsPoint(tt,lt))return!0}return!1};SimplePointInAreaLocator.locate=function(tt,rt){return rt.isEmpty()?Location.EXTERIOR:SimplePointInAreaLocator.containsPoint(tt,rt)?Location.INTERIOR:Location.EXTERIOR};var EdgeEndStar=function(){this._edgeMap=new TreeMap,this._edgeList=null,this._ptInAreaLocation=[Location.NONE,Location.NONE]};EdgeEndStar.prototype.getNextCW=function(tt){this.getEdges();var rt=this._edgeList.indexOf(tt),nt=rt-1;return rt===0&&(nt=this._edgeList.size()-1),this._edgeList.get(nt)};EdgeEndStar.prototype.propagateSideLabels=function(tt){for(var rt=Location.NONE,nt=this.iterator();nt.hasNext();){var lt=nt.next(),ut=lt.getLabel();ut.isArea(tt)&&ut.getLocation(tt,Position$1.LEFT)!==Location.NONE&&(rt=ut.getLocation(tt,Position$1.LEFT))}if(rt===Location.NONE)return null;for(var dt=rt,pt=this.iterator();pt.hasNext();){var ht=pt.next(),mt=ht.getLabel();if(mt.getLocation(tt,Position$1.ON)===Location.NONE&&mt.setLocation(tt,Position$1.ON,dt),mt.isArea(tt)){var xt=mt.getLocation(tt,Position$1.LEFT),Mt=mt.getLocation(tt,Position$1.RIGHT);if(Mt!==Location.NONE){if(Mt!==dt)throw new TopologyException("side location conflict",ht.getCoordinate());xt===Location.NONE&&Assert.shouldNeverReachHere("found single null side (at "+ht.getCoordinate()+")"),dt=xt}else Assert.isTrue(mt.getLocation(tt,Position$1.LEFT)===Location.NONE,"found single null side"),mt.setLocation(tt,Position$1.RIGHT,dt),mt.setLocation(tt,Position$1.LEFT,dt)}}};EdgeEndStar.prototype.getCoordinate=function(){var tt=this.iterator();if(!tt.hasNext())return null;var rt=tt.next();return rt.getCoordinate()};EdgeEndStar.prototype.print=function(tt){System.out.println("EdgeEndStar:   "+this.getCoordinate());for(var rt=this.iterator();rt.hasNext();){var nt=rt.next();nt.print(tt)}};EdgeEndStar.prototype.isAreaLabelsConsistent=function(tt){return this.computeEdgeEndLabels(tt.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)};EdgeEndStar.prototype.checkAreaLabelsConsistent=function(tt){var rt=this.getEdges();if(rt.size()<=0)return!0;var nt=rt.size()-1,lt=rt.get(nt).getLabel(),ut=lt.getLocation(tt,Position$1.LEFT);Assert.isTrue(ut!==Location.NONE,"Found unlabelled area edge");for(var dt=ut,pt=this.iterator();pt.hasNext();){var ht=pt.next(),mt=ht.getLabel();Assert.isTrue(mt.isArea(tt),"Found non-area edge");var xt=mt.getLocation(tt,Position$1.LEFT),Mt=mt.getLocation(tt,Position$1.RIGHT);if(xt===Mt||Mt!==dt)return!1;dt=xt}return!0};EdgeEndStar.prototype.findIndex=function(tt){var rt=this;this.iterator();for(var nt=0;nt<this._edgeList.size();nt++){var lt=rt._edgeList.get(nt);if(lt===tt)return nt}return-1};EdgeEndStar.prototype.iterator=function(){return this.getEdges().iterator()};EdgeEndStar.prototype.getEdges=function(){return this._edgeList===null&&(this._edgeList=new ArrayList(this._edgeMap.values())),this._edgeList};EdgeEndStar.prototype.getLocation=function(tt,rt,nt){return this._ptInAreaLocation[tt]===Location.NONE&&(this._ptInAreaLocation[tt]=SimplePointInAreaLocator.locate(rt,nt[tt].getGeometry())),this._ptInAreaLocation[tt]};EdgeEndStar.prototype.toString=function(){var tt=new StringBuffer;tt.append("EdgeEndStar:   "+this.getCoordinate()),tt.append(`
`);for(var rt=this.iterator();rt.hasNext();){var nt=rt.next();tt.append(nt),tt.append(`
`)}return tt.toString()};EdgeEndStar.prototype.computeEdgeEndLabels=function(tt){for(var rt=this.iterator();rt.hasNext();){var nt=rt.next();nt.computeLabel(tt)}};EdgeEndStar.prototype.computeLabelling=function(tt){var rt=this;this.computeEdgeEndLabels(tt[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var nt=[!1,!1],lt=this.iterator();lt.hasNext();)for(var ut=lt.next(),dt=ut.getLabel(),pt=0;pt<2;pt++)dt.isLine(pt)&&dt.getLocation(pt)===Location.BOUNDARY&&(nt[pt]=!0);for(var ht=this.iterator();ht.hasNext();)for(var mt=ht.next(),xt=mt.getLabel(),Mt=0;Mt<2;Mt++)if(xt.isAnyNull(Mt)){var vt=Location.NONE;if(nt[Mt])vt=Location.EXTERIOR;else{var Ot=mt.getCoordinate();vt=rt.getLocation(Mt,Ot,tt)}xt.setAllLocationsIfNull(Mt,vt)}};EdgeEndStar.prototype.getDegree=function(){return this._edgeMap.size()};EdgeEndStar.prototype.insertEdgeEnd=function(tt,rt){this._edgeMap.put(tt,rt),this._edgeList=null};EdgeEndStar.prototype.interfaces_=function(){return[]};EdgeEndStar.prototype.getClass=function(){return EdgeEndStar};var DirectedEdgeStar=function(et){function tt(){et.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.linkResultDirectedEdges=function(){var nt=this;this.getResultAreaEdges();for(var lt=null,ut=null,dt=this._SCANNING_FOR_INCOMING,pt=0;pt<this._resultAreaEdgeList.size();pt++){var ht=nt._resultAreaEdgeList.get(pt),mt=ht.getSym();if(ht.getLabel().isArea())switch(lt===null&&ht.isInResult()&&(lt=ht),dt){case nt._SCANNING_FOR_INCOMING:if(!mt.isInResult())continue;ut=mt,dt=nt._LINKING_TO_OUTGOING;break;case nt._LINKING_TO_OUTGOING:if(!ht.isInResult())continue;ut.setNext(ht),dt=nt._SCANNING_FOR_INCOMING;break}}if(dt===this._LINKING_TO_OUTGOING){if(lt===null)throw new TopologyException("no outgoing dirEdge found",this.getCoordinate());Assert.isTrue(lt.isInResult(),"unable to link last incoming dirEdge"),ut.setNext(lt)}},tt.prototype.insert=function(nt){var lt=nt;this.insertEdgeEnd(lt,lt)},tt.prototype.getRightmostEdge=function(){var nt=this.getEdges(),lt=nt.size();if(lt<1)return null;var ut=nt.get(0);if(lt===1)return ut;var dt=nt.get(lt-1),pt=ut.getQuadrant(),ht=dt.getQuadrant();return Quadrant.isNorthern(pt)&&Quadrant.isNorthern(ht)?ut:!Quadrant.isNorthern(pt)&&!Quadrant.isNorthern(ht)?dt:ut.getDy()!==0?ut:dt.getDy()!==0?dt:(Assert.shouldNeverReachHere("found two horizontal edges incident on node"),null)},tt.prototype.print=function(nt){System.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var lt=this.iterator();lt.hasNext();){var ut=lt.next();nt.print("out "),ut.print(nt),nt.println(),nt.print("in "),ut.getSym().print(nt),nt.println()}},tt.prototype.getResultAreaEdges=function(){var nt=this;if(this._resultAreaEdgeList!==null)return this._resultAreaEdgeList;this._resultAreaEdgeList=new ArrayList;for(var lt=this.iterator();lt.hasNext();){var ut=lt.next();(ut.isInResult()||ut.getSym().isInResult())&&nt._resultAreaEdgeList.add(ut)}return this._resultAreaEdgeList},tt.prototype.updateLabelling=function(nt){for(var lt=this.iterator();lt.hasNext();){var ut=lt.next(),dt=ut.getLabel();dt.setAllLocationsIfNull(0,nt.getLocation(0)),dt.setAllLocationsIfNull(1,nt.getLocation(1))}},tt.prototype.linkAllDirectedEdges=function(){var nt=this;this.getEdges();for(var lt=null,ut=null,dt=this._edgeList.size()-1;dt>=0;dt--){var pt=nt._edgeList.get(dt),ht=pt.getSym();ut===null&&(ut=ht),lt!==null&&ht.setNext(lt),lt=pt}ut.setNext(lt)},tt.prototype.computeDepths=function(){var nt=this;if(arguments.length===1){var lt=arguments[0],ut=this.findIndex(lt),dt=lt.getDepth(Position$1.LEFT),pt=lt.getDepth(Position$1.RIGHT),ht=this.computeDepths(ut+1,this._edgeList.size(),dt),mt=this.computeDepths(0,ut,ht);if(mt!==pt)throw new TopologyException("depth mismatch at "+lt.getCoordinate())}else if(arguments.length===3){for(var xt=arguments[0],Mt=arguments[1],vt=arguments[2],Ot=vt,At=xt;At<Mt;At++){var Rt=nt._edgeList.get(At);Rt.setEdgeDepths(Position$1.RIGHT,Ot),Ot=Rt.getDepth(Position$1.LEFT)}return Ot}},tt.prototype.mergeSymLabels=function(){for(var nt=this.iterator();nt.hasNext();){var lt=nt.next(),ut=lt.getLabel();ut.merge(lt.getSym().getLabel())}},tt.prototype.linkMinimalDirectedEdges=function(nt){for(var lt=this,ut=null,dt=null,pt=this._SCANNING_FOR_INCOMING,ht=this._resultAreaEdgeList.size()-1;ht>=0;ht--){var mt=lt._resultAreaEdgeList.get(ht),xt=mt.getSym();switch(ut===null&&mt.getEdgeRing()===nt&&(ut=mt),pt){case lt._SCANNING_FOR_INCOMING:if(xt.getEdgeRing()!==nt)continue;dt=xt,pt=lt._LINKING_TO_OUTGOING;break;case lt._LINKING_TO_OUTGOING:if(mt.getEdgeRing()!==nt)continue;dt.setNextMin(mt),pt=lt._SCANNING_FOR_INCOMING;break}}pt===this._LINKING_TO_OUTGOING&&(Assert.isTrue(ut!==null,"found null for first outgoing dirEdge"),Assert.isTrue(ut.getEdgeRing()===nt,"unable to link last incoming dirEdge"),dt.setNextMin(ut))},tt.prototype.getOutgoingDegree=function(){if(arguments.length===0){for(var nt=0,lt=this.iterator();lt.hasNext();){var ut=lt.next();ut.isInResult()&&nt++}return nt}else if(arguments.length===1){for(var dt=arguments[0],pt=0,ht=this.iterator();ht.hasNext();){var mt=ht.next();mt.getEdgeRing()===dt&&pt++}return pt}},tt.prototype.getLabel=function(){return this._label},tt.prototype.findCoveredLineEdges=function(){for(var nt=Location.NONE,lt=this.iterator();lt.hasNext();){var ut=lt.next(),dt=ut.getSym();if(!ut.isLineEdge()){if(ut.isInResult()){nt=Location.INTERIOR;break}if(dt.isInResult()){nt=Location.EXTERIOR;break}}}if(nt===Location.NONE)return null;for(var pt=nt,ht=this.iterator();ht.hasNext();){var mt=ht.next(),xt=mt.getSym();mt.isLineEdge()?mt.getEdge().setCovered(pt===Location.INTERIOR):(mt.isInResult()&&(pt=Location.EXTERIOR),xt.isInResult()&&(pt=Location.INTERIOR))}},tt.prototype.computeLabelling=function(nt){var lt=this;et.prototype.computeLabelling.call(this,nt),this._label=new Label$2(Location.NONE);for(var ut=this.iterator();ut.hasNext();)for(var dt=ut.next(),pt=dt.getEdge(),ht=pt.getLabel(),mt=0;mt<2;mt++){var xt=ht.getLocation(mt);(xt===Location.INTERIOR||xt===Location.BOUNDARY)&&lt._label.setLocation(mt,Location.INTERIOR)}},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(EdgeEndStar),OverlayNodeFactory=function(et){function tt(){et.apply(this,arguments)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.createNode=function(nt){return new Node$2(nt,new DirectedEdgeStar)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(NodeFactory),OrientedCoordinateArray=function et(){this._pts=null,this._orientation=null;var tt=arguments[0];this._pts=tt,this._orientation=et.orientation(tt)};OrientedCoordinateArray.prototype.compareTo=function(tt){var rt=tt,nt=OrientedCoordinateArray.compareOriented(this._pts,this._orientation,rt._pts,rt._orientation);return nt};OrientedCoordinateArray.prototype.interfaces_=function(){return[Comparable]};OrientedCoordinateArray.prototype.getClass=function(){return OrientedCoordinateArray};OrientedCoordinateArray.orientation=function(tt){return CoordinateArrays.increasingDirection(tt)===1};OrientedCoordinateArray.compareOriented=function(tt,rt,nt,lt){for(var ut=rt?1:-1,dt=lt?1:-1,pt=rt?tt.length:-1,ht=lt?nt.length:-1,mt=rt?0:tt.length-1,xt=lt?0:nt.length-1;;){var Mt=tt[mt].compareTo(nt[xt]);if(Mt!==0)return Mt;mt+=ut,xt+=dt;var vt=mt===pt,Ot=xt===ht;if(vt&&!Ot)return-1;if(!vt&&Ot)return 1;if(vt&&Ot)return 0}};var EdgeList=function(){this._edges=new ArrayList,this._ocaMap=new TreeMap};EdgeList.prototype.print=function(tt){var rt=this;tt.print("MULTILINESTRING ( ");for(var nt=0;nt<this._edges.size();nt++){var lt=rt._edges.get(nt);nt>0&&tt.print(","),tt.print("(");for(var ut=lt.getCoordinates(),dt=0;dt<ut.length;dt++)dt>0&&tt.print(","),tt.print(ut[dt].x+" "+ut[dt].y);tt.println(")")}tt.print(")  ")};EdgeList.prototype.addAll=function(tt){for(var rt=this,nt=tt.iterator();nt.hasNext();)rt.add(nt.next())};EdgeList.prototype.findEdgeIndex=function(tt){for(var rt=this,nt=0;nt<this._edges.size();nt++)if(rt._edges.get(nt).equals(tt))return nt;return-1};EdgeList.prototype.iterator=function(){return this._edges.iterator()};EdgeList.prototype.getEdges=function(){return this._edges};EdgeList.prototype.get=function(tt){return this._edges.get(tt)};EdgeList.prototype.findEqualEdge=function(tt){var rt=new OrientedCoordinateArray(tt.getCoordinates()),nt=this._ocaMap.get(rt);return nt};EdgeList.prototype.add=function(tt){this._edges.add(tt);var rt=new OrientedCoordinateArray(tt.getCoordinates());this._ocaMap.put(rt,tt)};EdgeList.prototype.interfaces_=function(){return[]};EdgeList.prototype.getClass=function(){return EdgeList};var SegmentIntersector=function(){};SegmentIntersector.prototype.processIntersections=function(tt,rt,nt,lt){};SegmentIntersector.prototype.isDone=function(){};SegmentIntersector.prototype.interfaces_=function(){return[]};SegmentIntersector.prototype.getClass=function(){return SegmentIntersector};var IntersectionAdder=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var tt=arguments[0];this._li=tt};IntersectionAdder.prototype.isTrivialIntersection=function(tt,rt,nt,lt){if(tt===nt&&this._li.getIntersectionNum()===1){if(IntersectionAdder.isAdjacentSegments(rt,lt))return!0;if(tt.isClosed()){var ut=tt.size()-1;if(rt===0&&lt===ut||lt===0&&rt===ut)return!0}}return!1};IntersectionAdder.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint};IntersectionAdder.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior};IntersectionAdder.prototype.getLineIntersector=function(){return this._li};IntersectionAdder.prototype.hasProperIntersection=function(){return this._hasProper};IntersectionAdder.prototype.processIntersections=function(tt,rt,nt,lt){if(tt===nt&&rt===lt)return null;this.numTests++;var ut=tt.getCoordinates()[rt],dt=tt.getCoordinates()[rt+1],pt=nt.getCoordinates()[lt],ht=nt.getCoordinates()[lt+1];this._li.computeIntersection(ut,dt,pt,ht),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(tt,rt,nt,lt)||(this._hasIntersection=!0,tt.addIntersections(this._li,rt,0),nt.addIntersections(this._li,lt,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))};IntersectionAdder.prototype.hasIntersection=function(){return this._hasIntersection};IntersectionAdder.prototype.isDone=function(){return!1};IntersectionAdder.prototype.hasInteriorIntersection=function(){return this._hasInterior};IntersectionAdder.prototype.interfaces_=function(){return[SegmentIntersector]};IntersectionAdder.prototype.getClass=function(){return IntersectionAdder};IntersectionAdder.isAdjacentSegments=function(tt,rt){return Math.abs(tt-rt)===1};var EdgeIntersection=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var tt=arguments[0],rt=arguments[1],nt=arguments[2];this.coord=new Coordinate(tt),this.segmentIndex=rt,this.dist=nt};EdgeIntersection.prototype.getSegmentIndex=function(){return this.segmentIndex};EdgeIntersection.prototype.getCoordinate=function(){return this.coord};EdgeIntersection.prototype.print=function(tt){tt.print(this.coord),tt.print(" seg # = "+this.segmentIndex),tt.println(" dist = "+this.dist)};EdgeIntersection.prototype.compareTo=function(tt){var rt=tt;return this.compare(rt.segmentIndex,rt.dist)};EdgeIntersection.prototype.isEndPoint=function(tt){return this.segmentIndex===0&&this.dist===0||this.segmentIndex===tt};EdgeIntersection.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist};EdgeIntersection.prototype.getDistance=function(){return this.dist};EdgeIntersection.prototype.compare=function(tt,rt){return this.segmentIndex<tt?-1:this.segmentIndex>tt?1:this.dist<rt?-1:this.dist>rt?1:0};EdgeIntersection.prototype.interfaces_=function(){return[Comparable]};EdgeIntersection.prototype.getClass=function(){return EdgeIntersection};var EdgeIntersectionList=function(){this._nodeMap=new TreeMap,this.edge=null;var tt=arguments[0];this.edge=tt};EdgeIntersectionList.prototype.print=function(tt){tt.println("Intersections:");for(var rt=this.iterator();rt.hasNext();){var nt=rt.next();nt.print(tt)}};EdgeIntersectionList.prototype.iterator=function(){return this._nodeMap.values().iterator()};EdgeIntersectionList.prototype.addSplitEdges=function(tt){var rt=this;this.addEndpoints();for(var nt=this.iterator(),lt=nt.next();nt.hasNext();){var ut=nt.next(),dt=rt.createSplitEdge(lt,ut);tt.add(dt),lt=ut}};EdgeIntersectionList.prototype.addEndpoints=function(){var tt=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[tt],tt,0)};EdgeIntersectionList.prototype.createSplitEdge=function(tt,rt){var nt=this,lt=rt.segmentIndex-tt.segmentIndex+2,ut=this.edge.pts[rt.segmentIndex],dt=rt.dist>0||!rt.coord.equals2D(ut);dt||lt--;var pt=new Array(lt).fill(null),ht=0;pt[ht++]=new Coordinate(tt.coord);for(var mt=tt.segmentIndex+1;mt<=rt.segmentIndex;mt++)pt[ht++]=nt.edge.pts[mt];return dt&&(pt[ht]=rt.coord),new Edge(pt,new Label$2(this.edge._label))};EdgeIntersectionList.prototype.add=function(tt,rt,nt){var lt=new EdgeIntersection(tt,rt,nt),ut=this._nodeMap.get(lt);return ut!==null?ut:(this._nodeMap.put(lt,lt),lt)};EdgeIntersectionList.prototype.isIntersection=function(tt){for(var rt=this.iterator();rt.hasNext();){var nt=rt.next();if(nt.coord.equals(tt))return!0}return!1};EdgeIntersectionList.prototype.interfaces_=function(){return[]};EdgeIntersectionList.prototype.getClass=function(){return EdgeIntersectionList};var MonotoneChainIndexer=function(){};MonotoneChainIndexer.prototype.getChainStartIndices=function(tt){var rt=this,nt=0,lt=new ArrayList;lt.add(new Integer(nt));do{var ut=rt.findChainEnd(tt,nt);lt.add(new Integer(ut)),nt=ut}while(nt<tt.length-1);var dt=MonotoneChainIndexer.toIntArray(lt);return dt};MonotoneChainIndexer.prototype.findChainEnd=function(tt,rt){for(var nt=Quadrant.quadrant(tt[rt],tt[rt+1]),lt=rt+1;lt<tt.length;){var ut=Quadrant.quadrant(tt[lt-1],tt[lt]);if(ut!==nt)break;lt++}return lt-1};MonotoneChainIndexer.prototype.interfaces_=function(){return[]};MonotoneChainIndexer.prototype.getClass=function(){return MonotoneChainIndexer};MonotoneChainIndexer.toIntArray=function(tt){for(var rt=new Array(tt.size()).fill(null),nt=0;nt<rt.length;nt++)rt[nt]=tt.get(nt).intValue();return rt};var MonotoneChainEdge=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new Envelope,this.env2=new Envelope;var tt=arguments[0];this.e=tt,this.pts=tt.getCoordinates();var rt=new MonotoneChainIndexer;this.startIndex=rt.getChainStartIndices(this.pts)};MonotoneChainEdge.prototype.getCoordinates=function(){return this.pts};MonotoneChainEdge.prototype.getMaxX=function(tt){var rt=this.pts[this.startIndex[tt]].x,nt=this.pts[this.startIndex[tt+1]].x;return rt>nt?rt:nt};MonotoneChainEdge.prototype.getMinX=function(tt){var rt=this.pts[this.startIndex[tt]].x,nt=this.pts[this.startIndex[tt+1]].x;return rt<nt?rt:nt};MonotoneChainEdge.prototype.computeIntersectsForChain=function(){if(arguments.length===4){var tt=arguments[0],rt=arguments[1],nt=arguments[2],lt=arguments[3];this.computeIntersectsForChain(this.startIndex[tt],this.startIndex[tt+1],rt,rt.startIndex[nt],rt.startIndex[nt+1],lt)}else if(arguments.length===6){var ut=arguments[0],dt=arguments[1],pt=arguments[2],ht=arguments[3],mt=arguments[4],xt=arguments[5],Mt=this.pts[ut],vt=this.pts[dt],Ot=pt.pts[ht],At=pt.pts[mt];if(dt-ut===1&&mt-ht===1)return xt.addIntersections(this.e,ut,pt.e,ht),null;if(this.env1.init(Mt,vt),this.env2.init(Ot,At),!this.env1.intersects(this.env2))return null;var Rt=Math.trunc((ut+dt)/2),zt=Math.trunc((ht+mt)/2);ut<Rt&&(ht<zt&&this.computeIntersectsForChain(ut,Rt,pt,ht,zt,xt),zt<mt&&this.computeIntersectsForChain(ut,Rt,pt,zt,mt,xt)),Rt<dt&&(ht<zt&&this.computeIntersectsForChain(Rt,dt,pt,ht,zt,xt),zt<mt&&this.computeIntersectsForChain(Rt,dt,pt,zt,mt,xt))}};MonotoneChainEdge.prototype.getStartIndexes=function(){return this.startIndex};MonotoneChainEdge.prototype.computeIntersects=function(tt,rt){for(var nt=this,lt=0;lt<this.startIndex.length-1;lt++)for(var ut=0;ut<tt.startIndex.length-1;ut++)nt.computeIntersectsForChain(lt,tt,ut,rt)};MonotoneChainEdge.prototype.interfaces_=function(){return[]};MonotoneChainEdge.prototype.getClass=function(){return MonotoneChainEdge};var Depth=function et(){var tt=this;this._depth=Array(2).fill().map(function(){return Array(3)});for(var rt=0;rt<2;rt++)for(var nt=0;nt<3;nt++)tt._depth[rt][nt]=et.NULL_VALUE},staticAccessors$31={NULL_VALUE:{configurable:!0}};Depth.prototype.getDepth=function(tt,rt){return this._depth[tt][rt]};Depth.prototype.setDepth=function(tt,rt,nt){this._depth[tt][rt]=nt};Depth.prototype.isNull=function(){var tt=this;if(arguments.length===0){for(var rt=0;rt<2;rt++)for(var nt=0;nt<3;nt++)if(tt._depth[rt][nt]!==Depth.NULL_VALUE)return!1;return!0}else if(arguments.length===1){var lt=arguments[0];return this._depth[lt][1]===Depth.NULL_VALUE}else if(arguments.length===2){var ut=arguments[0],dt=arguments[1];return this._depth[ut][dt]===Depth.NULL_VALUE}};Depth.prototype.normalize=function(){for(var tt=this,rt=0;rt<2;rt++)if(!tt.isNull(rt)){var nt=tt._depth[rt][1];tt._depth[rt][2]<nt&&(nt=tt._depth[rt][2]),nt<0&&(nt=0);for(var lt=1;lt<3;lt++){var ut=0;tt._depth[rt][lt]>nt&&(ut=1),tt._depth[rt][lt]=ut}}};Depth.prototype.getDelta=function(tt){return this._depth[tt][Position$1.RIGHT]-this._depth[tt][Position$1.LEFT]};Depth.prototype.getLocation=function(tt,rt){return this._depth[tt][rt]<=0?Location.EXTERIOR:Location.INTERIOR};Depth.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]};Depth.prototype.add=function(){var tt=this;if(arguments.length===1)for(var rt=arguments[0],nt=0;nt<2;nt++)for(var lt=1;lt<3;lt++){var ut=rt.getLocation(nt,lt);(ut===Location.EXTERIOR||ut===Location.INTERIOR)&&(tt.isNull(nt,lt)?tt._depth[nt][lt]=Depth.depthAtLocation(ut):tt._depth[nt][lt]+=Depth.depthAtLocation(ut))}else if(arguments.length===3){var dt=arguments[0],pt=arguments[1],ht=arguments[2];ht===Location.INTERIOR&&this._depth[dt][pt]++}};Depth.prototype.interfaces_=function(){return[]};Depth.prototype.getClass=function(){return Depth};Depth.depthAtLocation=function(tt){return tt===Location.EXTERIOR?0:tt===Location.INTERIOR?1:Depth.NULL_VALUE};staticAccessors$31.NULL_VALUE.get=function(){return-1};Object.defineProperties(Depth,staticAccessors$31);var Edge=function(et){function tt(){if(et.call(this),this.pts=null,this._env=null,this.eiList=new EdgeIntersectionList(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new Depth,this._depthDelta=0,arguments.length===1){var rt=arguments[0];tt.call(this,rt,null)}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1];this.pts=nt,this._label=lt}}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.getDepth=function(){return this._depth},tt.prototype.getCollapsedEdge=function(){var nt=new Array(2).fill(null);nt[0]=this.pts[0],nt[1]=this.pts[1];var lt=new tt(nt,Label$2.toLineLabel(this._label));return lt},tt.prototype.isIsolated=function(){return this._isIsolated},tt.prototype.getCoordinates=function(){return this.pts},tt.prototype.setIsolated=function(nt){this._isIsolated=nt},tt.prototype.setName=function(nt){this._name=nt},tt.prototype.equals=function(nt){var lt=this;if(!(nt instanceof tt))return!1;var ut=nt;if(this.pts.length!==ut.pts.length)return!1;for(var dt=!0,pt=!0,ht=this.pts.length,mt=0;mt<this.pts.length;mt++)if(lt.pts[mt].equals2D(ut.pts[mt])||(dt=!1),lt.pts[mt].equals2D(ut.pts[--ht])||(pt=!1),!dt&&!pt)return!1;return!0},tt.prototype.getCoordinate=function(){if(arguments.length===0)return this.pts.length>0?this.pts[0]:null;if(arguments.length===1){var nt=arguments[0];return this.pts[nt]}},tt.prototype.print=function(nt){var lt=this;nt.print("edge "+this._name+": "),nt.print("LINESTRING (");for(var ut=0;ut<this.pts.length;ut++)ut>0&&nt.print(","),nt.print(lt.pts[ut].x+" "+lt.pts[ut].y);nt.print(")  "+this._label+" "+this._depthDelta)},tt.prototype.computeIM=function(nt){tt.updateIM(this._label,nt)},tt.prototype.isCollapsed=function(){return!this._label.isArea()||this.pts.length!==3?!1:!!this.pts[0].equals(this.pts[2])},tt.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},tt.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},tt.prototype.getDepthDelta=function(){return this._depthDelta},tt.prototype.getNumPoints=function(){return this.pts.length},tt.prototype.printReverse=function(nt){var lt=this;nt.print("edge "+this._name+": ");for(var ut=this.pts.length-1;ut>=0;ut--)nt.print(lt.pts[ut]+" ");nt.println("")},tt.prototype.getMonotoneChainEdge=function(){return this._mce===null&&(this._mce=new MonotoneChainEdge(this)),this._mce},tt.prototype.getEnvelope=function(){var nt=this;if(this._env===null){this._env=new Envelope;for(var lt=0;lt<this.pts.length;lt++)nt._env.expandToInclude(nt.pts[lt])}return this._env},tt.prototype.addIntersection=function(nt,lt,ut,dt){var pt=new Coordinate(nt.getIntersection(dt)),ht=lt,mt=nt.getEdgeDistance(ut,dt),xt=ht+1;if(xt<this.pts.length){var Mt=this.pts[xt];pt.equals2D(Mt)&&(ht=xt,mt=0)}this.eiList.add(pt,ht,mt)},tt.prototype.toString=function(){var nt=this,lt=new StringBuffer;lt.append("edge "+this._name+": "),lt.append("LINESTRING (");for(var ut=0;ut<this.pts.length;ut++)ut>0&&lt.append(","),lt.append(nt.pts[ut].x+" "+nt.pts[ut].y);return lt.append(")  "+this._label+" "+this._depthDelta),lt.toString()},tt.prototype.isPointwiseEqual=function(nt){var lt=this;if(this.pts.length!==nt.pts.length)return!1;for(var ut=0;ut<this.pts.length;ut++)if(!lt.pts[ut].equals2D(nt.pts[ut]))return!1;return!0},tt.prototype.setDepthDelta=function(nt){this._depthDelta=nt},tt.prototype.getEdgeIntersectionList=function(){return this.eiList},tt.prototype.addIntersections=function(nt,lt,ut){for(var dt=this,pt=0;pt<nt.getIntersectionNum();pt++)dt.addIntersection(nt,lt,ut,pt)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt.updateIM=function(){if(arguments.length===2){var nt=arguments[0],lt=arguments[1];lt.setAtLeastIfValid(nt.getLocation(0,Position$1.ON),nt.getLocation(1,Position$1.ON),1),nt.isArea()&&(lt.setAtLeastIfValid(nt.getLocation(0,Position$1.LEFT),nt.getLocation(1,Position$1.LEFT),2),lt.setAtLeastIfValid(nt.getLocation(0,Position$1.RIGHT),nt.getLocation(1,Position$1.RIGHT),2))}else return et.prototype.updateIM.apply(this,arguments)},tt}(GraphComponent),BufferBuilder=function(tt){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new EdgeList,this._bufParams=tt||null};BufferBuilder.prototype.setWorkingPrecisionModel=function(tt){this._workingPrecisionModel=tt};BufferBuilder.prototype.insertUniqueEdge=function(tt){var rt=this._edgeList.findEqualEdge(tt);if(rt!==null){var nt=rt.getLabel(),lt=tt.getLabel();rt.isPointwiseEqual(tt)||(lt=new Label$2(tt.getLabel()),lt.flip()),nt.merge(lt);var ut=BufferBuilder.depthDelta(lt),dt=rt.getDepthDelta(),pt=dt+ut;rt.setDepthDelta(pt)}else this._edgeList.add(tt),tt.setDepthDelta(BufferBuilder.depthDelta(tt.getLabel()))};BufferBuilder.prototype.buildSubgraphs=function(tt,rt){for(var nt=new ArrayList,lt=tt.iterator();lt.hasNext();){var ut=lt.next(),dt=ut.getRightmostCoordinate(),pt=new SubgraphDepthLocater(nt),ht=pt.getDepth(dt);ut.computeDepth(ht),ut.findResultEdges(),nt.add(ut),rt.add(ut.getDirectedEdges(),ut.getNodes())}};BufferBuilder.prototype.createSubgraphs=function(tt){for(var rt=new ArrayList,nt=tt.getNodes().iterator();nt.hasNext();){var lt=nt.next();if(!lt.isVisited()){var ut=new BufferSubgraph;ut.create(lt),rt.add(ut)}}return Collections.sort(rt,Collections.reverseOrder()),rt};BufferBuilder.prototype.createEmptyResultGeometry=function(){var tt=this._geomFact.createPolygon();return tt};BufferBuilder.prototype.getNoder=function(tt){if(this._workingNoder!==null)return this._workingNoder;var rt=new MCIndexNoder,nt=new RobustLineIntersector;return nt.setPrecisionModel(tt),rt.setSegmentIntersector(new IntersectionAdder(nt)),rt};BufferBuilder.prototype.buffer=function(tt,rt){var nt=this._workingPrecisionModel;nt===null&&(nt=tt.getPrecisionModel()),this._geomFact=tt.getFactory();var lt=new OffsetCurveBuilder(nt,this._bufParams),ut=new OffsetCurveSetBuilder(tt,rt,lt),dt=ut.getCurves();if(dt.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(dt,nt),this._graph=new PlanarGraph(new OverlayNodeFactory),this._graph.addEdges(this._edgeList.getEdges());var pt=this.createSubgraphs(this._graph),ht=new PolygonBuilder(this._geomFact);this.buildSubgraphs(pt,ht);var mt=ht.getPolygons();if(mt.size()<=0)return this.createEmptyResultGeometry();var xt=this._geomFact.buildGeometry(mt);return xt};BufferBuilder.prototype.computeNodedEdges=function(tt,rt){var nt=this,lt=this.getNoder(rt);lt.computeNodes(tt);for(var ut=lt.getNodedSubstrings(),dt=ut.iterator();dt.hasNext();){var pt=dt.next(),ht=pt.getCoordinates();if(!(ht.length===2&&ht[0].equals2D(ht[1]))){var mt=pt.getData(),xt=new Edge(pt.getCoordinates(),new Label$2(mt));nt.insertUniqueEdge(xt)}}};BufferBuilder.prototype.setNoder=function(tt){this._workingNoder=tt};BufferBuilder.prototype.interfaces_=function(){return[]};BufferBuilder.prototype.getClass=function(){return BufferBuilder};BufferBuilder.depthDelta=function(tt){var rt=tt.getLocation(0,Position$1.LEFT),nt=tt.getLocation(0,Position$1.RIGHT);return rt===Location.INTERIOR&&nt===Location.EXTERIOR?1:rt===Location.EXTERIOR&&nt===Location.INTERIOR?-1:0};BufferBuilder.convertSegStrings=function(tt){for(var rt=new GeometryFactory,nt=new ArrayList;tt.hasNext();){var lt=tt.next(),ut=rt.createLineString(lt.getCoordinates());nt.add(ut)}return rt.buildGeometry(nt)};var ScaledNoder=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,arguments.length===2){var tt=arguments[0],rt=arguments[1];this._noder=tt,this._scaleFactor=rt,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(arguments.length===4){var nt=arguments[0],lt=arguments[1],ut=arguments[2],dt=arguments[3];this._noder=nt,this._scaleFactor=lt,this._offsetX=ut,this._offsetY=dt,this._isScaled=!this.isIntegerPrecision()}};ScaledNoder.prototype.rescale=function(){var tt=this;if(hasInterface(arguments[0],Collection))for(var rt=arguments[0],nt=rt.iterator();nt.hasNext();){var lt=nt.next();tt.rescale(lt.getCoordinates())}else if(arguments[0]instanceof Array){for(var ut=arguments[0],dt=0;dt<ut.length;dt++)ut[dt].x=ut[dt].x/tt._scaleFactor+tt._offsetX,ut[dt].y=ut[dt].y/tt._scaleFactor+tt._offsetY;ut.length===2&&ut[0].equals2D(ut[1])&&System.out.println(ut)}};ScaledNoder.prototype.scale=function(){var tt=this;if(hasInterface(arguments[0],Collection)){for(var rt=arguments[0],nt=new ArrayList,lt=rt.iterator();lt.hasNext();){var ut=lt.next();nt.add(new NodedSegmentString(tt.scale(ut.getCoordinates()),ut.getData()))}return nt}else if(arguments[0]instanceof Array){for(var dt=arguments[0],pt=new Array(dt.length).fill(null),ht=0;ht<dt.length;ht++)pt[ht]=new Coordinate(Math.round((dt[ht].x-tt._offsetX)*tt._scaleFactor),Math.round((dt[ht].y-tt._offsetY)*tt._scaleFactor),dt[ht].z);var mt=CoordinateArrays.removeRepeatedPoints(pt);return mt}};ScaledNoder.prototype.isIntegerPrecision=function(){return this._scaleFactor===1};ScaledNoder.prototype.getNodedSubstrings=function(){var tt=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(tt),tt};ScaledNoder.prototype.computeNodes=function(tt){var rt=tt;this._isScaled&&(rt=this.scale(tt)),this._noder.computeNodes(rt)};ScaledNoder.prototype.interfaces_=function(){return[Noder]};ScaledNoder.prototype.getClass=function(){return ScaledNoder};var NodingValidator=function(){this._li=new RobustLineIntersector,this._segStrings=null;var tt=arguments[0];this._segStrings=tt},staticAccessors$33={fact:{configurable:!0}};NodingValidator.prototype.checkEndPtVertexIntersections=function(){var tt=this;if(arguments.length===0)for(var rt=this._segStrings.iterator();rt.hasNext();){var nt=rt.next(),lt=nt.getCoordinates();tt.checkEndPtVertexIntersections(lt[0],tt._segStrings),tt.checkEndPtVertexIntersections(lt[lt.length-1],tt._segStrings)}else if(arguments.length===2){for(var ut=arguments[0],dt=arguments[1],pt=dt.iterator();pt.hasNext();)for(var ht=pt.next(),mt=ht.getCoordinates(),xt=1;xt<mt.length-1;xt++)if(mt[xt].equals(ut))throw new RuntimeException("found endpt/interior pt intersection at index "+xt+" :pt "+ut)}};NodingValidator.prototype.checkInteriorIntersections=function(){var tt=this;if(arguments.length===0)for(var rt=this._segStrings.iterator();rt.hasNext();)for(var nt=rt.next(),lt=this._segStrings.iterator();lt.hasNext();){var ut=lt.next();tt.checkInteriorIntersections(nt,ut)}else if(arguments.length===2)for(var dt=arguments[0],pt=arguments[1],ht=dt.getCoordinates(),mt=pt.getCoordinates(),xt=0;xt<ht.length-1;xt++)for(var Mt=0;Mt<mt.length-1;Mt++)tt.checkInteriorIntersections(dt,xt,pt,Mt);else if(arguments.length===4){var vt=arguments[0],Ot=arguments[1],At=arguments[2],Rt=arguments[3];if(vt===At&&Ot===Rt)return null;var zt=vt.getCoordinates()[Ot],Tt=vt.getCoordinates()[Ot+1],Ct=At.getCoordinates()[Rt],It=At.getCoordinates()[Rt+1];if(this._li.computeIntersection(zt,Tt,Ct,It),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,zt,Tt)||this.hasInteriorIntersection(this._li,Ct,It)))throw new RuntimeException("found non-noded intersection at "+zt+"-"+Tt+" and "+Ct+"-"+It)}};NodingValidator.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()};NodingValidator.prototype.checkCollapses=function(){var tt=this;if(arguments.length===0)for(var rt=this._segStrings.iterator();rt.hasNext();){var nt=rt.next();tt.checkCollapses(nt)}else if(arguments.length===1)for(var lt=arguments[0],ut=lt.getCoordinates(),dt=0;dt<ut.length-2;dt++)tt.checkCollapse(ut[dt],ut[dt+1],ut[dt+2])};NodingValidator.prototype.hasInteriorIntersection=function(tt,rt,nt){for(var lt=0;lt<tt.getIntersectionNum();lt++){var ut=tt.getIntersection(lt);if(!(ut.equals(rt)||ut.equals(nt)))return!0}return!1};NodingValidator.prototype.checkCollapse=function(tt,rt,nt){if(tt.equals(nt))throw new RuntimeException("found non-noded collapse at "+NodingValidator.fact.createLineString([tt,rt,nt]))};NodingValidator.prototype.interfaces_=function(){return[]};NodingValidator.prototype.getClass=function(){return NodingValidator};staticAccessors$33.fact.get=function(){return new GeometryFactory};Object.defineProperties(NodingValidator,staticAccessors$33);var HotPixel=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var tt=arguments[0],rt=arguments[1],nt=arguments[2];if(this._originalPt=tt,this._pt=tt,this._scaleFactor=rt,this._li=nt,rt<=0)throw new IllegalArgumentException("Scale factor must be non-zero");rt!==1&&(this._pt=new Coordinate(this.scale(tt.x),this.scale(tt.y)),this._p0Scaled=new Coordinate,this._p1Scaled=new Coordinate),this.initCorners(this._pt)},staticAccessors$34={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};HotPixel.prototype.intersectsScaled=function(tt,rt){var nt=Math.min(tt.x,rt.x),lt=Math.max(tt.x,rt.x),ut=Math.min(tt.y,rt.y),dt=Math.max(tt.y,rt.y),pt=this._maxx<nt||this._minx>lt||this._maxy<ut||this._miny>dt;if(pt)return!1;var ht=this.intersectsToleranceSquare(tt,rt);return Assert.isTrue(!(pt&&ht),"Found bad envelope test"),ht};HotPixel.prototype.initCorners=function(tt){var rt=.5;this._minx=tt.x-rt,this._maxx=tt.x+rt,this._miny=tt.y-rt,this._maxy=tt.y+rt,this._corner[0]=new Coordinate(this._maxx,this._maxy),this._corner[1]=new Coordinate(this._minx,this._maxy),this._corner[2]=new Coordinate(this._minx,this._miny),this._corner[3]=new Coordinate(this._maxx,this._miny)};HotPixel.prototype.intersects=function(tt,rt){return this._scaleFactor===1?this.intersectsScaled(tt,rt):(this.copyScaled(tt,this._p0Scaled),this.copyScaled(rt,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))};HotPixel.prototype.scale=function(tt){return Math.round(tt*this._scaleFactor)};HotPixel.prototype.getCoordinate=function(){return this._originalPt};HotPixel.prototype.copyScaled=function(tt,rt){rt.x=this.scale(tt.x),rt.y=this.scale(tt.y)};HotPixel.prototype.getSafeEnvelope=function(){if(this._safeEnv===null){var tt=HotPixel.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new Envelope(this._originalPt.x-tt,this._originalPt.x+tt,this._originalPt.y-tt,this._originalPt.y+tt)}return this._safeEnv};HotPixel.prototype.intersectsPixelClosure=function(tt,rt){return this._li.computeIntersection(tt,rt,this._corner[0],this._corner[1]),!!(this._li.hasIntersection()||(this._li.computeIntersection(tt,rt,this._corner[1],this._corner[2]),this._li.hasIntersection())||(this._li.computeIntersection(tt,rt,this._corner[2],this._corner[3]),this._li.hasIntersection())||(this._li.computeIntersection(tt,rt,this._corner[3],this._corner[0]),this._li.hasIntersection()))};HotPixel.prototype.intersectsToleranceSquare=function(tt,rt){var nt=!1,lt=!1;return this._li.computeIntersection(tt,rt,this._corner[0],this._corner[1]),!!(this._li.isProper()||(this._li.computeIntersection(tt,rt,this._corner[1],this._corner[2]),this._li.isProper())||(this._li.hasIntersection()&&(nt=!0),this._li.computeIntersection(tt,rt,this._corner[2],this._corner[3]),this._li.isProper())||(this._li.hasIntersection()&&(lt=!0),this._li.computeIntersection(tt,rt,this._corner[3],this._corner[0]),this._li.isProper())||nt&&lt||tt.equals(this._pt)||rt.equals(this._pt))};HotPixel.prototype.addSnappedNode=function(tt,rt){var nt=tt.getCoordinate(rt),lt=tt.getCoordinate(rt+1);return this.intersects(nt,lt)?(tt.addIntersection(this.getCoordinate(),rt),!0):!1};HotPixel.prototype.interfaces_=function(){return[]};HotPixel.prototype.getClass=function(){return HotPixel};staticAccessors$34.SAFE_ENV_EXPANSION_FACTOR.get=function(){return .75};Object.defineProperties(HotPixel,staticAccessors$34);var MonotoneChainSelectAction=function(){this.tempEnv1=new Envelope,this.selectedSegment=new LineSegment};MonotoneChainSelectAction.prototype.select=function(){if(arguments.length!==1){if(arguments.length===2){var tt=arguments[0],rt=arguments[1];tt.getLineSegment(rt,this.selectedSegment),this.select(this.selectedSegment)}}};MonotoneChainSelectAction.prototype.interfaces_=function(){return[]};MonotoneChainSelectAction.prototype.getClass=function(){return MonotoneChainSelectAction};var MCIndexPointSnapper=function(){this._index=null;var tt=arguments[0];this._index=tt},staticAccessors$35={HotPixelSnapAction:{configurable:!0}};MCIndexPointSnapper.prototype.snap=function(){if(arguments.length===1){var tt=arguments[0];return this.snap(tt,null,-1)}else if(arguments.length===3){var rt=arguments[0],nt=arguments[1],lt=arguments[2],ut=rt.getSafeEnvelope(),dt=new HotPixelSnapAction(rt,nt,lt);return this._index.query(ut,{interfaces_:function(){return[ItemVisitor]},visitItem:function(pt){var ht=pt;ht.select(ut,dt)}}),dt.isNodeAdded()}};MCIndexPointSnapper.prototype.interfaces_=function(){return[]};MCIndexPointSnapper.prototype.getClass=function(){return MCIndexPointSnapper};staticAccessors$35.HotPixelSnapAction.get=function(){return HotPixelSnapAction};Object.defineProperties(MCIndexPointSnapper,staticAccessors$35);var HotPixelSnapAction=function(et){function tt(){et.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var rt=arguments[0],nt=arguments[1],lt=arguments[2];this._hotPixel=rt,this._parentEdge=nt,this._hotPixelVertexIndex=lt}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.isNodeAdded=function(){return this._isNodeAdded},tt.prototype.select=function(){if(arguments.length===2){var nt=arguments[0],lt=arguments[1],ut=nt.getContext();if(this._parentEdge!==null&&ut===this._parentEdge&&lt===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(ut,lt)}else return et.prototype.select.apply(this,arguments)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(MonotoneChainSelectAction),InteriorIntersectionFinderAdder=function(){this._li=null,this._interiorIntersections=null;var tt=arguments[0];this._li=tt,this._interiorIntersections=new ArrayList};InteriorIntersectionFinderAdder.prototype.processIntersections=function(tt,rt,nt,lt){var ut=this;if(tt===nt&&rt===lt)return null;var dt=tt.getCoordinates()[rt],pt=tt.getCoordinates()[rt+1],ht=nt.getCoordinates()[lt],mt=nt.getCoordinates()[lt+1];if(this._li.computeIntersection(dt,pt,ht,mt),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var xt=0;xt<this._li.getIntersectionNum();xt++)ut._interiorIntersections.add(ut._li.getIntersection(xt));tt.addIntersections(this._li,rt,0),nt.addIntersections(this._li,lt,1)}};InteriorIntersectionFinderAdder.prototype.isDone=function(){return!1};InteriorIntersectionFinderAdder.prototype.getInteriorIntersections=function(){return this._interiorIntersections};InteriorIntersectionFinderAdder.prototype.interfaces_=function(){return[SegmentIntersector]};InteriorIntersectionFinderAdder.prototype.getClass=function(){return InteriorIntersectionFinderAdder};var MCIndexSnapRounder=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var tt=arguments[0];this._pm=tt,this._li=new RobustLineIntersector,this._li.setPrecisionModel(tt),this._scaleFactor=tt.getScale()};MCIndexSnapRounder.prototype.checkCorrectness=function(tt){var rt=NodedSegmentString.getNodedSubstrings(tt),nt=new NodingValidator(rt);try{nt.checkValid()}catch(lt){if(lt instanceof Exception)lt.printStackTrace();else throw lt}finally{}};MCIndexSnapRounder.prototype.getNodedSubstrings=function(){return NodedSegmentString.getNodedSubstrings(this._nodedSegStrings)};MCIndexSnapRounder.prototype.snapRound=function(tt,rt){var nt=this.findInteriorIntersections(tt,rt);this.computeIntersectionSnaps(nt),this.computeVertexSnaps(tt)};MCIndexSnapRounder.prototype.findInteriorIntersections=function(tt,rt){var nt=new InteriorIntersectionFinderAdder(rt);return this._noder.setSegmentIntersector(nt),this._noder.computeNodes(tt),nt.getInteriorIntersections()};MCIndexSnapRounder.prototype.computeVertexSnaps=function(){var tt=this;if(hasInterface(arguments[0],Collection))for(var rt=arguments[0],nt=rt.iterator();nt.hasNext();){var lt=nt.next();tt.computeVertexSnaps(lt)}else if(arguments[0]instanceof NodedSegmentString)for(var ut=arguments[0],dt=ut.getCoordinates(),pt=0;pt<dt.length;pt++){var ht=new HotPixel(dt[pt],tt._scaleFactor,tt._li),mt=tt._pointSnapper.snap(ht,ut,pt);mt&&ut.addIntersection(dt[pt],pt)}};MCIndexSnapRounder.prototype.computeNodes=function(tt){this._nodedSegStrings=tt,this._noder=new MCIndexNoder,this._pointSnapper=new MCIndexPointSnapper(this._noder.getIndex()),this.snapRound(tt,this._li)};MCIndexSnapRounder.prototype.computeIntersectionSnaps=function(tt){for(var rt=this,nt=tt.iterator();nt.hasNext();){var lt=nt.next(),ut=new HotPixel(lt,rt._scaleFactor,rt._li);rt._pointSnapper.snap(ut)}};MCIndexSnapRounder.prototype.interfaces_=function(){return[Noder]};MCIndexSnapRounder.prototype.getClass=function(){return MCIndexSnapRounder};var BufferOp=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new BufferParameters,this._resultGeometry=null,this._saveException=null,arguments.length===1){var tt=arguments[0];this._argGeom=tt}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];this._argGeom=rt,this._bufParams=nt}},staticAccessors$32={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};BufferOp.prototype.bufferFixedPrecision=function(tt){var rt=new ScaledNoder(new MCIndexSnapRounder(new PrecisionModel(1)),tt.getScale()),nt=new BufferBuilder(this._bufParams);nt.setWorkingPrecisionModel(tt),nt.setNoder(rt),this._resultGeometry=nt.buffer(this._argGeom,this._distance)};BufferOp.prototype.bufferReducedPrecision=function(){var tt=this;if(arguments.length===0){for(var rt=BufferOp.MAX_PRECISION_DIGITS;rt>=0;rt--){try{tt.bufferReducedPrecision(rt)}catch(dt){if(dt instanceof TopologyException)tt._saveException=dt;else throw dt}finally{}if(tt._resultGeometry!==null)return null}throw this._saveException}else if(arguments.length===1){var nt=arguments[0],lt=BufferOp.precisionScaleFactor(this._argGeom,this._distance,nt),ut=new PrecisionModel(lt);this.bufferFixedPrecision(ut)}};BufferOp.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),this._resultGeometry!==null)return null;var tt=this._argGeom.getFactory().getPrecisionModel();tt.getType()===PrecisionModel.FIXED?this.bufferFixedPrecision(tt):this.bufferReducedPrecision()};BufferOp.prototype.setQuadrantSegments=function(tt){this._bufParams.setQuadrantSegments(tt)};BufferOp.prototype.bufferOriginalPrecision=function(){try{var tt=new BufferBuilder(this._bufParams);this._resultGeometry=tt.buffer(this._argGeom,this._distance)}catch(rt){if(rt instanceof RuntimeException)this._saveException=rt;else throw rt}finally{}};BufferOp.prototype.getResultGeometry=function(tt){return this._distance=tt,this.computeGeometry(),this._resultGeometry};BufferOp.prototype.setEndCapStyle=function(tt){this._bufParams.setEndCapStyle(tt)};BufferOp.prototype.interfaces_=function(){return[]};BufferOp.prototype.getClass=function(){return BufferOp};BufferOp.bufferOp=function(){if(arguments.length===2){var tt=arguments[0],rt=arguments[1],nt=new BufferOp(tt),lt=nt.getResultGeometry(rt);return lt}else if(arguments.length===3){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Geometry&&typeof arguments[1]=="number"){var ut=arguments[0],dt=arguments[1],pt=arguments[2],ht=new BufferOp(ut);ht.setQuadrantSegments(pt);var mt=ht.getResultGeometry(dt);return mt}else if(arguments[2]instanceof BufferParameters&&arguments[0]instanceof Geometry&&typeof arguments[1]=="number"){var xt=arguments[0],Mt=arguments[1],vt=arguments[2],Ot=new BufferOp(xt,vt),At=Ot.getResultGeometry(Mt);return At}}else if(arguments.length===4){var Rt=arguments[0],zt=arguments[1],Tt=arguments[2],Ct=arguments[3],It=new BufferOp(Rt);It.setQuadrantSegments(Tt),It.setEndCapStyle(Ct);var Dt=It.getResultGeometry(zt);return Dt}};BufferOp.precisionScaleFactor=function(tt,rt,nt){var lt=tt.getEnvelopeInternal(),ut=MathUtil.max(Math.abs(lt.getMaxX()),Math.abs(lt.getMaxY()),Math.abs(lt.getMinX()),Math.abs(lt.getMinY())),dt=rt>0?rt:0,pt=ut+2*dt,ht=Math.trunc(Math.log(pt)/Math.log(10)+1),mt=nt-ht,xt=Math.pow(10,mt);return xt};staticAccessors$32.CAP_ROUND.get=function(){return BufferParameters.CAP_ROUND};staticAccessors$32.CAP_BUTT.get=function(){return BufferParameters.CAP_FLAT};staticAccessors$32.CAP_FLAT.get=function(){return BufferParameters.CAP_FLAT};staticAccessors$32.CAP_SQUARE.get=function(){return BufferParameters.CAP_SQUARE};staticAccessors$32.MAX_PRECISION_DIGITS.get=function(){return 12};Object.defineProperties(BufferOp,staticAccessors$32);var PointPairDistance=function(){this._pt=[new Coordinate,new Coordinate],this._distance=Double.NaN,this._isNull=!0};PointPairDistance.prototype.getCoordinates=function(){return this._pt};PointPairDistance.prototype.getCoordinate=function(tt){return this._pt[tt]};PointPairDistance.prototype.setMinimum=function(){if(arguments.length===1){var tt=arguments[0];this.setMinimum(tt._pt[0],tt._pt[1])}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];if(this._isNull)return this.initialize(rt,nt),null;var lt=rt.distance(nt);lt<this._distance&&this.initialize(rt,nt,lt)}};PointPairDistance.prototype.initialize=function(){if(arguments.length===0)this._isNull=!0;else if(arguments.length===2){var tt=arguments[0],rt=arguments[1];this._pt[0].setCoordinate(tt),this._pt[1].setCoordinate(rt),this._distance=tt.distance(rt),this._isNull=!1}else if(arguments.length===3){var nt=arguments[0],lt=arguments[1],ut=arguments[2];this._pt[0].setCoordinate(nt),this._pt[1].setCoordinate(lt),this._distance=ut,this._isNull=!1}};PointPairDistance.prototype.getDistance=function(){return this._distance};PointPairDistance.prototype.setMaximum=function(){if(arguments.length===1){var tt=arguments[0];this.setMaximum(tt._pt[0],tt._pt[1])}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];if(this._isNull)return this.initialize(rt,nt),null;var lt=rt.distance(nt);lt>this._distance&&this.initialize(rt,nt,lt)}};PointPairDistance.prototype.interfaces_=function(){return[]};PointPairDistance.prototype.getClass=function(){return PointPairDistance};var DistanceToPointFinder=function(){};DistanceToPointFinder.prototype.interfaces_=function(){return[]};DistanceToPointFinder.prototype.getClass=function(){return DistanceToPointFinder};DistanceToPointFinder.computeDistance=function(){if(arguments[2]instanceof PointPairDistance&&arguments[0]instanceof LineString&&arguments[1]instanceof Coordinate)for(var tt=arguments[0],rt=arguments[1],nt=arguments[2],lt=tt.getCoordinates(),ut=new LineSegment,dt=0;dt<lt.length-1;dt++){ut.setCoordinates(lt[dt],lt[dt+1]);var pt=ut.closestPoint(rt);nt.setMinimum(pt,rt)}else if(arguments[2]instanceof PointPairDistance&&arguments[0]instanceof Polygon&&arguments[1]instanceof Coordinate){var ht=arguments[0],mt=arguments[1],xt=arguments[2];DistanceToPointFinder.computeDistance(ht.getExteriorRing(),mt,xt);for(var Mt=0;Mt<ht.getNumInteriorRing();Mt++)DistanceToPointFinder.computeDistance(ht.getInteriorRingN(Mt),mt,xt)}else if(arguments[2]instanceof PointPairDistance&&arguments[0]instanceof Geometry&&arguments[1]instanceof Coordinate){var vt=arguments[0],Ot=arguments[1],At=arguments[2];if(vt instanceof LineString)DistanceToPointFinder.computeDistance(vt,Ot,At);else if(vt instanceof Polygon)DistanceToPointFinder.computeDistance(vt,Ot,At);else if(vt instanceof GeometryCollection)for(var Rt=vt,zt=0;zt<Rt.getNumGeometries();zt++){var Tt=Rt.getGeometryN(zt);DistanceToPointFinder.computeDistance(Tt,Ot,At)}else At.setMinimum(vt.getCoordinate(),Ot)}else if(arguments[2]instanceof PointPairDistance&&arguments[0]instanceof LineSegment&&arguments[1]instanceof Coordinate){var Ct=arguments[0],It=arguments[1],Dt=arguments[2],kt=Ct.closestPoint(It);Dt.setMinimum(kt,It)}};var BufferCurveMaximumDistanceFinder=function(tt){this._maxPtDist=new PointPairDistance,this._inputGeom=tt||null},staticAccessors$36={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};BufferCurveMaximumDistanceFinder.prototype.computeMaxMidpointDistance=function(tt){var rt=new MaxMidpointDistanceFilter(this._inputGeom);tt.apply(rt),this._maxPtDist.setMaximum(rt.getMaxPointDistance())};BufferCurveMaximumDistanceFinder.prototype.computeMaxVertexDistance=function(tt){var rt=new MaxPointDistanceFilter(this._inputGeom);tt.apply(rt),this._maxPtDist.setMaximum(rt.getMaxPointDistance())};BufferCurveMaximumDistanceFinder.prototype.findDistance=function(tt){return this.computeMaxVertexDistance(tt),this.computeMaxMidpointDistance(tt),this._maxPtDist.getDistance()};BufferCurveMaximumDistanceFinder.prototype.getDistancePoints=function(){return this._maxPtDist};BufferCurveMaximumDistanceFinder.prototype.interfaces_=function(){return[]};BufferCurveMaximumDistanceFinder.prototype.getClass=function(){return BufferCurveMaximumDistanceFinder};staticAccessors$36.MaxPointDistanceFilter.get=function(){return MaxPointDistanceFilter};staticAccessors$36.MaxMidpointDistanceFilter.get=function(){return MaxMidpointDistanceFilter};Object.defineProperties(BufferCurveMaximumDistanceFinder,staticAccessors$36);var MaxPointDistanceFilter=function(tt){this._maxPtDist=new PointPairDistance,this._minPtDist=new PointPairDistance,this._geom=tt||null};MaxPointDistanceFilter.prototype.filter=function(tt){this._minPtDist.initialize(),DistanceToPointFinder.computeDistance(this._geom,tt,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)};MaxPointDistanceFilter.prototype.getMaxPointDistance=function(){return this._maxPtDist};MaxPointDistanceFilter.prototype.interfaces_=function(){return[CoordinateFilter]};MaxPointDistanceFilter.prototype.getClass=function(){return MaxPointDistanceFilter};var MaxMidpointDistanceFilter=function(tt){this._maxPtDist=new PointPairDistance,this._minPtDist=new PointPairDistance,this._geom=tt||null};MaxMidpointDistanceFilter.prototype.filter=function(tt,rt){if(rt===0)return null;var nt=tt.getCoordinate(rt-1),lt=tt.getCoordinate(rt),ut=new Coordinate((nt.x+lt.x)/2,(nt.y+lt.y)/2);this._minPtDist.initialize(),DistanceToPointFinder.computeDistance(this._geom,ut,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)};MaxMidpointDistanceFilter.prototype.isDone=function(){return!1};MaxMidpointDistanceFilter.prototype.isGeometryChanged=function(){return!1};MaxMidpointDistanceFilter.prototype.getMaxPointDistance=function(){return this._maxPtDist};MaxMidpointDistanceFilter.prototype.interfaces_=function(){return[CoordinateSequenceFilter]};MaxMidpointDistanceFilter.prototype.getClass=function(){return MaxMidpointDistanceFilter};var PolygonExtracter=function(tt){this._comps=tt||null};PolygonExtracter.prototype.filter=function(tt){tt instanceof Polygon&&this._comps.add(tt)};PolygonExtracter.prototype.interfaces_=function(){return[GeometryFilter]};PolygonExtracter.prototype.getClass=function(){return PolygonExtracter};PolygonExtracter.getPolygons=function(){if(arguments.length===1){var tt=arguments[0];return PolygonExtracter.getPolygons(tt,new ArrayList)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];return rt instanceof Polygon?nt.add(rt):rt instanceof GeometryCollection&&rt.apply(new PolygonExtracter(nt)),nt}};var LinearComponentExtracter=function(){if(this._lines=null,this._isForcedToLineString=!1,arguments.length===1){var tt=arguments[0];this._lines=tt}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];this._lines=rt,this._isForcedToLineString=nt}};LinearComponentExtracter.prototype.filter=function(tt){if(this._isForcedToLineString&&tt instanceof LinearRing){var rt=tt.getFactory().createLineString(tt.getCoordinateSequence());return this._lines.add(rt),null}tt instanceof LineString&&this._lines.add(tt)};LinearComponentExtracter.prototype.setForceToLineString=function(tt){this._isForcedToLineString=tt};LinearComponentExtracter.prototype.interfaces_=function(){return[GeometryComponentFilter]};LinearComponentExtracter.prototype.getClass=function(){return LinearComponentExtracter};LinearComponentExtracter.getGeometry=function(){if(arguments.length===1){var tt=arguments[0];return tt.getFactory().buildGeometry(LinearComponentExtracter.getLines(tt))}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];return rt.getFactory().buildGeometry(LinearComponentExtracter.getLines(rt,nt))}};LinearComponentExtracter.getLines=function(){if(arguments.length===1){var tt=arguments[0];return LinearComponentExtracter.getLines(tt,!1)}else if(arguments.length===2){if(hasInterface(arguments[0],Collection)&&hasInterface(arguments[1],Collection)){for(var rt=arguments[0],nt=arguments[1],lt=rt.iterator();lt.hasNext();){var ut=lt.next();LinearComponentExtracter.getLines(ut,nt)}return nt}else if(arguments[0]instanceof Geometry&&typeof arguments[1]=="boolean"){var dt=arguments[0],pt=arguments[1],ht=new ArrayList;return dt.apply(new LinearComponentExtracter(ht,pt)),ht}else if(arguments[0]instanceof Geometry&&hasInterface(arguments[1],Collection)){var mt=arguments[0],xt=arguments[1];return mt instanceof LineString?xt.add(mt):mt.apply(new LinearComponentExtracter(xt)),xt}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&hasInterface(arguments[0],Collection)&&hasInterface(arguments[1],Collection)){for(var Mt=arguments[0],vt=arguments[1],Ot=arguments[2],At=Mt.iterator();At.hasNext();){var Rt=At.next();LinearComponentExtracter.getLines(Rt,vt,Ot)}return vt}else if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Geometry&&hasInterface(arguments[1],Collection)){var zt=arguments[0],Tt=arguments[1],Ct=arguments[2];return zt.apply(new LinearComponentExtracter(Tt,Ct)),Tt}}};var PointLocator=function(){if(this._boundaryRule=BoundaryNodeRule.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,arguments.length!==0){if(arguments.length===1){var tt=arguments[0];if(tt===null)throw new IllegalArgumentException("Rule must be non-null");this._boundaryRule=tt}}};PointLocator.prototype.locateInternal=function(){var tt=this;if(arguments[0]instanceof Coordinate&&arguments[1]instanceof Polygon){var rt=arguments[0],nt=arguments[1];if(nt.isEmpty())return Location.EXTERIOR;var lt=nt.getExteriorRing(),ut=this.locateInPolygonRing(rt,lt);if(ut===Location.EXTERIOR)return Location.EXTERIOR;if(ut===Location.BOUNDARY)return Location.BOUNDARY;for(var dt=0;dt<nt.getNumInteriorRing();dt++){var pt=nt.getInteriorRingN(dt),ht=tt.locateInPolygonRing(rt,pt);if(ht===Location.INTERIOR)return Location.EXTERIOR;if(ht===Location.BOUNDARY)return Location.BOUNDARY}return Location.INTERIOR}else if(arguments[0]instanceof Coordinate&&arguments[1]instanceof LineString){var mt=arguments[0],xt=arguments[1];if(!xt.getEnvelopeInternal().intersects(mt))return Location.EXTERIOR;var Mt=xt.getCoordinates();return!xt.isClosed()&&(mt.equals(Mt[0])||mt.equals(Mt[Mt.length-1]))?Location.BOUNDARY:CGAlgorithms.isOnLine(mt,Mt)?Location.INTERIOR:Location.EXTERIOR}else if(arguments[0]instanceof Coordinate&&arguments[1]instanceof Point$3){var vt=arguments[0],Ot=arguments[1],At=Ot.getCoordinate();return At.equals2D(vt)?Location.INTERIOR:Location.EXTERIOR}};PointLocator.prototype.locateInPolygonRing=function(tt,rt){return rt.getEnvelopeInternal().intersects(tt)?CGAlgorithms.locatePointInRing(tt,rt.getCoordinates()):Location.EXTERIOR};PointLocator.prototype.intersects=function(tt,rt){return this.locate(tt,rt)!==Location.EXTERIOR};PointLocator.prototype.updateLocationInfo=function(tt){tt===Location.INTERIOR&&(this._isIn=!0),tt===Location.BOUNDARY&&this._numBoundaries++};PointLocator.prototype.computeLocation=function(tt,rt){var nt=this;if(rt instanceof Point$3&&this.updateLocationInfo(this.locateInternal(tt,rt)),rt instanceof LineString)this.updateLocationInfo(this.locateInternal(tt,rt));else if(rt instanceof Polygon)this.updateLocationInfo(this.locateInternal(tt,rt));else if(rt instanceof MultiLineString)for(var lt=rt,ut=0;ut<lt.getNumGeometries();ut++){var dt=lt.getGeometryN(ut);nt.updateLocationInfo(nt.locateInternal(tt,dt))}else if(rt instanceof MultiPolygon)for(var pt=rt,ht=0;ht<pt.getNumGeometries();ht++){var mt=pt.getGeometryN(ht);nt.updateLocationInfo(nt.locateInternal(tt,mt))}else if(rt instanceof GeometryCollection)for(var xt=new GeometryCollectionIterator(rt);xt.hasNext();){var Mt=xt.next();Mt!==rt&&nt.computeLocation(tt,Mt)}};PointLocator.prototype.locate=function(tt,rt){return rt.isEmpty()?Location.EXTERIOR:rt instanceof LineString?this.locateInternal(tt,rt):rt instanceof Polygon?this.locateInternal(tt,rt):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(tt,rt),this._boundaryRule.isInBoundary(this._numBoundaries)?Location.BOUNDARY:this._numBoundaries>0||this._isIn?Location.INTERIOR:Location.EXTERIOR)};PointLocator.prototype.interfaces_=function(){return[]};PointLocator.prototype.getClass=function(){return PointLocator};var GeometryLocation=function et(){if(this._component=null,this._segIndex=null,this._pt=null,arguments.length===2){var tt=arguments[0],rt=arguments[1];et.call(this,tt,et.INSIDE_AREA,rt)}else if(arguments.length===3){var nt=arguments[0],lt=arguments[1],ut=arguments[2];this._component=nt,this._segIndex=lt,this._pt=ut}},staticAccessors$38={INSIDE_AREA:{configurable:!0}};GeometryLocation.prototype.isInsideArea=function(){return this._segIndex===GeometryLocation.INSIDE_AREA};GeometryLocation.prototype.getCoordinate=function(){return this._pt};GeometryLocation.prototype.getGeometryComponent=function(){return this._component};GeometryLocation.prototype.getSegmentIndex=function(){return this._segIndex};GeometryLocation.prototype.interfaces_=function(){return[]};GeometryLocation.prototype.getClass=function(){return GeometryLocation};staticAccessors$38.INSIDE_AREA.get=function(){return-1};Object.defineProperties(GeometryLocation,staticAccessors$38);var PointExtracter=function(tt){this._pts=tt||null};PointExtracter.prototype.filter=function(tt){tt instanceof Point$3&&this._pts.add(tt)};PointExtracter.prototype.interfaces_=function(){return[GeometryFilter]};PointExtracter.prototype.getClass=function(){return PointExtracter};PointExtracter.getPoints=function(){if(arguments.length===1){var tt=arguments[0];return tt instanceof Point$3?Collections.singletonList(tt):PointExtracter.getPoints(tt,new ArrayList)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];return rt instanceof Point$3?nt.add(rt):rt instanceof GeometryCollection&&rt.apply(new PointExtracter(nt)),nt}};var ConnectedElementLocationFilter=function(){this._locations=null;var tt=arguments[0];this._locations=tt};ConnectedElementLocationFilter.prototype.filter=function(tt){(tt instanceof Point$3||tt instanceof LineString||tt instanceof Polygon)&&this._locations.add(new GeometryLocation(tt,0,tt.getCoordinate()))};ConnectedElementLocationFilter.prototype.interfaces_=function(){return[GeometryFilter]};ConnectedElementLocationFilter.prototype.getClass=function(){return ConnectedElementLocationFilter};ConnectedElementLocationFilter.getLocations=function(tt){var rt=new ArrayList;return tt.apply(new ConnectedElementLocationFilter(rt)),rt};var DistanceOp=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new PointLocator,this._minDistanceLocation=null,this._minDistance=Double.MAX_VALUE,arguments.length===2){var tt=arguments[0],rt=arguments[1];this._geom=[tt,rt],this._terminateDistance=0}else if(arguments.length===3){var nt=arguments[0],lt=arguments[1],ut=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=nt,this._geom[1]=lt,this._terminateDistance=ut}};DistanceOp.prototype.computeContainmentDistance=function(){var tt=this;if(arguments.length===0){var rt=new Array(2).fill(null);if(this.computeContainmentDistance(0,rt),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,rt)}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1],ut=1-nt,dt=PolygonExtracter.getPolygons(this._geom[nt]);if(dt.size()>0){var pt=ConnectedElementLocationFilter.getLocations(this._geom[ut]);if(this.computeContainmentDistance(pt,dt,lt),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[ut]=lt[0],this._minDistanceLocation[nt]=lt[1],null}}else if(arguments.length===3){if(arguments[2]instanceof Array&&hasInterface(arguments[0],List)&&hasInterface(arguments[1],List)){for(var ht=arguments[0],mt=arguments[1],xt=arguments[2],Mt=0;Mt<ht.size();Mt++)for(var vt=ht.get(Mt),Ot=0;Ot<mt.size();Ot++)if(tt.computeContainmentDistance(vt,mt.get(Ot),xt),tt._minDistance<=tt._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof GeometryLocation&&arguments[1]instanceof Polygon){var At=arguments[0],Rt=arguments[1],zt=arguments[2],Tt=At.getCoordinate();if(Location.EXTERIOR!==this._ptLocator.locate(Tt,Rt))return this._minDistance=0,zt[0]=At,zt[1]=new GeometryLocation(Rt,Tt),null}}};DistanceOp.prototype.computeMinDistanceLinesPoints=function(tt,rt,nt){for(var lt=this,ut=0;ut<tt.size();ut++)for(var dt=tt.get(ut),pt=0;pt<rt.size();pt++){var ht=rt.get(pt);if(lt.computeMinDistance(dt,ht,nt),lt._minDistance<=lt._terminateDistance)return null}};DistanceOp.prototype.computeFacetDistance=function(){var tt=new Array(2).fill(null),rt=LinearComponentExtracter.getLines(this._geom[0]),nt=LinearComponentExtracter.getLines(this._geom[1]),lt=PointExtracter.getPoints(this._geom[0]),ut=PointExtracter.getPoints(this._geom[1]);if(this.computeMinDistanceLines(rt,nt,tt),this.updateMinDistance(tt,!1),this._minDistance<=this._terminateDistance||(tt[0]=null,tt[1]=null,this.computeMinDistanceLinesPoints(rt,ut,tt),this.updateMinDistance(tt,!1),this._minDistance<=this._terminateDistance)||(tt[0]=null,tt[1]=null,this.computeMinDistanceLinesPoints(nt,lt,tt),this.updateMinDistance(tt,!0),this._minDistance<=this._terminateDistance))return null;tt[0]=null,tt[1]=null,this.computeMinDistancePoints(lt,ut,tt),this.updateMinDistance(tt,!1)};DistanceOp.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation};DistanceOp.prototype.updateMinDistance=function(tt,rt){if(tt[0]===null)return null;rt?(this._minDistanceLocation[0]=tt[1],this._minDistanceLocation[1]=tt[0]):(this._minDistanceLocation[0]=tt[0],this._minDistanceLocation[1]=tt[1])};DistanceOp.prototype.nearestPoints=function(){this.computeMinDistance();var tt=[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()];return tt};DistanceOp.prototype.computeMinDistance=function(){var tt=this;if(arguments.length===0){if(this._minDistanceLocation!==null||(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance))return null;this.computeFacetDistance()}else if(arguments.length===3){if(arguments[2]instanceof Array&&arguments[0]instanceof LineString&&arguments[1]instanceof Point$3){var rt=arguments[0],nt=arguments[1],lt=arguments[2];if(rt.getEnvelopeInternal().distance(nt.getEnvelopeInternal())>this._minDistance)return null;for(var ut=rt.getCoordinates(),dt=nt.getCoordinate(),pt=0;pt<ut.length-1;pt++){var ht=CGAlgorithms.distancePointLine(dt,ut[pt],ut[pt+1]);if(ht<tt._minDistance){tt._minDistance=ht;var mt=new LineSegment(ut[pt],ut[pt+1]),xt=mt.closestPoint(dt);lt[0]=new GeometryLocation(rt,pt,xt),lt[1]=new GeometryLocation(nt,0,dt)}if(tt._minDistance<=tt._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof LineString&&arguments[1]instanceof LineString){var Mt=arguments[0],vt=arguments[1],Ot=arguments[2];if(Mt.getEnvelopeInternal().distance(vt.getEnvelopeInternal())>this._minDistance)return null;for(var At=Mt.getCoordinates(),Rt=vt.getCoordinates(),zt=0;zt<At.length-1;zt++)for(var Tt=0;Tt<Rt.length-1;Tt++){var Ct=CGAlgorithms.distanceLineLine(At[zt],At[zt+1],Rt[Tt],Rt[Tt+1]);if(Ct<tt._minDistance){tt._minDistance=Ct;var It=new LineSegment(At[zt],At[zt+1]),Dt=new LineSegment(Rt[Tt],Rt[Tt+1]),kt=It.closestPoints(Dt);Ot[0]=new GeometryLocation(Mt,zt,kt[0]),Ot[1]=new GeometryLocation(vt,Tt,kt[1])}if(tt._minDistance<=tt._terminateDistance)return null}}}};DistanceOp.prototype.computeMinDistancePoints=function(tt,rt,nt){for(var lt=this,ut=0;ut<tt.size();ut++)for(var dt=tt.get(ut),pt=0;pt<rt.size();pt++){var ht=rt.get(pt),mt=dt.getCoordinate().distance(ht.getCoordinate());if(mt<lt._minDistance&&(lt._minDistance=mt,nt[0]=new GeometryLocation(dt,0,dt.getCoordinate()),nt[1]=new GeometryLocation(ht,0,ht.getCoordinate())),lt._minDistance<=lt._terminateDistance)return null}};DistanceOp.prototype.distance=function(){if(this._geom[0]===null||this._geom[1]===null)throw new IllegalArgumentException("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)};DistanceOp.prototype.computeMinDistanceLines=function(tt,rt,nt){for(var lt=this,ut=0;ut<tt.size();ut++)for(var dt=tt.get(ut),pt=0;pt<rt.size();pt++){var ht=rt.get(pt);if(lt.computeMinDistance(dt,ht,nt),lt._minDistance<=lt._terminateDistance)return null}};DistanceOp.prototype.interfaces_=function(){return[]};DistanceOp.prototype.getClass=function(){return DistanceOp};DistanceOp.distance=function(tt,rt){var nt=new DistanceOp(tt,rt);return nt.distance()};DistanceOp.isWithinDistance=function(tt,rt,nt){var lt=new DistanceOp(tt,rt,nt);return lt.distance()<=nt};DistanceOp.nearestPoints=function(tt,rt){var nt=new DistanceOp(tt,rt);return nt.nearestPoints()};var PointPairDistance$2=function(){this._pt=[new Coordinate,new Coordinate],this._distance=Double.NaN,this._isNull=!0};PointPairDistance$2.prototype.getCoordinates=function(){return this._pt};PointPairDistance$2.prototype.getCoordinate=function(tt){return this._pt[tt]};PointPairDistance$2.prototype.setMinimum=function(){if(arguments.length===1){var tt=arguments[0];this.setMinimum(tt._pt[0],tt._pt[1])}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];if(this._isNull)return this.initialize(rt,nt),null;var lt=rt.distance(nt);lt<this._distance&&this.initialize(rt,nt,lt)}};PointPairDistance$2.prototype.initialize=function(){if(arguments.length===0)this._isNull=!0;else if(arguments.length===2){var tt=arguments[0],rt=arguments[1];this._pt[0].setCoordinate(tt),this._pt[1].setCoordinate(rt),this._distance=tt.distance(rt),this._isNull=!1}else if(arguments.length===3){var nt=arguments[0],lt=arguments[1],ut=arguments[2];this._pt[0].setCoordinate(nt),this._pt[1].setCoordinate(lt),this._distance=ut,this._isNull=!1}};PointPairDistance$2.prototype.toString=function(){return WKTWriter.toLineString(this._pt[0],this._pt[1])};PointPairDistance$2.prototype.getDistance=function(){return this._distance};PointPairDistance$2.prototype.setMaximum=function(){if(arguments.length===1){var tt=arguments[0];this.setMaximum(tt._pt[0],tt._pt[1])}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1];if(this._isNull)return this.initialize(rt,nt),null;var lt=rt.distance(nt);lt>this._distance&&this.initialize(rt,nt,lt)}};PointPairDistance$2.prototype.interfaces_=function(){return[]};PointPairDistance$2.prototype.getClass=function(){return PointPairDistance$2};var DistanceToPoint=function(){};DistanceToPoint.prototype.interfaces_=function(){return[]};DistanceToPoint.prototype.getClass=function(){return DistanceToPoint};DistanceToPoint.computeDistance=function(){if(arguments[2]instanceof PointPairDistance$2&&arguments[0]instanceof LineString&&arguments[1]instanceof Coordinate)for(var tt=arguments[0],rt=arguments[1],nt=arguments[2],lt=new LineSegment,ut=tt.getCoordinates(),dt=0;dt<ut.length-1;dt++){lt.setCoordinates(ut[dt],ut[dt+1]);var pt=lt.closestPoint(rt);nt.setMinimum(pt,rt)}else if(arguments[2]instanceof PointPairDistance$2&&arguments[0]instanceof Polygon&&arguments[1]instanceof Coordinate){var ht=arguments[0],mt=arguments[1],xt=arguments[2];DistanceToPoint.computeDistance(ht.getExteriorRing(),mt,xt);for(var Mt=0;Mt<ht.getNumInteriorRing();Mt++)DistanceToPoint.computeDistance(ht.getInteriorRingN(Mt),mt,xt)}else if(arguments[2]instanceof PointPairDistance$2&&arguments[0]instanceof Geometry&&arguments[1]instanceof Coordinate){var vt=arguments[0],Ot=arguments[1],At=arguments[2];if(vt instanceof LineString)DistanceToPoint.computeDistance(vt,Ot,At);else if(vt instanceof Polygon)DistanceToPoint.computeDistance(vt,Ot,At);else if(vt instanceof GeometryCollection)for(var Rt=vt,zt=0;zt<Rt.getNumGeometries();zt++){var Tt=Rt.getGeometryN(zt);DistanceToPoint.computeDistance(Tt,Ot,At)}else At.setMinimum(vt.getCoordinate(),Ot)}else if(arguments[2]instanceof PointPairDistance$2&&arguments[0]instanceof LineSegment&&arguments[1]instanceof Coordinate){var Ct=arguments[0],It=arguments[1],Dt=arguments[2],kt=Ct.closestPoint(It);Dt.setMinimum(kt,It)}};var DiscreteHausdorffDistance=function(){this._g0=null,this._g1=null,this._ptDist=new PointPairDistance$2,this._densifyFrac=0;var tt=arguments[0],rt=arguments[1];this._g0=tt,this._g1=rt},staticAccessors$39={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};DiscreteHausdorffDistance.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()};DiscreteHausdorffDistance.prototype.setDensifyFraction=function(tt){if(tt>1||tt<=0)throw new IllegalArgumentException("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=tt};DiscreteHausdorffDistance.prototype.compute=function(tt,rt){this.computeOrientedDistance(tt,rt,this._ptDist),this.computeOrientedDistance(rt,tt,this._ptDist)};DiscreteHausdorffDistance.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()};DiscreteHausdorffDistance.prototype.computeOrientedDistance=function(tt,rt,nt){var lt=new MaxPointDistanceFilter$1(rt);if(tt.apply(lt),nt.setMaximum(lt.getMaxPointDistance()),this._densifyFrac>0){var ut=new MaxDensifiedByFractionDistanceFilter(rt,this._densifyFrac);tt.apply(ut),nt.setMaximum(ut.getMaxPointDistance())}};DiscreteHausdorffDistance.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()};DiscreteHausdorffDistance.prototype.interfaces_=function(){return[]};DiscreteHausdorffDistance.prototype.getClass=function(){return DiscreteHausdorffDistance};DiscreteHausdorffDistance.distance=function(){if(arguments.length===2){var tt=arguments[0],rt=arguments[1],nt=new DiscreteHausdorffDistance(tt,rt);return nt.distance()}else if(arguments.length===3){var lt=arguments[0],ut=arguments[1],dt=arguments[2],pt=new DiscreteHausdorffDistance(lt,ut);return pt.setDensifyFraction(dt),pt.distance()}};staticAccessors$39.MaxPointDistanceFilter.get=function(){return MaxPointDistanceFilter$1};staticAccessors$39.MaxDensifiedByFractionDistanceFilter.get=function(){return MaxDensifiedByFractionDistanceFilter};Object.defineProperties(DiscreteHausdorffDistance,staticAccessors$39);var MaxPointDistanceFilter$1=function(){this._maxPtDist=new PointPairDistance$2,this._minPtDist=new PointPairDistance$2,this._euclideanDist=new DistanceToPoint,this._geom=null;var tt=arguments[0];this._geom=tt};MaxPointDistanceFilter$1.prototype.filter=function(tt){this._minPtDist.initialize(),DistanceToPoint.computeDistance(this._geom,tt,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)};MaxPointDistanceFilter$1.prototype.getMaxPointDistance=function(){return this._maxPtDist};MaxPointDistanceFilter$1.prototype.interfaces_=function(){return[CoordinateFilter]};MaxPointDistanceFilter$1.prototype.getClass=function(){return MaxPointDistanceFilter$1};var MaxDensifiedByFractionDistanceFilter=function(){this._maxPtDist=new PointPairDistance$2,this._minPtDist=new PointPairDistance$2,this._geom=null,this._numSubSegs=0;var tt=arguments[0],rt=arguments[1];this._geom=tt,this._numSubSegs=Math.trunc(Math.round(1/rt))};MaxDensifiedByFractionDistanceFilter.prototype.filter=function(tt,rt){var nt=this;if(rt===0)return null;for(var lt=tt.getCoordinate(rt-1),ut=tt.getCoordinate(rt),dt=(ut.x-lt.x)/this._numSubSegs,pt=(ut.y-lt.y)/this._numSubSegs,ht=0;ht<this._numSubSegs;ht++){var mt=lt.x+ht*dt,xt=lt.y+ht*pt,Mt=new Coordinate(mt,xt);nt._minPtDist.initialize(),DistanceToPoint.computeDistance(nt._geom,Mt,nt._minPtDist),nt._maxPtDist.setMaximum(nt._minPtDist)}};MaxDensifiedByFractionDistanceFilter.prototype.isDone=function(){return!1};MaxDensifiedByFractionDistanceFilter.prototype.isGeometryChanged=function(){return!1};MaxDensifiedByFractionDistanceFilter.prototype.getMaxPointDistance=function(){return this._maxPtDist};MaxDensifiedByFractionDistanceFilter.prototype.interfaces_=function(){return[CoordinateSequenceFilter]};MaxDensifiedByFractionDistanceFilter.prototype.getClass=function(){return MaxDensifiedByFractionDistanceFilter};var BufferDistanceValidator=function(tt,rt,nt){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=tt||null,this._bufDistance=rt||null,this._result=nt||null},staticAccessors$37={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};BufferDistanceValidator.prototype.checkMaximumDistance=function(tt,rt,nt){var lt=new DiscreteHausdorffDistance(rt,tt);if(lt.setDensifyFraction(.25),this._maxDistanceFound=lt.orientedDistance(),this._maxDistanceFound>nt){this._isValid=!1;var ut=lt.getCoordinates();this._errorLocation=ut[1],this._errorIndicator=tt.getFactory().createLineString(ut),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+WKTWriter.toLineString(ut[0],ut[1])+")"}};BufferDistanceValidator.prototype.isValid=function(){var tt=Math.abs(this._bufDistance),rt=BufferDistanceValidator.MAX_DISTANCE_DIFF_FRAC*tt;return this._minValidDistance=tt-rt,this._maxValidDistance=tt+rt,this._input.isEmpty()||this._result.isEmpty()?!0:(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),BufferDistanceValidator.VERBOSE&&System.out.println("Min Dist= "+this._minDistanceFound+"  err= "+(1-this._minDistanceFound/this._bufDistance)+"  Max Dist= "+this._maxDistanceFound+"  err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)};BufferDistanceValidator.prototype.checkNegativeValid=function(){if(!(this._input instanceof Polygon||this._input instanceof MultiPolygon||this._input instanceof GeometryCollection))return null;var tt=this.getPolygonLines(this._input);if(this.checkMinimumDistance(tt,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(tt,this._result,this._maxValidDistance)};BufferDistanceValidator.prototype.getErrorIndicator=function(){return this._errorIndicator};BufferDistanceValidator.prototype.checkMinimumDistance=function(tt,rt,nt){var lt=new DistanceOp(tt,rt,nt);if(this._minDistanceFound=lt.distance(),this._minDistanceFound<nt){this._isValid=!1;var ut=lt.nearestPoints();this._errorLocation=lt.nearestPoints()[1],this._errorIndicator=tt.getFactory().createLineString(ut),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+WKTWriter.toLineString(ut[0],ut[1])+" )"}};BufferDistanceValidator.prototype.checkPositiveValid=function(){var tt=this._result.getBoundary();if(this.checkMinimumDistance(this._input,tt,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,tt,this._maxValidDistance)};BufferDistanceValidator.prototype.getErrorLocation=function(){return this._errorLocation};BufferDistanceValidator.prototype.getPolygonLines=function(tt){for(var rt=new ArrayList,nt=new LinearComponentExtracter(rt),lt=PolygonExtracter.getPolygons(tt),ut=lt.iterator();ut.hasNext();){var dt=ut.next();dt.apply(nt)}return tt.getFactory().buildGeometry(rt)};BufferDistanceValidator.prototype.getErrorMessage=function(){return this._errMsg};BufferDistanceValidator.prototype.interfaces_=function(){return[]};BufferDistanceValidator.prototype.getClass=function(){return BufferDistanceValidator};staticAccessors$37.VERBOSE.get=function(){return!1};staticAccessors$37.MAX_DISTANCE_DIFF_FRAC.get=function(){return .012};Object.defineProperties(BufferDistanceValidator,staticAccessors$37);var BufferResultValidator=function(tt,rt,nt){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=tt||null,this._distance=rt||null,this._result=nt||null},staticAccessors$40={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};BufferResultValidator.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid};BufferResultValidator.prototype.checkEnvelope=function(){if(this._distance<0)return null;var tt=this._distance*BufferResultValidator.MAX_ENV_DIFF_FRAC;tt===0&&(tt=.001);var rt=new Envelope(this._input.getEnvelopeInternal());rt.expandBy(this._distance);var nt=new Envelope(this._result.getEnvelopeInternal());nt.expandBy(tt),nt.contains(rt)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(nt)),this.report("Envelope")};BufferResultValidator.prototype.checkDistance=function(){var tt=new BufferDistanceValidator(this._input,this._distance,this._result);tt.isValid()||(this._isValid=!1,this._errorMsg=tt.getErrorMessage(),this._errorLocation=tt.getErrorLocation(),this._errorIndicator=tt.getErrorIndicator()),this.report("Distance")};BufferResultValidator.prototype.checkArea=function(){var tt=this._input.getArea(),rt=this._result.getArea();this._distance>0&&tt>rt&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&tt<rt&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")};BufferResultValidator.prototype.checkPolygonal=function(){this._result instanceof Polygon||this._result instanceof MultiPolygon||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")};BufferResultValidator.prototype.getErrorIndicator=function(){return this._errorIndicator};BufferResultValidator.prototype.getErrorLocation=function(){return this._errorLocation};BufferResultValidator.prototype.checkExpectedEmpty=function(){if(this._input.getDimension()>=2||this._distance>0)return null;this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),this.report("ExpectedEmpty")};BufferResultValidator.prototype.report=function(tt){if(!BufferResultValidator.VERBOSE)return null;System.out.println("Check "+tt+": "+(this._isValid?"passed":"FAILED"))};BufferResultValidator.prototype.getErrorMessage=function(){return this._errorMsg};BufferResultValidator.prototype.interfaces_=function(){return[]};BufferResultValidator.prototype.getClass=function(){return BufferResultValidator};BufferResultValidator.isValidMsg=function(tt,rt,nt){var lt=new BufferResultValidator(tt,rt,nt);return lt.isValid()?null:lt.getErrorMessage()};BufferResultValidator.isValid=function(tt,rt,nt){var lt=new BufferResultValidator(tt,rt,nt);return!!lt.isValid()};staticAccessors$40.VERBOSE.get=function(){return!1};staticAccessors$40.MAX_ENV_DIFF_FRAC.get=function(){return .012};Object.defineProperties(BufferResultValidator,staticAccessors$40);var BasicSegmentString=function(){this._pts=null,this._data=null;var tt=arguments[0],rt=arguments[1];this._pts=tt,this._data=rt};BasicSegmentString.prototype.getCoordinates=function(){return this._pts};BasicSegmentString.prototype.size=function(){return this._pts.length};BasicSegmentString.prototype.getCoordinate=function(tt){return this._pts[tt]};BasicSegmentString.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])};BasicSegmentString.prototype.getSegmentOctant=function(tt){return tt===this._pts.length-1?-1:Octant.octant(this.getCoordinate(tt),this.getCoordinate(tt+1))};BasicSegmentString.prototype.setData=function(tt){this._data=tt};BasicSegmentString.prototype.getData=function(){return this._data};BasicSegmentString.prototype.toString=function(){return WKTWriter.toLineString(new CoordinateArraySequence(this._pts))};BasicSegmentString.prototype.interfaces_=function(){return[SegmentString]};BasicSegmentString.prototype.getClass=function(){return BasicSegmentString};var InteriorIntersectionFinder=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new ArrayList,this._intersectionCount=0,this._keepIntersections=!0;var tt=arguments[0];this._li=tt,this._interiorIntersection=null};InteriorIntersectionFinder.prototype.getInteriorIntersection=function(){return this._interiorIntersection};InteriorIntersectionFinder.prototype.setCheckEndSegmentsOnly=function(tt){this._isCheckEndSegmentsOnly=tt};InteriorIntersectionFinder.prototype.getIntersectionSegments=function(){return this._intSegments};InteriorIntersectionFinder.prototype.count=function(){return this._intersectionCount};InteriorIntersectionFinder.prototype.getIntersections=function(){return this._intersections};InteriorIntersectionFinder.prototype.setFindAllIntersections=function(tt){this._findAllIntersections=tt};InteriorIntersectionFinder.prototype.setKeepIntersections=function(tt){this._keepIntersections=tt};InteriorIntersectionFinder.prototype.processIntersections=function(tt,rt,nt,lt){if(!this._findAllIntersections&&this.hasIntersection()||tt===nt&&rt===lt)return null;if(this._isCheckEndSegmentsOnly){var ut=this.isEndSegment(tt,rt)||this.isEndSegment(nt,lt);if(!ut)return null}var dt=tt.getCoordinates()[rt],pt=tt.getCoordinates()[rt+1],ht=nt.getCoordinates()[lt],mt=nt.getCoordinates()[lt+1];this._li.computeIntersection(dt,pt,ht,mt),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=dt,this._intSegments[1]=pt,this._intSegments[2]=ht,this._intSegments[3]=mt,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)};InteriorIntersectionFinder.prototype.isEndSegment=function(tt,rt){return rt===0||rt>=tt.size()-2};InteriorIntersectionFinder.prototype.hasIntersection=function(){return this._interiorIntersection!==null};InteriorIntersectionFinder.prototype.isDone=function(){return this._findAllIntersections?!1:this._interiorIntersection!==null};InteriorIntersectionFinder.prototype.interfaces_=function(){return[SegmentIntersector]};InteriorIntersectionFinder.prototype.getClass=function(){return InteriorIntersectionFinder};InteriorIntersectionFinder.createAllIntersectionsFinder=function(tt){var rt=new InteriorIntersectionFinder(tt);return rt.setFindAllIntersections(!0),rt};InteriorIntersectionFinder.createAnyIntersectionFinder=function(tt){return new InteriorIntersectionFinder(tt)};InteriorIntersectionFinder.createIntersectionCounter=function(tt){var rt=new InteriorIntersectionFinder(tt);return rt.setFindAllIntersections(!0),rt.setKeepIntersections(!1),rt};var FastNodingValidator=function(){this._li=new RobustLineIntersector,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var tt=arguments[0];this._segStrings=tt};FastNodingValidator.prototype.execute=function(){if(this._segInt!==null)return null;this.checkInteriorIntersections()};FastNodingValidator.prototype.getIntersections=function(){return this._segInt.getIntersections()};FastNodingValidator.prototype.isValid=function(){return this.execute(),this._isValid};FastNodingValidator.prototype.setFindAllIntersections=function(tt){this._findAllIntersections=tt};FastNodingValidator.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new InteriorIntersectionFinder(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var tt=new MCIndexNoder;if(tt.setSegmentIntersector(this._segInt),tt.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null};FastNodingValidator.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new TopologyException(this.getErrorMessage(),this._segInt.getInteriorIntersection())};FastNodingValidator.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var tt=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+WKTWriter.toLineString(tt[0],tt[1])+" and "+WKTWriter.toLineString(tt[2],tt[3])};FastNodingValidator.prototype.interfaces_=function(){return[]};FastNodingValidator.prototype.getClass=function(){return FastNodingValidator};FastNodingValidator.computeIntersections=function(tt){var rt=new FastNodingValidator(tt);return rt.setFindAllIntersections(!0),rt.isValid(),rt.getIntersections()};var EdgeNodingValidator=function et(){this._nv=null;var tt=arguments[0];this._nv=new FastNodingValidator(et.toSegmentStrings(tt))};EdgeNodingValidator.prototype.checkValid=function(){this._nv.checkValid()};EdgeNodingValidator.prototype.interfaces_=function(){return[]};EdgeNodingValidator.prototype.getClass=function(){return EdgeNodingValidator};EdgeNodingValidator.toSegmentStrings=function(tt){for(var rt=new ArrayList,nt=tt.iterator();nt.hasNext();){var lt=nt.next();rt.add(new BasicSegmentString(lt.getCoordinates(),lt))}return rt};EdgeNodingValidator.checkValid=function(tt){var rt=new EdgeNodingValidator(tt);rt.checkValid()};var GeometryCollectionMapper=function(tt){this._mapOp=tt};GeometryCollectionMapper.prototype.map=function(tt){for(var rt=this,nt=new ArrayList,lt=0;lt<tt.getNumGeometries();lt++){var ut=rt._mapOp.map(tt.getGeometryN(lt));ut.isEmpty()||nt.add(ut)}return tt.getFactory().createGeometryCollection(GeometryFactory.toGeometryArray(nt))};GeometryCollectionMapper.prototype.interfaces_=function(){return[]};GeometryCollectionMapper.prototype.getClass=function(){return GeometryCollectionMapper};GeometryCollectionMapper.map=function(tt,rt){var nt=new GeometryCollectionMapper(rt);return nt.map(tt)};var LineBuilder=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new ArrayList,this._resultLineList=new ArrayList;var tt=arguments[0],rt=arguments[1],nt=arguments[2];this._op=tt,this._geometryFactory=rt,this._ptLocator=nt};LineBuilder.prototype.collectLines=function(tt){for(var rt=this,nt=this._op.getGraph().getEdgeEnds().iterator();nt.hasNext();){var lt=nt.next();rt.collectLineEdge(lt,tt,rt._lineEdgesList),rt.collectBoundaryTouchEdge(lt,tt,rt._lineEdgesList)}};LineBuilder.prototype.labelIsolatedLine=function(tt,rt){var nt=this._ptLocator.locate(tt.getCoordinate(),this._op.getArgGeometry(rt));tt.getLabel().setLocation(rt,nt)};LineBuilder.prototype.build=function(tt){return this.findCoveredLineEdges(),this.collectLines(tt),this.buildLines(tt),this._resultLineList};LineBuilder.prototype.collectLineEdge=function(tt,rt,nt){var lt=tt.getLabel(),ut=tt.getEdge();tt.isLineEdge()&&!tt.isVisited()&&OverlayOp.isResultOfOp(lt,rt)&&!ut.isCovered()&&(nt.add(ut),tt.setVisitedEdge(!0))};LineBuilder.prototype.findCoveredLineEdges=function(){for(var tt=this,rt=this._op.getGraph().getNodes().iterator();rt.hasNext();){var nt=rt.next();nt.getEdges().findCoveredLineEdges()}for(var lt=this._op.getGraph().getEdgeEnds().iterator();lt.hasNext();){var ut=lt.next(),dt=ut.getEdge();if(ut.isLineEdge()&&!dt.isCoveredSet()){var pt=tt._op.isCoveredByA(ut.getCoordinate());dt.setCovered(pt)}}};LineBuilder.prototype.labelIsolatedLines=function(tt){for(var rt=this,nt=tt.iterator();nt.hasNext();){var lt=nt.next(),ut=lt.getLabel();lt.isIsolated()&&(ut.isNull(0)?rt.labelIsolatedLine(lt,0):rt.labelIsolatedLine(lt,1))}};LineBuilder.prototype.buildLines=function(tt){for(var rt=this,nt=this._lineEdgesList.iterator();nt.hasNext();){var lt=nt.next(),ut=rt._geometryFactory.createLineString(lt.getCoordinates());rt._resultLineList.add(ut),lt.setInResult(!0)}};LineBuilder.prototype.collectBoundaryTouchEdge=function(tt,rt,nt){var lt=tt.getLabel();if(tt.isLineEdge()||tt.isVisited()||tt.isInteriorAreaEdge()||tt.getEdge().isInResult())return null;Assert.isTrue(!(tt.isInResult()||tt.getSym().isInResult())||!tt.getEdge().isInResult()),OverlayOp.isResultOfOp(lt,rt)&&rt===OverlayOp.INTERSECTION&&(nt.add(tt.getEdge()),tt.setVisitedEdge(!0))};LineBuilder.prototype.interfaces_=function(){return[]};LineBuilder.prototype.getClass=function(){return LineBuilder};var PointBuilder=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new ArrayList;var tt=arguments[0],rt=arguments[1];this._op=tt,this._geometryFactory=rt};PointBuilder.prototype.filterCoveredNodeToPoint=function(tt){var rt=tt.getCoordinate();if(!this._op.isCoveredByLA(rt)){var nt=this._geometryFactory.createPoint(rt);this._resultPointList.add(nt)}};PointBuilder.prototype.extractNonCoveredResultNodes=function(tt){for(var rt=this,nt=this._op.getGraph().getNodes().iterator();nt.hasNext();){var lt=nt.next();if(!lt.isInResult()&&!lt.isIncidentEdgeInResult()&&(lt.getEdges().getDegree()===0||tt===OverlayOp.INTERSECTION)){var ut=lt.getLabel();OverlayOp.isResultOfOp(ut,tt)&&rt.filterCoveredNodeToPoint(lt)}}};PointBuilder.prototype.build=function(tt){return this.extractNonCoveredResultNodes(tt),this._resultPointList};PointBuilder.prototype.interfaces_=function(){return[]};PointBuilder.prototype.getClass=function(){return PointBuilder};var GeometryTransformer=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};GeometryTransformer.prototype.transformPoint=function(tt,rt){return this._factory.createPoint(this.transformCoordinates(tt.getCoordinateSequence(),tt))};GeometryTransformer.prototype.transformPolygon=function(tt,rt){var nt=this,lt=!0,ut=this.transformLinearRing(tt.getExteriorRing(),tt);(ut===null||!(ut instanceof LinearRing)||ut.isEmpty())&&(lt=!1);for(var dt=new ArrayList,pt=0;pt<tt.getNumInteriorRing();pt++){var ht=nt.transformLinearRing(tt.getInteriorRingN(pt),tt);ht===null||ht.isEmpty()||(ht instanceof LinearRing||(lt=!1),dt.add(ht))}if(lt)return this._factory.createPolygon(ut,dt.toArray([]));var mt=new ArrayList;return ut!==null&&mt.add(ut),mt.addAll(dt),this._factory.buildGeometry(mt)};GeometryTransformer.prototype.createCoordinateSequence=function(tt){return this._factory.getCoordinateSequenceFactory().create(tt)};GeometryTransformer.prototype.getInputGeometry=function(){return this._inputGeom};GeometryTransformer.prototype.transformMultiLineString=function(tt,rt){for(var nt=this,lt=new ArrayList,ut=0;ut<tt.getNumGeometries();ut++){var dt=nt.transformLineString(tt.getGeometryN(ut),tt);dt!==null&&(dt.isEmpty()||lt.add(dt))}return this._factory.buildGeometry(lt)};GeometryTransformer.prototype.transformCoordinates=function(tt,rt){return this.copy(tt)};GeometryTransformer.prototype.transformLineString=function(tt,rt){return this._factory.createLineString(this.transformCoordinates(tt.getCoordinateSequence(),tt))};GeometryTransformer.prototype.transformMultiPoint=function(tt,rt){for(var nt=this,lt=new ArrayList,ut=0;ut<tt.getNumGeometries();ut++){var dt=nt.transformPoint(tt.getGeometryN(ut),tt);dt!==null&&(dt.isEmpty()||lt.add(dt))}return this._factory.buildGeometry(lt)};GeometryTransformer.prototype.transformMultiPolygon=function(tt,rt){for(var nt=this,lt=new ArrayList,ut=0;ut<tt.getNumGeometries();ut++){var dt=nt.transformPolygon(tt.getGeometryN(ut),tt);dt!==null&&(dt.isEmpty()||lt.add(dt))}return this._factory.buildGeometry(lt)};GeometryTransformer.prototype.copy=function(tt){return tt.copy()};GeometryTransformer.prototype.transformGeometryCollection=function(tt,rt){for(var nt=this,lt=new ArrayList,ut=0;ut<tt.getNumGeometries();ut++){var dt=nt.transform(tt.getGeometryN(ut));dt!==null&&(nt._pruneEmptyGeometry&&dt.isEmpty()||lt.add(dt))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(GeometryFactory.toGeometryArray(lt)):this._factory.buildGeometry(lt)};GeometryTransformer.prototype.transform=function(tt){if(this._inputGeom=tt,this._factory=tt.getFactory(),tt instanceof Point$3)return this.transformPoint(tt,null);if(tt instanceof MultiPoint)return this.transformMultiPoint(tt,null);if(tt instanceof LinearRing)return this.transformLinearRing(tt,null);if(tt instanceof LineString)return this.transformLineString(tt,null);if(tt instanceof MultiLineString)return this.transformMultiLineString(tt,null);if(tt instanceof Polygon)return this.transformPolygon(tt,null);if(tt instanceof MultiPolygon)return this.transformMultiPolygon(tt,null);if(tt instanceof GeometryCollection)return this.transformGeometryCollection(tt,null);throw new IllegalArgumentException("Unknown Geometry subtype: "+tt.getClass().getName())};GeometryTransformer.prototype.transformLinearRing=function(tt,rt){var nt=this.transformCoordinates(tt.getCoordinateSequence(),tt);if(nt===null)return this._factory.createLinearRing(null);var lt=nt.size();return lt>0&&lt<4&&!this._preserveType?this._factory.createLineString(nt):this._factory.createLinearRing(nt)};GeometryTransformer.prototype.interfaces_=function(){return[]};GeometryTransformer.prototype.getClass=function(){return GeometryTransformer};var LineStringSnapper=function et(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new LineSegment,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof LineString&&typeof arguments[1]=="number"){var tt=arguments[0],rt=arguments[1];et.call(this,tt.getCoordinates(),rt)}else if(arguments[0]instanceof Array&&typeof arguments[1]=="number"){var nt=arguments[0],lt=arguments[1];this._srcPts=nt,this._isClosed=et.isClosed(nt),this._snapTolerance=lt}};LineStringSnapper.prototype.snapVertices=function(tt,rt){for(var nt=this,lt=this._isClosed?tt.size()-1:tt.size(),ut=0;ut<lt;ut++){var dt=tt.get(ut),pt=nt.findSnapForVertex(dt,rt);pt!==null&&(tt.set(ut,new Coordinate(pt)),ut===0&&nt._isClosed&&tt.set(tt.size()-1,new Coordinate(pt)))}};LineStringSnapper.prototype.findSnapForVertex=function(tt,rt){for(var nt=this,lt=0;lt<rt.length;lt++){if(tt.equals2D(rt[lt]))return null;if(tt.distance(rt[lt])<nt._snapTolerance)return rt[lt]}return null};LineStringSnapper.prototype.snapTo=function(tt){var rt=new CoordinateList(this._srcPts);this.snapVertices(rt,tt),this.snapSegments(rt,tt);var nt=rt.toCoordinateArray();return nt};LineStringSnapper.prototype.snapSegments=function(tt,rt){var nt=this;if(rt.length===0)return null;var lt=rt.length;rt[0].equals2D(rt[rt.length-1])&&(lt=rt.length-1);for(var ut=0;ut<lt;ut++){var dt=rt[ut],pt=nt.findSegmentIndexToSnap(dt,tt);pt>=0&&tt.add(pt+1,new Coordinate(dt),!1)}};LineStringSnapper.prototype.findSegmentIndexToSnap=function(tt,rt){for(var nt=this,lt=Double.MAX_VALUE,ut=-1,dt=0;dt<rt.size()-1;dt++){if(nt._seg.p0=rt.get(dt),nt._seg.p1=rt.get(dt+1),nt._seg.p0.equals2D(tt)||nt._seg.p1.equals2D(tt)){if(nt._allowSnappingToSourceVertices)continue;return-1}var pt=nt._seg.distance(tt);pt<nt._snapTolerance&&pt<lt&&(lt=pt,ut=dt)}return ut};LineStringSnapper.prototype.setAllowSnappingToSourceVertices=function(tt){this._allowSnappingToSourceVertices=tt};LineStringSnapper.prototype.interfaces_=function(){return[]};LineStringSnapper.prototype.getClass=function(){return LineStringSnapper};LineStringSnapper.isClosed=function(tt){return tt.length<=1?!1:tt[0].equals2D(tt[tt.length-1])};var GeometrySnapper=function(tt){this._srcGeom=tt||null},staticAccessors$41={SNAP_PRECISION_FACTOR:{configurable:!0}};GeometrySnapper.prototype.snapTo=function(tt,rt){var nt=this.extractTargetCoordinates(tt),lt=new SnapTransformer(rt,nt);return lt.transform(this._srcGeom)};GeometrySnapper.prototype.snapToSelf=function(tt,rt){var nt=this.extractTargetCoordinates(this._srcGeom),lt=new SnapTransformer(tt,nt,!0),ut=lt.transform(this._srcGeom),dt=ut;return rt&&hasInterface(dt,Polygonal)&&(dt=ut.buffer(0)),dt};GeometrySnapper.prototype.computeSnapTolerance=function(tt){var rt=this.computeMinimumSegmentLength(tt),nt=rt/10;return nt};GeometrySnapper.prototype.extractTargetCoordinates=function(tt){for(var rt=new TreeSet,nt=tt.getCoordinates(),lt=0;lt<nt.length;lt++)rt.add(nt[lt]);return rt.toArray(new Array(0).fill(null))};GeometrySnapper.prototype.computeMinimumSegmentLength=function(tt){for(var rt=Double.MAX_VALUE,nt=0;nt<tt.length-1;nt++){var lt=tt[nt].distance(tt[nt+1]);lt<rt&&(rt=lt)}return rt};GeometrySnapper.prototype.interfaces_=function(){return[]};GeometrySnapper.prototype.getClass=function(){return GeometrySnapper};GeometrySnapper.snap=function(tt,rt,nt){var lt=new Array(2).fill(null),ut=new GeometrySnapper(tt);lt[0]=ut.snapTo(rt,nt);var dt=new GeometrySnapper(rt);return lt[1]=dt.snapTo(lt[0],nt),lt};GeometrySnapper.computeOverlaySnapTolerance=function(){if(arguments.length===1){var tt=arguments[0],rt=GeometrySnapper.computeSizeBasedSnapTolerance(tt),nt=tt.getPrecisionModel();if(nt.getType()===PrecisionModel.FIXED){var lt=1/nt.getScale()*2/1.415;lt>rt&&(rt=lt)}return rt}else if(arguments.length===2){var ut=arguments[0],dt=arguments[1];return Math.min(GeometrySnapper.computeOverlaySnapTolerance(ut),GeometrySnapper.computeOverlaySnapTolerance(dt))}};GeometrySnapper.computeSizeBasedSnapTolerance=function(tt){var rt=tt.getEnvelopeInternal(),nt=Math.min(rt.getHeight(),rt.getWidth()),lt=nt*GeometrySnapper.SNAP_PRECISION_FACTOR;return lt};GeometrySnapper.snapToSelf=function(tt,rt,nt){var lt=new GeometrySnapper(tt);return lt.snapToSelf(rt,nt)};staticAccessors$41.SNAP_PRECISION_FACTOR.get=function(){return 1e-9};Object.defineProperties(GeometrySnapper,staticAccessors$41);var SnapTransformer=function(et){function tt(rt,nt,lt){et.call(this),this._snapTolerance=rt||null,this._snapPts=nt||null,this._isSelfSnap=lt!==void 0?lt:!1}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.snapLine=function(nt,lt){var ut=new LineStringSnapper(nt,this._snapTolerance);return ut.setAllowSnappingToSourceVertices(this._isSelfSnap),ut.snapTo(lt)},tt.prototype.transformCoordinates=function(nt,lt){var ut=nt.toCoordinateArray(),dt=this.snapLine(ut,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(dt)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(GeometryTransformer),CommonBits=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};CommonBits.prototype.getCommon=function(){return Double.longBitsToDouble(this._commonBits)};CommonBits.prototype.add=function(tt){var rt=Double.doubleToLongBits(tt);if(this._isFirst)return this._commonBits=rt,this._commonSignExp=CommonBits.signExpBits(this._commonBits),this._isFirst=!1,null;var nt=CommonBits.signExpBits(rt);if(nt!==this._commonSignExp)return this._commonBits=0,null;this._commonMantissaBitsCount=CommonBits.numCommonMostSigMantissaBits(this._commonBits,rt),this._commonBits=CommonBits.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))};CommonBits.prototype.toString=function(){if(arguments.length===1){var tt=arguments[0],rt=Double.longBitsToDouble(tt),nt=Double.toBinaryString(tt),lt="0000000000000000000000000000000000000000000000000000000000000000"+nt,ut=lt.substring(lt.length-64),dt=ut.substring(0,1)+"  "+ut.substring(1,12)+"(exp) "+ut.substring(12)+" [ "+rt+" ]";return dt}};CommonBits.prototype.interfaces_=function(){return[]};CommonBits.prototype.getClass=function(){return CommonBits};CommonBits.getBit=function(tt,rt){var nt=1<<rt;return tt&nt?1:0};CommonBits.signExpBits=function(tt){return tt>>52};CommonBits.zeroLowerBits=function(tt,rt){var nt=(1<<rt)-1,lt=~nt,ut=tt&lt;return ut};CommonBits.numCommonMostSigMantissaBits=function(tt,rt){for(var nt=0,lt=52;lt>=0;lt--){if(CommonBits.getBit(tt,lt)!==CommonBits.getBit(rt,lt))return nt;nt++}return 52};var CommonBitsRemover=function(){this._commonCoord=null,this._ccFilter=new CommonCoordinateFilter},staticAccessors$42={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};CommonBitsRemover.prototype.addCommonBits=function(tt){var rt=new Translater(this._commonCoord);tt.apply(rt),tt.geometryChanged()};CommonBitsRemover.prototype.removeCommonBits=function(tt){if(this._commonCoord.x===0&&this._commonCoord.y===0)return tt;var rt=new Coordinate(this._commonCoord);rt.x=-rt.x,rt.y=-rt.y;var nt=new Translater(rt);return tt.apply(nt),tt.geometryChanged(),tt};CommonBitsRemover.prototype.getCommonCoordinate=function(){return this._commonCoord};CommonBitsRemover.prototype.add=function(tt){tt.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()};CommonBitsRemover.prototype.interfaces_=function(){return[]};CommonBitsRemover.prototype.getClass=function(){return CommonBitsRemover};staticAccessors$42.CommonCoordinateFilter.get=function(){return CommonCoordinateFilter};staticAccessors$42.Translater.get=function(){return Translater};Object.defineProperties(CommonBitsRemover,staticAccessors$42);var CommonCoordinateFilter=function(){this._commonBitsX=new CommonBits,this._commonBitsY=new CommonBits};CommonCoordinateFilter.prototype.filter=function(tt){this._commonBitsX.add(tt.x),this._commonBitsY.add(tt.y)};CommonCoordinateFilter.prototype.getCommonCoordinate=function(){return new Coordinate(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())};CommonCoordinateFilter.prototype.interfaces_=function(){return[CoordinateFilter]};CommonCoordinateFilter.prototype.getClass=function(){return CommonCoordinateFilter};var Translater=function(){this.trans=null;var tt=arguments[0];this.trans=tt};Translater.prototype.filter=function(tt,rt){var nt=tt.getOrdinate(rt,0)+this.trans.x,lt=tt.getOrdinate(rt,1)+this.trans.y;tt.setOrdinate(rt,0,nt),tt.setOrdinate(rt,1,lt)};Translater.prototype.isDone=function(){return!1};Translater.prototype.isGeometryChanged=function(){return!0};Translater.prototype.interfaces_=function(){return[CoordinateSequenceFilter]};Translater.prototype.getClass=function(){return Translater};var SnapOverlayOp=function(tt,rt){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=tt,this._geom[1]=rt,this.computeSnapTolerance()};SnapOverlayOp.prototype.selfSnap=function(tt){var rt=new GeometrySnapper(tt),nt=rt.snapTo(tt,this._snapTolerance);return nt};SnapOverlayOp.prototype.removeCommonBits=function(tt){this._cbr=new CommonBitsRemover,this._cbr.add(tt[0]),this._cbr.add(tt[1]);var rt=new Array(2).fill(null);return rt[0]=this._cbr.removeCommonBits(tt[0].copy()),rt[1]=this._cbr.removeCommonBits(tt[1].copy()),rt};SnapOverlayOp.prototype.prepareResult=function(tt){return this._cbr.addCommonBits(tt),tt};SnapOverlayOp.prototype.getResultGeometry=function(tt){var rt=this.snap(this._geom),nt=OverlayOp.overlayOp(rt[0],rt[1],tt);return this.prepareResult(nt)};SnapOverlayOp.prototype.checkValid=function(tt){tt.isValid()||System.out.println("Snapped geometry is invalid")};SnapOverlayOp.prototype.computeSnapTolerance=function(){this._snapTolerance=GeometrySnapper.computeOverlaySnapTolerance(this._geom[0],this._geom[1])};SnapOverlayOp.prototype.snap=function(tt){var rt=this.removeCommonBits(tt),nt=GeometrySnapper.snap(rt[0],rt[1],this._snapTolerance);return nt};SnapOverlayOp.prototype.interfaces_=function(){return[]};SnapOverlayOp.prototype.getClass=function(){return SnapOverlayOp};SnapOverlayOp.overlayOp=function(tt,rt,nt){var lt=new SnapOverlayOp(tt,rt);return lt.getResultGeometry(nt)};SnapOverlayOp.union=function(tt,rt){return SnapOverlayOp.overlayOp(tt,rt,OverlayOp.UNION)};SnapOverlayOp.intersection=function(tt,rt){return SnapOverlayOp.overlayOp(tt,rt,OverlayOp.INTERSECTION)};SnapOverlayOp.symDifference=function(tt,rt){return SnapOverlayOp.overlayOp(tt,rt,OverlayOp.SYMDIFFERENCE)};SnapOverlayOp.difference=function(tt,rt){return SnapOverlayOp.overlayOp(tt,rt,OverlayOp.DIFFERENCE)};var SnapIfNeededOverlayOp=function(tt,rt){this._geom=new Array(2).fill(null),this._geom[0]=tt,this._geom[1]=rt};SnapIfNeededOverlayOp.prototype.getResultGeometry=function(tt){var rt=null,nt=!1,lt=null;try{rt=OverlayOp.overlayOp(this._geom[0],this._geom[1],tt);var ut=!0;ut&&(nt=!0)}catch(dt){if(dt instanceof RuntimeException)lt=dt;else throw dt}finally{}if(!nt)try{rt=SnapOverlayOp.overlayOp(this._geom[0],this._geom[1],tt)}catch(dt){throw dt instanceof RuntimeException?lt:dt}finally{}return rt};SnapIfNeededOverlayOp.prototype.interfaces_=function(){return[]};SnapIfNeededOverlayOp.prototype.getClass=function(){return SnapIfNeededOverlayOp};SnapIfNeededOverlayOp.overlayOp=function(tt,rt,nt){var lt=new SnapIfNeededOverlayOp(tt,rt);return lt.getResultGeometry(nt)};SnapIfNeededOverlayOp.union=function(tt,rt){return SnapIfNeededOverlayOp.overlayOp(tt,rt,OverlayOp.UNION)};SnapIfNeededOverlayOp.intersection=function(tt,rt){return SnapIfNeededOverlayOp.overlayOp(tt,rt,OverlayOp.INTERSECTION)};SnapIfNeededOverlayOp.symDifference=function(tt,rt){return SnapIfNeededOverlayOp.overlayOp(tt,rt,OverlayOp.SYMDIFFERENCE)};SnapIfNeededOverlayOp.difference=function(tt,rt){return SnapIfNeededOverlayOp.overlayOp(tt,rt,OverlayOp.DIFFERENCE)};var MonotoneChain$2=function(){this.mce=null,this.chainIndex=null;var tt=arguments[0],rt=arguments[1];this.mce=tt,this.chainIndex=rt};MonotoneChain$2.prototype.computeIntersections=function(tt,rt){this.mce.computeIntersectsForChain(this.chainIndex,tt.mce,tt.chainIndex,rt)};MonotoneChain$2.prototype.interfaces_=function(){return[]};MonotoneChain$2.prototype.getClass=function(){return MonotoneChain$2};var SweepLineEvent=function et(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,arguments.length===2){var tt=arguments[0],rt=arguments[1];this._eventType=et.DELETE,this._xValue=tt,this._insertEvent=rt}else if(arguments.length===3){var nt=arguments[0],lt=arguments[1],ut=arguments[2];this._eventType=et.INSERT,this._label=nt,this._xValue=lt,this._obj=ut}},staticAccessors$43={INSERT:{configurable:!0},DELETE:{configurable:!0}};SweepLineEvent.prototype.isDelete=function(){return this._eventType===SweepLineEvent.DELETE};SweepLineEvent.prototype.setDeleteEventIndex=function(tt){this._deleteEventIndex=tt};SweepLineEvent.prototype.getObject=function(){return this._obj};SweepLineEvent.prototype.compareTo=function(tt){var rt=tt;return this._xValue<rt._xValue?-1:this._xValue>rt._xValue?1:this._eventType<rt._eventType?-1:this._eventType>rt._eventType?1:0};SweepLineEvent.prototype.getInsertEvent=function(){return this._insertEvent};SweepLineEvent.prototype.isInsert=function(){return this._eventType===SweepLineEvent.INSERT};SweepLineEvent.prototype.isSameLabel=function(tt){return this._label===null?!1:this._label===tt._label};SweepLineEvent.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex};SweepLineEvent.prototype.interfaces_=function(){return[Comparable]};SweepLineEvent.prototype.getClass=function(){return SweepLineEvent};staticAccessors$43.INSERT.get=function(){return 1};staticAccessors$43.DELETE.get=function(){return 2};Object.defineProperties(SweepLineEvent,staticAccessors$43);var EdgeSetIntersector=function(){};EdgeSetIntersector.prototype.interfaces_=function(){return[]};EdgeSetIntersector.prototype.getClass=function(){return EdgeSetIntersector};var SegmentIntersector$2=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var tt=arguments[0],rt=arguments[1],nt=arguments[2];this._li=tt,this._includeProper=rt,this._recordIsolated=nt};SegmentIntersector$2.prototype.isTrivialIntersection=function(tt,rt,nt,lt){if(tt===nt&&this._li.getIntersectionNum()===1){if(SegmentIntersector$2.isAdjacentSegments(rt,lt))return!0;if(tt.isClosed()){var ut=tt.getNumPoints()-1;if(rt===0&&lt===ut||lt===0&&rt===ut)return!0}}return!1};SegmentIntersector$2.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint};SegmentIntersector$2.prototype.setIsDoneIfProperInt=function(tt){this._isDoneWhenProperInt=tt};SegmentIntersector$2.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior};SegmentIntersector$2.prototype.isBoundaryPointInternal=function(tt,rt){for(var nt=rt.iterator();nt.hasNext();){var lt=nt.next(),ut=lt.getCoordinate();if(tt.isIntersection(ut))return!0}return!1};SegmentIntersector$2.prototype.hasProperIntersection=function(){return this._hasProper};SegmentIntersector$2.prototype.hasIntersection=function(){return this._hasIntersection};SegmentIntersector$2.prototype.isDone=function(){return this._isDone};SegmentIntersector$2.prototype.isBoundaryPoint=function(tt,rt){return rt===null?!1:!!(this.isBoundaryPointInternal(tt,rt[0])||this.isBoundaryPointInternal(tt,rt[1]))};SegmentIntersector$2.prototype.setBoundaryNodes=function(tt,rt){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=tt,this._bdyNodes[1]=rt};SegmentIntersector$2.prototype.addIntersections=function(tt,rt,nt,lt){if(tt===nt&&rt===lt)return null;this.numTests++;var ut=tt.getCoordinates()[rt],dt=tt.getCoordinates()[rt+1],pt=nt.getCoordinates()[lt],ht=nt.getCoordinates()[lt+1];this._li.computeIntersection(ut,dt,pt,ht),this._li.hasIntersection()&&(this._recordIsolated&&(tt.setIsolated(!1),nt.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(tt,rt,nt,lt)||(this._hasIntersection=!0,(this._includeProper||!this._li.isProper())&&(tt.addIntersections(this._li,rt,0),nt.addIntersections(this._li,lt,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))};SegmentIntersector$2.prototype.interfaces_=function(){return[]};SegmentIntersector$2.prototype.getClass=function(){return SegmentIntersector$2};SegmentIntersector$2.isAdjacentSegments=function(tt,rt){return Math.abs(tt-rt)===1};var SimpleMCSweepLineIntersector=function(et){function tt(){et.call(this),this.events=new ArrayList,this.nOverlaps=null}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.prepareEvents=function(){var nt=this;Collections.sort(this.events);for(var lt=0;lt<this.events.size();lt++){var ut=nt.events.get(lt);ut.isDelete()&&ut.getInsertEvent().setDeleteEventIndex(lt)}},tt.prototype.computeIntersections=function(){var nt=this;if(arguments.length===1){var lt=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var ut=0;ut<this.events.size();ut++){var dt=nt.events.get(ut);if(dt.isInsert()&&nt.processOverlaps(ut,dt.getDeleteEventIndex(),dt,lt),lt.isDone())break}}else if(arguments.length===3){if(arguments[2]instanceof SegmentIntersector$2&&hasInterface(arguments[0],List)&&hasInterface(arguments[1],List)){var pt=arguments[0],ht=arguments[1],mt=arguments[2];this.addEdges(pt,pt),this.addEdges(ht,ht),this.computeIntersections(mt)}else if(typeof arguments[2]=="boolean"&&hasInterface(arguments[0],List)&&arguments[1]instanceof SegmentIntersector$2){var xt=arguments[0],Mt=arguments[1],vt=arguments[2];vt?this.addEdges(xt,null):this.addEdges(xt),this.computeIntersections(Mt)}}},tt.prototype.addEdge=function(nt,lt){for(var ut=this,dt=nt.getMonotoneChainEdge(),pt=dt.getStartIndexes(),ht=0;ht<pt.length-1;ht++){var mt=new MonotoneChain$2(dt,ht),xt=new SweepLineEvent(lt,dt.getMinX(ht),mt);ut.events.add(xt),ut.events.add(new SweepLineEvent(dt.getMaxX(ht),xt))}},tt.prototype.processOverlaps=function(nt,lt,ut,dt){for(var pt=this,ht=ut.getObject(),mt=nt;mt<lt;mt++){var xt=pt.events.get(mt);if(xt.isInsert()){var Mt=xt.getObject();ut.isSameLabel(xt)||(ht.computeIntersections(Mt,dt),pt.nOverlaps++)}}},tt.prototype.addEdges=function(){var nt=this;if(arguments.length===1)for(var lt=arguments[0],ut=lt.iterator();ut.hasNext();){var dt=ut.next();nt.addEdge(dt,dt)}else if(arguments.length===2)for(var pt=arguments[0],ht=arguments[1],mt=pt.iterator();mt.hasNext();){var xt=mt.next();nt.addEdge(xt,ht)}},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(EdgeSetIntersector),IntervalRTreeNode=function(){this._min=Double.POSITIVE_INFINITY,this._max=Double.NEGATIVE_INFINITY},staticAccessors$45={NodeComparator:{configurable:!0}};IntervalRTreeNode.prototype.getMin=function(){return this._min};IntervalRTreeNode.prototype.intersects=function(tt,rt){return!(this._min>rt||this._max<tt)};IntervalRTreeNode.prototype.getMax=function(){return this._max};IntervalRTreeNode.prototype.toString=function(){return WKTWriter.toLineString(new Coordinate(this._min,0),new Coordinate(this._max,0))};IntervalRTreeNode.prototype.interfaces_=function(){return[]};IntervalRTreeNode.prototype.getClass=function(){return IntervalRTreeNode};staticAccessors$45.NodeComparator.get=function(){return NodeComparator};Object.defineProperties(IntervalRTreeNode,staticAccessors$45);var NodeComparator=function(){};NodeComparator.prototype.compare=function(tt,rt){var nt=tt,lt=rt,ut=(nt._min+nt._max)/2,dt=(lt._min+lt._max)/2;return ut<dt?-1:ut>dt?1:0};NodeComparator.prototype.interfaces_=function(){return[Comparator]};NodeComparator.prototype.getClass=function(){return NodeComparator};var IntervalRTreeLeafNode=function(et){function tt(){et.call(this),this._item=null;var rt=arguments[0],nt=arguments[1],lt=arguments[2];this._min=rt,this._max=nt,this._item=lt}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.query=function(nt,lt,ut){if(!this.intersects(nt,lt))return null;ut.visitItem(this._item)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(IntervalRTreeNode),IntervalRTreeBranchNode=function(et){function tt(){et.call(this),this._node1=null,this._node2=null;var rt=arguments[0],nt=arguments[1];this._node1=rt,this._node2=nt,this.buildExtent(this._node1,this._node2)}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.buildExtent=function(nt,lt){this._min=Math.min(nt._min,lt._min),this._max=Math.max(nt._max,lt._max)},tt.prototype.query=function(nt,lt,ut){if(!this.intersects(nt,lt))return null;this._node1!==null&&this._node1.query(nt,lt,ut),this._node2!==null&&this._node2.query(nt,lt,ut)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(IntervalRTreeNode),SortedPackedIntervalRTree=function(){this._leaves=new ArrayList,this._root=null,this._level=0};SortedPackedIntervalRTree.prototype.buildTree=function(){var tt=this;Collections.sort(this._leaves,new IntervalRTreeNode.NodeComparator);for(var rt=this._leaves,nt=null,lt=new ArrayList;;){if(tt.buildLevel(rt,lt),lt.size()===1)return lt.get(0);nt=rt,rt=lt,lt=nt}};SortedPackedIntervalRTree.prototype.insert=function(tt,rt,nt){if(this._root!==null)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new IntervalRTreeLeafNode(tt,rt,nt))};SortedPackedIntervalRTree.prototype.query=function(tt,rt,nt){this.init(),this._root.query(tt,rt,nt)};SortedPackedIntervalRTree.prototype.buildRoot=function(){if(this._root!==null)return null;this._root=this.buildTree()};SortedPackedIntervalRTree.prototype.printNode=function(tt){System.out.println(WKTWriter.toLineString(new Coordinate(tt._min,this._level),new Coordinate(tt._max,this._level)))};SortedPackedIntervalRTree.prototype.init=function(){if(this._root!==null)return null;this.buildRoot()};SortedPackedIntervalRTree.prototype.buildLevel=function(tt,rt){this._level++,rt.clear();for(var nt=0;nt<tt.size();nt+=2){var lt=tt.get(nt),ut=nt+1<tt.size()?tt.get(nt):null;if(ut===null)rt.add(lt);else{var dt=new IntervalRTreeBranchNode(tt.get(nt),tt.get(nt+1));rt.add(dt)}}};SortedPackedIntervalRTree.prototype.interfaces_=function(){return[]};SortedPackedIntervalRTree.prototype.getClass=function(){return SortedPackedIntervalRTree};var ArrayListVisitor=function(){this._items=new ArrayList};ArrayListVisitor.prototype.visitItem=function(tt){this._items.add(tt)};ArrayListVisitor.prototype.getItems=function(){return this._items};ArrayListVisitor.prototype.interfaces_=function(){return[ItemVisitor]};ArrayListVisitor.prototype.getClass=function(){return ArrayListVisitor};var IndexedPointInAreaLocator=function(){this._index=null;var tt=arguments[0];if(!hasInterface(tt,Polygonal))throw new IllegalArgumentException("Argument must be Polygonal");this._index=new IntervalIndexedGeometry(tt)},staticAccessors$44={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};IndexedPointInAreaLocator.prototype.locate=function(tt){var rt=new RayCrossingCounter(tt),nt=new SegmentVisitor(rt);return this._index.query(tt.y,tt.y,nt),rt.getLocation()};IndexedPointInAreaLocator.prototype.interfaces_=function(){return[PointOnGeometryLocator]};IndexedPointInAreaLocator.prototype.getClass=function(){return IndexedPointInAreaLocator};staticAccessors$44.SegmentVisitor.get=function(){return SegmentVisitor};staticAccessors$44.IntervalIndexedGeometry.get=function(){return IntervalIndexedGeometry};Object.defineProperties(IndexedPointInAreaLocator,staticAccessors$44);var SegmentVisitor=function(){this._counter=null;var tt=arguments[0];this._counter=tt};SegmentVisitor.prototype.visitItem=function(tt){var rt=tt;this._counter.countSegment(rt.getCoordinate(0),rt.getCoordinate(1))};SegmentVisitor.prototype.interfaces_=function(){return[ItemVisitor]};SegmentVisitor.prototype.getClass=function(){return SegmentVisitor};var IntervalIndexedGeometry=function(){this._index=new SortedPackedIntervalRTree;var tt=arguments[0];this.init(tt)};IntervalIndexedGeometry.prototype.init=function(tt){for(var rt=this,nt=LinearComponentExtracter.getLines(tt),lt=nt.iterator();lt.hasNext();){var ut=lt.next(),dt=ut.getCoordinates();rt.addLine(dt)}};IntervalIndexedGeometry.prototype.addLine=function(tt){for(var rt=this,nt=1;nt<tt.length;nt++){var lt=new LineSegment(tt[nt-1],tt[nt]),ut=Math.min(lt.p0.y,lt.p1.y),dt=Math.max(lt.p0.y,lt.p1.y);rt._index.insert(ut,dt,lt)}};IntervalIndexedGeometry.prototype.query=function(){if(arguments.length===2){var tt=arguments[0],rt=arguments[1],nt=new ArrayListVisitor;return this._index.query(tt,rt,nt),nt.getItems()}else if(arguments.length===3){var lt=arguments[0],ut=arguments[1],dt=arguments[2];this._index.query(lt,ut,dt)}};IntervalIndexedGeometry.prototype.interfaces_=function(){return[]};IntervalIndexedGeometry.prototype.getClass=function(){return IntervalIndexedGeometry};var GeometryGraph=function(et){function tt(){if(et.call(this),this._parentGeom=null,this._lineEdgeMap=new HashMap,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new PointLocator,arguments.length===2){var rt=arguments[0],nt=arguments[1],lt=BoundaryNodeRule.OGC_SFS_BOUNDARY_RULE;this._argIndex=rt,this._parentGeom=nt,this._boundaryNodeRule=lt,nt!==null&&this.add(nt)}else if(arguments.length===3){var ut=arguments[0],dt=arguments[1],pt=arguments[2];this._argIndex=ut,this._parentGeom=dt,this._boundaryNodeRule=pt,dt!==null&&this.add(dt)}}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.insertBoundaryPoint=function(nt,lt){var ut=this._nodes.addNode(lt),dt=ut.getLabel(),pt=1,ht=Location.NONE;ht=dt.getLocation(nt,Position$1.ON),ht===Location.BOUNDARY&&pt++;var mt=tt.determineBoundary(this._boundaryNodeRule,pt);dt.setLocation(nt,mt)},tt.prototype.computeSelfNodes=function(){if(arguments.length===2){var nt=arguments[0],lt=arguments[1];return this.computeSelfNodes(nt,lt,!1)}else if(arguments.length===3){var ut=arguments[0],dt=arguments[1],pt=arguments[2],ht=new SegmentIntersector$2(ut,!0,!1);ht.setIsDoneIfProperInt(pt);var mt=this.createEdgeSetIntersector(),xt=this._parentGeom instanceof LinearRing||this._parentGeom instanceof Polygon||this._parentGeom instanceof MultiPolygon,Mt=dt||!xt;return mt.computeIntersections(this._edges,ht,Mt),this.addSelfIntersectionNodes(this._argIndex),ht}},tt.prototype.computeSplitEdges=function(nt){for(var lt=this._edges.iterator();lt.hasNext();){var ut=lt.next();ut.eiList.addSplitEdges(nt)}},tt.prototype.computeEdgeIntersections=function(nt,lt,ut){var dt=new SegmentIntersector$2(lt,ut,!0);dt.setBoundaryNodes(this.getBoundaryNodes(),nt.getBoundaryNodes());var pt=this.createEdgeSetIntersector();return pt.computeIntersections(this._edges,nt._edges,dt),dt},tt.prototype.getGeometry=function(){return this._parentGeom},tt.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},tt.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},tt.prototype.addPoint=function(){if(arguments[0]instanceof Point$3){var nt=arguments[0],lt=nt.getCoordinate();this.insertPoint(this._argIndex,lt,Location.INTERIOR)}else if(arguments[0]instanceof Coordinate){var ut=arguments[0];this.insertPoint(this._argIndex,ut,Location.INTERIOR)}},tt.prototype.addPolygon=function(nt){var lt=this;this.addPolygonRing(nt.getExteriorRing(),Location.EXTERIOR,Location.INTERIOR);for(var ut=0;ut<nt.getNumInteriorRing();ut++){var dt=nt.getInteriorRingN(ut);lt.addPolygonRing(dt,Location.INTERIOR,Location.EXTERIOR)}},tt.prototype.addEdge=function(nt){this.insertEdge(nt);var lt=nt.getCoordinates();this.insertPoint(this._argIndex,lt[0],Location.BOUNDARY),this.insertPoint(this._argIndex,lt[lt.length-1],Location.BOUNDARY)},tt.prototype.addLineString=function(nt){var lt=CoordinateArrays.removeRepeatedPoints(nt.getCoordinates());if(lt.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=lt[0],null;var ut=new Edge(lt,new Label$2(this._argIndex,Location.INTERIOR));this._lineEdgeMap.put(nt,ut),this.insertEdge(ut),Assert.isTrue(lt.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,lt[0]),this.insertBoundaryPoint(this._argIndex,lt[lt.length-1])},tt.prototype.getInvalidPoint=function(){return this._invalidPoint},tt.prototype.getBoundaryPoints=function(){for(var nt=this.getBoundaryNodes(),lt=new Array(nt.size()).fill(null),ut=0,dt=nt.iterator();dt.hasNext();){var pt=dt.next();lt[ut++]=pt.getCoordinate().copy()}return lt},tt.prototype.getBoundaryNodes=function(){return this._boundaryNodes===null&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},tt.prototype.addSelfIntersectionNode=function(nt,lt,ut){if(this.isBoundaryNode(nt,lt))return null;ut===Location.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(nt,lt):this.insertPoint(nt,lt,ut)},tt.prototype.addPolygonRing=function(nt,lt,ut){if(nt.isEmpty())return null;var dt=CoordinateArrays.removeRepeatedPoints(nt.getCoordinates());if(dt.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=dt[0],null;var pt=lt,ht=ut;CGAlgorithms.isCCW(dt)&&(pt=ut,ht=lt);var mt=new Edge(dt,new Label$2(this._argIndex,Location.BOUNDARY,pt,ht));this._lineEdgeMap.put(nt,mt),this.insertEdge(mt),this.insertPoint(this._argIndex,dt[0],Location.BOUNDARY)},tt.prototype.insertPoint=function(nt,lt,ut){var dt=this._nodes.addNode(lt),pt=dt.getLabel();pt===null?dt._label=new Label$2(nt,ut):pt.setLocation(nt,ut)},tt.prototype.createEdgeSetIntersector=function(){return new SimpleMCSweepLineIntersector},tt.prototype.addSelfIntersectionNodes=function(nt){for(var lt=this,ut=this._edges.iterator();ut.hasNext();)for(var dt=ut.next(),pt=dt.getLabel().getLocation(nt),ht=dt.eiList.iterator();ht.hasNext();){var mt=ht.next();lt.addSelfIntersectionNode(nt,mt.coord,pt)}},tt.prototype.add=function(){if(arguments.length===1){var nt=arguments[0];if(nt.isEmpty())return null;if(nt instanceof MultiPolygon&&(this._useBoundaryDeterminationRule=!1),nt instanceof Polygon)this.addPolygon(nt);else if(nt instanceof LineString)this.addLineString(nt);else if(nt instanceof Point$3)this.addPoint(nt);else if(nt instanceof MultiPoint)this.addCollection(nt);else if(nt instanceof MultiLineString)this.addCollection(nt);else if(nt instanceof MultiPolygon)this.addCollection(nt);else if(nt instanceof GeometryCollection)this.addCollection(nt);else throw new Error(nt.getClass().getName())}else return et.prototype.add.apply(this,arguments)},tt.prototype.addCollection=function(nt){for(var lt=this,ut=0;ut<nt.getNumGeometries();ut++){var dt=nt.getGeometryN(ut);lt.add(dt)}},tt.prototype.locate=function(nt){return hasInterface(this._parentGeom,Polygonal)&&this._parentGeom.getNumGeometries()>50?(this._areaPtLocator===null&&(this._areaPtLocator=new IndexedPointInAreaLocator(this._parentGeom)),this._areaPtLocator.locate(nt)):this._ptLocator.locate(nt,this._parentGeom)},tt.prototype.findEdge=function(){if(arguments.length===1){var nt=arguments[0];return this._lineEdgeMap.get(nt)}else return et.prototype.findEdge.apply(this,arguments)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt.determineBoundary=function(nt,lt){return nt.isInBoundary(lt)?Location.BOUNDARY:Location.INTERIOR},tt}(PlanarGraph),GeometryGraphOp=function(){if(this._li=new RobustLineIntersector,this._resultPrecisionModel=null,this._arg=null,arguments.length===1){var tt=arguments[0];this.setComputationPrecision(tt.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new GeometryGraph(0,tt)}else if(arguments.length===2){var rt=arguments[0],nt=arguments[1],lt=BoundaryNodeRule.OGC_SFS_BOUNDARY_RULE;rt.getPrecisionModel().compareTo(nt.getPrecisionModel())>=0?this.setComputationPrecision(rt.getPrecisionModel()):this.setComputationPrecision(nt.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new GeometryGraph(0,rt,lt),this._arg[1]=new GeometryGraph(1,nt,lt)}else if(arguments.length===3){var ut=arguments[0],dt=arguments[1],pt=arguments[2];ut.getPrecisionModel().compareTo(dt.getPrecisionModel())>=0?this.setComputationPrecision(ut.getPrecisionModel()):this.setComputationPrecision(dt.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new GeometryGraph(0,ut,pt),this._arg[1]=new GeometryGraph(1,dt,pt)}};GeometryGraphOp.prototype.getArgGeometry=function(tt){return this._arg[tt].getGeometry()};GeometryGraphOp.prototype.setComputationPrecision=function(tt){this._resultPrecisionModel=tt,this._li.setPrecisionModel(this._resultPrecisionModel)};GeometryGraphOp.prototype.interfaces_=function(){return[]};GeometryGraphOp.prototype.getClass=function(){return GeometryGraphOp};var GeometryMapper=function(){};GeometryMapper.prototype.interfaces_=function(){return[]};GeometryMapper.prototype.getClass=function(){return GeometryMapper};GeometryMapper.map=function(){if(arguments[0]instanceof Geometry&&hasInterface(arguments[1],GeometryMapper.MapOp)){for(var tt=arguments[0],rt=arguments[1],nt=new ArrayList,lt=0;lt<tt.getNumGeometries();lt++){var ut=rt.map(tt.getGeometryN(lt));ut!==null&&nt.add(ut)}return tt.getFactory().buildGeometry(nt)}else if(hasInterface(arguments[0],Collection)&&hasInterface(arguments[1],GeometryMapper.MapOp)){for(var dt=arguments[0],pt=arguments[1],ht=new ArrayList,mt=dt.iterator();mt.hasNext();){var xt=mt.next(),Mt=pt.map(xt);Mt!==null&&ht.add(Mt)}return ht}};GeometryMapper.MapOp=function(){};var OverlayOp=function(et){function tt(){var rt=arguments[0],nt=arguments[1];et.call(this,rt,nt),this._ptLocator=new PointLocator,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new EdgeList,this._resultPolyList=new ArrayList,this._resultLineList=new ArrayList,this._resultPointList=new ArrayList,this._graph=new PlanarGraph(new OverlayNodeFactory),this._geomFact=rt.getFactory()}return et&&(tt.__proto__=et),tt.prototype=Object.create(et&&et.prototype),tt.prototype.constructor=tt,tt.prototype.insertUniqueEdge=function(nt){var lt=this._edgeList.findEqualEdge(nt);if(lt!==null){var ut=lt.getLabel(),dt=nt.getLabel();lt.isPointwiseEqual(nt)||(dt=new Label$2(nt.getLabel()),dt.flip());var pt=lt.getDepth();pt.isNull()&&pt.add(ut),pt.add(dt),ut.merge(dt)}else this._edgeList.add(nt)},tt.prototype.getGraph=function(){return this._graph},tt.prototype.cancelDuplicateResultEdges=function(){for(var nt=this._graph.getEdgeEnds().iterator();nt.hasNext();){var lt=nt.next(),ut=lt.getSym();lt.isInResult()&&ut.isInResult()&&(lt.setInResult(!1),ut.setInResult(!1))}},tt.prototype.isCoveredByLA=function(nt){return!!(this.isCovered(nt,this._resultLineList)||this.isCovered(nt,this._resultPolyList))},tt.prototype.computeGeometry=function(nt,lt,ut,dt){var pt=new ArrayList;return pt.addAll(nt),pt.addAll(lt),pt.addAll(ut),pt.isEmpty()?tt.createEmptyResult(dt,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(pt)},tt.prototype.mergeSymLabels=function(){for(var nt=this._graph.getNodes().iterator();nt.hasNext();){var lt=nt.next();lt.getEdges().mergeSymLabels()}},tt.prototype.isCovered=function(nt,lt){for(var ut=this,dt=lt.iterator();dt.hasNext();){var pt=dt.next(),ht=ut._ptLocator.locate(nt,pt);if(ht!==Location.EXTERIOR)return!0}return!1},tt.prototype.replaceCollapsedEdges=function(){for(var nt=new ArrayList,lt=this._edgeList.iterator();lt.hasNext();){var ut=lt.next();ut.isCollapsed()&&(lt.remove(),nt.add(ut.getCollapsedEdge()))}this._edgeList.addAll(nt)},tt.prototype.updateNodeLabelling=function(){for(var nt=this._graph.getNodes().iterator();nt.hasNext();){var lt=nt.next(),ut=lt.getEdges().getLabel();lt.getLabel().merge(ut)}},tt.prototype.getResultGeometry=function(nt){return this.computeOverlay(nt),this._resultGeom},tt.prototype.insertUniqueEdges=function(nt){for(var lt=this,ut=nt.iterator();ut.hasNext();){var dt=ut.next();lt.insertUniqueEdge(dt)}},tt.prototype.computeOverlay=function(nt){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var lt=new ArrayList;this._arg[0].computeSplitEdges(lt),this._arg[1].computeSplitEdges(lt),this.insertUniqueEdges(lt),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),EdgeNodingValidator.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(nt),this.cancelDuplicateResultEdges();var ut=new PolygonBuilder(this._geomFact);ut.add(this._graph),this._resultPolyList=ut.getPolygons();var dt=new LineBuilder(this,this._geomFact,this._ptLocator);this._resultLineList=dt.build(nt);var pt=new PointBuilder(this,this._geomFact,this._ptLocator);this._resultPointList=pt.build(nt),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,nt)},tt.prototype.labelIncompleteNode=function(nt,lt){var ut=this._ptLocator.locate(nt.getCoordinate(),this._arg[lt].getGeometry());nt.getLabel().setLocation(lt,ut)},tt.prototype.copyPoints=function(nt){for(var lt=this,ut=this._arg[nt].getNodeIterator();ut.hasNext();){var dt=ut.next(),pt=lt._graph.addNode(dt.getCoordinate());pt.setLabel(nt,dt.getLabel().getLocation(nt))}},tt.prototype.findResultAreaEdges=function(nt){for(var lt=this._graph.getEdgeEnds().iterator();lt.hasNext();){var ut=lt.next(),dt=ut.getLabel();dt.isArea()&&!ut.isInteriorAreaEdge()&&tt.isResultOfOp(dt.getLocation(0,Position$1.RIGHT),dt.getLocation(1,Position$1.RIGHT),nt)&&ut.setInResult(!0)}},tt.prototype.computeLabelsFromDepths=function(){for(var nt=this._edgeList.iterator();nt.hasNext();){var lt=nt.next(),ut=lt.getLabel(),dt=lt.getDepth();if(!dt.isNull()){dt.normalize();for(var pt=0;pt<2;pt++)!ut.isNull(pt)&&ut.isArea()&&!dt.isNull(pt)&&(dt.getDelta(pt)===0?ut.toLine(pt):(Assert.isTrue(!dt.isNull(pt,Position$1.LEFT),"depth of LEFT side has not been initialized"),ut.setLocation(pt,Position$1.LEFT,dt.getLocation(pt,Position$1.LEFT)),Assert.isTrue(!dt.isNull(pt,Position$1.RIGHT),"depth of RIGHT side has not been initialized"),ut.setLocation(pt,Position$1.RIGHT,dt.getLocation(pt,Position$1.RIGHT))))}}},tt.prototype.computeLabelling=function(){for(var nt=this,lt=this._graph.getNodes().iterator();lt.hasNext();){var ut=lt.next();ut.getEdges().computeLabelling(nt._arg)}this.mergeSymLabels(),this.updateNodeLabelling()},tt.prototype.labelIncompleteNodes=function(){for(var nt=this,lt=this._graph.getNodes().iterator();lt.hasNext();){var ut=lt.next(),dt=ut.getLabel();ut.isIsolated()&&(dt.isNull(0)?nt.labelIncompleteNode(ut,0):nt.labelIncompleteNode(ut,1)),ut.getEdges().updateLabelling(dt)}},tt.prototype.isCoveredByA=function(nt){return!!this.isCovered(nt,this._resultPolyList)},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt},tt}(GeometryGraphOp);OverlayOp.overlayOp=function(et,tt,rt){var nt=new OverlayOp(et,tt),lt=nt.getResultGeometry(rt);return lt};OverlayOp.intersection=function(et,tt){if(et.isEmpty()||tt.isEmpty())return OverlayOp.createEmptyResult(OverlayOp.INTERSECTION,et,tt,et.getFactory());if(et.isGeometryCollection()){var rt=tt;return GeometryCollectionMapper.map(et,{interfaces_:function(){return[GeometryMapper.MapOp]},map:function(nt){return nt.intersection(rt)}})}return et.checkNotGeometryCollection(et),et.checkNotGeometryCollection(tt),SnapIfNeededOverlayOp.overlayOp(et,tt,OverlayOp.INTERSECTION)};OverlayOp.symDifference=function(et,tt){if(et.isEmpty()||tt.isEmpty()){if(et.isEmpty()&&tt.isEmpty())return OverlayOp.createEmptyResult(OverlayOp.SYMDIFFERENCE,et,tt,et.getFactory());if(et.isEmpty())return tt.copy();if(tt.isEmpty())return et.copy()}return et.checkNotGeometryCollection(et),et.checkNotGeometryCollection(tt),SnapIfNeededOverlayOp.overlayOp(et,tt,OverlayOp.SYMDIFFERENCE)};OverlayOp.resultDimension=function(et,tt,rt){var nt=tt.getDimension(),lt=rt.getDimension(),ut=-1;switch(et){case OverlayOp.INTERSECTION:ut=Math.min(nt,lt);break;case OverlayOp.UNION:ut=Math.max(nt,lt);break;case OverlayOp.DIFFERENCE:ut=nt;break;case OverlayOp.SYMDIFFERENCE:ut=Math.max(nt,lt);break}return ut};OverlayOp.createEmptyResult=function(et,tt,rt,nt){var lt=null;switch(OverlayOp.resultDimension(et,tt,rt)){case-1:lt=nt.createGeometryCollection(new Array(0).fill(null));break;case 0:lt=nt.createPoint();break;case 1:lt=nt.createLineString();break;case 2:lt=nt.createPolygon();break}return lt};OverlayOp.difference=function(et,tt){return et.isEmpty()?OverlayOp.createEmptyResult(OverlayOp.DIFFERENCE,et,tt,et.getFactory()):tt.isEmpty()?et.copy():(et.checkNotGeometryCollection(et),et.checkNotGeometryCollection(tt),SnapIfNeededOverlayOp.overlayOp(et,tt,OverlayOp.DIFFERENCE))};OverlayOp.isResultOfOp=function(){if(arguments.length===2){var et=arguments[0],tt=arguments[1],rt=et.getLocation(0),nt=et.getLocation(1);return OverlayOp.isResultOfOp(rt,nt,tt)}else if(arguments.length===3){var lt=arguments[0],ut=arguments[1],dt=arguments[2];switch(lt===Location.BOUNDARY&&(lt=Location.INTERIOR),ut===Location.BOUNDARY&&(ut=Location.INTERIOR),dt){case OverlayOp.INTERSECTION:return lt===Location.INTERIOR&&ut===Location.INTERIOR;case OverlayOp.UNION:return lt===Location.INTERIOR||ut===Location.INTERIOR;case OverlayOp.DIFFERENCE:return lt===Location.INTERIOR&&ut!==Location.INTERIOR;case OverlayOp.SYMDIFFERENCE:return lt===Location.INTERIOR&&ut!==Location.INTERIOR||lt!==Location.INTERIOR&&ut===Location.INTERIOR}return!1}};OverlayOp.INTERSECTION=1;OverlayOp.UNION=2;OverlayOp.DIFFERENCE=3;OverlayOp.SYMDIFFERENCE=4;var FuzzyPointLocator=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new PointLocator,this._seg=new LineSegment;var tt=arguments[0],rt=arguments[1];this._g=tt,this._boundaryDistanceTolerance=rt,this._linework=this.extractLinework(tt)};FuzzyPointLocator.prototype.isWithinToleranceOfBoundary=function(tt){for(var rt=this,nt=0;nt<this._linework.getNumGeometries();nt++)for(var lt=rt._linework.getGeometryN(nt),ut=lt.getCoordinateSequence(),dt=0;dt<ut.size()-1;dt++){ut.getCoordinate(dt,rt._seg.p0),ut.getCoordinate(dt+1,rt._seg.p1);var pt=rt._seg.distance(tt);if(pt<=rt._boundaryDistanceTolerance)return!0}return!1};FuzzyPointLocator.prototype.getLocation=function(tt){return this.isWithinToleranceOfBoundary(tt)?Location.BOUNDARY:this._ptLocator.locate(tt,this._g)};FuzzyPointLocator.prototype.extractLinework=function(tt){var rt=new PolygonalLineworkExtracter;tt.apply(rt);var nt=rt.getLinework(),lt=GeometryFactory.toLineStringArray(nt);return tt.getFactory().createMultiLineString(lt)};FuzzyPointLocator.prototype.interfaces_=function(){return[]};FuzzyPointLocator.prototype.getClass=function(){return FuzzyPointLocator};var PolygonalLineworkExtracter=function(){this._linework=null,this._linework=new ArrayList};PolygonalLineworkExtracter.prototype.getLinework=function(){return this._linework};PolygonalLineworkExtracter.prototype.filter=function(tt){var rt=this;if(tt instanceof Polygon){var nt=tt;this._linework.add(nt.getExteriorRing());for(var lt=0;lt<nt.getNumInteriorRing();lt++)rt._linework.add(nt.getInteriorRingN(lt))}};PolygonalLineworkExtracter.prototype.interfaces_=function(){return[GeometryFilter]};PolygonalLineworkExtracter.prototype.getClass=function(){return PolygonalLineworkExtracter};var OffsetPointGenerator=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var tt=arguments[0];this._g=tt};OffsetPointGenerator.prototype.extractPoints=function(tt,rt,nt){for(var lt=this,ut=tt.getCoordinates(),dt=0;dt<ut.length-1;dt++)lt.computeOffsetPoints(ut[dt],ut[dt+1],rt,nt)};OffsetPointGenerator.prototype.setSidesToGenerate=function(tt,rt){this._doLeft=tt,this._doRight=rt};OffsetPointGenerator.prototype.getPoints=function(tt){for(var rt=this,nt=new ArrayList,lt=LinearComponentExtracter.getLines(this._g),ut=lt.iterator();ut.hasNext();){var dt=ut.next();rt.extractPoints(dt,tt,nt)}return nt};OffsetPointGenerator.prototype.computeOffsetPoints=function(tt,rt,nt,lt){var ut=rt.x-tt.x,dt=rt.y-tt.y,pt=Math.sqrt(ut*ut+dt*dt),ht=nt*ut/pt,mt=nt*dt/pt,xt=(rt.x+tt.x)/2,Mt=(rt.y+tt.y)/2;if(this._doLeft){var vt=new Coordinate(xt-mt,Mt+ht);lt.add(vt)}if(this._doRight){var Ot=new Coordinate(xt+mt,Mt-ht);lt.add(Ot)}};OffsetPointGenerator.prototype.interfaces_=function(){return[]};OffsetPointGenerator.prototype.getClass=function(){return OffsetPointGenerator};var OverlayResultValidator=function et(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=et.TOLERANCE,this._testCoords=new ArrayList;var tt=arguments[0],rt=arguments[1],nt=arguments[2];this._boundaryDistanceTolerance=et.computeBoundaryDistanceTolerance(tt,rt),this._geom=[tt,rt,nt],this._locFinder=[new FuzzyPointLocator(this._geom[0],this._boundaryDistanceTolerance),new FuzzyPointLocator(this._geom[1],this._boundaryDistanceTolerance),new FuzzyPointLocator(this._geom[2],this._boundaryDistanceTolerance)]},staticAccessors$46={TOLERANCE:{configurable:!0}};OverlayResultValidator.prototype.reportResult=function(tt,rt,nt){System.out.println("Overlay result invalid - A:"+Location.toLocationSymbol(rt[0])+" B:"+Location.toLocationSymbol(rt[1])+" expected:"+(nt?"i":"e")+" actual:"+Location.toLocationSymbol(rt[2]))};OverlayResultValidator.prototype.isValid=function(tt){this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]);var rt=this.checkValid(tt);return rt};OverlayResultValidator.prototype.checkValid=function(){var tt=this;if(arguments.length===1){for(var rt=arguments[0],nt=0;nt<this._testCoords.size();nt++){var lt=tt._testCoords.get(nt);if(!tt.checkValid(rt,lt))return tt._invalidLocation=lt,!1}return!0}else if(arguments.length===2){var ut=arguments[0],dt=arguments[1];return this._location[0]=this._locFinder[0].getLocation(dt),this._location[1]=this._locFinder[1].getLocation(dt),this._location[2]=this._locFinder[2].getLocation(dt),OverlayResultValidator.hasLocation(this._location,Location.BOUNDARY)?!0:this.isValidResult(ut,this._location)}};OverlayResultValidator.prototype.addTestPts=function(tt){var rt=new OffsetPointGenerator(tt);this._testCoords.addAll(rt.getPoints(5*this._boundaryDistanceTolerance))};OverlayResultValidator.prototype.isValidResult=function(tt,rt){var nt=OverlayOp.isResultOfOp(rt[0],rt[1],tt),lt=rt[2]===Location.INTERIOR,ut=!(nt^lt);return ut||this.reportResult(tt,rt,nt),ut};OverlayResultValidator.prototype.getInvalidLocation=function(){return this._invalidLocation};OverlayResultValidator.prototype.interfaces_=function(){return[]};OverlayResultValidator.prototype.getClass=function(){return OverlayResultValidator};OverlayResultValidator.hasLocation=function(tt,rt){for(var nt=0;nt<3;nt++)if(tt[nt]===rt)return!0;return!1};OverlayResultValidator.computeBoundaryDistanceTolerance=function(tt,rt){return Math.min(GeometrySnapper.computeSizeBasedSnapTolerance(tt),GeometrySnapper.computeSizeBasedSnapTolerance(rt))};OverlayResultValidator.isValid=function(tt,rt,nt,lt){var ut=new OverlayResultValidator(tt,rt,lt);return ut.isValid(nt)};staticAccessors$46.TOLERANCE.get=function(){return 1e-6};Object.defineProperties(OverlayResultValidator,staticAccessors$46);var GeometryCombiner=function et(tt){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=et.extractFactory(tt),this._inputGeoms=tt};GeometryCombiner.prototype.extractElements=function(tt,rt){var nt=this;if(tt===null)return null;for(var lt=0;lt<tt.getNumGeometries();lt++){var ut=tt.getGeometryN(lt);nt._skipEmpty&&ut.isEmpty()||rt.add(ut)}};GeometryCombiner.prototype.combine=function(){for(var tt=this,rt=new ArrayList,nt=this._inputGeoms.iterator();nt.hasNext();){var lt=nt.next();tt.extractElements(lt,rt)}return rt.size()===0?this._geomFactory!==null?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(rt)};GeometryCombiner.prototype.interfaces_=function(){return[]};GeometryCombiner.prototype.getClass=function(){return GeometryCombiner};GeometryCombiner.combine=function(){if(arguments.length===1){var tt=arguments[0],rt=new GeometryCombiner(tt);return rt.combine()}else if(arguments.length===2){var nt=arguments[0],lt=arguments[1],ut=new GeometryCombiner(GeometryCombiner.createList(nt,lt));return ut.combine()}else if(arguments.length===3){var dt=arguments[0],pt=arguments[1],ht=arguments[2],mt=new GeometryCombiner(GeometryCombiner.createList(dt,pt,ht));return mt.combine()}};GeometryCombiner.extractFactory=function(tt){return tt.isEmpty()?null:tt.iterator().next().getFactory()};GeometryCombiner.createList=function(){if(arguments.length===2){var tt=arguments[0],rt=arguments[1],nt=new ArrayList;return nt.add(tt),nt.add(rt),nt}else if(arguments.length===3){var lt=arguments[0],ut=arguments[1],dt=arguments[2],pt=new ArrayList;return pt.add(lt),pt.add(ut),pt.add(dt),pt}};var CascadedPolygonUnion=function(){this._inputPolys=null,this._geomFactory=null;var tt=arguments[0];this._inputPolys=tt,this._inputPolys===null&&(this._inputPolys=new ArrayList)},staticAccessors$47={STRTREE_NODE_CAPACITY:{configurable:!0}};CascadedPolygonUnion.prototype.reduceToGeometries=function(tt){for(var rt=this,nt=new ArrayList,lt=tt.iterator();lt.hasNext();){var ut=lt.next(),dt=null;hasInterface(ut,List)?dt=rt.unionTree(ut):ut instanceof Geometry&&(dt=ut),nt.add(dt)}return nt};CascadedPolygonUnion.prototype.extractByEnvelope=function(tt,rt,nt){for(var lt=new ArrayList,ut=0;ut<rt.getNumGeometries();ut++){var dt=rt.getGeometryN(ut);dt.getEnvelopeInternal().intersects(tt)?lt.add(dt):nt.add(dt)}return this._geomFactory.buildGeometry(lt)};CascadedPolygonUnion.prototype.unionOptimized=function(tt,rt){var nt=tt.getEnvelopeInternal(),lt=rt.getEnvelopeInternal();if(!nt.intersects(lt)){var ut=GeometryCombiner.combine(tt,rt);return ut}if(tt.getNumGeometries()<=1&&rt.getNumGeometries()<=1)return this.unionActual(tt,rt);var dt=nt.intersection(lt);return this.unionUsingEnvelopeIntersection(tt,rt,dt)};CascadedPolygonUnion.prototype.union=function(){if(this._inputPolys===null)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var tt=new STRtree(CascadedPolygonUnion.STRTREE_NODE_CAPACITY),rt=this._inputPolys.iterator();rt.hasNext();){var nt=rt.next();tt.insert(nt.getEnvelopeInternal(),nt)}this._inputPolys=null;var lt=tt.itemsTree(),ut=this.unionTree(lt);return ut};CascadedPolygonUnion.prototype.binaryUnion=function(){if(arguments.length===1){var tt=arguments[0];return this.binaryUnion(tt,0,tt.size())}else if(arguments.length===3){var rt=arguments[0],nt=arguments[1],lt=arguments[2];if(lt-nt<=1){var ut=CascadedPolygonUnion.getGeometry(rt,nt);return this.unionSafe(ut,null)}else{if(lt-nt===2)return this.unionSafe(CascadedPolygonUnion.getGeometry(rt,nt),CascadedPolygonUnion.getGeometry(rt,nt+1));var dt=Math.trunc((lt+nt)/2),pt=this.binaryUnion(rt,nt,dt),ht=this.binaryUnion(rt,dt,lt);return this.unionSafe(pt,ht)}}};CascadedPolygonUnion.prototype.repeatedUnion=function(tt){for(var rt=null,nt=tt.iterator();nt.hasNext();){var lt=nt.next();rt===null?rt=lt.copy():rt=rt.union(lt)}return rt};CascadedPolygonUnion.prototype.unionSafe=function(tt,rt){return tt===null&&rt===null?null:tt===null?rt.copy():rt===null?tt.copy():this.unionOptimized(tt,rt)};CascadedPolygonUnion.prototype.unionActual=function(tt,rt){return CascadedPolygonUnion.restrictToPolygons(tt.union(rt))};CascadedPolygonUnion.prototype.unionTree=function(tt){var rt=this.reduceToGeometries(tt),nt=this.binaryUnion(rt);return nt};CascadedPolygonUnion.prototype.unionUsingEnvelopeIntersection=function(tt,rt,nt){var lt=new ArrayList,ut=this.extractByEnvelope(nt,tt,lt),dt=this.extractByEnvelope(nt,rt,lt),pt=this.unionActual(ut,dt);lt.add(pt);var ht=GeometryCombiner.combine(lt);return ht};CascadedPolygonUnion.prototype.bufferUnion=function(){if(arguments.length===1){var tt=arguments[0],rt=tt.get(0).getFactory(),nt=rt.buildGeometry(tt),lt=nt.buffer(0);return lt}else if(arguments.length===2){var ut=arguments[0],dt=arguments[1],pt=ut.getFactory(),ht=pt.createGeometryCollection([ut,dt]),mt=ht.buffer(0);return mt}};CascadedPolygonUnion.prototype.interfaces_=function(){return[]};CascadedPolygonUnion.prototype.getClass=function(){return CascadedPolygonUnion};CascadedPolygonUnion.restrictToPolygons=function(tt){if(hasInterface(tt,Polygonal))return tt;var rt=PolygonExtracter.getPolygons(tt);return rt.size()===1?rt.get(0):tt.getFactory().createMultiPolygon(GeometryFactory.toPolygonArray(rt))};CascadedPolygonUnion.getGeometry=function(tt,rt){return rt>=tt.size()?null:tt.get(rt)};CascadedPolygonUnion.union=function(tt){var rt=new CascadedPolygonUnion(tt);return rt.union()};staticAccessors$47.STRTREE_NODE_CAPACITY.get=function(){return 4};Object.defineProperties(CascadedPolygonUnion,staticAccessors$47);var UnionOp=function(){};UnionOp.prototype.interfaces_=function(){return[]};UnionOp.prototype.getClass=function(){return UnionOp};UnionOp.union=function(tt,rt){if(tt.isEmpty()||rt.isEmpty()){if(tt.isEmpty()&&rt.isEmpty())return OverlayOp.createEmptyResult(OverlayOp.UNION,tt,rt,tt.getFactory());if(tt.isEmpty())return rt.copy();if(rt.isEmpty())return tt.copy()}return tt.checkNotGeometryCollection(tt),tt.checkNotGeometryCollection(rt),SnapIfNeededOverlayOp.overlayOp(tt,rt,OverlayOp.UNION)};/**
 * splaytree v3.1.2
 * Fast Splay tree for Node and browser
 *
 * @author Alexander Milevski <info@w8r.name>
 * @license MIT
 * @preserve
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function __generator(et,tt){var rt={label:0,sent:function(){if(ut[0]&1)throw ut[1];return ut[1]},trys:[],ops:[]},nt,lt,ut,dt;return dt={next:pt(0),throw:pt(1),return:pt(2)},typeof Symbol=="function"&&(dt[Symbol.iterator]=function(){return this}),dt;function pt(mt){return function(xt){return ht([mt,xt])}}function ht(mt){if(nt)throw new TypeError("Generator is already executing.");for(;rt;)try{if(nt=1,lt&&(ut=mt[0]&2?lt.return:mt[0]?lt.throw||((ut=lt.return)&&ut.call(lt),0):lt.next)&&!(ut=ut.call(lt,mt[1])).done)return ut;switch(lt=0,ut&&(mt=[mt[0]&2,ut.value]),mt[0]){case 0:case 1:ut=mt;break;case 4:return rt.label++,{value:mt[1],done:!1};case 5:rt.label++,lt=mt[1],mt=[0];continue;case 7:mt=rt.ops.pop(),rt.trys.pop();continue;default:if(ut=rt.trys,!(ut=ut.length>0&&ut[ut.length-1])&&(mt[0]===6||mt[0]===2)){rt=0;continue}if(mt[0]===3&&(!ut||mt[1]>ut[0]&&mt[1]<ut[3])){rt.label=mt[1];break}if(mt[0]===6&&rt.label<ut[1]){rt.label=ut[1],ut=mt;break}if(ut&&rt.label<ut[2]){rt.label=ut[2],rt.ops.push(mt);break}ut[2]&&rt.ops.pop(),rt.trys.pop();continue}mt=tt.call(et,rt)}catch(xt){mt=[6,xt],lt=0}finally{nt=ut=0}if(mt[0]&5)throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}}}var Node$1=function(){function et(tt,rt){this.next=null,this.key=tt,this.data=rt,this.left=null,this.right=null}return et}();function DEFAULT_COMPARE(et,tt){return et>tt?1:et<tt?-1:0}function splay(et,tt,rt){for(var nt=new Node$1(null,null),lt=nt,ut=nt;;){var dt=rt(et,tt.key);if(dt<0){if(tt.left===null)break;if(rt(et,tt.left.key)<0){var pt=tt.left;if(tt.left=pt.right,pt.right=tt,tt=pt,tt.left===null)break}ut.left=tt,ut=tt,tt=tt.left}else if(dt>0){if(tt.right===null)break;if(rt(et,tt.right.key)>0){var pt=tt.right;if(tt.right=pt.left,pt.left=tt,tt=pt,tt.right===null)break}lt.right=tt,lt=tt,tt=tt.right}else break}return lt.right=tt.left,ut.left=tt.right,tt.left=nt.right,tt.right=nt.left,tt}function insert(et,tt,rt,nt){var lt=new Node$1(et,tt);if(rt===null)return lt.left=lt.right=null,lt;rt=splay(et,rt,nt);var ut=nt(et,rt.key);return ut<0?(lt.left=rt.left,lt.right=rt,rt.left=null):ut>=0&&(lt.right=rt.right,lt.left=rt,rt.right=null),lt}function split(et,tt,rt){var nt=null,lt=null;if(tt){tt=splay(et,tt,rt);var ut=rt(tt.key,et);ut===0?(nt=tt.left,lt=tt.right):ut<0?(lt=tt.right,tt.right=null,nt=tt):(nt=tt.left,tt.left=null,lt=tt)}return{left:nt,right:lt}}function merge(et,tt,rt){return tt===null?et:(et===null||(tt=splay(et.key,tt,rt),tt.left=et),tt)}function printRow(et,tt,rt,nt,lt){if(et){nt(""+tt+(rt?"└── ":"├── ")+lt(et)+`
`);var ut=tt+(rt?"    ":"│   ");et.left&&printRow(et.left,ut,!1,nt,lt),et.right&&printRow(et.right,ut,!0,nt,lt)}}var Tree=function(){function et(tt){tt===void 0&&(tt=DEFAULT_COMPARE),this._root=null,this._size=0,this._comparator=tt}return et.prototype.insert=function(tt,rt){return this._size++,this._root=insert(tt,rt,this._root,this._comparator)},et.prototype.add=function(tt,rt){var nt=new Node$1(tt,rt);this._root===null&&(nt.left=nt.right=null,this._size++,this._root=nt);var lt=this._comparator,ut=splay(tt,this._root,lt),dt=lt(tt,ut.key);return dt===0?this._root=ut:(dt<0?(nt.left=ut.left,nt.right=ut,ut.left=null):dt>0&&(nt.right=ut.right,nt.left=ut,ut.right=null),this._size++,this._root=nt),this._root},et.prototype.remove=function(tt){this._root=this._remove(tt,this._root,this._comparator)},et.prototype._remove=function(tt,rt,nt){var lt;if(rt===null)return null;rt=splay(tt,rt,nt);var ut=nt(tt,rt.key);return ut===0?(rt.left===null?lt=rt.right:(lt=splay(tt,rt.left,nt),lt.right=rt.right),this._size--,lt):rt},et.prototype.pop=function(){var tt=this._root;if(tt){for(;tt.left;)tt=tt.left;return this._root=splay(tt.key,this._root,this._comparator),this._root=this._remove(tt.key,this._root,this._comparator),{key:tt.key,data:tt.data}}return null},et.prototype.findStatic=function(tt){for(var rt=this._root,nt=this._comparator;rt;){var lt=nt(tt,rt.key);if(lt===0)return rt;lt<0?rt=rt.left:rt=rt.right}return null},et.prototype.find=function(tt){return this._root&&(this._root=splay(tt,this._root,this._comparator),this._comparator(tt,this._root.key)!==0)?null:this._root},et.prototype.contains=function(tt){for(var rt=this._root,nt=this._comparator;rt;){var lt=nt(tt,rt.key);if(lt===0)return!0;lt<0?rt=rt.left:rt=rt.right}return!1},et.prototype.forEach=function(tt,rt){for(var nt=this._root,lt=[],ut=!1;!ut;)nt!==null?(lt.push(nt),nt=nt.left):lt.length!==0?(nt=lt.pop(),tt.call(rt,nt),nt=nt.right):ut=!0;return this},et.prototype.range=function(tt,rt,nt,lt){for(var ut=[],dt=this._comparator,pt=this._root,ht;ut.length!==0||pt;)if(pt)ut.push(pt),pt=pt.left;else{if(pt=ut.pop(),ht=dt(pt.key,rt),ht>0)break;if(dt(pt.key,tt)>=0&&nt.call(lt,pt))return this;pt=pt.right}return this},et.prototype.keys=function(){var tt=[];return this.forEach(function(rt){var nt=rt.key;return tt.push(nt)}),tt},et.prototype.values=function(){var tt=[];return this.forEach(function(rt){var nt=rt.data;return tt.push(nt)}),tt},et.prototype.min=function(){return this._root?this.minNode(this._root).key:null},et.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},et.prototype.minNode=function(tt){if(tt===void 0&&(tt=this._root),tt)for(;tt.left;)tt=tt.left;return tt},et.prototype.maxNode=function(tt){if(tt===void 0&&(tt=this._root),tt)for(;tt.right;)tt=tt.right;return tt},et.prototype.at=function(tt){for(var rt=this._root,nt=!1,lt=0,ut=[];!nt;)if(rt)ut.push(rt),rt=rt.left;else if(ut.length>0){if(rt=ut.pop(),lt===tt)return rt;lt++,rt=rt.right}else nt=!0;return null},et.prototype.next=function(tt){var rt=this._root,nt=null;if(tt.right){for(nt=tt.right;nt.left;)nt=nt.left;return nt}for(var lt=this._comparator;rt;){var ut=lt(tt.key,rt.key);if(ut===0)break;ut<0?(nt=rt,rt=rt.left):rt=rt.right}return nt},et.prototype.prev=function(tt){var rt=this._root,nt=null;if(tt.left!==null){for(nt=tt.left;nt.right;)nt=nt.right;return nt}for(var lt=this._comparator;rt;){var ut=lt(tt.key,rt.key);if(ut===0)break;ut<0?rt=rt.left:(nt=rt,rt=rt.right)}return nt},et.prototype.clear=function(){return this._root=null,this._size=0,this},et.prototype.toList=function(){return toList(this._root)},et.prototype.load=function(tt,rt,nt){rt===void 0&&(rt=[]),nt===void 0&&(nt=!1);var lt=tt.length,ut=this._comparator;if(nt&&sort(tt,rt,0,lt-1,ut),this._root===null)this._root=loadRecursive(tt,rt,0,lt),this._size=lt;else{var dt=mergeLists(this.toList(),createList(tt,rt),ut);lt=this._size+lt,this._root=sortedListToBST({head:dt},0,lt)}return this},et.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(et.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),et.prototype.toString=function(tt){tt===void 0&&(tt=function(nt){return String(nt.key)});var rt=[];return printRow(this._root,"",!0,function(nt){return rt.push(nt)},tt),rt.join("")},et.prototype.update=function(tt,rt,nt){var lt=this._comparator,ut=split(tt,this._root,lt),dt=ut.left,pt=ut.right;lt(tt,rt)<0?pt=insert(rt,nt,pt,lt):dt=insert(rt,nt,dt,lt),this._root=merge(dt,pt,lt)},et.prototype.split=function(tt){return split(tt,this._root,this._comparator)},et.prototype[Symbol.iterator]=function(){var tt,rt,nt;return __generator(this,function(lt){switch(lt.label){case 0:tt=this._root,rt=[],nt=!1,lt.label=1;case 1:return nt?[3,6]:tt===null?[3,2]:(rt.push(tt),tt=tt.left,[3,5]);case 2:return rt.length===0?[3,4]:(tt=rt.pop(),[4,tt]);case 3:return lt.sent(),tt=tt.right,[3,5];case 4:nt=!0,lt.label=5;case 5:return[3,1];case 6:return[2]}})},et}();function loadRecursive(et,tt,rt,nt){var lt=nt-rt;if(lt>0){var ut=rt+Math.floor(lt/2),dt=et[ut],pt=tt[ut],ht=new Node$1(dt,pt);return ht.left=loadRecursive(et,tt,rt,ut),ht.right=loadRecursive(et,tt,ut+1,nt),ht}return null}function createList(et,tt){for(var rt=new Node$1(null,null),nt=rt,lt=0;lt<et.length;lt++)nt=nt.next=new Node$1(et[lt],tt[lt]);return nt.next=null,rt.next}function toList(et){for(var tt=et,rt=[],nt=!1,lt=new Node$1(null,null),ut=lt;!nt;)tt?(rt.push(tt),tt=tt.left):rt.length>0?(tt=ut=ut.next=rt.pop(),tt=tt.right):nt=!0;return ut.next=null,lt.next}function sortedListToBST(et,tt,rt){var nt=rt-tt;if(nt>0){var lt=tt+Math.floor(nt/2),ut=sortedListToBST(et,tt,lt),dt=et.head;return dt.left=ut,et.head=et.head.next,dt.right=sortedListToBST(et,lt+1,rt),dt}return null}function mergeLists(et,tt,rt){for(var nt=new Node$1(null,null),lt=nt,ut=et,dt=tt;ut!==null&&dt!==null;)rt(ut.key,dt.key)<0?(lt.next=ut,ut=ut.next):(lt.next=dt,dt=dt.next),lt=lt.next;return ut!==null?lt.next=ut:dt!==null&&(lt.next=dt),nt.next}function sort(et,tt,rt,nt,lt){if(!(rt>=nt)){for(var ut=et[rt+nt>>1],dt=rt-1,pt=nt+1;;){do dt++;while(lt(et[dt],ut)<0);do pt--;while(lt(et[pt],ut)>0);if(dt>=pt)break;var ht=et[dt];et[dt]=et[pt],et[pt]=ht,ht=tt[dt],tt[dt]=tt[pt],tt[pt]=ht}sort(et,tt,rt,pt,lt),sort(et,tt,pt+1,nt,lt)}}const epsilon$1=11102230246251565e-32,splitter=134217729,resulterrbound=(3+8*epsilon$1)*epsilon$1;function sum(et,tt,rt,nt,lt){let ut,dt,pt,ht,mt=tt[0],xt=nt[0],Mt=0,vt=0;xt>mt==xt>-mt?(ut=mt,mt=tt[++Mt]):(ut=xt,xt=nt[++vt]);let Ot=0;if(Mt<et&&vt<rt)for(xt>mt==xt>-mt?(dt=mt+ut,pt=ut-(dt-mt),mt=tt[++Mt]):(dt=xt+ut,pt=ut-(dt-xt),xt=nt[++vt]),ut=dt,pt!==0&&(lt[Ot++]=pt);Mt<et&&vt<rt;)xt>mt==xt>-mt?(dt=ut+mt,ht=dt-ut,pt=ut-(dt-ht)+(mt-ht),mt=tt[++Mt]):(dt=ut+xt,ht=dt-ut,pt=ut-(dt-ht)+(xt-ht),xt=nt[++vt]),ut=dt,pt!==0&&(lt[Ot++]=pt);for(;Mt<et;)dt=ut+mt,ht=dt-ut,pt=ut-(dt-ht)+(mt-ht),mt=tt[++Mt],ut=dt,pt!==0&&(lt[Ot++]=pt);for(;vt<rt;)dt=ut+xt,ht=dt-ut,pt=ut-(dt-ht)+(xt-ht),xt=nt[++vt],ut=dt,pt!==0&&(lt[Ot++]=pt);return(ut!==0||Ot===0)&&(lt[Ot++]=ut),Ot}function estimate(et,tt){let rt=tt[0];for(let nt=1;nt<et;nt++)rt+=tt[nt];return rt}function vec(et){return new Float64Array(et)}const ccwerrboundA=(3+16*epsilon$1)*epsilon$1,ccwerrboundB=(2+12*epsilon$1)*epsilon$1,ccwerrboundC=(9+64*epsilon$1)*epsilon$1*epsilon$1,B$1=vec(4),C1=vec(8),C2=vec(12),D$1=vec(16),u$2=vec(4);function orient2dadapt(et,tt,rt,nt,lt,ut,dt){let pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct,It,Dt,kt,qt,Nt,Yt;const Kt=et-lt,Jt=rt-lt,Qt=tt-ut,Bt=nt-ut;Dt=Kt*Bt,vt=splitter*Kt,Ot=vt-(vt-Kt),At=Kt-Ot,vt=splitter*Bt,Rt=vt-(vt-Bt),zt=Bt-Rt,kt=At*zt-(Dt-Ot*Rt-At*Rt-Ot*zt),qt=Qt*Jt,vt=splitter*Qt,Ot=vt-(vt-Qt),At=Qt-Ot,vt=splitter*Jt,Rt=vt-(vt-Jt),zt=Jt-Rt,Nt=At*zt-(qt-Ot*Rt-At*Rt-Ot*zt),Tt=kt-Nt,Mt=kt-Tt,B$1[0]=kt-(Tt+Mt)+(Mt-Nt),Ct=Dt+Tt,Mt=Ct-Dt,It=Dt-(Ct-Mt)+(Tt-Mt),Tt=It-qt,Mt=It-Tt,B$1[1]=It-(Tt+Mt)+(Mt-qt),Yt=Ct+Tt,Mt=Yt-Ct,B$1[2]=Ct-(Yt-Mt)+(Tt-Mt),B$1[3]=Yt;let Ft=estimate(4,B$1),$t=ccwerrboundB*dt;if(Ft>=$t||-Ft>=$t||(Mt=et-Kt,pt=et-(Kt+Mt)+(Mt-lt),Mt=rt-Jt,mt=rt-(Jt+Mt)+(Mt-lt),Mt=tt-Qt,ht=tt-(Qt+Mt)+(Mt-ut),Mt=nt-Bt,xt=nt-(Bt+Mt)+(Mt-ut),pt===0&&ht===0&&mt===0&&xt===0)||($t=ccwerrboundC*dt+resulterrbound*Math.abs(Ft),Ft+=Kt*xt+Bt*pt-(Qt*mt+Jt*ht),Ft>=$t||-Ft>=$t))return Ft;Dt=pt*Bt,vt=splitter*pt,Ot=vt-(vt-pt),At=pt-Ot,vt=splitter*Bt,Rt=vt-(vt-Bt),zt=Bt-Rt,kt=At*zt-(Dt-Ot*Rt-At*Rt-Ot*zt),qt=ht*Jt,vt=splitter*ht,Ot=vt-(vt-ht),At=ht-Ot,vt=splitter*Jt,Rt=vt-(vt-Jt),zt=Jt-Rt,Nt=At*zt-(qt-Ot*Rt-At*Rt-Ot*zt),Tt=kt-Nt,Mt=kt-Tt,u$2[0]=kt-(Tt+Mt)+(Mt-Nt),Ct=Dt+Tt,Mt=Ct-Dt,It=Dt-(Ct-Mt)+(Tt-Mt),Tt=It-qt,Mt=It-Tt,u$2[1]=It-(Tt+Mt)+(Mt-qt),Yt=Ct+Tt,Mt=Yt-Ct,u$2[2]=Ct-(Yt-Mt)+(Tt-Mt),u$2[3]=Yt;const jt=sum(4,B$1,4,u$2,C1);Dt=Kt*xt,vt=splitter*Kt,Ot=vt-(vt-Kt),At=Kt-Ot,vt=splitter*xt,Rt=vt-(vt-xt),zt=xt-Rt,kt=At*zt-(Dt-Ot*Rt-At*Rt-Ot*zt),qt=Qt*mt,vt=splitter*Qt,Ot=vt-(vt-Qt),At=Qt-Ot,vt=splitter*mt,Rt=vt-(vt-mt),zt=mt-Rt,Nt=At*zt-(qt-Ot*Rt-At*Rt-Ot*zt),Tt=kt-Nt,Mt=kt-Tt,u$2[0]=kt-(Tt+Mt)+(Mt-Nt),Ct=Dt+Tt,Mt=Ct-Dt,It=Dt-(Ct-Mt)+(Tt-Mt),Tt=It-qt,Mt=It-Tt,u$2[1]=It-(Tt+Mt)+(Mt-qt),Yt=Ct+Tt,Mt=Yt-Ct,u$2[2]=Ct-(Yt-Mt)+(Tt-Mt),u$2[3]=Yt;const Wt=sum(jt,C1,4,u$2,C2);Dt=pt*xt,vt=splitter*pt,Ot=vt-(vt-pt),At=pt-Ot,vt=splitter*xt,Rt=vt-(vt-xt),zt=xt-Rt,kt=At*zt-(Dt-Ot*Rt-At*Rt-Ot*zt),qt=ht*mt,vt=splitter*ht,Ot=vt-(vt-ht),At=ht-Ot,vt=splitter*mt,Rt=vt-(vt-mt),zt=mt-Rt,Nt=At*zt-(qt-Ot*Rt-At*Rt-Ot*zt),Tt=kt-Nt,Mt=kt-Tt,u$2[0]=kt-(Tt+Mt)+(Mt-Nt),Ct=Dt+Tt,Mt=Ct-Dt,It=Dt-(Ct-Mt)+(Tt-Mt),Tt=It-qt,Mt=It-Tt,u$2[1]=It-(Tt+Mt)+(Mt-qt),Yt=Ct+Tt,Mt=Yt-Ct,u$2[2]=Ct-(Yt-Mt)+(Tt-Mt),u$2[3]=Yt;const Ut=sum(Wt,C2,4,u$2,D$1);return D$1[Ut-1]}function orient2d(et,tt,rt,nt,lt,ut){const dt=(tt-ut)*(rt-lt),pt=(et-lt)*(nt-ut),ht=dt-pt,mt=Math.abs(dt+pt);return Math.abs(ht)>=ccwerrboundA*mt?ht:-orient2dadapt(et,tt,rt,nt,lt,ut,mt)}var define_process_env_default={};const isInBbox=(et,tt)=>et.ll.x<=tt.x&&tt.x<=et.ur.x&&et.ll.y<=tt.y&&tt.y<=et.ur.y,getBboxOverlap=(et,tt)=>{if(tt.ur.x<et.ll.x||et.ur.x<tt.ll.x||tt.ur.y<et.ll.y||et.ur.y<tt.ll.y)return null;const rt=et.ll.x<tt.ll.x?tt.ll.x:et.ll.x,nt=et.ur.x<tt.ur.x?et.ur.x:tt.ur.x,lt=et.ll.y<tt.ll.y?tt.ll.y:et.ll.y,ut=et.ur.y<tt.ur.y?et.ur.y:tt.ur.y;return{ll:{x:rt,y:lt},ur:{x:nt,y:ut}}};let epsilon=Number.EPSILON;epsilon===void 0&&(epsilon=Math.pow(2,-52));const EPSILON_SQ=epsilon*epsilon,cmp=(et,tt)=>{if(-epsilon<et&&et<epsilon&&-epsilon<tt&&tt<epsilon)return 0;const rt=et-tt;return rt*rt<EPSILON_SQ*et*tt?0:et<tt?-1:1};class PtRounder{constructor(){this.reset()}reset(){this.xRounder=new CoordRounder,this.yRounder=new CoordRounder}round(tt,rt){return{x:this.xRounder.round(tt),y:this.yRounder.round(rt)}}}class CoordRounder{constructor(){this.tree=new Tree,this.round(0)}round(tt){const rt=this.tree.add(tt),nt=this.tree.prev(rt);if(nt!==null&&cmp(rt.key,nt.key)===0)return this.tree.remove(tt),nt.key;const lt=this.tree.next(rt);return lt!==null&&cmp(rt.key,lt.key)===0?(this.tree.remove(tt),lt.key):tt}}const rounder=new PtRounder,crossProduct=(et,tt)=>et.x*tt.y-et.y*tt.x,dotProduct=(et,tt)=>et.x*tt.x+et.y*tt.y,compareVectorAngles=(et,tt,rt)=>{const nt=orient2d(et.x,et.y,tt.x,tt.y,rt.x,rt.y);return nt>0?-1:nt<0?1:0},length=et=>Math.sqrt(dotProduct(et,et)),sineOfAngle=(et,tt,rt)=>{const nt={x:tt.x-et.x,y:tt.y-et.y},lt={x:rt.x-et.x,y:rt.y-et.y};return crossProduct(lt,nt)/length(lt)/length(nt)},cosineOfAngle=(et,tt,rt)=>{const nt={x:tt.x-et.x,y:tt.y-et.y},lt={x:rt.x-et.x,y:rt.y-et.y};return dotProduct(lt,nt)/length(lt)/length(nt)},horizontalIntersection=(et,tt,rt)=>tt.y===0?null:{x:et.x+tt.x/tt.y*(rt-et.y),y:rt},verticalIntersection=(et,tt,rt)=>tt.x===0?null:{x:rt,y:et.y+tt.y/tt.x*(rt-et.x)},intersection$1=(et,tt,rt,nt)=>{if(tt.x===0)return verticalIntersection(rt,nt,et.x);if(nt.x===0)return verticalIntersection(et,tt,rt.x);if(tt.y===0)return horizontalIntersection(rt,nt,et.y);if(nt.y===0)return horizontalIntersection(et,tt,rt.y);const lt=crossProduct(tt,nt);if(lt==0)return null;const ut={x:rt.x-et.x,y:rt.y-et.y},dt=crossProduct(ut,tt)/lt,pt=crossProduct(ut,nt)/lt,ht=et.x+pt*tt.x,mt=rt.x+dt*nt.x,xt=et.y+pt*tt.y,Mt=rt.y+dt*nt.y,vt=(ht+mt)/2,Ot=(xt+Mt)/2;return{x:vt,y:Ot}};class SweepEvent{static compare(tt,rt){const nt=SweepEvent.comparePoints(tt.point,rt.point);return nt!==0?nt:(tt.point!==rt.point&&tt.link(rt),tt.isLeft!==rt.isLeft?tt.isLeft?1:-1:Segment.compare(tt.segment,rt.segment))}static comparePoints(tt,rt){return tt.x<rt.x?-1:tt.x>rt.x?1:tt.y<rt.y?-1:tt.y>rt.y?1:0}constructor(tt,rt){tt.events===void 0?tt.events=[this]:tt.events.push(this),this.point=tt,this.isLeft=rt}link(tt){if(tt.point===this.point)throw new Error("Tried to link already linked events");const rt=tt.point.events;for(let nt=0,lt=rt.length;nt<lt;nt++){const ut=rt[nt];this.point.events.push(ut),ut.point=this.point}this.checkForConsuming()}checkForConsuming(){const tt=this.point.events.length;for(let rt=0;rt<tt;rt++){const nt=this.point.events[rt];if(nt.segment.consumedBy===void 0)for(let lt=rt+1;lt<tt;lt++){const ut=this.point.events[lt];ut.consumedBy===void 0&&nt.otherSE.point.events===ut.otherSE.point.events&&nt.segment.consume(ut.segment)}}}getAvailableLinkedEvents(){const tt=[];for(let rt=0,nt=this.point.events.length;rt<nt;rt++){const lt=this.point.events[rt];lt!==this&&!lt.segment.ringOut&&lt.segment.isInResult()&&tt.push(lt)}return tt}getLeftmostComparator(tt){const rt=new Map,nt=lt=>{const ut=lt.otherSE;rt.set(lt,{sine:sineOfAngle(this.point,tt.point,ut.point),cosine:cosineOfAngle(this.point,tt.point,ut.point)})};return(lt,ut)=>{rt.has(lt)||nt(lt),rt.has(ut)||nt(ut);const{sine:dt,cosine:pt}=rt.get(lt),{sine:ht,cosine:mt}=rt.get(ut);return dt>=0&&ht>=0?pt<mt?1:pt>mt?-1:0:dt<0&&ht<0?pt<mt?-1:pt>mt?1:0:ht<dt?-1:ht>dt?1:0}}}let segmentId=0;class Segment{static compare(tt,rt){const nt=tt.leftSE.point.x,lt=rt.leftSE.point.x,ut=tt.rightSE.point.x,dt=rt.rightSE.point.x;if(dt<nt)return 1;if(ut<lt)return-1;const pt=tt.leftSE.point.y,ht=rt.leftSE.point.y,mt=tt.rightSE.point.y,xt=rt.rightSE.point.y;if(nt<lt){if(ht<pt&&ht<mt)return 1;if(ht>pt&&ht>mt)return-1;const Mt=tt.comparePoint(rt.leftSE.point);if(Mt<0)return 1;if(Mt>0)return-1;const vt=rt.comparePoint(tt.rightSE.point);return vt!==0?vt:-1}if(nt>lt){if(pt<ht&&pt<xt)return-1;if(pt>ht&&pt>xt)return 1;const Mt=rt.comparePoint(tt.leftSE.point);if(Mt!==0)return Mt;const vt=tt.comparePoint(rt.rightSE.point);return vt<0?1:vt>0?-1:1}if(pt<ht)return-1;if(pt>ht)return 1;if(ut<dt){const Mt=rt.comparePoint(tt.rightSE.point);if(Mt!==0)return Mt}if(ut>dt){const Mt=tt.comparePoint(rt.rightSE.point);if(Mt<0)return 1;if(Mt>0)return-1}if(ut!==dt){const Mt=mt-pt,vt=ut-nt,Ot=xt-ht,At=dt-lt;if(Mt>vt&&Ot<At)return 1;if(Mt<vt&&Ot>At)return-1}return ut>dt?1:ut<dt||mt<xt?-1:mt>xt?1:tt.id<rt.id?-1:tt.id>rt.id?1:0}constructor(tt,rt,nt,lt){this.id=++segmentId,this.leftSE=tt,tt.segment=this,tt.otherSE=rt,this.rightSE=rt,rt.segment=this,rt.otherSE=tt,this.rings=nt,this.windings=lt}static fromRing(tt,rt,nt){let lt,ut,dt;const pt=SweepEvent.comparePoints(tt,rt);if(pt<0)lt=tt,ut=rt,dt=1;else if(pt>0)lt=rt,ut=tt,dt=-1;else throw new Error(`Tried to create degenerate segment at [${tt.x}, ${tt.y}]`);const ht=new SweepEvent(lt,!0),mt=new SweepEvent(ut,!1);return new Segment(ht,mt,[nt],[dt])}replaceRightSE(tt){this.rightSE=tt,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const tt=this.leftSE.point.y,rt=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:tt<rt?tt:rt},ur:{x:this.rightSE.point.x,y:tt>rt?tt:rt}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(tt){return tt.x===this.leftSE.point.x&&tt.y===this.leftSE.point.y||tt.x===this.rightSE.point.x&&tt.y===this.rightSE.point.y}comparePoint(tt){if(this.isAnEndpoint(tt))return 0;const rt=this.leftSE.point,nt=this.rightSE.point,lt=this.vector();if(rt.x===nt.x)return tt.x===rt.x?0:tt.x<rt.x?1:-1;const ut=(tt.y-rt.y)/lt.y,dt=rt.x+ut*lt.x;if(tt.x===dt)return 0;const pt=(tt.x-rt.x)/lt.x,ht=rt.y+pt*lt.y;return tt.y===ht?0:tt.y<ht?-1:1}getIntersection(tt){const rt=this.bbox(),nt=tt.bbox(),lt=getBboxOverlap(rt,nt);if(lt===null)return null;const ut=this.leftSE.point,dt=this.rightSE.point,pt=tt.leftSE.point,ht=tt.rightSE.point,mt=isInBbox(rt,pt)&&this.comparePoint(pt)===0,xt=isInBbox(nt,ut)&&tt.comparePoint(ut)===0,Mt=isInBbox(rt,ht)&&this.comparePoint(ht)===0,vt=isInBbox(nt,dt)&&tt.comparePoint(dt)===0;if(xt&&mt)return vt&&!Mt?dt:!vt&&Mt?ht:null;if(xt)return Mt&&ut.x===ht.x&&ut.y===ht.y?null:ut;if(mt)return vt&&dt.x===pt.x&&dt.y===pt.y?null:pt;if(vt&&Mt)return null;if(vt)return dt;if(Mt)return ht;const Ot=intersection$1(ut,this.vector(),pt,tt.vector());return Ot===null||!isInBbox(lt,Ot)?null:rounder.round(Ot.x,Ot.y)}split(tt){const rt=[],nt=tt.events!==void 0,lt=new SweepEvent(tt,!0),ut=new SweepEvent(tt,!1),dt=this.rightSE;this.replaceRightSE(ut),rt.push(ut),rt.push(lt);const pt=new Segment(lt,dt,this.rings.slice(),this.windings.slice());return SweepEvent.comparePoints(pt.leftSE.point,pt.rightSE.point)>0&&pt.swapEvents(),SweepEvent.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),nt&&(lt.checkForConsuming(),ut.checkForConsuming()),rt}swapEvents(){const tt=this.rightSE;this.rightSE=this.leftSE,this.leftSE=tt,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let rt=0,nt=this.windings.length;rt<nt;rt++)this.windings[rt]*=-1}consume(tt){let rt=this,nt=tt;for(;rt.consumedBy;)rt=rt.consumedBy;for(;nt.consumedBy;)nt=nt.consumedBy;const lt=Segment.compare(rt,nt);if(lt!==0){if(lt>0){const ut=rt;rt=nt,nt=ut}if(rt.prev===nt){const ut=rt;rt=nt,nt=ut}for(let ut=0,dt=nt.rings.length;ut<dt;ut++){const pt=nt.rings[ut],ht=nt.windings[ut],mt=rt.rings.indexOf(pt);mt===-1?(rt.rings.push(pt),rt.windings.push(ht)):rt.windings[mt]+=ht}nt.rings=null,nt.windings=null,nt.consumedBy=rt,nt.leftSE.consumedBy=rt.leftSE,nt.rightSE.consumedBy=rt.rightSE}}prevInResult(){return this._prevInResult!==void 0?this._prevInResult:(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null,this._prevInResult)}beforeState(){if(this._beforeState!==void 0)return this._beforeState;if(!this.prev)this._beforeState={rings:[],windings:[],multiPolys:[]};else{const tt=this.prev.consumedBy||this.prev;this._beforeState=tt.afterState()}return this._beforeState}afterState(){if(this._afterState!==void 0)return this._afterState;const tt=this.beforeState();this._afterState={rings:tt.rings.slice(0),windings:tt.windings.slice(0),multiPolys:[]};const rt=this._afterState.rings,nt=this._afterState.windings,lt=this._afterState.multiPolys;for(let pt=0,ht=this.rings.length;pt<ht;pt++){const mt=this.rings[pt],xt=this.windings[pt],Mt=rt.indexOf(mt);Mt===-1?(rt.push(mt),nt.push(xt)):nt[Mt]+=xt}const ut=[],dt=[];for(let pt=0,ht=rt.length;pt<ht;pt++){if(nt[pt]===0)continue;const mt=rt[pt],xt=mt.poly;if(dt.indexOf(xt)===-1)if(mt.isExterior)ut.push(xt);else{dt.indexOf(xt)===-1&&dt.push(xt);const Mt=ut.indexOf(mt.poly);Mt!==-1&&ut.splice(Mt,1)}}for(let pt=0,ht=ut.length;pt<ht;pt++){const mt=ut[pt].multiPoly;lt.indexOf(mt)===-1&&lt.push(mt)}return this._afterState}isInResult(){if(this.consumedBy)return!1;if(this._isInResult!==void 0)return this._isInResult;const tt=this.beforeState().multiPolys,rt=this.afterState().multiPolys;switch(operation.type){case"union":{const nt=tt.length===0,lt=rt.length===0;this._isInResult=nt!==lt;break}case"intersection":{let nt,lt;tt.length<rt.length?(nt=tt.length,lt=rt.length):(nt=rt.length,lt=tt.length),this._isInResult=lt===operation.numMultiPolys&&nt<lt;break}case"xor":{const nt=Math.abs(tt.length-rt.length);this._isInResult=nt%2===1;break}case"difference":{const nt=lt=>lt.length===1&&lt[0].isSubject;this._isInResult=nt(tt)!==nt(rt);break}default:throw new Error(`Unrecognized operation type found ${operation.type}`)}return this._isInResult}}class RingIn{constructor(tt,rt,nt){if(!Array.isArray(tt)||tt.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=rt,this.isExterior=nt,this.segments=[],typeof tt[0][0]!="number"||typeof tt[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const lt=rounder.round(tt[0][0],tt[0][1]);this.bbox={ll:{x:lt.x,y:lt.y},ur:{x:lt.x,y:lt.y}};let ut=lt;for(let dt=1,pt=tt.length;dt<pt;dt++){if(typeof tt[dt][0]!="number"||typeof tt[dt][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");let ht=rounder.round(tt[dt][0],tt[dt][1]);ht.x===ut.x&&ht.y===ut.y||(this.segments.push(Segment.fromRing(ut,ht,this)),ht.x<this.bbox.ll.x&&(this.bbox.ll.x=ht.x),ht.y<this.bbox.ll.y&&(this.bbox.ll.y=ht.y),ht.x>this.bbox.ur.x&&(this.bbox.ur.x=ht.x),ht.y>this.bbox.ur.y&&(this.bbox.ur.y=ht.y),ut=ht)}(lt.x!==ut.x||lt.y!==ut.y)&&this.segments.push(Segment.fromRing(ut,lt,this))}getSweepEvents(){const tt=[];for(let rt=0,nt=this.segments.length;rt<nt;rt++){const lt=this.segments[rt];tt.push(lt.leftSE),tt.push(lt.rightSE)}return tt}}class PolyIn{constructor(tt,rt){if(!Array.isArray(tt))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new RingIn(tt[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(let nt=1,lt=tt.length;nt<lt;nt++){const ut=new RingIn(tt[nt],this,!1);ut.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=ut.bbox.ll.x),ut.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=ut.bbox.ll.y),ut.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=ut.bbox.ur.x),ut.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=ut.bbox.ur.y),this.interiorRings.push(ut)}this.multiPoly=rt}getSweepEvents(){const tt=this.exteriorRing.getSweepEvents();for(let rt=0,nt=this.interiorRings.length;rt<nt;rt++){const lt=this.interiorRings[rt].getSweepEvents();for(let ut=0,dt=lt.length;ut<dt;ut++)tt.push(lt[ut])}return tt}}class MultiPolyIn{constructor(tt,rt){if(!Array.isArray(tt))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{typeof tt[0][0][0]=="number"&&(tt=[tt])}catch{}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(let nt=0,lt=tt.length;nt<lt;nt++){const ut=new PolyIn(tt[nt],this);ut.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=ut.bbox.ll.x),ut.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=ut.bbox.ll.y),ut.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=ut.bbox.ur.x),ut.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=ut.bbox.ur.y),this.polys.push(ut)}this.isSubject=rt}getSweepEvents(){const tt=[];for(let rt=0,nt=this.polys.length;rt<nt;rt++){const lt=this.polys[rt].getSweepEvents();for(let ut=0,dt=lt.length;ut<dt;ut++)tt.push(lt[ut])}return tt}}class RingOut{static factory(tt){const rt=[];for(let nt=0,lt=tt.length;nt<lt;nt++){const ut=tt[nt];if(!ut.isInResult()||ut.ringOut)continue;let dt=null,pt=ut.leftSE,ht=ut.rightSE;const mt=[pt],xt=pt.point,Mt=[];for(;dt=pt,pt=ht,mt.push(pt),pt.point!==xt;)for(;;){const vt=pt.getAvailableLinkedEvents();if(vt.length===0){const Rt=mt[0].point,zt=mt[mt.length-1].point;throw new Error(`Unable to complete output ring starting at [${Rt.x}, ${Rt.y}]. Last matching segment found ends at [${zt.x}, ${zt.y}].`)}if(vt.length===1){ht=vt[0].otherSE;break}let Ot=null;for(let Rt=0,zt=Mt.length;Rt<zt;Rt++)if(Mt[Rt].point===pt.point){Ot=Rt;break}if(Ot!==null){const Rt=Mt.splice(Ot)[0],zt=mt.splice(Rt.index);zt.unshift(zt[0].otherSE),rt.push(new RingOut(zt.reverse()));continue}Mt.push({index:mt.length,point:pt.point});const At=pt.getLeftmostComparator(dt);ht=vt.sort(At)[0].otherSE;break}rt.push(new RingOut(mt))}return rt}constructor(tt){this.events=tt;for(let rt=0,nt=tt.length;rt<nt;rt++)tt[rt].segment.ringOut=this;this.poly=null}getGeom(){let tt=this.events[0].point;const rt=[tt];for(let mt=1,xt=this.events.length-1;mt<xt;mt++){const Mt=this.events[mt].point,vt=this.events[mt+1].point;compareVectorAngles(Mt,tt,vt)!==0&&(rt.push(Mt),tt=Mt)}if(rt.length===1)return null;const nt=rt[0],lt=rt[1];compareVectorAngles(nt,tt,lt)===0&&rt.shift(),rt.push(rt[0]);const ut=this.isExteriorRing()?1:-1,dt=this.isExteriorRing()?0:rt.length-1,pt=this.isExteriorRing()?rt.length:-1,ht=[];for(let mt=dt;mt!=pt;mt+=ut)ht.push([rt[mt].x,rt[mt].y]);return ht}isExteriorRing(){if(this._isExteriorRing===void 0){const tt=this.enclosingRing();this._isExteriorRing=tt?!tt.isExteriorRing():!0}return this._isExteriorRing}enclosingRing(){return this._enclosingRing===void 0&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}_calcEnclosingRing(){let tt=this.events[0];for(let lt=1,ut=this.events.length;lt<ut;lt++){const dt=this.events[lt];SweepEvent.compare(tt,dt)>0&&(tt=dt)}let rt=tt.segment.prevInResult(),nt=rt?rt.prevInResult():null;for(;;){if(!rt)return null;if(!nt)return rt.ringOut;if(nt.ringOut!==rt.ringOut)return nt.ringOut.enclosingRing()!==rt.ringOut?rt.ringOut:rt.ringOut.enclosingRing();rt=nt.prevInResult(),nt=rt?rt.prevInResult():null}}}class PolyOut{constructor(tt){this.exteriorRing=tt,tt.poly=this,this.interiorRings=[]}addInterior(tt){this.interiorRings.push(tt),tt.poly=this}getGeom(){const tt=[this.exteriorRing.getGeom()];if(tt[0]===null)return null;for(let rt=0,nt=this.interiorRings.length;rt<nt;rt++){const lt=this.interiorRings[rt].getGeom();lt!==null&&tt.push(lt)}return tt}}class MultiPolyOut{constructor(tt){this.rings=tt,this.polys=this._composePolys(tt)}getGeom(){const tt=[];for(let rt=0,nt=this.polys.length;rt<nt;rt++){const lt=this.polys[rt].getGeom();lt!==null&&tt.push(lt)}return tt}_composePolys(tt){const rt=[];for(let nt=0,lt=tt.length;nt<lt;nt++){const ut=tt[nt];if(!ut.poly)if(ut.isExteriorRing())rt.push(new PolyOut(ut));else{const dt=ut.enclosingRing();dt.poly||rt.push(new PolyOut(dt)),dt.poly.addInterior(ut)}}return rt}}class SweepLine{constructor(tt){let rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Segment.compare;this.queue=tt,this.tree=new Tree(rt),this.segments=[]}process(tt){const rt=tt.segment,nt=[];if(tt.consumedBy)return tt.isLeft?this.queue.remove(tt.otherSE):this.tree.remove(rt),nt;const lt=tt.isLeft?this.tree.add(rt):this.tree.find(rt);if(!lt)throw new Error(`Unable to find segment #${rt.id} [${rt.leftSE.point.x}, ${rt.leftSE.point.y}] -> [${rt.rightSE.point.x}, ${rt.rightSE.point.y}] in SweepLine tree.`);let ut=lt,dt=lt,pt,ht;for(;pt===void 0;)ut=this.tree.prev(ut),ut===null?pt=null:ut.key.consumedBy===void 0&&(pt=ut.key);for(;ht===void 0;)dt=this.tree.next(dt),dt===null?ht=null:dt.key.consumedBy===void 0&&(ht=dt.key);if(tt.isLeft){let mt=null;if(pt){const Mt=pt.getIntersection(rt);if(Mt!==null&&(rt.isAnEndpoint(Mt)||(mt=Mt),!pt.isAnEndpoint(Mt))){const vt=this._splitSafely(pt,Mt);for(let Ot=0,At=vt.length;Ot<At;Ot++)nt.push(vt[Ot])}}let xt=null;if(ht){const Mt=ht.getIntersection(rt);if(Mt!==null&&(rt.isAnEndpoint(Mt)||(xt=Mt),!ht.isAnEndpoint(Mt))){const vt=this._splitSafely(ht,Mt);for(let Ot=0,At=vt.length;Ot<At;Ot++)nt.push(vt[Ot])}}if(mt!==null||xt!==null){let Mt=null;mt===null?Mt=xt:xt===null?Mt=mt:Mt=SweepEvent.comparePoints(mt,xt)<=0?mt:xt,this.queue.remove(rt.rightSE),nt.push(rt.rightSE);const vt=rt.split(Mt);for(let Ot=0,At=vt.length;Ot<At;Ot++)nt.push(vt[Ot])}nt.length>0?(this.tree.remove(rt),nt.push(tt)):(this.segments.push(rt),rt.prev=pt)}else{if(pt&&ht){const mt=pt.getIntersection(ht);if(mt!==null){if(!pt.isAnEndpoint(mt)){const xt=this._splitSafely(pt,mt);for(let Mt=0,vt=xt.length;Mt<vt;Mt++)nt.push(xt[Mt])}if(!ht.isAnEndpoint(mt)){const xt=this._splitSafely(ht,mt);for(let Mt=0,vt=xt.length;Mt<vt;Mt++)nt.push(xt[Mt])}}}this.tree.remove(rt)}return nt}_splitSafely(tt,rt){this.tree.remove(tt);const nt=tt.rightSE;this.queue.remove(nt);const lt=tt.split(rt);return lt.push(nt),tt.consumedBy===void 0&&this.tree.add(tt),lt}}const POLYGON_CLIPPING_MAX_QUEUE_SIZE=typeof process$1$1<"u"&&define_process_env_default.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS=typeof process$1$1<"u"&&define_process_env_default.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6;class Operation{run(tt,rt,nt){operation.type=tt,rounder.reset();const lt=[new MultiPolyIn(rt,!0)];for(let Mt=0,vt=nt.length;Mt<vt;Mt++)lt.push(new MultiPolyIn(nt[Mt],!1));if(operation.numMultiPolys=lt.length,operation.type==="difference"){const Mt=lt[0];let vt=1;for(;vt<lt.length;)getBboxOverlap(lt[vt].bbox,Mt.bbox)!==null?vt++:lt.splice(vt,1)}if(operation.type==="intersection")for(let Mt=0,vt=lt.length;Mt<vt;Mt++){const Ot=lt[Mt];for(let At=Mt+1,Rt=lt.length;At<Rt;At++)if(getBboxOverlap(Ot.bbox,lt[At].bbox)===null)return[]}const ut=new Tree(SweepEvent.compare);for(let Mt=0,vt=lt.length;Mt<vt;Mt++){const Ot=lt[Mt].getSweepEvents();for(let At=0,Rt=Ot.length;At<Rt;At++)if(ut.insert(Ot[At]),ut.size>POLYGON_CLIPPING_MAX_QUEUE_SIZE)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const dt=new SweepLine(ut);let pt=ut.size,ht=ut.pop();for(;ht;){const Mt=ht.key;if(ut.size===pt){const Ot=Mt.segment;throw new Error(`Unable to pop() ${Mt.isLeft?"left":"right"} SweepEvent [${Mt.point.x}, ${Mt.point.y}] from segment #${Ot.id} [${Ot.leftSE.point.x}, ${Ot.leftSE.point.y}] -> [${Ot.rightSE.point.x}, ${Ot.rightSE.point.y}] from queue.`)}if(ut.size>POLYGON_CLIPPING_MAX_QUEUE_SIZE)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(dt.segments.length>POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const vt=dt.process(Mt);for(let Ot=0,At=vt.length;Ot<At;Ot++){const Rt=vt[Ot];Rt.consumedBy===void 0&&ut.insert(Rt)}pt=ut.size,ht=ut.pop()}rounder.reset();const mt=RingOut.factory(dt.segments);return new MultiPolyOut(mt).getGeom()}}const operation=new Operation,union=function(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt<tt;nt++)rt[nt-1]=arguments[nt];return operation.run("union",et,rt)},intersection=function(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt<tt;nt++)rt[nt-1]=arguments[nt];return operation.run("intersection",et,rt)},xor$8=function(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt<tt;nt++)rt[nt-1]=arguments[nt];return operation.run("xor",et,rt)},difference=function(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt<tt;nt++)rt[nt-1]=arguments[nt];return operation.run("difference",et,rt)};var index={union,intersection,xor:xor$8,difference};const reader=new GeoJSONReader,writer=new GeoJSONWriter,bufferFeature=(et,tt)=>{if(et===null)return null;if(et.properties===null&&(et.properties={}),!("buffered"in et.properties))try{const rt=reader.read(et.geometry);et.geometry=writer.write(BufferOp.bufferOp(rt,tt)),et.properties.buffered=!0}catch{}return et},unionFeatures=et=>{if(et.length===0)return null;const tt=et.map(rt=>rt.geometry.coordinates);return multiPolygon(index.union.apply(null,tt))},getPolygonCoordinates=et=>{if(et!==null){if(et.geometry.type==="Polygon")return et.geometry.coordinates;if(et.geometry.type==="MultiPolygon")return et.geometry.coordinates.flat()}return[]};function PageImageViewer({img:et,features:tt,width:rt,imgWidth:nt,loading:lt}){const ut=reactExports.createRef();return reactExports.useEffect(()=>{if(et===null)return;const pt=bufferFeature(unionFeatures(tt),10),ht=getPolygonCoordinates(pt),mt=ut.current,xt=Mt=>{if(mt===null)return;const vt=rt/nt;mt.width=rt,mt.height=Mt.height*(rt/Mt.width),mt.style.webkitFilter=lt?"blur(5px)":"blur(0px)",mt.style.opacity=lt?"0.6":"1.0",mt.style.imageRendering="crisp-edges";const Ot=mt.getContext("2d");if(Ot!==null){Ot.drawImage(Mt,0,0,Mt.width,Mt.height,0,0,mt.width,mt.height),Ot.scale(vt,vt),Ot.globalCompositeOperation="multiply";for(const At of ht)if(At.length>2){Ot.fillStyle="rgba(251, 188, 5, 0.3)",Ot.beginPath(),Ot.moveTo(At[0][0],At[0][1]);for(let Rt=1;Rt<At.length;Rt+=1){const[zt,Tt]=At[Rt];Ot.lineTo(zt,Tt)}Ot.closePath(),Ot.fill()}}};et.onload=()=>xt(et),et.complete&&xt(et)},[et,tt,rt,nt,lt,ut]),jsxRuntimeExports.jsx("canvas",{ref:ut})}const getPages=et=>{const tt=[];for(const rt of Object.values(et))for(const nt in rt.page_image_urls)tt.push({page_index:parseInt(nt),document_id:rt.document_id,report_types:rt.report_types,max_report_date:rt.max_report_date,url:rt.page_image_urls[nt],width:rt.page_dimensions[nt][0],img:null});return tt},getHighlightFeatures=et=>{const tt=[];for(const rt of et)if(rt!=="GEOMETRYCOLLECTION EMPTY"){const nt=wktToGeoJSON(rt);nt.type==="Polygon"?tt.push(polygon(nt.coordinates)):nt.type==="MultiPolygon"&&tt.push(multiPolygon(nt.coordinates))}return tt},DocumentViewer=({documents:et,highlights:tt,loading:rt})=>{const{pageIndex:nt,setPageIndex:lt,indexLock:ut,setIndexLock:dt,pages:pt,setPages:ht,setFieldSelected:mt,clinexModalOpen:xt,setClinexModalOpen:Mt}=reactExports.useContext(ClinexContext),[vt,Ot]=reactExports.useState([]),[At,Rt]=reactExports.useState(1200),Tt=useWindowSize().width<1900,Ct=()=>{const Nt=$(".page-view .page-image-viewer").width();Nt!==void 0&&Rt(Nt)};if(reactExports.useEffect(()=>(setTimeout(()=>{Ct()},1e3),$(window).on("resize",Ct),()=>{$(window).off("resize",Ct)})),reactExports.useEffect(()=>{const Nt=getPages(et);ht(Nt),lt(0),dt(!1),Nt.forEach(Yt=>{Yt.img=new Image,Yt.img.src=Yt.url}),$(window).trigger("resize")},[et]),reactExports.useEffect(()=>{dt(!1)},[tt]),reactExports.useEffect(()=>{if(nt>=pt.length)return;const Nt=pt[nt].document_id;let Yt=[];if(Nt in tt&&(Yt=getHighlightFeatures(tt[Nt][pt[nt].page_index])),Ot(Yt),!ut&&Yt.length===0)for(const Kt in pt){const Jt=pt[Kt];if(Jt.document_id in tt&&(Yt=getHighlightFeatures(tt[Jt.document_id][Jt.page_index]),Yt.length>0)){lt(parseInt(Kt));break}}},[pt,nt,ut,tt]),rt||nt>=pt.length)return jsxRuntimeExports.jsx("div",{className:"card card-default",children:jsxRuntimeExports.jsx("div",{className:"card-body extracted-labels",style:{textAlign:"center"},children:jsxRuntimeExports.jsx(CircularProgress,{color:"primary"})})});const It=(Nt,Yt)=>{lt(Yt-1),dt(!0)},Dt=jsxRuntimeExports.jsx("div",{className:"card card-default page-view",children:jsxRuntimeExports.jsx("div",{className:"page-image-viewer",children:jsxRuntimeExports.jsx(PageImageViewer,{img:pt[nt].img,features:vt,width:At,imgWidth:pt[nt].width,loading:rt})})}),kt=jsxRuntimeExports.jsx(Pagination$1,{sx:{alignSelf:"center",margin:"8px 0"},count:pt.length,color:"primary",page:nt+1,onChange:It});if(!Tt)return jsxRuntimeExports.jsxs("div",{className:"desktop-view-container",children:[kt,jsxRuntimeExports.jsx("div",{className:"card-default page-view desktop-view",children:jsxRuntimeExports.jsx("div",{className:"page-image-viewer",children:jsxRuntimeExports.jsx(PageImageViewer,{img:pt[nt].img,features:vt,width:At,imgWidth:pt[nt].width,loading:rt})})})]});const qt=()=>{Mt(!1),mt(null)};return jsxRuntimeExports.jsxs(Dialog,{maxWidth:"lg",fullWidth:!0,open:xt,onClose:qt,children:[jsxRuntimeExports.jsx(DialogTitle,{sx:{marginLeft:"auto",marginRight:"auto"},children:kt}),jsxRuntimeExports.jsx(DialogContent,{children:Dt}),jsxRuntimeExports.jsx(DialogActions,{children:jsxRuntimeExports.jsx(DialogButton,{onClick:qt,children:"Close"})})]})},ROPatientDiagnosisSidePanel=()=>{var Jt;const{pathname:et}=useLocation(),[tt,rt]=reactExports.useState(!0),nt=et.split("/"),lt=nt[7]||"create",ut=["intake","tnmstaging"],dt=!nt.some(Qt=>ut.includes(Qt)),{setError:pt}=useErrorModalContext(),{setClinexData:ht,setClinexDocuments:mt,setUuid:xt,clinexDocuments:Mt,highlights:vt,showClinexDocument:Ot,setShowClinexDocument:At,intakeFieldsLoaded:Rt}=reactExports.useContext(ClinexContext),{data:zt,refetch:Tt}=useQuery(CLINEX_DIAGNOSIS_DATA,{variables:{diagnosisId:lt},skip:!lt||lt==="create"||dt,fetchPolicy:"network-only"}),{loading:Ct,error:It,data:Dt,refetch:kt}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:lt},skip:!lt||lt==="create"}),qt=(Jt=zt==null?void 0:zt.clinexDiagnosisDataFull)==null?void 0:Jt.diagnosisData,Nt=qt&&JSON.parse(qt),Kt=useWindowSize().width<1900;return reactExports.useEffect(()=>{lt&&lt!=="create"&&kt().then(({data:Qt})=>{var Bt,Ft;((Bt=Qt==null?void 0:Qt.diagnosis)==null?void 0:Bt.isPrimaryDiagnosis)===!1&&((Ft=Qt.diagnosis.relatedPrimaryDiagnosis)!=null&&Ft.id)&&Tt({diagnosisId:Qt.diagnosis.relatedPrimaryDiagnosis.id})})},[et]),reactExports.useEffect(()=>{if(Nt!=null&&Nt.response_uuid&&xt(Nt.response_uuid),Nt!=null&&Nt.data){const Qt=Object.keys(Nt.data).filter(Ft=>Nt.data[Ft]&&Ft!=="tumour_stream"),Bt=Qt.length&&Qt.reduce((Ft,$t)=>(Ft={...Ft,[$t]:Nt.data[$t]},Ft),{});Bt&&Nt.documents&&(ht(Bt),mt(Nt.documents),rt(!1),et.includes("intake")&&!Rt?At(!1):At(!0))}else At(!1),ht()},[zt,et,Rt]),reactExports.useEffect(()=>{if(It)return pt()},[It]),Ct||!Dt?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx("div",{className:classNames$1("side-panel-diag",{"hide-side-panel-diag":Kt,clinex:Ot}),children:jsxRuntimeExports.jsx(ROSidePanel,{isClinex:Ot&&!dt,children:!dt&&Ot&&jsxRuntimeExports.jsx(DocumentViewer,{documents:Mt,highlights:vt,loading:tt})})})},actions=(et,tt)=>{switch(tt.type){case DiagnosisActionType.REPLACE_CURRENT_DIAGNOSIS:return{...et,diagnosis:{...tt.payload.diagnosis}};case DiagnosisActionType.SET_DIAGNOSIS:return{...et,diagnosis:tt.payload.diagnosis};case DiagnosisActionType.SET_INTAKE:return{...et,intake:tt.payload.intake};case DiagnosisActionType.SET_NEW_PRIMARY:return et.diagnosis.isPrimaryDiagnosis?{...et,newPrimary:!0,diagnosis:{...et.diagnosis,id:"",diagnosisCode:null,stageMCodeClinical:null,stageMCodePathological:null,stageNCodeClinical:null,stageNCodePathological:null,stageTCodeClinical:null,stageTCodePathological:null,diagnosisDate:"",laterality:""}}:{...et,newPrimary:!0,diagnosis:{...et.diagnosis,relatedPrimaryDiagnosis:{...DEFAULT_DIAGNOSIS_TYPE,isPrimaryDiagnosis:!0}}};case DiagnosisActionType.SET_NEW_METASTASIS:return{...et,newSecondary:!0,diagnosis:{...et.diagnosis,id:"",diagnosisCode:null,relatedPrimaryDiagnosis:null,stageMCodeClinical:null,stageMCodePathological:null,stageNCodeClinical:null,stageNCodePathological:null,stageTCodeClinical:null,stageTCodePathological:null,diagnosisDate:"",laterality:""}};case DiagnosisActionType.CREATE_DIAGNOSIS:return{...et,creatingDiagnosis:!0};case DiagnosisActionType.COMPLETED_CREATING_DIAGNOSIS:return{...et,creatingDiagnosis:!1,createDiagnosisOnly:!1};case DiagnosisActionType.CREATE_DIAGNOSIS_ONLY:return{...et,creatingDiagnosis:!0,createDiagnosisOnly:!0};case DiagnosisActionType.RESET:return{creatingDiagnosis:!1,createDiagnosisOnly:!1,newSecondary:!1,newPrimary:!1,diagnosis:{ajccMajorVersion:"",id:"",stageType:"",stageTCodePathological:null,stageMCodePathological:null,stageNCodePathological:null,stageTCodeClinical:null,stageMCodeClinical:null,stageNCodeClinical:null,morphology:null,otherInfo:"",laterality:"",diagnosisDate:"",diagnosisCode:null,isPrimaryDiagnosis:tt.payload.isPrimaryDiagnosis!==void 0?tt.payload.isPrimaryDiagnosis:null,relatedPrimaryDiagnosis:null,draft:!0,hasTreatmentStarted:!1,metastasisLaterality:"",metastasisDiagnosisDate:"",disease:void 0},intake:{lung:null,urogenital:null,breast:null,lymphoma:null,headAndNeck:null}};default:return et}},ROPatientDiagnosisPage=()=>{const[et,tt]=reactExports.useReducer(actions,DEFAULT_DIAGNOSIS_STATE),[rt,nt]=reactExports.useState(!0),lt=reactExports.useMemo(()=>({state:et,dispatch:tt}),[et,tt]);return jsxRuntimeExports.jsx(ROPortalDiagnosisContext.Provider,{value:lt,children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",flex:"1",overflow:"auto",children:[jsxRuntimeExports.jsx(ROPatientDiagnosisRouter,{onDataRefresh:()=>nt(!rt)}),jsxRuntimeExports.jsx(ROPatientDiagnosisSidePanel,{})]})})},OAR_FRAGMENT=gql`
  fragment OrganAtRisk on RoOrganAtRiskType {
    organ
    maxValue
    maxValueUnit
    meanValue
    meanValueUnit
    alara
    prioritized
    volumeConstraintData {
      firstValue
      firstValueUnit
      secondValue
      secondValueUnit
      operator
    }
    dConstraintData {
      dosetoPrefixOperator
      firstValue
      firstValueUnit
      secondValue
      secondValueUnit
      operator
    }
  }
`,OAR_QUERY=gql`
  ${OAR_FRAGMENT}
  query roOrganAtRisk($siteGroupId: ID!) {
    roOrganAtRisk(siteGroupId: $siteGroupId) {
      ...OrganAtRisk
    }
  }
`;gql`
  ${OAR_FRAGMENT}
  query templateOrganAtRisk($templateId: ID!) {
    templateOrganAtRisk(templateId: $templateId) {
      ...OrganAtRisk
    }
  }
`;const ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION=gql`
  ${OAR_FRAGMENT}
  query organAtRiskTemplateValuesVariation($siteGroupId: ID!) {
    organAtRiskTemplateValuesVariation(siteGroupId: $siteGroupId) {
      templateId
      ...OrganAtRisk
    }
  }
`,ADD_OAR=gql`
  ${OAR_FRAGMENT}
  mutation roCreateOrganAtRisk(
    $siteGroupId: ID!
    $alara: Boolean
    $organ: String
    $volumeConstraintData: [RoOrganAtRiskConstraintInputType]
    $dConstraintData: [RoOrganAtRiskConstraintInputType]
    $maxValue: [Float]
    $maxValueUnit: String
    $meanValue: [Float]
    $meanValueUnit: String
  ) {
    roCreateOrganAtRisk(
      siteGroupId: $siteGroupId
      alara: $alara
      organ: $organ
      maxValue: $maxValue
      maxValueUnit: $maxValueUnit
      meanValue: $meanValue
      meanValueUnit: $meanValueUnit
      volumeConstraintData: $volumeConstraintData
      dConstraintData: $dConstraintData
    ) {
      organAtRisk {
        siteGroupId
        ...OrganAtRisk
      }
    }
  }
`,UPDATE_OAR=gql`
  ${OAR_FRAGMENT}
  mutation roUpdateOrganAtRisk(
    $siteGroupId: ID!
    $index: ID!
    $alara: Boolean
    $organ: String
    $volumeConstraintData: [RoOrganAtRiskConstraintInputType]
    $dConstraintData: [RoOrganAtRiskConstraintInputType]
    $maxValue: [Float]
    $maxValueUnit: String
    $meanValue: [Float]
    $meanValueUnit: String
  ) {
    roUpdateOrganAtRisk(
      siteGroupId: $siteGroupId
      index: $index
      alara: $alara
      organ: $organ
      maxValue: $maxValue
      maxValueUnit: $maxValueUnit
      meanValue: $meanValue
      meanValueUnit: $meanValueUnit
      volumeConstraintData: $volumeConstraintData
      dConstraintData: $dConstraintData
    ) {
      organAtRisk {
        siteGroupId
        ...OrganAtRisk
      }
    }
  }
`,GET_ORGAN_LIST=gql`
  query organList {
    oarOrganList {
      id
      organ
    }
  }
`,REODER_OAR=gql`
  mutation roReorderOrganAtRisk(
    $siteGroupId: ID!
    $sourcePrioritized: Boolean!
    $sourceIndex: Int!
    $destinationPrioritized: Boolean!
    $destinationIndex: Int!
  ) {
    roReorderOrganAtRisk(
      siteGroupId: $siteGroupId
      sourcePrioritized: $sourcePrioritized
      destinationPrioritized: $destinationPrioritized
      sourceIndex: $sourceIndex
      destinationIndex: $destinationIndex
    ) {
      ok
    }
  }
`,DELETE_OAR=gql`
  mutation roDeleteOrganAtRisk($siteGroupId: ID!, $index: ID!) {
    roDeleteOrganAtRisk(siteGroupId: $siteGroupId, index: $index) {
      ok
    }
  }
`,RESET_OAR=gql`
  mutation roResetOrganAtRisk($siteGroupId: ID!, $organ: String!) {
    roResetOrganAtRisk(siteGroupId: $siteGroupId, organ: $organ) {
      success
    }
  }
`,Table=styled$1("table")`
  width: 100%;
  border-collapse: separate !important;
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-top: 24px;
`,TableHeader=styled$1("th")`
  padding: 16px;
  text-align: start;
  background: ${et=>et.theme.palette.grey[100]};
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  font-weight: normal;
`,TableBodyData=styled$1("td")`
  padding: 16px;
  line-height: 20px;
`,LESS_THAN_OR_EQUAL="≤";let pressedContinue$4=!1;const isFieldValid$4=et=>pressedContinue$4?validateField(et):!0,sanitizeConstraintData=et=>({...et,firstValue:parseFloat(et.firstValue.toString()),secondValue:et.secondValue.map(tt=>parseFloat(tt.toString()))}),OrgansAtRiskPopup=et=>{const{setError:tt}=useErrorModalContext(),rt=useTheme$1(),[,nt]=reactExports.useState(),lt=reactExports.useCallback(()=>nt({}),[]),{doseUnit:ut}=reactExports.useContext(TenantContext);reactExports.useEffect(()=>{pressedContinue$4=!1,lt()},[]);const dt=Ut=>({siteGroupId:Ut.siteGroupId,index:et.index,organ:Ut.organ,volumeData:Ut.volumeConstraintData&&Ut.volumeConstraintData.length?Ut.volumeConstraintData.map(Vt=>({firstValue:decimalFormatter$1(Vt.firstValue),firstValueUnit:Vt.firstValueUnit,operator:Vt.operator,secondValue:Vt.secondValue,secondValueUnit:Vt.secondValueUnit,isVolumeData:!0})):[{firstValue:"",firstValueUnit:ut,operator:LESS_THAN_OR_EQUAL,secondValue:[],secondValueUnit:"%"}],dData:Ut.dConstraintData&&Ut.dConstraintData.length?Ut.dConstraintData.map(Vt=>({dosetoPrefixOperator:Vt.dosetoPrefixOperator||null,firstValue:decimalFormatter$1(Vt.firstValue),firstValueUnit:Vt.firstValueUnit,operator:Vt.operator,secondValue:Vt.secondValue,secondValueUnit:Vt.secondValueUnit,isVolumeData:!1})):[{dosetoPrefixOperator:"",firstValue:"",firstValueUnit:"%",operator:LESS_THAN_OR_EQUAL,secondValue:[],secondValueUnit:ut}],maxValue:Ut.maxValue||[],maxValueUnit:Ut.maxValueUnit!==null?Ut.maxValueUnit:ut,meanValueUnit:Ut.meanValueUnit!==null?Ut.meanValueUnit:ut,meanValue:Ut.meanValue||[],validated:!0,modalShow:!0,alara:Ut.alara,isVisible:!0,isEdit:!0}),pt={siteGroupId:et.data&&Object.keys(et.data).length&&et.data.id?et.data.id:et.siteGroupId,index:et.index,organ:"",maxValue:[""],meanValue:[""],maxValueUnit:ut,meanValueUnit:ut,volumeData:[{firstValue:"",firstValueUnit:ut,operator:LESS_THAN_OR_EQUAL,secondValue:[],secondValueUnit:"%"}],dData:[{firstValue:"",firstValueUnit:"%",operator:LESS_THAN_OR_EQUAL,secondValue:[],secondValueUnit:ut}],validated:!1,modalShow:!0,alara:!1,isVisible:!0,isEdit:!1},[ht,mt]=reactExports.useState(et!=null&&et.data?dt(et.data):pt),[xt]=reactExports.useState(!1),[Mt]=reactExports.useState(""),[vt]=useMutation(ADD_OAR,{refetchQueries:[{query:OAR_QUERY,variables:{siteGroupId:et.siteGroupId}},{query:ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:et.siteGroupId}},{query:SITE_GROUP_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:et.siteGroupId}},{query:SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,variables:{siteGroupId:et.siteGroupId,volumingPage:!0}},{query:GET_CAREPLAN,variables:{id:et.careplanId}}]}),[Ot]=useMutation(RESET_OAR,{refetchQueries:[{query:OAR_QUERY,variables:{siteGroupId:et.siteGroupId}},{query:ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:et.siteGroupId}},{query:SITE_GROUP_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:et.siteGroupId}},{query:GET_CAREPLAN,variables:{id:et.careplanId}},{query:SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,variables:{siteGroupId:et.siteGroupId,volumingPage:!0}}],onCompleted:()=>{et.reload&&et.reload()}});reactExports.useEffect(()=>{et.data&&mt({state:ht,...dt(et.data)})},[et.data]);const[At]=useMutation(UPDATE_OAR,{refetchQueries:[{query:OAR_QUERY,variables:{siteGroupId:et.siteGroupId}},{query:ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:et.siteGroupId}},{query:SITE_GROUP_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:et.siteGroupId}},{query:GET_CAREPLAN,variables:{id:et.careplanId}},{query:SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,variables:{siteGroupId:et.siteGroupId,volumingPage:!0}}]}),{loading:Rt,data:zt,error:Tt}=useQuery(GET_ORGAN_LIST);if(reactExports.useEffect(()=>{if(Tt)return tt()},[Tt]),Rt)return jsxRuntimeExports.jsx("div",{children:"Loading...."});const Ct=zt.oarOrganList.map(Ut=>({label:Ut.organ,value:Ut.organ})),It=()=>(et.hidePopup(),mt({...ht,isVisible:!1})),Dt=()=>{(!Array.isArray(ht.meanValue)||ht.meanValue.length===1&&ht.meanValue[0]==="")&&(ht.meanValue=null),(!Array.isArray(ht.maxValue)||ht.maxValue.length===1&&ht.maxValue[0]==="")&&(ht.maxValue=null),ht.volumeData=ht.volumeData.filter(Ut=>Ut.firstValue||Ut.secondValue&&Ut.secondValue.length),ht.dData=ht.dData.filter(Ut=>Ut.firstValue||Ut.secondValue&&Ut.secondValue.length),vt({variables:{siteGroupId:et.siteGroupId,organ:ht.organ,volumeConstraintData:ht.volumeData.map(Ut=>sanitizeConstraintData(Ut)),dConstraintData:ht.dData.map(Ut=>sanitizeConstraintData(Ut)),maxValue:parseFloat(ht.maxValue)||null,maxValueUnit:ht.maxValueUnit||ut,meanValue:parseFloat(ht.meanValue)||null,meanValueUnit:ht.meanValueUnit||ut,alara:ht.alara}}),et.hidePopup()},kt=()=>{(!Array.isArray(ht.meanValue)||ht.meanValue.length<=1&&ht.meanValue[0]==="")&&(ht.meanValue=null),(!Array.isArray(ht.maxValue)||ht.maxValue.length<=1&&ht.maxValue[0]==="")&&(ht.maxValue=null),ht.volumeData=ht.volumeData.filter(Ut=>Ut.firstValue||Ut.secondValue&&Ut.secondValue.length),ht.dData=ht.dData.filter(Ut=>Ut.firstValue||Ut.secondValue&&Ut.secondValue.length),At({variables:{siteGroupId:et.siteGroupId,index:et.index,organ:ht.organ,volumeConstraintData:ht.volumeData.map(Ut=>sanitizeConstraintData(Ut)),dConstraintData:ht.dData.map(Ut=>sanitizeConstraintData(Ut)),maxValue:parseFloat(ht.maxValue)||null,maxValueUnit:ht.maxValueUnit||null,meanValue:parseFloat(ht.meanValue)||null,meanValueUnit:ht.meanValueUnit||null,alara:ht.alara}}),et.hidePopup()},qt=()=>{const Ut=ht.volumeData;Ut.push({firstValue:null,firstValueUnit:ut,operator:LESS_THAN_OR_EQUAL,secondValue:null,secondValueUnit:"%"}),mt({...ht,volumeData:Ut})},Nt=()=>{const Ut=ht.dData;Ut.push({dosetoPrefixOperator:"",firstValue:null,firstValueUnit:"%",operator:LESS_THAN_OR_EQUAL,secondValue:null,secondValueUnit:ut}),mt({...ht,dData:Ut})},Yt=Ut=>{const Vt=ht.volumeData;Vt.splice(Ut,1),mt({...ht,volumeData:Vt})},Kt=Ut=>{const Vt=ht.dData;Vt.splice(Ut,1),mt({...ht,dData:Vt})},Jt=()=>{const Ut=(er,nr)=>{const or=[];return er.forEach(rr=>{if(rr.firstValue&&rr.secondValue&&rr.secondValue[0]){const cr=`${rr!=null&&rr.dosetoPrefixOperator?rr==null?void 0:rr.dosetoPrefixOperator:nr}${rr.firstValue}${rr.firstValueUnit} ${rr.operator} ${rr.secondValue.join("/")}${rr.secondValueUnit}`;or.push(cr)}}),or},Vt=er=>{const nr=er.toLowerCase();return ht[`${nr}Value`]&&ht[`${nr}Value`][0]?[`${er} ≤ ${ht[`${nr}Value`][0]} ${ht[`${nr}ValueUnit`]}`]:[]},Ht=Ut(ht.volumeData,"V"),Gt=Ut(ht.dData,"D"),Zt=Vt("Mean"),Xt=Vt("Max");return[...Ht,...Gt,...Zt,...Xt]},Qt=et.organsInUse.map(Ut=>{if(Ut.toLowerCase()!==`${ht.organ.toLowerCase()}`)return Ut.toLowerCase()}),Bt=Ct.filter(Ut=>!Qt.includes(Ut.value.toLowerCase())),Ft=Jt(),$t="Not specified",jt=[{value:ut,label:ut},{value:"%",label:"%"}],Wt=jsxRuntimeExports.jsxs("div",{id:"oar-modal",children:[jsxRuntimeExports.jsx("div",{className:"organ-select",children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",children:[jsxRuntimeExports.jsx(Typography,{sx:{width:"200px"},variant:"subtitle1",children:"Organ*"}),jsxRuntimeExports.jsx(BaseAutocomplete,{id:"organName",options:Bt,value:ht.organ&&Ct.find(Ut=>Ut.value.toLowerCase()===ht.organ.toLowerCase()),onChange:Ut=>{const Vt=typeof Ut=="string"?Ut:Ut==null?void 0:Ut.value;mt({...ht,organ:Vt||""})},inputProps:{error:!isFieldValid$4(ht.organ)},sx:{width:"506px"}})]})}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"12px 0"}}),jsxRuntimeExports.jsx(ROConstraintField,{id:"volumeData",label:"Volume",value:ht.volumeData,onChange:(Ut,Vt)=>{ht.volumeData[Ut]=Vt||null,mt({...ht})},validated:xt,invalid:!Mt,readOnly:ht.alara,addConstraint:qt,removeConstraint:Yt,isVolumeData:!0}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"12px 0"}}),jsxRuntimeExports.jsx(ROConstraintField,{id:"dData",label:"D",value:ht.dData,onChange:(Ut,Vt)=>{ht.dData[Ut]=Vt||null,mt({...ht})},validated:xt,invalid:!Mt,readOnly:ht.alara,addConstraint:Nt,removeConstraint:Kt,isVolumeData:!1}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"12px 0"}}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:1,alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{sx:{width:"172px"},variant:"subtitle1",children:"Max"}),jsxRuntimeExports.jsx(Typography,{sx:{width:"10px"},variant:"body1",children:"≤"}),jsxRuntimeExports.jsx(ROTwoValueTextField,{id:"oar-max",value:ht.maxValue,readOnly:ht.alara,onChange:Ut=>{mt({...ht,maxValue:Ut})}}),jsxRuntimeExports.jsx(BaseSelect,{id:"maxValueUnit",options:jt,onChange:Ut=>{var Ht;const Vt=(Ht=Ut==null?void 0:Ut.target)==null?void 0:Ht.value;ht.alara||mt({...ht,maxValueUnit:Vt})},value:ht.maxValueUnit,disabled:ht.alara,sx:{width:"120px"}})]}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"12px 0"}}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:1,alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{sx:{width:"172px"},variant:"subtitle1",children:"Mean"}),jsxRuntimeExports.jsx(Typography,{sx:{width:"10px"},variant:"body1",children:"≤"}),jsxRuntimeExports.jsx(ROTwoValueTextField,{id:"oar-mean",value:ht.meanValue,readOnly:ht.alara,onChange:Ut=>{mt({...ht,meanValue:Ut})}}),jsxRuntimeExports.jsx(BaseSelect,{id:"meanValueUnit",options:jt,onChange:Ut=>{var Ht;const Vt=(Ht=Ut==null?void 0:Ut.target)==null?void 0:Ht.value;ht.alara||mt({...ht,meanValueUnit:Vt})},value:ht.meanValueUnit,disabled:ht.alara,sx:{width:"120px"}})]}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"12px 0"}}),jsxRuntimeExports.jsx(Grid,{container:!0,children:jsxRuntimeExports.jsx(Grid,{item:!0,xs:7,children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",height:"40px",children:[jsxRuntimeExports.jsx(Typography,{sx:{width:"200px"},variant:"subtitle1",children:"ALARA"}),jsxRuntimeExports.jsx(Button,{id:"alara",sx:{color:ht.alara?rt.palette.primary.main:rt.palette.grey[600],borderColor:ht.alara?rt.palette.primary.main:rt.palette.grey[600],borderRadius:"8px",backgroundColour:"white",border:"2px solid",outlineColor:rt.palette.grey[300],width:"152px"},onClick:()=>{mt({...pt,organ:ht.organ,alara:!ht.alara})},children:"ALARA"})]})})}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"12px 0"}}),jsxRuntimeExports.jsxs(Table,{"data-test-id":"organs-at-risk-popup-table",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx(TableHeader,{children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Organ (Preview)"})}),jsxRuntimeExports.jsx(TableHeader,{children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Constraint (Preview)"})})]})}),jsxRuntimeExports.jsx("tbody",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx(TableBodyData,{children:ht.organ||$t}),jsxRuntimeExports.jsx(TableBodyData,{children:Ft.length&&Ft.map(Ut=>jsxRuntimeExports.jsx("div",{children:Ut},Ut))||$t})]})})]})]});return jsxRuntimeExports.jsx(StandardDialog,{open:et.isVisible,onClose:It,maxWidth:"md",fullWidth:!0,title:`${et.isEdit?"Edit":"Add"} Organ At Risk Constraint`,onSubmit:()=>{pressedContinue$4=!0,lt(),isFieldValid$4(ht.organ)&&(et.isEdit?kt():Dt())},submitText:"Confirm",onSecondarySubmit:()=>{et.data?(mt({...dt(et.data)}),Ot({variables:{siteGroupId:et.siteGroupId,organ:ht.organ}})):mt({...pt,organ:ht.organ})},secondarySubmitText:"Reset Values",children:Wt})},OrgansAtRiskRow$1=({organName:et,constraints:tt,siteGroupId:rt,careplanId:nt,editPopup:lt,index:ut})=>{const dt=useTheme$1(),[pt,{loading:ht}]=useMutation(DELETE_OAR,{awaitRefetchQueries:!0,refetchQueries:[{query:OAR_QUERY,variables:{siteGroupId:rt}},{query:SITE_GROUP_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:rt}},{query:SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,variables:{siteGroupId:rt,volumingPage:!0}},{query:GET_CAREPLAN,variables:{id:nt}}]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("tr",{className:"no-border-table-row",children:jsxRuntimeExports.jsx("td",{})}),jsxRuntimeExports.jsxs("tr",{className:"oar-table-row",children:[jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(Typography,{variant:"body1",children:et})}),jsxRuntimeExports.jsx("td",{children:tt.map((mt,xt)=>jsxRuntimeExports.jsx(Typography,{variant:"body1",children:mt},xt))}),jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(Button,{onClick:()=>lt(),variant:"text",sx:{"&:hover":{".MuiSvgIcon-root":{color:dt.palette.primary.light}}},"data-testid":`edit-oar-button-${ut}`,startIcon:jsxRuntimeExports.jsx(Edit,{color:"primary"}),children:jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"Edit"})})}),jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(Button,{onClick:()=>pt({variables:{siteGroupId:rt,index:ut}}),variant:"text",sx:{"&:hover":{".MuiSvgIcon-root":{color:dt.palette.error.light}}},"data-testid":`delete-oar-button-${ut}`,startIcon:jsxRuntimeExports.jsx(DeleteOutline,{color:"error"}),disabled:ht,children:jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"Delete"})})})]})]})},formatToTwoDecimal$1=new Intl.NumberFormat("en-US",{style:"decimal",useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:2}),decimalFormatter$1=et=>et&&formatToTwoDecimal$1.format(et),OAR_VARIATION_MESSAGE="OAR(s) have varied from template",WarningIcon=()=>jsxRuntimeExports.jsx("i",{className:"icon icon-form-warning"}),OrganWarning=()=>jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsxs("td",{className:"ro-oar-warning",children:[jsxRuntimeExports.jsx(WarningIcon,{}),VARIATION_MESSAGE]})}),OrgansAtRiskModule$1=et=>{const{setError:tt}=useErrorModalContext();useTheme$1();const[rt,nt]=reactExports.useState({modalShow:!1,oarData:null,editOarIndex:-1}),lt=et==null?void 0:et.cpotTriggered,{doseUnit:ut}=reactExports.useContext(TenantContext),{loading:dt,data:pt,error:ht}=useQuery(OAR_QUERY,{fetchPolicy:"network-only",variables:{siteGroupId:et.siteGroupId}});reactExports.useEffect(()=>{rt.editOarIndex!==-1&&pt&&pt.roOrganAtRisk&&nt({...rt,oarData:pt.roOrganAtRisk[rt.editOarIndex]})},[pt]);const{data:mt,error:xt}=useQuery(ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION,{variables:{siteGroupId:et.siteGroupId},skip:dt||!pt||lt});reactExports.useEffect(()=>{if(ht||xt)return tt()},[ht,xt]);const Mt=()=>{if(mt&&pt&&mt.organAtRiskTemplateValuesVariation&&pt.roOrganAtRisk){const qt=mt.organAtRiskTemplateValuesVariation.map(Yt=>Yt.organ).filter(Boolean),Nt=pt.roOrganAtRisk.map(Yt=>Yt.organ);if(!qt.length)return!1;if(Nt.length===qt.length){for(let Yt=0;Yt<qt.length;Yt++)if(!Nt.includes(qt[Yt]))return!0}else return!0}return!1},vt=(qt,Nt,Yt,Kt=[])=>{if(!qt.hasOwnProperty(Nt)){qt[Nt]=Yt;return}Kt.includes(qt==null?void 0:qt[Nt])&&(qt[Nt]=Yt)},Ot=qt=>{if(mt&&pt&&mt.organAtRiskTemplateValuesVariation&&qt){if(mt.organAtRiskTemplateValuesVariation.filter(Kt=>!!Kt.templateId).length)return!0;const Yt=lodash.omit(lodash.clone(mt.organAtRiskTemplateValuesVariation.find(Kt=>Kt.organ==qt.organ)),["templateId"]);if(Yt)return vt(Yt,"alara",!1,[]),vt(qt,"alara",!1,[]),vt(Yt,"meanValue",[],[null]),vt(qt,"meanValue",[],[null]),vt(Yt,"meanValueUnit",ut,[null]),vt(qt,"meanValueUnit",ut,[null]),vt(Yt,"maxValue",[],[null]),vt(qt,"maxValue",[],[null]),vt(Yt,"maxValueUnit",ut,[null]),vt(qt,"maxValueUnit",ut,[null]),vt(Yt,"volumeConstraintData",[],[null]),vt(qt,"volumeConstraintData",[],[null]),vt(Yt,"dConstraintData",[],[null]),vt(qt,"dConstraintData",[],[null]),JSON.stringify(Yt)!==JSON.stringify(qt)}return!1},At=()=>nt({...rt,modalShow:!0}),Rt=()=>nt({...rt,oarData:null,editOarIndex:-1,modalShow:!1}),zt=()=>{nt({...rt,oarData:pt.roOrganAtRisk[rt.editOarIndex]})},Tt=qt=>jsxRuntimeExports.jsx(OrgansAtRiskPopup,{isVisible:rt.modalShow,hidePopup:Rt,popup:At,siteGroupId:et.siteGroupId,careplanId:et.careplanId,organsInUse:qt}),Ct=(qt,Nt)=>jsxRuntimeExports.jsx(OrgansAtRiskPopup,{isVisible:rt.modalShow,hidePopup:Rt,popup:At,isEdit:!0,reload:zt,siteGroupId:et.siteGroupId,careplanId:et.careplanId,index:Nt,data:rt.oarData,organsInUse:qt}),It=["Organ","Constraint","Action",""];if(dt)return jsxRuntimeExports.jsx("div",{children:"Loading..."});if(!pt)return jsxRuntimeExports.jsx("div",{children:"Error loading..."});const Dt=pt.roOrganAtRisk.map(qt=>qt.organ),kt=qt=>nt({modalShow:!0,oarData:pt.roOrganAtRisk[qt],editOarIndex:qt});return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Mt()&&jsxRuntimeExports.jsxs("div",{className:"ro-oar-warning",children:[jsxRuntimeExports.jsx(WarningIcon,{}),OAR_VARIATION_MESSAGE]}),jsxRuntimeExports.jsxs("div",{className:"vertical-column-oar-flex",children:[!!pt.roOrganAtRisk.length&&jsxRuntimeExports.jsxs("table",{className:"oar-table-block","data-test-id":"voluming-oar-table",children:[jsxRuntimeExports.jsx("thead",{className:"oar-table-heading",children:jsxRuntimeExports.jsx("tr",{className:"oar-table-heading-item",children:It.map(qt=>jsxRuntimeExports.jsx("th",{children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:qt})},qt))})}),jsxRuntimeExports.jsx("tbody",{children:pt.roOrganAtRisk.map((qt,Nt)=>{let Yt=[];return qt.volumeConstraintData&&(Yt=[...qt.volumeConstraintData.map(Kt=>`V${decimalFormatter$1(Kt.firstValue)||" "}${Kt.firstValueUnit} ${Kt.operator} ${Kt.secondValue&&Kt.secondValue.join("/")||" "}${Kt.secondValueUnit}`)]),qt.dConstraintData&&(Yt=[...Yt,...qt.dConstraintData.map(Kt=>`${Kt.dosetoPrefixOperator||"D"}${decimalFormatter$1(Kt.firstValue)||" "}${Kt.firstValueUnit} ${Kt.operator} ${Kt.secondValue&&Kt.secondValue.join("/")||" "}${Kt.secondValueUnit}`)]),qt.maxValue&&qt.maxValue.length&&(Yt=[...Yt,`Max ≤ ${qt.maxValue&&qt.maxValue.join("/")||" "}${qt.maxValueUnit}`]),qt.meanValue&&qt.meanValue.length&&(Yt=[...Yt,`Mean ≤ ${qt.meanValue&&qt.meanValue.join("/")||" "}${qt.meanValueUnit}`]),qt.alara&&(Yt=["ALARA"]),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(OrgansAtRiskRow$1,{itemId:qt.id,isVisible:rt.modalShow,editPopup:()=>kt(Nt),hidePopup:Rt,popup:At,organName:qt.organ,...qt,constraints:Yt,organsInUse:Dt,siteGroupId:et.siteGroupId,careplanId:et.careplanId,index:Nt},`${qt.organ}-${Nt}`),Ot({...qt})&&jsxRuntimeExports.jsx(OrganWarning,{},`warning-${Nt}`)]},`fragment-${Nt}`)})})]}),rt.modalShow&&(rt.oarData?Ct(Dt,rt.editOarIndex):Tt(Dt)),jsxRuntimeExports.jsx("div",{className:"oar-table-block oar-padding",children:jsxRuntimeExports.jsx(Button,{onClick:()=>{At()},"data-testid":"add-additional-oar",variant:"outlined",startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),children:"Add additional OAR"})})]})]})};function formatProdErrorMessage$1(et){return`Minified Redux error #${et}; visit https://redux.js.org/Errors?code=${et} for the full message or use the non-minified dev environment for full errors. `}var $$observable$1=typeof Symbol=="function"&&Symbol.observable||"@@observable",symbol_observable_default=$$observable$1,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes$1={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes$1;function isPlainObject$1(et){if(typeof et!="object"||et===null)return!1;let tt=et;for(;Object.getPrototypeOf(tt)!==null;)tt=Object.getPrototypeOf(tt);return Object.getPrototypeOf(et)===tt||Object.getPrototypeOf(et)===null}function createStore$3(et,tt,rt){if(typeof et!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof tt=="function"&&typeof rt=="function"||typeof rt=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof tt=="function"&&typeof rt>"u"&&(rt=tt,tt=void 0),typeof rt<"u"){if(typeof rt!="function")throw new Error(formatProdErrorMessage$1(1));return rt(createStore$3)(et,tt)}let nt=et,lt=tt,ut=new Map,dt=ut,pt=0,ht=!1;function mt(){dt===ut&&(dt=new Map,ut.forEach((zt,Tt)=>{dt.set(Tt,zt)}))}function xt(){if(ht)throw new Error(formatProdErrorMessage$1(3));return lt}function Mt(zt){if(typeof zt!="function")throw new Error(formatProdErrorMessage$1(4));if(ht)throw new Error(formatProdErrorMessage$1(5));let Tt=!0;mt();const Ct=pt++;return dt.set(Ct,zt),function(){if(Tt){if(ht)throw new Error(formatProdErrorMessage$1(6));Tt=!1,mt(),dt.delete(Ct),ut=null}}}function vt(zt){if(!isPlainObject$1(zt))throw new Error(formatProdErrorMessage$1(7));if(typeof zt.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof zt.type!="string")throw new Error(formatProdErrorMessage$1(17));if(ht)throw new Error(formatProdErrorMessage$1(9));try{ht=!0,lt=nt(lt,zt)}finally{ht=!1}return(ut=dt).forEach(Ct=>{Ct()}),zt}function Ot(zt){if(typeof zt!="function")throw new Error(formatProdErrorMessage$1(10));nt=zt,vt({type:actionTypes_default.REPLACE})}function At(){const zt=Mt;return{subscribe(Tt){if(typeof Tt!="object"||Tt===null)throw new Error(formatProdErrorMessage$1(11));function Ct(){const Dt=Tt;Dt.next&&Dt.next(xt())}return Ct(),{unsubscribe:zt(Ct)}},[symbol_observable_default](){return this}}}return vt({type:actionTypes_default.INIT}),{dispatch:vt,subscribe:Mt,getState:xt,replaceReducer:Ot,[symbol_observable_default]:At}}function bindActionCreator$1(et,tt){return function(...rt){return tt(et.apply(this,rt))}}function bindActionCreators$3(et,tt){if(typeof et=="function")return bindActionCreator$1(et,tt);if(typeof et!="object"||et===null)throw new Error(formatProdErrorMessage$1(16));const rt={};for(const nt in et){const lt=et[nt];typeof lt=="function"&&(rt[nt]=bindActionCreator$1(lt,tt))}return rt}function compose$1(...et){return et.length===0?tt=>tt:et.length===1?et[0]:et.reduce((tt,rt)=>(...nt)=>tt(rt(...nt)))}function applyMiddleware$1(...et){return tt=>(rt,nt)=>{const lt=tt(rt,nt);let ut=()=>{throw new Error(formatProdErrorMessage$1(15))};const dt={getState:lt.getState,dispatch:(ht,...mt)=>ut(ht,...mt)},pt=et.map(ht=>ht(dt));return ut=compose$1(...pt)(lt.dispatch),{...lt,dispatch:ut}}}var useSyncExternalStoreWithSelector_production_min={};/**
 * @license React
 * use-sync-external-store-with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var g$1=reactExports;function n$1(et,tt){return et===tt&&(et!==0||1/et===1/tt)||et!==et&&tt!==tt}var p$1=typeof Object.is=="function"?Object.is:n$1,q$1=g$1.useSyncExternalStore,r$2=g$1.useRef,t=g$1.useEffect,u$1=g$1.useMemo,v$1=g$1.useDebugValue;useSyncExternalStoreWithSelector_production_min.useSyncExternalStoreWithSelector=function(et,tt,rt,nt,lt){var ut=r$2(null);if(ut.current===null){var dt={hasValue:!1,value:null};ut.current=dt}else dt=ut.current;ut=u$1(function(){function ht(Ot){if(!mt){if(mt=!0,xt=Ot,Ot=nt(Ot),lt!==void 0&&dt.hasValue){var At=dt.value;if(lt(At,Ot))return Mt=At}return Mt=Ot}if(At=Mt,p$1(xt,Ot))return At;var Rt=nt(Ot);return lt!==void 0&&lt(At,Rt)?At:(xt=Ot,Mt=Rt)}var mt=!1,xt,Mt,vt=rt===void 0?null:rt;return[function(){return ht(tt())},vt===null?void 0:function(){return ht(vt())}]},[tt,rt,nt,lt]);var pt=q$1(et,ut[0],ut[1]);return t(function(){dt.hasValue=!0,dt.value=pt},[pt]),v$1(pt),pt};var React="default"in ReactOriginal?React$4:ReactOriginal,ContextKey=Symbol.for("react-redux-context"),gT=typeof globalThis<"u"?globalThis:{};function getContext(){if(!React.createContext)return{};const et=gT[ContextKey]??(gT[ContextKey]=new Map);let tt=et.get(React.createContext);return tt||(tt=React.createContext(null),et.set(React.createContext,tt)),tt}var ReactReduxContext$1=getContext(),notInitialized=()=>{throw new Error("uSES not initialized!")},REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_SERVER_CONTEXT_TYPE=Symbol.for("react.server_context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),ForwardRef=REACT_FORWARD_REF_TYPE,Memo=REACT_MEMO_TYPE;function typeOf(et){if(typeof et=="object"&&et!==null){const tt=et.$$typeof;switch(tt){case REACT_ELEMENT_TYPE:{const rt=et.type;switch(rt){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return rt;default:{const nt=rt&&rt.$$typeof;switch(nt){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return nt;default:return tt}}}}case REACT_PORTAL_TYPE:return tt}}}function isMemo(et){return typeOf(et)===REACT_MEMO_TYPE}function pureFinalPropsSelectorFactory$1(et,tt,rt,nt,{areStatesEqual:lt,areOwnPropsEqual:ut,areStatePropsEqual:dt}){let pt=!1,ht,mt,xt,Mt,vt;function Ot(Ct,It){return ht=Ct,mt=It,xt=et(ht,mt),Mt=tt(nt,mt),vt=rt(xt,Mt,mt),pt=!0,vt}function At(){return xt=et(ht,mt),tt.dependsOnOwnProps&&(Mt=tt(nt,mt)),vt=rt(xt,Mt,mt),vt}function Rt(){return et.dependsOnOwnProps&&(xt=et(ht,mt)),tt.dependsOnOwnProps&&(Mt=tt(nt,mt)),vt=rt(xt,Mt,mt),vt}function zt(){const Ct=et(ht,mt),It=!dt(Ct,xt);return xt=Ct,It&&(vt=rt(xt,Mt,mt)),vt}function Tt(Ct,It){const Dt=!ut(It,mt),kt=!lt(Ct,ht,It,mt);return ht=Ct,mt=It,Dt&&kt?At():Dt?Rt():kt?zt():vt}return function(It,Dt){return pt?Tt(It,Dt):Ot(It,Dt)}}function finalPropsSelectorFactory$1(et,{initMapStateToProps:tt,initMapDispatchToProps:rt,initMergeProps:nt,...lt}){const ut=tt(et,lt),dt=rt(et,lt),pt=nt(et,lt);return pureFinalPropsSelectorFactory$1(ut,dt,pt,et,lt)}function bindActionCreators$2(et,tt){const rt={};for(const nt in et){const lt=et[nt];typeof lt=="function"&&(rt[nt]=(...ut)=>tt(lt(...ut)))}return rt}function wrapMapToPropsConstant$1(et){return function(rt){const nt=et(rt);function lt(){return nt}return lt.dependsOnOwnProps=!1,lt}}function getDependsOnOwnProps$1(et){return et.dependsOnOwnProps?!!et.dependsOnOwnProps:et.length!==1}function wrapMapToPropsFunc$1(et,tt){return function(nt,{displayName:lt}){const ut=function(pt,ht){return ut.dependsOnOwnProps?ut.mapToProps(pt,ht):ut.mapToProps(pt,void 0)};return ut.dependsOnOwnProps=!0,ut.mapToProps=function(pt,ht){ut.mapToProps=et,ut.dependsOnOwnProps=getDependsOnOwnProps$1(et);let mt=ut(pt,ht);return typeof mt=="function"&&(ut.mapToProps=mt,ut.dependsOnOwnProps=getDependsOnOwnProps$1(mt),mt=ut(pt,ht)),mt},ut}}function createInvalidArgFactory(et,tt){return(rt,nt)=>{throw new Error(`Invalid value of type ${typeof et} for ${tt} argument when connecting component ${nt.wrappedComponentName}.`)}}function mapDispatchToPropsFactory(et){return et&&typeof et=="object"?wrapMapToPropsConstant$1(tt=>bindActionCreators$2(et,tt)):et?typeof et=="function"?wrapMapToPropsFunc$1(et):createInvalidArgFactory(et,"mapDispatchToProps"):wrapMapToPropsConstant$1(tt=>({dispatch:tt}))}function mapStateToPropsFactory(et){return et?typeof et=="function"?wrapMapToPropsFunc$1(et):createInvalidArgFactory(et,"mapStateToProps"):wrapMapToPropsConstant$1(()=>({}))}function defaultMergeProps$1(et,tt,rt){return{...rt,...et,...tt}}function wrapMergePropsFunc$1(et){return function(rt,{displayName:nt,areMergedPropsEqual:lt}){let ut=!1,dt;return function(ht,mt,xt){const Mt=et(ht,mt,xt);return ut?lt(Mt,dt)||(dt=Mt):(ut=!0,dt=Mt),dt}}}function mergePropsFactory(et){return et?typeof et=="function"?wrapMergePropsFunc$1(et):createInvalidArgFactory(et,"mergeProps"):()=>defaultMergeProps$1}function defaultNoopBatch$1(et){et()}function createListenerCollection$1(){let et=null,tt=null;return{clear(){et=null,tt=null},notify(){defaultNoopBatch$1(()=>{let rt=et;for(;rt;)rt.callback(),rt=rt.next})},get(){const rt=[];let nt=et;for(;nt;)rt.push(nt),nt=nt.next;return rt},subscribe(rt){let nt=!0;const lt=tt={callback:rt,next:null,prev:tt};return lt.prev?lt.prev.next=lt:et=lt,function(){!nt||et===null||(nt=!1,lt.next?lt.next.prev=lt.prev:tt=lt.prev,lt.prev?lt.prev.next=lt.next:et=lt.next)}}}}var nullListeners$1={notify(){},get:()=>[]};function createSubscription$1(et,tt){let rt,nt=nullListeners$1,lt=0,ut=!1;function dt(Rt){xt();const zt=nt.subscribe(Rt);let Tt=!1;return()=>{Tt||(Tt=!0,zt(),Mt())}}function pt(){nt.notify()}function ht(){At.onStateChange&&At.onStateChange()}function mt(){return ut}function xt(){lt++,rt||(rt=tt?tt.addNestedSub(ht):et.subscribe(ht),nt=createListenerCollection$1())}function Mt(){lt--,rt&&lt===0&&(rt(),rt=void 0,nt.clear(),nt=nullListeners$1)}function vt(){ut||(ut=!0,xt())}function Ot(){ut&&(ut=!1,Mt())}const At={addNestedSub:dt,notifyNestedSubs:pt,handleChangeWrapper:ht,isSubscribed:mt,trySubscribe:vt,tryUnsubscribe:Ot,getListeners:()=>nt};return At}var canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",isReactNative=typeof navigator<"u"&&navigator.product==="ReactNative",useIsomorphicLayoutEffect$3=canUseDOM||isReactNative?React.useLayoutEffect:React.useEffect;function is$1(et,tt){return et===tt?et!==0||tt!==0||1/et===1/tt:et!==et&&tt!==tt}function shallowEqual$1(et,tt){if(is$1(et,tt))return!0;if(typeof et!="object"||et===null||typeof tt!="object"||tt===null)return!1;const rt=Object.keys(et),nt=Object.keys(tt);if(rt.length!==nt.length)return!1;for(let lt=0;lt<rt.length;lt++)if(!Object.prototype.hasOwnProperty.call(tt,rt[lt])||!is$1(et[rt[lt]],tt[rt[lt]]))return!1;return!0}var REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={[ForwardRef]:FORWARD_REF_STATICS,[Memo]:MEMO_STATICS};function getStatics(et){return isMemo(et)?MEMO_STATICS:TYPE_STATICS[et.$$typeof]||REACT_STATICS}var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(et,tt){if(typeof tt!="string"){if(objectPrototype){const ut=getPrototypeOf(tt);ut&&ut!==objectPrototype&&hoistNonReactStatics(et,ut)}let rt=getOwnPropertyNames(tt);getOwnPropertySymbols&&(rt=rt.concat(getOwnPropertySymbols(tt)));const nt=getStatics(et),lt=getStatics(tt);for(let ut=0;ut<rt.length;++ut){const dt=rt[ut];if(!KNOWN_STATICS[dt]&&!(lt&&lt[dt])&&!(nt&&nt[dt])){const pt=getOwnPropertyDescriptor(tt,dt);try{defineProperty(et,dt,pt)}catch{}}}}return et}var useSyncExternalStore=notInitialized,initializeConnect=et=>{useSyncExternalStore=et},NO_SUBSCRIPTION_ARRAY$1=[null,null];function useIsomorphicLayoutEffectWithArgs$1(et,tt,rt){useIsomorphicLayoutEffect$3(()=>et(...tt),rt)}function captureWrapperProps$1(et,tt,rt,nt,lt,ut){et.current=nt,rt.current=!1,lt.current&&(lt.current=null,ut())}function subscribeUpdates$1(et,tt,rt,nt,lt,ut,dt,pt,ht,mt,xt){if(!et)return()=>{};let Mt=!1,vt=null;const Ot=()=>{if(Mt||!pt.current)return;const Rt=tt.getState();let zt,Tt;try{zt=nt(Rt,lt.current)}catch(Ct){Tt=Ct,vt=Ct}Tt||(vt=null),zt===ut.current?dt.current||mt():(ut.current=zt,ht.current=zt,dt.current=!0,xt())};return rt.onStateChange=Ot,rt.trySubscribe(),Ot(),()=>{if(Mt=!0,rt.tryUnsubscribe(),rt.onStateChange=null,vt)throw vt}}function strictEqual$1(et,tt){return et===tt}function connect$1(et,tt,rt,{pure:nt,areStatesEqual:lt=strictEqual$1,areOwnPropsEqual:ut=shallowEqual$1,areStatePropsEqual:dt=shallowEqual$1,areMergedPropsEqual:pt=shallowEqual$1,forwardRef:ht=!1,context:mt=ReactReduxContext$1}={}){const xt=mt,Mt=mapStateToPropsFactory(et),vt=mapDispatchToPropsFactory(tt),Ot=mergePropsFactory(rt),At=!!et;return zt=>{const Tt=zt.displayName||zt.name||"Component",Ct=`Connect(${Tt})`,It={shouldHandleStateChanges:At,displayName:Ct,wrappedComponentName:Tt,WrappedComponent:zt,initMapStateToProps:Mt,initMapDispatchToProps:vt,initMergeProps:Ot,areStatesEqual:lt,areStatePropsEqual:dt,areOwnPropsEqual:ut,areMergedPropsEqual:pt};function Dt(Nt){const[Yt,Kt,Jt]=React.useMemo(()=>{const{reactReduxForwardedRef:ar,...ur}=Nt;return[Nt.context,ar,ur]},[Nt]),Qt=React.useMemo(()=>{let ar=xt;return Yt!=null&&Yt.Consumer,ar},[Yt,xt]),Bt=React.useContext(Qt),Ft=!!Nt.store&&!!Nt.store.getState&&!!Nt.store.dispatch,$t=!!Bt&&!!Bt.store,jt=Ft?Nt.store:Bt.store,Wt=$t?Bt.getServerState:jt.getState,Ut=React.useMemo(()=>finalPropsSelectorFactory$1(jt.dispatch,It),[jt]),[Vt,Ht]=React.useMemo(()=>{if(!At)return NO_SUBSCRIPTION_ARRAY$1;const ar=createSubscription$1(jt,Ft?void 0:Bt.subscription),ur=ar.notifyNestedSubs.bind(ar);return[ar,ur]},[jt,Ft,Bt]),Gt=React.useMemo(()=>Ft?Bt:{...Bt,subscription:Vt},[Ft,Bt,Vt]),Zt=React.useRef(void 0),Xt=React.useRef(Jt),er=React.useRef(void 0),nr=React.useRef(!1),or=React.useRef(!1),rr=React.useRef(void 0);useIsomorphicLayoutEffect$3(()=>(or.current=!0,()=>{or.current=!1}),[]);const cr=React.useMemo(()=>()=>er.current&&Jt===Xt.current?er.current:Ut(jt.getState(),Jt),[jt,Jt]),ir=React.useMemo(()=>ur=>Vt?subscribeUpdates$1(At,jt,Vt,Ut,Xt,Zt,nr,or,er,Ht,ur):()=>{},[Vt]);useIsomorphicLayoutEffectWithArgs$1(captureWrapperProps$1,[Xt,Zt,nr,Jt,er,Ht]);let dr;try{dr=useSyncExternalStore(ir,cr,Wt?()=>Ut(Wt(),Jt):cr)}catch(ar){throw rr.current&&(ar.message+=`
The error may be correlated with this previous error:
${rr.current.stack}

`),ar}useIsomorphicLayoutEffect$3(()=>{rr.current=void 0,er.current=void 0,Zt.current=dr});const gr=React.useMemo(()=>React.createElement(zt,{...dr,ref:Kt}),[Kt,zt,dr]);return React.useMemo(()=>At?React.createElement(Qt.Provider,{value:Gt},gr):gr,[Qt,gr,Gt])}const qt=React.memo(Dt);if(qt.WrappedComponent=zt,qt.displayName=Dt.displayName=Ct,ht){const Yt=React.forwardRef(function(Jt,Qt){return React.createElement(qt,{...Jt,reactReduxForwardedRef:Qt})});return Yt.displayName=Ct,Yt.WrappedComponent=zt,hoistNonReactStatics(Yt,zt)}return hoistNonReactStatics(qt,zt)}}var connect_default=connect$1;function Provider$1({store:et,context:tt,children:rt,serverState:nt,stabilityCheck:lt="once",identityFunctionCheck:ut="once"}){const dt=React.useMemo(()=>{const mt=createSubscription$1(et);return{store:et,subscription:mt,getServerState:nt?()=>nt:void 0,stabilityCheck:lt,identityFunctionCheck:ut}},[et,nt,lt,ut]),pt=React.useMemo(()=>et.getState(),[et]);useIsomorphicLayoutEffect$3(()=>{const{subscription:mt}=dt;return mt.onStateChange=mt.notifyNestedSubs,mt.trySubscribe(),pt!==et.getState()&&mt.notifyNestedSubs(),()=>{mt.tryUnsubscribe(),mt.onStateChange=void 0}},[dt,pt]);const ht=tt||ReactReduxContext$1;return React.createElement(ht.Provider,{value:dt},rt)}var Provider_default=Provider$1;initializeConnect(reactExports.useSyncExternalStore);function areInputsEqual$1(et,tt){if(et.length!==tt.length)return!1;for(var rt=0;rt<et.length;rt++)if(et[rt]!==tt[rt])return!1;return!0}function useMemoOne(et,tt){var rt=reactExports.useState(function(){return{inputs:tt,result:et()}})[0],nt=reactExports.useRef(!0),lt=reactExports.useRef(rt),ut=nt.current||!!(tt&&lt.current.inputs&&areInputsEqual$1(tt,lt.current.inputs)),dt=ut?lt.current:{inputs:tt,result:et()};return reactExports.useEffect(function(){nt.current=!1,lt.current=dt},[dt]),dt.result}function useCallbackOne(et,tt){return useMemoOne(function(){return et},tt)}var useMemo=useMemoOne,useCallback=useCallbackOne,getRect=function(tt){var rt=tt.top,nt=tt.right,lt=tt.bottom,ut=tt.left,dt=nt-ut,pt=lt-rt,ht={top:rt,right:nt,bottom:lt,left:ut,width:dt,height:pt,x:ut,y:rt,center:{x:(nt+ut)/2,y:(lt+rt)/2}};return ht},expand=function(tt,rt){return{top:tt.top-rt.top,left:tt.left-rt.left,bottom:tt.bottom+rt.bottom,right:tt.right+rt.right}},shrink=function(tt,rt){return{top:tt.top+rt.top,left:tt.left+rt.left,bottom:tt.bottom-rt.bottom,right:tt.right-rt.right}},shift=function(tt,rt){return{top:tt.top+rt.y,left:tt.left+rt.x,bottom:tt.bottom+rt.y,right:tt.right+rt.x}},noSpacing$2={top:0,right:0,bottom:0,left:0},createBox=function(tt){var rt=tt.borderBox,nt=tt.margin,lt=nt===void 0?noSpacing$2:nt,ut=tt.border,dt=ut===void 0?noSpacing$2:ut,pt=tt.padding,ht=pt===void 0?noSpacing$2:pt,mt=getRect(expand(rt,lt)),xt=getRect(shrink(rt,dt)),Mt=getRect(shrink(xt,ht));return{marginBox:mt,borderBox:getRect(rt),paddingBox:xt,contentBox:Mt,margin:lt,border:dt,padding:ht}},parse$1=function(tt){var rt=tt.slice(0,-2),nt=tt.slice(-2);if(nt!=="px")return 0;var lt=Number(rt);return isNaN(lt)&&invariant$3(),lt},getWindowScroll$2=function(){return{x:window.pageXOffset,y:window.pageYOffset}},offset=function(tt,rt){var nt=tt.borderBox,lt=tt.border,ut=tt.margin,dt=tt.padding,pt=shift(nt,rt);return createBox({borderBox:pt,border:lt,margin:ut,padding:dt})},withScroll=function(tt,rt){return rt===void 0&&(rt=getWindowScroll$2()),offset(tt,rt)},calculateBox=function(tt,rt){var nt={top:parse$1(rt.marginTop),right:parse$1(rt.marginRight),bottom:parse$1(rt.marginBottom),left:parse$1(rt.marginLeft)},lt={top:parse$1(rt.paddingTop),right:parse$1(rt.paddingRight),bottom:parse$1(rt.paddingBottom),left:parse$1(rt.paddingLeft)},ut={top:parse$1(rt.borderTopWidth),right:parse$1(rt.borderRightWidth),bottom:parse$1(rt.borderBottomWidth),left:parse$1(rt.borderLeftWidth)};return createBox({borderBox:tt,margin:nt,padding:lt,border:ut})},getBox=function(tt){var rt=tt.getBoundingClientRect(),nt=window.getComputedStyle(tt);return calculateBox(rt,nt)},safeIsNaN=Number.isNaN||function(tt){return typeof tt=="number"&&tt!==tt};function isEqual$3(et,tt){return!!(et===tt||safeIsNaN(et)&&safeIsNaN(tt))}function areInputsEqual(et,tt){if(et.length!==tt.length)return!1;for(var rt=0;rt<et.length;rt++)if(!isEqual$3(et[rt],tt[rt]))return!1;return!0}function memoizeOne(et,tt){tt===void 0&&(tt=areInputsEqual);var rt=null;function nt(){for(var lt=[],ut=0;ut<arguments.length;ut++)lt[ut]=arguments[ut];if(rt&&rt.lastThis===this&&tt(lt,rt.lastArgs))return rt.lastResult;var dt=et.apply(this,lt);return rt={lastResult:dt,lastArgs:lt,lastThis:this},dt}return nt.clear=function(){rt=null},nt}var rafSchd=function(tt){var rt=[],nt=null,lt=function(){for(var dt=arguments.length,pt=new Array(dt),ht=0;ht<dt;ht++)pt[ht]=arguments[ht];rt=pt,!nt&&(nt=requestAnimationFrame(function(){nt=null,tt.apply(void 0,rt)}))};return lt.cancel=function(){nt&&(cancelAnimationFrame(nt),nt=null)},lt};function log$1(et,tt){}log$1.bind(null,"warn");log$1.bind(null,"error");function noop$2$1(){}function getOptions$1(et,tt){return{...et,...tt}}function bindEvents$1(et,tt,rt){const nt=tt.map(lt=>{const ut=getOptions$1(rt,lt.options);return et.addEventListener(lt.eventName,lt.fn,ut),function(){et.removeEventListener(lt.eventName,lt.fn,ut)}});return function(){nt.forEach(ut=>{ut()})}}const prefix$1$1="Invariant failed";let RbdInvariant$1=class extends Error{};RbdInvariant$1.prototype.toString=function(){return this.message};function invariant$1(et,tt){throw new RbdInvariant$1(prefix$1$1)}let ErrorBoundary$1=class extends React$4.Component{constructor(...tt){super(...tt),this.callbacks=null,this.unbind=noop$2$1,this.onWindowError=rt=>{const nt=this.getCallbacks();nt.isDragging()&&nt.tryAbort(),rt.error instanceof RbdInvariant$1&&rt.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=rt=>{this.callbacks=rt}}componentDidMount(){this.unbind=bindEvents$1(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(tt){if(tt instanceof RbdInvariant$1){this.setState({});return}throw tt}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}};const dragHandleUsageInstructions$1=`
  Press space bar to start a drag.
  When dragging you can use the arrow keys to move the item around and escape to cancel.
  Some screen readers may require you to be in focus mode or to use your pass through key
`,position$1=et=>et+1,onDragStart$1=et=>`
  You have lifted an item in position ${position$1(et.source.index)}
`,withLocation$1=(et,tt)=>{const rt=et.droppableId===tt.droppableId,nt=position$1(et.index),lt=position$1(tt.index);return rt?`
      You have moved the item from position ${nt}
      to position ${lt}
    `:`
    You have moved the item from position ${nt}
    in list ${et.droppableId}
    to list ${tt.droppableId}
    in position ${lt}
  `},withCombine$1=(et,tt,rt)=>tt.droppableId===rt.droppableId?`
      The item ${et}
      has been combined with ${rt.draggableId}`:`
      The item ${et}
      in list ${tt.droppableId}
      has been combined with ${rt.draggableId}
      in list ${rt.droppableId}
    `,onDragUpdate$1=et=>{const tt=et.destination;if(tt)return withLocation$1(et.source,tt);const rt=et.combine;return rt?withCombine$1(et.draggableId,et.source,rt):"You are over an area that cannot be dropped on"},returnedToStart$1=et=>`
  The item has returned to its starting position
  of ${position$1(et.index)}
`,onDragEnd$1=et=>{if(et.reason==="CANCEL")return`
      Movement cancelled.
      ${returnedToStart$1(et.source)}
    `;const tt=et.destination,rt=et.combine;return tt?`
      You have dropped the item.
      ${withLocation$1(et.source,tt)}
    `:rt?`
      You have dropped the item.
      ${withCombine$1(et.draggableId,et.source,rt)}
    `:`
    The item has been dropped while not over a drop area.
    ${returnedToStart$1(et.source)}
  `},preset$1={dragHandleUsageInstructions:dragHandleUsageInstructions$1,onDragStart:onDragStart$1,onDragUpdate:onDragUpdate$1,onDragEnd:onDragEnd$1},origin$1={x:0,y:0},add$1=(et,tt)=>({x:et.x+tt.x,y:et.y+tt.y}),subtract$1=(et,tt)=>({x:et.x-tt.x,y:et.y-tt.y}),isEqual$1$1=(et,tt)=>et.x===tt.x&&et.y===tt.y,negate$1=et=>({x:et.x!==0?-et.x:0,y:et.y!==0?-et.y:0}),patch$1=(et,tt,rt=0)=>et==="x"?{x:tt,y:rt}:{x:rt,y:tt},distance$1=(et,tt)=>Math.sqrt((tt.x-et.x)**2+(tt.y-et.y)**2),closest$1$1=(et,tt)=>Math.min(...tt.map(rt=>distance$1(et,rt))),apply$1=et=>tt=>({x:et(tt.x),y:et(tt.y)});var executeClip$1=(et,tt)=>{const rt=getRect({top:Math.max(tt.top,et.top),right:Math.min(tt.right,et.right),bottom:Math.min(tt.bottom,et.bottom),left:Math.max(tt.left,et.left)});return rt.width<=0||rt.height<=0?null:rt};const offsetByPosition$1=(et,tt)=>({top:et.top+tt.y,left:et.left+tt.x,bottom:et.bottom+tt.y,right:et.right+tt.x}),getCorners$1=et=>[{x:et.left,y:et.top},{x:et.right,y:et.top},{x:et.left,y:et.bottom},{x:et.right,y:et.bottom}],noSpacing$1={top:0,right:0,bottom:0,left:0},scroll$1$1=(et,tt)=>tt?offsetByPosition$1(et,tt.scroll.diff.displacement):et,increase$1=(et,tt,rt)=>rt&&rt.increasedBy?{...et,[tt.end]:et[tt.end]+rt.increasedBy[tt.line]}:et,clip$1=(et,tt)=>tt&&tt.shouldClipSubject?executeClip$1(tt.pageMarginBox,et):getRect(et);var getSubject$1=({page:et,withPlaceholder:tt,axis:rt,frame:nt})=>{const lt=scroll$1$1(et.marginBox,nt),ut=increase$1(lt,rt,tt),dt=clip$1(ut,nt);return{page:et,withPlaceholder:tt,active:dt}},scrollDroppable$1=(et,tt)=>{et.frame||invariant$1();const rt=et.frame,nt=subtract$1(tt,rt.scroll.initial),lt=negate$1(nt),ut={...rt,scroll:{initial:rt.scroll.initial,current:tt,diff:{value:nt,displacement:lt},max:rt.scroll.max}},dt=getSubject$1({page:et.subject.page,withPlaceholder:et.subject.withPlaceholder,axis:et.axis,frame:ut});return{...et,frame:ut,subject:dt}};const toDroppableMap$1=memoizeOne(et=>et.reduce((tt,rt)=>(tt[rt.descriptor.id]=rt,tt),{})),toDraggableMap$1=memoizeOne(et=>et.reduce((tt,rt)=>(tt[rt.descriptor.id]=rt,tt),{})),toDroppableList$1=memoizeOne(et=>Object.values(et)),toDraggableList$1=memoizeOne(et=>Object.values(et));var getDraggablesInsideDroppable$1=memoizeOne((et,tt)=>toDraggableList$1(tt).filter(nt=>et===nt.descriptor.droppableId).sort((nt,lt)=>nt.descriptor.index-lt.descriptor.index));function tryGetDestination$1(et){return et.at&&et.at.type==="REORDER"?et.at.destination:null}function tryGetCombine$1(et){return et.at&&et.at.type==="COMBINE"?et.at.combine:null}var removeDraggableFromList$1=memoizeOne((et,tt)=>tt.filter(rt=>rt.descriptor.id!==et.descriptor.id)),moveToNextCombine$1=({isMovingForward:et,draggable:tt,destination:rt,insideDestination:nt,previousImpact:lt})=>{if(!rt.isCombineEnabled||!tryGetDestination$1(lt))return null;function dt(Ot){const At={type:"COMBINE",combine:{draggableId:Ot,droppableId:rt.descriptor.id}};return{...lt,at:At}}const pt=lt.displaced.all,ht=pt.length?pt[0]:null;if(et)return ht?dt(ht):null;const mt=removeDraggableFromList$1(tt,nt);if(!ht){if(!mt.length)return null;const Ot=mt[mt.length-1];return dt(Ot.descriptor.id)}const xt=mt.findIndex(Ot=>Ot.descriptor.id===ht);xt===-1&&invariant$1();const Mt=xt-1;if(Mt<0)return null;const vt=mt[Mt];return dt(vt.descriptor.id)},isHomeOf$1=(et,tt)=>et.descriptor.droppableId===tt.descriptor.id;const noDisplacedBy$1={point:origin$1,value:0},emptyGroups$1={invisible:{},visible:{},all:[]},noImpact$1={displaced:emptyGroups$1,displacedBy:noDisplacedBy$1,at:null};var isWithin$1=(et,tt)=>rt=>et<=rt&&rt<=tt,isPartiallyVisibleThroughFrame$1=et=>{const tt=isWithin$1(et.top,et.bottom),rt=isWithin$1(et.left,et.right);return nt=>{if(tt(nt.top)&&tt(nt.bottom)&&rt(nt.left)&&rt(nt.right))return!0;const ut=tt(nt.top)||tt(nt.bottom),dt=rt(nt.left)||rt(nt.right);if(ut&&dt)return!0;const ht=nt.top<et.top&&nt.bottom>et.bottom,mt=nt.left<et.left&&nt.right>et.right;return ht&&mt?!0:ht&&dt||mt&&ut}},isTotallyVisibleThroughFrame$1=et=>{const tt=isWithin$1(et.top,et.bottom),rt=isWithin$1(et.left,et.right);return nt=>tt(nt.top)&&tt(nt.bottom)&&rt(nt.left)&&rt(nt.right)};const vertical$1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},horizontal$1={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var isTotallyVisibleThroughFrameOnAxis$1=et=>tt=>{const rt=isWithin$1(tt.top,tt.bottom),nt=isWithin$1(tt.left,tt.right);return lt=>et===vertical$1?rt(lt.top)&&rt(lt.bottom):nt(lt.left)&&nt(lt.right)};const getDroppableDisplaced$1=(et,tt)=>{const rt=tt.frame?tt.frame.scroll.diff.displacement:origin$1;return offsetByPosition$1(et,rt)},isVisibleInDroppable$1=(et,tt,rt)=>tt.subject.active?rt(tt.subject.active)(et):!1,isVisibleInViewport$1=(et,tt,rt)=>rt(tt)(et),isVisible$1=({target:et,destination:tt,viewport:rt,withDroppableDisplacement:nt,isVisibleThroughFrameFn:lt})=>{const ut=nt?getDroppableDisplaced$1(et,tt):et;return isVisibleInDroppable$1(ut,tt,lt)&&isVisibleInViewport$1(ut,rt,lt)},isPartiallyVisible$1=et=>isVisible$1({...et,isVisibleThroughFrameFn:isPartiallyVisibleThroughFrame$1}),isTotallyVisible$1=et=>isVisible$1({...et,isVisibleThroughFrameFn:isTotallyVisibleThroughFrame$1}),isTotallyVisibleOnAxis$1=et=>isVisible$1({...et,isVisibleThroughFrameFn:isTotallyVisibleThroughFrameOnAxis$1(et.destination.axis)}),getShouldAnimate$1=(et,tt,rt)=>{if(typeof rt=="boolean")return rt;if(!tt)return!0;const{invisible:nt,visible:lt}=tt;if(nt[et])return!1;const ut=lt[et];return ut?ut.shouldAnimate:!0};function getTarget$1(et,tt){const rt=et.page.marginBox,nt={top:tt.point.y,right:0,bottom:0,left:tt.point.x};return getRect(expand(rt,nt))}function getDisplacementGroups$1({afterDragging:et,destination:tt,displacedBy:rt,viewport:nt,forceShouldAnimate:lt,last:ut}){return et.reduce(function(pt,ht){const mt=getTarget$1(ht,rt),xt=ht.descriptor.id;if(pt.all.push(xt),!isPartiallyVisible$1({target:mt,destination:tt,viewport:nt,withDroppableDisplacement:!0}))return pt.invisible[ht.descriptor.id]=!0,pt;const vt=getShouldAnimate$1(xt,ut,lt),Ot={draggableId:xt,shouldAnimate:vt};return pt.visible[xt]=Ot,pt},{all:[],visible:{},invisible:{}})}function getIndexOfLastItem$1(et,tt){if(!et.length)return 0;const rt=et[et.length-1].descriptor.index;return tt.inHomeList?rt:rt+1}function goAtEnd$1({insideDestination:et,inHomeList:tt,displacedBy:rt,destination:nt}){const lt=getIndexOfLastItem$1(et,{inHomeList:tt});return{displaced:emptyGroups$1,displacedBy:rt,at:{type:"REORDER",destination:{droppableId:nt.descriptor.id,index:lt}}}}function calculateReorderImpact$1({draggable:et,insideDestination:tt,destination:rt,viewport:nt,displacedBy:lt,last:ut,index:dt,forceShouldAnimate:pt}){const ht=isHomeOf$1(et,rt);if(dt==null)return goAtEnd$1({insideDestination:tt,inHomeList:ht,displacedBy:lt,destination:rt});const mt=tt.find(At=>At.descriptor.index===dt);if(!mt)return goAtEnd$1({insideDestination:tt,inHomeList:ht,displacedBy:lt,destination:rt});const xt=removeDraggableFromList$1(et,tt),Mt=tt.indexOf(mt),vt=xt.slice(Mt);return{displaced:getDisplacementGroups$1({afterDragging:vt,destination:rt,displacedBy:lt,last:ut,viewport:nt.frame,forceShouldAnimate:pt}),displacedBy:lt,at:{type:"REORDER",destination:{droppableId:rt.descriptor.id,index:dt}}}}function didStartAfterCritical$1(et,tt){return!!tt.effected[et]}var fromCombine$1=({isMovingForward:et,destination:tt,draggables:rt,combine:nt,afterCritical:lt})=>{if(!tt.isCombineEnabled)return null;const ut=nt.draggableId,pt=rt[ut].descriptor.index;return didStartAfterCritical$1(ut,lt)?et?pt:pt-1:et?pt+1:pt},fromReorder$1=({isMovingForward:et,isInHomeList:tt,insideDestination:rt,location:nt})=>{if(!rt.length)return null;const lt=nt.index,ut=et?lt+1:lt-1,dt=rt[0].descriptor.index,pt=rt[rt.length-1].descriptor.index,ht=tt?pt:pt+1;return ut<dt||ut>ht?null:ut},moveToNextIndex$1=({isMovingForward:et,isInHomeList:tt,draggable:rt,draggables:nt,destination:lt,insideDestination:ut,previousImpact:dt,viewport:pt,afterCritical:ht})=>{const mt=dt.at;if(mt||invariant$1(),mt.type==="REORDER"){const Mt=fromReorder$1({isMovingForward:et,isInHomeList:tt,location:mt.destination,insideDestination:ut});return Mt==null?null:calculateReorderImpact$1({draggable:rt,insideDestination:ut,destination:lt,viewport:pt,last:dt.displaced,displacedBy:dt.displacedBy,index:Mt})}const xt=fromCombine$1({isMovingForward:et,destination:lt,displaced:dt.displaced,draggables:nt,combine:mt.combine,afterCritical:ht});return xt==null?null:calculateReorderImpact$1({draggable:rt,insideDestination:ut,destination:lt,viewport:pt,last:dt.displaced,displacedBy:dt.displacedBy,index:xt})},getCombinedItemDisplacement$1=({displaced:et,afterCritical:tt,combineWith:rt,displacedBy:nt})=>{const lt=!!(et.visible[rt]||et.invisible[rt]);return didStartAfterCritical$1(rt,tt)?lt?origin$1:negate$1(nt.point):lt?nt.point:origin$1},whenCombining$1=({afterCritical:et,impact:tt,draggables:rt})=>{const nt=tryGetCombine$1(tt);nt||invariant$1();const lt=nt.draggableId,ut=rt[lt].page.borderBox.center,dt=getCombinedItemDisplacement$1({displaced:tt.displaced,afterCritical:et,combineWith:lt,displacedBy:tt.displacedBy});return add$1(ut,dt)};const distanceFromStartToBorderBoxCenter$1=(et,tt)=>tt.margin[et.start]+tt.borderBox[et.size]/2,distanceFromEndToBorderBoxCenter$1=(et,tt)=>tt.margin[et.end]+tt.borderBox[et.size]/2,getCrossAxisBorderBoxCenter$1=(et,tt,rt)=>tt[et.crossAxisStart]+rt.margin[et.crossAxisStart]+rt.borderBox[et.crossAxisSize]/2,goAfter$1=({axis:et,moveRelativeTo:tt,isMoving:rt})=>patch$1(et.line,tt.marginBox[et.end]+distanceFromStartToBorderBoxCenter$1(et,rt),getCrossAxisBorderBoxCenter$1(et,tt.marginBox,rt)),goBefore$1=({axis:et,moveRelativeTo:tt,isMoving:rt})=>patch$1(et.line,tt.marginBox[et.start]-distanceFromEndToBorderBoxCenter$1(et,rt),getCrossAxisBorderBoxCenter$1(et,tt.marginBox,rt)),goIntoStart$1=({axis:et,moveInto:tt,isMoving:rt})=>patch$1(et.line,tt.contentBox[et.start]+distanceFromStartToBorderBoxCenter$1(et,rt),getCrossAxisBorderBoxCenter$1(et,tt.contentBox,rt));var whenReordering$1=({impact:et,draggable:tt,draggables:rt,droppable:nt,afterCritical:lt})=>{const ut=getDraggablesInsideDroppable$1(nt.descriptor.id,rt),dt=tt.page,pt=nt.axis;if(!ut.length)return goIntoStart$1({axis:pt,moveInto:nt.page,isMoving:dt});const{displaced:ht,displacedBy:mt}=et,xt=ht.all[0];if(xt){const vt=rt[xt];if(didStartAfterCritical$1(xt,lt))return goBefore$1({axis:pt,moveRelativeTo:vt.page,isMoving:dt});const Ot=offset(vt.page,mt.point);return goBefore$1({axis:pt,moveRelativeTo:Ot,isMoving:dt})}const Mt=ut[ut.length-1];if(Mt.descriptor.id===tt.descriptor.id)return dt.borderBox.center;if(didStartAfterCritical$1(Mt.descriptor.id,lt)){const vt=offset(Mt.page,negate$1(lt.displacedBy.point));return goAfter$1({axis:pt,moveRelativeTo:vt,isMoving:dt})}return goAfter$1({axis:pt,moveRelativeTo:Mt.page,isMoving:dt})},withDroppableDisplacement$1=(et,tt)=>{const rt=et.frame;return rt?add$1(tt,rt.scroll.diff.displacement):tt};const getResultWithoutDroppableDisplacement$1=({impact:et,draggable:tt,droppable:rt,draggables:nt,afterCritical:lt})=>{const ut=tt.page.borderBox.center,dt=et.at;return!rt||!dt?ut:dt.type==="REORDER"?whenReordering$1({impact:et,draggable:tt,draggables:nt,droppable:rt,afterCritical:lt}):whenCombining$1({impact:et,draggables:nt,afterCritical:lt})};var getPageBorderBoxCenterFromImpact$1=et=>{const tt=getResultWithoutDroppableDisplacement$1(et),rt=et.droppable;return rt?withDroppableDisplacement$1(rt,tt):tt},scrollViewport$1=(et,tt)=>{const rt=subtract$1(tt,et.scroll.initial),nt=negate$1(rt);return{frame:getRect({top:tt.y,bottom:tt.y+et.frame.height,left:tt.x,right:tt.x+et.frame.width}),scroll:{initial:et.scroll.initial,max:et.scroll.max,current:tt,diff:{value:rt,displacement:nt}}}};function getDraggables$1$1(et,tt){return et.map(rt=>tt[rt])}function tryGetVisible$1(et,tt){for(let rt=0;rt<tt.length;rt++){const nt=tt[rt].visible[et];if(nt)return nt}return null}var speculativelyIncrease$1=({impact:et,viewport:tt,destination:rt,draggables:nt,maxScrollChange:lt})=>{const ut=scrollViewport$1(tt,add$1(tt.scroll.current,lt)),dt=rt.frame?scrollDroppable$1(rt,add$1(rt.frame.scroll.current,lt)):rt,pt=et.displaced,ht=getDisplacementGroups$1({afterDragging:getDraggables$1$1(pt.all,nt),destination:rt,displacedBy:et.displacedBy,viewport:ut.frame,last:pt,forceShouldAnimate:!1}),mt=getDisplacementGroups$1({afterDragging:getDraggables$1$1(pt.all,nt),destination:dt,displacedBy:et.displacedBy,viewport:tt.frame,last:pt,forceShouldAnimate:!1}),xt={},Mt={},vt=[pt,ht,mt];return pt.all.forEach(At=>{const Rt=tryGetVisible$1(At,vt);if(Rt){Mt[At]=Rt;return}xt[At]=!0}),{...et,displaced:{all:pt.all,invisible:xt,visible:Mt}}},withViewportDisplacement$1=(et,tt)=>add$1(et.scroll.diff.displacement,tt),getClientFromPageBorderBoxCenter$1=({pageBorderBoxCenter:et,draggable:tt,viewport:rt})=>{const nt=withViewportDisplacement$1(rt,et),lt=subtract$1(nt,tt.page.borderBox.center);return add$1(tt.client.borderBox.center,lt)},isTotallyVisibleInNewLocation$1=({draggable:et,destination:tt,newPageBorderBoxCenter:rt,viewport:nt,withDroppableDisplacement:lt,onlyOnMainAxis:ut=!1})=>{const dt=subtract$1(rt,et.page.borderBox.center),ht={target:offsetByPosition$1(et.page.borderBox,dt),destination:tt,withDroppableDisplacement:lt,viewport:nt};return ut?isTotallyVisibleOnAxis$1(ht):isTotallyVisible$1(ht)},moveToNextPlace$1=({isMovingForward:et,draggable:tt,destination:rt,draggables:nt,previousImpact:lt,viewport:ut,previousPageBorderBoxCenter:dt,previousClientSelection:pt,afterCritical:ht})=>{if(!rt.isEnabled)return null;const mt=getDraggablesInsideDroppable$1(rt.descriptor.id,nt),xt=isHomeOf$1(tt,rt),Mt=moveToNextCombine$1({isMovingForward:et,draggable:tt,destination:rt,insideDestination:mt,previousImpact:lt})||moveToNextIndex$1({isMovingForward:et,isInHomeList:xt,draggable:tt,draggables:nt,destination:rt,insideDestination:mt,previousImpact:lt,viewport:ut,afterCritical:ht});if(!Mt)return null;const vt=getPageBorderBoxCenterFromImpact$1({impact:Mt,draggable:tt,droppable:rt,draggables:nt,afterCritical:ht});if(isTotallyVisibleInNewLocation$1({draggable:tt,destination:rt,newPageBorderBoxCenter:vt,viewport:ut.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:getClientFromPageBorderBoxCenter$1({pageBorderBoxCenter:vt,draggable:tt,viewport:ut}),impact:Mt,scrollJumpRequest:null};const At=subtract$1(vt,dt),Rt=speculativelyIncrease$1({impact:Mt,viewport:ut,destination:rt,draggables:nt,maxScrollChange:At});return{clientSelection:pt,impact:Rt,scrollJumpRequest:At}};const getKnownActive$1=et=>{const tt=et.subject.active;return tt||invariant$1(),tt};var getBestCrossAxisDroppable$1=({isMovingForward:et,pageBorderBoxCenter:tt,source:rt,droppables:nt,viewport:lt})=>{const ut=rt.subject.active;if(!ut)return null;const dt=rt.axis,pt=isWithin$1(ut[dt.start],ut[dt.end]),ht=toDroppableList$1(nt).filter(xt=>xt!==rt).filter(xt=>xt.isEnabled).filter(xt=>!!xt.subject.active).filter(xt=>isPartiallyVisibleThroughFrame$1(lt.frame)(getKnownActive$1(xt))).filter(xt=>{const Mt=getKnownActive$1(xt);return et?ut[dt.crossAxisEnd]<Mt[dt.crossAxisEnd]:Mt[dt.crossAxisStart]<ut[dt.crossAxisStart]}).filter(xt=>{const Mt=getKnownActive$1(xt),vt=isWithin$1(Mt[dt.start],Mt[dt.end]);return pt(Mt[dt.start])||pt(Mt[dt.end])||vt(ut[dt.start])||vt(ut[dt.end])}).sort((xt,Mt)=>{const vt=getKnownActive$1(xt)[dt.crossAxisStart],Ot=getKnownActive$1(Mt)[dt.crossAxisStart];return et?vt-Ot:Ot-vt}).filter((xt,Mt,vt)=>getKnownActive$1(xt)[dt.crossAxisStart]===getKnownActive$1(vt[0])[dt.crossAxisStart]);if(!ht.length)return null;if(ht.length===1)return ht[0];const mt=ht.filter(xt=>isWithin$1(getKnownActive$1(xt)[dt.start],getKnownActive$1(xt)[dt.end])(tt[dt.line]));return mt.length===1?mt[0]:mt.length>1?mt.sort((xt,Mt)=>getKnownActive$1(xt)[dt.start]-getKnownActive$1(Mt)[dt.start])[0]:ht.sort((xt,Mt)=>{const vt=closest$1$1(tt,getCorners$1(getKnownActive$1(xt))),Ot=closest$1$1(tt,getCorners$1(getKnownActive$1(Mt)));return vt!==Ot?vt-Ot:getKnownActive$1(xt)[dt.start]-getKnownActive$1(Mt)[dt.start]})[0]};const getCurrentPageBorderBoxCenter$1=(et,tt)=>{const rt=et.page.borderBox.center;return didStartAfterCritical$1(et.descriptor.id,tt)?subtract$1(rt,tt.displacedBy.point):rt},getCurrentPageBorderBox$1=(et,tt)=>{const rt=et.page.borderBox;return didStartAfterCritical$1(et.descriptor.id,tt)?offsetByPosition$1(rt,negate$1(tt.displacedBy.point)):rt};var getClosestDraggable$1=({pageBorderBoxCenter:et,viewport:tt,destination:rt,insideDestination:nt,afterCritical:lt})=>nt.filter(dt=>isTotallyVisible$1({target:getCurrentPageBorderBox$1(dt,lt),destination:rt,viewport:tt.frame,withDroppableDisplacement:!0})).sort((dt,pt)=>{const ht=distance$1(et,withDroppableDisplacement$1(rt,getCurrentPageBorderBoxCenter$1(dt,lt))),mt=distance$1(et,withDroppableDisplacement$1(rt,getCurrentPageBorderBoxCenter$1(pt,lt)));return ht<mt?-1:mt<ht?1:dt.descriptor.index-pt.descriptor.index})[0]||null,getDisplacedBy$1=memoizeOne(function(tt,rt){const nt=rt[tt.line];return{value:nt,point:patch$1(tt.line,nt)}});const getRequiredGrowthForPlaceholder$1=(et,tt,rt)=>{const nt=et.axis;if(et.descriptor.mode==="virtual")return patch$1(nt.line,tt[nt.line]);const lt=et.subject.page.contentBox[nt.size],ht=getDraggablesInsideDroppable$1(et.descriptor.id,rt).reduce((mt,xt)=>mt+xt.client.marginBox[nt.size],0)+tt[nt.line]-lt;return ht<=0?null:patch$1(nt.line,ht)},withMaxScroll$1=(et,tt)=>({...et,scroll:{...et.scroll,max:tt}}),addPlaceholder$1=(et,tt,rt)=>{const nt=et.frame;isHomeOf$1(tt,et)&&invariant$1(),et.subject.withPlaceholder&&invariant$1();const lt=getDisplacedBy$1(et.axis,tt.displaceBy).point,ut=getRequiredGrowthForPlaceholder$1(et,lt,rt),dt={placeholderSize:lt,increasedBy:ut,oldFrameMaxScroll:et.frame?et.frame.scroll.max:null};if(!nt){const xt=getSubject$1({page:et.subject.page,withPlaceholder:dt,axis:et.axis,frame:et.frame});return{...et,subject:xt}}const pt=ut?add$1(nt.scroll.max,ut):nt.scroll.max,ht=withMaxScroll$1(nt,pt),mt=getSubject$1({page:et.subject.page,withPlaceholder:dt,axis:et.axis,frame:ht});return{...et,subject:mt,frame:ht}},removePlaceholder$1=et=>{const tt=et.subject.withPlaceholder;tt||invariant$1();const rt=et.frame;if(!rt){const dt=getSubject$1({page:et.subject.page,axis:et.axis,frame:null,withPlaceholder:null});return{...et,subject:dt}}const nt=tt.oldFrameMaxScroll;nt||invariant$1();const lt=withMaxScroll$1(rt,nt),ut=getSubject$1({page:et.subject.page,axis:et.axis,frame:lt,withPlaceholder:null});return{...et,subject:ut,frame:lt}};var moveToNewDroppable$1=({previousPageBorderBoxCenter:et,moveRelativeTo:tt,insideDestination:rt,draggable:nt,draggables:lt,destination:ut,viewport:dt,afterCritical:pt})=>{if(!tt){if(rt.length)return null;const Mt={displaced:emptyGroups$1,displacedBy:noDisplacedBy$1,at:{type:"REORDER",destination:{droppableId:ut.descriptor.id,index:0}}},vt=getPageBorderBoxCenterFromImpact$1({impact:Mt,draggable:nt,droppable:ut,draggables:lt,afterCritical:pt}),Ot=isHomeOf$1(nt,ut)?ut:addPlaceholder$1(ut,nt,lt);return isTotallyVisibleInNewLocation$1({draggable:nt,destination:Ot,newPageBorderBoxCenter:vt,viewport:dt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?Mt:null}const ht=et[ut.axis.line]<=tt.page.borderBox.center[ut.axis.line],mt=(()=>{const Mt=tt.descriptor.index;return tt.descriptor.id===nt.descriptor.id||ht?Mt:Mt+1})(),xt=getDisplacedBy$1(ut.axis,nt.displaceBy);return calculateReorderImpact$1({draggable:nt,insideDestination:rt,destination:ut,viewport:dt,displacedBy:xt,last:emptyGroups$1,index:mt})},moveCrossAxis$1=({isMovingForward:et,previousPageBorderBoxCenter:tt,draggable:rt,isOver:nt,draggables:lt,droppables:ut,viewport:dt,afterCritical:pt})=>{const ht=getBestCrossAxisDroppable$1({isMovingForward:et,pageBorderBoxCenter:tt,source:nt,droppables:ut,viewport:dt});if(!ht)return null;const mt=getDraggablesInsideDroppable$1(ht.descriptor.id,lt),xt=getClosestDraggable$1({pageBorderBoxCenter:tt,viewport:dt,destination:ht,insideDestination:mt,afterCritical:pt}),Mt=moveToNewDroppable$1({previousPageBorderBoxCenter:tt,destination:ht,draggable:rt,draggables:lt,moveRelativeTo:xt,insideDestination:mt,viewport:dt,afterCritical:pt});if(!Mt)return null;const vt=getPageBorderBoxCenterFromImpact$1({impact:Mt,draggable:rt,droppable:ht,draggables:lt,afterCritical:pt});return{clientSelection:getClientFromPageBorderBoxCenter$1({pageBorderBoxCenter:vt,draggable:rt,viewport:dt}),impact:Mt,scrollJumpRequest:null}},whatIsDraggedOver$1=et=>{const tt=et.at;return tt?tt.type==="REORDER"?tt.destination.droppableId:tt.combine.droppableId:null};const getDroppableOver$1$1=(et,tt)=>{const rt=whatIsDraggedOver$1(et);return rt?tt[rt]:null};var moveInDirection$1=({state:et,type:tt})=>{const rt=getDroppableOver$1$1(et.impact,et.dimensions.droppables),nt=!!rt,lt=et.dimensions.droppables[et.critical.droppable.id],ut=rt||lt,dt=ut.axis.direction,pt=dt==="vertical"&&(tt==="MOVE_UP"||tt==="MOVE_DOWN")||dt==="horizontal"&&(tt==="MOVE_LEFT"||tt==="MOVE_RIGHT");if(pt&&!nt)return null;const ht=tt==="MOVE_DOWN"||tt==="MOVE_RIGHT",mt=et.dimensions.draggables[et.critical.draggable.id],xt=et.current.page.borderBoxCenter,{draggables:Mt,droppables:vt}=et.dimensions;return pt?moveToNextPlace$1({isMovingForward:ht,previousPageBorderBoxCenter:xt,draggable:mt,destination:ut,draggables:Mt,viewport:et.viewport,previousClientSelection:et.current.client.selection,previousImpact:et.impact,afterCritical:et.afterCritical}):moveCrossAxis$1({isMovingForward:ht,previousPageBorderBoxCenter:xt,draggable:mt,isOver:ut,draggables:Mt,droppables:vt,viewport:et.viewport,afterCritical:et.afterCritical})};function isMovementAllowed$1(et){return et.phase==="DRAGGING"||et.phase==="COLLECTING"}function isPositionInFrame$1(et){const tt=isWithin$1(et.top,et.bottom),rt=isWithin$1(et.left,et.right);return function(lt){return tt(lt.y)&&rt(lt.x)}}function getHasOverlap$1(et,tt){return et.left<tt.right&&et.right>tt.left&&et.top<tt.bottom&&et.bottom>tt.top}function getFurthestAway$1({pageBorderBox:et,draggable:tt,candidates:rt}){const nt=tt.page.borderBox.center,lt=rt.map(ut=>{const dt=ut.axis,pt=patch$1(ut.axis.line,et.center[dt.line],ut.page.borderBox.center[dt.crossAxisLine]);return{id:ut.descriptor.id,distance:distance$1(nt,pt)}}).sort((ut,dt)=>dt.distance-ut.distance);return lt[0]?lt[0].id:null}function getDroppableOver$2({pageBorderBox:et,draggable:tt,droppables:rt}){const nt=toDroppableList$1(rt).filter(lt=>{if(!lt.isEnabled)return!1;const ut=lt.subject.active;if(!ut||!getHasOverlap$1(et,ut))return!1;if(isPositionInFrame$1(ut)(et.center))return!0;const dt=lt.axis,pt=ut.center[dt.crossAxisLine],ht=et[dt.crossAxisStart],mt=et[dt.crossAxisEnd],xt=isWithin$1(ut[dt.crossAxisStart],ut[dt.crossAxisEnd]),Mt=xt(ht),vt=xt(mt);return!Mt&&!vt?!0:Mt?ht<pt:mt>pt});return nt.length?nt.length===1?nt[0].descriptor.id:getFurthestAway$1({pageBorderBox:et,draggable:tt,candidates:nt}):null}const offsetRectByPosition$1=(et,tt)=>getRect(offsetByPosition$1(et,tt));var withDroppableScroll$1=(et,tt)=>{const rt=et.frame;return rt?offsetRectByPosition$1(tt,rt.scroll.diff.value):tt};function getIsDisplaced$1({displaced:et,id:tt}){return!!(et.visible[tt]||et.invisible[tt])}function atIndex$1({draggable:et,closest:tt,inHomeList:rt}){return tt?rt&&tt.descriptor.index>et.descriptor.index?tt.descriptor.index-1:tt.descriptor.index:null}var getReorderImpact$1=({pageBorderBoxWithDroppableScroll:et,draggable:tt,destination:rt,insideDestination:nt,last:lt,viewport:ut,afterCritical:dt})=>{const pt=rt.axis,ht=getDisplacedBy$1(rt.axis,tt.displaceBy),mt=ht.value,xt=et[pt.start],Mt=et[pt.end],Ot=removeDraggableFromList$1(tt,nt).find(Rt=>{const zt=Rt.descriptor.id,Tt=Rt.page.borderBox.center[pt.line],Ct=didStartAfterCritical$1(zt,dt),It=getIsDisplaced$1({displaced:lt,id:zt});return Ct?It?Mt<=Tt:xt<Tt-mt:It?Mt<=Tt+mt:xt<Tt})||null,At=atIndex$1({draggable:tt,closest:Ot,inHomeList:isHomeOf$1(tt,rt)});return calculateReorderImpact$1({draggable:tt,insideDestination:nt,destination:rt,viewport:ut,last:lt,displacedBy:ht,index:At})};const combineThresholdDivisor$1=4;var getCombineImpact$1=({draggable:et,pageBorderBoxWithDroppableScroll:tt,previousImpact:rt,destination:nt,insideDestination:lt,afterCritical:ut})=>{if(!nt.isCombineEnabled)return null;const dt=nt.axis,pt=getDisplacedBy$1(nt.axis,et.displaceBy),ht=pt.value,mt=tt[dt.start],xt=tt[dt.end],vt=removeDraggableFromList$1(et,lt).find(At=>{const Rt=At.descriptor.id,zt=At.page.borderBox,Ct=zt[dt.size]/combineThresholdDivisor$1,It=didStartAfterCritical$1(Rt,ut),Dt=getIsDisplaced$1({displaced:rt.displaced,id:Rt});return It?Dt?xt>zt[dt.start]+Ct&&xt<zt[dt.end]-Ct:mt>zt[dt.start]-ht+Ct&&mt<zt[dt.end]-ht-Ct:Dt?xt>zt[dt.start]+ht+Ct&&xt<zt[dt.end]+ht-Ct:mt>zt[dt.start]+Ct&&mt<zt[dt.end]-Ct});return vt?{displacedBy:pt,displaced:rt.displaced,at:{type:"COMBINE",combine:{draggableId:vt.descriptor.id,droppableId:nt.descriptor.id}}}:null},getDragImpact$1=({pageOffset:et,draggable:tt,draggables:rt,droppables:nt,previousImpact:lt,viewport:ut,afterCritical:dt})=>{const pt=offsetRectByPosition$1(tt.page.borderBox,et),ht=getDroppableOver$2({pageBorderBox:pt,draggable:tt,droppables:nt});if(!ht)return noImpact$1;const mt=nt[ht],xt=getDraggablesInsideDroppable$1(mt.descriptor.id,rt),Mt=withDroppableScroll$1(mt,pt);return getCombineImpact$1({pageBorderBoxWithDroppableScroll:Mt,draggable:tt,previousImpact:lt,destination:mt,insideDestination:xt,afterCritical:dt})||getReorderImpact$1({pageBorderBoxWithDroppableScroll:Mt,draggable:tt,destination:mt,insideDestination:xt,last:lt.displaced,viewport:ut,afterCritical:dt})},patchDroppableMap$1=(et,tt)=>({...et,[tt.descriptor.id]:tt});const clearUnusedPlaceholder$1=({previousImpact:et,impact:tt,droppables:rt})=>{const nt=whatIsDraggedOver$1(et),lt=whatIsDraggedOver$1(tt);if(!nt||nt===lt)return rt;const ut=rt[nt];if(!ut.subject.withPlaceholder)return rt;const dt=removePlaceholder$1(ut);return patchDroppableMap$1(rt,dt)};var recomputePlaceholders$1=({draggable:et,draggables:tt,droppables:rt,previousImpact:nt,impact:lt})=>{const ut=clearUnusedPlaceholder$1({previousImpact:nt,impact:lt,droppables:rt}),dt=whatIsDraggedOver$1(lt);if(!dt)return ut;const pt=rt[dt];if(isHomeOf$1(et,pt)||pt.subject.withPlaceholder)return ut;const ht=addPlaceholder$1(pt,et,tt);return patchDroppableMap$1(ut,ht)},update$1=({state:et,clientSelection:tt,dimensions:rt,viewport:nt,impact:lt,scrollJumpRequest:ut})=>{const dt=nt||et.viewport,pt=rt||et.dimensions,ht=tt||et.current.client.selection,mt=subtract$1(ht,et.initial.client.selection),xt={offset:mt,selection:ht,borderBoxCenter:add$1(et.initial.client.borderBoxCenter,mt)},Mt={selection:add$1(xt.selection,dt.scroll.current),borderBoxCenter:add$1(xt.borderBoxCenter,dt.scroll.current),offset:add$1(xt.offset,dt.scroll.diff.value)},vt={client:xt,page:Mt};if(et.phase==="COLLECTING")return{...et,dimensions:pt,viewport:dt,current:vt};const Ot=pt.draggables[et.critical.draggable.id],At=lt||getDragImpact$1({pageOffset:Mt.offset,draggable:Ot,draggables:pt.draggables,droppables:pt.droppables,previousImpact:et.impact,viewport:dt,afterCritical:et.afterCritical}),Rt=recomputePlaceholders$1({draggable:Ot,impact:At,previousImpact:et.impact,draggables:pt.draggables,droppables:pt.droppables});return{...et,current:vt,dimensions:{draggables:pt.draggables,droppables:Rt},impact:At,viewport:dt,scrollJumpRequest:ut||null,forceShouldAnimate:ut?!1:null}};function getDraggables$2(et,tt){return et.map(rt=>tt[rt])}var recompute$1=({impact:et,viewport:tt,draggables:rt,destination:nt,forceShouldAnimate:lt})=>{const ut=et.displaced,dt=getDraggables$2(ut.all,rt),pt=getDisplacementGroups$1({afterDragging:dt,destination:nt,displacedBy:et.displacedBy,viewport:tt.frame,forceShouldAnimate:lt,last:ut});return{...et,displaced:pt}},getClientBorderBoxCenter$1=({impact:et,draggable:tt,droppable:rt,draggables:nt,viewport:lt,afterCritical:ut})=>{const dt=getPageBorderBoxCenterFromImpact$1({impact:et,draggable:tt,draggables:nt,droppable:rt,afterCritical:ut});return getClientFromPageBorderBoxCenter$1({pageBorderBoxCenter:dt,draggable:tt,viewport:lt})},refreshSnap$1=({state:et,dimensions:tt,viewport:rt})=>{et.movementMode!=="SNAP"&&invariant$1();const nt=et.impact,lt=rt||et.viewport,ut=tt||et.dimensions,{draggables:dt,droppables:pt}=ut,ht=dt[et.critical.draggable.id],mt=whatIsDraggedOver$1(nt);mt||invariant$1();const xt=pt[mt],Mt=recompute$1({impact:nt,viewport:lt,destination:xt,draggables:dt}),vt=getClientBorderBoxCenter$1({impact:Mt,draggable:ht,droppable:xt,draggables:dt,viewport:lt,afterCritical:et.afterCritical});return update$1({impact:Mt,clientSelection:vt,state:et,dimensions:ut,viewport:lt})},getHomeLocation$1=et=>({index:et.index,droppableId:et.droppableId}),getLiftEffect$1=({draggable:et,home:tt,draggables:rt,viewport:nt})=>{const lt=getDisplacedBy$1(tt.axis,et.displaceBy),ut=getDraggablesInsideDroppable$1(tt.descriptor.id,rt),dt=ut.indexOf(et);dt===-1&&invariant$1();const pt=ut.slice(dt+1),ht=pt.reduce((vt,Ot)=>(vt[Ot.descriptor.id]=!0,vt),{}),mt={inVirtualList:tt.descriptor.mode==="virtual",displacedBy:lt,effected:ht};return{impact:{displaced:getDisplacementGroups$1({afterDragging:pt,destination:tt,displacedBy:lt,last:null,viewport:nt.frame,forceShouldAnimate:!1}),displacedBy:lt,at:{type:"REORDER",destination:getHomeLocation$1(et.descriptor)}},afterCritical:mt}},patchDimensionMap$1=(et,tt)=>({draggables:et.draggables,droppables:patchDroppableMap$1(et.droppables,tt)}),offsetDraggable$1=({draggable:et,offset:tt,initialWindowScroll:rt})=>{const nt=offset(et.client,tt),lt=withScroll(nt,rt);return{...et,placeholder:{...et.placeholder,client:nt},client:nt,page:lt}},getFrame$1=et=>{const tt=et.frame;return tt||invariant$1(),tt},adjustAdditionsForScrollChanges$1=({additions:et,updatedDroppables:tt,viewport:rt})=>{const nt=rt.scroll.diff.value;return et.map(lt=>{const ut=lt.descriptor.droppableId,dt=tt[ut],ht=getFrame$1(dt).scroll.diff.value,mt=add$1(nt,ht);return offsetDraggable$1({draggable:lt,offset:mt,initialWindowScroll:rt.scroll.initial})})},publishWhileDraggingInVirtual$1=({state:et,published:tt})=>{const rt=tt.modified.map(Tt=>{const Ct=et.dimensions.droppables[Tt.droppableId];return scrollDroppable$1(Ct,Tt.scroll)}),nt={...et.dimensions.droppables,...toDroppableMap$1(rt)},lt=toDraggableMap$1(adjustAdditionsForScrollChanges$1({additions:tt.additions,updatedDroppables:nt,viewport:et.viewport})),ut={...et.dimensions.draggables,...lt};tt.removals.forEach(Tt=>{delete ut[Tt]});const dt={droppables:nt,draggables:ut},pt=whatIsDraggedOver$1(et.impact),ht=pt?dt.droppables[pt]:null,mt=dt.draggables[et.critical.draggable.id],xt=dt.droppables[et.critical.droppable.id],{impact:Mt,afterCritical:vt}=getLiftEffect$1({draggable:mt,home:xt,draggables:ut,viewport:et.viewport}),Ot=ht&&ht.isCombineEnabled?et.impact:Mt,At=getDragImpact$1({pageOffset:et.current.page.offset,draggable:dt.draggables[et.critical.draggable.id],draggables:dt.draggables,droppables:dt.droppables,previousImpact:Ot,viewport:et.viewport,afterCritical:vt}),Rt={...et,phase:"DRAGGING",impact:At,onLiftImpact:Mt,dimensions:dt,afterCritical:vt,forceShouldAnimate:!1};return et.phase==="COLLECTING"?Rt:{...Rt,phase:"DROP_PENDING",reason:et.reason,isWaiting:!1}};const isSnapping$1=et=>et.movementMode==="SNAP",postDroppableChange$1=(et,tt,rt)=>{const nt=patchDimensionMap$1(et.dimensions,tt);return!isSnapping$1(et)||rt?update$1({state:et,dimensions:nt}):refreshSnap$1({state:et,dimensions:nt})};function removeScrollJumpRequest$1(et){return et.isDragging&&et.movementMode==="SNAP"?{...et,scrollJumpRequest:null}:et}const idle$2$1={phase:"IDLE",completed:null,shouldFlush:!1};var reducer$1=(et=idle$2$1,tt)=>{if(tt.type==="FLUSH")return{...idle$2$1,shouldFlush:!0};if(tt.type==="INITIAL_PUBLISH"){et.phase!=="IDLE"&&invariant$1();const{critical:rt,clientSelection:nt,viewport:lt,dimensions:ut,movementMode:dt}=tt.payload,pt=ut.draggables[rt.draggable.id],ht=ut.droppables[rt.droppable.id],mt={selection:nt,borderBoxCenter:pt.client.borderBox.center,offset:origin$1},xt={client:mt,page:{selection:add$1(mt.selection,lt.scroll.initial),borderBoxCenter:add$1(mt.selection,lt.scroll.initial),offset:add$1(mt.selection,lt.scroll.diff.value)}},Mt=toDroppableList$1(ut.droppables).every(Rt=>!Rt.isFixedOnPage),{impact:vt,afterCritical:Ot}=getLiftEffect$1({draggable:pt,home:ht,draggables:ut.draggables,viewport:lt});return{phase:"DRAGGING",isDragging:!0,critical:rt,movementMode:dt,dimensions:ut,initial:xt,current:xt,isWindowScrollAllowed:Mt,impact:vt,afterCritical:Ot,onLiftImpact:vt,viewport:lt,scrollJumpRequest:null,forceShouldAnimate:null}}if(tt.type==="COLLECTION_STARTING")return et.phase==="COLLECTING"||et.phase==="DROP_PENDING"?et:(et.phase!=="DRAGGING"&&invariant$1(),{...et,phase:"COLLECTING"});if(tt.type==="PUBLISH_WHILE_DRAGGING")return et.phase==="COLLECTING"||et.phase==="DROP_PENDING"||invariant$1(),publishWhileDraggingInVirtual$1({state:et,published:tt.payload});if(tt.type==="MOVE"){if(et.phase==="DROP_PENDING")return et;isMovementAllowed$1(et)||invariant$1();const{client:rt}=tt.payload;return isEqual$1$1(rt,et.current.client.selection)?et:update$1({state:et,clientSelection:rt,impact:isSnapping$1(et)?et.impact:null})}if(tt.type==="UPDATE_DROPPABLE_SCROLL"){if(et.phase==="DROP_PENDING"||et.phase==="COLLECTING")return removeScrollJumpRequest$1(et);isMovementAllowed$1(et)||invariant$1();const{id:rt,newScroll:nt}=tt.payload,lt=et.dimensions.droppables[rt];if(!lt)return et;const ut=scrollDroppable$1(lt,nt);return postDroppableChange$1(et,ut,!1)}if(tt.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(et.phase==="DROP_PENDING")return et;isMovementAllowed$1(et)||invariant$1();const{id:rt,isEnabled:nt}=tt.payload,lt=et.dimensions.droppables[rt];lt||invariant$1(),lt.isEnabled===nt&&invariant$1();const ut={...lt,isEnabled:nt};return postDroppableChange$1(et,ut,!0)}if(tt.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(et.phase==="DROP_PENDING")return et;isMovementAllowed$1(et)||invariant$1();const{id:rt,isCombineEnabled:nt}=tt.payload,lt=et.dimensions.droppables[rt];lt||invariant$1(),lt.isCombineEnabled===nt&&invariant$1();const ut={...lt,isCombineEnabled:nt};return postDroppableChange$1(et,ut,!0)}if(tt.type==="MOVE_BY_WINDOW_SCROLL"){if(et.phase==="DROP_PENDING"||et.phase==="DROP_ANIMATING")return et;isMovementAllowed$1(et)||invariant$1(),et.isWindowScrollAllowed||invariant$1();const rt=tt.payload.newScroll;if(isEqual$1$1(et.viewport.scroll.current,rt))return removeScrollJumpRequest$1(et);const nt=scrollViewport$1(et.viewport,rt);return isSnapping$1(et)?refreshSnap$1({state:et,viewport:nt}):update$1({state:et,viewport:nt})}if(tt.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!isMovementAllowed$1(et))return et;const rt=tt.payload.maxScroll;if(isEqual$1$1(rt,et.viewport.scroll.max))return et;const nt={...et.viewport,scroll:{...et.viewport.scroll,max:rt}};return{...et,viewport:nt}}if(tt.type==="MOVE_UP"||tt.type==="MOVE_DOWN"||tt.type==="MOVE_LEFT"||tt.type==="MOVE_RIGHT"){if(et.phase==="COLLECTING"||et.phase==="DROP_PENDING")return et;et.phase!=="DRAGGING"&&invariant$1();const rt=moveInDirection$1({state:et,type:tt.type});return rt?update$1({state:et,impact:rt.impact,clientSelection:rt.clientSelection,scrollJumpRequest:rt.scrollJumpRequest}):et}if(tt.type==="DROP_PENDING"){const rt=tt.payload.reason;return et.phase!=="COLLECTING"&&invariant$1(),{...et,phase:"DROP_PENDING",isWaiting:!0,reason:rt}}if(tt.type==="DROP_ANIMATE"){const{completed:rt,dropDuration:nt,newHomeClientOffset:lt}=tt.payload;return et.phase==="DRAGGING"||et.phase==="DROP_PENDING"||invariant$1(),{phase:"DROP_ANIMATING",completed:rt,dropDuration:nt,newHomeClientOffset:lt,dimensions:et.dimensions}}if(tt.type==="DROP_COMPLETE"){const{completed:rt}=tt.payload;return{phase:"IDLE",completed:rt,shouldFlush:!1}}return et};function guard(et,tt){return et instanceof Object&&"type"in et&&et.type===tt}const beforeInitialCapture$1=et=>({type:"BEFORE_INITIAL_CAPTURE",payload:et}),lift$1$1=et=>({type:"LIFT",payload:et}),initialPublish$1=et=>({type:"INITIAL_PUBLISH",payload:et}),publishWhileDragging$1=et=>({type:"PUBLISH_WHILE_DRAGGING",payload:et}),collectionStarting$1=()=>({type:"COLLECTION_STARTING",payload:null}),updateDroppableScroll$1=et=>({type:"UPDATE_DROPPABLE_SCROLL",payload:et}),updateDroppableIsEnabled$1=et=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:et}),updateDroppableIsCombineEnabled$1=et=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:et}),move$1=et=>({type:"MOVE",payload:et}),moveByWindowScroll$1=et=>({type:"MOVE_BY_WINDOW_SCROLL",payload:et}),updateViewportMaxScroll$1=et=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:et}),moveUp$1=()=>({type:"MOVE_UP",payload:null}),moveDown$1=()=>({type:"MOVE_DOWN",payload:null}),moveRight$1=()=>({type:"MOVE_RIGHT",payload:null}),moveLeft$1=()=>({type:"MOVE_LEFT",payload:null}),flush$1=()=>({type:"FLUSH",payload:null}),animateDrop$1=et=>({type:"DROP_ANIMATE",payload:et}),completeDrop$1=et=>({type:"DROP_COMPLETE",payload:et}),drop$2=et=>({type:"DROP",payload:et}),dropPending$1=et=>({type:"DROP_PENDING",payload:et}),dropAnimationFinished$1=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var lift$2=et=>({getState:tt,dispatch:rt})=>nt=>lt=>{if(!guard(lt,"LIFT")){nt(lt);return}const{id:ut,clientSelection:dt,movementMode:pt}=lt.payload,ht=tt();ht.phase==="DROP_ANIMATING"&&rt(completeDrop$1({completed:ht.completed})),tt().phase!=="IDLE"&&invariant$1(),rt(flush$1()),rt(beforeInitialCapture$1({draggableId:ut,movementMode:pt}));const xt={draggableId:ut,scrollOptions:{shouldPublishImmediately:pt==="SNAP"}},{critical:Mt,dimensions:vt,viewport:Ot}=et.startPublishing(xt);rt(initialPublish$1({critical:Mt,dimensions:vt,clientSelection:dt,movementMode:pt,viewport:Ot}))},style$1=et=>()=>tt=>rt=>{guard(rt,"INITIAL_PUBLISH")&&et.dragging(),guard(rt,"DROP_ANIMATE")&&et.dropping(rt.payload.completed.result.reason),(guard(rt,"FLUSH")||guard(rt,"DROP_COMPLETE"))&&et.resting(),tt(rt)};const curves$3={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},combine$2={opacity:{drop:0,combining:.7},scale:{drop:.75}},timings$1={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},outOfTheWayTiming$1=`${timings$1.outOfTheWay}s ${curves$3.outOfTheWay}`,transitions$1={fluid:`opacity ${outOfTheWayTiming$1}`,snap:`transform ${outOfTheWayTiming$1}, opacity ${outOfTheWayTiming$1}`,drop:et=>{const tt=`${et}s ${curves$3.drop}`;return`transform ${tt}, opacity ${tt}`},outOfTheWay:`transform ${outOfTheWayTiming$1}`,placeholder:`height ${outOfTheWayTiming$1}, width ${outOfTheWayTiming$1}, margin ${outOfTheWayTiming$1}`},moveTo$1=et=>isEqual$1$1(et,origin$1)?void 0:`translate(${et.x}px, ${et.y}px)`,transforms$1={moveTo:moveTo$1,drop:(et,tt)=>{const rt=moveTo$1(et);if(rt)return tt?`${rt} scale(${combine$2.scale.drop})`:rt}},{minDropTime:minDropTime$1,maxDropTime:maxDropTime$1}=timings$1,dropTimeRange$1=maxDropTime$1-minDropTime$1,maxDropTimeAtDistance$1=1500,cancelDropModifier$1=.6;var getDropDuration$1=({current:et,destination:tt,reason:rt})=>{const nt=distance$1(et,tt);if(nt<=0)return minDropTime$1;if(nt>=maxDropTimeAtDistance$1)return maxDropTime$1;const lt=nt/maxDropTimeAtDistance$1,ut=minDropTime$1+dropTimeRange$1*lt,dt=rt==="CANCEL"?ut*cancelDropModifier$1:ut;return Number(dt.toFixed(2))},getNewHomeClientOffset$1=({impact:et,draggable:tt,dimensions:rt,viewport:nt,afterCritical:lt})=>{const{draggables:ut,droppables:dt}=rt,pt=whatIsDraggedOver$1(et),ht=pt?dt[pt]:null,mt=dt[tt.descriptor.droppableId],xt=getClientBorderBoxCenter$1({impact:et,draggable:tt,draggables:ut,afterCritical:lt,droppable:ht||mt,viewport:nt});return subtract$1(xt,tt.client.borderBox.center)},getDropImpact$1=({draggables:et,reason:tt,lastImpact:rt,home:nt,viewport:lt,onLiftImpact:ut})=>!rt.at||tt!=="DROP"?{impact:recompute$1({draggables:et,impact:ut,destination:nt,viewport:lt,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:rt.at.type==="REORDER"?{impact:rt,didDropInsideDroppable:!0}:{impact:{...rt,displaced:emptyGroups$1},didDropInsideDroppable:!0};const dropMiddleware=({getState:et,dispatch:tt})=>rt=>nt=>{if(!guard(nt,"DROP")){rt(nt);return}const lt=et(),ut=nt.payload.reason;if(lt.phase==="COLLECTING"){tt(dropPending$1({reason:ut}));return}if(lt.phase==="IDLE")return;lt.phase==="DROP_PENDING"&&lt.isWaiting&&invariant$1(),lt.phase==="DRAGGING"||lt.phase==="DROP_PENDING"||invariant$1();const pt=lt.critical,ht=lt.dimensions,mt=ht.draggables[lt.critical.draggable.id],{impact:xt,didDropInsideDroppable:Mt}=getDropImpact$1({reason:ut,lastImpact:lt.impact,afterCritical:lt.afterCritical,onLiftImpact:lt.onLiftImpact,home:lt.dimensions.droppables[lt.critical.droppable.id],viewport:lt.viewport,draggables:lt.dimensions.draggables}),vt=Mt?tryGetDestination$1(xt):null,Ot=Mt?tryGetCombine$1(xt):null,At={index:pt.draggable.index,droppableId:pt.droppable.id},Rt={draggableId:mt.descriptor.id,type:mt.descriptor.type,source:At,reason:ut,mode:lt.movementMode,destination:vt,combine:Ot},zt=getNewHomeClientOffset$1({impact:xt,draggable:mt,dimensions:ht,viewport:lt.viewport,afterCritical:lt.afterCritical}),Tt={critical:lt.critical,afterCritical:lt.afterCritical,result:Rt,impact:xt};if(!(!isEqual$1$1(lt.current.client.offset,zt)||!!Rt.combine)){tt(completeDrop$1({completed:Tt}));return}const It=getDropDuration$1({current:lt.current.client.offset,destination:zt,reason:ut});tt(animateDrop$1({newHomeClientOffset:zt,dropDuration:It,completed:Tt}))};var getWindowScroll$1=()=>({x:window.pageXOffset,y:window.pageYOffset});function getWindowScrollBinding$1(et){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:tt=>{tt.target!==window&&tt.target!==window.document||et()}}}function getScrollListener$1({onWindowScroll:et}){function tt(){et(getWindowScroll$1())}const rt=rafSchd(tt),nt=getWindowScrollBinding$1(rt);let lt=noop$2$1;function ut(){return lt!==noop$2$1}function dt(){ut()&&invariant$1(),lt=bindEvents$1(window,[nt])}function pt(){ut()||invariant$1(),rt.cancel(),lt(),lt=noop$2$1}return{start:dt,stop:pt,isActive:ut}}const shouldStop$1=et=>guard(et,"DROP_COMPLETE")||guard(et,"DROP_ANIMATE")||guard(et,"FLUSH"),scrollListener$1=et=>{const tt=getScrollListener$1({onWindowScroll:rt=>{et.dispatch(moveByWindowScroll$1({newScroll:rt}))}});return rt=>nt=>{!tt.isActive()&&guard(nt,"INITIAL_PUBLISH")&&tt.start(),tt.isActive()&&shouldStop$1(nt)&&tt.stop(),rt(nt)}};var getExpiringAnnounce$1=et=>{let tt=!1,rt=!1;const nt=setTimeout(()=>{rt=!0}),lt=ut=>{tt||rt||(tt=!0,et(ut),clearTimeout(nt))};return lt.wasCalled=()=>tt,lt},getAsyncMarshal$1=()=>{const et=[],tt=lt=>{const ut=et.findIndex(pt=>pt.timerId===lt);ut===-1&&invariant$1();const[dt]=et.splice(ut,1);dt.callback()};return{add:lt=>{const ut=setTimeout(()=>tt(ut)),dt={timerId:ut,callback:lt};et.push(dt)},flush:()=>{if(!et.length)return;const lt=[...et];et.length=0,lt.forEach(ut=>{clearTimeout(ut.timerId),ut.callback()})}}};const areLocationsEqual$1=(et,tt)=>et==null&&tt==null?!0:et==null||tt==null?!1:et.droppableId===tt.droppableId&&et.index===tt.index,isCombineEqual$1=(et,tt)=>et==null&&tt==null?!0:et==null||tt==null?!1:et.draggableId===tt.draggableId&&et.droppableId===tt.droppableId,isCriticalEqual$1=(et,tt)=>{if(et===tt)return!0;const rt=et.draggable.id===tt.draggable.id&&et.draggable.droppableId===tt.draggable.droppableId&&et.draggable.type===tt.draggable.type&&et.draggable.index===tt.draggable.index,nt=et.droppable.id===tt.droppable.id&&et.droppable.type===tt.droppable.type;return rt&&nt},withTimings$1=(et,tt)=>{tt()},getDragStart$1=(et,tt)=>({draggableId:et.draggable.id,type:et.droppable.type,source:{droppableId:et.droppable.id,index:et.draggable.index},mode:tt});function execute$1(et,tt,rt,nt){if(!et){rt(nt(tt));return}const lt=getExpiringAnnounce$1(rt);et(tt,{announce:lt}),lt.wasCalled()||rt(nt(tt))}var getPublisher$1=(et,tt)=>{const rt=getAsyncMarshal$1();let nt=null;const lt=(Mt,vt)=>{nt&&invariant$1(),withTimings$1("onBeforeCapture",()=>{const Ot=et().onBeforeCapture;Ot&&Ot({draggableId:Mt,mode:vt})})},ut=(Mt,vt)=>{nt&&invariant$1(),withTimings$1("onBeforeDragStart",()=>{const Ot=et().onBeforeDragStart;Ot&&Ot(getDragStart$1(Mt,vt))})},dt=(Mt,vt)=>{nt&&invariant$1();const Ot=getDragStart$1(Mt,vt);nt={mode:vt,lastCritical:Mt,lastLocation:Ot.source,lastCombine:null},rt.add(()=>{withTimings$1("onDragStart",()=>execute$1(et().onDragStart,Ot,tt,preset$1.onDragStart))})},pt=(Mt,vt)=>{const Ot=tryGetDestination$1(vt),At=tryGetCombine$1(vt);nt||invariant$1();const Rt=!isCriticalEqual$1(Mt,nt.lastCritical);Rt&&(nt.lastCritical=Mt);const zt=!areLocationsEqual$1(nt.lastLocation,Ot);zt&&(nt.lastLocation=Ot);const Tt=!isCombineEqual$1(nt.lastCombine,At);if(Tt&&(nt.lastCombine=At),!Rt&&!zt&&!Tt)return;const Ct={...getDragStart$1(Mt,nt.mode),combine:At,destination:Ot};rt.add(()=>{withTimings$1("onDragUpdate",()=>execute$1(et().onDragUpdate,Ct,tt,preset$1.onDragUpdate))})},ht=()=>{nt||invariant$1(),rt.flush()},mt=Mt=>{nt||invariant$1(),nt=null,withTimings$1("onDragEnd",()=>execute$1(et().onDragEnd,Mt,tt,preset$1.onDragEnd))};return{beforeCapture:lt,beforeStart:ut,start:dt,update:pt,flush:ht,drop:mt,abort:()=>{if(!nt)return;const Mt={...getDragStart$1(nt.lastCritical,nt.mode),combine:null,destination:null,reason:"CANCEL"};mt(Mt)}}},responders$1=(et,tt)=>{const rt=getPublisher$1(et,tt);return nt=>lt=>ut=>{if(guard(ut,"BEFORE_INITIAL_CAPTURE")){rt.beforeCapture(ut.payload.draggableId,ut.payload.movementMode);return}if(guard(ut,"INITIAL_PUBLISH")){const pt=ut.payload.critical;rt.beforeStart(pt,ut.payload.movementMode),lt(ut),rt.start(pt,ut.payload.movementMode);return}if(guard(ut,"DROP_COMPLETE")){const pt=ut.payload.completed.result;rt.flush(),lt(ut),rt.drop(pt);return}if(lt(ut),guard(ut,"FLUSH")){rt.abort();return}const dt=nt.getState();dt.phase==="DRAGGING"&&rt.update(dt.critical,dt.impact)}};const dropAnimationFinishMiddleware=et=>tt=>rt=>{if(!guard(rt,"DROP_ANIMATION_FINISHED")){tt(rt);return}const nt=et.getState();nt.phase!=="DROP_ANIMATING"&&invariant$1(),et.dispatch(completeDrop$1({completed:nt.completed}))},dropAnimationFlushOnScrollMiddleware=et=>{let tt=null,rt=null;function nt(){rt&&(cancelAnimationFrame(rt),rt=null),tt&&(tt(),tt=null)}return lt=>ut=>{if((guard(ut,"FLUSH")||guard(ut,"DROP_COMPLETE")||guard(ut,"DROP_ANIMATION_FINISHED"))&&nt(),lt(ut),!guard(ut,"DROP_ANIMATE"))return;const dt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){et.getState().phase==="DROP_ANIMATING"&&et.dispatch(dropAnimationFinished$1())}};rt=requestAnimationFrame(()=>{rt=null,tt=bindEvents$1(window,[dt])})}};var dimensionMarshalStopper$1=et=>()=>tt=>rt=>{(guard(rt,"DROP_COMPLETE")||guard(rt,"FLUSH")||guard(rt,"DROP_ANIMATE"))&&et.stopPublishing(),tt(rt)},focus$1=et=>{let tt=!1;return()=>rt=>nt=>{if(guard(nt,"INITIAL_PUBLISH")){tt=!0,et.tryRecordFocus(nt.payload.critical.draggable.id),rt(nt),et.tryRestoreFocusRecorded();return}if(rt(nt),!!tt){if(guard(nt,"FLUSH")){tt=!1,et.tryRestoreFocusRecorded();return}if(guard(nt,"DROP_COMPLETE")){tt=!1;const lt=nt.payload.completed.result;lt.combine&&et.tryShiftRecord(lt.draggableId,lt.combine.draggableId),et.tryRestoreFocusRecorded()}}}};const shouldStop$2=et=>guard(et,"DROP_COMPLETE")||guard(et,"DROP_ANIMATE")||guard(et,"FLUSH");var autoScroll$1=et=>tt=>rt=>nt=>{if(shouldStop$2(nt)){et.stop(),rt(nt);return}if(guard(nt,"INITIAL_PUBLISH")){rt(nt);const lt=tt.getState();lt.phase!=="DRAGGING"&&invariant$1(),et.start(lt);return}rt(nt),et.scroll(tt.getState())};const pendingDrop$1=et=>tt=>rt=>{if(tt(rt),!guard(rt,"PUBLISH_WHILE_DRAGGING"))return;const nt=et.getState();nt.phase==="DROP_PENDING"&&(nt.isWaiting||et.dispatch(drop$2({reason:nt.reason})))},composeEnhancers$1=compose$1;var createStore$2=({dimensionMarshal:et,focusMarshal:tt,styleMarshal:rt,getResponders:nt,announce:lt,autoScroller:ut})=>createStore$3(reducer$1,composeEnhancers$1(applyMiddleware$1(style$1(rt),dimensionMarshalStopper$1(et),lift$2(et),dropMiddleware,dropAnimationFinishMiddleware,dropAnimationFlushOnScrollMiddleware,pendingDrop$1,autoScroll$1(ut),scrollListener$1,focus$1(tt),responders$1(nt,lt))));const clean$1$1=()=>({additions:{},removals:{},modified:{}});function createPublisher$1({registry:et,callbacks:tt}){let rt=clean$1$1(),nt=null;const lt=()=>{nt||(tt.collectionStarting(),nt=requestAnimationFrame(()=>{nt=null;const{additions:ht,removals:mt,modified:xt}=rt,Mt=Object.keys(ht).map(At=>et.draggable.getById(At).getDimension(origin$1)).sort((At,Rt)=>At.descriptor.index-Rt.descriptor.index),vt=Object.keys(xt).map(At=>{const zt=et.droppable.getById(At).callbacks.getScrollWhileDragging();return{droppableId:At,scroll:zt}}),Ot={additions:Mt,removals:Object.keys(mt),modified:vt};rt=clean$1$1(),tt.publish(Ot)}))};return{add:ht=>{const mt=ht.descriptor.id;rt.additions[mt]=ht,rt.modified[ht.descriptor.droppableId]=!0,rt.removals[mt]&&delete rt.removals[mt],lt()},remove:ht=>{const mt=ht.descriptor;rt.removals[mt.id]=!0,rt.modified[mt.droppableId]=!0,rt.additions[mt.id]&&delete rt.additions[mt.id],lt()},stop:()=>{nt&&(cancelAnimationFrame(nt),nt=null,rt=clean$1$1())}}}var getMaxScroll$1=({scrollHeight:et,scrollWidth:tt,height:rt,width:nt})=>{const lt=subtract$1({x:tt,y:et},{x:nt,y:rt});return{x:Math.max(0,lt.x),y:Math.max(0,lt.y)}},getDocumentElement$1=()=>{const et=document.documentElement;return et||invariant$1(),et},getMaxWindowScroll$1=()=>{const et=getDocumentElement$1();return getMaxScroll$1({scrollHeight:et.scrollHeight,scrollWidth:et.scrollWidth,width:et.clientWidth,height:et.clientHeight})},getViewport$1=()=>{const et=getWindowScroll$1(),tt=getMaxWindowScroll$1(),rt=et.y,nt=et.x,lt=getDocumentElement$1(),ut=lt.clientWidth,dt=lt.clientHeight,pt=nt+ut,ht=rt+dt;return{frame:getRect({top:rt,left:nt,right:pt,bottom:ht}),scroll:{initial:et,current:et,max:tt,diff:{value:origin$1,displacement:origin$1}}}},getInitialPublish$1=({critical:et,scrollOptions:tt,registry:rt})=>{const nt=getViewport$1(),lt=nt.scroll.current,ut=et.droppable,dt=rt.droppable.getAllByType(ut.type).map(xt=>xt.callbacks.getDimensionAndWatchScroll(lt,tt)),pt=rt.draggable.getAllByType(et.draggable.type).map(xt=>xt.getDimension(lt));return{dimensions:{draggables:toDraggableMap$1(pt),droppables:toDroppableMap$1(dt)},critical:et,viewport:nt}};function shouldPublishUpdate$1(et,tt,rt){return!(rt.descriptor.id===tt.id||rt.descriptor.type!==tt.type||et.droppable.getById(rt.descriptor.droppableId).descriptor.mode!=="virtual")}var createDimensionMarshal$1=(et,tt)=>{let rt=null;const nt=createPublisher$1({callbacks:{publish:tt.publishWhileDragging,collectionStarting:tt.collectionStarting},registry:et}),lt=(vt,Ot)=>{et.droppable.exists(vt)||invariant$1(),rt&&tt.updateDroppableIsEnabled({id:vt,isEnabled:Ot})},ut=(vt,Ot)=>{rt&&(et.droppable.exists(vt)||invariant$1(),tt.updateDroppableIsCombineEnabled({id:vt,isCombineEnabled:Ot}))},dt=(vt,Ot)=>{rt&&(et.droppable.exists(vt)||invariant$1(),tt.updateDroppableScroll({id:vt,newScroll:Ot}))},pt=(vt,Ot)=>{rt&&et.droppable.getById(vt).callbacks.scroll(Ot)},ht=()=>{if(!rt)return;nt.stop();const vt=rt.critical.droppable;et.droppable.getAllByType(vt.type).forEach(Ot=>Ot.callbacks.dragStopped()),rt.unsubscribe(),rt=null},mt=vt=>{rt||invariant$1();const Ot=rt.critical.draggable;vt.type==="ADDITION"&&shouldPublishUpdate$1(et,Ot,vt.value)&&nt.add(vt.value),vt.type==="REMOVAL"&&shouldPublishUpdate$1(et,Ot,vt.value)&&nt.remove(vt.value)};return{updateDroppableIsEnabled:lt,updateDroppableIsCombineEnabled:ut,scrollDroppable:pt,updateDroppableScroll:dt,startPublishing:vt=>{rt&&invariant$1();const Ot=et.draggable.getById(vt.draggableId),At=et.droppable.getById(Ot.descriptor.droppableId),Rt={draggable:Ot.descriptor,droppable:At.descriptor},zt=et.subscribe(mt);return rt={critical:Rt,unsubscribe:zt},getInitialPublish$1({critical:Rt,registry:et,scrollOptions:vt.scrollOptions})},stopPublishing:ht}},canStartDrag$1=(et,tt)=>et.phase==="IDLE"?!0:et.phase!=="DROP_ANIMATING"||et.completed.result.draggableId===tt?!1:et.completed.result.reason==="DROP",scrollWindow$1=et=>{window.scrollBy(et.x,et.y)};const getScrollableDroppables$1=memoizeOne(et=>toDroppableList$1(et).filter(tt=>!(!tt.isEnabled||!tt.frame))),getScrollableDroppableOver$1=(et,tt)=>getScrollableDroppables$1(tt).find(nt=>(nt.frame||invariant$1(),isPositionInFrame$1(nt.frame.pageMarginBox)(et)))||null;var getBestScrollableDroppable$1=({center:et,destination:tt,droppables:rt})=>{if(tt){const lt=rt[tt];return lt.frame?lt:null}return getScrollableDroppableOver$1(et,rt)};const defaultAutoScrollerOptions={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:et=>et**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var getDistanceThresholds$1=(et,tt,rt=()=>defaultAutoScrollerOptions)=>{const nt=rt(),lt=et[tt.size]*nt.startFromPercentage,ut=et[tt.size]*nt.maxScrollAtPercentage;return{startScrollingFrom:lt,maxScrollValueAt:ut}},getPercentage$1=({startOfRange:et,endOfRange:tt,current:rt})=>{const nt=tt-et;return nt===0?0:(rt-et)/nt},minScroll$1=1,getValueFromDistance$1=(et,tt,rt=()=>defaultAutoScrollerOptions)=>{const nt=rt();if(et>tt.startScrollingFrom)return 0;if(et<=tt.maxScrollValueAt)return nt.maxPixelScroll;if(et===tt.startScrollingFrom)return minScroll$1;const ut=1-getPercentage$1({startOfRange:tt.maxScrollValueAt,endOfRange:tt.startScrollingFrom,current:et}),dt=nt.maxPixelScroll*nt.ease(ut);return Math.ceil(dt)},dampenValueByTime$1=(et,tt,rt)=>{const nt=rt(),lt=nt.durationDampening.accelerateAt,ut=nt.durationDampening.stopDampeningAt,dt=tt,pt=ut,mt=Date.now()-dt;if(mt>=ut)return et;if(mt<lt)return minScroll$1;const xt=getPercentage$1({startOfRange:lt,endOfRange:pt,current:mt}),Mt=et*nt.ease(xt);return Math.ceil(Mt)},getValue$1=({distanceToEdge:et,thresholds:tt,dragStartTime:rt,shouldUseTimeDampening:nt,getAutoScrollerOptions:lt})=>{const ut=getValueFromDistance$1(et,tt,lt);return ut===0?0:nt?Math.max(dampenValueByTime$1(ut,rt,lt),minScroll$1):ut},getScrollOnAxis$1=({container:et,distanceToEdges:tt,dragStartTime:rt,axis:nt,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut})=>{const dt=getDistanceThresholds$1(et,nt,ut);return tt[nt.end]<tt[nt.start]?getValue$1({distanceToEdge:tt[nt.end],thresholds:dt,dragStartTime:rt,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut}):-1*getValue$1({distanceToEdge:tt[nt.start],thresholds:dt,dragStartTime:rt,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut})},adjustForSizeLimits$1=({container:et,subject:tt,proposedScroll:rt})=>{const nt=tt.height>et.height,lt=tt.width>et.width;return!lt&&!nt?rt:lt&&nt?null:{x:lt?0:rt.x,y:nt?0:rt.y}};const clean=apply$1(et=>et===0?0:et);var getScroll$1$1=({dragStartTime:et,container:tt,subject:rt,center:nt,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut})=>{const dt={top:nt.y-tt.top,right:tt.right-nt.x,bottom:tt.bottom-nt.y,left:nt.x-tt.left},pt=getScrollOnAxis$1({container:tt,distanceToEdges:dt,dragStartTime:et,axis:vertical$1,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut}),ht=getScrollOnAxis$1({container:tt,distanceToEdges:dt,dragStartTime:et,axis:horizontal$1,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut}),mt=clean({x:ht,y:pt});if(isEqual$1$1(mt,origin$1))return null;const xt=adjustForSizeLimits$1({container:tt,subject:rt,proposedScroll:mt});return xt?isEqual$1$1(xt,origin$1)?null:xt:null};const smallestSigned$1=apply$1(et=>et===0?0:et>0?1:-1),getOverlap$1=(()=>{const et=(tt,rt)=>tt<0?tt:tt>rt?tt-rt:0;return({current:tt,max:rt,change:nt})=>{const lt=add$1(tt,nt),ut={x:et(lt.x,rt.x),y:et(lt.y,rt.y)};return isEqual$1$1(ut,origin$1)?null:ut}})(),canPartiallyScroll$1=({max:et,current:tt,change:rt})=>{const nt={x:Math.max(tt.x,et.x),y:Math.max(tt.y,et.y)},lt=smallestSigned$1(rt),ut=getOverlap$1({max:nt,current:tt,change:lt});return!ut||lt.x!==0&&ut.x===0||lt.y!==0&&ut.y===0},canScrollWindow$1=(et,tt)=>canPartiallyScroll$1({current:et.scroll.current,max:et.scroll.max,change:tt}),getWindowOverlap$1=(et,tt)=>{if(!canScrollWindow$1(et,tt))return null;const rt=et.scroll.max,nt=et.scroll.current;return getOverlap$1({current:nt,max:rt,change:tt})},canScrollDroppable$1=(et,tt)=>{const rt=et.frame;return rt?canPartiallyScroll$1({current:rt.scroll.current,max:rt.scroll.max,change:tt}):!1},getDroppableOverlap$1=(et,tt)=>{const rt=et.frame;return!rt||!canScrollDroppable$1(et,tt)?null:getOverlap$1({current:rt.scroll.current,max:rt.scroll.max,change:tt})};var getWindowScrollChange$1=({viewport:et,subject:tt,center:rt,dragStartTime:nt,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut})=>{const dt=getScroll$1$1({dragStartTime:nt,container:et.frame,subject:tt,center:rt,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut});return dt&&canScrollWindow$1(et,dt)?dt:null},getDroppableScrollChange$1=({droppable:et,subject:tt,center:rt,dragStartTime:nt,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut})=>{const dt=et.frame;if(!dt)return null;const pt=getScroll$1$1({dragStartTime:nt,container:dt.pageMarginBox,subject:tt,center:rt,shouldUseTimeDampening:lt,getAutoScrollerOptions:ut});return pt&&canScrollDroppable$1(et,pt)?pt:null},scroll$2=({state:et,dragStartTime:tt,shouldUseTimeDampening:rt,scrollWindow:nt,scrollDroppable:lt,getAutoScrollerOptions:ut})=>{const dt=et.current.page.borderBoxCenter,ht=et.dimensions.draggables[et.critical.draggable.id].page.marginBox;if(et.isWindowScrollAllowed){const Mt=et.viewport,vt=getWindowScrollChange$1({dragStartTime:tt,viewport:Mt,subject:ht,center:dt,shouldUseTimeDampening:rt,getAutoScrollerOptions:ut});if(vt){nt(vt);return}}const mt=getBestScrollableDroppable$1({center:dt,destination:whatIsDraggedOver$1(et.impact),droppables:et.dimensions.droppables});if(!mt)return;const xt=getDroppableScrollChange$1({dragStartTime:tt,droppable:mt,subject:ht,center:dt,shouldUseTimeDampening:rt,getAutoScrollerOptions:ut});xt&&lt(mt.descriptor.id,xt)},createFluidScroller$1=({scrollWindow:et,scrollDroppable:tt,getAutoScrollerOptions:rt=()=>defaultAutoScrollerOptions})=>{const nt=rafSchd(et),lt=rafSchd(tt);let ut=null;const dt=mt=>{ut||invariant$1();const{shouldUseTimeDampening:xt,dragStartTime:Mt}=ut;scroll$2({state:mt,scrollWindow:nt,scrollDroppable:lt,dragStartTime:Mt,shouldUseTimeDampening:xt,getAutoScrollerOptions:rt})};return{start:mt=>{ut&&invariant$1();const xt=Date.now();let Mt=!1;const vt=()=>{Mt=!0};scroll$2({state:mt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:vt,scrollDroppable:vt,getAutoScrollerOptions:rt}),ut={dragStartTime:xt,shouldUseTimeDampening:Mt},Mt&&dt(mt)},stop:()=>{ut&&(nt.cancel(),lt.cancel(),ut=null)},scroll:dt}},createJumpScroller$1=({move:et,scrollDroppable:tt,scrollWindow:rt})=>{const nt=(pt,ht)=>{const mt=add$1(pt.current.client.selection,ht);et({client:mt})},lt=(pt,ht)=>{if(!canScrollDroppable$1(pt,ht))return ht;const mt=getDroppableOverlap$1(pt,ht);if(!mt)return tt(pt.descriptor.id,ht),null;const xt=subtract$1(ht,mt);return tt(pt.descriptor.id,xt),subtract$1(ht,xt)},ut=(pt,ht,mt)=>{if(!pt||!canScrollWindow$1(ht,mt))return mt;const xt=getWindowOverlap$1(ht,mt);if(!xt)return rt(mt),null;const Mt=subtract$1(mt,xt);return rt(Mt),subtract$1(mt,Mt)};return pt=>{const ht=pt.scrollJumpRequest;if(!ht)return;const mt=whatIsDraggedOver$1(pt.impact);mt||invariant$1();const xt=lt(pt.dimensions.droppables[mt],ht);if(!xt)return;const Mt=pt.viewport,vt=ut(pt.isWindowScrollAllowed,Mt,xt);vt&&nt(pt,vt)}},createAutoScroller$1=({scrollDroppable:et,scrollWindow:tt,move:rt,getAutoScrollerOptions:nt})=>{const lt=createFluidScroller$1({scrollWindow:tt,scrollDroppable:et,getAutoScrollerOptions:nt}),ut=createJumpScroller$1({move:rt,scrollWindow:tt,scrollDroppable:et});return{scroll:ht=>{if(!(nt().disabled||ht.phase!=="DRAGGING")){if(ht.movementMode==="FLUID"){lt.scroll(ht);return}ht.scrollJumpRequest&&ut(ht)}},start:lt.start,stop:lt.stop}};const prefix$2="data-rfd",dragHandle$1=(()=>{const et=`${prefix$2}-drag-handle`;return{base:et,draggableId:`${et}-draggable-id`,contextId:`${et}-context-id`}})(),draggable$1=(()=>{const et=`${prefix$2}-draggable`;return{base:et,contextId:`${et}-context-id`,id:`${et}-id`}})(),droppable$1=(()=>{const et=`${prefix$2}-droppable`;return{base:et,contextId:`${et}-context-id`,id:`${et}-id`}})(),scrollContainer$1={contextId:`${prefix$2}-scroll-container-context-id`},makeGetSelector$1=et=>tt=>`[${tt}="${et}"]`,getStyles$2=(et,tt)=>et.map(rt=>{const nt=rt.styles[tt];return nt?`${rt.selector} { ${nt} }`:""}).join(" "),noPointerEvents$1="pointer-events: none;";var getStyles$1$1=et=>{const tt=makeGetSelector$1(et),rt=(()=>{const pt=`
      cursor: -webkit-grab;
      cursor: grab;
    `;return{selector:tt(dragHandle$1.contextId),styles:{always:`
          -webkit-touch-callout: none;
          -webkit-tap-highlight-color: rgba(0,0,0,0);
          touch-action: manipulation;
        `,resting:pt,dragging:noPointerEvents$1,dropAnimating:pt}}})(),nt=(()=>{const pt=`
      transition: ${transitions$1.outOfTheWay};
    `;return{selector:tt(draggable$1.contextId),styles:{dragging:pt,dropAnimating:pt,userCancel:pt}}})(),lt={selector:tt(droppable$1.contextId),styles:{always:"overflow-anchor: none;"}},dt=[nt,rt,lt,{selector:"body",styles:{dragging:`
        cursor: grabbing;
        cursor: -webkit-grabbing;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        overflow-anchor: none;
      `}}];return{always:getStyles$2(dt,"always"),resting:getStyles$2(dt,"resting"),dragging:getStyles$2(dt,"dragging"),dropAnimating:getStyles$2(dt,"dropAnimating"),userCancel:getStyles$2(dt,"userCancel")}};const useIsomorphicLayoutEffect$2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect,getHead$1=()=>{const et=document.querySelector("head");return et||invariant$1(),et},createStyleEl$1=et=>{const tt=document.createElement("style");return et&&tt.setAttribute("nonce",et),tt.type="text/css",tt};function useStyleMarshal$1(et,tt){const rt=useMemo(()=>getStyles$1$1(et),[et]),nt=reactExports.useRef(null),lt=reactExports.useRef(null),ut=useCallback(memoizeOne(Mt=>{const vt=lt.current;vt||invariant$1(),vt.textContent=Mt}),[]),dt=useCallback(Mt=>{const vt=nt.current;vt||invariant$1(),vt.textContent=Mt},[]);useIsomorphicLayoutEffect$2(()=>{!nt.current&&!lt.current||invariant$1();const Mt=createStyleEl$1(tt),vt=createStyleEl$1(tt);return nt.current=Mt,lt.current=vt,Mt.setAttribute(`${prefix$2}-always`,et),vt.setAttribute(`${prefix$2}-dynamic`,et),getHead$1().appendChild(Mt),getHead$1().appendChild(vt),dt(rt.always),ut(rt.resting),()=>{const Ot=At=>{const Rt=At.current;Rt||invariant$1(),getHead$1().removeChild(Rt),At.current=null};Ot(nt),Ot(lt)}},[tt,dt,ut,rt.always,rt.resting,et]);const pt=useCallback(()=>ut(rt.dragging),[ut,rt.dragging]),ht=useCallback(Mt=>{if(Mt==="DROP"){ut(rt.dropAnimating);return}ut(rt.userCancel)},[ut,rt.dropAnimating,rt.userCancel]),mt=useCallback(()=>{lt.current&&ut(rt.resting)},[ut,rt.resting]);return useMemo(()=>({dragging:pt,dropping:ht,resting:mt}),[pt,ht,mt])}function querySelectorAll(et,tt){return Array.from(et.querySelectorAll(tt))}var getWindowFromEl$1=et=>et&&et.ownerDocument&&et.ownerDocument.defaultView?et.ownerDocument.defaultView:window;function isHtmlElement$1(et){return et instanceof getWindowFromEl$1(et).HTMLElement}function findDragHandle$1(et,tt){const rt=`[${dragHandle$1.contextId}="${et}"]`,nt=querySelectorAll(document,rt);if(!nt.length)return null;const lt=nt.find(ut=>ut.getAttribute(dragHandle$1.draggableId)===tt);return!lt||!isHtmlElement$1(lt)?null:lt}function useFocusMarshal$1(et){const tt=reactExports.useRef({}),rt=reactExports.useRef(null),nt=reactExports.useRef(null),lt=reactExports.useRef(!1),ut=useCallback(function(vt,Ot){const At={id:vt,focus:Ot};return tt.current[vt]=At,function(){const zt=tt.current;zt[vt]!==At&&delete zt[vt]}},[]),dt=useCallback(function(vt){const Ot=findDragHandle$1(et,vt);Ot&&Ot!==document.activeElement&&Ot.focus()},[et]),pt=useCallback(function(vt,Ot){rt.current===vt&&(rt.current=Ot)},[]),ht=useCallback(function(){nt.current||lt.current&&(nt.current=requestAnimationFrame(()=>{nt.current=null;const vt=rt.current;vt&&dt(vt)}))},[dt]),mt=useCallback(function(vt){rt.current=null;const Ot=document.activeElement;Ot&&Ot.getAttribute(dragHandle$1.draggableId)===vt&&(rt.current=vt)},[]);return useIsomorphicLayoutEffect$2(()=>(lt.current=!0,function(){lt.current=!1;const vt=nt.current;vt&&cancelAnimationFrame(vt)}),[]),useMemo(()=>({register:ut,tryRecordFocus:mt,tryRestoreFocusRecorded:ht,tryShiftRecord:pt}),[ut,mt,ht,pt])}function createRegistry$1(){const et={draggables:{},droppables:{}},tt=[];function rt(Mt){return tt.push(Mt),function(){const Ot=tt.indexOf(Mt);Ot!==-1&&tt.splice(Ot,1)}}function nt(Mt){tt.length&&tt.forEach(vt=>vt(Mt))}function lt(Mt){return et.draggables[Mt]||null}function ut(Mt){const vt=lt(Mt);return vt||invariant$1(),vt}const dt={register:Mt=>{et.draggables[Mt.descriptor.id]=Mt,nt({type:"ADDITION",value:Mt})},update:(Mt,vt)=>{const Ot=et.draggables[vt.descriptor.id];Ot&&Ot.uniqueId===Mt.uniqueId&&(delete et.draggables[vt.descriptor.id],et.draggables[Mt.descriptor.id]=Mt)},unregister:Mt=>{const vt=Mt.descriptor.id,Ot=lt(vt);Ot&&Mt.uniqueId===Ot.uniqueId&&(delete et.draggables[vt],et.droppables[Mt.descriptor.droppableId]&&nt({type:"REMOVAL",value:Mt}))},getById:ut,findById:lt,exists:Mt=>!!lt(Mt),getAllByType:Mt=>Object.values(et.draggables).filter(vt=>vt.descriptor.type===Mt)};function pt(Mt){return et.droppables[Mt]||null}function ht(Mt){const vt=pt(Mt);return vt||invariant$1(),vt}const mt={register:Mt=>{et.droppables[Mt.descriptor.id]=Mt},unregister:Mt=>{const vt=pt(Mt.descriptor.id);vt&&Mt.uniqueId===vt.uniqueId&&delete et.droppables[Mt.descriptor.id]},getById:ht,findById:pt,exists:Mt=>!!pt(Mt),getAllByType:Mt=>Object.values(et.droppables).filter(vt=>vt.descriptor.type===Mt)};function xt(){et.draggables={},et.droppables={},tt.length=0}return{draggable:dt,droppable:mt,subscribe:rt,clean:xt}}function useRegistry$1(){const et=useMemo(createRegistry$1,[]);return reactExports.useEffect(()=>function(){et.clean()},[et]),et}var StoreContext$1=React$4.createContext(null),getBodyElement$1=()=>{const et=document.body;return et||invariant$1(),et};const visuallyHidden$1={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},getId$1=et=>`rfd-announcement-${et}`;function useAnnouncer$1(et){const tt=useMemo(()=>getId$1(et),[et]),rt=reactExports.useRef(null);return reactExports.useEffect(function(){const ut=document.createElement("div");return rt.current=ut,ut.id=tt,ut.setAttribute("aria-live","assertive"),ut.setAttribute("aria-atomic","true"),_extends$j(ut.style,visuallyHidden$1),getBodyElement$1().appendChild(ut),function(){setTimeout(function(){const ht=getBodyElement$1();ht.contains(ut)&&ht.removeChild(ut),ut===rt.current&&(rt.current=null)})}},[tt]),useCallback(lt=>{const ut=rt.current;if(ut){ut.textContent=lt;return}},[])}const defaults$1={separator:"::"};function useUniqueId$1(et,tt=defaults$1){const rt=React$4.useId();return useMemo(()=>`${et}${tt.separator}${rt}`,[tt.separator,et,rt])}function getElementId$1({contextId:et,uniqueId:tt}){return`rfd-hidden-text-${et}-${tt}`}function useHiddenTextElement$1({contextId:et,text:tt}){const rt=useUniqueId$1("hidden-text",{separator:"-"}),nt=useMemo(()=>getElementId$1({contextId:et,uniqueId:rt}),[rt,et]);return reactExports.useEffect(function(){const ut=document.createElement("div");return ut.id=nt,ut.textContent=tt,ut.style.display="none",getBodyElement$1().appendChild(ut),function(){const pt=getBodyElement$1();pt.contains(ut)&&pt.removeChild(ut)}},[nt,tt]),nt}var AppContext$1=React$4.createContext(null);function usePrevious$1(et){const tt=reactExports.useRef(et);return reactExports.useEffect(()=>{tt.current=et}),tt}function create$1(){let et=null;function tt(){return!!et}function rt(dt){return dt===et}function nt(dt){et&&invariant$1();const pt={abandon:dt};return et=pt,pt}function lt(){et||invariant$1(),et=null}function ut(){et&&(et.abandon(),lt())}return{isClaimed:tt,isActive:rt,claim:nt,release:lt,tryAbandon:ut}}function isDragging(et){return et.phase==="IDLE"||et.phase==="DROP_ANIMATING"?!1:et.isDragging}const tab$1=9,enter$1=13,escape$2=27,space$1=32,pageUp$1=33,pageDown$1=34,end$1=35,home$1=36,arrowLeft$1=37,arrowUp$1=38,arrowRight$1=39,arrowDown$1=40,preventedKeys$1={[enter$1]:!0,[tab$1]:!0};var preventStandardKeyEvents$1=et=>{preventedKeys$1[et.keyCode]&&et.preventDefault()};const supportedEventName$1=(()=>{const et="visibilitychange";return typeof document>"u"?et:[et,`ms${et}`,`webkit${et}`,`moz${et}`,`o${et}`].find(nt=>`on${nt}`in document)||et})(),primaryButton$1=0,sloppyClickThreshold$1=5;function isSloppyClickThresholdExceeded$1(et,tt){return Math.abs(tt.x-et.x)>=sloppyClickThreshold$1||Math.abs(tt.y-et.y)>=sloppyClickThreshold$1}const idle$1$1={type:"IDLE"};function getCaptureBindings$1({cancel:et,completed:tt,getPhase:rt,setPhase:nt}){return[{eventName:"mousemove",fn:lt=>{const{button:ut,clientX:dt,clientY:pt}=lt;if(ut!==primaryButton$1)return;const ht={x:dt,y:pt},mt=rt();if(mt.type==="DRAGGING"){lt.preventDefault(),mt.actions.move(ht);return}mt.type!=="PENDING"&&invariant$1();const xt=mt.point;if(!isSloppyClickThresholdExceeded$1(xt,ht))return;lt.preventDefault();const Mt=mt.actions.fluidLift(ht);nt({type:"DRAGGING",actions:Mt})}},{eventName:"mouseup",fn:lt=>{const ut=rt();if(ut.type!=="DRAGGING"){et();return}lt.preventDefault(),ut.actions.drop({shouldBlockNextClick:!0}),tt()}},{eventName:"mousedown",fn:lt=>{rt().type==="DRAGGING"&&lt.preventDefault(),et()}},{eventName:"keydown",fn:lt=>{if(rt().type==="PENDING"){et();return}if(lt.keyCode===escape$2){lt.preventDefault(),et();return}preventStandardKeyEvents$1(lt)}},{eventName:"resize",fn:et},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{rt().type==="PENDING"&&et()}},{eventName:"webkitmouseforcedown",fn:lt=>{const ut=rt();if(ut.type==="IDLE"&&invariant$1(),ut.actions.shouldRespectForcePress()){et();return}lt.preventDefault()}},{eventName:supportedEventName$1,fn:et}]}function useMouseSensor$1(et){const tt=reactExports.useRef(idle$1$1),rt=reactExports.useRef(noop$2$1),nt=useMemo(()=>({eventName:"mousedown",fn:function(Mt){if(Mt.defaultPrevented||Mt.button!==primaryButton$1||Mt.ctrlKey||Mt.metaKey||Mt.shiftKey||Mt.altKey)return;const vt=et.findClosestDraggableId(Mt);if(!vt)return;const Ot=et.tryGetLock(vt,dt,{sourceEvent:Mt});if(!Ot)return;Mt.preventDefault();const At={x:Mt.clientX,y:Mt.clientY};rt.current(),mt(Ot,At)}}),[et]),lt=useMemo(()=>({eventName:"webkitmouseforcewillbegin",fn:xt=>{if(xt.defaultPrevented)return;const Mt=et.findClosestDraggableId(xt);if(!Mt)return;const vt=et.findOptionsForDraggable(Mt);vt&&(vt.shouldRespectForcePress||et.canGetLock(Mt)&&xt.preventDefault())}}),[et]),ut=useCallback(function(){const Mt={passive:!1,capture:!0};rt.current=bindEvents$1(window,[lt,nt],Mt)},[lt,nt]),dt=useCallback(()=>{tt.current.type!=="IDLE"&&(tt.current=idle$1$1,rt.current(),ut())},[ut]),pt=useCallback(()=>{const xt=tt.current;dt(),xt.type==="DRAGGING"&&xt.actions.cancel({shouldBlockNextClick:!0}),xt.type==="PENDING"&&xt.actions.abort()},[dt]),ht=useCallback(function(){const Mt={capture:!0,passive:!1},vt=getCaptureBindings$1({cancel:pt,completed:dt,getPhase:()=>tt.current,setPhase:Ot=>{tt.current=Ot}});rt.current=bindEvents$1(window,vt,Mt)},[pt,dt]),mt=useCallback(function(Mt,vt){tt.current.type!=="IDLE"&&invariant$1(),tt.current={type:"PENDING",point:vt,actions:Mt},ht()},[ht]);useIsomorphicLayoutEffect$2(function(){return ut(),function(){rt.current()}},[ut])}function noop$1$2(){}const scrollJumpKeys$1={[pageDown$1]:!0,[pageUp$1]:!0,[home$1]:!0,[end$1]:!0};function getDraggingBindings$1(et,tt){function rt(){tt(),et.cancel()}function nt(){tt(),et.drop()}return[{eventName:"keydown",fn:lt=>{if(lt.keyCode===escape$2){lt.preventDefault(),rt();return}if(lt.keyCode===space$1){lt.preventDefault(),nt();return}if(lt.keyCode===arrowDown$1){lt.preventDefault(),et.moveDown();return}if(lt.keyCode===arrowUp$1){lt.preventDefault(),et.moveUp();return}if(lt.keyCode===arrowRight$1){lt.preventDefault(),et.moveRight();return}if(lt.keyCode===arrowLeft$1){lt.preventDefault(),et.moveLeft();return}if(scrollJumpKeys$1[lt.keyCode]){lt.preventDefault();return}preventStandardKeyEvents$1(lt)}},{eventName:"mousedown",fn:rt},{eventName:"mouseup",fn:rt},{eventName:"click",fn:rt},{eventName:"touchstart",fn:rt},{eventName:"resize",fn:rt},{eventName:"wheel",fn:rt,options:{passive:!0}},{eventName:supportedEventName$1,fn:rt}]}function useKeyboardSensor$1(et){const tt=reactExports.useRef(noop$1$2),rt=useMemo(()=>({eventName:"keydown",fn:function(ut){if(ut.defaultPrevented||ut.keyCode!==space$1)return;const dt=et.findClosestDraggableId(ut);if(!dt)return;const pt=et.tryGetLock(dt,xt,{sourceEvent:ut});if(!pt)return;ut.preventDefault();let ht=!0;const mt=pt.snapLift();tt.current();function xt(){ht||invariant$1(),ht=!1,tt.current(),nt()}tt.current=bindEvents$1(window,getDraggingBindings$1(mt,xt),{capture:!0,passive:!1})}}),[et]),nt=useCallback(function(){const ut={passive:!1,capture:!0};tt.current=bindEvents$1(window,[rt],ut)},[rt]);useIsomorphicLayoutEffect$2(function(){return nt(),function(){tt.current()}},[nt])}const idle$3={type:"IDLE"},timeForLongPress$1=120,forcePressThreshold$1=.15;function getWindowBindings$1({cancel:et,getPhase:tt}){return[{eventName:"orientationchange",fn:et},{eventName:"resize",fn:et},{eventName:"contextmenu",fn:rt=>{rt.preventDefault()}},{eventName:"keydown",fn:rt=>{if(tt().type!=="DRAGGING"){et();return}rt.keyCode===escape$2&&rt.preventDefault(),et()}},{eventName:supportedEventName$1,fn:et}]}function getHandleBindings$1({cancel:et,completed:tt,getPhase:rt}){return[{eventName:"touchmove",options:{capture:!1},fn:nt=>{const lt=rt();if(lt.type!=="DRAGGING"){et();return}lt.hasMoved=!0;const{clientX:ut,clientY:dt}=nt.touches[0],pt={x:ut,y:dt};nt.preventDefault(),lt.actions.move(pt)}},{eventName:"touchend",fn:nt=>{const lt=rt();if(lt.type!=="DRAGGING"){et();return}nt.preventDefault(),lt.actions.drop({shouldBlockNextClick:!0}),tt()}},{eventName:"touchcancel",fn:nt=>{if(rt().type!=="DRAGGING"){et();return}nt.preventDefault(),et()}},{eventName:"touchforcechange",fn:nt=>{const lt=rt();lt.type==="IDLE"&&invariant$1();const ut=nt.touches[0];if(!ut||!(ut.force>=forcePressThreshold$1))return;const pt=lt.actions.shouldRespectForcePress();if(lt.type==="PENDING"){pt&&et();return}if(pt){if(lt.hasMoved){nt.preventDefault();return}et();return}nt.preventDefault()}},{eventName:supportedEventName$1,fn:et}]}function useTouchSensor$1(et){const tt=reactExports.useRef(idle$3),rt=reactExports.useRef(noop$2$1),nt=useCallback(function(){return tt.current},[]),lt=useCallback(function(Ot){tt.current=Ot},[]),ut=useMemo(()=>({eventName:"touchstart",fn:function(Ot){if(Ot.defaultPrevented)return;const At=et.findClosestDraggableId(Ot);if(!At)return;const Rt=et.tryGetLock(At,pt,{sourceEvent:Ot});if(!Rt)return;const zt=Ot.touches[0],{clientX:Tt,clientY:Ct}=zt,It={x:Tt,y:Ct};rt.current(),Mt(Rt,It)}}),[et]),dt=useCallback(function(){const Ot={capture:!0,passive:!1};rt.current=bindEvents$1(window,[ut],Ot)},[ut]),pt=useCallback(()=>{const vt=tt.current;vt.type!=="IDLE"&&(vt.type==="PENDING"&&clearTimeout(vt.longPressTimerId),lt(idle$3),rt.current(),dt())},[dt,lt]),ht=useCallback(()=>{const vt=tt.current;pt(),vt.type==="DRAGGING"&&vt.actions.cancel({shouldBlockNextClick:!0}),vt.type==="PENDING"&&vt.actions.abort()},[pt]),mt=useCallback(function(){const Ot={capture:!0,passive:!1},At={cancel:ht,completed:pt,getPhase:nt},Rt=bindEvents$1(window,getHandleBindings$1(At),Ot),zt=bindEvents$1(window,getWindowBindings$1(At),Ot);rt.current=function(){Rt(),zt()}},[ht,nt,pt]),xt=useCallback(function(){const Ot=nt();Ot.type!=="PENDING"&&invariant$1();const At=Ot.actions.fluidLift(Ot.point);lt({type:"DRAGGING",actions:At,hasMoved:!1})},[nt,lt]),Mt=useCallback(function(Ot,At){nt().type!=="IDLE"&&invariant$1();const Rt=setTimeout(xt,timeForLongPress$1);lt({type:"PENDING",point:At,actions:Ot,longPressTimerId:Rt}),mt()},[mt,nt,lt,xt]);useIsomorphicLayoutEffect$2(function(){return dt(),function(){rt.current();const At=nt();At.type==="PENDING"&&(clearTimeout(At.longPressTimerId),lt(idle$3))}},[nt,dt,lt]),useIsomorphicLayoutEffect$2(function(){return bindEvents$1(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const interactiveTagNames$1=["input","button","textarea","select","option","optgroup","video","audio"];function isAnInteractiveElement$1(et,tt){if(tt==null)return!1;if(interactiveTagNames$1.includes(tt.tagName.toLowerCase()))return!0;const nt=tt.getAttribute("contenteditable");return nt==="true"||nt===""?!0:tt===et?!1:isAnInteractiveElement$1(et,tt.parentElement)}function isEventInInteractiveElement$1(et,tt){const rt=tt.target;return isHtmlElement$1(rt)?isAnInteractiveElement$1(et,rt):!1}var getBorderBoxCenterPosition$1=et=>getRect(et.getBoundingClientRect()).center;function isElement$1(et){return et instanceof getWindowFromEl$1(et).Element}const supportedMatchesName$1=(()=>{const et="matches";return typeof document>"u"?et:[et,"msMatchesSelector","webkitMatchesSelector"].find(nt=>nt in Element.prototype)||et})();function closestPonyfill$1(et,tt){return et==null?null:et[supportedMatchesName$1](tt)?et:closestPonyfill$1(et.parentElement,tt)}function closest$2(et,tt){return et.closest?et.closest(tt):closestPonyfill$1(et,tt)}function getSelector$1(et){return`[${dragHandle$1.contextId}="${et}"]`}function findClosestDragHandleFromEvent$1(et,tt){const rt=tt.target;if(!isElement$1(rt))return null;const nt=getSelector$1(et),lt=closest$2(rt,nt);return!lt||!isHtmlElement$1(lt)?null:lt}function tryGetClosestDraggableIdFromEvent$1(et,tt){const rt=findClosestDragHandleFromEvent$1(et,tt);return rt?rt.getAttribute(dragHandle$1.draggableId):null}function findDraggable$1(et,tt){const rt=`[${draggable$1.contextId}="${et}"]`,lt=querySelectorAll(document,rt).find(ut=>ut.getAttribute(draggable$1.id)===tt);return!lt||!isHtmlElement$1(lt)?null:lt}function preventDefault$1(et){et.preventDefault()}function isActive({expected:et,phase:tt,isLockActive:rt,shouldWarn:nt}){return!(!rt()||et!==tt)}function canStart$1({lockAPI:et,store:tt,registry:rt,draggableId:nt}){if(et.isClaimed())return!1;const lt=rt.draggable.findById(nt);return!(!lt||!lt.options.isEnabled||!canStartDrag$1(tt.getState(),nt))}function tryStart$1({lockAPI:et,contextId:tt,store:rt,registry:nt,draggableId:lt,forceSensorStop:ut,sourceEvent:dt}){if(!canStart$1({lockAPI:et,store:rt,registry:nt,draggableId:lt}))return null;const ht=nt.draggable.getById(lt),mt=findDraggable$1(tt,ht.descriptor.id);if(!mt||dt&&!ht.options.canDragInteractiveElements&&isEventInInteractiveElement$1(mt,dt))return null;const xt=et.claim(ut||noop$2$1);let Mt="PRE_DRAG";function vt(){return ht.options.shouldRespectForcePress}function Ot(){return et.isActive(xt)}function At(kt,qt){isActive({expected:kt,phase:Mt,isLockActive:Ot,shouldWarn:!0})&&rt.dispatch(qt())}const Rt=At.bind(null,"DRAGGING");function zt(kt){function qt(){et.release(),Mt="COMPLETED"}Mt!=="PRE_DRAG"&&(qt(),invariant$1()),rt.dispatch(lift$1$1(kt.liftActionArgs)),Mt="DRAGGING";function Nt(Yt,Kt={shouldBlockNextClick:!1}){if(kt.cleanup(),Kt.shouldBlockNextClick){const Jt=bindEvents$1(window,[{eventName:"click",fn:preventDefault$1,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Jt)}qt(),rt.dispatch(drop$2({reason:Yt}))}return{isActive:()=>isActive({expected:"DRAGGING",phase:Mt,isLockActive:Ot,shouldWarn:!1}),shouldRespectForcePress:vt,drop:Yt=>Nt("DROP",Yt),cancel:Yt=>Nt("CANCEL",Yt),...kt.actions}}function Tt(kt){const qt=rafSchd(Yt=>{Rt(()=>move$1({client:Yt}))});return{...zt({liftActionArgs:{id:lt,clientSelection:kt,movementMode:"FLUID"},cleanup:()=>qt.cancel(),actions:{move:qt}}),move:qt}}function Ct(){const kt={moveUp:()=>Rt(moveUp$1),moveRight:()=>Rt(moveRight$1),moveDown:()=>Rt(moveDown$1),moveLeft:()=>Rt(moveLeft$1)};return zt({liftActionArgs:{id:lt,clientSelection:getBorderBoxCenterPosition$1(mt),movementMode:"SNAP"},cleanup:noop$2$1,actions:kt})}function It(){isActive({expected:"PRE_DRAG",phase:Mt,isLockActive:Ot,shouldWarn:!0})&&et.release()}return{isActive:()=>isActive({expected:"PRE_DRAG",phase:Mt,isLockActive:Ot,shouldWarn:!1}),shouldRespectForcePress:vt,fluidLift:Tt,snapLift:Ct,abort:It}}const defaultSensors$1=[useMouseSensor$1,useKeyboardSensor$1,useTouchSensor$1];function useSensorMarshal$1({contextId:et,store:tt,registry:rt,customSensors:nt,enableDefaultSensors:lt}){const ut=[...lt?defaultSensors$1:[],...nt||[]],dt=reactExports.useState(()=>create$1())[0],pt=useCallback(function(zt,Tt){isDragging(zt)&&!isDragging(Tt)&&dt.tryAbandon()},[dt]);useIsomorphicLayoutEffect$2(function(){let zt=tt.getState();return tt.subscribe(()=>{const Ct=tt.getState();pt(zt,Ct),zt=Ct})},[dt,tt,pt]),useIsomorphicLayoutEffect$2(()=>dt.tryAbandon,[dt.tryAbandon]);const ht=useCallback(Rt=>canStart$1({lockAPI:dt,registry:rt,store:tt,draggableId:Rt}),[dt,rt,tt]),mt=useCallback((Rt,zt,Tt)=>tryStart$1({lockAPI:dt,registry:rt,contextId:et,store:tt,draggableId:Rt,forceSensorStop:zt||null,sourceEvent:Tt&&Tt.sourceEvent?Tt.sourceEvent:null}),[et,dt,rt,tt]),xt=useCallback(Rt=>tryGetClosestDraggableIdFromEvent$1(et,Rt),[et]),Mt=useCallback(Rt=>{const zt=rt.draggable.findById(Rt);return zt?zt.options:null},[rt.draggable]),vt=useCallback(function(){dt.isClaimed()&&(dt.tryAbandon(),tt.getState().phase!=="IDLE"&&tt.dispatch(flush$1()))},[dt,tt]),Ot=useCallback(()=>dt.isClaimed(),[dt]),At=useMemo(()=>({canGetLock:ht,tryGetLock:mt,findClosestDraggableId:xt,findOptionsForDraggable:Mt,tryReleaseLock:vt,isLockClaimed:Ot}),[ht,mt,xt,Mt,vt,Ot]);for(let Rt=0;Rt<ut.length;Rt++)ut[Rt](At)}const createResponders$1=et=>({onBeforeCapture:tt=>{const rt=()=>{et.onBeforeCapture&&et.onBeforeCapture(tt)};reactDomExports.flushSync(rt)},onBeforeDragStart:et.onBeforeDragStart,onDragStart:et.onDragStart,onDragEnd:et.onDragEnd,onDragUpdate:et.onDragUpdate}),createAutoScrollerOptions=et=>({...defaultAutoScrollerOptions,...et.autoScrollerOptions,durationDampening:{...defaultAutoScrollerOptions.durationDampening,...et.autoScrollerOptions}});function getStore$1(et){return et.current||invariant$1(),et.current}function App$1(et){const{contextId:tt,setCallbacks:rt,sensors:nt,nonce:lt,dragHandleUsageInstructions:ut}=et,dt=reactExports.useRef(null),pt=usePrevious$1(et),ht=useCallback(()=>createResponders$1(pt.current),[pt]),mt=useCallback(()=>createAutoScrollerOptions(pt.current),[pt]),xt=useAnnouncer$1(tt),Mt=useHiddenTextElement$1({contextId:tt,text:ut}),vt=useStyleMarshal$1(tt,lt),Ot=useCallback(Jt=>{getStore$1(dt).dispatch(Jt)},[]),At=useMemo(()=>bindActionCreators$3({publishWhileDragging:publishWhileDragging$1,updateDroppableScroll:updateDroppableScroll$1,updateDroppableIsEnabled:updateDroppableIsEnabled$1,updateDroppableIsCombineEnabled:updateDroppableIsCombineEnabled$1,collectionStarting:collectionStarting$1},Ot),[Ot]),Rt=useRegistry$1(),zt=useMemo(()=>createDimensionMarshal$1(Rt,At),[Rt,At]),Tt=useMemo(()=>createAutoScroller$1({scrollWindow:scrollWindow$1,scrollDroppable:zt.scrollDroppable,getAutoScrollerOptions:mt,...bindActionCreators$3({move:move$1},Ot)}),[zt.scrollDroppable,Ot,mt]),Ct=useFocusMarshal$1(tt),It=useMemo(()=>createStore$2({announce:xt,autoScroller:Tt,dimensionMarshal:zt,focusMarshal:Ct,getResponders:ht,styleMarshal:vt}),[xt,Tt,zt,Ct,ht,vt]);dt.current=It;const Dt=useCallback(()=>{const Jt=getStore$1(dt);Jt.getState().phase!=="IDLE"&&Jt.dispatch(flush$1())},[]),kt=useCallback(()=>{const Jt=getStore$1(dt).getState();return Jt.phase==="DROP_ANIMATING"?!0:Jt.phase==="IDLE"?!1:Jt.isDragging},[]),qt=useMemo(()=>({isDragging:kt,tryAbort:Dt}),[kt,Dt]);rt(qt);const Nt=useCallback(Jt=>canStartDrag$1(getStore$1(dt).getState(),Jt),[]),Yt=useCallback(()=>isMovementAllowed$1(getStore$1(dt).getState()),[]),Kt=useMemo(()=>({marshal:zt,focus:Ct,contextId:tt,canLift:Nt,isMovementAllowed:Yt,dragHandleUsageInstructionsId:Mt,registry:Rt}),[tt,zt,Mt,Ct,Nt,Yt,Rt]);return useSensorMarshal$1({contextId:tt,store:It,registry:Rt,customSensors:nt||null,enableDefaultSensors:et.enableDefaultSensors!==!1}),reactExports.useEffect(()=>Dt,[Dt]),React$4.createElement(AppContext$1.Provider,{value:Kt},React$4.createElement(Provider_default,{context:StoreContext$1,store:It},et.children))}function useUniqueContextId(){return React$4.useId()}function DragDropContext$1(et){const tt=useUniqueContextId(),rt=et.dragHandleUsageInstructions||preset$1.dragHandleUsageInstructions;return React$4.createElement(ErrorBoundary$1,null,nt=>React$4.createElement(App$1,{nonce:et.nonce,contextId:tt,setCallbacks:nt,dragHandleUsageInstructions:rt,enableDefaultSensors:et.enableDefaultSensors,sensors:et.sensors,onBeforeCapture:et.onBeforeCapture,onBeforeDragStart:et.onBeforeDragStart,onDragStart:et.onDragStart,onDragUpdate:et.onDragUpdate,onDragEnd:et.onDragEnd,autoScrollerOptions:et.autoScrollerOptions},et.children))}const zIndexOptions$1={dragging:5e3,dropAnimating:4500},getDraggingTransition$1=(et,tt)=>tt?transitions$1.drop(tt.duration):et?transitions$1.snap:transitions$1.fluid,getDraggingOpacity$1=(et,tt)=>{if(et)return tt?combine$2.opacity.drop:combine$2.opacity.combining},getShouldDraggingAnimate$1=et=>et.forceShouldAnimate!=null?et.forceShouldAnimate:et.mode==="SNAP";function getDraggingStyle$1(et){const rt=et.dimension.client,{offset:nt,combineWith:lt,dropping:ut}=et,dt=!!lt,pt=getShouldDraggingAnimate$1(et),ht=!!ut,mt=ht?transforms$1.drop(nt,dt):transforms$1.moveTo(nt);return{position:"fixed",top:rt.marginBox.top,left:rt.marginBox.left,boxSizing:"border-box",width:rt.borderBox.width,height:rt.borderBox.height,transition:getDraggingTransition$1(pt,ut),transform:mt,opacity:getDraggingOpacity$1(dt,ht),zIndex:ht?zIndexOptions$1.dropAnimating:zIndexOptions$1.dragging,pointerEvents:"none"}}function getSecondaryStyle$1(et){return{transform:transforms$1.moveTo(et.offset),transition:et.shouldAnimateDisplacement?void 0:"none"}}function getStyle$1$1(et){return et.type==="DRAGGING"?getDraggingStyle$1(et):getSecondaryStyle$1(et)}function getDimension$1$1(et,tt,rt=origin$1){const nt=window.getComputedStyle(tt),lt=tt.getBoundingClientRect(),ut=calculateBox(lt,nt),dt=withScroll(ut,rt),pt={client:ut,tagName:tt.tagName.toLowerCase(),display:nt.display},ht={x:ut.marginBox.width,y:ut.marginBox.height};return{descriptor:et,placeholder:pt,displaceBy:ht,client:ut,page:dt}}function useDraggablePublisher$1(et){const tt=useUniqueId$1("draggable"),{descriptor:rt,registry:nt,getDraggableRef:lt,canDragInteractiveElements:ut,shouldRespectForcePress:dt,isEnabled:pt}=et,ht=useMemo(()=>({canDragInteractiveElements:ut,shouldRespectForcePress:dt,isEnabled:pt}),[ut,pt,dt]),mt=useCallback(Ot=>{const At=lt();return At||invariant$1(),getDimension$1$1(rt,At,Ot)},[rt,lt]),xt=useMemo(()=>({uniqueId:tt,descriptor:rt,options:ht,getDimension:mt}),[rt,mt,ht,tt]),Mt=reactExports.useRef(xt),vt=reactExports.useRef(!0);useIsomorphicLayoutEffect$2(()=>(nt.draggable.register(Mt.current),()=>nt.draggable.unregister(Mt.current)),[nt.draggable]),useIsomorphicLayoutEffect$2(()=>{if(vt.current){vt.current=!1;return}const Ot=Mt.current;Mt.current=xt,nt.draggable.update(xt,Ot)},[xt,nt.draggable])}var DroppableContext$1=React$4.createContext(null);function useRequiredContext$1(et){const tt=reactExports.useContext(et);return tt||invariant$1(),tt}function preventHtml5Dnd$1(et){et.preventDefault()}const Draggable$1=et=>{const tt=reactExports.useRef(null),rt=useCallback((qt=null)=>{tt.current=qt},[]),nt=useCallback(()=>tt.current,[]),{contextId:lt,dragHandleUsageInstructionsId:ut,registry:dt}=useRequiredContext$1(AppContext$1),{type:pt,droppableId:ht}=useRequiredContext$1(DroppableContext$1),mt=useMemo(()=>({id:et.draggableId,index:et.index,type:pt,droppableId:ht}),[et.draggableId,et.index,pt,ht]),{children:xt,draggableId:Mt,isEnabled:vt,shouldRespectForcePress:Ot,canDragInteractiveElements:At,isClone:Rt,mapped:zt,dropAnimationFinished:Tt}=et;if(!Rt){const qt=useMemo(()=>({descriptor:mt,registry:dt,getDraggableRef:nt,canDragInteractiveElements:At,shouldRespectForcePress:Ot,isEnabled:vt}),[mt,dt,nt,At,Ot,vt]);useDraggablePublisher$1(qt)}const Ct=useMemo(()=>vt?{tabIndex:0,role:"button","aria-describedby":ut,"data-rfd-drag-handle-draggable-id":Mt,"data-rfd-drag-handle-context-id":lt,draggable:!1,onDragStart:preventHtml5Dnd$1}:null,[lt,ut,Mt,vt]),It=useCallback(qt=>{zt.type==="DRAGGING"&&zt.dropping&&qt.propertyName==="transform"&&reactDomExports.flushSync(Tt)},[Tt,zt]),Dt=useMemo(()=>{const qt=getStyle$1$1(zt),Nt=zt.type==="DRAGGING"&&zt.dropping?It:void 0;return{innerRef:rt,draggableProps:{"data-rfd-draggable-context-id":lt,"data-rfd-draggable-id":Mt,style:qt,onTransitionEnd:Nt},dragHandleProps:Ct}},[lt,Ct,Mt,zt,It,rt]),kt=useMemo(()=>({draggableId:mt.id,type:mt.type,source:{index:mt.index,droppableId:mt.droppableId}}),[mt.droppableId,mt.id,mt.index,mt.type]);return React$4.createElement(React$4.Fragment,null,xt(Dt,zt.snapshot,kt))};var isStrictEqual$1=(et,tt)=>et===tt,whatIsDraggedOverFromResult$1=et=>{const{combine:tt,destination:rt}=et;return rt?rt.droppableId:tt?tt.droppableId:null};const getCombineWithFromResult$1=et=>et.combine?et.combine.draggableId:null,getCombineWithFromImpact$1=et=>et.at&&et.at.type==="COMBINE"?et.at.combine.draggableId:null;function getDraggableSelector$1(){const et=memoizeOne((lt,ut)=>({x:lt,y:ut})),tt=memoizeOne((lt,ut,dt=null,pt=null,ht=null)=>({isDragging:!0,isClone:ut,isDropAnimating:!!ht,dropAnimation:ht,mode:lt,draggingOver:dt,combineWith:pt,combineTargetFor:null})),rt=memoizeOne((lt,ut,dt,pt,ht=null,mt=null,xt=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:ht,combineWith:mt,mode:ut,offset:lt,dimension:dt,forceShouldAnimate:xt,snapshot:tt(ut,pt,ht,mt,null)}}));return(lt,ut)=>{if(isDragging(lt)){if(lt.critical.draggable.id!==ut.draggableId)return null;const dt=lt.current.client.offset,pt=lt.dimensions.draggables[ut.draggableId],ht=whatIsDraggedOver$1(lt.impact),mt=getCombineWithFromImpact$1(lt.impact),xt=lt.forceShouldAnimate;return rt(et(dt.x,dt.y),lt.movementMode,pt,ut.isClone,ht,mt,xt)}if(lt.phase==="DROP_ANIMATING"){const dt=lt.completed;if(dt.result.draggableId!==ut.draggableId)return null;const pt=ut.isClone,ht=lt.dimensions.draggables[ut.draggableId],mt=dt.result,xt=mt.mode,Mt=whatIsDraggedOverFromResult$1(mt),vt=getCombineWithFromResult$1(mt),At={duration:lt.dropDuration,curve:curves$3.drop,moveTo:lt.newHomeClientOffset,opacity:vt?combine$2.opacity.drop:null,scale:vt?combine$2.scale.drop:null};return{mapped:{type:"DRAGGING",offset:lt.newHomeClientOffset,dimension:ht,dropping:At,draggingOver:Mt,combineWith:vt,mode:xt,forceShouldAnimate:null,snapshot:tt(xt,pt,Mt,vt,At)}}}return null}}function getSecondarySnapshot$1(et=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:et,combineWith:null}}const atRest$1={mapped:{type:"SECONDARY",offset:origin$1,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:getSecondarySnapshot$1(null)}};function getSecondarySelector$1(){const et=memoizeOne((dt,pt)=>({x:dt,y:pt})),tt=memoizeOne(getSecondarySnapshot$1),rt=memoizeOne((dt,pt=null,ht)=>({mapped:{type:"SECONDARY",offset:dt,combineTargetFor:pt,shouldAnimateDisplacement:ht,snapshot:tt(pt)}})),nt=dt=>dt?rt(origin$1,dt,!0):null,lt=(dt,pt,ht,mt)=>{const xt=ht.displaced.visible[dt],Mt=!!(mt.inVirtualList&&mt.effected[dt]),vt=tryGetCombine$1(ht),Ot=vt&&vt.draggableId===dt?pt:null;if(!xt){if(!Mt)return nt(Ot);if(ht.displaced.invisible[dt])return null;const zt=negate$1(mt.displacedBy.point),Tt=et(zt.x,zt.y);return rt(Tt,Ot,!0)}if(Mt)return nt(Ot);const At=ht.displacedBy.point,Rt=et(At.x,At.y);return rt(Rt,Ot,xt.shouldAnimate)};return(dt,pt)=>{if(isDragging(dt))return dt.critical.draggable.id===pt.draggableId?null:lt(pt.draggableId,dt.critical.draggable.id,dt.impact,dt.afterCritical);if(dt.phase==="DROP_ANIMATING"){const ht=dt.completed;return ht.result.draggableId===pt.draggableId?null:lt(pt.draggableId,ht.result.draggableId,ht.impact,ht.afterCritical)}return null}}const makeMapStateToProps$1$1=()=>{const et=getDraggableSelector$1(),tt=getSecondarySelector$1();return(nt,lt)=>et(nt,lt)||tt(nt,lt)||atRest$1},mapDispatchToProps$1$1={dropAnimationFinished:dropAnimationFinished$1},ConnectedDraggable$1=connect_default(makeMapStateToProps$1$1,mapDispatchToProps$1$1,null,{context:StoreContext$1,areStatePropsEqual:isStrictEqual$1})(Draggable$1);function PrivateDraggable$1(et){return useRequiredContext$1(DroppableContext$1).isUsingCloneFor===et.draggableId&&!et.isClone?null:React$4.createElement(ConnectedDraggable$1,et)}function PublicDraggable$1(et){const tt=typeof et.isDragDisabled=="boolean"?!et.isDragDisabled:!0,rt=!!et.disableInteractiveElementBlocking,nt=!!et.shouldRespectForcePress;return React$4.createElement(PrivateDraggable$1,_extends$j({},et,{isClone:!1,isEnabled:tt,canDragInteractiveElements:rt,shouldRespectForcePress:nt}))}const isEqual$2=et=>tt=>et===tt,isScroll$1=isEqual$2("scroll"),isAuto$1=isEqual$2("auto"),isEither$1=(et,tt)=>tt(et.overflowX)||tt(et.overflowY),isElementScrollable$1=et=>{const tt=window.getComputedStyle(et),rt={overflowX:tt.overflowX,overflowY:tt.overflowY};return isEither$1(rt,isScroll$1)||isEither$1(rt,isAuto$1)},isBodyScrollable$1=()=>!1,getClosestScrollable$1=et=>et==null?null:et===document.body?isBodyScrollable$1()?et:null:et===document.documentElement?null:isElementScrollable$1(et)?et:getClosestScrollable$1(et.parentElement);var getScroll$2=et=>({x:et.scrollLeft,y:et.scrollTop});const getIsFixed$1=et=>et?window.getComputedStyle(et).position==="fixed"?!0:getIsFixed$1(et.parentElement):!1;var getEnv$1=et=>{const tt=getClosestScrollable$1(et),rt=getIsFixed$1(et);return{closestScrollable:tt,isFixedOnPage:rt}},getDroppableDimension$1=({descriptor:et,isEnabled:tt,isCombineEnabled:rt,isFixedOnPage:nt,direction:lt,client:ut,page:dt,closest:pt})=>{const ht=(()=>{if(!pt)return null;const{scrollSize:vt,client:Ot}=pt,At=getMaxScroll$1({scrollHeight:vt.scrollHeight,scrollWidth:vt.scrollWidth,height:Ot.paddingBox.height,width:Ot.paddingBox.width});return{pageMarginBox:pt.page.marginBox,frameClient:Ot,scrollSize:vt,shouldClipSubject:pt.shouldClipSubject,scroll:{initial:pt.scroll,current:pt.scroll,max:At,diff:{value:origin$1,displacement:origin$1}}}})(),mt=lt==="vertical"?vertical$1:horizontal$1,xt=getSubject$1({page:dt,withPlaceholder:null,axis:mt,frame:ht});return{descriptor:et,isCombineEnabled:rt,isFixedOnPage:nt,axis:mt,isEnabled:tt,client:ut,page:dt,frame:ht,subject:xt}};const getClient$1=(et,tt)=>{const rt=getBox(et);if(!tt||et!==tt)return rt;const nt=rt.paddingBox.top-tt.scrollTop,lt=rt.paddingBox.left-tt.scrollLeft,ut=nt+tt.scrollHeight,dt=lt+tt.scrollWidth,ht=expand({top:nt,right:dt,bottom:ut,left:lt},rt.border);return createBox({borderBox:ht,margin:rt.margin,border:rt.border,padding:rt.padding})};var getDimension$2=({ref:et,descriptor:tt,env:rt,windowScroll:nt,direction:lt,isDropDisabled:ut,isCombineEnabled:dt,shouldClipSubject:pt})=>{const ht=rt.closestScrollable,mt=getClient$1(et,ht),xt=withScroll(mt,nt),Mt=(()=>{if(!ht)return null;const Ot=getBox(ht),At={scrollHeight:ht.scrollHeight,scrollWidth:ht.scrollWidth};return{client:Ot,page:withScroll(Ot,nt),scroll:getScroll$2(ht),scrollSize:At,shouldClipSubject:pt}})();return getDroppableDimension$1({descriptor:tt,isEnabled:!ut,isCombineEnabled:dt,isFixedOnPage:rt.isFixedOnPage,direction:lt,client:mt,page:xt,closest:Mt})};const immediate$1={passive:!1},delayed$1={passive:!0};var getListenerOptions$1=et=>et.shouldPublishImmediately?immediate$1:delayed$1;const getClosestScrollableFromDrag$1=et=>et&&et.env.closestScrollable||null;function useDroppablePublisher$1(et){const tt=reactExports.useRef(null),rt=useRequiredContext$1(AppContext$1),nt=useUniqueId$1("droppable"),{registry:lt,marshal:ut}=rt,dt=usePrevious$1(et),pt=useMemo(()=>({id:et.droppableId,type:et.type,mode:et.mode}),[et.droppableId,et.mode,et.type]),ht=reactExports.useRef(pt),mt=useMemo(()=>memoizeOne((Dt,kt)=>{tt.current||invariant$1();const qt={x:Dt,y:kt};ut.updateDroppableScroll(pt.id,qt)}),[pt.id,ut]),xt=useCallback(()=>{const Dt=tt.current;return!Dt||!Dt.env.closestScrollable?origin$1:getScroll$2(Dt.env.closestScrollable)},[]),Mt=useCallback(()=>{const Dt=xt();mt(Dt.x,Dt.y)},[xt,mt]),vt=useMemo(()=>rafSchd(Mt),[Mt]),Ot=useCallback(()=>{const Dt=tt.current,kt=getClosestScrollableFromDrag$1(Dt);if(Dt&&kt||invariant$1(),Dt.scrollOptions.shouldPublishImmediately){Mt();return}vt()},[vt,Mt]),At=useCallback((Dt,kt)=>{tt.current&&invariant$1();const qt=dt.current,Nt=qt.getDroppableRef();Nt||invariant$1();const Yt=getEnv$1(Nt),Kt={ref:Nt,descriptor:pt,env:Yt,scrollOptions:kt};tt.current=Kt;const Jt=getDimension$2({ref:Nt,descriptor:pt,env:Yt,windowScroll:Dt,direction:qt.direction,isDropDisabled:qt.isDropDisabled,isCombineEnabled:qt.isCombineEnabled,shouldClipSubject:!qt.ignoreContainerClipping}),Qt=Yt.closestScrollable;return Qt&&(Qt.setAttribute(scrollContainer$1.contextId,rt.contextId),Qt.addEventListener("scroll",Ot,getListenerOptions$1(Kt.scrollOptions))),Jt},[rt.contextId,pt,Ot,dt]),Rt=useCallback(()=>{const Dt=tt.current,kt=getClosestScrollableFromDrag$1(Dt);return Dt&&kt||invariant$1(),getScroll$2(kt)},[]),zt=useCallback(()=>{const Dt=tt.current;Dt||invariant$1();const kt=getClosestScrollableFromDrag$1(Dt);tt.current=null,kt&&(vt.cancel(),kt.removeAttribute(scrollContainer$1.contextId),kt.removeEventListener("scroll",Ot,getListenerOptions$1(Dt.scrollOptions)))},[Ot,vt]),Tt=useCallback(Dt=>{const kt=tt.current;kt||invariant$1();const qt=getClosestScrollableFromDrag$1(kt);qt||invariant$1(),qt.scrollTop+=Dt.y,qt.scrollLeft+=Dt.x},[]),Ct=useMemo(()=>({getDimensionAndWatchScroll:At,getScrollWhileDragging:Rt,dragStopped:zt,scroll:Tt}),[zt,At,Rt,Tt]),It=useMemo(()=>({uniqueId:nt,descriptor:pt,callbacks:Ct}),[Ct,pt,nt]);useIsomorphicLayoutEffect$2(()=>(ht.current=It.descriptor,lt.droppable.register(It),()=>{tt.current&&zt(),lt.droppable.unregister(It)}),[Ct,pt,zt,It,ut,lt.droppable]),useIsomorphicLayoutEffect$2(()=>{tt.current&&ut.updateDroppableIsEnabled(ht.current.id,!et.isDropDisabled)},[et.isDropDisabled,ut]),useIsomorphicLayoutEffect$2(()=>{tt.current&&ut.updateDroppableIsCombineEnabled(ht.current.id,et.isCombineEnabled)},[et.isCombineEnabled,ut])}function noop$3(){}const empty$1={width:0,height:0,margin:noSpacing$1},getSize$1=({isAnimatingOpenOnMount:et,placeholder:tt,animate:rt})=>et||rt==="close"?empty$1:{height:tt.client.borderBox.height,width:tt.client.borderBox.width,margin:tt.client.margin},getStyle$2=({isAnimatingOpenOnMount:et,placeholder:tt,animate:rt})=>{const nt=getSize$1({isAnimatingOpenOnMount:et,placeholder:tt,animate:rt});return{display:tt.display,boxSizing:"border-box",width:nt.width,height:nt.height,marginTop:nt.margin.top,marginRight:nt.margin.right,marginBottom:nt.margin.bottom,marginLeft:nt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:rt!=="none"?transitions$1.placeholder:null}},Placeholder$2=et=>{const tt=reactExports.useRef(null),rt=useCallback(()=>{tt.current&&(clearTimeout(tt.current),tt.current=null)},[]),{animate:nt,onTransitionEnd:lt,onClose:ut,contextId:dt}=et,[pt,ht]=reactExports.useState(et.animate==="open");reactExports.useEffect(()=>pt?nt!=="open"?(rt(),ht(!1),noop$3):tt.current?noop$3:(tt.current=setTimeout(()=>{tt.current=null,ht(!1)}),rt):noop$3,[nt,pt,rt]);const mt=useCallback(Mt=>{Mt.propertyName==="height"&&(lt(),nt==="close"&&ut())},[nt,ut,lt]),xt=getStyle$2({isAnimatingOpenOnMount:pt,animate:et.animate,placeholder:et.placeholder});return React$4.createElement(et.placeholder.tagName,{style:xt,"data-rfd-placeholder-context-id":dt,onTransitionEnd:mt,ref:et.innerRef})};var Placeholder$1$1=React$4.memo(Placeholder$2);let AnimateInOut$1=class extends React$4.PureComponent{constructor(...tt){super(...tt),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(tt,rt){return tt.shouldAnimate?tt.on?{isVisible:!0,data:tt.on,animate:"open"}:rt.isVisible?{isVisible:!0,data:rt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!tt.on,data:tt.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const tt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(tt)}};const Droppable$1=et=>{const tt=reactExports.useContext(AppContext$1);tt||invariant$1();const{contextId:rt,isMovementAllowed:nt}=tt,lt=reactExports.useRef(null),ut=reactExports.useRef(null),{children:dt,droppableId:pt,type:ht,mode:mt,direction:xt,ignoreContainerClipping:Mt,isDropDisabled:vt,isCombineEnabled:Ot,snapshot:At,useClone:Rt,updateViewportMaxScroll:zt,getContainerForClone:Tt}=et,Ct=useCallback(()=>lt.current,[]),It=useCallback((Qt=null)=>{lt.current=Qt},[]);useCallback(()=>ut.current,[]);const Dt=useCallback((Qt=null)=>{ut.current=Qt},[]),kt=useCallback(()=>{nt()&&zt({maxScroll:getMaxWindowScroll$1()})},[nt,zt]);useDroppablePublisher$1({droppableId:pt,type:ht,mode:mt,direction:xt,isDropDisabled:vt,isCombineEnabled:Ot,ignoreContainerClipping:Mt,getDroppableRef:Ct});const qt=useMemo(()=>React$4.createElement(AnimateInOut$1,{on:et.placeholder,shouldAnimate:et.shouldAnimatePlaceholder},({onClose:Qt,data:Bt,animate:Ft})=>React$4.createElement(Placeholder$1$1,{placeholder:Bt,onClose:Qt,innerRef:Dt,animate:Ft,contextId:rt,onTransitionEnd:kt})),[rt,kt,et.placeholder,et.shouldAnimatePlaceholder,Dt]),Nt=useMemo(()=>({innerRef:It,placeholder:qt,droppableProps:{"data-rfd-droppable-id":pt,"data-rfd-droppable-context-id":rt}}),[rt,pt,qt,It]),Yt=Rt?Rt.dragging.draggableId:null,Kt=useMemo(()=>({droppableId:pt,type:ht,isUsingCloneFor:Yt}),[pt,Yt,ht]);function Jt(){if(!Rt)return null;const{dragging:Qt,render:Bt}=Rt,Ft=React$4.createElement(PrivateDraggable$1,{draggableId:Qt.draggableId,index:Qt.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},($t,jt)=>Bt($t,jt,Qt));return ReactDOM.createPortal(Ft,Tt())}return React$4.createElement(DroppableContext$1.Provider,{value:Kt},dt(Nt,At),Jt())};function getBody$1(){return document.body||invariant$1(),document.body}const defaultProps$1={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:getBody$1},attachDefaultPropsToOwnProps=et=>{let tt={...et},rt;for(rt in defaultProps$1)et[rt]===void 0&&(tt={...tt,[rt]:defaultProps$1[rt]});return tt},isMatchingType$1=(et,tt)=>et===tt.droppable.type,getDraggable$1=(et,tt)=>tt.draggables[et.draggable.id],makeMapStateToProps$2=()=>{const et={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},tt={...et,shouldAnimatePlaceholder:!1},rt=memoizeOne(ut=>({draggableId:ut.id,type:ut.type,source:{index:ut.index,droppableId:ut.droppableId}})),nt=memoizeOne((ut,dt,pt,ht,mt,xt)=>{const Mt=mt.descriptor.id;if(mt.descriptor.droppableId===ut){const At=xt?{render:xt,dragging:rt(mt.descriptor)}:null,Rt={isDraggingOver:pt,draggingOverWith:pt?Mt:null,draggingFromThisWith:Mt,isUsingPlaceholder:!0};return{placeholder:mt.placeholder,shouldAnimatePlaceholder:!1,snapshot:Rt,useClone:At}}if(!dt)return tt;if(!ht)return et;const Ot={isDraggingOver:pt,draggingOverWith:Mt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:mt.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ot,useClone:null}});return(ut,dt)=>{const pt=attachDefaultPropsToOwnProps(dt),ht=pt.droppableId,mt=pt.type,xt=!pt.isDropDisabled,Mt=pt.renderClone;if(isDragging(ut)){const vt=ut.critical;if(!isMatchingType$1(mt,vt))return tt;const Ot=getDraggable$1(vt,ut.dimensions),At=whatIsDraggedOver$1(ut.impact)===ht;return nt(ht,xt,At,At,Ot,Mt)}if(ut.phase==="DROP_ANIMATING"){const vt=ut.completed;if(!isMatchingType$1(mt,vt.critical))return tt;const Ot=getDraggable$1(vt.critical,ut.dimensions);return nt(ht,xt,whatIsDraggedOverFromResult$1(vt.result)===ht,whatIsDraggedOver$1(vt.impact)===ht,Ot,Mt)}if(ut.phase==="IDLE"&&ut.completed&&!ut.shouldFlush){const vt=ut.completed;if(!isMatchingType$1(mt,vt.critical))return tt;const Ot=whatIsDraggedOver$1(vt.impact)===ht,At=!!(vt.impact.at&&vt.impact.at.type==="COMBINE"),Rt=vt.critical.droppable.id===ht;return Ot?At?et:tt:Rt?et:tt}return tt}},mapDispatchToProps$2={updateViewportMaxScroll:updateViewportMaxScroll$1},ConnectedDroppable$1=connect_default(makeMapStateToProps$2,mapDispatchToProps$2,(et,tt,rt)=>({...attachDefaultPropsToOwnProps(rt),...et,...tt}),{context:StoreContext$1,areStatePropsEqual:isStrictEqual$1})(Droppable$1);var ConnectedDroppable$1$1=ConnectedDroppable$1;const OrgansAtRiskRow=({oar:et,constraints:tt,onEdit:rt,index:nt,variations:lt,onDelete:ut})=>jsxRuntimeExports.jsx(PublicDraggable$1,{draggableId:et.organ,index:nt,children:dt=>jsxRuntimeExports.jsx(Card$2,{sx:{marginTop:"8px"},ref:dt.innerRef,...dt.draggableProps,...dt.dragHandleProps,children:jsxRuntimeExports.jsxs(Stack$5,{padding:1,gap:1,justifyContent:"space-between",alignItems:"center",direction:"row",children:[jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:1,width:"35%",alignItems:"center",children:[jsxRuntimeExports.jsx(DragIndicator,{color:"primary"}),jsxRuntimeExports.jsx(Typography,{variant:"body1",children:et.organ}),lt&&jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning",fontSize:"small"})]}),jsxRuntimeExports.jsx(Box,{width:"25%",children:tt.map((pt,ht)=>jsxRuntimeExports.jsx(Typography,{variant:"body2",children:pt},ht))}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",children:[jsxRuntimeExports.jsx(IconButton,{"data-testid":`${et.organ}-edit`,color:"primary",onClick:rt,children:jsxRuntimeExports.jsx(Edit,{})}),jsxRuntimeExports.jsx(IconButton,{"data-testid":`${et.organ}-delete`,onClick:ut,children:jsxRuntimeExports.jsx(DeleteOutline,{color:"error"})})]})]})})});function reorder(et,tt,rt){const nt=[...et],[lt]=nt.splice(tt,1);return nt.splice(rt,0,lt),nt}const reorderOARMap=({oarMap:et,source:tt,destination:rt})=>{const nt=[...et[tt.droppableId]],lt=[...et[rt.droppableId]],ut=nt[tt.index];if(tt.droppableId===rt.droppableId){const pt=reorder(nt,tt.index,rt.index);return{...et,[tt.droppableId]:pt}}return nt.splice(tt.index,1),lt.splice(rt.index,0,ut),{...et,[tt.droppableId]:nt,[rt.droppableId]:lt}},formatToTwoDecimal=new Intl.NumberFormat("en-US",{style:"decimal",useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:2}),decimalFormatter=et=>et&&formatToTwoDecimal.format(et),OrgansAtRiskModule=et=>{const{setError:tt}=useErrorModalContext(),rt=useTheme$1(),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState({}),[pt,ht]=reactExports.useState(null),[mt,xt]=reactExports.useState(-1),Mt=et==null?void 0:et.cpotTriggered,{doseUnit:vt}=reactExports.useContext(TenantContext),{loading:Ot,data:At,error:Rt}=useQuery(OAR_QUERY,{fetchPolicy:"network-only",variables:{siteGroupId:et.siteGroupId}}),[zt]=useMutation(REODER_OAR,{refetchQueries:[{query:OAR_QUERY,variables:{siteGroupId:et.siteGroupId}}]});reactExports.useEffect(()=>{if(!(At!=null&&At.roOrganAtRisk))return;const Ut=At.roOrganAtRisk.map((Zt,Xt)=>({...Zt,index:Xt})),Vt=Ut.filter(Zt=>Zt.prioritized),Ht=Ut.filter(Zt=>!Zt.prioritized);dt({priority:Vt,nonPriority:Ht})},[At]),reactExports.useEffect(()=>{mt!==-1&&At&&At.roOrganAtRisk&&ht(At.roOrganAtRisk[mt])},[At]);const Tt=Ut=>{if(!Ut.destination)return;zt({variables:{siteGroupId:et.siteGroupId,sourcePrioritized:Ut.source.droppableId==="priority",destinationPrioritized:Ut.destination.droppableId==="priority",sourceIndex:Ut.source.index,destinationIndex:Ut.destination.index}});const Vt=Ut.source,Ht=Ut.destination;dt(Gt=>{const Zt=reorderOARMap({oarMap:Gt,source:Vt,destination:Ht});return{priority:Zt.priority,nonPriority:Zt.nonPriority}})},{data:Ct,error:It}=useQuery(ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION,{variables:{siteGroupId:et.siteGroupId},skip:Ot||!At||Mt});reactExports.useEffect(()=>{if(Rt||It)return tt()},[Rt,It]);const Dt=()=>{if(!At||!Ct||!Ct.organAtRiskTemplateValuesVariation)return!1;const Ut=Ct.organAtRiskTemplateValuesVariation.map(Ht=>Ht.organ).filter(Boolean),Vt=At.roOrganAtRisk.map(Ht=>Ht.organ);return Ut.length?Vt.length!==Ut.length?!0:!Vt.every(Ht=>Ut.includes(Ht)):!1},kt=(Ut,Vt,Ht,Gt=[])=>{if(!Ut.hasOwnProperty(Vt)){Ut[Vt]=Ht;return}Gt.includes(Ut==null?void 0:Ut[Vt])&&(Ut[Vt]=Ht)},qt=Ut=>{if(!At||!(Ct!=null&&Ct.organAtRiskTemplateValuesVariation)||!Ut)return!1;if(Ct.organAtRiskTemplateValuesVariation.filter(Zt=>!!Zt.templateId).length)return!0;const Ht=lodash.omit(Ut,["prioritized","index"]),Gt=lodash.omit(lodash.clone(Ct.organAtRiskTemplateValuesVariation.find(Zt=>Zt.organ==Ut.organ)),["templateId","prioritized"]);return Gt?(kt(Gt,"alara",!1,[]),kt(Ht,"alara",!1,[]),kt(Gt,"meanValue",[],[null]),kt(Ht,"meanValue",[],[null]),kt(Gt,"meanValueUnit",vt,[null]),kt(Ht,"meanValueUnit",vt,[null]),kt(Gt,"maxValue",[],[null]),kt(Ht,"maxValue",[],[null]),kt(Gt,"maxValueUnit",vt,[null]),kt(Ht,"maxValueUnit",vt,[null]),kt(Gt,"volumeConstraintData",[],[null]),kt(Ht,"volumeConstraintData",[],[null]),kt(Gt,"dConstraintData",[],[null]),kt(Ht,"dConstraintData",[],[null]),JSON.stringify(Gt)!==JSON.stringify(Ht)):!1},Nt=()=>lt(!0),Yt=()=>{lt(!1),xt(-1),ht(null)},Kt=()=>{ht(At.roOrganAtRisk[mt])},Jt=Ut=>jsxRuntimeExports.jsx(OrgansAtRiskPopup,{isVisible:nt,hidePopup:Yt,popup:Nt,siteGroupId:et.siteGroupId,careplanId:et.careplanId,organsInUse:Ut}),Qt=(Ut,Vt)=>jsxRuntimeExports.jsx(OrgansAtRiskPopup,{isVisible:nt,hidePopup:Yt,popup:Nt,isEdit:!0,reload:Kt,siteGroupId:et.siteGroupId,careplanId:et.careplanId,index:Vt,data:pt,organsInUse:Ut}),[Bt]=useMutation(DELETE_OAR,{awaitRefetchQueries:!0,refetchQueries:[{query:OAR_QUERY,variables:{siteGroupId:et.siteGroupId}},{query:SITE_GROUP_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:et.siteGroupId}},{query:SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,variables:{siteGroupId:et.siteGroupId,volumingPage:!0}},{query:GET_CAREPLAN,variables:{id:et.careplanId}}]}),Ft=Ut=>{Bt({variables:{siteGroupId:et.siteGroupId,index:Ut}})};if(Ot)return jsxRuntimeExports.jsx("div",{children:"Loading..."});if(!At)return jsxRuntimeExports.jsx("div",{children:"Error loading..."});const $t=At.roOrganAtRisk.map(Ut=>Ut.organ),jt=Ut=>{lt(!0),xt(Ut),ht(At.roOrganAtRisk[Ut])},Wt=Ut=>{let Vt=[];return Ut.volumeConstraintData&&(Vt=[...Ut.volumeConstraintData.map(Ht=>`V${decimalFormatter(Ht.firstValue)||" "}${Ht.firstValueUnit} ${Ht.operator} ${Ht.secondValue&&Ht.secondValue.join("/")||" "}${Ht.secondValueUnit}`)]),Ut.dConstraintData&&(Vt=[...Vt,...Ut.dConstraintData.map(Ht=>`${Ht.dosetoPrefixOperator||"D"}${decimalFormatter(Ht.firstValue)||" "}${Ht.firstValueUnit} ${Ht.operator} ${Ht.secondValue&&Ht.secondValue.join("/")||" "}${Ht.secondValueUnit}`)]),Ut.maxValue&&Ut.maxValue.length&&(Vt=[...Vt,`Max ≤ ${Ut.maxValue&&Ut.maxValue.join("/")||" "}${Ut.maxValueUnit}`]),Ut.meanValue&&Ut.meanValue.length&&(Vt=[...Vt,`Mean ≤ ${Ut.meanValue&&Ut.meanValue.join("/")||" "}${Ut.meanValueUnit}`]),Ut.alara&&(Vt=["ALARA"]),Vt};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Dt()&&jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:1,alignItems:"center",marginBottom:2,children:[jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning",fontSize:"small"}),jsxRuntimeExports.jsx(Typography,{children:"OAR(s) have varied from template"})]}),jsxRuntimeExports.jsx(Stack$5,{direction:"column",children:ut.priority&&ut.nonPriority&&jsxRuntimeExports.jsxs(DragDropContext$1,{onDragEnd:Tt,children:[jsxRuntimeExports.jsx(Stack$5,{gap:2,"data-test-id":"voluming-oar-table",maxWidth:"677px",children:["priority","nonPriority"].map(Ut=>jsxRuntimeExports.jsx(ConnectedDroppable$1$1,{droppableId:Ut,children:Vt=>jsxRuntimeExports.jsxs(Stack$5,{padding:1,borderColor:rt.palette.primary.main,bgcolor:rt.palette.background.secondary,ref:Vt.innerRef,...Vt.droppableProps,children:[Ut==="priority"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",children:"Prioritized"}),ut.priority.length===0&&jsxRuntimeExports.jsx(Typography,{color:"text.secondary",variant:"body2",children:"Drag and drop OARs here to prioritize (optional)"})]}),ut[Ut].map((Ht,Gt)=>jsxRuntimeExports.jsx(OrgansAtRiskRow,{oar:Ht,onEdit:()=>jt(Ht.index),constraints:Wt(Ht),siteGroupId:et.siteGroupId,careplanId:et.careplanId,index:Gt,variations:qt(Ht),onDelete:()=>{Ft(Ht.index)}},Ht.organ)),Vt.placeholder,Ut!=="priority"&&jsxRuntimeExports.jsx(Stack$5,{alignItems:"start",marginTop:1,children:jsxRuntimeExports.jsx(Button,{variant:"text",color:"primary",startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),onClick:Nt,children:"Add OAR"})})]})},Ut))}),nt&&(pt?Qt($t,mt):Jt($t))]})})]})},TvField=({initialValue:et,templateValue:tt,updateField:rt,index:nt,prefix:lt,cpotTriggered:ut})=>{const[dt,pt]=reactExports.useState(et),ht=!ut&&lt!=="G"&&!!tt&&dt!==tt;return jsxRuntimeExports.jsx(ROTextField,{id:`voluming${lt}tv-${nt}`,fieldlabel:`${lt}TV`,helperText:VARIATION_MESSAGE,warning:ht,value:dt,onChange:mt=>{pt(mt.target.value)},onBlur:()=>{rt(dt)},multiline:!0,maxRows:4,maxLength:600})},SiteTargetValues=et=>{var Nt,Yt;const{setError:tt}=useErrorModalContext(),rt=useTheme$1(),nt=useRouteMatch(),{careplanId:lt,siteGroupIdx:ut}=nt.params,[dt,pt]=reactExports.useState([]),[ht,mt]=reactExports.useState(),[xt,Mt]=reactExports.useState(-1),[vt,Ot]=reactExports.useState(0),At=et==null?void 0:et.cpotTriggered,Rt=Kt=>{if(Kt){const Jt=Kt.siteGroupsByCareplan[Dt||0];Mt(Jt.id);const Bt=Jt.siteSet.map(Ft=>{var jt;const $t=Ft.sitevaluesSet.reduce((Wt,Ut)=>Ut.field.name==="Location"?JSON.parse(Ut.value):Wt,"");return Ft.sitevaluesSet.reduce((Wt,Ut)=>{const Vt=Ut.field.name;return["GTV","PTV","CTV"].includes(Vt)&&(Wt[Vt]=JSON.parse(Ut.value),Wt[`${Vt}Id`]=Ut.id),Vt==="Dose"&&(Wt[Vt]=JSON.parse(Ut.value)),Wt},{name:isSpecifySite(Ft.treatmentSite.treatmentSite)?CleanSpecifyFromSiteName(`${Ft.treatmentSite.treatmentSite} (${$t})`):Ft.treatmentSite.treatmentSite,id:Ft.id,templateSiteId:(jt=Ft.template)==null?void 0:jt.id,Dose:[],GTVId:"",CTVId:"",PTVId:"",GTV:"",CTV:[""],PTV:[""],PTVOffTemplate:!1,CTVOffTemplate:!1})});pt(Bt),Ot(Math.random())}},{loading:zt,data:Tt,error:Ct,refetch:It}=useQuery(GET_CAREPLAN_SITE_GROUPS,{variables:{careplanId:lt},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,onCompleted:Kt=>{Rt(Kt)}});reactExports.useEffect(()=>{It()},[ut,et.refresh]),reactExports.useEffect(()=>{if(Ct)return tt()},[Ct]);let Dt=Number(ut||0);Tt&&ut==="last"&&(Dt=Tt.siteGroupsByCareplan.length-1),useQuery(SITE_TEMPLATE_VALUES_IN_SITE_GROUP,{variables:{siteGroupId:xt},skip:xt===-1,fetchPolicy:"network-only",onCompleted:Kt=>{if(!(Kt!=null&&Kt.siteGroupTemplate))return;const Jt=Kt.siteGroupTemplate.treatmentsiteprescriptiontemplateSet.reduce((Qt,Bt)=>(Qt[Bt.id]=Bt.treatmentrulesiteSet.reduce((Ft,$t)=>(["CTV","GTV","PTV"].includes($t.field.name)&&(Ft[$t.field.name]=JSON.parse($t.defaultValue)),Ft),{GTV:"",PTV:[],CTV:[]}),Qt),{});mt(Jt)}});const[kt]=useMutation(UPDATE_SITE_VALUE,{refetchQueries:[{query:SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,variables:{siteGroupId:((Nt=Tt==null?void 0:Tt.siteGroupsByCareplan[Dt])==null?void 0:Nt.id)||"",volumingPage:!0}},{query:GET_CAREPLAN,variables:{id:lt}},{query:SITE_GROUP_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:((Yt=Tt==null?void 0:Tt.siteGroupsByCareplan[Dt])==null?void 0:Yt.id)||""}}]});if(zt)return jsxRuntimeExports.jsx("div",{className:"loading-error-page-settings",children:"Loading...."});if(!Tt)return jsxRuntimeExports.jsx("div",{className:"loading-error-page-settings",children:"Error loading data..."});const qt=[[""],["High Dose","Low Dose"],["High Dose","Intermediate Dose","Low Dose"],["High Dose","Intermediate 1 Dose","Intermediate 2 Dose","Low Dose"]];return jsxRuntimeExports.jsx("div",{children:dt.map((Kt,Jt)=>{var Bt;const Qt=Kt.Dose.length;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Divider$1,{}),jsxRuntimeExports.jsx(Typography,{paddingTop:3,paddingBottom:1,variant:"h6",children:Kt.name}),jsxRuntimeExports.jsx(TvField,{index:0,prefix:"G",initialValue:Kt==null?void 0:Kt.GTV,templateValue:((Bt=ht==null?void 0:ht[Kt.templateSiteId])==null?void 0:Bt.GTV)||"",cpotTriggered:At,updateField:Ft=>{const $t=[...dt];$t[Jt].GTV=Ft,pt($t),kt({variables:{id:Kt.GTVId,siteId:Kt.id,fieldName:"GTV",value:JSON.stringify(removeUnicodeQuotes(Ft))}})}}),Kt.Dose.map((Ft,$t)=>{var Vt,Ht,Gt,Zt;const jt=qt[Qt-1][$t],Wt=((Vt=ht==null?void 0:ht[Kt.templateSiteId])==null?void 0:Vt.CTV[$t])||"",Ut=((Ht=ht==null?void 0:ht[Kt.templateSiteId])==null?void 0:Ht.PTV[$t])||"";return jsxRuntimeExports.jsxs(Stack$5,{children:[jt&&jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",color:rt.palette.text.secondary,children:jt}),jsxRuntimeExports.jsx(TvField,{index:$t,prefix:"C",initialValue:((Gt=Kt.CTV)==null?void 0:Gt[$t])||"",templateValue:Wt,cpotTriggered:At,updateField:Xt=>{const er=[...dt[Jt].CTV];er[$t]=removeUnicodeQuotes(Xt);const nr=!At&&!!Wt&&Wt!==Xt,or=[...dt];or[Jt].CTV=er,or[Jt].CTVOffTemplate=nr,pt(or),kt({variables:{id:Kt.CTVId,siteId:Kt.id,fieldName:"CTV",value:JSON.stringify(er)}})}}),jsxRuntimeExports.jsx(TvField,{index:$t,prefix:"P",initialValue:((Zt=Kt.PTV)==null?void 0:Zt[$t])||"",templateValue:Ut,cpotTriggered:At,updateField:Xt=>{const er=[...dt[Jt].PTV];er[$t]=removeUnicodeQuotes(Xt);const nr=!At&&!!Ut&&Ut!==Xt,or=[...dt];or[Jt].PTV=er,or[Jt].PTVOffTemplate=nr,pt(or),kt({variables:{id:Kt.PTVId,siteId:Kt.id,fieldName:"PTV",value:JSON.stringify(er)}})}})]},$t)})]},`fragment-${Jt}`)})},`siteTargetValue-${vt}`)},CREATE_SITEGROUP_FROM_TEMPLATE=gql`
  mutation createSiteGroupFromTemplate(
    $careplanId: ID!
    $templateName: String
    $treatmentSite: String
    $templateId: ID
    $treatmentSiteSpecify: String
    $selectionMethod: String
  ) {
    createSiteGroupFromTemplate(
      careplanId: $careplanId
      templateId: $templateId
      templateName: $templateName
      treatmentSite: $treatmentSite
      treatmentSiteSpecify: $treatmentSiteSpecify
      selectionMethod: $selectionMethod
    ) {
      siteGroup {
        id
      }
    }
  }
`,LIST_SITE_FILTERS=gql`
  query listSiteFilters($tumourStream: String!, $patientId: ID!) {
    siteFilterList(tumourStream: $tumourStream, patientId: $patientId)
  }
`,LIST_DOSE_FILTERS=gql`
  query listDoseFilters($tumourStream: String!, $siteFilter: String!, $patientId: ID!) {
    doseFilterList(tumourStream: $tumourStream, siteFilter: $siteFilter, patientId: $patientId)
  }
`,LIST_TECHNIQUE_FILTERS=gql`
  query listTechniqueFilters($tumourStream: String!, $siteFilter: String!, $doseFilter: String!, $patientId: ID!) {
    techniqueFilterList(
      tumourStream: $tumourStream
      siteFilter: $siteFilter
      doseFilter: $doseFilter
      patientId: $patientId
    )
  }
`,LIST_CAREPLAN_FILTERS=gql`
  query careplanTemplateList(
    $patientId: ID!
    $tumourStream: String!
    $siteFilter: String
    $doseFilter: String
    $techniqueFilter: String
    $search: String
    $hasOar: Boolean
  ) {
    careplanTemplateList(
      patientId: $patientId
      tumourStream: $tumourStream
      siteFilter: $siteFilter
      doseFilter: $doseFilter
      techniqueFilter: $techniqueFilter
      search: $search
      hasOar: $hasOar
    ) {
      id
      name
      rules {
        id
        field
        defaultValue
      }
    }
  }
`,LIST_TUMOUR_STREAMS=gql`
  query tumourStreamList {
    tumourStreamList
  }
`,LIST_TREATMENT_SITES_ORDERBY_USAGE=gql`
  query mostUsedSiteReferenceList {
    mostUsedSiteReferenceList {
      id
      treatmentSite
    }
  }
`,GET_TUMOUR_STREAM_FROM_CAREPLAN=gql`
  query careplan($careplanId: ID!) {
    careplan(id: $careplanId) {
      id
      practitioner {
        id
      }
      diagnosis {
        id
        diagnosisCode {
          id
          diagnosisCode
          tumourStream {
            id
            name
          }
        }
        isPrimaryDiagnosis
        relatedPrimaryDiagnosis {
          id
          diagnosisCode {
            id
            tumourStream {
              id
              name
            }
          }
        }
      }
    }
  }
`,ADDITIONAL_OAR_INFO="Additional_OAR_Info",SELECTED_TEMPLATE="Selected_Template",OAR="OAR";gql`
  mutation createOar($siteGroupId: ID!, $organName: String, $constraint: String) {
    createOar(siteGroupId: $siteGroupId, organName: $organName, constraint: $constraint) {
      success
      oar {
        id
        constraint
        organ {
          id
          organ
        }
      }
    }
  }
`;const UPDATE_MANUAL_OARS=gql`
  mutation updateManualOars($siteGroupId: ID!, $templateId: ID!) {
    updateManualOars(siteGroupId: $siteGroupId, templateId: $templateId) {
      success
    }
  }
`;gql`
  mutation updateOar($oarId: ID!, $constraint: String, $organName: String) {
    updateOar(oarId: $oarId, constraint: $constraint, organ: $organName) {
      oar {
        id
        constraint
        organ {
          id
          organ
        }
      }
    }
  }
`;gql`
  mutation deleteOar($oarId: ID!) {
    deleteOar(oarId: $oarId) {
      success
    }
  }
`;gql`
  mutation deleteAllOrganAtRisk($id: ID!) {
    deleteAllOrganAtRisk(id: $id) {
      ok
    }
  }
`;const GET_VOLUMING_OAR_DATA=gql`
  query roOrganAtRisk($siteGroupId: ID!) {
    roOrganAtRisk(siteGroupId: $siteGroupId) {
      organ
      volumeConstraintData {
        firstValue
        operator
        secondValue
        isVolumeData
      }
      dConstraintData {
        firstValue
        operator
        secondValue
      }
      maxValue
      maxValueUnit
      meanValue
      meanValueUnit
      alara
    }
  }
`,RESET_VOLUMING_DATA=gql`
  mutation resetVolumingData($siteGroupId: ID!) {
    resetVolumingData(siteGroupId: $siteGroupId) {
      success
    }
  }
`,ModalCpotCancel=et=>{const{isOpen:tt,dismissFunction:rt,submitFunction:nt}=et;return jsxRuntimeExports.jsx(StandardDialog,{title:"Quit change prescription on treatment",open:tt,onClose:rt,onSubmit:()=>{nt(),rt()},children:jsxRuntimeExports.jsx(Typography,{paddingY:2,children:"All changes will be cleared and revert back to the last submitted prescription. Are you sure you would like to quit change prescription on treatment?"})})},logger$n=new Logger("VolumingPage.tsx"),ROPatientVolumingPage=()=>{var gr,br;const et=CurrentAppConfig.SpecialPhysicsConsultVisible;useTheme$1();const{setError:tt}=useErrorModalContext(),rt=useRouteMatch(),nt=useHistory(),{id:lt,careplanId:ut,siteGroupIdx:dt}=rt.params,[pt,ht]=reactExports.useState({siteGroupId:-1,volumingAdditionalOarInfo:"",volumingAdditionalOarInfoId:-1,volumingSelectedTemplate:void 0,volumingSelectedTemplateId:-1,volumingOarId:-1}),[mt,xt]=reactExports.useState(!1),{data:Mt,loading:vt,error:Ot}=useQuery(GET_CAREPLAN_STATUS,{variables:{id:ut}}),At=reactExports.useMemo(()=>{var ar;return((ar=Mt==null?void 0:Mt.careplan)==null?void 0:ar.careplanStatus)==="CPOT"},[Mt]),{data:Rt,error:zt}=useQuery(GET_TUMOUR_STREAM_FROM_CAREPLAN,{variables:{careplanId:ut},onCompleted:ar=>{logMissingDiagnosisCode(logger$n,ar.careplan,"Voluming")}}),Tt=reactExports.useMemo(()=>{var ar,ur,xr,Mr;return(Mr=(xr=(ur=(ar=Rt==null?void 0:Rt.careplan)==null?void 0:ar.diagnosis)==null?void 0:ur.diagnosisCode)==null?void 0:xr.tumourStream)==null?void 0:Mr.name},[Rt]),{data:Ct,error:It}=useQuery(LIST_CAREPLAN_FILTERS,{variables:{patientId:lt,tumourStream:Tt,hasOar:!0},skip:!Tt}),Dt=reactExports.useMemo(()=>Ct==null?void 0:Ct.careplanTemplateList.filter(ar=>!!ar).map(ar=>({label:ar==null?void 0:ar.name,value:ar==null?void 0:ar.id})),[Ct]),[kt,qt]=reactExports.useState(!0),[Nt,Yt]=reactExports.useState(!1),[Kt,Jt]=reactExports.useState(!1),[Qt]=useMutation(TRIGGER_CPOT,{awaitRefetchQueries:!0,variables:{id:ut,careplanStatus:"Prescription",cpotTriggered:!1},refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:ut}},{query:GET_CAREPLAN,variables:{id:ut}}],onCompleted:()=>{nt.push(`/radiation/patient/${lt}/careplan/${ut}/${CAREPLAN_PAGES.SUBMISSION}`)}}),[Bt]=useMutation(UPDATE_MANUAL_OARS,{refetchQueries:[{query:ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:pt.siteGroupId}},{query:OAR_QUERY,variables:{siteGroupId:pt.siteGroupId}},{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:ut}}]}),[Ft]=useMutation(UPDATE_SITE_GROUP_VALUE,{refetchQueries:[{query:SITE_GROUP_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:pt.siteGroupId}},{query:GET_CAREPLAN,variables:{id:ut}},{query:ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:pt.siteGroupId}},{query:OAR_QUERY,variables:{siteGroupId:pt.siteGroupId}},{query:SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,variables:{siteGroupId:pt.siteGroupId,volumingPage:!0}}]}),{loading:$t,data:jt,error:Wt,refetch:Ut}=useQuery(GET_CAREPLAN_SITE_GROUPS,{variables:{careplanId:ut},fetchPolicy:"cache-and-network"}),[Vt]=useMutation(RESET_VOLUMING_DATA,{awaitRefetchQueries:!0,refetchQueries:[{query:GET_CAREPLAN,variables:{id:ut}},{query:GET_VOLUMING_OAR_DATA,variables:{siteGroupId:pt.siteGroupId}},{query:ORGAN_AT_RISK_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:pt.siteGroupId}},{query:OAR_QUERY,variables:{siteGroupId:pt.siteGroupId}},{query:SITE_GROUP_TEMPLATE_VALUE_VARIATION,variables:{siteGroupId:pt.siteGroupId}},{query:SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,variables:{siteGroupId:pt.siteGroupId,volumingPage:!0}},{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:ut}}],onCompleted:()=>{Ut(),qt(!kt)}}),Ht=reactExports.useMemo(()=>{let ar=dt?parseInt(dt):0;return jt&&dt==="last"&&(ar=jt.siteGroupsByCareplan.length-1),ar},[jt,dt]),{data:Gt,error:Zt}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:ut}}),{data:Xt,error:er}=useQuery(SITE_GROUP_TEMPLATE_VALUE_VARIATION,{fetchPolicy:"network-only",variables:{siteGroupId:((gr=jt==null?void 0:jt.siteGroupsByCareplan[Ht])==null?void 0:gr.id)||0},skip:$t||!jt||At}),{data:nr,error:or}=useQuery(SITE_TEMPLATE_VALUES_BY_GROUP_VARIATION,{fetchPolicy:"network-only",variables:{siteGroupId:((br=jt==null?void 0:jt.siteGroupsByCareplan[Ht])==null?void 0:br.id)||0,volumingPage:!0},skip:$t||!jt||At});reactExports.useEffect(()=>{if(zt||It||Wt||Zt||er||or||Ot)return tt()},[zt,It,Wt,Zt,er,or,Ot]);const rr=reactExports.useMemo(()=>{var ar;return(ar=jt==null?void 0:jt.siteGroupsByCareplan[Ht])==null?void 0:ar.template},[jt]),cr=reactExports.useMemo(()=>!rr||(rr==null?void 0:rr.id)===-1,[rr]);reactExports.useEffect(()=>{Ut()},[]),reactExports.useEffect(()=>{if(jt){const ar=jt.siteGroupsByCareplan[Ht].id,ur=jt.siteGroupsByCareplan[Ht].sitegroupvaluesSet.filter(Ir=>Ir.field.name===ADDITIONAL_OAR_INFO),xr=jt.siteGroupsByCareplan[Ht].sitegroupvaluesSet.filter(Ir=>Ir.field.name===SELECTED_TEMPLATE),Mr=Dt==null?void 0:Dt.find(Ir=>{var Rr;return String(Ir==null?void 0:Ir.value)===String((Rr=xr==null?void 0:xr[0])==null?void 0:Rr.value)}),Ar=jt.siteGroupsByCareplan[Ht].sitegroupvaluesSet.filter(Ir=>Ir.field.name===OAR);ht({...pt,siteGroupId:ar,volumingAdditionalOarInfo:ur&&ur.length>0?JSON.parse(ur[0].value):"",volumingSelectedTemplate:Mr||void 0,volumingAdditionalOarInfoId:ur&&ur.length>0?ur[0].id:-1,volumingSelectedTemplateId:xr&&xr.length>0?xr[0].id:-1,volumingOarId:Ar&&Ar.length>0?Ar[0].id:-1})}},[jt,Ht,Dt]);const ir=reactExports.useMemo(()=>jt&&jt.siteGroupsByCareplan[Ht],[jt,Ht]),dr=reactExports.useMemo(()=>ir&&ir.siteSet?ir.siteSet.map(ar=>{const ur=ar.sitevaluesSet.reduce((Mr,Ar)=>Ar.field.name==="Location"?JSON.parse(Ar.value):Mr,""),xr=ar.sitevaluesSet.reduce((Mr,Ar)=>Ar.field.name==="Laterality"?JSON.parse(Ar.value):Mr,"");return getTreatmentSiteHeader({treatmentSite:ar.treatmentSite.treatmentSite,location:ur,laterality:xr})}).join(", "):"",[ir]);return reactExports.useEffect(()=>{var ar,ur;if(Xt&&!At){const xr=Xt?Xt.siteGroupTemplateValueVariation.variation:!1;!Nt===xr&&Yt(xr)}if(nr&&!At){const xr=(ar=nr.siteTemplateValuesByGroupVariation)!=null&&ar.variation?(ur=nr.siteTemplateValuesByGroupVariation)==null?void 0:ur.variation:!1;!Kt===xr&&Jt(xr)}},[Xt,At,Nt,Yt,nr,Jt,Kt]),$t||vt?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Voluming",subtitle:"Please wait while we set things up for you"}):jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsx(CareplanBanners,{data:Gt,variation:Nt||Kt,forceUpdate:Ut,refetchQueriesList:[{query:GET_CAREPLAN,variables:{id:ut}},{query:GET_CAREPLAN_STATUS,variables:{id:ut}},{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:ut}},{query:GET_TUMOUR_STREAM_FROM_CAREPLAN,variables:{careplanId:ut}}]}),jsxRuntimeExports.jsxs(CareplanContainer,{className:"ro-voluming-page",children:[jsxRuntimeExports.jsx("div",{className:"page-header",children:jsxRuntimeExports.jsxs(Typography,{variant:"h5",children:["Voluming: ",dr]})}),jsxRuntimeExports.jsxs(Box,{component:"form",id:"volumingForm",noValidate:!0,children:[jsxRuntimeExports.jsx(SiteTargetValues,{refresh:kt,cpotTriggered:At}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"16px 0"}}),jsxRuntimeExports.jsx(Typography,{paddingTop:1,paddingBottom:2,variant:"h6",children:"Organs At Risk"})]}),cr&&ir&&jsxRuntimeExports.jsx(ROAutocomplete,{id:"volumingSelectedTemplate",fieldlabel:"Select OARs from Template",options:Dt||[],value:pt.volumingSelectedTemplate,disableClearable:!0,onChange:ar=>{const ur=typeof ar=="string"?{label:ar,value:ar}:ar;ht({...pt,volumingSelectedTemplate:ur}),Ft({variables:{siteGroupId:ir.id,id:pt.volumingSelectedTemplateId,fieldName:SELECTED_TEMPLATE,value:ur==null?void 0:ur.value}}),Bt({variables:{siteGroupId:ir.id,templateId:ur==null?void 0:ur.value}})}}),ir&&(CurrentAppConfig.VolumingPage.UsePrioritizedOARs?jsxRuntimeExports.jsx(OrgansAtRiskModule,{siteGroupId:ir.id,careplanId:ut,cpotTriggered:At}):jsxRuntimeExports.jsx(OrgansAtRiskModule$1,{siteGroupId:ir.id,careplanId:ut,cpotTriggered:At})),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"24px 0"}}),jsxRuntimeExports.jsx(Box,{component:"form",id:"volumingForm-2",noValidate:!0,sx:{marginTop:"8px"},children:jsxRuntimeExports.jsx(ROTextField,{id:"volumingAdditionalOarInfo",fieldlabel:"Additional OAR Information",value:pt.volumingAdditionalOarInfo,onChange:ar=>{ht({...pt,volumingAdditionalOarInfo:removeUnicodeQuotes(ar.target.value)})},onBlur:()=>{Ft({variables:{siteGroupId:ir.id,id:pt.volumingAdditionalOarInfoId,fieldName:ADDITIONAL_OAR_INFO,value:JSON.stringify(pt.volumingAdditionalOarInfo)}})},multiline:!0,maxRows:4})})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onReset:()=>{At?xt(!0):Vt({variables:{siteGroupId:ir.id}})},resetText:At?"Cancel":"Reset to templated values",onBack:()=>{const ar=Ht-1;if(ar===-1){const ur=jt.siteGroupsByCareplan?jt.siteGroupsByCareplan.map(xr=>xr.siteSet).reduce((xr,Mr)=>xr.concat(Mr),[]).length-1:0;nt.push(`/radiation/patient/${lt}/careplan/${ut}/${CAREPLAN_PAGES.PRESCRIPTION}/${ur}`)}else nt.push(`/radiation/patient/${lt}/careplan/${ut}/${CAREPLAN_PAGES.VOLUMING}/${ar}`)},onNext:()=>{const ar=Ht+1;jt.siteGroupsByCareplan.length<=ar?nt.push(`/radiation/patient/${lt}/careplan/${ut}/${et?CAREPLAN_PAGES.SPECIAL_PHYSICS_CONSULT:CAREPLAN_PAGES.SUBMISSION}`):nt.push(`/radiation/patient/${lt}/careplan/${ut}/${CAREPLAN_PAGES.VOLUMING}/${ar}`)},nextDisabled:$t,backDisabled:$t})]}),jsxRuntimeExports.jsx(ROPatientCarePathSidePanel,{}),jsxRuntimeExports.jsx(ModalCpotCancel,{isOpen:mt,submitFunction:()=>Qt(),dismissFunction:()=>xt(!1)})]})})},CareplanButton=et=>{const{currentTemplate:tt,index:rt,className:nt,footer:lt,onClickHandler:ut}=et,dt=`suggested-careplan-item-${rt}`,pt=useTheme$1();return jsxRuntimeExports.jsxs(Button,{className:nt,"data-testid":et==null?void 0:et.dataTestId,id:dt,sx:{":hover":{backgroundColor:pt.palette.action.hover}},onAnimationEnd:()=>{const ht=document.getElementById(dt);ht.disabled=!1,ht.classList.remove("active"),document.getElementById("careplanCheckmark"+rt).classList.remove("added")},onClick:()=>{const ht=document.getElementById(dt);ht.disabled=!0;const mt=document.getElementById("careplanCheckmark"+rt);ht.classList.add("active"),mt.classList.add("added"),ut()},children:[jsxRuntimeExports.jsxs(Stack$5,{alignSelf:"left",gap:1,width:1,children:[jsxRuntimeExports.jsx(Typography,{"data-testid":"template-name",variant:"subtitle1",children:tt.name}),lt]}),jsxRuntimeExports.jsx(default_1$i,{color:"primary",id:"careplanCheckmark"+rt})]},tt.id)},AnnotationText=styled$1("p")`
  font-size: 80%;
`,SuggestedTemplates=et=>{const{tumourStream:tt,onSelect:rt,templates:nt=[],title:lt,subheading:ut,generateFooter:dt,type:pt}=et,ht=useTheme$1(),[mt,xt]=reactExports.useState(!1),Mt=vt=>rt(tt,vt.name,vt.id,"",pt==="freq"?"frequently_used":pt);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(Typography,{"data-testid":"page-sub-header",variant:"h6",style:{display:"flex",alignItems:"center"},children:[lt,pt==="sigma"&&jsxRuntimeExports.jsx(HelpOutline,{color:"info",sx:{marginLeft:"6px",cursor:"pointer"},"data-testid":"sigma-question-mark-",onClick:()=>xt(!0)})]}),jsxRuntimeExports.jsx(Typography,{color:ht.palette.text.secondary,paddingTop:1,paddingBottom:1,variant:"body1",children:nt.length>0&&ut})]}),nt.length>0?jsxRuntimeExports.jsx("div",{className:"suggested-careplan-grid",children:nt.slice(0,6).map((vt,Ot)=>{const At=dt(vt);return jsxRuntimeExports.jsx(CareplanButton,{dataTestId:"suggested-careplan-item",currentTemplate:vt,className:"suggested-careplan-item",index:Ot,footer:At,onClickHandler:()=>Mt(vt)},vt.id)})}):jsxRuntimeExports.jsx(Typography,{"data-testid":"no-careplan-suggestions",color:ht.palette.text.secondary,variant:"body1",paddingBottom:3,children:`No careplan suggestions for this ${CurrentAppConfig.DefaultValue.tumourName} stream.`}),jsxRuntimeExports.jsx(StandardDialog,{maxWidth:"md",title:"Sigma Suggestions",open:mt,onClose:()=>{xt(!1)},children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("p",{children:"Sigma suggests careplan templates based on the diagnosis data entered by analysing past prescriptions for patients with similar diagnoses."}),jsxRuntimeExports.jsxs("p",{children:["The yellow bars show the ",jsxRuntimeExports.jsx("strong",{children:"Sigma score"})," (0.0 - 1.0) for each suggestion. These scores are calculated by Sigma and used to rank templates, with the highest scores shown first."]}),jsxRuntimeExports.jsxs("p",{children:["A ",jsxRuntimeExports.jsx("strong",{children:"higher score"})," means that more patients with a similar diagnosis have been prescribed a careplan similar* to the template in the past."]}),jsxRuntimeExports.jsx("p",{children:"The score would be 1.0 (full bar) for a template if in the past all patients with the same diagnosis were prescribed exactly this template."}),jsxRuntimeExports.jsx(AnnotationText,{children:"*Similar in terms of treatment sites, phases, techniques, dose and fractions."})]})})]})},SigmaScoreContainer=styled$1("div")`
  display: flex;
  align-items: center;
`,ProgressBarContainer=styled$1("div")`
  background-color: ${et=>et.theme.palette.grey[300]};
  border-radius: 8px;
  height: 8px;
  margin: 0px 12px;
  max-width: 214px;
  width: 100%;
`,ProgressBar=styled$1("div")`
  height: 8px;
  width: ${({width:et})=>et}%;
  background-color: ${et=>et.theme.palette.statusColors.simulation};
  border-radius: 8px;
`,SUBHEADING="The following careplan templates are suggested by Sigma based on the diagnosis data entered and other past prescription submissions.",Sigma=et=>{const{templates:tt,selectCareplan:rt,tumourStream:nt}=et,lt=useTheme$1(),ut=dt=>jsxRuntimeExports.jsxs(SigmaScoreContainer,{children:[jsxRuntimeExports.jsxs(Typography,{color:lt.palette.text.secondary,variant:"body2",children:["Sigma score:"," "]}),jsxRuntimeExports.jsx(ProgressBarContainer,{children:jsxRuntimeExports.jsx(ProgressBar,{"data-testid":dt.id,width:Number(dt.score)*100})})]});return jsxRuntimeExports.jsx(SuggestedTemplates,{templates:tt,tumourStream:nt,onSelect:rt,title:"Suggested Templates",subheading:SUBHEADING,generateFooter:ut,type:"sigma"})},FrequentlyUsed=et=>{const{templates:tt,selectCareplan:rt,tumourStream:nt}=et,lt=ut=>{const dt=new Date(ut.approvedDate);return jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["Last modified: ",dt.getUTCDate()+"/"+(dt.getUTCMonth()+1)+"/"+dt.getUTCFullYear()]})};return jsxRuntimeExports.jsx(SuggestedTemplates,{templates:tt,tumourStream:nt,onSelect:rt,title:"Frequently Used Templates",subheading:`The following careplan template suggestions are based on your selections for the '${nt}' ${CurrentAppConfig.DefaultValue.tumourName} stream in the last 90 days.`,generateFooter:lt,type:"freq"})},extractDepartments=et=>{var rt;const tt=(rt=et==null?void 0:et.rules)==null?void 0:rt.find(nt=>nt.field==="Treating_Department");if(tt!=null&&tt.defaultValue){const nt=tt.defaultValue.replace(/'/g,'"');if(nt)return JSON.parse(nt)}return[]},shouldDisableTemplate=(et,tt)=>{const rt=extractDepartments(et);return rt.length===0?!1:!rt.includes(tt)},ColumnTitle=({title:et})=>{const tt=useTheme$1();return jsxRuntimeExports.jsx(Typography,{padding:2,sx:{backgroundColor:tt.palette.grey[100],borderRadius:"4px 4px 0 0",borderBottom:`1px solid ${tt.palette.grey[300]}`},variant:"subtitle1",children:et})},CareplanColumn=({title:et,options:tt,id:rt,onClick:nt,treatingDepartment:lt})=>{const ut=useTheme$1();return jsxRuntimeExports.jsxs(Stack$5,{width:"100%",height:"100%",sx:{border:`1px solid ${ut.palette.grey[300]}`,borderRadius:"4px"},children:[jsxRuntimeExports.jsx(ColumnTitle,{title:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",children:[jsxRuntimeExports.jsx(SvgCareplanTemplate,{}),et]})}),jsxRuntimeExports.jsx(Stack$5,{"data-testid":rt,sx:{overflowY:"auto",height:"100%"},children:tt==null?void 0:tt.map((dt,pt)=>{const ht=shouldDisableTemplate(dt,lt)||!1;return jsxRuntimeExports.jsx(Tooltip,{arrow:!0,title:ht&&"This template cannot be used for the selected treating department on the previous page.",children:jsxRuntimeExports.jsxs(Stack$5,{id:`template-${pt}`,"data-testid":dt.name,direction:"row",alignItems:"center",justifyContent:"space-between",padding:2,sx:{cursor:"pointer",borderBottom:`1px solid ${ut.palette.grey[100]}`,backgroundColor:"transparent",":hover":{backgroundColor:ut.palette.action.hover}},onClick:()=>{ht||nt(dt==null?void 0:dt.id,dt==null?void 0:dt.name)},children:[jsxRuntimeExports.jsx(Typography,{sx:{color:ht?ut.palette.grey[600]:ut.palette.text.primary},variant:"body1",children:dt.name}),!ht&&jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"})]},`${dt.name+dt.id}`)},`tooltip-${pt}`)})})]})},TemplateTableColumn=({title:et,options:tt,id:rt,onClick:nt,selectedValue:lt=""})=>{const ut=useTheme$1();return jsxRuntimeExports.jsxs(Stack$5,{width:"100%",height:"100%",sx:{border:`1px solid ${ut.palette.grey[300]}`,borderRadius:"4px"},children:[jsxRuntimeExports.jsx(ColumnTitle,{title:et}),jsxRuntimeExports.jsx(Stack$5,{"data-testid":rt,sx:{overflowY:"auto",height:"100%"},children:tt==null?void 0:tt.map((dt,pt)=>{const ht=lt===dt;return jsxRuntimeExports.jsx(Stack$5,{id:`item-${pt}`,"data-testid":dt,direction:"row",alignItems:"center",justifyContent:"space-between",padding:2,sx:{cursor:"pointer",borderBottom:`1px solid ${ut.palette.grey[100]}`,borderLeft:ht?`4px solid ${ut.palette.primary.main}`:"none",backgroundColor:ht?ut.palette.secondary.light:"transparent",":hover":{backgroundColor:ht?ut.palette.secondary.light:ut.palette.action.hover}},onClick:()=>{nt(dt)},children:jsxRuntimeExports.jsx(Typography,{variant:"body1",children:dt})},dt)})})]})},TemplateSelectionTable=({siteFilter:et,siteFilterOptions:tt,doseFilter:rt,doseFilterOptions:nt,techniqueFilter:lt,techniqueFilterOptions:ut,setSiteFilter:dt,setDoseFilter:pt,setTechniqueFilter:ht,treatingDepartment:mt,setCareplan:xt,careplanOptions:Mt})=>{const{doseUnit:vt}=reactExports.useContext(TenantContext);return jsxRuntimeExports.jsxs(Grid,{container:!0,width:"100%",columns:14,sx:{height:"100%"},children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:4,paddingRight:2,children:jsxRuntimeExports.jsx(TemplateTableColumn,{id:"site-filter-column",title:"1) Site Filter",selectedValue:et,options:tt,onClick:Ot=>{dt(Ot),pt(""),ht("")}})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:3,paddingRight:2,children:jsxRuntimeExports.jsx(TemplateTableColumn,{id:"dose-filter-column",title:`2) Dose Filter (${vt})`,selectedValue:rt,options:nt,onClick:Ot=>{pt(Ot),ht("")}})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:3,paddingRight:2,children:jsxRuntimeExports.jsx(TemplateTableColumn,{id:"technique-filter-column",title:"3) Technique Filter",selectedValue:lt,options:ut,onClick:Ot=>{ht(Ot)}})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:4,children:jsxRuntimeExports.jsx(CareplanColumn,{id:"careplan-column",title:"Careplan Template",options:Mt,onClick:(Ot,At)=>{xt(Ot,At)},treatingDepartment:mt})})]})},MAX_TREATMENT_SITE_OPTIONS_LENGTH=8,UROGENITAL_TS="urogenital",BREAST_TS="breast",LUNG_TS="lung";let pressedContinue$3=!1;const isFieldValid$3=et=>pressedContinue$3?validateField(et):!0,logger$m=new Logger("ROPatientTemplateSelectionPage"),getNewSiteGroupTemplate=(et,tt)=>({...DEFAULT_SITEGROUP,sites:[{...DEFAULT_SITE,treatmentSite:et,laterality:tt}]}),sortOptionType$1=(et,tt)=>et.value<tt.value?-1:et.value>tt.value?1:0,ROPatientCarePathTemplatePage=()=>{var rn,_r,ln,vn,Cr,gn,xn;const tt=useWindowSize().width<=1440,rt=useApolloClient(),nt=useRouteMatch(),{careplanId:lt,id:ut}=nt.params,dt=reactExports.useRef(new Date().getTime()),{state:pt,hasFeature:ht,isFeatureLoading:mt}=reactExports.useContext(UserContext),[xt,Mt]=reactExports.useState(!1),vt=useTheme$1(),[Ot]=useMutation(CREATE_SITEGROUP_FROM_TEMPLATE,{refetchQueries:[{query:GET_CAREPLAN,variables:{id:lt}},{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:lt}},{query:GET_PEER_REVIEW,variables:{careplanId:lt}}]}),[At]=useMutation(LOG_SIGMA_MUTATION),[Rt,zt]=reactExports.useState(""),[Tt,Ct]=reactExports.useState(""),[It,Dt]=reactExports.useState(""),[kt,qt]=reactExports.useState(""),[Nt,Yt]=reactExports.useState([]),[Kt,Jt]=reactExports.useState([]),[Qt,Bt]=reactExports.useState([]),[Ft,$t]=reactExports.useState([]),[jt,Wt]=reactExports.useState({siteGroupTemplatesState:[],modalShow:!1,treatmentSites:"",laterality:"",location:"",validated:!1,tumourStreamList:[],treatmentSiteList:[],selectedCareplanList:[],frequentlyUsedTemplates:[],sigmaResponse:void 0}),{dispatch:Ut}=reactExports.useContext(ROPatientCarePlanContext),Vt=useHistory(),{setError:Ht}=useErrorModalContext(),{data:Gt,error:Zt}=useQuery(GET_CAREPLAN_SITE_GROUPS,{variables:{careplanId:lt}}),{loading:Xt,data:er,error:nr}=useQuery(GET_TUMOUR_STREAM_FROM_CAREPLAN,{variables:{careplanId:lt},onCompleted:Vr=>{logMissingDiagnosisCode(logger$m,Vr.careplan,"Template Information")}}),{data:or,error:rr}=useQuery(LIST_TUMOUR_STREAMS),{data:cr,error:ir}=useQuery(LIST_TREATMENT_SITES_ORDERBY_USAGE),{data:dr,error:gr}=useQuery(LIST_SITE_FILTERS,{variables:{tumourStream:Rt,patientId:ut},skip:!Rt}),{error:br}=useQuery(FREQUENTLY_USED_TEMPLATES,{variables:{patientId:ut,tumourStream:Rt},skip:!Rt,fetchPolicy:"network-only",onCompleted:Vr=>Wt(fn=>({...fn,frequentlyUsedTemplates:Vr==null?void 0:Vr.frequentlyUsedTemplates}))}),{loading:ar,data:ur,error:xr}=useQuery(SIGMA_DATA,{variables:{careplanId:lt},skip:!xt,fetchPolicy:"network-only",onError:Vr=>{logger$m.info(Vr==null?void 0:Vr.message)}}),[Mr,Ar]=reactExports.useState(""),Ir=reactExports.useRef(!0),{data:Rr,error:wr}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:lt}}),{data:qr,error:Hr}=useQuery(LIST_DOSE_FILTERS,{variables:{tumourStream:Rt,siteFilter:Tt,patientId:ut},skip:!Rt||!Tt}),{data:kr,error:$r}=useQuery(LIST_TECHNIQUE_FILTERS,{variables:{patientId:ut,tumourStream:Rt,siteFilter:Tt,doseFilter:It},skip:!Rt||!Tt}),{data:yr,error:Or}=useQuery(LIST_CAREPLAN_FILTERS,{variables:{patientId:ut,tumourStream:Rt,siteFilter:Tt,doseFilter:It||null,techniqueFilter:kt||null,search:Mr},skip:!Rt||!Tt,onCompleted:Vr=>{$t(Vr==null?void 0:Vr.careplanTemplateList)}});reactExports.useEffect(()=>{if(Zt||nr||rr||ir||br||gr||wr||Hr||$r||Or||xr)return Ht()},[Zt,nr,rr,ir,br,gr,wr,Hr,$r,Or,xr]);const[,Dr]=reactExports.useState(),Fr=reactExports.useCallback(()=>Dr({}),[]);reactExports.useEffect(()=>{let Vr=[],fn=[],pn=[];or&&(Vr=or.tumourStreamList.map(qn=>({label:qn,value:qn}))),cr&&(fn=cr.mostUsedSiteReferenceList.map(qn=>({label:qn.treatmentSite,value:qn.treatmentSite}))),Gt&&(pn=Gt.siteGroupsByCareplan.map(qn=>{var Bn;return{id:qn.id,template:qn,name:qn.name,ccTemplate:(Bn=qn.template)==null?void 0:Bn.template}})),Wt({...jt,tumourStreamList:Vr,treatmentSiteList:fn,selectedCareplanList:pn})},[or,cr,Gt]),reactExports.useEffect(()=>{yr&&$t(yr.careplanTemplateList)},[yr]),reactExports.useEffect(()=>{dr&&Yt(dr.siteFilterList)},[dr]),reactExports.useEffect(()=>{qr&&Jt(qr.doseFilterList)},[qr]),reactExports.useEffect(()=>{kr&&Bt(kr.techniqueFilterList)},[kr]),reactExports.useEffect(()=>{var Vr,fn,pn,qn;er&&!Rt&&zt(((qn=(pn=(fn=(Vr=er.careplan)==null?void 0:Vr.diagnosis)==null?void 0:fn.diagnosisCode)==null?void 0:pn.tumourStream)==null?void 0:qn.name)||"")},[er]),reactExports.useLayoutEffect(()=>{Mr!==""?rt.query({query:gql`
            query careplanTemplateList($tumourStream: String!, $search: String, $patientId: ID!) {
              careplanTemplateList(tumourStream: $tumourStream, search: $search, patientId: $patientId) {
                id
                name
                rules {
                  id
                  field
                  defaultValue
                }
              }
            }
          `,variables:{tumourStream:Rt,search:Mr,patientId:ut}}).then(Vr=>{const fn=Vr.data.careplanTemplateList;fn&&(Ct(""),Jt([]),Bt([]),Ct(""),$t(fn))}):Mr===""&&!Ir.current?Wt(Vr=>({...Vr,careplans:[]})):Ir.current=!1},[Mr]),reactExports.useEffect(()=>{pressedContinue$3=!1},[]);const Yr=[BREAST_TS,UROGENITAL_TS,LUNG_TS];if(reactExports.useEffect(()=>{var Vr;Mt(Yr.includes(Rt.toLowerCase())&&!!ht(Features.SIGMA)&&((Vr=er==null?void 0:er.careplan)==null?void 0:Vr.diagnosis.isPrimaryDiagnosis))},[pt.features,Rt,er]),mt()||xt&&ar||Xt)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Careplan Selection",subtitle:"Please wait while we set things up for you"});const Gr=(Vr,fn,pn,qn,Bn)=>{const Kr=getNewSiteGroupTemplate(Vr,""),Tr=document.querySelector(`[data-testid="${fn}"]`),Pr=Bn==="manual",an=Pr?"Manual site":"Careplan template",nn=qn?`${CleanSpecifyFromSiteName(`${Vr} (${qn})`)}`:Vr,Mn=()=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{style:{maxWidth:"270px",wordWrap:"normal",overflow:"hidden"},className:"title",children:[an," added"]}),jsxRuntimeExports.jsx("div",{style:{maxWidth:"270px",wordWrap:"normal",overflow:"hidden"},children:Pr?nn:fn})]});if(B$3.dark(jsxRuntimeExports.jsx(Mn,{}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,transition:F$2,progress:void 0}),Tr&&Pr){if(Tr.hasAttribute("disabled"))return;Tr.setAttribute("disabled",""),Tr.classList.add("active"),setTimeout(()=>{Ct(""),Dt(""),qt(""),$t([]),Wt({...jt,siteGroupTemplatesState:[...jt.siteGroupTemplatesState,Kr]})},0)}Wt({...jt,siteGroupTemplatesState:[...jt.siteGroupTemplatesState,Kr]}),Ut({type:CarePlanActionType.SET_CAREPLAN_SITES,payload:{template:{name:fn,groups:[Kr]}}}),Ot({variables:{careplanId:lt,templateId:pn,templateName:fn,treatmentSite:Vr,selectionMethod:Bn,treatmentSiteSpecify:qn}})},Jr=()=>{pressedContinue$3=!1,Wt({...jt,modalShow:!1})},jr=[{parent:null,expansionValue:null,children:["treatmentSites"]},{parent:"isSpecify",expansionValue:!0,children:["location"]}],Zr=()=>{const Vr={...jt,isSpecify:isSpecifySite(jt.treatmentSites)};return isPageValid(jr,Vr)},Xr=()=>{var pn,qn,Bn,Kr;const Vr=(qn=(pn=er==null?void 0:er.careplan)==null?void 0:pn.diagnosis)==null?void 0:qn.diagnosisCode,fn=(Bn=Vr==null?void 0:Vr.tumourStream)==null?void 0:Bn.name.toLowerCase();if(Vr&&!Yr.includes(fn))return"not_supported";if(fn===UROGENITAL_TS&&Vr.diagnosisCode!=="C61")return"not_supported";if(xt)switch((Kr=ur==null?void 0:ur.sigmaData)==null?void 0:Kr.status){case"200":return"ok";case"422":return"validation_error";default:return"unexpected_error"}return"inactive"},cn={event_name:"careplans_selected",practitioner_id:parseInt(er.careplan.practitioner.id),patient_id:parseInt(ut),diagnosis_id:parseInt(er.careplan.diagnosis.id),careplan_id:parseInt(er.careplan.id),sigma_response_uuid:(rn=ur==null?void 0:ur.sigmaData)==null?void 0:rn.responseUUID,sigma_status:Xr(),selected_templates:jt.selectedCareplanList.map(Vr=>{var fn;return{id:((fn=Vr.ccTemplate)==null?void 0:fn.id)??Vr.template.id,name:Vr.template.name,selectionMethod:Vr.template.selectionMethod}}),recommended_templates:(ln=(_r=ur==null?void 0:ur.sigmaData)==null?void 0:_r.templates)==null?void 0:ln.map(Vr=>({id:Vr.id,name:Vr.name,score:Vr.score}))},Qr=()=>Mr?jsxRuntimeExports.jsx(InputAdornment,{position:"end",children:jsxRuntimeExports.jsx(Clear,{sx:{cursor:"pointer"},onClick:()=>Ar(""),color:"primary"})}):null;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsx(CareplanBanners,{data:Rr}),jsxRuntimeExports.jsxs(CareplanContainer,{className:"template-selection-page carepath-template-page",children:[jsxRuntimeExports.jsxs("div",{className:"page-header",children:[jsxRuntimeExports.jsx(Typography,{variant:"h5","data-test-id":"template-select-header",children:"Careplan Selection"}),jsxRuntimeExports.jsx(Typography,{color:vt.palette.text.secondary,paddingTop:1,variant:"body1",children:"Please select careplan templates/sites."})]}),xt&&((Cr=(vn=ur==null?void 0:ur.sigmaData)==null?void 0:vn.templates)!=null&&Cr.length)?jsxRuntimeExports.jsx(Sigma,{templates:(gn=ur==null?void 0:ur.sigmaData)==null?void 0:gn.templates,selectCareplan:Gr,tumourStream:Rt}):jsxRuntimeExports.jsx(FrequentlyUsed,{templates:jt.frequentlyUsedTemplates,selectCareplan:Gr,tumourStream:Rt}),jsxRuntimeExports.jsx("div",{className:"freq-search-separator"}),jsxRuntimeExports.jsx("div",{className:"cp-select-ddsearch-wrapper",children:jsxRuntimeExports.jsxs("div",{className:"cp-select-ddsearch",children:[jsxRuntimeExports.jsxs("div",{className:"cp-select-ddsearch",children:[jsxRuntimeExports.jsx(Typography,{width:"170px",variant:"h6",textTransform:"capitalize",children:`${CurrentAppConfig.DefaultValue.tumourName} Stream`}),jsxRuntimeExports.jsx("div",{style:{width:"400px"},children:jsxRuntimeExports.jsx(BaseAutocomplete,{id:"tumourStream",value:getOptionByValue(jt.tumourStreamList,Rt),disableClearable:!0,onChange:Vr=>{const fn=typeof Vr=="string"?Vr:Vr==null?void 0:Vr.value;Rt!==fn&&(Ar(""),Ct(""),Dt(""),qt(""),Jt([]),Bt([]),Yt([]),$t([]),zt(fn))},options:jt.tumourStreamList})})]}),jsxRuntimeExports.jsx("div",{className:"add-cp-site-manually",children:jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{cursor:"pointer"},color:vt.palette.primary.dark,onClick:()=>{Wt({...jt,modalShow:!0,location:"",treatmentSites:""})},children:tt?"Add site manually":jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Can't find template? ",jsxRuntimeExports.jsx("br",{})," Add site manually"]})})}),jsxRuntimeExports.jsx("div",{className:"cp-search-input-wrapper",children:jsxRuntimeExports.jsx(BaseTextField,{name:"cpTemplateSearchInput",id:"cpTemplateSearchInput",type:"search",placeholder:"Search careplan templates…",fullWidth:!0,value:Mr,onChange:Vr=>{Ar(Vr.target.value)},InputProps:{startAdornment:jsxRuntimeExports.jsx(Search,{color:"primary"}),endAdornment:Qr()},sx:{marginLeft:"16px"}})})]})}),jsxRuntimeExports.jsx(TemplateSelectionTable,{siteFilter:Tt,doseFilter:It,techniqueFilter:kt,setSiteFilter:Ct,setDoseFilter:Dt,setTechniqueFilter:qt,treatingDepartment:(xn=Rr==null?void 0:Rr.careplan)==null?void 0:xn.treatingDepartment,siteFilterOptions:alphabeticalOrder(Nt,null),doseFilterOptions:alphabeticalOrder(Kt,null),techniqueFilterOptions:alphabeticalOrder(Qt,null),setCareplan:(Vr,fn)=>Gr(Rt,fn,Vr,"","filter"),careplanOptions:alphabeticalOrder(Ft,"name")})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{Vt.push(`/radiation/patient/${ut}/careplan/${lt}/${CAREPLAN_PAGES.TREATMENT_INFO}`)},onNext:()=>{logPage(dt.current,cn,At),Vt.push(`/radiation/patient/${ut}/careplan/${lt}/${CAREPLAN_PAGES.SITESETUP}`)},nextDisabled:!(Gt&&Gt.siteGroupsByCareplan&&Gt.siteGroupsByCareplan.length!==0)})]}),jsxRuntimeExports.jsx(ROPatientCarePathSidePanel,{})]}),jsxRuntimeExports.jsx(StandardDialog,{id:"treatment-sites-modal",open:jt.modalShow,maxWidth:"lg",title:"Add Treatment Site Manually",onClose:Jr,submitText:"Add",showDividers:!0,onSubmit:()=>{pressedContinue$3=!0,Fr(),Zr()&&(Gr(jt.treatmentSites,"",-1,jt.location,"manual"),Jr())},children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Most Common Sites"}),jsxRuntimeExports.jsx(Grid,{container:!0,spacing:2,paddingY:3,"data-testid":"treatment-sites-buttons",children:jt.treatmentSiteList.slice(0,MAX_TREATMENT_SITE_OPTIONS_LENGTH).map(Vr=>jsxRuntimeExports.jsx(Grid,{item:!0,xs:3,children:jsxRuntimeExports.jsx(ToggleButton$1,{fullWidth:!0,selected:jt.treatmentSites===Vr.value,sx:{overflow:"hidden",textOverflow:"ellipsis",textTransform:"capitalize",whiteSpace:"nowrap",paddingX:1},value:Vr.value,onClick:()=>{Wt({...jt,treatmentSites:Vr.value,location:""})},children:jsxRuntimeExports.jsx(Typography,{variant:"body2",children:Vr.label})},`treatment-sites-${Vr.value}`)}))}),jsxRuntimeExports.jsx(Typography,{paddingY:2,variant:"subtitle1",children:"Search & Select"}),jsxRuntimeExports.jsxs(Box,{component:"form",id:"addSiteManuallyForm",children:[jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatmentSites",fieldlabel:"Treatment Sites",placeholder:SEARCH_DROPDOWN_PLACEHOLDER$1,options:jt.treatmentSiteList.sort(sortOptionType$1),value:getOptionByValue(jt.treatmentSiteList,jt.treatmentSites),onChange:Vr=>{const fn=typeof Vr=="string"?Vr:Vr==null?void 0:Vr.value;Wt({...jt,treatmentSites:fn||"",location:""})},inputProps:{error:!isFieldValid$3(jt.treatmentSites),helperText:isFieldValid$3(jt.treatmentSites)?void 0:"This field is required"},required:!0,disableClearable:!0}),isSpecifySite(jt.treatmentSites)&&jsxRuntimeExports.jsx(ROTextField,{id:"location",fieldlabel:"Location",value:jt.location,onChange:Vr=>{Wt({...jt,location:Vr.target.value})},error:!isFieldValid$3(jt.location),helperText:isFieldValid$3(jt.location)?void 0:"This field is required",required:!0})]})]})})]})},validationV1$1=[{parent:"bolus",expansionValue:"true",children:["bolusLocation","bolusThickness"]}],SimulationBolusFormV1=({options:et,updateSimulation:tt,fieldsId:rt,siteGroup:nt,SIM_NAMES:lt,listValuesLookup:ut,setTextFields:dt,isFieldValid:pt,bolusLocationValues:ht,bolusThicknessCustomValues:mt})=>{const{bolus:xt,bolusLocation:Mt,bolusThickness:vt,bolusThicknessCustom:Ot}=nt;return useTheme$1(),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:lt.BOLUS,fieldlabel:"Bolus",options:et.bolus,value:setYesNo(xt.value),handleChange:At=>{tt({variables:{siteGroupId:rt,bolus:At==="yes",bolusLocation:"",bolusThickness:"",bolusThicknessCustom:""}})}}),(xt==null?void 0:xt.value)==="true"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROTextField,{id:lt.BOLUS_LOCATION,fieldlabel:"Bolus Location",value:ut(ht,rt,Mt?Mt.value:""),onChange:At=>{dt(lt.BOLUS_LOCATION,rt,ht,At.target.value)},error:!pt(Mt),onBlur:()=>{const At=ht.find(Rt=>Rt.id===rt);At&&tt({variables:{siteGroupId:rt,bolusLocation:At.value}})},required:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:lt.BOLUS_THICKNESS,fieldlabel:"Bolus Thickness",options:et.bolusThickness.map(At=>({label:At.value,value:At.value})),value:getOptionByValue(et.bolusThickness.map(At=>({label:At.label,value:At.value})),(vt==null?void 0:vt.value)||""),required:!0,inputProps:{error:!pt(vt)},onChange:At=>{const Rt=typeof At=="string"?At:At==null?void 0:At.value;tt({variables:{siteGroupId:rt,bolusThickness:Rt,bolusThicknessCustom:""}})}}),(vt==null?void 0:vt.value)=="Custom"&&jsxRuntimeExports.jsx(ROTextField,{id:lt.BOLUS_THICKNESS_CUSTOM,label:!0,value:ut(mt,rt,(Ot==null?void 0:Ot.value)||""),onChange:At=>{dt(lt.BOLUS_THICKNESS_CUSTOM,rt,mt,At.target.value)},onBlur:()=>{const At=mt.find(Rt=>Rt.id===rt);At&&tt({variables:{siteGroupId:rt,bolusThicknessCustom:At.value}})}})]})]})},validationV2$1=[{parent:"bolus",expansionValue:"true",children:["bolusLocationType","bolusThickness","bolusFrequency"]},{parent:"bolusLocationType",expansionValue:"Specify location",children:["bolusLocation"]}],SimulationBolusFormV2=({options:et,updateSimulation:tt,fieldsId:rt,siteGroup:nt,SIM_NAMES:lt,listValuesLookup:ut,setTextFields:dt,isFieldValid:pt,bolusLocationValues:ht,bolusThicknessCustomValues:mt})=>{useTheme$1();const{bolus:xt,bolusLocation:Mt,bolusThickness:vt,bolusThicknessCustom:Ot,bolusFrequency:At,is3dBolus:Rt,bolusLocationType:zt}=nt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:lt.BOLUS,fieldlabel:"Bolus",options:et.bolus,value:setYesNo(xt.value),handleChange:Tt=>{const Ct=Tt==="yes",It=Rt!=null&&Rt.isShown?{is3dBolus:""}:{},Dt={siteGroupId:rt,bolus:Ct,bolusLocation:"",bolusLocationType:"",bolusThickness:"",bolusThicknessCustom:"",bolusFrequency:"",...It};tt({variables:Dt})}}),(xt==null?void 0:xt.value)==="true"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[(Rt==null?void 0:Rt.isShown)&&jsxRuntimeExports.jsx(ROToggleButtons,{id:lt.IS_3D_BOLUS,fieldlabel:"3D Bolus",options:et.is3dBolus,value:(Rt==null?void 0:Rt.value)||"",error:!pt(Rt),handleChange:Tt=>{tt({variables:{siteGroupId:rt,is3dBolus:Tt}})}}),jsxRuntimeExports.jsx(ROToggleButtons,{id:lt.BOLUS_LOCATION_TYPE,fieldlabel:"Bolus Location",options:et.bolusLocationType,value:zt?zt.value:"",required:!0,error:!pt(zt),handleChange:Tt=>{tt({variables:{siteGroupId:rt,bolusLocationType:Tt,bolusLocation:Tt==="Specify location"?"":Tt}})}}),(zt==null?void 0:zt.value)==="Specify location"&&jsxRuntimeExports.jsx(ROTextField,{id:lt.BOLUS_LOCATION,fieldlabel:"Bolus Location Specify",value:ut(ht,rt,(Mt==null?void 0:Mt.value)||""),onChange:Tt=>{dt(lt.BOLUS_LOCATION,rt,ht,Tt.target.value)},error:!pt(Mt),onBlur:()=>{const Tt=ht.find(Ct=>Ct.id===rt);Tt&&tt({variables:{siteGroupId:rt,bolusLocation:Tt.value}})},required:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:lt.BOLUS_THICKNESS,fieldlabel:"Bolus Thickness",options:et.bolusThickness.map(Tt=>({label:Tt.value,value:Tt.value})),value:getOptionByValue(et.bolusThickness.map(Tt=>({label:Tt.label,value:Tt.value})),(vt==null?void 0:vt.value)||""),required:!0,inputProps:{error:!pt(vt)},onChange:Tt=>{const Ct=typeof Tt=="string"?Tt:Tt==null?void 0:Tt.value;tt({variables:{siteGroupId:rt,bolusThickness:Ct,bolusThicknessCustom:""}})}}),(vt==null?void 0:vt.value)=="Custom"&&jsxRuntimeExports.jsx(ROTextField,{id:lt.BOLUS_THICKNESS_CUSTOM,label:!0,value:ut(mt,rt,Ot?Ot.value:""),onChange:Tt=>{dt(lt.BOLUS_THICKNESS_CUSTOM,rt,mt,Tt.target.value)},onBlur:()=>{const Tt=mt.find(Ct=>Ct.id===rt);Tt&&tt({variables:{siteGroupId:rt,bolusThicknessCustom:Tt.value}})}}),jsxRuntimeExports.jsx(ROAutocomplete,{id:lt.BOLUS_FREQUENCY,fieldlabel:"Bolus Frequency",options:et.bolusFrequency.map(Tt=>({label:Tt.value,value:Tt.value})),value:getOptionByValue(et.bolusFrequency.map(Tt=>({label:Tt.label,value:Tt.value})),(At==null?void 0:At.value)||""),required:!0,inputProps:{error:!pt(At)},onChange:Tt=>{const Ct=typeof Tt=="string"?Tt:Tt==null?void 0:Tt.value;tt({variables:{siteGroupId:rt,bolusFrequency:Ct}})}})]})]})},getBolusValidationStructure$1=et=>et>=2?validationV2$1:et>=1?validationV1$1:[],BolusForm$1=et=>et.version>=2?jsxRuntimeExports.jsx(SimulationBolusFormV2,{...et}):et.version>=1?jsxRuntimeExports.jsx(SimulationBolusFormV1,{...et}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),fieldValues={bookingRequired:"Booking Required",contrastType:"Contrast Type",egfr_gt_30:"EGFR > 30",oral:"Oral",iv:"IV",yes:"yes",no:"no",awaitingResults:"Awaiting results"},BOOLEAN_OPTIONS$2=[{label:"Yes",value:fieldValues.yes},{label:"No",value:"no"}],EGFR_GT_30=[{label:"Yes",value:fieldValues.yes},{label:"No",value:fieldValues.no},{label:fieldValues.awaitingResults,value:fieldValues.awaitingResults}],BLOOD_TEST_LAST_3_MONTHS=[{label:"Yes",value:fieldValues.yes},{label:fieldValues.bookingRequired,value:fieldValues.bookingRequired}],CONTRAST_TYPES=[{label:fieldValues.iv,value:fieldValues.iv},{label:fieldValues.oral,value:fieldValues.oral}],IMAGING_REQUIREMENT_OPTIONS=[{label:"Book Imaging",value:"bookImaging"},{label:"Retrieve Imaging",value:"retrieveImaging"}];gql`
  fragment Attachment on AttachmentType {
    id
    url
    documentType
    submitted
    encounterDate
    isRegistrationAttachment
  }
`;const SITE_GROUP_OPTIONS_FRAGMENT=gql`
  fragment SiteGroupOptions on SiteGroupSimulationType {
    additionalSimInfo {
      value
      isShown
    }
    bladder {
      value
      isShown
    }
    bolus {
      value
      isShown
    }
    bolusLocationType {
      value
      isShown
    }
    bolusLocation {
      value
      isShown
    }
    bolusThickness {
      value
      isShown
    }
    bolusThicknessCustom {
      value
      isShown
    }
    bolusFrequency {
      value
      isShown
    }
    is3dBolus {
      value
      isShown
    }
    bowelPrep {
      value
      isShown
    }
    ctSimulation {
      value
      isShown
    }
    contrastRequired {
      value
      isShown
    }
    contrastType {
      value
      isShown
    }
    immobilisation {
      value
      isShown
    }
    bloodTestLast3Months {
      value
      isShown
    }
    egfrGt30ml {
      value
      isShown
    }
    dibh {
      value
      isShown
    }
    breathHold {
      value
      isShown
    }
    extentDefined {
      value
      isShown
    }
    extentOfCt {
      value
      isShown
    }
    extraCtMarkers {
      value
      isShown
    }
    fourDct {
      value
      isShown
    }
    gating {
      value
      isShown
    }
    goldSeeds {
      value
      isShown
    }
    mouthpiece {
      value
      isShown
    }
    patientPosition {
      value
      isShown
    }
    positionSetup {
      value
      isShown
    }
    roRequired {
      value
      isShown
    }
    mask {
      value
      isShown
    }
    spacerGel {
      value
      isShown
    }
    stomach {
      value
      isShown
    }
    abdomenCompression {
      value
      isShown
    }
    tonguePosition {
      value
      isShown
    }
    vaginalTampon {
      value
      isShown
    }
  }
`,GET_DEFAULT_VALUES=gql`
  query defaultSiteGroupValues($siteGroupId: ID!, $fieldNames: [String!]) {
    defaultSiteGroupValues(siteGroupId: $siteGroupId, fieldNames: $fieldNames) {
      fieldName
      value
      isShown
    }
  }
`,LOAD_SITEGROUP_INFO=gql`
  ${SITE_GROUP_OPTIONS_FRAGMENT}
  query siteGroupsByCareplan($careplanId: ID!) {
    simulationSiteGroups(careplanId: $careplanId) {
      sites {
        treatmentSite
        location
        laterality
      }
      id
      templateId
      ...SiteGroupOptions
      imagingList {
        id
        anatomicalMatchPriority
        bodyRegion
        contrastRequired
        createdAt
        createdBy
        imagingRequirement
        instructions
        radiologyClinic
        scanExamination
      }
    }
  }
`,RESET_SIMULATION=gql`
  ${SITE_GROUP_OPTIONS_FRAGMENT}
  mutation resetSimulation($siteGroupId: ID!) {
    resetSimulation(siteGroupId: $siteGroupId) {
      siteGroup {
        id
        ...SiteGroupOptions
      }
    }
  }
`,UPDATE_SIMULATION=gql`
  ${SITE_GROUP_OPTIONS_FRAGMENT}

  mutation updateSimulation(
    $siteGroupId: ID!
    $additionalSimInfo: String
    $bladder: String
    $bolus: Boolean
    $bolusLocationType: String
    $bolusLocation: String
    $bolusThickness: String
    $bolusThicknessCustom: String
    $bolusFrequency: String
    $is3dBolus: String
    $bowelPrep: Boolean
    $ctSimulation: Boolean
    $contrastRequired: Boolean
    $contrastType: String
    $immobilisation: [String]
    $bloodTestLast3Months: String
    $egfrGt30ml: String
    $dibh: Boolean
    $breathHold: String
    $extentDefined: String
    $extentOfCt: String
    $extraCtMarkers: String
    $fourDct: Boolean
    $gating: Boolean
    $goldSeeds: Boolean
    $mouthpiece: Boolean
    $patientPosition: String
    $positionSetup: String
    $roRequired: Boolean
    $mask: Boolean
    $spacerGel: Boolean
    $stomach: String
    $abdomenCompression: Boolean
    $tonguePosition: String
    $vaginalTampon: Boolean
  ) {
    updateSimulation(
      siteGroupId: $siteGroupId
      additionalSimInfo: $additionalSimInfo
      bladder: $bladder
      bolus: $bolus
      bolusLocationType: $bolusLocationType
      bolusLocation: $bolusLocation
      bolusThickness: $bolusThickness
      bolusThicknessCustom: $bolusThicknessCustom
      bolusFrequency: $bolusFrequency
      is3dBolus: $is3dBolus
      bowelPrep: $bowelPrep
      ctSimulation: $ctSimulation
      contrastRequired: $contrastRequired
      contrastType: $contrastType
      immobilisation: $immobilisation
      bloodTestLast3Months: $bloodTestLast3Months
      egfrGt30ml: $egfrGt30ml
      dibh: $dibh
      breathHold: $breathHold
      extentDefined: $extentDefined
      extentOfCt: $extentOfCt
      extraCtMarkers: $extraCtMarkers
      fourDct: $fourDct
      gating: $gating
      goldSeeds: $goldSeeds
      mouthpiece: $mouthpiece
      patientPosition: $patientPosition
      positionSetup: $positionSetup
      roRequired: $roRequired
      mask: $mask
      spacerGel: $spacerGel
      stomach: $stomach
      abdomenCompression: $abdomenCompression
      tonguePosition: $tonguePosition
      vaginalTampon: $vaginalTampon
    ) {
      siteGroup {
        id
        careplanId

        ...SiteGroupOptions
      }
    }
  }
`,CREATE_IMAGING=gql`
  mutation createImaging($siteGroupId: ID, $imagingRequirement: String) {
    createImaging(siteGroupId: $siteGroupId, imagingRequirement: $imagingRequirement) {
      success
      imaging {
        id
        anatomicalMatchPriority
        bodyRegion
        contrastRequired
        imagingRequirement
        instructions
        radiologyClinic
        scanExamination
      }
    }
  }
`;gql`
  query imagingList($siteGroupId: ID!) {
    imaging {
      id
      anatomicalMatchPriority
      bodyRegion
      contrastRequired
      imagingRequirement
      instructions
      radiologyClinic
      scanExamination
    }
  }
`;const UPDATE_IMAGING=gql`
  mutation updateImaging(
    $imagingId: ID!
    $anatomicalMatchPriority: String
    $bodyRegion: String
    $contrastRequired: Boolean
    $imagingRequirement: String
    $instructions: String
    $radiologyClinic: String
    $scanExamination: String
  ) {
    updateImaging(
      imagingId: $imagingId
      anatomicalMatchPriority: $anatomicalMatchPriority
      bodyRegion: $bodyRegion
      contrastRequired: $contrastRequired
      imagingRequirement: $imagingRequirement
      instructions: $instructions
      radiologyClinic: $radiologyClinic
      scanExamination: $scanExamination
    ) {
      imaging {
        id
        anatomicalMatchPriority
        bodyRegion
        contrastRequired
        imagingRequirement
        instructions
        radiologyClinic
        scanExamination
      }
    }
  }
`,DELETE_IMAGING=gql`
  mutation deleteImaging($imagingId: ID) {
    deleteImaging(imagingId: $imagingId) {
      success
    }
  }
`,USER_QUERY$1=gql`
  query user {
    user {
      id
      isShowcaseUser
    }
  }
`,TREATMENT_SITE_FRAGMENT=gql`
  fragment TreatmentSite on RoPortalTreatmentSiteType {
    id
    laterality
    phase
    technique
    modality
    dose
    fractions
    doseTo
    customDoseTo
    doseFrequency
    customDoseFrequency
    imagingFrequency {
      value
      isShown
    }
    imagingTechnique
    additionalPrescriptionInfo
    bolusLocationType
    bolusLocation
    bolusThickness
    bolusThicknessCustom
    bolus {
      value
      isShown
    }
    is3dBolus {
      value
      isShown
    }
    microdosimetryTld
    weeklyPhysicsCheck
    treatmentBreak {
      value
      isShown
    }
    treatmentBreakDuration
    treatmentBreakFraction
    treatmentSite
    bolusFrequency
    location
    treatmentOption
    cpotFraction
    changeReason
    changeReasonOther
    originalDose
    originalFractions
    ctv
    ptv
    basicDoseCalculation
    userAcknowledgedExceeded5gFraction
  }
`;gql`
  query siteListByCareplan($careplanId: ID!) {
    siteListByCareplan(careplanId: $careplanId) {
      id
      ...TreatmentSite
    }
  }

  ${TREATMENT_SITE_FRAGMENT}
`;const LOAD_PRESCRIPTION=gql`
  query siteListByCareplan($careplanId: ID!) {
    siteListByCareplan(careplanId: $careplanId) {
      id
      ...TreatmentSite
    }
  }

  ${TREATMENT_SITE_FRAGMENT}
`,RESET_CONDITIONAL_FIELDS=gql`
  mutation resetConditionalFields($siteId: ID, $siteGroupId: ID, $fieldNames: [String]!) {
    resetConditionalFields(siteId: $siteId, siteGroupId: $siteGroupId, fieldNames: $fieldNames) {
      success
    }
  }
`,RESET_CONDITIONAL_FIELDS_TO_LAST_PRESCRIPTION=gql`
  mutation resetConditionalFieldsToLastPrescription($siteId: ID, $siteGroupId: ID, $fieldNames: [String]!) {
    resetConditionalFieldsToLastPrescription(siteId: $siteId, siteGroupId: $siteGroupId, fieldNames: $fieldNames) {
      success
    }
  }
`,RESET_PRESCRIPTION=gql`
  mutation resetPrescription($siteId: ID!) {
    resetPrescription(siteId: $siteId) {
      site {
        id
        ...TreatmentSite
      }
    }
  }

  ${TREATMENT_SITE_FRAGMENT}
`,RESET_TO_LAST_PRESCRIPTION=gql`
  mutation resetToLastPrescription($siteId: ID!) {
    resetToLastPrescription(siteId: $siteId) {
      site {
        id
      }
    }
  }
`,LOAD_SITE_TEMPLATE_VARIATION_VALUES=gql`
  query loadSiteTemplateValuesVariation($siteId: ID!) {
    loadSiteTemplateValuesVariation(siteId: $siteId) {
      fieldName
      value
    }
  }
`,UPDATE_PRESCRIPTION=gql`
  mutation updatePrescription(
    $siteId: ID
    $phase: String
    $technique: String
    $modality: String
    $dose: [Float]
    $doseLow: String
    $doseHigh: String
    $doseIntermediate: [String]
    $fractions: Int
    $doseTo: String
    $customDoseTo: String
    $doseFrequency: String
    $customDoseFrequency: String
    $imagingFrequency: String
    $imagingTechnique: String
    $additionalPrescriptionInfo: String
    $bolus: Boolean
    $bolusLocationType: String
    $bolusLocation: String
    $bolusThickness: String
    $bolusThicknessCustom: String
    $bolusFrequency: String
    $is3dBolus: String
    $microdosimetryTld: String
    $weeklyPhysicsCheck: String
    $treatmentBreak: Boolean
    $treatmentBreakDuration: String
    $treatmentBreakFraction: String
    $treatmentOption: String
    $ctv: [String]
    $ptv: [String]
    $changeReason: String
    $changeReasonOther: String
    $cpotFraction: Int
    $basicDoseCalculation: String
    $userAcknowledgedExceeded5gFraction: String
  ) {
    updatePrescription(
      siteId: $siteId
      phase: $phase
      technique: $technique
      modality: $modality
      dose: $dose
      doseLow: $doseLow
      doseHigh: $doseHigh
      doseIntermediate: $doseIntermediate
      fractions: $fractions
      doseTo: $doseTo
      customDoseTo: $customDoseTo
      doseFrequency: $doseFrequency
      customDoseFrequency: $customDoseFrequency
      imagingFrequency: $imagingFrequency
      imagingTechnique: $imagingTechnique
      additionalPrescriptionInfo: $additionalPrescriptionInfo
      bolusLocationType: $bolusLocationType
      bolusLocation: $bolusLocation
      bolusThickness: $bolusThickness
      bolusThicknessCustom: $bolusThicknessCustom
      bolus: $bolus
      bolusFrequency: $bolusFrequency
      is3dBolus: $is3dBolus
      microdosimetryTld: $microdosimetryTld
      weeklyPhysicsCheck: $weeklyPhysicsCheck
      treatmentBreak: $treatmentBreak
      treatmentBreakDuration: $treatmentBreakDuration
      treatmentBreakFraction: $treatmentBreakFraction
      treatmentOption: $treatmentOption
      ctv: $ctv
      ptv: $ptv
      changeReason: $changeReason
      changeReasonOther: $changeReasonOther
      cpotFraction: $cpotFraction
      basicDoseCalculation: $basicDoseCalculation
      userAcknowledgedExceeded5gFraction: $userAcknowledgedExceeded5gFraction
    ) {
      site {
        id
        phase
        technique
        modality
        fractions
        dose
        doseTo
        customDoseTo
        doseFrequency
        customDoseFrequency
        imagingFrequency
        imagingTechnique
        additionalPrescriptionInfo
        bolusLocationType
        bolusLocation
        bolusThickness
        bolusThicknessCustom
        bolus
        bolusFrequency
        is3dBolus
        microdosimetryTld
        weeklyPhysicsCheck
        treatmentBreak
        treatmentBreakDuration
        treatmentBreakFraction
        treatmentOption
        ctv
        ptv
        changeReason
        changeReasonOther
        cpotFraction
        originalFractions
        originalDose
        basicDoseCalculation
        userAcknowledgedExceeded5gFraction
      }
    }
  }
`,DUPLICATE_SIMULATION_BOLUS_TO_PRESCRIPTION=gql`
  mutation duplicateSimulationBolusToPrescription($id: ID!) {
    duplicateSimulationBolusToPrescription(id: $id) {
      bolus {
        value
        isShown
      }
      bolusLocation {
        value
        isShown
      }
      bolusThickness {
        value
        isShown
      }
      bolusThicknessCustom {
        value
        isShown
      }
    }
  }
`,REACT_APP_REGION$9=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,logger$l=new Logger("ROPatientSimulationPage"),region$4=REACT_APP_REGION$9,LIST_OPTIONS$3={PATIENT_POSITION:"patientPosition",EXTENT_OF_CT:"extentOfCT",BLADDER:"bladder",SCAN_EXAMINATION:"scanType",BODY_REGION:"imagingArea",STOMACH:"stomach",BOLUS_THICKNESS:"bolusThickness",BOLUS_FREQUENCY:"bolusFrequency",IS_3D_BOLUS:"is3dBolus",BOLUS_LOCATION_TYPE:"bolusLocationType",IMMOBILISATION:"immobilisation"},DEFAULT_OPTION=[{label:"",value:""}],showChildField=["Custom setup","Custom","As per template"],readOnlyChildField=["As per template"],DEFAULT_FIELDS={POSITION_SETUP:"Position_Other",EXTENT_DEFINED:"Extent_Defined"};let pressedContinue$2=!1;const isFieldValid$2=et=>pressedContinue$2?validateField(et):!0,DEFAULT_IMAGING={imagingId:"",imagingRequirement:"",imagingScanExamination:"",imagingBodyRegion:"",imagingContrastRequired:"",imagingRadiologyClinic:"",imagingAnatomicalMatchPriority:"",imagingInstructions:"",showImageOptions:!1},IMAGING_NAMES={RADIOLOGY_CLINIC:"imagingRadiologyClinic",INSTRUCTIONS:"imagingInstructions",ANATOMICA_MATCH:"imagingAnatomicalMatchPriority"},SIM_NAMES={POSITION_SETUP:"treatmentPositionSetup",EXTENT_DEFINED:"treatmentExtentDefined",EXTRA_CT_MARKERS:"treatmentExtraCTMarkers",ADDITIONAL_SIM_INFO:"treatmentAdditionalSimInfo",BOLUS:"treatmentBolus",BOLUS_LOCATION:"treatmentBolusLocation",BOLUS_LOCATION_TYPE:"treatmentBolusLocationType",BOLUS_THICKNESS:"treatmentBolusThickness",BOLUS_THICKNESS_CUSTOM:"treatmentBolusThicknessCustom",BOLUS_FREQUENCY:"treatmentBolusFrequency",IS_3D_BOLUS:"treatmentIs3dBolus",TONGUE_POSITION:"treatmentTonguePosition",CT_SIMULATION:"treatmentCTSimulation",CONTRAST_REQUIRED:"treatmentContrastRequired",CONTRAST_TYPE:"treatmentContrastType",BLOOD_TEST_QUESTION:"treatmentBloodTestQuestion",EGFR_QUESTION:"treatmentEgfrQuestion"},ROPatientTreatmentSimulationPage=()=>{var Q0,Z0,S0,J0,_0,_c,e1;const et=useRouteMatch(),{id:tt,careplanId:rt,siteGroupIdx:nt}=et.params,lt=nt?parseInt(nt):0;useTheme$1();const[ut,dt]=reactExports.useState(!1),{data:pt}=useQuery(GET_CAREPLAN_STATUS,{variables:{id:rt}}),ht=((Q0=pt==null?void 0:pt.careplan)==null?void 0:Q0.careplanStatus)==="CPOT",mt=useHistory(),{setError:xt}=useErrorModalContext(),[Mt]=useMutation(TRIGGER_CPOT,{awaitRefetchQueries:!0,variables:{id:rt,careplanStatus:"Prescription",cpotTriggered:!1},refetchQueries:[{query:LOAD_SITEGROUP_INFO,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}}],onCompleted:()=>{mt.push(`/radiation/patient/${tt}/careplan/${rt}/${CAREPLAN_PAGES.SUBMISSION}`)}}),[vt]=useMutation(SUBMIT_PRESCRIPTION,{refetchQueries:[{query:GET_CAREPLAN,variables:{id:rt}}]}),[Ot,At]=reactExports.useState(DEFAULT_OPTION),[Rt,zt]=reactExports.useState(DEFAULT_OPTION),[Tt,Ct]=reactExports.useState(DEFAULT_OPTION),[It,Dt]=reactExports.useState(DEFAULT_OPTION),[kt,qt]=reactExports.useState(DEFAULT_OPTION),[Nt,Yt]=reactExports.useState(DEFAULT_OPTION),[Kt,Jt]=reactExports.useState([]),[Qt,Bt]=reactExports.useState([]),[Ft,$t]=reactExports.useState([]),[jt,Wt]=reactExports.useState([]),[Ut,Vt]=reactExports.useState([]),[Ht,Gt]=reactExports.useState([]),[Zt,Xt]=reactExports.useState([]),[er,nr]=reactExports.useState([]),[or,rr]=reactExports.useState([]),[cr,ir]=reactExports.useState([]),[dr,gr]=reactExports.useState([]),[br,ar]=reactExports.useState(!1),[ur,xr]=reactExports.useState(!1),[Mr,Ar]=reactExports.useState(!1),[Ir,Rr]=reactExports.useState(!1),[,wr]=reactExports.useState(),qr=reactExports.useCallback(()=>wr({}),[]),{data:Hr,error:kr}=useQuery(GET_DIAGNOSIS_FROM_CAREPLAN,{variables:{careplanId:rt},onCompleted:Pn=>{logMissingDiagnosisCode(logger$l,Pn.careplan,"Simulation")}}),[$r,yr]=reactExports.useState({bolus:DEFAULT_OPTION,bolusThickness:DEFAULT_OPTION,bolusFrequency:DEFAULT_OPTION,is3dBolus:DEFAULT_OPTION,bolusLocationType:DEFAULT_OPTION}),Or=((_0=(J0=(S0=(Z0=Hr==null?void 0:Hr.careplan)==null?void 0:Z0.diagnosis)==null?void 0:S0.diagnosisCode)==null?void 0:J0.tumourStream)==null?void 0:_0.name)??null;reactExports.useEffect(()=>{pressedContinue$2=!1},[]);const Dr=()=>{pressedContinue$2=!1,ScrollToTop(document)};reactExports.useEffect(()=>{const Pn=document.getElementsByClassName("icon-form-error");!Pn||!Pn.length||(Pn[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),Pn[0].focus({preventScroll:!0}))});const Fr=Pn=>({imagingId:Pn.id,imagingRequirement:Pn.imagingRequirement,imagingScanExamination:Pn.scanExamination,imagingBodyRegion:Pn.bodyRegion,imagingContrastRequired:Pn.contrastRequired,imagingRadiologyClinic:Pn.radiologyClinic,imagingAnatomicalMatchPriority:Pn.anatomicalMatchPriority,imagingInstructions:Pn.instructions,showImageOptions:!!Pn.imagingRequirement}),Yr=Pn=>{if("imagingList"in Pn&&Pn.imagingList){const mo=Pn.imagingList;if(mo.length!==0)return[...mo].sort((qo,Bo)=>qo.id-Bo.id).map(qo=>Fr(qo))}return[DEFAULT_IMAGING]},Gr=(Pn,mo,ps)=>{let qo="";if(typeof ps=="string"?qo=ps:qo=ps?ps.value:"",Pn.length>0){const Bo=Pn.find(ga=>ga.id===mo);return Bo?Bo.value:qo}return qo},Jr=(Pn,mo,ps,qo,Bo=!1)=>{const ga=ps.filter(Boolean).findIndex(t0=>t0.id===mo);let bs=[];switch(ga===-1?bs.push({id:mo,value:qo}):Bo?(delete ps[ga],bs=ps.filter(Boolean)):bs[ga]?bs[ga].value=qo:bs.push({id:mo,value:qo}),Pn){case IMAGING_NAMES.RADIOLOGY_CLINIC:$t(bs);break;case IMAGING_NAMES.INSTRUCTIONS:Vt(bs);break;case IMAGING_NAMES.ANATOMICA_MATCH:Wt(bs);break;case SIM_NAMES.POSITION_SETUP:Jt(bs);break;case SIM_NAMES.EXTENT_DEFINED:Bt(bs);break;case SIM_NAMES.EXTRA_CT_MARKERS:Gt(bs);break;case SIM_NAMES.ADDITIONAL_SIM_INFO:Xt(bs);break;case SIM_NAMES.BOLUS_LOCATION:nr(bs);break;case SIM_NAMES.BOLUS_THICKNESS_CUSTOM:rr(bs);break;case SIM_NAMES.TONGUE_POSITION:ir(bs);break}},{loading:jr}=useQuery(LOAD_CAREPLAN_LIST_DATA,{fetchPolicy:"cache-first",variables:{listCategory:[LIST_OPTIONS$3.PATIENT_POSITION,LIST_OPTIONS$3.BLADDER,LIST_OPTIONS$3.EXTENT_OF_CT,LIST_OPTIONS$3.STOMACH,LIST_OPTIONS$3.BOLUS_THICKNESS,LIST_OPTIONS$3.BOLUS_FREQUENCY,LIST_OPTIONS$3.IS_3D_BOLUS,LIST_OPTIONS$3.BOLUS_LOCATION_TYPE,LIST_OPTIONS$3.SCAN_EXAMINATION,LIST_OPTIONS$3.BODY_REGION,LIST_OPTIONS$3.IMMOBILISATION],patientId:tt},onCompleted:Pn=>{At(filterListdata(Pn,LIST_OPTIONS$3.PATIENT_POSITION)),zt(filterListdata(Pn,LIST_OPTIONS$3.EXTENT_OF_CT)),Ct(filterListdata(Pn,LIST_OPTIONS$3.BLADDER)),Yt(filterListdata(Pn,LIST_OPTIONS$3.STOMACH)),Dt(filterListdata(Pn,LIST_OPTIONS$3.SCAN_EXAMINATION)),qt(filterListdata(Pn,LIST_OPTIONS$3.BODY_REGION)),yr({bolus:BOOLEAN_OPTIONS$2,bolusThickness:filterListdata(Pn,LIST_OPTIONS$3.BOLUS_THICKNESS),bolusFrequency:filterListdata(Pn,LIST_OPTIONS$3.BOLUS_FREQUENCY),is3dBolus:filterListdata(Pn,LIST_OPTIONS$3.IS_3D_BOLUS),bolusLocationType:filterListdata(Pn,LIST_OPTIONS$3.BOLUS_LOCATION_TYPE)}),gr(filterListdata(Pn,LIST_OPTIONS$3.IMMOBILISATION))}}),{loading:Zr,error:Xr,data:cn}=useQuery(LOAD_SITEGROUP_INFO,{variables:{careplanId:rt},fetchPolicy:"network-only"}),{data:Qr,error:rn}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:rt}}),_r=[{query:LOAD_SITEGROUP_INFO,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}}],[ln]=useMutation(RESET_CONDITIONAL_FIELDS,{awaitRefetchQueries:!0,refetchQueries:_r}),[vn]=useMutation(RESET_SIMULATION,{refetchQueries:()=>_r,awaitRefetchQueries:!0,onCompleted:Pn=>{if(Pn!=null&&Pn.resetSimulation){const mo=Pn.resetSimulation.siteGroup;Jr(SIM_NAMES.EXTENT_DEFINED,mo.id,Qt,mo.extentDefined?mo.extentDefined.value:""),Jr(SIM_NAMES.POSITION_SETUP,mo.id,Kt,mo.positionSetup?mo.positionSetup.value:""),Jr(SIM_NAMES.BOLUS_LOCATION,mo.id,er,mo.bolusLocation?mo.bolusLocation.value:"")}}}),[Cr,{loading:gn}]=useMutation(UPDATE_SIMULATION,{refetchQueries:[{query:GET_CAREPLAN,variables:{id:rt}}]}),[xn]=useMutation(CREATE_IMAGING,{awaitRefetchQueries:!0,refetchQueries:_r}),[Vr]=useMutation(UPDATE_IMAGING,{awaitRefetchQueries:!0,refetchQueries:_r}),[fn]=useMutation(DELETE_IMAGING,{awaitRefetchQueries:!0,refetchQueries:_r}),pn=()=>{const Pn=lt===0;if(Dr(),Pn)mt.push(`/radiation/patient/${tt}/careplan/${rt}/${CAREPLAN_PAGES.SITESETUP}`);else{const mo=lt-1;mo===0?mt.push(`/radiation/patient/${tt}/careplan/${rt}/${CAREPLAN_PAGES.SIMULATION}`):mt.push(`/radiation/patient/${tt}/careplan/${rt}/${CAREPLAN_PAGES.SIMULATION}/${mo}`)}},{data:qn}=useQuery(USER_QUERY$1),Bn=(_c=qn==null?void 0:qn.user)==null?void 0:_c.isShowcaseUser,Kr=CurrentAppConfig.DisplayButton.displaySimButton&&!ht&&Qr&&![CAREPLAN_STATUS$2.planAim,CAREPLAN_STATUS$2.prescriptionDirective,CAREPLAN_STATUS$2.prescription].includes(Qr.careplan.careplanStatus),Tr=cn?cn.simulationSiteGroups:[],Pr=Tr?Tr.length-1:0,an=lt===Pr,nn=Qr&&Qr.careplan.careplanStatus===CAREPLAN_STATUS$2.simulation,Mn=Bn||!an,An=!ht&&Kr?{additionLeftText:Qr.careplan.careplanStatus===CAREPLAN_STATUS$2.draft?"Request simulation only & exit":"Re-request simulation only & exit",onAdditionLeft:()=>{pressedContinue$2=!0,qr(),isPageValid(O0,kn)&&ar(!0)},additionLeftDisabled:Mn}:{},Vn=()=>(window.location.replace(`/radiation/patient/${tt}/careplan/${rt}/${CAREPLAN_PAGES.SIMULATION}`),cn.simulationSiteGroups[0]),kn=(Pn=>{if(Pn&&cn.simulationSiteGroups){if(cn.simulationSiteGroups[lt])return cn.simulationSiteGroups[lt];String(nt)!=="last"&&cn.simulationSiteGroups[0]&&Vn()}return[]})(cn),Qn=!kn.templateId,{data:Gn,error:Un}=useQuery(GET_DEFAULT_VALUES,{skip:!kn||!kn.id,variables:{siteGroupId:kn.id,fieldNames:[DEFAULT_FIELDS.POSITION_SETUP,DEFAULT_FIELDS.EXTENT_DEFINED]}});reactExports.useEffect(()=>{if(Xr||rn||Un||kr)return xt()},[Xr,rn,Un,kr]);const jn=Yr(kn),In=Pn=>{if(Gn){const mo=Gn.defaultSiteGroupValues.find(ps=>ps.fieldName===Pn);return mo?mo.value:""}return""},{sites:Kn,id:Wn,ctSimulation:ao,contrastRequired:_i,contrastType:ho,bloodTestLast3Months:So,egfrGt30ml:ko,roRequired:us,patientPosition:Jo,positionSetup:go,extentOfCt:$o,extentDefined:vo,immobilisation:Go,mask:Wo,stomach:cs,abdomenCompression:rs,bladder:xs,bowelPrep:Es,goldSeeds:Os,vaginalTampon:Ds,spacerGel:gs,tonguePosition:na,mouthpiece:Xs,gating:Zl,fourDct:Jl,dibh:Ks,breathHold:Al,extraCtMarkers:Ol,additionalSimInfo:On}=kn,Sn=[{parent:"dibh",expansionCondition:Pn=>Pn===null||Qn&&!(xa.includes("dibh")&&Ir)?!1:!!(Pn!=null&&Pn.isShown),children:["dibh"]},{parent:"breathHold",expansionCondition:Pn=>Pn===null||Qn&&!(xa.includes("breathHold")&&Ir)?!1:!!(Pn!=null&&Pn.isShown),children:["breathHold"]},{parent:"ctSimulation",expansionValue:"true",expansionCondition:()=>_i==null?void 0:_i.isShown,children:["contrastRequired"]},{parent:"contrastRequired",expansionValue:"true",expansionCondition:()=>(_i==null?void 0:_i.isShown)&&CurrentAppConfig.SimulationPage.ContrastRequiredChildFields===!0,children:["contrastType"]},{parent:"contrastType",expansionValue:fieldValues.iv,children:["bloodTestLast3Months"]},{parent:"bloodTestLast3Months",expansionValue:fieldValues.yes,children:["egfrGt30ml"]}],po=reactExports.useRef(!1);reactExports.useEffect(()=>{po.current=gn},[gn]);const _o=async()=>{for(;po.current;)await new Promise(mo=>setTimeout(mo,100));if(pressedContinue$2=!0,qr(),!!isPageValid(O0,kn))if(Dr(),an)mt.push(`/radiation/patient/${tt}/careplan/${rt}/${CAREPLAN_PAGES.PRESCRIPTION}`);else{const mo=lt+1;mt.push(`/radiation/patient/${tt}/careplan/${rt}/${CAREPLAN_PAGES.SIMULATION}/${mo}`)}},Co=Pn=>{Pn&&Pn.imagingList.length!==0&&Pn.imagingList.map(mo=>fn({variables:{imagingId:mo.id}}))},ls=Kn?Kn.map(Pn=>getTreatmentSiteHeader(Pn)).join(", "):"",qs=()=>{Rr(!0)},Bs=()=>{ln({variables:{siteGroupId:parseInt(Wn),fieldNames:mapConditionalFields(CONDITIONAL_FIELD_MAP,xa)}}),Rr(!1)},Ns=getManualSiteTumourStreamMap(Qr==null?void 0:Qr.careplan.featureVersion)[Or],Rl=getBolusValidationStructure$1(Qr==null?void 0:Qr.careplan.featureVersion),O0=[...Sn,...Rl],R0={immobilisation:jsxRuntimeExports.jsx(ChipMultiSelect,{id:"treatmentImmobilisation",fieldLabel:"Immobilisation",placeholder:"Please select",options:dr==null?void 0:dr.map(Pn=>Pn.value),selectedValues:(Go==null?void 0:Go.value)!==null?Go==null?void 0:Go.value:[],required:!1,handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,immobilisation:Pn||""}})}}),mask:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentMask",fieldlabel:"Mask",options:BOOLEAN_OPTIONS$2,value:setYesNo(Wo?Wo.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,mask:Pn==="yes"}})}}),stomach:jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatmentStomach",fieldlabel:"Stomach",options:Nt,value:getOptionByValue(Nt.map(Pn=>({label:Pn.label,value:Pn.value})),cs?cs.value:""),onChange:Pn=>{const mo=typeof Pn=="string"?Pn:Pn==null?void 0:Pn.value;Cr({variables:{siteGroupId:Wn,stomach:mo||""}})}}),abdomenCompression:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentAbdomenCompression",fieldlabel:"Abdomen Compression",options:BOOLEAN_OPTIONS$2,value:setYesNo(rs?rs.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,abdomenCompression:Pn==="yes"}})}}),bladder:jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatmentBladder",fieldlabel:"Bladder",options:Tt,value:getOptionByValue(Tt.map(Pn=>({label:Pn.label,value:Pn.value})),xs?xs.value:""),onChange:Pn=>{const mo=typeof Pn=="string"?Pn:Pn==null?void 0:Pn.value;Cr({variables:{siteGroupId:Wn,bladder:mo||""}})}}),bowelPrep:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentBowelPrep",fieldlabel:"Bowel Prep",options:BOOLEAN_OPTIONS$2,value:setYesNo(Es?Es.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,bowelPrep:Pn==="yes"}})}}),goldSeeds:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentGoldSeeds",fieldlabel:CurrentAppConfig.QuestionLabel.GoldSeeds,options:BOOLEAN_OPTIONS$2,value:setYesNo(Os?Os.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,goldSeeds:Pn==="yes"}})}}),vaginalTampon:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentVaginalTampon",fieldlabel:"Vaginal Tampon",options:BOOLEAN_OPTIONS$2,value:setYesNo(Ds?Ds.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,vaginalTampon:Pn==="yes"}})}}),spacerGel:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentSpacerGel",fieldlabel:"Spacer Gel",options:BOOLEAN_OPTIONS$2,value:setYesNo(gs?gs.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,spacerGel:Pn==="yes"}})},warning:CurrentAppConfig.SimulationPage.SpacerGelWarning&&(gs==null?void 0:gs.value)==="true",helperText:"MR Planning scan required"}),tonguePosition:jsxRuntimeExports.jsx(ROTextField,{id:SIM_NAMES.TONGUE_POSITION,fieldlabel:"Tongue Position",value:Gr(cr,Wn,na),onChange:Pn=>{Jr(SIM_NAMES.TONGUE_POSITION,Wn,cr,Pn.target.value)},onBlur:()=>{const Pn=cr.find(mo=>mo.id===Wn);if(Pn){const mo=Pn?Pn.value:"";Cr({variables:{siteGroupId:Wn,tonguePosition:mo}})}}}),mouthpiece:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentMouthpiece",fieldlabel:"Mouthpiece",options:BOOLEAN_OPTIONS$2,value:setYesNo(Xs?Xs.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,mouthpiece:Pn==="yes"}})}}),gating:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentGating",fieldlabel:"Gating",options:BOOLEAN_OPTIONS$2,value:setYesNo(Zl?Zl.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,gating:Pn==="yes"}})}}),fourDct:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatment4DCT",fieldlabel:"4DCT",options:BOOLEAN_OPTIONS$2,value:setYesNo(Jl?Jl.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,fourDct:Pn==="yes"}})}}),dibh:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentDIBH",fieldlabel:"DIBH",options:BOOLEAN_OPTIONS$2,value:setYesNo(Ks?Ks.value:""),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,dibh:Pn==="yes"}})},required:!0,error:!isFieldValid$2(Ks)}),breathHold:jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentBreathHold",fieldlabel:"Breath Hold",options:BREADTH_HOLD_OPTIONS,value:Al?Al.value:"",handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,breathHold:Pn}})},required:!Qn,error:!isFieldValid$2(Al)}),bolus:jsxRuntimeExports.jsx(BolusForm$1,{siteGroup:kn,listValuesLookup:Gr,version:(e1=Qr==null?void 0:Qr.careplan)==null?void 0:e1.featureVersion,options:$r,updateSimulation:Cr,fieldsId:Wn,SIM_NAMES,bolusLocationValues:er,setTextFields:Jr,isFieldValid:isFieldValid$2,bolusThicknessCustomValues:or})},e0=Object.keys(R0),xa=[],Bl=[];Object.keys(R0).forEach(Pn=>{Ns&&(Ns.includes(Pn)?Bl.push(Pn):xa.push(Pn))});const K0=xa.filter(Pn=>kn[Pn]?kn[Pn].value:!1).length>0,p0=Pn=>Pn.map(mo=>isFieldVisible(kn[mo])?jsxRuntimeExports.jsx(reactExports.Fragment,{children:R0[mo]},mo):null);if(Zr||jr)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Simulation",subtitle:"Please wait while we set things up for you"});const g1=(kn==null?void 0:kn.patientPosition)&&showChildField.includes(kn.patientPosition.value),j0=(kn==null?void 0:kn.extentOfCt)&&showChildField.includes(kn.extentOfCt.value);return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsx(CareplanBanners,{data:Qr,refetchQueriesList:[{query:LOAD_SITEGROUP_INFO,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}}]}),jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsx("div",{className:"page-header",children:jsxRuntimeExports.jsxs(Typography,{variant:"h5","data-test-id":"simulation-header",children:["Simulation: ",ls]})}),jsxRuntimeExports.jsxs(Box,{component:"form",id:"simulationForm",noValidate:!0,children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentCtSimulation",fieldlabel:region$4&&[String(Region.AU),String(Region.US)].includes(region$4)?"CT Simulation":"CT Planning scan required",options:BOOLEAN_OPTIONS$2,value:setYesNo(ao?ao.value:""),handleChange:Pn=>{const mo=Pn==="yes";let ps={ctSimulation:mo};mo||(ps={...ps,extentOfCt:"",extentDefined:"",contrastRequired:null,contrastType:"",bloodTestLast3Months:"",egfrGt30ml:""}),Cr({variables:{siteGroupId:Wn,...ps}})}}),(_i==null?void 0:_i.isShown)&&(ao==null?void 0:ao.value)!=="false"&&jsxRuntimeExports.jsx(ROToggleButtons,{id:SIM_NAMES.CONTRAST_REQUIRED,fieldlabel:"Contrast Required",options:BOOLEAN_OPTIONS$2,value:setYesNo(_i.value),warning:isFieldValid$2(_i)&&_i.value==="true",helperText:isFieldValid$2(_i)?"Please check for contrast allergy":void 0,handleChange:Pn=>{Pn!==fieldValues.yes?Cr({variables:{siteGroupId:Wn,contrastRequired:!1,contrastType:"",bloodTestLast3Months:"",egfrGt30ml:""}}):Cr({variables:{siteGroupId:Wn,contrastRequired:!0}})},required:!0,error:!isFieldValid$2(_i)}),CurrentAppConfig.SimulationPage.ContrastRequiredChildFields&&setYesNo(_i==null?void 0:_i.value)===fieldValues.yes&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentContrastType",fieldlabel:"Type of Contrast",options:CONTRAST_TYPES,value:ho==null?void 0:ho.value,handleChange:Pn=>{Pn!==fieldValues.iv?Cr({variables:{siteGroupId:Wn,contrastType:Pn,bloodTestLast3Months:"",egfrGt30ml:""}}):Cr({variables:{siteGroupId:Wn,contrastType:Pn}})},required:!0,error:!isFieldValid$2(ho)}),(ho==null?void 0:ho.value)===fieldValues.iv&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentBloodTestQuestion",fieldlabel:"Blood Test Within Last 3 Months",options:BLOOD_TEST_LAST_3_MONTHS,value:So==null?void 0:So.value,handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,bloodTestLast3Months:Pn,...Pn===fieldValues.bookingRequired&&{egfrGt30ml:""}}})},required:!0,error:!isFieldValid$2(So)}),(So==null?void 0:So.value)===fieldValues.yes&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentEgfrQuestion",fieldlabel:"Is eGFR > 30ml/min?",options:EGFR_GT_30,value:ko==null?void 0:ko.value,warning:isFieldValid$2(ko)&&(ko==null?void 0:ko.value)===fieldValues.no,helperText:isFieldValid$2(ko)?"High risk of contrast induced acute kidney injury in patients with eGFR <30mL/min. By selecting 'No' you are consenting for IV contrast to proceed, otherwise select 'No' to Contrast Required.":void 0,handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,egfrGt30ml:Pn}})},required:!0,error:!isFieldValid$2(ko)}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentRORequired",fieldlabel:CurrentAppConfig.QuestionLabel.RoRequired,options:BOOLEAN_OPTIONS$2,value:setYesNo(us?us.value:CurrentAppConfig.DefaultValue.treatmentRORequired),handleChange:Pn=>{Cr({variables:{siteGroupId:Wn,roRequired:Pn==="yes"}})},required:!0,error:!isFieldValid$2(us)}),ao&&ao.value!=="false"&&jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatmentExtentOfCt",fieldlabel:"Extent of CT",options:Rt,value:getOptionByValue(Rt.map(Pn=>({label:Pn.label,value:Pn.value})),$o?$o.value:""),onChange:Pn=>{const mo=typeof Pn=="string"?Pn:Pn==null?void 0:Pn.value,ps=readOnlyChildField.includes(mo)?In(DEFAULT_FIELDS.EXTENT_DEFINED):"";Jr(SIM_NAMES.EXTENT_DEFINED,Wn,Qt,ps),Cr({variables:{siteGroupId:Wn,extentOfCt:mo,extentDefined:ps}})}}),(ao==null?void 0:ao.value)!=="false"&&j0&&jsxRuntimeExports.jsx(ROTextField,{id:SIM_NAMES.EXTENT_DEFINED,fieldlabel:"Extent Defined",value:Gr(Qt,Wn,vo?vo.value:""),onChange:Pn=>{Jr(SIM_NAMES.EXTENT_DEFINED,Wn,Qt,Pn.target.value)},onBlur:()=>{const Pn=Qt.find(mo=>mo.id===Wn);Pn&&Cr({variables:{siteGroupId:Wn,extentDefined:Pn.value}})},multiline:!0,maxRows:4,required:!0,disabled:readOnlyChildField.includes($o==null?void 0:$o.value)&&CurrentAppConfig.SimulationPage.disableExtentDefined}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatmentPatientPosition",fieldlabel:"Patient Position",options:Ot,value:getOptionByValue(kt.map(Pn=>({label:Pn.label,value:Pn.value})),Jo?Jo.value:""),onChange:Pn=>{const mo=typeof Pn=="string"?Pn:Pn==null?void 0:Pn.value,ps=readOnlyChildField.includes(mo)?In(DEFAULT_FIELDS.POSITION_SETUP):"";Jr(SIM_NAMES.POSITION_SETUP,Wn,Kt,ps),Cr({variables:{siteGroupId:Wn,patientPosition:mo,positionSetup:ps}})}}),g1&&jsxRuntimeExports.jsx(ROTextField,{id:SIM_NAMES.POSITION_SETUP,fieldlabel:"Position Setup",value:Gr(Kt,Wn,go),onChange:Pn=>{Jr(SIM_NAMES.POSITION_SETUP,Wn,Kt,Pn.target.value)},onBlur:()=>{const Pn=Kt.find(mo=>mo.id===Wn);Pn&&Cr({variables:{siteGroupId:Wn,positionSetup:Pn.value}})},multiline:!0,maxRows:4,disabled:readOnlyChildField.includes(Jo==null?void 0:Jo.value)&&CurrentAppConfig.SimulationPage.disablePositionSetup}),p0(Qn?Bl:e0),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"24px 0",width:"700px"}}),jsxRuntimeExports.jsx(ROTextField,{id:SIM_NAMES.EXTRA_CT_MARKERS,fieldlabel:"Additional Markers",value:Gr(Ht,Wn,Ol),onChange:Pn=>{Jr(SIM_NAMES.EXTRA_CT_MARKERS,Wn,Ht,Pn.target.value)},onBlur:()=>{const Pn=Ht.find(mo=>mo.id===Wn);Pn&&Cr({variables:{siteGroupId:Wn,extraCtMarkers:Pn.value}})}}),jsxRuntimeExports.jsx(ROTextField,{id:SIM_NAMES.ADDITIONAL_SIM_INFO,fieldlabel:"Additional Sim Info",value:Gr(Zt,Wn,On?On.value:""),onChange:Pn=>{Jr(SIM_NAMES.ADDITIONAL_SIM_INFO,Wn,Zt,Pn.target.value)},onBlur:()=>{const Pn=Zt.find(mo=>mo.id===Wn);Pn&&Cr({variables:{siteGroupId:Wn,additionalSimInfo:Pn.value}})},multiline:!0,maxRows:4}),Qn&&xa.length?jsxRuntimeExports.jsx(ManualSiteAccordion,{title:{open:"Clear & close conditional fields",closed:"See more conditional fields"},onOpen:qs,onClose:Bs,open:K0,children:p0(xa)}):null]}),region$4!==Region.UK&&jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"24px 0"}}),region$4===Region.UK&&jsxRuntimeExports.jsx(SectionTitle$3,{children:"ADDITIONAL IMAGING TO AID PLANNING"}),jsxRuntimeExports.jsx("div",{className:"imaging-list-container",children:jn.map(({imagingId:Pn,imagingRequirement:mo,showImageOptions:ps,imagingInstructions:qo,imagingScanExamination:Bo,imagingBodyRegion:ga,imagingContrastRequired:bs,imagingRadiologyClinic:t0,imagingAnatomicalMatchPriority:t1},Ws)=>jsxRuntimeExports.jsxs("div",{className:"imaging-container",id:Ws===jn.length-1?"lastImaging":"",children:[jsxRuntimeExports.jsxs(Stack$5,{width:"700px",justifyContent:"space-between",direction:"row",alignItems:"center",paddingBottom:1,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:`${CurrentAppConfig.SimulationPage.imagingCountTitle} #${Ws+1}`}),Pn&&jsxRuntimeExports.jsx(IconButton,{sx:{marginLeft:"10px"},onClick:()=>{fn({variables:{imagingId:Pn}})},children:jsxRuntimeExports.jsx(RemoveCircleOutline,{})})]}),region$4===Region.UK?jsxRuntimeExports.jsx(ROToggleButtons,{id:"imagingRequirement",fieldlabel:"Retrieve Imaging",options:BOOLEAN_OPTIONS$2,value:setYesNo(mo?"true":"false"),handleChange:Po=>{const ws=Po==="yes"?"retrieveImaging":"";Pn?Vr({variables:{imagingId:Pn,imagingRequirement:ws}}):xn({variables:{siteGroupId:parseInt(Wn),imagingRequirement:ws}})}}):jsxRuntimeExports.jsx(ROToggleButtons,{id:"imagingRequirement",fieldlabel:"Imaging Requirement",options:IMAGING_REQUIREMENT_OPTIONS,value:mo?mo.toString():"",handleChange:Po=>{Pn?Vr({variables:{imagingId:Pn,imagingRequirement:Po}}):xn({variables:{siteGroupId:parseInt(Wn),imagingRequirement:Po}})}}),ps&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ROAutocomplete,{id:`imagingScanExamination-${Ws}`,fieldlabel:"Scan Examination",options:It,value:getOptionByValue(It.map(Po=>({label:Po.label,value:Po.value})),Bo||""),onChange:Po=>{const ws=typeof Po=="string"?Po:Po==null?void 0:Po.value;Vr({variables:{imagingId:Pn,scanExamination:ws||""}})}}),jsxRuntimeExports.jsx(ROAutocomplete,{id:`imagingBodyRegion-${Ws}`,fieldlabel:"Body Region",options:kt,value:getOptionByValue(kt.map(Po=>({label:Po.label,value:Po.value})),ga||""),onChange:Po=>{const ws=typeof Po=="string"?Po:Po==null?void 0:Po.value;Vr({variables:{imagingId:Pn,bodyRegion:ws||""}})}}),mo==="bookImaging"&&jsxRuntimeExports.jsx(ROToggleButtons,{id:`imagingContrastRequired-${Ws}`,fieldlabel:"Contrast Required",options:BOOLEAN_OPTIONS$2,value:setYesNo(String(bs)),handleChange:Po=>{Vr({variables:{imagingId:Pn,contrastRequired:Po==="yes"}})}}),jsxRuntimeExports.jsx(ROTextField,{id:`${IMAGING_NAMES.RADIOLOGY_CLINIC}-${Ws}`,fieldlabel:region$4===Region.UK?"Hospital/Radiology provider":"Radiology Clinic",value:Gr(Ft,Pn,t0),placeholder:region$4===Region.UK?"Please enter Hospital/Radiology provider":"Please enter Radiology Clinic...",onChange:Po=>{Jr(IMAGING_NAMES.RADIOLOGY_CLINIC,Pn,Ft,Po.target.value)},onBlur:()=>{const Po=Ft.find(ws=>ws.id===Pn);Po&&Vr({variables:{imagingId:Pn,radiologyClinic:Po.value}})}}),jsxRuntimeExports.jsx(ROTextField,{id:`${IMAGING_NAMES.ANATOMICA_MATCH}-${Ws}`,fieldlabel:"Anatomical Match Priority",value:Gr(jt,Pn,t1),placeholder:"Please enter matching criteria...",onChange:Po=>{Jr(IMAGING_NAMES.ANATOMICA_MATCH,Pn,jt,Po.target.value)},onBlur:()=>{const Po=jt.find(ws=>ws.id===Pn);Po&&Vr({variables:{imagingId:Pn,anatomicalMatchPriority:Po.value}})}}),jsxRuntimeExports.jsx(ROTextField,{id:`${IMAGING_NAMES.INSTRUCTIONS}-${Ws}`,fieldlabel:"Instructions",value:Gr(Ut,Pn,qo),onChange:Po=>{Jr(IMAGING_NAMES.INSTRUCTIONS,Pn,Ut,Po.target.value)},onBlur:()=>{const Po=Ut.find(ws=>ws.id===Pn);Po&&Vr({variables:{imagingId:Pn,instructions:Po.value}})},multiline:!0,maxRows:4})]}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"24px 0",width:"700px"}})]},`imaging_${lt}_${Ws}`))}),jsxRuntimeExports.jsx(Button,{variant:"outlined",startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),onClick:()=>{xn({variables:{siteGroupId:parseInt(Wn)}})},children:CurrentAppConfig.SimulationPage.imagingText})]}),jsxRuntimeExports.jsx(StandardDialog,{open:br,onClose:ar,title:`${nn?"Re-request":"Request"} Simulation & Exit`,submitText:nn?"Re-request simulation":"Request simulation",onSubmit:()=>{xr(!ur),Ar(!0),vt({variables:{id:rt,status:"Simulation"}}).then(()=>{Ar(!1),mt.push(`/radiation/patient/${tt}/summary`)},Pn=>{logger$l.error(Pn)})},children:jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"Please ensure simulation details are correct for ALL treatment groups before proceeding. You will be redirected back to the patient summary page after submission."})}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onReset:()=>{pressedContinue$2=!1,ht?dt(!0):(Co(kn),vn({variables:{careplanId:rt,siteGroupId:parseInt(Wn)}}))},resetText:ht?"Cancel Change":"Reset to templated values",...An,onBack:()=>{pn()},onNext:()=>{_o()},nextDisabled:Zr,backDisabled:Zr||ht&&lt===0,additionalLeftTooltip:Mn&&Kr?"Request simulation is available on the last treatment group. Please ensure details are correct before proceeding.":""})]}),jsxRuntimeExports.jsx(ROPatientCarePathSidePanel,{}),jsxRuntimeExports.jsx(ModalCpotCancel,{isOpen:ut,submitFunction:()=>Mt(),dismissFunction:()=>dt(!1)})]})})},calculateRevisedDose=(et,tt,rt)=>tt==null?void 0:tt.map(nt=>decimalFormatter$1(Number(nt)*(et/rt))),calculateRemainingFractions=(et,tt)=>tt-et+1,calculateRemainingDose=(et,tt,rt)=>tt==null?void 0:tt.map(nt=>decimalFormatter$1(Number(nt)-Number(nt)*((et-1)/rt))),calculateTotalDoses=(et,tt,rt,nt)=>et?tt.map((ut,dt)=>{const pt=rt[dt];return decimalFormatter$1(Number(ut)*((et-1)/nt)+Number(pt))}):tt,calculateTotalFractions=(et,tt)=>et?et+tt-1:tt,FractionDoseWarningModal=({isOpen:et,handleClose:tt,handleContinue:rt})=>{const{doseUnit:nt}=reactExports.useContext(TenantContext),lt=nt===DoseUnit.CGY?"500":"5.0";return jsxRuntimeExports.jsx(StandardDialog,{id:"outcome-modal",open:et,title:"Dose per fraction",titleIcon:jsxRuntimeExports.jsx(WarningOutlinedIcon,{color:"warning"}),onSubmit:rt,onClose:tt,closeText:"Adjust",submitText:"Confirm",children:jsxRuntimeExports.jsx(Typography,{children:`The daily dose per fraction is >${lt}${nt}. Please confirm or adjust the value before continuing.`})})},validationV1=[{parent:"bolus",expansionValue:"true",children:["bolusLocation","bolusThickness","bolusFrequency"]}],PrescriptionBolusFormV1=({options:et,site:tt,updatePrescription:rt,updateData:nt,getBolusValue:lt,cpotReadOnly:ut,state:dt,setState:pt,isFieldValid:ht})=>{var Mt;useTheme$1();const[mt]=useMutation(DUPLICATE_SIMULATION_BOLUS_TO_PRESCRIPTION,{awaitRefetchQueries:!0,onCompleted:vt=>{var At,Rt,zt;const Ot=vt.duplicateSimulationBolusToPrescription;pt({...dt,bolus:Ot.bolus,bolusLocation:((At=Ot.bolusLocation)==null?void 0:At.value)||"",bolusThickness:((Rt=Ot.bolusThickness)==null?void 0:Rt.value)||"",bolusThicknessCustom:((zt=Ot.bolusThicknessCustom)==null?void 0:zt.value)||""})}}),xt=()=>{mt({variables:{id:tt.id}})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentBolus",fieldlabel:"Bolus",options:et.bolus,value:lt(),disabled:ut,handleChange:vt=>{const Ot=vt==="yes";pt({...dt,bolus:{value:Ot.toString(),isShown:!0},bolusLocationType:"",bolusLocation:"",bolusThickness:"",bolusThicknessCustom:"",bolusFrequency:"",is3dBolus:""}),rt({variables:{siteId:tt.id,bolus:Ot,bolusLocationType:"",bolusLocation:"",bolusThickness:"",bolusThicknessCustom:"",bolusFrequency:"",is3dBolus:""}})},children:!ut&&jsxRuntimeExports.jsxs("div",{className:"bolus-button",onClick:()=>{ut||xt()},children:[jsxRuntimeExports.jsx(ContentCopyIcon,{color:"primary"}),jsxRuntimeExports.jsx("div",{className:"btn-label",id:"copyBolus",children:"Copy bolus from simulation"})]})}),((Mt=dt==null?void 0:dt.bolus)==null?void 0:Mt.value)==="true"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROTextField,{id:"treatmentBolusLocation",fieldlabel:"Bolus Location",value:dt.bolusLocation,onChange:vt=>{pt({...dt,bolusLocation:vt.target.value})},onBlur:()=>nt(),error:!ht(dt.bolusLocation),disabled:ut,required:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatmentBolusThickness",fieldlabel:"Bolus Thickness",options:et.bolusThickness,value:{value:dt.bolusThickness,label:dt.bolusThickness},required:!0,inputProps:{error:!ht(dt.bolusThickness)},onChange:vt=>{const Ot=typeof vt=="string"?vt:vt==null?void 0:vt.value;pt({...dt,bolusThickness:Ot,bolusThicknessCustom:""}),rt({variables:{siteId:tt.id,bolusThickness:Ot,bolusThicknessCustom:""}})},disabled:ut}),(dt==null?void 0:dt.bolusThickness)==="Custom"&&jsxRuntimeExports.jsx(ROTextField,{id:"treatmentBolusThicknessCustom",value:dt.bolusThicknessCustom,onChange:vt=>{pt({...dt,bolusThicknessCustom:vt.target.value})},onBlur:()=>nt(),disabled:ut}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"bolusFrequency",fieldlabel:"Bolus Frequency",options:et.bolusFrequency,value:{value:dt.bolusFrequency,label:dt.bolusFrequency},required:!0,inputProps:{error:!ht(dt.bolusFrequency)},onChange:vt=>{const Ot=typeof vt=="string"?vt:vt==null?void 0:vt.value;pt({...dt,bolusFrequency:Ot}),rt({variables:{siteId:tt.id,bolusFrequency:Ot}})},disabled:ut})]})]})},validationV2=[{parent:"bolus",expansionValue:"true",children:["bolusLocationType","bolusThickness","bolusFrequency"]},{parent:"bolusLocationType",expansionValue:"Specify location",children:["bolusLocation"]}],PrescriptionBolusFormV2=({options:et,site:tt,updatePrescription:rt,updateData:nt,getBolusValue:lt,cpotReadOnly:ut,state:dt,setState:pt,isFieldValid:ht})=>{var mt,xt,Mt;return useTheme$1(),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentBolus",fieldlabel:"Bolus",options:et.bolus,value:lt(),disabled:ut,handleChange:vt=>{var Rt;const Ot=vt==="yes";pt({...dt,bolus:{value:Ot.toString(),isShown:!0},bolusLocationType:"",bolusLocation:"",bolusThickness:"",bolusThicknessCustom:"",bolusFrequency:"",is3dBolus:{value:"",isShown:!1}});const At=(Rt=dt==null?void 0:dt.is3dBolus)!=null&&Rt.isShown?{is3dBolus:""}:{};rt({variables:{siteId:tt.id,bolus:Ot,bolusLocationType:"",bolusLocation:"",bolusThickness:"",bolusThicknessCustom:"",bolusFrequency:"",...At}})}}),((mt=dt==null?void 0:dt.bolus)==null?void 0:mt.value)==="true"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[((xt=dt.is3dBolus)==null?void 0:xt.isShown)&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"is3dBolus",fieldlabel:"3D Bolus",options:et.is3dBolus,value:((Mt=dt.is3dBolus)==null?void 0:Mt.value)||"",error:!ht(dt.is3dBolus),handleChange:vt=>{pt({...dt,is3dBolus:{value:vt,isShown:!0}}),rt({variables:{siteId:tt.id,is3dBolus:vt}})},disabled:ut}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"bolusLocationType",fieldlabel:"Bolus Location",options:et.bolusLocationType,value:dt.bolusLocationType,required:!0,error:!ht(dt.bolusLocationType),handleChange:vt=>{pt({...dt,bolusLocationType:vt}),rt({variables:{siteId:tt.id,bolusLocationType:vt,bolusLocation:vt==="Specify location"?"":vt}})},disabled:ut}),dt.bolusLocationType==="Specify location"&&jsxRuntimeExports.jsx(ROTextField,{id:"treatmentBolusLocation",fieldlabel:"Bolus Location Specify",value:dt.bolusLocation,onChange:vt=>{pt({...dt,bolusLocation:vt.target.value})},onBlur:()=>nt(),error:!ht(dt.bolusLocation),disabled:ut}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatmentBolusThickness",fieldlabel:"Bolus Thickness",options:et.bolusThickness,value:{value:dt.bolusThickness,label:dt.bolusThickness},required:!0,inputProps:{error:!ht(dt.bolusThickness)},onChange:vt=>{const Ot=typeof vt=="string"?vt:vt==null?void 0:vt.value;pt({...dt,bolusThickness:Ot,bolusThicknessCustom:""}),rt({variables:{siteId:tt.id,bolusThickness:Ot,bolusThicknessCustom:""}})},disabled:ut}),(dt==null?void 0:dt.bolusThickness)==="Custom"&&jsxRuntimeExports.jsx(ROTextField,{id:"treatmentBolusThicknessCustom",value:dt.bolusThicknessCustom,onChange:vt=>{pt({...dt,bolusThicknessCustom:vt.target.value})},onBlur:()=>nt(),disabled:ut}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"bolusFrequency",fieldlabel:"Bolus Frequency",options:et.bolusFrequency,value:{value:dt.bolusFrequency,label:dt.bolusFrequency},required:!0,inputProps:{error:!ht(dt.bolusFrequency)},onChange:vt=>{const Ot=typeof vt=="string"?vt:vt==null?void 0:vt.value;pt({...dt,bolusFrequency:Ot}),rt({variables:{siteId:tt.id,bolusFrequency:Ot}})},disabled:ut})]})]})},getBolusValidationStructure=et=>et>=2?validationV2:et>=1?validationV1:[],BolusForm=et=>{const tt=et.state,nt={...et,getBolusValue:()=>tt.bolus&&tt.bolus.value?setYesNo(tt.bolus.value):typeof tt.bolus=="boolean"?setYesNo(tt.bolus):""};return et.version>=2?jsxRuntimeExports.jsx(PrescriptionBolusFormV2,{...nt}):et.version>=1?jsxRuntimeExports.jsx(PrescriptionBolusFormV1,{...nt}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"No Version Provided"})},MAX_DOSAGE=150,getDoseOverrideMessage=(et,tt,rt)=>{let nt="";return et||(nt+="Dose values are not in order of high to low "),tt||(nt!==""&&(nt+="and "),rt===DoseUnit.CGY?nt+=`Dose exceeds limitations of ${MAX_DOSAGE*GY_TO_CGY} ${rt} `:nt+=`Dose exceeds limitations of ${MAX_DOSAGE} ${rt} `),nt},logger$k=new Logger("PrescriptionPage.tsx"),END="end",AMEND="amend",NO="no",YES="yes",MAX_FRACTION_DOSAGE=5,BOOLEAN_OPTIONS$1=[{label:"Yes",value:YES},{label:"No",value:NO}],CPOT_CHANGE_OPTIONS=[{label:"End treatment early",value:END},{label:"Amend treatment",value:AMEND},{label:"No change",value:NO}],CPOT_FRACTIONS_MESSAGE="Revised total fractions",CPOT_DOSE_MESSAGE="Revised total dose",CPOT_FRACTION_DOSE_MESSAGE="Fraction dose updated from:",baseValidationDependencyStructure=[{parent:null,expansionValue:null,children:["technique","modality","fractions","phase","doseTo","dose","doseFrequency"]},{parent:"treatmentOption",expansionValue:"end",children:["changeReason"]},{parent:"treatmentOption",expansionValue:"amend",children:["cpotFraction","changeReason"]},{parent:"changeReason",expansionValue:"Other",children:["changeReasonOther"]},{parent:"doseTo",expansionValue:"Custom",children:["customDoseTo"]},{parent:"doseTo",expansionValue:"Depth",children:["customDoseTo"]},{parent:"doseTo",expansionValue:"Isodose",children:["customDoseTo"]},{parent:"doseFrequency",expansionValue:"Custom",children:["customDoseFrequency"]},{parent:"treatmentBreak",expansionValue:"true",children:["treatmentBreakDuration","treatmentBreakFraction"]},{parent:null,expansionValue:"true",children:["isDoseInCorrectOrder","isDoseWithinLimit"]},{parent:"microdosimetryTld",expansionValue:null,expansionCondition:()=>CurrentAppConfig.PrescriptionPage.MicrodosimetryTld,children:["PREVENT_CONTINUE"]},{parent:"weeklyPhysicsCheck",expansionValue:null,expansionCondition:()=>CurrentAppConfig.PrescriptionPage.WeeklyPhysicsCheck,children:["PREVENT_CONTINUE"]},{parent:"basicDoseCalculation",expansionValue:null,expansionCondition:()=>CurrentAppConfig.PrescriptionPage.BasicDoseCalculation,children:["PREVENT_CONTINUE"]}];let pressedContinue$1=!1;const isFieldValid$1=et=>pressedContinue$1?validateField(et):!0,preparePageTransition$1=()=>{pressedContinue$1=!1,ScrollToTop(document)},ROPatientPrescriptionPage=()=>{var na,Xs,Zl,Jl,Ks,Al,Ol;const et=useHistory(),tt=useRouteMatch(),{id:rt,careplanId:nt,siteIdx:lt}=tt.params,ut=lt?parseInt(lt):0,{setError:dt}=useErrorModalContext(),{data:pt,error:ht}=useQuery(GET_USER_PROFILE),{peerReviewViolations:mt,setPeerReviewViolations:xt}=reactExports.useContext(PeerReviewContext),{doseUnit:Mt}=reactExports.useContext(TenantContext),{data:vt}=useQuery(GET_PEER_REVIEW,{variables:{careplanId:nt},onCompleted:()=>{var On;xt((On=vt==null?void 0:vt.peerReview)==null?void 0:On.violations)}});reactExports.useEffect(()=>{var On;xt((On=vt==null?void 0:vt.peerReview)==null?void 0:On.violations)},[vt]),reactExports.useState(!0);const[Ot,At]=reactExports.useState(!1),{data:Rt}=useQuery(GET_CAREPLAN_STATUS,{variables:{id:nt}}),zt=((na=Rt==null?void 0:Rt.careplan)==null?void 0:na.careplanStatus)==="CPOT",Tt={id:-1,phase:"",technique:"",modality:"",dose:[null],fractions:"",doseTo:"",customDoseTo:"",doseFrequency:"",customDoseFrequency:"",imagingFrequency:{value:"",isShown:!0},imagingTechnique:"",additionalPrescriptionInfo:"",bolusLocationType:"",bolusLocation:"",bolusThickness:"",bolusThicknessCustom:"",bolus:{value:"",isShown:!0},treatmentSite:"",bolusFrequency:"",is3dBolus:{value:"",isShown:!0},microdosimetryTld:null,weeklyPhysicsCheck:null,treatmentBreak:void 0,treatmentBreakDuration:"",treatmentBreakFraction:"",location:null,isDoseInCorrectOrder:!0,isDoseWithinLimit:!0,treatmentOption:NO,cpotFraction:null,changeReason:"",changeReasonOther:"",originalDose:[null],originalFractions:"",ctv:[""],ptv:[""],basicDoseCalculation:null,laterality:"",userAcknowledgedExceeded5gFraction:null},[Ct,It]=reactExports.useState(Tt),{data:Dt,error:kt}=useQuery(GET_DIAGNOSIS_FROM_CAREPLAN,{variables:{careplanId:nt},onCompleted:On=>{logMissingDiagnosisCode(logger$k,On.careplan,"Prescription")}}),qt=((Ks=(Jl=(Zl=(Xs=Dt==null?void 0:Dt.careplan)==null?void 0:Xs.diagnosis)==null?void 0:Zl.diagnosisCode)==null?void 0:Jl.tumourStream)==null?void 0:Ks.name)??null,[Nt]=useMutation(TRIGGER_CPOT,{awaitRefetchQueries:!0,variables:{id:nt,careplanStatus:"Prescription",cpotTriggered:!1},refetchQueries:[{query:LOAD_PRESCRIPTION,variables:{careplanId:nt}},{query:GET_CAREPLAN,variables:{id:nt}}],onCompleted:()=>{et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.SUBMISSION}`)}}),[Yt]=useMutation(RESET_CONDITIONAL_FIELDS,{awaitRefetchQueries:!0,refetchQueries:[{query:LOAD_PRESCRIPTION,variables:{careplanId:nt}},{query:GET_CAREPLAN,variables:{id:nt}}],onCompleted:()=>{const On=Bt.siteListByCareplan[ut];It({...Ct,bolusFrequency:On.bolusFrequency,is3dBolus:On.is3dBolus,bolusLocationType:On.bolusLocationType,bolusLocation:On.bolusLocation,bolusThickness:On.bolusThickness,bolusThicknessCustom:On.bolusThicknessCustom,bolus:On.bolus,treatmentBreak:On.treatmentBreak,treatmentBreakDuration:On.treatmentBreakDuration,treatmentBreakFraction:On.treatmentBreakFraction,treatmentSite:On.treatmentSite})}}),[Kt]=useMutation(RESET_CONDITIONAL_FIELDS_TO_LAST_PRESCRIPTION,{awaitRefetchQueries:!0,refetchQueries:[{query:LOAD_PRESCRIPTION,variables:{careplanId:nt}},{query:GET_CAREPLAN,variables:{id:nt}}],onCompleted:()=>{const On=Bt.siteListByCareplan[ut];It({...Ct,bolusFrequency:On.bolusFrequency,is3dBolus:On.is3dBolus,bolusLocationType:On.bolusLocationType,bolusLocation:On.bolusLocation,bolusThickness:On.bolusThickness,bolusThicknessCustom:On.bolusThicknessCustom,bolus:On.bolus,treatmentBreak:On.treatmentBreak,treatmentBreakDuration:On.treatmentBreakDuration,treatmentBreakFraction:On.treatmentBreakFraction,treatmentSite:On.treatmentSite})}}),{loading:Jt,error:Qt,data:Bt}=useQuery(LOAD_PRESCRIPTION,{fetchPolicy:"network-only",variables:{careplanId:nt},onCompleted:On=>{const Sn=On.siteListByCareplan[ut];It(po=>({...po,id:Sn.id,phase:Sn.phase,technique:Sn.technique,modality:Sn.modality,dose:Yr(Sn.dose),fractions:Sn.fractions,doseTo:Sn.doseTo,customDoseTo:Sn.customDoseTo,doseFrequency:Sn.doseFrequency,customDoseFrequency:Sn.customDoseFrequency,imagingFrequency:Sn.imagingFrequency,imagingTechnique:Sn.imagingTechnique,additionalPrescriptionInfo:Sn.additionalPrescriptionInfo,bolusLocationType:Sn.bolusLocationType,bolusLocation:Sn.bolusLocation,bolusThickness:Sn.bolusThickness,bolusThicknessCustom:Sn.bolusThicknessCustom,bolus:Sn.bolus,microdosimetryTld:Sn.microdosimetryTld,weeklyPhysicsCheck:Sn.weeklyPhysicsCheck,treatmentBreak:Sn.treatmentBreak,treatmentBreakDuration:Sn.treatmentBreakDuration,treatmentBreakFraction:Sn.treatmentBreakFraction,treatmentSite:Sn.treatmentSite,bolusFrequency:Sn.bolusFrequency,is3dBolus:Sn.is3dBolus,location:Sn.location,laterality:Sn.laterality,treatmentOption:Sn.treatmentOption||NO,cpotFraction:Sn.cpotFraction?Number(Sn.cpotFraction):null,changeReason:Sn.changeReason,changeReasonOther:Sn.changeReasonOther,originalDose:Sn.originalDose,originalFractions:Sn.originalFractions,ctv:Sn.ctv||[""],ptv:Sn.ptv||[""],basicDoseCalculation:Sn.basicDoseCalculation,userAcknowledgedExceeded5gFraction:Sn.userAcknowledgedExceeded5gFraction}))}}),[Ft,$t]=reactExports.useState([]),[jt,Wt]=reactExports.useState([]),[Ut,Vt]=reactExports.useState([]),[Ht,Gt]=reactExports.useState([]),[Zt,Xt]=reactExports.useState([]),[er,nr]=reactExports.useState([]),[or,rr]=reactExports.useState([]),[cr,ir]=reactExports.useState([]),[dr,gr]=reactExports.useState(!1),[,br]=reactExports.useState(),[ar,ur]=reactExports.useState({bolus:[],bolusThickness:[],bolusFrequency:[],is3dBolus:[],bolusLocationType:[]}),xr=reactExports.useCallback(()=>br({}),[]),{data:Mr,error:Ar}=useQuery(GET_CAREPLAN_SITE_GROUPS,{variables:{careplanId:nt},fetchPolicy:"network-only"}),{loading:Ir,data:Rr,error:wr}=useQuery(LOAD_SITE_TEMPLATE_VARIATION_VALUES,{fetchPolicy:"network-only",variables:{siteId:Ct.id},skip:Ct.id===-1||!Bt}),{data:qr,error:Hr}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:nt}}),kr=getManualSiteTumourStreamMap(qr==null?void 0:qr.careplan.featureVersion)[qt],$r=getBolusValidationStructure(qr==null?void 0:qr.careplan.featureVersion),yr=[...baseValidationDependencyStructure,...$r];reactExports.useEffect(()=>{if(Qt||Ar||wr||Hr||kt||ht)return dt()},[Qt,Ar,wr,Hr,kt]);const[Or,{loading:Dr}]=useMutation(UPDATE_PRESCRIPTION,{awaitRefetchQueries:!0,refetchQueries:[{query:GET_CAREPLAN,variables:{id:nt}},{query:GET_PEER_REVIEW,variables:{careplanId:nt}}]}),Fr=Mt===DoseUnit.CGY?parseInt:parseFloat,Yr=On=>{if(!On)return[null];const Sn=Mt===DoseUnit.CGY?MAX_DOSAGE*GY_TO_CGY:MAX_DOSAGE,po=Co=>!isNaN(Fr(Co))&&isFinite(Co)&&Fr(Co)<=Sn?Fr(Co):null;return On.length?On.map(Co=>po(Co)):[po(On)]},[Gr]=useMutation(RESET_PRESCRIPTION,{awaitRefetchQueries:!0,refetchQueries:[{query:LOAD_PRESCRIPTION,variables:{careplanId:nt}},{query:GET_CAREPLAN,variables:{id:nt}},{query:GET_PEER_REVIEW,variables:{careplanId:nt}}],onCompleted:On=>{const Sn=On.resetPrescription.site;It({...Ct,id:Sn.id,phase:Sn.phase,technique:Sn.technique,modality:Sn.modality,dose:Yr(Sn.dose),fractions:Sn.fractions,doseTo:Sn.doseTo,customDoseTo:Sn.customDoseTo,doseFrequency:Sn.doseFrequency,customDoseFrequency:Sn.customDoseFrequency,imagingFrequency:Sn.imagingFrequency,imagingTechnique:Sn.imagingTechnique,additionalPrescriptionInfo:Sn.additionalPrescriptionInfo,bolusLocationType:Sn.bolusLocationType,bolusLocation:Sn.bolusLocation,bolusThickness:Sn.bolusThickness,bolusThicknessCustom:Sn.bolusThicknessCustom,bolus:Sn.bolus,microdosimetryTld:Sn.microdosimetryTld,weeklyPhysicsCheck:Sn.weeklyPhysicsCheck,treatmentBreak:Sn.treatmentBreak,treatmentBreakDuration:Sn.treatmentBreakDuration,treatmentBreakFraction:Sn.treatmentBreakFraction,treatmentSite:Sn.treatmentSite,bolusFrequency:Sn.bolusFrequency,is3dBolus:Sn.is3dBolus,location:Sn.location,laterality:Sn.laterality,ctv:Sn.ctv||[""],ptv:Sn.ptv||[""],basicDoseCalculation:Sn.basicDoseCalculation})}}),[Jr,{loading:jr}]=useMutation(RESET_TO_LAST_PRESCRIPTION,{awaitRefetchQueries:!0,refetchQueries:[{query:GET_CAREPLAN,variables:{id:nt}}],onCompleted:On=>{const Sn=On.resetToLastPrescription.site,po=Ct.treatmentOption===END&&Tr,_o=po?calculateRevisedDose(Tr,qn(Ct),Kr):Yr(Sn.dose),Co=po?Tr:Sn.fractions;It(ls=>({...ls,id:Sn.id,phase:Sn.phase,technique:Sn.technique,modality:Sn.modality,dose:_o,fractions:Co,doseTo:Sn.doseTo,customDoseTo:Sn.customDoseTo,doseFrequency:Sn.doseFrequency,customDoseFrequency:Sn.customDoseFrequency,imagingFrequency:Sn.imagingFrequency,imagingTechnique:Sn.imagingTechnique,additionalPrescriptionInfo:Sn.additionalPrescriptionInfo,bolusLocationType:Sn.bolusLocationType,bolusLocation:Sn.bolusLocation,bolusThickness:Sn.bolusThickness,bolusThicknessCustom:Sn.bolusThicknessCustom,bolus:Sn.bolus,microdosimetryTld:Sn.microdosimetryTld,weeklyPhysicsCheck:Sn.weeklyPhysicsCheck,treatmentBreak:Sn.treatmentBreak,treatmentBreakDuration:Sn.treatmentBreakDuration,treatmentBreakFraction:Sn.treatmentBreakFraction,treatmentSite:Sn.treatmentSite,bolusFrequency:Sn.bolusFrequency,is3dBolus:Sn.is3dBolus,location:Sn.location,laterality:Sn.laterality,originalDose:Yr(Sn.dose),originalFractions:decimalFormatter$1(Sn.fractions),ctv:Sn.ctv||[""],ptv:Sn.ptv||[""],basicDoseCalculation:Sn.basicDoseCalculation}))}}),{data:Zr,loading:Xr}=useQuery(LOAD_CAREPLAN_LIST_DATA,{variables:{listCategory:["phase","technique","imagingTechnique","doseto","imaging","frequency","modality","bolusThickness","bolusFrequency","bolusLocationType","is3dBolus","ReasonForChange"],patientId:rt}});if(reactExports.useEffect(()=>{$t(filterListdata(Zr,"phase")),Wt(filterListdata(Zr,"technique")),Vt(filterListdata(Zr,"imagingTechnique")),Gt(alphabeticalOrder(filterListdata(Zr,"doseto"),"text")),Xt(filterListdata(Zr,"imaging")),rr(filterListdata(Zr,"modality")),nr(filterListdata(Zr,"frequency")),ir(filterListdata(Zr,"ReasonForChange")),ur({bolus:BOOLEAN_OPTIONS$1,bolusThickness:filterListdata(Zr,"bolusThickness"),bolusLocationType:filterListdata(Zr,"bolusLocationType"),bolusFrequency:filterListdata(Zr,"bolusFrequency"),is3dBolus:filterListdata(Zr,"is3dBolus")})},[Zr]),reactExports.useEffect(()=>{pressedContinue$1=!1},[]),reactExports.useEffect(()=>{const On=document.getElementsByClassName("icon-form-error");On&&On.length>0?(On[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),On[0].focus({preventScroll:!0})):pressedContinue$1=!1}),reactExports.useEffect(()=>{let On=!0;if(Ct.dose&&Ct.dose.length>1){for(let po=0;po<Ct.dose.length-1;po++)if(Fr(Ct.dose[po])<Fr(Ct.dose[po+1])){On=!1;break}}On!==Ct.isDoseInCorrectOrder&&It(po=>({...po,isDoseInCorrectOrder:On}));let Sn=!0;if(Ct.dose&&Ct.dose.length>=1)for(let po=0;po<Ct.dose.length;po++){const _o=Mt===DoseUnit.CGY?MAX_DOSAGE*GY_TO_CGY:MAX_DOSAGE;if(Fr(Ct.dose[po])>_o){Sn=!1;break}}Sn!==Ct.isDoseWithinLimit&&It(po=>({...po,isDoseWithinLimit:Sn}))},[Ct.dose]),Jt||Xr||(Ct==null?void 0:Ct.id)===-1)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Prescription",subtitle:"Please wait while we set things up for you"});const cn=(On,Sn)=>{const po=On.find(_o=>_o.value===Sn);return po||(Sn&&Sn!==""?{label:Sn,value:Sn}:null)},Qr=On=>On==="true"?!0:On==="false"?!1:null,rn=On=>{var po,_o;const Sn=(po=Ct.is3dBolus)!=null&&po.isShown?{is3dBolus:Ct.is3dBolus.value}:{};((_o=On==null?void 0:On.relatedTarget)==null?void 0:_o.textContent)!=="Reset to templated values"&&Or({variables:{siteId:Ct.id,phase:Ct.phase,technique:Ct.technique,modality:Ct.modality,dose:Yr(Ct.dose),fractions:Ct.fractions,doseTo:Ct.doseTo,customDoseTo:Ct.customDoseTo,doseFrequency:Ct.doseFrequency,customDoseFrequency:Ct.customDoseFrequency,imagingFrequency:Ct.imagingFrequency?Ct.imagingFrequency.value:"",imagingTechnique:Ct.imagingTechnique,additionalPrescriptionInfo:Ct.additionalPrescriptionInfo,bolusLocationType:Ct.bolusLocationType,bolusLocation:Ct.bolusLocation,bolusFrequency:Ct.bolusFrequency,bolusThickness:Ct.bolusThickness,microdosimetryTld:Ct.microdosimetryTld,weeklyPhysicsCheck:Ct.weeklyPhysicsCheck,treatmentBreak:Ct.treatmentBreak&&Ct.treatmentBreak.value?Qr(Ct.treatmentBreak.value):void 0,treatmentBreakDuration:Ct.treatmentBreakDuration,treatmentBreakFraction:Ct.treatmentBreakFraction,bolusThicknessCustom:Ct.bolusThicknessCustom,bolus:Ct.bolus&&Ct.bolus.value?Qr(Ct.bolus.value):null,treatmentSite:Ct.treatmentSite,treatmentOption:Ct.treatmentOption,cpotFraction:Ct.cpotFraction,changeReason:Ct.changeReason,changeReasonOther:Ct.changeReasonOther,originalDose:Yr(Ct.originalDose),originalFractions:Ct.originalFractions,ctv:Ct.ctv,ptv:Ct.ptv,basicDoseCalculation:Ct.basicDoseCalculation,userAcknowledgedExceeded5gFraction:Ct.userAcknowledgedExceeded5gFraction,...Sn}})},_r=On=>{if(!Bt)return;const Sn=Bt.siteListByCareplan[On];It({...Ct,id:Sn.id,phase:Sn.phase,technique:Sn.technique,modality:Sn.modality,dose:Yr(Sn.dose),fractions:Sn.fractions,doseTo:Sn.doseTo,doseFrequency:Sn.doseFrequency,customDoseFrequency:Sn.customDoseFrequency,customDoseTo:Sn.customDoseTo,imagingFrequency:Sn.imagingFrequency,imagingTechnique:Sn.imagingTechnique,additionalPrescriptionInfo:Sn.additionalPrescriptionInfo,bolusLocationType:Sn.bolusLocationType,bolusLocation:Sn.bolusLocation,bolusThickness:Sn.bolusThickness,bolusThicknessCustom:Sn.bolusThicknessCustom,bolus:Sn.bolus,microdosimetryTld:Sn.microdosimetryTld,weeklyPhysicsCheck:Sn.weeklyPhysicsCheck,treatmentBreak:Sn.treatmentBreak,treatmentBreakDuration:Sn.treatmentBreakDuration,treatmentBreakFraction:Sn.treatmentBreakFraction,treatmentSite:Sn.treatmentSite,bolusFrequency:Sn.bolusFrequency,is3dBolus:Sn.is3dBolus,location:Sn.location,laterality:Sn.laterality,treatmentOption:Sn.treatmentOption||NO,cpotFraction:Sn.cpotFraction?Number(Sn.cpotFraction):null,changeReason:Sn.changeReason,changeReasonOther:Sn.changeReasonOther,originalDose:Yr(Sn.originalDose),originalFractions:Sn.originalFractions,ctv:Sn.ctv||[""],ptv:Sn.ptv||[""],basicDoseCalculation:Sn.basicDoseCalculation})},ln=On=>{On&&It({...Ct,...On,dose:Yr(On.dose),treatmentOption:On.treatmentOption||NO,cpotFraction:On.cpotFraction?Number(On.cpotFraction):null,ctv:On.ctv||[""],ptv:On.ptv||[""]})},vn=()=>{const On=ut===0;if(preparePageTransition$1(),On){const Sn=Mr?Mr.siteGroupsByCareplan.length-1:0;et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.SIMULATION}/${Sn}`)}else{const Sn=ut-1;Sn===0?et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.PRESCRIPTION}`):et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.PRESCRIPTION}/${Sn}`),_r(Sn)}},Cr=()=>{preparePageTransition$1();const On=Bt?Bt.siteListByCareplan:[];if(ut===On.length-1)et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.VOLUMING}`);else{const po=ut+1;et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.PRESCRIPTION}/${po}`),_r(po)}},gn=()=>{pressedContinue$1=!0,xr(),!(!(!ao||Ct.cpotFraction!==null&&Number(Ct.cpotFraction)>=0)||!isPageValid(yr,Ct))&&(Ds()||Cr())},xn=()=>(window.location.replace(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.PRESCRIPTION}`),Bt.siteListByCareplan[0]),Vr=Bt?Bt.siteListByCareplan[ut]?Bt.siteListByCareplan[ut]:xn():[],fn=On=>On&&Fr(On.toString().replace(/\,/g,"")),pn=On=>On.treatmentOption===END&&On.cpotFraction===0?On.dose.map(()=>null):On.dose?On.dose.length===1?[fn(On.dose[0])]:On.dose.map(Sn=>fn(Sn)):[null],qn=On=>On.originalDose?On.originalDose.length===1?[fn(On.originalDose[0])]:On.originalDose.map(Sn=>fn(Sn)):pn(On),Bn=Number(Ct.fractions),Kr=Number(Ct.originalFractions),Tr=Number(Ct.cpotFraction),Pr=Ct.fractions?Fr(Ct.fractions.toString()):null,an=pn(Ct).map(On=>Pr?Mt===DoseUnit.CGY?Math.round(On/Pr):decimalFormatter$1(On/Pr):null),nn=()=>{It(On=>{let Sn=pn(Ct),po=[...On.ctv],_o=[...On.ptv];return Sn.length===1?(Sn=[...pn(On),null],po=[...On.ctv,""],_o=[...On.ptv,""]):Sn.length===2?(Sn.splice(1,0,null),po.splice(1,0,""),_o.splice(1,0,"")):Sn.length===3&&(Sn.splice(2,0,null),po.splice(2,0,""),_o.splice(2,0,"")),Or({variables:{siteId:Vr.id,dose:Yr(Sn),ctv:po,ptv:_o}}),{...On,dose:Sn,ctv:po,ptv:_o}})},Mn=On=>{It(Sn=>{const po=[...Yr(Sn.dose)],_o=[...Sn.ctv],Co=[...Sn.ptv];return po.splice(On,1),_o.splice(On,1),Co.splice(On,1),Or({variables:{siteId:Vr.id,dose:po,ctv:[..._o],ptv:[...Co]}}),{...Sn,dose:po,ctv:_o,ptv:Co}})},An=()=>Ct.treatmentBreak&&Ct.treatmentBreak.value?setYesNo(Ct.treatmentBreak.value):typeof Ct.treatmentBreak=="boolean"?setYesNo(Ct.treatmentBreak):"",Vn=(On,Sn)=>{if(Ir||zt)return!1;if(Rr){const po=Rr.loadSiteTemplateValuesVariation.find(_o=>_o.fieldName.toLowerCase()===On.toLowerCase());if(po)return po.value===""||po.value===null?!1:On==="dose"?Sn.filter(Co=>Co==="").length===0?JSON.parse(po.value).toString()!==Sn.filter(Co=>Co).map(Co=>JSON.parse(Co)).toString():!1:On==="fractions"?Number(po.value)!==Number(Sn):po.value!==Sn}return!1},Cn=calculateTotalDoses(Tr,qn(Ct),pn(Ct),Kr),kn=calculateTotalFractions(Tr,Bn),Qn=On=>mt==null?void 0:mt.some(Sn=>{var po,_o;return((po=Sn==null?void 0:Sn.site)==null?void 0:po.siteId)===Vr.id&&((_o=Sn==null?void 0:Sn.ruleSets[0])==null?void 0:_o.rules.some(Co=>(Co==null?void 0:Co.field.toLowerCase())===On))}),Gn=On=>On.some(Qn),Un={phase:{peerReview:Qn("phase"),variation:Vn("phase",Ct.phase)},technique:{peerReview:Qn("technique"),variation:Vn("technique",Ct.technique)},modality:{peerReview:Qn("modality"),variation:Vn("modality",Ct.modality)},dose:{peerReview:Gn(["dose","number of doses","high dose","low dose"]),variation:Vn("dose",Tr?Cn:Ct.dose)},fractions:{peerReview:Qn("fractions"),variation:Vn("fractions",Tr?kn:Ct.fractions)},doseTo:{peerReview:Qn("dose to"),variation:Vn("dose_to",Ct.doseTo)},doseFrequency:{peerReview:Qn("frequency"),variation:Vn("dose_frequency",Ct.doseFrequency)},fractionDose:{peerReview:Qn("fraction dose"),variation:null}},jn=(On,Sn)=>On?PEER_REVIEW_MESSAGE:Sn?VARIATION_MESSAGE:void 0,In=Object.values(Un).some(On=>On.variation),Kn=Object.values(Un).some(On=>On.peerReview),Wn=zt&&Ct.treatmentOption!==NO,ao=zt&&Ct.treatmentOption===END,_i=zt&&Ct.treatmentOption!==AMEND,ho=(Rr==null?void 0:Rr.loadSiteTemplateValuesVariation.length)===0,So={bolus:jsxRuntimeExports.jsx(BolusForm,{version:(Al=qr==null?void 0:qr.careplan)==null?void 0:Al.featureVersion,state:Ct,setState:It,site:Vr,updatePrescription:Or,updateData:rn,isFieldValid:isFieldValid$1,options:ar,cpotReadOnly:_i}),treatmentBreak:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SectionTitle$3,{children:"TREATMENT BREAK"}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentBreak",fieldlabel:"Break",options:BOOLEAN_OPTIONS$1,value:An(),handleChange:On=>{const Sn=On==="yes";It({...Ct,treatmentBreak:{value:Sn.toString(),isShown:!0},treatmentBreakDuration:"",treatmentBreakFraction:""}),Or({variables:{siteId:Vr.id,treatmentBreak:Sn,treatmentBreakDuration:"",treatmentBreakFraction:""}})},disabled:_i}),((Ol=Ct==null?void 0:Ct.treatmentBreak)==null?void 0:Ol.value)==="true"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROTextField,{id:"treatmentBreakDuration",fieldlabel:"Minimum break (weeks)",value:Ct.treatmentBreakDuration,onChange:On=>{It({...Ct,treatmentBreakDuration:On.target.value})},onBlur:On=>rn(On),type:"number",error:!isFieldValid$1(Ct.treatmentBreakDuration),disabled:_i,required:!0}),jsxRuntimeExports.jsx(ROTextField,{id:"treatmentBreakFraction",fieldlabel:"Commence break after fraction",value:Ct.treatmentBreakFraction,onChange:On=>{It({...Ct,treatmentBreakFraction:On.target.value})},onBlur:On=>rn(On),type:"number",error:!isFieldValid$1(Ct.treatmentBreakFraction),disabled:_i,required:!0})]})]})},ko=()=>{zt?Yt({variables:{siteId:parseInt(Vr.id),fieldNames:mapConditionalFields(CONDITIONAL_FIELD_MAP,Jo)}}):Kt({variables:{siteId:parseInt(Vr.id),fieldNames:mapConditionalFields(CONDITIONAL_FIELD_MAP,Jo)}})},us=Object.keys(So),Jo=[],go=[];Object.keys(So).forEach(On=>{kr&&(kr.includes(On)?go.push(On):Jo.push(On))});const $o=Jo.filter(On=>Ct[On]?Ct[On].value:!1).length>0,vo=On=>On.map(Sn=>Ct[Sn]&&!!Ct[Sn]&&Ct[Sn].isShown?jsxRuntimeExports.jsx("div",{children:So[Sn]},Sn):null),Go=()=>{if(zt){if(ao&&Ct.cpotFraction===0)return"No fractions will be delivered";if(Wn&&Tr){const On=calculateTotalFractions(Tr,Bn);return Ct.treatmentOption===END?`${CPOT_FRACTIONS_MESSAGE}`:`${CPOT_FRACTIONS_MESSAGE}: ${On}#`}}return jn(Un.fractions.peerReview,Un.fractions.variation)},Wo=()=>{var On;if(ao&&Ct.cpotFraction===0)return"No dose will be delivered";if(Wn&&Tr){if(((On=qn(Ct))==null?void 0:On.length)!==Ct.dose.length)return"Cannot calculate total dose due to SIB variation";if(Ct.treatmentOption===END)return`${CPOT_DOSE_MESSAGE}`;const po=calculateTotalDoses(Tr,qn(Ct),pn(Ct),Kr).join(`${Mt} | `);return`${CPOT_DOSE_MESSAGE}: ${po}${Mt}`}else return jn(Un.dose.peerReview,Un.dose.variation)},cs=()=>{var Sn,po,_o;if(Os())return`Variation from template - Dose per fraction is >${Mt===DoseUnit.CGY?MAX_FRACTION_DOSAGE*GY_TO_CGY:MAX_FRACTION_DOSAGE}${Mt} in daily fractions`;if(ao&&Ct.cpotFraction===0)return"No fraction dose will be delivered";const On=(Sn=qn(Ct))==null?void 0:Sn.map(Co=>Kr?decimalFormatter$1(Co/Kr):null);if(zt&&Tr&&(On!=null&&On.length)&&(an!=null&&an.length)){if(((po=qn(Ct))==null?void 0:po.length)!==((_o=pn(Ct))==null?void 0:_o.length))return"Cannot check fraction dose due to SIB variation";if(On.every((qs,Bs)=>qs===an[Bs]))return;const ls=On.join(`${Mt} | `);return`${CPOT_FRACTION_DOSE_MESSAGE} ${ls}${Mt}`}return Un.fractionDose.peerReview?PEER_REVIEW_MESSAGE:Un.fractions.variation||Un.dose.variation?VARIATION_MESSAGE:void 0},rs=Ct.treatmentOption===END?"End prescription on fraction (last delivered fraction)":"Change prescription from fraction (inclusive)",xs=(On,Sn)=>{Jr({variables:{siteId:On}}).then(()=>{Or({variables:{siteId:On,...Sn}}).then(({data:po})=>{var Co;const _o=(Co=po==null?void 0:po.updatePrescription)==null?void 0:Co.site;ln(_o)})})},Es=Un.dose.variation||Un.dose.peerReview||Wn&&!!Tr||ao&&Ct.cpotFraction===0,Os=()=>{var Sn;const On=Mt===DoseUnit.CGY?MAX_FRACTION_DOSAGE*GY_TO_CGY:MAX_FRACTION_DOSAGE;return(Un.fractions.variation||Un.dose.variation||Un.doseFrequency.variation)&&((Sn=cn(er.map(po=>({label:po.label,value:po.value})),Ct.doseFrequency?Ct.doseFrequency:""))==null?void 0:Sn.value)==="Daily"&&(ao&&Ct.cpotFraction===0?0:Ct.fractions?Number(Ct.fractions):0)>0&&an.some(po=>po?po>On:!1)},Ds=()=>{const On=Os()&&!Ct.userAcknowledgedExceeded5gFraction;return gr(On),On},gs=()=>{Or({variables:{siteId:Vr.id,userAcknowledgedExceeded5gFraction:pt.user.id}}),gr(!1),Cr()};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FractionDoseWarningModal,{isOpen:dr,handleClose:gr,handleContinue:gs}),jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[Jt&&jsxRuntimeExports.jsx("div",{className:"main-container",children:"Loading prescription...."}),jsxRuntimeExports.jsx(CareplanBanners,{data:qr,variation:In,variationMessage:Kn?PEER_REVIEW_MESSAGE:In?VARIATION_MESSAGE:"",refetchQueriesList:[{query:GET_PEER_REVIEW,variables:{careplanId:nt}},{query:GET_CAREPLAN_STATUS,variables:{id:nt}},{query:GET_DIAGNOSIS_FROM_CAREPLAN,variables:{careplanId:nt}},{query:LOAD_PRESCRIPTION,variables:{careplanId:nt}},{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:nt}},{query:LOAD_SITE_TEMPLATE_VARIATION_VALUES,variables:{siteId:Ct.id}},{query:GET_CAREPLAN,variables:{id:nt}}]}),jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsx("div",{className:"page-header",children:jsxRuntimeExports.jsxs(Typography,{variant:"h5","data-test-id":"prescription-header",children:["Prescription",": ",getTreatmentSiteHeader(Ct)]})}),jsxRuntimeExports.jsxs(Box,{component:"form",id:"prescriptionForm",noValidate:!0,children:[zt&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"treatmentOption",fieldlabel:"Change Option",options:CPOT_CHANGE_OPTIONS,value:Ct.treatmentOption,disabled:Dr||jr,handleChange:On=>{let Sn={treatmentOption:On};const po=On===END,_o=On===NO,Co=parseInt(Vr.id),ls={cpotFraction:null,changeReason:"",changeReasonOther:"",dose:qn(Ct),fractions:Kr||Bn};if(Sn={...Sn,...ls},It(qs=>({...qs,...Sn})),po||_o){xs(Co,Sn);return}Or({variables:{siteId:Co,...Sn}}).then(({data:qs})=>{var Ns;const Bs=(Ns=qs==null?void 0:qs.updatePrescription)==null?void 0:Ns.site;ln(Bs)})},required:!0,error:!isFieldValid$1(Ct.treatmentOption)}),zt&&Ct.treatmentOption!==NO&&jsxRuntimeExports.jsx(ROAutocomplete,{id:"changeReason",fieldlabel:`Reason for ${Ct.treatmentOption===END?"end":"change"}`,options:cr,value:cn(cr.map(On=>({label:On.label,value:On.value})),Ct.changeReason?Ct.changeReason:""),inputProps:{error:!isFieldValid$1(Ct.changeReason)},required:!0,onChange:On=>{const Sn=typeof On=="string"?On:On==null?void 0:On.value;It({...Ct,changeReason:Sn}),Or({variables:{siteId:Vr.id,changeReason:Sn}})}}),zt&&Ct.treatmentOption!==NO&&["Other"].includes(Ct.changeReason)&&jsxRuntimeExports.jsx(ROTextField,{id:"changeReasonOther",fieldlabel:`Additional reason for ${Ct.treatmentOption===END?"end":"change"} info:`,value:Ct.changeReasonOther||"",onChange:On=>{It({...Ct,changeReasonOther:On.target.value})},onBlur:On=>rn(On),required:!0}),Wn&&jsxRuntimeExports.jsx(ROTextField,{id:"cpotFraction",fieldlabel:rs,required:!0,value:Ct.cpotFraction||Ct.cpotFraction===0?Number(Ct.cpotFraction).toString():"",error:ao&&pressedContinue$1?Ct.cpotFraction===null?!0:!(Number(Ct.cpotFraction)>=0):!isFieldValid$1(Ct.cpotFraction),placeholder:`Enter fraction # (${Ct.treatmentOption===END?0:1} and above)`,onChange:On=>{const Sn=On.target.value,po=Sn?Math.trunc(Number(Sn)):null,_o=Ct.treatmentOption===END,Co=Number(Ct.originalFractions);if(!po){const Ns=Ct.treatmentOption===AMEND&&po===0?null:po;It({...Ct,cpotFraction:Ns,dose:qn(Ct),fractions:Co});return}const ls=Math.min(po,Co),qs=_o?ls:calculateRemainingFractions(ls,Co),Bs=_o?calculateRevisedDose(ls,qn(Ct),Co):calculateRemainingDose(ls,qn(Ct),Co);It({...Ct,cpotFraction:ls,dose:Bs,fractions:qs})},onBlur:On=>rn(On)}),zt&&jsxRuntimeExports.jsx("div",{className:"simulation-hr"}),jsxRuntimeExports.jsx(ROTextField,{id:"treatmentSite",fieldlabel:"Treatment Site",value:getTreatmentSiteWithLocation(Ct),disabled:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"prescriptionPhase",fieldlabel:CurrentAppConfig.QuestionLabel.phase,options:Ft,value:cn(Ft.map(On=>({label:On.label,value:On.value})),Ct.phase?Ct.phase:""),required:!0,inputProps:{error:!isFieldValid$1(Ct.phase),warning:!zt&&Un.phase.variation,helperText:jn(Un.phase.peerReview,Un.phase.variation)},onChange:On=>{const Sn=typeof On=="string"?On:On==null?void 0:On.value;It({...Ct,phase:Sn}),Or({variables:{siteId:Vr.id,phase:Sn}})},disabled:_i}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"prescriptionTechnique",fieldlabel:"Technique",options:jt,value:cn(jt.map(On=>({label:On.label,value:On.value})),Ct.technique?Ct.technique:""),inputProps:{error:!isFieldValid$1(Ct.technique),warning:!zt&&Un.technique.variation,helperText:isFieldValid$1(Ct.technique)?jn(Un.technique.peerReview,Un.technique.variation):""},required:!0,onChange:On=>{const Sn=typeof On=="string"?On:On==null?void 0:On.value;It({...Ct,technique:Sn}),Or({variables:{siteId:Vr.id,technique:Sn}})},disabled:_i}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"prescriptionModality",fieldlabel:"Modality",options:or,value:cn(or.map(On=>({label:On.label,value:On.value})),Ct.modality?Ct.modality:""),inputProps:{helperText:isFieldValid$1(Ct.modality)?jn(Un.modality.peerReview,Un.modality.variation):"",warning:!zt&&Un.modality.variation,error:!isFieldValid$1(Ct.modality)},required:!0,onChange:On=>{const Sn=typeof On=="string"?On:On==null?void 0:On.value;It({...Ct,modality:Sn}),Or({variables:{siteId:Vr.id,modality:Sn}})},disabled:_i}),CurrentAppConfig.PrescriptionPage.BasicDoseCalculation&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"basicDoseCalculation",fieldlabel:"Basic Dose Calculation",options:BOOLEAN_OPTIONS$1,required:!0,value:Ct.basicDoseCalculation!==null?setYesNo(Ct.basicDoseCalculation):"",error:!isFieldValid$1(Ct==null?void 0:Ct.basicDoseCalculation),disabled:_i,handleChange:On=>{const Sn=String(On==="yes");It({...Ct,basicDoseCalculation:Sn}),Or({variables:{siteId:Vr.id,basicDoseCalculation:Sn}})}}),jsxRuntimeExports.jsx(RODoseField,{id:"dose",fieldlabel:`${Ct.treatmentOption===AMEND?"Remaining ":""}Dose(${Mt})`,value:pn(Ct),onChange:On=>{It(Sn=>({...Sn,dose:On,userAcknowledgedExceeded5gFraction:null}))},onBlur:On=>rn(On),disabled:_i||zt&&!Tr,addColumn:nn,removeColumn:Mn,required:!0,helperText:isFieldValid$1(Ct.dose)?getDoseOverrideMessage(Ct.isDoseInCorrectOrder,Ct.isDoseWithinLimit,Mt)||Wo():"This field is required",error:!isFieldValid$1(Ct.dose)||!Ct.isDoseInCorrectOrder||!Ct.isDoseWithinLimit,warning:Es&&!Wn,info:Ct.isDoseInCorrectOrder&&Wn&&!!Wo()}),jsxRuntimeExports.jsx(ROTextField,{id:"prescriptionFractions",fieldlabel:`${Ct.treatmentOption===AMEND?"Remaining ":""}Fractions(#)`,value:ao&&Ct.cpotFraction===0?"":Ct.fractions?Number(Ct.fractions).toString():"",helperText:Go(),alwaysShowHelper:!!zt,error:!isFieldValid$1(Ct.fractions),warning:!zt&&Un.fractions.variation,info:ao&&Ct.cpotFraction===0||Wn&&!!Tr,onChange:On=>{It({...Ct,fractions:Math.trunc(Number(On.target.value)),userAcknowledgedExceeded5gFraction:null})},onBlur:On=>rn(On),disabled:_i||zt&&!Tr,required:!0}),jsxRuntimeExports.jsx(RODoseField,{id:"prescriptionFractionDose",fieldlabel:`Fraction Dose(${Mt}/#)`,value:an,helperText:cs(),warning:(Os()||zt?!!cs():Un.fractions.variation||Un.dose.variation)&&!Wn,info:Wn&&!ao&&!!cs(),disabled:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"prescriptionDoseTo",fieldlabel:"Dose To",options:Ht,value:cn(Ht.map(On=>({label:On.label,value:On.value})),Ct.doseTo?Ct.doseTo:""),inputProps:{error:!isFieldValid$1(Ct.doseTo),warning:!zt&&Un.doseTo.variation,helperText:isFieldValid$1(Ct.doseTo)?jn(Un.doseTo.peerReview,Un.doseTo.variation):""},required:!0,onChange:On=>{const Sn=typeof On=="string"?On:On==null?void 0:On.value;It({...Ct,doseTo:Sn}),Or({variables:{siteId:Vr.id,doseTo:Sn}})},disabled:_i}),["Custom","Depth","Isodose"].includes(Ct.doseTo)&&jsxRuntimeExports.jsx(ROTextField,{id:"prescriptionCustomDoseTo",fieldlabel:"Dose Clarification",value:Ct.customDoseTo||"",onChange:On=>{It({...Ct,customDoseTo:On.target.value})},error:!isFieldValid$1(Ct.customDoseTo),onBlur:On=>rn(On),disabled:_i,required:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"prescriptionFrequency",fieldlabel:"Frequency",options:er,value:cn(er.map(On=>({label:On.label,value:On.value})),Ct.doseFrequency?Ct.doseFrequency:""),inputProps:{error:!isFieldValid$1(Ct.doseFrequency),warning:!zt&&Un.doseFrequency.variation,helperText:isFieldValid$1(Ct.doseFrequency)?jn(Un.doseFrequency.peerReview,Un.doseFrequency.variation):""},required:!0,onChange:On=>{const Sn=typeof On=="string"?On:On==null?void 0:On.value;Ct.doseFrequency==="Custom"&&Ct.doseFrequency!==Sn?It({...Ct,doseFrequency:Sn,customDoseFrequency:""}):It({...Ct,doseFrequency:Sn}),Or({variables:{siteId:Vr.id,doseFrequency:Sn,customDoseFrequency:Ct.customDoseFrequency,userAcknowledgedExceeded5gFraction:null}})},disabled:_i}),Ct.doseFrequency==="Custom"&&jsxRuntimeExports.jsx(ROTextField,{id:"prescriptionCustomDoseFrequency",fieldlabel:"Enter custom frequency",error:!isFieldValid$1(Ct.customDoseFrequency),value:Ct.customDoseFrequency||"",onChange:On=>{It({...Ct,customDoseFrequency:On.target.value})},onBlur:On=>rn(On),disabled:_i,required:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"prescriptionImaging",fieldlabel:"Imaging",options:Zt,value:cn(Zt.map(On=>({label:On.label,value:On.value})),Ct.imagingFrequency&&Ct.imagingFrequency.value?Ct.imagingFrequency.value:""),onChange:On=>{const Sn=typeof On=="string"?On:On==null?void 0:On.value;It({...Ct,imagingFrequency:{value:Sn,isShown:!0}}),Or({variables:{siteId:Vr.id,imagingFrequency:Sn}})},disabled:_i}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"prescriptionImagingTechnique",fieldlabel:"Imaging Technique",options:Ut,value:cn(Ut.map(On=>({label:On.label,value:On.value})),Ct.imagingTechnique?Ct.imagingTechnique:""),onChange:On=>{const Sn=typeof On=="string"?On:On==null?void 0:On.value;It({...Ct,imagingTechnique:Sn}),Or({variables:{siteId:Vr.id,imagingTechnique:Sn}})},disabled:_i}),CurrentAppConfig.PrescriptionPage.MicrodosimetryTld&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"microdosimetryTld",fieldlabel:"In-vivo Dosimetry",options:BOOLEAN_OPTIONS$1,required:!0,value:Ct.microdosimetryTld!==null?setYesNo(Ct.microdosimetryTld):"",error:!isFieldValid$1(Ct==null?void 0:Ct.microdosimetryTld),disabled:_i,handleChange:On=>{const Sn=String(On==="yes");It({...Ct,microdosimetryTld:Sn}),Or({variables:{siteId:Vr.id,microdosimetryTld:Sn}})}}),CurrentAppConfig.PrescriptionPage.WeeklyPhysicsCheck&&jsxRuntimeExports.jsx(ROToggleButtons,{id:"weeklyPhysicsCheck",fieldlabel:"Weekly Physics Check",options:BOOLEAN_OPTIONS$1,required:!0,value:Ct.weeklyPhysicsCheck!==null?setYesNo(Ct.weeklyPhysicsCheck):"",error:!isFieldValid$1(Ct==null?void 0:Ct.weeklyPhysicsCheck),disabled:_i,handleChange:On=>{const Sn=String(On==="yes");It({...Ct,weeklyPhysicsCheck:Sn}),Or({variables:{siteId:Vr.id,weeklyPhysicsCheck:Sn}})}}),ho?vo(go):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:vo(us)}),jsxRuntimeExports.jsx("div",{className:"simulation-hr"}),jsxRuntimeExports.jsx(ROTextField,{id:"prescriptionAdditionalPrescriptionInfo",fieldlabel:"Additional Prescription Info",value:Ct.additionalPrescriptionInfo||"",onChange:On=>{It({...Ct,additionalPrescriptionInfo:On.target.value})},onBlur:On=>rn(On),disabled:_i,multiline:!0,maxRows:4}),ho&&Jo.length?jsxRuntimeExports.jsx(ManualSiteAccordion,{title:{open:"Clear & close conditional fields",closed:"See more conditional fields"},onClose:ko,readOnly:_i,open:$o,children:vo(Jo)}):null]})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onReset:()=>{pressedContinue$1=!1,zt?At(!0):Gr({variables:{siteId:parseInt(Vr.id)}})},resetText:zt?"Cancel Change":"Reset to templated values",onBack:()=>vn(),onNext:()=>gn(),nextDisabled:Jt,backDisabled:Jt})]}),jsxRuntimeExports.jsx(ROPatientCarePathSidePanel,{}),jsxRuntimeExports.jsx(ModalCpotCancel,{isOpen:Ot,submitFunction:()=>Nt(),dismissFunction:()=>At(!1)})]})]})},SubmittedPanel=({url:et,zoomLevel:tt})=>{const[rt,nt]=React$4.useState({loading:!0,error:!1});return reactExports.useEffect(()=>{nt({loading:!0,error:!1})},[et]),jsxRuntimeExports.jsx(Card$2,{variant:"outlined",sx:{width:"100%",height:"100%",padding:"0px"},children:jsxRuntimeExports.jsxs(CardContent,{sx:{height:"100%",padding:"0px",paddingBottom:"0px !important"},children:[rt.error&&jsxRuntimeExports.jsx("div",{children:"An error occurred while generating the PDF, please contact support"}),rt.loading&&jsxRuntimeExports.jsx(LoadingSpinner,{}),jsxRuntimeExports.jsx("iframe",{title:"simpage",src:et,width:"100%",height:"100%",style:{padding:"0px",border:"none"},onLoad:()=>{nt(lt=>({...lt,loading:!1}))},onError:()=>{nt({error:!0,loading:!1})},children:"This browser does not support PDFs."},tt)]})})},CAREPLAN_TEMPLATE_REQUEST_CHANGE=gql`
  mutation CareplanTemplateChange($careplanId: ID!, $status: String) {
    templateChangeRequest(careplanId: $careplanId, status: $status) {
      id
      status
    }
  }
`,RequestTemplateModal=({open:et,careplanId:tt,onClose:rt})=>{const[nt,lt]=React$4.useState(""),[ut,dt]=React$4.useState("Our team will configure the template based on your request."),[pt,ht]=React$4.useState(!1),[mt]=useMutation(CAREPLAN_TEMPLATE_REQUEST_CHANGE,{refetchQueries:[{query:GET_CAREPLAN,variables:{id:tt}}]}),xt=vt=>{lt(vt.target.value),dt("Our team will configure the template based on your request."),ht(!1)},Mt=()=>{if(nt===""){dt("This is a required field."),ht(!0);return}mt({variables:{careplanId:tt,status:nt}}).then(()=>{rt(),B$3.dark(jsxRuntimeExports.jsx("div",{children:"Request received"}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,transition:F$2,progress:void 0})})};return jsxRuntimeExports.jsx(StandardDialog,{maxWidth:"md",title:"Request careplan template change",open:et,onClose:rt,closeText:"CANCEL",onSubmit:Mt,submitText:"SEND REQUEST",children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{paddingBottom:"16px"},children:"We want to ensure your careplan templates are tailored to your needs. What would you like us to do?"}),jsxRuntimeExports.jsx(Stack$5,{children:jsxRuntimeExports.jsxs(FormControl,{error:pt,children:[jsxRuntimeExports.jsx(FormLabel,{id:"template-change-type",children:"Please choose:"}),jsxRuntimeExports.jsxs(RadioGroup,{"aria-labelledby":"template-change-type-label",name:"template-change-type-group",value:nt,onChange:xt,children:[jsxRuntimeExports.jsx(FormControlLabel,{value:"modify",control:jsxRuntimeExports.jsx(Radio,{}),label:"Modify selected template"}),jsxRuntimeExports.jsx(FormControlLabel,{value:"create",control:jsxRuntimeExports.jsx(Radio,{}),label:"Create new template"})]}),jsxRuntimeExports.jsx(FormHelperText,{children:ut})]})})]})})},REACT_APP_REGION$8=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$3=REACT_APP_REGION$8,logger$j=new Logger("SubmissionPage.tsx"),ROPatientTreatmentSubmissionPage=()=>{var Rr,wr,qr,Hr,kr,$r,yr,Or;const tt=useWindowSize().width<LARGE_DISPLAY_SIZE,{setError:rt}=useErrorModalContext(),nt=useHistory(),[lt,ut]=reactExports.useReducer((Dr,Fr)=>({...Dr,...Fr}),{submitting:!1,submissionType:CurrentAppConfig.SubmissionPage.PlanAimSubmissionType,loading:!1,error:!1}),dt=reactExports.useContext(UserContext),[pt,ht]=reactExports.useState(!1),[mt,xt]=reactExports.useState(!1),[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(!0),Rt=CurrentAppConfig.SpecialPhysicsConsultVisible,[zt,Tt]=reactExports.useState(""),[Ct,It]=reactExports.useState(!1),Dt=useRouteMatch(),{id:kt,careplanId:qt}=Dt.params,[Nt]=useMutation(TRIGGER_CPOT,{awaitRefetchQueries:!0,variables:{id:qt,cpotTriggered:!0},refetchQueries:[{query:GET_CAREPLAN,variables:{id:qt}}]}),[Yt]=useMutation(TRIGGER_CPOT,{awaitRefetchQueries:!0,variables:{id:qt,careplanStatus:"Prescription",cpotTriggered:!1},refetchQueries:[{query:GET_CAREPLAN,variables:{id:qt}}]}),[Kt]=useMutation(SUBMIT_PRESCRIPTION,{refetchQueries:[{query:GET_CAREPLAN,variables:{id:qt}},{query:GET_PEER_REVIEW,variables:{careplanId:qt}},{query:GET_SUBMISSION_PREVIEW_DOCUMENTS,variables:{careplanId:qt}}],awaitRefetchQueries:!0}),Jt=Dr=>{ut({submitting:!0,loading:!0}),Kt({variables:{id:qt,status:Dr,resubmitSimulation:Ot}}).then(()=>{ut({submitting:!1,loading:!1})})};useQuery(GET_DIAGNOSIS_FROM_CAREPLAN,{fetchPolicy:"network-only",variables:{careplanId:qt},onCompleted:Dr=>{logMissingDiagnosisCode(logger$j,Dr.careplan,"Submission")}});const{data:Qt,error:Bt}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:qt}}),{data:Ft,loading:$t}=useQuery(GET_SUBMISSION_PREVIEW_DOCUMENTS,{variables:{careplanId:qt},skip:!Qt,fetchPolicy:"network-only"}),{data:jt,error:Wt}=useQuery(USER_DATA);reactExports.useEffect(()=>{if(Bt||Wt)return rt()},[Bt,Wt]),reactExports.useEffect(()=>{if(Ft){if(Ft.previewDocuments.length===0){ut({error:!0,loading:!1});return}Tt(Ft.previewDocuments[0].previewUrl)}},[Ft]);const Ut=(Rr=Qt==null?void 0:Qt.careplan)==null?void 0:Rr.careplanStatus,Vt=["DRAFT","CPOT"].includes(Ut)||!!(hasSubmitted(Qt==null?void 0:Qt.careplan,dt.state.timezone)&&changesFromLastEdited(Qt==null?void 0:Qt.careplan));if(reactExports.useEffect(()=>{var Dr;(Dr=Qt==null?void 0:Qt.careplan)!=null&&Dr.simulationModification&&!lt.submitting&&vt(!0)},[(wr=Qt==null?void 0:Qt.careplan)==null?void 0:wr.simulationModification,lt]),usePreventUnload(Vt),!jt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const{user:Ht}=jt,Gt=Ut==="CPOT",Zt=((qr=Qt==null?void 0:Qt.careplan)==null?void 0:qr.changeType)==="CPOT"&&((Hr=Qt==null?void 0:Qt.careplan)==null?void 0:Hr.careplanStatus)==="PRESCRIPTION",Xt=!["PRESCRIPTION","CPOT"].includes(Ut)||((kr=Qt==null?void 0:Qt.careplan)==null?void 0:kr.diagnosisModification)||(($r=Qt==null?void 0:Qt.careplan)==null?void 0:$r.prescriptionModification)||((yr=Qt==null?void 0:Qt.careplan)==null?void 0:yr.simulationModification)||!CurrentAppConfig.SubmissionPage.CPOTEnabled||Ut==="CPOT",er=region$3===Region.UK&&Qt&&Qt.careplan.cied==="yes"&&(Qt.careplan.ciedPatientDependancy==="yes"||Qt.careplan.ciedLinacRequired==="yes"),nr=Qt&&Qt.careplan&&["PRESCRIPTION","PLAN_AIM","PRESCRIPTION_DIRECTIVE"].includes(Qt.careplan.careplanStatus),or=()=>CurrentAppConfig.RequestTemplateChangeActive?"Request as template":Ut==="PRESCRIPTION"&&region$3!==Region.UK?"Change Prescription on Treatment":Gt?"Cancel":"",rr=Ut==="PRESCRIPTION"||er||Zt||Gt||nr&&!changesFromLastEdited(Qt==null?void 0:Qt.careplan)||Ht.isShowcaseUser||lt.loading,cr=Ut==="PRESCRIPTION"&&!changesFromLastEdited(Qt==null?void 0:Qt.careplan)||Ht.isShowcaseUser||Ht.isRegistrar||lt.loading||Zt,ir=CurrentAppConfig.SubmissionPage.PlanAimSubmissionType,dr=ir.toLowerCase().replace(" ","-"),gr=Ft==null?void 0:Ft.previewDocuments.some(Dr=>!["Prescription","Simulation Request","Peer Review"].includes(Dr.documentType)),br=!!((Or=Qt==null?void 0:Qt.careplan)!=null&&Or.templateChangeRequested)&&region$3===Region.US,ar={nextText:ir,nextTextId:dr,nextHidden:!1,nextTooltip:!rr&&gr&&"Only Prescription/SIM request will be submitted",hideLeftButton:Ut!=="PRESCRIPTION",onReset:()=>{CurrentAppConfig.RequestTemplateChangeActive?It(!0):Gt?ht(!0):xt(!0)},resetHidden:Xt?region$3!==Region.US:!1,resetDisabled:Zt||Ht.isRegistrar||br,resetText:or(),additionalLeftText:"REQUEST AS TEMPLATE",nextDisabled:rr,backDisabled:Zt,nextLoading:lt.submitting&&lt.submissionType===CurrentAppConfig.SubmissionPage.PlanAimSubmissionType,additionRightText:"Prescription",additionRightTextId:"prescription",additionRightDisabled:cr,onNext:()=>{Jt(CurrentAppConfig.SubmissionPage.PlanAimSubmissionType)},additionRightLoading:lt.submitting&&lt.submissionType==="Prescription",onAdditionRight:()=>{Jt("Prescription")}},ur=hasSubmitted(Qt==null?void 0:Qt.careplan,dt.state.timezone)&&!changesFromLastEdited(Qt==null?void 0:Qt.careplan)?"?submission=True":"",xr=tt?"100":"130",Mr=(Ft==null?void 0:Ft.previewDocuments.filter(Dr=>!(Dr.documentType==="Simulation Request"&&!Ot)).reduce((Dr,Fr)=>(Dr[Fr.siteGroupId]||(Dr[Fr.siteGroupId]=[]),Dr[Fr.siteGroupId].push(Fr),Dr),{}))||{},Ar=Object.keys(Mr).map(Dr=>({name:Mr[Dr][0].siteGroupName,docs:Mr[Dr].map(Fr=>({documentType:Fr.documentType,previewUrl:Fr.previewUrl}))})),Ir=(changesFromLastEdited(Qt==null?void 0:Qt.careplan)||Ut==="DRAFT")&&Ar.length>0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Prompt,{when:Vt,message:Dr=>Dr.pathname.includes(Rt?"/specialPhysicsConsult":"/voluming")?!0:"This careplan has NOT been submitted. Are you sure you want to leave page without submitting?"}),Ct&&jsxRuntimeExports.jsx(RequestTemplateModal,{open:Ct,careplanId:qt,onClose:()=>It(!1)}),jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsx(CareplanBanners,{data:Qt,refetchQueriesList:[{query:GET_CAREPLAN,variables:{id:qt}}]}),jsxRuntimeExports.jsx(CareplanContainer,{className:"pdf-submission-container",children:Ir?jsxRuntimeExports.jsxs(Stack$5,{direction:"row",spacing:2,height:1,children:[jsxRuntimeExports.jsx(Card$2,{variant:"outlined",sx:{width:"240px",minWidth:"240px",height:"100%",display:"flex",flexDirection:"column"},children:jsxRuntimeExports.jsxs(CardContent,{sx:{flex:"1 1 auto",display:"flex",flexDirection:"column",overflowY:"auto",padding:"0px"},children:[jsxRuntimeExports.jsxs("div",{style:{position:"sticky",top:0,backgroundColor:"white",zIndex:1,padding:"0px"},children:[jsxRuntimeExports.jsx(Typography,{"data-testid":"page-header",variant:"h6",color:"text.primary",padding:"16px",children:"Review & Submit"}),jsxRuntimeExports.jsx(Divider$1,{})]}),jsxRuntimeExports.jsx(Stack$5,{overflow:"auto",flex:"1 1 auto",children:Ar.map((Dr,Fr)=>jsxRuntimeExports.jsxs("div",{children:[Dr.name&&jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",color:"text.primary",padding:"8px 0px 8px 20px",children:Dr.name}),Dr.docs.map((Yr,Gr)=>jsxRuntimeExports.jsx(ListItemButton,{onClick:()=>Tt(Yr.previewUrl),sx:{borderLeftColor:Yr.previewUrl===zt?"primary.main":"transparent",borderLeftWidth:"4px",borderLeftStyle:"solid",padding:"8px 0px 8px 16px",borderRadius:"4px 4px 4px 4px",backgroundColor:Yr.previewUrl===zt?"secondary.light":"default"},children:jsxRuntimeExports.jsx(Typography,{variant:"body2",color:"text.primary",children:Yr.documentType})},Gr)),Dr.name&&jsxRuntimeExports.jsx(Divider$1,{})]},Fr))})]})}),jsxRuntimeExports.jsx(Card$2,{variant:"outlined",sx:{width:"100%",height:"100%",padding:"0px"},children:!$t&&zt?jsxRuntimeExports.jsx(SubmittedPanel,{url:zt,zoomLevel:parseInt(xr)}):jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Submission",subtitle:"Please wait while we set things up for you"})})]}):jsxRuntimeExports.jsx(SubmittedPanel,{url:`/ro_portal/careplan/${qt}/prescription.pdf${ur}&type=${Ut}#zoom=${xr}`,zoomLevel:parseInt(xr)})}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{nt.push(`/radiation/patient/${kt}/careplan/${qt}/${Rt?CAREPLAN_PAGES.SPECIAL_PHYSICS_CONSULT:CAREPLAN_PAGES.VOLUMING}/last`)},...ar}),jsxRuntimeExports.jsx(ModalSimulationSubmission,{isOpen:Mt,submitFunction:Dr=>{vt(!1),At(Dr==="yes")}}),jsxRuntimeExports.jsx(ModalCpotCancel,{isOpen:pt,submitFunction:()=>Yt(),dismissFunction:()=>ht(!1)}),jsxRuntimeExports.jsx(StandardDialog,{title:"Change prescription on treatment",open:mt,onClose:()=>xt(!1),secondarySubmitText:"Simulation",closeText:"Cancel",onSecondarySubmit:()=>{Nt(),nt.push(`/radiation/patient/${kt}/careplan/${qt}/simulation`)},onSubmit:()=>{Nt(),nt.push(`/radiation/patient/${kt}/careplan/${qt}/prescription`)},submitText:"Prescription",children:jsxRuntimeExports.jsx(Typography,{paddingY:2,children:"Would you like to re-request a simulation or change in prescription?"})})]}),jsxRuntimeExports.jsx(ROSidePanel,{})]})]})},DEFAULT_LATERALITY_OPTION="Please Choose",LIST_OPTIONS$2={LATERALITY:"lateralitySite"};let pressedContinue=!1;const isFieldValid=et=>pressedContinue?validateField(et):!0,sortOptionType=(et,tt)=>et.value<tt.value?-1:et.value>tt.value?1:0,logger$i=new Logger("SiteSetupPage.tsx"),ROPatientCarePathSiteSetupPage=()=>{var qr,Hr;const et=useRouteMatch(),tt=useTheme$1(),{careplanId:rt,id:nt}=et.params,[lt,ut]=reactExports.useState(DEFAULT_OPTION$1),[dt,pt]=reactExports.useState([]),[ht,mt]=reactExports.useState([]),[xt,Mt]=reactExports.useState([]),[vt,Ot]=reactExports.useState([]),[At,Rt]=reactExports.useState({}),[,zt]=reactExports.useState(),Tt=reactExports.useCallback(()=>zt({}),[]),Ct=useHistory(),{setError:It}=useErrorModalContext(),{loading:Dt,error:kt,data:qt}=useQuery(GET_CAREPLAN_SITE_GROUPS,{fetchPolicy:"network-only",variables:{careplanId:rt}});useQuery(LOAD_CAREPLAN_LIST_DATA,{fetchPolicy:"cache-first",variables:{listCategory:[LIST_OPTIONS$2.LATERALITY],patientId:nt},onCompleted:kr=>{ut(filterListdata(kr,LIST_OPTIONS$2.LATERALITY))}});const{data:Nt,error:Yt}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:rt}});useQuery(GET_DIAGNOSIS_FROM_CAREPLAN,{fetchPolicy:"network-only",variables:{careplanId:rt},onCompleted:kr=>{logMissingDiagnosisCode(logger$i,kr.careplan,"Site Setup")}});const{data:Kt}=useQuery(SITE_NAME_VARIATION,{fetchPolicy:"network-only",variables:{careplanId:rt},skip:Dt}),Jt=(qr=Kt==null?void 0:Kt.siteNameVariation)==null?void 0:qr.variation;reactExports.useEffect(()=>{if(kt||Yt)return It()},[kt,Yt]);const[Qt]=useMutation(DELETE_SITE,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}},{query:GET_PEER_REVIEW,variables:{careplanId:rt}},{query:SITE_NAME_VARIATION,variables:{careplanId:rt}}]}),[Bt]=useMutation(DELETE_SITE_GROUP,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}},{query:GET_PEER_REVIEW,variables:{careplanId:rt}},{query:SITE_NAME_VARIATION,variables:{careplanId:rt}}]}),[Ft]=useMutation(LINK_SITE,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}},{query:GET_PEER_REVIEW,variables:{careplanId:rt}}]}),[$t]=useMutation(UNLINK_SITE,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}},{query:GET_PEER_REVIEW,variables:{careplanId:rt}}]}),[jt]=useMutation(UPDATE_SITE,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}},{query:GET_PEER_REVIEW,variables:{careplanId:rt}}]}),[Wt]=useMutation(CLEAN_SITE_GROUPS,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:LOAD_SITEGROUP_INFO,variables:{careplanId:rt}},{query:GET_PEER_REVIEW,variables:{careplanId:rt}}]}),[Ut]=useMutation(UPDATE_GROUP_LATERALITY,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}}]}),[Vt]=useMutation(UPDATE_TREATMENT_SITE,{refetchQueries:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}},{query:SITE_NAME_VARIATION,variables:{careplanId:rt}},{query:GET_PEER_REVIEW,variables:{careplanId:rt}}]}),{data:Ht}=useQuery(LIST_TREATMENT_SITES_ORDERBY_USAGE);if(reactExports.useEffect(()=>{pressedContinue=!1},[]),reactExports.useEffect(()=>{const kr=document.getElementsByClassName("icon-form-error");kr&&kr.length>0?(kr[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),kr[0].focus({preventScroll:!0})):pressedContinue=!1}),Dt)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Site Setup",subtitle:"Please wait while we set things up for you"});const{siteGroupsByCareplan:Gt}=qt;if(!Gt)return jsxRuntimeExports.jsx("div",{});const Zt=Gt,Xt=kr=>ht.findIndex($r=>$r.id===kr),er=((Hr=Ht==null?void 0:Ht.mostUsedSiteReferenceList)==null?void 0:Hr.map(kr=>({label:kr.treatmentSite,value:kr.treatmentSite})))||[],nr=(kr,$r,yr=!0)=>{const Or=ht,Dr=Xt(kr);Dr!==-1&&Or.splice(Dr,1),Or.push({id:kr,value:$r}),mt(Or),yr&&jt({variables:{siteId:kr,laterality:$r}})},or=(kr,$r)=>{if(Xt(kr)!==-1)return ht[Xt(kr)].value;if($r&&$r.length!==0){const yr=JSON.parse($r[0].value);if(yr)return yr}return DEFAULT_LATERALITY_OPTION},rr=(kr,$r)=>{const yr=xt;if(yr.push($r),Mt(yr),kr.siteSet&&kr.siteSet.length===1){const Or=vt;Or.push(kr.id),Ot(Or)}if(kr.siteSet&&kr.siteSet.length>1&&!kr.siteSet.map(Dr=>yr.includes(Dr.id)).includes(!1)){const Dr=vt;Dr.push(kr.id),Ot(Dr)}},cr=kr=>{const $r=kr.sitevaluesSet.filter(yr=>yr.field.name==="Location");return $r[0]?JSON.parse($r[0].value):""},ir=(kr,$r)=>{const yr=dt.findIndex(Dr=>Dr.id===kr),Or=[...dt];yr>=0?Or[yr].value=$r:Or.push({id:kr,value:$r}),pt(Or)},dr=(kr,$r)=>{const yr=dt.find(Or=>Or.id===kr);return yr?yr.value:$r},gr=kr=>{const $r=cr(kr),yr=dr(kr.id,cr(kr));return $r!==yr?!1:!!$r},br=(kr,$r)=>{if(kr.siteSet.length in[0,1])Bt({variables:{id:kr.id}});else{const yr=xt;yr.push($r),Mt(yr),Qt({variables:{id:$r}})}},ar=!Zt.map(kr=>kr.siteSet.map($r=>isSpecifySite($r.treatmentSite.treatmentSite)?gr($r):!0)).reduce((kr,$r)=>kr.concat($r),[]).includes(!1),ur=!Zt.map(kr=>kr.siteSet.map($r=>{const yr=$r.sitevaluesSet.filter(Or=>Or.field.name==="Laterality");return yr&&yr.length?!!yr[0].value:!1})).reduce((kr,$r)=>kr.concat($r),[]).includes(!1),xr=()=>pressedContinue&&ar&&ur,Mr=(kr,$r,yr)=>{const Or=parseInt(kr),Dr=parseInt($r);$t({variables:{siteId:yr,careplanId:Or,originalSiteGroupId:Dr}})},Ar=(kr,$r)=>{Ft({variables:{siteGroupId:kr,siteId:$r}})},Ir=kr=>!vt.includes(kr.id),Rr=kr=>{const $r=kr.siteSet.map((Or,Dr)=>{if(Dr<3)return getSiteRepresentation(Or)}).filter(Boolean),yr=kr.siteSet.length-$r.length===1?"site":"sites";return kr.siteSet.length-$r.length!==0?$r.join(", ")+` + ${kr.siteSet.length-$r.length} ${yr}`:$r.join(", ")},wr=kr=>{const $r=templatesWithValues(Zt);for(let yr=0;yr<$r.length;yr++)if(kr!==yr)return!0;return!1};return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[Dt&&jsxRuntimeExports.jsx("div",{className:"main-container",children:"Loading "}),jsxRuntimeExports.jsx(CareplanBanners,{data:Nt,variation:Jt,refetchQueriesList:[{query:GET_CAREPLAN_SITE_GROUPS,variables:{careplanId:rt}},{query:GET_CAREPLAN,variables:{id:rt}},{query:SITE_NAME_VARIATION,variables:{careplanId:rt}}]}),jsxRuntimeExports.jsxs(CareplanContainer,{className:"carepath-site-setup-page",children:[jsxRuntimeExports.jsxs("div",{className:"page-header",children:[jsxRuntimeExports.jsx(Typography,{variant:"h5","data-testid":"site-setup-header",children:"Site Setup"}),jsxRuntimeExports.jsx(Typography,{color:tt.palette.text.secondary,paddingTop:1,variant:"body1",children:"Treatment groups share the same simulation and voluming details. Prescription details are associated with individual treatment sites."})]}),jsxRuntimeExports.jsxs(Container$8,{className:"site-setup-page-sites-container",children:[jsxRuntimeExports.jsxs(Grid,{container:!0,sx:{background:tt.palette.grey[100]},children:[jsxRuntimeExports.jsx(Grid,{sx:{padding:"16px"},xs:3,item:!0,children:jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px"},variant:"subtitle1",children:"Treatment Site*"})},"treatmentSite"),jsxRuntimeExports.jsx(Grid,{sx:{padding:"16px"},xs:3,item:!0,children:jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px"},variant:"subtitle1",children:"Laterality*"})},"laterality"),jsxRuntimeExports.jsx(Grid,{sx:{padding:"16px"},xs:6,item:!0,children:jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px"},variant:"subtitle1",children:"Action"})},"action")]}),templatesWithValues(Zt).map((kr,$r)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Ir(kr)&&jsxRuntimeExports.jsx(Grid,{container:!0,className:"site-setup-page-template-header",children:jsxRuntimeExports.jsx(Grid,{item:!0,md:12,children:jsxRuntimeExports.jsxs(Typography,{variant:"body1",paddingLeft:2,paddingTop:1,paddingBottom:1,className:"site-setup-template-group-header",children:[`Treatment Group ${$r+1}`,": ",Rr(kr)]})},`col-${$r}`)},`row-${$r}`),kr.siteSet.map((yr,Or)=>{const Dr=yr.sitevaluesSet.filter(Jr=>Jr.field.name==="Laterality"),Fr=or(yr.id,Dr)!==DEFAULT_LATERALITY_OPTION,Yr=!isFieldValid(Fr),Gr=!isFieldValid(dr(yr.id,cr(yr)));return xt.indexOf(yr.id)!==-1?jsxRuntimeExports.jsx(reactExports.Fragment,{},`frag-${Or}`):jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"center",sx:{border:`1px solid ${tt.palette.grey[300]}`,borderTop:"none"},children:[jsxRuntimeExports.jsxs(Grid,{sx:{padding:"16px"},item:!0,xs:3,children:[jsxRuntimeExports.jsx(BaseAutocomplete,{id:"treatmentSites",options:[...er].sort(sortOptionType),value:getOptionByValue(er,yr.treatmentSite.treatmentSite),onChange:Jr=>{const jr=typeof Jr=="string"?Jr:Jr==null?void 0:Jr.value;Vt({variables:{siteId:yr.id,treatmentSite:jr||""}})},disableClearable:!0,inputProps:{error:!isFieldValid(yr.treatmentSite.treatmentSite),helperText:isFieldValid(yr.treatmentSite.treatmentSite)?"":"Please select a treatment site"}}),isSpecifySite(yr.treatmentSite.treatmentSite)&&jsxRuntimeExports.jsx("div",{className:`ro-site-setup-location ${Gr?"invalid":"valid"}`,children:jsxRuntimeExports.jsx(BaseTextField,{id:"location",fullWidth:!0,placeholder:"Please specify location",value:dr(yr.id,cr(yr)),onChange:Jr=>{ir(yr.id,Jr.target.value)},onBlur:()=>{jt({variables:{siteId:yr.id,location:dr(yr.id,yr.location)}})},error:Gr,required:!0,sx:{paddingBottom:"20px"}})})]},`site-col-loca-${Or}`),jsxRuntimeExports.jsxs(Grid,{sx:{padding:"12px"},item:!0,xs:3,children:[jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:jsxRuntimeExports.jsx(BaseSelect,{"data-testid":`laterality-${$r}-${Or}`,error:Yr,helperText:"Please choose a laterality",id:`laterality-${$r}-${Or}`,onChange:Jr=>{or(yr.id,Dr)!==Jr.target.value&&Rt(jr=>({...jr,[kr.id]:yr.id})),nr(yr.id,Jr.target.value,!0)},value:or(yr.id,Dr),placeholder:"Please Choose",variant:"standard",sx:{fontSize:"14px",color:Yr?tt.palette.error.main:"initial",borderColor:tt.palette.primary.main,fontWeight:Yr?"bold":"initial",width:"180px",paddingLeft:"0"},options:lt,inputProps:{fontSize:"14px"}})},`site-col-lat-${Or}`),kr.siteSet.length>1&&At.hasOwnProperty(kr.id)&&At[kr.id]===yr.id&&jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{cursor:"pointer",marginTop:"4px",":hover":{textDecoration:"underline"}},onClick:()=>{const Jr=or(yr.id,Dr);Ut({variables:{siteGroupId:kr.id,siteId:yr.id,laterality:Jr}}),kr.siteSet.forEach(jr=>{nr(jr.id,Jr,!1)}),Rt({})},children:"Apply to all"})]}),jsxRuntimeExports.jsx(Grid,{sx:{padding:"12px"},item:!0,xs:6,children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"},children:[wr($r)&&jsxRuntimeExports.jsx(Stack$5,{direction:"column",alignItems:"center",children:templatesWithValues(Zt).map((Jr,jr)=>$r!==jr?jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",sx:{cursor:"pointer"},gap:1,onClick:()=>{Ar(Jr.id,yr.id)},children:[jsxRuntimeExports.jsx(Link$1,{color:"primary",sx:{":hover":{fillOpacity:.75}}}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Move to"}),jsxRuntimeExports.jsx(Typography,{variant:"body1",children:`Treatment group ${jr+1}`})]},jr+"move_text"):jsxRuntimeExports.jsx(reactExports.Fragment,{},jr+"move_text"))}),kr.siteSet.length>1&&jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:1,style:{cursor:"pointer"},onClick:()=>{Mr(rt,kr.id,yr.id)},children:[jsxRuntimeExports.jsx(LinkOff,{color:"primary",sx:{":hover":{fillOpacity:.75}}}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Detach from group"})]}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",sx:{cursor:"pointer"},gap:1,onClick:()=>{rr(kr,yr.id),br(kr,yr.id)},children:[jsxRuntimeExports.jsx(DeleteOutline,{color:"error",sx:{":hover":{fillOpacity:.75}}}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Delete"})]})]})},`site-col-setup-${Or}`)]},`site-${Or}`)})]},`${$r}`))]})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{Wt({variables:{careplanId:rt}}),Ct.push(`/radiation/patient/${nt}/careplan/${rt}/${CAREPLAN_PAGES.TEMPLATE_SELECTION}`)},onNext:()=>{pressedContinue=!0,Tt(),xr()&&(Wt({variables:{careplanId:rt}}),Ct.push(`/radiation/patient/${nt}/careplan/${rt}/${CAREPLAN_PAGES.SIMULATION}`))},nextDisabled:Zt&&Zt.length===0})]}),jsxRuntimeExports.jsx(ROPatientCarePathSidePanel,{})]})})};var baseKeys=_baseKeys,getTag$1=_getTag,isArguments=isArguments_1,isArray$2=isArray_1,isArrayLike$1=isArrayLike_1,isBuffer=isBufferExports,isPrototype=_isPrototype,isTypedArray=isTypedArray_1,mapTag="[object Map]",setTag="[object Set]",objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty;function isEmpty(et){if(et==null)return!0;if(isArrayLike$1(et)&&(isArray$2(et)||typeof et=="string"||typeof et.splice=="function"||isBuffer(et)||isTypedArray(et)||isArguments(et)))return!et.length;var tt=getTag$1(et);if(tt==mapTag||tt==setTag)return!et.size;if(isPrototype(et))return!baseKeys(et).length;for(var rt in et)if(hasOwnProperty.call(et,rt))return!1;return!0}var isEmpty_1=isEmpty;const isEmpty$1=getDefaultExportFromCjs$1(isEmpty_1);var baseIteratee$1=_baseIteratee,isArrayLike=isArrayLike_1,keys=keys_1;function createFind$1(et){return function(tt,rt,nt){var lt=Object(tt);if(!isArrayLike(tt)){var ut=baseIteratee$1(rt);tt=keys(tt),rt=function(pt){return ut(lt[pt],pt,lt)}}var dt=et(tt,rt,nt);return dt>-1?lt[ut?tt[dt]:dt]:void 0}}var _createFind=createFind$1;function baseFindIndex$1(et,tt,rt,nt){for(var lt=et.length,ut=rt+(nt?1:-1);nt?ut--:++ut<lt;)if(tt(et[ut],ut,et))return ut;return-1}var _baseFindIndex=baseFindIndex$1,reWhitespace=/\s/;function trimmedEndIndex$1(et){for(var tt=et.length;tt--&&reWhitespace.test(et.charAt(tt)););return tt}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(et){return et&&et.slice(0,trimmedEndIndex(et)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$3=isObject_1,isSymbol$2=isSymbol_1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$2(et){if(typeof et=="number")return et;if(isSymbol$2(et))return NAN$1;if(isObject$3(et)){var tt=typeof et.valueOf=="function"?et.valueOf():et;et=isObject$3(tt)?tt+"":tt}if(typeof et!="string")return et===0?et:+et;et=baseTrim(et);var rt=reIsBinary$1.test(et);return rt||reIsOctal$1.test(et)?freeParseInt$1(et.slice(2),rt?2:8):reIsBadHex$1.test(et)?NAN$1:+et}var toNumber_1=toNumber$2,toNumber$1=toNumber_1,INFINITY$1=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(et){if(!et)return et===0?et:0;if(et=toNumber$1(et),et===INFINITY$1||et===-INFINITY$1){var tt=et<0?-1:1;return tt*MAX_INTEGER}return et===et?et:0}var toFinite_1=toFinite$1,toFinite=toFinite_1;function toInteger$1(et){var tt=toFinite(et),rt=tt%1;return tt===tt?rt?tt-rt:tt:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee=_baseIteratee,toInteger=toInteger_1,nativeMax$1=Math.max,nativeMin$1=Math.min;function findLastIndex$1(et,tt,rt){var nt=et==null?0:et.length;if(!nt)return-1;var lt=nt-1;return rt!==void 0&&(lt=toInteger(rt),lt=rt<0?nativeMax$1(nt+lt,0):nativeMin$1(lt,nt-1)),baseFindIndex(et,baseIteratee(tt),lt,!0)}var findLastIndex_1=findLastIndex$1,createFind=_createFind,findLastIndex=findLastIndex_1,findLast$1=createFind(findLastIndex),findLast_1=findLast$1;const findLast$2=getDefaultExportFromCjs$1(findLast_1),preparePageTransition=()=>{ScrollToTop(document)},ROPatientSpecialPhysicsConsultPage=()=>{const et=useHistory(),tt=useRouteMatch(),{id:rt,careplanId:nt,siteGroupIdx:lt}=tt.params,{setError:ut}=useErrorModalContext(),[dt,pt]=reactExports.useState([]),[ht,mt]=reactExports.useState({}),[xt,Mt]=reactExports.useState(!0),{data:vt,error:Ot}=useQuery(GET_CAREPLAN,{fetchPolicy:"network-only",variables:{id:nt}}),{data:At}=useQuery(LOAD_TREATMENTINFO,{variables:{id:nt}}),[Rt,{data:zt,error:Tt,loading:Ct}]=useLazyQuery(GET_CAREPLAN_SITE_GROUPS,{variables:{careplanId:nt},onCompleted:Wt=>Ft(Wt),fetchPolicy:"no-cache"});let It=lt?parseInt(lt):0;zt&&lt==="last"&&(It=zt.siteGroupsByCareplan.length-1);const Dt=zt&&zt.siteGroupsByCareplan[It];reactExports.useEffect(()=>{Mt(!0),Rt()},[lt,It]);const kt=Wt=>{const Ut={},Vt=[...Wt],Ht=zt.siteGroupsByCareplan[It],Gt=Ht.siteSet.map(or=>{var rr;return(rr=or.sitevaluesSet.find(cr=>cr.field.name==="Technique"))==null?void 0:rr.value}),Zt=Ht.siteSet.map(or=>{var rr;return(rr=or.sitevaluesSet.find(cr=>cr.field.name==="Microdosimetry_Tld"))==null?void 0:rr.value}),Xt=/\b(IMRT|VMAT)\b/,er=Ht.imagingList.length>0,nr=Gt.every(or=>Xt.test(or));Vt.forEach((or,rr,cr)=>{switch(or.fieldName){case"Pregnancy_Analyze_Fetal_Dose":Ut[or.fieldName]=(At==null?void 0:At.careplan.pregnancy)==="yes";break;case"Analyze_Dose_Implanted_Device":Ut[or.fieldName]=(At==null?void 0:At.careplan.cied)==="yes";break;case"Cumulative_Dose_Critical_Organs":Ut[or.fieldName]=(At==null?void 0:At.careplan.previousRadioTreatment)==="yes";break;case"Brachytherapy_Treatment_Physical_Presence":Ut[or.fieldName]=Gt.includes('"HDR"');break;case"Photon_Electron_Treatment":Ut[or.fieldName]=Zt.includes('"true"');break;case"Physics_3D_Image":Ut[or.fieldName]=er&&!nr;break;default:Ut[or.fieldName]=!1}cr[rr].value=Ut[or.fieldName]}),mt(Ut),pt(Vt),Mt(!1)},[qt,{data:Nt}]=useLazyQuery(GET_QUESTION,{variables:{type:"special_physics_consult"},onCompleted:Wt=>{const Ut=JSON.parse(Wt.questionByType.values);pt(Ut),kt(Ut)},fetchPolicy:"no-cache"}),[Yt]=useMutation(UPDATE_SPECIAL_PHYSICS_CONSULT,{refetchQueries:[{query:GET_CAREPLAN,variables:{id:nt}}]}),Kt=Wt=>{Yt({variables:{siteGroupId:Dt==null?void 0:Dt.id,value:JSON.stringify(Wt)}})},Jt=Wt=>{if(Dt&&Dt.id){const Ut=[...dt];Ut.forEach((Vt,Ht,Gt)=>{const Zt=Vt==null?void 0:Vt.fieldName;Zt&&(Gt[Ht].value=Wt[Zt]),(Gt[Ht].subQuestions||[]).forEach((er,nr,or)=>{const rr=er==null?void 0:er.fieldName;rr&&(or[nr].value=Wt==null?void 0:Wt[`${Zt}@@@${rr}`])})}),Kt(Ut)}};reactExports.useEffect(()=>{if(zt||Nt||Ot)return ut()},[Tt,Nt,Ot]);const[Qt,Bt]=reactExports.useState();reactExports.useEffect(()=>{if(!isEmpty$1(Dt)){const Wt=Dt&&Dt.siteSet?Dt.siteSet.map(Ut=>{const Vt=Ut.sitevaluesSet.reduce((Gt,Zt)=>Zt.field.name==="Location"?JSON.parse(Zt.value):Gt,""),Ht=Ut.sitevaluesSet.reduce((Gt,Zt)=>Zt.field.name==="Laterality"?JSON.parse(Zt.value):Gt,"");return getTreatmentSiteHeader({treatmentSite:Ut.treatmentSite.treatmentSite,location:Vt,laterality:Ht})}).join(", "):"";Bt(Wt)}},[Dt]);const Ft=Wt=>{const Ut=Wt.siteGroupsByCareplan[It].sitegroupvaluesSet,Vt=findLast$2(Ut,function(Ht){return Ht.field.name==="Special_Physics_Consult"});if(Vt)try{const Ht=JSON.parse(JSON.parse(Vt.value));if(Ht&&!isEmpty$1(Ht)){const Gt={};Ht.forEach(Zt=>{Gt[Zt.fieldName]=Zt.value;const Xt=Zt.subQuestions;Xt==null||Xt.forEach(er=>{Gt[`${Zt.fieldName}@@@${er.fieldName}`]=er.value})}),mt(Gt),pt(Ht),Mt(!1);return}}catch{qt();return}qt()},$t=()=>{var Ut;preparePageTransition();const Wt=It-1;if(Wt===-1){const Vt=((Ut=zt==null?void 0:zt.siteGroupsByCareplan)==null?void 0:Ut.length)-1||0;et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.VOLUMING}/${Vt}`)}else et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.SPECIAL_PHYSICS_CONSULT}/${Wt}`)},jt=()=>{var Ut;if(preparePageTransition(),Kt(dt),It===((Ut=zt==null?void 0:zt.siteGroupsByCareplan)==null?void 0:Ut.length)-1)et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.SUBMISSION}`);else{const Vt=It+1;et.push(`/radiation/patient/${rt}/careplan/${nt}/${CAREPLAN_PAGES.SPECIAL_PHYSICS_CONSULT}/${Vt}`)}};return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsx(CareplanBanners,{data:vt}),jsxRuntimeExports.jsx(CareplanContainer,{children:xt?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Special Physics Consult",subtitle:"Please wait while we set things up for you"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"page-header",children:[jsxRuntimeExports.jsxs("h1",{children:["Special Physics Consult: ",Qt]}),jsxRuntimeExports.jsx("h2",{children:"Please select the following applicable options."})]}),!isEmpty$1(ht)&&jsxRuntimeExports.jsx(Formik,{enableReinitialize:!0,initialValues:ht,onSubmit:()=>{},children:({values:Wt,setFieldValue:Ut})=>dt.map((Vt,Ht)=>{var er;const Gt=()=>{var nr;(nr=Vt==null?void 0:Vt.subQuestions)==null||nr.map(or=>Ut(`${Vt.fieldName}@@@${or.fieldName}`,""))},Zt=(nr,or)=>{const rr={...Wt};return rr[nr]=or,rr},Xt=nr=>{Ut(Vt.fieldName,nr),Jt(Zt(Vt.fieldName,nr)),nr||Gt()};return jsxRuntimeExports.jsxs(React$4.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(CheckboxTile,{id:`checkbox-${Ht}`,"data-cy":`special-physics-tile-${Ht}`,name:Vt.fieldName,checked:Wt[Vt.fieldName],label:Vt.label,onChange:Xt})}),jsxRuntimeExports.jsx("div",{className:"subquestions-container",children:Wt[Vt.fieldName]&&((er=Vt.subQuestions)==null?void 0:er.map((nr,or)=>jsxRuntimeExports.jsx("div",{className:`subquestion-text-area-container${or===Vt.subQuestions.length-1?"-last":""}`,style:{paddingBottom:or===Vt.subQuestions.length-1?"0px!important":void 0},children:jsxRuntimeExports.jsx(ROTextField,{className:"special-physics-consult-text-area","data-test-id":`special-physics-tile-${Ht}-textbox-${or}`,id:`${Vt.fieldName}-${nr.fieldName}`,fieldlabel:nr.label,value:Wt[`${Vt.fieldName}@@@${nr.fieldName}`],onChange:rr=>{const cr=rr.target.value,ir=`${Vt.fieldName}@@@${nr.fieldName}`;Ut(ir,cr)},onBlur:rr=>{const cr=rr.target.value,ir=`${Vt.fieldName}@@@${nr.fieldName}`;Ut(ir,cr),Jt(Zt(ir,cr))}})},`question-${Ht}-subquestion-${or}`)))})]},`question-${Ht}`)})})]})}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>$t(),onNext:()=>jt(),nextDisabled:Ct,backDisabled:Ct})]}),jsxRuntimeExports.jsx(ROPatientCarePathSidePanel,{})]})})},ROPatientCarePlanPageRouter=()=>{const et=CurrentAppConfig.SpecialPhysicsConsultVisible;return jsxRuntimeExports.jsx(PeerReviewProvider,{children:jsxRuntimeExports.jsxs(Switch$2,{children:[et&&jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGES.SPECIAL_PHYSICS_CONSULT}/:siteGroupIdx?`,component:ROPatientSpecialPhysicsConsultPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGES.VOLUMING}/:siteGroupIdx?`,component:ROPatientVolumingPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGES.SUBMISSION}`,component:ROPatientTreatmentSubmissionPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGES.PRESCRIPTION}/:siteIdx?`,component:ROPatientPrescriptionPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGES.SIMULATION}/:siteGroupIdx?`,component:ROPatientTreatmentSimulationPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGES.TEMPLATE_SELECTION}`,component:ROPatientCarePathTemplatePage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGES.TREATMENT_INFO}`,component:ROPatientTreatmentInfoPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGES.SITESETUP}`,component:ROPatientCarePathSiteSetupPage}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/careplan/:careplanId/",component:ROPatientDiagnosisPage})]})})},routedComponent$a=withRouter(ROPatientCarePlanPageRouter),CareplanApollo$1=()=>{var Jt,Qt;const{setError:et}=useErrorModalContext(),tt=useRouteMatch(),rt=useLocation(),{values:nt,setFieldValue:lt}=useFormikContext(),[ut,{called:dt}]=useMutation(CREATE_DIAGNOSIS_INTAKE),{diagnosis:pt,intake:ht,intakePage:mt}=nt,{dispatch:xt}=reactExports.useContext(ROPatientCarePlanContext),{id:Mt,careplanId:vt}=tt.params;useQuery(GET_ORDERED_DIAGNOSIS_LIST,{variables:{isPrimaryDiagnosis:rt.pathname.includes("primary"),patientId:Mt},skip:vt==="create",fetchPolicy:"cache-and-network"}),useQuery(GET_ICD10_CATEGORY_LIST,{variables:{isPrimaryDiagnosis:rt.pathname.includes("primary")},fetchPolicy:"cache-and-network"}),useQuery(GET_CLINEX_CODES,{variables:{patientId:Mt},fetchPolicy:"cache-and-network"}),useQuery(LOAD_TREATMENT_LIST_DATA,{variables:{listCategory:[LIST_OPTIONS$4.CHEMO_WHERE,LIST_OPTIONS$4.INTENT,LIST_OPTIONS$4.TREATING_DEPARTMENT,LIST_OPTIONS$4.CHEMO_SEQUENCING,LIST_OPTIONS$4.PREVIOUS_MDT,LIST_OPTIONS$4.BRACHY_WHERE,LIST_OPTIONS$4.BRACHY_SEQUENCING],patientId:Mt},fetchPolicy:"cache-and-network"});const{data:Ot,error:At}=useQuery(GET_DIAGNOSIS_FROM_CAREPLAN,{fetchPolicy:"cache-and-network",variables:{careplanId:vt},skip:!vt||vt==="create"}),Rt=rt.pathname.split("/"),zt=Rt.indexOf("diagnosis"),Tt=zt>0?Rt[zt+1]:null,Ct=Tt&&Tt!=="create"?Tt:Ot?(Qt=(Jt=Ot==null?void 0:Ot.careplan)==null?void 0:Jt.diagnosis)==null?void 0:Qt.id:null,{error:It}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:Ct},fetchPolicy:"cache-and-network",skip:!Ct||Ct==="create",onCompleted:Bt=>lt("diagnosis",Bt==null?void 0:Bt.diagnosis)}),{error:Dt}=useQuery(LOAD_TREATMENTINFO,{variables:{id:vt},skip:vt==="create",onCompleted:Bt=>lt("treatmentInfo",Bt==null?void 0:Bt.careplan)}),{data:kt,error:qt}=useQuery(GET_DIAGNOSIS_INTAKE,{variables:{diagnosisId:pt==null?void 0:pt.id},skip:!(pt!=null&&pt.id)||(pt==null?void 0:pt.id)==="create",fetchPolicy:"cache-and-network",onCompleted:Bt=>lt("intake",Bt==null?void 0:Bt.intake)}),{data:Nt,error:Yt}=useQuery(GET_INTAKE_CODE_MAPPING,{fetchPolicy:"cache-and-network"}),Kt=Yt||At||It||Dt||qt;return reactExports.useEffect(()=>{if(Kt)return et()},[Kt]),reactExports.useEffect(()=>{var Bt;if(pt&&ht&&pt.id&&mt&&!ht[(Bt=intakePageMapping[mt])==null?void 0:Bt.key]&&!dt){const{createVariable:Ft}=intakePageMapping[mt];ut({variables:{diagnosisId:pt.id,careplanId:vt,intakeData:Ft}}).then($t=>{lt("intake",{...$t.data.createIntake.intake,id:pt.id})})}},[nt.intake,nt.diagnosis]),reactExports.useEffect(()=>{var Bt,Ft;if(((Bt=Nt==null?void 0:Nt.intakeCodeMapping)==null?void 0:Bt.length)>0&&pt){const $t=Nt.intakeCodeMapping.reduce((Ut,Vt)=>{const Ht=Vt.intake.name,Gt=Vt.diagnosisCode.diagnosisCode;return Ut[Gt]=Ht,Ut},{});xt({type:CarePlanActionType.SET_INTAKE_CODE_MAPPING,payload:{...$t}});const jt=pt!=null&&pt.isPrimaryDiagnosis?pt:pt==null?void 0:pt.relatedPrimaryDiagnosis,Wt=codeToIntakePageMapping(jt!=null&&jt.diagnosisCode?(Ft=jt==null?void 0:jt.diagnosisCode)==null?void 0:Ft.diagnosisCode:"",{...$t});lt("intakePage",Wt)}},[pt,Nt]),jsxRuntimeExports.jsx(routedComponent$a,{})},CarePlanActions=(et,tt)=>{switch(tt.type){case CarePlanActionType.SET_CAREPLAN_SITES:return{...et,template:[...et.template,tt.payload.template]};case CarePlanActionType.SET_CAREPLAN:return{...et,careplan:{...tt.payload}};case CarePlanActionType.SET_TREATMENT_INFO:return{...et,careplan:{...et.careplan,treatmentInfo:{...tt.payload}}};case CarePlanActionType.SET_CAREPLAN_TEMPLATE:return{...et,template:tt.payload};case CarePlanActionType.SET_INTAKE_CODE_MAPPING:return{...et,intakePageMapping:tt.payload};default:return et}},intakeValidation=create$3({intake:create$3().shape({breast:create$3().shape({grade:create$6().required(),er:create$6().required(),pgr:create$6().required(),her2:create$6().required()}).nullable().default(null),lung:create$3().shape({weightLoss:create$6().required(),smokingHistory:create$6().required(),egfr:create$6().required(),alk:create$6().required(),pdl1:create$6().required()}).nullable().default(null),lymphoma:create$3().shape({stage:create$6().required(),aOrBSymptoms:create$6().required(),extranodal:create$6().required(),bulkDisease:create$6().required()}).nullable().default(null),headAndNeck:create$3().shape({p16:create$6().required(),smokingHistory:create$6().required()}).nullable().default(null)}).nullable().default(null)}),StyledLink$3=styled$1(Link$2)`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 16px;
  text-decoration: none;
  border-bottom: solid 1px ${et=>et.theme.palette.grey[300]};
  transition: border-color 0.15s ease-in-out;

  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
`,PatientSummaryLink=()=>{const et=useRouteMatch(),{id:tt,oncologyType:rt}=et.params,nt=generatePath(`/${rt}/patient/${tt}/summary`),lt=useTheme$1();return jsxRuntimeExports.jsx(StyledLink$3,{to:nt,children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:2,alignItems:"center",children:[jsxRuntimeExports.jsx(ArrowBack,{color:"primary"}),jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"Back"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",color:lt.palette.text.secondary,children:"Patient summary"})]})]})})},logger$h=new Logger("ROPatientCarePlanPage"),getDiagnosisCode=et=>{var rt,nt,lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At;const tt=[];return et!=null&&et.isPrimaryDiagnosis&&tt.push({type:"Primary",code:(rt=et==null?void 0:et.diagnosisCode)==null?void 0:rt.diagnosisCode,name:(lt=(nt=et==null?void 0:et.diagnosisCode)==null?void 0:nt.tumourStream)==null?void 0:lt.name,description:(ut=et==null?void 0:et.diagnosisCode)==null?void 0:ut.diagnosisDescription}),(et==null?void 0:et.isPrimaryDiagnosis)===!1&&(tt.push({type:"Metastasis",code:(dt=et==null?void 0:et.diagnosisCode)==null?void 0:dt.diagnosisCode,description:(pt=et==null?void 0:et.diagnosisCode)==null?void 0:pt.diagnosisDescription}),et!=null&&et.relatedPrimaryDiagnosis&&tt.push({type:"Primary",code:(mt=(ht=et==null?void 0:et.relatedPrimaryDiagnosis)==null?void 0:ht.diagnosisCode)==null?void 0:mt.diagnosisCode,name:(vt=(Mt=(xt=et==null?void 0:et.relatedPrimaryDiagnosis)==null?void 0:xt.diagnosisCode)==null?void 0:Mt.tumourStream)==null?void 0:vt.name,description:(At=(Ot=et==null?void 0:et.relatedPrimaryDiagnosis)==null?void 0:Ot.diagnosisCode)==null?void 0:At.diagnosisDescription})),[...tt].sort(Rt=>Rt.type==="Primary"?-1:1)},ROPatientCarePlanPage=()=>{const{setPanelShow:et}=reactExports.useContext(UserContext),tt=useHistory(),rt=useLocation(),nt=useRouteMatch(),{id:lt,careplanId:ut,oncologyType:dt}=nt.params,[pt]=useMutation(CREATE_CAREPLAN),[ht]=useMutation(UPDATE_CAREPLAN_LAST_PAGE),mt=(At,Rt)=>{pt({variables:{diagnosisId:At,patientId:Rt}}).then(zt=>{logger$h.info("New Careplan created: "+zt.data.createCareplan.careplan.id);const Tt=zt.data.createCareplan.careplan.id;tt.push(`/${dt}/patient/${Rt}/careplan/${Tt}/${CAREPLAN_PAGES.TREATMENT_INFO}`)},zt=>{logger$h.error(zt)})},[xt,Mt]=reactExports.useReducer(CarePlanActions,{...DEFAULT_CAREPLAN_STATE,createCarePlan:mt,history:tt});reactExports.useEffect(()=>{et(!0)},[]),reactExports.useEffect(()=>{ut&&ut!=="create"&&ht({variables:{id:nt.params.careplanId,latestPageUrl:rt.pathname}})},[rt.pathname]),reactExports.useEffect(()=>{const{id:At,careplanId:Rt}=nt.params;Rt&&Rt!=="create"?Mt({type:CarePlanActionType.SET_CAREPLAN,payload:{...xt.careplan,id:Rt}}):rt.pathname===`/${dt}/patient/${At}/careplan/create`&&Mt({type:CarePlanActionType.SET_CAREPLAN,payload:{...xt.careplan,id:""}})},[nt.params.careplanId]);const vt=reactExports.useMemo(()=>({state:xt,dispatch:Mt}),[xt,Mt]),Ot={diagnosis:null,intake:null,intakePage:"",treatmentInfo:null,user:null};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROPatientCarePlanContext.Provider,{value:vt,children:jsxRuntimeExports.jsx(ClinexProvider,{children:jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(Formik,{initialValues:Ot,onSubmit:()=>{},validationSchema:intakeValidation,children:()=>jsxRuntimeExports.jsxs("div",{className:"RO-home-wrapper",children:[jsxRuntimeExports.jsxs(ROSideNav,{children:[jsxRuntimeExports.jsx(PatientSummaryLink,{}),jsxRuntimeExports.jsx(ROPatientDiagnosisSteps$1,{})]}),jsxRuntimeExports.jsxs("div",{className:"RO-create-pat-content",children:[jsxRuntimeExports.jsx(PatientCard,{id:lt}),jsxRuntimeExports.jsx(CareplanApollo$1,{})]})]})})})})}),jsxRuntimeExports.jsx(Q$1,{limit:3})]})};class RegistrationFileAttachments extends reactExports.Component{constructor(rt){super(rt);Nr(this,"completeFileUpload",()=>{this.setState({fileUploaded:!0})});Nr(this,"incompleteFileUpload",()=>{this.setState({fileUploaded:!1})});Nr(this,"closeUploadInfoErrorModal",()=>{this.setState({uploadInfoErrorModalOpen:!1})});Nr(this,"openUploadInfoErrorModal",()=>{this.setState({uploadInfoErrorModalOpen:!0})});Nr(this,"renderContents",()=>{const{attachments:rt,user:nt,documentTypeRefData:lt,refetchCallback:ut,isPso:dt,updateAttachmentAcknowledged:pt,validateOnLoad:ht}=this.props,mt=region===Region.AU?"Document Upload":"Attachments";return jsxRuntimeExports.jsxs("div",{className:"form-page form-registration-information-notice",children:[jsxRuntimeExports.jsx("form",{className:"form-container",children:jsxRuntimeExports.jsx("div",{className:"form-heading",children:mt})}),jsxRuntimeExports.jsx(apolloComponent$t,{refetchCallback:ut,documentTypeRefData:lt,patient:rt,user:nt,fileUploaded:this.state.fileUploaded,onIncompleteFileUpload:this.incompleteFileUpload,onCompleteFileUpload:this.completeFileUpload,onOpenUploadErrorModal:this.openUploadInfoErrorModal,onCloseUploadErrorModal:this.closeUploadInfoErrorModal,uploadInfoErrorModalOpen:this.state.uploadInfoErrorModalOpen,isPso:dt,updateAttachmentAcknowledged:pt,validateOnLoad:ht})]})});this.state={fileUploaded:!0,uploadInfoErrorModalOpen:!1}}render(){const{attachments:rt,genderRefData:nt,isPso:lt,saveStatus:ut}=this.props;return jsxRuntimeExports.jsx(routerComponent,{onOpenUploadErrorModal:this.openUploadInfoErrorModal,fileUploaded:this.state.fileUploaded,patient:rt,genderRefData:nt,isPso:lt,saveStatus:ut,children:this.renderContents()})}}const logger$g=new Logger("RegistrationFileAttachmentsApollo"),PATIENT_AND_USER_DETAILS_QUERY$4=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      isProd
      ida
      idb
      firstName
      lastName
      dob
      lastVisitedSection
      regFormStatus
      address {
        id
        ukFormattedAddress
      }
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      acceptsDataShare
      userProfile {
        id
        systemState
      }
      attachments {
        id
        documentType
        encounterDate
        isRegistrationAttachment
        filename
        filesize
        populatedDocumentType
        submitted
        suggestedDocumentType
        url
      }
      attachmentAcknowledged
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    documentTypeRefData: attachmentTypes {
      id
      conceptCode
      name: conceptDisplay
    }
    user {
      id
      isPso
    }
  }
`,ATTACHMENT_ACKNOWLEDGED_MUTATION=gql`
  mutation UpdatePatient($id: ID!, $attachmentAcknowledged: Boolean!) {
    updatePatient(id: $id, attachmentAcknowledged: $attachmentAcknowledged) {
      patient {
        id
        attachmentAcknowledged
      }
    }
  }
`;class RegistrationFileAttachmentsApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"formatdocumentTypeRefData",rt=>rt.map(nt=>{const lt=lodash.cloneDeep(nt);return lt.conceptCode&&(lt.id=lt.conceptCode,delete lt.conceptCode),lt}));Nr(this,"updateAttachmentAcknowledged",(rt,nt)=>{const{client:lt}=this.props;lt==null||lt.mutate({mutation:ATTACHMENT_ACKNOWLEDGED_MUTATION,variables:{id:rt,attachmentAcknowledged:nt},optimisticResponse:{__typename:"Mutation",updatePatient:{patient:{id:rt,attachmentAcknowledged:nt,__typename:"PatientType"},__typename:"PatientType"}}}).catch(()=>{logger$g.debug("autosave",`**** FAILED TO SAVE TO PATIENT ${rt} ****`)})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=lt.registrationPagesViewed;nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.PREFERENCES)}),nt.includes(BASE_REGISTRATION_PAGES.PREFERENCES)||(nt=[...nt,BASE_REGISTRATION_PAGES.PREFERENCES]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$4,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,error:dt,data:pt,refetch:ht})=>{if(ut)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(pt&&pt.patient){this.userIsPSO=pt.user.isPso||!1;let mt=pt.patient;return pt.patient&&pt.patient.attachments.length&&(mt={...mt,attachments:mt.attachments.filter(Mt=>Mt.isRegistrationAttachment)}),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:pt.patient.id}),jsxRuntimeExports.jsx(RegistrationFileAttachments,{attachments:mt,genderRefData:pt.genderRefData,refetchCallback:ht,documentTypeRefData:this.formatdocumentTypeRefData(pt.documentTypeRefData),saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO,user:pt.user,updateAttachmentAcknowledged:this.updateAttachmentAcknowledged})]})}return dt?jsxRuntimeExports.jsx("div",{children:`Error loading: ${dt}`}):jsxRuntimeExports.jsx("div",{})}})}}const apolloComponent$8=withApollo(RegistrationFileAttachmentsApollo),component$3=withRegistrationForm(apolloComponent$8),CONTENT$3={GENERAL:{TIPS:{TITLE:"Here are some tips for you:",TIPS:["Have your Medicare/DVA/Pacemaker/Pension card ready (if applicable)","Have your medication list ready","If you need any assistance, please see the front desk","Please return the iPad to the front desk once you are finished"],TIPS_HOME_REGO:["Have your Medicare/DVA/Pacemaker/Pension card ready (if applicable)","Have your medication list ready","If you need any assistance, please contact your local center ","Session will timeout if more than 15mins inactivity"]}},US:{TIPS:{TITLE:"Here are some tips for you:",TIPS:[" Have your SSN and Insurance details ready","Have your medication list ready","Please complete as much as you can","If you need any assistance, please see the front desk","Please return the iPad/tablet to the front desk once you are finished"],TIPS_HOME_REGO:["Have your SSN and Insurance details ready","Have your medication list ready","Please complete as much as you can","If you need any assistance, please contact your local centre.","Session will time out if more than 15mins inactivity"]}}},StyledModalContent=styled("div")`
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 50px;
`,PatientNavigation=et=>{var gr,br;const[tt,rt]=reactExports.useState([]),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(),[pt,ht]=reactExports.useState(-1),[mt,xt]=reactExports.useState(!1),Mt=useTheme$1(),{profile:vt,covidStatus:Ot,haStatus:At,patient:Rt,getPXInvite:zt,dtForm:Tt,dtEotForm:Ct,thaStatus:It,history:Dt,logout:kt,featureOptions:qt}=et,Nt=(gr=vt==null?void 0:vt.patientFeatures)==null?void 0:gr.covidEnabled,Yt=((br=Rt.userProfile)==null?void 0:br.systemState)==="THA",{status:Kt,id:Jt}=Tt,{status:Qt,id:Bt}=Ct,Ft=toFormToVersion(vt==null?void 0:vt.toForm),$t=Ft===DistressThermometerVersion.EOT,jt=Ft===DistressThermometerVersion.INITIAL,Wt=jt?Kt:Qt,Ut=jt?Jt:Bt,Vt=Nt||!!Ot,Ht=qt.find(ar=>ar.name==="NewAusRego"&&ar.active),Gt=()=>jt?vt.showDistressThermometer:$t?vt.patientFeatures.distressThermometerEotEnabled:!1,Zt=()=>{const ar=Ht?"infonotice":"basic",ur=Rt.lastVisitedSection||ar;return isUs()||Ht?`/patient/${Rt.id}/registration/${ur}`:`/registration/${Rt.id}/${ur}`},Xt=[{title:"Covid-19 screening",status:Ot,link:`/patient/${Rt.id}/covid/information`,navigationType:"react",icon:jsxRuntimeExports.jsx(SvgC19Icon,{className:"link-icon"}),disableIfComplete:!0,isVisible:!isUs()&&Vt&&!Yt},{title:"Registration Form",status:Rt.regFormStatus,link:Zt(),navigationType:"react",icon:jsxRuntimeExports.jsx(SvgRegForm,{className:"link-icon"}),isVisible:vt.showRegistration},{title:"Health Assessment",status:At,link:`/patient/${Rt.id}/health/info`,navigationType:"react",icon:jsxRuntimeExports.jsx(SvgHealthAssesment,{className:"link-icon"}),isVisible:vt.patientFeatures.healthAssessmentEnabled&&vt.showHealthAssessment},{title:`Distress Thermometer ${$t?"EOT":""}`,status:Wt,navigationType:"react",link:`/patient/${Rt.id}/distress/${Ut}/information`,icon:jsxRuntimeExports.jsx(SvgDistressThermometer,{className:"link-icon"}),isVisible:Gt()}];reactExports.useEffect(()=>{var Mr,Ar;let ar=[];$t?Xt.forEach(Ir=>{Ir.title.includes("Distress")&&ar.push(Ir)}):ar=Xt,rt(ar);const ur="THA",xr=new URLSearchParams(window.location.search);vt.registrationAccessType!=="inClinic"&&((Ar=(Mr=Dt.location)==null?void 0:Mr.state)!=null&&Ar.pxRedirect||xr.get("theranosticSubmitted"))&&vt.overallStatus===FormStatus.REG_REVIEW_REQUIRED&&(Rt.emr!==ur?zt():(kt(vt.registrationAccessType),Dt.push({pathname:"/endSession",state:{isTheranostics:!0}})))},[Rt]);const er=()=>{const ar=setInterval(()=>{ht(ur=>ur-1)},hooks.duration(1,"s").asMilliseconds());return dt(ar),ar},nr=()=>{ut&&clearInterval(ut),ht(-1)};reactExports.useEffect(()=>{if(tt.length>0&&tt.filter(ur=>ur.isVisible).every(ur=>ur.status===FormStatus.REG_REVIEW_REQUIRED||ur.status===FormStatus.REG_SUBMITTED)){ht(hooks.duration(1,"m").asSeconds()),xt(!0);const ur=er();return()=>clearInterval(ur)}},[tt]),reactExports.useEffect(()=>{pt===0&&kt(vt.registrationAccessType,$t)},[pt]);const or=isUs()?CONTENT$3.US:CONTENT$3.GENERAL,rr=()=>{let ar=vt.registrationAccessType==="atHome"?or.TIPS.TIPS_HOME_REGO:or.TIPS.TIPS;$t&&(vt.registrationAccessType==="atHome"?ar=or.TIPS.TIPS_HOME_REGO.slice(-2):ar=or.TIPS.TIPS.slice(-2));const ur=jsxRuntimeExports.jsx("a",{href:"https://www.genesiscare.com/au/our-centres/",target:"_blank",children:"here"});return ar.map((xr,Mr)=>jsxRuntimeExports.jsxs("li",{children:[xr,Mr===2&&vt.registrationAccessType==="atHome"&&!isUs()&&ur]},Mr))},cr=ar=>{switch(ar){case FormStatus.REG_SUBMITTED:return jsxRuntimeExports.jsx(SvgSuccess,{className:"icon icon-completed"});case FormStatus.REG_REVIEW_REQUIRED:return jsxRuntimeExports.jsx(SvgSuccess,{className:"icon icon-completed"});case FormStatus.IN_PROGRESS:return jsxRuntimeExports.jsx(UpdateIcon,{color:"info",className:"icon icon-in-progress"});default:return jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning",className:"icon"})}},ir=ar=>{const ur=xr=>xr===FormStatus.REG_SUBMITTED||xr===FormStatus.REG_REVIEW_REQUIRED;if(!(ar.disableIfComplete&&ur(ar.status))){if(ar.navigationType==="react"){Dt.push(ar.link);return}else if(ar.navigationType==="django"){navigateToExternalURL(ar.link);return}throw"Invalid navigation type"}},dr=ar=>ar.filter(ur=>ur.isVisible).map((ur,xr)=>jsxRuntimeExports.jsxs("div",{className:"link-container",children:[jsxRuntimeExports.jsx("div",{className:"step-no",children:`Step ${xr+1}`}),jsxRuntimeExports.jsxs("div",{className:"link",onClick:()=>ir(ur),children:[jsxRuntimeExports.jsx("div",{className:"link-title",children:ur.title}),jsxRuntimeExports.jsxs("div",{className:"status","data-testid":`${ur.title}-status`,children:[cr(ur.status),getFormStatus(ur.status,"patient")]}),jsxRuntimeExports.jsx("div",{className:"link-icon-container",children:ur.icon})]})]},xr));return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{id:"page-patient-home",children:[jsxRuntimeExports.jsx(HeaderBar,{}),jsxRuntimeExports.jsxs("div",{className:"patient-home-content",children:[jsxRuntimeExports.jsx(HeroImage,{patient:Rt}),jsxRuntimeExports.jsxs("div",{className:"content",children:[jsxRuntimeExports.jsx("div",{className:"pn-title",children:$t?"Please complete the form before your appointment":"Please complete registration forms in order:"}),jsxRuntimeExports.jsx("div",{className:"pn-sub-title",children:$t?"It will take approximately 3-5 mins":`It will take approximately ${isUs()?"20":"15-20 "}mins, please complete it before your appointment.`}),jsxRuntimeExports.jsx("div",{className:"links",children:dr(tt)}),jsxRuntimeExports.jsxs("div",{className:"tips",children:[jsxRuntimeExports.jsx("div",{className:"tips-title",children:or.TIPS.TITLE}),jsxRuntimeExports.jsx("ol",{className:"tip-items",children:rr()})]})]})]}),jsxRuntimeExports.jsx("div",{className:"patient-home-bottom-navigator",children:jsxRuntimeExports.jsx("div",{className:"save-exit-button",children:jsxRuntimeExports.jsx(Button,{size:"large","data-testid":"patient-home-logout-btn",onClick:()=>{lt(!0)},children:"Logout"})})})]}),jsxRuntimeExports.jsx(StandardDialog,{open:nt,title:"Are you sure you want to logout?",onClose:lt,submitText:"Logout",onSubmit:()=>kt(vt.registrationAccessType,$t),children:jsxRuntimeExports.jsx(Typography,{paddingY:2,children:"All your changes have been saved and you can continue filling in the forms when you come back."})}),jsxRuntimeExports.jsx(StandardDialog,{open:mt,title:`${$t?"Distress thermometer":"Registration"} completed!`,closeText:"Continue session",onClose:()=>{xt(!1),nr()},submitText:"Logout",onSubmit:()=>{kt(vt.registrationAccessType,$t)},children:jsxRuntimeExports.jsxs(StyledModalContent,{children:[jsxRuntimeExports.jsxs("p",{children:["Thank you for completing the ",$t?"distress thermometer":"registration"," ",jsxRuntimeExports.jsx("br",{}),"Your session will expire in:"]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("span",{style:{color:Mt.palette.primary.main,fontSize:"32px",fontWeight:"bold"},children:pt})," ","second",pt>1&&"s"]})]})})]})},routedComponent$9=withRouter(PatientNavigation),logger$f=new Logger("NewPatientNavigationApollo"),PATIENT_FORM_DETAILS_QUERY=gql`
  query PatientFormsDetails($id: ID!, $patientId: ID!) {
    patient(id: $id) {
      id
      resolvedNamePrefix
      firstName
      lastName
      dob
      lastVisitedSection
      address {
        id
        formattedAddress
      }
      userProfile {
        id
        systemState
      }
      regFormStatus
      emrInstance
      emr
    }
    healthAssessment(id: $id) {
      id
      status
    }
    distressThermometerInitial(patientId: $patientId) {
      id
      status
      version
    }
    distressThermometerEot(patientId: $patientId) {
      id
      status
      version
    }
    covidScreening(id: $id) {
      id
      status
    }
    theranostics(id: $id) {
      id
      status
    }
    profile {
      id
      toForm
      showDistressThermometer
      showRegistration
      showHealthAssessment
      registrationAccessType
      overallStatus
      patientFeatures {
        distressThermometerEotEnabled
        healthAssessmentEnabled
        covidEnabled
      }
    }
    featureOptions {
      id
      name
      description
      active
    }
  }
`,LOGOUT_MUTATION$1=gql`
  mutation Logout {
    logout {
      errors
    }
  }
`,GET_PX_TOKEN_MUTATION=gql`
  mutation GetPXInvite($patientId: ID!) {
    getPxInvite(patientId: $patientId) {
      inviteLink
    }
  }
`,PatientNavigationApollo=et=>{const{match:{params:{patientId:tt}},client:rt,history:nt}=et,{setError:lt}=useErrorModalContext(),{formStatusDetails:ut,setFormStatusDetails:dt}=reactExports.useContext(FormContext$2),{setHaSummaryVisited:pt,setRegistrationSummaryVisited:ht,setAddressPlaceId:mt}=reactExports.useContext(RegistrationContext),[xt,Mt]=reactExports.useState(!1),[vt]=useMutation(GET_PX_TOKEN_MUTATION,{variables:{patientId:tt},onCompleted:Ct=>{const It=Ct.getPxInvite.inviteLink;logger$f.info("Redirecting to ",It),Mt(!1),navigateToExternalURL(It)},onError:()=>{logger$f.error("Could not generate PX invite. Patient ID: ",tt),Mt(!1),At(zt.profile.registrationAccessType)}}),Ot=()=>{Mt(!0),vt()},At=(Ct,It)=>{rt.mutate({mutation:LOGOUT_MUTATION$1,variables:{}}).then(Dt=>{if(Dt.data.logout.errors!=null){logger$f.error("logout","Unable to logout",Dt.data.logout.errors);return}pt(!1),ht(!1),mt(""),Ct==="atHome"?nt.push({pathname:"/endSession",state:{isDtEot:It}}):nt.replace("/patient")})},{loading:Rt,data:zt,error:Tt}=useQuery(PATIENT_FORM_DETAILS_QUERY,{variables:{id:tt,patientId:tt},fetchPolicy:"network-only",onCompleted:()=>dt(zt)});if(zt&&dt(zt),reactExports.useEffect(()=>{if(Tt)return lt()},[Tt]),Rt||xt)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(zt&&zt.patient&&zt.profile){const{patient:Ct,profile:It,healthAssessment:Dt,distressThermometerInitial:kt,distressThermometerEot:qt,covidScreening:Nt,theranostics:Yt,featureOptions:Kt}=zt;return jsxRuntimeExports.jsx(routedComponent$9,{patient:Ct,profile:It,haStatus:Dt.status,covidStatus:Nt.status,dtForm:kt,dtEotForm:qt,featureOptions:Kt,thaStatus:Yt.status,logout:At,getPXInvite:Ot})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},PatientNavigationApollo$1=withRouter(withApollo(PatientNavigationApollo)),CENTRE_HEADER_PLACEHOLDER="Select Centre",STATUS_HEADER_PLACEHOLDER="Select Status",StyledTableCell$5=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[200],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$6=styled(TableRow$7)(({theme:et})=>({"&:nth-of-type(odd)":{backgroundColor:et.palette.secondary.light},"&:last-child td, &:last-child th":{border:0}}));let TableRow$2=class extends reactExports.Component{render(){const{patientName:tt,appointmentTime:rt,locationAlias:nt,patientID:lt,description:ut,regoFormStatus:dt,formLink:pt,statusTypes:ht,practitioner:mt}=this.props;let xt=ht.find(Mt=>Mt.id===dt);return xt=typeof xt>"u"?"Unknown":xt==null?void 0:xt.name,jsxRuntimeExports.jsxs(StyledTableRow$6,{id:"table-header",children:[jsxRuntimeExports.jsx(TableCell,{children:rt}),jsxRuntimeExports.jsx(TableCell,{children:lt}),jsxRuntimeExports.jsx(TableCell,{children:tt}),jsxRuntimeExports.jsx(TableCell,{children:nt}),jsxRuntimeExports.jsx(TableCell,{children:ut}),jsxRuntimeExports.jsx(TableCell,{children:mt==null?void 0:mt.name}),jsxRuntimeExports.jsx(TableCell,{children:xt}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx("a",{target:"_blank",href:`/registration/${pt}/basic`,children:jsxRuntimeExports.jsx("span",{className:"header-form-link",children:"View form"})})})]})}};class UKAppointmentsDashboard extends reactExports.Component{constructor(rt){super(rt);Nr(this,"selectCentreRef");Nr(this,"selectStatusRef");Nr(this,"changePage",rt=>{this.props.onPageChange(rt)});Nr(this,"changeStatus",(rt,nt)=>{this.props.onStatusChange(rt,nt)});Nr(this,"changeCentre",(rt,nt)=>{this.props.onCentreChange(rt,nt)});Nr(this,"formatRefData",rt=>rt.map(nt=>{const lt=lodash.cloneDeep(nt);return lt.id=lt.alias||lt.appKey||lt.name,lt}));this.selectCentreRef=React$4.createRef(),this.selectStatusRef=React$4.createRef(),this.state={isFilterOpen:!0}}render(){let rt;if(this.props.data&&this.props.data.configs){const ht={},mt=this.formatRefData(this.props.data.configs);mt.map(xt=>{ht[xt.id]=xt.name.split(",").pop()}),rt=jsxRuntimeExports.jsxs("div",{className:"flex-container",children:[jsxRuntimeExports.jsx(DropDownField,{innerRef:this.selectCentreRef,inputName:"Centre",placeholder:CENTRE_HEADER_PLACEHOLDER,defaultValue:this.props.locationAlias,options:mt,onChange:xt=>{this.changeCentre(xt.target.value,1)}}),jsxRuntimeExports.jsx("span",{className:"clear-filter",onClick:()=>{this.changeCentre("",1),this.selectCentreRef.current.selectedIndex=0},children:"Clear"})]})}else rt=jsxRuntimeExports.jsx("div",{});let nt;if(this.props.data&&this.props.data.listData){const ht=this.formatRefData(this.props.data.listData);nt=jsxRuntimeExports.jsxs("div",{className:"flex-container",children:[jsxRuntimeExports.jsx(DropDownField,{innerRef:this.selectStatusRef,inputName:"Status",placeholder:STATUS_HEADER_PLACEHOLDER,defaultValue:this.props.status,options:ht,onChange:mt=>{this.changeStatus(mt.target.value,1)}}),jsxRuntimeExports.jsx("span",{className:"clear-filter",onClick:()=>{this.changeStatus("",1),this.selectStatusRef.current.selectedIndex=0},children:"Clear"})]})}else nt=jsxRuntimeExports.jsx("div",{});let lt,ut;this.props.data&&this.props.data.listData&&(ut=this.formatRefData(this.props.data.listData)),this.props.data&&this.props.data.ukAppointments?this.props.data.ukAppointments.length===0?lt=jsxRuntimeExports.jsx("div",{className:"no-appointments-wrapper",children:"No appointments for today"}):lt=this.props.data.ukAppointments.map((ht,mt)=>jsxRuntimeExports.jsx(TableRow$2,{patientName:ht.patient.fullName,appointmentTime:moment$2(ht.startTime).format("HH:mm"),locationAlias:ht.department.name,patientID:ht.patient.ida,formLink:ht.patient.id,description:ht.description,regoFormStatus:ht.patient.regFormStatus,statusTypes:ut,practitioner:ht.practitioner},mt)):lt=jsxRuntimeExports.jsx("div",{});let dt;this.props.data&&this.props.data.ukAppointmentsCount?dt=jsxRuntimeExports.jsx(Stack$5,{justifyContent:"center",children:jsxRuntimeExports.jsx(GCPagination,{currentPage:this.props.currentPage,totalPages:this.props.data.ukAppointmentsCount,onPageChange:this.changePage})}):dt=jsxRuntimeExports.jsx("div",{});const pt=jsxRuntimeExports.jsx(BaseDatePicker,{id:"startDateTime",value:dayjs(this.props.startTime),onChange:ht=>{this.props.onDateChange(moment$2(ht).format("YYYY-MM-DD"),1)},format:"ddd, MMM Do YYYY"});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Grid,{container:!0,sx:{padding:"24px 16px"},gap:"16px",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsxs(Accordion$2,{defaultExpanded:!0,onChange:(ht,mt)=>{this.setState({isFilterOpen:mt})},sx:{border:`1px solid ${theme$1.palette.grey[300]}`,borderTop:`2px solid ${theme$1.palette.primary.main}`},children:[jsxRuntimeExports.jsx(AccordionSummary$1,{sx:{backgroundColor:theme$1.palette.grey[200],minHeight:"40px !important",height:"40px !important"},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",justifyContent:"space-between",width:"100%",children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",sx:{fontWeight:"bold"},children:"Filters"}),jsxRuntimeExports.jsxs(Typography,{variant:"subtitle1",sx:{fontWeight:"bold"},children:["(click to ",this.state.isFilterOpen?"close":"open",")"]})]})}),jsxRuntimeExports.jsx(AccordionDetails,{children:jsxRuntimeExports.jsxs("div",{className:"grid-container",children:[jsxRuntimeExports.jsx("div",{className:"grid-item",children:jsxRuntimeExports.jsx("span",{className:"header-span",children:"Select date"})}),jsxRuntimeExports.jsx("div",{className:"grid-item",children:jsxRuntimeExports.jsx("span",{className:"header-span",children:"Select Centre"})}),jsxRuntimeExports.jsx("div",{className:"grid-item",children:jsxRuntimeExports.jsx("span",{className:"header-span",children:"Select Status"})}),jsxRuntimeExports.jsx("div",{className:"grid-item",children:jsxRuntimeExports.jsx("div",{className:"header-with-filter",children:pt})}),jsxRuntimeExports.jsx("div",{className:"grid-item",children:jsxRuntimeExports.jsx("div",{className:"header-with-filter",children:jsxRuntimeExports.jsx("div",{className:"header-filter",children:rt})})}),jsxRuntimeExports.jsx("div",{className:"grid-item",children:jsxRuntimeExports.jsx("div",{className:"header-with-filter",children:jsxRuntimeExports.jsx("div",{className:"header-filter",children:nt})})})]})})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx(TableContainer$6,{component:Paper,sx:{maxHeight:`calc(100vh - ${this.state.isFilterOpen?400:200}px)`},children:jsxRuntimeExports.jsxs(Table$3,{stickyHeader:!0,children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsxs(TableRow$7,{children:[jsxRuntimeExports.jsx(StyledTableCell$5,{children:"Appointment Time"}),jsxRuntimeExports.jsx(StyledTableCell$5,{children:"Patient ID"}),jsxRuntimeExports.jsx(StyledTableCell$5,{children:"Patient Name"}),jsxRuntimeExports.jsx(StyledTableCell$5,{children:"Centre"}),jsxRuntimeExports.jsx(StyledTableCell$5,{children:"Type"}),jsxRuntimeExports.jsx(StyledTableCell$5,{children:"Practitioner"}),jsxRuntimeExports.jsx(StyledTableCell$5,{children:"Submission Status"}),jsxRuntimeExports.jsx(StyledTableCell$5,{children:"Form link"})]})}),jsxRuntimeExports.jsx(TableBody$2,{children:lt})]})})})]}),jsxRuntimeExports.jsx("footer",{className:"footer",children:dt})]})}}const GET_USER_QUERY$1=gql`
  {
    user {
      id
      email
      firstName
      lastName
      isPso
      isSuperuser
      defaultLocation
    }
  }
`,DASHBOARD_QUERY=gql`
  query dashboard_query(
    $currentPage: Int
    $status: String
    $startTime: Date
    $locationAlias: String
    $category: String
  ) {
    ukAppointments(page: $currentPage, status: $status, startTime: $startTime, locationAlias: $locationAlias) {
      id
      startTime
      description
      practitioner {
        id
        name
      }
      department {
        id
        name
        alias
      }
      patient {
        id
        ida
        fullName
        regFormStatus
      }
    }
    listData(category: $category) {
      id
      name
      appKey
    }
    configs {
      id
      alias
      name
    }
    ukAppointmentsCount(startTime: $startTime, status: $status, locationAlias: $locationAlias)
  }
`;class UKAppointmentsDashboardApollo extends reactExports.Component{render(){return jsxRuntimeExports.jsx(Query,{query:GET_USER_QUERY$1,children:({loading:tt,data:rt,error:nt})=>{const{setError:lt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(nt)return lt()},[nt]),tt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(rt){let ut="";return rt.user&&rt.user.defaultLocation&&(ut=rt.user.defaultLocation),jsxRuntimeExports.jsx(UKAppointmentsUserDashboardApollo,{defaultLocation:ut})}return jsxRuntimeExports.jsx("div",{})}})}}class UKAppointmentsUserDashboardApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"changePage",rt=>{this.setState({currentPage:rt})});Nr(this,"changeDate",(rt,nt)=>{this.setState({startTime:rt,currentPage:nt})});Nr(this,"changeStatus",(rt,nt)=>{this.setState({status:rt,currentPage:nt})});Nr(this,"changeCentre",(rt,nt)=>{this.setState({centre:rt,currentPage:nt})});this.state={currentPage:1,startTime:moment$2().format("YYYY-MM-DD"),centre:this.props.defaultLocation,status:"",totalPages:1}}render(){const{currentPage:rt,startTime:nt,centre:lt,status:ut}=this.state,dt={currentPage:rt,startTime:nt,locationAlias:lt,category:"ukSearchFilters",status:ut};return jsxRuntimeExports.jsx(Query,{query:DASHBOARD_QUERY,variables:dt,children:({loading:pt,data:ht,error:mt})=>{const{setError:xt}=useErrorModalContext();return reactExports.useEffect(()=>{if(mt)return xt()},[mt]),pt?jsxRuntimeExports.jsx(LoadingSpinner,{}):ht?jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(UKAppointmentsDashboard,{currentPage:this.state.currentPage,startTime:this.state.startTime,locationAlias:this.state.centre,status:this.state.status,totalPages:this.state.totalPages,onPageChange:this.changePage,onDateChange:this.changeDate,onStatusChange:this.changeStatus,onCentreChange:this.changeCentre,data:ht})}):jsxRuntimeExports.jsx("div",{})}})}}const UKAppointmentsDashboardApollo$1=withApollo(UKAppointmentsDashboardApollo),USER_DETAILS_QUERY$1=gql`
  query UserDetails {
    user {
      id
      isPso
      firstName
      lastName
    }
  }
`;class UKHomePage extends reactExports.Component{constructor(tt){super(tt),this.state={}}render(){const{routes:tt}=this.props;return jsxRuntimeExports.jsx(Query,{query:USER_DETAILS_QUERY$1,children:({loading:rt,data:nt,error:lt})=>lt?jsxRuntimeExports.jsx(SSOPage,{}):rt?jsxRuntimeExports.jsx(LoadingSpinner,{}):nt&&nt.user?window.location.pathname.includes("/radiation")?tt:jsxRuntimeExports.jsxs("div",{id:"homepage-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"header-wrapper",children:jsxRuntimeExports.jsx(routedComponent$w,{})}),jsxRuntimeExports.jsx("div",{className:"body-wrapper",children:jsxRuntimeExports.jsx("div",{className:"content-wrapper",children:tt})})]}):jsxRuntimeExports.jsx("div",{children:"Error"})})}}const UKHomePage$1=withRouter(UKHomePage),GET_TERMS_AND_CONDITIONS=gql`
  query TermsAndConditionsQuery {
    informationNoticeContent {
      id
      informationNotice
    }
  }
`,InformationNotice=()=>{const{setError:et}=useErrorModalContext();return jsxRuntimeExports.jsx(Query,{query:GET_TERMS_AND_CONDITIONS,variables:{language:"en"},children:({loading:tt,error:rt,data:nt})=>{if(rt)return et();if(tt)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading..."});const lt=({...ut})=>jsxRuntimeExports.jsx("a",{...ut,target:"_blank"});return jsxRuntimeExports.jsx("div",{className:"tnc-page-container",children:jsxRuntimeExports.jsx(Markdown,{options:{overrides:{a:lt}},children:(nt==null?void 0:nt.informationNoticeContent.informationNotice)||""})})}})};var lib={};/*! For license information please see index.js.LICENSE.txt */(function(et){(()=>{var tt={184:(pt,ht)=>{var mt;(function(){var xt={}.hasOwnProperty;function Mt(){for(var vt=[],Ot=0;Ot<arguments.length;Ot++){var At=arguments[Ot];if(At){var Rt=typeof At;if(Rt==="string"||Rt==="number")vt.push(At);else if(Array.isArray(At)){if(At.length){var zt=Mt.apply(null,At);zt&&vt.push(zt)}}else if(Rt==="object"){if(At.toString!==Object.prototype.toString&&!At.toString.toString().includes("[native code]")){vt.push(At.toString());continue}for(var Tt in At)xt.call(At,Tt)&&At[Tt]&&vt.push(Tt)}}}return vt.join(" ")}pt.exports?(Mt.default=Mt,pt.exports=Mt):(mt=(function(){return Mt}).apply(ht,[]))===void 0||(pt.exports=mt)})()},28:(pt,ht,mt)=>{mt.d(ht,{Z:()=>At});var xt=mt(81),Mt=mt.n(xt),vt=mt(645),Ot=mt.n(vt)()(Mt());Ot.push([pt.id,`.vi {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  position: absolute;
  color: transparent;
  background: transparent;
  caret-color: transparent;
  outline: none;
  border: 0 none transparent;
}

.vi::-ms-reveal,
.vi::-ms-clear {
  display: none;
}

.vi::selection {
  background: transparent;
}

/* :where() gives the styles specificity 0, which makes them overridable */
:where(.vi__container) {
  position: relative;
  display: flex;
  gap: 8px;
  height: 50px;
  width: 300px;
}

:where(.vi__character) {
  height: 100%;
  flex-grow: 1;
  flex-basis: 0;
  text-align: center;
  font-size: 36px;
  line-height: 50px;
  color: black;
  background-color: white;
  border: 1px solid black;
  cursor: default;
  user-select: none;
  box-sizing: border-box;
}

:where(.vi__character--inactive) {
  color: dimgray;
  background-color: lightgray;
}

:where(.vi__character--selected) {
  outline: 2px solid cornflowerblue;
  color: cornflowerblue;
}
`,""]);const At=Ot},645:pt=>{pt.exports=function(ht){var mt=[];return mt.toString=function(){return this.map(function(xt){var Mt="",vt=xt[5]!==void 0;return xt[4]&&(Mt+="@supports (".concat(xt[4],") {")),xt[2]&&(Mt+="@media ".concat(xt[2]," {")),vt&&(Mt+="@layer".concat(xt[5].length>0?" ".concat(xt[5]):""," {")),Mt+=ht(xt),vt&&(Mt+="}"),xt[2]&&(Mt+="}"),xt[4]&&(Mt+="}"),Mt}).join("")},mt.i=function(xt,Mt,vt,Ot,At){typeof xt=="string"&&(xt=[[null,xt,void 0]]);var Rt={};if(vt)for(var zt=0;zt<this.length;zt++){var Tt=this[zt][0];Tt!=null&&(Rt[Tt]=!0)}for(var Ct=0;Ct<xt.length;Ct++){var It=[].concat(xt[Ct]);vt&&Rt[It[0]]||(At!==void 0&&(It[5]===void 0||(It[1]="@layer".concat(It[5].length>0?" ".concat(It[5]):""," {").concat(It[1],"}")),It[5]=At),Mt&&(It[2]&&(It[1]="@media ".concat(It[2]," {").concat(It[1],"}")),It[2]=Mt),Ot&&(It[4]?(It[1]="@supports (".concat(It[4],") {").concat(It[1],"}"),It[4]=Ot):It[4]="".concat(Ot)),mt.push(It))}},mt}},81:pt=>{pt.exports=function(ht){return ht[1]}},703:(pt,ht,mt)=>{var xt=mt(414);function Mt(){}function vt(){}vt.resetWarningCache=Mt,pt.exports=function(){function Ot(zt,Tt,Ct,It,Dt,kt){if(kt!==xt){var qt=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 qt.name="Invariant Violation",qt}}function At(){return Ot}Ot.isRequired=Ot;var Rt={array:Ot,bigint:Ot,bool:Ot,func:Ot,number:Ot,object:Ot,string:Ot,symbol:Ot,any:Ot,arrayOf:At,element:Ot,elementType:Ot,instanceOf:At,node:Ot,objectOf:At,oneOf:At,oneOfType:At,shape:At,exact:At,checkPropTypes:vt,resetWarningCache:Mt};return Rt.PropTypes=Rt,Rt}},697:(pt,ht,mt)=>{pt.exports=mt(703)()},414:pt=>{pt.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},rt={};function nt(pt){var ht=rt[pt];if(ht!==void 0)return ht.exports;var mt=rt[pt]={id:pt,exports:{}};return tt[pt](mt,mt.exports,nt),mt.exports}nt.n=pt=>{var ht=pt&&pt.__esModule?()=>pt.default:()=>pt;return nt.d(ht,{a:ht}),ht},nt.d=(pt,ht)=>{for(var mt in ht)nt.o(ht,mt)&&!nt.o(pt,mt)&&Object.defineProperty(pt,mt,{enumerable:!0,get:ht[mt]})},nt.o=(pt,ht)=>Object.prototype.hasOwnProperty.call(pt,ht),nt.r=pt=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(pt,"__esModule",{value:!0})};var lt={};(()=>{nt.r(lt),nt.d(lt,{default:()=>qt});const pt=reactExports;var ht=nt.n(pt),mt=nt(184),xt=nt.n(mt),Mt=nt(697),vt=nt.n(Mt),Ot=nt(28),At=["className","type"],Rt=["className"];function zt(){return zt=Object.assign?Object.assign.bind():function(Nt){for(var Yt=1;Yt<arguments.length;Yt++){var Kt=arguments[Yt];for(var Jt in Kt)Object.prototype.hasOwnProperty.call(Kt,Jt)&&(Nt[Jt]=Kt[Jt])}return Nt},zt.apply(this,arguments)}function Tt(Nt,Yt){if(Nt==null)return{};var Kt,Jt,Qt=function(Ft,$t){if(Ft==null)return{};var jt,Wt,Ut={},Vt=Object.keys(Ft);for(Wt=0;Wt<Vt.length;Wt++)jt=Vt[Wt],$t.indexOf(jt)>=0||(Ut[jt]=Ft[jt]);return Ut}(Nt,Yt);if(Object.getOwnPropertySymbols){var Bt=Object.getOwnPropertySymbols(Nt);for(Jt=0;Jt<Bt.length;Jt++)Kt=Bt[Jt],Yt.indexOf(Kt)>=0||Object.prototype.propertyIsEnumerable.call(Nt,Kt)&&(Qt[Kt]=Nt[Kt])}return Qt}function Ct(Nt,Yt){return function(Kt){if(Array.isArray(Kt))return Kt}(Nt)||function(Kt,Jt){var Qt=Kt==null?null:typeof Symbol<"u"&&Kt[Symbol.iterator]||Kt["@@iterator"];if(Qt!=null){var Bt,Ft,$t,jt,Wt=[],Ut=!0,Vt=!1;try{if($t=(Qt=Qt.call(Kt)).next,Jt!==0)for(;!(Ut=(Bt=$t.call(Qt)).done)&&(Wt.push(Bt.value),Wt.length!==Jt);Ut=!0);}catch(Ht){Vt=!0,Ft=Ht}finally{try{if(!Ut&&Qt.return!=null&&(jt=Qt.return(),Object(jt)!==jt))return}finally{if(Vt)throw Ft}}return Wt}}(Nt,Yt)||It(Nt,Yt)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function It(Nt,Yt){if(Nt){if(typeof Nt=="string")return Dt(Nt,Yt);var Kt=Object.prototype.toString.call(Nt).slice(8,-1);return Kt==="Object"&&Nt.constructor&&(Kt=Nt.constructor.name),Kt==="Map"||Kt==="Set"?Array.from(Nt):Kt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Kt)?Dt(Nt,Yt):void 0}}function Dt(Nt,Yt){(Yt==null||Yt>Nt.length)&&(Yt=Nt.length);for(var Kt=0,Jt=new Array(Yt);Kt<Yt;Kt++)Jt[Kt]=Nt[Kt];return Jt}var kt=(0,pt.forwardRef)(function(Nt,Yt){var Kt=Nt.value,Jt=Nt.length,Qt=Nt.validChars,Bt=Nt.placeholder,Ft=Nt.autoFocus,$t=Nt.passwordMode,jt=Nt.inputProps,Wt=Nt.containerProps,Ut=Nt.classNames,Vt=Nt.onChange,Ht=Nt.onFocus,Gt=Nt.onBlur,Zt=Nt.onComplete,Xt=Ct((0,pt.useState)(""),2),er=Xt[0],nr=Xt[1],or=Ct((0,pt.useState)(!1),2),rr=or[0],cr=or[1],ir=(0,pt.useRef)(null);(0,pt.useEffect)(function(){Ft&&ir.current.focus()},[Ft]),(0,pt.useEffect)(function(){jt.disabled&&cr(!1)},[jt.disabled]);var dr,gr=function(){ir.current.focus()},br=function(){return Kt??er},ar=function(qr){var Hr=br();return(Hr.length===qr||Hr.length===qr+1&&Jt===qr+1)&&rr},ur=function(qr){return br().length<qr},xr=function(qr){return br().length>qr},Mr=jt.className,Ar=jt.type,Ir=Tt(jt,At),Rr=Wt.className,wr=Tt(Wt,Rt);return ht().createElement(ht().Fragment,null,ht().createElement("div",zt({"data-testid":"container",className:xt()("vi__container",Ut.container,Rr),onClick:function(){return ir.current.focus()}},wr),ht().createElement("input",zt({"aria-label":"verification input",spellCheck:!1,value:br(),onChange:function(qr){var Hr=qr.target.value.replace(/\s/g,"");RegExp("^[".concat(Qt,"]{0,").concat(Jt,"}$")).test(Hr)&&(Vt&&(Vt==null||Vt(Hr)),nr(Hr),Hr.length===Jt&&(Zt==null||Zt(Hr)))},ref:function(qr){ir.current=qr,typeof Yt=="function"?Yt(qr):Yt&&(Yt.current=qr)},className:xt()("vi",Mr),onKeyDown:function(qr){["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(qr.key)&&qr.preventDefault()},onFocus:function(){cr(!0),Ht==null||Ht()},onBlur:function(){cr(!1),Gt==null||Gt()},onSelect:function(qr){var Hr=qr.target.value;qr.target.setSelectionRange(Hr.length,Hr.length)},type:$t?"password":Ar},Ir)),(dr=Array(Jt),function(qr){if(Array.isArray(qr))return Dt(qr)}(dr)||function(qr){if(typeof Symbol<"u"&&qr[Symbol.iterator]!=null||qr["@@iterator"]!=null)return Array.from(qr)}(dr)||It(dr)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()).map(function(qr,Hr){return ht().createElement("div",{className:xt()("vi__character",Ut.character,{"vi__character--selected":ar(Hr),"vi__character--inactive":ur(Hr),"vi__character--filled":xr(Hr)},ar(Hr)&&Ut.characterSelected,ur(Hr)&&Ut.characterInactive,xr(Hr)&&Ut.characterFilled),onClick:gr,id:"field-".concat(Hr),"data-testid":"character-".concat(Hr),key:Hr},$t&&br()[Hr]?"*":br()[Hr]||Bt)})),ht().createElement("style",{dangerouslySetInnerHTML:{__html:Ot.Z}}))});kt.displayName="VerificationInput",kt.propTypes={value:vt().string,length:vt().number,validChars:vt().string,placeholder:vt().string,autoFocus:vt().bool,passwordMode:vt().bool,inputProps:vt().object,containerProps:vt().object,classNames:vt().shape({container:vt().string,character:vt().string,characterInactive:vt().string,characterSelected:vt().string,characterFilled:vt().string}),onChange:vt().func,onFocus:vt().func,onBlur:vt().func,onComplete:vt().func},kt.defaultProps={length:6,validChars:"A-Za-z0-9",placeholder:"·",autoFocus:!1,inputProps:{},containerProps:{},classNames:{}};const qt=kt})();var ut=et;for(var dt in lt)ut[dt]=lt[dt];lt.__esModule&&Object.defineProperty(ut,"__esModule",{value:!0})})()})(lib);const VerificationInput=getDefaultExportFromCjs$1(lib);var FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,freeGlobal=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString$1=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now=function(){return root$1.Date.now()};function debounce(et,tt,rt){var nt,lt,ut,dt,pt,ht,mt=0,xt=!1,Mt=!1,vt=!0;if(typeof et!="function")throw new TypeError(FUNC_ERROR_TEXT);tt=toNumber(tt)||0,isObject$2(rt)&&(xt=!!rt.leading,Mt="maxWait"in rt,ut=Mt?nativeMax(toNumber(rt.maxWait)||0,tt):ut,vt="trailing"in rt?!!rt.trailing:vt);function Ot(qt){var Nt=nt,Yt=lt;return nt=lt=void 0,mt=qt,dt=et.apply(Yt,Nt),dt}function At(qt){return mt=qt,pt=setTimeout(Tt,tt),xt?Ot(qt):dt}function Rt(qt){var Nt=qt-ht,Yt=qt-mt,Kt=tt-Nt;return Mt?nativeMin(Kt,ut-Yt):Kt}function zt(qt){var Nt=qt-ht,Yt=qt-mt;return ht===void 0||Nt>=tt||Nt<0||Mt&&Yt>=ut}function Tt(){var qt=now();if(zt(qt))return Ct(qt);pt=setTimeout(Tt,Rt(qt))}function Ct(qt){return pt=void 0,vt&&nt?Ot(qt):(nt=lt=void 0,dt)}function It(){pt!==void 0&&clearTimeout(pt),mt=0,nt=ht=lt=pt=void 0}function Dt(){return pt===void 0?dt:Ct(now())}function kt(){var qt=now(),Nt=zt(qt);if(nt=arguments,lt=this,ht=qt,Nt){if(pt===void 0)return At(ht);if(Mt)return pt=setTimeout(Tt,tt),Ot(ht)}return pt===void 0&&(pt=setTimeout(Tt,tt)),dt}return kt.cancel=It,kt.flush=Dt,kt}function throttle$1(et,tt,rt){var nt=!0,lt=!0;if(typeof et!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$2(rt)&&(nt="leading"in rt?!!rt.leading:nt,lt="trailing"in rt?!!rt.trailing:lt),debounce(et,tt,{leading:nt,maxWait:tt,trailing:lt})}function isObject$2(et){var tt=typeof et;return!!et&&(tt=="object"||tt=="function")}function isObjectLike$1(et){return!!et&&typeof et=="object"}function isSymbol$1(et){return typeof et=="symbol"||isObjectLike$1(et)&&objectToString$1.call(et)==symbolTag}function toNumber(et){if(typeof et=="number")return et;if(isSymbol$1(et))return NAN;if(isObject$2(et)){var tt=typeof et.valueOf=="function"?et.valueOf():et;et=isObject$2(tt)?tt+"":tt}if(typeof et!="string")return et===0?et:+et;et=et.replace(reTrim,"");var rt=reIsBinary.test(et);return rt||reIsOctal.test(et)?freeParseInt(et.slice(2),rt?2:8):reIsBadHex.test(et)?NAN:+et}var lodash_throttle=throttle$1;const throttle$2=getDefaultExportFromCjs$1(lodash_throttle);let Form$2=class extends reactExports.Component{constructor(tt){super(tt),this.state=this.props.formData}render(){return jsxRuntimeExports.jsx("form",{id:this.props.id,className:"form-wrapper",onSubmit:tt=>(tt.preventDefault(),this.props.submit&&this.props.submit(),!1),children:this.props.children})}};class FormContent extends reactExports.Component{render(){return jsxRuntimeExports.jsx("div",{className:"form-content",children:this.props.children})}}class FormSection extends reactExports.Component{renderHeader(){const{props:{header:tt}}=this;return jsxRuntimeExports.jsx("h2",{className:"form-section-header",children:tt})}render(){const{props:{header:tt}}=this;return jsxRuntimeExports.jsxs("div",{className:"form-section",children:[tt&&this.renderHeader()," ",this.props.children]})}}class FreeTextField extends reactExports.Component{constructor(rt){super(rt);Nr(this,"invalidState",!1);Nr(this,"invalidMessage","");Nr(this,"onBlurHandler",rt=>{this.onSubmitHandler(rt.target.value)});Nr(this,"onChangeHandler",rt=>{this.onSubmitHandler(rt.target.value)});Nr(this,"onKeyUpHandler",rt=>{this.props.validateOnKeyUp===!0&&this.onSubmitHandler(rt.target.value)});Nr(this,"onSubmitHandler",rt=>{const{props:{fieldName:nt,validateField:lt}}=this;lt&&lt(nt,rt,this.invalidInputHandler,()=>{this.props.updateParent?this.props.updateParent():this.setState({invalidInput:!1})})});Nr(this,"invalidInputHandler",rt=>{this.props.updateParent?this.props.updateParent():this.setState({invalidInput:!0,invalidMessage:rt,showPassword:!1})});const nt=this.props.errorMessage?this.props.errorMessage:"An error occurred";this.invalidState=this.props.invalidInput?this.props.invalidInput:!1,this.state={invalidInput:this.props.invalidInput,invalidMessage:nt,showPassword:!1}}getInputType(){return this.props.secure&&!this.state.showPassword?"password":"text"}render(){const{props:{fieldName:rt,placeholder:nt,modelValue:lt}}=this;this.invalidState=this.props.invalidInput?this.props.invalidInput:!1,this.props.errorMessage?this.invalidMessage=this.props.errorMessage:this.state.invalidMessage&&(this.invalidMessage=this.state.invalidMessage);const ut=jsxRuntimeExports.jsx("input",{className:"field-input "+(this.invalidState?"validation-error ":"")+(this.props.secure?"password-field":""),type:this.getInputType(),name:rt,placeholder:nt||"",onBlur:this.onBlurHandler,onChange:this.onChangeHandler,defaultValue:lt,onKeyPress:pt=>{const ht=pt.keyCode||pt.which,mt=13,xt=pt.target.value;ht===mt&&this.onSubmitHandler(xt)},onKeyUp:this.onKeyUpHandler,maxLength:this.props.maxLength,disabled:this.props.disabled}),dt=this.invalidState&&this.props.showErrorMessage?jsxRuntimeExports.jsx(ErrorInfo,{errors:[this.invalidMessage]}):null;return jsxRuntimeExports.jsx(React$4.Fragment,{children:this.props.secure?jsxRuntimeExports.jsxs("div",{className:"input-show-hide",children:[ut,jsxRuntimeExports.jsx("span",{onClick:()=>{this.setState({showPassword:!this.state.showPassword})},children:this.state.showPassword?"Hide":"Show"}),dt]}):jsxRuntimeExports.jsxs(React$4.Fragment,{children:[ut,dt]})})}}Nr(FreeTextField,"defaultProps",{secure:!1,invalidInput:!1,showErrorMessage:!0,disabled:!1});class FormSegmentField extends reactExports.Component{render(){const{props:{htmlFor:tt,title:rt,required:nt}}=this;return jsxRuntimeExports.jsxs("div",{className:"form-section-field",children:[jsxRuntimeExports.jsx("label",{className:"field-label "+(this.props.invalidInput?"validation-error":null),htmlFor:tt,children:nt?rt+"*":rt}),this.props.children]})}}Nr(FormSegmentField,"defaultProps",{required:!1,invalidInput:!0});const ResendPasscodeLink$1=styled("span")`
  color: ${et=>et.theme.palette.text.primary};
  text-decoration-line: underline;
  cursor: ${({$cursor:et})=>et};
`,INITAL_FORM_TITLE="Confirm your mobile number",FORM_TITLE$2="Verification Passcode",FORM_DESCRIPTION$2=`A text message with your passcode has been sent to: ${isUs()?"":"*"}*** *** `,INITAL_FORM_DESCRIPTION=`A text message will be sent to your mobile number ending in ${isUs()?"":"*"}*** *** `,FORM_INSTRUCTION$1="Enter 6 digit code",FORM_RESEND_LINK_TEXT$1="Resend passcode",INFO_NOTICE_TEXT="By filling in the following forms, I consent to GenesisCare collecting and using my personal and health information for patient registration purposes in accordance with the",INFO_NOTICE_LINK_TEXT="Information Notice",TIME_BETWEEN_MFA_CODES$1="15",US_VALIDATION_RULES={smsPin:{presence:{allowEmpty:!1,message:"Please enter a valid code or resend a new passcode"},length:{is:6,message:"Please enter a valid code or resend a new passcode"}}},AU_VALIDATION_RULES={infoNoticeAccepted:{presence:{allowEmpty:!1,message:"You must agree with the information notice"},inclusion:{within:[!0],message:"You must agree with the information notice"}},...US_VALIDATION_RULES},VALIDATION_RULES=isUs()?US_VALIDATION_RULES:AU_VALIDATION_RULES,HomeRegLogin=et=>{const[tt,rt]=reactExports.useState(!0),[nt,lt]=reactExports.useState(""),[ut,dt]=reactExports.useState(""),[pt,ht]=reactExports.useState(!1),[,mt]=reactExports.useState(!1),[xt,Mt]=reactExports.useState(!0),[vt,Ot]=reactExports.useState(!1),[At,Rt]=reactExports.useState(""),[zt,Tt]=reactExports.useState(new Set),[Ct,It]=reactExports.useState(!1),[Dt,kt]=reactExports.useState(!1),[qt,Nt]=reactExports.useState(null),[Yt,Kt]=reactExports.useState(!1),[Jt,Qt]=reactExports.useState(!1),[Bt,Ft]=reactExports.useState(20),[$t,jt]=reactExports.useState(),Wt=React$4.useRef(null),Ut=useTheme$1(),Vt=Ar=>Ar?jsxRuntimeExports.jsxs("div",{id:"debug-token",children:[Ar," shown because debug is enabled"]}):null,Ht=()=>Ct?jsxRuntimeExports.jsx(reactExports.Fragment,{}):jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("p",{className:"info-notice-text",children:[INFO_NOTICE_TEXT," ",jsxRuntimeExports.jsx(Link$2,{to:"/homeRegistration/informationNotice",target:"_blank",className:"info-notice-link",children:INFO_NOTICE_LINK_TEXT})]})}),Gt=()=>validate({smsPin:At,infoNoticeAccepted:xt},VALIDATION_RULES,{fullMessages:!1})===void 0;reactExports.useEffect(()=>{br(),Ft(parseInt(sessionStorage.getItem("minutesUntilEnabled")!==null?sessionStorage.getItem("minutesUntilEnabled"):TIME_BETWEEN_MFA_CODES$1)),sessionStorage.getItem("hasSentInitialSms")==="true"&&(kt(!0),Kt(!0))},[]),reactExports.useEffect(()=>{sessionStorage.setItem("minutesUntilEnabled",String(Bt)),sessionStorage.setItem("hasSentInitialSms",String(Dt)),Jt&&(clearInterval($t),Ft(parseInt(TIME_BETWEEN_MFA_CODES$1))),Yt&&(er(),Kt(!1))},[Bt,Dt,Jt,Yt]);const Zt=Ar=>{const{match:Ir,history:Rr}=et;ht(!0);const{token:wr}=Ir.params,qr={token:wr,smscode:Ar};axios.post("/server/auth/verify_login_code",qr,{headers:{"Content-Type":"application/json"}}).then(Hr=>{const kr=Hr.data;kr.expired&&(ht(!1),Ot(!0),Rr.push("/homeRegistration/linkExpired")),kr.error?(ht(!1),Ot(!0)):kr&&kr.patid?Rr.push(`/patient/${kr.patid}/home`):ht(!1)}).catch(()=>{ht(!1),Ot(!0)})},Xt=()=>{const{match:Ar}=et,{token:Ir}=Ar.params;return Ir},er=()=>{Qt(!1),setTimeout(()=>Qt(!0),Bt*6e4);const Ar=setInterval(()=>{Ft(Ir=>Ir-1)},6e4);jt(Ar)},nr=()=>{Jt&&(er(),or())},or=reactExports.useMemo(()=>throttle$2(()=>rr(),6e4,{leading:!0}),[]),rr=()=>{const{history:Ar}=et,Ir={token:Xt()};axios.post("/server/auth/send_login",Ir,{headers:{"Content-Type":"application/json"}}).then(Rr=>{kt(!0),mt(!0);const wr=Rr.data;let qr=!1,Hr=xt;wr.tokenExpired&&(mt(!1),rt(!1),Ar.push("/homeRegistration/linkExpired")),qr=wr.informationNoticeAccepted,Hr=wr.informationNoticeAccepted,wr&&wr.token&&wr.token!==""&&dt(wr.token),mt(!1),lt(isUs()?wr.lastFourDigits:wr.lastThreeDigits),Mt(Hr),rt(!1),It(qr)}).catch(()=>{mt(!1),rt(!1)})},cr=Ar=>vt?!1:!(Ar&&Ar.smsPin),ir=()=>{const Ar=`App version: ${window.navigator.appVersion}%0D%0ALanguage: ${window.navigator.language}%0D%0APlatform: ${window.navigator.platform} ${window.navigator.appName}%0D%0ACookies: ${window.navigator.cookieEnabled}%0D%0A`,Ir=`Status: ${qt.request.status} ${qt.request.statusText}%0D%0AResponse URL: ${qt.request.responseURL}%0D%0ACurrent URL: ${window.location.href}`,Rr="patientportal@genesiscare.com",wr=`Home Registration URL failure: ${new Date}`,qr=`Hello%0D%0A%0D%0AThis email is in regards to a ${wr}%0D%0A%0D%0AMy name is: %0D%0A%0D%0AI attend the clinic: %0D%0A%0D%0AMy phone number is: %0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A--------------%0D%0AThe following is the error message used internally to help determine the issue%0D%0A%0D%0A${Ir}%0D%0A%0D%0A${Ar}`;return jsxRuntimeExports.jsx("div",{className:"auth-container home-reg-container",children:jsxRuntimeExports.jsx("div",{className:"auth-container-inner",children:jsxRuntimeExports.jsx(FormContent,{children:jsxRuntimeExports.jsxs("div",{className:"title-container",children:[jsxRuntimeExports.jsx("div",{className:"title",children:"It appears that there is an issue with your registration link"}),jsxRuntimeExports.jsxs("div",{className:"description",children:["Please open your email and click on the link again. If you continue to see this message, please"," ",jsxRuntimeExports.jsx("a",{href:`mailto:${Rr}?subject=${wr}&body=${qr}`,children:"click here"})," to send an email for further support."]})]})})})})},dr={$cursor:Jt?"pointer":"default"},gr=Ar=>qt?ir():jsxRuntimeExports.jsx("div",{className:"auth-container home-reg-container",children:jsxRuntimeExports.jsx("div",{className:"auth-container-inner",children:jsxRuntimeExports.jsxs(FormContent,{children:[jsxRuntimeExports.jsx("div",{className:"title-container",children:jsxRuntimeExports.jsx("div",{className:"title",children:Dt?FORM_TITLE$2:INITAL_FORM_TITLE})}),jsxRuntimeExports.jsxs(FormSection,{children:[nt&&jsxRuntimeExports.jsx("div",{className:"description",children:`${Dt?FORM_DESCRIPTION$2:INITAL_FORM_DESCRIPTION}${nt}`}),Dt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"pin",title:FORM_INSTRUCTION$1,invalidInput:!cr(Ar),children:jsxRuntimeExports.jsx(VerificationInput,{containerProps:{className:"pin-input"},validChars:"0-9",length:6,value:At,onChange:Ir=>Rt(Ir),ref:Wt})}),vt&&jsxRuntimeExports.jsx(ErrorInfo,{errors:[VALIDATION_RULES==null?void 0:VALIDATION_RULES.smsPin.presence.message]}),!vt&&jsxRuntimeExports.jsx(ErrorInfo,{errors:Ar&&Ar.smsPin?Ar.smsPin:void 0})]}),!Ct&&Dt&&!isUs()&&jsxRuntimeExports.jsx("div",{id:"remember-checkbox",children:jsxRuntimeExports.jsx(Checkbox,{inputLabel:Ht(),inputName:"dont-ask-again",isChecked:xt,errors:Ar&&Ar.infoNoticeAccepted?Ar.infoNoticeAccepted:void 0,onChange:Ir=>{const Rr=[...zt];Rr.push("infoNoticeAccepted"),Mt(Ir),Tt(new Set([...Rr]))}})}),jsxRuntimeExports.jsxs("div",{className:"flex-horizontal-center",children:[Dt&&jsxRuntimeExports.jsx(LoadingButton,{onClick:()=>{Gt()?Zt(At):Tt(new Set(["infoNoticeAccepted","smsPin"]))},variant:"contained",name:"mfa-verify",loading:pt,children:"Verify"}),!Dt&&jsxRuntimeExports.jsx(LoadingButton,{onClick:()=>{rr(),Kt(!0)},variant:"contained",name:"mfa-send-initial",loading:pt,children:"Send code"})]}),Dt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Stack$5,{justifyContent:"center",children:jsxRuntimeExports.jsx(Tooltip,{arrow:!0,componentsProps:{tooltip:{sx:{bgcolor:"black",minWidth:"300px",fontSize:"0.9rem"}},arrow:{sx:{color:"black"}}},"data-test-id":"resend-token-link-tooltip",title:!Jt&&`Please try again in ${Bt} minute${Bt>1&&"s"}`,children:jsxRuntimeExports.jsx(ResendPasscodeLink$1,{id:"resend-token-link",onClick:()=>{nr()},style:{textAlign:"center"},...dr,children:FORM_RESEND_LINK_TEXT$1})})}),!Ct&&!isUs()&&jsxRuntimeExports.jsx("div",{className:"consent-agreement",children:"* You must agree to the consent to continue"}),Vt(ut)]})]})]})})}),br=()=>{const Ar={token:Xt()};axios.post("/server/auth/last_mobile_digits",Ar,{headers:{"Content-Type":"application/json"}}).then(Ir=>{if(Ir.status!==200)Nt(Ir),rt(!1);else{const Rr=Ir.data;lt(isUs()?Rr.lastFourDigits:Rr.lastThreeDigits),rt(!1)}}).catch(Ir=>{Nt(Ir),rt(!1)})};if(tt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(DeviceUtilities$1.isMobileDevice())return jsxRuntimeExports.jsxs("div",{className:"mobile ",children:[jsxRuntimeExports.jsx(HeaderBar,{defaultHeader:!0}),jsxRuntimeExports.jsx("div",{className:"mobile-off-container",children:jsxRuntimeExports.jsx(MobileOffIcon,{htmlColor:Ut.palette.grey[500],className:"mobile-off"})}),jsxRuntimeExports.jsx("h1",{children:"Mobile access unavailable"}),jsxRuntimeExports.jsx("p",{children:"Please use a computer or tablet to complete the registration."})]});const ar={};!isUs()&&zt.has("infoNoticeAccepted")&&(ar.infoNoticeAccepted=VALIDATION_RULES==null?void 0:VALIDATION_RULES.infoNoticeAccepted),zt.has("smsPin")&&(ar.smsPin=VALIDATION_RULES==null?void 0:VALIDATION_RULES.smsPin);const Mr=validate({infoNoticeAccepted:xt,smsPin:At},ar,{fullMessages:!1});return gr(Mr)},apolloComponent$7=withApollo(HomeRegLogin),HomeRegistrationLogin=withRouter(apolloComponent$7),CONTENT$2={TITLE:"End session",BODY:"All your information has been saved. If required, you can return to the form(s) by accessing the link in your email."},HomeRegoEndSession=et=>{var nt,lt;const{history:tt}=et,rt=(lt=(nt=tt==null?void 0:tt.location)==null?void 0:nt.state)==null?void 0:lt.isDtEot;return jsxRuntimeExports.jsxs("div",{id:"session-end-page",children:[jsxRuntimeExports.jsx(HeaderBar,{headingText:rt?"":"Patient Registration",defaultHeader:!0,preventQuery:!0}),jsxRuntimeExports.jsxs("div",{className:"session-container",children:[jsxRuntimeExports.jsx("div",{id:"session-end-image",children:jsxRuntimeExports.jsx("div",{className:"image"})}),jsxRuntimeExports.jsxs("main",{children:[jsxRuntimeExports.jsx("h1",{id:"session-title",children:CONTENT$2.TITLE}),jsxRuntimeExports.jsx("p",{id:"session-detail",children:CONTENT$2.BODY})]})]}),jsxRuntimeExports.jsx("div",{className:"end-home-bottom-navigator"})]})},CONTENT$1={TITLE:"Link expired",BODY:"You have either submitted your online registration or the link has expired. Please contact your local centre for assistance. You can find your centre details at"};let LinkExpired$1=class extends reactExports.Component{render(){return jsxRuntimeExports.jsxs("div",{id:"session-expired-page",children:[jsxRuntimeExports.jsx(HeaderBar,{headingText:"Patient registration",defaultHeader:!0}),jsxRuntimeExports.jsxs("div",{className:"session-container",children:[jsxRuntimeExports.jsx("div",{id:"session-expired-image",children:jsxRuntimeExports.jsx("div",{className:"image"})}),jsxRuntimeExports.jsxs("main",{children:[jsxRuntimeExports.jsx("h1",{id:"session-title",children:CONTENT$1.TITLE}),jsxRuntimeExports.jsx("p",{id:"session-detail",children:CONTENT$1.BODY}),jsxRuntimeExports.jsx("a",{href:"https://www.genesiscare.com/au/our-centres/",target:"_blank",children:"https://www.genesiscare.com/au/our-centres/"})]})]}),jsxRuntimeExports.jsx("div",{className:"end-home-bottom-navigator"})]})}};class SessionTimeout extends reactExports.Component{render(){return jsxRuntimeExports.jsxs("div",{id:"session-timeout-page",children:[jsxRuntimeExports.jsx(HeaderBar,{defaultHeader:!0,preventQuery:!0}),jsxRuntimeExports.jsxs("div",{className:"session-container",children:[jsxRuntimeExports.jsx("div",{id:"session-timeout-image",children:jsxRuntimeExports.jsx("div",{className:"image"})}),jsxRuntimeExports.jsxs("main",{children:[jsxRuntimeExports.jsx("h1",{id:"session-title",children:"Session timeout"}),jsxRuntimeExports.jsx("p",{id:"session-detail",children:"Your session has timed out due to more than 15 minutes inactivity. Please return to the link in your email if you wish to continue."})]})]}),jsxRuntimeExports.jsx("div",{className:"timeout-home-bottom-navigator"})]})}}const PATIENT_AND_USER_DETAILS_QUERY$3=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      address {
        id
        formattedAddress
      }
      firstName
      lastName
      ida
      gender
      dob
      gpFirstName
      gpLastName
      gpPractice
      gpIsInMosaiq
      referrersOtherSpecialists
      referringFirstName
      referringLastName
      referringPractice
      referringIsInMosaiq
      regFormStatus
      lastVisitedSection
      regFormStatus
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    user {
      id
      isPso
    }
    profile(id: $id) {
      id
      patientFeatures(id: $id) {
        doctorReferralLookupEnabled
      }
    }
    unseenPopups {
      id
      ...UnseenPopups
    }
  }

  ${UNSEEN_POPUP_NOTIFICATIONS_FRAGMENT}
`,PRACTITIONER_SEARCH_QUERY=gql`
  query PractitionerSearch($searchTerm: String!) {
    searchPractitionersFuzzy(search: $searchTerm) {
      id
      prefix
      firstName
      lastName
      location
      providerNumber
      isInMosaiq
    }
    user {
      id
    }
  }
`,GP_PRACTITIONER_SELECTED=gql`
  mutation UpdatePatient($id: ID!, $gpId: Int!) {
    updatePatient(id: $id, gpId: $gpId) {
      patient {
        id
        gpFirstName
        gpLastName
        gpPractice
        gpIsInMosaiq
      }
    }
  }
`,SPECIALIST_SELECTED=gql`
  mutation UpdatePatient($id: ID!, $referringId: Int!) {
    updatePatient(id: $id, referringId: $referringId) {
      patient {
        id
        referringFirstName
        referringLastName
        referringPractice
        referringIsInMosaiq
      }
    }
  }
`;gql`
  mutation UpdatePatientAuReferrer(
    $id: ID!
    $referringFirstName: String
    $referringLastName: String
    $referringPractice: String
    $referringId: String
    $gpFirstName: String
    $gpLastName: String
    $gpPractice: String
    $gpId: String
    $referrersOtherSpecialists: String
  ) {
    updatePatientAuReferrer(
      id: $id
      referringFirstName: $referringFirstName
      referringLastName: $referringLastName
      referringPractice: $referringPractice
      referringId: $referringId
      gpFirstName: $gpFirstName
      gpLastName: $gpLastName
      gpPractice: $gpPractice
      gpId: $gpId
      referrersOtherSpecialists: $referrersOtherSpecialists
    ) {
      patient {
        id
        referringFirstName
        referringLastName
        referringPractice
        referringIsInMosaiq
        gpFirstName
        gpLastName
        gpPractice
        gpIsInMosaiq
        referrersOtherSpecialists
      }
    }
  }
`;const StyledTableCell$4=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[200],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$5=styled(TableRow$7)(({theme:et})=>({cursor:"pointer","&:hover":{backgroundColor:et.palette.action.hover},"&:last-child td, &:last-child th":{border:0}})),PractitionerSearch=et=>{const{referralType:tt,userInfo:rt,closeModal:nt,makeFieldsEditable:lt,disableFields:ut,logTime:dt=!0,enableLogging:pt=!1,popOverOpen:ht,popOverClose:mt,hidePopOverComponent:xt=!1}=et,[Mt,vt]=reactExports.useState(0),[Ot,At]=reactExports.useState(""),[Rt,zt]=reactExports.useState(!1),Tt=reactExports.useRef(null),Ct=reactExports.useMemo(()=>rt?tt===ReferralType.GP?`${rt.gpFirstName||""} ${rt.gpLastName||""} ${rt.gpPractice||""}`:`${rt.referringFirstName||""} ${rt.referringLastName||""} ${rt.referringPractice||""}`:"",[rt]),It=reactExports.useRef(new Date().getTime());let Dt={patientHzId:rt.id,referralType:tt};const[kt]=useMutation(LOG_EVENT),[qt,{data:Nt,loading:Yt}]=useLazyQuery(PRACTITIONER_SEARCH_QUERY),Kt=[{query:REGISTRATION_REFERRER_QUERY,variables:{id:rt==null?void 0:rt.id}},{query:PATIENT_AND_USER_DETAILS_QUERY$3,variables:{id:rt.id}}],Jt={id:rt.id},[Qt,{loading:Bt}]=useMutation(GP_PRACTITIONER_SELECTED,{variables:Jt,refetchQueries:Kt}),[Ft,{loading:$t}]=useMutation(SPECIALIST_SELECTED,{variables:Jt,refetchQueries:Kt}),jt=reactExports.useMemo(()=>Yt||Bt||$t,[Yt||Bt||$t]),Wt=()=>{pt&&(Dt={...Dt,eventName:PRACTITIONER_LOG_EVENTS.PRACTITIONER_OVERRIDE_ENTRY},logPage(It==null?void 0:It.current,Dt,kt,dt)),lt(tt),nt(!0)},Ut=()=>{vt(Mt+1),pt&&(Dt={...Dt,eventName:PRACTITIONER_LOG_EVENTS.PRACTITIONER_SEARCHED,initialSearchTerm:Ct,searchTerm:Ot},logPage(It==null?void 0:It.current,Dt,kt,dt)),qt({variables:{searchTerm:Ot}})},Vt=Gt=>{const Zt=parseInt(Gt.id);pt&&(Dt={...Dt,eventName:PRACTITIONER_LOG_EVENTS.PRACTITIONER_SELECTED,selectedPractitionerHzId:Zt,searchCount:Mt},logPage(It==null?void 0:It.current,Dt,kt,dt)),tt===ReferralType.GP?(Qt({variables:{gpId:Zt}}),ut(tt),nt(!0)):tt===ReferralType.SPECIALIST&&(Ft({variables:{referringId:Zt}}),ut(tt),nt(!0))};reactExports.useEffect(()=>{if(rt){const Zt=Ct.trim();Zt&&At(Zt),qt({variables:{searchTerm:Zt}})}},[rt]),reactExports.useEffect(()=>{var Gt;if(!Yt){const Zt=(Gt=Nt==null?void 0:Nt.searchPractitionersFuzzy)==null?void 0:Gt.length;Zt>0?pt&&(Dt={...Dt,eventName:PRACTITIONER_LOG_EVENTS.PRACTITIONER_RESULTS,searchTerm:Ot,resultCount:Zt},logPage(It==null?void 0:It.current,Dt,kt,dt)):pt&&(Dt={...Dt,eventName:PRACTITIONER_LOG_EVENTS.PRACTITIONER_NOT_FOUND,initialSearchTerm:Ct},logPage(It==null?void 0:It.current,Dt,kt,dt))}},[Yt]),reactExports.useEffect(()=>{setTimeout(()=>{zt(!!ht)},500)},[]);const Ht=()=>{const Gt=Xt=>Xt.searchPractitionersFuzzy.filter(er=>er.isInMosaiq&&er.providerNumber&&er.location).map((er,nr)=>jsxRuntimeExports.jsxs(StyledTableRow$5,{onClick:()=>Vt(er),children:[jsxRuntimeExports.jsxs(TableCell,{children:[er.prefix," ",er.firstName," ",er.lastName]}),jsxRuntimeExports.jsx(TableCell,{children:er.location}),jsxRuntimeExports.jsx(TableCell,{children:er.providerNumber})]},`${er.providerNumber}-${nr}`)),Zt=()=>jsxRuntimeExports.jsx(TableRow$7,{children:jsxRuntimeExports.jsx(TableCell,{align:"center",colSpan:3,children:"No results found"})});return jt?jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0}):jsxRuntimeExports.jsx("div",{className:"results",children:jsxRuntimeExports.jsx("div",{id:"practitioner-search-results","data-test":"practitioner-search-results",children:jsxRuntimeExports.jsxs(Table$3,{"data-testid":"practitioner-search-results-table",children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsxs(TableRow$7,{children:[jsxRuntimeExports.jsx(StyledTableCell$4,{children:"Doctor Name"}),jsxRuntimeExports.jsx(StyledTableCell$4,{children:"Practice / Medical Centre"}),jsxRuntimeExports.jsx(StyledTableCell$4,{children:"Provider ID"})]})}),jsxRuntimeExports.jsx(TableBody$2,{children:Nt&&Nt.searchPractitionersFuzzy&&Nt.searchPractitionersFuzzy.length>0&&Nt.searchPractitionersFuzzy.filter(Xt=>Xt.isInMosaiq&&Xt.providerNumber&&Xt.location).length>0?Gt(Nt):Zt()})]})})})};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{id:"practitioner-search",ref:Tt,children:jsxRuntimeExports.jsxs(OnboardingPopover,{handleClose:()=>{zt(!1),mt&&mt()},handleVisitLink:()=>{},popoverOpen:Rt,target:Tt.current,feature:"GP Referrer",handleNext:()=>{zt(!1),mt&&mt()},step:"3",hidePopOverComponent:xt,logEvent:Gt=>kt({variables:{data:JSON.stringify(Gt)}}),children:[jsxRuntimeExports.jsxs("div",{className:"practitioner-search-input-container",children:[jsxRuntimeExports.jsx("div",{className:"icon"}),jsxRuntimeExports.jsx("input",{type:"text",id:"practitioner-search-input","data-testid":"practitioner-search-input",name:"practitioner-search",placeholder:"E.g. John Smith, Sally Thomas ...",value:Ot,onChange:Gt=>At(Gt.target.value),onKeyUp:Gt=>{Gt.key==="Enter"&&Ut()},style:{fontSize:"16px",fontFamily:"Poppins, sans-serif"}}),jsxRuntimeExports.jsx(Button,{type:"submit","data-testid":"practitioner-search-button",variant:"contained",onClick:Ut,children:"Search"})]}),jsxRuntimeExports.jsxs("div",{className:"cant-find-match",onClick:Wt,"data-test":"practitioner-search-non-match",children:[jsxRuntimeExports.jsx(SvgEdit,{className:"edit-pencil"}),"Can't find match?"]})]})}),Ht()]})},getCareplanName=et=>{var rt;let tt="";if(et.sitegroupSet.forEach((nt,lt)=>{lt>0&&tt!==""&&(tt+=", "),tt+=getTemplateGroupRepresentation(nt)}),tt===""){const nt=(rt=et==null?void 0:et.diagnosis)==null?void 0:rt.diagnosisCode;nt!=null&&nt.diagnosisCode&&(nt!=null&&nt.diagnosisDescription)&&(tt=`${nt==null?void 0:nt.diagnosisCode}: ${nt==null?void 0:nt.diagnosisDescription}`)}return tt},getTemplateGroupRepresentation=et=>{const tt=et.siteSet.map((nt,lt)=>lt<3?getSiteRepresentation(nt):null).filter(Boolean),rt=et.siteSet.length-tt.length===1?"site":"sites";return et.siteSet.length-tt.length!==0?tt.join(", ")+` + ${et.siteSet.length-tt.length} ${rt}`:tt.join(", ")},getFormattedDateTime=et=>{const tt=CurrentAppConfig.RadiationDashboard.dateTimeFormat;return dayjs(et).isSame(dayjs(),"day")?"Today "+dayjs(et).format("hh:mm A"):dayjs(et).format(tt)},PatientName$1=et=>{const{patientName:tt,ida:rt,patientId:nt,photoUrl:lt}=et,ut=useTheme$1(),dt=useHistory();return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:1,"data-testid":"careplan-table-patient-name",children:[jsxRuntimeExports.jsx(PhotoWidget,{url:lt,patientId:nt,enableOverlay:!0,size:"sm"}),jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",color:ut.palette.primary.dark,sx:{cursor:"pointer",textDecoration:"underline","&:hover":{color:ut.palette.primary.light}},onClick:pt=>{nt&&(pt.stopPropagation(),dt.push(`/radiation/patient/${nt}/summary`))},children:tt}),jsxRuntimeExports.jsxs(Typography,{variant:"body1",children:["Patient ID: ",rt]})]})]})},Status$2=({careplanStatus:et})=>{const tt=et==="CPOT"?"CPOT":et.toLowerCase().replace("_"," ").split(" ").map(rt=>rt.charAt(0).toUpperCase()+rt.slice(1)).join(" ");return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:1,"data-testid":"careplan-table-status",children:[jsxRuntimeExports.jsx(Stack$5,{height:"16px",width:"16px",borderRadius:"50%","data-testid":"careplan-table-status-pill",sx:{backgroundColor:getCareplanStatusColor(et)}}),tt]})},CareplanName=({careplan:et,careplanName:tt})=>{const rt=reactExports.useContext(UserContext),nt=hasSubmitted(et,rt.state.timezone)&&changesFromLastEdited(et),lt=useTheme$1();return jsxRuntimeExports.jsxs(Stack$5,{"data-testid":"careplan-table-careplan-name",children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:tt}),nt&&jsxRuntimeExports.jsx(Typography,{"data-testid":"unsubmitted-changes",variant:"body1",color:lt.palette.warning.dark,children:"Unsubmitted changes"})]})},Priority=({priority:et})=>{const tt=et==="emerg"?"Emergency":et;return jsxRuntimeExports.jsx(Stack$5,{textTransform:"capitalize",children:tt})},TABLE_LABELS$2={PATIENT_NAME:"Patient name",DEPARTMENT:"Department",CAREPLAN:"Careplan",STATUS:"Status",PRIORITY:"Priority",LAST_MODIFIED:"Last modified"},headCells=[{id:"patientName",enableSorting:!0,label:TABLE_LABELS$2.PATIENT_NAME,width:"20%"},{id:"department",enableSorting:!1,label:TABLE_LABELS$2.DEPARTMENT,width:"10%"},{id:"careplanName",enableSorting:!1,label:TABLE_LABELS$2.CAREPLAN,width:"30%"},{id:"status",enableSorting:!1,label:TABLE_LABELS$2.STATUS,width:"12%"},{id:"priority",enableSorting:!1,label:TABLE_LABELS$2.PRIORITY,width:"12%"},{id:"lastModified",enableSorting:!0,label:TABLE_LABELS$2.LAST_MODIFIED,width:"16%"}],SearchInput=et=>{const[tt,rt]=reactExports.useState(et.inputValue),nt=reactExports.useRef(null),lt=ht=>{rt(ht)},ut=(ht,mt)=>{ht==="Enter"&&et.onSubmitSearch(mt)},{id:dt,placeholder:pt}=et;return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",children:[jsxRuntimeExports.jsx(Search,{onClick:()=>ut("Enter",tt),color:"primary",sx:{margin:"0 4px"}}),jsxRuntimeExports.jsx(BaseTextField,{ref:nt,value:tt,type:"text",id:dt,placeholder:pt,onChange:ht=>lt(ht.target.value),onKeyDown:ht=>ut(ht.key,ht.target.value),sx:{width:"360px"}})]})},GET_CAREPLANS_QUERY=gql`
  query careplansQuery(
    $page: Int
    $rowsPerPage: Int
    $search: String
    $status: [String]
    $priority: String
    $ordering: String
    $careplanChanged: [String]
    $onlyForRequestingPractitioner: Boolean
    $submittedBy: [String]
    $onOrBeforeDate: String
    $onOrAfterDate: String
  ) {
    careplans(
      page: $page
      rowsPerPage: $rowsPerPage
      search: $search
      status: $status
      priority: $priority
      ordering: $ordering
      careplanChanged: $careplanChanged
      onlyForRequestingPractitioner: $onlyForRequestingPractitioner
      submittedBy: $submittedBy
      onOrBeforeDate: $onOrBeforeDate
      onOrAfterDate: $onOrAfterDate
    ) {
      id
      careplanStatus
      diagnosisCode
      diagnosis {
        id
        diagnosisCode {
          id
          diagnosisCode
          diagnosisDescription
        }
      }
      priority
      updatedAt
      submittedAt
      createdBy
      careplanName
      treatingDepartment
      latestPageUrl
      simulationModification
      prescriptionModification
      diagnosisModification
      patient {
        id
        fullName
        ida
        photoUrl
        patientGender
      }
      sitegroupSet {
        orderRanking
        id
        siteSet {
          id
          orderRanking
          treatmentSite {
            id
            treatmentSite
          }
          sitevaluesSet {
            id
            field {
              id
              name
            }
            value
          }
        }
      }
    }
    careplansCount(
      search: $search
      rowsPerPage: $rowsPerPage
      status: $status
      priority: $priority
      ordering: $ordering
      careplanChanged: $careplanChanged
      onlyForRequestingPractitioner: $onlyForRequestingPractitioner
      submittedBy: $submittedBy
      onOrBeforeDate: $onOrBeforeDate
      onOrAfterDate: $onOrAfterDate
    )
  }
`;gql`
  query carepathFilters {
    carepathFilters {
      practitioners {
        name
        id
      }
    }
  }
`;const DEFAULT_ROWS_PER_PAGE=10,ROWS_PER_PAGE_OPTIOSN=[DEFAULT_ROWS_PER_PAGE,20],CareplanTable=({statusFilter:et,careplanFilter:tt,setCareplanFilter:rt,setStatusFilter:nt})=>{const{setError:lt}=useErrorModalContext(),[ut,dt]=reactExports.useState(""),[pt,ht]=reactExports.useState(0),[mt,xt]=reactExports.useState(DEFAULT_ROWS_PER_PAGE),Mt=useTheme$1(),vt=useHistory(),Ot={page:pt+1,rowsPerPage:mt,search:ut,status:et,careplanChanged:tt,onlyForRequestingPractitioner:!0},{data:At,error:Rt}=useQuery(GET_CAREPLANS_QUERY,{variables:Ot,fetchPolicy:"network-only"}),zt=At==null?void 0:At.careplans,Tt=(At==null?void 0:At.careplansCount)||0,Ct=(zt==null?void 0:zt.map(Kt=>({id:Kt.id,patientName:Kt.patient.fullName,department:Kt.treatingDepartment||"-",careplanName:getCareplanName(Kt)||"Diagnosis not selected",status:Kt.careplanStatus,priority:Kt.priority,lastModified:getFormattedDateTime(Kt.updatedAt),patientId:Kt.patient.id,ida:Kt.patient.ida,photoUrl:Kt.patient.photoUrl,patientGender:Kt.patient.patientGender})))||[],It=CurrentAppConfig.RadiationDashboard.careplanDashboard,Dt=JSON.parse(JSON.stringify(It.careplanStatusFilters)).map(Kt=>({label:Kt.name,value:Kt.name})),kt=Kt=>{xt(parseInt(Kt.target.value,DEFAULT_ROWS_PER_PAGE)),ht(0)},qt=(Kt,Jt)=>{ht(Jt)},Nt=Kt=>{const Jt=zt.find(Qt=>Qt.id===Kt);Jt&&vt.push(redirectCareplanPath(Jt,Jt.patient.id))},Yt=()=>{rt(tt.includes(CareplanFilter.UNSUBMITTED)?[]:[CareplanFilter.UNSUBMITTED])};return Rt?lt():jsxRuntimeExports.jsx(Stack$5,{padding:2,width:1,children:jsxRuntimeExports.jsxs(Paper,{children:[jsxRuntimeExports.jsxs(Stack$5,{padding:2,children:[jsxRuntimeExports.jsx(Typography,{"data-testid":"table-title",variant:"h5",paddingBottom:2,children:"Careplan Dashboard"}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:2,height:"70px",children:[jsxRuntimeExports.jsx(SearchInput,{inputValue:ut||"",id:"patient-gc-search",placeholder:"Search patient name or patient ID…",onSubmitSearch:Kt=>dt(Kt)}),jsxRuntimeExports.jsx(SearchMultiSelectField,{selectAllEnabled:!0,selectAllLabel:"Select all",selectedOptionsUpdated:nt,resetSearchResults:()=>{},defaultSelectedOptions:et,options:Dt,placeholder:"Status filter",allSelected:(et==null?void 0:et.length)===(Dt==null?void 0:Dt.length),allSelectedLabel:"All filters"}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",gap:.5,children:[jsxRuntimeExports.jsx(Checkbox$1,{color:"primary",checked:tt.includes(CareplanFilter.UNSUBMITTED),onChange:Yt}),jsxRuntimeExports.jsx(Typography,{sx:{cursor:"pointer"},onClick:Yt,variant:"body1",children:"Only show unsubmitted changes"})]})]})]}),jsxRuntimeExports.jsx(Stack$5,{maxHeight:"calc(100vh - 293px)",minHeight:"calc(100vh - 293px)",overflow:"auto",padding:2,children:Tt&&zt?jsxRuntimeExports.jsx(TableContainer$6,{children:jsxRuntimeExports.jsxs(Table$3,{children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsx(TableRow$7,{children:headCells.map(Kt=>jsxRuntimeExports.jsx(TableCell,{align:"left",width:Kt.width,sx:{backgroundColor:"white"},children:Kt.label},Kt.id))})}),jsxRuntimeExports.jsx(TableBody$2,{children:Ct.map((Kt,Jt)=>jsxRuntimeExports.jsxs(TableRow$7,{"data-testid":`careplan-table-row-${Jt}`,onClick:()=>Nt(Kt.id),sx:{cursor:"pointer","&:hover":{backgroundColor:Mt.palette.action.hover}},children:[jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(PatientName$1,{...Kt,photoUrl:isDemo?patientGenderStockImage(Kt.patientGender):Kt.photoUrl})}),jsxRuntimeExports.jsx(TableCell,{children:Kt.department}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(CareplanName,{careplan:zt.find(Qt=>Qt.id===Kt.id),careplanName:Kt.careplanName})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Status$2,{careplanStatus:Kt.status})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Priority,{priority:Kt.priority})}),jsxRuntimeExports.jsx(TableCell,{children:Kt.lastModified})]},Kt.id))})]})}):jsxRuntimeExports.jsx(Typography,{padding:2,variant:"body1",color:Mt.palette.text.secondary,children:"No careplans available"})}),jsxRuntimeExports.jsx(TablePagination,{sx:{".MuiToolbar-root":{"align-items":"baseline"},".MuiTablePagination-displayedRows":{"margin-top":"1em","margin-bottom":"1em"}},rowsPerPageOptions:ROWS_PER_PAGE_OPTIOSN,count:Tt,rowsPerPage:mt,onRowsPerPageChange:kt,page:pt,onPageChange:qt})]})})},StyledSwitch=styled$1(Switch$1)`
  &&& {
    & .Mui-checked {
      color: ${et=>et.theme.palette.primary.main};
    }
    & .MuiSwitch-track {
      background-color: ${et=>et.theme.palette.primary.main};
    }
  }
`,Switch=({checked:et,handleChange:tt})=>jsxRuntimeExports.jsx(StyledSwitch,{checked:et,onChange:tt}),PopupContainter=styled$1("div")`
  display: flex;
  flex-direction: row;
  width: 400px;
  height: auto;
  justify-content: flex-start;
  justify-items: flex-start;
  align-items: center;
  & svg: {
    max-width: 32px;
    max-height: 32px;
  }
  z-index: 1180;
  background: white;
  padding: 0px;
  margin: 0px;
  left: 0px;
  top: 0px;
  position: absolute;
  border-radius: 4px;
  box-shadow: 0px 4px 8px rgb(113 110 106 / 50%);
`,PatientProfile=styled$1("div")`
  display: flex;
  flex-direction: column;
  width: 100%;
  color: black;
  text-align: left;
  padding: 16px 0px 8px;
  width: 300px;

  & .div {
    padding-left: 0px;
    margin-left: 0px;
  }
`,PhotoWrapper=styled$1("div")`
  width: 64px;
  height: 64px;
  align-content: center;
  display: flex;
  margin: 16px 4px auto 16px;
`,StyledName=styled$1("h3")`
  font-size: ${getRemSize(18)};
  font-weight: bold;
  color: ${et=>et.theme.palette.text.primary};
`,StyledID=styled$1("span")`
  font-size: ${getRemSize(14)};
  font-weight: bold;
  color: ${et=>et.theme.palette.grey[600]};
  padding-bottom: 8px;
`,StyledBoldText=styled$1("span")`
  font-size: ${getRemSize(14)};
  font-weight: bold;
  color: ${et=>et.theme.palette.text.primary};
  padding-bottom: 8px;
`,ROPatientProfilePopup=et=>{const tt=et.dob?hooks(et.dob).format("Do MMM YYYY"):"-",rt=et.dob?calculateMomentAge(hooks(et.dob)):"-",nt=isDemo?patientGenderStockImage(et.gender):null;return jsxRuntimeExports.jsxs(PopupContainter,{children:[jsxRuntimeExports.jsx(PhotoWrapper,{children:jsxRuntimeExports.jsx(PhotoWidget,{url:nt,patientId:et.id})}),jsxRuntimeExports.jsxs(PatientProfile,{children:[jsxRuntimeExports.jsx(StyledName,{children:et.fullName}),jsxRuntimeExports.jsxs(StyledID,{children:["Patient ID: ",et.ida]}),jsxRuntimeExports.jsx("span",{children:"Date of Birth:"}),jsxRuntimeExports.jsxs(StyledBoldText,{children:[tt," (Age ",rt,")"]}),jsxRuntimeExports.jsx("div",{children:"Address:"}),jsxRuntimeExports.jsx(StyledBoldText,{children:et.address&&et.address.formattedAddress})]})]})},DOCTOR_APPOINTMENT_QUERY=gql`
  query doctorAppointmentByDate($startDate: DateTime, $endDate: DateTime) {
    doctorAppointmentsByDate(startDate: $startDate, endDate: $endDate) {
      id
      patient {
        id
        fullName
        ida
        dob
        gender
        address {
          id
          formattedAddress
        }
        photoUrl
      }
      location {
        id
        name
      }
      startTime
      duration
      comment
      activity
      statusAbbreviation
      description
      department {
        id
        alias
      }
    }
  }
`,StyledDateInfo=styled$1("div")``,getStyledDate=(et,tt)=>et?hooks(et).tz(tt).calendar(null,{lastDay:"[Yesterday], ddd D MMM YYYY",sameDay:"[Today],  ddd D MMM YYYY, hh:mmA",nextDay:"[Tomorrow],  ddd D MMM YYYY",nextWeek:"ddd D MMM YYYY",lastWeek:"ddd D MMM YYYY",sameElse:"ddd D MMM YYYY"}):"Invalid date",DateTimeWidget=et=>{const[tt,rt]=reactExports.useState(CurrentAppConfig.DefaultTimezone);reactExports.useEffect(()=>{et.practitionerTimezone&&rt(et.practitionerTimezone)},[et.practitionerTimezone]);const[nt,lt]=reactExports.useState(hooks().tz(tt)),ut=et.date&&et.date.isSame(nt,"day");return useInterval(()=>{lt(hooks())},ut?1e3:null),jsxRuntimeExports.jsx(StyledDateInfo,{children:getStyledDate(ut?nt:et.date,tt)})},StyledRow$2=styled$1(Stack$5)`
  align-items: center;
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
`;styled$1(Stack$5)`
  display: flex;
  align-items: center;
`;const StyledTotalAppointments=styled$1("div")`
  font-weight: 400;
  background: ${et=>et.theme.palette.grey[100]};
  border-radius: 128px;
  padding: 2px 16px;
  height: 24px;
  line-height: 24px;
`,StyledShowCancelledAppointments=styled$1("div")`
  font-weight: 500;
  font-size: 16px;
  padding: 0px 16px;
  height: 24px;
  line-height: 24px;
  align: center;
`,StyledTable=styled$1("table")`
  border-collapse: separate;
  width: 100%;
  & td {
    padding: 7px 12px;
    border: 1px solid lightgray;
    text-align: left;
  }

  & thead {
    & th {
      position: sticky;
      top: 0;
      text-align: left;
      padding: 8px 8px;
      z-index: 1000;
      border: 1px solid lightgray;
      background-color: ${et=>et.theme.palette.action.selected};
    }
  }
`,StyledTableBody=styled$1("tbody")`
  color: black;
`,HighlightArrow=styled$1("div")`
  float: left;
  border-right: solid 7px transparent;
  border-left: solid 7px transparent;
  border-top: solid 7px ${et=>et.theme.palette.warning.main};
  transform: rotate(-90deg);
  width: 12px;
  height: 12px;
  z-index: 0;
`,StyledTableRow$4=styled$1("tr")`
  & td:first-child {
    border-left: ${et=>et.$highlight?`2px solid ${et.theme.palette.warning.main}`:"1px solid lightgray"};
  }
  & td:last-child {
    border-right: ${et=>et.$highlight?`2px solid ${et.theme.palette.warning.main}`:"1px solid lightgray"};
  }
  & td {
    border-top: ${et=>et.$highlight&&et.$highlightTop?`2px solid ${et.theme.palette.warning.main}`:"1px solid lightgray"};
    border-bottom: ${et=>et.$highlight&&et.$highlightBottom?`2px solid ${et.theme.palette.warning.main}`:"1px solid lightgray"};
    cursor: default;
    background: white;
  }
`,StyledTooltip=styled$1(Tooltip)`
  top: 12px !important;
  pointer-events: none;

  .arrow {
    border: none !important;
    z-index: 1181;
    overflow: hidden;
    padding: 0;
    height: 32px;
    width: 32px;
    top: -32px;
    transform: none !important;

    &::before {
      height: 16px;
      position: absolute;
      width: 16px;
      background-color: white;
      transform: rotate(45deg);
      box-shadow: 0px 4px 8px rgba(113, 110, 106, 0.5);
      left: 16px;
      bottom: -8px;
    }
  }

  .tooltip-inner {
    background: transparent;
  }
`,StyledPatientName=styled$1(Link$2)`
  color: ${et=>et.theme.palette.primary.dark} !important;
  text-decoration: underline !important;
`,OverlappedStyle=styled$1("td")`
  background: ${et=>et.$overlap?et.theme.palette.warning.light:"white"} !important;
`,TodayButton=styled$1("div")`
  width: 55px;
  line-height: 24px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration-line: underline;
  color: ${et=>et.theme.palette.primary.main};
  cursor: pointer;
  margin-right: 16px;
`,filterCancelledAppointments=(et,tt)=>et.filter(rt=>rt!=null&&(CurrentAppConfig.RadiationDashboard.isCancelledAppointmentsToggleEnabled&&!tt?rt.startTime&&rt.statusAbbreviation!=="X":rt.startTime)),prepareDailyScheduleData=(et,tt,rt,nt)=>{const lt=hooks(et).tz(rt).startOf("date").add(6,"hours").subtract(15,"minutes"),ut=[...new Array(48)].map(()=>({startTime:lt.add(15,"minutes").clone(),duration:15,id:"",patient:"",activity:"",description:"",status:"",comment:"",department:"",location:"",overlap:!1,showTime:!0}));if(!tt||tt.doctorAppointmentsByDate.length===0)return ut;const dt=ut;filterCancelledAppointments(tt.doctorAppointmentsByDate,nt).map(xt=>({id:xt.id,startTime:hooks(xt.startTime).tz(rt),duration:xt.duration?xt.duration/60:0,patient:xt.patient,activity:xt.activity,description:xt.description,status:xt.statusAbbreviation,comment:xt.comment,department:xt.department,location:xt.location,overlap:!1,showTime:!0})).forEach(xt=>{const Mt=dt.findIndex(vt=>hooks(xt.startTime).tz(rt)<=hooks(vt.startTime).tz(rt));if(Mt===-1){dt.push(xt);return}xt.startTime.isSame(dt[Mt].startTime)?dt[Mt].id?(xt.overlap=!0,dt[Mt].overlap=!0,dt[Mt].showTime=!1,dt.splice(Mt,0,xt)):dt.splice(Mt,1,xt):(Mt!==0&&(dt[Mt-1].duration=hooks.duration(xt.startTime.diff(dt[Mt-1].startTime)).asMinutes()),dt.splice(Mt,0,xt))});const mt=dt.length;return dt.forEach((xt,Mt)=>{let vt=Mt+1;const Ot=xt.startTime.clone().add(xt.duration,"minutes");for(;vt<mt&&Ot>dt[vt].startTime;)dt[vt].id&&(xt.overlap=!0),dt[vt].overlap=!0,vt+=1}),dt},renderTime=(et,tt)=>{const rt=et.startTime,nt=rt.minutes()===0?"hA":"h:mm";return jsxRuntimeExports.jsx(OverlappedStyle,{"data-testid":"appointment-time",$overlap:et.overlap,children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",children:[tt&&jsxRuntimeExports.jsx(HighlightArrow,{}),et.showTime&&rt.format(nt)]})})},renderDuration=et=>jsxRuntimeExports.jsx(OverlappedStyle,{$overlap:et.overlap,children:et.id?`${et.duration}'`:"-"}),renderPatient=et=>{const tt=et.patient?et.patient.id:0;return tt?jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(Tooltip,{title:jsxRuntimeExports.jsx(React$4.Fragment,{children:jsxRuntimeExports.jsx(StyledTooltip,{id:"patient-profile",title:"",children:jsxRuntimeExports.jsx(ROPatientProfilePopup,{...et.patient})})}),placement:"bottom-start",children:jsxRuntimeExports.jsx(StyledPatientName,{to:`/radiation/patient/${tt}/summary`,children:et.patient.fullName})})}):jsxRuntimeExports.jsx("td",{children:"-"})},ScheduleTableBody=et=>{const[tt,rt]=reactExports.useState(hooks()),nt=et.schedule,lt=reactExports.useRef(null),ut=nt.find(ht=>ht.id),dt=nt.filter(ht=>ht.startTime<=tt&&ht.startTime.clone().add(ht.duration,"minutes")>tt);if(dt&&dt.filter(ht=>!(ht.overlap&&!ht.id)).length===0){const ht=nt.findIndex(mt=>mt===dt[0]);ht!==-1&&ht!==0&&dt.push(nt[ht-1])}const pt=nt.map(ht=>{const mt=dt.filter(xt=>ht===xt||ht.startTime>=xt.startTime&&ht.startTime<xt.startTime.clone().add(xt.duration,"minutes"));return{...ht,currentAppointmentOverlap:mt&&mt.length!==0}}).filter(ht=>!(ht.overlap&&!ht.id));return useInterval(()=>{rt(hooks())},1e4),reactExports.useEffect(()=>{var ht;lt&&lt.current&&((ht=lt.current)==null||ht.scrollIntoView({behavior:"smooth"}))},[lt.current]),jsxRuntimeExports.jsx(StyledTableBody,{"data-testid":"daily-appointments-table",children:pt.map((ht,mt)=>{const xt=mt!==0?pt[mt-1]:void 0,Mt=mt!==pt.length-1?pt[mt+1]:void 0,vt=ht.startTime.clone().add(ht.duration,"minutes"),Ot=tt>=ht.startTime&&tt<vt&&ht.id,At=ht.currentAppointmentOverlap,Rt=ht.currentAppointmentOverlap&&!(Mt&&Mt.currentAppointmentOverlap),zt=ht.currentAppointmentOverlap&&!(typeof xt<"u"&&xt.currentAppointmentOverlap);return jsxRuntimeExports.jsxs(StyledTableRow$4,{ref:ut&&ut.id===ht.id||!ut&&mt===0?lt:null,$highlight:At,$highlightBottom:Rt,$highlightTop:zt,children:[renderTime(ht,Ot),renderDuration(ht),renderPatient(ht),jsxRuntimeExports.jsxs("td",{children:[ht.description?ht.description:"-"," "]}),jsxRuntimeExports.jsx("td",{children:ht.status&&ht.status!=="None"?ht.status:"-"}),jsxRuntimeExports.jsx("td",{children:ht.comment?ht.comment:"-"}),jsxRuntimeExports.jsx("td",{children:ht.department?ht.department.alias:"-"}),jsxRuntimeExports.jsx("td",{children:ht.location?ht.location.name:"-"})]},`appointment-row-${mt}`)})})},RODailyAppointment=()=>{const{setError:et}=useErrorModalContext(),rt=reactExports.useContext(UserContext).state.timezone,[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(0),[pt,ht]=reactExports.useState(hooks());reactExports.useEffect(()=>{ht(hooks())},[rt]);const{data:mt,error:xt,refetch:Mt}=useQuery(DOCTOR_APPOINTMENT_QUERY,{variables:{startDate:hooks(pt).tz(rt).startOf("day").toDate(),endDate:hooks(pt).tz(rt).endOf("day").toDate()},skip:!pt,fetchPolicy:"network-only"});reactExports.useEffect(()=>{if(xt)return et()},[xt]),reactExports.useEffect(()=>{if(mt&&mt.doctorAppointmentsByDate&&mt.doctorAppointmentsByDate.length>0){const Rt=filterCancelledAppointments(mt.doctorAppointmentsByDate,nt);dt(Rt.length)}},[mt,nt]);const vt=[{name:"Time",variable:"startTime",width:"5%"},{name:"Dur",variable:"duration",width:"5%"},{name:"Patient",variable:"patient",width:"15%"},{name:"Activity",variable:"activity",width:"15%"},{name:"Status",variable:"status",width:"5%"},{name:"Comment",variable:"comment",width:"30%"},{name:"Department",variable:"department",width:"10%"},{name:"Location",variable:"location",width:"15%"}],Ot=prepareDailyScheduleData(pt.toDate(),mt,rt,nt);useInterval(()=>{Mt()},6e4);const At=Rt=>{lt(Rt.target.checked)};return jsxRuntimeExports.jsx(Stack$5,{width:1,height:1,padding:2,children:jsxRuntimeExports.jsx(Card$2,{children:jsxRuntimeExports.jsxs(Stack$5,{padding:2,children:[jsxRuntimeExports.jsxs(Stack$5,{alignItems:"baseline",direction:"row",children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",paddingRight:1,children:jsxRuntimeExports.jsx(DateTimeWidget,{date:pt,practitionerTimezone:rt})}),jsxRuntimeExports.jsxs(StyledTotalAppointments,{"data-testid":"total-daily-appointments",children:["Total appointments: ",ut]}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",sx:{marginLeft:"auto",marginBottom:"6px"},gap:"2px",children:[jsxRuntimeExports.jsx(TodayButton,{onClick:()=>{ht(hooks())},children:"Today"}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>ht(pt?hooks(pt).subtract(1,"days"):hooks()),children:jsxRuntimeExports.jsx(ArrowBackIosNew,{color:"primary"})}),jsxRuntimeExports.jsx(BaseDatePicker,{id:"dailyAppointmentDatePicker",value:dayjs(pt.toString()),minDate:dayjs().subtract(5,"year"),maxDate:dayjs().add(5,"year"),onChange:(Rt,zt)=>{zt.validationError||!Rt||ht(hooks(Rt&&Rt.toString()))}}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>ht(pt?hooks(pt).add(1,"days"):hooks()),children:jsxRuntimeExports.jsx(ArrowForwardIos$1,{color:"primary"})})]})]}),CurrentAppConfig.RadiationDashboard.isCancelledAppointmentsToggleEnabled&&jsxRuntimeExports.jsxs(StyledRow$2,{children:[jsxRuntimeExports.jsx(StyledShowCancelledAppointments,{children:"Show cancelled appointments"}),jsxRuntimeExports.jsx(Switch,{checked:nt,handleChange:At})]}),jsxRuntimeExports.jsx(Stack$5,{width:1,height:"calc(100vh - 168px)",overflow:"auto",children:jsxRuntimeExports.jsxs(StyledTable,{children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:vt.map((Rt,zt)=>jsxRuntimeExports.jsx("th",{style:{width:Rt.width},children:Rt.name},`header-${zt}`))})}),jsxRuntimeExports.jsx(ScheduleTableBody,{schedule:Ot})]})})]})})})},CREATE_PATIENT=gql`
  mutation CreatePatient {
    createPatient {
      patient {
        id
      }
    }
  }
`;gql`
  mutation translation($lang: String!) {
    changeLanguage(language: $lang) {
      newLanguage {
        language
      }
      languageChanged
    }
  }
`;const GET_UNSUBMITTED_COUNT=gql`
  query GetUnsubmittedCount {
    getUnsubmittedCount {
      id
      drafts
      unsubmitted
    }
  }
`,REACT_APP_REGION$7=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,isUkRegion=REACT_APP_REGION$7===Region.UK;styled$1(Card$1)`
  flex-grow: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: auto;
  margin-left: 5px;
`;const DashboardLHSPane=({setStatusFilter:et,setCareplanFilter:tt})=>{var kt,qt,Nt,Yt,Kt,Jt,Qt,Bt,Ft;const{setError:rt}=useErrorModalContext(),nt=useTheme$1(),lt=useHistory(),{data:ut,loading:dt,error:pt}=useQuery(GET_USER_PROFILE),{data:ht,error:mt}=useQuery(GET_RECENT_PATIENTS,{fetchPolicy:"network-only",skip:((kt=ut==null?void 0:ut.user)==null?void 0:kt.primaryRole)===RoleType.CAREPLANVIEWER}),{data:xt,loading:Mt}=useQuery(GET_UNSUBMITTED_COUNT,{skip:((qt=ut==null?void 0:ut.user)==null?void 0:qt.primaryRole)===RoleType.CAREPLANVIEWER,fetchPolicy:"cache-and-network"}),vt=(Nt=ut==null?void 0:ut.user)==null?void 0:Nt.isRo;reactExports.useEffect(()=>{var $t;if(pt||!(($t=ut==null?void 0:ut.user)!=null&&$t.hasStaffId))return rt("ACCOUNT");if(mt)return rt()},[pt,mt,ut,(Yt=ut==null?void 0:ut.user)==null?void 0:Yt.hasStaffId,rt]);const[Ot,{loading:At}]=useMutation(CREATE_PATIENT,{onCompleted:$t=>{const{id:jt}=$t.createPatient.patient;lt.push(`/radiation/registration/patient/${jt}/basic`)}}),Rt=((Kt=ut==null?void 0:ut.user)==null?void 0:Kt.primaryRole)===RoleType.CAREPLANVIEWER;if(dt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(!vt&&!Rt)return jsxRuntimeExports.jsx(Redirect,{to:"/error"});const zt=vt?`Dr. ${(Jt=ut==null?void 0:ut.user)==null?void 0:Jt.name}`:(Qt=ut==null?void 0:ut.user)==null?void 0:Qt.name,Tt=generateGreetingText(),Ct=Mt?0:(Bt=xt==null?void 0:xt.getUnsubmittedCount)==null?void 0:Bt.drafts,It=Mt?0:(Ft=xt==null?void 0:xt.getUnsubmittedCount)==null?void 0:Ft.unsubmitted,Dt=At?"Loading":"Create new patient";return jsxRuntimeExports.jsxs(Stack$5,{"data-test-id":"dashboard-lhs-pane",height:1,borderRight:`1px solid ${nt.palette.divider}`,width:"240px",minWidth:"240px",alignItems:"center",sx:{backgroundColor:nt.palette.background.secondary},children:[jsxRuntimeExports.jsxs(Stack$5,{paddingX:2,paddingTop:3,paddingBottom:2,width:1,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",whiteSpace:"break-spaces",color:nt.palette.text.secondary,children:dayjs().format("ddd, DD MMMM YYYY")}),jsxRuntimeExports.jsx(Stack$5,{paddingY:2,children:jsxRuntimeExports.jsx(ROProfilePhoto,{useStock:!0})}),jsxRuntimeExports.jsx(Typography,{children:Tt}),jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{textWrap:"wrap"},children:zt}),jsxRuntimeExports.jsx(Divider$1,{sx:{margin:"12px -16px 12px -16px"}}),vt&&jsxRuntimeExports.jsxs(Stack$5,{gap:1,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"OUTSTANDING CAREPLANS"}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:2,alignItems:"center",id:"draft-careplan-count-button","data-test-id":"draft-careplan-count-button",onClick:()=>{et([CareplanStatusFilter.DRAFT]),tt([]),lt.push("/radiation/careplans")},children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",color:nt.palette.primary.dark,sx:{textDecoration:"underline",cursor:"pointer"},children:"Draft"}),jsxRuntimeExports.jsx(Badge$2,{"data-testid":"draft-careplan-count",showZero:!0,badgeContent:Ct,color:Ct===0?"secondary":"error"})]}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:2,alignItems:"center",id:"unsubmitted-count-button","data-test-id":"unsubmitted-count-button",onClick:()=>{et([]),tt([CareplanFilter.UNSUBMITTED]),lt.push("/radiation/careplans")},children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",color:nt.palette.primary.dark,sx:{textDecoration:"underline",cursor:"pointer"},children:"Unsubmitted changes"}),jsxRuntimeExports.jsx(Badge$2,{"data-testid":"unsubmitted-careplan-count",showZero:!0,badgeContent:It,color:It===0?"secondary":"error"})]})]})]}),isUkRegion&&jsxRuntimeExports.jsx(LoadingButton,{id:"new-patient-button","data-testid":"new-patient-button",sx:{width:.9,marginBottom:2},variant:"outlined",onClick:()=>{Ot()},loading:At,children:Dt}),jsxRuntimeExports.jsx(RecentPatients,{recentPatients:ht==null?void 0:ht.getRecentPatients,isRo:vt})]})},REACT_APP_REGION$6=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,StyledTile=styled$1(Card$2)`
  flex-grow: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: auto;
  margin: 16px;
  padding: 16px;
`,Dashboard$1=()=>{const{path:et}=useRouteMatch(),[tt,rt]=reactExports.useState([]),[nt,lt]=reactExports.useState([]),ut=REACT_APP_REGION$6===Region.UK;return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",height:1,width:1,children:[jsxRuntimeExports.jsx(DashboardLHSPane,{setCareplanFilter:rt,setStatusFilter:lt}),jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:`${et}/careplans`,children:jsxRuntimeExports.jsx(CareplanTable,{careplanFilter:tt,statusFilter:nt,setCareplanFilter:rt,setStatusFilter:lt})}),jsxRuntimeExports.jsx(Route,{path:et,component:ut?ROClinicListApollo$1:RODailyAppointment})]})]})},PatientTooltip=({patient:et,children:tt})=>{var nt;const rt=useTheme$1();return jsxRuntimeExports.jsx(Tooltip,{enterDelay:700,enterNextDelay:700,componentsProps:{tooltip:{sx:{bgcolor:"white",minWidth:"350px",border:`1px solid ${rt.palette.grey[300]}`}}},arrow:!0,title:jsxRuntimeExports.jsx(React$4.Fragment,{children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",style:{fontSize:"14px",color:rt.palette.text.primary},gap:"8px",children:[jsxRuntimeExports.jsx(PhotoWidget,{patientId:et.id,enableOverlay:!0,size:"reg"}),jsxRuntimeExports.jsxs(Stack$5,{direction:"column",children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",fontWeight:700,children:et.fullName}),jsxRuntimeExports.jsxs(Typography,{variant:"subtitle2",color:rt.palette.grey[600],sx:{paddingBottom:"8px"},children:["Patient ID: ",et.id]}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",sx:{paddingTop:"8px"},children:"Date of birth"}),jsxRuntimeExports.jsxs("b",{children:[hooks(et.dob).format("D MMM YYYY")," (age ",et.age,")"]}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",sx:{paddingTop:"8px"},children:"Address"}),jsxRuntimeExports.jsx("b",{children:(nt=et.address)==null?void 0:nt.formattedAddress})]})]})}),children:tt})},QUEUED_NFA_TITLE="Remove patient record?",QUEUED_NFA_BODY=" This will remove the patient record from the Clinic List. Only proceed if patient will not be receiving Radiotherapy at the present time",StyledRow$1=styled$1("tr")`
  &:hover {
    background-color: white !important;
    cursor: default !important;
  }
`,InnerTable=({tableHeaders:et,colWidths:tt,appointments:rt,onShowNFAModal:nt})=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("table",{className:"resp-table",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:et.map((lt,ut)=>jsxRuntimeExports.jsx("th",{style:{width:tt[ut]},children:jsxRuntimeExports.jsx("div",{className:classNames$1("header-style",{"header-right-aligned":lt==="Last Modified"}),children:lt})},`clinic-list-header-${ut}`))})}),jsxRuntimeExports.jsx("tbody",{children:rt.map(lt=>{var ut;return jsxRuntimeExports.jsxs(StyledRow$1,{className:classNames$1({nfaStyle:lt.noFurtherAction}),children:[jsxRuntimeExports.jsx("td",{children:lt.startTime&&!lt.queuedPatient?hooks(lt.startTime).format("hh:mm A"):"-"}),jsxRuntimeExports.jsx("td",{children:lt.queuedPatient?"-":`${lt.duration&&lt.duration/60} mins`}),jsxRuntimeExports.jsx("td",{"data-test-data":(ut=lt.patient)==null?void 0:ut.fullName.toLowerCase(),children:lt.patient?jsxRuntimeExports.jsx(PatientTooltip,{patient:lt.patient,children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsxs("div",{className:"patient-name-col",id:`patient-${lt.patient.id}`,children:[jsxRuntimeExports.jsx("div",{className:"photo-widget",children:jsxRuntimeExports.jsx(PhotoWidget,{patientId:lt.patient.id,enableOverlay:!0,size:"sm"})}),jsxRuntimeExports.jsxs("div",{className:"patient-name-col-fullname-ida",children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("a",{href:`/radiation/patient/${lt.patient.id}/summary`,children:lt.patient.fullName})}),jsxRuntimeExports.jsx("div",{children:lt.patient.ida})]})]})})}):"-"}),jsxRuntimeExports.jsx("td",{children:lt.queuedPatient?"Queued":lt.description?lt.description:lt.appointmentType}),jsxRuntimeExports.jsx("td",{children:!lt.queuedPatient&&lt.department?lt.department.name:"-"}),jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("div",{className:"action-buttons",children:jsxRuntimeExports.jsx(Button,{id:`remove-button-${lt.id}`,onClick:dt=>{dt.stopPropagation(),nt(lt)},children:lt.queuedPatient?"Remove Patient":"No Further Action"})})})]},`appointment-${lt.id}`)})})]})}),ROClinicListTable=InnerTable,ROClinicList=({appointments:et,currentDate:tt,onDateChange:rt,onNFAClick:nt,nfaWarning:lt,onShowNFAModal:ut,currAppointment:dt})=>{const pt=["Time","Duration","Patient name","Appointment type","Location","Actions"],ht=["10%","6%","18%","16%","18%","30%"],mt=tt?hooks(tt).toDate():null;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(StandardDialog,{open:lt,onClose:()=>{ut()},title:QUEUED_NFA_TITLE,destructiveSubmit:!0,submitText:"Remove record",onSubmit:()=>{nt()},children:jsxRuntimeExports.jsx("span",{id:"modal-info-body",style:{lineHeight:1.5},children:QUEUED_NFA_BODY})}),jsxRuntimeExports.jsx("div",{className:"RO-dashboard-wrapper",children:jsxRuntimeExports.jsxs(StyledTile,{className:"clinicList-dashboard-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"filter-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"table-title-style",children:jsxRuntimeExports.jsx("span",{className:"table-title","data-test-id":"table-title",children:"Clinic List"})}),jsxRuntimeExports.jsx("div",{className:"table-filters",children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",sx:{marginLeft:"auto",marginBottom:"6px"},gap:"2px",children:[jsxRuntimeExports.jsx(TodayButton,{onClick:()=>{rt(hooks().format("YYYY-MM-DD"))},children:"Today"}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>rt((mt?hooks(mt).subtract(1,"days"):hooks()).format("YYYY-MM-DD")),children:jsxRuntimeExports.jsx(ArrowBackIosNew,{color:"primary"})}),jsxRuntimeExports.jsx(BaseDatePicker,{id:"dailyAppointmentDatePicker",value:dayjs(mt),onChange:(xt,Mt)=>{Mt.validationError||!xt||rt(xt.format("YYYY-MM-DD"))}}),jsxRuntimeExports.jsx(IconButton,{onClick:()=>rt((mt?hooks(mt).add(1,"days"):hooks()).format("YYYY-MM-DD")),children:jsxRuntimeExports.jsx(ArrowForwardIos$1,{color:"primary"})})]})})]}),jsxRuntimeExports.jsx("div",{className:"table-wrapper",children:jsxRuntimeExports.jsx(ROClinicListTable,{tableHeaders:pt,colWidths:ht,appointments:et,onShowNFAModal:ut})})]})})]})},ROClinicList$1=withRouter(ROClinicList),APPOINTMENTS_QUERY$1=gql`
  query getAppointments($date: Date) {
    clinicList(date: $date) {
      noFurtherAction
      id
      startTime
      duration
      patient {
        dob
        age
        address {
          id
          formattedAddress
        }
        gender
        fullName
        ida
        id
        photoUrl
      }
      appointmentType
      description
      department {
        id
        name
      }
      queuedPatient
    }
  }
`,NFA_MUTATION=gql`
  mutation nfa($pk: ID!) {
    noFurtherAction(pk: $pk) {
      ok
    }
  }
`;class ROClinicListApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"changeDate",rt=>{rt==="-1"?this.setState({currentDate:hooks(this.state.currentDate).subtract(1,"days").format("YYYY-MM-DD")}):rt==="+1"?this.setState({currentDate:hooks(this.state.currentDate).add(1,"days").format("YYYY-MM-DD")}):this.setState({currentDate:rt})});Nr(this,"flipNFAModal",rt=>{this.setState({nfaWarning:!this.state.nfaWarning,currAppointment:rt})});Nr(this,"clickNFA",()=>{var rt;if(this.state.currAppointment){const nt={pk:this.state.currAppointment.id},lt={date:this.state.currentDate};(rt=this.props.client)==null||rt.mutate({mutation:NFA_MUTATION,variables:nt,refetchQueries:[{query:APPOINTMENTS_QUERY$1,variables:lt,notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-first"}],awaitRefetchQueries:!0}).then(()=>{this.setState({currAppointment:null,nfaWarning:!this.state.nfaWarning})})}});this.state={currentPage:1,currentDate:hooks().format("YYYY-MM-DD"),nfaWarning:!1,currAppointment:null}}render(){const{currentDate:rt}=this.state,nt={date:rt!==""?rt:hooks().format("YYYY-MM-DD"),BREAK:"BREAK"};return jsxRuntimeExports.jsx(Query,{query:APPOINTMENTS_QUERY$1,variables:nt,fetchPolicy:"cache-and-network",children:({loading:lt,data:ut,error:dt})=>{const{setError:pt}=useErrorModalContext();return reactExports.useEffect(()=>{if(dt)return pt()},[dt,ut]),lt?jsxRuntimeExports.jsx(LoadingSpinner,{}):ut!=null&&ut.clinicList?jsxRuntimeExports.jsx(ROClinicList$1,{appointments:ut.clinicList,currentDate:this.state.currentDate,onDateChange:this.changeDate,nfaWarning:this.state.nfaWarning,onShowNFAModal:this.flipNFAModal,currAppointment:this.state.currAppointment,onNFAClick:this.clickNFA}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}})}}const ROClinicListApollo$1=withApollo(ROClinicListApollo),EXIT_MESSAGE="Are you sure you want to leave? Changes that you made may not be saved.",pageFields={basic:["namePrefix","firstName","middleName","lastName","gender","dobDateSelector","idb","primaryCenter","primaryPhone","secondaryPhone","email","address","residentialAddressLine1","residentialAddressLine2","residentialAddressCity","residentialAddressCountry","residentialAddressState","residentialAddressPostcode"],insurance:["payor","relationship","policyNumber","preAuthNumber","insuranceNotes"],attachments:[]},SUBMIT_MUTATION=gql`
  mutation submit($patientId: ID!) {
    createRoSubmission(patientId: $patientId) {
      submission {
        id
      }
      submissionCreated
    }
  }
`,PATIENT_QUERY$4=gql`
  query patientQuery($id: ID) {
    patient(id: $id) {
      id
      ida
      idb
      idbConflict
      payor
      coverageRelationship
      policyNumber
      preAuthNumber
      preAuthNotes
      attachments {
        id
        dateAttached
        encounterDate
        documentType
        submitted
        file
        url
        filename
        docStatus
        filesize
        typeDisplay
      }
      primaryPhone
      secondaryPhone
      email
      firstName
      middleName
      lastName
      namePrefix
      fullName
      gender
      dob
      dobRawDay
      dobRawMonth
      dobRawYear
      primaryCenter
      hasPendingSubmission
      otherInformation
      referringSurgeon
      address {
        id
        formattedAddress
        ukFormattedAddress
      }
    }
    user {
      id
      isPso
      isShowcaseUser
    }
    documentTypeRefData: attachmentTypes {
      id
      conceptCode
      name: conceptDisplay
    }
    titleRefData: listData(category: "nameTitle") {
      id
      name
    }
    gpSurgeryRefData: practitionerLocations(patient: $id, search: "") {
      id
      name: fullName
    }
    surgeonLocationRefData: practitionerLocations(patient: $id, search: "") {
      id
      name: fullName
    }
    gpRefData: practitioners(url: "https://genesiscare.com/fhir/general-practice-surgery", patient: $id) {
      id
      name
    }
    surgeonRefData: extPractitioners(patient: $id, search: "") {
      id
      name: name
    }
    oncologistRefData: oncologists(patient: $id, search: "") {
      id
      name
    }
    relationshipsRefData: listData(category: "relationships") {
      id
      name
    }
    heritageRefData: listData(category: "heritage") {
      id
      name
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      name
    }
    ethnicityRefData: listData(category: "ethnicity") {
      id
      name
    }
    religionRefData: listData(category: "religion") {
      id
      name
    }
    countryOfBirthRefData: listData(category: "countryOfBirth") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    languageSpokenRefData: listData(category: "languages") {
      id
      name
    }
    medicareTypeRefData: listData(category: "healthFund") {
      id
      name
      appKey
    }
    insurerRefData: departments {
      id
      name
    }
    relationshipRefData: listData(category: "coverageRelationship") {
      id
      name
    }
    dvaTypeRefData: listData(category: "dvaCardType") {
      id
      name
      appKey
    }
    ausStateRefData: listData(category: "ukCounties") {
      id
      name
    }
    primaryCenterRefData: configs {
      id
      name
    }
    nhsOptionsRefData: listData(category: "nhsOptions") {
      id
      name
    }
    registrationReasonRefData: listData(category: "registrationReason") {
      id
      name
    }
    ukCounties: listData(category: "ukCounties") {
      id
      name
    }
    countries: listData(category: "countryOfBirth") {
      id
      name
    }
  }
`;class ROCreatePatient extends reactExports.Component{constructor(rt){super(rt);Nr(this,"handleUnload",rt=>{rt.preventDefault(),rt.returnValue=EXIT_MESSAGE});Nr(this,"switchErrorModalStatus",()=>{this.setState({errorModalOpen:!this.state.errorModalOpen})});Nr(this,"switchSubmitModalStatus",()=>{this.setState({submitModalOpen:!this.state.submitModalOpen})});Nr(this,"onFieldVisit",rt=>{this.setState({updatedFields:Array.from(new Set(this.state.updatedFields.concat(rt)))})});Nr(this,"isValidFields",rt=>{for(const nt of Object.keys(rt)){const lt=rt[nt];for(const ut of Object.keys(lt))if(lt[ut])return!1}return!0});Nr(this,"sectionValid",(rt,nt)=>{const lt=rt[nt];for(const ut of Object.keys(lt))if(lt[ut])return!1;return!0});Nr(this,"formatRefData",rt=>rt.map(nt=>(nt.id=nt.conceptCode||nt.name,nt)));this.state={updatedFields:[],errorModalOpen:!1,submitModalOpen:!1,submitting:!1}}componentDidMount(){window.addEventListener("beforeunload",this.handleUnload)}componentWillUnmount(){window.removeEventListener("beforeunload",this.handleUnload)}submitPatient(){this.setState({submitting:!0});const{match:{params:{id:rt}},client:nt}=this.props;nt==null||nt.mutate({mutation:SUBMIT_MUTATION,variables:{patientId:rt}}).then(lt=>{this.setState({submitting:!1}),lt.data&&lt.data.createRoSubmission.submissionCreated&&this.props.history.replace("/radiation")}).catch(()=>{this.setState({submitting:!1}),this.props.history.replace("/error")})}validIdb(rt){if(rt==="")return!0;if(typeof rt=="string"){const nt=[],lt=rt.replace(/ /g,"");for(let pt=0;pt<9;pt++)nt.push(parseInt(lt[pt])*[pt+1]);return nt.reduce((pt,ht)=>pt+ht,0)%11===parseInt(lt[9])}}render(){const rt=["basic","insurance","attachments","summary"],{submitting:nt}=this.state,lt=this.props.match,ut=window.location.pathname.split("/").slice(-1)[0],dt=vt=>vt===ut,pt=rt.findIndex(dt),ht=lt.params.id,mt=dayjs(),xt={sections:[{title:"Patient Registration",short:"REG",collapsible:!1,pages:[{title:"Basic Details",path:`/radiation/registration/patient/${ht}/basic`,key:"basic",pos:1},{title:"Insurance",path:`/radiation/registration/patient/${ht}/insurance`,key:"insurance",pos:2},{title:"Attachments",path:`/radiation/registration/patient/${ht}/attachments`,key:"attachments",pos:3},{title:"Review & Submit",path:`/radiation/registration/patient/${ht}/summary`,key:"summary",pos:4}]}]},Mt={id:ht};return jsxRuntimeExports.jsx(Query,{query:PATIENT_QUERY$4,variables:Mt,fetchPolicy:"cache-and-network",children:({loading:vt,data:Ot,error:At})=>{const{setError:Rt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(At)return Rt()},[At]),vt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(Ot&&Ot.patient&&Ot.user){const zt=Ot.patient,Tt=zt.residentialAddressCity?zt.residentialAddressCity.match(UK_CITY_REGEX)[0]!==zt.residentialAddressCity:!1,It=zt.residentialAddressState?resolveListDataValue(zt.residentialAddressState,Ot.ukCounties).match("[a-zA-Z\\s]+|")[0]!==zt.residentialAddressState:!1,Dt=zt.residentialAddressCountry?resolveListDataValue(zt.residentialAddressCountry,Ot.countries)===zt.residentialAddressCountry:!1,kt=!!(Tt||It||Dt),qt={basic:{title:!zt.namePrefix,firstName:!zt.firstName||zt.firstName.match(UK_NAME_REGEX)[0]!==zt.firstName,middleName:zt.middleName.match(UK_NAME_REGEX)[0]!==zt.middleName,lastName:!zt.lastName||zt.lastName.match(UK_NAME_REGEX)[0]!==zt.lastName,gender:!zt.gender,dob:zt.dob?!(dayjs(mt).diff(zt.dob,"year")>=18&&dayjs(mt).diff(zt.dob,"year")<=120):!0,nhsId:!this.validIdb(zt.idb)||zt.idbConflict,nhsReason:!1,primaryCentre:!zt.primaryCenter,primaryPhone:zt.primaryPhone||zt.secondaryPhone?zt.primaryPhone?!zt.primaryPhone.match(UK_PHONE_REGEX):!1:!0,secondaryPhone:zt.primaryPhone||zt.secondaryPhone?zt.secondaryPhone?!zt.secondaryPhone.match(UK_PHONE_REGEX):!1:!0,email:zt.email?!EMAIL_STRING_REGEX.test(String(zt.email).toLowerCase()):!1,address:kt,residentialAddressLine1:!1,residentialAddressLine2:!1,residentialAddressCity:zt.residentialAddressCity?!zt.residentialAddressCity.match(UK_CITY_REGEX):!1,residentialAddressCountry:!1,residentialAddressState:!1,residentialAddressPostcode:!1,otherInformation:!1},insurance:{payor:!1,relationship:!1,policyNumber:!1,preAuthNumber:!1,insuranceNotes:zt.preAuthNotes?zt.preAuthNotes.length>2048:!1},attachments:{},summary:{hasPendingSubmission:zt.hasPendingSubmission}};return jsxRuntimeExports.jsxs("div",{className:"RO-home-wrapper",children:[jsxRuntimeExports.jsx(StandardDialog,{open:this.state.submitModalOpen,onClose:this.switchSubmitModalStatus,onSubmit:()=>{nt||this.submitPatient()},submitText:nt?"Submission in progress":"Submit",submitButtonProps:{loading:nt},title:"Submit patient to Mosaiq?",children:jsxRuntimeExports.jsxs(Stack$5,{paddingY:2,children:[jsxRuntimeExports.jsx(Typography,{children:"Please ensure patient details are correct."}),jsxRuntimeExports.jsx(Typography,{children:"Patient information will be updated in both systems."})]})}),jsxRuntimeExports.jsx(StandardDialog,{open:this.state.errorModalOpen,onClose:()=>this.setState({errorModalOpen:!1}),title:"Missing Mandatory Fields",closeText:"Return to form",children:jsxRuntimeExports.jsxs(Stack$5,{paddingY:2,children:[jsxRuntimeExports.jsx(Typography,{children:"Please correct or complete the required fields in"}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",color:"error.main",children:"red"}),jsxRuntimeExports.jsx(Typography,{children:"for patient registration submission."})]})}),jsxRuntimeExports.jsx(ROSideNav,{children:jsxRuntimeExports.jsx(UKROStepper,{validationObject:qt,data:xt,activePageKey:ut})}),jsxRuntimeExports.jsxs("div",{className:"RO-create-pat-content",children:[jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(PatientCard,{id:ht})}),jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:"/radiation/registration/patient/:id/basic",render:Nt=>jsxRuntimeExports.jsx(RORegBasicApollo$1,{onFieldVisit:this.onFieldVisit,updatedFields:this.state.updatedFields,...Nt})}),jsxRuntimeExports.jsx(Route,{path:"/radiation/registration/patient/:id/insurance",component:RORegInsuranceApollo$1}),jsxRuntimeExports.jsx(Route,{path:"/radiation/registration/patient/:id/attachments",component:RORegAttachmentsApollo$1}),jsxRuntimeExports.jsx(Route,{path:"/radiation/registration/patient/:id/summary",component:RORegSummaryApollo}),jsxRuntimeExports.jsx(Route,{render:()=>jsxRuntimeExports.jsx(Redirect,{to:`/radiation/registration/patient/${ht}/basic`})})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{backDisabled:pt-1<0,nextDisabled:ut==="summary"&&Ot.user.isShowcaseUser,onBack:()=>{this.props.history.push(`/radiation/registration/patient/${ht}/${rt[pt-1]}`)},onNext:()=>{ut==="summary"?this.isValidFields(qt)?this.setState({submitModalOpen:!0}):this.setState({errorModalOpen:!0}):(this.onFieldVisit(pageFields[ut]),this.sectionValid(qt,ut)&&this.props.history.push(`/radiation/registration/patient/${ht}/${rt[pt+1]}`))},nextText:ut==="summary"?"Submit patient data":"Continue"}),jsxRuntimeExports.jsx(Prompt,{message:Nt=>Nt.pathname.includes("/radiation/registration/patient/")||this.state.submitModalOpen?!0:EXIT_MESSAGE})]}),jsxRuntimeExports.jsx("div",{style:{width:"1px"}})]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}})}}const apolloComponent$6=withApollo(ROCreatePatient),searchQuery=gql`
  query search($search: String!, $dob: Date, $existingPatient: String) {
    ukDedupSearch(search: $search, dob: $dob, existingPatient: $existingPatient) {
      id
      firstName
      lastName
      dob
      ida
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressPostcode
    }
  }
`,DeduplicationModal=et=>{const{patient:tt,variables:rt}=et,[nt,lt]=React$4.useState(!1),ut={search:""},{data:dt,error:pt}=useQuery(searchQuery,{variables:nt?ut:rt}),{setError:ht}=useErrorModalContext();return reactExports.useEffect(()=>{if(pt)return ht()},[pt]),reactExports.useEffect(()=>{lt(!1)},[rt.search,rt.dob,rt.existingPatient]),dt?jsxRuntimeExports.jsx(ModalSearchResults,{isOpen:dt&&dt.ukDedupSearch&&dt.ukDedupSearch.length>0,data:dt,redirect:et.redirect?et.redirect:"/opclinic/temppatientid/patient",dismissFunction:()=>lt(!0),patient:tt}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},previousVisitOptions=[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],stringTable={MAIN_HEADING:"Basic details",SUBHEADING:"Please enter patient basic details",FORM_LABELS:{TITLE:"Title",FIRST_NAME:"First name",LAST_NAME:"Last name",MIDDLE_NAME:"Middle name",PREVIOUS_VISIT:"Has the patient attended any GenesisCare centres before?",GENDER:"Gender",DATE_OF_BIRTH:"Date of birth",IDB:"NHS number",PRIMARY_CENTER:"Primary centre",SURGEON_NAME:"Referring clinician",PRIMARY_PHONE:"Mobile phone number",SECONDARY_PHONE:"Home phone number",EMAIL:"Email",ADDRESS:"Address"},FORM_KEYS:{TITLE:"namePrefix",FIRST_NAME:"firstName",LAST_NAME:"lastName",MIDDLE_NAME:"middleName",PREVIOUS_VISIT:"previousVisit",GENDER:"gender",DATE_OF_BIRTH:"dobDateSelector",IDB:"idb",SURGEON_NAME:"referringSurgeon",PRIMARY_CENTER:"primaryCenter",PRIMARY_PHONE:"primaryPhone",SECONDARY_PHONE:"secondaryPhone",EMAIL:"email",ADDRESS:"address"}};class RORegBasic extends reactExports.Component{constructor(rt){super(rt);Nr(this,"forceFetchItems",[{address:{id:"",formattedAddress:"",ukFormattedAddress:"",__typename:"AddressType"}}]);Nr(this,"handleAddressAutocomplete",rt=>{const{countries:nt,patient:lt}=this.props,ut={residentialAddressLine1:"",residentialAddressLine2:"",residentialAddressCity:"",residentialAddressCountry:"",residentialAddressPostcode:"",residentialAddressState:""},dt=rt.country==="England"?"United Kingdom":rt.country,pt=[rt.line2,rt.locality].filter(xt=>xt).join(", ");ut.residentialAddressLine1=rt.line1,ut.residentialAddressLine2=pt,ut.residentialAddressCity=rt.city,ut.residentialAddressPostcode=rt.postcode,ut.residentialAddressState=rt.county;const ht=nt.filter(xt=>{if(xt.name.toLowerCase()===dt.toLowerCase())return xt});ht.length>0?ut.residentialAddressCountry=ht[0].id:ut.residentialAddressCountry=dt;const mt=Object.keys(ut).map(xt=>({key:xt,value:ut[xt],type:"String"}));this.autoSaveAddress(lt,mt,this.forceFetchItems),this.setState({manualAddressEntry:!0})});Nr(this,"handleAutoCompleteOnBlur",(rt,nt)=>{const{patient:lt,updatedFields:ut}=this.props;if(rt&&rt.target&&rt.target.value.trim()===""){const dt={residentialAddressLine1:"",residentialAddressLine2:"",residentialAddressCity:"",residentialAddressCountry:"",residentialAddressPostcode:"",residentialAddressState:""},pt=Object.keys(dt).map(ht=>({key:ht,value:dt[ht],type:"String"}));this.setState({autoCompleteBlankError:!0,autoCompleteInvalidError:!1}),this.autoSaveAddress(lt,pt,this.forceFetchItems)}else this.setState({autoCompleteBlankError:!1,autoCompleteInvalidError:nt});ut.indexOf("addressAutocomplete")===-1&&this.props.onFieldVisit(["addressAutocomplete"])});const{patient:nt}=rt;this.state={firstName:nt.firstName,lastName:nt.lastName,middleName:nt.middleName,gender:nt.gender,idb:nt.idb,primaryPhone:nt.primaryPhone,secondaryPhone:nt.secondaryPhone,email:nt.email,autoCompleteBlankError:!1,autoCompleteInvalidError:!1,validateAddressFields:!1,manualAddressEntry:!!nt.address&&nt.address.formattedAddress!=="",searchVariables:{search:"",existingPatient:nt.id},openPreviousAttendance:!1}}componentWillUnmount(){this.props.onFieldVisit(Object.values(stringTable.FORM_KEYS))}autosave(rt,nt,lt=!0,ut="String"){const{patient:dt}=this.props;rt==="idb"&&(nt=nt.replace(/ /g,"").replace(/_/g,""));const pt={key:rt,value:nt,type:ut};(async()=>{await this.props.autosave(dt,[pt])})().then(()=>{if(lt){let xt=rt;rt==="dobRawYear"&&(xt="dobRaw"),this.props.onFieldVisit([xt])}setTimeout(xt=>{let{searchVariables:Mt}=this.state;const{patient:vt}=this.props;(xt==="firstName"||xt==="lastName"||xt==="dob")&&(vt.dob&&(Mt={...Mt,search:`${vt.firstName} ${vt.lastName}`,dob:vt.dob}),this.setState({searchVariables:Mt}))},300,rt)})}handlePreviousAttendanceChange(rt){const{patient:nt}=this.props;rt==="Yes"&&(nt.ida||this.setState({openPreviousAttendance:!0})),this.autosave("previousAttendance",rt)}validIdb(rt){if(rt==="")return!0;if(typeof rt=="string"){const nt=[],lt=rt.replace(/ /g,"");for(let pt=0;pt<9;pt++)nt.push(parseInt(lt[pt])*Number([pt+1]));return nt.reduce((pt,ht)=>pt+ht,0)%11===parseInt(lt[9])}}autoSaveAddress(rt,nt,lt){const{updatedFields:ut}=this.props;this.props.autosave(rt,nt,lt),ut.indexOf("addressAutocomplete")===-1&&this.props.onFieldVisit(["addressAutocomplete"])}hideModal(){this.autosave("previousAttendance","No"),this.setState({openPreviousAttendance:!1})}render(){var Vt,Ht,Gt;const{patient:rt,titleReferenceData:nt,genderRefData:lt,locationsRefData:ut,ukCounties:dt,countries:pt,updatedFields:ht}=this.props,{firstName:mt,middleName:xt,lastName:Mt,gender:vt,primaryPhone:Ot,secondaryPhone:At,email:Rt,manualAddressEntry:zt,validateAddressFields:Tt,openPreviousAttendance:Ct,searchVariables:It,autoCompleteInvalidError:Dt}=this.state,kt=nt.map(Zt=>({value:Zt.id,label:Zt.name})),qt=lt.map(Zt=>({label:Zt.name,value:Zt.id})),Nt=ut.map(Zt=>({label:Zt.name,value:Zt.id})),Yt=!mt||((Vt=mt.match(UK_NAME_REGEX))==null?void 0:Vt[0])!==mt,Kt=((Ht=xt.match(UK_NAME_REGEX))==null?void 0:Ht[0])!==xt,Jt=!Mt||((Gt=Mt.match(UK_NAME_REGEX))==null?void 0:Gt[0])!==Mt,Qt=Ot||At?Ot?!Ot.match(UK_PHONE_REGEX):!1:!0,Bt=!1,Ft=Ot||At?At?!At.match(UK_PHONE_REGEX):!1:!0,$t=Rt?!EMAIL_STRING_REGEX.test(String(Rt).toLowerCase()):!1,jt=dayjs(),Wt=rt.dob?dayjs(jt).diff(rt.dob,"year")>=18&&dayjs(jt).diff(rt.dob,"year")<=120:!1,Ut={line1:{inputName:"line1",defaultValue:rt.residentialAddressLine1,graphArgumentKey:"residentialAddressLine1",maxlength:60},line2:{inputName:"line2",defaultValue:rt.residentialAddressLine2,graphArgumentKey:"residentialAddressLine2",maxlength:60},city:{inputName:"city",defaultValue:rt.residentialAddressCity,graphArgumentKey:"residentialAddressCity",maxlength:40},country:{inputName:"country",defaultValue:rt.residentialAddressCountry,graphArgumentKey:"residentialAddressCountry"},stateprovienceregion:{inputName:"stateprovienceregion",defaultValue:rt.residentialAddressState,graphArgumentKey:"residentialAddressState"},zipPostcode:{inputName:"zippostcode",defaultValue:rt.residentialAddressPostcode,graphArgumentKey:"residentialAddressPostcode"},state:{inputName:"state",defaultValue:rt.residentialAddressState,graphArgumentKey:"residentialAddressState"}};return jsxRuntimeExports.jsxs("div",{className:"main-container ro-uk-full-width",children:[jsxRuntimeExports.jsx(routedComponent,{isOpen:Ct,dismissFunction:this.hideModal.bind(this)}),jsxRuntimeExports.jsx(DeduplicationModal,{redirect:"/radiation/patient/temppatientid/summary",patient:rt,variables:It}),jsxRuntimeExports.jsx(ROMiniRegoHeader,{title:stringTable.MAIN_HEADING,summary:stringTable.SUBHEADING}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"previousVisit",fieldlabel:stringTable.FORM_LABELS.PREVIOUS_VISIT,required:!0,options:previousVisitOptions,value:rt.ida||rt.previousAttendance?"Yes":"No",handleChange:Zt=>{this.handlePreviousAttendanceChange(Zt)}}),jsxRuntimeExports.jsx(ROAutocomplete,{fieldlabel:stringTable.FORM_LABELS.TITLE,required:!0,id:"namePrefix",value:getOptionByValue(kt.map(Zt=>({label:Zt.label,value:Zt.value})),rt.namePrefix),onChange:Zt=>{const Xt=typeof Zt=="string"?Zt:Zt.value;this.autosave("namePrefix",Xt)},placeholder:"Required",options:kt,inputProps:{error:ht.indexOf("namePrefix")>-1&&!rt.namePrefix,helperText:"This field is required"}}),jsxRuntimeExports.jsx(ROTextField,{id:"firstName",fieldlabel:stringTable.FORM_LABELS.FIRST_NAME,error:ht.indexOf("firstName")>-1&&Yt,helperText:mt?"Please enter a valid name":"First name is required",value:mt,placeholder:"Required",onChange:Zt=>{this.setState({...this.state,firstName:Zt.target.value})},onBlur:()=>this.autosave("firstName",mt),required:!0}),jsxRuntimeExports.jsx(ROTextField,{id:"middleName",fieldlabel:stringTable.FORM_LABELS.MIDDLE_NAME,error:ht.indexOf("middleName")>-1&&Kt,helperText:"Please enter a valid name",value:xt,onChange:Zt=>{this.setState({...this.state,middleName:Zt.target.value})},onBlur:()=>this.autosave("middleName",xt)}),jsxRuntimeExports.jsx(ROTextField,{id:"lastName",fieldlabel:stringTable.FORM_LABELS.LAST_NAME,error:ht.indexOf("lastName")>-1&&Jt,helperText:Mt?"Please enter a valid name":"Last name is required",value:Mt,placeholder:"Required",onChange:Zt=>{this.setState({...this.state,lastName:Zt.target.value})},onBlur:()=>this.autosave("lastName",Mt),required:!0}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"gender",required:!0,fieldlabel:stringTable.FORM_LABELS.GENDER,error:ht.indexOf("gender")>-1&&!vt,helperText:ht.indexOf("gender")>-1&&!vt?"This field is required":void 0,options:qt,value:vt,handleChange:Zt=>{this.setState({...this.state,gender:Zt}),this.autosave("gender",Zt)}}),jsxRuntimeExports.jsx(RODatePicker,{id:"date-of-birth",fieldlabel:stringTable.FORM_LABELS.DATE_OF_BIRTH,required:!0,value:rt.dob?dayjs(rt.dob):null,maxDate:dayjs().subtract(18,"year"),minDate:dayjs().subtract(121,"year"),onAccept:Zt=>{const Xt=dayjs(Zt);Xt.isValid()?this.autosave("dob",Xt.format("YYYY-MM-DD")):Zt===null&&this.autosave("dob","")},openTo:"year",onClose:()=>{this.props.onFieldVisit(["dobDateSelector"])},onBlur:Zt=>{const Xt=Zt.target.value,er=dayjs(Xt,"DD/MM/YYYY");er.isValid()?this.autosave("dob",er.format("YYYY-MM-DD")):Xt===null&&this.autosave("dob","")},error:ht.indexOf("dobDateSelector")>-1&&!Wt}),jsxRuntimeExports.jsx(FormRow$1,{id:"nhs-number",fieldlabel:stringTable.FORM_LABELS.IDB,children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Stack$5,{style:{maxWidth:"300px"},children:jsxRuntimeExports.jsx(MaskField$1,{dataTestId:"nhs-number",mask:"999 999 9999",disabled:rt.lock&&rt.lock.readOnly,inputName:"miniregoBasicIdbField",inputType:"text",defaultValue:rt.idb,onBlur:Zt=>{this.autosave("idb",Zt.target.value)}})}),ht.indexOf("idb")>-1&&!this.validIdb(rt.idb)||rt.idbConflict?jsxRuntimeExports.jsx(ROHelperText,{id:"disease",error:!0,helperText:rt.idbConflict?"This NHS number is already in use":"This is not a valid NHS number"}):null]})}),jsxRuntimeExports.jsx(ROAutocomplete,{fieldlabel:stringTable.FORM_LABELS.PRIMARY_CENTER,required:!0,id:"primaryCenter",value:getOptionByValue(Nt.map(Zt=>({label:Zt.label,value:Zt.value})),rt.primaryCenter),onChange:Zt=>{const Xt=typeof Zt=="string"?Zt:Zt.value;this.autosave("primaryCenter",Xt)},placeholder:"Required",options:Nt,inputProps:{error:ht.indexOf("primaryCenter")>-1&&!rt.primaryCenter,helperText:"This field is required"}}),jsxRuntimeExports.jsxs(FormRow$1,{id:"referring-surgeon",fieldlabel:stringTable.FORM_LABELS.SURGEON_NAME,children:[jsxRuntimeExports.jsx(AsyncAutocompleteRO,{dataTestId:"referring-surgeon",disabled:!1,inputName:stringTable.FORM_KEYS.SURGEON_NAME,placeholder:"Type to search",grapheneField:"extPractitioners",fullName:!1,patient:rt.id,onBlur:Zt=>{this.autosave(stringTable.FORM_KEYS.SURGEON_NAME,Zt)},defaultValue:typeof rt.referringSurgeon=="string"?rt.referringSurgeon:""}),ht.indexOf(stringTable.FORM_KEYS.SURGEON_NAME)>-1&&Bt?jsxRuntimeExports.jsx(ROHelperText,{id:"disease",error:!0}):null]}),jsxRuntimeExports.jsx(ROTextField,{id:"mobile-phone",fieldlabel:stringTable.FORM_LABELS.PRIMARY_PHONE,error:(ht.indexOf("primaryPhone")>-1||ht.indexOf("secondaryPhone")>-1)&&Qt,helperText:!Ot&&!At?"At least one phone number is required":"Invalid phone number",value:Ot,onChange:Zt=>{this.setState({...this.state,primaryPhone:Zt.target.value})},onBlur:()=>{this.setState({...this.state,primaryPhone:this.state.primaryPhone.trim()}),this.autosave("primaryPhone",Ot)},required:!0}),jsxRuntimeExports.jsx(ROTextField,{id:"secondary-phone",fieldlabel:stringTable.FORM_LABELS.SECONDARY_PHONE,error:(ht.indexOf("primaryPhone")>-1||ht.indexOf("secondaryPhone")>-1)&&Ft,helperText:At?"Invalid phone number":"At least one phone number is required",value:At,onChange:Zt=>{this.setState({...this.state,secondaryPhone:Zt.target.value})},onBlur:()=>{this.setState({...this.state,secondaryPhone:this.state.secondaryPhone.trim()}),this.autosave("secondaryPhone",At)}}),jsxRuntimeExports.jsx(ROTextField,{id:"email",fieldlabel:stringTable.FORM_LABELS.EMAIL,error:ht.indexOf("email")>-1&&$t,helperText:"Please enter a valid email address.",value:Rt,onChange:Zt=>{this.setState({...this.state,email:Zt.target.value})},onBlur:()=>this.autosave("email",Rt)}),jsxRuntimeExports.jsxs("div",{className:"addressField-RO",children:[jsxRuntimeExports.jsx(FormRow$1,{id:"residential-autocomplete",fieldlabel:stringTable.FORM_LABELS.ADDRESS,children:jsxRuntimeExports.jsx(AddressAutocomplete,{isRO:!0,placeholder:"Type to search",name:"residential-autocomplete",dataTestId:"residential-country",fullWidth:!0,onSelected:this.handleAddressAutocomplete,disabled:rt.lock&&rt.lock.readOnly,loadingMessage:"Loading...",defaultValue:rt.address&&rt.address.ukFormattedAddress,inputOnBlur:this.handleAutoCompleteOnBlur,region})}),jsxRuntimeExports.jsx(AddressFieldRO,{isMandatory:!0,disabled:rt.lock&&rt.lock.readOnly,validateForm:!0,inputName:"residential",addressInputs:Ut,onBlur:Zt=>{Zt.length>0&&this.props.onFieldVisit([Zt[0].key]),this.autoSaveAddress(this.props.patient,Zt,this.forceFetchItems)},countries:pt,ausStates:dt})]})]})}}const REACT_APP_REGION$5=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,logger$e=new Logger("RegistrationForm"),region$2=REACT_APP_REGION$5;gql`
  {
    pendingSaveCount @client
    saveErrorCount @client
    registrationPagesViewed @client
  }
`;function withROCreatePatient(et){return class extends reactExports.Component{constructor(rt){super(rt);Nr(this,"getGQLVariablesUsingObject",(rt,nt,lt,ut)=>{const dt={id:rt};for(const pt of Object.entries(nt)){const[ht,mt]=pt;typeof mt=="object"?dt[ht]={...mt}:dt[ht]=mt,ut&&(ht==="emergencyContact"||ht==="nextOfKinContact")&&(dt[ht].__typename="AlternateContactInputType")}if(lt&&lt.length>0)for(const pt of lt)Object.keys(pt).forEach(ht=>{dt[ht]=pt[ht]});return logger$e.debug("getGQLVariablesUsingObject","getGQLVariablesUsingObject return"),logger$e.debug("getGQLVariablesUsingObject",JSON.stringify(dt)),dt});Nr(this,"getPatientMutationUsingObject",(rt,nt,lt)=>{const dt={...this.getGQLVariablesUsingObject(rt,nt,lt,!0),__typename:"PatientType"};return{mutation:this.getGQLUpdatePatientUsingObject(nt,lt),variables:this.getGQLVariablesUsingObject(rt,nt,lt),optimisticResponse:{updatePatient:{patient:dt,errors:null,__typename:"UpdatePatient"}}}});Nr(this,"getGQLUpdatePatientUsingObject",(rt,nt)=>{const lt=mapObjectToMutationParams(rt),ut=mapObjectToFunctionParams(rt),dt=flattenObjectToQueryString(rt,void 0,this.buildForceFetchString(nt)),pt=`mutation UpdatePatient(${lt}) {
        updatePatient(${ut}) {
          patient ${dt}
          errors
        }
      }`;return logger$e.debug("getgqlUpdatePatient","getgqlUpdatePatient return"),logger$e.debug("getgqlUpdatePatient",pt),gql(pt)});Nr(this,"getSaveStatus",(rt,nt)=>{let lt=SavingStatus.SAVED;return rt>0&&(lt=SavingStatus.SAVING),nt>0&&(lt=SavingStatus.FAILED),lt});Nr(this,"showModal",(rt,nt)=>{this.setState({modalIsOpen:!0,modalTitle:rt,modalText:nt})});Nr(this,"showSavingErrorModal",(rt,nt)=>{this.setState({errorModalIsOpen:!0,errorForPSO:rt,errorModalCallback:nt})});this.state={modalIsOpen:!1,modalTitle:"",modalText:"",errorModalIsOpen:!1,errorForPSO:!1}}render(){const{modalIsOpen:rt,modalTitle:nt,modalText:lt,errorModalIsOpen:ut,errorForPSO:dt,errorModalCallback:pt}=this.state;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalInfo$1,{title:nt,text:lt,isOpen:rt,dismissFunction:()=>{this.setState({modalIsOpen:!1})}}),jsxRuntimeExports.jsx(ModalInfo,{isOpen:ut,isPSO:dt,callbackRouting:pt}),jsxRuntimeExports.jsx(et,{getPatientMutation:(ht,mt,xt,Mt,vt)=>Mt&&vt?this.getPatientMutationUsingObject(ht.id,vt,xt):this.getPatientMutation(ht,mt,xt),getSaveStatus:(ht,mt)=>this.getSaveStatus(ht,mt),showModalIfLocked:ht=>{if(ht&&ht.patient&&ht.patient.lock&&ht.patient.lock.readOnly){const mt=region$2===Region.UK&&ht.patient.lock.lockedByName==="system"?"Patient already submitted":"Record in use",xt="This patient record is currently in use by",Mt="and cannot be edited until it is released by the user. Any changes made to this record will not be saved",vt=ht.patient.lock&&ht.patient.lock.lockedByName,Ot=`${xt} ${vt} ${Mt}`;this.showModal(mt,Ot)}},showSavingErrorModal:(ht,mt)=>{const xt=()=>{mt(ht?"/search":"/patient")};this.showSavingErrorModal(ht,xt)},...this.props})]})}getgqlVariables(rt,nt,lt){const ut={id:rt.id};for(const dt of nt)ut[dt.key]=dt.value;if(lt&&lt.length>0)for(const dt of lt)Object.keys(dt).forEach(pt=>{ut[pt]=dt[pt]});return logger$e.debug("getgqlVariables","getgqlVaribles return"),logger$e.debug("getgqlVariables",ut),ut}getPatientMutation(rt,nt,lt){const ut={...this.getgqlVariables(rt,nt,lt),__typename:"PatientType"};return{mutation:this.getgqlUpdatePatient(nt,lt),variables:this.getgqlVariables(rt,nt,lt),optimisticResponse:{updatePatient:{patient:ut,errors:null,__typename:"UpdatePatient"}}}}getgqlUpdatePatient(rt,nt){const lt=rt.map(ht=>`$${ht.key}: ${ht.type}`).join(", "),ut=rt.map(ht=>`${ht.key}: $${ht.key}`).join(", ");let dt=rt.map(ht=>`${ht.key}`).join(`
`);dt+=this.buildForceFetchString(nt);const pt=`mutation UpdatePatient($id: ID!, ${lt}) {
      updatePatient(id: $id, ${ut}) {
        patient {
          id
          ${dt}
        }
        errors
      }
     }`;return logger$e.debug("getgqlUpdatePatient","getgqlUpdatePatient return"),logger$e.debug("getgqlUpdatePatient",pt),gql(pt)}buildForceFetchString(rt){const nt=ut=>{const dt=typeof ut;return dt==="object"&&dt!==null};let lt="";return rt&&rt.length>0&&(lt+=`
`,rt.forEach(ut=>{const dt=Object.keys(ut);if(nt(ut)&&dt.length>0){const pt=ut;for(const ht of dt){const mt=pt[ht];lt+=`${ht}`;const xt=Object.keys(mt);if(nt(mt)&&xt.length>0){lt+=` {
`;for(const Mt of xt)lt+=`${Mt}
`;lt+=`}
`}else lt+=`
`}}else lt+=`${ut}
`})),lt}}}const PATIENT_AND_USER_DETAILS_QUERY$2=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      previousAttendance
      namePrefix
      firstName
      middleName
      lastName
      gender
      dob
      idb
      ida
      idbConflict
      primaryCenter
      primaryPhone
      secondaryPhone
      email
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressState
      residentialAddressPostcode
      residentialAddressCountry
      otherInformation
      referringSurgeon
      address {
        id
        formattedAddress
        ukFormattedAddress
        country
      }
    }
    ukCounties: listData(category: "ukCounties") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    nameTitle: listData(category: "nameTitle") {
      id
      name
    }
    locationsRefData: configs(excludeMo: true) {
      id
      name
    }
    countries: listData(category: "countryOfBirth") {
      id
      name
    }
  }
`;class RORegBasicApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"autosave",async(rt,nt,lt)=>{const ut=this.props.getPatientMutation(rt,nt,lt),{match:dt}=this.props,{id:pt}=dt.params;ut.refetchQueries=[{query:PATIENT_AND_USER_DETAILS_QUERY$2,variables:{id:pt},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"}],ut.awaitRefetchQueries=!0;const ht=this.props.client;if(!ht)return;const mt=await this.getApolloCache();let xt=mt.currentPendingSaveCount+1,Mt=mt.saveErrorCount;ht&&ht.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:xt}}),this.setState({saveStatus:this.props.getSaveStatus(xt,Mt)}),ht.mutate(ut).then(vt=>{vt.data.updatePatient.errors&&Mt++}).catch(()=>{this.props.showSavingErrorModal(!1,this.props.history.push),Mt++}).finally(async()=>{xt=(await this.getApolloCache()).currentPendingSaveCount-1,ht&&ht.writeQuery({query:gql`
              query {
                pendingSaveCount
                saveErrorCount
              }
            `,data:{pendingSaveCount:xt,saveErrorCount:Mt}}),this.setState({saveStatus:this.props.getSaveStatus(xt,Mt)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;if(!rt)throw new Error("Client not found");try{const nt=await rt.query({query:GET_APOLLO_CACHE}),lt=nt.data.pendingSaveCount,ut=nt.data.saveErrorCount,dt=nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={activeTab:"clinicList",saveStatus:SavingStatus.SAVED,pageViewed:!1}}render(){const{match:rt,showModalIfLocked:nt}=this.props,{id:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY$2,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,data:dt,refetch:pt})=>ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt&&dt.patient?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(RORegBasic,{updatedFields:this.props.updatedFields,onFieldVisit:this.props.onFieldVisit,autosave:this.autosave,patient:dt.patient,locationsRefData:dt.locationsRefData,genderRefData:dt.genderRefData,titleReferenceData:dt.nameTitle,saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,forceRefetch:pt,countries:dt.countries,ukCounties:dt.ukCounties})]}):jsxRuntimeExports.jsx("div",{children:"Error"})})}}const apolloComponent$5=withApollo(RORegBasicApollo),RORegBasicApollo$1=withROCreatePatient(apolloComponent$5);class RORegInsurance extends reactExports.Component{constructor(tt){super(tt);const{patient:rt}=tt;this.state={policyNumber:rt.policyNumber,preAuthNumber:rt.preAuthNumber,insuranceNotes:rt.preAuthNotes}}autosave(tt,rt,nt="String"){const{patient:lt}=this.props,ut={key:tt,value:rt,type:nt};(async()=>{await this.props.autosave(lt,[ut])})().then(()=>{})}render(){const{patient:tt,insurerRefData:rt,relationshipRefData:nt}=this.props,{policyNumber:lt,preAuthNumber:ut,insuranceNotes:dt}=this.state,pt=lodash.cloneDeep(rt),ht=lodash.cloneDeep(nt),mt=[...pt].sort((vt,Ot)=>vt.name>Ot.name?1:-1).map(vt=>({value:vt.id,label:vt.name})),xt=[...ht].sort((vt,Ot)=>vt.name>Ot.name?1:-1).map(vt=>({value:vt.id,label:vt.name})),Mt=((dt==null?void 0:dt.length)||0)>2048;return jsxRuntimeExports.jsxs("div",{className:"main-container ro-uk-full-width",children:[jsxRuntimeExports.jsx(ROMiniRegoHeader,{title:"Insurance",summary:"Please enter insurance details."}),jsxRuntimeExports.jsx(ROAutocomplete,{fieldlabel:"Insurance company",id:"payor",value:getOptionByValue(mt.map(vt=>({label:vt.label,value:vt.value})),tt.payor),onChange:vt=>{const Ot=typeof vt=="string"?vt:vt.value;this.autosave("payor",Ot)},placeholder:"Select insurance company",options:mt}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"relationship",fieldlabel:"Relationship to policy holder",options:xt,value:getOptionByValue(xt.map(vt=>({label:vt.label,value:vt.value})),tt.coverageRelationship),onChange:vt=>{const Ot=typeof vt=="string"?vt:vt.value;this.autosave("coverageRelationship",Ot)},placeholder:"Select relationship to policy holder"}),jsxRuntimeExports.jsx(ROTextField,{id:"policyNumber",fieldlabel:"Policy number",value:lt||"",onChange:vt=>{this.setState({...this.state,policyNumber:vt.target.value})},onBlur:()=>{lt&&this.autosave("policyNumber",lt)}}),jsxRuntimeExports.jsx(ROTextField,{id:"preAuthNumber",fieldlabel:"Pre-auth number",value:ut||"",onChange:vt=>{this.setState({...this.state,preAuthNumber:vt.target.value})},onBlur:()=>{ut&&this.autosave("preAuthNumber",ut)}}),jsxRuntimeExports.jsx(ROTextField,{id:"preAuthNotes",fieldlabel:"Insurance notes",defaultValue:dt||"",error:Mt,helperText:Mt?"Please reduce note length. Maximum is 2048 characters.":`Maximum 2048 characters. ${2048-((dt==null?void 0:dt.length)||0)} remaining.`,placeholder:"e.g. Including procedures authorised",multiline:!0,minRows:5,maxRows:5,alwaysShowHelper:!0,maxLength:2048,onBlur:()=>{typeof dt<"u"&&this.autosave("preAuthNotes",dt)},onChange:vt=>{this.setState({insuranceNotes:vt==null?void 0:vt.target.value})}})]})}}const apolloComponent$4=withApollo(RORegInsurance),PATIENT_QUERY$3=gql`
  query patientQuery($id: ID) {
    patient(id: $id) {
      id
      ida
      dob
      payor
      coverageRelationship
      policyNumber
      preAuthNumber
      preAuthNotes
      fullName
    }
    user {
      id
      isPso
    }
    insurerRefData: quarantiniDepartments(unknown: true) {
      id
      name
    }
    relationshipRefData: listData(category: "coverageRelationship") {
      id
      name
    }
  }
`;class RORegInsuranceApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"autosave",async(rt,nt,lt)=>{const ut=this.props.getPatientMutation(rt,nt,lt),{match:dt}=this.props,{id:pt}=dt.params;ut.refetchQueries=[{query:PATIENT_QUERY$3,variables:{id:pt},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"}],ut.awaitRefetchQueries=!0;const ht=this.props.client,mt=await this.getApolloCache();let xt=mt.currentPendingSaveCount+1,Mt=mt.saveErrorCount;ht&&ht.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:xt}}),this.setState({saveStatus:this.props.getSaveStatus(xt,Mt)}),ht==null||ht.mutate(ut).then(vt=>{vt.data.updatePatient.errors&&Mt++}).catch(()=>{this.props.showSavingErrorModal(!1,this.props.history.push),Mt++}).finally(async()=>{xt=(await this.getApolloCache()).currentPendingSaveCount-1,ht&&ht.writeQuery({query:gql`
              query {
                pendingSaveCount
                saveErrorCount
              }
            `,data:{pendingSaveCount:xt,saveErrorCount:Mt}}),this.setState({saveStatus:this.props.getSaveStatus(xt,Mt)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;if(!rt)throw new Error("Client not found");try{const nt=await rt.query({query:GET_APOLLO_CACHE}),lt=nt.data.pendingSaveCount,ut=nt.data.saveErrorCount,dt=nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={activeTab:"clinicList",saveStatus:SavingStatus.SAVED,pageViewed:!1}}render(){const lt={id:this.props.match.params.id};return jsxRuntimeExports.jsx(Query,{query:PATIENT_QUERY$3,variables:lt,fetchPolicy:"cache-and-network",children:({loading:ut,data:dt,error:pt})=>{const{setError:ht}=useErrorModalContext();return reactExports.useEffect(()=>{if(pt)return ht()},[pt]),ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt&&dt.patient&&dt.user?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:dt.patient.id}),jsxRuntimeExports.jsx(apolloComponent$4,{autosave:this.autosave,patient:dt.patient,user:dt.user,insurerRefData:dt.insurerRefData,relationshipRefData:dt.relationshipRefData})]}):jsxRuntimeExports.jsx("div",{})}})}}const apolloComponent$3=withApollo(RORegInsuranceApollo),RORegInsuranceApollo$1=withROCreatePatient(apolloComponent$3),logger$d=new Logger("roRegAttachments"),REACT_APP_REGION$4=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,fileSizeErrorMsg="Max file size is 20MB",attachmentsAmountErrorMsg="Patient can only have up to 10 attachments",FORGOT_UPLOAD_TITLE="Forgot to upload?",FORGOT_UPLOAD_TEXT="Please upload the last file you added or remove it from the list.";class RORegAttachments extends reactExports.Component{constructor(rt){super(rt);Nr(this,"fileInputRef");Nr(this,"uploadFile",()=>{this.fileInputRef.current.click()});Nr(this,"onDragOver",()=>{this.setState({...this.state,dropzoneClass:"hovered"})});Nr(this,"onDragLeave",()=>{this.setState({...this.state,dropzoneClass:"dropzone"})});Nr(this,"handleDrop",rt=>{const nt=[];rt.dataTransfer.items[0].kind==="file"&&nt.push(rt.dataTransfer.items[0].getAsFile()),this.selectFiles(nt),this.setState({...this.state,dropzoneClass:"dropzone"})});this.fileInputRef=React$4.createRef(),this.state={documentType:"",selectedFiles:[],dropzoneClass:"dropzone"}}componentDidMount(){window.addEventListener("dragover",rt=>{rt.preventDefault()}),window.addEventListener("drop",rt=>{rt.preventDefault()})}selectFiles(rt){const{selectedFiles:nt}=this.state,lt=Array.from(rt)[0];nt.push(lt),this.setState({selectedFiles:nt})}removeFile(rt){const{selectedFiles:nt}=this.state,lt=nt.filter(ut=>{let dt=!0;return rt.name&&rt.name===ut.name&&rt.lastModified===ut.lastModified&&(dt=!1),dt});this.setState({...this.state,selectedFiles:lt})}handleDocumentTypeChange(rt,nt){var lt;(lt=this.props.client)==null||lt.mutate({mutation:ChangeDocumentTypeMutation,variables:{attachmentPk:rt,documentType:nt}})}handleDateChange(rt,nt){const{refetchCallback:lt}=this.props;if(!this.props.client)throw new Error("client is undefined");this.props.client.mutate({mutation:ChangeEncounterDateMutation,variables:{attachmentPk:rt,encounterDate:nt}}).then(()=>lt())}handleDocumentRemoval(rt){this.props.onDelete(rt)}render(){const{patient:rt,documentTypeRefData:nt,user:lt,refetchCallback:ut}=this.props,{selectedFiles:dt,dropzoneClass:pt}=this.state,mt=rt.attachments.length+dt.length>=10,xt=["","File name","File size","Document type","Encounter date","Progress","Actions"],Mt=["3%","25%","5%","22%","25%","10%","10%"];return jsxRuntimeExports.jsxs("div",{className:"main-container ro-uk-full-width reg-attachments-wrapper",children:[jsxRuntimeExports.jsx(ROMiniRegoHeader,{title:"Attachments",summary:"Please attach any related patient documents. Attachments will be submitted to MOSAIQ when patient registration has been submitted."}),jsxRuntimeExports.jsx(ROTable,{tableHeaders:xt,colWidths:Mt,children:jsxRuntimeExports.jsx("tbody",{className:"attachment-file-list",children:jsxRuntimeExports.jsxs(TransitionGroup,{component:null,className:"attachment-file-list",children:[dt.map((vt,Ot)=>jsxRuntimeExports.jsx(CSSTransition,{timeout:500,classNames:"attachment-item",children:jsxRuntimeExports.jsx(ApolloUploader,{handleFileDelete:()=>{this.removeFile(vt),this.props.onCompleteFileUpload()},documentType:"",refetchCallback:ut,documentTypeRefData:nt,file:vt,patient:rt,user:lt,fileUploaded:this.props.fileUploaded,onCloseUploadErrorModal:this.props.onCloseUploadErrorModal,onOpenUploadErrorModal:this.props.onOpenUploadErrorModal,uploadInfoErrorModalOpen:this.props.uploadInfoErrorModalOpen||!1},Ot)},vt.id)),rt.attachments.map((vt,Ot)=>jsxRuntimeExports.jsx(CSSTransition,{timeout:500,classNames:"attachment-item",children:jsxRuntimeExports.jsx(TableRow$1,{attachmentPk:vt.id,downloadUrl:vt.url,filename:vt.filename,filesize:vt.filesize,errors:[],submittedToMosaiq:vt.submitted,changeDocument:At=>{this.handleDocumentTypeChange(vt.id,At)},removeDocument:()=>{this.handleDocumentRemoval(vt.id)},handleDateChange:At=>{this.handleDateChange(vt.id,At)},encounterDate:vt.encounterDate,documentTypeRefData:nt,documentType:vt.documentType,btnTitle:"Uploaded",loading:!1,allowDelete:!vt.submitted,disableBtn:!0,disableSelect:vt.submitted,progress:100},dt.length+Ot)},vt.id))]})})}),jsxRuntimeExports.jsxs(Stack$5,{onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,style:mt||dt.length>0?{backgroundColor:"lightgrey"}:{},className:pt,onDrop:mt||dt.length>0?()=>{}:this.handleDrop,id:"dropContainer",onClick:this.uploadFile,justifyContent:"center",children:[jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsxs("div",{className:"cloud-image-div",children:[dt.length===0&&jsxRuntimeExports.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[jsxRuntimeExports.jsx("rect",{x:"0.966553",y:"0.00231934",width:"24",height:"24",fill:"url(#pattern0)"}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsx("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:jsxRuntimeExports.jsx("use",{xlinkHref:"#image0",transform:"scale(0.00173611)"})}),jsxRuntimeExports.jsx("image",{id:"image0",width:"576",height:"576",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkAAAAJACAYAAABlmtk2AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAADHFSURBVHgB7d2xkxz3lSf498sGQW6soR5vrVPTG+vYvBElSmuw6Y1H0DyLoMEIoEUA1bTuLDa8swYFkAIQIYNNbz2A1u1abFpDzTACTW/PYukvmJaxEUQDnb/LrGpQEEUQ6M6syqzKzycC7AZGQ5EQKutb773f+0UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/IwVAy0ajSxuz747XI9bWZ9+n9TjO6z/7/7iWDiPy4VO/Mqn/Mh7fnQRAiwQg4IXMQk0VaI7XNlMqflH90qspxy9y5I3qSbIx+0+ljZirPKn+Ow4j58Pq4XWYU/pzrr5GkQ9OgtNEWAJehAAE/GA0GlUVmu834zg2qpCzmXL+ZU6xOf9g07qDOiRFSt9W33+Xi7L6+srBeDw+DIAQgGCwphWd49iqg04VFl6rwkIVdGI9VltdPTqYBaP0IBdH347HfzwIYHAEIBiAWWXn4VYq09aAws6Ly3m/DkW5qL5+nw/Gd7XRYNUJQLCCpoHn+PsL0+pO5HeWsIXVtUnKsZ9T2s9Hx18JRLB6BCBYAU9md1JZXBB45mIaiMq1/EXEy/tmiWD5CUCwpOrQk8qj96r2zQUtrQWbtczu56PyC9UhWE4CECyRenC5KIv3cs5b1RvwVtAHk+rHF7l4tGegGpaHAAQ9J/QslUkIQ7AUBCDooR+1t7aCZTSpfoy1yaCfBCDokaras5WO08dCz4qZzgwVezdu/eHzAHpBAIKO1dWeojy6lqtvwyDzqpudJntUXlcVgm4JQNAR1Z6BUxWCTglAsEA/zPZEXKx+bAZMZ4XSroWLsFgCECyANhcv4LBqj93XHoPFEIBgjgYcfA6rHs90W3LO09NQJ7+WnrNBOW/88G1K6yly9XuW6t+3QYXGKgjtCUIwXwIQzEG9uyeVabd6ib0XKyVPch1ichykFH+pfuG7nMu/RB1yHlc/XnnlcF7XREyv+/j++/U4Fxt1KEpF+mUVLP9herlrFZCqf56NVbsCRBCC+RGAoEUrEnwOcz2XMgs5B7nMf47H+WCe4aZNo+0PNqM4tzENSPXyyGk4Wu6rQgQhaJ8ABC2Ytrryo4+rN9xRLJfD6p+5Cjrp26qScxCPYn9V32SfCkZb1b/za8sYigQhaI8ABA0s4YxPFXji/rSy8/jRV+Pbw76uYRqK1tY202wVwVvL0kIThKA5AQjOaOfq9rXqy270O/j8NfC4kuG56hZmHMfWkgSiw+oBPv6XW7evB3BqAhCc0nSBYZk+6+ubY54u2EtfRVnujz+9ux+cWV0hSudeeqv6Pb2Q+ruwclLvEbJQEU5HAIIXNB1wPq6CTw/fCOvQU71B38/F+c+XYVB5GT2pDlWPzXeq3+sL0Td1le9h+a4qH7wYAQieo69zPtNKT+TPY+2V+0LPYk2P5B9/f6GPYSilPC4f5puCEPw8AQh+Rt/aXSo9/fNUGHqvR22yibYY/DwBCH5Cz46113t5bsbjR/eHfmqr72Z7oIp3qqg66kNodloMnk0Agh8ZfXj5Qirqqk+37a5piyvn6waZl9Pow6p6WKSLPViKWe96uj7+5M44gB8IQHBiWvU5fvhZ7namQ7VnxUyHp8tilCK/02lVqArU+VF+XzUIZgQgiF5UfWbBpzg/NtuzukZXLl1MKX3cYRBSDYITAhCD1vWsz6zNFTfHn965HwxGHbirp++1roamzQaBAMSAdXnCy3wPtXpOKFK61tFR+omTYgyZAMQgnVxjsfA2gODDT5mdHku7XQxMV28Cu67TYIgEIAalq23Ogg8v4qQi9HEHrbFJPirf1hJjSAQgBqOjltdEm4HT6mhYeuLPKkMiADEIHbS8pqe6xrdu7wacURdBSEuMoRCAWGmzU15HN3KOi7E4N3Nxftdxdtoyurq9Wz2sP45FsTOIARCAWFkn1xLcq77djAWYzvkcP96xwJB56GBQ2lwQK00AYiXN5n2m4WcRiw2rSk8amZ1gERbcFjvMZVUJsqeKFSQAsXIWPO+j3UUnFtkWMxfEKhKAWCnVm8LH9cM65m+Sy/J9x9rp0klb7MtFVINSyuN/uXlnJ2BFCECshAUPO6v60CsLrAYdVH/23/Znn1UgALH06vCTyqPqU/Dch51VfeitBVaDDEezEgQgltoCH/qqPiyFBVWDhCCWngDE0lpQ+HEKhqUz2v5gM507d2/Or41JfvzoXWsfWFZFwBJaRPip9/pUn3JfF35YNnUoyUV+u/pTPM/VDBvp3Etf1mErYAmpALF0Zp9uX6pnfua54+f6DddYsAIW0BJTJWUpCUAslQWEn+phXr5r0JlVsph2cbpoGSjLZC1gSSwg/BxMBztv3zXTwEr5+utvDt/87a++KMrYiJT+Mebjwm9/8+vJ13/6928DloAKEEthAeHHKS8GYf4tMZUgloMARO/NO/zknHfGn9xZ1NUZ0LnRlcuj2X1i8/pAIQTRfwIQvTbn8GPeh8Ga91xQ9dp622uLPhOA6K05P6AtcmPw5vwaO8yPH71tTxB9ZQ8QvTTnB/OB8AMR4/HdSS5efr3qA+9H+9btCaLPVIDonXmGn5zy/Ugvv2/YGf7W6Or2uHpDuBbtU22llwQgemV2senDB/Op/OTPb9y6czGAnzTHE2JCEL2jBUavzG51TxvRvuvCD/y88a3bu7l6rUT7NtL54l79ASegJwQgeuOja7+/UX2Zx7yAay3gBc0xBG0Wxw8/C+gJm6Dphar0Xpfd/69on/ADp/T1n/59/81f/9OfU0oXok0p/ePv3vzV+r/+6Zv/EdAxAYjO7VzdvpYi/p9on/ADZ/T1v31zMJcQFOnNN3/9q79Uf/+vAzpkCJpOnSw6fBDtE36gBaMrly6mVLTeurIoka4JQHRmjsfdhR9o0ZxC0GE+Kl93MoyuGIKmM8IPLIfxJ3f3ci7fj3atp/PFl06G0RUBiE7MTnyljWiX8ANzMg1B7Z8O23AyjK4Ygmbh6qHn6stutEv4gTmbng77zRspRWxFW1L6R0PRdEEAYqGmcz85/fdo1XTD8yiAuZtHCEop/fObb/zTV1UImgQsiADEwjw19Nxazz/nvD/+5M67ASxMHYJ++5tfvVq9lltbXFqFoK03X/+nL77+5hv39LEQZoBYmCr87LY89zOJtZeFH+jAydUyB9GejfRSMg/EwghALMRs7ie9F+2ZXa7oVnfoTC7Ov139dRJtqapAoyuXtbNZCHuAmLtZ66v4Ltpjfwj0xMnru15m2l5r25JEFkAFiLmbzf20J5f5feEH+mE8vjupAkurrehUFJ/ZD8S8CUDM1eyS07QR7bk+/vTO/QB6o67W5Jx3oj0bRX74ccAcOQXG3FSl8a2U0160JKfYG9+63eZDFmhJvcfnzd+88Q8p4s1oRXrT0XjmSQWIuajL11Xrq80THZNI54Uf6LHqA0o9wNzaybCqFXZPK4x5EYCYiyI/arP1dejEFyyHXNTzQK2dDFt3VQbzIgDRurr1lXNu8ShrGhl6huUwG4rOrV2cmlO6MPrw8oWAlpkBolWz1tfx/9vituf6jq+bASyNem6nzesyUkpvvvnb//r5119//X1AS1SAaFd5dK3F1tfEBaewnMb1azfn/WiHU2G0TgCiNdOFaO3d8j6d+wlgaeW1aSusldm9nNNo9OGlrYCWCEC0ps2Fhznn6+Z+YLm1PQ+UiuJGQEvMANGK0ZVLF1MqLkYLZvt+7vzfASy9r//tm//Z4n6g//Lb37yR6tvoAxpSAaKxaesrpbb685N4WF4PYHUU53dbPBp/bXTp0kZAQwIQjVWtr932Bp/TrtYXrJZ6h1eLrbD14qXCQDSNaYHRyLT6k4tWFpWdXHWh+gMr6ORofDutsBSbrsmgKRUgGknHrV13ofUFq67FVliLbXcGSgDizOrB5+optBWt0PqCVddqK6x69uxc/f17AWeUAp6jbnNVf1Q2U5l+mXJsVq2qzeqXq1+LVrY9T1tfN2+3dlQW6Ledq5f3qmdKG+Flkovzr7snkLM4F/CU2c3LD7eqsLOVcv5lris85V+DTm4/Mh9qfcGw5OLlUSqP3onmH6I2qr9Pfe/gbsApqQAN3LS6cxxbRRRv5ZS3WrzG4kVdd90FDM/oyuVRSqmNxYaHVRXoVVUgTksAGphZhef7qp1VXKg+h73TQeB5Wn3X16sBDNLOlctftjRH6IMUp6YFNgCzG9qP3oucL0R5tBlRnJSdu82/ucw7AQxWfeVNaicAXauec2NVIE5DBWhF/U3oae2kVnsMPgO1FgeiVYE4FQFohfQ99DwtH5WvOvYOnDy3vovmA9FmgTgVm6BXwGh0aet3b7xxI6IcVz+tw89G9NvN8R/u/LcABu/rr7/+/s3fvPGfqk/jW9HMKykfP3RRKi9KBWhJ1Z+aivLoWq6+jZb28SzIpKr+vK36AzyhCkQXVICWTF3t+e2v39hNubxT/fSfqx+vxBKphx7Ht+/+9wA4Ma0C/fpXD1NK/xzNqALxwlSAlkQdfNJx+rjvsz3P4dg78Ew7Vy9/18JqDlUgXohj8D1X37c1vfSvTBvLH1fTbgA8w8mx+KYXLK/H8cOL1ddxwM9QAeqpH4JPpI1YDao/wHO1VAXyvOG53AbfM3XwqR8AKRWfrVD4CdUf4EXUVaBobmP04aWtgJ+hAtQT0xmfMq1Y6PnBQfVp7PUAeAGtVIFy3r/xyZ23A55BAOrYCgw3H+aq3Bw5DlKKv1Q//y6X+c9RPp5EuXbouDtwWrMRgKLpLFDksnx7/Ond/YCfIAB1pL6FvThON3JKF2JJVEHn4CToHExDzuN8IOAA87Bzdfs/ovleoJtV9XkU8BMEoAVbngWGeZJz2p+GncePvorz/3niWCmwKKOr27vVG9TH0Ywj8TyTY/ALNJvzefhZjrQR/XOYc9yPKL+KR7GvsgN0qjg/jurDYjT7oOhIPM+kArQA06pPfvRxzrlXpdjqn2c/UvoqynJfnxzom1aqQIaheQYBaM5GH16+kIrpYq9etLvq0JNSul+VhT9XFgb67OSOsP+IhgxD81O0wOZkWvU5rtpdPRhyFnqAZVQ/r3auXN5veko2FUX9HN4PeIoANAezWZ+je1X46bLqUwedz6tPPvd98gGW1cn1GFvRzHsxO3gCP9ACa1EfZn2mcz05bsa5l/dVe4BVsHN1+0H1ZTMa0Abjx1SAWjLa/mAzlQ/vdXXCK6fYi+Pycy9wYNXkiC9SwwBU9cHqKtB+wAkVoBZUn07qo5q7sfhB53oL8836uKhqD7CqToahv4tmz1g7gfgbAlADHba8BB9gUD66sn2vqnQ3OlSSc7w//uT2XkBogZ1ZfZXFdNC5aVn2dAQfYJDKXN5MqWgUgFLkug22FxAqQGcyO+VV3IvFtbwEH2DwWrgfTBuMH6gAndJ03qdc3Fr16XDzw/K6qymAoas/CDbcDL0ex0d1FWkvGDwB6BQ+uvb7G4ua95kdZ8/XneoCOFGW+1EUTS9IfSsEIEIL7IUseKvzYb34a/zJHZf3AfzIztXL31VvXRtxdtpgTBXBzzoZdv5yQeHn5vSFKfwA/KQc6fNoZj0ef7/Iwyv0lBbYz5iFn/Rl9e1GzNckl+X72l0Az9FCG8zdYNRUgJ7hr+EnbcR81VWf14UfgOebPSvzJJp5Jxg8AegnzK61KB7MOfzUVZ+3b9y6PdKLBnhxVRvsi2hmY3Tp0kYwaALQj0zDz7mX6rbXPHf8qPoAnFVZ3o+mXlrIXCc9JgA9ZQHhpz7htaPqA3B2Jx8emz1DU94KBk0AOrGA8DPJR+XrTngBNJcjN2qDpSjeCgZNAIqFhJ9Zy8s2Z4B21Mtim1kfjT5wHH7ABn8Mfnbaq5hb+KlbXqo+AC1be+V+lEefRRPH57aqvx4EgzToCtBTe37mEX4O61Newg9A+07mKBuFl+Q4/KANtgI05z0/9bzP21peAPOTI76qQszZ21gpbe1c3a7+NlWQyvmw+vm31fff5aKsvr5y4LDKahvkXWD13V6pfDivPT8HuTj/thcOwHyNPrx8IRXpXszPQcp5klPar0PReGx1ySoZZAWovttrPuEnf37j1p2LAcD8nXt5P8qjmKPNKvzUFaYLqSyiqhbNhq+rSlEViO6rEi23wVWAPrr2+xs551G07/qNW7d3A4CFqUJJVc1v0AZrahaI7ufi0Vfj8R8NVC+RQQWg0dXtj6t/4d1on/AD0IHquT6unuvXoh8m1Y8v6uqQdln/DSYAzbFXLPwAdGR05dLFlIpmx+HnY5Jy7Jdrj26qDPXTIALQya6fukza9nF34QegQyfP9++i36oAlMb56Pgrp4P7Y+UD0ByPuws/AD2wc3X7P2K+F1i3pqoK7ZVr5edaZN1b+UWIxXG6IfwArLCcl6bFlFNcrG8fqELbdztXf/9e0JmVrgDNaehZ+AHokZ4NQp/WpPpn3yuPqqqQ9thCrcWKml5wWqz9t2iX8APQM2/++p/+S0rpQiynunW3ldbShd/9+o3N3/wf//Tt1998Y7fQAqxkBWhOcz83q/Azj/1BADSwJIPQL2w6J/SovK4iNF8rGYB2rl7eq/7VWuut5pz3x5/ceTsA6KVlGoR+QbPWWHH+pm3T87FyQ9DVi+Bam+En6sVWay+/GwD01xINQr+gjRyxm8qjB4al52OlAlBdBo12h55nt7pL3wC9Vl9YWn1ZxWf1RvVvt1efGhuNPujuyo8VtFItsLbvhMmPH70+vm2DJ8AyGV2afhiur/uefU2xkVLxi6qi8g9Vpei16lfWU6r/b2kjloz5oPasTABq+8h7znln/MmdcQCwsuoTw1Gc24gibU7DUUobqcvLVV/MpHr73r1x6w+fB2e2EgFoDicAHHcHGKjRaLQej7+vglGxVYWit1JKdSDq34B1ioP8sHxXNehsViIA7Vy5/GWV2reiHQdV+Hk9AODE6MNLW6koXqu6AxdSe+83rai7H/9y6/b14FSWPgC1fBPwbOhZmgbgGWYVoodVIIoL1dvoO9GH6lDO+/lRft/714tb6gDU9sLDXOZ3x5/euR8A8IJGH16+cBKGuj6uPjEb9OKW+iqM3/76jXH1P/ZWtOP6+JM7dwMATuHrf/vmf379p2/uv/nb/3ozykf/X0xPmaWNWLy6EnXhd2/+av1f//TN/wh+1tJWgFoefJ7cuHX71QCAFpx0KHY7bJEZ6XiOpV2EOGt9taP+QxIA0JLx+G71wfrOxVyUr+dcvl+900xisTbS+eLLuj0X/KSlrAC1PPjsyDsAczd770ofL3oBo1NiP20pA9DO1cvftfQHSOsLgIXqIgillMf/cvPOTvCDpQtAbW58rlpfr+qPAtCFDoLQQfW+Z3HiiaUKQC0fe9f6AqBz1Qf73RT5vQUFIcPRJ5ZqCLrIa9dabH3tBgB0bFy9H+Uiv131JRaxv2c2HL3tZvmlqQC1eezdwkMA+qjtBb8/4zA/fvT2+PYfD2KglqYCNNun0FxOsSf8ANBHJ8fnX80R8z61tZ7OvfRg5+rvu95e3ZmlCEB1Im5txfjD0lFAAHpt1hYrX53//qC8N9QQtBQBqK3qT9TXXRj8AmAJLK4aNMwQ1PsZoJPZnwfRfJW4nT8ALKXFzAali0O6SLX/FaDjVK/xbuEeldaqSACwUHU1KBcvvz7fk2J5b0inw3ofgFKKa9HcZEipFpbB6FI92we8qPF4fDi9XyznuW10TudeGswR+V4HoHpLZjvlPtUf6JN63iCdLx58dGX7s9Fo1MVN2bC0xp/cGefHj16f04B0fTrs3hA+oPQ6AM1WhDem+gM9Mhu2zHvVt+s5xcVUHn0pBMHp1Pt7TpYnTqJ9s2WJKx6CehuARqNLW6o/sFp2rm5fOwk/T9uchiAtMTiVOc8F1SHo3ip/OOltAEpluhjNqf5AT9QXGVdfxs/4P28O4RMntO2HuaD5HJXfLI6PbsSK6mUAam/xoeoP9EEdflLE7nP+Y4Mou8M8TBcnziEE1W3qj2YfXlZOPytAx7EVzan+QA+8YPh5QgiCM5pbCKpev6u4KLGXAaid4WfVH+jaR9d+f+MU4ecJIQjOaBqCcvl+tC6PV+012bsA1NLw82E+Ov4qgM58dG37s5zzKM6mDkEPhrSUDdoy/uTu3hxC0Pr0g8kKDUX3LgC1Mfxc9Szvu/MLulE/IGfhJy5GM+tDWsoGbZpTCNoo8sOVmQfqYwvsrWjKje/QiTr81EfaWwg/T9Qh6MFQb6uGJmYhqN2t0Tmn0ejK5bNWdnulVwFo9OHlC43bXznvq/7A4j0JP9W3c6jYDPO2amhqujW65cHoek53FeaBehWAUhEXoqlU7AWwULObqh8+iLmEnyfy3qoex4V5msPpsPX0Uvosltxa9Mhvf/Pr+jf0lTi7wxu3bv+fASzMLPykL9vZ3P5cW7/7zRvxr3/6d4cc4BS+/tO/7//2N796tXqdtvMhJaWNN3/9q798/W/ffB1LqjcVoFn7KxpNl9fDzwEszILDz1S9k0QlCE4vFy/XszsH0ZKqFXZjmQ8p9CYAtdL+Oi4tPoQF6SL8PCEEwenV12bkony3zQtU09q5pb0qo0czQOmdaGYy/vTufgBzV3/qS2XxoIvw88Q0BF27vLL3FME8TC9Qffy4CkFxGG1IaWtZT4X1IgDNlh82bn/tBzB39eu13s8TDV+zbaiP5H50ZXvphzFhkca3/3iQc25tKHpZT4X1owJUFi2c/np0M4C5qo+iV5WfXoSfJ+rLGneuXF6pDbUwbyfH49t631zKU2G9CECp+fLDyXj8x9YGu4C/N9vDk/eij6oyfL2DSAiCUyjO77Y2D1S3wj6cdnOWRucBqB6kjIa7Q7S/YL5G04Hjnoafv9qsQtADl6jCi5kORbc4D5SKYqmqQN1XgI5jK5py+gvmpg4/Z7jRvStukodTaHkeaGOZBqI7D0CpKptFM4dOf8F8LFn4eUIIglOo54Hqa6SiBdOB6CVpRfdhBqjR/E+O0kZYmIMlDT9PCEFwCnkt1zfHt9EKq+8EXIoqUKcBaDb/kzaigRRr9wJo1UfXtj9b4vDzxCwELfGmWliU6X6g9lph15ahCtRtBehx8ztJ8tGxChC0qA4/OcfFWA0b9c4iIQier8VW2FJUgboNQEXj+Z/J+O7dSQCN1Z/Y6n06KxR+nlifhqDZfYPAzxhSFajTAJRyfi0acPwd2lE/qOo9OtH8UEJfraci3ZvtMgKepT5U1NKCxN5XgbqtADV82Kac9gNoZHap6cMH0XAf13LIe8t6bxEszHRBYisD0b2uAnUWgEbb283nf4qjbwM4sy5vdO9KSumGm+Th2aYLEgdQBequAlTkjWjm0PUXcHZDDD9PTG+SF4Lgmca3bu+2dE1Gb6tAHQaghrMGOQs/cEZDDj9PCEHw83IZO9Hcehw/vBg91FkAajoAXdWxtb/gDOoj4aksHgw5/DwhBMGzjT+9c7+NY/GpSL08fNBdBSg13AG0Fl8GcCrT8HPupfq149b0E9MQdGV7qS5xhEVp5Vh8js0+3hTfSQA66Qc2egDn/OjPAbyw+gi48PPTcoqLH125fG9Z7jCCRZnetdlGFSil3lVaO6oAfd/4BJgBaHhxs/03eS+En2fKKV2odyEJQfC3cm7hRFhKW317bXUTgB6nZr8JKYQfeEE7V7evnYQfnm9zGoJcogo/mM4CtXAirG9H4rsJQEWz+Z+cS+0veAGj2YDvODiNTTfJw9/KkT6PpnJ+K3qkoxZY0x1AhQoQPEcdflbgRveubAhB8JTifP1Bqtl26LoN1qNh6E4CUMrxy2gixySAZxJ+WiEEwYmT7dCNq0CpKHpzKXE3FaAUG9FELicB/KSPrv3+hvDTGiEInijL+9Fcb3YCddQCSxvRxGMVIPgpH13b/izn7LLPdtUh6EG9QylgwFo6Er/elzbYwgNQG8fgxnfvTgL4Qf26moWfuBjMw3q9Q0kIYuiqNtgX0VBf2mCLrwAdHW1EM5MAflCHn/rotvAzd3UIejDbqQQDtfbyXjQdho54J3pg8QHofNl0B1DT33hYGbNLTY/q7c4qEwuT94Qghqoehk459qOZjT7M1S0+ADVdglhmAQji6RvdhZ/Fy3suUWWoylw23wz9Uuq8Dbb4AJRyszvAIk0CBu6v4SdtBJ1wkzyDde6Vehdfo2JE6kEbrIMAVGxEAynFXwIGTPjpDyGIIZrtBMrNhqFT2uz6brCOjsGfXQ4zQAxXfQpJ+OkXIYhBauE4fDz+vtP2fRcByE3LcAbT8HPuJeGnh6Yh6Mr2ZwFDsfZK46WIqSi2okMdBKBmM0CuwWCIqrbX1iz8+ADRVznFRSGIoajbYI2rQB1fjrp0LTAYmvrIdSoL4WcJ1CFo5+r2g65nG2ARckpfRRMpddoCOxdAb81Wxpe7sbQLQNNGNJInsXzW4/josyoEvT/9lAyrqiz3oyiazL+tj0YfbI7HfzyIDghA0GPTu3ciXo0lVVVDcjRw49adpf13h5VXH4cvj+qQf/aK5/G5reqvnQSghbfAipx+EQ2kc/EfAQB06mQOqGF4Sf97dGThASg3HILOj0p7gACgB3JK30YDqehuk/3iA1CKP0cTDRcpAgAtKZueBIuN6IhTYADA2Zxr2gKL9a4uRhWAAIAzGY/vTqLpDQ0vFVvRAQEIADi7xoPQuZO9WQIQAHBmDQehU1cnwToIQKlZqSx1NzAFAPxILhtVgLo6CdZFBchmVABYFblhYSPHQFpgOTf9jfplAAD90Pwk2EZ0oIvb4FWAAGBFnJwEa6SLo/AdVICalcpS5I0AAHqk4cXFrxwvvA22+AB0rmEFKKWNAAD6I8ckGkjppYWPt3QxBD2JZjoZlgIAflrTa67y4/iHWLAOAtArTWeA1kejkRAEAKshdbHiZuEBaDwe1wGoWQj6/nsBCAB6I01iyXS0CbrZHFD6T8VrAQD0Q/MVN/9bLFgnASjl1GhnQBe9QgDgWZZvxU0nAahM+S/RQErdrM0GAFZDNy2wHM0qQFFuBADQD02vw0jlEE6B1RrOAIUZIADojYY7/lJOv4gF6yYAHReN7w1xFB4AOKtuAtD585No7H9tBADAGXQSgGa7gBreG3L8kkFoAOBMOpoBan4U3kkwAOCsOgtAZcN7QyLFWwEAdO9xWrq53M4CUOSy2SB0NggNAL2QcqP349zBVRrdBaC12I9m1uPx99pgAMCpdRaAxuO7k2h6KWpKAhAAdC0VG9FAStHohoiz6K4CVMu5WRss5a0AAJZajoEFoJzSV9FAisIgNAB0Lm/E2eXGt8mfQbcVoLLcj2bWRx9e2goAoDNF46ss0sAC0LlXml6JYQ4IADpWlXCancrO5SQWrNMANNsI3exm+BTxTgAA3UmxEU2cOx5YBSimg0+N5oCqCtCWfUAA0KW0EY3850ksWOcBKMryfjR1fHQhAICFG21vNx5FOekILVT3AaiNOaBwLQYAdOJ82awLk6KNHHBqnQegaerLeT8aSCkuaIMBQAeOGx5GKhd/BL7WfQUopnNAX0QzrsUAgC6ktBFNpPRtdKAXAahKj/vRVCreCwBgoVLOr8XZ5cqfowO9CEDj27er/l+eRAPaYADQgab7+Jpei3VG/agARd0GS9pgALBETk6ANSs+dLADqNabANTGcfiU0scBACxG0egOsNrhePzHYVeAxp/e3a++NEuBliICwOIUaSua6Kj9VetPBSimp8E+j4ZSeTQKAGDuUtM9fB2dAKv1KgC1shU64loAAHN10nFpNnu7FvvRkV4FoFbaYBHrow8vbQUAMD+PH25FQzk/6uQIfK1fFaCYtsFuRkOGoQFgzprO/3Q4AF3rXQCKotyLpuph6EuXNgIAmIum8z85yq+iQ70LQOPx3UnTu8Fq6XxxMQCA1o1G0yJDwwWILdwC0UD/KkDRyt1gtWuOxAPAHBzHVjS19ng/OtTLABRrL+9FC8PQjsQDQPtSpKb3b3Y6/1PrZQAaj8eHbQxDhyoQALRq2v5KzQagu57/qfWzAlRrYxhaFQgA2tVC+yvF2r3oWG8DUFvD0KEKBACtaaH9FfnoWAXo5+Scr0dzqkAA0II22l91cWN8typydKzXAWi6GVoVCAD6oYX2V0snvRvrdQCq5ciNL0gNVSAAaKyVmxYe5Tbu/Wys9wFo/MndvWh+JL52zXZoADibqv21VUWgjWgixUEf2l+13gegWktH4teLlwp3hAHAGaQyXYyGctlKV6cVSxGAojg/jhaqQDnFRTfFA8DpzK6+aH76qy/tr9pSBKAWFyO6KR4ATqnIa9eiqZ6c/npiOSpAtZaqQNOb4q9cNhANAC8o5/JCNJWKveiRpQlA0ypQO3uBplUgx+IB4PlGVy5dbDz8XBUwcvFSL46/P7E8FaCoT4TdqapAeRLNrRfHDz8LAOBntTE6klPcrwsZ0SNLFYBquczvRwtyShcMRAPAs7VU/Yl4WLbSwWnT0gWgFrdDV+3I4jOtMAD4aa0cHOrZ8PMTSxeAam3NAlU2ivzQqTAA+JHWqj89G35+YikD0LQK1M4VGVWYSqPRh5ebT7cDwAppaW3M5MatP/Rm+eHTljIA1XLxcn2UvZWBqlSkz1yTAQAzo6vbH7dS/Ym0Gz21tAGozWPxUV+W+lJyKgyAwau3PqeI3Whu0rej709b2gBUmx2Lj4NogwWJAFDf+bUb7fi8b0ffn7bUAaiWy3InWlL1O284Gg/AUI1GH2y2cudXXf05Kveix5Y+ANUD0W3dE1abHo03DwTAAKXy3L1ox+d9PPr+tKUPQFPF+d2WNkTXNswDATA07Q0+97/6U1uJADQdiG5pQ/RUSlsfXbt8IwBgAFocfK539d3se/WnthoVoGi/FTbdD2QoGoABSGX6MtoxOTmg1HsrE4Cm2m2FGYoGYOW12PqKPu/9+bGVCkCtt8JiOhR9z1A0AKuozdZX9Hjr809ZrQpQ/NAKa/PW2fV0vvhSCAJgldSXgbfY+op8VL4dS2TlAlBtfOv2bls3xp/YqELQPTfHA7AqUvlw3FbrK6fYW4bB56etZACq5bVpK6zNDZSbqTz6UggCYNmdzP20sfCwNomHZZudl4VY2QA0Ht+d5LJ8N9q1WRwfOR4PwNIabX+w2eLcT9SDz8tW/amtbACqzWEeqC7zXfzoyrZFiQAsnenQ87nWtj3XO3/2l2nw+WkrHYBqc5gHEoIAWDp/HXpOG9GOw3jU7snrRVr5AFTLay+/2+Z+oOnfUwgCYIkUuR7hSBvRkqr6c30ZW19PDCIATfcDFbk+ntfmULQQBMBSqIeec46L0ZK69bUsG5+fZRABqDanoeiTEHTZEXkAeqkOP+0OPcdkmVtfTwwmANWmQ9E570TLckoXpkfkLUsEoEd2rm5fazn8xLKe+vqxQQWgWl2ya/tk2IlNG6MB6Iudq7+v9/y03aa6uaynvn5scAGoNj0ZFnke/wNuCEEAdG0WfvJetGty49btUayIQQag2o1bdy62fTz+RB2CHow+vHwhAGDB5hV+lu2ur+cZbACqzY7Hx0G0bz0V6d5H01XjALAYcwo/kcu8swpzP08bdACaHY8vW98R9ESO2P3o2uUbTogBMG+z+73aDz+V6+NP79yPFTPoAFSbHo+f7giaUwjKaZTKowfmggCYlzkcdX/i5o3p3OzqGXwAqs07BMXJXNDJRD4AtOaja7+/Mafwc5CL87uxogSgEwsIQet1abJuiQUANFSPV+xcufxlznkeJ7Pqoed361GRWFEC0FMWEIKmLbGdq9vfaYkBcFbTW93Lhw8ipa1o3/TE16oNPf+YAPQjiwhBMWuJfeeUGACnVa9ZSWXxoM2LTZ9ymB8/enfVw09NAPoJsxD08usxnyPyP6hPiakGAfCipvM+RboX07GK9tV3Zo5v/3Gu7319IQA9w+yI/Pm3U87zPvqnGgTAz6pbXnOc95nKOd6v78yMgUjBc42ubo+r36hrMX+D6LsyHFWFM0cDN27d9oxi8KYtryJ9FnOq+tSm4eeT23sxICpAL2B86/ZoTheo/tisGnRl+zNtMYBhq095fXRt+7N5trxqQww/NQHoBdUXqFalx51YgJziYn2pqr1BAMNUtby26lNeVTi5GHM01PBTU14+pdH2B5vp3Ll7c5q+/ymT6r9r98atP8zj9nqYKy0wOJ161qc4TjdySvO+UPuwCj87Qw0/NRWgU6qn4xdwTP5pG/UCxXr4TVsMYHVVHxiu1cfbFxJ+Hj96e8jhp+bTVQMLHI7+QcqxVz4qrxuUZhmoAMHzzdpd9ZBz2oj5c9jmhApQA9Ph6AXNBT1xMh9kUBpgydXBp67uV1WfL4WfxfPpqgWzleTpywXOBf1Vzvt5LV8fj4ezu4HloQIEf+/kPWO3es9Y2EGX6sP6fqy9vNJ3e52Wh0tL6uOKqXw4XuQf6B+ZGJambwQg+Ksugs+Jm9VraW4LFJeVh0vLRlcuXUypqG98n9vOhueYpBz75oToAwEITmZ8jtPHc7q49OccVpWf6+NP7oyDv+PhMgezlF/Ui6s2o0t1yTMVe6pCdEUAYqjqrkDEwyr4xLUOgk9tMr3UdCD3ep2Fh8scja5u71a/wX244+uwqgrdL9fKz80KsUgCEEMz3eNTFu9Vf/DrllMnnQDzPi/Gw2XOOh2Q/mmzFpkwxAIIQAzBbAb06L0qeVzoqNrzg/pkspbXi/FwWZDRlcujlOqdQWkj+mNaGcop7eej46/MDNE2AYhV1afQc0LL65Q8XBaowxMAL6p+4XyVi/J+xCsHyqc0JQCxSmYLC4vXehR6nriZi/O7ntmn4+HSgdGHly+kIm70rBr096ZD1OnbXFRf4/FkPPbJgtMRgFhmo9EHm6l86a2qUr6ZU9TXU3R1uvdZJrks3x9/apzhLDxcOtTTttjPOaxC0UEdiqrvv6sqRd+qFPFzBCCWwezE1v/aiOO1zZSKzeo591r1nKtP8fYt8DxN1achD5eOLUFb7EVMg1Gqd06k9OeYhqNcfc31C3NShaRDL9JhEoDog1nA+b4OM1XIiY0q5Pyi+v7VlPMvq8rO5hJ9CJ2d8Kp3+6j6NObh0hMrEoSe5/AkFFVSHZqEoo7ltcc782xt9j0A1bdvT+c5WC2pCjp//clGrAZLDVt2LuiF8Xh6AutiFYR2VzgIVZ/A0l9Lykn+7tzjtT6X+OcuR3499WuYFX6KdtccCEA9M5AgBMBzTNtdj/L7VpTMhwDUU4IQwDCZ81kMAajnBCGAYRB8FksAWhJPB6E4jq2U0scrNNwHMFiCTzcEoCVzEoT26h/1QsVI8V4VhpxiAVguhznF/TguPxd8uiEALbHxp3fuV1/uz47QF+9UnyNGqkIAvXaYI25GcX7sVFe3BKAVcFIVuln/GH14aSsV6WL1/VvCEEA/aHP1jwC0Yk5eXPWPEIYAulOHnpTS/Vyc/1y1p38EoBUmDAEsVp5dIv1VHJV79vf0mwA0EH8ThkaX6vtwtqog9M7JFtxBbwMGaOKHSs9R+YXQszwEoAF6+iRZ/fNZdah4rXoRX0j9vwEZoGN5Un2A/CKX5f0498qB9tZyEoB4ujpUD1LHaPuDzVhb20yp2KxC0WtCETBg9SWkB9Vz8NtcVu2tcy/vCzyrQQDi74xvT28H/5sbwqehqDi3EUUVhqpQVPW4N1JMb1wWjIAVkSc5Rx12/pxzeRCPYl9La3UJQLyQp0LR/ad/fTQarcfj7zfrW95TkX5Z/dKr1ael+ut6FZLWU+R1Q9dA9+q2VT2vE9XXNEkp/lL99LuqqvPneJwP4pVXDlV2hkUAopGTB8b+i/xnR5cubfzwk3OxEXTv3CsHMWSP0zgX5V6wWsrjwyjXZmFGsOEZUgDMyc7V7RwN3Lh12zMKmIsiAAAGRgACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAZHAAIABkcAAgAGRwACAAbnXADMSc55PwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADoi/8fEwKfvahgqTUAAAAASUVORK5CYII="})]})]}),jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"dropzone-text",children:mt?attachmentsAmountErrorMsg:dt.length>0?"Please upload or remove the above file(s) before adding more":"Click or Drag and drop a file here to upload. "})]}),jsxRuntimeExports.jsx("input",{id:"fileInput",type:"file",disabled:mt||dt.length>0,ref:this.fileInputRef,className:"invisibleFiles",onClick:vt=>{vt.target.value=null},onChange:vt=>{this.selectFiles(vt.target.files),this.props.onIncompleteFileUpload()}}),jsxRuntimeExports.jsx("br",{})]}),dt.length===0&&jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(Typography,{className:"dropzone-helptext",children:"File types accepted: JPG, JPEG, BMP, PDF, PNG, GIF. You can upload up to 10 files. Maximum size 20MB per file."})})]})]})}}let TableRow$1=class extends reactExports.Component{humanFileSize(tt){if(Math.abs(tt)<1024)return tt+" B";const nt=["KB","MB","GB","TB"];let lt=-1;do tt/=1024,++lt;while(Math.abs(tt)>=1024&&lt<nt.length-1);return tt.toFixed(1)+" "+nt[lt]}render(){const{downloadUrl:tt,filename:rt,filesize:nt,btnTitle:lt,loading:ut,disableBtn:dt,disableSelect:pt,onClick:ht,progress:mt,changeDocument:xt,documentType:Mt,documentTypeRefData:vt,errors:Ot,removeDocument:At,allowDelete:Rt,handleDateChange:zt,encounterDate:Tt,extraClass:Ct}=this.props,It=vt.map(qt=>({label:qt.name,value:qt.id})),kt=[...new Set(It==null?void 0:It.map(qt=>qt.value))].map(qt=>It.filter(Nt=>Nt.value===qt)[0]).sort((qt,Nt)=>qt.label.localeCompare(Nt.label));return jsxRuntimeExports.jsxs("tr",{className:classNames$1("minirego-attachment-row",Ct),children:[jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("div",{children:Rt&&jsxRuntimeExports.jsx(IconButton,{onClick:At,children:jsxRuntimeExports.jsx(default_1$n,{})})})}),jsxRuntimeExports.jsx("td",{className:"minirego-file-name",children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[tt?jsxRuntimeExports.jsx("a",{className:"minirego-download-link",href:tt,children:rt}):rt,jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(ErrorInfo,{type:"table-error",errors:Ot})]})}),jsxRuntimeExports.jsx("td",{children:this.humanFileSize(nt)}),jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(BaseAutocomplete,{value:getOptionByValue(kt,Mt),fullWidth:!0,id:"miniRegoAttachmentType",onChange:qt=>{const Nt=typeof qt=="string"?qt:qt==null?void 0:qt.value;xt(Nt)},placeholder:"Select",options:kt})}),jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(BaseDatePicker,{id:"clinicDateSelector",readOnly:pt,disableFuture:!0,value:dayjs(Tt),onChange:qt=>{zt(qt)}})}),jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(LinearProgress,{color:"primary",variant:"determinate",value:mt})})}),jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(LoadingButton,{variant:"outlined",loading:ut,disabled:dt,onClick:ht,children:lt})})})]})}};class Uploader extends reactExports.Component{constructor(rt){super(rt);Nr(this,"region",REACT_APP_REGION$4);Nr(this,"closeUploadInfoErrorModal",()=>{this.setState({...this.state,onOpenUploadErrorModal:!1})});Nr(this,"openUploadInfoErrorModal",()=>{this.setState({...this.state,onOpenUploadErrorModal:!0})});Nr(this,"handleBlockedNavigation",()=>(this.openUploadInfoErrorModal(),!1));const{file:nt}=this.props,lt=nt.name.split(".")[nt.name.split(".").length-1],ut=[];if(lt){const dt=checkFileExtension(lt);dt&&ut.push(dt)}this.state={progress:0,documentType:rt.documentType.toString(),loading:!1,fields:[],errors:ut,url:"",encounterDate:new Date,onOpenUploadErrorModal:!!this.props.onOpenUploadErrorModal}}uploadFile(rt,nt){this.setState({...this.state,loading:!0});const{file:lt,refetchCallback:ut,handleFileDelete:dt}=this.props,{documentType:pt,encounterDate:ht}=this.state,mt=new XMLHttpRequest,xt=new FormData,Mt=JSON.parse(nt.awsPayload);for(const[vt,Ot]of Object.entries(Mt.fields))xt.append(vt,String(Ot));xt.append("Content-Type",lt.type),xt.append("file",lt),mt.upload.addEventListener("progress",vt=>{const Ot=vt.loaded/vt.total*100;this.setState({...this.state,progress:Ot})}),mt.addEventListener("load",()=>{const{patient:vt,user:Ot,client:At}=this.props,Rt={awsKey:nt.awsKey,patientPk:vt.id,userPk:Ot.id,isRegistrationAttachment:!0,documentType:pt,encounterDate:ht},zt=mt.status;[200,201,204].includes(zt)?At==null||At.mutate({mutation:CreateUKAttachmentMutation,variables:Rt}).then(async function(){await ut(),dt(lt)}).catch(()=>{this.setState({...this.state,errors:["An unknown error occurred"],loading:!1})}):this.setState({...this.state,errors:["An unknown error occurred"],loading:!1})}),mt.addEventListener("error",()=>{this.setState({...this.state,errors:["An unknown error occurred"],loading:!1})}),mt.open("POST",rt),mt.send(xt)}render(){const{file:rt,documentTypeRefData:nt,handleFileDelete:lt}=this.props,{documentType:ut,encounterDate:dt}=this.state;rt.name||logger$d.error(`RORegAttachments.tsx may be attempting to upload a file without a name. File ${rt}`);const pt={fileName:rt.name},ht=mt=>{this.setState({encounterDate:mt})};return jsxRuntimeExports.jsx(Query,{query:GET_UPLOAD_DETAILS_QUERY,variables:pt,children:({loading:mt,data:xt,error:Mt})=>{const{setError:vt}=useErrorModalContext();if(reactExports.useEffect(()=>{if(Mt)return vt()},[Mt]),xt&&xt.fileUploadPayload){const{fields:Ot,url:At}=xt.fileUploadPayload;rt.size>20971520&&this.state.errors.indexOf(fileSizeErrorMsg)===-1&&this.setState({...this.state,errors:[...this.state.errors,fileSizeErrorMsg]});const{loading:Rt,progress:zt,errors:Tt}=this.state,Ct=this.state.url;this.state&&!this.state.fields&&this.setState({...this.state,fields:Ot,url:At});const It=Nt=>{Nt&&this.setState({...this.state,documentType:Nt})},Dt=zt>=100;let kt=Dt||Tt.length>0;this.region===Region.UK&&(kt=Dt||!ut||!dt||Tt.length>0);const qt=`${rt.name}-${rt.lastModified}`;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Prompt,{message:this.handleBlockedNavigation}),jsxRuntimeExports.jsx(ModalInfo$1,{isOpen:this.state.onOpenUploadErrorModal,title:FORGOT_UPLOAD_TITLE,text:FORGOT_UPLOAD_TEXT,extraClass:"pending-submit-modal",dismissFunction:()=>{this.closeUploadInfoErrorModal()}}),jsxRuntimeExports.jsx(TableRow$1,{extraClass:"unattached-minirego-file",attachmentPk:qt,downloadUrl:Ct,errors:Tt,documentTypeRefData:nt,documentType:ut,changeDocument:It,removeDocument:lt,submittedToMosaiq:!1,filename:rt.name,filesize:rt.size,encounterDate:dt,handleDateChange:ht,btnTitle:Dt?"Uploaded":"Upload",loading:Rt,disableBtn:kt,allowDelete:!0,disableSelect:zt>=100,onClick:Nt=>{Nt.preventDefault(),this.uploadFile(At,Ot)},progress:zt})]})}return mt?jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{children:"loading"})}):jsxRuntimeExports.jsx("div",{})}})}}const ApolloUploader=withApollo(Uploader),apolloComponent$2=withApollo(RORegAttachments),PATIENT_QUERY$2=gql`
  query patientQuery($id: ID) {
    patient(id: $id) {
      id
      ida
      attachments {
        id
        dateAttached
        encounterDate
        documentType
        submitted
        file
        url
        filename
        docStatus
        filesize
      }
      fullName
    }
    user {
      id
      isPso
    }
    documentTypeRefData: attachmentTypes {
      id
      conceptCode
      conceptDisplay
    }
  }
`;class RORegAttachmentsApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"completeFileUpload",()=>{this.setState({fileUploaded:!0})});Nr(this,"incompleteFileUpload",()=>{this.setState({fileUploaded:!1})});Nr(this,"formatRefData",rt=>rt.map(nt=>({id:nt.conceptCode,name:nt.conceptDisplay})));Nr(this,"deleteDocument",rt=>{var dt;const ut={id:this.props.match.params.id};(dt=this.props.client)==null||dt.mutate({mutation:DeleteDocumentMutation,variables:{attachmentPk:rt},refetchQueries:[{query:PATIENT_QUERY$2,variables:ut,notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-first"}],awaitRefetchQueries:!0})});this.state={fileUploaded:!0}}render(){const lt={id:this.props.match.params.id};return jsxRuntimeExports.jsx(Query,{query:PATIENT_QUERY$2,variables:lt,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0,children:({loading:ut,data:dt,refetch:pt})=>ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt&&dt.patient&&dt.user?jsxRuntimeExports.jsx(apolloComponent$2,{onDelete:this.deleteDocument,patient:dt.patient,fileUploaded:this.state.fileUploaded,onIncompleteFileUpload:this.incompleteFileUpload,onCompleteFileUpload:this.completeFileUpload,user:dt.user,documentTypeRefData:this.formatRefData(dt.documentTypeRefData),refetchCallback:pt}):jsxRuntimeExports.jsx("div",{children:"Error loading..."})})}}const RORegAttachmentsApollo$1=withApollo(RORegAttachmentsApollo);class RORegSummary extends reactExports.Component{constructor(rt){super(rt);Nr(this,"australianIdInCountry","");Nr(this,"renderContentMessage",(rt,nt)=>!rt||rt.trim()===""?nt||"Not provided":rt);Nr(this,"getDisplayValue",(rt,nt)=>{for(let lt=0;lt<rt.length;lt++)if(rt[lt].id===nt)return rt[lt].name;return nt});Nr(this,"getCountryRefId",()=>{const{countryOfBirthRefData:rt}=this.props;return rt.findIndex(nt=>nt.name.toLowerCase()==="united kingdom")});Nr(this,"validationIcon",rt=>{const nt="secondary-icon";return rt?jsxRuntimeExports.jsx(SvgErrorExclamation,{className:`${nt} invalid-icon`}):jsxRuntimeExports.jsx(SvgSuccess,{className:`${nt} valid-icon`})});Nr(this,"renderNewsCardRow",(rt,nt,lt=!1,ut=!1,dt)=>{const pt=this.renderContentMessage(nt,dt),ht=(pt===dt||pt==="Not provided")&&!ut,mt=rt.toLowerCase().replace(/ /g,"-");return jsxRuntimeExports.jsxs("div",{className:classNames$1("newscard-row",{"invalid-data":lt}),children:[jsxRuntimeExports.jsxs("div",{className:classNames$1("newscard__title",{"newscard__title-error":lt}),children:[rt,ut&&"*"]}),jsxRuntimeExports.jsx("div",{className:classNames$1("newscard__content newscard--bold",{"newscard__content-error":lt},{optional:ht}),"data-test-id":`summary-${mt}`,children:ht&&pt==="Not provided"?"-":pt})]})})}validIdb(rt){if(rt==="")return!0;if(typeof rt=="string"){const nt=[],lt=rt.replace(/ /g,"");for(let pt=0;pt<9;pt++)nt.push(parseInt(lt[pt])*[pt+1]);return nt.reduce((pt,ht)=>pt+ht,0)%11===parseInt(lt[9])}}nhsFormat(rt,nt){if(!rt)return null;let lt=0;const ut=rt.toString().replace(/ /g,"");return nt.replace(/#/g,()=>typeof ut[lt]<"u"?ut[lt++]:"")}render(){const{patient:rt,titleRefData:nt,genderRefData:lt,primaryCenterRefData:ut,insurerRefData:dt,relationshipRefData:pt,documentTypeRefData:ht,countries:mt,ukCounties:xt}=this.props,Mt=rt.residentialAddressCity?rt.residentialAddressCity.match(UK_CITY_REGEX)[0]!==rt.residentialAddressCity:!1;let vt="[a-zA-Z\\s]+|";const Ot=mt.findIndex(qt=>qt.name==="United Kingdom");this.australianIdInCountry=mt[Ot].id,rt.residentialAddressCountry===this.australianIdInCountry&&(vt=".*");const At=rt.residentialAddressState&&rt.residentialAddressCountry!==this.australianIdInCountry?resolveListDataValue(rt.residentialAddressState,xt).match(vt)[0]!==rt.residentialAddressState:!1,Rt=rt.residentialAddressCountry?resolveListDataValue(rt.residentialAddressCountry,mt)===rt.residentialAddressCountry:!1,zt=Mt||At||Rt,Tt={basic:{title:!rt.namePrefix,firstName:!rt.firstName||rt.firstName.match(UK_NAME_REGEX)[0]!==rt.firstName,middleName:!1,lastName:!rt.lastName||rt.lastName.match(UK_NAME_REGEX)[0]!==rt.lastName,gender:!rt.gender,dob:!rt.dob,nhsId:!this.validIdb(rt.idb)||rt.idbConflict,nhsReason:!1,primaryCentre:!rt.primaryCenter,primaryPhone:rt.primaryPhone||rt.secondaryPhone?rt.primaryPhone?!rt.primaryPhone.match(UK_PHONE_REGEX):!1:!0,secondaryPhone:rt.primaryPhone||rt.secondaryPhone?rt.secondaryPhone?!rt.secondaryPhone.match(UK_PHONE_REGEX):!1:!0,email:rt.email?!EMAIL_STRING_REGEX.test(String(rt.email).toLowerCase()):!1,address:zt},insurance:{payor:!1,relationship:!1,policyNumber:!1,preAuthNumber:!1,insuranceNotes:rt.preAuthNotes?rt.preAuthNotes.length>2048:!1},attachments:{}},Ct={};Object.keys(Tt).forEach(qt=>{Ct[qt]=!1,Object.keys(Tt[qt]).forEach(Nt=>{Tt[qt][Nt]&&(Ct[qt]=!0)})});const It=rt.dob?calculateMomentAge(hooks(rt.dob)):"-",Dt=rt.dob?rt.dob+" (Age "+It+")":"Not provided",kt=rt.primaryCenter?this.getDisplayValue(ut,rt.primaryCenter):"";return jsxRuntimeExports.jsxs("div",{className:"main-container ro-uk-full-width reg-summary-wrapper",children:[jsxRuntimeExports.jsx(ROMiniRegoHeader,{title:"Review & Submit",summary:"Please review and submit patient registration details."}),jsxRuntimeExports.jsx("div",{className:"newspaper-container",children:jsxRuntimeExports.jsxs(ROSummaryCard,{children:[jsxRuntimeExports.jsxs(NewsCard,{title:"Basic Details",primaryIcon:jsxRuntimeExports.jsxs("div",{className:"primary-icon-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"primary-icon"}),jsxRuntimeExports.jsx("div",{className:"primary-icon-text",children:"Edit"})]}),secondaryIcon:this.validationIcon(Ct.basic),invalidContent:Ct.basic,onClick:()=>{this.props.navigateTo("basic")},children:[this.renderNewsCardRow("Title",this.getDisplayValue(nt,rt.namePrefix),Tt.basic.title,!0),this.renderNewsCardRow("First name",rt.firstName,Tt.basic.firstName,!0),this.renderNewsCardRow("Middle name",rt.middleName,Tt.basic.middleName,!1),this.renderNewsCardRow("Last name",rt.lastName,Tt.basic.lastName,!0),this.renderNewsCardRow("Gender",this.getDisplayValue(lt,rt.gender),Tt.basic.gender,!0),this.renderNewsCardRow("Date of birth",Dt,Tt.basic.dob,!0),this.renderNewsCardRow("NHS ID",this.nhsFormat(rt.idb,"### ### ####"),Tt.basic.nhsId,!1),this.renderNewsCardRow("Primary centre",kt,Tt.basic.primaryCentre,!0),this.renderNewsCardRow("Mobile phone number",rt.primaryPhone,Tt.basic.primaryPhone,!0),this.renderNewsCardRow("Home phone number",rt.secondaryPhone,Tt.basic.secondaryPhone,!1),this.renderNewsCardRow("Email",rt.email?rt.email:"",Tt.basic.email,!1),this.renderNewsCardRow("Address",rt.address?rt.address.ukFormattedAddress:"",Tt.basic.address,!1)]}),jsxRuntimeExports.jsxs(NewsCard,{title:"Insurance",primaryIcon:jsxRuntimeExports.jsxs("div",{className:"primary-icon-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"primary-icon"}),jsxRuntimeExports.jsx("div",{className:"primary-icon-text",children:"Edit"})]}),secondaryIcon:this.validationIcon(Ct.insurance),invalidContent:Ct.insurance,onClick:()=>{this.props.navigateTo("insurance")},children:[this.renderNewsCardRow("Payor",this.getDisplayValue(dt,rt.payor),Tt.insurance.payor),this.renderNewsCardRow("Relationship to policy holder",this.getDisplayValue(pt,rt.coverageRelationship),Tt.insurance.relationship),this.renderNewsCardRow("Policy number",rt.policyNumber,Tt.insurance.policyNumber),this.renderNewsCardRow("Pre-auth number",rt.preAuthNumber,Tt.insurance.preAuthNumber),this.renderNewsCardRow("Insurance notes",rt.preAuthNotes,Tt.insurance.insuranceNotes)]}),jsxRuntimeExports.jsx(NewsCard,{title:"Attachments",primaryIcon:jsxRuntimeExports.jsxs("div",{className:"primary-icon-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"primary-icon"}),jsxRuntimeExports.jsx("div",{className:"primary-icon-text",children:"Edit"})]}),secondaryIcon:this.validationIcon(Ct.attachments),invalidContent:Ct.attachments,onClick:()=>{this.props.navigateTo("attachments")},children:rt.attachments.map(qt=>this.renderNewsCardRow(this.getDisplayValue(ht,qt.typeDisplay),qt.filename))})]})})]})}}const PATIENT_QUERY$1=gql`
  query patientQuery($id: ID) {
    patient(id: $id) {
      id
      ida
      idb
      idbConflict
      payor
      coverageRelationship
      policyNumber
      preAuthNumber
      preAuthNotes
      attachments {
        id
        dateAttached
        encounterDate
        documentType
        submitted
        file
        url
        filename
        docStatus
        filesize
        typeDisplay
      }
      primaryPhone
      secondaryPhone
      email
      firstName
      middleName
      lastName
      namePrefix
      fullName
      gender
      dob
      dobRawDay
      dobRawMonth
      dobRawYear
      primaryCenter
      otherInformation
      address {
        id
        ukFormattedAddress
      }
      residentialAddressCity
      residentialAddressState
      residentialAddressCountry
    }
    user {
      id
      isPso
    }
    documentTypeRefData: attachmentTypes {
      id
      name: conceptDisplay
    }
    titleRefData: listData(category: "nameTitle") {
      id
      name
    }
    gpSurgeryRefData: practitionerLocations(patient: $id, search: "") {
      id
      name: fullName
    }
    surgeonLocationRefData: practitionerLocations(patient: $id, search: "") {
      id
      name: fullName
    }
    gpRefData: practitioners(url: "https://genesiscare.com/fhir/general-practice-surgery", patient: $id) {
      id
      name
    }
    surgeonRefData: extPractitioners(patient: $id, search: "") {
      id
      name: name
    }
    oncologistRefData: oncologists(patient: $id, search: "") {
      id
      name
    }
    relationshipsRefData: listData(category: "relationships") {
      id
      name
    }
    heritageRefData: listData(category: "heritage") {
      id
      name
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      name
    }
    ethnicityRefData: listData(category: "ethnicity") {
      id
      name
    }
    religionRefData: listData(category: "religion") {
      id
      name
    }
    countryOfBirthRefData: listData(category: "countryOfBirth") {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    languageSpokenRefData: listData(category: "languages") {
      id
      name
    }
    medicareTypeRefData: listData(category: "healthFund") {
      id
      name
      appKey
    }
    insurerRefData: departments {
      id
      name
    }
    relationshipRefData: listData(category: "coverageRelationship") {
      id
      name
    }
    dvaTypeRefData: listData(category: "dvaCardType") {
      id
      name
      appKey
    }
    ausStateRefData: listData(category: "ukCounties") {
      id
      name
    }
    primaryCenterRefData: configs {
      id
      name
    }
    nhsOptionsRefData: listData(category: "nhsOptions") {
      id
      name
    }
    registrationReasonRefData: listData(category: "registrationReason") {
      id
      name
    }
    ukCounties: listData(category: "ukCounties") {
      id
      name
    }
    countries: listData(category: "countryOfBirth") {
      id
      name
    }
  }
`;class RORegSummaryApollo extends reactExports.Component{constructor(){super(...arguments);Nr(this,"navigate",rt=>{this.props.history.push(rt)});Nr(this,"formatRefData",rt=>rt.map(nt=>({id:nt.name,name:nt.name})))}render(){const lt={id:this.props.match.params.id};return jsxRuntimeExports.jsx(Query,{query:PATIENT_QUERY$1,variables:lt,fetchPolicy:"cache-and-network",children:({loading:ut,data:dt,error:pt})=>{const{setError:ht}=useErrorModalContext();return reactExports.useEffect(()=>{if(pt)return ht()},[pt]),ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt&&dt.patient&&dt.user?jsxRuntimeExports.jsx(RORegSummary,{navigateTo:this.navigate,registrationReasonRefData:dt.registrationReasonRefData,nhsOptionsRefData:dt.nhsOptionsRefData,insurerRefData:dt.insurerRefData,relationshipRefData:dt.relationshipRefData,gpSurgeryRefData:dt.gpSurgeryRefData,surgeonLocationRefData:dt.surgeonLocationRefData,gpRefData:dt.gpRefData,extPracRefData:dt.extPracRefData,documentTypeRefData:dt.documentTypeRefData,surgeonRefData:this.formatRefData(dt.surgeonRefData),oncologistRefData:dt.oncologistRefData,titleRefData:dt.titleRefData,relationshipsRefData:dt.relationshipsRefData,maritalStatusRefData:dt.maritalStatusRefData,ethnicityRefData:dt.ethnicityRefData,religionRefData:dt.religionRefData,acceptsDataShareRefData:dt.acceptsDataShareRefData,countryOfBirthRefData:dt.countryOfBirthRefData,genderRefData:dt.genderRefData,primaryCenterRefData:dt.primaryCenterRefData,languageSpokenRefData:dt.languageSpokenRefData,ausStateRefData:dt.ausStateRefData,patient:dt.patient,countries:dt.countries,ukCounties:dt.ukCounties,user:dt.user}):jsxRuntimeExports.jsx("div",{})}})}}const FormContext$1=reactExports.createContext({mutations:{}}),HEALTH_ASSESSMENT_QUERY$1=gql`
  query HealthAssessment($id: ID!, $status: String!) {
    healthAssessment(id: $id, status: $status) {
      id
      status
      previousCancer
      cancer {
        id
        ...HealthAssessmentCancer
      }
      intractableInfectionOrIllnesses {
        id
        doctorClearance
        value
        other
      }
      immunosuppressiveConditions {
        id
        value
        other
      }
      otherRadiotherapy
      otherRadiotherapyConditions {
        id
        ...HealthAssessmentOtherRT
      }
      mobilityAid
      mobilityAids {
        id
        ...HealthAssessmentMobilityAid
      }
      wellbeingIssue
      wellbeingIssues {
        id
        ...HealthAssessmentWellbeingIssue
      }
      activeInjury
      activeInjuryReason
      fallen
      fallenReason
    }
    treatmentTypeRefData: listData(category: "treatmentType") {
      id
      name
    }
    treatmentStageRefData: listData(category: "treatmentStage") {
      id
      name
    }
    mobilityAidRefData: listData(category: "mobilityAids") {
      id
      name
    }
    wellbeingIssueRefData: listData(category: "wellbeingIssues") {
      id
      name
    }
    intractableInfectionOrIllnessesRefData: listData(category: "intractableInfectionOrIllnesses") {
      id
      name
    }
    immunosuppresiveConditionsRefData: listData(category: "immunosuppresiveConditions") {
      id
      name
    }
  }

  ${HEALTH_ASSESSMENT_CANCER_FRAGMENT}
  ${HEALTH_ASSESSMENT_MOBILITY_AID_FRAGMENT}
  ${HEALTH_ASSESSMENT_OTHER_RT_FRAGMENT}
  ${HEALTH_ASSESSMENT_WELLBEING_ISSUE_FRAGMENT}
`,DT_RATING_QUERY$1=gql`
  query DTRating($patientId: ID!, $status: String!, $version: String!) {
    distressThermometer(patientId: $patientId, status: $status, version: $version) {
      id
      distressRating
      version
    }
  }
`;gql`
  query PreCtTriage($patientId: ID!) {
    lastSubmittedPreCtTriage(patientId: $patientId) {
      id
      isAmendment
      isLocked
      nurseLocation
      unintentionalWeightLoss
      hasDecreasedAppetite
      isAlertAndOrientated
      hasAlteredCognitiveState
      hasCurrentPain
      painScore
      isAbleToLieFlat
      isAbleToClimbStairs
      transportMode
      otherTransport
      socialConsiderations
      hasPatientCarerConcern
      pelvicFitness
      hasHighRiskFactors
      howFactorsWereIdentified
      additionalNotes
      patient {
        id
      }
      updatedBy
      lastUpdateUser {
        fieldName
        lastUpdateUser
        updatedDate
      }
    }
  }
`;const PRE_CT_CHART_CHECK_QUERY=gql`
  query PreCtChartCheck($id: ID!) {
    preCtChartCheck(id: $id) {
      id
      isLocked
      isAmendment
      nurseLocation
      patientIdentificationCheck
      patientHeight
      patientWeight
      previousRadiationTreatment
      anticancerDrugs
      chemoPastWeek
      hasImplantedMedicalDevice
      treatmentOverHalfHour
      currentInpatient
      requiresMaskCast
      existingPressureInjuryWound
      implantedMedicalDevice {
        id
        ...ImplantedDevice
      }
      hasInfectiousDisease
      infectiousDisease {
        id
        ...InfectiousDisease
      }
      hasMroInfection
      mroInfection {
        id
        ...MroInfection
      }
      outsideWaLastTwelveMonths
      fallLastTwelveMonths
      safetyConcernsMobility
      hasCurrentAcd
      acdInfoRequested
      hasCurrentResusMxPlan
      staffConcern
      anxietyClaustrophobia
      hasPatientAllergies
      pcccAllergy {
        id
        ...Allergy
      }
      additionalNotes
      updatedBy
      lastUpdateUser {
        fieldName
        lastUpdateUser
        updatedDate
      }
    }
  }

  ${PCCC_ALLERGY_FRAGMENT}
  ${PCCC_IMPLANTED_DEVICE_FRAGMENT}
  ${PCCC_INFECTIOUS_DISEASE_FRAGMENT}
  ${PCCC_MRO_INFECTION_FRAGMENT}
`,UPDATE_PRE_CT_CHART_CHECK=gql`
  mutation UpdatePreCtChartCheck(
    $id: ID!
    $nurseLocation: String
    $patientIdentificationCheck: Boolean
    $patientHeight: String
    $patientWeight: String
    $previousRadiationTreatment: Boolean
    $anticancerDrugs: Boolean
    $chemoPastWeek: Boolean
    $hasImplantedMedicalDevice: Boolean
    $hasInfectiousDisease: Boolean
    $hasMroInfection: Boolean
    $outsideWaLastTwelveMonths: Boolean
    $fallLastTwelveMonths: Boolean
    $safetyConcernsMobility: Boolean
    $hasCurrentAcd: Boolean
    $acdInfoRequested: Boolean
    $hasCurrentResusMxPlan: Boolean
    $staffConcern: Boolean
    $anxietyClaustrophobia: Boolean
    $treatmentOverHalfHour: Boolean
    $currentInpatient: Boolean
    $requiresMaskCast: Boolean
    $existingPressureInjuryWound: Boolean
    $hasPatientAllergies: Boolean
    $additionalNotes: String
  ) {
    updatePreCtChartCheck(
      id: $id
      nurseLocation: $nurseLocation
      patientIdentificationCheck: $patientIdentificationCheck
      patientHeight: $patientHeight
      patientWeight: $patientWeight
      previousRadiationTreatment: $previousRadiationTreatment
      anticancerDrugs: $anticancerDrugs
      chemoPastWeek: $chemoPastWeek
      hasImplantedMedicalDevice: $hasImplantedMedicalDevice
      hasInfectiousDisease: $hasInfectiousDisease
      hasMroInfection: $hasMroInfection
      outsideWaLastTwelveMonths: $outsideWaLastTwelveMonths
      fallLastTwelveMonths: $fallLastTwelveMonths
      safetyConcernsMobility: $safetyConcernsMobility
      hasCurrentAcd: $hasCurrentAcd
      acdInfoRequested: $acdInfoRequested
      hasCurrentResusMxPlan: $hasCurrentResusMxPlan
      staffConcern: $staffConcern
      anxietyClaustrophobia: $anxietyClaustrophobia
      treatmentOverHalfHour: $treatmentOverHalfHour
      currentInpatient: $currentInpatient
      requiresMaskCast: $requiresMaskCast
      existingPressureInjuryWound: $existingPressureInjuryWound
      hasPatientAllergies: $hasPatientAllergies
      additionalNotes: $additionalNotes
    ) {
      preCtChartCheck {
        id
        nurseLocation
        patientIdentificationCheck
        patientHeight
        patientWeight
        previousRadiationTreatment
        anticancerDrugs
        chemoPastWeek
        hasImplantedMedicalDevice
        hasInfectiousDisease
        infectiousDisease {
          id
          ...InfectiousDisease
        }
        hasMroInfection
        mroInfection {
          id
          ...MroInfection
        }
        outsideWaLastTwelveMonths
        fallLastTwelveMonths
        safetyConcernsMobility
        hasCurrentAcd
        acdInfoRequested
        hasCurrentResusMxPlan
        staffConcern
        anxietyClaustrophobia
        treatmentOverHalfHour
        currentInpatient
        requiresMaskCast
        existingPressureInjuryWound
        hasPatientAllergies
        additionalNotes
        lastUpdateUser {
          fieldName
          lastUpdateUser
          updatedDate
        }
      }
    }
  }

  ${PCCC_INFECTIOUS_DISEASE_FRAGMENT}
  ${PCCC_MRO_INFECTION_FRAGMENT}
`;gql`
  mutation deletePreCtChartCheck($id: ID!) {
    deletePreCtChartCheck(id: $id) {
      ok
    }
  }
`;const CREATE_ASSESSMENT_DEVICE=gql`
  mutation createAssessmentDevice($assessmentId: ID!, $deviceField: String!, $name: String!) {
    createAssessmentDevice(assessmentId: $assessmentId, deviceField: $deviceField, name: $name) {
      preCtChartCheck {
        id
        implantedMedicalDevice {
          id
          ...ImplantedDevice
        }
      }
      implantedMedicalDevice {
        id
        ...ImplantedDevice
      }
    }
  }

  ${PCCC_IMPLANTED_DEVICE_FRAGMENT}
`,DELETE_ASSESSMENT_DEVICE=gql`
  mutation deleteAssessmentDevice($id: ID!) {
    deleteAssessmentDevice(id: $id) {
      preCtChartCheck {
        id
        implantedMedicalDevice {
          id
          ...ImplantedDevice
        }
      }
      ok
    }
  }

  ${PCCC_IMPLANTED_DEVICE_FRAGMENT}
`,UPDATE_ASSESSMENT_DEVICE=gql`
  mutation updateAssessmentDevice($id: ID!, $deviceField: String!, $name: String!) {
    updateAssessmentDevice(id: $id, deviceField: $deviceField, name: $name) {
      preCtChartCheck {
        id
        implantedMedicalDevice {
          id
          ...ImplantedDevice
        }
      }
    }
  }

  ${PCCC_IMPLANTED_DEVICE_FRAGMENT}
`,CREATE_INFECTIOUS_DISEASE=gql`
  mutation CreateInfectiousDisease($assessmentId: ID!, $baseValue: String!, $otherValue: String) {
    createInfectiousDisease(assessmentId: $assessmentId, baseValue: $baseValue, otherValue: $otherValue) {
      preCtChartCheck {
        id
        infectiousDisease {
          id
          ...InfectiousDisease
        }
      }
      infectiousDisease {
        id
        ...InfectiousDisease
      }
    }
  }

  ${PCCC_INFECTIOUS_DISEASE_FRAGMENT}
`,DELETE_INFECTIOUS_DISEASE=gql`
  mutation DeleteInfectiousDisease($id: ID!) {
    deleteInfectiousDisease(id: $id) {
      preCtChartCheck {
        id
        infectiousDisease {
          id
          ...InfectiousDisease
        }
      }
      ok
    }
  }

  ${PCCC_INFECTIOUS_DISEASE_FRAGMENT}
`,UPDATE_INFECTIOUS_DISEASE=gql`
  mutation UpdateInfectiousDisease($id: ID!, $baseValue: String, $otherValue: String) {
    updateInfectiousDisease(id: $id, baseValue: $baseValue, otherValue: $otherValue) {
      preCtChartCheck {
        id
        infectiousDisease {
          id
          ...InfectiousDisease
        }
      }
    }
  }

  ${PCCC_INFECTIOUS_DISEASE_FRAGMENT}
`,CREATE_MRO_INFECTION=gql`
  mutation CreateMroInfection($assessmentId: ID!, $baseValue: String!, $otherValue: String) {
    createMroInfection(assessmentId: $assessmentId, baseValue: $baseValue, otherValue: $otherValue) {
      preCtChartCheck {
        id
        mroInfection {
          id
          ...MroInfection
        }
      }
      mroInfection {
        id
        ...MroInfection
      }
    }
  }

  ${PCCC_MRO_INFECTION_FRAGMENT}
`,DELETE_MRO_INFECTION=gql`
  mutation DeleteMroInfection($id: ID!) {
    deleteMroInfection(id: $id) {
      preCtChartCheck {
        id
        mroInfection {
          id
          ...MroInfection
        }
      }
      ok
    }
  }

  ${PCCC_MRO_INFECTION_FRAGMENT}
`,UPDATE_MRO_INFECTION=gql`
  mutation UpdateMroInfection($id: ID!, $baseValue: String, $otherValue: String) {
    updateMroInfection(id: $id, baseValue: $baseValue, otherValue: $otherValue) {
      preCtChartCheck {
        id
        mroInfection {
          id
          ...MroInfection
        }
      }
    }
  }

  ${PCCC_MRO_INFECTION_FRAGMENT}
`,CREATE_ALLERGY=gql`
  mutation CreatePcccAllergy($assessmentId: ID!, $allergyType: String!, $additionalDetails: String) {
    createPcccAllergy(assessmentId: $assessmentId, allergyType: $allergyType, additionalDetails: $additionalDetails) {
      preCtChartCheck {
        id
        pcccAllergy {
          id
          ...Allergy
        }
      }
    }
  }

  ${PCCC_ALLERGY_FRAGMENT}
`,DELETE_ALLERGY=gql`
  mutation DeletePcccAllergy($id: ID!) {
    deletePcccAllergy(id: $id) {
      preCtChartCheck {
        id
        pcccAllergy {
          id
          ...Allergy
        }
      }
      ok
    }
  }

  ${PCCC_ALLERGY_FRAGMENT}
`,UPDATE_ALLERGY=gql`
  mutation UpdatePcccAllergy($id: ID!, $allergyType: String, $additionalDetails: String) {
    updatePcccAllergy(id: $id, allergyType: $allergyType, additionalDetails: $additionalDetails) {
      preCtChartCheck {
        id
        pcccAllergy {
          id
          ...Allergy
        }
      }
    }
  }

  ${PCCC_ALLERGY_FRAGMENT}
`,CREATE_REACTION=gql`
  mutation CreatePcccReaction($allergyId: ID!, $baseValue: String, $otherValue: String) {
    createPcccReaction(allergyId: $allergyId, baseValue: $baseValue, otherValue: $otherValue) {
      preCtChartCheck {
        id
        pcccAllergy {
          id
          ...Allergy
        }
      }
    }
  }

  ${PCCC_ALLERGY_FRAGMENT}
`,DELETE_REACTION=gql`
  mutation DeletePcccReaction($id: ID!) {
    deletePcccReaction(id: $id) {
      preCtChartCheck {
        id
        pcccAllergy {
          id
          ...Allergy
        }
      }
      ok
    }
  }

  ${PCCC_ALLERGY_FRAGMENT}
`,UPDATE_REACTION=gql`
  mutation UpdatePcccReaction($id: ID!, $baseValue: String, $otherValue: String) {
    updatePcccReaction(id: $id, baseValue: $baseValue, otherValue: $otherValue) {
      preCtChartCheck {
        id
        pcccAllergy {
          id
          ...Allergy
        }
      }
    }
  }

  ${PCCC_ALLERGY_FRAGMENT}
`,SUBMIT_PRE_CT_CHART_CHECK=gql`
  mutation createPreCTChartCheckSubmission($id: ID!) {
    createPreCTChartCheckSubmission(id: $id) {
      submission {
        id
        pdf
      }
      submissionCreated
    }
  }
`,CREATE_INITIAL_TRIAGE_QCL_CALL=gql`
  mutation createInitialTriageQclCall($id: ID!) {
    createInitialTriageQclCall(id: $id) {
      submissionCreated
    }
  }
`,CHART_CHECK="chartCheck",yesNKAOptions=[{label:"Yes",value:!0},{label:"NKA - nil known allergies",value:!1}],DEFIBRILLATOR="Defibrillator",PACEMAKER="Pacemaker",PICC="PICC",PORT="Port",CVC="CVC",IVC="IVC",JOINT_REPLACEMENT="Joint replacement",HEART_STENT="Heart stent",ciedOptions=[DEFIBRILLATOR,PACEMAKER],venousAccessTypeOptions=[PICC,PORT,CVC,IVC],otherImplantedDevicesOptions=[JOINT_REPLACEMENT,HEART_STENT],HIV="HIV",HEPATITISB="Hepatitis B",HEPATITISC="Hepatitis C",CHICKENPOX="Chicken pox",INFLUENZA="Influenza",TUBERCULOSIS="Tuberculosis",OTHER="Other",MRSA="MRSA – Golden Staph",VRE="VRE",CPE="CPE",MRO="MRO",infectiousDiseases=[{label:HIV,value:HIV},{label:HEPATITISB,value:HEPATITISB},{label:HEPATITISC,value:HEPATITISC},{label:CHICKENPOX,value:CHICKENPOX},{label:INFLUENZA,value:INFLUENZA},{label:TUBERCULOSIS,value:TUBERCULOSIS},{label:OTHER,value:OTHER}],mroInfections=[{label:MRSA,value:MRSA},{label:VRE,value:VRE},{label:CPE,value:CPE},{label:MRO,value:MRO},{label:OTHER,value:OTHER}],DRESSING_OR_TAPE="Dressing or tape",FOOD="Food",MEDICATION="Medication",ANAPHYLAXIS="Anaphylaxis",BREATHING_DIFFICULTIES="Breathing difficulties",COUGH="Cough",HIVES="Hives",PAIN="Pain",RASH="Rash",REDNESS_DISCOLORATION="Redness/Discoloration",SWELLING="Swelling",UNABLE_TO_RECALL="Unable to recall",UNKNOWN="Unknown",allergyOptions=[{label:DRESSING_OR_TAPE,value:DRESSING_OR_TAPE},{label:FOOD,value:FOOD},{label:MEDICATION,value:MEDICATION},{label:OTHER,value:OTHER}],reactionOptions=[{label:ANAPHYLAXIS,value:ANAPHYLAXIS},{label:BREATHING_DIFFICULTIES,value:BREATHING_DIFFICULTIES},{label:COUGH,value:COUGH},{label:HIVES,value:HIVES},{label:PAIN,value:PAIN},{label:RASH,value:RASH},{label:REDNESS_DISCOLORATION,value:REDNESS_DISCOLORATION},{label:SWELLING,value:SWELLING},{label:UNABLE_TO_RECALL,value:UNABLE_TO_RECALL},{label:UNKNOWN,value:UNKNOWN},{label:OTHER,value:OTHER}],noDataTableRow=[[{title:"No patient reported information found",value:""}]],previousRadiationTreatmentTableFields=[{title:"Type of condition",fieldName:"condition"},{title:"Part of body",fieldName:"bodyPart"},{title:"Doctor",fieldName:"doctor"},{title:"Name of clinic/hospital",fieldName:"hospital"},{title:"Date treatment completed",fieldName:"treatmentDate"}],preCtChartCheckContent={basicInformation:{fields:{nurseLocation:"QCL Location*",patientIdentificationCheck:"Patient Identification Check",patientHeight:"Patient reported height",patientWeight:"Patient reported weight",previousRadiationTreatment:"Previous Radiation Treatment"},tableTitles:{typeOfCondition:"Type of condition"}},chemoRisk:{fields:{anticancerDrugs:"Concurrent anticancer drugs",chemoPastWeek:"Chemotherapy in the last 7 days"},infoHelpers:{anticancerDrugsQCLMessage:'Selecting "Yes" will create QCL: Cytotoxic Mx Plan',chemoPastWeekQCLMessage:'Selecting "Yes" will create Alert: Cytotoxic precautions'},integrationQCL:{anticancerDrugs:"Cytotoxic Mx Plan",chemoPastWeek:"Cytotoxic Mx Plan"},tableTitles:{typeOfCondition:"Type of condition",typeOfTreatment:"Treatment type",dateOfLastTreatment:"Date of last treatment",treatmentStageTitle:"Treatment stage",doctorTitle:"Doctor",nameOfClinic:"Name of clinic/hospital"}},implantedMedicalDevices:{subSection:{title:"Implanted Devices",summary:"Please select/unselect all that apply",validation:"Please select or specify at least one implanted medical device"},fields:{hasImplantedMedicalDevice:"Implanted Medical Device",cied:"Cardiac Implanted Electronic Device (CIED)",venousAccessType:"Venous Access Type",otherImplantedDevices:"Other Implanted Devices",otherNotListed:"Other (if not listed above)"},fieldKeys:{cied:"cied",venousAccessType:"venousAccessType",otherImplantedDevices:"otherImplantedDevices",otherNotListed:"otherNotListed"},infoHelpers:{ciedAlert:"Selecting a device will create Alert: CIED",ciedQcl:"Selecting a device will create QCL: CIED monitoring plan",venousAccessType:"Selecting a device will create Alert: Implanted device",otherImplantedDevices:"Selecting a device will create Alert: Implanted device",otherNotListed:"Specifying a device will create Alert: Implanted device"},integrationQCL:{cied:"CIED Monitoring Plan"},options:{cied:ciedOptions,venousAccessType:venousAccessTypeOptions,otherImplantedDevices:otherImplantedDevicesOptions},parentField:"implantedMedicalDevice"},infectiousRisk:{fields:{hasInfectiousDisease:"Current Infectious Disease",hasMroInfection:"Current MRO Infection",outsideWaLastTwelveMonths:"Inpatient outside WA in last 12 months",infectiousDisease:"Infectious Disease",mroInfection:"MRO Infection"},infoHelpers:{infectiousRiskAlert:'Selecting "Yes" will create Alert: Infection Risk',infectiousRiskQCL:'Selecting "Yes" will create QCL: Infection Risk Mx Plan'},options:{infectiousDiseaseOptions:infectiousDiseases,mroInfectionOptions:mroInfections},subfields:{infectiousDisease:["baseValue","otherValue"],mroInfection:["baseValue","otherValue"]},integrationQCL:{hasInfectiousDisease:"Infection Risk Mx Plan",hasMroInfection:"Infection Risk Mx Plan",outsideWaLastTwelveMonths:"Infection Risk Mx Plan"},actionLabels:{addInfectiousRisk:"Add another current infectious disease",addMroInfection:"Add another MRO infection"},tableTitles:{mroInfectionTitle:"MRO infection",doctorClearanceTitle:"Doctor clearance"}},fallsRisk:{fields:{fallLastTwelveMonths:"Fall in last 12 months",safetyConcernsMobility:"Safety Concerns with Mobility"},infoHelpers:{fallsRiskQCLMessage:'Selecting "Yes" will create QCL: Falls Risk Assessment'},integrationQCL:{fallLastTwelveMonths:"Falls Risk Assessment",safetyConcernsMobility:"Falls Risk Assessment"},tableTitles:{walkingDeviceTitle:"Walking device"}},pressureInjuryRisk:{fields:{treatmentOverHalfHour:"Treatment Length >30mins",currentInpatient:"Current bed bound inpatient",requiresMaskCast:"Requires Mask or Cast",existingPressureInjuryWound:"Existing Pressure Injury/Wound"},infoHelpers:{pressureInjuryAlert:"Selecting Yes will create Alert: Pressure risk",pressureInjuryQCL:"Selecting Yes will create QCL: Pressure Injury Mx Plan"},integrationQCL:{treatmentOverHalfHour:"Pressure Injury Mx Plan",currentInpatient:"Pressure Injury Mx Plan",requiresMaskCast:"Pressure Injury Mx Plan",existingPressureInjuryWound:"Pressure Injury Mx Plan"},tableTitles:{activeInjuryReasonTitle:"Please specify: Existing Pressure Injury/Wound"}},wellbeing:{fields:{staffConcern:"Staff Concern",anxietyClaustrophobia:"Anxiety/Claustrophobia"},infoHelpers:{anxietyClaustrophobiaMessage:"Please document details/actions in patient notes"},tableTitles:{hasWellbeingIssueTitle:"Do you have any wellbeing or mental issues?",dtScoreTitle:"Distress Thermometer Score",wellbeingIssueTitle:"Wellbeing or mental health issue"}},advancedCareDirective:{fields:{hasCurrentAcd:"Current Advance Care Directive",acdInfoRequested:"ACD info requested",hasCurrentResusMxPlan:"Current Resus Mx Plan/NFR"},infoHelpers:{hasCurrentAcdQCL:'Select "Yes" will create QCL: Follow-up copy ACD plan',hasCurrentResusMxPlanQCL:'Select "Yes" will create QCL: Follow-up copy Resus Mx /NFR plan'},integrationQCL:{hasCurrentAcd:"Follow-up copy ACD plan",hasCurrentResusMxPlan:"Follow-up copy Resus Mx /NFR plan"}},allergies:{fields:{hasPatientAllergies:"Patient Allergies",pcccAllergy:"Allergy/Sensitivity",pcccReaction:"Reaction experienced"},infoHelpers:{allergyAlert:"Please add NKA to allergy tab on patient chart"},options:{allergy:allergyOptions,reaction:reactionOptions},actionLabels:{addAllergy:"Add another allergy/sensitivity",addReaction:"Add another reaction experienced"}},reviewAndSubmit:{qclGeneration:"Submitting this assessment will generate the following QCLs in Mosaiq. Please find and complete these in Mosaiq after submitting this form."},additionalNotes:{sectionTitle:"Additional Notes",helperText:"Notes will appear in Mosaiq once this assessment is submitted"}},basicInfoFields=Object.keys(preCtChartCheckContent.basicInformation.fields),chemoRiskFields=Object.keys(preCtChartCheckContent.chemoRisk.fields);Object.keys(preCtChartCheckContent.implantedMedicalDevices.fields);Object.keys(preCtChartCheckContent.infectiousRisk.fields);const fallsRiskFields=Object.keys(preCtChartCheckContent.fallsRisk.fields),pressureInjuryFields=Object.keys(preCtChartCheckContent.pressureInjuryRisk.fields),wellbeingCCFields=Object.keys(preCtChartCheckContent.wellbeing.fields),advancedCareFields=Object.keys(preCtChartCheckContent.advancedCareDirective.fields),displayTextFieldOptionsForOther=[OTHER],displayTextFieldOptionsForAllergy=[DRESSING_OR_TAPE,MEDICATION,OTHER],stepperTitle$1="INITIAL CHART CHECK",reviewInfo$1=[{icon:()=>React$4.createElement(PersonOutlinedIcon,{color:"info"}),label:"Patient reported"},{icon:SvgNurseReviewedIcon,label:"Nurse reviewed and edited"}],valueRequired$1="This field is required",positiveNumber$1="Number must be positive",fieldsToValidateOnContinue$1={[SECTIONS$1.BASIC_INFORMATION]:[...Object.keys(preCtChartCheckContent.basicInformation.fields)],[SECTIONS$1.CHEMOTHERAPY_RISK]:[...Object.keys(preCtChartCheckContent.chemoRisk.fields)],[SECTIONS$1.IMPLANTED_MEDICAL_DEVICES]:[...Object.keys(preCtChartCheckContent.implantedMedicalDevices.fields)],[SECTIONS$1.INFECTIOUS_RISK]:["hasInfectiousDisease","hasMroInfection","outsideWaLastTwelveMonths"],[SECTIONS$1.FALLS_RISK]:[...Object.keys(preCtChartCheckContent.fallsRisk.fields)],[SECTIONS$1.PRESSURE_INJURY]:[...Object.keys(preCtChartCheckContent.pressureInjuryRisk.fields)],[SECTIONS$1.WELLBEING]:[...Object.keys(preCtChartCheckContent.wellbeing.fields)],[SECTIONS$1.ADVANCED_CARE_DIRECTIVE]:[...Object.keys(preCtChartCheckContent.advancedCareDirective.fields)],[SECTIONS$1.ALLERGIES]:["hasPatientAllergies"],[SECTIONS$1.REVIEW_AND_SUBMIT]:[]},AdditionalNotes=({handleMutation:et,value:tt,handleChange:rt,name:nt,isLocked:lt})=>{const{additionalNotes:{sectionTitle:ut,helperText:dt}}=preCtChartCheckContent;return jsxRuntimeExports.jsx(SideTextAreaField,{name:nt,value:tt,onBlur:pt=>et(nt,pt.target.innerText),onChange:rt,title:ut,helperText:dt,disabled:lt})},sharedContent={reviewAndSubmit:{title:"QCLs Generated",noQclsGenerated:"No QCLs generated",qclGenerationText:et=>`Submitting this ${et?"amended assessment":"assessment"} will generate the following QCLs in Mosaiq. Please find and complete these in Mosaiq after submitting this form.`,missingQcl:{title:"Missing QCL Location Field",mainText1:"Please provide an answer to the required <b>QCL location</b> field under",mainText2:"before submitting the form.",returnToField:"Return to field"},submit:{title:"Approve and Submit",mainText1:"Initial",mainText2:"approved and submitted by:",subText1:"You’re about to submit the Initial",subText2:"assessment. Please ensure all fields are correct before submitting this assessment.",additionalText:"You will be able to submit an amendment to this assessment once submitted."},submitAmendment:{title:"Approve and Submit",mainText1:"Initial",mainText2:"approved and submitted by:",subText1:"You’re about to submit the amended Initial",subText2:"assessment. Submission of this will void the original assessment.",additionalText:"Please ensure all fields are correct before submitting this assessment."},proceedToTriage:{title:"Proceed to Initial Triage?",mainText:"Would you like to continue to the Initial Triage Assessment now?",helperText:"Selecting ’Back to Summary’ will generate QCL Initial Triage Call Required and take you to the ’Patient Summary’ page",backToSummary:"Back to Summary"},submissionError:{title:"Something Went Wrong",mainText:"We have encountered an error. If the issue persists, please contact GenesisCare Innovation support: ",emailLink:CurrentAppConfig.SupportEmail,contactText:"Contact us"}},additionalNotes:{sectionTitle:"Additional Notes",helperText:"Notes will appear in Mosaiq once this assessment is submitted"},generic:{label:{selectValue:"Please select",specifyValue:"Please specify",notProvided:"Not Provided",continue:"Continue",cancel:"Cancel",submit:"Submit"}}},convertFromBooleanToString=et=>et?"Yes":et===!1?"No":"-",MainSection$2=styled$1("section")`
  font-size: 1.125rem;
  margin-bottom: 10px;
  line-height: 28px;
`,{mainText1,mainText2}=sharedContent.reviewAndSubmit.missingQcl,ModalContentMissingQcl=({sectionName:et})=>jsxRuntimeExports.jsx(MainSection$2,{children:jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:`${mainText1} ${et} ${mainText2}`}})}),MainSection$1=styled$1("section")`
  font-size: 1.125rem;
  margin-bottom: 10px;
  line-height: 28px;
`,{mainText,helperText}=sharedContent.reviewAndSubmit.proceedToTriage,ModalContentProceedToTriage=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(MainSection$1,{children:mainText}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:"proceed-to-triage",fieldText:helperText,helperType:"info",fontSize:13})]}),MainSection=styled$1("section")`
  font-size: 1.125rem;
  margin-bottom: 10px;
  line-height: 28px;
`,SubSection=styled$1("section")`
  line-height: 24px;
  margin-bottom: 16px;
`,ModalContentSubmit=({isAmendment:et,formName:tt,submittedByNurse:rt})=>{const{mainText1:nt,mainText2:lt,subText1:ut,subText2:dt,additionalText:pt=""}=et?sharedContent.reviewAndSubmit.submitAmendment:sharedContent.reviewAndSubmit.submit;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(MainSection,{children:[jsxRuntimeExports.jsx("div",{children:`${nt} ${tt} ${lt}`}),jsxRuntimeExports.jsx("b",{children:rt})]}),jsxRuntimeExports.jsx(SubSection,{children:`${ut} ${tt} ${dt}`}),pt?jsxRuntimeExports.jsx(SubSection,{children:pt}):""]})},ArrowLine$1=styled$1("div")`
  height: 0px;
  border-bottom: solid 2px transparent;
  box-shadow: 0px 2px 4px rgba(46, 46, 46, 0.2);
  border-radius: 2px;
  position: relative;
  z-index: 1;
`,DownArrow$1=styled$1("div")`
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 15px solid white;
  margin-left: 75%;
  z-index: 2;
`,QuestionContainer$3=styled$1("div")`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: ${et=>et.isSubField?"20px 0 20px 27px":"0 0 0 27px"};
  background: ${et=>et.isSubField?et.theme.palette.grey[100]:"none"};
`,Question$2=styled$1("div")`
  width: 50%;
  margin-right: 5px;
  height: 40px;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.isError?et.theme.palette.text.primary:et.theme.palette.error.main};
`,Answer$2=styled$1("div")`
  width: 50%;
  font-weight: bold;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.isError?et.theme.palette.text.primary:et.theme.palette.error.main};
`,ReviewFieldQA=({fieldName:et,isSubField:tt,sectionFields:rt,valuesToDisplay:nt,validateField:lt})=>{const{values:ut}=useFormikContext(),{notProvided:dt}=sharedContent.generic.label,pt=mt=>!!([null,""].includes(mt)||Array.isArray(getIn$1(ut,et))&&getIn$1(ut,et).length===0),ht=getIn$1(ut,et);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[tt&&jsxRuntimeExports.jsx(ArrowLine$1,{children:jsxRuntimeExports.jsx(DownArrow$1,{})}),jsxRuntimeExports.jsxs(QuestionContainer$3,{"aria-label":`review-${rt[et]}`,isSubField:tt,children:[jsxRuntimeExports.jsx(Question$2,{isError:!lt(ht,et),children:rt[et]}),jsxRuntimeExports.jsx(Answer$2,{isError:!lt(ht,et),children:pt(ht)?dt:nt(ht,et)})]})]})},QclName=styled$1("div")`
  font-size: ${getRemSize(14)};
  line-height: 15px;
  margin-bottom: 20px;
  margin-left: 27px;
  &:last-child {
    margin-bottom: 0px;
  }
`,{title,noQclsGenerated,qclGenerationText}=sharedContent.reviewAndSubmit,ReviewQcl=({activeQcls:et,formContent:tt,customQclRules:rt,isLocked:nt})=>{const{values:lt,setFieldValue:ut}=useFormikContext(),dt=et.map(mt=>mt.name),pt=()=>{const mt=[];Object.values(tt).filter(Mt=>Mt.hasOwnProperty("integrationQCL")).reduce((Mt,vt)=>(Object.entries(vt.integrationQCL).forEach(Ot=>{const At=Ot[0];(Ot[1].includes("|")?Ot[1].split("|"):[Ot[1]]).forEach(zt=>Mt.push({fieldName:At,value:zt}))}),Mt),[]).forEach(Mt=>{rt(Mt.fieldName,lt)&&!mt.includes(Mt.value)&&!dt.includes(Mt.value)&&mt.push(Mt.value)}),ut("generatedQCLs",mt)};reactExports.useEffect(()=>{pt()},[]);const ht=lt.isAmendment?qclGenerationText(!0):qclGenerationText(!1);return jsxRuntimeExports.jsx(ReviewBox,{title,subtitle:ht,isLocked:nt,children:lt.hasOwnProperty("generatedQCLs")&&lt.generatedQCLs.length?lt.generatedQCLs.map(mt=>jsxRuntimeExports.jsx(QclName,{"aria-label":`review-${mt}`,dangerouslySetInnerHTML:{__html:mt}},mt)):jsxRuntimeExports.jsx(QclName,{children:noQclsGenerated},noQclsGenerated)})},TRIAGE="triage",mapValueToRefData=(et,tt)=>{const rt=tt.filter(nt=>nt.id===et);return rt.length?rt[0].name:"-"},painScoreOptions=[...Array(10).keys()].map(et=>{const tt=(et+1).toString();return{label:tt,value:tt}}),OWN_TRANSPORT="Own Transport",RED_CROSS="Red Cross",STRETCHER_AMBULANCE="Stretcher Ambulance",WALKER_AMBULANCE="Walker Ambulance",DVA_TRANSPORT="DVA Transport",GENESIS_BUS="Genesis Bus",CANCER_COUNCIL_BUS="Cancer Council Bus",transportOptions=[OWN_TRANSPORT,RED_CROSS,STRETCHER_AMBULANCE,WALKER_AMBULANCE,DVA_TRANSPORT,GENESIS_BUS,CANCER_COUNCIL_BUS],QLDTransportOptions=[GENESIS_BUS,CANCER_COUNCIL_BUS],PFC_DONE="PFC Done",BOOK_PFC="Book PFC",BOOKED_PFC="Booked PFC",REFUSED="Refused",NOT_APPROPRIATE="Not appropriate per RO",NA="N/A",pelvicFitnessOptions=[{label:PFC_DONE,value:PFC_DONE},{label:BOOK_PFC,value:BOOK_PFC},{label:BOOKED_PFC,value:BOOKED_PFC},{label:REFUSED,value:REFUSED},{label:NOT_APPROPRIATE,value:NOT_APPROPRIATE},{label:NA,value:NA}],PART_OF_TRIAGE_CALL="Identified as part of Triage call",REVIEW_PRIOR_TO_CT="Identified and addressed at F2F review prior to CT",factorsIdentifiedOptions=[{label:PART_OF_TRIAGE_CALL,value:PART_OF_TRIAGE_CALL},{label:REVIEW_PRIOR_TO_CT,value:REVIEW_PRIOR_TO_CT}],content={malnutritionRisk:{fields:{nurseLocation:"QCL Location*",unintentionalWeightLoss:"Recent Unintentional Weight Loss",hasDecreasedAppetite:"Decreased Appetite"},infoHelpers:{malnutritionScreeningToolQCL:'Selecting "Yes" will create QCL: Malnutrition Screening Tool'},integrationQCL:{unintentionalWeightLoss:"Malnutrition Screening Tool",hasDecreasedAppetite:"Malnutrition Screening Tool"}},cognitiveImpairmentRisk:{fields:{isAlertAndOrientated:"Alert and Orientated",hasAlteredCognitiveState:"Altered Cognitive State"},infoHelpers:{isAlertAndOrientatedQCL:'Selecting "No" will create QCLs: Cognitive Assessment and Falls Risk Assessment',hasAlteredCognitiveStateQCL:'Selecting "Yes" will create QCLs: Cognitive Assessment and Falls Risk Assessment'},integrationQCL:{isAlertAndOrientated:"Falls Risk Assessment|Cognitive Assessment",hasAlteredCognitiveState:"Falls Risk Assessment|Cognitive Assessment"}},pain:{fields:{hasCurrentPain:"Is the patient currently in pain?",painScore:"Pain Score",isAbleToLieFlat:"Is the patient able to lie flat?",isAbleToClimbStairs:"Is the patient able to climb stairs?"},infoHelpers:{painAssessmentQCL:"Selecting a value of 4 and above will create QCL: PQRST Pain Assessment",significantPMHx:"If significant PMHx - Please document in Additional Notes"},tableTitles:{areYouInPain:"Are you currently in pain?",pleaseSpecify:"Please specify"},integrationQCL:{painScore:"PQRST Pain Assessment"}},transportMode:{fields:{transportMode:"Transport Mode",otherTransport:"Other modes of transport"},infoHelpers:{cancerCouncilQCL:"Selecting Cancer Council Bus will create QCL: Book Cancer Council Bus",DVAQCL:"Selecting DVA Transport will create QCL: Book DVA Car",genesisBusQCL:"Selecting Genesis Bus will create QCL: Assess Eligibility for Genesis Bus"},tableTitles:{doYouNeedTransport:"Do you require transportation assistance?",assistanceReason:"Reason assistance required",ambTitle:"Do you have an ambulance membership?",ambNumberTitle:"Ambulance membership number"},integrationQCL:{dvaTransport:"Book DVA Car",genesisBus:"Assess Eligibility for Genesis Bus",cancerCouncilBus:"Book Cancer Council Bus"}},socialCircumstances:{fields:{socialConsiderations:"Social Considerations"},livingSituation:{fields:{livesAlone:"Does the patient live alone?",livesWith:"Who do they live with?",isCarer:"Are they a carer for anyone?",carerSpecification:"Please specify",usualResidence:"Type of usual residence",usualResidenceSpecify:"Please specify",staysAtUsualResidence:"Is patient staying at usual residence for treatment?",otherResidence:"Where will they be staying and is any follow up required?"}},careRequirements:{fields:{needsAssistanceAdls:"Assistance with ADLs required?",assistance:"Select all that apply",assistanceSpecify:"Please specify",hasFamilyOrFriend:"Do they have family or friends who can provide assistance if required?",familyOrFriendSpecification:"Please specify",existingSupportService:"Do they have existing support services currently in place?",existingSupportSpecification:"Please specify",hasSensoryImpairment:"Do they have any sensory impairments e.g. vision, hearing, circulation?",sensoryImpairments:"Select all that apply",sensoryImpairmentsSpecification:"Please specify"},infoHelpers:{vision:'Selecting "Vision" will create Alert: Visually Impaired',hearing:'Selecting "Hearing" will create Alert: Hearing Impaired'},integrationQCL:{vision:"visually impaired",hearing:"hearing impaired"}},socialMedicalHistory:{fields:{englishSecondLanguage:"Is English a second language for patient? ",primaryLanguage:"Primary language",requireInterpreter:"Do they require an interpreter?",otherInformation:"Other information (as required)"},infoHelpers:{requireInterpreter:'Selecting "Yes" will create Alert: Interpreter'},integrationQCL:{requireInterpreter:"interpreter"}},tableTitles:{doYouDrink:"Do you drink alcohol?",drinkingFrequency:"How frequently do you drink?",doYouSmoke:"Do you or have you ever smoked?",yearsSmoking:"Smoking history (Years)",howFrequentlySmoking:"How frequently do/did you smoke?",whenStoppedSmoking:"Date stopped smoking",assistAccommodation:"Do you require accommodation assistance?",diabeticTitle:"Diabetic",ulcerTitle:"Existing wound/ulcer",occupationTitle:"Occupation",heritageTitle:"ATSI status"}},wellbeingScreen:{fields:{hasPatientCarerConcern:"Patient/Carer Concern"},helperBox:{heading:'Please document details in "additional notes"; the following may be used to guide your discussion',questions:["How have you been managing since your diagnosis?","What support mechanisms do you have in place?"]},tableTitles:{doYouHaveWellbeingIssues:"Do you have any wellbeing or mental health issues?",distressThermometerScore:"Distress Thermometer Score"},integrationQCL:{requiresWellbeingMxPlan:"Wellbeing Mx Plan"}},summary:{fields:{pelvicFitness:"Pelvic Fitness",hasHighRiskFactors:"High Risk Factors Identified",howFactorsWereIdentified:"How Were Those Factors Identified"},infoHelpers:{lowRisk:"Low Risk Patient",proceedToRT:"Proceed with CHO to RT",ensureReview:"Ensure F2F review booked prior to CT Sim"},tableValues:{chartCheckTable:{previousRadiationTreatment:{page:"Basic Information",title:"",value:"Previous Radiation Treatment"},anticancerDrugs:{page:"Chemotherapy Risks",title:"",value:"Concurrent anticancer drugs"},chemoPastWeek:{page:"Chemotherapy Risks",title:"",value:"Chemotherapy in the last 7 days"},cied:{page:"Implanted medical devices",title:"Cardiac implanted electronic device (CIED)"},venousAccessType:{page:"Implanted medical devices",title:"Venous Access Type"},otherDevices:{page:"Implanted medical devices",title:"Other (if not listed above)"},infectiousDisease:{page:"Infectious Risk",title:"Infectious Disease"},outsideWaLastTwelveMonths:{page:"Infectious Risk",title:"Inpatient outside WA in last 12 months"},mroInfection:{page:"Infectious Risk",title:"MRO infection"},fallLastTwelveMonths:{page:"Falls Risk",title:"",value:"Fall in last 12 months"},safetyConcernsMobility:{page:"Falls Risk",title:"",value:"Safety concerns with mobility"},treatmentOverHalfHour:{page:"Pressure Injury",title:"",value:"Treatment length >30 minutes"},currentInpatient:{page:"Pressure Injury",title:"",value:"Current Inpatient"},requiresMaskCast:{page:"Pressure Injury",title:"",value:"Requires mask or cast"},existingPressureInjuryWound:{page:"Pressure Injury",title:"",value:"Existing pressure injury/wound"},staffConcern:{page:"Wellbeing",title:"",value:"Staff concern"},anxietyClaustrophobia:{page:"Wellbeing",title:"",value:"Anxiety/claustrophobia"},hasCurrentAcd:{page:"Advanced Care Directive/NFR",title:"",value:"Current advanced care directive"},hasCurrentResusMxPlan:{page:"Advanced Care Directive/NFR",title:"",value:"Current resus MX plan/NFR"},allergy:{page:"Allergies",title:"Allergy/sensitivity"}},triageTable:{unintentionalWeightLoss:{page:"Malnutrition Risk",title:"",value:"Unintentional weight loss"},hasDecreasedAppetite:{page:"Malnutrition Risk",title:"",value:"Decreased appetite"},isAlertAndOrientated:{page:"Cognitive Impairment Risk",title:"",value:"Not alert and orientated"},hasAlteredCognitiveState:{page:"Cognitive Impairment Risk",title:"",value:"Altered cognitive state"},hasCurrentPain:{page:"Pain",title:"",value:"Has current pain"},painScore:{page:"Pain",title:"Pain score"},isAbleToLieFlat:{page:"Pain",title:"",value:"Patient is unable to lie flat"},isAbleToClimbStairs:{page:"Pain",title:"",value:"Patient is unable to climb stairs"},transport:{page:"Transport"},hasPatientCarerConcern:{page:"Wellbeing",title:"",value:"Patient/carer concern"},hasSensoryImpairment:{page:"Social Circumstances",title:"",value:"Has sensory impairment"},sensoryImpairments:{page:"Social Circumstances",title:"Sensory impairments"},englishSecondLanguage:{page:"Social Circumstances",title:"",value:"English is second language"},requireInterpreter:{page:"Social Circumstances",title:"",value:"Interpreter required"}},noChartCheckMessage:"Initial Chart Check is still in progress. Please complete the assessment to identify any risks.",emptyMessage:"No risks identified from Initial Chart Check and Initial Triage"}}},malnutritionFields=Object.keys(content.malnutritionRisk.fields);Object.keys(content.cognitiveImpairmentRisk.fields);Object.keys(content.pain.fields);Object.keys(content.transportMode.fields);Object.keys(content.socialCircumstances.fields);const wellbeingTriageFields=Object.keys(content.wellbeingScreen.fields);Object.keys(content.summary.fields);const stepperTitle="INITIAL TRIAGE",reviewInfo=[{icon:()=>React$4.createElement(PersonOutlinedIcon,{color:"info"}),label:"Patient reported"},{icon:SvgNurseReviewedIcon,label:"Nurse reviewed and edited"}],valueRequired="This field is required",positiveNumber="Number must be positive",transportRequired="Please select or specify at least one transport mode",fieldsToValidateOnContinue={[SECTIONS.MALNUTRITION_RISK]:[...Object.keys(content.malnutritionRisk.fields)],[SECTIONS.COGNITIVE_IMPAIRMENT_RISK]:[...Object.keys(content.cognitiveImpairmentRisk.fields)],[SECTIONS.PAIN]:[...Object.keys(content.pain.fields)],[SECTIONS.TRANSPORT_MODE]:[...Object.keys(content.transportMode.fields)],[SECTIONS.SOCIAL_CIRCUMSTANCES]:[...Object.keys(content.socialCircumstances.fields)],[SECTIONS.WELLBEING_SCREEN]:[...Object.keys(content.wellbeingScreen.fields)],[SECTIONS.SUMMARY]:[...Object.keys(content.summary.fields)],[SECTIONS.REVIEW_AND_SUBMIT]:[]};var SensoryImpairments=(et=>(et.vision="Vision",et.hearing="Hearing",et.circulation="Circulation",et))(SensoryImpairments||{});const sensoryImpairmentsOptions=["Vision","Hearing","Circulation"],assistanceOptions=["Cooking","Cleaning","Dressing","Eating","Self care e.g. showering","Shopping","Household chores/gardening","Medication or symptom management","Other"],ReviewSection=({sectionName:et,link:tt,fieldsToDisplay:rt,valuesToDisplay:nt,validateField:lt,subFields:ut,isLocked:dt})=>{const{errors:pt}=useFormikContext(),{fields:ht}=content[et],{sectionTitle:mt}=routes$1[et],xt=Mt=>{for(const vt of Object.keys(Mt))if(pt[vt])return!0;return!1};return jsxRuntimeExports.jsx(ReviewBox,{title:mt,error:xt(ht),link:tt,isLocked:dt,children:rt.map(Mt=>jsxRuntimeExports.jsx(ReviewFieldQA,{fieldName:Mt,sectionFields:ht,valuesToDisplay:nt,validateField:lt,isSubField:ut&&ut.includes(Mt)}))})},ArrowLine=styled$1("div")`
  height: 0px;
  border-bottom: solid 2px transparent;
  box-shadow: 0px 2px 4px rgba(46, 46, 46, 0.2);
  border-radius: 2px;
  position: relative;
  z-index: 1;
`,DownArrow=styled$1("div")`
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 15px solid white;
  margin-left: 75%;
  z-index: 2;
`,GrayBackground=styled$1("div")`
  background: ${et=>et.theme.palette.grey[100]};
  padding: 20px 0px;
`,ReviewSubFields=({children:et})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ArrowLine,{children:jsxRuntimeExports.jsx(DownArrow,{})}),jsxRuntimeExports.jsx(GrayBackground,{children:et})]}),StyledSideBar=styled$1("div")`
  align-items: center;
`,StyledLink$2=styled$1(Link$2)`
  text-decoration: none;
  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
`,StyledLinkContainer=styled$1(Stack$5)`
  padding: 0.5em;
  width: 80%;
  font-style: normal;
  font-weight: bold;
  font-size: smaller;
  line-height: 20px;
  color: black;
  align-items: center;
  width: 100%;
  margin: 6px 20px;
`,SideBar$1=({sidebarVariables:et,children:tt})=>{const rt="sidebar",{patientId:nt}=et;return jsxRuntimeExports.jsxs(StyledSideBar,{id:rt,children:[jsxRuntimeExports.jsx(StyledLink$2,{to:`/patient/${nt}/summary`,children:jsxRuntimeExports.jsxs(StyledLinkContainer,{direction:"row",gap:"20px",alignItems:"center","data-test-id":`${rt}-patient-summary-link`,children:[jsxRuntimeExports.jsx(PollOutlinedIcon,{color:"primary"}),jsxRuntimeExports.jsx("span",{children:"Patient Summary"})]})}),jsxRuntimeExports.jsx("div",{id:`${rt}-content`,children:tt})]})};styled$1("div")`
  border-left: 1px solid rgba(0, 0, 0, 0.2);
`;const GET_ACTIVE_QCLS=gql`
  query Tasks($patientId: ID!, $isAmendment: Boolean!) {
    activeTasks(patientId: $patientId, isAmendment: $isAmendment) {
      id
      name
    }
  }
`,GET_ALLOWED_LOCATIONS=gql`
  query Locations($roles: [String]!, $hasOther: Boolean!) {
    allowedLocations(roles: $roles, hasOther: $hasOther) {
      id
      name
      rolesUsedBy
      __typename
    }
  }
`,transformEmptyString=et=>et||"-",formatDtRating=et=>et&&(et.distressRating||et.distressRating>=0)?`${et.distressRating}/10`:null,getLastUpdateUser=(et,tt)=>{var rt;return(rt=et.find(nt=>nt.fieldName===tt))==null?void 0:rt.lastUpdateUser},choiceToStringOptions={true:"Yes",false:"No",null:"-",YES:"Yes",NO:"No",UNSURE:"Unsure"},choiceToBooleanOptions={YES:!0,NO:!1,UNSURE:null},getRecentlyCreated=et=>et.sort((rt,nt)=>Number(rt.id)>Number(nt.id)?-1:1)[0],AdvancedCareDirective=({updateAssessment:et,lastUpdateUserData:tt})=>{const{setFieldTouched:rt,setFieldValue:nt,values:lt}=useFormikContext(),{hasCurrentAcd:ut,acdInfoRequested:dt,hasCurrentResusMxPlan:pt}=preCtChartCheckContent.advancedCareDirective.fields,{hasCurrentAcdQCL:ht,hasCurrentResusMxPlanQCL:mt}=preCtChartCheckContent.advancedCareDirective.infoHelpers;return reactExports.useEffect(()=>{lt.hasCurrentAcd===!0&&(nt("acdInfoRequested",null),rt("acdInfoRequested",!1))},[lt.hasCurrentAcd]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:ut,fieldName:"hasCurrentAcd",children:[jsxRuntimeExports.jsx(Field,{name:"hasCurrentAcd",component:ToggleButtonGroupField,label:ut,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(tt,"hasCurrentAcd")}),lt.hasCurrentAcd===!0&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(HelperMessage,{fieldName:"hasCurrentAcd",fieldText:ht,helperType:"info"})})]}),lt.hasCurrentAcd===!1&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:dt,fieldName:"acdInfoRequested",children:jsxRuntimeExports.jsx(Field,{name:"acdInfoRequested",component:ToggleButtonGroupField,label:dt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:(lt.acdInfoRequested===!0||lt.acdInfoRequested===!1)&&getLastUpdateUser(tt,"acdInfoRequested")})}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:pt,fieldName:"hasCurrentResusMxPlan",children:[jsxRuntimeExports.jsx(Field,{name:"hasCurrentResusMxPlan",component:ToggleButtonGroupField,label:pt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(tt,"hasCurrentResusMxPlan")}),lt.hasCurrentResusMxPlan===!0&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(HelperMessage,{fieldName:"hasCurrentResusMxPlan",fieldText:mt,helperType:"info"})})]})]})},ReactionExperienced=styled$1("div")`
  margin-top: 24px;
`,StyledField=styled$1(Field)`
  max-width: 40px;
`,AllergyCard$1=({index:et})=>{const{values:tt,setFieldValue:rt}=useFormikContext(),nt=reactExports.useContext(FormContext$1),{updateAllergy:lt,createReaction:ut,deleteReaction:dt,updateReaction:pt}=nt.mutations,{id:ht,allergyType:mt,pcccReaction:xt,lastUpdateUser:Mt}=tt.pcccAllergy[et],{allergies:vt}=preCtChartCheckContent,{fields:Ot,options:At,actionLabels:Rt}=vt,{pcccAllergy:zt,pcccReaction:Tt}=Ot,Ct=async(qt,Nt)=>{const{data:Yt}=await lt({variables:{id:ht,[qt]:Nt}});return Yt.updatePcccAllergy.preCtChartCheck.pcccAllergy.reduce((Qt,Bt)=>(Qt.map((Ft,$t)=>{Ft.id===Bt.id&&(Qt[$t]=Bt)}),Qt),lodash.cloneDeep(tt.pcccAllergy))},It=async()=>{const{data:qt}=await ut({variables:{allergyId:ht,baseValue:"",otherValue:""}}),Nt=qt.createPcccReaction.preCtChartCheck.pcccAllergy[et].pcccReaction;return getRecentlyCreated(Nt)},Dt=qt=>{dt({variables:{id:qt}})},kt=qt=>{rt(`pcccAllergy[${et}].lastUpdateUser`,"nurse"),qt!=="Food"&&(!xt||xt.length===0)&&It().then(Nt=>{rt(`pcccAllergy[${et}].pcccReaction[0]`,Nt)}),qt==="Food"&&xt&&xt.length>0&&(lt({variables:{id:ht,additionalDetails:""}}),xt.forEach(Nt=>{Dt(Nt.id)}),rt(`pcccAllergy[${et}].pcccReaction`,[]))};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:zt,fieldName:`pcccAllergy[${et}].allergyType`,children:jsxRuntimeExports.jsx(StyledField,{component:SelectFieldBase,width:"500px",name:`pcccAllergy[${et}].allergyType`,options:At.allergy,placeholder:sharedContent.generic.label.selectValue,updateMutation:qt=>Ct("allergyType",qt),conditionalHandleChange:kt,lastUpdateUser:Mt})}),displayTextFieldOptionsForAllergy.includes(mt)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldName:`pcccAllergy[${et}].additionalDetails`,children:jsxRuntimeExports.jsx(Field,{component:TextAreaField,width:"500px",name:`pcccAllergy[${et}].additionalDetails`,placeholder:sharedContent.generic.label.specifyValue,updateMutation:qt=>Ct("additionalDetails",qt)})}),xt&&jsxRuntimeExports.jsx(ReactionExperienced,{children:jsxRuntimeExports.jsx(SelectFieldGroup,{name:`pcccAllergy[${et}].pcccReaction`,addButtonText:Rt.addReaction,createMutation:It,deleteMutation:Dt,updateMutation:pt,label:Tt,options:At.reaction,selectPlaceholder:sharedContent.generic.label.selectValue,selectFieldName:"baseValue",textFieldName:"otherValue",textFieldOptionsForOther:displayTextFieldOptionsForAllergy,values:xt,userIconFieldName:"lastUpdateUser",userTypeValue:"nurse",width:"500px"})})]})]})},CardGroupFooter=styled$1("div")`
  display: flex;
  justify-content: flex-end;
  padding-top: 28px;
`,AllergyCardGroupField=({name:et,label:tt,actionButtonLabel:rt,assessmentId:nt})=>{const{values:lt}=useFormikContext(),ut=reactExports.useContext(FormContext$1),{createAllergy:dt,deleteAllergy:pt}=ut.mutations;return jsxRuntimeExports.jsx(FieldArray,{name:et,children:({push:ht,remove:mt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lt[et].map((xt,Mt)=>jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Field,{name:`${et}[${Mt}]`,as:FormCard,id:`${et}[${Mt}]-form-card`,remove:!(lt[et].length<=1),heading:`${tt} ${Mt+1}`,onClick:()=>{const{id:vt}=lt[et][Mt];pt({variables:{id:vt}}),mt(Mt)},children:jsxRuntimeExports.jsx(AllergyCard$1,{index:Mt})})},Mt)),jsxRuntimeExports.jsx(CardGroupFooter,{children:jsxRuntimeExports.jsx(ActionButton,{fieldId:et,type:"add",label:rt,onClick:()=>{dt({variables:{assessmentId:nt,allergyType:"",additionalDetails:""}}).then(({data:xt})=>{const Mt=xt.createPcccAllergy.preCtChartCheck.pcccAllergy;ht(getRecentlyCreated(Mt))})}})})]})})},Allergies=({assessmentId:et,handleMutation:tt,lastUpdateUserData:rt})=>{const{setFieldValue:nt,setFieldTouched:lt,values:ut}=useFormikContext(),dt=reactExports.useContext(FormContext$1),{createAllergy:pt,deleteAllergy:ht}=dt.mutations,{hasPatientAllergies:mt,pcccAllergy:xt}=preCtChartCheckContent.allergies.fields,{infoHelpers:Mt,actionLabels:vt}=preCtChartCheckContent.allergies,Ot=At=>{At===!0&&ut.pcccAllergy.length===0&&pt({variables:{assessmentId:et,allergyType:"",additionalDetails:""}}).then(({data:Rt})=>{const zt=Rt.createPcccAllergy.preCtChartCheck.pcccAllergy[0];nt("pcccAllergy",[zt])}),At===!1&&ut.pcccAllergy.length>0&&(ut.pcccAllergy.forEach(Rt=>{ht({variables:{id:Rt.id}})}),nt("pcccAllergy",[]),lt("pcccAllergy",[]))};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:mt,fieldName:"hasPatientAllergies",children:[jsxRuntimeExports.jsx(Field,{name:"hasPatientAllergies",component:ToggleButtonGroupField,label:mt,options:yesNKAOptions,handleMutation:tt,conditionalHandleChange:Ot,lastUpdateUser:getLastUpdateUser(rt,"hasPatientAllergies")}),ut.hasPatientAllergies===!1&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"hasPatientAllergies",fieldText:Mt.allergyAlert,helperType:"info"})]}),ut.hasPatientAllergies===!0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(AllergyCardGroupField,{name:"pcccAllergy",label:xt,actionButtonLabel:vt.addAllergy,assessmentId:et})]})]})},BasicInformation=({allowedLocations:et,handleMutation:tt,healthAssessmentData:rt,lastUpdateUserData:nt})=>{const{nurseLocation:lt,patientIdentificationCheck:ut,patientHeight:dt,patientWeight:pt,previousRadiationTreatment:ht}=preCtChartCheckContent.basicInformation.fields,{typeOfCondition:mt}=preCtChartCheckContent.basicInformation.tableTitles;let xt,Mt;rt.healthAssessment&&(xt=choiceToBooleanOptions[String(rt.healthAssessment.previousCancer)],Mt=choiceToBooleanOptions[String(rt.healthAssessment.otherRadiotherapy)]);const vt=Rt=>{const zt=parseInt(Rt.treatmentRawDay),Tt=parseInt(Rt.treatmentRawMonth),Ct=parseInt(Rt.treatmentRawYear);let It="-";return(zt||Tt||Ct)&&(It=`${zt>0?zt.toString().padStart(2,"0"):"--"}/${Tt>0?Tt.toString().padStart(2,"0"):"--"}/${Ct>0?Ct.toString().padStart(2,"0"):"----"}`),It};let Ot=[];if(xt){const Rt=rt.treatmentTypeRefData,zt=rt.healthAssessment.cancer.flatMap(Tt=>Tt.treatment.filter(It=>{const Dt=Rt.find(kt=>kt.id===It.treatmentType);return Dt&&Dt.name===TREATMENT_TYPES.RADIATION_THERAPY}).map(It=>{const Dt={title:mt,value:transformEmptyString(Tt.cancerType)},kt=previousRadiationTreatmentTableFields.slice(1).map(qt=>{let Nt=transformEmptyString(It[qt.fieldName]);return qt.fieldName==="treatmentDate"&&(Nt=vt(It)),{title:qt.title,value:Nt}}).filter(qt=>qt.value!=="-");return kt.unshift(Dt),kt}));Ot=Ot.concat(zt)}if(Mt){const Rt=rt.healthAssessment.otherRadiotherapyConditions.map(zt=>previousRadiationTreatmentTableFields.map(Tt=>{let Ct=transformEmptyString(zt[Tt.fieldName]);return Tt.fieldName==="treatmentDate"&&(Ct=vt(zt)),{title:Tt.title,value:Ct}}).filter(Tt=>Tt.value!=="-"));Ot=Ot.concat(Rt)}const At=et.reduce((Rt,zt)=>(zt.rolesUsedBy.includes("Nurse")&&Rt.push({label:zt.name,value:zt.id}),Rt),[]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:lt,fieldName:"nurseLocation",children:jsxRuntimeExports.jsx(Field,{name:"nurseLocation",component:SelectFieldBase,options:At,placeholder:sharedContent.generic.label.selectValue,updateMutation:Rt=>{tt("nurseLocation",Rt)},lastUpdateUser:getLastUpdateUser(nt,"nurseLocation")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:ut,fieldName:"patientIdentificationCheck",children:jsxRuntimeExports.jsx(Field,{name:"patientIdentificationCheck",component:ToggleButtonGroupField,label:ut,options:yesNoOptions$2,handleMutation:tt,lastUpdateUser:getLastUpdateUser(nt,"patientIdentificationCheck")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:dt,fieldName:"patientHeight",children:jsxRuntimeExports.jsx(Field,{component:InputField$1,name:"patientHeight",label:dt,units:"CM",width:"72px",handleMutation:tt,type:"number",lastUpdateUser:getLastUpdateUser(nt,"patientHeight")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:pt,fieldName:"patientWeight",children:jsxRuntimeExports.jsx(Field,{component:InputField$1,name:"patientWeight",label:pt,units:"KG",width:"72px",handleMutation:tt,type:"number",lastUpdateUser:getLastUpdateUser(nt,"patientWeight")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:ht,fieldName:"previousRadiationTreatment",children:jsxRuntimeExports.jsx(Field,{name:"previousRadiationTreatment",component:ToggleButtonGroupField,label:ht,options:yesNoOptions$2,handleMutation:tt,lastUpdateUser:getLastUpdateUser(nt,"previousRadiationTreatment")})}),Ot.length>0&&jsxRuntimeExports.jsx(InfoCard,{title:"Previous Radiation Treatment",subTitle:"(Patient reported)",rowDetails:Ot})]})},ChemotherapyRisk=({handleMutation:et,healthAssessmentData:tt,lastUpdateUserData:rt})=>{const{values:nt}=useFormikContext(),{anticancerDrugs:lt,chemoPastWeek:ut}=preCtChartCheckContent.chemoRisk.fields,{typeOfCondition:dt,typeOfTreatment:pt,dateOfLastTreatment:ht,treatmentStageTitle:mt,doctorTitle:xt,nameOfClinic:Mt}=preCtChartCheckContent.chemoRisk.tableTitles,vt='Selecting "Yes" will create QCL: Cytotoxic Mx Plan',Ot='Selecting "Yes" will create Alert: Cytotoxic precautions';let At;tt.healthAssessment&&(At=choiceToBooleanOptions[String(tt.healthAssessment.previousCancer)]);let Rt=[];if(At===!0){const zt=tt.treatmentStageRefData,Tt=tt.treatmentTypeRefData;Rt=tt.healthAssessment.cancer.flatMap((Ct,It)=>Ct.treatment.filter(kt=>{const qt=Tt.find(Nt=>Nt.id===kt.treatmentType);return qt&&qt.name!==TREATMENT_TYPES.RADIATION_THERAPY}).map((kt,qt)=>{var $t;const Nt=($t=zt.find(jt=>jt.id===kt.stage))==null?void 0:$t.name,Yt=Tt.find(jt=>jt.id===kt.treatmentType),Kt=Yt&&kt.other?`${Yt.name}: ${kt.other}`:transformEmptyString(Yt==null?void 0:Yt.name),Jt=[{title:`${dt} ${It+1}`,value:Ct.cancerType},{title:`${pt} ${qt+1}`,value:Kt}],Qt=parseInt(kt.treatmentRawDay),Bt=parseInt(kt.treatmentRawMonth),Ft=parseInt(kt.treatmentRawYear);return(Qt||Bt||Ft)&&Jt.push({title:ht,value:`${Qt>0?Qt.toString().padStart(2,"0"):"--"}/${Bt>0?Bt.toString().padStart(2,"0"):"--"}/${Ft>0?Ft.toString().padStart(2,"0"):"----"}`}),Nt&&Jt.push({title:mt,value:Nt}),kt.doctor&&Jt.push({title:xt,value:kt.doctor}),kt.hospital&&Jt.push({title:Mt,value:kt.hospital}),Jt}))}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:lt,fieldName:"anticancerDrugs",children:[jsxRuntimeExports.jsx(Field,{name:"anticancerDrugs",component:ToggleButtonGroupField,label:lt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"anticancerDrugs")}),nt.anticancerDrugs===!0&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:lt,fieldText:vt,helperType:"info"})]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:ut,fieldName:"chemoPastWeek",children:[jsxRuntimeExports.jsx(Field,{name:"chemoPastWeek",component:ToggleButtonGroupField,label:ut,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"chemoPastWeek")}),nt.chemoPastWeek===!0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperMessage,{fieldName:ut,fieldText:vt,helperType:"info"}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:ut,fieldText:Ot,helperType:"info"})]})]}),At===!0&&Rt.length>0&&jsxRuntimeExports.jsx(InfoCard,{title:"Patient previous cancer treatment/s",subTitle:"(Patient reported)",rowDetails:Rt})]})},FallsRisk=({handleMutation:et,healthAssessmentData:tt,lastUpdateUserData:rt})=>{const{values:nt}=useFormikContext(),{fallLastTwelveMonths:lt,safetyConcernsMobility:ut}=preCtChartCheckContent.fallsRisk.fields,{walkingDeviceTitle:dt}=preCtChartCheckContent.fallsRisk.tableTitles,pt=preCtChartCheckContent.fallsRisk.infoHelpers.fallsRiskQCLMessage;let ht,mt;tt.healthAssessment&&(ht=choiceToBooleanOptions[String(tt.healthAssessment.fallen)],mt=choiceToBooleanOptions[String(tt.healthAssessment.mobilityAid)]);const xt=[];if(mt===!0){const Mt=tt.healthAssessment.mobilityAids,vt=tt.mobilityAidRefData;xt.push(Mt.map((Ot,At)=>{const Rt=Ot.other,zt=vt.find(It=>It.id===Ot.value),Tt=zt?zt.name:"-";return{title:`${dt} ${At+1}`,value:Rt||Tt}}))}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:lt,fieldName:"fallLastTwelveMonths",children:[jsxRuntimeExports.jsx(Field,{name:"fallLastTwelveMonths",component:ToggleButtonGroupField,label:lt,helperType:"error",options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"fallLastTwelveMonths")}),nt.fallLastTwelveMonths===!0&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:lt,fieldText:pt,helperType:"info"})]}),ht===!0&&jsxRuntimeExports.jsx(InfoCard,{title:"Fall in the last 12 months",subTitle:"(Patient reported)",rowDetails:[[{title:"Please specify: Fall in last 12 months",value:tt.healthAssessment.fallenReason}]]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:ut,fieldName:"safetyConcernsMobility",children:[jsxRuntimeExports.jsx(Field,{name:"safetyConcernsMobility",component:ToggleButtonGroupField,label:ut,helperType:"error",options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"safetyConcernsMobility")}),nt.safetyConcernsMobility===!0&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:lt,fieldText:pt,helperType:"info"})]}),mt===!0&&xt.length>0&&jsxRuntimeExports.jsx(InfoCard,{title:"Walking Devices",subTitle:"(Patient reported)",rowDetails:xt})]})},ImplantedDevices=styled$1("div")`
  margin-top: 60px;
`,Heading=styled$1("div")`
  color: ${et=>et.invalid?et.theme.palette.error.main:et.theme.palette.text.primary};
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 8px;
`,ImplantedMedicalDevices=({assessmentId:et,handleMutation:tt,preCtChartCheckData:rt})=>{const{setFieldValue:nt,setFieldTouched:lt,values:ut,touched:dt}=useFormikContext(),pt=reactExports.useContext(FormContext$1),{createAssessmentDevice:ht,deleteAssessmentDevice:mt,updateAssessmentDevice:xt}=pt.mutations,Mt=ut.otherNotListed.filter(Ht=>Ht.name!==""),{subSection:vt,fields:Ot,infoHelpers:At,options:Rt,parentField:zt}=preCtChartCheckContent.implantedMedicalDevices,{hasImplantedMedicalDevice:Tt,cied:Ct,venousAccessType:It,otherImplantedDevices:Dt,otherNotListed:kt}=Ot,qt=[...ut.cied,...ut.venousAccessType,...ut.otherImplantedDevices,...Mt],Nt=[dt.cied,dt.venousAccessType,dt.otherImplantedDevices,dt.otherNotListed],Yt=ut.hasImplantedMedicalDevice===!0&&qt.length===0&&Nt.includes(!0),{lastUpdateUser:Kt,implantedMedicalDevice:Jt}=rt,Qt=async(Ht,Gt)=>await ht({variables:{assessmentId:et,deviceField:Ht,name:Gt}}),Bt=Ht=>{mt({variables:{id:Ht}})},Ft=Ht=>{let Gt="";const Zt=Jt.filter(Xt=>Xt.deviceField===Ht);return Zt.length>0&&(Gt=Zt.some(Xt=>Xt.lastUpdateUser==="nurse")?"nurse":"patient"),Gt},$t=Ht=>{const Gt=["cied","venousAccessType","otherImplantedDevices","otherNotListed"],Zt=[...ut.cied,...ut.venousAccessType,...ut.otherImplantedDevices,...ut.otherNotListed];Ht===!1&&(Zt.map(Xt=>Bt(Xt.id)),ut.otherNotListed&&Gt.forEach(Xt=>{nt(Xt,[]),lt(Xt,!1)}))},jt=(Ht,Gt)=>{tt(Ht,Gt),$t(Gt)},Wt=Ft("cied"),Ut=Ft("venousAccessType"),Vt=Ft("otherImplantedDevices");return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Tt,fieldName:"hasImplantedMedicalDevice",children:jsxRuntimeExports.jsx(Field,{name:"hasImplantedMedicalDevice",component:ToggleButtonGroupField,label:Tt,options:yesNoOptions$2,handleMutation:jt,lastUpdateUser:getLastUpdateUser(Kt,"hasImplantedMedicalDevice")})}),ut.hasImplantedMedicalDevice===!0&&jsxRuntimeExports.jsxs(ImplantedDevices,{children:[jsxRuntimeExports.jsx(Heading,{invalid:Yt,children:"Implanted Devices"}),jsxRuntimeExports.jsx("div",{children:vt.summary}),Yt===!0&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"implanted-devices",fieldText:vt.validation}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:Ct,fieldName:"cied",children:[jsxRuntimeExports.jsxs(StyledFieldRow,{children:[jsxRuntimeExports.jsx(Field,{name:"cied",component:MultiSelectButtonGroup,options:Rt.cied,label:Ct,createMutation:Qt,deleteMutation:Bt,parentField:zt}),jsxRuntimeExports.jsx(UserIcon,{userType:Wt})]}),ut.cied.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperMessage,{fieldName:"cied",fieldText:At.ciedAlert,helperType:"info"}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:"cied",fieldText:At.ciedQcl,helperType:"info"})]})]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:It,fieldName:"venousAccessType",children:[jsxRuntimeExports.jsxs(StyledFieldRow,{children:[jsxRuntimeExports.jsx(Field,{name:"venousAccessType",component:MultiSelectButtonGroup,options:Rt.venousAccessType,label:It,createMutation:Qt,deleteMutation:Bt,parentField:zt}),jsxRuntimeExports.jsx(UserIcon,{userType:Ut})]}),ut.venousAccessType.length>0&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"venousAccessType",fieldText:At.venousAccessType,helperType:"info"})]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:Dt,fieldName:"otherImplantedDevices",children:[jsxRuntimeExports.jsxs(StyledFieldRow,{children:[jsxRuntimeExports.jsx(Field,{name:"otherImplantedDevices",component:MultiSelectButtonGroup,options:Rt.otherImplantedDevices,label:Dt,createMutation:Qt,deleteMutation:Bt,parentField:zt}),jsxRuntimeExports.jsx(UserIcon,{userType:Vt})]}),ut.otherImplantedDevices.length>0&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"otherImplantedDevices",fieldText:At.otherImplantedDevices,helperType:"info"})]}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:kt,fieldName:"otherNotListed",children:jsxRuntimeExports.jsx(TextAreaFieldGroup,{name:"otherNotListed",deleteMutation:Bt,createMutation:Qt,updateMutation:xt,fieldText:At.otherNotListed,placeholder:sharedContent.generic.label.specifyValue,addButtonText:"Add another device",helperMessageType:"info",values:ut.otherNotListed,parentField:zt,textFieldValue:"name",textFieldName:"deviceField",userIconFieldName:"lastUpdateUser",userTypeValue:"nurse"})})]})]})},InfectiousRisk=({assessmentId:et,patient:tt,updateAssessment:rt,lastUpdateUserData:nt,healthAssessmentData:lt})=>{const{infectiousRisk:ut}=preCtChartCheckContent,{fields:dt,options:pt,infoHelpers:ht,actionLabels:mt,tableTitles:xt}=ut,{doctorClearanceTitle:Mt,mroInfectionTitle:vt}=xt,{hasInfectiousDisease:Ot,hasMroInfection:At,outsideWaLastTwelveMonths:Rt,infectiousDisease:zt,mroInfection:Tt}=dt,{infectiousDiseaseOptions:Ct,mroInfectionOptions:It}=pt,Dt=ht.infectiousRiskAlert,kt=ht.infectiousRiskQCL;let qt,Nt;lt.healthAssessment&&(qt=lt.healthAssessment.intractableInfectionOrIllnesses,Nt=lt.intractableInfectionOrIllnessesRefData);const{setFieldValue:Yt,setFieldTouched:Kt,values:Jt}=useFormikContext(),Qt=reactExports.useContext(FormContext$1),{createInfectiousDisease:Bt,createMroInfection:Ft,deleteInfectiousDisease:$t,deleteMroInfection:jt,updateInfectiousDisease:Wt,updateMroInfection:Ut}=Qt.mutations,{infectiousDisease:Vt,mroInfection:Ht}=Jt,Gt=async()=>{const{data:ir}=await Bt({variables:{assessmentId:et,baseValue:"",otherValue:""}}),dr=ir.createInfectiousDisease.preCtChartCheck.infectiousDisease;return getRecentlyCreated(dr)},Zt=async()=>{const{data:ir}=await Ft({variables:{assessmentId:et,baseValue:"",otherValue:""}}),dr=ir.createMroInfection.preCtChartCheck.mroInfection;return getRecentlyCreated(dr)},Xt=ir=>{$t({variables:{id:ir}})},er=ir=>{jt({variables:{id:ir}})},nr=ir=>{ir===!0&&Jt.infectiousDisease.length===0&&Bt({variables:{assessmentId:et,baseValue:"",otherValue:""}}).then(({data:dr})=>{const gr=dr.createInfectiousDisease.preCtChartCheck.infectiousDisease[0];Yt("infectiousDisease",[gr])}),ir===!1&&Jt.infectiousDisease.length>0&&(Jt.infectiousDisease.forEach(dr=>{$t({variables:{id:dr.id}})}),Yt("infectiousDisease",[]),Kt("infectiousDisease",void 0))},or=ir=>{ir===!0&&Jt.mroInfection.length===0&&Ft({variables:{assessmentId:et,baseValue:"",otherValue:""}}).then(({data:dr})=>{const gr=dr.createMroInfection.preCtChartCheck.mroInfection[0];Yt("mroInfection",[gr])}),ir===!1&&Jt.mroInfection.length>0&&(Jt.mroInfection.forEach(dr=>{jt({variables:{id:dr.id}})}),Yt("mroInfection",[]),Kt("mroInfection",void 0))},rr=({data:ir,title:dr,refData:gr})=>ir.filter(br=>br.value!=="").map((br,ar)=>{var Rr;const ur=br.other||((Rr=gr.find(wr=>wr.id===br.value))==null?void 0:Rr.name),xr=`${dr} ${ar+1}`,Mr=br.hasOwnProperty("doctorClearance"),Ar={title:Mt,value:choiceToStringOptions[String(br.doctorClearance)]},Ir={title:xr,value:ur};return Mr?[Ir,Ar]:Ir});let cr;return qt&&Nt&&qt.some(dr=>dr.value||dr.other)&&(cr=rr({data:qt,title:vt,refData:Nt})),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:Ot,fieldName:"hasInfectiousDisease",children:[jsxRuntimeExports.jsx(Field,{name:"hasInfectiousDisease",component:ToggleButtonGroupField,label:Ot,options:yesNoOptions$2,handleMutation:rt,conditionalHandleChange:nr,lastUpdateUser:getLastUpdateUser(nt,"hasInfectiousDisease")}),Jt.hasInfectiousDisease===!0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperMessage,{fieldName:"hasInfectiousDisease",fieldText:Dt,helperType:"info"}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:"hasInfectiousDisease",fieldText:kt,helperType:"info"})]})]}),Jt.hasInfectiousDisease===!0&&jsxRuntimeExports.jsx(SelectFieldGroup,{name:"infectiousDisease",addButtonText:mt.addInfectiousRisk,createMutation:Gt,deleteMutation:Xt,updateMutation:Wt,label:zt,options:Ct,selectPlaceholder:sharedContent.generic.label.selectValue,selectFieldName:"baseValue",textFieldName:"otherValue",textFieldOptionsForOther:displayTextFieldOptionsForOther,values:Vt,userIconFieldName:"lastUpdateUser",userTypeValue:"nurse",width:"500px"}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:At,fieldName:"hasMroInfection",children:[jsxRuntimeExports.jsx(Field,{name:"hasMroInfection",component:ToggleButtonGroupField,label:At,options:yesNoOptions$2,handleMutation:rt,conditionalHandleChange:or,lastUpdateUser:getLastUpdateUser(nt,"hasMroInfection")}),Jt.hasMroInfection===!0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperMessage,{fieldName:"hasMroInfection",fieldText:Dt,helperType:"info"}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:"hasMroInfection",fieldText:kt,helperType:"info"})]})]}),Jt.hasMroInfection===!0&&jsxRuntimeExports.jsx(SelectFieldGroup,{name:"mroInfection",addButtonText:mt.addMroInfection,createMutation:Zt,deleteMutation:er,updateMutation:Ut,label:Tt,options:It,selectPlaceholder:sharedContent.generic.label.selectValue,selectFieldName:"baseValue",textFieldName:"otherValue",textFieldOptionsForOther:displayTextFieldOptionsForOther,values:Ht,userIconFieldName:"lastUpdateUser",userTypeValue:"nurse",width:"500px"}),cr&&jsxRuntimeExports.jsx(InfoCard,{title:"Patient Reported",subTitle:"Health Assessment MRO infection",rowDetails:cr.length?[...cr]:noDataTableRow}),tt.userProfile?tt.userProfile.systemState===AustralianStates.WA&&jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:Rt,fieldName:"outsideWaLastTwelveMonths",children:[jsxRuntimeExports.jsx(Field,{name:"outsideWaLastTwelveMonths",component:ToggleButtonGroupField,label:Rt,helperType:"error",options:yesNoOptions$2,handleMutation:rt,lastUpdateUser:getLastUpdateUser(nt,"outsideWaLastTwelveMonths")}),Jt.outsideWaLastTwelveMonths===!0&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(HelperMessage,{fieldName:"outsideWaLastTwelveMonths",fieldText:kt,helperType:"info"})})]}):null]})},PressureInjury=({handleMutation:et,healthAssessmentData:tt,lastUpdateUserData:rt})=>{const{values:nt}=useFormikContext(),{treatmentOverHalfHour:lt,currentInpatient:ut,requiresMaskCast:dt,existingPressureInjuryWound:pt}=preCtChartCheckContent.pressureInjuryRisk.fields,{pressureInjuryAlert:ht,pressureInjuryQCL:mt}=preCtChartCheckContent.pressureInjuryRisk.infoHelpers,{activeInjuryReasonTitle:xt}=preCtChartCheckContent.pressureInjuryRisk.tableTitles;let Mt;return tt.healthAssessment&&(Mt=choiceToBooleanOptions[String(tt.healthAssessment.activeInjury)]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:lt,fieldName:"treatmentOverHalfHour",children:[jsxRuntimeExports.jsx(Field,{name:"treatmentOverHalfHour",component:ToggleButtonGroupField,label:lt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"treatmentOverHalfHour")}),nt.treatmentOverHalfHour===!0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperMessage,{fieldName:"treatmentOverHalfHour",fieldText:ht,helperType:"info"}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:"treatmentOverHalfHour",fieldText:mt,helperType:"info"})]})]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:ut,fieldName:"currentInpatient",children:[jsxRuntimeExports.jsx(Field,{name:"currentInpatient",component:ToggleButtonGroupField,label:ut,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"currentInpatient")}),nt.currentInpatient===!0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperMessage,{fieldName:"currentInpatient",fieldText:ht,helperType:"info"}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:"currentInpatient",fieldText:mt,helperType:"info"})]})]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:dt,fieldName:"requiresMaskCast",children:[jsxRuntimeExports.jsx(Field,{name:"requiresMaskCast",component:ToggleButtonGroupField,label:dt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"requiresMaskCast")}),nt.requiresMaskCast===!0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperMessage,{fieldName:"requiresMaskCast",fieldText:ht,helperType:"info"}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:"requiresMaskCast",fieldText:mt,helperType:"info"})]})]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:pt,fieldName:"existingPressureInjuryWound",children:[jsxRuntimeExports.jsx(Field,{name:"existingPressureInjuryWound",component:ToggleButtonGroupField,label:pt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"existingPressureInjuryWound")}),nt.existingPressureInjuryWound===!0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelperMessage,{fieldName:"existingPressureInjuryWound",fieldText:ht,helperType:"info"}),jsxRuntimeExports.jsx(HelperMessage,{fieldName:"existingPressureInjuryWound",fieldText:mt,helperType:"info"})]})]}),Mt===!0&&jsxRuntimeExports.jsx(InfoCard,{title:"Existing Pressure Injury/Wound",subTitle:"(Patient reported)",rowDetails:[[{title:xt,value:tt.healthAssessment.activeInjuryReason}]],itemSize:12})]})},Question$1=styled$1("div")`
  width: 50%;
  height: 40px;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value!==null&&et.value!==""?`${et.theme.palette.text.primary}`:`${et.theme.palette.error.main}`};
`,Answer$1=styled$1("div")`
  width: 50%;
  font-weight: bold;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value!==null&&et.value!==""?`${et.theme.palette.text.primary}`:`${et.theme.palette.error.main}`};
`,QuestionContainer$2=styled$1("div")`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 27px;
`,convertValueToLabel$8=(et,tt,rt,nt)=>{for(const lt of rt)if(lt.value===et)return lt.label;if(tt==="nurseLocation")return nt.filter(lt=>lt.id===et.toString())[0].name;if(tt==="patientHeight"&&et)return`${et}cm`;if(tt==="patientWeight"&&et)return`${et}kg`},renderQuestionRow$5=(et,tt,rt,nt,lt)=>jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt[et]}`,children:[jsxRuntimeExports.jsx(Question$1,{value:rt[et],children:tt[et]}),jsxRuntimeExports.jsx(Answer$1,{value:rt[et],children:["",null].includes(rt[et])?sharedContent.generic.label.notProvided:convertValueToLabel$8(rt[et],et,yesNoOptions$2,lt)})]},nt),ReviewBasicInfo=et=>{const{fields:tt,values:rt,error:nt,link:lt,allowedLocations:ut,isLocked:dt}=et;return jsxRuntimeExports.jsx(ReviewBox,{title:"Basic Information",error:nt,link:lt,isLocked:dt,children:Object.keys(tt).map((pt,ht)=>renderQuestionRow$5(pt,tt,rt,ht,ut))})},convertValueToLabel$7=(et,tt)=>{for(const rt of tt)if(rt.value===et)return rt.label},renderQuestionRow$4=(et,tt,rt,nt)=>jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt[et]}`,children:[jsxRuntimeExports.jsx(Question$1,{value:rt[et],children:tt[et]}),jsxRuntimeExports.jsx(Answer$1,{value:rt[et],children:rt[et]!==null?convertValueToLabel$7(rt[et],yesNoOptions$2):sharedContent.generic.label.notProvided})]},nt),ReviewChemoRisk=et=>{const{fields:tt,values:rt,error:nt,link:lt,isLocked:ut}=et;return jsxRuntimeExports.jsx(ReviewBox,{title:"Chemotherapy Risk",error:nt,link:lt,isLocked:ut,children:Object.keys(tt).map((dt,pt)=>renderQuestionRow$4(dt,tt,rt,pt))})},ArrayQuestion$2=styled$1("div")`
  width: 50%;
  height: 40px;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value&&et.value.length>0?`${tt=>tt.theme.palette.text.primary}`:`${tt=>tt.theme.palette.error.main}`};
`,ArrayAnswer$2=styled$1("div")`
  width: 50%;
  font-weight: bold;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value&&et.value.length>0?`${tt=>tt.theme.palette.text.primary}`:`${tt=>tt.theme.palette.error.main}`};
`,convertValueToLabel$6=(et,tt)=>{for(const nt of tt)if(nt.value===et)return nt.label;const rt=[];if(typeof et=="object")if(et.length>0){for(const nt of et)rt.push(nt.name);return rt.join(", ")}else return sharedContent.generic.label.notProvided},ReviewDevices=et=>{const{fields:tt,values:rt,error:nt,link:lt,isLocked:ut}=et,dt=[...rt.cied,...rt.venousAccessType,...rt.otherImplantedDevices,...rt.otherNotListed],pt=rt.hasImplantedMedicalDevice===!0&&dt.length===0;return jsxRuntimeExports.jsxs(ReviewBox,{title:"Implanted Medical Devices",error:nt,link:lt,isLocked:ut,children:[jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt.hasImplantedMedicalDevice}`,children:[jsxRuntimeExports.jsx(Question$1,{value:rt.hasImplantedMedicalDevice,children:tt.hasImplantedMedicalDevice}),jsxRuntimeExports.jsx(Answer$1,{value:rt.hasImplantedMedicalDevice,children:rt.hasImplantedMedicalDevice!==null?convertValueToLabel$6(rt.hasImplantedMedicalDevice,yesNoOptions$2):sharedContent.generic.label.notProvided})]}),rt.hasImplantedMedicalDevice&&jsxRuntimeExports.jsxs(ReviewSubFields,{children:[Object.keys(tt).map((ht,mt)=>{if(ht!=="hasImplantedMedicalDevice"&&ht!=="otherNotListed"){if(pt||rt[ht].length!==0)return jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt[ht]}`,children:[jsxRuntimeExports.jsx(ArrayQuestion$2,{value:rt[ht],children:tt[ht]}),jsxRuntimeExports.jsx(ArrayAnswer$2,{value:rt[ht],children:convertValueToLabel$6(rt[ht],yesNoOptions$2)})]},mt);if(!pt&&rt[ht].length===0)return jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt[ht]}`,children:[jsxRuntimeExports.jsx(Question$1,{value:ht,children:tt[ht]}),jsxRuntimeExports.jsx(Answer$1,{value:ht,children:"No"})]})}return null}),Object.values(rt.otherNotListed).map((ht,mt)=>jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt.otherNotListed}-${mt}`,children:[jsxRuntimeExports.jsx(Question$1,{value:ht.name,children:tt.otherNotListed}),jsxRuntimeExports.jsx(Answer$1,{value:ht.name,children:ht.name})]},mt))]})]})},QuestionContainer$1=styled$1("div")`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 27px;
  margin-top: ${et=>et.position==="top"?"0px":"20px"};
  margin-bottom: ${et=>et.position==="bottom"?"0px":"20px"}; ;
`,SubQuestionContainer$1=styled$1("div")`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 27px;
`,ArrayQuestion$1=styled$1("div")`
  width: 50%;
  height: 40px;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value!==""?`${et.theme.palette.text.primary}`:`${et.theme.palette.error.main}`};
`,ArrayAnswer$1=styled$1("div")`
  width: 50%;
  font-weight: bold;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value!==""?`${et.theme.palette.text.primary}`:`${et.theme.palette.error.main}`};
`,Question=styled$1("div")`
  width: 50%;
  height: 40px;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value!==null?`${et.theme.palette.text.primary}`:`${et.theme.palette.error.main}`};
`,Answer=styled$1("div")`
  width: 50%;
  font-weight: bold;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value!==null?`${et.theme.palette.text.primary}`:`${et.theme.palette.error.main}`};
`,convertValueToLabel$5=(et,tt)=>{for(const rt of tt)if(rt.value===et)return rt.label;if(typeof et=="object")return et.length>0?et.join(", "):sharedContent.generic.label.notProvided},renderQuestion$1=(et,tt,rt)=>et.baseValue!=="Other"?jsxRuntimeExports.jsxs(SubQuestionContainer$1,{"aria-label":`review-${tt}`,children:[jsxRuntimeExports.jsx(ArrayQuestion$1,{value:et.baseValue,children:tt}),jsxRuntimeExports.jsx(ArrayAnswer$1,{value:et.baseValue,children:et.baseValue?et.baseValue:sharedContent.generic.label.notProvided})]},rt):jsxRuntimeExports.jsxs(SubQuestionContainer$1,{"aria-label":`review-${tt}`,children:[jsxRuntimeExports.jsx(ArrayQuestion$1,{value:et.otherValue,children:tt}),jsxRuntimeExports.jsx(ArrayAnswer$1,{value:et.otherValue,children:et.otherValue?et.otherValue:sharedContent.generic.label.notProvided})]},rt),ReviewInfections$1=et=>{const{fields:tt,values:rt,patient:nt,error:lt,link:ut,isLocked:dt}=et;return jsxRuntimeExports.jsxs(ReviewBox,{title:"Infectious Risk",error:lt,link:ut,isLocked:dt,children:[jsxRuntimeExports.jsxs(QuestionContainer$1,{position:"top","aria-label":`review-${tt.hasInfectiousDisease}`,children:[jsxRuntimeExports.jsx(Question,{value:rt.hasInfectiousDisease,children:tt.hasInfectiousDisease}),jsxRuntimeExports.jsx(Answer,{value:rt.hasInfectiousDisease,children:rt.hasInfectiousDisease!==null?convertValueToLabel$5(rt.hasInfectiousDisease,yesNoOptions$2):sharedContent.generic.label.notProvided})]}),rt.hasInfectiousDisease&&jsxRuntimeExports.jsx(ReviewSubFields,{children:Object.values(rt.infectiousDisease).map((pt,ht)=>renderQuestion$1(pt,`Infectious Disease ${ht+1}`,ht))}),jsxRuntimeExports.jsxs(QuestionContainer$1,{"aria-label":`review-${tt.hasMroInfection}`,children:[jsxRuntimeExports.jsx(Question,{value:rt.hasMroInfection,children:tt.hasMroInfection}),jsxRuntimeExports.jsx(Answer,{value:rt.hasMroInfection,children:rt.hasMroInfection!==null?convertValueToLabel$5(rt.hasMroInfection,yesNoOptions$2):sharedContent.generic.label.notProvided})]}),rt.hasMroInfection&&jsxRuntimeExports.jsx(ReviewSubFields,{children:Object.values(rt.mroInfection).map((pt,ht)=>renderQuestion$1(pt,`MRO Infection ${ht+1}`,ht+rt.infectiousDisease.length))}),nt.userProfile?nt.userProfile.systemState===AustralianStates.WA&&jsxRuntimeExports.jsxs(QuestionContainer$1,{position:"bottom",children:[jsxRuntimeExports.jsx(Question,{value:rt.outsideWaLastTwelveMonths,children:tt.outsideWaLastTwelveMonths}),jsxRuntimeExports.jsx(Answer,{value:rt.outsideWaLastTwelveMonths,children:rt.outsideWaLastTwelveMonths!==null?convertValueToLabel$5(rt.outsideWaLastTwelveMonths,yesNoOptions$2):sharedContent.generic.label.notProvided})]}):null]})},convertValueToLabel$4=(et,tt)=>{for(const rt of tt)if(rt.value===et)return rt.label},renderQuestionRow$3=(et,tt,rt,nt)=>jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt[et]}`,children:[jsxRuntimeExports.jsx(Question$1,{value:rt[et],children:tt[et]}),jsxRuntimeExports.jsx(Answer$1,{value:rt[et],children:rt[et]!==null?convertValueToLabel$4(rt[et],yesNoOptions$2):sharedContent.generic.label.notProvided})]},nt),ReviewFallsRisk=et=>{const{fields:tt,values:rt,error:nt,link:lt,isLocked:ut}=et;return jsxRuntimeExports.jsx(ReviewBox,{title:"Falls Risk",error:nt,link:lt,isLocked:ut,children:Object.keys(tt).map((dt,pt)=>renderQuestionRow$3(dt,tt,rt,pt))})},convertValueToLabel$3=(et,tt)=>{for(const rt of tt)if(rt.value===et)return rt.label},renderQuestionRow$2=(et,tt,rt,nt)=>jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt[et]}`,children:[jsxRuntimeExports.jsx(Question$1,{value:rt[et],children:tt[et]}),jsxRuntimeExports.jsx(Answer$1,{value:rt[et],children:rt[et]!==null?convertValueToLabel$3(rt[et],yesNoOptions$2):sharedContent.generic.label.notProvided})]},nt),ReviewPressureInjury=et=>{const{fields:tt,values:rt,error:nt,link:lt,isLocked:ut}=et;return jsxRuntimeExports.jsx(ReviewBox,{title:"Pressure Injury Risk",error:nt,link:lt,isLocked:ut,children:Object.keys(tt).map((dt,pt)=>renderQuestionRow$2(dt,tt,rt,pt))})},convertValueToLabel$2=(et,tt)=>{for(const rt of tt)if(rt.value===et)return rt.label},renderQuestionRow$1=(et,tt,rt,nt)=>jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt[et]}`,children:[jsxRuntimeExports.jsx(Question$1,{value:rt[et],children:tt[et]}),jsxRuntimeExports.jsx(Answer$1,{value:rt[et],children:rt[et]!==null?convertValueToLabel$2(rt[et],yesNoOptions$2):sharedContent.generic.label.notProvided})]},nt),ReviewWellbeing=et=>{const{fields:tt,values:rt,error:nt,link:lt,isLocked:ut}=et;return jsxRuntimeExports.jsx(ReviewBox,{title:"Wellbeing",error:nt,link:lt,isLocked:ut,children:Object.keys(tt).map((dt,pt)=>renderQuestionRow$1(dt,tt,rt,pt))})},convertValueToLabel$1=(et,tt)=>{for(const rt of tt)if(rt.value===et)return rt.label},renderQuestionRow=(et,tt,rt)=>jsxRuntimeExports.jsxs(QuestionContainer$2,{"aria-label":`review-${tt[et]}`,children:[jsxRuntimeExports.jsx(Question$1,{value:rt[et],children:tt[et]}),jsxRuntimeExports.jsx(Answer$1,{value:rt[et],children:rt[et]!==null?convertValueToLabel$1(rt[et],yesNoOptions$2):sharedContent.generic.label.notProvided})]}),ReviewACD=et=>{const{fields:tt,values:rt,error:nt,link:lt,isLocked:ut}=et;return jsxRuntimeExports.jsxs(ReviewBox,{title:"Advance Care Directive/NFR",error:nt,link:lt,isLocked:ut,children:[renderQuestionRow("hasCurrentAcd",tt,rt),!rt.hasCurrentAcd&&renderQuestionRow("acdInfoRequested",tt,rt),renderQuestionRow("hasCurrentResusMxPlan",tt,rt)]})},QuestionContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 27px;
  margin-top: ${et=>et.position==="top"?"0px":"20px"};
  margin-bottom: ${et=>et.position==="bottom"?"0px":"20px"}; ;
`,SubQuestionContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 27px;
`,ArrayQuestion=styled$1("div")`
  width: 50%;
  height: 40px;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value.includes("Not Provided")?et.theme.palette.error.main:et.theme.palette.text.primary};
`,ArrayAnswer=styled$1("div")`
  width: 50%;
  font-weight: bold;
  font-size: ${getRemSize(14)};
  line-height: 20px;
  display: flex;
  align-items: center;
  color: ${et=>et.value.includes("Not Provided")?et.theme.palette.error.main:et.theme.palette.text.primary};
`,AllergyTitle=styled$1("div")`
  font-weight: bold;
  font-size: ${getRemSize(18)};
  line-height: 28px;
  margin-left: 27px;
  margin-top: 10px;
`,convertValueToLabel=(et,tt)=>{for(const rt of tt)if(rt.value===et)return rt.label;if(typeof et=="object")return et.length>0?et.join(", "):"Not Provided"},renderQuestion=(et,tt)=>jsxRuntimeExports.jsxs(SubQuestionContainer,{"aria-label":`review-${tt}`,children:[jsxRuntimeExports.jsx(Question$1,{value:et,children:tt}),jsxRuntimeExports.jsx(Answer$1,{value:et,children:et||"Not Provided"})]}),generateReactionList=et=>{const tt=[];if(et)for(const nt of et)nt.baseValue!=="Other"&&tt.push(nt.baseValue!==""?nt.baseValue:"Not Provided");const rt=tt.length>0?tt.join(", "):"Not Provided";return tt.length>0?jsxRuntimeExports.jsxs(SubQuestionContainer,{"aria-label":"review-Reaction/s experienced",children:[jsxRuntimeExports.jsx(ArrayQuestion,{value:rt,children:"Reaction/s experienced"}),jsxRuntimeExports.jsx(ArrayAnswer,{value:rt,children:rt})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},ReviewInfections=et=>{const{fields:tt,values:rt,error:nt,link:lt,isLocked:ut}=et;return jsxRuntimeExports.jsxs(ReviewBox,{title:"Allergies",error:nt,link:lt,isLocked:ut,children:[jsxRuntimeExports.jsxs(QuestionContainer,{position:"top","aria-label":`review-${tt.hasPatientAllergies}`,children:[jsxRuntimeExports.jsx(Question$1,{value:rt.hasPatientAllergies,children:tt.hasPatientAllergies}),jsxRuntimeExports.jsx(Answer$1,{value:rt.hasPatientAllergies,children:rt.hasPatientAllergies!==null?convertValueToLabel(rt.hasPatientAllergies,yesNKAOptions):"Not Provided"})]}),rt.hasPatientAllergies&&jsxRuntimeExports.jsx(ReviewSubFields,{children:Object.values(rt.pcccAllergy).map((dt,pt)=>jsxRuntimeExports.jsxs("div",{"aria-label":`review-Allergy/Sensitivity ${pt+1}`,children:[jsxRuntimeExports.jsxs(AllergyTitle,{children:["Allergy/Sensitivity ",pt+1]}),renderQuestion(dt.allergyType,"Allergy/sensitivity"),dt.allergyType!=="Food"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderQuestion(dt.additionalDetails,"Please specify"),generateReactionList(dt.pcccReaction)]}),dt.pcccReaction&&Object.values(dt.pcccReaction.map(ht=>ht.baseValue==="Other"?renderQuestion(ht.otherValue,"Other reaction/s experienced"):null))]},pt))})]})},Wrapper$5=styled$1("div")`
  width: 65%;
`,ReviewAndSubmit$1=et=>{const{allowedLocations:tt,patientId:rt,patient:nt,formId:lt,isLocked:ut}=et,{values:dt,errors:pt}=useFormikContext(),ht=preCtChartCheckContent.basicInformation.fields,mt=preCtChartCheckContent.chemoRisk.fields,xt=preCtChartCheckContent.implantedMedicalDevices.fields,Mt=preCtChartCheckContent.infectiousRisk.fields,vt=preCtChartCheckContent.fallsRisk.fields,Ot=preCtChartCheckContent.pressureInjuryRisk.fields,At=preCtChartCheckContent.wellbeing.fields,Rt=preCtChartCheckContent.advancedCareDirective.fields,zt=preCtChartCheckContent.allergies.fields,{data:Tt,error:Ct,loading:It}=useQuery(GET_ACTIVE_QCLS,{variables:{patientId:rt,isAmendment:dt.isAmendment}}),Dt=(Nt,Yt)=>Nt!=="cied"&&getIn$1(Yt,Nt)===!0||Nt==="cied"&&getIn$1(Yt,Nt).length>0&&getIn$1(Yt,"hasImplantedMedicalDevice")===!0,kt=Nt=>{for(const Yt of Object.keys(Nt))if(getIn$1(pt,Yt))return!0;return!1},qt=()=>{const Nt=[...dt.cied,...dt.venousAccessType,...dt.otherImplantedDevices,...dt.otherNotListed],Yt=dt.hasImplantedMedicalDevice===!0&&Nt.length===0;return!!(pt.hasImplantedMedicalDevice||Yt)};return jsxRuntimeExports.jsxs(Wrapper$5,{children:[!It&&jsxRuntimeExports.jsx(ReviewQcl,{activeQcls:!ut&&!Ct?Tt.activeTasks:[],formContent:preCtChartCheckContent,customQclRules:Dt,isLocked:ut}),jsxRuntimeExports.jsx(ReviewBasicInfo,{fields:ht,values:dt,error:kt(ht),link:generatePath(routes$2.basicInformation.path,{patientId:rt,formId:lt}),allowedLocations:tt,isLocked:ut}),jsxRuntimeExports.jsx(ReviewChemoRisk,{fields:mt,values:dt,error:kt(mt),link:generatePath(routes$2.chemoRisk.path,{patientId:rt,formId:lt}),isLocked:ut}),jsxRuntimeExports.jsx(ReviewDevices,{fields:xt,values:dt,error:qt(),link:generatePath(routes$2.implantedMedicalDevices.path,{patientId:rt,formId:lt}),isLocked:ut}),jsxRuntimeExports.jsx(ReviewInfections$1,{fields:Mt,values:dt,patient:nt,error:kt(Mt),link:generatePath(routes$2.infectiousRisk.path,{patientId:rt,formId:lt}),isLocked:ut}),jsxRuntimeExports.jsx(ReviewFallsRisk,{fields:vt,values:dt,error:kt(vt),link:generatePath(routes$2.fallsRisk.path,{patientId:rt,formId:lt}),isLocked:ut}),jsxRuntimeExports.jsx(ReviewPressureInjury,{fields:Ot,values:dt,error:kt(Ot),link:generatePath(routes$2.pressureInjuryRisk.path,{patientId:rt,formId:lt}),isLocked:ut}),jsxRuntimeExports.jsx(ReviewWellbeing,{fields:At,values:dt,error:kt(At),link:generatePath(routes$2.wellbeing.path,{patientId:rt,formId:lt}),isLocked:ut}),jsxRuntimeExports.jsx(ReviewACD,{fields:Rt,values:dt,error:kt(Rt),link:generatePath(routes$2.advancedCareDirective.path,{patientId:rt,formId:lt}),isLocked:ut}),jsxRuntimeExports.jsx(ReviewInfections,{fields:zt,values:dt,error:kt(zt),link:generatePath(routes$2.allergies.path,{patientId:rt,formId:lt}),isLocked:ut})]})},Wellbeing$1=({distressThermometerData:et,handleMutation:tt,healthAssessmentData:rt,lastUpdateUserData:nt})=>{const{values:lt}=useFormikContext(),{staffConcern:ut,anxietyClaustrophobia:dt}=preCtChartCheckContent.wellbeing.fields,{dtScoreTitle:pt,hasWellbeingIssueTitle:ht,wellbeingIssueTitle:mt}=preCtChartCheckContent.wellbeing.tableTitles,xt=preCtChartCheckContent.wellbeing.infoHelpers.anxietyClaustrophobiaMessage,Mt=formatDtRating(et);let vt,Ot;const At=[];rt.healthAssessment&&(vt=choiceToBooleanOptions[String(rt.healthAssessment.wellbeingIssue)],Ot=rt.healthAssessment.wellbeingIssue,vt&&At.push({title:ht,value:choiceToStringOptions[String(Ot)]})),Mt&&At.push({title:pt,value:Mt||"N/A"});let Rt=[];if(vt===!0){const Tt=rt.healthAssessment.wellbeingIssues,Ct=rt.wellbeingIssueRefData;Rt=Tt.map((It,Dt)=>{var Yt;const kt=It.other,qt=transformEmptyString((Yt=Ct.find(Kt=>Kt.id===It.value))==null?void 0:Yt.name);return{title:`${mt} ${Dt+1}`,value:kt||qt}})}const zt=[[...At,...Rt]];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:ut,fieldName:"staffConcern",children:jsxRuntimeExports.jsx(Field,{name:"staffConcern",component:ToggleButtonGroupField,label:ut,helperType:"error",options:yesNoOptions$2,handleMutation:tt,lastUpdateUser:getLastUpdateUser(nt,"staffConcern")})}),(At.length>0||Rt.length>0)&&jsxRuntimeExports.jsx(InfoCard,{title:"Patient Reported",subTitle:"(Health Assessment/Distress Thermometer)",rowDetails:zt}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:dt,fieldName:"anxietyClaustrophobia",children:[jsxRuntimeExports.jsx(Field,{name:"anxietyClaustrophobia",component:ToggleButtonGroupField,label:dt,helperType:"error",options:yesNoOptions$2,handleMutation:tt,lastUpdateUser:getLastUpdateUser(nt,"anxietyClaustrophobia")}),lt.anxietyClaustrophobia===!0&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"anxietyClaustrophobia",fieldText:xt,helperType:"info"})]})]})},generateValidationSchema$1=(et,tt)=>(et!=="WA"&&delete tt.fields.outsideWaLastTwelveMonths,tt),validationSchema$4=create$3({patientIdentificationCheck:create$7().typeError(valueRequired$1),patientHeight:create$5().nullable().positive(positiveNumber$1).required(valueRequired$1),patientWeight:create$5().nullable().positive(positiveNumber$1).required(valueRequired$1),previousRadiationTreatment:create$7().typeError(valueRequired$1),anticancerDrugs:create$7().typeError(valueRequired$1),chemoPastWeek:create$7().typeError(valueRequired$1),hasImplantedMedicalDevice:create$7().typeError(valueRequired$1),hasInfectiousDisease:create$7().typeError(valueRequired$1),hasMroInfection:create$7().typeError(valueRequired$1),outsideWaLastTwelveMonths:create$7().typeError(valueRequired$1),infectiousDisease:create$2().of(create$3().shape({id:create$6().required(valueRequired$1),baseValue:create$6().required(valueRequired$1),otherValue:create$6().when("baseValue",{is:et=>displayTextFieldOptionsForOther.includes(et),then:create$6().required(valueRequired$1),otherwise:create$6()})})),mroInfection:create$2().of(create$3().shape({id:create$6().required(),baseValue:create$6().required(valueRequired$1),otherValue:create$6().when("baseValue",{is:et=>displayTextFieldOptionsForOther.includes(et),then:create$6().required(valueRequired$1),otherwise:create$6()})})),fallLastTwelveMonths:create$7().typeError(valueRequired$1),safetyConcernsMobility:create$7().typeError(valueRequired$1),hasCurrentAcd:create$7().typeError(valueRequired$1),acdInfoRequested:create$7().when("hasCurrentAcd",{is:!1,then:create$7().typeError(valueRequired$1),otherwise:create$7().nullable()}),hasCurrentResusMxPlan:create$7().typeError(valueRequired$1),staffConcern:create$7().typeError(valueRequired$1),anxietyClaustrophobia:create$7().typeError(valueRequired$1),treatmentOverHalfHour:create$7().typeError(valueRequired$1),currentInpatient:create$7().typeError(valueRequired$1),requiresMaskCast:create$7().typeError(valueRequired$1),existingPressureInjuryWound:create$7().typeError(valueRequired$1),nurseLocation:create$6().nullable().required(valueRequired$1),hasPatientAllergies:create$7().typeError(valueRequired$1),pcccAllergy:create$2().of(create$3().shape({allergyType:create$6().required(valueRequired$1),additionalDetails:create$6().when("allergyType",{is:et=>displayTextFieldOptionsForAllergy.includes(et),then:create$6().required(valueRequired$1),otherwise:create$6()}),pcccReaction:create$2().of(create$3().shape({baseValue:create$6().required(valueRequired$1),otherValue:create$6().when("baseValue",{is:et=>displayTextFieldOptionsForOther.includes(et),then:create$6().required(valueRequired$1),otherwise:create$6()})}))}))}),logger$c=new Logger("PreCtChartCheck"),Wrapper$4=styled$1("div")`
  height: 100%;
`,Form$1=styled$1(Form$3)`
  height: 100%;
`,StepperPlaceholder$1=styled$1("div")`
  min-width: 15%;
  background-color: ${et=>et.theme.palette.grey[100]};
  min-height: calc(100% - 60px);
  height: auto;
  box-shadow: inset -1px 0px 1px rgba(0, 0, 0, 0.2);
`,implantedMedicalDeviceFields=Object.keys(preCtChartCheckContent.implantedMedicalDevices.fields).filter(et=>et!=="hasImplantedMedicalDevice");implantedMedicalDeviceFields.reduce((et,tt)=>(et[tt]=[],et),{});const PreCtChartCheck=({allowedLocationsData:et,distressThermometerData:tt,healthAssessmentData:rt,patientDetailsData:nt,preCtChartCheckData:lt,loggedInUserData:ut})=>{const[dt,pt]=reactExports.useState({}),[ht,mt]=reactExports.useState(!1),[xt,Mt]=reactExports.useState(!1),[vt,Ot]=reactExports.useState(!1),[At,Rt]=reactExports.useState(!1),[zt,Tt]=reactExports.useState(!1),{patientId:Ct,formId:It}=useParams(),Dt=reactExports.useContext(FormContext$1),{chartCheckIdentifier:kt}=reactExports.useContext(AssessmentContext),{updatePreCtChartCheck:qt,createInitialTriageQclCall:Nt,refetchPreCtChartCheck:Yt}=Dt.mutations,Kt=nt.userProfile&&nt.userProfile.systemState,Jt=useHistory(),Qt=useLocation(),{id:Bt,patientIdentificationCheck:Ft,patientHeight:$t,patientWeight:jt,previousRadiationTreatment:Wt,anticancerDrugs:Ut,chemoPastWeek:Vt,hasImplantedMedicalDevice:Ht,hasInfectiousDisease:Gt,infectiousDisease:Zt,hasMroInfection:Xt,mroInfection:er,outsideWaLastTwelveMonths:nr,fallLastTwelveMonths:or,safetyConcernsMobility:rr,hasCurrentAcd:cr,acdInfoRequested:ir,hasCurrentResusMxPlan:dr,staffConcern:gr,anxietyClaustrophobia:br,treatmentOverHalfHour:ar,currentInpatient:ur,requiresMaskCast:xr,existingPressureInjuryWound:Mr,nurseLocation:Ar,hasPatientAllergies:Ir,pcccAllergy:Rr,additionalNotes:wr,lastUpdateUser:qr,isLocked:Hr,updatedBy:kr,isAmendment:$r=!1}=lt,yr=lt.implantedMedicalDevice.reduce((xn,Vr)=>{const{deviceField:fn,name:pn,id:qn,lastUpdateUser:Bn}=Vr;return xn[fn]=xn.hasOwnProperty(fn)&&[...xn[fn],{id:qn,name:pn,deviceField:fn,lastUpdateUser:Bn}],xn},implantedMedicalDeviceFields.reduce((xn,Vr)=>(xn[Vr]=[],xn),{})),Or=(xn,Vr)=>xn.reduce((fn,pn)=>(Object.keys(pn).forEach(qn=>{Vr&&qn===Vr?pn[qn]=lodash.cloneDeep(pn[qn]).reduce((Bn,Kr)=>(Object.keys(Kr).forEach(Tr=>{Kr[Tr]=!0}),Bn=[...Bn,Kr],Bn),[]):pn[qn]=!0}),fn=[...fn,pn],fn),[]),Dr={patientIdentificationCheck:Ft,patientHeight:$t,patientWeight:jt,previousRadiationTreatment:Wt,anticancerDrugs:Ut,chemoPastWeek:Vt,hasImplantedMedicalDevice:Ht,...yr,hasInfectiousDisease:Gt,infectiousDisease:Zt,hasMroInfection:Xt,mroInfection:er,outsideWaLastTwelveMonths:nr,fallLastTwelveMonths:or,safetyConcernsMobility:rr,hasCurrentAcd:cr,acdInfoRequested:ir,hasCurrentResusMxPlan:dr,staffConcern:gr,anxietyClaustrophobia:br,treatmentOverHalfHour:ar,currentInpatient:ur,requiresMaskCast:xr,existingPressureInjuryWound:Mr,nurseLocation:Ar?Ar.toString():"",hasPatientAllergies:Ir,pcccAllergy:Rr,additionalNotes:wr,generatedQCLs:[],updatedBy:kr,lastUpdateUser:qr,isAmendment:$r},Fr=(xn,Vr)=>{qt({variables:{id:It,[xn]:Vr}})},[Yr]=useMutation(SUBMIT_PRE_CT_CHART_CHECK,{refetchQueries:[{query:PRE_CT_CHART_CHECK_QUERY,variables:{id:It}}],awaitRefetchQueries:!0}),[Gr]=useMutation(CREATE_AMENDED_PRE_CT_CHART_CHECK,{refetchQueries:[{query:QUERY_NURSE,variables:{id:Ct}},{query:GET_ACTIVE_QCLS,variables:{patientId:Ct,isAmendment:!0}}],awaitRefetchQueries:!0,fetchPolicy:"no-cache"}),Jr=()=>{Yr({variables:{id:It}}).then(()=>{mt(!1),Mt(!$r&&String(kt)!==String(It)),Rt(!1),$r&&Jt.push(`/patient/${Ct}/summary`)}).catch(xn=>{mt(!1),Ot(!0),logger$c.error(xn)})},[jr]=useMutation(CREATE_PRE_CT_TRIAGE),Zr=async()=>{await jr({variables:{patientId:Ct}}).then(({data:xn})=>{Jt.push(generatePath(routes$1.malnutritionRisk.path,{patientId:Ct,formId:xn.createPreCtTriage.preCtTriage.id}))}).then(()=>$r&&Yt())},Xr=()=>{window.location.href=`mailto:${sharedContent.reviewAndSubmit.submissionError.emailLink}`},{firstName:cn,lastName:Qr}=ut,rn=`${cn} ${Qr}`,[_r]=useMutation(DELETE_PRE_CT_CHART_CHECK,{refetchQueries:[{query:QUERY_NURSE,variables:{id:Ct}}]}),[ln]=useMutation(DELETE_PRE_CT_TRIAGE,{refetchQueries:[{query:QUERY_NURSE,variables:{id:Ct}}]});reactExports.useEffect(()=>{Hr&&!Qt.pathname.includes("review-and-submit")&&Jt.push(generatePath(routes$2.reviewAndSubmit.path,{patientId:Ct,formId:It}))},[]);const{pathname:vn}=window.location,Cr=vn.substring(vn.lastIndexOf("/")+1),gn=window.location.pathname.split("/").slice(-1)[0];return reactExports.useEffect(()=>{const xn=fieldsToValidateOnContinue$1[Cr].reduce((Vr,fn)=>(Vr[fn]=!0,Vr),{});pt({...dt,...xn})},[window.location.pathname]),jsxRuntimeExports.jsx(Wrapper$4,{children:jsxRuntimeExports.jsx(Formik,{initialValues:Dr,validationSchema:generateValidationSchema$1(Kt,validationSchema$4),onSubmit:()=>{},children:({values:xn,errors:Vr,setTouched:fn,handleChange:pn,setFieldValue:qn})=>{const Bn=()=>{fn(dt)},Kr=()=>{const Cn=lodash.cloneDeep(xn.infectiousDisease),kn=lodash.cloneDeep(xn.mroInfection);pt({...dt,infectiousDisease:Or(Cn),mroInfection:Or(kn)}),Bn()},Tr=()=>{const Cn=lodash.cloneDeep(xn.pcccAllergy);pt({...dt,pcccAllergy:Or(Cn,"pcccReaction")}),Bn()},Pr={patientId:Ct,formId:It},an=Object.values(routes$2).map(Cn=>({sectionTitle:`${Cn.sectionTitle}`,name:`${Cn.name}`,path:`${generatePath(Cn.path,Pr)}`})),nn={id:It,title:"Initial Chart Check",isAmendment:$r},Mn=async()=>{await Gr({variables:{id:It}}).then(({data:Cn})=>Yt().then(()=>Jt.push(generatePath(routes$2.basicInformation.path,{patientId:Ct,formId:Cn.createAmendedPreCtChartCheck.preCtChartCheck.id}))).then(()=>qn("additionalNotes","")))},An={updatedBy:lt.updatedBy,isAmendment:!!lt.isAmendment,lastUpdateUser:lt.lastUpdateUser,patient:nt,reviewInfo:reviewInfo$1,saveAndExitLink:generatePath(patientSummaryLink$1,{patientId:Ct}),setDeleteModalIsOpen:Tt,deleteModal:()=>deletePreCtModal(_r,ln,zt,Tt,nn,Ct,Jt,!0),createAmendmentAndRedirect:()=>Mn()},Vn={basicInformation:{handleValidation:()=>Bn(),pageNumber:1,sectionTitle:routes$2.basicInformation.sectionTitle,continueLink:generatePath(routes$2.chemoRisk.path,{patientId:Ct,formId:It})},chemoRisk:{handleValidation:()=>Bn(),pageNumber:2,sectionTitle:routes$2.chemoRisk.sectionTitle,continueLink:generatePath(routes$2.implantedMedicalDevices.path,{patientId:Ct,formId:It}),backLink:generatePath(routes$2.basicInformation.path,{patientId:Ct,formId:It})},implantedMedicalDevices:{handleValidation:()=>Bn(),pageNumber:3,sectionTitle:routes$2.implantedMedicalDevices.sectionTitle,continueLink:generatePath(routes$2.infectiousRisk.path,{patientId:Ct,formId:It}),backLink:generatePath(routes$2.chemoRisk.path,{patientId:Ct,formId:It})},infectiousRisk:{handleValidation:()=>Kr(),pageNumber:4,sectionTitle:routes$2.infectiousRisk.sectionTitle,continueLink:generatePath(routes$2.fallsRisk.path,{patientId:Ct,formId:It}),backLink:generatePath(routes$2.implantedMedicalDevices.path,{patientId:Ct,formId:It})},fallsRisk:{handleValidation:()=>Bn(),pageNumber:5,sectionTitle:routes$2.fallsRisk.sectionTitle,continueLink:generatePath(routes$2.pressureInjuryRisk.path,{patientId:Ct,formId:It}),backLink:generatePath(routes$2.infectiousRisk.path,{patientId:Ct,formId:It})},pressureInjuryRisk:{handleValidation:()=>Bn(),pageNumber:6,sectionTitle:routes$2.pressureInjuryRisk.sectionTitle,continueLink:generatePath(routes$2.wellbeing.path,{patientId:Ct,formId:It}),backLink:generatePath(routes$2.fallsRisk.path,{patientId:Ct,formId:It})},wellbeing:{handleValidation:()=>Bn(),pageNumber:7,sectionTitle:routes$2.wellbeing.sectionTitle,continueLink:generatePath(routes$2.advancedCareDirective.path,{patientId:Ct,formId:It}),backLink:generatePath(routes$2.pressureInjuryRisk.path,{patientId:Ct,formId:It})},advancedCareDirective:{handleValidation:()=>Bn(),pageNumber:8,sectionTitle:routes$2.advancedCareDirective.sectionTitle,continueLink:generatePath(routes$2.allergies.path,{patientId:Ct,formId:It}),backLink:generatePath(routes$2.wellbeing.path,{patientId:Ct,formId:It})},allergies:{handleValidation:()=>Tr(),pageNumber:9,sectionTitle:routes$2.allergies.sectionTitle,continueLink:generatePath(routes$2.reviewAndSubmit.path,{patientId:Ct,formId:It}),backLink:generatePath(routes$2.advancedCareDirective.path,{patientId:Ct,formId:It})},reviewAndSubmit:{handleValidation:()=>Bn(),pageNumber:10,sectionTitle:routes$2.reviewAndSubmit.sectionTitle,backLink:generatePath(routes$2.allergies.path,{patientId:Ct,formId:It})}};return jsxRuntimeExports.jsx(Form$1,{children:jsxRuntimeExports.jsxs(NAPageContainer,{children:[jsxRuntimeExports.jsx(StepperPlaceholder$1,{children:jsxRuntimeExports.jsx(SideBar$1,{sidebarVariables:Pr,children:jsxRuntimeExports.jsx(Stepper,{stepperTitle:stepperTitle$1,data:an,currentPage:gn,handleValidation:()=>Cr==="infectious-risk"?Kr():Cr==="allergies"?Tr():Bn(),isLocked:Hr})})}),jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:routes$2.basicInformation.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{isLocked:Hr,...An,...Vn.basicInformation,reviewInfo:reviewInfo$1,handleValidation:Bn,saveAndExitLink:generatePath(patientSummaryLink$1,{patientId:Ct}),children:jsxRuntimeExports.jsx(BasicInformation,{allowedLocations:et,handleMutation:Fr,healthAssessmentData:rt,lastUpdateUserData:qr})})}),jsxRuntimeExports.jsx(Route,{path:generatePath(routes$2.chemoRisk.path,{patientId:Ct,formId:It}),render:()=>jsxRuntimeExports.jsx(FormContainer$1,{isLocked:Hr,...An,...Vn.chemoRisk,children:jsxRuntimeExports.jsx(ChemotherapyRisk,{handleMutation:Fr,healthAssessmentData:rt,lastUpdateUserData:qr})})}),jsxRuntimeExports.jsx(Route,{path:routes$2.implantedMedicalDevices.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...An,...Vn.implantedMedicalDevices,children:jsxRuntimeExports.jsx(ImplantedMedicalDevices,{assessmentId:Bt,handleMutation:Fr,preCtChartCheckData:lt})})}),jsxRuntimeExports.jsx(Route,{path:routes$2.infectiousRisk.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{isLocked:Hr,...An,...Vn.infectiousRisk,children:jsxRuntimeExports.jsx(InfectiousRisk,{assessmentId:Bt,lastUpdateUserData:qr,patient:nt,updateAssessment:Fr,healthAssessmentData:rt})})}),jsxRuntimeExports.jsx(Route,{path:routes$2.fallsRisk.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{isLocked:Hr,...An,...Vn.fallsRisk,children:jsxRuntimeExports.jsx(FallsRisk,{handleMutation:Fr,healthAssessmentData:rt,lastUpdateUserData:qr})})}),jsxRuntimeExports.jsx(Route,{path:routes$2.pressureInjuryRisk.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...An,...Vn.pressureInjuryRisk,children:jsxRuntimeExports.jsx(PressureInjury,{handleMutation:Fr,healthAssessmentData:rt,lastUpdateUserData:qr})})}),jsxRuntimeExports.jsx(Route,{path:routes$2.wellbeing.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{isLocked:Hr,...An,...Vn.wellbeing,children:jsxRuntimeExports.jsx(Wellbeing$1,{distressThermometerData:tt,handleMutation:Fr,healthAssessmentData:rt,lastUpdateUserData:qr})})}),jsxRuntimeExports.jsx(Route,{path:routes$2.advancedCareDirective.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{isLocked:Hr,...An,...Vn.advancedCareDirective,children:jsxRuntimeExports.jsx(AdvancedCareDirective,{updateAssessment:Fr,lastUpdateUserData:qr})})}),jsxRuntimeExports.jsx(Route,{path:routes$2.allergies.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{isLocked:Hr,...An,...Vn.allergies,children:jsxRuntimeExports.jsx(Allergies,{assessmentId:Bt,handleMutation:Fr,lastUpdateUserData:qr})})}),jsxRuntimeExports.jsx(Route,{path:routes$2.reviewAndSubmit.path,render:()=>jsxRuntimeExports.jsxs(FormContainer$1,{isLocked:Hr,...An,...Vn.reviewAndSubmit,reviewInfo:reviewInfo$1,handleValidation:Bn,backLink:generatePath(routes$2.allergies.path,{patientId:Ct,formId:It}),saveAndExitLink:generatePath(patientSummaryLink$1,{patientId:Ct}),submitForm:()=>mt(!0),children:[jsxRuntimeExports.jsx(ReviewAndSubmit$1,{formId:It,patientId:Ct,allowedLocations:et,patient:nt,isLocked:Hr}),jsxRuntimeExports.jsx(StandardDialog,{open:ht,title:Vr.nurseLocation?sharedContent.reviewAndSubmit.missingQcl.title:sharedContent.reviewAndSubmit.submit.title,onClose:()=>mt(!1),submitText:Vr.nurseLocation?sharedContent.reviewAndSubmit.missingQcl.returnToField:sharedContent.generic.label.submit,submitButtonProps:{disabled:At},onSubmit:()=>{Vr.nurseLocation?(mt(!1),Jt.push(generatePath(routes$2.basicInformation.path,{patientId:Ct,formId:It}))):(Rt(!0),Jr())},children:Vr.nurseLocation?jsxRuntimeExports.jsx(ModalContentMissingQcl,{sectionName:routes$2.basicInformation.sectionTitle}):jsxRuntimeExports.jsx(ModalContentSubmit,{isAmendment:$r,submittedByNurse:rn,formName:"Chart Check"})}),jsxRuntimeExports.jsx(StandardDialog,{open:xt,title:sharedContent.reviewAndSubmit.proceedToTriage.title,secondarySubmitText:sharedContent.reviewAndSubmit.proceedToTriage.backToSummary,submitText:sharedContent.generic.label.continue,onClose:()=>Mt(!1),onSecondarySubmit:()=>{Nt({variables:{id:It}}),Mt(!1),Jt.push(generatePath(patientSummaryLink$1,{patientId:Ct}))},onSubmit:()=>{Zr()},children:jsxRuntimeExports.jsx(ModalContentProceedToTriage,{})}),jsxRuntimeExports.jsx(StandardDialog,{open:vt,onClose:()=>Ot(!1),title:sharedContent.reviewAndSubmit.submissionError.title,submitText:sharedContent.reviewAndSubmit.submissionError.contactText,onSubmit:()=>{Xr(),Jt.push(generatePath(patientSummaryLink$1,{patientId:Ct}))},children:jsxRuntimeExports.jsx(ModalContentSubmissionError,{text:sharedContent.reviewAndSubmit.submissionError.mainText,emailLink:sharedContent.reviewAndSubmit.submissionError.emailLink})})]})})]}),jsxRuntimeExports.jsx(AdditionalNotes,{handleMutation:Fr,value:xn.additionalNotes,handleChange:pn,name:"additionalNotes",isLocked:Hr})]})})}})})},PreCtChartCheckApollo=()=>{const{patientId:et,formId:tt}=useParams(),{setError:rt}=useErrorModalContext(),{loading:nt,data:lt,error:ut}=useQuery(DT_RATING_QUERY$1,{variables:{patientId:et,version:DistressThermometerVersion.INITIAL,status:FormStatus.REG_SUBMITTED}}),{loading:dt,data:pt,error:ht}=useQuery(HEALTH_ASSESSMENT_QUERY$1,{variables:{id:et,status:FormStatus.REG_SUBMITTED}}),{loading:mt,data:xt,error:Mt}=useQuery(QUERY_NURSE,{variables:{id:et}}),{loading:vt,data:Ot,error:At,refetch:Rt}=useQuery(PRE_CT_CHART_CHECK_QUERY,{variables:{id:tt}}),{loading:zt,data:Tt,error:Ct}=useQuery(GET_ALLOWED_LOCATIONS,{variables:{roles:["Nurse"],hasOther:!1}});reactExports.useEffect(()=>{if(Ct||ut||ht||Mt||At)return rt()},[Ct,ut,ht,Mt,At]);const[It]=useMutation(UPDATE_PRE_CT_CHART_CHECK),[Dt]=useMutation(CREATE_INITIAL_TRIAGE_QCL_CALL),[kt]=useMutation(CREATE_ASSESSMENT_DEVICE),[qt]=useMutation(DELETE_ASSESSMENT_DEVICE),[Nt]=useMutation(UPDATE_ASSESSMENT_DEVICE),[Yt]=useMutation(CREATE_INFECTIOUS_DISEASE),[Kt]=useMutation(DELETE_INFECTIOUS_DISEASE),[Jt]=useMutation(UPDATE_INFECTIOUS_DISEASE),[Qt]=useMutation(CREATE_MRO_INFECTION),[Bt]=useMutation(DELETE_MRO_INFECTION),[Ft]=useMutation(UPDATE_MRO_INFECTION),[$t]=useMutation(CREATE_ALLERGY),[jt]=useMutation(DELETE_ALLERGY),[Wt]=useMutation(UPDATE_ALLERGY),[Ut]=useMutation(CREATE_REACTION),[Vt]=useMutation(DELETE_REACTION),[Ht]=useMutation(UPDATE_REACTION),Gt={updatePreCtChartCheck:It,refetchPreCtChartCheck:Rt,createInitialTriageQclCall:Dt,createAssessmentDevice:kt,deleteAssessmentDevice:qt,updateAssessmentDevice:Nt,createInfectiousDisease:Yt,deleteInfectiousDisease:Kt,updateInfectiousDisease:Jt,createMroInfection:Qt,deleteMroInfection:Bt,updateMroInfection:Ft,createAllergy:$t,deleteAllergy:jt,updateAllergy:Wt,createReaction:Ut,deleteReaction:Vt,updateReaction:Ht},Zt=zt&&nt&&dt&&mt&&vt,Xt=Tt&&lt&&xt&&pt&&Ot;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Zt&&jsxRuntimeExports.jsx(LoadingSpinner,{}),Xt&&jsxRuntimeExports.jsx(FormContext$1.Provider,{value:{mutations:Gt},children:jsxRuntimeExports.jsx(PreCtChartCheck,{allowedLocationsData:Tt.allowedLocations,distressThermometerData:lt.distressThermometer,healthAssessmentData:pt,patientDetailsData:xt.patient,preCtChartCheckData:Ot.preCtChartCheck,loggedInUserData:xt&&xt.user})})]})},STATUS_IN_PROGRESS="In progress",STATUS_SUBMITTED=isUs()?"Submitted":"Submitted to MQ",STATUS_ARCHIVED="Inactive",LEAVE_PAGE_WARNING="Are you sure you want to leave the page without submitting?",FormWrapper=styled$1("div")`
  height: 100%;
  width: 100%;
  padding: 2px;
`;styled$1("div")`
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 30px;
`;const InfoWrapper=styled$1("div")`
  margin-top: 3px;
  font-size: 13px;
  line-height: 15px;
  color: ${et=>et.theme.palette.info.main};
  display: flex;
  flex-direction: row;
  align-items: center;
`,InfoIcon=styled$1(SvgInfoCircleBlueIcon)`
  height: 14px;
  margin-right: 3px;
`,SectionTitle=styled$1("div")`
  font-size: 13px;
  line-height: 15px;
  color: ${et=>et.theme.palette.grey[600]};
  font-weight: bold;
  white-space: nowrap;
`,SectionTitleWrapper=styled$1("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 28px;
`,GreyLine=styled$1("div")`
  width: stretch;
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-left: 16px;
`,HeaderTitle=styled$1("div")`
  font-size: 24px;
  line-height: 28px;
  color: black;
  font-weight: bold;
  margin-bottom: 8px;
`;styled$1("span")`
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: left;
  font-weight: bold;
`;styled$1(SvgAddOutlineCircle)`
  margin-right: 12px;
`;const SectionWrapper=styled$1("div")`
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 20px;
`,RowText=styled$1("div")`
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
`,compare$1=(et,tt)=>Number(et.name)<Number(tt.name)?-1:Number(et.name)>Number(tt.name)?1:0,sortScoreOptions=et=>[...et].sort(compare$1),ALL_MANAGEMENT_PLAN_QUERY=gql`
  query allManagementPlan($patientId: ID!) {
    allManagementPlan(patientId: $patientId) {
      id
      updatedAt
      timepoint
      planType
      submittedBy
      submittedAt
      archivedAt
      status
      isReview
      reviewComments
    }
    timepointOptions: listData(category: "timepoint") {
      id
      name
    }
    scoreOptions: listData(category: "distressScore") {
      id
      name
    }
    serviceTypeOptions: listData(category: "serviceType") {
      id
      name
    }
    checkInStatusOptions: listData(category: "checkInStatus") {
      id
      name
    }
  }
`,SUBMITTED_MANAGEMENT_PLAN_QUERY=gql`
  query submittedManagementPlan($patientId: ID!) {
    submittedManagementPlan(patientId: $patientId) {
      id
      updatedAt
      timepoint
      planType
      submittedBy
      submittedAt
      archivedAt
      status
      isReview
      activityLog {
        sections {
          title
          field
          content
        }
        goalOfCare {
          id
          goal
        }
      }
    }
  }
`,MANAGEMENT_PLAN_QUERY=gql`
  query ManagementPlan($id: ID!) {
    managementPlan(id: $id) {
      id
      status
      planType
      timepoint
      reviewedDt
      distressScore
      distressScorePdf
      checkInStatus
      checkInNotes
      reviewedEq5d5l
      patientConcernsNeeds
      goalOfCare {
        id
        goal
      }
      planOfCare
      resourcesProvided
      reasonForDeactivation
      submittedAt
      reviewComments
      isReview
      reviewComments
    }
  }
`,UPDATE_MANAGEMENT_PLAN=gql`
  mutation updateManagementPlan(
    $id: ID!
    $timepoint: String
    $reviewedDt: Boolean
    $distressScore: Int
    $checkInStatus: String
    $checkInNotes: String
    $reviewedEq5d5l: Boolean
    $patientConcernsNeeds: String
    $goalOfCare: [GoalOfCareInputType]
    $planOfCare: String
    $resourcesProvided: String
    $reasonForDeactivation: String
    $reviewComments: String
  ) {
    updateManagementPlan(
      id: $id
      timepoint: $timepoint
      reviewedDt: $reviewedDt
      distressScore: $distressScore
      checkInStatus: $checkInStatus
      checkInNotes: $checkInNotes
      reviewedEq5d5l: $reviewedEq5d5l
      patientConcernsNeeds: $patientConcernsNeeds
      goalOfCare: $goalOfCare
      planOfCare: $planOfCare
      resourcesProvided: $resourcesProvided
      reasonForDeactivation: $reasonForDeactivation
      reviewComments: $reviewComments
    ) {
      managementPlan {
        id
        status
        planType
        timepoint
        reviewedDt
        distressScore
        checkInStatus
        checkInNotes
        reviewedEq5d5l
        patientConcernsNeeds
        goalOfCare {
          id
          goal
        }
        planOfCare
        resourcesProvided
        reasonForDeactivation
        reviewComments
      }
    }
  }
`,CREATE_MANAGEMENT_PLAN=gql`
  mutation createManagementPlan($patientId: ID!, $planType: String!) {
    createManagementPlan(patientId: $patientId, planType: $planType) {
      managementPlan {
        id
      }
    }
  }
`,SUBMIT_MANAGEMENT_PLAN=gql`
  mutation submitManagementPlan($formId: ID!) {
    submitManagementPlan(formId: $formId) {
      success
    }
  }
`,DELETE_MANAGEMENT_PLAN=gql`
  mutation deleteManagementPlan($formId: ID!) {
    deleteManagementPlan(formId: $formId) {
      success
    }
  }
`,DUPLICATE_MANAGEMENT_PLAN=gql`
  mutation duplicateManagementPlan($formId: ID!) {
    duplicateManagementPlan(formId: $formId) {
      managementPlan {
        id
      }
    }
  }
`,ARCHIVE_MANAGEMENT_PLAN=gql`
  mutation archiveManagementPlan($formId: ID!) {
    archiveManagementPlan(formId: $formId) {
      managementPlan {
        id
      }
    }
  }
`,CREATE_GOAL_OF_CARE=gql`
  mutation createGoalOfCare($formId: ID!) {
    createGoalOfCare(formId: $formId) {
      success
    }
  }
`,DELETE_GOAL_OF_CARE=gql`
  mutation deleteGoalOfCare($formId: ID!, $goalId: ID!) {
    deleteGoalOfCare(formId: $formId, goalId: $goalId) {
      success
    }
  }
`,UPDATE_GOAL_OF_CARE=gql`
  mutation updateGoalOfCare($formId: ID!, $goalId: ID!, $goal: String!) {
    updateGoalOfCare(formId: $formId, goalId: $goalId, goal: $goal) {
      managementPlan {
        id
        goalOfCare {
          id
          goal
        }
      }
    }
  }
`,CREATE_REFERRAL_EXISTING_SERVICE=gql`
  mutation createReferralExistingService($patientId: ID!) {
    createReferralExistingService(patientId: $patientId) {
      referralExistingService {
        id
      }
    }
  }
`,ALL_REFERRAL_EXISTING_SERVICE_QUERY=gql`
  query allReferralExistingServices($patientId: ID!) {
    allReferralExistingServices(patientId: $patientId) {
      id
      referral {
        id
        name
        serviceType
        description
        contactDetails
      }
    }
  }
`,REFERRAL_EXISTING_SERVICE_QUERY=gql`
  query referralExistingServices($formId: ID!) {
    referralExistingServices(id: $formId) {
      id
      referral {
        id
        name
        serviceType
        description
        contactDetails
      }
    }
  }
`,CREATE_REFERRAL=gql`
  mutation createReferral($referralExistingServiceId: ID!) {
    createReferral(referralExistingServiceId: $referralExistingServiceId) {
      referral {
        id
        name
        serviceType
        description
        contactDetails
      }
    }
  }
`,DELETE_REFERRAL=gql`
  mutation deleteReferral($referralId: ID!) {
    deleteReferral(referralId: $referralId) {
      success
    }
  }
`,DELETE_REFERRAL_EXISTING_SERVICE=gql`
  mutation deleteReferralExistingService($referralExistingServiceId: ID!) {
    deleteReferralExistingService(referralExistingServiceId: $referralExistingServiceId) {
      success
    }
  }
`,UPDATE_REFERRAL=gql`
  mutation updateReferral(
    $referralId: ID!
    $name: String
    $serviceType: String
    $description: String
    $contactDetails: String
  ) {
    updateReferral(
      referralId: $referralId
      name: $name
      serviceType: $serviceType
      description: $description
      contactDetails: $contactDetails
    ) {
      referral {
        id
        name
        serviceType
        description
        contactDetails
      }
    }
  }
`,SUBMIT_REFERRAL_EXISTING_SERVICE=gql`
  mutation submitReferralExistingService($referralExistingServiceId: ID!) {
    submitReferralExistingService(referralExistingServiceId: $referralExistingServiceId) {
      referralExistingService {
        id
      }
    }
  }
`,managementDashboardLink="/patient/:patientId/management",formRoutes={consultation:{sectionTitle:"Consultation",path:"/patient/:patientId/management/:formId/consultation",name:"consultation"},referral:{sectionTitle:"Referral & existing services",path:"/patient/:patientId/management/:formId/referral",name:"referral"}},ConsultationPage=({patient:et,listData:tt})=>{const rt=useHistory(),{patientId:nt,formId:lt}=useParams(),{setError:ut}=useErrorModalContext(),[dt,pt]=reactExports.useState(!1),[ht,mt]=reactExports.useState(!1),[xt,Mt]=reactExports.useState(!1),[vt,Ot]=reactExports.useState(!1),[At,Rt]=reactExports.useState(!0),{loading:zt,data:Tt,error:Ct}=useQuery(MANAGEMENT_PLAN_QUERY,{variables:{id:lt}}),It=Tt==null?void 0:Tt.managementPlan;reactExports.useEffect(()=>{if(Ct)return ut()},[Ct]),reactExports.useEffect(()=>{Mt(!!(It!=null&&It.distressScorePdf))},[It]),reactExports.useEffect(()=>{(dt||ht)&&Rt(!1)},[dt,ht]);const[Dt]=useMutation(UPDATE_MANAGEMENT_PLAN,{awaitRefetchQueries:!0,refetchQueries:[{query:MANAGEMENT_PLAN_QUERY,variables:{id:lt}}]}),[kt]=useMutation(SUBMIT_MANAGEMENT_PLAN,{awaitRefetchQueries:!0,refetchQueries:[{query:ALL_MANAGEMENT_PLAN_QUERY,variables:{patientId:nt}},{query:SUBMITTED_MANAGEMENT_PLAN_QUERY,variables:{patientId:nt}}]}),[qt]=useMutation(DELETE_MANAGEMENT_PLAN,{awaitRefetchQueries:!0,refetchQueries:[{query:ALL_MANAGEMENT_PLAN_QUERY,variables:{patientId:nt}}]}),[Nt]=useMutation(CREATE_GOAL_OF_CARE,{awaitRefetchQueries:!0,refetchQueries:[{query:MANAGEMENT_PLAN_QUERY,variables:{id:lt}}]}),[Yt]=useMutation(DELETE_GOAL_OF_CARE,{awaitRefetchQueries:!0,refetchQueries:[{query:MANAGEMENT_PLAN_QUERY,variables:{id:lt}}]}),[Kt]=useMutation(UPDATE_GOAL_OF_CARE,{awaitRefetchQueries:!0,refetchQueries:[{query:MANAGEMENT_PLAN_QUERY,variables:{id:lt}}]}),Jt=(Ut,Vt)=>{Ut==="distressScrore"&&!jt(Vt)&&Dt({variables:{id:lt,checkInNotes:"",checkInStatus:null}}),Dt({variables:{id:lt,[Ut]:Vt}})},Qt=()=>Nt({variables:{formId:lt}}),Bt=(Ut,Vt)=>Kt({variables:{formId:lt,goalId:Ut,goal:Vt}}),Ft=Ut=>Yt({variables:{formId:lt,goalId:Ut}}),$t=!!(It!=null&&It.isReview),jt=Ut=>Ut>=7,Wt={updatedBy:"",patient:et,saveAndExitLink:generatePath(managementDashboardLink,{patientId:nt}),setDeleteModalIsOpen:pt,deleteModal:()=>{},submitForm:()=>mt(!0),createAmendmentAndRedirect:()=>{},handleValidation:()=>{},pageNumber:1,sectionTitle:formRoutes.consultation.sectionTitle,continueLink:""};return usePreventUnload(At),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormContainer$1,{isLocked:!1,...Wt,handleValidation:Ut=>{},sidePanelWidth:"756px",showMxPlanSidePanel:!0,showDT:xt,children:[zt&&jsxRuntimeExports.jsx(LoadingSpinner,{}),Tt&&jsxRuntimeExports.jsx("div",{style:{height:"100%",width:"100%",padding:"8px"},children:jsxRuntimeExports.jsx(Formik,{enableReinitialize:!0,initialValues:It,onSubmit:()=>{},children:({values:Ut})=>jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle,{"data-test-id":"consultation-page-header",children:"Consultation"}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Timepoint",fieldName:"timepoint",children:jsxRuntimeExports.jsx(Field,{name:"timepoint",component:SelectFieldBase,options:mapListData$1(tt==null?void 0:tt.timepointOptions),placeholder:"Please choose...",updateMutation:Vt=>Jt("timepoint",Vt)})}),Ut.distressScorePdf&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(SectionTitleWrapper,{children:[jsxRuntimeExports.jsx(SectionTitle,{className:"new-superscript",children:"DISTRESS SCREENING"}),jsxRuntimeExports.jsx(GreyLine,{})]}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Reviewed distress thermometer",fieldName:"reviewedDt",children:jsxRuntimeExports.jsx(Field,{name:"reviewedDt",component:CheckboxField,label:"Yes",handleMutation:Vt=>Jt("reviewedDt",Vt)})}),jsxRuntimeExports.jsxs(SectionWrapper,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Distress score",fieldName:"distressScore",labelClass:"pl-3",children:jsxRuntimeExports.jsx(Field,{name:"distressScore",component:SelectFieldBase,options:mapListData$1(sortScoreOptions(tt==null?void 0:tt.scoreOptions)),placeholder:"Please select...",updateMutation:Vt=>Jt("distressScore",Number(Vt))})}),jt(Ut.distressScore)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:"Score >= 7 check-in status",fieldName:"checkInStatus",labelClass:"pl-3",children:[jsxRuntimeExports.jsx(Field,{name:"checkInStatus",component:SelectFieldBase,options:mapListData$1(tt==null?void 0:tt.checkInStatusOptions),placeholder:"Please select...",updateMutation:Vt=>Jt("checkInStatus",Vt)}),jsxRuntimeExports.jsxs(InfoWrapper,{children:[jsxRuntimeExports.jsx(InfoIcon,{}),"Score >= 7 requires a check-in with patient prior to next appointment"]})]}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Check-in notes",fieldName:"checkInNotes",labelClass:"pl-3",children:jsxRuntimeExports.jsx(Field,{name:"checkInNotes",component:TextAreaField,placeholder:"Please provide details i.e. date of check in",updateMutation:Vt=>Jt("checkInNotes",Vt),multiline:!0,maxLength:2048})})]})]})]}),jsxRuntimeExports.jsxs(SectionTitleWrapper,{children:[jsxRuntimeExports.jsx(SectionTitle,{children:"CONSULTATION"}),jsxRuntimeExports.jsx(GreyLine,{})]}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Patient concerns/needs",fieldName:"patientConcernsNeeds",tooltipElement:jsxRuntimeExports.jsx(HelpOutline,{color:"primary",onClick:()=>Ot(!0)}),children:jsxRuntimeExports.jsx(Field,{name:"patientConcernsNeeds",placeholder:"Please provide more details",component:TextAreaField,updateMutation:Vt=>Jt("patientConcernsNeeds",Vt),multiline:!0,maxLength:2048})}),jsxRuntimeExports.jsx(SectionWrapper,{children:jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Goals of care",fieldName:"goalOfCare",children:jsxRuntimeExports.jsx(TextAreaFieldGroup,{name:"goalOfCare",parentField:"Parent Field",values:Ut==null?void 0:Ut.goalOfCare,deleteMutation:Ft,createMutation:()=>Qt(),updateMutation:Vt=>{var Ht,Gt;return Bt((Ht=Vt==null?void 0:Vt.variables)==null?void 0:Ht.id,(Gt=Vt==null?void 0:Vt.variables)==null?void 0:Gt.goal)},placeholder:"Describe goal",addButtonText:"Add another goal of care",helperMessageType:"info",textFieldValue:"goal",textFieldName:"goalOfCare",isManagementForm:!0})})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Plan of care",fieldName:"planOfCare",children:jsxRuntimeExports.jsx(Field,{name:"planOfCare",component:TextAreaField,placeholder:"Please provide details on how you address goals or concerns identified",updateMutation:Vt=>Jt("planOfCare",Vt),multiline:!0,maxLength:2048})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Resources provided",fieldName:"resourcesProvided",children:jsxRuntimeExports.jsx(Field,{name:"resourcesProvided",component:TextAreaField,placeholder:"Please provide more details",updateMutation:Vt=>Jt("resourcesProvided",Vt),multiline:!0,maxLength:2048})}),$t&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:"Review comments",fieldName:"reviewComments",children:jsxRuntimeExports.jsx(Field,{name:"reviewComments",component:TextAreaField,updateMutation:Vt=>Jt("reviewComments",Vt),multiline:!0,maxLength:2048})})]})})})]}),vt&&jsxRuntimeExports.jsx(ModalConsultationDiscussion,{isOpen:vt,title:"Consultation discussion guide",setIsOpen:Ot}),dt&&jsxRuntimeExports.jsx(ModalDeleteForm,{isOpen:dt,title:"Discard Consultation",setIsOpen:pt,deleteFormMutation:()=>qt({variables:{formId:lt}}).then(()=>rt.push(generatePath(managementDashboardLink,{patientId:nt})))}),ht&&jsxRuntimeExports.jsx(ModalSubmitForm,{isOpen:ht,setIsOpen:mt,submitFormMutation:()=>{kt({variables:{formId:lt}}).then(()=>rt.push(generatePath(managementDashboardLink,{patientId:nt})))}}),jsxRuntimeExports.jsx(Prompt,{when:At,message:LEAVE_PAGE_WARNING})]})},StyledRow=styled(Grid)`
  margin: 16px 0;
  align-items: center;
  background-color: ${et=>et.theme.palette.grey[100]};
  border-radius: 4px;
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  min-height: 56px;

  & > div {
    padding: 16px;
  }
`,ReviewIcon=styled(RateReviewOutlinedIcon)`
  width: 24px;
  height: 24px;
  margin-left: 4px;
  cursor: pointer;
`,DeleteIcon=styled(SvgDelete)`
  width: 24px;
  height: 24px;
  margin-left: 4px;
  cursor: pointer;
  path {
    fill: ${et=>et.theme.palette.error.main};
    fill-opacity: 1;
  }
`,StyledArchiveIcon=styled(ArchiveIcon)`
  width: 26px;
  height: 26px;
  margin-left: 4px;
  cursor: pointer;
`,CircleDiv=styled("div")`
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 10px;
`,StatusDiv=styled("div")`
  display: flex;
`,LastModified=styled("div")`
  font-size: 13px;
  line-height: 15px;
`,ManagementPlanRow=et=>{const tt=useHistory(),rt=useTheme$1(),{plan:nt,index:lt,handleDuplicate:ut,handleDelete:dt,handleArchive:pt,patient:ht}=et,mt=nt.status===STATUS_ARCHIVED,xt=nt.status===STATUS_IN_PROGRESS,Mt=xt?nt.isReview?"Continue review":"Continue":"Review",vt=xt?nt.isReview?"Discard review":"Discard":"Deactivate",Ot=zt=>tt.push(`/patient/${ht.id}/management/${zt}/consultation`),At=hooks(nt.updatedAt).format("DD/MM/YYYY HH:mm A"),Rt=zt=>{const Tt={"In progress":`${rt.palette.warning.dark}`,"Submitted to MQ":`${rt.palette.primary.main}`,Submitted:`${rt.palette.primary.main}`,Inactive:`${rt.palette.grey[600]}`};return jsxRuntimeExports.jsx(CircleDiv,{style:{background:Tt[zt]}})};return jsxRuntimeExports.jsxs(StyledRow,{container:!0,children:[jsxRuntimeExports.jsxs(Grid,{sm:4,children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(RowText,{"data-test-id":`plan-title-${lt}`,children:`${nt.planType} ${nt.timepoint&&`(${nt.timepoint})`}`},`plan-${lt}`)}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(LastModified,{children:`Last modified: ${At}`})})]}),jsxRuntimeExports.jsx(Grid,{sm:2,children:jsxRuntimeExports.jsxs(StatusDiv,{children:[Rt(nt.status)," ",jsxRuntimeExports.jsx("div",{"data-test-id":`plan-status-${lt}`,className:"d-inline-block",children:nt.status},`status-${lt}`)]})}),jsxRuntimeExports.jsx(Grid,{sm:3,display:"flex",justifyContent:"flex-end",children:!mt&&jsxRuntimeExports.jsx(Button,{sx:{marginRight:2},"data-testid":`management-review-${lt}`,startIcon:jsxRuntimeExports.jsx(ReviewIcon,{color:"primary"}),onClick:()=>{xt?Ot(nt.id):ut(nt.id).then(({data:zt})=>{Ot(zt==null?void 0:zt.duplicateManagementPlan.managementPlan.id)})},size:"large",children:Mt},`management-review-${lt}`)}),jsxRuntimeExports.jsx(Grid,{sm:3,display:"flex",justifyContent:"flex-end",children:!mt&&jsxRuntimeExports.jsx(Button,{sx:{marginRight:2},startIcon:vt==="Deactivate"?jsxRuntimeExports.jsx(StyledArchiveIcon,{color:"primary"}):jsxRuntimeExports.jsx(DeleteIcon,{}),onClick:()=>{xt?dt(nt.id):pt(nt.id)},size:"large",children:vt},`management-discard-${lt}`)})]})},StyledSideDrawer=styled$1(SideDrawer)`
  z-index: 1000;
  margin-top: 8px;
  padding-top: 0 !important;
  min-width: ${({$width:et})=>et||"768"}px;
  max-height: calc(100% - 130px);

  & > div {
    width: 100%;
    padding: 0;

    div {
      margin: 0;
      width: 100%;
    }

    .tab-link {
      width: fit-content;
    }
  }

  @media screen and (max-width: ${supportedSize.desktop-1}px) {
    width: 50%;
    top: unset;
    z-index: 2000;
    margin-right: 15px;
    max-height: calc(100% - 140px);
  }
`,ManagementPlanSideDrawer=({children:et,width:tt,...rt})=>{const nt="mx-side-drawer",[lt,ut]=reactExports.useState(!1),pt=useWindowSize().width<supportedSize.desktop;return jsxRuntimeExports.jsx(StyledSideDrawer,{id:nt,isOpen:lt,showToggleBtn:pt,toggleBtn:jsxRuntimeExports.jsx(SideDrawerToggle,{id:`${nt}-toggle-btn`,"data-test-id":`${nt}-toggle`,onClick:()=>ut(!lt),primaryIcon:lt?jsxRuntimeExports.jsx(CloseIcon,{htmlColor:"white"}):jsxRuntimeExports.jsx(MoreHorizIcon,{htmlColor:"white"}),text:lt?"Close":"More Info"}),$width:tt,...rt,children:et})},tabOptions=[{label:"DISTRESS THERMOMETER",id:"distress"},{label:"ACTIVITY LOG",id:"activity"},{label:"REFERRAL",id:"referral"}],StyledDivContainer=styled$1("div")`
  @media screen and (min-width: ${supportedSize.desktop}) {
    width: 580px;
  }

  height: 100%;
  background-color: white;
  margin: ${({$margin:et})=>et};
  box-shadow: ${({$boxShadow:et})=>et};
  border-radius: ${({$borderRadius:et})=>et};
  display: flex;
  flex-direction: column;
`,TabLinksWrapper=styled$1("div")`
  height: 48px;
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  display: flex;
  justify-content: start;
  padding-left: 16px;
  padding-top: 8px;
  gap: 8px;
`,StyledTab=styled$1("div")`
  border-bottom: ${({$borderBottom:et})=>et};
  width: auto;
  whitespace: nowrap;
  color: ${({$color:et})=>et};
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 16px;
  padding-top: 16px;
`,ContentWrapper$2=styled$1("div")`
  height: 100%;
  overflow: auto;

  tr:hover {
    background-color: unset !important;
    border-radius: unset !important;
    cursor: unset !important;
  }
`,HeadingWrapper=styled$1("div")`
  display: flex;
  justify-content: space-between;
  align-items: center;
`,Timepoint=styled$1("div")`
  color: ${et=>et.theme.palette.text.primary};
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  padding: 0.5em;
`,StyledDate=styled$1("div")`
  font-size: 14px;
  text-align: right;
  padding: 0.5em;
`,Tag=styled$1("div")`
  background-color: ${et=>et.theme.palette.grey[100]};
  border-radius: 16px;
  max-width: 110px;
  font-size: 14px;
  text-align: center;
  padding: 0.5em;
`,ListTitle=styled$1("div")`
  font-weight: bold;
  margin-bottom: 7px;
`,TableRow=styled$1("tr")`
  line-height: 1.5em;
`,ManagementPlanSidePanel=({showDT:et,activeTabOption:tt,blur:rt})=>{var Wt;const{setError:nt}=useErrorModalContext(),{patientId:lt}=useParams();let ut=et?tabOptions:tabOptions.filter(Ut=>Ut.id!=="distress");const[dt,pt]=reactExports.useState(tt||ut[0].id),ht={$margin:rt?"0px":"8px 0px 0px 8px",$boxShadow:rt?"-2px 0px 2px rgba(113, 110, 106, 0.4)":"0px 2px 8px rgba(113, 110, 106, 0.4)",$borderRadius:rt?"0px":"4px"},mt=useTheme$1(),{loading:xt,data:Mt,error:vt}=useQuery(SUBMITTED_MANAGEMENT_PLAN_QUERY,{variables:{patientId:lt}}),{loading:Ot,data:At,error:Rt}=useQuery(ALL_REFERRAL_EXISTING_SERVICE_QUERY,{variables:{patientId:lt}}),{loading:zt,data:Tt,error:Ct}=useQuery(GET_DISTRESS_THERMOMETER_PDF,{variables:{patientId:lt}});reactExports.useEffect(()=>{if(vt||Rt||Ct)return nt()},[vt,Rt,Ct]),reactExports.useEffect(()=>{ut=et?tabOptions:tabOptions.filter(Ut=>Ut.id!=="distress"),pt(tt||ut[0].id)},[et]);const It=Mt==null?void 0:Mt.submittedManagementPlan,Dt=(Wt=At==null?void 0:At.allReferralExistingServices)==null?void 0:Wt.map(Ut=>Ut==null?void 0:Ut.referral).flat(),kt=xt||Ot||zt,qt=Ut=>{const Vt="tab-link",{label:Ht,id:Gt}=Ut.option,Zt={$borderBottom:dt===Gt?`5px solid ${mt.palette.primary.main}`:"5px solid transparent",$color:dt===Gt?`${mt.palette.text.primary}`:`${mt.palette.grey[600]}`};return jsxRuntimeExports.jsx(StyledTab,{id:`${Vt}-${Gt}`,"data-test-id":`${Vt}-${Gt}`,className:Vt,style:{padding:"4px",alignContent:"center"},...Zt,onClick:()=>pt(Gt),children:Ht})},Nt=reactExports.useCallback(()=>{var Vt;const Ut=(Vt=Tt==null?void 0:Tt.dtPdf[0])==null?void 0:Vt.docUrl;return Ut?jsxRuntimeExports.jsx("iframe",{title:"patientDistressThermometer",src:Ut.concat("#view=fitH"),width:"100%",height:"100%",style:{flex:1},onError:()=>{nt()},children:"This browser does not support PDFs."}):jsxRuntimeExports.jsx("span",{children:"Unable to locate Distress Thermometer PDF in Mosaiq"})},[Tt]),Yt=({item:Ut})=>Ut.title.includes("Distress thermometer")?jsxRuntimeExports.jsx("li",{style:{listStyleType:"disc",marginBottom:"10px"},"data-test-id":`item-${Ut.fieldName}`,children:jsxRuntimeExports.jsx(ListTitle,{children:Ut.title})}):Ut.content&&Ut.title?jsxRuntimeExports.jsxs("li",{style:{listStyleType:"disc",marginBottom:"10px"},children:[jsxRuntimeExports.jsx(ListTitle,{children:Ut.title}),jsxRuntimeExports.jsx("div",{className:"py-1","data-test-id":`item-${Ut.fieldName}`,children:Ut.content})]}):jsxRuntimeExports.jsx("span",{}),Kt=({sections:Ut,index:Vt})=>{const Ht=Qt(Ut,"distress_score"),Gt=Qt(Ut,"check_in_status"),Zt=Qt(Ut,"check_in_notes");return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ht.content&&jsxRuntimeExports.jsx("li",{style:{listStyleType:"disc"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",width:"25%",marginBottom:"8px"},"data-test-id":"item-distress-score",children:[jsxRuntimeExports.jsx(ListTitle,{children:Ht.title}),Ht.content]})},Vt+"distress_score"),Gt.content&&jsxRuntimeExports.jsx("li",{style:{listStyleType:"disc",marginBottom:"10px",marginLeft:"24px"},"data-test-id":"item-check-in-status",children:Gt.content},Vt+"check_in_status"),Zt.content&&jsxRuntimeExports.jsx("li",{style:{listStyleType:"disc",marginBottom:"10px",marginLeft:"24px"},"data-test-id":"item-check-in-notes",children:Zt.content},Vt+"check_in_notes")]})},Jt=({count:Ut})=>jsxRuntimeExports.jsx("span",{style:{paddingLeft:"4px",paddingRight:"4px"},children:jsxRuntimeExports.jsxs("svg",{className:"referral-circle",height:"20",width:"20",children:[jsxRuntimeExports.jsx("circle",{cx:"10",cy:"10",r:"10",fill:mt.palette.grey[600]}),jsxRuntimeExports.jsx("text",{fontSize:"14px",x:"30%",y:"70%",fill:"white","data-test-id":"referral-count",children:Ut})]})}),Qt=(Ut,Vt)=>{const Ht=Ut==null?void 0:Ut.filter(Gt=>Gt.field===Vt)[0];return{title:Ht.title,content:Ht.content,fieldName:Vt}},jt={distress:Nt,activity:()=>!It||!It.length?jsxRuntimeExports.jsx(Stack$5,{sx:{padding:"8px"},children:"No submission has been made."}):jsxRuntimeExports.jsx(Stack$5,{sx:{padding:"8px",maxWidth:"700px"},children:It.map((Ut,Vt)=>{const Ht=Ut.activityLog.sections,Gt=Ut.activityLog.goalOfCare;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[Vt!==0&&jsxRuntimeExports.jsx(Divider$1,{style:{margin:"8px 4px"}}),jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsxs(HeadingWrapper,{style:{marginBottom:"8px"},children:[jsxRuntimeExports.jsx(Timepoint,{"data-test-id":"timepoint",children:Ut.timepoint}),Ut.archivedAt&&jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Tag,{children:"Archived"})}),jsxRuntimeExports.jsx(StyledDate,{children:hooks(Ut.updatedAt).format("DD/MM/YYYY HH:mm A")})]}),jsxRuntimeExports.jsxs("ul",{style:{marginLeft:"16px"},children:[jsxRuntimeExports.jsx(Yt,{item:Qt(Ht,"reviewed_dt")},`${Vt} 'reviewed_dt'`)," ",jsxRuntimeExports.jsx(Kt,{sections:Ht,index:Vt}),jsxRuntimeExports.jsx(Yt,{item:Qt(Ht,"patient_concerns_needs")},`${Vt} patient_concerns_needs`),Gt.map((Zt,Xt)=>jsxRuntimeExports.jsx(Yt,{item:{title:`Goal of care #${Xt+1}:`,content:Zt.goal,fieldName:"goalOfCare"}},`${Vt} ${Xt} goalOfCare`)),jsxRuntimeExports.jsx(Yt,{item:Qt(Ht,"plan_of_care")},`${Vt} plan_of_care`),jsxRuntimeExports.jsx(Yt,{item:Qt(Ht,"resources_provided")},`${Vt} resources_provided`),jsxRuntimeExports.jsx(Yt,{item:Qt(Ht,"review_comments")},`${Vt} review_comments`)]})]},`activity-log-${Vt}`)]},`activity-log-${Vt}`)})}),referral:()=>{const Ut="referral";return Dt!=null&&Dt.length?jsxRuntimeExports.jsxs("table",{style:{padding:"8px",border:`1px solid ${mt.palette.grey[300]}`,width:"100%"},id:`${Ut}-table`,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{style:{width:"100%"},children:jsxRuntimeExports.jsx("th",{style:{padding:"18px 25px",textAlign:"left",backgroundColor:mt.palette.grey[100]},colSpan:3,children:jsxRuntimeExports.jsxs("span",{style:{display:"flex",alignItems:"center"},children:["Referral",jsxRuntimeExports.jsx(Jt,{count:Dt.length})]})})})}),jsxRuntimeExports.jsx("tbody",{children:Dt.map((Vt,Ht)=>jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx("td",{style:{padding:"18px 0 18px 25px"},children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{"data-test-id":`referral-${Ht}-service-type`,children:Vt.serviceType==="Other"?jsxRuntimeExports.jsxs("div",{children:[Ht+1,". ",Vt.serviceType,":"," ",Vt.description===""?"Not Specified":Vt.description]}):Ht+1+". "+Vt.serviceType}),jsxRuntimeExports.jsx("div",{style:{fontWeight:"bold"},"data-test-id":`referral-${Ht}-name`,children:Vt.name})]})}),jsxRuntimeExports.jsx("td",{style:{padding:"18px 0 18px 25px"},children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:"Contact"}),jsxRuntimeExports.jsx("div",{style:{fontWeight:"bold"},"data-test-id":`referral-${Ht}-contact`,children:Vt.contactDetails})]})}),jsxRuntimeExports.jsx("td",{style:{padding:"18px 0 18px 25px"},children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:"Date submitted"}),jsxRuntimeExports.jsx("div",{style:{fontWeight:"bold"},"data-test-id":`referral-${Ht}-date-submitted`,children:hooks(Vt.submittedAt).format("DD/MM/YYYY")})]})})]},`referral-${Ht}`))})]}):jsxRuntimeExports.jsx(Stack$5,{sx:{padding:"8px"},children:"No referrals made."})}}[dt];return jsxRuntimeExports.jsxs(StyledDivContainer,{...ht,children:[jsxRuntimeExports.jsx(TabLinksWrapper,{children:ut.map(Ut=>jsxRuntimeExports.jsx(qt,{option:Ut},Ut.id))}),jsxRuntimeExports.jsx(ContentWrapper$2,{style:{padding:"8px"},children:kt?jsxRuntimeExports.jsx(LoadingSpinner,{}):jsxRuntimeExports.jsx(jt,{})})]})},ManagementPlanSidePanel$1=reactExports.memo(ManagementPlanSidePanel),ManagementSearchPage=et=>{const tt="mx-search-page-container",{patient:rt,plans:nt}=et,[lt,ut]=reactExports.useState(!1),[dt,pt]=reactExports.useState(!1),[ht,mt]=reactExports.useState(""),[xt]=useMutation(DUPLICATE_MANAGEMENT_PLAN,{awaitRefetchQueries:!0,refetchQueries:[{query:ALL_MANAGEMENT_PLAN_QUERY,variables:{patientId:rt.id}},{query:SUBMITTED_MANAGEMENT_PLAN_QUERY,variables:{patientId:rt.id}}]}),[Mt]=useMutation(DELETE_MANAGEMENT_PLAN,{awaitRefetchQueries:!0,refetchQueries:[{query:ALL_MANAGEMENT_PLAN_QUERY,variables:{patientId:rt.id}}]}),[vt]=useMutation(ARCHIVE_MANAGEMENT_PLAN,{awaitRefetchQueries:!0,refetchQueries:[{query:ALL_MANAGEMENT_PLAN_QUERY,variables:{patientId:rt.id}},{query:SUBMITTED_MANAGEMENT_PLAN_QUERY,variables:{patientId:rt.id}}]}),Ot=nt==null?void 0:nt.filter(zt=>!zt.archivedAt),At=nt==null?void 0:nt.filter(zt=>zt.archivedAt),Rt=Ot==null?void 0:Ot.concat(At);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Stack$5,{sx:{height:"100%",width:"100%",padding:"8px"},id:tt,children:[jsxRuntimeExports.jsx(PatientCard,{id:rt.id,simple:!0}),jsxRuntimeExports.jsxs(Stack$5,{style:{height:"100%"},direction:"row",children:[jsxRuntimeExports.jsxs(Stack$5,{sx:{height:"100%",width:"100%",padding:"16px",boxShadow:"0 .5rem 1rem #00000026 !important"},children:[jsxRuntimeExports.jsx(HeaderTitle,{"data-test-id":"management-search-header",children:"Management plans"}),Rt!=null&&Rt.length?Rt==null?void 0:Rt.map((zt,Tt)=>jsxRuntimeExports.jsx(ManagementPlanRow,{plan:zt,index:Tt,handleDuplicate:Ct=>xt({variables:{formId:Ct}}),handleDelete:Ct=>{mt(Ct),ut(!0)},handleArchive:Ct=>{mt(Ct),pt(!0)},patient:rt},`management-plan-${Tt}`)):jsxRuntimeExports.jsx("div",{style:{padding:"16px 0"},"data-test-id":"no-mx-plan-status",children:"No management plan has been created."})]}),jsxRuntimeExports.jsx(ManagementPlanSideDrawer,{width:580,style:{paddingTop:"8px"},children:jsxRuntimeExports.jsx(ManagementPlanSidePanel$1,{showDT:!1})})]})]}),lt&&jsxRuntimeExports.jsx(ModalDeleteForm,{isOpen:lt,title:"Discard Wellbeing Management Plan",setIsOpen:ut,deleteFormMutation:()=>Mt({variables:{formId:ht}}),discard:!0}),dt&&jsxRuntimeExports.jsx(ModalDeleteForm,{isOpen:dt,title:"Deactivate Wellbeing Management Plan",setIsOpen:pt,deleteFormMutation:()=>vt({variables:{formId:ht}}),discard:!1})]})},StyledFormRow=styled$1(FormRow$2)`
  margin-top: 0.3rem !important;
  margin-bottom: 0.3rem !important;

  label {
    padding-left: 1rem !important;
  }
`;styled$1("span")`
  margin-top: 1.5rem !important;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
`;const ReferralPage=({patient:et,listData:tt})=>{var Bt,Ft;const rt="referral",nt=useHistory(),{patientId:lt,formId:ut}=useParams(),{setError:dt}=useErrorModalContext(),[pt,ht]=reactExports.useState(!1),[mt,xt]=reactExports.useState(!1),[Mt,vt]=reactExports.useState(!0),[Ot]=useMutation(CREATE_REFERRAL,{awaitRefetchQueries:!0,refetchQueries:[{query:REFERRAL_EXISTING_SERVICE_QUERY,variables:{formId:ut}}]}),[At]=useMutation(DELETE_REFERRAL,{awaitRefetchQueries:!0,refetchQueries:[{query:REFERRAL_EXISTING_SERVICE_QUERY,variables:{formId:ut}}]}),[Rt]=useMutation(UPDATE_REFERRAL),[zt]=useMutation(SUBMIT_REFERRAL_EXISTING_SERVICE,{awaitRefetchQueries:!0,refetchQueries:[{query:ALL_REFERRAL_EXISTING_SERVICE_QUERY,variables:{patientId:lt}}]}),[Tt]=useMutation(DELETE_REFERRAL_EXISTING_SERVICE,{awaitRefetchQueries:!0,refetchQueries:[{query:REFERRAL_EXISTING_SERVICE_QUERY,variables:{formId:ut}}]}),{loading:Ct,data:It,error:Dt}=useQuery(REFERRAL_EXISTING_SERVICE_QUERY,{variables:{formId:ut}}),kt={referral:(Bt=It==null?void 0:It.referralExistingServices)==null?void 0:Bt.referral};reactExports.useEffect(()=>{if(Dt)return dt()},[Dt]),reactExports.useEffect(()=>{(pt||mt)&&vt(!1)},[pt,mt]);const qt=()=>{Ot({variables:{referralExistingServiceId:ut}})},Nt=$t=>At({variables:{referralId:$t}}),Yt=($t,jt,Wt)=>{Rt(jt==="serviceType"&&Wt!=="Other"?{variables:{referralId:$t,[jt]:Wt,description:""}}:{variables:{referralId:$t,[jt]:Wt}})},Kt=()=>{zt({variables:{referralExistingServiceId:ut}}),nt.push(generatePath(managementDashboardLink,{patientId:lt}))},Jt=()=>{Tt({variables:{referralExistingServiceId:ut}}),nt.push(generatePath(managementDashboardLink,{patientId:lt}))},Qt={updatedBy:"",patient:et,saveAndExitLink:generatePath(managementDashboardLink,{patientId:lt}),setDeleteModalIsOpen:ht,deleteModal:()=>{},submitForm:()=>xt(!0),showSaveAndExit:!1,createAmendmentAndRedirect:()=>{},handleValidation:()=>{},pageNumber:1,sectionTitle:formRoutes.consultation.sectionTitle,continueLink:""};return usePreventUnload(Mt),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormContainer$1,{isLocked:!1,...Qt,handleValidation:$t=>{},sidePanelWidth:"756px",showMxPlanSidePanel:!0,showDT:!1,activeTabOption:rt,children:[Ct&&jsxRuntimeExports.jsx(LoadingSpinner,{}),It&&((Ft=It.referralExistingServices)==null?void 0:Ft.referral)&&jsxRuntimeExports.jsx(FormWrapper,{children:jsxRuntimeExports.jsx(Formik,{enableReinitialize:!0,initialValues:kt,onSubmit:()=>{},children:({values:$t})=>jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(HeaderTitle,{"data-test-id":"referral-page-header",children:"Referral"}),jsxRuntimeExports.jsxs(SectionTitleWrapper,{children:[jsxRuntimeExports.jsx(SectionTitle,{children:"REFERRAL"}),jsxRuntimeExports.jsx(GreyLine,{})]}),jsxRuntimeExports.jsx(FieldArray,{name:rt,render:({remove:jt})=>{const Wt=$t==null?void 0:$t.referral,Ut=(Wt==null?void 0:Wt.length)??0;return jsxRuntimeExports.jsxs("div",{children:[Ut>0&&(Wt==null?void 0:Wt.map((Vt,Ht)=>jsxRuntimeExports.jsx(SectionWrapper,{children:jsxRuntimeExports.jsxs(Stack$5,{sx:{display:"flex",flexDirection:"row"},children:[jsxRuntimeExports.jsxs(Stack$5,{sx:{width:"100%"},children:[jsxRuntimeExports.jsx(StyledFormRow,{fieldLabel:`Referral #${Ht+1}`,fieldName:"name",children:jsxRuntimeExports.jsx(Field,{name:`referral.${Ht}.name`,component:TextAreaField,placeholder:"Type referral name",updateMutation:Gt=>Yt(Vt.id,"name",Gt)})}),jsxRuntimeExports.jsx(StyledFormRow,{fieldLabel:"Type",fieldName:`serviceType.${Ht}`,children:jsxRuntimeExports.jsx(Field,{name:`referral.${Ht}.serviceType`,component:SelectFieldBase,options:mapListData$1(tt==null?void 0:tt.serviceTypeOptions),placeholder:"Please select...",updateMutation:Gt=>Yt(Vt.id,"serviceType",Gt)})}),Vt.serviceType==="Other"&&jsxRuntimeExports.jsx(StyledFormRow,{fieldName:"description",children:jsxRuntimeExports.jsx(Field,{name:`referral.${Ht}.description`,component:TextAreaField,placeholder:"Please specify other referral type",updateMutation:Gt=>Yt(Vt.id,"description",Gt)})}),jsxRuntimeExports.jsx(StyledFormRow,{fieldLabel:"Contact details",fieldName:"contactDetails",children:jsxRuntimeExports.jsx(Field,{name:`referral.${Ht}.contactDetails`,component:TextAreaField,placeholder:"Please provide contact details such as phone number, email address or clinic address",updateMutation:Gt=>Yt(Vt.id,"contactDetails",Gt),rows:3})})]}),jsxRuntimeExports.jsx(Stack$5,{paddingTop:1,children:Ut>1&&jsxRuntimeExports.jsx(IconButton,{color:"primary",sx:{marginLeft:.5},"data-testid":`remove-icon-referral-${Ht}`,onClick:()=>{jt(Ht),Nt(Vt.id)},children:jsxRuntimeExports.jsx(RemoveCircleOutline,{})})})]})},Ht))),jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Stack$5,{children:jsxRuntimeExports.jsx(StyledFormRow,{children:jsxRuntimeExports.jsx(Button,{variant:"text",onClick:()=>{qt()},sx:{marginRight:"auto"},"data-test-id":"add-referral-button",startIcon:jsxRuntimeExports.jsx(AddCircleOutlineIcon,{color:"primary"}),children:"Add another referral"})})}),Ut>1&&jsxRuntimeExports.jsx(Stack$5,{})]})]})}})]})})})]}),pt&&jsxRuntimeExports.jsx(ModalDeleteForm,{isOpen:pt,title:"Discard New Referral Details?",setIsOpen:ht,deleteFormMutation:()=>Jt()}),mt&&jsxRuntimeExports.jsx(ModalSubmitForm,{isOpen:mt,setIsOpen:xt,submitFormMutation:()=>{Kt()},submitText:"Submit referral"}),jsxRuntimeExports.jsx(Prompt,{when:Mt,message:LEAVE_PAGE_WARNING})]})},MiddleContainerCol=styled$1(Stack$5)`
  display: flex;
  max-height: 100%;
  height: 100%;
  width: 100%;

  #form-footer {
    @media screen and (min-width: 767px) and (max-width: 1919px) {
      width: 100%;
      position: relative;
      right: 0;
    }
  }
`,StyledSidePatientNavCol=styled$1(Stack$5)`
  max-width: 240px;
  min-width: 240px;
  height: 100%;
  background-color: ${et=>et.theme.palette.grey[100]};
  border-right: 1px solid rgba(0, 0, 0, 0.2);
`,StyledSidePatientNav$1=styled$1(SidePatientNav)`
  max-width: 240px;
  min-width: 240px;
  height: 100vh;
`,ManagementPlan=()=>{const et=useHistory(),{patientId:tt}=useParams(),{setError:rt}=useErrorModalContext();useQuery(PREFETCH_PATIENT_DOCUMENTS,{variables:{patientId:tt},skip:!tt,fetchPolicy:"network-only"});const{loading:nt,data:lt,error:ut}=useQuery(QUERY_NURSE,{variables:{id:tt}}),{loading:dt,data:pt,error:ht}=useQuery(ALL_MANAGEMENT_PLAN_QUERY,{variables:{patientId:tt}});reactExports.useEffect(()=>{if(ut||ht)return rt()},[ut,ht]);const{path:mt}=useRouteMatch(),Mt=window.location.pathname.split("/").slice(-1)[0]==="management",[vt]=useMutation(CREATE_MANAGEMENT_PLAN,{awaitRefetchQueries:!0,refetchQueries:[{query:ALL_MANAGEMENT_PLAN_QUERY,variables:{patientId:tt}}]}),[Ot]=useMutation(CREATE_REFERRAL_EXISTING_SERVICE,{awaitRefetchQueries:!0,refetchQueries:[{query:ALL_MANAGEMENT_PLAN_QUERY,variables:{patientId:tt}}]}),At=lt==null?void 0:lt.patient,Rt=pt==null?void 0:pt.allManagementPlan,zt=nt||dt,Tt=At,Ct=Rt==null?void 0:Rt.some(Nt=>[STATUS_IN_PROGRESS,STATUS_SUBMITTED].includes(Nt.status)),It=()=>vt({variables:{patientId:tt,planType:"Wellbeing"}}).then(({data:Nt})=>{const Yt=Nt==null?void 0:Nt.createManagementPlan.managementPlan.id;et.push(generatePath(formRoutes.consultation.path,{patientId:tt,formId:Yt}))}),Dt=()=>Ot({variables:{patientId:tt}}).then(({data:Nt})=>{const Yt=Nt==null?void 0:Nt.createReferralExistingService.referralExistingService.id;et.push(generatePath(formRoutes.referral.path,{patientId:tt,formId:Yt}))}),kt={timepointOptions:(pt==null?void 0:pt.timepointOptions)||[],scoreOptions:(pt==null?void 0:pt.scoreOptions)||[],checkInStatusOptions:(pt==null?void 0:pt.checkInStatusOptions)||[]},qt={serviceTypeOptions:(pt==null?void 0:pt.serviceTypeOptions)||[]};return jsxRuntimeExports.jsx(ROBase,{children:jsxRuntimeExports.jsxs("div",{style:{height:"100%"},children:[zt&&jsxRuntimeExports.jsx(LoadingSpinner,{}),Tt&&jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsxs(Stack$5,{sx:{display:"flex",flexDirection:"row",height:"100%"},children:[jsxRuntimeExports.jsx(StyledSidePatientNavCol,{className:"px-0 d-none d-lg-block",children:jsxRuntimeExports.jsx(StyledSidePatientNav$1,{patientId:tt,createManagementPlan:It,createReferralExistingService:Dt,disableCreateButton:Ct,showButtons:Mt})}),jsxRuntimeExports.jsx(MiddleContainerCol,{className:"px-0",children:jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{exact:!0,path:mt,children:jsxRuntimeExports.jsx(ManagementSearchPage,{patient:At,plans:Rt})}),jsxRuntimeExports.jsx(Route,{path:formRoutes.consultation.path,children:jsxRuntimeExports.jsx(ConsultationPage,{patient:At,listData:kt})}),jsxRuntimeExports.jsx(Route,{path:formRoutes.referral.path,children:jsxRuntimeExports.jsx(ReferralPage,{patient:At,listData:qt})})]})})]})})]})})},GET_USER_QUERY=gql`
  {
    user {
      id
      email
      firstName
      lastName
      isPso
      isRo
      isSuperuser
      isShowcaseUser
    }
  }
`;class AppSelector extends reactExports.Component{renderInnerComponent(){return jsxRuntimeExports.jsx(Query,{query:GET_USER_QUERY,fetchPolicy:"network-only",children:({error:tt,data:rt})=>{if(tt)return jsxRuntimeExports.jsx(Redirect,{to:"/error"});if(rt){const{isPso:nt,isRo:lt,isShowcaseUser:ut}=rt.user;return jsxRuntimeExports.jsx("div",{className:"filter-wrapper",children:jsxRuntimeExports.jsx("div",{className:"create-patient-button-wrapper",children:jsxRuntimeExports.jsxs(Stack$5,{gap:"8px",children:[nt&&jsxRuntimeExports.jsx(NavLink,{to:"/search",children:"PAO portal"}),(lt||ut)&&jsxRuntimeExports.jsx(NavLink,{to:"/radiation",children:"RO portal"})]})})})}return jsxRuntimeExports.jsx("div",{children:"Loading..."})}})}render(){return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{id:"navbar-container",children:jsxRuntimeExports.jsx(HorizonLogoNavigator,{linkToSearch:!1})}),jsxRuntimeExports.jsx("div",{className:"CC-dashboard-wrapper",children:jsxRuntimeExports.jsxs("div",{className:"patient-dashboard-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"title-wrapper",children:jsxRuntimeExports.jsx("div",{className:"table-title-wrapper",children:jsxRuntimeExports.jsx("span",{className:"table-title",children:"App selector"})})}),this.renderInnerComponent()]})})]})}}const FormContext=reactExports.createContext({mutations:{},typeOfResidenceRefData:[]}),HEALTH_ASSESSMENT_QUERY=gql`
  query HealthAssessment($id: ID!, $status: String!) {
    healthAssessment(id: $id, status: $status) {
      id
      status
      accommodationAssistance
      alcoholBool
      alcoholFrequency
      inPain
      inPainReason
      smokingBool
      smokingFrequency
      smokingHistory
      smokingStopDate
      smokingStopRawMonth
      smokingStopRawYear
      transportationAssistance
      transportationAssistanceReason
      wellbeingIssue
      wellbeingIssues {
        id
        ...HealthAssessmentWellbeingIssue
      }
      diabetes
      diabetesResponses {
        id
        ...HealthAssessmentDiabetesResponse
      }
      activeInjury
      activeInjuryReason
    }
    diabetesRefData: listData(category: "diabetes") {
      id
      name
    }
    wellbeingIssueRefData: listData(category: "wellbeingIssues") {
      id
      name
    }
    alcoholFrequencyRefData: listData(category: "alcohol_frequency") {
      id
      name
    }
    smokingFrequencyRefData: listData(category: "smoking_frequency") {
      id
      name
    }
  }
  ${HEALTH_ASSESSMENT_DIABETES_RESPONSE_FRAGMENT}
  ${HEALTH_ASSESSMENT_WELLBEING_ISSUE_FRAGMENT}
`,REGISTRATION_FORM_QUERY=gql`
  query Patient($id: ID!) {
    patient(id: $id) {
      id
      patientState
      ambulanceMembership
      ambulanceMembershipNumber
      regFormStatus
      occupation
      heritage
    }
    heritageRefData: listData(category: "heritage") {
      id
      name
    }
  }
`,DT_RATING_QUERY=gql`
  query DTRating($patientId: ID!, $status: String!, $version: String!) {
    distressThermometer(patientId: $patientId, status: $status, version: $version) {
      id
      distressRating
      version
    }
  }
`,LATEST_SUBMITTED_CHART_CHECK_QUERY=gql`
  query PreCtChartCheck($patientId: ID!) {
    lastSubmittedPreCtChartCheck(patientId: $patientId) {
      id
      isLocked
      nurseLocation
      patientIdentificationCheck
      patientHeight
      patientWeight
      previousRadiationTreatment
      anticancerDrugs
      chemoPastWeek
      hasImplantedMedicalDevice
      treatmentOverHalfHour
      currentInpatient
      requiresMaskCast
      existingPressureInjuryWound
      implantedMedicalDevice {
        id
        ...ImplantedDevice
      }
      hasInfectiousDisease
      infectiousDisease {
        id
        ...InfectiousDisease
      }
      hasMroInfection
      mroInfection {
        id
        ...MroInfection
      }
      outsideWaLastTwelveMonths
      fallLastTwelveMonths
      safetyConcernsMobility
      hasCurrentAcd
      acdInfoRequested
      hasCurrentResusMxPlan
      staffConcern
      anxietyClaustrophobia
      hasPatientAllergies
      pcccAllergy {
        id
        ...Allergy
      }
      additionalNotes
      lastUpdateUser {
        fieldName
        lastUpdateUser
        updatedDate
      }
    }
  }

  ${PCCC_ALLERGY_FRAGMENT}
  ${PCCC_IMPLANTED_DEVICE_FRAGMENT}
  ${PCCC_INFECTIOUS_DISEASE_FRAGMENT}
  ${PCCC_MRO_INFECTION_FRAGMENT}
`,PRE_CT_TRIAGE_QUERY=gql`
  query PreCtTriage($id: ID!) {
    preCtTriage(id: $id) {
      id
      isAmendment
      isLocked
      nurseLocation
      unintentionalWeightLoss
      hasDecreasedAppetite
      isAlertAndOrientated
      hasAlteredCognitiveState
      hasCurrentPain
      painScore
      isAbleToLieFlat
      isAbleToClimbStairs
      transportMode
      otherTransport
      socialConsiderations
      livesAlone
      livesWith
      isCarer
      carerSpecification
      usualResidence
      usualResidenceSpecify
      staysAtUsualResidence
      otherResidence
      hasPatientCarerConcern
      needsAssistanceAdls
      assistance
      assistanceSpecify
      hasFamilyOrFriend
      familyOrFriendSpecification
      existingSupportService
      existingSupportSpecification
      hasSensoryImpairment
      sensoryImpairments
      sensoryImpairmentsSpecification
      englishSecondLanguage
      primaryLanguage
      requireInterpreter
      otherInformation
      pelvicFitness
      hasHighRiskFactors
      howFactorsWereIdentified
      additionalNotes
      requiresWellbeingMxPlan
      patient {
        id
      }
      updatedBy
      lastUpdateUser {
        fieldName
        lastUpdateUser
        updatedDate
      }
    }
    typeOfResidenceRefData: listData(category: "type_of_residence") {
      id
      name
    }
  }
`,UPDATE_PRE_CT_TRIAGE=gql`
  mutation UpdatePreCtTriage(
    $id: ID!
    $nurseLocation: String
    $unintentionalWeightLoss: Boolean
    $hasDecreasedAppetite: Boolean
    $isAlertAndOrientated: Boolean
    $hasAlteredCognitiveState: Boolean
    $hasCurrentPain: Boolean
    $painScore: String
    $isAbleToLieFlat: Boolean
    $isAbleToClimbStairs: Boolean
    $transportMode: [String]
    $otherTransport: String
    $livesAlone: Boolean
    $livesWith: String
    $isCarer: Boolean
    $carerSpecification: String
    $usualResidence: String
    $usualResidenceSpecify: String
    $staysAtUsualResidence: Boolean
    $otherResidence: String
    $needsAssistanceAdls: Boolean
    $assistance: [String]
    $assistanceSpecify: String
    $hasFamilyOrFriend: Boolean
    $familyOrFriendSpecification: String
    $existingSupportService: Boolean
    $existingSupportSpecification: String
    $hasSensoryImpairment: Boolean
    $sensoryImpairments: [String]
    $sensoryImpairmentsSpecification: String
    $englishSecondLanguage: Boolean
    $primaryLanguage: String
    $requireInterpreter: Boolean
    $otherInformation: String
    $hasPatientCarerConcern: Boolean
    $pelvicFitness: String
    $hasHighRiskFactors: Boolean
    $howFactorsWereIdentified: String
    $additionalNotes: String
  ) {
    updatePreCtTriage(
      id: $id
      nurseLocation: $nurseLocation
      unintentionalWeightLoss: $unintentionalWeightLoss
      hasDecreasedAppetite: $hasDecreasedAppetite
      isAlertAndOrientated: $isAlertAndOrientated
      hasAlteredCognitiveState: $hasAlteredCognitiveState
      hasCurrentPain: $hasCurrentPain
      painScore: $painScore
      isAbleToLieFlat: $isAbleToLieFlat
      isAbleToClimbStairs: $isAbleToClimbStairs
      transportMode: $transportMode
      otherTransport: $otherTransport
      livesAlone: $livesAlone
      livesWith: $livesWith
      isCarer: $isCarer
      carerSpecification: $carerSpecification
      usualResidence: $usualResidence
      usualResidenceSpecify: $usualResidenceSpecify
      staysAtUsualResidence: $staysAtUsualResidence
      otherResidence: $otherResidence
      hasPatientCarerConcern: $hasPatientCarerConcern

      needsAssistanceAdls: $needsAssistanceAdls
      assistance: $assistance
      assistanceSpecify: $assistanceSpecify
      hasFamilyOrFriend: $hasFamilyOrFriend
      familyOrFriendSpecification: $familyOrFriendSpecification
      existingSupportService: $existingSupportService
      existingSupportSpecification: $existingSupportSpecification
      hasSensoryImpairment: $hasSensoryImpairment
      sensoryImpairments: $sensoryImpairments
      sensoryImpairmentsSpecification: $sensoryImpairmentsSpecification

      englishSecondLanguage: $englishSecondLanguage
      primaryLanguage: $primaryLanguage
      requireInterpreter: $requireInterpreter
      otherInformation: $otherInformation

      pelvicFitness: $pelvicFitness
      hasHighRiskFactors: $hasHighRiskFactors
      howFactorsWereIdentified: $howFactorsWereIdentified
      additionalNotes: $additionalNotes
    ) {
      preCtTriage {
        id
        nurseLocation
        unintentionalWeightLoss
        hasDecreasedAppetite
        isAlertAndOrientated
        hasAlteredCognitiveState
        hasCurrentPain
        painScore
        isAbleToLieFlat
        isAbleToClimbStairs
        transportMode
        otherTransport

        socialConsiderations
        livesAlone
        livesWith
        isCarer
        carerSpecification
        usualResidence
        usualResidenceSpecify
        staysAtUsualResidence
        otherResidence
        hasPatientCarerConcern

        needsAssistanceAdls
        assistance
        assistanceSpecify
        hasFamilyOrFriend
        familyOrFriendSpecification
        existingSupportService
        existingSupportSpecification
        hasSensoryImpairment
        sensoryImpairments
        sensoryImpairmentsSpecification

        englishSecondLanguage
        primaryLanguage
        requireInterpreter
        otherInformation

        pelvicFitness
        hasHighRiskFactors
        howFactorsWereIdentified
        additionalNotes
        lastUpdateUser {
          fieldName
          lastUpdateUser
          updatedDate
        }
      }
    }
  }
`,SUBMIT_PRE_CT_TRIAGE=gql`
  mutation createInitialTriageSubmission($id: ID!, $hideNotes: Boolean) {
    createInitialTriageSubmission(id: $id, hideNotes: $hideNotes) {
      submission {
        id
      }
      submissionCreated
    }
  }
`,CognitiveImpairmentRisk=({handleMutation:et,lastUpdateUserData:tt})=>{const{values:rt}=useFormikContext(),{hasAlteredCognitiveState:nt,isAlertAndOrientated:lt}=content.cognitiveImpairmentRisk.fields,{isAlertAndOrientatedQCL:ut,hasAlteredCognitiveStateQCL:dt}=content.cognitiveImpairmentRisk.infoHelpers;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:lt,fieldName:"isAlertAndOrientated",children:[jsxRuntimeExports.jsx(Field,{name:"isAlertAndOrientated",component:ToggleButtonGroupField,label:lt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(tt,"isAlertAndOrientated")}),rt.isAlertAndOrientated===!1&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:lt,fieldText:ut,helperType:"info"})]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:nt,fieldName:"hasAlteredCognitiveState",children:[jsxRuntimeExports.jsx(Field,{name:"hasAlteredCognitiveState",component:ToggleButtonGroupField,label:nt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(tt,"hasAlteredCognitiveState")}),rt.hasAlteredCognitiveState===!0&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(HelperMessage,{fieldName:nt,fieldText:dt,helperType:"info"})})]})]})},MalnutritionRisk=({handleMutation:et,lastUpdateUserData:tt,allowedLocations:rt})=>{const{values:nt}=useFormikContext(),{nurseLocation:lt,unintentionalWeightLoss:ut,hasDecreasedAppetite:dt}=content.malnutritionRisk.fields,{malnutritionScreeningToolQCL:pt}=content.malnutritionRisk.infoHelpers,ht=rt.reduce((mt,xt)=>(xt.rolesUsedBy.includes("Nurse")&&mt.push({label:xt.name,value:xt.id}),mt),[]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:lt,fieldName:"nurseLocation",children:jsxRuntimeExports.jsx(Field,{name:"nurseLocation",component:SelectFieldBase,options:ht,placeholder:sharedContent.generic.label.selectValue,updateMutation:mt=>{et("nurseLocation",mt)},lastUpdateUser:getLastUpdateUser(tt,"nurseLocation")})}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:ut,fieldName:"unintentionalWeightLoss",children:[jsxRuntimeExports.jsx(Field,{name:"unintentionalWeightLoss",component:ToggleButtonGroupField,label:ut,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(tt,"unintentionalWeightLoss")}),nt.unintentionalWeightLoss===!0&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:ut,fieldText:pt,helperType:"info"})]}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:dt,fieldName:"hasDecreasedAppetite",children:[jsxRuntimeExports.jsx(Field,{name:"hasDecreasedAppetite",component:ToggleButtonGroupField,label:dt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(tt,"hasDecreasedAppetite")}),nt.hasDecreasedAppetite===!0&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(HelperMessage,{fieldName:dt,fieldText:pt,helperType:"info"})})]})]})},StyledHelperMessageContainer=styled$1("div")`
  margin-top: 24px;
`,Pain=({handleMutation:et,healthAssessmentData:tt,lastUpdateUserData:rt})=>{const{setFieldTouched:nt,setFieldValue:lt,values:ut}=useFormikContext(),{fields:dt,tableTitles:pt}=content.pain,{hasCurrentPain:ht,isAbleToClimbStairs:mt,isAbleToLieFlat:xt,painScore:Mt}=dt,{areYouInPain:vt,pleaseSpecify:Ot}=pt,{painAssessmentQCL:At,significantPMHx:Rt}=content.pain.infoHelpers;let zt=!1;const Tt=[];if(tt.healthAssessment){const Ct=tt.healthAssessment.inPain,It=tt.healthAssessment.inPainReason,Dt=[];Ct!==null&&Dt.push({title:vt,value:choiceToStringOptions[String(Ct)]}),It&&Dt.push({title:Ot,value:It}),zt=Dt.length>0,Tt.push(Dt)}return reactExports.useEffect(()=>{ut.hasCurrentPain===!1&&ut.painScore&&(et("painScore",""),lt("painScore",null),nt("painScore",!1))},[ut.hasCurrentPain]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:ht,fieldName:"hasCurrentPain",children:jsxRuntimeExports.jsx(Field,{name:"hasCurrentPain",component:ToggleButtonGroupField,label:ht,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"hasCurrentPain")})}),ut.hasCurrentPain===!0&&jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:Mt,fieldName:"painScore",children:[jsxRuntimeExports.jsx(Field,{name:"painScore",component:SelectFieldBase,fitToContent:!0,grow:"0",errorMargin:"9px",label:Mt,options:painScoreOptions,placeholder:" ",updateMutation:Ct=>et("painScore",Ct),lastUpdateUser:ut.painScore&&getLastUpdateUser(rt,"painScore")}),+ut.painScore>=4&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:Mt,fieldText:At,helperType:"info"})]}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:xt,fieldName:"isAbleToLieFlat",children:jsxRuntimeExports.jsx(Field,{name:"isAbleToLieFlat",component:ToggleButtonGroupField,label:xt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"isAbleToLieFlat")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:mt,fieldName:"isAbleToClimbStairs",children:jsxRuntimeExports.jsx(Field,{name:"isAbleToClimbStairs",component:ToggleButtonGroupField,label:mt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"isAbleToClimbStairs")})}),jsxRuntimeExports.jsx(StyledHelperMessageContainer,{children:jsxRuntimeExports.jsx(HelperMessage,{fieldName:xt,fieldText:Rt,helperType:"info"})}),zt&&jsxRuntimeExports.jsx(InfoCard,{title:"Pain",subTitle:"(Patient Reported)",rowDetails:Tt})]})},SubHeading$1=styled$1("div")`
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0em;
  text-align: left;
  padding: 0 0 10px 27px;
`,SectionBreak=styled$1("div")`
  margin: 10px 0 0 10px;
`,StyledHorizontalLineCustom=styled$1("div")`
  margin-top: 15px !important;
  margin-bottom: 25px !important;
  width: 90%;
  height: 10px;
  border-bottom: 1px solid black;
  border-color: ${et=>et.theme.palette.grey[300]};
  text-align: center;
  margin-left: 5%;
  margin-right: 5%;

  span {
    font-size: 13px;
    background-color: white;

    padding: 0 20px;
    color: ${et=>et.theme.palette.grey[600]};
  }
`,ReviewSectionWithHeading=({sectionName:et,link:tt,fieldsWithHeadingsToDisplay:rt,valuesToDisplay:nt,validateField:lt,subFields:ut,isLocked:dt,newFieldsTouched:pt,oldFieldHasValue:ht})=>{const{errors:mt}=useFormikContext(),{fields:xt}=content[et].livingSituation,{sectionTitle:Mt}=routes$1[et],vt={livingSituation:"Living situation",careRequirements:"Care requirements",socialMedicalHistory:"Other significant social or medical history"},Ot=Rt=>{for(const zt of Object.keys(Rt))if(mt[zt])return!0;return!1},At=()=>!(!pt&&ht);return jsxRuntimeExports.jsxs(ReviewBox,{title:Mt,error:Ot(xt),link:tt,isLocked:dt,children:[!At()&&jsxRuntimeExports.jsx(ReviewFieldQA,{fieldName:"socialConsiderations",sectionFields:{socialConsiderations:"Social Considerations"},valuesToDisplay:nt,validateField:lt,isSubField:!1}),At()&&rt.map((Rt,zt)=>{const{fieldsToDisplay:Tt,subHeading:Ct}=Rt,{fields:It}=content[et][Ct];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[zt>0&&jsxRuntimeExports.jsx(StyledHorizontalLineCustom,{}),Ct&&jsxRuntimeExports.jsx(SubHeading$1,{children:vt[Ct]}),Tt.map(Dt=>jsxRuntimeExports.jsx(ReviewFieldQA,{fieldName:Dt,sectionFields:It,valuesToDisplay:nt,validateField:lt,isSubField:ut&&ut.includes(Dt)})),jsxRuntimeExports.jsx(SectionBreak,{})]})})]})},Wrapper$3=styled$1("div")`
  width: 65%;
`,subFields=["painScore","howFactorsWereIdentified","livesWith","carerSpecification","otherResidence","usualResidenceSpecify","assistance","assistanceSpecify","familyOrFriendSpecification","existingSupportSpecification","sensoryImpairments","primaryLanguage","sensoryImpairmentsSpecification","requireInterpreter"],ReviewAndSubmit=({patient:et,allowedLocations:tt,isLocked:rt})=>{const{values:nt}=useFormikContext(),{patientId:lt,formId:ut}=useParams(),dt=Object.keys(content),{data:pt,error:ht,loading:mt}=useQuery(GET_ACTIVE_QCLS,{variables:{patientId:lt,isAmendment:nt.isAmendment}}),xt=(Ct,It)=>Ct!=="isAlertAndOrientated"&&getIn$1(It,Ct)===!0||Ct==="isAlertAndOrientated"&&getIn$1(It,Ct)===!1||Ct==="painScore"&&parseInt(getIn$1(It,Ct))>3||et.userProfile&&et.userProfile.systemState===AustralianStates.QLD&&(Ct==="dvaTransport"&&getIn$1(It,"transportMode").includes("DVA Transport")||Ct==="genesisBus"&&getIn$1(It,"transportMode").includes("Genesis Bus")||Ct==="cancerCouncilBus"&&getIn$1(It,"transportMode").includes("Cancer Council Bus")),Mt=["livingSituation","careRequirements","socialMedicalHistory"],vt=Ct=>Object.keys(content[Ct].fields).filter(It=>Ct==="pain"?!(It==="painScore"&&!nt.hasCurrentPain):Ct==="summary"?!(It==="pelvicFitness"&&et.userProfile&&et.userProfile.systemState!==AustralianStates.WA||It==="howFactorsWereIdentified"&&!nt.hasHighRiskFactors):It),Ot=(Ct,It)=>{if(It&&["painScore","otherTransport","socialConsiderations","pelvicFitness"].includes(It)&&Ct)return Ct;if(It==="transportMode")return Ct.length>0?Ct.join(", "):"Not Provided";if(It==="nurseLocation")return tt.filter(Dt=>Dt.id===Ct.toString())[0].name;if(It==="howFactorsWereIdentified"){for(const Dt of factorsIdentifiedOptions)if(Dt.value===Ct)return Dt.label}for(const Dt of yesNoOptions$2)if(Dt.value===Ct)return Dt.label},At=(Ct,It)=>{const Dt=["socialConsiderations","livesWith","carerSpecification","otherResidence","usualResidence","usualResidenceSpecify","familyOrFriendSpecification","existingSupportSpecification","otherInformation","assistance","assistanceSpecify","primaryLanguage","sensoryImpairmentsSpecification"];if(It==="assistance"||It==="sensoryImpairments")return Ct.join(", ");if(It&&Dt.includes(It)&&Ct)return Ct;for(const kt of yesNoOptions$2)if(kt.value===Ct)return kt.label},Rt=()=>{const Ct=[];return Mt.forEach(It=>{Ct.push({subHeading:It,fieldsToDisplay:Object.keys(content.socialCircumstances[It].fields).filter(Dt=>{if(It==="livingSituation"){if(Dt==="usualResidenceSpecify")return nt.usualResidence==="Other";if(Dt==="livesWith")return nt.livesAlone===!1;if(Dt==="carerSpecification")return nt.isCarer;if(Dt==="otherResidence")return nt.staysAtUsualResidence===!1}if(It==="careRequirements"){if(Dt==="assistance")return nt.needsAssistanceAdls;if(Dt==="assistanceSpecify")return nt.assistance.length>0;if(Dt==="familyOrFriendSpecification")return nt.hasFamilyOrFriend;if(Dt==="existingSupportSpecification")return nt.existingSupportService;if(Dt==="sensoryImpairments")return nt.hasSensoryImpairment;if(Dt==="sensoryImpairmentsSpecification")return nt.hasSensoryImpairment&&nt.sensoryImpairments.length>0}return It==="socialMedicalHistory"&&(Dt==="primaryLanguage"||Dt==="requireInterpreter")?nt.englishSecondLanguage:Dt})})}),Ct},zt=(Ct,It)=>{let Dt=nt.transportMode.length<1&&!nt.otherTransport&&["transportMode","otherTransport"].includes(It)||["",null].includes(Ct)&&!["transportMode","otherTransport"].includes(It);return Array.isArray(getIn$1(nt,It))&&getIn$1(nt,It).length===0&&(Dt=!0),Dt},Tt=()=>{const Ct=[];let It=!1;return Mt.forEach(Dt=>{Object.keys(content.socialCircumstances[Dt].fields).forEach(kt=>{Ct.push(kt)})}),Ct.forEach(Dt=>{typeof getIn$1(nt,Dt)!="object"&&getIn$1(nt,Dt)!==null&&getIn$1(nt,Dt)!==""&&(It=!0)}),It};return jsxRuntimeExports.jsxs(Wrapper$3,{children:[!mt&&jsxRuntimeExports.jsx(ReviewQcl,{activeQcls:!rt&&!ht?pt.activeTasks:[],formContent:content,customQclRules:xt,isLocked:rt}),dt.map(Ct=>Ct==="socialCircumstances"?jsxRuntimeExports.jsx(ReviewSectionWithHeading,{sectionName:Ct,link:generatePath(routes$1[Ct].path,{patientId:lt,formId:ut}),valuesToDisplay:At,fieldsWithHeadingsToDisplay:Rt(),validateField:zt,subFields,isLocked:rt,newFieldsTouched:Tt(),oldFieldHasValue:!!nt.socialConsiderations}):jsxRuntimeExports.jsx(ReviewSection,{sectionName:Ct,link:generatePath(routes$1[Ct].path,{patientId:lt,formId:ut}),valuesToDisplay:Ot,fieldsToDisplay:vt(Ct),validateField:zt,subFields,isLocked:rt}))]})},SubHeading=styled$1("div")`
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0em;
  text-align: left;
`,StyledFieldRowMultiSelect=styled$1(StyledFieldRow)`
  align-items: baseline;
`,SocialCircumstances=({handleMutation:et,healthAssessmentData:tt,registrationFormData:rt,lastUpdateUserData:nt,typeOfResidenceRefData:lt})=>{const{tableTitles:ut,livingSituation:dt,careRequirements:pt,socialMedicalHistory:ht,fields:mt}=content.socialCircumstances,{livesAlone:xt,livesWith:Mt,isCarer:vt,carerSpecification:Ot,usualResidence:At,staysAtUsualResidence:Rt,otherResidence:zt,usualResidenceSpecify:Tt}=dt.fields,{infoHelpers:{hearing:Ct,vision:It}}=pt,{infoHelpers:{requireInterpreter:Dt}}=ht,{values:kt,setFieldValue:qt}=useFormikContext(),{needsAssistanceAdls:Nt,assistance:Yt,assistanceSpecify:Kt,hasFamilyOrFriend:Jt,familyOrFriendSpecification:Qt,existingSupportService:Bt,existingSupportSpecification:Ft,hasSensoryImpairment:$t,sensoryImpairments:jt,sensoryImpairmentsSpecification:Wt}=pt.fields,{englishSecondLanguage:Ut,primaryLanguage:Vt,requireInterpreter:Ht,otherInformation:Gt}=ht.fields,{doYouDrink:Zt,drinkingFrequency:Xt,doYouSmoke:er,yearsSmoking:nr,howFrequentlySmoking:or,whenStoppedSmoking:rr,assistAccommodation:cr,ulcerTitle:ir,diabeticTitle:dr,heritageTitle:gr,occupationTitle:br}=ut;let ar=!1;const{alcoholFrequencyRefData:ur,smokingFrequencyRefData:xr,diabetesRefData:Mr}=tt,{occupation:Ar,heritage:Ir,regFormStatus:Rr}=rt.patient,wr=[];Rr===FormStatus.REG_SUBMITTED&&wr.push({title:br,value:Ar===""?"-":Ar},{title:gr,value:mapValueToRefData(Ir,rt.heritageRefData)});const qr=(Fr,Yr)=>{if(!Fr)return"-";const Gr=[];Gr.push(choiceToStringOptions[String(Fr)]);const Jr=[];return Fr==="YES"&&Yr&&Yr.forEach((jr,Zr)=>{jr.other?Jr.push(`Diabetes ${Zr+1}: ${mapValueToRefData(jr.value,Mr)} - '${jr.other}'`):Gr.push(`Diabetes ${Zr+1}: ${mapValueToRefData(jr.value,Mr)}`)}),[...Gr,...Jr]};let Hr=[];if(tt.healthAssessment){const{alcoholBool:Fr,alcoholFrequency:Yr,smokingBool:Gr,smokingFrequency:Jr,smokingHistory:jr,smokingStopRawMonth:Zr,smokingStopRawYear:Xr,accommodationAssistance:cn,activeInjury:Qr,activeInjuryReason:rn,diabetes:_r,diabetesResponses:ln}=tt.healthAssessment,vn=parseInt(Zr),Cr=parseInt(Xr);let gn="-";(vn>0||Cr>0)&&(gn=`${vn>0?vn.toString().padStart(2,"0"):"--"}/${Cr>0?Cr.toString().padStart(2,"0"):"----"}`),Hr=[{title:Zt,value:choiceToStringOptions[String(Fr)]},{title:Xt,value:mapValueToRefData(Yr,ur)},{title:er,value:choiceToStringOptions[String(Gr)]},{title:nr,value:transformEmptyString(jr)},{title:or,value:mapValueToRefData(Jr,xr)},{title:rr,value:gn},{title:dr,value:qr(_r,ln)},{title:ir,value:`${choiceToStringOptions[String(Qr)]}${Qr===YES$2&&rn?`- ${rn}`:""}`},{title:cr,value:choiceToStringOptions[String(cn)]}].filter(xn=>xn.value!=="-")}ar=Hr.length>0||wr.length>0;const kr=[[...Hr],[...wr]],$r=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SubHeading,{children:"Living situation"}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:xt,fieldName:"livesAlone",children:jsxRuntimeExports.jsx(Field,{name:"livesAlone",component:ToggleButtonGroupField,label:xt,options:yesNoOptions$2,handleMutation:(Fr,Yr)=>{kt.livesWith&&(et("livesWith",""),qt("livesWith",null)),et(Fr,Yr)},lastUpdateUser:getLastUpdateUser(nt,"livesAlone")})}),kt.livesAlone===!1&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Mt,fieldName:"livesWith",children:jsxRuntimeExports.jsx(Field,{name:"livesWith",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Fr=>et("livesWith",Fr),lastUpdateUser:getLastUpdateUser(nt,"livesWith")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:vt,fieldName:"isCarer",children:jsxRuntimeExports.jsx(Field,{name:"isCarer",component:ToggleButtonGroupField,label:vt,options:yesNoOptions$2,handleMutation:(Fr,Yr)=>{kt.carerSpecification&&!Yr&&(et("carerSpecification",""),qt("carerSpecification",null)),et(Fr,Yr)},lastUpdateUser:getLastUpdateUser(nt,"isCarer")})}),kt.isCarer&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Ot,fieldName:"carerSpecification",children:jsxRuntimeExports.jsx(Field,{name:"carerSpecification",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Fr=>et("carerSpecification",Fr),lastUpdateUser:getLastUpdateUser(nt,"carerSpecification")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:At,fieldName:"usualResidence",children:jsxRuntimeExports.jsx(Field,{name:"usualResidence",component:SelectFieldBase,options:mapListData$1(lt),placeholder:sharedContent.generic.label.selectValue,updateMutation:Fr=>{kt.usualResidenceSpecify&&Fr!=="Other"&&(et("usualResidenceSpecify",""),qt("usualResidenceSpecify",null)),et("usualResidence",Fr)},lastUpdateUser:getLastUpdateUser(nt,"usualResidence")})}),kt.usualResidence==="Other"&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Tt,fieldName:"usualResidenceSpecify",children:jsxRuntimeExports.jsx(Field,{name:"usualResidenceSpecify",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Fr=>et("usualResidenceSpecify",Fr),lastUpdateUser:getLastUpdateUser(nt,"usualResidenceSpecify")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Rt,fieldName:"staysAtUsualResidence",children:jsxRuntimeExports.jsx(Field,{name:"staysAtUsualResidence",component:ToggleButtonGroupField,label:Rt,options:yesNoOptions$2,handleMutation:(Fr,Yr)=>{kt.otherResidence&&Yr&&(et("otherResidence",""),qt("otherResidence",null)),et(Fr,Yr)},lastUpdateUser:getLastUpdateUser(nt,"staysAtUsualResidence")})}),kt.staysAtUsualResidence===!1&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:zt,fieldName:"otherResidence",children:jsxRuntimeExports.jsx(Field,{name:"otherResidence",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Fr=>et("otherResidence",Fr),lastUpdateUser:getLastUpdateUser(nt,"otherResidence")})}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(StyledHorizontalLine$1,{}),jsxRuntimeExports.jsx("br",{})]}),yr=()=>{var Fr,Yr;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SubHeading,{children:"Care Requirements"}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Nt,fieldName:"needsAssistanceAdls",children:jsxRuntimeExports.jsx(Field,{name:"needsAssistanceAdls",component:ToggleButtonGroupField,label:Nt,options:yesNoOptions$2,handleMutation:(Gr,Jr)=>{var jr;(jr=kt.assistance)!=null&&jr.length&&!Jr&&(et("assistance",[]),qt("assistance",[]),et("assistanceSpecify",""),qt("assistanceSpecify",null)),et(Gr,Jr)},lastUpdateUser:getLastUpdateUser(nt,"needsAssistanceAdls")})}),kt.needsAssistanceAdls&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(FieldArray,{name:"assistance",children:({push:Gr,remove:Jr})=>jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Yt,fieldName:"assistance",children:jsxRuntimeExports.jsxs(StyledFieldRowMultiSelect,{children:[jsxRuntimeExports.jsx(Grid,{container:!0,spacing:2,children:assistanceOptions.map((jr,Zr)=>{var Qr;const Xr=(Qr=kt==null?void 0:kt.assistance)==null?void 0:Qr.includes(jr),cn=()=>{var rn;if(!Xr&&!((rn=kt==null?void 0:kt.assistance)!=null&&rn.includes(jr))&&(Gr(jr),et("assistance",[jr,...kt.assistance]),kt.assistance.length<1&&(et("assistanceSpecify",""),qt("assistanceSpecify",null))),Xr&&kt.assistance.includes(jr)){const _r=kt.assistance.indexOf(jr);Jr(_r);const ln=kt.assistance.filter(vn=>vn!==jr);ln.length<1&&(et("assistanceSpecify",""),qt("assistanceSpecify",null)),et("assistance",ln)}};return jsxRuntimeExports.jsx(Grid,{item:!0,xs:6,children:jsxRuntimeExports.jsx(Field,{name:`assistance.${Zr}`,component:SelectButton,width:"100%",active:Xr,buttonText:jr,showCheckIcon:!0,onClick:cn},jr)},Zr)})}),jsxRuntimeExports.jsx(UserIcon,{userType:getLastUpdateUser(nt,"assistance")})]})})})}),((Fr=kt.assistance)==null?void 0:Fr.length)>0&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Kt,fieldName:"assistanceSpecify",children:jsxRuntimeExports.jsx(Field,{name:"assistanceSpecify",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Gr=>et("assistanceSpecify",Gr),lastUpdateUser:getLastUpdateUser(nt,"assistanceSpecify")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Jt,fieldName:"hasFamilyOrFriend",children:jsxRuntimeExports.jsx(Field,{name:"hasFamilyOrFriend",component:ToggleButtonGroupField,label:Jt,options:yesNoOptions$2,handleMutation:(Gr,Jr)=>{kt.familyOrFriendSpecification&&!Jr&&(et("familyOrFriendSpecification",""),qt("familyOrFriendSpecification",null)),et(Gr,Jr)},lastUpdateUser:getLastUpdateUser(nt,"hasFamilyOrFriend")})}),kt.hasFamilyOrFriend&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Qt,fieldName:"familyOrFriendSpecification",children:jsxRuntimeExports.jsx(Field,{name:"familyOrFriendSpecification",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Gr=>et("familyOrFriendSpecification",Gr),lastUpdateUser:getLastUpdateUser(nt,"familyOrFriendSpecification")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Bt,fieldName:"existingSupportService",children:jsxRuntimeExports.jsx(Field,{name:"existingSupportService",component:ToggleButtonGroupField,label:Bt,options:yesNoOptions$2,handleMutation:(Gr,Jr)=>{kt.existingSupportSpecification&&!Jr&&(et("existingSupportSpecification",""),qt("existingSupportSpecification",null)),et(Gr,Jr)},lastUpdateUser:getLastUpdateUser(nt,"existingSupportService")})}),kt.existingSupportService&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Ft,fieldName:"existingSupportSpecification",children:jsxRuntimeExports.jsx(Field,{name:"existingSupportSpecification",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Gr=>et("existingSupportSpecification",Gr),lastUpdateUser:getLastUpdateUser(nt,"existingSupportSpecification")})}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:$t,fieldName:"hasSensoryImpairment",children:jsxRuntimeExports.jsx(Field,{name:"hasSensoryImpairment",component:ToggleButtonGroupField,label:$t,options:yesNoOptions$2,handleMutation:(Gr,Jr)=>{var jr;(jr=kt.sensoryImpairments)!=null&&jr.length&&!Jr&&(et("sensoryImpairments",[]),qt("sensoryImpairments",[]),et("sensoryImpairmentsSpecification",""),qt("sensoryImpairmentsSpecification",null)),et(Gr,Jr)},lastUpdateUser:getLastUpdateUser(nt,"hasSensoryImpairment")})}),kt.hasSensoryImpairment&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(FieldArray,{name:"sensoryImpairments",children:({push:Gr,remove:Jr})=>jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:jt,fieldName:"sensoryImpairments",children:[jsxRuntimeExports.jsxs(StyledFieldRowMultiSelect,{children:[jsxRuntimeExports.jsx(Grid,{container:!0,spacing:2,children:sensoryImpairmentsOptions.map((jr,Zr)=>{var Qr;const Xr=(Qr=kt==null?void 0:kt.sensoryImpairments)==null?void 0:Qr.includes(jr),cn=()=>{var rn;if(!Xr&&!((rn=kt==null?void 0:kt.sensoryImpairments)!=null&&rn.includes(jr))&&(Gr(jr),et("sensoryImpairments",[jr,...kt.sensoryImpairments])),Xr&&kt.sensoryImpairments.includes(jr)){const _r=kt.sensoryImpairments.indexOf(jr);Jr(_r);const ln=kt.sensoryImpairments.filter(vn=>vn!==jr);ln.length<1&&(et("sensoryImpairmentsSpecification",""),qt("sensoryImpairmentsSpecification",null)),et("sensoryImpairments",ln)}};return jsxRuntimeExports.jsx(Grid,{item:!0,xs:6,children:jsxRuntimeExports.jsx(Field,{name:`sensoryImpairments.${Zr}`,component:SelectButton,width:"100%",active:Xr,buttonText:jr,showCheckIcon:!0,onClick:cn},jr)},Zr)})}),jsxRuntimeExports.jsx(UserIcon,{userType:getLastUpdateUser(nt,"sensoryImpairments")})]}),kt.sensoryImpairments.includes(SensoryImpairments.hearing)&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"sensoryImpairments",fieldText:Ct,helperType:"info"}),kt.sensoryImpairments.includes(SensoryImpairments.vision)&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"sensoryImpairments",fieldText:It,helperType:"info"})]})})}),((Yr=kt.sensoryImpairments)==null?void 0:Yr.length)>0&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Wt,fieldName:"sensoryImpairmentsSpecification",children:jsxRuntimeExports.jsx(Field,{name:"sensoryImpairmentsSpecification",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Gr=>et("sensoryImpairmentsSpecification",Gr),lastUpdateUser:getLastUpdateUser(nt,"sensoryImpairmentsSpecification")})}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(StyledHorizontalLine$1,{}),jsxRuntimeExports.jsx("br",{})]})},Or=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SubHeading,{children:"Other significant social or medical history"}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Ut,fieldName:"englishSecondLanguage",children:jsxRuntimeExports.jsx(Field,{name:"englishSecondLanguage",component:ToggleButtonGroupField,label:Ut,options:yesNoOptions$2,handleMutation:(Fr,Yr)=>{kt.primaryLanguage&&!Yr&&(et("primaryLanguage",""),qt("primaryLanguage",null)),kt.requireInterpreter!=null&&!Yr&&qt("requireInterpreter",null),et(Fr,Yr)},lastUpdateUser:getLastUpdateUser(nt,"englishSecondLanguage")})}),kt.englishSecondLanguage&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Vt,fieldName:"primaryLanguage",children:jsxRuntimeExports.jsx(Field,{name:"primaryLanguage",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,updateMutation:Fr=>et("primaryLanguage",Fr),lastUpdateUser:getLastUpdateUser(nt,"primaryLanguage")})}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:Ht,fieldName:"requireInterpreter",children:[jsxRuntimeExports.jsx(Field,{name:"requireInterpreter",component:ToggleButtonGroupField,label:Ht,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(nt,"requireInterpreter")}),kt.requireInterpreter&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"requireInterpreter",fieldText:Dt,helperType:"info"})]})]}),jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Gt,fieldName:"otherInformation",children:jsxRuntimeExports.jsx(Field,{name:"otherInformation",placeholder:sharedContent.generic.label.specifyValue,component:TextAreaField,multiline:!0,updateMutation:Fr=>et("otherInformation",Fr),lastUpdateUser:getLastUpdateUser(nt,"otherInformation")})})]}),{socialConsiderations:Dr}=mt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[kt.socialConsiderations&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:Dr,fieldName:"socialConsiderations",children:jsxRuntimeExports.jsx(Field,{name:"socialConsiderations",component:TextAreaField,disabled:!0,multiline:!0,label:Dr,placeholder:sharedContent.generic.label.specifyValue,updateMutation:Fr=>et("socialConsiderations",Fr),lastUpdateUser:getLastUpdateUser(nt,"socialConsiderations"),maxLength:2048})}),$r(),yr(),Or(),ar&&jsxRuntimeExports.jsx(InfoCard,{title:"Social Circumstances",subTitle:"(Patient Reported)",rowDetails:kr,itemSize:6})]})},SummaryTable=({latestChartCheckData:et})=>{const{values:tt}=useFormikContext(),{fieldKeys:rt}=preCtChartCheckContent.implantedMedicalDevices,{chartCheckTable:nt,triageTable:lt,noChartCheckMessage:ut,emptyMessage:dt}=content.summary.tableValues,pt=[[{title:"",value:ut}]],ht=[[{title:"",value:dt}]];if(et){const mt=(Vt,Ht)=>{const Gt=[];return Vt.forEach(Zt=>{Ht===CHART_CHECK&&et[Zt]&&nt.hasOwnProperty(Zt)&&Gt.push(nt[`${Zt}`]),Ht===TRIAGE&&getIn$1(tt,Zt)&&lt.hasOwnProperty(Zt)&&Gt.push(lt[`${Zt}`])}),Gt},xt=()=>{const{implantedMedicalDevice:Vt}=et,Ht=Vt.filter(or=>or.name),Gt=(or,rr)=>{const cr=or.filter(dr=>rr.includes(dr.deviceField)&&dr.name);return cr.length?cr.reduce((dr,gr)=>dr.concat(gr.name),[]).join(", "):[]},Zt=Gt(Ht,[rt.cied]),Xt=Gt(Ht,[rt.venousAccessType]),er=Gt(Ht,[rt.otherNotListed,rt.otherImplantedDevices]),nr=[];return Zt.length&&nr.push({...nt.cied,value:Zt}),Xt.length&&nr.push({...nt.venousAccessType,value:Xt}),er.length&&nr.push({...nt.otherDevices,value:er}),nr},Mt=()=>{const{mroInfection:Vt,infectiousDisease:Ht,outsideWaLastTwelveMonths:Gt}=et,Zt=[],Xt=[],er=[];return Vt.length&&Vt.map((nr,or)=>Zt.push({page:nt.mroInfection.page,title:`${nt.mroInfection.title} ${or+1}`,value:nr.baseValue==="Other"&&nr.otherValue?nr.otherValue:nr.baseValue})),Ht.length&&Ht.map((nr,or)=>Xt.push({page:nt.infectiousDisease.page,title:`${nt.infectiousDisease.title} ${or+1}`,value:nr.baseValue==="Other"&&nr.otherValue?nr.otherValue:nr.baseValue})),Gt&&er.push({page:nt.outsideWaLastTwelveMonths.page,title:`${nt.outsideWaLastTwelveMonths.title}`,value:"Yes"}),[...Xt,...Zt,...er]},vt=()=>{const{pcccAllergy:Vt}=et,Ht=[];return Vt.length&&Vt.forEach((Gt,Zt)=>{Ht.push({page:nt.allergy.page,title:`${nt.allergy.title} ${Zt+1}`,value:Gt.allergyType&&Gt.additionalDetails?Gt.additionalDetails:Gt.allergyType})}),Ht},Ot=()=>{const{isAlertAndOrientated:Vt,hasAlteredCognitiveState:Ht}=tt,Gt=[];return Vt===!1&&Gt.push(lt.isAlertAndOrientated),Ht&&Gt.push(lt.hasAlteredCognitiveState),Gt},At=()=>{const{hasCurrentPain:Vt,painScore:Ht,isAbleToLieFlat:Gt,isAbleToClimbStairs:Zt}=tt,Xt=[];return Vt&&Xt.push(lt.hasCurrentPain),Ht&&Xt.push({page:lt.painScore.page,title:lt.painScore.title,value:Ht}),Gt===!1&&Xt.push(lt.isAbleToLieFlat),Zt===!1&&Xt.push(lt.isAbleToClimbStairs),Xt},Rt=()=>{const{transportMode:Vt,otherTransport:Ht}=tt,Gt=[];return Vt&&Vt.forEach(Zt=>{Gt.push({page:lt.transport.page,title:"",value:Zt})}),Ht&&Gt.push({page:lt.transport.page,title:"",value:Ht}),Gt},zt=()=>{const{hasSensoryImpairment:Vt,sensoryImpairments:Ht,englishSecondLanguage:Gt,requireInterpreter:Zt}=tt,Xt=[];return Vt&&Xt.push(lt.hasSensoryImpairment),Ht.length>0&&Xt.push({page:lt.sensoryImpairments.page,title:lt.sensoryImpairments.title,value:Ht.join(", ")}),Gt&&Xt.push(lt.englishSecondLanguage),Zt&&Xt.push(lt.requireInterpreter),Xt},Tt=mt(basicInfoFields,CHART_CHECK),Ct=mt(chemoRiskFields,CHART_CHECK),It=xt(),Dt=Mt(),kt=mt(fallsRiskFields,CHART_CHECK),qt=mt(pressureInjuryFields,CHART_CHECK),Nt=mt(wellbeingCCFields,CHART_CHECK),Yt=mt(advancedCareFields,CHART_CHECK),Kt=vt(),Jt=mt(malnutritionFields,TRIAGE),Qt=Ot(),Bt=At(),Ft=Rt(),$t=zt(),jt=mt(wellbeingTriageFields,TRIAGE),Ut=[Tt,Ct,It,Dt,kt,qt,Nt,Yt,Kt,Jt,Qt,Bt,Ft,$t,jt].filter(Vt=>Vt!==null&&Vt.length);return jsxRuntimeExports.jsx(InfoCard,{title:"Risks Identified",subTitle:"(from Initial Chart Check and Initial Triage)",rowDetails:Ut.length?Ut:ht,itemSize:Ut.length?6:12})}return jsxRuntimeExports.jsx(InfoCard,{title:"Risks Identified",subTitle:"(from Initial Chart Check and Initial Triage)",rowDetails:pt,itemSize:12})},Summary=({handleMutation:et,patientState:tt,lastUpdateUserData:rt,latestChartCheckData:nt})=>{const{fields:lt,infoHelpers:ut}=content.summary,{pelvicFitness:dt,hasHighRiskFactors:pt,howFactorsWereIdentified:ht}=lt,{values:mt,setFieldValue:xt,setTouched:Mt}=useFormikContext();return reactExports.useEffect(()=>{mt.hasHighRiskFactors===!1&&(xt("howFactorsWereIdentified",""),Mt({[ht]:!1}))},[mt.hasHighRiskFactors]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[tt===AustralianStates.WA&&jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:dt,fieldName:"pelvicFitness",children:jsxRuntimeExports.jsx(Field,{name:"pelvicFitness",component:SelectFieldBase,placeholder:sharedContent.generic.label.selectValue,options:pelvicFitnessOptions,updateMutation:vt=>et("pelvicFitness",vt),lastUpdateUser:getLastUpdateUser(rt,"pelvicFitness")})}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:pt,fieldName:"hasHighRiskFactors",children:[jsxRuntimeExports.jsx(Field,{name:"hasHighRiskFactors",component:ToggleButtonGroupField,label:pt,options:yesNoOptions$2,handleMutation:et,lastUpdateUser:getLastUpdateUser(rt,"hasHighRiskFactors")}),mt.hasHighRiskFactors===!1&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"hasHighRiskFactors",fieldText:ut.lowRisk,helperType:"info"})]}),mt.hasHighRiskFactors===!0&&jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:ht,fieldName:"howFactorsWereIdentified",children:[jsxRuntimeExports.jsx(Field,{name:"howFactorsWereIdentified",component:SelectFieldBase,placeholder:sharedContent.generic.label.selectValue,options:factorsIdentifiedOptions,updateMutation:vt=>et("howFactorsWereIdentified",vt),lastUpdateUser:mt.howFactorsWereIdentified&&getLastUpdateUser(rt,"howFactorsWereIdentified")}),mt.howFactorsWereIdentified===factorsIdentifiedOptions[0].label&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"howFactorsWereIdentified",fieldText:ut.ensureReview,helperType:"info"}),mt.howFactorsWereIdentified===factorsIdentifiedOptions[1].label&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"howFactorsWereIdentified",fieldText:ut.proceedToRT,helperType:"info"})]}),jsxRuntimeExports.jsx(SummaryTable,{latestChartCheckData:nt})]})},HelperMessageContainer=styled$1("div")`
  margin-top: 16px;
`,TransportMode=({handleMutation:et,healthAssessmentData:tt,registrationFormData:rt,patientState:nt,lastUpdateUserData:lt})=>{const{values:ut,touched:dt}=useFormikContext(),{fields:pt,infoHelpers:ht,tableTitles:mt}=content.transportMode,{transportMode:xt,otherTransport:Mt}=pt,{doYouNeedTransport:vt,assistanceReason:Ot,ambTitle:At,ambNumberTitle:Rt}=mt,zt=[dt.transportMode,dt.otherTransport],Tt=ut.transportMode.length===0&&!ut.otherTransport&&zt.includes(!0);let Ct=!1;const{patientState:It,ambulanceMembership:Dt,ambulanceMembershipNumber:kt,regFormStatus:qt}=rt.patient,Nt=[],Yt=[];if(qt===FormStatus.REG_SUBMITTED&&It===AustralianStates.VIC&&Nt.push([{title:At,value:convertFromBooleanToString(Dt)},{title:Rt,value:kt||"-"}]),tt.healthAssessment){const Kt=tt.healthAssessment.transportationAssistance,Jt=tt.healthAssessment.transportationAssistanceReason;Kt&&Yt.push({title:vt,value:choiceToStringOptions[String(Kt)]}),Jt&&Yt.push({title:Ot,value:Jt}),Yt.length>0&&Nt.push(Yt)}return Ct=Nt.length>0,jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FieldArray,{name:"transportMode",children:({push:Kt,remove:Jt})=>jsxRuntimeExports.jsx(FormRow$2,{fieldLabel:xt,fieldName:"transportMode",children:jsxRuntimeExports.jsxs(StyledFieldRow,{children:[jsxRuntimeExports.jsx(Grid,{container:!0,spacing:2,children:transportOptions.map((Qt,Bt)=>{const Ft=ut.transportMode.includes(Qt),$t=QLDTransportOptions.includes(Qt)&&nt!==AustralianStates.QLD,jt=()=>{if(!Ft&&!ut.transportMode.includes(Qt)&&(Kt(Qt),et("transportMode",[Qt,...ut.transportMode])),Ft&&ut.transportMode.includes(Qt)){const Wt=ut.transportMode.indexOf(Qt);Jt(Wt);const Ut=ut.transportMode.filter(Vt=>Vt!==Qt);et("transportMode",Ut)}};return jsxRuntimeExports.jsx(Grid,{item:!0,xs:6,sx:{display:$t?"none":"flex"},children:jsxRuntimeExports.jsx(Field,{name:`transportMode.${Bt}`,component:SelectButton,invalid:Tt,width:"100%",active:Ft,buttonText:Qt,showCheckIcon:!0,onClick:jt},Bt)},Bt)})}),jsxRuntimeExports.jsx(UserIcon,{userType:getLastUpdateUser(lt,"transportMode")})]})})}),jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:Mt,fieldName:"otherTransport",children:[jsxRuntimeExports.jsx(Field,{name:"otherTransport",placeholder:sharedContent.generic.label.specifyValue,multiline:!0,component:TextAreaField,updateMutation:Kt=>et("otherTransport",Kt),lastUpdateUser:getLastUpdateUser(lt,"otherTransport")}),nt===AustralianStates.QLD&&jsxRuntimeExports.jsxs(HelperMessageContainer,{children:[ut.transportMode.includes(CANCER_COUNCIL_BUS)&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"transportMode",fieldText:ht.cancerCouncilQCL,helperType:"info"}),ut.transportMode.includes(DVA_TRANSPORT)&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"transportMode",fieldText:ht.DVAQCL,helperType:"info"}),ut.transportMode.includes(GENESIS_BUS)&&jsxRuntimeExports.jsx(HelperMessage,{fieldName:"transportMode",fieldText:ht.genesisBusQCL,helperType:"info"})]})]}),Ct&&jsxRuntimeExports.jsx(InfoCard,{title:"Transportation Assistance",subTitle:"(Patient Reported)",rowDetails:Nt})]})},InfoBox=styled$1("div")`
  width: 100%;
  border-radius: 4px;
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  border-top: 4px solid ${et=>et.theme.palette.primary.main};
  padding: 10px 20px 16px;
  margin: 16px 0 20px;
`,InfoBoxTitle=styled$1("div")`
  font-size: ${getRemSize(14)};
  line-height: ${getRemSize(20)};
  font-weight: 700;
  margin-bottom: 8px;
`,ReviewBoxData=styled$1("div")`
  font-size: ${getRemSize(14)};
  padding-bottom: 8px;
`,Wellbeing=({distressThermometerData:et,handleMutation:tt,healthAssessmentData:rt,lastUpdateUserData:nt})=>{const{fields:lt,helperBox:ut,tableTitles:dt}=content.wellbeingScreen,{hasPatientCarerConcern:pt}=lt,{doYouHaveWellbeingIssues:ht,distressThermometerScore:mt}=dt,xt=formatDtRating(et);let Mt,vt;const Ot=[];rt.healthAssessment&&(Mt=choiceToBooleanOptions[String(rt.healthAssessment.wellbeingIssue)],vt=rt.healthAssessment.wellbeingIssue,Mt&&Ot.push({title:ht,value:choiceToStringOptions[String(vt)]})),xt&&Ot.push({title:mt,value:xt||"N/A"});let At=[];if(Mt===!0){const{wellbeingIssues:Tt}=rt.healthAssessment,Ct=rt.wellbeingIssueRefData;At=Tt.map((It,Dt)=>{var Yt;const kt=It.other,qt=transformEmptyString((Yt=Ct.find(Kt=>Kt.id===It.value))==null?void 0:Yt.name);return{title:`Wellbeing or mental health issue ${Dt+1}`,value:kt||qt}})}const Rt=Ot.length>0||At.length>0,zt=[[...Ot,...At]];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(FormRow$2,{fieldLabel:pt,fieldName:"hasPatientCarerConcern",children:[jsxRuntimeExports.jsx(Field,{name:"hasPatientCarerConcern",component:ToggleButtonGroupField,label:pt,options:yesNoOptions$2,handleMutation:tt,lastUpdateUser:getLastUpdateUser(nt,"hasPatientCarerConcern")}),jsxRuntimeExports.jsxs(InfoBox,{children:[jsxRuntimeExports.jsx(InfoBoxTitle,{children:ut.heading}),ut.questions.map(Tt=>jsxRuntimeExports.jsx(ReviewBoxData,{children:Tt},Tt))]})]}),Rt&&jsxRuntimeExports.jsx(InfoCard,{title:"Wellbeing",subTitle:"(Patient Reported)",rowDetails:zt})]})},validationSchema$3=et=>create$3({nurseLocation:create$6().nullable().required(valueRequired),unintentionalWeightLoss:create$7().typeError(valueRequired),hasDecreasedAppetite:create$7().typeError(valueRequired),isAlertAndOrientated:create$7().typeError(valueRequired),hasAlteredCognitiveState:create$7().typeError(valueRequired),hasCurrentPain:create$7().typeError(valueRequired),painScore:create$5().when("hasCurrentPain",{is:!0,then:create$5().integer().positive(positiveNumber).required(valueRequired).typeError(valueRequired),otherwise:create$5().nullable()}),isAbleToLieFlat:create$7().typeError(valueRequired),isAbleToClimbStairs:create$7().typeError(valueRequired),otherTransport:create$6().when("transportMode",{is:tt=>tt.length===0,then:create$6().required(transportRequired)}),socialConsiderations:create$6().required(valueRequired),hasPatientCarerConcern:create$7().typeError(valueRequired),pelvicFitness:et&&et==="WA"?create$6().required(valueRequired):create$6(),hasHighRiskFactors:create$7().typeError(valueRequired),howFactorsWereIdentified:create$6().nullable().when("hasHighRiskFactors",{is:!0,then:create$6().required(valueRequired)})}),logger$b=new Logger("Triage"),Wrapper$2=styled$1("div")`
  height: 100%;
`,Form=styled$1(Form$3)`
  height: 100%;
`,StepperPlaceholder=styled$1("div")`
  min-width: 15%;
  background-color: ${et=>et.theme.palette.grey[100]};
  min-height: calc(100% - 60px);
  height: auto;
  box-shadow: inset -1px 0px 1px rgba(0, 0, 0, 0.2);
`,PreCtTriage=({distressThermometerData:et,registrationFormData:tt,healthAssessmentData:rt,patientDetailsData:nt,preCtTriageData:lt,loggedInUserData:ut,allowedLocationsData:dt,latestChartCheckData:pt,fetchLatestChartCheck:ht})=>{const[mt,xt]=reactExports.useState({}),[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(!1),[Rt,zt]=reactExports.useState(!1),Tt=useHistory(),Ct=useLocation(),{patientId:It,formId:Dt}=useParams(),kt=reactExports.useContext(FormContext),{updatePreCtTriage:qt,submitPreCtTriage:Nt,refetchPreCtTriage:Yt}=kt.mutations,{nurseLocation:Kt,unintentionalWeightLoss:Jt,hasDecreasedAppetite:Qt,isAlertAndOrientated:Bt,hasAlteredCognitiveState:Ft,hasCurrentPain:$t,painScore:jt,isAbleToLieFlat:Wt,isAbleToClimbStairs:Ut,transportMode:Vt,otherTransport:Ht,socialConsiderations:Gt,livesAlone:Zt,livesWith:Xt,isCarer:er,carerSpecification:nr,usualResidence:or,usualResidenceSpecify:rr,staysAtUsualResidence:cr,otherResidence:ir,needsAssistanceAdls:dr,assistance:gr,assistanceSpecify:br,hasFamilyOrFriend:ar,familyOrFriendSpecification:ur,existingSupportService:xr,existingSupportSpecification:Mr,hasSensoryImpairment:Ar,sensoryImpairments:Ir,sensoryImpairmentsSpecification:Rr,otherInformation:wr,hasPatientCarerConcern:qr,pelvicFitness:Hr,hasHighRiskFactors:kr,howFactorsWereIdentified:$r,additionalNotes:yr,updatedBy:Or,lastUpdateUser:Dr,isLocked:Fr,isAmendment:Yr=!1,requiresWellbeingMxPlan:Gr,englishSecondLanguage:Jr,primaryLanguage:jr,requireInterpreter:Zr}=lt||{},Xr={nurseLocation:Kt?Kt.toString():"",isAmendment:Yr,lastUpdateUser:Dr,unintentionalWeightLoss:Jt,hasDecreasedAppetite:Qt,isAlertAndOrientated:Bt,hasAlteredCognitiveState:Ft,hasCurrentPain:$t,painScore:jt,isAbleToLieFlat:Wt,isAbleToClimbStairs:Ut,transportMode:Vt,otherTransport:Ht,socialConsiderations:Gt,livesAlone:Zt,livesWith:Xt,isCarer:er,carerSpecification:nr,usualResidence:or,usualResidenceSpecify:rr,staysAtUsualResidence:cr,otherResidence:ir,needsAssistanceAdls:dr,assistance:gr,assistanceSpecify:br,hasFamilyOrFriend:ar,familyOrFriendSpecification:ur,existingSupportService:xr,existingSupportSpecification:Mr,hasSensoryImpairment:Ar,sensoryImpairments:Ir,sensoryImpairmentsSpecification:Rr,englishSecondLanguage:Jr,primaryLanguage:jr,requireInterpreter:Zr,otherInformation:wr,hasPatientCarerConcern:qr,pelvicFitness:Hr,hasHighRiskFactors:kr,howFactorsWereIdentified:$r,additionalNotes:yr,updatedBy:Or,requiresWellbeingMxPlan:Gr},cn=(an,nn)=>{qt({variables:{id:Dt,[an]:nn}})},Qr=()=>{window.location.href=`mailto:${sharedContent.reviewAndSubmit.submissionError.emailLink}`},rn=()=>{Nt({variables:{id:Dt}}).then(()=>{vt(!1),zt(!1),Tt.push(`/patient/${It}/summary`)}).catch(an=>{vt(!1),At(!0),zt(!1),logger$b.error(an)})},_r={formId:Dt,patientId:It},ln=Object.values(routes$1).map(an=>({sectionTitle:`${an.sectionTitle}`,name:`${an.name}`,path:`${generatePath(an.path,_r)}`})),vn=nt.userProfile&&nt.userProfile.systemState,{firstName:Cr,lastName:gn}=ut,xn=`${Cr} ${gn}`,[Vr,fn]=reactExports.useState(!1),[pn]=useMutation(DELETE_PRE_CT_CHART_CHECK,{refetchQueries:[{query:QUERY_NURSE,variables:{id:It}}]}),[qn]=useMutation(DELETE_PRE_CT_TRIAGE,{refetchQueries:[{query:QUERY_NURSE,variables:{id:It}}]}),[Bn]=useMutation(CREATE_AMENDED_PRE_CT_TRIAGE,{refetchQueries:[{query:QUERY_NURSE,variables:{id:It}},{query:GET_ACTIVE_QCLS,variables:{patientId:It,isAmendment:!0}}],fetchPolicy:"no-cache"}),{pathname:Kr}=window.location,Tr=Kr.substring(Kr.lastIndexOf("/")+1),Pr=window.location.pathname.split("/").slice(-1)[0];return reactExports.useEffect(()=>{const an=fieldsToValidateOnContinue[Tr].reduce((nn,Mn)=>(nn[Mn]=!0,nn),{});xt({...mt,...an})},[window.location.pathname]),reactExports.useEffect(()=>{ht(),Fr&&!Ct.pathname.includes("review-and-submit")&&Tt.push(generatePath(routes$1.reviewAndSubmit.path,{patientId:It,formId:Dt}))},[]),lt?jsxRuntimeExports.jsx(Wrapper$2,{children:jsxRuntimeExports.jsx(Formik,{initialValues:Xr,onSubmit:()=>{},validationSchema:validationSchema$3(vn),children:({values:an,errors:nn,setTouched:Mn,handleChange:An,setFieldValue:Vn})=>{const Cn=async()=>{await Bn({variables:{id:Dt}}).then(({data:jn})=>Tt.push(generatePath(routes$1.malnutritionRisk.path,{patientId:It,formId:jn.createAmendedPreCtTriage.preCtTriage.id}))).then(()=>{Yt()}).then(()=>Vn("additionalNotes",""))},kn=()=>{Mn(mt)},Qn={id:Dt,title:"Initial Triage",isAmendment:Yr},Gn={updatedBy:Or,isAmendment:!!lt.isAmendment,lastUpdateUser:Dr,patient:nt,reviewInfo,saveAndExitLink:generatePath(patientSummaryLink,{patientId:It}),setDeleteModalIsOpen:fn,createAmendmentAndRedirect:()=>Cn(),handleValidation:()=>kn(),deleteModal:()=>deletePreCtModal(pn,qn,Vr,fn,Qn,It,Tt,!0)},Un={malnutritionRisk:{pageNumber:1,sectionTitle:routes$1.malnutritionRisk.sectionTitle,continueLink:generatePath(routes$1.cognitiveImpairmentRisk.path,{patientId:It,formId:Dt})},cognitiveImpairmentRisk:{pageNumber:2,sectionTitle:routes$1.cognitiveImpairmentRisk.sectionTitle,continueLink:generatePath(routes$1.pain.path,{patientId:It,formId:Dt}),backLink:generatePath(routes$1.malnutritionRisk.path,{patientId:It,formId:Dt})},pain:{pageNumber:3,sectionTitle:routes$1.pain.sectionTitle,continueLink:generatePath(routes$1.transportMode.path,{patientId:It,formId:Dt}),backLink:generatePath(routes$1.cognitiveImpairmentRisk.path,{patientId:It,formId:Dt})},transportMode:{pageNumber:4,sectionTitle:routes$1.transportMode.sectionTitle,continueLink:generatePath(routes$1.socialCircumstances.path,{patientId:It,formId:Dt}),backLink:generatePath(routes$1.pain.path,{patientId:It,formId:Dt})},socialCircumstances:{pageNumber:5,sectionTitle:routes$1.socialCircumstances.sectionTitle,continueLink:generatePath(routes$1.wellbeingScreen.path,{patientId:It,formId:Dt}),backLink:generatePath(routes$1.transportMode.path,{patientId:It,formId:Dt})},wellbeingScreen:{pageNumber:6,sectionTitle:routes$1.wellbeingScreen.sectionTitle,continueLink:generatePath(routes$1.summary.path,{patientId:It,formId:Dt}),backLink:generatePath(routes$1.socialCircumstances.path,{patientId:It,formId:Dt})},summary:{pageNumber:7,sectionTitle:routes$1.summary.sectionTitle,continueLink:generatePath(routes$1.reviewAndSubmit.path,{patientId:It,formId:Dt}),backLink:generatePath(routes$1.wellbeingScreen.path,{patientId:It,formId:Dt})},reviewAndSubmit:{pageNumber:8,sectionTitle:routes$1.reviewAndSubmit.sectionTitle,backLink:generatePath(routes$1.summary.path,{patientId:It,formId:Dt})}};return jsxRuntimeExports.jsx(Form,{children:jsxRuntimeExports.jsxs(NAPageContainer,{children:[jsxRuntimeExports.jsx(StepperPlaceholder,{children:jsxRuntimeExports.jsx(SideBar$1,{sidebarVariables:_r,children:jsxRuntimeExports.jsx(Stepper,{stepperTitle,data:ln,currentPage:Pr,handleValidation:kn,isLocked:Fr})})}),jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:routes$1.malnutritionRisk.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...Gn,...Un.malnutritionRisk,children:jsxRuntimeExports.jsx(MalnutritionRisk,{allowedLocations:dt,lastUpdateUserData:Dr,handleMutation:cn})})}),jsxRuntimeExports.jsx(Route,{path:routes$1.cognitiveImpairmentRisk.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...Gn,...Un.cognitiveImpairmentRisk,children:jsxRuntimeExports.jsx(CognitiveImpairmentRisk,{handleMutation:cn,lastUpdateUserData:Dr})})}),jsxRuntimeExports.jsx(Route,{path:routes$1.pain.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...Gn,...Un.pain,children:jsxRuntimeExports.jsx(Pain,{handleMutation:cn,healthAssessmentData:rt,lastUpdateUserData:Dr})})}),jsxRuntimeExports.jsx(Route,{path:routes$1.transportMode.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...Gn,...Un.transportMode,children:jsxRuntimeExports.jsx(TransportMode,{handleMutation:cn,healthAssessmentData:rt,patientState:vn,registrationFormData:tt,lastUpdateUserData:Dr})})}),jsxRuntimeExports.jsx(Route,{path:routes$1.socialCircumstances.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...Gn,...Un.socialCircumstances,children:jsxRuntimeExports.jsx(SocialCircumstances,{typeOfResidenceRefData:kt.typeOfResidenceRefData,handleMutation:cn,healthAssessmentData:rt,registrationFormData:tt,lastUpdateUserData:Dr})})}),jsxRuntimeExports.jsx(Route,{path:routes$1.wellbeingScreen.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...Gn,...Un.wellbeingScreen,children:jsxRuntimeExports.jsx(Wellbeing,{handleMutation:cn,healthAssessmentData:rt,distressThermometerData:et,lastUpdateUserData:Dr})})}),jsxRuntimeExports.jsx(Route,{path:routes$1.summary.path,render:()=>jsxRuntimeExports.jsx(FormContainer$1,{...Gn,...Un.summary,children:jsxRuntimeExports.jsx(Summary,{handleMutation:cn,patientState:vn,lastUpdateUserData:Dr,latestChartCheckData:pt})})}),jsxRuntimeExports.jsx(Route,{path:routes$1.reviewAndSubmit.path,render:()=>jsxRuntimeExports.jsxs(FormContainer$1,{isLocked:Fr,...Gn,...Un.reviewAndSubmit,reviewInfo,handleValidation:kn,saveAndExitLink:generatePath(patientSummaryLink,{patientId:It}),submitForm:()=>vt(!0),children:[jsxRuntimeExports.jsx(ReviewAndSubmit,{patient:nt,isLocked:Fr,allowedLocations:dt}),jsxRuntimeExports.jsx(StandardDialog,{open:Mt,title:nn.nurseLocation?sharedContent.reviewAndSubmit.missingQcl.title:sharedContent.reviewAndSubmit.submit.title,onClose:()=>vt(!1),submitText:nn.nurseLocation?sharedContent.reviewAndSubmit.missingQcl.returnToField:sharedContent.generic.label.submit,submitButtonProps:{disabled:Rt},onSubmit:()=>{nn.nurseLocation?(vt(!1),Tt.push(generatePath(routes$1.malnutritionRisk.path,{patientId:It,formId:Dt}))):(zt(!0),rn())},children:nn.nurseLocation?jsxRuntimeExports.jsx(ModalContentMissingQcl,{sectionName:routes$1.malnutritionRisk.sectionTitle}):jsxRuntimeExports.jsx(ModalContentSubmit,{isAmendment:Yr,submittedByNurse:xn,formName:"Triage"})}),jsxRuntimeExports.jsx(StandardDialog,{open:Ot,onClose:()=>At(!1),title:sharedContent.reviewAndSubmit.submissionError.title,submitText:sharedContent.reviewAndSubmit.submissionError.contactText,onSubmit:()=>{Qr(),Tt.push(generatePath(patientSummaryLink,{patientId:It}))},children:jsxRuntimeExports.jsx(ModalContentSubmissionError,{text:sharedContent.reviewAndSubmit.submissionError.mainText,emailLink:sharedContent.reviewAndSubmit.submissionError.emailLink})})]})})]}),jsxRuntimeExports.jsx(AdditionalNotes,{name:"additionalNotes",handleMutation:cn,value:an.additionalNotes,handleChange:An,isLocked:Fr})]})})}})}):jsxRuntimeExports.jsx(GeneralError,{})},PreCtTriageApollo=()=>{const{patientId:et,formId:tt}=useParams(),{setError:rt}=useErrorModalContext(),nt=useHistory(),{loading:lt,data:ut,error:dt}=useQuery(DT_RATING_QUERY,{variables:{patientId:et,version:DistressThermometerVersion.INITIAL,status:FormStatus.REG_SUBMITTED}}),{loading:pt,data:ht,error:mt}=useQuery(REGISTRATION_FORM_QUERY,{variables:{id:et}}),{loading:xt,data:Mt,error:vt}=useQuery(HEALTH_ASSESSMENT_QUERY,{variables:{id:et,status:FormStatus.REG_SUBMITTED}}),{loading:Ot,data:At,error:Rt}=useQuery(QUERY_NURSE,{variables:{id:et}}),{loading:zt,data:Tt,error:Ct,refetch:It}=useQuery(PRE_CT_TRIAGE_QUERY,{variables:{id:tt,patientId:et}}),{loading:Dt,data:kt,error:qt}=useQuery(GET_ALLOWED_LOCATIONS,{variables:{roles:["Nurse"],hasOther:!1}}),{data:Nt,refetch:Yt,error:Kt}=useQuery(LATEST_SUBMITTED_CHART_CHECK_QUERY,{variables:{patientId:et}});reactExports.useEffect(()=>{if(dt||mt||vt||Rt||Ct||qt||Kt)return rt()},[dt,mt,vt,Rt,Ct,qt,Kt]);const[Jt]=useMutation(UPDATE_PRE_CT_TRIAGE),[Qt]=useMutation(SUBMIT_PRE_CT_TRIAGE,{refetchQueries:[{query:PRE_CT_TRIAGE_QUERY,variables:{id:tt,patientId:et}}]}),Bt={updatePreCtTriage:Jt,submitPreCtTriage:Qt,refetchPreCtTriage:It},Ft=lt&&pt&&xt&&Ot&&zt&&Dt,$t=ut&&ht&&Mt&&At&&Tt&&Tt.preCtTriage&&kt;return Tt&&!Tt.preCtTriage&&nt.push(`/patient/${et}/summary`),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ft&&jsxRuntimeExports.jsx(LoadingSpinner,{}),$t&&jsxRuntimeExports.jsx(FormContext.Provider,{value:{mutations:Bt,typeOfResidenceRefData:Tt.typeOfResidenceRefData},children:jsxRuntimeExports.jsx(PreCtTriage,{allowedLocationsData:kt.allowedLocations,distressThermometerData:ut.distressThermometer,registrationFormData:ht,healthAssessmentData:Mt,patientDetailsData:At.patient,preCtTriageData:Tt.preCtTriage,loggedInUserData:At&&At.user,fetchLatestChartCheck:Yt,latestChartCheckData:Nt&&Nt.lastSubmittedPreCtChartCheck})})]})},Container=styled$1("div")`
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  max-height: calc(100vh - 255px);
`,AllNotesContainer=styled$1("div")`
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  border-radius: 4px;
  flex-grow: 1;
  overflow: hidden;
  margin-top: 12px;
  display: flex;
`,NotesListContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  width: 25%;
  border-right: 1px solid ${et=>et.theme.palette.grey[300]};
  max-height: 100%;
  overflow-y: auto;
`,NotesPreviewContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  width: 75%;
  overflow-y: auto;
`,NoteText=styled$1("div")`
  line-height: 24px;
  font-size: 16px;
  white-space: ${({$format:et})=>et?"normal":"pre-wrap"};
  color: ${et=>et.theme.palette.text.primary};
  word-break: break-word;
  font,
  *,
`,NoNotes=styled$1("div")`
  padding: 16px;
`,formatNoteDateTime=(et,tt,rt)=>formatNoteCreationDate(et,tt,rt),DisplayNotes=()=>{var At;const et=useTheme$1(),tt=useRouteMatch(),{id:rt}=tt.params,[nt,lt]=reactExports.useState(),{notes:ut,filteredNotes:dt,filterNoteTypes:pt,setFilterNoteTypes:ht,isLoading:mt,hasErrors:xt}=usePatientNotes(rt),{data:Mt}=useQuery(GET_PRACTITIONER,{variables:{patientId:rt},skip:!rt}),vt=reactExports.useMemo(()=>{var Rt;return((Rt=Mt==null?void 0:Mt.practitioner)==null?void 0:Rt.timezone)||CurrentAppConfig.DefaultTimezone},[(At=Mt==null?void 0:Mt.practitioner)==null?void 0:At.timezone]);if(reactExports.useEffect(()=>{const Rt=document.getElementById(`note-preview-${nt}`);Rt&&(Rt.scrollIntoView({behavior:"smooth"}),Rt.focus({preventScroll:!0}))},[nt]),mt&&!ut)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading notes"});if(xt)return jsxRuntimeExports.jsx("div",{children:"Error"});const Ot=()=>jsxRuntimeExports.jsx(NoNotes,{children:"No notes found."});return jsxRuntimeExports.jsxs(Container,{children:[jsxRuntimeExports.jsx(Typography,{paddingBottom:1,variant:"h6",children:"Notes"}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:1,alignItems:"center",width:"25%",children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:"Type:"}),jsxRuntimeExports.jsx(NotesFilter,{noteTypes:pt,setFilterNoteTypes:ht})]}),jsxRuntimeExports.jsxs(AllNotesContainer,{children:[jsxRuntimeExports.jsx(NotesListContainer,{children:dt.length?dt.map((Rt,zt)=>jsxRuntimeExports.jsxs(Stack$5,{padding:1,"data-test-id":`display-note-${zt}`,borderBottom:"1px solid",borderColor:et.palette.grey[300],sx:{backgroundColor:zt===nt?et.palette.action.selected:"inherit",cursor:"pointer","&:hover":{backgroundColor:zt===nt?et.palette.action.selected:et.palette.action.hover}},onClick:()=>lt(zt),children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:Rt.messageType}),jsxRuntimeExports.jsx(Typography,{variant:"body2",color:et.palette.text.secondary,children:formatNoteDateTime(Rt,vt,"L")})]},Rt.id)):jsxRuntimeExports.jsx(Ot,{})}),jsxRuntimeExports.jsx(NotesPreviewContainer,{children:dt.length?dt.map((Rt,zt)=>{var Tt;return jsxRuntimeExports.jsxs(Stack$5,{paddingX:2,paddingY:1,borderBottom:"1px solid",borderColor:et.palette.grey[300],id:`note-preview-${zt}`,children:[jsxRuntimeExports.jsxs(Stack$5,{justifyContent:"space-between",alignItems:"center",direction:"row",marginBottom:1,children:[jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsxs(Typography,{variant:"subtitle1",children:[(Tt=Rt.createdBy)==null?void 0:Tt.name," ",Rt.practitionerQualification&&`(${Rt.practitionerQualification})`]}),Rt.messageTypeAlias&&jsxRuntimeExports.jsx(Typography,{color:et.palette.text.secondary,variant:"body2",children:Rt.messageTypeAlias})]}),jsxRuntimeExports.jsx(Typography,{color:et.palette.text.secondary,variant:"body2",children:formatNoteDateTime(Rt,vt,"L hh:mmA")})]}),jsxRuntimeExports.jsx(NoteText,{$format:Rt.formattedMessage.startsWith("<!DOCTYPE html"),dangerouslySetInnerHTML:sanitizeNote(Rt.formattedMessage)})]},Rt.id)}):jsxRuntimeExports.jsx(Ot,{})})]})]})},Notes=()=>{const tt=useWindowSize().width<LARGE_DISPLAY_SIZE;return jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{children:jsxRuntimeExports.jsxs(Grid,{container:!0,sx:{padding:"0 16px"},children:[jsxRuntimeExports.jsx(Grid,{xs:tt?11:9,sx:{padding:"16px",borderRadius:"4px",boxShadow:"0px 2px 8px rgba(113, 110, 106, 0.4)",backgroundColor:"white"},children:jsxRuntimeExports.jsx(DisplayNotes,{})}),jsxRuntimeExports.jsx(Grid,{xs:tt?1:3,children:jsxRuntimeExports.jsx(AddNotes,{})})]})})})},logger$a=new Logger("ROPatientForms"),DocumentsWrapper=styled$1(GridContainer)`
  position: relative;
  display: flex;
  margin: 0px;
  padding-bottom: 8px;
`,StyledOuterContainer=styled$1(routedComponent$c)`
  padding: 0;
`,DocumentsUploadPage=et=>{var pt,ht;const{patientId:tt}=et,rt=useHistory(),{data:nt}=useQuery(GET_PATIENT_ATTACHMENTS,{variables:{id:et.patientId}}),[lt]=useMutation(SUBMIT_ATTACHMENT,{awaitRefetchQueries:!0,refetchQueries:[{query:GET_PATIENT_ATTACHMENTS,variables:{id:tt}}]}),ut=nt==null?void 0:nt.user.id,dt=((ht=(pt=nt==null?void 0:nt.patient)==null?void 0:pt.attachments)==null?void 0:ht.filter(mt=>{var xt;return!mt.submitted&&((xt=mt.uploader)==null?void 0:xt.id)===ut&&!mt.staging&&!mt.isRegistrationAttachment}))||[];return jsxRuntimeExports.jsx(FileContextProvider,{children:jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(StyledOuterContainer,{marginBottom:"42px",children:jsxRuntimeExports.jsx(DocumentsWrapper,{children:jsxRuntimeExports.jsx(DocumentUpload$1,{patientId:tt,userId:ut,currentDocuments:dt,onSubmitDocumentUpload:async()=>{const mt=await lt({variables:{patientID:et.patientId}}).then(xt=>(logger$a.debug("submitRegistration",`Response came back: /server/media/${xt.data.submitAttachment}`),xt.data.submitAttachment.success));return mt&&rt.push(`/radiation/patient/${et.patientId}/documents/view`),mt},onCancelDocumentUpload:()=>{rt.push(`/radiation/patient/${et.patientId}/documents/view`)}})})})})})},UploadIcon=styled$1(UploadOutlinedIcon)`
  width: 24px;
  height: 24px;
  margin-right: -5px;
`,DocumentUploadButton=et=>jsxRuntimeExports.jsx(Button,{variant:"text",onClick:et.onClick,"data-testid":"document-upload-button",startIcon:jsxRuntimeExports.jsx(UploadIcon,{color:"primary"}),children:"Upload document"}),StyledDocListCol=styled(Stack$5)`
  flex-grow: 1;
  margin-top: 0.5em;
  color: ${et=>et.theme.palette.text.primary};
  overflow: auto;
  padding: 0px;

  th {
    white-space: nowrap;
  }
  td {
    font-size: 14px;
  }
  table {
    margin: 0;
  }
`,StyledContainer=styled("div")`
  height: 100%;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  tbody tr:hover {
    cursor: pointer;
  }
`,StyledSimpleTable=styled(SimpleTable)`
  line-height: 40px;
  margin: 25px 5px;
`,HeadingBlock=styled("div")`
  display: flex;
  justify-content: space-between;
`,TABLE_HEADER=[{header:"Type",key:"description",sort:!1,type:DATATYPE.STRING},{header:"Status",key:"status",sort:!0,type:DATATYPE.STRING},{header:"Date",key:"dateOfDocument",sort:!0,type:DATATYPE.DATE}],HEADING="Documents",DOC_FILTER_FIELD=CurrentAppConfig.PatientSummary.documentFilterField,DocumentsList=et=>{const tt=useRouteMatch(),rt=useHistory(),[nt,lt]=reactExports.useState([]),[ut,dt]=reactExports.useState([]),pt=reactExports.useRef(null),{id:ht}=tt.params,{documents:mt,setSelectedDocument:xt,selectedDocument:Mt}=et,vt=usePrevious$2(ht);useTheme$1();const Ot=(Dt,kt)=>[...Dt].sort((qt,Nt)=>{if(!qt.hasOwnProperty(kt)||!Nt.hasOwnProperty(kt))return 0;const Yt=qt[kt].toLowerCase(),Kt=Nt[kt].toLowerCase();return Yt>Kt?1:Kt>Yt?-1:0}),At=Dt=>{xt(Dt!=null?ut.filter(kt=>kt.id===Dt)[0]:null)},Rt=Dt=>Dt.map(kt=>({...kt,dateOfDocument:dayjs(kt.dateOfDocument).format("DD/MM/YYYY")})),zt=Dt=>{const kt=Dt.map(Nt=>Nt[DOC_FILTER_FIELD]);return[...new Set(kt)].map(Nt=>{const Yt=nt&&nt.filter(Jt=>Jt.id===Nt).length;let Kt=!0;return Yt&&ht===vt&&(Kt=nt.filter(Jt=>Jt.id===Nt)[0].checked),{id:Nt,name:Nt,checked:Kt}})},Tt=(Dt,kt)=>{const qt=nt.map(Nt=>{const Yt=Dt.filter(Kt=>Kt===Nt.id);return Yt.length?{id:Yt[0],name:Yt[0],checked:kt}:Nt});lt(qt?Ot(qt,"name"):[])};reactExports.useEffect(()=>{if(mt){dt(mt);const Dt=zt(mt),kt=Ot(Dt,"name");lt(kt)}},[mt]),reactExports.useEffect(()=>{ut!=null&&ut.length&&ut[0].patient.id===ht&&!ut.filter(Dt=>Dt.id===(Mt==null?void 0:Mt.id)).length?At(ut[0].id):mt.length||At(null)},[ut]),reactExports.useEffect(()=>{const Dt=nt.filter(qt=>qt.checked).map(qt=>qt.id),kt=mt.filter(qt=>Dt.includes(qt[DOC_FILTER_FIELD]));dt(kt)},[nt]);const Ct=Rt(ut),It=Ct.length?Ct:[{id:0}];return jsxRuntimeExports.jsxs(StyledContainer,{children:[jsxRuntimeExports.jsxs(HeadingBlock,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:HEADING}),CurrentAppConfig.PatientSummary.RODocumentUpload&&jsxRuntimeExports.jsx(DocumentUploadButton,{onClick:()=>{rt.push(`/radiation/patient/${ht}/documents/upload`)}})]}),jsxRuntimeExports.jsx(StyledDocListCol,{ref:pt,children:mt!=null&&mt.length?jsxRuntimeExports.jsx(StyledSimpleTable,{header:HEADING,onRowClick:Dt=>{xt(ut.filter(kt=>kt.id===Dt)[0])},dataProps:TABLE_HEADER,data:It,selectedRow:Mt?Mt.id:It.length?It[0].id:null,docTypeOptions:nt,updateDocumentTypeOptions:Tt}):jsxRuntimeExports.jsxs(Stack$5,{alignItems:"center",paddingTop:4,children:[jsxRuntimeExports.jsx(FindInPageOutlinedIcon,{fontSize:"large",color:"primary"}),jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"No document available"})]})})]})},DocumentsPage=()=>{const et=useRouteMatch(),{id:tt}=et.params,[rt,nt]=reactExports.useState(null),ut=useWindowSize().width<LARGE_DISPLAY_SIZE,{data:dt,loading:pt,error:ht,refetch:mt}=useQuery(GET_PATIENT_DOCUMENTS,{variables:{patientId:tt},skip:!tt,fetchPolicy:"network-only"}),xt=dt==null?void 0:dt.documents;return useInterval(()=>{mt()},8e3),ht?jsxRuntimeExports.jsx("div",{children:"Error"}):jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{children:jsxRuntimeExports.jsxs(Grid,{container:!0,sx:{padding:"0 16px"},children:[jsxRuntimeExports.jsx(Grid,{xs:ut?4:3,sx:{padding:"16px",borderRadius:"4px",boxShadow:"0px 2px 8px rgba(113, 110, 106, 0.4)",backgroundColor:"white",height:"100%"},children:pt?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Documents",relativeSpinner:!0}):jsxRuntimeExports.jsx(DocumentsList,{documents:xt,selectedDocument:rt,setSelectedDocument:nt})}),jsxRuntimeExports.jsx(Grid,{xs:ut?7:6,sx:{paddingLeft:"16px"},children:jsxRuntimeExports.jsx(ROPatientDocs,{document:rt})}),jsxRuntimeExports.jsx(Grid,{xs:ut?1:3,children:jsxRuntimeExports.jsx(AddNotes,{})})]})})})},DocumentsPageRouter=()=>{const et=useRouteMatch(),{id:tt,page:rt}=et.params;return rt==="view"?jsxRuntimeExports.jsx(DocumentsPage,{}):rt==="upload"&&CurrentAppConfig.PatientSummary.RODocumentUpload?jsxRuntimeExports.jsx(DocumentsUploadPage,{patientId:tt}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},PATIENT_AND_USER_DETAILS_QUERY$1=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      patientState
      lastVisitedSection
      regFormStatus
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      firstName
      middleName
      lastName
      ida
      gender
      dob
      namePrefix
      preferredName
      dobRawDay
      dobRawMonth
      dobRawYear
      primaryPhone
      secondaryPhone
      email
      residentialAddressLine1
      residentialAddressLine2
      residentialAddressCity
      residentialAddressState
      residentialAddressPostcode
      residentialAddressCountry
      postalAddressSameAsResidential
      postalAddressLine1
      postalAddressLine2
      postalAddressCity
      postalAddressState
      postalAddressPostcode
      postalAddressCountry
      address {
        id
        formattedAddress
      }
      userProfile {
        id
        systemState
      }
      attachments {
        id
        filename
        documentType
        filesize
        submitted
        url
        encounterDate
        isRegistrationAttachment
      }
      attachmentAcknowledged
      emergencyContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      nextOfKinContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
        authorisedForEnquiries
        supportPerson
      }
      altContactProvided
      referringFirstName
      referringLastName
      referringPractice
      referringIsInMosaiq
      gpFirstName
      gpLastName
      gpPractice
      gpIsInMosaiq
      referrersOtherSpecialists
      healthMedicareDvaOption
      healthMedicareNumber
      healthMedicareIrn
      healthMedicareExpiry
      healthDvaExpiry
      healthDvaNumber
      healthDvaType
      healthPrivateHealthInsurance
      healthPrivateHealthFundName
      healthPrivateHealthFundNumber
      healthPensionCard
      healthPensionCardNumber
      healthPensionCardExpiry
      countryOfBirth
      languageAtHome
      occupation
      heritage
      maritalStatus
      interpreterRequired
      informationNoticeContent
      informationNoticeAccepted
      informationNoticeAlliedHealthReceiveUpdates
      additionalComments
      diffMqData
      ambulanceMembership
      ambulanceMembershipNumber
    }
    titleRefData: listData(category: "nameTitle") {
      id
      name
    }
    relationshipsRefData: listData(category: "relationships") {
      id
      name
    }
    heritageRefData: listData(category: "heritage") {
      id
      name
    }
    maritalStatusRefData: listData(category: "maritalStatus") {
      id
      name
    }
    countryOfBirthRefData: listData(category: "countryOfBirth", removeOutdated: true) {
      id
      name
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    languageSpokenRefData: listData(category: "languages") {
      id
      name
    }
    medicareTypeRefData: listData(category: "healthFund") {
      id
      name
      appKey
    }
    dvaTypeRefData: listData(category: "dvaCardType") {
      id
      name
      appKey
    }
    ausStateRefData: listData(category: "australiaStates") {
      id
      name
    }
    user {
      id
      isPso
    }
    profile(id: $id) {
      id
      showDistressThermometer
      patientFeatures(id: $id) {
        doctorReferralLookupEnabled
      }
    }
    healthAssessment(id: $id) {
      id
      status
    }
    covidScreening(id: $id) {
      id
      status
    }
    distressThermometerInitial(patientId: $id) {
      id
      status
    }
    distressThermometerEot(patientId: $id) {
      id
      status
    }
  }
`;styled$1("div")`
  font-weight: bold;
  font-size: 18px;
  line-height: 28px;
  margin: 8px 0px;
`;const StyledLink$1=styled$1(Link$2)`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 16px 16px 16px;
  text-decoration: none;
  height: 63px;
  border-bottom: solid 1px ${et=>et.theme.palette.grey[300]};
  transition: border-color 0.15s ease-in-out;

  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
`,CreatePatient$1=()=>{const[et,tt]=reactExports.useState(!1),{data:rt,loading:nt,error:lt}=useQuery(GET_USER_PROFILE),ut=useTheme$1(),{data:dt,loading:pt,error:ht}=useQuery(GET_INTERNAL_ONCOLOGISTS);if(reactExports.useEffect(()=>{if(lt||ht||rt&&!(rt.user.isPso||rt.user.isRo))return tt(!0)},[lt,rt,ht]),nt||pt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(et)return jsxRuntimeExports.jsx(Redirect,{to:"/error"});const mt=()=>{var Mt;const xt=(Mt=rt==null?void 0:rt.user)!=null&&Mt.isPso?generatePath("/search"):generatePath("/radiation");return jsxRuntimeExports.jsxs(StyledLink$1,{to:xt,"data-test-id":"back-to-search-button",children:[jsxRuntimeExports.jsx(StyledArrow,{}),jsxRuntimeExports.jsx(StyledTitle,{children:"Back to dashboard"})]})};return jsxRuntimeExports.jsx(ROBase,{children:jsxRuntimeExports.jsxs(Stack$5,{sx:{display:"flex",flexDirection:"row",height:"100%"},children:[jsxRuntimeExports.jsx(Stack$5,{style:{width:"240px",backgroundColor:ut.palette.grey[100],borderRight:"1px solid rgba(0, 0, 0, 0.2)"},children:jsxRuntimeExports.jsx(OncologyStepper,{steps:createPatientSteps,children:jsxRuntimeExports.jsx(mt,{})})}),jsxRuntimeExports.jsx(MiddleContainerCol$1,{children:jsxRuntimeExports.jsx(CreatePatientBasicForm,{physiciansRefData:dt.internalOncologists})}),jsxRuntimeExports.jsx(RightContainerCol,{})]})})},MOBase=({children:et})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ROBase,{children:et})}),LIST_DATA=gql`
  query carepathDataReferenceList($listCategory: [String!]!, $patientId: ID) {
    carepathDataReferenceList(listCategory: $listCategory, patientId: $patientId) {
      id
      data {
        id
        option
      }
      listWeight
      category {
        id
        category
      }
    }
  }
`;function useOncologyListData(et,tt){const{data:rt}=useQuery(LIST_DATA,{variables:{listCategory:et,patientId:tt}});return reactExports.useMemo(()=>!rt||!rt.carepathDataReferenceList?{}:rt.carepathDataReferenceList.reduce((lt,ut)=>(lt[ut.category.category]===void 0&&(lt[ut.category.category]=[]),lt[ut.category.category].push({option:ut.data.option,listWeight:ut.listWeight}),lt),{}),[rt])}const TABLE_KEYS$1={PATIENT_NAME:"patientName",TREATING_DEPARTMENT:"treatingDepartment",CAREPLAN:"careplan",NEXT_TREATMENT:"next_treatment",STATUS:"status",PRESCRIBING_DOCTOR:"prescribingDoctor",LAST_MODIFIED:"lastModified"},TABLE_LABELS$1={PATIENT_NAME:"Patient",TREATING_DEPARTMENT:"Treating department",CAREPLAN:"Careplan",NEXT_TREATMENT:"Next treatment",STATUS:"Status",PRESCRIBING_DOCTOR:"Prescribing doctor",LAST_MODIFIED:"Last modified"},CAREPLAN_STATUS$1={APPROVED:"Approved",APPROVAL_REQUIRED:"Approval Required",SAVE_PRINT_REQUIRED:"Save/Print Required",DRAFT:"Draft"};gql`
  mutation CreatePatient {
    createPatient {
      patient {
        id
      }
    }
  }
`;gql`
  mutation translation($lang: String!) {
    changeLanguage(language: $lang) {
      newLanguage {
        language
      }
      languageChanged
    }
  }
`;gql`
  query GetUnsubmittedCount {
    getUnsubmittedCount {
      id
      drafts
      unsubmitted
    }
  }
`;const GET_UPCOMING_DOCTOR_CAREPLANS=gql`
  query UpcomingDoctorCareplans($startDate: Date, $endDate: Date) {
    upcomingDoctorCareplans(startDate: $startDate, endDate: $endDate) {
      id
      patient {
        id
        fullName
        dob
        gender
        address {
          id
          formattedAddress
        }
        photoUrl
      }
      treatingDepartment
      careplanName
      nextTreatmentDate
      nextTreatmentInfo
      nextTreatmentCycleId
      status
      prescribingDoctor
      lastModified
    }
  }
`,GET_TREATMENT_DASHBOARD_SETTINGS=gql`
  query {
    treatmentDashboardSettings {
      practitionerId
      practitionerName
      practitionerSelected
    }
  }
`,UPDATE_TREATMENT_DASHBOARD_SETTINGS=gql`
  mutation UpdateTreatmentDashboardSettings($selectedPrescribingDoctors: [Int]!) {
    updateTreatmentDashboardSettings(selectedPrescribingDoctors: $selectedPrescribingDoctors) {
      success
    }
  }
`,getGender=et=>{switch(et){case"1":return"M";case"2":return"F";default:return"Unknown"}},getPatientDob=et=>hooks(et.dob,"YYYY-MM-DD").format("L"),StyledDot$1=styled$1("div")`
  height: 16px;
  width: 16px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
`,StyledText$1=styled$1("div")`
  font-size: 16px;
  line-height: 1.4;
`,MOCareplanStatus$1=et=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledDot$1,{...et})," ",et.status]}),PatientDetails$1=et=>{var rt,nt,lt;const tt=useTheme$1();return jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[jsxRuntimeExports.jsx("div",{style:{paddingRight:"16px",alignSelf:"center"},children:jsxRuntimeExports.jsx(PhotoWidget,{patientId:(rt=et.patient)==null?void 0:rt.id,enableOverlay:!0,size:"sm"})}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",alignSelf:"center"},children:[jsxRuntimeExports.jsx("div",{style:{fontSize:"16px",paddingBottom:"8px"},children:`${et.patient.fullName} (${getGender(et.patient.gender)})`}),jsxRuntimeExports.jsxs("div",{style:{fontSize:"13px",color:tt.palette.grey[600],paddingBottom:"4px"},children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600,paddingRight:"2px"},children:"DOB: "}),getPatientDob(et.patient)]}),jsxRuntimeExports.jsxs("div",{style:{fontSize:"13px",color:tt.palette.grey[600]},children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600,paddingRight:"2px",wordBreak:"break-word"},children:"ADDR: "}),(lt=(nt=et.patient)==null?void 0:nt.address)==null?void 0:lt.formattedAddress]})]})]})},MOCareplanTable=({careplans:et,headers:tt})=>{const rt=useHistory(),{state:nt}=reactExports.useContext(UserContext),lt=useTheme$1(),ut=et.sort((pt,ht)=>hooks(pt.nextTreatmentDate,"YYYY-MM-DD").diff(hooks(ht.nextTreatmentDate,"YYYY-MM-DD"))).map(pt=>({tableRows:[{key:TABLE_KEYS$1.PATIENT_NAME,width:"14%",component:jsxRuntimeExports.jsx(PatientDetails$1,{patient:pt.patient})},{key:TABLE_KEYS$1.TREATING_DEPARTMENT,width:"16%",component:jsxRuntimeExports.jsx(StyledText$1,{children:pt.treatingDepartment})},{key:TABLE_KEYS$1.CAREPLAN,width:"19%",component:jsxRuntimeExports.jsx(StyledText$1,{children:pt.careplanName})},{key:TABLE_KEYS$1.NEXT_TREATMENT,width:"12%",component:jsxRuntimeExports.jsxs(StyledText$1,{children:[hooks(pt.nextTreatmentDate,"YYYY-MM-DD").calendar({sameDay:"[Today]",nextDay:"[Tomorrow]",nextWeek:"DD/MM/YYYY",sameElse:"DD/MM/YYYY"}),", ",pt.nextTreatmentInfo]})},{key:TABLE_KEYS$1.STATUS,width:"12%",component:jsxRuntimeExports.jsx(MOCareplanStatus$1,{status:pt.status})},{key:TABLE_KEYS$1.PRESCRIBING_DOCTOR,width:"15%",component:jsxRuntimeExports.jsx(StyledText$1,{children:pt.prescribingDoctor})},{key:TABLE_KEYS$1.LAST_MODIFIED,sort:!0,width:"12%",component:jsxRuntimeExports.jsx(StyledText$1,{children:hooks(pt.lastModified).tz(nt.timezone).format("L LT")})}],onRowClick:()=>{rt.push(`/medonc/patient/${pt.patient.id}/careplan/${pt.id}/prescription/${pt.nextTreatmentCycleId}`)},rowHoverColor:lt.palette.primary.light})),dt={tableContainerProps:{minWidth:"1500px",overflow:"auto"},tableHeaders:tt,tableData:ut,defaultSortState:{key:TABLE_KEYS$1.NEXT_TREATMENT,order:SORT_TYPES$1.ASC,type:DATATYPE$1.DATE},hoverScroll:!0,noRowsText:"No upcoming patients"};return jsxRuntimeExports.jsx(Table$2,{testId:"moDashboardTable",...dt})},createOptions$1=et=>et.map((tt,rt)=>({id:rt.toString(),name:tt,checked:!0})),statusOptions$1=createOptions$1(Object.values(CAREPLAN_STATUS$1)),MOCareplanTableApollo=()=>{const{data:et,loading:tt}=useQuery(GET_UPCOMING_DOCTOR_CAREPLANS,{variables:{startDate:hooks().format("YYYY-MM-DD"),endDate:hooks().add(7,"days").format("YYYY-MM-DD")},fetchPolicy:"cache-and-network"}),rt=useOncologyListData(["treatingDepartment"]),[nt,lt]=reactExports.useState(statusOptions$1),{data:ut}=useQuery(GET_TREATMENT_DASHBOARD_SETTINGS,{fetchPolicy:"cache-and-network"}),[dt,pt]=reactExports.useState([]),[ht,mt]=reactExports.useState([]),[xt,Mt]=reactExports.useState([]),[vt]=useMutation(UPDATE_TREATMENT_DASHBOARD_SETTINGS,{awaitRefetchQueries:!0,refetchQueries:["UpcomingDoctorCareplans"]}),Ot=[{title:TABLE_LABELS$1.PATIENT_NAME,key:TABLE_KEYS$1.PATIENT_NAME,type:DATATYPE$1.STRING,width:"14%"},{title:TABLE_LABELS$1.TREATING_DEPARTMENT,key:TABLE_KEYS$1.TREATING_DEPARTMENT,type:DATATYPE$1.STRING,filterOptions:dt,onFilterChange:(At,Rt)=>{pt(zt=>zt==null?void 0:zt.map(Tt=>({...Tt,checked:At.includes(Tt.id)?Rt:Tt.checked})))},dropdownTitle:`${TABLE_LABELS$1.TREATING_DEPARTMENT}${dt.every(At=>At.checked)?" (All)":""}`,width:"16%"},{title:TABLE_LABELS$1.CAREPLAN,key:TABLE_KEYS$1.CAREPLAN,type:DATATYPE$1.STRING,width:"19%",dropdownTitle:TABLE_LABELS$1.CAREPLAN},{title:TABLE_LABELS$1.NEXT_TREATMENT,key:TABLE_KEYS$1.NEXT_TREATMENT,type:DATATYPE$1.STRING,width:"12%"},{title:TABLE_LABELS$1.STATUS,key:TABLE_KEYS$1.STATUS,type:DATATYPE$1.STRING,width:"12%",filterOptions:nt,onFilterChange:(At,Rt)=>{lt(zt=>zt.map(Tt=>({...Tt,checked:At.includes(Tt.id)?Rt:Tt.checked})))},dropdownTitle:`${TABLE_LABELS$1.STATUS}${nt.every(At=>At.checked)?" (All)":""}`},{title:TABLE_LABELS$1.PRESCRIBING_DOCTOR,key:TABLE_KEYS$1.PRESCRIBING_DOCTOR,type:DATATYPE$1.STRING,width:"15%",filterOptions:xt.map(At=>({id:At.practitionerId,name:At.practitionerName,checked:At.practitionerSelected})),disableCheckAll:!0,onFilterChange:(At,Rt)=>{Mt(zt=>{const Tt=zt.map(It=>({...It,practitionerSelected:At.includes(It.practitionerId)?Rt:It.practitionerSelected})),Ct=Tt.filter(It=>It.practitionerSelected).map(It=>parseInt(It.practitionerId));return vt({variables:{selectedPrescribingDoctors:Ct}}),Tt})},dropdownTitle:TABLE_LABELS$1.PRESCRIBING_DOCTOR,badgeNumber:xt.filter(At=>At.practitionerSelected).length},{title:TABLE_LABELS$1.LAST_MODIFIED,key:TABLE_KEYS$1.LAST_MODIFIED,type:DATATYPE$1.DATE,width:"12%"}];return reactExports.useEffect(()=>{if(et){const At=nt.filter(Ct=>Ct.checked).map(Ct=>Ct.name),Rt=dt==null?void 0:dt.filter(Ct=>Ct.checked).map(Ct=>Ct.name),zt=xt.filter(Ct=>Ct.practitionerSelected).map(Ct=>Ct.practitionerName),Tt=et.upcomingDoctorCareplans.filter(Ct=>At.includes(Ct.status)&&(!Rt||Rt.includes(Ct.treatingDepartment))&&(!zt||zt.includes(Ct.prescribingDoctor)));mt(Tt)}},[et,nt,dt,xt]),reactExports.useEffect(()=>{rt.treatingDepartment&&pt(createOptions$1(rt.treatingDepartment.map(At=>At.option)))},[rt]),reactExports.useEffect(()=>{if(ut){const Rt=ut.treatmentDashboardSettings.map(zt=>({practitionerId:zt.practitionerId.toString(),practitionerName:zt.practitionerName,practitionerSelected:zt.practitionerSelected}));Mt(Rt)}},[ut]),tt&&!rt?jsxRuntimeExports.jsx(LoadingSpinner,{}):jsxRuntimeExports.jsx(MOCareplanTable,{careplans:ht,headers:Ot})},DashboardPanel=()=>{const et=useTheme$1();return jsxRuntimeExports.jsxs(Card$1,{style:{margin:"32px",height:"calc(100% - 60px)",width:"calc(100% - 303px)"},children:[jsxRuntimeExports.jsx("h1",{style:{fontSize:"24px",paddingBottom:"8px"},children:"Treatment"}),jsxRuntimeExports.jsx("p",{style:{fontSize:"14px",color:et.palette.grey[600]},children:"In the next 7 days"}),jsxRuntimeExports.jsx("div",{style:{overflow:"auto",height:"calc(100% - 60px)"},children:jsxRuntimeExports.jsx(MOCareplanTableApollo,{})})]})};styled$1(Card$1)`
  flex-grow: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: auto;
  margin-left: 5px;
`;const SideUserDetailWrapper=styled$1("div")`
  width: 100%;
  padding: 16px;
  background-color: white;
`,StyleDivWrapper=styled$1("div")`
  padding-top: 16px;
`,MODashboard=()=>{const{setError:et}=useErrorModalContext(),{data:tt,loading:rt,error:nt}=useQuery(GET_USER_PROFILE),lt=tt.user.isMo;reactExports.useEffect(()=>{if(nt||!tt.user.hasStaffId)return et("ACCOUNT")},[nt,tt,tt.user.hasStaffId,et]);const ut=tt.user.primaryRole===RoleType.CAREPLANVIEWER;if(!lt&&!ut)return jsxRuntimeExports.jsx(Redirect,{to:"/error"});if(rt)return jsxRuntimeExports.jsx(LoadingSpinner,{});const dt=`Dr. ${tt.user.name}`,pt=generateGreetingText();return jsxRuntimeExports.jsxs("div",{className:"RO-home-wrapper",children:[jsxRuntimeExports.jsxs(ROSideNav,{children:[jsxRuntimeExports.jsxs(SideUserDetailWrapper,{children:[jsxRuntimeExports.jsx("div",{className:"side-date-wrapper",children:hooks().format("ddd, DD MMMM YYYY")}),jsxRuntimeExports.jsx("div",{className:"side-user-photo",children:jsxRuntimeExports.jsx(ROProfilePhoto,{})}),jsxRuntimeExports.jsx("div",{className:"side-greeting-wrapper",children:pt}),jsxRuntimeExports.jsx("div",{className:"side-username-wrapper",children:dt}),jsxRuntimeExports.jsx("hr",{})]}),jsxRuntimeExports.jsx(StyleDivWrapper,{})]}),jsxRuntimeExports.jsx(DashboardPanel,{})]},"RO-dashboard")},StyledLink=styled$1(Link$2)`
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 16px 16px 16px;
  text-decoration: none;
  height: 63px;
  border-bottom: solid 1px ${et=>et.theme.palette.grey[300]};
  transition: border-color 0.15s ease-in-out;

  &:focus,
  &:hover,
  &:visited,
  &:link,
  &:active {
    text-decoration: none;
  }
`,CreatePatient=()=>{const[et,tt]=reactExports.useState(!1),rt=useTheme$1(),{data:nt,loading:lt,error:ut}=useQuery(GET_USER_PROFILE);if(reactExports.useEffect(()=>{if(ut||nt&&!nt.user.isMo)return tt(!0)},[ut,nt]),lt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(et)return jsxRuntimeExports.jsx(Redirect,{to:"/error"});const dt=()=>{const pt=generatePath("/medonc");return jsxRuntimeExports.jsxs(StyledLink,{to:pt,"data-test-id":"back-to-search-button",children:[jsxRuntimeExports.jsx(StyledArrow,{}),jsxRuntimeExports.jsx(StyledTitle,{children:"Back to dashboard"})]})};return jsxRuntimeExports.jsx(Stack$5,{children:jsxRuntimeExports.jsxs(Stack$5,{sx:{display:"flex",flexDirection:"row",height:"100%"},children:[jsxRuntimeExports.jsx(Stack$5,{style:{width:"240px",backgroundColor:rt.palette.grey[100],borderRight:"1px solid rgba(0, 0, 0, 0.2)"},children:jsxRuntimeExports.jsx(OncologyStepper,{steps:createPatientSteps,children:jsxRuntimeExports.jsx(dt,{})})}),jsxRuntimeExports.jsx(MiddleContainerCol$1,{children:jsxRuntimeExports.jsx(CreatePatientBasicForm,{physiciansRefData:[{id:nt.user.id,name:nt.user.name}]})}),jsxRuntimeExports.jsx(RightContainerCol,{})]})})},TABLE_KEYS={TREATING_DEPARTMENT:"treatingDepartment",CAREPLAN:"careplan",TREATMENT_START_DATE:"treatmentStartDate",TREATMENT_END_DATE:"treatmentEndDate",CURRENT_CYCLE:"currentCycle",NEXT_TREATMENT:"next_treatment",STATUS:"status",LAST_MODIFIED:"lastModified"},TABLE_LABELS={TREATING_DEPARTMENT:"Treating department",CAREPLAN:"Careplan",TREATMENT_START_DATE:"Start date",TREATMENT_END_DATE:"End date",CURRENT_CYCLE:"Current cycle",NEXT_TREATMENT:"Next treatment",STATUS:"Status",LAST_MODIFIED:"Last modified"},CAREPLAN_STATUS={APPROVED:"Approved",APPROVAL_REQUIRED:"Approval Required",SAVE_PRINT_REQUIRED:"Save/Print Required",DRAFT:"Draft",COMPLETED:"Careplan completed"},GET_PATIENT_CAREPLANS=gql`
  query CareplanList($patientId: ID!) {
    moPatientCareplans(patientId: $patientId) {
      id
      treatingDepartment
      careplanName
      treatmentStartDate
      treatmentEndDate
      nextTreatmentDate
      nextTreatmentInfo
      nextTreatmentCycleId
      currentCycle
      status
      lastModified
      latestPageUrl
    }
  }
`,StyledDiv=styled$1("div")`
  && table {
    min-height: 400px;
    overflow: auto;
    display: table;
    min-width: 1500px !important;
  }
  display: flex;
`,StyledDot=styled$1("div")`
  height: 16px;
  width: 16px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  aspect-ratio: 1/1;
`,StyledText=styled$1("div")`
  font-size: 16px;
  line-height: 1.4;
`,MOCareplanStatus=et=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!["Careplan completed","Ended early"].includes(et.status)&&jsxRuntimeExports.jsx(StyledDot,{...et})," ",et.status]}),getFormattedTreatmentStartDate=(et,tt)=>{const rt=hooks(et.treatmentStartDate,"YYYY-MM-DD").tz(tt);return rt.isValid()?rt.format("L"):"-"},getFormattedTreatmentEndDate=(et,tt)=>{const rt=hooks(et.treatmentEndDate,"YYYY-MM-DD").tz(tt);if(!rt.isValid())return"-";const nt=rt.isSameOrAfter(hooks(),"days");return`${rt.format("L")}${nt?" (expected)":""}`},getFormattedNextTreatment=(et,tt)=>{const rt=hooks(et.nextTreatmentDate,"YYYY-MM-DD").tz(tt);return rt.isValid()?`${rt.calendar({sameDay:"[Today]",nextDay:"[Tomorrow]",lastWeek:"DD/MM/YYYY",nextWeek:"DD/MM/YYYY",sameElse:"DD/MM/YYYY"})}, ${et.nextTreatmentInfo}`:"-"},getFormattedCurrentCycle=et=>["",null].includes(et)?"-":et,getFormattedLastModified=(et,tt)=>{const rt=hooks(et.lastModified);return rt.isValid()?rt.tz(tt).format("L LT"):"-"},getFormattedCareplanName=et=>et.careplanName===""||et.careplanName===null?"-":et.careplanName,PatientCareplanTable=({careplans:et,headers:tt})=>{const rt=useHistory(),nt=useRouteMatch(),lt=useTheme$1(),{id:ut}=nt.params,{state:dt}=reactExports.useContext(UserContext),pt=et.sort((mt,xt)=>hooks(mt.nextTreatmentDate,"YYYY-MM-DD").diff(hooks(xt.nextTreatmentDate,"YYYY-MM-DD"))).map(mt=>({tableRows:[{key:TABLE_KEYS.TREATING_DEPARTMENT,width:"15.2%",component:jsxRuntimeExports.jsx(StyledText,{children:mt.treatingDepartment})},{key:TABLE_KEYS.CAREPLAN,width:"24.9%",component:jsxRuntimeExports.jsx(StyledText,{children:getFormattedCareplanName(mt)})},{key:TABLE_KEYS.TREATMENT_START_DATE,width:"11.6%",component:jsxRuntimeExports.jsx(StyledText,{children:getFormattedTreatmentStartDate(mt,dt.timezone)})},{key:TABLE_KEYS.TREATMENT_END_DATE,width:"11.6%",component:jsxRuntimeExports.jsx(StyledText,{children:getFormattedTreatmentEndDate(mt,dt.timezone)})},{key:TABLE_KEYS.CURRENT_CYCLE,width:"8.9%",component:jsxRuntimeExports.jsx(StyledText,{children:getFormattedCurrentCycle(mt.currentCycle)})},{key:TABLE_KEYS.NEXT_TREATMENT,width:"8.9%",component:jsxRuntimeExports.jsx(StyledText,{children:getFormattedNextTreatment(mt,dt.timezone)})},{key:TABLE_KEYS.STATUS,width:"9.1%",component:jsxRuntimeExports.jsx(MOCareplanStatus,{status:mt.status})},{key:TABLE_KEYS.LAST_MODIFIED,sort:!0,width:"10%",component:jsxRuntimeExports.jsx(StyledText,{children:getFormattedLastModified(mt,dt.timezone)})}],onRowClick:()=>{mt.nextTreatmentCycleId===null||mt.nextTreatmentCycleId===void 0?rt.push(mt.latestPageUrl):rt.push(`/medonc/patient/${ut}/careplan/${mt.id}/prescription/${mt.nextTreatmentCycleId}`)},rowHoverColor:lt.palette.primary.light})),ht={tableHeaders:tt,tableData:pt,defaultSortState:{key:TABLE_KEYS.NEXT_TREATMENT,order:SORT_TYPES$1.ASC,type:DATATYPE$1.DATE},hoverScroll:!0,noRowsText:"No careplan available."};return jsxRuntimeExports.jsx(StyledDiv,{children:jsxRuntimeExports.jsx(Table$2,{testId:"careplan-table",...ht})})},createOptions=et=>et.map((tt,rt)=>({id:rt.toString(),name:tt,checked:!0})),statusOptions=createOptions(Object.values(CAREPLAN_STATUS)),PatientCareplanTableApollo=()=>{const et=useRouteMatch(),{id:tt}=et.params,{data:rt,loading:nt}=useQuery(GET_PATIENT_CAREPLANS,{variables:{patientId:tt},fetchPolicy:"cache-and-network"}),lt=useOncologyListData(["treatingDepartment"]),[ut,dt]=reactExports.useState(statusOptions),[pt,ht]=reactExports.useState([]),[mt,xt]=reactExports.useState([]),Mt=[{title:TABLE_LABELS.TREATING_DEPARTMENT,key:TABLE_KEYS.TREATING_DEPARTMENT,type:DATATYPE$1.STRING,filterOptions:pt,onFilterChange:(vt,Ot)=>{ht(At=>At==null?void 0:At.map(Rt=>({...Rt,checked:vt.includes(Rt.id)?Ot:Rt.checked})))},dropdownTitle:`${TABLE_LABELS.TREATING_DEPARTMENT}${pt.every(vt=>vt.checked)?" (All)":""}`,width:"15.2%"},{title:TABLE_LABELS.CAREPLAN,key:TABLE_KEYS.CAREPLAN,type:DATATYPE$1.STRING,width:"24.9%",dropdownTitle:TABLE_LABELS.CAREPLAN},{title:TABLE_LABELS.TREATMENT_START_DATE,key:TABLE_KEYS.TREATMENT_START_DATE,type:DATATYPE$1.DATE,width:"11.8%"},{title:TABLE_LABELS.TREATMENT_END_DATE,key:TABLE_KEYS.TREATMENT_END_DATE,type:DATATYPE$1.DATE,width:"11.8%"},{title:TABLE_LABELS.CURRENT_CYCLE,key:TABLE_KEYS.CURRENT_CYCLE,type:DATATYPE$1.STRING,width:"8.6%"},{title:TABLE_LABELS.NEXT_TREATMENT,key:TABLE_KEYS.NEXT_TREATMENT,type:DATATYPE$1.STRING,width:"8.6%"},{title:TABLE_LABELS.STATUS,key:TABLE_KEYS.STATUS,type:DATATYPE$1.STRING,width:"9.1%",filterOptions:ut,onFilterChange:(vt,Ot)=>{dt(At=>At.map(Rt=>({...Rt,checked:vt.includes(Rt.id)?Ot:Rt.checked})))},dropdownTitle:`${TABLE_LABELS.STATUS}${ut.every(vt=>vt.checked)?" (All)":""}`},{title:TABLE_LABELS.LAST_MODIFIED,key:TABLE_KEYS.LAST_MODIFIED,type:DATATYPE$1.DATE,width:"10%"}];return reactExports.useEffect(()=>{if(rt){const vt=ut.filter(zt=>zt.checked).map(zt=>zt.name),Ot=pt==null?void 0:pt.filter(zt=>zt.checked).map(zt=>zt.name),At=pt.map(zt=>zt.name),Rt=rt.moPatientCareplans.filter(zt=>vt.includes(zt.status)&&(!Ot||Ot.includes(zt.treatingDepartment)||zt.treatingDepartment===null||zt.treatingDepartment===""||!At.includes(zt.treatingDepartment)));xt(Rt)}},[rt,ut,pt]),reactExports.useEffect(()=>{lt.treatingDepartment&&ht(createOptions(lt.treatingDepartment.map(vt=>vt.option)))},[lt]),nt&&!lt?jsxRuntimeExports.jsx(LoadingSpinner,{}):jsxRuntimeExports.jsx(PatientCareplanTable,{careplans:mt,headers:Mt})},VerticalLayout=styled$1("div")`
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
`,HorizontalLayout=styled$1("div")`
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
`,PatientCareplans=et=>{var pt;const tt=useHistory(),rt=useTheme$3(),{patientDetails:nt}=reactExports.useContext(ROPatientContext),lt=(nt==null?void 0:nt.patientGender)==="Other"||(nt==null?void 0:nt.patientGender)==="",ut=(nt==null?void 0:nt.dob)===""||(nt==null?void 0:nt.dob)===null,dt=(nt==null?void 0:nt.address)===null||[null,""].includes((pt=nt==null?void 0:nt.address)==null?void 0:pt.line1);return jsxRuntimeExports.jsx(Card$1,{style:{margin:"24px",width:"calc(100% - 48px)",height:"calc(100vh - 160px)"},children:jsxRuntimeExports.jsxs(VerticalLayout,{children:[jsxRuntimeExports.jsxs(HorizontalLayout,{children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("h1",{style:{fontSize:"24px"},children:"Patient careplans"})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Button,{"data-cy":"pts-create-careplan-button",variant:"outlined",startIcon:jsxRuntimeExports.jsx(default_1$i,{color:rt.palette.primary.main}),onClick:()=>{tt.push(`/medonc/patient/${et.id}/careplan/create`)},disabled:lt||ut||dt,children:"New careplan"})})]}),jsxRuntimeExports.jsx("div",{style:{overflow:"auto",height:"calc(100vh - 280px)"},children:jsxRuntimeExports.jsx(PatientCareplanTableApollo,{})})]})})};function commonjsRequire(et){throw new Error('Could not dynamically require "'+et+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var moment={exports:{}},hasRequiredMoment;function requireMoment(){return hasRequiredMoment||(hasRequiredMoment=1,function(et,tt){(function(rt,nt){et.exports=nt()})(commonjsGlobal$1,function(){var rt;function nt(){return rt.apply(null,arguments)}function lt(fr){rt=fr}function ut(fr){return fr instanceof Array||Object.prototype.toString.call(fr)==="[object Array]"}function dt(fr){return fr!=null&&Object.prototype.toString.call(fr)==="[object Object]"}function pt(fr,Sr){return Object.prototype.hasOwnProperty.call(fr,Sr)}function ht(fr){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(fr).length===0;var Sr;for(Sr in fr)if(pt(fr,Sr))return!1;return!0}function mt(fr){return fr===void 0}function xt(fr){return typeof fr=="number"||Object.prototype.toString.call(fr)==="[object Number]"}function Mt(fr){return fr instanceof Date||Object.prototype.toString.call(fr)==="[object Date]"}function vt(fr,Sr){var Ur=[],tn,hn=fr.length;for(tn=0;tn<hn;++tn)Ur.push(Sr(fr[tn],tn));return Ur}function Ot(fr,Sr){for(var Ur in Sr)pt(Sr,Ur)&&(fr[Ur]=Sr[Ur]);return pt(Sr,"toString")&&(fr.toString=Sr.toString),pt(Sr,"valueOf")&&(fr.valueOf=Sr.valueOf),fr}function At(fr,Sr,Ur,tn){return T0(fr,Sr,Ur,tn,!0).utc()}function Rt(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function zt(fr){return fr._pf==null&&(fr._pf=Rt()),fr._pf}var Tt;Array.prototype.some?Tt=Array.prototype.some:Tt=function(fr){var Sr=Object(this),Ur=Sr.length>>>0,tn;for(tn=0;tn<Ur;tn++)if(tn in Sr&&fr.call(this,Sr[tn],tn,Sr))return!0;return!1};function Ct(fr){var Sr=null,Ur=!1,tn=fr._d&&!isNaN(fr._d.getTime());if(tn&&(Sr=zt(fr),Ur=Tt.call(Sr.parsedDateParts,function(hn){return hn!=null}),tn=Sr.overflow<0&&!Sr.empty&&!Sr.invalidEra&&!Sr.invalidMonth&&!Sr.invalidWeekday&&!Sr.weekdayMismatch&&!Sr.nullInput&&!Sr.invalidFormat&&!Sr.userInvalidated&&(!Sr.meridiem||Sr.meridiem&&Ur),fr._strict&&(tn=tn&&Sr.charsLeftOver===0&&Sr.unusedTokens.length===0&&Sr.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(fr))fr._isValid=tn;else return tn;return fr._isValid}function It(fr){var Sr=At(NaN);return fr!=null?Ot(zt(Sr),fr):zt(Sr).userInvalidated=!0,Sr}var Dt=nt.momentProperties=[],kt=!1;function qt(fr,Sr){var Ur,tn,hn,$n=Dt.length;if(mt(Sr._isAMomentObject)||(fr._isAMomentObject=Sr._isAMomentObject),mt(Sr._i)||(fr._i=Sr._i),mt(Sr._f)||(fr._f=Sr._f),mt(Sr._l)||(fr._l=Sr._l),mt(Sr._strict)||(fr._strict=Sr._strict),mt(Sr._tzm)||(fr._tzm=Sr._tzm),mt(Sr._isUTC)||(fr._isUTC=Sr._isUTC),mt(Sr._offset)||(fr._offset=Sr._offset),mt(Sr._pf)||(fr._pf=zt(Sr)),mt(Sr._locale)||(fr._locale=Sr._locale),$n>0)for(Ur=0;Ur<$n;Ur++)tn=Dt[Ur],hn=Sr[tn],mt(hn)||(fr[tn]=hn);return fr}function Nt(fr){qt(this,fr),this._d=new Date(fr._d!=null?fr._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),kt===!1&&(kt=!0,nt.updateOffset(this),kt=!1)}function Yt(fr){return fr instanceof Nt||fr!=null&&fr._isAMomentObject!=null}function Kt(fr){nt.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+fr)}function Jt(fr,Sr){var Ur=!0;return Ot(function(){if(nt.deprecationHandler!=null&&nt.deprecationHandler(null,fr),Ur){var tn=[],hn,$n,eo,Mo=arguments.length;for($n=0;$n<Mo;$n++){if(hn="",typeof arguments[$n]=="object"){hn+=`
[`+$n+"] ";for(eo in arguments[0])pt(arguments[0],eo)&&(hn+=eo+": "+arguments[0][eo]+", ");hn=hn.slice(0,-2)}else hn=arguments[$n];tn.push(hn)}Kt(fr+`
Arguments: `+Array.prototype.slice.call(tn).join("")+`
`+new Error().stack),Ur=!1}return Sr.apply(this,arguments)},Sr)}var Qt={};function Bt(fr,Sr){nt.deprecationHandler!=null&&nt.deprecationHandler(fr,Sr),Qt[fr]||(Kt(Sr),Qt[fr]=!0)}nt.suppressDeprecationWarnings=!1,nt.deprecationHandler=null;function Ft(fr){return typeof Function<"u"&&fr instanceof Function||Object.prototype.toString.call(fr)==="[object Function]"}function $t(fr){var Sr,Ur;for(Ur in fr)pt(fr,Ur)&&(Sr=fr[Ur],Ft(Sr)?this[Ur]=Sr:this["_"+Ur]=Sr);this._config=fr,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function jt(fr,Sr){var Ur=Ot({},fr),tn;for(tn in Sr)pt(Sr,tn)&&(dt(fr[tn])&&dt(Sr[tn])?(Ur[tn]={},Ot(Ur[tn],fr[tn]),Ot(Ur[tn],Sr[tn])):Sr[tn]!=null?Ur[tn]=Sr[tn]:delete Ur[tn]);for(tn in fr)pt(fr,tn)&&!pt(Sr,tn)&&dt(fr[tn])&&(Ur[tn]=Ot({},Ur[tn]));return Ur}function Wt(fr){fr!=null&&this.set(fr)}var Ut;Object.keys?Ut=Object.keys:Ut=function(fr){var Sr,Ur=[];for(Sr in fr)pt(fr,Sr)&&Ur.push(Sr);return Ur};var Vt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ht(fr,Sr,Ur){var tn=this._calendar[fr]||this._calendar.sameElse;return Ft(tn)?tn.call(Sr,Ur):tn}function Gt(fr,Sr,Ur){var tn=""+Math.abs(fr),hn=Sr-tn.length,$n=fr>=0;return($n?Ur?"+":"":"-")+Math.pow(10,Math.max(0,hn)).toString().substr(1)+tn}var Zt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Xt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,er={},nr={};function or(fr,Sr,Ur,tn){var hn=tn;typeof tn=="string"&&(hn=function(){return this[tn]()}),fr&&(nr[fr]=hn),Sr&&(nr[Sr[0]]=function(){return Gt(hn.apply(this,arguments),Sr[1],Sr[2])}),Ur&&(nr[Ur]=function(){return this.localeData().ordinal(hn.apply(this,arguments),fr)})}function rr(fr){return fr.match(/\[[\s\S]/)?fr.replace(/^\[|\]$/g,""):fr.replace(/\\/g,"")}function cr(fr){var Sr=fr.match(Zt),Ur,tn;for(Ur=0,tn=Sr.length;Ur<tn;Ur++)nr[Sr[Ur]]?Sr[Ur]=nr[Sr[Ur]]:Sr[Ur]=rr(Sr[Ur]);return function(hn){var $n="",eo;for(eo=0;eo<tn;eo++)$n+=Ft(Sr[eo])?Sr[eo].call(hn,fr):Sr[eo];return $n}}function ir(fr,Sr){return fr.isValid()?(Sr=dr(Sr,fr.localeData()),er[Sr]=er[Sr]||cr(Sr),er[Sr](fr)):fr.localeData().invalidDate()}function dr(fr,Sr){var Ur=5;function tn(hn){return Sr.longDateFormat(hn)||hn}for(Xt.lastIndex=0;Ur>=0&&Xt.test(fr);)fr=fr.replace(Xt,tn),Xt.lastIndex=0,Ur-=1;return fr}var gr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function br(fr){var Sr=this._longDateFormat[fr],Ur=this._longDateFormat[fr.toUpperCase()];return Sr||!Ur?Sr:(this._longDateFormat[fr]=Ur.match(Zt).map(function(tn){return tn==="MMMM"||tn==="MM"||tn==="DD"||tn==="dddd"?tn.slice(1):tn}).join(""),this._longDateFormat[fr])}var ar="Invalid date";function ur(){return this._invalidDate}var xr="%d",Mr=/\d{1,2}/;function Ar(fr){return this._ordinal.replace("%d",fr)}var Ir={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Rr(fr,Sr,Ur,tn){var hn=this._relativeTime[Ur];return Ft(hn)?hn(fr,Sr,Ur,tn):hn.replace(/%d/i,fr)}function wr(fr,Sr){var Ur=this._relativeTime[fr>0?"future":"past"];return Ft(Ur)?Ur(Sr):Ur.replace(/%s/i,Sr)}var qr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Hr(fr){return typeof fr=="string"?qr[fr]||qr[fr.toLowerCase()]:void 0}function kr(fr){var Sr={},Ur,tn;for(tn in fr)pt(fr,tn)&&(Ur=Hr(tn),Ur&&(Sr[Ur]=fr[tn]));return Sr}var $r={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function yr(fr){var Sr=[],Ur;for(Ur in fr)pt(fr,Ur)&&Sr.push({unit:Ur,priority:$r[Ur]});return Sr.sort(function(tn,hn){return tn.priority-hn.priority}),Sr}var Or=/\d/,Dr=/\d\d/,Fr=/\d{3}/,Yr=/\d{4}/,Gr=/[+-]?\d{6}/,Jr=/\d\d?/,jr=/\d\d\d\d?/,Zr=/\d\d\d\d\d\d?/,Xr=/\d{1,3}/,cn=/\d{1,4}/,Qr=/[+-]?\d{1,6}/,rn=/\d+/,_r=/[+-]?\d+/,ln=/Z|[+-]\d\d:?\d\d/gi,vn=/Z|[+-]\d\d(?::?\d\d)?/gi,Cr=/[+-]?\d+(\.\d{1,3})?/,gn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,xn=/^[1-9]\d?/,Vr=/^([1-9]\d|\d)/,fn;fn={};function pn(fr,Sr,Ur){fn[fr]=Ft(Sr)?Sr:function(tn,hn){return tn&&Ur?Ur:Sr}}function qn(fr,Sr){return pt(fn,fr)?fn[fr](Sr._strict,Sr._locale):new RegExp(Bn(fr))}function Bn(fr){return Kr(fr.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Sr,Ur,tn,hn,$n){return Ur||tn||hn||$n}))}function Kr(fr){return fr.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Tr(fr){return fr<0?Math.ceil(fr)||0:Math.floor(fr)}function Pr(fr){var Sr=+fr,Ur=0;return Sr!==0&&isFinite(Sr)&&(Ur=Tr(Sr)),Ur}var an={};function nn(fr,Sr){var Ur,tn=Sr,hn;for(typeof fr=="string"&&(fr=[fr]),xt(Sr)&&(tn=function($n,eo){eo[Sr]=Pr($n)}),hn=fr.length,Ur=0;Ur<hn;Ur++)an[fr[Ur]]=tn}function Mn(fr,Sr){nn(fr,function(Ur,tn,hn,$n){hn._w=hn._w||{},Sr(Ur,hn._w,hn,$n)})}function An(fr,Sr,Ur){Sr!=null&&pt(an,fr)&&an[fr](Sr,Ur._a,Ur,fr)}function Vn(fr){return fr%4===0&&fr%100!==0||fr%400===0}var Cn=0,kn=1,Qn=2,Gn=3,Un=4,jn=5,In=6,Kn=7,Wn=8;or("Y",0,0,function(){var fr=this.year();return fr<=9999?Gt(fr,4):"+"+fr}),or(0,["YY",2],0,function(){return this.year()%100}),or(0,["YYYY",4],0,"year"),or(0,["YYYYY",5],0,"year"),or(0,["YYYYYY",6,!0],0,"year"),pn("Y",_r),pn("YY",Jr,Dr),pn("YYYY",cn,Yr),pn("YYYYY",Qr,Gr),pn("YYYYYY",Qr,Gr),nn(["YYYYY","YYYYYY"],Cn),nn("YYYY",function(fr,Sr){Sr[Cn]=fr.length===2?nt.parseTwoDigitYear(fr):Pr(fr)}),nn("YY",function(fr,Sr){Sr[Cn]=nt.parseTwoDigitYear(fr)}),nn("Y",function(fr,Sr){Sr[Cn]=parseInt(fr,10)});function ao(fr){return Vn(fr)?366:365}nt.parseTwoDigitYear=function(fr){return Pr(fr)+(Pr(fr)>68?1900:2e3)};var _i=So("FullYear",!0);function ho(){return Vn(this.year())}function So(fr,Sr){return function(Ur){return Ur!=null?(us(this,fr,Ur),nt.updateOffset(this,Sr),this):ko(this,fr)}}function ko(fr,Sr){if(!fr.isValid())return NaN;var Ur=fr._d,tn=fr._isUTC;switch(Sr){case"Milliseconds":return tn?Ur.getUTCMilliseconds():Ur.getMilliseconds();case"Seconds":return tn?Ur.getUTCSeconds():Ur.getSeconds();case"Minutes":return tn?Ur.getUTCMinutes():Ur.getMinutes();case"Hours":return tn?Ur.getUTCHours():Ur.getHours();case"Date":return tn?Ur.getUTCDate():Ur.getDate();case"Day":return tn?Ur.getUTCDay():Ur.getDay();case"Month":return tn?Ur.getUTCMonth():Ur.getMonth();case"FullYear":return tn?Ur.getUTCFullYear():Ur.getFullYear();default:return NaN}}function us(fr,Sr,Ur){var tn,hn,$n,eo,Mo;if(!(!fr.isValid()||isNaN(Ur))){switch(tn=fr._d,hn=fr._isUTC,Sr){case"Milliseconds":return void(hn?tn.setUTCMilliseconds(Ur):tn.setMilliseconds(Ur));case"Seconds":return void(hn?tn.setUTCSeconds(Ur):tn.setSeconds(Ur));case"Minutes":return void(hn?tn.setUTCMinutes(Ur):tn.setMinutes(Ur));case"Hours":return void(hn?tn.setUTCHours(Ur):tn.setHours(Ur));case"Date":return void(hn?tn.setUTCDate(Ur):tn.setDate(Ur));case"FullYear":break;default:return}$n=Ur,eo=fr.month(),Mo=fr.date(),Mo=Mo===29&&eo===1&&!Vn($n)?28:Mo,hn?tn.setUTCFullYear($n,eo,Mo):tn.setFullYear($n,eo,Mo)}}function Jo(fr){return fr=Hr(fr),Ft(this[fr])?this[fr]():this}function go(fr,Sr){if(typeof fr=="object"){fr=kr(fr);var Ur=yr(fr),tn,hn=Ur.length;for(tn=0;tn<hn;tn++)this[Ur[tn].unit](fr[Ur[tn].unit])}else if(fr=Hr(fr),Ft(this[fr]))return this[fr](Sr);return this}function $o(fr,Sr){return(fr%Sr+Sr)%Sr}var vo;Array.prototype.indexOf?vo=Array.prototype.indexOf:vo=function(fr){var Sr;for(Sr=0;Sr<this.length;++Sr)if(this[Sr]===fr)return Sr;return-1};function Go(fr,Sr){if(isNaN(fr)||isNaN(Sr))return NaN;var Ur=$o(Sr,12);return fr+=(Sr-Ur)/12,Ur===1?Vn(fr)?29:28:31-Ur%7%2}or("M",["MM",2],"Mo",function(){return this.month()+1}),or("MMM",0,0,function(fr){return this.localeData().monthsShort(this,fr)}),or("MMMM",0,0,function(fr){return this.localeData().months(this,fr)}),pn("M",Jr,xn),pn("MM",Jr,Dr),pn("MMM",function(fr,Sr){return Sr.monthsShortRegex(fr)}),pn("MMMM",function(fr,Sr){return Sr.monthsRegex(fr)}),nn(["M","MM"],function(fr,Sr){Sr[kn]=Pr(fr)-1}),nn(["MMM","MMMM"],function(fr,Sr,Ur,tn){var hn=Ur._locale.monthsParse(fr,tn,Ur._strict);hn!=null?Sr[kn]=hn:zt(Ur).invalidMonth=fr});var Wo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xs=gn,Es=gn;function Os(fr,Sr){return fr?ut(this._months)?this._months[fr.month()]:this._months[(this._months.isFormat||rs).test(Sr)?"format":"standalone"][fr.month()]:ut(this._months)?this._months:this._months.standalone}function Ds(fr,Sr){return fr?ut(this._monthsShort)?this._monthsShort[fr.month()]:this._monthsShort[rs.test(Sr)?"format":"standalone"][fr.month()]:ut(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gs(fr,Sr,Ur){var tn,hn,$n,eo=fr.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],tn=0;tn<12;++tn)$n=At([2e3,tn]),this._shortMonthsParse[tn]=this.monthsShort($n,"").toLocaleLowerCase(),this._longMonthsParse[tn]=this.months($n,"").toLocaleLowerCase();return Ur?Sr==="MMM"?(hn=vo.call(this._shortMonthsParse,eo),hn!==-1?hn:null):(hn=vo.call(this._longMonthsParse,eo),hn!==-1?hn:null):Sr==="MMM"?(hn=vo.call(this._shortMonthsParse,eo),hn!==-1?hn:(hn=vo.call(this._longMonthsParse,eo),hn!==-1?hn:null)):(hn=vo.call(this._longMonthsParse,eo),hn!==-1?hn:(hn=vo.call(this._shortMonthsParse,eo),hn!==-1?hn:null))}function na(fr,Sr,Ur){var tn,hn,$n;if(this._monthsParseExact)return gs.call(this,fr,Sr,Ur);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),tn=0;tn<12;tn++){if(hn=At([2e3,tn]),Ur&&!this._longMonthsParse[tn]&&(this._longMonthsParse[tn]=new RegExp("^"+this.months(hn,"").replace(".","")+"$","i"),this._shortMonthsParse[tn]=new RegExp("^"+this.monthsShort(hn,"").replace(".","")+"$","i")),!Ur&&!this._monthsParse[tn]&&($n="^"+this.months(hn,"")+"|^"+this.monthsShort(hn,""),this._monthsParse[tn]=new RegExp($n.replace(".",""),"i")),Ur&&Sr==="MMMM"&&this._longMonthsParse[tn].test(fr))return tn;if(Ur&&Sr==="MMM"&&this._shortMonthsParse[tn].test(fr))return tn;if(!Ur&&this._monthsParse[tn].test(fr))return tn}}function Xs(fr,Sr){if(!fr.isValid())return fr;if(typeof Sr=="string"){if(/^\d+$/.test(Sr))Sr=Pr(Sr);else if(Sr=fr.localeData().monthsParse(Sr),!xt(Sr))return fr}var Ur=Sr,tn=fr.date();return tn=tn<29?tn:Math.min(tn,Go(fr.year(),Ur)),fr._isUTC?fr._d.setUTCMonth(Ur,tn):fr._d.setMonth(Ur,tn),fr}function Zl(fr){return fr!=null?(Xs(this,fr),nt.updateOffset(this,!0),this):ko(this,"Month")}function Jl(){return Go(this.year(),this.month())}function Ks(fr){return this._monthsParseExact?(pt(this,"_monthsRegex")||Ol.call(this),fr?this._monthsShortStrictRegex:this._monthsShortRegex):(pt(this,"_monthsShortRegex")||(this._monthsShortRegex=xs),this._monthsShortStrictRegex&&fr?this._monthsShortStrictRegex:this._monthsShortRegex)}function Al(fr){return this._monthsParseExact?(pt(this,"_monthsRegex")||Ol.call(this),fr?this._monthsStrictRegex:this._monthsRegex):(pt(this,"_monthsRegex")||(this._monthsRegex=Es),this._monthsStrictRegex&&fr?this._monthsStrictRegex:this._monthsRegex)}function Ol(){function fr(No,Ko){return Ko.length-No.length}var Sr=[],Ur=[],tn=[],hn,$n,eo,Mo;for(hn=0;hn<12;hn++)$n=At([2e3,hn]),eo=Kr(this.monthsShort($n,"")),Mo=Kr(this.months($n,"")),Sr.push(eo),Ur.push(Mo),tn.push(Mo),tn.push(eo);Sr.sort(fr),Ur.sort(fr),tn.sort(fr),this._monthsRegex=new RegExp("^("+tn.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Ur.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Sr.join("|")+")","i")}function On(fr,Sr,Ur,tn,hn,$n,eo){var Mo;return fr<100&&fr>=0?(Mo=new Date(fr+400,Sr,Ur,tn,hn,$n,eo),isFinite(Mo.getFullYear())&&Mo.setFullYear(fr)):Mo=new Date(fr,Sr,Ur,tn,hn,$n,eo),Mo}function Sn(fr){var Sr,Ur;return fr<100&&fr>=0?(Ur=Array.prototype.slice.call(arguments),Ur[0]=fr+400,Sr=new Date(Date.UTC.apply(null,Ur)),isFinite(Sr.getUTCFullYear())&&Sr.setUTCFullYear(fr)):Sr=new Date(Date.UTC.apply(null,arguments)),Sr}function po(fr,Sr,Ur){var tn=7+Sr-Ur,hn=(7+Sn(fr,0,tn).getUTCDay()-Sr)%7;return-hn+tn-1}function _o(fr,Sr,Ur,tn,hn){var $n=(7+Ur-tn)%7,eo=po(fr,tn,hn),Mo=1+7*(Sr-1)+$n+eo,No,Ko;return Mo<=0?(No=fr-1,Ko=ao(No)+Mo):Mo>ao(fr)?(No=fr+1,Ko=Mo-ao(fr)):(No=fr,Ko=Mo),{year:No,dayOfYear:Ko}}function Co(fr,Sr,Ur){var tn=po(fr.year(),Sr,Ur),hn=Math.floor((fr.dayOfYear()-tn-1)/7)+1,$n,eo;return hn<1?(eo=fr.year()-1,$n=hn+ls(eo,Sr,Ur)):hn>ls(fr.year(),Sr,Ur)?($n=hn-ls(fr.year(),Sr,Ur),eo=fr.year()+1):(eo=fr.year(),$n=hn),{week:$n,year:eo}}function ls(fr,Sr,Ur){var tn=po(fr,Sr,Ur),hn=po(fr+1,Sr,Ur);return(ao(fr)-tn+hn)/7}or("w",["ww",2],"wo","week"),or("W",["WW",2],"Wo","isoWeek"),pn("w",Jr,xn),pn("ww",Jr,Dr),pn("W",Jr,xn),pn("WW",Jr,Dr),Mn(["w","ww","W","WW"],function(fr,Sr,Ur,tn){Sr[tn.substr(0,1)]=Pr(fr)});function qs(fr){return Co(fr,this._week.dow,this._week.doy).week}var Bs={dow:0,doy:6};function Ns(){return this._week.dow}function Rl(){return this._week.doy}function O0(fr){var Sr=this.localeData().week(this);return fr==null?Sr:this.add((fr-Sr)*7,"d")}function R0(fr){var Sr=Co(this,1,4).week;return fr==null?Sr:this.add((fr-Sr)*7,"d")}or("d",0,"do","day"),or("dd",0,0,function(fr){return this.localeData().weekdaysMin(this,fr)}),or("ddd",0,0,function(fr){return this.localeData().weekdaysShort(this,fr)}),or("dddd",0,0,function(fr){return this.localeData().weekdays(this,fr)}),or("e",0,0,"weekday"),or("E",0,0,"isoWeekday"),pn("d",Jr),pn("e",Jr),pn("E",Jr),pn("dd",function(fr,Sr){return Sr.weekdaysMinRegex(fr)}),pn("ddd",function(fr,Sr){return Sr.weekdaysShortRegex(fr)}),pn("dddd",function(fr,Sr){return Sr.weekdaysRegex(fr)}),Mn(["dd","ddd","dddd"],function(fr,Sr,Ur,tn){var hn=Ur._locale.weekdaysParse(fr,tn,Ur._strict);hn!=null?Sr.d=hn:zt(Ur).invalidWeekday=fr}),Mn(["d","e","E"],function(fr,Sr,Ur,tn){Sr[tn]=Pr(fr)});function e0(fr,Sr){return typeof fr!="string"?fr:isNaN(fr)?(fr=Sr.weekdaysParse(fr),typeof fr=="number"?fr:null):parseInt(fr,10)}function xa(fr,Sr){return typeof fr=="string"?Sr.weekdaysParse(fr)%7||7:isNaN(fr)?null:fr}function Bl(fr,Sr){return fr.slice(Sr,7).concat(fr.slice(0,Sr))}var K0="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),p0="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),g1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),j0=gn,Q0=gn,Z0=gn;function S0(fr,Sr){var Ur=ut(this._weekdays)?this._weekdays:this._weekdays[fr&&fr!==!0&&this._weekdays.isFormat.test(Sr)?"format":"standalone"];return fr===!0?Bl(Ur,this._week.dow):fr?Ur[fr.day()]:Ur}function J0(fr){return fr===!0?Bl(this._weekdaysShort,this._week.dow):fr?this._weekdaysShort[fr.day()]:this._weekdaysShort}function _0(fr){return fr===!0?Bl(this._weekdaysMin,this._week.dow):fr?this._weekdaysMin[fr.day()]:this._weekdaysMin}function _c(fr,Sr,Ur){var tn,hn,$n,eo=fr.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],tn=0;tn<7;++tn)$n=At([2e3,1]).day(tn),this._minWeekdaysParse[tn]=this.weekdaysMin($n,"").toLocaleLowerCase(),this._shortWeekdaysParse[tn]=this.weekdaysShort($n,"").toLocaleLowerCase(),this._weekdaysParse[tn]=this.weekdays($n,"").toLocaleLowerCase();return Ur?Sr==="dddd"?(hn=vo.call(this._weekdaysParse,eo),hn!==-1?hn:null):Sr==="ddd"?(hn=vo.call(this._shortWeekdaysParse,eo),hn!==-1?hn:null):(hn=vo.call(this._minWeekdaysParse,eo),hn!==-1?hn:null):Sr==="dddd"?(hn=vo.call(this._weekdaysParse,eo),hn!==-1||(hn=vo.call(this._shortWeekdaysParse,eo),hn!==-1)?hn:(hn=vo.call(this._minWeekdaysParse,eo),hn!==-1?hn:null)):Sr==="ddd"?(hn=vo.call(this._shortWeekdaysParse,eo),hn!==-1||(hn=vo.call(this._weekdaysParse,eo),hn!==-1)?hn:(hn=vo.call(this._minWeekdaysParse,eo),hn!==-1?hn:null)):(hn=vo.call(this._minWeekdaysParse,eo),hn!==-1||(hn=vo.call(this._weekdaysParse,eo),hn!==-1)?hn:(hn=vo.call(this._shortWeekdaysParse,eo),hn!==-1?hn:null))}function e1(fr,Sr,Ur){var tn,hn,$n;if(this._weekdaysParseExact)return _c.call(this,fr,Sr,Ur);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),tn=0;tn<7;tn++){if(hn=At([2e3,1]).day(tn),Ur&&!this._fullWeekdaysParse[tn]&&(this._fullWeekdaysParse[tn]=new RegExp("^"+this.weekdays(hn,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[tn]=new RegExp("^"+this.weekdaysShort(hn,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[tn]=new RegExp("^"+this.weekdaysMin(hn,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[tn]||($n="^"+this.weekdays(hn,"")+"|^"+this.weekdaysShort(hn,"")+"|^"+this.weekdaysMin(hn,""),this._weekdaysParse[tn]=new RegExp($n.replace(".",""),"i")),Ur&&Sr==="dddd"&&this._fullWeekdaysParse[tn].test(fr))return tn;if(Ur&&Sr==="ddd"&&this._shortWeekdaysParse[tn].test(fr))return tn;if(Ur&&Sr==="dd"&&this._minWeekdaysParse[tn].test(fr))return tn;if(!Ur&&this._weekdaysParse[tn].test(fr))return tn}}function Pn(fr){if(!this.isValid())return fr!=null?this:NaN;var Sr=ko(this,"Day");return fr!=null?(fr=e0(fr,this.localeData()),this.add(fr-Sr,"d")):Sr}function mo(fr){if(!this.isValid())return fr!=null?this:NaN;var Sr=(this.day()+7-this.localeData()._week.dow)%7;return fr==null?Sr:this.add(fr-Sr,"d")}function ps(fr){if(!this.isValid())return fr!=null?this:NaN;if(fr!=null){var Sr=xa(fr,this.localeData());return this.day(this.day()%7?Sr:Sr-7)}else return this.day()||7}function qo(fr){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||bs.call(this),fr?this._weekdaysStrictRegex:this._weekdaysRegex):(pt(this,"_weekdaysRegex")||(this._weekdaysRegex=j0),this._weekdaysStrictRegex&&fr?this._weekdaysStrictRegex:this._weekdaysRegex)}function Bo(fr){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||bs.call(this),fr?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(pt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Q0),this._weekdaysShortStrictRegex&&fr?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ga(fr){return this._weekdaysParseExact?(pt(this,"_weekdaysRegex")||bs.call(this),fr?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(pt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Z0),this._weekdaysMinStrictRegex&&fr?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function bs(){function fr(Js,l0){return l0.length-Js.length}var Sr=[],Ur=[],tn=[],hn=[],$n,eo,Mo,No,Ko;for($n=0;$n<7;$n++)eo=At([2e3,1]).day($n),Mo=Kr(this.weekdaysMin(eo,"")),No=Kr(this.weekdaysShort(eo,"")),Ko=Kr(this.weekdays(eo,"")),Sr.push(Mo),Ur.push(No),tn.push(Ko),hn.push(Mo),hn.push(No),hn.push(Ko);Sr.sort(fr),Ur.sort(fr),tn.sort(fr),hn.sort(fr),this._weekdaysRegex=new RegExp("^("+hn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+tn.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ur.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Sr.join("|")+")","i")}function t0(){return this.hours()%12||12}function t1(){return this.hours()||24}or("H",["HH",2],0,"hour"),or("h",["hh",2],0,t0),or("k",["kk",2],0,t1),or("hmm",0,0,function(){return""+t0.apply(this)+Gt(this.minutes(),2)}),or("hmmss",0,0,function(){return""+t0.apply(this)+Gt(this.minutes(),2)+Gt(this.seconds(),2)}),or("Hmm",0,0,function(){return""+this.hours()+Gt(this.minutes(),2)}),or("Hmmss",0,0,function(){return""+this.hours()+Gt(this.minutes(),2)+Gt(this.seconds(),2)});function Ws(fr,Sr){or(fr,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Sr)})}Ws("a",!0),Ws("A",!1);function Po(fr,Sr){return Sr._meridiemParse}pn("a",Po),pn("A",Po),pn("H",Jr,Vr),pn("h",Jr,xn),pn("k",Jr,xn),pn("HH",Jr,Dr),pn("hh",Jr,Dr),pn("kk",Jr,Dr),pn("hmm",jr),pn("hmmss",Zr),pn("Hmm",jr),pn("Hmmss",Zr),nn(["H","HH"],Gn),nn(["k","kk"],function(fr,Sr,Ur){var tn=Pr(fr);Sr[Gn]=tn===24?0:tn}),nn(["a","A"],function(fr,Sr,Ur){Ur._isPm=Ur._locale.isPM(fr),Ur._meridiem=fr}),nn(["h","hh"],function(fr,Sr,Ur){Sr[Gn]=Pr(fr),zt(Ur).bigHour=!0}),nn("hmm",function(fr,Sr,Ur){var tn=fr.length-2;Sr[Gn]=Pr(fr.substr(0,tn)),Sr[Un]=Pr(fr.substr(tn)),zt(Ur).bigHour=!0}),nn("hmmss",function(fr,Sr,Ur){var tn=fr.length-4,hn=fr.length-2;Sr[Gn]=Pr(fr.substr(0,tn)),Sr[Un]=Pr(fr.substr(tn,2)),Sr[jn]=Pr(fr.substr(hn)),zt(Ur).bigHour=!0}),nn("Hmm",function(fr,Sr,Ur){var tn=fr.length-2;Sr[Gn]=Pr(fr.substr(0,tn)),Sr[Un]=Pr(fr.substr(tn))}),nn("Hmmss",function(fr,Sr,Ur){var tn=fr.length-4,hn=fr.length-2;Sr[Gn]=Pr(fr.substr(0,tn)),Sr[Un]=Pr(fr.substr(tn,2)),Sr[jn]=Pr(fr.substr(hn))});function ws(fr){return(fr+"").toLowerCase().charAt(0)==="p"}var su=/[ap]\.?m?\.?/i,ys=So("Hours",!0);function r1(fr,Sr,Ur){return fr>11?Ur?"pm":"PM":Ur?"am":"AM"}var Sl={calendar:Vt,longDateFormat:gr,invalidDate:ar,ordinal:xr,dayOfMonthOrdinalParse:Mr,relativeTime:Ir,months:Wo,monthsShort:cs,week:Bs,weekdays:K0,weekdaysMin:g1,weekdaysShort:p0,meridiemParse:su},hs={},f0={},js;function pr(fr,Sr){var Ur,tn=Math.min(fr.length,Sr.length);for(Ur=0;Ur<tn;Ur+=1)if(fr[Ur]!==Sr[Ur])return Ur;return tn}function vr(fr){return fr&&fr.toLowerCase().replace("_","-")}function Lr(fr){for(var Sr=0,Ur,tn,hn,$n;Sr<fr.length;){for($n=vr(fr[Sr]).split("-"),Ur=$n.length,tn=vr(fr[Sr+1]),tn=tn?tn.split("-"):null;Ur>0;){if(hn=on($n.slice(0,Ur).join("-")),hn)return hn;if(tn&&tn.length>=Ur&&pr($n,tn)>=Ur-1)break;Ur--}Sr++}return js}function Wr(fr){return!!(fr&&fr.match("^[^/\\\\]*$"))}function on(fr){var Sr=null,Ur;if(hs[fr]===void 0&&et&&et.exports&&Wr(fr))try{Sr=js._abbr,Ur=commonjsRequire,Ur("./locale/"+fr),sn(Sr)}catch{hs[fr]=null}return hs[fr]}function sn(fr,Sr){var Ur;return fr&&(mt(Sr)?Ur=_n(fr):Ur=dn(fr,Sr),Ur?js=Ur:typeof console<"u"&&console.warn&&console.warn("Locale "+fr+" not found. Did you forget to load it?")),js._abbr}function dn(fr,Sr){if(Sr!==null){var Ur,tn=Sl;if(Sr.abbr=fr,hs[fr]!=null)Bt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),tn=hs[fr]._config;else if(Sr.parentLocale!=null)if(hs[Sr.parentLocale]!=null)tn=hs[Sr.parentLocale]._config;else if(Ur=on(Sr.parentLocale),Ur!=null)tn=Ur._config;else return f0[Sr.parentLocale]||(f0[Sr.parentLocale]=[]),f0[Sr.parentLocale].push({name:fr,config:Sr}),null;return hs[fr]=new Wt(jt(tn,Sr)),f0[fr]&&f0[fr].forEach(function(hn){dn(hn.name,hn.config)}),sn(fr),hs[fr]}else return delete hs[fr],null}function zn(fr,Sr){if(Sr!=null){var Ur,tn,hn=Sl;hs[fr]!=null&&hs[fr].parentLocale!=null?hs[fr].set(jt(hs[fr]._config,Sr)):(tn=on(fr),tn!=null&&(hn=tn._config),Sr=jt(hn,Sr),tn==null&&(Sr.abbr=fr),Ur=new Wt(Sr),Ur.parentLocale=hs[fr],hs[fr]=Ur),sn(fr)}else hs[fr]!=null&&(hs[fr].parentLocale!=null?(hs[fr]=hs[fr].parentLocale,fr===sn()&&sn(fr)):hs[fr]!=null&&delete hs[fr]);return hs[fr]}function _n(fr){var Sr;if(fr&&fr._locale&&fr._locale._abbr&&(fr=fr._locale._abbr),!fr)return js;if(!ut(fr)){if(Sr=on(fr),Sr)return Sr;fr=[fr]}return Lr(fr)}function Fn(){return Ut(hs)}function Jn(fr){var Sr,Ur=fr._a;return Ur&&zt(fr).overflow===-2&&(Sr=Ur[kn]<0||Ur[kn]>11?kn:Ur[Qn]<1||Ur[Qn]>Go(Ur[Cn],Ur[kn])?Qn:Ur[Gn]<0||Ur[Gn]>24||Ur[Gn]===24&&(Ur[Un]!==0||Ur[jn]!==0||Ur[In]!==0)?Gn:Ur[Un]<0||Ur[Un]>59?Un:Ur[jn]<0||Ur[jn]>59?jn:Ur[In]<0||Ur[In]>999?In:-1,zt(fr)._overflowDayOfYear&&(Sr<Cn||Sr>Qn)&&(Sr=Qn),zt(fr)._overflowWeeks&&Sr===-1&&(Sr=Kn),zt(fr)._overflowWeekday&&Sr===-1&&(Sr=Wn),zt(fr).overflow=Sr),fr}var ro=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,co=/Z|[+-]\d\d(?::?\d\d)?/,bo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Lo=/^\/?Date\((-?\d+)/i,Cs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ms={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function $a(fr){var Sr,Ur,tn=fr._i,hn=ro.exec(tn)||Xn.exec(tn),$n,eo,Mo,No,Ko=bo.length,Js=wo.length;if(hn){for(zt(fr).iso=!0,Sr=0,Ur=Ko;Sr<Ur;Sr++)if(bo[Sr][1].exec(hn[1])){eo=bo[Sr][0],$n=bo[Sr][2]!==!1;break}if(eo==null){fr._isValid=!1;return}if(hn[3]){for(Sr=0,Ur=Js;Sr<Ur;Sr++)if(wo[Sr][1].exec(hn[3])){Mo=(hn[2]||" ")+wo[Sr][0];break}if(Mo==null){fr._isValid=!1;return}}if(!$n&&Mo!=null){fr._isValid=!1;return}if(hn[4])if(co.exec(hn[4]))No="Z";else{fr._isValid=!1;return}fr._f=eo+(Mo||"")+(No||""),Cl(fr)}else fr._isValid=!1}function _l(fr,Sr,Ur,tn,hn,$n){var eo=[Vo(fr),cs.indexOf(Sr),parseInt(Ur,10),parseInt(tn,10),parseInt(hn,10)];return $n&&eo.push(parseInt($n,10)),eo}function Vo(fr){var Sr=parseInt(fr,10);return Sr<=49?2e3+Sr:Sr<=999?1900+Sr:Sr}function r0(fr){return fr.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Yo(fr,Sr,Ur){if(fr){var tn=p0.indexOf(fr),hn=new Date(Sr[0],Sr[1],Sr[2]).getDay();if(tn!==hn)return zt(Ur).weekdayMismatch=!0,Ur._isValid=!1,!1}return!0}function ds(fr,Sr,Ur){if(fr)return Ms[fr];if(Sr)return 0;var tn=parseInt(Ur,10),hn=tn%100,$n=(tn-hn)/100;return $n*60+hn}function C0(fr){var Sr=Cs.exec(r0(fr._i)),Ur;if(Sr){if(Ur=_l(Sr[4],Sr[3],Sr[2],Sr[5],Sr[6],Sr[7]),!Yo(Sr[1],Ur,fr))return;fr._a=Ur,fr._tzm=ds(Sr[8],Sr[9],Sr[10]),fr._d=Sn.apply(null,fr._a),fr._d.setUTCMinutes(fr._d.getUTCMinutes()-fr._tzm),zt(fr).rfc2822=!0}else fr._isValid=!1}function n1(fr){var Sr=Lo.exec(fr._i);if(Sr!==null){fr._d=new Date(+Sr[1]);return}if($a(fr),fr._isValid===!1)delete fr._isValid;else return;if(C0(fr),fr._isValid===!1)delete fr._isValid;else return;fr._strict?fr._isValid=!1:nt.createFromInputFallback(fr)}nt.createFromInputFallback=Jt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(fr){fr._d=new Date(fr._i+(fr._useUTC?" UTC":""))});function Ps(fr,Sr,Ur){return fr??Sr??Ur}function h0(fr){var Sr=new Date(nt.now());return fr._useUTC?[Sr.getUTCFullYear(),Sr.getUTCMonth(),Sr.getUTCDate()]:[Sr.getFullYear(),Sr.getMonth(),Sr.getDate()]}function Us(fr){var Sr,Ur,tn=[],hn,$n,eo;if(!fr._d){for(hn=h0(fr),fr._w&&fr._a[Qn]==null&&fr._a[kn]==null&&Wl(fr),fr._dayOfYear!=null&&(eo=Ps(fr._a[Cn],hn[Cn]),(fr._dayOfYear>ao(eo)||fr._dayOfYear===0)&&(zt(fr)._overflowDayOfYear=!0),Ur=Sn(eo,0,fr._dayOfYear),fr._a[kn]=Ur.getUTCMonth(),fr._a[Qn]=Ur.getUTCDate()),Sr=0;Sr<3&&fr._a[Sr]==null;++Sr)fr._a[Sr]=tn[Sr]=hn[Sr];for(;Sr<7;Sr++)fr._a[Sr]=tn[Sr]=fr._a[Sr]==null?Sr===2?1:0:fr._a[Sr];fr._a[Gn]===24&&fr._a[Un]===0&&fr._a[jn]===0&&fr._a[In]===0&&(fr._nextDay=!0,fr._a[Gn]=0),fr._d=(fr._useUTC?Sn:On).apply(null,tn),$n=fr._useUTC?fr._d.getUTCDay():fr._d.getDay(),fr._tzm!=null&&fr._d.setUTCMinutes(fr._d.getUTCMinutes()-fr._tzm),fr._nextDay&&(fr._a[Gn]=24),fr._w&&typeof fr._w.d<"u"&&fr._w.d!==$n&&(zt(fr).weekdayMismatch=!0)}}function Wl(fr){var Sr,Ur,tn,hn,$n,eo,Mo,No,Ko;Sr=fr._w,Sr.GG!=null||Sr.W!=null||Sr.E!=null?($n=1,eo=4,Ur=Ps(Sr.GG,fr._a[Cn],Co(Oo(),1,4).year),tn=Ps(Sr.W,1),hn=Ps(Sr.E,1),(hn<1||hn>7)&&(No=!0)):($n=fr._locale._week.dow,eo=fr._locale._week.doy,Ko=Co(Oo(),$n,eo),Ur=Ps(Sr.gg,fr._a[Cn],Ko.year),tn=Ps(Sr.w,Ko.week),Sr.d!=null?(hn=Sr.d,(hn<0||hn>6)&&(No=!0)):Sr.e!=null?(hn=Sr.e+$n,(Sr.e<0||Sr.e>6)&&(No=!0)):hn=$n),tn<1||tn>ls(Ur,$n,eo)?zt(fr)._overflowWeeks=!0:No!=null?zt(fr)._overflowWeekday=!0:(Mo=_o(Ur,tn,hn,$n,eo),fr._a[Cn]=Mo.year,fr._dayOfYear=Mo.dayOfYear)}nt.ISO_8601=function(){},nt.RFC_2822=function(){};function Cl(fr){if(fr._f===nt.ISO_8601){$a(fr);return}if(fr._f===nt.RFC_2822){C0(fr);return}fr._a=[],zt(fr).empty=!0;var Sr=""+fr._i,Ur,tn,hn,$n,eo,Mo=Sr.length,No=0,Ko,Js;for(hn=dr(fr._f,fr._locale).match(Zt)||[],Js=hn.length,Ur=0;Ur<Js;Ur++)$n=hn[Ur],tn=(Sr.match(qn($n,fr))||[])[0],tn&&(eo=Sr.substr(0,Sr.indexOf(tn)),eo.length>0&&zt(fr).unusedInput.push(eo),Sr=Sr.slice(Sr.indexOf(tn)+tn.length),No+=tn.length),nr[$n]?(tn?zt(fr).empty=!1:zt(fr).unusedTokens.push($n),An($n,tn,fr)):fr._strict&&!tn&&zt(fr).unusedTokens.push($n);zt(fr).charsLeftOver=Mo-No,Sr.length>0&&zt(fr).unusedInput.push(Sr),fr._a[Gn]<=12&&zt(fr).bigHour===!0&&fr._a[Gn]>0&&(zt(fr).bigHour=void 0),zt(fr).parsedDateParts=fr._a.slice(0),zt(fr).meridiem=fr._meridiem,fr._a[Gn]=Hs(fr._locale,fr._a[Gn],fr._meridiem),Ko=zt(fr).era,Ko!==null&&(fr._a[Cn]=fr._locale.erasConvertYear(Ko,fr._a[Cn])),Us(fr),Jn(fr)}function Hs(fr,Sr,Ur){var tn;return Ur==null?Sr:fr.meridiemHour!=null?fr.meridiemHour(Sr,Ur):(fr.isPM!=null&&(tn=fr.isPM(Ur),tn&&Sr<12&&(Sr+=12),!tn&&Sr===12&&(Sr=0)),Sr)}function P0(fr){var Sr,Ur,tn,hn,$n,eo,Mo=!1,No=fr._f.length;if(No===0){zt(fr).invalidFormat=!0,fr._d=new Date(NaN);return}for(hn=0;hn<No;hn++)$n=0,eo=!1,Sr=qt({},fr),fr._useUTC!=null&&(Sr._useUTC=fr._useUTC),Sr._f=fr._f[hn],Cl(Sr),Ct(Sr)&&(eo=!0),$n+=zt(Sr).charsLeftOver,$n+=zt(Sr).unusedTokens.length*10,zt(Sr).score=$n,Mo?$n<tn&&(tn=$n,Ur=Sr):(tn==null||$n<tn||eo)&&(tn=$n,Ur=Sr,eo&&(Mo=!0));Ot(fr,Ur||Sr)}function Ul(fr){if(!fr._d){var Sr=kr(fr._i),Ur=Sr.day===void 0?Sr.date:Sr.day;fr._a=vt([Sr.year,Sr.month,Ur,Sr.hour,Sr.minute,Sr.second,Sr.millisecond],function(tn){return tn&&parseInt(tn,10)}),Us(fr)}}function Tl(fr){var Sr=new Nt(Jn(Gs(fr)));return Sr._nextDay&&(Sr.add(1,"d"),Sr._nextDay=void 0),Sr}function Gs(fr){var Sr=fr._i,Ur=fr._f;return fr._locale=fr._locale||_n(fr._l),Sr===null||Ur===void 0&&Sr===""?It({nullInput:!0}):(typeof Sr=="string"&&(fr._i=Sr=fr._locale.preparse(Sr)),Yt(Sr)?new Nt(Jn(Sr)):(Mt(Sr)?fr._d=Sr:ut(Ur)?P0(fr):Ur?Cl(fr):b1(fr),Ct(fr)||(fr._d=null),fr))}function b1(fr){var Sr=fr._i;mt(Sr)?fr._d=new Date(nt.now()):Mt(Sr)?fr._d=new Date(Sr.valueOf()):typeof Sr=="string"?n1(fr):ut(Sr)?(fr._a=vt(Sr.slice(0),function(Ur){return parseInt(Ur,10)}),Us(fr)):dt(Sr)?Ul(fr):xt(Sr)?fr._d=new Date(Sr):nt.createFromInputFallback(fr)}function T0(fr,Sr,Ur,tn,hn){var $n={};return(Sr===!0||Sr===!1)&&(tn=Sr,Sr=void 0),(Ur===!0||Ur===!1)&&(tn=Ur,Ur=void 0),(dt(fr)&&ht(fr)||ut(fr)&&fr.length===0)&&(fr=void 0),$n._isAMomentObject=!0,$n._useUTC=$n._isUTC=hn,$n._l=Ur,$n._i=fr,$n._f=Sr,$n._strict=tn,Tl($n)}function Oo(fr,Sr,Ur,tn){return T0(fr,Sr,Ur,tn,!1)}var L0=Jt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var fr=Oo.apply(null,arguments);return this.isValid()&&fr.isValid()?fr<this?this:fr:It()}),xl=Jt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var fr=Oo.apply(null,arguments);return this.isValid()&&fr.isValid()?fr>this?this:fr:It()});function m0(fr,Sr){var Ur,tn;if(Sr.length===1&&ut(Sr[0])&&(Sr=Sr[0]),!Sr.length)return Oo();for(Ur=Sr[0],tn=1;tn<Sr.length;++tn)(!Sr[tn].isValid()||Sr[tn][fr](Ur))&&(Ur=Sr[tn]);return Ur}function au(){var fr=[].slice.call(arguments,0);return m0("isBefore",fr)}function lu(){var fr=[].slice.call(arguments,0);return m0("isAfter",fr)}var j1=function(){return Date.now?Date.now():+new Date},Ls=["year","quarter","month","week","day","hour","minute","second","millisecond"];function x1(fr){var Sr,Ur=!1,tn,hn=Ls.length;for(Sr in fr)if(pt(fr,Sr)&&!(vo.call(Ls,Sr)!==-1&&(fr[Sr]==null||!isNaN(fr[Sr]))))return!1;for(tn=0;tn<hn;++tn)if(fr[Ls[tn]]){if(Ur)return!1;parseFloat(fr[Ls[tn]])!==Pr(fr[Ls[tn]])&&(Ur=!0)}return!0}function n0(){return this._isValid}function i1(){return fo(NaN)}function Hl(fr){var Sr=kr(fr),Ur=Sr.year||0,tn=Sr.quarter||0,hn=Sr.month||0,$n=Sr.week||Sr.isoWeek||0,eo=Sr.day||0,Mo=Sr.hour||0,No=Sr.minute||0,Ko=Sr.second||0,Js=Sr.millisecond||0;this._isValid=x1(Sr),this._milliseconds=+Js+Ko*1e3+No*6e4+Mo*1e3*60*60,this._days=+eo+$n*7,this._months=+hn+tn*3+Ur*12,this._data={},this._locale=_n(),this._bubble()}function Vs(fr){return fr instanceof Hl}function Gl(fr){return fr<0?Math.round(-1*fr)*-1:Math.round(fr)}function y1(fr,Sr,Ur){var tn=Math.min(fr.length,Sr.length),hn=Math.abs(fr.length-Sr.length),$n=0,eo;for(eo=0;eo<tn;eo++)Pr(fr[eo])!==Pr(Sr[eo])&&$n++;return $n+hn}function P1(fr,Sr){or(fr,0,0,function(){var Ur=this.utcOffset(),tn="+";return Ur<0&&(Ur=-Ur,tn="-"),tn+Gt(~~(Ur/60),2)+Sr+Gt(~~Ur%60,2)})}P1("Z",":"),P1("ZZ",""),pn("Z",vn),pn("ZZ",vn),nn(["Z","ZZ"],function(fr,Sr,Ur){Ur._useUTC=!0,Ur._tzm=Il(vn,fr)});var o1=/([\+\-]|\d\d)/gi;function Il(fr,Sr){var Ur=(Sr||"").match(fr),tn,hn,$n;return Ur===null?null:(tn=Ur[Ur.length-1]||[],hn=(tn+"").match(o1)||["-",0,0],$n=+(hn[1]*60)+Pr(hn[2]),$n===0?0:hn[0]==="+"?$n:-$n)}function ks(fr,Sr){var Ur,tn;return Sr._isUTC?(Ur=Sr.clone(),tn=(Yt(fr)||Mt(fr)?fr.valueOf():Oo(fr).valueOf())-Ur.valueOf(),Ur._d.setTime(Ur._d.valueOf()+tn),nt.updateOffset(Ur,!1),Ur):Oo(fr).local()}function s1(fr){return-Math.round(fr._d.getTimezoneOffset())}nt.updateOffset=function(){};function M1(fr,Sr,Ur){var tn=this._offset||0,hn;if(!this.isValid())return fr!=null?this:NaN;if(fr!=null){if(typeof fr=="string"){if(fr=Il(vn,fr),fr===null)return this}else Math.abs(fr)<16&&!Ur&&(fr=fr*60);return!this._isUTC&&Sr&&(hn=s1(this)),this._offset=fr,this._isUTC=!0,hn!=null&&this.add(hn,"m"),tn!==fr&&(!Sr||this._changeInProgress?Ts(this,fo(fr-tn,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,nt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?tn:s1(this)}function L1(fr,Sr){return fr!=null?(typeof fr!="string"&&(fr=-fr),this.utcOffset(fr,Sr),this):-this.utcOffset()}function Rn(fr){return this.utcOffset(0,fr)}function Ln(fr){return this._isUTC&&(this.utcOffset(0,fr),this._isUTC=!1,fr&&this.subtract(s1(this),"m")),this}function Yn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var fr=Il(ln,this._i);fr!=null?this.utcOffset(fr):this.utcOffset(0,!0)}return this}function Zn(fr){return this.isValid()?(fr=fr?Oo(fr).utcOffset():0,(this.utcOffset()-fr)%60===0):!1}function En(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Nn(){if(!mt(this._isDSTShifted))return this._isDSTShifted;var fr={},Sr;return qt(fr,this),fr=Gs(fr),fr._a?(Sr=fr._isUTC?At(fr._a):Oo(fr._a),this._isDSTShifted=this.isValid()&&y1(fr._a,Sr.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Dn(){return this.isValid()?!this._isUTC:!1}function no(){return this.isValid()?this._isUTC:!1}function io(){return this.isValid()?this._isUTC&&this._offset===0:!1}var yo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Eo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function fo(fr,Sr){var Ur=fr,tn=null,hn,$n,eo;return Vs(fr)?Ur={ms:fr._milliseconds,d:fr._days,M:fr._months}:xt(fr)||!isNaN(+fr)?(Ur={},Sr?Ur[Sr]=+fr:Ur.milliseconds=+fr):(tn=yo.exec(fr))?(hn=tn[1]==="-"?-1:1,Ur={y:0,d:Pr(tn[Qn])*hn,h:Pr(tn[Gn])*hn,m:Pr(tn[Un])*hn,s:Pr(tn[jn])*hn,ms:Pr(Gl(tn[In]*1e3))*hn}):(tn=Eo.exec(fr))?(hn=tn[1]==="-"?-1:1,Ur={y:Do(tn[2],hn),M:Do(tn[3],hn),w:Do(tn[4],hn),d:Do(tn[5],hn),h:Do(tn[6],hn),m:Do(tn[7],hn),s:Do(tn[8],hn)}):Ur==null?Ur={}:typeof Ur=="object"&&("from"in Ur||"to"in Ur)&&(eo=Uo(Oo(Ur.from),Oo(Ur.to)),Ur={},Ur.ms=eo.milliseconds,Ur.M=eo.months),$n=new Hl(Ur),Vs(fr)&&pt(fr,"_locale")&&($n._locale=fr._locale),Vs(fr)&&pt(fr,"_isValid")&&($n._isValid=fr._isValid),$n}fo.fn=Hl.prototype,fo.invalid=i1;function Do(fr,Sr){var Ur=fr&&parseFloat(fr.replace(",","."));return(isNaN(Ur)?0:Ur)*Sr}function Ro(fr,Sr){var Ur={};return Ur.months=Sr.month()-fr.month()+(Sr.year()-fr.year())*12,fr.clone().add(Ur.months,"M").isAfter(Sr)&&--Ur.months,Ur.milliseconds=+Sr-+fr.clone().add(Ur.months,"M"),Ur}function Uo(fr,Sr){var Ur;return fr.isValid()&&Sr.isValid()?(Sr=ks(Sr,fr),fr.isBefore(Sr)?Ur=Ro(fr,Sr):(Ur=Ro(Sr,fr),Ur.milliseconds=-Ur.milliseconds,Ur.months=-Ur.months),Ur):{milliseconds:0,months:0}}function Rs(fr,Sr){return function(Ur,tn){var hn,$n;return tn!==null&&!isNaN(+tn)&&(Bt(Sr,"moment()."+Sr+"(period, number) is deprecated. Please use moment()."+Sr+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$n=Ur,Ur=tn,tn=$n),hn=fo(Ur,tn),Ts(this,hn,fr),this}}function Ts(fr,Sr,Ur,tn){var hn=Sr._milliseconds,$n=Gl(Sr._days),eo=Gl(Sr._months);fr.isValid()&&(tn=tn??!0,eo&&Xs(fr,ko(fr,"Month")+eo*Ur),$n&&us(fr,"Date",ko(fr,"Date")+$n*Ur),hn&&fr._d.setTime(fr._d.valueOf()+hn*Ur),tn&&nt.updateOffset(fr,$n||eo))}var zs=Rs(1,"add"),Qs=Rs(-1,"subtract");function $l(fr){return typeof fr=="string"||fr instanceof String}function jo(fr){return Yt(fr)||Mt(fr)||$l(fr)||xt(fr)||Ou(fr)||cp(fr)||fr===null||fr===void 0}function cp(fr){var Sr=dt(fr)&&!ht(fr),Ur=!1,tn=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],hn,$n,eo=tn.length;for(hn=0;hn<eo;hn+=1)$n=tn[hn],Ur=Ur||pt(fr,$n);return Sr&&Ur}function Ou(fr){var Sr=ut(fr),Ur=!1;return Sr&&(Ur=fr.filter(function(tn){return!xt(tn)&&$l(fr)}).length===0),Sr&&Ur}function q1(fr){var Sr=dt(fr)&&!ht(fr),Ur=!1,tn=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],hn,$n;for(hn=0;hn<tn.length;hn+=1)$n=tn[hn],Ur=Ur||pt(fr,$n);return Sr&&Ur}function up(fr,Sr){var Ur=fr.diff(Sr,"days",!0);return Ur<-6?"sameElse":Ur<-1?"lastWeek":Ur<0?"lastDay":Ur<1?"sameDay":Ur<2?"nextDay":Ur<7?"nextWeek":"sameElse"}function dp(fr,Sr){arguments.length===1&&(arguments[0]?jo(arguments[0])?(fr=arguments[0],Sr=void 0):q1(arguments[0])&&(Sr=arguments[0],fr=void 0):(fr=void 0,Sr=void 0));var Ur=fr||Oo(),tn=ks(Ur,this).startOf("day"),hn=nt.calendarFormat(this,tn)||"sameElse",$n=Sr&&(Ft(Sr[hn])?Sr[hn].call(this,Ur):Sr[hn]);return this.format($n||this.localeData().calendar(hn,this,Oo(Ur)))}function pp(){return new Nt(this)}function k1(fr,Sr){var Ur=Yt(fr)?fr:Oo(fr);return this.isValid()&&Ur.isValid()?(Sr=Hr(Sr)||"millisecond",Sr==="millisecond"?this.valueOf()>Ur.valueOf():Ur.valueOf()<this.clone().startOf(Sr).valueOf()):!1}function z0(fr,Sr){var Ur=Yt(fr)?fr:Oo(fr);return this.isValid()&&Ur.isValid()?(Sr=Hr(Sr)||"millisecond",Sr==="millisecond"?this.valueOf()<Ur.valueOf():this.clone().endOf(Sr).valueOf()<Ur.valueOf()):!1}function F1(fr,Sr,Ur,tn){var hn=Yt(fr)?fr:Oo(fr),$n=Yt(Sr)?Sr:Oo(Sr);return this.isValid()&&hn.isValid()&&$n.isValid()?(tn=tn||"()",(tn[0]==="("?this.isAfter(hn,Ur):!this.isBefore(hn,Ur))&&(tn[1]===")"?this.isBefore($n,Ur):!this.isAfter($n,Ur))):!1}function Ru(fr,Sr){var Ur=Yt(fr)?fr:Oo(fr),tn;return this.isValid()&&Ur.isValid()?(Sr=Hr(Sr)||"millisecond",Sr==="millisecond"?this.valueOf()===Ur.valueOf():(tn=Ur.valueOf(),this.clone().startOf(Sr).valueOf()<=tn&&tn<=this.clone().endOf(Sr).valueOf())):!1}function B1(fr,Sr){return this.isSame(fr,Sr)||this.isAfter(fr,Sr)}function Su(fr,Sr){return this.isSame(fr,Sr)||this.isBefore(fr,Sr)}function _u(fr,Sr,Ur){var tn,hn,$n;if(!this.isValid())return NaN;if(tn=ks(fr,this),!tn.isValid())return NaN;switch(hn=(tn.utcOffset()-this.utcOffset())*6e4,Sr=Hr(Sr),Sr){case"year":$n=q0(this,tn)/12;break;case"month":$n=q0(this,tn);break;case"quarter":$n=q0(this,tn)/3;break;case"second":$n=(this-tn)/1e3;break;case"minute":$n=(this-tn)/6e4;break;case"hour":$n=(this-tn)/36e5;break;case"day":$n=(this-tn-hn)/864e5;break;case"week":$n=(this-tn-hn)/6048e5;break;default:$n=this-tn}return Ur?$n:Tr($n)}function q0(fr,Sr){if(fr.date()<Sr.date())return-q0(Sr,fr);var Ur=(Sr.year()-fr.year())*12+(Sr.month()-fr.month()),tn=fr.clone().add(Ur,"months"),hn,$n;return Sr-tn<0?(hn=fr.clone().add(Ur-1,"months"),$n=(Sr-tn)/(tn-hn)):(hn=fr.clone().add(Ur+1,"months"),$n=(Sr-tn)/(hn-tn)),-(Ur+$n)||0}nt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",nt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Cu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function E1(fr){if(!this.isValid())return null;var Sr=fr!==!0,Ur=Sr?this.clone().utc():this;return Ur.year()<0||Ur.year()>9999?ir(Ur,Sr?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ft(Date.prototype.toISOString)?Sr?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ir(Ur,"Z")):ir(Ur,Sr?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function k0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var fr="moment",Sr="",Ur,tn,hn,$n;return this.isLocal()||(fr=this.utcOffset()===0?"moment.utc":"moment.parseZone",Sr="Z"),Ur="["+fr+'("]',tn=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",hn="-MM-DD[T]HH:mm:ss.SSS",$n=Sr+'[")]',this.format(Ur+tn+hn+$n)}function W1(fr){fr||(fr=this.isUtc()?nt.defaultFormatUtc:nt.defaultFormat);var Sr=ir(this,fr);return this.localeData().postformat(Sr)}function fp(fr,Sr){return this.isValid()&&(Yt(fr)&&fr.isValid()||Oo(fr).isValid())?fo({to:this,from:fr}).locale(this.locale()).humanize(!Sr):this.localeData().invalidDate()}function hp(fr){return this.from(Oo(),fr)}function mp(fr,Sr){return this.isValid()&&(Yt(fr)&&fr.isValid()||Oo(fr).isValid())?fo({from:this,to:fr}).locale(this.locale()).humanize(!Sr):this.localeData().invalidDate()}function U1(fr){return this.to(Oo(),fr)}function v1(fr){var Sr;return fr===void 0?this._locale._abbr:(Sr=_n(fr),Sr!=null&&(this._locale=Sr),this)}var H1=Jt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(fr){return fr===void 0?this.localeData():this.locale(fr)});function Tu(){return this._locale}var A1=1e3,a1=60*A1,G1=60*a1,Ss=(365*400+97)*24*G1;function vs(fr,Sr){return(fr%Sr+Sr)%Sr}function zu(fr,Sr,Ur){return fr<100&&fr>=0?new Date(fr+400,Sr,Ur)-Ss:new Date(fr,Sr,Ur).valueOf()}function Iu(fr,Sr,Ur){return fr<100&&fr>=0?Date.UTC(fr+400,Sr,Ur)-Ss:Date.UTC(fr,Sr,Ur)}function $u(fr){var Sr,Ur;if(fr=Hr(fr),fr===void 0||fr==="millisecond"||!this.isValid())return this;switch(Ur=this._isUTC?Iu:zu,fr){case"year":Sr=Ur(this.year(),0,1);break;case"quarter":Sr=Ur(this.year(),this.month()-this.month()%3,1);break;case"month":Sr=Ur(this.year(),this.month(),1);break;case"week":Sr=Ur(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Sr=Ur(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Sr=Ur(this.year(),this.month(),this.date());break;case"hour":Sr=this._d.valueOf(),Sr-=vs(Sr+(this._isUTC?0:this.utcOffset()*a1),G1);break;case"minute":Sr=this._d.valueOf(),Sr-=vs(Sr,a1);break;case"second":Sr=this._d.valueOf(),Sr-=vs(Sr,A1);break}return this._d.setTime(Sr),nt.updateOffset(this,!0),this}function gp(fr){var Sr,Ur;if(fr=Hr(fr),fr===void 0||fr==="millisecond"||!this.isValid())return this;switch(Ur=this._isUTC?Iu:zu,fr){case"year":Sr=Ur(this.year()+1,0,1)-1;break;case"quarter":Sr=Ur(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Sr=Ur(this.year(),this.month()+1,1)-1;break;case"week":Sr=Ur(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Sr=Ur(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Sr=Ur(this.year(),this.month(),this.date()+1)-1;break;case"hour":Sr=this._d.valueOf(),Sr+=G1-vs(Sr+(this._isUTC?0:this.utcOffset()*a1),G1)-1;break;case"minute":Sr=this._d.valueOf(),Sr+=a1-vs(Sr,a1)-1;break;case"second":Sr=this._d.valueOf(),Sr+=A1-vs(Sr,A1)-1;break}return this._d.setTime(Sr),nt.updateOffset(this,!0),this}function cu(){return this._d.valueOf()-(this._offset||0)*6e4}function O1(){return Math.floor(this.valueOf()/1e3)}function uu(){return new Date(this.valueOf())}function l1(){var fr=this;return[fr.year(),fr.month(),fr.date(),fr.hour(),fr.minute(),fr.second(),fr.millisecond()]}function R1(){var fr=this;return{years:fr.year(),months:fr.month(),date:fr.date(),hours:fr.hours(),minutes:fr.minutes(),seconds:fr.seconds(),milliseconds:fr.milliseconds()}}function S1(){return this.isValid()?this.toISOString():null}function V1(){return Ct(this)}function c1(){return Ot({},zt(this))}function bp(){return zt(this).overflow}function xp(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}or("N",0,0,"eraAbbr"),or("NN",0,0,"eraAbbr"),or("NNN",0,0,"eraAbbr"),or("NNNN",0,0,"eraName"),or("NNNNN",0,0,"eraNarrow"),or("y",["y",1],"yo","eraYear"),or("y",["yy",2],0,"eraYear"),or("y",["yyy",3],0,"eraYear"),or("y",["yyyy",4],0,"eraYear"),pn("N",Xo),pn("NN",Xo),pn("NNN",Xo),pn("NNNN",vp),pn("NNNNN",Ap),nn(["N","NN","NNN","NNNN","NNNNN"],function(fr,Sr,Ur,tn){var hn=Ur._locale.erasParse(fr,tn,Ur._strict);hn?zt(Ur).era=hn:zt(Ur).invalidEra=fr}),pn("y",rn),pn("yy",rn),pn("yyy",rn),pn("yyyy",rn),pn("yo",Op),nn(["y","yy","yyy","yyyy"],Cn),nn(["yo"],function(fr,Sr,Ur,tn){var hn;Ur._locale._eraYearOrdinalRegex&&(hn=fr.match(Ur._locale._eraYearOrdinalRegex)),Ur._locale.eraYearOrdinalParse?Sr[Cn]=Ur._locale.eraYearOrdinalParse(fr,hn):Sr[Cn]=parseInt(fr,10)});function yp(fr,Sr){var Ur,tn,hn,$n=this._eras||_n("en")._eras;for(Ur=0,tn=$n.length;Ur<tn;++Ur){switch(typeof $n[Ur].since){case"string":hn=nt($n[Ur].since).startOf("day"),$n[Ur].since=hn.valueOf();break}switch(typeof $n[Ur].until){case"undefined":$n[Ur].until=1/0;break;case"string":hn=nt($n[Ur].until).startOf("day").valueOf(),$n[Ur].until=hn.valueOf();break}}return $n}function Mp(fr,Sr,Ur){var tn,hn,$n=this.eras(),eo,Mo,No;for(fr=fr.toUpperCase(),tn=0,hn=$n.length;tn<hn;++tn)if(eo=$n[tn].name.toUpperCase(),Mo=$n[tn].abbr.toUpperCase(),No=$n[tn].narrow.toUpperCase(),Ur)switch(Sr){case"N":case"NN":case"NNN":if(Mo===fr)return $n[tn];break;case"NNNN":if(eo===fr)return $n[tn];break;case"NNNNN":if(No===fr)return $n[tn];break}else if([eo,Mo,No].indexOf(fr)>=0)return $n[tn]}function Ep(fr,Sr){var Ur=fr.since<=fr.until?1:-1;return Sr===void 0?nt(fr.since).year():nt(fr.since).year()+(Sr-fr.offset)*Ur}function Y1(){var fr,Sr,Ur,tn=this.localeData().eras();for(fr=0,Sr=tn.length;fr<Sr;++fr)if(Ur=this.clone().startOf("day").valueOf(),tn[fr].since<=Ur&&Ur<=tn[fr].until||tn[fr].until<=Ur&&Ur<=tn[fr].since)return tn[fr].name;return""}function T1(){var fr,Sr,Ur,tn=this.localeData().eras();for(fr=0,Sr=tn.length;fr<Sr;++fr)if(Ur=this.clone().startOf("day").valueOf(),tn[fr].since<=Ur&&Ur<=tn[fr].until||tn[fr].until<=Ur&&Ur<=tn[fr].since)return tn[fr].narrow;return""}function Du(){var fr,Sr,Ur,tn=this.localeData().eras();for(fr=0,Sr=tn.length;fr<Sr;++fr)if(Ur=this.clone().startOf("day").valueOf(),tn[fr].since<=Ur&&Ur<=tn[fr].until||tn[fr].until<=Ur&&Ur<=tn[fr].since)return tn[fr].abbr;return""}function mn(){var fr,Sr,Ur,tn,hn=this.localeData().eras();for(fr=0,Sr=hn.length;fr<Sr;++fr)if(Ur=hn[fr].since<=hn[fr].until?1:-1,tn=this.clone().startOf("day").valueOf(),hn[fr].since<=tn&&tn<=hn[fr].until||hn[fr].until<=tn&&tn<=hn[fr].since)return(this.year()-nt(hn[fr].since).year())*Ur+hn[fr].offset;return this.year()}function u1(fr){return pt(this,"_erasNameRegex")||g0.call(this),fr?this._erasNameRegex:this._erasRegex}function X1(fr){return pt(this,"_erasAbbrRegex")||g0.call(this),fr?this._erasAbbrRegex:this._erasRegex}function Dl(fr){return pt(this,"_erasNarrowRegex")||g0.call(this),fr?this._erasNarrowRegex:this._erasRegex}function Xo(fr,Sr){return Sr.erasAbbrRegex(fr)}function vp(fr,Sr){return Sr.erasNameRegex(fr)}function Ap(fr,Sr){return Sr.erasNarrowRegex(fr)}function Op(fr,Sr){return Sr._eraYearOrdinalRegex||rn}function g0(){var fr=[],Sr=[],Ur=[],tn=[],hn,$n,eo,Mo,No,Ko=this.eras();for(hn=0,$n=Ko.length;hn<$n;++hn)eo=Kr(Ko[hn].name),Mo=Kr(Ko[hn].abbr),No=Kr(Ko[hn].narrow),Sr.push(eo),fr.push(Mo),Ur.push(No),tn.push(eo),tn.push(Mo),tn.push(No);this._erasRegex=new RegExp("^("+tn.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Sr.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+fr.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+Ur.join("|")+")","i")}or(0,["gg",2],0,function(){return this.weekYear()%100}),or(0,["GG",2],0,function(){return this.isoWeekYear()%100});function K1(fr,Sr){or(0,[fr,fr.length],0,Sr)}K1("gggg","weekYear"),K1("ggggg","weekYear"),K1("GGGG","isoWeekYear"),K1("GGGGG","isoWeekYear"),pn("G",_r),pn("g",_r),pn("GG",Jr,Dr),pn("gg",Jr,Dr),pn("GGGG",cn,Yr),pn("gggg",cn,Yr),pn("GGGGG",Qr,Gr),pn("ggggg",Qr,Gr),Mn(["gggg","ggggg","GGGG","GGGGG"],function(fr,Sr,Ur,tn){Sr[tn.substr(0,2)]=Pr(fr)}),Mn(["gg","GG"],function(fr,Sr,Ur,tn){Sr[tn]=nt.parseTwoDigitYear(fr)});function Rp(fr){return Nu.call(this,fr,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Sp(fr){return Nu.call(this,fr,this.isoWeek(),this.isoWeekday(),1,4)}function _p(){return ls(this.year(),1,4)}function Cp(){return ls(this.isoWeekYear(),1,4)}function b0(){var fr=this.localeData()._week;return ls(this.year(),fr.dow,fr.doy)}function Tp(){var fr=this.localeData()._week;return ls(this.weekYear(),fr.dow,fr.doy)}function Nu(fr,Sr,Ur,tn,hn){var $n;return fr==null?Co(this,tn,hn).year:($n=ls(fr,tn,hn),Sr>$n&&(Sr=$n),zp.call(this,fr,Sr,Ur,tn,hn))}function zp(fr,Sr,Ur,tn,hn){var $n=_o(fr,Sr,Ur,tn,hn),eo=Sn($n.year,0,$n.dayOfYear);return this.year(eo.getUTCFullYear()),this.month(eo.getUTCMonth()),this.date(eo.getUTCDate()),this}or("Q",0,"Qo","quarter"),pn("Q",Or),nn("Q",function(fr,Sr){Sr[kn]=(Pr(fr)-1)*3});function Ip(fr){return fr==null?Math.ceil((this.month()+1)/3):this.month((fr-1)*3+this.month()%3)}or("D",["DD",2],"Do","date"),pn("D",Jr,xn),pn("DD",Jr,Dr),pn("Do",function(fr,Sr){return fr?Sr._dayOfMonthOrdinalParse||Sr._ordinalParse:Sr._dayOfMonthOrdinalParseLenient}),nn(["D","DD"],Qn),nn("Do",function(fr,Sr){Sr[Qn]=Pr(fr.match(Jr)[0])});var wu=So("Date",!0);or("DDD",["DDDD",3],"DDDo","dayOfYear"),pn("DDD",Xr),pn("DDDD",Fr),nn(["DDD","DDDD"],function(fr,Sr,Ur){Ur._dayOfYear=Pr(fr)});function x0(fr){var Sr=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return fr==null?Sr:this.add(fr-Sr,"d")}or("m",["mm",2],0,"minute"),pn("m",Jr,Vr),pn("mm",Jr,Dr),nn(["m","mm"],Un);var $p=So("Minutes",!1);or("s",["ss",2],0,"second"),pn("s",Jr,Vr),pn("ss",Jr,Dr),nn(["s","ss"],jn);var Dp=So("Seconds",!1);or("S",0,0,function(){return~~(this.millisecond()/100)}),or(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),or(0,["SSS",3],0,"millisecond"),or(0,["SSSS",4],0,function(){return this.millisecond()*10}),or(0,["SSSSS",5],0,function(){return this.millisecond()*100}),or(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),or(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),or(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),or(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),pn("S",Xr,Or),pn("SS",Xr,Dr),pn("SSS",Xr,Fr);var I0,ju;for(I0="SSSS";I0.length<=9;I0+="S")pn(I0,rn);function Np(fr,Sr){Sr[In]=Pr(("0."+fr)*1e3)}for(I0="S";I0.length<=9;I0+="S")nn(I0,Np);ju=So("Milliseconds",!1),or("z",0,0,"zoneAbbr"),or("zz",0,0,"zoneName");function F0(){return this._isUTC?"UTC":""}function wp(){return this._isUTC?"Coordinated Universal Time":""}var uo=Nt.prototype;uo.add=zs,uo.calendar=dp,uo.clone=pp,uo.diff=_u,uo.endOf=gp,uo.format=W1,uo.from=fp,uo.fromNow=hp,uo.to=mp,uo.toNow=U1,uo.get=Jo,uo.invalidAt=bp,uo.isAfter=k1,uo.isBefore=z0,uo.isBetween=F1,uo.isSame=Ru,uo.isSameOrAfter=B1,uo.isSameOrBefore=Su,uo.isValid=V1,uo.lang=H1,uo.locale=v1,uo.localeData=Tu,uo.max=xl,uo.min=L0,uo.parsingFlags=c1,uo.set=go,uo.startOf=$u,uo.subtract=Qs,uo.toArray=l1,uo.toObject=R1,uo.toDate=uu,uo.toISOString=E1,uo.inspect=k0,typeof Symbol<"u"&&Symbol.for!=null&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=S1,uo.toString=Cu,uo.unix=O1,uo.valueOf=cu,uo.creationData=xp,uo.eraName=Y1,uo.eraNarrow=T1,uo.eraAbbr=Du,uo.eraYear=mn,uo.year=_i,uo.isLeapYear=ho,uo.weekYear=Rp,uo.isoWeekYear=Sp,uo.quarter=uo.quarters=Ip,uo.month=Zl,uo.daysInMonth=Jl,uo.week=uo.weeks=O0,uo.isoWeek=uo.isoWeeks=R0,uo.weeksInYear=b0,uo.weeksInWeekYear=Tp,uo.isoWeeksInYear=_p,uo.isoWeeksInISOWeekYear=Cp,uo.date=wu,uo.day=uo.days=Pn,uo.weekday=mo,uo.isoWeekday=ps,uo.dayOfYear=x0,uo.hour=uo.hours=ys,uo.minute=uo.minutes=$p,uo.second=uo.seconds=Dp,uo.millisecond=uo.milliseconds=ju,uo.utcOffset=M1,uo.utc=Rn,uo.local=Ln,uo.parseZone=Yn,uo.hasAlignedHourOffset=Zn,uo.isDST=En,uo.isLocal=Dn,uo.isUtcOffset=no,uo.isUtc=io,uo.isUTC=io,uo.zoneAbbr=F0,uo.zoneName=wp,uo.dates=Jt("dates accessor is deprecated. Use date instead.",wu),uo.months=Jt("months accessor is deprecated. Use month instead",Zl),uo.years=Jt("years accessor is deprecated. Use year instead",_i),uo.zone=Jt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",L1),uo.isDSTShifted=Jt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Nn);function Vl(fr){return Oo(fr*1e3)}function jp(){return Oo.apply(null,arguments).parseZone()}function Pu(fr){return fr}var ss=Wt.prototype;ss.calendar=Ht,ss.longDateFormat=br,ss.invalidDate=ur,ss.ordinal=Ar,ss.preparse=Pu,ss.postformat=Pu,ss.relativeTime=Rr,ss.pastFuture=wr,ss.set=$t,ss.eras=yp,ss.erasParse=Mp,ss.erasConvertYear=Ep,ss.erasAbbrRegex=X1,ss.erasNameRegex=u1,ss.erasNarrowRegex=Dl,ss.months=Os,ss.monthsShort=Ds,ss.monthsParse=na,ss.monthsRegex=Al,ss.monthsShortRegex=Ks,ss.week=qs,ss.firstDayOfYear=Rl,ss.firstDayOfWeek=Ns,ss.weekdays=S0,ss.weekdaysMin=_0,ss.weekdaysShort=J0,ss.weekdaysParse=e1,ss.weekdaysRegex=qo,ss.weekdaysShortRegex=Bo,ss.weekdaysMinRegex=ga,ss.isPM=ws,ss.meridiem=r1;function Q1(fr,Sr,Ur,tn){var hn=_n(),$n=At().set(tn,Sr);return hn[Ur]($n,fr)}function Lu(fr,Sr,Ur){if(xt(fr)&&(Sr=fr,fr=void 0),fr=fr||"",Sr!=null)return Q1(fr,Sr,Ur,"month");var tn,hn=[];for(tn=0;tn<12;tn++)hn[tn]=Q1(fr,tn,Ur,"month");return hn}function Z1(fr,Sr,Ur,tn){typeof fr=="boolean"?(xt(Sr)&&(Ur=Sr,Sr=void 0),Sr=Sr||""):(Sr=fr,Ur=Sr,fr=!1,xt(Sr)&&(Ur=Sr,Sr=void 0),Sr=Sr||"");var hn=_n(),$n=fr?hn._week.dow:0,eo,Mo=[];if(Ur!=null)return Q1(Sr,(Ur+$n)%7,tn,"day");for(eo=0;eo<7;eo++)Mo[eo]=Q1(Sr,(eo+$n)%7,tn,"day");return Mo}function qu(fr,Sr){return Lu(fr,Sr,"months")}function Pp(fr,Sr){return Lu(fr,Sr,"monthsShort")}function Lp(fr,Sr,Ur){return Z1(fr,Sr,Ur,"weekdays")}function du(fr,Sr,Ur){return Z1(fr,Sr,Ur,"weekdaysShort")}function z1(fr,Sr,Ur){return Z1(fr,Sr,Ur,"weekdaysMin")}sn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(fr){var Sr=fr%10,Ur=Pr(fr%100/10)===1?"th":Sr===1?"st":Sr===2?"nd":Sr===3?"rd":"th";return fr+Ur}}),nt.lang=Jt("moment.lang is deprecated. Use moment.locale instead.",sn),nt.langData=Jt("moment.langData is deprecated. Use moment.localeData instead.",_n);var Nl=Math.abs;function qp(){var fr=this._data;return this._milliseconds=Nl(this._milliseconds),this._days=Nl(this._days),this._months=Nl(this._months),fr.milliseconds=Nl(fr.milliseconds),fr.seconds=Nl(fr.seconds),fr.minutes=Nl(fr.minutes),fr.hours=Nl(fr.hours),fr.months=Nl(fr.months),fr.years=Nl(fr.years),this}function pu(fr,Sr,Ur,tn){var hn=fo(Sr,Ur);return fr._milliseconds+=tn*hn._milliseconds,fr._days+=tn*hn._days,fr._months+=tn*hn._months,fr._bubble()}function kp(fr,Sr){return pu(this,fr,Sr,1)}function y0(fr,Sr){return pu(this,fr,Sr,-1)}function J1(fr){return fr<0?Math.floor(fr):Math.ceil(fr)}function B0(){var fr=this._milliseconds,Sr=this._days,Ur=this._months,tn=this._data,hn,$n,eo,Mo,No;return fr>=0&&Sr>=0&&Ur>=0||fr<=0&&Sr<=0&&Ur<=0||(fr+=J1(fu(Ur)+Sr)*864e5,Sr=0,Ur=0),tn.milliseconds=fr%1e3,hn=Tr(fr/1e3),tn.seconds=hn%60,$n=Tr(hn/60),tn.minutes=$n%60,eo=Tr($n/60),tn.hours=eo%24,Sr+=Tr(eo/24),No=Tr(yl(Sr)),Ur+=No,Sr-=J1(fu(No)),Mo=Tr(Ur/12),Ur%=12,tn.days=Sr,tn.months=Ur,tn.years=Mo,this}function yl(fr){return fr*4800/146097}function fu(fr){return fr*146097/4800}function ku(fr){if(!this.isValid())return NaN;var Sr,Ur,tn=this._milliseconds;if(fr=Hr(fr),fr==="month"||fr==="quarter"||fr==="year")switch(Sr=this._days+tn/864e5,Ur=this._months+yl(Sr),fr){case"month":return Ur;case"quarter":return Ur/3;case"year":return Ur/12}else switch(Sr=this._days+Math.round(fu(this._months)),fr){case"week":return Sr/7+tn/6048e5;case"day":return Sr+tn/864e5;case"hour":return Sr*24+tn/36e5;case"minute":return Sr*1440+tn/6e4;case"second":return Sr*86400+tn/1e3;case"millisecond":return Math.floor(Sr*864e5)+tn;default:throw new Error("Unknown unit "+fr)}}function i0(fr){return function(){return this.as(fr)}}var d1=i0("ms"),$0=i0("s"),Fu=i0("m"),Fp=i0("h"),eu=i0("d"),Bp=i0("w"),Bu=i0("M"),Fs=i0("Q"),hu=i0("y"),Wu=d1;function o0(){return fo(this)}function mu(fr){return fr=Hr(fr),this.isValid()?this[fr+"s"]():NaN}function s0(fr){return function(){return this.isValid()?this._data[fr]:NaN}}var W0=s0("milliseconds"),Uu=s0("seconds"),Zs=s0("minutes"),gu=s0("hours"),Wp=s0("days"),Up=s0("months"),Hp=s0("years");function bu(){return Tr(this.days()/7)}var M0=Math.round,a0={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Hu(fr,Sr,Ur,tn,hn){return hn.relativeTime(Sr||1,!!Ur,fr,tn)}function Gp(fr,Sr,Ur,tn){var hn=fo(fr).abs(),$n=M0(hn.as("s")),eo=M0(hn.as("m")),Mo=M0(hn.as("h")),No=M0(hn.as("d")),Ko=M0(hn.as("M")),Js=M0(hn.as("w")),l0=M0(hn.as("y")),E0=$n<=Ur.ss&&["s",$n]||$n<Ur.s&&["ss",$n]||eo<=1&&["m"]||eo<Ur.m&&["mm",eo]||Mo<=1&&["h"]||Mo<Ur.h&&["hh",Mo]||No<=1&&["d"]||No<Ur.d&&["dd",No];return Ur.w!=null&&(E0=E0||Js<=1&&["w"]||Js<Ur.w&&["ww",Js]),E0=E0||Ko<=1&&["M"]||Ko<Ur.M&&["MM",Ko]||l0<=1&&["y"]||["yy",l0],E0[2]=Sr,E0[3]=+fr>0,E0[4]=tn,Hu.apply(null,E0)}function Vp(fr){return fr===void 0?M0:typeof fr=="function"?(M0=fr,!0):!1}function I1(fr,Sr){return a0[fr]===void 0?!1:Sr===void 0?a0[fr]:(a0[fr]=Sr,fr==="s"&&(a0.ss=Sr-1),!0)}function Yp(fr,Sr){if(!this.isValid())return this.localeData().invalidDate();var Ur=!1,tn=a0,hn,$n;return typeof fr=="object"&&(Sr=fr,fr=!1),typeof fr=="boolean"&&(Ur=fr),typeof Sr=="object"&&(tn=Object.assign({},a0,Sr),Sr.s!=null&&Sr.ss==null&&(tn.ss=Sr.s-1)),hn=this.localeData(),$n=Gp(this,!Ur,tn,hn),Ur&&($n=hn.pastFuture(+this,$n)),hn.postformat($n)}var xu=Math.abs;function D0(fr){return(fr>0)-(fr<0)||+fr}function $1(){if(!this.isValid())return this.localeData().invalidDate();var fr=xu(this._milliseconds)/1e3,Sr=xu(this._days),Ur=xu(this._months),tn,hn,$n,eo,Mo=this.asSeconds(),No,Ko,Js,l0;return Mo?(tn=Tr(fr/60),hn=Tr(tn/60),fr%=60,tn%=60,$n=Tr(Ur/12),Ur%=12,eo=fr?fr.toFixed(3).replace(/\.?0+$/,""):"",No=Mo<0?"-":"",Ko=D0(this._months)!==D0(Mo)?"-":"",Js=D0(this._days)!==D0(Mo)?"-":"",l0=D0(this._milliseconds)!==D0(Mo)?"-":"",No+"P"+($n?Ko+$n+"Y":"")+(Ur?Ko+Ur+"M":"")+(Sr?Js+Sr+"D":"")+(hn||tn||fr?"T":"")+(hn?l0+hn+"H":"")+(tn?l0+tn+"M":"")+(fr?l0+eo+"S":"")):"P0D"}var ts=Hl.prototype;ts.isValid=n0,ts.abs=qp,ts.add=kp,ts.subtract=y0,ts.as=ku,ts.asMilliseconds=d1,ts.asSeconds=$0,ts.asMinutes=Fu,ts.asHours=Fp,ts.asDays=eu,ts.asWeeks=Bp,ts.asMonths=Bu,ts.asQuarters=Fs,ts.asYears=hu,ts.valueOf=Wu,ts._bubble=B0,ts.clone=o0,ts.get=mu,ts.milliseconds=W0,ts.seconds=Uu,ts.minutes=Zs,ts.hours=gu,ts.days=Wp,ts.weeks=bu,ts.months=Up,ts.years=Hp,ts.humanize=Yp,ts.toISOString=$1,ts.toString=$1,ts.toJSON=$1,ts.locale=v1,ts.localeData=Tu,ts.toIsoString=Jt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$1),ts.lang=H1,or("X",0,0,"unix"),or("x",0,0,"valueOf"),pn("x",_r),pn("X",Cr),nn("X",function(fr,Sr,Ur){Ur._d=new Date(parseFloat(fr)*1e3)}),nn("x",function(fr,Sr,Ur){Ur._d=new Date(Pr(fr))});//! moment.js
return nt.version="2.30.1",lt(Oo),nt.fn=uo,nt.min=au,nt.max=lu,nt.now=j1,nt.utc=At,nt.unix=Vl,nt.months=qu,nt.isDate=Mt,nt.locale=sn,nt.invalid=It,nt.duration=fo,nt.isMoment=Yt,nt.weekdays=Lp,nt.parseZone=jp,nt.localeData=_n,nt.isDuration=Vs,nt.monthsShort=Pp,nt.weekdaysMin=z1,nt.defineLocale=dn,nt.updateLocale=zn,nt.locales=Fn,nt.weekdaysShort=du,nt.normalizeUnits=Hr,nt.relativeTimeRounding=Vp,nt.relativeTimeThreshold=I1,nt.calendarFormat=up,nt.prototype=uo,nt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},nt})}(moment)),moment.exports}(function(et,tt){(function(rt,nt){nt(typeof commonjsRequire=="function"?requireMoment():rt.moment)})(commonjsGlobal$1,function(rt){//! moment.js locale configuration
var nt=rt.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(lt){var ut=lt%10,dt=~~(lt%100/10)===1?"th":ut===1?"st":ut===2?"nd":ut===3?"rd":"th";return lt+dt},week:{dow:1,doy:4}});return nt})})();(function(et,tt){(function(rt,nt){nt(typeof commonjsRequire=="function"?requireMoment():rt.moment)})(commonjsGlobal$1,function(rt){//! moment.js locale configuration
var nt="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),lt="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ut=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],dt=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,pt=rt.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ht,mt){return ht?/-MMM-/.test(mt)?lt[ht.month()]:nt[ht.month()]:nt},monthsRegex:dt,monthsShortRegex:dt,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ut,longMonthsParse:ut,shortMonthsParse:ut,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return pt})})();const PatientId$1=({attributes:et})=>jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{"data-testid":"patient-name-block",variant:"h6",children:et.fullName}),jsxRuntimeExports.jsx(Tooltip,{enterDelay:5e3,arrow:!0,title:et.emrPatientId&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsxs("div",{className:"header-text",children:["EMR ID ",jsxRuntimeExports.jsx("b",{children:et.emrPatientId})]}),jsxRuntimeExports.jsxs("div",{className:"header-text",children:["EMR Instance ",jsxRuntimeExports.jsx("b",{children:et.emrInstance})]})]}),children:jsxRuntimeExports.jsxs("div",{className:"header-text",id:"patient-id-block",children:["Patient ID: ",jsxRuntimeExports.jsx("b",{children:et.ida})]})})]}),EditIcon=styled$1(SvgEdit)`
  fill: ${et=>et.theme.palette.primary.main};
  width: 24px;
  height: 24px;
  margin-left: 4px;
  cursor: ${({$cursor:et})=>et};
`,PSODetailsWrapper=styled$1("div")`
  display: flex;
  flex-direction: ${isUs()?"row-reverse":"row"};
  min-width: 50%;
`,PatientPortalWrapper=styled$1("div")`
  margin-top: -6.5px;
  width: 30%;
  max-width: 254px;
`,PatientPortalHeader=styled$1("div")`
  display: flex;
  flex-direction: row;
`,StyledHeader=styled$1("div")`
  margin-top: 6.5px;
`,PatientPortalStatus=styled$1("div")`
  font-weight: bold;
`,DropdownWrapper=styled$1("div")`
  width: 35%;
`,DropdownHeader=styled$1("div")`
  font-size: 14px;
`,StyledDropDownField=styled$1(DropDownField)`
  width: 80%;
  margin-top: 5px;

  text-overflow: ellipsis;
  padding-right: 32px !important;

  color: ${et=>et.theme.palette.text.primary} !important;
`,DEFAULT_LOCATION_PROFILE=[{id:"",alias:""}],DEFAULT_TAGS_PROFILE=[{id:"",name:""}],logger$9=new Logger("PSOPatientCard"),PSOPatientCard=et=>{var kt,qt,Nt,Yt;const{attributes:tt,loading:rt}=et,[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),pt=(kt=tt.address)!=null&&kt.formattedAddress?(qt=tt.address)==null?void 0:qt.ukFormattedAddress:"-",[ht]=useMutation(SEND_PX_EMAIL_INVITATION),[mt]=useMutation(UPDATE_CENTER_MUTATION),[xt]=useMutation(UPDATE_PATIENT_OPT_IN),[Mt]=useMutation(UPDATE_PATIENT_TAGS),vt=(Kt,Jt)=>{let Qt=null,Bt=null,Ft=null;const $t={id:tt.patientId,pxOptedIn:Jt};Kt.forEach(jt=>{jt.key==="email"?Bt=jt.value:jt.key==="primaryPhone"?Qt=jt.value:jt.key==="pxOptedOutComment"&&(Ft=jt.value)}),Jt?xt({variables:{...$t,email:Bt,primaryPhone:Qt}}).then(jt=>{const Wt=jt.data.updatePatient.patient.email;if(Wt)ht({variables:{recipientEmail:Wt}});else throw new Error(`Error updating Patient ID ${jt.data.updatePatient.patient.id} email address`)}).catch(jt=>{logger$9.error(`Error sending invite: ${jt}`)}):xt({variables:{...$t,pxOptedOutComment:Ft}}),dt(!1),lt(!1)},Ot=()=>jsxRuntimeExports.jsx(apolloDialogOptIn,{patient:tt.selectedPatientOptIn,isOpen:nt,dismissFunction:()=>{ut||lt(!1)},saveFunction:(Kt,Jt)=>{vt(Kt,Jt)},setMutationLoading:()=>dt(!0),patientIda:tt.ida,address:tt.address,dob:tt.dob}),At=Kt=>{const Jt=[];Kt!=="None"&&Jt.push(Kt),Mt({variables:{patientId:tt.patientId,updatedTags:Jt}})},Rt=Kt=>Kt.map(({alias:Jt,...Qt})=>({name:Jt,...Qt})),{data:zt,loading:Tt}=useQuery(GET_LOCATION_PROFILE,{variables:{patientId:tt.patientId},skip:!tt.patientId}),{data:Ct,loading:It}=useQuery(GET_TAG_OPTIONS),Dt={$cursor:tt.hasPatId1?"pointer":"not-allowed"};return jsxRuntimeExports.jsx("div",{className:"patient-detailed-card-wrapper patient-card-wrapper",children:!rt&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"patient-profile-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"photo-widget",children:jsxRuntimeExports.jsx(PhotoWidget,{patientId:tt.patientId,enableOverlay:!0})}),jsxRuntimeExports.jsx("div",{className:"patient-id-wrapper",children:jsxRuntimeExports.jsx(PatientId$1,{attributes:tt})})]}),jsxRuntimeExports.jsxs("div",{className:"patient-address-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"header-text",children:"Address"}),jsxRuntimeExports.jsx("div",{className:"body-text",children:pt})]}),jsxRuntimeExports.jsxs("div",{className:"patient-dob-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"header-text",children:"Date of birth"}),jsxRuntimeExports.jsx("div",{className:"body-text",children:tt.fullAge}),jsxRuntimeExports.jsxs("div",{className:"header-text",children:["Mobile: ",jsxRuntimeExports.jsx("b",{children:tt.mobile})]}),jsxRuntimeExports.jsxs("div",{className:"header-text",children:["Landline: ",jsxRuntimeExports.jsx("b",{children:tt.landline})]})]}),jsxRuntimeExports.jsxs(PSODetailsWrapper,{children:[!isUs()&&jsxRuntimeExports.jsxs(PatientPortalWrapper,{children:[nt&&Ot(),jsxRuntimeExports.jsxs(PatientPortalHeader,{children:[jsxRuntimeExports.jsx(StyledHeader,{children:"Patient portal"}),jsxRuntimeExports.jsx(TooltipWarning,{disabled:tt.hasPatId1,message:"Syncing patient with Mosaiq, please try again soon...",children:jsxRuntimeExports.jsx(EditIcon,{"data-test-id":"patient-portal-sign-up",id:"patient-portal-sign-up",onClick:()=>tt.hasPatId1&&lt(!0),...Dt})})]}),jsxRuntimeExports.jsx(PatientPortalStatus,{"data-test-id":"patient-portal-status",children:tt.pxOptedIn?"Signed up":tt.pxOptedIn==null?"Not signed up":"Opted out"})]}),!Tt&&jsxRuntimeExports.jsxs(DropdownWrapper,{children:[jsxRuntimeExports.jsx(DropdownHeader,{children:"Primary department"}),jsxRuntimeExports.jsx(StyledDropDownField,{disabled:Tt,inputKey:"pso-patient-primary-department",inputName:"pso-patient-primary-department",placeholder:"Please select",defaultValue:(Nt=tt.horizonCenterId)==null?void 0:Nt.toString(),options:Rt(zt&&zt.locationsPsoSystem||DEFAULT_LOCATION_PROFILE),onChange:Kt=>{mt({variables:{id:tt.patientId,horizonCenterId:Kt.target.value}})}})]}),!isUs()&&!It&&jsxRuntimeExports.jsxs(DropdownWrapper,{children:[jsxRuntimeExports.jsx(DropdownHeader,{children:"Tag"}),jsxRuntimeExports.jsx(StyledDropDownField,{disabled:It,inputKey:"pso-patient-tag",inputName:"pso-patient-tag",placeholder:"None",enabledPlaceholder:!0,defaultValue:(Yt=tt.tags[0])==null?void 0:Yt.tag.id,options:Ct&&Ct.tagOptions||DEFAULT_TAGS_PROFILE,onChange:Kt=>At(Kt.target.value)})]})]})]})})},AlertCard=et=>{const{index:tt,info:rt}=et;return jsxRuntimeExports.jsxs("div",{className:"ro-patient-alert-card",children:[jsxRuntimeExports.jsxs("div",{className:"title",children:[tt,". ",rt.name]}),jsxRuntimeExports.jsxs("div",{className:"second-line",children:[jsxRuntimeExports.jsxs("div",{className:"status",children:["Status: ",jsxRuntimeExports.jsx("strong",{children:rt.status})]}),"|"," ",jsxRuntimeExports.jsxs("div",{className:"assigned",children:["Assigned: ",jsxRuntimeExports.jsx("strong",{children:rt.assigned&&hooks.utc(rt.assigned).format("L")})]})]}),jsxRuntimeExports.jsxs("div",{className:"comment",children:["Notes: ",jsxRuntimeExports.jsx("strong",{children:rt.comment})]})]})},AllergyCard=et=>{const{index:tt,info:rt}=et;return jsxRuntimeExports.jsxs("div",{className:"ro-patient-allergy-card",children:[jsxRuntimeExports.jsxs("div",{className:"title",children:[tt,". ",rt.name]}),jsxRuntimeExports.jsx("div",{className:"second-line",children:jsxRuntimeExports.jsxs("div",{className:"severity",children:["Severity: ",jsxRuntimeExports.jsx("strong",{children:rt.severity})]})}),jsxRuntimeExports.jsxs("div",{className:"comment",children:["Notes: ",jsxRuntimeExports.jsx("strong",{children:rt.reaction})]})]})},DiagnosisCard=et=>{const{index:tt,info:rt}=et;return rt.diagnosisCode&&jsxRuntimeExports.jsxs("div",{className:"ro-patient-diagnosis-card",children:[jsxRuntimeExports.jsxs("div",{className:"title",children:[tt,". ",rt.diagnosisCode.diagnosisCode," ",rt.isPrimaryDiagnosis?"Primary":"Metastasis"]}),jsxRuntimeExports.jsx("div",{className:"second-line",children:jsxRuntimeExports.jsx("div",{className:"diagnosis",children:`${rt.diagnosisCode.tumourStream.name} - ${rt.diagnosisCode.diagnosisDescription}`})})]})},ROPatientCard=et=>{const{attributes:tt,moreDetailsClickHandler:rt,showMoreDetails:nt}=et,{allergy:lt,carepathPatientDiagnosis:ut}=tt,{setPatientAlerts:dt}=reactExports.useContext(ROPatientContext),pt=tt.address?tt.address.ukFormattedAddress:"-",ht=useTheme$1(),mt={bubbleColor:ht.palette.grey[600],bubbleText:"N"},xt={bubbleColor:ht.palette.warning.dark,bubbleText:"?"},Mt=lt==null?void 0:lt.filter(Ct=>Ct.status==="Active"),vt=Mt==null?void 0:Mt.some(Ct=>Ct.name&&["no known drug allergies","no known allergies"].includes(Ct.name.toLowerCase())),At=(Ct=>Ct&&Ct.length===0?xt:vt?mt:{bubbleColor:ht.palette.error.main,bubbleText:Ct==null?void 0:Ct.length})(Mt),{data:Rt}=useQuery(GET_ALERTS,{variables:{patientId:tt.patientId},onCompleted:Ct=>dt(Ct==null?void 0:Ct.alerts)}),zt=Rt==null?void 0:Rt.alerts,Tt=ut.filter(Ct=>Ct.isMostRecent&&Ct.emrDiagnosisKey!==null);return jsxRuntimeExports.jsxs("div",{className:"patient-detailed-card-wrapper patient-card-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"patient-profile-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"photo-widget",children:jsxRuntimeExports.jsx(PhotoWidget,{patientId:tt.patientId,enableOverlay:!0})}),jsxRuntimeExports.jsxs("div",{className:"patient-id-wrapper",children:[jsxRuntimeExports.jsx(PatientId$1,{attributes:tt}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",children:["EMR: ",tt.emrInstance]}),jsxRuntimeExports.jsxs("span",{role:"presentation",onClick:()=>{rt&&rt()},className:"more-details-button","data-testid":"more-details-button",children:[nt?"Hide":"Show"," details & appts"]})]})]}),jsxRuntimeExports.jsxs("div",{className:"patient-address-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"header-text",children:"Address"}),jsxRuntimeExports.jsx("div",{className:"body-text",children:jsxRuntimeExports.jsx("b",{children:pt})})]}),jsxRuntimeExports.jsxs("div",{className:"patient-dob-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"header-text",children:"Date of birth"}),jsxRuntimeExports.jsx("div",{className:"body-text",children:jsxRuntimeExports.jsx("b",{children:tt.fullAge})}),jsxRuntimeExports.jsxs("div",{className:"header-text",children:["Mobile: ",jsxRuntimeExports.jsx("b",{children:tt.mobile})]}),jsxRuntimeExports.jsxs("div",{className:"header-text",children:["Landline: ",jsxRuntimeExports.jsx("b",{children:tt.landline})]})]}),jsxRuntimeExports.jsx("div",{className:"ro-patient-card-vertical-bar"}),jsxRuntimeExports.jsx("div",{className:"ro-patient-diagnosis-top-bar-block",children:!nt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"ro-patient-round-block",children:[jsxRuntimeExports.jsxs("div",{className:"ro-patient-card-header",children:["Diagnosis"," ",Tt&&Tt.length?jsxRuntimeExports.jsx(Badge$1,{$bgColor:ht.palette.grey[600],children:Tt.length}):""]}),jsxRuntimeExports.jsx("div",{className:"ro-patient-card-core",children:Tt&&Tt.length?Tt.map((Ct,It)=>jsxRuntimeExports.jsx(DiagnosisCard,{index:It+1,info:Ct},Ct.diagnosisCode.diagnosisCode)):"No diagnoses available"})]}),jsxRuntimeExports.jsxs("div",{className:"ro-patient-round-block",children:[jsxRuntimeExports.jsxs("div",{className:"ro-patient-card-header",children:["Allergies ",jsxRuntimeExports.jsx(Badge$1,{$bgColor:At.bubbleColor,children:At.bubbleText})]}),jsxRuntimeExports.jsx("div",{className:"ro-patient-card-core",children:Mt&&Mt.length?Mt.map((Ct,It)=>jsxRuntimeExports.jsx(AllergyCard,{index:It+1,info:Ct},Ct.name)):"No allergies available"})]}),jsxRuntimeExports.jsxs("div",{className:"ro-patient-round-block",children:[jsxRuntimeExports.jsxs("div",{className:"ro-patient-card-header",children:["Alerts"," ",zt&&zt.length?jsxRuntimeExports.jsx(Badge$1,{$bgColor:ht.palette.error.main,children:zt.length}):jsxRuntimeExports.jsx(Badge$1,{$bgColor:ht.palette.warning.dark,children:"?"})]}),jsxRuntimeExports.jsx("div",{className:"ro-patient-card-core",children:zt&&zt.length?zt.map((Ct,It)=>jsxRuntimeExports.jsx(AlertCard,{index:It+1,info:Ct},`${Ct.name}-${It}`)):"No alerts available"})]})]})})]})},PatientCardWrapper=styled$1("div")`
  box-shadow: 0px 1px 1px rgb(0 0 0 / 20%);
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;

  padding: 16px;
`,NameAvatarContainer=styled$1("div")`
  display: flex;
  min-width: 30%;
  max-width: 40%;
  margin-right: 16px;
`,NameInfoContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  margin-left: 16px;
`,PatientName=styled$1("div")`
  font-weight: bold;
  font-size: 18px;
  line-height: 28px;
  color: ${et=>et.theme.palette.primary.dark};
`,BirthIdContainer=styled$1("div")`
  display: flex;
  font-size: 14px;
  line-height: 20px;
`,PatientId=styled$1("div")`
  margin-right: 16px;
`,PatientDOB=styled$1("div")``,MoreDetails=styled$1("div")`
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  color: ${et=>et.theme.palette.info.main};
  text-decoration: underline;
`,InfoBlockContainer=styled$1("div")`
  display: flex;
  flex-direction: column;
  line-height: 20px;
  font-size: 14px;
  max-width: 20%;
  margin-right: 16px;
`,SimplifiedPatientCard=et=>{const{attributes:tt,moreDetailsClickHandler:rt,showMoreDetails:nt}=et,lt=tt.address?tt.address.ukFormattedAddress:"-",{patientDetails:ut}=reactExports.useContext(ROPatientContext),dt=(ut==null?void 0:ut.allReferrers)||[],pt=Ot=>dt.filter(At=>At.relationshipType===Ot),ht=pt("oncologist")[0],mt=pt("generalPractitioner")[0],xt=pt("referringSurgeon"),Mt=[];ht&&Mt.push(`${ht.practitioner.firstName} ${ht.practitioner.lastName} (Responsible)`),mt&&Mt.push(`${mt.practitioner.firstName} ${mt.practitioner.lastName} (GP)`),xt.length&&xt.forEach(Ot=>Mt.push(`${Ot.practitioner.firstName} ${Ot.practitioner.lastName}`));const vt=hooks(ut==null?void 0:ut.dob).format("DD MMM YYYY");return jsxRuntimeExports.jsxs(PatientCardWrapper,{children:[jsxRuntimeExports.jsxs(NameAvatarContainer,{children:[jsxRuntimeExports.jsx(PhotoWidget,{patientId:tt.patientId,enableOverlay:!0}),jsxRuntimeExports.jsxs(NameInfoContainer,{children:[jsxRuntimeExports.jsx(PatientName,{children:tt.fullName}),jsxRuntimeExports.jsxs(BirthIdContainer,{children:[jsxRuntimeExports.jsxs(PatientId,{children:["Patient ID ",jsxRuntimeExports.jsx("b",{children:tt.ida})]}),jsxRuntimeExports.jsxs(PatientDOB,{children:["DOB ",jsxRuntimeExports.jsx("b",{children:vt})]})]}),jsxRuntimeExports.jsxs(MoreDetails,{role:"presentation",onClick:()=>{rt&&rt()},className:"more-details-button","data-testid":"more-details-button",children:[nt?"Hide":"Show"," details & appts"]})]})]}),jsxRuntimeExports.jsxs(InfoBlockContainer,{children:[jsxRuntimeExports.jsx("div",{children:"Address"}),jsxRuntimeExports.jsx("b",{children:lt})]}),jsxRuntimeExports.jsxs(InfoBlockContainer,{children:[jsxRuntimeExports.jsx("div",{children:"Contact"}),jsxRuntimeExports.jsxs("b",{children:["M: ",tt.mobile]}),jsxRuntimeExports.jsxs("b",{children:["L: ",tt.landline]})]}),jsxRuntimeExports.jsxs(InfoBlockContainer,{children:[jsxRuntimeExports.jsx("div",{children:"Treating Physicians"}),(Mt==null?void 0:Mt.length)>0&&Mt.map((Ot,At)=>At<=1?jsxRuntimeExports.jsx("b",{children:Ot}):null),(Mt==null?void 0:Mt.length)>2&&jsxRuntimeExports.jsx("div",{role:"presentation",onClick:()=>{rt&&rt()},children:jsxRuntimeExports.jsx("b",{children:"..."})}),Mt.length===0&&jsxRuntimeExports.jsx("div",{children:"-"})]}),jsxRuntimeExports.jsx("div",{className:"ro-patient-card-vertical-bar"})]})},DEFAULT_PROFILE={firstName:"",middleName:"",lastName:"",fullName:"",ida:"",gpFullName:"",dob:"",patientGender:"",address:{line1:"",line2:"",city:"",state:"",country:"",postcode:"",formattedAddress:"",ukFormattedAddress:""},allergy:[],carepathPatientDiagnosis:[],healthMedicareNumber:"",healthMedicareIrn:"",medicareExpiryRawYear:"",medicareExpiryRawMonth:"",secondaryPhone:"",primaryPhone:"",patientState:"",pxOptedIn:"",horizonCenterId:"",email:"",pxOptOutComment:"",tags:[],emrPatientId:"",emrInstance:"",userProfile:{hasPatId1:!0}},roleComponentMap={ro:ROPatientCard,nurse:PSOPatientCard,roSimplified:SimplifiedPatientCard,pso:PSOPatientCard},renderDetailedCard=et=>{const{patientCardView:tt}=et;if(et.primaryRole){const rt=roleComponentMap[tt||et.primaryRole];return jsxRuntimeExports.jsx(rt,{...et})}return jsxRuntimeExports.jsx(reactExports.Fragment,{})},SimpleCard=({attributes:et})=>{var rt;const tt=((rt=et==null?void 0:et.address)==null?void 0:rt.ukFormattedAddress)||"-";return jsxRuntimeExports.jsxs("div",{className:"patient-card-wrapper patient-card-wrapper--simple",children:[jsxRuntimeExports.jsxs(Stack$5,{className:"patient-avatar-wrapper",direction:"row",alignItems:"center",children:[jsxRuntimeExports.jsx("div",{className:"photo-widget simple",children:jsxRuntimeExports.jsx(PhotoWidget,{url:et.photoUrl,patientId:et.patientId,enableOverlay:!0,size:"sm"})}),jsxRuntimeExports.jsx(Typography,{"data-testid":"patient-name-block",variant:"subtitle1",children:et.fullName})]}),jsxRuntimeExports.jsxs("div",{className:"patient-id-wrapper simple",children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",children:"EMR"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:et.emrInstance})]}),jsxRuntimeExports.jsxs("div",{className:"patient-id-wrapper simple",children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"header-text",children:"Patient ID"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:et.ida})]}),jsxRuntimeExports.jsxs("div",{className:"patient-dob-wrapper simple",children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"header-text",children:"Date of birth"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:et.fullAge})]}),jsxRuntimeExports.jsxs("div",{className:"patient-address-wrapper simple",children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",className:"header-text",children:"Address"}),jsxRuntimeExports.jsx(Typography,{variant:"body2",children:tt})]})]})},PatientCard=et=>{var Tt,Ct;const{id:tt,simple:rt=!0,patientCardView:nt}=et,{setPatientDetails:lt}=reactExports.useContext(ROPatientContext),{setError:ut}=useErrorModalContext(),{state:dt}=reactExports.useContext(UserContext),{data:pt,loading:ht,error:mt,refetch:xt}=useQuery(GET_PATIENT_PROFILE,{variables:{patientId:tt},onCompleted:It=>{lt(It==null?void 0:It.patient)}});if(useInterval(()=>{xt()},(Ct=(Tt=pt==null?void 0:pt.patient)==null?void 0:Tt.userProfile)!=null&&Ct.hasPatId1?null:PAT_ID_1_REFRESH_TIME),reactExports.useEffect(()=>{if(mt)return ut()},[mt]),!tt)return jsxRuntimeExports.jsx(reactExports.Fragment,{});const Mt={id:tt,roPatient:(pt==null?void 0:pt.patient)||DEFAULT_PROFILE},vt=Mt.roPatient.dob?hooks(Mt.roPatient.dob).format(`${isUs()?"MMM Do":"Do MMM"} YYYY`):"-",Ot=Mt.roPatient.dob?calculateMomentAge(hooks(Mt.roPatient.dob)):"-",At={};At.dob=Mt.roPatient.dob,At.emrInstance=Mt.roPatient.emrInstance,At.fullAge=vt!=="-"?`${vt} (Age ${Ot})`:vt,At.address=Mt.roPatient.address;const Rt=[Mt.roPatient.firstName,Mt.roPatient.middleName,Mt.roPatient.lastName,genderTitle(Mt.roPatient.patientGender)].filter(Boolean).map(It=>It.trim()).filter(Boolean).join(" ");At.fullName=Rt!==""?Rt:"Name not provided",At.ida=Mt.roPatient.ida&&Mt.roPatient.ida.replace(/ /g,"")!==""?Mt.roPatient.ida:"-",At.allergy=Mt.roPatient.allergy,At.carepathPatientDiagnosis=Mt.roPatient.carepathPatientDiagnosis.filter(It=>It.emrDiagnosisKey!==null),At.photoUrl=isDemo?patientGenderStockImage(Mt.roPatient.patientGender):null,At.patientId=tt,At.mobile=Mt.roPatient.primaryPhone||"-",At.landline=Mt.roPatient.secondaryPhone||"-",At.pxOptedIn=Mt.roPatient.pxOptedIn,At.horizonCenterId=Mt.roPatient.horizonCenterId,At.tags=Mt.roPatient.tags,At.selectedPatientOptIn={id:tt,firstName:Mt.roPatient.firstName,lastName:Mt.roPatient.lastName,pxOptedIn:Mt.roPatient.pxOptedIn,primaryPhone:Mt.roPatient.primaryPhone,email:Mt.roPatient.email,pxOptOutComment:Mt.roPatient.pxOptOutComment,emrInstance:Mt.roPatient.emrInstance},At.emrPatientId=Mt.roPatient.emrPatientId,At.emrInstance=Mt.roPatient.emrInstance,At.hasPatId1=Mt.roPatient.userProfile.hasPatId1;const zt={id:et.id,moreDetailsClickHandler:et.moreDetailsClickHandler,showMoreDetails:et.showMoreDetails,primaryRole:dt.primaryRole,attributes:At,loading:ht,patientCardView:nt};return rt?jsxRuntimeExports.jsx(SimpleCard,{attributes:At}):renderDetailedCard(zt)},Link=styled$1("div")`
  display: flex;
  height: 41px;
  margin: 8px;
  align-items: center;
  gap: 17px;
  padding: 12px;
  border-radius: 4px;
  border-color: ${et=>et.theme.palette.primary.main};
  background-color: ${et=>et.theme.palette.primary.main};
  color: ${et=>et.theme.palette.primary.contrastText};
  text-warp: no-wrap;

  & svg {
    fill: ${et=>et.theme.palette.primary.contrastText};
  }
`,SidePanelLink=et=>{const tt=useTheme$3();return jsxRuntimeExports.jsxs(Link,{active:et.active,children:[et.logo,jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{color:et.active?tt.palette.primary.contrastText:tt.palette.text.primary,textWrap:"nowrap"},children:et.name})]})},Panel=styled$1("div")`
  width: 240px;
  padding-top: 70px;
`,SidePanel=()=>jsxRuntimeExports.jsx(Panel,{children:jsxRuntimeExports.jsx(SidePanelLink,{active:!0,name:"Patient summary",logo:jsxRuntimeExports.jsx(SvgSummary,{})})}),getDrugName=({doseIsCalculated:et,doseBasis:tt,minimumDose:rt,doseUnit:nt,route:lt,genericName:ut,prn:dt})=>{const pt=`${et?tt:rt} ${nt}`;return(dt?"PRN: ":"")+`${ut} ${lt} ${pt}`},isNewSupportingDrugApplicable=(et,tt)=>!!(tt&&(tt.cycleId!==null&&tt.applyTo==="careplan"&&et>=tt.cycleId||tt.applyTo==="cycle"&&et===tt.cycleId)),getCycleStatus=(et,tt)=>{const rt=isNewSupportingDrugApplicable(et==null?void 0:et.cycleId,tt);return et==null?"":!rt&&et.approvedAt&&et.downloadedAt&&et.printedAt?"printed":!rt&&et.approvedAt?"approved":rt&&et.approvedAt||et.version>0?"unapproved":""},isPractitionerAllowedToApprove=(et,tt,rt)=>{const nt=tt.some(lt=>lt.approvedAt!==null||lt.version!==0);return!!(!et.isRegistrar||rt.startingCycle>0||nt)},MO_ADDITIONAL_INFO_QUERY=gql`
  query moAdditionalInfo($careplanId: ID!) {
    moCareplanAdditionalInfo(careplanId: $careplanId) {
      id
      protocolId
      startingCycle
      numberOfCycles
      daysPerCycle
      continuous
      latestComment
      cycleSchedule {
        seq
        days {
          day
          date
          breakDays
          moveDays
          hidden
        }
      }
    }
  }
`,PRESCRIPTION_DATA_QUERY=gql`
  query moCareplanData($careplanId: ID!) {
    careplan(id: $careplanId) {
      id
      careplanName
    }
    moTreatmentInfo(careplanId: $careplanId) {
      id
      readyForCareDate
    }
    moCareplanDoses(careplanId: $careplanId) {
      id
      cycle
      day
      drugOrder {
        id
        drugOrderBaseId
        drugOrderVersion
        instructions
      }
      order
      doseValue
      prescribedDose
      doseAdjustment {
        id
        drugOrder {
          id
          drugOrderBaseId
          drugOrderVersion
          instructions
        }
        dosePercentage
        reasonForChange
        applyTo
        cycle
        day
        isDoseDeleted
        instructions
      }
      previousDoseAdjustment {
        id
        dosePercentage
        instructions
      }
      startVersion
    }
    moCareplanDrugOrders(careplanId: $careplanId) {
      id
      name
      base
      version
      doseBasis
      doseUnit
      minimumDose
      maximumDose
      doseIsCalculated
      doseCalculatedUnits
      doseCalculatedBy
      administrationInstructions
      patientInstructions
      type
      drugCategory
      roundToNearest
      genericName
      route
      prescribedDosePrecision
      solution
      prn
    }
  }
`,CAREPLAN_CYCLES_QUERY=gql`
  query latestCycles($careplanId: ID!) {
    latestCycles(careplanId: $careplanId) {
      id
      cycleId
      version
      approvedAt
      downloadedAt
      printedAt
      treatmentStartDate
      treatmentEndDate
    }
  }
`,SAVE_COMMENTS=gql`
  mutation updatePrescriptionComments($careplanId: ID!, $comments: String!) {
    updatePrescriptionComments(careplanId: $careplanId, comments: $comments) {
      moCareplanAdditionalInfo {
        id
        protocolId
        numberOfCycles
        daysPerCycle
        continuous
        latestComment
      }
    }
  }
`,UPDATE_DOSE_ADJUSTMENT=gql`
  mutation updateDoseAdjustment(
    $drugOrderId: ID!
    $prescribedDoseValue: String
    $dosePercentage: Float
    $reasonForChange: String
    $applyTo: String
    $day: Int
    $cycle: Int
    $instructions: String
  ) {
    updateMoDoseAdjustment(
      drugOrderId: $drugOrderId
      prescribedDoseValue: $prescribedDoseValue
      dosePercentage: $dosePercentage
      reasonForChange: $reasonForChange
      applyTo: $applyTo
      day: $day
      cycle: $cycle
      instructions: $instructions
    ) {
      success
    }
  }
`,ADD_DRUG_ORDER=gql`
  mutation addMoDrugOrder(
    $careplanId: ID!
    $drugOrderBaseId: ID!
    $drugOrderVersion: Int!
    $days: [Int]
    $cycle: Int
    $applyTo: String
    $order: Int
    $instructions: String
  ) {
    addMoDrugOrder(
      careplanId: $careplanId
      drugOrderBaseId: $drugOrderBaseId
      drugOrderVersion: $drugOrderVersion
      days: $days
      cycle: $cycle
      applyTo: $applyTo
      order: $order
      instructions: $instructions
    ) {
      success
    }
  }
`,DELETE_DRUG_ORDER=gql`
  mutation deleteDrugOrder($careplanId: ID!, $drugOrderId: ID, $day: Int, $cycle: Int) {
    deleteMoDrugOrder(careplanId: $careplanId, drugOrderId: $drugOrderId, day: $day, cycle: $cycle) {
      success
    }
  }
`,ADD_CYCLES_TO_PROTOCOL=gql`
  mutation addCyclesToProtocol($careplanId: ID!, $numberOfCycles: Int) {
    addCyclesToProtocol(careplanId: $careplanId, numberOfCycles: $numberOfCycles) {
      success
    }
  }
`;var CareplanCycleAction=(et=>(et.APPROVE="APPROVE",et.DOWNLOAD="DOWNLOAD",et.PRINT="PRINT",et))(CareplanCycleAction||{});const UPDATE_CAREPLAN_CYCLE=gql`
  mutation updateCareplanCycle($careplanId: ID!, $cycleId: Int, $action: CareplanCycleAction!) {
    updateCareplanCycle(careplanId: $careplanId, cycleId: $cycleId, action: $action) {
      updated {
        id
        cycleId
        version
        approvedAt
        downloadedAt
        printedAt
      }
    }
  }
`,ADD_CYCLE_BREAK_PERIOD=gql`
  mutation addCycleBreakPeriod($careplanId: ID!, $cycle: Int, $day: Int, $newDate: String, $propagate: Boolean) {
    addCycleBreakPeriod(careplanId: $careplanId, cycle: $cycle, day: $day, newDate: $newDate, propagate: $propagate) {
      success
    }
  }
`,DownloadCyclePdf=(et,tt,rt,nt,lt,ut)=>{(async()=>(await axios.get(`/mo_portal/careplan/${et}/${tt}/prescription.pdf`,{responseType:"arraybuffer"})).data)().then(pt=>{const ht=new Blob([pt],{type:"application/pdf"}),mt=window.URL.createObjectURL(ht),xt=document.createElement("a");xt.href=mt,xt.download=`${nt}_${ut}_${lt}_cycle${tt+1}_v${rt}.pdf`,xt.click()})},PrintCyclePdf=(et,tt)=>{(async()=>(await axios.get(`/mo_portal/careplan/${et}/${tt}/prescription.pdf`,{responseType:"arraybuffer"})).data)().then(nt=>{var pt,ht;const lt=new Blob([nt],{type:"application/pdf"}),ut=window.URL.createObjectURL(lt),dt=document.createElement("iframe");dt.setAttribute("data-cy",`cycle-print-${tt}`),dt.style.display="none",dt.src=ut,document.body.appendChild(dt),(pt=dt.contentWindow)==null||pt.focus(),(ht=dt.contentWindow)==null||ht.print()})},useCyclePdf=()=>{const et=useRouteMatch(),{careplanId:tt}=et.params,{state:rt}=reactExports.useContext(UserContext),{patientDetails:nt}=reactExports.useContext(ROPatientContext),[lt]=useMutation(UPDATE_CAREPLAN_CYCLE,{refetchQueries:["latestCycles"]}),ut=reactExports.useCallback(pt=>{lt({variables:{careplanId:tt,cycleId:pt,action:CareplanCycleAction.DOWNLOAD}}).then(ht=>{const mt=hooks(ht.data.updateCareplanCycle.updated.approvedDate).tz(rt.timezone).format("L");DownloadCyclePdf(parseInt(tt),pt,ht.data.updateCareplanCycle.updated.version+1,mt,nt.firstName,nt.lastName)})},[tt,nt]),dt=reactExports.useCallback(pt=>{lt({variables:{careplanId:tt,cycleId:pt,action:CareplanCycleAction.PRINT}}).then(()=>{PrintCyclePdf(parseInt(tt),pt)})},[tt,nt]);return[ut,dt]};var BannerType$1=(et=>(et[et.WARNING=0]="WARNING",et[et.APPROVED=1]="APPROVED",et[et.UNAPPROVED=3]="UNAPPROVED",et[et.EMPTY=2]="EMPTY",et))(BannerType$1||{});const BannerLayout=styled$1("div")`
  display: flex;
  padding: 0.8rem;
  justify-content: start;
  column-gap: 0.7rem;
  align-items: center;
  background-color: ${et=>et.color};
  border-left: 3px solid;
  border-color: ${et=>et.$borderColor};
`,Banner$1=et=>{const tt=rt=>{switch(rt){case 1:return jsxRuntimeExports.jsx(SvgSuccessWhiteBorder,{width:"20px",height:"20px"});case 0:return jsxRuntimeExports.jsx(SvgInfoCircleBlueWhiteBorderIcon,{width:"20px",height:"20px"});case 3:return jsxRuntimeExports.jsx(SvgWarning,{width:"20px",height:"20px"});default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}};return jsxRuntimeExports.jsxs(BannerLayout,{color:et.color,...et,children:[tt(et.type),et.children]})},PDFLinksLayout=styled$1("div")`
  display: flex;
  margin-left: auto;
  column-gap: 0.7rem;
  padding-right: 30px;
`,PDFLink=styled$1("div")`
  text-decoration: underline;
  cursor: pointer;
`,CycleNotPrintedBanner=({approvedDate:et,savePdfCallback:tt,printPdfCallback:rt,showSavePdfLink:nt,showPrintPdfLink:lt})=>{const ut=useTheme$1();return jsxRuntimeExports.jsxs(Banner$1,{type:0,color:ut.palette.warning.light,$borderColor:ut.palette.warning.main,"data-cy":"banner-cycle-not-printed",children:[jsxRuntimeExports.jsxs("div",{children:["This cycle was approved on ",et,". Please save and print the PDF."]}),jsxRuntimeExports.jsxs(PDFLinksLayout,{children:[nt&&jsxRuntimeExports.jsx(PDFLink,{"data-cy":"banner-cycle-save-pdf",onClick:tt,children:"Save PDF"}),lt&&jsxRuntimeExports.jsx(PDFLink,{"data-cy":"banner-cycle-print-pdf",onClick:rt,children:"Print PDF"})]})]})},CycleApprovedBanner=({approvedDate:et})=>{const tt=useTheme$1();return jsxRuntimeExports.jsxs(Banner$1,{type:1,color:tt.palette.grey[100],$borderColor:tt.palette.primary.main,"data-cy":"banner-cycle-approved",children:["This cycle was approved on ",et,"."]})},CycleUnApprovedBanner=()=>{const et=useTheme$1();return jsxRuntimeExports.jsx(Banner$1,{type:3,color:et.palette.warning.light,$borderColor:et.palette.warning.main,"data-cy":"banner-cycle-unapproved",children:"This cycle has been amended and needs to be approved."})},EmptyBanner=styled$1(Banner$1)`
  min-height: 46px;
  border-left: none;
`,CycleBanner=({cycleInfo:et,supportingDrugOrder:tt})=>{const{state:rt}=reactExports.useContext(UserContext),[nt,lt]=useCyclePdf(),ut=isNewSupportingDrugApplicable(et==null?void 0:et.cycleId,tt);return!et||et.approvedAt===null&&et.version===0||!rt?jsxRuntimeExports.jsx(EmptyBanner,{type:2}):ut||et&&et.approvedAt===null&&et.version!==0?jsxRuntimeExports.jsx(CycleUnApprovedBanner,{}):et&&et.approvedAt&&(et!=null&&et.downloadedAt)&&et.printedAt?jsxRuntimeExports.jsx(CycleApprovedBanner,{approvedDate:hooks(et.approvedAt).tz(rt.timezone).format("L hh:mmA")}):et&&et.approvedAt?jsxRuntimeExports.jsx(CycleNotPrintedBanner,{savePdfCallback:()=>nt(et.cycleId),printPdfCallback:()=>lt(et.cycleId),approvedDate:hooks(et.approvedAt).tz(rt.timezone).format("L hh:mmA"),showPrintPdfLink:!(et!=null&&et.printedAt),showSavePdfLink:!(et!=null&&et.downloadedAt)}):jsxRuntimeExports.jsx(EmptyBanner,{type:2})},PatientBanner=()=>{var dt;const et=useTheme$1(),{patientDetails:tt}=reactExports.useContext(ROPatientContext),rt=(tt==null?void 0:tt.patientGender)==="Other"||(tt==null?void 0:tt.patientGender)==="",nt=(tt==null?void 0:tt.dob)===""||(tt==null?void 0:tt.dob)===null,lt=(tt==null?void 0:tt.address)===null||[null,""].includes((dt=tt==null?void 0:tt.address)==null?void 0:dt.line1);if(!(rt||nt||lt))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ut=[];return rt&&ut.push("Patient sex"),nt&&ut.push("Date of birth"),lt&&ut.push("Address"),jsxRuntimeExports.jsx(Banner$1,{type:BannerType$1.UNAPPROVED,color:et.palette.warning.light,$borderColor:et.palette.warning.main,children:jsxRuntimeExports.jsxs("div",{"data-cy":"missing-patient-info",children:["Missing ",ut.join(),". Please add these in ZedMed before creating a careplan."]})})},GET_PATIENT_INFO$1=gql`
  query patient($id: ID!) {
    patient(id: $id) {
      id
    }
  }
`,StyledSidePatientNav=styled$1(SidePanel)`
  max-width: 240px;
  width: 240px;
  height: 100vh;
  background: ${et=>et.theme.palette.grey[100]};
`,RootDiv=styled$1("div")`
  display: flex;
`,PatientSummary=()=>{const et=useRouteMatch(),{id:tt}=et.params,rt=useTheme$1();return useQuery(GET_PATIENT_INFO$1,{variables:{id:tt},skip:!tt}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsxs(RootDiv,{id:"patient-summary-primary",children:[jsxRuntimeExports.jsx(Drawer,{variant:"permanent",style:{width:240,flexShrink:0},anchor:"left",children:jsxRuntimeExports.jsx(StyledSidePatientNav,{})}),jsxRuntimeExports.jsx(Grid,{container:!0,item:!0,xs:12,md:12,style:{backgroundColor:rt.palette.grey[100],width:"calc(100vw - 240px)"},children:jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,md:12,children:[jsxRuntimeExports.jsx("div",{style:{backgroundColor:"white"},children:jsxRuntimeExports.jsx(PatientCard,{id:tt})}),jsxRuntimeExports.jsx(PatientBanner,{}),jsxRuntimeExports.jsx("div",{style:{height:"calc(100vh - 50px)",display:"flex"},children:jsxRuntimeExports.jsx(PatientCareplans,{id:tt})})]})})]})})})},AutoSave=({saveMethod:et=rt=>{},debounceMs:tt=1e3})=>{const rt=reactExports.useRef(),nt=useFormikContext(),lt=reactExports.useCallback(lodash.debounce(ut=>et(ut),tt),[et,tt]);return reactExports.useEffect(()=>{rt.current||(rt.current=nt.values),lodash.isEqual(rt.current,nt.values)||(lt(nt.values),rt.current=nt.values)},[lt,nt.values]),reactExports.useEffect(()=>()=>{lt.flush()},[lt]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},TreatmentInfoForm=et=>{const{values:tt,touched:rt,errors:nt,setFieldValue:lt,setFieldTouched:ut,handleSubmit:dt}=et;return jsxRuntimeExports.jsx("div",{className:"main-container-parent-wrapper",children:jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsxs("div",{className:"page-header",children:[jsxRuntimeExports.jsx("h1",{children:"Treatment Information"}),jsxRuntimeExports.jsx("div",{children:"Please enter treatment information"})]}),jsxRuntimeExports.jsx(RODatePicker,{id:"readyForCareDate",fieldlabel:"Ready for Care Date",required:!0,error:!!(rt.readyForCareDate&&(nt!=null&&nt.readyForCareDate)),value:tt.readyForCareDate?dayjs(tt.readyForCareDate):null,onChange:async(pt,ht)=>{if(ht.validationError)return;const mt=pt?pt.format("YYYY-MM-DD").toString():"";await lt("readyForCareDate",mt,!0),ut("readyForCareDate")}}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"intent",fieldlabel:"Intent",options:et.intentOptions,value:tt.intent,required:!0,inputProps:{helperText:"Please select intent"},onChange:pt=>{lt("intent",pt,!0),ut("intent")}}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatingDepartment",fieldlabel:"Treating Department",options:et.treatingDepartmentOptions,value:tt.treatingDepartment,required:!0,inputProps:{helperText:"Please select treating department"},onChange:pt=>{lt("treatingDepartment",pt,!0),ut("treatingDepartment")}}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"patientAlleries",fieldlabel:"Patient Allergies",required:!0,value:tt.patientAllergies,options:[{label:"Yes",value:"Yes"},{label:"Nil known allergies",value:"Nil known allergies"}],handleChange:pt=>{lt("patientAllergies",pt,!0),ut("patientAllergies"),pt!=="Yes"&&lt("patientAllergiesSpecify","",!0)},helperText:"Please select patient allergies",error:!!(rt.patientAllergies&&nt.patientAllergies)}),tt.patientAllergies==="Yes"&&jsxRuntimeExports.jsx(ROTextField,{id:"allergiesSpecify",fieldlabel:"Please specify",placeholder:"Please specify allergies details...",required:!0,rows:4,value:tt.patientAllergiesSpecify,onBlur:async pt=>{lt("patientAllergiesSpecify",pt.target.value,!0),ut("patientAllergiesSpecify")},helperText:"Please specify patient allergies",error:!!(rt.patientAllergiesSpecify&&nt.patientAllergiesSpecify),multiline:!0,maxRows:4})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{},onNext:()=>{dt()},backDisabled:!1,backButtonId:"treatment-info-back-button"}),jsxRuntimeExports.jsx(AutoSave,{saveMethod:et.updateCallback})]})})},CAREPLAN_PAGE={CREATE:"",DIAGNOSIS_A:"primary",DIAGNOSIS_B:"newPrimary",STAGING:"tnmstaging",INTAKE:"intake",TREATMENT_INFO:"treatmentInfo",PROTOCOL_SELECTION:"protocolSelection",PRESCRIPTION:"prescription",SUBMISSION:"submission"},DRUG_ORDER_TYPE={TAKE_AT_HOME:"Take At Home",IN_HOUSE_TREATMENT:"In House Treat"},ADMIN_INSTRUCTIONS="Admin Instructions",PATIENT_INSTRUCTIONS="Patient Instructions",LIST_OPTIONS$1={INTENT:"intent",TREATING_DEPARTMENT:"treatingDepartment",DOSE_CHANGE_REASON:"moDoseChangeReason"},DRUG_CATEGORY={TREATMENT:"Treatment",SUPPORTING:"Supporting"},MO_TREATMENT_INFO_QUERY=gql`
  query moTreatmentInfo($careplanId: ID!, $patientId: ID!) {
    moTreatmentInfo(careplanId: $careplanId) {
      id
      readyForCareDate
      intent
      treatingDepartment
    }
    moPatientAllergy(patientId: $patientId) {
      id
      allergy
      allergySpecify
    }
  }
`,MO_TREATMENT_INFO_MUTATION=gql`
  mutation updateMoTreatmentInfo(
    $careplanId: ID!
    $patientId: ID!
    $allergy: String
    $allergySpecify: String
    $readyForCareDate: String
    $intent: String
    $treatingDepartment: String
  ) {
    updateMoTreatmentInfo(
      careplanId: $careplanId
      readyForCareDate: $readyForCareDate
      intent: $intent
      treatingDepartment: $treatingDepartment
    ) {
      treatmentInfo {
        id
        readyForCareDate
        intent
        treatingDepartment
      }
    }
    updateMoAllergy(patientId: $patientId, allergy: $allergy, allergySpecify: $allergySpecify) {
      moAllergy {
        id
        allergy
        allergySpecify
      }
    }
  }
`,CREATE_MO_PATIENT_OBSERVATION=gql`
  mutation createMoPatientObservation(
    $careplanId: ID!
    $weight: Float!
    $height: Float!
    $serumCreatinine: Float
    $bsa: Float
    $creatinineClearance: Float
    $recalculateDoses: Boolean
  ) {
    createMoPatientObservation(
      careplanId: $careplanId
      weight: $weight
      height: $height
      serumCreatinine: $serumCreatinine
      bsa: $bsa
      creatinineClearance: $creatinineClearance
      recalculateDoses: $recalculateDoses
    ) {
      moPatientObservation {
        id
        weight
        height
        serumCreatinine
        observationDate
        bsa
        creatinineClearance
        recalculate
      }
    }
  }
`,GET_LATEST_MO_PATIENT_OBSERVATION=gql`
  query latestMoPatientObservation($careplanId: ID!) {
    latestMoPatientObservation(careplanId: $careplanId) {
      id
      weight
      height
      serumCreatinine
      observationDate
      bsa
      creatinineClearance
      recalculate
    }
  }
`,GET_DRUG_ORDERS=gql`
  query drugOrders($drugCategory: String!) {
    drugOrders(drugCategory: $drugCategory) {
      id
      drug
      name
      doseBasis
      route
      frequency
      prn
      type
      base
      version
      minimumDose
      doseUnit
      genericName
      doseIsCalculated
      doseCalculatedUnits
      doseCalculatedBy
      solution
      administrationInstructions
    }
  }
`,GET_MO_TEMPLATES=gql`
  query moTemplateList($tumourStream: String) {
    moTemplateList(tumourStream: $tumourStream) {
      id
      templates {
        id
        name
        statusName
        tumourStream
        numberOfCycles
        daysPerCycle
        evidenceId
        evidenceLink
        evidenceVersion
        continuous
        doses {
          id
          drugOrder
          cycle
          day
          order
        }
      }
      drugOrders {
        id
        drug
        name
        route
        dose
        doseUnit
        doseBasis
        minimumDose
        doseIsCalculated
        drugCategory
        genericName
      }
    }
  }
`,GET_CAREPLAN_ADDITIONAL_INFO=gql`
  query moGetCareplanAdditionalInfo($careplanId: ID!) {
    moCareplanAdditionalInfo(careplanId: $careplanId) {
      id
      protocolId
      numberOfCycles
      daysPerCycle
      continuous
      evidenceId
      evidenceVersion
      evidenceLink
      startingCycle
    }
    careplan(id: $careplanId) {
      id
      careplanName
    }
  }
`,UPDATE_MO_CAREPLAN_PROTOCOL=gql`
  mutation updateMoCareplanProtocol($careplanId: ID!, $protocolId: ID!, $startingCycle: Int!) {
    updateMoCareplanProtocol(careplanId: $careplanId, protocolId: $protocolId, startingCycle: $startingCycle) {
      moCareplanAdditionalInfo {
        id
        protocolId
        numberOfCycles
        daysPerCycle
        continuous
        evidenceId
        evidenceVersion
        evidenceLink
        cycleSchedule {
          seq
          days {
            day
            date
            breakDays
          }
        }
      }
    }
  }
`,IS_CAREPLAN_APPROVED_ATLEAST_ONCE=gql`
  query isCareplanApprovedOnce($careplanId: ID!) {
    isCareplanApprovedOnce(careplanId: $careplanId)
  }
`,validationSchema$2=create$3().shape({readyForCareDate:create$4().required("Ready for Care Date required"),intent:create$3().required(),treatingDepartment:create$3().required(),patientAllergies:create$6().required(),patientAllergiesSpecify:create$6().when("patientAllergies",{is:et=>et==="Yes",then:create$6().required()})}),TreatmentInfoPage=()=>{var Ot,At,Rt,zt,Tt;const et=useHistory(),tt=useRouteMatch(),{id:rt,careplanId:nt}=tt.params,lt=useOncologyListData(["intent","treatingDepartment"],rt),ut=reactExports.useMemo(()=>{var Ct;return(Ct=lt.intent)==null?void 0:Ct.sort((It,Dt)=>It.listWeight-Dt.listWeight).map(It=>({label:It.option,value:It.option}))},[lt]),dt=reactExports.useMemo(()=>{var Ct;return(Ct=lt.treatingDepartment)==null?void 0:Ct.sort((It,Dt)=>It.listWeight-Dt.listWeight).map(It=>({label:It.option,value:It.option}))},[lt]),{data:pt,loading:ht}=useQuery(MO_TREATMENT_INFO_QUERY,{variables:{careplanId:nt,patientId:rt}}),[mt]=useMutation(MO_TREATMENT_INFO_MUTATION,{refetchQueries:[{query:MO_TREATMENT_INFO_QUERY,variables:{careplanId:nt,patientId:rt}}]}),{data:xt}=useQuery(IS_CAREPLAN_APPROVED_ATLEAST_ONCE,{variables:{careplanId:nt},fetchPolicy:"network-only"}),Mt=reactExports.useCallback(Ct=>{var It,Dt;Ct.readyForCareDate!==null&&mt({variables:{careplanId:nt,patientId:rt,readyForCareDate:hooks(Ct.readyForCareDate).startOf("day").format("YYYY-MM-DD"),intent:(It=Ct.intent)==null?void 0:It.value,treatingDepartment:(Dt=Ct.treatingDepartment)==null?void 0:Dt.value,allergy:Ct.patientAllergies,allergySpecify:Ct.patientAllergiesSpecify}})},[mt,nt,rt]);if(!lt||!(lt!=null&&lt.intent)||ht)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const vt=hooks((Ot=pt.moTreatmentInfo)==null?void 0:Ot.readyForCareDate).startOf("day");return jsxRuntimeExports.jsx(Formik,{initialValues:{readyForCareDate:vt.toDate(),intent:getOptionByValue(ut,((At=pt.moTreatmentInfo)==null?void 0:At.intent)||""),treatingDepartment:getOptionByValue(dt||[],((Rt=pt.moTreatmentInfo)==null?void 0:Rt.treatingDepartment)||""),patientAllergies:((zt=pt.moPatientAllergy)==null?void 0:zt.allergy)||"",patientAllergiesSpecify:((Tt=pt.moPatientAllergy)==null?void 0:Tt.allergySpecify)||""},validateOnChange:!1,validateOnBlur:!1,validateOnMount:!1,validationSchema:validationSchema$2,onSubmit:Ct=>{Mt(Ct);const It=xt!=null&&xt.isCareplanApprovedOnce?`${CAREPLAN_PAGE.PRESCRIPTION}/0`:CAREPLAN_PAGE.PROTOCOL_SELECTION;et.push(`/medonc/patient/${rt}/careplan/${nt}/${It}`)},children:Ct=>jsxRuntimeExports.jsx(TreatmentInfoForm,{intentOptions:ut,treatingDepartmentOptions:dt,updateCallback:Mt,...Ct})})},CareplanSteps=[{key:"dg",header:"Diagnosis",short:"DG",steps:[{idx:0,text:"Diagnosis Selection",page:["primary","metastasis","create"]},{idx:1,text:"Staging",page:"tnmstaging"},{idx:2,text:"Intake Info",page:"intake"}]},{key:"cp",header:"Carepath",short:"cp",steps:[{idx:3,text:"Treatment Info",page:"treatmentInfo"},{idx:4,text:"Careplan Selection",page:"protocolSelection"}]},{key:"tx",header:"Treatment",short:"tx",steps:[{idx:5,text:"Prescription",page:"prescription"}]}],CareplanStepper=()=>jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(OncologyStepper,{steps:CareplanSteps})}),OuterCircle=styled$1("div")`
  flex-shrink: 0;
  background: white;
  border: 1px solid silver;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  margin: 8px;
  padding: 4px;
`,InnerCircle=styled$1("div")`
    border-radius: 50%;
    height: 100%;
    width: 100%;
    background-color: ${et=>et.selected?et.theme.palette.primary.main:"white"};
  }
`,FakeRadioButton=et=>jsxRuntimeExports.jsx(OuterCircle,{children:jsxRuntimeExports.jsx(InnerCircle,{...et})}),TabSelectorCategoryOuter=styled$1("div")`
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
`,TabSelectorValuesOuter=styled$1("div")`
  display: flex;
  border-radius: 8px;
  flex-direction: column;
  height: 100%;
  width: 100%;
`,TabSelectorCategoryCard=styled$1("div")`
  padding: 16px;
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  font-weight: 600;
  &:hover {
    background-color: ${et=>et.theme.palette.grey[100]};
  }
  &.selected {
    border-left: 5px solid ${et=>et.theme.palette.primary.main};
    background-color: ${et=>et.theme.palette.grey[100]};
  }
`,TabSelectorValueCard=styled$1("div")`
  padding: 8px;
  margin-top: 8px;
  font-weight: 550;
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  border-radius: 4px;
  &.selected {
    border-color: ${et=>et.theme.palette.primary.main};
  }
`,TabSelectorValueTitle=styled$1("div")`
  display: flex;
  align-items: center;
`,CategoryFilterInputContainer=styled$1("div")`
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  position: sticky;
  top: 0;
  background-color: white;
`,ValueFilterInputContainer=styled$1("div")`
  display: flex;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  margin-bottom: 8px;
`,StyledFilterInput=styled$1("input")`
  margin-left: 8px;
  border: 0;
`;styled$1("div")`
  width: 20px;
  height: 20px;
  margin-right: 8px;
  margin-left: 8px;
  border-radius: 16px;
  border: 1px solid ${et=>et.theme.palette.grey[300]};

  &.selected {
    background-color: ${et=>et.theme.palette.primary.main};
  }
`;const NoResultsMessage=styled$1("div")`
  margin: 20px auto;
  font-size: large;
  font-weight: 700;
`,TabSelectorCategoryFilter=({setFilterText:et,placeholder:tt})=>{const rt=useTheme$1();return jsxRuntimeExports.jsxs(CategoryFilterInputContainer,{children:[jsxRuntimeExports.jsx(FilterListOutlinedIcon,{htmlColor:rt.palette.grey[600]}),jsxRuntimeExports.jsx(StyledFilterInput,{type:"text",name:"tab-category-filter",placeholder:tt,onInput:nt=>{var lt;return et((lt=nt==null?void 0:nt.target)==null?void 0:lt.value)}})]})},TabSelectorCategories=({categories:et,selectedCategory:tt,setSelectedCategory:rt,filterPlaceholder:nt})=>{const[lt,ut]=reactExports.useState(""),[dt,pt]=reactExports.useState([]);return reactExports.useEffect(()=>{pt(et.filter(ht=>ht.toLowerCase().indexOf(lt.toLowerCase())>-1))},[et,lt]),jsxRuntimeExports.jsxs(TabSelectorCategoryOuter,{children:[jsxRuntimeExports.jsx(TabSelectorCategoryFilter,{setFilterText:ut,placeholder:nt}),dt.map((ht,mt)=>jsxRuntimeExports.jsx(TabSelectorCategoryCard,{className:ht===tt?"selected":"",onClick:()=>{rt(ht)},children:ht},mt))]})},TabSelectorValues=({values:et,selectedCategory:tt,selectedValue:rt,setSelectedValue:nt,filterPlaceholder:lt,hasExpandedContent:ut,noResultsMessage:dt="No results found for this category"})=>{const[pt,ht]=reactExports.useState(""),[mt,xt]=reactExports.useState([]);return reactExports.useEffect(()=>{xt(et.filter(Mt=>Mt.label.toLowerCase().indexOf(pt.toLowerCase())>-1))},[et,pt]),jsxRuntimeExports.jsxs(TabSelectorValuesOuter,{children:[jsxRuntimeExports.jsxs(ValueFilterInputContainer,{children:[jsxRuntimeExports.jsx(SvgSearch,{}),jsxRuntimeExports.jsx(StyledFilterInput,{type:"text",name:"tab-category-filter","data-testid":"tab-category-filter",placeholder:lt,onInput:Mt=>{var vt;return ht((vt=Mt==null?void 0:Mt.target)==null?void 0:vt.value)}})]}),tt&&(mt.length>0?mt.map((Mt,vt)=>{const{TitleComponent:Ot}=Mt;return Mt.category===tt&&jsxRuntimeExports.jsxs(TabSelectorValueCard,{className:Mt.id===rt?"selected":"","data-testid":"tab-selector-value-card",onClick:()=>nt(Mt.id),children:[Ot?jsxRuntimeExports.jsx(Ot,{selectedValue:rt}):jsxRuntimeExports.jsxs(TabSelectorValueTitle,{children:[jsxRuntimeExports.jsx(FakeRadioButton,{selected:Mt.id===rt}),jsxRuntimeExports.jsx("span",{children:Mt.label})]}),ut&&Mt.id===rt&&Mt.expandedContent&&Mt.expandedContent]},vt)}):jsxRuntimeExports.jsx(NoResultsMessage,{children:dt}))]})},FixedGrid=styled$1(Grid)`
  height: calc(100% - 60px);
`,FixedGridItem=styled$1(Grid)`
  height: 100%;
`,TumourStreamContainer=styled$1("div")`
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  border-radius: 8px;
  width: 100%;
  overflow: auto;
  max-height: 100%;
`,ProtocolContainer=styled$1("div")`
  box-shadow: 0px 2px 8px ${et=>et.theme.palette.grey[600]};
  padding: 16px;
  border-radius: 8px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
`,ProtocolSummaryTableContainer=styled$1("div")`
  padding: 16px;
  padding-top: 0;
  margin: 8px;
  background-color: ${et=>et.theme.palette.grey[100]};
  max-height: 500px;
  overflow: auto;
  font-weight: 100;
  p {
    font-weight: 700;
  }
  .MuiSvgIcon-root {
    padding-bottom: 3px;
  }
`,ProtocolSummaryTableInfo=styled$1("div")`
  position: relative;
  top: 15px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 40px;
  font-weight: 700;
`,StyledProtocolSummaryTable=styled$1("table")`
  margin-bottom: 10px;
  width: 100%;
  background-color: white;
  & thead {
    font-weight: 700;
  }
  & td {
    padding: 8px;
    border: 1px solid ${et=>et.theme.palette.grey[300]};
    &.data {
      width: 15%;
    }
  }
  && tbody {
    font-weight: 100;
  }
`,ProtocolSummaryTable=({protocol:et,drugOrders:tt})=>{var pt,ht;const rt={};for(const mt of tt)mt.id===void 0||mt.id in rt||(rt[mt.id]=mt);const nt=et.doses.filter(mt=>{var xt;return((xt=rt[mt.drugOrder])==null?void 0:xt.drugCategory)!=="Supporting"}).sort((mt,xt)=>mt.cycle-xt.cycle||mt.day-xt.day||mt.order-xt.order);if(nt.length<=0)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const lt={};for(const mt of nt){if(mt.cycle in lt||(lt[mt.cycle]=new Map),!lt[mt.cycle].has(mt.drugOrder)){const xt=rt[mt.drugOrder];if(xt.id===void 0)continue;const vt=`${xt.doseIsCalculated?xt.doseBasis:xt.minimumDose} ${xt.doseUnit}`;lt[mt.cycle].set(mt.drugOrder,{id:xt.id,drug:getDrugName(xt),dose:`${vt}`,route:xt.route,days:[]})}(pt=lt[mt.cycle].get(mt.drugOrder))==null||pt.days.push(mt.day+1)}const ut=[];if(et.continuous)ut.push({cycles:"Cycle 1 and further cycles",doseSummaries:[...lt[0].values()]});else{const mt=new Map;for(const xt of Object.keys(lt)){let Mt="";for(const vt of lt[xt].values())Mt+=`${vt.id}:${vt.days};`;mt.has(Mt)||mt.set(Mt,{cycles:[],doses:lt[xt]}),(ht=mt.get(Mt))==null||ht.cycles.push(parseInt(xt)+1)}for(const xt of mt.values()){const Mt=xt.cycles,vt=[],Ot={first:Mt[0],last:Mt[0]};for(let Rt=1;Rt<Mt.length;Rt+=1)Mt[Rt]===Mt[Rt-1]+1?Ot.last+=1:(vt.push(Ot),Ot.first=Ot.last=Mt[Rt]);vt.push(Ot);const At=vt.map(Rt=>Rt.first===Rt.last?`${Rt.first}`:`${Rt.first}-${Rt.last}`).join(", ");ut.push({cycles:(Mt.length>1?"Cycles ":"Cycle ")+At,doseSummaries:[...xt.doses.values()]})}}const dt=`Evidence ID: ${et.evidenceId} ${et.evidenceVersion?`v.${et.evidenceVersion}`:""}`;return jsxRuntimeExports.jsxs(ProtocolSummaryTableContainer,{children:[jsxRuntimeExports.jsxs(ProtocolSummaryTableInfo,{children:[jsxRuntimeExports.jsx("div",{"data-cy":"cycle frequency",children:`Frequency: ${et.daysPerCycle} days`}),jsxRuntimeExports.jsx("div",{"data-cy":"cycle count",children:`Cycles: ${et.continuous?"continuous":et.numberOfCycles}`})]}),ut.map((mt,xt)=>jsxRuntimeExports.jsxs(React$4.Fragment,{children:[jsxRuntimeExports.jsx("p",{"data-cy":"cycle numbers",children:`${mt.cycles}`}),jsxRuntimeExports.jsxs(StyledProtocolSummaryTable,{"data-cy":`${mt.cycles} table`,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:"Drug"}),jsxRuntimeExports.jsx("td",{className:"data",children:"Dose"}),jsxRuntimeExports.jsx("td",{className:"data",children:"Route"}),jsxRuntimeExports.jsx("td",{className:"data",children:"Days"})]})}),jsxRuntimeExports.jsx("tbody",{children:Object.values(mt.doseSummaries).map(Mt=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:Mt.drug}),jsxRuntimeExports.jsx("td",{"data-cy":"dose",children:Mt.dose}),jsxRuntimeExports.jsx("td",{children:Mt.route}),jsxRuntimeExports.jsx("td",{"data-cy":"days",children:Mt.days.join(", ")})]},Mt.id))})]})]},xt)),et.evidenceLink?jsxRuntimeExports.jsxs("a",{href:et.evidenceLink,target:"_blank",rel:"noreferrer",children:[dt," ",jsxRuntimeExports.jsx(OpenInNew,{fontSize:"small"})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:dt})]})},ProtocolCyclesErrorModal=et=>jsxRuntimeExports.jsx(StandardDialog,{maxWidth:"sm",open:et.isOpen,title:"Protocol cycles exceeded",onClose:et.onCancel,onSubmit:et.onConfirm,submitText:"Confirm",children:jsxRuntimeExports.jsxs(Stack$5,{paddingY:2,gap:2,children:[jsxRuntimeExports.jsxs("div",{style:{display:"grid",gridAutoFlow:"row",gridTemplateColumns:"1fr 0.6fr",gridTemplateRows:"1fr 1fr",gap:"16px 16px",fontWeight:700},children:[jsxRuntimeExports.jsx("div",{children:"Total protocol cycles:"}),jsxRuntimeExports.jsx("div",{children:et.maxCycles}),jsxRuntimeExports.jsx("div",{children:"Starting cycle:"}),jsxRuntimeExports.jsx("div",{children:et.startingCycle})]}),jsxRuntimeExports.jsx("div",{children:"The starting cycle will be a copy of the last protocol cycle."})]})}),Label$1=({children:et})=>jsxRuntimeExports.jsx(Grid,{item:!0,xs:4,children:jsxRuntimeExports.jsx("b",{children:et})}),InputInnerContainer=({children:et,xs:tt})=>jsxRuntimeExports.jsx(Grid,{item:!0,container:!0,xs:tt,spacing:1,alignItems:"center",children:et}),ErrorMessage$1=styled$1("div")`
  color: ${et=>et.theme.palette.error.main};
  font-size: 13px;
  padding-top: 0px;
  display: flex;
  align-items: center;
  gap: 5px;
  .MuiSvgIcon-root {
    font-size: 17px;
  }
`,InputError=et=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:4}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:8,className:"input-error-message",...et,children:jsxRuntimeExports.jsxs(ErrorMessage$1,{children:[jsxRuntimeExports.jsx(ErrorOutlineIcon,{}),jsxRuntimeExports.jsx("span",{style:{textAlign:"left"},children:et.message})]})})]}),InfoMessage=styled$1("div")`
  font-size: 13px;
  padding-top: 0;
  padding-bottom: -10px;
  display: flex;
  align-items: center;
  gap: 5px;
  .MuiSvgIcon-root {
    fill: ${et=>et.theme.palette.info.main};
    font-size: 17px;
  }
`,WarningMessage=styled$1("div")`
  font-size: 13px;
  padding-top: 0;
  padding-bottom: -10px;
  display: flex;
  align-items: center;
  gap: 5px;
  .MuiSvgIcon-root {
    fill: ${et=>et.theme.palette.warning.main};
    font-size: 17px;
  }
`,InputInfo=({message:et})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:4}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:8,children:jsxRuntimeExports.jsxs(InfoMessage,{children:[jsxRuntimeExports.jsx(ErrorOutlineIcon,{}),jsxRuntimeExports.jsx("span",{style:{textAlign:"left"},children:et})]})})]}),InputWarning=({message:et})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:4}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:8,children:jsxRuntimeExports.jsxs(WarningMessage,{children:[jsxRuntimeExports.jsx(ErrorOutlineIcon,{}),jsxRuntimeExports.jsx("span",{style:{textAlign:"left"},children:et})]})})]}),FormRow=et=>jsxRuntimeExports.jsx(Grid,{item:!0,container:!0,spacing:1,alignItems:"center",...et,children:et.children}),Input=({children:et,units:tt,label:rt,field:nt,inputXs:lt=7,info:ut,warning:dt,reserveUnitsSpace:pt=!0,...ht})=>{const mt=getIn$1(ht.form.errors,nt.name),xt=getIn$1(ht.form.touched,nt.name);return jsxRuntimeExports.jsxs(FormRow,{"data-test-id":`${nt.name}-row`,children:[jsxRuntimeExports.jsx(Label$1,{children:rt}),jsxRuntimeExports.jsxs(InputInnerContainer,{xs:lt,children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:pt?9:12,children:et}),pt&&jsxRuntimeExports.jsx(Grid,{item:!0,xs:3,children:tt&&jsxRuntimeExports.jsx("b",{children:tt})})]}),ut&&jsxRuntimeExports.jsx(InputInfo,{message:ut}),dt&&jsxRuntimeExports.jsx(InputWarning,{message:dt}),xt&&mt&&jsxRuntimeExports.jsx(InputError,{"data-test-id":`${nt.name}-error`,message:mt})]})},CheckBoxLabel=styled$1(FormControlLabel)`
  && {
    display: flex;
    flex: 1;
    border: 1px solid ${et=>et.theme.palette.primary.main};
    border-radius: 4px;
    margin: 0;
    user-select: none;
  }
  .Mui-checked {
    color: ${et=>et.theme.palette.primary.main};
  }
  .MuiCheckbox-root {
    padding: 7px;
  }
  .MuiFormControlLabel-label {
    font-size: 11pt;
  }
`,NumberWithCheckboxInput=({units:et,label:tt,checkboxLabel:rt,checkboxValue:nt,onCheckboxChange:lt,gridItemProps:ut,...dt})=>{var pt,ht,mt,xt,Mt,vt;return jsxRuntimeExports.jsx(Input,{label:tt,...dt,children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:1,alignItems:"center",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:((pt=ut==null?void 0:ut.number)==null?void 0:pt.xs)||4,style:(ht=ut==null?void 0:ut.number)==null?void 0:ht.style,children:jsxRuntimeExports.jsx(TextField,{variant:"outlined",size:"small",type:"number",fullWidth:!0,...dt.field,...dt,InputProps:{inputProps:{max:dt.max,min:dt.min}}})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:((mt=ut==null?void 0:ut.unit)==null?void 0:mt.xs)||1,style:(xt=ut==null?void 0:ut.unit)==null?void 0:xt.style,children:et&&jsxRuntimeExports.jsx("b",{children:et})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:((Mt=ut==null?void 0:ut.checkbox)==null?void 0:Mt.xs)||7,style:(vt=ut==null?void 0:ut.checkbox)==null?void 0:vt.style,children:jsxRuntimeExports.jsx(CheckBoxLabel,{label:rt,labelPlacement:"end",control:jsxRuntimeExports.jsx(Checkbox$1,{color:"default",onChange:lt,checked:nt})})})]})})},NumberInput=({min:et,max:tt,label:rt,...nt})=>{const lt=useTheme$1(),ut=nt.error?lt.palette.error.main:lt.palette.grey[300],dt=nt.error?lt.palette.error.main:lt.palette.primary.main;return jsxRuntimeExports.jsx(Input,{label:rt,...nt,children:jsxRuntimeExports.jsx(TextField,{variant:"outlined",size:"small",type:"number",fullWidth:!0,...nt.field,...nt,InputProps:{inputProps:{min:et,max:tt}},sx:{".MuiOutlinedInput-notchedOutline:-moz-dir":{borderColor:`${ut} !important`,border:"1px solid"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:`${dt} !important`,border:"1px solid"}}})})},Select=styled$1(Select$3)`
  height: 40px;
  .MuiSelect-root {
    padding: 10px;
  }
  &:hover .MuiOutlinedInput-notchedOutline {
    border-color: ${et=>et.theme.palette.primary.main} !important;
    border: 1px solid;
  }
`,SelectInput=({label:et,options:tt,...rt})=>jsxRuntimeExports.jsx(Input,{label:et,...rt,children:jsxRuntimeExports.jsx(Select,{variant:"outlined",fullWidth:!0,"data-cy":rt.field.name,...rt.field,...rt,error:getIn$1(rt.form.errors,rt.field.name),children:tt==null?void 0:tt.map(nt=>jsxRuntimeExports.jsx(MenuItem,{"data-cy":nt.label,value:nt.value,children:nt.label},nt.value))})}),TextInput=({label:et,...tt})=>{const rt=getIn$1(tt.form.errors,tt.field.name);return jsxRuntimeExports.jsx(Input,{label:et,...tt,children:jsxRuntimeExports.jsx(TextField,{variant:"outlined",fullWidth:!0,size:"small",name:tt.field.name,error:rt,label:"",...tt})})},FormContainer$2=et=>jsxRuntimeExports.jsx(Grid,{container:!0,spacing:3,children:et.children}),Output=({label:et,value:tt,units:rt,dataCy:nt})=>jsxRuntimeExports.jsxs(FormRow,{children:[jsxRuntimeExports.jsx(Label$1,{children:et}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,"data-cy":nt,children:[tt," ",rt&&jsxRuntimeExports.jsx("b",{children:rt})]})]}),StyledCheckbox=styled$1(Checkbox$1)`
  && {
    margin: -12px;
    &.Mui-checked {
      color: ${et=>et.theme.palette.primary.main};
    }
  }
`,CheckboxInput=({label:et,...tt})=>jsxRuntimeExports.jsx(Input,{label:et,...tt,children:jsxRuntimeExports.jsx(StyledCheckbox,{size:"medium",color:"default",...tt.field})}),validationSchema$1=create$3().shape({startingCycle:create$5().min(1,"Please enter a valid cycle number").required("Please enter a valid cycle number")}),ProtocolSelectionTabTitle=et=>{const{protocol:tt,selectedValue:rt,startingCycleRef:nt,startingCycle:lt}=et;return jsxRuntimeExports.jsx(TabSelectorValueTitle,{children:jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"center",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:tt.id===rt?7:12,spacing:1,children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[jsxRuntimeExports.jsx(FakeRadioButton,{selected:tt.id===rt}),jsxRuntimeExports.jsx("span",{children:tt.name})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:tt.id===rt?5:1,children:tt.id===rt?jsxRuntimeExports.jsx(Formik,{innerRef:nt,initialValues:{startingCycle:lt,maxCycles:tt.numberOfCycles,isContinuous:tt.continuous},onSubmit:()=>{},validationSchema:validationSchema$1,validateOnChange:!0,validateOnBlur:!0,children:({setFieldTouched:ut,handleChange:dt,errors:pt})=>jsxRuntimeExports.jsx("div",{style:{display:"flex",marginLeft:"auto",alignItems:"center",fontSize:"14px",textAlign:"right"},children:jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"Starting Cycle:","data-test-id":"starting-cycle",name:"startingCycle",inputXs:"8",reserveUnitsSpace:!1,error:pt.startingCycle,onChange:ht=>{ut("startingCycle"),dt(ht)}})})}):jsxRuntimeExports.jsx("div",{})})]})})},ProtocolSelectionPage=()=>{var qt,Nt,Yt,Kt,Jt,Qt,Bt,Ft,$t;const{data:et}=useQuery(LIST_TUMOUR_STREAMS),{values:tt}=useFormikContext(),[rt,nt]=reactExports.useState(""),[lt,ut]=reactExports.useState([]),[dt,pt]=reactExports.useState(""),ht=useHistory(),mt=useRouteMatch(),{id:xt,careplanId:Mt}=mt.params,vt=(qt=tt==null?void 0:tt.diagnosis)!=null&&qt.isPrimaryDiagnosis?(Kt=(Yt=(Nt=tt==null?void 0:tt.diagnosis)==null?void 0:Nt.diagnosisCode)==null?void 0:Yt.tumourStream)==null?void 0:Kt.name:(Ft=(Bt=(Qt=(Jt=tt==null?void 0:tt.diagnosis)==null?void 0:Jt.relatedPrimaryDiagnosis)==null?void 0:Qt.diagnosisCode)==null?void 0:Bt.tumourStream)==null?void 0:Ft.name,{data:Ot,loading:At}=useQuery(GET_MO_TEMPLATES,{variables:{tumourStream:rt||vt},skip:!(($t=tt==null?void 0:tt.diagnosis)!=null&&$t.diagnosisCode)}),{data:Rt}=useQuery(GET_CAREPLAN_ADDITIONAL_INFO,{variables:{careplanId:Mt}}),{data:zt}=useQuery(IS_CAREPLAN_APPROVED_ATLEAST_ONCE,{variables:{careplanId:Mt},fetchPolicy:"network-only"}),[Tt]=useMutation(UPDATE_MO_CAREPLAN_PROTOCOL,{awaitRefetchQueries:!0,refetchQueries:[{query:PRESCRIPTION_DATA_QUERY,variables:{careplanId:Mt}}]}),[Ct,It]=reactExports.useState({startingCycle:1,maxCycles:1,isOpen:!1}),Dt=React$4.useRef(null);if(reactExports.useEffect(()=>{!Ot||!Rt||ut(Ot.moTemplateList.templates.map(jt=>({id:jt.id,category:jt.tumourStream,label:jt.name,expandedContent:ProtocolSummaryTable({protocol:jt,drugOrders:Ot.moTemplateList.drugOrders}),TitleComponent:Wt=>jsxRuntimeExports.jsx(ProtocolSelectionTabTitle,{selectedValue:Wt.selectedValue,startingCycleRef:Dt,protocol:jt,startingCycle:Rt.moCareplanAdditionalInfo&&jt.id===Rt.moCareplanAdditionalInfo.protocolId.toString()?Rt.moCareplanAdditionalInfo.startingCycle+1:1})})))},[Ot,Rt]),reactExports.useEffect(()=>{Rt!=null&&Rt.moCareplanAdditionalInfo&&pt(Rt.moCareplanAdditionalInfo.protocolId.toString())},[Rt]),!et||!Ot)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const kt=jt=>{Tt({variables:{careplanId:Mt,protocolId:dt,startingCycle:jt-1}}).then(()=>{ht.push(`/medonc/patient/${xt}/careplan/${Mt}/${CAREPLAN_PAGE.PRESCRIPTION}/${jt-1}`)})};return jsxRuntimeExports.jsx("div",{className:"main-container-parent-wrapper",children:jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsxs(CareplanContainer,{children:[jsxRuntimeExports.jsx("div",{className:"page-header",children:jsxRuntimeExports.jsx("h1",{children:"Careplan Selection"})}),jsxRuntimeExports.jsxs(FixedGrid,{container:!0,spacing:2,children:[jsxRuntimeExports.jsx(FixedGridItem,{item:!0,xs:12,md:3,children:jsxRuntimeExports.jsx(TumourStreamContainer,{"data-testid":"tumourstream",children:jsxRuntimeExports.jsx(TabSelectorCategories,{categories:et.tumourStreamList,selectedCategory:rt||vt,setSelectedCategory:nt,filterPlaceholder:`${CurrentAppConfig.DefaultValue.tumourName} Stream Filter`})})}),jsxRuntimeExports.jsx(FixedGridItem,{item:!0,xs:12,md:9,children:jsxRuntimeExports.jsx(ProtocolContainer,{children:At?jsxRuntimeExports.jsx(LoadingSpinner,{}):jsxRuntimeExports.jsx(TabSelectorValues,{values:lt,selectedCategory:rt||vt,selectedValue:dt,setSelectedValue:pt,filterPlaceholder:"Search protocol or drug name",noResultsMessage:`No Templates found for this ${CurrentAppConfig.DefaultValue.tumourName} stream`,hasExpandedContent:!0,"data-testid":"protocol-container"})})})]}),jsxRuntimeExports.jsx(ProtocolCyclesErrorModal,{...Ct,onCancel:()=>{It({...Ct,isOpen:!1})},onConfirm:()=>{It({...Ct,isOpen:!1}),kt(Ct.startingCycle)}})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{ht.push(`/medonc/patient/${xt}/careplan/${Mt}/${CAREPLAN_PAGE.TREATMENT_INFO}`)},onNext:()=>{var jt;if(Dt.current){const{startingCycle:Wt,maxCycles:Ut,isContinuous:Vt}=(jt=Dt.current)==null?void 0:jt.values;if(Wt===void 0||Wt<1)return;if(!Vt&&Ut<Wt){It({startingCycle:Wt,maxCycles:Ut,isOpen:!0});return}kt(Wt)}else kt(Rt.moCareplanAdditionalInfo.startingCycle+1)},nextDisabled:!dt||(zt==null?void 0:zt.isCareplanApprovedOnce)&&dt!==Rt.moCareplanAdditionalInfo.protocolId.toString(),backDisabled:!1,backButtonId:"treatment-info-back-button"})]})})},MOPatientCarePlanPageRouter=()=>jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGE.TREATMENT_INFO}`,component:TreatmentInfoPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGE.PROTOCOL_SELECTION}`,component:ProtocolSelectionPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGE.PRESCRIPTION}/:cycleId`,component:MOPrescriptionPage}),jsxRuntimeExports.jsx(Route,{path:`/:oncologyType/patient/:id/careplan/:careplanId/${CAREPLAN_PAGE.SUBMISSION}`,component:MOSubmissionPage}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/careplan/:careplanId/",component:ROPatientDiagnosisPage})]}),routedComponent$8=withRouter(MOPatientCarePlanPageRouter),CareplanApollo=()=>{var Yt,Kt;const{setError:et}=useErrorModalContext(),tt=useRouteMatch(),rt=useLocation(),{values:nt,setFieldValue:lt}=useFormikContext(),[ut,{called:dt}]=useMutation(CREATE_DIAGNOSIS_INTAKE),{diagnosis:pt,intake:ht,intakePage:mt}=nt,{dispatch:xt}=reactExports.useContext(ROPatientCarePlanContext),{id:Mt,careplanId:vt}=tt.params;useQuery(GET_ORDERED_DIAGNOSIS_LIST,{variables:{isPrimaryDiagnosis:rt.pathname.includes("primary"),patientId:Mt},skip:vt==="create",fetchPolicy:"cache-and-network"}),useQuery(GET_ICD10_CATEGORY_LIST,{variables:{isPrimaryDiagnosis:rt.pathname.includes("primary")},fetchPolicy:"cache-and-network"}),useQuery(GET_CLINEX_CODES,{variables:{patientId:Mt},fetchPolicy:"cache-and-network"}),useQuery(LOAD_TREATMENT_LIST_DATA,{variables:{listCategory:[LIST_OPTIONS$1.INTENT,LIST_OPTIONS$1.TREATING_DEPARTMENT,LIST_OPTIONS$1.DOSE_CHANGE_REASON],patientId:Mt},fetchPolicy:"cache-and-network"});const{data:Ot,error:At}=useQuery(GET_DIAGNOSIS_FROM_CAREPLAN,{fetchPolicy:"cache-and-network",variables:{careplanId:vt},skip:!vt||vt==="create"}),Rt=rt.pathname.split("/"),zt=Rt.indexOf("diagnosis"),Tt=zt>0?Rt[zt+1]:null,Ct=Tt&&Tt!=="create"?Tt:Ot?(Kt=(Yt=Ot==null?void 0:Ot.careplan)==null?void 0:Yt.diagnosis)==null?void 0:Kt.id:null,{error:It}=useQuery(GET_DIAGNOSIS,{variables:{diagnosisId:Ct},fetchPolicy:"cache-and-network",skip:!Ct||Ct==="create",onCompleted:Jt=>lt("diagnosis",Jt==null?void 0:Jt.diagnosis)}),{error:Dt}=useQuery(LOAD_TREATMENTINFO,{variables:{id:vt},skip:vt==="create",onCompleted:Jt=>lt("treatmentInfo",Jt==null?void 0:Jt.careplan)}),{error:kt}=useQuery(GET_DIAGNOSIS_INTAKE,{variables:{diagnosisId:pt==null?void 0:pt.id},skip:!(pt!=null&&pt.id)||(pt==null?void 0:pt.id)==="create",fetchPolicy:"cache-and-network",onCompleted:Jt=>lt("intake",Jt==null?void 0:Jt.intake)}),{data:qt,error:Nt}=useQuery(GET_INTAKE_CODE_MAPPING,{fetchPolicy:"cache-and-network"});return reactExports.useEffect(()=>{var Jt;if(pt&&ht&&pt.id&&mt&&!ht[(Jt=intakePageMapping[mt])==null?void 0:Jt.key]&&!dt){const{createVariable:Qt}=intakePageMapping[mt];ut({variables:{diagnosisId:pt.id,careplanId:vt,intakeData:Qt}}).then(Bt=>{lt("intake",{...Bt.data.createIntake.intake,id:pt.id})})}},[nt.intake,nt.diagnosis]),reactExports.useEffect(()=>{var Jt,Qt;if(((Jt=qt==null?void 0:qt.intakeCodeMapping)==null?void 0:Jt.length)>0&&pt){const Bt=qt.intakeCodeMapping.reduce((jt,Wt)=>{const Ut=Wt.intake.name,Vt=Wt.diagnosisCode.diagnosisCode;return jt[Vt]=Ut,jt},{});xt({type:CarePlanActionType.SET_INTAKE_CODE_MAPPING,payload:{...Bt}});const Ft=pt!=null&&pt.isPrimaryDiagnosis?pt:pt==null?void 0:pt.relatedPrimaryDiagnosis,$t=codeToIntakePageMapping(Ft!=null&&Ft.diagnosisCode?(Qt=Ft==null?void 0:Ft.diagnosisCode)==null?void 0:Qt.diagnosisCode:"",{...Bt});lt("intakePage",$t)}},[pt,qt]),Nt||At||It||Dt||kt?et():jsxRuntimeExports.jsx(routedComponent$8,{})},logger$8=new Logger("MOPatientCarePlanPage"),MOPatientCarePlanPage=()=>{const{setPanelShow:et}=reactExports.useContext(UserContext),tt=useHistory(),rt=useLocation(),nt=useRouteMatch(),{id:lt,careplanId:ut}=nt.params,[dt]=useMutation(CREATE_CAREPLAN),[pt]=useMutation(UPDATE_CAREPLAN_LAST_PAGE),ht=(Ot,At)=>{dt({variables:{diagnosisId:Ot,patientId:At}}).then(Rt=>{logger$8.info("New Careplan created: "+Rt.data.createCareplan.careplan.id);const zt=Rt.data.createCareplan.careplan.id;tt.push(`/medonc/patient/${At}/careplan/${zt}/${CAREPLAN_PAGE.TREATMENT_INFO}`)},Rt=>{logger$8.error(Rt)})},[mt,xt]=reactExports.useReducer(CarePlanActions,{...DEFAULT_CAREPLAN_STATE,createCarePlan:ht,history:tt});reactExports.useEffect(()=>{et(!0)},[]),reactExports.useEffect(()=>{ut&&ut!=="create"&&pt({variables:{id:nt.params.careplanId,latestPageUrl:rt.pathname}})},[rt.pathname]),reactExports.useEffect(()=>{const{id:Ot,careplanId:At}=nt.params;At&&At!=="create"?xt({type:CarePlanActionType.SET_CAREPLAN,payload:{...mt.careplan,id:At}}):rt.pathname===`/medonc/patient/${Ot}/careplan/create`&&xt({type:CarePlanActionType.SET_CAREPLAN,payload:{...mt.careplan,id:""}})},[nt.params.careplanId]);const Mt=reactExports.useMemo(()=>({state:mt,dispatch:xt}),[mt,xt]),vt={diagnosis:null,intake:null,intakePage:"",treatmentInfo:null,user:null};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROPatientCarePlanContext.Provider,{value:Mt,children:jsxRuntimeExports.jsx(ClinexProvider,{children:jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(Formik,{initialValues:vt,onSubmit:()=>{},validationSchema:intakeValidation,children:()=>jsxRuntimeExports.jsxs("div",{className:"RO-home-wrapper",children:[jsxRuntimeExports.jsxs(ROSideNav,{children:[jsxRuntimeExports.jsx(PatientSummaryLink,{}),jsxRuntimeExports.jsx(CareplanStepper,{})]}),jsxRuntimeExports.jsxs("div",{className:"RO-create-pat-content",children:[jsxRuntimeExports.jsx(PatientCard,{id:lt}),jsxRuntimeExports.jsx(CareplanApollo,{})]})]})})})})}),jsxRuntimeExports.jsx(Q$1,{limit:3})]})},usePrescription=et=>{const{careplanId:tt}=et,{data:rt,loading:nt}=useQuery(PRESCRIPTION_DATA_QUERY,{variables:{careplanId:tt},skip:!tt}),{data:lt,loading:ut}=useQuery(MO_ADDITIONAL_INFO_QUERY,{variables:{careplanId:tt},skip:!tt,fetchPolicy:"cache-and-network"}),{data:dt,loading:pt}=useQuery(CAREPLAN_CYCLES_QUERY,{variables:{careplanId:tt},skip:!tt,fetchPolicy:"cache-and-network"}),ht=reactExports.useMemo(()=>{var vt;if(lt!=null&&lt.moCareplanAdditionalInfo){const At=(lt==null?void 0:lt.moCareplanAdditionalInfo.cycleSchedule).map(Rt=>{var zt;return{...Rt,days:(zt=Rt==null?void 0:Rt.days)==null?void 0:zt.map(Tt=>({...Tt,date:new Date(Tt.date+"T00:00:00Z")}))}});return{...lt.moCareplanAdditionalInfo,cycleSchedule:At,careplanName:(vt=rt==null?void 0:rt.careplan)==null?void 0:vt.careplanName}}return{numberOfCycles:0,daysPerCycle:0,careplanName:""}},[lt,rt]),mt=reactExports.useMemo(()=>rt!=null&&rt.moCareplanDoses?rt.moCareplanDoses:[],[rt]),xt=reactExports.useMemo(()=>rt!=null&&rt.moCareplanDrugOrders?rt.moCareplanDrugOrders:{},[rt]),Mt=reactExports.useMemo(()=>dt!=null&&dt.latestCycles?dt.latestCycles:[],[dt]);return{careplanAdditionalInfo:ht,doses:mt,drugOrders:xt,cycles:Mt,loading:nt||pt||ut}},roundToTwoDigits=et=>Math.round((et+Number.EPSILON)*100)/100,calculateBSA=(et,tt)=>!et||!tt?NaN:roundToTwoDigits(.007184*Math.pow(et,.725)*Math.pow(tt,.425)),calculateCreatinineClearance=(et,tt,rt,nt)=>{if(!et||!nt||!rt)return NaN;const lt=(140-tt)*et/(.814*rt);return roundToTwoDigits(nt==="Male"?lt:lt*.85)},CalculatedOutputBSA=({units:et,label:tt})=>{const{values:{height:rt,weight:nt,...lt},setFieldValue:ut}=useFormikContext();return reactExports.useEffect(()=>{const dt=calculateBSA(rt,nt);ut("bsa",isNaN(dt)?"-":dt)},[rt,nt]),jsxRuntimeExports.jsx(Output,{label:tt,value:lt.bsa,units:et})},CalculatedOutputCreatinineClearance=({units:et,label:tt})=>{const{values:{weight:rt,age:nt,serumCreatinine:lt,gender:ut,creatinineClearance:dt},setFieldValue:pt}=useFormikContext();return reactExports.useEffect(()=>{const ht=calculateCreatinineClearance(rt,nt,lt,ut);pt("creatinineClearance",isNaN(ht)?"-":ht)},[lt,rt,nt,ut]),jsxRuntimeExports.jsx(Output,{label:tt,value:dt,units:et})},ValidationSchema=create$3().shape({weight:create$5().min(0,"Invalid value").required("invalid value"),height:create$5().min(0,"Invalid value").required("invalid value")}),PatientObservationsModal=({onClose:et,open:tt,careplanId:rt,patient:nt,latestObservation:lt,setLatestObservation:ut})=>{const[dt,pt]=reactExports.useState(!1),[ht,mt]=reactExports.useState(!1),{state:xt}=reactExports.useContext(UserContext);reactExports.useEffect(()=>{tt&&(pt(!1),mt(!1))},[tt]);const Mt={weight:(lt==null?void 0:lt.weight)||"",height:(lt==null?void 0:lt.height)||"",serumCreatinine:(lt==null?void 0:lt.serumCreatinine)||"",bsa:"-",creatinineClearance:"-",recalculate:!0,age:nt!=null&&nt.dob?calculateMomentAge(hooks(nt.dob)):0,gender:nt==null?void 0:nt.patientGender},[vt]=useMutation(CREATE_MO_PATIENT_OBSERVATION,{refetchQueries:["moCareplanData","latestCycles"],onCompleted:Rt=>{var Tt;const zt=Rt.createMoPatientObservation.moPatientObservation&&hooks((Tt=Rt.createMoPatientObservation.moPatientObservation)==null?void 0:Tt.observationDate).tz(xt.timezone).format("L LT");ut({...Rt.createMoPatientObservation.moPatientObservation,observationDate:zt}),et()}}),Ot=()=>{var kt;if(((kt=At.current)==null?void 0:kt.values)===void 0){pt(!1);return}const{weight:Rt,height:zt,serumCreatinine:Tt,bsa:Ct,creatinineClearance:It,recalculate:Dt}=At.current.values;At.current.validateForm().then(qt=>(mt(!0),Object.keys(qt).length===0?vt({variables:{careplanId:rt,weight:Rt||void 0,height:zt||void 0,serumCreatinine:Tt||void 0,bsa:Ct!=="-"?Ct:void 0,creatinineClearance:It!=="-"?It:void 0,recalculateDoses:Dt}}):pt(!1),qt))},At=reactExports.useRef(null);return jsxRuntimeExports.jsx(StandardDialog,{open:tt,maxWidth:"lg",onClose:et,title:"Add patient Information",onSubmit:()=>{pt(!0),Ot()},submitText:"Add",children:jsxRuntimeExports.jsx(Formik,{initialValues:Mt,onSubmit:()=>{},innerRef:At,initialTouched:{weight:!0,height:!0},validationSchema:ValidationSchema,validateOnChange:!1,validateOnBlur:ht,children:({values:Rt})=>jsxRuntimeExports.jsx(Form$3,{"data-test-id":"observation-form",children:jsxRuntimeExports.jsxs(FormContainer$2,{children:[jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"Patient weight: *","data-test-id":"patient-weight",name:"weight",units:"kg",inputProps:{min:0}}),jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"Patient height: *","data-test-id":"patient-height",name:"height",units:"cm",inputProps:{min:0}}),jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"Serum creatinine:","data-test-id":"patient-creatinine",name:"serumCreatinine",units:"μmol/L",inputProps:{min:0}}),jsxRuntimeExports.jsx(Output,{label:"Patient sex:",value:Rt.gender}),jsxRuntimeExports.jsx(Output,{label:"Patient age:",value:Rt.age}),jsxRuntimeExports.jsx(Field,{component:CalculatedOutputBSA,label:"BSA:",units:"m²"}),jsxRuntimeExports.jsx(Field,{component:CalculatedOutputCreatinineClearance,label:"Creatinine Clearance:",units:"mL/min"}),(lt==null?void 0:lt.recalculate)!==void 0&&jsxRuntimeExports.jsx(Field,{label:"Recalculate drug doses:",name:"recalculate",component:CheckboxInput,id:"recalculate-checkbox",type:"checkbox"})]})})})})},applyToOptions=[{label:"Rest of careplan",value:"REST_OF_CAREPLAN"},{label:"This cycle",value:"THIS_CYCLE"},{label:"Selected day",value:"SELECTED_DAY"}],roundToTwo=et=>Math.round(et*100+Number.EPSILON)/100,DoseEditModal=({onClose:et,open:tt,doseInfo:rt,observationResults:nt,cycleEndDate:lt,careplanEndDate:ut,daysPerCycle:dt,numberOfCycles:pt})=>{var Ar,Ir,Rr,wr,qr,Hr,kr,$r,yr,Or;const[ht,mt]=reactExports.useState(!1),[xt,Mt]=reactExports.useState(!1),[vt,Ot]=reactExports.useState(!1),[At,Rt]=reactExports.useState(!1),[zt,Tt]=reactExports.useState(!1),[Ct,It]=reactExports.useState(!1),[Dt,kt]=reactExports.useState(!1),[qt,Nt]=reactExports.useState(!1),Yt=reactExports.useRef(null),Kt=rt==null?void 0:rt.doseDay.dose,Jt=Math.round(((Ar=Kt==null?void 0:Kt.doseAdjustment)==null?void 0:Ar.dosePercentage)??100),[Qt,Bt]=reactExports.useState(Jt),[Ft]=useMutation(UPDATE_DOSE_ADJUSTMENT,{refetchQueries:["moCareplanData","latestCycles"]}),$t=useRouteMatch(),{id:jt}=$t.params,Wt=useOncologyListData([LIST_OPTIONS$1.DOSE_CHANGE_REASON],jt),Ut=reactExports.useMemo(()=>!Wt||!Wt.moDoseChangeReason?[]:[...Wt.moDoseChangeReason].sort((Dr,Fr)=>Dr.listWeight-Fr.listWeight).map(Dr=>({label:Dr.option,value:Dr.option})),[Wt]);if(reactExports.useEffect(()=>{tt&&(mt(!1),Rt(!1),Tt(!1),It(!1),kt(!1),Mt(!1),Nt(!1),Bt(Jt))},[tt,Jt]),reactExports.useEffect(()=>{var Dr,Fr,Yr,Gr;Yt.current!==null&&(vt?(Dr=Yt.current)==null||Dr.setFieldValue("dosePercentage",0):((Fr=Kt==null?void 0:Kt.doseAdjustment)==null?void 0:Fr.dosePercentage)===0?Yt.current.setFieldValue("dosePercentage",Math.round(((Yr=Kt==null?void 0:Kt.previousDoseAdjustment)==null?void 0:Yr.dosePercentage)||100)):Yt.current.setFieldValue("dosePercentage",Math.round(((Gr=Kt==null?void 0:Kt.doseAdjustment)==null?void 0:Gr.dosePercentage)||100)))},[vt]),reactExports.useEffect(()=>{var Dr;((Dr=Kt==null?void 0:Kt.doseAdjustment)==null?void 0:Dr.dosePercentage)===0?Ot(!0):Ot(!1)},[rt]),rt===void 0||Kt===void 0)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Vt=(Dr,Fr)=>{const Yr=Fr/100*Dr,Gr=rt.drugOrder,Jr=Gr.prescribedDosePrecision;return Gr.roundToNearest?(Gr.roundToNearest*Math.round(Yr/Gr.roundToNearest)).toFixed(Jr):Yr.toFixed(Jr)},Ht=((Ir=rt.drugOrder)==null?void 0:Ir.type)===DRUG_ORDER_TYPE.IN_HOUSE_TREATMENT?(Rr=rt.drugOrder)==null?void 0:Rr.administrationInstructions:(wr=rt.drugOrder)==null?void 0:wr.patientInstructions,Gt=Kt.doseAdjustment?Kt.doseAdjustment.instructions:Kt.drugOrder.instructions||Ht,Zt=Vt(Kt.doseValue,((qr=Kt.doseAdjustment)==null?void 0:qr.dosePercentage)??100),Xt={ogDoseBasis:0,ogDose:Kt.doseValue||0,calculatedDose:0,dosePercentage:Jt,prescribedDose:Kt.prescribedDose||Zt,applyTo:((Hr=Kt.doseAdjustment)==null?void 0:Hr.applyTo)||"REST_OF_CAREPLAN",reason:((kr=Kt.doseAdjustment)==null?void 0:kr.reasonForChange)||"",instructions:Gt},er=()=>{var Dr;((Dr=Yt.current)==null?void 0:Dr.values)!==void 0&&Yt.current.validateForm().then(()=>{var Fr;if((Fr=Yt.current)!=null&&Fr.isValid){const Yr=Yt.current.values,Gr=parseFloat(Yr.prescribedDose)/Yr.ogDose*100;Ft({variables:{drugOrderId:Kt.drugOrder.id,prescribedDoseValue:Yr.prescribedDose.toString(),dosePercentage:Gr,reasonForChange:Yr.reason,applyTo:Yr.applyTo,day:rt.doseDay.day,cycle:rt.cycle,instructions:Yr.instructions}}).then(()=>{et()})}else Mt(!0)})},nr=(Dr,Fr,Yr)=>{const Gr=Vt(Fr,Dr);Yr("prescribedDose",Gr);const Jr=Math.round(parseFloat(Gr)/Fr*100);Bt(Jr),Rt(Jr!==Xt.dosePercentage),Tt(!1)},or=()=>{Mt(!1),et()},rr=rt.drugOrder,cr=rt.doseDay.day,ir=rt.cycle,dr=rt.doseDay.date,gr=(($r=rt.drugOrder)==null?void 0:$r.type)===DRUG_ORDER_TYPE.IN_HOUSE_TREATMENT?ADMIN_INSTRUCTIONS:PATIENT_INSTRUCTIONS,br=((yr=rt.drugOrder)==null?void 0:yr.type)===DRUG_ORDER_TYPE.IN_HOUSE_TREATMENT?"Please review admin instructions before updating":"Please review patient instructions before updating";let ar=()=>null;if(nt!==null){const{bsa:Dr,weight:Fr,creatinineClearance:Yr}=nt,Gr={BSA:Dr,Weight:Fr,"Creatinine Clearance":Yr}[rr.doseCalculatedBy];ar=()=>{switch(rr.doseCalculatedBy){case"BSA":case"Weight":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Gr,jsxRuntimeExports.jsxs("b",{children:["(",rr.doseCalculatedBy,")"]})," × ",rr.doseBasis,jsxRuntimeExports.jsx("b",{children:"(Dose basis)"})]});case"Creatinine Clearance":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["(",Yr,jsxRuntimeExports.jsx("b",{children:"(Creatinine clearance)"})," + 25) × ",rr.doseBasis,jsxRuntimeExports.jsx("b",{children:"(Dose basis)"})]});default:return null}}}const ur=Dr=>{if(!lt||!ut)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Fr=Dr==="THIS_CYCLE"?lt:ut,Yr=Dr==="THIS_CYCLE"?rt.cycle+1:pt;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Change will apply ",Dr==="SELECTED_DAY"?"to":"from",` ${hooks(rt.doseDay.date).format("L")}, (C${rt.cycle+1}D${rt.doseDay.day+1})`,Dr!=="SELECTED_DAY"&&` to ${hooks(Fr.toDate()).format("L")}, (C${Yr}D${dt})`]})},xr=Dr=>{var Fr;if(rr.drugCategory!=="Supporting"&&((Fr=Yt.current)==null?void 0:Fr.values.dosePercentage)!==100&&Dr==="")return Mt(!0),"This field is required"},Mr=Dr=>{if(Dr===""&&!vt)return Mt(!0),"This field is required"};return!ht&&Xt.reason,!lt||!ut?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(StandardDialog,{maxWidth:"lg",open:tt,onClose:or,title:`Update ${rr.drugName}`,onSubmit:(Or=Yt.current)==null?void 0:Or.submitForm,submitText:"Update",children:jsxRuntimeExports.jsx(Formik,{initialValues:Xt,onSubmit:er,innerRef:Yt,validateOnChange:xt,validateOnBlur:!1,children:({values:Dr,initialValues:Fr,errors:Yr,handleChange:Gr,setFieldValue:Jr})=>{var jr;return jsxRuntimeExports.jsx(Form$3,{children:jsxRuntimeExports.jsxs(FormContainer$2,{children:[jsxRuntimeExports.jsxs(Grid,{item:!0,container:!0,alignItems:"center",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx("b",{children:`Selected date: ${hooks(dr).format("L")}, (C${ir+1}D${cr+1})`})}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,children:["Current date: ",hooks().format("L")]})]}),rr.doseIsCalculated?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"Original dose basis",name:"ogDoseBasis",units:rr.doseUnit,disabled:!0,value:rr.doseBasis}),jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"Calculated dose",name:"calculatedDose",units:rr.doseCalculatedUnits,disabled:!0,value:roundToTwo(Kt==null?void 0:Kt.doseValue),info:jsxRuntimeExports.jsx("span",{"data-cy":"calculated-dose-info",children:ar()})})]}):jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"Original dose",name:"ogDose",units:rr.doseUnit,disabled:!0,value:roundToTwo(Kt==null?void 0:Kt.doseValue)}),jsxRuntimeExports.jsx(Field,{gridItemProps:rr.drugCategory==="Supporting"&&{number:{style:{display:"none"}},unit:{style:{display:"none"}},checkbox:{xs:12}},component:NumberWithCheckboxInput,label:rr.drugCategory==="Supporting"?"Withhold":"Actual dose %",checkboxLabel:"Withhold this drug",name:"dosePercentage",units:"%",min:0,onKeyPress:Zr=>{"+-.eE".includes(Zr.key)&&Zr.preventDefault()},onChange:Zr=>{const Xr=parseFloat(Zr.currentTarget.value);Gr(Zr.currentTarget.name)(Zr),nr(Xr,Dr.ogDose,Jr)},onCheckboxChange:(Zr,Xr)=>{Ot(Xr),Xr?(Jr("instructions",""),nr(Xr?0:100,Dr.ogDose,Jr),Jr("prescribedDose",0)):Fr.dosePercentage!==0?(Jr("instructions",Fr.instructions),nr(Fr.dosePercentage,Dr.ogDose,Jr)):Kt.doseAdjustment&&Kt.previousDoseAdjustment?(Jr("instructions",Kt.previousDoseAdjustment.instructions),nr(Math.round(Kt.previousDoseAdjustment.dosePercentage),Dr.ogDose,Jr)):(Jr("instructions",Kt.doseAdjustment.instructions||Ht),nr(100,Dr.ogDose,Jr))},checkboxValue:vt,disabled:vt,onBlur:Zr=>{Zr.currentTarget.value==="0"&&Ot(!0)},warning:Qt!==Dr.dosePercentage&&At&&jsxRuntimeExports.jsxs("span",{"data-cy":"dose-percentage-warning",children:["The actual dose % will be set as ",jsxRuntimeExports.jsxs("b",{children:[Qt,"%"]})," due to rounding"]})}),jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"Prescribed dose",name:"prescribedDose",units:rr.doseIsCalculated?rr.doseCalculatedUnits:rr.doseUnit,disabled:vt,onKeyPress:Zr=>{"+-eE".includes(Zr.key)&&Zr.preventDefault()},onChange:Zr=>{const Xr=parseFloat(Zr.currentTarget.value);Gr(Zr.currentTarget.name)(Zr);const cn=Math.round(Xr/Dr.ogDose*100);Bt(cn),Jr("dosePercentage",cn),Tt(Xr!==parseFloat(Fr.prescribedDose)),Rt(!1)},info:rr.drugCategory===DRUG_CATEGORY.TREATMENT?jsxRuntimeExports.jsxs("span",{"data-cy":"prescribed-dose-info",children:[!Qt||`${Qt}% of `,rr.doseIsCalculated?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[roundToTwo(Kt.doseValue),jsxRuntimeExports.jsx("b",{children:"(Calculated dose)"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[rr.minimumDose,jsxRuntimeExports.jsx("b",{children:"(Original dose)"})]}),!!rr.roundToNearest&&!zt&&`: rounded to ${rr.roundToNearest}`]}):null}),jsxRuntimeExports.jsx(Field,{component:SelectInput,label:"Apply to",name:"applyTo",options:applyToOptions,onChange:Zr=>{kt(Zr.target.value!==Fr.applyTo),Gr(Zr.target.name)(Zr)},info:jsxRuntimeExports.jsx("span",{"data-cy":"apply-to-info",children:ur(Dr.applyTo)})}),jsxRuntimeExports.jsx(Field,{component:SelectInput,label:`Reason${rr.drugCategory!=="Supporting"?"*":""}`,name:"reason",onChange:Zr=>{It(Zr.target.value!==Fr.reason),Gr(Zr.target.name)(Zr)},options:Ut,validate:xr}),rr.solution!=="0"&&jsxRuntimeExports.jsx(Field,{component:SelectInput,label:"Diluent",name:"solution",disabled:!0,value:rr.solution,options:[{label:rr.solution,value:rr.solution}]}),jsxRuntimeExports.jsx(Field,{component:TextInput,label:gr+(Dr.dosePercentage!==0?"*":""),name:"instructions",multiline:!0,rows:3,value:Dr.instructions,onChange:Zr=>{Nt(Zr.target.value!==Fr.instructions),Gr(Zr.target.name)(Zr)},warning:Dr.prescribedDose!==Fr.prescribedDose&&Dr.dosePercentage!==0&&((jr=rt.drugOrder)==null?void 0:jr.type)===DRUG_ORDER_TYPE.TAKE_AT_HOME&&!Yr.instructions&&jsxRuntimeExports.jsx("span",{"data-cy":"instructions-info",children:br}),disabled:Dr.dosePercentage===0,validate:Mr})]})})}})})},PageHeader=styled$1("div")`
  margin-bottom: 16px;
  h1 {
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    color: ${et=>et.theme.palette.text.primary};
  }
  h2 {
    margin-top: 8px;
  }
  h3 {
    font-size: 20px;
    line-height: 28px;
    color: ${et=>et.theme.palette.grey[600]};
    font-weight: 100;
  }
`,SpaceBetweenDiv=styled$1("div")`
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  line-height: 28px;
`,ViewWidthMinusSidebars=styled$1("div")`
  width: calc(100vw - 520px);
`,SideBar=styled$1("div")`
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};
  width: 250px;
  height: 100%;
  padding: 0px 10px;
`,AlwaysHorizontalScroll=styled$1("div")`
  width: 100%;
  position: relative;
  overflow-x: scroll;
  display: flex;
  margin-bottom: -8px;

  ::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 3px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: ${et=>et.theme.palette.grey[300]};
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
  }
`,GreyBox=styled$1("div")`
  display: flex;
  background-color: ${et=>et.theme.palette.grey[100]};
  padding: 8px 16px;
  margin-top: 8px;
  flex-direction: column;
`,StyledCycleTable=styled$1("table")`
  display: block;
  overflow-y: auto;
  overflow-x: auto;
  max-height: calc(100vh - 457px);

  &::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent; /* make scrollbar transparent */
  }

  & thead tr {
    height: 40px;
  }

  & tbody tr {
    height: 48px;
  }

  & thead tr th {
    text-align: center;
    border-left: 1px solid ${et=>et.theme.palette.grey[300]};
    border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
    border-right: 1px solid ${et=>et.theme.palette.grey[300]};
    background-color: white;
    vertical-align: middle;
    cursor: pointer;
    &:hover {
      background-color: ${et=>et.theme.palette.grey[100]};
    }
    position: sticky;
    top: 0;
    z-index: 1;
  }

  & tbody tr td {
    background-color: white;
    border: 1px solid ${et=>et.theme.palette.grey[300]};
    vertical-align: middle;
  }

  & td.currentDate,
  th.currentDate {
    border-left: 3px solid ${et=>et.theme.palette.primary.main};
    background-color: ${et=>et.theme.palette.primary.light};
  }

  & thead tr th.empty {
    background-color: ${et=>et.theme.palette.grey[300]};
    color: ${et=>et.theme.palette.grey[600]};
    cursor: default;
  }

  & tbody tr td.empty {
    background-color: ${et=>et.theme.palette.grey[300]};
  }

  & thead tr th:first-child {
    cursor: inherit;
    border-left: 0;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
    border: 0;
    border-right: 1px solid ${et=>et.theme.palette.grey[300]};
    background-color: ${et=>et.theme.palette.grey[100]};
  }

  & tbody tr td:first-child {
    left: 0;
    border-left: 0;
    position: -webkit-sticky;
    position: sticky;
  }
`,DayLabel=styled$1("p")`
  color: ${et=>et.theme.palette.grey[600]};
  font-size: 0.7rem;
`,TableContentContainer=styled$1("div")`
  display: flex;
  align-items: center;
  padding: 8px;
`,DrugNameContainer=styled$1(TableContentContainer)`
  width: 550px;
  justify-content: space-between;
`,DoseCellContainer=styled$1(TableContentContainer)`
  justify-content: center;
`,HeaderContainer=styled$1("div")`
  display: flex;
  align-items: center;
  padding: 8px;
  flex-direction: column;
`,FirstHeaderContainer=styled$1(TableContentContainer)`
  flex-direction: column;
  font-size: 16px;
  padding-left: 0;
`,EmptyContainer=styled$1(TableContentContainer)`
  width: 60px;
  flex-direction: column;
  font-size: 0.6rem;
`,CardLabel=styled$1(et=>jsxRuntimeExports.jsx(Grid,{item:!0,xs:8,...et}))`
  font-weight: 700;
  color: ${et=>et.theme.palette.grey[600]};
`,CardData=styled$1(et=>jsxRuntimeExports.jsx(Grid,{item:!0,xs:4,...et}))`
  font-weight: 700;
`,ScrollbarDiv=styled$1("div")`
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-track {
    all: auto !important;
    background-color: ${et=>et.theme.palette.grey[100]};
  }
  &::-webkit-scrollbar-thumb {
    all: auto !important;
    background-color: ${et=>et.theme.palette.grey[300]};
    border-radius: 8px;
  }
  &::-webkit-scrollbar-corner {
    background-color: ${et=>et.theme.palette.grey[100]};
  }
`;function ownKeys(et,tt){var rt=Object.keys(et);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(et);tt&&(nt=nt.filter(function(lt){return Object.getOwnPropertyDescriptor(et,lt).enumerable})),rt.push.apply(rt,nt)}return rt}function _objectSpread2(et){for(var tt=1;tt<arguments.length;tt++){var rt=arguments[tt]!=null?arguments[tt]:{};tt%2?ownKeys(Object(rt),!0).forEach(function(nt){_defineProperty$3(et,nt,rt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(et,Object.getOwnPropertyDescriptors(rt)):ownKeys(Object(rt)).forEach(function(nt){Object.defineProperty(et,nt,Object.getOwnPropertyDescriptor(rt,nt))})}return et}function formatProdErrorMessage(et){return"Minified Redux error #"+et+"; visit https://redux.js.org/Errors?code="+et+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(et){if(typeof et!="object"||et===null)return!1;for(var tt=et;Object.getPrototypeOf(tt)!==null;)tt=Object.getPrototypeOf(tt);return Object.getPrototypeOf(et)===tt}function createStore$1(et,tt,rt){var nt;if(typeof tt=="function"&&typeof rt=="function"||typeof rt=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof tt=="function"&&typeof rt>"u"&&(rt=tt,tt=void 0),typeof rt<"u"){if(typeof rt!="function")throw new Error(formatProdErrorMessage(1));return rt(createStore$1)(et,tt)}if(typeof et!="function")throw new Error(formatProdErrorMessage(2));var lt=et,ut=tt,dt=[],pt=dt,ht=!1;function mt(){pt===dt&&(pt=dt.slice())}function xt(){if(ht)throw new Error(formatProdErrorMessage(3));return ut}function Mt(Rt){if(typeof Rt!="function")throw new Error(formatProdErrorMessage(4));if(ht)throw new Error(formatProdErrorMessage(5));var zt=!0;return mt(),pt.push(Rt),function(){if(zt){if(ht)throw new Error(formatProdErrorMessage(6));zt=!1,mt();var Ct=pt.indexOf(Rt);pt.splice(Ct,1),dt=null}}}function vt(Rt){if(!isPlainObject(Rt))throw new Error(formatProdErrorMessage(7));if(typeof Rt.type>"u")throw new Error(formatProdErrorMessage(8));if(ht)throw new Error(formatProdErrorMessage(9));try{ht=!0,ut=lt(ut,Rt)}finally{ht=!1}for(var zt=dt=pt,Tt=0;Tt<zt.length;Tt++){var Ct=zt[Tt];Ct()}return Rt}function Ot(Rt){if(typeof Rt!="function")throw new Error(formatProdErrorMessage(10));lt=Rt,vt({type:ActionTypes.REPLACE})}function At(){var Rt,zt=Mt;return Rt={subscribe:function(Ct){if(typeof Ct!="object"||Ct===null)throw new Error(formatProdErrorMessage(11));function It(){Ct.next&&Ct.next(xt())}It();var Dt=zt(It);return{unsubscribe:Dt}}},Rt[$$observable]=function(){return this},Rt}return vt({type:ActionTypes.INIT}),nt={dispatch:vt,subscribe:Mt,getState:xt,replaceReducer:Ot},nt[$$observable]=At,nt}function bindActionCreator(et,tt){return function(){return tt(et.apply(this,arguments))}}function bindActionCreators$1(et,tt){if(typeof et=="function")return bindActionCreator(et,tt);if(typeof et!="object"||et===null)throw new Error(formatProdErrorMessage(16));var rt={};for(var nt in et){var lt=et[nt];typeof lt=="function"&&(rt[nt]=bindActionCreator(lt,tt))}return rt}function compose(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return tt.length===0?function(nt){return nt}:tt.length===1?tt[0]:tt.reduce(function(nt,lt){return function(){return nt(lt.apply(void 0,arguments))}})}function applyMiddleware(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return function(nt){return function(){var lt=nt.apply(void 0,arguments),ut=function(){throw new Error(formatProdErrorMessage(15))},dt={getState:lt.getState,dispatch:function(){return ut.apply(void 0,arguments)}},pt=tt.map(function(ht){return ht(dt)});return ut=compose.apply(void 0,pt)(lt.dispatch),_objectSpread2(_objectSpread2({},lt),{},{dispatch:ut})}}}var ReactReduxContext=React$4.createContext(null);function defaultNoopBatch(et){et()}var batch=defaultNoopBatch,setBatch=function(tt){return batch=tt},getBatch=function(){return batch};function createListenerCollection(){var et=getBatch(),tt=null,rt=null;return{clear:function(){tt=null,rt=null},notify:function(){et(function(){for(var lt=tt;lt;)lt.callback(),lt=lt.next})},get:function(){for(var lt=[],ut=tt;ut;)lt.push(ut),ut=ut.next;return lt},subscribe:function(lt){var ut=!0,dt=rt={callback:lt,next:null,prev:rt};return dt.prev?dt.prev.next=dt:tt=dt,function(){!ut||tt===null||(ut=!1,dt.next?dt.next.prev=dt.prev:rt=dt.prev,dt.prev?dt.prev.next=dt.next:tt=dt.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(et,tt){var rt,nt=nullListeners;function lt(Mt){return ht(),nt.subscribe(Mt)}function ut(){nt.notify()}function dt(){xt.onStateChange&&xt.onStateChange()}function pt(){return!!rt}function ht(){rt||(rt=tt?tt.addNestedSub(dt):et.subscribe(dt),nt=createListenerCollection())}function mt(){rt&&(rt(),rt=void 0,nt.clear(),nt=nullListeners)}var xt={addNestedSub:lt,notifyNestedSubs:ut,handleChangeWrapper:dt,isSubscribed:pt,trySubscribe:ht,tryUnsubscribe:mt,getListeners:function(){return nt}};return xt}var useIsomorphicLayoutEffect$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function Provider(et){var tt=et.store,rt=et.context,nt=et.children,lt=reactExports.useMemo(function(){var pt=createSubscription(tt);return{store:tt,subscription:pt}},[tt]),ut=reactExports.useMemo(function(){return tt.getState()},[tt]);useIsomorphicLayoutEffect$1(function(){var pt=lt.subscription;return pt.onStateChange=pt.notifyNestedSubs,pt.trySubscribe(),ut!==tt.getState()&&pt.notifyNestedSubs(),function(){pt.tryUnsubscribe(),pt.onStateChange=null}},[lt,ut]);var dt=rt||ReactReduxContext;return React$4.createElement(dt.Provider,{value:lt},nt)}var reactIs={exports:{}},reactIs_production_min={};/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b=60103,c=60106,d=60107,e=60108,f$1=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r$1=60122,u=60117,v=60129,w=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;b=x("react.element"),c=x("react.portal"),d=x("react.fragment"),e=x("react.strict_mode"),f$1=x("react.profiler"),g=x("react.provider"),h=x("react.context"),k=x("react.forward_ref"),l=x("react.suspense"),m=x("react.suspense_list"),n=x("react.memo"),p=x("react.lazy"),q=x("react.block"),r$1=x("react.server.block"),u=x("react.fundamental"),v=x("react.debug_trace_mode"),w=x("react.legacy_hidden")}function y(et){if(typeof et=="object"&&et!==null){var tt=et.$$typeof;switch(tt){case b:switch(et=et.type,et){case d:case f$1:case e:case l:case m:return et;default:switch(et=et&&et.$$typeof,et){case h:case k:case p:case n:case g:return et;default:return tt}}case c:return tt}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G$1=f$1,H=e,I=l;reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=z;reactIs_production_min.Element=A;reactIs_production_min.ForwardRef=B;reactIs_production_min.Fragment=C;reactIs_production_min.Lazy=D;reactIs_production_min.Memo=E;reactIs_production_min.Portal=F;reactIs_production_min.Profiler=G$1;reactIs_production_min.StrictMode=H;reactIs_production_min.Suspense=I;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function(et){return y(et)===h};reactIs_production_min.isContextProvider=function(et){return y(et)===g};reactIs_production_min.isElement=function(et){return typeof et=="object"&&et!==null&&et.$$typeof===b};reactIs_production_min.isForwardRef=function(et){return y(et)===k};reactIs_production_min.isFragment=function(et){return y(et)===d};reactIs_production_min.isLazy=function(et){return y(et)===p};reactIs_production_min.isMemo=function(et){return y(et)===n};reactIs_production_min.isPortal=function(et){return y(et)===c};reactIs_production_min.isProfiler=function(et){return y(et)===f$1};reactIs_production_min.isStrictMode=function(et){return y(et)===e};reactIs_production_min.isSuspense=function(et){return y(et)===l};reactIs_production_min.isValidElementType=function(et){return typeof et=="string"||typeof et=="function"||et===d||et===f$1||et===v||et===e||et===l||et===m||et===w||typeof et=="object"&&et!==null&&(et.$$typeof===p||et.$$typeof===n||et.$$typeof===g||et.$$typeof===h||et.$$typeof===k||et.$$typeof===u||et.$$typeof===q||et[0]===r$1)};reactIs_production_min.typeOf=y;reactIs.exports=reactIs_production_min;var reactIsExports=reactIs.exports,_excluded$2=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_excluded2=["reactReduxForwardedRef"],EMPTY_ARRAY=[],NO_SUBSCRIPTION_ARRAY=[null,null];function storeStateUpdatesReducer(et,tt){var rt=et[1];return[tt.payload,rt+1]}function useIsomorphicLayoutEffectWithArgs(et,tt,rt){useIsomorphicLayoutEffect$1(function(){return et.apply(void 0,tt)},rt)}function captureWrapperProps(et,tt,rt,nt,lt,ut,dt){et.current=nt,tt.current=lt,rt.current=!1,ut.current&&(ut.current=null,dt())}function subscribeUpdates(et,tt,rt,nt,lt,ut,dt,pt,ht,mt){if(et){var xt=!1,Mt=null,vt=function(){if(!xt){var Rt=tt.getState(),zt,Tt;try{zt=nt(Rt,lt.current)}catch(Ct){Tt=Ct,Mt=Ct}Tt||(Mt=null),zt===ut.current?dt.current||ht():(ut.current=zt,pt.current=zt,dt.current=!0,mt({type:"STORE_UPDATED",payload:{error:Tt}}))}};rt.onStateChange=vt,rt.trySubscribe(),vt();var Ot=function(){if(xt=!0,rt.tryUnsubscribe(),rt.onStateChange=null,Mt)throw Mt};return Ot}}var initStateUpdates=function(){return[null,0]};function connectAdvanced(et,tt){tt===void 0&&(tt={});var rt=tt,nt=rt.getDisplayName,lt=nt===void 0?function(It){return"ConnectAdvanced("+It+")"}:nt,ut=rt.methodName,dt=ut===void 0?"connectAdvanced":ut,pt=rt.renderCountProp,ht=pt===void 0?void 0:pt,mt=rt.shouldHandleStateChanges,xt=mt===void 0?!0:mt,Mt=rt.storeKey,vt=Mt===void 0?"store":Mt;rt.withRef;var Ot=rt.forwardRef,At=Ot===void 0?!1:Ot,Rt=rt.context,zt=Rt===void 0?ReactReduxContext:Rt,Tt=_objectWithoutPropertiesLoose$d(rt,_excluded$2),Ct=zt;return function(Dt){var kt=Dt.displayName||Dt.name||"Component",qt=lt(kt),Nt=_extends$j({},Tt,{getDisplayName:lt,methodName:dt,renderCountProp:ht,shouldHandleStateChanges:xt,storeKey:vt,displayName:qt,wrappedComponentName:kt,WrappedComponent:Dt}),Yt=Tt.pure;function Kt($t){return et($t.dispatch,Nt)}var Jt=Yt?reactExports.useMemo:function($t){return $t()};function Qt($t){var jt=reactExports.useMemo(function(){var wr=$t.reactReduxForwardedRef,qr=_objectWithoutPropertiesLoose$d($t,_excluded2);return[$t.context,wr,qr]},[$t]),Wt=jt[0],Ut=jt[1],Vt=jt[2],Ht=reactExports.useMemo(function(){return Wt&&Wt.Consumer&&reactIsExports.isContextConsumer(React$4.createElement(Wt.Consumer,null))?Wt:Ct},[Wt,Ct]),Gt=reactExports.useContext(Ht),Zt=!!$t.store&&!!$t.store.getState&&!!$t.store.dispatch;Gt&&Gt.store;var Xt=Zt?$t.store:Gt.store,er=reactExports.useMemo(function(){return Kt(Xt)},[Xt]),nr=reactExports.useMemo(function(){if(!xt)return NO_SUBSCRIPTION_ARRAY;var wr=createSubscription(Xt,Zt?null:Gt.subscription),qr=wr.notifyNestedSubs.bind(wr);return[wr,qr]},[Xt,Zt,Gt]),or=nr[0],rr=nr[1],cr=reactExports.useMemo(function(){return Zt?Gt:_extends$j({},Gt,{subscription:or})},[Zt,Gt,or]),ir=reactExports.useReducer(storeStateUpdatesReducer,EMPTY_ARRAY,initStateUpdates),dr=ir[0],gr=dr[0],br=ir[1];if(gr&&gr.error)throw gr.error;var ar=reactExports.useRef(),ur=reactExports.useRef(Vt),xr=reactExports.useRef(),Mr=reactExports.useRef(!1),Ar=Jt(function(){return xr.current&&Vt===ur.current?xr.current:er(Xt.getState(),Vt)},[Xt,gr,Vt]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[ur,ar,Mr,Vt,Ar,xr,rr]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[xt,Xt,or,er,ur,ar,Mr,xr,rr,br],[Xt,or,er]);var Ir=reactExports.useMemo(function(){return React$4.createElement(Dt,_extends$j({},Ar,{ref:Ut}))},[Ut,Dt,Ar]),Rr=reactExports.useMemo(function(){return xt?React$4.createElement(Ht.Provider,{value:cr},Ir):Ir},[Ht,Ir,cr]);return Rr}var Bt=Yt?React$4.memo(Qt):Qt;if(Bt.WrappedComponent=Dt,Bt.displayName=Qt.displayName=qt,At){var Ft=React$4.forwardRef(function(jt,Wt){return React$4.createElement(Bt,_extends$j({},jt,{reactReduxForwardedRef:Wt}))});return Ft.displayName=qt,Ft.WrappedComponent=Dt,hoistStatics(Ft,Dt)}return hoistStatics(Bt,Dt)}}function is(et,tt){return et===tt?et!==0||tt!==0||1/et===1/tt:et!==et&&tt!==tt}function shallowEqual(et,tt){if(is(et,tt))return!0;if(typeof et!="object"||et===null||typeof tt!="object"||tt===null)return!1;var rt=Object.keys(et),nt=Object.keys(tt);if(rt.length!==nt.length)return!1;for(var lt=0;lt<rt.length;lt++)if(!Object.prototype.hasOwnProperty.call(tt,rt[lt])||!is(et[rt[lt]],tt[rt[lt]]))return!1;return!0}function bindActionCreators(et,tt){var rt={},nt=function(dt){var pt=et[dt];typeof pt=="function"&&(rt[dt]=function(){return tt(pt.apply(void 0,arguments))})};for(var lt in et)nt(lt);return rt}function wrapMapToPropsConstant(et){return function(rt,nt){var lt=et(rt,nt);function ut(){return lt}return ut.dependsOnOwnProps=!1,ut}}function getDependsOnOwnProps(et){return et.dependsOnOwnProps!==null&&et.dependsOnOwnProps!==void 0?!!et.dependsOnOwnProps:et.length!==1}function wrapMapToPropsFunc(et,tt){return function(nt,lt){lt.displayName;var ut=function(pt,ht){return ut.dependsOnOwnProps?ut.mapToProps(pt,ht):ut.mapToProps(pt)};return ut.dependsOnOwnProps=!0,ut.mapToProps=function(pt,ht){ut.mapToProps=et,ut.dependsOnOwnProps=getDependsOnOwnProps(et);var mt=ut(pt,ht);return typeof mt=="function"&&(ut.mapToProps=mt,ut.dependsOnOwnProps=getDependsOnOwnProps(mt),mt=ut(pt,ht)),mt},ut}}function whenMapDispatchToPropsIsFunction(et){return typeof et=="function"?wrapMapToPropsFunc(et):void 0}function whenMapDispatchToPropsIsMissing(et){return et?void 0:wrapMapToPropsConstant(function(tt){return{dispatch:tt}})}function whenMapDispatchToPropsIsObject(et){return et&&typeof et=="object"?wrapMapToPropsConstant(function(tt){return bindActionCreators(et,tt)}):void 0}const defaultMapDispatchToPropsFactories=[whenMapDispatchToPropsIsFunction,whenMapDispatchToPropsIsMissing,whenMapDispatchToPropsIsObject];function whenMapStateToPropsIsFunction(et){return typeof et=="function"?wrapMapToPropsFunc(et):void 0}function whenMapStateToPropsIsMissing(et){return et?void 0:wrapMapToPropsConstant(function(){return{}})}const defaultMapStateToPropsFactories=[whenMapStateToPropsIsFunction,whenMapStateToPropsIsMissing];function defaultMergeProps(et,tt,rt){return _extends$j({},rt,et,tt)}function wrapMergePropsFunc(et){return function(rt,nt){nt.displayName;var lt=nt.pure,ut=nt.areMergedPropsEqual,dt=!1,pt;return function(mt,xt,Mt){var vt=et(mt,xt,Mt);return dt?(!lt||!ut(vt,pt))&&(pt=vt):(dt=!0,pt=vt),pt}}}function whenMergePropsIsFunction(et){return typeof et=="function"?wrapMergePropsFunc(et):void 0}function whenMergePropsIsOmitted(et){return et?void 0:function(){return defaultMergeProps}}const defaultMergePropsFactories=[whenMergePropsIsFunction,whenMergePropsIsOmitted];var _excluded$1=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function impureFinalPropsSelectorFactory(et,tt,rt,nt){return function(ut,dt){return rt(et(ut,dt),tt(nt,dt),dt)}}function pureFinalPropsSelectorFactory(et,tt,rt,nt,lt){var ut=lt.areStatesEqual,dt=lt.areOwnPropsEqual,pt=lt.areStatePropsEqual,ht=!1,mt,xt,Mt,vt,Ot;function At(It,Dt){return mt=It,xt=Dt,Mt=et(mt,xt),vt=tt(nt,xt),Ot=rt(Mt,vt,xt),ht=!0,Ot}function Rt(){return Mt=et(mt,xt),tt.dependsOnOwnProps&&(vt=tt(nt,xt)),Ot=rt(Mt,vt,xt),Ot}function zt(){return et.dependsOnOwnProps&&(Mt=et(mt,xt)),tt.dependsOnOwnProps&&(vt=tt(nt,xt)),Ot=rt(Mt,vt,xt),Ot}function Tt(){var It=et(mt,xt),Dt=!pt(It,Mt);return Mt=It,Dt&&(Ot=rt(Mt,vt,xt)),Ot}function Ct(It,Dt){var kt=!dt(Dt,xt),qt=!ut(It,mt,Dt,xt);return mt=It,xt=Dt,kt&&qt?Rt():kt?zt():qt?Tt():Ot}return function(Dt,kt){return ht?Ct(Dt,kt):At(Dt,kt)}}function finalPropsSelectorFactory(et,tt){var rt=tt.initMapStateToProps,nt=tt.initMapDispatchToProps,lt=tt.initMergeProps,ut=_objectWithoutPropertiesLoose$d(tt,_excluded$1),dt=rt(et,ut),pt=nt(et,ut),ht=lt(et,ut),mt=ut.pure?pureFinalPropsSelectorFactory:impureFinalPropsSelectorFactory;return mt(dt,pt,ht,et,ut)}var _excluded=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match(et,tt,rt){for(var nt=tt.length-1;nt>=0;nt--){var lt=tt[nt](et);if(lt)return lt}return function(ut,dt){throw new Error("Invalid value of type "+typeof et+" for "+rt+" argument when connecting component "+dt.wrappedComponentName+".")}}function strictEqual(et,tt){return et===tt}function createConnect(et){var tt=et===void 0?{}:et,rt=tt.connectHOC,nt=rt===void 0?connectAdvanced:rt,lt=tt.mapStateToPropsFactories,ut=lt===void 0?defaultMapStateToPropsFactories:lt,dt=tt.mapDispatchToPropsFactories,pt=dt===void 0?defaultMapDispatchToPropsFactories:dt,ht=tt.mergePropsFactories,mt=ht===void 0?defaultMergePropsFactories:ht,xt=tt.selectorFactory,Mt=xt===void 0?finalPropsSelectorFactory:xt;return function(Ot,At,Rt,zt){zt===void 0&&(zt={});var Tt=zt,Ct=Tt.pure,It=Ct===void 0?!0:Ct,Dt=Tt.areStatesEqual,kt=Dt===void 0?strictEqual:Dt,qt=Tt.areOwnPropsEqual,Nt=qt===void 0?shallowEqual:qt,Yt=Tt.areStatePropsEqual,Kt=Yt===void 0?shallowEqual:Yt,Jt=Tt.areMergedPropsEqual,Qt=Jt===void 0?shallowEqual:Jt,Bt=_objectWithoutPropertiesLoose$d(Tt,_excluded),Ft=match(Ot,ut,"mapStateToProps"),$t=match(At,pt,"mapDispatchToProps"),jt=match(Rt,mt,"mergeProps");return nt(Mt,_extends$j({methodName:"connect",getDisplayName:function(Ut){return"Connect("+Ut+")"},shouldHandleStateChanges:!!Ot,initMapStateToProps:Ft,initMapDispatchToProps:$t,initMergeProps:jt,pure:It,areStatesEqual:kt,areOwnPropsEqual:Nt,areStatePropsEqual:Kt,areMergedPropsEqual:Qt},Bt))}}const connect=createConnect();setBatch(reactDomExports.unstable_batchedUpdates);function log(et,tt){}log.bind(null,"warn");log.bind(null,"error");function noop$1(){}function getOptions(et,tt){return _extends$j({},et,{},tt)}function bindEvents(et,tt,rt){var nt=tt.map(function(lt){var ut=getOptions(rt,lt.options);return et.addEventListener(lt.eventName,lt.fn,ut),function(){et.removeEventListener(lt.eventName,lt.fn,ut)}});return function(){nt.forEach(function(ut){ut()})}}var prefix="Invariant failed";function RbdInvariant(et){this.message=et}RbdInvariant.prototype.toString=function(){return this.message};function invariant(et,tt){throw new RbdInvariant(prefix)}var ErrorBoundary=function(et){_inheritsLoose$3(tt,et);function tt(){for(var nt,lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=et.call.apply(et,[this].concat(ut))||this,nt.callbacks=null,nt.unbind=noop$1,nt.onWindowError=function(pt){var ht=nt.getCallbacks();ht.isDragging()&&ht.tryAbort();var mt=pt.error;mt instanceof RbdInvariant&&pt.preventDefault()},nt.getCallbacks=function(){if(!nt.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return nt.callbacks},nt.setCallbacks=function(pt){nt.callbacks=pt},nt}var rt=tt.prototype;return rt.componentDidMount=function(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])},rt.componentDidCatch=function(lt){if(lt instanceof RbdInvariant){this.setState({});return}throw lt},rt.componentWillUnmount=function(){this.unbind()},rt.render=function(){return this.props.children(this.setCallbacks)},tt}(React$4.Component),dragHandleUsageInstructions=`
  Press space bar to start a drag.
  When dragging you can use the arrow keys to move the item around and escape to cancel.
  Some screen readers may require you to be in focus mode or to use your pass through key
`,position=function(tt){return tt+1},onDragStart=function(tt){return`
  You have lifted an item in position `+position(tt.source.index)+`
`},withLocation=function(tt,rt){var nt=tt.droppableId===rt.droppableId,lt=position(tt.index),ut=position(rt.index);return nt?`
      You have moved the item from position `+lt+`
      to position `+ut+`
    `:`
    You have moved the item from position `+lt+`
    in list `+tt.droppableId+`
    to list `+rt.droppableId+`
    in position `+ut+`
  `},withCombine=function(tt,rt,nt){var lt=rt.droppableId===nt.droppableId;return lt?`
      The item `+tt+`
      has been combined with `+nt.draggableId:`
      The item `+tt+`
      in list `+rt.droppableId+`
      has been combined with `+nt.draggableId+`
      in list `+nt.droppableId+`
    `},onDragUpdate=function(tt){var rt=tt.destination;if(rt)return withLocation(tt.source,rt);var nt=tt.combine;return nt?withCombine(tt.draggableId,tt.source,nt):"You are over an area that cannot be dropped on"},returnedToStart=function(tt){return`
  The item has returned to its starting position
  of `+position(tt.index)+`
`},onDragEnd=function(tt){if(tt.reason==="CANCEL")return`
      Movement cancelled.
      `+returnedToStart(tt.source)+`
    `;var rt=tt.destination,nt=tt.combine;return rt?`
      You have dropped the item.
      `+withLocation(tt.source,rt)+`
    `:nt?`
      You have dropped the item.
      `+withCombine(tt.draggableId,tt.source,nt)+`
    `:`
    The item has been dropped while not over a drop area.
    `+returnedToStart(tt.source)+`
  `},preset={dragHandleUsageInstructions,onDragStart,onDragUpdate,onDragEnd},origin={x:0,y:0},add=function(tt,rt){return{x:tt.x+rt.x,y:tt.y+rt.y}},subtract=function(tt,rt){return{x:tt.x-rt.x,y:tt.y-rt.y}},isEqual=function(tt,rt){return tt.x===rt.x&&tt.y===rt.y},negate=function(tt){return{x:tt.x!==0?-tt.x:0,y:tt.y!==0?-tt.y:0}},patch=function(tt,rt,nt){var lt;return nt===void 0&&(nt=0),lt={},lt[tt]=rt,lt[tt==="x"?"y":"x"]=nt,lt},distance=function(tt,rt){return Math.sqrt(Math.pow(rt.x-tt.x,2)+Math.pow(rt.y-tt.y,2))},closest=function(tt,rt){return Math.min.apply(Math,rt.map(function(nt){return distance(tt,nt)}))},apply=function(tt){return function(rt){return{x:tt(rt.x),y:tt(rt.y)}}},executeClip=function(et,tt){var rt=getRect({top:Math.max(tt.top,et.top),right:Math.min(tt.right,et.right),bottom:Math.min(tt.bottom,et.bottom),left:Math.max(tt.left,et.left)});return rt.width<=0||rt.height<=0?null:rt},offsetByPosition=function(tt,rt){return{top:tt.top+rt.y,left:tt.left+rt.x,bottom:tt.bottom+rt.y,right:tt.right+rt.x}},getCorners=function(tt){return[{x:tt.left,y:tt.top},{x:tt.right,y:tt.top},{x:tt.left,y:tt.bottom},{x:tt.right,y:tt.bottom}]},noSpacing={top:0,right:0,bottom:0,left:0},scroll=function(tt,rt){return rt?offsetByPosition(tt,rt.scroll.diff.displacement):tt},increase=function(tt,rt,nt){if(nt&&nt.increasedBy){var lt;return _extends$j({},tt,(lt={},lt[rt.end]=tt[rt.end]+nt.increasedBy[rt.line],lt))}return tt},clip=function(tt,rt){return rt&&rt.shouldClipSubject?executeClip(rt.pageMarginBox,tt):getRect(tt)},getSubject=function(et){var tt=et.page,rt=et.withPlaceholder,nt=et.axis,lt=et.frame,ut=scroll(tt.marginBox,lt),dt=increase(ut,nt,rt),pt=clip(dt,lt);return{page:tt,withPlaceholder:rt,active:pt}},scrollDroppable=function(et,tt){et.frame||invariant();var rt=et.frame,nt=subtract(tt,rt.scroll.initial),lt=negate(nt),ut=_extends$j({},rt,{scroll:{initial:rt.scroll.initial,current:tt,diff:{value:nt,displacement:lt},max:rt.scroll.max}}),dt=getSubject({page:et.subject.page,withPlaceholder:et.subject.withPlaceholder,axis:et.axis,frame:ut}),pt=_extends$j({},et,{frame:ut,subject:dt});return pt};function values(et){return Object.values?Object.values(et):Object.keys(et).map(function(tt){return et[tt]})}function findIndex(et,tt){if(et.findIndex)return et.findIndex(tt);for(var rt=0;rt<et.length;rt++)if(tt(et[rt]))return rt;return-1}function find$1(et,tt){if(et.find)return et.find(tt);var rt=findIndex(et,tt);if(rt!==-1)return et[rt]}function toArray$2(et){return Array.prototype.slice.call(et)}var toDroppableMap=memoizeOne$1(function(et){return et.reduce(function(tt,rt){return tt[rt.descriptor.id]=rt,tt},{})}),toDraggableMap=memoizeOne$1(function(et){return et.reduce(function(tt,rt){return tt[rt.descriptor.id]=rt,tt},{})}),toDroppableList=memoizeOne$1(function(et){return values(et)}),toDraggableList=memoizeOne$1(function(et){return values(et)}),getDraggablesInsideDroppable=memoizeOne$1(function(et,tt){var rt=toDraggableList(tt).filter(function(nt){return et===nt.descriptor.droppableId}).sort(function(nt,lt){return nt.descriptor.index-lt.descriptor.index});return rt});function tryGetDestination(et){return et.at&&et.at.type==="REORDER"?et.at.destination:null}function tryGetCombine(et){return et.at&&et.at.type==="COMBINE"?et.at.combine:null}var removeDraggableFromList=memoizeOne$1(function(et,tt){return tt.filter(function(rt){return rt.descriptor.id!==et.descriptor.id})}),moveToNextCombine=function(et){var tt=et.isMovingForward,rt=et.draggable,nt=et.destination,lt=et.insideDestination,ut=et.previousImpact;if(!nt.isCombineEnabled)return null;var dt=tryGetDestination(ut);if(!dt)return null;function pt(Rt){var zt={type:"COMBINE",combine:{draggableId:Rt,droppableId:nt.descriptor.id}};return _extends$j({},ut,{at:zt})}var ht=ut.displaced.all,mt=ht.length?ht[0]:null;if(tt)return mt?pt(mt):null;var xt=removeDraggableFromList(rt,lt);if(!mt){if(!xt.length)return null;var Mt=xt[xt.length-1];return pt(Mt.descriptor.id)}var vt=findIndex(xt,function(Rt){return Rt.descriptor.id===mt});vt===-1&&invariant();var Ot=vt-1;if(Ot<0)return null;var At=xt[Ot];return pt(At.descriptor.id)},isHomeOf=function(et,tt){return et.descriptor.droppableId===tt.descriptor.id},noDisplacedBy={point:origin,value:0},emptyGroups={invisible:{},visible:{},all:[]},noImpact={displaced:emptyGroups,displacedBy:noDisplacedBy,at:null},isWithin=function(et,tt){return function(rt){return et<=rt&&rt<=tt}},isPartiallyVisibleThroughFrame=function(et){var tt=isWithin(et.top,et.bottom),rt=isWithin(et.left,et.right);return function(nt){var lt=tt(nt.top)&&tt(nt.bottom)&&rt(nt.left)&&rt(nt.right);if(lt)return!0;var ut=tt(nt.top)||tt(nt.bottom),dt=rt(nt.left)||rt(nt.right),pt=ut&&dt;if(pt)return!0;var ht=nt.top<et.top&&nt.bottom>et.bottom,mt=nt.left<et.left&&nt.right>et.right,xt=ht&&mt;if(xt)return!0;var Mt=ht&&dt||mt&&ut;return Mt}},isTotallyVisibleThroughFrame=function(et){var tt=isWithin(et.top,et.bottom),rt=isWithin(et.left,et.right);return function(nt){var lt=tt(nt.top)&&tt(nt.bottom)&&rt(nt.left)&&rt(nt.right);return lt}},vertical={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},horizontal={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},isTotallyVisibleThroughFrameOnAxis=function(et){return function(tt){var rt=isWithin(tt.top,tt.bottom),nt=isWithin(tt.left,tt.right);return function(lt){return et===vertical?rt(lt.top)&&rt(lt.bottom):nt(lt.left)&&nt(lt.right)}}},getDroppableDisplaced=function(tt,rt){var nt=rt.frame?rt.frame.scroll.diff.displacement:origin;return offsetByPosition(tt,nt)},isVisibleInDroppable=function(tt,rt,nt){return rt.subject.active?nt(rt.subject.active)(tt):!1},isVisibleInViewport=function(tt,rt,nt){return nt(rt)(tt)},isVisible=function(tt){var rt=tt.target,nt=tt.destination,lt=tt.viewport,ut=tt.withDroppableDisplacement,dt=tt.isVisibleThroughFrameFn,pt=ut?getDroppableDisplaced(rt,nt):rt;return isVisibleInDroppable(pt,nt,dt)&&isVisibleInViewport(pt,lt,dt)},isPartiallyVisible=function(tt){return isVisible(_extends$j({},tt,{isVisibleThroughFrameFn:isPartiallyVisibleThroughFrame}))},isTotallyVisible=function(tt){return isVisible(_extends$j({},tt,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrame}))},isTotallyVisibleOnAxis=function(tt){return isVisible(_extends$j({},tt,{isVisibleThroughFrameFn:isTotallyVisibleThroughFrameOnAxis(tt.destination.axis)}))},getShouldAnimate=function(tt,rt,nt){if(typeof nt=="boolean")return nt;if(!rt)return!0;var lt=rt.invisible,ut=rt.visible;if(lt[tt])return!1;var dt=ut[tt];return dt?dt.shouldAnimate:!0};function getTarget(et,tt){var rt=et.page.marginBox,nt={top:tt.point.y,right:0,bottom:0,left:tt.point.x};return getRect(expand(rt,nt))}function getDisplacementGroups(et){var tt=et.afterDragging,rt=et.destination,nt=et.displacedBy,lt=et.viewport,ut=et.forceShouldAnimate,dt=et.last;return tt.reduce(function(ht,mt){var xt=getTarget(mt,nt),Mt=mt.descriptor.id;ht.all.push(Mt);var vt=isPartiallyVisible({target:xt,destination:rt,viewport:lt,withDroppableDisplacement:!0});if(!vt)return ht.invisible[mt.descriptor.id]=!0,ht;var Ot=getShouldAnimate(Mt,dt,ut),At={draggableId:Mt,shouldAnimate:Ot};return ht.visible[Mt]=At,ht},{all:[],visible:{},invisible:{}})}function getIndexOfLastItem(et,tt){if(!et.length)return 0;var rt=et[et.length-1].descriptor.index;return tt.inHomeList?rt:rt+1}function goAtEnd(et){var tt=et.insideDestination,rt=et.inHomeList,nt=et.displacedBy,lt=et.destination,ut=getIndexOfLastItem(tt,{inHomeList:rt});return{displaced:emptyGroups,displacedBy:nt,at:{type:"REORDER",destination:{droppableId:lt.descriptor.id,index:ut}}}}function calculateReorderImpact(et){var tt=et.draggable,rt=et.insideDestination,nt=et.destination,lt=et.viewport,ut=et.displacedBy,dt=et.last,pt=et.index,ht=et.forceShouldAnimate,mt=isHomeOf(tt,nt);if(pt==null)return goAtEnd({insideDestination:rt,inHomeList:mt,displacedBy:ut,destination:nt});var xt=find$1(rt,function(Rt){return Rt.descriptor.index===pt});if(!xt)return goAtEnd({insideDestination:rt,inHomeList:mt,displacedBy:ut,destination:nt});var Mt=removeDraggableFromList(tt,rt),vt=rt.indexOf(xt),Ot=Mt.slice(vt),At=getDisplacementGroups({afterDragging:Ot,destination:nt,displacedBy:ut,last:dt,viewport:lt.frame,forceShouldAnimate:ht});return{displaced:At,displacedBy:ut,at:{type:"REORDER",destination:{droppableId:nt.descriptor.id,index:pt}}}}function didStartAfterCritical(et,tt){return!!tt.effected[et]}var fromCombine=function(et){var tt=et.isMovingForward,rt=et.destination,nt=et.draggables,lt=et.combine,ut=et.afterCritical;if(!rt.isCombineEnabled)return null;var dt=lt.draggableId,pt=nt[dt],ht=pt.descriptor.index,mt=didStartAfterCritical(dt,ut);return mt?tt?ht:ht-1:tt?ht+1:ht},fromReorder=function(et){var tt=et.isMovingForward,rt=et.isInHomeList,nt=et.insideDestination,lt=et.location;if(!nt.length)return null;var ut=lt.index,dt=tt?ut+1:ut-1,pt=nt[0].descriptor.index,ht=nt[nt.length-1].descriptor.index,mt=rt?ht:ht+1;return dt<pt||dt>mt?null:dt},moveToNextIndex=function(et){var tt=et.isMovingForward,rt=et.isInHomeList,nt=et.draggable,lt=et.draggables,ut=et.destination,dt=et.insideDestination,pt=et.previousImpact,ht=et.viewport,mt=et.afterCritical,xt=pt.at;if(xt||invariant(),xt.type==="REORDER"){var Mt=fromReorder({isMovingForward:tt,isInHomeList:rt,location:xt.destination,insideDestination:dt});return Mt==null?null:calculateReorderImpact({draggable:nt,insideDestination:dt,destination:ut,viewport:ht,last:pt.displaced,displacedBy:pt.displacedBy,index:Mt})}var vt=fromCombine({isMovingForward:tt,destination:ut,displaced:pt.displaced,draggables:lt,combine:xt.combine,afterCritical:mt});return vt==null?null:calculateReorderImpact({draggable:nt,insideDestination:dt,destination:ut,viewport:ht,last:pt.displaced,displacedBy:pt.displacedBy,index:vt})},getCombinedItemDisplacement=function(et){var tt=et.displaced,rt=et.afterCritical,nt=et.combineWith,lt=et.displacedBy,ut=!!(tt.visible[nt]||tt.invisible[nt]);return didStartAfterCritical(nt,rt)?ut?origin:negate(lt.point):ut?lt.point:origin},whenCombining=function(et){var tt=et.afterCritical,rt=et.impact,nt=et.draggables,lt=tryGetCombine(rt);lt||invariant();var ut=lt.draggableId,dt=nt[ut].page.borderBox.center,pt=getCombinedItemDisplacement({displaced:rt.displaced,afterCritical:tt,combineWith:ut,displacedBy:rt.displacedBy});return add(dt,pt)},distanceFromStartToBorderBoxCenter=function(tt,rt){return rt.margin[tt.start]+rt.borderBox[tt.size]/2},distanceFromEndToBorderBoxCenter=function(tt,rt){return rt.margin[tt.end]+rt.borderBox[tt.size]/2},getCrossAxisBorderBoxCenter=function(tt,rt,nt){return rt[tt.crossAxisStart]+nt.margin[tt.crossAxisStart]+nt.borderBox[tt.crossAxisSize]/2},goAfter=function(tt){var rt=tt.axis,nt=tt.moveRelativeTo,lt=tt.isMoving;return patch(rt.line,nt.marginBox[rt.end]+distanceFromStartToBorderBoxCenter(rt,lt),getCrossAxisBorderBoxCenter(rt,nt.marginBox,lt))},goBefore=function(tt){var rt=tt.axis,nt=tt.moveRelativeTo,lt=tt.isMoving;return patch(rt.line,nt.marginBox[rt.start]-distanceFromEndToBorderBoxCenter(rt,lt),getCrossAxisBorderBoxCenter(rt,nt.marginBox,lt))},goIntoStart=function(tt){var rt=tt.axis,nt=tt.moveInto,lt=tt.isMoving;return patch(rt.line,nt.contentBox[rt.start]+distanceFromStartToBorderBoxCenter(rt,lt),getCrossAxisBorderBoxCenter(rt,nt.contentBox,lt))},whenReordering=function(et){var tt=et.impact,rt=et.draggable,nt=et.draggables,lt=et.droppable,ut=et.afterCritical,dt=getDraggablesInsideDroppable(lt.descriptor.id,nt),pt=rt.page,ht=lt.axis;if(!dt.length)return goIntoStart({axis:ht,moveInto:lt.page,isMoving:pt});var mt=tt.displaced,xt=tt.displacedBy,Mt=mt.all[0];if(Mt){var vt=nt[Mt];if(didStartAfterCritical(Mt,ut))return goBefore({axis:ht,moveRelativeTo:vt.page,isMoving:pt});var Ot=offset(vt.page,xt.point);return goBefore({axis:ht,moveRelativeTo:Ot,isMoving:pt})}var At=dt[dt.length-1];if(At.descriptor.id===rt.descriptor.id)return pt.borderBox.center;if(didStartAfterCritical(At.descriptor.id,ut)){var Rt=offset(At.page,negate(ut.displacedBy.point));return goAfter({axis:ht,moveRelativeTo:Rt,isMoving:pt})}return goAfter({axis:ht,moveRelativeTo:At.page,isMoving:pt})},withDroppableDisplacement=function(et,tt){var rt=et.frame;return rt?add(tt,rt.scroll.diff.displacement):tt},getResultWithoutDroppableDisplacement=function(tt){var rt=tt.impact,nt=tt.draggable,lt=tt.droppable,ut=tt.draggables,dt=tt.afterCritical,pt=nt.page.borderBox.center,ht=rt.at;return!lt||!ht?pt:ht.type==="REORDER"?whenReordering({impact:rt,draggable:nt,draggables:ut,droppable:lt,afterCritical:dt}):whenCombining({impact:rt,draggables:ut,afterCritical:dt})},getPageBorderBoxCenterFromImpact=function(et){var tt=getResultWithoutDroppableDisplacement(et),rt=et.droppable,nt=rt?withDroppableDisplacement(rt,tt):tt;return nt},scrollViewport=function(et,tt){var rt=subtract(tt,et.scroll.initial),nt=negate(rt),lt=getRect({top:tt.y,bottom:tt.y+et.frame.height,left:tt.x,right:tt.x+et.frame.width}),ut={frame:lt,scroll:{initial:et.scroll.initial,max:et.scroll.max,current:tt,diff:{value:rt,displacement:nt}}};return ut};function getDraggables(et,tt){return et.map(function(rt){return tt[rt]})}function tryGetVisible(et,tt){for(var rt=0;rt<tt.length;rt++){var nt=tt[rt].visible[et];if(nt)return nt}return null}var speculativelyIncrease=function(et){var tt=et.impact,rt=et.viewport,nt=et.destination,lt=et.draggables,ut=et.maxScrollChange,dt=scrollViewport(rt,add(rt.scroll.current,ut)),pt=nt.frame?scrollDroppable(nt,add(nt.frame.scroll.current,ut)):nt,ht=tt.displaced,mt=getDisplacementGroups({afterDragging:getDraggables(ht.all,lt),destination:nt,displacedBy:tt.displacedBy,viewport:dt.frame,last:ht,forceShouldAnimate:!1}),xt=getDisplacementGroups({afterDragging:getDraggables(ht.all,lt),destination:pt,displacedBy:tt.displacedBy,viewport:rt.frame,last:ht,forceShouldAnimate:!1}),Mt={},vt={},Ot=[ht,mt,xt];ht.all.forEach(function(Rt){var zt=tryGetVisible(Rt,Ot);if(zt){vt[Rt]=zt;return}Mt[Rt]=!0});var At=_extends$j({},tt,{displaced:{all:ht.all,invisible:Mt,visible:vt}});return At},withViewportDisplacement=function(et,tt){return add(et.scroll.diff.displacement,tt)},getClientFromPageBorderBoxCenter=function(et){var tt=et.pageBorderBoxCenter,rt=et.draggable,nt=et.viewport,lt=withViewportDisplacement(nt,tt),ut=subtract(lt,rt.page.borderBox.center);return add(rt.client.borderBox.center,ut)},isTotallyVisibleInNewLocation=function(et){var tt=et.draggable,rt=et.destination,nt=et.newPageBorderBoxCenter,lt=et.viewport,ut=et.withDroppableDisplacement,dt=et.onlyOnMainAxis,pt=dt===void 0?!1:dt,ht=subtract(nt,tt.page.borderBox.center),mt=offsetByPosition(tt.page.borderBox,ht),xt={target:mt,destination:rt,withDroppableDisplacement:ut,viewport:lt};return pt?isTotallyVisibleOnAxis(xt):isTotallyVisible(xt)},moveToNextPlace=function(et){var tt=et.isMovingForward,rt=et.draggable,nt=et.destination,lt=et.draggables,ut=et.previousImpact,dt=et.viewport,pt=et.previousPageBorderBoxCenter,ht=et.previousClientSelection,mt=et.afterCritical;if(!nt.isEnabled)return null;var xt=getDraggablesInsideDroppable(nt.descriptor.id,lt),Mt=isHomeOf(rt,nt),vt=moveToNextCombine({isMovingForward:tt,draggable:rt,destination:nt,insideDestination:xt,previousImpact:ut})||moveToNextIndex({isMovingForward:tt,isInHomeList:Mt,draggable:rt,draggables:lt,destination:nt,insideDestination:xt,previousImpact:ut,viewport:dt,afterCritical:mt});if(!vt)return null;var Ot=getPageBorderBoxCenterFromImpact({impact:vt,draggable:rt,droppable:nt,draggables:lt,afterCritical:mt}),At=isTotallyVisibleInNewLocation({draggable:rt,destination:nt,newPageBorderBoxCenter:Ot,viewport:dt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(At){var Rt=getClientFromPageBorderBoxCenter({pageBorderBoxCenter:Ot,draggable:rt,viewport:dt});return{clientSelection:Rt,impact:vt,scrollJumpRequest:null}}var zt=subtract(Ot,pt),Tt=speculativelyIncrease({impact:vt,viewport:dt,destination:nt,draggables:lt,maxScrollChange:zt});return{clientSelection:ht,impact:Tt,scrollJumpRequest:zt}},getKnownActive=function(tt){var rt=tt.subject.active;return rt||invariant(),rt},getBestCrossAxisDroppable=function(et){var tt=et.isMovingForward,rt=et.pageBorderBoxCenter,nt=et.source,lt=et.droppables,ut=et.viewport,dt=nt.subject.active;if(!dt)return null;var pt=nt.axis,ht=isWithin(dt[pt.start],dt[pt.end]),mt=toDroppableList(lt).filter(function(Mt){return Mt!==nt}).filter(function(Mt){return Mt.isEnabled}).filter(function(Mt){return!!Mt.subject.active}).filter(function(Mt){return isPartiallyVisibleThroughFrame(ut.frame)(getKnownActive(Mt))}).filter(function(Mt){var vt=getKnownActive(Mt);return tt?dt[pt.crossAxisEnd]<vt[pt.crossAxisEnd]:vt[pt.crossAxisStart]<dt[pt.crossAxisStart]}).filter(function(Mt){var vt=getKnownActive(Mt),Ot=isWithin(vt[pt.start],vt[pt.end]);return ht(vt[pt.start])||ht(vt[pt.end])||Ot(dt[pt.start])||Ot(dt[pt.end])}).sort(function(Mt,vt){var Ot=getKnownActive(Mt)[pt.crossAxisStart],At=getKnownActive(vt)[pt.crossAxisStart];return tt?Ot-At:At-Ot}).filter(function(Mt,vt,Ot){return getKnownActive(Mt)[pt.crossAxisStart]===getKnownActive(Ot[0])[pt.crossAxisStart]});if(!mt.length)return null;if(mt.length===1)return mt[0];var xt=mt.filter(function(Mt){var vt=isWithin(getKnownActive(Mt)[pt.start],getKnownActive(Mt)[pt.end]);return vt(rt[pt.line])});return xt.length===1?xt[0]:xt.length>1?xt.sort(function(Mt,vt){return getKnownActive(Mt)[pt.start]-getKnownActive(vt)[pt.start]})[0]:mt.sort(function(Mt,vt){var Ot=closest(rt,getCorners(getKnownActive(Mt))),At=closest(rt,getCorners(getKnownActive(vt)));return Ot!==At?Ot-At:getKnownActive(Mt)[pt.start]-getKnownActive(vt)[pt.start]})[0]},getCurrentPageBorderBoxCenter=function(tt,rt){var nt=tt.page.borderBox.center;return didStartAfterCritical(tt.descriptor.id,rt)?subtract(nt,rt.displacedBy.point):nt},getCurrentPageBorderBox=function(tt,rt){var nt=tt.page.borderBox;return didStartAfterCritical(tt.descriptor.id,rt)?offsetByPosition(nt,negate(rt.displacedBy.point)):nt},getClosestDraggable=function(et){var tt=et.pageBorderBoxCenter,rt=et.viewport,nt=et.destination,lt=et.insideDestination,ut=et.afterCritical,dt=lt.filter(function(pt){return isTotallyVisible({target:getCurrentPageBorderBox(pt,ut),destination:nt,viewport:rt.frame,withDroppableDisplacement:!0})}).sort(function(pt,ht){var mt=distance(tt,withDroppableDisplacement(nt,getCurrentPageBorderBoxCenter(pt,ut))),xt=distance(tt,withDroppableDisplacement(nt,getCurrentPageBorderBoxCenter(ht,ut)));return mt<xt?-1:xt<mt?1:pt.descriptor.index-ht.descriptor.index});return dt[0]||null},getDisplacedBy=memoizeOne$1(function(tt,rt){var nt=rt[tt.line];return{value:nt,point:patch(tt.line,nt)}}),getRequiredGrowthForPlaceholder=function(tt,rt,nt){var lt=tt.axis;if(tt.descriptor.mode==="virtual")return patch(lt.line,rt[lt.line]);var ut=tt.subject.page.contentBox[lt.size],dt=getDraggablesInsideDroppable(tt.descriptor.id,nt),pt=dt.reduce(function(xt,Mt){return xt+Mt.client.marginBox[lt.size]},0),ht=pt+rt[lt.line],mt=ht-ut;return mt<=0?null:patch(lt.line,mt)},withMaxScroll=function(tt,rt){return _extends$j({},tt,{scroll:_extends$j({},tt.scroll,{max:rt})})},addPlaceholder=function(tt,rt,nt){var lt=tt.frame;isHomeOf(rt,tt)&&invariant(),tt.subject.withPlaceholder&&invariant();var ut=getDisplacedBy(tt.axis,rt.displaceBy).point,dt=getRequiredGrowthForPlaceholder(tt,ut,nt),pt={placeholderSize:ut,increasedBy:dt,oldFrameMaxScroll:tt.frame?tt.frame.scroll.max:null};if(!lt){var ht=getSubject({page:tt.subject.page,withPlaceholder:pt,axis:tt.axis,frame:tt.frame});return _extends$j({},tt,{subject:ht})}var mt=dt?add(lt.scroll.max,dt):lt.scroll.max,xt=withMaxScroll(lt,mt),Mt=getSubject({page:tt.subject.page,withPlaceholder:pt,axis:tt.axis,frame:xt});return _extends$j({},tt,{subject:Mt,frame:xt})},removePlaceholder=function(tt){var rt=tt.subject.withPlaceholder;rt||invariant();var nt=tt.frame;if(!nt){var lt=getSubject({page:tt.subject.page,axis:tt.axis,frame:null,withPlaceholder:null});return _extends$j({},tt,{subject:lt})}var ut=rt.oldFrameMaxScroll;ut||invariant();var dt=withMaxScroll(nt,ut),pt=getSubject({page:tt.subject.page,axis:tt.axis,frame:dt,withPlaceholder:null});return _extends$j({},tt,{subject:pt,frame:dt})},moveToNewDroppable=function(et){var tt=et.previousPageBorderBoxCenter,rt=et.moveRelativeTo,nt=et.insideDestination,lt=et.draggable,ut=et.draggables,dt=et.destination,pt=et.viewport,ht=et.afterCritical;if(!rt){if(nt.length)return null;var mt={displaced:emptyGroups,displacedBy:noDisplacedBy,at:{type:"REORDER",destination:{droppableId:dt.descriptor.id,index:0}}},xt=getPageBorderBoxCenterFromImpact({impact:mt,draggable:lt,droppable:dt,draggables:ut,afterCritical:ht}),Mt=isHomeOf(lt,dt)?dt:addPlaceholder(dt,lt,ut),vt=isTotallyVisibleInNewLocation({draggable:lt,destination:Mt,newPageBorderBoxCenter:xt,viewport:pt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return vt?mt:null}var Ot=tt[dt.axis.line]<=rt.page.borderBox.center[dt.axis.line],At=function(){var zt=rt.descriptor.index;return rt.descriptor.id===lt.descriptor.id||Ot?zt:zt+1}(),Rt=getDisplacedBy(dt.axis,lt.displaceBy);return calculateReorderImpact({draggable:lt,insideDestination:nt,destination:dt,viewport:pt,displacedBy:Rt,last:emptyGroups,index:At})},moveCrossAxis=function(et){var tt=et.isMovingForward,rt=et.previousPageBorderBoxCenter,nt=et.draggable,lt=et.isOver,ut=et.draggables,dt=et.droppables,pt=et.viewport,ht=et.afterCritical,mt=getBestCrossAxisDroppable({isMovingForward:tt,pageBorderBoxCenter:rt,source:lt,droppables:dt,viewport:pt});if(!mt)return null;var xt=getDraggablesInsideDroppable(mt.descriptor.id,ut),Mt=getClosestDraggable({pageBorderBoxCenter:rt,viewport:pt,destination:mt,insideDestination:xt,afterCritical:ht}),vt=moveToNewDroppable({previousPageBorderBoxCenter:rt,destination:mt,draggable:nt,draggables:ut,moveRelativeTo:Mt,insideDestination:xt,viewport:pt,afterCritical:ht});if(!vt)return null;var Ot=getPageBorderBoxCenterFromImpact({impact:vt,draggable:nt,droppable:mt,draggables:ut,afterCritical:ht}),At=getClientFromPageBorderBoxCenter({pageBorderBoxCenter:Ot,draggable:nt,viewport:pt});return{clientSelection:At,impact:vt,scrollJumpRequest:null}},whatIsDraggedOver=function(et){var tt=et.at;return tt?tt.type==="REORDER"?tt.destination.droppableId:tt.combine.droppableId:null},getDroppableOver=function(tt,rt){var nt=whatIsDraggedOver(tt);return nt?rt[nt]:null},moveInDirection=function(et){var tt=et.state,rt=et.type,nt=getDroppableOver(tt.impact,tt.dimensions.droppables),lt=!!nt,ut=tt.dimensions.droppables[tt.critical.droppable.id],dt=nt||ut,pt=dt.axis.direction,ht=pt==="vertical"&&(rt==="MOVE_UP"||rt==="MOVE_DOWN")||pt==="horizontal"&&(rt==="MOVE_LEFT"||rt==="MOVE_RIGHT");if(ht&&!lt)return null;var mt=rt==="MOVE_DOWN"||rt==="MOVE_RIGHT",xt=tt.dimensions.draggables[tt.critical.draggable.id],Mt=tt.current.page.borderBoxCenter,vt=tt.dimensions,Ot=vt.draggables,At=vt.droppables;return ht?moveToNextPlace({isMovingForward:mt,previousPageBorderBoxCenter:Mt,draggable:xt,destination:dt,draggables:Ot,viewport:tt.viewport,previousClientSelection:tt.current.client.selection,previousImpact:tt.impact,afterCritical:tt.afterCritical}):moveCrossAxis({isMovingForward:mt,previousPageBorderBoxCenter:Mt,draggable:xt,isOver:dt,draggables:Ot,droppables:At,viewport:tt.viewport,afterCritical:tt.afterCritical})};function isMovementAllowed(et){return et.phase==="DRAGGING"||et.phase==="COLLECTING"}function isPositionInFrame(et){var tt=isWithin(et.top,et.bottom),rt=isWithin(et.left,et.right);return function(lt){return tt(lt.y)&&rt(lt.x)}}function getHasOverlap(et,tt){return et.left<tt.right&&et.right>tt.left&&et.top<tt.bottom&&et.bottom>tt.top}function getFurthestAway(et){var tt=et.pageBorderBox,rt=et.draggable,nt=et.candidates,lt=rt.page.borderBox.center,ut=nt.map(function(dt){var pt=dt.axis,ht=patch(dt.axis.line,tt.center[pt.line],dt.page.borderBox.center[pt.crossAxisLine]);return{id:dt.descriptor.id,distance:distance(lt,ht)}}).sort(function(dt,pt){return pt.distance-dt.distance});return ut[0]?ut[0].id:null}function getDroppableOver$1(et){var tt=et.pageBorderBox,rt=et.draggable,nt=et.droppables,lt=toDroppableList(nt).filter(function(ut){if(!ut.isEnabled)return!1;var dt=ut.subject.active;if(!dt||!getHasOverlap(tt,dt))return!1;if(isPositionInFrame(dt)(tt.center))return!0;var pt=ut.axis,ht=dt.center[pt.crossAxisLine],mt=tt[pt.crossAxisStart],xt=tt[pt.crossAxisEnd],Mt=isWithin(dt[pt.crossAxisStart],dt[pt.crossAxisEnd]),vt=Mt(mt),Ot=Mt(xt);return!vt&&!Ot?!0:vt?mt<ht:xt>ht});return lt.length?lt.length===1?lt[0].descriptor.id:getFurthestAway({pageBorderBox:tt,draggable:rt,candidates:lt}):null}var offsetRectByPosition=function(tt,rt){return getRect(offsetByPosition(tt,rt))},withDroppableScroll=function(et,tt){var rt=et.frame;return rt?offsetRectByPosition(tt,rt.scroll.diff.value):tt};function getIsDisplaced(et){var tt=et.displaced,rt=et.id;return!!(tt.visible[rt]||tt.invisible[rt])}function atIndex(et){var tt=et.draggable,rt=et.closest,nt=et.inHomeList;return rt?nt&&rt.descriptor.index>tt.descriptor.index?rt.descriptor.index-1:rt.descriptor.index:null}var getReorderImpact=function(et){var tt=et.pageBorderBoxWithDroppableScroll,rt=et.draggable,nt=et.destination,lt=et.insideDestination,ut=et.last,dt=et.viewport,pt=et.afterCritical,ht=nt.axis,mt=getDisplacedBy(nt.axis,rt.displaceBy),xt=mt.value,Mt=tt[ht.start],vt=tt[ht.end],Ot=removeDraggableFromList(rt,lt),At=find$1(Ot,function(zt){var Tt=zt.descriptor.id,Ct=zt.page.borderBox.center[ht.line],It=didStartAfterCritical(Tt,pt),Dt=getIsDisplaced({displaced:ut,id:Tt});return It?Dt?vt<=Ct:Mt<Ct-xt:Dt?vt<=Ct+xt:Mt<Ct}),Rt=atIndex({draggable:rt,closest:At,inHomeList:isHomeOf(rt,nt)});return calculateReorderImpact({draggable:rt,insideDestination:lt,destination:nt,viewport:dt,last:ut,displacedBy:mt,index:Rt})},combineThresholdDivisor=4,getCombineImpact=function(et){var tt=et.draggable,rt=et.pageBorderBoxWithDroppableScroll,nt=et.previousImpact,lt=et.destination,ut=et.insideDestination,dt=et.afterCritical;if(!lt.isCombineEnabled)return null;var pt=lt.axis,ht=getDisplacedBy(lt.axis,tt.displaceBy),mt=ht.value,xt=rt[pt.start],Mt=rt[pt.end],vt=removeDraggableFromList(tt,ut),Ot=find$1(vt,function(Rt){var zt=Rt.descriptor.id,Tt=Rt.page.borderBox,Ct=Tt[pt.size],It=Ct/combineThresholdDivisor,Dt=didStartAfterCritical(zt,dt),kt=getIsDisplaced({displaced:nt.displaced,id:zt});return Dt?kt?Mt>Tt[pt.start]+It&&Mt<Tt[pt.end]-It:xt>Tt[pt.start]-mt+It&&xt<Tt[pt.end]-mt-It:kt?Mt>Tt[pt.start]+mt+It&&Mt<Tt[pt.end]+mt-It:xt>Tt[pt.start]+It&&xt<Tt[pt.end]-It});if(!Ot)return null;var At={displacedBy:ht,displaced:nt.displaced,at:{type:"COMBINE",combine:{draggableId:Ot.descriptor.id,droppableId:lt.descriptor.id}}};return At},getDragImpact=function(et){var tt=et.pageOffset,rt=et.draggable,nt=et.draggables,lt=et.droppables,ut=et.previousImpact,dt=et.viewport,pt=et.afterCritical,ht=offsetRectByPosition(rt.page.borderBox,tt),mt=getDroppableOver$1({pageBorderBox:ht,draggable:rt,droppables:lt});if(!mt)return noImpact;var xt=lt[mt],Mt=getDraggablesInsideDroppable(xt.descriptor.id,nt),vt=withDroppableScroll(xt,ht);return getCombineImpact({pageBorderBoxWithDroppableScroll:vt,draggable:rt,previousImpact:ut,destination:xt,insideDestination:Mt,afterCritical:pt})||getReorderImpact({pageBorderBoxWithDroppableScroll:vt,draggable:rt,destination:xt,insideDestination:Mt,last:ut.displaced,viewport:dt,afterCritical:pt})},patchDroppableMap=function(et,tt){var rt;return _extends$j({},et,(rt={},rt[tt.descriptor.id]=tt,rt))},clearUnusedPlaceholder=function(tt){var rt=tt.previousImpact,nt=tt.impact,lt=tt.droppables,ut=whatIsDraggedOver(rt),dt=whatIsDraggedOver(nt);if(!ut||ut===dt)return lt;var pt=lt[ut];if(!pt.subject.withPlaceholder)return lt;var ht=removePlaceholder(pt);return patchDroppableMap(lt,ht)},recomputePlaceholders=function(et){var tt=et.draggable,rt=et.draggables,nt=et.droppables,lt=et.previousImpact,ut=et.impact,dt=clearUnusedPlaceholder({previousImpact:lt,impact:ut,droppables:nt}),pt=whatIsDraggedOver(ut);if(!pt)return dt;var ht=nt[pt];if(isHomeOf(tt,ht)||ht.subject.withPlaceholder)return dt;var mt=addPlaceholder(ht,tt,rt);return patchDroppableMap(dt,mt)},update=function(et){var tt=et.state,rt=et.clientSelection,nt=et.dimensions,lt=et.viewport,ut=et.impact,dt=et.scrollJumpRequest,pt=lt||tt.viewport,ht=nt||tt.dimensions,mt=rt||tt.current.client.selection,xt=subtract(mt,tt.initial.client.selection),Mt={offset:xt,selection:mt,borderBoxCenter:add(tt.initial.client.borderBoxCenter,xt)},vt={selection:add(Mt.selection,pt.scroll.current),borderBoxCenter:add(Mt.borderBoxCenter,pt.scroll.current),offset:add(Mt.offset,pt.scroll.diff.value)},Ot={client:Mt,page:vt};if(tt.phase==="COLLECTING")return _extends$j({phase:"COLLECTING"},tt,{dimensions:ht,viewport:pt,current:Ot});var At=ht.draggables[tt.critical.draggable.id],Rt=ut||getDragImpact({pageOffset:vt.offset,draggable:At,draggables:ht.draggables,droppables:ht.droppables,previousImpact:tt.impact,viewport:pt,afterCritical:tt.afterCritical}),zt=recomputePlaceholders({draggable:At,impact:Rt,previousImpact:tt.impact,draggables:ht.draggables,droppables:ht.droppables}),Tt=_extends$j({},tt,{current:Ot,dimensions:{draggables:ht.draggables,droppables:zt},impact:Rt,viewport:pt,scrollJumpRequest:dt||null,forceShouldAnimate:dt?!1:null});return Tt};function getDraggables$1(et,tt){return et.map(function(rt){return tt[rt]})}var recompute=function(et){var tt=et.impact,rt=et.viewport,nt=et.draggables,lt=et.destination,ut=et.forceShouldAnimate,dt=tt.displaced,pt=getDraggables$1(dt.all,nt),ht=getDisplacementGroups({afterDragging:pt,destination:lt,displacedBy:tt.displacedBy,viewport:rt.frame,forceShouldAnimate:ut,last:dt});return _extends$j({},tt,{displaced:ht})},getClientBorderBoxCenter=function(et){var tt=et.impact,rt=et.draggable,nt=et.droppable,lt=et.draggables,ut=et.viewport,dt=et.afterCritical,pt=getPageBorderBoxCenterFromImpact({impact:tt,draggable:rt,draggables:lt,droppable:nt,afterCritical:dt});return getClientFromPageBorderBoxCenter({pageBorderBoxCenter:pt,draggable:rt,viewport:ut})},refreshSnap=function(et){var tt=et.state,rt=et.dimensions,nt=et.viewport;tt.movementMode!=="SNAP"&&invariant();var lt=tt.impact,ut=nt||tt.viewport,dt=rt||tt.dimensions,pt=dt.draggables,ht=dt.droppables,mt=pt[tt.critical.draggable.id],xt=whatIsDraggedOver(lt);xt||invariant();var Mt=ht[xt],vt=recompute({impact:lt,viewport:ut,destination:Mt,draggables:pt}),Ot=getClientBorderBoxCenter({impact:vt,draggable:mt,droppable:Mt,draggables:pt,viewport:ut,afterCritical:tt.afterCritical});return update({impact:vt,clientSelection:Ot,state:tt,dimensions:dt,viewport:ut})},getHomeLocation=function(et){return{index:et.index,droppableId:et.droppableId}},getLiftEffect=function(et){var tt=et.draggable,rt=et.home,nt=et.draggables,lt=et.viewport,ut=getDisplacedBy(rt.axis,tt.displaceBy),dt=getDraggablesInsideDroppable(rt.descriptor.id,nt),pt=dt.indexOf(tt);pt===-1&&invariant();var ht=dt.slice(pt+1),mt=ht.reduce(function(Ot,At){return Ot[At.descriptor.id]=!0,Ot},{}),xt={inVirtualList:rt.descriptor.mode==="virtual",displacedBy:ut,effected:mt},Mt=getDisplacementGroups({afterDragging:ht,destination:rt,displacedBy:ut,last:null,viewport:lt.frame,forceShouldAnimate:!1}),vt={displaced:Mt,displacedBy:ut,at:{type:"REORDER",destination:getHomeLocation(tt.descriptor)}};return{impact:vt,afterCritical:xt}},patchDimensionMap=function(et,tt){return{draggables:et.draggables,droppables:patchDroppableMap(et.droppables,tt)}},offsetDraggable=function(et){var tt=et.draggable,rt=et.offset,nt=et.initialWindowScroll,lt=offset(tt.client,rt),ut=withScroll(lt,nt),dt=_extends$j({},tt,{placeholder:_extends$j({},tt.placeholder,{client:lt}),client:lt,page:ut});return dt},getFrame=function(et){var tt=et.frame;return tt||invariant(),tt},adjustAdditionsForScrollChanges=function(et){var tt=et.additions,rt=et.updatedDroppables,nt=et.viewport,lt=nt.scroll.diff.value;return tt.map(function(ut){var dt=ut.descriptor.droppableId,pt=rt[dt],ht=getFrame(pt),mt=ht.scroll.diff.value,xt=add(lt,mt),Mt=offsetDraggable({draggable:ut,offset:xt,initialWindowScroll:nt.scroll.initial});return Mt})},publishWhileDraggingInVirtual=function(et){var tt=et.state,rt=et.published,nt=rt.modified.map(function(It){var Dt=tt.dimensions.droppables[It.droppableId],kt=scrollDroppable(Dt,It.scroll);return kt}),lt=_extends$j({},tt.dimensions.droppables,{},toDroppableMap(nt)),ut=toDraggableMap(adjustAdditionsForScrollChanges({additions:rt.additions,updatedDroppables:lt,viewport:tt.viewport})),dt=_extends$j({},tt.dimensions.draggables,{},ut);rt.removals.forEach(function(It){delete dt[It]});var pt={droppables:lt,draggables:dt},ht=whatIsDraggedOver(tt.impact),mt=ht?pt.droppables[ht]:null,xt=pt.draggables[tt.critical.draggable.id],Mt=pt.droppables[tt.critical.droppable.id],vt=getLiftEffect({draggable:xt,home:Mt,draggables:dt,viewport:tt.viewport}),Ot=vt.impact,At=vt.afterCritical,Rt=mt&&mt.isCombineEnabled?tt.impact:Ot,zt=getDragImpact({pageOffset:tt.current.page.offset,draggable:pt.draggables[tt.critical.draggable.id],draggables:pt.draggables,droppables:pt.droppables,previousImpact:Rt,viewport:tt.viewport,afterCritical:At}),Tt=_extends$j({phase:"DRAGGING"},tt,{phase:"DRAGGING",impact:zt,onLiftImpact:Ot,dimensions:pt,afterCritical:At,forceShouldAnimate:!1});if(tt.phase==="COLLECTING")return Tt;var Ct=_extends$j({phase:"DROP_PENDING"},Tt,{phase:"DROP_PENDING",reason:tt.reason,isWaiting:!1});return Ct},isSnapping=function(tt){return tt.movementMode==="SNAP"},postDroppableChange=function(tt,rt,nt){var lt=patchDimensionMap(tt.dimensions,rt);return!isSnapping(tt)||nt?update({state:tt,dimensions:lt}):refreshSnap({state:tt,dimensions:lt})};function removeScrollJumpRequest(et){return et.isDragging&&et.movementMode==="SNAP"?_extends$j({phase:"DRAGGING"},et,{scrollJumpRequest:null}):et}var idle={phase:"IDLE",completed:null,shouldFlush:!1},reducer=function(et,tt){if(et===void 0&&(et=idle),tt.type==="FLUSH")return _extends$j({},idle,{shouldFlush:!0});if(tt.type==="INITIAL_PUBLISH"){et.phase!=="IDLE"&&invariant();var rt=tt.payload,nt=rt.critical,lt=rt.clientSelection,ut=rt.viewport,dt=rt.dimensions,pt=rt.movementMode,ht=dt.draggables[nt.draggable.id],mt=dt.droppables[nt.droppable.id],xt={selection:lt,borderBoxCenter:ht.client.borderBox.center,offset:origin},Mt={client:xt,page:{selection:add(xt.selection,ut.scroll.initial),borderBoxCenter:add(xt.selection,ut.scroll.initial),offset:add(xt.selection,ut.scroll.diff.value)}},vt=toDroppableList(dt.droppables).every(function(br){return!br.isFixedOnPage}),Ot=getLiftEffect({draggable:ht,home:mt,draggables:dt.draggables,viewport:ut}),At=Ot.impact,Rt=Ot.afterCritical,zt={phase:"DRAGGING",isDragging:!0,critical:nt,movementMode:pt,dimensions:dt,initial:Mt,current:Mt,isWindowScrollAllowed:vt,impact:At,afterCritical:Rt,onLiftImpact:At,viewport:ut,scrollJumpRequest:null,forceShouldAnimate:null};return zt}if(tt.type==="COLLECTION_STARTING"){if(et.phase==="COLLECTING"||et.phase==="DROP_PENDING")return et;et.phase!=="DRAGGING"&&invariant();var Tt=_extends$j({phase:"COLLECTING"},et,{phase:"COLLECTING"});return Tt}if(tt.type==="PUBLISH_WHILE_DRAGGING")return et.phase==="COLLECTING"||et.phase==="DROP_PENDING"||invariant(),publishWhileDraggingInVirtual({state:et,published:tt.payload});if(tt.type==="MOVE"){if(et.phase==="DROP_PENDING")return et;isMovementAllowed(et)||invariant();var Ct=tt.payload.client;return isEqual(Ct,et.current.client.selection)?et:update({state:et,clientSelection:Ct,impact:isSnapping(et)?et.impact:null})}if(tt.type==="UPDATE_DROPPABLE_SCROLL"){if(et.phase==="DROP_PENDING"||et.phase==="COLLECTING")return removeScrollJumpRequest(et);isMovementAllowed(et)||invariant();var It=tt.payload,Dt=It.id,kt=It.newScroll,qt=et.dimensions.droppables[Dt];if(!qt)return et;var Nt=scrollDroppable(qt,kt);return postDroppableChange(et,Nt,!1)}if(tt.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(et.phase==="DROP_PENDING")return et;isMovementAllowed(et)||invariant();var Yt=tt.payload,Kt=Yt.id,Jt=Yt.isEnabled,Qt=et.dimensions.droppables[Kt];Qt||invariant(),Qt.isEnabled===Jt&&invariant();var Bt=_extends$j({},Qt,{isEnabled:Jt});return postDroppableChange(et,Bt,!0)}if(tt.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(et.phase==="DROP_PENDING")return et;isMovementAllowed(et)||invariant();var Ft=tt.payload,$t=Ft.id,jt=Ft.isCombineEnabled,Wt=et.dimensions.droppables[$t];Wt||invariant(),Wt.isCombineEnabled===jt&&invariant();var Ut=_extends$j({},Wt,{isCombineEnabled:jt});return postDroppableChange(et,Ut,!0)}if(tt.type==="MOVE_BY_WINDOW_SCROLL"){if(et.phase==="DROP_PENDING"||et.phase==="DROP_ANIMATING")return et;isMovementAllowed(et)||invariant(),et.isWindowScrollAllowed||invariant();var Vt=tt.payload.newScroll;if(isEqual(et.viewport.scroll.current,Vt))return removeScrollJumpRequest(et);var Ht=scrollViewport(et.viewport,Vt);return isSnapping(et)?refreshSnap({state:et,viewport:Ht}):update({state:et,viewport:Ht})}if(tt.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!isMovementAllowed(et))return et;var Gt=tt.payload.maxScroll;if(isEqual(Gt,et.viewport.scroll.max))return et;var Zt=_extends$j({},et.viewport,{scroll:_extends$j({},et.viewport.scroll,{max:Gt})});return _extends$j({phase:"DRAGGING"},et,{viewport:Zt})}if(tt.type==="MOVE_UP"||tt.type==="MOVE_DOWN"||tt.type==="MOVE_LEFT"||tt.type==="MOVE_RIGHT"){if(et.phase==="COLLECTING"||et.phase==="DROP_PENDING")return et;et.phase!=="DRAGGING"&&invariant();var Xt=moveInDirection({state:et,type:tt.type});return Xt?update({state:et,impact:Xt.impact,clientSelection:Xt.clientSelection,scrollJumpRequest:Xt.scrollJumpRequest}):et}if(tt.type==="DROP_PENDING"){var er=tt.payload.reason;et.phase!=="COLLECTING"&&invariant();var nr=_extends$j({phase:"DROP_PENDING"},et,{phase:"DROP_PENDING",isWaiting:!0,reason:er});return nr}if(tt.type==="DROP_ANIMATE"){var or=tt.payload,rr=or.completed,cr=or.dropDuration,ir=or.newHomeClientOffset;et.phase==="DRAGGING"||et.phase==="DROP_PENDING"||invariant();var dr={phase:"DROP_ANIMATING",completed:rr,dropDuration:cr,newHomeClientOffset:ir,dimensions:et.dimensions};return dr}if(tt.type==="DROP_COMPLETE"){var gr=tt.payload.completed;return{phase:"IDLE",completed:gr,shouldFlush:!1}}return et},beforeInitialCapture=function(tt){return{type:"BEFORE_INITIAL_CAPTURE",payload:tt}},lift=function(tt){return{type:"LIFT",payload:tt}},initialPublish=function(tt){return{type:"INITIAL_PUBLISH",payload:tt}},publishWhileDragging=function(tt){return{type:"PUBLISH_WHILE_DRAGGING",payload:tt}},collectionStarting=function(){return{type:"COLLECTION_STARTING",payload:null}},updateDroppableScroll=function(tt){return{type:"UPDATE_DROPPABLE_SCROLL",payload:tt}},updateDroppableIsEnabled=function(tt){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:tt}},updateDroppableIsCombineEnabled=function(tt){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:tt}},move=function(tt){return{type:"MOVE",payload:tt}},moveByWindowScroll=function(tt){return{type:"MOVE_BY_WINDOW_SCROLL",payload:tt}},updateViewportMaxScroll=function(tt){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:tt}},moveUp=function(){return{type:"MOVE_UP",payload:null}},moveDown=function(){return{type:"MOVE_DOWN",payload:null}},moveRight=function(){return{type:"MOVE_RIGHT",payload:null}},moveLeft=function(){return{type:"MOVE_LEFT",payload:null}},flush=function(){return{type:"FLUSH",payload:null}},animateDrop=function(tt){return{type:"DROP_ANIMATE",payload:tt}},completeDrop=function(tt){return{type:"DROP_COMPLETE",payload:tt}},drop=function(tt){return{type:"DROP",payload:tt}},dropPending=function(tt){return{type:"DROP_PENDING",payload:tt}},dropAnimationFinished=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},lift$1=function(et){return function(tt){var rt=tt.getState,nt=tt.dispatch;return function(lt){return function(ut){if(ut.type!=="LIFT"){lt(ut);return}var dt=ut.payload,pt=dt.id,ht=dt.clientSelection,mt=dt.movementMode,xt=rt();xt.phase==="DROP_ANIMATING"&&nt(completeDrop({completed:xt.completed})),rt().phase!=="IDLE"&&invariant(),nt(flush()),nt(beforeInitialCapture({draggableId:pt,movementMode:mt}));var Mt={shouldPublishImmediately:mt==="SNAP"},vt={draggableId:pt,scrollOptions:Mt},Ot=et.startPublishing(vt),At=Ot.critical,Rt=Ot.dimensions,zt=Ot.viewport;nt(initialPublish({critical:At,dimensions:Rt,clientSelection:ht,movementMode:mt,viewport:zt}))}}}},style=function(et){return function(){return function(tt){return function(rt){rt.type==="INITIAL_PUBLISH"&&et.dragging(),rt.type==="DROP_ANIMATE"&&et.dropping(rt.payload.completed.result.reason),(rt.type==="FLUSH"||rt.type==="DROP_COMPLETE")&&et.resting(),tt(rt)}}}},curves$2={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},combine$1={opacity:{drop:0,combining:.7},scale:{drop:.75}},timings={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},outOfTheWayTiming=timings.outOfTheWay+"s "+curves$2.outOfTheWay,transitions={fluid:"opacity "+outOfTheWayTiming,snap:"transform "+outOfTheWayTiming+", opacity "+outOfTheWayTiming,drop:function(tt){var rt=tt+"s "+curves$2.drop;return"transform "+rt+", opacity "+rt},outOfTheWay:"transform "+outOfTheWayTiming,placeholder:"height "+outOfTheWayTiming+", width "+outOfTheWayTiming+", margin "+outOfTheWayTiming},moveTo=function(tt){return isEqual(tt,origin)?null:"translate("+tt.x+"px, "+tt.y+"px)"},transforms={moveTo,drop:function(tt,rt){var nt=moveTo(tt);return nt?rt?nt+" scale("+combine$1.scale.drop+")":nt:null}},minDropTime=timings.minDropTime,maxDropTime=timings.maxDropTime,dropTimeRange=maxDropTime-minDropTime,maxDropTimeAtDistance=1500,cancelDropModifier=.6,getDropDuration=function(et){var tt=et.current,rt=et.destination,nt=et.reason,lt=distance(tt,rt);if(lt<=0)return minDropTime;if(lt>=maxDropTimeAtDistance)return maxDropTime;var ut=lt/maxDropTimeAtDistance,dt=minDropTime+dropTimeRange*ut,pt=nt==="CANCEL"?dt*cancelDropModifier:dt;return Number(pt.toFixed(2))},getNewHomeClientOffset=function(et){var tt=et.impact,rt=et.draggable,nt=et.dimensions,lt=et.viewport,ut=et.afterCritical,dt=nt.draggables,pt=nt.droppables,ht=whatIsDraggedOver(tt),mt=ht?pt[ht]:null,xt=pt[rt.descriptor.droppableId],Mt=getClientBorderBoxCenter({impact:tt,draggable:rt,draggables:dt,afterCritical:ut,droppable:mt||xt,viewport:lt}),vt=subtract(Mt,rt.client.borderBox.center);return vt},getDropImpact=function(et){var tt=et.draggables,rt=et.reason,nt=et.lastImpact,lt=et.home,ut=et.viewport,dt=et.onLiftImpact;if(!nt.at||rt!=="DROP"){var pt=recompute({draggables:tt,impact:dt,destination:lt,viewport:ut,forceShouldAnimate:!0});return{impact:pt,didDropInsideDroppable:!1}}if(nt.at.type==="REORDER")return{impact:nt,didDropInsideDroppable:!0};var ht=_extends$j({},nt,{displaced:emptyGroups});return{impact:ht,didDropInsideDroppable:!0}},drop$1=function(et){var tt=et.getState,rt=et.dispatch;return function(nt){return function(lt){if(lt.type!=="DROP"){nt(lt);return}var ut=tt(),dt=lt.payload.reason;if(ut.phase==="COLLECTING"){rt(dropPending({reason:dt}));return}if(ut.phase!=="IDLE"){var pt=ut.phase==="DROP_PENDING"&&ut.isWaiting;pt&&invariant(),ut.phase==="DRAGGING"||ut.phase==="DROP_PENDING"||invariant();var ht=ut.critical,mt=ut.dimensions,xt=mt.draggables[ut.critical.draggable.id],Mt=getDropImpact({reason:dt,lastImpact:ut.impact,afterCritical:ut.afterCritical,onLiftImpact:ut.onLiftImpact,home:ut.dimensions.droppables[ut.critical.droppable.id],viewport:ut.viewport,draggables:ut.dimensions.draggables}),vt=Mt.impact,Ot=Mt.didDropInsideDroppable,At=Ot?tryGetDestination(vt):null,Rt=Ot?tryGetCombine(vt):null,zt={index:ht.draggable.index,droppableId:ht.droppable.id},Tt={draggableId:xt.descriptor.id,type:xt.descriptor.type,source:zt,reason:dt,mode:ut.movementMode,destination:At,combine:Rt},Ct=getNewHomeClientOffset({impact:vt,draggable:xt,dimensions:mt,viewport:ut.viewport,afterCritical:ut.afterCritical}),It={critical:ut.critical,afterCritical:ut.afterCritical,result:Tt,impact:vt},Dt=!isEqual(ut.current.client.offset,Ct)||!!Tt.combine;if(!Dt){rt(completeDrop({completed:It}));return}var kt=getDropDuration({current:ut.current.client.offset,destination:Ct,reason:dt}),qt={newHomeClientOffset:Ct,dropDuration:kt,completed:It};rt(animateDrop(qt))}}}},getWindowScroll=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function getWindowScrollBinding(et){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(rt){rt.target!==window&&rt.target!==window.document||et()}}}function getScrollListener(et){var tt=et.onWindowScroll;function rt(){tt(getWindowScroll())}var nt=rafSchd(rt),lt=getWindowScrollBinding(nt),ut=noop$1;function dt(){return ut!==noop$1}function pt(){dt()&&invariant(),ut=bindEvents(window,[lt])}function ht(){dt()||invariant(),nt.cancel(),ut(),ut=noop$1}return{start:pt,stop:ht,isActive:dt}}var shouldEnd=function(tt){return tt.type==="DROP_COMPLETE"||tt.type==="DROP_ANIMATE"||tt.type==="FLUSH"},scrollListener=function(et){var tt=getScrollListener({onWindowScroll:function(nt){et.dispatch(moveByWindowScroll({newScroll:nt}))}});return function(rt){return function(nt){!tt.isActive()&&nt.type==="INITIAL_PUBLISH"&&tt.start(),tt.isActive()&&shouldEnd(nt)&&tt.stop(),rt(nt)}}},getExpiringAnnounce=function(et){var tt=!1,rt=!1,nt=setTimeout(function(){rt=!0}),lt=function(dt){tt||rt||(tt=!0,et(dt),clearTimeout(nt))};return lt.wasCalled=function(){return tt},lt},getAsyncMarshal=function(){var et=[],tt=function(ut){var dt=findIndex(et,function(mt){return mt.timerId===ut});dt===-1&&invariant();var pt=et.splice(dt,1),ht=pt[0];ht.callback()},rt=function(ut){var dt=setTimeout(function(){return tt(dt)}),pt={timerId:dt,callback:ut};et.push(pt)},nt=function(){if(et.length){var ut=[].concat(et);et.length=0,ut.forEach(function(dt){clearTimeout(dt.timerId),dt.callback()})}};return{add:rt,flush:nt}},areLocationsEqual=function(tt,rt){return tt==null&&rt==null?!0:tt==null||rt==null?!1:tt.droppableId===rt.droppableId&&tt.index===rt.index},isCombineEqual=function(tt,rt){return tt==null&&rt==null?!0:tt==null||rt==null?!1:tt.draggableId===rt.draggableId&&tt.droppableId===rt.droppableId},isCriticalEqual=function(tt,rt){if(tt===rt)return!0;var nt=tt.draggable.id===rt.draggable.id&&tt.draggable.droppableId===rt.draggable.droppableId&&tt.draggable.type===rt.draggable.type&&tt.draggable.index===rt.draggable.index,lt=tt.droppable.id===rt.droppable.id&&tt.droppable.type===rt.droppable.type;return nt&&lt},withTimings=function(tt,rt){rt()},getDragStart=function(tt,rt){return{draggableId:tt.draggable.id,type:tt.droppable.type,source:{droppableId:tt.droppable.id,index:tt.draggable.index},mode:rt}},execute=function(tt,rt,nt,lt){if(!tt){nt(lt(rt));return}var ut=getExpiringAnnounce(nt),dt={announce:ut};tt(rt,dt),ut.wasCalled()||nt(lt(rt))},getPublisher=function(et,tt){var rt=getAsyncMarshal(),nt=null,lt=function(vt,Ot){nt&&invariant(),withTimings("onBeforeCapture",function(){var At=et().onBeforeCapture;if(At){var Rt={draggableId:vt,mode:Ot};At(Rt)}})},ut=function(vt,Ot){nt&&invariant(),withTimings("onBeforeDragStart",function(){var At=et().onBeforeDragStart;At&&At(getDragStart(vt,Ot))})},dt=function(vt,Ot){nt&&invariant();var At=getDragStart(vt,Ot);nt={mode:Ot,lastCritical:vt,lastLocation:At.source,lastCombine:null},rt.add(function(){withTimings("onDragStart",function(){return execute(et().onDragStart,At,tt,preset.onDragStart)})})},pt=function(vt,Ot){var At=tryGetDestination(Ot),Rt=tryGetCombine(Ot);nt||invariant();var zt=!isCriticalEqual(vt,nt.lastCritical);zt&&(nt.lastCritical=vt);var Tt=!areLocationsEqual(nt.lastLocation,At);Tt&&(nt.lastLocation=At);var Ct=!isCombineEqual(nt.lastCombine,Rt);if(Ct&&(nt.lastCombine=Rt),!(!zt&&!Tt&&!Ct)){var It=_extends$j({},getDragStart(vt,nt.mode),{combine:Rt,destination:At});rt.add(function(){withTimings("onDragUpdate",function(){return execute(et().onDragUpdate,It,tt,preset.onDragUpdate)})})}},ht=function(){nt||invariant(),rt.flush()},mt=function(vt){nt||invariant(),nt=null,withTimings("onDragEnd",function(){return execute(et().onDragEnd,vt,tt,preset.onDragEnd)})},xt=function(){if(nt){var vt=_extends$j({},getDragStart(nt.lastCritical,nt.mode),{combine:null,destination:null,reason:"CANCEL"});mt(vt)}};return{beforeCapture:lt,beforeStart:ut,start:dt,update:pt,flush:ht,drop:mt,abort:xt}},responders=function(et,tt){var rt=getPublisher(et,tt);return function(nt){return function(lt){return function(ut){if(ut.type==="BEFORE_INITIAL_CAPTURE"){rt.beforeCapture(ut.payload.draggableId,ut.payload.movementMode);return}if(ut.type==="INITIAL_PUBLISH"){var dt=ut.payload.critical;rt.beforeStart(dt,ut.payload.movementMode),lt(ut),rt.start(dt,ut.payload.movementMode);return}if(ut.type==="DROP_COMPLETE"){var pt=ut.payload.completed.result;rt.flush(),lt(ut),rt.drop(pt);return}if(lt(ut),ut.type==="FLUSH"){rt.abort();return}var ht=nt.getState();ht.phase==="DRAGGING"&&rt.update(ht.critical,ht.impact)}}}},dropAnimationFinish=function(et){return function(tt){return function(rt){if(rt.type!=="DROP_ANIMATION_FINISHED"){tt(rt);return}var nt=et.getState();nt.phase!=="DROP_ANIMATING"&&invariant(),et.dispatch(completeDrop({completed:nt.completed}))}}},dropAnimationFlushOnScroll=function(et){var tt=null,rt=null;function nt(){rt&&(cancelAnimationFrame(rt),rt=null),tt&&(tt(),tt=null)}return function(lt){return function(ut){if((ut.type==="FLUSH"||ut.type==="DROP_COMPLETE"||ut.type==="DROP_ANIMATION_FINISHED")&&nt(),lt(ut),ut.type==="DROP_ANIMATE"){var dt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var ht=et.getState();ht.phase==="DROP_ANIMATING"&&et.dispatch(dropAnimationFinished())}};rt=requestAnimationFrame(function(){rt=null,tt=bindEvents(window,[dt])})}}}},dimensionMarshalStopper=function(et){return function(){return function(tt){return function(rt){(rt.type==="DROP_COMPLETE"||rt.type==="FLUSH"||rt.type==="DROP_ANIMATE")&&et.stopPublishing(),tt(rt)}}}},focus=function(et){var tt=!1;return function(){return function(rt){return function(nt){if(nt.type==="INITIAL_PUBLISH"){tt=!0,et.tryRecordFocus(nt.payload.critical.draggable.id),rt(nt),et.tryRestoreFocusRecorded();return}if(rt(nt),!!tt){if(nt.type==="FLUSH"){tt=!1,et.tryRestoreFocusRecorded();return}if(nt.type==="DROP_COMPLETE"){tt=!1;var lt=nt.payload.completed.result;lt.combine&&et.tryShiftRecord(lt.draggableId,lt.combine.draggableId),et.tryRestoreFocusRecorded()}}}}}},shouldStop=function(tt){return tt.type==="DROP_COMPLETE"||tt.type==="DROP_ANIMATE"||tt.type==="FLUSH"},autoScroll=function(et){return function(tt){return function(rt){return function(nt){if(shouldStop(nt)){et.stop(),rt(nt);return}if(nt.type==="INITIAL_PUBLISH"){rt(nt);var lt=tt.getState();lt.phase!=="DRAGGING"&&invariant(),et.start(lt);return}rt(nt),et.scroll(tt.getState())}}}},pendingDrop=function(et){return function(tt){return function(rt){if(tt(rt),rt.type==="PUBLISH_WHILE_DRAGGING"){var nt=et.getState();nt.phase==="DROP_PENDING"&&(nt.isWaiting||et.dispatch(drop({reason:nt.reason})))}}}},composeEnhancers=compose,createStore=function(et){var tt=et.dimensionMarshal,rt=et.focusMarshal,nt=et.styleMarshal,lt=et.getResponders,ut=et.announce,dt=et.autoScroller;return createStore$1(reducer,composeEnhancers(applyMiddleware(style(nt),dimensionMarshalStopper(tt),lift$1(tt),drop$1,dropAnimationFinish,dropAnimationFlushOnScroll,pendingDrop,autoScroll(dt),scrollListener,focus(rt),responders(lt,ut))))},clean$1=function(){return{additions:{},removals:{},modified:{}}};function createPublisher(et){var tt=et.registry,rt=et.callbacks,nt=clean$1(),lt=null,ut=function(){lt||(rt.collectionStarting(),lt=requestAnimationFrame(function(){lt=null;var xt=nt,Mt=xt.additions,vt=xt.removals,Ot=xt.modified,At=Object.keys(Mt).map(function(Tt){return tt.draggable.getById(Tt).getDimension(origin)}).sort(function(Tt,Ct){return Tt.descriptor.index-Ct.descriptor.index}),Rt=Object.keys(Ot).map(function(Tt){var Ct=tt.droppable.getById(Tt),It=Ct.callbacks.getScrollWhileDragging();return{droppableId:Tt,scroll:It}}),zt={additions:At,removals:Object.keys(vt),modified:Rt};nt=clean$1(),rt.publish(zt)}))},dt=function(xt){var Mt=xt.descriptor.id;nt.additions[Mt]=xt,nt.modified[xt.descriptor.droppableId]=!0,nt.removals[Mt]&&delete nt.removals[Mt],ut()},pt=function(xt){var Mt=xt.descriptor;nt.removals[Mt.id]=!0,nt.modified[Mt.droppableId]=!0,nt.additions[Mt.id]&&delete nt.additions[Mt.id],ut()},ht=function(){lt&&(cancelAnimationFrame(lt),lt=null,nt=clean$1())};return{add:dt,remove:pt,stop:ht}}var getMaxScroll=function(et){var tt=et.scrollHeight,rt=et.scrollWidth,nt=et.height,lt=et.width,ut=subtract({x:rt,y:tt},{x:lt,y:nt}),dt={x:Math.max(0,ut.x),y:Math.max(0,ut.y)};return dt},getDocumentElement=function(){var et=document.documentElement;return et||invariant(),et},getMaxWindowScroll=function(){var et=getDocumentElement(),tt=getMaxScroll({scrollHeight:et.scrollHeight,scrollWidth:et.scrollWidth,width:et.clientWidth,height:et.clientHeight});return tt},getViewport=function(){var et=getWindowScroll(),tt=getMaxWindowScroll(),rt=et.y,nt=et.x,lt=getDocumentElement(),ut=lt.clientWidth,dt=lt.clientHeight,pt=nt+ut,ht=rt+dt,mt=getRect({top:rt,left:nt,right:pt,bottom:ht}),xt={frame:mt,scroll:{initial:et,current:et,max:tt,diff:{value:origin,displacement:origin}}};return xt},getInitialPublish=function(et){var tt=et.critical,rt=et.scrollOptions,nt=et.registry,lt=getViewport(),ut=lt.scroll.current,dt=tt.droppable,pt=nt.droppable.getAllByType(dt.type).map(function(Mt){return Mt.callbacks.getDimensionAndWatchScroll(ut,rt)}),ht=nt.draggable.getAllByType(tt.draggable.type).map(function(Mt){return Mt.getDimension(ut)}),mt={draggables:toDraggableMap(ht),droppables:toDroppableMap(pt)},xt={dimensions:mt,critical:tt,viewport:lt};return xt};function shouldPublishUpdate(et,tt,rt){if(rt.descriptor.id===tt.id||rt.descriptor.type!==tt.type)return!1;var nt=et.droppable.getById(rt.descriptor.droppableId);return nt.descriptor.mode==="virtual"}var createDimensionMarshal=function(et,tt){var rt=null,nt=createPublisher({callbacks:{publish:tt.publishWhileDragging,collectionStarting:tt.collectionStarting},registry:et}),lt=function(Ot,At){et.droppable.exists(Ot)||invariant(),rt&&tt.updateDroppableIsEnabled({id:Ot,isEnabled:At})},ut=function(Ot,At){rt&&(et.droppable.exists(Ot)||invariant(),tt.updateDroppableIsCombineEnabled({id:Ot,isCombineEnabled:At}))},dt=function(Ot,At){rt&&(et.droppable.exists(Ot)||invariant(),tt.updateDroppableScroll({id:Ot,newScroll:At}))},pt=function(Ot,At){rt&&et.droppable.getById(Ot).callbacks.scroll(At)},ht=function(){if(rt){nt.stop();var Ot=rt.critical.droppable;et.droppable.getAllByType(Ot.type).forEach(function(At){return At.callbacks.dragStopped()}),rt.unsubscribe(),rt=null}},mt=function(Ot){rt||invariant();var At=rt.critical.draggable;Ot.type==="ADDITION"&&shouldPublishUpdate(et,At,Ot.value)&&nt.add(Ot.value),Ot.type==="REMOVAL"&&shouldPublishUpdate(et,At,Ot.value)&&nt.remove(Ot.value)},xt=function(Ot){rt&&invariant();var At=et.draggable.getById(Ot.draggableId),Rt=et.droppable.getById(At.descriptor.droppableId),zt={draggable:At.descriptor,droppable:Rt.descriptor},Tt=et.subscribe(mt);return rt={critical:zt,unsubscribe:Tt},getInitialPublish({critical:zt,registry:et,scrollOptions:Ot.scrollOptions})},Mt={updateDroppableIsEnabled:lt,updateDroppableIsCombineEnabled:ut,scrollDroppable:pt,updateDroppableScroll:dt,startPublishing:xt,stopPublishing:ht};return Mt},canStartDrag=function(et,tt){return et.phase==="IDLE"?!0:et.phase!=="DROP_ANIMATING"||et.completed.result.draggableId===tt?!1:et.completed.result.reason==="DROP"},scrollWindow=function(et){window.scrollBy(et.x,et.y)},getScrollableDroppables=memoizeOne$1(function(et){return toDroppableList(et).filter(function(tt){return!(!tt.isEnabled||!tt.frame)})}),getScrollableDroppableOver=function(tt,rt){var nt=find$1(getScrollableDroppables(rt),function(lt){return lt.frame||invariant(),isPositionInFrame(lt.frame.pageMarginBox)(tt)});return nt},getBestScrollableDroppable=function(et){var tt=et.center,rt=et.destination,nt=et.droppables;if(rt){var lt=nt[rt];return lt.frame?lt:null}var ut=getScrollableDroppableOver(tt,nt);return ut},config={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(tt){return Math.pow(tt,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},getDistanceThresholds=function(et,tt){var rt=et[tt.size]*config.startFromPercentage,nt=et[tt.size]*config.maxScrollAtPercentage,lt={startScrollingFrom:rt,maxScrollValueAt:nt};return lt},getPercentage=function(et){var tt=et.startOfRange,rt=et.endOfRange,nt=et.current,lt=rt-tt;if(lt===0)return 0;var ut=nt-tt,dt=ut/lt;return dt},minScroll=1,getValueFromDistance=function(et,tt){if(et>tt.startScrollingFrom)return 0;if(et<=tt.maxScrollValueAt)return config.maxPixelScroll;if(et===tt.startScrollingFrom)return minScroll;var rt=getPercentage({startOfRange:tt.maxScrollValueAt,endOfRange:tt.startScrollingFrom,current:et}),nt=1-rt,lt=config.maxPixelScroll*config.ease(nt);return Math.ceil(lt)},accelerateAt=config.durationDampening.accelerateAt,stopAt=config.durationDampening.stopDampeningAt,dampenValueByTime=function(et,tt){var rt=tt,nt=stopAt,lt=Date.now(),ut=lt-rt;if(ut>=stopAt)return et;if(ut<accelerateAt)return minScroll;var dt=getPercentage({startOfRange:accelerateAt,endOfRange:nt,current:ut}),pt=et*config.ease(dt);return Math.ceil(pt)},getValue=function(et){var tt=et.distanceToEdge,rt=et.thresholds,nt=et.dragStartTime,lt=et.shouldUseTimeDampening,ut=getValueFromDistance(tt,rt);return ut===0?0:lt?Math.max(dampenValueByTime(ut,nt),minScroll):ut},getScrollOnAxis=function(et){var tt=et.container,rt=et.distanceToEdges,nt=et.dragStartTime,lt=et.axis,ut=et.shouldUseTimeDampening,dt=getDistanceThresholds(tt,lt),pt=rt[lt.end]<rt[lt.start];return pt?getValue({distanceToEdge:rt[lt.end],thresholds:dt,dragStartTime:nt,shouldUseTimeDampening:ut}):-1*getValue({distanceToEdge:rt[lt.start],thresholds:dt,dragStartTime:nt,shouldUseTimeDampening:ut})},adjustForSizeLimits=function(et){var tt=et.container,rt=et.subject,nt=et.proposedScroll,lt=rt.height>tt.height,ut=rt.width>tt.width;return!ut&&!lt?nt:ut&&lt?null:{x:ut?0:nt.x,y:lt?0:nt.y}},clean$2=apply(function(et){return et===0?0:et}),getScroll=function(et){var tt=et.dragStartTime,rt=et.container,nt=et.subject,lt=et.center,ut=et.shouldUseTimeDampening,dt={top:lt.y-rt.top,right:rt.right-lt.x,bottom:rt.bottom-lt.y,left:lt.x-rt.left},pt=getScrollOnAxis({container:rt,distanceToEdges:dt,dragStartTime:tt,axis:vertical,shouldUseTimeDampening:ut}),ht=getScrollOnAxis({container:rt,distanceToEdges:dt,dragStartTime:tt,axis:horizontal,shouldUseTimeDampening:ut}),mt=clean$2({x:ht,y:pt});if(isEqual(mt,origin))return null;var xt=adjustForSizeLimits({container:rt,subject:nt,proposedScroll:mt});return xt?isEqual(xt,origin)?null:xt:null},smallestSigned=apply(function(et){return et===0?0:et>0?1:-1}),getOverlap=function(){var et=function(rt,nt){return rt<0?rt:rt>nt?rt-nt:0};return function(tt){var rt=tt.current,nt=tt.max,lt=tt.change,ut=add(rt,lt),dt={x:et(ut.x,nt.x),y:et(ut.y,nt.y)};return isEqual(dt,origin)?null:dt}}(),canPartiallyScroll=function(tt){var rt=tt.max,nt=tt.current,lt=tt.change,ut={x:Math.max(nt.x,rt.x),y:Math.max(nt.y,rt.y)},dt=smallestSigned(lt),pt=getOverlap({max:ut,current:nt,change:dt});return!pt||dt.x!==0&&pt.x===0||dt.y!==0&&pt.y===0},canScrollWindow=function(tt,rt){return canPartiallyScroll({current:tt.scroll.current,max:tt.scroll.max,change:rt})},getWindowOverlap=function(tt,rt){if(!canScrollWindow(tt,rt))return null;var nt=tt.scroll.max,lt=tt.scroll.current;return getOverlap({current:lt,max:nt,change:rt})},canScrollDroppable=function(tt,rt){var nt=tt.frame;return nt?canPartiallyScroll({current:nt.scroll.current,max:nt.scroll.max,change:rt}):!1},getDroppableOverlap=function(tt,rt){var nt=tt.frame;return!nt||!canScrollDroppable(tt,rt)?null:getOverlap({current:nt.scroll.current,max:nt.scroll.max,change:rt})},getWindowScrollChange=function(et){var tt=et.viewport,rt=et.subject,nt=et.center,lt=et.dragStartTime,ut=et.shouldUseTimeDampening,dt=getScroll({dragStartTime:lt,container:tt.frame,subject:rt,center:nt,shouldUseTimeDampening:ut});return dt&&canScrollWindow(tt,dt)?dt:null},getDroppableScrollChange=function(et){var tt=et.droppable,rt=et.subject,nt=et.center,lt=et.dragStartTime,ut=et.shouldUseTimeDampening,dt=tt.frame;if(!dt)return null;var pt=getScroll({dragStartTime:lt,container:dt.pageMarginBox,subject:rt,center:nt,shouldUseTimeDampening:ut});return pt&&canScrollDroppable(tt,pt)?pt:null},scroll$1=function(et){var tt=et.state,rt=et.dragStartTime,nt=et.shouldUseTimeDampening,lt=et.scrollWindow,ut=et.scrollDroppable,dt=tt.current.page.borderBoxCenter,pt=tt.dimensions.draggables[tt.critical.draggable.id],ht=pt.page.marginBox;if(tt.isWindowScrollAllowed){var mt=tt.viewport,xt=getWindowScrollChange({dragStartTime:rt,viewport:mt,subject:ht,center:dt,shouldUseTimeDampening:nt});if(xt){lt(xt);return}}var Mt=getBestScrollableDroppable({center:dt,destination:whatIsDraggedOver(tt.impact),droppables:tt.dimensions.droppables});if(Mt){var vt=getDroppableScrollChange({dragStartTime:rt,droppable:Mt,subject:ht,center:dt,shouldUseTimeDampening:nt});vt&&ut(Mt.descriptor.id,vt)}},createFluidScroller=function(et){var tt=et.scrollWindow,rt=et.scrollDroppable,nt=rafSchd(tt),lt=rafSchd(rt),ut=null,dt=function(xt){ut||invariant();var Mt=ut,vt=Mt.shouldUseTimeDampening,Ot=Mt.dragStartTime;scroll$1({state:xt,scrollWindow:nt,scrollDroppable:lt,dragStartTime:Ot,shouldUseTimeDampening:vt})},pt=function(xt){ut&&invariant();var Mt=Date.now(),vt=!1,Ot=function(){vt=!0};scroll$1({state:xt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Ot,scrollDroppable:Ot}),ut={dragStartTime:Mt,shouldUseTimeDampening:vt},vt&&dt(xt)},ht=function(){ut&&(nt.cancel(),lt.cancel(),ut=null)};return{start:pt,stop:ht,scroll:dt}},createJumpScroller=function(et){var tt=et.move,rt=et.scrollDroppable,nt=et.scrollWindow,lt=function(mt,xt){var Mt=add(mt.current.client.selection,xt);tt({client:Mt})},ut=function(mt,xt){if(!canScrollDroppable(mt,xt))return xt;var Mt=getDroppableOverlap(mt,xt);if(!Mt)return rt(mt.descriptor.id,xt),null;var vt=subtract(xt,Mt);rt(mt.descriptor.id,vt);var Ot=subtract(xt,vt);return Ot},dt=function(mt,xt,Mt){if(!mt||!canScrollWindow(xt,Mt))return Mt;var vt=getWindowOverlap(xt,Mt);if(!vt)return nt(Mt),null;var Ot=subtract(Mt,vt);nt(Ot);var At=subtract(Mt,Ot);return At},pt=function(mt){var xt=mt.scrollJumpRequest;if(xt){var Mt=whatIsDraggedOver(mt.impact);Mt||invariant();var vt=ut(mt.dimensions.droppables[Mt],xt);if(vt){var Ot=mt.viewport,At=dt(mt.isWindowScrollAllowed,Ot,vt);At&&lt(mt,At)}}};return pt},createAutoScroller=function(et){var tt=et.scrollDroppable,rt=et.scrollWindow,nt=et.move,lt=createFluidScroller({scrollWindow:rt,scrollDroppable:tt}),ut=createJumpScroller({move:nt,scrollWindow:rt,scrollDroppable:tt}),dt=function(mt){if(mt.phase==="DRAGGING"){if(mt.movementMode==="FLUID"){lt.scroll(mt);return}mt.scrollJumpRequest&&ut(mt)}},pt={scroll:dt,start:lt.start,stop:lt.stop};return pt},prefix$1="data-rbd",dragHandle=function(){var et=prefix$1+"-drag-handle";return{base:et,draggableId:et+"-draggable-id",contextId:et+"-context-id"}}(),draggable=function(){var et=prefix$1+"-draggable";return{base:et,contextId:et+"-context-id",id:et+"-id"}}(),droppable=function(){var et=prefix$1+"-droppable";return{base:et,contextId:et+"-context-id",id:et+"-id"}}(),scrollContainer={contextId:prefix$1+"-scroll-container-context-id"},makeGetSelector=function(tt){return function(rt){return"["+rt+'="'+tt+'"]'}},getStyles=function(tt,rt){return tt.map(function(nt){var lt=nt.styles[rt];return lt?nt.selector+" { "+lt+" }":""}).join(" ")},noPointerEvents="pointer-events: none;",getStyles$1=function(et){var tt=makeGetSelector(et),rt=function(){var pt=`
      cursor: -webkit-grab;
      cursor: grab;
    `;return{selector:tt(dragHandle.contextId),styles:{always:`
          -webkit-touch-callout: none;
          -webkit-tap-highlight-color: rgba(0,0,0,0);
          touch-action: manipulation;
        `,resting:pt,dragging:noPointerEvents,dropAnimating:pt}}}(),nt=function(){var pt=`
      transition: `+transitions.outOfTheWay+`;
    `;return{selector:tt(draggable.contextId),styles:{dragging:pt,dropAnimating:pt,userCancel:pt}}}(),lt={selector:tt(droppable.contextId),styles:{always:"overflow-anchor: none;"}},ut={selector:"body",styles:{dragging:`
        cursor: grabbing;
        cursor: -webkit-grabbing;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        overflow-anchor: none;
      `}},dt=[nt,rt,lt,ut];return{always:getStyles(dt,"always"),resting:getStyles(dt,"resting"),dragging:getStyles(dt,"dragging"),dropAnimating:getStyles(dt,"dropAnimating"),userCancel:getStyles(dt,"userCancel")}},useIsomorphicLayoutEffect=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect,getHead=function(){var tt=document.querySelector("head");return tt||invariant(),tt},createStyleEl=function(tt){var rt=document.createElement("style");return tt&&rt.setAttribute("nonce",tt),rt.type="text/css",rt};function useStyleMarshal(et,tt){var rt=useMemo(function(){return getStyles$1(et)},[et]),nt=reactExports.useRef(null),lt=reactExports.useRef(null),ut=useCallback(memoizeOne$1(function(Mt){var vt=lt.current;vt||invariant(),vt.textContent=Mt}),[]),dt=useCallback(function(Mt){var vt=nt.current;vt||invariant(),vt.textContent=Mt},[]);useIsomorphicLayoutEffect(function(){!nt.current&&!lt.current||invariant();var Mt=createStyleEl(tt),vt=createStyleEl(tt);return nt.current=Mt,lt.current=vt,Mt.setAttribute(prefix$1+"-always",et),vt.setAttribute(prefix$1+"-dynamic",et),getHead().appendChild(Mt),getHead().appendChild(vt),dt(rt.always),ut(rt.resting),function(){var Ot=function(Rt){var zt=Rt.current;zt||invariant(),getHead().removeChild(zt),Rt.current=null};Ot(nt),Ot(lt)}},[tt,dt,ut,rt.always,rt.resting,et]);var pt=useCallback(function(){return ut(rt.dragging)},[ut,rt.dragging]),ht=useCallback(function(Mt){if(Mt==="DROP"){ut(rt.dropAnimating);return}ut(rt.userCancel)},[ut,rt.dropAnimating,rt.userCancel]),mt=useCallback(function(){lt.current&&ut(rt.resting)},[ut,rt.resting]),xt=useMemo(function(){return{dragging:pt,dropping:ht,resting:mt}},[pt,ht,mt]);return xt}var getWindowFromEl=function(et){return et&&et.ownerDocument?et.ownerDocument.defaultView:window};function isHtmlElement(et){return et instanceof getWindowFromEl(et).HTMLElement}function findDragHandle(et,tt){var rt="["+dragHandle.contextId+'="'+et+'"]',nt=toArray$2(document.querySelectorAll(rt));if(!nt.length)return null;var lt=find$1(nt,function(ut){return ut.getAttribute(dragHandle.draggableId)===tt});return!lt||!isHtmlElement(lt)?null:lt}function useFocusMarshal(et){var tt=reactExports.useRef({}),rt=reactExports.useRef(null),nt=reactExports.useRef(null),lt=reactExports.useRef(!1),ut=useCallback(function(vt,Ot){var At={id:vt,focus:Ot};return tt.current[vt]=At,function(){var zt=tt.current,Tt=zt[vt];Tt!==At&&delete zt[vt]}},[]),dt=useCallback(function(vt){var Ot=findDragHandle(et,vt);Ot&&Ot!==document.activeElement&&Ot.focus()},[et]),pt=useCallback(function(vt,Ot){rt.current===vt&&(rt.current=Ot)},[]),ht=useCallback(function(){nt.current||lt.current&&(nt.current=requestAnimationFrame(function(){nt.current=null;var vt=rt.current;vt&&dt(vt)}))},[dt]),mt=useCallback(function(vt){rt.current=null;var Ot=document.activeElement;Ot&&Ot.getAttribute(dragHandle.draggableId)===vt&&(rt.current=vt)},[]);useIsomorphicLayoutEffect(function(){return lt.current=!0,function(){lt.current=!1;var vt=nt.current;vt&&cancelAnimationFrame(vt)}},[]);var xt=useMemo(function(){return{register:ut,tryRecordFocus:mt,tryRestoreFocusRecorded:ht,tryShiftRecord:pt}},[ut,mt,ht,pt]);return xt}function createRegistry(){var et={draggables:{},droppables:{}},tt=[];function rt(Mt){return tt.push(Mt),function(){var Ot=tt.indexOf(Mt);Ot!==-1&&tt.splice(Ot,1)}}function nt(Mt){tt.length&&tt.forEach(function(vt){return vt(Mt)})}function lt(Mt){return et.draggables[Mt]||null}function ut(Mt){var vt=lt(Mt);return vt||invariant(),vt}var dt={register:function(vt){et.draggables[vt.descriptor.id]=vt,nt({type:"ADDITION",value:vt})},update:function(vt,Ot){var At=et.draggables[Ot.descriptor.id];At&&At.uniqueId===vt.uniqueId&&(delete et.draggables[Ot.descriptor.id],et.draggables[vt.descriptor.id]=vt)},unregister:function(vt){var Ot=vt.descriptor.id,At=lt(Ot);At&&vt.uniqueId===At.uniqueId&&(delete et.draggables[Ot],nt({type:"REMOVAL",value:vt}))},getById:ut,findById:lt,exists:function(vt){return!!lt(vt)},getAllByType:function(vt){return values(et.draggables).filter(function(Ot){return Ot.descriptor.type===vt})}};function pt(Mt){return et.droppables[Mt]||null}function ht(Mt){var vt=pt(Mt);return vt||invariant(),vt}var mt={register:function(vt){et.droppables[vt.descriptor.id]=vt},unregister:function(vt){var Ot=pt(vt.descriptor.id);Ot&&vt.uniqueId===Ot.uniqueId&&delete et.droppables[vt.descriptor.id]},getById:ht,findById:pt,exists:function(vt){return!!pt(vt)},getAllByType:function(vt){return values(et.droppables).filter(function(Ot){return Ot.descriptor.type===vt})}};function xt(){et.draggables={},et.droppables={},tt.length=0}return{draggable:dt,droppable:mt,subscribe:rt,clean:xt}}function useRegistry(){var et=useMemo(createRegistry,[]);return reactExports.useEffect(function(){return function(){requestAnimationFrame(et.clean)}},[et]),et}var StoreContext=React$4.createContext(null),getBodyElement=function(){var et=document.body;return et||invariant(),et},visuallyHidden={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},getId=function(tt){return"rbd-announcement-"+tt};function useAnnouncer(et){var tt=useMemo(function(){return getId(et)},[et]),rt=reactExports.useRef(null);reactExports.useEffect(function(){var ut=document.createElement("div");return rt.current=ut,ut.id=tt,ut.setAttribute("aria-live","assertive"),ut.setAttribute("aria-atomic","true"),_extends$j(ut.style,visuallyHidden),getBodyElement().appendChild(ut),function(){setTimeout(function(){var ht=getBodyElement();ht.contains(ut)&&ht.removeChild(ut),ut===rt.current&&(rt.current=null)})}},[tt]);var nt=useCallback(function(lt){var ut=rt.current;if(ut){ut.textContent=lt;return}},[]);return nt}var count=0,defaults={separator:"::"};function useUniqueId(et,tt){return tt===void 0&&(tt=defaults),useMemo(function(){return""+et+tt.separator+count++},[tt.separator,et])}function getElementId(et){var tt=et.contextId,rt=et.uniqueId;return"rbd-hidden-text-"+tt+"-"+rt}function useHiddenTextElement(et){var tt=et.contextId,rt=et.text,nt=useUniqueId("hidden-text",{separator:"-"}),lt=useMemo(function(){return getElementId({contextId:tt,uniqueId:nt})},[nt,tt]);return reactExports.useEffect(function(){var dt=document.createElement("div");return dt.id=lt,dt.textContent=rt,dt.style.display="none",getBodyElement().appendChild(dt),function(){var ht=getBodyElement();ht.contains(dt)&&ht.removeChild(dt)}},[lt,rt]),lt}var AppContext=React$4.createContext(null);function usePrevious(et){var tt=reactExports.useRef(et);return reactExports.useEffect(function(){tt.current=et}),tt}function create(){var et=null;function tt(){return!!et}function rt(dt){return dt===et}function nt(dt){et&&invariant();var pt={abandon:dt};return et=pt,pt}function lt(){et||invariant(),et=null}function ut(){et&&(et.abandon(),lt())}return{isClaimed:tt,isActive:rt,claim:nt,release:lt,tryAbandon:ut}}var tab=9,enter=13,escape$1=27,space=32,pageUp=33,pageDown=34,end=35,home=36,arrowLeft=37,arrowUp=38,arrowRight=39,arrowDown=40,_preventedKeys,preventedKeys=(_preventedKeys={},_preventedKeys[enter]=!0,_preventedKeys[tab]=!0,_preventedKeys),preventStandardKeyEvents=function(et){preventedKeys[et.keyCode]&&et.preventDefault()},supportedEventName=function(){var et="visibilitychange";if(typeof document>"u")return et;var tt=[et,"ms"+et,"webkit"+et,"moz"+et,"o"+et],rt=find$1(tt,function(nt){return"on"+nt in document});return rt||et}(),primaryButton=0,sloppyClickThreshold=5;function isSloppyClickThresholdExceeded(et,tt){return Math.abs(tt.x-et.x)>=sloppyClickThreshold||Math.abs(tt.y-et.y)>=sloppyClickThreshold}var idle$1={type:"IDLE"};function getCaptureBindings(et){var tt=et.cancel,rt=et.completed,nt=et.getPhase,lt=et.setPhase;return[{eventName:"mousemove",fn:function(dt){var pt=dt.button,ht=dt.clientX,mt=dt.clientY;if(pt===primaryButton){var xt={x:ht,y:mt},Mt=nt();if(Mt.type==="DRAGGING"){dt.preventDefault(),Mt.actions.move(xt);return}Mt.type!=="PENDING"&&invariant();var vt=Mt.point;if(isSloppyClickThresholdExceeded(vt,xt)){dt.preventDefault();var Ot=Mt.actions.fluidLift(xt);lt({type:"DRAGGING",actions:Ot})}}}},{eventName:"mouseup",fn:function(dt){var pt=nt();if(pt.type!=="DRAGGING"){tt();return}dt.preventDefault(),pt.actions.drop({shouldBlockNextClick:!0}),rt()}},{eventName:"mousedown",fn:function(dt){nt().type==="DRAGGING"&&dt.preventDefault(),tt()}},{eventName:"keydown",fn:function(dt){var pt=nt();if(pt.type==="PENDING"){tt();return}if(dt.keyCode===escape$1){dt.preventDefault(),tt();return}preventStandardKeyEvents(dt)}},{eventName:"resize",fn:tt},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){nt().type==="PENDING"&&tt()}},{eventName:"webkitmouseforcedown",fn:function(dt){var pt=nt();if(pt.type==="IDLE"&&invariant(),pt.actions.shouldRespectForcePress()){tt();return}dt.preventDefault()}},{eventName:supportedEventName,fn:tt}]}function useMouseSensor(et){var tt=reactExports.useRef(idle$1),rt=reactExports.useRef(noop$1),nt=useMemo(function(){return{eventName:"mousedown",fn:function(Mt){if(!Mt.defaultPrevented&&Mt.button===primaryButton&&!(Mt.ctrlKey||Mt.metaKey||Mt.shiftKey||Mt.altKey)){var vt=et.findClosestDraggableId(Mt);if(vt){var Ot=et.tryGetLock(vt,dt,{sourceEvent:Mt});if(Ot){Mt.preventDefault();var At={x:Mt.clientX,y:Mt.clientY};rt.current(),mt(Ot,At)}}}}}},[et]),lt=useMemo(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Mt){if(!Mt.defaultPrevented){var vt=et.findClosestDraggableId(Mt);if(vt){var Ot=et.findOptionsForDraggable(vt);Ot&&(Ot.shouldRespectForcePress||et.canGetLock(vt)&&Mt.preventDefault())}}}}},[et]),ut=useCallback(function(){var Mt={passive:!1,capture:!0};rt.current=bindEvents(window,[lt,nt],Mt)},[lt,nt]),dt=useCallback(function(){var xt=tt.current;xt.type!=="IDLE"&&(tt.current=idle$1,rt.current(),ut())},[ut]),pt=useCallback(function(){var xt=tt.current;dt(),xt.type==="DRAGGING"&&xt.actions.cancel({shouldBlockNextClick:!0}),xt.type==="PENDING"&&xt.actions.abort()},[dt]),ht=useCallback(function(){var Mt={capture:!0,passive:!1},vt=getCaptureBindings({cancel:pt,completed:dt,getPhase:function(){return tt.current},setPhase:function(At){tt.current=At}});rt.current=bindEvents(window,vt,Mt)},[pt,dt]),mt=useCallback(function(Mt,vt){tt.current.type!=="IDLE"&&invariant(),tt.current={type:"PENDING",point:vt,actions:Mt},ht()},[ht]);useIsomorphicLayoutEffect(function(){return ut(),function(){rt.current()}},[ut])}var _scrollJumpKeys;function noop$1$1(){}var scrollJumpKeys=(_scrollJumpKeys={},_scrollJumpKeys[pageDown]=!0,_scrollJumpKeys[pageUp]=!0,_scrollJumpKeys[home]=!0,_scrollJumpKeys[end]=!0,_scrollJumpKeys);function getDraggingBindings(et,tt){function rt(){tt(),et.cancel()}function nt(){tt(),et.drop()}return[{eventName:"keydown",fn:function(ut){if(ut.keyCode===escape$1){ut.preventDefault(),rt();return}if(ut.keyCode===space){ut.preventDefault(),nt();return}if(ut.keyCode===arrowDown){ut.preventDefault(),et.moveDown();return}if(ut.keyCode===arrowUp){ut.preventDefault(),et.moveUp();return}if(ut.keyCode===arrowRight){ut.preventDefault(),et.moveRight();return}if(ut.keyCode===arrowLeft){ut.preventDefault(),et.moveLeft();return}if(scrollJumpKeys[ut.keyCode]){ut.preventDefault();return}preventStandardKeyEvents(ut)}},{eventName:"mousedown",fn:rt},{eventName:"mouseup",fn:rt},{eventName:"click",fn:rt},{eventName:"touchstart",fn:rt},{eventName:"resize",fn:rt},{eventName:"wheel",fn:rt,options:{passive:!0}},{eventName:supportedEventName,fn:rt}]}function useKeyboardSensor(et){var tt=reactExports.useRef(noop$1$1),rt=useMemo(function(){return{eventName:"keydown",fn:function(ut){if(ut.defaultPrevented||ut.keyCode!==space)return;var dt=et.findClosestDraggableId(ut);if(!dt)return;var pt=et.tryGetLock(dt,xt,{sourceEvent:ut});if(!pt)return;ut.preventDefault();var ht=!0,mt=pt.snapLift();tt.current();function xt(){ht||invariant(),ht=!1,tt.current(),nt()}tt.current=bindEvents(window,getDraggingBindings(mt,xt),{capture:!0,passive:!1})}}},[et]),nt=useCallback(function(){var ut={passive:!1,capture:!0};tt.current=bindEvents(window,[rt],ut)},[rt]);useIsomorphicLayoutEffect(function(){return nt(),function(){tt.current()}},[nt])}var idle$2={type:"IDLE"},timeForLongPress=120,forcePressThreshold=.15;function getWindowBindings(et){var tt=et.cancel,rt=et.getPhase;return[{eventName:"orientationchange",fn:tt},{eventName:"resize",fn:tt},{eventName:"contextmenu",fn:function(lt){lt.preventDefault()}},{eventName:"keydown",fn:function(lt){if(rt().type!=="DRAGGING"){tt();return}lt.keyCode===escape$1&&lt.preventDefault(),tt()}},{eventName:supportedEventName,fn:tt}]}function getHandleBindings(et){var tt=et.cancel,rt=et.completed,nt=et.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ut){var dt=nt();if(dt.type!=="DRAGGING"){tt();return}dt.hasMoved=!0;var pt=ut.touches[0],ht=pt.clientX,mt=pt.clientY,xt={x:ht,y:mt};ut.preventDefault(),dt.actions.move(xt)}},{eventName:"touchend",fn:function(ut){var dt=nt();if(dt.type!=="DRAGGING"){tt();return}ut.preventDefault(),dt.actions.drop({shouldBlockNextClick:!0}),rt()}},{eventName:"touchcancel",fn:function(ut){if(nt().type!=="DRAGGING"){tt();return}ut.preventDefault(),tt()}},{eventName:"touchforcechange",fn:function(ut){var dt=nt();dt.type==="IDLE"&&invariant();var pt=ut.touches[0];if(pt){var ht=pt.force>=forcePressThreshold;if(ht){var mt=dt.actions.shouldRespectForcePress();if(dt.type==="PENDING"){mt&&tt();return}if(mt){if(dt.hasMoved){ut.preventDefault();return}tt();return}ut.preventDefault()}}}},{eventName:supportedEventName,fn:tt}]}function useTouchSensor(et){var tt=reactExports.useRef(idle$2),rt=reactExports.useRef(noop$1),nt=useCallback(function(){return tt.current},[]),lt=useCallback(function(Ot){tt.current=Ot},[]),ut=useMemo(function(){return{eventName:"touchstart",fn:function(Ot){if(!Ot.defaultPrevented){var At=et.findClosestDraggableId(Ot);if(At){var Rt=et.tryGetLock(At,pt,{sourceEvent:Ot});if(Rt){var zt=Ot.touches[0],Tt=zt.clientX,Ct=zt.clientY,It={x:Tt,y:Ct};rt.current(),Mt(Rt,It)}}}}}},[et]),dt=useCallback(function(){var Ot={capture:!0,passive:!1};rt.current=bindEvents(window,[ut],Ot)},[ut]),pt=useCallback(function(){var vt=tt.current;vt.type!=="IDLE"&&(vt.type==="PENDING"&&clearTimeout(vt.longPressTimerId),lt(idle$2),rt.current(),dt())},[dt,lt]),ht=useCallback(function(){var vt=tt.current;pt(),vt.type==="DRAGGING"&&vt.actions.cancel({shouldBlockNextClick:!0}),vt.type==="PENDING"&&vt.actions.abort()},[pt]),mt=useCallback(function(){var Ot={capture:!0,passive:!1},At={cancel:ht,completed:pt,getPhase:nt},Rt=bindEvents(window,getHandleBindings(At),Ot),zt=bindEvents(window,getWindowBindings(At),Ot);rt.current=function(){Rt(),zt()}},[ht,nt,pt]),xt=useCallback(function(){var Ot=nt();Ot.type!=="PENDING"&&invariant();var At=Ot.actions.fluidLift(Ot.point);lt({type:"DRAGGING",actions:At,hasMoved:!1})},[nt,lt]),Mt=useCallback(function(Ot,At){nt().type!=="IDLE"&&invariant();var Rt=setTimeout(xt,timeForLongPress);lt({type:"PENDING",point:At,actions:Ot,longPressTimerId:Rt}),mt()},[mt,nt,lt,xt]);useIsomorphicLayoutEffect(function(){return dt(),function(){rt.current();var At=nt();At.type==="PENDING"&&(clearTimeout(At.longPressTimerId),lt(idle$2))}},[nt,dt,lt]),useIsomorphicLayoutEffect(function(){var Ot=bindEvents(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Ot},[])}var interactiveTagNames={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function isAnInteractiveElement(et,tt){if(tt==null)return!1;var rt=!!interactiveTagNames[tt.tagName.toLowerCase()];if(rt)return!0;var nt=tt.getAttribute("contenteditable");return nt==="true"||nt===""?!0:tt===et?!1:isAnInteractiveElement(et,tt.parentElement)}function isEventInInteractiveElement(et,tt){var rt=tt.target;return isHtmlElement(rt)?isAnInteractiveElement(et,rt):!1}var getBorderBoxCenterPosition=function(et){return getRect(et.getBoundingClientRect()).center};function isElement(et){return et instanceof getWindowFromEl(et).Element}var supportedMatchesName=function(){var et="matches";if(typeof document>"u")return et;var tt=[et,"msMatchesSelector","webkitMatchesSelector"],rt=find$1(tt,function(nt){return nt in Element.prototype});return rt||et}();function closestPonyfill(et,tt){return et==null?null:et[supportedMatchesName](tt)?et:closestPonyfill(et.parentElement,tt)}function closest$1(et,tt){return et.closest?et.closest(tt):closestPonyfill(et,tt)}function getSelector(et){return"["+dragHandle.contextId+'="'+et+'"]'}function findClosestDragHandleFromEvent(et,tt){var rt=tt.target;if(!isElement(rt))return null;var nt=getSelector(et),lt=closest$1(rt,nt);return!lt||!isHtmlElement(lt)?null:lt}function tryGetClosestDraggableIdFromEvent(et,tt){var rt=findClosestDragHandleFromEvent(et,tt);return rt?rt.getAttribute(dragHandle.draggableId):null}function findDraggable(et,tt){var rt="["+draggable.contextId+'="'+et+'"]',nt=toArray$2(document.querySelectorAll(rt)),lt=find$1(nt,function(ut){return ut.getAttribute(draggable.id)===tt});return!lt||!isHtmlElement(lt)?null:lt}function preventDefault(et){et.preventDefault()}function _isActive(et){var tt=et.expected,rt=et.phase,nt=et.isLockActive;return et.shouldWarn,!(!nt()||tt!==rt)}function canStart(et){var tt=et.lockAPI,rt=et.store,nt=et.registry,lt=et.draggableId;if(tt.isClaimed())return!1;var ut=nt.draggable.findById(lt);return!(!ut||!ut.options.isEnabled||!canStartDrag(rt.getState(),lt))}function tryStart(et){var tt=et.lockAPI,rt=et.contextId,nt=et.store,lt=et.registry,ut=et.draggableId,dt=et.forceSensorStop,pt=et.sourceEvent,ht=canStart({lockAPI:tt,store:nt,registry:lt,draggableId:ut});if(!ht)return null;var mt=lt.draggable.getById(ut),xt=findDraggable(rt,mt.descriptor.id);if(!xt||pt&&!mt.options.canDragInteractiveElements&&isEventInInteractiveElement(xt,pt))return null;var Mt=tt.claim(dt||noop$1),vt="PRE_DRAG";function Ot(){return mt.options.shouldRespectForcePress}function At(){return tt.isActive(Mt)}function Rt(qt,Nt){_isActive({expected:qt,phase:vt,isLockActive:At,shouldWarn:!0})&&nt.dispatch(Nt())}var zt=Rt.bind(null,"DRAGGING");function Tt(qt){function Nt(){tt.release(),vt="COMPLETED"}vt!=="PRE_DRAG"&&(Nt(),vt!=="PRE_DRAG"&&invariant()),nt.dispatch(lift(qt.liftActionArgs)),vt="DRAGGING";function Yt(Kt,Jt){if(Jt===void 0&&(Jt={shouldBlockNextClick:!1}),qt.cleanup(),Jt.shouldBlockNextClick){var Qt=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Qt)}Nt(),nt.dispatch(drop({reason:Kt}))}return _extends$j({isActive:function(){return _isActive({expected:"DRAGGING",phase:vt,isLockActive:At,shouldWarn:!1})},shouldRespectForcePress:Ot,drop:function(Jt){return Yt("DROP",Jt)},cancel:function(Jt){return Yt("CANCEL",Jt)}},qt.actions)}function Ct(qt){var Nt=rafSchd(function(Kt){zt(function(){return move({client:Kt})})}),Yt=Tt({liftActionArgs:{id:ut,clientSelection:qt,movementMode:"FLUID"},cleanup:function(){return Nt.cancel()},actions:{move:Nt}});return _extends$j({},Yt,{move:Nt})}function It(){var qt={moveUp:function(){return zt(moveUp)},moveRight:function(){return zt(moveRight)},moveDown:function(){return zt(moveDown)},moveLeft:function(){return zt(moveLeft)}};return Tt({liftActionArgs:{id:ut,clientSelection:getBorderBoxCenterPosition(xt),movementMode:"SNAP"},cleanup:noop$1,actions:qt})}function Dt(){var qt=_isActive({expected:"PRE_DRAG",phase:vt,isLockActive:At,shouldWarn:!0});qt&&tt.release()}var kt={isActive:function(){return _isActive({expected:"PRE_DRAG",phase:vt,isLockActive:At,shouldWarn:!1})},shouldRespectForcePress:Ot,fluidLift:Ct,snapLift:It,abort:Dt};return kt}var defaultSensors=[useMouseSensor,useKeyboardSensor,useTouchSensor];function useSensorMarshal(et){var tt=et.contextId,rt=et.store,nt=et.registry,lt=et.customSensors,ut=et.enableDefaultSensors,dt=[].concat(ut?defaultSensors:[],lt||[]),pt=reactExports.useState(function(){return create()})[0],ht=useCallback(function(Ct,It){Ct.isDragging&&!It.isDragging&&pt.tryAbandon()},[pt]);useIsomorphicLayoutEffect(function(){var Ct=rt.getState(),It=rt.subscribe(function(){var Dt=rt.getState();ht(Ct,Dt),Ct=Dt});return It},[pt,rt,ht]),useIsomorphicLayoutEffect(function(){return pt.tryAbandon},[pt.tryAbandon]);for(var mt=useCallback(function(Tt){return canStart({lockAPI:pt,registry:nt,store:rt,draggableId:Tt})},[pt,nt,rt]),xt=useCallback(function(Tt,Ct,It){return tryStart({lockAPI:pt,registry:nt,contextId:tt,store:rt,draggableId:Tt,forceSensorStop:Ct,sourceEvent:It&&It.sourceEvent?It.sourceEvent:null})},[tt,pt,nt,rt]),Mt=useCallback(function(Tt){return tryGetClosestDraggableIdFromEvent(tt,Tt)},[tt]),vt=useCallback(function(Tt){var Ct=nt.draggable.findById(Tt);return Ct?Ct.options:null},[nt.draggable]),Ot=useCallback(function(){pt.isClaimed()&&(pt.tryAbandon(),rt.getState().phase!=="IDLE"&&rt.dispatch(flush()))},[pt,rt]),At=useCallback(pt.isClaimed,[pt]),Rt=useMemo(function(){return{canGetLock:mt,tryGetLock:xt,findClosestDraggableId:Mt,findOptionsForDraggable:vt,tryReleaseLock:Ot,isLockClaimed:At}},[mt,xt,Mt,vt,Ot,At]),zt=0;zt<dt.length;zt++)dt[zt](Rt)}var createResponders=function(tt){return{onBeforeCapture:tt.onBeforeCapture,onBeforeDragStart:tt.onBeforeDragStart,onDragStart:tt.onDragStart,onDragEnd:tt.onDragEnd,onDragUpdate:tt.onDragUpdate}};function getStore(et){return et.current||invariant(),et.current}function App(et){var tt=et.contextId,rt=et.setCallbacks,nt=et.sensors,lt=et.nonce,ut=et.dragHandleUsageInstructions,dt=reactExports.useRef(null),pt=usePrevious(et),ht=useCallback(function(){return createResponders(pt.current)},[pt]),mt=useAnnouncer(tt),xt=useHiddenTextElement({contextId:tt,text:ut}),Mt=useStyleMarshal(tt,lt),vt=useCallback(function(Kt){getStore(dt).dispatch(Kt)},[]),Ot=useMemo(function(){return bindActionCreators$1({publishWhileDragging,updateDroppableScroll,updateDroppableIsEnabled,updateDroppableIsCombineEnabled,collectionStarting},vt)},[vt]),At=useRegistry(),Rt=useMemo(function(){return createDimensionMarshal(At,Ot)},[At,Ot]),zt=useMemo(function(){return createAutoScroller(_extends$j({scrollWindow,scrollDroppable:Rt.scrollDroppable},bindActionCreators$1({move},vt)))},[Rt.scrollDroppable,vt]),Tt=useFocusMarshal(tt),Ct=useMemo(function(){return createStore({announce:mt,autoScroller:zt,dimensionMarshal:Rt,focusMarshal:Tt,getResponders:ht,styleMarshal:Mt})},[mt,zt,Rt,Tt,ht,Mt]);dt.current=Ct;var It=useCallback(function(){var Kt=getStore(dt),Jt=Kt.getState();Jt.phase!=="IDLE"&&Kt.dispatch(flush())},[]),Dt=useCallback(function(){var Kt=getStore(dt).getState();return Kt.isDragging||Kt.phase==="DROP_ANIMATING"},[]),kt=useMemo(function(){return{isDragging:Dt,tryAbort:It}},[Dt,It]);rt(kt);var qt=useCallback(function(Kt){return canStartDrag(getStore(dt).getState(),Kt)},[]),Nt=useCallback(function(){return isMovementAllowed(getStore(dt).getState())},[]),Yt=useMemo(function(){return{marshal:Rt,focus:Tt,contextId:tt,canLift:qt,isMovementAllowed:Nt,dragHandleUsageInstructionsId:xt,registry:At}},[tt,Rt,xt,Tt,qt,Nt,At]);return useSensorMarshal({contextId:tt,store:Ct,registry:At,customSensors:nt,enableDefaultSensors:et.enableDefaultSensors!==!1}),reactExports.useEffect(function(){return It},[It]),React$4.createElement(AppContext.Provider,{value:Yt},React$4.createElement(Provider,{context:StoreContext,store:Ct},et.children))}var count$1=0;function useInstanceCount(){return useMemo(function(){return""+count$1++},[])}function DragDropContext(et){var tt=useInstanceCount(),rt=et.dragHandleUsageInstructions||preset.dragHandleUsageInstructions;return React$4.createElement(ErrorBoundary,null,function(nt){return React$4.createElement(App,{nonce:et.nonce,contextId:tt,setCallbacks:nt,dragHandleUsageInstructions:rt,enableDefaultSensors:et.enableDefaultSensors,sensors:et.sensors,onBeforeCapture:et.onBeforeCapture,onBeforeDragStart:et.onBeforeDragStart,onDragStart:et.onDragStart,onDragUpdate:et.onDragUpdate,onDragEnd:et.onDragEnd},et.children)})}var isEqual$1=function(tt){return function(rt){return tt===rt}},isScroll=isEqual$1("scroll"),isAuto=isEqual$1("auto"),isEither=function(tt,rt){return rt(tt.overflowX)||rt(tt.overflowY)},isElementScrollable=function(tt){var rt=window.getComputedStyle(tt),nt={overflowX:rt.overflowX,overflowY:rt.overflowY};return isEither(nt,isScroll)||isEither(nt,isAuto)},isBodyScrollable=function(){return!1},getClosestScrollable=function et(tt){return tt==null?null:tt===document.body?isBodyScrollable()?tt:null:tt===document.documentElement?null:isElementScrollable(tt)?tt:et(tt.parentElement)},getScroll$1=function(et){return{x:et.scrollLeft,y:et.scrollTop}},getIsFixed=function et(tt){if(!tt)return!1;var rt=window.getComputedStyle(tt);return rt.position==="fixed"?!0:et(tt.parentElement)},getEnv=function(et){var tt=getClosestScrollable(et),rt=getIsFixed(et);return{closestScrollable:tt,isFixedOnPage:rt}},getDroppableDimension=function(et){var tt=et.descriptor,rt=et.isEnabled,nt=et.isCombineEnabled,lt=et.isFixedOnPage,ut=et.direction,dt=et.client,pt=et.page,ht=et.closest,mt=function(){if(!ht)return null;var Ot=ht.scrollSize,At=ht.client,Rt=getMaxScroll({scrollHeight:Ot.scrollHeight,scrollWidth:Ot.scrollWidth,height:At.paddingBox.height,width:At.paddingBox.width});return{pageMarginBox:ht.page.marginBox,frameClient:At,scrollSize:Ot,shouldClipSubject:ht.shouldClipSubject,scroll:{initial:ht.scroll,current:ht.scroll,max:Rt,diff:{value:origin,displacement:origin}}}}(),xt=ut==="vertical"?vertical:horizontal,Mt=getSubject({page:pt,withPlaceholder:null,axis:xt,frame:mt}),vt={descriptor:tt,isCombineEnabled:nt,isFixedOnPage:lt,axis:xt,isEnabled:rt,client:dt,page:pt,frame:mt,subject:Mt};return vt},getClient=function(tt,rt){var nt=getBox(tt);if(!rt||tt!==rt)return nt;var lt=nt.paddingBox.top-rt.scrollTop,ut=nt.paddingBox.left-rt.scrollLeft,dt=lt+rt.scrollHeight,pt=ut+rt.scrollWidth,ht={top:lt,right:pt,bottom:dt,left:ut},mt=expand(ht,nt.border),xt=createBox({borderBox:mt,margin:nt.margin,border:nt.border,padding:nt.padding});return xt},getDimension=function(et){var tt=et.ref,rt=et.descriptor,nt=et.env,lt=et.windowScroll,ut=et.direction,dt=et.isDropDisabled,pt=et.isCombineEnabled,ht=et.shouldClipSubject,mt=nt.closestScrollable,xt=getClient(tt,mt),Mt=withScroll(xt,lt),vt=function(){if(!mt)return null;var At=getBox(mt),Rt={scrollHeight:mt.scrollHeight,scrollWidth:mt.scrollWidth};return{client:At,page:withScroll(At,lt),scroll:getScroll$1(mt),scrollSize:Rt,shouldClipSubject:ht}}(),Ot=getDroppableDimension({descriptor:rt,isEnabled:!dt,isCombineEnabled:pt,isFixedOnPage:nt.isFixedOnPage,direction:ut,client:xt,page:Mt,closest:vt});return Ot},immediate={passive:!1},delayed={passive:!0},getListenerOptions=function(et){return et.shouldPublishImmediately?immediate:delayed};function useRequiredContext(et){var tt=reactExports.useContext(et);return tt||invariant(),tt}var getClosestScrollableFromDrag=function(tt){return tt&&tt.env.closestScrollable||null};function useDroppablePublisher(et){var tt=reactExports.useRef(null),rt=useRequiredContext(AppContext),nt=useUniqueId("droppable"),lt=rt.registry,ut=rt.marshal,dt=usePrevious(et),pt=useMemo(function(){return{id:et.droppableId,type:et.type,mode:et.mode}},[et.droppableId,et.mode,et.type]),ht=reactExports.useRef(pt),mt=useMemo(function(){return memoizeOne$1(function(Dt,kt){tt.current||invariant();var qt={x:Dt,y:kt};ut.updateDroppableScroll(pt.id,qt)})},[pt.id,ut]),xt=useCallback(function(){var Dt=tt.current;return!Dt||!Dt.env.closestScrollable?origin:getScroll$1(Dt.env.closestScrollable)},[]),Mt=useCallback(function(){var Dt=xt();mt(Dt.x,Dt.y)},[xt,mt]),vt=useMemo(function(){return rafSchd(Mt)},[Mt]),Ot=useCallback(function(){var Dt=tt.current,kt=getClosestScrollableFromDrag(Dt);Dt&&kt||invariant();var qt=Dt.scrollOptions;if(qt.shouldPublishImmediately){Mt();return}vt()},[vt,Mt]),At=useCallback(function(Dt,kt){tt.current&&invariant();var qt=dt.current,Nt=qt.getDroppableRef();Nt||invariant();var Yt=getEnv(Nt),Kt={ref:Nt,descriptor:pt,env:Yt,scrollOptions:kt};tt.current=Kt;var Jt=getDimension({ref:Nt,descriptor:pt,env:Yt,windowScroll:Dt,direction:qt.direction,isDropDisabled:qt.isDropDisabled,isCombineEnabled:qt.isCombineEnabled,shouldClipSubject:!qt.ignoreContainerClipping}),Qt=Yt.closestScrollable;return Qt&&(Qt.setAttribute(scrollContainer.contextId,rt.contextId),Qt.addEventListener("scroll",Ot,getListenerOptions(Kt.scrollOptions))),Jt},[rt.contextId,pt,Ot,dt]),Rt=useCallback(function(){var Dt=tt.current,kt=getClosestScrollableFromDrag(Dt);return Dt&&kt||invariant(),getScroll$1(kt)},[]),zt=useCallback(function(){var Dt=tt.current;Dt||invariant();var kt=getClosestScrollableFromDrag(Dt);tt.current=null,kt&&(vt.cancel(),kt.removeAttribute(scrollContainer.contextId),kt.removeEventListener("scroll",Ot,getListenerOptions(Dt.scrollOptions)))},[Ot,vt]),Tt=useCallback(function(Dt){var kt=tt.current;kt||invariant();var qt=getClosestScrollableFromDrag(kt);qt||invariant(),qt.scrollTop+=Dt.y,qt.scrollLeft+=Dt.x},[]),Ct=useMemo(function(){return{getDimensionAndWatchScroll:At,getScrollWhileDragging:Rt,dragStopped:zt,scroll:Tt}},[zt,At,Rt,Tt]),It=useMemo(function(){return{uniqueId:nt,descriptor:pt,callbacks:Ct}},[Ct,pt,nt]);useIsomorphicLayoutEffect(function(){return ht.current=It.descriptor,lt.droppable.register(It),function(){tt.current&&zt(),lt.droppable.unregister(It)}},[Ct,pt,zt,It,ut,lt.droppable]),useIsomorphicLayoutEffect(function(){tt.current&&ut.updateDroppableIsEnabled(ht.current.id,!et.isDropDisabled)},[et.isDropDisabled,ut]),useIsomorphicLayoutEffect(function(){tt.current&&ut.updateDroppableIsCombineEnabled(ht.current.id,et.isCombineEnabled)},[et.isCombineEnabled,ut])}function noop$2(){}var empty={width:0,height:0,margin:noSpacing},getSize=function(tt){var rt=tt.isAnimatingOpenOnMount,nt=tt.placeholder,lt=tt.animate;return rt||lt==="close"?empty:{height:nt.client.borderBox.height,width:nt.client.borderBox.width,margin:nt.client.margin}},getStyle=function(tt){var rt=tt.isAnimatingOpenOnMount,nt=tt.placeholder,lt=tt.animate,ut=getSize({isAnimatingOpenOnMount:rt,placeholder:nt,animate:lt});return{display:nt.display,boxSizing:"border-box",width:ut.width,height:ut.height,marginTop:ut.margin.top,marginRight:ut.margin.right,marginBottom:ut.margin.bottom,marginLeft:ut.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:lt!=="none"?transitions.placeholder:null}};function Placeholder(et){var tt=reactExports.useRef(null),rt=useCallback(function(){tt.current&&(clearTimeout(tt.current),tt.current=null)},[]),nt=et.animate,lt=et.onTransitionEnd,ut=et.onClose,dt=et.contextId,pt=reactExports.useState(et.animate==="open"),ht=pt[0],mt=pt[1];reactExports.useEffect(function(){return ht?nt!=="open"?(rt(),mt(!1),noop$2):tt.current?noop$2:(tt.current=setTimeout(function(){tt.current=null,mt(!1)}),rt):noop$2},[nt,ht,rt]);var xt=useCallback(function(vt){vt.propertyName==="height"&&(lt(),nt==="close"&&ut())},[nt,ut,lt]),Mt=getStyle({isAnimatingOpenOnMount:ht,animate:et.animate,placeholder:et.placeholder});return React$4.createElement(et.placeholder.tagName,{style:Mt,"data-rbd-placeholder-context-id":dt,onTransitionEnd:xt,ref:et.innerRef})}var Placeholder$1=React$4.memo(Placeholder),DroppableContext=React$4.createContext(null),AnimateInOut=function(et){_inheritsLoose$3(tt,et);function tt(){for(var nt,lt=arguments.length,ut=new Array(lt),dt=0;dt<lt;dt++)ut[dt]=arguments[dt];return nt=et.call.apply(et,[this].concat(ut))||this,nt.state={isVisible:!!nt.props.on,data:nt.props.on,animate:nt.props.shouldAnimate&&nt.props.on?"open":"none"},nt.onClose=function(){nt.state.animate==="close"&&nt.setState({isVisible:!1})},nt}tt.getDerivedStateFromProps=function(lt,ut){return lt.shouldAnimate?lt.on?{isVisible:!0,data:lt.on,animate:"open"}:ut.isVisible?{isVisible:!0,data:ut.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!lt.on,data:lt.on,animate:"none"}};var rt=tt.prototype;return rt.render=function(){if(!this.state.isVisible)return null;var lt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(lt)},tt}(React$4.PureComponent),zIndexOptions={dragging:5e3,dropAnimating:4500},getDraggingTransition=function(tt,rt){return rt?transitions.drop(rt.duration):tt?transitions.snap:transitions.fluid},getDraggingOpacity=function(tt,rt){return tt?rt?combine$1.opacity.drop:combine$1.opacity.combining:null},getShouldDraggingAnimate=function(tt){return tt.forceShouldAnimate!=null?tt.forceShouldAnimate:tt.mode==="SNAP"};function getDraggingStyle(et){var tt=et.dimension,rt=tt.client,nt=et.offset,lt=et.combineWith,ut=et.dropping,dt=!!lt,pt=getShouldDraggingAnimate(et),ht=!!ut,mt=ht?transforms.drop(nt,dt):transforms.moveTo(nt),xt={position:"fixed",top:rt.marginBox.top,left:rt.marginBox.left,boxSizing:"border-box",width:rt.borderBox.width,height:rt.borderBox.height,transition:getDraggingTransition(pt,ut),transform:mt,opacity:getDraggingOpacity(dt,ht),zIndex:ht?zIndexOptions.dropAnimating:zIndexOptions.dragging,pointerEvents:"none"};return xt}function getSecondaryStyle(et){return{transform:transforms.moveTo(et.offset),transition:et.shouldAnimateDisplacement?null:"none"}}function getStyle$1(et){return et.type==="DRAGGING"?getDraggingStyle(et):getSecondaryStyle(et)}function getDimension$1(et,tt,rt){rt===void 0&&(rt=origin);var nt=window.getComputedStyle(tt),lt=tt.getBoundingClientRect(),ut=calculateBox(lt,nt),dt=withScroll(ut,rt),pt={client:ut,tagName:tt.tagName.toLowerCase(),display:nt.display},ht={x:ut.marginBox.width,y:ut.marginBox.height},mt={descriptor:et,placeholder:pt,displaceBy:ht,client:ut,page:dt};return mt}function useDraggablePublisher(et){var tt=useUniqueId("draggable"),rt=et.descriptor,nt=et.registry,lt=et.getDraggableRef,ut=et.canDragInteractiveElements,dt=et.shouldRespectForcePress,pt=et.isEnabled,ht=useMemo(function(){return{canDragInteractiveElements:ut,shouldRespectForcePress:dt,isEnabled:pt}},[ut,pt,dt]),mt=useCallback(function(Ot){var At=lt();return At||invariant(),getDimension$1(rt,At,Ot)},[rt,lt]),xt=useMemo(function(){return{uniqueId:tt,descriptor:rt,options:ht,getDimension:mt}},[rt,mt,ht,tt]),Mt=reactExports.useRef(xt),vt=reactExports.useRef(!0);useIsomorphicLayoutEffect(function(){return nt.draggable.register(Mt.current),function(){return nt.draggable.unregister(Mt.current)}},[nt.draggable]),useIsomorphicLayoutEffect(function(){if(vt.current){vt.current=!1;return}var Ot=Mt.current;Mt.current=xt,nt.draggable.update(xt,Ot)},[xt,nt.draggable])}function preventHtml5Dnd(et){et.preventDefault()}function Draggable(et){var tt=reactExports.useRef(null),rt=useCallback(function(Kt){tt.current=Kt},[]),nt=useCallback(function(){return tt.current},[]),lt=useRequiredContext(AppContext),ut=lt.contextId,dt=lt.dragHandleUsageInstructionsId,pt=lt.registry,ht=useRequiredContext(DroppableContext),mt=ht.type,xt=ht.droppableId,Mt=useMemo(function(){return{id:et.draggableId,index:et.index,type:mt,droppableId:xt}},[et.draggableId,et.index,mt,xt]),vt=et.children,Ot=et.draggableId,At=et.isEnabled,Rt=et.shouldRespectForcePress,zt=et.canDragInteractiveElements,Tt=et.isClone,Ct=et.mapped,It=et.dropAnimationFinished;if(!Tt){var Dt=useMemo(function(){return{descriptor:Mt,registry:pt,getDraggableRef:nt,canDragInteractiveElements:zt,shouldRespectForcePress:Rt,isEnabled:At}},[Mt,pt,nt,zt,Rt,At]);useDraggablePublisher(Dt)}var kt=useMemo(function(){return At?{tabIndex:0,role:"button","aria-describedby":dt,"data-rbd-drag-handle-draggable-id":Ot,"data-rbd-drag-handle-context-id":ut,draggable:!1,onDragStart:preventHtml5Dnd}:null},[ut,dt,Ot,At]),qt=useCallback(function(Kt){Ct.type==="DRAGGING"&&Ct.dropping&&Kt.propertyName==="transform"&&It()},[It,Ct]),Nt=useMemo(function(){var Kt=getStyle$1(Ct),Jt=Ct.type==="DRAGGING"&&Ct.dropping?qt:null,Qt={innerRef:rt,draggableProps:{"data-rbd-draggable-context-id":ut,"data-rbd-draggable-id":Ot,style:Kt,onTransitionEnd:Jt},dragHandleProps:kt};return Qt},[ut,kt,Ot,Ct,qt,rt]),Yt=useMemo(function(){return{draggableId:Mt.id,type:Mt.type,source:{index:Mt.index,droppableId:Mt.droppableId}}},[Mt.droppableId,Mt.id,Mt.index,Mt.type]);return vt(Nt,Ct.snapshot,Yt)}var isStrictEqual=function(et,tt){return et===tt},whatIsDraggedOverFromResult=function(et){var tt=et.combine,rt=et.destination;return rt?rt.droppableId:tt?tt.droppableId:null},getCombineWithFromResult=function(tt){return tt.combine?tt.combine.draggableId:null},getCombineWithFromImpact=function(tt){return tt.at&&tt.at.type==="COMBINE"?tt.at.combine.draggableId:null};function getDraggableSelector(){var et=memoizeOne$1(function(lt,ut){return{x:lt,y:ut}}),tt=memoizeOne$1(function(lt,ut,dt,pt,ht){return{isDragging:!0,isClone:ut,isDropAnimating:!!ht,dropAnimation:ht,mode:lt,draggingOver:dt,combineWith:pt,combineTargetFor:null}}),rt=memoizeOne$1(function(lt,ut,dt,pt,ht,mt,xt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:ht,combineWith:mt,mode:ut,offset:lt,dimension:dt,forceShouldAnimate:xt,snapshot:tt(ut,pt,ht,mt,null)}}}),nt=function(ut,dt){if(ut.isDragging){if(ut.critical.draggable.id!==dt.draggableId)return null;var pt=ut.current.client.offset,ht=ut.dimensions.draggables[dt.draggableId],mt=whatIsDraggedOver(ut.impact),xt=getCombineWithFromImpact(ut.impact),Mt=ut.forceShouldAnimate;return rt(et(pt.x,pt.y),ut.movementMode,ht,dt.isClone,mt,xt,Mt)}if(ut.phase==="DROP_ANIMATING"){var vt=ut.completed;if(vt.result.draggableId!==dt.draggableId)return null;var Ot=dt.isClone,At=ut.dimensions.draggables[dt.draggableId],Rt=vt.result,zt=Rt.mode,Tt=whatIsDraggedOverFromResult(Rt),Ct=getCombineWithFromResult(Rt),It=ut.dropDuration,Dt={duration:It,curve:curves$2.drop,moveTo:ut.newHomeClientOffset,opacity:Ct?combine$1.opacity.drop:null,scale:Ct?combine$1.scale.drop:null};return{mapped:{type:"DRAGGING",offset:ut.newHomeClientOffset,dimension:At,dropping:Dt,draggingOver:Tt,combineWith:Ct,mode:zt,forceShouldAnimate:null,snapshot:tt(zt,Ot,Tt,Ct,Dt)}}}return null};return nt}function getSecondarySnapshot(et){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:et,combineWith:null}}var atRest={mapped:{type:"SECONDARY",offset:origin,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:getSecondarySnapshot(null)}};function getSecondarySelector(){var et=memoizeOne$1(function(dt,pt){return{x:dt,y:pt}}),tt=memoizeOne$1(getSecondarySnapshot),rt=memoizeOne$1(function(dt,pt,ht){return pt===void 0&&(pt=null),{mapped:{type:"SECONDARY",offset:dt,combineTargetFor:pt,shouldAnimateDisplacement:ht,snapshot:tt(pt)}}}),nt=function(pt){return pt?rt(origin,pt,!0):null},lt=function(pt,ht,mt,xt){var Mt=mt.displaced.visible[pt],vt=!!(xt.inVirtualList&&xt.effected[pt]),Ot=tryGetCombine(mt),At=Ot&&Ot.draggableId===pt?ht:null;if(!Mt){if(!vt)return nt(At);if(mt.displaced.invisible[pt])return null;var Rt=negate(xt.displacedBy.point),zt=et(Rt.x,Rt.y);return rt(zt,At,!0)}if(vt)return nt(At);var Tt=mt.displacedBy.point,Ct=et(Tt.x,Tt.y);return rt(Ct,At,Mt.shouldAnimate)},ut=function(pt,ht){if(pt.isDragging)return pt.critical.draggable.id===ht.draggableId?null:lt(ht.draggableId,pt.critical.draggable.id,pt.impact,pt.afterCritical);if(pt.phase==="DROP_ANIMATING"){var mt=pt.completed;return mt.result.draggableId===ht.draggableId?null:lt(ht.draggableId,mt.result.draggableId,mt.impact,mt.afterCritical)}return null};return ut}var makeMapStateToProps=function(){var tt=getDraggableSelector(),rt=getSecondarySelector(),nt=function(ut,dt){return tt(ut,dt)||rt(ut,dt)||atRest};return nt},mapDispatchToProps={dropAnimationFinished},ConnectedDraggable=connect(makeMapStateToProps,mapDispatchToProps,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Draggable);function PrivateDraggable(et){var tt=useRequiredContext(DroppableContext),rt=tt.isUsingCloneFor;return rt===et.draggableId&&!et.isClone?null:React$4.createElement(ConnectedDraggable,et)}function PublicDraggable(et){var tt=typeof et.isDragDisabled=="boolean"?!et.isDragDisabled:!0,rt=!!et.disableInteractiveElementBlocking,nt=!!et.shouldRespectForcePress;return React$4.createElement(PrivateDraggable,_extends$j({},et,{isClone:!1,isEnabled:tt,canDragInteractiveElements:rt,shouldRespectForcePress:nt}))}function Droppable(et){var tt=reactExports.useContext(AppContext);tt||invariant();var rt=tt.contextId,nt=tt.isMovementAllowed,lt=reactExports.useRef(null),ut=reactExports.useRef(null),dt=et.children,pt=et.droppableId,ht=et.type,mt=et.mode,xt=et.direction,Mt=et.ignoreContainerClipping,vt=et.isDropDisabled,Ot=et.isCombineEnabled,At=et.snapshot,Rt=et.useClone,zt=et.updateViewportMaxScroll,Tt=et.getContainerForClone,Ct=useCallback(function(){return lt.current},[]),It=useCallback(function(Qt){lt.current=Qt},[]);useCallback(function(){return ut.current},[]);var Dt=useCallback(function(Qt){ut.current=Qt},[]),kt=useCallback(function(){nt()&&zt({maxScroll:getMaxWindowScroll()})},[nt,zt]);useDroppablePublisher({droppableId:pt,type:ht,mode:mt,direction:xt,isDropDisabled:vt,isCombineEnabled:Ot,ignoreContainerClipping:Mt,getDroppableRef:Ct});var qt=React$4.createElement(AnimateInOut,{on:et.placeholder,shouldAnimate:et.shouldAnimatePlaceholder},function(Qt){var Bt=Qt.onClose,Ft=Qt.data,$t=Qt.animate;return React$4.createElement(Placeholder$1,{placeholder:Ft,onClose:Bt,innerRef:Dt,animate:$t,contextId:rt,onTransitionEnd:kt})}),Nt=useMemo(function(){return{innerRef:It,placeholder:qt,droppableProps:{"data-rbd-droppable-id":pt,"data-rbd-droppable-context-id":rt}}},[rt,pt,qt,It]),Yt=Rt?Rt.dragging.draggableId:null,Kt=useMemo(function(){return{droppableId:pt,type:ht,isUsingCloneFor:Yt}},[pt,Yt,ht]);function Jt(){if(!Rt)return null;var Qt=Rt.dragging,Bt=Rt.render,Ft=React$4.createElement(PrivateDraggable,{draggableId:Qt.draggableId,index:Qt.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function($t,jt){return Bt($t,jt,Qt)});return ReactDOM.createPortal(Ft,Tt())}return React$4.createElement(DroppableContext.Provider,{value:Kt},dt(Nt,At),Jt())}var isMatchingType=function(tt,rt){return tt===rt.droppable.type},getDraggable=function(tt,rt){return rt.draggables[tt.draggable.id]},makeMapStateToProps$1=function(){var tt={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},rt=_extends$j({},tt,{shouldAnimatePlaceholder:!1}),nt=memoizeOne$1(function(dt){return{draggableId:dt.id,type:dt.type,source:{index:dt.index,droppableId:dt.droppableId}}}),lt=memoizeOne$1(function(dt,pt,ht,mt,xt,Mt){var vt=xt.descriptor.id,Ot=xt.descriptor.droppableId===dt;if(Ot){var At=Mt?{render:Mt,dragging:nt(xt.descriptor)}:null,Rt={isDraggingOver:ht,draggingOverWith:ht?vt:null,draggingFromThisWith:vt,isUsingPlaceholder:!0};return{placeholder:xt.placeholder,shouldAnimatePlaceholder:!1,snapshot:Rt,useClone:At}}if(!pt)return rt;if(!mt)return tt;var zt={isDraggingOver:ht,draggingOverWith:vt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:xt.placeholder,shouldAnimatePlaceholder:!0,snapshot:zt,useClone:null}}),ut=function(pt,ht){var mt=ht.droppableId,xt=ht.type,Mt=!ht.isDropDisabled,vt=ht.renderClone;if(pt.isDragging){var Ot=pt.critical;if(!isMatchingType(xt,Ot))return rt;var At=getDraggable(Ot,pt.dimensions),Rt=whatIsDraggedOver(pt.impact)===mt;return lt(mt,Mt,Rt,Rt,At,vt)}if(pt.phase==="DROP_ANIMATING"){var zt=pt.completed;if(!isMatchingType(xt,zt.critical))return rt;var Tt=getDraggable(zt.critical,pt.dimensions);return lt(mt,Mt,whatIsDraggedOverFromResult(zt.result)===mt,whatIsDraggedOver(zt.impact)===mt,Tt,vt)}if(pt.phase==="IDLE"&&pt.completed&&!pt.shouldFlush){var Ct=pt.completed;if(!isMatchingType(xt,Ct.critical))return rt;var It=whatIsDraggedOver(Ct.impact)===mt,Dt=!!(Ct.impact.at&&Ct.impact.at.type==="COMBINE"),kt=Ct.critical.droppable.id===mt;return It?Dt?tt:rt:kt?tt:rt}return rt};return ut},mapDispatchToProps$1={updateViewportMaxScroll};function getBody(){return document.body||invariant(),document.body}var defaultProps={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:getBody},ConnectedDroppable=connect(makeMapStateToProps$1,mapDispatchToProps$1,null,{context:StoreContext,pure:!0,areStatePropsEqual:isStrictEqual})(Droppable);ConnectedDroppable.defaultProps=defaultProps;const DRUG_CATEGORIES={SUPPORTING:"Supporting",TREATING:"Treating"},StyledLabel=styled$1("label")`
  font-size: 15px;
`,StyledErrorRow=styled$1("div")`
  color: ${et=>et.theme.palette.error.main};
  display: flex;
  padding-top: 8px;
  align-items: center;
`,SupportingDrugModal=({open:et,cycleSchedule:tt,setNewSupportingDrugOrder:rt,setSupportingDrugModalOpen:nt,selectedCycle:lt})=>{const[ut,dt]=reactExports.useState("careplan"),[pt,ht]=reactExports.useState("In House Treat"),[mt,xt]=reactExports.useState(()=>[]),[Mt,vt]=reactExports.useState(null),[Ot,At]=reactExports.useState([]),[Rt,zt]=reactExports.useState(""),{data:Tt}=useQuery(GET_DRUG_ORDERS,{variables:{drugCategory:DRUG_CATEGORIES.SUPPORTING}}),[Ct,It]=reactExports.useState(!1),Dt=reactExports.useRef(null),kt=useTheme$1();reactExports.useEffect(()=>{if(!Tt)return;const Wt={};Tt.drugOrders.filter(Vt=>Vt.type===pt).forEach(Vt=>{const Ht=getDrugName(Vt);Wt.hasOwnProperty(Ht)||(Wt[Ht]={label:Ht,value:Vt.id})});const Ut=Object.values(Wt).sort((Vt,Ht)=>Vt.label>Ht.label?1:-1);At(Ut)},[pt,Tt]),reactExports.useEffect(()=>{(Mt==null?void 0:Mt.type)==="In House Treat"?zt(Mt.administrationInstructions):zt("")},[Mt]);const qt=()=>{if(!Mt||mt.length===0||!Rt){It(!0);return}rt({applyTo:ut,drugOrder:Mt,days:mt,insertIndex:null,inStaging:Mt.type==="In House Treat",cycleId:lt,instructions:Rt}),nt(!1),zt(""),It(!1),Yt()},Nt=Wt=>{mt.includes(Wt)?xt(mt.filter(Ut=>Ut!==Wt)):xt([...mt,Wt])},Yt=()=>{vt(null),xt([]),It(!1)},Kt=Wt=>{if(!Wt)return vt(null);const Ut=Tt.drugOrders.find(Vt=>Vt.id===Wt.value);vt(Ut),It(!1)},Jt=()=>{nt(!1),Yt()},Qt=2;if(!Tt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Bt=pt==="Take At Home"?"Patient instructions*":"Admin instructions*",Ft=pt==="Take At Home"?"Please enter patient instructions.":"Please enter admin instructions.",$t=Object.entries(tt.slice(lt,ut==="careplan"?tt.length:lt+1).reduce((Wt,Ut)=>(Ut.days.forEach(Vt=>{Wt[Vt.day]=Wt[Vt.day]!==void 0&&Wt[Vt.day]||Vt.hidden}),Wt),{})).map(Wt=>({id:parseInt(Wt[0]),disabled:Wt[1]})).sort((Wt,Ut)=>Wt.id-Ut.id),jt=$t.some(Wt=>Wt.disabled);return jsxRuntimeExports.jsx(StandardDialog,{maxWidth:"lg",open:et,onClose:Jt,title:"Add supporting drug",showDividers:!0,onSubmit:qt,submitText:"Add",children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:2,children:[jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,children:[jsxRuntimeExports.jsx("div",{className:`col-${Qt}`,children:jsxRuntimeExports.jsx(StyledLabel,{children:"Drug Type:"})}),jsxRuntimeExports.jsx("div",{className:"col"})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,children:[jsxRuntimeExports.jsx("div",{className:`col-${Qt}`,children:jsxRuntimeExports.jsx(StyledLabel,{children:"Drug Lookup:"})}),jsxRuntimeExports.jsx("div",{className:"col",children:jsxRuntimeExports.jsx(BaseAutocomplete,{fullWidth:!0,ref:Dt,value:Mt&&{label:getDrugName(Mt),value:Mt.name},id:"supporting-drug-dropdown",options:Ot,onChange:Kt})})]}),Mt?jsxRuntimeExports.jsxs(Grid,{container:!0,item:!0,xs:12,gap:"8px",children:[jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,children:[jsxRuntimeExports.jsx("div",{className:`col-${Qt}`,children:jsxRuntimeExports.jsx(StyledLabel,{children:"Apply To:"})}),jsxRuntimeExports.jsx("div",{className:"col"})]}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsxs("div",{className:"col",children:[jsxRuntimeExports.jsx(SvgInfoCircleBlueWhiteBorderIcon,{style:{width:"17px",height:"17px"}}),jsxRuntimeExports.jsx("span",{style:{paddingLeft:"8px",fontSize:"0.8125rem"},children:ut==="careplan"?"The selected days will be applied to all cycles from the current cycle":`The selected days will be applied to cycle ${lt+1}`})]})}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,children:[jsxRuntimeExports.jsx("div",{className:`col-${Qt}`,children:jsxRuntimeExports.jsx(StyledLabel,{children:Bt})}),jsxRuntimeExports.jsx("div",{className:"col",children:jsxRuntimeExports.jsx(TextField,{variant:"outlined",fullWidth:!0,size:"small",placeholder:Ft,onChange:Wt=>{zt(Wt.target.value)},value:Rt,multiline:!0,rows:4,id:"instructions",error:Ct&&!Rt})})]}),Ct&&!Rt&&jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,children:[jsxRuntimeExports.jsx("div",{className:`col-${Qt}`}),jsxRuntimeExports.jsx("div",{className:"col",children:jsxRuntimeExports.jsxs(StyledErrorRow,{children:[jsxRuntimeExports.jsx(ErrorOutlineIcon,{style:{width:"17px",height:"17px"}}),jsxRuntimeExports.jsx("span",{style:{paddingLeft:"8px",fontSize:"0.8125rem"},children:"This field is required"})]})})]}),!["0",""].includes(Mt.solution)&&jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,children:[jsxRuntimeExports.jsx("div",{className:`col-${Qt}`,children:jsxRuntimeExports.jsx(StyledLabel,{children:"Solution:"})}),jsxRuntimeExports.jsx("div",{className:"col",children:jsxRuntimeExports.jsx(BaseTextField,{disabled:!0,fullWidth:!0,"data-cy":"supporting-drug-solution",value:Mt.solution})})]}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx("div",{className:"col",children:"Select days"})}),jt&&jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx("div",{className:"col",style:{fontSize:"13px",color:kt.palette.grey[600]},children:"Some days are disabled due to day changes"})}),jsxRuntimeExports.jsx(Stack$6,{flexDirection:"row",flexWrap:"wrap",children:$t.map(Wt=>jsxRuntimeExports.jsx("div",{style:{width:70,margin:8},children:jsxRuntimeExports.jsxs(Button,{"data-cy":`add-drug-day-${Wt.id}`,onClick:()=>{Nt(Wt.id)},disabled:Wt.disabled,children:["Day ",Wt.id+1]})},Wt.id))})]}):jsxRuntimeExports.jsx("div",{style:{minHeight:300}})]})})},StyledPaper=styled$1(Paper)`
  &.MuiPaper-outlined {
    border: 2px solid ${et=>et.theme.palette.primary.main};
    position: relative;
    top: calc(100vh - 172px);
    border-radius: 8px;
    width: 327px;
    box-shadow: 0 0 8px lightgray;
  }
  .title {
    text-align: center;
    padding: 10px;
    color: gray;
  }
  .actions {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 8px;
    button {
      :disabled {
        background-color: ${et=>et.theme.palette.grey[100]};
      }
      span {
        display: flex;
        flex-direction: row;
        gap: 8px;
        fill: ${et=>et.theme.palette.primary.main};
      }
    }
  }
  hr {
    padding: 0;
    margin: 0;
  }
`,SequencePopper=({open:et,anchorEl:tt=document.body,onSave:rt,onCancel:nt,saveDisabled:lt=!1})=>jsxRuntimeExports.jsx(Popper,{open:et,placement:"bottom",anchorEl:tt,transition:!0,children:jsxRuntimeExports.jsx(Slide,{direction:"up",in:et,timeout:{enter:300,exit:0},children:jsxRuntimeExports.jsxs(StyledPaper,{variant:"outlined",elevation:3,children:[jsxRuntimeExports.jsx("div",{className:"title",children:"Sequence the drug before saving"}),jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsxs("div",{className:"actions",children:[jsxRuntimeExports.jsxs(Button,{onClick:nt,"data-cy":"add-supporting-drug-order-cancel",children:[jsxRuntimeExports.jsx(CloseOutlined,{color:"primary"}),jsxRuntimeExports.jsx("div",{children:"Cancel"})]}),jsxRuntimeExports.jsxs(Button,{onClick:rt,disabled:lt,"data-cy":"add-supporting-drug-order-confirm",children:[jsxRuntimeExports.jsx(CheckCircleOutlined,{color:lt?"inherit":"primary"}),jsxRuntimeExports.jsx("div",{children:"Save Drug"})]})]})]})})}),getBaseColor=et=>useTheme$1().palette.error,Pill=styled$1("div")`
  border-width: 2px;
  border-style: solid;
  border-radius: 100px;
  padding: ${et=>et.padding??"6px"};
  text-align: center;
  max-width: ${et=>et.width??"999px"};
  font-weight: 600;
  :hover {
    cursor: ${et=>et.onClick?"pointer":"default"};
  }
`,TruncatedText=styled$1("span")`
  flex: 1;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
`,ReactiveTruncatedText=({text:et,id:tt})=>{const rt=reactExports.useRef(null),[nt,lt]=reactExports.useState(!1);return reactExports.useLayoutEffect(()=>{const{current:ut}=rt;ut&&lt(ut.scrollWidth>ut.clientWidth)},[rt]),nt?jsxRuntimeExports.jsx(Tooltip,{title:et,style:{textAlign:"left"},children:jsxRuntimeExports.jsx(TruncatedText,{ref:rt,id:"tooltip_"+tt,children:et})}):jsxRuntimeExports.jsx(TruncatedText,{ref:rt,children:et})},DoseCell=({drugOrder:et,day:tt,onPillClick:rt,justText:nt})=>{if(!tt.dose)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});if(et.doseIsCalculated&&tt.dose.doseValue===0)return jsxRuntimeExports.jsx(Pill,{borderColor:"neutral",padding:"8px 16px",backgroundColor:"neutral",children:"TBD"});const lt=et.doseIsCalculated?et.doseCalculatedUnits.split(" "):et.doseUnit.split(" "),ut=lt.join(" ")==="International Units"?jsxRuntimeExports.jsxs("span",{children:[lt[0],jsxRuntimeExports.jsx("br",{}),lt[1]]}):lt.join(" ");if(!tt.dose.doseAdjustment||tt.dose.doseAdjustment.dosePercentage===100){const dt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et.doseIsCalculated?tt.dose.prescribedDose:tt.dose.doseValue," ",ut]});return nt?jsxRuntimeExports.jsx("div",{style:{fontWeight:600},children:dt}):jsxRuntimeExports.jsx(Pill,{borderColor:"information",padding:"8px 16px",onClick:rt,children:dt})}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Pill,{borderColor:"destructive",padding:"8px 16px",onClick:rt,children:[tt.dose.prescribedDose," ",ut]}),et.drugCategory!=="Supporting"&&jsxRuntimeExports.jsxs("div",{style:{color:getBaseColor().base,paddingLeft:"5px"},children:[Math.round(tt.dose.doseAdjustment.dosePercentage),"%"]})]})},getCardStyle=(et,tt,rt)=>({background:et?rt.palette.info.light:"white",...tt}),DrugRow=({drugOrder:et,drugOrderIndex:tt,drugDeleted:rt,openDeleteDrugOrder:nt,selectedCycle:lt,closestCycleDay:ut,todayInCycle:dt,openDoseEdit:pt})=>{const ht=getDrugName(et),mt=`${et.drugOrderId}`,xt=useTheme$1();return jsxRuntimeExports.jsx(PublicDraggable,{isDragDisabled:et.dragDisabled,draggableId:mt,index:tt,children:(Mt,vt)=>jsxRuntimeExports.jsxs("tr",{ref:Mt.innerRef,...Mt.draggableProps,...Mt.dragHandleProps,style:getCardStyle(vt.isDragging,Mt.draggableProps.style,xt),children:[jsxRuntimeExports.jsx("td",{style:{backgroundColor:et.dragDisabled?"":xt.palette.primary.light},children:jsxRuntimeExports.jsxs(DrugNameContainer,{"data-cy":`cycle-table-drug-name-${tt}`,children:[jsxRuntimeExports.jsx(ReactiveTruncatedText,{id:tt,text:ht}),et.type==="Take At Home"&&jsxRuntimeExports.jsx(Pill,{backgroundColor:"neutral",fontColor:"information",width:"130px",children:"Discharge Med"}),et.drugCategory===DRUG_CATEGORY.SUPPORTING&&!rt&&jsxRuntimeExports.jsx(IconButton,{style:{padding:0},"data-cy":"drug-order-delete",onClick:()=>{const Ot=et.doseDays.find(At=>At.dose)||et.doseDays[0];nt({doseDay:Ot,drugOrder:et,cycle:lt},ut==null?void 0:ut.day)},size:"large",children:jsxRuntimeExports.jsx(DeleteOutline,{})}),!et.dragDisabled&&jsxRuntimeExports.jsx(DragIndicator,{})]})}),et.doseDays.map((Ot,At)=>Ot.isEmptyColumn?jsxRuntimeExports.jsx("td",{className:"empty","data-cy":`dose-cell-${tt}-${At}`,children:jsxRuntimeExports.jsx(EmptyContainer,{})},At):jsxRuntimeExports.jsx("td",{className:Ot.day===(dt==null?void 0:dt.day)?"currentDate":"","data-cy":`dose-cell-${tt}-${At}`,children:jsxRuntimeExports.jsx(DoseCellContainer,{children:jsxRuntimeExports.jsx(DoseCell,{justText:!et.dragDisabled,day:Ot,drugOrder:et,onPillClick:()=>{var Rt,zt;!((zt=(Rt=Ot.dose)==null?void 0:Rt.doseAdjustment)!=null&&zt.isDoseDeleted)&&pt({doseDay:Ot,drugOrder:et,cycle:lt})}})})},At))]},mt)},mt)},DatePickerHeader=et=>{const{setOpen:tt,label:rt,id:nt,disabled:lt,InputProps:{ref:ut}={},inputProps:{"aria-label":dt}={},column:pt}=et;return jsxRuntimeExports.jsxs(HeaderContainer,{id:nt,"data-cy":`cycle-table-date-header-${pt.day}`,ref:ut,"aria-label":dt,onClick:()=>tt==null?void 0:tt(ht=>!ht),children:[jsxRuntimeExports.jsx("span",{className:"mb-1",children:hooks(pt.date).format("L")}),jsxRuntimeExports.jsxs(DayLabel,{children:[" DAY ",pt.day+1]})]})},findDosesInRange=(et,tt,rt,nt,lt)=>tt===rt?et.filter(pt=>tt===pt.cycle&&nt<=pt.day&&pt.day<=lt):et.filter(dt=>tt===dt.cycle&&nt<=dt.day||tt<dt.cycle&&dt.cycle<rt||rt===dt.cycle&&dt.day<=lt),CycleTable=({careplan:et,cycles:tt,selectedCycle:rt,drugOrders:nt,openDoseEdit:lt,openDeleteDrugOrder:ut,newSupportingDrugOrder:dt,setNewSupportingDrugOrder:pt})=>{var dr;const ht=useRouteMatch(),{careplanId:mt}=ht.params,[xt]=useMutation(ADD_CYCLE_BREAK_PERIOD,{refetchQueries:["moAdditionalInfo","latestCycles"]}),[Mt]=useMutation(ADD_DRUG_ORDER,{refetchQueries:["moCareplanData","latestCycles"]}),[vt,Ot]=reactExports.useState(!1),{state:At}=reactExports.useContext(UserContext),Rt=reactExports.useRef(null),zt=reactExports.useRef(null),Tt=reactExports.useRef(null),Ct=reactExports.useRef(null),It=reactExports.useRef(null),[Dt,kt]=reactExports.useState({width:0,height:0,scrollHeight:0,scrollWidth:0});if(reactExports.useEffect(()=>{var gr;(gr=Tt.current)==null||gr.scrollBy({top:Number.MAX_SAFE_INTEGER,behavior:"auto"})},[dt]),reactExports.useLayoutEffect(()=>{if(!Rt.current)return;const gr=Rt.current,br=Array.from(gr.children).slice(1),ar=document.querySelector('[data-rbd-draggable-id="new"]');if(ar!==null){const Mr=Array.from(ar.children).slice(1);br.push(...Mr)}const ur=br.map(Mr=>Mr.getBoundingClientRect().width),xr=Math.max(...ur);return br.filter(Mr=>Mr.className!=="empty").forEach(Mr=>{Mr.children[0].setAttribute("style",`min-width: ${Math.max(120,xr-1)}px`)}),()=>{br.forEach(Mr=>{Mr.children[0].setAttribute("style","min-width: unset;")})}}),reactExports.useLayoutEffect(()=>{Tt.current&&kt({width:Tt.current.clientWidth,height:Tt.current.clientHeight,scrollHeight:Tt.current.scrollHeight,scrollWidth:Tt.current.scrollWidth})},[et.cycleSchedule,dt]),!nt||!((dr=et.cycleSchedule)!=null&&dr.length))return jsxRuntimeExports.jsx(LoadingSpinner,{});const qt=et.cycleSchedule[rt].days.filter(gr=>!gr.hidden),Nt=hooks().toDate(),Yt=qt.find(gr=>hooks(gr.date).isSame(Nt,"day")),Kt=qt.find(gr=>hooks(gr.date).isSameOrAfter(Nt,"day")),Jt=qt.filter(gr=>et.doses.some(br=>br.cycle===rt&&br.day===gr.day)||(dt==null?void 0:dt.days.includes(gr.day))),Qt=[];let Bt=[];for(const gr of qt)Jt.includes(gr)?(Bt.length>0&&(Qt.push({isEmpty:!0,dayRange:Bt}),Bt=[]),Qt.push({...gr,isEmpty:!1})):gr.day>=0&&Bt.push(gr.day);Bt.length>0&&Qt.push({isEmpty:!0,dayRange:Bt});const Ft=[...et.doses.filter(gr=>gr.cycle===rt)].sort((gr,br)=>gr.order-br.order),$t=Object.assign({},...nt.map(gr=>({[gr.base||gr.id]:gr}))),jt=Object.assign({},...Ft.map(gr=>({[gr.drugOrder.id]:gr.drugOrder.drugOrderBaseId}))),Wt=Array.from(new Set(Ft.map(gr=>gr.drugOrder.id))),Ut=Qt.map(gr=>gr.isEmpty?{isEmptyColumn:!0}:{isEmptyColumn:!1,day:gr.day,date:gr.date,doseValue:"",dose:""}),Vt=Wt.map(gr=>({...deepCopyFunction($t[jt[gr]]),drugName:getDrugName($t[jt[gr]]),drugOrderId:gr,dragDisabled:!0,doseDays:deepCopyFunction(Ut)})),Ht=Ft.reduce((gr,br)=>{if(!(br.drugOrder.id in gr))return gr[br.drugOrder.id]=br,gr;const ar=gr[br.drugOrder.id];return(br.cycle>ar.cycle||br.cycle===ar.cycle&&br.day>=ar.day)&&(gr[br.drugOrder.id]=br),gr},{});if(dt&&isNewSupportingDrugApplicable(rt,dt)){const gr=dt.insertIndex??Vt.length;Vt.splice(gr,0,{...deepCopyFunction(dt.drugOrder),drugName:getDrugName(dt.drugOrder),dragDisabled:!1,drugOrderId:"new",movedFromStaging:!1,doseDays:deepCopyFunction(Ut).map(br=>({...br,dose:dt.days.includes(br.day)&&{id:-1,drugOrder:dt.drugOrder,cycle:rt,day:br.day,doseValue:dt.drugOrder.doseBasis||dt.drugOrder.minimumDose}}))})}Ft.forEach(gr=>{const br=Vt.findIndex(ur=>ur.drugOrderId===gr.drugOrder.id),ar=Qt.findIndex(ur=>!ur.isEmpty&&ur.day===gr.day);br>=0&&ar>=0&&(Vt[br].doseDays[ar].dose=gr)});const Gt=gr=>{if(!gr.destination||!dt)return;const br={...dt,insertIndex:gr.destination.index,inStaging:gr.destination.index===Vt.length};pt(br)},Zt=()=>{Ot(!0),pt(null)},Xt=()=>{Ot(!1),pt(null)},er=()=>{Mt({variables:{careplanId:mt,drugOrderBaseId:(dt==null?void 0:dt.drugOrder.base)??(dt==null?void 0:dt.drugOrder.id),drugOrderVersion:dt==null?void 0:dt.drugOrder.version,days:dt==null?void 0:dt.days,order:dt==null?void 0:dt.insertIndex,cycle:rt,applyTo:dt==null?void 0:dt.applyTo,instructions:dt==null?void 0:dt.instructions}}),pt(null)},nr=gr=>{if(et.cycleSchedule[rt].days[0].day===gr.day&&rt===0)return;const br=lodash.orderBy(et.doses.filter(Ar=>Ar.cycle<rt||Ar.cycle===rt&&Ar.day<gr.day),["cycle","day"],["asc","asc"]);if(br.length===0)return;const ar=br[br.length-1],ur=ar.day+1!==et.daysPerCycle?ar.cycle:ar.cycle+1,xr=ar.day+1!==et.daysPerCycle?ar.day:0,Mr=et.cycleSchedule[ur].days.find(Ar=>Ar.day===xr);if(Mr)return dayjs(Mr.date).add(1,"days")},or=(gr,br)=>{const ar=hooks(gr==null?void 0:gr.toString()),ur=et.cycleSchedule[rt].days.find(qr=>qr.day===br);if(!ur)throw new Error("Invalid selection day");const xr=hooks(ur.date),Mr=Math.max(...tt.map(qr=>qr.cycleId)),Ar=tt.find(qr=>qr.cycleId===Mr);if(Ar&&ar.isAfter(hooks(Ar.treatmentEndDate),"days"))return 1;const Rr=ar.isBefore(ur.date,"days"),wr=tt.find(qr=>ar.isBetween(hooks(qr.treatmentStartDate),hooks(qr.treatmentEndDate),"days","[]"));if(wr){const qr=et.cycleSchedule[wr.cycleId].days.find(Or=>hooks(Or.date).isSame(ar,"days")),Hr=et.cycleSchedule[wr.cycleId].days.find(Or=>!Or.hidden&&hooks(Or.date).isSameOrAfter(ar,"days"));if(Rr){if((Hr==null?void 0:Hr.day)===br||qr!==void 0)return 2;throw new Error("Invalid date selection")}const kr=rt<wr.cycleId?[rt,wr.cycleId+1]:[wr.cycleId,rt+1],$r=et.cycleSchedule.slice(...kr).reduce((Or,Dr,Fr)=>{const Yr=kr[0]+Fr;return Dr.days.reduce((Gr,Jr)=>(!Jr.hidden&&hooks(Jr.date).isBetween(xr,ar,"days","(]")&&((Yr<Gr.startCycle||Yr===Gr.startCycle&&Jr.day<Gr.startDay)&&(Gr.startCycle=Yr,Gr.startDay=Jr.day),(Yr===Gr.endCycle&&Jr.day>Gr.endDay||Yr>Gr.endCycle)&&(Gr.endCycle=Yr,Gr.endDay=Jr.day)),Gr),Or)},{startCycle:Number.MAX_SAFE_INTEGER,endCycle:Number.MIN_SAFE_INTEGER,startDay:Number.MAX_SAFE_INTEGER,endDay:Number.MIN_SAFE_INTEGER});return findDosesInRange(et.doses,$r.startCycle,$r.endCycle,$r.startDay,$r.endDay).length!==0?1:2}return 2},rr=(gr,br,ar,ur)=>{gr&&xt({variables:{careplanId:mt,day:br,cycle:ar,newDate:hooks(gr.toString()).tz(At.timezone).startOf("day").format("YYYY-MM-DD"),propagate:ur}})},cr=({column:gr})=>{const[br,ar]=reactExports.useState(!1),[ur,xr]=reactExports.useState(),Mr=reactExports.useRef(),Ar=reactExports.createRef(),[Ir,Rr]=reactExports.useState(),[wr,qr]=reactExports.useState(!1);return reactExports.forwardRef((Hr,kr)=>jsxRuntimeExports.jsxs(HeaderContainer,{"data-cy":`cycle-table-date-header-${gr.day}`,...Hr,ref:kr,children:[jsxRuntimeExports.jsx("span",{className:"mb-1",children:hooks(gr.date).format("L")}),jsxRuntimeExports.jsxs(DayLabel,{children:[" DAY ",gr.day+1]})]})),reactExports.useEffect(()=>{br&&Ar.current&&(Ar.current.focus(),Rr(Ar.current))},[br,Ar]),reactExports.useEffect(()=>()=>{Mr.current&&clearTimeout(Mr.current)},[]),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(BaseDatePicker,{id:"cycleBreak",slots:{field:DatePickerHeader},slotProps:{field:{setOpen:qr,column:gr}},minDate:nr(gr),onChange:Hr=>{const kr=or(Hr,gr.day);kr===2?(xr(Hr||void 0),ar($r=>!$r)):rr(Hr,gr.day,rt,kr===1)},value:dayjs(gr.date),open:wr,onOpen:()=>qr(!0),onClose:()=>qr(!1)}),jsxRuntimeExports.jsx("input",{"data-cy":`cycle-table-date-anchor-${gr.day}`,ref:Ar,style:{opacity:0,width:0,height:0,padding:0,margin:0,border:0,position:"absolute"}}),Ir&&jsxRuntimeExports.jsxs(Popover,{id:"date-change-propagate",title:"Reschedule days",open:br,anchorEl:Ir,trianglePosition:"50%",handleClickAway:()=>{ar(!1)},children:[jsxRuntimeExports.jsx("div",{style:{paddingBottom:"1em"},children:"Which days would you like to reschedule?"}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:"16px",paddingRight:"24px"},children:[jsxRuntimeExports.jsx(Button,{"data-cy":"date-change-propagate-no",variant:"outlined",onClick:()=>{ar(!1),ur&&rr(ur,gr.day,rt,!1)},children:"Selected day only"}),jsxRuntimeExports.jsx(Button,{"data-cy":"date-change-propagate-yes",variant:"contained",sx:{color:ir.palette.primary.contrastText},onClick:()=>{ar(!1),ur&&rr(ur,gr.day,rt,!0)},children:"Rest of careplan"})]})]})]})},ir=useTheme$1();return jsxRuntimeExports.jsxs(GreyBox,{children:[jsxRuntimeExports.jsx(AlwaysHorizontalScroll,{children:jsxRuntimeExports.jsx(DragDropContext,{onDragEnd:gr=>{Gt(gr)},children:jsxRuntimeExports.jsx(ConnectedDroppable,{droppableId:"droppable",children:gr=>jsxRuntimeExports.jsxs("div",{style:{display:"flex",width:"100%"},children:[jsxRuntimeExports.jsxs(StyledCycleTable,{ref:Tt,style:{paddingBottom:dt!==null?90:0},"data-test-id":"drug-order-table",onScroll:br=>{Ct.current&&(Ct.current.scrollTop=br.currentTarget.scrollTop),It.current&&(It.current.scrollLeft=br.currentTarget.scrollLeft)},children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{ref:Rt,children:[jsxRuntimeExports.jsx("th",{children:jsxRuntimeExports.jsxs(DrugNameContainer,{ref:zt,children:[jsxRuntimeExports.jsx(FirstHeaderContainer,{children:"Drug Orders"}),dt!==null||jsxRuntimeExports.jsx(Button,{variant:"text","data-cy":"open-supporting-drug-modal-btn",startIcon:jsxRuntimeExports.jsx(default_1$i,{color:"primary"}),onClick:Zt,children:"Add Supporting Drug"})]})}),Qt.map((br,ar)=>br.isEmpty?jsxRuntimeExports.jsx("th",{className:"empty",children:jsxRuntimeExports.jsxs(EmptyContainer,{children:[jsxRuntimeExports.jsx("span",{className:"mb-1",children:"EMPTY"}),br.dayRange.length===1?jsxRuntimeExports.jsxs("span",{children:["Day ",br.dayRange[0]+1]}):jsxRuntimeExports.jsxs("span",{children:[br.dayRange[0]+1,"-",br.dayRange[br.dayRange.length-1]+1]})]})},ar):jsxRuntimeExports.jsx("th",{className:hooks(br.date).isSame(Nt,"day")?"currentDate":"",children:jsxRuntimeExports.jsx(cr,{column:br})},ar))]})}),jsxRuntimeExports.jsxs("tbody",{ref:gr.innerRef,children:[Vt.slice(0,Vt.length-(dt!=null&&dt.inStaging?1:0)).map((br,ar)=>{const ur=br.drugOrderId!==void 0&&Kt!==void 0&&Ht[br.drugOrderId]&&Ht[br.drugOrderId].cycle<=rt&&Ht[br.drugOrderId].day<(Kt==null?void 0:Kt.day);return jsxRuntimeExports.jsx(DrugRow,{drugOrder:br,drugOrderIndex:ar,drugDeleted:ur,openDeleteDrugOrder:ut,selectedCycle:rt,closestCycleDay:Kt,todayInCycle:Yt,openDoseEdit:lt},br.drugOrderId)}),(dt==null?void 0:dt.inStaging)&&jsxRuntimeExports.jsx(PublicDraggable,{isDragDisabled:!0,draggableId:"divider",index:Vt.length-1,children:(br,ar)=>jsxRuntimeExports.jsx("tr",{"data-cy":"divider-row",ref:br.innerRef,...br.draggableProps,...br.dragHandleProps,children:jsxRuntimeExports.jsx("td",{colSpan:100,style:{backgroundColor:"transparent",border:0},children:jsxRuntimeExports.jsx("hr",{style:{borderTop:"1px dashed gray"}})})},"divider-row")},"divider"),(dt==null?void 0:dt.inStaging)&&jsxRuntimeExports.jsx(DrugRow,{drugOrder:Vt[Vt.length-1],drugOrderIndex:Vt.length,drugDeleted:!1,openDeleteDrugOrder:ut,selectedCycle:rt,closestCycleDay:Kt,todayInCycle:Yt,openDoseEdit:lt},Vt[Vt.length-1].drugOrderId),gr.placeholder]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{style:{minHeight:zt.current?zt.current.clientHeight:"40px"}}),jsxRuntimeExports.jsx(ScrollbarDiv,{ref:Ct,style:{maxHeight:zt.current?Dt.height-zt.current.clientHeight:"450px",overflowY:"auto",overflowX:"hidden"},onScroll:br=>{Tt.current&&(Tt.current.scrollTop=br.currentTarget.scrollTop)},children:jsxRuntimeExports.jsx(ScrollbarDiv,{style:{minHeight:zt.current?Dt.scrollHeight-zt.current.clientHeight:"800px",width:"6px",backgroundColor:ir.palette.grey[100]}})})]})]})})})}),jsxRuntimeExports.jsxs("div",{style:{display:"flex"},children:[jsxRuntimeExports.jsx("div",{style:{minWidth:zt.current?zt.current.clientWidth:"40px"}}),jsxRuntimeExports.jsx(ScrollbarDiv,{ref:It,style:{minHeight:"2px",maxWidth:zt.current?Dt.width-zt.current.clientWidth+17:"500px",overflow:"scroll"},onScroll:gr=>{Tt.current&&(Tt.current.scrollLeft=gr.currentTarget.scrollLeft)},children:jsxRuntimeExports.jsx("div",{style:{minWidth:zt.current?Dt.scrollWidth-zt.current.clientWidth:"800px",minHeight:"5px",backgroundColor:ir.palette.grey[100]}})})]}),jsxRuntimeExports.jsx(SupportingDrugModal,{cycleSchedule:et.cycleSchedule,selectedCycle:rt,open:vt,setNewSupportingDrugOrder:pt,setSupportingDrugModalOpen:Ot}),jsxRuntimeExports.jsx(SequencePopper,{open:dt!==null,onCancel:Xt,onSave:er,saveDisabled:dt==null?void 0:dt.inStaging})]})},CycleDateRange=({startDate:et,endDate:tt})=>{if(!et||!tt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const rt=et.format("Do MMMM"),nt=tt.format("Do MMMM");return jsxRuntimeExports.jsxs("h3",{children:[jsxRuntimeExports.jsx("span",{"data-cy":"cycle-start",children:rt})," - ",jsxRuntimeExports.jsx("span",{"data-cy":"cycle-end",children:nt})]})},Card=styled$1("div")`
  margin-top: 8px;
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  border-top: 7px solid ${et=>et.theme.palette.primary.main};
  border-radius: 5px;
  width: 100%;
  padding: 4px;
`,CardHeader=styled$1("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
`,StyledIcon=styled$1("div")`
  color: ${et=>et.theme.palette.grey[600]};
`,EditButton=styled$1(IconButton)`
  && {
    margin-left: auto;
  }
`,Icon=({icon:et})=>jsxRuntimeExports.jsx(StyledIcon,{children:et}),Title=styled$1("div")`
  font-weight: 700;
`,SubTitle$1=styled$1("div")`
  font-weight: 700;
  font-size: 0.8125rem;
  color: ${et=>et.theme.palette.grey[600]};
  padding: 0px 4px 8px 4px;
  opacity: 0.75;
`,Body=styled$1("div")`
  padding: 4px;
`,SideBarCard=({title:et,subTitle:tt,icon:rt,children:nt,onEdit:lt})=>jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsxs(CardHeader,{children:[jsxRuntimeExports.jsx(Icon,{icon:rt}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Title,{children:et})}),lt&&jsxRuntimeExports.jsx(EditButton,{"data-test-id":`edit-${et}`,size:"small",onClick:lt,children:jsxRuntimeExports.jsx(Icon,{icon:jsxRuntimeExports.jsx(EditOutlined,{})})})]}),jsxRuntimeExports.jsx(SubTitle$1,{children:tt}),jsxRuntimeExports.jsx(Body,{children:nt})]}),PatientDetailsCard=({onEdit:et,patient:tt,observation:rt,loading:nt})=>{if(nt||tt===void 0)return jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:""});const lt=tt!=null&&tt.dob?calculateMomentAge(hooks(tt.dob)):0;return jsxRuntimeExports.jsx(SideBarCard,{icon:jsxRuntimeExports.jsx(PersonOutline,{}),title:"Patient observations",subTitle:`Last updated ${(rt==null?void 0:rt.observationDate)||"-"}`,onEdit:et,children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:2,children:[jsxRuntimeExports.jsx(CardLabel,{children:"Patient weight:"}),jsxRuntimeExports.jsxs(CardData,{"data-cy":"obs-weight",children:[(rt==null?void 0:rt.weight)||"-"," kg"]}),jsxRuntimeExports.jsx(CardLabel,{children:"Patient height:"}),jsxRuntimeExports.jsxs(CardData,{children:[(rt==null?void 0:rt.height)||"-"," cm"]}),jsxRuntimeExports.jsx(CardLabel,{children:"Patient age:"}),jsxRuntimeExports.jsx(CardData,{children:lt}),jsxRuntimeExports.jsx(CardLabel,{children:"Patient sex:"}),jsxRuntimeExports.jsx(CardData,{children:tt.patientGender}),jsxRuntimeExports.jsx(CardLabel,{children:"BSA:"}),jsxRuntimeExports.jsxs(CardData,{"data-cy":"obs-bsa",children:[rt!=null&&rt.bsa?rt==null?void 0:rt.bsa:"-"," m²"]}),jsxRuntimeExports.jsx(CardLabel,{children:"Serum creatinine:"}),jsxRuntimeExports.jsxs(CardData,{children:[(rt==null?void 0:rt.serumCreatinine)||"-"," μmol/L"]}),jsxRuntimeExports.jsx(CardLabel,{children:"Creatinine clearance:"}),jsxRuntimeExports.jsxs(CardData,{"data-cy":"obs-creatinine-clearance",children:[rt!=null&&rt.creatinineClearance&&Number.isFinite(rt==null?void 0:rt.creatinineClearance)?rt==null?void 0:rt.creatinineClearance:"-"," ","mL/min"]})]})})},StyledCommentIcon=styled$1(ModeCommentOutlined)`
  path {
    width: 20px;
    height: 20px;
  }
`,PrescriptionComments=({careplanId:et,comments:tt})=>{const[rt]=useMutation(SAVE_COMMENTS,{refetchQueries:["latestCycles"]}),nt=reactExports.useCallback(lt=>{rt({variables:{careplanId:et,comments:lt.comments}})},[]);return jsxRuntimeExports.jsx(SideBarCard,{icon:jsxRuntimeExports.jsx(StyledCommentIcon,{}),title:"Additional prescription comments",subTitle:"",children:jsxRuntimeExports.jsx(Formik,{initialValues:{comments:tt},onSubmit:()=>{},children:jsxRuntimeExports.jsxs(Form$3,{children:[jsxRuntimeExports.jsx(Field,{component:TextAreaField,name:"comments",multiline:!0,rows:3}),jsxRuntimeExports.jsx(AutoSave,{saveMethod:nt})]})})})},DeleteDrugOrderModal=et=>{const[tt,rt]=reactExports.useState(!1),nt=useRouteMatch(),{careplanId:lt}=nt.params,{open:ut,onClose:dt,doseInfo:pt,day:ht}=et,mt=()=>{dt()},[xt]=useMutation(DELETE_DRUG_ORDER,{refetchQueries:["moCareplanData","latestCycles"]}),Mt=()=>{rt(!0),xt({variables:{careplanId:lt,drugOrderId:pt==null?void 0:pt.doseDay.dose.drugOrder.id,day:ht??0,cycle:pt==null?void 0:pt.cycle}}).then(()=>{dt()}).finally(()=>{rt(!1)})};return jsxRuntimeExports.jsx(StandardDialog,{open:ut,maxWidth:"md",title:`Delete ${pt==null?void 0:pt.drugOrder.drugName}`,onClose:mt,onSubmit:Mt,submitText:"Delete",destructiveSubmit:!0,children:jsxRuntimeExports.jsx(Typography,{paddingY:2,children:"Please confirm that you would like to delete this drug."})})},validationSchema=create$3().shape({numberOfCycles:create$5().min(1,"This value must be more than 1").required("This field is required")}),AddCyclesModal=({open:et,protocolName:tt,onClose:rt,currentNumberOfCycles:nt})=>{const lt=useRouteMatch(),{careplanId:ut}=lt.params,[dt]=useMutation(ADD_CYCLES_TO_PROTOCOL,{refetchQueries:["moCareplanData","latestCycles","moAdditionalInfo"]}),pt={numberOfCycles:1},ht=(mt,xt)=>{dt({variables:{careplanId:ut,numberOfCycles:mt}}).then(()=>{rt(),xt()})};return jsxRuntimeExports.jsx(Formik,{initialValues:pt,onSubmit:(mt,{resetForm:xt})=>{ht(mt.numberOfCycles,xt)},validationSchema,validateOnChange:!1,validateOnBlur:!0,children:({submitForm:mt,values:xt,resetForm:Mt})=>jsxRuntimeExports.jsx(StandardDialog,{maxWidth:"lg",fullWidth:!0,open:et,title:"Add cycles",onClose:()=>{Mt(),rt()},onSubmit:mt,submitText:"Add",children:jsxRuntimeExports.jsx(Form$3,{children:jsxRuntimeExports.jsxs(FormContainer$2,{children:[jsxRuntimeExports.jsx(Field,{component:NumberInput,label:"How many cycles?*",name:"numberOfCycles"}),jsxRuntimeExports.jsx(Output,{dataCy:"new-total-cycles",label:"New cycle count",value:nt+xt.numberOfCycles}),jsxRuntimeExports.jsx(Grid,{item:!0,container:!0,alignItems:"center",children:jsxRuntimeExports.jsxs(Grid,{item:!0,xs:12,children:["Please confirm that you would like to add new cylces to the protocol ",jsxRuntimeExports.jsx("b",{children:tt})]})})]})})})})};var LibraryBooksOutlined={},_interopRequireDefault$g=interopRequireDefaultExports;Object.defineProperty(LibraryBooksOutlined,"__esModule",{value:!0});var default_1$g=LibraryBooksOutlined.default=void 0,_createSvgIcon$g=_interopRequireDefault$g(requireCreateSvgIcon()),_jsxRuntime$g=jsxRuntimeExports;default_1$g=LibraryBooksOutlined.default=(0,_createSvgIcon$g.default)((0,_jsxRuntime$g.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM10 9h8v2h-8zm0 3h4v2h-4zm0-6h8v2h-8z"}),"LibraryBooksOutlined");var VisibilityOutlined={},_interopRequireDefault$f=interopRequireDefaultExports;Object.defineProperty(VisibilityOutlined,"__esModule",{value:!0});var default_1$f=VisibilityOutlined.default=void 0,_createSvgIcon$f=_interopRequireDefault$f(requireCreateSvgIcon()),_jsxRuntime$f=jsxRuntimeExports;default_1$f=VisibilityOutlined.default=(0,_createSvgIcon$f.default)((0,_jsxRuntime$f.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"}),"VisibilityOutlined");var SaveAltOutlined={},_interopRequireDefault$e=interopRequireDefaultExports;Object.defineProperty(SaveAltOutlined,"__esModule",{value:!0});var default_1$e=SaveAltOutlined.default=void 0,_createSvgIcon$e=_interopRequireDefault$e(requireCreateSvgIcon()),_jsxRuntime$e=jsxRuntimeExports;default_1$e=SaveAltOutlined.default=(0,_createSvgIcon$e.default)((0,_jsxRuntime$e.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAltOutlined");var PrintOutlined={},_interopRequireDefault$d=interopRequireDefaultExports;Object.defineProperty(PrintOutlined,"__esModule",{value:!0});var default_1$d=PrintOutlined.default=void 0,_createSvgIcon$d=_interopRequireDefault$d(requireCreateSvgIcon()),_jsxRuntime$d=jsxRuntimeExports;default_1$d=PrintOutlined.default=(0,_createSvgIcon$d.default)([(0,_jsxRuntime$d.jsx)("path",{d:"M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3M8 5h8v3H8zm8 12v2H8v-4h8zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4z"},"0"),(0,_jsxRuntime$d.jsx)("circle",{cx:"18",cy:"11.5",r:"1"},"1")],"PrintOutlined");const PDFViewModal=et=>{const{open:tt,onClose:rt,cycleId:nt}=et,lt=useRouteMatch(),{careplanId:ut}=lt.params,[dt,pt]=reactExports.useState({loading:!0,error:!1});return jsxRuntimeExports.jsx(Dialog,{fullWidth:!0,maxWidth:"lg",onClose:()=>{rt()},open:tt,children:jsxRuntimeExports.jsxs(DialogContent,{style:{height:"90vh",overflowY:"hidden"},children:[dt.loading&&jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Submission",subtitle:"Please wait while we set things up for you"}),dt.error&&jsxRuntimeExports.jsx("div",{children:"An error occurred while generating the PDF, please contact support"}),jsxRuntimeExports.jsx("iframe",{title:"prescriptionpage",src:`/mo_portal/careplan/${ut}/${nt}/prescription.pdf`,width:"100%",height:"100%",onLoad:()=>{pt(ht=>({...ht,loading:!1}))},onError:()=>{pt(ht=>({...ht,error:!0}))},children:"This browser does not support PDFs."})]})})},MenuContent=styled$1("div")`
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  column-gap: 0.7rem;
  font-size: 16px;
`,MenuMainContent=styled$1("div")`
  display: flex;
  column-gap: 0.7rem;
  align-items: center;
`,MenuSubContent=styled$1("div")`
  font-size: 13px;
  color: ${et=>et.theme.palette.grey[600]};
`,CycleMenu=et=>{var mt,xt,Mt;const{state:tt}=reactExports.useContext(UserContext),[rt,nt]=React$4.useState(null),[lt,ut]=React$4.useState(!1),dt=!!rt,pt=vt=>{nt(vt.currentTarget)},ht=()=>{nt(null)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{startIcon:jsxRuntimeExports.jsx(default_1$g,{}),"aria-haspopup":"true",onClick:pt,children:"PDF"}),jsxRuntimeExports.jsxs(Menu$1,{"data-cy":"cycle-menu",open:dt,onClose:ht,keepMounted:!0,anchorEl:rt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[jsxRuntimeExports.jsx(MenuItem,{"data-cy":"cycle-menu-view-pdf",onClick:()=>{ht(),ut(!0)},children:jsxRuntimeExports.jsxs(MenuContent,{children:[jsxRuntimeExports.jsx(default_1$f,{})," View PDF"," "]})}),jsxRuntimeExports.jsx(MenuItem,{"data-cy":"cycle-menu-save-pdf",onClick:()=>{ht(),et.handleSavePdf()},children:jsxRuntimeExports.jsx(MenuContent,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(MenuMainContent,{children:[jsxRuntimeExports.jsx(default_1$e,{})," Save PDF"]}),jsxRuntimeExports.jsx(MenuSubContent,{children:((mt=et.cycleInfo)==null?void 0:mt.downloadedAt)&&`Last saved: ${hooks(et.cycleInfo.downloadedAt).tz(tt.timezone).format("L hh:mmA")}`})]})})}),jsxRuntimeExports.jsx(MenuItem,{"data-cy":"cycle-menu-print-pdf",onClick:()=>{ht(),et.handlePrintPdf()},children:jsxRuntimeExports.jsx(MenuContent,{children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs(MenuMainContent,{children:[jsxRuntimeExports.jsx(default_1$d,{}),"Print PDF"]}),jsxRuntimeExports.jsx(MenuSubContent,{children:((xt=et.cycleInfo)==null?void 0:xt.printedAt)&&`Last printed: ${hooks(et.cycleInfo.printedAt).tz(tt.timezone).format("L hh:mmA")}`})]})})})]}),jsxRuntimeExports.jsx(PDFViewModal,{open:lt,onClose:()=>{ut(!1)},cycleId:(Mt=et.cycleInfo)==null?void 0:Mt.cycleId})]})},ApproveCycle=et=>{const[tt,rt]=useCyclePdf(),[nt,lt]=reactExports.useState(!1),[ut]=useMutation(UPDATE_CAREPLAN_CYCLE,{refetchQueries:["latestCycles","patient"]}),dt=reactExports.useCallback(()=>{},[]),pt=()=>{lt(!0),ut({variables:{careplanId:et.careplanId,cycleId:et.cycleInfo.cycleId,action:CareplanCycleAction.APPROVE}}).finally(()=>{lt(!1)})};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et.isApproved?jsxRuntimeExports.jsx(CycleMenu,{handlePrintPdf:()=>rt(et.cycleInfo.cycleId),handleSavePdf:()=>{tt(et.cycleInfo.cycleId)},handleViewPdf:dt,cycleInfo:et.cycleInfo}):jsxRuntimeExports.jsx(LoadingButton,{disabled:et.disabled,"data-cy":"prescription-approve-cycle-btn",size:"small",onClick:pt,loading:nt,children:jsxRuntimeExports.jsx(Tooltip,{componentsProps:{tooltip:{sx:{bgcolor:"black",minWidth:"250px",fontSize:"0.9rem"}},arrow:{sx:{color:"black"}}},title:et.tooltip||"",arrow:!0,children:jsxRuntimeExports.jsx("div",{id:"approve-cycle-btn",children:"Approve cycle"})})})})},StyledCircularTab=styled$1("div")`
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-weight: 700;
  color: ${et=>et.theme.palette.primary.contrastText};
  text-decoration: none;
  font-size: 16px;
  background-color: ${et=>et.theme.palette.action.active};
  cursor: pointer;
  &.active {
    color: white !important;
    background-color: ${et=>et.theme.palette.primary.main} !important;
  }
  &.continuous {
    pointer-events: none;
  }
  &:hover {
    background-color: ${et=>et.theme.palette.action.hover};
    text-decoration: none;
    color: inherit;
  }
  position: relative;
  flex-direction: column;
  &[data-disabled='true'] {
    cursor: not-allowed;
    &:hover {
      background-color: ${et=>et.theme.palette.grey[100]};
    }
  }
`,StyledSuccessOutline=styled$1(SvgSuccessWhiteBorder)`
  width: 20px;
  height: 20px;
`,StyledInfoIcon=styled$1(SvgInfoCircleBlueWhiteBorderIcon)`
  width: 20px;
  height: 20px;
`,StyledWarning=styled$1(SvgWarningCircleWhiteBorderIcon)`
  width: 20px;
  height: 20px;
`,StyledIconWrapper=styled$1("div")`
  position: absolute;
  bottom: -8px;
`,CycleButton=et=>{const{cycleId:tt,type:rt,onClick:nt,isSelected:lt,disabled:ut}=et,dt=()=>rt==="printed"?jsxRuntimeExports.jsx(StyledSuccessOutline,{}):rt==="approved"?jsxRuntimeExports.jsx(StyledInfoIcon,{}):rt==="unapproved"?jsxRuntimeExports.jsx(StyledWarning,{}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});return tt==null?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsxs(StyledCircularTab,{onClick:()=>ut?()=>{}:nt(tt),id:`cycle-button-${tt}`,"data-test-id":`cycle-button-${tt}`,className:lt?"active":"","data-disabled":ut??!1,children:[jsxRuntimeExports.jsx("div",{children:tt+1}),jsxRuntimeExports.jsx(StyledIconWrapper,{children:dt()})]},tt)},CycleTab=styled$1("div")`
  display: flex;
  justify-content: start;
  gap: 24px;
  width: 100%;
  overflow-x: scroll;
  padding-bottom: 8px;

  ::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 3px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: ${et=>et.theme.palette.primary.main};
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
  }
`,StyledCareplanContainer=styled$1(CareplanContainer)`
  overflow-x: hidden !important;
  padding: 10px 9px !important;
`,MOPrescriptionPage=()=>{const et=useRouteMatch(),{id:tt,careplanId:rt,cycleId:nt}=et.params,{careplanAdditionalInfo:lt,doses:ut,drugOrders:dt,cycles:pt,loading:ht}=usePrescription({careplanId:rt}),[mt,xt]=reactExports.useState(0),[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(null),[Rt,zt]=reactExports.useState(!1),[Tt,Ct]=reactExports.useState(!1),[It,Dt]=reactExports.useState(!1),[kt,qt]=reactExports.useState(void 0),[Nt,Yt]=reactExports.useState(void 0),[Kt,Jt]=reactExports.useState(null),Qt=useHistory(),{patientDetails:Bt}=reactExports.useContext(ROPatientContext),{state:Ft}=reactExports.useContext(UserContext),{loading:$t}=useQuery(GET_LATEST_MO_PATIENT_OBSERVATION,{variables:{careplanId:rt},onCompleted:ir=>{var gr;const dr=((gr=ir.latestMoPatientObservation)==null?void 0:gr.observationDate)&&hooks(ir.latestMoPatientObservation.observationDate).tz(Ft.timezone).format("L LT");At({...ir.latestMoPatientObservation,observationDate:dr})},fetchPolicy:"network-only"}),jt=ir=>{qt(ir),zt(!0)},Wt=(ir,dr)=>{Ct(!0),qt(ir),Yt(dr)},Ut={doses:ut,...lt},[Vt,Ht]=reactExports.useState(null),[Gt,Zt]=reactExports.useState(null),[Xt,er]=reactExports.useState(null);reactExports.useEffect(()=>{ht||(Ht(hooks(pt[mt].treatmentStartDate)),Zt(hooks(pt[mt].treatmentEndDate)),er(hooks(Ut.cycleSchedule[Ut.numberOfCycles-1].days[Ut.daysPerCycle-1].date)))},[ht,mt]),reactExports.useEffect(()=>{nt&&parseInt(nt)!==mt&&xt(parseInt(nt))},[nt]);const nr=reactExports.useCallback(()=>pt.some(ir=>ir.approvedAt!==null||ir.version>0),[pt]),or=Object.assign({},...pt.map(ir=>({[ir.cycleId]:ir}))),rr=pt.filter(ir=>ir.cycleId===mt)[0],cr=Ut.doses.filter(ir=>ir.cycle===mt).some(ir=>ir.doseValue===0&&ir.doseAdjustment===null);return jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsx(CycleBanner,{cycleInfo:rr,supportingDrugOrder:Kt}),jsxRuntimeExports.jsx(StyledCareplanContainer,{children:jsxRuntimeExports.jsxs(ViewWidthMinusSidebars,{children:[jsxRuntimeExports.jsxs(PageHeader,{children:[jsxRuntimeExports.jsx("h1",{"data-cy":"protocol-name",children:lt.careplanName}),jsxRuntimeExports.jsx("hr",{style:{marginTop:"8px",marginBottom:"16px"}}),jsxRuntimeExports.jsxs(SpaceBetweenDiv,{children:[jsxRuntimeExports.jsx("h3",{"data-cy":"cycle-header",children:"Cycles"}),jsxRuntimeExports.jsx(CycleDateRange,{startDate:Vt,endDate:Gt})]})]}),jsxRuntimeExports.jsxs(Stack$5,{flexDirection:"row",style:{alignItems:"baseline"},children:[jsxRuntimeExports.jsx(CycleTab,{children:[...Array(Ut.numberOfCycles).keys()].filter(ir=>ir>=lt.startingCycle).map(ir=>{var dr;return jsxRuntimeExports.jsx(CycleButton,{cycleId:(dr=or[ir])==null?void 0:dr.cycleId,isSelected:mt===ir,onClick:xt,type:getCycleStatus(or[ir],Kt),disabled:Kt!==null},ir)})}),jsxRuntimeExports.jsx("div",{className:"ml-3 pb-1",children:jsxRuntimeExports.jsx(Button,{startIcon:jsxRuntimeExports.jsx(default_1$i,{color:"primary"}),"data-cy":"add-cycles-modal-button",sx:{whiteSpace:"nowrap"},variant:"text",size:"small",disabled:Kt!==null,onClick:()=>{Dt(!0)},children:"Add cycles"})}),jsxRuntimeExports.jsx("div",{className:"ml-3 pb-1",children:jsxRuntimeExports.jsx(ApproveCycle,{careplanId:rt,cycleInfo:rr,disabled:cr||isNewSupportingDrugApplicable(mt,Kt)||!isPractitionerAllowedToApprove(Ft,pt,lt),tooltip:!cr&&!isNewSupportingDrugApplicable(mt,Kt)&&!isPractitionerAllowedToApprove(Ft,pt,lt)?"This careplan needs to be first approved by the primary consultant":"",isApproved:(rr==null?void 0:rr.approvedAt)&&!isNewSupportingDrugApplicable(mt,Kt)})})]}),ut.length>0?jsxRuntimeExports.jsx(CycleTable,{selectedCycle:mt,careplan:Ut,cycles:pt,drugOrders:dt,openDoseEdit:jt,openDeleteDrugOrder:Wt,newSupportingDrugOrder:Kt,setNewSupportingDrugOrder:Jt}):jsxRuntimeExports.jsx(LoadingSpinner,{})]})}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{const ir=nr()?CAREPLAN_PAGE.TREATMENT_INFO:CAREPLAN_PAGE.PROTOCOL_SELECTION;Qt.push(`/medonc/patient/${tt}/careplan/${rt}/${ir}`)},nextHidden:!0,backDisabled:!1,backButtonId:"prescription-back-button"})]}),jsxRuntimeExports.jsxs(SideBar,{children:[jsxRuntimeExports.jsx(PatientDetailsCard,{onEdit:()=>vt(!0),patient:Bt,observation:Ot,loading:$t}),(lt==null?void 0:lt.protocolId)&&jsxRuntimeExports.jsx(PrescriptionComments,{comments:lt.latestComment,careplanId:rt})]}),jsxRuntimeExports.jsx(PatientObservationsModal,{open:Mt,latestObservation:Ot,onClose:()=>vt(!1),careplanId:parseInt(rt),patient:Bt,setLatestObservation:At}),jsxRuntimeExports.jsx(DoseEditModal,{open:Rt,onClose:()=>zt(!1),doseInfo:kt,observationResults:Ot,cycleEndDate:Gt,careplanEndDate:Xt,numberOfCycles:Ut.numberOfCycles,daysPerCycle:Ut.daysPerCycle}),jsxRuntimeExports.jsx(DeleteDrugOrderModal,{open:Tt,onClose:()=>Ct(!1),doseInfo:kt,day:Nt}),jsxRuntimeExports.jsx(AddCyclesModal,{open:It,onClose:()=>Dt(!1),protocolName:lt.careplanName,currentNumberOfCycles:lt.numberOfCycles})]})},MOSubmissionPage=()=>{const et=useRouteMatch(),{id:tt,careplanId:rt}=et.params,nt=useHistory(),[lt,ut]=reactExports.useState({loading:!0,error:!1});return jsxRuntimeExports.jsxs("div",{className:"main-container-parent-wrapper",children:[jsxRuntimeExports.jsxs("div",{className:"main-container-wrapper",children:[jsxRuntimeExports.jsxs(CareplanContainer,{children:[" ",jsxRuntimeExports.jsxs("div",{className:"page-header",children:[jsxRuntimeExports.jsx("h1",{children:"Submission"}),jsxRuntimeExports.jsx("h2",{children:"Please confirm submission information."})]}),lt.loading&&jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Submission",subtitle:"Please wait while we set things up for you"}),lt.error&&jsxRuntimeExports.jsx("div",{children:"An error occurred while generating the PDF, please contact support"}),jsxRuntimeExports.jsx("iframe",{title:"prescriptioinpage",src:`/mo_portal/careplan/${rt}/prescription.pdf`,width:"100%",height:"100%",onLoad:()=>{ut(dt=>({...dt,loading:!1}))},onError:()=>{ut(dt=>({...dt,error:!0}))},children:"This browser does not support PDFs."})]}),jsxRuntimeExports.jsx(ROPatientCarePlanPageFooter,{onBack:()=>{nt.push(`/medonc/patient/${tt}/careplan/${rt}/${CAREPLAN_PAGE.PRESCRIPTION}`)},onNext:()=>{},backDisabled:!1,backButtonId:"submission-back-button",nextText:"Prescription",nextTextId:"prescription"})]}),jsxRuntimeExports.jsx(ROSidePanel,{})]})},FORM_INSTANCE_FRAGMENT=gql`
  fragment formInstance on FormInstanceType {
    formConfig {
      name
      label
      components {
        id
        parentId
        type
        field {
          formControl
          name
          dataType
          listDataCategory
        }
        label
        visible
        tooltip
        validators
        placeholder
      }
    }
    values {
      field
      value
    }
    listData {
      category
      references {
        data {
          option
        }
        listWeight
      }
    }
  }
`,GET_OUTCOMES_BY_DIAGNOSIS=gql`
  ${FORM_INSTANCE_FRAGMENT}
  query GetOutcomesByDiagnosis($patientId: ID!) {
    defaultTimePoints
    outcomesByDiagnosis(patientId: $patientId) {
      diagnosisId
      diagnosisDate
      diagnosis
      outcomes {
        id
        timePoint
        lastModified
        active
        status
        createdAt
        formInstance {
          ...formInstance
        }
      }
    }
  }
`,GET_OUTCOME=gql`
  ${FORM_INSTANCE_FRAGMENT}
  query outcome($outcomeId: ID!) {
    outcome(outcomeId: $outcomeId) {
      id
      timePoint
      diagnosisName
      status
      createdAt
      submittedAt
      isDefaultTimepoint
      notePreview
      note {
        createdBy {
          firstName
          lastName
        }
        createdAt
        messageType {
          alias
        }
      }
      formInstance {
        ...formInstance
      }
    }
  }
`,CREATE_OUTCOME=gql`
  mutation CreateOutcome($diagnosisId: ID!) {
    createOutcome(diagnosisId: $diagnosisId) {
      outcome {
        id
      }
    }
  }
`,UPDATE_OUTCOME=gql`
  mutation UpdateOutcome($outcomeId: ID!, $status: String, $values: String) {
    updateOutcome(outcomeId: $outcomeId, status: $status, values: $values) {
      outcome {
        id
        status
        lastModified
        active
        submittedAt
      }
    }
  }
`,SAVE_OUTCOME_DATA=gql`
  mutation saveOutcomeData($outcomeId: ID!, $jsonData: String!) {
    saveOutcomeData(outcomeId: $outcomeId, jsonData: $jsonData) {
      outcome {
        id
        status
        lastModified
        notePreview
      }
    }
  }
`,DISCARD_OUTCOME=gql`
  mutation ($outcomeId: ID!) {
    discardOutcome(outcomeId: $outcomeId) {
      outcome {
        id
        status
        active
      }
    }
  }
`,OutcomesWrapper=styled$1(GridContainer)`
  position: relative;
  display: flex;
`,OutcomesContainer=styled$1(GridSection)`
  width: 100%;
  background-color: white;
`;styled$1("div")`
  height: 100%;
  display: flex;
  flex-direction: column;
`;styled$1(Box)`
  min-height: 56px;
  flex-direction: row;
  display: flex;
  align-items: center;
`;styled$1("span")`
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
`;styled$1("span")`
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  padding-left: 32px;
`;styled$1(Stack$5)`
  display: flex;
  flex-direction: row;
  height: 56px;
  background-color: ${et=>et.theme.palette.grey[100]};
  margin-bottom: 8px;
  margin-top: 8px;
`;styled$1("div")(et=>({boxSizing:"border-box",background:"white",border:`1px solid ${et.theme.palette.grey[300]}`,borderRadius:"4px",minHeight:"116px",flexBasis:`calc((100% - 16px * ${et.outcomecardcount-1}) / ${et.outcomecardcount})`,padding:"16px","&:hover":{cursor:"pointer",backgroundColor:et.theme.palette.action.hover}}));styled$1("div")`
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
`;styled$1("div")`
  overflow: auto;
  &:hover {
    cursor: pointer;
  }
`;styled$1(Box)`
  display: flex;
  flex-direction: row;
  align-items: center;
`;styled$1("p")`
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: ${et=>et.theme.palette.text.primary};
`;styled$1("p")`
  font-size: 13px;
  line-height: 15px;
  font-weight: 400;
  color: ${et=>et.theme.palette.error.main};
`;styled$1("span")`
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: ${et=>et.color};
`;styled$1("p")`
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: ${et=>et.theme.palette.text.primary};
`;styled$1("div")`
  margin-bottom: 8px;
`;styled$1(Box)`
  display: flex;
  flex-direction: row;
  align-items: flex-end;
`;styled$1(Stack$5)`
  margin-top: 8px;
`;styled$1("div")`
  margin-right: 12px;
`;const OutcomeNoteContainer=styled$1("div")`
  box-shadow: 0px 2px 8px rgba(113, 110, 106, 0.4);
  margin: 16px;
  width: 30%;
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 16px;
`,NoteTitle=styled$1("span")`
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: ${et=>et.theme.palette.primary.dark};
`,NoteAuthor=styled$1("span")`
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  align-items: center;
  color: ${et=>et.theme.palette.text.primary};
`,NoteDate=styled$1("span")`
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  align-items: center;
  color: ${et=>et.theme.palette.text.primary};
`,NoteType=styled$1("span")`
  margin-top: 8px;
  background: ${et=>et.theme.palette.grey[100]};
  border-radius: 16px;
  padding: 0px 8px;
  display: inline-flex;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  align-items: center;
  color: ${et=>et.theme.palette.text.primary};
  max-width: 100%;
`,NoteTypeWrapper=styled$1("div")`
  display: flex;
  flex-direction: row;
  align-items: center;
`,NoteMessage=styled$1("div")(et=>({fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"24px",color:et.theme.palette.text.primary})),NoteMessageContainer=styled$1("div")(et=>({padding:`${et.status!=="Submitted"?"8px":void 0}`,height:"100%",background:`${et.status!=="Submitted"?et.theme.palette.grey[100]:void 0}`,border:`${et.status!=="Submitted"?`1px solid ${et.theme.palette.grey[300]}`:void 0}`,borderRadius:`${et.status!=="Submitted"?"4px":void 0}`,marginTop:"8px",overflow:"auto"})),NoteSubHeading=styled$1("span")`
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: ${et=>et.theme.palette.grey[600]};
  margin-top: 8px;
`,NoteMetaDataContainer=styled$1("div")`
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
`,Accordion=styled(et=>jsxRuntimeExports.jsx(Accordion$2,{disableGutters:!0,elevation:0,square:!0,...et}))(()=>({"&::before":{display:"none"}})),AccordionSummary=styled(et=>jsxRuntimeExports.jsx(AccordionSummary$1,{expandIcon:jsxRuntimeExports.jsx(ArrowForwardIcon,{fontSize:"inherit"}),...et}))(({theme:et})=>({backgroundColor:et.palette.mode==="dark"?"rgba(255, 255, 255, .05)":"rgba(0, 0, 0, .03)",flexDirection:"row-reverse","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(90deg)"},"& .MuiAccordionSummary-content":{marginLeft:et.spacing(1)}})),ReviewCard=et=>{const tt=useTheme$1();return jsxRuntimeExports.jsx(Paper,{variant:"outlined",sx:{p:2,width:256,cursor:"pointer",":hover":{bgcolor:tt.palette.grey[100]},":active":{bgcolor:tt.palette.grey[200]}},...et})},Status$1=({status:et,...tt})=>{const rt={"In Progress":"warning","Unsubmitted changes":"warning",Submitted:"success","Not started":"secondary"};return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:1,alignItems:"center",...tt,children:[jsxRuntimeExports.jsx(CircleIcon,{fontSize:"small",color:rt[et]}),jsxRuntimeExports.jsx(Typography,{variant:"body1",children:et})]})},OutcomesPage=()=>{var xt;const et=useHistory(),tt=useRouteMatch(),{id:rt}=tt.params,{setError:nt}=useErrorModalContext(),{data:lt,loading:ut,error:dt}=useQuery(GET_OUTCOMES_BY_DIAGNOSIS,{variables:{patientId:rt},fetchPolicy:"network-only"}),[pt,{error:ht}]=useMutation(CREATE_OUTCOME,{refetchQueries:[{query:GET_OUTCOMES_BY_DIAGNOSIS,variables:{patientId:rt}}]});reactExports.useEffect(()=>{if(dt||ht)return nt()},[dt,ht]);const mt=Mt=>{pt({variables:{diagnosisId:Mt}}).then(vt=>{var At,Rt,zt;const Ot=(zt=(Rt=(At=vt==null?void 0:vt.data)==null?void 0:At.createOutcome)==null?void 0:Rt.outcome)==null?void 0:zt.id;Ot&&et.push(`/radiation/patient/${rt}/outcomes/${Ot}`,{diagnosisId:Mt})}).catch(()=>{nt()})};return jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{children:jsxRuntimeExports.jsx(OutcomesWrapper,{style:{height:"720px"},children:jsxRuntimeExports.jsx(OutcomesContainer,{children:ut?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Loading Outcomes Dashboard",subtitle:"Please wait while we set things up for you"}):jsxRuntimeExports.jsxs(Stack$5,{gap:2,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",color:"primary",children:"Outcomes"}),jsxRuntimeExports.jsx(Stack$5,{gap:1,children:((xt=lt==null?void 0:lt.outcomesByDiagnosis)==null?void 0:xt.length)>0?lt.outcomesByDiagnosis.map(({diagnosis:Mt,diagnosisId:vt,diagnosisDate:Ot,outcomes:At})=>jsxRuntimeExports.jsxs(Accordion,{defaultExpanded:!0,children:[jsxRuntimeExports.jsx(AccordionSummary,{children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",spacing:4,alignItems:"center",children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",children:Mt}),jsxRuntimeExports.jsxs(Typography,{variant:"body1",children:["Primary Diagnosis Date: ",Ot]})]})}),jsxRuntimeExports.jsx(AccordionDetails,{sx:{paddingX:0},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:2,flexWrap:"wrap",children:[jsxRuntimeExports.jsx(ReviewCard,{"data-testid":"add-outcome",onClick:()=>{mt(vt)},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"column",spacing:1,children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"Add time point"}),jsxRuntimeExports.jsx(AddCircleOutlineIcon,{fontSize:"medium",color:"primary"})]})}),At.map(Rt=>{var zt;return{followUpDate:dayjs(((zt=Rt.formInstance.values.find(Tt=>Tt.field==="followUpDate"))==null?void 0:zt.value)??Rt.createdAt),outcome:Rt}}).sort((Rt,zt)=>{const Tt=Rt.followUpDate.isValid()?Rt.followUpDate:dayjs(Rt.outcome.createdAt),Ct=zt.followUpDate.isValid()?zt.followUpDate:dayjs(zt.outcome.createdAt);return Tt.diff(Ct)}).map(({outcome:Rt,followUpDate:zt})=>{const Tt=()=>{const Ct=Rt.id;et.push(`/radiation/patient/${rt}/outcomes/${Ct}`,{diagnosisId:vt})};return jsxRuntimeExports.jsx(ReviewCard,{onClick:Tt,"data-testid":`outcome-${Rt.id}`,children:jsxRuntimeExports.jsxs(Stack$5,{direction:"column",spacing:1,children:[jsxRuntimeExports.jsxs(Typography,{variant:"subtitle1","data-testid":"fraction",children:["Follow up:"," ",zt.isValid()?zt.format("DD-MMM-YYYY"):"date not entered"]}),jsxRuntimeExports.jsxs(Typography,{variant:"subtitle2","data-testid":"review-date",children:["Last modified: ",dayjs(Rt.lastModified).format("DD-MMM-YYYY")]}),jsxRuntimeExports.jsx(Status$1,{status:Rt.status,"data-testid":"status"})]})},Rt.id)})]})})]},vt)):jsxRuntimeExports.jsx(Typography,{variant:"body1",children:"No diagnosis recorded, therefore no follow up available."})})]})})})})})};gql`
  mutation createTreatmentReview(
    $patientId: ID!
    $reviewDate: Date!
    $careplan: String!
    $treatmentFractionsReviewed: String!
    $responseToTreatment: String!
    $imageReview: String!
    $managementDecision: String!
    $clinicalExamination: String!
    $dss: JSONString!
  ) {
    createTreatmentReview(
      patientId: $patientId
      reviewDate: $reviewDate
      careplan: $careplan
      treatmentFractionsReviewed: $treatmentFractionsReviewed
      responseToTreatment: $responseToTreatment
      imageReview: $imageReview
      managementDecision: $managementDecision
      clinicalExamination: $clinicalExamination
      dss: $dss
    ) {
      treatmentReview {
        id
      }
    }
  }
`;const GET_ON_TREATMENT_REVIEW_LIST=gql`
  query getOnTreatmentReviewList($patientId: ID!) {
    treatmentReviewList(patientId: $patientId) {
      id
      reviewDate
      careplan
      treatmentFractionsReviewed
      responseToTreatment
      imageReview
      managementDecision
      clinicalExamination
      dss
      status
      submittedAt
      lastSubmittedAt
    }
  }
`,CREATE_ON_TREATMENT_REVIEW=gql`
  mutation createOnTreatmentReview($patientId: ID!, $careplan: String!, $dss: JSONString!) {
    createOnTreatmentReview(patientId: $patientId, careplan: $careplan, dss: $dss) {
      review {
        id
      }
    }
  }
`,UPDATE_ON_TREATMENT_REVIEW=gql`
  mutation updateOnTreatmentReview(
    $id: ID!
    $treatmentFractionsReviewed: String!
    $responseToTreatment: String!
    $imageReview: String!
    $managementDecision: String!
    $clinicalExamination: String!
  ) {
    updateOnTreatmentReview(
      id: $id
      treatmentFractionsReviewed: $treatmentFractionsReviewed
      responseToTreatment: $responseToTreatment
      imageReview: $imageReview
      managementDecision: $managementDecision
      clinicalExamination: $clinicalExamination
    ) {
      review {
        id
        currentChanges
      }
    }
  }
`,SUBMIT_ON_TREATMENT_REVIEW=gql`
  mutation submitOnTreatmentReview($id: ID!) {
    submitOnTreatmentReview(id: $id) {
      review {
        id
        reviewDate
        careplan
        treatmentFractionsReviewed
        responseToTreatment
        imageReview
        managementDecision
        clinicalExamination
        dss
        status
        submittedAt
        lastSubmittedAt
      }
    }
  }
`,DISCARD_ON_TREATMENT_REVIEW=gql`
  mutation discardOnTreatmentReview($id: ID!) {
    discardOnTreatmentReview(id: $id) {
      review {
        id
        reviewDate
        careplan
        treatmentFractionsReviewed
        responseToTreatment
        imageReview
        managementDecision
        clinicalExamination
        dss
        status
        submittedAt
        lastSubmittedAt
        currentChanges
      }
    }
  }
`,GET_ON_TREATMENT_REVIEW=gql`
  query getOnTreatmentReview($id: ID!) {
    treatmentReview(id: $id) {
      id
      reviewDate
      careplan
      treatmentFractionsReviewed
      responseToTreatment
      imageReview
      managementDecision
      clinicalExamination
      dss
      status
      submittedAt
      lastSubmittedAt
      currentChanges
    }
  }
`,DELETE_ON_TREATMENT_REVIEW=gql`
  mutation deleteOnTreatmentReview($id: ID!) {
    deleteOnTreatmentReview(id: $id) {
      success
    }
  }
`,Status=({status:et,...tt})=>{const rt={"In progress":"In Progress","Unsubmitted changes":"Unsubmitted Changes",Submitted:"Submitted"},nt={"In progress":"warning","Unsubmitted changes":"warning",Submitted:"success"};return jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:1,alignItems:"center",...tt,children:[jsxRuntimeExports.jsx(CircleIcon,{fontSize:"small",color:nt[et]}),jsxRuntimeExports.jsx(Typography,{fontSize:16,children:rt[et]})]})},formatDateNicely=et=>dayjs(et).format(`${isUs()?"MMM-DD":"DD-MMM"}-YYYY`),LandingPage=()=>{const et=useRouteMatch(),{id:tt}=et.params,rt=useHistory(),nt=reactExports.useContext(TenantContext),[lt,ut]=reactExports.useState(!1),{data:dt,loading:pt}=useQuery(GET_DOSE_SITE_SUMMARIES,{variables:{patientId:tt},skip:!tt}),{data:ht,loading:mt}=useQuery(GET_ON_TREATMENT_REVIEW_LIST,{variables:{patientId:tt},fetchPolicy:"network-only",nextFetchPolicy:"network-only",skip:!tt}),[xt]=useMutation(CREATE_ON_TREATMENT_REVIEW),Mt=(At,Rt)=>{lt||(ut(!0),xt({variables:{patientId:tt,careplan:At,dss:JSON.stringify(Rt)}}).then(zt=>{rt.push(`/radiation/patient/${tt}/on-treatment-review/${zt.data.createOnTreatmentReview.review.id}`)}).finally(()=>{ut(!1)}))},vt=At=>{rt.push(`/radiation/patient/${tt}/on-treatment-review/${At}`)};if(pt||mt)return jsxRuntimeExports.jsx("p",{children:"Loading..."});const Ot=ht!=null&&ht.treatmentReviewList?[...ht.treatmentReviewList].sort(function(At,Rt){const zt=At.treatmentFractionsReviewed?(At.treatmentFractionsReviewed.split("-")||["0"])[0]:"0",Tt=Rt.treatmentFractionsReviewed?(Rt.treatmentFractionsReviewed.split("-")||["0"])[0]:"0";return parseInt(zt)-parseInt(Tt)}):[];return jsxRuntimeExports.jsx(Paper,{sx:{width:1,height:1,marginX:2,padding:2},elevation:10,children:jsxRuntimeExports.jsxs(Stack$5,{direction:"column",spacing:2,children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",lineHeight:"28px",children:"On Treatment Review"}),jsxRuntimeExports.jsxs(Stack$5,{direction:"column",spacing:1,children:[(!(dt!=null&&dt.doseSiteSummaries)||dt.doseSiteSummaries.length===0)&&jsxRuntimeExports.jsx(Typography,{variant:"body1",style:{fontSize:"16px"},children:"On Treatment Review will be available once treatment has started."}),dt==null?void 0:dt.doseSiteSummaries.map(At=>{const Rt=getOTVCareplanName(At,nt);return jsxRuntimeExports.jsxs(Accordion,{"data-testid":`site-${At.id}`,defaultExpanded:!0,children:[jsxRuntimeExports.jsx(AccordionSummary,{children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",spacing:4,children:[jsxRuntimeExports.jsx(Typography,{fontSize:16,fontWeight:700,children:Rt}),jsxRuntimeExports.jsxs(Typography,{fontSize:16,children:["Treatment Start Date: ",formatDateNicely(At.firstTreatment)]})]})}),jsxRuntimeExports.jsx(AccordionDetails,{sx:{paddingX:0},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",flexWrap:"wrap",columnGap:2,rowGap:2,children:[jsxRuntimeExports.jsx(ReviewCard,{variant:"outlined",onClick:()=>Mt(Rt,At),"aria-disabled":lt,"data-testid":"add-review",children:jsxRuntimeExports.jsxs(Stack$5,{direction:"column",spacing:1,children:[jsxRuntimeExports.jsx(Typography,{fontSize:16,children:"Add on treatment review"}),jsxRuntimeExports.jsx(AddCircleOutlineIcon,{fontSize:"large"})]})}),Ot.filter(zt=>zt.careplan===Rt).map(zt=>jsxRuntimeExports.jsx(ReviewCard,{variant:"outlined","data-testid":`review-card-${zt.id}`,onClick:()=>vt(zt.id),children:jsxRuntimeExports.jsxs(Stack$5,{direction:"column",spacing:1,children:[jsxRuntimeExports.jsxs(Typography,{fontSize:18,fontWeight:700,"data-testid":"fraction",children:["Fraction: ",zt.treatmentFractionsReviewed||"-"]}),jsxRuntimeExports.jsxs(Typography,{fontSize:16,"data-testid":"review-date",children:["Review Date: ",formatDateNicely(zt.reviewDate.toString())]}),jsxRuntimeExports.jsx(Status,{status:zt.status,"data-testid":"status"})]})},zt.id))]})})]},At.id)})]}),jsxRuntimeExports.jsx(Typography,{variant:"h6",lineHeight:"28px",children:"End of Treatment"}),jsxRuntimeExports.jsx(Typography,{variant:"body1",lineHeight:"28px",children:"Coming Soon..."})]})})},OnTreatmentReview=()=>jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{children:jsxRuntimeExports.jsx(LandingPage,{})})});var Warning={},_interopRequireDefault$c=interopRequireDefaultExports;Object.defineProperty(Warning,"__esModule",{value:!0});var default_1$c=Warning.default=void 0,_createSvgIcon$c=_interopRequireDefault$c(requireCreateSvgIcon()),_jsxRuntime$c=jsxRuntimeExports;default_1$c=Warning.default=(0,_createSvgIcon$c.default)((0,_jsxRuntime$c.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var CheckCircle={},_interopRequireDefault$b=interopRequireDefaultExports;Object.defineProperty(CheckCircle,"__esModule",{value:!0});var default_1$b=CheckCircle.default=void 0,_createSvgIcon$b=_interopRequireDefault$b(requireCreateSvgIcon()),_jsxRuntime$b=jsxRuntimeExports;default_1$b=CheckCircle.default=(0,_createSvgIcon$b.default)((0,_jsxRuntime$b.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");var BannerType=(et=>(et.DRAFT="draft",et.UNSUBMITTED="unsubmitted",et.SUBMITTED="submitted",et.NONE="none",et))(BannerType||{});const DiscardDialog=({discardCallback:et,cancelCallback:tt,bannerType:rt,open:nt,review:lt})=>{const ut=rt===BannerType.DRAFT?"Discard draft":"Discard unsubmitted changes",dt=rt===BannerType.DRAFT?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(Typography,{variant:"body1",style:{fontSize:"16px"},children:["You are about to discard the changes to ",lt.careplan,"?"]})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Typography,{variant:"body1",style:{fontSize:"16px"},children:["You'll lose all unsubmitted changes, and revert to the last submitted version at"," ",dayjs(lt.lastSubmittedAt).format("DD MMM YYYY, hh:mm A"),"."]}),jsxRuntimeExports.jsx(Typography,{variant:"body1",style:{fontSize:"16px"},children:"Are you sure you want to discard unsubmitted changes?"})]}),pt=rt===BannerType.DRAFT?"DISCARD DRAFT":"DISCARD CHANGES";return jsxRuntimeExports.jsx(React$4.Fragment,{children:jsxRuntimeExports.jsx(StandardDialog,{open:nt,onClose:tt,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:ut,onSubmit:et,submitText:pt,children:jsxRuntimeExports.jsx(DialogContentText,{id:"alert-dialog-description",children:dt})})})},renderDraftBanner=et=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:jsxRuntimeExports.jsx(default_1$c,{sx:{color:tt=>tt.palette.warning.dark}})}),jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{flex:1,color:tt=>tt.palette.warning.dark},children:"You have unsubmitted changes, please submit."}),jsxRuntimeExports.jsx(Button,{variant:"text",sx:{color:tt=>tt.palette.warning.dark},onClick:et,"data-testid":"on-treatment-review-discard-changes",children:"DISCARD DRAFT"})]}),renderUnsubmittedBanner=(et,tt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:jsxRuntimeExports.jsx(default_1$c,{sx:{color:rt=>rt.palette.warning.dark}})}),jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{flex:1,color:rt=>rt.palette.warning.dark},children:["You have unsubmitted changes, please resubmit. Last submitted at: ",et]}),jsxRuntimeExports.jsx(Button,{variant:"text",sx:{color:rt=>rt.palette.warning.dark},onClick:tt,"data-testid":"on-treatment-review-discard-changes",children:"DISCARD CHANGES"})]}),renderSubmittedBanner=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:jsxRuntimeExports.jsx(default_1$b,{sx:{color:et=>et.palette.success.dark}})}),jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{flex:1,color:et=>et.palette.success.dark},children:"This has been submitted."})]}),isChanged=et=>!["",null,[]].includes(et),getBannerType=et=>[et.imageReview,et.clinicalExamination,et.managementDecision,et.responseToTreatment,et.treatmentFractionsReviewed].map(rt=>isChanged(rt)).some(rt=>rt)&&et.lastSubmittedAt===null?BannerType.DRAFT:et.lastSubmittedAt!==null&&et.currentChanges?BannerType.UNSUBMITTED:et.lastSubmittedAt!==null&&!et.currentChanges?BannerType.SUBMITTED:BannerType.NONE,Banner=({review:et,patientId:tt,discardCallback:rt})=>{const nt=useHistory(),[lt,ut]=React$4.useState(!1),[dt]=useMutation(DELETE_ON_TREATMENT_REVIEW,{refetchQueries:[{query:GET_ON_TREATMENT_REVIEW_LIST,variables:{patientId:tt}}]}),[pt]=useMutation(DISCARD_ON_TREATMENT_REVIEW,{refetchQueries:[{query:GET_ON_TREATMENT_REVIEW,variables:{id:et.id}}]}),ht=reactExports.useCallback(()=>{dt({variables:{id:et.id}}).then(()=>{ut(!1),nt.push(`/radiation/patient/${tt}/on-treatment-review`)})},[dt]),mt=reactExports.useCallback(()=>{pt({variables:{id:et.id}}).then(()=>{ut(!1),rt()})},[pt]),xt=getBannerType(et),Mt=xt===BannerType.DRAFT?ht:mt,vt=()=>{switch(xt){case BannerType.DRAFT:return renderDraftBanner(()=>{ut(!0)});case BannerType.UNSUBMITTED:return renderUnsubmittedBanner(dayjs(et.lastSubmittedAt).format("MMM-DD-YYYY hh:mm A"),()=>{ut(!0)});case BannerType.SUBMITTED:return renderSubmittedBanner();default:return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}};return xt===BannerType.NONE?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",width:"100%",height:"52px",backgroundColor:Ot=>xt===BannerType.DRAFT||xt===BannerType.UNSUBMITTED?Ot.palette.warning.light:xt===BannerType.SUBMITTED?lighten$1(Ot.palette.success.light,.9):"inherit",alignItems:"center"},"data-testid":xt===BannerType.DRAFT?"draft-changes-banner":"unsubmitted-changes-banner",children:[vt(),jsxRuntimeExports.jsx(DiscardDialog,{review:et,bannerType:xt,open:lt,discardCallback:()=>{Mt()},cancelCallback:()=>ut(!1)})]})},LIST_OPTIONS={RESPONSE_TO_TREATMENT:"otvResponseToTreatment",IMAGE_REVIEW:"otvImagingReview",MANAGEMENT_DECISION:"otvManagementDecision"},getFractionsList=et=>{const tt=JSON.parse(et),rt=Math.ceil(tt.plannedDosageRatio/5);return tt.plannedDosageRatio===1?[{value:"1",label:"1"}]:[...Array(rt).keys()].map(nt=>({value:nt*5+5>tt.plannedDosageRatio?`${nt*5+1}-${tt.plannedDosageRatio}`:`${nt*5+1}-${nt*5+5}`,label:nt*5+5>tt.plannedDosageRatio?`${nt*5+1}-${tt.plannedDosageRatio}`:`${nt*5+1}-${nt*5+5}`}))},OnTreatmentReviewForm=()=>{var Wt;const et=useRouteMatch(),{id:tt,reviewId:rt}=et.params,{loading:nt,data:lt}=useQuery(LOAD_CAREPLAN_LIST_DATA,{fetchPolicy:"cache-first",variables:{listCategory:[LIST_OPTIONS.RESPONSE_TO_TREATMENT,LIST_OPTIONS.IMAGE_REVIEW,LIST_OPTIONS.MANAGEMENT_DECISION],patientId:tt}}),{loading:ut,data:dt}=useQuery(GET_ON_TREATMENT_REVIEW,{variables:{id:rt}}),{loading:pt,data:ht}=useQuery(GET_ON_TREATMENT_REVIEW_LIST,{variables:{patientId:tt}}),[mt]=useMutation(UPDATE_ON_TREATMENT_REVIEW,{refetchQueries:[{query:GET_ON_TREATMENT_REVIEW,variables:{id:rt}}]}),[xt]=useMutation(SUBMIT_ON_TREATMENT_REVIEW,{refetchQueries:[{query:GET_ON_TREATMENT_REVIEW_LIST,variables:{patientId:tt}},{query:GET_ON_TREATMENT_REVIEW,variables:{id:rt}}]}),[Mt,vt]=reactExports.useState({treatmentFactionsReviewed:"",responseToTreatment:[],imagingReview:[],managementDecision:"",clinicalExamination:""}),[Ot,At]=React$4.useState({treatmentFractionsReviewed:!0,managementDecision:!0,responseToTreatment:!0,imagingReview:!0,clinicalExamination:!0}),[Rt,zt]=React$4.useState(!1),Tt=useHistory(),[Ct,It]=reactExports.useState(!0);reactExports.useEffect(()=>{if(dt&&Ct){const{treatmentFractionsReviewed:Ut,responseToTreatment:Vt,imageReview:Ht,managementDecision:Gt,clinicalExamination:Zt}=dt.treatmentReview;vt({treatmentFactionsReviewed:Ut,responseToTreatment:Vt?Vt.split(","):[],imagingReview:Ht?Ht.split(","):[],managementDecision:Gt,clinicalExamination:Zt}),It(!1)}},[dt,Ct]);const Dt=reactExports.useCallback(Ut=>{mt({variables:{id:rt,treatmentFractionsReviewed:Ut.treatmentFactionsReviewed,responseToTreatment:Ut.responseToTreatment.join(","),imageReview:Ut.imagingReview.join(","),managementDecision:Ut.managementDecision,clinicalExamination:Ut.clinicalExamination}})},[rt,mt]),kt=()=>{xt({variables:{id:rt}}).then(()=>{setTimeout(()=>{B$3.dark(jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{color:Ut=>Ut.palette.primary.contrastText},children:"On treatment review submitted."}),jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{color:Ut=>Ut.palette.primary.contrastText},children:"You can view the PDF in the Documents page."})]}),{position:"bottom-right",autoClose:5e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,transition:F$2,progress:void 0,style:{width:"fit-content"}})},500),Tt.push(`/radiation/patient/${tt}/on-treatment-review`)})},qt=()=>[Nt("treatmentFractionsReviewed",Mt.treatmentFactionsReviewed),Nt("managementDecision",Mt.managementDecision),Nt("clinicalExamination",Mt.clinicalExamination),Nt("responseToTreatment",Mt.responseToTreatment.join(", ")),Nt("imagingReview",Mt.imagingReview.join(", "))].some(Vt=>Vt===!0),Nt=(Ut,Vt)=>String(Vt)===""?(At(Ht=>({...Ht,[Ut]:!0})),!0):(At(Ht=>({...Ht,[Ut]:!1})),!1),Yt=Ut=>{Jt(Ut,"treatment"),Nt("responseToTreatment",Ut)},Kt=Ut=>{Jt(Ut,"imaging"),Nt("imagingReview",Ut)},Jt=(Ut,Vt)=>{vt(Vt==="treatment"?Ht=>{const Gt={...Ht,responseToTreatment:Ut};return Dt(Gt),Gt}:Ht=>{const Gt={...Ht,imagingReview:Ut};return Dt(Gt),Gt})};if(nt||ut)return jsxRuntimeExports.jsx(LoadingSpinner,{});const Qt=filterListdata(lt,LIST_OPTIONS.RESPONSE_TO_TREATMENT).map(Ut=>Ut.value),Bt=filterListdata(lt,LIST_OPTIONS.IMAGE_REVIEW).map(Ut=>Ut.value),Ft=filterListdata(lt,LIST_OPTIONS.MANAGEMENT_DECISION),$t=(ht==null?void 0:ht.treatmentReviewList.filter(Ut=>Ut.careplan===(dt==null?void 0:dt.treatmentReview.careplan)).map(Ut=>Ut.treatmentFractionsReviewed))||[],jt=getFractionsList(dt==null?void 0:dt.treatmentReview.dss).map(Ut=>({...Ut,disabled:dt.treatmentReview.treatmentFactionsReviewed===Ut.value||$t.includes(Ut.value)})).map(Ut=>({...Ut,tooltip:Ut.disabled?"Fractions are already reviewed":""}));return jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",width:1,marginTop:"-16px",children:[jsxRuntimeExports.jsxs(Stack$5,{sx:{width:"100%"},children:[jsxRuntimeExports.jsx(Banner,{review:dt.treatmentReview,patientId:tt,discardCallback:()=>{It(!0)}}),jsxRuntimeExports.jsxs(Stack$5,{style:{paddingLeft:"24px",paddingTop:"24px",width:"100%",flex:1,overflowY:"auto"},children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{fontWeight:"bold"},"data-testid":"on-treatment-review-form-title",children:dt==null?void 0:dt.treatmentReview.careplan}),jsxRuntimeExports.jsxs(Typography,{variant:"body1",children:[jsxRuntimeExports.jsx("span",{style:{color:"red"},children:"*"})," = required field"]}),jsxRuntimeExports.jsxs(Stack$5,{style:{paddingTop:"24px",width:"100%"},children:[jsxRuntimeExports.jsx(RODatePicker,{id:"reviewDate",fieldlabel:"On treatment review date",value:(Wt=dt==null?void 0:dt.treatmentReview)!=null&&Wt.reviewDate?dayjs(dt.treatmentReview.reviewDate):null,disabled:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"treatmentFractionsReviewed",fieldlabel:"Treatment fractions reviewed",requiredFieldColor:"red",required:!0,inputProps:{error:Rt&&Ot.treatmentFractionsReviewed},options:jt,value:getOptionByValue(jt,Mt.treatmentFactionsReviewed?Mt.treatmentFactionsReviewed:""),onChange:Ut=>{const Vt=typeof Ut=="string"?Ut:Ut==null?void 0:Ut.value;vt(Ht=>{const Gt={...Ht,treatmentFactionsReviewed:Vt};return Dt(Gt),Gt}),Nt("treatmentFractionsReviewed",Vt)}}),jsxRuntimeExports.jsx(ChipMultiSelect,{id:"responseToTreatment",requiredFieldColor:"red",fieldLabel:"Response to treatment",selectedValues:Mt.responseToTreatment||[],handleChange:Yt,options:Qt,placeholder:"Please select",required:!0,error:Rt&&Ot.responseToTreatment}),jsxRuntimeExports.jsx(ChipMultiSelect,{id:"imagingReview",requiredFieldColor:"red",fieldLabel:"Imaging review",selectedValues:Mt.imagingReview||[],handleChange:Kt,options:Bt,placeholder:"Please select",error:Rt&&Ot.imagingReview,required:!0}),jsxRuntimeExports.jsx(ROAutocomplete,{id:"managementDecision",requiredFieldColor:"red",fieldlabel:"Management decision",required:!0,inputProps:{error:Rt&&Ot.managementDecision},options:Ft,value:getOptionByValue(Ft,Mt.managementDecision?Mt.managementDecision:""),onChange:Ut=>{const Vt=typeof Ut=="string"?Ut:Ut==null?void 0:Ut.value;vt(Ht=>{const Gt={...Ht,managementDecision:Vt};return Dt(Gt),Gt}),Nt("managementDecision",Vt)}}),jsxRuntimeExports.jsx(ROTextField,{id:"clinicalExamination",requiredFieldColor:"red",fieldlabel:"Clinical examination",required:!0,error:Rt&&Ot.clinicalExamination,minRows:4,value:Mt.clinicalExamination||"",onChange:Ut=>{vt(Vt=>{const Ht={...Vt,clinicalExamination:Ut.target.value};return Dt(Ht),Ht}),Nt("clinicalExamination",Ut.target.value)},multiline:!0,maxRows:4,placeholder:"Record details of any diagnostic tests, vital signs, coordinated care & physical exam"})]})]}),jsxRuntimeExports.jsx(Divider$1,{sx:{borderColor:Ut=>Ut.palette.primary.main}}),jsxRuntimeExports.jsxs(Stack$5,{flexDirection:"row",justifyContent:"flex-end",columnGap:1,padding:2,paddingBottom:0,children:[jsxRuntimeExports.jsx(Button,{id:"footer-button-back","data-testid":"footer-button-back",title:"Back",onClick:()=>{Tt.push(`/radiation/patient/${tt}/on-treatment-review`)},children:"Back"}),jsxRuntimeExports.jsx(Button,{id:"footer-button-continue","data-testid":"footer-button-continue",variant:"contained",disabled:!(dt.treatmentReview.currentChanges||dt.treatmentReview.lastSubmittedAt===null),onClick:()=>{zt(!0),qt()||kt()},children:"Submit"})]})]}),jsxRuntimeExports.jsx(ROSidePanel,{children:jsxRuntimeExports.jsx(ROPatientCarePathDoseSummaryWidget,{selectedCareplan:dt.treatmentReview.careplan})})]})})})};class AppointmentViewModel{constructor(){Nr(this,"allAppointments");Nr(this,"sortedAppointments");Nr(this,"appointmentMappings");Nr(this,"SINGLE_APPOINTMENT",1);Nr(this,"PATH_SEPARATOR","/");Nr(this,"APPOINTMENT_ID_INDEX",3);Nr(this,"EMPTY_LENGTH",0);Nr(this,"setAllAppointmentsAndSort",tt=>{this.allAppointments=tt,this.sortQueryResultData()});Nr(this,"getSelectedAppointmentByID",tt=>{if(tt){const rt=this.getDictionaryMappingForID(tt);if(rt)return this.sortedAppointments[rt.dictKey][rt.arrayIndex][rt.apptIndex]}return null});Nr(this,"getFirstAppointmentInListing",()=>{const tt=Object.keys(this.sortedAppointments)[0],rt=this.sortedAppointments[tt];if(rt){const nt=rt[0];if(nt){const lt=nt[0];if(lt)return lt}}return null});Nr(this,"getDictionaryMappingForID",tt=>{const rt=this.appointmentMappings[tt];return rt||null});Nr(this,"isSameDayAppointment",tt=>{const rt=this.appointmentMappings[tt];return rt?this.sortedAppointments[rt.dictKey][rt.arrayIndex].length>this.SINGLE_APPOINTMENT:!1});Nr(this,"getAppointmentIDFromURL",tt=>{const rt=tt.split(this.PATH_SEPARATOR)[this.APPOINTMENT_ID_INDEX];return rt||null});Nr(this,"isDataEmpty",()=>this.allAppointments.length===this.EMPTY_LENGTH);Nr(this,"sortQueryResultData",()=>{this.sortedAppointments={};let tt;this.allAppointments.forEach(rt=>{if(rt.startTime){const lt=moment$2.utc(rt.startTime).local(),ut=lt.format("MMMM YYYY"),dt=lt.dayOfYear();this.sortedAppointments[ut]?dt===tt?this.sortedAppointments[ut][this.sortedAppointments[ut].length-1].push(rt):this.sortedAppointments[ut].push([rt]):this.sortedAppointments[ut]=[[rt]],tt=dt,this.appointmentMappings[rt.id]={dictKey:ut,arrayIndex:this.sortedAppointments[ut].length-1,apptIndex:this.sortedAppointments[ut][this.sortedAppointments[ut].length-1].length-1}}})});this.allAppointments=[],this.sortedAppointments={},this.appointmentMappings={}}}const APPOINTMENTS_QUERY=gql`
  query AllAppointmentsAndUser($afterTz: String!) {
    allAppointments(afterTz: $afterTz) {
      id
      startTime
      entity
      appointmentType: mappingType
      department {
        id
        name
      }
      status
      duration
      practitioner {
        id
        name
        prefix
        qualification
      }
      location {
        id
        name: mappingName
        phone
        address {
          id
          city
          formattedAddress
        }
        mapSearchUrl
      }
    }
    user {
      id
      username
    }
  }
`,LOCAL_TIMEZONE=moment$2.tz.guess(),GRAPHQL_API_ERROR_MESSAGE="An error occured, please refresh";class NavigationBar extends reactExports.Component{constructor(){super(...arguments);Nr(this,"navList",[{title:"Appointments",url:"/px/appointments"},{title:"Information",url:"/px/information"},{title:"My details",url:"/px/details"}]);Nr(this,"renderNavItems",()=>this.navList.map(nt=>{const lt=this.props.location.pathname,ut=nt.url,dt=lt.includes(ut);return jsxRuntimeExports.jsxs("div",{onClick:()=>{(!dt||ut==="/px/information")&&this.handleNavClick(nt.url)},className:classNames$1("nav-bar-link-button",{selected:dt}),children:[this.getIcon(nt.title),jsxRuntimeExports.jsx("span",{className:"link-text",children:nt.title})]},nt.title)}));Nr(this,"handleNavClick",rt=>{this.props.history.push(rt)});Nr(this,"getIcon",rt=>{if(this.props.footer)return rt===NavigationType.APPOINTMENT?jsxRuntimeExports.jsx(SvgCalendar,{className:"icon"}):rt===NavigationType.INFORMATION?jsxRuntimeExports.jsx(DescriptionOutlinedIcon,{color:"primary",className:"icon"}):jsxRuntimeExports.jsx(SvgMyDetails,{className:"icon"})})}render(){return jsxRuntimeExports.jsx("div",{className:classNames$1("nav-bar-container",{footer:this.props.footer}),onClick:()=>{const{navOnClick:rt}=this.props;rt&&rt()},children:this.renderNavItems()})}}withRouter(NavigationBar);const SUNDAY=0,THURSDAY=4,FRIDAY=5,SATURDAY=6,FRIDAY_CUTOFF=[SUNDAY,FRIDAY,SATURDAY],THURSDAY_CUTOFF=[SUNDAY,THURSDAY,FRIDAY,SATURDAY],APPOINTMENT_LISTING_CUTOFF={SA:FRIDAY_CUTOFF,VIC:FRIDAY_CUTOFF,QLD:FRIDAY_CUTOFF,NSW:THURSDAY_CUTOFF,WA:THURSDAY_CUTOFF};class DateTimeConverter{static isToday(tt){const rt=new Date;return tt.getDate()===rt.getDate()&&tt.getMonth()===rt.getMonth()&&tt.getFullYear()===rt.getFullYear()}static getFormattedDateComponents(tt,rt){const nt="Today",lt={day:"numeric"},ut={month:"short"},dt={hour:"numeric",minute:"numeric",hourCycle:"h12"},pt={weekday:"short"},ht={year:"numeric"},mt=rt.toLocaleString(tt,lt),xt=rt.toLocaleString(tt,ut).replace(".",""),Mt=rt.toLocaleString(tt,dt).replace(" ",""),vt=DateTimeConverter.isToday(rt)?nt:rt.toLocaleString(tt,pt).replace(".",""),Ot=rt.toLocaleString(tt,ht);return{formattedComponents:{dayOfMonth:mt,month:xt,time:Mt,dayOfWeek:vt,year:Ot}}}static getFormattedDateAsMMMYYYY(tt,rt){const nt=DateTimeConverter.getFormattedDateComponents(tt,rt).formattedComponents;return nt.dayOfMonth+" "+nt.month+" "+nt.year}static getFormattedDateTimeAsEEEdhmmaa(tt,rt){const nt=DateTimeConverter.getFormattedDateComponents(tt,rt).formattedComponents;return nt.dayOfWeek+", "+nt.time.toLowerCase()}static getFormattedTimeAsHMMa(tt,rt){return DateTimeConverter.getFormattedDateComponents(tt,rt).formattedComponents.time}static getAppointmentCutOffDate(tt,rt=new Date){const nt=(ht,mt)=>{const xt=new Date(ht);return xt.setDate(ht.getDate()+(mt+(7-ht.getDay()))%7),xt},lt=(ht,mt)=>{const xt=new Date(ht);return xt.setDate(xt.getDate()+mt),xt},ut=rt.getDay();rt.setHours(23,59,59,999);let dt=THURSDAY_CUTOFF;return tt&&(dt=APPOINTMENT_LISTING_CUTOFF[tt]||THURSDAY_CUTOFF),dt.includes(ut)?nt(lt(rt,dt.length),SUNDAY):nt(rt,SUNDAY)}}const patientDashboardUrl="/px/appointments",pxNavList=[{title:"Appointments",url:"/px/appointments",icon:jsxRuntimeExports.jsx(SvgCalendar,{"data-testid":"opx-appointments-nav-icon"}),dataTestId:"opx-appointments-nav"},{title:"Information",url:"/px/information",icon:jsxRuntimeExports.jsx(DescriptionOutlinedIcon,{color:"primary","data-testid":"opx-information-nav-icon"}),dataTestId:"opx-information-nav"},{title:"My details",url:"/px/details",icon:jsxRuntimeExports.jsx(SvgMyDetails,{"data-testid":"opx-mydetails-nav-icon"}),dataTestId:"opx-mydetails-nav"}];pxNavList.map(et=>et.title);pxNavList.map(et=>et.url);pxNavList.map(et=>et.icon);const findTitleFromUrl=et=>{var rt;return((rt=[...[{title:"Feedback",url:"/px/feedback"},{title:"FAQs",url:"/px/information/faq"},{title:"Change password",url:"/px/changePassword"}],...pxNavList].find(nt=>et.indexOf((nt==null?void 0:nt.url)??"")===0))==null?void 0:rt.title)??""};class DeviceUtilities{static isMobileDevice(){return window.innerWidth<768}static isTabletDevice(){return window.innerWidth>=768&&window.innerWidth<993}static isDesktopDevice(){return window.innerWidth>=993}static isAppleDevice(){const tt=window.navigator.userAgent.match(/iPad/i),rt=window.navigator.userAgent.match(/iPhone/i);return!!(tt||rt)}}const ICONS$1={EVENT:"event",LOCATION:"location",STAFF:"staff",SUCCESS:"success",INFO:"info"},CONFIRMED_APPOINTMENT_STATUS$2=["initial consultation","follow up","follow-up consultation"];function Appointment(et){const tt=window.navigator.language,rt=et.appointment.startTime?new Date(et.appointment.startTime):null;let nt;rt?nt=DateTimeConverter.getFormattedDateComponents(tt,rt).formattedComponents:nt={dayOfWeek:"",dayOfMonth:"",time:""};const lt=et.appointment.appointmentType?et.appointment.appointmentType:"",ut=CONFIRMED_APPOINTMENT_STATUS$2.includes(lt.toLowerCase()),dt=DateTimeConverter.getAppointmentCutOffDate(et.appointment.entity),pt=rt?rt>=dt&&!ut:!0,ht=pt?"TBC":nt.time.toLowerCase(),mt=Mt=>{switch(Mt){case ICONS$1.SUCCESS:return jsxRuntimeExports.jsx(SvgSuccess,{className:"icon icon-green"});default:return jsxRuntimeExports.jsx(SvgInfo,{className:"icon icon-blue"})}},xt=()=>rt===null?jsxRuntimeExports.jsx("div",{}):pt?jsxRuntimeExports.jsxs("div",{className:"appointment-status",children:[jsxRuntimeExports.jsxs("div",{className:"appointment-row",children:[mt(ICONS$1.INFO),jsxRuntimeExports.jsx("div",{className:"appointment-confirmation",children:"Time may vary"})]}),jsxRuntimeExports.jsx("div",{className:"more-info",children:"more info"})]}):jsxRuntimeExports.jsx("div",{className:"appointment-status",children:jsxRuntimeExports.jsxs("div",{className:"appointment-row",children:[mt(ICONS$1.SUCCESS),jsxRuntimeExports.jsx("div",{className:"appointment-confirmation",children:"Confirmed"})]})});return jsxRuntimeExports.jsxs("div",{className:"appointment",children:[jsxRuntimeExports.jsxs("div",{className:"grid-left",children:[jsxRuntimeExports.jsx("div",{className:"dayOfWeek",children:nt.dayOfWeek}),jsxRuntimeExports.jsx("div",{className:"dayOfMonth",children:nt.dayOfMonth}),jsxRuntimeExports.jsx("div",{className:"time",children:ht})]}),jsxRuntimeExports.jsxs("div",{className:"grid-right",children:[jsxRuntimeExports.jsx("div",{className:"type",children:et.appointment.appointmentType?et.appointment.appointmentType:""}),jsxRuntimeExports.jsxs("div",{className:"location-group",children:[jsxRuntimeExports.jsx("div",{className:"department",children:et.appointment.location?et.appointment.location.name:""}),jsxRuntimeExports.jsx("div",{className:"department",children:et.appointment.location&&et.appointment.location.address?et.appointment.location.address.city:""})]}),xt()]}),jsxRuntimeExports.jsx("div",{className:"disclosure-arrow"})]})}function AppointmentsListingSectionHeader(et){return jsxRuntimeExports.jsx("div",{className:"month-section-header",children:et.nameOfMonth})}const NO_UPCOMING_APPOINTMENTS_BEYOND_THIS_DATE_MESSAGE="No upcoming appointments beyond this date",CONFIRMED_APPOINTMENT_STATUS$1=["initial consultation","follow up","follow-up consultation"];class AppointmentsListing extends reactExports.Component{constructor(){super(...arguments);Nr(this,"handleAppointmentClicked",(rt,nt,lt,ut,dt)=>{nt!==this.props.selectedAppointmentID?this.props.handleAppointmentSelected(lt,ut,dt):DeviceUtilities$1.isMobileDevice()?(rt.preventDefault(),this.props.handleAppointmentSelected(lt,ut,dt)):rt.preventDefault()})}componentDidMount(){this.scrollToSelectedAppointment()}componentDidUpdate(){this.scrollToSelectedAppointment()}scrollToSelectedAppointment(){const rt=document.getElementById("appointments-listing-container"),nt=document.getElementById(`appointment-container-${this.props.selectedAppointmentID}`);if(rt&&nt){const lt=rt.scrollTop,ut=lt+rt.clientHeight,dt=nt.offsetTop,pt=nt.offsetTop+nt.clientHeight,ht=60;(pt<lt||dt>ut)&&(rt.scrollTop=dt-ht)}}generateAppointmentElement(rt,nt,lt,ut,dt){const pt=rt.appointmentType?rt.appointmentType:"",ht=CONFIRMED_APPOINTMENT_STATUS$1.includes(pt.toLowerCase()),mt=DateTimeConverter.getAppointmentCutOffDate(rt.entity),xt=rt.startTime?new Date(rt.startTime):null,Mt=xt?xt>=mt&&!ht:!0;return jsxRuntimeExports.jsx("div",{id:"appointment-container-"+rt.id,className:classNames$1("appointment-container",{selected:nt,"appointment-pending":Mt}),children:jsxRuntimeExports.jsx(Link$2,{to:"/px/appointments/"+rt.id,onClick:vt=>{this.handleAppointmentClicked(vt,rt.id,lt,ut,dt)},children:jsxRuntimeExports.jsx(Appointment,{appointment:rt})})},"apptKey_"+rt.id)}generateCurrentDayAppointmentElements(rt,nt){return this.props.appointmentsData[rt][nt].map((lt,ut)=>{let dt=!1;return lt.id===this.props.selectedAppointmentID&&(dt=!0),this.generateAppointmentElement(lt,dt,rt,nt,ut)})}generateMonthAndAppointmentElements(){let rt=[],nt=!1;for(const lt in this.props.appointmentsData){const ut=lt.split(" ")[0],dt=jsxRuntimeExports.jsx(AppointmentsListingSectionHeader,{nameOfMonth:ut},lt);let pt=[];for(let ht=0;ht<this.props.appointmentsData[lt].length;ht++){const mt=this.props.appointmentsData[lt][ht][0],xt=mt.startTime,Mt=xt?new Date(xt):null,vt=DateTimeConverter.getAppointmentCutOffDate(mt.entity);Mt&&Mt>=vt&&!nt&&(pt=pt.concat(this.generatePendingHeader(mt.entity)),nt=!0);const Ot=this.generateCurrentDayAppointmentElements(lt,ht);pt=pt.concat(Ot)}rt=rt.concat([jsxRuntimeExports.jsxs("div",{children:[dt,pt]},"monthContainerKey_"+lt)])}return rt}generateNoUpcomingAppointmentsMessage(){return jsxRuntimeExports.jsx("div",{className:"appointments-listing-end-message",children:NO_UPCOMING_APPOINTMENTS_BEYOND_THIS_DATE_MESSAGE})}generateAppointmentsListing(){return jsxRuntimeExports.jsxs(React$4.Fragment,{children:[this.generateMonthAndAppointmentElements(),this.generateNoUpcomingAppointmentsMessage()]})}generatePendingHeader(rt){let nt='Appointment times for next week will appear as "TBC" (to be confirmed) until Thursday the week before';return rt&&["SA","VIC","QLD"].includes(rt)&&(nt='Appointment times for next week will appear as "TBC" (to be confirmed) until Friday the week before'),jsxRuntimeExports.jsxs("div",{className:"pending-section",children:[jsxRuntimeExports.jsxs("div",{className:"pending-section-header",children:[jsxRuntimeExports.jsx(SvgInfo,{className:"icon-blue"}),"Time may vary"]}),jsxRuntimeExports.jsx("div",{className:"pending-section-body",children:nt})]},"pendingSection")}render(){return jsxRuntimeExports.jsx("div",{id:"appointments-listing-container",className:"appointments-listing-container",children:this.generateAppointmentsListing()})}}const LOADING_MESSAGE="Loading",NO_APPOINTMENTS="No upcoming appointments";class AppointmentsListingEmpty extends reactExports.Component{constructor(){super(...arguments);Nr(this,"selectMessage",()=>this.props.isLoading?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:LOADING_MESSAGE,relativeSpinner:!0}):NO_APPOINTMENTS)}render(){return jsxRuntimeExports.jsx("div",{className:"appointments-listing-empty-message",children:this.selectMessage()})}}class AppointmentDetailsViewModel{constructor(){Nr(this,"generateDetailsDataDictionary",tt=>{if(tt===null)return null;const rt=window.navigator.language;if(tt.startTime){const nt=new Date(tt.startTime),lt={dateTime:{date:"",time:""},location:{address:{}},staff:{}};lt.dateTime.date=DateTimeConverter.getFormattedDateAsMMMYYYY(rt,nt),lt.dateTime.time=DateTimeConverter.getFormattedDateTimeAsEEEdhmmaa(rt,nt);const ut=tt.duration;ut&&(lt.dateTime.durationInMinutes=Math.round(ut/60*10)/10);const dt=tt.department;dt&&dt.name&&(lt.location.department=dt.name);const pt=tt.location;if(pt&&pt.phone){const mt=pt.phone;lt.location.phone=mt}if(pt&&pt.name){const mt=pt.name;lt.location.name=mt}pt&&pt.address&&pt.address.formattedAddress&&pt.mapSearchUrl&&(lt.location.address.formattedAddress=pt.address.formattedAddress,lt.location.address.mapSearchUrl=pt.mapSearchUrl,lt.location.address.city=pt.address.city);const ht=tt.practitioner;return ht&&(lt.staff.name=ht.name,lt.staff.prefix=ht.prefix,lt.staff.qualification=ht.qualification),lt}else return null})}}class AppointmentDetailsStaffViewModel{constructor(tt,rt,nt){Nr(this,"staffName");Nr(this,"staffTitle");Nr(this,"staffPrefix");Nr(this,"TITLES_REQUIRING_PREFIX_DISPLAYED",["doctor","med oncologist","radiation oncologist"]);Nr(this,"getStaffDisplayName",()=>this.staffName&&this.staffTitle&&this.staffPrefix&&this.TITLES_REQUIRING_PREFIX_DISPLAYED.includes(this.staffTitle.toLowerCase())?this.staffPrefix+" "+this.staffName:this.staffName);Nr(this,"getStaffDisplayTitle",()=>this.staffTitle);this.staffName=tt,this.staffTitle=rt,this.staffPrefix=nt}}const CovidCard=et=>jsxRuntimeExports.jsxs(Accordion$2,{children:[jsxRuntimeExports.jsx(AccordionSummary$1,{expandIcon:jsxRuntimeExports.jsx(default_1$j,{}),children:jsxRuntimeExports.jsx("h3",{children:et.title})}),jsxRuntimeExports.jsx(AccordionDetails,{children:et.content})]}),CovidAppointment=()=>jsxRuntimeExports.jsxs("div",{className:"covid",children:[jsxRuntimeExports.jsx("div",{className:"covid-appointment",children:jsxRuntimeExports.jsxs("div",{className:"covid-appointment-info",children:[jsxRuntimeExports.jsx("h2",{children:"COVID-19 and your appointments"}),jsxRuntimeExports.jsx("p",{children:"If your doctor has recommended continuing with your planned appointments, it is important that you do so. Click below for more information."})]})}),jsxRuntimeExports.jsx(CovidCard,{title:"Arrive no more than 10 minutes early",content:"Please ensure you do not arrive in the centre any earlier than 10 minutes prior to your appointment time."}),jsxRuntimeExports.jsx(CovidCard,{title:"Help us maintain safe distancing",content:"In areas where there are COVID-19 restrictions, visitors are limited to only those required for patient safety and wellbeing – if you are unsure if this applies to you, please contact your Centre for more information"}),jsxRuntimeExports.jsx(CovidCard,{title:"Contact us if you feel unwell",content:"Call your treatment centre prior to attending if you feel unwell, have any symptoms, are a close contact of a suspected or confirmed case, or just unsure if you should attend.",classes:"final"})]}),UPCOMING_APPOINTMENT_ON_SAME_DAY_MESSAGE="You have another appointment occurring on the same day",CONTACT_DETAILS_TITLE="Contact details",ICONS={EVENT:"event",LOCATION:"location",STAFF:"staff",SUCCESS:"success",INFO:"info",HEADSET:"headset"},CONFIRMED_APPOINTMENT_STATUS=["initial consultation","follow up","follow-up consultation"];class AppointmentDetails extends reactExports.Component{constructor(rt){super(rt);Nr(this,"appointmentDetailsViewModel");Nr(this,"containerRef",null);Nr(this,"generateDetailsListing",()=>this.props.appointment===null?jsxRuntimeExports.jsx(React$4.Fragment,{}):jsxRuntimeExports.jsxs("div",{className:this.toggleStyles(),children:[this.generateDetailsPage(),this.generateUpcomingAppointmentDetailsMessage()]}));Nr(this,"toggleStyles",()=>{const{applyTransitionToDetailsPanel:rt}=this.props;return DeviceUtilities$1.isMobileDevice()&&rt?"appointment-details-container mobile-transition-effect":"appointment-details-container"});Nr(this,"generateDetailsPage",()=>{const rt=this.appointmentDetailsViewModel.generateDetailsDataDictionary(this.props.appointment);if(rt===null)return jsxRuntimeExports.jsx(React$4.Fragment,{});const nt=["Telehealth Phone","Telehealth Video","Consultation Phone","Consultation Video","Telehealth Consult"];let lt=this.props.appointment.appointmentType;return lt===void 0&&(lt=""),jsxRuntimeExports.jsxs("div",{ref:ut=>{this.containerRef=ut},children:[this.generateTypeTitle(),this.generateConfirmation(),this.generateTimeDetails(rt.dateTime),nt.includes(lt)&&this.generateTelehealthInfo(),this.generateLocationDetails(rt.location),this.generateStaffDetails(rt.staff),!nt.includes(lt)&&jsxRuntimeExports.jsx("div",{className:"appointment-details-covid-panel",children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(CovidAppointment,{})})})]})});Nr(this,"generateUpcomingAppointmentDetailsMessage",()=>{let rt=null;return this.props.isSameDayAppointment&&(rt=jsxRuntimeExports.jsx("div",{className:"same-day-appointments-exist-message",children:UPCOMING_APPOINTMENT_ON_SAME_DAY_MESSAGE})),rt});Nr(this,"generateTypeTitle",()=>{const nt=this.isPending()?"blue-text":"";return jsxRuntimeExports.jsx("div",{className:`appointment-details-title ${nt}`,children:this.props.appointment.appointmentType})});Nr(this,"generateConfirmation",()=>{const rt=this.isPending();if((this.props.appointment.startTime?new Date(this.props.appointment.startTime):null)===null)return jsxRuntimeExports.jsx("div",{});let lt=this.generateIcon(ICONS.INFO),ut="Time May Vary";const dt=this.props.appointment.entity;let pt=dt&&["SA","VIC","QLD"].includes(dt)?"Appointment time will be confirmed by Friday the week before the appointment date.":"Appointment time will be confirmed by Thursday the week before the appointment date.";return rt||(lt=this.generateIcon(ICONS.SUCCESS),ut="Confirmed",pt="These appointments have been confirmed in our system and we will notify you should they change."),jsxRuntimeExports.jsxs("div",{className:"row",children:[jsxRuntimeExports.jsxs("div",{id:"appointment-confirmation",children:[lt,jsxRuntimeExports.jsx("div",{className:"appointment-details-confirmation",children:ut})]}),jsxRuntimeExports.jsx("div",{className:"appointment-details-status-sub-heading no-bold-text",children:pt})]})});Nr(this,"generateIcon",rt=>{switch(rt){case ICONS.LOCATION:return jsxRuntimeExports.jsx(LocationOnOutlinedIcon,{htmlColor:theme$1.palette.grey[600],className:"icon"});case ICONS.STAFF:return jsxRuntimeExports.jsx(AssignmentIndOutlinedIcon,{htmlColor:theme$1.palette.grey[600],className:"icon"});case ICONS.SUCCESS:return jsxRuntimeExports.jsx(SvgSuccess,{className:"icon icon-green"});case ICONS.INFO:return jsxRuntimeExports.jsx(SvgInfo,{className:"icon icon-blue"});case ICONS.HEADSET:return jsxRuntimeExports.jsx(HeadsetMicOutlinedIcon,{htmlColor:theme$1.palette.grey[600],className:"icon"});default:return jsxRuntimeExports.jsx(EventOutlinedIcon,{className:"icon",htmlColor:theme$1.palette.grey[600]})}});Nr(this,"generateTimeDetails",rt=>{let nt=rt.time;const lt=this.isPending(),ut=window.navigator.language,dt=this.props.appointment.startTime?new Date(this.props.appointment.startTime):null;if(dt===null)return jsxRuntimeExports.jsx("div",{});let pt;return dt?pt=DateTimeConverter.getFormattedDateComponents(ut,dt).formattedComponents:pt={dayOfWeek:"",dayOfMonth:"",time:""},rt.durationInMinutes&&(nt+=` (${rt.durationInMinutes}mins)`),nt=lt?`${pt.dayOfWeek}, TBC`:nt,jsxRuntimeExports.jsxs("div",{className:"row",children:[this.generateIcon(ICONS.EVENT),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"appointment-details-date-heading",children:jsxRuntimeExports.jsx("span",{children:rt.date})}),jsxRuntimeExports.jsx("div",{className:"appointment-details-sub-heading",children:nt})]})]})});Nr(this,"generateTelehealthInfo",()=>jsxRuntimeExports.jsx("div",{className:"row",children:jsxRuntimeExports.jsxs("div",{id:"telehealth-appointment",children:[this.generateIcon(ICONS.HEADSET),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"appointment-details-sub-heading",children:jsxRuntimeExports.jsx("span",{children:"Telehealth Appointment"})}),jsxRuntimeExports.jsx("div",{className:"appointment-details-sub-heading no-bold-text",children:`"As this appointment won't be in-person, you do not need to come into the clinic unless staff have advised otherwise. If you have any questions, please contact the clinic directly."`})]})]})}));Nr(this,"generateLocationDetails",rt=>{const nt=[];if(rt.department&&nt.push(jsxRuntimeExports.jsxs("div",{className:"appointment-details-sub-heading",children:[rt.name,rt.address.city&&jsxRuntimeExports.jsx("span",{children:`, ${rt.address.city}`})]},"department-name")),rt.address.formattedAddress&&rt.address.mapSearchUrl){const{formattedAddress:lt,mapSearchUrl:ut}=rt.address;nt.push(jsxRuntimeExports.jsx("div",{className:"appointment-details-location-item",children:jsxRuntimeExports.jsx("a",{id:"appointments-details-location-detail",className:"detail",target:"_blank",rel:"noopener noreferrer",href:ut,children:lt})},"address-details"))}{const lt="0400000000";nt.push(jsxRuntimeExports.jsxs("div",{className:"appointment-details-location-item",children:[jsxRuntimeExports.jsx(Button,{sx:{textTransform:"unset",outline:"0px !important",border:"0px !important",WebkitTextFillColor:theme$1.palette.text.primary,fontSize:"16px"},onClick:()=>this.toggleCollapse(),endIcon:this.state.isContactOpen?jsxRuntimeExports.jsx(ExpandLessIcon,{}):jsxRuntimeExports.jsx(ExpandMoreIcon,{}),children:CONTACT_DETAILS_TITLE}),jsxRuntimeExports.jsx(Collapse,{in:this.state.isContactOpen,children:jsxRuntimeExports.jsxs("div",{className:"appointment-details-phone-label",children:[jsxRuntimeExports.jsx("div",{children:"Phone:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("a",{className:"department-phone-number",href:`tel:${lt}`,children:lt})})]})})]},"phone-details"))}return jsxRuntimeExports.jsxs("div",{className:"row",children:[this.generateIcon(ICONS.LOCATION),jsxRuntimeExports.jsx("div",{className:"appointment-details-location-items",children:nt})]})});Nr(this,"toggleCollapse",()=>{const rt=!this.state.isContactOpen;this.setState({isContactOpen:rt})});Nr(this,"isPending",()=>{const rt=this.props.appointment.appointmentType?this.props.appointment.appointmentType:"",nt=CONFIRMED_APPOINTMENT_STATUS.includes(rt.toLowerCase()),lt=DateTimeConverter.getAppointmentCutOffDate(this.props.appointment.entity),ut=this.props.appointment.startTime?new Date(this.props.appointment.startTime):null;return ut?ut>=lt&&!nt:!0});Nr(this,"generateStaffDetails",rt=>{const nt=new AppointmentDetailsStaffViewModel(rt.name,rt.qualification,rt.prefix),lt=nt.getStaffDisplayName(),ut=nt.getStaffDisplayTitle();let dt=jsxRuntimeExports.jsx("div",{id:"appointments-details-staff-title-detail",className:"appointment-details-sub-heading",children:"See front desk"});return lt&&(dt=jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{id:"appointments-details-staff-title-detail",className:"appointment-details-sub-heading",children:lt}),ut&&jsxRuntimeExports.jsx("div",{id:"appointments-details-staff-title-subtext",children:ut})]})),jsxRuntimeExports.jsxs("div",{className:"appointment-details-staff-panel",children:[this.generateIcon(ICONS.STAFF),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"appointment-details-sub-heading no-bold-text",children:"Staff in attendance"}),dt]})]})});this.appointmentDetailsViewModel=new AppointmentDetailsViewModel,this.state={isContactOpen:!1,appointmentId:rt.appointment.id}}static getDerivedStateFromProps(rt,nt){return rt.appointment.id!==nt.appointmentId?{appointmentId:rt.appointment.id,isContactOpen:!1}:nt}render(){return this.generateDetailsListing()}}const HeaderNavigation=()=>{const et="header-navigation",tt=useLocation(),rt=useHistory(),nt=reactExports.useMemo(()=>tt.pathname,[tt]),lt=ut=>rt.push(ut);return jsxRuntimeExports.jsx("div",{id:et,style:{display:"flex",justifyContent:"flex-end"},children:pxNavList.map(ut=>{const dt=ut.url,pt=nt.includes(dt);return jsxRuntimeExports.jsx("div",{onClick:()=>{(!pt||dt==="/px/information")&&lt(ut.url)},className:"nav-item text-nowrap",children:jsxRuntimeExports.jsx("span",{className:classNames$1("link-text",{selected:pt}),"data-testid":ut.dataTestId,children:ut.title})},`${et}-${ut.title}`)})})},BottomNavigation=()=>{const et="bottom-navigation",tt=useHistory(),rt=useLocation(),nt=reactExports.useMemo(()=>rt.pathname,[rt]),lt=ut=>tt.push(ut);return jsxRuntimeExports.jsx("div",{id:et,style:{display:"flex",justifyContent:"space-around",width:"100%"},children:pxNavList.map(ut=>{const dt=ut.url,pt=nt.includes(dt);return jsxRuntimeExports.jsxs("div",{onClick:()=>{(!pt||dt==="/px/information")&&lt(ut.url)},className:classNames$1("nav-item text-nowrap text-center",{selected:pt}),children:[jsxRuntimeExports.jsx("div",{className:"icon",children:ut.icon}),jsxRuntimeExports.jsx("div",{className:"link-text",children:ut.title})]},`${et}-${ut.title}`)})})},BottomNavigation$1=reactExports.memo(BottomNavigation),MainLayout=et=>{const{children:tt,clickLogoFn:rt}=et,nt="main-layout";return jsxRuntimeExports.jsxs(Stack$5,{id:nt,style:{padding:"0",width:"100%",display:"flex",height:"100%"},children:[jsxRuntimeExports.jsx(HeaderSection$1,{clickLogoFn:rt}),jsxRuntimeExports.jsx("div",{id:`${nt}-content`,style:{display:"flex",overflow:"auto",height:"100%"},children:tt}),jsxRuntimeExports.jsx(BottomSection$1,{})]})},MainLayout$1=reactExports.memo(MainLayout);function useOutsideAlerter(et,tt){reactExports.useEffect(()=>{function rt(nt){et.current&&!et.current.contains(nt.target)&&tt()}return document.addEventListener("mousedown",rt),()=>{document.removeEventListener("mousedown",rt)}},[et])}function NavigationOutsideAlerter(et){const tt=reactExports.useRef(null);return useOutsideAlerter(tt,et.clickOutside),jsxRuntimeExports.jsx("div",{ref:tt,children:et.children})}const LOGOUT_MUTATION=gql`
  mutation Logout {
    logout {
      errors
    }
  }
`;class NavigationDropDown extends reactExports.Component{constructor(rt){super(rt);Nr(this,"menuLinks",[{title:"Change password",url:"/px/changePassword"},{title:"Feedback",url:"/px/feedback"},{title:"Terms and Conditions",url:"/px/termsAndConditions"},{title:"Log out",url:"/auth/logout"}]);Nr(this,"renderMenuList",()=>this.state.openDropDown?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(NavigationOutsideAlerter,{clickOutside:this.closeDropDown,children:jsxRuntimeExports.jsxs("div",{className:"nav-drop-down-menu",children:[jsxRuntimeExports.jsxs("div",{className:"nav-drop-down-profile",children:[jsxRuntimeExports.jsx("div",{className:"nav-drop-down-profile-name",children:this.renderPatientName()}),jsxRuntimeExports.jsx("div",{className:"nav-drop-down-close",onClick:this.closeDropDown,children:jsxRuntimeExports.jsx(CloseIcon,{color:"primary",className:"icon"})})]}),jsxRuntimeExports.jsx("div",{children:this.generateMenuLinks()})]})}),jsxRuntimeExports.jsx("div",{className:"nav-drop-down-mobile-overlay",onClick:()=>{}})]}):jsxRuntimeExports.jsx(reactExports.Fragment,{}));Nr(this,"renderPatientName",()=>{const{firstName:rt,lastName:nt}=this.props;return`${rt} ${nt}`});Nr(this,"logout",()=>{var rt;(rt=this.props.client)==null||rt.mutate({mutation:LOGOUT_MUTATION}).then(()=>{this.props.history.push({pathname:"/login"})})});Nr(this,"generateMenuLinks",()=>this.menuLinks.map((rt,nt)=>jsxRuntimeExports.jsxs("div",{id:`menu-title-${rt.title}`,className:"nav-drop-down-link",onClick:()=>{rt.title==="Feedback"?this.props.history.push({pathname:rt.url,state:{from:location.pathname}}):rt.title==="Terms and Conditions"?window.open(rt.url):rt.title==="Log out"?this.logout():this.props.history.push({pathname:rt.url,state:{from:location.pathname}})},children:[this.selectIcon(rt.title),jsxRuntimeExports.jsx("span",{className:"nav-drop-down-link-text",children:rt.title})]},nt)));Nr(this,"selectIcon",rt=>{switch(rt){case"Change password":return jsxRuntimeExports.jsx(NoEncryptionOutlinedIcon,{className:"icon",htmlColor:theme$1.palette.grey[600]});case"Feedback":return jsxRuntimeExports.jsx(SmsOutlinedIcon,{htmlColor:theme$1.palette.grey[600],className:"icon"});case"Terms and Conditions":return jsxRuntimeExports.jsx(ListAltIcon,{htmlColor:theme$1.palette.grey[600],className:"icon"});default:return jsxRuntimeExports.jsx(ExitToAppIcon,{htmlColor:theme$1.palette.grey[600],className:"icon"})}});Nr(this,"openDropDown",()=>{this.setState({openDropDown:!0})});Nr(this,"closeDropDown",()=>{this.setState({openDropDown:!1})});this.state={openDropDown:!1}}render(){return jsxRuntimeExports.jsxs("div",{className:"px-nav-drop-down-container",children:[jsxRuntimeExports.jsx(SvgProfile,{className:classNames$1("icon",{"nav-drop-down-menu-open":this.state.openDropDown}),id:"opx-nav-profile-menu",onClick:this.openDropDown}),this.renderMenuList()]})}}const routedComponent$7=withRouter(withApollo(NavigationDropDown)),FORGOT_PASSWORD_MUTATION_GQL=gql`
  mutation ResetPassword($username: String!) {
    resetPassword(username: $username) {
      resetLink
      errors
    }
  }
`,PATIENT_QUERY_GQL=gql`
  query Patient {
    patient {
      firstName
      lastName
    }
  }
`;class NavigationDropDownApollo extends reactExports.Component{render(){return jsxRuntimeExports.jsx(Query,{query:PATIENT_QUERY_GQL,children:({loading:tt,data:rt})=>{if(tt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});let nt="Loading...",lt="";return rt&&rt.patient&&rt.patient.firstName&&rt.patient.lastName&&(nt=rt.patient.firstName,lt=rt.patient.lastName),jsxRuntimeExports.jsx(routedComponent$7,{firstName:nt,lastName:lt})}})}}const HeaderSection=et=>{const{clickLogoFn:tt,showNavigation:rt=!0,titleOverride:nt,displayProfile:lt=!0}=et,ut="header-section",dt=useHistory(),pt=useLocation(),ht=reactExports.useMemo(()=>pt.pathname,[pt]),mt=reactExports.useMemo(()=>findTitleFromUrl(ht),[ht]),xt=reactExports.useMemo(()=>!(mt==="Appointments"&&DeviceUtilities$1.isMobileDevice()),[mt]),Mt=()=>tt?tt():dt.replace(patientDashboardUrl);return jsxRuntimeExports.jsxs(Stack$5,{id:ut,sx:{display:"flex",flexDirection:"row"},children:[jsxRuntimeExports.jsxs(Stack$5,{id:`${ut}-row`,sx:{width:"100%",display:"flex",justifyContent:"flex-end",flexDirection:"row",boxShadow:"0 .125rem .25rem #00000013"},children:[jsxRuntimeExports.jsx("div",{id:`${ut}-logo`,className:classNames$1("text-left",{"d-none":!xt}),onClick:Mt}),jsxRuntimeExports.jsx("div",{id:`${ut}-page-title`,className:"align-self-center text-center text-nowrap",children:nt||mt}),rt&&jsxRuntimeExports.jsx("div",{id:`${ut}-navigation`,children:jsxRuntimeExports.jsx(HeaderNavigation,{})})]}),lt&&jsxRuntimeExports.jsx("div",{className:"nav-item text-nowrap",children:jsxRuntimeExports.jsx(NavigationDropDownApollo,{})})]})},HeaderSection$1=reactExports.memo(HeaderSection),BottomSection=()=>jsxRuntimeExports.jsx("div",{id:"bottom-section",children:jsxRuntimeExports.jsx(BottomNavigation$1,{})}),BottomSection$1=reactExports.memo(BottomSection),ContentTile=et=>{const{title:tt,url:rt,image:nt,icon:lt,testId:ut,titleClass:dt}=et,pt=tt.toLowerCase(),ht={backgroundImage:`url(${nt})`,backgroundPosition:"center center",backgroundSize:"cover",backgroundRepeat:"no-repeat"};return jsxRuntimeExports.jsxs(Link$2,{to:rt,className:"tile-container","data-testid":ut,children:[jsxRuntimeExports.jsx("div",{className:"tile-image",style:ht}),jsxRuntimeExports.jsxs("div",{className:"tile-title-container",children:[lt&&jsxRuntimeExports.jsx("img",{src:lt,alt:`${pt}-icon`,className:"tile-icon"}),jsxRuntimeExports.jsx("div",{className:classNames$1("title",{[`${dt}`]:dt}),children:tt})]})]})},InfoTile=({name:et,children:tt})=>{const{header:rt,body:nt}=et,lt=tt;return jsxRuntimeExports.jsxs("div",{className:"info-tile",children:[jsxRuntimeExports.jsx("div",{className:"info-tile-image",children:lt}),jsxRuntimeExports.jsxs("div",{className:"info-tile-body",children:[jsxRuntimeExports.jsx("div",{id:"device-header",className:"info-tile-header",children:rt}),jsxRuntimeExports.jsx("div",{id:"device-text",className:"info-tile-text",children:nt})]})]})},Appointments=()=>{const et=useLocation(),[tt,rt]=reactExports.useState(!1),[nt,lt]=reactExports.useState(null),{loading:ut,data:dt,error:pt}=useQuery(APPOINTMENTS_QUERY,{variables:{afterTz:LOCAL_TIMEZONE}}),ht=new AppointmentViewModel;if(ut)return jsxRuntimeExports.jsx(AppointmentsListingEmpty,{isLoading:!0});if(pt||!dt||!dt.user.username)return jsxRuntimeExports.jsx("div",{children:GRAPHQL_API_ERROR_MESSAGE});const mt=()=>{rt(!1),lt(null)},xt=()=>{mt()},Mt=(zt,Tt,Ct)=>{lt(ht.sortedAppointments[zt][Tt][Ct]),rt(!0)},vt=()=>{const zt=et.pathname,Tt=ht.getAppointmentIDFromURL(zt);return Tt?ht.getSelectedAppointmentByID(Tt):ht.getFirstAppointmentInListing()},Ot=()=>{const zt=vt();let Tt=null,Ct=!1;return zt&&(Tt=zt.id,Ct=ht.isSameDayAppointment(zt.id)),jsxRuntimeExports.jsxs("div",{className:"appointments",children:[jsxRuntimeExports.jsx(AppointmentsListing,{appointmentsData:ht.sortedAppointments,selectedAppointmentID:Tt,handleAppointmentSelected:Mt}),zt&&jsxRuntimeExports.jsx(AppointmentDetails,{appointment:zt,isSameDayAppointment:Ct,applyTransitionToDetailsPanel:tt})]})},At=()=>(ht.setAllAppointmentsAndSort(dt.allAppointments),ht.isDataEmpty()?jsxRuntimeExports.jsx("div",{className:"appointments",children:jsxRuntimeExports.jsx(AppointmentsListingEmpty,{isLoading:!1})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Ot()})),Rt=()=>DictionaryUtilities.isEmpty(ht.sortedAppointments)?At():Ot();return jsxRuntimeExports.jsx(MainLayout$1,{clickLogoFn:xt,children:jsxRuntimeExports.jsx("div",{className:"container width-contained",children:Rt()})})},StyledTableCell$3=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[200],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$3=styled(TableRow$7)(({theme:et})=>({"&:nth-of-type(odd)":{backgroundColor:et.palette.secondary.light},"&:last-child td, &:last-child th":{border:0}})),StyledCell$1=styled(TableCell)`
  color: red;
`,StyledTableContainer$1=styled("div")`
  ${({$showInstructions:et})=>et?`
    overflow: auto;
    max-height: calc(100% - 670px);
  `:`
  overflow: auto;
  max-height: calc(100% - 510px);
  `}
`,validSystems$1=["ROA","CWA","ARC","GCCQ","CCQ","ROV"],ApptTable=({apptData:et,setSaveFalse:tt,showInstructions:rt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{marginTop:"50px",marginBottom:"20px"},children:"Appointment Mappings"}),jsxRuntimeExports.jsx(StyledTableContainer$1,{$showInstructions:rt,children:jsxRuntimeExports.jsxs(Table$3,{"data-testid":"practitioner-search-results-table",children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsxs(TableRow$7,{children:[jsxRuntimeExports.jsx(StyledTableCell$3,{children:"Activity Code"}),jsxRuntimeExports.jsx(StyledTableCell$3,{children:"System"}),jsxRuntimeExports.jsx(StyledTableCell$3,{children:"Mapped Value"})]})}),jsxRuntimeExports.jsx(TableBody$2,{children:et&&et.map(nt=>(validSystems$1.includes(nt.system)||tt(!0),jsxRuntimeExports.jsxs(StyledTableRow$3,{children:[renderCell$1("activityCode",nt.activityCode,nt.errorFields),renderCell$1("system",nt.system,nt.errorFields),renderCell$1("mappedValue",nt.mappedValue,nt.errorFields)]})))})]})})]}),renderCell$1=(et,tt,rt)=>rt.includes(et)?jsxRuntimeExports.jsx(StyledCell$1,{children:tt}):jsxRuntimeExports.jsx(TableCell,{children:tt}),StyledCell=styled(TableCell)`
  color: red;
`,StyledTableCell$2=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[200],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$2=styled(TableRow$7)(({theme:et})=>({"&:nth-of-type(odd)":{backgroundColor:et.palette.secondary.light},"&:last-child td, &:last-child th":{border:0}})),StyledTableContainer=styled("div")`
  ${({$showInstructions:et})=>et?`
    overflow: auto;
    max-height: calc(100% - 670px);
  `:`
  overflow: auto;
  max-height: calc(100% - 510px);
  `}
`,validSystems=["ROA","CWA","ARC","GCCQ","CCQ","ROV"],LocationTable=({locationData:et,setSaveFalse:tt,showInstructions:rt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{marginTop:"50px",marginBottom:"20px"},children:"Location Mappings"}),jsxRuntimeExports.jsx(StyledTableContainer,{$showInstructions:rt,children:jsxRuntimeExports.jsxs(Table$3,{"data-testid":"practitioner-search-results-table",children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsxs(TableRow$7,{children:[jsxRuntimeExports.jsx(StyledTableCell$2,{children:"Location Id"}),jsxRuntimeExports.jsx(StyledTableCell$2,{children:"System"}),jsxRuntimeExports.jsx(StyledTableCell$2,{children:"Location Name"})]})}),jsxRuntimeExports.jsx(TableBody$2,{children:et&&et.map(nt=>(validSystems.includes(nt.system)||tt(!0),jsxRuntimeExports.jsxs(StyledTableRow$2,{children:[renderCell("locationId",nt.locationId,nt.errorFields),renderCell("system",nt.system,nt.errorFields),renderCell("locationName",nt.locationName,nt.errorFields)]})))})]})})]}),renderCell=(et,tt,rt)=>rt.includes(et)?jsxRuntimeExports.jsx(StyledCell,{children:tt}):jsxRuntimeExports.jsx(TableCell,{children:tt}),MAPPING_FILE_UPLOAD_PAYLOAD=gql`
  query MappingFileUploadPayLoad($fileName: String!) {
    mappingFileUploadPayload(fileName: $fileName) {
      awsPayload
      awsKey
      url
    }
  }
`,CREATE_APPOINTMENT_UPDATE=gql`
  mutation CreateAppointmentUpdate($key: String!) {
    createAppointmentUpdate(key: $key) {
      mappingUpdate {
        id
      }
      results {
        activityCode
        system
        mappedValue
        errorFields
      }
    }
  }
`,SAVE_APPOINTMENT_MAPPINGS=gql`
  mutation SaveAppointmentMappings($key: String!) {
    saveAppointmentMappings(key: $key) {
      ok
    }
  }
`,CREATE_LOCATION_UPDATE=gql`
  mutation CreateLocationUpdate($key: String!) {
    createLocationUpdate(key: $key) {
      mappingUpdate {
        id
      }
      results {
        locationId
        system
        locationName
        locationAddr1
        locationAddr2
        locationCity
        locationPostcode
        locationState
        locationCountry
        locationPhone
        errorFields
      }
    }
  }
`,SAVE_LOCATION_MAPPINGS=gql`
  mutation SaveLocationMappings($key: String!) {
    saveLocationMappings(key: $key) {
      ok
    }
  }
`,APPLY_APPOINTMENT_MAPPINGS=gql`
  mutation ApplyAppointmentMappings($key: String!) {
    applyAppointmentMappings(key: $key) {
      ok
    }
  }
`,UploadBarContainer=styled$1("div")`
  margin-top: 30px;
`,PageContainer=styled$1("div")`
  margin: 10px auto;
  width: 90%;
  text-align: center;
  vertical-align: middle;
  height: 100%;
`,InputContainer=styled$1("div")`
  text-align-last: center;
`,InstructionContainer=styled$1("div")`
  margin: 30px auto;
  display: flex;
  width: 40%;
  flex-direction: column;
  text-align: left;
`,ButtonContainer=styled$1("div")`
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  vertical-align: middle;
  margin: 30px auto;
  width: 800px;
`,SaveButtonContainer=styled$1("div")`
  margin-right: 20px;
`,Footer=styled$1("div")`
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  border-top: 1px solid ${et=>et.theme.palette.grey[300]};
  background-color: white;
  height: 8%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: red;
`,ErrorMessage=styled$1("h1")`
  color: red;
  margin-top: 30px;
`,HideButton=styled$1("button")`
  background: none !important;
  border: none;
  padding: 0 !important;
  /*optional*/
  font-family: arial, sans-serif;
  /*input has OS specific font-family*/
  color: ${et=>et.theme.palette.info.main};
  text-decoration: underline;
  cursor: pointer;
`,mapTypes={appointment:"appointment",location:"location"},MappingUpdate=()=>{const et=React$4.createRef(),[tt,rt]=reactExports.useState(),[nt,lt]=reactExports.useState(!0),[ut,dt]=reactExports.useState(!1),[pt,ht]=reactExports.useState(!1),[mt,xt]=reactExports.useState("");return jsxRuntimeExports.jsxs(PageContainer,{children:[jsxRuntimeExports.jsx("div",{children:"Would you like to update mappings for Appointments or Locations?"}),jsxRuntimeExports.jsxs(ButtonContainer,{children:[jsxRuntimeExports.jsx(Button,{variant:"contained",onClick:()=>{dt(!0),ht(!1),xt(mapTypes.appointment)},disabled:ut,children:"Update Appointments"}),jsxRuntimeExports.jsx(Button,{variant:"contained",onClick:()=>{dt(!1),ht(!0),xt(mapTypes.location)},disabled:pt,children:"Update Locations"})]}),(ut||pt)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(InstructionContainer,{children:[jsxRuntimeExports.jsxs("h1",{children:["Instructions on how to submit file (",jsxRuntimeExports.jsx(HideButton,{onClick:()=>lt(!nt),children:nt?"hide":"show"}),")"]}),nt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("p",{children:"1. Compile all work sheets into one sheet (i.e combine all the states). Remember to keep appointments and locations separate"}),jsxRuntimeExports.jsx("p",{children:"2. Remove the headers from the file so it only contains the data that needs to be mapped"}),jsxRuntimeExports.jsx("p",{children:"3. Upload the file. Make sure file is of type .xlsx, .xlsm, .xls or .xml "}),jsxRuntimeExports.jsx("p",{children:"4. Errors will be highlighted in red. Review the spreadsheet if there are any errors and upload again"})]})]}),jsxRuntimeExports.jsxs(InputContainer,{children:[jsxRuntimeExports.jsx("h1",{onClick:()=>{et.current.click()},children:"Click or drag over this to attach files"}),jsxRuntimeExports.jsx("input",{id:"fileinput",type:"file",ref:et,onClick:Mt=>{Mt.target.value=null},onChange:Mt=>{rt(Mt.target.files[0])}})]})]}),tt!==void 0&&jsxRuntimeExports.jsx(FileUpload,{file:tt,mapType:mt,showInstructions:nt})]})},FileUpload=et=>{const{file:tt,mapType:rt,showInstructions:nt}=et,{loading:lt,error:ut,data:dt}=useQuery(MAPPING_FILE_UPLOAD_PAYLOAD,{variables:{fileName:tt.name}}),[pt]=useMutation(rt===mapTypes.appointment?CREATE_APPOINTMENT_UPDATE:CREATE_LOCATION_UPDATE),[ht]=useMutation(rt===mapTypes.appointment?SAVE_APPOINTMENT_MAPPINGS:SAVE_LOCATION_MAPPINGS),[mt]=useMutation(APPLY_APPOINTMENT_MAPPINGS),[xt,Mt]=reactExports.useState(0),[vt,Ot]=reactExports.useState(!1),[At,Rt]=reactExports.useState(null),[zt,Tt]=reactExports.useState(!1),[Ct,It]=reactExports.useState(!1),[Dt,kt]=reactExports.useState(!1);if(ut)return jsxRuntimeExports.jsx("div",{children:"error"});if(lt)return jsxRuntimeExports.jsx("div",{children:"loading"});const qt=Nt=>{Tt(Nt)};if(dt&&dt.mappingFileUploadPayload){const Nt=new XMLHttpRequest,Yt=new FormData,Kt=dt.mappingFileUploadPayload.url,Jt=dt.mappingFileUploadPayload.awsPayload;Yt.append("Content-Type",tt.type);const Qt=JSON.parse(Jt);for(const[Bt,Ft]of Object.entries(Qt.fields))Yt.append(Bt,String(Ft));return Yt.append("file",tt),Nt.upload.addEventListener("progress",Bt=>{const Ft=Bt.loaded/Bt.total*100;Mt(Ft)}),Nt.addEventListener("error",()=>{alert("There was an error")}),Nt.addEventListener("load",async()=>{const Bt=Nt.status;if([200,201,204].includes(Bt)){const Ft=rt===mapTypes.appointment?"createAppointmentUpdate":"createLocationUpdate",$t=await pt({variables:{key:dt.mappingFileUploadPayload.awsKey}});Rt($t.data[Ft].results),!$t.data[Ft].results&&kt(!0)}}),vt||(Nt.open("POST",Kt),Nt.send(Yt),Ot(!0)),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(UploadBarContainer,{children:[xt!==100&&jsxRuntimeExports.jsxs("div",{children:["Uploading ",Math.round(xt),"%"]}),xt===100&&jsxRuntimeExports.jsx("div",{children:"Uploaded"}),jsxRuntimeExports.jsx(LinearProgress,{id:"bar-adjustments",color:"primary",variant:"determinate",value:xt})]}),At&&rt===mapTypes.appointment&&jsxRuntimeExports.jsx(ApptTable,{apptData:At,setSaveFalse:qt,showInstructions:nt}),At&&rt===mapTypes.location&&jsxRuntimeExports.jsx(LocationTable,{locationData:At,setSaveFalse:qt,showInstructions:nt}),Dt&&jsxRuntimeExports.jsx(ErrorMessage,{children:"Error occured. Make sure you are uploading an Excel file and are logged in as an admin"}),jsxRuntimeExports.jsx(Footer,{children:jsxRuntimeExports.jsx(SaveButtonContainer,{children:jsxRuntimeExports.jsx(Button,{variant:"contained",disabled:zt||Dt,onClick:()=>{It(!0),ht({variables:{key:dt.mappingFileUploadPayload.awsKey}})},children:"Save Mappings"})})}),jsxRuntimeExports.jsx(StandardDialog,{open:Ct,onClose:()=>It(!1),title:"Nearly there...",onSubmit:()=>{mt({variables:{key:dt.mappingFileUploadPayload.awsKey}}),It(!1)},submitText:"Apply Mappings",children:jsxRuntimeExports.jsx(Stack$5,{textAlign:"center",paddingY:2,children:"Click apply mappings to apply updates"})})]})}return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},SUBMIT_FEEDBACK_MUTATION=gql`
  mutation SubmitFeedback($comments: String!, $previousUrl: String!) {
    submitPatientFeedback(comments: $comments, previousUrl: $previousUrl) {
      success
    }
  }
`,generateValidationSchema=et=>{try{validateYupSchema(et,create$3().shape({feedbackMsg:create$6().ensure().required("Please complete your feedback")}),!0)}catch(tt){return yupToFormErrors(tt)}return{}},FeedbackContent=()=>{const et="feedback-content",[tt,{data:rt,loading:nt}]=useMutation(SUBMIT_FEEDBACK_MUTATION),lt=reactExports.useMemo(()=>{var ut;return!!((ut=rt==null?void 0:rt.submitPatientFeedback)!=null&&ut.success)},[rt]);return jsxRuntimeExports.jsx(Stack$5,{id:`${et}-inner-container`,className:"p-3 text-center",sx:{display:"flex",alignItems:"center",width:"100%"},children:lt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h2",{className:classNames$1(`${et}-header`,"py-4 px-2"),children:"Thank you for your submission."}),jsxRuntimeExports.jsx(SvgSuccess,{className:"icon submitted-success-icon"}),jsxRuntimeExports.jsx(Link$2,{to:"/px/appointments",className:"p-4",children:jsxRuntimeExports.jsx(Button,{variant:"contained",name:"feedback-go-home",children:"Back to home page"})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h2",{className:classNames$1(`${et}-header`,"py-4 px-2"),role:"title",style:{fontSize:"1.5rem"},children:"How can we improve the Patient Portal to make your experience better?"}),jsxRuntimeExports.jsx(Formik,{initialValues:{feedbackMsg:""},validate:ut=>generateValidationSchema(ut),validateOnChange:!0,validateOnBlur:!0,onSubmit:ut=>{tt({variables:{comments:ut.feedbackMsg,previousUrl:"/px/feedback"}})},children:jsxRuntimeExports.jsx(Form$3,{style:{width:"80%",maxWidth:"1100px"},children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Field,{"data-test-id":`${et}-textarea`,name:"feedbackMsg",children:({field:ut,meta:dt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("textarea",{rows:6,style:{padding:"8px"},className:classNames$1({"validation-error":dt==null?void 0:dt.error}),disabled:nt,placeholder:"Please outline your issues and/or suggestions so we can support you. For emergency or clinical concerns, please contact your clinic directly.",...ut}),(dt==null?void 0:dt.touched)&&(dt==null?void 0:dt.error)&&jsxRuntimeExports.jsxs("div",{style:{padding:"8px"},children:[jsxRuntimeExports.jsx(SvgErrorCross,{className:"icon"}),jsxRuntimeExports.jsx("span",{className:"error-message",children:dt==null?void 0:dt.error})]})]})}),jsxRuntimeExports.jsx("div",{className:"p-2",children:jsxRuntimeExports.jsx(Button,{type:"submit","data-testid":"Submit",disabled:nt,variant:"contained",name:"submitFeedback",children:"Submit"})})]})})})]})})},FeedbackContent$1=reactExports.memo(FeedbackContent),Feedback=()=>{const et=useHistory(),tt=useLocation(),rt=()=>{var nt;et.replace((nt=tt==null?void 0:tt.state)==null?void 0:nt.from)};return jsxRuntimeExports.jsx(MainLayout$1,{clickLogoFn:rt,children:jsxRuntimeExports.jsx(FeedbackContent$1,{})})},PXFeedback=reactExports.memo(Feedback),PATIENT_DETAILS_QUERY=gql`
  query PatientDetails {
    loggedInPatient {
      id
      preferredName
      dob
      resolvedNamePrefix
      primaryPhoneFormatted
      secondaryPhoneFormatted
      userProfile {
        id
        user {
          id
          firstName
          lastName
          email
        }
      }
      address {
        id
        line1
        line2
        city
        state
        postcode
        country
      }
      postalAddress {
        id
        line1
        line2
        city
        state
        postcode
        country
      }
      emergencyContact {
        id
        contactType
        relationship
        firstName
        lastName
        mobilePhoneNumber
        mobilePhoneNumberLocalised
        homePhoneNumber
        homePhoneNumberLocalised
        email
        authorisedForEnquiries
        supportPerson
      }
    }
  }
`,PatientDetailsContent=()=>{const et="patient-details-content",{data:tt,loading:rt,error:nt}=useQuery(PATIENT_DETAILS_QUERY),lt=reactExports.useMemo(()=>(tt==null?void 0:tt.loggedInPatient)||{},[tt]),ut=reactExports.useMemo(()=>(lt==null?void 0:lt.emergencyContact)||{},[lt]),dt="An error occured, please refresh",pt=Mt=>{let vt=Mt.resolvedNamePrefix;const Ot=Mt.resolvedNamePrefix.toLowerCase();return Ot==="rather not say"||Ot==="mx"?`${Mt.userProfile.user.firstName} ${Mt.userProfile.user.lastName}`:(Mt.resolvedNamePrefix.length>0&&Mt.resolvedNamePrefix.charAt(Mt.resolvedNamePrefix.length-1)!=="."&&(vt+="."),`${vt} ${Mt.userProfile.user.firstName} ${Mt.userProfile.user.lastName}`)},ht=(Mt,vt)=>!Mt||Mt.trim()===""?vt||"Not provided":Mt,mt=(Mt,vt)=>Mt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Mt.line1&&jsxRuntimeExports.jsx("div",{className:"newscard-content-address-item ",children:Mt.line1}),Mt.line2&&jsxRuntimeExports.jsx("div",{className:"newscard-content-address-item ",children:Mt.line2}),Mt.city&&jsxRuntimeExports.jsx("div",{className:"newscard-content-address-item ",children:Mt.city}),Mt.state&&Mt.postcode&&jsxRuntimeExports.jsx("div",{className:"newscard-content-address-item ",children:`${Mt.state} ${Mt.postcode}`}),Mt.country&&jsxRuntimeExports.jsx("div",{className:"newscard-content-address-item ",children:Mt.country})]}):jsxRuntimeExports.jsx("p",{children:vt}),xt=Mt=>Mt.address?"Same as residential address":"Postal address not provided";return rt?jsxRuntimeExports.jsx(LoadingSpinner,{container:!0,relativeSpinner:!0}):nt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:dt}):jsxRuntimeExports.jsx(Container$8,{id:"inner-container",children:jsxRuntimeExports.jsxs(Grid,{container:!0,id:et,children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,id:"patient-name",justifyContent:"center",sx:{margin:"1rem auto"},children:jsxRuntimeExports.jsx(Typography,{id:"opx-patient-name",variant:"h4",align:"center",sx:{fontSize:"2rem",fontWeight:"bolder",textTransform:"capitalize"},children:pt(lt)})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:3,children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:6,id:"basic-details-item",children:jsxRuntimeExports.jsxs(Card$2,{id:"basic-details-card",sx:{minHeight:"230px"},children:[jsxRuntimeExports.jsx(CardHeader$1,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgPermIdentity,{}),jsxRuntimeExports.jsx("h3",{className:"title",children:"Basic Details"})]}),disableTypography:!0}),jsxRuntimeExports.jsxs(CardContent,{children:[jsxRuntimeExports.jsxs("section",{id:"preferred-name-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Preferred name"}),jsxRuntimeExports.jsx("p",{children:ht(lt.preferredName,"Preferred name not provided")})]}),jsxRuntimeExports.jsxs("section",{id:"dob-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Date of birth"}),jsxRuntimeExports.jsx("p",{children:ht(DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(lt.dob),"Date of birth not provided")})]})]})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:6,id:"contact-details-item",children:jsxRuntimeExports.jsxs(Card$2,{id:"contact-details-card",sx:{minHeight:"230px"},children:[jsxRuntimeExports.jsx(CardHeader$1,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgCall,{}),jsxRuntimeExports.jsx("h3",{className:"title",children:"Contact Details"})]}),disableTypography:!0}),jsxRuntimeExports.jsxs(CardContent,{children:[jsxRuntimeExports.jsxs("section",{id:"mobile-phone-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Mobile"}),jsxRuntimeExports.jsx("p",{children:ht(lt.primaryPhoneFormatted,"Mobile phone number not provided")})]}),jsxRuntimeExports.jsxs("section",{id:"home-phone-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Home"}),jsxRuntimeExports.jsx("p",{children:ht(lt.secondaryPhoneFormatted,"Home phone number not provided")})]})]})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:6,id:"address-item",children:jsxRuntimeExports.jsxs(Card$2,{id:"address-card",sx:{minHeight:"350px"},children:[jsxRuntimeExports.jsx(CardHeader$1,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SvgHome,{}),jsxRuntimeExports.jsx("h3",{className:"title",children:"Address"})]}),disableTypography:!0}),jsxRuntimeExports.jsxs(CardContent,{children:[jsxRuntimeExports.jsxs("section",{id:"residential-address-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Residential"}),mt(lt.address,"Residential address not provided")]}),jsxRuntimeExports.jsxs("section",{id:"postal-address-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Postal"}),mt(lt.postalAddress,xt(lt))]})]})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:6,children:jsxRuntimeExports.jsxs(Card$2,{id:"alternate-contact-card",sx:{minHeight:"350px"},children:[jsxRuntimeExports.jsx(CardHeader$1,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(SupervisorAccountOutlinedIcon,{color:"primary"}),jsxRuntimeExports.jsx("h3",{className:"title",children:"Alternate Contact"})]}),disableTypography:!0}),jsxRuntimeExports.jsxs(CardContent,{children:[jsxRuntimeExports.jsxs("section",{id:"alternate-contact-name-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Name"}),jsxRuntimeExports.jsx("p",{children:ht(`${ut.firstName} ${ut.lastName}`,"Alternate contact name not provided")})]}),jsxRuntimeExports.jsxs("section",{id:"alternate-contact-relationship-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Relationship"}),jsxRuntimeExports.jsx("p",{children:ht(ut.relationship,"Alternate contact relationship not provided")})]}),jsxRuntimeExports.jsxs("section",{id:"alternate-contact-mobile-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Mobile"}),jsxRuntimeExports.jsx("p",{children:ht(ut.mobilePhoneNumberLocalised,"Alternate contact mobile phone number not provided")})]}),jsxRuntimeExports.jsxs("section",{id:"alternate-contact-home-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Home"}),jsxRuntimeExports.jsx("p",{children:ht(ut.homePhoneNumberLocalised,"Alternate contact home phone number not provided")})]}),jsxRuntimeExports.jsxs("section",{id:"alternate-contact-email-section",className:"section",children:[jsxRuntimeExports.jsx("h5",{children:"Email"}),jsxRuntimeExports.jsx("p",{children:ht(ut.email,"Alternate contact email not provided")})]})]})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx(Alert,{id:"data-update-note",icon:jsxRuntimeExports.jsx(SvgInfo,{className:"icon-blue"}),severity:"success",children:"If you made changes to this information on the registration form, it will be updated as soon as it is reviewed by one of our patient services officers. For all other changes, please contact your clinic."})})]})})]})})},PatientDetailsContent$1=reactExports.memo(PatientDetailsContent),PatientDetails=()=>jsxRuntimeExports.jsx(MainLayout$1,{children:jsxRuntimeExports.jsx(PatientDetailsContent$1,{})}),PXPatientDetails=reactExports.memo(PatientDetails),Information=()=>jsxRuntimeExports.jsx(MainLayout$1,{children:jsxRuntimeExports.jsxs(Box,{className:"px-information-page-container",sx:{width:"100%"},children:[jsxRuntimeExports.jsx("div",{className:"px-information-banner-container",children:jsxRuntimeExports.jsx("h1",{className:"px-information-heading",children:"Information"})}),jsxRuntimeExports.jsx("div",{className:"px-information-content-outer-container","data-test-id":"information-container",children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:2,className:"px-information-content-inner-container",children:[jsxRuntimeExports.jsx(Grid,{item:!0,lg:3,md:6,sx:{width:"100%"},children:jsxRuntimeExports.jsx(ContentTile,{title:"Frequently Asked Questions",url:"/px/information/faq",image:faq,icon:faqIcon,testId:"faq-content-tile"})}),jsxRuntimeExports.jsx(Grid,{item:!0,lg:3,md:6,sx:{width:"100%"},children:jsxRuntimeExports.jsx(ContentTile,{title:"Radiotherapy",url:"/px/information/initial-consultation",image:ctSimulation,icon:radiotherapyIcon,testId:"radiotherapy-content-tile"})}),jsxRuntimeExports.jsx(Grid,{item:!0,lg:3,md:6,sx:{width:"100%"},children:jsxRuntimeExports.jsx(ContentTile,{title:"Chemotherapy",url:"/px/information/chemotherapy-initial-consultation",image:chemotherapy,icon:chemotherapyIcon,testId:"chemotherapy-content-tile"})})]})})]})}),FAQ_CONSTANTS={radiotherapy:{title:"Radiotherapy",name:"radiotherapy",image:ctSimulation},"attending-your-appointments":{title:"Attending Your Appointments",name:"attending-your-appointments",image:attendingYourAppointments},"while-on-treatment":{title:"While on Treatment",name:"while-on-treatment",image:whileOnTreatment},support:{title:"Support",name:"support",image:support}},FAQHome=()=>{const et={backgroundImage:`linear-gradient(rgba(46, 46, 46, 0.5), rgba(46, 46, 46, 0.5)), url(${faq})`},tt=useHistory(),rt=()=>tt.replace("/px/information");return jsxRuntimeExports.jsx(MainLayout$1,{clickLogoFn:rt,children:jsxRuntimeExports.jsxs("div",{className:"px-faq-home-container",children:[jsxRuntimeExports.jsx("div",{className:"px-faq-banner-container",style:et,children:jsxRuntimeExports.jsx("h1",{className:"px-faq-heading",children:"Frequently Asked Questions"})}),jsxRuntimeExports.jsx("div",{className:"px-faq-home-outer-container","data-test-id":"px-faq-home-container",children:jsxRuntimeExports.jsx(Grid,{container:!0,className:"px-faq-home-inner-container",children:Object.values(FAQ_CONSTANTS).map(nt=>jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:6,lg:3,style:{padding:"8px"},children:jsxRuntimeExports.jsx(ContentTile,{title:nt.title,url:`/px/information/faq/${nt.name}`,image:nt.image,testId:`${nt.name}-faq-content-tile`,titleClass:"faq-content-tile"})},nt.title))})}),DeviceUtilities.isDesktopDevice()&&jsxRuntimeExports.jsx("div",{className:"px-desktop-back-button",children:jsxRuntimeExports.jsx(Button,{id:"opx-faq-home-back",onClick:()=>tt.push("/px/information"),children:"Back"})})]})})},STATIC_CONTENT$2=[{id:1,questions:["What is radiation therapy?","Is radiation therapy the same as radiotherapy?","How does radiation therapy work?","How is radiation therapy given?","How many treatments do I need to have and how often?","Can radiation therapy treat my cancer?","Do I need to have surgery or other treatments as well?","Why is there a gap between having my planning scan and starting treatment?","I've had cancer before - can this affect my ability to have treatment his time?","Will this radiation therapy treatment cause cancer?","Is radiation therapy painful?","Will I feel anything?","What are the side effects of radiation therapy?","When will side effects start?","How long will side effects last?","Does it harm other organs?","How do you know if it's been correctly delivered?","How long does radiation therapy take?","Can it be given with other treatments e.g. chemo/immunotherapy?","Why do I need to have it daily?","What are the steps involved in starting radiation therapy?","Is radiation therapy safe?","What happens when my radiation therapy treatment is over?","I have diabetes/heart disease/other illness - can this affect treatment?"],answers:["Radiation therapy is the use of carefully targeted radiation e.g. x-ray beams that damages or destroys cancer cells to stop them from growing and multiplying.","Yes","Radiation damages or destroys the parts of cancer cells that make it grow and multiply in your DNA. It does this by breaking the DNA directly or making parts of the cell unstable which damages the DNA. Cancer cells are more sensitive to radiation therapy than healthy cells, this is why radiation therapy is an effective way to treat your cancer while minimising harm to your healthy tissue.","Radiation therapy is most often given from outside the body (external beam) using a machine that directs the radiation beam at the cancer. It can also be delivered from inside the body (brachytherapy) using radioactive material placed inside your body next to the cancer.","The length of a radiation treatment program depends on the type of radiation therapy chosen and the stage, size and location of the cancer. Some people require just a few sessions while others may require daily visits for a number of weeks. Breaking up the total prescribed dose into smaller daily doses allows maximum effect to cancer cells, whilst allowing healthy cells to recover.","Radiation therapy is an effective treatment for cancer and an effective therapy for shrinking and managing the disease. Success rates will depend on the type of cancer, its stage and its location.","Radiation therapy can be used on its own as the main treatment for your cancer, or it can be used  in combination with other treatments such as surgery, chemotherapy, immunotherapy or hormone therapy. Your doctor works closely with other specialists to determine the best plan of treatment for you and your type of cancer.","During this time, your radiation therapy team uses the pictures taken during your planning scan to map how they will direct the radiation into the cancer cells and avoid other areas as much as possible.","If you have had radiation therapy in the past, this may affect how much radiation therapy you can have now, if the treatments are in a similar area. Your doctor will look at your previous treatment record to determine if you can have further radiation therapy.","The chance of developing a second cancer due to treatment with radiation therapy is very small and depends on factors such as the area and type of cancer being treated. The benefits of treating your cancer with radiation therapy if recommended, far outweigh this potential small risk.","External beam radiation therapy is painless, you will not feel or see the radiation during treatment, it is similar to having an x-ray taken. Brachytherapy may have some discomfort when the implants are inserted, this is temporary and managed with simple pain relief medication. If you have pain related to your cancer or side effects of treatment, speak to your nurse or doctor who can help you.","You will not feel or see the radiation during treatment, it is similar to having an x-ray taken","New technology has significantly reduced the side effects of most radiation therapy treatment. The side effects that you may experience will depend on the area of the body you are having treated, the type of radiation therapy technique used and the dose prescribed.nMost side effects get better within a few weeks after treatment although some may last a bit longer. Your treating team will discuss your potential side effects with you, as well as how to manage them.","This depends on many factors such as the type of radiation therapy technique, dose and treatment plan and if you're having any other treatments such as chemotherapy. Most short-term side effects start between the first and second week of treatment, however late effects will happen well after treatment has finished.","Short-term side effects of treatment such as skin changes usually get better within a couple of weeks of finishing treatment. Treatment related fatigue can take a few months. Late effects may last years or be permanent.","Modern treatment techniques are very individualised and we take every precaution available to avoid healthy tissue but there's a risk that some healthy tissue will be within the treatment area in order to treat the targeted area properly.nAny associated side effects are usually temporary, but there may be a risk of ongoing effects which your treatment team will help you manage with an ongoing care plan. It's important to raise any concerns with your Radiation Oncologist (RO) before commencing treatment.","Each morning, our radiation therapists run a series of checks on the machine to verify that each treatment is administering the exact amount of radiation. The x-ray/ CT scan taken prior to each treatment ensure you are positioned correctly to receive treatment. The machine itself also has a series of safety checks to ensure that everything is running perfectly and our medical physicists run extensive checks on the machine monthly and annually.","Each treatment session typically lasts from 10 minutes up to 45 minutes depending on the type of treatment.","Yes, radiation therapy can be given at the same time as you are having other treatments such as chemotherapy or immunotherapy.","The total dose of radiation therapy needed to treat your cancer would cause too much harm to your body if it were given in a single treatment. Giving small doses daily allows cancer cells to be treated and gives time for healthy cells to recover. It also increases the chances of radiation reaching the cancer cells when they are in their most sensitive state.","If your Radiation Oncologist (RO) has recommended a course of radiation therapy, the next step is to have a x-ray/ CT scan that will be used to map how your individualised radiation therapy plan will be delivered. This can take up to a week for our radiation therapy team to finalise and can be longer for specialised treatments. Once the plan is complete and passes a series of quality and accuracy checks, you are ready to start. ","Administering any amount of radiation involves a small amount of risk. Rigorous daily quality checks and safety measures ensures that if the machine detects even the slightest issue, it will stop the radiation until all issues have been resolved.nAdditionally, modern radiation therapy techniques allow for highly precise treatment; we take exceptional care in fine tuning the dose, to target the required areas while avoiding the healthy surrounding tissue as much as possible.nIt's important to note that any radiation is only present when the machine is on and may only be for 30 seconds of a 10 minute appointment.","When you've finished your course of radiation therapy treatment, you may need to attend follow up appointments with your Radiation Oncologist (RO) and/or nurse. These appointments may be in person or through telehealth and will be organised in discussion with you towards the end of treatment.","Your doctor and nurse will ask you about past medical history. Some conditions may affect how quickly your body recovers from any side effects you may develop, but it will not affect your radiation treatment."],category_id:"radiotherapy"},{id:2,questions:["What if I have another appointment at the same time?","What parking/transport options are available and what costs?","Can appointments be at the same time every day?","What happens if I miss a treatment?","Can I eat before treatment?","What should I do to prepare my skin before my treatment begins?","Do I need to undress for treatment?","What if I need to move or cough during treatment?","Will I need a mask or other special equipment?","Are we allowed to use electronic devices in the department? Eg. Phones","Does it matter if I fall asleep?","Do I have to take jewellery off?","Do I get a cannula?","Why do they take an x-ray or CT scan before my treatment each day?","I just had a CT/PET scan, why do I need to have another one?"],answers:["Let our team know as early as possible of any other appointments so we can accommodate these in your radiation therapy schedule. Speak to your Centre's administration team as soon as you are aware of conflicting appointments.","Each Centre has parking availability. As access to this differs for each Centre, we ask that you contact your treating Centre to find out what parking is available to you.","We do our best to meet your needs with appointment preferences, however we cannot guarantee that appointments will be exactly the same every day.","Radiation therapy is most effective when a course is completed as prescribed, however on occasion, they may be a need to miss or delay a treatment session. Whether or not this missed treatment needs to be made up another time depends on many factors and will be determined by your Radiation Oncologist (RO) in discussion with you.","Patients having treatment to certain areas of the body e.g. stomach, may be asked not to eat or drink for some time before each treatment e.g. fasting. Your doctor or nurse will advise if you need to fast, otherwise you may eat and drink as normal before treatment.","Taking care of your skin during radiation therapy treatment is important. We recommend the use of a pH neutral moisturiser and body wash. Please speak to your treating nurse for more guidance.","Depending on the treatment area, you may need to remove certain items of clothing. This allows Radiation Therapists to see positioning marks that are used to line you up in the correct position.","Involuntarily movements like coughing are unavoidable and are no cause for concern. As part of your treatment, your Radiation Therapists will position you in a way that's stable and comfortable to enable you to keep as still as possible.nIt's important not to move your arms to cover your mouth or sit up, but if you feel you need to sit up, or your coughing will not subside, simply wave your hand and your Radiation Therapists will pause treatment to enter the room to assist you. Once the coughing subsides, you will be re-set into position, and the treatment will recommence.","For treatment to the head and neck you'll likely need a mask to help keep you in the correct position for your treatment. For most other treatments, special mats and cushions may be used for comfort and positioning. There are also other treatment techniques that require specialist equipment which your treatment team will explain, if they are relevant to your treatment.","Yes, you are allowed to use electronic devices like your mobile phone in the waiting areas, just not while your treatment is being delivered.","No, unless you move while asleep. Your Radiation Therapist team will monitor your treatment on a camera from outside the room. If you move they will pause treatment and reposition you before delivering any more radiation.","You may be asked to take your jewellery off if it's in the area being treated or in the set up/measurement fields.","You do not need a cannula for radiation therapy treatment. If you require Intravenous contrast for your planning scan, or if you are having Theranostics, you may require a cannula. Contrast is a fluid that is injected into a vein during your scan that makes it easier to see your blood vessels, internal organs and tissue.","It's very important that you're positioned the same way each day for your treatment sessions to make sure that the correct area is treated. Your team of Radiation Therapists will use measurements to align you under the machine and confirm that you're in the correct position by taking a quick x-ray/CT scan while you're on the treatment machine.","Scans that are done when investigating your diagnosis give your doctors information about your cancer to help decide how to treat it. The scans done as part of your radiation therapy planning help to guide the accurate and effective delivery of your radiation therapy treatment plan. In some cases, your doctor may ask for copies of your recent scans so we can compare the images to help to mark out the areas we want to treat."],category_id:"attending-your-appointments"},{id:3,questions:["Can I drive during radiation therapy treatment?","Can I be around pregnant women and children?","Do I need to use contraception?","Can I have flu or other vaccinations whilst having radiation therapy treatment?","Can I go to work during my radiation therapy treatment?","Will I lose my hair?","Will treatment affect my sex life?","Will treatment affect my fertility?","Will I be radioactive?","Will radiation therapy affect/reduce my immune system?","What should I do to prepare my skin before my treatment begins?"],answers:["Yes, it's fine to drive after radiation therapy treatment. However if your doctor or nurse has told you not to drive due to a medical condition, potential side effects of treatment or medication, please follow their instruction.","If you are being treated with external beam radiation therapy, it is safe to be around pregnant women and children as the radiation does not stay in your body. If you are being treated with low dose Brachytherapy (inside the body), you will be radioactive for a short while and may need to restrict some contact. Your treating team will let you know what restrictions you need to take and for how long.","Yes, you should use contraception whilst undergoing cancer treatment as certain treatments can be harmful to an unborn baby. Your doctor or nurse can advise you on the most suitable type of contraception for you and how long you should use it for.","You can have the flu vaccination whilst having radiation therapy treatment. Most other vaccinations such as tetanus are also okay to have during radiation therapy treatment. Some vaccinations may not be appropriate, especially if you're also having chemotherapy. Speak to your doctor if you're considering having vaccinations other than the flu vaccination during treatment.","You can continue to work if you feel well enough. As your treatment course continues, you may find you feel more tired and lacking in energy than usual, you may need to consider adjusting your work schedule (where possible) at this time.","Radiation therapy only affects the area being treated. As such, you'll only lose hair if it's in the treatment area. This loss may be temporary or permanent depending on the amount of radiation the area is receiving.","Your desire to have sex may decrease during treatment due to factors such as fatigue or anxiety. Some side effects of treatment may also make sexual activity more uncomfortable. Your doctor or nurse can discuss this with you, as well as ways to manage it.","Some cancer treatments can affect your fertility, making it difficult or not possible to get pregnant. Prior to starting any treatment, your doctor will talk to you about your fertility risks and if options such as egg or sperm freezing is an appropriate option for you.","Patients having the most common type of radiation therapy, External Beam Radiation Therapy, will not be radioactive at any time therefore it's safe for you to be around loved ones, including pregnant women, children and the elderly.nFor patients having low dose rate (LDR) Radiation Therapy where permanent radioactive sources are inserted, there's usually a need to observe simple precautions for a few days or weeks after the procedure. Detailed instructions will be provided by your nurse or doctor if this is relevant to you.","Radiation therapy has a limited risk to the immune system, the main risk is the potential introduction of germs through broken skin associated with skin reactions. Other treatment modalities such as chemotherapy can have a greater impact on your immune system and should be discussed with your doctor or nurse if you are having combined treatment.","Taking care of your skin during radiation therapy treatment is important. We recommend the use of a pH neutral moisturiser and body wash. Please speak to your treating nurse for more guidance."],category_id:"while-on-treatment"},{id:4,questions:["What about my physical and emotional wellbeing?","Who can I talk to if I am not coping?"],answers:["It's important that you speak with us regarding any concerns you may have with your radiation treatment. We're here to help and listen and we can also offer referrals to other support groups.","You can speak to your treating doctor, nurse or you can call the Cancer Council support hotline on 13 11 20."],category_id:"support"}],FAQContent=et=>{const[tt,rt]=reactExports.useState({formattedCategoryHeading:"",headerBackgroundImage:""}),{data:nt,pageCategory:lt,history:ut}=et;reactExports.useEffect(()=>{const pt={headerBackgroundImage:FAQ_CONSTANTS[lt].image,formattedCategoryHeading:FAQ_CONSTANTS[lt].title};rt(pt)},[]);const dt={backgroundImage:`linear-gradient(rgba(46, 46, 46, 0.5), rgba(46, 46, 46, 0.5)), url(${tt.headerBackgroundImage})`};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"px-faq-page-container",children:[jsxRuntimeExports.jsx("div",{className:classNames$1("px-faq-header-container",{[`${lt.split(" ").join("-")}`]:lt}),style:dt,children:jsxRuntimeExports.jsx("h1",{className:"px-faq-heading",children:tt.formattedCategoryHeading})}),jsxRuntimeExports.jsx("div",{className:"px-faq-list-container",children:nt.questions.map((pt,ht)=>jsxRuntimeExports.jsx(QAAccordion,{title:pt,content:nt.answers[ht]},pt))}),DeviceUtilities.isDesktopDevice()&&jsxRuntimeExports.jsx("div",{className:"px-desktop-back-button",children:jsxRuntimeExports.jsx(Button,{onClick:()=>ut.push("/px/information/faq"),children:"Back"})})]})})},FAQContent$1=withRouter(FAQContent),FAQContentWrapper=()=>{const tt=useLocation().pathname.split("/"),rt=tt[tt.length-1],nt=STATIC_CONTENT$2.find(lt=>lt.category_id==rt);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:nt&&jsxRuntimeExports.jsx(FAQContent$1,{data:nt,pageCategory:rt})})},FAQContentContainer=et=>{const tt=useHistory(),rt=()=>tt.replace("/px/information/faq");return jsxRuntimeExports.jsx(MainLayout$1,{clickLogoFn:rt,children:jsxRuntimeExports.jsx("div",{className:"px-faq-content-page-container page-container",children:jsxRuntimeExports.jsx(FAQContentWrapper,{})})})},PXFAQContentContainer=withRouter(FAQContentContainer),STATIC_CONTENT$1=`
# GenesisCare Patient Portal



## Terms and Conditions



These Terms and Conditions (**Terms**) apply to the GenesisCare Patient Portal (**Portal**) and any services used or accessed through the Portal.



These Terms form part of the agreement between you and the GenesisCare Group (hereinafter referred to as "GenesisCare", "we", "our" or "us"), the operator of a platform that gives you, the user, access to our Portal. Our Portal offers many features such as access to your appointments, tailored content relating to your treatment plan and your care profile.



Any reference to “GenesisCare” in these Terms includes the GenesisCare Group which comprises all related bodies of Genesis Care Pty Ltd ACN 137 188 464 as that term is defined under the Corporations Act 2001 (Cth).



## Acceptance



By using the Portal, you are deemed to accept these Terms which govern GenesisCare’s relationship with you in relation to the Patient Portal.



GenesisCare may change the content of the Portal at our discretion and without notice. By continuing to use the Portal, you accept these Terms as they apply as amended from time to time.



## Your use of the Portal



The Portal is an internet application that provides patients with a secure means to view parts of his/her electronic medical records. Use of the Portal is optional. Your username and password protect the confidentiality of your health information.



You agree that the following security measures are in place for the protection of your privacy:



- **Unique Username and Password.** You will define your own unique username and password in order to access the Portal. You agree not to share your username and password to the Portal with anyone else. You acknowledge your understanding that by sharing your unique username and password, another person may be able to see your health information and communications on the Patient Portal.
- **Encryption.** Information transmitted in the portal is encrypted via https connection(s) with single-socket layer (SSL) certificates.
- **Multi-Factor Authentication.** Communications in the Portal are secured by SSL encryption and the option of multi-factor authentication (MFA) via SMS to your phone is given to patients for added security. You understand that you may opt to “remember me” which will de-activate MFA for seven (7) days from your last login for your convenience, but that in doing so, you are reducing the level of security on your account.
- **Temporary suspension.** In the case where your phone is lost, misplaced or stolen, you agree to inform us as soon as reasonably practicable. For your protection we will suspend access to your Portal account until your account security can be verified.
- **Access requirements.** When you are provided access to define your unique username and password by GenesisCare, you are authorised to access and use the Portal in accordance with these Terms and in compliance with all applicable laws, rules and regulations.
- **Responsibility for username and password.** You are solely responsible for any activities related to your username and password. You will immediately report:
  - any inappropriate access to your account
  - any loss or disclosure of your username or password
  - any suspected or actual inappropriate access to or disclosure of treatment-related information or patient-related files
- **Right to revoke username and password.** GenesisCare reserves the right to revoke your access to the Portal at any time in its sole discretion, including to protect your privacy. You will be notified if we discontinue your access to the Portal.
- **Environmental appropriateness.** You are solely responsible for choosing an appropriate environment from which to log into the Portal.
- **Logout.** You shall always log out of the Portal before leaving your computer.
- **Wireless.** If you access the Portal using a wireless device, you are solely responsible for the security of the session.
- **Portal Security.** The Portal has security measures in place to help protect against the loss, misuse, or alteration of information under our control. These measures include using a secured messaging service when we send you personal information electronically. Despite these measures, the confidentiality of any communication or material transmitted to or from us via the Portal by Internet or e-mail cannot be guaranteed.
- **Site Visitor data.** GenesisCare monitors the Portal including from time to time frequency of usage, issues with usage and other specific usage.
- **Evaluation and research.** We may periodically ask users to complete surveys asking about their experiences with features of the Portal. Our surveys may ask visitors for demographic information such as age, gender, and education, but will not request in such surveys that users provide specific information about any medical condition. We use survey information for research and quality improvement purposes, including helping GenesisCare improve the Patient Portal. In addition, users giving feedback may be individually contacted for follow-up due to concerns raised during the course of such evaluation.
- **Disclosure.** We may disclose personal information if required or permitted by law.



The Portal is not intended to replace your doctor nor is it for use in emergency situations. The information contained in the Portal is for your general information and not intended to replace, delay the seeking out of or otherwise affect your medical advice. You should not stop or change any course of treatment ordered by your doctor before asking him or her, and you should not take any action based on the information provided in the Portal without consulting a doctor or other health care provider first.



The materials and contents contained in the Portal are GenesisCare’s property or the property of the persons who have granted us an applicable licence (this also applies to any relevant third-party software forming part of the Portal). We grant you the right to use these materials and content, but only for the purposes of using the Portal in accordance with these Terms.
You acknowledge that our ownership and centralised management of medical records and other health-related and scheduling information of patients who receive medical services at GenesisCare is necessary to support the proper and professional operation of GenesisCare’s services to patients, including to ensure continuity of patient care, compliance with the requirements of the Privacy Act 1988 (Cth) (Privacy Act) and to manage risk.



You should not disregard professional advice purely due to the information contained in the Portal. Whilst we provide general health information, the circumstance of each individual will differ. You should carefully evaluate the available information and exercise your own judgement while using the Portal.



## Disclaimer of liability



Although GenesisCare has taken due care in the compilation of the information on the Portal, its contents may contain errors, faults and inaccuracies, and may not be complete or current. Accordingly, the information and the Patient Portal is provided ‘as is’ without any express or implied warranty of any kind (including without limitation, as to fitness for purpose or that use will be uninterrupted or error-free), and the Portal is used at your own risk.



To the maximum extent permitted by law, GenesisCare expressly disclaims all liability (including negligence) for any loss, damage, injury, expense or costs incurred by you accessing or relying on the information of the Portal.



## Copyright and trademarks



We grant you the right to personally access and use the Portal. You are prohibited to transfer this right to anyone else, or to sell, give away or transfer your User Account to anyone else. Your right to access the Portal does not preclude us granting other persons the right to access the Portal.



In return for your warranty to comply with these Terms, we grant you a limited, non-transferable, non-sublicensable, personalised, non-exclusive, revocable right to access the Portal under the conditions set forth in these Terms or the Privacy Policy.



The Portal may contain trademarks owned by GenesisCare and third parties. You may not display or use in any manner any trademarks featured without the prior written permission of GenesisCare.
If, and to the extent that, our Portal contains links to other websites or resources operated by third parties, these links are to be deemed as being provided for your information only.



We are unable to influence the content of such websites or resources provided by third parties, and we may not be held liable for the content of information or such websites. We may not be held liable for any financial or physical damages that you may incur as a result of, or in connection with, the use of such websites or resources.



## Patient Portal



The Portal includes text, software code, scripts, graphics, displays and others.



Due to the nature of the internet and the given technology, we are unable to guarantee that you will be able to use the Portal at all times without any interruption and without delay or faults, and that the Portal will at all times meet your expectations. We can therefore make no assurance with respect to the performance or availability of the Portal.



## User account



You may access the Portal directly via the web-based application.



After accessing the Portal, you can set up a user account with a username (email or mobile phone number) and password. When you register your user account or provide us with other information, you are also declaring that the information provided to us is correct and complete. In the event of any change in the information at a later time, you declare that you will promptly notify us of such changes by updating the information.



## Collection of personal information



We are committed to protecting the personal information you share with us.



By using the Patient Portal, you acknowledge that GenesisCare will collect your name and contact details to enable you to log in to the Portal and verify your identity. If you do not provide us with this information, we will not be able to provide you with secure access to the Portal.



In addition, if a user visits any of our websites to read, browse or download information, our system may record information such as the user’s IP address, browser type, domain names, access times and referring website addresses. This information is used by GenesisCare for the operation of the service, to maintain quality of the service, and to provide general statistics regarding use of our websites. Our websites may also use cookies to help identify and interact more effectively with users’ devices. A cookie is a text file that is placed on a user’s device by a web page server. Cookies cannot be used to run programs or deliver viruses to your computer. The cookie helps us to maintain the continuity of users’ browsing sessions and remember their details and preferences for when they return. You have the ability to accept or decline cookies. Most web browsers automatically accept cookies, but you can usually modify your browser setting to decline cookies if you prefer. If you choose to decline cookies, you may not be able to fully experience the interactive features of our websites.



For more information about how we handle your personal information, please refer to our Privacy Policy at [www.genesiscare.com/au/privacy-policy](https://www.genesiscare.com/au/privacy-policy). Our Privacy Policy also contains information about how you can make a request to access the personal information we hold about you and make corrections to it, as well as who to contact if you have a privacy enquiry or complaint.



## Closing your account



If you want to discontinue your use of the Patient Portal, you agree to inform GenesisCare of your request to close your account. You understand that if you do this, you will no longer be able to use or access the Portal and your account on the Portal will be closed. You understand that any information stored in the Patient Portal at the time your account is closed and will be archived in our database.



## Questions



If you would like to contact us regarding these Terms or any other document mentioned in them, please email us at [patientportal@genesiscare.com](mailto:patientportal@genesiscare.com)
`;class TermsAndConditions extends reactExports.Component{render(){const tt=({...rt})=>jsxRuntimeExports.jsx("a",{...rt,target:"_blank"});return jsxRuntimeExports.jsx("div",{className:"px-tnc-page-container",children:jsxRuntimeExports.jsx(Markdown,{options:{overrides:{a:tt}},children:STATIC_CONTENT$1})})}}const CONTENT_STEPPER_LINKS=[{linkText:"Initial consultation",href:"/px/information/initial-consultation"},{linkText:"Out-of-pocket costs and Medicare",href:"/px/information/medicare-cost"},{linkText:"Patient education with a Nurse",href:"/px/information/nurse-education"},{linkText:"CT and Simulation",href:"/px/information/ct-simulations"},{linkText:"Your first treatment",href:"/px/information/first-treatment"},{linkText:"Remaining treatments",href:"/px/information/remaining-treatments"},{linkText:"Potential side effects",href:"/px/information/side-effects"},{linkText:"Care after treatment",href:"/px/information/treatment-aftercare"}],CHEMO_STEPPER_LINKS=[{linkText:"Initial consultation",href:"/px/information/chemotherapy-initial-consultation"},{linkText:"Out-of-pocket costs and Medicare",href:"/px/information/chemotherapy-medicare-cost"},{linkText:"Imaging and pathology",href:"/px/information/chemotherapy-imaging-pathology"},{linkText:"Treatment review",href:"/px/information/chemotherapy-review-treatment"},{linkText:"Treatment",href:"/px/information/chemotherapy-treatment"},{linkText:"Remaining treatments",href:"/px/information/chemotherapy-remaining-treatments"},{linkText:"Care after treatment",href:"/px/information/chemotherapy-care-after-treatment"}],MAGIC_STRINGS={CHEMOTHERAPY:"Chemotherapy",RADIATION_THERAPY:"Radiation Therapy"};class Content extends reactExports.Component{constructor(){super(...arguments);Nr(this,"renderNextURL",()=>{const{setContentShown:rt,pageCategory:nt}=this.props,lt=window.location.pathname,{CHEMOTHERAPY:ut}=MAGIC_STRINGS;let dt;const pt=nt===ut.toLowerCase()?CHEMO_STEPPER_LINKS:CONTENT_STEPPER_LINKS;return pt.map((ht,mt)=>{ht.href==lt&&(mt+1<=pt.length?dt=pt[mt+1]:dt=void 0)}),dt?jsxRuntimeExports.jsxs(Link$2,{to:dt.href,children:[jsxRuntimeExports.jsx("span",{children:dt.linkText}),jsxRuntimeExports.jsx(ChevronRightIcon,{color:"primary",className:"icon"})]}):jsxRuntimeExports.jsxs("div",{className:"last-page-mobile-breadcrumb",onClick:()=>{rt(!1)},children:[jsxRuntimeExports.jsx("span",{children:"Return to information list"}),jsxRuntimeExports.jsx(ChevronRightIcon,{color:"primary",className:"icon"})]})})}componentDidUpdate(){const{contentShown:rt}=this.props,nt=document.getElementsByClassName("px-content-page-container")[0];nt&&rt&&(nt.scrollTop=0)}render(){const{data:rt,contentShown:nt}=this.props,lt={backgroundImage:`linear-gradient(rgba(46, 46, 46, 0.5), rgba(46, 46, 46, 0.5)), url(/media/${rt?rt.coverImage.split("_")[0]:""}.jpg  )`,backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"},ut=({...dt})=>jsxRuntimeExports.jsx("a",{...dt,target:"_blank"});return jsxRuntimeExports.jsxs("div",{className:classNames$1("px-content-page-container",{"content-shown":nt}),children:[rt&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"header",style:lt,children:jsxRuntimeExports.jsx("h1",{children:rt.pageTitle})}),jsxRuntimeExports.jsx("div",{className:"what-to-expect",children:jsxRuntimeExports.jsx("div",{className:"content",children:jsxRuntimeExports.jsx(Markdown,{options:{overrides:{a:ut}},children:rt.pageContent})})}),jsxRuntimeExports.jsxs("div",{className:"tips",children:[jsxRuntimeExports.jsxs("div",{className:"title-container",children:[jsxRuntimeExports.jsx(SvgTips,{className:"icon"}),jsxRuntimeExports.jsx("h2",{children:"Tips"})]}),jsxRuntimeExports.jsx("div",{className:"content",children:jsxRuntimeExports.jsx(Markdown,{options:{overrides:{a:ut}},children:rt.tipsSectionContent})})]})]}),jsxRuntimeExports.jsx("div",{className:"next-page",children:this.renderNextURL()})]})}}const STATIC_CONTENT=[{id:2,page_id:"medicare-cost",pageTitle:"Out-of-pocket cost and Medicare",pageContent:`## What to expect?
Any out-of-pocket costs associated with your treatment will be discussed with you before starting treatment.
An accounts staff member will talk you through the treatment fees, payment options and Medicare reimbursement process.`,tipsSectionContent:`Please feel free to ask us any questions you may have.
You’re welcome to bring someone with you or write notes in a journal.`,coverImage:"content/images/medicare-cost_kjDdOtv.jpg",language:"en"},{id:6,page_id:"side-effects",pageTitle:"Side effects",pageContent:`## What to expect?
Like most medical treatments, your treatment can cause side effects depending on the type of cancer and where on/in your body it’s located.
Side effects vary from person to person, so it’s difficult to know how you’ll be affected, some people may experience more side effects towards the end of the course of treatment.
Side effects may last a few weeks or longer; others may be permanent; your Radiation Oncologist will discuss side effects with you and how to manage them so your experience is as comfortable as possible.
If you are undergoing radiation therapy treatment, you may experience some or all of these common side effects:
- Tiredness
- Skin changes and inflammation
- Stress, anxiety`,tipsSectionContent:`If you are concerned about side effects or feel they are not improving, please contact your care team at your treatment centre.
Muscle mass and bone mineral density, which can be affected by some cancer treatments, can be maintained or even increased with exercise - talk to your Radiation Oncologist or nurse about how exercise physiology may benefit you.
We can provide you with information about allied health services to help you during and after your treatment.`,coverImage:"content/images/side-effects_tNyTW99.jpg",language:"en"},{id:7,page_id:"remaining-treatments",pageTitle:"Remaining treatments",pageContent:`## What to expect?
The rest of your radiation therapy appointments will be like your first treatment. The number of treatments depends on your individual plan.
During your treatment you will get to know our friendly team. Please let them know if you have any concerns or problems’.
After your daily treatments you will be able to go about your usual activities. We will provide you with any self-care tips to take home with you.
We will monitor how you are feeling during treatment and support you when you need it.`,tipsSectionContent:`Our team aim to minimise your time at our Centre, however occasionally there may be delays. In the event of a delay, our team will keep you as up to date as possible.
Our team can offer you a variety of different music to choose from. Listening to music while you’re receiving treatment can help you relax.
If at any time during your treatment you feel uncomfortable you can tell your Radiation Therapist through the intercom system, or raise your hand and they can stop the treatment and come into the room to speak to you.
It could be beneficial to keep a journal throughout your treatment to note any questions, concerns or side effects that you might be experiencing.`,coverImage:"content/images/remaining-treatments_fnM04Zs.jpg",language:"en"},{id:8,page_id:"treatment-aftercare",pageTitle:"Care after treatment",pageContent:`## What to expect?
We don’t leave you at the end of your treatment; we are here for you as long as you need us.
After your treatment, we’ll arrange follow-up appointments to check on your progress. If you have questions before or between appointments, please contact our team.
We are here to discuss any health issues or questions you might have post-treatment.
Your follow up care plan will include checking the results of your treatment and arranging any further treatment, if required.`,tipsSectionContent:`You might want to bring someone with you or keep a journal with you to take note of discussions around:
- When you can get back to your normal lifestyle
- How often you will need to see your care team after treatment
- Symptoms or side effects to keep an eye out for and ways to help manage these
- Any special dietary and physical activity requirements you might have`,coverImage:"content/images/treatment-aftercare_M1YJAQk.jpg",language:"en"},{id:10,page_id:"chemotherapy-medicare-cost",pageTitle:"Out-of-pocket costs and Medicare",pageContent:`## What to expect?
Any out-of-pocket costs associated with your treatment will be discussed with you prior to starting treatment.
`,tipsSectionContent:`Please feel free to ask questions. Again, you can bring someone with you and write notes in a journal
`,coverImage:"content/images/medicare-cost_dOq4nMu.jpg",language:"en"},{id:11,page_id:"chemotherapy-imaging-pathology",pageTitle:"Imaging and pathology",pageContent:`## What to expect?
In order to develop your treatment plan, you may be required to attend a few appointments. These could include a visit to an imaging department and pathology centre for your blood tests
`,tipsSectionContent:`You will be provided with these request forms at the initial consult. These services are available close to our centres.
`,coverImage:"content/images/ct-simulations_0e8LRvg.jpg",language:"en"},{id:12,page_id:"chemotherapy-review-treatment",pageTitle:"Treatment review",pageContent:`## What to expect?
Prior to receiving your cycle of treatment, your medical oncologist will review your results and confirm your treatment plan.
A nurse will also be available to discuss any concerns you may have.
`,tipsSectionContent:`Please feel free to ask any questions health related or otherwise. It’s normal to feel anxious. Let the team know how you are feeling.
`,coverImage:"content/images/treatment-review_oOCbjA6.jpg",language:"en"},{id:13,page_id:"chemotherapy-treatment",pageTitle:"Treatment",pageContent:`## What to expect?
The nursing team will deliver your treatments, which can be given intravenously or as injections. This can last between 1 to 6 hours. You will be required to stay within our centre for this time. The nursing team will monitor and provide care during your treatment.
`,tipsSectionContent:`You may be in the chemotherapy chair for a few hours so bring a book, iPad or a friend to help pass the time.
`,coverImage:"content/images/nurse-education_qtJ8xxv.jpg",language:"en"},{id:14,page_id:"chemotherapy-remaining-treatments",pageTitle:"Remaining treatments",pageContent:`## What to expect?
For your remaining treatments, you will be required to have repeat blood tests and treatment reviews with the medical oncologist and nurse.
`,tipsSectionContent:`We aim to get you familiar with the friendly staff and our process as quickly as possible. Please feel free to ask questions at any time
`,coverImage:"content/images/remaining-treatments_Pq12jY4.jpg",language:"en"},{id:15,page_id:"chemotherapy-care-after-treatment",pageTitle:"Care after treatment",pageContent:`## What to expect?
We don’t leave you at the end of your treatment; we are here for you as long as you need us.
After your treatment, we’ll arrange follow-up appointments to check on your progress. If you have questions before or between appointments, please contact our team.
We are here to discuss any health issues or questions you might have post-treatment.
Your follow up care plan will include checking the results of your treatment and arranging any further treatment, if required
`,tipsSectionContent:`You might want to bring someone with your or keep a journal with you to take note of discussions around:
- When you can get back to your normal lifestyle
- How often you will need to see your care team after treatment
- Symptoms or side effects to keep an eye out for
- Any special dietary requirements you might have
`,coverImage:"content/images/treatment-aftercare_tzaNMuP.jpg",language:"en"},{id:1,page_id:"initial-consultation",pageTitle:"Initial consultation",pageContent:`## What to expect?
Before treatment starts, your radiation oncologist will explain your diagnosis, the treatment process, options and potential side-effects.
They will ask you some basic questions about your medical history and lifestyle, and allow you to ask any questions or raise concerns.
If you have any appointments, commitments, or family engagements coming up, please tell us so that we can build your care plan around them.`,tipsSectionContent:`It’s a good idea to bring someone with you to consultation or keep a journal to help you remember what the doctor says.
Please refer to local COVID-19 restrictions regarding visitors.
Some of our centres offer allied health support such as massage, psychology and exercise physiology, so make sure to speak to our friendly staff at the clinic to find out on how you can access these services.
If you have any further questions on how to get to the centre, please see the contact details on the appointments page of this portal.
View [‘Our doctors’](https://www.genesiscare.com/au/our-doctors/) page to find out more about your care team before coming in for your first consultation.`,coverImage:"content/images/initial-consultation_1Fv3hVr.jpg",language:"en"},{id:3,page_id:"nurse-education",pageTitle:"Nurse education",pageContent:`## What to expect?
A nurse will assess your overall health, answer any questions you may have and give you advice on how to manage side-effects or symptoms you may experience.
The nursing team will refer you to appropriate allied health or support services.`,tipsSectionContent:`Our website has helpful information about cancer and types of treatment available. Visit our website at: [GenesisCare - Cancer Information](http://www.genesiscare.com/au/condition/cancer/)
If you have any concerns, please let the nurse know.`,coverImage:"content/images/nurse-education_7g7R7uG.jpg",language:"en"},{id:4,page_id:"ct-simulations",pageTitle:"CT and simulation",pageContent:`## What to expect?
To see the CT simulation process, here is a link to watch a [‘Having a CT scan’](https://vimeo.com/192064322) video.
Your Radiation Therapist will explain the CT simulation process and answer any questions you may have.
They will help you into position for your CT scan on the treatment bed and record your position details to deliver your treatment most accurately.
To be able to replicate your treatment daily, there may be small permanent skin ink markers the size of a dot, put onto your skin. These are very small and difficult to see.
Your Radiation Oncologist will prescribe the best treatment for you. A treatment plan will be developed by our specialist Radiation Therapists and approved by your Radiation Oncologist before you start treatment.`,tipsSectionContent:`People can feel worried, concerned, or anxious, please contact our Centre and let us know how you are feeling and we can help.
The room temperature is set to 20°C so please ask for a blanket if you feel cold.
Please make sure that you wear, loose and comfortable clothing. You may be asked to change into a gown.
The bed surface is hard, this ensures there is minimal movement and enables many different types of treatment to be given safely. The Radiation Therapist will ensure you are comfortable, and your treatment position is easily reproducible.
We are here to talk about any concerns you may have and can provide other options if necessary.
The time between your CT Simulation appointment and your first treatment may take up to 2 weeks as your Radiation Therapy Team is working to create your tailored treatment plan.`,coverImage:"content/images/ct-simulations_KtGcnZa.jpg",language:"en"},{id:5,page_id:"first-treatment",pageTitle:"Your first treatment",pageContent:`## What to expect?
You will be positioned on the treatment bed in the same position as your CT scan, but this time you will receive radiation treatment, guided by your Radiation Therapists.
Your Radiation Therapist may take an x-ray image or scan to check your position is correct before treatment.
The time allowed for treatment is usually between 10-20 minutes. Most of this time is taken to ensure you are in the perfect position for treatment. The treatment beam itself is only on for 1-2 minutes and is painless.
During this time the Radiation Therapist will leave the room. However, they will be monitoring you on a television screen and intercom system. You can either speak out or raise your hand at any time if you need to.
Your Radiation Therapists will help you through this process so you feel as comfortable as possible.`,tipsSectionContent:`Please take the time to watch the [‘What is radiation therapy’](http://www.genesiscare.com/au/treatment/cancer/radiation-therapy/) video on our website to help you better understand the treatment and know what to expect.
If you have any questions or concerns, please ask one of our friendly staff.`,coverImage:"content/images/first-treatment_OuGxFuv.jpg",language:"en"},{id:9,page_id:"chemotherapy-initial-consultation",pageTitle:"Initial consultation",pageContent:`## What to expect?
Before treatment commences, your medical oncologist will explain the treatment process, treatment options and any potential side effects. You will receive a care plan tailored to your needs.
A nurse will also be present to assess your overall health status, assist with any questions you have and help with any symptom management or side effects throughout your course of treatment.`,tipsSectionContent:`It is a good idea to bring someone with you to the initial appointment and keep a journal to help you remember what the doctor says.
Please refer to local COVID-19 restrictions regarding visitors.
Take this opportunity to also ask your doctor about options such as scalp cooling.`,coverImage:"content/images/initial-consultation_qjTlWex.jpg",language:"en"}];let ContentWrapper$1=class extends reactExports.Component{render(){const{match:tt,contentShown:rt,setContentShown:nt}=this.props,{pageId:lt}=tt.params,ut=STATIC_CONTENT.find(dt=>dt.page_id==lt);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(Content,{data:ut,contentShown:rt,setContentShown:nt,pageCategory:lt?lt.split("-")[0]:void 0}),!ut&&jsxRuntimeExports.jsx("div",{children:"Error!"})]})}};const routedComponent$6=withRouter(ContentWrapper$1);class ContentContainer extends reactExports.Component{constructor(rt){super(rt);Nr(this,"setContentShown",rt=>{this.setState({contentShown:rt})});this.state={contentShown:!1}}render(){const{match:rt}=this.props,{pageId:nt}=rt.params,{contentShown:lt}=this.state,{CHEMOTHERAPY:ut,RADIATION_THERAPY:dt}=MAGIC_STRINGS,pt=nt?nt.split("-")[0]:void 0,ht=pt&&(pt===ut.toLowerCase()?ut:dt);return jsxRuntimeExports.jsx(MainLayout$1,{clickLogoFn:()=>{this.state.contentShown?this.setContentShown(!1):this.props.history.push("/px/information")},children:jsxRuntimeExports.jsx("div",{className:"page-container width-contained",children:jsxRuntimeExports.jsxs("div",{className:"px-content-inner-container",children:[jsxRuntimeExports.jsx(Stepper$2,{links:ht===ut?CHEMO_STEPPER_LINKS:CONTENT_STEPPER_LINKS,onStepperButtonClick:()=>{lt||this.setContentShown(!0)},basePath:"",headerTitle:ht}),jsxRuntimeExports.jsx(routedComponent$6,{contentShown:lt,setContentShown:this.setContentShown})]})})})}}const DEFAULT_DASHBOARD$1="/px/appointments",PAGE_TITLE$1="Welcome!",COUNTER_DURATION=6e4,LOCKOUT_DURATION=COUNTER_DURATION*5,USERNAME_TITLE="Email Address",PASSWORD_TITLE="Password",LOGIN_ERROR="Email or password was incorrect!",LOGIN_RATE_LIMIT_MESSAGE="Maximum login attempts reached, you can try again in <n_minutes>.",LOGIN_RATE_LIMIT_MINUTES=5,GC_PATIENT_EMAIL="patientportal@genesiscare.com",API_ENDPOINT_LOGIN_PATH="/server/patient/auth/login",API_ENDPOINT_TRUSTED_AGENT_PATH="/server/patient/auth/trusted_agent",PatientLogin=()=>{const[et,tt]=React$4.useState(!1),[rt,nt]=React$4.useState(!1),[lt,ut]=React$4.useState(!1),[dt,pt]=React$4.useState(!1),[ht,mt]=React$4.useState(!1),[xt,Mt]=React$4.useState({username:"",password:""}),[,vt]=React$4.useState(),Ot=React$4.useCallback(()=>vt({}),[]),{timeZone:At}=Intl.DateTimeFormat().resolvedOptions(),Rt=useTheme$1(),zt=useHistory(),Tt=()=>{tt(!1)},Ct=(Bt,Ft)=>{const $t={...xt,[Bt]:Ft};Mt($t)},It=()=>{const{username:Bt}=xt;zt.push({pathname:"/px/forgotPassword",state:{username:Bt}})},Dt=()=>{const Bt=sessionStorage.getItem("minutesUntilSubmitButtonUnlocked"),Ft=Bt?parseInt(Bt):0;return Ft>0?LOGIN_RATE_LIMIT_MESSAGE.replace("<n_minutes>",Ft>1?`${Ft} minutes`:"1 minute"):LOGIN_ERROR},kt=()=>{ut(!1),tt(!1),sessionStorage.removeItem("submitButtonLocked"),sessionStorage.removeItem("minutesUntilSubmitButtonUnlocked"),sessionStorage.removeItem("epochEndTime")},qt=()=>{const Bt=sessionStorage.getItem("minutesUntilSubmitButtonUnlocked"),Ft=parseInt(Bt||"5")-1,$t=Number(sessionStorage.getItem("epochEndTime")),jt=Date.now();Ft<=0||jt>=$t?kt():(sessionStorage.setItem("minutesUntilSubmitButtonUnlocked",String(Ft)),Ot(),Nt())},Nt=()=>{setTimeout(()=>{qt()},COUNTER_DURATION)},Yt=()=>{ut(!0);const Bt=Date.now()+LOCKOUT_DURATION;sessionStorage.setItem("submitButtonLocked",String(!0)),sessionStorage.setItem("minutesUntilSubmitButtonUnlocked",String(LOGIN_RATE_LIMIT_MINUTES)),sessionStorage.setItem("epochEndTime",String(Bt)),Ot(),setTimeout(()=>{Nt()},COUNTER_DURATION)};React$4.useEffect(()=>{const Bt=sessionStorage.getItem("epochEndTime"),Ft=sessionStorage.getItem("submitButtonLocked"),$t=Date.now();let jt=0;if(Bt){const Wt=Number(Bt)-$t;jt=Math.floor(Wt/COUNTER_DURATION),jt>0&&sessionStorage.setItem("minutesUntilSubmitButtonUnlocked",String(jt))}Ft==="true"&&jt>0&&(ut(!0),tt(!0)),Nt()},[]);const Kt=(Bt,Ft)=>{if(!Bt)throw Error("User is not defined");const $t=getCurrentScope();$t.setTag("user_type","patient"),$t.setUser({id:Bt.id,username:Bt.username});let jt={pathname:"/px/mfa/",state:{next:DEFAULT_DASHBOARD$1,mfaToken:Ft,user:Bt}};ht&&(jt={pathname:"/px/changePassword/",state:{next:DEFAULT_DASHBOARD$1,user:Bt,resetPassword:!0}}),(Bt.mfaDisabled||dt)&&DEFAULT_DASHBOARD$1&&(jt={pathname:DEFAULT_DASHBOARD$1}),zt.push(jt)},Jt=()=>{const Bt=api$3.get("csrftoken");return Bt||"invalid_token"},Qt=()=>{const Bt=document.getElementsByName("username")[0],Ft=document.getElementsByName("password")[0];ut(!0),nt(!0);const $t={username:Bt.value,password:Ft.value};if($t.username===""||$t.password===""){tt(!0),nt(!1);return}axios.post(API_ENDPOINT_LOGIN_PATH,$t,{headers:{"Content-Type":"application/json","X-CSRFTOKEN":Jt()}}).then(jt=>{const Wt=jt.data;axios.get(API_ENDPOINT_TRUSTED_AGENT_PATH,{headers:{"X-CSRFTOKEN":Jt()}}).then(Ut=>{nt(!1),tt(!1),mt(Ut.data.passwordExpired),Kt(Wt.user,Ut.data.token)})}).catch(jt=>{jt.response.status===403?(nt(!1),tt(!0),Yt()):(nt(!1),tt(!0),ut(!1),Ot()),Ot()})};return jsxRuntimeExports.jsx(Container$8,{className:"auth-container",maxWidth:!1,children:jsxRuntimeExports.jsxs("div",{className:"auth-container-inner",style:{padding:"2em"},children:[jsxRuntimeExports.jsx("div",{className:"welcome-container",children:jsxRuntimeExports.jsxs(Stack$6,{justifyContent:"center",children:[jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx("img",{src:GC_LOGO,alt:"GenesisCare Logo",width:60})}),jsxRuntimeExports.jsx(Typography,{variant:"h4",sx:{marginTop:"1.25rem"},children:PAGE_TITLE$1}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",color:Rt.palette.grey[600],children:"Enter your password to Log in"})]})}),jsxRuntimeExports.jsx(Form$2,{id:"patient-login-form",formData:{formData:xt},submit:Qt,children:jsxRuntimeExports.jsx(FormContent,{children:jsxRuntimeExports.jsxs(FormSection,{children:[jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"username",title:USERNAME_TITLE,invalidInput:et,children:jsxRuntimeExports.jsx(FreeTextField,{fieldName:"username",modelValue:xt.username,validateField:Ct,invalidInput:et,showErrorMessage:!1,placeholder:"",updateParent:Tt})}),jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"password",title:PASSWORD_TITLE,invalidInput:et,children:jsxRuntimeExports.jsx(FreeTextField,{fieldName:"password",modelValue:xt.password,validateField:Ct,invalidInput:et,showErrorMessage:!1,placeholder:"",secure:!0,updateParent:Tt})}),et&&jsxRuntimeExports.jsxs(Stack$6,{direction:"row",sx:{marginBottom:"15px"},alignItems:"center",children:[jsxRuntimeExports.jsx(Box$1,{children:jsxRuntimeExports.jsx(SvgErrorCross,{className:"icon"})}),jsxRuntimeExports.jsx(Typography,{variant:"body2",color:Rt.palette.error.dark,sx:{marginLeft:"10px"},children:Dt()})]}),lt,jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(LoadingButton,{type:"submit",onClick:Bt=>{Bt&&Bt.preventDefault(),Qt()},size:"large",name:"login",variant:"contained",disabled:lt,loading:rt,children:"Login"})}),At.includes("Australia")&&jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx("div",{className:"link",onClick:()=>{It()},children:"Reset Password"})})]})})}),jsxRuntimeExports.jsxs("div",{id:"trouble-container",children:[At.includes("Australia")&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{color:Rt.palette.grey[600]},children:"Having trouble logging in? Contact support"}),jsxRuntimeExports.jsx("a",{href:`mailto: ${GC_PATIENT_EMAIL}`,children:GC_PATIENT_EMAIL})]}),!At.includes("Australia")&&jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{color:Rt.palette.grey[600]},children:"GenesisCare Patient Portal is available to Australian patients only, please contact your clinic for any further enquiries."})]})]})})};class LoginFormViewModel{constructor(){Nr(this,"loginForm");Nr(this,"validationRules",{});Nr(this,"validationOptions",{fullMessages:!1,format:"flat"});Nr(this,"validateField",(tt,rt,nt,lt)=>{const ut={};ut[tt]=rt;let dt="errors.invalid_message";dt=validate(ut,this.validationRules,this.validationOptions),dt===void 0?(lt&&lt(),this.loginForm.formData[tt]=rt):nt&&nt(dt[0])});this.loginForm={formData:{username:"",password:""}}}}const API_ENDPOINT_SIGNUP_PATH="/server/patient/signup_account",PATIENT_QUERY=gql`
  {
    pxPatientBasic {
      id
      username
      mobileLocalised
      lastThreeMobile
      email
    }
  }
`,SEND_PX_EMAIL_REMINDER=gql`
  mutation SendPXSignupReminder {
    sendPxSignupReminder {
      success
      inviteLink
    }
  }
`,logger$7=new Logger("PatientSearch");class Login extends reactExports.Component{constructor(rt){super(rt);Nr(this,"loginFormViewModel");Nr(this,"submit",(rt,nt,lt)=>{this.setState({loading:!0,sentReminder:!0});const ut={id:rt,lastThreeMobile:nt,username:lt};axios.post(API_ENDPOINT_SIGNUP_PATH).then(dt=>{const{redirectTo:pt,token:ht}=dt.data;if(pt==="/px/mfa"){const xt={pathname:"/px/mfa/",state:{next:DEFAULT_DASHBOARD$1,mfaToken:ht||"",user:ut}};this.props.history.push(xt)}else this.props.history.push(pt)}).catch(dt=>{this.setState({loading:!1,sentReminder:!1})})});Nr(this,"loginSuccess",(rt,nt)=>{{const lt=getCurrentScope();lt.setTag("user_type","patientPortal"),lt.setUser({id:rt,username:nt})}});Nr(this,"handleSendPXSignupReminder",()=>{const{sentReminder:rt}=this.state;rt||(this.setState({sentReminder:!0}),this.props.client.mutate({mutation:SEND_PX_EMAIL_REMINDER}).then(nt=>{logger$7.info("Invite link is:",nt.data.sendPxSignupReminder.inviteLink),this.props.history.replace("/px/home")}))});Nr(this,"setSentReminder",(rt,nt)=>{this.setState({sentReminder:rt},()=>{nt&&nt()})});this.loginFormViewModel=new LoginFormViewModel,this.state={loading:!1,sentReminder:!1}}getCSRFCookie(){const rt=api$3.get("csrftoken");return rt||"invalid_token"}render(){return jsxRuntimeExports.jsx(Query,{query:PATIENT_QUERY,children:({loading:rt,error:nt,data:lt})=>{if(rt||this.state.loading)return jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0});if(nt||!lt)return this.props.history.replace("/login"),jsxRuntimeExports.jsx("div",{children:"Error..."});if(lt&&lt.pxPatientBasic){const{mobileLocalised:ut,email:dt,username:pt,lastThreeMobile:ht,id:mt}=lt.pxPatientBasic;return this.loginSuccess(mt,pt),window.addEventListener("beforeunload",xt=>{xt.preventDefault(),this.handleSendPXSignupReminder()}),jsxRuntimeExports.jsxs("div",{className:"signup-page",children:[jsxRuntimeExports.jsxs("div",{className:"auth-container login-page",children:[jsxRuntimeExports.jsxs("div",{className:"header-container",children:[jsxRuntimeExports.jsx("div",{className:"gc-logo"}),jsxRuntimeExports.jsx("div",{className:"signup-subheader",children:"Thank you for registering"}),jsxRuntimeExports.jsx("div",{className:"signup-header",children:"Sign up to your Patient Portal now!"})]}),jsxRuntimeExports.jsxs("div",{className:"auth-container-inner login-page",children:[jsxRuntimeExports.jsx(Form$2,{id:"patient-login-form",formData:this.loginFormViewModel.loginForm,submit:()=>this.submit(mt,ht,pt),children:jsxRuntimeExports.jsx(FormContent,{children:jsxRuntimeExports.jsxs(FormSection,{children:[jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"mobile",title:"Mobile",invalidInput:!1,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:"mobile",defaultValue:ut,placeholder:"",disabled:!0})}),jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"email",title:"Email",invalidInput:!1,children:jsxRuntimeExports.jsx(FreeTextField$1,{inputName:"email",defaultValue:dt,placeholder:"",disabled:!0})}),jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(LoadingButton,{type:"submit",onClick:xt=>{xt&&xt.preventDefault(),this.setState({sentReminder:!0},()=>{this.submit(mt,ht,pt)})},size:"large",name:"login",variant:"contained",loading:rt,children:"Sign up"})})]})})}),jsxRuntimeExports.jsx("div",{className:"signup-do-it-later",children:jsxRuntimeExports.jsx("div",{className:"do-it-later-text",onClick:()=>{this.handleSendPXSignupReminder()},children:"I'll do it later"})})]})]}),jsxRuntimeExports.jsxs("div",{className:"info-container",children:[jsxRuntimeExports.jsxs("div",{className:"left-align-tile",children:[jsxRuntimeExports.jsxs("div",{className:"info-tile",children:[jsxRuntimeExports.jsx("div",{className:"info-tile-image signup-all-devices-image"}),jsxRuntimeExports.jsxs("div",{className:"info-tile-body",children:[jsxRuntimeExports.jsx("div",{id:"device-header",className:"info-tile-header",children:"On all devices"}),jsxRuntimeExports.jsx("div",{id:"device-text",className:"info-tile-text",children:"View on your mobile, tablet or desktop."})]})]}),jsxRuntimeExports.jsxs("div",{className:"info-tile",children:[jsxRuntimeExports.jsx("div",{className:"info-tile-image signup-appointments-image"}),jsxRuntimeExports.jsxs("div",{className:"info-tile-body",children:[jsxRuntimeExports.jsx("div",{id:"appt-header",className:"info-tile-header",children:"Appointments"}),jsxRuntimeExports.jsx("div",{id:"appt-text",className:"info-tile-text",children:"Be up-to-date with your schedule and plan ahead."})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"right-align-tile",children:[jsxRuntimeExports.jsxs("div",{className:"info-tile ",children:[jsxRuntimeExports.jsx("div",{className:"info-tile-image signup-safe-secure-image"}),jsxRuntimeExports.jsxs("div",{className:"info-tile-body",children:[jsxRuntimeExports.jsx("div",{id:"safe-header",className:"info-tile-header",children:"Safe & Secure"}),jsxRuntimeExports.jsx("div",{id:"safe-text",className:"info-tile-text",children:"Your personal data is secure with us."})]})]}),jsxRuntimeExports.jsxs("div",{className:"info-tile",children:[jsxRuntimeExports.jsx("div",{className:"info-tile-image signup-information-image"}),jsxRuntimeExports.jsxs("div",{className:"info-tile-body",children:[jsxRuntimeExports.jsx("div",{id:"info-header",className:"info-tile-header",children:"Information"}),jsxRuntimeExports.jsx("div",{id:"info-text",className:"info-tile-text",children:"Be better informed on what's important to you."})]})]})]})]}),jsxRuntimeExports.jsx("div",{className:"security-text",children:"If you choose to skip sign up now, GenesisCare will send you a reminder email with a link to sign up to Patient Portal when you're ready."}),jsxRuntimeExports.jsx("div",{className:"security-text",children:"If your mobile or email address are incorrect please contact your clinic."})]})}return jsxRuntimeExports.jsx("div",{children:"Error"})}})}}const apolloLogin=withApollo(Login),PXSignup=withRouter(apolloLogin),VERIFY_RESET_PASSWORD=gql`
  mutation VerifyResetPasswordToken($token: String!) {
    verifyResetPasswordToken(token: $token) {
      mfaDebugToken
      user {
        id
        username
        lastThreeMobile
      }
      errors
    }
  }
`,RESET_TOKEN_PARAM="token";class ResetPassword extends reactExports.Component{constructor(rt){super(rt);Nr(this,"resetToken");Nr(this,"mfaDebugToken");Nr(this,"user");this.state={error:!1,loading:!0};const nt=new URLSearchParams(this.props.location.search);this.resetToken=nt.get(RESET_TOKEN_PARAM)}componentDidMount(){const{client:rt}=this.props;if(!rt)throw new Error("Apollo client not found");this.resetToken&&rt.mutate({mutation:VERIFY_RESET_PASSWORD,variables:{token:this.resetToken}}).then(nt=>{if(nt.data&&nt.data.verifyResetPasswordToken){const{mfaDebugToken:lt,user:ut}=nt.data.verifyResetPasswordToken;this.mfaDebugToken=lt,ut?(this.user=ut,this.setState({error:!1,loading:!1})):this.setState({error:!0,loading:!1})}})}render(){let rt={pathname:"/px/forgotPassword",state:{expiredLink:!0}};return this.state.loading?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:"Verifying your password reset"})}):(!this.state.error&&!this.state.loading&&(rt={pathname:"/px/mfa/",state:{next:"/px/home",mfaToken:this.mfaDebugToken,user:this.user,resetPassword:!0,resetToken:this.resetToken}}),jsxRuntimeExports.jsx(Redirect,{from:"/",to:rt}))}}const apolloWrappedComponent=withApollo(ResetPassword),PXResetPassword=withRouter(apolloWrappedComponent);var KeyboardArrowLeft={},_interopRequireDefault$a=interopRequireDefaultExports;Object.defineProperty(KeyboardArrowLeft,"__esModule",{value:!0});var default_1$a=KeyboardArrowLeft.default=void 0,_createSvgIcon$a=_interopRequireDefault$a(requireCreateSvgIcon()),_jsxRuntime$a=jsxRuntimeExports;default_1$a=KeyboardArrowLeft.default=(0,_createSvgIcon$a.default)((0,_jsxRuntime$a.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft");const FORGOT_DESCRIPTION="Enter your email to reset your password",RESET_PASSWORD="Reset password",EXPIRED_DESCRIPTION=`Your one time link has expired.
Click button below to resend link`,EXPIRED_TITLE="Expired link",EMAIL="Email",FIELD_NAMES$1={USERNAME:"username"};class ForgotPassword extends reactExports.Component{constructor(rt){super(rt);Nr(this,"title");Nr(this,"description");Nr(this,"showCancel",!1);Nr(this,"renderContents",(rt,nt,lt)=>{const ut="username";if(nt){const dt={pathname:"/px/resetLink",state:{username:this.state.username,resetLink:lt}};return jsxRuntimeExports.jsx(Redirect,{push:!0,to:dt})}return jsxRuntimeExports.jsx("div",{className:"auth-container",children:jsxRuntimeExports.jsx("div",{className:"auth-container-inner",style:{padding:"2em"},children:jsxRuntimeExports.jsx("form",{id:"forgot-password-form",className:"form-wrapper",children:jsxRuntimeExports.jsxs(FormContent,{children:[jsxRuntimeExports.jsxs(Stack$5,{marginBottom:"15px",marginLeft:"-10px",alignItems:"left",children:[jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"left",alignItems:"center",children:[jsxRuntimeExports.jsx("div",{id:"back-arrow",style:{cursor:"pointer"},onClick:()=>{this.setState({goBack:!0})},children:jsxRuntimeExports.jsx(default_1$a,{color:"primary",fontSize:"large"})}),jsxRuntimeExports.jsx(Typography,{"data-testid":"forgot-password-title",variant:"h6",children:this.title})]}),jsxRuntimeExports.jsx(Typography,{"data-testid":"forgot-password-description",variant:"subtitle2",color:theme$1.palette.grey[600],sx:{paddingLeft:"10px"},children:this.description})]}),jsxRuntimeExports.jsxs(FormSection,{children:[jsxRuntimeExports.jsxs("div",{className:"form-section-field",children:[jsxRuntimeExports.jsx("label",{className:"field-label",htmlFor:ut,children:EMAIL}),jsxRuntimeExports.jsx(FreeTextField$1,{inputName:FIELD_NAMES$1.USERNAME,onChange:dt=>{this.setState({username:dt.target.value})},errors:this.state.validationObject&&this.state.validationObject.username?this.state.validationObject.username:void 0})]}),jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(Button,{onClick:dt=>{dt&&dt.preventDefault(),this.validateAndSubmit(rt)},size:"large",name:"reset-link",type:"submit",variant:"contained",children:"Get reset link"})}),this.showCancel&&jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(Link$2,{className:"link",to:"/",replace:!0,children:"Cancel"})})]})]})})})})});Nr(this,"validateAndSubmit",rt=>{const nt={username:{presence:{allowEmpty:!1,message:"Please enter an email"},format:{pattern:`${EMAIL_REGEX}${MOBILE_NUMBER_REGEX}`,message:"Please enter a valid email"}}},lt={fullMessages:!1},ut={username:this.state.username},dt=validate(ut,nt,lt);dt?this.setState({validationObject:dt}):rt({variables:{username:this.state.username}})});this.title=RESET_PASSWORD,this.description=FORGOT_DESCRIPTION;let nt="";const{location:lt}=this.props;lt&&lt.state&&(lt.state.expiredLink&&(this.title=EXPIRED_TITLE,this.description=EXPIRED_DESCRIPTION,this.showCancel=!0),lt.state.username&&(nt=lt.state.username)),this.state={username:nt,goBack:!1}}render(){return this.state.goBack?this.props.location&&this.props.location.state&&this.props.location.state.expiredLink?(this.props.history.goBack(),jsxRuntimeExports.jsx(reactExports.Fragment,{})):jsxRuntimeExports.jsx(Redirect,{from:"/",to:"/login"}):jsxRuntimeExports.jsx(Mutation,{mutation:FORGOT_PASSWORD_MUTATION_GQL,children:(rt,{called:nt,loading:lt,data:ut})=>{if(lt)return jsxRuntimeExports.jsx(LoadingSpinner,{});let dt;return ut&&ut.resetPassword&&ut.resetPassword.resetLink&&(dt=ut.resetPassword.resetLink),this.renderContents(rt,nt,dt)}})}}const routedComponent$5=withRouter(ForgotPassword),component$2=routedComponent$5,DESCRIPTION="If you have a valid account, a password reset email has been sent to you",RESET_LINK="Reset link";class ResetLink extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderContents",rt=>{const{location:nt}=this.props,lt=nt.state.resetLink;return jsxRuntimeExports.jsx("div",{className:"auth-container",children:jsxRuntimeExports.jsx("div",{className:"auth-container-inner",children:jsxRuntimeExports.jsx("form",{id:"reset-link-form",className:"form-wrapper",children:jsxRuntimeExports.jsxs(FormContent,{children:[jsxRuntimeExports.jsxs("div",{className:"title-container",children:[jsxRuntimeExports.jsx("div",{className:"back-arrow",onClick:()=>{this.setState({goBack:!0})}}),jsxRuntimeExports.jsx("div",{className:"title",children:RESET_LINK})]}),jsxRuntimeExports.jsx("div",{className:"description",id:"modal-text",children:DESCRIPTION}),lt&&jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center ",style:{marginBottom:"1em"},children:jsxRuntimeExports.jsx("a",{id:"reset-link-debug",className:"link link-bold",href:lt,children:"Reset Password Debug Link"})}),jsxRuntimeExports.jsxs(FormSection,{children:[jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(Button,{onClick:ut=>{ut&&ut.preventDefault(),rt({variables:{username:nt.state.username}})},name:"resend-link",variant:"contained",children:"Resend link"})}),jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(Link$2,{className:"link",to:"/login",replace:!0,children:"Cancel"})})]})]})})})})});this.state={goBack:!1}}render(){const{location:rt,history:nt}=this.props;return!rt||!rt.state||!rt.state.username?jsxRuntimeExports.jsx(Redirect,{from:"/",to:"/login"}):(this.state.goBack&&nt.goBack(),jsxRuntimeExports.jsx(Mutation,{mutation:FORGOT_PASSWORD_MUTATION_GQL,children:(lt,{loading:ut,error:dt})=>ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):dt?jsxRuntimeExports.jsx("div",{children:"Something went wrong, please try again later"}):this.renderContents(lt)}))}}const PXResetLink=withRouter(ResetLink),AuthLayout=et=>{const{children:tt,titleOverride:rt,clickLogoFn:nt,showHeader:lt=!0,showNavigation:ut=!0,showBottomNav:dt=!0}=et;return jsxRuntimeExports.jsx("div",{style:{height:"100vh"},children:jsxRuntimeExports.jsxs(Stack$5,{id:"auth-layout",padding:0,width:1,height:1,children:[lt&&jsxRuntimeExports.jsx(HeaderSection$1,{titleOverride:rt,clickLogoFn:nt,showNavigation:ut,displayProfile:ut}),tt,dt&&ut&&jsxRuntimeExports.jsx(BottomSection$1,{})]})})};class ChangePasswordFormViewModel{constructor(){Nr(this,"ERROR_PASSWORD_INVALID","Please enter a valid password");Nr(this,"ERROR_PASSWORD_TOO_SHORT","Your password is too short, please enter a password at least 8 characters");Nr(this,"ERROR_PASSWORD_TOO_COMMON","Please ensure your password does not contain names, your email or the company name");Nr(this,"ERROR_PASSWORD_TOO_WEAK","Your password is too easy to guess, please enter a more complex password");Nr(this,"ERROR_PASSWORDS_ENTERED_DO_NOT_MATCH","The passwords you entered do not match. Please re-enter passwords");Nr(this,"EXPIRED_TOKEN_ERROR","Token has expired");Nr(this,"TNC_ERROR","You must agree to the Terms & Conditions to continue");Nr(this,"MIN_PASSWORD_LENGTH",8);Nr(this,"changePasswordFormModel");Nr(this,"errors");Nr(this,"validationRules",{oldPassword:{format:{pattern:"[\\S]+",message:this.ERROR_PASSWORD_INVALID}},confirmPassword:{format:{pattern:"[\\S]{8,}",message:this.ERROR_PASSWORD_TOO_SHORT},equality:{attribute:"newPassword",message:this.ERROR_PASSWORDS_ENTERED_DO_NOT_MATCH,comparator:function(tt,rt){return tt===rt}}},newPassword:{format:{pattern:"[\\S]{8,}",message:this.ERROR_PASSWORD_TOO_SHORT}}});Nr(this,"validationOptions",{fullMessages:!1,format:"flat"});Nr(this,"validateField",(tt,rt,nt,lt)=>{let ut=tt;const dt={};switch(tt){case"old-password":ut="oldPassword";break;case"new-password":ut="newPassword";break;case"confirm-password":ut="confirmPassword",dt.newPassword=this.changePasswordFormModel.formData.newPassword;break}dt[ut]=rt;let pt="errors.invalid_message";pt=validate(dt,this.validationRules,this.validationOptions),this.errors[ut]=void 0,pt===void 0?(lt&&lt(),this.changePasswordFormModel.formData[ut]=rt):(this.changePasswordFormModel.formData[ut]="",nt&&(this.errors[ut]=pt[0],nt(pt[0])))});Nr(this,"validatePasswordsOnFormSubmission",tt=>{const rt=this.changePasswordFormModel.formData;return(rt.oldPassword.length>=1||tt)&&rt.newPassword.length>=this.MIN_PASSWORD_LENGTH&&rt.newPassword.length>=this.MIN_PASSWORD_LENGTH&&rt.newPassword===rt.confirmPassword});Nr(this,"createErrorArray",tt=>{tt&&tt.length>0&&tt.forEach(rt=>{try{const nt=rt.details;nt==="Incorrect password"?this.errors.oldPassword=this.ERROR_PASSWORD_INVALID:nt==="Password does not match"?this.errors.confirmPassword=this.ERROR_PASSWORDS_ENTERED_DO_NOT_MATCH:nt===this.ERROR_PASSWORD_TOO_SHORT?this.errors.newPassword=nt:nt===this.ERROR_PASSWORD_TOO_COMMON?this.errors.newPassword=nt:nt===this.ERROR_PASSWORD_TOO_WEAK?this.errors.newPassword=nt:nt===this.EXPIRED_TOKEN_ERROR&&(this.errors.resetToken=!0)}catch{}})});this.changePasswordFormModel={formData:{oldPassword:"",newPassword:"",confirmPassword:""}},this.errors={}}}const logger$6=new Logger("ChangePassword"),PAGE_TITLE="Change password",FORM_TITLE$1="Set your password",FORM_DESCRIPTION$1="Set a secure password that is:",EMAIL_FORM_LABEL="Email",OLD_PASSWORD_FORM_LABEL="Old password",NEW_PASSWORD_FORM_LABEL="New password",CONFIRM_PASSWORD_FORM_LABEL="Confirm new password",SET_PASSWORD_BUTTON_TEXT="Set password",CHANGE_PASSWORD_BUTTON_TEXT="Change password",MIN_PASSWORD_LENGTH=8,TNC_CHECKBOX={NAME:"tncCheckbox",LABEL:{PLAIN_TEXT:"I agree to the",LINK_TEXT:"Terms & Conditions"}},TNC_HELPER_TEXT="You must agree to the Terms & Conditions to continue",USER_QUERY=gql`
  {
    user {
      id
      email
      userProfile {
        id
        usernameEntered
        forcedReset
        patient {
          id
          termsConditionsAcceptedDate
        }
      }
    }
  }
`,PASSWORD_MUTATION=gql`
  mutation ChangePassword($currentPassword: String, $newPassword: String!, $confirmedPassword: String!, $acceptTermsConditions: Boolean, $resetToken: String) {
    changePassword(
      currentPassword: $currentPassword,
      newPassword: $newPassword,
      confirmedPassword: $confirmedPassword,
      resetToken: $resetToken,
      acceptTermsConditions: $acceptTermsConditions
    ) {
      errors {
        error
        details
      }
    }
  }
`;class ChangePassword extends reactExports.Component{render(){let tt=!1;const{location:rt}=this.props;return rt&&rt.state&&rt.state.resetPassword&&(tt=rt.state.resetPassword),jsxRuntimeExports.jsx(Query,{query:USER_QUERY,fetchPolicy:"network-only",children:({loading:nt,error:lt,data:ut})=>{if(nt)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(lt||!ut)return jsxRuntimeExports.jsx("div",{children:"Error!!!!"});const{email:dt}=ut.user,{usernameEntered:pt,forcedReset:ht}=ut.user.userProfile,{termsConditionsAcceptedDate:mt}=ut.user.userProfile.patient;return jsxRuntimeExports.jsx(ChangePasswordInner,{...this.props,username:pt||dt,forcedReset:ht,forgotPassword:tt,termsConditionsAcceptedDate:mt})}})}}class ChangePasswordInner extends reactExports.Component{constructor(rt){super(rt);Nr(this,"firstLogin",!1);Nr(this,"forgotPassword",!1);Nr(this,"changePasswordFormViewModel");Nr(this,"updateErrorState",rt=>{this.setState({formError:{showNewPasswordError:rt,oldPassword:this.changePasswordFormViewModel.errors.oldPassword,newPassword:this.changePasswordFormViewModel.errors.newPassword,confirmPassword:this.changePasswordFormViewModel.errors.confirmPassword,tncCheckbox:this.changePasswordFormViewModel.errors.tncCheckbox}})});Nr(this,"getPageContainerStyles",()=>{const rt="auth-container";return this.firstLogin||this.forgotPassword?rt:rt+" manual-password-change"});Nr(this,"navigateBack",()=>{this.props.history.replace(this.props.location.state.from)});Nr(this,"renderFormHeading",()=>{let rt=FORM_TITLE$1;return this.firstLogin||(rt=PAGE_TITLE),jsxRuntimeExports.jsxs("div",{className:classNames$1("title-container",{hidden:!this.firstLogin}),children:[jsxRuntimeExports.jsx("div",{className:classNames$1("back-arrow",{hidden:this.firstLogin||this.forgotPassword}),onClick:this.navigateBack}),jsxRuntimeExports.jsx("div",{className:classNames$1("title",{titleGreen:!this.firstLogin&&!this.forgotPassword}),children:rt})]})});Nr(this,"renderOldPasswordTextField",rt=>{const nt=!!rt.oldPassword;return this.firstLogin||this.forgotPassword?jsxRuntimeExports.jsx(React$4.Fragment,{}):jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"old-password",title:OLD_PASSWORD_FORM_LABEL,invalidInput:nt,children:jsxRuntimeExports.jsx(FreeTextField,{fieldName:"old-password",validateField:this.changePasswordFormViewModel.validateField,secure:!0,showErrorMessage:!0,invalidInput:nt,errorMessage:rt.oldPassword,updateParent:()=>{this.updateErrorState(!1)}})})});Nr(this,"getSubmitButtonText",()=>this.firstLogin?SET_PASSWORD_BUTTON_TEXT:CHANGE_PASSWORD_BUTTON_TEXT);Nr(this,"renderContent",(rt,nt,lt)=>{const{location:ut}=this.props;let dt=this.state.formError;if(nt){if(nt.resetToken)return jsxRuntimeExports.jsx(Redirect,{to:{pathname:"/forgotPassword",state:{expiredLink:!0}}});dt=nt}let pt;return ut&&ut.state&&ut.state.resetToken&&(pt=ut.state.resetToken),jsxRuntimeExports.jsx(AuthLayout,{showHeader:!this.firstLogin&&typeof pt>"u",showNavigation:!this.firstLogin&&typeof pt>"u",showBottomNav:!this.firstLogin&&typeof pt>"u",clickLogoFn:()=>this.props.history.replace(this.props.location.state.from),titleOverride:!this.firstLogin&&!this.forgotPassword?"Change password":"Set your password",children:jsxRuntimeExports.jsx("div",{className:this.getPageContainerStyles(),children:jsxRuntimeExports.jsx("div",{className:"auth-container-inner",children:jsxRuntimeExports.jsx(Form$2,{id:"patient-change-password-form",formData:this.changePasswordFormViewModel.changePasswordFormModel,children:jsxRuntimeExports.jsxs(FormContent,{children:[this.renderFormHeading(),jsxRuntimeExports.jsxs(FormSection,{children:[jsxRuntimeExports.jsx("div",{className:"description",children:FORM_DESCRIPTION$1}),jsxRuntimeExports.jsxs("ul",{className:"password-list",children:[jsxRuntimeExports.jsx("li",{children:"8 or more characters in length"}),jsxRuntimeExports.jsx("li",{children:"Unique to you and hard to guess"}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx("u",{children:"Not"})," a simple word or phrase"]})]}),jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"username",title:EMAIL_FORM_LABEL,invalidInput:!1,children:jsxRuntimeExports.jsx(FreeTextField,{fieldName:"username",modelValue:lt||"ERROR: No username",disabled:!0})}),this.renderOldPasswordTextField(dt),jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"new-password",title:NEW_PASSWORD_FORM_LABEL,invalidInput:!!dt.newPassword,children:jsxRuntimeExports.jsx(FreeTextField,{fieldName:"new-password",validateField:this.changePasswordFormViewModel.validateField,secure:!0,showErrorMessage:!0,invalidInput:!!dt.newPassword,errorMessage:dt.newPassword,updateParent:()=>{this.updateErrorState(!1)}})}),jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"confirm-password",title:CONFIRM_PASSWORD_FORM_LABEL,invalidInput:!!dt.confirmPassword,children:jsxRuntimeExports.jsx(FreeTextField,{fieldName:"confirm-password",validateField:this.changePasswordFormViewModel.validateField,secure:!0,showErrorMessage:!0,invalidInput:!!dt.confirmPassword,errorMessage:dt.confirmPassword,updateParent:()=>{this.updateErrorState(!1)},validateOnKeyUp:!1})})]}),this.renderTermsAndConditionsCheckbox(dt),jsxRuntimeExports.jsxs(FormSection,{children:[jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(Button,{onClick:()=>{const ht=this.changePasswordFormViewModel.changePasswordFormModel;this.onSubmitHandler(()=>{rt({variables:{currentPassword:ht.formData.oldPassword,newPassword:ht.formData.newPassword,confirmedPassword:ht.formData.confirmPassword,acceptTermsConditions:this.state.tncCheckbox,resetToken:pt}})})},variant:"contained",name:"submit-button",children:this.getSubmitButtonText()})}),this.forgotPassword&&jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(Link$2,{className:"link",to:"/",replace:!0,children:"Cancel"})}),!this.changePasswordFormViewModel.errors.tncCheckbox&&this.userToAcceptTermsAndConditions()&&jsxRuntimeExports.jsxs("div",{className:"flex-horizontal-center tnc-helper-text",children:["*",TNC_HELPER_TEXT]})]})]})})})})})});Nr(this,"renderTermsAndConditionsCheckbox",rt=>this.userToAcceptTermsAndConditions()?jsxRuntimeExports.jsx(FormSection,{children:jsxRuntimeExports.jsx(Checkbox,{inputName:TNC_CHECKBOX.NAME,inputLabel:this.renderTncLabel(),isChecked:this.state.tncCheckbox,onChange:nt=>{this.changePasswordFormViewModel.errors.tncCheckbox=void 0,rt.tncCheckbox=void 0,this.setState({tncCheckbox:nt})},errors:rt.tncCheckbox?[rt.tncCheckbox]:void 0})}):jsxRuntimeExports.jsx(reactExports.Fragment,{}));Nr(this,"userToAcceptTermsAndConditions",()=>{const{termsConditionsAcceptedDate:rt}=this.props,lt=moment$2.utc(`${rt}`).local(),ut=moment$2().add(1,"days");return!(rt!=null&&lt.isBefore(ut,"day"))});Nr(this,"onSubmitHandler",rt=>{logger$6.debug("onSubmitHandler","Calling the on submit handler");const{tncCheckbox:nt}=this.state;let lt=!0;if(this.userToAcceptTermsAndConditions()&&(nt||(lt=!1)),this.changePasswordFormViewModel.validatePasswordsOnFormSubmission(this.firstLogin||this.forgotPassword)&&lt)rt();else{const ut=this.changePasswordFormViewModel.changePasswordFormModel.formData;let dt=!1;ut.oldPassword.length<1&&(this.changePasswordFormViewModel.errors.oldPassword=this.changePasswordFormViewModel.ERROR_PASSWORD_INVALID),ut.newPassword.length<MIN_PASSWORD_LENGTH&&(this.changePasswordFormViewModel.errors.newPassword=this.changePasswordFormViewModel.ERROR_PASSWORD_TOO_SHORT),ut.confirmPassword.length<MIN_PASSWORD_LENGTH&&(this.changePasswordFormViewModel.errors.confirmPassword=this.changePasswordFormViewModel.ERROR_PASSWORD_TOO_SHORT),ut.newPassword!==ut.confirmPassword&&(this.changePasswordFormViewModel.errors.confirmPassword=this.changePasswordFormViewModel.ERROR_PASSWORDS_ENTERED_DO_NOT_MATCH,dt=!0),nt||(this.changePasswordFormViewModel.errors.tncCheckbox=this.changePasswordFormViewModel.TNC_ERROR),this.updateErrorState(dt)}});Nr(this,"mutationRender",rt=>jsxRuntimeExports.jsx(Mutation,{mutation:PASSWORD_MUTATION,children:(nt,lt)=>{const{loading:ut,errors:dt,data:pt}=lt;if(ut)return jsxRuntimeExports.jsx(LoadingSpinner,{});if(!pt&&dt)return jsxRuntimeExports.jsx("div",{children:"Error with graphql"});let ht;if(pt&&pt.changePassword){const mt=pt.changePassword;if(mt.errors)this.changePasswordFormViewModel.createErrorArray(mt.errors),ht={showNewPasswordError:!1,...this.changePasswordFormViewModel.errors};else return this.goToNext()}return this.renderContent(nt,ht,rt)}}));Nr(this,"goToNext",()=>{const rt=this.props.location,nt={pathname:DEFAULT_DASHBOARD$1,state:{bannerVisible:!0,bannerMessage:"Your password has been successfully updated",forgotPassword:this.props.forgotPassword}};if(rt&&rt.state&&rt.state.next){const lt=rt.state.next;return lt.indexOf("/server/")!==-1?(window.location.replace(lt),jsxRuntimeExports.jsx("div",{})):(nt.pathname=rt.state.next,jsxRuntimeExports.jsx(Redirect,{from:"/",to:nt}))}return jsxRuntimeExports.jsx(Redirect,{from:"/",to:nt})});Nr(this,"renderTncLabel",()=>jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("p",{className:"terms-conditions-text",children:[TNC_CHECKBOX.LABEL.PLAIN_TEXT," ",jsxRuntimeExports.jsx(Link$2,{to:"termsAndConditions",target:"_blank",className:"terms-conditions-link",children:TNC_CHECKBOX.LABEL.LINK_TEXT}),this.changePasswordFormViewModel.errors.tncCheckbox?"":"*"]})}));this.changePasswordFormViewModel=new ChangePasswordFormViewModel,this.firstLogin=this.props.forcedReset,this.forgotPassword=this.props.forgotPassword,this.state={formError:{showNewPasswordError:!1,oldPassword:"",newPassword:"",confirmPassword:""},tncCheckbox:!1}}render(){return this.mutationRender(this.props.username)}}const wrappedComponent=withRouter(ChangePassword),CONTENT={TITLE:"Link expired",BODY:"You have either submitted your online registration or the link has expired. Please contact your local centre for assistance. You can find your centre details at"};class LinkExpired extends reactExports.Component{render(){return jsxRuntimeExports.jsxs("div",{id:"session-expired-page",children:[jsxRuntimeExports.jsxs("div",{className:"session-container",children:[jsxRuntimeExports.jsx("div",{id:"session-expired-image",children:jsxRuntimeExports.jsx("div",{className:"image"})}),jsxRuntimeExports.jsxs("main",{children:[jsxRuntimeExports.jsx("h1",{id:"session-title",children:CONTENT.TITLE}),jsxRuntimeExports.jsx("p",{id:"session-detail",children:CONTENT.BODY}),jsxRuntimeExports.jsx("a",{href:"https://www.genesiscare.com/au/our-centres/",target:"_blank",children:"https://www.genesiscare.com/au/our-centres/"})]})]}),jsxRuntimeExports.jsx("div",{className:"end-home-bottom-navigator"})]})}}class MFAFormViewModel{constructor(){Nr(this,"mfaFormModel");Nr(this,"validationRules",{});Nr(this,"validationOptions",{fullMessages:!1,format:"flat"});Nr(this,"validateField",(tt,rt,nt,lt)=>{const ut={};ut[tt]=rt;let dt="errors.invalid_message";dt=validate(ut,this.validationRules,this.validationOptions),dt===void 0?(lt&&lt(),this.mfaFormModel.formData[tt]=rt):nt&&nt(dt[0])});this.mfaFormModel={formData:{pin:""}}}}const logger$5=new Logger("MultifactorAuth"),ResendPasscodeLink=styled$1("span")`
  color: ${et=>et.theme.palette.text.primary};
  text-decoration-line: underline;
  cursor: ${({$cursor:et})=>et};
`,DEFAULT_DASHBOARD="/px/appointments",LOGIN_ENDPOINT="/login",BACKEND_MFA_ENDPOINT="/server/patient/auth/mfa",FORM_TITLE="Verification Passcode",FORM_DESCRIPTION="A text message with your passcode has been sent to: **** *** ",FORM_INSTRUCTION="Enter 6 digit code",FORM_RESEND_LINK_TEXT="Resend passcode",MFA_ERROR="Please enter a valid code or resend a new passcode",MFA_MAX_ATTEMPTS_ERROR="Maximum attempts reached. Please wait 15 minutes to try again, or contact support if experiencing ongoing issues.",INVITE_SEARCH_PARAM="invite",TIME_BETWEEN_MFA_CODES="15";gql`
  mutation Send {
    send {
      token
      user {
        lastThreeMobile
      }
      errors
    }
  }
`;class MultifactorAuth extends reactExports.Component{constructor(rt){super(rt);Nr(this,"mfaFormViewModel");Nr(this,"inviteReferral",!1);Nr(this,"nextAddress");Nr(this,"goToNextPage",rt=>{const{location:{search:nt}}=this.props,ut=new URLSearchParams(nt).get("redirectto");if(ut){this.props.history.push(ut);return}const dt=this.props.location.state.resetPassword,pt=this.props.location.state.resetToken;if(rt||dt){const ht={pathname:"/px/changePassword",state:{next:this.nextAddress,resetPassword:dt,resetToken:pt}};this.props.history.push(ht);return}if(this.nextAddress){this.nextAddress.indexOf("/server/")!==-1&&window.location.replace(this.nextAddress),this.props.history.push(this.nextAddress);return}this.props.history.push(DEFAULT_DASHBOARD)});Nr(this,"sendTokenRender",()=>{if(this.state.sendTokenLoading)return this.contentsRender(!1,!1,!1);if(!this.state.sendTokenData)return jsxRuntimeExports.jsx(Redirect,{to:LOGIN_ENDPOINT});if(this.state.sendTokenData.error)return jsxRuntimeExports.jsx("div",{children:"Error with retrieving token"});if(this.state.verifyLoading)return this.contentsRender(!1,!1,this.state.verifyLoading);let rt=this.state.debugToken;if(this.state.sendTokenData.token&&(rt=this.state.sendTokenData.token),this.state.verifyData&&(this.state.verifyData.error||this.state.errorMessage))return this.contentsRender(!0,!1,this.state.verifyLoading,rt);let nt=!1,lt=!1;return this.state.verifyData&&this.state.verifyData.forcedReset&&(nt=!!this.state.verifyData.username,lt=this.state.verifyData.forcedReset),this.contentsRender(!1,nt,this.state.verifyLoading,rt,lt)});Nr(this,"contentsRender",(rt,nt,lt,ut,dt)=>{var Rt,zt,Tt;const{lastThreeMobile:pt,enableResendToken:ht,minutesUntilEnabled:mt,pin:xt}=this.state,{mfaFormModel:Mt}=this.mfaFormViewModel;if(nt)return this.goToNext(dt);const{location:{search:vt}}=this.props;new URLSearchParams(vt).get("token");const At={$cursor:ht?"pointer":"default"};return jsxRuntimeExports.jsx("div",{className:"auth-container",children:jsxRuntimeExports.jsx("div",{className:"auth-container-inner",children:jsxRuntimeExports.jsx(Form$2,{id:"patient-mfa-form",formData:Mt,children:jsxRuntimeExports.jsxs(FormContent,{children:[jsxRuntimeExports.jsxs("div",{className:"title-container",children:[jsxRuntimeExports.jsx("div",{className:classNames$1("back-arrow",{hidden:this.props.location&&this.props.location.state&&this.props.location.state.resetPassword}),onClick:()=>{this.setState({goBack:!0})}}),jsxRuntimeExports.jsx("div",{className:"title",children:FORM_TITLE})]}),jsxRuntimeExports.jsxs(FormSection,{children:[jsxRuntimeExports.jsx("div",{className:"description",children:pt&&FORM_DESCRIPTION+pt}),jsxRuntimeExports.jsx(FormSegmentField,{htmlFor:"pin",title:FORM_INSTRUCTION,invalidInput:rt,children:jsxRuntimeExports.jsx(VerificationInput,{containerProps:{className:"pin-input"},validChars:"0-9",length:6,autoFocus:!0,value:(Rt=Mt==null?void 0:Mt.formData)==null?void 0:Rt.pin,onChange:Ct=>{this.setState({pin:Ct}),this.mfaFormViewModel.validateField("pin",Ct)}},(zt=Mt==null?void 0:Mt.formData)==null?void 0:zt.pin)}),rt&&this.state.errorMessage!==void 0&&jsxRuntimeExports.jsx(ErrorInfo,{errors:[this.state.errorMessage]}),jsxRuntimeExports.jsx("div",{className:"flex-horizontal-center",children:jsxRuntimeExports.jsx(LoadingButton,{onClick:()=>{this.verifyToken(Mt.formData.pin)},sx:{marginBottom:1},variant:"contained",name:"mfa-verify",loading:lt,children:"Verify"})}),jsxRuntimeExports.jsxs(Stack$5,{justifyContent:"center",children:[this.props.location.state.resetPassword&&jsxRuntimeExports.jsx(Box,{sx:{textAlign:"center"},children:jsxRuntimeExports.jsx(Link$2,{className:"link",to:LOGIN_ENDPOINT,replace:!0,children:"Cancel"})}),jsxRuntimeExports.jsx(Box,{marginTop:this.props.location.state.resetPassword?"15px":"0px",textAlign:"center",children:jsxRuntimeExports.jsx(Tooltip,{arrow:!0,"data-test-id":"resend-token-link-tooltip",title:!ht&&`Please try again in ${mt} minute${mt>1&&"s"}`,children:jsxRuntimeExports.jsx(ResendPasscodeLink,{id:"resend-token-link",onClick:()=>{this.handleResendToken()},style:{textAlign:"center"},...At,children:FORM_RESEND_LINK_TEXT})})})]}),this.renderToken(ut)]})]})})})},(Tt=Mt==null?void 0:Mt.formData)==null?void 0:Tt.pin)});Nr(this,"goToNext",rt=>{const nt=this.props.location.state.resetPassword,lt=this.props.location.state.resetToken;if(rt||nt){const ut={pathname:"/px/changePassword",state:{next:this.nextAddress,resetPassword:nt,resetToken:lt}};return jsxRuntimeExports.jsx(Redirect,{from:"/",to:ut})}return this.nextAddress?this.nextAddress.indexOf("/server/")!==-1?(window.location.replace(this.nextAddress),jsxRuntimeExports.jsx("div",{})):jsxRuntimeExports.jsx(Redirect,{from:"/",to:this.nextAddress}):jsxRuntimeExports.jsx(Redirect,{from:"/",to:DEFAULT_DASHBOARD})});Nr(this,"renderToken",rt=>rt?jsxRuntimeExports.jsx("div",{id:"mfa-token",style:{paddingTop:"10px"},children:rt}):null);this.mfaFormViewModel=new MFAFormViewModel;let nt,lt;const ut=rt.location;ut&&ut.state&&(this.nextAddress=ut.state[NEXT_SEARCH_PARAM],ut.state.user&&ut.state.user.lastThreeMobile&&(nt=ut.state.user.lastThreeMobile),ut.state.mfaToken&&(lt=ut.state.mfaToken)),this.getToken=throttle$2(this.getToken,6e4,{leading:!0});const dt=sessionStorage.getItem("enableResendToken")==="true",pt=Number(sessionStorage.getItem("minutesUntilEnabled")!==null?sessionStorage.getItem("minutesUntilEnabled"):TIME_BETWEEN_MFA_CODES);this.state={goBack:!1,lastThreeMobile:nt,debugToken:lt,verifyLoading:!1,verifyData:{},errorMessage:void 0,sendTokenLoading:!1,sendTokenData:{},enableResendToken:dt,minutesUntilEnabled:pt,intervalId:0,pin:void 0}}componentDidUpdate(rt,nt){this.state.enableResendToken!==nt.enableResendToken&&(this.state.enableResendToken&&(clearInterval(this.state.intervalId),this.setState({minutesUntilEnabled:Number(TIME_BETWEEN_MFA_CODES)})),sessionStorage.setItem("enableResendToken",String(this.state.enableResendToken))),this.state.minutesUntilEnabled!==nt.minutesUntilEnabled&&sessionStorage.setItem("minutesUntilEnabled",String(this.state.minutesUntilEnabled))}componentDidMount(){const{location:{search:rt}}=this.props,nt=new URLSearchParams(rt),lt=nt.get(INVITE_SEARCH_PARAM),ut=nt.get("token");(lt||ut)&&this.getToken(),this.state.enableResendToken||this.countdownToResendToken()}getCSRFCookie(){const rt=api$3.get("csrftoken");return rt||"invalid_token"}verifyToken(rt){this.setState({verifyLoading:!0,errorMessage:void 0});const{location:{search:nt}}=this.props,ut=new URLSearchParams(nt).get("token");if(ut){logger$5.debug("verifyToken","Validating a signup token with MFA");const dt={token:ut,smstoken:rt};axios.post("/server/patient/validate_email",dt,{headers:{"Content-Type":"application/json","X-CSRFTOKEN":this.getCSRFCookie()}}).then(pt=>{pt.data.success&&this.props.history.replace("/px/signup")}).catch(pt=>{this.setState({verifyLoading:!1})})}else{logger$5.debug("verifyToken","Validate MFA token to login");const dt={smstoken:rt};axios.post(BACKEND_MFA_ENDPOINT,dt,{headers:{"Content-Type":"application/json","X-CSRFTOKEN":this.getCSRFCookie()}}).then(pt=>{this.goToNextPage(pt.data.forcedReset),this.setState({verifyLoading:!1,verifyData:pt.data})}).catch(pt=>{pt.response.status===403?this.setState({errorMessage:MFA_MAX_ATTEMPTS_ERROR}):this.setState({errorMessage:MFA_ERROR}),this.setState({verifyLoading:!1,verifyData:pt.response.data})})}}countdownToResendToken(){this.setState({enableResendToken:!1}),setTimeout(()=>this.setState({enableResendToken:!0}),this.state.minutesUntilEnabled*6e4);const rt=setInterval(()=>{this.setState({minutesUntilEnabled:this.state.minutesUntilEnabled-1})},6e4);this.setState({intervalId:rt})}handleResendToken(){this.state.enableResendToken&&(this.countdownToResendToken(),this.getToken())}getToken(){this.setState({sendTokenLoading:!0});const{location:{search:rt}}=this.props,lt=new URLSearchParams(rt).get("token"),ut={};lt&&(ut.usertoken=lt),axios.post("/server/patient/auth/send_token",ut,{headers:{"Content-Type":"application/json","X-CSRFTOKEN":this.getCSRFCookie()}}).then(dt=>{this.setState({sendTokenLoading:!1,sendTokenData:dt.data})}).catch(dt=>{logger$5.info("getToken","error: ",dt),this.setState({sendTokenLoading:!1}),this.props.history.replace(LOGIN_ENDPOINT)})}render(){const{location:{search:rt,state:nt}}=this.props;if(this.inviteReferral=rt.includes("invite=true"),this.state.goBack)return jsxRuntimeExports.jsx(Redirect,{from:"/px/mfa",to:LOGIN_ENDPOINT});const ut=new URLSearchParams(rt).get("token");if(this.props.location&&this.props.location.state||this.inviteReferral||ut)return this.props.location.state=nt||{},this.sendTokenRender();let dt="/";return this.nextAddress&&(dt=`?next=${this.nextAddress}`),jsxRuntimeExports.jsx(Redirect,{to:dt})}}const apolloComponent$1=withApollo(MultifactorAuth),PXMultifactorAuth=withRouter(apolloComponent$1),LoginBox=({header:et,handleClick:tt})=>jsxRuntimeExports.jsxs("div",{className:"login-box",children:[jsxRuntimeExports.jsx(SvgGenesisCareLogoMobileGreenText,{}),jsxRuntimeExports.jsx("div",{className:"login-header",children:et}),jsxRuntimeExports.jsx(Button,{onClick:tt,name:"login",variant:"contained",children:"Login"})]}),HOME_CONTENT={HEADER:"Introducing the Patient Portal",SUBHEADER:"Our new portal offers you a way to connect to us and to your treatment plan when you need it most.",LOGIN_HEADER:"Log in to Patient Portal",INFO_TILE:{ALL_DEVICES:{header:"On all devices",body:"View on your mobile, tablet or desktop."},APPOINTMENTS:{header:"Appointments",body:"Be up-to-date with your schedule and plan ahead."},SAFE_SECURE:{header:"Safe & Secure",body:"Your personal data is secure with us."},INFORMATION:{header:"Information",body:"Be better informed on what's important to you."}},TC_LINK:"Terms & Conditions • Privacy Policy"},breakpointDesktop=1200,Home=({history:et})=>{const{HEADER:tt,SUBHEADER:rt,LOGIN_HEADER:nt,INFO_TILE:lt,TC_LINK:ut}=HOME_CONTENT,[dt,pt]=reactExports.useState(window.innerWidth);reactExports.useEffect(()=>{window.addEventListener("resize",()=>pt(window.innerWidth))},[]);const ht=mt=>{mt.preventDefault();const xt=window.location.search;et.push(`/login${xt}`)};return jsxRuntimeExports.jsxs("div",{className:"home-page",children:[jsxRuntimeExports.jsx("div",{className:"hero-container",children:dt>breakpointDesktop?jsxRuntimeExports.jsx(SvgGenesisCareLogoDesktopWhiteText,{}):jsxRuntimeExports.jsx(LoginBox,{header:nt,handleClick:ht})}),jsxRuntimeExports.jsxs("div",{className:"sub-header-container",children:[jsxRuntimeExports.jsx("div",{className:"header-text",children:tt}),jsxRuntimeExports.jsx("div",{className:"sub-text",children:rt})]}),jsxRuntimeExports.jsxs("div",{className:"details-container",children:[dt>breakpointDesktop&&jsxRuntimeExports.jsx(LoginBox,{header:nt,handleClick:ht}),jsxRuntimeExports.jsxs("div",{className:"info-container",children:[jsxRuntimeExports.jsxs("div",{className:"info-col-1",children:[jsxRuntimeExports.jsx(InfoTile,{name:lt.ALL_DEVICES,children:jsxRuntimeExports.jsx(SvgMobileDeviceIcon,{})}),jsxRuntimeExports.jsx(InfoTile,{name:lt.APPOINTMENTS,children:jsxRuntimeExports.jsx(SvgTabletDeviceIcon,{})})]}),jsxRuntimeExports.jsxs("div",{className:"info-col-2",children:[jsxRuntimeExports.jsx(InfoTile,{name:lt.SAFE_SECURE,children:jsxRuntimeExports.jsx(SvgSecurityIcon,{})}),jsxRuntimeExports.jsx(InfoTile,{name:lt.INFORMATION,children:jsxRuntimeExports.jsx(SvgInformationIcon,{})})]})]}),jsxRuntimeExports.jsx("div",{className:"tc-link",children:jsxRuntimeExports.jsx(Link$2,{to:"/px/termsAndConditions",children:ut})})]})]})};var highcharts={exports:{}};(function(et){(function(tt,rt){et.exports?(rt.default=rt,et.exports=tt&&tt.document?rt(tt):rt):(tt.Highcharts&&tt.Highcharts.error(16,!0),tt.Highcharts=rt(tt))})(typeof window<"u"?window:commonjsGlobal$1,function(tt){var rt={};function nt(lt,ut,dt,pt){!lt.hasOwnProperty(ut)&&(lt[ut]=pt.apply(null,dt),tt&&typeof CustomEvent=="function"&&tt.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:ut,module:lt[ut]}})))}return nt(rt,"Core/Globals.js",[],function(){var lt,ut;return(ut=lt||(lt={})).SVG_NS="http://www.w3.org/2000/svg",ut.product="Highcharts",ut.version="11.4.7",ut.win=tt!==void 0?tt:{},ut.doc=ut.win.document,ut.svg=ut.doc&&ut.doc.createElementNS&&!!ut.doc.createElementNS(ut.SVG_NS,"svg").createSVGRect,ut.userAgent=ut.win.navigator&&ut.win.navigator.userAgent||"",ut.isChrome=ut.win.chrome,ut.isFirefox=ut.userAgent.indexOf("Firefox")!==-1,ut.isMS=/(edge|msie|trident)/i.test(ut.userAgent)&&!ut.win.opera,ut.isSafari=!ut.isChrome&&ut.userAgent.indexOf("Safari")!==-1,ut.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(ut.userAgent),ut.isWebKit=ut.userAgent.indexOf("AppleWebKit")!==-1,ut.deg2rad=2*Math.PI/360,ut.hasBidiBug=ut.isFirefox&&4>parseInt(ut.userAgent.split("Firefox/")[1],10),ut.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],ut.noop=function(){},ut.supportsPassiveEvents=function(){let dt=!1;if(!ut.isMS){let pt=Object.defineProperty({},"passive",{get:function(){dt=!0}});ut.win.addEventListener&&ut.win.removeEventListener&&(ut.win.addEventListener("testPassive",ut.noop,pt),ut.win.removeEventListener("testPassive",ut.noop,pt))}return dt}(),ut.charts=[],ut.composed=[],ut.dateFormats={},ut.seriesTypes={},ut.symbolSizes={},ut.chartCount=0,lt}),nt(rt,"Core/Utilities.js",[rt["Core/Globals.js"]],function(lt){let ut,{charts:dt,doc:pt,win:ht}=lt;function mt($t,jt,Wt,Ut){let Vt=jt?"Highcharts error":"Highcharts warning";$t===32&&($t=`${Vt}: Deprecated member`);let Ht=zt($t),Gt=Ht?`${Vt} #${$t}: www.highcharts.com/errors/${$t}/`:$t.toString();if(Ut!==void 0){let Zt="";Ht&&(Gt+="?"),Jt(Ut,function(Xt,er){Zt+=`
 - ${er}: ${Xt}`,Ht&&(Gt+=encodeURI(er)+"="+encodeURI(Xt))}),Gt+=Zt}Bt(lt,"displayError",{chart:Wt,code:$t,message:Gt,params:Ut},function(){if(jt)throw Error(Gt);ht.console&&mt.messages.indexOf(Gt)===-1&&console.warn(Gt)}),mt.messages.push(Gt)}function xt($t,jt){return parseInt($t,jt||10)}function Mt($t){return typeof $t=="string"}function vt($t){let jt=Object.prototype.toString.call($t);return jt==="[object Array]"||jt==="[object Array Iterator]"}function Ot($t,jt){return!!$t&&typeof $t=="object"&&(!jt||!vt($t))}function At($t){return Ot($t)&&typeof $t.nodeType=="number"}function Rt($t){let jt=$t&&$t.constructor;return!!(Ot($t,!0)&&!At($t)&&jt&&jt.name&&jt.name!=="Object")}function zt($t){return typeof $t=="number"&&!isNaN($t)&&$t<1/0&&$t>-1/0}function Tt($t){return $t!=null}function Ct($t,jt,Wt){let Ut,Vt=Mt(jt)&&!Tt(Wt),Ht=(Gt,Zt)=>{Tt(Gt)?$t.setAttribute(Zt,Gt):Vt?(Ut=$t.getAttribute(Zt))||Zt!=="class"||(Ut=$t.getAttribute(Zt+"Name")):$t.removeAttribute(Zt)};return Mt(jt)?Ht(Wt,jt):Jt(jt,Ht),Ut}function It($t){return vt($t)?$t:[$t]}function Dt($t,jt){let Wt;for(Wt in $t||($t={}),jt)$t[Wt]=jt[Wt];return $t}function kt(){let $t=arguments,jt=$t.length;for(let Wt=0;Wt<jt;Wt++){let Ut=$t[Wt];if(Ut!=null)return Ut}}function qt($t,jt){Dt($t.style,jt)}function Nt($t){return Math.pow(10,Math.floor(Math.log($t)/Math.LN10))}function Yt($t,jt){return $t>1e14?$t:parseFloat($t.toPrecision(jt||14))}(mt||(mt={})).messages=[],Math.easeInOutSine=function($t){return-.5*(Math.cos(Math.PI*$t)-1)};let Kt=Array.prototype.find?function($t,jt){return $t.find(jt)}:function($t,jt){let Wt,Ut=$t.length;for(Wt=0;Wt<Ut;Wt++)if(jt($t[Wt],Wt))return $t[Wt]};function Jt($t,jt,Wt){for(let Ut in $t)Object.hasOwnProperty.call($t,Ut)&&jt.call(Wt||$t[Ut],$t[Ut],Ut,$t)}function Qt($t,jt,Wt){function Ut(Gt,Zt){let Xt=$t.removeEventListener;Xt&&Xt.call($t,Gt,Zt,!1)}function Vt(Gt){let Zt,Xt;$t.nodeName&&(jt?(Zt={})[jt]=!0:Zt=Gt,Jt(Zt,function(er,nr){if(Gt[nr])for(Xt=Gt[nr].length;Xt--;)Ut(nr,Gt[nr][Xt].fn)}))}let Ht=typeof $t=="function"&&$t.prototype||$t;if(Object.hasOwnProperty.call(Ht,"hcEvents")){let Gt=Ht.hcEvents;if(jt){let Zt=Gt[jt]||[];Wt?(Gt[jt]=Zt.filter(function(Xt){return Wt!==Xt.fn}),Ut(jt,Wt)):(Vt(Gt),Gt[jt]=[])}else Vt(Gt),delete Ht.hcEvents}}function Bt($t,jt,Wt,Ut){if(Wt=Wt||{},pt.createEvent&&($t.dispatchEvent||$t.fireEvent&&$t!==lt)){let Vt=pt.createEvent("Events");Vt.initEvent(jt,!0,!0),Wt=Dt(Vt,Wt),$t.dispatchEvent?$t.dispatchEvent(Wt):$t.fireEvent(jt,Wt)}else if($t.hcEvents){Wt.target||Dt(Wt,{preventDefault:function(){Wt.defaultPrevented=!0},target:$t,type:jt});let Vt=[],Ht=$t,Gt=!1;for(;Ht.hcEvents;)Object.hasOwnProperty.call(Ht,"hcEvents")&&Ht.hcEvents[jt]&&(Vt.length&&(Gt=!0),Vt.unshift.apply(Vt,Ht.hcEvents[jt])),Ht=Object.getPrototypeOf(Ht);Gt&&Vt.sort((Zt,Xt)=>Zt.order-Xt.order),Vt.forEach(Zt=>{Zt.fn.call($t,Wt)===!1&&Wt.preventDefault()})}Ut&&!Wt.defaultPrevented&&Ut.call($t,Wt)}Jt({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function($t,jt){lt[jt]=function(Wt){return mt(32,!1,void 0,{[`Highcharts.${jt}`]:`use Array.${$t}`}),Array.prototype[$t].apply(Wt,[].slice.call(arguments,1))}});let Ft=function(){let $t=Math.random().toString(36).substring(2,9)+"-",jt=0;return function(){return"highcharts-"+(ut?"":$t)+jt++}}();return ht.jQuery&&(ht.jQuery.fn.highcharts=function(){let $t=[].slice.call(arguments);if(this[0])return $t[0]?(new lt[Mt($t[0])?$t.shift():"Chart"](this[0],$t[0],$t[1]),this):dt[Ct(this[0],"data-highcharts-chart")]}),{addEvent:function($t,jt,Wt,Ut={}){let Vt=typeof $t=="function"&&$t.prototype||$t;Object.hasOwnProperty.call(Vt,"hcEvents")||(Vt.hcEvents={});let Ht=Vt.hcEvents;lt.Point&&$t instanceof lt.Point&&$t.series&&$t.series.chart&&($t.series.chart.runTrackerClick=!0);let Gt=$t.addEventListener;Gt&&Gt.call($t,jt,Wt,!!lt.supportsPassiveEvents&&{passive:Ut.passive===void 0?jt.indexOf("touch")!==-1:Ut.passive,capture:!1}),Ht[jt]||(Ht[jt]=[]);let Zt={fn:Wt,order:typeof Ut.order=="number"?Ut.order:1/0};return Ht[jt].push(Zt),Ht[jt].sort((Xt,er)=>Xt.order-er.order),function(){Qt($t,jt,Wt)}},arrayMax:function($t){let jt=$t.length,Wt=$t[0];for(;jt--;)$t[jt]>Wt&&(Wt=$t[jt]);return Wt},arrayMin:function($t){let jt=$t.length,Wt=$t[0];for(;jt--;)$t[jt]<Wt&&(Wt=$t[jt]);return Wt},attr:Ct,clamp:function($t,jt,Wt){return $t>jt?$t<Wt?$t:Wt:jt},clearTimeout:function($t){Tt($t)&&clearTimeout($t)},correctFloat:Yt,createElement:function($t,jt,Wt,Ut,Vt){let Ht=pt.createElement($t);return jt&&Dt(Ht,jt),Vt&&qt(Ht,{padding:"0",border:"none",margin:"0"}),Wt&&qt(Ht,Wt),Ut&&Ut.appendChild(Ht),Ht},crisp:($t,jt=0,Wt)=>{let Ut=jt%2/2,Vt=Wt?-1:1;return(Math.round($t*Vt-Ut)+Ut)*Vt},css:qt,defined:Tt,destroyObjectProperties:function($t,jt,Wt){Jt($t,function(Ut,Vt){Ut!==jt&&(Ut!=null&&Ut.destroy)&&Ut.destroy(),(Ut!=null&&Ut.destroy||!Wt)&&delete $t[Vt]})},diffObjects:function($t,jt,Wt,Ut){let Vt={};return function Ht(Gt,Zt,Xt,er){let nr=Wt?Zt:Gt;Jt(Gt,function(or,rr){if(!er&&Ut&&Ut.indexOf(rr)>-1&&Zt[rr]){or=It(or),Xt[rr]=[];for(let cr=0;cr<Math.max(or.length,Zt[rr].length);cr++)Zt[rr][cr]&&(or[cr]===void 0?Xt[rr][cr]=Zt[rr][cr]:(Xt[rr][cr]={},Ht(or[cr],Zt[rr][cr],Xt[rr][cr],er+1)))}else Ot(or,!0)&&!or.nodeType?(Xt[rr]=vt(or)?[]:{},Ht(or,Zt[rr]||{},Xt[rr],er+1),Object.keys(Xt[rr]).length!==0||rr==="colorAxis"&&er===0||delete Xt[rr]):(Gt[rr]!==Zt[rr]||rr in Gt&&!(rr in Zt))&&rr!=="__proto__"&&rr!=="constructor"&&(Xt[rr]=nr[rr])})}($t,jt,Vt,0),Vt},discardElement:function($t){$t&&$t.parentElement&&$t.parentElement.removeChild($t)},erase:function($t,jt){let Wt=$t.length;for(;Wt--;)if($t[Wt]===jt){$t.splice(Wt,1);break}},error:mt,extend:Dt,extendClass:function($t,jt){let Wt=function(){};return Wt.prototype=new $t,Dt(Wt.prototype,jt),Wt},find:Kt,fireEvent:Bt,getClosestDistance:function($t,jt){let Wt,Ut,Vt,Ht=!jt;return $t.forEach(Gt=>{if(Gt.length>1)for(Vt=Gt.length-1;Vt>0;Vt--)(Ut=Gt[Vt]-Gt[Vt-1])<0&&!Ht?(jt==null||jt(),jt=void 0):Ut&&(Wt===void 0||Ut<Wt)&&(Wt=Ut)}),Wt},getMagnitude:Nt,getNestedProperty:function($t,jt){let Wt=$t.split(".");for(;Wt.length&&Tt(jt);){let Ut=Wt.shift();if(Ut===void 0||Ut==="__proto__")return;if(Ut==="this"){let Ht;return Ot(jt)&&(Ht=jt["@this"]),Ht??jt}let Vt=jt[Ut];if(!Tt(Vt)||typeof Vt=="function"||typeof Vt.nodeType=="number"||Vt===ht)return;jt=Vt}return jt},getStyle:function $t(jt,Wt,Ut){let Vt;if(Wt==="width"){let Gt=Math.min(jt.offsetWidth,jt.scrollWidth),Zt=jt.getBoundingClientRect&&jt.getBoundingClientRect().width;return Zt<Gt&&Zt>=Gt-1&&(Gt=Math.floor(Zt)),Math.max(0,Gt-($t(jt,"padding-left",!0)||0)-($t(jt,"padding-right",!0)||0))}if(Wt==="height")return Math.max(0,Math.min(jt.offsetHeight,jt.scrollHeight)-($t(jt,"padding-top",!0)||0)-($t(jt,"padding-bottom",!0)||0));let Ht=ht.getComputedStyle(jt,void 0);return Ht&&(Vt=Ht.getPropertyValue(Wt),kt(Ut,Wt!=="opacity")&&(Vt=xt(Vt))),Vt},inArray:function($t,jt,Wt){return mt(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),jt.indexOf($t,Wt)},insertItem:function($t,jt){let Wt,Ut=$t.options.index,Vt=jt.length;for(Wt=$t.options.isInternal?Vt:0;Wt<Vt+1;Wt++)if(!jt[Wt]||zt(Ut)&&Ut<kt(jt[Wt].options.index,jt[Wt]._i)||jt[Wt].options.isInternal){jt.splice(Wt,0,$t);break}return Wt},isArray:vt,isClass:Rt,isDOMElement:At,isFunction:function($t){return typeof $t=="function"},isNumber:zt,isObject:Ot,isString:Mt,keys:function($t){return mt(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys($t)},merge:function(){let $t,jt=arguments,Wt={},Ut=function(Ht,Gt){return typeof Ht!="object"&&(Ht={}),Jt(Gt,function(Zt,Xt){Xt!=="__proto__"&&Xt!=="constructor"&&(!Ot(Zt,!0)||Rt(Zt)||At(Zt)?Ht[Xt]=Gt[Xt]:Ht[Xt]=Ut(Ht[Xt]||{},Zt))}),Ht};jt[0]===!0&&(Wt=jt[1],jt=Array.prototype.slice.call(jt,2));let Vt=jt.length;for($t=0;$t<Vt;$t++)Wt=Ut(Wt,jt[$t]);return Wt},normalizeTickInterval:function($t,jt,Wt,Ut,Vt){let Ht,Gt=$t;Wt=kt(Wt,Nt($t));let Zt=$t/Wt;for(!jt&&(jt=Vt?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],Ut===!1&&(Wt===1?jt=jt.filter(function(Xt){return Xt%1==0}):Wt<=.1&&(jt=[1/Wt]))),Ht=0;Ht<jt.length&&(Gt=jt[Ht],(!Vt||!(Gt*Wt>=$t))&&(Vt||!(Zt<=(jt[Ht]+(jt[Ht+1]||jt[Ht]))/2)));Ht++);return Yt(Gt*Wt,-Math.round(Math.log(.001)/Math.LN10))},objectEach:Jt,offset:function($t){let jt=pt.documentElement,Wt=$t.parentElement||$t.parentNode?$t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:Wt.top+(ht.pageYOffset||jt.scrollTop)-(jt.clientTop||0),left:Wt.left+(ht.pageXOffset||jt.scrollLeft)-(jt.clientLeft||0),width:Wt.width,height:Wt.height}},pad:function($t,jt,Wt){return Array((jt||2)+1-String($t).replace("-","").length).join(Wt||"0")+$t},pick:kt,pInt:xt,pushUnique:function($t,jt){return 0>$t.indexOf(jt)&&!!$t.push(jt)},relativeLength:function($t,jt,Wt){return/%$/.test($t)?jt*parseFloat($t)/100+(Wt||0):parseFloat($t)},removeEvent:Qt,replaceNested:function($t,...jt){let Wt,Ut;do for(Ut of(Wt=$t,jt))$t=$t.replace(Ut[0],Ut[1]);while($t!==Wt);return $t},splat:It,stableSort:function($t,jt){let Wt,Ut,Vt=$t.length;for(Ut=0;Ut<Vt;Ut++)$t[Ut].safeI=Ut;for($t.sort(function(Ht,Gt){return(Wt=jt(Ht,Gt))===0?Ht.safeI-Gt.safeI:Wt}),Ut=0;Ut<Vt;Ut++)delete $t[Ut].safeI},syncTimeout:function($t,jt,Wt){return jt>0?setTimeout($t,jt,Wt):($t.call(0,Wt),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:Ft,useSerialIds:function($t){return ut=kt($t,ut)},wrap:function($t,jt,Wt){let Ut=$t[jt];$t[jt]=function(){let Vt=arguments,Ht=this;return Wt.apply(this,[function(){return Ut.apply(Ht,arguments.length?arguments:Vt)}].concat([].slice.call(arguments)))}}}}),nt(rt,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),nt(rt,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),nt(rt,"Core/Time.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{win:dt}=lt,{defined:pt,error:ht,extend:mt,isNumber:xt,isObject:Mt,merge:vt,objectEach:Ot,pad:At,pick:Rt,splat:zt,timeUnits:Tt}=ut,Ct=lt.isSafari&&dt.Intl&&dt.Intl.DateTimeFormat.prototype.formatRange,It=lt.isSafari&&dt.Intl&&!dt.Intl.DateTimeFormat.prototype.formatRange;class Dt{constructor(qt){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=dt.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(qt)}get(qt,Nt){if(this.variableTimezone||this.timezoneOffset){let Yt=Nt.getTime(),Kt=Yt-this.getTimezoneOffset(Nt);Nt.setTime(Kt);let Jt=Nt["getUTC"+qt]();return Nt.setTime(Yt),Jt}return this.useUTC?Nt["getUTC"+qt]():Nt["get"+qt]()}set(qt,Nt,Yt){if(this.variableTimezone||this.timezoneOffset){if(qt==="Milliseconds"||qt==="Seconds"||qt==="Minutes"&&this.getTimezoneOffset(Nt)%36e5==0)return Nt["setUTC"+qt](Yt);let Kt=this.getTimezoneOffset(Nt),Jt=Nt.getTime()-Kt;Nt.setTime(Jt),Nt["setUTC"+qt](Yt);let Qt=this.getTimezoneOffset(Nt);return Jt=Nt.getTime()+Qt,Nt.setTime(Jt)}return this.useUTC||Ct&&qt==="FullYear"?Nt["setUTC"+qt](Yt):Nt["set"+qt](Yt)}update(qt={}){let Nt=Rt(qt.useUTC,!0);this.options=qt=vt(!0,this.options,qt),this.Date=qt.Date||dt.Date||Date,this.useUTC=Nt,this.timezoneOffset=Nt&&qt.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=Nt&&!!(qt.getTimezoneOffset||qt.timezone)}makeTime(qt,Nt,Yt,Kt,Jt,Qt){let Bt,Ft,$t;return this.useUTC?(Bt=this.Date.UTC.apply(0,arguments),Ft=this.getTimezoneOffset(Bt),Bt+=Ft,Ft!==($t=this.getTimezoneOffset(Bt))?Bt+=$t-Ft:Ft-36e5!==this.getTimezoneOffset(Bt-36e5)||It||(Bt-=36e5)):Bt=new this.Date(qt,Nt,Rt(Yt,1),Rt(Kt,0),Rt(Jt,0),Rt(Qt,0)).getTime(),Bt}timezoneOffsetFunction(){let qt=this,Nt=this.options,Yt=Nt.getTimezoneOffset;return this.useUTC?Nt.timezone?Kt=>{try{let Jt=`shortOffset,${Nt.timezone||""}`,[Qt,Bt,Ft,$t,jt=0]=(Dt.formatCache[Jt]=Dt.formatCache[Jt]||Intl.DateTimeFormat("en",{timeZone:Nt.timezone,timeZoneName:"shortOffset"})).format(Kt).split(/(GMT|:)/).map(Number),Wt=-(36e5*(Ft+jt/60));if(xt(Wt))return Wt}catch{ht(34)}return 0}:this.useUTC&&Yt?Kt=>6e4*Yt(Kt.valueOf()):()=>6e4*(qt.timezoneOffset||0):Kt=>6e4*new Date(Kt.toString()).getTimezoneOffset()}dateFormat(qt,Nt,Yt){if(!pt(Nt)||isNaN(Nt))return lt.defaultOptions.lang&&lt.defaultOptions.lang.invalidDate||"";qt=Rt(qt,"%Y-%m-%d %H:%M:%S");let Kt=this,Jt=new this.Date(Nt),Qt=this.get("Hours",Jt),Bt=this.get("Day",Jt),Ft=this.get("Date",Jt),$t=this.get("Month",Jt),jt=this.get("FullYear",Jt),Wt=lt.defaultOptions.lang,Ut=Wt&&Wt.weekdays,Vt=Wt&&Wt.shortWeekdays;return Ot(mt({a:Vt?Vt[Bt]:Ut[Bt].substr(0,3),A:Ut[Bt],d:At(Ft),e:At(Ft,2," "),w:Bt,b:Wt.shortMonths[$t],B:Wt.months[$t],m:At($t+1),o:$t+1,y:jt.toString().substr(2,2),Y:jt,H:At(Qt),k:Qt,I:At(Qt%12||12),l:Qt%12||12,M:At(this.get("Minutes",Jt)),p:Qt<12?"AM":"PM",P:Qt<12?"am":"pm",S:At(this.get("Seconds",Jt)),L:At(Math.floor(Nt%1e3),3)},lt.dateFormats),function(Ht,Gt){for(;qt.indexOf("%"+Gt)!==-1;)qt=qt.replace("%"+Gt,typeof Ht=="function"?Ht.call(Kt,Nt):Ht)}),Yt?qt.substr(0,1).toUpperCase()+qt.substr(1):qt}resolveDTLFormat(qt){return Mt(qt,!0)?qt:{main:(qt=zt(qt))[0],from:qt[1],to:qt[2]}}getTimeTicks(qt,Nt,Yt,Kt){let Jt,Qt,Bt,Ft,$t=this,jt=$t.Date,Wt=[],Ut={},Vt=new jt(Nt),Ht=qt.unitRange,Gt=qt.count||1;if(Kt=Rt(Kt,1),pt(Nt)){$t.set("Milliseconds",Vt,Ht>=Tt.second?0:Gt*Math.floor($t.get("Milliseconds",Vt)/Gt)),Ht>=Tt.second&&$t.set("Seconds",Vt,Ht>=Tt.minute?0:Gt*Math.floor($t.get("Seconds",Vt)/Gt)),Ht>=Tt.minute&&$t.set("Minutes",Vt,Ht>=Tt.hour?0:Gt*Math.floor($t.get("Minutes",Vt)/Gt)),Ht>=Tt.hour&&$t.set("Hours",Vt,Ht>=Tt.day?0:Gt*Math.floor($t.get("Hours",Vt)/Gt)),Ht>=Tt.day&&$t.set("Date",Vt,Ht>=Tt.month?1:Math.max(1,Gt*Math.floor($t.get("Date",Vt)/Gt))),Ht>=Tt.month&&($t.set("Month",Vt,Ht>=Tt.year?0:Gt*Math.floor($t.get("Month",Vt)/Gt)),Qt=$t.get("FullYear",Vt)),Ht>=Tt.year&&(Qt-=Qt%Gt,$t.set("FullYear",Vt,Qt)),Ht===Tt.week&&(Ft=$t.get("Day",Vt),$t.set("Date",Vt,$t.get("Date",Vt)-Ft+Kt+(Ft<Kt?-7:0))),Qt=$t.get("FullYear",Vt);let Zt=$t.get("Month",Vt),Xt=$t.get("Date",Vt),er=$t.get("Hours",Vt);Nt=Vt.getTime(),($t.variableTimezone||!$t.useUTC)&&pt(Yt)&&(Bt=Yt-Nt>4*Tt.month||$t.getTimezoneOffset(Nt)!==$t.getTimezoneOffset(Yt));let nr=Vt.getTime();for(Jt=1;nr<Yt;)Wt.push(nr),Ht===Tt.year?nr=$t.makeTime(Qt+Jt*Gt,0):Ht===Tt.month?nr=$t.makeTime(Qt,Zt+Jt*Gt):Bt&&(Ht===Tt.day||Ht===Tt.week)?nr=$t.makeTime(Qt,Zt,Xt+Jt*Gt*(Ht===Tt.day?1:7)):Bt&&Ht===Tt.hour&&Gt>1?nr=$t.makeTime(Qt,Zt,Xt,er+Jt*Gt):nr+=Ht*Gt,Jt++;Wt.push(nr),Ht<=Tt.hour&&Wt.length<1e4&&Wt.forEach(function(or){or%18e5==0&&$t.dateFormat("%H%M%S%L",or)==="000000000"&&(Ut[or]="day")})}return Wt.info=mt(qt,{higherRanks:Ut,totalRange:Ht*Gt}),Wt}getDateFormat(qt,Nt,Yt,Kt){let Jt=this.dateFormat("%m-%d %H:%M:%S.%L",Nt),Qt="01-01 00:00:00.000",Bt={millisecond:15,second:12,minute:9,hour:6,day:3},Ft="millisecond",$t=Ft;for(Ft in Tt){if(qt===Tt.week&&+this.dateFormat("%w",Nt)===Yt&&Jt.substr(6)===Qt.substr(6)){Ft="week";break}if(Tt[Ft]>qt){Ft=$t;break}if(Bt[Ft]&&Jt.substr(Bt[Ft])!==Qt.substr(Bt[Ft]))break;Ft!=="week"&&($t=Ft)}return this.resolveDTLFormat(Kt[Ft]).main}}return Dt.formatCache={},Dt}),nt(rt,"Core/Defaults.js",[rt["Core/Chart/ChartDefaults.js"],rt["Core/Globals.js"],rt["Core/Color/Palettes.js"],rt["Core/Time.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){let{isTouchDevice:mt}=ut,{fireEvent:xt,merge:Mt}=ht,vt={colors:dt.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:lt,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:At=>Math.sqrt(1-Math.pow(At-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:mt?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};vt.chart.styledMode=!1;let Ot=new pt(vt.time);return{defaultOptions:vt,defaultTime:Ot,getOptions:function(){return vt},setOptions:function(At){return xt(ut,"setOptions",{options:At}),Mt(!0,vt,At),(At.time||At.global)&&(ut.time?ut.time.update(Mt(vt.global,vt.time,At.global,At.time)):ut.time=Ot),vt}}}),nt(rt,"Core/Color/Color.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{isNumber:dt,merge:pt,pInt:ht}=ut;class mt{static parse(Mt){return Mt?new mt(Mt):mt.None}constructor(Mt){let vt,Ot,At,Rt;this.rgba=[NaN,NaN,NaN,NaN],this.input=Mt;let zt=lt.Color;if(zt&&zt!==mt)return new zt(Mt);if(typeof Mt=="object"&&Mt.stops!==void 0)this.stops=Mt.stops.map(Tt=>new mt(Tt[1]));else if(typeof Mt=="string"){if(this.input=Mt=mt.names[Mt.toLowerCase()]||Mt,Mt.charAt(0)==="#"){let Tt=Mt.length,Ct=parseInt(Mt.substr(1),16);Tt===7?Ot=[(16711680&Ct)>>16,(65280&Ct)>>8,255&Ct,1]:Tt===4&&(Ot=[(3840&Ct)>>4|(3840&Ct)>>8,(240&Ct)>>4|240&Ct,(15&Ct)<<4|15&Ct,1])}if(!Ot)for(At=mt.parsers.length;At--&&!Ot;)(vt=(Rt=mt.parsers[At]).regex.exec(Mt))&&(Ot=Rt.parse(vt))}Ot&&(this.rgba=Ot)}get(Mt){let vt=this.input,Ot=this.rgba;if(typeof vt=="object"&&this.stops!==void 0){let At=pt(vt);return At.stops=[].slice.call(At.stops),this.stops.forEach((Rt,zt)=>{At.stops[zt]=[At.stops[zt][0],Rt.get(Mt)]}),At}return Ot&&dt(Ot[0])?Mt!=="rgb"&&(Mt||Ot[3]!==1)?Mt==="a"?`${Ot[3]}`:"rgba("+Ot.join(",")+")":"rgb("+Ot[0]+","+Ot[1]+","+Ot[2]+")":vt}brighten(Mt){let vt=this.rgba;if(this.stops)this.stops.forEach(function(Ot){Ot.brighten(Mt)});else if(dt(Mt)&&Mt!==0)for(let Ot=0;Ot<3;Ot++)vt[Ot]+=ht(255*Mt),vt[Ot]<0&&(vt[Ot]=0),vt[Ot]>255&&(vt[Ot]=255);return this}setOpacity(Mt){return this.rgba[3]=Mt,this}tweenTo(Mt,vt){let Ot=this.rgba,At=Mt.rgba;if(!dt(Ot[0])||!dt(At[0]))return Mt.input||"none";let Rt=At[3]!==1||Ot[3]!==1;return(Rt?"rgba(":"rgb(")+Math.round(At[0]+(Ot[0]-At[0])*(1-vt))+","+Math.round(At[1]+(Ot[1]-At[1])*(1-vt))+","+Math.round(At[2]+(Ot[2]-At[2])*(1-vt))+(Rt?","+(At[3]+(Ot[3]-At[3])*(1-vt)):"")+")"}}return mt.names={white:"#ffffff",black:"#000000"},mt.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(xt){return[ht(xt[1]),ht(xt[2]),ht(xt[3]),parseFloat(xt[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(xt){return[ht(xt[1]),ht(xt[2]),ht(xt[3]),1]}}],mt.None=new mt(""),mt}),nt(rt,"Core/Animation/Fx.js",[rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{parse:pt}=lt,{win:ht}=ut,{isNumber:mt,objectEach:xt}=dt;class Mt{constructor(Ot,At,Rt){this.pos=NaN,this.options=At,this.elem=Ot,this.prop=Rt}dSetter(){let Ot=this.paths,At=Ot&&Ot[0],Rt=Ot&&Ot[1],zt=this.now||0,Tt=[];if(zt!==1&&At&&Rt)if(At.length===Rt.length&&zt<1)for(let Ct=0;Ct<Rt.length;Ct++){let It=At[Ct],Dt=Rt[Ct],kt=[];for(let qt=0;qt<Dt.length;qt++){let Nt=It[qt],Yt=Dt[qt];mt(Nt)&&mt(Yt)&&!(Dt[0]==="A"&&(qt===4||qt===5))?kt[qt]=Nt+zt*(Yt-Nt):kt[qt]=Yt}Tt.push(kt)}else Tt=Rt;else Tt=this.toD||[];this.elem.attr("d",Tt,void 0,!0)}update(){let Ot=this.elem,At=this.prop,Rt=this.now,zt=this.options.step;this[At+"Setter"]?this[At+"Setter"]():Ot.attr?Ot.element&&Ot.attr(At,Rt,null,!0):Ot.style[At]=Rt+this.unit,zt&&zt.call(Ot,Rt,this)}run(Ot,At,Rt){let zt=this,Tt=zt.options,Ct=function(kt){return!Ct.stopped&&zt.step(kt)},It=ht.requestAnimationFrame||function(kt){setTimeout(kt,13)},Dt=function(){for(let kt=0;kt<Mt.timers.length;kt++)Mt.timers[kt]()||Mt.timers.splice(kt--,1);Mt.timers.length&&It(Dt)};Ot!==At||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=Ot,this.end=At,this.unit=Rt,this.now=this.start,this.pos=0,Ct.elem=this.elem,Ct.prop=this.prop,Ct()&&Mt.timers.push(Ct)===1&&It(Dt)):(delete Tt.curAnim[this.prop],Tt.complete&&Object.keys(Tt.curAnim).length===0&&Tt.complete.call(this.elem))}step(Ot){let At,Rt,zt=+new Date,Tt=this.options,Ct=this.elem,It=Tt.complete,Dt=Tt.duration,kt=Tt.curAnim;return Ct.attr&&!Ct.element?At=!1:Ot||zt>=Dt+this.startTime?(this.now=this.end,this.pos=1,this.update(),kt[this.prop]=!0,Rt=!0,xt(kt,function(qt){qt!==!0&&(Rt=!1)}),Rt&&It&&It.call(Ct),At=!1):(this.pos=Tt.easing((zt-this.startTime)/Dt),this.now=this.start+(this.end-this.start)*this.pos,this.update(),At=!0),At}initPath(Ot,At,Rt){let zt=Ot.startX,Tt=Ot.endX,Ct=Rt.slice(),It=Ot.isArea,Dt=It?2:1,kt=At&&Rt.length>At.length&&Rt.hasStackedCliffs,qt,Nt,Yt,Kt,Jt=At&&At.slice();if(!Jt||kt)return[Ct,Ct];function Qt(Ft,$t){for(;Ft.length<Nt;){let jt=Ft[0],Wt=$t[Nt-Ft.length];if(Wt&&jt[0]==="M"&&(Wt[0]==="C"?Ft[0]=["C",jt[1],jt[2],jt[1],jt[2],jt[1],jt[2]]:Ft[0]=["L",jt[1],jt[2]]),Ft.unshift(jt),It){let Ut=Ft.pop();Ft.push(Ft[Ft.length-1],Ut)}}}function Bt(Ft){for(;Ft.length<Nt;){let $t=Ft[Math.floor(Ft.length/Dt)-1].slice();if($t[0]==="C"&&($t[1]=$t[5],$t[2]=$t[6]),It){let jt=Ft[Math.floor(Ft.length/Dt)].slice();Ft.splice(Ft.length/2,0,$t,jt)}else Ft.push($t)}}if(zt&&Tt&&Tt.length){for(Yt=0;Yt<zt.length;Yt++){if(zt[Yt]===Tt[0]){qt=Yt;break}if(zt[0]===Tt[Tt.length-zt.length+Yt]){qt=Yt,Kt=!0;break}if(zt[zt.length-1]===Tt[Tt.length-zt.length+Yt]){qt=zt.length-Yt;break}}qt===void 0&&(Jt=[])}return Jt.length&&mt(qt)&&(Nt=Ct.length+qt*Dt,Kt?(Qt(Jt,Ct),Bt(Ct)):(Qt(Ct,Jt),Bt(Jt))),[Jt,Ct]}fillSetter(){Mt.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,pt(this.start).tweenTo(pt(this.end),this.pos),void 0,!0)}}return Mt.timers=[],Mt}),nt(rt,"Core/Animation/AnimationUtilities.js",[rt["Core/Animation/Fx.js"],rt["Core/Utilities.js"]],function(lt,ut){let{defined:dt,getStyle:pt,isArray:ht,isNumber:mt,isObject:xt,merge:Mt,objectEach:vt,pick:Ot}=ut;function At(zt){return xt(zt)?Mt({duration:500,defer:0},zt):{duration:zt?500:0,defer:0}}function Rt(zt,Tt){let Ct=lt.timers.length;for(;Ct--;)lt.timers[Ct].elem!==zt||Tt&&Tt!==lt.timers[Ct].prop||(lt.timers[Ct].stopped=!0)}return{animate:function(zt,Tt,Ct){let It,Dt="",kt,qt,Nt;xt(Ct)||(Nt=arguments,Ct={duration:Nt[2],easing:Nt[3],complete:Nt[4]}),mt(Ct.duration)||(Ct.duration=400),Ct.easing=typeof Ct.easing=="function"?Ct.easing:Math[Ct.easing]||Math.easeInOutSine,Ct.curAnim=Mt(Tt),vt(Tt,function(Yt,Kt){Rt(zt,Kt),qt=new lt(zt,Ct,Kt),kt=void 0,Kt==="d"&&ht(Tt.d)?(qt.paths=qt.initPath(zt,zt.pathArray,Tt.d),qt.toD=Tt.d,It=0,kt=1):zt.attr?It=zt.attr(Kt):(It=parseFloat(pt(zt,Kt))||0,Kt!=="opacity"&&(Dt="px")),kt||(kt=Yt),typeof kt=="string"&&kt.match("px")&&(kt=kt.replace(/px/g,"")),qt.run(It,kt,Dt)})},animObject:At,getDeferredAnimation:function(zt,Tt,Ct){let It=At(Tt),Dt=Ct?[Ct]:zt.series,kt=0,qt=0;return Dt.forEach(Nt=>{let Yt=At(Nt.options.animation);kt=xt(Tt)&&dt(Tt.defer)?It.defer:Math.max(kt,Yt.duration+Yt.defer),qt=Math.min(It.duration,Yt.duration)}),zt.renderer.forExport&&(kt=0),{defer:Math.max(0,kt-qt),duration:Math.min(kt,qt)}},setAnimation:function(zt,Tt){Tt.renderer.globalAnimation=Ot(zt,Tt.options.chart.animation,!0)},stop:Rt}}),nt(rt,"Core/Renderer/HTML/AST.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{SVG_NS:dt,win:pt}=lt,{attr:ht,createElement:mt,css:xt,error:Mt,isFunction:vt,isString:Ot,objectEach:At,splat:Rt}=ut,{trustedTypes:zt}=pt,Tt=zt&&vt(zt.createPolicy)&&zt.createPolicy("highcharts",{createHTML:kt=>kt}),Ct=Tt?Tt.createHTML(""):"",It=function(){try{return!!new DOMParser().parseFromString(Ct,"text/html")}catch{return!1}}();class Dt{static filterUserAttributes(qt){return At(qt,(Nt,Yt)=>{let Kt=!0;Dt.allowedAttributes.indexOf(Yt)===-1&&(Kt=!1),["background","dynsrc","href","lowsrc","src"].indexOf(Yt)!==-1&&(Kt=Ot(Nt)&&Dt.allowedReferences.some(Jt=>Nt.indexOf(Jt)===0)),Kt||(Mt(33,!1,void 0,{"Invalid attribute in config":`${Yt}`}),delete qt[Yt]),Ot(Nt)&&qt[Yt]&&(qt[Yt]=Nt.replace(/</g,"&lt;"))}),qt}static parseStyle(qt){return qt.split(";").reduce((Nt,Yt)=>{let Kt=Yt.split(":").map(Qt=>Qt.trim()),Jt=Kt.shift();return Jt&&Kt.length&&(Nt[Jt.replace(/-([a-z])/g,Qt=>Qt[1].toUpperCase())]=Kt.join(":")),Nt},{})}static setElementHTML(qt,Nt){qt.innerHTML=Dt.emptyHTML,Nt&&new Dt(Nt).addToDOM(qt)}constructor(qt){this.nodes=typeof qt=="string"?this.parseMarkup(qt):qt}addToDOM(qt){return function Nt(Yt,Kt){let Jt;return Rt(Yt).forEach(function(Qt){let Bt,Ft=Qt.tagName,$t=Qt.textContent?lt.doc.createTextNode(Qt.textContent):void 0,jt=Dt.bypassHTMLFiltering;if(Ft)if(Ft==="#text")Bt=$t;else if(Dt.allowedTags.indexOf(Ft)!==-1||jt){let Wt=Ft==="svg"?dt:Kt.namespaceURI||dt,Ut=lt.doc.createElementNS(Wt,Ft),Vt=Qt.attributes||{};At(Qt,function(Ht,Gt){Gt!=="tagName"&&Gt!=="attributes"&&Gt!=="children"&&Gt!=="style"&&Gt!=="textContent"&&(Vt[Gt]=Ht)}),ht(Ut,jt?Vt:Dt.filterUserAttributes(Vt)),Qt.style&&xt(Ut,Qt.style),$t&&Ut.appendChild($t),Nt(Qt.children||[],Ut),Bt=Ut}else Mt(33,!1,void 0,{"Invalid tagName in config":Ft});Bt&&Kt.appendChild(Bt),Jt=Bt}),Jt}(this.nodes,qt)}parseMarkup(qt){let Nt,Yt=[];if(qt=qt.trim().replace(/ style=(["'])/g," data-style=$1"),It)Nt=new DOMParser().parseFromString(Tt?Tt.createHTML(qt):qt,"text/html");else{let Jt=mt("div");Jt.innerHTML=qt,Nt={body:Jt}}let Kt=(Jt,Qt)=>{let Bt=Jt.nodeName.toLowerCase(),Ft={tagName:Bt};Bt==="#text"&&(Ft.textContent=Jt.textContent||"");let $t=Jt.attributes;if($t){let jt={};[].forEach.call($t,Wt=>{Wt.name==="data-style"?Ft.style=Dt.parseStyle(Wt.value):jt[Wt.name]=Wt.value}),Ft.attributes=jt}if(Jt.childNodes.length){let jt=[];[].forEach.call(Jt.childNodes,Wt=>{Kt(Wt,jt)}),jt.length&&(Ft.children=jt)}Qt.push(Ft)};return[].forEach.call(Nt.body.childNodes,Jt=>Kt(Jt,Yt)),Yt}}return Dt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],Dt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],Dt.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],Dt.emptyHTML=Ct,Dt.bypassHTMLFiltering=!1,Dt}),nt(rt,"Core/Templating.js",[rt["Core/Defaults.js"],rt["Core/Utilities.js"]],function(lt,ut){let{defaultOptions:dt,defaultTime:pt}=lt,{extend:ht,getNestedProperty:mt,isArray:xt,isNumber:Mt,isObject:vt,pick:Ot,pInt:At}=ut,Rt={add:(Ct,It)=>Ct+It,divide:(Ct,It)=>It!==0?Ct/It:"",eq:(Ct,It)=>Ct==It,each:function(Ct){let It=arguments[arguments.length-1];return!!xt(Ct)&&Ct.map((Dt,kt)=>zt(It.body,ht(vt(Dt)?Dt:{"@this":Dt},{"@index":kt,"@first":kt===0,"@last":kt===Ct.length-1}))).join("")},ge:(Ct,It)=>Ct>=It,gt:(Ct,It)=>Ct>It,if:Ct=>!!Ct,le:(Ct,It)=>Ct<=It,lt:(Ct,It)=>Ct<It,multiply:(Ct,It)=>Ct*It,ne:(Ct,It)=>Ct!=It,subtract:(Ct,It)=>Ct-It,unless:Ct=>!Ct};function zt(Ct="",It,Dt){let kt=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,qt=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,Nt=[],Yt=/f$/,Kt=/\.(\d)/,Jt=dt.lang,Qt=Dt&&Dt.time||pt,Bt=Dt&&Dt.numberFormatter||Tt,Ft=(Vt="")=>{let Ht;return Vt==="true"||Vt!=="false"&&((Ht=Number(Vt)).toString()===Vt?Ht:mt(Vt,It))},$t,jt,Wt=0,Ut;for(;($t=kt.exec(Ct))!==null;){let Vt=qt.exec($t[1]);Vt&&($t=Vt,Ut=!0),jt&&jt.isBlock||(jt={ctx:It,expression:$t[1],find:$t[0],isBlock:$t[1].charAt(0)==="#",start:$t.index,startInner:$t.index+$t[0].length,length:$t[0].length});let Ht=$t[1].split(" ")[0].replace("#","");Rt[Ht]&&(jt.isBlock&&Ht===jt.fn&&Wt++,jt.fn||(jt.fn=Ht));let Gt=$t[1]==="else";if(jt.isBlock&&jt.fn&&($t[1]===`/${jt.fn}`||Gt))if(Wt)!Gt&&Wt--;else{let Zt=jt.startInner,Xt=Ct.substr(Zt,$t.index-Zt);jt.body===void 0?(jt.body=Xt,jt.startInner=$t.index+$t[0].length):jt.elseBody=Xt,jt.find+=Xt+$t[0],Gt||(Nt.push(jt),jt=void 0)}else jt.isBlock||Nt.push(jt);if(Vt&&!(jt!=null&&jt.isBlock))break}return Nt.forEach(Vt=>{let Ht,Gt,{body:Zt,elseBody:Xt,expression:er,fn:nr}=Vt;if(nr){let or=[Vt],rr=er.split(" ");for(Gt=Rt[nr].length;Gt--;)or.unshift(Ft(rr[Gt+1]));Ht=Rt[nr].apply(It,or),Vt.isBlock&&typeof Ht=="boolean"&&(Ht=zt(Ht?Zt:Xt,It,Dt))}else{let or=er.split(":");if(Ht=Ft(or.shift()||""),or.length&&typeof Ht=="number"){let rr=or.join(":");if(Yt.test(rr)){let cr=parseInt((rr.match(Kt)||["","-1"])[1],10);Ht!==null&&(Ht=Bt(Ht,cr,Jt.decimalPoint,rr.indexOf(",")>-1?Jt.thousandsSep:""))}else Ht=Qt.dateFormat(rr,Ht)}}Ct=Ct.replace(Vt.find,Ot(Ht,""))}),Ut?zt(Ct,It,Dt):Ct}function Tt(Ct,It,Dt,kt){let qt,Nt;Ct=+Ct||0,It=+It;let Yt=dt.lang,Kt=(Ct.toString().split(".")[1]||"").split("e")[0].length,Jt=Ct.toString().split("e"),Qt=It;It===-1?It=Math.min(Kt,20):Mt(It)?It&&Jt[1]&&Jt[1]<0&&((Nt=It+ +Jt[1])>=0?(Jt[0]=(+Jt[0]).toExponential(Nt).split("e")[0],It=Nt):(Jt[0]=Jt[0].split(".")[0]||0,Ct=It<20?(Jt[0]*Math.pow(10,Jt[1])).toFixed(It):0,Jt[1]=0)):It=2;let Bt=(Math.abs(Jt[1]?Jt[0]:Ct)+Math.pow(10,-Math.max(It,Kt)-1)).toFixed(It),Ft=String(At(Bt)),$t=Ft.length>3?Ft.length%3:0;return Dt=Ot(Dt,Yt.decimalPoint),kt=Ot(kt,Yt.thousandsSep),qt=(Ct<0?"-":"")+($t?Ft.substr(0,$t)+kt:""),0>+Jt[1]&&!Qt?qt="0":qt+=Ft.substr($t).replace(/(\d{3})(?=\d)/g,"$1"+kt),It?qt+=Dt+Bt.slice(-It):+qt==0&&(qt="0"),Jt[1]&&+qt!=0&&(qt+="e"+Jt[1]),qt}return{dateFormat:function(Ct,It,Dt){return pt.dateFormat(Ct,It,Dt)},format:zt,helpers:Rt,numberFormat:Tt}}),nt(rt,"Core/Renderer/RendererRegistry.js",[rt["Core/Globals.js"]],function(lt){var ut,dt;let pt;return(dt=ut||(ut={})).rendererTypes={},dt.getRendererType=function(ht=pt){return dt.rendererTypes[ht]||dt.rendererTypes[pt]},dt.registerRendererType=function(ht,mt,xt){dt.rendererTypes[ht]=mt,(!pt||xt)&&(pt=ht,lt.Renderer=mt)},ut}),nt(rt,"Core/Renderer/RendererUtilities.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{clamp:dt,pick:pt,pushUnique:ht,stableSort:mt}=lt;return(ut||(ut={})).distribute=function xt(Mt,vt,Ot){let At=Mt,Rt=At.reducedLen||vt,zt=(Ft,$t)=>Ft.target-$t.target,Tt=[],Ct=Mt.length,It=[],Dt=Tt.push,kt,qt,Nt,Yt=!0,Kt,Jt,Qt=0,Bt;for(kt=Ct;kt--;)Qt+=Mt[kt].size;if(Qt>Rt){for(mt(Mt,(Ft,$t)=>($t.rank||0)-(Ft.rank||0)),Nt=(Bt=Mt[0].rank===Mt[Mt.length-1].rank)?Ct/2:-1,qt=Bt?Nt:Ct-1;Nt&&Qt>Rt;)Kt=Mt[kt=Math.floor(qt)],ht(It,kt)&&(Qt-=Kt.size),qt+=Nt,Bt&&qt>=Mt.length&&(Nt/=2,qt=Nt);It.sort((Ft,$t)=>$t-Ft).forEach(Ft=>Dt.apply(Tt,Mt.splice(Ft,1)))}for(mt(Mt,zt),Mt=Mt.map(Ft=>({size:Ft.size,targets:[Ft.target],align:pt(Ft.align,.5)}));Yt;){for(kt=Mt.length;kt--;)Kt=Mt[kt],Jt=(Math.min.apply(0,Kt.targets)+Math.max.apply(0,Kt.targets))/2,Kt.pos=dt(Jt-Kt.size*Kt.align,0,vt-Kt.size);for(kt=Mt.length,Yt=!1;kt--;)kt>0&&Mt[kt-1].pos+Mt[kt-1].size>Mt[kt].pos&&(Mt[kt-1].size+=Mt[kt].size,Mt[kt-1].targets=Mt[kt-1].targets.concat(Mt[kt].targets),Mt[kt-1].align=.5,Mt[kt-1].pos+Mt[kt-1].size>vt&&(Mt[kt-1].pos=vt-Mt[kt-1].size),Mt.splice(kt,1),Yt=!0)}return Dt.apply(At,Tt),kt=0,Mt.some(Ft=>{let $t=0;return(Ft.targets||[]).some(()=>(At[kt].pos=Ft.pos+$t,Ot!==void 0&&Math.abs(At[kt].pos-At[kt].target)>Ot?(At.slice(0,kt+1).forEach(jt=>delete jt.pos),At.reducedLen=(At.reducedLen||vt)-.1*vt,At.reducedLen>.1*vt&&xt(At,vt,Ot),!0):($t+=At[kt].size,kt++,!1)))}),mt(At,zt),At},ut}),nt(rt,"Core/Renderer/SVG/SVGElement.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){let{animate:ht,animObject:mt,stop:xt}=lt,{deg2rad:Mt,doc:vt,svg:Ot,SVG_NS:At,win:Rt}=dt,{addEvent:zt,attr:Tt,createElement:Ct,crisp:It,css:Dt,defined:kt,erase:qt,extend:Nt,fireEvent:Yt,isArray:Kt,isFunction:Jt,isObject:Qt,isString:Bt,merge:Ft,objectEach:$t,pick:jt,pInt:Wt,pushUnique:Ut,replaceNested:Vt,syncTimeout:Ht,uniqueKey:Gt}=pt;class Zt{_defaultGetter(er){let nr=jt(this[er+"Value"],this[er],this.element?this.element.getAttribute(er):null,0);return/^-?[\d\.]+$/.test(nr)&&(nr=parseFloat(nr)),nr}_defaultSetter(er,nr,or){or.setAttribute(nr,er)}add(er){let nr,or=this.renderer,rr=this.element;return er&&(this.parentGroup=er),this.textStr!==void 0&&this.element.nodeName==="text"&&or.buildText(this),this.added=!0,(!er||er.handleZ||this.zIndex)&&(nr=this.zIndexSetter()),nr||(er?er.element:or.box).appendChild(rr),this.onAdd&&this.onAdd(),this}addClass(er,nr){let or=nr?"":this.attr("class")||"";return(er=(er||"").split(/ /g).reduce(function(rr,cr){return or.indexOf(cr)===-1&&rr.push(cr),rr},or?[or]:[]).join(" "))!==or&&this.attr("class",er),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(er,nr,or,rr=!0){let cr,ir,dr,gr,br={},ar=this.renderer,ur=ar.alignedObjects,xr=!!er;er?(this.alignOptions=er,this.alignByTranslate=nr,this.alignTo=or):(er=this.alignOptions||{},nr=this.alignByTranslate,or=this.alignTo);let Mr=!or||Bt(or)?or||"renderer":void 0;Mr&&(xr&&Ut(ur,this),or=void 0);let Ar=jt(or,ar[Mr],ar),Ir=er.align,Rr=er.verticalAlign;return cr=(Ar.x||0)+(er.x||0),ir=(Ar.y||0)+(er.y||0),Ir==="right"?dr=1:Ir==="center"&&(dr=2),dr&&(cr+=((Ar.width||0)-(er.width||0))/dr),br[nr?"translateX":"x"]=Math.round(cr),Rr==="bottom"?gr=1:Rr==="middle"&&(gr=2),gr&&(ir+=((Ar.height||0)-(er.height||0))/gr),br[nr?"translateY":"y"]=Math.round(ir),rr&&(this[this.placed?"animate":"attr"](br),this.placed=!0),this.alignAttr=br,this}alignSetter(er){let nr={left:"start",center:"middle",right:"end"};nr[er]&&(this.alignValue=er,this.element.setAttribute("text-anchor",nr[er]))}animate(er,nr,or){let rr=mt(jt(nr,this.renderer.globalAnimation,!0)),cr=rr.defer;return vt.hidden&&(rr.duration=0),rr.duration!==0?(or&&(rr.complete=or),Ht(()=>{this.element&&ht(this,er,rr)},cr)):(this.attr(er,void 0,or||rr.complete),$t(er,function(ir,dr){rr.step&&rr.step.call(this,ir,{prop:dr,pos:1,elem:this})},this)),this}applyTextOutline(er){let nr=this.element;er.indexOf("contrast")!==-1&&(er=er.replace(/contrast/g,this.renderer.getContrast(nr.style.fill)));let or=er.split(" "),rr=or[or.length-1],cr=or[0];if(cr&&cr!=="none"&&dt.svg){this.fakeTS=!0,cr=cr.replace(/(^[\d\.]+)(.*?)$/g,function(ar,ur,xr){return 2*Number(ur)+xr}),this.removeTextOutline();let ir=vt.createElementNS(At,"tspan");Tt(ir,{class:"highcharts-text-outline",fill:rr,stroke:rr,"stroke-width":cr,"stroke-linejoin":"round"});let dr=nr.querySelector("textPath")||nr;[].forEach.call(dr.childNodes,ar=>{let ur=ar.cloneNode(!0);ur.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(xr=>ur.removeAttribute(xr)),ir.appendChild(ur)});let gr=0;[].forEach.call(dr.querySelectorAll("text tspan"),ar=>{gr+=Number(ar.getAttribute("dy"))});let br=vt.createElementNS(At,"tspan");br.textContent="​",Tt(br,{x:Number(nr.getAttribute("x")),dy:-gr}),ir.appendChild(br),dr.insertBefore(ir,dr.firstChild)}}attr(er,nr,or,rr){let{element:cr}=this,ir=Zt.symbolCustomAttribs,dr,gr,br=this,ar;return typeof er=="string"&&nr!==void 0&&(dr=er,(er={})[dr]=nr),typeof er=="string"?br=(this[er+"Getter"]||this._defaultGetter).call(this,er,cr):($t(er,function(ur,xr){ar=!1,rr||xt(this,xr),this.symbolName&&ir.indexOf(xr)!==-1&&(gr||(this.symbolAttr(er),gr=!0),ar=!0),this.rotation&&(xr==="x"||xr==="y")&&(this.doTransform=!0),ar||(this[xr+"Setter"]||this._defaultSetter).call(this,ur,xr,cr)},this),this.afterSetters()),or&&or.call(this),br}clip(er){if(er&&!er.clipPath){let nr=Gt()+"-",or=this.renderer.createElement("clipPath").attr({id:nr}).add(this.renderer.defs);Nt(er,{clipPath:or,id:nr,count:0}),er.add(or)}return this.attr("clip-path",er?`url(${this.renderer.url}#${er.id})`:"none")}crisp(er,nr){nr=Math.round(nr||er.strokeWidth||0);let or=er.x||this.x||0,rr=er.y||this.y||0,cr=(er.width||this.width||0)+or,ir=(er.height||this.height||0)+rr,dr=It(or,nr),gr=It(rr,nr);return Nt(er,{x:dr,y:gr,width:It(cr,nr)-dr,height:It(ir,nr)-gr}),kt(er.strokeWidth)&&(er.strokeWidth=nr),er}complexColor(er,nr,or){let rr=this.renderer,cr,ir,dr,gr,br,ar,ur,xr,Mr,Ar,Ir=[],Rr;Yt(this.renderer,"complexColor",{args:arguments},function(){if(er.radialGradient?ir="radialGradient":er.linearGradient&&(ir="linearGradient"),ir){if(dr=er[ir],br=rr.gradients,ar=er.stops,Mr=or.radialReference,Kt(dr)&&(er[ir]=dr={x1:dr[0],y1:dr[1],x2:dr[2],y2:dr[3],gradientUnits:"userSpaceOnUse"}),ir==="radialGradient"&&Mr&&!kt(dr.gradientUnits)&&(gr=dr,dr=Ft(dr,rr.getRadialAttr(Mr,gr),{gradientUnits:"userSpaceOnUse"})),$t(dr,function(wr,qr){qr!=="id"&&Ir.push(qr,wr)}),$t(ar,function(wr){Ir.push(wr)}),br[Ir=Ir.join(",")])Ar=br[Ir].attr("id");else{dr.id=Ar=Gt();let wr=br[Ir]=rr.createElement(ir).attr(dr).add(rr.defs);wr.radAttr=gr,wr.stops=[],ar.forEach(function(qr){qr[1].indexOf("rgba")===0?(ur=(cr=ut.parse(qr[1])).get("rgb"),xr=cr.get("a")):(ur=qr[1],xr=1);let Hr=rr.createElement("stop").attr({offset:qr[0],"stop-color":ur,"stop-opacity":xr}).add(wr);wr.stops.push(Hr)})}Rr="url("+rr.url+"#"+Ar+")",or.setAttribute(nr,Rr),or.gradient=Ir,er.toString=function(){return Rr}}})}css(er){let nr=this.styles,or={},rr=this.element,cr,ir=!nr;if(nr&&$t(er,function(dr,gr){nr&&nr[gr]!==dr&&(or[gr]=dr,ir=!0)}),ir){nr&&(er=Nt(nr,or)),er.width===null||er.width==="auto"?delete this.textWidth:rr.nodeName.toLowerCase()==="text"&&er.width&&(cr=this.textWidth=Wt(er.width)),Nt(this.styles,er),cr&&!Ot&&this.renderer.forExport&&delete er.width;let dr=Ft(er);rr.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(gr=>dr&&delete dr[gr]),dr.color&&(dr.fill=dr.color)),Dt(rr,dr)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),er.textOutline&&this.applyTextOutline(er.textOutline)),this}dashstyleSetter(er){let nr,or=this["stroke-width"];if(or==="inherit"&&(or=1),er=er&&er.toLowerCase()){let rr=er.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(nr=rr.length;nr--;)rr[nr]=""+Wt(rr[nr])*jt(or,NaN);er=rr.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",er)}}destroy(){var gr;let er=this,nr=er.element||{},or=er.renderer,rr=nr.ownerSVGElement,cr=nr.nodeName==="SPAN"&&er.parentGroup||void 0,ir,dr;if(nr.onclick=nr.onmouseout=nr.onmouseover=nr.onmousemove=nr.point=null,xt(er),er.clipPath&&rr){let br=er.clipPath;[].forEach.call(rr.querySelectorAll("[clip-path],[CLIP-PATH]"),function(ar){ar.getAttribute("clip-path").indexOf(br.element.id)>-1&&ar.removeAttribute("clip-path")}),er.clipPath=br.destroy()}if(er.connector=(gr=er.connector)==null?void 0:gr.destroy(),er.stops){for(dr=0;dr<er.stops.length;dr++)er.stops[dr].destroy();er.stops.length=0,er.stops=void 0}for(er.safeRemoveChild(nr);cr&&cr.div&&cr.div.childNodes.length===0;)ir=cr.parentGroup,er.safeRemoveChild(cr.div),delete cr.div,cr=ir;er.alignOptions&&qt(or.alignedObjects,er),$t(er,function(br,ar){er[ar]&&er[ar].parentGroup===er&&er[ar].destroy&&er[ar].destroy(),delete er[ar]})}dSetter(er,nr,or){Kt(er)&&(typeof er[0]=="string"&&(er=this.renderer.pathToSegments(er)),this.pathArray=er,er=er.reduce((rr,cr,ir)=>cr&&cr.join?(ir?rr+" ":"")+cr.join(" "):(cr||"").toString(),"")),/(NaN| {2}|^$)/.test(er)&&(er="M 0 0"),this[nr]!==er&&(or.setAttribute(nr,er),this[nr]=er)}fillSetter(er,nr,or){typeof er=="string"?or.setAttribute(nr,er):er&&this.complexColor(er,nr,or)}hrefSetter(er,nr,or){or.setAttributeNS("http://www.w3.org/1999/xlink",nr,er)}getBBox(er,nr){let or,rr,cr,ir,{alignValue:dr,element:gr,renderer:br,styles:ar,textStr:ur}=this,{cache:xr,cacheKeys:Mr}=br,Ar=gr.namespaceURI===this.SVG_NS,Ir=jt(nr,this.rotation,0),Rr=br.styledMode?gr&&Zt.prototype.getStyle.call(gr,"font-size"):ar.fontSize;if(kt(ur)&&((ir=ur.toString()).indexOf("<")===-1&&(ir=ir.replace(/\d/g,"0")),ir+=["",br.rootFontSize,Rr,Ir,this.textWidth,dr,ar.textOverflow,ar.fontWeight].join(",")),ir&&!er&&(or=xr[ir]),!or||or.polygon){if(Ar||br.forExport){try{cr=this.fakeTS&&function(qr){let Hr=gr.querySelector(".highcharts-text-outline");Hr&&Dt(Hr,{display:qr})},Jt(cr)&&cr("none"),or=gr.getBBox?Nt({},gr.getBBox()):{width:gr.offsetWidth,height:gr.offsetHeight,x:0,y:0},Jt(cr)&&cr("")}catch{}(!or||or.width<0)&&(or={x:0,y:0,width:0,height:0})}else or=this.htmlGetBBox();rr=or.height,Ar&&(or.height=rr={"11px,17":14,"13px,20":16}[`${Rr||""},${Math.round(rr)}`]||rr),Ir&&(or=this.getRotatedBox(or,Ir));let wr={bBox:or};Yt(this,"afterGetBBox",wr),or=wr.bBox}if(ir&&(ur===""||or.height>0)){for(;Mr.length>250;)delete xr[Mr.shift()];xr[ir]||Mr.push(ir),xr[ir]=or}return or}getRotatedBox(er,nr){let{x:or,y:rr,width:cr,height:ir}=er,{alignValue:dr,translateY:gr,rotationOriginX:br=0,rotationOriginY:ar=0}=this,ur={right:1,center:.5}[dr||0]||0,xr=Number(this.element.getAttribute("y")||0)-(gr?0:rr),Mr=nr*Mt,Ar=(nr-90)*Mt,Ir=Math.cos(Mr),Rr=Math.sin(Mr),wr=cr*Ir,qr=cr*Rr,Hr=Math.cos(Ar),kr=Math.sin(Ar),[[$r,yr],[Or,Dr]]=[br,ar].map(vn=>[vn-vn*Ir,vn*Rr]),Fr=or+ur*(cr-wr)+$r+Dr+xr*Hr,Yr=Fr+wr,Gr=Yr-ir*Hr,Jr=Gr-wr,jr=rr+xr-ur*qr-yr+Or+xr*kr,Zr=jr+qr,Xr=Zr-ir*kr,cn=Xr-qr,Qr=Math.min(Fr,Yr,Gr,Jr),rn=Math.min(jr,Zr,Xr,cn),_r=Math.max(Fr,Yr,Gr,Jr)-Qr,ln=Math.max(jr,Zr,Xr,cn)-rn;return{x:Qr,y:rn,width:_r,height:ln,polygon:[[Fr,jr],[Yr,Zr],[Gr,Xr],[Jr,cn]]}}getStyle(er){return Rt.getComputedStyle(this.element||this,"").getPropertyValue(er)}hasClass(er){return(""+this.attr("class")).split(" ").indexOf(er)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(er,nr){this.onEvents={},this.opacity=1,this.SVG_NS=At,this.element=nr==="span"||nr==="body"?Ct(nr):vt.createElementNS(this.SVG_NS,nr),this.renderer=er,this.styles={},Yt(this,"afterInit")}on(er,nr){let{onEvents:or}=this;return or[er]&&or[er](),or[er]=zt(this.element,er,nr),this}opacitySetter(er,nr,or){let rr=Number(Number(er).toFixed(3));this.opacity=rr,or.setAttribute(nr,rr)}reAlign(){var er;(er=this.alignOptions)!=null&&er.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(er){return this.attr("class",(""+this.attr("class")).replace(Bt(er)?RegExp(`(^| )${er}( |$)`):er," ").replace(/ +/g," ").trim())}removeTextOutline(){let er=this.element.querySelector("tspan.highcharts-text-outline");er&&this.safeRemoveChild(er)}safeRemoveChild(er){let nr=er.parentNode;nr&&nr.removeChild(er)}setRadialReference(er){let nr=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=er,nr&&nr.radAttr&&nr.animate(this.renderer.getRadialAttr(er,nr.radAttr)),this}shadow(er){var cr;let{renderer:nr}=this,or=Ft(((cr=this.parentGroup)==null?void 0:cr.rotation)===90?{offsetX:-1,offsetY:-1}:{},Qt(er)?er:{}),rr=nr.shadowDefinition(or);return this.attr({filter:er?`url(${nr.url}#${rr})`:"none"})}show(er=!0){return this.attr({visibility:er?"inherit":"visible"})}"stroke-widthSetter"(er,nr,or){this[nr]=er,or.setAttribute(nr,er)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let er=this.getStyle("stroke-width"),nr=0,or;return/px$/.test(er)?nr=Wt(er):er!==""&&(Tt(or=vt.createElementNS(At,"rect"),{width:er,"stroke-width":0}),this.element.parentNode.appendChild(or),nr=or.getBBox().width,or.parentNode.removeChild(or)),nr}symbolAttr(er){let nr=this;Zt.symbolCustomAttribs.forEach(function(or){nr[or]=jt(er[or],nr[or])}),nr.attr({d:nr.renderer.symbols[nr.symbolName](nr.x,nr.y,nr.width,nr.height,nr)})}textSetter(er){er!==this.textStr&&(delete this.textPxLength,this.textStr=er,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(er){let nr=this.element,or=nr.getElementsByTagName("title")[0]||vt.createElementNS(this.SVG_NS,"title");nr.insertBefore?nr.insertBefore(or,nr.firstChild):nr.appendChild(or),or.textContent=Vt(jt(er,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let er=this.element;return er.parentNode.appendChild(er),this}translate(er,nr){return this.attr({translateX:er,translateY:nr})}updateTransform(er="transform"){var xr;let{element:nr,matrix:or,rotation:rr=0,rotationOriginX:cr,rotationOriginY:ir,scaleX:dr,scaleY:gr,translateX:br=0,translateY:ar=0}=this,ur=["translate("+br+","+ar+")"];kt(or)&&ur.push("matrix("+or.join(",")+")"),rr&&(ur.push("rotate("+rr+" "+jt(cr,nr.getAttribute("x"),0)+" "+jt(ir,nr.getAttribute("y")||0)+")"),((xr=this.text)==null?void 0:xr.element.tagName)==="SPAN"&&this.text.attr({rotation:rr,rotationOriginX:(cr||0)-this.padding,rotationOriginY:(ir||0)-this.padding})),(kt(dr)||kt(gr))&&ur.push("scale("+jt(dr,1)+" "+jt(gr,1)+")"),ur.length&&!(this.text||this).textPath&&nr.setAttribute(er,ur.join(" "))}visibilitySetter(er,nr,or){er==="inherit"?or.removeAttribute(nr):this[nr]!==er&&or.setAttribute(nr,er),this[nr]=er}xGetter(er){return this.element.nodeName==="circle"&&(er==="x"?er="cx":er==="y"&&(er="cy")),this._defaultGetter(er)}zIndexSetter(er,nr){let or=this.renderer,rr=this.parentGroup,cr=(rr||or).element||or.box,ir=this.element,dr=cr===or.box,gr,br,ar,ur=!1,xr,Mr=this.added,Ar;if(kt(er)?(ir.setAttribute("data-z-index",er),er=+er,this[nr]===er&&(Mr=!1)):kt(this[nr])&&ir.removeAttribute("data-z-index"),this[nr]=er,Mr){for((er=this.zIndex)&&rr&&(rr.handleZ=!0),Ar=(gr=cr.childNodes).length-1;Ar>=0&&!ur;Ar--)xr=!kt(ar=(br=gr[Ar]).getAttribute("data-z-index")),br!==ir&&(er<0&&xr&&!dr&&!Ar?(cr.insertBefore(ir,gr[Ar]),ur=!0):(Wt(ar)<=er||xr&&(!kt(er)||er>=0))&&(cr.insertBefore(ir,gr[Ar+1]),ur=!0));ur||(cr.insertBefore(ir,gr[dr?3:0]),ur=!0)}return ur}}return Zt.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],Zt.prototype.strokeSetter=Zt.prototype.fillSetter,Zt.prototype.yGetter=Zt.prototype.xGetter,Zt.prototype.matrixSetter=Zt.prototype.rotationOriginXSetter=Zt.prototype.rotationOriginYSetter=Zt.prototype.rotationSetter=Zt.prototype.scaleXSetter=Zt.prototype.scaleYSetter=Zt.prototype.translateXSetter=Zt.prototype.translateYSetter=Zt.prototype.verticalAlignSetter=function(Xt,er){this[er]=Xt,this.doTransform=!0},Zt}),nt(rt,"Core/Renderer/SVG/SVGLabel.js",[rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Utilities.js"]],function(lt,ut){let{defined:dt,extend:pt,isNumber:ht,merge:mt,pick:xt,removeEvent:Mt}=ut;class vt extends lt{constructor(At,Rt,zt,Tt,Ct,It,Dt,kt,qt,Nt){let Yt;super(At,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=Rt,this.x=zt,this.y=Tt,this.anchorX=It,this.anchorY=Dt,this.baseline=qt,this.className=Nt,this.addClass(Nt==="button"?"highcharts-no-tooltip":"highcharts-label"),Nt&&this.addClass("highcharts-"+Nt),this.text=At.text(void 0,0,0,kt).attr({zIndex:1}),typeof Ct=="string"&&((Yt=/^url\((.*?)\)$/.test(Ct))||this.renderer.symbols[Ct])&&(this.symbolKey=Ct),this.bBox=vt.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=At.styledMode||Yt,this.deferredAttr={},this.alignFactor=0}alignSetter(At){let Rt={left:0,center:.5,right:1}[At];Rt!==this.alignFactor&&(this.alignFactor=Rt,this.bBox&&ht(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(At,Rt){this.anchorX=At,this.boxAttr(Rt,Math.round(At)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(At,Rt){this.anchorY=At,this.boxAttr(Rt,At-this.ySetting)}boxAttr(At,Rt){this.box?this.box.attr(At,Rt):this.deferredAttr[At]=Rt}css(At){if(At){let Rt={};At=mt(At),vt.textProps.forEach(zt=>{At[zt]!==void 0&&(Rt[zt]=At[zt],delete At[zt])}),this.text.css(Rt),"fontSize"in Rt||"fontWeight"in Rt?this.updateTextPadding():("width"in Rt||"textOverflow"in Rt)&&this.updateBoxSize()}return lt.prototype.css.call(this,At)}destroy(){Mt(this.element,"mouseenter"),Mt(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),lt.prototype.destroy.call(this)}fillSetter(At,Rt){At&&(this.needsBox=!0),this.fill=At,this.boxAttr(Rt,At)}getBBox(At,Rt){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:zt,height:Tt=0,translateX:Ct=0,translateY:It=0,width:Dt=0}=this,kt=xt(this.paddingLeft,zt),qt=Rt??(this.rotation||0),Nt={width:Dt,height:Tt,x:Ct+this.bBox.x-kt,y:It+this.bBox.y-zt+this.baselineOffset};return qt&&(Nt=this.getRotatedBox(Nt,qt)),Nt}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(At){this.heightSetting=At,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:xt(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&dt(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(At,Rt){ht(At)?At!==this[Rt]&&(this[Rt]=At,this.updateTextPadding()):this[Rt]=void 0}rSetter(At,Rt){this.boxAttr(Rt,At)}strokeSetter(At,Rt){this.stroke=At,this.boxAttr(Rt,At)}"stroke-widthSetter"(At,Rt){At&&(this.needsBox=!0),this["stroke-width"]=At,this.boxAttr(Rt,At)}"text-alignSetter"(At){this.textAlign=At}textSetter(At){At!==void 0&&this.text.attr({text:At}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let At,Rt=this.text,zt={},Tt=this.padding,Ct=this.bBox=(!ht(this.widthSetting)||!ht(this.heightSetting)||this.textAlign)&&dt(Rt.textStr)?Rt.getBBox(void 0,0):vt.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||Ct.height||0)+2*Tt;let It=this.renderer.fontMetrics(Rt);if(this.baselineOffset=Tt+Math.min((this.text.firstLineMetrics||It).b,Ct.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-It.h)/2),this.needsBox&&!Rt.textPath){if(!this.box){let Dt=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();Dt.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),Dt.add(this)}At=this.getCrispAdjust(),zt.x=At,zt.y=(this.baseline?-this.baselineOffset:0)+At,zt.width=Math.round(this.width),zt.height=Math.round(this.height),this.box.attr(pt(zt,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let At=this.text;if(!At.textPath){this.updateBoxSize();let Rt=this.baseline?0:this.baselineOffset,zt=xt(this.paddingLeft,this.padding);dt(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(zt+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(zt!==At.x||Rt!==At.y)&&(At.attr("x",zt),At.hasBoxWidthChanged&&(this.bBox=At.getBBox(!0)),Rt!==void 0&&At.attr("y",Rt)),At.x=zt,At.y=Rt}}widthSetter(At){this.widthSetting=ht(At)?At:void 0,this.doUpdate=!0}getPaddedWidth(){let At=this.padding,Rt=xt(this.paddingLeft,At),zt=xt(this.paddingRight,At);return(this.widthSetting||this.bBox.width||0)+Rt+zt}xSetter(At){this.x=At,this.alignFactor&&(At-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(At),this.attr("translateX",this.xSetting)}ySetter(At){this.ySetting=this.y=Math.round(At),this.attr("translateY",this.ySetting)}}return vt.emptyBBox={width:0,height:0,x:0,y:0},vt.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],vt}),nt(rt,"Core/Renderer/SVG/Symbols.js",[rt["Core/Utilities.js"]],function(lt){let{defined:ut,isNumber:dt,pick:pt}=lt;function ht(Mt,vt,Ot,At,Rt){let zt=[];if(Rt){let Tt=Rt.start||0,Ct=pt(Rt.r,Ot),It=pt(Rt.r,At||Ot),Dt=2e-4/(Rt.borderRadius?1:Math.max(Ct,1)),kt=Math.abs((Rt.end||0)-Tt-2*Math.PI)<Dt,qt=(Rt.end||0)-(kt?Dt:0),Nt=Rt.innerR,Yt=pt(Rt.open,kt),Kt=Math.cos(Tt),Jt=Math.sin(Tt),Qt=Math.cos(qt),Bt=Math.sin(qt),Ft=pt(Rt.longArc,qt-Tt-Math.PI<Dt?0:1),$t=["A",Ct,It,0,Ft,pt(Rt.clockwise,1),Mt+Ct*Qt,vt+It*Bt];$t.params={start:Tt,end:qt,cx:Mt,cy:vt},zt.push(["M",Mt+Ct*Kt,vt+It*Jt],$t),ut(Nt)&&(($t=["A",Nt,Nt,0,Ft,ut(Rt.clockwise)?1-Rt.clockwise:0,Mt+Nt*Kt,vt+Nt*Jt]).params={start:qt,end:Tt,cx:Mt,cy:vt},zt.push(Yt?["M",Mt+Nt*Qt,vt+Nt*Bt]:["L",Mt+Nt*Qt,vt+Nt*Bt],$t)),Yt||zt.push(["Z"])}return zt}function mt(Mt,vt,Ot,At,Rt){return Rt&&Rt.r?xt(Mt,vt,Ot,At,Rt):[["M",Mt,vt],["L",Mt+Ot,vt],["L",Mt+Ot,vt+At],["L",Mt,vt+At],["Z"]]}function xt(Mt,vt,Ot,At,Rt){let zt=(Rt==null?void 0:Rt.r)||0;return[["M",Mt+zt,vt],["L",Mt+Ot-zt,vt],["A",zt,zt,0,0,1,Mt+Ot,vt+zt],["L",Mt+Ot,vt+At-zt],["A",zt,zt,0,0,1,Mt+Ot-zt,vt+At],["L",Mt+zt,vt+At],["A",zt,zt,0,0,1,Mt,vt+At-zt],["L",Mt,vt+zt],["A",zt,zt,0,0,1,Mt+zt,vt],["Z"]]}return{arc:ht,callout:function(Mt,vt,Ot,At,Rt){let zt=Math.min(Rt&&Rt.r||0,Ot,At),Tt=zt+6,Ct=Rt&&Rt.anchorX,It=Rt&&Rt.anchorY||0,Dt=xt(Mt,vt,Ot,At,{r:zt});if(!dt(Ct)||Ct<Ot&&Ct>0&&It<At&&It>0)return Dt;if(Mt+Ct>Ot-Tt)if(It>vt+Tt&&It<vt+At-Tt)Dt.splice(3,1,["L",Mt+Ot,It-6],["L",Mt+Ot+6,It],["L",Mt+Ot,It+6],["L",Mt+Ot,vt+At-zt]);else if(Ct<Ot){let kt=It<vt+Tt,qt=kt?vt:vt+At;Dt.splice(kt?2:5,0,["L",Ct,It],["L",Mt+Ot-zt,qt])}else Dt.splice(3,1,["L",Mt+Ot,At/2],["L",Ct,It],["L",Mt+Ot,At/2],["L",Mt+Ot,vt+At-zt]);else if(Mt+Ct<Tt)if(It>vt+Tt&&It<vt+At-Tt)Dt.splice(7,1,["L",Mt,It+6],["L",Mt-6,It],["L",Mt,It-6],["L",Mt,vt+zt]);else if(Ct>0){let kt=It<vt+Tt,qt=kt?vt:vt+At;Dt.splice(kt?1:6,0,["L",Ct,It],["L",Mt+zt,qt])}else Dt.splice(7,1,["L",Mt,At/2],["L",Ct,It],["L",Mt,At/2],["L",Mt,vt+zt]);else It>At&&Ct<Ot-Tt?Dt.splice(5,1,["L",Ct+6,vt+At],["L",Ct,vt+At+6],["L",Ct-6,vt+At],["L",Mt+zt,vt+At]):It<0&&Ct>Tt&&Dt.splice(1,1,["L",Ct-6,vt],["L",Ct,vt-6],["L",Ct+6,vt],["L",Ot-zt,vt]);return Dt},circle:function(Mt,vt,Ot,At){return ht(Mt+Ot/2,vt+At/2,Ot/2,At/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(Mt,vt,Ot,At){return[["M",Mt+Ot/2,vt],["L",Mt+Ot,vt+At/2],["L",Mt+Ot/2,vt+At],["L",Mt,vt+At/2],["Z"]]},rect:mt,roundedRect:xt,square:mt,triangle:function(Mt,vt,Ot,At){return[["M",Mt+Ot/2,vt],["L",Mt+Ot,vt+At],["L",Mt,vt+At],["Z"]]},"triangle-down":function(Mt,vt,Ot,At){return[["M",Mt,vt],["L",Mt+Ot,vt],["L",Mt+Ot/2,vt+At],["Z"]]}}}),nt(rt,"Core/Renderer/SVG/TextBuilder.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{doc:pt,SVG_NS:ht,win:mt}=ut,{attr:xt,extend:Mt,fireEvent:vt,isString:Ot,objectEach:At,pick:Rt}=dt;return class{constructor(zt){let Tt=zt.styles;this.renderer=zt.renderer,this.svgElement=zt,this.width=zt.textWidth,this.textLineHeight=Tt&&Tt.lineHeight,this.textOutline=Tt&&Tt.textOutline,this.ellipsis=!!(Tt&&Tt.textOverflow==="ellipsis"),this.noWrap=!!(Tt&&Tt.whiteSpace==="nowrap")}buildSVG(){let zt=this.svgElement,Tt=zt.element,Ct=zt.renderer,It=Rt(zt.textStr,"").toString(),Dt=It.indexOf("<")!==-1,kt=Tt.childNodes,qt=!zt.added&&Ct.box,Nt=[It,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,zt.getStyle("font-size"),this.width].join(",");if(Nt!==zt.textCache){zt.textCache=Nt,delete zt.actualWidth;for(let Yt=kt.length;Yt--;)Tt.removeChild(kt[Yt]);if(Dt||this.ellipsis||this.width||zt.textPath||It.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(It))){if(It!==""){qt&&qt.appendChild(Tt);let Yt=new lt(It);this.modifyTree(Yt.nodes),Yt.addToDOM(Tt),this.modifyDOM(),this.ellipsis&&(Tt.textContent||"").indexOf("…")!==-1&&zt.attr("title",this.unescapeEntities(zt.textStr||"",["&lt;","&gt;"])),qt&&qt.removeChild(Tt)}}else Tt.appendChild(pt.createTextNode(this.unescapeEntities(It)));Ot(this.textOutline)&&zt.applyTextOutline&&zt.applyTextOutline(this.textOutline)}}modifyDOM(){let zt,Tt=this.svgElement,Ct=xt(Tt.element,"x");for(Tt.firstLineMetrics=void 0;(zt=Tt.element.firstChild)&&/^[\s\u200B]*$/.test(zt.textContent||" ");)Tt.element.removeChild(zt);[].forEach.call(Tt.element.querySelectorAll("tspan.highcharts-br"),(qt,Nt)=>{qt.nextSibling&&qt.previousSibling&&(Nt===0&&qt.previousSibling.nodeType===1&&(Tt.firstLineMetrics=Tt.renderer.fontMetrics(qt.previousSibling)),xt(qt,{dy:this.getLineHeight(qt.nextSibling),x:Ct}))});let It=this.width||0;if(!It)return;let Dt=(qt,Nt)=>{let Yt=qt.textContent||"",Kt=Yt.replace(/([^\^])-/g,"$1- ").split(" "),Jt=!this.noWrap&&(Kt.length>1||Tt.element.childNodes.length>1),Qt=this.getLineHeight(Nt),Bt=0,Ft=Tt.actualWidth;if(this.ellipsis)Yt&&this.truncate(qt,Yt,void 0,0,Math.max(0,It-.8*Qt),($t,jt)=>$t.substring(0,jt)+"…");else if(Jt){let $t=[],jt=[];for(;Nt.firstChild&&Nt.firstChild!==qt;)jt.push(Nt.firstChild),Nt.removeChild(Nt.firstChild);for(;Kt.length;)Kt.length&&!this.noWrap&&Bt>0&&($t.push(qt.textContent||""),qt.textContent=Kt.join(" ").replace(/- /g,"-")),this.truncate(qt,void 0,Kt,Bt===0&&Ft||0,It,(Wt,Ut)=>Kt.slice(0,Ut).join(" ").replace(/- /g,"-")),Ft=Tt.actualWidth,Bt++;jt.forEach(Wt=>{Nt.insertBefore(Wt,qt)}),$t.forEach(Wt=>{Nt.insertBefore(pt.createTextNode(Wt),qt);let Ut=pt.createElementNS(ht,"tspan");Ut.textContent="​",xt(Ut,{dy:Qt,x:Ct}),Nt.insertBefore(Ut,qt)})}},kt=qt=>{[].slice.call(qt.childNodes).forEach(Nt=>{Nt.nodeType===mt.Node.TEXT_NODE?Dt(Nt,qt):(Nt.className.baseVal.indexOf("highcharts-br")!==-1&&(Tt.actualWidth=0),kt(Nt))})};kt(Tt.element)}getLineHeight(zt){let Tt=zt.nodeType===mt.Node.TEXT_NODE?zt.parentElement:zt;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(Tt||this.svgElement.element).h}modifyTree(zt){let Tt=(Ct,It)=>{let{attributes:Dt={},children:kt,style:qt={},tagName:Nt}=Ct,Yt=this.renderer.styledMode;if(Nt==="b"||Nt==="strong"?Yt?Dt.class="highcharts-strong":qt.fontWeight="bold":(Nt==="i"||Nt==="em")&&(Yt?Dt.class="highcharts-emphasized":qt.fontStyle="italic"),qt&&qt.color&&(qt.fill=qt.color),Nt==="br"){Dt.class="highcharts-br",Ct.textContent="​";let Kt=zt[It+1];Kt&&Kt.textContent&&(Kt.textContent=Kt.textContent.replace(/^ +/gm,""))}else Nt==="a"&&kt&&kt.some(Kt=>Kt.tagName==="#text")&&(Ct.children=[{children:kt,tagName:"tspan"}]);Nt!=="#text"&&Nt!=="a"&&(Ct.tagName="tspan"),Mt(Ct,{attributes:Dt,style:qt}),kt&&kt.filter(Kt=>Kt.tagName!=="#text").forEach(Tt)};zt.forEach(Tt),vt(this.svgElement,"afterModifyTree",{nodes:zt})}truncate(zt,Tt,Ct,It,Dt,kt){let qt,Nt,Yt=this.svgElement,{rotation:Kt}=Yt,Jt=[],Qt=Ct?1:0,Bt=(Tt||Ct||"").length,Ft=Bt,$t=function(jt,Wt){let Ut=Wt||jt,Vt=zt.parentNode;if(Vt&&Jt[Ut]===void 0&&Vt.getSubStringLength)try{Jt[Ut]=It+Vt.getSubStringLength(0,Ct?Ut+1:Ut)}catch{}return Jt[Ut]};if(Yt.rotation=0,It+(Nt=$t(zt.textContent.length))>Dt){for(;Qt<=Bt;)Ft=Math.ceil((Qt+Bt)/2),Ct&&(qt=kt(Ct,Ft)),Nt=$t(Ft,qt&&qt.length-1),Qt===Bt?Qt=Bt+1:Nt>Dt?Bt=Ft-1:Qt=Ft;Bt===0?zt.textContent="":Tt&&Bt===Tt.length-1||(zt.textContent=qt||kt(Tt||Ct,Ft))}Ct&&Ct.splice(0,Ft),Yt.actualWidth=Nt,Yt.rotation=Kt}unescapeEntities(zt,Tt){return At(this.renderer.escapes,function(Ct,It){Tt&&Tt.indexOf(Ct)!==-1||(zt=zt.toString().replace(RegExp(Ct,"g"),It))}),zt}}}),nt(rt,"Core/Renderer/SVG/SVGRenderer.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Defaults.js"],rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Renderer/SVG/SVGLabel.js"],rt["Core/Renderer/SVG/Symbols.js"],rt["Core/Renderer/SVG/TextBuilder.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot){let At,{defaultOptions:Rt}=ut,{charts:zt,deg2rad:Tt,doc:Ct,isFirefox:It,isMS:Dt,isWebKit:kt,noop:qt,SVG_NS:Nt,symbolSizes:Yt,win:Kt}=pt,{addEvent:Jt,attr:Qt,createElement:Bt,crisp:Ft,css:$t,defined:jt,destroyObjectProperties:Wt,extend:Ut,isArray:Vt,isNumber:Ht,isObject:Gt,isString:Zt,merge:Xt,pick:er,pInt:nr,replaceNested:or,uniqueKey:rr}=Ot;class cr{constructor(dr,gr,br,ar,ur,xr,Mr){let Ar,Ir,Rr=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),wr=Rr.element;Mr||Rr.css(this.getStyle(ar||{})),dr.appendChild(wr),Qt(dr,"dir","ltr"),dr.innerHTML.indexOf("xmlns")===-1&&Qt(wr,"xmlns",this.SVG_NS),this.box=wr,this.boxWrapper=Rr,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Ct.createTextNode("Created with Highcharts 11.4.7")),this.defs=this.createElement("defs").add(),this.allowHTML=xr,this.forExport=ur,this.styledMode=Mr,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=Rr.getStyle("font-size"),this.setSize(gr,br,!1),It&&dr.getBoundingClientRect&&((Ar=function(){$t(dr,{left:0,top:0}),Ir=dr.getBoundingClientRect(),$t(dr,{left:Math.ceil(Ir.left)-Ir.left+"px",top:Math.ceil(Ir.top)-Ir.top+"px"})})(),this.unSubPixelFix=Jt(Kt,"resize",Ar))}definition(dr){return new lt([dr]).addToDOM(this.defs.element)}getReferenceURL(){if((It||kt)&&Ct.getElementsByTagName("base").length){if(!jt(At)){let dr=rr(),gr=new lt([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:dr},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${dr})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(Ct.body);$t(gr,{position:"fixed",top:0,left:0,zIndex:9e5});let br=Ct.elementFromPoint(6,6);At=(br&&br.id)==="hitme",Ct.body.removeChild(gr)}if(At)return or(Kt.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(dr){return this.style=Ut({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},dr),this.style}setStyle(dr){this.boxWrapper.css(this.getStyle(dr))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let dr=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),Wt(this.gradients||{}),this.gradients=null,this.defs=dr.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(dr){return new this.Element(this,dr)}getRadialAttr(dr,gr){return{cx:dr[0]-dr[2]/2+(gr.cx||0)*dr[2],cy:dr[1]-dr[2]/2+(gr.cy||0)*dr[2],r:(gr.r||0)*dr[2]}}shadowDefinition(dr){let gr=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(dr).map(ar=>`${ar}-${dr[ar]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),br=Xt({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},dr);return this.defs.element.querySelector(`#${gr}`)||this.definition({tagName:"filter",attributes:{id:gr,filterUnits:br.filterUnits},children:this.getShadowFilterContent(br)}),gr}getShadowFilterContent(dr){return[{tagName:"feDropShadow",attributes:{dx:dr.offsetX,dy:dr.offsetY,"flood-color":dr.color,"flood-opacity":Math.min(5*dr.opacity,1),stdDeviation:dr.width/2}}]}buildText(dr){new vt(dr).buildSVG()}getContrast(dr){let gr=dt.parse(dr).rgba.map(ar=>{let ur=ar/255;return ur<=.03928?ur/12.92:Math.pow((ur+.055)/1.055,2.4)}),br=.2126*gr[0]+.7152*gr[1]+.0722*gr[2];return 1.05/(br+.05)>(br+.05)/.05?"#FFFFFF":"#000000"}button(dr,gr,br,ar,ur={},xr,Mr,Ar,Ir,Rr){let wr=this.label(dr,gr,br,Ir,void 0,void 0,Rr,void 0,"button"),qr=this.styledMode,Hr=arguments,kr=0;ur=Xt(Rt.global.buttonTheme,ur),qr&&(delete ur.fill,delete ur.stroke,delete ur["stroke-width"]);let $r=ur.states||{},yr=ur.style||{};delete ur.states,delete ur.style;let Or=[lt.filterUserAttributes(ur)],Dr=[yr];return qr||["hover","select","disabled"].forEach((Fr,Yr)=>{Or.push(Xt(Or[0],lt.filterUserAttributes(Hr[Yr+5]||$r[Fr]||{}))),Dr.push(Or[Yr+1].style),delete Or[Yr+1].style}),Jt(wr.element,Dt?"mouseover":"mouseenter",function(){kr!==3&&wr.setState(1)}),Jt(wr.element,Dt?"mouseout":"mouseleave",function(){kr!==3&&wr.setState(kr)}),wr.setState=(Fr=0)=>{if(Fr!==1&&(wr.state=kr=Fr),wr.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][Fr]),!qr){wr.attr(Or[Fr]);let Yr=Dr[Fr];Gt(Yr)&&wr.css(Yr)}},wr.attr(Or[0]),!qr&&(wr.css(Ut({cursor:"default"},yr)),Rr&&wr.text.css({pointerEvents:"none"})),wr.on("touchstart",Fr=>Fr.stopPropagation()).on("click",function(Fr){kr!==3&&ar.call(wr,Fr)})}crispLine(dr,gr){let[br,ar]=dr;return jt(br[1])&&br[1]===ar[1]&&(br[1]=ar[1]=Ft(br[1],gr)),jt(br[2])&&br[2]===ar[2]&&(br[2]=ar[2]=Ft(br[2],gr)),dr}path(dr){let gr=this.styledMode?{}:{fill:"none"};return Vt(dr)?gr.d=dr:Gt(dr)&&Ut(gr,dr),this.createElement("path").attr(gr)}circle(dr,gr,br){let ar=Gt(dr)?dr:dr===void 0?{}:{x:dr,y:gr,r:br},ur=this.createElement("circle");return ur.xSetter=ur.ySetter=function(xr,Mr,Ar){Ar.setAttribute("c"+Mr,xr)},ur.attr(ar)}arc(dr,gr,br,ar,ur,xr){let Mr;Gt(dr)?(gr=(Mr=dr).y,br=Mr.r,ar=Mr.innerR,ur=Mr.start,xr=Mr.end,dr=Mr.x):Mr={innerR:ar,start:ur,end:xr};let Ar=this.symbol("arc",dr,gr,br,br,Mr);return Ar.r=br,Ar}rect(dr,gr,br,ar,ur,xr){let Mr=Gt(dr)?dr:dr===void 0?{}:{x:dr,y:gr,r:ur,width:Math.max(br||0,0),height:Math.max(ar||0,0)},Ar=this.createElement("rect");return this.styledMode||(xr!==void 0&&(Mr["stroke-width"]=xr,Ut(Mr,Ar.crisp(Mr))),Mr.fill="none"),Ar.rSetter=function(Ir,Rr,wr){Ar.r=Ir,Qt(wr,{rx:Ir,ry:Ir})},Ar.rGetter=function(){return Ar.r||0},Ar.attr(Mr)}roundedRect(dr){return this.symbol("roundedRect").attr(dr)}setSize(dr,gr,br){this.width=dr,this.height=gr,this.boxWrapper.animate({width:dr,height:gr},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:er(br,!0)?void 0:0}),this.alignElements()}g(dr){let gr=this.createElement("g");return dr?gr.attr({class:"highcharts-"+dr}):gr}image(dr,gr,br,ar,ur,xr){let Mr={preserveAspectRatio:"none"};Ht(gr)&&(Mr.x=gr),Ht(br)&&(Mr.y=br),Ht(ar)&&(Mr.width=ar),Ht(ur)&&(Mr.height=ur);let Ar=this.createElement("image").attr(Mr),Ir=function(Rr){Ar.attr({href:dr}),xr.call(Ar,Rr)};if(xr){Ar.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let Rr=new Kt.Image;Jt(Rr,"load",Ir),Rr.src=dr,Rr.complete&&Ir({})}else Ar.attr({href:dr});return Ar}symbol(dr,gr,br,ar,ur,xr){let Mr,Ar,Ir,Rr,wr=this,qr=/^url\((.*?)\)$/,Hr=qr.test(dr),kr=!Hr&&(this.symbols[dr]?dr:"circle"),$r=kr&&this.symbols[kr];if($r)typeof gr=="number"&&(Ar=$r.call(this.symbols,gr||0,br||0,ar||0,ur||0,xr)),Mr=this.path(Ar),wr.styledMode||Mr.attr("fill","none"),Ut(Mr,{symbolName:kr||void 0,x:gr,y:br,width:ar,height:ur}),xr&&Ut(Mr,xr);else if(Hr){Ir=dr.match(qr)[1];let yr=Mr=this.image(Ir);yr.imgwidth=er(xr&&xr.width,Yt[Ir]&&Yt[Ir].width),yr.imgheight=er(xr&&xr.height,Yt[Ir]&&Yt[Ir].height),Rr=Or=>Or.attr({width:Or.width,height:Or.height}),["width","height"].forEach(Or=>{yr[`${Or}Setter`]=function(Dr,Fr){this[Fr]=Dr;let{alignByTranslate:Yr,element:Gr,width:Jr,height:jr,imgwidth:Zr,imgheight:Xr}=this,cn=Fr==="width"?Zr:Xr,Qr=1;xr&&xr.backgroundSize==="within"&&Jr&&jr&&Zr&&Xr?(Qr=Math.min(Jr/Zr,jr/Xr),Qt(Gr,{width:Math.round(Zr*Qr),height:Math.round(Xr*Qr)})):Gr&&cn&&Gr.setAttribute(Fr,cn),!Yr&&Zr&&Xr&&this.translate(((Jr||0)-Zr*Qr)/2,((jr||0)-Xr*Qr)/2)}}),jt(gr)&&yr.attr({x:gr,y:br}),yr.isImg=!0,jt(yr.imgwidth)&&jt(yr.imgheight)?Rr(yr):(yr.attr({width:0,height:0}),Bt("img",{onload:function(){let Or=zt[wr.chartIndex];this.width===0&&($t(this,{position:"absolute",top:"-999em"}),Ct.body.appendChild(this)),Yt[Ir]={width:this.width,height:this.height},yr.imgwidth=this.width,yr.imgheight=this.height,yr.element&&Rr(yr),this.parentNode&&this.parentNode.removeChild(this),wr.imgCount--,wr.imgCount||!Or||Or.hasLoaded||Or.onload()},src:Ir}),this.imgCount++)}return Mr}clipRect(dr,gr,br,ar){return this.rect(dr,gr,br,ar,0)}text(dr,gr,br,ar){let ur={};if(ar&&(this.allowHTML||!this.forExport))return this.html(dr,gr,br);ur.x=Math.round(gr||0),br&&(ur.y=Math.round(br)),jt(dr)&&(ur.text=dr);let xr=this.createElement("text").attr(ur);return ar&&(!this.forExport||this.allowHTML)||(xr.xSetter=function(Mr,Ar,Ir){let Rr=Ir.getElementsByTagName("tspan"),wr=Ir.getAttribute(Ar);for(let qr=0,Hr;qr<Rr.length;qr++)(Hr=Rr[qr]).getAttribute(Ar)===wr&&Hr.setAttribute(Ar,Mr);Ir.setAttribute(Ar,Mr)}),xr}fontMetrics(dr){let gr=nr(mt.prototype.getStyle.call(dr,"font-size")||0),br=gr<24?gr+3:Math.round(1.2*gr),ar=Math.round(.8*br);return{h:br,b:ar,f:gr}}rotCorr(dr,gr,br){let ar=dr;return gr&&br&&(ar=Math.max(ar*Math.cos(gr*Tt),4)),{x:-dr/3*Math.sin(gr*Tt),y:ar}}pathToSegments(dr){let gr=[],br=[],ar={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let ur=0;ur<dr.length;ur++)Zt(br[0])&&Ht(dr[ur])&&br.length===ar[br[0].toUpperCase()]&&dr.splice(ur,0,br[0].replace("M","L").replace("m","l")),typeof dr[ur]=="string"&&(br.length&&gr.push(br.slice(0)),br.length=0),br.push(dr[ur]);return gr.push(br.slice(0)),gr}label(dr,gr,br,ar,ur,xr,Mr,Ar,Ir){return new xt(this,dr,gr,br,ar,ur,xr,Mr,Ar,Ir)}alignElements(){this.alignedObjects.forEach(dr=>dr.align())}}return Ut(cr.prototype,{Element:mt,SVG_NS:Nt,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:Mt,draw:qt}),ht.registerRendererType("svg",cr,!0),cr}),nt(rt,"Core/Renderer/HTML/HTMLElement.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Globals.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){let{composed:ht}=ut,{attr:mt,css:xt,createElement:Mt,defined:vt,extend:Ot,pInt:At,pushUnique:Rt}=pt;function zt(Dt,kt,qt){var Yt;let Nt=((Yt=this.div)==null?void 0:Yt.style)||qt.style;dt.prototype[`${kt}Setter`].call(this,Dt,kt,qt),Nt&&(Nt[kt]=Dt)}let Tt=(Dt,kt)=>{var qt;if(!Dt.div){let Nt=mt(Dt.element,"class"),Yt=Dt.css,Kt=Mt("div",Nt?{className:Nt}:void 0,{position:"absolute",left:`${Dt.translateX||0}px`,top:`${Dt.translateY||0}px`,...Dt.styles,display:Dt.display,opacity:Dt.opacity,visibility:Dt.visibility},((qt=Dt.parentGroup)==null?void 0:qt.div)||kt);Dt.classSetter=(Jt,Qt,Bt)=>{Bt.setAttribute("class",Jt),Kt.className=Jt},Dt.translateXSetter=Dt.translateYSetter=(Jt,Qt)=>{Dt[Qt]=Jt,Kt.style[Qt==="translateX"?"left":"top"]=`${Jt}px`,Dt.doTransform=!0},Dt.opacitySetter=Dt.visibilitySetter=zt,Dt.css=Jt=>(Yt.call(Dt,Jt),Jt.cursor&&(Kt.style.cursor=Jt.cursor),Jt.pointerEvents&&(Kt.style.pointerEvents=Jt.pointerEvents),Dt),Dt.on=function(){return dt.prototype.on.apply({element:Kt,onEvents:Dt.onEvents},arguments),Dt},Dt.div=Kt}return Dt.div};class Ct extends dt{static compose(kt){Rt(ht,this.compose)&&(kt.prototype.html=function(qt,Nt,Yt){return new Ct(this,"span").attr({text:qt,x:Math.round(Nt),y:Math.round(Yt)})})}constructor(kt,qt){super(kt,qt),this.css({position:"absolute",...kt.styledMode?{}:{fontFamily:kt.style.fontFamily,fontSize:kt.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(kt,qt,Nt){this.xCorr=-kt*Nt,this.yCorr=-qt}css(kt){let qt,{element:Nt}=this,Yt=Nt.tagName==="SPAN"&&kt&&"width"in kt,Kt=Yt&&kt.width;return Yt&&(delete kt.width,this.textWidth=At(Kt)||void 0,qt=!0),(kt==null?void 0:kt.textOverflow)==="ellipsis"&&(kt.whiteSpace="nowrap",kt.overflow="hidden"),Ot(this.styles,kt),xt(Nt,kt),qt&&this.updateTransform(),this}htmlGetBBox(){let{element:kt}=this;return{x:kt.offsetLeft,y:kt.offsetTop,width:kt.offsetWidth,height:kt.offsetHeight}}updateTransform(){var Ht;if(!this.added){this.alignOnAdd=!0;return}let{element:kt,renderer:qt,rotation:Nt,rotationOriginX:Yt,rotationOriginY:Kt,styles:Jt,textAlign:Qt="left",textWidth:Bt,translateX:Ft=0,translateY:$t=0,x:jt=0,y:Wt=0}=this,Ut={left:0,center:.5,right:1}[Qt],Vt=Jt.whiteSpace;if(xt(kt,{marginLeft:`${Ft}px`,marginTop:`${$t}px`}),kt.tagName==="SPAN"){let Gt=[Nt,Qt,kt.innerHTML,Bt,this.textAlign].join(","),Zt=-(((Ht=this.parentGroup)==null?void 0:Ht.padding)*1)||0,Xt,er=!1;if(Bt!==this.oldTextWidth){let ir=this.textPxLength?this.textPxLength:(xt(kt,{width:"",whiteSpace:Vt||"nowrap"}),kt.offsetWidth),dr=Bt||0;(dr>this.oldTextWidth||ir>dr)&&(/[ \-]/.test(kt.textContent||kt.innerText)||kt.style.textOverflow==="ellipsis")&&(xt(kt,{width:ir>dr||Nt?Bt+"px":"auto",display:"block",whiteSpace:Vt||"normal"}),this.oldTextWidth=Bt,er=!0)}this.hasBoxWidthChanged=er,Gt!==this.cTT&&(Xt=qt.fontMetrics(kt).b,vt(Nt)&&(Nt!==(this.oldRotation||0)||Qt!==this.oldAlign)&&this.setSpanRotation(Nt,Zt,Zt),this.getSpanCorrection(!vt(Nt)&&this.textPxLength||kt.offsetWidth,Xt,Ut));let{xCorr:nr=0,yCorr:or=0}=this,rr=(Yt??jt)-nr-jt-Zt,cr=(Kt??Wt)-or-Wt-Zt;xt(kt,{left:`${jt+nr}px`,top:`${Wt+or}px`,transformOrigin:`${rr}px ${cr}px`}),this.cTT=Gt,this.oldRotation=Nt,this.oldAlign=Qt}}setSpanRotation(kt,qt,Nt){xt(this.element,{transform:`rotate(${kt}deg)`,transformOrigin:`${qt}% ${Nt}px`})}add(kt){let qt,Nt=this.renderer.box.parentNode,Yt=[];if(this.parentGroup=kt,kt&&!(qt=kt.div)){let Kt=kt;for(;Kt;)Yt.push(Kt),Kt=Kt.parentGroup;for(let Jt of Yt.reverse())qt=Tt(Jt,Nt)}return(qt||Nt).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(kt){kt!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,lt.setElementHTML(this.element,kt??""),this.textStr=kt,this.doTransform=!0)}alignSetter(kt){this.alignValue=this.textAlign=kt,this.doTransform=!0}xSetter(kt,qt){this[qt]=kt,this.doTransform=!0}}let It=Ct.prototype;return It.visibilitySetter=It.opacitySetter=zt,It.ySetter=It.rotationSetter=It.rotationOriginXSetter=It.rotationOriginYSetter=It.xSetter,Ct}),nt(rt,"Core/Axis/AxisDefaults.js",[],function(){var lt,ut;return(ut=lt||(lt={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},ut.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:dt}=this.axis.chart;return dt(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},lt}),nt(rt,"Core/Foundation.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{addEvent:dt,isFunction:pt,objectEach:ht,removeEvent:mt}=lt;return(ut||(ut={})).registerEventOptions=function(xt,Mt){xt.eventOptions=xt.eventOptions||{},ht(Mt.events,function(vt,Ot){xt.eventOptions[Ot]!==vt&&(xt.eventOptions[Ot]&&(mt(xt,Ot,xt.eventOptions[Ot]),delete xt.eventOptions[Ot]),pt(vt)&&(xt.eventOptions[Ot]=vt,dt(xt,Ot,vt,{order:0})))})},ut}),nt(rt,"Core/Axis/Tick.js",[rt["Core/Templating.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{deg2rad:pt}=ut,{clamp:ht,correctFloat:mt,defined:xt,destroyObjectProperties:Mt,extend:vt,fireEvent:Ot,isNumber:At,merge:Rt,objectEach:zt,pick:Tt}=dt;return class{constructor(Ct,It,Dt,kt,qt){this.isNew=!0,this.isNewLabel=!0,this.axis=Ct,this.pos=It,this.type=Dt||"",this.parameters=qt||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,Ot(this,"init"),Dt||kt||this.addLabel()}addLabel(){let Ct=this,It=Ct.axis,Dt=It.options,kt=It.chart,qt=It.categories,Nt=It.logarithmic,Yt=It.names,Kt=Ct.pos,Jt=Tt(Ct.options&&Ct.options.labels,Dt.labels),Qt=It.tickPositions,Bt=Kt===Qt[0],Ft=Kt===Qt[Qt.length-1],$t=(!Jt.step||Jt.step===1)&&It.tickInterval===1,jt=Qt.info,Wt=Ct.label,Ut,Vt,Ht,Gt=this.parameters.category||(qt?Tt(qt[Kt],Yt[Kt],Kt):Kt);Nt&&At(Gt)&&(Gt=mt(Nt.lin2log(Gt))),It.dateTime&&(jt?Ut=(Vt=kt.time.resolveDTLFormat(Dt.dateTimeLabelFormats[!Dt.grid&&jt.higherRanks[Kt]||jt.unitName])).main:At(Gt)&&(Ut=It.dateTime.getXDateFormat(Gt,Dt.dateTimeLabelFormats||{}))),Ct.isFirst=Bt,Ct.isLast=Ft;let Zt={axis:It,chart:kt,dateTimeLabelFormat:Ut,isFirst:Bt,isLast:Ft,pos:Kt,tick:Ct,tickPositionInfo:jt,value:Gt};Ot(this,"labelFormat",Zt);let Xt=or=>Jt.formatter?Jt.formatter.call(or,or):Jt.format?(or.text=It.defaultLabelFormatter.call(or),lt.format(Jt.format,or,kt)):It.defaultLabelFormatter.call(or),er=Xt.call(Zt,Zt),nr=Vt&&Vt.list;nr?Ct.shortenLabel=function(){for(Ht=0;Ht<nr.length;Ht++)if(vt(Zt,{dateTimeLabelFormat:nr[Ht]}),Wt.attr({text:Xt.call(Zt,Zt)}),Wt.getBBox().width<It.getSlotWidth(Ct)-2*(Jt.padding||0))return;Wt.attr({text:""})}:Ct.shortenLabel=void 0,$t&&It._addedPlotLB&&Ct.moveLabel(er,Jt),xt(Wt)||Ct.movedLabel?Wt&&Wt.textStr!==er&&!$t&&(!Wt.textWidth||Jt.style.width||Wt.styles.width||Wt.css({width:null}),Wt.attr({text:er}),Wt.textPxLength=Wt.getBBox().width):(Ct.label=Wt=Ct.createLabel(er,Jt),Ct.rotation=0)}createLabel(Ct,It,Dt){let kt=this.axis,qt=kt.chart,Nt=xt(Ct)&&It.enabled?qt.renderer.text(Ct,Dt==null?void 0:Dt.x,Dt==null?void 0:Dt.y,It.useHTML).add(kt.labelGroup):void 0;return Nt&&(qt.styledMode||Nt.css(Rt(It.style)),Nt.textPxLength=Nt.getBBox().width),Nt}destroy(){Mt(this,this.axis)}getPosition(Ct,It,Dt,kt){let qt=this.axis,Nt=qt.chart,Yt=kt&&Nt.oldChartHeight||Nt.chartHeight,Kt={x:Ct?mt(qt.translate(It+Dt,void 0,void 0,kt)+qt.transB):qt.left+qt.offset+(qt.opposite?(kt&&Nt.oldChartWidth||Nt.chartWidth)-qt.right-qt.left:0),y:Ct?Yt-qt.bottom+qt.offset-(qt.opposite?qt.height:0):mt(Yt-qt.translate(It+Dt,void 0,void 0,kt)-qt.transB)};return Kt.y=ht(Kt.y,-1e5,1e5),Ot(this,"afterGetPosition",{pos:Kt}),Kt}getLabelPosition(Ct,It,Dt,kt,qt,Nt,Yt,Kt){let Jt,Qt,Bt=this.axis,Ft=Bt.transA,$t=Bt.isLinked&&Bt.linkedParent?Bt.linkedParent.reversed:Bt.reversed,jt=Bt.staggerLines,Wt=Bt.tickRotCorr||{x:0,y:0},Ut=kt||Bt.reserveSpaceDefault?0:-Bt.labelOffset*(Bt.labelAlign==="center"?.5:1),Vt=qt.distance,Ht={};return Jt=Bt.side===0?Dt.rotation?-Vt:-Dt.getBBox().height:Bt.side===2?Wt.y+Vt:Math.cos(Dt.rotation*pt)*(Wt.y-Dt.getBBox(!1,0).height/2),xt(qt.y)&&(Jt=Bt.side===0&&Bt.horiz?qt.y+Jt:qt.y),Ct=Ct+Tt(qt.x,[0,1,0,-1][Bt.side]*Vt)+Ut+Wt.x-(Nt&&kt?Nt*Ft*($t?-1:1):0),It=It+Jt-(Nt&&!kt?Nt*Ft*($t?1:-1):0),jt&&(Qt=Yt/(Kt||1)%jt,Bt.opposite&&(Qt=jt-Qt-1),It+=Qt*(Bt.labelOffset/jt)),Ht.x=Ct,Ht.y=Math.round(It),Ot(this,"afterGetLabelPosition",{pos:Ht,tickmarkOffset:Nt,index:Yt}),Ht}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(Ct,It,Dt,kt,qt=!1,Nt){return Nt.crispLine([["M",Ct,It],["L",Ct+(qt?0:-Dt),It+(qt?Dt:0)]],kt)}handleOverflow(Ct){let It=this.axis,Dt=It.options.labels,kt=Ct.x,qt=It.chart.chartWidth,Nt=It.chart.spacing,Yt=Tt(It.labelLeft,Math.min(It.pos,Nt[3])),Kt=Tt(It.labelRight,Math.max(It.isRadial?0:It.pos+It.len,qt-Nt[1])),Jt=this.label,Qt=this.rotation,Bt={left:0,center:.5,right:1}[It.labelAlign||Jt.attr("align")],Ft=Jt.getBBox().width,$t=It.getSlotWidth(this),jt={},Wt=$t,Ut=1,Vt,Ht,Gt;Qt||Dt.overflow!=="justify"?Qt<0&&kt-Bt*Ft<Yt?Gt=Math.round(kt/Math.cos(Qt*pt)-Yt):Qt>0&&kt+Bt*Ft>Kt&&(Gt=Math.round((qt-kt)/Math.cos(Qt*pt))):(Vt=kt-Bt*Ft,Ht=kt+(1-Bt)*Ft,Vt<Yt?Wt=Ct.x+Wt*(1-Bt)-Yt:Ht>Kt&&(Wt=Kt-Ct.x+Wt*Bt,Ut=-1),(Wt=Math.min($t,Wt))<$t&&It.labelAlign==="center"&&(Ct.x+=Ut*($t-Wt-Bt*($t-Math.min(Ft,Wt)))),(Ft>Wt||It.autoRotation&&(Jt.styles||{}).width)&&(Gt=Wt)),Gt&&(this.shortenLabel?this.shortenLabel():(jt.width=Math.floor(Gt)+"px",(Dt.style||{}).textOverflow||(jt.textOverflow="ellipsis"),Jt.css(jt)))}moveLabel(Ct,It){let Dt=this,kt=Dt.label,qt=Dt.axis,Nt=!1,Yt;kt&&kt.textStr===Ct?(Dt.movedLabel=kt,Nt=!0,delete Dt.label):zt(qt.ticks,function(Kt){Nt||Kt.isNew||Kt===Dt||!Kt.label||Kt.label.textStr!==Ct||(Dt.movedLabel=Kt.label,Nt=!0,Kt.labelPos=Dt.movedLabel.xy,delete Kt.label)}),!Nt&&(Dt.labelPos||kt)&&(Yt=Dt.labelPos||kt.xy,Dt.movedLabel=Dt.createLabel(Ct,It,Yt),Dt.movedLabel&&Dt.movedLabel.attr({opacity:0}))}render(Ct,It,Dt){let kt=this.axis,qt=kt.horiz,Nt=this.pos,Yt=Tt(this.tickmarkOffset,kt.tickmarkOffset),Kt=this.getPosition(qt,Nt,Yt,It),Jt=Kt.x,Qt=Kt.y,Bt=kt.pos,Ft=Bt+kt.len,$t=qt?Jt:Qt;!kt.chart.polar&&this.isNew&&(mt($t)<Bt||$t>Ft)&&(Dt=0);let jt=Tt(Dt,this.label&&this.label.newOpacity,1);Dt=Tt(Dt,1),this.isActive=!0,this.renderGridLine(It,Dt),this.renderMark(Kt,Dt),this.renderLabel(Kt,It,jt,Ct),this.isNew=!1,Ot(this,"afterRender")}renderGridLine(Ct,It){let Dt=this.axis,kt=Dt.options,qt={},Nt=this.pos,Yt=this.type,Kt=Tt(this.tickmarkOffset,Dt.tickmarkOffset),Jt=Dt.chart.renderer,Qt=this.gridLine,Bt,Ft=kt.gridLineWidth,$t=kt.gridLineColor,jt=kt.gridLineDashStyle;this.type==="minor"&&(Ft=kt.minorGridLineWidth,$t=kt.minorGridLineColor,jt=kt.minorGridLineDashStyle),Qt||(Dt.chart.styledMode||(qt.stroke=$t,qt["stroke-width"]=Ft||0,qt.dashstyle=jt),Yt||(qt.zIndex=1),Ct&&(It=0),this.gridLine=Qt=Jt.path().attr(qt).addClass("highcharts-"+(Yt?Yt+"-":"")+"grid-line").add(Dt.gridGroup)),Qt&&(Bt=Dt.getPlotLinePath({value:Nt+Kt,lineWidth:Qt.strokeWidth(),force:"pass",old:Ct,acrossPanes:!1}))&&Qt[Ct||this.isNew?"attr":"animate"]({d:Bt,opacity:It})}renderMark(Ct,It){let Dt=this.axis,kt=Dt.options,qt=Dt.chart.renderer,Nt=this.type,Yt=Dt.tickSize(Nt?Nt+"Tick":"tick"),Kt=Ct.x,Jt=Ct.y,Qt=Tt(kt[Nt!=="minor"?"tickWidth":"minorTickWidth"],!Nt&&Dt.isXAxis?1:0),Bt=kt[Nt!=="minor"?"tickColor":"minorTickColor"],Ft=this.mark,$t=!Ft;Yt&&(Dt.opposite&&(Yt[0]=-Yt[0]),Ft||(this.mark=Ft=qt.path().addClass("highcharts-"+(Nt?Nt+"-":"")+"tick").add(Dt.axisGroup),Dt.chart.styledMode||Ft.attr({stroke:Bt,"stroke-width":Qt})),Ft[$t?"attr":"animate"]({d:this.getMarkPath(Kt,Jt,Yt[0],Ft.strokeWidth(),Dt.horiz,qt),opacity:It}))}renderLabel(Ct,It,Dt,kt){let qt=this.axis,Nt=qt.horiz,Yt=qt.options,Kt=this.label,Jt=Yt.labels,Qt=Jt.step,Bt=Tt(this.tickmarkOffset,qt.tickmarkOffset),Ft=Ct.x,$t=Ct.y,jt=!0;Kt&&At(Ft)&&(Kt.xy=Ct=this.getLabelPosition(Ft,$t,Kt,Nt,Jt,Bt,kt,Qt),(!this.isFirst||this.isLast||Yt.showFirstLabel)&&(!this.isLast||this.isFirst||Yt.showLastLabel)?!Nt||Jt.step||Jt.rotation||It||Dt===0||this.handleOverflow(Ct):jt=!1,Qt&&kt%Qt&&(jt=!1),jt&&At(Ct.y)?(Ct.opacity=Dt,Kt[this.isNewLabel?"attr":"animate"](Ct).show(!0),this.isNewLabel=!1):(Kt.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let Ct=this.label,It=this.axis;Ct&&!this.isNew&&(Ct.animate({opacity:0},void 0,Ct.destroy),delete this.label),It.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),nt(rt,"Core/Axis/Axis.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Axis/AxisDefaults.js"],rt["Core/Color/Color.js"],rt["Core/Defaults.js"],rt["Core/Foundation.js"],rt["Core/Globals.js"],rt["Core/Axis/Tick.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt){let{animObject:vt}=lt,{xAxis:Ot,yAxis:At}=ut,{defaultOptions:Rt}=pt,{registerEventOptions:zt}=ht,{deg2rad:Tt}=mt,{arrayMax:Ct,arrayMin:It,clamp:Dt,correctFloat:kt,defined:qt,destroyObjectProperties:Nt,erase:Yt,error:Kt,extend:Jt,fireEvent:Qt,getClosestDistance:Bt,insertItem:Ft,isArray:$t,isNumber:jt,isString:Wt,merge:Ut,normalizeTickInterval:Vt,objectEach:Ht,pick:Gt,relativeLength:Zt,removeEvent:Xt,splat:er,syncTimeout:nr}=Mt,or=(cr,ir)=>Vt(ir,void 0,void 0,Gt(cr.options.allowDecimals,ir<.5||cr.tickAmount!==void 0),!!cr.tickAmount);Jt(Rt,{xAxis:Ot,yAxis:Ut(Ot,At)});class rr{constructor(ir,dr,gr){this.init(ir,dr,gr)}init(ir,dr,gr=this.coll){let br=gr==="xAxis",ar=this.isZAxis||(ir.inverted?!br:br);this.chart=ir,this.horiz=ar,this.isXAxis=br,this.coll=gr,Qt(this,"init",{userOptions:dr}),this.opposite=Gt(dr.opposite,this.opposite),this.side=Gt(dr.side,this.side,ar?this.opposite?0:2:this.opposite?1:3),this.setOptions(dr);let ur=this.options,xr=ur.labels,Mr=ur.type;this.userOptions=dr,this.minPixelPadding=0,this.reversed=Gt(ur.reversed,this.reversed),this.visible=ur.visible,this.zoomEnabled=ur.zoomEnabled,this.hasNames=Mr==="category"||ur.categories===!0,this.categories=$t(ur.categories)&&ur.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=qt(ur.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=ur.minRange||ur.maxZoom,this.range=ur.range,this.offset=ur.offset||0,this.max=void 0,this.min=void 0;let Ar=Gt(ur.crosshair,er(ir.options.tooltip.crosshairs)[br?0:1]);this.crosshair=Ar===!0?{}:Ar,ir.axes.indexOf(this)===-1&&(br?ir.axes.splice(ir.xAxis.length,0,this):ir.axes.push(this),Ft(this,ir[this.coll])),ir.orderItems(this.coll),this.series=this.series||[],ir.inverted&&!this.isZAxis&&br&&!qt(this.reversed)&&(this.reversed=!0),this.labelRotation=jt(xr.rotation)?xr.rotation:void 0,zt(this,ur),Qt(this,"afterInit")}setOptions(ir){let dr=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=Ut(dr,Rt[this.coll],ir),Qt(this,"afterSetOptions",{userOptions:ir})}defaultLabelFormatter(){let ir=this.axis,{numberFormatter:dr}=this.chart,gr=jt(this.value)?this.value:NaN,br=ir.chart.time,ar=ir.categories,ur=this.dateTimeLabelFormat,xr=Rt.lang,Mr=xr.numericSymbols,Ar=xr.numericSymbolMagnitude||1e3,Ir=ir.logarithmic?Math.abs(gr):ir.tickInterval,Rr=Mr&&Mr.length,wr,qr;if(ar)qr=`${this.value}`;else if(ur)qr=br.dateFormat(ur,gr);else if(Rr&&Mr&&Ir>=1e3)for(;Rr--&&qr===void 0;)Ir>=(wr=Math.pow(Ar,Rr+1))&&10*gr%wr==0&&Mr[Rr]!==null&&gr!==0&&(qr=dr(gr/wr,-1)+Mr[Rr]);return qr===void 0&&(qr=Math.abs(gr)>=1e4?dr(gr,-1):dr(gr,-1,void 0,"")),qr}getSeriesExtremes(){let ir,dr=this;Qt(this,"getSeriesExtremes",null,function(){dr.hasVisibleSeries=!1,dr.dataMin=dr.dataMax=dr.threshold=void 0,dr.softThreshold=!dr.isXAxis,dr.series.forEach(gr=>{if(gr.reserveSpace()){let br=gr.options,ar,ur=br.threshold,xr,Mr;if(dr.hasVisibleSeries=!0,dr.positiveValuesOnly&&0>=(ur||0)&&(ur=void 0),dr.isXAxis)(ar=gr.xData)&&ar.length&&(ar=dr.logarithmic?ar.filter(Ar=>Ar>0):ar,xr=(ir=gr.getXExtremes(ar)).min,Mr=ir.max,jt(xr)||xr instanceof Date||(ar=ar.filter(jt),xr=(ir=gr.getXExtremes(ar)).min,Mr=ir.max),ar.length&&(dr.dataMin=Math.min(Gt(dr.dataMin,xr),xr),dr.dataMax=Math.max(Gt(dr.dataMax,Mr),Mr)));else{let Ar=gr.applyExtremes();jt(Ar.dataMin)&&(xr=Ar.dataMin,dr.dataMin=Math.min(Gt(dr.dataMin,xr),xr)),jt(Ar.dataMax)&&(Mr=Ar.dataMax,dr.dataMax=Math.max(Gt(dr.dataMax,Mr),Mr)),qt(ur)&&(dr.threshold=ur),(!br.softThreshold||dr.positiveValuesOnly)&&(dr.softThreshold=!1)}}})}),Qt(this,"afterGetSeriesExtremes")}translate(ir,dr,gr,br,ar,ur){var kr;let xr=this.linkedParent||this,Mr=br&&xr.old?xr.old.min:xr.min;if(!jt(Mr))return NaN;let Ar=xr.minPixelPadding,Ir=(xr.isOrdinal||((kr=xr.brokenAxis)==null?void 0:kr.hasBreaks)||xr.logarithmic&&ar)&&xr.lin2val,Rr=1,wr=0,qr=br&&xr.old?xr.old.transA:xr.transA,Hr=0;return qr||(qr=xr.transA),gr&&(Rr*=-1,wr=xr.len),xr.reversed&&(Rr*=-1,wr-=Rr*(xr.sector||xr.len)),dr?(Hr=(ir=ir*Rr+wr-Ar)/qr+Mr,Ir&&(Hr=xr.lin2val(Hr))):(Ir&&(ir=xr.val2lin(ir)),Hr=Rr*(ir-Mr)*qr+wr+Rr*Ar+(jt(ur)?qr*ur:0),xr.isRadial||(Hr=kt(Hr))),Hr}toPixels(ir,dr){return this.translate(ir,!1,!this.horiz,void 0,!0)+(dr?0:this.pos)}toValue(ir,dr){return this.translate(ir-(dr?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(ir){let dr=this,gr=dr.chart,br=dr.left,ar=dr.top,ur=ir.old,xr=ir.value,Mr=ir.lineWidth,Ar=ur&&gr.oldChartHeight||gr.chartHeight,Ir=ur&&gr.oldChartWidth||gr.chartWidth,Rr=dr.transB,wr=ir.translatedValue,qr=ir.force,Hr,kr,$r,yr,Or;function Dr(Yr,Gr,Jr){return qr!=="pass"&&(Yr<Gr||Yr>Jr)&&(qr?Yr=Dt(Yr,Gr,Jr):Or=!0),Yr}let Fr={value:xr,lineWidth:Mr,old:ur,force:qr,acrossPanes:ir.acrossPanes,translatedValue:wr};return Qt(this,"getPlotLinePath",Fr,function(Yr){Hr=$r=(wr=Dt(wr=Gt(wr,dr.translate(xr,void 0,void 0,ur)),-1e5,1e5))+Rr,kr=yr=Ar-wr-Rr,jt(wr)?dr.horiz?(kr=ar,yr=Ar-dr.bottom+(dr.options.isInternal?0:gr.scrollablePixelsY||0),Hr=$r=Dr(Hr,br,br+dr.width)):(Hr=br,$r=Ir-dr.right+(gr.scrollablePixelsX||0),kr=yr=Dr(kr,ar,ar+dr.height)):(Or=!0,qr=!1),Yr.path=Or&&!qr?void 0:gr.renderer.crispLine([["M",Hr,kr],["L",$r,yr]],Mr||1)}),Fr.path}getLinearTickPositions(ir,dr,gr){let br,ar,ur,xr=kt(Math.floor(dr/ir)*ir),Mr=kt(Math.ceil(gr/ir)*ir),Ar=[];if(kt(xr+ir)===xr&&(ur=20),this.single)return[dr];for(br=xr;br<=Mr&&(Ar.push(br),(br=kt(br+ir,ur))!==ar);)ar=br;return Ar}getMinorTickInterval(){let{minorTicks:ir,minorTickInterval:dr}=this.options;return ir===!0?Gt(dr,"auto"):ir!==!1?dr:void 0}getMinorTickPositions(){let ir=this.options,dr=this.tickPositions,gr=this.minorTickInterval,br=this.pointRangePadding||0,ar=(this.min||0)-br,ur=(this.max||0)+br,xr=ur-ar,Mr=[],Ar;if(xr&&xr/gr<this.len/3){let Ir=this.logarithmic;if(Ir)this.paddedTicks.forEach(function(Rr,wr,qr){wr&&Mr.push.apply(Mr,Ir.getLogTickPositions(gr,qr[wr-1],qr[wr],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")Mr=Mr.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(gr),ar,ur,ir.startOfWeek));else for(Ar=ar+(dr[0]-ar)%gr;Ar<=ur&&Ar!==Mr[0];Ar+=gr)Mr.push(Ar)}return Mr.length!==0&&this.trimTicks(Mr),Mr}adjustForMinRange(){let ir=this.options,dr=this.logarithmic,{max:gr,min:br,minRange:ar}=this,ur,xr,Mr,Ar;this.isXAxis&&ar===void 0&&!dr&&(ar=qt(ir.min)||qt(ir.max)||qt(ir.floor)||qt(ir.ceiling)?null:Math.min(5*(Bt(this.series.map(Ir=>{var Rr;return(Ir.xIncrement?(Rr=Ir.xData)==null?void 0:Rr.slice(0,2):Ir.xData)||[]}))||0),this.dataMax-this.dataMin)),jt(gr)&&jt(br)&&jt(ar)&&gr-br<ar&&(xr=this.dataMax-this.dataMin>=ar,ur=(ar-gr+br)/2,Mr=[br-ur,Gt(ir.min,br-ur)],xr&&(Mr[2]=dr?dr.log2lin(this.dataMin):this.dataMin),Ar=[(br=Ct(Mr))+ar,Gt(ir.max,br+ar)],xr&&(Ar[2]=dr?dr.log2lin(this.dataMax):this.dataMax),(gr=It(Ar))-br<ar&&(Mr[0]=gr-ar,Mr[1]=Gt(ir.min,gr-ar),br=Ct(Mr))),this.minRange=ar,this.min=br,this.max=gr}getClosest(){let ir,dr;if(this.categories)dr=1;else{let gr=[];this.series.forEach(function(br){var ur;let ar=br.closestPointRange;((ur=br.xData)==null?void 0:ur.length)===1?gr.push(br.xData[0]):!br.noSharedTooltip&&qt(ar)&&br.reserveSpace()&&(dr=qt(dr)?Math.min(dr,ar):ar)}),gr.length&&(gr.sort((br,ar)=>br-ar),ir=Bt([gr]))}return ir&&dr?Math.min(ir,dr):ir||dr}nameToX(ir){let dr=$t(this.options.categories),gr=dr?this.categories:this.names,br=ir.options.x,ar;return ir.series.requireSorting=!1,qt(br)||(br=this.options.uniqueNames&&gr?dr?gr.indexOf(ir.name):Gt(gr.keys[ir.name],-1):ir.series.autoIncrement()),br===-1?!dr&&gr&&(ar=gr.length):ar=br,ar!==void 0?(this.names[ar]=ir.name,this.names.keys[ir.name]=ar):ir.x&&(ar=ir.x),ar}updateNames(){let ir=this,dr=this.names;dr.length>0&&(Object.keys(dr.keys).forEach(function(gr){delete dr.keys[gr]}),dr.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(gr=>{gr.xIncrement=null,(!gr.points||gr.isDirtyData)&&(ir.max=Math.max(ir.max,gr.xData.length-1),gr.processData(),gr.generatePoints()),gr.data.forEach(function(br,ar){let ur;br!=null&&br.options&&br.name!==void 0&&(ur=ir.nameToX(br))!==void 0&&ur!==br.x&&(br.x=ur,gr.xData[ar]=ur)})}))}setAxisTranslation(){let ir=this,dr=ir.max-ir.min,gr=ir.linkedParent,br=!!ir.categories,ar=ir.isXAxis,ur=ir.axisPointRange||0,xr,Mr=0,Ar=0,Ir,Rr=ir.transA;(ar||br||ur)&&(xr=ir.getClosest(),gr?(Mr=gr.minPointOffset,Ar=gr.pointRangePadding):ir.series.forEach(function(wr){let qr=br?1:ar?Gt(wr.options.pointRange,xr,0):ir.axisPointRange||0,Hr=wr.options.pointPlacement;if(ur=Math.max(ur,qr),!ir.single||br){let kr=wr.is("xrange")?!ar:ar;Mr=Math.max(Mr,kr&&Wt(Hr)?0:qr/2),Ar=Math.max(Ar,kr&&Hr==="on"?0:qr)}}),Ir=ir.ordinal&&ir.ordinal.slope&&xr?ir.ordinal.slope/xr:1,ir.minPointOffset=Mr*=Ir,ir.pointRangePadding=Ar*=Ir,ir.pointRange=Math.min(ur,ir.single&&br?1:dr),ar&&xr&&(ir.closestPointRange=xr)),ir.translationSlope=ir.transA=Rr=ir.staticScale||ir.len/(dr+Ar||1),ir.transB=ir.horiz?ir.left:ir.bottom,ir.minPixelPadding=Rr*Mr,Qt(this,"afterSetAxisTranslation")}minFromRange(){let{max:ir,min:dr}=this;return jt(ir)&&jt(dr)&&ir-dr||void 0}setTickInterval(ir){var _r,ln,vn,Cr;let{categories:dr,chart:gr,dataMax:br,dataMin:ar,dateTime:ur,isXAxis:xr,logarithmic:Mr,options:Ar,softThreshold:Ir}=this,Rr=jt(this.threshold)?this.threshold:void 0,wr=this.minRange||0,{ceiling:qr,floor:Hr,linkedTo:kr,softMax:$r,softMin:yr}=Ar,Or=jt(kr)&&((_r=gr[this.coll])==null?void 0:_r[kr]),Dr=Ar.tickPixelInterval,Fr=Ar.maxPadding,Yr=Ar.minPadding,Gr=0,Jr,jr=jt(Ar.tickInterval)&&Ar.tickInterval>=0?Ar.tickInterval:void 0,Zr,Xr,cn,Qr;if(ur||dr||Or||this.getTickAmount(),cn=Gt(this.userMin,Ar.min),Qr=Gt(this.userMax,Ar.max),Or?(this.linkedParent=Or,Jr=Or.getExtremes(),this.min=Gt(Jr.min,Jr.dataMin),this.max=Gt(Jr.max,Jr.dataMax),Ar.type!==Or.options.type&&Kt(11,!0,gr)):(Ir&&qt(Rr)&&jt(br)&&jt(ar)&&(ar>=Rr?(Zr=Rr,Yr=0):br<=Rr&&(Xr=Rr,Fr=0)),this.min=Gt(cn,Zr,ar),this.max=Gt(Qr,Xr,br)),jt(this.max)&&jt(this.min)&&(Mr&&(this.positiveValuesOnly&&!ir&&0>=Math.min(this.min,Gt(ar,this.min))&&Kt(10,!0,gr),this.min=kt(Mr.log2lin(this.min),16),this.max=kt(Mr.log2lin(this.max),16)),this.range&&jt(ar)&&(this.userMin=this.min=cn=Math.max(ar,this.minFromRange()||0),this.userMax=Qr=this.max,this.range=void 0)),Qt(this,"foundExtremes"),this.adjustForMinRange(),jt(this.min)&&jt(this.max)){if(!jt(this.userMin)&&jt(yr)&&yr<this.min&&(this.min=cn=yr),!jt(this.userMax)&&jt($r)&&$r>this.max&&(this.max=Qr=$r),dr||this.axisPointRange||(ln=this.stacking)!=null&&ln.usePercentage||Or||!(Gr=this.max-this.min)||(!qt(cn)&&Yr&&(this.min-=Gr*Yr),qt(Qr)||!Fr||(this.max+=Gr*Fr)),!jt(this.userMin)&&jt(Hr)&&(this.min=Math.max(this.min,Hr)),!jt(this.userMax)&&jt(qr)&&(this.max=Math.min(this.max,qr)),Ir&&jt(ar)&&jt(br)){let gn=Rr||0;!qt(cn)&&this.min<gn&&ar>=gn?this.min=Ar.minRange?Math.min(gn,this.max-wr):gn:!qt(Qr)&&this.max>gn&&br<=gn&&(this.max=Ar.minRange?Math.max(gn,this.min+wr):gn)}!gr.polar&&this.min>this.max&&(qt(Ar.min)?this.max=this.min:qt(Ar.max)&&(this.min=this.max)),Gr=this.max-this.min}if(this.min!==this.max&&jt(this.min)&&jt(this.max)?Or&&!jr&&Dr===Or.options.tickPixelInterval?this.tickInterval=jr=Or.tickInterval:this.tickInterval=Gt(jr,this.tickAmount?Gr/Math.max(this.tickAmount-1,1):void 0,dr?1:Gr*Dr/Math.max(this.len,Dr)):this.tickInterval=1,xr&&!ir){let gn=this.min!==((vn=this.old)==null?void 0:vn.min)||this.max!==((Cr=this.old)==null?void 0:Cr.max);this.series.forEach(function(xn){var Vr;xn.forceCrop=(Vr=xn.forceCropping)==null?void 0:Vr.call(xn),xn.processData(gn)}),Qt(this,"postProcessData",{hasExtremesChanged:gn})}this.setAxisTranslation(),Qt(this,"initialAxisTranslation"),this.pointRange&&!jr&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let rn=Gt(Ar.minTickInterval,ur&&!this.series.some(gn=>gn.noSharedTooltip)?this.closestPointRange:0);!jr&&this.tickInterval<rn&&(this.tickInterval=rn),ur||Mr||jr||(this.tickInterval=or(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var Ir,Rr;let ir=this.options,dr=ir.tickPositions,gr=ir.tickPositioner,br=this.getMinorTickInterval(),ar=!this.isPanning,ur=ar&&ir.startOnTick,xr=ar&&ir.endOnTick,Mr=[],Ar;if(this.tickmarkOffset=this.categories&&ir.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=br==="auto"&&this.tickInterval?this.tickInterval/ir.minorTicksPerMajor:br,this.single=this.min===this.max&&qt(this.min)&&!this.tickAmount&&(this.min%1==0||ir.allowDecimals!==!1),dr)Mr=dr.slice();else if(jt(this.min)&&jt(this.max)){if(!((Ir=this.ordinal)!=null&&Ir.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))Mr=[this.min,this.max],Kt(19,!1,this.chart);else if(this.dateTime)Mr=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,ir.units),this.min,this.max,ir.startOfWeek,(Rr=this.ordinal)==null?void 0:Rr.positions,this.closestPointRange,!0);else if(this.logarithmic)Mr=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let wr=this.tickInterval,qr=wr;for(;qr<=2*wr&&(Mr=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&Mr.length>this.tickAmount);)this.tickInterval=or(this,qr*=1.1)}Mr.length>this.len&&(Mr=[Mr[0],Mr[Mr.length-1]])[0]===Mr[1]&&(Mr.length=1),gr&&(this.tickPositions=Mr,(Ar=gr.apply(this,[this.min,this.max]))&&(Mr=Ar))}this.tickPositions=Mr,this.paddedTicks=Mr.slice(0),this.trimTicks(Mr,ur,xr),!this.isLinked&&jt(this.min)&&jt(this.max)&&(this.single&&Mr.length<2&&!this.categories&&!this.series.some(wr=>wr.is("heatmap")&&wr.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),dr||Ar||this.adjustTickAmount()),Qt(this,"afterSetTickPositions")}trimTicks(ir,dr,gr){let br=ir[0],ar=ir[ir.length-1],ur=!this.isOrdinal&&this.minPointOffset||0;if(Qt(this,"trimTicks"),!this.isLinked){if(dr&&br!==-1/0)this.min=br;else for(;this.min-ur>ir[0];)ir.shift();if(gr)this.max=ar;else for(;this.max+ur<ir[ir.length-1];)ir.pop();ir.length===0&&qt(br)&&!this.options.tickPositions&&ir.push((ar+br)/2)}}alignToOthers(){let ir,dr=this,gr=dr.chart,br=[this],ar=dr.options,ur=gr.options.chart,xr=this.coll==="yAxis"&&ur.alignThresholds,Mr=[];if(dr.thresholdAlignment=void 0,(ur.alignTicks!==!1&&ar.alignTicks||xr)&&ar.startOnTick!==!1&&ar.endOnTick!==!1&&!dr.logarithmic){let Ar=Rr=>{let{horiz:wr,options:qr}=Rr;return[wr?qr.left:qr.top,qr.width,qr.height,qr.pane].join(",")},Ir=Ar(this);gr[this.coll].forEach(function(Rr){let{series:wr}=Rr;wr.length&&wr.some(qr=>qr.visible)&&Rr!==dr&&Ar(Rr)===Ir&&(ir=!0,br.push(Rr))})}if(ir&&xr){br.forEach(Ir=>{let Rr=Ir.getThresholdAlignment(dr);jt(Rr)&&Mr.push(Rr)});let Ar=Mr.length>1?Mr.reduce((Ir,Rr)=>Ir+=Rr,0)/Mr.length:void 0;br.forEach(Ir=>{Ir.thresholdAlignment=Ar})}return ir}getThresholdAlignment(ir){if((!jt(this.dataMin)||this!==ir&&this.series.some(dr=>dr.isDirty||dr.isDirtyData))&&this.getSeriesExtremes(),jt(this.threshold)){let dr=Dt((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(dr=1-dr),dr}}getTickAmount(){let ir=this.options,dr=ir.tickPixelInterval,gr=ir.tickAmount;qt(ir.tickInterval)||gr||!(this.len<dr)||this.isRadial||this.logarithmic||!ir.startOnTick||!ir.endOnTick||(gr=2),!gr&&this.alignToOthers()&&(gr=Math.ceil(this.len/dr)+1),gr<4&&(this.finalTickAmt=gr,gr=5),this.tickAmount=gr}adjustTickAmount(){let ir=this,{finalTickAmt:dr,max:gr,min:br,options:ar,tickPositions:ur,tickAmount:xr,thresholdAlignment:Mr}=ir,Ar=ur==null?void 0:ur.length,Ir=Gt(ir.threshold,ir.softThreshold?0:null),Rr,wr,qr=ir.tickInterval,Hr,kr=()=>ur.push(kt(ur[ur.length-1]+qr)),$r=()=>ur.unshift(kt(ur[0]-qr));if(jt(Mr)&&(Hr=Mr<.5?Math.ceil(Mr*(xr-1)):Math.floor(Mr*(xr-1)),ar.reversed&&(Hr=xr-1-Hr)),ir.hasData()&&jt(br)&&jt(gr)){let yr=()=>{ir.transA*=(Ar-1)/(xr-1),ir.min=ar.startOnTick?ur[0]:Math.min(br,ur[0]),ir.max=ar.endOnTick?ur[ur.length-1]:Math.max(gr,ur[ur.length-1])};if(jt(Hr)&&jt(ir.threshold)){for(;ur[Hr]!==Ir||ur.length!==xr||ur[0]>br||ur[ur.length-1]<gr;){for(ur.length=0,ur.push(ir.threshold);ur.length<xr;)ur[Hr]===void 0||ur[Hr]>ir.threshold?$r():kr();if(qr>8*ir.tickInterval)break;qr*=2}yr()}else if(Ar<xr){for(;ur.length<xr;)ur.length%2||br===Ir?kr():$r();yr()}if(qt(dr)){for(wr=Rr=ur.length;wr--;)(dr===3&&wr%2==1||dr<=2&&wr>0&&wr<Rr-1)&&ur.splice(wr,1);ir.finalTickAmt=void 0}}}setScale(){var ur,xr;let{coll:ir,stacking:dr}=this,gr=!1,br=!1;this.series.forEach(Mr=>{gr=gr||Mr.isDirtyData||Mr.isDirty,br=br||Mr.xAxis&&Mr.xAxis.isDirty||!1}),this.setAxisSize();let ar=this.len!==(this.old&&this.old.len);ar||gr||br||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(dr&&ir==="yAxis"&&dr.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),dr&&ir==="xAxis"&&dr.buildStacks(),this.isDirty||(this.isDirty=ar||this.min!==((ur=this.old)==null?void 0:ur.min)||this.max!==((xr=this.old)==null?void 0:xr.max))):dr&&dr.cleanStacks(),gr&&delete this.allExtremes,Qt(this,"afterSetScale")}setExtremes(ir,dr,gr=!0,br,ar){this.series.forEach(ur=>{delete ur.kdTree}),Qt(this,"setExtremes",ar=Jt(ar,{min:ir,max:dr}),ur=>{this.userMin=ur.min,this.userMax=ur.max,this.eventArgs=ur,gr&&this.chart.redraw(br)})}setAxisSize(){let ir=this.chart,dr=this.options,gr=dr.offsets||[0,0,0,0],br=this.horiz,ar=this.width=Math.round(Zt(Gt(dr.width,ir.plotWidth-gr[3]+gr[1]),ir.plotWidth)),ur=this.height=Math.round(Zt(Gt(dr.height,ir.plotHeight-gr[0]+gr[2]),ir.plotHeight)),xr=this.top=Math.round(Zt(Gt(dr.top,ir.plotTop+gr[0]),ir.plotHeight,ir.plotTop)),Mr=this.left=Math.round(Zt(Gt(dr.left,ir.plotLeft+gr[3]),ir.plotWidth,ir.plotLeft));this.bottom=ir.chartHeight-ur-xr,this.right=ir.chartWidth-ar-Mr,this.len=Math.max(br?ar:ur,0),this.pos=br?Mr:xr}getExtremes(){let ir=this.logarithmic;return{min:ir?kt(ir.lin2log(this.min)):this.min,max:ir?kt(ir.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(ir){let dr=this.logarithmic,gr=dr?dr.lin2log(this.min):this.min,br=dr?dr.lin2log(this.max):this.max;return ir===null||ir===-1/0?ir=gr:ir===1/0?ir=br:gr>ir?ir=gr:br<ir&&(ir=br),this.translate(ir,0,1,0,1)}autoLabelAlign(ir){let dr=(Gt(ir,0)-90*this.side+720)%360,gr={align:"center"};return Qt(this,"autoLabelAlign",gr,function(br){dr>15&&dr<165?br.align="right":dr>195&&dr<345&&(br.align="left")}),gr.align}tickSize(ir){let dr=this.options,gr=Gt(dr[ir==="tick"?"tickWidth":"minorTickWidth"],ir==="tick"&&this.isXAxis&&!this.categories?1:0),br=dr[ir==="tick"?"tickLength":"minorTickLength"],ar;gr&&br&&(dr[ir+"Position"]==="inside"&&(br=-br),ar=[br,gr]);let ur={tickSize:ar};return Qt(this,"afterTickSize",ur),ur.tickSize}labelMetrics(){let ir=this.chart.renderer,dr=this.ticks,gr=dr[Object.keys(dr)[0]]||{};return this.chart.renderer.fontMetrics(gr.label||gr.movedLabel||ir.box)}unsquish(){let ir=this.options.labels,dr=ir.padding||0,gr=this.horiz,br=this.tickInterval,ar=this.len/(((this.categories?1:0)+this.max-this.min)/br),ur=ir.rotation,xr=kt(.8*this.labelMetrics().h),Mr=Math.max(this.max-this.min,0),Ar=function(Hr){let kr=(Hr+2*dr)/(ar||1);return(kr=kr>1?Math.ceil(kr):1)*br>Mr&&Hr!==1/0&&ar!==1/0&&Mr&&(kr=Math.ceil(Mr/br)),kt(kr*br)},Ir=br,Rr,wr=Number.MAX_VALUE,qr;if(gr){if(!ir.staggerLines&&(jt(ur)?qr=[ur]:ar<ir.autoRotationLimit&&(qr=ir.autoRotation)),qr){let Hr,kr;for(let $r of qr)($r===ur||$r&&$r>=-90&&$r<=90)&&(kr=(Hr=Ar(Math.abs(xr/Math.sin(Tt*$r))))+Math.abs($r/360))<wr&&(wr=kr,Rr=$r,Ir=Hr)}}else Ir=Ar(.75*xr);return this.autoRotation=qr,this.labelRotation=Gt(Rr,jt(ur)?ur:0),ir.step?br:Ir}getSlotWidth(ir){let dr=this.chart,gr=this.horiz,br=this.options.labels,ar=Math.max(this.tickPositions.length-(this.categories?0:1),1),ur=dr.margin[3];if(ir&&jt(ir.slotWidth))return ir.slotWidth;if(gr&&br.step<2)return br.rotation?0:(this.staggerLines||1)*this.len/ar;if(!gr){let xr=br.style.width;if(xr!==void 0)return parseInt(String(xr),10);if(ur)return ur-dr.spacing[3]}return .33*dr.chartWidth}renderUnsquish(){let ir=this.chart,dr=ir.renderer,gr=this.tickPositions,br=this.ticks,ar=this.options.labels,ur=ar.style,xr=this.horiz,Mr=this.getSlotWidth(),Ar=Math.max(1,Math.round(Mr-(xr?2*(ar.padding||0):ar.distance||0))),Ir={},Rr=this.labelMetrics(),wr=ur.textOverflow,qr,Hr,kr=0,$r,yr;if(Wt(ar.rotation)||(Ir.rotation=ar.rotation||0),gr.forEach(function(Or){let Dr=br[Or];Dr.movedLabel&&Dr.replaceMovedLabel(),Dr&&Dr.label&&Dr.label.textPxLength>kr&&(kr=Dr.label.textPxLength)}),this.maxLabelLength=kr,this.autoRotation)kr>Ar&&kr>Rr.h?Ir.rotation=this.labelRotation:this.labelRotation=0;else if(Mr&&(qr=Ar,!wr))for(Hr="clip",yr=gr.length;!xr&&yr--;)($r=br[gr[yr]].label)&&($r.styles.textOverflow==="ellipsis"?$r.css({textOverflow:"clip"}):$r.textPxLength>Mr&&$r.css({width:Mr+"px"}),$r.getBBox().height>this.len/gr.length-(Rr.h-Rr.f)&&($r.specificTextOverflow="ellipsis"));Ir.rotation&&(qr=kr>.5*ir.chartHeight?.33*ir.chartHeight:kr,wr||(Hr="ellipsis")),this.labelAlign=ar.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(Ir.align=this.labelAlign),gr.forEach(function(Or){let Dr=br[Or],Fr=Dr&&Dr.label,Yr=ur.width,Gr={};Fr&&(Fr.attr(Ir),Dr.shortenLabel?Dr.shortenLabel():qr&&!Yr&&ur.whiteSpace!=="nowrap"&&(qr<Fr.textPxLength||Fr.element.tagName==="SPAN")?(Gr.width=qr+"px",wr||(Gr.textOverflow=Fr.specificTextOverflow||Hr),Fr.css(Gr)):!Fr.styles.width||Gr.width||Yr||Fr.css({width:null}),delete Fr.specificTextOverflow,Dr.rotation=Ir.rotation)},this),this.tickRotCorr=dr.rotCorr(Rr.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(ir){return ir.hasData()})||this.options.showEmpty&&qt(this.min)&&qt(this.max)}addTitle(ir){let dr,gr=this.chart.renderer,br=this.horiz,ar=this.opposite,ur=this.options.title,xr=this.chart.styledMode;this.axisTitle||((dr=ur.textAlign)||(dr=(br?{low:"left",middle:"center",high:"right"}:{low:ar?"right":"left",middle:"center",high:ar?"left":"right"})[ur.align]),this.axisTitle=gr.text(ur.text||"",0,0,ur.useHTML).attr({zIndex:7,rotation:ur.rotation||0,align:dr}).addClass("highcharts-axis-title"),xr||this.axisTitle.css(Ut(ur.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),xr||ur.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[ir?"show":"hide"](ir)}generateTick(ir){let dr=this.ticks;dr[ir]?dr[ir].addLabel():dr[ir]=new xt(this,ir)}createGroups(){let{axisParent:ir,chart:dr,coll:gr,options:br}=this,ar=dr.renderer,ur=(xr,Mr,Ar)=>ar.g(xr).attr({zIndex:Ar}).addClass(`highcharts-${gr.toLowerCase()}${Mr} `+(this.isRadial?`highcharts-radial-axis${Mr} `:"")+(br.className||"")).add(ir);this.axisGroup||(this.gridGroup=ur("grid","-grid",br.gridZIndex),this.axisGroup=ur("axis","",br.zIndex),this.labelGroup=ur("axis-labels","-labels",br.labels.zIndex))}getOffset(){let ir=this,{chart:dr,horiz:gr,options:br,side:ar,ticks:ur,tickPositions:xr,coll:Mr}=ir,Ar=dr.inverted&&!ir.isZAxis?[1,0,3,2][ar]:ar,Ir=ir.hasData(),Rr=br.title,wr=br.labels,qr=jt(br.crossing),Hr=dr.axisOffset,kr=dr.clipOffset,$r=[-1,1,1,-1][ar],yr,Or=0,Dr,Fr=0,Yr=0,Gr,Jr;if(ir.showAxis=yr=Ir||br.showEmpty,ir.staggerLines=ir.horiz&&wr.staggerLines||void 0,ir.createGroups(),Ir||ir.isLinked?(xr.forEach(function(jr){ir.generateTick(jr)}),ir.renderUnsquish(),ir.reserveSpaceDefault=ar===0||ar===2||{1:"left",3:"right"}[ar]===ir.labelAlign,Gt(wr.reserveSpace,!qr&&null,ir.labelAlign==="center"||null,ir.reserveSpaceDefault)&&xr.forEach(function(jr){Yr=Math.max(ur[jr].getLabelSize(),Yr)}),ir.staggerLines&&(Yr*=ir.staggerLines),ir.labelOffset=Yr*(ir.opposite?-1:1)):Ht(ur,function(jr,Zr){jr.destroy(),delete ur[Zr]}),Rr!=null&&Rr.text&&Rr.enabled!==!1&&(ir.addTitle(yr),yr&&!qr&&Rr.reserveSpace!==!1&&(ir.titleOffset=Or=ir.axisTitle.getBBox()[gr?"height":"width"],Fr=qt(Dr=Rr.offset)?0:Gt(Rr.margin,gr?5:10))),ir.renderLine(),ir.offset=$r*Gt(br.offset,Hr[ar]?Hr[ar]+(br.margin||0):0),ir.tickRotCorr=ir.tickRotCorr||{x:0,y:0},Jr=ar===0?-ir.labelMetrics().h:ar===2?ir.tickRotCorr.y:0,Gr=Math.abs(Yr)+Fr,Yr&&(Gr-=Jr,Gr+=$r*(gr?Gt(wr.y,ir.tickRotCorr.y+$r*wr.distance):Gt(wr.x,$r*wr.distance))),ir.axisTitleMargin=Gt(Dr,Gr),ir.getMaxLabelDimensions&&(ir.maxLabelDimensions=ir.getMaxLabelDimensions(ur,xr)),Mr!=="colorAxis"&&kr){let jr=this.tickSize("tick");Hr[ar]=Math.max(Hr[ar],(ir.axisTitleMargin||0)+Or+$r*ir.offset,Gr,xr&&xr.length&&jr?jr[0]+$r*ir.offset:0);let Zr=!ir.axisLine||br.offset?0:ir.axisLine.strokeWidth()/2;kr[Ar]=Math.max(kr[Ar],Zr)}Qt(this,"afterGetOffset")}getLinePath(ir){let dr=this.chart,gr=this.opposite,br=this.offset,ar=this.horiz,ur=this.left+(gr?this.width:0)+br,xr=dr.chartHeight-this.bottom-(gr?this.height:0)+br;return gr&&(ir*=-1),dr.renderer.crispLine([["M",ar?this.left:ur,ar?xr:this.top],["L",ar?dr.chartWidth-this.right:ur,ar?xr:dr.chartHeight-this.bottom]],ir)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(ir){let dr=this.horiz,gr=this.left,br=this.top,ar=this.len,ur=this.options.title,xr=dr?gr:br,Mr=this.opposite,Ar=this.offset,Ir=ur.x,Rr=ur.y,wr=this.chart.renderer.fontMetrics(ir),qr=ir?Math.max(ir.getBBox(!1,0).height-wr.h-1,0):0,Hr={low:xr+(dr?0:ar),middle:xr+ar/2,high:xr+(dr?ar:0)}[ur.align],kr=(dr?br+this.height:gr)+(dr?1:-1)*(Mr?-1:1)*(this.axisTitleMargin||0)+[-qr,qr,wr.f,-qr][this.side],$r={x:dr?Hr+Ir:kr+(Mr?this.width:0)+Ar+Ir,y:dr?kr+Rr-(Mr?this.height:0)+Ar:Hr+Rr};return Qt(this,"afterGetTitlePosition",{titlePosition:$r}),$r}renderMinorTick(ir,dr){let gr=this.minorTicks;gr[ir]||(gr[ir]=new xt(this,ir,"minor")),dr&&gr[ir].isNew&&gr[ir].render(null,!0),gr[ir].render(null,!1,1)}renderTick(ir,dr,gr){let br=this.isLinked,ar=this.ticks;(!br||ir>=this.min&&ir<=this.max||this.grid&&this.grid.isColumn)&&(ar[ir]||(ar[ir]=new xt(this,ir)),gr&&ar[ir].isNew&&ar[ir].render(dr,!0,-1),ar[ir].render(dr))}render(){let ir,dr,gr=this,br=gr.chart,ar=gr.logarithmic,ur=br.renderer,xr=gr.options,Mr=gr.isLinked,Ar=gr.tickPositions,Ir=gr.axisTitle,Rr=gr.ticks,wr=gr.minorTicks,qr=gr.alternateBands,Hr=xr.stackLabels,kr=xr.alternateGridColor,$r=xr.crossing,yr=gr.tickmarkOffset,Or=gr.axisLine,Dr=gr.showAxis,Fr=vt(ur.globalAnimation);if(gr.labelEdge.length=0,gr.overlap=!1,[Rr,wr,qr].forEach(function(Yr){Ht(Yr,function(Gr){Gr.isActive=!1})}),jt($r)){let Yr=this.isXAxis?br.yAxis[0]:br.xAxis[0],Gr=[1,-1,-1,1][this.side];if(Yr){let Jr=Yr.toPixels($r,!0);gr.horiz&&(Jr=Yr.len-Jr),gr.offset=Gr*Jr}}if(gr.hasData()||Mr){let Yr=gr.chart.hasRendered&&gr.old&&jt(gr.old.min);gr.minorTickInterval&&!gr.categories&&gr.getMinorTickPositions().forEach(function(Gr){gr.renderMinorTick(Gr,Yr)}),Ar.length&&(Ar.forEach(function(Gr,Jr){gr.renderTick(Gr,Jr,Yr)}),yr&&(gr.min===0||gr.single)&&(Rr[-1]||(Rr[-1]=new xt(gr,-1,null,!0)),Rr[-1].render(-1))),kr&&Ar.forEach(function(Gr,Jr){dr=Ar[Jr+1]!==void 0?Ar[Jr+1]+yr:gr.max-yr,Jr%2==0&&Gr<gr.max&&dr<=gr.max+(br.polar?-yr:yr)&&(qr[Gr]||(qr[Gr]=new mt.PlotLineOrBand(gr,{})),ir=Gr+yr,qr[Gr].options={from:ar?ar.lin2log(ir):ir,to:ar?ar.lin2log(dr):dr,color:kr,className:"highcharts-alternate-grid"},qr[Gr].render(),qr[Gr].isActive=!0)}),gr._addedPlotLB||(gr._addedPlotLB=!0,(xr.plotLines||[]).concat(xr.plotBands||[]).forEach(function(Gr){gr.addPlotBandOrLine(Gr)}))}[Rr,wr,qr].forEach(function(Yr){let Gr=[],Jr=Fr.duration;Ht(Yr,function(jr,Zr){jr.isActive||(jr.render(Zr,!1,0),jr.isActive=!1,Gr.push(Zr))}),nr(function(){let jr=Gr.length;for(;jr--;)Yr[Gr[jr]]&&!Yr[Gr[jr]].isActive&&(Yr[Gr[jr]].destroy(),delete Yr[Gr[jr]])},Yr!==qr&&br.hasRendered&&Jr?Jr:0)}),Or&&(Or[Or.isPlaced?"animate":"attr"]({d:this.getLinePath(Or.strokeWidth())}),Or.isPlaced=!0,Or[Dr?"show":"hide"](Dr)),Ir&&Dr&&(Ir[Ir.isNew?"attr":"animate"](gr.getTitlePosition(Ir)),Ir.isNew=!1),Hr&&Hr.enabled&&gr.stacking&&gr.stacking.renderStackTotals(),gr.old={len:gr.len,max:gr.max,min:gr.min,transA:gr.transA,userMax:gr.userMax,userMin:gr.userMin},gr.isDirty=!1,Qt(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(ir){ir.render()})),this.series.forEach(function(ir){ir.isDirty=!0})}getKeepProps(){return this.keepProps||rr.keepProps}destroy(ir){let dr=this,gr=dr.plotLinesAndBands,br=this.eventOptions;if(Qt(this,"destroy",{keepEvents:ir}),ir||Xt(dr),[dr.ticks,dr.minorTicks,dr.alternateBands].forEach(function(ar){Nt(ar)}),gr){let ar=gr.length;for(;ar--;)gr[ar].destroy()}for(let ar in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(ur){dr[ur]&&(dr[ur]=dr[ur].destroy())}),dr.plotLinesAndBandsGroups)dr.plotLinesAndBandsGroups[ar]=dr.plotLinesAndBandsGroups[ar].destroy();Ht(dr,function(ar,ur){dr.getKeepProps().indexOf(ur)===-1&&delete dr[ur]}),this.eventOptions=br}drawCrosshair(ir,dr){let gr=this.crosshair,br=Gt(gr&&gr.snap,!0),ar=this.chart,ur,xr,Mr,Ar=this.cross,Ir;if(Qt(this,"drawCrosshair",{e:ir,point:dr}),ir||(ir=this.cross&&this.cross.e),gr&&(qt(dr)||!br)!==!1){if(br?qt(dr)&&(xr=Gt(this.coll!=="colorAxis"?dr.crosshairPos:null,this.isXAxis?dr.plotX:this.len-dr.plotY)):xr=ir&&(this.horiz?ir.chartX-this.pos:this.len-ir.chartY+this.pos),qt(xr)&&(Ir={value:dr&&(this.isXAxis?dr.x:Gt(dr.stackY,dr.y)),translatedValue:xr},ar.polar&&Jt(Ir,{isCrosshair:!0,chartX:ir&&ir.chartX,chartY:ir&&ir.chartY,point:dr}),ur=this.getPlotLinePath(Ir)||null),!qt(ur)){this.hideCrosshair();return}Mr=this.categories&&!this.isRadial,Ar||(this.cross=Ar=ar.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(Mr?"category ":"thin ")+(gr.className||"")).attr({zIndex:Gt(gr.zIndex,2)}).add(),!ar.styledMode&&(Ar.attr({stroke:gr.color||(Mr?dt.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":Gt(gr.width,1)}).css({"pointer-events":"none"}),gr.dashStyle&&Ar.attr({dashstyle:gr.dashStyle}))),Ar.show().attr({d:ur}),Mr&&!gr.width&&Ar.attr({"stroke-width":this.transA}),this.cross.e=ir}else this.hideCrosshair();Qt(this,"afterDrawCrosshair",{e:ir,point:dr})}hideCrosshair(){this.cross&&this.cross.hide(),Qt(this,"afterHideCrosshair")}update(ir,dr){let gr=this.chart;ir=Ut(this.userOptions,ir),this.destroy(!0),this.init(gr,ir),gr.isDirtyBox=!0,Gt(dr,!0)&&gr.redraw()}remove(ir){let dr=this.chart,gr=this.coll,br=this.series,ar=br.length;for(;ar--;)br[ar]&&br[ar].remove(!1);Yt(dr.axes,this),Yt(dr[gr]||[],this),dr.orderItems(gr),this.destroy(),dr.isDirtyBox=!0,Gt(ir,!0)&&dr.redraw()}setTitle(ir,dr){this.update({title:ir},dr)}setCategories(ir,dr){this.update({categories:ir},dr)}}return rr.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],rr}),nt(rt,"Core/Axis/DateTimeAxis.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{addEvent:dt,getMagnitude:pt,normalizeTickInterval:ht,timeUnits:mt}=lt;return function(xt){function Mt(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function vt(){if(this.options.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new Ot(this))}xt.compose=function(At){return At.keepProps.includes("dateTime")||(At.keepProps.push("dateTime"),At.prototype.getTimeTicks=Mt,dt(At,"afterSetOptions",vt)),At};class Ot{constructor(Rt){this.axis=Rt}normalizeTimeTickInterval(Rt,zt){let Tt=zt||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],Ct=Tt[Tt.length-1],It=mt[Ct[0]],Dt=Ct[1],kt;for(kt=0;kt<Tt.length&&(It=mt[(Ct=Tt[kt])[0]],Dt=Ct[1],!Tt[kt+1]||!(Rt<=(It*Dt[Dt.length-1]+mt[Tt[kt+1][0]])/2));kt++);It===mt.year&&Rt<5*It&&(Dt=[1,2,5]);let qt=ht(Rt/It,Dt,Ct[0]==="year"?Math.max(pt(Rt/It),1):1);return{unitRange:It,count:qt,unitName:Ct[0]}}getXDateFormat(Rt,zt){let{axis:Tt}=this,Ct=Tt.chart.time;return Tt.closestPointRange?Ct.getDateFormat(Tt.closestPointRange,Rt,Tt.options.startOfWeek,zt)||Ct.resolveDTLFormat(zt.year).main:Ct.resolveDTLFormat(zt.day).main}}xt.Additions=Ot}(ut||(ut={})),ut}),nt(rt,"Core/Axis/LogarithmicAxis.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{addEvent:dt,normalizeTickInterval:pt,pick:ht}=lt;return function(mt){function xt(Ot){let At=Ot.userOptions,Rt=this.logarithmic;At.type!=="logarithmic"?this.logarithmic=void 0:Rt||(Rt=this.logarithmic=new vt(this))}function Mt(){let Ot=this.logarithmic;Ot&&(this.lin2val=function(At){return Ot.lin2log(At)},this.val2lin=function(At){return Ot.log2lin(At)})}mt.compose=function(Ot){return Ot.keepProps.includes("logarithmic")||(Ot.keepProps.push("logarithmic"),dt(Ot,"init",xt),dt(Ot,"afterInit",Mt)),Ot};class vt{constructor(At){this.axis=At}getLogTickPositions(At,Rt,zt,Tt){let Ct=this.axis,It=Ct.len,Dt=Ct.options,kt=[];if(Tt||(this.minorAutoInterval=void 0),At>=.5)At=Math.round(At),kt=Ct.getLinearTickPositions(At,Rt,zt);else if(At>=.08){let qt,Nt,Yt,Kt,Jt,Qt,Bt,Ft=Math.floor(Rt);for(qt=At>.3?[1,2,4]:At>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],Nt=Ft;Nt<zt+1&&!Bt;Nt++)for(Yt=0,Kt=qt.length;Yt<Kt&&!Bt;Yt++)(Jt=this.log2lin(this.lin2log(Nt)*qt[Yt]))>Rt&&(!Tt||Qt<=zt)&&Qt!==void 0&&kt.push(Qt),Qt>zt&&(Bt=!0),Qt=Jt}else{let qt=this.lin2log(Rt),Nt=this.lin2log(zt),Yt=Tt?Ct.getMinorTickInterval():Dt.tickInterval,Kt=Dt.tickPixelInterval/(Tt?5:1),Jt=Tt?It/Ct.tickPositions.length:It;At=pt(At=ht(Yt==="auto"?null:Yt,this.minorAutoInterval,(Nt-qt)*Kt/(Jt||1))),kt=Ct.getLinearTickPositions(At,qt,Nt).map(this.log2lin),Tt||(this.minorAutoInterval=At/5)}return Tt||(Ct.tickInterval=At),kt}lin2log(At){return Math.pow(10,At)}log2lin(At){return Math.log(At)/Math.LN10}}mt.Additions=vt}(ut||(ut={})),ut}),nt(rt,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{erase:dt,extend:pt,isNumber:ht}=lt;return function(mt){let xt;function Mt(Ct){return this.addPlotBandOrLine(Ct,"plotBands")}function vt(Ct,It){let Dt=this.userOptions,kt=new xt(this,Ct);if(this.visible&&(kt=kt.render()),kt){if(this._addedPlotLB||(this._addedPlotLB=!0,(Dt.plotLines||[]).concat(Dt.plotBands||[]).forEach(qt=>{this.addPlotBandOrLine(qt)})),It){let qt=Dt[It]||[];qt.push(Ct),Dt[It]=qt}this.plotLinesAndBands.push(kt)}return kt}function Ot(Ct){return this.addPlotBandOrLine(Ct,"plotLines")}function At(Ct,It,Dt){Dt=Dt||this.options;let kt=this.getPlotLinePath({value:It,force:!0,acrossPanes:Dt.acrossPanes}),qt=[],Nt=this.horiz,Yt=!ht(this.min)||!ht(this.max)||Ct<this.min&&It<this.min||Ct>this.max&&It>this.max,Kt=this.getPlotLinePath({value:Ct,force:!0,acrossPanes:Dt.acrossPanes}),Jt,Qt=1,Bt;if(Kt&&kt)for(Yt&&(Bt=Kt.toString()===kt.toString(),Qt=0),Jt=0;Jt<Kt.length;Jt+=2){let Ft=Kt[Jt],$t=Kt[Jt+1],jt=kt[Jt],Wt=kt[Jt+1];(Ft[0]==="M"||Ft[0]==="L")&&($t[0]==="M"||$t[0]==="L")&&(jt[0]==="M"||jt[0]==="L")&&(Wt[0]==="M"||Wt[0]==="L")&&(Nt&&jt[1]===Ft[1]?(jt[1]+=Qt,Wt[1]+=Qt):Nt||jt[2]!==Ft[2]||(jt[2]+=Qt,Wt[2]+=Qt),qt.push(["M",Ft[1],Ft[2]],["L",$t[1],$t[2]],["L",Wt[1],Wt[2]],["L",jt[1],jt[2]],["Z"])),qt.isFlat=Bt}return qt}function Rt(Ct){this.removePlotBandOrLine(Ct)}function zt(Ct){let It=this.plotLinesAndBands,Dt=this.options,kt=this.userOptions;if(It){let qt=It.length;for(;qt--;)It[qt].id===Ct&&It[qt].destroy();[Dt.plotLines||[],kt.plotLines||[],Dt.plotBands||[],kt.plotBands||[]].forEach(function(Nt){for(qt=Nt.length;qt--;)(Nt[qt]||{}).id===Ct&&dt(Nt,Nt[qt])})}}function Tt(Ct){this.removePlotBandOrLine(Ct)}mt.compose=function(Ct,It){let Dt=It.prototype;return Dt.addPlotBand||(xt=Ct,pt(Dt,{addPlotBand:Mt,addPlotLine:Ot,addPlotBandOrLine:vt,getPlotBandPath:At,removePlotBand:Rt,removePlotLine:Tt,removePlotBandOrLine:zt})),It}}(ut||(ut={})),ut}),nt(rt,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[rt["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],rt["Core/Utilities.js"]],function(lt,ut){let{arrayMax:dt,arrayMin:pt,defined:ht,destroyObjectProperties:mt,erase:xt,fireEvent:Mt,merge:vt,objectEach:Ot,pick:At}=ut;class Rt{static compose(Tt){return lt.compose(Rt,Tt)}constructor(Tt,Ct){this.axis=Tt,this.options=Ct,this.id=Ct.id}render(){Mt(this,"render");let{axis:Tt,options:Ct}=this,{horiz:It,logarithmic:Dt}=Tt,{color:kt,events:qt,zIndex:Nt=0}=Ct,Yt={},Kt=Tt.chart.renderer,Jt=Ct.to,Qt=Ct.from,Bt=Ct.value,Ft=Ct.borderWidth,$t=Ct.label,{label:jt,svgElem:Wt}=this,Ut=[],Vt,Ht=ht(Qt)&&ht(Jt),Gt=ht(Bt),Zt=!Wt,Xt={class:"highcharts-plot-"+(Ht?"band ":"line ")+(Ct.className||"")},er=Ht?"bands":"lines";if(!Tt.chart.styledMode&&(Gt?(Xt.stroke=kt||"#999999",Xt["stroke-width"]=At(Ct.width,1),Ct.dashStyle&&(Xt.dashstyle=Ct.dashStyle)):Ht&&(Xt.fill=kt||"#e6e9ff",Ft&&(Xt.stroke=Ct.borderColor,Xt["stroke-width"]=Ft))),Yt.zIndex=Nt,er+="-"+Nt,(Vt=Tt.plotLinesAndBandsGroups[er])||(Tt.plotLinesAndBandsGroups[er]=Vt=Kt.g("plot-"+er).attr(Yt).add()),Wt||(this.svgElem=Wt=Kt.path().attr(Xt).add(Vt)),ht(Bt))Ut=Tt.getPlotLinePath({value:(Dt==null?void 0:Dt.log2lin(Bt))??Bt,lineWidth:Wt.strokeWidth(),acrossPanes:Ct.acrossPanes});else{if(!(ht(Qt)&&ht(Jt)))return;Ut=Tt.getPlotBandPath((Dt==null?void 0:Dt.log2lin(Qt))??Qt,(Dt==null?void 0:Dt.log2lin(Jt))??Jt,Ct)}return!this.eventsAdded&&qt&&(Ot(qt,(nr,or)=>{Wt==null||Wt.on(or,rr=>{qt[or].apply(this,[rr])})}),this.eventsAdded=!0),(Zt||!Wt.d)&&(Ut!=null&&Ut.length)?Wt.attr({d:Ut}):Wt&&(Ut?(Wt.show(),Wt.animate({d:Ut})):Wt.d&&(Wt.hide(),jt&&(this.label=jt=jt.destroy()))),$t&&(ht($t.text)||ht($t.formatter))&&(Ut!=null&&Ut.length)&&Tt.width>0&&Tt.height>0&&!Ut.isFlat?($t=vt({align:It&&Ht?"center":void 0,x:It?!Ht&&4:10,verticalAlign:!It&&Ht?"middle":void 0,y:It?Ht?16:10:Ht?6:-4,rotation:It&&!Ht?90:0},$t),this.renderLabel($t,Ut,Ht,Nt)):jt&&jt.hide(),this}renderLabel(Tt,Ct,It,Dt){let kt=this.axis,qt=kt.chart.renderer,Nt=this.label;Nt||(this.label=Nt=qt.text(this.getLabelText(Tt),0,0,Tt.useHTML).attr({align:Tt.textAlign||Tt.align,rotation:Tt.rotation,class:"highcharts-plot-"+(It?"band":"line")+"-label "+(Tt.className||""),zIndex:Dt}),kt.chart.styledMode||Nt.css(vt({fontSize:"0.8em",textOverflow:"ellipsis"},Tt.style)),Nt.add());let Yt=Ct.xBounds||[Ct[0][1],Ct[1][1],It?Ct[2][1]:Ct[0][1]],Kt=Ct.yBounds||[Ct[0][2],Ct[1][2],It?Ct[2][2]:Ct[0][2]],Jt=pt(Yt),Qt=pt(Kt);if(Nt.align(Tt,!1,{x:Jt,y:Qt,width:dt(Yt)-Jt,height:dt(Kt)-Qt}),!Nt.alignValue||Nt.alignValue==="left"){let Bt=Tt.clip?kt.width:kt.chart.chartWidth;Nt.css({width:(Nt.rotation===90?kt.height-(Nt.alignAttr.y-kt.top):Bt-(Nt.alignAttr.x-kt.left))+"px"})}Nt.show(!0)}getLabelText(Tt){return ht(Tt.formatter)?Tt.formatter.call(this):Tt.text}destroy(){xt(this.axis.plotLinesAndBands,this),delete this.axis,mt(this)}}return Rt}),nt(rt,"Core/Tooltip.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Templating.js"],rt["Core/Globals.js"],rt["Core/Renderer/RendererUtilities.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt){var xt;let{animObject:Mt}=lt,{format:vt}=ut,{composed:Ot,doc:At,isSafari:Rt}=dt,{distribute:zt}=pt,{addEvent:Tt,clamp:Ct,css:It,discardElement:Dt,extend:kt,fireEvent:qt,isArray:Nt,isNumber:Yt,isString:Kt,merge:Jt,pick:Qt,pushUnique:Bt,splat:Ft,syncTimeout:$t}=mt;class jt{constructor(Ut,Vt,Ht){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=Ut,this.init(Ut,Vt),this.pointer=Ht}bodyFormatter(Ut){return Ut.map(function(Vt){let Ht=Vt.series.tooltipOptions;return(Ht[(Vt.point.formatPrefix||"point")+"Formatter"]||Vt.point.tooltipFormatter).call(Vt.point,Ht[(Vt.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(Ut){this.chart.series.forEach(function(Vt){let Ht=Vt&&Vt.tt;Ht&&(!Ht.isActive||Ut?Vt.tt=Ht.destroy():Ht.isActive=!1)})}defaultFormatter(Ut){let Vt,Ht=this.points||Ft(this);return(Vt=(Vt=[Ut.tooltipFooterHeaderFormatter(Ht[0])]).concat(Ut.bodyFormatter(Ht))).push(Ut.tooltipFooterHeaderFormatter(Ht[0],!0)),Vt}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),Dt(this.container)),mt.clearTimeout(this.hideTimer)}getAnchor(Ut,Vt){let Ht,{chart:Gt,pointer:Zt}=this,Xt=Gt.inverted,er=Gt.plotTop,nr=Gt.plotLeft;if((Ut=Ft(Ut))[0].series&&Ut[0].series.yAxis&&!Ut[0].series.yAxis.options.reversedStacks&&(Ut=Ut.slice().reverse()),this.followPointer&&Vt)Vt.chartX===void 0&&(Vt=Zt.normalize(Vt)),Ht=[Vt.chartX-nr,Vt.chartY-er];else if(Ut[0].tooltipPos)Ht=Ut[0].tooltipPos;else{let or=0,rr=0;Ut.forEach(function(cr){let ir=cr.pos(!0);ir&&(or+=ir[0],rr+=ir[1])}),or/=Ut.length,rr/=Ut.length,this.shared&&Ut.length>1&&Vt&&(Xt?or=Vt.chartX:rr=Vt.chartY),Ht=[or-nr,rr-er]}return Ht.map(Math.round)}getClassName(Ut,Vt,Ht){let Gt=this.options,Zt=Ut.series,Xt=Zt.options;return[Gt.className,"highcharts-label",Ht&&"highcharts-tooltip-header",Vt?"highcharts-tooltip-box":"highcharts-tooltip",!Ht&&"highcharts-color-"+Qt(Ut.colorIndex,Zt.colorIndex),Xt&&Xt.className].filter(Kt).join(" ")}getLabel({anchorX:Ut,anchorY:Vt}={anchorX:0,anchorY:0}){let Ht=this,Gt=this.chart.styledMode,Zt=this.options,Xt=this.split&&this.allowShared,er=this.container,nr=this.chart.renderer;if(this.label){let or=!this.label.hasClass("highcharts-label");(!Xt&&or||Xt&&!or)&&this.destroy()}if(!this.label){if(this.outside){let or=this.chart.options.chart.style,rr=ht.getRendererType();this.container=er=dt.doc.createElement("div"),er.className="highcharts-tooltip-container",It(er,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(or&&or.zIndex||0)+3)}),this.renderer=nr=new rr(er,0,0,or,void 0,void 0,nr.styledMode)}if(Xt?this.label=nr.g("tooltip"):(this.label=nr.label("",Ut,Vt,Zt.shape,void 0,void 0,Zt.useHTML,void 0,"tooltip").attr({padding:Zt.padding,r:Zt.borderRadius}),Gt||this.label.attr({fill:Zt.backgroundColor,"stroke-width":Zt.borderWidth||0}).css(Zt.style).css({pointerEvents:Zt.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),Ht.outside){let or=this.label;[or.xSetter,or.ySetter].forEach((rr,cr)=>{or[cr?"ySetter":"xSetter"]=ir=>{rr.call(or,Ht.distance),or[cr?"y":"x"]=ir,er&&(er.style[cr?"top":"left"]=`${ir}px`)}})}this.label.attr({zIndex:8}).shadow(Zt.shadow).add()}return er&&!er.parentElement&&dt.doc.body.appendChild(er),this.label}getPlayingField(){let{body:Ut,documentElement:Vt}=At,{chart:Ht,distance:Gt,outside:Zt}=this;return{width:Zt?Math.max(Ut.scrollWidth,Vt.scrollWidth,Ut.offsetWidth,Vt.offsetWidth,Vt.clientWidth)-2*Gt:Ht.chartWidth,height:Zt?Math.max(Ut.scrollHeight,Vt.scrollHeight,Ut.offsetHeight,Vt.offsetHeight,Vt.clientHeight):Ht.chartHeight}}getPosition(Ut,Vt,Ht){var Fr,Yr;let{distance:Gt,chart:Zt,outside:Xt,pointer:er}=this,{inverted:nr,plotLeft:or,plotTop:rr,polar:cr}=Zt,{plotX:ir=0,plotY:dr=0}=Ht,gr={},br=nr&&Ht.h||0,{height:ar,width:ur}=this.getPlayingField(),xr=er.getChartPosition(),Mr=Gr=>Gr*xr.scaleX,Ar=Gr=>Gr*xr.scaleY,Ir=Gr=>{let Jr=Gr==="x";return[Gr,Jr?ur:ar,Jr?Ut:Vt].concat(Xt?[Jr?Mr(Ut):Ar(Vt),Jr?xr.left-Gt+Mr(ir+or):xr.top-Gt+Ar(dr+rr),0,Jr?ur:ar]:[Jr?Ut:Vt,Jr?ir+or:dr+rr,Jr?or:rr,Jr?or+Zt.plotWidth:rr+Zt.plotHeight])},Rr=Ir("y"),wr=Ir("x"),qr,Hr=!!Ht.negative;!cr&&((Yr=(Fr=Zt.hoverSeries)==null?void 0:Fr.yAxis)!=null&&Yr.reversed)&&(Hr=!Hr);let kr=!this.followPointer&&Qt(Ht.ttBelow,!cr&&!nr===Hr),$r=function(Gr,Jr,jr,Zr,Xr,cn,Qr){let rn=Xt?Gr==="y"?Ar(Gt):Mr(Gt):Gt,_r=(jr-Zr)/2,ln=Zr<Xr-Gt,vn=Xr+Gt+Zr<Jr,Cr=Xr-rn-jr+_r,gn=Xr+rn-_r;if(kr&&vn)gr[Gr]=gn;else if(!kr&&ln)gr[Gr]=Cr;else if(ln)gr[Gr]=Math.min(Qr-Zr,Cr-br<0?Cr:Cr-br);else{if(!vn)return!1;gr[Gr]=Math.max(cn,gn+br+jr>Jr?gn:gn+br)}},yr=function(Gr,Jr,jr,Zr,Xr){if(Xr<Gt||Xr>Jr-Gt)return!1;Xr<jr/2?gr[Gr]=1:Xr>Jr-Zr/2?gr[Gr]=Jr-Zr-2:gr[Gr]=Xr-jr/2},Or=function(Gr){[Rr,wr]=[wr,Rr],qr=Gr},Dr=()=>{$r.apply(0,Rr)!==!1?yr.apply(0,wr)!==!1||qr||(Or(!0),Dr()):qr?gr.x=gr.y=0:(Or(!0),Dr())};return(nr&&!cr||this.len>1)&&Or(),Dr(),gr}hide(Ut){let Vt=this;mt.clearTimeout(this.hideTimer),Ut=Qt(Ut,this.options.hideDelay),this.isHidden||(this.hideTimer=$t(function(){let Ht=Vt.getLabel();Vt.getLabel().animate({opacity:0},{duration:Ut&&150,complete:()=>{Ht.hide(),Vt.container&&Vt.container.remove()}}),Vt.isHidden=!0},Ut))}init(Ut,Vt){this.chart=Ut,this.options=Vt,this.crosshairs=[],this.isHidden=!0,this.split=Vt.split&&!Ut.inverted&&!Ut.polar,this.shared=Vt.shared||this.split,this.outside=Qt(Vt.outside,!!(Ut.scrollablePixelsX||Ut.scrollablePixelsY))}shouldStickOnContact(Ut){return!!(!this.followPointer&&this.options.stickOnContact&&(!Ut||this.pointer.inClass(Ut.target,"highcharts-tooltip")))}move(Ut,Vt,Ht,Gt){let Zt=this,Xt=Mt(!Zt.isHidden&&Zt.options.animation),er=Zt.followPointer||(Zt.len||0)>1,nr={x:Ut,y:Vt};er||(nr.anchorX=Ht,nr.anchorY=Gt),Xt.step=()=>Zt.drawTracker(),Zt.getLabel().animate(nr,Xt)}refresh(Ut,Vt){let{chart:Ht,options:Gt,pointer:Zt,shared:Xt}=this,er=Ft(Ut),nr=er[0],or=[],rr=Gt.format,cr=Gt.formatter||this.defaultFormatter,ir=Ht.styledMode,dr={},gr=this.allowShared;if(!Gt.enabled||!nr.series)return;mt.clearTimeout(this.hideTimer),this.allowShared=!(!Nt(Ut)&&Ut.series&&Ut.series.noSharedTooltip),gr=gr&&!this.allowShared,this.followPointer=!this.split&&nr.series.tooltipOptions.followPointer;let br=this.getAnchor(Ut,Vt),ar=br[0],ur=br[1];Xt&&this.allowShared?(Zt.applyInactiveState(er),er.forEach(function(Ar){Ar.setState("hover"),or.push(Ar.getLabelConfig())}),(dr=nr.getLabelConfig()).points=or):dr=nr.getLabelConfig(),this.len=or.length;let xr=Kt(rr)?vt(rr,dr,Ht):cr.call(dr,this),Mr=nr.series;if(this.distance=Qt(Mr.tooltipOptions.distance,16),xr===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(xr,er);else{let Ar=ar,Ir=ur;if(Vt&&Zt.isDirectTouch&&(Ar=Vt.chartX-Ht.plotLeft,Ir=Vt.chartY-Ht.plotTop),Ht.polar||Mr.options.clip===!1||er.some(Rr=>Zt.isDirectTouch||Rr.series.shouldShowTooltip(Ar,Ir))){let Rr=this.getLabel(gr&&this.tt||{});(!Gt.style.width||ir)&&Rr.css({width:(this.outside?this.getPlayingField():Ht.spacingBox).width+"px"}),Rr.attr({class:this.getClassName(nr),text:xr&&xr.join?xr.join(""):xr}),ir||Rr.attr({stroke:Gt.borderColor||nr.color||Mr.color||"#666666"}),this.updatePosition({plotX:ar,plotY:ur,negative:nr.negative,ttBelow:nr.ttBelow,h:br[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}qt(this,"refresh")}renderSplit(Ut,Vt){var Jr;let Ht=this,{chart:Gt,chart:{chartWidth:Zt,chartHeight:Xt,plotHeight:er,plotLeft:nr,plotTop:or,scrollablePixelsY:rr=0,scrollablePixelsX:cr,styledMode:ir},distance:dr,options:gr,options:{positioner:br},pointer:ar}=Ht,{scrollLeft:ur=0,scrollTop:xr=0}=((Jr=Gt.scrollablePlotArea)==null?void 0:Jr.scrollingContainer)||{},Mr=Ht.outside&&typeof cr!="number"?At.documentElement.getBoundingClientRect():{left:ur,right:ur+Zt,top:xr,bottom:xr+Xt},Ar=Ht.getLabel(),Ir=this.renderer||Gt.renderer,Rr=!!(Gt.xAxis[0]&&Gt.xAxis[0].opposite),{left:wr,top:qr}=ar.getChartPosition(),Hr=or+xr,kr=0,$r=er-rr;function yr(jr,Zr,Xr,cn,Qr=!0){let rn,_r;return Xr?(rn=Rr?0:$r,_r=Ct(jr-cn/2,Mr.left,Mr.right-cn-(Ht.outside?wr:0))):(rn=Zr-Hr,_r=Ct(_r=Qr?jr-cn-dr:jr+dr,Qr?_r:Mr.left,Mr.right)),{x:_r,y:rn}}Kt(Ut)&&(Ut=[!1,Ut]);let Or=Ut.slice(0,Vt.length+1).reduce(function(jr,Zr,Xr){if(Zr!==!1&&Zr!==""){let cn=Vt[Xr-1]||{isHeader:!0,plotX:Vt[0].plotX,plotY:er,series:{}},Qr=cn.isHeader,rn=Qr?Ht:cn.series,_r=rn.tt=function(xn,Vr,fn){let pn=xn,{isHeader:qn,series:Bn}=Vr;if(!pn){let Kr={padding:gr.padding,r:gr.borderRadius};ir||(Kr.fill=gr.backgroundColor,Kr["stroke-width"]=gr.borderWidth??1),pn=Ir.label("",0,0,gr[qn?"headerShape":"shape"],void 0,void 0,gr.useHTML).addClass(Ht.getClassName(Vr,!0,qn)).attr(Kr).add(Ar)}return pn.isActive=!0,pn.attr({text:fn}),ir||pn.css(gr.style).attr({stroke:gr.borderColor||Vr.color||Bn.color||"#333333"}),pn}(rn.tt,cn,Zr.toString()),ln=_r.getBBox(),vn=ln.width+_r.strokeWidth();Qr&&(kr=ln.height,$r+=kr,Rr&&(Hr-=kr));let{anchorX:Cr,anchorY:gn}=function(xn){let Vr,fn,{isHeader:pn,plotX:qn=0,plotY:Bn=0,series:Kr}=xn;if(pn)Vr=Math.max(nr+qn,nr),fn=or+er/2;else{let{xAxis:Tr,yAxis:Pr}=Kr;Vr=Tr.pos+Ct(qn,-dr,Tr.len+dr),Kr.shouldShowTooltip(0,Pr.pos-or+Bn,{ignoreX:!0})&&(fn=Pr.pos+Bn)}return{anchorX:Vr=Ct(Vr,Mr.left-dr,Mr.right+dr),anchorY:fn}}(cn);if(typeof gn=="number"){let xn=ln.height+1,Vr=br?br.call(Ht,vn,xn,cn):yr(Cr,gn,Qr,vn);jr.push({align:br?0:void 0,anchorX:Cr,anchorY:gn,boxWidth:vn,point:cn,rank:Qt(Vr.rank,Qr?1:0),size:xn,target:Vr.y,tt:_r,x:Vr.x})}else _r.isActive=!1}return jr},[]);!br&&Or.some(jr=>{let{outside:Zr}=Ht,Xr=(Zr?wr:0)+jr.anchorX;return Xr<Mr.left&&Xr+jr.boxWidth<Mr.right||Xr<wr-Mr.left+jr.boxWidth&&Mr.right-Xr>Xr})&&(Or=Or.map(jr=>{let{x:Zr,y:Xr}=yr(jr.anchorX,jr.anchorY,jr.point.isHeader,jr.boxWidth,!1);return kt(jr,{target:Xr,x:Zr})})),Ht.cleanSplit(),zt(Or,$r);let Dr={left:wr,right:wr};Or.forEach(function(jr){let{x:Zr,boxWidth:Xr,isHeader:cn}=jr;!cn&&(Ht.outside&&wr+Zr<Dr.left&&(Dr.left=wr+Zr),!cn&&Ht.outside&&Dr.left+Xr>Dr.right&&(Dr.right=wr+Zr))}),Or.forEach(function(jr){let{x:Zr,anchorX:Xr,anchorY:cn,pos:Qr,point:{isHeader:rn}}=jr,_r={visibility:Qr===void 0?"hidden":"inherit",x:Zr,y:(Qr||0)+Hr,anchorX:Xr,anchorY:cn};if(Ht.outside&&Zr<Xr){let ln=wr-Dr.left;ln>0&&(rn||(_r.x=Zr+ln,_r.anchorX=Xr+ln),rn&&(_r.x=(Dr.right-Dr.left)/2,_r.anchorX=Xr+ln))}jr.tt.attr(_r)});let{container:Fr,outside:Yr,renderer:Gr}=Ht;if(Yr&&Fr&&Gr){let{width:jr,height:Zr,x:Xr,y:cn}=Ar.getBBox();Gr.setSize(jr+Xr,Zr+cn,!1),Fr.style.left=Dr.left+"px",Fr.style.top=qr+"px"}Rt&&Ar.attr({opacity:Ar.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let Ut=this.chart,Vt=this.label,Ht=this.shared?Ut.hoverPoints:Ut.hoverPoint;if(!Vt||!Ht)return;let Gt={x:0,y:0,width:0,height:0},Zt=this.getAnchor(Ht),Xt=Vt.getBBox();Zt[0]+=Ut.plotLeft-(Vt.translateX||0),Zt[1]+=Ut.plotTop-(Vt.translateY||0),Gt.x=Math.min(0,Zt[0]),Gt.y=Math.min(0,Zt[1]),Gt.width=Zt[0]<0?Math.max(Math.abs(Zt[0]),Xt.width-Zt[0]):Math.max(Math.abs(Zt[0]),Xt.width),Gt.height=Zt[1]<0?Math.max(Math.abs(Zt[1]),Xt.height-Math.abs(Zt[1])):Math.max(Math.abs(Zt[1]),Xt.height),this.tracker?this.tracker.attr(Gt):(this.tracker=Vt.renderer.rect(Gt).addClass("highcharts-tracker").add(Vt),Ut.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(Ut){return Ut.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(Ut,Vt){let Ht=Ut.series,Gt=Ht.tooltipOptions,Zt=Ht.xAxis,Xt=Zt&&Zt.dateTime,er={isFooter:Vt,labelConfig:Ut},nr=Gt.xDateFormat,or=Gt[Vt?"footerFormat":"headerFormat"];return qt(this,"headerFormatter",er,function(rr){Xt&&!nr&&Yt(Ut.key)&&(nr=Xt.getXDateFormat(Ut.key,Gt.dateTimeLabelFormats)),Xt&&nr&&(Ut.point&&Ut.point.tooltipDateKeys||["key"]).forEach(function(cr){or=or.replace("{point."+cr+"}","{point."+cr+":"+nr+"}")}),Ht.chart.styledMode&&(or=this.styledModeFormat(or)),rr.text=vt(or,{point:Ut,series:Ht},this.chart)}),er.text}update(Ut){this.destroy(),this.init(this.chart,Jt(!0,this.options,Ut))}updatePosition(Ut){let{chart:Vt,container:Ht,distance:Gt,options:Zt,pointer:Xt,renderer:er}=this,{height:nr=0,width:or=0}=this.getLabel(),{left:rr,top:cr,scaleX:ir,scaleY:dr}=Xt.getChartPosition(),gr=(Zt.positioner||this.getPosition).call(this,or,nr,Ut),br=(Ut.plotX||0)+Vt.plotLeft,ar=(Ut.plotY||0)+Vt.plotTop,ur;er&&Ht&&(Zt.positioner&&(gr.x+=rr-Gt,gr.y+=cr-Gt),ur=(Zt.borderWidth||0)+2*Gt+2,er.setSize(or+ur,nr+ur,!1),(ir!==1||dr!==1)&&(It(Ht,{transform:`scale(${ir}, ${dr})`}),br*=ir,ar*=dr),br+=rr-gr.x,ar+=cr-gr.y),this.move(Math.round(gr.x),Math.round(gr.y||0),br,ar)}}return(xt=jt||(jt={})).compose=function(Wt){Bt(Ot,"Core.Tooltip")&&Tt(Wt,"afterInit",function(){let Ut=this.chart;Ut.options.tooltip&&(Ut.tooltip=new xt(Ut,Ut.options.tooltip,this))})},jt}),nt(rt,"Core/Series/Point.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Animation/AnimationUtilities.js"],rt["Core/Defaults.js"],rt["Core/Templating.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){let{animObject:mt}=ut,{defaultOptions:xt}=dt,{format:Mt}=pt,{addEvent:vt,crisp:Ot,erase:At,extend:Rt,fireEvent:zt,getNestedProperty:Tt,isArray:Ct,isFunction:It,isNumber:Dt,isObject:kt,merge:qt,pick:Nt,syncTimeout:Yt,removeEvent:Kt,uniqueKey:Jt}=ht;class Qt{animateBeforeDestroy(){let Ft=this,$t={x:Ft.startXPos,opacity:0},jt=Ft.getGraphicalProps();jt.singular.forEach(function(Wt){Ft[Wt]=Ft[Wt].animate(Wt==="dataLabel"?{x:Ft[Wt].startXPos,y:Ft[Wt].startYPos,opacity:0}:$t)}),jt.plural.forEach(function(Wt){Ft[Wt].forEach(function(Ut){Ut.element&&Ut.animate(Rt({x:Ft.startXPos},Ut.startYPos?{x:Ut.startXPos,y:Ut.startYPos}:{}))})})}applyOptions(Ft,$t){let jt=this.series,Wt=jt.options.pointValKey||jt.pointValKey;return Rt(this,Ft=Qt.prototype.optionsToObject.call(this,Ft)),this.options=this.options?Rt(this.options,Ft):Ft,Ft.group&&delete this.group,Ft.dataLabels&&delete this.dataLabels,Wt&&(this.y=Qt.prototype.getNestedProperty.call(this,Wt)),this.selected&&(this.state="select"),"name"in this&&$t===void 0&&jt.xAxis&&jt.xAxis.hasNames&&(this.x=jt.xAxis.nameToX(this)),this.x===void 0&&jt?this.x=$t??jt.autoIncrement():Dt(Ft.x)&&jt.options.relativeXValue&&(this.x=jt.autoIncrement(Ft.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let Ft=this,$t=Ft.series,jt=$t.chart,Wt=$t.options.dataSorting,Ut=jt.hoverPoints,Vt=mt(Ft.series.chart.renderer.globalAnimation),Ht=()=>{for(let Gt in(Ft.graphic||Ft.graphics||Ft.dataLabel||Ft.dataLabels)&&(Kt(Ft),Ft.destroyElements()),Ft)delete Ft[Gt]};Ft.legendItem&&jt.legend.destroyItem(Ft),Ut&&(Ft.setState(),At(Ut,Ft),Ut.length||(jt.hoverPoints=null)),Ft===jt.hoverPoint&&Ft.onMouseOut(),Wt&&Wt.enabled?(this.animateBeforeDestroy(),Yt(Ht,Vt.duration)):Ht(),jt.pointCount--}this.destroyed=!0}destroyElements(Ft){let $t=this,jt=$t.getGraphicalProps(Ft);jt.singular.forEach(function(Wt){$t[Wt]=$t[Wt].destroy()}),jt.plural.forEach(function(Wt){$t[Wt].forEach(function(Ut){Ut&&Ut.element&&Ut.destroy()}),delete $t[Wt]})}firePointEvent(Ft,$t,jt){let Wt=this,Ut=this.series.options;Wt.manageEvent(Ft),Ft==="click"&&Ut.allowPointSelect&&(jt=function(Vt){!Wt.destroyed&&Wt.select&&Wt.select(null,Vt.ctrlKey||Vt.metaKey||Vt.shiftKey)}),zt(Wt,Ft,$t,jt)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(Ft){let $t,jt,Wt=this,Ut=[],Vt={singular:[],plural:[]};for((Ft=Ft||{graphic:1,dataLabel:1}).graphic&&Ut.push("graphic","connector"),Ft.dataLabel&&Ut.push("dataLabel","dataLabelPath","dataLabelUpper"),jt=Ut.length;jt--;)Wt[$t=Ut[jt]]&&Vt.singular.push($t);return["graphic","dataLabel"].forEach(function(Ht){let Gt=Ht+"s";Ft[Ht]&&Wt[Gt]&&Vt.plural.push(Gt)}),Vt}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(Ft){return Ft?Ft.indexOf("custom.")===0?Tt(Ft,this.options):this[Ft]:void 0}getZone(){let Ft=this.series,$t=Ft.zones,jt=Ft.zoneAxis||"y",Wt,Ut=0;for(Wt=$t[0];this[jt]>=Wt.value;)Wt=$t[++Ut];return this.nonZonedColor||(this.nonZonedColor=this.color),Wt&&Wt.color&&!this.options.color?this.color=Wt.color:this.color=this.nonZonedColor,Wt}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(Ft,$t,jt){this.formatPrefix="point",this.visible=!0,this.series=Ft,this.applyOptions($t,jt),this.id??(this.id=Jt()),this.resolveColor(),Ft.chart.pointCount++,zt(this,"afterInit")}isValid(){return(Dt(this.x)||this.x instanceof Date)&&Dt(this.y)}optionsToObject(Ft){let $t=this.series,jt=$t.options.keys,Wt=jt||$t.pointArrayMap||["y"],Ut=Wt.length,Vt={},Ht,Gt=0,Zt=0;if(Dt(Ft)||Ft===null)Vt[Wt[0]]=Ft;else if(Ct(Ft))for(!jt&&Ft.length>Ut&&((Ht=typeof Ft[0])=="string"?Vt.name=Ft[0]:Ht==="number"&&(Vt.x=Ft[0]),Gt++);Zt<Ut;)jt&&Ft[Gt]===void 0||(Wt[Zt].indexOf(".")>0?Qt.prototype.setNestedProperty(Vt,Ft[Gt],Wt[Zt]):Vt[Wt[Zt]]=Ft[Gt]),Gt++,Zt++;else typeof Ft=="object"&&(Vt=Ft,Ft.dataLabels&&($t.hasDataLabels=()=>!0),Ft.marker&&($t._hasPointMarkers=!0));return Vt}pos(Ft,$t=this.plotY){if(!this.destroyed){let{plotX:jt,series:Wt}=this,{chart:Ut,xAxis:Vt,yAxis:Ht}=Wt,Gt=0,Zt=0;if(Dt(jt)&&Dt($t))return Ft&&(Gt=Vt?Vt.pos:Ut.plotLeft,Zt=Ht?Ht.pos:Ut.plotTop),Ut.inverted&&Vt&&Ht?[Ht.len-$t+Zt,Vt.len-jt+Gt]:[jt+Gt,$t+Zt]}}resolveColor(){let Ft=this.series,$t=Ft.chart.options.chart,jt=Ft.chart.styledMode,Wt,Ut,Vt=$t.colorCount,Ht;delete this.nonZonedColor,Ft.options.colorByPoint?(jt||(Wt=(Ut=Ft.options.colors||Ft.chart.options.colors)[Ft.colorCounter],Vt=Ut.length),Ht=Ft.colorCounter,Ft.colorCounter++,Ft.colorCounter===Vt&&(Ft.colorCounter=0)):(jt||(Wt=Ft.color),Ht=Ft.colorIndex),this.colorIndex=Nt(this.options.colorIndex,Ht),this.color=Nt(this.options.color,Wt)}setNestedProperty(Ft,$t,jt){return jt.split(".").reduce(function(Wt,Ut,Vt,Ht){let Gt=Ht.length-1===Vt;return Wt[Ut]=Gt?$t:kt(Wt[Ut],!0)?Wt[Ut]:{},Wt[Ut]},Ft),Ft}shouldDraw(){return!this.isNull}tooltipFormatter(Ft){let $t=this.series,jt=$t.tooltipOptions,Wt=Nt(jt.valueDecimals,""),Ut=jt.valuePrefix||"",Vt=jt.valueSuffix||"";return $t.chart.styledMode&&(Ft=$t.chart.tooltip.styledModeFormat(Ft)),($t.pointArrayMap||["y"]).forEach(function(Ht){Ht="{point."+Ht,(Ut||Vt)&&(Ft=Ft.replace(RegExp(Ht+"}","g"),Ut+Ht+"}"+Vt)),Ft=Ft.replace(RegExp(Ht+"}","g"),Ht+":,."+Wt+"f}")}),Mt(Ft,{point:this,series:this.series},$t.chart)}update(Ft,$t,jt,Wt){let Ut,Vt=this,Ht=Vt.series,Gt=Vt.graphic,Zt=Ht.chart,Xt=Ht.options;function er(){Vt.applyOptions(Ft);let nr=Gt&&Vt.hasMockGraphic,or=Vt.y===null?!nr:nr;Gt&&or&&(Vt.graphic=Gt.destroy(),delete Vt.hasMockGraphic),kt(Ft,!0)&&(Gt&&Gt.element&&Ft&&Ft.marker&&Ft.marker.symbol!==void 0&&(Vt.graphic=Gt.destroy()),Ft!=null&&Ft.dataLabels&&Vt.dataLabel&&(Vt.dataLabel=Vt.dataLabel.destroy())),Ut=Vt.index,Ht.updateParallelArrays(Vt,Ut),Xt.data[Ut]=kt(Xt.data[Ut],!0)||kt(Ft,!0)?Vt.options:Nt(Ft,Xt.data[Ut]),Ht.isDirty=Ht.isDirtyData=!0,!Ht.fixedBox&&Ht.hasCartesianSeries&&(Zt.isDirtyBox=!0),Xt.legendType==="point"&&(Zt.isDirtyLegend=!0),$t&&Zt.redraw(jt)}$t=Nt($t,!0),Wt===!1?er():Vt.firePointEvent("update",{options:Ft},er)}remove(Ft,$t){this.series.removePoint(this.series.data.indexOf(this),Ft,$t)}select(Ft,$t){let jt=this,Wt=jt.series,Ut=Wt.chart;Ft=Nt(Ft,!jt.selected),this.selectedStaging=Ft,jt.firePointEvent(Ft?"select":"unselect",{accumulate:$t},function(){jt.selected=jt.options.selected=Ft,Wt.options.data[Wt.data.indexOf(jt)]=jt.options,jt.setState(Ft&&"select"),$t||Ut.getSelectedPoints().forEach(function(Vt){let Ht=Vt.series;Vt.selected&&Vt!==jt&&(Vt.selected=Vt.options.selected=!1,Ht.options.data[Ht.data.indexOf(Vt)]=Vt.options,Vt.setState(Ut.hoverPoints&&Ht.options.inactiveOtherPoints?"inactive":""),Vt.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(Ft){let{inverted:$t,pointer:jt}=this.series.chart;jt&&(Ft=Ft?jt.normalize(Ft):jt.getChartCoordinatesFromPoint(this,$t),jt.runPointActions(Ft,this))}onMouseOut(){let Ft=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(Ft.hoverPoints||[]).forEach(function($t){$t.setState()}),Ft.hoverPoints=Ft.hoverPoint=null}manageEvent(Ft){var Wt,Ut,Vt,Ht,Gt,Zt;let $t=qt(this.series.options.point,this.options),jt=(Wt=$t.events)==null?void 0:Wt[Ft];It(jt)&&(!((Ut=this.hcEvents)!=null&&Ut[Ft])||((Ht=(Vt=this.hcEvents)==null?void 0:Vt[Ft])==null?void 0:Ht.map(Xt=>Xt.fn).indexOf(jt))===-1)?((Gt=this.importedUserEvent)==null||Gt.call(this),this.importedUserEvent=vt(this,Ft,jt)):this.importedUserEvent&&!jt&&((Zt=this.hcEvents)!=null&&Zt[Ft])&&(Kt(this,Ft),delete this.hcEvents[Ft],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(Ft,$t){var xr;let jt=this.series,Wt=this.state,Ut=jt.options.states[Ft||"normal"]||{},Vt=xt.plotOptions[jt.type].marker&&jt.options.marker,Ht=Vt&&Vt.enabled===!1,Gt=Vt&&Vt.states&&Vt.states[Ft||"normal"]||{},Zt=Gt.enabled===!1,Xt=this.marker||{},er=jt.chart,nr=Vt&&jt.markerAttribs,or=jt.halo,rr,cr,ir,dr=jt.stateMarkerGraphic,gr;if((Ft=Ft||"")===this.state&&!$t||this.selected&&Ft!=="select"||Ut.enabled===!1||Ft&&(Zt||Ht&&Gt.enabled===!1)||Ft&&Xt.states&&Xt.states[Ft]&&Xt.states[Ft].enabled===!1)return;if(this.state=Ft,nr&&(rr=jt.markerAttribs(this,Ft)),this.graphic&&!this.hasMockGraphic){if(Wt&&this.graphic.removeClass("highcharts-point-"+Wt),Ft&&this.graphic.addClass("highcharts-point-"+Ft),!er.styledMode){cr=jt.pointAttribs(this,Ft),ir=Nt(er.options.chart.animation,Ut.animation);let Mr=cr.opacity;jt.options.inactiveOtherPoints&&Dt(Mr)&&(this.dataLabels||[]).forEach(function(Ar){Ar&&!Ar.hasClass("highcharts-data-label-hidden")&&(Ar.animate({opacity:Mr},ir),Ar.connector&&Ar.connector.animate({opacity:Mr},ir))}),this.graphic.animate(cr,ir)}rr&&this.graphic.animate(rr,Nt(er.options.chart.animation,Gt.animation,Vt.animation)),dr&&dr.hide()}else Ft&&Gt&&(gr=Xt.symbol||jt.symbol,dr&&dr.currentSymbol!==gr&&(dr=dr.destroy()),rr&&(dr?dr[$t?"animate":"attr"]({x:rr.x,y:rr.y}):gr&&(jt.stateMarkerGraphic=dr=er.renderer.symbol(gr,rr.x,rr.y,rr.width,rr.height).add(jt.markerGroup),dr.currentSymbol=gr)),!er.styledMode&&dr&&this.state!=="inactive"&&dr.attr(jt.pointAttribs(this,Ft))),dr&&(dr[Ft&&this.isInside?"show":"hide"](),dr.element.point=this,dr.addClass(this.getClassName(),!0));let br=Ut.halo,ar=this.graphic||dr,ur=ar&&ar.visibility||"inherit";br&&br.size&&ar&&ur!=="hidden"&&!this.isCluster?(or||(jt.halo=or=er.renderer.path().add(ar.parentGroup)),or.show()[$t?"animate":"attr"]({d:this.haloPath(br.size)}),or.attr({class:"highcharts-halo highcharts-color-"+Nt(this.colorIndex,jt.colorIndex)+(this.className?" "+this.className:""),visibility:ur,zIndex:-1}),or.point=this,er.styledMode||or.attr(Rt({fill:this.color||jt.color,"fill-opacity":br.opacity},lt.filterUserAttributes(br.attributes||{})))):(xr=or==null?void 0:or.point)!=null&&xr.haloPath&&!or.point.destroyed&&or.animate({d:or.point.haloPath(0)},null,or.hide),zt(this,"afterSetState",{state:Ft})}haloPath(Ft){let $t=this.pos();return $t?this.series.chart.renderer.symbols.circle(Ot($t[0],1)-Ft,$t[1]-Ft,2*Ft,2*Ft):[]}}return Qt}),nt(rt,"Core/Pointer.js",[rt["Core/Color/Color.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){var pt;let{parse:ht}=lt,{charts:mt,composed:xt,isTouchDevice:Mt}=ut,{addEvent:vt,attr:Ot,css:At,extend:Rt,find:zt,fireEvent:Tt,isNumber:Ct,isObject:It,objectEach:Dt,offset:kt,pick:qt,pushUnique:Nt,splat:Yt}=dt;class Kt{applyInactiveState(Qt){let Bt=[],Ft;(Qt||[]).forEach(function($t){Ft=$t.series,Bt.push(Ft),Ft.linkedParent&&Bt.push(Ft.linkedParent),Ft.linkedSeries&&(Bt=Bt.concat(Ft.linkedSeries)),Ft.navigatorSeries&&Bt.push(Ft.navigatorSeries)}),this.chart.series.forEach(function($t){Bt.indexOf($t)===-1?$t.setState("inactive",!0):$t.options.inactiveOtherPoints&&$t.setAllPointsToState("inactive")})}destroy(){let Qt=this;this.eventsToUnbind.forEach(Bt=>Bt()),this.eventsToUnbind=[],!ut.chartCount&&(Kt.unbindDocumentMouseUp&&Kt.unbindDocumentMouseUp.forEach(Bt=>Bt()),Kt.unbindDocumentTouchEnd&&(Kt.unbindDocumentTouchEnd=Kt.unbindDocumentTouchEnd())),clearInterval(Qt.tooltipTimeout),Dt(Qt,function(Bt,Ft){Qt[Ft]=void 0})}getSelectionMarkerAttrs(Qt,Bt){let Ft={args:{chartX:Qt,chartY:Bt},attrs:{},shapeType:"rect"};return Tt(this,"getSelectionMarkerAttrs",Ft,$t=>{let jt,{chart:Wt,zoomHor:Ut,zoomVert:Vt}=this,{mouseDownX:Ht=0,mouseDownY:Gt=0}=Wt,Zt=$t.attrs;Zt.x=Wt.plotLeft,Zt.y=Wt.plotTop,Zt.width=Ut?1:Wt.plotWidth,Zt.height=Vt?1:Wt.plotHeight,Ut&&(jt=Qt-Ht,Zt.width=Math.max(1,Math.abs(jt)),Zt.x=(jt>0?0:jt)+Ht),Vt&&(jt=Bt-Gt,Zt.height=Math.max(1,Math.abs(jt)),Zt.y=(jt>0?0:jt)+Gt)}),Ft}drag(Qt){let{chart:Bt}=this,{mouseDownX:Ft=0,mouseDownY:$t=0}=Bt,{panning:jt,panKey:Wt,selectionMarkerFill:Ut}=Bt.options.chart,Vt=Bt.plotLeft,Ht=Bt.plotTop,Gt=Bt.plotWidth,Zt=Bt.plotHeight,Xt=It(jt)?jt.enabled:jt,er=Wt&&Qt[`${Wt}Key`],nr=Qt.chartX,or=Qt.chartY,rr,cr=this.selectionMarker;if((!cr||!cr.touch)&&(nr<Vt?nr=Vt:nr>Vt+Gt&&(nr=Vt+Gt),or<Ht?or=Ht:or>Ht+Zt&&(or=Ht+Zt),this.hasDragged=Math.sqrt(Math.pow(Ft-nr,2)+Math.pow($t-or,2)),this.hasDragged>10)){rr=Bt.isInsidePlot(Ft-Vt,$t-Ht,{visiblePlotOnly:!0});let{shapeType:ir,attrs:dr}=this.getSelectionMarkerAttrs(nr,or);(Bt.hasCartesianSeries||Bt.mapView)&&this.hasZoom&&rr&&!er&&!cr&&(this.selectionMarker=cr=Bt.renderer[ir](),cr.attr({class:"highcharts-selection-marker",zIndex:7}).add(),Bt.styledMode||cr.attr({fill:Ut||ht("#334eff").setOpacity(.25).get()})),cr&&cr.attr(dr),rr&&!cr&&Xt&&Bt.pan(Qt,jt)}}dragStart(Qt){let Bt=this.chart;Bt.mouseIsDown=Qt.type,Bt.cancelClick=!1,Bt.mouseDownX=Qt.chartX,Bt.mouseDownY=Qt.chartY}getSelectionBox(Qt){let Bt={args:{marker:Qt},result:Qt.getBBox()};return Tt(this,"getSelectionBox",Bt),Bt.result}drop(Qt){let Bt,{chart:Ft,selectionMarker:$t}=this;for(let jt of Ft.axes)jt.isPanning&&(jt.isPanning=!1,(jt.options.startOnTick||jt.options.endOnTick||jt.series.some(Wt=>Wt.boosted))&&(jt.forceRedraw=!0,jt.setExtremes(jt.userMin,jt.userMax,!1),Bt=!0));if(Bt&&Ft.redraw(),$t&&Qt){if(this.hasDragged){let jt=this.getSelectionBox($t);Ft.transform({axes:Ft.axes.filter(Wt=>Wt.zoomEnabled&&(Wt.coll==="xAxis"&&this.zoomX||Wt.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:Qt,xAxis:[],yAxis:[],...jt},from:jt})}Ct(Ft.index)&&(this.selectionMarker=$t.destroy())}Ft&&Ct(Ft.index)&&(At(Ft.container,{cursor:Ft._cursor}),Ft.cancelClick=this.hasDragged>10,Ft.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(Qt,Bt,Ft){let $t;return Qt.forEach(function(jt){let Wt=!(jt.noSharedTooltip&&Bt)&&0>jt.options.findNearestPointBy.indexOf("y"),Ut=jt.searchPoint(Ft,Wt);It(Ut,!0)&&Ut.series&&(!It($t,!0)||function(Vt,Ht){var er,nr;let Gt=Vt.distX-Ht.distX,Zt=Vt.dist-Ht.dist,Xt=((er=Ht.series.group)==null?void 0:er.zIndex)-((nr=Vt.series.group)==null?void 0:nr.zIndex);return Gt!==0&&Bt?Gt:Zt!==0?Zt:Xt!==0?Xt:Vt.series.index>Ht.series.index?-1:1}($t,Ut)>0)&&($t=Ut)}),$t}getChartCoordinatesFromPoint(Qt,Bt){let{xAxis:Ft,yAxis:$t}=Qt.series,jt=Qt.shapeArgs;if(Ft&&$t){let Wt=Qt.clientX??Qt.plotX??0,Ut=Qt.plotY||0;return Qt.isNode&&jt&&Ct(jt.x)&&Ct(jt.y)&&(Wt=jt.x,Ut=jt.y),Bt?{chartX:$t.len+$t.pos-Ut,chartY:Ft.len+Ft.pos-Wt}:{chartX:Wt+Ft.pos,chartY:Ut+$t.pos}}if(jt&&jt.x&&jt.y)return{chartX:jt.x,chartY:jt.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:Qt}=this.chart,Bt=kt(Qt);this.chartPosition={left:Bt.left,top:Bt.top,scaleX:1,scaleY:1};let{offsetHeight:Ft,offsetWidth:$t}=Qt;return $t>2&&Ft>2&&(this.chartPosition.scaleX=Bt.width/$t,this.chartPosition.scaleY=Bt.height/Ft),this.chartPosition}getCoordinates(Qt){let Bt={xAxis:[],yAxis:[]};for(let Ft of this.chart.axes)Bt[Ft.isXAxis?"xAxis":"yAxis"].push({axis:Ft,value:Ft.toValue(Qt[Ft.horiz?"chartX":"chartY"])});return Bt}getHoverData(Qt,Bt,Ft,$t,jt,Wt){let Ut=[],Vt=function(er){return er.visible&&!(!jt&&er.directTouch)&&qt(er.options.enableMouseTracking,!0)},Ht=Bt,Gt,Zt={chartX:Wt?Wt.chartX:void 0,chartY:Wt?Wt.chartY:void 0,shared:jt};Tt(this,"beforeGetHoverData",Zt),Gt=Ht&&!Ht.stickyTracking?[Ht]:Ft.filter(er=>er.stickyTracking&&(Zt.filter||Vt)(er));let Xt=$t&&Qt||!Wt?Qt:this.findNearestKDPoint(Gt,jt,Wt);return Ht=Xt&&Xt.series,Xt&&(jt&&!Ht.noSharedTooltip?(Gt=Ft.filter(function(er){return Zt.filter?Zt.filter(er):Vt(er)&&!er.noSharedTooltip})).forEach(function(er){let nr=zt(er.points,function(or){return or.x===Xt.x&&!or.isNull});It(nr)&&(er.boosted&&er.boost&&(nr=er.boost.getPoint(nr)),Ut.push(nr))}):Ut.push(Xt)),Tt(this,"afterGetHoverData",Zt={hoverPoint:Xt}),{hoverPoint:Zt.hoverPoint,hoverSeries:Ht,hoverPoints:Ut}}getPointFromEvent(Qt){let Bt=Qt.target,Ft;for(;Bt&&!Ft;)Ft=Bt.point,Bt=Bt.parentNode;return Ft}onTrackerMouseOut(Qt){let Bt=this.chart,Ft=Qt.relatedTarget,$t=Bt.hoverSeries;this.isDirectTouch=!1,!$t||!Ft||$t.stickyTracking||this.inClass(Ft,"highcharts-tooltip")||this.inClass(Ft,"highcharts-series-"+$t.index)&&this.inClass(Ft,"highcharts-tracker")||$t.onMouseOut()}inClass(Qt,Bt){let Ft=Qt,$t;for(;Ft;){if($t=Ot(Ft,"class")){if($t.indexOf(Bt)!==-1)return!0;if($t.indexOf("highcharts-container")!==-1)return!1}Ft=Ft.parentElement}}constructor(Qt,Bt){var Ft;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=Bt,this.chart=Qt,this.runChartClick=!!((Ft=Bt.chart.events)!=null&&Ft.click),this.pinchDown=[],this.setDOMEvents(),Tt(this,"afterInit")}normalize(Qt,Bt){let Ft=Qt.touches,$t=Ft?Ft.length?Ft.item(0):qt(Ft.changedTouches,Qt.changedTouches)[0]:Qt;Bt||(Bt=this.getChartPosition());let jt=$t.pageX-Bt.left,Wt=$t.pageY-Bt.top;return Rt(Qt,{chartX:Math.round(jt/=Bt.scaleX),chartY:Math.round(Wt/=Bt.scaleY)})}onContainerClick(Qt){let Bt=this.chart,Ft=Bt.hoverPoint,$t=this.normalize(Qt),jt=Bt.plotLeft,Wt=Bt.plotTop;!Bt.cancelClick&&(Ft&&this.inClass($t.target,"highcharts-tracker")?(Tt(Ft.series,"click",Rt($t,{point:Ft})),Bt.hoverPoint&&Ft.firePointEvent("click",$t)):(Rt($t,this.getCoordinates($t)),Bt.isInsidePlot($t.chartX-jt,$t.chartY-Wt,{visiblePlotOnly:!0})&&Tt(Bt,"click",$t)))}onContainerMouseDown(Qt){var Ft;let Bt=(1&(Qt.buttons||Qt.button))==1;Qt=this.normalize(Qt),ut.isFirefox&&Qt.button!==0&&this.onContainerMouseMove(Qt),(Qt.button===void 0||Bt)&&(this.zoomOption(Qt),Bt&&((Ft=Qt.preventDefault)==null||Ft.call(Qt)),this.dragStart(Qt))}onContainerMouseLeave(Qt){let{pointer:Bt}=mt[qt(Kt.hoverChartIndex,-1)]||{};Qt=this.normalize(Qt),this.onContainerMouseMove(Qt),Bt&&!this.inClass(Qt.relatedTarget,"highcharts-tooltip")&&(Bt.reset(),Bt.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(Qt){let Bt=this.chart,Ft=Bt.tooltip,$t=this.normalize(Qt);this.setHoverChartIndex(Qt),(Bt.mouseIsDown==="mousedown"||this.touchSelect($t))&&this.drag($t),!Bt.openMenu&&(this.inClass($t.target,"highcharts-tracker")||Bt.isInsidePlot($t.chartX-Bt.plotLeft,$t.chartY-Bt.plotTop,{visiblePlotOnly:!0}))&&!(Ft&&Ft.shouldStickOnContact($t))&&(this.inClass($t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions($t))}onDocumentTouchEnd(Qt){this.onDocumentMouseUp(Qt)}onContainerTouchMove(Qt){this.touchSelect(Qt)?this.onContainerMouseMove(Qt):this.touch(Qt)}onContainerTouchStart(Qt){this.touchSelect(Qt)?this.onContainerMouseDown(Qt):(this.zoomOption(Qt),this.touch(Qt,!0))}onDocumentMouseMove(Qt){let Bt=this.chart,Ft=Bt.tooltip,$t=this.chartPosition,jt=this.normalize(Qt,$t);!$t||Bt.isInsidePlot(jt.chartX-Bt.plotLeft,jt.chartY-Bt.plotTop,{visiblePlotOnly:!0})||Ft&&Ft.shouldStickOnContact(jt)||jt.target!==Bt.container.ownerDocument&&this.inClass(jt.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(Qt){var Bt,Ft;(Ft=(Bt=mt[qt(Kt.hoverChartIndex,-1)])==null?void 0:Bt.pointer)==null||Ft.drop(Qt)}pinch(Qt){let Bt=this,{chart:Ft,hasZoom:$t,lastTouches:jt}=Bt,Wt=[].map.call(Qt.touches||[],Zt=>Bt.normalize(Zt)),Ut=Wt.length,Vt=Ut===1&&(Bt.inClass(Qt.target,"highcharts-tracker")&&Ft.runTrackerClick||Bt.runChartClick),Ht=Ft.tooltip,Gt=Ut===1&&qt(Ht==null?void 0:Ht.options.followTouchMove,!0);Ut>1?Bt.initiated=!0:Gt&&(Bt.initiated=!1),$t&&Bt.initiated&&!Vt&&Qt.cancelable!==!1&&Qt.preventDefault(),Qt.type==="touchstart"?(Bt.pinchDown=Wt,Bt.res=!0,Ft.mouseDownX=Qt.chartX):Gt?this.runPointActions(Bt.normalize(Qt)):jt&&(Tt(Ft,"touchpan",{originalEvent:Qt,touches:Wt},()=>{let Zt=Xt=>{let er=Xt[0],nr=Xt[1]||er;return{x:er.chartX,y:er.chartY,width:nr.chartX-er.chartX,height:nr.chartY-er.chartY}};Ft.transform({axes:Ft.axes.filter(Xt=>Xt.zoomEnabled&&(this.zoomHor&&Xt.horiz||this.zoomVert&&!Xt.horiz)),to:Zt(Wt),from:Zt(jt),trigger:Qt.type})}),Bt.res&&(Bt.res=!1,this.reset(!1,0))),Bt.lastTouches=Wt}reset(Qt,Bt){let Ft=this.chart,$t=Ft.hoverSeries,jt=Ft.hoverPoint,Wt=Ft.hoverPoints,Ut=Ft.tooltip,Vt=Ut&&Ut.shared?Wt:jt;Qt&&Vt&&Yt(Vt).forEach(function(Ht){Ht.series.isCartesian&&Ht.plotX===void 0&&(Qt=!1)}),Qt?Ut&&Vt&&Yt(Vt).length&&(Ut.refresh(Vt),Ut.shared&&Wt?Wt.forEach(function(Ht){Ht.setState(Ht.state,!0),Ht.series.isCartesian&&(Ht.series.xAxis.crosshair&&Ht.series.xAxis.drawCrosshair(null,Ht),Ht.series.yAxis.crosshair&&Ht.series.yAxis.drawCrosshair(null,Ht))}):jt&&(jt.setState(jt.state,!0),Ft.axes.forEach(function(Ht){Ht.crosshair&&jt.series[Ht.coll]===Ht&&Ht.drawCrosshair(null,jt)}))):(jt&&jt.onMouseOut(),Wt&&Wt.forEach(function(Ht){Ht.setState()}),$t&&$t.onMouseOut(),Ut&&Ut.hide(Bt),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),Ft.axes.forEach(function(Ht){Ht.hideCrosshair()}),Ft.hoverPoints=Ft.hoverPoint=void 0)}runPointActions(Qt,Bt,Ft){let $t=this.chart,jt=$t.series,Wt=$t.tooltip&&$t.tooltip.options.enabled?$t.tooltip:void 0,Ut=!!Wt&&Wt.shared,Vt=Bt||$t.hoverPoint,Ht=Vt&&Vt.series||$t.hoverSeries,Gt=(!Qt||Qt.type!=="touchmove")&&(!!Bt||Ht&&Ht.directTouch&&this.isDirectTouch),Zt=this.getHoverData(Vt,Ht,jt,Gt,Ut,Qt);Vt=Zt.hoverPoint,Ht=Zt.hoverSeries;let Xt=Zt.hoverPoints,er=Ht&&Ht.tooltipOptions.followPointer&&!Ht.tooltipOptions.split,nr=Ut&&Ht&&!Ht.noSharedTooltip;if(Vt&&(Ft||Vt!==$t.hoverPoint||Wt&&Wt.isHidden)){if(($t.hoverPoints||[]).forEach(function(or){Xt.indexOf(or)===-1&&or.setState()}),$t.hoverSeries!==Ht&&Ht.onMouseOver(),this.applyInactiveState(Xt),(Xt||[]).forEach(function(or){or.setState("hover")}),$t.hoverPoint&&$t.hoverPoint.firePointEvent("mouseOut"),!Vt.series)return;$t.hoverPoints=Xt,$t.hoverPoint=Vt,Vt.firePointEvent("mouseOver",void 0,()=>{Wt&&Vt&&Wt.refresh(nr?Xt:Vt,Qt)})}else if(er&&Wt&&!Wt.isHidden){let or=Wt.getAnchor([{}],Qt);$t.isInsidePlot(or[0],or[1],{visiblePlotOnly:!0})&&Wt.updatePosition({plotX:or[0],plotY:or[1]})}this.unDocMouseMove||(this.unDocMouseMove=vt($t.container.ownerDocument,"mousemove",or=>{var rr,cr;return(cr=(rr=mt[Kt.hoverChartIndex??-1])==null?void 0:rr.pointer)==null?void 0:cr.onDocumentMouseMove(or)}),this.eventsToUnbind.push(this.unDocMouseMove)),$t.axes.forEach(function(or){let rr,cr=qt((or.crosshair||{}).snap,!0);!cr||(rr=$t.hoverPoint)&&rr.series[or.coll]===or||(rr=zt(Xt,ir=>ir.series&&ir.series[or.coll]===or)),rr||!cr?or.drawCrosshair(Qt,rr):or.hideCrosshair()})}setDOMEvents(){let Qt=this.chart.container,Bt=Qt.ownerDocument;Qt.onmousedown=this.onContainerMouseDown.bind(this),Qt.onmousemove=this.onContainerMouseMove.bind(this),Qt.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(vt(Qt,"mouseenter",this.onContainerMouseEnter.bind(this)),vt(Qt,"mouseleave",this.onContainerMouseLeave.bind(this))),Kt.unbindDocumentMouseUp||(Kt.unbindDocumentMouseUp=[]),Kt.unbindDocumentMouseUp.push(vt(Bt,"mouseup",this.onDocumentMouseUp.bind(this)));let Ft=this.chart.renderTo.parentElement;for(;Ft&&Ft.tagName!=="BODY";)this.eventsToUnbind.push(vt(Ft,"scroll",()=>{delete this.chartPosition})),Ft=Ft.parentElement;this.eventsToUnbind.push(vt(Qt,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),vt(Qt,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Kt.unbindDocumentTouchEnd||(Kt.unbindDocumentTouchEnd=vt(Bt,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),vt(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var jt,Wt;if(!Mt)return;let Qt=this.pointerCaptureEventsToUnbind,Bt=this.chart,Ft=Bt.container,$t=qt((jt=Bt.options.tooltip)==null?void 0:jt.followTouchMove,!0)&&Bt.series.some(Ut=>Ut.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&$t?(Qt.push(vt(Ft,"pointerdown",Ut=>{var Vt,Ht;(Vt=Ut.target)!=null&&Vt.hasPointerCapture(Ut.pointerId)&&((Ht=Ut.target)==null||Ht.releasePointerCapture(Ut.pointerId))}),vt(Ft,"pointermove",Ut=>{var Vt,Ht;(Ht=(Vt=Bt.pointer)==null?void 0:Vt.getPointFromEvent(Ut))==null||Ht.onMouseOver(Ut)})),Bt.styledMode||At(Ft,{"touch-action":"none"}),Ft.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!$t&&(Qt.forEach(Ut=>Ut()),Qt.length=0,Bt.styledMode||At(Ft,{"touch-action":qt((Wt=Bt.options.chart.style)==null?void 0:Wt["touch-action"],"manipulation")}),Ft.className=Ft.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(Qt){var $t;let Bt=this.chart,Ft=ut.charts[qt(Kt.hoverChartIndex,-1)];if(Ft&&Ft!==Bt){let jt={relatedTarget:Bt.container};Qt&&!(Qt!=null&&Qt.relatedTarget)&&(Qt={...jt,...Qt}),($t=Ft.pointer)==null||$t.onContainerMouseLeave(Qt||jt)}Ft&&Ft.mouseIsDown||(Kt.hoverChartIndex=Bt.index)}touch(Qt,Bt){let Ft,{chart:$t,pinchDown:jt=[]}=this;this.setHoverChartIndex(),(Qt=this.normalize(Qt)).touches.length===1?$t.isInsidePlot(Qt.chartX-$t.plotLeft,Qt.chartY-$t.plotTop,{visiblePlotOnly:!0})&&!$t.openMenu?(Bt&&this.runPointActions(Qt),Qt.type==="touchmove"&&(Ft=!!jt[0]&&Math.pow(jt[0].chartX-Qt.chartX,2)+Math.pow(jt[0].chartY-Qt.chartY,2)>=16),qt(Ft,!0)&&this.pinch(Qt)):Bt&&this.reset():Qt.touches.length===2&&this.pinch(Qt)}touchSelect(Qt){return!!(this.chart.zooming.singleTouch&&Qt.touches&&Qt.touches.length===1)}zoomOption(Qt){let Bt=this.chart,Ft=Bt.inverted,$t=Bt.zooming.type||"",jt,Wt;/touch/.test(Qt.type)&&($t=qt(Bt.zooming.pinchType,$t)),this.zoomX=jt=/x/.test($t),this.zoomY=Wt=/y/.test($t),this.zoomHor=jt&&!Ft||Wt&&Ft,this.zoomVert=Wt&&!Ft||jt&&Ft,this.hasZoom=jt||Wt}}return(pt=Kt||(Kt={})).compose=function(Jt){Nt(xt,"Core.Pointer")&&vt(Jt,"beforeRender",function(){this.pointer=new pt(this,this.options)})},Kt}),nt(rt,"Core/Legend/LegendSymbol.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{extend:dt,merge:pt,pick:ht}=lt;return function(mt){function xt(Mt,vt,Ot){var Ft;let At=this.legendItem=this.legendItem||{},{chart:Rt,options:zt}=this,{baseline:Tt=0,symbolWidth:Ct,symbolHeight:It}=Mt,Dt=this.symbol||"circle",kt=It/2,qt=Rt.renderer,Nt=At.group,Yt=Tt-Math.round(It*(Ot?.4:.3)),Kt={},Jt,Qt=zt.marker,Bt=0;if(Rt.styledMode||(Kt["stroke-width"]=Math.min(zt.lineWidth||0,24),zt.dashStyle?Kt.dashstyle=zt.dashStyle:zt.linecap==="square"||(Kt["stroke-linecap"]="round")),At.line=qt.path().addClass("highcharts-graph").attr(Kt).add(Nt),Ot&&(At.area=qt.path().addClass("highcharts-area").add(Nt)),Kt["stroke-linecap"]&&(Bt=Math.min(At.line.strokeWidth(),Ct)/2),Ct){let $t=[["M",Bt,Yt],["L",Ct-Bt,Yt]];At.line.attr({d:$t}),(Ft=At.area)==null||Ft.attr({d:[...$t,["L",Ct-Bt,Tt],["L",Bt,Tt]]})}if(Qt&&Qt.enabled!==!1&&Ct){let $t=Math.min(ht(Qt.radius,kt),kt);Dt.indexOf("url")===0&&(Qt=pt(Qt,{width:It,height:It}),$t=0),At.symbol=Jt=qt.symbol(Dt,Ct/2-$t,Yt-$t,2*$t,2*$t,dt({context:"legend"},Qt)).addClass("highcharts-point").add(Nt),Jt.isMarker=!0}}mt.areaMarker=function(Mt,vt){xt.call(this,Mt,vt,!0)},mt.lineMarker=xt,mt.rectangle=function(Mt,vt){let Ot=vt.legendItem||{},At=Mt.options,Rt=Mt.symbolHeight,zt=At.squareSymbol,Tt=zt?Rt:Mt.symbolWidth;Ot.symbol=this.chart.renderer.rect(zt?(Mt.symbolWidth-Rt)/2:0,Mt.baseline-Rt+1,Tt,Rt,ht(Mt.options.symbolRadius,Rt/2)).addClass("highcharts-point").attr({zIndex:3}).add(Ot.group)}}(ut||(ut={})),ut}),nt(rt,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:lt}=this.series.chart;return typeof this.y!="number"?"":lt(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),nt(rt,"Core/Series/SeriesRegistry.js",[rt["Core/Globals.js"],rt["Core/Defaults.js"],rt["Core/Series/Point.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){var ht;let{defaultOptions:mt}=ut,{extend:xt,extendClass:Mt,merge:vt}=pt;return function(Ot){function At(Rt,zt){let Tt=mt.plotOptions||{},Ct=zt.defaultOptions,It=zt.prototype;return It.type=Rt,It.pointClass||(It.pointClass=dt),!Ot.seriesTypes[Rt]&&(Ct&&(Tt[Rt]=Ct),Ot.seriesTypes[Rt]=zt,!0)}Ot.seriesTypes=lt.seriesTypes,Ot.registerSeriesType=At,Ot.seriesType=function(Rt,zt,Tt,Ct,It){let Dt=mt.plotOptions||{};if(zt=zt||"",Dt[Rt]=vt(Dt[zt],Tt),delete Ot.seriesTypes[Rt],At(Rt,Mt(Ot.seriesTypes[zt]||function(){},Ct)),Ot.seriesTypes[Rt].prototype.type=Rt,It){class kt extends dt{}xt(kt.prototype,It),Ot.seriesTypes[Rt].prototype.pointClass=kt}return Ot.seriesTypes[Rt]}}(ht||(ht={})),ht}),nt(rt,"Core/Series/Series.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Defaults.js"],rt["Core/Foundation.js"],rt["Core/Globals.js"],rt["Core/Legend/LegendSymbol.js"],rt["Core/Series/Point.js"],rt["Core/Series/SeriesDefaults.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot){let{animObject:At,setAnimation:Rt}=lt,{defaultOptions:zt}=ut,{registerEventOptions:Tt}=dt,{svg:Ct,win:It}=pt,{seriesTypes:Dt}=Mt,{arrayMax:kt,arrayMin:qt,clamp:Nt,correctFloat:Yt,crisp:Kt,defined:Jt,destroyObjectProperties:Qt,diffObjects:Bt,erase:Ft,error:$t,extend:jt,find:Wt,fireEvent:Ut,getClosestDistance:Vt,getNestedProperty:Ht,insertItem:Gt,isArray:Zt,isNumber:Xt,isString:er,merge:nr,objectEach:or,pick:rr,removeEvent:cr,splat:ir,syncTimeout:dr}=Ot;class gr{constructor(){this.zoneAxis="y"}init(ar,ur){let xr;Ut(this,"init",{options:ur});let Mr=this,Ar=ar.series;this.eventsToUnbind=[],Mr.chart=ar,Mr.options=Mr.setOptions(ur);let Ir=Mr.options,Rr=Ir.visible!==!1;Mr.linkedSeries=[],Mr.bindAxes(),jt(Mr,{name:Ir.name,state:"",visible:Rr,selected:Ir.selected===!0}),Tt(this,Ir);let wr=Ir.events;(wr&&wr.click||Ir.point&&Ir.point.events&&Ir.point.events.click||Ir.allowPointSelect)&&(ar.runTrackerClick=!0),Mr.getColor(),Mr.getSymbol(),Mr.parallelArrays.forEach(function(qr){Mr[qr+"Data"]||(Mr[qr+"Data"]=[])}),Mr.isCartesian&&(ar.hasCartesianSeries=!0),Ar.length&&(xr=Ar[Ar.length-1]),Mr._i=rr(xr&&xr._i,-1)+1,Mr.opacity=Mr.options.opacity,ar.orderItems("series",Gt(this,Ar)),Ir.dataSorting&&Ir.dataSorting.enabled?Mr.setDataSortingOptions():Mr.points||Mr.data||Mr.setData(Ir.data,!1),Ut(this,"afterInit")}is(ar){return Dt[ar]&&this instanceof Dt[ar]}bindAxes(){let ar,ur=this,xr=ur.options,Mr=ur.chart;Ut(this,"bindAxes",null,function(){(ur.axisTypes||[]).forEach(function(Ar){(Mr[Ar]||[]).forEach(function(Ir){ar=Ir.options,(rr(xr[Ar],0)===Ir.index||xr[Ar]!==void 0&&xr[Ar]===ar.id)&&(Gt(ur,Ir.series),ur[Ar]=Ir,Ir.isDirty=!0)}),ur[Ar]||ur.optionalAxis===Ar||$t(18,!0,Mr)})}),Ut(this,"afterBindAxes")}updateParallelArrays(ar,ur,xr){let Mr=ar.series,Ar=Xt(ur)?function(Ir){let Rr=Ir==="y"&&Mr.toYData?Mr.toYData(ar):ar[Ir];Mr[Ir+"Data"][ur]=Rr}:function(Ir){Array.prototype[ur].apply(Mr[Ir+"Data"],xr)};Mr.parallelArrays.forEach(Ar)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(ar,ur){let xr=ar.marker,Mr=ur.marker||{};return xr&&(Mr.enabled&&!xr.enabled||Mr.symbol!==xr.symbol||Mr.height!==xr.height||Mr.width!==xr.width)}autoIncrement(ar){let ur=this.options,xr=ur.pointIntervalUnit,Mr=ur.relativeXValue,Ar=this.chart.time,Ir=this.xIncrement,Rr,wr;return Ir=rr(Ir,ur.pointStart,0),this.pointInterval=wr=rr(this.pointInterval,ur.pointInterval,1),Mr&&Xt(ar)&&(wr*=ar),xr&&(Rr=new Ar.Date(Ir),xr==="day"?Ar.set("Date",Rr,Ar.get("Date",Rr)+wr):xr==="month"?Ar.set("Month",Rr,Ar.get("Month",Rr)+wr):xr==="year"&&Ar.set("FullYear",Rr,Ar.get("FullYear",Rr)+wr),wr=Rr.getTime()-Ir),Mr&&Xt(ar)?Ir+wr:(this.xIncrement=Ir+wr,Ir)}setDataSortingOptions(){let ar=this.options;jt(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),Jt(ar.pointRange)||(ar.pointRange=1)}setOptions(ar){var Fr,Yr;let ur,xr=this.chart,Mr=xr.options.plotOptions,Ar=xr.userOptions||{},Ir=nr(ar),Rr=xr.styledMode,wr={plotOptions:Mr,userOptions:Ir};Ut(this,"setOptions",wr);let qr=wr.plotOptions[this.type],Hr=Ar.plotOptions||{},kr=Hr.series||{},$r=zt.plotOptions[this.type]||{},yr=Hr[this.type]||{};this.userOptions=wr.userOptions;let Or=nr(qr,Mr.series,yr,Ir);this.tooltipOptions=nr(zt.tooltip,(Fr=zt.plotOptions.series)==null?void 0:Fr.tooltip,$r==null?void 0:$r.tooltip,xr.userOptions.tooltip,(Yr=Hr.series)==null?void 0:Yr.tooltip,yr.tooltip,Ir.tooltip),this.stickyTracking=rr(Ir.stickyTracking,yr.stickyTracking,kr.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||Or.stickyTracking),qr.marker===null&&delete Or.marker,this.zoneAxis=Or.zoneAxis||"y";let Dr=this.zones=(Or.zones||[]).map(Gr=>({...Gr}));return(Or.negativeColor||Or.negativeFillColor)&&!Or.zones&&(ur={value:Or[this.zoneAxis+"Threshold"]||Or.threshold||0,className:"highcharts-negative"},Rr||(ur.color=Or.negativeColor,ur.fillColor=Or.negativeFillColor),Dr.push(ur)),Dr.length&&Jt(Dr[Dr.length-1].value)&&Dr.push(Rr?{}:{color:this.color,fillColor:this.fillColor}),Ut(this,"afterSetOptions",{options:Or}),Or}getName(){return rr(this.options.name,"Series "+(this.index+1))}getCyclic(ar,ur,xr){let Mr,Ar,Ir=this.chart,Rr=`${ar}Index`,wr=`${ar}Counter`,qr=(xr==null?void 0:xr.length)||Ir.options.chart.colorCount;!ur&&(Jt(Ar=rr(ar==="color"?this.options.colorIndex:void 0,this[Rr]))?Mr=Ar:(Ir.series.length||(Ir[wr]=0),Mr=Ir[wr]%qr,Ir[wr]+=1),xr&&(ur=xr[Mr])),Mr!==void 0&&(this[Rr]=Mr),this[ar]=ur}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||zt.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let ar=this.options.marker;this.getCyclic("symbol",ar.symbol,this.chart.options.symbols)}findPointIndex(ar,ur){let xr,Mr,Ar,Ir=ar.id,Rr=ar.x,wr=this.points,qr=this.options.dataSorting;if(Ir){let Hr=this.chart.get(Ir);Hr instanceof mt&&(xr=Hr)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let Hr=kr=>!kr.touched&&kr.index===ar.index;if(qr&&qr.matchByName?Hr=kr=>!kr.touched&&kr.name===ar.name:this.options.relativeXValue&&(Hr=kr=>!kr.touched&&kr.options.x===ar.x),!(xr=Wt(wr,Hr)))return}return xr&&(Ar=xr&&xr.index)!==void 0&&(Mr=!0),Ar===void 0&&Xt(Rr)&&(Ar=this.xData.indexOf(Rr,ur)),Ar!==-1&&Ar!==void 0&&this.cropped&&(Ar=Ar>=this.cropStart?Ar-this.cropStart:Ar),!Mr&&Xt(Ar)&&wr[Ar]&&wr[Ar].touched&&(Ar=void 0),Ar}updateData(ar,ur){let xr=this.options,Mr=xr.dataSorting,Ar=this.points,Ir=[],Rr=this.requireSorting,wr=ar.length===Ar.length,qr,Hr,kr,$r,yr=!0;if(this.xIncrement=null,ar.forEach(function(Or,Dr){let Fr,Yr=Jt(Or)&&this.pointClass.prototype.optionsToObject.call({series:this},Or)||{},Gr=Yr.x;Yr.id||Xt(Gr)?((Fr=this.findPointIndex(Yr,$r))===-1||Fr===void 0?Ir.push(Or):Ar[Fr]&&Or!==xr.data[Fr]?(Ar[Fr].update(Or,!1,null,!1),Ar[Fr].touched=!0,Rr&&($r=Fr+1)):Ar[Fr]&&(Ar[Fr].touched=!0),(!wr||Dr!==Fr||Mr&&Mr.enabled||this.hasDerivedData)&&(qr=!0)):Ir.push(Or)},this),qr)for(Hr=Ar.length;Hr--;)(kr=Ar[Hr])&&!kr.touched&&kr.remove&&kr.remove(!1,ur);else!wr||Mr&&Mr.enabled?yr=!1:(ar.forEach(function(Or,Dr){Or===Ar[Dr].y||Ar[Dr].destroyed||Ar[Dr].update(Or,!1,null,!1)}),Ir.length=0);return Ar.forEach(function(Or){Or&&(Or.touched=!1)}),!!yr&&(Ir.forEach(function(Or){this.addPoint(Or,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=kt(this.xData),this.autoIncrement()),!0)}setData(ar,ur=!0,xr,Mr){var rn;let Ar=this,Ir=Ar.points,Rr=Ir&&Ir.length||0,wr=Ar.options,qr=Ar.chart,Hr=wr.dataSorting,kr=Ar.xAxis,$r=wr.turboThreshold,yr=this.xData,Or=this.yData,Dr=Ar.pointArrayMap,Fr=Dr&&Dr.length,Yr=wr.keys,Gr,Jr,jr,Zr=0,Xr=1,cn;qr.options.chart.allowMutatingData||(wr.data&&delete Ar.options.data,Ar.userOptions.data&&delete Ar.userOptions.data,cn=nr(!0,ar));let Qr=(ar=cn||ar||[]).length;if(Hr&&Hr.enabled&&(ar=this.sortData(ar)),qr.options.chart.allowMutatingData&&Mr!==!1&&Qr&&Rr&&!Ar.cropped&&!Ar.hasGroupedData&&Ar.visible&&!Ar.boosted&&(jr=this.updateData(ar,xr)),!jr){Ar.xIncrement=null,Ar.colorCounter=0,this.parallelArrays.forEach(function(ln){Ar[ln+"Data"].length=0});let _r=$r&&Qr>$r;if(_r){let ln=Ar.getFirstValidPoint(ar),vn=Ar.getFirstValidPoint(ar,Qr-1,-1),Cr=gn=>!!(Zt(gn)&&(Yr||Xt(gn[0])));if(Xt(ln)&&Xt(vn))for(Gr=0;Gr<Qr;Gr++)yr[Gr]=this.autoIncrement(),Or[Gr]=ar[Gr];else if(Cr(ln)&&Cr(vn))if(Fr)if(ln.length===Fr)for(Gr=0;Gr<Qr;Gr++)yr[Gr]=this.autoIncrement(),Or[Gr]=ar[Gr];else for(Gr=0;Gr<Qr;Gr++)Jr=ar[Gr],yr[Gr]=Jr[0],Or[Gr]=Jr.slice(1,Fr+1);else if(Yr&&(Zr=Yr.indexOf("x"),Xr=Yr.indexOf("y"),Zr=Zr>=0?Zr:0,Xr=Xr>=0?Xr:1),ln.length===1&&(Xr=0),Zr===Xr)for(Gr=0;Gr<Qr;Gr++)yr[Gr]=this.autoIncrement(),Or[Gr]=ar[Gr][Xr];else for(Gr=0;Gr<Qr;Gr++)Jr=ar[Gr],yr[Gr]=Jr[Zr],Or[Gr]=Jr[Xr];else _r=!1}if(!_r)for(Gr=0;Gr<Qr;Gr++)Jr={series:Ar},Ar.pointClass.prototype.applyOptions.apply(Jr,[ar[Gr]]),Ar.updateParallelArrays(Jr,Gr);for(Or&&er(Or[0])&&$t(14,!0,qr),Ar.data=[],Ar.options.data=Ar.userOptions.data=ar,Gr=Rr;Gr--;)(rn=Ir[Gr])==null||rn.destroy();kr&&(kr.minRange=kr.userMinRange),Ar.isDirty=qr.isDirtyBox=!0,Ar.isDirtyData=!!Ir,xr=!1}wr.legendType==="point"&&(this.processData(),this.generatePoints()),ur&&qr.redraw(xr)}sortData(ar){let ur=this,xr=ur.options.dataSorting.sortKey||"y",Mr=function(Ar,Ir){return Jt(Ir)&&Ar.pointClass.prototype.optionsToObject.call({series:Ar},Ir)||{}};return ar.forEach(function(Ar,Ir){ar[Ir]=Mr(ur,Ar),ar[Ir].index=Ir},this),ar.concat().sort((Ar,Ir)=>{let Rr=Ht(xr,Ar),wr=Ht(xr,Ir);return wr<Rr?-1:wr>Rr?1:0}).forEach(function(Ar,Ir){Ar.x=Ir},this),ur.linkedSeries&&ur.linkedSeries.forEach(function(Ar){let Ir=Ar.options,Rr=Ir.data;Ir.dataSorting&&Ir.dataSorting.enabled||!Rr||(Rr.forEach(function(wr,qr){Rr[qr]=Mr(Ar,wr),ar[qr]&&(Rr[qr].x=ar[qr].x,Rr[qr].index=qr)}),Ar.setData(Rr,!1))}),ar}getProcessedData(ar){let ur=this,xr=ur.xAxis,Mr=ur.options.cropThreshold,Ar=xr==null?void 0:xr.logarithmic,Ir=ur.isCartesian,Rr,wr,qr=0,Hr,kr,$r,yr=ur.xData,Or=ur.yData,Dr=!1,Fr=yr.length;xr&&(kr=(Hr=xr.getExtremes()).min,$r=Hr.max,Dr=!!(xr.categories&&!xr.names.length)),Ir&&ur.sorted&&!ar&&(!Mr||Fr>Mr||ur.forceCrop)&&(yr[Fr-1]<kr||yr[0]>$r?(yr=[],Or=[]):ur.yData&&(yr[0]<kr||yr[Fr-1]>$r)&&(yr=(Rr=this.cropData(ur.xData,ur.yData,kr,$r)).xData,Or=Rr.yData,qr=Rr.start,wr=!0));let Yr=Vt([Ar?yr.map(Ar.log2lin):yr],()=>ur.requireSorting&&!Dr&&$t(15,!1,ur.chart));return{xData:yr,yData:Or,cropped:wr,cropStart:qr,closestPointRange:Yr}}processData(ar){let ur=this.xAxis;if(this.isCartesian&&!this.isDirty&&!ur.isDirty&&!this.yAxis.isDirty&&!ar)return!1;let xr=this.getProcessedData();this.cropped=xr.cropped,this.cropStart=xr.cropStart,this.processedXData=xr.xData,this.processedYData=xr.yData,this.closestPointRange=this.basePointRange=xr.closestPointRange,Ut(this,"afterProcessData")}cropData(ar,ur,xr,Mr){let Ar=ar.length,Ir,Rr,wr=0,qr=Ar;for(Ir=0;Ir<Ar;Ir++)if(ar[Ir]>=xr){wr=Math.max(0,Ir-1);break}for(Rr=Ir;Rr<Ar;Rr++)if(ar[Rr]>Mr){qr=Rr+1;break}return{xData:ar.slice(wr,qr),yData:ur.slice(wr,qr),start:wr,end:qr}}generatePoints(){let ar=this.options,ur=this.processedData||ar.data,xr=this.processedXData,Mr=this.processedYData,Ar=this.pointClass,Ir=xr.length,Rr=this.cropStart||0,wr=this.hasGroupedData,qr=ar.keys,Hr=[],kr=ar.dataGrouping&&ar.dataGrouping.groupAll?Rr:0,$r,yr,Or,Dr,Fr=this.data;if(!Fr&&!wr){let Yr=[];Yr.length=ur.length,Fr=this.data=Yr}for(qr&&wr&&(this.options.keys=!1),Dr=0;Dr<Ir;Dr++)yr=Rr+Dr,wr?((Or=new Ar(this,[xr[Dr]].concat(ir(Mr[Dr])))).dataGroup=this.groupMap[kr+Dr],Or.dataGroup.options&&(Or.options=Or.dataGroup.options,jt(Or,Or.dataGroup.options),delete Or.dataLabels)):(Or=Fr[yr])||ur[yr]===void 0||(Fr[yr]=Or=new Ar(this,ur[yr],xr[Dr])),Or&&(Or.index=wr?kr+Dr:yr,Hr[Dr]=Or);if(this.options.keys=qr,Fr&&(Ir!==($r=Fr.length)||wr))for(Dr=0;Dr<$r;Dr++)Dr!==Rr||wr||(Dr+=Ir),Fr[Dr]&&(Fr[Dr].destroyElements(),Fr[Dr].plotX=void 0);this.data=Fr,this.points=Hr,Ut(this,"afterGeneratePoints")}getXExtremes(ar){return{min:qt(ar),max:kt(ar)}}getExtremes(ar,ur){let xr=this.xAxis,Mr=this.yAxis,Ar=[],Ir=this.requireSorting&&!this.is("column")?1:0,Rr=!!Mr&&Mr.positiveValuesOnly,wr=ur||this.getExtremesFromAll||this.options.getExtremesFromAll,{processedXData:qr,processedYData:Hr}=this,kr,$r,yr,Or,Dr,Fr,Yr,Gr=0,Jr=0,jr=0;if(this.cropped&&wr){let Qr=this.getProcessedData(!0);qr=Qr.xData,Hr=Qr.yData}let Zr=(ar=ar||this.stackedYData||Hr||[]).length,Xr=qr||this.xData;for(xr&&(Gr=(kr=xr.getExtremes()).min,Jr=kr.max),Fr=0;Fr<Zr;Fr++)if(Or=Xr[Fr],$r=(Xt(Dr=ar[Fr])||Zt(Dr))&&((Xt(Dr)?Dr>0:Dr.length)||!Rr),yr=ur||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!xr||(Xr[Fr+Ir]||Or)>=Gr&&(Xr[Fr-Ir]||Or)<=Jr,$r&&yr)if(Yr=Dr.length)for(;Yr--;)Xt(Dr[Yr])&&(Ar[jr++]=Dr[Yr]);else Ar[jr++]=Dr;let cn={activeYData:Ar,dataMin:qt(Ar),dataMax:kt(Ar)};return Ut(this,"afterGetExtremes",{dataExtremes:cn}),cn}applyExtremes(){let ar=this.getExtremes();return this.dataMin=ar.dataMin,this.dataMax=ar.dataMax,ar}getFirstValidPoint(ar,ur=0,xr=1){let Mr=ar.length,Ar=ur;for(;Ar>=0&&Ar<Mr;){if(Jt(ar[Ar]))return ar[Ar];Ar+=xr}}translate(){var Jr;this.processedXData||this.processData(),this.generatePoints();let ar=this.options,ur=ar.stacking,xr=this.xAxis,Mr=xr.categories,Ar=this.enabledDataSorting,Ir=this.yAxis,Rr=this.points,wr=Rr.length,qr=this.pointPlacementToXValue(),Hr=!!qr,kr=ar.threshold,$r=ar.startFromThreshold?kr:0,yr,Or,Dr,Fr,Yr=Number.MAX_VALUE;function Gr(jr){return Nt(jr,-1e5,1e5)}for(yr=0;yr<wr;yr++){let jr,Zr=Rr[yr],Xr=Zr.x,cn,Qr,rn=Zr.y,_r=Zr.low,ln=ur&&((Jr=Ir.stacking)==null?void 0:Jr.stacks[(this.negStacks&&rn<($r?0:kr)?"-":"")+this.stackKey]);Or=xr.translate(Xr,!1,!1,!1,!0,qr),Zr.plotX=Xt(Or)?Yt(Gr(Or)):void 0,ur&&this.visible&&ln&&ln[Xr]&&(Fr=this.getStackIndicator(Fr,Xr,this.index),!Zr.isNull&&Fr.key&&(Qr=(cn=ln[Xr]).points[Fr.key]),cn&&Zt(Qr)&&(_r=Qr[0],rn=Qr[1],_r===$r&&Fr.key===ln[Xr].base&&(_r=rr(Xt(kr)?kr:Ir.min)),Ir.positiveValuesOnly&&Jt(_r)&&_r<=0&&(_r=void 0),Zr.total=Zr.stackTotal=rr(cn.total),Zr.percentage=Jt(Zr.y)&&cn.total?Zr.y/cn.total*100:void 0,Zr.stackY=rn,this.irregularWidths||cn.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),Zr.yBottom=Jt(_r)?Gr(Ir.translate(_r,!1,!0,!1,!0)):void 0,this.dataModify&&(rn=this.dataModify.modifyValue(rn,yr)),Xt(rn)&&Zr.plotX!==void 0&&(jr=Xt(jr=Ir.translate(rn,!1,!0,!1,!0))?Gr(jr):void 0),Zr.plotY=jr,Zr.isInside=this.isPointInside(Zr),Zr.clientX=Hr?Yt(xr.translate(Xr,!1,!1,!1,!0,qr)):Or,Zr.negative=(Zr.y||0)<(kr||0),Zr.category=rr(Mr&&Mr[Zr.x],Zr.x),Zr.isNull||Zr.visible===!1||(Dr!==void 0&&(Yr=Math.min(Yr,Math.abs(Or-Dr))),Dr=Or),Zr.zone=this.zones.length?Zr.getZone():void 0,!Zr.graphic&&this.group&&Ar&&(Zr.isNew=!0)}this.closestPointRangePx=Yr,Ut(this,"afterTranslate")}getValidPoints(ar,ur,xr){let Mr=this.chart;return(ar||this.points||[]).filter(function(Ar){let{plotX:Ir,plotY:Rr}=Ar;return!!((xr||!Ar.isNull&&Xt(Rr))&&(!ur||Mr.isInsidePlot(Ir,Rr,{inverted:Mr.inverted})))&&Ar.visible!==!1})}getClipBox(){let{chart:ar,xAxis:ur,yAxis:xr}=this,{x:Mr,y:Ar,width:Ir,height:Rr}=nr(ar.clipBox);return ur&&ur.len!==ar.plotSizeX&&(Ir=ur.len),xr&&xr.len!==ar.plotSizeY&&(Rr=xr.len),ar.inverted&&!this.invertible&&([Ir,Rr]=[Rr,Ir]),{x:Mr,y:Ar,width:Ir,height:Rr}}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:ar,group:ur,markerGroup:xr}=this,Mr=ar.sharedClips,Ar=ar.renderer,Ir=this.getClipBox(),Rr=this.getSharedClipKey(),wr=Mr[Rr];wr?wr.animate(Ir):Mr[Rr]=wr=Ar.clipRect(Ir),ur&&ur.clip(this.options.clip===!1?void 0:wr),xr&&xr.clip()}animate(ar){let{chart:ur,group:xr,markerGroup:Mr}=this,Ar=ur.inverted,Ir=At(this.options.animation),Rr=[this.getSharedClipKey(),Ir.duration,Ir.easing,Ir.defer].join(","),wr=ur.sharedClips[Rr],qr=ur.sharedClips[Rr+"m"];if(ar&&xr){let Hr=this.getClipBox();if(wr)wr.attr("height",Hr.height);else{Hr.width=0,Ar&&(Hr.x=ur.plotHeight),wr=ur.renderer.clipRect(Hr),ur.sharedClips[Rr]=wr;let kr={x:-99,y:-99,width:Ar?ur.plotWidth+199:99,height:Ar?99:ur.plotHeight+199};qr=ur.renderer.clipRect(kr),ur.sharedClips[Rr+"m"]=qr}xr.clip(wr),Mr==null||Mr.clip(qr)}else if(wr&&!wr.hasClass("highcharts-animating")){let Hr=this.getClipBox(),kr=Ir.step;(Mr!=null&&Mr.element.childNodes.length||ur.series.length>1)&&(Ir.step=function($r,yr){kr&&kr.apply(yr,arguments),yr.prop==="width"&&(qr!=null&&qr.element)&&qr.attr(Ar?"height":"width",$r+99)}),wr.addClass("highcharts-animating").animate(Hr,Ir)}}afterAnimate(){this.setClip(),or(this.chart.sharedClips,(ar,ur,xr)=>{ar&&!this.chart.container.querySelector(`[clip-path="url(#${ar.id})"]`)&&(ar.destroy(),delete xr[ur])}),this.finishedAnimating=!0,Ut(this,"afterAnimate")}drawPoints(ar=this.points){let ur,xr,Mr,Ar,Ir,Rr,wr,qr=this.chart,Hr=qr.styledMode,{colorAxis:kr,options:$r}=this,yr=$r.marker,Or=this[this.specialGroup||"markerGroup"],Dr=this.xAxis,Fr=rr(yr.enabled,!Dr||!!Dr.isRadial||null,this.closestPointRangePx>=yr.enabledThreshold*yr.radius);if(yr.enabled!==!1||this._hasPointMarkers)for(ur=0;ur<ar.length;ur++)if(Ar=(Mr=(xr=ar[ur]).graphic)?"animate":"attr",Ir=xr.marker||{},Rr=!!xr.marker,(Fr&&Ir.enabled===void 0||Ir.enabled)&&!xr.isNull&&xr.visible!==!1){let Yr=rr(Ir.symbol,this.symbol,"rect");wr=this.markerAttribs(xr,xr.selected&&"select"),this.enabledDataSorting&&(xr.startXPos=Dr.reversed?-(wr.width||0):Dr.width);let Gr=xr.isInside!==!1;if(!Mr&&Gr&&((wr.width||0)>0||xr.hasImage)&&(xr.graphic=Mr=qr.renderer.symbol(Yr,wr.x,wr.y,wr.width,wr.height,Rr?Ir:yr).add(Or),this.enabledDataSorting&&qr.hasRendered&&(Mr.attr({x:xr.startXPos}),Ar="animate")),Mr&&Ar==="animate"&&Mr[Gr?"show":"hide"](Gr).animate(wr),Mr){let Jr=this.pointAttribs(xr,Hr||!xr.selected?void 0:"select");Hr?kr&&Mr.css({fill:Jr.fill}):Mr[Ar](Jr)}Mr&&Mr.addClass(xr.getClassName(),!0)}else Mr&&(xr.graphic=Mr.destroy())}markerAttribs(ar,ur){let xr=this.options,Mr=xr.marker,Ar=ar.marker||{},Ir=Ar.symbol||Mr.symbol,Rr={},wr,qr,Hr=rr(Ar.radius,Mr&&Mr.radius);ur&&(wr=Mr.states[ur],Hr=rr((qr=Ar.states&&Ar.states[ur])&&qr.radius,wr&&wr.radius,Hr&&Hr+(wr&&wr.radiusPlus||0))),ar.hasImage=Ir&&Ir.indexOf("url")===0,ar.hasImage&&(Hr=0);let kr=ar.pos();return Xt(Hr)&&kr&&(xr.crisp&&(kr[0]=Kt(kr[0],ar.hasImage?0:Ir==="rect"?(Mr==null?void 0:Mr.lineWidth)||0:1)),Rr.x=kr[0]-Hr,Rr.y=kr[1]-Hr),Hr&&(Rr.width=Rr.height=2*Hr),Rr}pointAttribs(ar,ur){let xr=this.options.marker,Mr=ar&&ar.options,Ar=Mr&&Mr.marker||{},Ir=Mr&&Mr.color,Rr=ar&&ar.color,wr=ar&&ar.zone&&ar.zone.color,qr,Hr,kr=this.color,$r,yr,Or=rr(Ar.lineWidth,xr.lineWidth),Dr=1;return kr=Ir||wr||Rr||kr,$r=Ar.fillColor||xr.fillColor||kr,yr=Ar.lineColor||xr.lineColor||kr,ur=ur||"normal",qr=xr.states[ur]||{},Or=rr((Hr=Ar.states&&Ar.states[ur]||{}).lineWidth,qr.lineWidth,Or+rr(Hr.lineWidthPlus,qr.lineWidthPlus,0)),$r=Hr.fillColor||qr.fillColor||$r,{stroke:yr=Hr.lineColor||qr.lineColor||yr,"stroke-width":Or,fill:$r,opacity:Dr=rr(Hr.opacity,qr.opacity,Dr)}}destroy(ar){let ur,xr,Mr,Ar=this,Ir=Ar.chart,Rr=/AppleWebKit\/533/.test(It.navigator.userAgent),wr=Ar.data||[];for(Ut(Ar,"destroy",{keepEventsForUpdate:ar}),this.removeEvents(ar),(Ar.axisTypes||[]).forEach(function(qr){(Mr=Ar[qr])&&Mr.series&&(Ft(Mr.series,Ar),Mr.isDirty=Mr.forceRedraw=!0)}),Ar.legendItem&&Ar.chart.legend.destroyItem(Ar),ur=wr.length;ur--;)(xr=wr[ur])&&xr.destroy&&xr.destroy();for(let qr of Ar.zones)Qt(qr,void 0,!0);Ot.clearTimeout(Ar.animationTimeout),or(Ar,function(qr,Hr){qr instanceof vt&&!qr.survive&&qr[Rr&&Hr==="group"?"hide":"destroy"]()}),Ir.hoverSeries===Ar&&(Ir.hoverSeries=void 0),Ft(Ir.series,Ar),Ir.orderItems("series"),or(Ar,function(qr,Hr){ar&&Hr==="hcEvents"||delete Ar[Hr]})}applyZones(){let{area:ar,chart:ur,graph:xr,zones:Mr,points:Ar,xAxis:Ir,yAxis:Rr,zoneAxis:wr}=this,{inverted:qr,renderer:Hr}=ur,kr=this[`${wr}Axis`],{isXAxis:$r,len:yr=0}=kr||{},Or=((xr==null?void 0:xr.strokeWidth())||0)/2+1,Dr=(Fr,Yr=0,Gr=0)=>{qr&&(Gr=yr-Gr);let{translated:Jr=0,lineClip:jr}=Fr,Zr=Gr-Jr;jr==null||jr.push(["L",Yr,Math.abs(Zr)<Or?Gr-Or*(Zr<=0?-1:1):Jr])};if(Mr.length&&(xr||ar)&&kr&&Xt(kr.min)){let Fr=kr.getExtremes().max,Yr=jr=>{jr.forEach((Zr,Xr)=>{(Zr[0]==="M"||Zr[0]==="L")&&(jr[Xr]=[Zr[0],$r?yr-Zr[1]:Zr[1],$r?Zr[2]:yr-Zr[2]])})};if(Mr.forEach(jr=>{jr.lineClip=[],jr.translated=Nt(kr.toPixels(rr(jr.value,Fr),!0)||0,0,yr)}),xr&&!this.showLine&&xr.hide(),ar&&ar.hide(),wr==="y"&&Ar.length<Ir.len)for(let jr of Ar){let{plotX:Zr,plotY:Xr,zone:cn}=jr,Qr=cn&&Mr[Mr.indexOf(cn)-1];cn&&Dr(cn,Zr,Xr),Qr&&Dr(Qr,Zr,Xr)}let Gr=[],Jr=kr.toPixels(kr.getExtremes().min,!0);Mr.forEach(jr=>{var xn,Vr;let Zr=jr.lineClip||[],Xr=Math.round(jr.translated||0);Ir.reversed&&Zr.reverse();let{clip:cn,simpleClip:Qr}=jr,rn=0,_r=0,ln=Ir.len,vn=Rr.len;$r?(rn=Xr,ln=Jr):(_r=Xr,vn=Jr);let Cr=[["M",rn,_r],["L",ln,_r],["L",ln,vn],["L",rn,vn],["Z"]],gn=[Cr[0],...Zr,Cr[1],Cr[2],...Gr,Cr[3],Cr[4]];Gr=Zr.reverse(),Jr=Xr,qr&&(Yr(gn),ar&&Yr(Cr)),cn?(cn.animate({d:gn}),Qr==null||Qr.animate({d:Cr})):(cn=jr.clip=Hr.path(gn),ar&&(Qr=jr.simpleClip=Hr.path(Cr))),xr&&((xn=jr.graph)==null||xn.clip(cn)),ar&&((Vr=jr.area)==null||Vr.clip(Qr))})}else this.visible&&(xr&&xr.show(),ar&&ar.show())}plotGroup(ar,ur,xr,Mr,Ar){let Ir=this[ar],Rr=!Ir,wr={visibility:xr,zIndex:Mr||.1};return Jt(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(wr.opacity=this.opacity),Ir||(this[ar]=Ir=this.chart.renderer.g().add(Ar)),Ir.addClass("highcharts-"+ur+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(Jt(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(Ir.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),Ir.attr(wr)[Rr?"attr":"animate"](this.getPlotBox(ur)),Ir}getPlotBox(ar){let ur=this.xAxis,xr=this.yAxis,Mr=this.chart,Ar=Mr.inverted&&!Mr.polar&&ur&&this.invertible&&ar==="series";return Mr.inverted&&(ur=xr,xr=this.xAxis),{translateX:ur?ur.left:Mr.plotLeft,translateY:xr?xr.top:Mr.plotTop,rotation:Ar?90:0,rotationOriginX:Ar?(ur.len-xr.len)/2:0,rotationOriginY:Ar?(ur.len+xr.len)/2:0,scaleX:Ar?-1:1,scaleY:1}}removeEvents(ar){let{eventsToUnbind:ur}=this;ar||cr(this),ur.length&&(ur.forEach(xr=>{xr()}),ur.length=0)}render(){var Hr,kr,$r,yr,Or;let ar=this,{chart:ur,options:xr,hasRendered:Mr}=ar,Ar=At(xr.animation),Ir=ar.visible?"inherit":"hidden",Rr=xr.zIndex,wr=ur.seriesGroup,qr=ar.finishedAnimating?0:Ar.duration;Ut(this,"render"),ar.plotGroup("group","series",Ir,Rr,wr),ar.markerGroup=ar.plotGroup("markerGroup","markers",Ir,Rr,wr),xr.clip!==!1&&ar.setClip(),qr&&((Hr=ar.animate)==null||Hr.call(ar,!0)),ar.drawGraph&&(ar.drawGraph(),ar.applyZones()),ar.visible&&ar.drawPoints(),(kr=ar.drawDataLabels)==null||kr.call(ar),($r=ar.redrawPoints)==null||$r.call(ar),xr.enableMouseTracking&&((yr=ar.drawTracker)==null||yr.call(ar)),qr&&((Or=ar.animate)==null||Or.call(ar)),Mr||(qr&&Ar.defer&&(qr+=Ar.defer),ar.animationTimeout=dr(()=>{ar.afterAnimate()},qr||0)),ar.isDirty=!1,ar.hasRendered=!0,Ut(ar,"afterRender")}redraw(){let ar=this.isDirty||this.isDirtyData;this.translate(),this.render(),ar&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(ar,ur){let{xAxis:xr,yAxis:Mr}=this,Ar=this.chart.inverted;return this.searchKDTree({clientX:Ar?xr.len-ar.chartY+xr.pos:ar.chartX-xr.pos,plotY:Ar?Mr.len-ar.chartX+Mr.pos:ar.chartY-Mr.pos},ur,ar)}buildKDTree(ar){this.buildingKdTree=!0;let ur=this,xr=ur.options.findNearestPointBy.indexOf("y")>-1?2:1;delete ur.kdTree,dr(function(){ur.kdTree=function Mr(Ar,Ir,Rr){let wr,qr,Hr=Ar==null?void 0:Ar.length;if(Hr)return wr=ur.kdAxisArray[Ir%Rr],Ar.sort((kr,$r)=>(kr[wr]||0)-($r[wr]||0)),{point:Ar[qr=Math.floor(Hr/2)],left:Mr(Ar.slice(0,qr),Ir+1,Rr),right:Mr(Ar.slice(qr+1),Ir+1,Rr)}}(ur.getValidPoints(void 0,!ur.directTouch),xr,xr),ur.buildingKdTree=!1},ur.options.kdNow||(ar==null?void 0:ar.type)==="touchstart"?0:1)}searchKDTree(ar,ur,xr){let Mr=this,[Ar,Ir]=this.kdAxisArray,Rr=ur?"distX":"dist",wr=(Mr.options.findNearestPointBy||"").indexOf("y")>-1?2:1,qr=!!Mr.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(xr),this.kdTree)return function Hr(kr,$r,yr,Or){var cn;let Dr=$r.point,Fr=Mr.kdAxisArray[yr%Or],Yr,Gr,Jr=Dr;(function(Qr,rn){var fn;let _r=Qr[Ar],ln=rn[Ar],vn=Jt(_r)&&Jt(ln)?_r-ln:null,Cr=Qr[Ir],gn=rn[Ir],xn=Jt(Cr)&&Jt(gn)?Cr-gn:0,Vr=qr&&((fn=rn.marker)==null?void 0:fn.radius)||0;rn.dist=Math.sqrt((vn&&vn*vn||0)+xn*xn)-Vr,rn.distX=Jt(vn)?Math.abs(vn)-Vr:Number.MAX_VALUE})(kr,Dr);let jr=(kr[Fr]||0)-(Dr[Fr]||0)+(qr&&((cn=Dr.marker)==null?void 0:cn.radius)||0),Zr=jr<0?"left":"right",Xr=jr<0?"right":"left";return $r[Zr]&&(Jr=(Yr=Hr(kr,$r[Zr],yr+1,Or))[Rr]<Jr[Rr]?Yr:Dr),$r[Xr]&&Math.sqrt(jr*jr)<Jr[Rr]&&(Jr=(Gr=Hr(kr,$r[Xr],yr+1,Or))[Rr]<Jr[Rr]?Gr:Jr),Jr}(ar,this.kdTree,wr,wr)}pointPlacementToXValue(){let{options:ar,xAxis:ur}=this,xr=ar.pointPlacement;return xr==="between"&&(xr=ur.reversed?-.5:.5),Xt(xr)?xr*(ar.pointRange||ur.pointRange):0}isPointInside(ar){let{chart:ur,xAxis:xr,yAxis:Mr}=this,{plotX:Ar=-1,plotY:Ir=-1}=ar;return Ir>=0&&Ir<=(Mr?Mr.len:ur.plotHeight)&&Ar>=0&&Ar<=(xr?xr.len:ur.plotWidth)}drawTracker(){var $r;let ar=this,ur=ar.options,xr=ur.trackByArea,Mr=[].concat((xr?ar.areaPath:ar.graphPath)||[]),Ar=ar.chart,Ir=Ar.pointer,Rr=Ar.renderer,wr=(($r=Ar.options.tooltip)==null?void 0:$r.snap)||0,qr=()=>{ur.enableMouseTracking&&Ar.hoverSeries!==ar&&ar.onMouseOver()},Hr="rgba(192,192,192,"+(Ct?1e-4:.002)+")",kr=ar.tracker;kr?kr.attr({d:Mr}):ar.graph&&(ar.tracker=kr=Rr.path(Mr).attr({visibility:ar.visible?"inherit":"hidden",zIndex:2}).addClass(xr?"highcharts-tracker-area":"highcharts-tracker-line").add(ar.group),Ar.styledMode||kr.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:Hr,fill:xr?Hr:"none","stroke-width":ar.graph.strokeWidth()+(xr?0:2*wr)}),[ar.tracker,ar.markerGroup,ar.dataLabelsGroup].forEach(yr=>{yr&&(yr.addClass("highcharts-tracker").on("mouseover",qr).on("mouseout",Or=>{Ir==null||Ir.onTrackerMouseOut(Or)}),ur.cursor&&!Ar.styledMode&&yr.css({cursor:ur.cursor}),yr.on("touchstart",qr))})),Ut(this,"afterDrawTracker")}addPoint(ar,ur,xr,Mr,Ar){let Ir,Rr,wr=this.options,qr=this.data,Hr=this.chart,kr=this.xAxis,$r=kr&&kr.hasNames&&kr.names,yr=wr.data,Or=this.xData;ur=rr(ur,!0);let Dr={series:this};this.pointClass.prototype.applyOptions.apply(Dr,[ar]);let Fr=Dr.x;if(Rr=Or.length,this.requireSorting&&Fr<Or[Rr-1])for(Ir=!0;Rr&&Or[Rr-1]>Fr;)Rr--;this.updateParallelArrays(Dr,"splice",[Rr,0,0]),this.updateParallelArrays(Dr,Rr),$r&&Dr.name&&($r[Fr]=Dr.name),yr.splice(Rr,0,ar),(Ir||this.processedData)&&(this.data.splice(Rr,0,null),this.processData()),wr.legendType==="point"&&this.generatePoints(),xr&&(qr[0]&&qr[0].remove?qr[0].remove(!1):(qr.shift(),this.updateParallelArrays(Dr,"shift"),yr.shift())),Ar!==!1&&Ut(this,"addPoint",{point:Dr}),this.isDirty=!0,this.isDirtyData=!0,ur&&Hr.redraw(Mr)}removePoint(ar,ur,xr){let Mr=this,Ar=Mr.data,Ir=Ar[ar],Rr=Mr.points,wr=Mr.chart,qr=function(){Rr&&Rr.length===Ar.length&&Rr.splice(ar,1),Ar.splice(ar,1),Mr.options.data.splice(ar,1),Mr.updateParallelArrays(Ir||{series:Mr},"splice",[ar,1]),Ir&&Ir.destroy(),Mr.isDirty=!0,Mr.isDirtyData=!0,ur&&wr.redraw()};Rt(xr,wr),ur=rr(ur,!0),Ir?Ir.firePointEvent("remove",null,qr):qr()}remove(ar,ur,xr,Mr){let Ar=this,Ir=Ar.chart;function Rr(){Ar.destroy(Mr),Ir.isDirtyLegend=Ir.isDirtyBox=!0,Ir.linkSeries(Mr),rr(ar,!0)&&Ir.redraw(ur)}xr!==!1?Ut(Ar,"remove",null,Rr):Rr()}update(ar,ur){var Yr,Gr,Jr;Ut(this,"update",{options:ar=Bt(ar,this.userOptions)});let xr=this,Mr=xr.chart,Ar=xr.userOptions,Ir=xr.initialType||xr.type,Rr=Mr.options.plotOptions,wr=Dt[Ir].prototype,qr=xr.finishedAnimating&&{animation:!1},Hr={},kr,$r,yr=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],Or=ar.type||Ar.type||Mr.options.chart.type,Dr=!(this.hasDerivedData||Or&&Or!==this.type||ar.pointStart!==void 0||ar.pointInterval!==void 0||ar.relativeXValue!==void 0||ar.joinBy||ar.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(jr=>xr.hasOptionChanged(jr)));Or=Or||Ir,Dr&&(yr.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),ar.visible!==!1&&yr.push("area","graph"),xr.parallelArrays.forEach(function(jr){yr.push(jr+"Data")}),ar.data&&(ar.dataSorting&&jt(xr.options.dataSorting,ar.dataSorting),this.setData(ar.data,!1))),ar=nr(Ar,{index:Ar.index===void 0?xr.index:Ar.index,pointStart:((Yr=Rr==null?void 0:Rr.series)==null?void 0:Yr.pointStart)??Ar.pointStart??((Gr=xr.xData)==null?void 0:Gr[0])},!Dr&&{data:xr.options.data},ar,qr),Dr&&ar.data&&(ar.data=xr.options.data),(yr=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(yr)).forEach(function(jr){yr[jr]=xr[jr],delete xr[jr]});let Fr=!1;if(Dt[Or]){if(Fr=Or!==xr.type,xr.remove(!1,!1,!1,!0),Fr)if(Mr.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(xr,Dt[Or].prototype);else{let jr=Object.hasOwnProperty.call(xr,"hcEvents")&&xr.hcEvents;for($r in wr)xr[$r]=void 0;jt(xr,Dt[Or].prototype),jr?xr.hcEvents=jr:delete xr.hcEvents}}else $t(17,!0,Mr,{missingModuleFor:Or});if(yr.forEach(function(jr){xr[jr]=yr[jr]}),xr.init(Mr,ar),Dr&&this.points)for(let jr of((kr=xr.options).visible===!1?(Hr.graphic=1,Hr.dataLabel=1):(this.hasMarkerChanged(kr,Ar)&&(Hr.graphic=1),(Jr=xr.hasDataLabels)!=null&&Jr.call(xr)||(Hr.dataLabel=1)),this.points))jr&&jr.series&&(jr.resolveColor(),Object.keys(Hr).length&&jr.destroyElements(Hr),kr.showInLegend===!1&&jr.legendItem&&Mr.legend.destroyItem(jr));xr.initialType=Ir,Mr.linkSeries(),Mr.setSortedData(),Fr&&xr.linkedSeries.length&&(xr.isDirtyData=!0),Ut(this,"afterUpdate"),rr(ur,!0)&&Mr.redraw(!!Dr&&void 0)}setName(ar){this.name=this.options.name=this.userOptions.name=ar,this.chart.isDirtyLegend=!0}hasOptionChanged(ar){var Rr,wr;let ur=this.chart,xr=this.options[ar],Mr=ur.options.plotOptions,Ar=this.userOptions[ar],Ir=rr((Rr=Mr==null?void 0:Mr[this.type])==null?void 0:Rr[ar],(wr=Mr==null?void 0:Mr.series)==null?void 0:wr[ar]);return Ar&&!Jt(Ir)?xr!==Ar:xr!==rr(Ir,xr)}onMouseOver(){let ar=this.chart,ur=ar.hoverSeries,xr=ar.pointer;xr==null||xr.setHoverChartIndex(),ur&&ur!==this&&ur.onMouseOut(),this.options.events.mouseOver&&Ut(this,"mouseOver"),this.setState("hover"),ar.hoverSeries=this}onMouseOut(){let ar=this.options,ur=this.chart,xr=ur.tooltip,Mr=ur.hoverPoint;ur.hoverSeries=null,Mr&&Mr.onMouseOut(),this&&ar.events.mouseOut&&Ut(this,"mouseOut"),xr&&!this.stickyTracking&&(!xr.shared||this.noSharedTooltip)&&xr.hide(),ur.series.forEach(function(Ar){Ar.setState("",!0)})}setState(ar,ur){let xr=this,Mr=xr.options,Ar=xr.graph,Ir=Mr.inactiveOtherPoints,Rr=Mr.states,wr=rr(Rr[ar||"normal"]&&Rr[ar||"normal"].animation,xr.chart.options.chart.animation),qr=Mr.lineWidth,Hr=Mr.opacity;if(ar=ar||"",xr.state!==ar&&([xr.group,xr.markerGroup,xr.dataLabelsGroup].forEach(function(kr){kr&&(xr.state&&kr.removeClass("highcharts-series-"+xr.state),ar&&kr.addClass("highcharts-series-"+ar))}),xr.state=ar,!xr.chart.styledMode)){if(Rr[ar]&&Rr[ar].enabled===!1)return;if(ar&&(qr=Rr[ar].lineWidth||qr+(Rr[ar].lineWidthPlus||0),Hr=rr(Rr[ar].opacity,Hr)),Ar&&!Ar.dashstyle&&Xt(qr))for(let kr of[Ar,...this.zones.map($r=>$r.graph)])kr==null||kr.animate({"stroke-width":qr},wr);Ir||[xr.group,xr.markerGroup,xr.dataLabelsGroup,xr.labelBySeries].forEach(function(kr){kr&&kr.animate({opacity:Hr},wr)})}ur&&Ir&&xr.points&&xr.setAllPointsToState(ar||void 0)}setAllPointsToState(ar){this.points.forEach(function(ur){ur.setState&&ur.setState(ar)})}setVisible(ar,ur){var wr;let xr=this,Mr=xr.chart,Ar=Mr.options.chart.ignoreHiddenSeries,Ir=xr.visible;xr.visible=ar=xr.options.visible=xr.userOptions.visible=ar===void 0?!Ir:ar;let Rr=ar?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(qr=>{var Hr;(Hr=xr[qr])==null||Hr[Rr]()}),(Mr.hoverSeries===xr||((wr=Mr.hoverPoint)==null?void 0:wr.series)===xr)&&xr.onMouseOut(),xr.legendItem&&Mr.legend.colorizeItem(xr,ar),xr.isDirty=!0,xr.options.stacking&&Mr.series.forEach(qr=>{qr.options.stacking&&qr.visible&&(qr.isDirty=!0)}),xr.linkedSeries.forEach(qr=>{qr.setVisible(ar,!1)}),Ar&&(Mr.isDirtyBox=!0),Ut(xr,Rr),ur!==!1&&Mr.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(ar){this.selected=ar=this.options.selected=ar===void 0?!this.selected:ar,this.checkbox&&(this.checkbox.checked=ar),Ut(this,ar?"select":"unselect")}shouldShowTooltip(ar,ur,xr={}){return xr.series=this,xr.visiblePlotOnly=!0,this.chart.isInsidePlot(ar,ur,xr)}drawLegendSymbol(ar,ur){var xr;(xr=ht[this.options.legendSymbol||"rectangle"])==null||xr.call(this,ar,ur)}}return gr.defaultOptions=xt,gr.types=Mt.seriesTypes,gr.registerType=Mt.registerSeriesType,jt(gr.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:mt,requireSorting:!0,sorted:!0}),Mt.series=gr,gr}),nt(rt,"Core/Legend/Legend.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Foundation.js"],rt["Core/Globals.js"],rt["Core/Series/Series.js"],rt["Core/Series/Point.js"],rt["Core/Renderer/RendererUtilities.js"],rt["Core/Templating.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt){var vt;let{animObject:Ot,setAnimation:At}=lt,{registerEventOptions:Rt}=ut,{composed:zt,marginNames:Tt}=dt,{distribute:Ct}=mt,{format:It}=xt,{addEvent:Dt,createElement:kt,css:qt,defined:Nt,discardElement:Yt,find:Kt,fireEvent:Jt,isNumber:Qt,merge:Bt,pick:Ft,pushUnique:$t,relativeLength:jt,stableSort:Wt,syncTimeout:Ut}=Mt;class Vt{constructor(Gt,Zt){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=Gt,this.setOptions(Zt),Zt.enabled&&(this.render(),Rt(this,Zt),Dt(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),Dt(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(Gt){let Zt=Ft(Gt.padding,8);this.options=Gt,this.chart.styledMode||(this.itemStyle=Gt.itemStyle,this.itemHiddenStyle=Bt(this.itemStyle,Gt.itemHiddenStyle)),this.itemMarginTop=Gt.itemMarginTop,this.itemMarginBottom=Gt.itemMarginBottom,this.padding=Zt,this.initialItemY=Zt-5,this.symbolWidth=Ft(Gt.symbolWidth,16),this.pages=[],this.proximate=Gt.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(Gt,Zt){let Xt=this.chart;this.setOptions(Bt(!0,this.options,Gt)),"events"in this.options&&Rt(this,this.options),this.destroy(),Xt.isDirtyLegend=Xt.isDirtyBox=!0,Ft(Zt,!0)&&Xt.redraw(),Jt(this,"afterUpdate",{redraw:Zt})}colorizeItem(Gt,Zt){let{area:Xt,group:er,label:nr,line:or,symbol:rr}=Gt.legendItem||{};if(er==null||er[Zt?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:cr={}}=this,ir=cr.color,{fillColor:dr,fillOpacity:gr,lineColor:br,marker:ar}=Gt.options,ur=xr=>(!Zt&&(xr.fill&&(xr.fill=ir),xr.stroke&&(xr.stroke=ir)),xr);nr==null||nr.css(Bt(Zt?this.itemStyle:cr)),or==null||or.attr(ur({stroke:br||Gt.color})),rr&&rr.attr(ur(ar&&rr.isMarker?Gt.pointAttribs():{fill:Gt.color})),Xt==null||Xt.attr(ur({fill:dr||Gt.color,"fill-opacity":dr?1:gr??.75}))}Jt(this,"afterColorizeItem",{item:Gt,visible:Zt})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(Gt){let{group:Zt,x:Xt=0,y:er=0}=Gt.legendItem||{},nr=this.options,or=nr.symbolPadding,rr=!nr.rtl,cr=Gt.checkbox;if(Zt&&Zt.element){let ir={translateX:rr?Xt:this.legendWidth-Xt-2*or-4,translateY:er};Zt[Nt(Zt.translateY)?"animate":"attr"](ir,void 0,()=>{Jt(this,"afterPositionItem",{item:Gt})})}cr&&(cr.x=Xt,cr.y=er)}destroyItem(Gt){let Zt=Gt.checkbox,Xt=Gt.legendItem||{};for(let er of["group","label","line","symbol"])Xt[er]&&(Xt[er]=Xt[er].destroy());Zt&&Yt(Zt),Gt.legendItem=void 0}destroy(){for(let Gt of this.getAllItems())this.destroyItem(Gt);for(let Gt of["clipRect","up","down","pager","nav","box","title","group"])this[Gt]&&(this[Gt]=this[Gt].destroy());this.display=null}positionCheckboxes(){let Gt,Zt=this.group&&this.group.alignAttr,Xt=this.clipHeight||this.legendHeight,er=this.titleHeight;Zt&&(Gt=Zt.translateY,this.allItems.forEach(function(nr){let or,rr=nr.checkbox;rr&&(or=Gt+er+rr.y+(this.scrollOffset||0)+3,qt(rr,{left:Zt.translateX+nr.checkboxOffset+rr.x-20+"px",top:or+"px",display:this.proximate||or>Gt-6&&or<Gt+Xt-6?"":"none"}))},this))}renderTitle(){let Gt=this.options,Zt=this.padding,Xt=Gt.title,er,nr=0;Xt.text&&(this.title||(this.title=this.chart.renderer.label(Xt.text,Zt-3,Zt-4,void 0,void 0,void 0,Gt.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(Xt.style),this.title.add(this.group)),Xt.width||this.title.css({width:this.maxLegendWidth+"px"}),nr=(er=this.title.getBBox()).height,this.offsetWidth=er.width,this.contentGroup.attr({translateY:nr})),this.titleHeight=nr}setText(Gt){let Zt=this.options;Gt.legendItem.label.attr({text:Zt.labelFormat?It(Zt.labelFormat,Gt,this.chart):Zt.labelFormatter.call(Gt)})}renderItem(Gt){let Zt=Gt.legendItem=Gt.legendItem||{},Xt=this.chart,er=Xt.renderer,nr=this.options,or=nr.layout==="horizontal",rr=this.symbolWidth,cr=nr.symbolPadding||0,ir=this.itemStyle,dr=this.itemHiddenStyle,gr=or?Ft(nr.itemDistance,20):0,br=!nr.rtl,ar=!Gt.series,ur=!ar&&Gt.series.drawLegendSymbol?Gt.series:Gt,xr=ur.options,Mr=!!this.createCheckboxForItem&&xr&&xr.showCheckbox,Ar=nr.useHTML,Ir=Gt.options.className,Rr=Zt.label,wr=rr+cr+gr+(Mr?20:0);!Rr&&(Zt.group=er.g("legend-item").addClass("highcharts-"+ur.type+"-series highcharts-color-"+Gt.colorIndex+(Ir?" "+Ir:"")+(ar?" highcharts-series-"+Gt.index:"")).attr({zIndex:1}).add(this.scrollGroup),Zt.label=Rr=er.text("",br?rr+cr:-cr,this.baseline||0,Ar),Xt.styledMode||Rr.css(Bt(Gt.visible?ir:dr)),Rr.attr({align:br?"left":"right",zIndex:2}).add(Zt.group),!this.baseline&&(this.fontMetrics=er.fontMetrics(Rr),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,Rr.attr("y",this.baseline),this.symbolHeight=Ft(nr.symbolHeight,this.fontMetrics.f),nr.squareSymbol&&(this.symbolWidth=Ft(nr.symbolWidth,Math.max(this.symbolHeight,16)),wr=this.symbolWidth+cr+gr+(Mr?20:0),br&&Rr.attr("x",this.symbolWidth+cr))),ur.drawLegendSymbol(this,Gt),this.setItemEvents&&this.setItemEvents(Gt,Rr,Ar)),Mr&&!Gt.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(Gt),this.colorizeItem(Gt,Gt.visible),(Xt.styledMode||!ir.width)&&Rr.css({width:(nr.itemWidth||this.widthOption||Xt.spacingBox.width)-wr+"px"}),this.setText(Gt);let qr=Rr.getBBox(),Hr=this.fontMetrics&&this.fontMetrics.h||0;Gt.itemWidth=Gt.checkboxOffset=nr.itemWidth||Zt.labelWidth||qr.width+wr,this.maxItemWidth=Math.max(this.maxItemWidth,Gt.itemWidth),this.totalItemWidth+=Gt.itemWidth,this.itemHeight=Gt.itemHeight=Math.round(Zt.labelHeight||(qr.height>1.5*Hr?qr.height:Hr))}layoutItem(Gt){let Zt=this.options,Xt=this.padding,er=Zt.layout==="horizontal",nr=Gt.itemHeight,or=this.itemMarginBottom,rr=this.itemMarginTop,cr=er?Ft(Zt.itemDistance,20):0,ir=this.maxLegendWidth,dr=Zt.alignColumns&&this.totalItemWidth>ir?this.maxItemWidth:Gt.itemWidth,gr=Gt.legendItem||{};er&&this.itemX-Xt+dr>ir&&(this.itemX=Xt,this.lastLineHeight&&(this.itemY+=rr+this.lastLineHeight+or),this.lastLineHeight=0),this.lastItemY=rr+this.itemY+or,this.lastLineHeight=Math.max(nr,this.lastLineHeight),gr.x=this.itemX,gr.y=this.itemY,er?this.itemX+=dr:(this.itemY+=rr+nr+or,this.lastLineHeight=nr),this.offsetWidth=this.widthOption||Math.max((er?this.itemX-Xt-(Gt.checkbox?0:cr):dr)+Xt,this.offsetWidth)}getAllItems(){let Gt=[];return this.chart.series.forEach(function(Zt){let Xt=Zt&&Zt.options;Zt&&Ft(Xt.showInLegend,!Nt(Xt.linkedTo)&&void 0,!0)&&(Gt=Gt.concat((Zt.legendItem||{}).labels||(Xt.legendType==="point"?Zt.data:Zt)))}),Jt(this,"afterGetAllItems",{allItems:Gt}),Gt}getAlignment(){let Gt=this.options;return this.proximate?Gt.align.charAt(0)+"tv":Gt.floating?"":Gt.align.charAt(0)+Gt.verticalAlign.charAt(0)+Gt.layout.charAt(0)}adjustMargins(Gt,Zt){let Xt=this.chart,er=this.options,nr=this.getAlignment();nr&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(or,rr){or.test(nr)&&!Nt(Gt[rr])&&(Xt[Tt[rr]]=Math.max(Xt[Tt[rr]],Xt.legend[(rr+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][rr]*er[rr%2?"x":"y"]+Ft(er.margin,12)+Zt[rr]+(Xt.titleOffset[rr]||0)))})}proximatePositions(){let Gt,Zt=this.chart,Xt=[],er=this.options.align==="left";for(let nr of(this.allItems.forEach(function(or){let rr,cr,ir=er,dr,gr;or.yAxis&&(or.xAxis.options.reversed&&(ir=!ir),or.points&&(rr=Kt(ir?or.points:or.points.slice(0).reverse(),function(br){return Qt(br.plotY)})),cr=this.itemMarginTop+or.legendItem.label.getBBox().height+this.itemMarginBottom,gr=or.yAxis.top-Zt.plotTop,dr=or.visible?(rr?rr.plotY:or.yAxis.height)+(gr-.3*cr):gr+or.yAxis.height,Xt.push({target:dr,size:cr,item:or}))},this),Ct(Xt,Zt.plotHeight)))Gt=nr.item.legendItem||{},Qt(nr.pos)&&(Gt.y=Zt.plotTop-Zt.spacing[0]+nr.pos)}render(){let Gt=this.chart,Zt=Gt.renderer,Xt=this.options,er=this.padding,nr=this.getAllItems(),or,rr,cr,ir=this.group,dr,gr=this.box;this.itemX=er,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=jt(Xt.width,Gt.spacingBox.width-er),dr=Gt.spacingBox.width-2*er-Xt.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(dr/=2),this.maxLegendWidth=this.widthOption||dr,ir||(this.group=ir=Zt.g("legend").addClass(Xt.className||"").attr({zIndex:7}).add(),this.contentGroup=Zt.g().attr({zIndex:1}).add(ir),this.scrollGroup=Zt.g().add(this.contentGroup)),this.renderTitle(),Wt(nr,(br,ar)=>(br.options&&br.options.legendIndex||0)-(ar.options&&ar.options.legendIndex||0)),Xt.reversed&&nr.reverse(),this.allItems=nr,this.display=or=!!nr.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,nr.forEach(this.renderItem,this),nr.forEach(this.layoutItem,this),rr=(this.widthOption||this.offsetWidth)+er,cr=this.lastItemY+this.lastLineHeight+this.titleHeight,cr=this.handleOverflow(cr)+er,gr||(this.box=gr=Zt.rect().addClass("highcharts-legend-box").attr({r:Xt.borderRadius}).add(ir)),Gt.styledMode||gr.attr({stroke:Xt.borderColor,"stroke-width":Xt.borderWidth||0,fill:Xt.backgroundColor||"none"}).shadow(Xt.shadow),rr>0&&cr>0&&gr[gr.placed?"animate":"attr"](gr.crisp.call({},{x:0,y:0,width:rr,height:cr},gr.strokeWidth())),ir[or?"show":"hide"](),Gt.styledMode&&ir.getStyle("display")==="none"&&(rr=cr=0),this.legendWidth=rr,this.legendHeight=cr,or&&this.align(),this.proximate||this.positionItems(),Jt(this,"afterRender")}align(Gt=this.chart.spacingBox){let Zt=this.chart,Xt=this.options,er=Gt.y;/(lth|ct|rth)/.test(this.getAlignment())&&Zt.titleOffset[0]>0?er+=Zt.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&Zt.titleOffset[2]>0&&(er-=Zt.titleOffset[2]),er!==Gt.y&&(Gt=Bt(Gt,{y:er})),Zt.hasRendered||(this.group.placed=!1),this.group.align(Bt(Xt,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":Xt.verticalAlign}),!0,Gt)}handleOverflow(Gt){let Zt=this,Xt=this.chart,er=Xt.renderer,nr=this.options,or=nr.y,rr=nr.verticalAlign==="top",cr=this.padding,ir=nr.maxHeight,dr=nr.navigation,gr=Ft(dr.animation,!0),br=dr.arrowSize||12,ar=this.pages,ur=this.allItems,xr=function(kr){typeof kr=="number"?Hr.attr({height:kr}):Hr&&(Zt.clipRect=Hr.destroy(),Zt.contentGroup.clip()),Zt.contentGroup.div&&(Zt.contentGroup.div.style.clip=kr?"rect("+cr+"px,9999px,"+(cr+kr)+"px,0)":"auto")},Mr=function(kr){return Zt[kr]=er.circle(0,0,1.3*br).translate(br/2,br/2).add(qr),Xt.styledMode||Zt[kr].attr("fill","rgba(0,0,0,0.0001)"),Zt[kr]},Ar,Ir,Rr,wr=Xt.spacingBox.height+(rr?-or:or)-cr,qr=this.nav,Hr=this.clipRect;return nr.layout!=="horizontal"||nr.verticalAlign==="middle"||nr.floating||(wr/=2),ir&&(wr=Math.min(wr,ir)),ar.length=0,Gt&&wr>0&&Gt>wr&&dr.enabled!==!1?(this.clipHeight=Ar=Math.max(wr-20-this.titleHeight-cr,0),this.currentPage=Ft(this.currentPage,1),this.fullHeight=Gt,ur.forEach((kr,$r)=>{let yr=(Rr=kr.legendItem||{}).y||0,Or=Math.round(Rr.label.getBBox().height),Dr=ar.length;(!Dr||yr-ar[Dr-1]>Ar&&(Ir||yr)!==ar[Dr-1])&&(ar.push(Ir||yr),Dr++),Rr.pageIx=Dr-1,Ir&&((ur[$r-1].legendItem||{}).pageIx=Dr-1),$r===ur.length-1&&yr+Or-ar[Dr-1]>Ar&&yr>ar[Dr-1]&&(ar.push(yr),Rr.pageIx=Dr),yr!==Ir&&(Ir=yr)}),Hr||(Hr=Zt.clipRect=er.clipRect(0,cr-2,9999,0),Zt.contentGroup.clip(Hr)),xr(Ar),qr||(this.nav=qr=er.g().attr({zIndex:1}).add(this.group),this.up=er.symbol("triangle",0,0,br,br).add(qr),Mr("upTracker").on("click",function(){Zt.scroll(-1,gr)}),this.pager=er.text("",15,10).addClass("highcharts-legend-navigation"),!Xt.styledMode&&dr.style&&this.pager.css(dr.style),this.pager.add(qr),this.down=er.symbol("triangle-down",0,0,br,br).add(qr),Mr("downTracker").on("click",function(){Zt.scroll(1,gr)})),Zt.scroll(0),Gt=wr):qr&&(xr(),this.nav=qr.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),Gt}scroll(Gt,Zt){let Xt=this.chart,er=this.pages,nr=er.length,or=this.clipHeight,rr=this.options.navigation,cr=this.pager,ir=this.padding,dr=this.currentPage+Gt;dr>nr&&(dr=nr),dr>0&&(Zt!==void 0&&At(Zt,Xt),this.nav.attr({translateX:ir,translateY:or+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(gr){gr.attr({class:dr===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),cr.attr({text:dr+"/"+nr}),[this.down,this.downTracker].forEach(function(gr){gr.attr({x:18+this.pager.getBBox().width,class:dr===nr?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),Xt.styledMode||(this.up.attr({fill:dr===1?rr.inactiveColor:rr.activeColor}),this.upTracker.css({cursor:dr===1?"default":"pointer"}),this.down.attr({fill:dr===nr?rr.inactiveColor:rr.activeColor}),this.downTracker.css({cursor:dr===nr?"default":"pointer"})),this.scrollOffset=-er[dr-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=dr,this.positionCheckboxes(),Ut(()=>{Jt(this,"afterScroll",{currentPage:dr})},Ot(Ft(Zt,Xt.renderer.globalAnimation,!0)).duration))}setItemEvents(Gt,Zt,Xt){let er=this,nr=Gt.legendItem||{},or=er.chart.renderer.boxWrapper,rr=Gt instanceof ht,cr=Gt instanceof pt,ir="highcharts-legend-"+(rr?"point":"series")+"-active",dr=er.chart.styledMode,gr=Xt?[Zt,nr.symbol]:[nr.group],br=ar=>{er.allItems.forEach(ur=>{Gt!==ur&&[ur].concat(ur.linkedSeries||[]).forEach(xr=>{xr.setState(ar,!rr)})})};for(let ar of gr)ar&&ar.on("mouseover",function(){Gt.visible&&br("inactive"),Gt.setState("hover"),Gt.visible&&or.addClass(ir),dr||Zt.css(er.options.itemHoverStyle)}).on("mouseout",function(){er.chart.styledMode||Zt.css(Bt(Gt.visible?er.itemStyle:er.itemHiddenStyle)),br(""),or.removeClass(ir),Gt.setState()}).on("click",function(ur){let xr=function(){Gt.setVisible&&Gt.setVisible(),br(Gt.visible?"inactive":"")};or.removeClass(ir),Jt(er,"itemClick",{browserEvent:ur,legendItem:Gt},xr),rr?Gt.firePointEvent("legendItemClick",{browserEvent:ur}):cr&&Jt(Gt,"legendItemClick",{browserEvent:ur})})}createCheckboxForItem(Gt){Gt.checkbox=kt("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:Gt.selected,defaultChecked:Gt.selected},this.options.itemCheckboxStyle,this.chart.container),Dt(Gt.checkbox,"click",function(Zt){let Xt=Zt.target;Jt(Gt.series||Gt,"checkboxClick",{checked:Xt.checked,item:Gt},function(){Gt.select()})})}}return(vt=Vt||(Vt={})).compose=function(Ht){$t(zt,"Core.Legend")&&Dt(Ht,"beforeMargins",function(){this.legend=new vt(this,this.options.legend)})},Vt}),nt(rt,"Core/Chart/Chart.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Axis/Axis.js"],rt["Core/Defaults.js"],rt["Core/Templating.js"],rt["Core/Foundation.js"],rt["Core/Globals.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Renderer/SVG/SVGRenderer.js"],rt["Core/Time.js"],rt["Core/Utilities.js"],rt["Core/Renderer/HTML/AST.js"],rt["Core/Axis/Tick.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt){let{animate:Ct,animObject:It,setAnimation:Dt}=lt,{defaultOptions:kt,defaultTime:qt}=dt,{numberFormat:Nt}=pt,{registerEventOptions:Yt}=ht,{charts:Kt,doc:Jt,marginNames:Qt,svg:Bt,win:Ft}=mt,{seriesTypes:$t}=vt,{addEvent:jt,attr:Wt,createElement:Ut,css:Vt,defined:Ht,diffObjects:Gt,discardElement:Zt,erase:Xt,error:er,extend:nr,find:or,fireEvent:rr,getStyle:cr,isArray:ir,isNumber:dr,isObject:gr,isString:br,merge:ar,objectEach:ur,pick:xr,pInt:Mr,relativeLength:Ar,removeEvent:Ir,splat:Rr,syncTimeout:wr,uniqueKey:qr}=Rt;class Hr{static chart($r,yr,Or){return new Hr($r,yr,Or)}constructor($r,yr,Or){this.sharedClips={};let Dr=[...arguments];(br($r)||$r.nodeName)&&(this.renderTo=Dr.shift()),this.init(Dr[0],Dr[1])}setZoomOptions(){let $r=this.options.chart,yr=$r.zooming;this.zooming={...yr,type:xr($r.zoomType,yr.type),key:xr($r.zoomKey,yr.key),pinchType:xr($r.pinchType,yr.pinchType),singleTouch:xr($r.zoomBySingleTouch,yr.singleTouch,!1),resetButton:ar(yr.resetButton,$r.resetZoomButton)}}init($r,yr){rr(this,"init",{args:arguments},function(){let Or=ar(kt,$r),Dr=Or.chart;this.userOptions=nr({},$r),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=yr,this.isResizing=0,this.options=Or,this.axes=[],this.series=[],this.time=$r.time&&Object.keys($r.time).length?new At($r.time):mt.time,this.numberFormatter=Dr.numberFormatter||Nt,this.styledMode=Dr.styledMode,this.hasCartesianSeries=Dr.showAxes,this.index=Kt.length,Kt.push(this),mt.chartCount++,Yt(this,Dr),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),rr(this,"afterInit"),this.firstRender()})}initSeries($r){let yr=this.options.chart,Or=$r.type||yr.type,Dr=$t[Or];Dr||er(17,!0,this,{missingModuleFor:Or});let Fr=new Dr;return typeof Fr.init=="function"&&Fr.init(this,$r),Fr}setSortedData(){this.getSeriesOrderByLinks().forEach(function($r){$r.points||$r.data||!$r.enabledDataSorting||$r.setData($r.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function($r,yr){return $r.linkedSeries.length||yr.linkedSeries.length?yr.linkedSeries.length-$r.linkedSeries.length:0})}orderItems($r,yr=0){let Or=this[$r],Dr=this.options[$r]=Rr(this.options[$r]).slice(),Fr=this.userOptions[$r]=this.userOptions[$r]?Rr(this.userOptions[$r]).slice():[];if(this.hasRendered&&(Dr.splice(yr),Fr.splice(yr)),Or)for(let Yr=yr,Gr=Or.length;Yr<Gr;++Yr){let Jr=Or[Yr];Jr&&(Jr.index=Yr,Jr instanceof Mt&&(Jr.name=Jr.getName()),Jr.options.isInternal||(Dr[Yr]=Jr.options,Fr[Yr]=Jr.userOptions))}}isInsidePlot($r,yr,Or={}){var ln;let{inverted:Dr,plotBox:Fr,plotLeft:Yr,plotTop:Gr,scrollablePlotBox:Jr}=this,{scrollLeft:jr=0,scrollTop:Zr=0}=Or.visiblePlotOnly&&((ln=this.scrollablePlotArea)==null?void 0:ln.scrollingContainer)||{},Xr=Or.series,cn=Or.visiblePlotOnly&&Jr||Fr,Qr=Or.inverted?yr:$r,rn=Or.inverted?$r:yr,_r={x:Qr,y:rn,isInsidePlot:!0,options:Or};if(!Or.ignoreX){let vn=Xr&&(Dr&&!this.polar?Xr.yAxis:Xr.xAxis)||{pos:Yr,len:1/0},Cr=Or.paneCoordinates?vn.pos+Qr:Yr+Qr;Cr>=Math.max(jr+Yr,vn.pos)&&Cr<=Math.min(jr+Yr+cn.width,vn.pos+vn.len)||(_r.isInsidePlot=!1)}if(!Or.ignoreY&&_r.isInsidePlot){let vn=!Dr&&Or.axis&&!Or.axis.isXAxis&&Or.axis||Xr&&(Dr?Xr.xAxis:Xr.yAxis)||{pos:Gr,len:1/0},Cr=Or.paneCoordinates?vn.pos+rn:Gr+rn;Cr>=Math.max(Zr+Gr,vn.pos)&&Cr<=Math.min(Zr+Gr+cn.height,vn.pos+vn.len)||(_r.isInsidePlot=!1)}return rr(this,"afterIsInsidePlot",_r),_r.isInsidePlot}redraw($r){rr(this,"beforeRedraw");let yr=this.hasCartesianSeries?this.axes:this.colorAxis||[],Or=this.series,Dr=this.pointer,Fr=this.legend,Yr=this.userOptions.legend,Gr=this.renderer,Jr=Gr.isHidden(),jr=[],Zr,Xr,cn,Qr=this.isDirtyBox,rn=this.isDirtyLegend,_r;for(Gr.rootFontSize=Gr.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),Dt(!!this.hasRendered&&$r,this),Jr&&this.temporaryDisplay(),this.layOutTitles(!1),cn=Or.length;cn--;)if(((_r=Or[cn]).options.stacking||_r.options.centerInCategory)&&(Xr=!0,_r.isDirty)){Zr=!0;break}if(Zr)for(cn=Or.length;cn--;)(_r=Or[cn]).options.stacking&&(_r.isDirty=!0);Or.forEach(function(ln){ln.isDirty&&(ln.options.legendType==="point"?(typeof ln.updateTotals=="function"&&ln.updateTotals(),rn=!0):Yr&&(Yr.labelFormatter||Yr.labelFormat)&&(rn=!0)),ln.isDirtyData&&rr(ln,"updatedData")}),rn&&Fr&&Fr.options.enabled&&(Fr.render(),this.isDirtyLegend=!1),Xr&&this.getStacks(),yr.forEach(function(ln){ln.updateNames(),ln.setScale()}),this.getMargins(),yr.forEach(function(ln){ln.isDirty&&(Qr=!0)}),yr.forEach(function(ln){let vn=ln.min+","+ln.max;ln.extKey!==vn&&(ln.extKey=vn,jr.push(function(){rr(ln,"afterSetExtremes",nr(ln.eventArgs,ln.getExtremes())),delete ln.eventArgs})),(Qr||Xr)&&ln.redraw()}),Qr&&this.drawChartBox(),rr(this,"predraw"),Or.forEach(function(ln){(Qr||ln.isDirty)&&ln.visible&&ln.redraw(),ln.isDirtyData=!1}),Dr&&Dr.reset(!0),Gr.draw(),rr(this,"redraw"),rr(this,"render"),Jr&&this.temporaryDisplay(!0),jr.forEach(function(ln){ln.call()})}get($r){let yr=this.series;function Or(Fr){return Fr.id===$r||Fr.options&&Fr.options.id===$r}let Dr=or(this.axes,Or)||or(this.series,Or);for(let Fr=0;!Dr&&Fr<yr.length;Fr++)Dr=or(yr[Fr].points||[],Or);return Dr}getAxes(){let $r=this.userOptions;for(let yr of(rr(this,"getAxes"),["xAxis","yAxis"]))for(let Or of $r[yr]=Rr($r[yr]||{}))new ut(this,Or,yr);rr(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce(($r,yr)=>(yr.getPointsCollection().forEach(Or=>{xr(Or.selectedStaging,Or.selected)&&$r.push(Or)}),$r),[])}getSelectedSeries(){return this.series.filter(function($r){return $r.selected})}setTitle($r,yr,Or){this.applyDescription("title",$r),this.applyDescription("subtitle",yr),this.applyDescription("caption",void 0),this.layOutTitles(Or)}applyDescription($r,yr){let Or=this,Dr=this.options[$r]=ar(this.options[$r],yr),Fr=this[$r];Fr&&yr&&(this[$r]=Fr=Fr.destroy()),Dr&&!Fr&&((Fr=this.renderer.text(Dr.text,0,0,Dr.useHTML).attr({align:Dr.align,class:"highcharts-"+$r,zIndex:Dr.zIndex||4}).add()).update=function(Yr,Gr){Or.applyDescription($r,Yr),Or.layOutTitles(Gr)},this.styledMode||Fr.css(nr($r==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},Dr.style)),this[$r]=Fr)}layOutTitles($r=!0){let yr=[0,0,0],Or=this.renderer,Dr=this.spacingBox;["title","subtitle","caption"].forEach(function(Yr){let Gr=this[Yr],Jr=this.options[Yr],jr=Jr.verticalAlign||"top",Zr=Yr==="title"?jr==="top"?-3:0:jr==="top"?yr[0]+2:0;if(Gr){Gr.css({width:(Jr.width||Dr.width+(Jr.widthAdjust||0))+"px"});let Xr=Or.fontMetrics(Gr).b,cn=Math.round(Gr.getBBox(Jr.useHTML).height);Gr.align(nr({y:jr==="bottom"?Xr:Zr+Xr,height:cn},Jr),!1,"spacingBox"),Jr.floating||(jr==="top"?yr[0]=Math.ceil(yr[0]+cn):jr==="bottom"&&(yr[2]=Math.ceil(yr[2]+cn)))}},this),yr[0]&&(this.options.title.verticalAlign||"top")==="top"&&(yr[0]+=this.options.title.margin),yr[2]&&this.options.caption.verticalAlign==="bottom"&&(yr[2]+=this.options.caption.margin);let Fr=!this.titleOffset||this.titleOffset.join(",")!==yr.join(",");this.titleOffset=yr,rr(this,"afterLayOutTitles"),!this.isDirtyBox&&Fr&&(this.isDirtyBox=this.isDirtyLegend=Fr,this.hasRendered&&$r&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:cr(this.renderTo,"width",!0)||0,height:cr(this.renderTo,"height",!0)||0}}getChartSize(){let $r=this.options.chart,yr=$r.width,Or=$r.height,Dr=this.getContainerBox();this.chartWidth=Math.max(0,yr||Dr.width||600),this.chartHeight=Math.max(0,Ar(Or,this.chartWidth)||(Dr.height>1?Dr.height:400)),this.containerBox=Dr}temporaryDisplay($r){let yr=this.renderTo,Or;if($r)for(;yr&&yr.style;)yr.hcOrigStyle&&(Vt(yr,yr.hcOrigStyle),delete yr.hcOrigStyle),yr.hcOrigDetached&&(Jt.body.removeChild(yr),yr.hcOrigDetached=!1),yr=yr.parentNode;else for(;yr&&yr.style&&(Jt.body.contains(yr)||yr.parentNode||(yr.hcOrigDetached=!0,Jt.body.appendChild(yr)),(cr(yr,"display",!1)==="none"||yr.hcOricDetached)&&(yr.hcOrigStyle={display:yr.style.display,height:yr.style.height,overflow:yr.style.overflow},Or={display:"block",overflow:"hidden"},yr!==this.renderTo&&(Or.height=0),Vt(yr,Or),yr.offsetWidth||yr.style.setProperty("display","block","important")),(yr=yr.parentNode)!==Jt.body););}setClassName($r){this.container.className="highcharts-container "+($r||"")}getContainer(){var cn;let $r=this.options,yr=$r.chart,Or="data-highcharts-chart",Dr=qr(),Fr,Yr=this.renderTo;Yr||(this.renderTo=Yr=yr.renderTo),br(Yr)&&(this.renderTo=Yr=Jt.getElementById(Yr)),Yr||er(13,!0,this);let Gr=Mr(Wt(Yr,Or));dr(Gr)&&Kt[Gr]&&Kt[Gr].hasRendered&&Kt[Gr].destroy(),Wt(Yr,Or,this.index),Yr.innerHTML=zt.emptyHTML,yr.skipClone||Yr.offsetWidth||this.temporaryDisplay(),this.getChartSize();let Jr=this.chartHeight,jr=this.chartWidth;Vt(Yr,{overflow:"hidden"}),this.styledMode||(Fr=nr({position:"relative",overflow:"hidden",width:jr+"px",height:Jr+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},yr.style||{}));let Zr=Ut("div",{id:Dr},Fr,Yr);this.container=Zr,this.getChartSize(),jr===this.chartWidth||(jr=this.chartWidth,this.styledMode||Vt(Zr,{width:xr((cn=yr.style)==null?void 0:cn.width,jr+"px")})),this.containerBox=this.getContainerBox(),this._cursor=Zr.style.cursor;let Xr=yr.renderer||!Bt?xt.getRendererType(yr.renderer):Ot;if(this.renderer=new Xr(Zr,jr,Jr,void 0,yr.forExport,$r.exporting&&$r.exporting.allowHTML,this.styledMode),Dt(void 0,this),this.setClassName(yr.className),this.styledMode)for(let Qr in $r.defs)this.renderer.definition($r.defs[Qr]);else this.renderer.setStyle(yr.style);this.renderer.chartIndex=this.index,rr(this,"afterGetContainer")}getMargins($r){let{spacing:yr,margin:Or,titleOffset:Dr}=this;this.resetMargins(),Dr[0]&&!Ht(Or[0])&&(this.plotTop=Math.max(this.plotTop,Dr[0]+yr[0])),Dr[2]&&!Ht(Or[2])&&(this.marginBottom=Math.max(this.marginBottom,Dr[2]+yr[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Or,yr),rr(this,"getMargins"),$r||this.getAxisMargins()}getAxisMargins(){let $r=this,yr=$r.axisOffset=[0,0,0,0],Or=$r.colorAxis,Dr=$r.margin,Fr=function(Yr){Yr.forEach(function(Gr){Gr.visible&&Gr.getOffset()})};$r.hasCartesianSeries?Fr($r.axes):Or&&Or.length&&Fr(Or),Qt.forEach(function(Yr,Gr){Ht(Dr[Gr])||($r[Yr]+=yr[Gr])}),$r.setChartSize()}getOptions(){return Gt(this.userOptions,kt)}reflow($r){var Fr;let yr=this,Or=yr.containerBox,Dr=yr.getContainerBox();(Fr=yr.pointer)==null||delete Fr.chartPosition,!yr.isPrinting&&!yr.isResizing&&Or&&Dr.width&&((Dr.width!==Or.width||Dr.height!==Or.height)&&(Rt.clearTimeout(yr.reflowTimeout),yr.reflowTimeout=wr(function(){yr.container&&yr.setSize(void 0,void 0,!1)},$r?100:0)),yr.containerBox=Dr)}setReflow(){let $r=this,yr=Or=>{var Dr;(Dr=$r.options)!=null&&Dr.chart.reflow&&$r.hasLoaded&&$r.reflow(Or)};if(typeof ResizeObserver=="function")new ResizeObserver(yr).observe($r.renderTo);else{let Or=jt(Ft,"resize",yr);jt(this,"destroy",Or)}}setSize($r,yr,Or){let Dr=this,Fr=Dr.renderer;Dr.isResizing+=1,Dt(Or,Dr);let Yr=Fr.globalAnimation;Dr.oldChartHeight=Dr.chartHeight,Dr.oldChartWidth=Dr.chartWidth,$r!==void 0&&(Dr.options.chart.width=$r),yr!==void 0&&(Dr.options.chart.height=yr),Dr.getChartSize();let{chartWidth:Gr,chartHeight:Jr,scrollablePixelsX:jr=0,scrollablePixelsY:Zr=0}=Dr;(Dr.isDirtyBox||Gr!==Dr.oldChartWidth||Jr!==Dr.oldChartHeight)&&(Dr.styledMode||(Yr?Ct:Vt)(Dr.container,{width:`${Gr+jr}px`,height:`${Jr+Zr}px`},Yr),Dr.setChartSize(!0),Fr.setSize(Gr,Jr,Yr),Dr.axes.forEach(function(Xr){Xr.isDirty=!0,Xr.setScale()}),Dr.isDirtyLegend=!0,Dr.isDirtyBox=!0,Dr.layOutTitles(),Dr.getMargins(),Dr.redraw(Yr),Dr.oldChartHeight=void 0,rr(Dr,"resize"),setTimeout(()=>{Dr&&rr(Dr,"endResize")},It(Yr).duration)),Dr.isResizing-=1}setChartSize($r){let yr,Or,Dr,Fr,{chartHeight:Yr,chartWidth:Gr,inverted:Jr,spacing:jr,renderer:Zr}=this,Xr=this.clipOffset,cn=Math[Jr?"floor":"round"];this.plotLeft=yr=Math.round(this.plotLeft),this.plotTop=Or=Math.round(this.plotTop),this.plotWidth=Dr=Math.max(0,Math.round(Gr-yr-this.marginRight)),this.plotHeight=Fr=Math.max(0,Math.round(Yr-Or-this.marginBottom)),this.plotSizeX=Jr?Fr:Dr,this.plotSizeY=Jr?Dr:Fr,this.spacingBox=Zr.spacingBox={x:jr[3],y:jr[0],width:Gr-jr[3]-jr[1],height:Yr-jr[0]-jr[2]},this.plotBox=Zr.plotBox={x:yr,y:Or,width:Dr,height:Fr},Xr&&(this.clipBox={x:cn(Xr[3]),y:cn(Xr[0]),width:cn(this.plotSizeX-Xr[1]-Xr[3]),height:cn(this.plotSizeY-Xr[0]-Xr[2])}),$r||(this.axes.forEach(function(Qr){Qr.setAxisSize(),Qr.setAxisTranslation()}),Zr.alignElements()),rr(this,"afterSetChartSize",{skipAxes:$r})}resetMargins(){rr(this,"resetMargins");let $r=this,yr=$r.options.chart,Or=yr.plotBorderWidth||0,Dr=Or/2;["margin","spacing"].forEach(function(Fr){let Yr=yr[Fr],Gr=gr(Yr)?Yr:[Yr,Yr,Yr,Yr];["Top","Right","Bottom","Left"].forEach(function(Jr,jr){$r[Fr][jr]=xr(yr[Fr+Jr],Gr[jr])})}),Qt.forEach(function(Fr,Yr){$r[Fr]=xr($r.margin[Yr],$r.spacing[Yr])}),$r.axisOffset=[0,0,0,0],$r.clipOffset=[Dr,Dr,Dr,Dr],$r.plotBorderWidth=Or}drawChartBox(){let $r=this.options.chart,yr=this.renderer,Or=this.chartWidth,Dr=this.chartHeight,Fr=this.styledMode,Yr=this.plotBGImage,Gr=$r.backgroundColor,Jr=$r.plotBackgroundColor,jr=$r.plotBackgroundImage,Zr=this.plotLeft,Xr=this.plotTop,cn=this.plotWidth,Qr=this.plotHeight,rn=this.plotBox,_r=this.clipRect,ln=this.clipBox,vn=this.chartBackground,Cr=this.plotBackground,gn=this.plotBorder,xn,Vr,fn,pn="animate";vn||(this.chartBackground=vn=yr.rect().addClass("highcharts-background").add(),pn="attr"),Fr?xn=Vr=vn.strokeWidth():(Vr=(xn=$r.borderWidth||0)+($r.shadow?8:0),fn={fill:Gr||"none"},(xn||vn["stroke-width"])&&(fn.stroke=$r.borderColor,fn["stroke-width"]=xn),vn.attr(fn).shadow($r.shadow)),vn[pn]({x:Vr/2,y:Vr/2,width:Or-Vr-xn%2,height:Dr-Vr-xn%2,r:$r.borderRadius}),pn="animate",Cr||(pn="attr",this.plotBackground=Cr=yr.rect().addClass("highcharts-plot-background").add()),Cr[pn](rn),!Fr&&(Cr.attr({fill:Jr||"none"}).shadow($r.plotShadow),jr&&(Yr?(jr!==Yr.attr("href")&&Yr.attr("href",jr),Yr.animate(rn)):this.plotBGImage=yr.image(jr,Zr,Xr,cn,Qr).add())),_r?_r.animate({width:ln.width,height:ln.height}):this.clipRect=yr.clipRect(ln),pn="animate",gn||(pn="attr",this.plotBorder=gn=yr.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Fr||gn.attr({stroke:$r.plotBorderColor,"stroke-width":$r.plotBorderWidth||0,fill:"none"}),gn[pn](gn.crisp({x:Zr,y:Xr,width:cn,height:Qr},-gn.strokeWidth())),this.isDirtyBox=!1,rr(this,"afterDrawChartBox")}propFromSeries(){let $r,yr,Or,Dr=this,Fr=Dr.options.chart,Yr=Dr.options.series;["inverted","angular","polar"].forEach(function(Gr){for(yr=$t[Fr.type],Or=Fr[Gr]||yr&&yr.prototype[Gr],$r=Yr&&Yr.length;!Or&&$r--;)(yr=$t[Yr[$r].type])&&yr.prototype[Gr]&&(Or=!0);Dr[Gr]=Or})}linkSeries($r){let yr=this,Or=yr.series;Or.forEach(function(Dr){Dr.linkedSeries.length=0}),Or.forEach(function(Dr){let{linkedTo:Fr}=Dr.options;if(br(Fr)){let Yr;(Yr=Fr===":previous"?yr.series[Dr.index-1]:yr.get(Fr))&&Yr.linkedParent!==Dr&&(Yr.linkedSeries.push(Dr),Dr.linkedParent=Yr,Yr.enabledDataSorting&&Dr.setDataSortingOptions(),Dr.visible=xr(Dr.options.visible,Yr.options.visible,Dr.visible))}}),rr(this,"afterLinkSeries",{isUpdating:$r})}renderSeries(){this.series.forEach(function($r){$r.translate(),$r.render()})}render(){var Zr;let $r=this.axes,yr=this.colorAxis,Or=this.renderer,Dr=this.options.chart.axisLayoutRuns||2,Fr=Xr=>{Xr.forEach(cn=>{cn.visible&&cn.render()})},Yr=0,Gr=!0,Jr,jr=0;for(let Xr of(this.setTitle(),rr(this,"beforeMargins"),(Zr=this.getStacks)==null||Zr.call(this),this.getMargins(!0),this.setChartSize(),$r)){let{options:cn}=Xr,{labels:Qr}=cn;if(this.hasCartesianSeries&&Xr.horiz&&Xr.visible&&Qr.enabled&&Xr.series.length&&Xr.coll!=="colorAxis"&&!this.polar){Yr=cn.tickLength,Xr.createGroups();let rn=new Tt(Xr,0,"",!0),_r=rn.createLabel("x",Qr);if(rn.destroy(),_r&&xr(Qr.reserveSpace,!dr(cn.crossing))&&(Yr=_r.getBBox().height+Qr.distance+Math.max(cn.offset||0,0)),Yr){_r==null||_r.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-Yr,0);(Gr||Jr||Dr>1)&&jr<Dr;){let Xr=this.plotWidth,cn=this.plotHeight;for(let Qr of $r)jr===0?Qr.setScale():(Qr.horiz&&Gr||!Qr.horiz&&Jr)&&Qr.setTickInterval(!0);jr===0?this.getAxisMargins():this.getMargins(),Gr=Xr/this.plotWidth>(jr?1:1.1),Jr=cn/this.plotHeight>(jr?1:1.05),jr++}this.drawChartBox(),this.hasCartesianSeries?Fr($r):yr&&yr.length&&Fr(yr),this.seriesGroup||(this.seriesGroup=Or.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits($r){let yr=this,Or=ar(!0,this.options.credits,$r);Or.enabled&&!this.credits&&(this.credits=this.renderer.text(Or.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Or.href&&(Ft.location.href=Or.href)}).attr({align:Or.position.align,zIndex:8}),yr.styledMode||this.credits.css(Or.style),this.credits.add().align(Or.position),this.credits.update=function(Dr){yr.credits=yr.credits.destroy(),yr.addCredits(Dr)})}destroy(){let $r,yr=this,Or=yr.axes,Dr=yr.series,Fr=yr.container,Yr=Fr&&Fr.parentNode;for(rr(yr,"destroy"),yr.renderer.forExport?Xt(Kt,yr):Kt[yr.index]=void 0,mt.chartCount--,yr.renderTo.removeAttribute("data-highcharts-chart"),Ir(yr),$r=Or.length;$r--;)Or[$r]=Or[$r].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),$r=Dr.length;$r--;)Dr[$r]=Dr[$r].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(Gr){let Jr=yr[Gr];Jr&&Jr.destroy&&(yr[Gr]=Jr.destroy())}),Fr&&(Fr.innerHTML=zt.emptyHTML,Ir(Fr),Yr&&Zt(Fr)),ur(yr,function(Gr,Jr){delete yr[Jr]})}firstRender(){var Dr;let $r=this,yr=$r.options;$r.getContainer(),$r.resetMargins(),$r.setChartSize(),$r.propFromSeries(),$r.getAxes();let Or=ir(yr.series)?yr.series:[];yr.series=[],Or.forEach(function(Fr){$r.initSeries(Fr)}),$r.linkSeries(),$r.setSortedData(),rr($r,"beforeRender"),$r.render(),(Dr=$r.pointer)==null||Dr.getChartPosition(),$r.renderer.imgCount||$r.hasLoaded||$r.onload(),$r.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function($r){$r&&this.index!==void 0&&$r.apply(this,[this])},this),rr(this,"load"),rr(this,"render"),Ht(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:$r,title:yr}=this;!$r||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(yr&&yr.element.textContent||"").replace(/</g,"&lt;")}),$r.accessibility&&$r.accessibility.enabled===!1||er('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries($r,yr,Or){let Dr,Fr=this;return $r&&(yr=xr(yr,!0),rr(Fr,"addSeries",{options:$r},function(){Dr=Fr.initSeries($r),Fr.isDirtyLegend=!0,Fr.linkSeries(),Dr.enabledDataSorting&&Dr.setData($r.data,!1),rr(Fr,"afterAddSeries",{series:Dr}),yr&&Fr.redraw(Or)})),Dr}addAxis($r,yr,Or,Dr){return this.createAxis(yr?"xAxis":"yAxis",{axis:$r,redraw:Or,animation:Dr})}addColorAxis($r,yr,Or){return this.createAxis("colorAxis",{axis:$r,redraw:yr,animation:Or})}createAxis($r,yr){let Or=new ut(this,yr.axis,$r);return xr(yr.redraw,!0)&&this.redraw(yr.animation),Or}showLoading($r){let yr=this,Or=yr.options,Dr=Or.loading,Fr=function(){Yr&&Vt(Yr,{left:yr.plotLeft+"px",top:yr.plotTop+"px",width:yr.plotWidth+"px",height:yr.plotHeight+"px"})},Yr=yr.loadingDiv,Gr=yr.loadingSpan;Yr||(yr.loadingDiv=Yr=Ut("div",{className:"highcharts-loading highcharts-loading-hidden"},null,yr.container)),Gr||(yr.loadingSpan=Gr=Ut("span",{className:"highcharts-loading-inner"},null,Yr),jt(yr,"redraw",Fr)),Yr.className="highcharts-loading",zt.setElementHTML(Gr,xr($r,Or.lang.loading,"")),yr.styledMode||(Vt(Yr,nr(Dr.style,{zIndex:10})),Vt(Gr,Dr.labelStyle),yr.loadingShown||(Vt(Yr,{opacity:0,display:""}),Ct(Yr,{opacity:Dr.style.opacity||.5},{duration:Dr.showDuration||0}))),yr.loadingShown=!0,Fr()}hideLoading(){let $r=this.options,yr=this.loadingDiv;yr&&(yr.className="highcharts-loading highcharts-loading-hidden",this.styledMode||Ct(yr,{opacity:0},{duration:$r.loading.hideDuration||100,complete:function(){Vt(yr,{display:"none"})}})),this.loadingShown=!1}update($r,yr,Or,Dr){let Fr,Yr,Gr,Jr=this,jr={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Zr=$r.isResponsiveOptions,Xr=[];rr(Jr,"update",{options:$r}),Zr||Jr.setResponsive(!1,!0),$r=Gt($r,Jr.options),Jr.userOptions=ar(Jr.userOptions,$r);let cn=$r.chart;cn&&(ar(!0,Jr.options.chart,cn),this.setZoomOptions(),"className"in cn&&Jr.setClassName(cn.className),("inverted"in cn||"polar"in cn||"type"in cn)&&(Jr.propFromSeries(),Fr=!0),"alignTicks"in cn&&(Fr=!0),"events"in cn&&Yt(this,cn),ur(cn,function(_r,ln){Jr.propsRequireUpdateSeries.indexOf("chart."+ln)!==-1&&(Yr=!0),Jr.propsRequireDirtyBox.indexOf(ln)!==-1&&(Jr.isDirtyBox=!0),Jr.propsRequireReflow.indexOf(ln)===-1||(Jr.isDirtyBox=!0,Zr||(Gr=!0))}),!Jr.styledMode&&cn.style&&Jr.renderer.setStyle(Jr.options.chart.style||{})),!Jr.styledMode&&$r.colors&&(this.options.colors=$r.colors),$r.time&&(this.time===qt&&(this.time=new At($r.time)),ar(!0,Jr.options.time,$r.time)),ur($r,function(_r,ln){Jr[ln]&&typeof Jr[ln].update=="function"?Jr[ln].update(_r,!1):typeof Jr[jr[ln]]=="function"?Jr[jr[ln]](_r):ln!=="colors"&&Jr.collectionsWithUpdate.indexOf(ln)===-1&&ar(!0,Jr.options[ln],$r[ln]),ln!=="chart"&&Jr.propsRequireUpdateSeries.indexOf(ln)!==-1&&(Yr=!0)}),this.collectionsWithUpdate.forEach(function(_r){$r[_r]&&(Rr($r[_r]).forEach(function(ln,vn){let Cr,gn=Ht(ln.id);gn&&(Cr=Jr.get(ln.id)),!Cr&&Jr[_r]&&(Cr=Jr[_r][xr(ln.index,vn)])&&(gn&&Ht(Cr.options.id)||Cr.options.isInternal)&&(Cr=void 0),Cr&&Cr.coll===_r&&(Cr.update(ln,!1),Or&&(Cr.touched=!0)),!Cr&&Or&&Jr.collectionsWithInit[_r]&&(Jr.collectionsWithInit[_r][0].apply(Jr,[ln].concat(Jr.collectionsWithInit[_r][1]||[]).concat([!1])).touched=!0)}),Or&&Jr[_r].forEach(function(ln){ln.touched||ln.options.isInternal?delete ln.touched:Xr.push(ln)}))}),Xr.forEach(function(_r){_r.chart&&_r.remove&&_r.remove(!1)}),Fr&&Jr.axes.forEach(function(_r){_r.update({},!1)}),Yr&&Jr.getSeriesOrderByLinks().forEach(function(_r){_r.chart&&_r.update({},!1)},this);let Qr=cn&&cn.width,rn=cn&&(br(cn.height)?Ar(cn.height,Qr||Jr.chartWidth):cn.height);Gr||dr(Qr)&&Qr!==Jr.chartWidth||dr(rn)&&rn!==Jr.chartHeight?Jr.setSize(Qr,rn,Dr):xr(yr,!0)&&Jr.redraw(Dr),rr(Jr,"afterUpdate",{options:$r,redraw:yr,animation:Dr})}setSubtitle($r,yr){this.applyDescription("subtitle",$r),this.layOutTitles(yr)}setCaption($r,yr){this.applyDescription("caption",$r),this.layOutTitles(yr)}showResetZoom(){let $r=this,yr=kt.lang,Or=$r.zooming.resetButton,Dr=Or.theme,Fr=Or.relativeTo==="chart"||Or.relativeTo==="spacingBox"?null:"plotBox";function Yr(){$r.zoomOut()}rr(this,"beforeShowResetZoom",null,function(){$r.resetZoomButton=$r.renderer.button(yr.resetZoom,null,null,Yr,Dr).attr({align:Or.position.align,title:yr.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(Or.position,!1,Fr)}),rr(this,"afterShowResetZoom")}zoomOut(){rr(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan($r,yr){let Or=this,Dr=typeof yr=="object"?yr:{enabled:yr,type:"x"},Fr=Dr.type,Yr=Fr&&Or[{x:"xAxis",xy:"axes",y:"yAxis"}[Fr]].filter(Jr=>Jr.options.panningEnabled&&!Jr.options.isInternal),Gr=Or.options.chart;Gr!=null&&Gr.panning&&(Gr.panning=Dr),rr(this,"pan",{originalEvent:$r},()=>{Or.transform({axes:Yr,event:$r,to:{x:$r.chartX-(Or.mouseDownX||0),y:$r.chartY-(Or.mouseDownY||0)},trigger:"pan"}),Vt(Or.container,{cursor:"move"})})}transform($r){var Qr;let{axes:yr=this.axes,event:Or,from:Dr={},reset:Fr,selection:Yr,to:Gr={},trigger:Jr}=$r,{inverted:jr}=this,Zr=!1,Xr,cn;for(let rn of((Qr=this.hoverPoints)==null||Qr.forEach(_r=>_r.setState()),yr)){let{horiz:_r,len:ln,minPointOffset:vn=0,options:Cr,reversed:gn}=rn,xn=_r?"width":"height",Vr=_r?"x":"y",fn=xr(Gr[xn],rn.len),pn=xr(Dr[xn],rn.len),qn=10>Math.abs(fn)?1:fn/pn,Bn=(Dr[Vr]||0)+pn/2-rn.pos,Kr=Bn-((Gr[Vr]??rn.pos)+fn/2-rn.pos)/qn,Tr=gn&&!jr||!gn&&jr?-1:1;if(!Fr&&(Bn<0||Bn>rn.len))continue;let Pr=rn.toValue(Kr,!0)+(Yr?0:vn*Tr),an=rn.toValue(Kr+ln/qn,!0)-(Yr?0:vn*Tr||0),nn=rn.allExtremes;if(Pr>an&&([Pr,an]=[an,Pr]),qn===1&&!Fr&&rn.coll==="yAxis"&&!nn){for(let _i of rn.series){let ho=_i.getExtremes(_i.getProcessedData(!0).yData,!0);nn??(nn={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),dr(ho.dataMin)&&dr(ho.dataMax)&&(nn.dataMin=Math.min(ho.dataMin,nn.dataMin),nn.dataMax=Math.max(ho.dataMax,nn.dataMax))}rn.allExtremes=nn}let{dataMin:Mn,dataMax:An,min:Vn,max:Cn}=nr(rn.getExtremes(),nn||{}),kn=Mn??Cr.min,Qn=An??Cr.max,Gn=an-Pr,Un=rn.categories?0:Math.min(Gn,Qn-kn),jn=kn-Un*(Ht(Cr.min)?0:Cr.minPadding),In=Qn+Un*(Ht(Cr.max)?0:Cr.maxPadding),Kn=rn.allowZoomOutside||qn===1||Jr!=="zoom"&&qn>1,Wn=Math.min(Cr.min??jn,jn,Kn?Vn:jn),ao=Math.max(Cr.max??In,In,Kn?Cn:In);(!rn.isOrdinal||qn!==1||Fr)&&(Pr<Wn&&(Pr=Wn,qn>=1&&(an=Pr+Gn)),an>ao&&(an=ao,qn>=1&&(Pr=an-Gn)),(Fr||rn.series.length&&(Pr!==Vn||an!==Cn)&&Pr>=Wn&&an<=ao)&&(Yr?Yr[rn.coll].push({axis:rn,min:Pr,max:an}):(rn.isPanning=Jr!=="zoom",rn.isPanning&&(cn=!0),rn.setExtremes(Fr?void 0:Pr,Fr?void 0:an,!1,!1,{move:Kr,trigger:Jr,scale:qn}),!Fr&&(Pr>Wn||an<ao)&&Jr!=="mousewheel"&&(Xr=!0)),Zr=!0),Or&&(this[_r?"mouseDownX":"mouseDownY"]=Or[_r?"chartX":"chartY"]))}return Zr&&(Yr?rr(this,"selection",Yr,()=>{delete $r.selection,$r.trigger="zoom",this.transform($r)}):(!Xr||cn||this.resetZoomButton?!Xr&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(Jr==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),Zr}}return nr(Hr.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Hr.prototype.addAxis,[!0]],yAxis:[Hr.prototype.addAxis,[!1]],series:[Hr.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),Hr}),nt(rt,"Extensions/ScrollablePlotArea.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Globals.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){let{stop:ht}=lt,{composed:mt}=ut,{addEvent:xt,createElement:Mt,css:vt,defined:Ot,merge:At,pushUnique:Rt}=pt;function zt(){let It=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!It&&(this.scrollablePlotArea=It=new Ct(this)),It==null||It.applyFixed()}function Tt(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class Ct{static compose(Dt,kt,qt){Rt(mt,this.compose)&&(xt(Dt,"afterInit",Tt),xt(kt,"afterSetChartSize",Nt=>this.afterSetSize(Nt.target,Nt)),xt(kt,"render",zt),xt(qt,"show",Tt))}static afterSetSize(Dt,kt){let qt,Nt,Yt,{minWidth:Kt,minHeight:Jt}=Dt.options.chart.scrollablePlotArea||{},{clipBox:Qt,plotBox:Bt,inverted:Ft,renderer:$t}=Dt;if(!$t.forExport&&(Kt?(Dt.scrollablePixelsX=qt=Math.max(0,Kt-Dt.chartWidth),qt&&(Dt.scrollablePlotBox=At(Dt.plotBox),Bt.width=Dt.plotWidth+=qt,Qt[Ft?"height":"width"]+=qt,Yt=!0)):Jt&&(Dt.scrollablePixelsY=Nt=Math.max(0,Jt-Dt.chartHeight),Ot(Nt)&&(Dt.scrollablePlotBox=At(Dt.plotBox),Bt.height=Dt.plotHeight+=Nt,Qt[Ft?"width":"height"]+=Nt,Yt=!1)),Ot(Yt)&&!kt.skipAxes))for(let jt of Dt.axes)jt.horiz===Yt&&(jt.setAxisSize(),jt.setAxisTranslation())}constructor(Dt){var Wt;let kt,qt=Dt.options.chart,Nt=dt.getRendererType(),Yt=qt.scrollablePlotArea||{},Kt=this.moveFixedElements.bind(this),Jt={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};Dt.scrollablePixelsX&&(Jt.overflowX="auto"),Dt.scrollablePixelsY&&(Jt.overflowY="auto"),this.chart=Dt;let Qt=this.parentDiv=Mt("div",{className:"highcharts-scrolling-parent"},{position:"relative"},Dt.renderTo),Bt=this.scrollingContainer=Mt("div",{className:"highcharts-scrolling"},Jt,Qt),Ft=this.innerContainer=Mt("div",{className:"highcharts-inner-container"},void 0,Bt),$t=this.fixedDiv=Mt("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((Wt=qt.style)==null?void 0:Wt.zIndex)||0)+2,top:0},void 0,!0),jt=this.fixedRenderer=new Nt($t,Dt.chartWidth,Dt.chartHeight,qt.style);this.mask=jt.path().attr({fill:qt.backgroundColor||"#fff","fill-opacity":Yt.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),Bt.parentNode.insertBefore($t,Bt),vt(Dt.renderTo,{overflow:"visible"}),xt(Dt,"afterShowResetZoom",Kt),xt(Dt,"afterApplyDrilldown",Kt),xt(Dt,"afterLayOutTitles",Kt),xt(Bt,"scroll",()=>{let{pointer:Ut,hoverPoint:Vt}=Dt;Ut&&(delete Ut.chartPosition,Vt&&(kt=Vt),Ut.runPointActions(void 0,kt,!0))}),Ft.appendChild(Dt.container)}applyFixed(){var dr;let{chart:Dt,fixedRenderer:kt,isDirty:qt,scrollingContainer:Nt}=this,{axisOffset:Yt,chartWidth:Kt,chartHeight:Jt,container:Qt,plotHeight:Bt,plotLeft:Ft,plotTop:$t,plotWidth:jt,scrollablePixelsX:Wt=0,scrollablePixelsY:Ut=0}=Dt,{scrollPositionX:Vt=0,scrollPositionY:Ht=0}=Dt.options.chart.scrollablePlotArea||{},Gt=Kt+Wt,Zt=Jt+Ut;kt.setSize(Kt,Jt),(qt??!0)&&(this.isDirty=!1,this.moveFixedElements()),ht(Dt.container),vt(Qt,{width:`${Gt}px`,height:`${Zt}px`}),Dt.renderer.boxWrapper.attr({width:Gt,height:Zt,viewBox:[0,0,Gt,Zt].join(" ")}),(dr=Dt.chartBackground)==null||dr.attr({width:Gt,height:Zt}),vt(Nt,{width:`${Kt}px`,height:`${Jt}px`}),Ot(qt)||(Nt.scrollLeft=Wt*Vt,Nt.scrollTop=Ut*Ht);let Xt=$t-Yt[0]-1,er=Ft-Yt[3]-1,nr=$t+Bt+Yt[2]+1,or=Ft+jt+Yt[1]+1,rr=Ft+jt-Wt,cr=$t+Bt-Ut,ir=[["M",0,0]];Wt?ir=[["M",0,Xt],["L",Ft-1,Xt],["L",Ft-1,nr],["L",0,nr],["Z"],["M",rr,Xt],["L",Kt,Xt],["L",Kt,nr],["L",rr,nr],["Z"]]:Ut&&(ir=[["M",er,0],["L",er,$t-1],["L",or,$t-1],["L",or,0],["Z"],["M",er,cr],["L",er,Jt],["L",or,Jt],["L",or,cr],["Z"]]),Dt.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:ir})}moveFixedElements(){let Dt,{container:kt,inverted:qt,scrollablePixelsX:Nt,scrollablePixelsY:Yt}=this.chart,Kt=this.fixedRenderer,Jt=Ct.fixedSelectors;for(let Qt of(Nt&&!qt?Dt=".highcharts-yaxis":Nt&&qt||Yt&&!qt?Dt=".highcharts-xaxis":Yt&&qt&&(Dt=".highcharts-yaxis"),Dt&&Jt.push(`${Dt}:not(.highcharts-radial-axis)`,`${Dt}-labels:not(.highcharts-radial-axis-labels)`),Jt))[].forEach.call(kt.querySelectorAll(Qt),Bt=>{(Bt.namespaceURI===Kt.SVG_NS?Kt.box:Kt.box.parentNode).appendChild(Bt),Bt.style.pointerEvents="auto"})}}return Ct.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],Ct}),nt(rt,"Core/Axis/Stacking/StackItem.js",[rt["Core/Templating.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{format:pt}=lt,{series:ht}=ut,{destroyObjectProperties:mt,fireEvent:xt,isNumber:Mt,pick:vt}=dt;return class{constructor(Ot,At,Rt,zt,Tt){let Ct=Ot.chart.inverted,It=Ot.reversed;this.axis=Ot;let Dt=this.isNegative=!!Rt!=!!It;this.options=At=At||{},this.x=zt,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=Tt,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:At.align||(Ct?Dt?"left":"right":"center"),verticalAlign:At.verticalAlign||(Ct?"middle":Dt?"bottom":"top"),y:At.y,x:At.x},this.textAlign=At.textAlign||(Ct?Dt?"right":"left":"center")}destroy(){mt(this,this.axis)}render(Ot){let At=this.axis.chart,Rt=this.options,zt=Rt.format,Tt=zt?pt(zt,this,At):Rt.formatter.call(this);if(this.label)this.label.attr({text:Tt,visibility:"hidden"});else{this.label=At.renderer.label(Tt,null,void 0,Rt.shape,void 0,void 0,Rt.useHTML,!1,"stack-labels");let Ct={r:Rt.borderRadius||0,text:Tt,padding:vt(Rt.padding,5),visibility:"hidden"};At.styledMode||(Ct.fill=Rt.backgroundColor,Ct.stroke=Rt.borderColor,Ct["stroke-width"]=Rt.borderWidth,this.label.css(Rt.style||{})),this.label.attr(Ct),this.label.added||this.label.add(Ot)}this.label.labelrank=At.plotSizeY,xt(this,"afterRender")}setOffset(Ot,At,Rt,zt,Tt,Ct){let{alignOptions:It,axis:Dt,label:kt,options:qt,textAlign:Nt}=this,Yt=Dt.chart,Kt=this.getStackBox({xOffset:Ot,width:At,boxBottom:Rt,boxTop:zt,defaultX:Tt,xAxis:Ct}),{verticalAlign:Jt}=It;if(kt&&Kt){let Qt=kt.getBBox(void 0,0),Bt=kt.padding,Ft=vt(qt.overflow,"justify")==="justify",$t;It.x=qt.x||0,It.y=qt.y||0;let{x:jt,y:Wt}=this.adjustStackPosition({labelBox:Qt,verticalAlign:Jt,textAlign:Nt});Kt.x-=jt,Kt.y-=Wt,kt.align(It,!1,Kt),($t=Yt.isInsidePlot(kt.alignAttr.x+It.x+jt,kt.alignAttr.y+It.y+Wt))||(Ft=!1),Ft&&ht.prototype.justifyDataLabel.call(Dt,kt,It,kt.alignAttr,Qt,Kt),kt.attr({x:kt.alignAttr.x,y:kt.alignAttr.y,rotation:qt.rotation,rotationOriginX:Qt.width*{left:0,center:.5,right:1}[qt.textAlign||"center"],rotationOriginY:Qt.height/2}),vt(!Ft&&qt.crop,!0)&&($t=Mt(kt.x)&&Mt(kt.y)&&Yt.isInsidePlot(kt.x-Bt+(kt.width||0),kt.y)&&Yt.isInsidePlot(kt.x+Bt,kt.y)),kt[$t?"show":"hide"]()}xt(this,"afterSetOffset",{xOffset:Ot,width:At})}adjustStackPosition({labelBox:Ot,verticalAlign:At,textAlign:Rt}){let zt={bottom:0,middle:1,top:2,right:1,center:0,left:-1},Tt=zt[At],Ct=zt[Rt];return{x:Ot.width/2+Ot.width/2*Ct,y:Ot.height/2*Tt}}getStackBox(Ot){let At=this.axis,Rt=At.chart,{boxTop:zt,defaultX:Tt,xOffset:Ct,width:It,boxBottom:Dt}=Ot,kt=At.stacking.usePercentage?100:vt(zt,this.total,0),qt=At.toPixels(kt),Nt=Ot.xAxis||Rt.xAxis[0],Yt=vt(Tt,Nt.translate(this.x))+Ct,Kt=Math.abs(qt-At.toPixels(Dt||Mt(At.min)&&At.logarithmic&&At.logarithmic.lin2log(At.min)||0)),Jt=Rt.inverted,Qt=this.isNegative;return Jt?{x:(Qt?qt:qt-Kt)-Rt.plotLeft,y:Nt.height-Yt-It+Nt.top-Rt.plotTop,width:Kt,height:It}:{x:Yt+Nt.transB-Rt.plotLeft,y:(Qt?qt-Kt:qt)-Rt.plotTop,width:It,height:Kt}}}}),nt(rt,"Core/Axis/Stacking/StackingAxis.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Axis/Axis.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Axis/Stacking/StackItem.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){var mt;let{getDeferredAnimation:xt}=lt,{series:{prototype:Mt}}=dt,{addEvent:vt,correctFloat:Ot,defined:At,destroyObjectProperties:Rt,fireEvent:zt,isArray:Tt,isNumber:Ct,objectEach:It,pick:Dt}=ht;function kt(){let $t=this.inverted;this.axes.forEach(jt=>{jt.stacking&&jt.stacking.stacks&&jt.hasVisibleSeries&&(jt.stacking.oldStacks=jt.stacking.stacks)}),this.series.forEach(jt=>{let Wt=jt.xAxis&&jt.xAxis.options||{};jt.options.stacking&&jt.reserveSpace()&&(jt.stackKey=[jt.type,Dt(jt.options.stack,""),$t?Wt.top:Wt.left,$t?Wt.height:Wt.width].join(","))})}function qt(){var jt;let $t=this.stacking;if($t){let Wt=$t.stacks;It(Wt,(Ut,Vt)=>{Rt(Ut),delete Wt[Vt]}),(jt=$t.stackTotalGroup)==null||jt.destroy()}}function Nt(){this.stacking||(this.stacking=new Ft(this))}function Yt($t,jt,Wt,Ut){return!At($t)||$t.x!==jt||Ut&&$t.stackKey!==Ut?$t={x:jt,index:0,key:Ut,stackKey:Ut}:$t.index++,$t.key=[Wt,jt,$t.index].join(","),$t}function Kt(){let $t,jt=this,Wt=jt.yAxis,Ut=jt.stackKey||"",Vt=Wt.stacking.stacks,Ht=jt.processedXData,Gt=jt.options.stacking,Zt=jt[Gt+"Stacker"];Zt&&[Ut,"-"+Ut].forEach(Xt=>{var cr;let er=Ht.length,nr,or,rr;for(;er--;)nr=Ht[er],$t=jt.getStackIndicator($t,nr,jt.index,Xt),or=(cr=Vt[Xt])==null?void 0:cr[nr],(rr=or==null?void 0:or.points[$t.key||""])&&Zt.call(jt,rr,or,er)})}function Jt($t,jt,Wt){let Ut=jt.total?100/jt.total:0;$t[0]=Ot($t[0]*Ut),$t[1]=Ot($t[1]*Ut),this.stackedYData[Wt]=$t[1]}function Qt($t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?Mt.setStackedPoints.call(this,$t,"group"):$t.stacking.resetStacks())}function Bt($t,jt){var qr,Hr;let Wt,Ut,Vt,Ht,Gt,Zt,Xt,er,nr,or=jt||this.options.stacking;if(!or||!this.reserveSpace()||({group:"xAxis"}[or]||"yAxis")!==$t.coll)return;let rr=this.processedXData,cr=this.processedYData,ir=[],dr=cr.length,gr=this.options,br=gr.threshold||0,ar=gr.startFromThreshold?br:0,ur=gr.stack,xr=jt?`${this.type},${or}`:this.stackKey||"",Mr="-"+xr,Ar=this.negStacks,Ir=$t.stacking,Rr=Ir.stacks,wr=Ir.oldStacks;for(Ir.stacksTouched+=1,Xt=0;Xt<dr;Xt++){er=rr[Xt],nr=cr[Xt],Zt=(Wt=this.getStackIndicator(Wt,er,this.index)).key||"",Rr[Gt=(Ut=Ar&&nr<(ar?0:br))?Mr:xr]||(Rr[Gt]={}),Rr[Gt][er]||((qr=wr[Gt])!=null&&qr[er]?(Rr[Gt][er]=wr[Gt][er],Rr[Gt][er].total=null):Rr[Gt][er]=new pt($t,$t.options.stackLabels,!!Ut,er,ur)),Vt=Rr[Gt][er],nr!==null?(Vt.points[Zt]=Vt.points[this.index]=[Dt(Vt.cumulative,ar)],At(Vt.cumulative)||(Vt.base=Zt),Vt.touched=Ir.stacksTouched,Wt.index>0&&this.singleStacks===!1&&(Vt.points[Zt][0]=Vt.points[this.index+","+er+",0"][0])):(delete Vt.points[Zt],delete Vt.points[this.index]);let kr=Vt.total||0;or==="percent"?(Ht=Ut?xr:Mr,kr=Ar&&((Hr=Rr[Ht])!=null&&Hr[er])?(Ht=Rr[Ht][er]).total=Math.max(Ht.total||0,kr)+Math.abs(nr)||0:Ot(kr+(Math.abs(nr)||0))):or==="group"?(Tt(nr)&&(nr=nr[0]),nr!==null&&kr++):kr=Ot(kr+(nr||0)),or==="group"?Vt.cumulative=(kr||1)-1:Vt.cumulative=Ot(Dt(Vt.cumulative,ar)+(nr||0)),Vt.total=kr,nr!==null&&(Vt.points[Zt].push(Vt.cumulative),ir[Xt]=Vt.cumulative,Vt.hasValidPoints=!0)}or==="percent"&&(Ir.usePercentage=!0),or!=="group"&&(this.stackedYData=ir),Ir.oldStacks={}}class Ft{constructor(jt){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=jt}buildStacks(){let jt,Wt,Ut=this.axis,Vt=Ut.series,Ht=Ut.coll==="xAxis",Gt=Ut.options.reversedStacks,Zt=Vt.length;for(this.resetStacks(),this.usePercentage=!1,Wt=Zt;Wt--;)jt=Vt[Gt?Wt:Zt-Wt-1],Ht&&jt.setGroupedPoints(Ut),jt.setStackedPoints(Ut);if(!Ht)for(Wt=0;Wt<Zt;Wt++)Vt[Wt].modifyStacks();zt(Ut,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,It(this.stacks,jt=>{It(jt,Wt=>{Wt.cumulative=Wt.total})}))}resetStacks(){It(this.stacks,jt=>{It(jt,(Wt,Ut)=>{Ct(Wt.touched)&&Wt.touched<this.stacksTouched?(Wt.destroy(),delete jt[Ut]):(Wt.total=null,Wt.cumulative=null)})})}renderStackTotals(){var Zt;let jt=this.axis,Wt=jt.chart,Ut=Wt.renderer,Vt=this.stacks,Ht=xt(Wt,((Zt=jt.options.stackLabels)==null?void 0:Zt.animation)||!1),Gt=this.stackTotalGroup=this.stackTotalGroup||Ut.g("stack-labels").attr({zIndex:6,opacity:0}).add();Gt.translate(Wt.plotLeft,Wt.plotTop),It(Vt,Xt=>{It(Xt,er=>{er.render(Gt)})}),Gt.animate({opacity:1},Ht)}}return(mt||(mt={})).compose=function($t,jt,Wt){let Ut=jt.prototype,Vt=Wt.prototype;Ut.getStacks||(vt($t,"init",Nt),vt($t,"destroy",qt),Ut.getStacks=kt,Vt.getStackIndicator=Yt,Vt.modifyStacks=Kt,Vt.percentStacker=Jt,Vt.setGroupedPoints=Qt,Vt.setStackedPoints=Bt)},mt}),nt(rt,"Series/Line/LineSeries.js",[rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{defined:pt,merge:ht,isObject:mt}=dt;class xt extends lt{drawGraph(){let vt=this.options,Ot=(this.gappedPath||this.getGraphPath).call(this),At=this.chart.styledMode;[this,...this.zones].forEach((Rt,zt)=>{let Tt,Ct=Rt.graph,It=Ct?"animate":"attr",Dt=Rt.dashStyle||vt.dashStyle;Ct?(Ct.endX=this.preventGraphAnimation?null:Ot.xMap,Ct.animate({d:Ot})):Ot.length&&(Rt.graph=Ct=this.chart.renderer.path(Ot).addClass("highcharts-graph"+(zt?` highcharts-zone-graph-${zt-1} `:" ")+(zt&&Rt.className||"")).attr({zIndex:1}).add(this.group)),Ct&&!At&&(Tt={stroke:!zt&&vt.lineColor||Rt.color||this.color||"#cccccc","stroke-width":vt.lineWidth||0,fill:this.fillGraph&&this.color||"none"},Dt?Tt.dashstyle=Dt:vt.linecap!=="square"&&(Tt["stroke-linecap"]=Tt["stroke-linejoin"]="round"),Ct[It](Tt).shadow(zt<2&&vt.shadow&&ht({filterUnits:"userSpaceOnUse"},mt(vt.shadow)?vt.shadow:{}))),Ct&&(Ct.startX=Ot.xMap,Ct.isArea=Ot.isArea)})}getGraphPath(vt,Ot,At){let Rt=this,zt=Rt.options,Tt=[],Ct=[],It,Dt=zt.step,kt=(vt=vt||Rt.points).reversed;return kt&&vt.reverse(),(Dt={right:1,center:2}[Dt]||Dt&&3)&&kt&&(Dt=4-Dt),(vt=this.getValidPoints(vt,!1,!(zt.connectNulls&&!Ot&&!At))).forEach(function(qt,Nt){let Yt,Kt=qt.plotX,Jt=qt.plotY,Qt=vt[Nt-1],Bt=qt.isNull||typeof Jt!="number";(qt.leftCliff||Qt&&Qt.rightCliff)&&!At&&(It=!0),Bt&&!pt(Ot)&&Nt>0?It=!zt.connectNulls:Bt&&!Ot?It=!0:(Nt===0||It?Yt=[["M",qt.plotX,qt.plotY]]:Rt.getPointSpline?Yt=[Rt.getPointSpline(vt,qt,Nt)]:Dt?(Yt=Dt===1?[["L",Qt.plotX,Jt]]:Dt===2?[["L",(Qt.plotX+Kt)/2,Qt.plotY],["L",(Qt.plotX+Kt)/2,Jt]]:[["L",Kt,Qt.plotY]]).push(["L",Kt,Jt]):Yt=[["L",Kt,Jt]],Ct.push(qt.x),Dt&&(Ct.push(qt.x),Dt===2&&Ct.push(qt.x)),Tt.push.apply(Tt,Yt),It=!1)}),Tt.xMap=Ct,Rt.graphPath=Tt,Tt}}return xt.defaultOptions=ht(lt.defaultOptions,{legendSymbol:"lineMarker"}),ut.registerSeriesType("line",xt),xt}),nt(rt,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),nt(rt,"Series/Area/AreaSeries.js",[rt["Series/Area/AreaSeriesDefaults.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{seriesTypes:{line:pt}}=ut,{extend:ht,merge:mt,objectEach:xt,pick:Mt}=dt;class vt extends pt{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:At,options:Rt}=this;[this,...this.zones].forEach((zt,Tt)=>{let Ct={},It=zt.fillColor||Rt.fillColor,Dt=zt.area,kt=Dt?"animate":"attr";Dt?(Dt.endX=this.preventGraphAnimation?null:At.xMap,Dt.animate({d:At})):(Ct.zIndex=0,(Dt=zt.area=this.chart.renderer.path(At).addClass("highcharts-area"+(Tt?` highcharts-zone-area-${Tt-1} `:" ")+(Tt&&zt.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(Ct.fill=It||zt.color||this.color,Ct["fill-opacity"]=It?1:Rt.fillOpacity??.75,Dt.css({pointerEvents:this.stickyTracking?"none":"auto"})),Dt[kt](Ct),Dt.startX=At.xMap,Dt.shiftUnit=Rt.step?2:1})}getGraphPath(At){let Rt,zt,Tt,Ct=pt.prototype.getGraphPath,It=this.options,Dt=It.stacking,kt=this.yAxis,qt=[],Nt=[],Yt=this.index,Kt=kt.stacking.stacks[this.stackKey],Jt=It.threshold,Qt=Math.round(kt.getThreshold(It.threshold)),Bt=Mt(It.connectNulls,Dt==="percent"),Ft=function(Ht,Gt,Zt){let Xt=At[Ht],er=Dt&&Kt[Xt.x].points[Yt],nr=Xt[Zt+"Null"]||0,or=Xt[Zt+"Cliff"]||0,rr,cr,ir=!0;or||nr?(rr=(nr?er[0]:er[1])+or,cr=er[0]+or,ir=!!nr):!Dt&&At[Gt]&&At[Gt].isNull&&(rr=cr=Jt),rr!==void 0&&(Nt.push({plotX:Rt,plotY:rr===null?Qt:kt.getThreshold(rr),isNull:ir,isCliff:!0}),qt.push({plotX:Rt,plotY:cr===null?Qt:kt.getThreshold(cr),doCurve:!1}))};At=At||this.points,Dt&&(At=this.getStackPoints(At));for(let Ht=0,Gt=At.length;Ht<Gt;++Ht)Dt||(At[Ht].leftCliff=At[Ht].rightCliff=At[Ht].leftNull=At[Ht].rightNull=void 0),zt=At[Ht].isNull,Rt=Mt(At[Ht].rectPlotX,At[Ht].plotX),Tt=Dt?Mt(At[Ht].yBottom,Qt):Qt,zt&&!Bt||(Bt||Ft(Ht,Ht-1,"left"),zt&&!Dt&&Bt||(Nt.push(At[Ht]),qt.push({x:Ht,plotX:Rt,plotY:Tt})),Bt||Ft(Ht,Ht+1,"right"));let $t=Ct.call(this,Nt,!0,!0);qt.reversed=!0;let jt=Ct.call(this,qt,!0,!0),Wt=jt[0];Wt&&Wt[0]==="M"&&(jt[0]=["L",Wt[1],Wt[2]]);let Ut=$t.concat(jt);Ut.length&&Ut.push(["Z"]);let Vt=Ct.call(this,Nt,!1,Bt);return this.chart.series.length>1&&Dt&&Nt.some(Ht=>Ht.isCliff)&&(Ut.hasStackedCliffs=Vt.hasStackedCliffs=!0),Ut.xMap=$t.xMap,this.areaPath=Ut,Vt}getStackPoints(At){let Rt=this,zt=[],Tt=[],Ct=this.xAxis,It=this.yAxis,Dt=It.stacking.stacks[this.stackKey],kt={},qt=It.series,Nt=qt.length,Yt=It.options.reversedStacks?1:-1,Kt=qt.indexOf(Rt);if(At=At||this.points,this.options.stacking){for(let Qt=0;Qt<At.length;Qt++)At[Qt].leftNull=At[Qt].rightNull=void 0,kt[At[Qt].x]=At[Qt];xt(Dt,function(Qt,Bt){Qt.total!==null&&Tt.push(Bt)}),Tt.sort(function(Qt,Bt){return Qt-Bt});let Jt=qt.map(Qt=>Qt.visible);Tt.forEach(function(Qt,Bt){let Ft=0,$t,jt;if(kt[Qt]&&!kt[Qt].isNull)zt.push(kt[Qt]),[-1,1].forEach(function(Wt){let Ut=Wt===1?"rightNull":"leftNull",Vt=Dt[Tt[Bt+Wt]],Ht=0;if(Vt){let Gt=Kt;for(;Gt>=0&&Gt<Nt;){let Zt=qt[Gt].index;!($t=Vt.points[Zt])&&(Zt===Rt.index?kt[Qt][Ut]=!0:Jt[Gt]&&(jt=Dt[Qt].points[Zt])&&(Ht-=jt[1]-jt[0])),Gt+=Yt}}kt[Qt][Wt===1?"rightCliff":"leftCliff"]=Ht});else{let Wt=Kt;for(;Wt>=0&&Wt<Nt;){let Ut=qt[Wt].index;if($t=Dt[Qt].points[Ut]){Ft=$t[1];break}Wt+=Yt}Ft=Mt(Ft,0),Ft=It.translate(Ft,0,1,0,1),zt.push({isNull:!0,plotX:Ct.translate(Qt,0,0,0,1),x:Qt,plotY:Ft,yBottom:Ft})}})}return zt}}return vt.defaultOptions=mt(pt.defaultOptions,lt),ht(vt.prototype,{singleStacks:!1}),ut.registerSeriesType("area",vt),vt}),nt(rt,"Series/Spline/SplineSeries.js",[rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut){let{line:dt}=lt.seriesTypes,{merge:pt,pick:ht}=ut;class mt extends dt{getPointSpline(Mt,vt,Ot){let At,Rt,zt,Tt,Ct=vt.plotX||0,It=vt.plotY||0,Dt=Mt[Ot-1],kt=Mt[Ot+1];function qt(Yt){return Yt&&!Yt.isNull&&Yt.doCurve!==!1&&!vt.isCliff}if(qt(Dt)&&qt(kt)){let Yt=Dt.plotX||0,Kt=Dt.plotY||0,Jt=kt.plotX||0,Qt=kt.plotY||0,Bt=0;At=(1.5*Ct+Yt)/2.5,Rt=(1.5*It+Kt)/2.5,zt=(1.5*Ct+Jt)/2.5,Tt=(1.5*It+Qt)/2.5,zt!==At&&(Bt=(Tt-Rt)*(zt-Ct)/(zt-At)+It-Tt),Rt+=Bt,Tt+=Bt,Rt>Kt&&Rt>It?(Rt=Math.max(Kt,It),Tt=2*It-Rt):Rt<Kt&&Rt<It&&(Rt=Math.min(Kt,It),Tt=2*It-Rt),Tt>Qt&&Tt>It?(Tt=Math.max(Qt,It),Rt=2*It-Tt):Tt<Qt&&Tt<It&&(Tt=Math.min(Qt,It),Rt=2*It-Tt),vt.rightContX=zt,vt.rightContY=Tt,vt.controlPoints={low:[At,Rt],high:[zt,Tt]}}let Nt=["C",ht(Dt.rightContX,Dt.plotX,0),ht(Dt.rightContY,Dt.plotY,0),ht(At,Ct,0),ht(Rt,It,0),Ct,It];return Dt.rightContX=Dt.rightContY=void 0,Nt}}return mt.defaultOptions=pt(dt.defaultOptions),lt.registerSeriesType("spline",mt),mt}),nt(rt,"Series/AreaSpline/AreaSplineSeries.js",[rt["Series/Spline/SplineSeries.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{area:pt,area:{prototype:ht}}=ut.seriesTypes,{extend:mt,merge:xt}=dt;class Mt extends lt{}return Mt.defaultOptions=xt(lt.defaultOptions,pt.defaultOptions),mt(Mt.prototype,{getGraphPath:ht.getGraphPath,getStackPoints:ht.getStackPoints,drawGraph:ht.drawGraph}),ut.registerSeriesType("areaspline",Mt),Mt}),nt(rt,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),nt(rt,"Series/Column/ColumnSeries.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Color/Color.js"],rt["Series/Column/ColumnSeriesDefaults.js"],rt["Core/Globals.js"],rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt){let{animObject:Mt}=lt,{parse:vt}=ut,{noop:Ot}=pt,{clamp:At,crisp:Rt,defined:zt,extend:Tt,fireEvent:Ct,isArray:It,isNumber:Dt,merge:kt,pick:qt,objectEach:Nt}=xt;class Yt extends ht{animate(Jt){let Qt,Bt,Ft=this,$t=this.yAxis,jt=$t.pos,Wt=$t.reversed,Ut=Ft.options,{clipOffset:Vt,inverted:Ht}=this.chart,Gt={},Zt=Ht?"translateX":"translateY";Jt&&Vt?(Gt.scaleY=.001,Bt=At($t.toPixels(Ut.threshold),jt,jt+$t.len),Ht?(Bt+=Wt?-Math.floor(Vt[0]):Math.ceil(Vt[2]),Gt.translateX=Bt-$t.len):(Bt+=Wt?Math.ceil(Vt[0]):-Math.floor(Vt[2]),Gt.translateY=Bt),Ft.clipBox&&Ft.setClip(),Ft.group.attr(Gt)):(Qt=Number(Ft.group.attr(Zt)),Ft.group.animate({scaleY:1},Tt(Mt(Ft.options.animation),{step:function(Xt,er){Ft.group&&(Gt[Zt]=Qt+er.pos*(jt-Qt),Ft.group.attr(Gt))}})))}init(Jt,Qt){super.init.apply(this,arguments);let Bt=this;(Jt=Bt.chart).hasRendered&&Jt.series.forEach(function(Ft){Ft.type===Bt.type&&(Ft.isDirty=!0)})}getColumnMetrics(){var nr,or;let Jt=this,Qt=Jt.options,Bt=Jt.xAxis,Ft=Jt.yAxis,$t=Bt.options.reversedStacks,jt=Bt.reversed&&!$t||!Bt.reversed&&$t,Wt={},Ut,Vt=0;Qt.grouping===!1?Vt=1:Jt.chart.series.forEach(function(rr){let cr,ir=rr.yAxis,dr=rr.options;rr.type===Jt.type&&rr.reserveSpace()&&Ft.len===ir.len&&Ft.pos===ir.pos&&(dr.stacking&&dr.stacking!=="group"?(Wt[Ut=rr.stackKey]===void 0&&(Wt[Ut]=Vt++),cr=Wt[Ut]):dr.grouping!==!1&&(cr=Vt++),rr.columnIndex=cr)});let Ht=Math.min(Math.abs(Bt.transA)*(!((nr=Bt.brokenAxis)!=null&&nr.hasBreaks)&&((or=Bt.ordinal)==null?void 0:or.slope)||Qt.pointRange||Bt.closestPointRange||Bt.tickInterval||1),Bt.len),Gt=Ht*Qt.groupPadding,Zt=(Ht-2*Gt)/(Vt||1),Xt=Math.min(Qt.maxPointWidth||Bt.len,qt(Qt.pointWidth,Zt*(1-2*Qt.pointPadding))),er=(Jt.columnIndex||0)+(jt?1:0);return Jt.columnMetrics={width:Xt,offset:(Zt-Xt)/2+(Gt+er*Zt-Ht/2)*(jt?-1:1),paddedWidth:Zt,columnCount:Vt},Jt.columnMetrics}crispCol(Jt,Qt,Bt,Ft){let $t=this.borderWidth,jt=this.chart.inverted;return Ft=Rt(Qt+Ft,$t,jt)-(Qt=Rt(Qt,$t,jt)),this.options.crisp&&(Bt=Rt(Jt+Bt,$t)-(Jt=Rt(Jt,$t))),{x:Jt,y:Qt,width:Bt,height:Ft}}adjustForMissingColumns(Jt,Qt,Bt,Ft){var $t;if(!Bt.isNull&&Ft.columnCount>1){let jt=this.xAxis.series.filter(Ht=>Ht.visible).map(Ht=>Ht.index),Wt=0,Ut=0;Nt(($t=this.xAxis.stacking)==null?void 0:$t.stacks,Ht=>{if(typeof Bt.x=="number"){let Gt=Ht[Bt.x.toString()];if(Gt&&It(Gt.points[this.index])){let Zt=Object.keys(Gt.points).filter(Xt=>!Xt.match(",")&&Gt.points[Xt]&&Gt.points[Xt].length>1).map(parseFloat).filter(Xt=>jt.indexOf(Xt)!==-1).sort((Xt,er)=>er-Xt);Wt=Zt.indexOf(this.index),Ut=Zt.length}}}),Wt=this.xAxis.reversed?Ut-1-Wt:Wt;let Vt=(Ut-1)*Ft.paddedWidth+Qt;Jt=(Bt.plotX||0)+Vt/2-Qt-Wt*Ft.paddedWidth}return Jt}translate(){let Jt=this,Qt=Jt.chart,Bt=Jt.options,Ft=Jt.dense=Jt.closestPointRange*Jt.xAxis.transA<2,$t=Jt.borderWidth=qt(Bt.borderWidth,Ft?0:1),jt=Jt.xAxis,Wt=Jt.yAxis,Ut=Bt.threshold,Vt=qt(Bt.minPointLength,5),Ht=Jt.getColumnMetrics(),Gt=Ht.width,Zt=Jt.pointXOffset=Ht.offset,Xt=Jt.dataMin,er=Jt.dataMax,nr=Jt.translatedThreshold=Wt.getThreshold(Ut),or=Jt.barW=Math.max(Gt,1+2*$t);Bt.pointPadding&&(or=Math.ceil(or)),ht.prototype.translate.apply(Jt),Jt.points.forEach(function(rr){let cr=qt(rr.yBottom,nr),ir=999+Math.abs(cr),dr=rr.plotX||0,gr=At(rr.plotY,-ir,Wt.len+ir),br,ar=Math.min(gr,cr),ur=Math.max(gr,cr)-ar,xr=Gt,Mr=dr+Zt,Ar=or;Vt&&Math.abs(ur)<Vt&&(ur=Vt,br=!Wt.reversed&&!rr.negative||Wt.reversed&&rr.negative,Dt(Ut)&&Dt(er)&&rr.y===Ut&&er<=Ut&&(Wt.min||0)<Ut&&(Xt!==er||(Wt.max||0)<=Ut)&&(br=!br,rr.negative=!rr.negative),ar=Math.abs(ar-nr)>Vt?cr-Vt:nr-(br?Vt:0)),zt(rr.options.pointWidth)&&(Mr-=Math.round(((xr=Ar=Math.ceil(rr.options.pointWidth))-Gt)/2)),Bt.centerInCategory&&!Bt.stacking&&(Mr=Jt.adjustForMissingColumns(Mr,xr,rr,Ht)),rr.barX=Mr,rr.pointWidth=xr,rr.tooltipPos=Qt.inverted?[At(Wt.len+Wt.pos-Qt.plotLeft-gr,Wt.pos-Qt.plotLeft,Wt.len+Wt.pos-Qt.plotLeft),jt.len+jt.pos-Qt.plotTop-Mr-Ar/2,ur]:[jt.left-Qt.plotLeft+Mr+Ar/2,At(gr+Wt.pos-Qt.plotTop,Wt.pos-Qt.plotTop,Wt.len+Wt.pos-Qt.plotTop),ur],rr.shapeType=Jt.pointClass.prototype.shapeType||"roundedRect",rr.shapeArgs=Jt.crispCol(Mr,rr.isNull?nr:ar,Ar,rr.isNull?0:ur)}),Ct(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(Jt,Qt){let Bt=this.options,Ft=this.pointAttrToOptions||{},$t=Ft.stroke||"borderColor",jt=Ft["stroke-width"]||"borderWidth",Wt,Ut,Vt,Ht=Jt&&Jt.color||this.color,Gt=Jt&&Jt[$t]||Bt[$t]||Ht,Zt=Jt&&Jt.options.dashStyle||Bt.dashStyle,Xt=Jt&&Jt[jt]||Bt[jt]||this[jt]||0,er=qt(Jt&&Jt.opacity,Bt.opacity,1);Jt&&this.zones.length&&(Ut=Jt.getZone(),Ht=Jt.options.color||Ut&&(Ut.color||Jt.nonZonedColor)||this.color,Ut&&(Gt=Ut.borderColor||Gt,Zt=Ut.dashStyle||Zt,Xt=Ut.borderWidth||Xt)),Qt&&Jt&&(Vt=(Wt=kt(Bt.states[Qt],Jt.options.states&&Jt.options.states[Qt]||{})).brightness,Ht=Wt.color||Vt!==void 0&&vt(Ht).brighten(Wt.brightness).get()||Ht,Gt=Wt[$t]||Gt,Xt=Wt[jt]||Xt,Zt=Wt.dashStyle||Zt,er=qt(Wt.opacity,er));let nr={fill:Ht,stroke:Gt,"stroke-width":Xt,opacity:er};return Zt&&(nr.dashstyle=Zt),nr}drawPoints(Jt=this.points){let Qt,Bt=this,Ft=this.chart,$t=Bt.options,jt=Ft.renderer,Wt=$t.animationLimit||250;Jt.forEach(function(Ut){let Vt=Ut.plotY,Ht=Ut.graphic,Gt=!!Ht,Zt=Ht&&Ft.pointCount<Wt?"animate":"attr";Dt(Vt)&&Ut.y!==null?(Qt=Ut.shapeArgs,Ht&&Ut.hasNewShapeType()&&(Ht=Ht.destroy()),Bt.enabledDataSorting&&(Ut.startXPos=Bt.xAxis.reversed?-(Qt&&Qt.width||0):Bt.xAxis.width),!Ht&&(Ut.graphic=Ht=jt[Ut.shapeType](Qt).add(Ut.group||Bt.group),Ht&&Bt.enabledDataSorting&&Ft.hasRendered&&Ft.pointCount<Wt&&(Ht.attr({x:Ut.startXPos}),Gt=!0,Zt="animate")),Ht&&Gt&&Ht[Zt](kt(Qt)),Ft.styledMode||Ht[Zt](Bt.pointAttribs(Ut,Ut.selected&&"select")).shadow(Ut.allowShadow!==!1&&$t.shadow),Ht&&(Ht.addClass(Ut.getClassName(),!0),Ht.attr({visibility:Ut.visible?"inherit":"hidden"}))):Ht&&(Ut.graphic=Ht.destroy())})}drawTracker(Jt=this.points){let Qt,Bt=this,Ft=Bt.chart,$t=Ft.pointer,jt=function(Wt){let Ut=$t==null?void 0:$t.getPointFromEvent(Wt);$t&&Ut&&Bt.options.enableMouseTracking&&($t.isDirectTouch=!0,Ut.onMouseOver(Wt))};Jt.forEach(function(Wt){Qt=It(Wt.dataLabels)?Wt.dataLabels:Wt.dataLabel?[Wt.dataLabel]:[],Wt.graphic&&(Wt.graphic.element.point=Wt),Qt.forEach(function(Ut){(Ut.div||Ut.element).point=Wt})}),Bt._hasTracking||(Bt.trackerGroups.forEach(function(Wt){Bt[Wt]&&(Bt[Wt].addClass("highcharts-tracker").on("mouseover",jt).on("mouseout",function(Ut){$t==null||$t.onTrackerMouseOut(Ut)}).on("touchstart",jt),!Ft.styledMode&&Bt.options.cursor&&Bt[Wt].css({cursor:Bt.options.cursor}))}),Bt._hasTracking=!0),Ct(this,"afterDrawTracker")}remove(){let Jt=this,Qt=Jt.chart;Qt.hasRendered&&Qt.series.forEach(function(Bt){Bt.type===Jt.type&&(Bt.isDirty=!0)}),ht.prototype.remove.apply(Jt,arguments)}}return Yt.defaultOptions=kt(ht.defaultOptions,dt),Tt(Yt.prototype,{directTouch:!0,getSymbol:Ot,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),mt.registerSeriesType("column",Yt),Yt}),nt(rt,"Core/Series/DataLabel.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Templating.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){var pt;let{getDeferredAnimation:ht}=lt,{format:mt}=ut,{defined:xt,extend:Mt,fireEvent:vt,isArray:Ot,isString:At,merge:Rt,objectEach:zt,pick:Tt,pInt:Ct,splat:It}=dt;return function(Dt){function kt(){return Bt(this).some($t=>$t==null?void 0:$t.enabled)}function qt($t,jt,Wt,Ut,Vt){var gr;let{chart:Ht,enabledDataSorting:Gt}=this,Zt=this.isCartesian&&Ht.inverted,Xt=$t.plotX,er=$t.plotY,nr=Wt.rotation||0,or=xt(Xt)&&xt(er)&&Ht.isInsidePlot(Xt,Math.round(er),{inverted:Zt,paneCoordinates:!0,series:this}),rr=nr===0&&Tt(Wt.overflow,Gt?"none":"justify")==="justify",cr=this.visible&&$t.visible!==!1&&xt(Xt)&&($t.series.forceDL||Gt&&!rr||or||Tt(Wt.inside,!!this.options.stacking)&&Ut&&Ht.isInsidePlot(Xt,Zt?Ut.x+1:Ut.y+Ut.height-1,{inverted:Zt,paneCoordinates:!0,series:this})),ir=$t.pos();if(cr&&ir){var dr;let br=jt.getBBox(),ar=jt.getBBox(void 0,0),ur={right:1,center:.5}[Wt.align||0]||0,xr={bottom:1,middle:.5}[Wt.verticalAlign||0]||0;if(Ut=Mt({x:ir[0],y:Math.round(ir[1]),width:0,height:0},Ut||{}),Wt.alignTo==="plotEdges"&&this.isCartesian&&(Ut[Zt?"x":"y"]=0,Ut[Zt?"width":"height"]=((gr=this.yAxis)==null?void 0:gr.len)||0),Mt(Wt,{width:br.width,height:br.height}),dr=Ut,Gt&&this.xAxis&&!rr&&this.setDataLabelStartPos($t,jt,Vt,or,dr),jt.align(Rt(Wt,{width:ar.width,height:ar.height}),!1,Ut,!1),jt.alignAttr.x+=ur*(ar.width-br.width),jt.alignAttr.y+=xr*(ar.height-br.height),jt[jt.placed?"animate":"attr"]({x:jt.alignAttr.x+(br.width-ar.width)/2,y:jt.alignAttr.y+(br.height-ar.height)/2,rotationOriginX:(jt.width||0)/2,rotationOriginY:(jt.height||0)/2}),rr&&Ut.height>=0)this.justifyDataLabel(jt,Wt,jt.alignAttr,br,Ut,Vt);else if(Tt(Wt.crop,!0)){let{x:Mr,y:Ar}=jt.alignAttr;cr=Ht.isInsidePlot(Mr,Ar,{paneCoordinates:!0,series:this})&&Ht.isInsidePlot(Mr+br.width-1,Ar+br.height-1,{paneCoordinates:!0,series:this})}Wt.shape&&!nr&&jt[Vt?"attr":"animate"]({anchorX:ir[0],anchorY:ir[1]})}Vt&&Gt&&(jt.placed=!1),cr||Gt&&!rr?(jt.show(),jt.placed=!0):(jt.hide(),jt.placed=!1)}function Nt(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function Yt($t){let jt=this.hasRendered||0,Wt=this.initDataLabelsGroup().attr({opacity:+jt});return!jt&&Wt&&(this.visible&&Wt.show(),this.options.animation?Wt.animate({opacity:1},$t):Wt.attr({opacity:1})),Wt}function Kt($t){var cr;let jt;$t=$t||this.points;let Wt=this,Ut=Wt.chart,Vt=Wt.options,Ht=Ut.renderer,{backgroundColor:Gt,plotBackgroundColor:Zt}=Ut.options.chart,Xt=Ht.getContrast(At(Zt)&&Zt||At(Gt)&&Gt||"#000000"),er=Bt(Wt),{animation:nr,defer:or}=er[0],rr=or?ht(Ut,nr,Wt):{defer:0,duration:0};vt(this,"drawDataLabels"),(cr=Wt.hasDataLabels)!=null&&cr.call(Wt)&&(jt=this.initDataLabels(rr),$t.forEach(ir=>{var br,ar;let dr=ir.dataLabels||[];It(Qt(er,ir.dlOptions||((br=ir.options)==null?void 0:br.dataLabels))).forEach((ur,xr)=>{let Mr=ur.enabled&&(ir.visible||ir.dataLabelOnHidden)&&(!ir.isNull||ir.dataLabelOnNull)&&function(Yr,Gr){let Jr=Gr.filter;if(Jr){let jr=Jr.operator,Zr=Yr[Jr.property],Xr=Jr.value;return jr===">"&&Zr>Xr||jr==="<"&&Zr<Xr||jr===">="&&Zr>=Xr||jr==="<="&&Zr<=Xr||jr==="=="&&Zr==Xr||jr==="==="&&Zr===Xr||jr==="!="&&Zr!=Xr||jr==="!=="&&Zr!==Xr}return!0}(ir,ur),{backgroundColor:Ar,borderColor:Ir,distance:Rr,style:wr={}}=ur,qr,Hr,kr,$r,yr={},Or=dr[xr],Dr=!Or,Fr;Mr&&(Hr=Tt(ur[ir.formatPrefix+"Format"],ur.format),qr=ir.getLabelConfig(),kr=xt(Hr)?mt(Hr,qr,Ut):(ur[ir.formatPrefix+"Formatter"]||ur.formatter).call(qr,ur),$r=ur.rotation,!Ut.styledMode&&(wr.color=Tt(ur.color,wr.color,At(Wt.color)?Wt.color:void 0,"#000000"),wr.color==="contrast"?(Ar!=="none"&&(Fr=Ar),ir.contrastColor=Ht.getContrast(Fr!=="auto"&&Fr||ir.color||Wt.color),wr.color=Fr||!xt(Rr)&&ur.inside||0>Ct(Rr||0)||Vt.stacking?ir.contrastColor:Xt):delete ir.contrastColor,Vt.cursor&&(wr.cursor=Vt.cursor)),yr={r:ur.borderRadius||0,rotation:$r,padding:ur.padding,zIndex:1},Ut.styledMode||(yr.fill=Ar==="auto"?ir.color:Ar,yr.stroke=Ir==="auto"?ir.color:Ir,yr["stroke-width"]=ur.borderWidth),zt(yr,(Yr,Gr)=>{Yr===void 0&&delete yr[Gr]})),!Or||Mr&&xt(kr)&&!!Or.div==!!ur.useHTML&&(Or.rotation&&ur.rotation||Or.rotation===ur.rotation)||(Or=void 0,Dr=!0),Mr&&xt(kr)&&(Or?yr.text=kr:(Or=Ht.label(kr,0,0,ur.shape,void 0,void 0,ur.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+ir.colorIndex+" "+(ur.className||"")+(ur.useHTML?" highcharts-tracker":"")),Or&&(Or.options=ur,Or.attr(yr),Ut.styledMode||Or.css(wr).shadow(ur.shadow),vt(Or,"beforeAddingDataLabel",{labelOptions:ur,point:ir}),Or.added||Or.add(jt),Wt.alignDataLabel(ir,Or,ur,void 0,Dr),Or.isActive=!0,dr[xr]&&dr[xr]!==Or&&dr[xr].destroy(),dr[xr]=Or))});let gr=dr.length;for(;gr--;)dr[gr]&&dr[gr].isActive?dr[gr].isActive=!1:((ar=dr[gr])==null||ar.destroy(),dr.splice(gr,1));ir.dataLabel=dr[0],ir.dataLabels=dr})),vt(this,"afterDrawDataLabels")}function Jt($t,jt,Wt,Ut,Vt,Ht){let Gt=this.chart,Zt=jt.align,Xt=jt.verticalAlign,er=$t.box?0:$t.padding||0,nr=Gt.inverted?this.yAxis:this.xAxis,or=nr?nr.left-Gt.plotLeft:0,rr=Gt.inverted?this.xAxis:this.yAxis,cr=rr?rr.top-Gt.plotTop:0,{x:ir=0,y:dr=0}=jt,gr,br;return(gr=(Wt.x||0)+er+or)<0&&(Zt==="right"&&ir>=0?(jt.align="left",jt.inside=!0):ir-=gr,br=!0),(gr=(Wt.x||0)+Ut.width-er+or)>Gt.plotWidth&&(Zt==="left"&&ir<=0?(jt.align="right",jt.inside=!0):ir+=Gt.plotWidth-gr,br=!0),(gr=Wt.y+er+cr)<0&&(Xt==="bottom"&&dr>=0?(jt.verticalAlign="top",jt.inside=!0):dr-=gr,br=!0),(gr=(Wt.y||0)+Ut.height-er+cr)>Gt.plotHeight&&(Xt==="top"&&dr<=0?(jt.verticalAlign="bottom",jt.inside=!0):dr+=Gt.plotHeight-gr,br=!0),br&&(jt.x=ir,jt.y=dr,$t.placed=!Ht,$t.align(jt,void 0,Vt)),br}function Qt($t,jt){let Wt=[],Ut;if(Ot($t)&&!Ot(jt))Wt=$t.map(function(Vt){return Rt(Vt,jt)});else if(Ot(jt)&&!Ot($t))Wt=jt.map(function(Vt){return Rt($t,Vt)});else if(Ot($t)||Ot(jt)){if(Ot($t)&&Ot(jt))for(Ut=Math.max($t.length,jt.length);Ut--;)Wt[Ut]=Rt($t[Ut],jt[Ut])}else Wt=Rt($t,jt);return Wt}function Bt($t){var Wt,Ut;let jt=$t.chart.options.plotOptions;return It(Qt(Qt((Wt=jt==null?void 0:jt.series)==null?void 0:Wt.dataLabels,(Ut=jt==null?void 0:jt[$t.type])==null?void 0:Ut.dataLabels),$t.options.dataLabels))}function Ft($t,jt,Wt,Ut,Vt){let Ht=this.chart,Gt=Ht.inverted,Zt=this.xAxis,Xt=Zt.reversed,er=((Gt?jt.height:jt.width)||0)/2,nr=$t.pointWidth,or=nr?nr/2:0;jt.startXPos=Gt?Vt.x:Xt?-er-or:Zt.width-er+or,jt.startYPos=Gt?Xt?this.yAxis.height-er+or:-er-or:Vt.y,Ut?jt.visibility==="hidden"&&(jt.show(),jt.attr({opacity:0}).animate({opacity:1})):jt.attr({opacity:1}).animate({opacity:0},void 0,jt.hide),Ht.hasRendered&&(Wt&&jt.attr({x:jt.startXPos,y:jt.startYPos}),jt.placed=!0)}Dt.compose=function($t){let jt=$t.prototype;jt.initDataLabels||(jt.initDataLabels=Yt,jt.initDataLabelsGroup=Nt,jt.alignDataLabel=qt,jt.drawDataLabels=Kt,jt.justifyDataLabel=Jt,jt.setDataLabelStartPos=Ft,jt.hasDataLabels=kt)}}(pt||(pt={})),pt}),nt(rt,"Series/Column/ColumnDataLabel.js",[rt["Core/Series/DataLabel.js"],rt["Core/Globals.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){var ht;let{composed:mt}=ut,{series:xt}=dt,{merge:Mt,pick:vt,pushUnique:Ot}=pt;return function(At){function Rt(zt,Tt,Ct,It,Dt){let kt=this.chart.inverted,qt=zt.series,Nt=(qt.xAxis?qt.xAxis.len:this.chart.plotSizeX)||0,Yt=(qt.yAxis?qt.yAxis.len:this.chart.plotSizeY)||0,Kt=zt.dlBox||zt.shapeArgs,Jt=vt(zt.below,zt.plotY>vt(this.translatedThreshold,Yt)),Qt=vt(Ct.inside,!!this.options.stacking);if(Kt){if(It=Mt(Kt),!(Ct.overflow==="allow"&&Ct.crop===!1)){It.y<0&&(It.height+=It.y,It.y=0);let Bt=It.y+It.height-Yt;Bt>0&&Bt<It.height-1&&(It.height-=Bt)}kt&&(It={x:Yt-It.y-It.height,y:Nt-It.x-It.width,width:It.height,height:It.width}),Qt||(kt?(It.x+=Jt?0:It.width,It.width=0):(It.y+=Jt?It.height:0,It.height=0))}Ct.align=vt(Ct.align,!kt||Qt?"center":Jt?"right":"left"),Ct.verticalAlign=vt(Ct.verticalAlign,kt||Qt?"middle":Jt?"top":"bottom"),xt.prototype.alignDataLabel.call(this,zt,Tt,Ct,It,Dt),Ct.inside&&zt.contrastColor&&Tt.css({color:zt.contrastColor})}At.compose=function(zt){lt.compose(xt),Ot(mt,"ColumnDataLabel")&&(zt.prototype.alignDataLabel=Rt)}}(ht||(ht={})),ht}),nt(rt,"Series/Bar/BarSeries.js",[rt["Series/Column/ColumnSeries.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{extend:pt,merge:ht}=dt;class mt extends lt{}return mt.defaultOptions=ht(lt.defaultOptions,{}),pt(mt.prototype,{inverted:!0}),ut.registerSeriesType("bar",mt),mt}),nt(rt,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),nt(rt,"Series/Scatter/ScatterSeries.js",[rt["Series/Scatter/ScatterSeriesDefaults.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{column:pt,line:ht}=ut.seriesTypes,{addEvent:mt,extend:xt,merge:Mt}=dt;class vt extends ht{applyJitter(){let At=this,Rt=this.options.jitter,zt=this.points.length;Rt&&this.points.forEach(function(Tt,Ct){["x","y"].forEach(function(It,Dt){if(Rt[It]&&!Tt.isNull){let kt=`plot${It.toUpperCase()}`,qt=At[`${It}Axis`],Nt=Rt[It]*qt.transA;if(qt&&!qt.logarithmic){let Yt=Math.max(0,(Tt[kt]||0)-Nt),Kt=Math.min(qt.len,(Tt[kt]||0)+Nt);Tt[kt]=Yt+(Kt-Yt)*function(Jt){let Qt=1e4*Math.sin(Jt);return Qt-Math.floor(Qt)}(Ct+Dt*zt),It==="x"&&(Tt.clientX=Tt.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return vt.defaultOptions=Mt(ht.defaultOptions,lt),xt(vt.prototype,{drawTracker:pt.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),mt(vt,"afterTranslate",function(){this.applyJitter()}),ut.registerSeriesType("scatter",vt),vt}),nt(rt,"Series/CenteredUtilities.js",[rt["Core/Globals.js"],rt["Core/Series/Series.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){var pt,ht;let{deg2rad:mt}=lt,{fireEvent:xt,isNumber:Mt,pick:vt,relativeLength:Ot}=dt;return(ht=pt||(pt={})).getCenter=function(){let At=this.options,Rt=this.chart,zt=2*(At.slicedOffset||0),Tt=Rt.plotWidth-2*zt,Ct=Rt.plotHeight-2*zt,It=At.center,Dt=Math.min(Tt,Ct),kt=At.thickness,qt,Nt=At.size,Yt=At.innerSize||0,Kt,Jt;typeof Nt=="string"&&(Nt=parseFloat(Nt)),typeof Yt=="string"&&(Yt=parseFloat(Yt));let Qt=[vt(It[0],"50%"),vt(It[1],"50%"),vt(Nt&&Nt<0?void 0:At.size,"100%"),vt(Yt&&Yt<0?void 0:At.innerSize||0,"0%")];for(!Rt.angular||this instanceof ut||(Qt[3]=0),Kt=0;Kt<4;++Kt)Jt=Qt[Kt],qt=Kt<2||Kt===2&&/%$/.test(Jt),Qt[Kt]=Ot(Jt,[Tt,Ct,Dt,Qt[2]][Kt])+(qt?zt:0);return Qt[3]>Qt[2]&&(Qt[3]=Qt[2]),Mt(kt)&&2*kt<Qt[2]&&kt>0&&(Qt[3]=Qt[2]-2*kt),xt(this,"afterGetCenter",{positions:Qt}),Qt},ht.getStartAndEndRadians=function(At,Rt){let zt=Mt(At)?At:0,Tt=Mt(Rt)&&Rt>zt&&Rt-zt<360?Rt:zt+360;return{start:mt*(zt+-90),end:mt*(Tt+-90)}},pt}),nt(rt,"Series/Pie/PiePoint.js",[rt["Core/Animation/AnimationUtilities.js"],rt["Core/Series/Point.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{setAnimation:pt}=lt,{addEvent:ht,defined:mt,extend:xt,isNumber:Mt,pick:vt,relativeLength:Ot}=dt;class At extends ut{getConnectorPath(zt){let Tt=zt.dataLabelPosition,Ct=zt.options||{},It=Ct.connectorShape,Dt=this.connectorShapes[It]||It;return Tt&&Dt.call(this,{...Tt.computed,alignment:Tt.alignment},Tt.connectorPosition,Ct)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(zt){let Tt=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(Tt.x,Tt.y,Tt.r+zt,Tt.r+zt,{innerR:Tt.r-1,start:Tt.start,end:Tt.end,borderRadius:Tt.borderRadius})}constructor(zt,Tt,Ct){super(zt,Tt,Ct),this.half=0,this.name??(this.name="Slice");let It=Dt=>{this.slice(Dt.type==="select")};ht(this,"select",It),ht(this,"unselect",It)}isValid(){return Mt(this.y)&&this.y>=0}setVisible(zt,Tt=!0){zt!==this.visible&&this.update({visible:zt??!this.visible},Tt,void 0,!1)}slice(zt,Tt,Ct){let It=this.series;pt(Ct,It.chart),Tt=vt(Tt,!0),this.sliced=this.options.sliced=zt=mt(zt)?zt:!this.sliced,It.options.data[It.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return xt(At.prototype,{connectorShapes:{fixedOffset:function(Rt,zt,Tt){let Ct=zt.breakAt,It=zt.touchingSliceAt,Dt=Tt.softConnector?["C",Rt.x+(Rt.alignment==="left"?-5:5),Rt.y,2*Ct.x-It.x,2*Ct.y-It.y,Ct.x,Ct.y]:["L",Ct.x,Ct.y];return[["M",Rt.x,Rt.y],Dt,["L",It.x,It.y]]},straight:function(Rt,zt){let Tt=zt.touchingSliceAt;return[["M",Rt.x,Rt.y],["L",Tt.x,Tt.y]]},crookedLine:function(Rt,zt,Tt){let{breakAt:Ct,touchingSliceAt:It}=zt,{series:Dt}=this,[kt,qt,Nt]=Dt.center,Yt=Nt/2,{plotLeft:Kt,plotWidth:Jt}=Dt.chart,Qt=Rt.alignment==="left",{x:Bt,y:Ft}=Rt,$t=Ct.x;if(Tt.crookDistance){let Wt=Ot(Tt.crookDistance,1);$t=Qt?kt+Yt+(Jt+Kt-kt-Yt)*(1-Wt):Kt+(kt-Yt)*Wt}else $t=kt+(qt-Ft)*Math.tan((this.angle||0)-Math.PI/2);let jt=[["M",Bt,Ft]];return(Qt?$t<=Bt&&$t>=Ct.x:$t>=Bt&&$t<=Ct.x)&&jt.push(["L",$t,Ft]),jt.push(["L",Ct.x,Ct.y],["L",It.x,It.y]),jt}}}),At}),nt(rt,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),nt(rt,"Series/Pie/PieSeries.js",[rt["Series/CenteredUtilities.js"],rt["Series/Column/ColumnSeries.js"],rt["Core/Globals.js"],rt["Series/Pie/PiePoint.js"],rt["Series/Pie/PieSeriesDefaults.js"],rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Renderer/SVG/Symbols.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt){let{getStartAndEndRadians:Ot}=lt,{noop:At}=dt,{clamp:Rt,extend:zt,fireEvent:Tt,merge:Ct,pick:It}=vt;class Dt extends mt{animate(qt){let Nt=this,Yt=Nt.points,Kt=Nt.startAngleRad;qt||Yt.forEach(function(Jt){let Qt=Jt.graphic,Bt=Jt.shapeArgs;Qt&&Bt&&(Qt.attr({r:It(Jt.startR,Nt.center&&Nt.center[3]/2),start:Kt,end:Kt}),Qt.animate({r:Bt.r,start:Bt.start,end:Bt.end},Nt.options.animation))})}drawEmpty(){let qt,Nt,Yt=this.startAngleRad,Kt=this.endAngleRad,Jt=this.options;this.total===0&&this.center?(qt=this.center[0],Nt=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(qt,Nt,this.center[1]/2,0,Yt,Kt).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Mt.arc(qt,Nt,this.center[2]/2,0,{start:Yt,end:Kt,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":Jt.borderWidth,fill:Jt.fillColor||"none",stroke:Jt.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let qt=this.chart.renderer;this.points.forEach(function(Nt){Nt.graphic&&Nt.hasNewShapeType()&&(Nt.graphic=Nt.graphic.destroy()),Nt.graphic||(Nt.graphic=qt[Nt.shapeType](Nt.shapeArgs).add(Nt.series.group),Nt.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(qt,Nt,Yt,Kt){let Jt=this.center,Qt=this.radii?this.radii[Yt.index]||0:Jt[2]/2,Bt=Kt.dataLabelPosition,Ft=(Bt==null?void 0:Bt.distance)||0,$t=Math.asin(Rt((qt-Jt[1])/(Qt+Ft),-1,1));return Jt[0]+Math.cos($t)*(Qt+Ft)*(Nt?-1:1)+(Ft>0?(Nt?-1:1)*(Kt.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let qt,Nt,Yt,Kt,Jt=this,Qt=Jt.chart;this.drawEmpty(),Jt.group&&!Qt.styledMode&&Jt.group.shadow(Jt.options.shadow),Jt.points.forEach(function(Bt){let Ft={};Nt=Bt.graphic,!Bt.isNull&&Nt?(Kt=Bt.shapeArgs,qt=Bt.getTranslate(),Qt.styledMode||(Yt=Jt.pointAttribs(Bt,Bt.selected&&"select")),Bt.delayedRendering?(Nt.setRadialReference(Jt.center).attr(Kt).attr(qt),Qt.styledMode||Nt.attr(Yt).attr({"stroke-linejoin":"round"}),Bt.delayedRendering=!1):(Nt.setRadialReference(Jt.center),Qt.styledMode||Ct(!0,Ft,Yt),Ct(!0,Ft,Kt,qt),Nt.animate(Ft)),Nt.attr({visibility:Bt.visible?"inherit":"hidden"}),Nt.addClass(Bt.getClassName(),!0)):Nt&&(Bt.graphic=Nt.destroy())})}sortByAngle(qt,Nt){qt.sort(function(Yt,Kt){return Yt.angle!==void 0&&(Kt.angle-Yt.angle)*Nt})}translate(qt){Tt(this,"translate"),this.generatePoints();let Nt=this.options,Yt=Nt.slicedOffset,Kt=Ot(Nt.startAngle,Nt.endAngle),Jt=this.startAngleRad=Kt.start,Qt=(this.endAngleRad=Kt.end)-Jt,Bt=this.points,Ft=Nt.ignoreHiddenPoint,$t=Bt.length,jt,Wt,Ut,Vt,Ht,Gt,Zt,Xt=0;for(qt||(this.center=qt=this.getCenter()),Gt=0;Gt<$t;Gt++){Zt=Bt[Gt],jt=Jt+Xt*Qt,Zt.isValid()&&(!Ft||Zt.visible)&&(Xt+=Zt.percentage/100),Wt=Jt+Xt*Qt;let er={x:qt[0],y:qt[1],r:qt[2]/2,innerR:qt[3]/2,start:Math.round(1e3*jt)/1e3,end:Math.round(1e3*Wt)/1e3};Zt.shapeType="arc",Zt.shapeArgs=er,(Ut=(Wt+jt)/2)>1.5*Math.PI?Ut-=2*Math.PI:Ut<-Math.PI/2&&(Ut+=2*Math.PI),Zt.slicedTranslation={translateX:Math.round(Math.cos(Ut)*Yt),translateY:Math.round(Math.sin(Ut)*Yt)},Vt=Math.cos(Ut)*qt[2]/2,Ht=Math.sin(Ut)*qt[2]/2,Zt.tooltipPos=[qt[0]+.7*Vt,qt[1]+.7*Ht],Zt.half=Ut<-Math.PI/2||Ut>Math.PI/2?1:0,Zt.angle=Ut}Tt(this,"afterTranslate")}updateTotals(){let qt=this.points,Nt=qt.length,Yt=this.options.ignoreHiddenPoint,Kt,Jt,Qt=0;for(Kt=0;Kt<Nt;Kt++)(Jt=qt[Kt]).isValid()&&(!Yt||Jt.visible)&&(Qt+=Jt.y);for(Kt=0,this.total=Qt;Kt<Nt;Kt++)(Jt=qt[Kt]).percentage=Qt>0&&(Jt.visible||!Yt)?Jt.y/Qt*100:0,Jt.total=Qt}}return Dt.defaultOptions=Ct(mt.defaultOptions,ht),zt(Dt.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:ut.prototype.drawTracker,getCenter:lt.getCenter,getSymbol:At,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:ut.prototype.pointAttribs,pointClass:pt,requireSorting:!1,searchPoint:At,trackerGroups:["group","dataLabelsGroup"]}),xt.registerSeriesType("pie",Dt),Dt}),nt(rt,"Series/Pie/PieDataLabel.js",[rt["Core/Series/DataLabel.js"],rt["Core/Globals.js"],rt["Core/Renderer/RendererUtilities.js"],rt["Core/Series/SeriesRegistry.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){var mt;let{composed:xt,noop:Mt}=ut,{distribute:vt}=dt,{series:Ot}=pt,{arrayMax:At,clamp:Rt,defined:zt,pick:Tt,pushUnique:Ct,relativeLength:It}=ht;return function(Dt){let kt={radialDistributionY:function(Jt,Qt){var Bt;return(((Bt=Qt.dataLabelPosition)==null?void 0:Bt.top)||0)+Jt.distributeBox.pos},radialDistributionX:function(Jt,Qt,Bt,Ft,$t){let jt=$t.dataLabelPosition;return Jt.getX(Bt<((jt==null?void 0:jt.top)||0)+2||Bt>((jt==null?void 0:jt.bottom)||0)-2?Ft:Bt,Qt.half,Qt,$t)},justify:function(Jt,Qt,Bt,Ft){var $t;return Ft[0]+(Jt.half?-1:1)*(Bt+((($t=Qt.dataLabelPosition)==null?void 0:$t.distance)||0))},alignToPlotEdges:function(Jt,Qt,Bt,Ft){let $t=Jt.getBBox().width;return Qt?$t+Ft:Bt-$t-Ft},alignToConnectors:function(Jt,Qt,Bt,Ft){let $t=0,jt;return Jt.forEach(function(Wt){(jt=Wt.dataLabel.getBBox().width)>$t&&($t=jt)}),Qt?$t+Ft:Bt-$t-Ft}};function qt(Jt,Qt){let{center:Bt,options:Ft}=this,$t=Bt[2]/2,jt=Jt.angle||0,Wt=Math.cos(jt),Ut=Math.sin(jt),Vt=Bt[0]+Wt*$t,Ht=Bt[1]+Ut*$t,Gt=Math.min((Ft.slicedOffset||0)+(Ft.borderWidth||0),Qt/5);return{natural:{x:Vt+Wt*Qt,y:Ht+Ut*Qt},computed:{},alignment:Qt<0?"center":Jt.half?"right":"left",connectorPosition:{breakAt:{x:Vt+Wt*Gt,y:Ht+Ut*Gt},touchingSliceAt:{x:Vt,y:Ht}},distance:Qt}}function Nt(){var cr;let Jt=this,Qt=Jt.points,Bt=Jt.chart,Ft=Bt.plotWidth,$t=Bt.plotHeight,jt=Bt.plotLeft,Wt=Math.round(Bt.chartWidth/3),Ut=Jt.center,Vt=Ut[2]/2,Ht=Ut[1],Gt=[[],[]],Zt=[0,0,0,0],Xt=Jt.dataLabelPositioners,er,nr,or,rr=0;Jt.visible&&((cr=Jt.hasDataLabels)!=null&&cr.call(Jt))&&(Qt.forEach(ir=>{(ir.dataLabels||[]).forEach(dr=>{dr.shortened&&(dr.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),dr.shortened=!1)})}),Ot.prototype.drawDataLabels.apply(Jt),Qt.forEach(ir=>{(ir.dataLabels||[]).forEach((dr,gr)=>{var xr;let br=Ut[2]/2,ar=dr.options,ur=It((ar==null?void 0:ar.distance)||0,br);gr===0&&Gt[ir.half].push(ir),!zt((xr=ar==null?void 0:ar.style)==null?void 0:xr.width)&&dr.getBBox().width>Wt&&(dr.css({width:Math.round(.7*Wt)+"px"}),dr.shortened=!0),dr.dataLabelPosition=this.getDataLabelPosition(ir,ur),rr=Math.max(rr,ur)})}),Gt.forEach((ir,dr)=>{let gr=ir.length,br=[],ar,ur,xr=0,Mr;gr&&(Jt.sortByAngle(ir,dr-.5),rr>0&&(ar=Math.max(0,Ht-Vt-rr),ur=Math.min(Ht+Vt+rr,Bt.plotHeight),ir.forEach(Ar=>{(Ar.dataLabels||[]).forEach(Ir=>{var wr;let Rr=Ir.dataLabelPosition;Rr&&Rr.distance>0&&(Rr.top=Math.max(0,Ht-Vt-Rr.distance),Rr.bottom=Math.min(Ht+Vt+Rr.distance,Bt.plotHeight),xr=Ir.getBBox().height||21,Ir.lineHeight=Bt.renderer.fontMetrics(Ir.text||Ir).h+2*Ir.padding,Ar.distributeBox={target:(((wr=Ir.dataLabelPosition)==null?void 0:wr.natural.y)||0)-Rr.top+Ir.lineHeight/2,size:xr,rank:Ar.y},br.push(Ar.distributeBox))})}),vt(br,Mr=ur+xr-ar,Mr/5)),ir.forEach(Ar=>{(Ar.dataLabels||[]).forEach(Ir=>{let Rr=Ir.options||{},wr=Ar.distributeBox,qr=Ir.dataLabelPosition,Hr=(qr==null?void 0:qr.natural.y)||0,kr=Rr.connectorPadding||0,$r=Ir.lineHeight||21,yr=($r-Ir.getBBox().height)/2,Or=0,Dr=Hr,Fr="inherit";if(qr){if(br&&zt(wr)&&qr.distance>0&&(wr.pos===void 0?Fr="hidden":(or=wr.size,Dr=Xt.radialDistributionY(Ar,Ir))),Rr.justify)Or=Xt.justify(Ar,Ir,Vt,Ut);else switch(Rr.alignTo){case"connectors":Or=Xt.alignToConnectors(ir,dr,Ft,jt);break;case"plotEdges":Or=Xt.alignToPlotEdges(Ir,dr,Ft,jt);break;default:Or=Xt.radialDistributionX(Jt,Ar,Dr-yr,Hr,Ir)}if(qr.attribs={visibility:Fr,align:qr.alignment},qr.posAttribs={x:Or+(Rr.x||0)+({left:kr,right:-kr}[qr.alignment]||0),y:Dr+(Rr.y||0)-$r/2},qr.computed.x=Or,qr.computed.y=Dr-yr,Tt(Rr.crop,!0)){let Yr;Or-(nr=Ir.getBBox().width)<kr&&dr===1?(Yr=Math.round(nr-Or+kr),Zt[3]=Math.max(Yr,Zt[3])):Or+nr>Ft-kr&&dr===0&&(Yr=Math.round(Or+nr-Ft+kr),Zt[1]=Math.max(Yr,Zt[1])),Dr-or/2<0?Zt[0]=Math.max(Math.round(-Dr+or/2),Zt[0]):Dr+or/2>$t&&(Zt[2]=Math.max(Math.round(Dr+or/2-$t),Zt[2])),qr.sideOverflow=Yr}}})}))}),(At(Zt)===0||this.verifyDataLabelOverflow(Zt))&&(this.placeDataLabels(),this.points.forEach(ir=>{(ir.dataLabels||[]).forEach(dr=>{var ur;let{connectorColor:gr,connectorWidth:br=1}=dr.options||{},ar=dr.dataLabelPosition;if(br){let xr;er=dr.connector,ar&&ar.distance>0?(xr=!er,er||(dr.connector=er=Bt.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+ir.colorIndex+(ir.className?" "+ir.className:"")).add(Jt.dataLabelsGroup)),Bt.styledMode||er.attr({"stroke-width":br,stroke:gr||ir.color||"#666666"}),er[xr?"attr":"animate"]({d:ir.getConnectorPath(dr)}),er.attr({visibility:(ur=ar.attribs)==null?void 0:ur.visibility})):er&&(dr.connector=er.destroy())}})})))}function Yt(){this.points.forEach(Jt=>{(Jt.dataLabels||[]).forEach(Qt=>{var Ft;let Bt=Qt.dataLabelPosition;Bt?(Bt.sideOverflow&&(Qt.css({width:Math.max(Qt.getBBox().width-Bt.sideOverflow,0)+"px",textOverflow:(((Ft=Qt.options)==null?void 0:Ft.style)||{}).textOverflow||"ellipsis"}),Qt.shortened=!0),Qt.attr(Bt.attribs),Qt[Qt.moved?"animate":"attr"](Bt.posAttribs),Qt.moved=!0):Qt&&Qt.attr({y:-9999})}),delete Jt.distributeBox},this)}function Kt(Jt){let Qt=this.center,Bt=this.options,Ft=Bt.center,$t=Bt.minSize||80,jt=$t,Wt=Bt.size!==null;return!Wt&&(Ft[0]!==null?jt=Math.max(Qt[2]-Math.max(Jt[1],Jt[3]),$t):(jt=Math.max(Qt[2]-Jt[1]-Jt[3],$t),Qt[0]+=(Jt[3]-Jt[1])/2),Ft[1]!==null?jt=Rt(jt,$t,Qt[2]-Math.max(Jt[0],Jt[2])):(jt=Rt(jt,$t,Qt[2]-Jt[0]-Jt[2]),Qt[1]+=(Jt[0]-Jt[2])/2),jt<Qt[2]?(Qt[2]=jt,Qt[3]=Math.min(Bt.thickness?Math.max(0,jt-2*Bt.thickness):Math.max(0,It(Bt.innerSize||0,jt)),jt),this.translate(Qt),this.drawDataLabels&&this.drawDataLabels()):Wt=!0),Wt}Dt.compose=function(Jt){if(lt.compose(Ot),Ct(xt,"PieDataLabel")){let Qt=Jt.prototype;Qt.dataLabelPositioners=kt,Qt.alignDataLabel=Mt,Qt.drawDataLabels=Nt,Qt.getDataLabelPosition=qt,Qt.placeDataLabels=Yt,Qt.verifyDataLabelOverflow=Kt}}}(mt||(mt={})),mt}),nt(rt,"Core/Geometry/GeometryUtilities.js",[],function(){var lt,ut;return(ut=lt||(lt={})).getCenterOfPoints=function(dt){let pt=dt.reduce((ht,mt)=>(ht.x+=mt.x,ht.y+=mt.y,ht),{x:0,y:0});return{x:pt.x/dt.length,y:pt.y/dt.length}},ut.getDistanceBetweenPoints=function(dt,pt){return Math.sqrt(Math.pow(pt.x-dt.x,2)+Math.pow(pt.y-dt.y,2))},ut.getAngleBetweenPoints=function(dt,pt){return Math.atan2(pt.x-dt.x,pt.y-dt.y)},ut.pointInPolygon=function({x:dt,y:pt},ht){let mt=ht.length,xt,Mt,vt=!1;for(xt=0,Mt=mt-1;xt<mt;Mt=xt++){let[Ot,At]=ht[xt],[Rt,zt]=ht[Mt];At>pt!=zt>pt&&dt<(Rt-Ot)*(pt-At)/(zt-At)+Ot&&(vt=!vt)}return vt},lt}),nt(rt,"Extensions/OverlappingDataLabels.js",[rt["Core/Geometry/GeometryUtilities.js"],rt["Core/Utilities.js"]],function(lt,ut){let{pointInPolygon:dt}=lt,{addEvent:pt,fireEvent:ht,objectEach:mt,pick:xt}=ut;function Mt(At){let Rt=At.length,zt=(Yt,Kt)=>!(Kt.x>=Yt.x+Yt.width||Kt.x+Kt.width<=Yt.x||Kt.y>=Yt.y+Yt.height||Kt.y+Kt.height<=Yt.y),Tt=(Yt,Kt)=>{for(let Jt of Yt)if(dt({x:Jt[0],y:Jt[1]},Kt))return!0;return!1},Ct,It,Dt,kt,qt,Nt=!1;for(let Yt=0;Yt<Rt;Yt++)(Ct=At[Yt])&&(Ct.oldOpacity=Ct.opacity,Ct.newOpacity=1,Ct.absoluteBox=function(Kt){var Jt,Qt;if(Kt&&(!Kt.alignAttr||Kt.placed)){let Bt=Kt.box?0:Kt.padding||0,Ft=Kt.alignAttr||{x:Kt.attr("x"),y:Kt.attr("y")},$t=Kt.getBBox();return Kt.width=$t.width,Kt.height=$t.height,{x:Ft.x+(((Jt=Kt.parentGroup)==null?void 0:Jt.translateX)||0)+Bt,y:Ft.y+(((Qt=Kt.parentGroup)==null?void 0:Qt.translateY)||0)+Bt,width:(Kt.width||0)-2*Bt,height:(Kt.height||0)-2*Bt,polygon:$t==null?void 0:$t.polygon}}}(Ct));At.sort((Yt,Kt)=>(Kt.labelrank||0)-(Yt.labelrank||0));for(let Yt=0;Yt<Rt;++Yt){kt=(It=At[Yt])&&It.absoluteBox;let Kt=kt==null?void 0:kt.polygon;for(let Jt=Yt+1;Jt<Rt;++Jt){qt=(Dt=At[Jt])&&Dt.absoluteBox;let Qt=!1;if(kt&&qt&&It!==Dt&&It.newOpacity!==0&&Dt.newOpacity!==0&&It.visibility!=="hidden"&&Dt.visibility!=="hidden"){let Bt=qt.polygon;if(Kt&&Bt&&Kt!==Bt?Tt(Kt,Bt)&&(Qt=!0):zt(kt,qt)&&(Qt=!0),Qt){let Ft=It.labelrank<Dt.labelrank?It:Dt,$t=Ft.text;Ft.newOpacity=0,$t!=null&&$t.element.querySelector("textPath")&&$t.hide()}}}}for(let Yt of At)vt(Yt,this)&&(Nt=!0);Nt&&ht(this,"afterHideAllOverlappingLabels")}function vt(At,Rt){let zt,Tt,Ct=!1;return At&&(Tt=At.newOpacity,At.oldOpacity!==Tt&&(At.hasClass("highcharts-data-label")?(At[Tt?"removeClass":"addClass"]("highcharts-data-label-hidden"),zt=function(){Rt.styledMode||At.css({pointerEvents:Tt?"auto":"none"})},Ct=!0,At[At.isOld?"animate":"attr"]({opacity:Tt},void 0,zt),ht(Rt,"afterHideOverlappingLabel")):At.attr({opacity:Tt})),At.isOld=!0),Ct}function Ot(){var zt;let At=this,Rt=[];for(let Tt of At.labelCollectors||[])Rt=Rt.concat(Tt());for(let Tt of At.yAxis||[])Tt.stacking&&Tt.options.stackLabels&&!Tt.options.stackLabels.allowOverlap&&mt(Tt.stacking.stacks,Ct=>{mt(Ct,It=>{It.label&&Rt.push(It.label)})});for(let Tt of At.series||[])if(Tt.visible&&((zt=Tt.hasDataLabels)!=null&&zt.call(Tt))){let Ct=It=>{for(let Dt of It)Dt.visible&&(Dt.dataLabels||[]).forEach(kt=>{var Nt;let qt=kt.options||{};kt.labelrank=xt(qt.labelrank,Dt.labelrank,(Nt=Dt.shapeArgs)==null?void 0:Nt.height),qt.allowOverlap??Number(qt.distance)>0?(kt.oldOpacity=kt.opacity,kt.newOpacity=1,vt(kt,At)):Rt.push(kt)})};Ct(Tt.nodes||[]),Ct(Tt.points)}this.hideOverlappingLabels(Rt)}return{compose:function(At){let Rt=At.prototype;Rt.hideOverlappingLabels||(Rt.hideOverlappingLabels=Mt,pt(At,"render",Ot))}}}),nt(rt,"Extensions/BorderRadius.js",[rt["Core/Defaults.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{defaultOptions:pt}=lt,{noop:ht}=ut,{addEvent:mt,extend:xt,isObject:Mt,merge:vt,relativeLength:Ot}=dt,At={radius:0,scope:"stack",where:void 0},Rt=ht,zt=ht;function Tt(qt,Nt,Yt,Kt,Jt={}){let Qt=Rt(qt,Nt,Yt,Kt,Jt),{innerR:Bt=0,r:Ft=Yt,start:$t=0,end:jt=0}=Jt;if(Jt.open||!Jt.borderRadius)return Qt;let Wt=jt-$t,Ut=Math.sin(Wt/2),Vt=Math.max(Math.min(Ot(Jt.borderRadius||0,Ft-Bt),(Ft-Bt)/2,Ft*Ut/(1+Ut)),0),Ht=Math.min(Vt,Wt/Math.PI*2*Bt),Gt=Qt.length-1;for(;Gt--;)(function(Zt,Xt,er){let nr,or,rr,cr=Zt[Xt],ir=Zt[Xt+1];if(ir[0]==="Z"&&(ir=Zt[0]),(cr[0]==="M"||cr[0]==="L")&&ir[0]==="A"?(nr=cr,or=ir,rr=!0):cr[0]==="A"&&(ir[0]==="M"||ir[0]==="L")&&(nr=ir,or=cr),nr&&or&&or.params){let dr=or[1],gr=or[5],br=or.params,{start:ar,end:ur,cx:xr,cy:Mr}=br,Ar=gr?dr-er:dr+er,Ir=Ar?Math.asin(er/Ar):0,Rr=gr?Ir:-Ir,wr=Math.cos(Ir)*Ar;rr?(br.start=ar+Rr,nr[1]=xr+wr*Math.cos(ar),nr[2]=Mr+wr*Math.sin(ar),Zt.splice(Xt+1,0,["A",er,er,0,0,1,xr+dr*Math.cos(br.start),Mr+dr*Math.sin(br.start)])):(br.end=ur-Rr,or[6]=xr+dr*Math.cos(br.end),or[7]=Mr+dr*Math.sin(br.end),Zt.splice(Xt+1,0,["A",er,er,0,0,1,xr+wr*Math.cos(ur),Mr+wr*Math.sin(ur)])),or[4]=Math.abs(br.end-br.start)<Math.PI?0:1}})(Qt,Gt,Gt>1?Ht:Vt);return Qt}function Ct(){var qt,Nt;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:Yt,yAxis:Kt}=this,Jt=Yt.stacking==="percent",Qt=(Nt=(qt=pt.plotOptions)==null?void 0:qt[this.type])==null?void 0:Nt.borderRadius,Bt=It(Yt.borderRadius,Mt(Qt)?Qt:{}),Ft=Kt.options.reversed;for(let $t of this.points){let{shapeArgs:jt}=$t;if($t.shapeType==="roundedRect"&&jt){let{width:Wt=0,height:Ut=0,y:Vt=0}=jt,Ht=Vt,Gt=Ut;if(Bt.scope==="stack"&&$t.stackTotal){let nr=Kt.translate(Jt?100:$t.stackTotal,!1,!0,!1,!0),or=Kt.translate(Yt.threshold||0,!1,!0,!1,!0),rr=this.crispCol(0,Math.min(nr,or),0,Math.abs(nr-or));Ht=rr.y,Gt=rr.height}let Zt=($t.negative?-1:1)*(Ft?-1:1)==-1,Xt=Bt.where;!Xt&&this.is("waterfall")&&Math.abs(($t.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(Xt="all"),Xt||(Xt="end");let er=Math.min(Ot(Bt.radius,Wt),Wt/2,Xt==="all"?Ut/2:1/0)||0;Xt==="end"&&(Zt&&(Ht-=er),Gt+=er),xt(jt,{brBoxHeight:Gt,brBoxY:Ht,r:er})}}}}function It(qt,Nt){return Mt(qt)||(qt={radius:qt||0}),vt(At,Nt,qt)}function Dt(){let qt=It(this.options.borderRadius);for(let Nt of this.points){let Yt=Nt.shapeArgs;Yt&&(Yt.borderRadius=Ot(qt.radius,(Yt.r||0)-(Yt.innerR||0)))}}function kt(qt,Nt,Yt,Kt,Jt={}){let Qt=zt(qt,Nt,Yt,Kt,Jt),{r:Bt=0,brBoxHeight:Ft=Kt,brBoxY:$t=Nt}=Jt,jt=Nt-$t,Wt=$t+Ft-(Nt+Kt),Ut=jt-Bt>-.1?0:Bt,Vt=Wt-Bt>-.1?0:Bt,Ht=Math.max(Ut&&jt,0),Gt=Math.max(Vt&&Wt,0),Zt=[qt+Ut,Nt],Xt=[qt+Yt-Ut,Nt],er=[qt+Yt,Nt+Ut],nr=[qt+Yt,Nt+Kt-Vt],or=[qt+Yt-Vt,Nt+Kt],rr=[qt+Vt,Nt+Kt],cr=[qt,Nt+Kt-Vt],ir=[qt,Nt+Ut],dr=(gr,br)=>Math.sqrt(Math.pow(gr,2)-Math.pow(br,2));if(Ht){let gr=dr(Ut,Ut-Ht);Zt[0]-=gr,Xt[0]+=gr,er[1]=ir[1]=Nt+Ut-Ht}if(Kt<Ut-Ht){let gr=dr(Ut,Ut-Ht-Kt);er[0]=nr[0]=qt+Yt-Ut+gr,or[0]=Math.min(er[0],or[0]),rr[0]=Math.max(nr[0],rr[0]),cr[0]=ir[0]=qt+Ut-gr,er[1]=ir[1]=Nt+Kt}if(Gt){let gr=dr(Vt,Vt-Gt);or[0]+=gr,rr[0]-=gr,nr[1]=cr[1]=Nt+Kt-Vt+Gt}if(Kt<Vt-Gt){let gr=dr(Vt,Vt-Gt-Kt);er[0]=nr[0]=qt+Yt-Vt+gr,Xt[0]=Math.min(er[0],Xt[0]),Zt[0]=Math.max(nr[0],Zt[0]),cr[0]=ir[0]=qt+Vt-gr,nr[1]=cr[1]=Nt}return Qt.length=0,Qt.push(["M",...Zt],["L",...Xt],["A",Ut,Ut,0,0,1,...er],["L",...nr],["A",Vt,Vt,0,0,1,...or],["L",...rr],["A",Vt,Vt,0,0,1,...cr],["L",...ir],["A",Ut,Ut,0,0,1,...Zt],["Z"]),Qt}return{compose:function(qt,Nt,Yt){let Kt=qt.types.pie;if(!Nt.symbolCustomAttribs.includes("borderRadius")){let Jt=Yt.prototype.symbols;mt(qt,"afterColumnTranslate",Ct,{order:9}),mt(Kt,"afterTranslate",Dt),Nt.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),Rt=Jt.arc,zt=Jt.roundedRect,Jt.arc=Tt,Jt.roundedRect=kt}},optionsToObject:It}}),nt(rt,"Core/Responsive.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{diffObjects:dt,extend:pt,find:ht,merge:mt,pick:xt,uniqueKey:Mt}=lt;return function(vt){function Ot(Rt,zt){let Tt=Rt.condition;(Tt.callback||function(){return this.chartWidth<=xt(Tt.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=xt(Tt.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=xt(Tt.minWidth,0)&&this.chartHeight>=xt(Tt.minHeight,0)}).call(this)&&zt.push(Rt._id)}function At(Rt,zt){let Tt=this.options.responsive,Ct=this.currentResponsive,It=[],Dt;!zt&&Tt&&Tt.rules&&Tt.rules.forEach(Nt=>{Nt._id===void 0&&(Nt._id=Mt()),this.matchResponsiveRule(Nt,It)},this);let kt=mt(...It.map(Nt=>ht((Tt||{}).rules||[],Yt=>Yt._id===Nt)).map(Nt=>Nt&&Nt.chartOptions));kt.isResponsiveOptions=!0,It=It.toString()||void 0;let qt=Ct&&Ct.ruleIds;It===qt||(Ct&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(Ct.undoOptions,Rt,!0),this.updatingResponsive=!1),It?((Dt=dt(kt,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:It,mergedOptions:kt,undoOptions:Dt},this.updatingResponsive||this.update(kt,Rt,!0)):this.currentResponsive=void 0)}vt.compose=function(Rt){let zt=Rt.prototype;return zt.matchResponsiveRule||pt(zt,{matchResponsiveRule:Ot,setResponsive:At}),Rt}}(ut||(ut={})),ut}),nt(rt,"masters/highcharts.src.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"],rt["Core/Defaults.js"],rt["Core/Animation/Fx.js"],rt["Core/Animation/AnimationUtilities.js"],rt["Core/Renderer/HTML/AST.js"],rt["Core/Templating.js"],rt["Core/Renderer/RendererRegistry.js"],rt["Core/Renderer/RendererUtilities.js"],rt["Core/Renderer/SVG/SVGElement.js"],rt["Core/Renderer/SVG/SVGRenderer.js"],rt["Core/Renderer/HTML/HTMLElement.js"],rt["Core/Axis/Axis.js"],rt["Core/Axis/DateTimeAxis.js"],rt["Core/Axis/LogarithmicAxis.js"],rt["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],rt["Core/Axis/Tick.js"],rt["Core/Tooltip.js"],rt["Core/Series/Point.js"],rt["Core/Pointer.js"],rt["Core/Legend/Legend.js"],rt["Core/Legend/LegendSymbol.js"],rt["Core/Chart/Chart.js"],rt["Extensions/ScrollablePlotArea.js"],rt["Core/Axis/Stacking/StackingAxis.js"],rt["Core/Axis/Stacking/StackItem.js"],rt["Core/Series/Series.js"],rt["Core/Series/SeriesRegistry.js"],rt["Series/Column/ColumnDataLabel.js"],rt["Series/Pie/PieDataLabel.js"],rt["Core/Series/DataLabel.js"],rt["Extensions/OverlappingDataLabels.js"],rt["Extensions/BorderRadius.js"],rt["Core/Responsive.js"],rt["Core/Color/Color.js"],rt["Core/Time.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct,It,Dt,kt,qt,Nt,Yt,Kt,Jt,Qt,Bt,Ft,$t,jt,Wt,Ut,Vt,Ht,Gt,Zt,Xt,er){return lt.AST=mt,lt.Axis=zt,lt.Chart=Jt,lt.Color=Xt,lt.DataLabel=Vt,lt.Fx=pt,lt.HTMLElement=Rt,lt.Legend=Yt,lt.LegendSymbol=Kt,lt.OverlappingDataLabels=lt.OverlappingDataLabels||Ht,lt.PlotLineOrBand=It,lt.Point=qt,lt.Pointer=Nt,lt.RendererRegistry=Mt,lt.Series=$t,lt.SeriesRegistry=jt,lt.StackItem=Ft,lt.SVGElement=Ot,lt.SVGRenderer=At,lt.Templating=xt,lt.Tick=Dt,lt.Time=er,lt.Tooltip=kt,lt.animate=ht.animate,lt.animObject=ht.animObject,lt.chart=Jt.chart,lt.color=Xt.parse,lt.dateFormat=xt.dateFormat,lt.defaultOptions=dt.defaultOptions,lt.distribute=vt.distribute,lt.format=xt.format,lt.getDeferredAnimation=ht.getDeferredAnimation,lt.getOptions=dt.getOptions,lt.numberFormat=xt.numberFormat,lt.seriesType=jt.seriesType,lt.setAnimation=ht.setAnimation,lt.setOptions=dt.setOptions,lt.stop=ht.stop,lt.time=dt.defaultTime,lt.timers=pt.timers,Gt.compose(lt.Series,lt.SVGElement,lt.SVGRenderer),Wt.compose(lt.Series.types.column),Vt.compose(lt.Series),Tt.compose(lt.Axis),Rt.compose(lt.SVGRenderer),Yt.compose(lt.Chart),Ct.compose(lt.Axis),Ht.compose(lt.Chart),Ut.compose(lt.Series.types.pie),It.compose(lt.Axis),Nt.compose(lt.Chart),Zt.compose(lt.Chart),Qt.compose(lt.Axis,lt.Chart,lt.Series),Bt.compose(lt.Axis,lt.Chart,lt.Series),kt.compose(lt.Pointer),ut.extend(lt,ut),lt}),rt["masters/highcharts.src.js"]._modules=rt,rt["masters/highcharts.src.js"]})})(highcharts);var highchartsExports=highcharts.exports;const Highcharts$1=getDefaultExportFromCjs$1(highchartsExports);var dashboards={exports:{}};(function(et){(function(tt,rt){et.exports?(rt.default=rt,et.exports=tt&&tt.document?rt(tt):rt):(tt.Dashboards&&tt.Dashboards.error(16,!0),tt.Dashboards=rt(tt))})(typeof window<"u"?window:commonjsGlobal$1,function(tt){var rt={};function nt(lt,ut,dt,pt){lt.hasOwnProperty(ut)||(lt[ut]=pt.apply(null,dt),typeof CustomEvent=="function"&&tt.dispatchEvent(new CustomEvent("DashboardsModuleLoaded",{detail:{path:ut,module:lt[ut]}})))}return nt(rt,"Core/Globals.js",[],function(){var lt,ut;return(ut=lt||(lt={})).SVG_NS="http://www.w3.org/2000/svg",ut.product="Highcharts",ut.version="2.2.0",ut.win=tt!==void 0?tt:{},ut.doc=ut.win.document,ut.svg=ut.doc&&ut.doc.createElementNS&&!!ut.doc.createElementNS(ut.SVG_NS,"svg").createSVGRect,ut.userAgent=ut.win.navigator&&ut.win.navigator.userAgent||"",ut.isChrome=ut.win.chrome,ut.isFirefox=ut.userAgent.indexOf("Firefox")!==-1,ut.isMS=/(edge|msie|trident)/i.test(ut.userAgent)&&!ut.win.opera,ut.isSafari=!ut.isChrome&&ut.userAgent.indexOf("Safari")!==-1,ut.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(ut.userAgent),ut.isWebKit=ut.userAgent.indexOf("AppleWebKit")!==-1,ut.deg2rad=2*Math.PI/360,ut.hasBidiBug=ut.isFirefox&&4>parseInt(ut.userAgent.split("Firefox/")[1],10),ut.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],ut.noop=function(){},ut.supportsPassiveEvents=function(){let dt=!1;if(!ut.isMS){let pt=Object.defineProperty({},"passive",{get:function(){dt=!0}});ut.win.addEventListener&&ut.win.removeEventListener&&(ut.win.addEventListener("testPassive",ut.noop,pt),ut.win.removeEventListener("testPassive",ut.noop,pt))}return dt}(),ut.charts=[],ut.composed=[],ut.dateFormats={},ut.seriesTypes={},ut.symbolSizes={},ut.chartCount=0,lt}),nt(rt,"Core/Utilities.js",[rt["Core/Globals.js"]],function(lt){let ut,{charts:dt,doc:pt,win:ht}=lt;function mt($t,jt,Wt,Ut){let Vt=jt?"Highcharts error":"Highcharts warning";$t===32&&($t=`${Vt}: Deprecated member`);let Ht=zt($t),Gt=Ht?`${Vt} #${$t}: www.highcharts.com/errors/${$t}/`:$t.toString();if(Ut!==void 0){let Zt="";Ht&&(Gt+="?"),Jt(Ut,function(Xt,er){Zt+=`
 - ${er}: ${Xt}`,Ht&&(Gt+=encodeURI(er)+"="+encodeURI(Xt))}),Gt+=Zt}Bt(lt,"displayError",{chart:Wt,code:$t,message:Gt,params:Ut},function(){if(jt)throw Error(Gt);ht.console&&mt.messages.indexOf(Gt)===-1&&console.warn(Gt)}),mt.messages.push(Gt)}function xt($t,jt){return parseInt($t,jt||10)}function Mt($t){return typeof $t=="string"}function vt($t){let jt=Object.prototype.toString.call($t);return jt==="[object Array]"||jt==="[object Array Iterator]"}function Ot($t,jt){return!!$t&&typeof $t=="object"&&(!jt||!vt($t))}function At($t){return Ot($t)&&typeof $t.nodeType=="number"}function Rt($t){let jt=$t&&$t.constructor;return!!(Ot($t,!0)&&!At($t)&&jt&&jt.name&&jt.name!=="Object")}function zt($t){return typeof $t=="number"&&!isNaN($t)&&$t<1/0&&$t>-1/0}function Tt($t){return $t!=null}function Ct($t,jt,Wt){let Ut,Vt=Mt(jt)&&!Tt(Wt),Ht=(Gt,Zt)=>{Tt(Gt)?$t.setAttribute(Zt,Gt):Vt?(Ut=$t.getAttribute(Zt))||Zt!=="class"||(Ut=$t.getAttribute(Zt+"Name")):$t.removeAttribute(Zt)};return Mt(jt)?Ht(Wt,jt):Jt(jt,Ht),Ut}function It($t){return vt($t)?$t:[$t]}function Dt($t,jt){let Wt;for(Wt in $t||($t={}),jt)$t[Wt]=jt[Wt];return $t}function kt(){let $t=arguments,jt=$t.length;for(let Wt=0;Wt<jt;Wt++){let Ut=$t[Wt];if(Ut!=null)return Ut}}function qt($t,jt){Dt($t.style,jt)}function Nt($t){return Math.pow(10,Math.floor(Math.log($t)/Math.LN10))}function Yt($t,jt){return $t>1e14?$t:parseFloat($t.toPrecision(jt||14))}(mt||(mt={})).messages=[],Math.easeInOutSine=function($t){return-.5*(Math.cos(Math.PI*$t)-1)};let Kt=Array.prototype.find?function($t,jt){return $t.find(jt)}:function($t,jt){let Wt,Ut=$t.length;for(Wt=0;Wt<Ut;Wt++)if(jt($t[Wt],Wt))return $t[Wt]};function Jt($t,jt,Wt){for(let Ut in $t)Object.hasOwnProperty.call($t,Ut)&&jt.call(Wt||$t[Ut],$t[Ut],Ut,$t)}function Qt($t,jt,Wt){function Ut(Gt,Zt){let Xt=$t.removeEventListener;Xt&&Xt.call($t,Gt,Zt,!1)}function Vt(Gt){let Zt,Xt;$t.nodeName&&(jt?(Zt={})[jt]=!0:Zt=Gt,Jt(Zt,function(er,nr){if(Gt[nr])for(Xt=Gt[nr].length;Xt--;)Ut(nr,Gt[nr][Xt].fn)}))}let Ht=typeof $t=="function"&&$t.prototype||$t;if(Object.hasOwnProperty.call(Ht,"hcEvents")){let Gt=Ht.hcEvents;if(jt){let Zt=Gt[jt]||[];Wt?(Gt[jt]=Zt.filter(function(Xt){return Wt!==Xt.fn}),Ut(jt,Wt)):(Vt(Gt),Gt[jt]=[])}else Vt(Gt),delete Ht.hcEvents}}function Bt($t,jt,Wt,Ut){if(Wt=Wt||{},pt.createEvent&&($t.dispatchEvent||$t.fireEvent&&$t!==lt)){let Vt=pt.createEvent("Events");Vt.initEvent(jt,!0,!0),Wt=Dt(Vt,Wt),$t.dispatchEvent?$t.dispatchEvent(Wt):$t.fireEvent(jt,Wt)}else if($t.hcEvents){Wt.target||Dt(Wt,{preventDefault:function(){Wt.defaultPrevented=!0},target:$t,type:jt});let Vt=[],Ht=$t,Gt=!1;for(;Ht.hcEvents;)Object.hasOwnProperty.call(Ht,"hcEvents")&&Ht.hcEvents[jt]&&(Vt.length&&(Gt=!0),Vt.unshift.apply(Vt,Ht.hcEvents[jt])),Ht=Object.getPrototypeOf(Ht);Gt&&Vt.sort((Zt,Xt)=>Zt.order-Xt.order),Vt.forEach(Zt=>{Zt.fn.call($t,Wt)===!1&&Wt.preventDefault()})}Ut&&!Wt.defaultPrevented&&Ut.call($t,Wt)}Jt({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function($t,jt){lt[jt]=function(Wt){return mt(32,!1,void 0,{[`Highcharts.${jt}`]:`use Array.${$t}`}),Array.prototype[$t].apply(Wt,[].slice.call(arguments,1))}});let Ft=function(){let $t=Math.random().toString(36).substring(2,9)+"-",jt=0;return function(){return"highcharts-"+(ut?"":$t)+jt++}}();return ht.jQuery&&(ht.jQuery.fn.highcharts=function(){let $t=[].slice.call(arguments);if(this[0])return $t[0]?(new lt[Mt($t[0])?$t.shift():"Chart"](this[0],$t[0],$t[1]),this):dt[Ct(this[0],"data-highcharts-chart")]}),{addEvent:function($t,jt,Wt,Ut={}){let Vt=typeof $t=="function"&&$t.prototype||$t;Object.hasOwnProperty.call(Vt,"hcEvents")||(Vt.hcEvents={});let Ht=Vt.hcEvents;lt.Point&&$t instanceof lt.Point&&$t.series&&$t.series.chart&&($t.series.chart.runTrackerClick=!0);let Gt=$t.addEventListener;Gt&&Gt.call($t,jt,Wt,!!lt.supportsPassiveEvents&&{passive:Ut.passive===void 0?jt.indexOf("touch")!==-1:Ut.passive,capture:!1}),Ht[jt]||(Ht[jt]=[]);let Zt={fn:Wt,order:typeof Ut.order=="number"?Ut.order:1/0};return Ht[jt].push(Zt),Ht[jt].sort((Xt,er)=>Xt.order-er.order),function(){Qt($t,jt,Wt)}},arrayMax:function($t){let jt=$t.length,Wt=$t[0];for(;jt--;)$t[jt]>Wt&&(Wt=$t[jt]);return Wt},arrayMin:function($t){let jt=$t.length,Wt=$t[0];for(;jt--;)$t[jt]<Wt&&(Wt=$t[jt]);return Wt},attr:Ct,clamp:function($t,jt,Wt){return $t>jt?$t<Wt?$t:Wt:jt},clearTimeout:function($t){Tt($t)&&clearTimeout($t)},correctFloat:Yt,createElement:function($t,jt,Wt,Ut,Vt){let Ht=pt.createElement($t);return jt&&Dt(Ht,jt),Vt&&qt(Ht,{padding:"0",border:"none",margin:"0"}),Wt&&qt(Ht,Wt),Ut&&Ut.appendChild(Ht),Ht},crisp:($t,jt=0,Wt)=>{let Ut=jt%2/2,Vt=Wt?-1:1;return(Math.round($t*Vt-Ut)+Ut)*Vt},css:qt,defined:Tt,destroyObjectProperties:function($t,jt,Wt){Jt($t,function(Ut,Vt){Ut!==jt&&(Ut!=null&&Ut.destroy)&&Ut.destroy(),(Ut!=null&&Ut.destroy||!Wt)&&delete $t[Vt]})},diffObjects:function($t,jt,Wt,Ut){let Vt={};return function Ht(Gt,Zt,Xt,er){let nr=Wt?Zt:Gt;Jt(Gt,function(or,rr){if(!er&&Ut&&Ut.indexOf(rr)>-1&&Zt[rr]){or=It(or),Xt[rr]=[];for(let cr=0;cr<Math.max(or.length,Zt[rr].length);cr++)Zt[rr][cr]&&(or[cr]===void 0?Xt[rr][cr]=Zt[rr][cr]:(Xt[rr][cr]={},Ht(or[cr],Zt[rr][cr],Xt[rr][cr],er+1)))}else Ot(or,!0)&&!or.nodeType?(Xt[rr]=vt(or)?[]:{},Ht(or,Zt[rr]||{},Xt[rr],er+1),Object.keys(Xt[rr]).length!==0||rr==="colorAxis"&&er===0||delete Xt[rr]):(Gt[rr]!==Zt[rr]||rr in Gt&&!(rr in Zt))&&rr!=="__proto__"&&rr!=="constructor"&&(Xt[rr]=nr[rr])})}($t,jt,Vt,0),Vt},discardElement:function($t){$t&&$t.parentElement&&$t.parentElement.removeChild($t)},erase:function($t,jt){let Wt=$t.length;for(;Wt--;)if($t[Wt]===jt){$t.splice(Wt,1);break}},error:mt,extend:Dt,extendClass:function($t,jt){let Wt=function(){};return Wt.prototype=new $t,Dt(Wt.prototype,jt),Wt},find:Kt,fireEvent:Bt,getClosestDistance:function($t,jt){let Wt,Ut,Vt,Ht=!jt;return $t.forEach(Gt=>{if(Gt.length>1)for(Vt=Gt.length-1;Vt>0;Vt--)(Ut=Gt[Vt]-Gt[Vt-1])<0&&!Ht?(jt==null||jt(),jt=void 0):Ut&&(Wt===void 0||Ut<Wt)&&(Wt=Ut)}),Wt},getMagnitude:Nt,getNestedProperty:function($t,jt){let Wt=$t.split(".");for(;Wt.length&&Tt(jt);){let Ut=Wt.shift();if(Ut===void 0||Ut==="__proto__")return;if(Ut==="this"){let Ht;return Ot(jt)&&(Ht=jt["@this"]),Ht??jt}let Vt=jt[Ut];if(!Tt(Vt)||typeof Vt=="function"||typeof Vt.nodeType=="number"||Vt===ht)return;jt=Vt}return jt},getStyle:function $t(jt,Wt,Ut){let Vt;if(Wt==="width"){let Gt=Math.min(jt.offsetWidth,jt.scrollWidth),Zt=jt.getBoundingClientRect&&jt.getBoundingClientRect().width;return Zt<Gt&&Zt>=Gt-1&&(Gt=Math.floor(Zt)),Math.max(0,Gt-($t(jt,"padding-left",!0)||0)-($t(jt,"padding-right",!0)||0))}if(Wt==="height")return Math.max(0,Math.min(jt.offsetHeight,jt.scrollHeight)-($t(jt,"padding-top",!0)||0)-($t(jt,"padding-bottom",!0)||0));let Ht=ht.getComputedStyle(jt,void 0);return Ht&&(Vt=Ht.getPropertyValue(Wt),kt(Ut,Wt!=="opacity")&&(Vt=xt(Vt))),Vt},inArray:function($t,jt,Wt){return mt(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),jt.indexOf($t,Wt)},insertItem:function($t,jt){let Wt,Ut=$t.options.index,Vt=jt.length;for(Wt=$t.options.isInternal?Vt:0;Wt<Vt+1;Wt++)if(!jt[Wt]||zt(Ut)&&Ut<kt(jt[Wt].options.index,jt[Wt]._i)||jt[Wt].options.isInternal){jt.splice(Wt,0,$t);break}return Wt},isArray:vt,isClass:Rt,isDOMElement:At,isFunction:function($t){return typeof $t=="function"},isNumber:zt,isObject:Ot,isString:Mt,keys:function($t){return mt(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys($t)},merge:function(){let $t,jt=arguments,Wt={},Ut=function(Ht,Gt){return typeof Ht!="object"&&(Ht={}),Jt(Gt,function(Zt,Xt){Xt!=="__proto__"&&Xt!=="constructor"&&(!Ot(Zt,!0)||Rt(Zt)||At(Zt)?Ht[Xt]=Gt[Xt]:Ht[Xt]=Ut(Ht[Xt]||{},Zt))}),Ht};jt[0]===!0&&(Wt=jt[1],jt=Array.prototype.slice.call(jt,2));let Vt=jt.length;for($t=0;$t<Vt;$t++)Wt=Ut(Wt,jt[$t]);return Wt},normalizeTickInterval:function($t,jt,Wt,Ut,Vt){let Ht,Gt=$t;Wt=kt(Wt,Nt($t));let Zt=$t/Wt;for(!jt&&(jt=Vt?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],Ut===!1&&(Wt===1?jt=jt.filter(function(Xt){return Xt%1==0}):Wt<=.1&&(jt=[1/Wt]))),Ht=0;Ht<jt.length&&(Gt=jt[Ht],(!Vt||!(Gt*Wt>=$t))&&(Vt||!(Zt<=(jt[Ht]+(jt[Ht+1]||jt[Ht]))/2)));Ht++);return Yt(Gt*Wt,-Math.round(Math.log(.001)/Math.LN10))},objectEach:Jt,offset:function($t){let jt=pt.documentElement,Wt=$t.parentElement||$t.parentNode?$t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:Wt.top+(ht.pageYOffset||jt.scrollTop)-(jt.clientTop||0),left:Wt.left+(ht.pageXOffset||jt.scrollLeft)-(jt.clientLeft||0),width:Wt.width,height:Wt.height}},pad:function($t,jt,Wt){return Array((jt||2)+1-String($t).replace("-","").length).join(Wt||"0")+$t},pick:kt,pInt:xt,pushUnique:function($t,jt){return 0>$t.indexOf(jt)&&!!$t.push(jt)},relativeLength:function($t,jt,Wt){return/%$/.test($t)?jt*parseFloat($t)/100+(Wt||0):parseFloat($t)},removeEvent:Qt,replaceNested:function($t,...jt){let Wt,Ut;do for(Ut of(Wt=$t,jt))$t=$t.replace(Ut[0],Ut[1]);while($t!==Wt);return $t},splat:It,stableSort:function($t,jt){let Wt,Ut,Vt=$t.length;for(Ut=0;Ut<Vt;Ut++)$t[Ut].safeI=Ut;for($t.sort(function(Ht,Gt){return(Wt=jt(Ht,Gt))===0?Ht.safeI-Gt.safeI:Wt}),Ut=0;Ut<Vt;Ut++)delete $t[Ut].safeI},syncTimeout:function($t,jt,Wt){return jt>0?setTimeout($t,jt,Wt):($t.call(0,Wt),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:Ft,useSerialIds:function($t){return ut=kt($t,ut)},wrap:function($t,jt,Wt){let Ut=$t[jt];$t[jt]=function(){let Vt=arguments,Ht=this;return Wt.apply(this,[function(){return Ut.apply(Ht,arguments.length?arguments:Vt)}].concat([].slice.call(arguments)))}}}}),nt(rt,"Core/Renderer/HTML/AST.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{SVG_NS:dt,win:pt}=lt,{attr:ht,createElement:mt,css:xt,error:Mt,isFunction:vt,isString:Ot,objectEach:At,splat:Rt}=ut,{trustedTypes:zt}=pt,Tt=zt&&vt(zt.createPolicy)&&zt.createPolicy("highcharts",{createHTML:kt=>kt}),Ct=Tt?Tt.createHTML(""):"",It=function(){try{return!!new DOMParser().parseFromString(Ct,"text/html")}catch{return!1}}();class Dt{static filterUserAttributes(qt){return At(qt,(Nt,Yt)=>{let Kt=!0;Dt.allowedAttributes.indexOf(Yt)===-1&&(Kt=!1),["background","dynsrc","href","lowsrc","src"].indexOf(Yt)!==-1&&(Kt=Ot(Nt)&&Dt.allowedReferences.some(Jt=>Nt.indexOf(Jt)===0)),Kt||(Mt(33,!1,void 0,{"Invalid attribute in config":`${Yt}`}),delete qt[Yt]),Ot(Nt)&&qt[Yt]&&(qt[Yt]=Nt.replace(/</g,"&lt;"))}),qt}static parseStyle(qt){return qt.split(";").reduce((Nt,Yt)=>{let Kt=Yt.split(":").map(Qt=>Qt.trim()),Jt=Kt.shift();return Jt&&Kt.length&&(Nt[Jt.replace(/-([a-z])/g,Qt=>Qt[1].toUpperCase())]=Kt.join(":")),Nt},{})}static setElementHTML(qt,Nt){qt.innerHTML=Dt.emptyHTML,Nt&&new Dt(Nt).addToDOM(qt)}constructor(qt){this.nodes=typeof qt=="string"?this.parseMarkup(qt):qt}addToDOM(qt){return function Nt(Yt,Kt){let Jt;return Rt(Yt).forEach(function(Qt){let Bt,Ft=Qt.tagName,$t=Qt.textContent?lt.doc.createTextNode(Qt.textContent):void 0,jt=Dt.bypassHTMLFiltering;if(Ft)if(Ft==="#text")Bt=$t;else if(Dt.allowedTags.indexOf(Ft)!==-1||jt){let Wt=Ft==="svg"?dt:Kt.namespaceURI||dt,Ut=lt.doc.createElementNS(Wt,Ft),Vt=Qt.attributes||{};At(Qt,function(Ht,Gt){Gt!=="tagName"&&Gt!=="attributes"&&Gt!=="children"&&Gt!=="style"&&Gt!=="textContent"&&(Vt[Gt]=Ht)}),ht(Ut,jt?Vt:Dt.filterUserAttributes(Vt)),Qt.style&&xt(Ut,Qt.style),$t&&Ut.appendChild($t),Nt(Qt.children||[],Ut),Bt=Ut}else Mt(33,!1,void 0,{"Invalid tagName in config":Ft});Bt&&Kt.appendChild(Bt),Jt=Bt}),Jt}(this.nodes,qt)}parseMarkup(qt){let Nt,Yt=[];if(qt=qt.trim().replace(/ style=(["'])/g," data-style=$1"),It)Nt=new DOMParser().parseFromString(Tt?Tt.createHTML(qt):qt,"text/html");else{let Jt=mt("div");Jt.innerHTML=qt,Nt={body:Jt}}let Kt=(Jt,Qt)=>{let Bt=Jt.nodeName.toLowerCase(),Ft={tagName:Bt};Bt==="#text"&&(Ft.textContent=Jt.textContent||"");let $t=Jt.attributes;if($t){let jt={};[].forEach.call($t,Wt=>{Wt.name==="data-style"?Ft.style=Dt.parseStyle(Wt.value):jt[Wt.name]=Wt.value}),Ft.attributes=jt}if(Jt.childNodes.length){let jt=[];[].forEach.call(Jt.childNodes,Wt=>{Kt(Wt,jt)}),jt.length&&(Ft.children=jt)}Qt.push(Ft)};return[].forEach.call(Nt.body.childNodes,Jt=>Kt(Jt,Yt)),Yt}}return Dt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],Dt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],Dt.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],Dt.emptyHTML=Ct,Dt.bypassHTMLFiltering=!1,Dt}),nt(rt,"Dashboards/Components/ComponentRegistry.js",[],function(){var lt,ut;return(ut=lt||(lt={})).types={},ut.registerComponent=function(dt,pt){return!!dt&&!ut.types[dt]&&!!(ut.types[dt]=pt)},lt}),nt(rt,"Dashboards/Globals.js",[],function(){var lt,ut;return(ut=lt||(lt={})).classNamePrefix="highcharts-dashboards-",ut.classNames={layout:ut.classNamePrefix+"layout",cell:ut.classNamePrefix+"cell",cellHover:ut.classNamePrefix+"cell-state-hover",cellActive:ut.classNamePrefix+"cell-state-active",cellLoading:ut.classNamePrefix+"cell-state-loading",row:ut.classNamePrefix+"row",layoutsWrapper:ut.classNamePrefix+"layouts-wrapper",boardContainer:ut.classNamePrefix+"wrapper"},ut.guiElementType={row:"row",cell:"cell",layout:"layout"},ut.boards=[],ut.win=tt,lt}),nt(rt,"Dashboards/EditMode/EditGlobals.js",[rt["Dashboards/Globals.js"]],function(lt){let ut=lt.classNamePrefix+"edit-";return{classNames:{resizeSnap:ut+"resize-snap",resizeSnapX:ut+"resize-snap-x",resizeSnapY:ut+"resize-snap-y",separator:ut+"separator",contextMenuBtn:ut+"context-menu-btn",contextMenuBtnText:ut+"context-menu-btn-text",contextMenu:ut+"context-menu",contextMenuItem:ut+"context-menu-item",editModeEnabled:ut+"enabled",editToolbar:ut+"toolbar",editToolbarCellOutline:ut+"toolbar-cell-outline",editToolbarRowOutline:ut+"toolbar-row-outline",editToolbarItem:ut+"toolbar-item",editToolbarRow:ut+"toolbar-row",editToolbarCell:ut+"toolbar-cell",editSidebar:ut+"sidebar",editSidebarShow:ut+"sidebar-show",editSidebarHide:ut+"sidebar-hide",editSidebarTitle:ut+"sidebar-title",editSidebarMenuItem:ut+"sidebar-item",rowContextHighlight:ut+"row-context-highlight",cellEditHighlight:ut+"cell-highlight",dashboardCellEditHighlightActive:ut+"cell-highlight-active",dragMock:ut+"drag-mock",dropPointer:ut+"drop-pointer",contextDetectionPointer:ut+"ctx-detection-pointer",resizePointer:ut+"resize-pointer",currentEditedElement:ut+"unmask",maskElement:ut+"mask",menuItem:ut+"menu-item",menu:ut+"menu",menuVerticalSeparator:ut+"menu-vertical-separator",menuHorizontalSeparator:ut+"menu-horizontal-separator",menuDestroy:ut+"menu-destroy",editSidebarWrapper:ut+"sidebar-wrapper",customSelect:ut+"custom-select",customSelectButton:ut+"custom-option-button",toggleContainer:ut+"toggle-container",toggleWrapper:ut+"toggle-wrapper",toggleSlider:ut+"toggle-slider",toggleWrapperColored:ut+"toggle-wrapper-colored",toggleLabels:ut+"toggle-labels",button:ut+"button",sidebarNavButton:ut+"sidebar-button-nav",labelText:ut+"label-text",editSidebarTabBtn:ut+"sidebar-tab-btn",editToolsBtn:ut+"tools-btn",editTools:ut+"tools",editGridItems:ut+"grid-items",confirmationPopup:ut+"confirmation-popup",popupButtonContainer:ut+"confirmation-popup-button-container",popupContentContainer:ut+"confirmation-popup-content",popupCancelBtn:ut+"confirmation-popup-cancel-btn",popupConfirmBtn:ut+"confirmation-popup-confirm-btn",popupCloseButton:ut+"popup-close",editOverlay:ut+"overlay",editOverlayActive:ut+"overlay-active",resizerMenuBtnActive:ut+"resizer-menu-btn-active",sidebarCloseButton:ut+"close-btn",editSidebarTabBtnWrapper:ut+"tabs-buttons-wrapper",editSidebarRight:ut+"sidebar-right",editSidebarRightShow:ut+"sidebar-right-show",viewFullscreen:ut+"view-fullscreen",accordionMenu:ut+"accordion-menu",accordionContainer:ut+"accordion",accordionHeader:ut+"accordion-header",accordionHeaderBtn:ut+"accordion-header-btn",accordionHeaderIcon:ut+"accordion-header-icon",accordionContent:ut+"accordion-content",accordionNestedWrapper:ut+"accordion-nested",accordionMenuButtonsContainer:ut+"accordion-menu-buttons-container",accordionMenuButton:ut+"accordion-menu-button",hiddenElement:ut+"hidden-element",collapsableContentHeader:ut+"collapsable-content-header",standaloneElement:ut+"standalone-element",collapsedElement:ut+"collapsed-element",dropdown:ut+"dropdown",dropdownContent:ut+"dropdown-content",dropdownButton:ut+"dropdown-button",dropdownButtonContent:ut+"dropdown-button-content",dropdownIcon:ut+"pointer",icon:ut+"icon"},lang:{accessibility:{contextMenu:{button:"Context menu"},editMode:{editMode:"Edit mode toggle button"}},addComponent:"Add component",cancelButton:"Cancel",caption:"Caption",chartClassName:"Chart class name",chartConfig:"Chart configuration",chartID:"Chart ID",chartOptions:"Chart options",chartType:"Chart type",connectorName:"Connector name",confirmButton:"Confirm",confirmDestroyCell:"Do you really want to destroy the cell?",confirmDestroyRow:"Do you really want to destroy the row?",confirmDiscardChanges:"Do you really want to discard the changes?",dataLabels:"Data labels",editMode:"Edit mode",errorMessage:"Something went wrong",exitFullscreen:"Exit full screen",id:"Id",off:"off",on:"on",pointFormat:"Point format",settings:"Settings",style:"Styles",title:"Title",viewFullscreen:"View in full screen",sidebar:{HTML:"HTML",layout:"Layout",Highcharts:"Highcharts",DataGrid:"DataGrid",KPI:"KPI"}}}}),nt(rt,"Dashboards/Layout/GUIElement.js",[rt["Dashboards/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{addEvent:dt,createElement:pt,uniqueKey:ht,objectEach:mt,error:xt}=ut;return class{static getOffsets(Mt,vt){let Ot={left:0,top:0,right:0,bottom:0};if(!Mt.container)return Ot;let At=Mt.container.getBoundingClientRect(),Rt=vt?vt.getBoundingClientRect():{left:0,top:0};return Ot.left=At.left-Rt.left,Ot.top=At.top-Rt.top,Ot.right=At.right-Rt.left,Ot.bottom=At.bottom-Rt.top,Ot}static getDimFromOffsets(Mt){return{width:Mt.right-Mt.left,height:Mt.bottom-Mt.top}}static getElementId(Mt){return lt.classNamePrefix+Mt+"-"+ht().slice(11)}static getPercentageWidth(Mt){let vt,Ot=/^(\d{1})[\-\/\.](\d{1,2})$/;if(Ot.test(Mt)){let At=Mt.match(Ot)||[];vt=((vt=100*+At[1]/+At[2])<=100?vt:100)+"%"}else if(Mt.indexOf("%")!==-1){let At=parseFloat(Mt);vt=(At<=100?At>=0?At:0:100)+"%"}return vt}getElementContainer(Mt){let vt,Ot=this;if(Mt.render)Mt.attribs&&!Mt.attribs.id&&delete Mt.attribs.id;else if(typeof Mt.elementId=="string"){let At=document.getElementById(Mt.elementId);At?Ot.container=At:xt("Element "+Mt.elementId+" does not exist")}return Mt.element instanceof HTMLElement?vt=Mt.element:vt=pt("div",Mt.attribs||{},Mt.style||{},Mt.parentContainer),Ot.removeBindedEventFn=dt(vt,"bindedGUIElement",function(At){At.guiElement=Ot,At.stopImmediatePropagation()}),vt}destroy(){let Mt=this;Mt.removeBindedEventFn&&Mt.removeBindedEventFn(),Mt.container&&Mt.container.parentNode&&Mt.container.parentNode.removeChild(Mt.container),mt(Mt,function(vt,Ot){delete Mt[Ot]})}getType(){return this.type}changeVisibility(Mt=!0,vt){let Ot=this.isVisible&&!Mt||!this.isVisible&&Mt;this.container&&Ot&&(this.container.style.display=Mt?vt||"block":"none",this.isVisible=Mt)}hide(){this.changeVisibility(!1)}show(){this.changeVisibility()}}}),nt(rt,"Dashboards/Layout/CellHTML.js",[rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/Globals.js"],rt["Dashboards/Layout/GUIElement.js"]],function(lt,ut,dt){return class extends dt{constructor(pt){super(),this.type="cell-html",this.options=pt,this.id=pt.id,this.container=pt.container,this.mountedComponent=pt.mountedComponent}destroy(){var pt;(pt=this.mountedComponent)==null||pt.destroy(),super.destroy()}setHighlight(){var pt;this.container.classList.toggle(lt.classNames.cellEditHighlight),(pt=this.mountedComponent)==null||pt.board.container.classList.toggle(lt.classNames.dashboardCellEditHighlightActive)}setActiveState(){this.container&&this.container.classList.add(ut.classNames.cellActive)}}}),nt(rt,"Dashboards/Actions/Bindings.js",[rt["Dashboards/Components/ComponentRegistry.js"],rt["Dashboards/Layout/CellHTML.js"],rt["Dashboards/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){var ht;let{addEvent:mt,fireEvent:xt}=pt;return function(Mt){function vt(At,Rt){let zt;typeof At=="string"&&document.querySelectorAll("#"+At).length>1&&console.warn(`Multiple cells have identical ID %c${At}%c, potentially leading to unexpected behavior. 
Ensure that each cell has a unique ID on the page.`,"font-weight: bold","");let Tt=Rt?Rt.querySelector("#"+At):document.getElementById(At);return Tt!==null&&xt(Tt,"bindedGUIElement",{},function(Ct){zt=Ct.guiElement}),zt}async function Ot(At,Rt,zt){var Yt;let Tt=At.states,Ct=At.events,It=At.renderTo||At.cell;if(!It){console.error("The%c renderTo%c option is required to render the component.","font-weight: bold","");return}if(Rt.mountedComponents.filter(Kt=>(Kt.options.renderTo||Kt.options.cell)===It).length>0){console.error(`A component has already been declared in the cell %c${It}%c use a different cell.`,"font-weight: bold","");return}zt=zt||Mt.getCell(It,Rt.container);let Dt=(zt==null?void 0:zt.container)||document.querySelector("#"+It);if(!Dt||!At.type){console.error(`The component is unable to find the HTML cell element %c${It}%c to render the content.`,"font-weight: bold","");return}let kt=lt.types[At.type];!kt&&(console.error(`The component's type %c${At.type}%c does not exist.`,"font-weight: bold",""),zt&&(kt=lt.types.HTML,At.title={text:((Yt=Rt.editMode)==null?void 0:Yt.lang.errorMessage)||"Something went wrong",className:dt.classNamePrefix+"component-title-error "+dt.classNamePrefix+"component-title"}));let qt=new kt(zt,At,Rt),Nt=qt.load().catch(Kt=>{var Jt;console.error(Kt),qt.update({connector:{id:""},title:{text:((Jt=Rt.editMode)==null?void 0:Jt.lang.errorMessage)||"Something went wrong",className:dt.classNamePrefix+"component-title-error "+dt.classNamePrefix+"component-title"}})});return zt&&(qt.setCell(zt),zt.mountedComponent=qt),Rt.mountedComponents.push({options:At,component:qt,cell:zt||new ut({id:It,container:Dt,mountedComponent:qt})}),xt(qt,"mount"),Ct&&Ct.click&&mt(Dt,"click",()=>{Ct.click(),zt&&qt&&Dt&&Tt&&Tt.active&&zt.setActiveState()}),Tt!=null&&Tt.hover&&Dt.classList.add(dt.classNames.cellHover),xt(qt,"afterLoad"),Nt}Mt.addComponent=Ot,Mt.componentFromJSON=function(At){let Rt=lt.types[At.$class];if(!Rt)return;let zt=Mt.getCell(At.options.renderTo||"");if(!zt)return;let Tt=Rt.fromJSON(At,zt);return Tt&&Tt.render(),Tt},Mt.getCell=function(At,Rt){let zt=vt(At,Rt);if(zt&&zt.getType()==="cell")return zt},Mt.getRow=function(At,Rt){let zt=vt(At,Rt);if(zt&&zt.getType()==="row")return zt},Mt.getLayout=function(At,Rt){let zt=vt(At,Rt);if(zt&&zt.getType()==="layout")return zt}}(ht||(ht={})),ht}),nt(rt,"Dashboards/Layout/Cell.js",[rt["Dashboards/Actions/Bindings.js"],rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/Globals.js"],rt["Dashboards/Layout/GUIElement.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){let{componentFromJSON:mt}=lt,{merge:xt,fireEvent:Mt}=ht;class vt extends pt{static fromJSON(At,Rt){if(Rt){let zt=At.options,Tt=zt.containerId;return Rt.layout.copyId&&(Tt=Tt+"_"+Rt.layout.copyId),new vt(Rt,{id:Tt,parentContainerId:Rt.container&&Rt.container.id||zt.parentContainerId,mountedComponentJSON:zt.mountedComponentJSON,style:zt.style,layoutJSON:zt.layoutJSON,width:zt.width,height:zt.height})}}constructor(At,Rt,zt){let Tt;super(),this.type=dt.guiElementType.cell,this.id=Rt.id,this.options=Rt,this.row=At,this.isVisible=!0;let Ct=document.getElementById(Rt.parentContainerId||"")||At.container,It=At.layout.options||{},Dt=At.options||{},kt=It.cellClassName||"";if(Rt.height&&(Tt=typeof Rt.height=="number"?Rt.height+"px":Rt.height),this.container=this.getElementContainer({render:At.layout.board.guiEnabled,parentContainer:Ct,attribs:{id:Rt.id,className:dt.classNames.cell+" "+kt},element:zt,elementId:Rt.id,style:xt(It.style,Dt.style,Rt.style,{height:Tt})}),this.options.mountedComponentJSON&&this.mountComponentFromJSON(this.options.mountedComponentJSON),this.options.layout&&this.setNestedLayout(),this.options.layoutJSON){let qt=this.row.layout,Nt=qt.board,Yt=qt.constructor.fromJSON;this.nestedLayout=Yt(xt(this.options.layoutJSON,{parentContainerId:this.options.id}),Nt,this)}}setNestedLayout(){let At=this.row.layout.board,Rt=this.row.layout.constructor,zt=At.options.gui;this.nestedLayout=new Rt(At,xt({},zt&&zt.layoutOptions,this.options.layout,{parentContainerId:this.options.id}),this)}mountComponentFromJSON(At){this.id!==At.options.parentElement&&(At.options.parentElement=this.id);let Rt=mt(At);return!!Rt&&(this.mountedComponent=Rt,!0)}destroy(){var zt,Tt,Ct;let{row:At}=this;(zt=this.mountedComponent)==null||zt.destroy(),(Tt=this.nestedLayout)==null||Tt.destroy(),At.unmountCell(this);let Rt=((Ct=At.cells)==null?void 0:Ct.length)===0;super.destroy(),Rt&&At.destroy()}toJSON(){let At=(this.row.container||{}).id||"";return{$class:"Dashboards.Layout.Cell",options:{containerId:this.container.id,parentContainerId:At,width:this.options.width,height:this.options.height,mountedComponentJSON:this.mountedComponent&&this.mountedComponent.toJSON(),style:this.options.style,layoutJSON:this.nestedLayout&&this.nestedLayout.toJSON()}}}getOptions(){return this.options}changeVisibility(At=!0){super.changeVisibility(At);let Rt=this,zt=Rt.row;Rt.row.getVisibleCells().length?Rt.isVisible&&!zt.isVisible&&Rt.row.show():Rt.row.hide(),setTimeout(()=>{Mt(zt,"cellChange",{row:zt,cell:Rt})},0)}getParentCell(At){let Rt;if(At<=this.row.layout.level){if(this.row.layout.level===At)return this;if(this.row.layout.level-1>=0&&(Rt=this.row.layout.parentCell))return Rt.getParentCell(At)}}getOverlappingLevels(At,Rt,zt){let Tt=this.row.layout.parentCell,Ct=[this.row.layout.level];if(Tt){let It=zt||pt.getOffsets(this)[At],Dt=pt.getOffsets(Tt)[At];Math.abs(It-Dt)<Rt&&(Ct=[...Ct,...Tt.getOverlappingLevels(At,Rt,Dt)])}return Ct}setSize(At,Rt){let zt=this.row.layout.board.editMode;if(this.container){if(At)if(At==="auto"&&this.container.style.flex!=="1 1 0%")this.container.style.flex="1 1 0%";else{let Tt=this.convertWidthToValue(At);Tt&&this.container.style.flex!=="0 0 "+Tt&&(this.container.style.flex="0 0 "+Tt),this.options.width=Tt}Rt&&(this.options.height=this.container.style.height=Rt+"px"),zt&&(zt.hideContextPointer(),zt.cellToolbar&&zt.cellToolbar.isVisible&&(zt.cellToolbar.cell===this?zt.cellToolbar.showToolbar(this):zt.cellToolbar.hide())),Mt(this.row.layout.board,"cellResize",{cell:this}),Mt(this.row,"cellChange",{cell:this,row:this.row})}}setHighlight(At){let Rt=this.row.layout.board.editMode;if(this.container&&Rt){let zt=this.container,Tt=zt.classList.contains(ut.classNames.cellEditHighlight);At||Tt?At&&Tt&&(zt.classList.remove(ut.classNames.cellEditHighlight),this.row.layout.board.container.classList.remove(ut.classNames.dashboardCellEditHighlightActive),this.isHighlighted=!1):(zt.classList.add(ut.classNames.cellEditHighlight),this.row.layout.board.container.classList.add(ut.classNames.dashboardCellEditHighlightActive),this.isHighlighted=!0)}}setActiveState(){this.row.layout.board.mountedComponents.forEach(At=>{At.cell.container&&At.cell.container.classList.remove(dt.classNames.cellActive)}),this.container&&this.container.classList.add(dt.classNames.cellActive)}setLoadingState(At=!0){var Rt,zt;(zt=(Rt=this.container)==null?void 0:Rt.classList)==null||zt.toggle(dt.classNames.cellLoading,At)}convertWidthToValue(At){return typeof At=="number"?At+"px":/px/.test(At)?At:pt.getPercentageWidth(At)||""}}return vt}),nt(rt,"Dashboards/CallbackRegistry.js",[],function(){return class{constructor(){this.registry={}}addCallback(lt,ut){this.registry[lt]=ut}getCallback(lt){return this.registry[lt]}toJSON(){let lt={};return Object.keys(this.registry).forEach(ut=>{let{func:dt,type:pt}=this.getCallback(ut);lt[ut]={func:dt.toString(),type:pt}}),lt}}}),nt(rt,"Dashboards/Components/ConnectorHandler.js",[rt["Dashboards/Layout/Cell.js"],rt["Dashboards/Globals.js"]],function(lt,ut){return class{constructor(dt,pt){this.tableEvents=[],this.component=dt,this.options=pt}async initConnector(){let dt=this.component,pt=this.options.id,ht=this.component.board.dataPool;if(pt&&(this.connectorId!==pt||ht.isNewConnector(pt))){dt.cell instanceof lt&&dt.cell.setLoadingState();let mt=await ht.getConnector(pt);this.setConnector(mt)}return dt}setConnector(dt){for(;this.tableEvents.length;){let pt=this.tableEvents.pop();typeof pt=="function"&&pt()}return this.connector=dt,dt&&(this.clearTableListeners(),this.setupTableListeners(dt.table),dt.table.on("setModifier",()=>this.clearTableListeners()),dt.table.on("afterSetModifier",pt=>{pt.type==="afterSetModifier"&&pt.modified&&(this.setupTableListeners(pt.modified),this.component.emit({type:"tableChanged",connector:dt}))}),dt.table&&(this.presentationModifier?this.presentationTable=this.presentationModifier.modifyTable(dt.table.modified.clone()).modified:this.presentationTable=dt.table)),this.component}setupTableListeners(dt){let pt=this.connector;pt&&dt&&["afterDeleteRows","afterSetCell","afterSetColumns","afterSetRows"].forEach(ht=>{this.tableEvents.push(dt.on(ht,mt=>{clearTimeout(this.tableEventTimeout),this.tableEventTimeout=ut.win.setTimeout(()=>{this.component.emit({...mt,type:"tableChanged",targetConnector:pt}),this.tableEventTimeout=void 0})}))})}clearTableListeners(){let dt=this.connector,pt=this.tableEvents;this.destroy(),dt&&pt.push(dt.table.on("afterSetModifier",ht=>{ht.type==="afterSetModifier"&&(clearTimeout(this.tableEventTimeout),this.tableEventTimeout=ut.win.setTimeout(()=>{dt.emit({...ht,type:"tableChanged",targetConnector:dt}),this.tableEventTimeout=void 0}))}))}updateOptions(dt){this.options=dt}destroy(){this.tableEvents.forEach(dt=>dt()),this.tableEvents.length=0}}}),nt(rt,"Dashboards/Components/EditableOptions.js",[],function(){class lt{constructor(dt,pt=lt.defaultBindings){this.component=dt,this.bindings=pt}getOptions(){let dt=this.component.options.editableOptions;if(!dt)return[];for(let pt=0,ht=dt.length;pt<ht;pt++){let mt=dt[pt];if(mt.name==="connectorName"){let xt=this.component.board,Mt=xt?xt.dataPool.getConnectorIds().map(vt=>({name:vt})):[];mt.selectOptions=Mt}}return dt}}return lt.defaultBindings={keyMap:{color:"colorPicker",title:"text",caption:"text",style:"textarea"},typeMap:{string:"text",number:"input",boolean:"toggle"},skipRedraw:[]},lt.defaultTypeMap={string:"text",number:"input",boolean:"toggle"},lt}),nt(rt,"Dashboards/Components/Sync/Emitter.js",[],function(){class lt{static register(dt){let{id:pt}=dt;this.registry[pt]=dt}static get(dt){return this.registry[dt]}constructor(dt,pt){this.id=dt,this.func=pt,lt.register(this)}create(dt){this.callback=this.func.call(dt)}remove(){this.callback&&this.callback()}}return lt.registry={},lt}),nt(rt,"Dashboards/Components/Sync/Handler.js",[],function(){class lt{static register(dt){let{id:pt}=dt;this.registry[pt]=dt}static get(dt){return this.registry[dt]}constructor(dt,pt){this.id=dt,this.func=pt,lt.register(this)}register(dt){let{func:pt}=this;this.callback=pt.call(dt)}remove(){this.callback&&this.callback()}}return lt.registry={},lt}),nt(rt,"Dashboards/Components/Sync/Sync.js",[rt["Dashboards/Components/Sync/Emitter.js"],rt["Dashboards/Components/Sync/Handler.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{merge:pt,isObject:ht}=dt;class mt{constructor(Mt,vt){this.component=Mt,this.predefinedSyncConfig=vt,this.syncConfig=mt.prepareSyncConfig(vt,Mt.options.sync),this.registeredSyncHandlers={},this.registeredSyncEmitters={},this.isSyncing=!1,this.listeners=[]}static prepareSyncConfig(Mt,vt={}){let{defaultSyncPairs:Ot,defaultSyncOptions:At}=Mt;return Object.keys(vt).reduce((Rt,zt)=>{if(zt){let Tt=Ot[zt],Ct=At[zt],It=vt[zt],Dt=pt(Ct||{},{enabled:ht(It)?It.enabled:It},ht(It)?It:{});if(Tt&&Dt.enabled)for(let kt of["emitter","handler"])(Dt[kt]===!0||Dt[kt]===void 0)&&(Dt[kt]=Tt[kt]);Rt[zt]=Dt}return Rt},{})}registerSyncEmitter(Mt){let{id:vt}=Mt;this.registeredSyncEmitters[vt]=Mt}isRegisteredEmitter(Mt){return!!this.registeredSyncEmitters[Mt]}registerSyncHandler(Mt){let{id:vt}=Mt;this.registeredSyncHandlers[vt]=Mt}isRegisteredHandler(Mt){return!!this.registeredSyncHandlers[Mt]}start(){let{component:Mt}=this;for(let vt of(this.syncConfig=mt.prepareSyncConfig(this.predefinedSyncConfig,Mt.options.sync),Object.keys(this.syncConfig))){let Ot=this.syncConfig[vt];if(!Ot)continue;let{emitter:At,handler:Rt}=Ot;if(Rt){Rt===!0&&(Rt=mt.defaultHandlers[vt].handler);let zt=new ut(vt,Rt);this.isRegisteredHandler(zt.id)||(this.registerSyncHandler(zt),zt.register(Mt))}if(At){At===!0&&(At=mt.defaultHandlers[vt].emitter);let zt=new lt(vt,At);this.isRegisteredEmitter(zt.id)||(this.registerSyncEmitter(zt),zt.create(Mt))}}this.isSyncing=!0,this.listeners.push(Mt.on("update",()=>this.stop()))}stop(){let{component:Mt,listeners:vt,registeredSyncHandlers:Ot,registeredSyncEmitters:At}=this;Object.keys(Ot).forEach(Rt=>{Ot[Rt].remove(),delete Ot[Rt]}),Object.keys(At).forEach(Rt=>{At[Rt].remove(),delete At[Rt]}),this.isSyncing=!1;for(let Rt=0,zt=vt.length;Rt<zt;++Rt)vt[Rt]();this.listeners.length=0,this.listeners.push(Mt.on("afterUpdate",()=>{this.start()}))}}return mt.defaultHandlers={},mt}),nt(rt,"Dashboards/Components/ComponentUtilities.js",[],function(){var lt;return function(ut){function dt(ht,mt){let xt=tt.getComputedStyle(ht);return mt.map(Mt=>xt[Mt])}function pt(ht,mt){return mt&&(ht+=typeof mt=="number"?mt:parseFloat(mt)),ht}ut.getMargins=function(ht,mt=!0){let xt={x:["borderLeft","borderRight"],y:["borderTop","borderBottom"]};return{y:dt(ht,["marginTop","marginBottom",...mt?xt.y:[]]).reduce(pt,0),x:dt(ht,["marginLeft","marginTop",...mt?xt.x:[]]).reduce(pt,0)}},ut.getPaddings=function(ht){return{x:dt(ht,["paddingLeft","paddingRight"]).reduce(pt,0),y:dt(ht,["paddingTop","paddingBottom"]).reduce(pt,0)}},ut.getStyles=dt,ut.sumPixels=pt}(lt||(lt={})),lt}),nt(rt,"Dashboards/Utilities.js",[rt["Core/Utilities.js"]],function(lt){let{error:ut,isClass:dt,isDOMElement:pt,isObject:ht,objectEach:mt,uniqueKey:xt}=lt;return{error:function(Mt,vt){if(Mt===16){console.warn("Dashboard error: Dashboards library loaded more than once.This may cause undefined behavior.");return}ut(Mt,vt)},merge:function(){let Mt,vt=arguments,Ot=0,At={},Rt=Error("Recursive copy depth > 100"),zt=(Ct,It)=>{if(typeof Ct!="object"&&(Ct={}),++Ot>100)throw Rt;return mt(It,(Dt,kt)=>{kt!=="__proto__"&&kt!=="constructor"&&(!ht(Dt,!0)||dt(Dt)||pt(Dt)?Ct[kt]=It[kt]:Ct[kt]=zt(Ct[kt]||{},Dt))}),--Ot,Ct};vt[0]===!0&&(At=vt[1],vt=Array.prototype.slice.call(vt,2));let Tt=vt.length;for(Mt=0;Mt<Tt;Mt++)At=zt(At,vt[Mt]);return At},uniqueKey:function(){return`dashboard-${xt().replace("highcharts-","")}`}}}),nt(rt,"Dashboards/Components/Component.js",[rt["Dashboards/Layout/Cell.js"],rt["Dashboards/CallbackRegistry.js"],rt["Dashboards/Components/ConnectorHandler.js"],rt["Dashboards/Components/EditableOptions.js"],rt["Dashboards/Components/Sync/Sync.js"],rt["Dashboards/Globals.js"],rt["Core/Utilities.js"],rt["Dashboards/Components/ComponentUtilities.js"],rt["Dashboards/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt){let{classNamePrefix:Ot}=mt,{createElement:At,isArray:Rt,merge:zt,fireEvent:Tt,addEvent:Ct,objectEach:It,isFunction:Dt,getStyle:kt,diffObjects:qt}=xt,{getMargins:Nt,getPaddings:Yt}=Mt,{uniqueKey:Kt}=vt;class Jt{static createTextElement(Bt,Ft,$t){if(typeof $t=="object"){let{className:jt,text:Wt,style:Ut}=$t;return At(Bt,{className:jt||`${Ot}component-${Ft}`,textContent:Wt},Ut)}if(typeof $t=="string")return At(Bt,{className:`${Ot}component-${Ft}`,textContent:$t},{})}constructor(Bt,Ft,$t){var Wt,Ut;this.connectorHandlers=[],this.callbackRegistry=new ut,this.cellListeners=[],this.resizeTimeouts=[],this.innerResizeTimeouts=[];let jt=Ft.renderTo||Ft.cell;if(this.board=$t||((Ut=(Wt=Bt==null?void 0:Bt.row)==null?void 0:Wt.layout)==null?void 0:Ut.board)||{},this.parentElement=(Bt==null?void 0:Bt.container)||document.querySelector("#"+jt),this.cell=Bt,this.options=zt(Jt.defaultOptions,Ft),this.id=this.options.id&&this.options.id.length?this.options.id:Kt(),this.options.connector)for(let Vt of Rt(this.options.connector)?this.options.connector:[this.options.connector])this.connectorHandlers.push(new dt(this,Vt));this.editableOptions=new pt(this,Ft.editableOptionsBindings),this.dimensions={width:null,height:null},this.element=At("div",{className:this.options.className},{},this.parentElement),Number(kt(this.element,"padding"))||(this.element.style.padding="0.1px"),this.contentElement=At("div",{className:`${this.options.className}-content`},{},this.element,!0),this.sync=new ht(this,this.constructor.predefinedSyncConfig),this.setupEventListeners(),Bt&&(this.attachCellListeners(),this.on("update",()=>{this.cell instanceof lt&&this.cell.setLoadingState()}),this.on("afterRender",()=>{this.cell instanceof lt&&this.cell.setLoadingState(!1)})),this.on("tableChanged",()=>{this.onTableChanged()})}getOptionsOnDrop(Bt){return{}}getFirstConnector(){var Bt;return(Bt=this.connectorHandlers[0])==null?void 0:Bt.connector}attachCellListeners(){for(;this.cellListeners.length;){let Bt=this.cellListeners.pop();Bt&&Bt()}if(this.cell&&this.cell instanceof lt&&Object.keys(this.cell).length){let Bt=this.cell.row.layout.board;this.cellListeners.push(Ct(Bt,"cellResize",()=>{this.resizeTo(this.parentElement)}),Ct(this.cell.row,"cellChange",Ft=>{let{row:$t}=Ft;$t&&this.cell&&$t.getCellIndex(this.cell)===void 0&&this.cell&&this.setCell(this.cell)}))}}setCell(Bt,Ft=!1){this.cell=Bt,Bt.container&&(this.parentElement=Bt.container),this.attachCellListeners(),Ft&&this.resizeTo(this.parentElement)}async initConnectors(){for(let Bt of(Tt(this,"setConnectors",{connectorHandlers:this.connectorHandlers}),this.connectorHandlers))await Bt.initConnector();return Tt(this,"afterSetConnectors",{connectorHandlers:this.connectorHandlers}),this}getContentHeight(){return(this.titleElement?this.titleElement.clientHeight+Nt(this.titleElement).y:0)+(this.captionElement?this.captionElement.clientHeight+Nt(this.captionElement).y:0)}resize(Bt,Ft){if(Ft){let $t=Yt(this.element).y+Nt(this.element).y;this.element.style.height="calc(100% - "+$t+"px)",this.contentElement.style.height="calc(100% - "+this.getContentHeight()+"px)"}else Ft===null&&(this.dimensions.height=null,this.element.style.removeProperty("height"));Tt(this,"resize",{width:Bt,height:Ft})}resizeTo(Bt){for(;this.resizeTimeouts.length;){let $t=this.resizeTimeouts.pop();$t&&cancelAnimationFrame($t)}let Ft=requestAnimationFrame(()=>{let{width:$t,height:jt}=Bt.getBoundingClientRect(),Wt=Yt(Bt),Ut=Nt(Bt);this.resize($t-Wt.x-Ut.x,jt-Wt.y-Ut.y)});this.resizeTimeouts.push(Ft)}async update(Bt,Ft=!0){var Ut,Vt;let $t={options:Bt,shouldForceRerender:!1};Tt(this,"update",$t),Bt.connector&&Array.isArray(this.options.connector)&&(this.options.connector=void 0),this.options=zt(this.options,Bt);let jt=this.options.connector?Rt(this.options.connector)?this.options.connector:[this.options.connector]:[],Wt=jt.length!==this.connectorHandlers.length;if(!Wt)for(let Ht=0,Gt=jt.length;Ht<Gt;Ht++){if(((Ut=this.connectorHandlers[Ht])==null?void 0:Ut.options.id)!==((Vt=jt[Ht])==null?void 0:Vt.id)){Wt=!0;break}this.connectorHandlers[Ht].updateOptions(jt[Ht])}if(Wt){for(let Ht of this.connectorHandlers)Ht.destroy();for(let Ht of(this.connectorHandlers.length=0,jt))this.connectorHandlers.push(new dt(this,Ht));await this.initConnectors()}(Ft||$t.shouldForceRerender)&&this.render()}setupEventListeners(){let Bt=this.options.events;Bt&&(Object.keys(Bt).forEach($t=>{let jt=Bt[$t];jt&&this.callbackRegistry.addCallback($t,{type:"component",func:jt})}),It(Bt,($t,jt)=>{Dt($t)&&this.on(jt,$t)}));let Ft=()=>{this.resizeTo(this.parentElement)};if(typeof ResizeObserver=="function")this.resizeObserver=new ResizeObserver(Ft),this.resizeObserver.observe(this.element);else{let $t=Ct(tt,"resize",Ft);Ct(this,"destroy",$t)}}setTitle(Bt){let Ft=this.titleElement;if(Bt&&(typeof Bt=="string"||Bt.text)){let $t=Jt.createTextElement("h2","title",Bt);$t&&(Ft?Ft.replaceWith($t):this.element.insertBefore($t,this.element.firstChild),this.titleElement=$t)}else if(Ft){Ft.remove(),delete this.titleElement;return}}setCaption(Bt){let Ft=this.captionElement;if(Bt&&(typeof Bt=="string"||Bt.text)){let $t=Jt.createTextElement("div","caption",Bt);$t&&(Ft?Ft.replaceWith($t):this.element.appendChild($t),this.captionElement=$t)}else if(Ft){Ft.remove(),delete this.captionElement;return}}async load(){return await this.initConnectors(),this.render(),this}render(){return this.emit({type:"render"}),this.setTitle(this.options.title),this.setCaption(this.options.caption),this.resizeTo(this.parentElement),this}destroy(){for(this.sync.stop();this.element.firstChild;)this.element.firstChild.remove();for(let Bt of(Tt(this,"unmount"),this.connectorHandlers))Bt.destroy();this.element.remove()}on(Bt,Ft){return Ct(this,Bt,Ft)}emit(Bt){Bt.target||(Bt.target=this),Tt(this,Bt.type,Bt)}toJSON(){let Bt={width:0,height:0};return It(this.dimensions,function(Ft,$t){Ft!==null&&(Bt[$t]=Ft)}),{$class:this.options.type,options:{renderTo:this.options.renderTo,parentElement:this.parentElement.id,dimensions:Bt,id:this.id,type:this.type}}}getOptions(){return qt(this.options,Jt.defaultOptions)}getEditableOptions(){return zt(this.options)}getEditableOptionValue(Bt){if(!Bt)return;let Ft=this.getEditableOptions();for(let $t=0,jt=Bt.length;$t<jt;$t++){if(Rt(Ft)){if(Bt[0]==="connector"&&Ft.length>1)return"multiple connectors";Ft=Ft[0]}if(!Ft)return;(Ft=Ft[Bt[$t]])===!1&&(Bt.indexOf("title")>=0||Bt.indexOf("subtitle")>=0||Bt.indexOf("caption")>=0)&&(Ft="")}return Ft}}return Jt.Sync=ht,Jt.predefinedSyncConfig={defaultSyncOptions:{},defaultSyncPairs:{}},Jt.defaultOptions={className:`${Ot}component`,id:"",title:!1,caption:!1,sync:ht.defaultHandlers,editableOptions:[{name:"title",propertyPath:["title"],type:"input"},{name:"caption",propertyPath:["caption"],type:"input"}]},Jt}),nt(rt,"Dashboards/Components/HTMLComponent/HTMLComponentDefaults.js",[],function(){return{type:"HTML",elements:[]}}),nt(rt,"Dashboards/Components/HTMLComponent/HTMLSyncs/HTMLSyncs.js",[],function(){return{defaultSyncPairs:{},defaultSyncOptions:{}}}),nt(rt,"Dashboards/Components/HTMLComponent/HTMLComponent.js",[rt["Core/Renderer/HTML/AST.js"],rt["Dashboards/Components/Component.js"],rt["Dashboards/Components/HTMLComponent/HTMLComponentDefaults.js"],rt["Dashboards/Components/HTMLComponent/HTMLSyncs/HTMLSyncs.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){let{merge:mt,diffObjects:xt}=ht;lt.allowedTags=[...lt.allowedTags,"option","select","label","input","textarea"],lt.allowedAttributes=[...lt.allowedAttributes,"for","value","checked","src","name","selected"],lt.allowedReferences=[...lt.allowedReferences,"data:image/"];class Mt extends ut{static fromJSON(Ot,At){let Rt=new Mt(At,mt(Ot.options,{elements:Ot.elements?Ot.elements.map(zt=>JSON.parse(zt)):[]}));return Rt.emit({type:"fromJSON",json:Ot}),Rt}constructor(Ot,At){super(Ot,At=mt(Mt.defaultOptions,At)),this.options=At,this.type="HTML",this.elements=[]}async load(){var Rt;this.emit({type:"load"}),await super.load();let Ot=this.options,At=!1;if((Rt=Ot.elements)!=null&&Rt.length?this.elements=Ot.elements.map(function(zt){return typeof zt=="string"?new lt(zt).nodes[0]:(zt.textContent||zt.tagName||!zt.attributes||(At=!0),zt)}):Ot.html&&(this.elements=this.getElementsFromString(Ot.html)),this.constructTree(),this.emit({type:"afterLoad"}),At)throw Error(`Missing tagName param in component: ${Ot.renderTo}`);return this}render(){return super.render(),this.constructTree(),this.sync.start(),this.emit({type:"afterRender"}),this}resize(Ot,At){return super.resize(Ot,At),this}async update(Ot){await super.update(Ot),this.emit({type:"afterUpdate"})}getOptionsOnDrop(){return{cell:"",type:"HTML",elements:[{tagName:"img",attributes:{src:"https://www.highcharts.com/samples/graphics/stock-dark.svg"}}]}}constructTree(){for(;this.contentElement.firstChild;)this.contentElement.firstChild.remove();new lt(this.elements).addToDOM(this.contentElement)}getElementsFromString(Ot){return new lt(Ot).nodes}toJSON(){let Ot=(this.options.elements||[]).map(Rt=>JSON.stringify(Rt)),At=mt(super.toJSON(),{elements:Ot,options:this.options});return this.emit({type:"toJSON",json:At}),At}getOptions(){return{...xt(this.options,Mt.defaultOptions),type:"HTML"}}onTableChanged(Ot){var At;((At=Ot.detail)==null?void 0:At.sender)!==this.id&&this.render()}}return Mt.defaultOptions=mt(ut.defaultOptions,dt),Mt.predefinedSyncConfig=pt,Mt}),nt(rt,"Data/DataTable.js",[rt["Core/Utilities.js"]],function(lt){let{addEvent:ut,fireEvent:dt,uniqueKey:pt}=lt;class ht{static isNull(xt){if(xt===ht.NULL)return!0;if(xt instanceof Array){if(!xt.length)return!1;for(let Mt=0,vt=xt.length;Mt<vt;++Mt)if(xt[Mt]!==null)return!1}else{let Mt=Object.keys(xt);if(!Mt.length)return!1;for(let vt=0,Ot=Mt.length;vt<Ot;++vt)if(xt[Mt[vt]]!==null)return!1}return!0}constructor(xt={}){this.aliases=xt.aliases?JSON.parse(JSON.stringify(xt.aliases)):{},this.autoId=!xt.id,this.columns={},this.id=xt.id||pt(),this.modified=this,this.rowCount=0,this.versionTag=pt(),this.rowKeysId=xt.rowKeysId;let Mt=xt.columns||{},vt=Object.keys(Mt),Ot=this.columns,At=0;for(let Ct=0,It=vt.length,Dt,kt;Ct<It;++Ct)Dt=Mt[kt=vt[Ct]].slice(),Ot[kt]=Dt,At=Math.max(At,Dt.length);for(let Ct=0,It=vt.length;Ct<It;++Ct)Ot[vt[Ct]].length=At;this.rowCount=At;let Rt=xt.aliases||{},zt=Object.keys(Rt),Tt=this.aliases;for(let Ct=0,It=zt.length,Dt;Ct<It;++Ct)Tt[Dt=zt[Ct]]=Rt[Dt];this.setRowKeysColumn(At)}clone(xt,Mt){let vt={};this.emit({type:"cloneTable",detail:Mt}),xt||(vt.aliases=this.aliases,vt.columns=this.columns),this.autoId||(vt.id=this.id),this.rowKeysId&&(vt.rowKeysId=this.rowKeysId);let Ot=new ht(vt);return xt||(Ot.versionTag=this.versionTag),this.emit({type:"afterCloneTable",detail:Mt,tableClone:Ot}),Ot}deleteColumnAlias(xt){let Mt=this.aliases[xt],vt=this.modifier;return Mt&&(delete this.aliases[xt],vt&&vt.modifyColumns(this,{[Mt]:Array(this.rowCount)},0)),Mt}deleteColumns(xt,Mt){let vt=this.columns,Ot={},At={},Rt=this.modifier,zt=this.rowCount;if((xt=xt||Object.keys(vt)).length){this.emit({type:"deleteColumns",columnNames:xt,detail:Mt});for(let Ct=0,It=xt.length,Dt,kt;Ct<It;++Ct)(Dt=vt[kt=xt[Ct]])&&(Ot[kt]=Dt,At[kt]=Array(zt)),delete vt[kt];let Tt=Object.keys(vt).length;return this.rowKeysId&&Tt===1&&(delete vt[this.rowKeysId],Tt=0),Tt||(this.rowCount=0),Rt&&Rt.modifyColumns(this,At,0,Mt),this.emit({type:"afterDeleteColumns",columns:Ot,columnNames:xt,detail:Mt}),Ot}}deleteRows(xt,Mt=1,vt){let Ot=[],At=[],Rt=this.modifier;if(this.emit({type:"deleteRows",detail:vt,rowCount:Mt,rowIndex:xt||0}),xt===void 0&&(xt=0,Mt=this.rowCount),Mt>0&&xt<this.rowCount){let zt=this.columns,Tt=Object.keys(zt);for(let Ct=0,It=Tt.length,Dt,kt;Ct<It;++Ct){kt=(Dt=zt[Tt[Ct]]).splice(xt,Mt),Ct||(this.rowCount=Dt.length);for(let qt=0,Nt=kt.length;qt<Nt;++qt)Ot[qt]=Ot[qt]||[],Ot[qt][Ct]=kt[qt];At.push(Array(It))}}return Rt&&Rt.modifyRows(this,At,xt||0,vt),this.emit({type:"afterDeleteRows",detail:vt,rowCount:Mt,rowIndex:xt||0,rows:Ot}),Ot}emit(xt){switch(xt.type){case"afterDeleteColumns":case"afterDeleteRows":case"afterSetCell":case"afterSetColumns":case"afterSetRows":this.versionTag=pt()}dt(this,xt.type,xt)}getCell(xt,Mt){xt=this.aliases[xt]||xt;let vt=this.columns[xt];if(vt)return vt[Mt]}getCellAsBoolean(xt,Mt){xt=this.aliases[xt]||xt;let vt=this.columns[xt];return!!(vt&&vt[Mt])}getCellAsNumber(xt,Mt,vt){xt=this.aliases[xt]||xt;let Ot=this.columns[xt],At=Ot&&Ot[Mt];switch(typeof At){case"boolean":return At?1:0;case"number":return isNaN(At)&&!vt?null:At}return isNaN(At=parseFloat(`${At??""}`))&&!vt?null:At}getCellAsString(xt,Mt){xt=this.aliases[xt]||xt;let vt=this.columns[xt];return`${vt&&vt[Mt]}`}getColumn(xt,Mt){return this.getColumns([xt],Mt)[xt]}getColumnAsNumbers(xt,Mt){let vt=this.columns[xt=this.aliases[xt]||xt],Ot=[];if(vt){let At=vt.length;if(Mt)for(let Rt=0;Rt<At;++Rt)Ot.push(this.getCellAsNumber(xt,Rt,!0));else{for(let Rt=0,zt;Rt<At;++Rt){if(typeof(zt=vt[Rt])=="number")return vt.slice();if(zt!=null)break}for(let Rt=0;Rt<At;++Rt)Ot.push(this.getCellAsNumber(xt,Rt))}}return Ot}getColumnNames(){let xt=Object.keys(this.columns);return this.removeRowKeysColumn(xt),xt}getColumns(xt,Mt){let vt=this.aliases,Ot=this.columns,At={};xt=xt||Object.keys(Ot),this.removeRowKeysColumn(xt);for(let Rt=0,zt=xt.length,Tt,Ct;Rt<zt;++Rt)(Tt=Ot[vt[Ct=xt[Rt]]||Ct])&&(At[Ct]=Mt?Tt:Tt.slice());return At}getModifier(){return this.modifier}getRow(xt,Mt){return this.getRows(xt,1,Mt)[0]}getRowCount(){return this.rowCount}getRowIndexBy(xt,Mt,vt){xt=this.aliases[xt]||xt;let Ot=this.columns[xt];if(Ot){let At=Ot.indexOf(Mt,vt);if(At!==-1)return At}}getRowObject(xt,Mt){return this.getRowObjects(xt,1,Mt)[0]}getRowObjects(xt=0,Mt=this.rowCount-xt,vt){let Ot=this.aliases,At=this.columns,Rt=Array(Mt);vt=vt||Object.keys(At),this.removeRowKeysColumn(vt);for(let zt=xt,Tt=0,Ct=Math.min(this.rowCount,xt+Mt),It,Dt;zt<Ct;++zt,++Tt)for(let kt of(Dt=Rt[Tt]={},vt))It=At[Ot[kt]||kt],Dt[kt]=It?It[zt]:void 0;return Rt}getRows(xt=0,Mt=this.rowCount-xt,vt){let Ot=this.aliases,At=this.columns,Rt=Array(Mt);vt=vt||Object.keys(At);for(let zt=xt,Tt=0,Ct=Math.min(this.rowCount,xt+Mt),It,Dt;zt<Ct;++zt,++Tt)for(let kt of(Dt=Rt[Tt]=[],vt))It=At[Ot[kt]||kt],Dt.push(It?It[zt]:void 0);return Rt}getVersionTag(){return this.versionTag}hasColumns(xt){let Mt=this.aliases,vt=this.columns;for(let Ot=0,At=xt.length,Rt;Ot<At;++Ot)if(!vt[Rt=xt[Ot]]&&!Mt[Rt])return!1;return!0}hasRowWith(xt,Mt){xt=this.aliases[xt]||xt;let vt=this.columns[xt];return!!vt&&vt.indexOf(Mt)!==-1}on(xt,Mt){return ut(this,xt,Mt)}renameColumn(xt,Mt){let vt=this.columns;if(vt[xt]){if(xt!==Mt){let Ot=this.aliases;Ot[Mt]&&delete Ot[Mt],vt[Mt]=vt[xt],delete vt[xt],this.rowKeysId&&this.moveRowKeysColumnToLast(vt,this.rowKeysId)}return!0}return!1}setCell(xt,Mt,vt,Ot){let At=this.columns,Rt=this.modifier,zt=At[xt=this.aliases[xt]||xt];zt&&zt[Mt]===vt||(this.emit({type:"setCell",cellValue:vt,columnName:xt,detail:Ot,rowIndex:Mt}),zt||(zt=At[xt]=Array(this.rowCount)),Mt>=this.rowCount&&(this.rowCount=Mt+1),zt[Mt]=vt,Rt&&Rt.modifyCell(this,xt,Mt,vt),this.emit({type:"afterSetCell",cellValue:vt,columnName:xt,detail:Ot,rowIndex:Mt}))}setColumn(xt,Mt=[],vt=0,Ot){this.setColumns({[xt]:Mt},vt,Ot)}setColumns(xt,Mt,vt){let Ot=this.columns,At=this.modifier,Rt=Mt===void 0,zt=Object.keys(xt);this.emit({type:"setColumns",columns:xt,columnNames:zt,detail:vt,rowIndex:Mt});for(let Ct=0,It=zt.length,Dt,kt;Ct<It;++Ct)if(Dt=xt[kt=zt[Ct]],kt=this.aliases[kt]||kt,Rt)Ot[kt]=Dt.slice(),this.rowCount=Dt.length;else{let qt=Ot[kt]?Ot[kt]:Ot[kt]=Array(this.rowCount);for(let Nt=Mt||0,Yt=Dt.length;Nt<Yt;++Nt)qt[Nt]=Dt[Nt];this.rowCount=Math.max(this.rowCount,qt.length)}let Tt=Object.keys(Ot);for(let Ct=0,It=Tt.length;Ct<It;++Ct)Ot[Tt[Ct]].length=this.rowCount;At&&At.modifyColumns(this,xt,Mt||0),this.rowKeysId&&this.moveRowKeysColumnToLast(Ot,this.rowKeysId),this.emit({type:"afterSetColumns",columns:xt,columnNames:zt,detail:vt,rowIndex:Mt})}setRowKeysColumn(xt){let Mt=this.rowKeysId;if(!Mt)return;this.columns[Mt]=[];let vt=this.columns[Mt];for(let Ot=0;Ot<xt;Ot++)vt.push(Mt+"_"+Ot)}getRowKeysColumn(){let xt=this.rowKeysId;if(xt)return this.columns[xt]}getRowIndexOriginal(xt){let Mt=this.rowKeysId;return Mt?(""+this.columns[Mt][xt]).split("_")[1]:String(xt)}setModifier(xt,Mt){let vt=this;return vt.emit({type:"setModifier",detail:Mt,modifier:xt,modified:vt.modified}),vt.modified=vt,vt.modifier=xt,(xt?xt.modify(vt):Promise.resolve(vt)).then(Ot=>(Ot.emit({type:"afterSetModifier",detail:Mt,modifier:xt,modified:Ot.modified}),Ot)).catch(Ot=>{throw vt.emit({type:"setModifierError",error:Ot,modifier:xt,modified:vt.modified}),Ot})}setRow(xt,Mt,vt){this.setRows([xt],Mt,vt)}setRows(xt,Mt=this.rowCount,vt){let Ot=this.aliases,At=this.columns,Rt=Object.keys(At),zt=this.modifier,Tt=xt.length;this.emit({type:"setRows",detail:vt,rowCount:Tt,rowIndex:Mt,rows:xt});for(let It=0,Dt=Mt,kt;It<Tt;++It,++Dt)if((kt=xt[It])===ht.NULL)for(let qt=0,Nt=Rt.length;qt<Nt;++qt)At[Rt[qt]][Dt]=null;else if(kt instanceof Array)for(let qt=0,Nt=Rt.length;qt<Nt;++qt)At[Rt[qt]][Dt]=kt[qt];else{let qt=Object.keys(kt);for(let Nt=0,Yt=qt.length,Kt;Nt<Yt;++Nt)At[Kt=Ot[Kt=qt[Nt]]||Kt]||(At[Kt]=Array(Dt+1)),At[Kt][Dt]=kt[Kt]}let Ct=Mt+Tt;if(Ct>this.rowCount){this.rowCount=Ct;for(let It=0,Dt=Rt.length;It<Dt;++It)At[Rt[It]].length=Ct}this.rowKeysId&&!Rt.includes(this.rowKeysId)&&this.setRowKeysColumn(Tt),zt&&zt.modifyRows(this,xt,Mt),this.emit({type:"afterSetRows",detail:vt,rowCount:Tt,rowIndex:Mt,rows:xt})}moveRowKeysColumnToLast(xt,Mt){let vt=xt[Mt];delete xt[Mt],xt[Mt]=vt}removeRowKeysColumn(xt){this.rowKeysId&&xt.indexOf(this.rowKeysId)!==-1&&xt.pop()}}return ht.NULL={},ht.version="1.0.0",ht}),nt(rt,"Data/Converters/DataConverter.js",[rt["Data/DataTable.js"],rt["Core/Utilities.js"]],function(lt,ut){let{addEvent:dt,fireEvent:pt,isNumber:ht,merge:mt}=ut;class xt{constructor(vt){this.dateFormats={"YYYY/mm/dd":{regex:/^(\d{4})([\-\.\/])(\d{1,2})\2(\d{1,2})$/,parser:function(Rt){return Rt?Date.UTC(+Rt[1],Rt[3]-1,+Rt[4]):NaN}},"dd/mm/YYYY":{regex:/^(\d{1,2})([\-\.\/])(\d{1,2})\2(\d{4})$/,parser:function(Rt){return Rt?Date.UTC(+Rt[4],Rt[3]-1,+Rt[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^(\d{1,2})([\-\.\/])(\d{1,2})\2(\d{4})$/,parser:function(Rt){return Rt?Date.UTC(+Rt[4],Rt[1]-1,+Rt[3]):NaN}},"dd/mm/YY":{regex:/^(\d{1,2})([\-\.\/])(\d{1,2})\2(\d{2})$/,parser:function(Rt){let zt=new Date;if(!Rt)return NaN;let Tt=+Rt[4];return Tt>zt.getFullYear()-2e3?Tt+=1900:Tt+=2e3,Date.UTC(Tt,Rt[3]-1,+Rt[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^(\d{1,2})([\-\.\/])(\d{1,2})\2(\d{2})$/,parser:function(Rt){return Rt?Date.UTC(+Rt[4]+2e3,Rt[1]-1,+Rt[3]):NaN}}};let Ot=mt(xt.defaultOptions,vt),At=Ot.decimalPoint;(At==="."||At===",")&&(At=At==="."?"\\.":",",this.decimalRegExp=RegExp("^(-?[0-9]+)"+At+"([0-9]+)$")),this.options=Ot}asBoolean(vt){return typeof vt=="boolean"?vt:typeof vt=="string"?vt!==""&&vt!=="0"&&vt!=="false":!!this.asNumber(vt)}asDate(vt){let Ot;if(typeof vt=="string")Ot=this.parseDate(vt);else if(typeof vt=="number")Ot=vt;else{if(vt instanceof Date)return vt;Ot=this.parseDate(this.asString(vt))}return new Date(Ot)}asGuessedType(vt){return{number:this.asNumber,Date:this.asDate,string:this.asString}[this.guessType(vt)].call(this,vt)}asNumber(vt){if(typeof vt=="number")return vt;if(typeof vt=="boolean")return vt?1:0;if(typeof vt=="string"){let Ot=this.decimalRegExp;if(vt.indexOf(" ")>-1&&(vt=vt.replace(/\s+/g,"")),Ot){if(!Ot.test(vt))return NaN;vt=vt.replace(Ot,"$1.$2")}return parseFloat(vt)}return vt instanceof Date?vt.getDate():vt?vt.getRowCount():NaN}asString(vt){return""+vt}deduceDateFormat(vt,Ot,At){let Rt=[],zt=[],Tt="YYYY/mm/dd",Ct,It=[],Dt=0,kt=!1,qt,Nt;for((!Ot||Ot>vt.length)&&(Ot=vt.length);Dt<Ot;Dt++)if(vt[Dt]!==void 0&&vt[Dt]&&vt[Dt].length)for(Nt=0,Ct=vt[Dt].trim().replace(/[\-\.\/]/g," ").split(" "),It=["","",""];Nt<Ct.length;Nt++)Nt<It.length&&(qt=parseInt(Ct[Nt],10))&&(zt[Nt]=!zt[Nt]||zt[Nt]<qt?qt:zt[Nt],Rt[Nt]!==void 0?Rt[Nt]!==qt&&(Rt[Nt]=!1):Rt[Nt]=qt,qt>31?qt<100?It[Nt]="YY":It[Nt]="YYYY":qt>12&&qt<=31?(It[Nt]="dd",kt=!0):It[Nt].length||(It[Nt]="mm"));if(kt){for(Nt=0;Nt<Rt.length;Nt++)Rt[Nt]!==!1?zt[Nt]>12&&It[Nt]!=="YY"&&It[Nt]!=="YYYY"&&(It[Nt]="YY"):zt[Nt]>12&&It[Nt]==="mm"&&(It[Nt]="dd");It.length===3&&It[1]==="dd"&&It[2]==="dd"&&(It[2]="YY"),Tt=It.join("/")}return At&&(this.options.dateFormat=Tt),Tt}emit(vt){pt(this,vt.type,vt)}export(vt,Ot){throw this.emit({type:"exportError",columns:[],headers:[]}),Error("Not implemented")}getTable(){throw Error("Not implemented")}guessType(vt){let Ot="string";if(typeof vt=="string"){let At=this.trim(`${vt}`),Rt=this.decimalRegExp,zt=this.trim(At,!0);Rt&&(zt=Rt.test(zt)?zt.replace(Rt,"$1.$2"):"");let Tt=parseFloat(zt);+zt===Tt?vt=Tt:Ot=ht(this.parseDate(vt))?"Date":"string"}return typeof vt=="number"&&(Ot=vt>31536e6?"Date":"number"),Ot}on(vt,Ot){return dt(this,vt,Ot)}parse(vt){throw this.emit({type:"parseError",columns:[],headers:[]}),Error("Not implemented")}parseDate(vt,Ot){let At=this.options,Rt=Ot||At.dateFormat,zt=NaN,Tt,Ct,It;if(At.parseDate)zt=At.parseDate(vt);else{if(Rt)(Ct=this.dateFormats[Rt])||(Ct=this.dateFormats["YYYY/mm/dd"]),(It=vt.match(Ct.regex))&&(zt=Ct.parser(It));else for(Tt in this.dateFormats)if(Ct=this.dateFormats[Tt],It=vt.match(Ct.regex)){Rt=Tt,zt=Ct.parser(It);break}!It&&(typeof(It=Date.parse(vt))=="object"&&It!==null&&It.getTime?zt=It.getTime()-6e4*It.getTimezoneOffset():ht(It)&&(zt=It-6e4*new Date(It).getTimezoneOffset(),vt.indexOf("2001")===-1&&new Date(zt).getFullYear()===2001&&(zt=NaN)))}return zt}trim(vt,Ot){return typeof vt=="string"&&(vt=vt.replace(/^\s+|\s+$/g,""),Ot&&/^[\d\s]+$/.test(vt)&&(vt=vt.replace(/\s/g,""))),vt}}return xt.defaultOptions={dateFormat:"",alternativeFormat:"",startColumn:0,endColumn:Number.MAX_VALUE,startRow:0,endRow:Number.MAX_VALUE,firstRowAsNames:!0,switchRowsAndColumns:!1},(xt||(xt={})).getTableFromColumns=function(Mt=[],vt=[]){let Ot=new lt;for(let At=0,Rt=Math.max(vt.length,Mt.length);At<Rt;++At)Ot.setColumn(vt[At]||`${At}`,Mt[At]);return Ot},xt}),nt(rt,"Data/Converters/CSVConverter.js",[rt["Data/Converters/DataConverter.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt){let xt=dt(pt.defaultOptions,mt);super(xt),this.columns=[],this.headers=[],this.dataTypes=[],this.options=xt}export(mt,xt=this.options){let{useLocalDecimalPoint:Mt,lineDelimiter:vt}=xt,Ot=this.options.firstRowAsNames!==!1,{decimalPoint:At,itemDelimiter:Rt}=xt;At||(At=Rt!==","&&Mt?1.1.toLocaleString()[1]:"."),Rt||(Rt=At===","?";":",");let zt=mt.getSortedColumns(xt.usePresentationOrder),Tt=Object.keys(zt),Ct=[],It=Tt.length,Dt=[];Ot&&Ct.push(Tt.map(kt=>`"${kt}"`).join(Rt));for(let kt=0;kt<It;kt++){let qt,Nt=Tt[kt],Yt=zt[Nt],Kt=Yt.length,Jt=mt.whatIs(Nt);Jt&&(qt=Jt.dataType);for(let Qt=0;Qt<Kt;Qt++){let Bt=Yt[Qt];if(Dt[Qt]||(Dt[Qt]=[]),qt==="string"?Bt='"'+Bt+'"':typeof Bt=="number"?Bt=String(Bt).replace(".",At):typeof Bt=="string"&&(Bt=`"${Bt}"`),Dt[Qt][kt]=Bt,kt===It-1){let Ft=kt;for(;Dt[Qt].length>2&&Dt[Qt][Ft]===void 0;)Dt[Qt].pop(),Ft--;Ct.push(Dt[Qt].join(Rt))}}}return Ct.join(vt)}parse(mt,xt){let Mt=this.dataTypes,vt=dt(this.options,mt),{beforeParse:Ot,lineDelimiter:At,firstRowAsNames:Rt,itemDelimiter:zt}=vt,Tt,Ct=0,{csv:It,startRow:Dt,endRow:kt}=vt,qt;if(this.columns=[],this.emit({type:"parse",columns:this.columns,detail:xt,headers:this.headers}),It&&Ot&&(It=Ot(It)),It){if(Tt=It.replace(/\r\n|\r/g,`
`).split(At||`
`),(!Dt||Dt<0)&&(Dt=0),(!kt||kt>=Tt.length)&&(kt=Tt.length-1),zt||(this.guessedItemDelimiter=this.guessDelimiter(Tt)),Rt){let Yt=Tt[0].split(zt||this.guessedItemDelimiter||",");for(let Kt=0;Kt<Yt.length;Kt++)Yt[Kt]=Yt[Kt].trim().replace(/^["']|["']$/g,"");this.headers=Yt,Dt++}let Nt=0;for(Ct=Dt;Ct<=kt;Ct++)Tt[Ct][0]==="#"?Nt++:this.parseCSVRow(Tt[Ct],Ct-Dt-Nt);Mt.length&&Mt[0].length&&Mt[0][1]==="date"&&!this.options.dateFormat&&this.deduceDateFormat(this.columns[0],null,!0);for(let Yt=0,Kt=this.columns.length;Yt<Kt;++Yt){qt=this.columns[Yt];for(let Jt=0,Qt=qt.length;Jt<Qt;++Jt)if(qt[Jt]&&typeof qt[Jt]=="string"){let Bt=this.asGuessedType(qt[Jt]);Bt instanceof Date&&(Bt=Bt.getTime()),this.columns[Yt][Jt]=Bt}}}this.emit({type:"afterParse",columns:this.columns,detail:xt,headers:this.headers})}parseCSVRow(mt,xt){let Mt=this,vt=Mt.columns||[],Ot=Mt.dataTypes,{startColumn:At,endColumn:Rt}=Mt.options,zt=Mt.options.itemDelimiter||Mt.guessedItemDelimiter,{decimalPoint:Tt}=Mt.options;Tt&&Tt!==zt||(Tt=Mt.guessedDecimalPoint||".");let Ct=0,It="",Dt="",kt=0,qt=0,Nt=Jt=>{It=mt[Jt]},Yt=Jt=>{Ot.length<qt+1&&Ot.push([Jt]),Ot[qt][Ot[qt].length-1]!==Jt&&Ot[qt].push(Jt)},Kt=()=>{if(At>kt||kt>Rt){++kt,Dt="";return}if(typeof Dt=="string"?!isNaN(parseFloat(Dt))&&isFinite(Dt)?(Dt=parseFloat(Dt),Yt("number")):isNaN(Date.parse(Dt))?Yt("string"):(Dt=Dt.replace(/\//g,"-"),Yt("date")):Yt("number"),vt.length<qt+1&&vt.push([]),typeof Dt!="number"&&Mt.guessType(Dt)!=="number"&&Tt){let Jt=Dt;Dt=Dt.replace(Tt,"."),Mt.guessType(Dt)!=="number"&&(Dt=Jt)}vt[qt][xt]=Dt,Dt="",++qt,++kt};if(mt.trim().length&&mt.trim()[0]!=="#"){for(;Ct<mt.length;Ct++){if(Nt(Ct),It==="#"&&!/^#[A-F\d]{3,3}|[A-F\d]{6,6}/i.test(mt.substring(Ct))){Kt();return}if(It==='"')for(Nt(++Ct);Ct<mt.length&&It!=='"';)Dt+=It,Nt(++Ct);else It===zt?Kt():Dt+=It}Kt()}}guessDelimiter(mt){let xt=0,Mt=0,vt,Ot={",":0,";":0,"	":0},At=mt.length;for(let Rt=0;Rt<At;Rt++){let zt=!1,Tt,Ct,It,Dt="";if(Rt>13)break;let kt=mt[Rt];for(let qt=0;qt<kt.length&&(Tt=kt[qt],Ct=kt[qt+1],It=kt[qt-1],Tt!=="#");qt++){if(Tt==='"')if(zt){if(It!=='"'&&Ct!=='"'){for(;Ct===" "&&qt<kt.length;)Ct=kt[++qt];Ot[Ct]!==void 0&&Ot[Ct]++,zt=!1}}else zt=!0;else Ot[Tt]!==void 0?(isNaN(Date.parse(Dt=Dt.trim()))?(isNaN(Number(Dt))||!isFinite(Number(Dt)))&&Ot[Tt]++:Ot[Tt]++,Dt=""):Dt+=Tt;Tt===","&&Mt++,Tt==="."&&xt++}}return Ot[";"]>Ot[","]?vt=";":(Ot[","],Ot[";"],vt=","),xt>Mt?this.guessedDecimalPoint=".":this.guessedDecimalPoint=",",vt}getTable(){return lt.getTableFromColumns(this.columns,this.headers)}}return pt.defaultOptions={...lt.defaultOptions,lineDelimiter:`
`},pt}),nt(rt,"Data/Modifiers/DataModifier.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{addEvent:dt,fireEvent:pt,merge:ht}=lt;class mt{benchmark(Mt,vt){let Ot=[],At=this,Rt=()=>{At.modifyTable(Mt),At.emit({type:"afterBenchmarkIteration"})},{iterations:zt}=ht({iterations:1},vt);At.on("afterBenchmarkIteration",()=>{if(Ot.length===zt){At.emit({type:"afterBenchmark",results:Ot});return}Rt()});let Tt={startTime:0,endTime:0};return At.on("modify",()=>{Tt.startTime=tt.performance.now()}),At.on("afterModify",()=>{Tt.endTime=tt.performance.now(),Ot.push(Tt.endTime-Tt.startTime)}),Rt(),Ot}emit(Mt){pt(this,Mt.type,Mt)}modify(Mt,vt){let Ot=this;return new Promise((At,Rt)=>{Mt.modified===Mt&&(Mt.modified=Mt.clone(!1,vt));try{At(Ot.modifyTable(Mt,vt))}catch(zt){Ot.emit({type:"error",detail:vt,table:Mt}),Rt(zt)}})}modifyCell(Mt,vt,Ot,At,Rt){return this.modifyTable(Mt)}modifyColumns(Mt,vt,Ot,At){return this.modifyTable(Mt)}modifyRows(Mt,vt,Ot,At){return this.modifyTable(Mt)}on(Mt,vt){return dt(this,Mt,vt)}}return(ut=mt||(mt={})).types={},ut.registerType=function(xt,Mt){return!!xt&&!ut.types[xt]&&!!(ut.types[xt]=Mt)},mt}),nt(rt,"Data/Connectors/DataConnector.js",[rt["Data/Modifiers/DataModifier.js"],rt["Data/DataTable.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){var pt;let{addEvent:ht,fireEvent:mt,merge:xt,pick:Mt}=dt;class vt{constructor(At={}){this.table=new ut(At.dataTable),this.metadata=At.metadata||{columns:{}}}get polling(){return!!this.polling}describeColumn(At,Rt){let zt=this.metadata.columns;zt[At]=xt(zt[At]||{},Rt)}describeColumns(At){let Rt,zt=Object.keys(At);for(;typeof(Rt=zt.pop())=="string";)this.describeColumn(Rt,At[Rt])}emit(At){mt(this,At.type,At)}getColumnOrder(At){let Rt=this.metadata.columns,zt=Object.keys(Rt||{});if(zt.length)return zt.sort((Tt,Ct)=>Mt(Rt[Tt].index,0)-Mt(Rt[Ct].index,0))}getSortedColumns(At){return this.table.getColumns(this.getColumnOrder(At))}load(){return mt(this,"afterLoad",{table:this.table}),Promise.resolve(this)}on(At,Rt){return ht(this,At,Rt)}save(){return mt(this,"saveError",{table:this.table}),Promise.reject(Error("Not implemented"))}setColumnOrder(At){for(let Rt=0,zt=At.length;Rt<zt;++Rt)this.describeColumn(At[Rt],{index:Rt})}setModifierOptions(At){let Rt=At&&lt.types[At.type];return this.table.setModifier(Rt?new Rt(At):void 0).then(()=>this)}startPolling(At=1e3){let Rt=this;tt.clearTimeout(Rt._polling),Rt._polling=tt.setTimeout(()=>Rt.load().catch(zt=>Rt.emit({type:"loadError",error:zt,table:Rt.table})).then(()=>{Rt._polling&&Rt.startPolling(At)}),At)}stopPolling(){tt.clearTimeout(this._polling),delete this._polling}whatIs(At){return this.metadata.columns[At]}}return(pt=vt||(vt={})).types={},pt.registerType=function(Ot,At){return!!Ot&&!pt.types[Ot]&&!!(pt.types[Ot]=At)},vt}),nt(rt,"Data/Connectors/CSVConnector.js",[rt["Data/Converters/CSVConverter.js"],rt["Data/Connectors/DataConnector.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{merge:pt}=dt;class ht extends ut{constructor(xt){let Mt=pt(ht.defaultOptions,xt);super(Mt),this.converter=new lt(Mt),this.options=Mt,Mt.enablePolling&&this.startPolling(1e3*Math.max(Mt.dataRefreshRate||0,1))}load(xt){let Mt=this,vt=Mt.converter,Ot=Mt.table,{csv:At,csvURL:Rt,dataModifier:zt}=Mt.options;return Mt.emit({type:"load",csv:At,detail:xt,table:Ot}),Promise.resolve(Rt?fetch(Rt).then(Tt=>Tt.text()):At||"").then(Tt=>(Tt&&(Ot.deleteColumns(),vt.parse({csv:Tt}),Ot.setColumns(vt.getTable().getColumns())),Mt.setModifierOptions(zt).then(()=>Tt))).then(Tt=>(Mt.emit({type:"afterLoad",csv:Tt,detail:xt,table:Ot}),Mt)).catch(Tt=>{throw Mt.emit({type:"loadError",detail:xt,error:Tt,table:Ot}),Tt})}}return ht.defaultOptions={csv:"",csvURL:"",enablePolling:!1,dataRefreshRate:1,firstRowAsNames:!0},ut.registerType("CSV",ht),ht}),nt(rt,"Data/Converters/GoogleSheetsConverter.js",[rt["Data/Converters/DataConverter.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt,uniqueKey:pt}=ut;class ht extends lt{constructor(xt){let Mt=dt(ht.defaultOptions,xt);super(Mt),this.columns=[],this.header=[],this.options=Mt}parse(xt,Mt){let vt,Ot=dt(this.options,xt),At=(Ot.json&&Ot.json.values||[]).map(Rt=>Rt.slice());if(At.length===0)return!1;this.header=[],this.columns=[],this.emit({type:"parse",columns:this.columns,detail:Mt,headers:this.header}),this.columns=At;for(let Rt=0,zt=At.length;Rt<zt;Rt++){vt=At[Rt],this.header[Rt]=Ot.firstRowAsNames?`${vt.shift()}`:pt();for(let Tt=0,Ct=vt.length;Tt<Ct;++Tt)if(vt[Tt]&&typeof vt[Tt]=="string"){let It=this.asGuessedType(vt[Tt]);It instanceof Date&&(It=It.getTime()),this.columns[Rt][Tt]=It}}this.emit({type:"afterParse",columns:this.columns,detail:Mt,headers:this.header})}getTable(){return lt.getTableFromColumns(this.columns,this.header)}}return ht.defaultOptions={...lt.defaultOptions},ht}),nt(rt,"Data/Connectors/GoogleSheetsConnector.js",[rt["Data/Connectors/DataConnector.js"],rt["Data/Converters/GoogleSheetsConverter.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{merge:pt,pick:ht}=dt;class mt extends lt{constructor(Mt){let vt=pt(mt.defaultOptions,Mt);super(vt),this.converter=new ut(vt),this.options=vt}load(Mt){let vt=this,Ot=vt.converter,At=vt.table,{dataModifier:Rt,dataRefreshRate:zt,enablePolling:Tt,firstRowAsNames:Ct,googleAPIKey:It,googleSpreadsheetKey:Dt}=vt.options,kt=mt.buildFetchURL(It,Dt,vt.options);return vt.emit({type:"load",detail:Mt,table:At,url:kt}),fetch(kt).then(qt=>qt.json()).then(qt=>{if(typeof qt=="object"&&qt&&typeof qt.error=="object"&&qt.error&&typeof qt.error.code=="number"&&typeof qt.error.message=="string"&&typeof qt.error.status=="string")throw Error(qt.error.message);return Ot.parse({firstRowAsNames:Ct,json:qt}),At.deleteColumns(),At.setColumns(Ot.getTable().getColumns()),vt.setModifierOptions(Rt)}).then(()=>(vt.emit({type:"afterLoad",detail:Mt,table:At,url:kt}),Tt&&setTimeout(()=>vt.load(),1e3*Math.max(zt||0,1)),vt)).catch(qt=>{throw vt.emit({type:"loadError",detail:Mt,error:qt,table:At}),qt})}}return mt.defaultOptions={googleAPIKey:"",googleSpreadsheetKey:"",worksheet:1,enablePolling:!1,dataRefreshRate:2,firstRowAsNames:!0},function(xt){let Mt="ABCDEFGHIJKLMNOPQRSTUVWXYZ";function vt(Ot={}){let{endColumn:At,endRow:Rt,googleSpreadsheetRange:zt,startColumn:Tt,startRow:Ct}=Ot;return zt||(Mt[Tt||0]||"A")+(Math.max(Ct||0,0)+1)+":"+(Mt[ht(At,25)]||"Z")+(Rt?Math.max(Rt,0):"Z")}xt.buildFetchURL=function(Ot,At,Rt={}){return`https://sheets.googleapis.com/v4/spreadsheets/${At}/values/`+(Rt.onlyColumnNames?"A1:Z1":vt(Rt))+"?alt=json"+(Rt.onlyColumnNames?"":"&dateTimeRenderOption=FORMATTED_STRING&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE")+`&prettyPrint=false&key=${Ot}`},xt.buildQueryRange=vt}(mt||(mt={})),lt.registerType("GoogleSheets",mt),mt}),nt(rt,"Data/Converters/HTMLTableConverter.js",[rt["Data/Converters/DataConverter.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt){let xt=dt(pt.defaultOptions,mt);super(xt),this.columns=[],this.headers=[],this.options=xt,xt.tableElement&&(this.tableElement=xt.tableElement,this.tableElementID=xt.tableElement.id)}export(mt,xt=this.options){let Mt=xt.firstRowAsNames!==!1,vt=xt.useMultiLevelHeaders,Ot=mt.getSortedColumns(xt.usePresentationOrder),At=Object.keys(Ot),Rt=[],zt=At.length,Tt=[],Ct="";if(Mt){let Dt=[];if(vt){for(let kt of At){let qt=(Ot[kt].shift()||"").toString();Dt.push(qt)}Ct=this.getTableHeaderHTML(At,Dt,xt)}else Ct=this.getTableHeaderHTML(void 0,At,xt)}for(let Dt=0;Dt<zt;Dt++){let kt=Ot[At[Dt]],qt=kt.length;for(let Nt=0;Nt<qt;Nt++){let Yt=kt[Nt];Tt[Nt]||(Tt[Nt]=[]),typeof Yt=="string"||typeof Yt=="number"||Yt===void 0||(Yt=(Yt||"").toString()),Tt[Nt][Dt]=this.getCellHTMLFromValue(Dt?"td":"th",null,Dt?"":'scope="row"',Yt),Dt===zt-1&&Rt.push("<tr>"+Tt[Nt].join("")+"</tr>")}}let It="";return xt.tableCaption&&(It='<caption class="highcharts-table-caption">'+xt.tableCaption+"</caption>"),"<table>"+It+Ct+"<tbody>"+Rt.join("")+"</tbody></table>"}getCellHTMLFromValue(mt,xt,Mt,vt,Ot){let At=vt,Rt="text"+(xt?" "+xt:"");return typeof At=="number"?(At=At.toString(),Ot===","&&(At=At.replace(".",Ot)),Rt="number"):vt||(At="",Rt="empty"),"<"+mt+(Mt?" "+Mt:"")+' class="'+Rt+'">'+At+"</"+mt+">"}getTableHeaderHTML(mt=[],xt=[],Mt=this.options){let{useMultiLevelHeaders:vt,useRowspanHeaders:Ot}=Mt,At="<thead>",Rt=0,zt=xt&&xt.length,Tt,Ct=0,It;if(vt&&mt&&xt&&!function(Dt,kt){let qt=Dt.length;if(kt.length!==qt)return!1;for(;--qt;)if(Dt[qt]!==kt[qt])return!1;return!0}(mt,xt)){for(At+="<tr>";Rt<zt;++Rt)(Tt=mt[Rt])===mt[Rt+1]?++Ct:Ct?(At+=this.getCellHTMLFromValue("th","highcharts-table-topheading",'scope="col" colspan="'+(Ct+1)+'"',Tt),Ct=0):(Tt===xt[Rt]?Ot?(It=2,delete xt[Rt]):(It=1,xt[Rt]=""):It=1,At+=this.getCellHTMLFromValue("th","highcharts-table-topheading",'scope="col"'+(It>1?' valign="top" rowspan="'+It+'"':""),Tt));At+="</tr>"}if(xt){for(At+="<tr>",Rt=0,zt=xt.length;Rt<zt;++Rt)xt[Rt]!==void 0&&(At+=this.getCellHTMLFromValue("th",null,'scope="col"',xt[Rt]));At+="</tr>"}return At+"</thead>"}parse(mt,xt){let Mt=[],vt=[],Ot=dt(this.options,mt),{endRow:At,startColumn:Rt,endColumn:zt,firstRowAsNames:Tt}=Ot,Ct=Ot.tableElement||this.tableElement;if(!(Ct instanceof HTMLElement)){this.emit({type:"parseError",columns:Mt,detail:xt,headers:vt,error:"Not a valid HTML Table"});return}this.tableElement=Ct,this.tableElementID=Ct.id,this.emit({type:"parse",columns:this.columns,detail:xt,headers:this.headers});let It=Ct.getElementsByTagName("tr"),Dt=It.length,kt=0,qt,{startRow:Nt}=Ot;if(Tt&&Dt){let Yt=It[0].children,Kt=Yt.length;for(let Jt=Rt;Jt<Kt&&!(Jt>zt);Jt++)((qt=Yt[Jt]).tagName==="TD"||qt.tagName==="TH")&&vt.push(qt.innerHTML);Nt++}for(;kt<Dt;){if(kt>=Nt&&kt<=At){let Yt=It[kt].children,Kt=Yt.length,Jt=0;for(;Jt<Kt;){let Qt=Jt-Rt,Bt=Mt[Qt];if(((qt=Yt[Jt]).tagName==="TD"||qt.tagName==="TH")&&Jt>=Rt&&Jt<=zt){Mt[Qt]||(Mt[Qt]=[]);let Ft=this.asGuessedType(qt.innerHTML);Ft instanceof Date&&(Ft=Ft.getTime()),Mt[Qt][kt-Nt]=Ft;let $t=1;for(;kt-Nt>=$t&&Bt[kt-Nt-$t]===void 0;)Bt[kt-Nt-$t]=null,$t++}Jt++}}kt++}this.columns=Mt,this.headers=vt,this.emit({type:"afterParse",columns:Mt,detail:xt,headers:vt})}getTable(){return lt.getTableFromColumns(this.columns,this.headers)}}return pt.defaultOptions={...lt.defaultOptions,useRowspanHeaders:!0,useMultiLevelHeaders:!0},pt}),nt(rt,"Data/Connectors/HTMLTableConnector.js",[rt["Data/Connectors/DataConnector.js"],rt["Core/Globals.js"],rt["Data/Converters/HTMLTableConverter.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){let{win:ht}=ut,{merge:mt}=pt;class xt extends lt{constructor(vt){let Ot=mt(xt.defaultOptions,vt);super(Ot),this.converter=new dt(Ot),this.options=Ot}load(vt){let Ot,At=this,Rt=At.converter,zt=At.table,{dataModifier:Tt,table:Ct}=At.options;if(At.emit({type:"load",detail:vt,table:zt,tableElement:At.tableElement}),typeof Ct=="string"?(At.tableID=Ct,Ot=ht.document.getElementById(Ct)):(Ot=Ct,At.tableID=Ot.id),At.tableElement=Ot||void 0,!At.tableElement){let It="HTML table not provided, or element with ID not found";return At.emit({type:"loadError",detail:vt,error:It,table:zt}),Promise.reject(Error(It))}return Rt.parse(mt({tableElement:At.tableElement},At.options),vt),zt.deleteColumns(),zt.setColumns(Rt.getTable().getColumns()),At.setModifierOptions(Tt).then(()=>(At.emit({type:"afterLoad",detail:vt,table:zt,tableElement:At.tableElement}),At))}}return xt.defaultOptions={table:""},lt.registerType("HTMLTable",xt),xt}),nt(rt,"Data/Converters/JSONConverter.js",[rt["Data/Converters/DataConverter.js"],rt["Data/DataTable.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{error:pt,isArray:ht,merge:mt,objectEach:xt}=dt;class Mt extends lt{constructor(Ot){let At=mt(Mt.defaultOptions,Ot);super(At),this.columns=[],this.headers=[],this.options=At,this.table=new ut}parse(Ot,At){let{beforeParse:Rt,orientation:zt,firstRowAsNames:Tt,columnNames:Ct}=Ot=mt(this.options,Ot),It=Ot.data;if(It){if(this.columns=[],this.emit({type:"parse",columns:this.columns,detail:At,headers:this.headers}),Rt&&(It=Rt(It)),It=It.slice(),zt==="columns")for(let Dt=0,kt=It.length;Dt<kt;Dt++){let qt=It[Dt];if(!(qt instanceof Array))return;this.headers instanceof Array?(Tt?this.headers.push(`${qt.shift()}`):Ct&&Ct instanceof Array&&this.headers.push(Ct[Dt]),this.table.setColumn(this.headers[Dt]||Dt.toString(),qt)):pt("JSONConverter: Invalid `columnNames` option.",!1)}else if(zt==="rows"){Tt?this.headers=It.shift():Ct&&(this.headers=Ct);for(let Dt=0,kt=It.length;Dt<kt;Dt++){let qt=It[Dt];if(ht(qt))for(let Nt=0,Yt=qt.length;Nt<Yt;Nt++)this.columns.length<Nt+1&&this.columns.push([]),this.columns[Nt].push(qt[Nt]),this.headers instanceof Array?this.table.setColumn(this.headers[Nt]||Nt.toString(),this.columns[Nt]):pt("JSONConverter: Invalid `columnNames` option.",!1);else{let Nt=this.headers;if(Nt&&!(Nt instanceof Array)){let Yt={};xt(Nt,(Kt,Jt)=>{Yt[Jt]=Kt.reduce((Qt,Bt)=>Qt[Bt],qt)}),qt=Yt}this.table.setRows([qt],Dt)}}}this.emit({type:"afterParse",columns:this.columns,detail:At,headers:this.headers})}}getTable(){return this.table}}return Mt.defaultOptions={...lt.defaultOptions,data:[],orientation:"rows"},Mt}),nt(rt,"Data/Connectors/JSONConnector.js",[rt["Data/Connectors/DataConnector.js"],rt["Core/Utilities.js"],rt["Data/Converters/JSONConverter.js"]],function(lt,ut,dt){let{merge:pt}=ut;class ht extends lt{constructor(xt){let Mt=pt(ht.defaultOptions,xt);super(Mt),this.converter=new dt(Mt),this.options=Mt,Mt.enablePolling&&this.startPolling(1e3*Math.max(Mt.dataRefreshRate||0,1))}load(xt){let Mt=this,vt=Mt.converter,Ot=Mt.table,{data:At,dataUrl:Rt,dataModifier:zt}=Mt.options;return Mt.emit({type:"load",data:At,detail:xt,table:Ot}),Promise.resolve(Rt?fetch(Rt).then(Tt=>Tt.json()):At||[]).then(Tt=>(Tt&&(Ot.deleteColumns(),vt.parse({data:Tt}),Ot.setColumns(vt.getTable().getColumns()),Ot.setRowKeysColumn(Tt.length)),Mt.setModifierOptions(zt).then(()=>Tt))).then(Tt=>(Mt.emit({type:"afterLoad",data:Tt,detail:xt,table:Ot}),Mt)).catch(Tt=>{throw Mt.emit({type:"loadError",detail:xt,error:Tt,table:Ot}),Tt})}}return ht.defaultOptions={data:[],enablePolling:!1,dataRefreshRate:0,firstRowAsNames:!0,orientation:"rows"},lt.registerType("JSON",ht),ht}),nt(rt,"Data/Modifiers/ChainModifier.js",[rt["Data/Modifiers/DataModifier.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt,...xt){super(),this.chain=xt,this.options=dt(pt.defaultOptions,mt);let Mt=this.options.chain||[];for(let vt=0,Ot=Mt.length,At,Rt;vt<Ot;++vt)(At=Mt[vt]).type&&(Rt=lt.types[At.type])&&xt.push(new Rt(At))}add(mt,xt){this.emit({type:"addModifier",detail:xt,modifier:mt}),this.chain.push(mt),this.emit({type:"addModifier",detail:xt,modifier:mt})}clear(mt){this.emit({type:"clearChain",detail:mt}),this.chain.length=0,this.emit({type:"afterClearChain",detail:mt})}modify(mt,xt){let Mt=this.options.reverse?this.chain.slice().reverse():this.chain.slice();mt.modified===mt&&(mt.modified=mt.clone(!1,xt));let vt=Promise.resolve(mt);for(let Ot=0,At=Mt.length;Ot<At;++Ot){let Rt=Mt[Ot];vt=vt.then(zt=>Rt.modify(zt.modified,xt))}return(vt=vt.then(Ot=>(mt.modified.deleteColumns(),mt.modified.setColumns(Ot.modified.getColumns()),mt))).catch(Ot=>{throw this.emit({type:"error",detail:xt,table:mt}),Ot})}modifyCell(mt,xt,Mt,vt,Ot){let At=this.options.reverse?this.chain.reverse():this.chain;if(At.length){let Rt=mt.clone();for(let zt=0,Tt=At.length;zt<Tt;++zt)At[zt].modifyCell(Rt,xt,Mt,vt,Ot),Rt=Rt.modified;mt.modified=Rt}return mt}modifyColumns(mt,xt,Mt,vt){let Ot=this.options.reverse?this.chain.reverse():this.chain.slice();if(Ot.length){let At=mt.clone();for(let Rt=0,zt=Ot.length;Rt<zt;++Rt)Ot[Rt].modifyColumns(At,xt,Mt,vt),At=At.modified;mt.modified=At}return mt}modifyRows(mt,xt,Mt,vt){let Ot=this.options.reverse?this.chain.reverse():this.chain.slice();if(Ot.length){let At=mt.clone();for(let Rt=0,zt=Ot.length;Rt<zt;++Rt)Ot[Rt].modifyRows(At,xt,Mt,vt),At=At.modified;mt.modified=At}return mt}modifyTable(mt,xt){this.emit({type:"modify",detail:xt,table:mt});let Mt=this.options.reverse?this.chain.reverse():this.chain.slice(),vt=mt.modified;for(let Ot=0,At=Mt.length;Ot<At;++Ot)vt=Mt[Ot].modifyTable(vt,xt).modified;return mt.modified=vt,this.emit({type:"afterModify",detail:xt,table:mt}),mt}remove(mt,xt){let Mt=this.chain;this.emit({type:"removeModifier",detail:xt,modifier:mt}),Mt.splice(Mt.indexOf(mt),1),this.emit({type:"afterRemoveModifier",detail:xt,modifier:mt})}}return pt.defaultOptions={type:"Chain"},lt.registerType("Chain",pt),pt}),nt(rt,"Data/Modifiers/InvertModifier.js",[rt["Data/Modifiers/DataModifier.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt){super(),this.options=dt(pt.defaultOptions,mt)}modifyCell(mt,xt,Mt,vt,Ot){let At=mt.modified,Rt=At.getRowIndexBy("columnNames",xt);return Rt===void 0?At.setColumns(this.modifyTable(mt.clone()).getColumns(),void 0,Ot):At.setCell(`${Mt}`,Rt,vt,Ot),mt}modifyColumns(mt,xt,Mt,vt){let Ot=mt.modified,At=Ot.getColumn("columnNames")||[],Rt=mt.getColumnNames(),zt=mt.getRowCount()!==At.length;if(!zt){for(let Tt=0,Ct=Rt.length;Tt<Ct;++Tt)if(Rt[Tt]!==At[Tt]){zt=!0;break}}if(zt)return this.modifyTable(mt,vt);Rt=Object.keys(xt);for(let Tt=0,Ct=Rt.length,It,Dt,kt;Tt<Ct;++Tt){It=xt[Dt=Rt[Tt]],kt=Ot.getRowIndexBy("columnNames",Dt)||Ot.getRowCount();for(let qt=0,Nt=Mt,Yt=It.length;qt<Yt;++qt,++Nt)Ot.setCell(`${Nt}`,kt,It[qt],vt)}return mt}modifyRows(mt,xt,Mt,vt){let Ot=mt.getColumnNames(),At=mt.modified,Rt=At.getColumn("columnNames")||[],zt=mt.getRowCount()!==Rt.length;if(!zt){for(let Tt=0,Ct=Ot.length;Tt<Ct;++Tt)if(Ot[Tt]!==Rt[Tt]){zt=!0;break}}if(zt)return this.modifyTable(mt,vt);for(let Tt=0,Ct=Mt,It=xt.length,Dt;Tt<It;++Tt,++Ct)if((Dt=xt[Tt])instanceof Array)At.setColumn(`${Ct}`,Dt);else for(let kt=0,qt=Ot.length;kt<qt;++kt)At.setCell(`${Ct}`,kt,Dt[Ot[kt]],vt);return mt}modifyTable(mt,xt){this.emit({type:"modify",detail:xt,table:mt});let Mt=mt.modified;if(mt.hasColumns(["columnNames"])){let vt=((mt.deleteColumns(["columnNames"])||{}).columnNames||[]).map(At=>`${At}`),Ot={};for(let At=0,Rt=mt.getRowCount(),zt;At<Rt;++At)(zt=mt.getRow(At))&&(Ot[vt[At]]=zt);Mt.deleteColumns(),Mt.setColumns(Ot)}else{let vt={};for(let Ot=0,At=mt.getRowCount(),Rt;Ot<At;++Ot)(Rt=mt.getRow(Ot))&&(vt[`${Ot}`]=Rt);vt.columnNames=mt.getColumnNames(),Mt.deleteColumns(),Mt.setColumns(vt)}return this.emit({type:"afterModify",detail:xt,table:mt}),mt}}return pt.defaultOptions={type:"Invert"},lt.registerType("Invert",pt),pt}),nt(rt,"Data/Modifiers/RangeModifier.js",[rt["Data/Modifiers/DataModifier.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt){super(),this.options=dt(pt.defaultOptions,mt)}modifyTable(mt,xt){this.emit({type:"modify",detail:xt,table:mt});let{additive:Mt,ranges:vt,strict:Ot}=this.options;if(vt.length){let At=mt.modified,Rt=mt.getColumns(),zt=[];for(let Tt=0,Ct=vt.length,It,Dt;Tt<Ct;++Tt)if(It=vt[Tt],!Ot||typeof It.minValue==typeof It.maxValue){Tt>0&&!Mt&&(At.deleteRows(),At.setRows(zt),Rt=At.getColumns(),zt=[]),Dt=Rt[It.column]||[];for(let kt=0,qt=Dt.length,Nt,Yt;kt<qt;++kt){switch(typeof(Nt=Dt[kt])){default:continue;case"boolean":case"number":case"string":}(!Ot||typeof Nt==typeof It.minValue)&&Nt>=It.minValue&&Nt<=It.maxValue&&(Yt=Mt?mt.getRow(kt):At.getRow(kt))&&zt.push(Yt)}}At.deleteRows(),At.setRows(zt)}return this.emit({type:"afterModify",detail:xt,table:mt}),mt}}return pt.defaultOptions={type:"Range",ranges:[]},lt.registerType("Range",pt),pt}),nt(rt,"Data/Modifiers/SortModifier.js",[rt["Data/Modifiers/DataModifier.js"],rt["Data/DataTable.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{merge:pt}=dt;class ht extends lt{static ascending(xt,Mt){return(xt||0)<(Mt||0)?-1:(xt||0)>(Mt||0)?1:0}static descending(xt,Mt){return(Mt||0)<(xt||0)?-1:(Mt||0)>(xt||0)?1:0}constructor(xt){super(),this.options=pt(ht.defaultOptions,xt)}getRowReferences(xt){let Mt=xt.getRows(),vt=[];for(let Ot=0,At=Mt.length;Ot<At;++Ot)vt.push({index:Ot,row:Mt[Ot]});return vt}modifyCell(xt,Mt,vt,Ot,At){let{orderByColumn:Rt,orderInColumn:zt}=this.options;return Mt===Rt&&(zt?(xt.modified.setCell(Mt,vt,Ot),xt.modified.setColumn(zt,this.modifyTable(new ut({columns:xt.getColumns([Rt,zt])})).modified.getColumn(zt))):this.modifyTable(xt,At)),xt}modifyColumns(xt,Mt,vt,Ot){let{orderByColumn:At,orderInColumn:Rt}=this.options,zt=Object.keys(Mt);return zt.indexOf(At)>-1&&(Rt&&Mt[zt[0]].length?(xt.modified.setColumns(Mt,vt),xt.modified.setColumn(Rt,this.modifyTable(new ut({columns:xt.getColumns([At,Rt])})).modified.getColumn(Rt))):this.modifyTable(xt,Ot)),xt}modifyRows(xt,Mt,vt,Ot){let{orderByColumn:At,orderInColumn:Rt}=this.options;return Rt&&Mt.length?(xt.modified.setRows(Mt,vt),xt.modified.setColumn(Rt,this.modifyTable(new ut({columns:xt.getColumns([At,Rt])})).modified.getColumn(Rt))):this.modifyTable(xt,Ot),xt}modifyTable(xt,Mt){this.emit({type:"modify",detail:Mt,table:xt});let vt=xt.getColumnNames(),Ot=xt.getRowCount(),At=this.getRowReferences(xt),{direction:Rt,orderByColumn:zt,orderInColumn:Tt}=this.options,Ct=Rt==="asc"?ht.ascending:ht.descending,It=vt.indexOf(zt),Dt=xt.modified;if(It!==-1&&At.sort((kt,qt)=>Ct(kt.row[It],qt.row[It])),Tt){let kt=[];for(let qt=0;qt<Ot;++qt)kt[At[qt].index]=qt;Dt.setColumns({[Tt]:kt})}else{let kt=[];for(let qt=0;qt<Ot;++qt)kt.push(At[qt].row);Dt.setRows(kt,0)}return this.emit({type:"afterModify",detail:Mt,table:xt}),xt}}return ht.defaultOptions={type:"Sort",direction:"desc",orderByColumn:"y"},lt.registerType("Sort",ht),ht}),nt(rt,"Dashboards/Accessibility/DashboardsAccessibility.js",[],function(){return class{constructor(lt){this.board=lt,this.addTabIndexToCells()}addTabIndexToCells(){let lt,ut=this.board.mountedComponents;for(let dt=0,pt=ut.length;dt<pt;++dt)(lt=ut[dt].cell)&&lt.container&&lt.container.setAttribute("tabindex",-1)}}}),nt(rt,"Data/DataCursor.js",[],function(){class lt{constructor(dt={}){this.emittingRegister=[],this.listenerMap={},this.stateMap=dt}addListener(dt,pt,ht){let mt=this.listenerMap[dt]=this.listenerMap[dt]||{};return(mt[pt]=mt[pt]||[]).push(ht),this}buildEmittingTag(dt){return(dt.cursor.type==="position"?[dt.table.id,dt.cursor.column,dt.cursor.row,dt.cursor.state,dt.cursor.type]:[dt.table.id,dt.cursor.columns,dt.cursor.firstRow,dt.cursor.lastRow,dt.cursor.state,dt.cursor.type]).join("\0")}emitCursor(dt,pt,ht,mt){let xt=dt.id,Mt=pt.state,vt=this.listenerMap[xt]&&this.listenerMap[xt][Mt];if(vt){let Ot=this.stateMap[xt]=this.stateMap[xt]??{},At=Ot[pt.state]||[];mt&&(At.length||(Ot[pt.state]=At),lt.getIndex(pt,At)===-1&&At.push(pt));let Rt={cursor:pt,cursors:At,table:dt};ht&&(Rt.event=ht);let zt=this.emittingRegister,Tt=this.buildEmittingTag(Rt);if(zt.indexOf(Tt)>=0)return this;try{this.emittingRegister.push(Tt);for(let Ct=0,It=vt.length;Ct<It;++Ct)vt[Ct].call(this,Rt)}finally{let Ct=this.emittingRegister.indexOf(Tt);Ct>=0&&this.emittingRegister.splice(Ct,1)}}return this}remitCursor(dt,pt){let ht=this.stateMap[dt]&&this.stateMap[dt][pt.state];if(ht){let mt=lt.getIndex(pt,ht);mt>=0&&ht.splice(mt,1)}return this}removeListener(dt,pt,ht){let mt=this.listenerMap[dt]&&this.listenerMap[dt][pt];if(mt){let xt=mt.indexOf(ht);xt>=0&&mt.splice(xt,1)}return this}}return lt.version="1.0.0",function(ut){function dt(pt,ht){if(pt.type==="range")return pt;let mt={type:"range",firstRow:pt.row??(ht&&ht.firstRow)??0,lastRow:pt.row??(ht&&ht.lastRow)??Number.MAX_VALUE,state:pt.state};return pt.column!==void 0&&(mt.columns=[pt.column]),mt}ut.getIndex=function(pt,ht){if(pt.type==="position"){for(let mt,xt=0,Mt=ht.length;xt<Mt;++xt)if((mt=ht[xt]).type==="position"&&mt.state===pt.state&&mt.column===pt.column&&mt.row===pt.row)return xt}else{let mt=JSON.stringify(pt.columns);for(let xt,Mt=0,vt=ht.length;Mt<vt;++Mt)if((xt=ht[Mt]).type==="range"&&xt.state===pt.state&&xt.firstRow===pt.firstRow&&xt.lastRow===pt.lastRow&&JSON.stringify(xt.columns)===mt)return Mt}return-1},ut.isEqual=function(pt,ht){return pt.type==="position"&&ht.type==="position"?pt.column===ht.column&&pt.row===ht.row&&pt.state===ht.state:pt.type==="range"&&ht.type==="range"&&pt.firstRow===ht.firstRow&&pt.lastRow===ht.lastRow&&JSON.stringify(pt.columns)===JSON.stringify(ht.columns)},ut.isInRange=function(pt,ht){ht.type==="position"&&(ht=dt(ht)),pt.type==="position"&&(pt=dt(pt,ht));let mt=pt.columns,xt=ht.columns;return pt.firstRow>=ht.firstRow&&pt.lastRow<=ht.lastRow&&(!mt||!xt||mt.every(Mt=>xt.indexOf(Mt)>=0))},ut.toPositions=function(pt){if(pt.type==="position")return[pt];let ht=pt.columns||[],mt=[],xt=pt.state;for(let Mt=pt.firstRow,vt=pt.lastRow;Mt<vt;++Mt){if(!ht.length){mt.push({type:"position",row:Mt,state:xt});continue}for(let Ot=0,At=ht.length;Ot<At;++Ot)mt.push({type:"position",column:ht[Ot],row:Mt,state:xt})}return mt},ut.toRange=dt}(lt||(lt={})),lt}),nt(rt,"Dashboards/Serializable.js",[],function(){var lt;return function(ut){let dt={},pt={};ut.fromJSON=function(ht){let mt=ht.$class;if(typeof mt!="string")throw Error("JSON has no $class property.");let xt=dt[mt];if(xt)return xt.fromJSON(ht);let Mt=pt[mt];if(Mt)return Mt.fromJSON(ht);throw Error(`'${mt}' unknown.`)},ut.registerClassPrototype=function(ht,mt){if(dt[ht])throw Error("A serializer for '"+ht+"' is already registered.");dt[ht]=mt},ut.registerHelper=function(ht){if(pt[ht.$class])throw Error("A serializer for '"+ht.$class+"' is already registered.");pt[ht.$class]=ht},ut.toJSON=function(ht){let mt;if(typeof ht.fromJSON=="function"&&typeof ht.toJSON=="function")return ht.toJSON();let xt=Object.keys(pt),Mt=xt.length;for(let vt=0;vt<Mt;++vt)if((mt=pt[xt[vt]]).jsonSupportFor(ht))return mt.toJSON(ht);throw Error("Object is not supported.")}}(lt||(lt={})),lt}),nt(rt,"Dashboards/SerializeHelper/DataCursorHelper.js",[rt["Data/DataCursor.js"],rt["Dashboards/Serializable.js"]],function(lt,ut){let dt={$class:"Data.DataCursor",fromJSON:function(pt){return new lt(pt.stateMap)},jsonSupportFor:function(pt){return pt instanceof lt},toJSON:function(pt){let ht,mt,xt,Mt,vt,Ot=pt.stateMap,At={},Rt=Object.keys(pt.stateMap);for(let zt=0,Tt=Rt.length;zt<Tt;++zt){vt=Object.keys(Ot[xt=Rt[zt]]),At[xt]={};for(let Ct=0,It=vt.length;Ct<It;++Ct){Mt=vt[Ct],ht=Ot[xt][Mt],At[xt][Mt]=mt=[];for(let Dt=0,kt=ht.length;Dt<kt;++Dt)mt.push({...ht[Dt]})}}return{$class:"Data.DataCursor",stateMap:At}}};return ut.registerHelper(dt),dt}),nt(rt,"Data/DataPoolDefaults.js",[],function(){return{connectors:[]}}),nt(rt,"Data/DataPool.js",[rt["Data/Connectors/DataConnector.js"],rt["Data/DataPoolDefaults.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){class pt{constructor(mt=ut){mt.connectors=mt.connectors||[],this.connectors={},this.options=mt,this.waiting={}}emit(mt){dt.fireEvent(this,mt.type,mt)}getConnector(mt){let xt=this.connectors[mt];if(xt)return Promise.resolve(xt);let Mt=this.waiting[mt];if(!Mt){Mt=this.waiting[mt]=[];let vt=this.getConnectorOptions(mt);if(!vt)throw Error(`Connector '${mt}' not found.`);this.loadConnector(vt).then(Ot=>{delete this.waiting[mt];for(let At=0,Rt=Mt.length;At<Rt;++At)Mt[At][0](Ot)}).catch(Ot=>{delete this.waiting[mt];for(let At=0,Rt=Mt.length;At<Rt;++At)Mt[At][1](Ot)})}return new Promise((vt,Ot)=>{Mt.push([vt,Ot])})}getConnectorIds(){let mt=this.options.connectors,xt=[];for(let Mt=0,vt=mt.length;Mt<vt;++Mt)xt.push(mt[Mt].id);return xt}getConnectorOptions(mt){let xt=this.options.connectors;for(let Mt=0,vt=xt.length;Mt<vt;++Mt)if(xt[Mt].id===mt)return xt[Mt]}getConnectorTable(mt){return this.getConnector(mt).then(xt=>xt.table)}isNewConnector(mt){return!this.connectors[mt]}loadConnector(mt){return new Promise((xt,Mt)=>{this.emit({type:"load",options:mt});let vt=lt.types[mt.type];if(!vt)throw Error(`Connector type not found. (${mt.type})`);new vt(mt.options).load().then(Ot=>{this.connectors[mt.id]=Ot,this.emit({type:"afterLoad",options:mt}),xt(Ot)}).catch(Mt)})}on(mt,xt){return dt.addEvent(this,mt,xt)}setConnectorOptions(mt){let xt=this.options.connectors,Mt=this.connectors;this.emit({type:"setConnectorOptions",options:mt});for(let vt=0,Ot=xt.length;vt<Ot;++vt)if(xt[vt].id===mt.id){xt.splice(vt,1);break}Mt[mt.id]&&(Mt[mt.id].stopPolling(),delete Mt[mt.id]),xt.push(mt),this.emit({type:"afterSetConnectorOptions",options:mt})}}return pt.version="1.0.0",pt}),nt(rt,"Dashboards/Layout/Row.js",[rt["Dashboards/Globals.js"],rt["Dashboards/Layout/Cell.js"],rt["Dashboards/Layout/GUIElement.js"],rt["Core/Utilities.js"],rt["Dashboards/EditMode/EditGlobals.js"]],function(lt,ut,dt,pt,ht){let{pick:mt,defined:xt,merge:Mt,objectEach:vt,fireEvent:Ot}=pt;class At extends dt{static fromJSON(zt,Tt){if(Tt){let Ct=zt.options,It=Ct.containerId||"";return It&&Tt.copyId&&(It=It+"_"+Tt.copyId),new At(Tt,{id:It,parentContainerId:Tt.container&&Tt.container.id||Ct.parentContainerId,cellsJSON:Ct.cells,style:Ct.style})}}static setContainerHeight(zt,Tt){Tt&&(zt.style.height=Tt+"px")}constructor(zt,Tt,Ct){super(),this.type=lt.guiElementType.row,this.layout=zt,this.cells=[],this.options=Tt,this.isVisible=!0;let It=document.getElementById(Tt.parentContainerId||"")||zt.container,Dt=zt.options||{},kt=Dt.rowClassName||"";this.container=this.getElementContainer({render:zt.board.guiEnabled,parentContainer:It,attribs:{id:Tt.id,className:lt.classNames.row+" "+kt},element:Ct,elementId:Tt.id,style:Mt(Dt.style,Tt.style)}),this.options.cells&&this.setCells(),Tt.cellsJSON&&!this.cells.length&&this.setCellsFromJSON(Tt.cellsJSON)}setCells(){let zt,Tt,Ct,It=(this.layout.options||{}).cellClassName||"",Dt=mt(this.options.cells,this.container&&this.container.getElementsByClassName(It))||[];for(Tt=0,Ct=Dt.length;Tt<Ct;++Tt)zt=Dt[Tt],this.addCell(this.layout.board.guiEnabled?zt:{id:""},zt instanceof HTMLElement?zt:void 0)}setCellsFromJSON(zt){let Tt,Ct,It=[];for(let Dt=0,kt=zt.length;Dt<kt;++Dt)Ct=zt[Dt],(Tt=ut.fromJSON({$class:Ct.$class,options:{containerId:Ct.options.containerId,parentContainerId:Ct.options.parentContainerId,width:Ct.options.width,height:Ct.options.height,style:Ct.options.style,layoutJSON:Ct.options.layoutJSON,mountedComponentJSON:void 0}},this))&&(this.cells.push(Tt),Ct.options.mountedComponentJSON&&It.push({cell:Tt,mountedComponentJSON:Ct.options.mountedComponentJSON}));for(let Dt=0,kt=It.length;Dt<kt;++Dt)It[Dt].cell.mountComponentFromJSON(It[Dt].mountedComponentJSON)}addCell(zt,Tt,Ct){let It=new ut(this,zt,Tt);return xt(Ct)?this.mountCell(It,Ct):this.cells.push(It),this.layout.board.editMode&&this.layout.board.editMode.setCellEvents(It),It}destroy(){var Ct;let{layout:zt}=this,Tt=[...this.cells];for(let It=0,Dt=Tt==null?void 0:Tt.length;It<Dt;++It)Tt[It]&&Tt[It].destroy();this.layout&&(this.layout.unmountRow(this),super.destroy(),((Ct=zt.rows)==null?void 0:Ct.length)===0&&zt.destroy())}toJSON(){let zt=(this.layout.container||{}).id||"",Tt=[];for(let Ct=0,It=this.cells.length;Ct<It;++Ct)Tt.push(this.cells[Ct].toJSON());return{$class:"Dashboards.Layout.Row",options:{containerId:this.container.id,parentContainerId:zt,cells:Tt,style:this.options.style}}}getOptions(){let zt=[];for(let Tt=0,Ct=this.cells.length;Tt<Ct;++Tt)zt.push(this.cells[Tt].getOptions());return{id:this.options.id,style:this.options.style,cells:zt}}setSize(zt){At.setContainerHeight(this.container,zt)}getCellIndex(zt){var Tt;for(let Ct=0,It=(Tt=this.cells)==null?void 0:Tt.length;Ct<It;++Ct)if(this.cells[Ct].id===zt.id)return Ct}mountCell(zt,Tt=0){let Ct=this,It=Ct.cells[Tt],Dt=Ct.cells[Tt-1];zt.container&&(It&&It.container?It.container.parentNode.insertBefore(zt.container,It.container):Dt&&Dt.container?Dt.container.parentNode.insertBefore(zt.container,Dt.container.nextSibling):Dt||It||!Ct.container||Ct.container.appendChild(zt.container),Ct.cells.splice(Tt,0,zt),zt.row=Ct,setTimeout(()=>{Ot(Ct,"cellChange",{row:Ct,cell:zt})},0))}unmountCell(zt){let Tt=this.getCellIndex(zt);xt(Tt)&&this.cells.splice(Tt,1),setTimeout(()=>{Ot(this,"cellChange",{row:this,cell:zt})},0)}getVisibleCells(){let zt=[];for(let Tt=0,Ct=this.cells.length;Tt<Ct;++Tt)this.cells[Tt].isVisible&&zt.push(this.cells[Tt]);return zt}changeVisibility(zt=!0,Tt){super.changeVisibility(zt,Tt),this.layout.getVisibleRows().length?this.isVisible&&!this.layout.isVisible&&this.layout.show():this.layout.hide()}show(){this.changeVisibility(!0,"flex")}setHighlight(){this.container.classList.toggle(ht.classNames.rowContextHighlight)}getRowLevels(){let zt,Tt,Ct={},It=[];for(let Dt=0,kt=this.cells.length;Dt<kt;++Dt)(zt=this.cells[Dt]).isVisible&&(Ct[(Tt=dt.getOffsets(zt)).top]||(Ct[Tt.top]={top:Tt.top,bottom:Tt.bottom,cells:[]}),Ct[Tt.top].bottom<Tt.bottom&&(Ct[Tt.top].bottom=Tt.bottom),Ct[Tt.top].cells.push(zt));return vt(Ct,Dt=>{It.push(Dt)}),It}getRowLevelInfo(zt){let Tt,Ct=this.getRowLevels();for(let It=0,Dt=Ct.length;It<Dt;++It)Ct[It].top<=zt&&Ct[It].bottom>zt&&(Tt={index:It,rowLevels:Ct,rowLevel:Ct[It]});return Tt}}return At}),nt(rt,"Dashboards/Layout/Layout.js",[rt["Dashboards/Utilities.js"],rt["Core/Utilities.js"],rt["Dashboards/Layout/Row.js"],rt["Dashboards/Layout/GUIElement.js"],rt["Dashboards/Globals.js"]],function(lt,ut,dt,pt,ht){let{uniqueKey:mt}=lt,{pick:xt,defined:Mt}=ut;class vt extends pt{static fromJSON(At,Rt,zt){let Tt=At.options,Ct=document.getElementById(At.options.containerId),It=new vt(Rt,{id:Tt.containerId,copyId:Ct?mt():"",parentContainerId:Tt.parentContainerId||Rt.container.id,rowsJSON:Tt.rows,style:Tt.style},zt);return It&&!zt&&Rt.layouts.push(It),It}static importLocal(At,Rt){let zt,Tt=localStorage.getItem(ht.classNamePrefix+At);return Tt&&(zt=vt.fromJSON(JSON.parse(Tt),Rt)),zt}constructor(At,Rt,zt){super(),this.type=ht.guiElementType.layout,this.board=At,this.rows=[],this.options=Rt,this.isVisible=!0;let Tt=zt?zt.container:document.getElementById(Rt.parentContainerId||"")||At.layoutsWrapper;zt?(this.parentCell=zt,this.level=zt.row.layout.level+1):this.level=0,Rt.copyId&&(this.copyId=Rt.copyId);let Ct=(this.options||{}).rowClassName||"";this.container=this.getElementContainer({render:At.guiEnabled,parentContainer:Tt,attribs:{id:(Rt.id||"")+(this.copyId?"_"+this.copyId:""),className:ht.classNames.layout+" "+Ct},elementId:Rt.id,style:this.options.style}),this.options.rows&&this.setRows(),Rt.rowsJSON&&!this.rows.length&&this.setRowsFromJSON(Rt.rowsJSON)}setRows(){let At,Rt,zt,Tt=xt(this.options.rows,this.container&&this.container.getElementsByClassName(this.options.rowClassName||""))||[];for(Rt=0,zt=Tt.length;Rt<zt;++Rt)At=Tt[Rt],this.addRow(this.board.guiEnabled?At:{},At instanceof HTMLElement?At:void 0)}setRowsFromJSON(At){let Rt;for(let zt=0,Tt=At.length;zt<Tt;++zt)(Rt=dt.fromJSON(At[zt],this))&&this.rows.push(Rt)}addRow(At,Rt,zt){let Tt=new dt(this,At,Rt);return Mt(zt)?this.mountRow(Tt,zt):this.rows.push(Tt),this.board.editMode&&this.board.editMode.setRowEvents(Tt),Tt}destroy(){for(let At=this.board.layouts.length-1;At>=0;At--)this.board.layouts[At]===this&&this.board.layouts.splice(At,1);this.parentCell&&delete this.parentCell.nestedLayout;for(let At=this.rows.length-1;At>=0;At--)this.rows[At].destroy();this.parentCell&&this.parentCell.destroy(),super.destroy()}exportLocal(){localStorage.setItem(ht.classNamePrefix+this.options.id,JSON.stringify(this.toJSON()))}getRowIndex(At){for(let Rt=0,zt=this.rows.length;Rt<zt;++Rt)if(this.rows[Rt]===At)return Rt}mountRow(At,Rt){let zt=this.rows[Rt],Tt=this.rows[Rt-1];At.container&&(zt&&zt.container?zt.container.parentNode.insertBefore(At.container,zt.container):Tt&&Tt.container&&Tt.container.parentNode.insertBefore(At.container,Tt.container.nextSibling),this.rows.splice(Rt,0,At),At.layout=this)}unmountRow(At){let Rt=this.getRowIndex(At);Mt(Rt)&&this.rows.splice(Rt,1)}getVisibleRows(){let At=[];for(let Rt=0,zt=this.rows.length;Rt<zt;++Rt)this.rows[Rt].isVisible&&At.push(this.rows[Rt]);return At}changeVisibility(At=!0){super.changeVisibility(At),this.parentCell&&(this.isVisible&&!this.parentCell.isVisible?this.parentCell.show():!this.isVisible&&this.parentCell.isVisible&&this.parentCell.hide())}toJSON(){let At=(this.board.container||{}).id||"",Rt=[];for(let zt=0,Tt=this.rows.length;zt<Tt;++zt)Rt.push(this.rows[zt].toJSON());return{$class:"Dashboards.Layout",options:{containerId:this.container.id,parentContainerId:At,rows:Rt,style:this.options.style}}}getOptions(){let At=[];for(let Rt=0,zt=this.rows.length;Rt<zt;++Rt)At.push(this.rows[Rt].getOptions());return{id:this.options.id,layoutClassName:this.options.layoutClassName,rowClassName:this.options.rowClassName,cellClassName:this.options.cellClassName,style:this.options.style,rows:At}}}return vt}),nt(rt,"Dashboards/Board.js",[rt["Dashboards/Actions/Bindings.js"],rt["Dashboards/Components/ComponentRegistry.js"],rt["Dashboards/Accessibility/DashboardsAccessibility.js"],rt["Data/DataCursor.js"],rt["Dashboards/SerializeHelper/DataCursorHelper.js"],rt["Data/DataPool.js"],rt["Dashboards/Globals.js"],rt["Dashboards/Layout/Layout.js"],rt["Dashboards/Serializable.js"],rt["Dashboards/Components/HTMLComponent/HTMLComponent.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At){var Rt;let{merge:zt,addEvent:Tt,error:Ct,objectEach:It,uniqueKey:Dt}=At;class kt{static board(Nt,Yt,Kt){return new kt(Nt,Yt).init(Kt)}constructor(Nt,Yt){var Kt,Jt,Qt,Bt;this.componentTypes=ut.types,this.options=zt(kt.defaultOptions,Yt),this.dataPool=new mt(Yt.dataPool),this.id=Dt(),this.guiEnabled=!!Yt.gui&&((Jt=(Kt=this.options)==null?void 0:Kt.gui)==null?void 0:Jt.enabled),this.editModeEnabled=!!Yt.editMode&&((Bt=(Qt=this.options)==null?void 0:Qt.editMode)==null?void 0:Bt.enabled),this.layouts=[],this.mountedComponents=[],this.initContainer(Nt),this.initEditMode(),this.dataCursor=new pt,this.index=xt.boards.length,xt.boards.push(this),this.a11y=new dt(this)}init(Nt){let Yt=this.options,Kt=Yt.components?this.setComponents(Yt.components):[];return this.initEvents(),Nt?Promise.all(Kt).then(()=>this):this}initEvents(){let Nt=this,Yt=()=>{Nt.reflow()};if(typeof ResizeObserver=="function")this.resizeObserver=new ResizeObserver(Yt),this.resizeObserver.observe(Nt.container);else{let Kt=Tt(tt,"resize",Yt);Tt(this,"destroy",Kt)}}initContainer(Nt){typeof Nt=="string"&&(Nt=tt.document.getElementById(Nt)),Nt||Ct(13,!0),this.container=Nt}initEditMode(){if(Dashboards.EditMode)this.editMode=new Dashboards.EditMode(this,this.options.editMode);else if(this.editModeEnabled)throw Error("Missing layout.js module")}setComponents(Nt){let Yt=[];for(let Kt=0,Jt=Nt.length;Kt<Jt;++Kt)Yt.push(lt.addComponent(Nt[Kt],this));return Yt}destroy(){var Yt,Kt,Jt;let Nt=this;for(let Qt=0,Bt=(Yt=Nt.layouts)==null?void 0:Yt.length;Qt<Bt;++Qt)Nt.layouts[Qt].destroy();(Kt=this.resizeObserver)==null||Kt.unobserve(Nt.container),(Jt=Nt.container)==null||Jt.remove(),It(Nt,function(Qt,Bt){delete Nt[Bt]}),xt.boards[this.index]=void 0}exportLocal(){localStorage.setItem(xt.classNamePrefix+"1",JSON.stringify(this.toJSON()))}importLayoutLocal(Nt){return Mt.importLocal(Nt,this)}reflow(){if(this.editMode){let Nt=this.editMode.tools;this.editMode.hideToolbars(["cell","row"]),this.editMode.hideContextPointer(),Nt.contextMenu&&Nt.contextMenu.updatePosition(Nt.contextButtonElement)}}fromJSON(Nt){let Yt=Nt.options,Kt=new kt(Yt.containerId,{componentOptions:Yt.componentOptions,dataPool:Yt.dataPool,layoutsJSON:Yt.layouts});return Kt.dataCursor=ht.fromJSON(Nt.dataCursor),Kt}toJSON(){let Nt=[];for(let Yt=0,Kt=this.layouts.length;Yt<Kt;++Yt)Nt.push(this.layouts[Yt].toJSON());return{$class:"Board",dataCursor:ht.toJSON(this.dataCursor),options:{containerId:this.container.id,dataPool:this.options.dataPool,guiEnabled:this.guiEnabled,layouts:Nt,componentOptions:this.options.componentOptions}}}getOptions(){var Yt,Kt;let Nt={...this.options,components:[]};for(let Jt=0,Qt=this.mountedComponents.length;Jt<Qt;++Jt)this.mountedComponents[Jt].cell&&this.mountedComponents[Jt].cell.mountedComponent&&((Yt=Nt.components)==null||Yt.push(this.mountedComponents[Jt].component.getOptions()));if(this.guiEnabled){Nt.gui={layouts:[]};for(let Jt=0,Qt=this.layouts.length;Jt<Qt;++Jt)(Kt=Nt.gui.layouts)==null||Kt.push(this.layouts[Jt].getOptions())}else delete Nt.gui;return Nt}getComponentById(Nt){var Yt;return(Yt=this.mountedComponents.find(Kt=>Kt.component.id===Nt))==null?void 0:Yt.component}getComponentByCellId(Nt){var Yt;return(Yt=this.mountedComponents.find(Kt=>Kt.cell.id===Nt))==null?void 0:Yt.component}}return(Rt=kt||(kt={})).defaultOptions={gui:{enabled:!0,layoutOptions:{rowClassName:void 0,cellClassName:void 0},layouts:[]},components:[]},Rt.importLocal=function(){let qt=localStorage.getItem(xt.classNamePrefix+"1");if(qt)try{return vt.fromJSON(JSON.parse(qt))}catch(Nt){throw Error(""+Nt)}},vt.registerClassPrototype("Board",kt.prototype),ut.registerComponent("HTML",Ot),kt}),nt(rt,"Dashboards/Components/DataGridComponent/DataGridSyncs/DataGridExtremesSync.js",[],function(){return{defaultOptions:{},syncPair:{emitter:void 0,handler:function(){if(this.type!=="DataGrid")return;let lt=this,ut=this.sync.syncConfig.extremes,dt=ut.group?":"+ut.group:"",{board:pt}=lt,ht=mt=>{let xt=mt.cursor;if(xt.type==="position"&&lt.dataGrid&&typeof(xt==null?void 0:xt.row)=="number"){let{row:Mt}=xt;lt.dataGrid.scrollToRow(Mt)}};if(pt)return(()=>{var Mt,vt,Ot;let{dataCursor:mt}=pt;if(!mt)return;let xt=(Ot=(vt=(Mt=lt.connectorHandlers)==null?void 0:Mt[0])==null?void 0:vt.connector)==null?void 0:Ot.table;xt&&mt.addListener(xt.id,"xAxis.extremes.min"+dt,ht)})(),()=>{var Mt,vt,Ot;let mt=(Ot=(vt=(Mt=lt.connectorHandlers)==null?void 0:Mt[0])==null?void 0:vt.connector)==null?void 0:Ot.table,{dataCursor:xt}=pt;mt&&xt.removeListener(mt.id,"xAxis.extremes.min"+dt,ht)}}}}}),nt(rt,"Dashboards/Components/DataGridComponent/DataGridSyncs/DataGridHighlightSync.js",[rt["Core/Utilities.js"]],function(lt){let{addEvent:ut,removeEvent:dt}=lt;return{defaultOptions:{autoScroll:!1},syncPair:{emitter:function(){if(this.type!=="DataGrid")return;let{dataGrid:pt,board:ht}=this,mt=this.sync.syncConfig.highlight,xt=mt.group?":"+mt.group:"";if(!ht||!pt||!(mt!=null&&mt.enabled))return;let{dataCursor:Mt}=ht,vt=At=>{var zt;let Rt=(zt=this.getFirstConnector())==null?void 0:zt.table;if(Rt){let Tt=At.row;Mt.emitCursor(Rt,{type:"position",row:parseInt(Tt.dataset.rowIndex,10),column:At.columnName,state:"dataGrid.hoverRow"+xt})}},Ot=()=>{var Rt;let At=(Rt=this.getFirstConnector())==null?void 0:Rt.table;At&&Mt.emitCursor(At,{type:"position",state:"dataGrid.hoverOut"+xt})};return ut(pt.container,"dataGridHover",vt),ut(pt.container,"mouseout",Ot),function(){dt(pt.container,"dataGridHover",vt),dt(pt.container,"mouseout",Ot)}},handler:function(){let pt;if(this.type!=="DataGrid")return;let ht=this,{board:mt}=ht,xt=ht.sync.syncConfig.highlight,Mt=xt.group?":"+xt.group:"";if(!(xt!=null&&xt.enabled))return;let vt=At=>{let Rt=At.cursor;if(Rt.type!=="position")return;let{row:zt}=Rt,{dataGrid:Tt}=ht;zt!==void 0&&Tt&&(xt.autoScroll&&Tt.scrollToRow(zt-Math.round(Tt.rowElements.length/2)+1),pt&&clearTimeout(pt),pt=setTimeout(()=>{let Ct=Tt.container.querySelector(`.highcharts-datagrid-row[data-row-index="${zt}"]`);Ct&&(Tt.toggleRowHighlight(Ct),Tt.hoveredRow=Ct)},xt.autoScroll?10:0))},Ot=()=>{let{dataGrid:At}=ht;At&&At.toggleRowHighlight(void 0)};if(mt)return(()=>{var zt,Tt,Ct;let{dataCursor:At}=mt;if(!At)return;let Rt=(Ct=(Tt=(zt=ht.connectorHandlers)==null?void 0:zt[0])==null?void 0:Tt.connector)==null?void 0:Ct.table;Rt&&(At.addListener(Rt.id,"point.mouseOver"+Mt,vt),At.addListener(Rt.id,"point.mouseOut"+Mt,Ot))})(),()=>{var zt,Tt,Ct;let At=mt.dataCursor,Rt=(Ct=(Tt=(zt=ht.connectorHandlers)==null?void 0:zt[0])==null?void 0:Tt.connector)==null?void 0:Ct.table;Rt&&(At.removeListener(Rt.id,"point.mouseOver"+Mt,vt),At.removeListener(Rt.id,"point.mouseOut"+Mt,Ot))}}}}}),nt(rt,"Dashboards/Components/DataGridComponent/DataGridSyncs/DataGridVisibilitySync.js",[],function(){return{defaultOptions:{},syncPair:{emitter:void 0,handler:function(){if(this.type!=="DataGrid")return;let lt=this,ut=this.sync.syncConfig.visibility,dt=ut.group?":"+ut.group:"",{board:pt}=lt,ht=mt=>{let xt=mt.cursor,Mt=lt.dataGrid;if(!(Mt&&xt.type==="position"&&xt.column))return;let vt=xt.column;Mt.update({columns:{[vt]:{show:xt.state!=="series.hide"+dt}}})};if(pt)return(()=>{var Mt,vt,Ot;let{dataCursor:mt}=pt;if(!mt)return;let xt=(Ot=(vt=(Mt=lt.connectorHandlers)==null?void 0:Mt[0])==null?void 0:vt.connector)==null?void 0:Ot.table;xt&&(mt.addListener(xt.id,"series.show"+dt,ht),mt.addListener(xt.id,"series.hide"+dt,ht))})(),()=>{var Mt,vt,Ot;let mt=(Ot=(vt=(Mt=lt.connectorHandlers)==null?void 0:Mt[0])==null?void 0:vt.connector)==null?void 0:Ot.table,{dataCursor:xt}=pt;mt&&(xt.removeListener(mt.id,"series.show"+dt,ht),xt.removeListener(mt.id,"series.hide"+dt,ht))}}}}}),nt(rt,"Dashboards/Components/DataGridComponent/DataGridSyncs/DataGridSyncs.js",[rt["Dashboards/Components/DataGridComponent/DataGridSyncs/DataGridExtremesSync.js"],rt["Dashboards/Components/DataGridComponent/DataGridSyncs/DataGridHighlightSync.js"],rt["Dashboards/Components/DataGridComponent/DataGridSyncs/DataGridVisibilitySync.js"]],function(lt,ut,dt){return{defaultSyncPairs:{extremes:lt.syncPair,highlight:ut.syncPair,visibility:dt.syncPair},defaultSyncOptions:{extremes:lt.defaultOptions,highlight:ut.defaultOptions,visibility:dt.defaultOptions}}}),nt(rt,"Dashboards/Components/DataGridComponent/DataGridComponentDefaults.js",[rt["Data/Converters/DataConverter.js"],rt["Core/Utilities.js"]],function(lt,ut){let{uniqueKey:dt}=ut;return{dataGridClassName:"dataGrid-container",dataGridID:"dataGrid-"+dt(),dataGridOptions:{},editableOptions:[{name:"connectorName",propertyPath:["connector","id"],type:"select"}],onUpdate:(pt,ht)=>{let mt=pt.target;if(mt){let xt=mt.closest(".highcharts-datagrid-row"),Mt=mt.closest(".highcharts-datagrid-cell");if(xt&&xt instanceof HTMLElement&&Mt&&Mt instanceof HTMLElement){let vt=xt.dataset.rowIndex,{columnName:Ot}=Mt.dataset;if(vt!==void 0&&Ot!==void 0){let At=ht.table;if(At){let Rt=new lt().asGuessedType(mt.value);Rt instanceof Date&&(Rt=Rt.toString()),At.setCell(Ot,Number(vt),Rt)}}}}}}}),nt(rt,"Dashboards/Components/DataGridComponent/DataGridComponent.js",[rt["Dashboards/Components/Component.js"],rt["Dashboards/Components/DataGridComponent/DataGridSyncs/DataGridSyncs.js"],rt["Dashboards/Components/DataGridComponent/DataGridComponentDefaults.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){let{diffObjects:ht,merge:mt}=pt;class xt extends lt{static fromJSON(vt,Ot){let At=new xt(Ot,mt(vt.options,{dataGridOptions:JSON.parse(vt.options.dataGridOptions||"")}));return At.emit({type:"fromJSON",json:vt}),At}constructor(vt,Ot,At){super(vt,Ot=mt(xt.defaultOptions,Ot),At),this.connectorListeners=[],this.options=Ot,this.type="DataGrid",this.options.dataGridClassName&&this.contentElement.classList.add(this.options.dataGridClassName),this.options.dataGridID&&(this.contentElement.id=this.options.dataGridID),this.dataGridOptions=this.options.dataGridOptions||{},this.innerResizeTimeouts=[],this.on("afterSetConnectors",Rt=>{var Tt,Ct;let zt=(Ct=(Tt=Rt.connectorHandlers)==null?void 0:Tt[0])==null?void 0:Ct.connector;zt&&this.disableEditingModifiedColumns(zt)})}onTableChanged(){var vt;this.dataGrid&&!((vt=this.dataGrid)!=null&&vt.cellInputEl)&&this.dataGrid.update({dataTable:this.filterColumns()})}disableEditingModifiedColumns(vt){var At;let Ot=this.getColumnOptions(vt);(At=this.dataGrid)==null||At.update({columns:Ot})}getColumnOptions(vt){let Ot=vt.options.dataModifier;if(!Ot||Ot.type!=="Math")return{};let At=Ot.columnFormulas;if(!At)return{};let Rt={};for(let zt=0,Tt=At.length;zt<Tt;++zt)Rt[At[zt].column]={editable:!1};return Rt}async load(){this.emit({type:"load"}),await super.load();let vt=this.getFirstConnector();if(vt&&!this.connectorListeners.length){let Ot=this.connectorListeners;Ot.push(vt.on("afterLoad",At=>{At.table&&vt&&vt.table.setColumns(At.table.getColumns())})),Ot.push(vt.table.on("afterSetCell",At=>{let Rt=this.dataGrid,zt=!0;if(Rt){let Tt=Rt.rowElements[At.rowIndex],Ct=[];Tt&&(Ct=Array.prototype.slice.call(Tt.childNodes)),Ct.forEach(It=>{if(It.childElementCount>0){let Dt=It.childNodes[0],kt=typeof At.cellValue=="string"?Dt.value:+Dt.value;It.dataset.columnName===At.columnName&&kt===At.cellValue&&(zt=!1)}})}zt&&this.update({})}))}return this.emit({type:"afterLoad"}),this}render(){super.render(),this.dataGrid||(this.dataGrid=this.constructDataGrid());let vt=this.getFirstConnector();return vt&&this.dataGrid&&this.dataGrid.dataTable.modified!==vt.table.modified&&this.dataGrid.update({dataTable:this.filterColumns()}),this.sync.start(),this.emit({type:"afterRender"}),this.setupConnectorUpdate(),this}resize(vt,Ot){this.dataGrid&&super.resize(vt,Ot)}async update(vt){var At;let Ot=Array.isArray(vt.connector)?vt.connector[0]:vt.connector;if(this.connectorHandlers[0]&&(Ot==null?void 0:Ot.id)!==((At=this.connectorHandlers[0])==null?void 0:At.connectorId)){let Rt=this.connectorListeners;for(let zt=0,Tt=Rt.length;zt<Tt;++zt)Rt[zt]();Rt.length=0}await super.update(vt),this.dataGrid&&this.dataGrid.update(this.options.dataGridOptions||{}),this.emit({type:"afterUpdate"})}constructDataGrid(){var vt,Ot;if(xt.DataGridNamespace){let At=xt.DataGridNamespace.DataGrid,Rt=this.getFirstConnector(),zt=Rt?this.getColumnOptions(Rt):{};return this.dataGrid=new At(this.contentElement,{...this.options.dataGridOptions,dataTable:((vt=this.options.dataGridOptions)==null?void 0:vt.dataTable)||this.filterColumns(),columns:mt(zt,(Ot=this.options.dataGridOptions)==null?void 0:Ot.columns)}),this.dataGrid}throw Error("DataGrid not connected.")}setupConnectorUpdate(){let{dataGrid:vt}=this,Ot=this.getFirstConnector();Ot&&vt&&vt.on("cellClick",At=>{"input"in At&&At.input.addEventListener("keyup",Rt=>this.options.onUpdate(Rt,Ot))})}filterColumns(){var At;let vt=(At=this.getFirstConnector())==null?void 0:At.table.modified,Ot=this.options.visibleColumns;if(vt){if(!(Ot!=null&&Ot.length))return vt;let Rt=vt.getColumnNames().filter(Tt=>(Ot==null?void 0:Ot.length)>0&&!Ot.includes(Tt)),zt=vt.clone();return zt.deleteColumns(Rt),zt}}getOptionsOnDrop(vt){let Ot=vt.editMode.board.dataPool.getConnectorIds(),At={cell:"",type:"DataGrid"};return Ot.length&&(At={...At,connector:{id:Ot[0]}}),At}toJSON(){let vt=JSON.stringify(this.options.dataGridOptions),Ot=super.toJSON(),At={...Ot,options:{...Ot.options,dataGridOptions:vt}};return this.emit({type:"toJSON",json:At}),At}getOptions(){return{...ht(this.options,xt.defaultOptions),type:"DataGrid"}}destroy(){var vt;(vt=this.dataGrid)==null||vt.containerResizeObserver.disconnect(),super.destroy()}}return xt.predefinedSyncConfig=ut,xt.defaultOptions=mt(lt.defaultOptions,dt),xt}),nt(rt,"Dashboards/Plugins/DataGridPlugin.js",[rt["Dashboards/Components/DataGridComponent/DataGridComponent.js"]],function(lt){return{custom:{connectDataGrid:function(ut){lt.DataGridNamespace=ut}},name:"DataGrid.DashboardsPlugin",onRegister:function(ut){let{ComponentRegistry:dt}=ut;dt.registerComponent("DataGrid",lt)},onUnregister:function(ut){}}}),nt(rt,"Dashboards/Components/HighchartsComponent/HighchartsSyncs/HighchartsExtremesSync.js",[rt["Core/Utilities.js"]],function(lt){let{addEvent:ut,isString:dt}=lt;return{defaultOptions:{},syncPair:{emitter:function(){var zt,Tt;if(this.type!=="Highcharts")return;let pt=this,ht=[],{chart:mt,board:xt}=pt,Mt=(Tt=(zt=pt.connectorHandlers)==null?void 0:zt[0])==null?void 0:Tt.connector,vt=Mt&&Mt.table,Ot=this.sync.syncConfig.extremes,At=Ot.group?":"+Ot.group:"",{dataCursor:Rt}=xt;if(vt&&mt){let Ct=qt=>{var Yt;let Nt=!!qt.resetSelection;if((!qt.trigger||qt.trigger&&qt.trigger!=="dashboards-sync")&&!Nt){let Kt=qt.target,Jt=Object.keys(pt.seriesFromConnector),Qt=Jt.length>0?mt.get(Jt[0]):Kt.series[0];if(Qt){let Bt=Qt.points.filter(jt=>jt.isInside||!1),Ft={type:"position",state:`${Kt.coll}.extremes.min${At}`},$t={type:"position",state:`${Kt.coll}.extremes.max${At}`};if(Jt.length>0&&Kt.coll==="xAxis"&&Bt.length){let jt,Wt=((Yt=pt.connectorHandlers[0])==null?void 0:Yt.options).columnAssignment;if(Wt){let Ut=Wt.find(Vt=>Vt.seriesId===Qt.options.id);if(Ut){let Vt=Ut.data;jt=dt(Vt)?Vt:Array.isArray(Vt)?Vt[Vt.length-1]:Vt.y}}jt||(jt=Kt.dateTime&&(vt.hasColumns(["x"])?"x":Qt.options.id??Qt.name)),Ft.row=Bt[0].index,Ft.column=jt,$t.row=Bt[Bt.length-1].index,$t.column=jt}Rt.emitCursor(vt,Ft,qt,!0).emitCursor(vt,$t,qt,!0)}}},It=()=>mt.axes.map(qt=>ut(qt,"afterSetExtremes",Ct)),Dt=It(),kt=()=>{Dt.forEach(qt=>{qt()}),Dt=[]};ht.push(ut(mt,"selection",qt=>{qt.resetSelection&&(kt(),Rt.emitCursor(vt,{type:"position",state:"chart.zoomOut"+At},qt),Dt.push(...It()))})),ht.push(()=>{Rt.remitCursor(vt.id,{type:"position",state:"xAxis.extremes.min"+At}),Rt.remitCursor(vt.id,{type:"position",state:"xAxis.extremes.max"+At}),kt()})}return function(){ht.forEach(Ct=>{Ct()})}},handler:function(){var vt;if(this.type!=="Highcharts")return;let pt=this,ht=this.sync.syncConfig.extremes,mt=ht.group?":"+ht.group:"",{chart:xt,board:Mt}=pt;if(xt&&Mt&&((vt=xt.zooming)!=null&&vt.type)){let Ot=xt.zooming.type.split("").map(Rt=>Rt+"Axis"),At=[];return Ot.forEach(Rt=>{let zt=Tt=>{let{cursor:Ct,event:It}=Tt;if(Ct.type==="position"){let Dt=It==null?void 0:It.target;if(Dt&&xt){let kt=xt[Rt],qt=!1;kt.forEach(Nt=>{Dt.coll===Nt.coll&&Dt!==Nt&&Dt.min!==null&&Dt.max!==null&&(Nt.max!==Dt.max||Nt.min!==Dt.min)&&(Nt.setExtremes(Dt.min,Dt.max,!1,void 0,{trigger:"dashboards-sync"}),qt=!0)}),qt&&!xt.resetZoomButton&&xt.showResetZoom(),xt.redraw()}}};Mt&&(()=>{var It,Dt;let{dataCursor:Tt}=Mt,Ct=(Dt=(It=pt.connectorHandlers)==null?void 0:It[0])==null?void 0:Dt.connector;if(Ct){let{table:kt}=Ct;Tt.addListener(kt.id,`${Rt}.extremes.min${mt}`,zt),Tt.addListener(kt.id,`${Rt}.extremes.max${mt}`,zt);let qt=()=>{xt.zoomOut(),setTimeout(()=>{pt.element.querySelectorAll(".highcharts-reset-zoom").forEach(Nt=>{Nt.remove()})})};Tt.addListener(kt.id,"chart.zoomOut",qt),At.push(()=>{Tt.removeListener(kt.id,`${Rt}.extremes.min${mt}`,zt),Tt.removeListener(kt.id,`${Rt}.extremes.max${mt}`,zt),Tt.removeListener(kt.id,"chart.zoomOut"+mt,qt)})}})()}),function(){At.forEach(Rt=>{Rt()})}}}}}}),nt(rt,"Dashboards/Components/HighchartsComponent/HighchartsSyncs/HighchartsHighlightSync.js",[rt["Dashboards/Utilities.js"]],function(lt){let{error:ut}=lt;function dt(pt,ht){let{ranges:mt}=ht;if(mt){let xt=mt.reduce((vt,Ot)=>(Ot.minValue>vt.minValue&&(vt=Ot),vt),mt[0]),Mt=pt.getRowIndexBy(xt.column,xt.minValue);if(Mt)return Mt}return 0}return{defaultOptions:{affectedSeriesId:null,highlightPoint:!0,showTooltip:!0,showCrosshair:!0},syncPair:{emitter:function(){var vt,Ot,At;if(this.type!=="Highcharts")return;let{chart:pt,board:ht}=this,mt=this.sync.syncConfig.highlight,xt=mt.group?":"+mt.group:"";if(!mt.enabled||!pt)return;let{dataCursor:Mt}=ht;for(let Rt=0,zt=((vt=pt.series)==null?void 0:vt.length)??0;Rt<zt;++Rt){let Tt,Ct=pt.series[Rt],It=Ct.options.id??"",Dt=this.seriesFromConnector[It],kt=(Ot=Dt==null?void 0:Dt.connector)==null?void 0:Ot.table;if(!kt)continue;let qt=(At=Dt.columnAssignment)==null?void 0:At.find(Nt=>Nt.seriesId===It);if(qt){let{data:Nt}=qt;Tt=typeof Nt=="string"?Nt:Array.isArray(Nt)?Nt[1]:Nt.y??Nt.value}Tt||(Tt=Ct.name),Ct.update({point:{events:{mouseOver:function(){let Nt=0,Yt=kt.getModifier();(Yt==null?void 0:Yt.options.type)==="Range"&&(Nt=dt(kt,Yt.options)),Mt.emitCursor(kt,{type:"position",row:Nt+this.index,column:Tt,state:"point.mouseOver"+xt})},mouseOut:function(){let Nt=0,Yt=kt.getModifier();(Yt==null?void 0:Yt.options.type)==="Range"&&(Nt=dt(kt,Yt.options)),Mt.emitCursor(kt,{type:"position",row:Nt+this.index,column:Tt,state:"point.mouseOut"+xt})}}}},!1)}return pt.redraw(),function(){pt&&pt.series&&(pt.series.forEach(Rt=>{Rt.update({point:{events:{mouseOver:void 0,mouseOut:void 0}}},!1)}),pt.redraw())}},handler:function(){if(this.type!=="Highcharts")return;let pt=this,ht=this.sync.syncConfig.highlight.group?":"+this.sync.syncConfig.highlight.group:"",{chart:mt,board:xt}=pt,Mt=At=>{var Dt,kt;let{table:Rt,cursor:zt}=At,Tt=this.sync.syncConfig.highlight,Ct=Rt.getModifier(),It=0;if(Ct&&Ct.options.type==="Range"&&(It=dt(Rt,Ct.options)),mt&&((Dt=mt.series)==null?void 0:Dt.length)&&zt.type==="position"){let qt,Nt=Tt.affectedSeriesId;if(Tt.affectedSeriesId){let Yt=mt.get(Tt.affectedSeriesId);Yt!=null&&Yt.points?qt=Yt:ut("No series with ID '"+Nt+"' found in the chart. Affected series will be selected according to the column assignment.")}if(!qt){let Yt=Object.keys(pt.seriesFromConnector);for(let Kt=0,Jt=Yt.length;Kt<Jt;++Kt){let Qt=Yt[Kt],Bt=pt.seriesFromConnector[Qt];if(((kt=Bt==null?void 0:Bt.connector)==null?void 0:kt.table)!==Rt)continue;let Ft=Bt.columnAssignment;if(qt=mt.get(Qt),!Ft)break;let{data:$t}=Ft.find(jt=>jt.seriesId===Qt)??{};if(!$t||!zt.column)break;if(typeof $t=="string"){if($t===zt.column)break}else if(Array.isArray($t)){if($t.includes(zt.column))break}else if(Object.keys($t).map(jt=>$t[jt]).includes(zt.column))break}}if(qt!=null&&qt.visible&&zt.row!==void 0){let Yt=qt.data[zt.row-It];if(Yt!=null&&Yt.visible)return Yt}}},vt=At=>{var Ct,It,Dt;let Rt=this.sync.syncConfig.highlight;if(!Rt.enabled)return;let zt=Mt(At);if(!zt||!mt||!zt.isInside&&zt.series.isCartesian||zt===mt.hoverPoint)return;let Tt=mt.tooltip;if(Tt&&Rt.showTooltip){let kt=Tt.shared,qt=mt.hoverPoint,Nt=(qt==null?void 0:qt.series)||mt.hoverSeries,Yt=(Ct=mt.pointer)==null?void 0:Ct.getHoverData(zt,Nt,mt.series,!0,!0);mt.tooltip&&Yt&&Tt.refresh(kt?Yt.hoverPoints:zt)}Rt.highlightPoint&&(!(Tt!=null&&Tt.shared)&&Rt.showTooltip||!Rt.showTooltip)&&zt.setState("hover"),Rt.showCrosshair&&((It=zt.series.xAxis)==null||It.drawCrosshair(void 0,zt),(Dt=zt.series.yAxis)==null||Dt.drawCrosshair(void 0,zt))},Ot=At=>{var Dt,kt;let Rt=this.sync.syncConfig.highlight;if(!mt||!mt.series.length||!Rt.enabled)return;let zt=Mt(At);if(zt&&(!zt.isInside&&zt.series.isCartesian||zt===mt.hoverPoint))return;let Tt=!1,Ct=()=>{let qt=mt.series.length;for(let Nt=0;Nt<qt;Nt++){let Yt=mt.series[Nt].points,Kt=Yt.length;for(let Jt=0;Jt<Kt;Jt++)Yt[Jt].setState()}},It=mt.tooltip;if(It&&Rt.showTooltip&&(It.hide(),It.shared&&(Ct(),Tt=!0)),Rt.highlightPoint&&!Tt&&(zt?zt.setState():Ct()),Rt.showCrosshair)if(zt)(Dt=zt.series.xAxis)==null||Dt.drawCrosshair(),(kt=zt.series.yAxis)==null||kt.drawCrosshair();else{let qt=mt.xAxis,Nt=mt.yAxis;for(let Yt=0,Kt=qt.length;Yt<Kt;Yt++)qt[Yt].drawCrosshair();for(let Yt=0,Kt=Nt.length;Yt<Kt;Yt++)Nt[Yt].drawCrosshair()}};if(xt)return(()=>{var zt,Tt;let{dataCursor:At}=xt,{connectorHandlers:Rt}=this;if(At)for(let Ct=0,It=Rt.length;Ct<It;++Ct){let Dt=(Tt=(zt=Rt[Ct])==null?void 0:zt.connector)==null?void 0:Tt.table;Dt&&(At.addListener(Dt.id,"point.mouseOver"+ht,vt),At.addListener(Dt.id,"dataGrid.hoverRow"+ht,vt),At.addListener(Dt.id,"point.mouseOut"+ht,Ot),At.addListener(Dt.id,"dataGrid.hoverOut"+ht,Ot))}})(),()=>{var zt,Tt;let{dataCursor:At}=xt,{connectorHandlers:Rt}=this;if(At)for(let Ct=0,It=Rt.length;Ct<It;++Ct){let Dt=(Tt=(zt=Rt[Ct])==null?void 0:zt.connector)==null?void 0:Tt.table;Dt&&(At.removeListener(Dt.id,"point.mouseOver"+ht,vt),At.removeListener(Dt.id,"dataGrid.hoverRow"+ht,vt),At.removeListener(Dt.id,"point.mouseOut"+ht,Ot),At.removeListener(Dt.id,"dataGrid.hoverOut"+ht,Ot))}}}}}}),nt(rt,"Dashboards/Components/HighchartsComponent/HighchartsSyncs/HighchartsVisibilitySync.js",[],function(){return{defaultOptions:{},syncPair:{emitter:function(){if(this.type!=="Highcharts")return;let lt=this.sync.syncConfig.visibility,ut=lt.group?":"+lt.group:"",{chart:dt,board:pt}=this,ht=this.getFirstConnector();if(!pt||!dt)return;let mt=ht==null?void 0:ht.table;if(mt){let{dataCursor:xt}=pt,{series:Mt}=dt;Mt.forEach(vt=>{vt.update({events:{show:function(){xt.emitCursor(mt,{type:"position",state:"series.show"+ut,column:this.name})},hide:function(){xt.emitCursor(mt,{type:"position",state:"series.hide"+ut,column:this.name})}}},!1)}),dt.redraw()}return function(){var xt;dt&&((xt=dt.series)!=null&&xt.length)&&(dt.series.forEach(Mt=>{Mt.update({events:{show:void 0,hide:void 0}},!1)}),dt.redraw())}},handler:function(){if(this.type!=="Highcharts")return;let lt=this,ut=this.sync.syncConfig.visibility,dt=ut.group?":"+ut.group:"",{board:pt}=lt,ht=(Mt,vt)=>{for(let Ot of Mt)if(Ot.name===vt)return Ot},mt=Mt=>{var Ot;let vt=lt.chart;if(vt&&((Ot=vt.series)!=null&&Ot.length)&&Mt.cursor.type==="position"&&Mt.cursor.column!==void 0){let At=ht(vt.series,Mt.cursor.column);At&&At.setVisible(!0,!0)}},xt=Mt=>{var Ot;let vt=lt.chart;if(vt&&((Ot=vt.series)!=null&&Ot.length)&&Mt.cursor.type==="position"&&Mt.cursor.column!==void 0){let At=ht(vt.series,Mt.cursor.column);At&&At.setVisible(!1,!0)}};if(pt)return(()=>{var Ot,At,Rt;let{dataCursor:Mt}=pt;if(!Mt)return;let vt=(Rt=(At=(Ot=lt.connectorHandlers)==null?void 0:Ot[0])==null?void 0:At.connector)==null?void 0:Rt.table;vt&&(Mt.addListener(vt.id,"series.show"+dt,mt),Mt.addListener(vt.id,"series.hide"+dt,xt))})(),()=>{var vt,Ot,At;let Mt=(At=(Ot=(vt=lt.connectorHandlers)==null?void 0:vt[0])==null?void 0:Ot.connector)==null?void 0:At.table;Mt&&(pt.dataCursor.removeListener(Mt.id,"series.show"+dt,mt),pt.dataCursor.removeListener(Mt.id,"series.hide"+dt,xt))}}}}}),nt(rt,"Dashboards/Components/HighchartsComponent/HighchartsSyncs/HighchartsSyncs.js",[rt["Dashboards/Components/HighchartsComponent/HighchartsSyncs/HighchartsExtremesSync.js"],rt["Dashboards/Components/HighchartsComponent/HighchartsSyncs/HighchartsHighlightSync.js"],rt["Dashboards/Components/HighchartsComponent/HighchartsSyncs/HighchartsVisibilitySync.js"]],function(lt,ut,dt){return{defaultSyncPairs:{extremes:lt.syncPair,highlight:ut.syncPair,visibility:dt.syncPair},defaultSyncOptions:{extremes:lt.defaultOptions,highlight:ut.defaultOptions,visibility:dt.defaultOptions}}}),nt(rt,"Dashboards/Components/HighchartsComponent/HighchartsComponentDefaults.js",[rt["Dashboards/Components/Component.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt,uniqueKey:pt}=ut;return{allowConnectorUpdate:!0,className:[lt.defaultOptions.className,`${lt.defaultOptions.className}-highcharts`].join(" "),chartClassName:"chart-container",chartID:"chart-"+pt(),chartOptions:{chart:{styledMode:!0},series:[]},chartConstructor:"chart",editableOptions:[{name:"connectorName",propertyPath:["connector","id"],type:"select"},...lt.defaultOptions.editableOptions||[],{name:"chartOptions",type:"nested",nestedOptions:[{name:"chart",options:[{name:"title",propertyPath:["chartOptions","title","text"],type:"input"},{name:"subtitle",propertyPath:["chartOptions","subtitle","text"],type:"input"},{name:"type",propertyPath:["chartOptions","chart","type"],type:"select",selectOptions:[{name:"column",iconURL:"series-types/icon-column.svg"},{name:"line",iconURL:"series-types/icon-line.svg"},{name:"scatter",iconURL:"series-types/icon-scatter.svg"},{name:"pie",iconURL:"series-types/icon-pie.svg"}]}]},{name:"xAxis",options:[{name:"title",propertyPath:["chartOptions","xAxis","title","text"],type:"input"},{name:"type",propertyPath:["chartOptions","xAxis","type"],type:"select",selectOptions:[{name:"linear"},{name:"datetime"},{name:"logarithmic"}]}]},{name:"yAxis",options:[{name:"title",propertyPath:["chartOptions","yAxis","title","text"],type:"input"},{name:"type",propertyPath:["chartOptions","yAxis","type"],type:"select",selectOptions:[{name:"linear"},{name:"datetime"},{name:"logarithmic"}]}]},{name:"legend",showToggle:!0,propertyPath:["chartOptions","legend","enabled"],options:[{name:"align",propertyPath:["chartOptions","legend","align"],type:"select",selectOptions:[{name:"left"},{name:"center"},{name:"right"}]}]},{name:"tooltip",showToggle:!0,propertyPath:["chartOptions","tooltip","enabled"],options:[{name:"split",propertyPath:["chartOptions","tooltip","split"],type:"toggle"}]},{name:"dataLabels",propertyPath:["chartOptions","plotOptions","series","dataLabels","enabled"],showToggle:!0,options:[{name:"align",propertyPath:["chartOptions","plotOptions","series","dataLabels","align"],type:"select",selectOptions:[{name:"left"},{name:"center"},{name:"right"}]}]},{name:"credits",showToggle:!0,propertyPath:["chartOptions","credits","enabled"],options:[{name:"name",propertyPath:["chartOptions","credits","text"],type:"input"},{name:"url",propertyPath:["chartOptions","credits","href"],type:"input"}]}]},{name:"chartConfig",propertyPath:["chartOptions"],type:"textarea"},{name:"chartClassName",propertyPath:["chartClassName"],type:"input"},{name:"chartID",propertyPath:["chartID"],type:"input"}],editableOptionsBindings:dt(lt.defaultOptions.editableOptionsBindings,{skipRedraw:["chartOptions","chartConfig"]})}}),nt(rt,"Dashboards/Components/HighchartsComponent/HighchartsComponent.js",[rt["Dashboards/Components/Component.js"],rt["Data/Converters/DataConverter.js"],rt["Data/DataTable.js"],rt["Dashboards/Globals.js"],rt["Dashboards/Components/HighchartsComponent/HighchartsSyncs/HighchartsSyncs.js"],rt["Dashboards/Components/HighchartsComponent/HighchartsComponentDefaults.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt){let{createElement:Mt,diffObjects:vt,isString:Ot,merge:At,splat:Rt}=xt;class zt extends lt{static fromJSON(Ct,It){let Dt=new zt(It,At(Ct.options,{chartOptions:JSON.parse(Ct.options.chartOptions||"{}")}));return Dt.emit({type:"fromJSON",json:Ct}),Dt}constructor(Ct,It,Dt){for(let kt of(super(Ct,It=At(zt.defaultOptions,It),Dt),this.seriesFromConnector={},this.options=It,this.chartConstructor=this.options.chartConstructor||"chart",this.type="Highcharts",this.chartContainer=Mt("figure",void 0,void 0,this.contentElement,!0),this.setOptions(),this.chartOptions=At(this.options.chartOptions||{chart:{}},{tooltip:{}}),this.connectorHandlers)){let qt=kt.connector;qt&&qt.on("afterLoad",Nt=>{Nt.table&&qt.table.setColumns(Nt.table.getColumns())})}this.innerResizeTimeouts=[]}onTableChanged(){this.updateSeries()}async load(){return this.emit({type:"load"}),await super.load(),this.emit({type:"afterLoad"}),this}render(){return super.render(),this.chart=this.getChart(),this.updateSeries(),this.emit({type:"afterRender"}),this.setupConnectorUpdate(),this.sync.start(),this}resize(Ct,It){for(super.resize(Ct,It);this.innerResizeTimeouts.length;){let Dt=this.innerResizeTimeouts.pop();Dt&&clearTimeout(Dt)}return this.innerResizeTimeouts.push(setTimeout(()=>{var Dt;if(this.chart&&this.chart.container){let kt=this.contentElement.offsetHeight-((Dt=this.chart)==null?void 0:Dt.container.offsetHeight);this.chart.setSize(null,Math.abs(kt)>1?this.contentElement.offsetHeight:null,!1)}},33)),this}setupConnectorUpdate(){let{connectorHandlers:Ct,chart:It}=this;if(!It||!this.options.allowConnectorUpdate)return;let Dt=It.series.length;for(let kt=0,qt=Ct.length;kt<qt;kt++){let Nt=Ct[kt];for(let Yt=0;Yt<Dt;Yt++)It.series[Yt].update({point:{events:{update:Kt=>{this.onChartUpdate(Kt.target,Nt)}}}},!1)}}onChartUpdate(Ct,It){var Kt,Jt;let Dt,kt=(Kt=It.connector)==null?void 0:Kt.table,qt=It.columnAssignment,Nt=Ct.series.options.id,Yt=new ut().asNumber(Ct.y);if(kt){if(qt&&Nt){let Qt=(Jt=qt.find(Bt=>Bt.seriesId===Nt))==null?void 0:Jt.data;Ot(Qt)?Dt=Qt:Array.isArray(Qt)?Dt=Qt[1]:Qt&&(Dt=Qt.y??Qt.value)}Dt||(Dt=Nt??Ct.series.name),kt.setCell(Dt,Ct.index,Yt)}}setOptions(){this.options.chartClassName&&this.chartContainer.classList.add(this.options.chartClassName),this.options.chartID&&(this.chartContainer.id=this.options.chartID)}async update(Ct,It=!0){await super.update(Ct,!1),this.setOptions(),this.chart&&this.chart.update(At(this.options.chartOptions)||{}),this.emit({type:"afterUpdate"}),It&&this.render()}updateSeries(){let{chart:Ct}=this,It=this.connectorHandlers;if(!Ct)return;let Dt=[];for(let qt of It){let Nt=qt.options.columnAssignment;if(!Nt&&qt.presentationTable&&(Nt=this.getDefaultColumnAssignment(qt.presentationTable.getColumnNames(),qt.presentationTable)),Nt)for(let{seriesId:Yt}of(qt.columnAssignment=Nt,Nt))Yt&&Dt.push(Yt)}let kt=Object.keys(this.seriesFromConnector);for(let qt=0,Nt=kt.length;qt<Nt;++qt){let Yt=kt[qt];if(Dt.some(Jt=>Jt===Yt))continue;let Kt=Ct.get(Yt);Kt&&Kt.destroy()}for(let qt of(this.seriesFromConnector={},It))this.updateSeriesFromConnector(qt);Ct.redraw()}updateSeriesFromConnector(Ct){var Nt;let It=this.chart;if(!Ct.connector||!It||!Ct.presentationTable)return;let Dt=Ct.presentationTable.modified,kt=(Nt=Ct.presentationTable.getModifier())==null?void 0:Nt.options,qt=Ct.columnAssignment??[];for(let Yt=0,Kt=qt.length;Yt<Kt;++Yt){let Jt=qt[Yt],Qt=Jt.data,Bt=It.get(Jt.seriesId),Ft={},$t=jt=>{var Wt;(kt==null?void 0:kt.type)==="Math"&&((Wt=kt.columnFormulas)!=null&&Wt.some(Ut=>jt(Ut.column)))&&(Ft.dragDrop={draggableY:!1})};if(Ot(Qt)){let jt=Dt.getColumn(Qt);jt&&(Ft.data=jt.slice()),$t(Wt=>Wt===Qt)}else if(Array.isArray(Qt)){let jt=new dt({columns:Dt.getColumns(Qt)});Ft.data=jt.getRows(),$t(Wt=>Qt.some(Ut=>Ut===Wt))}else{let jt=Object.keys(Qt),Wt=[];for(let Vt=0,Ht=jt.length;Vt<Ht;++Vt)Wt.push(Qt[jt[Vt]]);let Ut=new dt({columns:Dt.getColumns(Wt)});Ft.keys=jt,Ft.data=Ut.getRows(),$t(Vt=>Wt.some(Ht=>Ht===Vt))}Bt?Bt.update(Ft,!1):It.addSeries({name:Jt.seriesId,id:Jt.seriesId,...Ft},!1),this.seriesFromConnector[Jt.seriesId]=Ct}}getChart(){return this.chart||this.createChart()}destroy(){var Ct;(Ct=this.chart)==null||Ct.destroy(),super.destroy()}getDefaultColumnAssignment(Ct=[],It){let Dt=[],kt=It.getColumn(Ct[0]);if(kt&&Ot(kt[0])){for(let qt=1,Nt=Ct.length;qt<Nt;++qt)Dt.push({seriesId:Ct[qt],data:[Ct[0],Ct[qt]]});return Dt}for(let qt=0,Nt=Ct.length;qt<Nt;++qt)Dt.push({seriesId:Ct[qt],data:Ct[qt]});return Dt}createChart(){let Ct=zt.charter||pt.win.Highcharts;this.chartConstructor||(this.chartConstructor="chart");let It=Ct[this.chartConstructor];if(It)try{return this.chartConstructor==="chart"?Ct.Chart.chart(this.chartContainer,this.chartOptions):new It(this.chartContainer,this.chartOptions)}catch(Dt){throw Error(`The Highcharts component in cell '${this.cell.id}' is misconfigured. 
____________
${Dt}`)}if(typeof Ct.chart!="function")throw Error("Chart constructor not found");return this.chart}registerChartEvents(){if(this.chart&&this.chart.options){let Ct=this.chart.options;["chart","series","yAxis","xAxis","colorAxis","annotations","navigation"].map(It=>{let Dt=Ct[It]||{};return!Array.isArray(Dt)&&Dt.events&&(Dt=[Dt]),Dt&&typeof Dt=="object"&&Array.isArray(Dt)&&Dt.reduce((kt,qt,Nt)=>(qt&&qt.events&&(kt[qt.id||`${It}-${Nt}`]=qt.events),kt),{})||{}}).forEach(It=>{Object.keys(It).forEach(Dt=>{let kt=It[Dt];Object.keys(kt).forEach(qt=>{this.callbackRegistry.addCallback(`${Dt}-${qt}`,{type:"seriesEvent",func:kt[qt]})})})})}}getOptionsOnDrop(Ct){let It=Ct.editMode.board.dataPool.getConnectorIds(),Dt={cell:"",type:"Highcharts",chartOptions:{chart:{animation:!1,type:"column",zooming:{}}}};return It.length&&(Dt={...Dt,connector:{id:It[0]}}),Dt}toJSON(){let Ct=JSON.stringify(this.options.chartOptions),It=this.options.chartConstructor||"chart";this.registerChartEvents();let Dt=super.toJSON(),kt={...Dt,type:"Highcharts",options:{...Dt.options,chartOptions:Ct,chartConstructor:It,type:"Highcharts",sync:{}}};return this.emit({type:"toJSON",json:kt}),kt}getOptions(){return{...vt(this.options,zt.defaultOptions),type:"Highcharts"}}getEditableOptions(){var qt;let Ct=this.options,It=this.chart,Dt=It&&It.options,kt=((qt=Dt==null?void 0:Dt.chart)==null?void 0:qt.type)||"line";return At({chartOptions:Dt},{chartOptions:{yAxis:Rt(It&&It.yAxis[0].options),xAxis:Rt(It&&It.xAxis[0].options),plotOptions:{series:(Dt&&Dt.plotOptions||{})[kt]}}},Ct)}getEditableOptionValue(Ct){return Ct?Ct.length===1&&Ct[0]==="chartOptions"?JSON.stringify(this.options.chartOptions,null,2):super.getEditableOptionValue.call(this,Ct):void 0}}return zt.predefinedSyncConfig=ht,zt.defaultOptions=At(lt.defaultOptions,mt),zt}),nt(rt,"Dashboards/Components/KPIComponent/KPISyncs/KPIExtremesSync.js",[rt["Core/Utilities.js"]],function(lt){let{defined:ut}=lt;return{defaultOptions:{},syncPair:{emitter:void 0,handler:function(){if(this.type!=="KPI")return;let dt=this,pt=this.sync.syncConfig.extremes,ht=pt.group?":"+pt.group:"",{board:mt}=this,xt=Mt=>{var Ot,At;let vt=Mt.cursor;if(vt.type==="position"&&typeof(vt==null?void 0:vt.row)=="number"&&ut(vt.column)&&((At=(Ot=dt.connectorHandlers)==null?void 0:Ot[0])!=null&&At.connector)&&!ut(dt.options.value)){let Rt=dt.connectorHandlers[0].connector.table.modified.getCellAsString(vt.column,vt.row);dt.setValue(Rt)}};if(mt)return(()=>{var Ot;let{dataCursor:Mt}=mt;if(!Mt)return;let vt=(Ot=this.getFirstConnector())==null?void 0:Ot.table;vt&&Mt.addListener(vt.id,"xAxis.extremes.max"+ht,xt)})(),()=>{var Ot;let Mt=(Ot=this.getFirstConnector())==null?void 0:Ot.table,{dataCursor:vt}=mt;Mt&&vt.removeListener(Mt.id,"xAxis.extremes.max"+ht,xt)}}}}}),nt(rt,"Dashboards/Components/KPIComponent/KPISyncs/KPISyncs.js",[rt["Dashboards/Components/KPIComponent/KPISyncs/KPIExtremesSync.js"]],function(lt){return{defaultSyncPairs:{extremes:lt.syncPair},defaultSyncOptions:{extremes:lt.defaultOptions}}}),nt(rt,"Dashboards/Components/KPIComponent/KPIComponentDefaults.js",[rt["Dashboards/Components/Component.js"]],function(lt){return{type:"KPI",className:[lt.defaultOptions.className,`${lt.defaultOptions.className}-kpi`].join(" "),minFontSize:20,thresholdColors:["#f45b5b","#90ed7d"],editableOptions:[{name:"connectorName",propertyPath:["connector","id"],type:"select"},...lt.defaultOptions.editableOptions||[],{name:"Value",type:"input",propertyPath:["value"]},{name:"Column name",type:"input",propertyPath:["columnName"]},{name:"Value format",type:"input",propertyPath:["valueFormat"]}],linkedValueTo:{enabled:!0,seriesIndex:0,pointIndex:0}}}),nt(rt,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),nt(rt,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),nt(rt,"Core/Time.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{win:dt}=lt,{defined:pt,error:ht,extend:mt,isNumber:xt,isObject:Mt,merge:vt,objectEach:Ot,pad:At,pick:Rt,splat:zt,timeUnits:Tt}=ut,Ct=lt.isSafari&&dt.Intl&&dt.Intl.DateTimeFormat.prototype.formatRange,It=lt.isSafari&&dt.Intl&&!dt.Intl.DateTimeFormat.prototype.formatRange;class Dt{constructor(qt){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=dt.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(qt)}get(qt,Nt){if(this.variableTimezone||this.timezoneOffset){let Yt=Nt.getTime(),Kt=Yt-this.getTimezoneOffset(Nt);Nt.setTime(Kt);let Jt=Nt["getUTC"+qt]();return Nt.setTime(Yt),Jt}return this.useUTC?Nt["getUTC"+qt]():Nt["get"+qt]()}set(qt,Nt,Yt){if(this.variableTimezone||this.timezoneOffset){if(qt==="Milliseconds"||qt==="Seconds"||qt==="Minutes"&&this.getTimezoneOffset(Nt)%36e5==0)return Nt["setUTC"+qt](Yt);let Kt=this.getTimezoneOffset(Nt),Jt=Nt.getTime()-Kt;Nt.setTime(Jt),Nt["setUTC"+qt](Yt);let Qt=this.getTimezoneOffset(Nt);return Jt=Nt.getTime()+Qt,Nt.setTime(Jt)}return this.useUTC||Ct&&qt==="FullYear"?Nt["setUTC"+qt](Yt):Nt["set"+qt](Yt)}update(qt={}){let Nt=Rt(qt.useUTC,!0);this.options=qt=vt(!0,this.options,qt),this.Date=qt.Date||dt.Date||Date,this.useUTC=Nt,this.timezoneOffset=Nt&&qt.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=Nt&&!!(qt.getTimezoneOffset||qt.timezone)}makeTime(qt,Nt,Yt,Kt,Jt,Qt){let Bt,Ft,$t;return this.useUTC?(Bt=this.Date.UTC.apply(0,arguments),Ft=this.getTimezoneOffset(Bt),Bt+=Ft,Ft!==($t=this.getTimezoneOffset(Bt))?Bt+=$t-Ft:Ft-36e5!==this.getTimezoneOffset(Bt-36e5)||It||(Bt-=36e5)):Bt=new this.Date(qt,Nt,Rt(Yt,1),Rt(Kt,0),Rt(Jt,0),Rt(Qt,0)).getTime(),Bt}timezoneOffsetFunction(){let qt=this,Nt=this.options,Yt=Nt.getTimezoneOffset;return this.useUTC?Nt.timezone?Kt=>{try{let Jt=`shortOffset,${Nt.timezone||""}`,[Qt,Bt,Ft,$t,jt=0]=(Dt.formatCache[Jt]=Dt.formatCache[Jt]||Intl.DateTimeFormat("en",{timeZone:Nt.timezone,timeZoneName:"shortOffset"})).format(Kt).split(/(GMT|:)/).map(Number),Wt=-(36e5*(Ft+jt/60));if(xt(Wt))return Wt}catch{ht(34)}return 0}:this.useUTC&&Yt?Kt=>6e4*Yt(Kt.valueOf()):()=>6e4*(qt.timezoneOffset||0):Kt=>6e4*new Date(Kt.toString()).getTimezoneOffset()}dateFormat(qt,Nt,Yt){if(!pt(Nt)||isNaN(Nt))return lt.defaultOptions.lang&&lt.defaultOptions.lang.invalidDate||"";qt=Rt(qt,"%Y-%m-%d %H:%M:%S");let Kt=this,Jt=new this.Date(Nt),Qt=this.get("Hours",Jt),Bt=this.get("Day",Jt),Ft=this.get("Date",Jt),$t=this.get("Month",Jt),jt=this.get("FullYear",Jt),Wt=lt.defaultOptions.lang,Ut=Wt&&Wt.weekdays,Vt=Wt&&Wt.shortWeekdays;return Ot(mt({a:Vt?Vt[Bt]:Ut[Bt].substr(0,3),A:Ut[Bt],d:At(Ft),e:At(Ft,2," "),w:Bt,b:Wt.shortMonths[$t],B:Wt.months[$t],m:At($t+1),o:$t+1,y:jt.toString().substr(2,2),Y:jt,H:At(Qt),k:Qt,I:At(Qt%12||12),l:Qt%12||12,M:At(this.get("Minutes",Jt)),p:Qt<12?"AM":"PM",P:Qt<12?"am":"pm",S:At(this.get("Seconds",Jt)),L:At(Math.floor(Nt%1e3),3)},lt.dateFormats),function(Ht,Gt){for(;qt.indexOf("%"+Gt)!==-1;)qt=qt.replace("%"+Gt,typeof Ht=="function"?Ht.call(Kt,Nt):Ht)}),Yt?qt.substr(0,1).toUpperCase()+qt.substr(1):qt}resolveDTLFormat(qt){return Mt(qt,!0)?qt:{main:(qt=zt(qt))[0],from:qt[1],to:qt[2]}}getTimeTicks(qt,Nt,Yt,Kt){let Jt,Qt,Bt,Ft,$t=this,jt=$t.Date,Wt=[],Ut={},Vt=new jt(Nt),Ht=qt.unitRange,Gt=qt.count||1;if(Kt=Rt(Kt,1),pt(Nt)){$t.set("Milliseconds",Vt,Ht>=Tt.second?0:Gt*Math.floor($t.get("Milliseconds",Vt)/Gt)),Ht>=Tt.second&&$t.set("Seconds",Vt,Ht>=Tt.minute?0:Gt*Math.floor($t.get("Seconds",Vt)/Gt)),Ht>=Tt.minute&&$t.set("Minutes",Vt,Ht>=Tt.hour?0:Gt*Math.floor($t.get("Minutes",Vt)/Gt)),Ht>=Tt.hour&&$t.set("Hours",Vt,Ht>=Tt.day?0:Gt*Math.floor($t.get("Hours",Vt)/Gt)),Ht>=Tt.day&&$t.set("Date",Vt,Ht>=Tt.month?1:Math.max(1,Gt*Math.floor($t.get("Date",Vt)/Gt))),Ht>=Tt.month&&($t.set("Month",Vt,Ht>=Tt.year?0:Gt*Math.floor($t.get("Month",Vt)/Gt)),Qt=$t.get("FullYear",Vt)),Ht>=Tt.year&&(Qt-=Qt%Gt,$t.set("FullYear",Vt,Qt)),Ht===Tt.week&&(Ft=$t.get("Day",Vt),$t.set("Date",Vt,$t.get("Date",Vt)-Ft+Kt+(Ft<Kt?-7:0))),Qt=$t.get("FullYear",Vt);let Zt=$t.get("Month",Vt),Xt=$t.get("Date",Vt),er=$t.get("Hours",Vt);Nt=Vt.getTime(),($t.variableTimezone||!$t.useUTC)&&pt(Yt)&&(Bt=Yt-Nt>4*Tt.month||$t.getTimezoneOffset(Nt)!==$t.getTimezoneOffset(Yt));let nr=Vt.getTime();for(Jt=1;nr<Yt;)Wt.push(nr),Ht===Tt.year?nr=$t.makeTime(Qt+Jt*Gt,0):Ht===Tt.month?nr=$t.makeTime(Qt,Zt+Jt*Gt):Bt&&(Ht===Tt.day||Ht===Tt.week)?nr=$t.makeTime(Qt,Zt,Xt+Jt*Gt*(Ht===Tt.day?1:7)):Bt&&Ht===Tt.hour&&Gt>1?nr=$t.makeTime(Qt,Zt,Xt,er+Jt*Gt):nr+=Ht*Gt,Jt++;Wt.push(nr),Ht<=Tt.hour&&Wt.length<1e4&&Wt.forEach(function(or){or%18e5==0&&$t.dateFormat("%H%M%S%L",or)==="000000000"&&(Ut[or]="day")})}return Wt.info=mt(qt,{higherRanks:Ut,totalRange:Ht*Gt}),Wt}getDateFormat(qt,Nt,Yt,Kt){let Jt=this.dateFormat("%m-%d %H:%M:%S.%L",Nt),Qt="01-01 00:00:00.000",Bt={millisecond:15,second:12,minute:9,hour:6,day:3},Ft="millisecond",$t=Ft;for(Ft in Tt){if(qt===Tt.week&&+this.dateFormat("%w",Nt)===Yt&&Jt.substr(6)===Qt.substr(6)){Ft="week";break}if(Tt[Ft]>qt){Ft=$t;break}if(Bt[Ft]&&Jt.substr(Bt[Ft])!==Qt.substr(Bt[Ft]))break;Ft!=="week"&&($t=Ft)}return this.resolveDTLFormat(Kt[Ft]).main}}return Dt.formatCache={},Dt}),nt(rt,"Core/Defaults.js",[rt["Core/Chart/ChartDefaults.js"],rt["Core/Globals.js"],rt["Core/Color/Palettes.js"],rt["Core/Time.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){let{isTouchDevice:mt}=ut,{fireEvent:xt,merge:Mt}=ht,vt={colors:dt.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:lt,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:At=>Math.sqrt(1-Math.pow(At-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:mt?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};vt.chart.styledMode=!1;let Ot=new pt(vt.time);return{defaultOptions:vt,defaultTime:Ot,getOptions:function(){return vt},setOptions:function(At){return xt(ut,"setOptions",{options:At}),Mt(!0,vt,At),(At.time||At.global)&&(ut.time?ut.time.update(Mt(vt.global,vt.time,At.global,At.time)):ut.time=Ot),vt}}}),nt(rt,"Core/Templating.js",[rt["Core/Defaults.js"],rt["Core/Utilities.js"]],function(lt,ut){let{defaultOptions:dt,defaultTime:pt}=lt,{extend:ht,getNestedProperty:mt,isArray:xt,isNumber:Mt,isObject:vt,pick:Ot,pInt:At}=ut,Rt={add:(Ct,It)=>Ct+It,divide:(Ct,It)=>It!==0?Ct/It:"",eq:(Ct,It)=>Ct==It,each:function(Ct){let It=arguments[arguments.length-1];return!!xt(Ct)&&Ct.map((Dt,kt)=>zt(It.body,ht(vt(Dt)?Dt:{"@this":Dt},{"@index":kt,"@first":kt===0,"@last":kt===Ct.length-1}))).join("")},ge:(Ct,It)=>Ct>=It,gt:(Ct,It)=>Ct>It,if:Ct=>!!Ct,le:(Ct,It)=>Ct<=It,lt:(Ct,It)=>Ct<It,multiply:(Ct,It)=>Ct*It,ne:(Ct,It)=>Ct!=It,subtract:(Ct,It)=>Ct-It,unless:Ct=>!Ct};function zt(Ct="",It,Dt){let kt=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,qt=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,Nt=[],Yt=/f$/,Kt=/\.(\d)/,Jt=dt.lang,Qt=Dt&&Dt.time||pt,Bt=Dt&&Dt.numberFormatter||Tt,Ft=(Vt="")=>{let Ht;return Vt==="true"||Vt!=="false"&&((Ht=Number(Vt)).toString()===Vt?Ht:mt(Vt,It))},$t,jt,Wt=0,Ut;for(;($t=kt.exec(Ct))!==null;){let Vt=qt.exec($t[1]);Vt&&($t=Vt,Ut=!0),jt&&jt.isBlock||(jt={ctx:It,expression:$t[1],find:$t[0],isBlock:$t[1].charAt(0)==="#",start:$t.index,startInner:$t.index+$t[0].length,length:$t[0].length});let Ht=$t[1].split(" ")[0].replace("#","");Rt[Ht]&&(jt.isBlock&&Ht===jt.fn&&Wt++,jt.fn||(jt.fn=Ht));let Gt=$t[1]==="else";if(jt.isBlock&&jt.fn&&($t[1]===`/${jt.fn}`||Gt))if(Wt)!Gt&&Wt--;else{let Zt=jt.startInner,Xt=Ct.substr(Zt,$t.index-Zt);jt.body===void 0?(jt.body=Xt,jt.startInner=$t.index+$t[0].length):jt.elseBody=Xt,jt.find+=Xt+$t[0],Gt||(Nt.push(jt),jt=void 0)}else jt.isBlock||Nt.push(jt);if(Vt&&!(jt!=null&&jt.isBlock))break}return Nt.forEach(Vt=>{let Ht,Gt,{body:Zt,elseBody:Xt,expression:er,fn:nr}=Vt;if(nr){let or=[Vt],rr=er.split(" ");for(Gt=Rt[nr].length;Gt--;)or.unshift(Ft(rr[Gt+1]));Ht=Rt[nr].apply(It,or),Vt.isBlock&&typeof Ht=="boolean"&&(Ht=zt(Ht?Zt:Xt,It,Dt))}else{let or=er.split(":");if(Ht=Ft(or.shift()||""),or.length&&typeof Ht=="number"){let rr=or.join(":");if(Yt.test(rr)){let cr=parseInt((rr.match(Kt)||["","-1"])[1],10);Ht!==null&&(Ht=Bt(Ht,cr,Jt.decimalPoint,rr.indexOf(",")>-1?Jt.thousandsSep:""))}else Ht=Qt.dateFormat(rr,Ht)}}Ct=Ct.replace(Vt.find,Ot(Ht,""))}),Ut?zt(Ct,It,Dt):Ct}function Tt(Ct,It,Dt,kt){let qt,Nt;Ct=+Ct||0,It=+It;let Yt=dt.lang,Kt=(Ct.toString().split(".")[1]||"").split("e")[0].length,Jt=Ct.toString().split("e"),Qt=It;It===-1?It=Math.min(Kt,20):Mt(It)?It&&Jt[1]&&Jt[1]<0&&((Nt=It+ +Jt[1])>=0?(Jt[0]=(+Jt[0]).toExponential(Nt).split("e")[0],It=Nt):(Jt[0]=Jt[0].split(".")[0]||0,Ct=It<20?(Jt[0]*Math.pow(10,Jt[1])).toFixed(It):0,Jt[1]=0)):It=2;let Bt=(Math.abs(Jt[1]?Jt[0]:Ct)+Math.pow(10,-Math.max(It,Kt)-1)).toFixed(It),Ft=String(At(Bt)),$t=Ft.length>3?Ft.length%3:0;return Dt=Ot(Dt,Yt.decimalPoint),kt=Ot(kt,Yt.thousandsSep),qt=(Ct<0?"-":"")+($t?Ft.substr(0,$t)+kt:""),0>+Jt[1]&&!Qt?qt="0":qt+=Ft.substr($t).replace(/(\d{3})(?=\d)/g,"$1"+kt),It?qt+=Dt+Bt.slice(-It):+qt==0&&(qt="0"),Jt[1]&&+qt!=0&&(qt+="e"+Jt[1]),qt}return{dateFormat:function(Ct,It,Dt){return pt.dateFormat(Ct,It,Dt)},format:zt,helpers:Rt,numberFormat:Tt}}),nt(rt,"Dashboards/Components/KPIComponent/KPIComponent.js",[rt["Core/Renderer/HTML/AST.js"],rt["Dashboards/Components/Component.js"],rt["Dashboards/Components/KPIComponent/KPISyncs/KPISyncs.js"],rt["Dashboards/Components/KPIComponent/KPIComponentDefaults.js"],rt["Core/Templating.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt){let{format:xt}=ht,{createElement:Mt,css:vt,defined:Ot,diffObjects:At,isArray:Rt,isNumber:zt,merge:Tt}=mt;class Ct extends ut{static fromJSON(Dt,kt){let qt=Dt.options,Nt=qt.chartOptions&&JSON.parse(qt.chartOptions),Yt=JSON.parse(qt.subtitle||"{}"),Kt=qt.title&&JSON.parse(qt.title);return new Ct(kt,Tt(qt,{chartOptions:Nt,title:Kt,subtitle:Yt}))}constructor(Dt,kt,qt){super(Dt,kt=Tt(Ct.defaultOptions,kt),qt),this.options=kt,this.type="KPI",this.value=Mt("span",{className:`${kt.className}-value`},{},this.contentElement),this.subtitle=Mt("span",{className:this.getSubtitleClassName()},{},this.contentElement)}async load(){return await super.load(),this.linkValueToChart(),this}resize(Dt,kt){return super.resize(Dt,kt),this.chart&&this.chart.container&&this.chart.reflow(),this}render(){var kt;super.render(),this.updateElements();let Dt=(kt=Ct.charter)==null?void 0:kt.Chart;return Dt&&this.options.chartOptions&&!this.chart?(this.chartContainer||(this.chartContainer=Mt("div",{className:`${this.options.className}-chart-container`},{padding:"0.1px"},this.contentElement)),this.chart=Dt.chart(this.chartContainer,Tt(Ct.defaultChartOptions,this.options.chartOptions))):this.chart&&!this.options.chartOptions&&"chartOptions"in this.options&&(this.chart.destroy(),this.chart=void 0),this.sync.start(),this.emit({type:"afterRender"}),this}async update(Dt,kt=!0){await super.update(Dt),Dt.chartOptions&&this.chart&&this.chart.update(Dt.chartOptions),kt&&this.render()}onTableChanged(){this.setValue()}destroy(){var Dt;(Dt=this.chart)==null||Dt.destroy(),super.destroy()}getValue(){if(Ot(this.options.value))return this.options.value;let Dt=this.getFirstConnector();if(Dt&&this.options.columnName){let kt=Dt.table.modified,qt=kt.getColumn(this.options.columnName),Nt=(qt==null?void 0:qt.length)||0;return kt.getCellAsString(this.options.columnName,Nt-1)}}setValue(Dt=this.getValue()){let{valueFormat:kt,valueFormatter:qt}=this.options;if(Ot(Dt)){let Nt;zt(+Dt)&&(Nt=+Dt),qt?Dt=qt.call(this,Dt):kt?Dt=xt(kt,{value:Dt}):zt(Dt)&&(Dt=Dt.toLocaleString()),lt.setElementHTML(this.value,""+Dt),this.linkValueToChart(Nt),this.prevValue=Nt}}linkValueToChart(Dt=this.getValue()){let kt=this.chart,qt=this.options.linkedValueTo;if(!kt||!qt.enabled||!Ot(Dt)||!zt(+Dt))return;Dt=+Dt;let Nt=kt.series[qt.seriesIndex??0],Yt=Nt==null?void 0:Nt.points[qt.pointIndex??0];if(Nt){if(Yt){Yt.update({y:Dt});return}Nt.addPoint({y:Dt});return}kt.addSeries({data:[{y:Dt}]})}updateElements(){let{style:Dt,subtitle:kt}=this.options;this.setValue(),lt.setElementHTML(this.subtitle,this.getSubtitle()),Dt&&vt(this.element,Dt),typeof kt=="object"&&(kt.style&&vt(this.subtitle,kt.style),this.subtitle.className=this.getSubtitleClassName()),this.chartContainer&&(this.chartContainer.style.flex=this.options.chartOptions?"1":"0"),this.chart&&this.chart.reflow(),this.value.style.color=this.getValueColor()}getSubtitle(){let{subtitle:Dt,value:kt}=this.options;if(typeof Dt=="string")return Dt;if(Dt){if(zt(this.prevValue)&&zt(kt)){let qt=kt-this.prevValue,Nt="";if(qt>0)Nt='<span style="color:green">&#9650;</span> +';else{if(!(qt<0))return this.subtitle.innerHTML;Nt='<span style="color:red">&#9660;</span> '}if(Dt.type==="diff")return Nt+qt.toLocaleString();if(Dt.type==="diffpercent")return Nt+xt("{v:,.2f}%",{v:qt/this.prevValue*100})}return Dt.text||""}return""}getSubtitleClassName(){let{subtitle:Dt}=this.options;return`${ut.defaultOptions.className}-subtitle`+(typeof Dt=="object"&&Dt.className||"")}getValueColor(){let{threshold:Dt,thresholdColors:kt,value:qt}=this.options;if(kt&&Dt&&zt(qt)){if(Rt(Dt)){for(let Nt=Dt.length-1;Nt>=0;Nt--)if(qt>=Dt[Nt])return Nt+1<kt.length?kt[Nt+1]:kt[kt.length-1]}else if(qt>=Dt)return kt[1];return kt[0]}return""}getOptionsOnDrop(Dt){let kt=Dt.editMode.board.dataPool.getConnectorIds(),qt={cell:"",type:"KPI"};return kt.length&&(qt={...qt,connector:{id:kt[0]}}),qt}toJSON(){let Dt=super.toJSON(),kt={...Dt,type:"KPI",options:{...Dt.options,type:"KPI",value:this.options.value,subtitle:JSON.stringify(this.options.subtitle),title:JSON.stringify(this.options.title),threshold:this.options.threshold,thresholdColors:this.options.thresholdColors,chartOptions:JSON.stringify(this.options.chartOptions),valueFormat:this.options.valueFormat}};return this.emit({type:"toJSON",json:Dt}),kt}getOptions(){return{...At(this.options,Ct.defaultOptions),type:"KPI"}}}return Ct.defaultOptions=Tt(ut.defaultOptions,pt),Ct.predefinedSyncConfig=dt,Ct.defaultChartOptions={chart:{type:"spline",styledMode:!0,zooming:{mouseWheel:{enabled:!1}}},title:{text:void 0},xAxis:{visible:!1},yAxis:{visible:!1,title:{text:null}},legend:{enabled:!1},credits:{enabled:!1},tooltip:{outside:!0},plotOptions:{series:{marker:{enabled:!1}}}},Ct}),nt(rt,"Dashboards/Components/NavigatorComponent/NavigatorComponentDefaults.js",[rt["Dashboards/Components/Component.js"]],function(lt){return{type:"Navigator",chartOptions:{chart:{animation:!1,height:200,styledMode:!0,type:"column",zooming:{mouseWheel:{enabled:!1}}},credits:{enabled:!1},legend:{enabled:!1},navigator:{enabled:!0,outlineWidth:0,series:{animation:!1,lineWidth:0,colorIndex:0},xAxis:{endOnTick:!0,gridZIndex:4,labels:{x:1,y:22},opposite:!0,showFirstLabel:!0,showLastLabel:!0,startOnTick:!0,tickPosition:"inside"},yAxis:{maxPadding:.5}},plotOptions:{series:{borderRadius:0,marker:{enabled:!1},states:{hover:{enabled:!1}}}},scrollbar:{enabled:!0},title:{text:""},tooltip:{enabled:!1},xAxis:{visible:!1,minRange:Number.MIN_VALUE},yAxis:{visible:!1}},editableOptions:(lt.defaultOptions.editableOptions||[]).concat()}}),nt(rt,"Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorSyncUtils.js",[],function(){var lt,ut;return(ut=lt||(lt={})).setRangeOptions=function(dt,pt,ht,mt){let xt=!1;for(let Mt=0,vt=dt.length;Mt<vt;++Mt)if(dt[Mt].column===pt){dt[Mt].maxValue=mt,dt[Mt].minValue=ht,xt=!0;break}xt||dt.push({column:pt,maxValue:mt,minValue:ht})},ut.unsetRangeOptions=function(dt,pt){for(let ht=0,mt=dt.length;ht<mt;++ht)if(dt[ht].column===pt)return dt.splice(ht,1)[0]},lt}),nt(rt,"Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorCrossfilterSync.js",[rt["Data/Modifiers/DataModifier.js"],rt["Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorSyncUtils.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{Range:pt}=lt.types,{addEvent:ht}=dt;return{defaultOptions:{affectNavigator:!1},syncPair:{emitter:function(){let mt;if(this.type!=="Navigator")return;let xt=this,Mt=this.sync.syncConfig.crossfilter,vt=Mt.group?":"+Mt.group:"",Ot=async At=>{var Rt,zt;if((zt=(Rt=xt.connectorHandlers)==null?void 0:Rt[0])!=null&&zt.connector){let Tt=xt.connectorHandlers[0].connector.table,Ct=xt.board.dataCursor,It=xt.getColumnAssignment()[0],[Dt,kt]=xt.getAxisExtremes(),qt=Tt.getModifier();qt instanceof pt?ut.setRangeOptions(qt.options.ranges,It,Dt,kt):qt=new pt({ranges:[{column:It,maxValue:kt,minValue:Dt}]}),await Tt.setModifier(qt),Ct.emitCursor(Tt,{type:"position",column:It,row:Tt.getRowIndexBy(It,Dt),state:"crossfilter"+vt},At),Ct.emitCursor(Tt,{type:"position",column:It,row:Tt.getRowIndexBy(It,kt),state:"crossfilter"+vt},At)}};return ht(xt.chart.xAxis[0],"afterSetExtremes",function(At){clearTimeout(mt),mt=setTimeout(Ot,50,this,At)})},handler:void 0}}}),nt(rt,"Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorExtremesSync.js",[rt["Data/Modifiers/DataModifier.js"],rt["Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorSyncUtils.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{Range:pt}=lt.types,{addEvent:ht,pick:mt}=dt;return{defaultOptions:{},syncPair:{emitter:function(){let xt;if(this.type!=="Navigator")return;let Mt=this,vt=this.sync.syncConfig.extremes,Ot=vt.group?":"+vt.group:"",At=Rt=>{var zt,Tt;if((Tt=(zt=Mt.connectorHandlers)==null?void 0:zt[0])!=null&&Tt.connector){let Ct=Mt.connectorHandlers[0].connector.table,It=Mt.board.dataCursor,Dt=Mt.getColumnAssignment()[0],[kt,qt]=Mt.getAxisExtremes();It.emitCursor(Ct,{type:"position",column:Dt,row:Ct.getRowIndexBy(Dt,kt),state:"xAxis.extremes.min"+Ot},Rt),It.emitCursor(Ct,{type:"position",column:Dt,row:Ct.getRowIndexBy(Dt,qt),state:"xAxis.extremes.max"+Ot},Rt)}};return ht(Mt.chart.xAxis[0],"afterSetExtremes",function(Rt){clearTimeout(xt),xt=setTimeout(At,50,this,Rt)})},handler:function(){if(this.type!=="Navigator")return;let xt=this,Mt=this.sync.syncConfig.extremes,vt=Mt.group?":"+Mt.group:"",Ot=xt.board.dataCursor,At=Rt=>{var qt,Nt;let zt=Rt.cursor;if(!((Nt=(qt=xt.connectorHandlers)==null?void 0:qt[0])!=null&&Nt.connector))return;let Tt=xt.connectorHandlers[0].connector.table,Ct=Tt.getColumnNames()[0],It=Tt.getRowCount(),Dt=0;zt.type==="range"?(It=zt.lastRow,Dt=zt.firstRow,zt.columns&&(Ct=mt(zt.columns[0],Ct))):zt.state==="xAxis.extremes.max"+vt?(Ct=mt(zt.column,Ct),It=mt(zt.row,It)):(Ct=mt(zt.column,Ct),Dt=mt(zt.row,Dt));let kt=Tt.getModifier();if(typeof Ct=="string"&&kt instanceof pt){let Yt=kt.options.ranges,Kt=Tt.getCell(Ct,Dt),Jt=Tt.getCell(Ct,It);Jt!=null&&Kt!=null&&(ut.unsetRangeOptions(Yt,Ct),Yt.unshift({column:Ct,maxValue:Jt,minValue:Kt}),Tt.setModifier(kt))}};return(()=>{var zt,Tt,Ct;let Rt=(Ct=(Tt=(zt=xt.connectorHandlers)==null?void 0:zt[0])==null?void 0:Tt.connector)==null?void 0:Ct.table;Rt&&(Ot.addListener(Rt.id,"xAxis.extremes"+vt,At),Ot.addListener(Rt.id,"xAxis.extremes.max"+vt,At),Ot.addListener(Rt.id,"xAxis.extremes.min"+vt,At))})(),()=>{var zt,Tt,Ct;let Rt=(Ct=(Tt=(zt=xt.connectorHandlers)==null?void 0:zt[0])==null?void 0:Tt.connector)==null?void 0:Ct.table;Rt&&(Ot.removeListener(Rt.id,"xAxis.extremes"+vt,At),Ot.removeListener(Rt.id,"xAxis.extremes.max"+vt,At),Ot.removeListener(Rt.id,"xAxis.extremes.min"+vt,At))}}}}}),nt(rt,"Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorSyncs.js",[rt["Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorCrossfilterSync.js"],rt["Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorExtremesSync.js"]],function(lt,ut){return{defaultSyncPairs:{crossfilter:lt.syncPair,extremes:ut.syncPair},defaultSyncOptions:{crossfilter:lt.defaultOptions,extremes:ut.defaultOptions}}}),nt(rt,"Dashboards/Components/NavigatorComponent/NavigatorComponent.js",[rt["Dashboards/Components/Component.js"],rt["Dashboards/Globals.js"],rt["Dashboards/Components/NavigatorComponent/NavigatorComponentDefaults.js"],rt["Dashboards/Components/NavigatorComponent/NavigatorSyncs/NavigatorSyncs.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){let{diffObjects:mt,isNumber:xt,isString:Mt,merge:vt,pick:Ot}=ht;class At extends lt{static fromJSON(zt,Tt){let Ct=new At(Tt,zt.options);return Ct.emit({type:"fromJSON",json:zt}),Ct}constructor(zt,Tt){var It;super(zt,Tt),this.type="Navigator",this.options=vt(At.defaultOptions,Tt);let Ct=At.charter.Chart||ut.win.Highcharts;this.chartContainer=ut.win.document.createElement("div"),this.chart=Ct.chart(this.chartContainer,this.options.chartOptions||{}),this.chartContainer.classList.add(ut.classNamePrefix+"navigator"),(It=this.sync.syncConfig.crossfilter)!=null&&It.enabled&&this.chart.update(vt({navigator:{xAxis:{labels:{format:"{value}"}}}},this.options.chartOptions||{}),!1)}adjustNavigator(){let zt=this.chart,Tt=Ot(zt.chartHeight,this.contentElement.clientHeight),Ct=this.contentElement.clientWidth,It={};if((zt.chartHeight!==Tt||zt.chartWidth!==Ct)&&(It.chart={height:Tt,width:Ct}),zt.navigator){let Dt=zt.navigator,kt=Dt.top-zt.plotTop+Dt.height;Dt.height!==kt&&(It.navigator={handles:{height:Math.round(Tt/4)},height:kt}),Object.keys(It).length&&zt.update(It,!1),Dt.series&&Dt.series[0]&&Dt.series[0].update({type:zt.series[0].type},!1)}else Object.keys(It).length&&zt.update(It,!1)}getColumnAssignment(){let zt,Tt=this.options.columnAssignment??this.options.columnAssignments??{};for(let It of Object.keys(Tt))if((zt=Tt[It])!==null)return[It,zt];let Ct=this.getFirstConnector();if(Ct){let It=Ct.table.getColumnNames();if(It.length)return[It[0],"y"]}return["","y"]}getOptions(){return{...mt(this.options,dt),type:"Navigator"}}getAxisExtremes(){let zt=this.chart.xAxis[0],Tt=zt.getExtremes(),Ct=xt(Tt.min)?Tt.min:Tt.dataMin,It=xt(Tt.max)?Tt.max:Tt.dataMax;return this.categories?[this.categories[Math.max(0,Math.ceil(Ct))],this.categories[Math.min(this.categories.length-1,Math.floor(It))]]:zt.hasNames?[zt.names[Math.ceil(Ct)],zt.names[Math.floor(It)]]:[Ct,It]}async load(){return await super.load(),this.contentElement.appendChild(this.chartContainer),this.parentElement.appendChild(this.element),this.adjustNavigator(),this.emit({type:"afterLoad"}),this}onTableChanged(){this.renderNavigator()}redrawNavigator(){let zt=this.resizeTimeouts;for(let Tt=0,Ct=zt.length;Tt<Ct;++Tt)clearTimeout(zt[Tt]);zt.length=0,zt.push(setTimeout(()=>{this.adjustNavigator(),this.chart.redraw()},33))}render(){return super.render(),this.renderNavigator(),this.sync.start(),this.emit({type:"afterRender"}),this}renderNavigator(){var Ct;let zt=this.chart,Tt=this.getFirstConnector();if(Tt){let It,Dt=Tt.table,kt=this.getColumnAssignment(),qt=Dt.getColumn(kt[0],!0)||[];It=(Ct=this.sync.syncConfig.crossfilter)!=null&&Ct.enabled?this.generateCrossfilterData():qt.slice(),zt.series[0]?zt.series[0].setData(It,!1):zt.addSeries({id:Dt.id,data:It},!1)}this.redrawNavigator()}generateCrossfilterData(){var Yt,Kt;let zt,Tt=this.sync.syncConfig.crossfilter,Ct=(Yt=this.getFirstConnector())==null?void 0:Yt.table,It=(Ct==null?void 0:Ct.getColumn(this.getColumnAssignment()[0],!0))||[];if(!Ct||It.length<1||!Tt)return[];let Dt=[],kt=[];for(let Jt=0,Qt=It.length;Jt<Qt;Jt++){let Bt=It[Jt];if(Bt!==null){if(xt(Bt)||(Bt=`${Bt}`),this.stringData===void 0)this.stringData=Mt(Bt);else if(this.stringData!==Mt(Bt))throw Error("Mixed data types in crossfilter navigator are not supported.");Dt.push(Bt),kt.indexOf(Bt)===-1&&kt.push(Bt)}}kt.sort((Jt,Qt)=>Ot(Jt,NaN)<Ot(Qt,NaN)?-1:Jt===Qt?0:1);let qt=(Kt=Ct.getModifier())==null?void 0:Kt.options;if(Tt.affectNavigator&&qt){let Jt=[],Qt=[],{ranges:Bt}=qt;for(let $t=0,jt=Bt.length;$t<jt;$t++)Bt[$t].column!==this.getColumnAssignment()[0]&&(Jt.push(Bt[$t]),Qt.push(Ct.getColumn(Bt[$t].column,!0)||[]));zt=[];let Ft=Jt.length;for(let $t=0,jt=Dt.length;$t<jt;$t++){let Wt=Dt[$t],Ut=!0;for(let Vt=0;Vt<Ft;Vt++){let Ht=Jt[Vt];if(!(Qt[Vt][$t]>=(Ht.minValue??-1/0)&&Qt[Vt][$t]<=(Ht.maxValue??1/0))){Ut=!1;break}}Ut&&zt.push(Wt)}}else zt=Dt;let Nt=[];if(this.stringData){this.categories=kt;for(let Jt=0,Qt=kt.length;Jt<Qt;Jt++)Nt.push([Jt,null])}else for(let Jt=0,Qt=kt.length;Jt<Qt;Jt++)Nt.push([kt[Jt],null]);for(let Jt=0,Qt=zt.length;Jt<Qt;Jt++){let Bt=kt.indexOf(zt[Jt]);Nt[Bt][1]=(Nt[Bt][1]||0)+1}return Nt}resize(zt,Tt){return super.resize(zt,Tt),this.redrawNavigator(),this}async update(zt,Tt=!0){var It;let Ct=this.chart;await super.update(zt,!1),zt.chartOptions&&Ct.update(vt((It=this.sync.syncConfig.crossfilter)!=null&&It.enabled?{navigator:{xAxis:{labels:{format:"{value}"}}}}:{},zt.chartOptions),!1),this.emit({type:"afterUpdate"}),Tt&&this.render()}getOptionsOnDrop(){return{}}}return At.defaultOptions=vt(lt.defaultOptions,dt),At.predefinedSyncConfig=pt,At}),nt(rt,"Dashboards/Plugins/HighchartsPlugin.js",[rt["Dashboards/Components/HighchartsComponent/HighchartsComponent.js"],rt["Dashboards/Components/KPIComponent/KPIComponent.js"],rt["Dashboards/Components/NavigatorComponent/NavigatorComponent.js"]],function(lt,ut,dt){return{custom:{connectHighcharts:function(pt){lt.charter=pt,ut.charter=pt,dt.charter=pt}},name:"Highcharts.DashboardsPlugin",onRegister:function(pt){let{ComponentRegistry:ht}=pt;ht.registerComponent("Highcharts",lt),ht.registerComponent("KPI",ut),ht.registerComponent("Navigator",dt)},onUnregister:function(pt){}}}),nt(rt,"Dashboards/PluginHandler.js",[rt["Dashboards/Board.js"],rt["Dashboards/Components/Sync/Sync.js"],rt["Dashboards/Components/ComponentRegistry.js"]],function(lt,ut,dt){var pt,ht;return(ht=pt||(pt={})).registry={},ht.revision=0,ht.addPlugin=function(mt,xt=mt.name){let{maxRevision:Mt,minRevision:vt,onRegister:Ot}=mt;if(ht.registry[xt]){if(xt!==mt.name)throw Error(`Plugin '${xt}' already registered.`);return}if(typeof vt=="number"&&vt>ht.revision||typeof Mt=="number"&&Mt<ht.revision)throw Error(`Plugin '${xt}' does not support revision ${ht.revision}.`);Ot({Board:lt,ComponentRegistry:dt,Sync:ut,revision:ht.revision}),ht.registry[xt]=mt},ht.removePlugin=function(mt){ht.registry[mt]&&(ht.registry[mt].onUnregister({ComponentRegistry:dt,Board:lt,Sync:ut,revision:ht.revision}),delete ht.registry[mt])},pt}),nt(rt,"masters/dashboards.src.js",[rt["Core/Renderer/HTML/AST.js"],rt["Data/Connectors/DataConnector.js"],rt["Dashboards/Board.js"],rt["Dashboards/Components/Component.js"],rt["Dashboards/Components/ComponentRegistry.js"],rt["Data/DataPool.js"],rt["Data/DataCursor.js"],rt["Data/Modifiers/DataModifier.js"],rt["Data/DataTable.js"],rt["Dashboards/Globals.js"],rt["Dashboards/Plugins/DataGridPlugin.js"],rt["Dashboards/Plugins/HighchartsPlugin.js"],rt["Dashboards/PluginHandler.js"],rt["Dashboards/Components/Sync/Sync.js"],rt["Dashboards/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct){return Ot.board=dt.board,Ot.error=Ct.error,Ot.merge=Ct.merge,Ot.uniqueKey=Ct.uniqueKey,Ot.AST=lt,Ot.Board=dt,Ot.Component=pt,Ot.ComponentRegistry=ht,Ot.DataConnector=ut,Ot.DataCursor=xt,Ot.DataModifier=Mt,Ot.DataPool=mt,Ot.DataTable=vt,Ot.DataGridPlugin=At,Ot.HighchartsPlugin=Rt,Ot.PluginHandler=zt,Ot.Sync=Tt,Ot.win.Dashboards||(Ot.win.Dashboards=Ot),Ot.win.DataGrid&&(At.custom.connectDataGrid(Ot.win.DataGrid),Ot.PluginHandler.addPlugin(At)),Ot.win.Highcharts&&(Rt.custom.connectHighcharts(Ot.win.Highcharts),Ot.PluginHandler.addPlugin(Rt)),Ot}),rt["masters/dashboards.src.js"]._modules=rt,rt["masters/dashboards.src.js"]})})(dashboards);var dashboardsExports=dashboards.exports;const Dashboards$1=getDefaultExportFromCjs$1(dashboardsExports);var datagrid={exports:{}};(function(et){(function(tt,rt){et.exports?(rt.default=rt,et.exports=tt&&tt.document?rt(tt):rt):(tt.DataGrid&&tt.DataGrid.error(16,!0),tt.DataGrid=rt(tt))})(typeof window<"u"?window:commonjsGlobal$1,function(tt){var rt={};function nt(lt,ut,dt,pt){lt.hasOwnProperty(ut)||(lt[ut]=pt.apply(null,dt),typeof CustomEvent=="function"&&tt.dispatchEvent(new CustomEvent("DataGridModuleLoaded",{detail:{path:ut,module:lt[ut]}})))}return nt(rt,"Core/Globals.js",[],function(){var lt,ut;return(ut=lt||(lt={})).SVG_NS="http://www.w3.org/2000/svg",ut.product="Highcharts",ut.version="2.2.0",ut.win=tt!==void 0?tt:{},ut.doc=ut.win.document,ut.svg=ut.doc&&ut.doc.createElementNS&&!!ut.doc.createElementNS(ut.SVG_NS,"svg").createSVGRect,ut.userAgent=ut.win.navigator&&ut.win.navigator.userAgent||"",ut.isChrome=ut.win.chrome,ut.isFirefox=ut.userAgent.indexOf("Firefox")!==-1,ut.isMS=/(edge|msie|trident)/i.test(ut.userAgent)&&!ut.win.opera,ut.isSafari=!ut.isChrome&&ut.userAgent.indexOf("Safari")!==-1,ut.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(ut.userAgent),ut.isWebKit=ut.userAgent.indexOf("AppleWebKit")!==-1,ut.deg2rad=2*Math.PI/360,ut.hasBidiBug=ut.isFirefox&&4>parseInt(ut.userAgent.split("Firefox/")[1],10),ut.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],ut.noop=function(){},ut.supportsPassiveEvents=function(){let dt=!1;if(!ut.isMS){let pt=Object.defineProperty({},"passive",{get:function(){dt=!0}});ut.win.addEventListener&&ut.win.removeEventListener&&(ut.win.addEventListener("testPassive",ut.noop,pt),ut.win.removeEventListener("testPassive",ut.noop,pt))}return dt}(),ut.charts=[],ut.composed=[],ut.dateFormats={},ut.seriesTypes={},ut.symbolSizes={},ut.chartCount=0,lt}),nt(rt,"Core/Utilities.js",[rt["Core/Globals.js"]],function(lt){let ut,{charts:dt,doc:pt,win:ht}=lt;function mt($t,jt,Wt,Ut){let Vt=jt?"Highcharts error":"Highcharts warning";$t===32&&($t=`${Vt}: Deprecated member`);let Ht=zt($t),Gt=Ht?`${Vt} #${$t}: www.highcharts.com/errors/${$t}/`:$t.toString();if(Ut!==void 0){let Zt="";Ht&&(Gt+="?"),Jt(Ut,function(Xt,er){Zt+=`
 - ${er}: ${Xt}`,Ht&&(Gt+=encodeURI(er)+"="+encodeURI(Xt))}),Gt+=Zt}Bt(lt,"displayError",{chart:Wt,code:$t,message:Gt,params:Ut},function(){if(jt)throw Error(Gt);ht.console&&mt.messages.indexOf(Gt)===-1&&console.warn(Gt)}),mt.messages.push(Gt)}function xt($t,jt){return parseInt($t,jt||10)}function Mt($t){return typeof $t=="string"}function vt($t){let jt=Object.prototype.toString.call($t);return jt==="[object Array]"||jt==="[object Array Iterator]"}function Ot($t,jt){return!!$t&&typeof $t=="object"&&(!jt||!vt($t))}function At($t){return Ot($t)&&typeof $t.nodeType=="number"}function Rt($t){let jt=$t&&$t.constructor;return!!(Ot($t,!0)&&!At($t)&&jt&&jt.name&&jt.name!=="Object")}function zt($t){return typeof $t=="number"&&!isNaN($t)&&$t<1/0&&$t>-1/0}function Tt($t){return $t!=null}function Ct($t,jt,Wt){let Ut,Vt=Mt(jt)&&!Tt(Wt),Ht=(Gt,Zt)=>{Tt(Gt)?$t.setAttribute(Zt,Gt):Vt?(Ut=$t.getAttribute(Zt))||Zt!=="class"||(Ut=$t.getAttribute(Zt+"Name")):$t.removeAttribute(Zt)};return Mt(jt)?Ht(Wt,jt):Jt(jt,Ht),Ut}function It($t){return vt($t)?$t:[$t]}function Dt($t,jt){let Wt;for(Wt in $t||($t={}),jt)$t[Wt]=jt[Wt];return $t}function kt(){let $t=arguments,jt=$t.length;for(let Wt=0;Wt<jt;Wt++){let Ut=$t[Wt];if(Ut!=null)return Ut}}function qt($t,jt){Dt($t.style,jt)}function Nt($t){return Math.pow(10,Math.floor(Math.log($t)/Math.LN10))}function Yt($t,jt){return $t>1e14?$t:parseFloat($t.toPrecision(jt||14))}(mt||(mt={})).messages=[],Math.easeInOutSine=function($t){return-.5*(Math.cos(Math.PI*$t)-1)};let Kt=Array.prototype.find?function($t,jt){return $t.find(jt)}:function($t,jt){let Wt,Ut=$t.length;for(Wt=0;Wt<Ut;Wt++)if(jt($t[Wt],Wt))return $t[Wt]};function Jt($t,jt,Wt){for(let Ut in $t)Object.hasOwnProperty.call($t,Ut)&&jt.call(Wt||$t[Ut],$t[Ut],Ut,$t)}function Qt($t,jt,Wt){function Ut(Gt,Zt){let Xt=$t.removeEventListener;Xt&&Xt.call($t,Gt,Zt,!1)}function Vt(Gt){let Zt,Xt;$t.nodeName&&(jt?(Zt={})[jt]=!0:Zt=Gt,Jt(Zt,function(er,nr){if(Gt[nr])for(Xt=Gt[nr].length;Xt--;)Ut(nr,Gt[nr][Xt].fn)}))}let Ht=typeof $t=="function"&&$t.prototype||$t;if(Object.hasOwnProperty.call(Ht,"hcEvents")){let Gt=Ht.hcEvents;if(jt){let Zt=Gt[jt]||[];Wt?(Gt[jt]=Zt.filter(function(Xt){return Wt!==Xt.fn}),Ut(jt,Wt)):(Vt(Gt),Gt[jt]=[])}else Vt(Gt),delete Ht.hcEvents}}function Bt($t,jt,Wt,Ut){if(Wt=Wt||{},pt.createEvent&&($t.dispatchEvent||$t.fireEvent&&$t!==lt)){let Vt=pt.createEvent("Events");Vt.initEvent(jt,!0,!0),Wt=Dt(Vt,Wt),$t.dispatchEvent?$t.dispatchEvent(Wt):$t.fireEvent(jt,Wt)}else if($t.hcEvents){Wt.target||Dt(Wt,{preventDefault:function(){Wt.defaultPrevented=!0},target:$t,type:jt});let Vt=[],Ht=$t,Gt=!1;for(;Ht.hcEvents;)Object.hasOwnProperty.call(Ht,"hcEvents")&&Ht.hcEvents[jt]&&(Vt.length&&(Gt=!0),Vt.unshift.apply(Vt,Ht.hcEvents[jt])),Ht=Object.getPrototypeOf(Ht);Gt&&Vt.sort((Zt,Xt)=>Zt.order-Xt.order),Vt.forEach(Zt=>{Zt.fn.call($t,Wt)===!1&&Wt.preventDefault()})}Ut&&!Wt.defaultPrevented&&Ut.call($t,Wt)}Jt({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function($t,jt){lt[jt]=function(Wt){return mt(32,!1,void 0,{[`Highcharts.${jt}`]:`use Array.${$t}`}),Array.prototype[$t].apply(Wt,[].slice.call(arguments,1))}});let Ft=function(){let $t=Math.random().toString(36).substring(2,9)+"-",jt=0;return function(){return"highcharts-"+(ut?"":$t)+jt++}}();return ht.jQuery&&(ht.jQuery.fn.highcharts=function(){let $t=[].slice.call(arguments);if(this[0])return $t[0]?(new lt[Mt($t[0])?$t.shift():"Chart"](this[0],$t[0],$t[1]),this):dt[Ct(this[0],"data-highcharts-chart")]}),{addEvent:function($t,jt,Wt,Ut={}){let Vt=typeof $t=="function"&&$t.prototype||$t;Object.hasOwnProperty.call(Vt,"hcEvents")||(Vt.hcEvents={});let Ht=Vt.hcEvents;lt.Point&&$t instanceof lt.Point&&$t.series&&$t.series.chart&&($t.series.chart.runTrackerClick=!0);let Gt=$t.addEventListener;Gt&&Gt.call($t,jt,Wt,!!lt.supportsPassiveEvents&&{passive:Ut.passive===void 0?jt.indexOf("touch")!==-1:Ut.passive,capture:!1}),Ht[jt]||(Ht[jt]=[]);let Zt={fn:Wt,order:typeof Ut.order=="number"?Ut.order:1/0};return Ht[jt].push(Zt),Ht[jt].sort((Xt,er)=>Xt.order-er.order),function(){Qt($t,jt,Wt)}},arrayMax:function($t){let jt=$t.length,Wt=$t[0];for(;jt--;)$t[jt]>Wt&&(Wt=$t[jt]);return Wt},arrayMin:function($t){let jt=$t.length,Wt=$t[0];for(;jt--;)$t[jt]<Wt&&(Wt=$t[jt]);return Wt},attr:Ct,clamp:function($t,jt,Wt){return $t>jt?$t<Wt?$t:Wt:jt},clearTimeout:function($t){Tt($t)&&clearTimeout($t)},correctFloat:Yt,createElement:function($t,jt,Wt,Ut,Vt){let Ht=pt.createElement($t);return jt&&Dt(Ht,jt),Vt&&qt(Ht,{padding:"0",border:"none",margin:"0"}),Wt&&qt(Ht,Wt),Ut&&Ut.appendChild(Ht),Ht},crisp:($t,jt=0,Wt)=>{let Ut=jt%2/2,Vt=Wt?-1:1;return(Math.round($t*Vt-Ut)+Ut)*Vt},css:qt,defined:Tt,destroyObjectProperties:function($t,jt,Wt){Jt($t,function(Ut,Vt){Ut!==jt&&(Ut!=null&&Ut.destroy)&&Ut.destroy(),(Ut!=null&&Ut.destroy||!Wt)&&delete $t[Vt]})},diffObjects:function($t,jt,Wt,Ut){let Vt={};return function Ht(Gt,Zt,Xt,er){let nr=Wt?Zt:Gt;Jt(Gt,function(or,rr){if(!er&&Ut&&Ut.indexOf(rr)>-1&&Zt[rr]){or=It(or),Xt[rr]=[];for(let cr=0;cr<Math.max(or.length,Zt[rr].length);cr++)Zt[rr][cr]&&(or[cr]===void 0?Xt[rr][cr]=Zt[rr][cr]:(Xt[rr][cr]={},Ht(or[cr],Zt[rr][cr],Xt[rr][cr],er+1)))}else Ot(or,!0)&&!or.nodeType?(Xt[rr]=vt(or)?[]:{},Ht(or,Zt[rr]||{},Xt[rr],er+1),Object.keys(Xt[rr]).length!==0||rr==="colorAxis"&&er===0||delete Xt[rr]):(Gt[rr]!==Zt[rr]||rr in Gt&&!(rr in Zt))&&rr!=="__proto__"&&rr!=="constructor"&&(Xt[rr]=nr[rr])})}($t,jt,Vt,0),Vt},discardElement:function($t){$t&&$t.parentElement&&$t.parentElement.removeChild($t)},erase:function($t,jt){let Wt=$t.length;for(;Wt--;)if($t[Wt]===jt){$t.splice(Wt,1);break}},error:mt,extend:Dt,extendClass:function($t,jt){let Wt=function(){};return Wt.prototype=new $t,Dt(Wt.prototype,jt),Wt},find:Kt,fireEvent:Bt,getClosestDistance:function($t,jt){let Wt,Ut,Vt,Ht=!jt;return $t.forEach(Gt=>{if(Gt.length>1)for(Vt=Gt.length-1;Vt>0;Vt--)(Ut=Gt[Vt]-Gt[Vt-1])<0&&!Ht?(jt==null||jt(),jt=void 0):Ut&&(Wt===void 0||Ut<Wt)&&(Wt=Ut)}),Wt},getMagnitude:Nt,getNestedProperty:function($t,jt){let Wt=$t.split(".");for(;Wt.length&&Tt(jt);){let Ut=Wt.shift();if(Ut===void 0||Ut==="__proto__")return;if(Ut==="this"){let Ht;return Ot(jt)&&(Ht=jt["@this"]),Ht??jt}let Vt=jt[Ut];if(!Tt(Vt)||typeof Vt=="function"||typeof Vt.nodeType=="number"||Vt===ht)return;jt=Vt}return jt},getStyle:function $t(jt,Wt,Ut){let Vt;if(Wt==="width"){let Gt=Math.min(jt.offsetWidth,jt.scrollWidth),Zt=jt.getBoundingClientRect&&jt.getBoundingClientRect().width;return Zt<Gt&&Zt>=Gt-1&&(Gt=Math.floor(Zt)),Math.max(0,Gt-($t(jt,"padding-left",!0)||0)-($t(jt,"padding-right",!0)||0))}if(Wt==="height")return Math.max(0,Math.min(jt.offsetHeight,jt.scrollHeight)-($t(jt,"padding-top",!0)||0)-($t(jt,"padding-bottom",!0)||0));let Ht=ht.getComputedStyle(jt,void 0);return Ht&&(Vt=Ht.getPropertyValue(Wt),kt(Ut,Wt!=="opacity")&&(Vt=xt(Vt))),Vt},inArray:function($t,jt,Wt){return mt(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),jt.indexOf($t,Wt)},insertItem:function($t,jt){let Wt,Ut=$t.options.index,Vt=jt.length;for(Wt=$t.options.isInternal?Vt:0;Wt<Vt+1;Wt++)if(!jt[Wt]||zt(Ut)&&Ut<kt(jt[Wt].options.index,jt[Wt]._i)||jt[Wt].options.isInternal){jt.splice(Wt,0,$t);break}return Wt},isArray:vt,isClass:Rt,isDOMElement:At,isFunction:function($t){return typeof $t=="function"},isNumber:zt,isObject:Ot,isString:Mt,keys:function($t){return mt(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys($t)},merge:function(){let $t,jt=arguments,Wt={},Ut=function(Ht,Gt){return typeof Ht!="object"&&(Ht={}),Jt(Gt,function(Zt,Xt){Xt!=="__proto__"&&Xt!=="constructor"&&(!Ot(Zt,!0)||Rt(Zt)||At(Zt)?Ht[Xt]=Gt[Xt]:Ht[Xt]=Ut(Ht[Xt]||{},Zt))}),Ht};jt[0]===!0&&(Wt=jt[1],jt=Array.prototype.slice.call(jt,2));let Vt=jt.length;for($t=0;$t<Vt;$t++)Wt=Ut(Wt,jt[$t]);return Wt},normalizeTickInterval:function($t,jt,Wt,Ut,Vt){let Ht,Gt=$t;Wt=kt(Wt,Nt($t));let Zt=$t/Wt;for(!jt&&(jt=Vt?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],Ut===!1&&(Wt===1?jt=jt.filter(function(Xt){return Xt%1==0}):Wt<=.1&&(jt=[1/Wt]))),Ht=0;Ht<jt.length&&(Gt=jt[Ht],(!Vt||!(Gt*Wt>=$t))&&(Vt||!(Zt<=(jt[Ht]+(jt[Ht+1]||jt[Ht]))/2)));Ht++);return Yt(Gt*Wt,-Math.round(Math.log(.001)/Math.LN10))},objectEach:Jt,offset:function($t){let jt=pt.documentElement,Wt=$t.parentElement||$t.parentNode?$t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:Wt.top+(ht.pageYOffset||jt.scrollTop)-(jt.clientTop||0),left:Wt.left+(ht.pageXOffset||jt.scrollLeft)-(jt.clientLeft||0),width:Wt.width,height:Wt.height}},pad:function($t,jt,Wt){return Array((jt||2)+1-String($t).replace("-","").length).join(Wt||"0")+$t},pick:kt,pInt:xt,pushUnique:function($t,jt){return 0>$t.indexOf(jt)&&!!$t.push(jt)},relativeLength:function($t,jt,Wt){return/%$/.test($t)?jt*parseFloat($t)/100+(Wt||0):parseFloat($t)},removeEvent:Qt,replaceNested:function($t,...jt){let Wt,Ut;do for(Ut of(Wt=$t,jt))$t=$t.replace(Ut[0],Ut[1]);while($t!==Wt);return $t},splat:It,stableSort:function($t,jt){let Wt,Ut,Vt=$t.length;for(Ut=0;Ut<Vt;Ut++)$t[Ut].safeI=Ut;for($t.sort(function(Ht,Gt){return(Wt=jt(Ht,Gt))===0?Ht.safeI-Gt.safeI:Wt}),Ut=0;Ut<Vt;Ut++)delete $t[Ut].safeI},syncTimeout:function($t,jt,Wt){return jt>0?setTimeout($t,jt,Wt):($t.call(0,Wt),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:Ft,useSerialIds:function($t){return ut=kt($t,ut)},wrap:function($t,jt,Wt){let Ut=$t[jt];$t[jt]=function(){let Vt=arguments,Ht=this;return Wt.apply(this,[function(){return Ut.apply(Ht,arguments.length?arguments:Vt)}].concat([].slice.call(arguments)))}}}}),nt(rt,"Core/Renderer/HTML/AST.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{SVG_NS:dt,win:pt}=lt,{attr:ht,createElement:mt,css:xt,error:Mt,isFunction:vt,isString:Ot,objectEach:At,splat:Rt}=ut,{trustedTypes:zt}=pt,Tt=zt&&vt(zt.createPolicy)&&zt.createPolicy("highcharts",{createHTML:kt=>kt}),Ct=Tt?Tt.createHTML(""):"",It=function(){try{return!!new DOMParser().parseFromString(Ct,"text/html")}catch{return!1}}();class Dt{static filterUserAttributes(qt){return At(qt,(Nt,Yt)=>{let Kt=!0;Dt.allowedAttributes.indexOf(Yt)===-1&&(Kt=!1),["background","dynsrc","href","lowsrc","src"].indexOf(Yt)!==-1&&(Kt=Ot(Nt)&&Dt.allowedReferences.some(Jt=>Nt.indexOf(Jt)===0)),Kt||(Mt(33,!1,void 0,{"Invalid attribute in config":`${Yt}`}),delete qt[Yt]),Ot(Nt)&&qt[Yt]&&(qt[Yt]=Nt.replace(/</g,"&lt;"))}),qt}static parseStyle(qt){return qt.split(";").reduce((Nt,Yt)=>{let Kt=Yt.split(":").map(Qt=>Qt.trim()),Jt=Kt.shift();return Jt&&Kt.length&&(Nt[Jt.replace(/-([a-z])/g,Qt=>Qt[1].toUpperCase())]=Kt.join(":")),Nt},{})}static setElementHTML(qt,Nt){qt.innerHTML=Dt.emptyHTML,Nt&&new Dt(Nt).addToDOM(qt)}constructor(qt){this.nodes=typeof qt=="string"?this.parseMarkup(qt):qt}addToDOM(qt){return function Nt(Yt,Kt){let Jt;return Rt(Yt).forEach(function(Qt){let Bt,Ft=Qt.tagName,$t=Qt.textContent?lt.doc.createTextNode(Qt.textContent):void 0,jt=Dt.bypassHTMLFiltering;if(Ft)if(Ft==="#text")Bt=$t;else if(Dt.allowedTags.indexOf(Ft)!==-1||jt){let Wt=Ft==="svg"?dt:Kt.namespaceURI||dt,Ut=lt.doc.createElementNS(Wt,Ft),Vt=Qt.attributes||{};At(Qt,function(Ht,Gt){Gt!=="tagName"&&Gt!=="attributes"&&Gt!=="children"&&Gt!=="style"&&Gt!=="textContent"&&(Vt[Gt]=Ht)}),ht(Ut,jt?Vt:Dt.filterUserAttributes(Vt)),Qt.style&&xt(Ut,Qt.style),$t&&Ut.appendChild($t),Nt(Qt.children||[],Ut),Bt=Ut}else Mt(33,!1,void 0,{"Invalid tagName in config":Ft});Bt&&Kt.appendChild(Bt),Jt=Bt}),Jt}(this.nodes,qt)}parseMarkup(qt){let Nt,Yt=[];if(qt=qt.trim().replace(/ style=(["'])/g," data-style=$1"),It)Nt=new DOMParser().parseFromString(Tt?Tt.createHTML(qt):qt,"text/html");else{let Jt=mt("div");Jt.innerHTML=qt,Nt={body:Jt}}let Kt=(Jt,Qt)=>{let Bt=Jt.nodeName.toLowerCase(),Ft={tagName:Bt};Bt==="#text"&&(Ft.textContent=Jt.textContent||"");let $t=Jt.attributes;if($t){let jt={};[].forEach.call($t,Wt=>{Wt.name==="data-style"?Ft.style=Dt.parseStyle(Wt.value):jt[Wt.name]=Wt.value}),Ft.attributes=jt}if(Jt.childNodes.length){let jt=[];[].forEach.call(Jt.childNodes,Wt=>{Kt(Wt,jt)}),jt.length&&(Ft.children=jt)}Qt.push(Ft)};return[].forEach.call(Nt.body.childNodes,Jt=>Kt(Jt,Yt)),Yt}}return Dt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],Dt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],Dt.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],Dt.emptyHTML=Ct,Dt.bypassHTMLFiltering=!1,Dt}),nt(rt,"Data/Modifiers/DataModifier.js",[rt["Core/Utilities.js"]],function(lt){var ut;let{addEvent:dt,fireEvent:pt,merge:ht}=lt;class mt{benchmark(Mt,vt){let Ot=[],At=this,Rt=()=>{At.modifyTable(Mt),At.emit({type:"afterBenchmarkIteration"})},{iterations:zt}=ht({iterations:1},vt);At.on("afterBenchmarkIteration",()=>{if(Ot.length===zt){At.emit({type:"afterBenchmark",results:Ot});return}Rt()});let Tt={startTime:0,endTime:0};return At.on("modify",()=>{Tt.startTime=tt.performance.now()}),At.on("afterModify",()=>{Tt.endTime=tt.performance.now(),Ot.push(Tt.endTime-Tt.startTime)}),Rt(),Ot}emit(Mt){pt(this,Mt.type,Mt)}modify(Mt,vt){let Ot=this;return new Promise((At,Rt)=>{Mt.modified===Mt&&(Mt.modified=Mt.clone(!1,vt));try{At(Ot.modifyTable(Mt,vt))}catch(zt){Ot.emit({type:"error",detail:vt,table:Mt}),Rt(zt)}})}modifyCell(Mt,vt,Ot,At,Rt){return this.modifyTable(Mt)}modifyColumns(Mt,vt,Ot,At){return this.modifyTable(Mt)}modifyRows(Mt,vt,Ot,At){return this.modifyTable(Mt)}on(Mt,vt){return dt(this,Mt,vt)}}return(ut=mt||(mt={})).types={},ut.registerType=function(xt,Mt){return!!xt&&!ut.types[xt]&&!!(ut.types[xt]=Mt)},mt}),nt(rt,"Data/DataTable.js",[rt["Core/Utilities.js"]],function(lt){let{addEvent:ut,fireEvent:dt,uniqueKey:pt}=lt;class ht{static isNull(xt){if(xt===ht.NULL)return!0;if(xt instanceof Array){if(!xt.length)return!1;for(let Mt=0,vt=xt.length;Mt<vt;++Mt)if(xt[Mt]!==null)return!1}else{let Mt=Object.keys(xt);if(!Mt.length)return!1;for(let vt=0,Ot=Mt.length;vt<Ot;++vt)if(xt[Mt[vt]]!==null)return!1}return!0}constructor(xt={}){this.aliases=xt.aliases?JSON.parse(JSON.stringify(xt.aliases)):{},this.autoId=!xt.id,this.columns={},this.id=xt.id||pt(),this.modified=this,this.rowCount=0,this.versionTag=pt(),this.rowKeysId=xt.rowKeysId;let Mt=xt.columns||{},vt=Object.keys(Mt),Ot=this.columns,At=0;for(let Ct=0,It=vt.length,Dt,kt;Ct<It;++Ct)Dt=Mt[kt=vt[Ct]].slice(),Ot[kt]=Dt,At=Math.max(At,Dt.length);for(let Ct=0,It=vt.length;Ct<It;++Ct)Ot[vt[Ct]].length=At;this.rowCount=At;let Rt=xt.aliases||{},zt=Object.keys(Rt),Tt=this.aliases;for(let Ct=0,It=zt.length,Dt;Ct<It;++Ct)Tt[Dt=zt[Ct]]=Rt[Dt];this.setRowKeysColumn(At)}clone(xt,Mt){let vt={};this.emit({type:"cloneTable",detail:Mt}),xt||(vt.aliases=this.aliases,vt.columns=this.columns),this.autoId||(vt.id=this.id),this.rowKeysId&&(vt.rowKeysId=this.rowKeysId);let Ot=new ht(vt);return xt||(Ot.versionTag=this.versionTag),this.emit({type:"afterCloneTable",detail:Mt,tableClone:Ot}),Ot}deleteColumnAlias(xt){let Mt=this.aliases[xt],vt=this.modifier;return Mt&&(delete this.aliases[xt],vt&&vt.modifyColumns(this,{[Mt]:Array(this.rowCount)},0)),Mt}deleteColumns(xt,Mt){let vt=this.columns,Ot={},At={},Rt=this.modifier,zt=this.rowCount;if((xt=xt||Object.keys(vt)).length){this.emit({type:"deleteColumns",columnNames:xt,detail:Mt});for(let Ct=0,It=xt.length,Dt,kt;Ct<It;++Ct)(Dt=vt[kt=xt[Ct]])&&(Ot[kt]=Dt,At[kt]=Array(zt)),delete vt[kt];let Tt=Object.keys(vt).length;return this.rowKeysId&&Tt===1&&(delete vt[this.rowKeysId],Tt=0),Tt||(this.rowCount=0),Rt&&Rt.modifyColumns(this,At,0,Mt),this.emit({type:"afterDeleteColumns",columns:Ot,columnNames:xt,detail:Mt}),Ot}}deleteRows(xt,Mt=1,vt){let Ot=[],At=[],Rt=this.modifier;if(this.emit({type:"deleteRows",detail:vt,rowCount:Mt,rowIndex:xt||0}),xt===void 0&&(xt=0,Mt=this.rowCount),Mt>0&&xt<this.rowCount){let zt=this.columns,Tt=Object.keys(zt);for(let Ct=0,It=Tt.length,Dt,kt;Ct<It;++Ct){kt=(Dt=zt[Tt[Ct]]).splice(xt,Mt),Ct||(this.rowCount=Dt.length);for(let qt=0,Nt=kt.length;qt<Nt;++qt)Ot[qt]=Ot[qt]||[],Ot[qt][Ct]=kt[qt];At.push(Array(It))}}return Rt&&Rt.modifyRows(this,At,xt||0,vt),this.emit({type:"afterDeleteRows",detail:vt,rowCount:Mt,rowIndex:xt||0,rows:Ot}),Ot}emit(xt){switch(xt.type){case"afterDeleteColumns":case"afterDeleteRows":case"afterSetCell":case"afterSetColumns":case"afterSetRows":this.versionTag=pt()}dt(this,xt.type,xt)}getCell(xt,Mt){xt=this.aliases[xt]||xt;let vt=this.columns[xt];if(vt)return vt[Mt]}getCellAsBoolean(xt,Mt){xt=this.aliases[xt]||xt;let vt=this.columns[xt];return!!(vt&&vt[Mt])}getCellAsNumber(xt,Mt,vt){xt=this.aliases[xt]||xt;let Ot=this.columns[xt],At=Ot&&Ot[Mt];switch(typeof At){case"boolean":return At?1:0;case"number":return isNaN(At)&&!vt?null:At}return isNaN(At=parseFloat(`${At??""}`))&&!vt?null:At}getCellAsString(xt,Mt){xt=this.aliases[xt]||xt;let vt=this.columns[xt];return`${vt&&vt[Mt]}`}getColumn(xt,Mt){return this.getColumns([xt],Mt)[xt]}getColumnAsNumbers(xt,Mt){let vt=this.columns[xt=this.aliases[xt]||xt],Ot=[];if(vt){let At=vt.length;if(Mt)for(let Rt=0;Rt<At;++Rt)Ot.push(this.getCellAsNumber(xt,Rt,!0));else{for(let Rt=0,zt;Rt<At;++Rt){if(typeof(zt=vt[Rt])=="number")return vt.slice();if(zt!=null)break}for(let Rt=0;Rt<At;++Rt)Ot.push(this.getCellAsNumber(xt,Rt))}}return Ot}getColumnNames(){let xt=Object.keys(this.columns);return this.removeRowKeysColumn(xt),xt}getColumns(xt,Mt){let vt=this.aliases,Ot=this.columns,At={};xt=xt||Object.keys(Ot),this.removeRowKeysColumn(xt);for(let Rt=0,zt=xt.length,Tt,Ct;Rt<zt;++Rt)(Tt=Ot[vt[Ct=xt[Rt]]||Ct])&&(At[Ct]=Mt?Tt:Tt.slice());return At}getModifier(){return this.modifier}getRow(xt,Mt){return this.getRows(xt,1,Mt)[0]}getRowCount(){return this.rowCount}getRowIndexBy(xt,Mt,vt){xt=this.aliases[xt]||xt;let Ot=this.columns[xt];if(Ot){let At=Ot.indexOf(Mt,vt);if(At!==-1)return At}}getRowObject(xt,Mt){return this.getRowObjects(xt,1,Mt)[0]}getRowObjects(xt=0,Mt=this.rowCount-xt,vt){let Ot=this.aliases,At=this.columns,Rt=Array(Mt);vt=vt||Object.keys(At),this.removeRowKeysColumn(vt);for(let zt=xt,Tt=0,Ct=Math.min(this.rowCount,xt+Mt),It,Dt;zt<Ct;++zt,++Tt)for(let kt of(Dt=Rt[Tt]={},vt))It=At[Ot[kt]||kt],Dt[kt]=It?It[zt]:void 0;return Rt}getRows(xt=0,Mt=this.rowCount-xt,vt){let Ot=this.aliases,At=this.columns,Rt=Array(Mt);vt=vt||Object.keys(At);for(let zt=xt,Tt=0,Ct=Math.min(this.rowCount,xt+Mt),It,Dt;zt<Ct;++zt,++Tt)for(let kt of(Dt=Rt[Tt]=[],vt))It=At[Ot[kt]||kt],Dt.push(It?It[zt]:void 0);return Rt}getVersionTag(){return this.versionTag}hasColumns(xt){let Mt=this.aliases,vt=this.columns;for(let Ot=0,At=xt.length,Rt;Ot<At;++Ot)if(!vt[Rt=xt[Ot]]&&!Mt[Rt])return!1;return!0}hasRowWith(xt,Mt){xt=this.aliases[xt]||xt;let vt=this.columns[xt];return!!vt&&vt.indexOf(Mt)!==-1}on(xt,Mt){return ut(this,xt,Mt)}renameColumn(xt,Mt){let vt=this.columns;if(vt[xt]){if(xt!==Mt){let Ot=this.aliases;Ot[Mt]&&delete Ot[Mt],vt[Mt]=vt[xt],delete vt[xt],this.rowKeysId&&this.moveRowKeysColumnToLast(vt,this.rowKeysId)}return!0}return!1}setCell(xt,Mt,vt,Ot){let At=this.columns,Rt=this.modifier,zt=At[xt=this.aliases[xt]||xt];zt&&zt[Mt]===vt||(this.emit({type:"setCell",cellValue:vt,columnName:xt,detail:Ot,rowIndex:Mt}),zt||(zt=At[xt]=Array(this.rowCount)),Mt>=this.rowCount&&(this.rowCount=Mt+1),zt[Mt]=vt,Rt&&Rt.modifyCell(this,xt,Mt,vt),this.emit({type:"afterSetCell",cellValue:vt,columnName:xt,detail:Ot,rowIndex:Mt}))}setColumn(xt,Mt=[],vt=0,Ot){this.setColumns({[xt]:Mt},vt,Ot)}setColumns(xt,Mt,vt){let Ot=this.columns,At=this.modifier,Rt=Mt===void 0,zt=Object.keys(xt);this.emit({type:"setColumns",columns:xt,columnNames:zt,detail:vt,rowIndex:Mt});for(let Ct=0,It=zt.length,Dt,kt;Ct<It;++Ct)if(Dt=xt[kt=zt[Ct]],kt=this.aliases[kt]||kt,Rt)Ot[kt]=Dt.slice(),this.rowCount=Dt.length;else{let qt=Ot[kt]?Ot[kt]:Ot[kt]=Array(this.rowCount);for(let Nt=Mt||0,Yt=Dt.length;Nt<Yt;++Nt)qt[Nt]=Dt[Nt];this.rowCount=Math.max(this.rowCount,qt.length)}let Tt=Object.keys(Ot);for(let Ct=0,It=Tt.length;Ct<It;++Ct)Ot[Tt[Ct]].length=this.rowCount;At&&At.modifyColumns(this,xt,Mt||0),this.rowKeysId&&this.moveRowKeysColumnToLast(Ot,this.rowKeysId),this.emit({type:"afterSetColumns",columns:xt,columnNames:zt,detail:vt,rowIndex:Mt})}setRowKeysColumn(xt){let Mt=this.rowKeysId;if(!Mt)return;this.columns[Mt]=[];let vt=this.columns[Mt];for(let Ot=0;Ot<xt;Ot++)vt.push(Mt+"_"+Ot)}getRowKeysColumn(){let xt=this.rowKeysId;if(xt)return this.columns[xt]}getRowIndexOriginal(xt){let Mt=this.rowKeysId;return Mt?(""+this.columns[Mt][xt]).split("_")[1]:String(xt)}setModifier(xt,Mt){let vt=this;return vt.emit({type:"setModifier",detail:Mt,modifier:xt,modified:vt.modified}),vt.modified=vt,vt.modifier=xt,(xt?xt.modify(vt):Promise.resolve(vt)).then(Ot=>(Ot.emit({type:"afterSetModifier",detail:Mt,modifier:xt,modified:Ot.modified}),Ot)).catch(Ot=>{throw vt.emit({type:"setModifierError",error:Ot,modifier:xt,modified:vt.modified}),Ot})}setRow(xt,Mt,vt){this.setRows([xt],Mt,vt)}setRows(xt,Mt=this.rowCount,vt){let Ot=this.aliases,At=this.columns,Rt=Object.keys(At),zt=this.modifier,Tt=xt.length;this.emit({type:"setRows",detail:vt,rowCount:Tt,rowIndex:Mt,rows:xt});for(let It=0,Dt=Mt,kt;It<Tt;++It,++Dt)if((kt=xt[It])===ht.NULL)for(let qt=0,Nt=Rt.length;qt<Nt;++qt)At[Rt[qt]][Dt]=null;else if(kt instanceof Array)for(let qt=0,Nt=Rt.length;qt<Nt;++qt)At[Rt[qt]][Dt]=kt[qt];else{let qt=Object.keys(kt);for(let Nt=0,Yt=qt.length,Kt;Nt<Yt;++Nt)At[Kt=Ot[Kt=qt[Nt]]||Kt]||(At[Kt]=Array(Dt+1)),At[Kt][Dt]=kt[Kt]}let Ct=Mt+Tt;if(Ct>this.rowCount){this.rowCount=Ct;for(let It=0,Dt=Rt.length;It<Dt;++It)At[Rt[It]].length=Ct}this.rowKeysId&&!Rt.includes(this.rowKeysId)&&this.setRowKeysColumn(Tt),zt&&zt.modifyRows(this,xt,Mt),this.emit({type:"afterSetRows",detail:vt,rowCount:Tt,rowIndex:Mt,rows:xt})}moveRowKeysColumnToLast(xt,Mt){let vt=xt[Mt];delete xt[Mt],xt[Mt]=vt}removeRowKeysColumn(xt){this.rowKeysId&&xt.indexOf(this.rowKeysId)!==-1&&xt.pop()}}return ht.NULL={},ht.version="1.0.0",ht}),nt(rt,"Data/Connectors/DataConnector.js",[rt["Data/Modifiers/DataModifier.js"],rt["Data/DataTable.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){var pt;let{addEvent:ht,fireEvent:mt,merge:xt,pick:Mt}=dt;class vt{constructor(At={}){this.table=new ut(At.dataTable),this.metadata=At.metadata||{columns:{}}}get polling(){return!!this.polling}describeColumn(At,Rt){let zt=this.metadata.columns;zt[At]=xt(zt[At]||{},Rt)}describeColumns(At){let Rt,zt=Object.keys(At);for(;typeof(Rt=zt.pop())=="string";)this.describeColumn(Rt,At[Rt])}emit(At){mt(this,At.type,At)}getColumnOrder(At){let Rt=this.metadata.columns,zt=Object.keys(Rt||{});if(zt.length)return zt.sort((Tt,Ct)=>Mt(Rt[Tt].index,0)-Mt(Rt[Ct].index,0))}getSortedColumns(At){return this.table.getColumns(this.getColumnOrder(At))}load(){return mt(this,"afterLoad",{table:this.table}),Promise.resolve(this)}on(At,Rt){return ht(this,At,Rt)}save(){return mt(this,"saveError",{table:this.table}),Promise.reject(Error("Not implemented"))}setColumnOrder(At){for(let Rt=0,zt=At.length;Rt<zt;++Rt)this.describeColumn(At[Rt],{index:Rt})}setModifierOptions(At){let Rt=At&&lt.types[At.type];return this.table.setModifier(Rt?new Rt(At):void 0).then(()=>this)}startPolling(At=1e3){let Rt=this;tt.clearTimeout(Rt._polling),Rt._polling=tt.setTimeout(()=>Rt.load().catch(zt=>Rt.emit({type:"loadError",error:zt,table:Rt.table})).then(()=>{Rt._polling&&Rt.startPolling(At)}),At)}stopPolling(){tt.clearTimeout(this._polling),delete this._polling}whatIs(At){return this.metadata.columns[At]}}return(pt=vt||(vt={})).types={},pt.registerType=function(Ot,At){return!!Ot&&!pt.types[Ot]&&!!(pt.types[Ot]=At)},vt}),nt(rt,"Data/DataCursor.js",[],function(){class lt{constructor(dt={}){this.emittingRegister=[],this.listenerMap={},this.stateMap=dt}addListener(dt,pt,ht){let mt=this.listenerMap[dt]=this.listenerMap[dt]||{};return(mt[pt]=mt[pt]||[]).push(ht),this}buildEmittingTag(dt){return(dt.cursor.type==="position"?[dt.table.id,dt.cursor.column,dt.cursor.row,dt.cursor.state,dt.cursor.type]:[dt.table.id,dt.cursor.columns,dt.cursor.firstRow,dt.cursor.lastRow,dt.cursor.state,dt.cursor.type]).join("\0")}emitCursor(dt,pt,ht,mt){let xt=dt.id,Mt=pt.state,vt=this.listenerMap[xt]&&this.listenerMap[xt][Mt];if(vt){let Ot=this.stateMap[xt]=this.stateMap[xt]??{},At=Ot[pt.state]||[];mt&&(At.length||(Ot[pt.state]=At),lt.getIndex(pt,At)===-1&&At.push(pt));let Rt={cursor:pt,cursors:At,table:dt};ht&&(Rt.event=ht);let zt=this.emittingRegister,Tt=this.buildEmittingTag(Rt);if(zt.indexOf(Tt)>=0)return this;try{this.emittingRegister.push(Tt);for(let Ct=0,It=vt.length;Ct<It;++Ct)vt[Ct].call(this,Rt)}finally{let Ct=this.emittingRegister.indexOf(Tt);Ct>=0&&this.emittingRegister.splice(Ct,1)}}return this}remitCursor(dt,pt){let ht=this.stateMap[dt]&&this.stateMap[dt][pt.state];if(ht){let mt=lt.getIndex(pt,ht);mt>=0&&ht.splice(mt,1)}return this}removeListener(dt,pt,ht){let mt=this.listenerMap[dt]&&this.listenerMap[dt][pt];if(mt){let xt=mt.indexOf(ht);xt>=0&&mt.splice(xt,1)}return this}}return lt.version="1.0.0",function(ut){function dt(pt,ht){if(pt.type==="range")return pt;let mt={type:"range",firstRow:pt.row??(ht&&ht.firstRow)??0,lastRow:pt.row??(ht&&ht.lastRow)??Number.MAX_VALUE,state:pt.state};return pt.column!==void 0&&(mt.columns=[pt.column]),mt}ut.getIndex=function(pt,ht){if(pt.type==="position"){for(let mt,xt=0,Mt=ht.length;xt<Mt;++xt)if((mt=ht[xt]).type==="position"&&mt.state===pt.state&&mt.column===pt.column&&mt.row===pt.row)return xt}else{let mt=JSON.stringify(pt.columns);for(let xt,Mt=0,vt=ht.length;Mt<vt;++Mt)if((xt=ht[Mt]).type==="range"&&xt.state===pt.state&&xt.firstRow===pt.firstRow&&xt.lastRow===pt.lastRow&&JSON.stringify(xt.columns)===mt)return Mt}return-1},ut.isEqual=function(pt,ht){return pt.type==="position"&&ht.type==="position"?pt.column===ht.column&&pt.row===ht.row&&pt.state===ht.state:pt.type==="range"&&ht.type==="range"&&pt.firstRow===ht.firstRow&&pt.lastRow===ht.lastRow&&JSON.stringify(pt.columns)===JSON.stringify(ht.columns)},ut.isInRange=function(pt,ht){ht.type==="position"&&(ht=dt(ht)),pt.type==="position"&&(pt=dt(pt,ht));let mt=pt.columns,xt=ht.columns;return pt.firstRow>=ht.firstRow&&pt.lastRow<=ht.lastRow&&(!mt||!xt||mt.every(Mt=>xt.indexOf(Mt)>=0))},ut.toPositions=function(pt){if(pt.type==="position")return[pt];let ht=pt.columns||[],mt=[],xt=pt.state;for(let Mt=pt.firstRow,vt=pt.lastRow;Mt<vt;++Mt){if(!ht.length){mt.push({type:"position",row:Mt,state:xt});continue}for(let Ot=0,At=ht.length;Ot<At;++Ot)mt.push({type:"position",column:ht[Ot],row:Mt,state:xt})}return mt},ut.toRange=dt}(lt||(lt={})),lt}),nt(rt,"DataGrid/DataGridUtils.js",[],function(){return{dataTableCellToString:lt=>typeof lt=="string"||typeof lt=="number"||typeof lt=="boolean"?""+lt:"",emptyHTMLElement(lt){for(;lt.firstChild;)lt.removeChild(lt.firstChild)},makeDiv:(lt,ut)=>{let dt=document.createElement("div");return dt.className=lt,ut&&(dt.id=ut),dt}}}),nt(rt,"DataGrid/Globals.js",[],function(){var lt,ut;return(ut=lt||(lt={})).classNamePrefix="highcharts-datagrid-",ut.classNames={gridContainer:ut.classNamePrefix+"container",outerContainer:ut.classNamePrefix+"outer-container",scrollContainer:ut.classNamePrefix+"scroll-container",innerContainer:ut.classNamePrefix+"inner-container",cell:ut.classNamePrefix+"cell",cellInput:ut.classNamePrefix+"cell-input",row:ut.classNamePrefix+"row",columnHeader:ut.classNamePrefix+"column-header"},ut.win=tt,ut.userAgent=ut.win.navigator&&ut.win.navigator.userAgent||"",ut.isChrome=ut.win.chrome,ut.isSafari=!ut.isChrome&&ut.userAgent.indexOf("Safari")!==-1,lt}),nt(rt,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),nt(rt,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),nt(rt,"Core/Time.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{win:dt}=lt,{defined:pt,error:ht,extend:mt,isNumber:xt,isObject:Mt,merge:vt,objectEach:Ot,pad:At,pick:Rt,splat:zt,timeUnits:Tt}=ut,Ct=lt.isSafari&&dt.Intl&&dt.Intl.DateTimeFormat.prototype.formatRange,It=lt.isSafari&&dt.Intl&&!dt.Intl.DateTimeFormat.prototype.formatRange;class Dt{constructor(qt){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=dt.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(qt)}get(qt,Nt){if(this.variableTimezone||this.timezoneOffset){let Yt=Nt.getTime(),Kt=Yt-this.getTimezoneOffset(Nt);Nt.setTime(Kt);let Jt=Nt["getUTC"+qt]();return Nt.setTime(Yt),Jt}return this.useUTC?Nt["getUTC"+qt]():Nt["get"+qt]()}set(qt,Nt,Yt){if(this.variableTimezone||this.timezoneOffset){if(qt==="Milliseconds"||qt==="Seconds"||qt==="Minutes"&&this.getTimezoneOffset(Nt)%36e5==0)return Nt["setUTC"+qt](Yt);let Kt=this.getTimezoneOffset(Nt),Jt=Nt.getTime()-Kt;Nt.setTime(Jt),Nt["setUTC"+qt](Yt);let Qt=this.getTimezoneOffset(Nt);return Jt=Nt.getTime()+Qt,Nt.setTime(Jt)}return this.useUTC||Ct&&qt==="FullYear"?Nt["setUTC"+qt](Yt):Nt["set"+qt](Yt)}update(qt={}){let Nt=Rt(qt.useUTC,!0);this.options=qt=vt(!0,this.options,qt),this.Date=qt.Date||dt.Date||Date,this.useUTC=Nt,this.timezoneOffset=Nt&&qt.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=Nt&&!!(qt.getTimezoneOffset||qt.timezone)}makeTime(qt,Nt,Yt,Kt,Jt,Qt){let Bt,Ft,$t;return this.useUTC?(Bt=this.Date.UTC.apply(0,arguments),Ft=this.getTimezoneOffset(Bt),Bt+=Ft,Ft!==($t=this.getTimezoneOffset(Bt))?Bt+=$t-Ft:Ft-36e5!==this.getTimezoneOffset(Bt-36e5)||It||(Bt-=36e5)):Bt=new this.Date(qt,Nt,Rt(Yt,1),Rt(Kt,0),Rt(Jt,0),Rt(Qt,0)).getTime(),Bt}timezoneOffsetFunction(){let qt=this,Nt=this.options,Yt=Nt.getTimezoneOffset;return this.useUTC?Nt.timezone?Kt=>{try{let Jt=`shortOffset,${Nt.timezone||""}`,[Qt,Bt,Ft,$t,jt=0]=(Dt.formatCache[Jt]=Dt.formatCache[Jt]||Intl.DateTimeFormat("en",{timeZone:Nt.timezone,timeZoneName:"shortOffset"})).format(Kt).split(/(GMT|:)/).map(Number),Wt=-(36e5*(Ft+jt/60));if(xt(Wt))return Wt}catch{ht(34)}return 0}:this.useUTC&&Yt?Kt=>6e4*Yt(Kt.valueOf()):()=>6e4*(qt.timezoneOffset||0):Kt=>6e4*new Date(Kt.toString()).getTimezoneOffset()}dateFormat(qt,Nt,Yt){if(!pt(Nt)||isNaN(Nt))return lt.defaultOptions.lang&&lt.defaultOptions.lang.invalidDate||"";qt=Rt(qt,"%Y-%m-%d %H:%M:%S");let Kt=this,Jt=new this.Date(Nt),Qt=this.get("Hours",Jt),Bt=this.get("Day",Jt),Ft=this.get("Date",Jt),$t=this.get("Month",Jt),jt=this.get("FullYear",Jt),Wt=lt.defaultOptions.lang,Ut=Wt&&Wt.weekdays,Vt=Wt&&Wt.shortWeekdays;return Ot(mt({a:Vt?Vt[Bt]:Ut[Bt].substr(0,3),A:Ut[Bt],d:At(Ft),e:At(Ft,2," "),w:Bt,b:Wt.shortMonths[$t],B:Wt.months[$t],m:At($t+1),o:$t+1,y:jt.toString().substr(2,2),Y:jt,H:At(Qt),k:Qt,I:At(Qt%12||12),l:Qt%12||12,M:At(this.get("Minutes",Jt)),p:Qt<12?"AM":"PM",P:Qt<12?"am":"pm",S:At(this.get("Seconds",Jt)),L:At(Math.floor(Nt%1e3),3)},lt.dateFormats),function(Ht,Gt){for(;qt.indexOf("%"+Gt)!==-1;)qt=qt.replace("%"+Gt,typeof Ht=="function"?Ht.call(Kt,Nt):Ht)}),Yt?qt.substr(0,1).toUpperCase()+qt.substr(1):qt}resolveDTLFormat(qt){return Mt(qt,!0)?qt:{main:(qt=zt(qt))[0],from:qt[1],to:qt[2]}}getTimeTicks(qt,Nt,Yt,Kt){let Jt,Qt,Bt,Ft,$t=this,jt=$t.Date,Wt=[],Ut={},Vt=new jt(Nt),Ht=qt.unitRange,Gt=qt.count||1;if(Kt=Rt(Kt,1),pt(Nt)){$t.set("Milliseconds",Vt,Ht>=Tt.second?0:Gt*Math.floor($t.get("Milliseconds",Vt)/Gt)),Ht>=Tt.second&&$t.set("Seconds",Vt,Ht>=Tt.minute?0:Gt*Math.floor($t.get("Seconds",Vt)/Gt)),Ht>=Tt.minute&&$t.set("Minutes",Vt,Ht>=Tt.hour?0:Gt*Math.floor($t.get("Minutes",Vt)/Gt)),Ht>=Tt.hour&&$t.set("Hours",Vt,Ht>=Tt.day?0:Gt*Math.floor($t.get("Hours",Vt)/Gt)),Ht>=Tt.day&&$t.set("Date",Vt,Ht>=Tt.month?1:Math.max(1,Gt*Math.floor($t.get("Date",Vt)/Gt))),Ht>=Tt.month&&($t.set("Month",Vt,Ht>=Tt.year?0:Gt*Math.floor($t.get("Month",Vt)/Gt)),Qt=$t.get("FullYear",Vt)),Ht>=Tt.year&&(Qt-=Qt%Gt,$t.set("FullYear",Vt,Qt)),Ht===Tt.week&&(Ft=$t.get("Day",Vt),$t.set("Date",Vt,$t.get("Date",Vt)-Ft+Kt+(Ft<Kt?-7:0))),Qt=$t.get("FullYear",Vt);let Zt=$t.get("Month",Vt),Xt=$t.get("Date",Vt),er=$t.get("Hours",Vt);Nt=Vt.getTime(),($t.variableTimezone||!$t.useUTC)&&pt(Yt)&&(Bt=Yt-Nt>4*Tt.month||$t.getTimezoneOffset(Nt)!==$t.getTimezoneOffset(Yt));let nr=Vt.getTime();for(Jt=1;nr<Yt;)Wt.push(nr),Ht===Tt.year?nr=$t.makeTime(Qt+Jt*Gt,0):Ht===Tt.month?nr=$t.makeTime(Qt,Zt+Jt*Gt):Bt&&(Ht===Tt.day||Ht===Tt.week)?nr=$t.makeTime(Qt,Zt,Xt+Jt*Gt*(Ht===Tt.day?1:7)):Bt&&Ht===Tt.hour&&Gt>1?nr=$t.makeTime(Qt,Zt,Xt,er+Jt*Gt):nr+=Ht*Gt,Jt++;Wt.push(nr),Ht<=Tt.hour&&Wt.length<1e4&&Wt.forEach(function(or){or%18e5==0&&$t.dateFormat("%H%M%S%L",or)==="000000000"&&(Ut[or]="day")})}return Wt.info=mt(qt,{higherRanks:Ut,totalRange:Ht*Gt}),Wt}getDateFormat(qt,Nt,Yt,Kt){let Jt=this.dateFormat("%m-%d %H:%M:%S.%L",Nt),Qt="01-01 00:00:00.000",Bt={millisecond:15,second:12,minute:9,hour:6,day:3},Ft="millisecond",$t=Ft;for(Ft in Tt){if(qt===Tt.week&&+this.dateFormat("%w",Nt)===Yt&&Jt.substr(6)===Qt.substr(6)){Ft="week";break}if(Tt[Ft]>qt){Ft=$t;break}if(Bt[Ft]&&Jt.substr(Bt[Ft])!==Qt.substr(Bt[Ft]))break;Ft!=="week"&&($t=Ft)}return this.resolveDTLFormat(Kt[Ft]).main}}return Dt.formatCache={},Dt}),nt(rt,"Core/Defaults.js",[rt["Core/Chart/ChartDefaults.js"],rt["Core/Globals.js"],rt["Core/Color/Palettes.js"],rt["Core/Time.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){let{isTouchDevice:mt}=ut,{fireEvent:xt,merge:Mt}=ht,vt={colors:dt.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:lt,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:At=>Math.sqrt(1-Math.pow(At-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:mt?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};vt.chart.styledMode=!1;let Ot=new pt(vt.time);return{defaultOptions:vt,defaultTime:Ot,getOptions:function(){return vt},setOptions:function(At){return xt(ut,"setOptions",{options:At}),Mt(!0,vt,At),(At.time||At.global)&&(ut.time?ut.time.update(Mt(vt.global,vt.time,At.global,At.time)):ut.time=Ot),vt}}}),nt(rt,"Core/Templating.js",[rt["Core/Defaults.js"],rt["Core/Utilities.js"]],function(lt,ut){let{defaultOptions:dt,defaultTime:pt}=lt,{extend:ht,getNestedProperty:mt,isArray:xt,isNumber:Mt,isObject:vt,pick:Ot,pInt:At}=ut,Rt={add:(Ct,It)=>Ct+It,divide:(Ct,It)=>It!==0?Ct/It:"",eq:(Ct,It)=>Ct==It,each:function(Ct){let It=arguments[arguments.length-1];return!!xt(Ct)&&Ct.map((Dt,kt)=>zt(It.body,ht(vt(Dt)?Dt:{"@this":Dt},{"@index":kt,"@first":kt===0,"@last":kt===Ct.length-1}))).join("")},ge:(Ct,It)=>Ct>=It,gt:(Ct,It)=>Ct>It,if:Ct=>!!Ct,le:(Ct,It)=>Ct<=It,lt:(Ct,It)=>Ct<It,multiply:(Ct,It)=>Ct*It,ne:(Ct,It)=>Ct!=It,subtract:(Ct,It)=>Ct-It,unless:Ct=>!Ct};function zt(Ct="",It,Dt){let kt=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,qt=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,Nt=[],Yt=/f$/,Kt=/\.(\d)/,Jt=dt.lang,Qt=Dt&&Dt.time||pt,Bt=Dt&&Dt.numberFormatter||Tt,Ft=(Vt="")=>{let Ht;return Vt==="true"||Vt!=="false"&&((Ht=Number(Vt)).toString()===Vt?Ht:mt(Vt,It))},$t,jt,Wt=0,Ut;for(;($t=kt.exec(Ct))!==null;){let Vt=qt.exec($t[1]);Vt&&($t=Vt,Ut=!0),jt&&jt.isBlock||(jt={ctx:It,expression:$t[1],find:$t[0],isBlock:$t[1].charAt(0)==="#",start:$t.index,startInner:$t.index+$t[0].length,length:$t[0].length});let Ht=$t[1].split(" ")[0].replace("#","");Rt[Ht]&&(jt.isBlock&&Ht===jt.fn&&Wt++,jt.fn||(jt.fn=Ht));let Gt=$t[1]==="else";if(jt.isBlock&&jt.fn&&($t[1]===`/${jt.fn}`||Gt))if(Wt)!Gt&&Wt--;else{let Zt=jt.startInner,Xt=Ct.substr(Zt,$t.index-Zt);jt.body===void 0?(jt.body=Xt,jt.startInner=$t.index+$t[0].length):jt.elseBody=Xt,jt.find+=Xt+$t[0],Gt||(Nt.push(jt),jt=void 0)}else jt.isBlock||Nt.push(jt);if(Vt&&!(jt!=null&&jt.isBlock))break}return Nt.forEach(Vt=>{let Ht,Gt,{body:Zt,elseBody:Xt,expression:er,fn:nr}=Vt;if(nr){let or=[Vt],rr=er.split(" ");for(Gt=Rt[nr].length;Gt--;)or.unshift(Ft(rr[Gt+1]));Ht=Rt[nr].apply(It,or),Vt.isBlock&&typeof Ht=="boolean"&&(Ht=zt(Ht?Zt:Xt,It,Dt))}else{let or=er.split(":");if(Ht=Ft(or.shift()||""),or.length&&typeof Ht=="number"){let rr=or.join(":");if(Yt.test(rr)){let cr=parseInt((rr.match(Kt)||["","-1"])[1],10);Ht!==null&&(Ht=Bt(Ht,cr,Jt.decimalPoint,rr.indexOf(",")>-1?Jt.thousandsSep:""))}else Ht=Qt.dateFormat(rr,Ht)}}Ct=Ct.replace(Vt.find,Ot(Ht,""))}),Ut?zt(Ct,It,Dt):Ct}function Tt(Ct,It,Dt,kt){let qt,Nt;Ct=+Ct||0,It=+It;let Yt=dt.lang,Kt=(Ct.toString().split(".")[1]||"").split("e")[0].length,Jt=Ct.toString().split("e"),Qt=It;It===-1?It=Math.min(Kt,20):Mt(It)?It&&Jt[1]&&Jt[1]<0&&((Nt=It+ +Jt[1])>=0?(Jt[0]=(+Jt[0]).toExponential(Nt).split("e")[0],It=Nt):(Jt[0]=Jt[0].split(".")[0]||0,Ct=It<20?(Jt[0]*Math.pow(10,Jt[1])).toFixed(It):0,Jt[1]=0)):It=2;let Bt=(Math.abs(Jt[1]?Jt[0]:Ct)+Math.pow(10,-Math.max(It,Kt)-1)).toFixed(It),Ft=String(At(Bt)),$t=Ft.length>3?Ft.length%3:0;return Dt=Ot(Dt,Yt.decimalPoint),kt=Ot(kt,Yt.thousandsSep),qt=(Ct<0?"-":"")+($t?Ft.substr(0,$t)+kt:""),0>+Jt[1]&&!Qt?qt="0":qt+=Ft.substr($t).replace(/(\d{3})(?=\d)/g,"$1"+kt),It?qt+=Dt+Bt.slice(-It):+qt==0&&(qt="0"),Jt[1]&&+qt!=0&&(qt+="e"+Jt[1]),qt}return{dateFormat:function(Ct,It,Dt){return pt.dateFormat(Ct,It,Dt)},format:zt,helpers:Rt,numberFormat:Tt}}),nt(rt,"DataGrid/DataGridDefaults.js",[],function(){return{cellHeight:49,columnHeaders:{enabled:!0},columns:{},defaultHeight:400,editable:!0,resizableColumns:!0}}),nt(rt,"DataGrid/DataGrid.js",[rt["Core/Renderer/HTML/AST.js"],rt["Data/DataTable.js"],rt["DataGrid/DataGridUtils.js"],rt["DataGrid/Globals.js"],rt["Core/Templating.js"],rt["DataGrid/DataGridDefaults.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt){let{emptyHTMLElement:Mt,makeDiv:vt}=dt,{isSafari:Ot,win:At}=pt,{addEvent:Rt,clamp:zt,defined:Tt,fireEvent:Ct,isNumber:It,merge:Dt,pick:kt}=xt;class qt{static dataGrid(Yt,Kt){return new qt(Yt,Kt)}constructor(Yt,Kt){if(this.columnNames=[],this.prevTop=-1,this.scrollEndRowCount=0,this.scrollEndTop=0,this.bottom=!1,this.overflowHeaderWidths=[],typeof Yt=="string"){let Jt=At.document.getElementById(Yt);Jt?this.container=Jt:this.container=vt(pt.classNames.gridContainer,Yt)}else this.container=Yt;this.gridContainer=vt(pt.classNames.gridContainer),this.outerContainer=vt(pt.classNames.outerContainer),this.scrollContainer=vt(pt.classNames.scrollContainer),this.innerContainer=vt(pt.classNames.innerContainer),this.outerContainer.appendChild(this.scrollContainer),this.gridContainer.appendChild(this.outerContainer),this.container.appendChild(this.gridContainer),this.options=Dt(qt.defaultOptions,Kt),this.gridContainer.style.height=this.getDataGridSize()+"px",this.gridContainer.role="figure",this.dataTable=this.initDataTable(),this.rowElements=[],this.draggedResizeHandle=null,this.draggedColumnRightIx=null,this.columnNames=this.getColumnsToDisplay(),this.render(),(this.containerResizeObserver=new ResizeObserver(()=>{this.updateGridElements()})).observe(this.container)}update(Yt){this.options=Dt(this.options,Yt),this.options.dataTable!==this.dataTable&&(this.dataTable=this.initDataTable()),this.columnNames=this.getColumnsToDisplay(),this.scrollContainer.removeChild(this.innerContainer),this.render()}resizeColumn(Yt,Kt){let Jt=this.columnHeadersContainer,Qt=typeof Kt=="string"?this.columnNames.indexOf(Kt):Kt,Bt=`${Yt}`;if(It(Qt)){if(Qt!==-1){if(Jt){let Ft=Jt.children[Qt];Ft&&(Ft.style.flex=Bt)}for(let Ft=0;Ft<this.rowElements.length;Ft++){let $t=this.rowElements[Ft].children[Qt];$t&&($t.style.flex=Bt)}}}else{if(Jt)for(let Ft=0;Ft<Jt.children.length;Ft++)Jt.children[Ft].style.flex=Bt;for(let Ft=0;Ft<this.rowElements.length;Ft++){let $t=this.rowElements[Ft];for(let jt=0;jt<$t.children.length;jt++)$t.children[jt].style.flex=Bt}}this.renderColumnDragHandles(),this.emit({type:"afterResizeColumn",width:Yt,index:Qt,name:It(Qt)?this.columnNames[Qt]:void 0})}emit(Yt){Ct(this,Yt.type,Yt)}toggleRowHighlight(Yt){this.hoveredRow&&this.hoveredRow.classList.contains("hovered")&&this.hoveredRow.classList.remove("hovered"),Yt&&(Yt.classList.contains("hovered")?Yt.classList.remove("hovered"):Yt.classList.add("hovered"))}on(Yt,Kt){return Rt(this,Yt,Kt)}scrollToRow(Yt){this.outerContainer.scrollTop=Yt*this.options.cellHeight}getColumnsToDisplay(){let Yt=this.options.columns,Kt=this.dataTable.modified.getColumnNames(),Jt=[];for(let Qt=0;Qt<Kt.length;Qt++){let Bt=Kt[Qt],Ft=Yt[Bt];Ft&&Tt(Ft.show)?Yt[Bt].show&&Jt.push(Bt):Jt.push(Bt)}return Jt}isColumnEditable(Yt){return kt((this.options.columns[Yt]||{}).editable,this.options.editable)}initDataTable(){return this.options.dataTable?this.options.dataTable:new ut}render(){let{options:Yt}=this;this.prevTop=-1,this.bottom=!1,Mt(this.innerContainer),Yt.columnHeaders.enabled?this.renderColumnHeaders():this.outerContainer.style.top="0",this.renderInitialRows(),this.addEvents(),this.updateScrollingLength(),this.updateVisibleCells(),Yt.columnHeaders.enabled&&Yt.resizableColumns&&this.renderColumnDragHandles(),this.updateGridElements(),this.gridContainer.ariaLabel=`Grid with ${this.dataTable.getColumnNames().length} columns and ${this.dataTable.getRowCount()} rows.`}addEvents(){this.outerContainer.addEventListener("scroll",Yt=>{this.onScroll(Yt)}),document.addEventListener("click",Yt=>{this.onDocumentClick(Yt)}),this.container.addEventListener("mouseover",Yt=>{this.handleMouseOver(Yt)}),this.container.addEventListener("click",Yt=>{this.handleRowClick(Yt)})}updateVisibleCells(Yt=!1){let Kt=this.outerContainer.scrollTop;Ot&&(Kt=zt(Kt,0,this.outerContainer.scrollHeight-this.outerContainer.clientHeight));let Jt=Math.floor(Kt/this.options.cellHeight);if(Jt===this.prevTop&&!Yt)return;this.prevTop=Jt;let Qt=this.columnNames,Bt=this.dataTable.modified.getRowCount();for(let Ft=0;Ft<this.rowElements.length&&Jt<Bt;Ft++,Jt++){let $t=this.rowElements[Ft];$t.dataset.rowIndex=this.dataTable.getRowIndexOriginal(Jt);let jt=$t.childNodes;for(let Wt=0,Ut=Qt.length;Wt<Ut;Wt++){let Vt=jt[Wt],Ht=Qt[Wt],Gt=this.dataTable.modified.getCell(Qt[Wt],Jt),Zt=this.formatCell(Gt,Ht);this.options.useHTML?this.renderHTMLCellContent(Zt,Vt):Vt.textContent=Zt,Vt.dataset.originalData=""+Gt,Vt.dataset.columnName=Qt[Wt],Vt.dataset.dataType=typeof Gt,Wt===0&&($t.dataset.rowXIndex=String(It(Gt)?Gt:Jt))}}this.prevTop+this.scrollEndRowCount===Bt?!this.bottom&&this.scrollEndTop&&(this.bottom=!0,this.innerContainer.scrollTop=this.scrollEndTop):this.bottom&&(this.bottom=!1,this.innerContainer.scrollTop=0)}onScroll(Yt){Yt.preventDefault(),tt.requestAnimationFrame(this.updateVisibleCells.bind(this,!1))}onCellClick(Yt,Kt){if(this.isColumnEditable(Kt)){let Jt=Yt.querySelector("input"),Qt=Yt.getAttribute("data-original-data");if(!Jt){this.removeCellInputElement();let Bt=Yt.clientHeight;Yt.textContent="",(Jt=this.cellInputEl=document.createElement("input")).style.height=Bt+"px",Jt.className=pt.classNames.cellInput,Yt.appendChild(Jt),Jt.focus(),Jt.value=Qt||""}this.emit({type:"cellClick",input:Jt})}}onDocumentClick(Yt){if(this.cellInputEl&&Yt.target){let Kt=this.cellInputEl.parentNode;Kt&&Kt.contains(Yt.target)||this.removeCellInputElement()}}handleMouseOver(Yt){var Jt;let Kt=Yt.target;if(Kt&&Kt.classList.contains(pt.classNames.cell)){let Qt=Kt.parentElement;this.toggleRowHighlight(Qt),this.hoveredRow=Qt,Ct(this.container,"dataGridHover",{row:Qt,columnName:(Jt=Kt.dataset)==null?void 0:Jt.columnName})}else this.hoveredRow&&(this.toggleRowHighlight(),this.hoveredRow=void 0)}handleRowClick(Yt){var Qt,Bt;let Kt=Yt.target,Jt=(Bt=(Qt=this.options.events)==null?void 0:Qt.row)==null?void 0:Bt.click;Jt&&(Kt!=null&&Kt.classList.contains(pt.classNames.cell))&&Jt.call(Kt.parentElement,Yt)}removeCellInputElement(){let Yt=this.cellInputEl;if(Yt){let Kt=Yt.parentNode;if(Kt){let Jt=Kt.getAttribute("data-data-type"),Qt=Kt.getAttribute("data-column-name"),Bt=Yt.value;Jt==="number"&&(Bt=parseFloat(Bt)),Kt.textContent=this.formatCell(Bt,Qt||"")}Yt.remove(),delete this.cellInputEl}}updateScrollingLength(){let Yt=this.dataTable.modified.getRowCount()-1,Kt=0,Jt=Yt-this.getNumRowsToDraw(),Qt=this.outerContainer.clientHeight;this.innerContainer.style.height=Qt+"px",this.scrollContainer.appendChild(this.innerContainer);for(let $t=0;Yt>Jt;Yt--,$t++)if((Kt+=this.rowElements[$t].offsetHeight)>Qt){Yt--;break}let Bt=Yt-Jt;this.scrollEndRowCount=this.rowElements.length-Bt,this.scrollEndTop=Kt-Qt;let Ft=(this.dataTable.modified.getRowCount()+Bt)*this.options.cellHeight;this.scrollContainer.style.height=Ft+"px"}getNumRowsToDraw(){return Math.min(this.dataTable.modified.getRowCount(),Math.ceil((this.outerContainer.offsetHeight||this.options.defaultHeight)/this.options.cellHeight))}getDataGridSize(){let Yt=this.options,{height:Kt}=this.container.getBoundingClientRect();return Kt>2?Kt:Yt.defaultHeight}renderCell(Yt,Kt){let Jt=pt.classNames.cell;this.isColumnEditable(Kt)||(Jt+=` ${Jt}-readonly`);let Qt=vt(Jt);Qt.style.minHeight=this.options.cellHeight+"px",Qt.addEventListener("click",()=>this.onCellClick(Qt,Kt)),Yt.appendChild(Qt)}renderRow(){let Yt=vt(pt.classNames.row);for(let Kt=0;Kt<this.columnNames.length;Kt++)this.renderCell(Yt,this.columnNames[Kt]);this.innerContainer.appendChild(Yt),this.rowElements.push(Yt)}formatHeaderCell(Yt){let Kt=this.options.columns[Yt],Jt=Kt&&Kt.headerFormat;return Jt?ht.format(Jt,{text:Yt}):Yt}formatCell(Yt,Kt){let Jt=this.options.columns[Kt],Qt=Jt&&Jt.cellFormat,Bt=Jt&&Jt.cellFormatter,Ft=Tt(Yt)?Yt:"";return Qt&&(typeof Yt=="number"&&Qt.indexOf("value")>-1?Ft=ht.format(Qt,{value:Yt}):typeof Yt=="string"&&Qt.indexOf("text")>-1&&(Ft=ht.format(Qt,{text:Yt}))),Bt?Bt.call({value:Yt}):Ft.toString()}renderHTMLCellContent(Yt,Kt){new lt(Yt).addToDOM(Kt)}renderColumnHeader(Yt,Kt){let Jt=pt.classNames.columnHeader;this.isColumnEditable(Kt)||(Jt+=` ${Jt}-readonly`);let Qt=vt(Jt);Qt.style.minHeight=this.options.cellHeight+"px",Qt.style.maxHeight=2*this.options.cellHeight+"px",Qt.textContent=this.formatHeaderCell(Kt),Yt.appendChild(Qt)}renderColumnHeaders(){let Yt=this.columnNames,Kt=this.columnHeadersContainer=this.columnHeadersContainer||vt(`${pt.classNamePrefix}column-headers`);Mt(Kt),Yt.forEach(this.renderColumnHeader.bind(this,Kt)),this.headerContainer||(this.headerContainer=vt(`${pt.classNamePrefix}header-container`),this.headerContainer.appendChild(Kt)),this.gridContainer.insertBefore(this.headerContainer,this.outerContainer),this.updateColumnHeaders()}updateGridElements(){this.updateColumnHeaders(),this.redrawRowElements(),this.updateDragHandlesPosition()}updateColumnHeaders(){let Yt=this.columnHeadersContainer;if(Yt){for(let Kt=0;Kt<this.columnNames.length;Kt++){let Jt=this.columnNames[Kt],Qt=Yt.children[Kt],Bt=this.overflowHeaderWidths[Kt];Qt.scrollWidth>Qt.clientWidth?(this.overflowHeaderWidths[Kt]=Qt.scrollWidth,Qt.textContent=this.formatHeaderCell(Jt).split(" ").map(Ft=>Ft.length<4?Ft:Ft.slice(0,2)+"...").join(" ")):It(Bt)&&Bt<=Qt.clientWidth&&(this.overflowHeaderWidths[Kt]=null,Qt.textContent=this.formatHeaderCell(Jt))}this.outerContainer.style.top=Yt.clientHeight+"px",Yt.lastChild&&(Yt.lastChild.style.marginRight=this.outerContainer.offsetWidth-this.outerContainer.clientWidth+"px")}}redrawRowElements(){if(!this.rowElements.length)return;let Yt=[],Kt=this.rowElements[0].children;for(let Jt=0;Jt<Kt.length;Jt++)Yt.push(Kt[Jt].style.flex);Mt(this.innerContainer),this.renderInitialRows(),this.updateScrollingLength(),this.updateVisibleCells(!0);for(let Jt=0;Jt<this.rowElements.length;Jt++){let Qt=this.rowElements[Jt];for(let Bt=0;Bt<Qt.childElementCount;Bt++)Qt.children[Bt].style.flex=Yt[Bt]}}updateDragHandlesPosition(){let Yt=this.columnHeadersContainer,Kt=this.columnDragHandlesContainer;if(Kt&&Yt)for(let Jt=0;Jt<Kt.childElementCount-1;Jt++){let Qt=Kt.children[Jt],Bt=Yt.children[Jt+1];Qt.style.height=Yt.clientHeight+"px",Qt.style.left=Bt.offsetLeft-2+"px"}}renderInitialRows(){this.rowElements=[];let Yt=this.getNumRowsToDraw();for(let Kt=0;Kt<Yt;Kt++)this.renderRow()}renderColumnDragHandles(){if(!this.columnHeadersContainer)return;let Yt=this.columnDragHandlesContainer=this.columnDragHandlesContainer||vt(`${pt.classNamePrefix}col-resize-container`),Kt=this.columnHeadersContainer.children,Jt=this.options.cellHeight;Mt(Yt);for(let Qt=1;Qt<Kt.length;++Qt){let Bt=Kt[Qt],Ft=vt(`${pt.classNamePrefix}col-resize-handle`);Ft.style.height=Jt+"px",Ft.style.left=Bt.offsetLeft-2+"px",Ft.addEventListener("mouseover",()=>{this.draggedResizeHandle||(Ft.style.opacity="1")}),Ft.addEventListener("mouseleave",()=>{this.draggedResizeHandle||(Ft.style.opacity="0")}),Ft.addEventListener("mousedown",this.onHandleMouseDown.bind(this,Ft,Qt)),Yt.appendChild(Ft)}this.renderColumnResizeCrosshair(Yt),document.addEventListener("mouseup",Qt=>{this.draggedResizeHandle&&this.stopColumnResize(this.draggedResizeHandle,Qt)}),document.addEventListener("mousemove",Qt=>{this.draggedResizeHandle&&this.updateColumnResizeDrag(Qt)}),this.headerContainer&&this.headerContainer.appendChild(Yt)}renderColumnResizeCrosshair(Yt){let Kt=this.columnResizeCrosshair=this.columnResizeCrosshair||vt(`${pt.classNamePrefix}col-resize-crosshair`),Jt=this.options.cellHeight;Kt.style.top=Jt+"px",Kt.style.height=this.innerContainer.offsetHeight+"px",Yt.appendChild(Kt)}onHandleMouseDown(Yt,Kt,Jt){if(this.draggedResizeHandle)return;Jt.preventDefault(),this.draggedResizeHandle=Yt,this.draggedColumnRightIx=Kt,this.dragResizeStart=Jt.pageX;let Qt=this.columnResizeCrosshair;Qt&&(Qt.style.left=Yt.offsetLeft+Yt.offsetWidth/2-Qt.offsetWidth/2+"px",Qt.style.opacity="1")}updateColumnResizeDrag(Yt){let Kt=this.draggedResizeHandle,Jt=this.columnResizeCrosshair,Qt=this.draggedColumnRightIx,Bt=this.columnHeadersContainer;if(!Kt||!Jt||Qt===null||!Bt||!this.dragResizeStart)return;let Ft=Bt.children[Qt],$t=Yt.pageX-this.dragResizeStart,jt=Ft.offsetLeft+$t;Kt.style.left=jt-Kt.offsetWidth/2+"px",Jt.style.left=jt-Jt.offsetWidth/2+"px"}stopColumnResize(Yt,Kt){let Jt=this.columnResizeCrosshair,Qt=this.draggedColumnRightIx,Bt=this.columnHeadersContainer;if(!Jt||!Bt||!this.dragResizeStart||Qt===null)return;Yt.style.opacity="0",Jt.style.opacity="0";let Ft=Bt.children[Qt-1],$t=Bt.children[Qt],jt=Kt.pageX-this.dragResizeStart,Wt=Ft.offsetWidth+jt,Ut=$t.offsetWidth-jt,Vt=Wt/Ft.offsetWidth,Ht=Ut/$t.offsetWidth,Gt=(Ft.style.flex?parseFloat(Ft.style.flex):1)*Vt,Zt=($t.style.flex?parseFloat($t.style.flex):1)*Ht;this.resizeColumn(Gt,Qt-1),this.resizeColumn(Zt,Qt),this.draggedResizeHandle=null,this.draggedColumnRightIx=null,this.updateGridElements()}setSize(Yt,Kt){Yt&&(this.innerContainer.style.width=Yt+"px"),Kt&&(this.gridContainer.style.height=this.getDataGridSize()+"px",this.outerContainer.style.height=Kt-(this.options.cellHeight+this.getMarginHeight(Kt))+"px"),this.render()}getMarginHeight(Yt){return Yt-this.gridContainer.getBoundingClientRect().height}}return qt.defaultOptions=mt,qt}),nt(rt,"Data/DataPoolDefaults.js",[],function(){return{connectors:[]}}),nt(rt,"Data/DataPool.js",[rt["Data/Connectors/DataConnector.js"],rt["Data/DataPoolDefaults.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){class pt{constructor(mt=ut){mt.connectors=mt.connectors||[],this.connectors={},this.options=mt,this.waiting={}}emit(mt){dt.fireEvent(this,mt.type,mt)}getConnector(mt){let xt=this.connectors[mt];if(xt)return Promise.resolve(xt);let Mt=this.waiting[mt];if(!Mt){Mt=this.waiting[mt]=[];let vt=this.getConnectorOptions(mt);if(!vt)throw Error(`Connector '${mt}' not found.`);this.loadConnector(vt).then(Ot=>{delete this.waiting[mt];for(let At=0,Rt=Mt.length;At<Rt;++At)Mt[At][0](Ot)}).catch(Ot=>{delete this.waiting[mt];for(let At=0,Rt=Mt.length;At<Rt;++At)Mt[At][1](Ot)})}return new Promise((vt,Ot)=>{Mt.push([vt,Ot])})}getConnectorIds(){let mt=this.options.connectors,xt=[];for(let Mt=0,vt=mt.length;Mt<vt;++Mt)xt.push(mt[Mt].id);return xt}getConnectorOptions(mt){let xt=this.options.connectors;for(let Mt=0,vt=xt.length;Mt<vt;++Mt)if(xt[Mt].id===mt)return xt[Mt]}getConnectorTable(mt){return this.getConnector(mt).then(xt=>xt.table)}isNewConnector(mt){return!this.connectors[mt]}loadConnector(mt){return new Promise((xt,Mt)=>{this.emit({type:"load",options:mt});let vt=lt.types[mt.type];if(!vt)throw Error(`Connector type not found. (${mt.type})`);new vt(mt.options).load().then(Ot=>{this.connectors[mt.id]=Ot,this.emit({type:"afterLoad",options:mt}),xt(Ot)}).catch(Mt)})}on(mt,xt){return dt.addEvent(this,mt,xt)}setConnectorOptions(mt){let xt=this.options.connectors,Mt=this.connectors;this.emit({type:"setConnectorOptions",options:mt});for(let vt=0,Ot=xt.length;vt<Ot;++vt)if(xt[vt].id===mt.id){xt.splice(vt,1);break}Mt[mt.id]&&(Mt[mt.id].stopPolling(),delete Mt[mt.id]),xt.push(mt),this.emit({type:"afterSetConnectorOptions",options:mt})}}return pt.version="1.0.0",pt}),nt(rt,"Data/Converters/DataConverter.js",[rt["Data/DataTable.js"],rt["Core/Utilities.js"]],function(lt,ut){let{addEvent:dt,fireEvent:pt,isNumber:ht,merge:mt}=ut;class xt{constructor(vt){this.dateFormats={"YYYY/mm/dd":{regex:/^(\d{4})([\-\.\/])(\d{1,2})\2(\d{1,2})$/,parser:function(Rt){return Rt?Date.UTC(+Rt[1],Rt[3]-1,+Rt[4]):NaN}},"dd/mm/YYYY":{regex:/^(\d{1,2})([\-\.\/])(\d{1,2})\2(\d{4})$/,parser:function(Rt){return Rt?Date.UTC(+Rt[4],Rt[3]-1,+Rt[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^(\d{1,2})([\-\.\/])(\d{1,2})\2(\d{4})$/,parser:function(Rt){return Rt?Date.UTC(+Rt[4],Rt[1]-1,+Rt[3]):NaN}},"dd/mm/YY":{regex:/^(\d{1,2})([\-\.\/])(\d{1,2})\2(\d{2})$/,parser:function(Rt){let zt=new Date;if(!Rt)return NaN;let Tt=+Rt[4];return Tt>zt.getFullYear()-2e3?Tt+=1900:Tt+=2e3,Date.UTC(Tt,Rt[3]-1,+Rt[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^(\d{1,2})([\-\.\/])(\d{1,2})\2(\d{2})$/,parser:function(Rt){return Rt?Date.UTC(+Rt[4]+2e3,Rt[1]-1,+Rt[3]):NaN}}};let Ot=mt(xt.defaultOptions,vt),At=Ot.decimalPoint;(At==="."||At===",")&&(At=At==="."?"\\.":",",this.decimalRegExp=RegExp("^(-?[0-9]+)"+At+"([0-9]+)$")),this.options=Ot}asBoolean(vt){return typeof vt=="boolean"?vt:typeof vt=="string"?vt!==""&&vt!=="0"&&vt!=="false":!!this.asNumber(vt)}asDate(vt){let Ot;if(typeof vt=="string")Ot=this.parseDate(vt);else if(typeof vt=="number")Ot=vt;else{if(vt instanceof Date)return vt;Ot=this.parseDate(this.asString(vt))}return new Date(Ot)}asGuessedType(vt){return{number:this.asNumber,Date:this.asDate,string:this.asString}[this.guessType(vt)].call(this,vt)}asNumber(vt){if(typeof vt=="number")return vt;if(typeof vt=="boolean")return vt?1:0;if(typeof vt=="string"){let Ot=this.decimalRegExp;if(vt.indexOf(" ")>-1&&(vt=vt.replace(/\s+/g,"")),Ot){if(!Ot.test(vt))return NaN;vt=vt.replace(Ot,"$1.$2")}return parseFloat(vt)}return vt instanceof Date?vt.getDate():vt?vt.getRowCount():NaN}asString(vt){return""+vt}deduceDateFormat(vt,Ot,At){let Rt=[],zt=[],Tt="YYYY/mm/dd",Ct,It=[],Dt=0,kt=!1,qt,Nt;for((!Ot||Ot>vt.length)&&(Ot=vt.length);Dt<Ot;Dt++)if(vt[Dt]!==void 0&&vt[Dt]&&vt[Dt].length)for(Nt=0,Ct=vt[Dt].trim().replace(/[\-\.\/]/g," ").split(" "),It=["","",""];Nt<Ct.length;Nt++)Nt<It.length&&(qt=parseInt(Ct[Nt],10))&&(zt[Nt]=!zt[Nt]||zt[Nt]<qt?qt:zt[Nt],Rt[Nt]!==void 0?Rt[Nt]!==qt&&(Rt[Nt]=!1):Rt[Nt]=qt,qt>31?qt<100?It[Nt]="YY":It[Nt]="YYYY":qt>12&&qt<=31?(It[Nt]="dd",kt=!0):It[Nt].length||(It[Nt]="mm"));if(kt){for(Nt=0;Nt<Rt.length;Nt++)Rt[Nt]!==!1?zt[Nt]>12&&It[Nt]!=="YY"&&It[Nt]!=="YYYY"&&(It[Nt]="YY"):zt[Nt]>12&&It[Nt]==="mm"&&(It[Nt]="dd");It.length===3&&It[1]==="dd"&&It[2]==="dd"&&(It[2]="YY"),Tt=It.join("/")}return At&&(this.options.dateFormat=Tt),Tt}emit(vt){pt(this,vt.type,vt)}export(vt,Ot){throw this.emit({type:"exportError",columns:[],headers:[]}),Error("Not implemented")}getTable(){throw Error("Not implemented")}guessType(vt){let Ot="string";if(typeof vt=="string"){let At=this.trim(`${vt}`),Rt=this.decimalRegExp,zt=this.trim(At,!0);Rt&&(zt=Rt.test(zt)?zt.replace(Rt,"$1.$2"):"");let Tt=parseFloat(zt);+zt===Tt?vt=Tt:Ot=ht(this.parseDate(vt))?"Date":"string"}return typeof vt=="number"&&(Ot=vt>31536e6?"Date":"number"),Ot}on(vt,Ot){return dt(this,vt,Ot)}parse(vt){throw this.emit({type:"parseError",columns:[],headers:[]}),Error("Not implemented")}parseDate(vt,Ot){let At=this.options,Rt=Ot||At.dateFormat,zt=NaN,Tt,Ct,It;if(At.parseDate)zt=At.parseDate(vt);else{if(Rt)(Ct=this.dateFormats[Rt])||(Ct=this.dateFormats["YYYY/mm/dd"]),(It=vt.match(Ct.regex))&&(zt=Ct.parser(It));else for(Tt in this.dateFormats)if(Ct=this.dateFormats[Tt],It=vt.match(Ct.regex)){Rt=Tt,zt=Ct.parser(It);break}!It&&(typeof(It=Date.parse(vt))=="object"&&It!==null&&It.getTime?zt=It.getTime()-6e4*It.getTimezoneOffset():ht(It)&&(zt=It-6e4*new Date(It).getTimezoneOffset(),vt.indexOf("2001")===-1&&new Date(zt).getFullYear()===2001&&(zt=NaN)))}return zt}trim(vt,Ot){return typeof vt=="string"&&(vt=vt.replace(/^\s+|\s+$/g,""),Ot&&/^[\d\s]+$/.test(vt)&&(vt=vt.replace(/\s/g,""))),vt}}return xt.defaultOptions={dateFormat:"",alternativeFormat:"",startColumn:0,endColumn:Number.MAX_VALUE,startRow:0,endRow:Number.MAX_VALUE,firstRowAsNames:!0,switchRowsAndColumns:!1},(xt||(xt={})).getTableFromColumns=function(Mt=[],vt=[]){let Ot=new lt;for(let At=0,Rt=Math.max(vt.length,Mt.length);At<Rt;++At)Ot.setColumn(vt[At]||`${At}`,Mt[At]);return Ot},xt}),nt(rt,"Data/Converters/CSVConverter.js",[rt["Data/Converters/DataConverter.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt){let xt=dt(pt.defaultOptions,mt);super(xt),this.columns=[],this.headers=[],this.dataTypes=[],this.options=xt}export(mt,xt=this.options){let{useLocalDecimalPoint:Mt,lineDelimiter:vt}=xt,Ot=this.options.firstRowAsNames!==!1,{decimalPoint:At,itemDelimiter:Rt}=xt;At||(At=Rt!==","&&Mt?1.1.toLocaleString()[1]:"."),Rt||(Rt=At===","?";":",");let zt=mt.getSortedColumns(xt.usePresentationOrder),Tt=Object.keys(zt),Ct=[],It=Tt.length,Dt=[];Ot&&Ct.push(Tt.map(kt=>`"${kt}"`).join(Rt));for(let kt=0;kt<It;kt++){let qt,Nt=Tt[kt],Yt=zt[Nt],Kt=Yt.length,Jt=mt.whatIs(Nt);Jt&&(qt=Jt.dataType);for(let Qt=0;Qt<Kt;Qt++){let Bt=Yt[Qt];if(Dt[Qt]||(Dt[Qt]=[]),qt==="string"?Bt='"'+Bt+'"':typeof Bt=="number"?Bt=String(Bt).replace(".",At):typeof Bt=="string"&&(Bt=`"${Bt}"`),Dt[Qt][kt]=Bt,kt===It-1){let Ft=kt;for(;Dt[Qt].length>2&&Dt[Qt][Ft]===void 0;)Dt[Qt].pop(),Ft--;Ct.push(Dt[Qt].join(Rt))}}}return Ct.join(vt)}parse(mt,xt){let Mt=this.dataTypes,vt=dt(this.options,mt),{beforeParse:Ot,lineDelimiter:At,firstRowAsNames:Rt,itemDelimiter:zt}=vt,Tt,Ct=0,{csv:It,startRow:Dt,endRow:kt}=vt,qt;if(this.columns=[],this.emit({type:"parse",columns:this.columns,detail:xt,headers:this.headers}),It&&Ot&&(It=Ot(It)),It){if(Tt=It.replace(/\r\n|\r/g,`
`).split(At||`
`),(!Dt||Dt<0)&&(Dt=0),(!kt||kt>=Tt.length)&&(kt=Tt.length-1),zt||(this.guessedItemDelimiter=this.guessDelimiter(Tt)),Rt){let Yt=Tt[0].split(zt||this.guessedItemDelimiter||",");for(let Kt=0;Kt<Yt.length;Kt++)Yt[Kt]=Yt[Kt].trim().replace(/^["']|["']$/g,"");this.headers=Yt,Dt++}let Nt=0;for(Ct=Dt;Ct<=kt;Ct++)Tt[Ct][0]==="#"?Nt++:this.parseCSVRow(Tt[Ct],Ct-Dt-Nt);Mt.length&&Mt[0].length&&Mt[0][1]==="date"&&!this.options.dateFormat&&this.deduceDateFormat(this.columns[0],null,!0);for(let Yt=0,Kt=this.columns.length;Yt<Kt;++Yt){qt=this.columns[Yt];for(let Jt=0,Qt=qt.length;Jt<Qt;++Jt)if(qt[Jt]&&typeof qt[Jt]=="string"){let Bt=this.asGuessedType(qt[Jt]);Bt instanceof Date&&(Bt=Bt.getTime()),this.columns[Yt][Jt]=Bt}}}this.emit({type:"afterParse",columns:this.columns,detail:xt,headers:this.headers})}parseCSVRow(mt,xt){let Mt=this,vt=Mt.columns||[],Ot=Mt.dataTypes,{startColumn:At,endColumn:Rt}=Mt.options,zt=Mt.options.itemDelimiter||Mt.guessedItemDelimiter,{decimalPoint:Tt}=Mt.options;Tt&&Tt!==zt||(Tt=Mt.guessedDecimalPoint||".");let Ct=0,It="",Dt="",kt=0,qt=0,Nt=Jt=>{It=mt[Jt]},Yt=Jt=>{Ot.length<qt+1&&Ot.push([Jt]),Ot[qt][Ot[qt].length-1]!==Jt&&Ot[qt].push(Jt)},Kt=()=>{if(At>kt||kt>Rt){++kt,Dt="";return}if(typeof Dt=="string"?!isNaN(parseFloat(Dt))&&isFinite(Dt)?(Dt=parseFloat(Dt),Yt("number")):isNaN(Date.parse(Dt))?Yt("string"):(Dt=Dt.replace(/\//g,"-"),Yt("date")):Yt("number"),vt.length<qt+1&&vt.push([]),typeof Dt!="number"&&Mt.guessType(Dt)!=="number"&&Tt){let Jt=Dt;Dt=Dt.replace(Tt,"."),Mt.guessType(Dt)!=="number"&&(Dt=Jt)}vt[qt][xt]=Dt,Dt="",++qt,++kt};if(mt.trim().length&&mt.trim()[0]!=="#"){for(;Ct<mt.length;Ct++){if(Nt(Ct),It==="#"&&!/^#[A-F\d]{3,3}|[A-F\d]{6,6}/i.test(mt.substring(Ct))){Kt();return}if(It==='"')for(Nt(++Ct);Ct<mt.length&&It!=='"';)Dt+=It,Nt(++Ct);else It===zt?Kt():Dt+=It}Kt()}}guessDelimiter(mt){let xt=0,Mt=0,vt,Ot={",":0,";":0,"	":0},At=mt.length;for(let Rt=0;Rt<At;Rt++){let zt=!1,Tt,Ct,It,Dt="";if(Rt>13)break;let kt=mt[Rt];for(let qt=0;qt<kt.length&&(Tt=kt[qt],Ct=kt[qt+1],It=kt[qt-1],Tt!=="#");qt++){if(Tt==='"')if(zt){if(It!=='"'&&Ct!=='"'){for(;Ct===" "&&qt<kt.length;)Ct=kt[++qt];Ot[Ct]!==void 0&&Ot[Ct]++,zt=!1}}else zt=!0;else Ot[Tt]!==void 0?(isNaN(Date.parse(Dt=Dt.trim()))?(isNaN(Number(Dt))||!isFinite(Number(Dt)))&&Ot[Tt]++:Ot[Tt]++,Dt=""):Dt+=Tt;Tt===","&&Mt++,Tt==="."&&xt++}}return Ot[";"]>Ot[","]?vt=";":(Ot[","],Ot[";"],vt=","),xt>Mt?this.guessedDecimalPoint=".":this.guessedDecimalPoint=",",vt}getTable(){return lt.getTableFromColumns(this.columns,this.headers)}}return pt.defaultOptions={...lt.defaultOptions,lineDelimiter:`
`},pt}),nt(rt,"Data/Connectors/CSVConnector.js",[rt["Data/Converters/CSVConverter.js"],rt["Data/Connectors/DataConnector.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{merge:pt}=dt;class ht extends ut{constructor(xt){let Mt=pt(ht.defaultOptions,xt);super(Mt),this.converter=new lt(Mt),this.options=Mt,Mt.enablePolling&&this.startPolling(1e3*Math.max(Mt.dataRefreshRate||0,1))}load(xt){let Mt=this,vt=Mt.converter,Ot=Mt.table,{csv:At,csvURL:Rt,dataModifier:zt}=Mt.options;return Mt.emit({type:"load",csv:At,detail:xt,table:Ot}),Promise.resolve(Rt?fetch(Rt).then(Tt=>Tt.text()):At||"").then(Tt=>(Tt&&(Ot.deleteColumns(),vt.parse({csv:Tt}),Ot.setColumns(vt.getTable().getColumns())),Mt.setModifierOptions(zt).then(()=>Tt))).then(Tt=>(Mt.emit({type:"afterLoad",csv:Tt,detail:xt,table:Ot}),Mt)).catch(Tt=>{throw Mt.emit({type:"loadError",detail:xt,error:Tt,table:Ot}),Tt})}}return ht.defaultOptions={csv:"",csvURL:"",enablePolling:!1,dataRefreshRate:1,firstRowAsNames:!0},ut.registerType("CSV",ht),ht}),nt(rt,"Data/Converters/GoogleSheetsConverter.js",[rt["Data/Converters/DataConverter.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt,uniqueKey:pt}=ut;class ht extends lt{constructor(xt){let Mt=dt(ht.defaultOptions,xt);super(Mt),this.columns=[],this.header=[],this.options=Mt}parse(xt,Mt){let vt,Ot=dt(this.options,xt),At=(Ot.json&&Ot.json.values||[]).map(Rt=>Rt.slice());if(At.length===0)return!1;this.header=[],this.columns=[],this.emit({type:"parse",columns:this.columns,detail:Mt,headers:this.header}),this.columns=At;for(let Rt=0,zt=At.length;Rt<zt;Rt++){vt=At[Rt],this.header[Rt]=Ot.firstRowAsNames?`${vt.shift()}`:pt();for(let Tt=0,Ct=vt.length;Tt<Ct;++Tt)if(vt[Tt]&&typeof vt[Tt]=="string"){let It=this.asGuessedType(vt[Tt]);It instanceof Date&&(It=It.getTime()),this.columns[Rt][Tt]=It}}this.emit({type:"afterParse",columns:this.columns,detail:Mt,headers:this.header})}getTable(){return lt.getTableFromColumns(this.columns,this.header)}}return ht.defaultOptions={...lt.defaultOptions},ht}),nt(rt,"Data/Connectors/GoogleSheetsConnector.js",[rt["Data/Connectors/DataConnector.js"],rt["Data/Converters/GoogleSheetsConverter.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{merge:pt,pick:ht}=dt;class mt extends lt{constructor(Mt){let vt=pt(mt.defaultOptions,Mt);super(vt),this.converter=new ut(vt),this.options=vt}load(Mt){let vt=this,Ot=vt.converter,At=vt.table,{dataModifier:Rt,dataRefreshRate:zt,enablePolling:Tt,firstRowAsNames:Ct,googleAPIKey:It,googleSpreadsheetKey:Dt}=vt.options,kt=mt.buildFetchURL(It,Dt,vt.options);return vt.emit({type:"load",detail:Mt,table:At,url:kt}),fetch(kt).then(qt=>qt.json()).then(qt=>{if(typeof qt=="object"&&qt&&typeof qt.error=="object"&&qt.error&&typeof qt.error.code=="number"&&typeof qt.error.message=="string"&&typeof qt.error.status=="string")throw Error(qt.error.message);return Ot.parse({firstRowAsNames:Ct,json:qt}),At.deleteColumns(),At.setColumns(Ot.getTable().getColumns()),vt.setModifierOptions(Rt)}).then(()=>(vt.emit({type:"afterLoad",detail:Mt,table:At,url:kt}),Tt&&setTimeout(()=>vt.load(),1e3*Math.max(zt||0,1)),vt)).catch(qt=>{throw vt.emit({type:"loadError",detail:Mt,error:qt,table:At}),qt})}}return mt.defaultOptions={googleAPIKey:"",googleSpreadsheetKey:"",worksheet:1,enablePolling:!1,dataRefreshRate:2,firstRowAsNames:!0},function(xt){let Mt="ABCDEFGHIJKLMNOPQRSTUVWXYZ";function vt(Ot={}){let{endColumn:At,endRow:Rt,googleSpreadsheetRange:zt,startColumn:Tt,startRow:Ct}=Ot;return zt||(Mt[Tt||0]||"A")+(Math.max(Ct||0,0)+1)+":"+(Mt[ht(At,25)]||"Z")+(Rt?Math.max(Rt,0):"Z")}xt.buildFetchURL=function(Ot,At,Rt={}){return`https://sheets.googleapis.com/v4/spreadsheets/${At}/values/`+(Rt.onlyColumnNames?"A1:Z1":vt(Rt))+"?alt=json"+(Rt.onlyColumnNames?"":"&dateTimeRenderOption=FORMATTED_STRING&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE")+`&prettyPrint=false&key=${Ot}`},xt.buildQueryRange=vt}(mt||(mt={})),lt.registerType("GoogleSheets",mt),mt}),nt(rt,"Data/Converters/HTMLTableConverter.js",[rt["Data/Converters/DataConverter.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt){let xt=dt(pt.defaultOptions,mt);super(xt),this.columns=[],this.headers=[],this.options=xt,xt.tableElement&&(this.tableElement=xt.tableElement,this.tableElementID=xt.tableElement.id)}export(mt,xt=this.options){let Mt=xt.firstRowAsNames!==!1,vt=xt.useMultiLevelHeaders,Ot=mt.getSortedColumns(xt.usePresentationOrder),At=Object.keys(Ot),Rt=[],zt=At.length,Tt=[],Ct="";if(Mt){let Dt=[];if(vt){for(let kt of At){let qt=(Ot[kt].shift()||"").toString();Dt.push(qt)}Ct=this.getTableHeaderHTML(At,Dt,xt)}else Ct=this.getTableHeaderHTML(void 0,At,xt)}for(let Dt=0;Dt<zt;Dt++){let kt=Ot[At[Dt]],qt=kt.length;for(let Nt=0;Nt<qt;Nt++){let Yt=kt[Nt];Tt[Nt]||(Tt[Nt]=[]),typeof Yt=="string"||typeof Yt=="number"||Yt===void 0||(Yt=(Yt||"").toString()),Tt[Nt][Dt]=this.getCellHTMLFromValue(Dt?"td":"th",null,Dt?"":'scope="row"',Yt),Dt===zt-1&&Rt.push("<tr>"+Tt[Nt].join("")+"</tr>")}}let It="";return xt.tableCaption&&(It='<caption class="highcharts-table-caption">'+xt.tableCaption+"</caption>"),"<table>"+It+Ct+"<tbody>"+Rt.join("")+"</tbody></table>"}getCellHTMLFromValue(mt,xt,Mt,vt,Ot){let At=vt,Rt="text"+(xt?" "+xt:"");return typeof At=="number"?(At=At.toString(),Ot===","&&(At=At.replace(".",Ot)),Rt="number"):vt||(At="",Rt="empty"),"<"+mt+(Mt?" "+Mt:"")+' class="'+Rt+'">'+At+"</"+mt+">"}getTableHeaderHTML(mt=[],xt=[],Mt=this.options){let{useMultiLevelHeaders:vt,useRowspanHeaders:Ot}=Mt,At="<thead>",Rt=0,zt=xt&&xt.length,Tt,Ct=0,It;if(vt&&mt&&xt&&!function(Dt,kt){let qt=Dt.length;if(kt.length!==qt)return!1;for(;--qt;)if(Dt[qt]!==kt[qt])return!1;return!0}(mt,xt)){for(At+="<tr>";Rt<zt;++Rt)(Tt=mt[Rt])===mt[Rt+1]?++Ct:Ct?(At+=this.getCellHTMLFromValue("th","highcharts-table-topheading",'scope="col" colspan="'+(Ct+1)+'"',Tt),Ct=0):(Tt===xt[Rt]?Ot?(It=2,delete xt[Rt]):(It=1,xt[Rt]=""):It=1,At+=this.getCellHTMLFromValue("th","highcharts-table-topheading",'scope="col"'+(It>1?' valign="top" rowspan="'+It+'"':""),Tt));At+="</tr>"}if(xt){for(At+="<tr>",Rt=0,zt=xt.length;Rt<zt;++Rt)xt[Rt]!==void 0&&(At+=this.getCellHTMLFromValue("th",null,'scope="col"',xt[Rt]));At+="</tr>"}return At+"</thead>"}parse(mt,xt){let Mt=[],vt=[],Ot=dt(this.options,mt),{endRow:At,startColumn:Rt,endColumn:zt,firstRowAsNames:Tt}=Ot,Ct=Ot.tableElement||this.tableElement;if(!(Ct instanceof HTMLElement)){this.emit({type:"parseError",columns:Mt,detail:xt,headers:vt,error:"Not a valid HTML Table"});return}this.tableElement=Ct,this.tableElementID=Ct.id,this.emit({type:"parse",columns:this.columns,detail:xt,headers:this.headers});let It=Ct.getElementsByTagName("tr"),Dt=It.length,kt=0,qt,{startRow:Nt}=Ot;if(Tt&&Dt){let Yt=It[0].children,Kt=Yt.length;for(let Jt=Rt;Jt<Kt&&!(Jt>zt);Jt++)((qt=Yt[Jt]).tagName==="TD"||qt.tagName==="TH")&&vt.push(qt.innerHTML);Nt++}for(;kt<Dt;){if(kt>=Nt&&kt<=At){let Yt=It[kt].children,Kt=Yt.length,Jt=0;for(;Jt<Kt;){let Qt=Jt-Rt,Bt=Mt[Qt];if(((qt=Yt[Jt]).tagName==="TD"||qt.tagName==="TH")&&Jt>=Rt&&Jt<=zt){Mt[Qt]||(Mt[Qt]=[]);let Ft=this.asGuessedType(qt.innerHTML);Ft instanceof Date&&(Ft=Ft.getTime()),Mt[Qt][kt-Nt]=Ft;let $t=1;for(;kt-Nt>=$t&&Bt[kt-Nt-$t]===void 0;)Bt[kt-Nt-$t]=null,$t++}Jt++}}kt++}this.columns=Mt,this.headers=vt,this.emit({type:"afterParse",columns:Mt,detail:xt,headers:vt})}getTable(){return lt.getTableFromColumns(this.columns,this.headers)}}return pt.defaultOptions={...lt.defaultOptions,useRowspanHeaders:!0,useMultiLevelHeaders:!0},pt}),nt(rt,"Data/Connectors/HTMLTableConnector.js",[rt["Data/Connectors/DataConnector.js"],rt["Core/Globals.js"],rt["Data/Converters/HTMLTableConverter.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt){let{win:ht}=ut,{merge:mt}=pt;class xt extends lt{constructor(vt){let Ot=mt(xt.defaultOptions,vt);super(Ot),this.converter=new dt(Ot),this.options=Ot}load(vt){let Ot,At=this,Rt=At.converter,zt=At.table,{dataModifier:Tt,table:Ct}=At.options;if(At.emit({type:"load",detail:vt,table:zt,tableElement:At.tableElement}),typeof Ct=="string"?(At.tableID=Ct,Ot=ht.document.getElementById(Ct)):(Ot=Ct,At.tableID=Ot.id),At.tableElement=Ot||void 0,!At.tableElement){let It="HTML table not provided, or element with ID not found";return At.emit({type:"loadError",detail:vt,error:It,table:zt}),Promise.reject(Error(It))}return Rt.parse(mt({tableElement:At.tableElement},At.options),vt),zt.deleteColumns(),zt.setColumns(Rt.getTable().getColumns()),At.setModifierOptions(Tt).then(()=>(At.emit({type:"afterLoad",detail:vt,table:zt,tableElement:At.tableElement}),At))}}return xt.defaultOptions={table:""},lt.registerType("HTMLTable",xt),xt}),nt(rt,"Data/Converters/JSONConverter.js",[rt["Data/Converters/DataConverter.js"],rt["Data/DataTable.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{error:pt,isArray:ht,merge:mt,objectEach:xt}=dt;class Mt extends lt{constructor(Ot){let At=mt(Mt.defaultOptions,Ot);super(At),this.columns=[],this.headers=[],this.options=At,this.table=new ut}parse(Ot,At){let{beforeParse:Rt,orientation:zt,firstRowAsNames:Tt,columnNames:Ct}=Ot=mt(this.options,Ot),It=Ot.data;if(It){if(this.columns=[],this.emit({type:"parse",columns:this.columns,detail:At,headers:this.headers}),Rt&&(It=Rt(It)),It=It.slice(),zt==="columns")for(let Dt=0,kt=It.length;Dt<kt;Dt++){let qt=It[Dt];if(!(qt instanceof Array))return;this.headers instanceof Array?(Tt?this.headers.push(`${qt.shift()}`):Ct&&Ct instanceof Array&&this.headers.push(Ct[Dt]),this.table.setColumn(this.headers[Dt]||Dt.toString(),qt)):pt("JSONConverter: Invalid `columnNames` option.",!1)}else if(zt==="rows"){Tt?this.headers=It.shift():Ct&&(this.headers=Ct);for(let Dt=0,kt=It.length;Dt<kt;Dt++){let qt=It[Dt];if(ht(qt))for(let Nt=0,Yt=qt.length;Nt<Yt;Nt++)this.columns.length<Nt+1&&this.columns.push([]),this.columns[Nt].push(qt[Nt]),this.headers instanceof Array?this.table.setColumn(this.headers[Nt]||Nt.toString(),this.columns[Nt]):pt("JSONConverter: Invalid `columnNames` option.",!1);else{let Nt=this.headers;if(Nt&&!(Nt instanceof Array)){let Yt={};xt(Nt,(Kt,Jt)=>{Yt[Jt]=Kt.reduce((Qt,Bt)=>Qt[Bt],qt)}),qt=Yt}this.table.setRows([qt],Dt)}}}this.emit({type:"afterParse",columns:this.columns,detail:At,headers:this.headers})}}getTable(){return this.table}}return Mt.defaultOptions={...lt.defaultOptions,data:[],orientation:"rows"},Mt}),nt(rt,"Data/Connectors/JSONConnector.js",[rt["Data/Connectors/DataConnector.js"],rt["Core/Utilities.js"],rt["Data/Converters/JSONConverter.js"]],function(lt,ut,dt){let{merge:pt}=ut;class ht extends lt{constructor(xt){let Mt=pt(ht.defaultOptions,xt);super(Mt),this.converter=new dt(Mt),this.options=Mt,Mt.enablePolling&&this.startPolling(1e3*Math.max(Mt.dataRefreshRate||0,1))}load(xt){let Mt=this,vt=Mt.converter,Ot=Mt.table,{data:At,dataUrl:Rt,dataModifier:zt}=Mt.options;return Mt.emit({type:"load",data:At,detail:xt,table:Ot}),Promise.resolve(Rt?fetch(Rt).then(Tt=>Tt.json()):At||[]).then(Tt=>(Tt&&(Ot.deleteColumns(),vt.parse({data:Tt}),Ot.setColumns(vt.getTable().getColumns()),Ot.setRowKeysColumn(Tt.length)),Mt.setModifierOptions(zt).then(()=>Tt))).then(Tt=>(Mt.emit({type:"afterLoad",data:Tt,detail:xt,table:Ot}),Mt)).catch(Tt=>{throw Mt.emit({type:"loadError",detail:xt,error:Tt,table:Ot}),Tt})}}return ht.defaultOptions={data:[],enablePolling:!1,dataRefreshRate:0,firstRowAsNames:!0,orientation:"rows"},lt.registerType("JSON",ht),ht}),nt(rt,"Data/Modifiers/ChainModifier.js",[rt["Data/Modifiers/DataModifier.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt,...xt){super(),this.chain=xt,this.options=dt(pt.defaultOptions,mt);let Mt=this.options.chain||[];for(let vt=0,Ot=Mt.length,At,Rt;vt<Ot;++vt)(At=Mt[vt]).type&&(Rt=lt.types[At.type])&&xt.push(new Rt(At))}add(mt,xt){this.emit({type:"addModifier",detail:xt,modifier:mt}),this.chain.push(mt),this.emit({type:"addModifier",detail:xt,modifier:mt})}clear(mt){this.emit({type:"clearChain",detail:mt}),this.chain.length=0,this.emit({type:"afterClearChain",detail:mt})}modify(mt,xt){let Mt=this.options.reverse?this.chain.slice().reverse():this.chain.slice();mt.modified===mt&&(mt.modified=mt.clone(!1,xt));let vt=Promise.resolve(mt);for(let Ot=0,At=Mt.length;Ot<At;++Ot){let Rt=Mt[Ot];vt=vt.then(zt=>Rt.modify(zt.modified,xt))}return(vt=vt.then(Ot=>(mt.modified.deleteColumns(),mt.modified.setColumns(Ot.modified.getColumns()),mt))).catch(Ot=>{throw this.emit({type:"error",detail:xt,table:mt}),Ot})}modifyCell(mt,xt,Mt,vt,Ot){let At=this.options.reverse?this.chain.reverse():this.chain;if(At.length){let Rt=mt.clone();for(let zt=0,Tt=At.length;zt<Tt;++zt)At[zt].modifyCell(Rt,xt,Mt,vt,Ot),Rt=Rt.modified;mt.modified=Rt}return mt}modifyColumns(mt,xt,Mt,vt){let Ot=this.options.reverse?this.chain.reverse():this.chain.slice();if(Ot.length){let At=mt.clone();for(let Rt=0,zt=Ot.length;Rt<zt;++Rt)Ot[Rt].modifyColumns(At,xt,Mt,vt),At=At.modified;mt.modified=At}return mt}modifyRows(mt,xt,Mt,vt){let Ot=this.options.reverse?this.chain.reverse():this.chain.slice();if(Ot.length){let At=mt.clone();for(let Rt=0,zt=Ot.length;Rt<zt;++Rt)Ot[Rt].modifyRows(At,xt,Mt,vt),At=At.modified;mt.modified=At}return mt}modifyTable(mt,xt){this.emit({type:"modify",detail:xt,table:mt});let Mt=this.options.reverse?this.chain.reverse():this.chain.slice(),vt=mt.modified;for(let Ot=0,At=Mt.length;Ot<At;++Ot)vt=Mt[Ot].modifyTable(vt,xt).modified;return mt.modified=vt,this.emit({type:"afterModify",detail:xt,table:mt}),mt}remove(mt,xt){let Mt=this.chain;this.emit({type:"removeModifier",detail:xt,modifier:mt}),Mt.splice(Mt.indexOf(mt),1),this.emit({type:"afterRemoveModifier",detail:xt,modifier:mt})}}return pt.defaultOptions={type:"Chain"},lt.registerType("Chain",pt),pt}),nt(rt,"Data/Modifiers/InvertModifier.js",[rt["Data/Modifiers/DataModifier.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt){super(),this.options=dt(pt.defaultOptions,mt)}modifyCell(mt,xt,Mt,vt,Ot){let At=mt.modified,Rt=At.getRowIndexBy("columnNames",xt);return Rt===void 0?At.setColumns(this.modifyTable(mt.clone()).getColumns(),void 0,Ot):At.setCell(`${Mt}`,Rt,vt,Ot),mt}modifyColumns(mt,xt,Mt,vt){let Ot=mt.modified,At=Ot.getColumn("columnNames")||[],Rt=mt.getColumnNames(),zt=mt.getRowCount()!==At.length;if(!zt){for(let Tt=0,Ct=Rt.length;Tt<Ct;++Tt)if(Rt[Tt]!==At[Tt]){zt=!0;break}}if(zt)return this.modifyTable(mt,vt);Rt=Object.keys(xt);for(let Tt=0,Ct=Rt.length,It,Dt,kt;Tt<Ct;++Tt){It=xt[Dt=Rt[Tt]],kt=Ot.getRowIndexBy("columnNames",Dt)||Ot.getRowCount();for(let qt=0,Nt=Mt,Yt=It.length;qt<Yt;++qt,++Nt)Ot.setCell(`${Nt}`,kt,It[qt],vt)}return mt}modifyRows(mt,xt,Mt,vt){let Ot=mt.getColumnNames(),At=mt.modified,Rt=At.getColumn("columnNames")||[],zt=mt.getRowCount()!==Rt.length;if(!zt){for(let Tt=0,Ct=Ot.length;Tt<Ct;++Tt)if(Ot[Tt]!==Rt[Tt]){zt=!0;break}}if(zt)return this.modifyTable(mt,vt);for(let Tt=0,Ct=Mt,It=xt.length,Dt;Tt<It;++Tt,++Ct)if((Dt=xt[Tt])instanceof Array)At.setColumn(`${Ct}`,Dt);else for(let kt=0,qt=Ot.length;kt<qt;++kt)At.setCell(`${Ct}`,kt,Dt[Ot[kt]],vt);return mt}modifyTable(mt,xt){this.emit({type:"modify",detail:xt,table:mt});let Mt=mt.modified;if(mt.hasColumns(["columnNames"])){let vt=((mt.deleteColumns(["columnNames"])||{}).columnNames||[]).map(At=>`${At}`),Ot={};for(let At=0,Rt=mt.getRowCount(),zt;At<Rt;++At)(zt=mt.getRow(At))&&(Ot[vt[At]]=zt);Mt.deleteColumns(),Mt.setColumns(Ot)}else{let vt={};for(let Ot=0,At=mt.getRowCount(),Rt;Ot<At;++Ot)(Rt=mt.getRow(Ot))&&(vt[`${Ot}`]=Rt);vt.columnNames=mt.getColumnNames(),Mt.deleteColumns(),Mt.setColumns(vt)}return this.emit({type:"afterModify",detail:xt,table:mt}),mt}}return pt.defaultOptions={type:"Invert"},lt.registerType("Invert",pt),pt}),nt(rt,"Data/Modifiers/RangeModifier.js",[rt["Data/Modifiers/DataModifier.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt}=ut;class pt extends lt{constructor(mt){super(),this.options=dt(pt.defaultOptions,mt)}modifyTable(mt,xt){this.emit({type:"modify",detail:xt,table:mt});let{additive:Mt,ranges:vt,strict:Ot}=this.options;if(vt.length){let At=mt.modified,Rt=mt.getColumns(),zt=[];for(let Tt=0,Ct=vt.length,It,Dt;Tt<Ct;++Tt)if(It=vt[Tt],!Ot||typeof It.minValue==typeof It.maxValue){Tt>0&&!Mt&&(At.deleteRows(),At.setRows(zt),Rt=At.getColumns(),zt=[]),Dt=Rt[It.column]||[];for(let kt=0,qt=Dt.length,Nt,Yt;kt<qt;++kt){switch(typeof(Nt=Dt[kt])){default:continue;case"boolean":case"number":case"string":}(!Ot||typeof Nt==typeof It.minValue)&&Nt>=It.minValue&&Nt<=It.maxValue&&(Yt=Mt?mt.getRow(kt):At.getRow(kt))&&zt.push(Yt)}}At.deleteRows(),At.setRows(zt)}return this.emit({type:"afterModify",detail:xt,table:mt}),mt}}return pt.defaultOptions={type:"Range",ranges:[]},lt.registerType("Range",pt),pt}),nt(rt,"Data/Modifiers/SortModifier.js",[rt["Data/Modifiers/DataModifier.js"],rt["Data/DataTable.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{merge:pt}=dt;class ht extends lt{static ascending(xt,Mt){return(xt||0)<(Mt||0)?-1:(xt||0)>(Mt||0)?1:0}static descending(xt,Mt){return(Mt||0)<(xt||0)?-1:(Mt||0)>(xt||0)?1:0}constructor(xt){super(),this.options=pt(ht.defaultOptions,xt)}getRowReferences(xt){let Mt=xt.getRows(),vt=[];for(let Ot=0,At=Mt.length;Ot<At;++Ot)vt.push({index:Ot,row:Mt[Ot]});return vt}modifyCell(xt,Mt,vt,Ot,At){let{orderByColumn:Rt,orderInColumn:zt}=this.options;return Mt===Rt&&(zt?(xt.modified.setCell(Mt,vt,Ot),xt.modified.setColumn(zt,this.modifyTable(new ut({columns:xt.getColumns([Rt,zt])})).modified.getColumn(zt))):this.modifyTable(xt,At)),xt}modifyColumns(xt,Mt,vt,Ot){let{orderByColumn:At,orderInColumn:Rt}=this.options,zt=Object.keys(Mt);return zt.indexOf(At)>-1&&(Rt&&Mt[zt[0]].length?(xt.modified.setColumns(Mt,vt),xt.modified.setColumn(Rt,this.modifyTable(new ut({columns:xt.getColumns([At,Rt])})).modified.getColumn(Rt))):this.modifyTable(xt,Ot)),xt}modifyRows(xt,Mt,vt,Ot){let{orderByColumn:At,orderInColumn:Rt}=this.options;return Rt&&Mt.length?(xt.modified.setRows(Mt,vt),xt.modified.setColumn(Rt,this.modifyTable(new ut({columns:xt.getColumns([At,Rt])})).modified.getColumn(Rt))):this.modifyTable(xt,Ot),xt}modifyTable(xt,Mt){this.emit({type:"modify",detail:Mt,table:xt});let vt=xt.getColumnNames(),Ot=xt.getRowCount(),At=this.getRowReferences(xt),{direction:Rt,orderByColumn:zt,orderInColumn:Tt}=this.options,Ct=Rt==="asc"?ht.ascending:ht.descending,It=vt.indexOf(zt),Dt=xt.modified;if(It!==-1&&At.sort((kt,qt)=>Ct(kt.row[It],qt.row[It])),Tt){let kt=[];for(let qt=0;qt<Ot;++qt)kt[At[qt].index]=qt;Dt.setColumns({[Tt]:kt})}else{let kt=[];for(let qt=0;qt<Ot;++qt)kt.push(At[qt].row);Dt.setRows(kt,0)}return this.emit({type:"afterModify",detail:Mt,table:xt}),xt}}return ht.defaultOptions={type:"Sort",direction:"desc",orderByColumn:"y"},lt.registerType("Sort",ht),ht}),nt(rt,"masters/datagrid.src.js",[rt["Core/Renderer/HTML/AST.js"],rt["Data/Connectors/DataConnector.js"],rt["Data/DataCursor.js"],rt["DataGrid/DataGrid.js"],rt["Data/Modifiers/DataModifier.js"],rt["Data/DataPool.js"],rt["Data/DataTable.js"],rt["DataGrid/Globals.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt){return Mt.AST=lt,Mt.DataConnector=ut,Mt.DataCursor=dt,Mt.DataGrid=pt,Mt.dataGrid=pt.dataGrid,Mt.DataModifier=ht,Mt.DataPool=mt,Mt.DataTable=xt,Mt.win.DataGrid||(Mt.win.DataGrid=Mt),Mt}),rt["masters/datagrid.src.js"]._modules=rt,rt["masters/datagrid.src.js"]})})(datagrid);var datagridExports=datagrid.exports;const DataGrid=getDefaultExportFromCjs$1(datagridExports);var layout={exports:{}};(function(et){(function(tt){et.exports?(tt.default=tt,et.exports=tt):tt(typeof Dashboards<"u"?Dashboards:void 0)})(function(tt){var rt=tt?tt._modules:{};function nt(lt,ut,dt,pt){lt.hasOwnProperty(ut)||(lt[ut]=pt.apply(null,dt),typeof CustomEvent=="function"&&tt.win.dispatchEvent(new CustomEvent("DashboardsModuleLoaded",{detail:{path:ut,module:lt[ut]}})))}nt(rt,"Dashboards/EditMode/EditRenderer.js",[rt["Dashboards/EditMode/EditGlobals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{merge:dt,createElement:pt,defined:ht}=ut;function mt(It,Dt){let kt,qt=Dt.options.contextMenu;return qt&&(kt=pt("button",{className:lt.classNames.contextMenuBtn,onclick:function(Nt){Nt.stopPropagation(),Dt.onContextBtnClick()}},{},It),qt.icon&&pt("img",{src:qt.icon,className:lt.classNames.icon},{},kt),qt.text&&pt("span",{className:lt.classNames.contextMenuBtnText,textContent:qt.text},{},kt),kt.setAttribute("aria-label",Dt.lang.accessibility.contextMenu.button),kt.setAttribute("aria-expanded","false")),kt}function xt(It,Dt){let kt,{name:qt,showToggle:Nt,onchange:Yt,isEnabled:Kt,isNested:Jt,isStandalone:Qt,lang:Bt}=Dt,Ft=pt("div",{className:lt.classNames[Jt?"accordionNestedWrapper":"accordionContainer"]+" "+lt.classNames.collapsableContentHeader},{},It),$t=pt("div",{className:lt.classNames.accordionHeader},{},Ft);Qt||(kt=pt("button",{className:lt.classNames.accordionHeaderBtn},{},$t)),pt("span",{textContent:Bt[qt]||qt},{},kt),Nt&&vt($t,{enabledOnOffLabels:!0,id:qt,name:"",onchange:Yt,value:Kt||!1,lang:Bt});let jt=pt("span",{className:lt.classNames.accordionHeaderIcon+" "+lt.classNames.collapsedElement},{},kt),Wt=pt("div",{className:lt.classNames.accordionContent+" "+(Qt?lt.classNames.standaloneElement:lt.classNames.hiddenElement)},{},Ft);return kt==null||kt.addEventListener("click",function(){Wt.classList.toggle(lt.classNames.hiddenElement),jt.classList.toggle(lt.classNames.collapsedElement)}),{outerElement:Ft,content:Wt}}function Mt(It,Dt){let kt;if(!It)return;Dt.name&&Ot(It,{title:Dt.name,isLabel:!0});let qt=Dt.iconsURLPrefix||"",Nt=pt("div",{className:lt.classNames.dropdown+" "+lt.classNames.collapsableContentHeader},{},It),Yt=pt("button",{className:lt.classNames.dropdownButton},{},Nt),Kt=pt("div",{className:lt.classNames.dropdownButtonContent},{},Yt),Jt=(ut.find(Dt.selectOptions,$t=>$t.name===Dt.value)||{}).iconURL;Jt&&(kt=pt("img",{src:qt+Jt,className:lt.classNames.icon},{},Kt));let Qt=pt("span",{textContent:Dt.value,id:Dt.id||""},{},Kt),Bt=pt("img",{className:lt.classNames.dropdownIcon+" "+lt.classNames.collapsedElement,src:qt+"dropdown-pointer.svg"},{},Yt),Ft=pt("ul",{className:lt.classNames.dropdownContent+" "+lt.classNames.hiddenElement},{},Nt);Yt.addEventListener("click",function(){Ft.classList.toggle(lt.classNames.hiddenElement),Bt.classList.toggle(lt.classNames.collapsedElement)});for(let $t=0,jt=Dt.selectOptions.length;$t<jt;++$t)(function(Wt,Ut,Vt,Ht,Gt,Zt,Xt){let er=Wt.iconsURLPrefix+Wt.iconURL,nr=pt("li",{},{},Ut),or=pt("button",{className:lt.classNames.customSelectButton},{},nr);Wt.iconURL&&pt("img",{src:er},{},or),pt("span",{textContent:Wt.name||""},{},or),or.addEventListener("click",function(){if(Ut.classList.add(lt.classNames.hiddenElement),Gt.classList.toggle(lt.classNames.collapsedElement),Vt.textContent=Wt.name||"",Zt&&Wt.iconURL&&(Zt.src=er),Xt)return Xt(Wt.name)})})(dt(Dt.selectOptions[$t]||{},{iconsURLPrefix:qt}),Ft,Qt,Dt.id,Bt,kt,Dt.onchange);return Nt}function vt(It,Dt){if(!It)return;let kt=Dt.lang,qt=Dt.value,Nt=Dt.title||Dt.name,Yt=Dt.langKey,Kt=pt("button",{className:lt.classNames.toggleContainer,type:"button",role:"switch",ariaChecked:!1,ariaLabel:Yt?kt.accessibility[Yt][Dt.name]:""},{},It);Nt&&Ot(Kt,{title:Nt}),Dt.enabledOnOffLabels&&Ot(Kt,{title:kt.off,className:lt.classNames.toggleLabels});let Jt=pt("label",{className:lt.classNames.toggleWrapper+" "+(Dt.className||"")},{},Kt),Qt=Tt(Jt,qt),Bt=Dt.onchange;Bt&&Kt.addEventListener("click",$t=>{Bt(!Qt.checked),Qt.checked=!Qt.checked,Kt.setAttribute("aria-checked",Qt.checked),$t.stopPropagation()});let Ft=pt("span",{className:lt.classNames.toggleSlider},{},Jt);return Bt&&Ft.addEventListener("click",$t=>{$t.preventDefault()}),Dt.enabledOnOffLabels&&Ot(Kt,{title:kt.on,className:lt.classNames.toggleLabels}),Kt}function Ot(It,Dt){let kt,{title:qt,className:Nt,isLabel:Yt}=Dt;if(It){let Kt=Yt?{htmlFor:qt}:{};kt=pt(Yt?"label":"div",{className:lt.classNames.labelText+" "+(Nt||""),textContent:qt,...Kt},{},It)}return kt}function At(It,Dt){let{icon:kt,callback:qt}=Dt;if(!It)return;let Nt=pt("div",{onclick:qt,className:Dt.className||""},{},It);Nt.style["background-image"]="url("+kt+")";let Yt=Dt.mousedown,Kt=Dt.click;return Yt&&(Nt.onmousedown=function(){Yt.apply(this,arguments)}),Kt&&Nt.addEventListener("click",function(){Kt.apply(this,arguments)}),Nt}function Rt(It,Dt){if(!It)return;Dt.name&&Ot(It,{title:Dt.name,isLabel:!0});let kt=pt("input",{type:"text",onclick:Dt.callback,id:Dt.id||"",name:Dt.name||"",value:ht(Dt.value)&&Dt.value.toString().replace(/\"/g,"")||""},{},It),qt=Dt.onchange;return qt&&kt.addEventListener("change",function(Nt){qt(Nt.target.value)}),kt}function zt(It,Dt){if(!It)return;Dt.name&&Ot(It,{title:Dt.name,isLabel:!0});let kt=pt("textarea",{id:Dt.id,name:Dt.name,value:Dt.value||""},{},It),qt=Dt.onchange;return qt&&kt.addEventListener("change",function(Nt){qt(Nt.target.value)}),kt}function Tt(It,Dt){let kt;return It&&(kt=pt("input",{type:"checkbox",checked:!!Dt},{},It)),kt}function Ct(It,Dt){if(!It)return;let kt=pt("button",{className:lt.classNames.button+" "+(Dt.className||""),onclick:Dt.callback,textContent:Dt.text},Dt.style||{},It);return Dt.icon&&(kt.style["background-image"]="url("+Dt.icon+")"),kt}return{renderSelect:Mt,renderToggle:vt,renderText:Ot,renderCollapseHeader:xt,renderIcon:At,renderContextButton:mt,renderInput:Rt,renderTextarea:zt,renderCheckbox:Tt,renderButton:Ct,getRendererFunction:function(It){return{select:Mt,toggle:vt,text:Ot,collapse:xt,icon:At,contextButton:mt,input:Rt,textarea:zt,checkbox:Tt,button:Ct}[It]}}}),nt(rt,"Dashboards/EditMode/Menu/MenuItem.js",[rt["Dashboards/EditMode/EditGlobals.js"],rt["Core/Utilities.js"],rt["Dashboards/EditMode/EditRenderer.js"]],function(lt,ut,dt){let{createElement:pt,merge:ht}=ut;class mt{constructor(Mt,vt){this.menu=Mt,this.isActive=!1,this.options=ht(mt.defaultOptions,vt),this.container=this.setContainer(),this.innerElement=this.setInnerElement()}setContainer(){let Mt=this.options,vt=lt.classNames.menuItem;return this.menu.options.itemsClassName&&(vt+=" "+this.menu.options.itemsClassName),Mt.className&&(vt+=" "+Mt.className),pt("div",{className:vt||""},ht(this.options.style||{},this.isActive?{display:"block"}:{}),this.menu.container)}setInnerElement(){var At,Rt,zt,Tt,Ct,It,Dt,kt;let Mt=this.options,vt=this.container,Ot=Mt.langKey;return Mt.type==="toggle"?dt.renderToggle(vt,{id:Mt.id,name:Mt.id,title:Ot?this.menu.editMode.lang[Ot]:Mt.text,value:!!(Mt.getValue&&Mt.getValue(this)),lang:this.menu.editMode.lang,langKey:Ot,onchange:(Rt=(At=Mt.events)==null?void 0:At.click)==null?void 0:Rt.bind(this)}):Mt.type==="text"?dt.renderText(vt,{title:Ot?this.menu.editMode.lang[Ot]:Mt.text||"",className:Mt.className||""}):Mt.type==="icon"?dt.renderIcon(vt,{icon:Mt.icon||"",mousedown:(Tt=(zt=Mt.events)==null?void 0:zt.onmousedown)==null?void 0:Tt.bind(this),click:(It=(Ct=Mt.events)==null?void 0:Ct.click)==null?void 0:It.bind(this)}):Mt.type==="button"?dt.renderButton(vt,{callback:(kt=(Dt=Mt.events)==null?void 0:Dt.click)==null?void 0:kt.bind(this),className:Mt.className||"",style:Mt.style||{},text:Ot?this.menu.editMode.lang[Ot]:Mt.text||""}):void 0}update(){let Mt=this.options;Mt.events&&Mt.events.update&&Mt.events.update.apply(this,arguments)}activate(){this.update(),this.container&&(this.isActive=!0,this.container.style.display="block")}deactivate(){this.container&&(this.isActive=!1,this.container.style.display="none")}}return mt.defaultOptions={id:"",type:"text"},mt}),nt(rt,"Dashboards/EditMode/Menu/MenuItemBindings.js",[],function(){return{viewFullscreen:{id:"viewFullscreen",type:"button",langKey:"viewFullscreen",events:{click:function(){let lt=this.menu.editMode.board.fullscreen;lt&&lt.toggle()}}}}}),nt(rt,"Dashboards/EditMode/Menu/Menu.js",[rt["Dashboards/EditMode/EditGlobals.js"],rt["Core/Utilities.js"],rt["Dashboards/EditMode/Menu/MenuItem.js"],rt["Dashboards/EditMode/Menu/MenuItemBindings.js"]],function(lt,ut,dt,pt){let{createElement:ht,merge:mt}=ut;class xt{constructor(vt,Ot,At,Rt){this.parentElement=vt,this.isVisible=!1,this.activeItems=[],this.options=Ot,this.items={},this.editMode=At,Rt&&(this.parent=Rt),this.container=this.setContainer()}setContainer(){return ht("div",{className:lt.classNames.menu+" "+(this.options.className||"")},{},this.parentElement)}initItems(vt,Ot){let At,Rt,zt,Tt,Ct=this.options.items||[];for(let It=0,Dt=Ct.length;It<Dt;++It)At=typeof(Rt=Ct[It])=="string"?vt[Rt]:Rt.id?vt[Rt.id]:{},(Tt=typeof Rt=="string"?mt(At,{id:Rt}):mt(At,Rt)).id&&(zt=new dt(this,Tt),this.items[zt.options.id]=zt,Ot&&(zt.activate(),this.activeItems.push(zt)))}setActiveItems(vt){let Ot;for(let At=0,Rt=this.activeItems.length;At<Rt;++At)vt.indexOf(this.activeItems[At].options.id)===-1&&this.activeItems[At].deactivate();this.activeItems.length=0;for(let At=0,Rt=vt.length;At<Rt;++At)(Ot=this.items[vt[At]])&&(Ot.isActive?Ot.update():Ot.activate(),this.activeItems.push(Ot))}deactivateActiveItems(){for(let vt=0,Ot=this.activeItems.length;vt<Ot;++vt)this.activeItems[vt].deactivate()}updateActiveItems(){let vt=this.activeItems;for(let Ot=0,At=vt.length;Ot<At;++Ot)vt[Ot].update()}destroy(){this.activeItems.length=0,this.container.remove(),this.items={},this.options={}}}return xt.items=pt,xt}),nt(rt,"Dashboards/EditMode/Toolbar/EditToolbar.js",[rt["Core/Utilities.js"],rt["Dashboards/EditMode/Menu/Menu.js"]],function(lt,ut){let{defined:dt,createElement:pt,css:ht}=lt;return class{constructor(mt,xt){this.container=pt("div",{className:xt.className},void 0,mt.board.container),this.editMode=mt,this.iconURLPrefix=mt.iconsURLPrefix,this.menu=new ut(this.container,xt.menu,mt,this),this.options=xt,this.isVisible=!1,this.options.outline&&(this.outline=pt("div",{className:xt.outlineClassName},void 0,this.container))}hide(){this.setPosition(void 0,void 0)}refreshOutline(mt,xt,Mt,vt=0){let Ot=(Mt||{}).container;this.outline&&Ot&&ht(this.outline,{display:"block",left:mt-vt+"px",top:xt-vt+"px",width:Ot.offsetWidth+2*vt+"px",height:Ot.offsetHeight+2*vt+"px"})}hideOutline(){this.outline&&(this.outline.style.display="none")}setPosition(mt,xt){this.container&&ht(this.container,{left:(mt||"-9999")+"px",top:(xt||"-9999")+"px"}),this.isVisible=dt(mt)&&dt(xt)}}}),nt(rt,"Dashboards/EditMode/Toolbar/CellEditToolbar.js",[rt["Dashboards/Layout/Cell.js"],rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/EditMode/Toolbar/EditToolbar.js"],rt["Dashboards/Layout/GUIElement.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht){let{merge:mt,fireEvent:xt,objectEach:Mt}=ht;class vt extends dt{static getItemsConfig(At,Rt){var Tt,Ct;let zt=[];return(Tt=At.dragDrop)!=null&&Tt.enabled&&zt.push({id:"drag",type:"icon",icon:Rt+"drag.svg",events:{onmousedown:function(It){let Dt=this.menu.parent,kt=Dt.editMode.dragDrop;kt&&Dt.cell&&Dt.cell instanceof lt&&kt.onDragStart(It,Dt.cell)}}}),(Ct=At.settings)!=null&&Ct.enabled&&zt.push({id:"settings",type:"icon",icon:Rt+"settings.svg",events:{click:function(){this.menu.parent.editMode.setEditOverlay(),this.menu.parent.onCellOptions()}}}),zt.push({id:"destroy",type:"icon",className:ut.classNames.menuDestroy,icon:Rt+"destroy.svg",events:{click:function(){let It=this.menu.parent,Dt=this.menu.parent.editMode,kt=Dt.confirmationPopup;kt.show({confirmButton:{value:Dt.lang.confirmButton,callback:It.onCellDestroy,context:It},cancelButton:{value:Dt.lang.cancelButton,callback:()=>{kt.closePopup()}},text:Dt.lang.confirmDestroyCell})}}}),zt}constructor(At){super(At,mt(vt.defaultOptions,(At.options.toolbars||{}).cell,{menu:{items:vt.getItemsConfig(At.options,At.iconsURLPrefix)}})),At.customHTMLMode&&this.filterOptionsAvailableInCustomHTMLMode(),this.menu.initItems({})}showToolbar(At){let Rt=At.container,zt=this.editMode.cellToolbar;if(zt)if(Rt&&this.editMode.isActive()&&!(this.editMode.dragDrop||{}).isActive){let Tt=pt.getOffsets(At,this.editMode.board.container),Ct=Tt.right-30-10,It=Tt.top+10;Mt(this.menu.items,Dt=>{Dt.activate()}),this.setPosition(Ct,It),this.cell=At,this.refreshOutline(),zt.isVisible=!0}else this.isVisible&&(this.hide(),zt.isVisible=!1)}refreshOutline(){this.cell&&this.cell.container&&this.outline&&super.refreshOutline(-this.cell.container.offsetWidth,0,this.cell,-1)}onCellOptions(){let At=this.editMode;At.sidebar&&(At.sidebar.show(this.cell),this.highlightCell())}onCellDestroy(){if(this.cell&&this.cell instanceof lt){let At=this.cell.row,Rt=this.cell.id;this.resetEditedCell(),this.cell.destroy(),this.cell=void 0,this.editMode.hideToolbars(["cell","row"]),At&&At.cells&&At.cells.length&&(xt(this.editMode.board,"cellResize",{cell:At.cells[0]}),xt(At,"cellChange",{cell:At.cells[0],row:At}),xt(this.editMode,"layoutChanged",{type:"cellDestroyed",target:Rt,board:this.editMode.board}))}}resetEditedCell(){this.editedCell=void 0}filterOptionsAvailableInCustomHTMLMode(){var At;this.options.menu.items=(At=this.options.menu.items)==null?void 0:At.filter(Rt=>typeof Rt!="string"&&Rt.id==="settings")}highlightCell(){this.cell&&(this.cell.setHighlight?this.cell.setHighlight():(this.cell.container.classList.add(ut.classNames.cellEditHighlight),this.editMode.board.container.classList.add(ut.classNames.dashboardCellEditHighlightActive)))}}return vt.defaultOptions={enabled:!0,className:ut.classNames.editToolbar,outline:!1,outlineClassName:ut.classNames.editToolbarCellOutline,menu:{className:ut.classNames.editToolbarCell,itemsClassName:ut.classNames.editToolbarItem,items:[]}},vt}),nt(rt,"Dashboards/EditMode/Toolbar/RowEditToolbar.js",[rt["Core/Utilities.js"],rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/EditMode/Toolbar/EditToolbar.js"],rt["Dashboards/Layout/GUIElement.js"]],function(lt,ut,dt,pt){let{fireEvent:ht,merge:mt,objectEach:xt}=lt;class Mt extends dt{static getMenuItemsConfig(Ot,At){var zt;let Rt=[];return(zt=Ot.dragDrop)!=null&&zt.enabled&&Rt.push({id:"drag",type:"icon",icon:At+"drag.svg",events:{onmousedown:function(Tt){let Ct=this.menu.parent,It=Ct.editMode.dragDrop;Tt.preventDefault(),It&&Ct.row&&It.onDragStart(Tt,Ct.row)}}}),Rt.push({id:"destroy",type:"icon",className:ut.classNames.menuDestroy,icon:At+"destroy.svg",events:{click:function(){let Tt=this.menu.parent,Ct=this.menu.parent.editMode,It=Ct.confirmationPopup;It.show({confirmButton:{value:Ct.lang.confirmButton,callback:Tt.onRowDestroy,context:Tt},cancelButton:{value:Ct.lang.cancelButton,callback:()=>{It.closePopup()}},text:Ct.lang.confirmDestroyRow})}}}),Rt}constructor(Ot){super(Ot,mt(Mt.defaultOptions,(Ot.options.toolbars||{}).row,{menu:{items:Mt.getMenuItemsConfig(Ot.options,Ot.iconsURLPrefix)}})),this.menu.initItems({})}refreshOutline(Ot,At){this.row&&this.row.container&&super.refreshOutline(Ot,At,this.row,2)}showToolbar(Ot){let At,Rt,zt,Tt=Ot.container,Ct=this.editMode.rowToolbar;if(Ct)if(Tt&&this.editMode.isActive()&&!(this.editMode.dragDrop||{}).isActive){let It=pt.getOffsets(Ot,this.editMode.board.container),Dt=It.right-It.left;xt(this.menu.items,kt=>{kt.activate()}),zt=Dt/2-this.container.clientWidth/2,At=It.left+zt,Rt=It.top-this.container.clientHeight,this.setPosition(At,Rt),this.row=Ot,this.refreshOutline(-zt,this.container.clientHeight),Ct.isVisible=!0}else this.isVisible&&(this.hide(),Ct.isVisible=!1)}onRowOptions(){this.editMode.sidebar&&this.editMode.sidebar.show(this.row)}onRowDestroy(){if(this.row){let Ot=this.row.options.id||-1;this.resetEditedRow(),this.row.destroy(),this.row=void 0,this.editMode.hideToolbars(["cell","row"]),ht(this.editMode,"layoutChanged",{type:"rowDestroyed",target:Ot,board:this.editMode.board})}}resetEditedRow(){this.editedRow=void 0}}return Mt.defaultOptions={enabled:!0,className:ut.classNames.editToolbar,outline:!0,outlineClassName:ut.classNames.editToolbarRowOutline,menu:{className:ut.classNames.editToolbarRow,itemsClassName:ut.classNames.editToolbarItem,items:[]}},Mt}),nt(rt,"Shared/BaseForm.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Utilities.js"]],function(lt,ut){let{addEvent:dt,createElement:pt}=ut;return class{constructor(ht,mt){this.iconsURL=mt,this.container=this.createPopupContainer(ht),this.closeButton=this.addCloseButton()}createPopupContainer(ht,mt="highcharts-popup highcharts-no-tooltip"){return pt("div",{className:mt},void 0,ht)}addCloseButton(ht="highcharts-popup-close"){let mt=this,xt=this.iconsURL,Mt=pt("button",{className:ht},void 0,this.container);return Mt.style["background-image"]="url("+(xt.match(/png|svg|jpeg|jpg|gif/ig)?xt:xt+"close.svg")+")",["click","touchstart"].forEach(vt=>{dt(Mt,vt,mt.closeButtonEvents.bind(mt))}),dt(document,"keydown",function(vt){vt.code==="Escape"&&mt.closeButtonEvents()}),Mt}closeButtonEvents(){this.closePopup()}showPopup(ht="highcharts-annotation-toolbar"){let mt=this.container,xt=this.closeButton;this.type=void 0,mt.innerHTML=lt.emptyHTML,mt.className.indexOf(ht)>=0&&(mt.classList.remove(ht),mt.removeAttribute("style")),mt.appendChild(xt),mt.style.display="block",mt.style.height=""}closePopup(){this.container.style.display="none"}}}),nt(rt,"Dashboards/EditMode/ConfirmationPopup.js",[rt["Core/Utilities.js"],rt["Shared/BaseForm.js"],rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/EditMode/EditRenderer.js"]],function(lt,ut,dt,pt){let{createElement:ht}=lt;return class extends ut{constructor(mt,xt,Mt,vt){super(mt,xt=vt&&vt.close&&vt.close.icon?vt.close.icon:xt),this.editMode=Mt,this.options=vt}createPopupContainer(mt,xt=dt.classNames.confirmationPopup){return super.createPopupContainer(mt,xt)}addCloseButton(mt=dt.classNames.popupCloseButton){return super.addCloseButton(mt)}closeButtonEvents(){var xt;let mt=(xt=this.contentOptions)==null?void 0:xt.cancelButton.callback;mt&&mt()}renderContent(){let mt=this.contentOptions;if(!mt)return;this.contentContainer=ht("div",{className:dt.classNames.popupContentContainer},{},this.container);let xt=this.contentContainer.parentNode;xt.style.marginTop="0px";let Mt=xt.getBoundingClientRect().top;xt.style.marginTop=(Mt<0?Math.abs(Mt-200):200)+"px",pt.renderText(this.contentContainer,{title:mt.text||""}),this.buttonContainer=ht("div",{className:dt.classNames.popupButtonContainer},{},this.container),pt.renderButton(this.buttonContainer,{text:mt.cancelButton.value,className:dt.classNames.popupCancelBtn,callback:mt.cancelButton.callback}),pt.renderButton(this.buttonContainer,{text:mt.confirmButton.value,className:dt.classNames.popupConfirmBtn,callback:()=>{mt.confirmButton.callback.call(mt.confirmButton.context),this.closePopup()}})}show(mt){this.contentOptions=mt,this.showPopup(),this.renderContent(),this.editMode.setEditOverlay()}closePopup(){super.closePopup(),this.editMode.setEditOverlay(!0)}}}),nt(rt,"Dashboards/EditMode/AccordionMenu.js",[rt["Dashboards/EditMode/EditRenderer.js"],rt["Core/Utilities.js"],rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/EditMode/ConfirmationPopup.js"]],function(lt,ut,dt,pt){let{createElement:ht,merge:mt,error:xt,fireEvent:Mt}=ut;return class{constructor(vt,Ot){this.changedOptions={},this.chartOptionsJSON={},this.oldOptionsBuffer={},this.waitingForConfirmation=!1,this.iconsURLPrefix=vt,this.closeSidebar=Ot}renderContent(vt,Ot){var Dt,kt,qt;let At,Rt,{editMode:zt}=Ot.board,Tt=Ot.editableOptions.getOptions();this.component=Ot,this.oldOptionsBuffer=mt({},Ot.options),zt&&(this.confirmationPopup=new pt(Ot.board.container,zt.iconsURLPrefix,zt,{close:{icon:""}}));let Ct=ht("div",{className:dt.classNames.accordionMenu},{},vt);for(let Nt=0,Yt=Tt.length;Nt<Yt;Nt++)At=Tt[Nt],Rt=lt.renderCollapseHeader(Ct,mt({iconsURLPrefix:this.iconsURLPrefix,lang:(((Dt=Ot.board)==null?void 0:Dt.editMode)||dt).lang},At)).content,this.renderAccordion(At,Rt,Ot);let It=ht("div",{className:dt.classNames.accordionMenuButtonsContainer},{},Ct);lt.renderButton(It,{text:(((kt=Ot.board)==null?void 0:kt.editMode)||dt).lang.confirmButton,className:dt.classNames.popupConfirmBtn,callback:async()=>{await this.confirmChanges()}}),lt.renderButton(It,{text:(((qt=Ot.board)==null?void 0:qt.editMode)||dt).lang.cancelButton,className:dt.classNames.popupCancelBtn,callback:()=>{this.cancelChanges()}})}updateOptions(vt,Ot){var It,Dt;let At,Rt,zt=vt.length-1,Tt=this.changedOptions;if(zt===0&&vt[0]==="chartOptions")try{let kt=JSON.parse(Ot);this.chartOptionsJSON=kt}catch(kt){xt(`Dashboards Error: Wrong JSON config structure passed as a chart options. 
____________
${kt}`)}for(let kt=0;kt<zt;kt++){let qt=vt[kt];if(Tt[qt]||(Tt[qt]={}),Tt=Tt[qt],qt==="chartOptions"){let Nt=(It=this.component.chart)==null?void 0:It.options;if(Nt){let Yt=this.oldOptionsBuffer;Yt.chartOptions||(Yt.chartOptions={}),Rt=Yt.chartOptions,At=Nt}}else At&&Rt&&(At=At[qt],Rt[qt]===void 0&&(Rt[qt]={}),Rt=Rt[qt])}let Ct=vt[zt];Tt[Ct]=Ot,Rt&&At&&(Rt[Ct]=Rt[Ct]??At[Ct]),(Dt=this.component)==null||Dt.update(this.changedOptions)}renderAccordion(vt,Ot,At){if(vt.type==="nested")return this.renderNested(Ot,vt,At);let Rt=lt.getRendererFunction(vt.type);Rt&&Rt(Ot,{...vt,iconsURLPrefix:this.iconsURLPrefix,value:At.getEditableOptionValue(vt.propertyPath),onchange:zt=>this.updateOptions(vt.propertyPath||[],zt)})}renderNested(vt,Ot,At){var zt;if(!vt||!Ot.nestedOptions)return;let Rt=Ot.nestedOptions;for(let Tt=0,Ct=Rt.length;Tt<Ct;++Tt){let It=Rt[Tt].name,Dt=Rt[Tt].options,kt=!!Rt[Tt].showToggle,qt=Rt[Tt].propertyPath||[],Nt=lt.renderCollapseHeader(vt,{name:It,isEnabled:!!At.getEditableOptionValue(qt),iconsURLPrefix:this.iconsURLPrefix,showToggle:kt,onchange:Yt=>this.updateOptions(qt,Yt),isNested:!0,lang:(((zt=At.board)==null?void 0:zt.editMode)||dt).lang});for(let Yt=0,Kt=Dt.length;Yt<Kt;++Yt)this.renderAccordion(Dt[Yt],Nt.content,At)}}cancelChanges(){Object.keys(this.changedOptions).length<1?this.closeSidebar():this.showCancelConfirmationPopup()}async confirmChanges(){let vt=this.component;vt&&(vt.type==="Highcharts"&&Object.keys(this.chartOptionsJSON).length&&await vt.update({chartOptions:this.chartOptionsJSON}),Mt(vt.board.editMode,"componentChanged",{target:vt,changedOptions:mt({},this.changedOptions),oldOptions:mt({},this.oldOptionsBuffer)}),this.changedOptions={},this.chartOptionsJSON={},this.closeSidebar())}async discardChanges(){let vt=this.component;vt&&(await vt.update(this.oldOptionsBuffer),Mt(vt.board.editMode,"componentChangesDiscarded",{target:vt,changedOptions:mt({},this.changedOptions),oldOptions:mt({},this.oldOptionsBuffer)}),this.changedOptions={},this.chartOptionsJSON={})}showCancelConfirmationPopup(){var At,Rt;let vt=this.confirmationPopup,Ot=(Rt=(At=this.component)==null?void 0:At.board)==null?void 0:Rt.editMode;vt&&Ot&&!this.waitingForConfirmation&&(this.waitingForConfirmation=!0,vt.show({text:Ot.lang.confirmDiscardChanges,confirmButton:{value:Ot.lang.confirmButton,callback:async()=>{await this.discardChanges(),this.waitingForConfirmation=!1,this.closeSidebar()},context:this},cancelButton:{value:Ot.lang.cancelButton,callback:()=>{vt.closePopup(),Ot.setEditOverlay(),setTimeout(()=>{this.waitingForConfirmation=!1},100)}}}))}}}),nt(rt,"Dashboards/EditMode/SidebarPopup.js",[rt["Dashboards/Layout/CellHTML.js"],rt["Dashboards/EditMode/AccordionMenu.js"],rt["Shared/BaseForm.js"],rt["Dashboards/Actions/Bindings.js"],rt["Dashboards/Layout/Cell.js"],rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/EditMode/EditRenderer.js"],rt["Dashboards/Layout/GUIElement.js"],rt["Dashboards/Layout/Layout.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot){let{addEvent:At,createElement:Rt,fireEvent:zt,merge:Tt}=Ot;class Ct extends dt{constructor(Dt,kt,qt){var Nt;super(Dt,kt),this.options={components:["HTML","layout","Highcharts","DataGrid","KPI"]},this.isVisible=!1,this.componentsList=[],this.editMode=qt,this.options=Tt(this.options,((Nt=qt.options.toolbars)==null?void 0:Nt.sidebar)||{}),this.componentsList=this.getComponentsList(this.options.components||[]),this.accordionMenu=new ut(this.iconsURL,this.hide.bind(this))}detectRightSidebar(Dt){let kt=this.editMode,qt=kt.customHTMLMode?kt.board.container:kt.board.layoutsWrapper;return!!qt&&Mt.getOffsets(Dt,qt).left<qt.offsetWidth/2-10}removeClassNames(){let Dt=mt.classNames,kt=this.container.classList;kt.remove(Dt.editSidebarShow),kt.remove(Dt.editSidebarRightShow)}addClassNames(Dt){let kt=this.container.classList;Dt?kt.add(mt.classNames.editSidebarRight):kt.remove(mt.classNames.editSidebarRight),setTimeout(()=>{kt.add(mt.classNames[Dt?"editSidebarRightShow":"editSidebarShow"])})}show(Dt){let kt=this.editMode,qt=!!(Dt&&this.detectRightSidebar(Dt));this.showPopup(mt.classNames.editSidebarShow),this.addClassNames(qt),kt.resizer&&kt.resizer.disableResizer(),kt.editCellContext instanceof ht&&kt.editCellContext.row&&kt.editCellContext.row.setHighlight(),kt.hideToolbars(["cell","row"]),kt.stopContextDetection(),this.isVisible=!0,this.generateContent(Dt)}generateContent(Dt){if(this.renderHeader(Dt?this.editMode.lang.settings:this.editMode.lang.addComponent,""),!Dt){this.renderAddComponentsList();return}if(this.type=Dt.getType(),this.type==="cell-html"||this.type==="cell"){let kt=Dt.mountedComponent;if(!kt)return;this.accordionMenu.renderContent(this.container,kt)}}renderAddComponentsList(){let Dt,kt=this,qt=this.componentsList,Nt=Rt("div",{className:mt.classNames.editGridItems},{},kt.container);for(let Yt=0,Kt=qt.length;Yt<Kt;++Yt)(Dt=Rt("div",{},{},Nt)).addEventListener("mousedown",Jt=>{if(kt.editMode.dragDrop){let Qt=Ft=>{let $t=kt.container.getBoundingClientRect();(Ft.clientX<$t.left||Ft.clientX>$t.right||Ft.clientY<$t.top||Ft.clientY>$t.bottom)&&(kt.hide(),document.removeEventListener("mousemove",Qt))},Bt=()=>{document.removeEventListener("mousemove",Qt),document.removeEventListener("mouseup",Bt)};document.addEventListener("mousemove",Qt),document.addEventListener("mouseup",Bt),kt.editMode.dragDrop.onDragStart(Jt,void 0,Ft=>{if(this.editMode.board.layouts.length===0){let jt=this.editMode.board,Wt=new vt(jt,{id:Mt.getElementId("layout"),copyId:"",parentContainerId:jt.container.id,rows:[{}],style:{}});Wt&&jt.layouts.push(Wt),Ft=Wt.rows[0]}let $t=qt[Yt].onDrop(kt,Ft);$t&&(kt.editMode.setEditCellContext($t),kt.show($t),$t.setHighlight()),document.removeEventListener("mousemove",Qt)})}}),Dt.innerHTML=qt[Yt].text}onDropNewComponent(Dt,kt){let qt=this.editMode.dragDrop;if(qt){let Nt=(Dt.getType()==="cell"?Dt.row:Dt).addCell({id:Mt.getElementId("col")});qt.onCellDragEnd(Nt);let Yt=Tt(kt,{cell:Nt.id}),Kt=pt.addComponent(Yt,this.editMode.board,Nt);return this.editMode.setEditOverlay(),(async()=>{let Jt=await Kt;Jt&&zt(this.editMode,"layoutChanged",{type:"newComponent",target:Jt})})(),Nt}}hide(){let Dt=this.editMode,kt=Dt.editCellContext;this.removeClassNames(),this.container.style.display="none",Dt.isEditOverlayActive&&Dt.setEditOverlay(!0),kt instanceof ht&&kt.row?(Dt.showToolbars(["cell","row"],kt),kt.row.setHighlight(),kt.setHighlight(!0)):kt instanceof lt&&Dt.cellToolbar&&(Dt.cellToolbar.showToolbar(kt),kt.setHighlight()),Dt.isContextDetectionActive=!0,this.isVisible=!1}closeButtonEvents(){this.type==="cell"||this.type==="cell-html"?this.accordionMenu.cancelChanges():this.hide()}renderHeader(Dt,kt){let qt=xt.renderIcon(this.container,{icon:kt,className:mt.classNames.editSidebarTitle});qt&&(qt.textContent=Dt)}getComponentsList(Dt){let kt=this.editMode,qt=kt.board.componentTypes,Nt=[];return Dt.forEach(Yt=>{var Jt;let Kt=qt[Yt];Kt?Nt.push({text:((Jt=kt.lang)==null?void 0:Jt.sidebar[Yt])||Kt.name,onDrop:function(Qt,Bt){let Ft=Kt.prototype.getOptionsOnDrop(Qt);if(Ft)return Qt.onDropNewComponent(Bt,Ft)}}):Yt==="layout"&&Nt.push(Ct.addLayout)}),Nt}addCloseButton(Dt=mt.classNames.popupCloseButton){return At(document,"click",kt=>{kt.stopPropagation(),this.container.style.display==="block"&&!this.container.contains(kt.target)&&this.container.classList.value.includes("show")&&(this.type==="cell"||this.type==="cell-html"?this.accordionMenu.cancelChanges():this.hide())}),super.addCloseButton.call(this,Dt)}createPopupContainer(Dt,kt=mt.classNames.editSidebar){return super.createPopupContainer.call(this,Dt,kt)}}return Ct.addLayout={text:"layout",onDrop:function(It,Dt){if(!Dt)return;let kt=(Dt.getType()==="cell"?Dt.row:Dt).layout.board,qt=Mt.getElementId("layout"),Nt=Mt.getElementId("cell"),Yt=new vt(kt,{id:qt,copyId:"",parentContainerId:kt.container.id,rows:[{cells:[{id:Nt}]}],style:{}});Yt&&(kt.layouts.push(Yt),zt(kt.editMode,"layoutChanged",{type:"newLayout",target:Yt,board:kt})),pt.addComponent({type:"HTML",cell:Nt,elements:[{tagName:"div",textContent:"Placeholder text"}]},kt)}},Ct}),nt(rt,"Dashboards/EditMode/EditContextMenu.js",[rt["Dashboards/EditMode/EditGlobals.js"],rt["Core/Utilities.js"],rt["Dashboards/EditMode/Menu/Menu.js"]],function(lt,ut,dt){let{addEvent:pt,merge:ht}=ut;class mt extends dt{constructor(Mt,vt,Ot){var At;if(super(Ot.board.container,ht(mt.defaultOptions,vt||{}),Ot),this.editMode=Ot,this.options=ht(mt.defaultOptions,vt||{}),(At=this.editMode.board.layoutsWrapper)==null||At.parentNode.insertBefore(this.container,this.editMode.board.layoutsWrapper),this.container.style.width=this.options.width+"px",super.initItems(mt.items),this.options.items){let Rt=[];for(let zt=0,Tt=this.options.items.length;zt<Tt;++zt)typeof this.options.items[zt]=="string"?Rt.push(this.options.items[zt]):this.options.items[zt].id&&Rt.push(this.options.items[zt].id);this.setActiveItems(Rt)}this.initEvents()}initEvents(){let Mt=this;pt(document,"click",vt=>{vt.target!==this.container&&vt.target!==Mt.editMode.tools.contextButtonElement&&!vt.target.classList.contains(lt.classNames.toggleSlider)&&vt.target.tagName!=="INPUT"&&this.isVisible&&this.setVisible(!1)})}setVisible(Mt){let vt=this.editMode.tools.contextButtonElement;this.container&&vt&&(Mt?(this.container.style.display="block",this.isVisible=!0,vt.setAttribute("aria-expanded","true")):(this.container.style.display="none",this.isVisible=!1,vt.setAttribute("aria-expanded","false")))}updatePosition(Mt,vt,Ot){let At=this.options.width||0,Rt=Mt?Mt.offsetLeft-At+Mt.offsetWidth:vt,zt=Mt?Mt.offsetTop+Mt.offsetHeight:Ot;Rt&&zt&&(this.container.style.left=Rt+"px",this.container.style.top=zt+"px")}}return mt.defaultOptions={enabled:!0,width:150,className:lt.classNames.contextMenu,itemsClassName:lt.classNames.contextMenuItem,items:["editMode"]},mt.items=ht(dt.items,{editMode:{id:"editMode",type:"toggle",getValue:function(xt){return xt.menu.editMode.isActive()},langKey:"editMode",events:{click:function(){this.menu.editMode.toggleEditMode()}}}}),mt}),nt(rt,"Dashboards/Actions/ContextDetection.js",[rt["Dashboards/Layout/GUIElement.js"],rt["Core/Utilities.js"]],function(lt,ut){let{defined:dt}=ut;class pt{static isGUIElementOnParentEdge(mt,xt){let Mt=xt==="top"||xt==="bottom"?mt.row.layout.getVisibleRows():xt==="left"||xt==="right"?mt.row.getVisibleCells():[],vt=Mt.length-1;return Mt[vt]===mt&&xt==="right"||Mt[vt]===mt.row&&xt==="bottom"||Mt[0]===mt&&xt==="left"||Mt[0]===mt.row&&xt==="top"}static getContextLevel(mt,xt,Mt,vt){let Ot=mt.getOverlappingLevels(vt,xt/2),At=xt/Ot.length,Rt=Ot[Ot.length-1],zt=mt.row.layout.level-Math.floor(Mt/At);return zt<Rt?Rt:zt>mt.row.layout.level?mt.row.layout.level:zt}static getContext(mt,xt,Mt){var Dt;let vt,Ot=lt.getOffsets(mt),{width:At,height:Rt}=lt.getDimFromOffsets(Ot);At<2*Mt&&(Mt=At/2);let zt=xt.clientX-Ot.left,Tt=xt.clientY-Ot.top,Ct="bottom";switch(zt>=-Mt&&zt<=Mt?Ct="left":zt-At>=-Mt&&zt-At<=Mt?Ct="right":Tt>=-Mt&&Tt<=Mt?Ct="top":Tt-Rt>=-Mt&&Tt-Rt<=Mt&&(Ct="bottom"),Ct){case"right":vt=zt-At+Mt;break;case"left":vt=Mt-zt;break;case"top":vt=Mt-Tt;break;case"bottom":vt=Tt-Rt+Mt}let It={cell:mt,side:Ct};if((Dt=mt.row)!=null&&Dt.layout.level&&Ct&&pt.isGUIElementOnParentEdge(mt,Ct)&&dt(vt)){let kt=pt.getContextLevel(mt,Mt,vt,Ct),qt=mt.getParentCell(kt);qt&&(It.cell=qt)}return It}}return pt}),nt(rt,"Dashboards/Actions/DragDrop.js",[rt["Core/Utilities.js"],rt["Dashboards/Globals.js"],rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/Layout/GUIElement.js"],rt["Dashboards/Actions/ContextDetection.js"]],function(lt,ut,dt,pt,ht){let{addEvent:mt,merge:xt,css:Mt,fireEvent:vt,createElement:Ot}=lt;class At{constructor(zt,Tt){this.editMode=zt,this.options=xt(At.defaultOptions,Tt),this.mockElement=Ot("div",{className:dt.classNames.dragMock},{},zt.board.container),this.dropPointer={isVisible:!1,align:"",element:Ot("div",{className:dt.classNames.dropPointer},{},zt.board.container)},this.isActive=!1,this.initEvents()}showDropPointer(zt,Tt,Ct,It){this.dropPointer.isVisible=!0,Mt(this.dropPointer.element,{display:"block",left:zt+"px",top:Tt+"px",height:It+"px",width:Ct+"px"})}hideDropPointer(){this.dropPointer.isVisible&&(this.dropPointer.isVisible=!1,this.dropPointer.align="",this.dropPointer.element.style.display="none")}setMockElementPosition(zt){let Tt=this.editMode.board.container.getBoundingClientRect(),Ct=this.mockElement.clientWidth/2,It=zt.clientX-Tt.left-Ct,Dt=zt.clientY-Tt.top-Ct;Mt(this.mockElement,{left:It+"px",top:Dt+"px"})}initEvents(){mt(document,"mousemove",this.onDrag.bind(this)),mt(document,"mouseup",this.onDragEnd.bind(this))}onDragStart(zt,Tt,Ct){this.isActive=!0,this.editMode.hideToolbars(["cell","row"]),this.editMode.resizer&&this.editMode.resizer.disableResizer(),this.setMockElementPosition(zt),Tt?(this.context=Tt,Tt.hide(),Tt.getType()===ut.guiElementType.cell&&(vt(this.editMode.board,"cellResize",{cell:Tt}),vt(Tt.row,"cellChange",{cell:Tt,row:Tt.row}))):Ct&&(this.dragEndCallback=Ct),Mt(this.mockElement,{cursor:"grabbing",display:"block"})}onDrag(zt){this.isActive&&(zt.preventDefault(),this.setMockElementPosition(zt),this.context?this.context.getType()===ut.guiElementType.cell?this.onCellDrag(zt):this.context.getType()===ut.guiElementType.row&&this.onRowDrag(zt):this.dragEndCallback&&this.onCellDrag(zt))}onDragEnd(){this.isActive&&(this.isActive=!1,Mt(this.mockElement,{cursor:"grab",display:"none"}),this.context?(this.context.getType()===ut.guiElementType.cell?this.onCellDragEnd():this.context.getType()===ut.guiElementType.row&&this.onRowDragEnd(),this.context=void 0,this.editMode.editCellContext&&(this.editMode.showToolbars(["row","cell"],this.editMode.editCellContext),this.editMode.resizer&&this.editMode.resizer.setSnapPositions(this.editMode.editCellContext))):this.dragEndCallback&&(this.dragEndCallback(this.dropContext),this.dragEndCallback=void 0,this.hideDropPointer()))}onRowDrag(zt,Tt){let Ct=this.mouseCellContext,It=this.options.dropPointerSize||0,Dt=this.options.rowDropOffset||0,kt=!1;if(Ct){let qt=Tt||ht.getContext(Ct,zt,Dt),Nt=qt.side;if((this.dropPointer.align!==Nt||this.dropContext!==qt.cell.row)&&(kt=!0,this.dropPointer.align=Nt,this.dropContext=qt.cell.row),Nt){let Yt=pt.getOffsets(this.dropContext,this.editMode.board.container),{width:Kt,height:Jt}=pt.getDimFromOffsets(Yt);(!this.dropPointer.isVisible||kt)&&this.showDropPointer(Yt.left,Yt.top+(this.dropPointer.align==="bottom"?Jt:0)-It/2,Kt,It)}else this.dropContext=void 0,this.hideDropPointer()}}onRowDragEnd(){let zt=this.context,Tt=this.dropContext;this.dropPointer.align&&(zt.layout.unmountRow(zt),zt.layout.rows.length===0&&zt.layout.destroy(),Tt.layout.mountRow(zt,(Tt.layout.getRowIndex(Tt)||0)+(this.dropPointer.align==="bottom"?1:0)),zt.cells[0]&&(vt(this.editMode.board,"cellResize",{cell:zt.cells[0]}),vt(zt,"cellChange",{cell:zt.cells[0],row:zt}))),this.hideDropPointer(),zt.show(),vt(this.editMode,"layoutChanged",{type:"rowDragEnd",target:zt,board:this.editMode.board})}onCellDrag(zt,Tt){let Ct=this.mouseCellContext,It=this.options.cellDropOffset||0;Ct||Tt?this.onCellDragCellCtx(zt,Tt||ht.getContext(Ct,zt,It)):this.mouseRowContext&&this.onCellDragRowCtx(zt,this.mouseRowContext)}onCellDragCellCtx(zt,Tt){let Ct=this.options.dropPointerSize||0,It=Tt.side,Dt=!1;if((this.dropPointer.align!==It||this.dropContext!==Tt.cell)&&(Dt=!0,this.dropPointer.align=It,this.dropContext=Tt.cell),It==="right"||It==="left"){let kt=pt.getOffsets(this.dropContext,this.editMode.board.container),{width:qt,height:Nt}=pt.getDimFromOffsets(kt);if(!this.dropPointer.isVisible||Dt){let Yt=this.dropContext.row.getRowLevelInfo(zt.clientY),Kt=Yt?Yt.rowLevel.bottom-Yt.rowLevel.top:Nt;this.showDropPointer(kt.left+(It==="right"?qt:0)-Ct/2,kt.top,Ct,Kt)}}else if(It==="top"||It==="bottom"){let kt=pt.getOffsets(this.dropContext),qt=this.dropContext.row.getRowLevelInfo(kt.top);qt&&(qt.index===0&&It==="top"||qt.index===qt.rowLevels.length-1&&It==="bottom")&&this.onRowDrag(zt,Tt)}else this.dropContext=void 0,this.hideDropPointer()}onCellDragRowCtx(zt,Tt){let Ct,It,Dt=this.options.dropPointerSize||0,kt=pt.getOffsets(Tt),qt=Tt.getRowLevelInfo(zt.clientY);if(qt)for(let Nt=0,Yt=qt.rowLevel.cells.length;Nt<Yt;++Nt){Ct=qt.rowLevel.cells[Nt],It=pt.getOffsets(Ct);let{width:Kt,height:Jt}=pt.getDimFromOffsets(It),Qt=this.editMode.board.container.getBoundingClientRect(),Bt=qt.rowLevel.bottom-qt.rowLevel.top;if(Ct.isVisible){if(Jt<.8*Bt&&It.left<=zt.clientX&&It.right>=zt.clientX)It.top>zt.clientY||It.bottom<zt.clientY&&(this.showDropPointer(It.left-Qt.left,It.top-Qt.top+Jt,Kt,Bt-Jt),this.dropPointer.align="nestedBottom",this.dropContext=Ct),Nt=Yt;else if(Nt===0&&It.left>zt.clientX||Nt===Yt-1&&It.right<zt.clientX){if(!(It.left>zt.clientX)){if(It.right<zt.clientX){let Ft=kt.right-It.right;this.showDropPointer(It.left+(Nt===0&&It.left>zt.clientX?0:Kt)-Dt/2-Qt.left,It.top-Qt.top,Ft>Dt?Ft:Dt,Bt||Jt),this.dropPointer.align="right",this.dropContext=Ct}}Nt=Yt}}else Ct.isVisible||Ct!==this.context||(this.dropContext=void 0,this.hideDropPointer())}}onCellDragEnd(zt){let Tt=zt||this.context,Ct=this.dropContext;if(this.dropPointer.align&&Ct&&Tt)if(Tt.row.unmountCell(Tt),Tt.row.cells.length===0&&Tt.row.destroy(),(this.dropPointer.align==="top"||this.dropPointer.align==="bottom")&&Ct.getType()===ut.guiElementType.row)Ct.layout.addRow({},void 0,(Ct.layout.getRowIndex(Ct)||0)+(this.dropPointer.align==="bottom"?1:0)).mountCell(Tt,0);else if(this.dropPointer.align==="nestedBottom"&&Ct.getType()===ut.guiElementType.cell){let It=Ct.row,Dt=It.getCellIndex(Ct);It.unmountCell(Ct);let kt=It.addCell({id:pt.getElementId("col-nested"),layout:{rows:[{},{}]}},void 0,Dt);kt.nestedLayout&&(kt.nestedLayout.rows[0].mountCell(Ct),kt.nestedLayout.rows[1].mountCell(Tt))}else Ct.getType()===ut.guiElementType.cell&&Ct.row.mountCell(Tt,(Ct.row.getCellIndex(Ct)||0)+(this.dropPointer.align==="right"?1:0));vt(this.editMode.board,"cellResize",{cell:Tt}),vt(Tt.row,"cellChange",{cell:Tt,row:Tt.row}),this.hideDropPointer(),Tt.show(),vt(this.editMode,"layoutChanged",{type:"cellDragEnd",target:Tt,board:this.editMode.board})}}return At.defaultOptions={enabled:!0,rowDropOffset:30,cellDropOffset:30,dropPointerSize:16},At}),nt(rt,"Dashboards/Actions/Resizer.js",[rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/Layout/GUIElement.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{merge:pt,addEvent:ht,createElement:mt,fireEvent:xt,removeEvent:Mt}=dt;class vt{static fromJSON(At,Rt){return new vt(At,Rt.options)}constructor(At,Rt){this.editMode=At,this.options=pt({},vt.defaultOptions,At.options.resize,Rt),this.currentCell=void 0,this.isX=this.options.type.indexOf("x")>-1,this.isY=this.options.type.indexOf("y")>-1,this.isActive=!1,this.startX=0,this.tempSiblingsWidth=[],this.addSnaps()}addSnaps(){let At=this.editMode.iconsURLPrefix,Rt=this.options.snap.width||0,zt=this.options.snap.height||0,Tt=this.editMode.board.container;this.snapRight=mt("img",{className:lt.classNames.resizeSnap+" "+lt.classNames.resizeSnapX,src:At+"resize-handle.svg"},{width:Rt+"px",height:zt+"px",left:"-9999px"},Tt),this.snapBottom=mt("img",{className:lt.classNames.resizeSnap+" "+lt.classNames.resizeSnapY,src:At+"resize-handle.svg"},{width:Rt+"px",height:zt+"px",top:"-9999px",left:"0px"},Tt),this.addResizeEvents()}disableResizer(){this.isActive=!1,this.currentDimension=void 0,this.currentCell=void 0,this.snapRight&&(this.snapRight.style.left="-9999px"),this.snapBottom&&(this.snapBottom.style.left="-9999px")}setSnapPositions(At){this.currentCell=At;let Rt=ut.getOffsets(At,this.editMode.board.container),zt=Rt.left||0,Tt=Rt.top||0,{width:Ct,height:It}=ut.getDimFromOffsets(Rt),Dt=this.options.snap.width||0,kt=this.options.snap.height||0;this.snapRight&&(this.snapRight.style.left=zt+Ct-Dt+"px",this.snapRight.style.top=Tt+It/2-kt/2+"px"),this.snapBottom&&(this.snapBottom.style.top=Tt+It-kt+"px",this.snapBottom.style.left=zt+Ct/2-Dt/2+"px")}setTempWidthSiblings(){let At=this.currentCell;if(At){let Rt,zt,Tt=ut.getOffsets(At),Ct=At.row.getRowLevelInfo(Tt.top),It=Ct&&Ct.rowLevel.cells||[];for(let Dt=0,kt=It.length;Dt<kt&&(Rt=(zt=It[Dt]).container,zt!==At);++Dt)Rt&&(Rt.style.flex="0 0 "+Rt.offsetWidth+"px",this.tempSiblingsWidth.push(zt))}}revertSiblingsAutoWidth(){let At,Rt,zt=this.tempSiblingsWidth;for(let Tt=0,Ct=zt.length;Tt<Ct;++Tt)(At=zt[Tt].container)&&(At.style.flex="1 1 0%",Rt=zt[Tt]);this.tempSiblingsWidth=[],Rt&&(xt(this.editMode.board,"cellResize",{cell:Rt}),xt(Rt.row,"cellChange",{cell:Rt,row:Rt.row}))}addResizeEvents(){let At,Rt,zt,Tt,Ct=this;Ct.mouseDownSnapX=At=function(Dt){Ct.isActive=!0,Ct.currentDimension="x",Ct.editMode.hideToolbars(["row","cell"]),Ct.setTempWidthSiblings(),Ct.startX=Dt.clientX},Ct.mouseDownSnapY=Rt=function(){Ct.isActive=!0,Ct.currentDimension="y",Ct.editMode.hideToolbars(["row","cell"])},Ct.mouseMoveSnap=zt=function(Dt){Ct.isActive&&Ct.onMouseMove(Dt)},Ct.mouseUpSnap=Tt=function(){Ct.isActive&&(Ct.isActive=!1,Ct.currentDimension=void 0,Ct.revertSiblingsAutoWidth(),Ct.editMode.showToolbars(["row","cell"],Ct.currentCell),Ct.currentCell&&Ct.setSnapPositions(Ct.currentCell))},ht(this.snapRight,"mousedown",At),ht(this.snapBottom,"mousedown",Rt),ht(document,"mousemove",zt),ht(document,"mouseup",Tt);let It=()=>{Ct.currentCell&&Ct.setSnapPositions(Ct.currentCell)};if(typeof ResizeObserver=="function")this.resizeObserver=new ResizeObserver(It),this.resizeObserver.observe(Ct.editMode.board.container);else{let Dt=ht(window,"resize",It);ht(this,"destroy",Dt)}}onMouseMove(At){let Rt=this.currentCell,zt=Rt&&Rt.container,Tt=this.currentDimension;if(Rt&&zt&&!((Rt.row.layout.board.editMode||{}).dragDrop||{}).isActive){let Ct=ut.getOffsets(Rt),{width:It}=ut.getDimFromOffsets(ut.getOffsets(Rt.row));if(Tt==="x"){let Dt=Math.min(At.clientX-Ct.left,It)/It*100+"%";Rt.setSize(Dt),this.startX=At.clientX}Tt==="y"&&Rt.setSize(void 0,At.clientY-Ct.top),xt(this.editMode.board,"cellResize",{cell:Rt}),xt(Rt.row,"cellChange",{cell:Rt,row:Rt.row}),this.setSnapPositions(Rt)}}destroy(){var zt;let At,Rt=["snapRight","snapBottom"];Mt(document,"mousemove"),Mt(document,"mouseup"),(zt=this.resizeObserver)==null||zt.unobserve(this.editMode.board.container);for(let Tt=0,Ct=Rt.length;Tt<Ct;++Tt)Mt(At=this[Rt[Tt]],"mousedown"),At.remove()}toJSON(){let At=this.options;return{$class:"Dashboards.Action.Resizer",options:{enabled:At.enabled,styles:{minWidth:At.styles.minWidth,minHeight:At.styles.minHeight},type:At.type,snap:{width:At.snap.width,height:At.snap.height}}}}}return vt.defaultOptions={enabled:!0,styles:{minWidth:20,minHeight:50},type:"xy",snap:{width:9,height:17}},vt}),nt(rt,"Dashboards/EditMode/EditMode.js",[rt["Dashboards/Layout/Cell.js"],rt["Dashboards/Layout/CellHTML.js"],rt["Dashboards/EditMode/EditGlobals.js"],rt["Dashboards/EditMode/EditRenderer.js"],rt["Dashboards/EditMode/Toolbar/CellEditToolbar.js"],rt["Dashboards/EditMode/Toolbar/RowEditToolbar.js"],rt["Dashboards/EditMode/SidebarPopup.js"],rt["Dashboards/EditMode/EditContextMenu.js"],rt["Dashboards/Actions/DragDrop.js"],rt["Dashboards/Actions/Resizer.js"],rt["Dashboards/EditMode/ConfirmationPopup.js"],rt["Dashboards/Layout/GUIElement.js"],rt["Dashboards/Globals.js"],rt["Dashboards/Layout/Layout.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct){let{addEvent:It,createElement:Dt,css:kt,merge:qt}=Ct;return class{constructor(Nt,Yt){this.active=!1,this.customHTMLMode=!1,this.iconsURLPrefix="https://code.highcharts.com/dashboards/2.2.0/gfx/dashboards-icons/",this.iconsURLPrefix=Yt&&Yt.iconsURLPrefix||this.iconsURLPrefix,this.options=qt({confirmationPopup:{close:{icon:this.iconsURLPrefix+"close.svg"}},contextMenu:{icon:this.iconsURLPrefix+"menu.svg"},dragDrop:{enabled:!0},enabled:!0,resize:{enabled:!0},settings:{enabled:!0},toolbars:{cell:{enabled:!0},row:{enabled:!0}},tools:{addComponentBtn:{enabled:!0,icon:this.iconsURLPrefix+"add.svg"}}},Yt||{}),this.board=Nt,this.lang=qt({},dt.lang,this.options.lang),Nt.boardWrapper=Nt.container,Nt.guiEnabled&&this.initLayout(),this.isInitialized=!1,this.isContextDetectionActive=!1,this.tools={},Nt.editModeEnabled&&(this.customHTMLMode=!this.board.layoutsWrapper,this.contextPointer={isVisible:!1,element:Dt("div",{className:dt.classNames.contextDetectionPointer},{},Nt.container)},this.createTools(),this.confirmationPopup=new At(Nt.container,this.iconsURLPrefix,this,this.options.confirmationPopup),this.editOverlay=Dt("div",{className:dt.classNames.editOverlay},{},Nt.container),this.isEditOverlayActive=!1,Nt.fullscreen=new tt.FullScreen(Nt),this.customHTMLMode&&Nt.container.classList.add(zt.classNames.boardContainer))}onContextBtnClick(){this.tools.contextMenu&&(this.tools.contextMenu.isVisible||this.tools.contextMenu.updatePosition(this.tools.contextButtonElement),this.tools.contextMenu.setVisible(!this.tools.contextMenu.isVisible))}toggleEditMode(){this.active?this.deactivate():this.activate()}init(){var Nt,Yt,Kt,Jt,Qt;(Nt=this.options.resize)!=null&&Nt.enabled&&!this.customHTMLMode&&(this.resizer=new Ot(this,this.options.resize)),this.dragDrop=new vt(this,this.options.dragDrop),!((Kt=(Yt=this.options.toolbars)==null?void 0:Yt.row)!=null&&Kt.enabled)||this.rowToolbar||this.customHTMLMode||(this.rowToolbar=new mt(this)),(Qt=(Jt=this.options.toolbars)==null?void 0:Jt.cell)!=null&&Qt.enabled&&!this.cellToolbar&&(this.cellToolbar=new ht(this)),this.sidebar||(this.sidebar=new xt(this.board.container,this.iconsURLPrefix,this)),this.isInitialized=!0}initEvents(){let Nt=this,Yt=Nt.board;if(this.customHTMLMode){let Jt=Yt.mountedComponents.length;for(let Qt=0;Qt<Jt;++Qt)Nt.setCellEvents(Yt.mountedComponents[Qt].cell)}else for(let Jt=0,Qt=Yt.layouts.length;Jt<Qt;++Jt)Nt.setLayoutEvents(Yt.layouts[Jt]);Nt.cellToolbar&&(It(Nt.cellToolbar.container,"mouseenter",function(){Nt.stopContextDetection()}),It(Nt.cellToolbar.container,"mouseleave",function(){Nt.isContextDetectionActive=!0})),Nt.rowToolbar&&(It(Nt.rowToolbar.container,"mouseenter",function(){Nt.stopContextDetection()}),It(Nt.rowToolbar.container,"mouseleave",function(){Nt.isContextDetectionActive=!0}));let Kt=this.customHTMLMode?Yt.container:Yt.layoutsWrapper;It(Kt,"mousemove",Nt.onDetectContext.bind(Nt)),It(Kt,"click",Nt.onContextConfirm.bind(Nt)),It(Kt,"mouseleave",()=>{Nt.hideContextPointer()})}initLayout(){let Nt=this.board;Nt.container.innerHTML="",Nt.container=Dt("div",{className:zt.classNames.boardContainer},{},Nt.boardWrapper),Nt.layoutsWrapper=Dt("div",{className:zt.classNames.layoutsWrapper},{},Nt.container),Nt.options.gui&&this.setLayouts(Nt.options.gui),Nt.options.layoutsJSON&&!Nt.layouts.length&&this.setLayoutsFromJSON(Nt.options.layoutsJSON)}setLayouts(Nt){let Yt=this.board,Kt=Nt.layouts;for(let Jt=0,Qt=Kt.length;Jt<Qt;++Jt)Yt.layouts.push(new Tt(Yt,qt({},Nt.layoutOptions,Kt[Jt])))}setLayoutsFromJSON(Nt){let Yt,Kt=this.board;for(let Jt=0,Qt=Nt.length;Jt<Qt;++Jt)(Yt=Tt.fromJSON(Nt[Jt],Kt))&&Kt.layouts.push(Yt)}setLayoutEvents(Nt){for(let Yt=0,Kt=Nt.rows.length;Yt<Kt;++Yt){let Jt=Nt.rows[Yt];this.setRowEvents(Jt);for(let Qt=0,Bt=Jt.cells.length;Qt<Bt;++Qt)this.setCellEvents(Jt.cells[Qt])}}setRowEvents(Nt){let Yt=this;if(Yt.dragDrop){let Kt=Yt.dragDrop;It(Nt.container,"mouseenter",function(){Yt.isContextDetectionActive&&(Yt.mouseRowContext=Nt)}),It(Nt.container,"mousemove",function(Jt){Kt.isActive&&Jt.target===Nt.container&&(Kt.mouseRowContext=Nt)}),It(Nt.container,"mouseleave",function(){Kt.isActive&&Kt.mouseRowContext===Nt&&(Kt.mouseRowContext=void 0),Yt.isContextDetectionActive&&(Yt.mouseRowContext=void 0)})}}setCellEvents(Nt){let Yt=this;if(Nt instanceof ut)It(Nt.container,"mouseenter",function(){Yt.isContextDetectionActive&&(Yt.mouseCellContext=Nt)});else if(Nt.nestedLayout)Yt.setLayoutEvents(Nt.nestedLayout);else if(Yt.cellToolbar&&Nt.container&&(It(Nt.container,"mouseenter",function(){Yt.isContextDetectionActive&&(Yt.mouseCellContext=Nt)}),Yt.dragDrop||Yt.resizer)){let Kt=Yt.dragDrop;It(Nt.container,"mousemove",function(Jt){Kt&&Kt.isActive&&Jt.target===Nt.container&&(Kt.mouseCellContext=Nt,Kt.mouseRowContext=void 0)}),It(Nt.container,"mouseleave",function(){Kt&&Kt.isActive&&Kt.mouseCellContext===Nt&&(Kt.mouseCellContext=void 0),Yt.isContextDetectionActive&&(Yt.mouseCellContext=void 0)})}}activate(){this.isInitialized||(this.init(),this.initEvents()),this.board.container.classList.add(dt.classNames.editModeEnabled),this.addComponentBtn&&(this.addComponentBtn.style.display="block"),this.active=!0,this.isContextDetectionActive=!0}deactivate(){var Nt;this.board.container.classList.remove(dt.classNames.editModeEnabled),this.hideToolbars(),this.editCellContext&&this.editCellContext instanceof lt&&((Nt=this.editCellContext.row)==null||Nt.setHighlight()),this.addComponentBtn&&(this.addComponentBtn.style.display="none"),this.resizer&&this.resizer.disableResizer(),this.board.layoutsWrapper&&(this.board.layoutsWrapper.style.width="100%"),this.board.reflow(),this.active=!1,this.stopContextDetection(),this.editCellContext=void 0,this.potentialCellContext=void 0}isActive(){return this.active}hideToolbars(Nt){let Yt=Nt||["cell","row","sidebar"];for(let Kt=0,Jt=Yt.length;Kt<Jt;++Kt)switch(Yt[Kt]){case"cell":this.cellToolbar&&this.cellToolbar.isVisible&&this.cellToolbar.hide();break;case"row":this.rowToolbar&&this.rowToolbar.isVisible&&this.rowToolbar.hide();break;case"sidebar":this.sidebar&&this.sidebar.isVisible&&this.sidebar.hide()}}showToolbars(Nt,Yt){let Kt=Nt||["cell","row","sidebar"];for(let Jt=0,Qt=Kt.length;Jt<Qt;++Jt)switch(Kt[Jt]){case"cell":Yt&&this.cellToolbar&&this.cellToolbar.showToolbar(Yt);break;case"row":Yt&&Yt.row&&this.rowToolbar&&this.rowToolbar.showToolbar(Yt.row);break;case"sidebar":this.sidebar&&!this.sidebar.isVisible&&this.sidebar.show()}}createTools(){var Qt,Bt,Ft,$t;let Nt=this,{board:Yt,options:Kt,tools:Jt}=Nt;if(Jt.container=document.createElement("div"),Jt.container.classList.add(dt.classNames.editTools),Yt.layoutsWrapper?Yt.layoutsWrapper.parentNode.insertBefore(Jt.container,Yt.layoutsWrapper):Yt.container.insertBefore(Jt.container,Yt.container.firstChild),Kt.contextMenu&&Kt.contextMenu.enabled&&(Jt.contextButtonElement=pt.renderContextButton(Jt.container,Nt),Nt.tools.contextMenu||(Nt.tools.contextMenu=new Mt(Nt.board.container,Nt.options.contextMenu||{},Nt))),((Bt=(Qt=Kt.tools)==null?void 0:Qt.addComponentBtn)==null?void 0:Bt.enabled)&&(($t=(Ft=Kt.toolbars)==null?void 0:Ft.cell)==null?void 0:$t.enabled)&&!this.customHTMLMode){let jt=Kt.tools.addComponentBtn.icon;this.addComponentBtn=pt.renderButton(Jt.container,{className:dt.classNames.editToolsBtn,icon:jt,text:this.lang.addComponent,callback:()=>{Nt.sidebar&&(Nt.sidebar.show(),Nt.setEditOverlay())},style:{display:"none"}})}}onDetectContext(){let Nt;if(this.isActive()&&this.isContextDetectionActive&&(this.mouseCellContext||this.mouseRowContext)&&!(this.dragDrop||{}).isActive&&(this.mouseCellContext?Nt=this.mouseCellContext:this.mouseRowContext&&(Nt=this.mouseRowContext.layout.parentCell),this.potentialCellContext=Nt,Nt)){let Yt=Rt.getOffsets(Nt,this.board.container),{width:Kt,height:Jt}=Rt.getDimFromOffsets(Yt);this.showContextPointer(Yt.left,Yt.top,Kt,Jt)}}stopContextDetection(){this.isContextDetectionActive=!1,this.dragDrop&&(this.dragDrop.mouseCellContext=void 0),this.mouseCellContext=void 0,this.hideContextPointer()}onContextConfirm(){this.isContextDetectionActive&&this.potentialCellContext&&this.editCellContext!==this.potentialCellContext&&this.setEditCellContext(this.potentialCellContext,this.editCellContext)}setEditCellContext(Nt,Yt){var Kt;if(Nt instanceof ut||Yt instanceof ut)this.editCellContext=Nt,(Kt=this.cellToolbar)==null||Kt.showToolbar(Nt);else{let Jt=Yt==null?void 0:Yt.row;this.editCellContext=Nt,this.showToolbars(["row","cell"],Nt),(!Jt||Jt!==Nt.row)&&(Jt&&Jt.setHighlight(),Nt.row&&Nt.row.setHighlight()),this.resizer&&this.resizer.setSnapPositions(Nt)}}showContextPointer(Nt,Yt,Kt,Jt){this.contextPointer&&(this.contextPointer.isVisible=!0,kt(this.contextPointer.element,{display:"block",left:Nt+"px",top:Yt+"px",height:Jt+"px",width:Kt+"px"}))}hideContextPointer(){var Nt;(Nt=this.contextPointer)!=null&&Nt.isVisible&&(this.contextPointer.isVisible=!1,this.contextPointer.element.style.display="none")}setEditOverlay(Nt){let Yt=this.editOverlay,Kt=Yt==null?void 0:Yt.classList.contains(dt.classNames.editOverlayActive);Nt||Kt?Nt&&Kt&&(Yt==null||Yt.classList.remove(dt.classNames.editOverlayActive),this.isEditOverlayActive=!1):(Yt==null||Yt.classList.add(dt.classNames.editOverlayActive),this.isEditOverlayActive=!0)}}}),nt(rt,"Dashboards/EditMode/Fullscreen.js",[rt["Core/Utilities.js"],rt["Dashboards/Globals.js"]],function(lt,ut){let{addEvent:dt}=lt;return class{constructor(pt){this.isOpen=!1,this.board=pt,this.board.boardWrapper.classList.add(ut.classNamePrefix+"-fullscreen")}toggle(){this[this.isOpen?"close":"open"]()}open(){if(this.isOpen)return;let pt=this,ht=pt.board,mt=dt(ht.boardWrapper.ownerDocument,"fullscreenchange",function(){pt.isOpen?(pt.isOpen=!1,pt.close()):(pt.isOpen=!0,pt.setButtonText())});pt.unbindFullscreenEvent=()=>{mt()},ht.boardWrapper.requestFullscreen().catch(()=>{throw Error("Full screen is not supported.")})}close(){let pt=this.board;this.isOpen&&pt.boardWrapper.ownerDocument instanceof Document&&pt.boardWrapper.ownerDocument.exitFullscreen(),this.unbindFullscreenEvent&&(this.unbindFullscreenEvent=this.unbindFullscreenEvent()),this.isOpen=!1,this.setButtonText()}setButtonText(){let pt=this.board.editMode,ht=pt&&pt.tools.contextMenu,mt=ht&&ht.items.viewFullscreen;if(mt&&mt.innerElement){let xt=pt.lang;mt.innerElement.innerHTML=(this.isOpen?xt.exitFullscreen:xt.viewFullscreen)||""}}}}),nt(rt,"masters/modules/layout.src.js",[rt["Dashboards/Globals.js"],rt["Dashboards/EditMode/EditMode.js"],rt["Dashboards/EditMode/Fullscreen.js"]],function(lt,ut,dt){return lt.EditMode=ut,lt.FullScreen=dt,lt})})})(layout);var layoutExports=layout.exports;const LayoutModule=getDefaultExportFromCjs$1(layoutExports),StyledMultiSelectAutoComplete=styled$1(Autocomplete)`
  '.MuiAutocomplete-inputRoot': {
    color: ${et=>et.theme.palette.text.primary},
    backgroundColor: 'white',
    border: ${et=>et.theme.palette.grey[600]},
    '& .MuiOutlinedInput-notchedOutline': {
      borderWidth: '1px',
      borderColor: ${et=>et.theme.palette.grey[600]},
    },
    '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
      borderWidth: '1px',
      borderColor: ${et=>et.theme.palette.primary.main},
    },
  },
`,icon=jsxRuntimeExports.jsx(default_1$m,{fontSize:"small"}),checkedIcon=jsxRuntimeExports.jsx(default_1$l,{fontSize:"small"}),filterOptions=(et,tt)=>{const rt=new Set(tt.map(nt=>nt.value));return et.filter(nt=>!rt.has(nt.value))},MultiSelectWithSearch=et=>{const{options:tt,id:rt,value:nt,onChange:lt,label:ut,placeholder:dt,disableCloseOnSelect:pt,limitTags:ht=-1,adornmentIcon:mt,size:xt}=et,Mt=useTheme$1();return jsxRuntimeExports.jsx(StyledMultiSelectAutoComplete,{multiple:!0,limitTags:ht,"data-testid":"autocomplete-search",id:rt||"",value:nt,options:nt?filterOptions(tt,nt):tt,onChange:(vt,Ot)=>{lt(Ot)},disableCloseOnSelect:pt,getOptionLabel:vt=>vt.label,renderOption:vt=>{const Ot=vt.key;return jsxRuntimeExports.jsx(FormControlLabel,{labelPlacement:"end",label:Ot,...vt,control:jsxRuntimeExports.jsx(Checkbox$1,{"data-testid":"autocomplete-checkbox",icon,checkedIcon,style:{marginRight:8},checked:(nt==null?void 0:nt.includes(Ot))||!1})})},style:{width:325},renderInput:vt=>jsxRuntimeExports.jsx(TextField,{...vt,size:xt||void 0,variant:"outlined",label:ut,placeholder:dt,InputLabelProps:{style:{color:Mt.palette.grey[600]}},InputProps:{...vt.InputProps,startAdornment:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[mt&&jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:mt}),vt.InputProps.startAdornment]})}})})},DashboardContext=reactExports.createContext({filteredData:[],previousPeriodData:[],subChartFilteredData:[],dateFilterOverride:"",dateRange:"",endDate:new Date,tumourStreams:[],physicians:[],sites:[],tumourStreamOptions:[],physicianOptions:[],siteOptions:[],isLoading:!0,overviewChartsLoaded:!1,isReloaded:!1,selectedPointIndex:-1,setOverviewChartsLoaded:()=>{},setDateRange:()=>{},setEndDate:()=>{},setTumourStreams:()=>{},setPhysicians:()=>{},setSites:()=>{},handlePointClick:()=>{},handleDateClick:()=>{},navToPage:()=>{},onChartClick:()=>{}}),getLastDayOfMonth=et=>{const[tt,rt]=et.split(" "),nt=new Date(`${tt} 1, ${rt}`);nt.setMonth(nt.getMonth()+1),nt.setDate(0);const lt=nt.getDate().toString().padStart(2,"0"),ut=(nt.getMonth()+1).toString().padStart(2,"0");return`${rt}-${ut}-${lt}`},getFirstDayOfMonth=et=>{const[tt,rt]=et.split(" "),nt=new Date(tt+" 1, 2021").getMonth()+1;return`${rt}-${nt.toString().padStart(2,"0")}-01`},dateRangeMap$1={"Past 7 days":7,"Past 14 days":14,"Past 30 days":30,"Past 90 days":90,"Past 6 months":180,"Past 1 year":365,"All time":0},subDays$1=(et,tt)=>{const rt=new Date(et);return rt.setDate(rt.getDate()-tt),rt},DashboardContextProvider=({children:et,data:tt=[],navToPage:rt,onChartClick:nt})=>{const lt=Array.from(new Set(tt.map(Xt=>Xt.diagnosis))).filter(Xt=>Xt.toLowerCase()!=="unspecified").sort((Xt,er)=>Xt.localeCompare(er)).map(Xt=>({label:Xt.charAt(0).toUpperCase()+Xt.slice(1),value:Xt})),ut=[...new Set(tt.map(Xt=>Xt.physician))].map(Xt=>({label:Xt,value:Xt})),dt=[...new Set(tt.map(Xt=>Xt.site))].map(Xt=>({label:Xt,value:Xt})),pt=Xt=>{const er={label:Xt,value:Xt.toLowerCase()};zt([er])},ht=(Xt,er)=>{if(nt(),Ot===Xt)Yt(kt),At("");else{const nr=new Date(getLastDayOfMonth(Xt)),or=new Date(getFirstDayOfMonth(Xt));Yt(kt.filter(rr=>new Date(rr.date)>=or&&new Date(rr.date)<=nr)),At(Xt),Wt(er!==jt?er:-1)}},[mt,xt]=reactExports.useState("Past 6 months"),[Mt,vt]=reactExports.useState(new Date),[Ot,At]=reactExports.useState(""),[Rt,zt]=reactExports.useState(lt),[Tt,Ct]=reactExports.useState(ut),[It,Dt]=reactExports.useState(dt),[kt,qt]=reactExports.useState([]),[Nt,Yt]=reactExports.useState(kt),[Kt,Jt]=reactExports.useState([]),[Qt,Bt]=reactExports.useState(!0),[Ft,$t]=reactExports.useState(!1),[jt,Wt]=reactExports.useState(-1),[Ut,Vt]=reactExports.useState(sessionStorage.getItem("reloaded")==="1"),Ht=useHistory();reactExports.useEffect(()=>{const Xt=()=>{Ht.location.pathname==="/radiation/insights"&&sessionStorage.setItem("reloaded","1")};return window.addEventListener("beforeunload",Xt),()=>{window.removeEventListener("beforeunload",Xt)}},[]);const Gt=useLocation();reactExports.useEffect(()=>{jt!==-1&&(Wt(-1),At(""),Yt(kt))},[Gt]),reactExports.useEffect(()=>{mt||xt("Past 6 months"),It.length===0&&Dt(dt),Tt.length===0&&Ct(ut),Rt.length===0&&zt(lt);const Xt=subDays$1(Mt,dateRangeMap$1[mt]),er=tt.filter(or=>Rt.some(rr=>rr.value===or.diagnosis)&&Tt.some(rr=>rr.value===or.physician)&&It.some(rr=>rr.value===or.site)&&new Date(or.date)>(mt==="All time"?new Date(0):Xt)&&new Date(or.date)<=Mt);qt(er),Yt(er),At("");const nr=tt.filter(or=>Rt.some(rr=>rr.value===or.diagnosis)&&Tt.some(rr=>rr.value===or.physician)&&It.some(rr=>rr.value===or.site)&&new Date(or.date)>(mt==="All time"?new Date(0):subDays$1(Xt,dateRangeMap$1[mt]))&&new Date(or.date)<=Xt);Jt(nr),Bt(!1),sessionStorage.removeItem("reloaded")},[Rt,Tt,It,Mt,mt]);const Zt={filteredData:kt,previousPeriodData:Kt,subChartFilteredData:Nt,dateFilterOverride:Ot,dateRange:mt,endDate:Mt,tumourStreams:Rt,physicians:Tt,sites:It,tumourStreamOptions:lt,physicianOptions:ut,siteOptions:dt,isLoading:Qt,overviewChartsLoaded:Ft,isReloaded:Ut,selectedPointIndex:jt,setOverviewChartsLoaded:$t,setDateRange:xt,setEndDate:vt,setTumourStreams:zt,setPhysicians:Ct,setSites:Dt,handlePointClick:pt,handleDateClick:ht,navToPage:rt,onChartClick:nt};return jsxRuntimeExports.jsx(DashboardContext.Provider,{value:Zt,children:et})};var LocationOn={},_interopRequireDefault$9=interopRequireDefaultExports;Object.defineProperty(LocationOn,"__esModule",{value:!0});var default_1$9=LocationOn.default=void 0,_createSvgIcon$9=_interopRequireDefault$9(requireCreateSvgIcon()),_jsxRuntime$9=jsxRuntimeExports;default_1$9=LocationOn.default=(0,_createSvgIcon$9.default)((0,_jsxRuntime$9.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn");var PersonSearch={},_interopRequireDefault$8=interopRequireDefaultExports;Object.defineProperty(PersonSearch,"__esModule",{value:!0});var default_1$8=PersonSearch.default=void 0,_createSvgIcon$8=_interopRequireDefault$8(requireCreateSvgIcon()),_jsxRuntime$8=jsxRuntimeExports;default_1$8=PersonSearch.default=(0,_createSvgIcon$8.default)([(0,_jsxRuntime$8.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,_jsxRuntime$8.jsx)("path",{d:"M10.35 14.01C7.62 13.91 2 15.27 2 18v2h9.54c-2.47-2.76-1.23-5.89-1.19-5.99m9.08 4.01c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59zM16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"PersonSearch");var FilterList={},_interopRequireDefault$7=interopRequireDefaultExports;Object.defineProperty(FilterList,"__esModule",{value:!0});var default_1$7=FilterList.default=void 0,_createSvgIcon$7=_interopRequireDefault$7(requireCreateSvgIcon()),_jsxRuntime$7=jsxRuntimeExports;default_1$7=FilterList.default=(0,_createSvgIcon$7.default)((0,_jsxRuntime$7.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var Event$1={},_interopRequireDefault$6=interopRequireDefaultExports;Object.defineProperty(Event$1,"__esModule",{value:!0});var default_1$6=Event$1.default=void 0,_createSvgIcon$6=_interopRequireDefault$6(requireCreateSvgIcon()),_jsxRuntime$6=jsxRuntimeExports;default_1$6=Event$1.default=(0,_createSvgIcon$6.default)((0,_jsxRuntime$6.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event");const StyledDropDown=styled$1(ROAutocomplete)`
  width: 300px;
  min-width: 300px;
  border-radius: 4px;
  border: 1px ${et=>et.theme.palette.text.secondary} solid;
  font-size: 14px;
  padding: 0;
  margin: 0;
  height: 40px;
`,monthNames=["Jan","Feb","March","April","May","June","July","Aug","Sep","Oct","Nov","Dec"],subDays=(et,tt)=>{const rt=new Date(et);return rt.setDate(rt.getDate()-tt),rt},getEarliestDate=et=>et.reduce((tt,rt)=>new Date(rt.date)<new Date(tt.date)?rt:tt).date,dateRangeMap={"Past 30 days":30,"Past 90 days":90,"Past 6 months":180,"Past 1 year":365,"All time":0},DashboardHeader=et=>{const{title:tt}=et,{filteredData:rt,dateRange:nt,endDate:lt,tumourStreams:ut,physicians:dt,sites:pt,tumourStreamOptions:ht,physicianOptions:mt,siteOptions:xt,setEndDate:Mt,setDateRange:vt,setTumourStreams:Ot,setPhysicians:At,setSites:Rt}=reactExports.useContext(DashboardContext),zt=nt==="All time"?new Date(getEarliestDate(rt)):subDays(lt,dateRangeMap[nt]),Tt=useTheme$1(),[Ct,It]=reactExports.useState(!1),[Dt,kt]=reactExports.useState(!1),[qt,Nt]=reactExports.useState(!1);return jsxRuntimeExports.jsxs("div",{style:{position:"sticky",top:0,background:"white",zIndex:2},children:[jsxRuntimeExports.jsx("div",{className:"insights-dashboard-header-wrapper",children:jsxRuntimeExports.jsxs("div",{className:"insights-dashboard-title-wrapper",children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",sx:{marginRight:"10px"},children:tt}),jsxRuntimeExports.jsxs(Typography,{color:Tt.palette.text.secondary,sx:{paddingBottom:"1px"},children:[zt.getDate()," ",monthNames[zt.getMonth()],", ",zt.getFullYear()," -"," ",lt.getDate()," ",monthNames[lt.getMonth()],", ",lt.getFullYear()]})]})}),jsxRuntimeExports.jsxs("div",{className:"header-controls",children:[jsxRuntimeExports.jsx(Typography,{color:Tt.palette.text.secondary,sx:{display:"flex",alignItems:"center",paddingBottom:"10px"},children:"Filters:"}),jsxRuntimeExports.jsx("div",{className:"dashboard-filter date",children:jsxRuntimeExports.jsx(StyledDropDown,{id:"filter-by-date",icon:jsxRuntimeExports.jsx(default_1$6,{}),placeholder:"Date",value:{label:nt,value:nt},label:"Date",options:Object.entries(dateRangeMap).map(([Yt])=>({label:Yt,value:Yt})),onChange:Yt=>{const Kt=typeof Yt=="string"?Yt:Yt.value;vt(Kt),Mt(new Date)}})}),jsxRuntimeExports.jsx("div",{className:"dashboard-filter",children:jsxRuntimeExports.jsx(MultiSelectWithSearch,{limitTags:2,size:"small",adornmentIcon:pt.length===xt.length&&!Ct?void 0:jsxRuntimeExports.jsx(default_1$9,{}),options:xt,id:"multi-select-search-filter-by-site",value:pt.length===xt.length&&!Ct?[]:pt,label:pt.length===xt.length&&!Ct?"":"Sites",placeholder:pt.length===xt.length&&!Ct?"Sites":"",onChange:Yt=>{It(Yt.length===xt.length),Rt(Yt)},disableCloseOnSelect:!0})}),jsxRuntimeExports.jsx("div",{className:"dashboard-filter",children:jsxRuntimeExports.jsx(MultiSelectWithSearch,{limitTags:2,size:"small",adornmentIcon:dt.length===mt.length&&!Dt?void 0:jsxRuntimeExports.jsx(default_1$8,{}),options:mt,id:"multi-select-search-filter-by-physician",value:dt.length===mt.length&&!Dt?[]:dt,label:dt.length===mt.length&&!Dt?"":"Physicians",placeholder:dt.length===mt.length&&!Dt?"Physicians":"",onChange:Yt=>{kt(Yt.length===mt.length),At(Yt)},disableCloseOnSelect:!0})}),jsxRuntimeExports.jsx("div",{className:"dashboard-filter",children:jsxRuntimeExports.jsx(MultiSelectWithSearch,{limitTags:2,size:"small",adornmentIcon:ut.length===ht.length&&!qt?void 0:jsxRuntimeExports.jsx(default_1$7,{}),options:ht,id:"multi-select-search-filter-by-tumour-stream",value:ut.length===ht.length&&!qt?[]:ut,label:ut.length===ht.length&&!qt?"":"Tumor streams",placeholder:ut.length===ht.length&&!qt?"Tumor streams":"",onChange:Yt=>{Nt(Yt.length===ht.length),Ot(Yt)},disableCloseOnSelect:!0})})]})]})};var ArrowForward={},_interopRequireDefault$5=interopRequireDefaultExports;Object.defineProperty(ArrowForward,"__esModule",{value:!0});var default_1$5=ArrowForward.default=void 0,_createSvgIcon$5=_interopRequireDefault$5(requireCreateSvgIcon()),_jsxRuntime$5=jsxRuntimeExports;default_1$5=ArrowForward.default=(0,_createSvgIcon$5.default)((0,_jsxRuntime$5.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");const Dashboard=et=>{const{filteredData:tt,previousPeriodData:rt,subChartFilteredData:nt,dateFilterOverride:lt,selectedPointIndex:ut,dateRange:dt,handleDateClick:pt,onChartClick:ht}=reactExports.useContext(DashboardContext),{title:mt,config:xt,metric:Mt,metricSuffix:vt="",metricRound:Ot=0,metricFunction:At}=et,[Rt,zt]=reactExports.useState(0),[Tt,Ct]=reactExports.useState(""),[It,Dt]=reactExports.useState(!1),[kt,qt]=reactExports.useState(!1),[Nt,Yt]=reactExports.useState(!1),Kt=useTheme$1();reactExports.useEffect(()=>{Dashboards$1.board("dashboard-container",xt({theme:Kt,data:tt,subChartData:nt,dateFilterOverride:lt,selectedIndex:ut,seeMoreUpdated:Nt,seeMoreBottomLeft:It,seeMoreBottomRight:kt,toggleSeeMoreBottomLeft:Jt,toggleSeeMoreBottomRight:Qt,onPointClick:pt}));const Bt=At(tt),Ft=At(rt),$t=Math.abs(Bt-Ft)/Ft*100;zt($t),Ct(Bt>Ft?"more":"less"),Yt(!1)},[nt,It,kt]);const Jt=()=>{Yt(!0),Dt(!It),ht()},Qt=()=>{Yt(!0),qt(!kt),ht()};return jsxRuntimeExports.jsxs("div",{className:"insights-dashboard-container",children:[jsxRuntimeExports.jsx(DashboardHeader,{title:mt}),jsxRuntimeExports.jsxs("div",{className:"dashboard-metrics",children:[jsxRuntimeExports.jsxs(Typography,{variant:"h5",children:[At(tt).toFixed(Ot),vt," ",Mt]}),jsxRuntimeExports.jsx(Typography,{color:Kt.palette.text.secondary,className:"metrics-subtitle",children:dt!=="All time"&&jsxRuntimeExports.jsxs(Stack$5,{alignItems:"center",direction:"row",children:[jsxRuntimeExports.jsx(default_1$5,{style:{zIndex:1,marginRight:"5px",transform:`rotate(${Tt==="more"?"-":""}90deg)`,width:"16px"}}),Rt.toFixed(Ot),"% ",Tt," than previous"," ",dt.split("Past ")[1]]})})]}),jsxRuntimeExports.jsx("div",{id:"dashboard-container",className:"highcharts-light"})]})},MockData=[{fractions:22,site:"Red Hills",physician:"Dr Wong",date:"2024-10-25",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:13,site:"Red Hills",physician:"Dr Smith",date:"2024-04-09",diagnosis:"metastasis",fraction_dose:2.2,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2024-05-27",diagnosis:"prostate",fraction_dose:1.9,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:11,site:"Red Hills",physician:"Dr Wong",date:"2024-07-03",diagnosis:"prostate",fraction_dose:1.8,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-05-28",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:18,site:"Red Hills",physician:"Dr Smith",date:"2024-01-12",diagnosis:"prostate",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2024-06-02",diagnosis:"breast",fraction_dose:1.6,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-15",diagnosis:"metastasis",fraction_dose:2.7,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:11,site:"Red Hills",physician:"Dr Smith",date:"2024-06-13",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2024-07-10",diagnosis:"skin",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:22,site:"Red Hills",physician:"Dr Smith",date:"2024-10-31",diagnosis:"neuro",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2024-04-25",diagnosis:"metastasis",fraction_dose:3,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2024-10-04",diagnosis:"colorectal",fraction_dose:2.9,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2024-01-20",diagnosis:"metastasis",fraction_dose:1.2,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2024-01-15",diagnosis:"metastasis",fraction_dose:3.1,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Lopez",date:"2024-01-22",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2024-07-06",diagnosis:"prostate",fraction_dose:3.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2024-04-04",diagnosis:"colorectal",fraction_dose:2.9,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:14,site:"Red Hills",physician:"Dr Adams",date:"2024-03-18",diagnosis:"neuro",fraction_dose:3.3,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2024-10-04",diagnosis:"prostate",fraction_dose:3.3,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2024-10-24",diagnosis:"neuro",fraction_dose:1.2,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:10,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:23,site:"Rosebush",physician:"Dr Lopez",date:"2024-09-01",diagnosis:"Unspecified",fraction_dose:1.4,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2024-01-12",diagnosis:"Unspecified",fraction_dose:1.8,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2024-10-16",diagnosis:"Unspecified",fraction_dose:2.5,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:16,site:"Red Hills",physician:"Dr Smith",date:"2024-03-30",diagnosis:"Unspecified",fraction_dose:2.4,adherence:!1,technique:"Unspecified",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2024-09-25",diagnosis:"Unspecified",fraction_dose:2.9,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:18,site:"Rosebush",physician:"Dr Adams",date:"2024-08-19",diagnosis:"Unspecified",fraction_dose:3.4,adherence:!1,technique:"Unspecified",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:21,site:"Red Hills",physician:"Dr Wong",date:"2024-02-12",diagnosis:"Unspecified",fraction_dose:2.7,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Smith",date:"2024-10-06",diagnosis:"Unspecified",fraction_dose:3.3,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-06-20",diagnosis:"Unspecified",fraction_dose:2.6,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"Unspecified"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2024-05-18",diagnosis:"prostate",fraction_dose:2,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Smith",date:"2024-04-07",diagnosis:"prostate",fraction_dose:2.3,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-02-05",diagnosis:"colorectal",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2024-01-14",diagnosis:"neuro",fraction_dose:2,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:13,site:"Red Hills",physician:"Dr Lopez",date:"2024-03-23",diagnosis:"breast",fraction_dose:3,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2024-05-29",diagnosis:"metastasis",fraction_dose:1.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Wong",date:"2024-02-14",diagnosis:"breast",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2024-05-17",diagnosis:"metastasis",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Adams",date:"2024-02-12",diagnosis:"skin",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2024-05-01",diagnosis:"neuro",fraction_dose:2.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Adams",date:"2024-05-15",diagnosis:"neuro",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Adams",date:"2024-01-10",diagnosis:"colorectal",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:23,site:"Campsie",physician:"Dr Adams",date:"2024-09-14",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:17,site:"Rosebush",physician:"Dr Wong",date:"2024-06-30",diagnosis:"metastasis",fraction_dose:2.1,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:18,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-07",diagnosis:"prostate",fraction_dose:1.3,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-04-14",diagnosis:"metastasis",fraction_dose:2.3,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:25,site:"Campsie",physician:"Dr Adams",date:"2024-06-16",diagnosis:"neuro",fraction_dose:1.3,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Adams",date:"2024-09-19",diagnosis:"colorectal",fraction_dose:1.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-01-07",diagnosis:"skin",fraction_dose:1.8,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2024-09-15",diagnosis:"skin",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2024-09-13",diagnosis:"colorectal",fraction_dose:2.8,adherence:!1,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2024-02-15",diagnosis:"colorectal",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Wong",date:"2024-01-22",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2024-01-24",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2024-07-23",diagnosis:"metastasis",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:12,site:"Red Hills",physician:"Dr Adams",date:"2024-03-18",diagnosis:"breast",fraction_dose:2.5,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2024-08-12",diagnosis:"metastasis",fraction_dose:3.3,adherence:!1,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:23,site:"Campsie",physician:"Dr Smith",date:"2024-07-08",diagnosis:"metastasis",fraction_dose:2,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:12,site:"Campsie",physician:"Dr Lopez",date:"2024-05-21",diagnosis:"skin",fraction_dose:2.2,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:10,site:"Rosebush",physician:"Dr Lopez",date:"2024-08-13",diagnosis:"neuro",fraction_dose:1.8,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-11",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:18,site:"Campsie",physician:"Dr Lopez",date:"2024-08-08",diagnosis:"colorectal",fraction_dose:2.3,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Lopez",date:"2024-01-21",diagnosis:"prostate",fraction_dose:2.8,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:16,site:"Rosebush",physician:"Dr Smith",date:"2024-08-02",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2024-04-26",diagnosis:"breast",fraction_dose:1.9,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2024-07-20",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-03-23",diagnosis:"colorectal",fraction_dose:2.1,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-24",diagnosis:"neuro",fraction_dose:3.2,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:21,site:"Rosebush",physician:"Dr Lopez",date:"2024-04-14",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:22,site:"Campsie",physician:"Dr Smith",date:"2024-06-04",diagnosis:"breast",fraction_dose:2.9,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2024-10-05",diagnosis:"prostate",fraction_dose:3.1,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2024-08-15",diagnosis:"neuro",fraction_dose:1.3,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:14,site:"Campsie",physician:"Dr Smith",date:"2024-06-22",diagnosis:"colorectal",fraction_dose:3.4,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:15,site:"Red Hills",physician:"Dr Adams",date:"2024-09-25",diagnosis:"colorectal",fraction_dose:2.1,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2024-05-26",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:17,site:"Campsie",physician:"Dr Wong",date:"2024-08-04",diagnosis:"neuro",fraction_dose:2.7,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2024-08-29",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Wong",date:"2024-09-06",diagnosis:"breast",fraction_dose:2.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2024-08-31",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:24,site:"Red Hills",physician:"Dr Adams",date:"2024-07-20",diagnosis:"prostate",fraction_dose:1.7,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:13,site:"Rosebush",physician:"Dr Wong",date:"2024-07-01",diagnosis:"colorectal",fraction_dose:2.3,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-03-10",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2024-08-07",diagnosis:"metastasis",fraction_dose:3.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2024-08-16",diagnosis:"neuro",fraction_dose:3.1,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-23",diagnosis:"prostate",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-04-30",diagnosis:"colorectal",fraction_dose:1.8,adherence:!1,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-07-12",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2024-02-05",diagnosis:"colorectal",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:10,site:"Rosebush",physician:"Dr Smith",date:"2024-06-11",diagnosis:"prostate",fraction_dose:1.8,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2024-03-02",diagnosis:"skin",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-05",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Lopez",date:"2024-10-22",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:15,site:"Lakeside",physician:"Dr Lopez",date:"2024-05-07",diagnosis:"prostate",fraction_dose:2.9,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2024-05-27",diagnosis:"neuro",fraction_dose:2.2,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-05",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:24,site:"Lakeside",physician:"Dr Adams",date:"2024-03-10",diagnosis:"breast",fraction_dose:3.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2024-02-05",diagnosis:"neuro",fraction_dose:2.7,adherence:!1,technique:"Electrons",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Adams",date:"2024-01-06",diagnosis:"breast",fraction_dose:3.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2024-09-14",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Smith",date:"2024-05-08",diagnosis:"skin",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Wong",date:"2024-10-25",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:13,site:"Red Hills",physician:"Dr Smith",date:"2024-04-09",diagnosis:"metastasis",fraction_dose:2.2,adherence:!1,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2024-05-27",diagnosis:"prostate",fraction_dose:1.9,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:11,site:"Red Hills",physician:"Dr Wong",date:"2024-07-03",diagnosis:"prostate",fraction_dose:1.8,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-05-28",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:18,site:"Red Hills",physician:"Dr Smith",date:"2024-01-12",diagnosis:"prostate",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2024-06-02",diagnosis:"breast",fraction_dose:1.6,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-15",diagnosis:"metastasis",fraction_dose:2.7,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:11,site:"Red Hills",physician:"Dr Smith",date:"2024-06-13",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2024-07-10",diagnosis:"skin",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:22,site:"Red Hills",physician:"Dr Smith",date:"2024-10-31",diagnosis:"neuro",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2024-04-25",diagnosis:"metastasis",fraction_dose:3,adherence:!1,technique:"Conformal",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2024-10-04",diagnosis:"colorectal",fraction_dose:2.9,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2024-01-20",diagnosis:"metastasis",fraction_dose:1.2,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2024-01-15",diagnosis:"metastasis",fraction_dose:3.1,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Lopez",date:"2024-01-22",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2024-07-06",diagnosis:"prostate",fraction_dose:3.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2024-04-04",diagnosis:"colorectal",fraction_dose:2.9,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:14,site:"Red Hills",physician:"Dr Adams",date:"2024-03-18",diagnosis:"neuro",fraction_dose:3.3,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2024-10-04",diagnosis:"prostate",fraction_dose:3.3,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2024-10-24",diagnosis:"neuro",fraction_dose:1.2,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:10,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:23,site:"Rosebush",physician:"Dr Lopez",date:"2024-09-01",diagnosis:"metastasis",fraction_dose:1.4,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2024-01-12",diagnosis:"neuro",fraction_dose:1.8,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2024-10-16",diagnosis:"metastasis",fraction_dose:2.5,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:16,site:"Red Hills",physician:"Dr Smith",date:"2024-03-30",diagnosis:"colorectal",fraction_dose:2.4,adherence:!1,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2024-09-25",diagnosis:"prostate",fraction_dose:2.9,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:18,site:"Rosebush",physician:"Dr Adams",date:"2024-08-19",diagnosis:"neuro",fraction_dose:3.4,adherence:!1,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:21,site:"Red Hills",physician:"Dr Wong",date:"2024-02-12",diagnosis:"breast",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Smith",date:"2024-10-06",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-06-20",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2024-05-18",diagnosis:"prostate",fraction_dose:2,adherence:!1,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Smith",date:"2024-04-07",diagnosis:"prostate",fraction_dose:2.3,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-02-05",diagnosis:"colorectal",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2024-01-14",diagnosis:"neuro",fraction_dose:2,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:13,site:"Red Hills",physician:"Dr Lopez",date:"2024-03-23",diagnosis:"breast",fraction_dose:3,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2024-05-29",diagnosis:"metastasis",fraction_dose:1.7,adherence:!1,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Wong",date:"2024-02-14",diagnosis:"breast",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2024-05-17",diagnosis:"metastasis",fraction_dose:2.8,adherence:!1,technique:"Electrons",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Adams",date:"2024-02-12",diagnosis:"skin",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2024-05-01",diagnosis:"neuro",fraction_dose:2.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Adams",date:"2024-05-15",diagnosis:"neuro",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Adams",date:"2024-01-10",diagnosis:"colorectal",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:23,site:"Campsie",physician:"Dr Adams",date:"2024-09-14",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:17,site:"Rosebush",physician:"Dr Wong",date:"2024-06-30",diagnosis:"metastasis",fraction_dose:2.1,adherence:!1,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:18,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-07",diagnosis:"prostate",fraction_dose:1.3,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-04-14",diagnosis:"metastasis",fraction_dose:2.3,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:25,site:"Campsie",physician:"Dr Adams",date:"2024-06-16",diagnosis:"neuro",fraction_dose:1.3,adherence:!1,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Adams",date:"2024-09-19",diagnosis:"colorectal",fraction_dose:1.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-01-07",diagnosis:"skin",fraction_dose:1.8,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2024-09-15",diagnosis:"skin",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2024-09-13",diagnosis:"colorectal",fraction_dose:2.8,adherence:!1,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2024-02-15",diagnosis:"colorectal",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Wong",date:"2024-01-22",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2024-01-24",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2024-07-23",diagnosis:"metastasis",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:12,site:"Red Hills",physician:"Dr Adams",date:"2024-03-18",diagnosis:"breast",fraction_dose:2.5,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2024-08-12",diagnosis:"metastasis",fraction_dose:3.3,adherence:!1,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:23,site:"Campsie",physician:"Dr Smith",date:"2024-07-08",diagnosis:"metastasis",fraction_dose:2,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:12,site:"Campsie",physician:"Dr Lopez",date:"2024-05-21",diagnosis:"skin",fraction_dose:2.2,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:10,site:"Rosebush",physician:"Dr Lopez",date:"2024-08-13",diagnosis:"neuro",fraction_dose:1.8,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-11",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:18,site:"Campsie",physician:"Dr Lopez",date:"2024-08-08",diagnosis:"colorectal",fraction_dose:2.3,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Lopez",date:"2024-01-21",diagnosis:"prostate",fraction_dose:2.8,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:16,site:"Rosebush",physician:"Dr Smith",date:"2024-08-02",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2024-04-26",diagnosis:"breast",fraction_dose:1.9,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2024-07-20",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-03-23",diagnosis:"colorectal",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-24",diagnosis:"neuro",fraction_dose:3.2,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:21,site:"Rosebush",physician:"Dr Lopez",date:"2024-04-14",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:22,site:"Campsie",physician:"Dr Smith",date:"2024-06-04",diagnosis:"breast",fraction_dose:2.9,adherence:!1,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2024-10-05",diagnosis:"prostate",fraction_dose:3.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2024-08-15",diagnosis:"neuro",fraction_dose:1.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:14,site:"Campsie",physician:"Dr Smith",date:"2024-06-22",diagnosis:"colorectal",fraction_dose:3.4,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:15,site:"Red Hills",physician:"Dr Adams",date:"2024-09-25",diagnosis:"colorectal",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2024-05-26",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:17,site:"Campsie",physician:"Dr Wong",date:"2024-08-04",diagnosis:"neuro",fraction_dose:2.7,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2024-08-29",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Wong",date:"2024-09-06",diagnosis:"breast",fraction_dose:2.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2024-08-31",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:24,site:"Red Hills",physician:"Dr Adams",date:"2024-07-20",diagnosis:"prostate",fraction_dose:1.7,adherence:!1,technique:"Electrons",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:13,site:"Rosebush",physician:"Dr Wong",date:"2024-07-01",diagnosis:"colorectal",fraction_dose:2.3,adherence:!1,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-03-10",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2024-08-07",diagnosis:"metastasis",fraction_dose:3.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2024-08-16",diagnosis:"neuro",fraction_dose:3.1,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-23",diagnosis:"prostate",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-04-30",diagnosis:"colorectal",fraction_dose:1.8,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-07-12",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2024-02-05",diagnosis:"colorectal",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:10,site:"Rosebush",physician:"Dr Smith",date:"2024-06-11",diagnosis:"prostate",fraction_dose:1.8,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2024-03-02",diagnosis:"skin",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-05",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Lopez",date:"2024-10-22",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:15,site:"Lakeside",physician:"Dr Lopez",date:"2024-05-07",diagnosis:"prostate",fraction_dose:2.9,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2024-05-27",diagnosis:"neuro",fraction_dose:2.2,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-05",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:24,site:"Lakeside",physician:"Dr Adams",date:"2024-03-10",diagnosis:"breast",fraction_dose:3.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2024-02-05",diagnosis:"neuro",fraction_dose:2.7,adherence:!1,technique:"Electrons",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Adams",date:"2024-01-06",diagnosis:"breast",fraction_dose:3.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2024-09-14",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Smith",date:"2024-05-08",diagnosis:"skin",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Wong",date:"2024-10-25",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:13,site:"Red Hills",physician:"Dr Smith",date:"2024-04-09",diagnosis:"metastasis",fraction_dose:2.2,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2024-05-27",diagnosis:"prostate",fraction_dose:1.9,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:11,site:"Red Hills",physician:"Dr Wong",date:"2024-07-03",diagnosis:"prostate",fraction_dose:1.8,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-05-28",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:18,site:"Red Hills",physician:"Dr Smith",date:"2024-01-12",diagnosis:"prostate",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2024-06-02",diagnosis:"breast",fraction_dose:1.6,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-15",diagnosis:"metastasis",fraction_dose:2.7,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:11,site:"Red Hills",physician:"Dr Smith",date:"2024-06-13",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2024-07-10",diagnosis:"skin",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:22,site:"Red Hills",physician:"Dr Smith",date:"2024-10-31",diagnosis:"neuro",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2024-04-25",diagnosis:"metastasis",fraction_dose:3,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2024-10-04",diagnosis:"colorectal",fraction_dose:2.9,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2024-01-20",diagnosis:"metastasis",fraction_dose:1.2,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2024-01-15",diagnosis:"metastasis",fraction_dose:3.1,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Lopez",date:"2024-01-22",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2024-07-06",diagnosis:"prostate",fraction_dose:3.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2024-04-04",diagnosis:"colorectal",fraction_dose:2.9,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:14,site:"Red Hills",physician:"Dr Adams",date:"2024-03-18",diagnosis:"neuro",fraction_dose:3.3,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2024-10-04",diagnosis:"prostate",fraction_dose:3.3,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2024-10-24",diagnosis:"neuro",fraction_dose:1.2,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:10,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:23,site:"Rosebush",physician:"Dr Lopez",date:"2024-09-01",diagnosis:"metastasis",fraction_dose:1.4,adherence:!1,technique:"Conformal",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2024-01-12",diagnosis:"neuro",fraction_dose:1.8,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2024-10-16",diagnosis:"metastasis",fraction_dose:2.5,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:16,site:"Red Hills",physician:"Dr Smith",date:"2024-03-30",diagnosis:"colorectal",fraction_dose:2.4,adherence:!1,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2024-09-25",diagnosis:"prostate",fraction_dose:2.9,adherence:!1,technique:"Electrons",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:18,site:"Rosebush",physician:"Dr Adams",date:"2024-08-19",diagnosis:"neuro",fraction_dose:3.4,adherence:!1,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:21,site:"Red Hills",physician:"Dr Wong",date:"2024-02-12",diagnosis:"breast",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Smith",date:"2024-10-06",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-06-20",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2024-09-18",diagnosis:"prostate",fraction_dose:2,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Smith",date:"2024-04-07",diagnosis:"prostate",fraction_dose:2.3,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-02-05",diagnosis:"colorectal",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2024-01-14",diagnosis:"neuro",fraction_dose:2,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:13,site:"Red Hills",physician:"Dr Lopez",date:"2024-03-23",diagnosis:"breast",fraction_dose:3,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2024-09-29",diagnosis:"metastasis",fraction_dose:1.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Wong",date:"2024-02-14",diagnosis:"breast",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2024-09-17",diagnosis:"metastasis",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Adams",date:"2024-02-12",diagnosis:"skin",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2024-05-01",diagnosis:"neuro",fraction_dose:2.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Adams",date:"2024-05-15",diagnosis:"neuro",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Adams",date:"2024-01-10",diagnosis:"colorectal",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:23,site:"Campsie",physician:"Dr Adams",date:"2024-09-14",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:17,site:"Rosebush",physician:"Dr Wong",date:"2024-09-30",diagnosis:"metastasis",fraction_dose:2.1,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:18,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-07",diagnosis:"prostate",fraction_dose:1.3,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-04-14",diagnosis:"metastasis",fraction_dose:2.3,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:25,site:"Campsie",physician:"Dr Adams",date:"2024-09-16",diagnosis:"neuro",fraction_dose:1.3,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Adams",date:"2024-09-19",diagnosis:"colorectal",fraction_dose:1.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-01-07",diagnosis:"skin",fraction_dose:1.8,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2024-09-15",diagnosis:"skin",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2024-09-13",diagnosis:"colorectal",fraction_dose:2.8,adherence:!1,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2024-02-15",diagnosis:"colorectal",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Wong",date:"2024-01-22",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2024-01-24",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2024-07-23",diagnosis:"metastasis",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:12,site:"Red Hills",physician:"Dr Adams",date:"2024-03-18",diagnosis:"breast",fraction_dose:2.5,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2024-08-12",diagnosis:"metastasis",fraction_dose:3.3,adherence:!1,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:23,site:"Campsie",physician:"Dr Smith",date:"2024-07-08",diagnosis:"metastasis",fraction_dose:2,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:12,site:"Campsie",physician:"Dr Lopez",date:"2024-05-21",diagnosis:"skin",fraction_dose:2.2,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:10,site:"Rosebush",physician:"Dr Lopez",date:"2024-08-13",diagnosis:"neuro",fraction_dose:1.8,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-11",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:18,site:"Campsie",physician:"Dr Lopez",date:"2024-08-08",diagnosis:"colorectal",fraction_dose:2.3,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Lopez",date:"2024-01-21",diagnosis:"prostate",fraction_dose:2.8,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:16,site:"Rosebush",physician:"Dr Smith",date:"2024-08-02",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2024-04-26",diagnosis:"breast",fraction_dose:1.9,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2024-07-20",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-03-23",diagnosis:"colorectal",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-24",diagnosis:"neuro",fraction_dose:3.2,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:21,site:"Rosebush",physician:"Dr Lopez",date:"2024-04-14",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:22,site:"Campsie",physician:"Dr Smith",date:"2024-09-04",diagnosis:"breast",fraction_dose:2.9,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2024-10-05",diagnosis:"prostate",fraction_dose:3.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2024-08-15",diagnosis:"neuro",fraction_dose:1.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:14,site:"Campsie",physician:"Dr Smith",date:"2024-06-22",diagnosis:"colorectal",fraction_dose:3.4,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:15,site:"Red Hills",physician:"Dr Adams",date:"2024-09-25",diagnosis:"colorectal",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2024-05-26",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:17,site:"Campsie",physician:"Dr Wong",date:"2024-08-04",diagnosis:"neuro",fraction_dose:2.7,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2024-08-29",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Wong",date:"2024-09-06",diagnosis:"breast",fraction_dose:2.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2024-08-31",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:24,site:"Red Hills",physician:"Dr Adams",date:"2024-07-20",diagnosis:"prostate",fraction_dose:1.7,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:13,site:"Rosebush",physician:"Dr Wong",date:"2024-07-01",diagnosis:"colorectal",fraction_dose:2.3,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-03-10",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2024-08-07",diagnosis:"metastasis",fraction_dose:3.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2024-08-16",diagnosis:"neuro",fraction_dose:3.1,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-23",diagnosis:"prostate",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-04-30",diagnosis:"colorectal",fraction_dose:1.8,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-07-12",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2024-02-05",diagnosis:"colorectal",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:10,site:"Rosebush",physician:"Dr Smith",date:"2024-06-11",diagnosis:"prostate",fraction_dose:1.8,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2024-03-02",diagnosis:"skin",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-05",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Lopez",date:"2024-10-22",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:15,site:"Lakeside",physician:"Dr Lopez",date:"2024-05-07",diagnosis:"prostate",fraction_dose:2.9,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2024-05-27",diagnosis:"neuro",fraction_dose:2.2,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-05",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:24,site:"Lakeside",physician:"Dr Adams",date:"2024-03-10",diagnosis:"breast",fraction_dose:3.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2024-02-05",diagnosis:"neuro",fraction_dose:2.7,adherence:!1,technique:"Electrons",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Adams",date:"2024-01-06",diagnosis:"breast",fraction_dose:3.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2024-09-14",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Smith",date:"2024-05-08",diagnosis:"skin",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Wong",date:"2024-10-25",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:13,site:"Red Hills",physician:"Dr Smith",date:"2024-04-09",diagnosis:"metastasis",fraction_dose:2.2,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2024-05-27",diagnosis:"prostate",fraction_dose:1.9,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:11,site:"Red Hills",physician:"Dr Wong",date:"2024-07-03",diagnosis:"prostate",fraction_dose:1.8,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-05-28",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:18,site:"Red Hills",physician:"Dr Smith",date:"2024-01-12",diagnosis:"prostate",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2024-06-02",diagnosis:"breast",fraction_dose:1.6,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-15",diagnosis:"metastasis",fraction_dose:2.7,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:11,site:"Red Hills",physician:"Dr Smith",date:"2024-06-13",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2024-07-10",diagnosis:"skin",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:22,site:"Red Hills",physician:"Dr Smith",date:"2024-10-31",diagnosis:"neuro",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2024-04-25",diagnosis:"metastasis",fraction_dose:3,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2024-10-04",diagnosis:"colorectal",fraction_dose:2.9,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2024-01-20",diagnosis:"metastasis",fraction_dose:1.2,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2024-01-15",diagnosis:"metastasis",fraction_dose:3.1,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Lopez",date:"2024-01-22",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2024-07-06",diagnosis:"prostate",fraction_dose:3.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2024-04-04",diagnosis:"colorectal",fraction_dose:2.9,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:14,site:"Red Hills",physician:"Dr Adams",date:"2024-03-18",diagnosis:"neuro",fraction_dose:3.3,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2024-10-04",diagnosis:"prostate",fraction_dose:3.3,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2024-10-24",diagnosis:"neuro",fraction_dose:1.2,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:10,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:23,site:"Rosebush",physician:"Dr Lopez",date:"2024-09-01",diagnosis:"metastasis",fraction_dose:1.4,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2024-01-12",diagnosis:"neuro",fraction_dose:1.8,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2024-10-16",diagnosis:"metastasis",fraction_dose:2.5,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:16,site:"Red Hills",physician:"Dr Smith",date:"2024-03-30",diagnosis:"colorectal",fraction_dose:2.4,adherence:!1,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2024-09-25",diagnosis:"prostate",fraction_dose:2.9,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:18,site:"Rosebush",physician:"Dr Adams",date:"2024-08-19",diagnosis:"neuro",fraction_dose:3.4,adherence:!1,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:21,site:"Red Hills",physician:"Dr Wong",date:"2024-02-12",diagnosis:"breast",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Smith",date:"2024-10-06",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-06-20",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2024-05-18",diagnosis:"prostate",fraction_dose:2,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Smith",date:"2024-04-07",diagnosis:"prostate",fraction_dose:2.3,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-02-05",diagnosis:"colorectal",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2024-01-14",diagnosis:"neuro",fraction_dose:2,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:13,site:"Red Hills",physician:"Dr Lopez",date:"2024-03-23",diagnosis:"breast",fraction_dose:3,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2024-05-29",diagnosis:"metastasis",fraction_dose:1.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Wong",date:"2024-02-14",diagnosis:"breast",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2024-05-17",diagnosis:"metastasis",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Adams",date:"2024-02-12",diagnosis:"skin",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2024-05-01",diagnosis:"neuro",fraction_dose:2.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Adams",date:"2024-05-15",diagnosis:"neuro",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Adams",date:"2024-01-10",diagnosis:"colorectal",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:23,site:"Campsie",physician:"Dr Adams",date:"2024-09-14",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:17,site:"Rosebush",physician:"Dr Wong",date:"2024-06-30",diagnosis:"metastasis",fraction_dose:2.1,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:18,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-07",diagnosis:"prostate",fraction_dose:1.3,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-04-14",diagnosis:"metastasis",fraction_dose:2.3,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:25,site:"Campsie",physician:"Dr Adams",date:"2024-06-16",diagnosis:"neuro",fraction_dose:1.3,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Adams",date:"2024-09-19",diagnosis:"colorectal",fraction_dose:1.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-01-07",diagnosis:"skin",fraction_dose:1.8,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2024-09-15",diagnosis:"skin",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2024-09-13",diagnosis:"colorectal",fraction_dose:2.8,adherence:!1,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2024-02-15",diagnosis:"colorectal",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Wong",date:"2024-01-22",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2024-01-24",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2024-07-23",diagnosis:"metastasis",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:12,site:"Red Hills",physician:"Dr Adams",date:"2024-03-18",diagnosis:"breast",fraction_dose:2.5,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2024-08-12",diagnosis:"metastasis",fraction_dose:3.3,adherence:!1,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:23,site:"Campsie",physician:"Dr Smith",date:"2024-07-08",diagnosis:"metastasis",fraction_dose:2,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:12,site:"Campsie",physician:"Dr Lopez",date:"2024-05-21",diagnosis:"skin",fraction_dose:2.2,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:10,site:"Rosebush",physician:"Dr Lopez",date:"2024-08-13",diagnosis:"neuro",fraction_dose:1.8,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-11",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:18,site:"Campsie",physician:"Dr Lopez",date:"2024-08-08",diagnosis:"colorectal",fraction_dose:2.3,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Lopez",date:"2024-01-21",diagnosis:"prostate",fraction_dose:2.8,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:16,site:"Rosebush",physician:"Dr Smith",date:"2024-08-02",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2024-04-26",diagnosis:"breast",fraction_dose:1.9,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2024-07-20",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-03-23",diagnosis:"colorectal",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-24",diagnosis:"neuro",fraction_dose:3.2,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:21,site:"Rosebush",physician:"Dr Lopez",date:"2024-04-14",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:22,site:"Campsie",physician:"Dr Smith",date:"2024-06-04",diagnosis:"breast",fraction_dose:2.9,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2024-10-05",diagnosis:"prostate",fraction_dose:3.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2024-08-15",diagnosis:"neuro",fraction_dose:1.3,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:14,site:"Campsie",physician:"Dr Smith",date:"2024-06-22",diagnosis:"colorectal",fraction_dose:3.4,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:15,site:"Red Hills",physician:"Dr Adams",date:"2024-09-25",diagnosis:"colorectal",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2024-05-26",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:17,site:"Campsie",physician:"Dr Wong",date:"2024-08-04",diagnosis:"neuro",fraction_dose:2.7,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2024-08-29",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Wong",date:"2024-09-06",diagnosis:"breast",fraction_dose:2.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2024-08-31",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:24,site:"Red Hills",physician:"Dr Adams",date:"2024-07-20",diagnosis:"prostate",fraction_dose:1.7,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:13,site:"Rosebush",physician:"Dr Wong",date:"2024-07-01",diagnosis:"colorectal",fraction_dose:2.3,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2024-03-10",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2024-08-07",diagnosis:"metastasis",fraction_dose:3.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2024-08-16",diagnosis:"neuro",fraction_dose:3.1,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-23",diagnosis:"prostate",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-04-30",diagnosis:"colorectal",fraction_dose:1.8,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2024-07-12",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2024-02-05",diagnosis:"colorectal",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:10,site:"Rosebush",physician:"Dr Smith",date:"2024-06-11",diagnosis:"prostate",fraction_dose:1.8,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2024-03-02",diagnosis:"skin",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2024-08-05",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Lopez",date:"2024-10-22",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:15,site:"Lakeside",physician:"Dr Lopez",date:"2024-05-07",diagnosis:"prostate",fraction_dose:2.9,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2024-05-27",diagnosis:"neuro",fraction_dose:2.2,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2024-07-05",diagnosis:"metastasis",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:24,site:"Lakeside",physician:"Dr Adams",date:"2024-03-10",diagnosis:"breast",fraction_dose:3.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2024-02-05",diagnosis:"neuro",fraction_dose:2.7,adherence:!1,technique:"Electrons",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Adams",date:"2024-01-06",diagnosis:"breast",fraction_dose:3.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2024-09-14",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Smith",date:"2024-05-08",diagnosis:"skin",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:10,site:"Campsie",physician:"Dr Wong",date:"2023-03-30",diagnosis:"breast",fraction_dose:1.68,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:17,site:"Rosebush",physician:"Dr Wong",date:"2023-08-08",diagnosis:"Unspecified",fraction_dose:2.27,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:23,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-22",diagnosis:"skin",fraction_dose:1.66,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:10,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:25,site:"Rosebush",physician:"Dr Smith",date:"2023-04-23",diagnosis:"prostate",fraction_dose:1.83,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:25,site:"Campsie",physician:"Dr Smith",date:"2023-12-07",diagnosis:"breast",fraction_dose:1.79,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:19,site:"Rosebush",physician:"Dr Smith",date:"2023-12-17",diagnosis:"Unspecified",fraction_dose:3.39,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2023-10-02",diagnosis:"colorectal",fraction_dose:2.15,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2023-08-06",diagnosis:"prostate",fraction_dose:1.81,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:9,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:16,site:"Red Hills",physician:"Dr Wong",date:"2023-06-18",diagnosis:"breast",fraction_dose:2.93,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:11,site:"Campsie",physician:"Dr Lopez",date:"2023-06-24",diagnosis:"colorectal",fraction_dose:3.28,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:24,site:"Rosebush",physician:"Dr Adams",date:"2023-05-23",diagnosis:"prostate",fraction_dose:1.25,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2023-11-15",diagnosis:"metastasis",fraction_dose:3.37,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:9,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:19,site:"Red Hills",physician:"Dr Adams",date:"2023-10-19",diagnosis:"skin",fraction_dose:1.73,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:23,site:"Rosebush",physician:"Dr Wong",date:"2023-07-12",diagnosis:"skin",fraction_dose:2.78,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:22,site:"Lakeside",physician:"Dr Lopez",date:"2023-05-14",diagnosis:"skin",fraction_dose:2.4,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:9,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:15,site:"Campsie",physician:"Dr Lopez",date:"2023-08-26",diagnosis:"breast",fraction_dose:1.83,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:20,site:"Campsie",physician:"Dr Lopez",date:"2023-08-13",diagnosis:"metastasis",fraction_dose:2.2,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:19,site:"Red Hills",physician:"Dr Adams",date:"2023-05-18",diagnosis:"metastasis",fraction_dose:2.59,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:10,site:"Lakeside",physician:"Dr Wong",date:"2023-05-20",diagnosis:"colorectal",fraction_dose:2.38,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2023-03-26",diagnosis:"neuro",fraction_dose:2.08,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2023-02-03",diagnosis:"prostate",fraction_dose:1.25,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2023-07-16",diagnosis:"prostate",fraction_dose:2.5,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:15,site:"Rosebush",physician:"Dr Lopez",date:"2023-10-31",diagnosis:"Unspecified",fraction_dose:1.67,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-10-13",diagnosis:"prostate",fraction_dose:1.88,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:23,site:"Campsie",physician:"Dr Smith",date:"2023-04-24",diagnosis:"prostate",fraction_dose:2.88,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:14,site:"Campsie",physician:"Dr Wong",date:"2023-09-29",diagnosis:"skin",fraction_dose:3.09,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2023-03-12",diagnosis:"breast",fraction_dose:1.59,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:7,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:12,site:"Campsie",physician:"Dr Smith",date:"2023-11-21",diagnosis:"prostate",fraction_dose:1.82,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:17,site:"Lakeside",physician:"Dr Smith",date:"2023-06-23",diagnosis:"breast",fraction_dose:1.29,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:12,site:"Campsie",physician:"Dr Wong",date:"2023-04-24",diagnosis:"colorectal",fraction_dose:2.36,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:11,site:"Lakeside",physician:"Dr Adams",date:"2023-02-27",diagnosis:"colorectal",fraction_dose:1.29,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:22,site:"Lakeside",physician:"Dr Smith",date:"2023-08-25",diagnosis:"prostate",fraction_dose:2.04,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:12,site:"Lakeside",physician:"Dr Lopez",date:"2023-01-15",diagnosis:"colorectal",fraction_dose:1.6,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:25,site:"Red Hills",physician:"Dr Wong",date:"2023-12-30",diagnosis:"Unspecified",fraction_dose:2.88,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:11,site:"Campsie",physician:"Dr Wong",date:"2023-11-15",diagnosis:"colorectal",fraction_dose:3.25,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:20,site:"Lakeside",physician:"Dr Smith",date:"2023-11-02",diagnosis:"neuro",fraction_dose:3.2,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:9,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Lopez",date:"2023-12-04",diagnosis:"Unspecified",fraction_dose:3.28,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:10,site:"Red Hills",physician:"Dr Lopez",date:"2023-03-20",diagnosis:"prostate",fraction_dose:2.49,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:25,site:"Lakeside",physician:"Dr Adams",date:"2023-03-02",diagnosis:"Unspecified",fraction_dose:1.22,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:20,site:"Campsie",physician:"Dr Wong",date:"2023-04-15",diagnosis:"Unspecified",fraction_dose:1.89,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:22,site:"Lakeside",physician:"Dr Lopez",date:"2023-11-10",diagnosis:"metastasis",fraction_dose:1.71,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:25,site:"Rosebush",physician:"Dr Adams",date:"2023-10-05",diagnosis:"breast",fraction_dose:1.94,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:16,site:"Red Hills",physician:"Dr Wong",date:"2023-12-30",diagnosis:"skin",fraction_dose:3.36,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:18,site:"Red Hills",physician:"Dr Wong",date:"2023-09-14",diagnosis:"colorectal",fraction_dose:2.56,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:10,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:13,site:"Red Hills",physician:"Dr Wong",date:"2023-09-15",diagnosis:"skin",fraction_dose:1.83,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:10,site:"Red Hills",physician:"Dr Smith",date:"2023-05-26",diagnosis:"neuro",fraction_dose:3.4,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:13,site:"Campsie",physician:"Dr Smith",date:"2023-05-16",diagnosis:"skin",fraction_dose:1.29,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-12-25",diagnosis:"skin",fraction_dose:2.71,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:16,site:"Campsie",physician:"Dr Smith",date:"2023-03-22",diagnosis:"skin",fraction_dose:3.27,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:15,site:"Campsie",physician:"Dr Adams",date:"2023-11-11",diagnosis:"Unspecified",fraction_dose:2.85,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:10,site:"Lakeside",physician:"Dr Lopez",date:"2023-04-03",diagnosis:"metastasis",fraction_dose:1.43,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:24,site:"Rosebush",physician:"Dr Adams",date:"2023-10-18",diagnosis:"prostate",fraction_dose:1.88,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2023-01-23",diagnosis:"skin",fraction_dose:1.63,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:25,site:"Red Hills",physician:"Dr Adams",date:"2023-05-08",diagnosis:"neuro",fraction_dose:1.78,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:14,site:"Red Hills",physician:"Dr Lopez",date:"2023-03-05",diagnosis:"colorectal",fraction_dose:1.78,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:17,site:"Red Hills",physician:"Dr Lopez",date:"2023-09-11",diagnosis:"Unspecified",fraction_dose:2.77,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:15,site:"Red Hills",physician:"Dr Lopez",date:"2023-07-03",diagnosis:"colorectal",fraction_dose:2.69,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:21,site:"Lakeside",physician:"Dr Smith",date:"2023-07-29",diagnosis:"breast",fraction_dose:2.2,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:14,site:"Red Hills",physician:"Dr Smith",date:"2023-10-09",diagnosis:"colorectal",fraction_dose:2.52,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:13,site:"Campsie",physician:"Dr Lopez",date:"2023-12-03",diagnosis:"neuro",fraction_dose:2.9,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:20,site:"Campsie",physician:"Dr Wong",date:"2023-08-14",diagnosis:"Unspecified",fraction_dose:2.27,adherence:!1,technique:"VMAT",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:23,site:"Lakeside",physician:"Dr Adams",date:"2023-01-08",diagnosis:"skin",fraction_dose:2.03,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Wong",date:"2023-12-23",diagnosis:"Unspecified",fraction_dose:1.34,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:21,site:"Campsie",physician:"Dr Lopez",date:"2023-01-14",diagnosis:"metastasis",fraction_dose:2.21,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:10,site:"Lakeside",physician:"Dr Wong",date:"2023-03-28",diagnosis:"skin",fraction_dose:1.72,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Adams",date:"2023-09-20",diagnosis:"metastasis",fraction_dose:2.39,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2023-12-20",diagnosis:"breast",fraction_dose:2.11,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2023-05-21",diagnosis:"breast",fraction_dose:2.91,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:15,site:"Rosebush",physician:"Dr Smith",date:"2023-10-24",diagnosis:"metastasis",fraction_dose:2.27,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:14,site:"Lakeside",physician:"Dr Lopez",date:"2023-04-22",diagnosis:"Unspecified",fraction_dose:3.05,adherence:!1,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:20,site:"Lakeside",physician:"Dr Smith",date:"2023-06-30",diagnosis:"colorectal",fraction_dose:3.29,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:11,site:"Rosebush",physician:"Dr Adams",date:"2023-08-28",diagnosis:"Unspecified",fraction_dose:2.07,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:15,site:"Lakeside",physician:"Dr Lopez",date:"2023-04-03",diagnosis:"skin",fraction_dose:2.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:15,site:"Lakeside",physician:"Dr Adams",date:"2023-07-08",diagnosis:"prostate",fraction_dose:1.48,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:19,site:"Lakeside",physician:"Dr Adams",date:"2023-07-19",diagnosis:"metastasis",fraction_dose:1.39,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2023-07-01",diagnosis:"breast",fraction_dose:2.2,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:21,site:"Red Hills",physician:"Dr Wong",date:"2023-03-21",diagnosis:"breast",fraction_dose:1.48,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:18,site:"Rosebush",physician:"Dr Smith",date:"2023-12-13",diagnosis:"metastasis",fraction_dose:3.03,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:22,site:"Campsie",physician:"Dr Lopez",date:"2023-05-04",diagnosis:"prostate",fraction_dose:1.21,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:19,site:"Red Hills",physician:"Dr Smith",date:"2023-11-19",diagnosis:"Unspecified",fraction_dose:2.53,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:25,site:"Campsie",physician:"Dr Lopez",date:"2023-07-26",diagnosis:"colorectal",fraction_dose:2.48,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:15,site:"Red Hills",physician:"Dr Smith",date:"2023-04-07",diagnosis:"Unspecified",fraction_dose:3.1,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:19,site:"Rosebush",physician:"Dr Wong",date:"2023-10-23",diagnosis:"breast",fraction_dose:2.01,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:25,site:"Rosebush",physician:"Dr Adams",date:"2023-07-26",diagnosis:"metastasis",fraction_dose:2.55,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Smith",date:"2023-03-19",diagnosis:"prostate",fraction_dose:1.58,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:17,site:"Rosebush",physician:"Dr Adams",date:"2023-09-04",diagnosis:"breast",fraction_dose:1.48,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:18,site:"Campsie",physician:"Dr Adams",date:"2023-05-14",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:23,site:"Red Hills",physician:"Dr Adams",date:"2023-09-03",diagnosis:"neuro",fraction_dose:3.11,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:12,site:"Red Hills",physician:"Dr Adams",date:"2023-07-13",diagnosis:"Unspecified",fraction_dose:1.9,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:23,site:"Campsie",physician:"Dr Smith",date:"2023-02-06",diagnosis:"colorectal",fraction_dose:1.56,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:23,site:"Red Hills",physician:"Dr Adams",date:"2023-11-04",diagnosis:"colorectal",fraction_dose:2,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2023-11-06",diagnosis:"metastasis",fraction_dose:2.46,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:20,site:"Campsie",physician:"Dr Smith",date:"2023-04-17",diagnosis:"neuro",fraction_dose:2.67,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:11,site:"Red Hills",physician:"Dr Smith",date:"2023-11-21",diagnosis:"breast",fraction_dose:2.16,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:23,site:"Rosebush",physician:"Dr Lopez",date:"2023-10-15",diagnosis:"neuro",fraction_dose:1.65,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:17,site:"Campsie",physician:"Dr Smith",date:"2023-05-12",diagnosis:"colorectal",fraction_dose:3.05,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:18,site:"Lakeside",physician:"Dr Lopez",date:"2023-10-05",diagnosis:"colorectal",fraction_dose:1.2,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:23,site:"Lakeside",physician:"Dr Wong",date:"2023-12-01",diagnosis:"breast",fraction_dose:2.95,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2023-09-07",diagnosis:"metastasis",fraction_dose:3.17,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Smith",date:"2023-04-07",diagnosis:"skin",fraction_dose:2.25,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:10,site:"Rosebush",physician:"Dr Wong",date:"2023-12-04",diagnosis:"Unspecified",fraction_dose:1.35,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:20,site:"Rosebush",physician:"Dr Adams",date:"2023-10-29",diagnosis:"prostate",fraction_dose:3,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:14,site:"Campsie",physician:"Dr Smith",date:"2023-10-19",diagnosis:"prostate",fraction_dose:3.2,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-03-02",diagnosis:"metastasis",fraction_dose:1.7,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2023-12-30",diagnosis:"colorectal",fraction_dose:2.14,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:15,site:"Red Hills",physician:"Dr Smith",date:"2023-11-25",diagnosis:"metastasis",fraction_dose:2.1,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:25,site:"Campsie",physician:"Dr Wong",date:"2023-09-02",diagnosis:"metastasis",fraction_dose:2.93,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Wong",date:"2023-03-22",diagnosis:"neuro",fraction_dose:2.52,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:18,site:"Red Hills",physician:"Dr Adams",date:"2023-06-25",diagnosis:"Unspecified",fraction_dose:2.47,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:20,site:"Rosebush",physician:"Dr Adams",date:"2023-05-04",diagnosis:"Unspecified",fraction_dose:3.08,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:22,site:"Lakeside",physician:"Dr Lopez",date:"2023-11-18",diagnosis:"breast",fraction_dose:2.08,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:15,site:"Campsie",physician:"Dr Wong",date:"2023-09-05",diagnosis:"colorectal",fraction_dose:2.54,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-04-01",diagnosis:"colorectal",fraction_dose:1.32,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2023-10-05",diagnosis:"metastasis",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2023-01-15",diagnosis:"skin",fraction_dose:2.36,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:23,site:"Lakeside",physician:"Dr Adams",date:"2023-11-24",diagnosis:"prostate",fraction_dose:2.6,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:22,site:"Campsie",physician:"Dr Lopez",date:"2023-04-27",diagnosis:"Unspecified",fraction_dose:3.37,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:24,site:"Red Hills",physician:"Dr Smith",date:"2023-05-07",diagnosis:"neuro",fraction_dose:2.41,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2023-03-29",diagnosis:"Unspecified",fraction_dose:2.44,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:21,site:"Campsie",physician:"Dr Smith",date:"2023-04-14",diagnosis:"Unspecified",fraction_dose:1.81,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2023-04-26",diagnosis:"neuro",fraction_dose:2.14,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:15,site:"Red Hills",physician:"Dr Lopez",date:"2023-07-19",diagnosis:"metastasis",fraction_dose:1.48,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:20,site:"Lakeside",physician:"Dr Adams",date:"2023-02-11",diagnosis:"prostate",fraction_dose:1.37,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:14,site:"Red Hills",physician:"Dr Adams",date:"2023-10-27",diagnosis:"Unspecified",fraction_dose:3.31,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:10,site:"Rosebush",physician:"Dr Wong",date:"2023-12-28",diagnosis:"breast",fraction_dose:3.08,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:19,site:"Rosebush",physician:"Dr Lopez",date:"2023-05-07",diagnosis:"colorectal",fraction_dose:3.09,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:17,site:"Rosebush",physician:"Dr Smith",date:"2023-03-01",diagnosis:"metastasis",fraction_dose:2.86,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:7,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:14,site:"Red Hills",physician:"Dr Wong",date:"2023-02-07",diagnosis:"skin",fraction_dose:2.69,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:15,site:"Rosebush",physician:"Dr Smith",date:"2023-02-01",diagnosis:"prostate",fraction_dose:3.23,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2023-10-16",diagnosis:"metastasis",fraction_dose:2.44,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:11,site:"Campsie",physician:"Dr Smith",date:"2023-07-25",diagnosis:"neuro",fraction_dose:2.09,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2023-10-13",diagnosis:"metastasis",fraction_dose:1.25,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:14,site:"Campsie",physician:"Dr Lopez",date:"2023-05-02",diagnosis:"colorectal",fraction_dose:1.42,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:25,site:"Red Hills",physician:"Dr Wong",date:"2023-02-18",diagnosis:"colorectal",fraction_dose:2.05,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:13,site:"Lakeside",physician:"Dr Smith",date:"2023-06-15",diagnosis:"breast",fraction_dose:1.64,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:19,site:"Rosebush",physician:"Dr Lopez",date:"2023-04-03",diagnosis:"colorectal",fraction_dose:1.81,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:6,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:13,site:"Campsie",physician:"Dr Smith",date:"2023-05-21",diagnosis:"prostate",fraction_dose:1.78,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:10,site:"Lakeside",physician:"Dr Adams",date:"2023-09-08",diagnosis:"neuro",fraction_dose:1.74,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:11,site:"Rosebush",physician:"Dr Lopez",date:"2023-09-16",diagnosis:"metastasis",fraction_dose:1.36,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:25,site:"Rosebush",physician:"Dr Adams",date:"2023-03-06",diagnosis:"Unspecified",fraction_dose:2.62,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:25,site:"Lakeside",physician:"Dr Lopez",date:"2023-01-13",diagnosis:"colorectal",fraction_dose:2.44,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:20,site:"Rosebush",physician:"Dr Lopez",date:"2023-04-23",diagnosis:"metastasis",fraction_dose:2.5,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:20,site:"Campsie",physician:"Dr Smith",date:"2023-09-23",diagnosis:"skin",fraction_dose:2.6,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:12,site:"Rosebush",physician:"Dr Lopez",date:"2023-02-02",diagnosis:"Unspecified",fraction_dose:2.28,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2023-11-06",diagnosis:"colorectal",fraction_dose:2.53,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:19,site:"Rosebush",physician:"Dr Smith",date:"2023-01-30",diagnosis:"prostate",fraction_dose:2.43,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:21,site:"Lakeside",physician:"Dr Smith",date:"2023-02-23",diagnosis:"metastasis",fraction_dose:1.38,adherence:!1,technique:"Unspecified",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:22,site:"Red Hills",physician:"Dr Adams",date:"2023-11-18",diagnosis:"prostate",fraction_dose:1.74,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:13,site:"Red Hills",physician:"Dr Smith",date:"2023-02-06",diagnosis:"breast",fraction_dose:3.08,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:23,site:"Red Hills",physician:"Dr Adams",date:"2023-06-23",diagnosis:"colorectal",fraction_dose:3.12,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:23,site:"Campsie",physician:"Dr Lopez",date:"2023-11-26",diagnosis:"prostate",fraction_dose:2.93,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:10,site:"Campsie",physician:"Dr Wong",date:"2023-06-07",diagnosis:"prostate",fraction_dose:1.91,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:24,site:"Red Hills",physician:"Dr Adams",date:"2023-07-01",diagnosis:"Unspecified",fraction_dose:1.39,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:21,site:"Rosebush",physician:"Dr Wong",date:"2023-01-01",diagnosis:"neuro",fraction_dose:1.41,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:10,site:"Lakeside",physician:"Dr Adams",date:"2023-01-04",diagnosis:"neuro",fraction_dose:1.66,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:14,site:"Lakeside",physician:"Dr Lopez",date:"2023-07-13",diagnosis:"skin",fraction_dose:1.55,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Wong",date:"2023-08-31",diagnosis:"neuro",fraction_dose:1.22,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-19",diagnosis:"colorectal",fraction_dose:1.74,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2023-06-07",diagnosis:"neuro",fraction_dose:1.61,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:19,site:"Red Hills",physician:"Dr Smith",date:"2023-05-08",diagnosis:"breast",fraction_dose:2.11,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:15,site:"Lakeside",physician:"Dr Smith",date:"2023-09-03",diagnosis:"Unspecified",fraction_dose:2.46,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-07-27",diagnosis:"breast",fraction_dose:2.91,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2023-10-13",diagnosis:"colorectal",fraction_dose:2.97,adherence:!1,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:25,site:"Red Hills",physician:"Dr Lopez",date:"2023-01-13",diagnosis:"metastasis",fraction_dose:1.33,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:24,site:"Red Hills",physician:"Dr Wong",date:"2023-02-26",diagnosis:"metastasis",fraction_dose:1.98,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:21,site:"Campsie",physician:"Dr Lopez",date:"2023-01-18",diagnosis:"colorectal",fraction_dose:3.2,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2023-12-16",diagnosis:"neuro",fraction_dose:1.75,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2023-03-18",diagnosis:"neuro",fraction_dose:1.25,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:11,site:"Rosebush",physician:"Dr Wong",date:"2023-09-19",diagnosis:"metastasis",fraction_dose:1.83,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:14,site:"Lakeside",physician:"Dr Adams",date:"2023-06-29",diagnosis:"skin",fraction_dose:3.36,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:11,site:"Red Hills",physician:"Dr Lopez",date:"2023-04-01",diagnosis:"prostate",fraction_dose:3.24,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:19,site:"Red Hills",physician:"Dr Wong",date:"2023-06-18",diagnosis:"breast",fraction_dose:1.87,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:11,site:"Rosebush",physician:"Dr Smith",date:"2023-08-01",diagnosis:"breast",fraction_dose:2.33,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:24,site:"Red Hills",physician:"Dr Wong",date:"2023-07-13",diagnosis:"breast",fraction_dose:2.68,adherence:!1,technique:"Conformal",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:14,site:"Red Hills",physician:"Dr Smith",date:"2023-07-08",diagnosis:"prostate",fraction_dose:2.13,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:11,site:"Rosebush",physician:"Dr Adams",date:"2023-01-19",diagnosis:"colorectal",fraction_dose:1.9,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-02-15",diagnosis:"metastasis",fraction_dose:3.29,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-04-04",diagnosis:"prostate",fraction_dose:2.95,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:14,site:"Red Hills",physician:"Dr Adams",date:"2023-06-12",diagnosis:"skin",fraction_dose:2.02,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:25,site:"Campsie",physician:"Dr Lopez",date:"2023-03-05",diagnosis:"colorectal",fraction_dose:3.09,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2023-08-20",diagnosis:"Unspecified",fraction_dose:2.98,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:11,site:"Rosebush",physician:"Dr Lopez",date:"2023-10-27",diagnosis:"colorectal",fraction_dose:2.41,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:17,site:"Red Hills",physician:"Dr Lopez",date:"2023-04-17",diagnosis:"metastasis",fraction_dose:1.45,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:25,site:"Red Hills",physician:"Dr Adams",date:"2023-08-08",diagnosis:"Unspecified",fraction_dose:1.8,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:13,site:"Campsie",physician:"Dr Lopez",date:"2023-08-22",diagnosis:"colorectal",fraction_dose:1.65,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:24,site:"Lakeside",physician:"Dr Wong",date:"2023-07-09",diagnosis:"breast",fraction_dose:1.79,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2023-03-09",diagnosis:"Unspecified",fraction_dose:1.56,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:11,site:"Rosebush",physician:"Dr Smith",date:"2023-07-28",diagnosis:"breast",fraction_dose:2.55,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:4,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:25,site:"Campsie",physician:"Dr Adams",date:"2023-12-25",diagnosis:"colorectal",fraction_dose:2.28,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:25,site:"Lakeside",physician:"Dr Adams",date:"2023-08-21",diagnosis:"metastasis",fraction_dose:2.03,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:16,site:"Rosebush",physician:"Dr Smith",date:"2023-10-16",diagnosis:"neuro",fraction_dose:1.58,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2023-03-02",diagnosis:"colorectal",fraction_dose:2.69,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2023-09-30",diagnosis:"breast",fraction_dose:2.69,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:17,site:"Red Hills",physician:"Dr Adams",date:"2023-04-14",diagnosis:"skin",fraction_dose:1.37,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:22,site:"Rosebush",physician:"Dr Smith",date:"2023-04-14",diagnosis:"skin",fraction_dose:3.11,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:21,site:"Lakeside",physician:"Dr Wong",date:"2023-08-19",diagnosis:"metastasis",fraction_dose:1.83,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2023-06-20",diagnosis:"Unspecified",fraction_dose:2.38,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:17,site:"Campsie",physician:"Dr Adams",date:"2023-07-06",diagnosis:"prostate",fraction_dose:3.21,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:12,site:"Lakeside",physician:"Dr Lopez",date:"2023-07-10",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:25,site:"Rosebush",physician:"Dr Adams",date:"2023-02-03",diagnosis:"skin",fraction_dose:2.43,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2023-06-11",diagnosis:"colorectal",fraction_dose:1.65,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2023-04-08",diagnosis:"neuro",fraction_dose:2.93,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2023-10-24",diagnosis:"Unspecified",fraction_dose:2.33,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:10,site:"Campsie",physician:"Dr Wong",date:"2023-08-18",diagnosis:"skin",fraction_dose:1.66,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:25,site:"Rosebush",physician:"Dr Adams",date:"2023-08-04",diagnosis:"prostate",fraction_dose:2.6,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:10,site:"Red Hills",physician:"Dr Smith",date:"2023-06-05",diagnosis:"colorectal",fraction_dose:1.57,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2023-04-14",diagnosis:"colorectal",fraction_dose:1.55,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:20,site:"Campsie",physician:"Dr Smith",date:"2023-03-13",diagnosis:"prostate",fraction_dose:1.44,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:24,site:"Campsie",physician:"Dr Smith",date:"2023-05-16",diagnosis:"prostate",fraction_dose:1.24,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:24,site:"Red Hills",physician:"Dr Lopez",date:"2023-12-28",diagnosis:"colorectal",fraction_dose:1.32,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:20,site:"Rosebush",physician:"Dr Smith",date:"2023-10-31",diagnosis:"prostate",fraction_dose:3.3,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:20,site:"Red Hills",physician:"Dr Smith",date:"2023-10-15",diagnosis:"breast",fraction_dose:1.9,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:23,site:"Lakeside",physician:"Dr Lopez",date:"2023-11-15",diagnosis:"metastasis",fraction_dose:3.04,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:20,site:"Red Hills",physician:"Dr Lopez",date:"2023-05-18",diagnosis:"breast",fraction_dose:1.86,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:18,site:"Red Hills",physician:"Dr Adams",date:"2023-09-19",diagnosis:"breast",fraction_dose:2.88,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:16,site:"Campsie",physician:"Dr Adams",date:"2023-05-31",diagnosis:"prostate",fraction_dose:2.5,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:3,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:13,site:"Lakeside",physician:"Dr Smith",date:"2023-01-31",diagnosis:"neuro",fraction_dose:2,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:16,site:"Lakeside",physician:"Dr Wong",date:"2023-06-03",diagnosis:"prostate",fraction_dose:2.08,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:13,site:"Red Hills",physician:"Dr Adams",date:"2023-05-20",diagnosis:"metastasis",fraction_dose:1.81,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:16,site:"Rosebush",physician:"Dr Lopez",date:"2023-04-01",diagnosis:"skin",fraction_dose:1.56,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2023-06-10",diagnosis:"Unspecified",fraction_dose:2.23,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:25,site:"Campsie",physician:"Dr Lopez",date:"2023-11-21",diagnosis:"metastasis",fraction_dose:1.77,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:16,site:"Lakeside",physician:"Dr Wong",date:"2023-11-11",diagnosis:"colorectal",fraction_dose:1.93,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:15,site:"Red Hills",physician:"Dr Smith",date:"2023-07-07",diagnosis:"Unspecified",fraction_dose:1.31,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:12,site:"Rosebush",physician:"Dr Wong",date:"2023-10-13",diagnosis:"metastasis",fraction_dose:1.96,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Smith",date:"2023-04-07",diagnosis:"skin",fraction_dose:1.83,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2023-05-02",diagnosis:"metastasis",fraction_dose:3.15,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:16,site:"Red Hills",physician:"Dr Smith",date:"2023-11-18",diagnosis:"skin",fraction_dose:1.92,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:23,site:"Campsie",physician:"Dr Adams",date:"2023-06-25",diagnosis:"colorectal",fraction_dose:1.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:14,site:"Campsie",physician:"Dr Smith",date:"2023-11-03",diagnosis:"metastasis",fraction_dose:3.36,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2023-05-17",diagnosis:"neuro",fraction_dose:1.57,adherence:!1,technique:"Conformal",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:24,site:"Red Hills",physician:"Dr Lopez",date:"2023-06-15",diagnosis:"skin",fraction_dose:2.68,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:23,site:"Campsie",physician:"Dr Wong",date:"2023-05-17",diagnosis:"colorectal",fraction_dose:1.28,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:21,site:"Lakeside",physician:"Dr Wong",date:"2023-11-26",diagnosis:"prostate",fraction_dose:1.46,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:15,site:"Rosebush",physician:"Dr Wong",date:"2023-03-11",diagnosis:"breast",fraction_dose:2.01,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:18,site:"Lakeside",physician:"Dr Wong",date:"2023-06-29",diagnosis:"prostate",fraction_dose:3.38,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:18,site:"Campsie",physician:"Dr Lopez",date:"2023-03-23",diagnosis:"neuro",fraction_dose:3.32,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:20,site:"Lakeside",physician:"Dr Lopez",date:"2023-03-04",diagnosis:"neuro",fraction_dose:1.9,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:9,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:24,site:"Rosebush",physician:"Dr Lopez",date:"2023-06-19",diagnosis:"colorectal",fraction_dose:2.27,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2023-04-22",diagnosis:"Unspecified",fraction_dose:1.37,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:16,site:"Campsie",physician:"Dr Lopez",date:"2023-01-01",diagnosis:"colorectal",fraction_dose:1.55,adherence:!1,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:19,site:"Red Hills",physician:"Dr Wong",date:"2023-08-26",diagnosis:"prostate",fraction_dose:2.92,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:14,site:"Red Hills",physician:"Dr Smith",date:"2023-07-09",diagnosis:"skin",fraction_dose:1.75,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-09-27",diagnosis:"neuro",fraction_dose:2.59,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:24,site:"Rosebush",physician:"Dr Adams",date:"2023-01-13",diagnosis:"metastasis",fraction_dose:1.72,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:21,site:"Campsie",physician:"Dr Smith",date:"2023-03-22",diagnosis:"prostate",fraction_dose:3.06,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-06",diagnosis:"colorectal",fraction_dose:1.37,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:10,site:"Lakeside",physician:"Dr Wong",date:"2023-05-06",diagnosis:"breast",fraction_dose:2.57,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:13,site:"Campsie",physician:"Dr Adams",date:"2023-01-05",diagnosis:"skin",fraction_dose:2.74,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:25,site:"Campsie",physician:"Dr Lopez",date:"2023-03-27",diagnosis:"metastasis",fraction_dose:3.35,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:24,site:"Campsie",physician:"Dr Adams",date:"2023-01-16",diagnosis:"neuro",fraction_dose:2.37,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:25,site:"Rosebush",physician:"Dr Adams",date:"2023-04-01",diagnosis:"breast",fraction_dose:2.67,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:13,site:"Lakeside",physician:"Dr Adams",date:"2023-07-15",diagnosis:"Unspecified",fraction_dose:1.74,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:21,site:"Campsie",physician:"Dr Adams",date:"2023-05-22",diagnosis:"prostate",fraction_dose:1.7,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:14,site:"Campsie",physician:"Dr Smith",date:"2023-05-28",diagnosis:"colorectal",fraction_dose:1.69,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2023-12-11",diagnosis:"prostate",fraction_dose:1.82,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:16,site:"Lakeside",physician:"Dr Smith",date:"2023-09-25",diagnosis:"Unspecified",fraction_dose:1.39,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:14,site:"Red Hills",physician:"Dr Adams",date:"2023-11-29",diagnosis:"skin",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:20,site:"Red Hills",physician:"Dr Adams",date:"2023-12-20",diagnosis:"metastasis",fraction_dose:1.29,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:25,site:"Red Hills",physician:"Dr Smith",date:"2023-07-09",diagnosis:"metastasis",fraction_dose:1.34,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:19,site:"Rosebush",physician:"Dr Smith",date:"2023-02-08",diagnosis:"neuro",fraction_dose:1.6,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:13,site:"Lakeside",physician:"Dr Smith",date:"2023-08-16",diagnosis:"skin",fraction_dose:2.08,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:20,site:"Campsie",physician:"Dr Lopez",date:"2023-08-23",diagnosis:"Unspecified",fraction_dose:3.18,adherence:!1,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:14,site:"Red Hills",physician:"Dr Wong",date:"2023-09-18",diagnosis:"colorectal",fraction_dose:2.08,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2023-09-30",diagnosis:"Unspecified",fraction_dose:2.16,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:13,site:"Campsie",physician:"Dr Smith",date:"2023-07-21",diagnosis:"neuro",fraction_dose:1.22,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2023-09-19",diagnosis:"prostate",fraction_dose:1.88,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:20,site:"Lakeside",physician:"Dr Adams",date:"2023-01-23",diagnosis:"neuro",fraction_dose:2.59,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Smith",date:"2023-11-16",diagnosis:"skin",fraction_dose:2.49,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:3,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:25,site:"Rosebush",physician:"Dr Smith",date:"2023-08-07",diagnosis:"Unspecified",fraction_dose:3.29,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2023-04-22",diagnosis:"metastasis",fraction_dose:3.31,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:25,site:"Red Hills",physician:"Dr Wong",date:"2023-06-04",diagnosis:"colorectal",fraction_dose:3.08,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2023-08-28",diagnosis:"Unspecified",fraction_dose:2.47,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:20,site:"Red Hills",physician:"Dr Lopez",date:"2023-06-18",diagnosis:"Unspecified",fraction_dose:1.41,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-02-17",diagnosis:"prostate",fraction_dose:1.62,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:15,site:"Campsie",physician:"Dr Smith",date:"2023-06-02",diagnosis:"skin",fraction_dose:1.56,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:10,site:"Red Hills",physician:"Dr Wong",date:"2023-02-03",diagnosis:"colorectal",fraction_dose:2.34,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:11,site:"Campsie",physician:"Dr Lopez",date:"2023-07-15",diagnosis:"neuro",fraction_dose:2.75,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:23,site:"Red Hills",physician:"Dr Wong",date:"2023-03-09",diagnosis:"prostate",fraction_dose:1.27,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:14,site:"Rosebush",physician:"Dr Lopez",date:"2023-08-27",diagnosis:"Unspecified",fraction_dose:3.09,adherence:!1,technique:"Unspecified",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:18,site:"Red Hills",physician:"Dr Wong",date:"2023-05-31",diagnosis:"Unspecified",fraction_dose:1.62,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:22,site:"Rosebush",physician:"Dr Smith",date:"2023-05-28",diagnosis:"metastasis",fraction_dose:2.99,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:10,site:"Rosebush",physician:"Dr Adams",date:"2023-08-20",diagnosis:"metastasis",fraction_dose:1.72,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-05-20",diagnosis:"neuro",fraction_dose:1.22,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2023-03-02",diagnosis:"colorectal",fraction_dose:1.42,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Lopez",date:"2023-02-15",diagnosis:"breast",fraction_dose:2.85,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:20,site:"Rosebush",physician:"Dr Lopez",date:"2023-07-09",diagnosis:"breast",fraction_dose:2.57,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:16,site:"Rosebush",physician:"Dr Wong",date:"2023-07-26",diagnosis:"Unspecified",fraction_dose:1.92,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:24,site:"Campsie",physician:"Dr Wong",date:"2023-10-10",diagnosis:"metastasis",fraction_dose:3.02,adherence:!1,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2023-04-01",diagnosis:"neuro",fraction_dose:1.53,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:10,site:"Rosebush",physician:"Dr Lopez",date:"2023-05-16",diagnosis:"skin",fraction_dose:3.13,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:18,site:"Lakeside",physician:"Dr Wong",date:"2023-06-04",diagnosis:"skin",fraction_dose:2.87,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:25,site:"Campsie",physician:"Dr Adams",date:"2023-01-07",diagnosis:"Unspecified",fraction_dose:2.45,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Smith",date:"2023-11-28",diagnosis:"prostate",fraction_dose:2.64,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2023-10-08",diagnosis:"neuro",fraction_dose:1.85,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:23,site:"Campsie",physician:"Dr Wong",date:"2023-09-03",diagnosis:"skin",fraction_dose:2.44,adherence:!1,technique:"IMRT",linac:"Machine 3",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:23,site:"Campsie",physician:"Dr Smith",date:"2023-10-09",diagnosis:"prostate",fraction_dose:2.53,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2023-11-22",diagnosis:"skin",fraction_dose:1.36,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2023-02-05",diagnosis:"prostate",fraction_dose:2.64,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:13,site:"Rosebush",physician:"Dr Lopez",date:"2023-09-09",diagnosis:"neuro",fraction_dose:3.16,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:25,site:"Campsie",physician:"Dr Smith",date:"2023-11-24",diagnosis:"Unspecified",fraction_dose:1.43,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:25,site:"Rosebush",physician:"Dr Smith",date:"2023-07-09",diagnosis:"Unspecified",fraction_dose:1.74,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:21,site:"Lakeside",physician:"Dr Lopez",date:"2023-05-09",diagnosis:"neuro",fraction_dose:2.11,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2023-03-10",diagnosis:"colorectal",fraction_dose:1.41,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:10,site:"Red Hills",physician:"Dr Lopez",date:"2023-01-05",diagnosis:"colorectal",fraction_dose:3.11,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:20,site:"Lakeside",physician:"Dr Adams",date:"2023-02-07",diagnosis:"prostate",fraction_dose:3.08,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:7,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2023-09-16",diagnosis:"neuro",fraction_dose:2,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:13,site:"Red Hills",physician:"Dr Wong",date:"2023-02-07",diagnosis:"colorectal",fraction_dose:2.22,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:23,site:"Campsie",physician:"Dr Lopez",date:"2023-03-30",diagnosis:"neuro",fraction_dose:2.04,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:22,site:"Lakeside",physician:"Dr Smith",date:"2023-01-22",diagnosis:"neuro",fraction_dose:1.32,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:22,site:"Rosebush",physician:"Dr Smith",date:"2023-11-02",diagnosis:"neuro",fraction_dose:2.48,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2023-12-09",diagnosis:"metastasis",fraction_dose:2.09,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:14,site:"Campsie",physician:"Dr Adams",date:"2023-03-27",diagnosis:"prostate",fraction_dose:2.88,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2023-02-13",diagnosis:"breast",fraction_dose:3.11,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2023-01-20",diagnosis:"metastasis",fraction_dose:1.77,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:23,site:"Red Hills",physician:"Dr Lopez",date:"2023-12-15",diagnosis:"colorectal",fraction_dose:3.16,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:11,site:"Red Hills",physician:"Dr Wong",date:"2023-10-22",diagnosis:"skin",fraction_dose:2.34,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:12,site:"Campsie",physician:"Dr Wong",date:"2023-04-17",diagnosis:"neuro",fraction_dose:1.6,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Lopez",date:"2023-08-14",diagnosis:"neuro",fraction_dose:2.74,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:20,site:"Lakeside",physician:"Dr Smith",date:"2023-07-11",diagnosis:"colorectal",fraction_dose:2.79,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:13,site:"Red Hills",physician:"Dr Adams",date:"2023-01-02",diagnosis:"metastasis",fraction_dose:1.28,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:11,site:"Rosebush",physician:"Dr Lopez",date:"2023-09-27",diagnosis:"neuro",fraction_dose:2.76,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:15,site:"Lakeside",physician:"Dr Adams",date:"2023-02-14",diagnosis:"breast",fraction_dose:1.94,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:22,site:"Red Hills",physician:"Dr Adams",date:"2023-02-26",diagnosis:"colorectal",fraction_dose:1.34,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:17,site:"Lakeside",physician:"Dr Adams",date:"2023-10-28",diagnosis:"neuro",fraction_dose:3.17,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:10,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:12,site:"Rosebush",physician:"Dr Adams",date:"2023-01-21",diagnosis:"neuro",fraction_dose:2.27,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Smith",date:"2023-04-01",diagnosis:"skin",fraction_dose:1.3,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Wong",date:"2023-10-11",diagnosis:"prostate",fraction_dose:2.21,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:10,site:"Lakeside",physician:"Dr Lopez",date:"2023-10-20",diagnosis:"colorectal",fraction_dose:2.94,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:13,site:"Rosebush",physician:"Dr Adams",date:"2023-07-28",diagnosis:"Unspecified",fraction_dose:3.27,adherence:!1,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:17,site:"Campsie",physician:"Dr Adams",date:"2023-08-02",diagnosis:"breast",fraction_dose:3.01,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2023-09-10",diagnosis:"skin",fraction_dose:1.32,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:18,site:"Red Hills",physician:"Dr Adams",date:"2023-05-30",diagnosis:"skin",fraction_dose:3.33,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:18,site:"Red Hills",physician:"Dr Lopez",date:"2023-09-04",diagnosis:"Unspecified",fraction_dose:1.41,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:20,site:"Campsie",physician:"Dr Smith",date:"2023-12-14",diagnosis:"colorectal",fraction_dose:2.57,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2023-04-06",diagnosis:"prostate",fraction_dose:1.74,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2023-09-01",diagnosis:"Unspecified",fraction_dose:1.53,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:24,site:"Campsie",physician:"Dr Wong",date:"2023-07-01",diagnosis:"colorectal",fraction_dose:2.65,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:20,site:"Lakeside",physician:"Dr Smith",date:"2023-12-19",diagnosis:"metastasis",fraction_dose:2.82,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:18,site:"Campsie",physician:"Dr Lopez",date:"2023-11-30",diagnosis:"breast",fraction_dose:2.46,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:23,site:"Red Hills",physician:"Dr Lopez",date:"2023-04-04",diagnosis:"Unspecified",fraction_dose:2.78,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:21,site:"Rosebush",physician:"Dr Wong",date:"2023-10-20",diagnosis:"breast",fraction_dose:1.77,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:13,site:"Red Hills",physician:"Dr Wong",date:"2023-07-24",diagnosis:"breast",fraction_dose:2.23,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:15,site:"Rosebush",physician:"Dr Smith",date:"2023-05-07",diagnosis:"colorectal",fraction_dose:2.14,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:13,site:"Red Hills",physician:"Dr Lopez",date:"2023-03-25",diagnosis:"breast",fraction_dose:1.99,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2023-09-18",diagnosis:"Unspecified",fraction_dose:1.81,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2023-01-04",diagnosis:"neuro",fraction_dose:1.86,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:20,site:"Lakeside",physician:"Dr Smith",date:"2023-09-22",diagnosis:"neuro",fraction_dose:1.56,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:13,site:"Rosebush",physician:"Dr Smith",date:"2023-08-04",diagnosis:"breast",fraction_dose:1.21,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:16,site:"Rosebush",physician:"Dr Smith",date:"2023-01-23",diagnosis:"breast",fraction_dose:1.33,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:24,site:"Red Hills",physician:"Dr Adams",date:"2023-03-08",diagnosis:"neuro",fraction_dose:2.7,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:13,site:"Rosebush",physician:"Dr Wong",date:"2023-06-30",diagnosis:"metastasis",fraction_dose:3.03,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:10,site:"Lakeside",physician:"Dr Adams",date:"2023-11-15",diagnosis:"skin",fraction_dose:1.84,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:24,site:"Lakeside",physician:"Dr Smith",date:"2023-06-11",diagnosis:"skin",fraction_dose:1.22,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:21,site:"Lakeside",physician:"Dr Lopez",date:"2023-07-16",diagnosis:"prostate",fraction_dose:1.64,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:23,site:"Red Hills",physician:"Dr Wong",date:"2023-12-07",diagnosis:"prostate",fraction_dose:2.11,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:18,site:"Lakeside",physician:"Dr Lopez",date:"2023-02-25",diagnosis:"neuro",fraction_dose:2.56,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:23,site:"Lakeside",physician:"Dr Lopez",date:"2023-09-18",diagnosis:"prostate",fraction_dose:3.19,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:10,site:"Rosebush",physician:"Dr Wong",date:"2023-05-16",diagnosis:"Unspecified",fraction_dose:1.29,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:24,site:"Campsie",physician:"Dr Adams",date:"2023-07-25",diagnosis:"prostate",fraction_dose:3.36,adherence:!1,technique:"VMAT",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:16,site:"Rosebush",physician:"Dr Wong",date:"2023-09-27",diagnosis:"colorectal",fraction_dose:1.27,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:17,site:"Rosebush",physician:"Dr Smith",date:"2023-01-21",diagnosis:"neuro",fraction_dose:1.66,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:10,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:22,site:"Lakeside",physician:"Dr Adams",date:"2023-07-03",diagnosis:"skin",fraction_dose:2.49,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:21,site:"Red Hills",physician:"Dr Adams",date:"2023-08-07",diagnosis:"breast",fraction_dose:2.45,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:16,site:"Campsie",physician:"Dr Lopez",date:"2023-08-05",diagnosis:"Unspecified",fraction_dose:3.35,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Adams",date:"2023-02-11",diagnosis:"Unspecified",fraction_dose:2.88,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:13,site:"Lakeside",physician:"Dr Wong",date:"2023-10-07",diagnosis:"prostate",fraction_dose:2.47,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:20,site:"Red Hills",physician:"Dr Lopez",date:"2023-09-22",diagnosis:"breast",fraction_dose:3.18,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:18,site:"Campsie",physician:"Dr Lopez",date:"2023-04-13",diagnosis:"skin",fraction_dose:1.95,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:25,site:"Campsie",physician:"Dr Adams",date:"2023-06-11",diagnosis:"skin",fraction_dose:2.2,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:22,site:"Red Hills",physician:"Dr Wong",date:"2023-02-09",diagnosis:"colorectal",fraction_dose:3.16,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-02",diagnosis:"Unspecified",fraction_dose:3.17,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:23,site:"Campsie",physician:"Dr Wong",date:"2023-07-26",diagnosis:"prostate",fraction_dose:1.83,adherence:!1,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:22,site:"Rosebush",physician:"Dr Adams",date:"2023-05-22",diagnosis:"metastasis",fraction_dose:2.08,adherence:!1,technique:"IMRT",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:24,site:"Lakeside",physician:"Dr Adams",date:"2023-04-03",diagnosis:"breast",fraction_dose:2.68,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:13,site:"Lakeside",physician:"Dr Lopez",date:"2023-05-25",diagnosis:"breast",fraction_dose:1.89,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2023-11-24",diagnosis:"Unspecified",fraction_dose:1.36,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2023-06-29",diagnosis:"skin",fraction_dose:1.32,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2023-04-20",diagnosis:"colorectal",fraction_dose:1.94,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:15,site:"Rosebush",physician:"Dr Lopez",date:"2023-06-03",diagnosis:"colorectal",fraction_dose:1.83,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:20,site:"Lakeside",physician:"Dr Smith",date:"2023-07-12",diagnosis:"Unspecified",fraction_dose:2.73,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2023-03-16",diagnosis:"prostate",fraction_dose:3.24,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:12,site:"Campsie",physician:"Dr Smith",date:"2023-05-29",diagnosis:"Unspecified",fraction_dose:2.22,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:14,site:"Campsie",physician:"Dr Wong",date:"2023-02-07",diagnosis:"Unspecified",fraction_dose:3.06,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Lopez",date:"2023-04-23",diagnosis:"prostate",fraction_dose:1.31,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:15,site:"Red Hills",physician:"Dr Adams",date:"2023-10-29",diagnosis:"skin",fraction_dose:2.15,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Wong",date:"2023-07-19",diagnosis:"breast",fraction_dose:2.76,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2023-10-04",diagnosis:"Unspecified",fraction_dose:2.89,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2023-12-18",diagnosis:"colorectal",fraction_dose:1.42,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2023-07-25",diagnosis:"skin",fraction_dose:2.85,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:18,site:"Campsie",physician:"Dr Wong",date:"2023-04-05",diagnosis:"prostate",fraction_dose:1.49,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:18,site:"Rosebush",physician:"Dr Adams",date:"2023-05-05",diagnosis:"colorectal",fraction_dose:2.89,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:3,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:19,site:"Campsie",physician:"Dr Wong",date:"2023-10-23",diagnosis:"neuro",fraction_dose:1.27,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-09-12",diagnosis:"colorectal",fraction_dose:1.5,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:25,site:"Rosebush",physician:"Dr Lopez",date:"2023-01-04",diagnosis:"breast",fraction_dose:3.01,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:13,site:"Rosebush",physician:"Dr Wong",date:"2023-08-22",diagnosis:"skin",fraction_dose:3.29,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:24,site:"Rosebush",physician:"Dr Lopez",date:"2023-11-30",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Adams",date:"2023-04-21",diagnosis:"colorectal",fraction_dose:2.43,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:24,site:"Rosebush",physician:"Dr Adams",date:"2023-08-31",diagnosis:"breast",fraction_dose:3.08,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2023-09-21",diagnosis:"neuro",fraction_dose:2.18,adherence:!1,technique:"Conformal",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:14,site:"Red Hills",physician:"Dr Lopez",date:"2023-09-06",diagnosis:"Unspecified",fraction_dose:3.35,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:22,site:"Red Hills",physician:"Dr Adams",date:"2023-12-18",diagnosis:"prostate",fraction_dose:2.11,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:21,site:"Campsie",physician:"Dr Adams",date:"2023-12-03",diagnosis:"metastasis",fraction_dose:1.61,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:23,site:"Rosebush",physician:"Dr Smith",date:"2023-08-21",diagnosis:"neuro",fraction_dose:1.65,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:13,site:"Lakeside",physician:"Dr Wong",date:"2023-08-13",diagnosis:"colorectal",fraction_dose:1.32,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2023-07-19",diagnosis:"Unspecified",fraction_dose:3.07,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Lopez",date:"2023-08-27",diagnosis:"neuro",fraction_dose:3.09,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:15,site:"Lakeside",physician:"Dr Wong",date:"2023-05-18",diagnosis:"breast",fraction_dose:2.99,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:13,site:"Campsie",physician:"Dr Adams",date:"2023-07-28",diagnosis:"breast",fraction_dose:1.94,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:21,site:"Red Hills",physician:"Dr Smith",date:"2023-03-10",diagnosis:"metastasis",fraction_dose:2.69,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:21,site:"Rosebush",physician:"Dr Lopez",date:"2023-09-18",diagnosis:"metastasis",fraction_dose:3.25,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:13,site:"Campsie",physician:"Dr Wong",date:"2023-02-19",diagnosis:"metastasis",fraction_dose:3.19,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:21,site:"Lakeside",physician:"Dr Smith",date:"2023-05-17",diagnosis:"metastasis",fraction_dose:1.65,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2023-09-01",diagnosis:"colorectal",fraction_dose:1.32,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:16,site:"Campsie",physician:"Dr Wong",date:"2023-04-12",diagnosis:"breast",fraction_dose:2.43,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:15,site:"Red Hills",physician:"Dr Wong",date:"2023-10-23",diagnosis:"metastasis",fraction_dose:3.25,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:18,site:"Campsie",physician:"Dr Wong",date:"2023-05-02",diagnosis:"metastasis",fraction_dose:2.61,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:20,site:"Campsie",physician:"Dr Wong",date:"2023-12-28",diagnosis:"prostate",fraction_dose:2.99,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:15,site:"Rosebush",physician:"Dr Smith",date:"2023-08-09",diagnosis:"breast",fraction_dose:1.29,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:20,site:"Red Hills",physician:"Dr Wong",date:"2023-04-13",diagnosis:"prostate",fraction_dose:2.81,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2023-05-29",diagnosis:"metastasis",fraction_dose:1.65,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Adams",date:"2023-03-28",diagnosis:"prostate",fraction_dose:2.11,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:17,site:"Lakeside",physician:"Dr Adams",date:"2023-07-06",diagnosis:"colorectal",fraction_dose:1.41,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:18,site:"Campsie",physician:"Dr Wong",date:"2023-12-13",diagnosis:"colorectal",fraction_dose:2.8,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2023-08-22",diagnosis:"Unspecified",fraction_dose:2.78,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:10,site:"Red Hills",physician:"Dr Lopez",date:"2023-05-27",diagnosis:"Unspecified",fraction_dose:3.29,adherence:!1,technique:"Electrons",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:18,site:"Lakeside",physician:"Dr Wong",date:"2023-06-29",diagnosis:"neuro",fraction_dose:1.63,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:22,site:"Lakeside",physician:"Dr Smith",date:"2023-04-08",diagnosis:"Unspecified",fraction_dose:1.7,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2023-07-14",diagnosis:"skin",fraction_dose:2.89,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:22,site:"Rosebush",physician:"Dr Wong",date:"2023-03-17",diagnosis:"skin",fraction_dose:1.74,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2023-01-16",diagnosis:"skin",fraction_dose:2.72,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:15,site:"Campsie",physician:"Dr Smith",date:"2023-10-11",diagnosis:"prostate",fraction_dose:1.26,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:11,site:"Campsie",physician:"Dr Smith",date:"2023-05-09",diagnosis:"Unspecified",fraction_dose:3.22,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:19,site:"Lakeside",physician:"Dr Adams",date:"2023-06-11",diagnosis:"metastasis",fraction_dose:1.65,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:22,site:"Red Hills",physician:"Dr Smith",date:"2023-09-14",diagnosis:"neuro",fraction_dose:2.06,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2023-05-04",diagnosis:"metastasis",fraction_dose:1.92,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:19,site:"Campsie",physician:"Dr Adams",date:"2023-04-29",diagnosis:"prostate",fraction_dose:2.86,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:21,site:"Lakeside",physician:"Dr Wong",date:"2023-09-22",diagnosis:"Unspecified",fraction_dose:1.7,adherence:!1,technique:"IMRT",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:14,site:"Lakeside",physician:"Dr Wong",date:"2023-10-18",diagnosis:"prostate",fraction_dose:2.72,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:4,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:19,site:"Red Hills",physician:"Dr Adams",date:"2023-05-28",diagnosis:"metastasis",fraction_dose:3.06,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2023-08-07",diagnosis:"skin",fraction_dose:1.27,adherence:!1,technique:"Electrons",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2023-06-14",diagnosis:"metastasis",fraction_dose:3.03,adherence:!1,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2023-12-30",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-10-28",diagnosis:"metastasis",fraction_dose:2.37,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:22,site:"Red Hills",physician:"Dr Adams",date:"2023-01-14",diagnosis:"neuro",fraction_dose:2.42,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:19,site:"Red Hills",physician:"Dr Smith",date:"2023-09-05",diagnosis:"neuro",fraction_dose:2.13,adherence:!1,technique:"Unspecified",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:15,site:"Lakeside",physician:"Dr Smith",date:"2023-02-23",diagnosis:"colorectal",fraction_dose:1.59,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2023-10-26",diagnosis:"skin",fraction_dose:2.69,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Lopez",date:"2023-07-18",diagnosis:"metastasis",fraction_dose:1.39,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:19,site:"Red Hills",physician:"Dr Smith",date:"2023-09-27",diagnosis:"colorectal",fraction_dose:2.31,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:13,site:"Rosebush",physician:"Dr Adams",date:"2023-09-20",diagnosis:"breast",fraction_dose:2.26,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:16,site:"Lakeside",physician:"Dr Wong",date:"2023-10-21",diagnosis:"colorectal",fraction_dose:1.7,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:15,site:"Campsie",physician:"Dr Adams",date:"2023-07-07",diagnosis:"prostate",fraction_dose:2.04,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:23,site:"Campsie",physician:"Dr Wong",date:"2023-09-11",diagnosis:"prostate",fraction_dose:2.62,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:21,site:"Lakeside",physician:"Dr Smith",date:"2023-12-16",diagnosis:"neuro",fraction_dose:1.56,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2023-09-23",diagnosis:"Unspecified",fraction_dose:3.3,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:16,site:"Rosebush",physician:"Dr Wong",date:"2023-03-04",diagnosis:"metastasis",fraction_dose:2.09,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2023-07-02",diagnosis:"colorectal",fraction_dose:1.8,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:19,site:"Rosebush",physician:"Dr Smith",date:"2023-06-04",diagnosis:"prostate",fraction_dose:1.23,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Lopez",date:"2023-12-28",diagnosis:"colorectal",fraction_dose:1.4,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:23,site:"Campsie",physician:"Dr Lopez",date:"2023-06-19",diagnosis:"Unspecified",fraction_dose:1.73,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-08-21",diagnosis:"neuro",fraction_dose:1.42,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:12,site:"Rosebush",physician:"Dr Lopez",date:"2023-04-12",diagnosis:"prostate",fraction_dose:1.3,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:20,site:"Rosebush",physician:"Dr Smith",date:"2023-10-05",diagnosis:"prostate",fraction_dose:2.77,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:14,site:"Rosebush",physician:"Dr Wong",date:"2023-04-22",diagnosis:"colorectal",fraction_dose:3.19,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:11,site:"Campsie",physician:"Dr Smith",date:"2023-08-26",diagnosis:"metastasis",fraction_dose:3.36,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2023-04-07",diagnosis:"Unspecified",fraction_dose:2.01,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2023-11-27",diagnosis:"neuro",fraction_dose:3.38,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2023-03-18",diagnosis:"skin",fraction_dose:2.72,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2023-09-29",diagnosis:"colorectal",fraction_dose:2.07,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Lopez",date:"2023-04-03",diagnosis:"Unspecified",fraction_dose:1.35,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-15",diagnosis:"breast",fraction_dose:2.01,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:11,site:"Campsie",physician:"Dr Adams",date:"2023-01-19",diagnosis:"skin",fraction_dose:1.91,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:20,site:"Campsie",physician:"Dr Smith",date:"2023-06-13",diagnosis:"colorectal",fraction_dose:1.88,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:15,site:"Campsie",physician:"Dr Adams",date:"2023-06-09",diagnosis:"prostate",fraction_dose:2.92,adherence:!1,technique:"Unspecified",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:20,site:"Red Hills",physician:"Dr Wong",date:"2023-09-22",diagnosis:"metastasis",fraction_dose:1.82,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Smith",date:"2023-01-06",diagnosis:"colorectal",fraction_dose:2.57,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-01-02",diagnosis:"breast",fraction_dose:3.01,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2023-07-23",diagnosis:"neuro",fraction_dose:2.95,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:11,site:"Red Hills",physician:"Dr Wong",date:"2023-01-21",diagnosis:"prostate",fraction_dose:2.19,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:10,site:"Rosebush",physician:"Dr Wong",date:"2023-02-12",diagnosis:"skin",fraction_dose:3.19,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2023-10-19",diagnosis:"colorectal",fraction_dose:1.21,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:24,site:"Lakeside",physician:"Dr Smith",date:"2023-12-17",diagnosis:"prostate",fraction_dose:1.22,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:25,site:"Red Hills",physician:"Dr Adams",date:"2023-07-23",diagnosis:"metastasis",fraction_dose:1.91,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:14,site:"Red Hills",physician:"Dr Smith",date:"2023-03-28",diagnosis:"skin",fraction_dose:2.47,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:23,site:"Lakeside",physician:"Dr Wong",date:"2023-12-24",diagnosis:"metastasis",fraction_dose:2.73,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:11,site:"Rosebush",physician:"Dr Smith",date:"2023-01-08",diagnosis:"metastasis",fraction_dose:1.35,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:11,site:"Rosebush",physician:"Dr Lopez",date:"2023-06-08",diagnosis:"prostate",fraction_dose:2.22,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:16,site:"Lakeside",physician:"Dr Smith",date:"2023-07-16",diagnosis:"metastasis",fraction_dose:1.8,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2023-02-19",diagnosis:"colorectal",fraction_dose:2.49,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2023-08-09",diagnosis:"breast",fraction_dose:1.9,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Adams",date:"2023-08-22",diagnosis:"colorectal",fraction_dose:1.28,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:17,site:"Lakeside",physician:"Dr Smith",date:"2023-09-05",diagnosis:"breast",fraction_dose:1.91,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:2,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:19,site:"Campsie",physician:"Dr Adams",date:"2023-09-04",diagnosis:"colorectal",fraction_dose:3.32,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:24,site:"Rosebush",physician:"Dr Lopez",date:"2023-11-30",diagnosis:"neuro",fraction_dose:1.42,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:22,site:"Red Hills",physician:"Dr Smith",date:"2023-05-21",diagnosis:"prostate",fraction_dose:2.23,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:15,site:"Lakeside",physician:"Dr Adams",date:"2023-06-11",diagnosis:"breast",fraction_dose:2.67,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:12,site:"Rosebush",physician:"Dr Lopez",date:"2023-12-24",diagnosis:"prostate",fraction_dose:1.54,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:22,site:"Lakeside",physician:"Dr Lopez",date:"2023-01-08",diagnosis:"skin",fraction_dose:3.19,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:11,site:"Rosebush",physician:"Dr Wong",date:"2023-01-12",diagnosis:"prostate",fraction_dose:1.31,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:23,site:"Rosebush",physician:"Dr Lopez",date:"2023-10-26",diagnosis:"neuro",fraction_dose:1.85,adherence:!1,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:10,site:"Lakeside",physician:"Dr Lopez",date:"2023-09-06",diagnosis:"Unspecified",fraction_dose:3.32,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:12,site:"Lakeside",physician:"Dr Lopez",date:"2023-07-23",diagnosis:"breast",fraction_dose:1.98,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:25,site:"Campsie",physician:"Dr Wong",date:"2023-09-14",diagnosis:"prostate",fraction_dose:1.26,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2023-03-18",diagnosis:"colorectal",fraction_dose:1.66,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:12,site:"Campsie",physician:"Dr Lopez",date:"2023-01-24",diagnosis:"breast",fraction_dose:2.51,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:4,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:11,site:"Lakeside",physician:"Dr Wong",date:"2023-08-30",diagnosis:"metastasis",fraction_dose:1.5,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:16,site:"Red Hills",physician:"Dr Smith",date:"2023-10-02",diagnosis:"Unspecified",fraction_dose:2.32,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:25,site:"Campsie",physician:"Dr Smith",date:"2023-03-27",diagnosis:"Unspecified",fraction_dose:1.86,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:20,site:"Rosebush",physician:"Dr Lopez",date:"2023-12-28",diagnosis:"breast",fraction_dose:2.54,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2023-02-05",diagnosis:"metastasis",fraction_dose:2.79,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2023-09-20",diagnosis:"colorectal",fraction_dose:2.22,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:13,site:"Rosebush",physician:"Dr Adams",date:"2023-06-13",diagnosis:"colorectal",fraction_dose:1.33,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:11,site:"Rosebush",physician:"Dr Adams",date:"2023-01-07",diagnosis:"neuro",fraction_dose:1.87,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2023-02-22",diagnosis:"prostate",fraction_dose:1.71,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:25,site:"Campsie",physician:"Dr Adams",date:"2023-03-23",diagnosis:"prostate",fraction_dose:1.9,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:21,site:"Campsie",physician:"Dr Adams",date:"2023-04-21",diagnosis:"colorectal",fraction_dose:1.3,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:10,site:"Rosebush",physician:"Dr Smith",date:"2023-01-29",diagnosis:"skin",fraction_dose:2.81,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:21,site:"Campsie",physician:"Dr Lopez",date:"2023-08-16",diagnosis:"breast",fraction_dose:1.6,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:18,site:"Rosebush",physician:"Dr Smith",date:"2023-10-22",diagnosis:"colorectal",fraction_dose:3.24,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:3,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:10,site:"Campsie",physician:"Dr Lopez",date:"2023-08-21",diagnosis:"metastasis",fraction_dose:2.11,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2023-11-01",diagnosis:"breast",fraction_dose:3.07,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:12,site:"Campsie",physician:"Dr Adams",date:"2023-04-25",diagnosis:"prostate",fraction_dose:2.41,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:16,site:"Campsie",physician:"Dr Lopez",date:"2023-01-12",diagnosis:"breast",fraction_dose:2.04,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:21,site:"Rosebush",physician:"Dr Lopez",date:"2023-05-02",diagnosis:"breast",fraction_dose:1.38,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:15,site:"Campsie",physician:"Dr Smith",date:"2023-04-06",diagnosis:"neuro",fraction_dose:2.21,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:24,site:"Red Hills",physician:"Dr Adams",date:"2023-04-29",diagnosis:"breast",fraction_dose:2.22,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:14,site:"Rosebush",physician:"Dr Adams",date:"2023-07-12",diagnosis:"prostate",fraction_dose:2.54,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:15,site:"Rosebush",physician:"Dr Lopez",date:"2023-09-23",diagnosis:"neuro",fraction_dose:2,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2023-05-25",diagnosis:"breast",fraction_dose:2.76,adherence:!1,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:25,site:"Campsie",physician:"Dr Lopez",date:"2023-08-20",diagnosis:"skin",fraction_dose:2.77,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:25,site:"Lakeside",physician:"Dr Smith",date:"2023-05-25",diagnosis:"breast",fraction_dose:2.17,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:16,site:"Rosebush",physician:"Dr Adams",date:"2023-03-13",diagnosis:"skin",fraction_dose:2.48,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:19,site:"Campsie",physician:"Dr Wong",date:"2023-04-27",diagnosis:"Unspecified",fraction_dose:2.67,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:25,site:"Red Hills",physician:"Dr Wong",date:"2023-01-06",diagnosis:"breast",fraction_dose:3.3,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:10,site:"Red Hills",physician:"Dr Smith",date:"2023-07-16",diagnosis:"breast",fraction_dose:2.28,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2023-09-23",diagnosis:"Unspecified",fraction_dose:2.19,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2023-01-21",diagnosis:"breast",fraction_dose:1.86,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2023-06-23",diagnosis:"breast",fraction_dose:2.87,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:10,site:"Lakeside",physician:"Dr Wong",date:"2023-02-18",diagnosis:"neuro",fraction_dose:1.4,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:21,site:"Campsie",physician:"Dr Smith",date:"2023-05-14",diagnosis:"Unspecified",fraction_dose:1.32,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:15,site:"Campsie",physician:"Dr Smith",date:"2023-01-26",diagnosis:"neuro",fraction_dose:1.67,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:4,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:20,site:"Rosebush",physician:"Dr Adams",date:"2023-01-11",diagnosis:"prostate",fraction_dose:2.96,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:22,site:"Rosebush",physician:"Dr Smith",date:"2023-12-26",diagnosis:"neuro",fraction_dose:1.97,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Adams",date:"2023-07-29",diagnosis:"skin",fraction_dose:1.89,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:25,site:"Red Hills",physician:"Dr Smith",date:"2023-12-04",diagnosis:"prostate",fraction_dose:1.88,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:2,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:22,site:"Red Hills",physician:"Dr Adams",date:"2023-07-03",diagnosis:"prostate",fraction_dose:3.11,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:16,site:"Red Hills",physician:"Dr Wong",date:"2023-12-17",diagnosis:"colorectal",fraction_dose:3,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:11,site:"Lakeside",physician:"Dr Wong",date:"2023-08-22",diagnosis:"breast",fraction_dose:2.46,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2023-03-07",diagnosis:"skin",fraction_dose:2.55,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:18,site:"Campsie",physician:"Dr Adams",date:"2023-12-17",diagnosis:"metastasis",fraction_dose:2.37,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:12,site:"Campsie",physician:"Dr Wong",date:"2023-01-02",diagnosis:"neuro",fraction_dose:1.84,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Smith",date:"2023-04-25",diagnosis:"Unspecified",fraction_dose:2.37,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:15,site:"Rosebush",physician:"Dr Wong",date:"2023-12-03",diagnosis:"neuro",fraction_dose:1.75,adherence:!1,technique:"Conformal",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:15,site:"Red Hills",physician:"Dr Smith",date:"2023-01-29",diagnosis:"prostate",fraction_dose:2.03,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-01-10",diagnosis:"Unspecified",fraction_dose:2.04,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2023-06-06",diagnosis:"colorectal",fraction_dose:2.17,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:23,site:"Rosebush",physician:"Dr Adams",date:"2023-03-19",diagnosis:"breast",fraction_dose:1.72,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:10,site:"Lakeside",physician:"Dr Lopez",date:"2023-01-07",diagnosis:"neuro",fraction_dose:2.54,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:3,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2023-05-05",diagnosis:"Unspecified",fraction_dose:1.23,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:16,site:"Campsie",physician:"Dr Adams",date:"2023-07-14",diagnosis:"skin",fraction_dose:1.43,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:12,site:"Campsie",physician:"Dr Lopez",date:"2023-01-18",diagnosis:"colorectal",fraction_dose:1.58,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2023-05-16",diagnosis:"skin",fraction_dose:3.13,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:17,site:"Campsie",physician:"Dr Adams",date:"2023-05-14",diagnosis:"colorectal",fraction_dose:1.96,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:2,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:13,site:"Campsie",physician:"Dr Smith",date:"2023-08-11",diagnosis:"prostate",fraction_dose:2.9,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2023-10-14",diagnosis:"breast",fraction_dose:1.24,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:15,site:"Red Hills",physician:"Dr Smith",date:"2023-01-20",diagnosis:"breast",fraction_dose:1.65,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:23,site:"Lakeside",physician:"Dr Wong",date:"2023-04-04",diagnosis:"breast",fraction_dose:1.93,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:17,site:"Red Hills",physician:"Dr Smith",date:"2023-04-25",diagnosis:"metastasis",fraction_dose:1.94,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:25,site:"Campsie",physician:"Dr Smith",date:"2023-04-29",diagnosis:"metastasis",fraction_dose:2.83,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:23,site:"Red Hills",physician:"Dr Lopez",date:"2023-03-25",diagnosis:"metastasis",fraction_dose:2.51,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:17,site:"Campsie",physician:"Dr Wong",date:"2023-07-26",diagnosis:"neuro",fraction_dose:1.77,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:20,site:"Rosebush",physician:"Dr Lopez",date:"2023-11-10",diagnosis:"breast",fraction_dose:2.16,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:18,site:"Rosebush",physician:"Dr Smith",date:"2023-06-10",diagnosis:"colorectal",fraction_dose:2.63,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:15,site:"Campsie",physician:"Dr Adams",date:"2023-10-18",diagnosis:"breast",fraction_dose:1.49,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:18,site:"Rosebush",physician:"Dr Adams",date:"2023-03-25",diagnosis:"colorectal",fraction_dose:2.05,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:18,site:"Lakeside",physician:"Dr Adams",date:"2023-09-03",diagnosis:"metastasis",fraction_dose:2.91,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:20,site:"Campsie",physician:"Dr Smith",date:"2023-07-05",diagnosis:"neuro",fraction_dose:2.82,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:25,site:"Red Hills",physician:"Dr Smith",date:"2023-04-29",diagnosis:"metastasis",fraction_dose:2.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2023-12-05",diagnosis:"metastasis",fraction_dose:1.79,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:17,site:"Lakeside",physician:"Dr Lopez",date:"2023-05-23",diagnosis:"metastasis",fraction_dose:2.58,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C71.9"},{fractions:19,site:"Campsie",physician:"Dr Adams",date:"2023-09-09",diagnosis:"breast",fraction_dose:1.5,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:12,site:"Campsie",physician:"Dr Wong",date:"2023-03-10",diagnosis:"metastasis",fraction_dose:3.01,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:21,site:"Campsie",physician:"Dr Smith",date:"2023-08-23",diagnosis:"prostate",fraction_dose:2.39,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Adams",date:"2023-09-10",diagnosis:"Unspecified",fraction_dose:2,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-12-30",diagnosis:"breast",fraction_dose:2.11,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-01-19",diagnosis:"breast",fraction_dose:1.72,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:16,site:"Red Hills",physician:"Dr Smith",date:"2023-02-09",diagnosis:"skin",fraction_dose:1.91,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:16,site:"Campsie",physician:"Dr Wong",date:"2023-08-23",diagnosis:"neuro",fraction_dose:2.36,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:23,site:"Red Hills",physician:"Dr Adams",date:"2023-12-01",diagnosis:"neuro",fraction_dose:3,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:20,site:"Red Hills",physician:"Dr Adams",date:"2023-04-20",diagnosis:"neuro",fraction_dose:1.37,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:17,site:"Red Hills",physician:"Dr Lopez",date:"2023-12-07",diagnosis:"skin",fraction_dose:3.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2023-04-08",diagnosis:"neuro",fraction_dose:1.43,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:14,site:"Lakeside",physician:"Dr Adams",date:"2023-11-21",diagnosis:"breast",fraction_dose:1.51,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:15,site:"Rosebush",physician:"Dr Wong",date:"2023-03-16",diagnosis:"breast",fraction_dose:2.03,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Wong",date:"2023-11-26",diagnosis:"skin",fraction_dose:2.41,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:13,site:"Lakeside",physician:"Dr Smith",date:"2023-03-01",diagnosis:"neuro",fraction_dose:2.04,adherence:!1,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:10,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:13,site:"Rosebush",physician:"Dr Wong",date:"2023-05-07",diagnosis:"Unspecified",fraction_dose:3.06,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2023-05-18",diagnosis:"colorectal",fraction_dose:1.43,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:20,site:"Campsie",physician:"Dr Wong",date:"2023-07-24",diagnosis:"skin",fraction_dose:1.55,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:12,site:"Campsie",physician:"Dr Adams",date:"2023-11-04",diagnosis:"colorectal",fraction_dose:3.14,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:19,site:"Campsie",physician:"Dr Smith",date:"2023-05-20",diagnosis:"metastasis",fraction_dose:3.22,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:15,site:"Rosebush",physician:"Dr Adams",date:"2023-09-07",diagnosis:"prostate",fraction_dose:3,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:10,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2023-06-11",diagnosis:"Unspecified",fraction_dose:1.88,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:19,site:"Campsie",physician:"Dr Adams",date:"2023-05-06",diagnosis:"colorectal",fraction_dose:2.49,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Wong",date:"2023-06-30",diagnosis:"breast",fraction_dose:2.34,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-03-04",diagnosis:"metastasis",fraction_dose:3.26,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:13,site:"Rosebush",physician:"Dr Adams",date:"2023-04-28",diagnosis:"breast",fraction_dose:1.45,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-01-14",diagnosis:"prostate",fraction_dose:2.24,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:10,site:"Red Hills",physician:"Dr Smith",date:"2023-12-13",diagnosis:"breast",fraction_dose:1.4,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2023-08-21",diagnosis:"neuro",fraction_dose:3.15,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:19,site:"Campsie",physician:"Dr Smith",date:"2023-06-14",diagnosis:"neuro",fraction_dose:3.18,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:24,site:"Lakeside",physician:"Dr Wong",date:"2023-06-28",diagnosis:"neuro",fraction_dose:2.87,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:15,site:"Campsie",physician:"Dr Wong",date:"2023-07-21",diagnosis:"metastasis",fraction_dose:1.26,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:16,site:"Lakeside",physician:"Dr Lopez",date:"2023-11-19",diagnosis:"skin",fraction_dose:1.25,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:19,site:"Rosebush",physician:"Dr Smith",date:"2023-01-22",diagnosis:"Unspecified",fraction_dose:3.32,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:23,site:"Rosebush",physician:"Dr Adams",date:"2023-07-15",diagnosis:"Unspecified",fraction_dose:1.28,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:23,site:"Campsie",physician:"Dr Wong",date:"2023-01-25",diagnosis:"colorectal",fraction_dose:2.61,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:23,site:"Rosebush",physician:"Dr Lopez",date:"2023-05-08",diagnosis:"prostate",fraction_dose:1.5,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2023-04-17",diagnosis:"prostate",fraction_dose:2.15,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Lopez",date:"2023-04-25",diagnosis:"skin",fraction_dose:1.22,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:21,site:"Campsie",physician:"Dr Smith",date:"2023-06-07",diagnosis:"colorectal",fraction_dose:2.15,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2023-05-06",diagnosis:"Unspecified",fraction_dose:2.66,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:22,site:"Lakeside",physician:"Dr Adams",date:"2023-10-17",diagnosis:"metastasis",fraction_dose:1.37,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2023-01-27",diagnosis:"Unspecified",fraction_dose:2.75,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:25,site:"Lakeside",physician:"Dr Wong",date:"2023-04-29",diagnosis:"prostate",fraction_dose:2.72,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:15,site:"Rosebush",physician:"Dr Wong",date:"2023-01-30",diagnosis:"skin",fraction_dose:2.12,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2023-12-14",diagnosis:"breast",fraction_dose:1.57,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:10,site:"Rosebush",physician:"Dr Lopez",date:"2023-06-14",diagnosis:"Unspecified",fraction_dose:1.53,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:21,site:"Red Hills",physician:"Dr Wong",date:"2023-04-14",diagnosis:"colorectal",fraction_dose:1.5,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:10,site:"Lakeside",physician:"Dr Smith",date:"2023-01-05",diagnosis:"neuro",fraction_dose:2.2,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:19,site:"Campsie",physician:"Dr Wong",date:"2023-07-16",diagnosis:"metastasis",fraction_dose:1.33,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:18,site:"Lakeside",physician:"Dr Wong",date:"2023-10-01",diagnosis:"metastasis",fraction_dose:2.92,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:8,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2023-12-16",diagnosis:"colorectal",fraction_dose:2.61,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Lopez",date:"2023-01-05",diagnosis:"prostate",fraction_dose:1.35,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:15,site:"Rosebush",physician:"Dr Smith",date:"2023-06-12",diagnosis:"skin",fraction_dose:2.18,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:25,site:"Lakeside",physician:"Dr Adams",date:"2023-09-22",diagnosis:"breast",fraction_dose:2.2,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2023-04-07",diagnosis:"prostate",fraction_dose:2.38,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:21,site:"Red Hills",physician:"Dr Wong",date:"2023-12-17",diagnosis:"colorectal",fraction_dose:2.57,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:16,site:"Lakeside",physician:"Dr Smith",date:"2023-01-23",diagnosis:"Unspecified",fraction_dose:2.24,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:19,site:"Lakeside",physician:"Dr Smith",date:"2023-12-07",diagnosis:"neuro",fraction_dose:1.73,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:16,site:"Rosebush",physician:"Dr Lopez",date:"2023-04-09",diagnosis:"metastasis",fraction_dose:2.58,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Smith",date:"2023-07-06",diagnosis:"Unspecified",fraction_dose:1.4,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:13,site:"Campsie",physician:"Dr Wong",date:"2023-08-23",diagnosis:"prostate",fraction_dose:1.24,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:23,site:"Campsie",physician:"Dr Smith",date:"2023-08-02",diagnosis:"neuro",fraction_dose:1.96,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:11,site:"Campsie",physician:"Dr Smith",date:"2023-02-06",diagnosis:"Unspecified",fraction_dose:2.14,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:16,site:"Lakeside",physician:"Dr Wong",date:"2023-09-24",diagnosis:"skin",fraction_dose:1.9,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:25,site:"Red Hills",physician:"Dr Smith",date:"2023-03-05",diagnosis:"breast",fraction_dose:2.32,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:12,site:"Campsie",physician:"Dr Wong",date:"2023-08-18",diagnosis:"metastasis",fraction_dose:3.27,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2023-11-18",diagnosis:"Unspecified",fraction_dose:3.28,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:12,site:"Rosebush",physician:"Dr Adams",date:"2023-06-02",diagnosis:"prostate",fraction_dose:1.45,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:15,site:"Rosebush",physician:"Dr Wong",date:"2023-12-13",diagnosis:"prostate",fraction_dose:2.55,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:18,site:"Lakeside",physician:"Dr Lopez",date:"2023-08-19",diagnosis:"Unspecified",fraction_dose:1.89,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:11,site:"Campsie",physician:"Dr Wong",date:"2023-04-19",diagnosis:"breast",fraction_dose:2.86,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:10,site:"Campsie",physician:"Dr Smith",date:"2023-11-16",diagnosis:"prostate",fraction_dose:3.05,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:23,site:"Lakeside",physician:"Dr Wong",date:"2023-04-20",diagnosis:"colorectal",fraction_dose:2.2,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:12,site:"Red Hills",physician:"Dr Wong",date:"2023-04-04",diagnosis:"colorectal",fraction_dose:2.67,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:9,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:25,site:"Lakeside",physician:"Dr Adams",date:"2023-06-27",diagnosis:"colorectal",fraction_dose:1.53,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Wong",date:"2023-03-28",diagnosis:"metastasis",fraction_dose:2.63,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:10,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:15,site:"Campsie",physician:"Dr Lopez",date:"2023-07-10",diagnosis:"prostate",fraction_dose:2.08,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:10,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:16,site:"Rosebush",physician:"Dr Smith",date:"2023-01-18",diagnosis:"Unspecified",fraction_dose:2.41,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:16,site:"Rosebush",physician:"Dr Adams",date:"2023-10-10",diagnosis:"colorectal",fraction_dose:2.46,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:2,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:17,site:"Rosebush",physician:"Dr Wong",date:"2023-03-27",diagnosis:"prostate",fraction_dose:1.49,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2023-09-30",diagnosis:"Unspecified",fraction_dose:1.66,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:22,site:"Campsie",physician:"Dr Adams",date:"2023-10-18",diagnosis:"breast",fraction_dose:2.73,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:20,site:"Campsie",physician:"Dr Lopez",date:"2023-03-08",diagnosis:"breast",fraction_dose:1.41,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:11,site:"Lakeside",physician:"Dr Adams",date:"2023-06-12",diagnosis:"neuro",fraction_dose:1.44,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Adams",date:"2023-08-14",diagnosis:"breast",fraction_dose:1.73,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:12,site:"Campsie",physician:"Dr Wong",date:"2023-02-19",diagnosis:"Unspecified",fraction_dose:2.72,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2023-01-09",diagnosis:"metastasis",fraction_dose:3.17,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2023-10-06",diagnosis:"colorectal",fraction_dose:1.58,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2023-11-19",diagnosis:"neuro",fraction_dose:1.86,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:23,site:"Campsie",physician:"Dr Wong",date:"2023-11-15",diagnosis:"neuro",fraction_dose:1.21,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:19,site:"Rosebush",physician:"Dr Wong",date:"2023-07-20",diagnosis:"prostate",fraction_dose:2.83,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2023-10-29",diagnosis:"Unspecified",fraction_dose:1.83,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:16,site:"Lakeside",physician:"Dr Lopez",date:"2023-09-09",diagnosis:"metastasis",fraction_dose:1.9,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:15,site:"Rosebush",physician:"Dr Smith",date:"2023-01-12",diagnosis:"skin",fraction_dose:1.31,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Smith",date:"2023-02-07",diagnosis:"neuro",fraction_dose:2.56,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:21,site:"Rosebush",physician:"Dr Lopez",date:"2023-02-12",diagnosis:"prostate",fraction_dose:2.97,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:15,site:"Red Hills",physician:"Dr Lopez",date:"2023-03-15",diagnosis:"neuro",fraction_dose:3,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:13,site:"Lakeside",physician:"Dr Adams",date:"2023-03-07",diagnosis:"metastasis",fraction_dose:2.67,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:10,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2023-09-28",diagnosis:"metastasis",fraction_dose:2.03,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-12-26",diagnosis:"colorectal",fraction_dose:2.19,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:15,site:"Campsie",physician:"Dr Adams",date:"2023-02-08",diagnosis:"metastasis",fraction_dose:2.38,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:25,site:"Red Hills",physician:"Dr Lopez",date:"2023-02-26",diagnosis:"breast",fraction_dose:2.24,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2023-07-16",diagnosis:"Unspecified",fraction_dose:1.94,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:13,site:"Rosebush",physician:"Dr Adams",date:"2023-12-16",diagnosis:"skin",fraction_dose:2.58,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:22,site:"Rosebush",physician:"Dr Lopez",date:"2023-05-29",diagnosis:"metastasis",fraction_dose:1.5,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:12,site:"Rosebush",physician:"Dr Lopez",date:"2023-02-11",diagnosis:"Unspecified",fraction_dose:2.83,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:20,site:"Lakeside",physician:"Dr Smith",date:"2023-07-02",diagnosis:"breast",fraction_dose:1.32,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:25,site:"Lakeside",physician:"Dr Smith",date:"2023-12-17",diagnosis:"skin",fraction_dose:2.47,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2023-02-21",diagnosis:"prostate",fraction_dose:1.79,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:18,site:"Red Hills",physician:"Dr Lopez",date:"2023-09-09",diagnosis:"skin",fraction_dose:1.78,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:12,site:"Campsie",physician:"Dr Adams",date:"2023-02-28",diagnosis:"colorectal",fraction_dose:3.28,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2023-04-02",diagnosis:"neuro",fraction_dose:3.14,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:12,site:"Rosebush",physician:"Dr Adams",date:"2023-06-20",diagnosis:"Unspecified",fraction_dose:1.27,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:10,site:"Rosebush",physician:"Dr Lopez",date:"2023-01-20",diagnosis:"Unspecified",fraction_dose:2.44,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:14,site:"Rosebush",physician:"Dr Lopez",date:"2023-06-03",diagnosis:"prostate",fraction_dose:2.25,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2023-08-24",diagnosis:"breast",fraction_dose:2.74,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:23,site:"Lakeside",physician:"Dr Adams",date:"2023-01-13",diagnosis:"metastasis",fraction_dose:3.03,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:13,site:"Rosebush",physician:"Dr Adams",date:"2023-11-23",diagnosis:"breast",fraction_dose:2.88,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:13,site:"Rosebush",physician:"Dr Lopez",date:"2023-08-30",diagnosis:"skin",fraction_dose:3.32,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:15,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-17",diagnosis:"skin",fraction_dose:1.8,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:13,site:"Red Hills",physician:"Dr Adams",date:"2023-12-21",diagnosis:"metastasis",fraction_dose:2.11,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:15,site:"Lakeside",physician:"Dr Lopez",date:"2023-11-10",diagnosis:"metastasis",fraction_dose:3.36,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:22,site:"Red Hills",physician:"Dr Adams",date:"2023-08-29",diagnosis:"metastasis",fraction_dose:2.1,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:25,site:"Campsie",physician:"Dr Wong",date:"2023-03-11",diagnosis:"Unspecified",fraction_dose:2.63,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:21,site:"Lakeside",physician:"Dr Lopez",date:"2023-08-13",diagnosis:"metastasis",fraction_dose:1.76,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:19,site:"Lakeside",physician:"Dr Lopez",date:"2023-09-13",diagnosis:"prostate",fraction_dose:2.46,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:3,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:11,site:"Lakeside",physician:"Dr Wong",date:"2023-01-13",diagnosis:"skin",fraction_dose:2.84,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2023-03-02",diagnosis:"Unspecified",fraction_dose:3.23,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:22,site:"Campsie",physician:"Dr Lopez",date:"2023-08-03",diagnosis:"neuro",fraction_dose:1.33,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:24,site:"Rosebush",physician:"Dr Lopez",date:"2023-02-28",diagnosis:"neuro",fraction_dose:2.56,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:11,site:"Campsie",physician:"Dr Lopez",date:"2023-08-16",diagnosis:"breast",fraction_dose:2.68,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:19,site:"Campsie",physician:"Dr Wong",date:"2023-06-15",diagnosis:"skin",fraction_dose:1.5,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2023-03-28",diagnosis:"breast",fraction_dose:1.84,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:21,site:"Lakeside",physician:"Dr Lopez",date:"2023-01-11",diagnosis:"Unspecified",fraction_dose:2.77,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:10,site:"Rosebush",physician:"Dr Wong",date:"2023-10-09",diagnosis:"metastasis",fraction_dose:2.26,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:4,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:11,site:"Lakeside",physician:"Dr Lopez",date:"2023-02-14",diagnosis:"metastasis",fraction_dose:1.4,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:15,site:"Rosebush",physician:"Dr Smith",date:"2023-05-17",diagnosis:"skin",fraction_dose:1.58,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C43.9"},{fractions:25,site:"Campsie",physician:"Dr Smith",date:"2023-06-21",diagnosis:"Unspecified",fraction_dose:2.01,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:15,site:"Campsie",physician:"Dr Lopez",date:"2023-02-28",diagnosis:"neuro",fraction_dose:1.78,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:18,site:"Lakeside",physician:"Dr Lopez",date:"2023-10-05",diagnosis:"Unspecified",fraction_dose:2.65,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:16,site:"Lakeside",physician:"Dr Smith",date:"2023-11-15",diagnosis:"prostate",fraction_dose:1.93,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:10,site:"Campsie",physician:"Dr Adams",date:"2023-08-08",diagnosis:"metastasis",fraction_dose:3.12,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2023-01-25",diagnosis:"Unspecified",fraction_dose:1.72,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:23,site:"Lakeside",physician:"Dr Wong",date:"2023-10-18",diagnosis:"Unspecified",fraction_dose:2.07,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2023-04-19",diagnosis:"prostate",fraction_dose:2.17,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:25,site:"Rosebush",physician:"Dr Adams",date:"2023-10-23",diagnosis:"metastasis",fraction_dose:3.32,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-12-01",diagnosis:"prostate",fraction_dose:3.29,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:24,site:"Red Hills",physician:"Dr Smith",date:"2023-10-01",diagnosis:"neuro",fraction_dose:1.69,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2023-06-01",diagnosis:"skin",fraction_dose:3.05,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:16,site:"Rosebush",physician:"Dr Smith",date:"2023-03-22",diagnosis:"prostate",fraction_dose:1.67,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2023-06-15",diagnosis:"neuro",fraction_dose:1.34,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:21,site:"Red Hills",physician:"Dr Adams",date:"2023-09-02",diagnosis:"prostate",fraction_dose:2.9,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:22,site:"Rosebush",physician:"Dr Adams",date:"2023-11-09",diagnosis:"Unspecified",fraction_dose:2.54,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:15,site:"Lakeside",physician:"Dr Smith",date:"2023-08-25",diagnosis:"neuro",fraction_dose:1.51,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:10,site:"Red Hills",physician:"Dr Lopez",date:"2023-04-26",diagnosis:"metastasis",fraction_dose:1.79,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:14,site:"Lakeside",physician:"Dr Adams",date:"2023-08-16",diagnosis:"prostate",fraction_dose:2.6,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:21,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-30",diagnosis:"neuro",fraction_dose:2.61,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:16,site:"Lakeside",physician:"Dr Smith",date:"2023-03-04",diagnosis:"metastasis",fraction_dose:1.32,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:20,site:"Rosebush",physician:"Dr Lopez",date:"2023-09-05",diagnosis:"colorectal",fraction_dose:1.47,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:15,site:"Red Hills",physician:"Dr Lopez",date:"2023-03-22",diagnosis:"breast",fraction_dose:1.23,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:11,site:"Lakeside",physician:"Dr Lopez",date:"2023-05-26",diagnosis:"metastasis",fraction_dose:3.37,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:19,site:"Campsie",physician:"Dr Smith",date:"2023-02-07",diagnosis:"Unspecified",fraction_dose:1.37,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:21,site:"Campsie",physician:"Dr Lopez",date:"2023-09-21",diagnosis:"breast",fraction_dose:1.85,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:12,site:"Lakeside",physician:"Dr Lopez",date:"2023-10-08",diagnosis:"skin",fraction_dose:2.11,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:24,site:"Lakeside",physician:"Dr Adams",date:"2023-08-22",diagnosis:"neuro",fraction_dose:2.78,adherence:!1,technique:"Unspecified",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:23,site:"Red Hills",physician:"Dr Lopez",date:"2023-03-31",diagnosis:"prostate",fraction_dose:1.49,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:17,site:"Red Hills",physician:"Dr Wong",date:"2023-12-22",diagnosis:"colorectal",fraction_dose:1.8,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:13,site:"Red Hills",physician:"Dr Smith",date:"2023-08-02",diagnosis:"skin",fraction_dose:2.64,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2023-10-02",diagnosis:"skin",fraction_dose:3.34,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Adams",date:"2023-09-02",diagnosis:"skin",fraction_dose:1.5,adherence:!1,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Smith",date:"2023-01-28",diagnosis:"neuro",fraction_dose:2.51,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:23,site:"Red Hills",physician:"Dr Adams",date:"2023-09-06",diagnosis:"metastasis",fraction_dose:2.67,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:14,site:"Campsie",physician:"Dr Adams",date:"2023-12-24",diagnosis:"neuro",fraction_dose:1.65,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:11,site:"Rosebush",physician:"Dr Smith",date:"2023-10-31",diagnosis:"Unspecified",fraction_dose:2.66,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:21,site:"Lakeside",physician:"Dr Smith",date:"2023-01-09",diagnosis:"Unspecified",fraction_dose:2.57,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:10,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Lopez",date:"2023-08-28",diagnosis:"neuro",fraction_dose:2.01,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C20"},{fractions:10,site:"Campsie",physician:"Dr Adams",date:"2023-10-17",diagnosis:"Unspecified",fraction_dose:1.49,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:24,site:"Red Hills",physician:"Dr Wong",date:"2023-03-18",diagnosis:"colorectal",fraction_dose:3.31,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:13,site:"Lakeside",physician:"Dr Lopez",date:"2023-06-12",diagnosis:"Unspecified",fraction_dose:2.13,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:19,site:"Rosebush",physician:"Dr Lopez",date:"2023-03-06",diagnosis:"metastasis",fraction_dose:1.23,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:10,site:"Rosebush",physician:"Dr Smith",date:"2023-07-04",diagnosis:"metastasis",fraction_dose:1.89,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:6,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2023-12-11",diagnosis:"neuro",fraction_dose:1.78,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:17,site:"Red Hills",physician:"Dr Lopez",date:"2023-04-18",diagnosis:"breast",fraction_dose:1.49,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C79.81"},{fractions:16,site:"Red Hills",physician:"Dr Adams",date:"2023-12-15",diagnosis:"prostate",fraction_dose:2.14,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:10,site:"Lakeside",physician:"Dr Adams",date:"2023-08-18",diagnosis:"prostate",fraction_dose:3.14,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-08-04",diagnosis:"neuro",fraction_dose:2.14,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:22,site:"Campsie",physician:"Dr Lopez",date:"2023-11-18",diagnosis:"skin",fraction_dose:1.33,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2023-06-15",diagnosis:"skin",fraction_dose:2.55,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:17,site:"Rosebush",physician:"Dr Smith",date:"2023-04-25",diagnosis:"breast",fraction_dose:2.77,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:9,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2023-11-08",diagnosis:"metastasis",fraction_dose:3.05,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:11,site:"Campsie",physician:"Dr Adams",date:"2023-09-26",diagnosis:"colorectal",fraction_dose:2.44,adherence:!1,technique:"Conformal",linac:"Machine 3",sim_to_treat:2,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:20,site:"Lakeside",physician:"Dr Wong",date:"2023-10-31",diagnosis:"Unspecified",fraction_dose:2.98,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:6,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:16,site:"Lakeside",physician:"Dr Lopez",date:"2023-06-21",diagnosis:"skin",fraction_dose:1.75,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:21,site:"Rosebush",physician:"Dr Lopez",date:"2023-03-25",diagnosis:"breast",fraction_dose:3.21,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:17,site:"Lakeside",physician:"Dr Adams",date:"2023-12-17",diagnosis:"Unspecified",fraction_dose:2.13,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2023-12-18",diagnosis:"prostate",fraction_dose:1.23,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:12,site:"Lakeside",physician:"Dr Lopez",date:"2023-01-05",diagnosis:"neuro",fraction_dose:3.21,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:17,site:"Red Hills",physician:"Dr Adams",date:"2023-10-14",diagnosis:"skin",fraction_dose:2.14,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:11,site:"Campsie",physician:"Dr Smith",date:"2023-05-31",diagnosis:"neuro",fraction_dose:3.36,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2023-06-27",diagnosis:"Unspecified",fraction_dose:2.61,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:19,site:"Campsie",physician:"Dr Wong",date:"2023-10-03",diagnosis:"Unspecified",fraction_dose:1.47,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:22,site:"Rosebush",physician:"Dr Smith",date:"2023-11-08",diagnosis:"colorectal",fraction_dose:3.39,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:22,site:"Rosebush",physician:"Dr Lopez",date:"2023-03-29",diagnosis:"prostate",fraction_dose:1.74,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:15,site:"Rosebush",physician:"Dr Wong",date:"2023-06-15",diagnosis:"colorectal",fraction_dose:2.49,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:18,site:"Campsie",physician:"Dr Lopez",date:"2023-01-23",diagnosis:"breast",fraction_dose:2.55,adherence:!1,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-01-20",diagnosis:"prostate",fraction_dose:2.23,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:12,site:"Red Hills",physician:"Dr Wong",date:"2023-11-12",diagnosis:"metastasis",fraction_dose:2.22,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:19,site:"Rosebush",physician:"Dr Wong",date:"2023-04-05",diagnosis:"neuro",fraction_dose:3.07,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:20,site:"Rosebush",physician:"Dr Adams",date:"2023-01-04",diagnosis:"neuro",fraction_dose:2.73,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:10,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:13,site:"Campsie",physician:"Dr Lopez",date:"2023-12-09",diagnosis:"colorectal",fraction_dose:3.32,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:16,site:"Lakeside",physician:"Dr Smith",date:"2023-10-28",diagnosis:"metastasis",fraction_dose:3.08,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2023-03-21",diagnosis:"breast",fraction_dose:1.98,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:24,site:"Rosebush",physician:"Dr Wong",date:"2023-02-21",diagnosis:"Unspecified",fraction_dose:1.96,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:24,site:"Rosebush",physician:"Dr Smith",date:"2023-04-23",diagnosis:"colorectal",fraction_dose:3.17,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:11,site:"Red Hills",physician:"Dr Wong",date:"2023-09-06",diagnosis:"neuro",fraction_dose:2.69,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:10,site:"Lakeside",physician:"Dr Smith",date:"2023-06-22",diagnosis:"Unspecified",fraction_dose:2.22,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2023-03-29",diagnosis:"skin",fraction_dose:3.29,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:23,site:"Lakeside",physician:"Dr Adams",date:"2023-06-29",diagnosis:"breast",fraction_dose:1.67,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:11,site:"Lakeside",physician:"Dr Lopez",date:"2023-10-02",diagnosis:"colorectal",fraction_dose:2.2,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:16,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-06",diagnosis:"skin",fraction_dose:1.28,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:21,site:"Rosebush",physician:"Dr Adams",date:"2023-08-30",diagnosis:"metastasis",fraction_dose:2.06,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:16,site:"Lakeside",physician:"Dr Adams",date:"2023-12-10",diagnosis:"Unspecified",fraction_dose:2.99,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:15,site:"Rosebush",physician:"Dr Wong",date:"2023-02-01",diagnosis:"colorectal",fraction_dose:2.52,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:25,site:"Lakeside",physician:"Dr Adams",date:"2023-02-05",diagnosis:"prostate",fraction_dose:2.42,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:18,site:"Lakeside",physician:"Dr Smith",date:"2023-01-30",diagnosis:"skin",fraction_dose:2.72,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:25,site:"Rosebush",physician:"Dr Smith",date:"2023-02-25",diagnosis:"breast",fraction_dose:1.58,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2023-01-12",diagnosis:"neuro",fraction_dose:2.84,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2023-08-21",diagnosis:"Unspecified",fraction_dose:3.01,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Lopez",date:"2023-07-11",diagnosis:"neuro",fraction_dose:2.1,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:3,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:12,site:"Red Hills",physician:"Dr Wong",date:"2023-10-21",diagnosis:"metastasis",fraction_dose:2.78,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:20,site:"Lakeside",physician:"Dr Adams",date:"2023-09-01",diagnosis:"breast",fraction_dose:3.13,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:18,site:"Campsie",physician:"Dr Wong",date:"2023-12-11",diagnosis:"skin",fraction_dose:2.04,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2023-03-04",diagnosis:"prostate",fraction_dose:2.02,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:24,site:"Rosebush",physician:"Dr Adams",date:"2023-10-01",diagnosis:"prostate",fraction_dose:2.63,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2023-10-12",diagnosis:"neuro",fraction_dose:3.06,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:18,site:"Rosebush",physician:"Dr Adams",date:"2023-01-23",diagnosis:"breast",fraction_dose:2.32,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:13,site:"Campsie",physician:"Dr Adams",date:"2023-02-04",diagnosis:"colorectal",fraction_dose:2.37,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:20,site:"Rosebush",physician:"Dr Smith",date:"2023-05-10",diagnosis:"colorectal",fraction_dose:2.28,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:13,site:"Red Hills",physician:"Dr Adams",date:"2023-08-18",diagnosis:"neuro",fraction_dose:2.53,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2023-01-22",diagnosis:"prostate",fraction_dose:2.01,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:3,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:12,site:"Rosebush",physician:"Dr Smith",date:"2023-04-30",diagnosis:"prostate",fraction_dose:3.13,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:25,site:"Rosebush",physician:"Dr Lopez",date:"2023-02-09",diagnosis:"breast",fraction_dose:1.42,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:25,site:"Rosebush",physician:"Dr Lopez",date:"2023-03-16",diagnosis:"prostate",fraction_dose:1.4,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C43.9"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2023-05-31",diagnosis:"breast",fraction_dose:1.75,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:13,site:"Rosebush",physician:"Dr Lopez",date:"2023-10-27",diagnosis:"breast",fraction_dose:1.46,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:9,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:22,site:"Rosebush",physician:"Dr Adams",date:"2023-10-21",diagnosis:"skin",fraction_dose:2.41,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:12,site:"Lakeside",physician:"Dr Wong",date:"2023-10-02",diagnosis:"colorectal",fraction_dose:1.69,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:23,site:"Lakeside",physician:"Dr Adams",date:"2023-08-14",diagnosis:"prostate",fraction_dose:2.49,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-11-20",diagnosis:"neuro",fraction_dose:2.18,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:22,site:"Campsie",physician:"Dr Wong",date:"2023-06-20",diagnosis:"skin",fraction_dose:1.98,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:15,site:"Red Hills",physician:"Dr Adams",date:"2023-11-19",diagnosis:"colorectal",fraction_dose:2.21,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:20,site:"Lakeside",physician:"Dr Smith",date:"2023-09-20",diagnosis:"Unspecified",fraction_dose:1.71,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Lopez",date:"2023-03-21",diagnosis:"skin",fraction_dose:2.12,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:6,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2023-12-19",diagnosis:"breast",fraction_dose:2.07,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-07-01",diagnosis:"colorectal",fraction_dose:3.16,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C34.90"},{fractions:11,site:"Lakeside",physician:"Dr Wong",date:"2023-03-09",diagnosis:"prostate",fraction_dose:3.34,adherence:!1,technique:"VMAT",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:23,site:"Red Hills",physician:"Dr Lopez",date:"2023-05-04",diagnosis:"prostate",fraction_dose:2.74,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:22,site:"Rosebush",physician:"Dr Wong",date:"2023-06-02",diagnosis:"neuro",fraction_dose:3.33,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:11,site:"Red Hills",physician:"Dr Smith",date:"2023-12-01",diagnosis:"prostate",fraction_dose:2.41,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:22,site:"Rosebush",physician:"Dr Lopez",date:"2023-03-22",diagnosis:"prostate",fraction_dose:1.75,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:24,site:"Campsie",physician:"Dr Smith",date:"2023-11-14",diagnosis:"neuro",fraction_dose:2,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:22,site:"Rosebush",physician:"Dr Wong",date:"2023-07-20",diagnosis:"breast",fraction_dose:1.91,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:18,site:"Lakeside",physician:"Dr Smith",date:"2023-10-01",diagnosis:"skin",fraction_dose:3,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:13,site:"Rosebush",physician:"Dr Smith",date:"2023-11-06",diagnosis:"skin",fraction_dose:2.28,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:10,site:"Campsie",physician:"Dr Adams",date:"2023-05-09",diagnosis:"breast",fraction_dose:3.38,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:15,site:"Rosebush",physician:"Dr Wong",date:"2023-12-27",diagnosis:"colorectal",fraction_dose:1.58,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:24,site:"Lakeside",physician:"Dr Smith",date:"2023-02-23",diagnosis:"colorectal",fraction_dose:1.83,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:23,site:"Campsie",physician:"Dr Wong",date:"2023-04-18",diagnosis:"neuro",fraction_dose:1.27,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:7,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:10,site:"Lakeside",physician:"Dr Lopez",date:"2023-08-14",diagnosis:"skin",fraction_dose:1.56,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:16,site:"Campsie",physician:"Dr Smith",date:"2023-10-23",diagnosis:"prostate",fraction_dose:2.23,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:20,site:"Red Hills",physician:"Dr Lopez",date:"2023-05-25",diagnosis:"colorectal",fraction_dose:2.49,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:21,site:"Campsie",physician:"Dr Lopez",date:"2023-07-07",diagnosis:"neuro",fraction_dose:1.21,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:21,site:"Lakeside",physician:"Dr Adams",date:"2023-10-11",diagnosis:"prostate",fraction_dose:1.79,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:22,site:"Rosebush",physician:"Dr Adams",date:"2023-04-12",diagnosis:"metastasis",fraction_dose:1.31,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:10,site:"Lakeside",physician:"Dr Smith",date:"2023-03-31",diagnosis:"neuro",fraction_dose:1.73,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:19,site:"Red Hills",physician:"Dr Lopez",date:"2023-04-09",diagnosis:"breast",fraction_dose:3.03,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:14,site:"Campsie",physician:"Dr Lopez",date:"2023-02-15",diagnosis:"prostate",fraction_dose:1.22,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:6,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:23,site:"Campsie",physician:"Dr Adams",date:"2023-04-22",diagnosis:"neuro",fraction_dose:2.49,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2023-02-19",diagnosis:"Unspecified",fraction_dose:2.11,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:22,site:"Lakeside",physician:"Dr Adams",date:"2023-10-02",diagnosis:"prostate",fraction_dose:2.05,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:13,site:"Lakeside",physician:"Dr Smith",date:"2023-05-08",diagnosis:"metastasis",fraction_dose:3.24,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:13,site:"Rosebush",physician:"Dr Smith",date:"2023-01-28",diagnosis:"skin",fraction_dose:2.2,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:15,site:"Lakeside",physician:"Dr Lopez",date:"2023-06-25",diagnosis:"skin",fraction_dose:2.21,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:10,site:"Campsie",physician:"Dr Lopez",date:"2023-12-30",diagnosis:"neuro",fraction_dose:1.76,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:6,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:20,site:"Red Hills",physician:"Dr Lopez",date:"2023-11-13",diagnosis:"Unspecified",fraction_dose:3.33,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:19,site:"Rosebush",physician:"Dr Wong",date:"2023-01-16",diagnosis:"metastasis",fraction_dose:2.28,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:10,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:18,site:"Rosebush",physician:"Dr Lopez",date:"2023-08-09",diagnosis:"colorectal",fraction_dose:2.5,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Smith",date:"2023-06-23",diagnosis:"metastasis",fraction_dose:2.19,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:15,site:"Campsie",physician:"Dr Smith",date:"2023-02-09",diagnosis:"colorectal",fraction_dose:2.36,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:22,site:"Lakeside",physician:"Dr Wong",date:"2023-07-23",diagnosis:"Unspecified",fraction_dose:2.24,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:10,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:17,site:"Lakeside",physician:"Dr Adams",date:"2023-09-26",diagnosis:"prostate",fraction_dose:1.56,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2023-12-11",diagnosis:"metastasis",fraction_dose:2.59,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:22,site:"Rosebush",physician:"Dr Adams",date:"2023-04-09",diagnosis:"skin",fraction_dose:1.79,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:18,site:"Rosebush",physician:"Dr Smith",date:"2023-06-06",diagnosis:"skin",fraction_dose:3,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2023-07-12",diagnosis:"neuro",fraction_dose:2.17,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:3,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:20,site:"Red Hills",physician:"Dr Wong",date:"2023-04-30",diagnosis:"colorectal",fraction_dose:2.63,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:23,site:"Lakeside",physician:"Dr Wong",date:"2023-09-05",diagnosis:"neuro",fraction_dose:1.24,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:12,site:"Red Hills",physician:"Dr Smith",date:"2023-05-25",diagnosis:"breast",fraction_dose:3.32,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C79.81"},{fractions:19,site:"Rosebush",physician:"Dr Lopez",date:"2023-08-11",diagnosis:"Unspecified",fraction_dose:1.44,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2023-08-26",diagnosis:"prostate",fraction_dose:3.11,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:1,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2023-07-24",diagnosis:"neuro",fraction_dose:2.07,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C20"},{fractions:23,site:"Red Hills",physician:"Dr Adams",date:"2023-08-04",diagnosis:"colorectal",fraction_dose:2,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:19,site:"Rosebush",physician:"Dr Adams",date:"2023-06-22",diagnosis:"breast",fraction_dose:2.2,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:17,site:"Campsie",physician:"Dr Wong",date:"2023-04-03",diagnosis:"Unspecified",fraction_dose:3.13,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:18,site:"Red Hills",physician:"Dr Lopez",date:"2023-11-11",diagnosis:"colorectal",fraction_dose:2.11,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:13,site:"Red Hills",physician:"Dr Adams",date:"2023-07-05",diagnosis:"breast",fraction_dose:1.7,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:10,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2023-12-17",diagnosis:"neuro",fraction_dose:1.47,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:10,site:"Campsie",physician:"Dr Lopez",date:"2023-07-19",diagnosis:"skin",fraction_dose:1.41,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:8,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2023-08-05",diagnosis:"colorectal",fraction_dose:2.18,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:21,site:"Campsie",physician:"Dr Lopez",date:"2023-07-13",diagnosis:"skin",fraction_dose:2.7,adherence:!0,technique:"Stereotactic",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2023-04-29",diagnosis:"colorectal",fraction_dose:2.97,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C20"},{fractions:25,site:"Rosebush",physician:"Dr Wong",date:"2023-04-15",diagnosis:"Unspecified",fraction_dose:2.02,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:12,site:"Red Hills",physician:"Dr Lopez",date:"2023-07-31",diagnosis:"Unspecified",fraction_dose:2.49,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:13,site:"Lakeside",physician:"Dr Adams",date:"2023-04-07",diagnosis:"prostate",fraction_dose:3.03,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:17,site:"Lakeside",physician:"Dr Smith",date:"2023-05-16",diagnosis:"breast",fraction_dose:2.79,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:23,site:"Campsie",physician:"Dr Lopez",date:"2023-03-16",diagnosis:"skin",fraction_dose:2.3,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:23,site:"Campsie",physician:"Dr Lopez",date:"2023-12-03",diagnosis:"prostate",fraction_dose:1.71,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C43.9"},{fractions:19,site:"Lakeside",physician:"Dr Wong",date:"2023-09-30",diagnosis:"colorectal",fraction_dose:3.14,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C79.81"},{fractions:11,site:"Campsie",physician:"Dr Smith",date:"2023-12-15",diagnosis:"neuro",fraction_dose:2.04,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C61"},{fractions:19,site:"Red Hills",physician:"Dr Wong",date:"2023-03-08",diagnosis:"Unspecified",fraction_dose:3.35,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:3,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:16,site:"Campsie",physician:"Dr Adams",date:"2023-11-14",diagnosis:"metastasis",fraction_dose:2.07,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:17,site:"Campsie",physician:"Dr Smith",date:"2023-10-31",diagnosis:"skin",fraction_dose:1.94,adherence:!1,technique:"Electrons",linac:"Machine 3",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2023-03-04",diagnosis:"colorectal",fraction_dose:2.63,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C61"},{fractions:16,site:"Campsie",physician:"Dr Wong",date:"2023-09-18",diagnosis:"skin",fraction_dose:2.88,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:23,site:"Campsie",physician:"Dr Adams",date:"2023-12-19",diagnosis:"Unspecified",fraction_dose:3.37,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:22,site:"Red Hills",physician:"Dr Lopez",date:"2023-10-31",diagnosis:"metastasis",fraction_dose:2.38,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:2,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C71.9"},{fractions:23,site:"Rosebush",physician:"Dr Adams",date:"2023-01-12",diagnosis:"Unspecified",fraction_dose:2.29,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C71.9"},{fractions:13,site:"Red Hills",physician:"Dr Adams",date:"2023-05-06",diagnosis:"metastasis",fraction_dose:2.81,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:24,site:"Lakeside",physician:"Dr Smith",date:"2023-09-28",diagnosis:"prostate",fraction_dose:3.27,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:4,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C34.90"},{fractions:14,site:"Campsie",physician:"Dr Lopez",date:"2023-01-26",diagnosis:"neuro",fraction_dose:1.73,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:3,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:13,site:"Lakeside",physician:"Dr Smith",date:"2023-01-05",diagnosis:"metastasis",fraction_dose:1.22,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:11,site:"Lakeside",physician:"Dr Smith",date:"2023-08-08",diagnosis:"prostate",fraction_dose:1.61,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-08-03",diagnosis:"breast",fraction_dose:2.39,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:9,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C20"},{fractions:23,site:"Red Hills",physician:"Dr Smith",date:"2023-07-14",diagnosis:"colorectal",fraction_dose:3.17,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:12,site:"Lakeside",physician:"Dr Lopez",date:"2023-12-13",diagnosis:"breast",fraction_dose:1.71,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:25,site:"Rosebush",physician:"Dr Lopez",date:"2023-11-24",diagnosis:"skin",fraction_dose:2.67,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2023-09-01",diagnosis:"neuro",fraction_dose:1.47,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:4,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:20,site:"Rosebush",physician:"Dr Adams",date:"2023-07-24",diagnosis:"neuro",fraction_dose:2.94,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:15,site:"Red Hills",physician:"Dr Smith",date:"2023-03-09",diagnosis:"breast",fraction_dose:3.23,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:19,site:"Lakeside",physician:"Dr Smith",date:"2023-12-01",diagnosis:"Unspecified",fraction_dose:2.62,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:21,site:"Lakeside",physician:"Dr Smith",date:"2023-11-18",diagnosis:"breast",fraction_dose:2.8,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:14,site:"Campsie",physician:"Dr Wong",date:"2023-12-09",diagnosis:"metastasis",fraction_dose:2.58,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C71.9"},{fractions:25,site:"Rosebush",physician:"Dr Smith",date:"2023-09-16",diagnosis:"skin",fraction_dose:2.61,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C43.9"},{fractions:20,site:"Rosebush",physician:"Dr Lopez",date:"2023-01-23",diagnosis:"metastasis",fraction_dose:3.15,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Julian Foster",diagnosis_code:"C61"},{fractions:15,site:"Red Hills",physician:"Dr Wong",date:"2023-05-03",diagnosis:"skin",fraction_dose:3.03,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:19,site:"Rosebush",physician:"Dr Wong",date:"2023-10-06",diagnosis:"metastasis",fraction_dose:1.22,adherence:!0,technique:"VMAT",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C61"},{fractions:16,site:"Lakeside",physician:"Dr Lopez",date:"2023-11-20",diagnosis:"breast",fraction_dose:3.13,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2023-05-03",diagnosis:"colorectal",fraction_dose:1.36,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:13,site:"Campsie",physician:"Dr Smith",date:"2023-01-14",diagnosis:"breast",fraction_dose:3.07,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:11,site:"Rosebush",physician:"Dr Adams",date:"2023-09-22",diagnosis:"skin",fraction_dose:2.11,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:3,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C79.81"},{fractions:24,site:"Campsie",physician:"Dr Adams",date:"2023-08-25",diagnosis:"metastasis",fraction_dose:2.34,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:6,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C61"},{fractions:17,site:"Red Hills",physician:"Dr Adams",date:"2023-09-18",diagnosis:"neuro",fraction_dose:2.79,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:12,site:"Rosebush",physician:"Dr Lopez",date:"2023-12-15",diagnosis:"breast",fraction_dose:1.75,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:7,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:14,site:"Rosebush",physician:"Dr Lopez",date:"2023-11-19",diagnosis:"metastasis",fraction_dose:1.87,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:18,site:"Rosebush",physician:"Dr Wong",date:"2023-10-21",diagnosis:"colorectal",fraction_dose:1.99,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C34.90"},{fractions:14,site:"Red Hills",physician:"Dr Lopez",date:"2023-12-21",diagnosis:"Unspecified",fraction_dose:2.43,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:3,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:21,site:"Campsie",physician:"Dr Wong",date:"2023-06-23",diagnosis:"breast",fraction_dose:2.65,adherence:!0,technique:"Unspecified",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:14,site:"Lakeside",physician:"Dr Wong",date:"2023-06-25",diagnosis:"skin",fraction_dose:2.89,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:18,site:"Red Hills",physician:"Dr Lopez",date:"2023-08-19",diagnosis:"skin",fraction_dose:1.25,adherence:!1,technique:"Unspecified",linac:"Machine 4",sim_to_treat:4,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:18,site:"Campsie",physician:"Dr Smith",date:"2023-12-25",diagnosis:"Unspecified",fraction_dose:1.84,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C20"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2023-05-01",diagnosis:"colorectal",fraction_dose:2.71,adherence:!0,technique:"Electrons",linac:"Machine 1",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C71.9"},{fractions:14,site:"Lakeside",physician:"Dr Wong",date:"2023-08-22",diagnosis:"Unspecified",fraction_dose:3.18,adherence:!0,technique:"IMRT",linac:"Machine 2",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:23,site:"Rosebush",physician:"Dr Lopez",date:"2023-12-03",diagnosis:"Unspecified",fraction_dose:2.76,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:14,site:"Rosebush",physician:"Dr Adams",date:"2023-08-03",diagnosis:"metastasis",fraction_dose:2.85,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:18,site:"Campsie",physician:"Dr Wong",date:"2023-05-06",diagnosis:"breast",fraction_dose:2.36,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:8,priority:"Standard",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:20,site:"Campsie",physician:"Dr Adams",date:"2023-12-03",diagnosis:"Unspecified",fraction_dose:1.74,adherence:!1,technique:"Conformal",linac:"Machine 3",sim_to_treat:5,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C71.9"},{fractions:21,site:"Red Hills",physician:"Dr Smith",date:"2023-04-17",diagnosis:"neuro",fraction_dose:2.52,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:11,site:"Rosebush",physician:"Dr Wong",date:"2023-04-12",diagnosis:"colorectal",fraction_dose:2.29,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-09-20",diagnosis:"colorectal",fraction_dose:1.47,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Standard",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:13,site:"Red Hills",physician:"Dr Adams",date:"2023-01-05",diagnosis:"breast",fraction_dose:3.4,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:14,site:"Red Hills",physician:"Dr Adams",date:"2023-08-24",diagnosis:"neuro",fraction_dose:2.09,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Clara Thompson",diagnosis_code:"C20"},{fractions:22,site:"Lakeside",physician:"Dr Adams",date:"2023-07-21",diagnosis:"metastasis",fraction_dose:2.67,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:8,priority:"Emergency",referrer:"Dr. Clara Thompson",diagnosis_code:"C79.81"},{fractions:12,site:"Campsie",physician:"Dr Adams",date:"2023-04-12",diagnosis:"neuro",fraction_dose:2.16,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:2,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C61"},{fractions:24,site:"Lakeside",physician:"Dr Lopez",date:"2023-06-07",diagnosis:"breast",fraction_dose:2.4,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:5,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C71.9"},{fractions:14,site:"Lakeside",physician:"Dr Lopez",date:"2023-10-25",diagnosis:"colorectal",fraction_dose:2.48,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:16,site:"Lakeside",physician:"Dr Wong",date:"2023-01-02",diagnosis:"Unspecified",fraction_dose:2.79,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:7,priority:"Standard",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:19,site:"Red Hills",physician:"Dr Wong",date:"2023-05-02",diagnosis:"prostate",fraction_dose:2.25,adherence:!0,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:3,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:14,site:"Rosebush",physician:"Dr Smith",date:"2023-09-27",diagnosis:"colorectal",fraction_dose:2.05,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:11,site:"Campsie",physician:"Dr Smith",date:"2023-07-11",diagnosis:"metastasis",fraction_dose:1.5,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:6,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:22,site:"Red Hills",physician:"Dr Adams",date:"2023-05-20",diagnosis:"Unspecified",fraction_dose:2.19,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:1,priority:"Urgent",referrer:"Dr. Jonathan Blake",diagnosis_code:"C79.81"},{fractions:11,site:"Campsie",physician:"Dr Lopez",date:"2023-01-23",diagnosis:"Unspecified",fraction_dose:2.33,adherence:!1,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Victor Hernandes",diagnosis_code:"C43.9"},{fractions:17,site:"Red Hills",physician:"Dr Smith",date:"2023-11-29",diagnosis:"metastasis",fraction_dose:3.2,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C79.81"},{fractions:12,site:"Campsie",physician:"Dr Smith",date:"2023-12-16",diagnosis:"Unspecified",fraction_dose:3.08,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:8,priority:"Standard",referrer:"Dr. Michael Stern",diagnosis_code:"C43.9"},{fractions:17,site:"Lakeside",physician:"Dr Wong",date:"2023-12-14",diagnosis:"colorectal",fraction_dose:2.58,adherence:!0,technique:"Brachytherapy",linac:"Machine 3",sim_to_treat:2,priority:"Emergency",referrer:"Dr. Jonathan Blake",diagnosis_code:"C43.9"},{fractions:19,site:"Rosebush",physician:"Dr Wong",date:"2023-06-16",diagnosis:"breast",fraction_dose:2.02,adherence:!0,technique:"Brachytherapy",linac:"Machine 4",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:11,site:"Campsie",physician:"Dr Lopez",date:"2023-11-12",diagnosis:"prostate",fraction_dose:2.16,adherence:!0,technique:"Conformal",linac:"Machine 2",sim_to_treat:1,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:21,site:"Campsie",physician:"Dr Smith",date:"2023-07-30",diagnosis:"skin",fraction_dose:2.12,adherence:!0,technique:"Stereotactic",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:23,site:"Red Hills",physician:"Dr Lopez",date:"2023-02-26",diagnosis:"neuro",fraction_dose:1.31,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:11,site:"Red Hills",physician:"Dr Smith",date:"2023-10-19",diagnosis:"prostate",fraction_dose:3.39,adherence:!0,technique:"Electrons",linac:"Machine 3",sim_to_treat:9,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C79.81"},{fractions:11,site:"Rosebush",physician:"Dr Smith",date:"2023-12-05",diagnosis:"Unspecified",fraction_dose:1.51,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:9,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:13,site:"Lakeside",physician:"Dr Lopez",date:"2023-09-07",diagnosis:"neuro",fraction_dose:3.33,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C43.9"},{fractions:14,site:"Lakeside",physician:"Dr Adams",date:"2023-01-26",diagnosis:"metastasis",fraction_dose:1.77,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:7,priority:"Standard",referrer:"Dr. Aisha Patel",diagnosis_code:"C20"},{fractions:12,site:"Red Hills",physician:"Dr Adams",date:"2023-05-02",diagnosis:"neuro",fraction_dose:2.82,adherence:!0,technique:"VMAT",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C43.9"},{fractions:20,site:"Rosebush",physician:"Dr Adams",date:"2023-10-13",diagnosis:"Unspecified",fraction_dose:3.23,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:21,site:"Rosebush",physician:"Dr Wong",date:"2023-02-22",diagnosis:"colorectal",fraction_dose:3.19,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:6,priority:"Standard",referrer:"Dr. Victor Hernandes",diagnosis_code:"C34.90"},{fractions:18,site:"Lakeside",physician:"Dr Lopez",date:"2023-12-14",diagnosis:"colorectal",fraction_dose:1.37,adherence:!0,technique:"IMRT",linac:"Machine 1",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C43.9"},{fractions:16,site:"Lakeside",physician:"Dr Wong",date:"2023-08-02",diagnosis:"Unspecified",fraction_dose:3.21,adherence:!0,technique:"IMRT",linac:"Machine 4",sim_to_treat:10,priority:"Urgent",referrer:"Dr. Michael Stern",diagnosis_code:"C34.90"},{fractions:24,site:"Lakeside",physician:"Dr Smith",date:"2023-05-08",diagnosis:"metastasis",fraction_dose:1.85,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Emily Hartman",diagnosis_code:"C34.90"},{fractions:16,site:"Campsie",physician:"Dr Wong",date:"2023-11-17",diagnosis:"skin",fraction_dose:3.26,adherence:!0,technique:"Conformal",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Alex Reynolds",diagnosis_code:"C71.9"},{fractions:16,site:"Lakeside",physician:"Dr Smith",date:"2023-01-08",diagnosis:"breast",fraction_dose:2.53,adherence:!0,technique:"Conformal",linac:"Machine 3",sim_to_treat:9,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C61"},{fractions:21,site:"Rosebush",physician:"Dr Smith",date:"2023-08-29",diagnosis:"neuro",fraction_dose:2.43,adherence:!0,technique:"IMRT",linac:"Machine 3",sim_to_treat:1,priority:"Emergency",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C79.81"},{fractions:12,site:"Lakeside",physician:"Dr Smith",date:"2023-12-12",diagnosis:"Unspecified",fraction_dose:2.13,adherence:!0,technique:"VMAT",linac:"Machine 3",sim_to_treat:4,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"},{fractions:21,site:"Lakeside",physician:"Dr Wong",date:"2023-02-01",diagnosis:"skin",fraction_dose:2.75,adherence:!0,technique:"Brachytherapy",linac:"Machine 2",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Emily Hartman",diagnosis_code:"C71.9"},{fractions:16,site:"Campsie",physician:"Dr Smith",date:"2023-03-19",diagnosis:"breast",fraction_dose:2.45,adherence:!0,technique:"Conformal",linac:"Machine 1",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:18,site:"Campsie",physician:"Dr Adams",date:"2023-03-11",diagnosis:"prostate",fraction_dose:2.39,adherence:!0,technique:"Unspecified",linac:"Machine 2",sim_to_treat:2,priority:"Standard",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C34.90"},{fractions:10,site:"Red Hills",physician:"Dr Adams",date:"2023-10-24",diagnosis:"Unspecified",fraction_dose:2.69,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:7,priority:"Emergency",referrer:"Dr. Aisha Patel",diagnosis_code:"C34.90"},{fractions:16,site:"Campsie",physician:"Dr Wong",date:"2023-02-13",diagnosis:"skin",fraction_dose:2.8,adherence:!0,technique:"Stereotactic",linac:"Machine 2",sim_to_treat:5,priority:"Urgent",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C20"},{fractions:21,site:"Campsie",physician:"Dr Adams",date:"2023-12-06",diagnosis:"neuro",fraction_dose:1.69,adherence:!0,technique:"VMAT",linac:"Machine 1",sim_to_treat:3,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:15,site:"Lakeside",physician:"Dr Wong",date:"2023-01-03",diagnosis:"breast",fraction_dose:3.14,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:8,priority:"Urgent",referrer:"Dr. Sophie Greenberg",diagnosis_code:"C71.9"},{fractions:12,site:"Rosebush",physician:"Dr Adams",date:"2023-05-12",diagnosis:"metastasis",fraction_dose:1.74,adherence:!1,technique:"Stereotactic",linac:"Machine 4",sim_to_treat:1,priority:"Standard",referrer:"Dr. Julian Foster",diagnosis_code:"C34.90"},{fractions:19,site:"Campsie",physician:"Dr Lopez",date:"2023-02-05",diagnosis:"breast",fraction_dose:1.91,adherence:!0,technique:"Unspecified",linac:"Machine 4",sim_to_treat:10,priority:"Emergency",referrer:"Dr. Victor Hernandes",diagnosis_code:"C20"},{fractions:24,site:"Campsie",physician:"Dr Lopez",date:"2023-10-02",diagnosis:"metastasis",fraction_dose:2.05,adherence:!0,technique:"Brachytherapy",linac:"Machine 1",sim_to_treat:5,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C34.90"},{fractions:25,site:"Rosebush",physician:"Dr Lopez",date:"2023-11-22",diagnosis:"metastasis",fraction_dose:2.41,adherence:!1,technique:"VMAT",linac:"Machine 3",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C61"},{fractions:25,site:"Campsie",physician:"Dr Lopez",date:"2023-05-20",diagnosis:"colorectal",fraction_dose:2.17,adherence:!0,technique:"Electrons",linac:"Machine 2",sim_to_treat:4,priority:"Emergency",referrer:"Dr. Rachel Nguyen",diagnosis_code:"C79.81"},{fractions:14,site:"Lakeside",physician:"Dr Smith",date:"2023-05-03",diagnosis:"skin",fraction_dose:1.56,adherence:!0,technique:"Electrons",linac:"Machine 4",sim_to_treat:6,priority:"Emergency",referrer:"Dr. Alex Reynolds",diagnosis_code:"C61"},{fractions:11,site:"Lakeside",physician:"Dr Wong",date:"2023-09-27",diagnosis:"Unspecified",fraction_dose:1.84,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:7,priority:"Urgent",referrer:"Dr. Alex Reynolds",diagnosis_code:"C20"},{fractions:10,site:"Rosebush",physician:"Dr Wong",date:"2023-05-18",diagnosis:"metastasis",fraction_dose:2.98,adherence:!0,technique:"Unspecified",linac:"Machine 1",sim_to_treat:10,priority:"Standard",referrer:"Dr. Emily Hartman",diagnosis_code:"C61"}];var highchartsReact_min={exports:{}};(function(et,tt){(function(rt,nt){et.exports=nt(reactExports)})(typeof self<"u"?self:commonjsGlobal$1,function(rt){return function(nt){function lt(dt){if(ut[dt])return ut[dt].exports;var pt=ut[dt]={i:dt,l:!1,exports:{}};return nt[dt].call(pt.exports,pt,pt.exports,lt),pt.l=!0,pt.exports}var ut={};return lt.m=nt,lt.c=ut,lt.d=function(dt,pt,ht){lt.o(dt,pt)||Object.defineProperty(dt,pt,{configurable:!1,enumerable:!0,get:ht})},lt.n=function(dt){var pt=dt&&dt.__esModule?function(){return dt.default}:function(){return dt};return lt.d(pt,"a",pt),pt},lt.o=function(dt,pt){return Object.prototype.hasOwnProperty.call(dt,pt)},lt.p="",lt(lt.s=0)}([function(nt,lt,ut){function dt(){return dt=Object.assign?Object.assign.bind():function(Ct){for(var It=1;It<arguments.length;It++){var Dt=arguments[It];for(var kt in Dt)Object.prototype.hasOwnProperty.call(Dt,kt)&&(Ct[kt]=Dt[kt])}return Ct},dt.apply(this,arguments)}function pt(Ct){return Mt(Ct)||xt(Ct)||mt(Ct)||ht()}function ht(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mt(Ct,It){if(Ct){if(typeof Ct=="string")return vt(Ct,It);var Dt=Object.prototype.toString.call(Ct).slice(8,-1);return Dt==="Object"&&Ct.constructor&&(Dt=Ct.constructor.name),Dt==="Map"||Dt==="Set"?Array.from(Ct):Dt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dt)?vt(Ct,It):void 0}}function xt(Ct){if(typeof Symbol<"u"&&Ct[Symbol.iterator]!=null||Ct["@@iterator"]!=null)return Array.from(Ct)}function Mt(Ct){if(Array.isArray(Ct))return vt(Ct)}function vt(Ct,It){(It==null||It>Ct.length)&&(It=Ct.length);for(var Dt=0,kt=new Array(It);Dt<It;Dt++)kt[Dt]=Ct[Dt];return kt}function Ot(Ct){"@babel/helpers - typeof";return(Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It})(Ct)}Object.defineProperty(lt,"__esModule",{value:!0}),ut.d(lt,"HighchartsReact",function(){return Tt});var At=ut(1),Rt=ut.n(At),zt=typeof window<"u"?At.useLayoutEffect:At.useEffect,Tt=Object(At.memo)(Object(At.forwardRef)(function(Ct,It){var Dt=Object(At.useRef)(),kt=Object(At.useRef)(),qt=Object(At.useRef)(Ct.constructorType),Nt=Object(At.useRef)(Ct.highcharts);return zt(function(){function Yt(){var Jt=Ct.highcharts||(typeof window>"u"?"undefined":Ot(window))==="object"&&window.Highcharts,Qt=Ct.constructorType||"chart";Jt?Jt[Qt]?Ct.options?kt.current=Jt[Qt](Dt.current,Ct.options,Ct.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(kt.current){if(Ct.allowChartUpdate!==!1)if(Ct.constructorType!==qt.current||Ct.highcharts!==Nt.current)qt.current=Ct.constructorType,Nt.current=Ct.highcharts,Yt();else if(!Ct.immutable&&kt.current){var Kt;(Kt=kt.current).update.apply(Kt,[Ct.options].concat(pt(Ct.updateArgs||[!0,!0])))}else Yt()}else Yt()},[Ct.options,Ct.allowChartUpdate,Ct.updateArgs,Ct.containerProps,Ct.highcharts,Ct.constructorType]),zt(function(){return function(){kt.current&&(kt.current.destroy(),kt.current=null)}},[]),Object(At.useImperativeHandle)(It,function(){return{get chart(){return kt.current},container:Dt}},[]),Rt.a.createElement("div",dt({},Ct.containerProps,{ref:Dt}))}));lt.default=Tt},function(nt,lt){nt.exports=rt}])})})(highchartsReact_min);var highchartsReact_minExports=highchartsReact_min.exports;const HighchartsReact=getDefaultExportFromCjs$1(highchartsReact_minExports),sortFunctions={days:(et,tt)=>et.localeCompare(tt),weeks:(et,tt)=>parseInt(et.split("_")[1])-parseInt(tt.split("_")[1]),months:(et,tt)=>new Date(et).getTime()-new Date(tt).getTime()},getWeekNumber=et=>{const tt=new Date(et.getFullYear(),0,1);return Math.ceil(((et.getTime()-tt.getTime())/864e5+tt.getDay()+1)/7)},findParentById=(et,tt)=>{let rt=et;for(;rt!==null&&rt!==document.body;){if(rt.id===tt)return rt;rt=rt.parentElement}return null},shortenMonth=et=>{const tt=et.split(" ")[0],rt=et.split(" ")[1];return tt.substring(0,3)+" "+rt.substring(2,4)},OverviewChart=et=>{const{aggregatedData:tt,targetData:rt,yAxisSuffix:nt}=et,{overviewChartsLoaded:lt,isReloaded:ut,setOverviewChartsLoaded:dt}=reactExports.useContext(DashboardContext);return jsxRuntimeExports.jsx("div",{className:"overview-card-chart",children:jsxRuntimeExports.jsx(HighchartsReact,{highcharts:Highcharts$1,containerProps:{style:{height:"100%"}},options:{chart:{type:"line",backgroundColor:"#fff",spacing:[15,0,0,5],events:{load:function(){dt(!0);const pt=findParentById(this.container,"overview-chart-container"),ht=pt==null?void 0:pt.getBoundingClientRect().height,mt=lt||!ut?115:135;ht&&(this.setSize(void 0,Number((ht-mt).toFixed(0))),sessionStorage.removeItem("reloaded"))}}},exporting:{enabled:!1},title:{text:""},legend:{enabled:rt.length>0,align:"right",floating:!0,y:-25,verticalAlign:"top"},credits:{enabled:!1},xAxis:{categories:tt.map(pt=>shortenMonth(pt[0].toString())),tickmarkPlacement:"on"},yAxis:{title:{text:null},labels:{enabled:!0,formatter:function(){return`${this.value}${nt}`}}},tooltip:{enabled:!1},plotOptions:{series:{marker:{enabled:!1},states:{hover:{enabled:!1}},enableMouseTracking:!1}},series:[{data:tt.map(pt=>pt[1]),color:"#AAA1FD",name:"Actual",showInLegend:!1},{data:rt,color:"#FF969D",name:"Target"}]}})})},getDeterministicOffset=(et,tt,rt)=>{const nt=et.toString().split("").reduce((lt,ut)=>ut.charCodeAt(0)+((lt<<5)-lt),0);return Math.abs(nt)%(rt-tt+1)+tt},OverviewCard=et=>{const{filteredData:tt,previousPeriodData:rt,dateRange:nt,navToPage:lt}=reactExports.useContext(DashboardContext),{title:ut,page:dt,metricSuffix:pt="",metricRound:ht=0,targetType:mt,aggregateFunction:xt,metricFunction:Mt}=et,[vt,Ot]=reactExports.useState([]),[At,Rt]=reactExports.useState([]),[zt,Tt]=reactExports.useState(""),[Ct,It]=reactExports.useState(0),[Dt,kt]=reactExports.useState(""),qt=useTheme$1();return reactExports.useEffect(()=>{Ot(xt(tt,"months")),Tt(Mt(tt).toFixed(ht)+pt);const Nt=Mt(tt),Yt=Mt(rt),Kt=Math.abs(Nt-Yt)/Yt*100;It(Kt),kt(Nt>Yt?"more":"less")},[tt]),reactExports.useEffect(()=>{const Nt=vt.reduce((Yt,Kt)=>Yt+Kt[1],0)/vt.length;mt==="flat"?Rt(vt.map(Yt=>Nt)):mt==="track"&&Rt(vt.map(Yt=>getDeterministicOffset(Yt[1],Nt-5,Nt+5)))},[vt]),jsxRuntimeExports.jsxs("div",{className:"overview-card",id:"overview-chart-container",onClick:()=>lt(dt),children:[jsxRuntimeExports.jsxs("div",{className:"overview-card-metric-container",children:[jsxRuntimeExports.jsx(Typography,{className:"overview-card-title",children:ut}),nt!=="All time"&&jsxRuntimeExports.jsx(default_1$5,{style:{transform:`rotate(${Dt==="more"?"-":""}90deg)`}})]}),jsxRuntimeExports.jsx(Typography,{variant:"h5",sx:{lineHeight:1,marginBottom:"5px"},children:zt}),jsxRuntimeExports.jsx(Typography,{variant:"body2",color:qt.palette.text.secondary,sx:{marginBottom:"8px"},children:nt!=="All time"&&jsxRuntimeExports.jsxs("div",{children:[Ct.toFixed(ht),"% ",Dt," than previous"," ",nt.split("Past ")[1]]})}),jsxRuntimeExports.jsx(OverviewChart,{aggregatedData:vt,targetData:At,yAxisSuffix:pt})]})},OverviewDonutChart=et=>{const{aggregatedData:tt}=et,{overviewChartsLoaded:rt,isReloaded:nt,setOverviewChartsLoaded:lt}=reactExports.useContext(DashboardContext),ut=["Breast","Metastasis","Prostate","Colorectal","Neuro","Skin","Unspecified"],dt=new Set(tt.map(ht=>ht[0]));ut.forEach(ht=>{dt.has(ht)||tt.push([ht,0])});const pt=tt.sort((ht,mt)=>{const xt=ut.indexOf(ht[0]),Mt=ut.indexOf(mt[0]);return xt===-1?1:Mt===-1?-1:xt-Mt});return jsxRuntimeExports.jsx("div",{className:"overview-card-chart",children:jsxRuntimeExports.jsx(HighchartsReact,{highcharts:Highcharts$1,containerProps:{style:{height:"100%"}},options:{chart:{type:"pie",backgroundColor:"#fff",spacing:[-10,0,-5,-20],styledMode:!0,events:{load:function(){lt(!0);const ht=findParentById(this.container,"overview-chart-container"),mt=ht==null?void 0:ht.getBoundingClientRect().height,xt=rt||!nt?110:130;mt&&(this.setSize(void 0,Number((mt-xt).toFixed(0))),sessionStorage.removeItem("reloaded"))}}},exporting:{enabled:!1},title:{text:""},legend:{enabled:!0,navigation:{enabled:!1},layout:"horizontal",align:"right",verticalAlign:"right",itemStyle:{fontSize:"10px",width:"85px"},width:170,itemWidth:80,margin:0,padding:0,itemMarginTop:2,itemMarginBottom:0,x:20,y:10},credits:{enabled:!1},tooltip:{enabled:!1},plotOptions:{pie:{dataLabels:{enabled:!1},showInLegend:!0},series:{innerSize:"60%",marker:{enabled:!1},states:{hover:{enabled:!1}},enableMouseTracking:!1}},series:[{data:pt}]}})})},OverviewCardDonut=et=>{const{filteredData:tt,previousPeriodData:rt,dateRange:nt,navToPage:lt}=reactExports.useContext(DashboardContext),{title:ut,page:dt,metricSuffix:pt="",metricRound:ht=0,aggregateFunction:mt,metricFunction:xt}=et,[Mt,vt]=reactExports.useState([]),[Ot,At]=reactExports.useState(""),[Rt,zt]=reactExports.useState(0),[Tt,Ct]=reactExports.useState(""),It=useTheme$1();return reactExports.useEffect(()=>{vt(mt(tt,"diagnosis")),At(xt(tt).toFixed(ht)+pt);const Dt=xt(tt),kt=xt(rt),qt=Math.abs(Dt-kt)/kt*100;zt(qt),Ct(Dt>kt?"more":"less")},[tt]),jsxRuntimeExports.jsxs("div",{className:"overview-card",id:"overview-chart-container",onClick:()=>lt(dt),children:[jsxRuntimeExports.jsxs("div",{className:"overview-card-metric-container",children:[jsxRuntimeExports.jsx(Typography,{className:"overview-card-title",children:ut}),nt!=="All time"&&jsxRuntimeExports.jsx(default_1$5,{style:{transform:`rotate(${Tt==="more"?"-":""}90deg)`}})]}),jsxRuntimeExports.jsx(Typography,{variant:"h5",sx:{lineHeight:1,marginBottom:"5px"},children:Ot}),jsxRuntimeExports.jsx(Typography,{variant:"body2",color:It.palette.text.secondary,sx:{marginBottom:"8px"},children:nt!=="All time"&&jsxRuntimeExports.jsxs("div",{children:[Rt.toFixed(ht),"% ",Tt," than previous"," ",nt.split("Past ")[1]]})}),jsxRuntimeExports.jsx(OverviewDonutChart,{aggregatedData:Mt.slice(1)})]})},aggregateAverageFractions=(et,tt)=>{const rt=et.reduce((nt,{date:lt,fractions:ut,fraction_dose:dt})=>{const pt=new Date(lt),ht=tt==="days"?lt:tt==="weeks"?`week_${getWeekNumber(pt)}`:pt.toLocaleString("default",{month:"long",year:"numeric"});return nt[ht]||(nt[ht]={totalFractions:0,totalFractionDose:0,count:0}),nt[ht].totalFractions+=ut,nt[ht].count+=1,nt[ht].totalFractionDose+=dt,nt},{});return Object.keys(rt).sort(sortFunctions[tt]).map(nt=>[nt,rt[nt].totalFractions/rt[nt].count,rt[nt].totalFractionDose/rt[nt].count])},aggregateAverageSimToTreat=(et,tt)=>{const rt=et.reduce((nt,{date:lt,sim_to_treat:ut})=>{const dt=new Date(lt),pt=tt==="days"?lt:tt==="weeks"?`week_${getWeekNumber(dt)}`:dt.toLocaleString("default",{month:"long",year:"numeric"});return nt[pt]||(nt[pt]={sim_to_treat:0,count:0}),nt[pt].sim_to_treat+=ut,nt[pt].count+=1,nt},{});return Object.keys(rt).sort(sortFunctions[tt]).map(nt=>[nt,rt[nt].sim_to_treat/rt[nt].count,5])},aggregateStackedBarData=(et,tt,rt,nt,lt)=>{const ut=et.reduce((xt,{date:Mt,[tt]:vt})=>{const At=new Date(Mt).toLocaleString("default",{month:"long",year:"numeric"});return xt[At]||(xt[At]={date:At,total:0,extraTotal:0}),xt[At][vt]||(xt[At][vt]=0),xt[At][vt]+=1,xt[At].total+=1,(nt&&vt==="IMRT"||vt==="VMAT"||vt==="Stereotactic")&&(xt[At].extraTotal+=1),xt},{}),dt=Array.from(new Set(et.map(xt=>xt[tt]))),pt=lt?dt.sort((xt,Mt)=>lt.indexOf(xt)-lt.indexOf(Mt)):dt,ht=["Date",...pt.map(xt=>xt.charAt(0).toUpperCase()+xt.slice(1))];nt&&ht.push(nt);const mt=Object.keys(ut).sort(sortFunctions[rt]).map(xt=>{const Mt=[xt,...pt.map(vt=>ut[xt][vt]||0)];return nt&&Mt.push(ut[xt].extraTotal/ut[xt].total*100),Mt});return[ht,...mt]},aggregateTechniquePercentage=(et,tt)=>{const rt=["IMRT","VMAT","Stereotactic"],nt=et.reduce((lt,{date:ut,technique:dt})=>{const pt=new Date(ut),ht=tt==="days"?ut:tt==="weeks"?`week_${getWeekNumber(pt)}`:pt.toLocaleString("default",{month:"long",year:"numeric"});return lt[ht]||(lt[ht]={totalPlans:0,matchingTechniques:0}),lt[ht].totalPlans+=1,rt.includes(dt)&&(lt[ht].matchingTechniques+=1),lt},{});return Object.keys(nt).sort(sortFunctions[tt]).map(lt=>[lt,nt[lt].matchingTechniques/nt[lt].totalPlans*100])},aggregateAdherencePercentage=(et,tt)=>{const rt=et.reduce((nt,{date:lt,adherence:ut,fraction_dose:dt})=>{const pt=new Date(lt),ht=tt==="days"?lt:tt==="weeks"?`week_${getWeekNumber(pt)}`:pt.toLocaleString("default",{month:"long",year:"numeric"});return nt[ht]||(nt[ht]={totalRecords:0,adherentRecords:0,peerReviewRecords:0}),nt[ht].totalRecords+=1,ut===!0&&(nt[ht].adherentRecords+=1),dt>2.5&&(nt[ht].peerReviewRecords+=1),nt},{});return Object.keys(rt).sort(sortFunctions[tt]).map(nt=>[nt,rt[nt].adherentRecords/rt[nt].totalRecords*100,rt[nt].totalRecords-rt[nt].adherentRecords,rt[nt].peerReviewRecords])},aggregateAdherenceValues=(et,tt)=>{const rt=et.reduce((nt,{date:lt,adherence:ut,fraction_dose:dt})=>{const ht=new Date(lt).toLocaleString("default",{month:"long",year:"numeric"});return nt[ht]||(nt[ht]={totalRecords:0,adherentRecords:0,peerReviewRecords:0}),nt[ht].totalRecords+=1,ut===!0&&(nt[ht].adherentRecords+=1),dt>2.5&&(nt[ht].peerReviewRecords+=1),nt},{});return Object.keys(rt).sort(sortFunctions[tt]).map(nt=>[nt,rt[nt].adherentRecords,rt[nt].totalRecords-rt[nt].adherentRecords,rt[nt].peerReviewRecords])},aggregateAdherenceByField=(et,tt,rt)=>{const nt=et.reduce((dt,pt)=>{const ht=pt[tt];return dt[ht]||(dt[ht]={totalRecords:0,adherentRecords:0,nonAdherentRecords:0}),dt[ht].totalRecords+=1,pt.adherence===!0&&(dt[ht].adherentRecords+=1),pt.adherence===!1&&(dt[ht].nonAdherentRecords+=1),dt},{}),lt=Object.entries(nt).sort((dt,pt)=>pt[1].adherentRecords-dt[1].adherentRecords);return(rt?lt.slice(0,rt):lt).map(([dt,pt])=>[dt.charAt(0).toUpperCase()+dt.slice(1),pt.adherentRecords,pt.totalRecords-pt.adherentRecords])},aggregateTechniqueByField=(et,tt,rt,nt)=>{const lt=et.reduce((Mt,vt)=>{const Ot=vt[tt],At=vt.technique;return Mt[Ot]||(Mt[Ot]={}),Mt[Ot][At]||(Mt[Ot][At]=0),Mt[Ot][At]+=1,Mt},{}),ut=Array.from(new Set(Object.values(lt).flatMap(Mt=>Object.keys(Mt)))),dt=nt?ut.sort((Mt,vt)=>nt.indexOf(Mt)-nt.indexOf(vt)):ut,pt=[tt.charAt(0).toUpperCase()+tt.slice(1),...dt],ht=Object.entries(lt).sort((Mt,vt)=>Object.values(vt[1]).reduce((Ot,At)=>Ot+At,0)-Object.values(Mt[1]).reduce((Ot,At)=>Ot+At,0)),xt=(rt?ht.slice(0,rt):ht).map(([Mt,vt])=>{const Ot=[Mt.charAt(0).toUpperCase()+Mt.slice(1)];return dt.forEach(At=>{Ot.push(vt[At]||0)}),Ot});return[pt,...xt]},aggregateTotalReferrals=(et,tt)=>{const rt=et.reduce((nt,{date:lt})=>{const ut=new Date(lt),dt=tt==="days"?lt:tt==="weeks"?`week_${getWeekNumber(ut)}`:ut.toLocaleString("default",{month:"long",year:"numeric"});return nt[dt]||(nt[dt]=0),nt[dt]+=1,nt},{});return Object.keys(rt).sort(sortFunctions[tt]).map(nt=>[nt,rt[nt]])},aggregateTotalPlans=(et,tt)=>{const rt=et.reduce((nt,{date:lt,technique:ut,fractions:dt})=>{const pt=new Date(lt),ht=tt==="days"?lt:tt==="weeks"?`week_${getWeekNumber(pt)}`:pt.toLocaleString("default",{month:"long",year:"numeric"});return nt[ht]||(nt[ht]=0),nt[ht]||(nt[ht]={totalPlans:0,totalFractions:0}),nt[ht].totalFractions+=dt,ut!=="Unspecified"&&(nt[ht].totalPlans+=1),nt},{});return Object.keys(rt).sort(sortFunctions[tt]).map(nt=>[nt,rt[nt].totalPlans,rt[nt].totalFractions])},aggregateData=(et,tt,rt,nt,lt=1)=>{const ut=et.reduce((ht,mt)=>{const xt=mt[tt];return ht[xt]||(ht[xt]=0),ht[xt]+=1,ht},{}),dt=Object.keys(ut).sort((ht,mt)=>ut[mt]-ut[ht]),pt=rt?dt.slice(0,rt):dt;return[[tt.charAt(0).toUpperCase()+tt.slice(1),nt||"Count"],...pt.map(ht=>[ht.charAt(0).toUpperCase()+ht.slice(1),ut[ht]/lt])]},aggregatePhysicianFractions=(et,tt)=>{const rt=et.reduce((dt,{physician:pt,fractions:ht,fraction_dose:mt})=>(dt[pt]||(dt[pt]={totalFractions:0,totalFractionDose:0,count:0}),dt[pt].totalFractions+=ht,dt[pt].totalFractionDose+=mt,dt[pt].count+=1,dt),{}),lt=Object.entries(rt).map(([dt,pt])=>({physician:dt,avgFractions:pt.totalFractions/pt.count,avgFractionDose:pt.totalFractionDose/pt.count})).sort((dt,pt)=>pt.avgFractions-dt.avgFractions),ut=tt?lt.slice(0,tt):lt;return[[" ","Average fractions (#)","Average dose/fraction (Gy)"],...ut.map(({physician:dt,avgFractions:pt,avgFractionDose:ht})=>[dt,Number(pt.toFixed(1)),Number(ht.toFixed(1))])]},aggregateAverageDailyRecords=(et,tt)=>{const rt=lt=>{const ut=lt.getDay();return ut!==0&&ut!==6},nt=et.reduce((lt,{date:ut,adherence:dt})=>{const pt=new Date(ut);if(!rt(pt))return lt;const ht=tt==="days"?ut:tt==="weeks"?`week_${getWeekNumber(pt)}`:pt.toLocaleString("default",{month:"long",year:"numeric"});return lt[ht]||(lt[ht]={count:0,automationCount:0,weekdays:new Set}),lt[ht].count+=1,lt[ht].weekdays.add(ut),dt===!0&&(lt[ht].automationCount+=1),lt},{});return Object.keys(nt).sort(sortFunctions[tt]).map(lt=>[lt,nt[lt].count/nt[lt].weekdays.size,nt[lt].automationCount])},aggregateAverageDailyTreatmentsPerLinac=(et,tt)=>{const rt=lt=>{const ut=lt.getDay();return ut!==0&&ut!==6},nt=et.reduce((lt,{date:ut,fractions:dt})=>{const pt=new Date(ut);if(!rt(pt))return lt;const ht=tt==="days"?ut:tt==="weeks"?`week_${getWeekNumber(pt)}`:pt.toLocaleString("default",{month:"long",year:"numeric"});return lt[ht]||(lt[ht]={count:0,dailyTreatments:0,weekdays:new Set}),lt[ht].count+=1,lt[ht].weekdays.add(ut),lt[ht].dailyTreatments+=dt,lt},{});return Object.keys(nt).sort(sortFunctions[tt]).map(lt=>[lt,nt[lt].dailyTreatments/nt[lt].weekdays.size/4,nt[lt].dailyTreatments/nt[lt].weekdays.size/4-3])},calcAverageFractions=et=>et.length===0?0:et.reduce((rt,nt)=>rt+nt.fractions,0)/et.length,calcAverageSimToTreat=et=>et.length===0?0:et.reduce((rt,nt)=>rt+nt.sim_to_treat,0)/et.length,calcComplexTechnique=et=>{const tt=["IMRT","VMAT","Stereotactic"];return et.filter(lt=>tt.includes(lt.technique)).length/et.length*100},calcAdherencePercentage=et=>et.filter(nt=>nt.adherence===!0).length/et.length*100,calcTotalReferrals=et=>et.length,calcTotalDiagnosis=et=>et.filter(rt=>rt.diagnosis!=="Unspecified").length,calcTotalPlans=et=>et.filter(rt=>rt.technique!=="Unspecified").length,calcAverageDailyPlans=et=>{const tt=ut=>{const dt=ut.getDay();return dt!==0&&dt!==6},rt=new Set;let nt=0;et.forEach(({date:ut})=>{const dt=new Date(ut);tt(dt)&&(nt+=1,rt.add(ut))});const lt=rt.size;return lt>0?nt/lt:0},calcAverageDailyTreatmentsPerLinac=et=>{const tt=ut=>{const dt=ut.getDay();return dt!==0&&dt!==6},rt=et.reduce((ut,{date:dt,fractions:pt})=>{const ht=new Date(dt);return tt(ht)&&(ut.totalTreatments+=pt,ut.weekdays.add(dt)),ut},{totalTreatments:0,weekdays:new Set}),nt=rt.weekdays.size;return nt>0?rt.totalTreatments/nt/4:0},DashboardOverview=()=>{const{isLoading:et}=reactExports.useContext(DashboardContext),tt=useTheme$1();return jsxRuntimeExports.jsxs("div",{className:"dashboard-overview-container",children:[jsxRuntimeExports.jsx(DashboardHeader,{title:"Insights Dashboard"}),et?jsxRuntimeExports.jsx(LoadingSpinner,{loadingText:""}):jsxRuntimeExports.jsxs("div",{className:"overview-card-container",children:[jsxRuntimeExports.jsx(Typography,{className:"overview-title-separator",color:tt.palette.text.secondary,children:"Quality"}),jsxRuntimeExports.jsxs("div",{className:"overview-card-row-container",children:[jsxRuntimeExports.jsx(OverviewCard,{title:"Careplan adherence",aggregateFunction:aggregateAdherencePercentage,metricFunction:calcAdherencePercentage,page:"carepathway",metricSuffix:"%"}),jsxRuntimeExports.jsx(OverviewCard,{title:"IMRT/VMAT/Stereotactic plans",aggregateFunction:aggregateTechniquePercentage,metricFunction:calcComplexTechnique,page:"techniques",metricSuffix:"%"}),jsxRuntimeExports.jsx(OverviewCard,{title:"Average fractions",aggregateFunction:aggregateAverageFractions,metricFunction:calcAverageFractions,page:"fractions",metricRound:1})]}),jsxRuntimeExports.jsx(Typography,{className:"overview-title-separator",color:tt.palette.text.secondary,children:"Access"}),jsxRuntimeExports.jsxs("div",{className:"overview-card-row-container",children:[jsxRuntimeExports.jsx(OverviewCard,{title:"Total referrals",aggregateFunction:aggregateTotalReferrals,metricFunction:calcTotalReferrals,page:"referrers"}),jsxRuntimeExports.jsx(OverviewCardDonut,{title:"Total diagnosis",aggregateFunction:aggregateData,metricFunction:calcTotalDiagnosis,page:"diagnosis"}),jsxRuntimeExports.jsx(OverviewCard,{title:"Total plans",aggregateFunction:aggregateTotalPlans,metricFunction:calcTotalPlans,page:"activity"})]}),jsxRuntimeExports.jsx(Typography,{className:"overview-title-separator",color:tt.palette.text.secondary,children:"Efficiency"}),jsxRuntimeExports.jsxs("div",{className:"overview-card-row-container",children:[jsxRuntimeExports.jsx(OverviewCard,{title:"Average daily treatments per Linac",aggregateFunction:aggregateAverageDailyTreatmentsPerLinac,metricFunction:calcAverageDailyTreatmentsPerLinac,page:"machines",metricRound:1,targetType:"track"}),jsxRuntimeExports.jsx(OverviewCard,{title:"Average sim to treatment time (Days)",aggregateFunction:aggregateAverageSimToTreat,metricFunction:calcAverageSimToTreat,page:"wait-times",metricRound:1,targetType:"flat"}),jsxRuntimeExports.jsx(OverviewCard,{title:"Average daily plans",aggregateFunction:aggregateAverageDailyRecords,metricFunction:calcAverageDailyPlans,page:"productivity",metricRound:1})]})]})]})};var exporting$1={exports:{}};(function(et){(function(tt){et.exports?(tt.default=tt,et.exports=tt):tt(typeof Highcharts<"u"?Highcharts:void 0)})(function(tt){var rt=tt?tt._modules:{};function nt(lt,ut,dt,pt){lt.hasOwnProperty(ut)||(lt[ut]=pt.apply(null,dt),typeof CustomEvent=="function"&&tt.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:ut,module:lt[ut]}})))}nt(rt,"Core/Chart/ChartNavigationComposition.js",[],function(){var lt;return function(ut){ut.compose=function(pt){return pt.navigation||(pt.navigation=new dt(pt)),pt};class dt{constructor(ht){this.updates=[],this.chart=ht}addUpdate(ht){this.chart.navigation.updates.push(ht)}update(ht,mt){this.updates.forEach(xt=>{xt.call(this.chart,ht,mt)})}}ut.Additions=dt}(lt||(lt={})),lt}),nt(rt,"Extensions/Exporting/ExportingDefaults.js",[rt["Core/Globals.js"]],function(lt){let{isTouchDevice:ut}=lt;return{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadPDF","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:3,height:28,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:ut?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}}}),nt(rt,"Extensions/Exporting/ExportingSymbols.js",[],function(){var lt;return function(ut){let dt=[];function pt(mt,xt,Mt,vt){return[["M",mt,xt+2.5],["L",mt+Mt,xt+2.5],["M",mt,xt+vt/2+.5],["L",mt+Mt,xt+vt/2+.5],["M",mt,xt+vt-1.5],["L",mt+Mt,xt+vt-1.5]]}function ht(mt,xt,Mt,vt){let Ot=vt/3-2;return[].concat(this.circle(Mt-Ot,xt,Ot,Ot),this.circle(Mt-Ot,xt+Ot+4,Ot,Ot),this.circle(Mt-Ot,xt+2*(Ot+4),Ot,Ot))}ut.compose=function(mt){if(dt.indexOf(mt)===-1){dt.push(mt);let xt=mt.prototype.symbols;xt.menu=pt,xt.menuball=ht.bind(xt)}}}(lt||(lt={})),lt}),nt(rt,"Extensions/Exporting/Fullscreen.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt){let{composed:pt}=ut,{addEvent:ht,fireEvent:mt,pushUnique:xt}=dt;function Mt(){this.fullscreen=new vt(this)}class vt{static compose(At){xt(pt,"Fullscreen")&&ht(At,"beforeRender",Mt)}constructor(At){this.chart=At,this.isOpen=!1;let Rt=At.renderTo;!this.browserProps&&(typeof Rt.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:Rt.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:Rt.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:Rt.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let At=this,Rt=At.chart,zt=Rt.options.chart;mt(Rt,"fullscreenClose",null,function(){At.isOpen&&At.browserProps&&Rt.container.ownerDocument instanceof Document&&Rt.container.ownerDocument[At.browserProps.exitFullscreen](),At.unbindFullscreenEvent&&(At.unbindFullscreenEvent=At.unbindFullscreenEvent()),Rt.setSize(At.origWidth,At.origHeight,!1),At.origWidth=void 0,At.origHeight=void 0,zt.width=At.origWidthOption,zt.height=At.origHeightOption,At.origWidthOption=void 0,At.origHeightOption=void 0,At.isOpen=!1,At.setButtonText()})}open(){let At=this,Rt=At.chart,zt=Rt.options.chart;mt(Rt,"fullscreenOpen",null,function(){if(zt&&(At.origWidthOption=zt.width,At.origHeightOption=zt.height),At.origWidth=Rt.chartWidth,At.origHeight=Rt.chartHeight,At.browserProps){let Tt=ht(Rt.container.ownerDocument,At.browserProps.fullscreenChange,function(){At.isOpen?(At.isOpen=!1,At.close()):(Rt.setSize(null,null,!1),At.isOpen=!0,At.setButtonText())}),Ct=ht(Rt,"destroy",Tt);At.unbindFullscreenEvent=()=>{Tt(),Ct()};let It=Rt.renderTo[At.browserProps.requestFullscreen]();It&&It.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let At=this.chart,Rt=At.exportDivElements,zt=At.options.exporting,Tt=zt&&zt.buttons&&zt.buttons.contextButton.menuItems,Ct=At.options.lang;if(zt&&zt.menuItemDefinitions&&Ct&&Ct.exitFullscreen&&Ct.viewFullscreen&&Tt&&Rt){let It=Rt[Tt.indexOf("viewFullscreen")];It&&lt.setElementHTML(It,this.isOpen?Ct.exitFullscreen:zt.menuItemDefinitions.viewFullscreen.text||Ct.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}return vt}),nt(rt,"Core/HttpUtilities.js",[rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut){let{win:dt}=lt,{discardElement:pt,objectEach:ht}=ut,mt={ajax:function(xt){let Mt={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},vt=new XMLHttpRequest;function Ot(At,Rt){xt.error&&xt.error(At,Rt)}if(!xt.url)return!1;vt.open((xt.type||"get").toUpperCase(),xt.url,!0),xt.headers&&xt.headers["Content-Type"]||vt.setRequestHeader("Content-Type",Mt[xt.dataType||"json"]||Mt.text),ht(xt.headers,function(At,Rt){vt.setRequestHeader(Rt,At)}),xt.responseType&&(vt.responseType=xt.responseType),vt.onreadystatechange=function(){let At;if(vt.readyState===4){if(vt.status===200){if(xt.responseType!=="blob"&&(At=vt.responseText,xt.dataType==="json"))try{At=JSON.parse(At)}catch(Rt){if(Rt instanceof Error)return Ot(vt,Rt)}return xt.success&&xt.success(At,vt)}Ot(vt,vt.responseText)}},xt.data&&typeof xt.data!="string"&&(xt.data=JSON.stringify(xt.data)),vt.send(xt.data)},getJSON:function(xt,Mt){mt.ajax({url:xt,success:Mt,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(xt,Mt,vt){let Ot=new dt.FormData;ht(Mt,function(zt,Tt){Ot.append(Tt,zt)}),Ot.append("b64","true");let{filename:At,type:Rt}=Mt;return dt.fetch(xt,{method:"POST",body:Ot,...vt}).then(zt=>{zt.ok&&zt.text().then(Tt=>{let Ct=document.createElement("a");Ct.href=`data:${Rt};base64,${Tt}`,Ct.download=At,Ct.click(),pt(Ct)})})}};return mt}),nt(rt,"Extensions/Exporting/Exporting.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Chart/Chart.js"],rt["Core/Chart/ChartNavigationComposition.js"],rt["Core/Defaults.js"],rt["Extensions/Exporting/ExportingDefaults.js"],rt["Extensions/Exporting/ExportingSymbols.js"],rt["Extensions/Exporting/Fullscreen.js"],rt["Core/Globals.js"],rt["Core/HttpUtilities.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot){var At;let{defaultOptions:Rt}=pt,{doc:zt,SVG_NS:Tt,win:Ct}=Mt,{addEvent:It,css:Dt,createElement:kt,discardElement:qt,extend:Nt,find:Yt,fireEvent:Kt,isObject:Jt,merge:Qt,objectEach:Bt,pick:Ft,removeEvent:$t,uniqueKey:jt}=Ot;return function(Wt){let Ut,Vt=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],Ht=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"];Wt.inlineAllowlist=[];let Gt=["clipPath","defs","desc"];function Zt(Rr){let wr,qr,Hr=this,kr=Hr.renderer,$r=Qt(Hr.options.navigation.buttonOptions,Rr),yr=$r.onclick,Or=$r.menuItems,Dr=$r.symbolSize||12;if(Hr.btnCount||(Hr.btnCount=0),Hr.exportDivElements||(Hr.exportDivElements=[],Hr.exportSVGElements=[]),$r.enabled===!1||!$r.theme)return;let Fr=Hr.styledMode?{}:$r.theme;yr?qr=function(Gr){Gr&&Gr.stopPropagation(),yr.call(Hr,Gr)}:Or&&(qr=function(Gr){Gr&&Gr.stopPropagation(),Hr.contextMenu(Yr.menuClassName,Or,Yr.translateX||0,Yr.translateY||0,Yr.width||0,Yr.height||0,Yr),Yr.setState(2)}),$r.text&&$r.symbol?Fr.paddingLeft=Ft(Fr.paddingLeft,30):$r.text||Nt(Fr,{width:$r.width,height:$r.height,padding:0});let Yr=kr.button($r.text,0,0,qr,Fr,void 0,void 0,void 0,void 0,$r.useHTML).addClass(Rr.className).attr({title:Ft(Hr.options.lang[$r._titleKey||$r.titleKey],"")});Yr.menuClassName=Rr.menuClassName||"highcharts-menu-"+Hr.btnCount++,$r.symbol&&(wr=kr.symbol($r.symbol,Math.round(($r.symbolX||0)-Dr/2),Math.round(($r.symbolY||0)-Dr/2),Dr,Dr,{width:Dr,height:Dr}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(Yr),Hr.styledMode||wr.attr({stroke:$r.symbolStroke,fill:$r.symbolFill,"stroke-width":$r.symbolStrokeWidth||1})),Yr.add(Hr.exportingGroup).align(Nt($r,{width:Yr.width,x:Ft($r.x,Hr.buttonOffset)}),!0,"spacingBox"),Hr.buttonOffset+=((Yr.width||0)+$r.buttonSpacing)*($r.align==="right"?-1:1),Hr.exportSVGElements.push(Yr,wr)}function Xt(){if(!this.printReverseInfo)return;let{childNodes:Rr,origDisplay:wr,resetParams:qr}=this.printReverseInfo;this.moveContainers(this.renderTo),[].forEach.call(Rr,function(Hr,kr){Hr.nodeType===1&&(Hr.style.display=wr[kr]||"")}),this.isPrinting=!1,qr&&this.setSize.apply(this,qr),delete this.printReverseInfo,Ut=void 0,Kt(this,"afterPrint")}function er(){var Hr;let Rr=zt.body,wr=this.options.exporting.printMaxWidth,qr={childNodes:Rr.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,(Hr=this.pointer)==null||Hr.reset(void 0,0),Kt(this,"beforePrint"),wr&&this.chartWidth>wr&&(qr.resetParams=[this.options.chart.width,void 0,!1],this.setSize(wr,void 0,!1)),[].forEach.call(qr.childNodes,function(kr,$r){kr.nodeType===1&&(qr.origDisplay[$r]=kr.style.display,kr.style.display="none")}),this.moveContainers(Rr),this.printReverseInfo=qr}function nr(Rr){Rr.renderExporting(),It(Rr,"redraw",Rr.renderExporting),It(Rr,"destroy",Rr.destroyExport)}function or(Rr,wr,qr,Hr,kr,$r,yr){var cn,Qr;let Or=this,Dr=Or.options.navigation,Fr=Or.chartWidth,Yr=Or.chartHeight,Gr="cache-"+Rr,Jr=Math.max(kr,$r),jr,Zr=Or[Gr];Zr||(Or.exportContextMenu=Or[Gr]=Zr=kt("div",{className:Rr},{position:"absolute",zIndex:1e3,padding:Jr+"px",pointerEvents:"auto",...Or.renderer.style},((cn=Or.scrollablePlotArea)==null?void 0:cn.fixedDiv)||Or.container),jr=kt("ul",{className:"highcharts-menu"},Or.styledMode?{}:{listStyle:"none",margin:0,padding:0},Zr),Or.styledMode||Dt(jr,Nt({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},Dr.menuStyle)),Zr.hideMenu=function(){Dt(Zr,{display:"none"}),yr&&yr.setState(0),Or.openMenu=!1,Dt(Or.renderTo,{overflow:"hidden"}),Dt(Or.container,{overflow:"hidden"}),Ot.clearTimeout(Zr.hideTimer),Kt(Or,"exportMenuHidden")},Or.exportEvents.push(It(Zr,"mouseleave",function(){Zr.hideTimer=Ct.setTimeout(Zr.hideMenu,500)}),It(Zr,"mouseenter",function(){Ot.clearTimeout(Zr.hideTimer)}),It(zt,"mouseup",function(rn){var _r;(_r=Or.pointer)!=null&&_r.inClass(rn.target,Rr)||Zr.hideMenu()}),It(Zr,"click",function(){Or.openMenu&&Zr.hideMenu()})),wr.forEach(function(rn){if(typeof rn=="string"&&(rn=Or.options.exporting.menuItemDefinitions[rn]),Jt(rn,!0)){let _r;rn.separator?_r=kt("hr",void 0,void 0,jr):(rn.textKey==="viewData"&&Or.isDataTableVisible&&(rn.textKey="hideData"),_r=kt("li",{className:"highcharts-menu-item",onclick:function(ln){ln&&ln.stopPropagation(),Zr.hideMenu(),typeof rn!="string"&&rn.onclick&&rn.onclick.apply(Or,arguments)}},void 0,jr),lt.setElementHTML(_r,rn.text||Or.options.lang[rn.textKey]),Or.styledMode||(_r.onmouseover=function(){Dt(this,Dr.menuItemHoverStyle)},_r.onmouseout=function(){Dt(this,Dr.menuItemStyle)},Dt(_r,Nt({cursor:"pointer"},Dr.menuItemStyle||{})))),Or.exportDivElements.push(_r)}}),Or.exportDivElements.push(jr,Zr),Or.exportMenuWidth=Zr.offsetWidth,Or.exportMenuHeight=Zr.offsetHeight);let Xr={display:"block"};qr+(Or.exportMenuWidth||0)>Fr?Xr.right=Fr-qr-kr-Jr+"px":Xr.left=qr-Jr+"px",Hr+$r+(Or.exportMenuHeight||0)>Yr&&((Qr=yr.alignOptions)==null?void 0:Qr.verticalAlign)!=="top"?Xr.bottom=Yr-Hr-Jr+"px":Xr.top=Hr+$r-Jr+"px",Dt(Zr,Xr),Dt(Or.renderTo,{overflow:""}),Dt(Or.container,{overflow:""}),Or.openMenu=!0,Kt(Or,"exportMenuShown")}function rr(Rr){let wr,qr=Rr?Rr.target:this,Hr=qr.exportSVGElements,kr=qr.exportDivElements,$r=qr.exportEvents;Hr&&(Hr.forEach((yr,Or)=>{yr&&(yr.onclick=yr.ontouchstart=null,qr[wr="cache-"+yr.menuClassName]&&delete qr[wr],Hr[Or]=yr.destroy())}),Hr.length=0),qr.exportingGroup&&(qr.exportingGroup.destroy(),delete qr.exportingGroup),kr&&(kr.forEach(function(yr,Or){yr&&(Ot.clearTimeout(yr.hideTimer),$t(yr,"mouseleave"),kr[Or]=yr.onmouseout=yr.onmouseover=yr.ontouchstart=yr.onclick=null,qt(yr))}),kr.length=0),$r&&($r.forEach(function(yr){yr()}),$r.length=0)}function cr(Rr,wr){let qr=this.getSVGForExport(Rr,wr);Rr=Qt(this.options.exporting,Rr),vt.post(Rr.url,{filename:Rr.filename?Rr.filename.replace(/\//g,"-"):this.getFilename(),type:Rr.type,width:Rr.width,scale:Rr.scale,svg:qr},Rr.fetchOptions)}function ir(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function dr(){let Rr=this.userOptions.title&&this.userOptions.title.text,wr=this.options.exporting.filename;return wr?wr.replace(/\//g,"-"):(typeof Rr=="string"&&(wr=Rr.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!wr||wr.length<5)&&(wr="chart"),wr)}function gr(Rr){let wr,qr,Hr=Qt(this.options,Rr);Hr.plotOptions=Qt(this.userOptions.plotOptions,Rr&&Rr.plotOptions),Hr.time=Qt(this.userOptions.time,Rr&&Rr.time);let kr=kt("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},zt.body),$r=this.renderTo.style.width,yr=this.renderTo.style.height,Or=Hr.exporting.sourceWidth||Hr.chart.width||/px$/.test($r)&&parseInt($r,10)||(Hr.isGantt?800:600),Dr=Hr.exporting.sourceHeight||Hr.chart.height||/px$/.test(yr)&&parseInt(yr,10)||400;Nt(Hr.chart,{animation:!1,renderTo:kr,forExport:!0,renderer:"SVGRenderer",width:Or,height:Dr}),Hr.exporting.enabled=!1,delete Hr.data,Hr.series=[],this.series.forEach(function(Gr){(qr=Qt(Gr.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:Gr.visible})).isInternal||Hr.series.push(qr)});let Fr={};this.axes.forEach(function(Gr){Gr.userOptions.internalKey||(Gr.userOptions.internalKey=jt()),Gr.options.isInternal||(Fr[Gr.coll]||(Fr[Gr.coll]=!0,Hr[Gr.coll]=[]),Hr[Gr.coll].push(Qt(Gr.userOptions,{visible:Gr.visible})))}),Hr.colorAxis=this.userOptions.colorAxis;let Yr=new this.constructor(Hr,this.callback);return Rr&&["xAxis","yAxis","series"].forEach(function(Gr){let Jr={};Rr[Gr]&&(Jr[Gr]=Rr[Gr],Yr.update(Jr))}),this.axes.forEach(function(Gr){let Jr=Yt(Yr.axes,function(cn){return cn.options.internalKey===Gr.userOptions.internalKey}),jr=Gr.getExtremes(),Zr=jr.userMin,Xr=jr.userMax;Jr&&(Zr!==void 0&&Zr!==Jr.min||Xr!==void 0&&Xr!==Jr.max)&&Jr.setExtremes(Zr,Xr,!0,!1)}),wr=Yr.getChartHTML(),Kt(this,"getSVG",{chartCopy:Yr}),wr=this.sanitizeSVG(wr,Hr),Hr=null,Yr.destroy(),qt(kr),wr}function br(Rr,wr){let qr=this.options.exporting;return this.getSVG(Qt({chart:{borderRadius:0}},qr.chartOptions,wr,{exporting:{sourceWidth:Rr&&Rr.sourceWidth||qr.sourceWidth,sourceHeight:Rr&&Rr.sourceHeight||qr.sourceHeight}}))}function ar(){let Rr,wr=Wt.inlineAllowlist,qr={},Hr=zt.createElement("iframe");Dt(Hr,{width:"1px",height:"1px",visibility:"hidden"}),zt.body.appendChild(Hr);let kr=Hr.contentWindow&&Hr.contentWindow.document;kr&&kr.body.appendChild(kr.createElementNS(Tt,"svg")),function $r(yr){let Or,Dr,Fr,Yr,Gr,Jr,jr={};if(kr&&yr.nodeType===1&&Gt.indexOf(yr.nodeName)===-1){if(Or=Ct.getComputedStyle(yr,null),Dr=yr.nodeName==="svg"?{}:Ct.getComputedStyle(yr.parentNode,null),!qr[yr.nodeName]){Rr=kr.getElementsByTagName("svg")[0],Fr=kr.createElementNS(yr.namespaceURI,yr.nodeName),Rr.appendChild(Fr);let Zr=Ct.getComputedStyle(Fr,null),Xr={};for(let cn in Zr)cn.length<1e3&&typeof Zr[cn]=="string"&&!/^\d+$/.test(cn)&&(Xr[cn]=Zr[cn]);qr[yr.nodeName]=Xr,yr.nodeName==="text"&&delete qr.text.fill,Rr.removeChild(Fr)}for(let Zr in Or)(Mt.isFirefox||Mt.isMS||Mt.isSafari||Object.hasOwnProperty.call(Or,Zr))&&function(Xr,cn){if(Yr=Gr=!1,wr.length){for(Jr=wr.length;Jr--&&!Gr;)Gr=wr[Jr].test(cn);Yr=!Gr}for(cn==="transform"&&Xr==="none"&&(Yr=!0),Jr=Vt.length;Jr--&&!Yr;){if(cn.length>1e3)throw Error("Input too long");Yr=Vt[Jr].test(cn)||typeof Xr=="function"}!Yr&&(Dr[cn]!==Xr||yr.nodeName==="svg")&&qr[yr.nodeName][cn]!==Xr&&(Ht&&Ht.indexOf(cn)===-1?jr[cn]=Xr:Xr&&yr.setAttribute(cn.replace(/[A-Z]/g,function(Qr){return"-"+Qr.toLowerCase()}),Xr))}(Or[Zr],Zr);if(Dt(yr,jr),yr.nodeName==="svg"&&yr.setAttribute("stroke-width","1px"),yr.nodeName==="text")return;[].forEach.call(yr.children||yr.childNodes,$r)}}(this.container.querySelector("svg")),Rr.parentNode.removeChild(Rr),Hr.parentNode.removeChild(Hr)}function ur(Rr){let{scrollablePlotArea:wr}=this;(wr?[wr.fixedDiv,wr.scrollingContainer]:[this.container]).forEach(function(qr){Rr.appendChild(qr)})}function xr(){let Rr=this,wr=(qr,Hr,kr)=>{Rr.isDirtyExporting=!0,Qt(!0,Rr.options[qr],Hr),Ft(kr,!0)&&Rr.redraw()};Rr.exporting={update:function(qr,Hr){wr("exporting",qr,Hr)}},dt.compose(Rr).navigation.addUpdate((qr,Hr)=>{wr("navigation",qr,Hr)})}function Mr(){let Rr=this;Rr.isPrinting||(Ut=Rr,Mt.isSafari||Rr.beforePrint(),setTimeout(()=>{Ct.focus(),Ct.print(),Mt.isSafari||setTimeout(()=>{Rr.afterPrint()},1e3)},1))}function Ar(){let Rr=this,wr=Rr.options.exporting,qr=wr.buttons,Hr=Rr.isDirtyExporting||!Rr.exportSVGElements;Rr.buttonOffset=0,Rr.isDirtyExporting&&Rr.destroyExport(),Hr&&wr.enabled!==!1&&(Rr.exportEvents=[],Rr.exportingGroup=Rr.exportingGroup||Rr.renderer.g("exporting-group").attr({zIndex:3}).add(),Bt(qr,function(kr){Rr.addButton(kr)}),Rr.isDirtyExporting=!1)}function Ir(Rr,wr){let qr=Rr.indexOf("</svg>")+6,Hr=Rr.substr(qr);return Rr=Rr.substr(0,qr),wr&&wr.exporting&&wr.exporting.allowHTML&&Hr&&(Hr='<foreignObject x="0" y="0" width="'+wr.chart.width+'" height="'+wr.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+Hr.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"</body></foreignObject>",Rr=Rr.replace("</svg>",Hr+"</svg>")),Rr=Rr.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|&quot;)(.*?)("|&quot;)\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/\n+/g," ").replace(/(fill|stroke)="rgba\(([ \d]+,[ \d]+,[ \d]+),([ \d\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g," ").replace(/&shy;/g,"­")}Wt.compose=function(Rr,wr){mt.compose(wr),xt.compose(Rr);let qr=Rr.prototype;qr.exportChart||(qr.afterPrint=Xt,qr.exportChart=cr,qr.inlineStyles=ar,qr.print=Mr,qr.sanitizeSVG=Ir,qr.getChartHTML=ir,qr.getSVG=gr,qr.getSVGForExport=br,qr.getFilename=dr,qr.moveContainers=ur,qr.beforePrint=er,qr.contextMenu=or,qr.addButton=Zt,qr.destroyExport=rr,qr.renderExporting=Ar,qr.callbacks.push(nr),It(Rr,"init",xr),Mt.isSafari&&Ct.matchMedia("print").addListener(function(Hr){Ut&&(Hr.matches?Ut.beforePrint():Ut.afterPrint())}),Rt.exporting=Qt(ht.exporting,Rt.exporting),Rt.lang=Qt(ht.lang,Rt.lang),Rt.navigation=Qt(ht.navigation,Rt.navigation))}}(At||(At={})),At}),nt(rt,"masters/modules/exporting.src.js",[rt["Core/Globals.js"],rt["Extensions/Exporting/Exporting.js"],rt["Core/HttpUtilities.js"]],function(lt,ut,dt){return lt.HttpUtilities=lt.HttpUtilities||dt,lt.ajax=lt.HttpUtilities.ajax,lt.getJSON=lt.HttpUtilities.getJSON,lt.post=lt.HttpUtilities.post,ut.compose(lt.Chart,lt.Renderer),lt})})})(exporting$1);var exportingExports=exporting$1.exports;const exporting=getDefaultExportFromCjs$1(exportingExports);var exportData$1={exports:{}};(function(et){(function(tt){et.exports?(tt.default=tt,et.exports=tt):tt(typeof Highcharts<"u"?Highcharts:void 0)})(function(tt){var rt=tt?tt._modules:{};function nt(lt,ut,dt,pt){lt.hasOwnProperty(ut)||(lt[ut]=pt.apply(null,dt),typeof CustomEvent=="function"&&tt.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:ut,module:lt[ut]}})))}nt(rt,"Extensions/DownloadURL.js",[rt["Core/Globals.js"]],function(lt){let{isSafari:ut,win:dt,win:{document:pt}}=lt,ht=dt.URL||dt.webkitURL||dt;function mt(xt){let Mt=xt.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(Mt&&Mt.length>3&&dt.atob&&dt.ArrayBuffer&&dt.Uint8Array&&dt.Blob&&ht.createObjectURL){let vt=dt.atob(Mt[3]),Ot=new dt.ArrayBuffer(vt.length),At=new dt.Uint8Array(Ot);for(let Rt=0;Rt<At.length;++Rt)At[Rt]=vt.charCodeAt(Rt);return ht.createObjectURL(new dt.Blob([At],{type:Mt[1]}))}}return{dataURLtoBlob:mt,downloadURL:function(xt,Mt){let vt=dt.navigator,Ot=pt.createElement("a");if(typeof xt!="string"&&!(xt instanceof String)&&vt.msSaveOrOpenBlob){vt.msSaveOrOpenBlob(xt,Mt);return}if(xt=""+xt,vt.userAgent.length>1e3)throw Error("Input too long");let At=/Edge\/\d+/.test(vt.userAgent);if((ut&&typeof xt=="string"&&xt.indexOf("data:application/pdf")===0||At||xt.length>2e6)&&!(xt=mt(xt)||""))throw Error("Failed to convert to blob");if(Ot.download!==void 0)Ot.href=xt,Ot.download=Mt,pt.body.appendChild(Ot),Ot.click(),pt.body.removeChild(Ot);else try{if(!dt.open(xt,"chart"))throw Error("Failed to open window")}catch{dt.location.href=xt}}}}),nt(rt,"Extensions/ExportData/ExportDataDefaults.js",[],function(){return{exporting:{csv:{annotations:{itemDelimiter:"; ",join:!1},columnHeaderFormatter:null,dateFormat:"%Y-%m-%d %H:%M:%S",decimalPoint:null,itemDelimiter:null,lineDelimiter:`
`},showTable:!1,useMultiLevelHeaders:!0,useRowspanHeaders:!0,showExportInProgress:!0},lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",exportData:{annotationHeader:"Annotations",categoryHeader:"Category",categoryDatetimeHeader:"DateTime"},viewData:"View data table",hideData:"Hide data table",exportInProgress:"Exporting..."}}}),nt(rt,"Extensions/ExportData/ExportData.js",[rt["Core/Renderer/HTML/AST.js"],rt["Core/Defaults.js"],rt["Extensions/DownloadURL.js"],rt["Extensions/ExportData/ExportDataDefaults.js"],rt["Core/Globals.js"],rt["Core/Utilities.js"]],function(lt,ut,dt,pt,ht,mt){let{getOptions:xt,setOptions:Mt}=ut,{downloadURL:vt}=dt,{doc:Ot,win:At}=ht,{addEvent:Rt,defined:zt,extend:Tt,find:Ct,fireEvent:It,isNumber:Dt,pick:kt}=mt;function qt(Gt){var er;let Zt=!!((er=this.options.exporting)!=null&&er.showExportInProgress),Xt=At.requestAnimationFrame||setTimeout;Xt(()=>{Zt&&this.showLoading(this.options.lang.exportInProgress),Xt(()=>{try{Gt.call(this)}finally{Zt&&this.hideLoading()}})})}function Nt(){qt.call(this,()=>{let Gt=this.getCSV(!0);vt(Wt(Gt,"text/csv")||"data:text/csv,\uFEFF"+encodeURIComponent(Gt),this.getFilename()+".csv")})}function Yt(){qt.call(this,()=>{let Gt='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}</style><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>'+this.getTable(!0)+"</body></html>";vt(Wt(Gt,"application/vnd.ms-excel")||"data:application/vnd.ms-excel;base64,"+At.btoa(unescape(encodeURIComponent(Gt))),this.getFilename()+".xls")})}function Kt(Gt){let Zt="",Xt=this.getDataRows(),er=this.options.exporting.csv,nr=kt(er.decimalPoint,er.itemDelimiter!==","&&Gt?1.1.toLocaleString()[1]:"."),or=kt(er.itemDelimiter,nr===","?";":","),rr=er.lineDelimiter;return Xt.forEach((cr,ir)=>{let dr="",gr=cr.length;for(;gr--;)typeof(dr=cr[gr])=="string"&&(dr=`"${dr}"`),typeof dr=="number"&&nr!=="."&&(dr=dr.toString().replace(".",nr)),cr[gr]=dr;cr.length=Xt.length?Xt[0].length:0,Zt+=cr.join(or),ir<Xt.length-1&&(Zt+=rr)}),Zt}function Jt(Gt){let Zt,Xt,er=this.hasParallelCoordinates,nr=this.time,or=this.options.exporting&&this.options.exporting.csv||{},rr=this.xAxis,cr={},ir=[],dr=[],gr=[],br=this.options.lang.exportData,ar=br.categoryHeader,ur=br.categoryDatetimeHeader,xr=function(yr,Or,Dr){if(or.columnHeaderFormatter){let Fr=or.columnHeaderFormatter(yr,Or,Dr);if(Fr!==!1)return Fr}return yr?yr.bindAxes?Gt?{columnTitle:Dr>1?Or:yr.name,topLevelColumnTitle:yr.name}:yr.name+(Dr>1?" ("+Or+")":""):yr.options.title&&yr.options.title.text||(yr.dateTime?ur:ar):ar},Mr=function(yr,Or,Dr){let Fr={},Yr={};return Or.forEach(function(Gr){let Jr=(yr.keyToAxis&&yr.keyToAxis[Gr]||Gr)+"Axis",jr=Dt(Dr)?yr.chart[Jr][Dr]:yr[Jr];Fr[Gr]=jr&&jr.categories||[],Yr[Gr]=jr&&jr.dateTime}),{categoryMap:Fr,dateTimeValueAxisMap:Yr}},Ar=function(yr,Or){let Dr=yr.pointArrayMap||["y"];return yr.data.some(Fr=>Fr.y!==void 0&&Fr.name)&&Or&&!Or.categories&&yr.exportKey!=="name"?["x",...Dr]:Dr},Ir=[],Rr,wr,qr,Hr=0,kr,$r;for(kr in this.series.forEach(function(yr){let Or=yr.options.keys,Dr=yr.xAxis,Fr=Or||Ar(yr,Dr),Yr=Fr.length,Gr=!yr.requireSorting&&{},Jr=rr.indexOf(Dr),jr=Mr(yr,Fr),Zr,Xr;if(yr.options.includeInDataExport!==!1&&!yr.options.isInternal&&yr.visible!==!1){for(Ct(Ir,function(cn){return cn[0]===Jr})||Ir.push([Jr,Hr]),Xr=0;Xr<Yr;)qr=xr(yr,Fr[Xr],Fr.length),gr.push(qr.columnTitle||qr),Gt&&dr.push(qr.topLevelColumnTitle||qr),Xr++;Zr={chart:yr.chart,autoIncrement:yr.autoIncrement,options:yr.options,pointArrayMap:yr.pointArrayMap,index:yr.index},yr.options.data.forEach(function(cn,Qr){let rn,_r,ln,vn={series:Zr};er&&(jr=Mr(yr,Fr,Qr)),yr.pointClass.prototype.applyOptions.apply(vn,[cn]);let Cr=yr.data[Qr]&&yr.data[Qr].name;if(rn=(vn.x??"")+","+Cr,Xr=0,(!Dr||yr.exportKey==="name"||!er&&Dr&&Dr.hasNames&&Cr)&&(rn=Cr),Gr&&(Gr[rn]&&(rn+="|"+Qr),Gr[rn]=!0),cr[rn]){let gn=`${rn},${cr[rn].pointers[yr.index]}`,xn=rn;cr[rn].pointers[yr.index]&&(cr[gn]||(cr[gn]=[],cr[gn].xValues=[],cr[gn].pointers=[]),rn=gn),cr[xn].pointers[yr.index]+=1}else{cr[rn]=[],cr[rn].xValues=[];let gn=[];for(let xn=0;xn<yr.chart.series.length;xn++)gn[xn]=0;cr[rn].pointers=gn,cr[rn].pointers[yr.index]=1}for(cr[rn].x=vn.x,cr[rn].name=Cr,cr[rn].xValues[Jr]=vn.x;Xr<Yr;)ln=vn[_r=Fr[Xr]],cr[rn][Hr+Xr]=kt(jr.categoryMap[_r][ln],jr.dateTimeValueAxisMap[_r]?nr.dateFormat(or.dateFormat,ln):null,ln),Xr++}),Hr+=Xr}}),cr)Object.hasOwnProperty.call(cr,kr)&&ir.push(cr[kr]);for(wr=Gt?[dr,gr]:[gr],Hr=Ir.length;Hr--;)Zt=Ir[Hr][0],Xt=Ir[Hr][1],Rr=rr[Zt],ir.sort(function(yr,Or){return yr.xValues[Zt]-Or.xValues[Zt]}),$r=xr(Rr),wr[0].splice(Xt,0,$r),Gt&&wr[1]&&wr[1].splice(Xt,0,$r),ir.forEach(function(yr){let Or=yr.name;Rr&&!zt(Or)&&(Rr.dateTime?(yr.x instanceof Date&&(yr.x=yr.x.getTime()),Or=nr.dateFormat(or.dateFormat,yr.x)):Or=Rr.categories?kt(Rr.names[yr.x],Rr.categories[yr.x],yr.x):yr.x),yr.splice(Xt,0,Or)});return It(this,"exportData",{dataRows:wr=wr.concat(ir)}),wr}function Qt(Gt){let Zt=Xt=>{if(!Xt.tagName||Xt.tagName==="#text")return Xt.textContent||"";let er=Xt.attributes,nr=`<${Xt.tagName}`;return er&&Object.keys(er).forEach(or=>{let rr=er[or];nr+=` ${or}="${rr}"`}),nr+=">"+(Xt.textContent||""),(Xt.children||[]).forEach(or=>{nr+=Zt(or)}),nr+=`</${Xt.tagName}>`};return Zt(this.getTableAST(Gt))}function Bt(Gt){let Zt=0,Xt=[],er=this.options,nr=Gt?1.1.toLocaleString()[1]:".",or=kt(er.exporting.useMultiLevelHeaders,!0),rr=this.getDataRows(or),cr=or?rr.shift():null,ir=rr.shift(),dr=function(ur,xr){let Mr=ur.length;if(xr.length!==Mr)return!1;for(;Mr--;)if(ur[Mr]!==xr[Mr])return!1;return!0},gr=function(ur,xr,Mr,Ar){let Ir=kt(Ar,""),Rr="highcharts-text"+(xr?" "+xr:"");return typeof Ir=="number"?(Ir=Ir.toString(),nr===","&&(Ir=Ir.replace(".",nr)),Rr="highcharts-number"):Ar||(Rr="highcharts-empty"),{tagName:ur,attributes:Mr=Tt({class:Rr},Mr),textContent:Ir}};er.exporting.tableCaption!==!1&&Xt.push({tagName:"caption",attributes:{class:"highcharts-table-caption"},textContent:kt(er.exporting.tableCaption,er.title.text?er.title.text:"Chart")});for(let ur=0,xr=rr.length;ur<xr;++ur)rr[ur].length>Zt&&(Zt=rr[ur].length);Xt.push(function(ur,xr,Mr){let Ar=[],Ir=0,Rr=Mr||xr&&xr.length,wr,qr=0,Hr;if(or&&ur&&xr&&!dr(ur,xr)){let kr=[];for(;Ir<Rr;++Ir)if((wr=ur[Ir])===ur[Ir+1])++qr;else if(qr)kr.push(gr("th","highcharts-table-topheading",{scope:"col",colspan:qr+1},wr)),qr=0;else{wr===xr[Ir]?er.exporting.useRowspanHeaders?(Hr=2,delete xr[Ir]):(Hr=1,xr[Ir]=""):Hr=1;let $r=gr("th","highcharts-table-topheading",{scope:"col"},wr);Hr>1&&$r.attributes&&($r.attributes.valign="top",$r.attributes.rowspan=Hr),kr.push($r)}Ar.push({tagName:"tr",children:kr})}if(xr){let kr=[];for(Ir=0,Rr=xr.length;Ir<Rr;++Ir)xr[Ir]!==void 0&&kr.push(gr("th",null,{scope:"col"},xr[Ir]));Ar.push({tagName:"tr",children:kr})}return{tagName:"thead",children:Ar}}(cr,ir,Math.max(Zt,ir.length)));let br=[];rr.forEach(function(ur){let xr=[];for(let Mr=0;Mr<Zt;Mr++)xr.push(gr(Mr?"td":"th",null,Mr?{}:{scope:"row"},ur[Mr]));br.push({tagName:"tr",children:xr})}),Xt.push({tagName:"tbody",children:br});let ar={tree:{tagName:"table",id:`highcharts-data-table-${this.index}`,children:Xt}};return It(this,"aftergetTableAST",ar),ar.tree}function Ft(){this.toggleDataTable(!1)}function $t(Gt){let Zt=(Gt=kt(Gt,!this.isDataTableVisible))&&!this.dataTableDiv;if(Zt&&(this.dataTableDiv=Ot.createElement("div"),this.dataTableDiv.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(this.dataTableDiv,this.renderTo.nextSibling)),this.dataTableDiv){let rr=this.dataTableDiv.style,cr=rr.display;rr.display=Gt?"block":"none",Gt?(this.dataTableDiv.innerHTML=lt.emptyHTML,new lt([this.getTableAST()]).addToDOM(this.dataTableDiv),It(this,"afterViewData",{element:this.dataTableDiv,wasHidden:Zt||cr!==rr.display})):It(this,"afterHideData")}this.isDataTableVisible=Gt;let Xt=this.exportDivElements,er=this.options.exporting,nr=er&&er.buttons&&er.buttons.contextButton.menuItems,or=this.options.lang;if(er&&er.menuItemDefinitions&&or&&or.viewData&&or.hideData&&nr&&Xt){let rr=Xt[nr.indexOf("viewData")];rr&&lt.setElementHTML(rr,this.isDataTableVisible?or.hideData:or.viewData)}}function jt(){this.toggleDataTable(!0)}function Wt(Gt,Zt){let Xt=At.navigator,er=At.URL||At.webkitURL||At;try{if(Xt.msSaveOrOpenBlob&&At.MSBlobBuilder){let nr=new At.MSBlobBuilder;return nr.append(Gt),nr.getBlob("image/svg+xml")}return er.createObjectURL(new At.Blob(["\uFEFF"+Gt],{type:Zt}))}catch{}}function Ut(){let Gt=this,Zt=Gt.dataTableDiv,Xt=(nr,or)=>nr.children[or].textContent,er=(nr,or)=>(rr,cr)=>{let ir,dr;return ir=Xt(or?rr:cr,nr),dr=Xt(or?cr:rr,nr),ir===""||dr===""||isNaN(ir)||isNaN(dr)?ir.toString().localeCompare(dr):ir-dr};if(Zt&&Gt.options.exporting&&Gt.options.exporting.allowTableSorting){let nr=Zt.querySelector("thead tr");nr&&nr.childNodes.forEach(or=>{let rr=or.closest("table");or.addEventListener("click",function(){let cr=[...Zt.querySelectorAll("tr:not(thead tr)")],ir=[...or.parentNode.children];cr.sort(er(ir.indexOf(or),Gt.ascendingOrderInTable=!Gt.ascendingOrderInTable)).forEach(dr=>{rr.appendChild(dr)}),ir.forEach(dr=>{["highcharts-sort-ascending","highcharts-sort-descending"].forEach(gr=>{dr.classList.contains(gr)&&dr.classList.remove(gr)})}),or.classList.add(Gt.ascendingOrderInTable?"highcharts-sort-ascending":"highcharts-sort-descending")})})}}function Vt(){this.options&&this.options.exporting&&this.options.exporting.showTable&&!this.options.chart.forExport&&this.viewData()}function Ht(){var Gt;(Gt=this.dataTableDiv)==null||Gt.remove()}return{compose:function(Gt,Zt){let Xt=Gt.prototype;if(!Xt.getCSV){let er=xt().exporting;Rt(Gt,"afterViewData",Ut),Rt(Gt,"render",Vt),Rt(Gt,"destroy",Ht),Xt.downloadCSV=Nt,Xt.downloadXLS=Yt,Xt.getCSV=Kt,Xt.getDataRows=Jt,Xt.getTable=Qt,Xt.getTableAST=Bt,Xt.hideData=Ft,Xt.toggleDataTable=$t,Xt.viewData=jt,er&&(Tt(er.menuItemDefinitions,{downloadCSV:{textKey:"downloadCSV",onclick:function(){this.downloadCSV()}},downloadXLS:{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},viewData:{textKey:"viewData",onclick:function(){qt.call(this,this.toggleDataTable)}}}),er.buttons&&er.buttons.contextButton.menuItems&&er.buttons.contextButton.menuItems.push("separator","downloadCSV","downloadXLS","viewData")),Mt(pt);let{arearange:nr,gantt:or,map:rr,mapbubble:cr,treemap:ir,xrange:dr}=Zt.types;nr&&(nr.prototype.keyToAxis={low:"y",high:"y"}),or&&(or.prototype.exportKey="name",or.prototype.keyToAxis={start:"x",end:"x"}),rr&&(rr.prototype.exportKey="name"),cr&&(cr.prototype.exportKey="name"),ir&&(ir.prototype.exportKey="name"),dr&&(dr.prototype.keyToAxis={x2:"x"})}}}}),nt(rt,"masters/modules/export-data.src.js",[rt["Core/Globals.js"],rt["Extensions/DownloadURL.js"],rt["Extensions/ExportData/ExportData.js"]],function(lt,ut,dt){return lt.dataURLtoBlob=lt.dataURLtoBlob||ut.dataURLtoBlob,lt.downloadURL=lt.downloadURL||ut.downloadURL,dt.compose(lt.Chart,lt.Series),lt})})})(exportData$1);var exportDataExports=exportData$1.exports;const exportData=getDefaultExportFromCjs$1(exportDataExports),CHART_SIZE_OFFSET=580,chartSpacingConfig=[30,20,10,20],syncConfig={visibility:!0,highlight:!0,extremes:!0},creditsConfig={enabled:!1},exportingConfig={buttons:{contextButton:{menuItems:["downloadCSV","downloadXLS"],y:-20,x:5,symbol:"download",symbolSize:24}}},subExportingConfig={buttons:{contextButton:{menuItems:["downloadCSV","downloadXLS"],x:110,y:-7,symbol:"download",symbolSize:24}}},handlePointClick=(et,tt)=>{tt(et.name,et.index)},setHeight=et=>{const tt=findParentById(et.container,"ROContainer"),rt=tt==null?void 0:tt.clientHeight;rt&&et.setSize(void 0,Number((rt-CHART_SIZE_OFFSET).toFixed(0)))},selectPoint=(et,tt,rt)=>{et.series.forEach(function(nt){var lt;if(nt.visible){const ut=nt.data[rt];ut&&tt&&((lt=ut.graphic)==null||lt.element.classList.add("point-selected"))}})},loadSeeMoreButton=(et,tt,rt)=>{var dt,pt,ht,mt,xt;const nt=et.container,lt=document.createElement("div");lt.className="see-more-button",lt.textContent=rt?"SEE LESS":"SEE MORE",lt.onclick=()=>{ut(nt,lt),tt()},rt&&(nt.classList.add("expanded"),(pt=(dt=nt.parentElement)==null?void 0:dt.parentElement)==null||pt.classList.add("expanded"),(xt=(mt=(ht=nt.parentElement)==null?void 0:ht.parentElement)==null?void 0:mt.parentElement)==null||xt.classList.add("expanded")),nt.appendChild(lt);const ut=(Mt,vt)=>{var Ot,At;Mt.classList.toggle("expanded"),(At=(Ot=Mt.parentElement)==null?void 0:Ot.parentElement)==null||At.classList.toggle("expanded"),Mt.parentElement.parentElement.parentElement.classList.toggle("expanded"),Mt.classList.contains("expanded")?vt.textContent="SEE LESS":vt.textContent="SEE MORE"}},ChartColumnLine=({onPointClick:et,selectedPoint:tt,selectedIndex:rt,seeMoreUpdated:nt,leftSeriesTitle:lt,rightSeriesTitle:ut,leftSeriesFields:dt,rightSeriesFields:pt})=>({components:[{cell:"top-chart",connector:{id:"top-chart-data",columnAssignment:[{seriesId:"series-0",data:dt},{seriesId:"series-1",data:pt}]},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:exportingConfig,chart:{type:"column",animation:!1,spacing:chartSpacingConfig,events:{load(){setHeight(this)},redraw(){selectPoint(this,tt,rt)}}},title:{text:""},xAxis:{type:"category"},yAxis:[{title:{text:lt}},{title:{text:ut},opposite:!0}],credits:creditsConfig,tooltip:{pointFormat:"{series.name}: {point.y:,.2f}<br/>",shared:!0},series:[{id:"series-0",type:"column",name:lt,yAxis:0},{id:"series-1",type:"spline",name:ut,marker:{enabled:!1},yAxis:1}],plotOptions:{column:{borderRadius:8},series:{cursor:"pointer",animation:tt===""&&!nt,states:{select:{enabled:!1}},point:{events:{click:function(){handlePointClick(this,et)}}}}}}}]}),SubChartTable=({filterOverride:et,seeMore:tt,title:rt,connector:nt,cell:lt,toggleSeeMore:ut})=>({components:[{cell:lt,connector:{id:nt},sync:syncConfig,type:"DataGrid",dataGridClassName:"chart-data-grid",title:{text:rt},dataGridOptions:{resizableColumns:!1,editable:!1},events:{load(){var mt;const dt=typeof this.contentElement=="function"?this.contentElement():this.contentElement,pt=document.createElement("div");pt.className="see-more-button",pt.textContent=tt?"SEE LESS":"SEE MORE",pt.onclick=()=>{ht(dt,pt),ut()},tt&&(dt.classList.add("expanded"),(mt=dt.parentElement)==null||mt.classList.add("expanded")),dt.appendChild(pt);const ht=(xt,Mt)=>{var vt;xt.classList.toggle("expanded"),(vt=xt.parentElement)==null||vt.classList.toggle("expanded"),xt.classList.contains("expanded")?Mt.textContent="SEE LESS":Mt.textContent="SEE MORE"}}}}]}),positionText=(et,tt)=>{const nt=et.chartWidth-50-68,lt=et.chartWidth-50-20;et.labelHeader1&&et.labelHeader2?(et.labelHeader1.attr({x:nt}),et.labelHeader2.attr({x:lt})):(et.labelHeader1=et.renderer.text("Count",nt,60).css({color:tt.palette.text.primary,fontSize:"12px",fontFamily:"Poppins, sans-serif"}).add(),et.labelHeader2=et.renderer.text("% of total",lt,60).css({color:tt.palette.text.secondary,fontSize:"12px",fontFamily:"Poppins, sans-serif"}).add())},SubChartBar=({title:et,connector:tt,cell:rt,filterOverride:nt,seeMore:lt,precision:ut=0,theme:dt,toggleSeeMore:pt})=>({components:[{cell:rt,connector:{id:tt},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:subExportingConfig,chart:{type:"bar",spacing:[20,130,70,20],height:320,events:{load(){loadSeeMoreButton(this,pt,lt),positionText(this,dt),this.redraw=function(){Highcharts$1.Chart.prototype.redraw.call(this),positionText(this,dt)}}}},title:{text:et,align:"left"},subtitle:{text:nt,align:"left",style:{color:"rgba(8, 30, 67, 0.60)",fontSize:"14px"}},xAxis:{type:"category",scrollbar:{enabled:!0}},yAxis:{reversed:!0,visible:!1,max:200,scrollbar:{enabled:!0}},legend:{enabled:!1},tooltip:{enabled:!1},credits:creditsConfig,plotOptions:{bar:{borderRadius:8,pointWidth:9},series:{cursor:"pointer",dataLabels:[{enabled:!0,formatter:function(){var ht;return'<span style="font-weight: 400; font-family: Poppins, sans-serif">'+((ht=this.y)==null?void 0:ht.toFixed(ut))+"</span>"},align:"right",verticalAlign:"middle",alignTo:"plotEdges",x:50,y:-1,crop:!1,overflow:"allow"},{enabled:!0,formatter:function(){const mt=this.series.points.reduce(function(Mt,vt){return vt.y!==void 0?Mt+vt.y:Mt},0);return'<span style="color: #696969; font-weight: 400; font-family: Poppins, sans-serif">'+(this.y!==null&&this.y!==void 0?this.y/mt*100:0).toFixed(0)+"%</span>"},align:"right",verticalAlign:"middle",alignTo:"plotEdges",x:110,y:-1,crop:!1,overflow:"allow"}]}}}}]}),EditModeConfig={enabled:!1,contextMenu:{enabled:!0,items:["editMode"]}},GuiConfig={layouts:[{rows:[{cells:[{id:"top-chart"}]},{cells:[{id:"sub-chart-left"},{id:"sub-chart-right"}]}]}]},SUB_CHART_LIMIT=5,FractionationSchedule=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig$8(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartColumnLine({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"Average Fractions (#)",rightSeriesTitle:"Avg dose/fraction (Gy)",leftSeriesFields:["Date","Average Fractions"],rightSeriesFields:["Date","Average Fraction Dose"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartBar({filterOverride:nt,title:"Case Mix",connector:"sub-chart-left-data",cell:"sub-chart-left",seeMore:dt,theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartTable({filterOverride:nt,title:"Physicians",connector:"sub-chart-right-data",cell:"sub-chart-right",seeMore:pt,theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig$8=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!1,columnNames:["Date","Average Fractions","Average Fraction Dose"],data:aggregateAverageFractions(et,"months")}},{id:"sub-chart-left-data",type:"JSON",options:{data:aggregateData(tt,"diagnosis",rt?void 0:SUB_CHART_LIMIT)}},{id:"sub-chart-right-data",type:"JSON",options:{data:aggregatePhysicianFractions(tt,nt?void 0:SUB_CHART_LIMIT)}}]}),ClinicalActivity=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig$7(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartColumnLine({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"Plans",rightSeriesTitle:"Treatment attendances",leftSeriesFields:["Date","Plans"],rightSeriesFields:["Date","Treatment Attendances"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartBar({filterOverride:nt,seeMore:dt,title:"Case Mix",connector:"sub-chart-left-data",cell:"sub-chart-left",theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartBar({filterOverride:nt,seeMore:pt,title:"Physicians",connector:"sub-chart-right-data",cell:"sub-chart-right",theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig$7=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!1,columnNames:["Date","Plans","Treatment Attendances"],data:aggregateTotalPlans(et,"months")}},{id:"sub-chart-left-data",type:"JSON",options:{data:aggregateData(tt,"diagnosis",rt?void 0:SUB_CHART_LIMIT)}},{id:"sub-chart-right-data",type:"JSON",options:{data:aggregateData(tt,"physician",nt?void 0:SUB_CHART_LIMIT)}}]}),PlanningProductivity=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig$6(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartColumnLine({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"Average daily plans",rightSeriesTitle:"Automation rate",leftSeriesFields:["Date","Plans"],rightSeriesFields:["Date","Automation Rate"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartBar({filterOverride:nt,seeMore:dt,title:"Case Mix",connector:"sub-chart-left-data",cell:"sub-chart-left",theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartBar({filterOverride:nt,seeMore:pt,title:"Techniques",connector:"sub-chart-right-data",cell:"sub-chart-right",theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig$6=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!1,columnNames:["Date","Plans","Automation Rate"],data:aggregateAverageDailyRecords(et,"months")}},{id:"sub-chart-left-data",type:"JSON",options:{data:aggregateData(tt,"diagnosis",rt?void 0:SUB_CHART_LIMIT)}},{id:"sub-chart-right-data",type:"JSON",options:{data:aggregateData(tt,"technique",nt?void 0:SUB_CHART_LIMIT)}}]}),ChartColumn=({onPointClick:et,selectedPoint:tt,selectedIndex:rt,seeMoreUpdated:nt,leftSeriesTitle:lt,rightSeriesTitle:ut,leftSeriesFields:dt,rightSeriesFields:pt})=>({components:[{cell:"top-chart",connector:{id:"top-chart-data",columnAssignment:[{seriesId:"series-0",data:dt},{seriesId:"series-1",data:pt}]},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:exportingConfig,chart:{type:"column",animation:!1,spacing:chartSpacingConfig,events:{load(){setHeight(this)},redraw(){selectPoint(this,tt,rt)}}},title:{text:""},xAxis:{type:"category"},yAxis:[{title:{text:""}},{title:{text:""},opposite:!0}],credits:creditsConfig,tooltip:{pointFormat:"{series.name}: {point.y:,.2f}<br/>",shared:!0},series:[{id:"series-0",type:"column",name:lt,yAxis:0},{id:"series-1",type:"spline",name:ut,marker:{enabled:!1}}],plotOptions:{column:{borderRadius:8},series:{cursor:"pointer",animation:tt===""&&!nt,states:{select:{enabled:!1}},point:{events:{click:function(){handlePointClick(this,et)}}}}}}}]}),SubChartBarCount=({title:et,connector:tt,cell:rt,filterOverride:nt,seeMore:lt,precision:ut=0,dataLabelTitle:dt="Count",dataLabelTitleWidth:pt=50,yAxisMax:ht=50,theme:mt,toggleSeeMore:xt})=>({components:[{cell:rt,connector:{id:tt},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:{buttons:{contextButton:{menuItems:["downloadCSV","downloadXLS"],y:-7,x:40,symbol:"download",symbolSize:24}}},chart:{type:"bar",spacing:[20,60,70,20],height:320,events:{load(){loadSeeMoreButton(this,xt,lt);const Mt=this,vt=()=>{const Ot=Mt.chartWidth-pt-130;Mt.labelHeader1?Mt.labelHeader1.attr({x:Ot}):Mt.labelHeader1=Mt.renderer.text(dt,Ot,60).css({color:mt.palette.text.primary,fontSize:"12px",fontFamily:"Poppins, sans-serif"}).add()};vt(),Mt.redraw=function(){Highcharts$1.Chart.prototype.redraw.call(this),vt()}}}},title:{text:et,align:"left"},subtitle:{text:nt,align:"left",style:{color:"rgba(8, 30, 67, 0.60)",fontSize:"14px"}},xAxis:{type:"category",scrollbar:{enabled:!0}},yAxis:{reversed:!0,visible:!1,max:ht,scrollbar:{enabled:!0}},legend:{enabled:!1},tooltip:{enabled:!1},credits:creditsConfig,plotOptions:{bar:{borderRadius:8,pointWidth:9},series:{cursor:"pointer",dataLabels:[{enabled:!0,formatter:function(){var Mt;return'<span style="font-weight: 400; font-family: Poppins, sans-serif;">'+((Mt=this.y)==null?void 0:Mt.toFixed(ut))+"</span>"},align:"right",verticalAlign:"middle",alignTo:"plotEdges",x:40,y:-1,crop:!1,overflow:"allow"}]}}}}]}),PatientWaitTimes=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig$5(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartColumn({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"Average sim to treatment time (Days)",rightSeriesTitle:"Target",leftSeriesFields:["Date","Sim to treat"],rightSeriesFields:["Date","Target"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartBarCount({filterOverride:nt,seeMore:dt,title:"Physicians",connector:"sub-chart-left-data",cell:"sub-chart-left",dataLabelTitle:"Average sim to treatment time (Days)",dataLabelTitleWidth:120,precision:1,yAxisMax:30,theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartBar({filterOverride:nt,seeMore:pt,title:"Priority",connector:"sub-chart-right-data",cell:"sub-chart-right",theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig$5=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!1,columnNames:["Date","Sim to treat","Target"],data:aggregateAverageSimToTreat(et,"months")}},{id:"sub-chart-left-data",type:"JSON",options:{data:aggregateData(tt,"physician",rt?void 0:SUB_CHART_LIMIT,void 0,12)}},{id:"sub-chart-right-data",type:"JSON",options:{data:aggregateData(tt,"priority",nt?void 0:SUB_CHART_LIMIT)}}]}),ChartArea=({onPointClick:et,selectedPoint:tt,selectedIndex:rt,seeMoreUpdated:nt,leftSeriesTitle:lt,rightSeriesTitle:ut,leftSeriesFields:dt,rightSeriesFields:pt,extraSeriesFields:ht})=>({components:[{cell:"top-chart",connector:{id:"top-chart-data",columnAssignment:[{seriesId:"series-0",data:dt},{seriesId:"series-1",data:pt},{seriesId:"series-2",data:ht}]},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:exportingConfig,chart:{type:"area",animation:!1,spacing:chartSpacingConfig,styledMode:!1,events:{load(){setHeight(this)},redraw(){selectPoint(this,tt,rt)}}},title:{text:""},xAxis:{type:"category"},yAxis:[{title:{text:lt},max:100,min:70,labels:{format:"{value}%"}},{title:{text:ut},opposite:!0,min:0,labels:{format:"{value}%"}}],credits:creditsConfig,tooltip:{pointFormat:"{series.name}: {point.y}<br/>",shared:!0},series:[{id:"series-2",type:"column",name:"Manual careplan",yAxis:0,legendIndex:1,color:"rgba(62, 167, 178)"},{id:"series-0",type:"column",name:lt,yAxis:0,legendIndex:0,color:"rgba(170, 161, 253)"},{id:"series-1",type:"spline",name:ut,yAxis:1,legendIndex:2,color:"#F500FF"}],plotOptions:{column:{stacking:"percent"},series:{cursor:"pointer",marker:{enabled:!1,symbol:"circle"},states:{select:{enabled:!1}},animation:tt===""&&!nt,point:{events:{click:function(){handlePointClick(this,et)}}}}}}}]}),SubChartStackedBarPercent=({title:et,connector:tt,cell:rt,filterOverride:nt,seeMore:lt,theme:ut,toggleSeeMore:dt})=>({components:[{cell:rt,connector:{id:tt,columnAssignment:[{seriesId:"series-0",data:["Field","Adherence","Non-Adherent"]},{seriesId:"series-1",data:["Field","Non-Adherent","Adherence"]}]},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:{buttons:{contextButton:{menuItems:["downloadCSV","downloadXLS"],y:-7,x:70,symbol:"download",symbolSize:24}}},chart:{type:"bar",spacing:[20,90,70,20],height:320,events:{load(){loadSeeMoreButton(this,dt,lt);const pt=this;pt.container.classList.add("stacked-bar-percent");const ht=()=>{const xt=pt.chartWidth/2-50-45,Mt=pt.chartWidth-50-65;pt.labelHeader1&&pt.labelHeader2?(pt.labelHeader1.attr({x:xt}),pt.labelHeader2.attr({x:Mt})):(pt.labelHeader1=pt.renderer.text("Careplan adherence",xt,55).css({color:ut.palette.text.primary,fontSize:"12px",fontFamily:"Poppins, sans-serif"}).add(),pt.labelHeader2=pt.renderer.text("Manual careplan",Mt,55).css({color:ut.palette.text.secondary,fontSize:"12px",fontFamily:"Poppins, sans-serif"}).add())};ht(),pt.redraw=function(){Highcharts$1.Chart.prototype.redraw.call(this),ht()}}}},title:{text:et,align:"left"},subtitle:{text:nt,align:"left",style:{color:"rgba(8, 30, 67, 0.60)",fontSize:"14px"}},xAxis:{type:"category",scrollbar:{enabled:!0}},yAxis:{reversed:!0,visible:!1,max:200,scrollbar:{enabled:!0}},legend:{enabled:!1},tooltip:{enabled:!1},credits:creditsConfig,series:[{id:"series-0",type:"bar",yAxis:0,dataLabels:[{enabled:!0,formatter:function(){var pt;return'<span style="font-weight: 400; font-family: Poppins, sans-serif">'+((pt=this.y)==null?void 0:pt.toFixed(0))+"</span>"},align:"center",verticalAlign:"middle",alignTo:"plotEdges",x:-65,y:-1,crop:!1,overflow:"allow"},{enabled:!0,formatter:function(){return'<span style="color: #696969; font-weight: 400; font-family: Poppins, sans-serif">('+(this.y&&this.total?this.y/this.total*100:0).toFixed(0)+"%)</span>"},align:"center",verticalAlign:"middle",alignTo:"plotEdges",x:-25,y:-1,crop:!1,overflow:"allow"}]},{id:"series-1",type:"bar",yAxis:0,dataLabels:[{enabled:!0,formatter:function(){var pt;return'<span style="font-weight: 400; font-family: Poppins, sans-serif">'+((pt=this.y)==null?void 0:pt.toFixed(0))+"</span>"},align:"right",verticalAlign:"middle",alignTo:"plotEdges",x:25,y:-1,crop:!1,overflow:"allow"},{enabled:!0,formatter:function(){return'<span style="color: #696969; font-weight: 400; font-family: Poppins, sans-serif">('+(this.y&&this.total?this.y/this.total*100:0).toFixed(0)+"%)</span>"},align:"right",verticalAlign:"middle",alignTo:"plotEdges",x:70,y:-1,crop:!1,overflow:"allow"}]}],plotOptions:{bar:{borderRadius:8,pointWidth:9,stacking:"percent"},series:{cursor:"pointer"}}}}]}),CarepathUtilisation=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig$4(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartArea({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"Careplan adherence",rightSeriesTitle:"Peer review",leftSeriesFields:["Date","Adherence"],rightSeriesFields:["Date","Peer Review"],extraSeriesFields:["Date","Non-Adherent"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartStackedBarPercent({filterOverride:nt,seeMore:dt,title:"Case Mix",connector:"sub-chart-left-data",cell:"sub-chart-left",theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartStackedBarPercent({filterOverride:nt,seeMore:pt,title:"Physicians",connector:"sub-chart-right-data",cell:"sub-chart-right",theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig$4=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!1,columnNames:["Date","Adherence","Non-Adherent","Peer Review"],data:aggregateAdherenceValues(et,"months")}},{id:"sub-chart-left-data",type:"JSON",options:{firstRowAsNames:!1,columnNames:["Field","Adherence","Non-Adherent"],data:aggregateAdherenceByField(tt,"diagnosis",rt?void 0:SUB_CHART_LIMIT)}},{id:"sub-chart-right-data",type:"JSON",options:{firstRowAsNames:!1,columnNames:["Field","Adherence","Non-Adherent"],data:aggregateAdherenceByField(tt,"physician",nt?void 0:SUB_CHART_LIMIT)}}]}),columnSeriesMapping$1=et=>et.slice(1).map((rt,nt)=>({seriesId:"series-"+nt,data:["Date",rt]})),seriesMapping$1=et=>et.slice(1).map((rt,nt)=>({id:"series-"+nt,type:"column",name:rt,color:seriesColorMapping$1[rt]||"rgba(158, 158, 158)",fillOpacity:.75})),seriesColorMapping$1={IMRT:"rgba(170, 161, 253)",VMAT:"rgba(62, 167, 178)",Stereotactic:"rgba(255, 189, 91)",Conformal:"rgba(251, 106, 118)",Brachytherapy:"rgba(128, 0, 128)",Electrons:"rgba(89, 39, 218)"},ChartStackedColumnPercent$1=({onPointClick:et,selectedPoint:tt,selectedIndex:rt,seeMoreUpdated:nt,leftSeriesTitle:lt,leftSeriesFields:ut,rightSeriesFields:dt})=>({components:[{cell:"top-chart",connector:{id:"top-chart-data",columnAssignment:columnSeriesMapping$1(ut).concat({seriesId:"series-"+ut.length+1,data:dt})},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:exportingConfig,chart:{type:"column",animation:!1,spacing:chartSpacingConfig,styledMode:!1,events:{load(){setHeight(this)},redraw(){selectPoint(this,tt,rt)}}},title:{text:""},xAxis:{type:"category"},yAxis:{title:{text:lt},max:100,endOnTick:!1,labels:{format:"{value}%"}},legend:{itemStyle:{fontSize:"12px"}},credits:creditsConfig,tooltip:{formatter:function(){let pt="";return this.points.forEach(function(ht){var mt;ht.series.name.includes("VS")||(pt+=`${ht.series.name}: ${(mt=ht.y)==null?void 0:mt.toFixed(0)} plans<br/>`)}),pt},shared:!0},series:seriesMapping$1(ut).concat({id:"series-"+ut.length+1,type:"spline",name:"IMRT/VMAT/Stereotactic plans VS total plans percentage",marker:{enabled:!1},color:"rgba(245, 0, 255, 1)"}),plotOptions:{column:{stacking:"percent"},series:{cursor:"pointer",animation:tt===""&&!nt,states:{select:{enabled:!1}},point:{events:{click:function(){handlePointClick(this,et)}}}}}}}]}),SubChartStackedBarPercentTotal=({title:et,connector:tt,cell:rt,filterOverride:nt,seeMore:lt,theme:ut,toggleSeeMore:dt})=>({components:[{cell:rt,connector:{id:tt},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:subExportingConfig,chart:{type:"bar",spacing:[20,130,70,20],height:320,events:{load(){loadSeeMoreButton(this,dt,lt);const pt=this,ht=()=>{const xt=pt.chartWidth-50-68,Mt=pt.chartWidth-50-20;pt.labelHeader1&&pt.labelHeader2?(pt.labelHeader1.attr({x:xt}),pt.labelHeader2.attr({x:Mt})):(pt.labelHeader1=pt.renderer.text("Count",xt,55).css({color:ut.palette.text.primary,fontSize:"12px",fontFamily:"Poppins, sans-serif"}).add(),pt.labelHeader2=pt.renderer.text("% of total",Mt,55).css({color:ut.palette.text.secondary,fontSize:"12px",fontFamily:"Poppins, sans-serif"}).add())};ht(),pt.redraw=function(){Highcharts$1.Chart.prototype.redraw.call(this),ht()}}}},title:{text:et,align:"left"},subtitle:{text:nt,align:"left",style:{color:"rgba(8, 30, 67, 0.60)",fontSize:"14px"}},xAxis:{type:"category",scrollbar:{enabled:!0}},yAxis:{reversed:!0,visible:!1,max:200,scrollbar:{enabled:!0}},legend:{enabled:!1},tooltip:{enabled:!0},credits:creditsConfig,plotOptions:{bar:{borderRadius:8,pointWidth:9,stacking:"percent"},series:{cursor:"pointer",dataLabels:[{enabled:!0,formatter:function(){var pt;return'<span style="font-weight: 400; font-family: Poppins, sans-serif">'+((pt=this.y)==null?void 0:pt.toFixed(0))+"</span>"},align:"right",verticalAlign:"middle",alignTo:"plotEdges",x:50,y:-1,crop:!1,overflow:"allow"},{enabled:!0,formatter:function(){const ht=this.series.points.reduce(function(xt,Mt){return Mt.y!==void 0?xt+Mt.y:xt},0);return'<span style="color: #696969; font-weight: 400; font-family: Poppins, sans-serif">'+(this.y!==null&&this.y!==void 0?this.y/ht*100:0).toFixed(0)+"%</span>"},align:"right",verticalAlign:"middle",alignTo:"plotEdges",x:110,y:-1,crop:!1,overflow:"allow"}]}}}}]}),TechniqueUtilisation=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig$3(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartStackedColumnPercent$1({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"",rightSeriesTitle:"",leftSeriesFields:aggregateStackedBarData(tt,"technique","months","Complex Percentage",["IMRT","VMAT","Stereotactic","Conformal","Brachytherapy","Electrons","Unspecified"])[0].slice(0,-1),rightSeriesFields:["Date","Complex Percentage"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartBar({filterOverride:nt,seeMore:dt,title:"Case Mix",connector:"sub-chart-left-data",cell:"sub-chart-left",theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartStackedBarPercentTotal({filterOverride:nt,seeMore:pt,title:"Physicians",connector:"sub-chart-right-data",cell:"sub-chart-right",theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig$3=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!0,data:aggregateStackedBarData(et,"technique","months","Complex Percentage")}},{id:"sub-chart-left-data",type:"JSON",options:{data:aggregateData(tt,"diagnosis",rt?void 0:SUB_CHART_LIMIT)}},{id:"sub-chart-right-data",type:"JSON",options:{firstRowAsNames:!0,data:aggregateTechniqueByField(tt,"physician",nt?void 0:SUB_CHART_LIMIT,["IMRT","VMAT","Stereotactic","Conformal","Brachytherapy","Electrons","Unspecified"])}}]}),columnSeriesMapping=et=>et.slice(1).map((rt,nt)=>({seriesId:"series-"+nt,data:["Date",rt]})),seriesMapping=et=>et.slice(1).map((rt,nt)=>({id:"series-"+nt,type:"column",name:rt,color:seriesColorMapping[rt]||"rgba(158, 158, 158)"})),seriesColorMapping={Breast:"rgba(170, 161, 253)",Metastasis:"rgba(62, 167, 178)",Prostate:"rgba(255, 189, 91)",Colorectal:"rgba(251, 106, 118)",Neuro:"rgba(128, 0, 128)",Skin:"rgba(89, 39, 218)"},ChartStackedColumnPercent=({onPointClick:et,selectedPoint:tt,selectedIndex:rt,seeMoreUpdated:nt,leftSeriesTitle:lt,leftSeriesFields:ut})=>({components:[{cell:"top-chart",connector:{id:"top-chart-data",columnAssignment:columnSeriesMapping(ut)},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:exportingConfig,chart:{type:"column",animation:!1,spacing:chartSpacingConfig,styledMode:!1,events:{load(){setHeight(this)},redraw(){selectPoint(this,tt,rt)}}},title:{text:""},xAxis:{type:"category"},yAxis:{title:{text:lt}},credits:creditsConfig,tooltip:{pointFormat:"{series.name}: {point.y}<br/>",shared:!0},series:seriesMapping(ut),plotOptions:{column:{stacking:"normal"},series:{cursor:"pointer",animation:tt===""&&!nt,states:{select:{enabled:!1}},point:{events:{click:function(){handlePointClick(this,et)}}}}}}}]}),Diagnosis=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig$2(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartStackedColumnPercent({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"",rightSeriesTitle:"",leftSeriesFields:aggregateStackedBarData(tt,"diagnosis","months","",["breast","metastasis","prostate","colorectal","neuro","skin","Unspecified"])[0],rightSeriesFields:["Date","Techniques"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartBar({filterOverride:nt,seeMore:dt,title:"Case Mix",connector:"sub-chart-left-data",cell:"sub-chart-left",theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartBar({filterOverride:nt,seeMore:pt,title:"Referring Physicians",connector:"sub-chart-right-data",cell:"sub-chart-right",theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig$2=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!0,data:aggregateStackedBarData(et,"diagnosis","months")}},{id:"sub-chart-left-data",type:"JSON",options:{data:aggregateData(tt,"diagnosis_code",rt?void 0:SUB_CHART_LIMIT)}},{id:"sub-chart-right-data",type:"JSON",options:{data:aggregateData(tt,"referrer",nt?void 0:SUB_CHART_LIMIT)}}]}),ChartBar=({onPointClick:et,selectedPoint:tt,selectedIndex:rt,seeMoreUpdated:nt})=>({components:[{cell:"top-chart",connector:{id:"top-chart-data"},sync:syncConfig,type:"Highcharts",chartOptions:{exporting:exportingConfig,chart:{type:"bar",animation:!1,spacing:chartSpacingConfig,events:{load(){setHeight(this)},redraw(){selectPoint(this,tt,rt)}}},title:{text:""},xAxis:{type:"category"},yAxis:[{title:{text:""},tickInterval:10}],credits:creditsConfig,tooltip:{pointFormat:"{series.name}: {point.y}<br/>"},plotOptions:{series:{animation:tt===""&&!nt,states:{select:{enabled:!1}},point:{events:{click:function(){handlePointClick(this,et)}}}}}}}]}),Top10Referrers=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig$1(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartBar({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"",rightSeriesTitle:"",leftSeriesFields:["Date","Techniques"],rightSeriesFields:["Date","Techniques"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartBar({filterOverride:nt,seeMore:dt,title:"Case Mix",connector:"sub-chart-left-data",cell:"sub-chart-left",theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartBar({filterOverride:nt,seeMore:pt,title:"Physicians",connector:"sub-chart-right-data",cell:"sub-chart-right",theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig$1=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!0,data:aggregateData(et,"referrer",10,"New Referrals")}},{id:"sub-chart-left-data",type:"JSON",options:{data:aggregateData(tt,"diagnosis",rt?void 0:SUB_CHART_LIMIT)}},{id:"sub-chart-right-data",type:"JSON",options:{data:aggregateData(tt,"physician",nt?void 0:SUB_CHART_LIMIT)}}]}),MachineUtilisation=({theme:et,data:tt,subChartData:rt,dateFilterOverride:nt,selectedIndex:lt,seeMoreUpdated:ut,seeMoreBottomLeft:dt,seeMoreBottomRight:pt,toggleSeeMoreBottomLeft:ht,toggleSeeMoreBottomRight:mt,onPointClick:xt})=>{var Mt,vt,Ot;return{dataPool:dataPoolConfig(tt,rt,dt,pt),editMode:EditModeConfig,gui:GuiConfig,components:[((Mt=ChartColumn({onPointClick:xt,selectedPoint:nt,selectedIndex:lt,seeMoreUpdated:ut,leftSeriesTitle:"Average sim to treatment time (Days)",rightSeriesTitle:"Target",leftSeriesFields:["Date","Daily Treatments"],rightSeriesFields:["Date","Target"]}).components)==null?void 0:Mt[0])??{},((vt=SubChartBarCount({filterOverride:nt,seeMore:dt,title:"Machines",connector:"sub-chart-left-data",cell:"sub-chart-left",dataLabelTitle:"Average daily treatments",theme:et,toggleSeeMore:ht}).components)==null?void 0:vt[0])??{},((Ot=SubChartBar({filterOverride:nt,seeMore:pt,title:"Technique",connector:"sub-chart-right-data",cell:"sub-chart-right",theme:et,toggleSeeMore:mt}).components)==null?void 0:Ot[0])??{}]}},dataPoolConfig=(et,tt,rt,nt)=>({connectors:[{id:"top-chart-data",type:"JSON",options:{firstRowAsNames:!1,columnNames:["Date","Daily Treatments","Target"],data:aggregateAverageDailyTreatmentsPerLinac(et,"months")}},{id:"sub-chart-left-data",type:"JSON",options:{data:aggregateData(tt,"linac",rt?void 0:SUB_CHART_LIMIT,void 0,4)}},{id:"sub-chart-right-data",type:"JSON",options:{data:aggregateData(tt,"technique",nt?void 0:SUB_CHART_LIMIT)}}]});LayoutModule(Dashboards$1);exporting(Highcharts$1);exportData(Highcharts$1);Dashboards$1.HighchartsPlugin.custom.connectHighcharts(Highcharts$1);Dashboards$1.DataGridPlugin.custom.connectDataGrid(DataGrid);Dashboards$1.PluginHandler.addPlugin(Dashboards$1.HighchartsPlugin);Dashboards$1.PluginHandler.addPlugin(Dashboards$1.DataGridPlugin);Highcharts$1.SVGRenderer.prototype.symbols.download=function(et,tt,rt,nt){return["M",et+rt*.22,tt+nt*.83,"L",et+rt*.78,tt+nt*.83,"L",et+rt*.78,tt+nt*.75,"L",et+rt*.22,tt+nt*.75,"Z","M",et+rt*.78,tt+nt*.375,"L",et+rt*.62,tt+nt*.375,"L",et+rt*.62,tt+nt*.125,"L",et+rt*.38,tt+nt*.125,"L",et+rt*.38,tt+nt*.375,"L",et+rt*.22,tt+nt*.375,"L",et+rt*.5,tt+nt*.67,"Z"]};const qualityNavItemsMapping={carepathway:"Carepathway Utilization",techniques:"Technique Utilization",fractions:"Fractionation Schedule"},accessNavItemsMapping={referrers:"Top 10 Referrers",diagnosis:"Diagnosis",activity:"Clinical Activity"},efficiencyNavItemsMapping={machines:"Machine Utilization","wait-times":"Patient Wait Times",productivity:"Planning Productivity"},NavBar=(et,tt,rt,nt,lt)=>jsxRuntimeExports.jsxs("div",{className:"insights-nav-pane",children:[jsxRuntimeExports.jsx("button",{className:"back-button",onClick:()=>rt("index"),children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:"5px"},children:[jsxRuntimeExports.jsx(default_1$5,{style:{marginRight:"15px",transform:"rotate(180deg)",opacity:"54%",color:lt.palette.primary.dark}}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{children:"Back"}),jsxRuntimeExports.jsx(Typography,{variant:"subtitle2",color:lt.palette.text.secondary,sx:{fontWeight:400},children:"Insights Dashboard"})]})]})}),jsxRuntimeExports.jsxs("div",{className:"nav-section",children:[jsxRuntimeExports.jsxs(Typography,{className:"section-header",variant:"subtitle1",onClick:()=>tt("Quality"),children:[jsxRuntimeExports.jsx(default_1$j,{style:{transform:`rotate(${et.Quality?0:"-90deg"})`}}),"Quality"]}),et.Quality&&jsxRuntimeExports.jsx(NavList,{navToPage:rt,currentPage:nt,navItems:qualityNavItemsMapping}),jsxRuntimeExports.jsxs(Typography,{className:"section-header",variant:"subtitle1",onClick:()=>tt("Access"),children:[jsxRuntimeExports.jsx(default_1$j,{style:{transform:`rotate(${et.Access?0:"-90deg"})`}}),"Access"]}),et.Access&&jsxRuntimeExports.jsx(NavList,{navToPage:rt,currentPage:nt,navItems:accessNavItemsMapping}),jsxRuntimeExports.jsxs(Typography,{className:"section-header",variant:"subtitle1",onClick:()=>tt("Efficiency"),children:[jsxRuntimeExports.jsx(default_1$j,{style:{transform:`rotate(${et.Efficiency?0:"-90deg"})`}}),"Efficiency"]}),et.Efficiency&&jsxRuntimeExports.jsx(NavList,{navToPage:rt,currentPage:nt,navItems:efficiencyNavItemsMapping})]})]}),NavList=({navToPage:et,currentPage:tt,navItems:rt})=>jsxRuntimeExports.jsx("ul",{className:"section-list",children:Object.entries(rt).map(([nt,lt])=>jsxRuntimeExports.jsx("li",{className:`section-item ${tt===nt?"active":""}`,onClick:()=>et(nt),children:lt},nt))}),InsightsDashboard=()=>{const et=useHistory(),tt=useTheme$1(),[rt,nt]=reactExports.useState("index"),[lt,ut]=reactExports.useState({Quality:!0,Access:!0,Efficiency:!0}),dt=vt=>{rt!==vt&&(vt==="index"?et.push("/radiation/insights"):et.push(`/radiation/insights/${vt}`),nt(vt))};reactExports.useEffect(()=>{const vt="/radiation/insights",Ot={baseUrl:"index",[`${vt}/carepathway`]:"carepathway",[`${vt}/techniques`]:"techniques",[`${vt}/fractions`]:"fractions",[`${vt}/referrers`]:"referrers",[`${vt}/diagnosis`]:"diagnosis",[`${vt}/activity`]:"activity",[`${vt}/machines`]:"machines",[`${vt}/wait-times`]:"wait-times",[`${vt}/productivity`]:"productivity"};nt(Ot[location.pathname]||"index"),Mt(0),mt.current=0;const At=et.listen(Rt=>{nt(Ot[Rt.pathname]||"index")});return()=>{At()}},[et,location.pathname]);const pt=vt=>{ut(Ot=>({...Ot,[vt]:!Ot[vt]}))},ht=reactExports.useRef(null),mt=reactExports.useRef(0),xt=reactExports.useCallback(()=>{ht.current&&ht.current.scrollTop!==0&&(mt.current=ht.current.scrollTop)},[]),Mt=vt=>{ht.current&&requestAnimationFrame(()=>{vt||vt===0?ht.current.scrollTop=vt:ht.current.scrollTop=mt.current})};return reactExports.useEffect(()=>{const vt=ht.current;return vt&&vt.addEventListener("scroll",xt),()=>{vt&&vt.removeEventListener("scroll",xt)}},[xt]),jsxRuntimeExports.jsx(DashboardContextProvider,{data:MockData,navToPage:dt,onChartClick:Mt,children:jsxRuntimeExports.jsxs("div",{className:"insights-wrapper insights-ro-dashboard-wrapper",children:[rt!=="index"&&NavBar(lt,pt,dt,rt,tt),jsxRuntimeExports.jsx(StyledTile,{className:"careplan-dashboard-wrapper insights-dashboard-wrapper",children:jsxRuntimeExports.jsxs("div",{className:"table-wrapper",ref:ht,children:[rt==="index"&&jsxRuntimeExports.jsx(DashboardOverview,{}),rt==="carepathway"&&jsxRuntimeExports.jsx(Dashboard,{title:"Carepathway Utilization",metric:"Careplan Adherence",metricFunction:calcAdherencePercentage,config:CarepathUtilisation,metricSuffix:"%"}),rt==="techniques"&&jsxRuntimeExports.jsx(Dashboard,{title:"Technique Utilization",metric:"IMRT/VMAT/Stereotactic plans",metricFunction:calcComplexTechnique,config:TechniqueUtilisation,metricSuffix:"%"}),rt==="fractions"&&jsxRuntimeExports.jsx(Dashboard,{title:"Fractionation Schedule",metric:"Average Fractions",metricFunction:calcAverageFractions,metricRound:1,config:FractionationSchedule}),rt==="referrers"&&jsxRuntimeExports.jsx(Dashboard,{title:"Top 10 Referrers",metric:"Total Referrals",metricFunction:calcTotalReferrals,config:Top10Referrers}),rt==="diagnosis"&&jsxRuntimeExports.jsx(Dashboard,{title:"Diagnosis",metric:"Total Diagnosis",metricFunction:calcTotalDiagnosis,config:Diagnosis}),rt==="activity"&&jsxRuntimeExports.jsx(Dashboard,{title:"Clinical Activity",metric:"Total Plans",metricFunction:calcTotalPlans,config:ClinicalActivity}),rt==="machines"&&jsxRuntimeExports.jsx(Dashboard,{title:"Machine Utilization",metric:"Average Daily Treatments Per Linac",metricFunction:calcAverageDailyTreatmentsPerLinac,config:MachineUtilisation,metricRound:1}),rt==="wait-times"&&jsxRuntimeExports.jsx(Dashboard,{title:"Patient Wait Times",metric:"Average Sim to Treatment Time (Days)",metricFunction:calcAverageSimToTreat,config:PatientWaitTimes,metricRound:1}),rt==="productivity"&&jsxRuntimeExports.jsx(Dashboard,{title:"Planning Productivity",metric:"Average Daily Plans",metricFunction:calcAverageDailyPlans,config:PlanningProductivity,metricRound:1})]})})]})})},StyledButton=styled$1(Button)`
  :focus {
    outline: none;
  }
  && {
    text-transform: none;
    color: ${et=>et.theme.palette.text.primary};
    border-color: ${et=>et.theme.palette.grey[600]};
    min-width: 100px;
    border-radius: 2em;
    min-height: 2em;
    margin-right: 12px;
    font-size: 16px;
    border-width: 2px;
  }
`,StyledCircleIcon=styled$1(CircleIcon)`
  margin-top: -15px;
  margin-left: -30px;
  margin-right: 15px;
}
`,StyledClose=styled$1("div")`
  cursor: pointer;
`,ROStyledMenu=et=>jsxRuntimeExports.jsx(Menu$1,{elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...et}),ROSearchFilter=et=>{const[tt,rt]=React$4.useState(null),nt=(et==null?void 0:et.id)||"ROFilterMenu",lt=pt=>{rt(pt.currentTarget)},ut=()=>{rt(null)},dt=jsxRuntimeExports.jsx(StyledCircleIcon,{color:"primary"});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(StyledButton,{id:`${nt}-button`,className:"search-filter-button","aria-controls":"customized-menu","aria-haspopup":"true","data-testid":`${nt}-button`,startIcon:et.startIcon?et.startIcon:jsxRuntimeExports.jsx(FilterList$2,{}),onClick:lt,children:(et==null?void 0:et.title)||"Filter"}),jsxRuntimeExports.jsxs(ROStyledMenu,{id:`${nt}-menu`,anchorEl:tt,keepMounted:!0,open:!!tt,onClose:ut,className:"search-filter-menu","data-testid":`${nt}-menu`,children:[jsxRuntimeExports.jsx(Box,{display:"flex",flexDirection:"row-reverse",mx:1,children:jsxRuntimeExports.jsx(StyledClose,{"data-testid":`${nt}-close`,onClick:ut,children:jsxRuntimeExports.jsx(CloseIcon,{color:"primary"})})}),et.children]}),et.showAlert&&dt]})};var LocationCity={},_interopRequireDefault$4=interopRequireDefaultExports;Object.defineProperty(LocationCity,"__esModule",{value:!0});var default_1$4=LocationCity.default=void 0,_createSvgIcon$4=_interopRequireDefault$4(requireCreateSvgIcon()),_jsxRuntime$4=jsxRuntimeExports;default_1$4=LocationCity.default=(0,_createSvgIcon$4.default)((0,_jsxRuntime$4.jsx)("path",{d:"M15 11V5l-3-3-3 3v2H3v14h18V11zm-8 8H5v-2h2zm0-4H5v-2h2zm0-4H5V9h2zm6 8h-2v-2h2zm0-4h-2v-2h2zm0-4h-2V9h2zm0-4h-2V5h2zm6 12h-2v-2h2zm0-4h-2v-2h2z"}),"LocationCity");var PlaylistAddCheck={},_interopRequireDefault$3=interopRequireDefaultExports;Object.defineProperty(PlaylistAddCheck,"__esModule",{value:!0});var default_1$3=PlaylistAddCheck.default=void 0,_createSvgIcon$3=_interopRequireDefault$3(requireCreateSvgIcon()),_jsxRuntime$3=jsxRuntimeExports;default_1$3=PlaylistAddCheck.default=(0,_createSvgIcon$3.default)((0,_jsxRuntime$3.jsx)("path",{d:"M3 10h11v2H3zm0-4h11v2H3zm0 8h7v2H3zm17.59-2.07-4.25 4.24-2.12-2.12-1.41 1.41L16.34 19 22 13.34z"}),"PlaylistAddCheck");var AddOutlined={},_interopRequireDefault$2=interopRequireDefaultExports;Object.defineProperty(AddOutlined,"__esModule",{value:!0});var default_1$2=AddOutlined.default=void 0,_createSvgIcon$2=_interopRequireDefault$2(requireCreateSvgIcon()),_jsxRuntime$2=jsxRuntimeExports;default_1$2=AddOutlined.default=(0,_createSvgIcon$2.default)((0,_jsxRuntime$2.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"AddOutlined");function isArray$1(et){return Array.isArray?Array.isArray(et):getTag(et)==="[object Array]"}const INFINITY=1/0;function baseToString(et){if(typeof et=="string")return et;let tt=et+"";return tt=="0"&&1/et==-INFINITY?"-0":tt}function toString$1(et){return et==null?"":baseToString(et)}function isString$2(et){return typeof et=="string"}function isNumber$2(et){return typeof et=="number"}function isBoolean$1(et){return et===!0||et===!1||isObjectLike(et)&&getTag(et)=="[object Boolean]"}function isObject$1(et){return typeof et=="object"}function isObjectLike(et){return isObject$1(et)&&et!==null}function isDefined(et){return et!=null}function isBlank(et){return!et.trim().length}function getTag(et){return et==null?et===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(et)}const EXTENDED_SEARCH_UNAVAILABLE="Extended search is not available",INCORRECT_INDEX_TYPE="Incorrect 'index' type",LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY=et=>`Invalid value for key ${et}`,PATTERN_LENGTH_TOO_LARGE=et=>`Pattern length exceeds max of ${et}.`,MISSING_KEY_PROPERTY=et=>`Missing ${et} property in key`,INVALID_KEY_WEIGHT_VALUE=et=>`Property 'weight' in key '${et}' must be a positive integer`,hasOwn=Object.prototype.hasOwnProperty;class KeyStore{constructor(tt){this._keys=[],this._keyMap={};let rt=0;tt.forEach(nt=>{let lt=createKey(nt);this._keys.push(lt),this._keyMap[lt.id]=lt,rt+=lt.weight}),this._keys.forEach(nt=>{nt.weight/=rt})}get(tt){return this._keyMap[tt]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function createKey(et){let tt=null,rt=null,nt=null,lt=1,ut=null;if(isString$2(et)||isArray$1(et))nt=et,tt=createKeyPath(et),rt=createKeyId(et);else{if(!hasOwn.call(et,"name"))throw new Error(MISSING_KEY_PROPERTY("name"));const dt=et.name;if(nt=dt,hasOwn.call(et,"weight")&&(lt=et.weight,lt<=0))throw new Error(INVALID_KEY_WEIGHT_VALUE(dt));tt=createKeyPath(dt),rt=createKeyId(dt),ut=et.getFn}return{path:tt,id:rt,weight:lt,src:nt,getFn:ut}}function createKeyPath(et){return isArray$1(et)?et:et.split(".")}function createKeyId(et){return isArray$1(et)?et.join("."):et}function get$1(et,tt){let rt=[],nt=!1;const lt=(ut,dt,pt)=>{if(isDefined(ut))if(!dt[pt])rt.push(ut);else{let ht=dt[pt];const mt=ut[ht];if(!isDefined(mt))return;if(pt===dt.length-1&&(isString$2(mt)||isNumber$2(mt)||isBoolean$1(mt)))rt.push(toString$1(mt));else if(isArray$1(mt)){nt=!0;for(let xt=0,Mt=mt.length;xt<Mt;xt+=1)lt(mt[xt],dt,pt+1)}else dt.length&&lt(mt,dt,pt+1)}};return lt(et,isString$2(tt)?tt.split("."):tt,0),nt?rt:rt[0]}const MatchOptions={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},BasicOptions={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(et,tt)=>et.score===tt.score?et.idx<tt.idx?-1:1:et.score<tt.score?-1:1},FuzzyOptions={location:0,threshold:.6,distance:100},AdvancedOptions={useExtendedSearch:!1,getFn:get$1,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Config={...BasicOptions,...MatchOptions,...FuzzyOptions,...AdvancedOptions};const SPACE=/[^ ]+/g;function norm(et=1,tt=3){const rt=new Map,nt=Math.pow(10,tt);return{get(lt){const ut=lt.match(SPACE).length;if(rt.has(ut))return rt.get(ut);const dt=1/Math.pow(ut,.5*et),pt=parseFloat(Math.round(dt*nt)/nt);return rt.set(ut,pt),pt},clear(){rt.clear()}}}class FuseIndex{constructor({getFn:tt=Config.getFn,fieldNormWeight:rt=Config.fieldNormWeight}={}){this.norm=norm(rt,3),this.getFn=tt,this.isCreated=!1,this.setIndexRecords()}setSources(tt=[]){this.docs=tt}setIndexRecords(tt=[]){this.records=tt}setKeys(tt=[]){this.keys=tt,this._keysMap={},tt.forEach((rt,nt)=>{this._keysMap[rt.id]=nt})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,isString$2(this.docs[0])?this.docs.forEach((tt,rt)=>{this._addString(tt,rt)}):this.docs.forEach((tt,rt)=>{this._addObject(tt,rt)}),this.norm.clear())}add(tt){const rt=this.size();isString$2(tt)?this._addString(tt,rt):this._addObject(tt,rt)}removeAt(tt){this.records.splice(tt,1);for(let rt=tt,nt=this.size();rt<nt;rt+=1)this.records[rt].i-=1}getValueForItemAtKeyId(tt,rt){return tt[this._keysMap[rt]]}size(){return this.records.length}_addString(tt,rt){if(!isDefined(tt)||isBlank(tt))return;let nt={v:tt,i:rt,n:this.norm.get(tt)};this.records.push(nt)}_addObject(tt,rt){let nt={i:rt,$:{}};this.keys.forEach((lt,ut)=>{let dt=lt.getFn?lt.getFn(tt):this.getFn(tt,lt.path);if(isDefined(dt)){if(isArray$1(dt)){let pt=[];const ht=[{nestedArrIndex:-1,value:dt}];for(;ht.length;){const{nestedArrIndex:mt,value:xt}=ht.pop();if(isDefined(xt))if(isString$2(xt)&&!isBlank(xt)){let Mt={v:xt,i:mt,n:this.norm.get(xt)};pt.push(Mt)}else isArray$1(xt)&&xt.forEach((Mt,vt)=>{ht.push({nestedArrIndex:vt,value:Mt})})}nt.$[ut]=pt}else if(isString$2(dt)&&!isBlank(dt)){let pt={v:dt,n:this.norm.get(dt)};nt.$[ut]=pt}}}),this.records.push(nt)}toJSON(){return{keys:this.keys,records:this.records}}}function createIndex(et,tt,{getFn:rt=Config.getFn,fieldNormWeight:nt=Config.fieldNormWeight}={}){const lt=new FuseIndex({getFn:rt,fieldNormWeight:nt});return lt.setKeys(et.map(createKey)),lt.setSources(tt),lt.create(),lt}function parseIndex(et,{getFn:tt=Config.getFn,fieldNormWeight:rt=Config.fieldNormWeight}={}){const{keys:nt,records:lt}=et,ut=new FuseIndex({getFn:tt,fieldNormWeight:rt});return ut.setKeys(nt),ut.setIndexRecords(lt),ut}function computeScore$1(et,{errors:tt=0,currentLocation:rt=0,expectedLocation:nt=0,distance:lt=Config.distance,ignoreLocation:ut=Config.ignoreLocation}={}){const dt=tt/et.length;if(ut)return dt;const pt=Math.abs(nt-rt);return lt?dt+pt/lt:pt?1:dt}function convertMaskToIndices(et=[],tt=Config.minMatchCharLength){let rt=[],nt=-1,lt=-1,ut=0;for(let dt=et.length;ut<dt;ut+=1){let pt=et[ut];pt&&nt===-1?nt=ut:!pt&&nt!==-1&&(lt=ut-1,lt-nt+1>=tt&&rt.push([nt,lt]),nt=-1)}return et[ut-1]&&ut-nt>=tt&&rt.push([nt,ut-1]),rt}const MAX_BITS=32;function search(et,tt,rt,{location:nt=Config.location,distance:lt=Config.distance,threshold:ut=Config.threshold,findAllMatches:dt=Config.findAllMatches,minMatchCharLength:pt=Config.minMatchCharLength,includeMatches:ht=Config.includeMatches,ignoreLocation:mt=Config.ignoreLocation}={}){if(tt.length>MAX_BITS)throw new Error(PATTERN_LENGTH_TOO_LARGE(MAX_BITS));const xt=tt.length,Mt=et.length,vt=Math.max(0,Math.min(nt,Mt));let Ot=ut,At=vt;const Rt=pt>1||ht,zt=Rt?Array(Mt):[];let Tt;for(;(Tt=et.indexOf(tt,At))>-1;){let Nt=computeScore$1(tt,{currentLocation:Tt,expectedLocation:vt,distance:lt,ignoreLocation:mt});if(Ot=Math.min(Nt,Ot),At=Tt+xt,Rt){let Yt=0;for(;Yt<xt;)zt[Tt+Yt]=1,Yt+=1}}At=-1;let Ct=[],It=1,Dt=xt+Mt;const kt=1<<xt-1;for(let Nt=0;Nt<xt;Nt+=1){let Yt=0,Kt=Dt;for(;Yt<Kt;)computeScore$1(tt,{errors:Nt,currentLocation:vt+Kt,expectedLocation:vt,distance:lt,ignoreLocation:mt})<=Ot?Yt=Kt:Dt=Kt,Kt=Math.floor((Dt-Yt)/2+Yt);Dt=Kt;let Jt=Math.max(1,vt-Kt+1),Qt=dt?Mt:Math.min(vt+Kt,Mt)+xt,Bt=Array(Qt+2);Bt[Qt+1]=(1<<Nt)-1;for(let $t=Qt;$t>=Jt;$t-=1){let jt=$t-1,Wt=rt[et.charAt(jt)];if(Rt&&(zt[jt]=+!!Wt),Bt[$t]=(Bt[$t+1]<<1|1)&Wt,Nt&&(Bt[$t]|=(Ct[$t+1]|Ct[$t])<<1|1|Ct[$t+1]),Bt[$t]&kt&&(It=computeScore$1(tt,{errors:Nt,currentLocation:jt,expectedLocation:vt,distance:lt,ignoreLocation:mt}),It<=Ot)){if(Ot=It,At=jt,At<=vt)break;Jt=Math.max(1,2*vt-At)}}if(computeScore$1(tt,{errors:Nt+1,currentLocation:vt,expectedLocation:vt,distance:lt,ignoreLocation:mt})>Ot)break;Ct=Bt}const qt={isMatch:At>=0,score:Math.max(.001,It)};if(Rt){const Nt=convertMaskToIndices(zt,pt);Nt.length?ht&&(qt.indices=Nt):qt.isMatch=!1}return qt}function createPatternAlphabet(et){let tt={};for(let rt=0,nt=et.length;rt<nt;rt+=1){const lt=et.charAt(rt);tt[lt]=(tt[lt]||0)|1<<nt-rt-1}return tt}class BitapSearch{constructor(tt,{location:rt=Config.location,threshold:nt=Config.threshold,distance:lt=Config.distance,includeMatches:ut=Config.includeMatches,findAllMatches:dt=Config.findAllMatches,minMatchCharLength:pt=Config.minMatchCharLength,isCaseSensitive:ht=Config.isCaseSensitive,ignoreLocation:mt=Config.ignoreLocation}={}){if(this.options={location:rt,threshold:nt,distance:lt,includeMatches:ut,findAllMatches:dt,minMatchCharLength:pt,isCaseSensitive:ht,ignoreLocation:mt},this.pattern=ht?tt:tt.toLowerCase(),this.chunks=[],!this.pattern.length)return;const xt=(vt,Ot)=>{this.chunks.push({pattern:vt,alphabet:createPatternAlphabet(vt),startIndex:Ot})},Mt=this.pattern.length;if(Mt>MAX_BITS){let vt=0;const Ot=Mt%MAX_BITS,At=Mt-Ot;for(;vt<At;)xt(this.pattern.substr(vt,MAX_BITS),vt),vt+=MAX_BITS;if(Ot){const Rt=Mt-MAX_BITS;xt(this.pattern.substr(Rt),Rt)}}else xt(this.pattern,0)}searchIn(tt){const{isCaseSensitive:rt,includeMatches:nt}=this.options;if(rt||(tt=tt.toLowerCase()),this.pattern===tt){let At={isMatch:!0,score:0};return nt&&(At.indices=[[0,tt.length-1]]),At}const{location:lt,distance:ut,threshold:dt,findAllMatches:pt,minMatchCharLength:ht,ignoreLocation:mt}=this.options;let xt=[],Mt=0,vt=!1;this.chunks.forEach(({pattern:At,alphabet:Rt,startIndex:zt})=>{const{isMatch:Tt,score:Ct,indices:It}=search(tt,At,Rt,{location:lt+zt,distance:ut,threshold:dt,findAllMatches:pt,minMatchCharLength:ht,includeMatches:nt,ignoreLocation:mt});Tt&&(vt=!0),Mt+=Ct,Tt&&It&&(xt=[...xt,...It])});let Ot={isMatch:vt,score:vt?Mt/this.chunks.length:1};return vt&&nt&&(Ot.indices=xt),Ot}}class BaseMatch{constructor(tt){this.pattern=tt}static isMultiMatch(tt){return getMatch(tt,this.multiRegex)}static isSingleMatch(tt){return getMatch(tt,this.singleRegex)}search(){}}function getMatch(et,tt){const rt=et.match(tt);return rt?rt[1]:null}class ExactMatch extends BaseMatch{constructor(tt){super(tt)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(tt){const rt=tt===this.pattern;return{isMatch:rt,score:rt?0:1,indices:[0,this.pattern.length-1]}}}class InverseExactMatch extends BaseMatch{constructor(tt){super(tt)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(tt){const nt=tt.indexOf(this.pattern)===-1;return{isMatch:nt,score:nt?0:1,indices:[0,tt.length-1]}}}class PrefixExactMatch extends BaseMatch{constructor(tt){super(tt)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(tt){const rt=tt.startsWith(this.pattern);return{isMatch:rt,score:rt?0:1,indices:[0,this.pattern.length-1]}}}class InversePrefixExactMatch extends BaseMatch{constructor(tt){super(tt)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(tt){const rt=!tt.startsWith(this.pattern);return{isMatch:rt,score:rt?0:1,indices:[0,tt.length-1]}}}class SuffixExactMatch extends BaseMatch{constructor(tt){super(tt)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(tt){const rt=tt.endsWith(this.pattern);return{isMatch:rt,score:rt?0:1,indices:[tt.length-this.pattern.length,tt.length-1]}}}class InverseSuffixExactMatch extends BaseMatch{constructor(tt){super(tt)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(tt){const rt=!tt.endsWith(this.pattern);return{isMatch:rt,score:rt?0:1,indices:[0,tt.length-1]}}}class FuzzyMatch extends BaseMatch{constructor(tt,{location:rt=Config.location,threshold:nt=Config.threshold,distance:lt=Config.distance,includeMatches:ut=Config.includeMatches,findAllMatches:dt=Config.findAllMatches,minMatchCharLength:pt=Config.minMatchCharLength,isCaseSensitive:ht=Config.isCaseSensitive,ignoreLocation:mt=Config.ignoreLocation}={}){super(tt),this._bitapSearch=new BitapSearch(tt,{location:rt,threshold:nt,distance:lt,includeMatches:ut,findAllMatches:dt,minMatchCharLength:pt,isCaseSensitive:ht,ignoreLocation:mt})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(tt){return this._bitapSearch.searchIn(tt)}}class IncludeMatch extends BaseMatch{constructor(tt){super(tt)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(tt){let rt=0,nt;const lt=[],ut=this.pattern.length;for(;(nt=tt.indexOf(this.pattern,rt))>-1;)rt=nt+ut,lt.push([nt,rt-1]);const dt=!!lt.length;return{isMatch:dt,score:dt?0:1,indices:lt}}}const searchers=[ExactMatch,IncludeMatch,PrefixExactMatch,InversePrefixExactMatch,InverseSuffixExactMatch,SuffixExactMatch,InverseExactMatch,FuzzyMatch],searchersLen=searchers.length,SPACE_RE=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OR_TOKEN="|";function parseQuery(et,tt={}){return et.split(OR_TOKEN).map(rt=>{let nt=rt.trim().split(SPACE_RE).filter(ut=>ut&&!!ut.trim()),lt=[];for(let ut=0,dt=nt.length;ut<dt;ut+=1){const pt=nt[ut];let ht=!1,mt=-1;for(;!ht&&++mt<searchersLen;){const xt=searchers[mt];let Mt=xt.isMultiMatch(pt);Mt&&(lt.push(new xt(Mt,tt)),ht=!0)}if(!ht)for(mt=-1;++mt<searchersLen;){const xt=searchers[mt];let Mt=xt.isSingleMatch(pt);if(Mt){lt.push(new xt(Mt,tt));break}}}return lt})}const MultiMatchSet=new Set([FuzzyMatch.type,IncludeMatch.type]);class ExtendedSearch{constructor(tt,{isCaseSensitive:rt=Config.isCaseSensitive,includeMatches:nt=Config.includeMatches,minMatchCharLength:lt=Config.minMatchCharLength,ignoreLocation:ut=Config.ignoreLocation,findAllMatches:dt=Config.findAllMatches,location:pt=Config.location,threshold:ht=Config.threshold,distance:mt=Config.distance}={}){this.query=null,this.options={isCaseSensitive:rt,includeMatches:nt,minMatchCharLength:lt,findAllMatches:dt,ignoreLocation:ut,location:pt,threshold:ht,distance:mt},this.pattern=rt?tt:tt.toLowerCase(),this.query=parseQuery(this.pattern,this.options)}static condition(tt,rt){return rt.useExtendedSearch}searchIn(tt){const rt=this.query;if(!rt)return{isMatch:!1,score:1};const{includeMatches:nt,isCaseSensitive:lt}=this.options;tt=lt?tt:tt.toLowerCase();let ut=0,dt=[],pt=0;for(let ht=0,mt=rt.length;ht<mt;ht+=1){const xt=rt[ht];dt.length=0,ut=0;for(let Mt=0,vt=xt.length;Mt<vt;Mt+=1){const Ot=xt[Mt],{isMatch:At,indices:Rt,score:zt}=Ot.search(tt);if(At){if(ut+=1,pt+=zt,nt){const Tt=Ot.constructor.type;MultiMatchSet.has(Tt)?dt=[...dt,...Rt]:dt.push(Rt)}}else{pt=0,ut=0,dt.length=0;break}}if(ut){let Mt={isMatch:!0,score:pt/ut};return nt&&(Mt.indices=dt),Mt}}return{isMatch:!1,score:1}}}const registeredSearchers=[];function register(...et){registeredSearchers.push(...et)}function createSearcher(et,tt){for(let rt=0,nt=registeredSearchers.length;rt<nt;rt+=1){let lt=registeredSearchers[rt];if(lt.condition(et,tt))return new lt(et,tt)}return new BitapSearch(et,tt)}const LogicalOperator={AND:"$and",OR:"$or"},KeyType={PATH:"$path",PATTERN:"$val"},isExpression=et=>!!(et[LogicalOperator.AND]||et[LogicalOperator.OR]),isPath=et=>!!et[KeyType.PATH],isLeaf=et=>!isArray$1(et)&&isObject$1(et)&&!isExpression(et),convertToExplicit=et=>({[LogicalOperator.AND]:Object.keys(et).map(tt=>({[tt]:et[tt]}))});function parse(et,tt,{auto:rt=!0}={}){const nt=lt=>{let ut=Object.keys(lt);const dt=isPath(lt);if(!dt&&ut.length>1&&!isExpression(lt))return nt(convertToExplicit(lt));if(isLeaf(lt)){const ht=dt?lt[KeyType.PATH]:ut[0],mt=dt?lt[KeyType.PATTERN]:lt[ht];if(!isString$2(mt))throw new Error(LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY(ht));const xt={keyId:createKeyId(ht),pattern:mt};return rt&&(xt.searcher=createSearcher(mt,tt)),xt}let pt={children:[],operator:ut[0]};return ut.forEach(ht=>{const mt=lt[ht];isArray$1(mt)&&mt.forEach(xt=>{pt.children.push(nt(xt))})}),pt};return isExpression(et)||(et=convertToExplicit(et)),nt(et)}function computeScore(et,{ignoreFieldNorm:tt=Config.ignoreFieldNorm}){et.forEach(rt=>{let nt=1;rt.matches.forEach(({key:lt,norm:ut,score:dt})=>{const pt=lt?lt.weight:null;nt*=Math.pow(dt===0&&pt?Number.EPSILON:dt,(pt||1)*(tt?1:ut))}),rt.score=nt})}function transformMatches(et,tt){const rt=et.matches;tt.matches=[],isDefined(rt)&&rt.forEach(nt=>{if(!isDefined(nt.indices)||!nt.indices.length)return;const{indices:lt,value:ut}=nt;let dt={indices:lt,value:ut};nt.key&&(dt.key=nt.key.src),nt.idx>-1&&(dt.refIndex=nt.idx),tt.matches.push(dt)})}function transformScore(et,tt){tt.score=et.score}function format(et,tt,{includeMatches:rt=Config.includeMatches,includeScore:nt=Config.includeScore}={}){const lt=[];return rt&&lt.push(transformMatches),nt&&lt.push(transformScore),et.map(ut=>{const{idx:dt}=ut,pt={item:tt[dt],refIndex:dt};return lt.length&&lt.forEach(ht=>{ht(ut,pt)}),pt})}class Fuse{constructor(tt,rt={},nt){this.options={...Config,...rt},this.options.useExtendedSearch,this._keyStore=new KeyStore(this.options.keys),this.setCollection(tt,nt)}setCollection(tt,rt){if(this._docs=tt,rt&&!(rt instanceof FuseIndex))throw new Error(INCORRECT_INDEX_TYPE);this._myIndex=rt||createIndex(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(tt){isDefined(tt)&&(this._docs.push(tt),this._myIndex.add(tt))}remove(tt=()=>!1){const rt=[];for(let nt=0,lt=this._docs.length;nt<lt;nt+=1){const ut=this._docs[nt];tt(ut,nt)&&(this.removeAt(nt),nt-=1,lt-=1,rt.push(ut))}return rt}removeAt(tt){this._docs.splice(tt,1),this._myIndex.removeAt(tt)}getIndex(){return this._myIndex}search(tt,{limit:rt=-1}={}){const{includeMatches:nt,includeScore:lt,shouldSort:ut,sortFn:dt,ignoreFieldNorm:pt}=this.options;let ht=isString$2(tt)?isString$2(this._docs[0])?this._searchStringList(tt):this._searchObjectList(tt):this._searchLogical(tt);return computeScore(ht,{ignoreFieldNorm:pt}),ut&&ht.sort(dt),isNumber$2(rt)&&rt>-1&&(ht=ht.slice(0,rt)),format(ht,this._docs,{includeMatches:nt,includeScore:lt})}_searchStringList(tt){const rt=createSearcher(tt,this.options),{records:nt}=this._myIndex,lt=[];return nt.forEach(({v:ut,i:dt,n:pt})=>{if(!isDefined(ut))return;const{isMatch:ht,score:mt,indices:xt}=rt.searchIn(ut);ht&&lt.push({item:ut,idx:dt,matches:[{score:mt,value:ut,norm:pt,indices:xt}]})}),lt}_searchLogical(tt){const rt=parse(tt,this.options),nt=(pt,ht,mt)=>{if(!pt.children){const{keyId:Mt,searcher:vt}=pt,Ot=this._findMatches({key:this._keyStore.get(Mt),value:this._myIndex.getValueForItemAtKeyId(ht,Mt),searcher:vt});return Ot&&Ot.length?[{idx:mt,item:ht,matches:Ot}]:[]}const xt=[];for(let Mt=0,vt=pt.children.length;Mt<vt;Mt+=1){const Ot=pt.children[Mt],At=nt(Ot,ht,mt);if(At.length)xt.push(...At);else if(pt.operator===LogicalOperator.AND)return[]}return xt},lt=this._myIndex.records,ut={},dt=[];return lt.forEach(({$:pt,i:ht})=>{if(isDefined(pt)){let mt=nt(rt,pt,ht);mt.length&&(ut[ht]||(ut[ht]={idx:ht,item:pt,matches:[]},dt.push(ut[ht])),mt.forEach(({matches:xt})=>{ut[ht].matches.push(...xt)}))}}),dt}_searchObjectList(tt){const rt=createSearcher(tt,this.options),{keys:nt,records:lt}=this._myIndex,ut=[];return lt.forEach(({$:dt,i:pt})=>{if(!isDefined(dt))return;let ht=[];nt.forEach((mt,xt)=>{ht.push(...this._findMatches({key:mt,value:dt[xt],searcher:rt}))}),ht.length&&ut.push({idx:pt,item:dt,matches:ht})}),ut}_findMatches({key:tt,value:rt,searcher:nt}){if(!isDefined(rt))return[];let lt=[];if(isArray$1(rt))rt.forEach(({v:ut,i:dt,n:pt})=>{if(!isDefined(ut))return;const{isMatch:ht,score:mt,indices:xt}=nt.searchIn(ut);ht&&lt.push({score:mt,key:tt,value:ut,idx:dt,norm:pt,indices:xt})});else{const{v:ut,n:dt}=rt,{isMatch:pt,score:ht,indices:mt}=nt.searchIn(ut);pt&&lt.push({score:ht,key:tt,value:ut,norm:dt,indices:mt})}return lt}}Fuse.version="7.0.0";Fuse.createIndex=createIndex;Fuse.parseIndex=parseIndex;Fuse.config=Config;Fuse.parseQuery=parse;register(ExtendedSearch);const patientData$1=[{patientId:453418,patientName:"Jonathon Washington",gender:"Male",MRN:"180293",DOB:"Apr-12-1952",careplanName:"Prostate VMAT 6000/30",patientStatus:"Pretreatment",dynamicAlertCategory:"Overdue",firstTreatmentDate:"Mar-25-2024",firstTreatmentTime:"10:00 AM",firstTreatmentLocation:"Fairfield",firstTreatmentStatus:"Queued",initialConsultAppntDate:"Mar-01-2024",initialConsultAppntTime:"10:30 AM",initialConsultStatus:"Completed",initialConsultAdditionalInfo:"-",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-01-2024",preAuthStatus:"Completed",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-01-2024",SIMRequestStatus:"Completed",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-01-2024",prescriptionStatus:"Completed",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-04-2024",complianceDocsStatus:"Completed",complianceDocsAdditionalInfo:"-",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-08-2024",simulationAppntTime:"10:00 AM",simulationStatus:"Completed",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Mar-08-2024",fusionStatus:"Completed",fusionOwner:"Planning Team",targetVolumeDueDate:"Mar-11-2024",targetVolumeStatus:"Completed",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-11-2024",contouringStatus:"Completed",contouringOwner:"Planning Team",planApprovalDueDate:"Mar-20-2024",planApprovalStatus:"Overdue",planApprovalOwner:"Dr Ray Smith"},{patientId:36586,patientName:"Adam McAdams",gender:"Male",MRN:"023617",DOB:"Mar-25-1987",careplanName:"RT Brain VMAT 6000/30",patientStatus:"Pretreatment",dynamicAlertCategory:"Due today",firstTreatmentDate:"Mar-26-2024",firstTreatmentTime:"11:00 AM",firstTreatmentLocation:"Lincoln",firstTreatmentStatus:"Old Start",initialConsultAppntDate:"Mar-01-2024",initialConsultAppntTime:"11:10 AM",initialConsultStatus:"Completed",initialConsultAdditionalInfo:"-",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-01-2024",preAuthStatus:"Completed",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-01-2024",SIMRequestStatus:"Completed",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-01-2024",prescriptionStatus:"Completed",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-04-2024",complianceDocsStatus:"Completed",complianceDocsAdditionalInfo:"-",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-11-2024",simulationAppntTime:"11:00 AM",simulationStatus:"Completed",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Mar-11-2024",fusionStatus:"Completed",fusionOwner:"Planning Team",targetVolumeDueDate:"Mar-12-2024",targetVolumeStatus:"Completed",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-12-2024",contouringStatus:"Completed",contouringOwner:"Planning Team",planApprovalDueDate:"Mar-21-2024",planApprovalStatus:"Overdue",planApprovalOwner:"Dr Ray Smith"},{patientId:10570,patientName:"Olivia Taylor",gender:"Female",MRN:"181452",DOB:"Sep-01-1955",careplanName:"Breast+SCF+Ax VMAT 5000/25 + Boost e1000/5",patientStatus:"Pretreatment",dynamicAlertCategory:"Due today",firstTreatmentDate:"Mar-27-2024",firstTreatmentTime:"10:30 AM",firstTreatmentLocation:"Fairfield",firstTreatmentStatus:"New Start",initialConsultAppntDate:"Mar-04-2024",initialConsultAppntTime:"11:30 AM",initialConsultStatus:"Completed",initialConsultAdditionalInfo:"-",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-04-2024",preAuthStatus:"Completed",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-04-2024",SIMRequestStatus:"Completed",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-04-2024",prescriptionStatus:"Completed",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-09-2024",complianceDocsStatus:"Completed",complianceDocsAdditionalInfo:"-",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-11-2024",simulationAppntTime:"10:30 AM",simulationStatus:"Completed",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Not applicable",fusionStatus:"Not applicable",fusionOwner:"Not applicable",targetVolumeDueDate:"Mar-14-2024",targetVolumeStatus:"Completed",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-14-2024",contouringStatus:"Completed",contouringOwner:"Planning Team",planApprovalDueDate:"Mar-22-2024",planApprovalStatus:"Due today",planApprovalOwner:"Dr Ray Smith"},{patientId:90051162,patientName:"Grace",gender:"Female",MRN:"182246",DOB:"Jan-20-1957",careplanName:"Breast + SCF + Axilla VMAT 5000/25 (Left)",patientStatus:"Pretreatment",dynamicAlertCategory:"Due today",firstTreatmentDate:"Apr-02-2024",firstTreatmentTime:"1:00 PM",firstTreatmentLocation:"Fairfield",firstTreatmentStatus:"New Start",initialConsultAppntDate:"Mar-04-2024",initialConsultAppntTime:"3:00 PM",initialConsultStatus:"Completed",initialConsultAdditionalInfo:"-",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-04-2024",preAuthStatus:"Completed",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-04-2024",SIMRequestStatus:"Completed",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-04-2024",prescriptionStatus:"Completed",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-09-2024",complianceDocsStatus:"Completed",complianceDocsAdditionalInfo:"-",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-11-2024",simulationAppntTime:"1:00 PM",simulationStatus:"Completed",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Mar-11-2024",fusionStatus:"Completed",fusionOwner:"Planning Team",targetVolumeDueDate:"Mar-15-2024",targetVolumeStatus:"Completed",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-15-2024",contouringStatus:"Completed",contouringOwner:"Planning Team",planApprovalDueDate:"Mar-26-2024",planApprovalStatus:"To do",planApprovalOwner:"Dr Ray Smith",treatment:[{date:"Due today",status:"Due today",fractions:"1-5",owner:"Dr. Ray Smith",showRecordOtv:!0},{date:"Mar-25-2024",status:"Not started",fractions:"6-10",owner:"Dr. Ray Smith",showRecordOtv:!1},{date:"Apr-01-2024",status:"Not started",fractions:"11-15",owner:"Dr. Ray Smith",showRecordOtv:!1},{date:"Apr-08-2024",status:"Not started",fractions:"16-20",owner:"Dr. Ray Smith",showRecordOtv:!1},{date:"Apr-15-2024",status:"Not started",fractions:"21-25",owner:"Dr. Ray Smith",showRecordOtv:!1}]},{patientId:451435,patientName:"Alex Smith",gender:"Male",MRN:"197654",DOB:"Jun-03-1966",careplanName:"Lung VMAT 4000/20",patientStatus:"Pretreatment",dynamicAlertCategory:"-",firstTreatmentDate:"Apr-03-2024",firstTreatmentTime:"9:00 AM",firstTreatmentLocation:"Lincoln",firstTreatmentStatus:"Old Start",initialConsultAppntDate:"Mar-06-2024",initialConsultAppntTime:"9:30 AM",initialConsultStatus:"Completed",initialConsultAdditionalInfo:"-",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-06-2024",preAuthStatus:"Completed",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-06-2024",SIMRequestStatus:"Completed",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-06-2024",prescriptionStatus:"Completed",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-11-2024",complianceDocsStatus:"Completed",complianceDocsAdditionalInfo:"-",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-14-2024",simulationAppntTime:"9:00 AM",simulationStatus:"Completed",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Mar-14-2024",fusionStatus:"Completed",fusionOwner:"Planning Team",targetVolumeDueDate:"Mar-18-2024",targetVolumeStatus:"Overdue",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-22-2024",contouringStatus:"Due today",contouringOwner:"Planning Team",planApprovalDueDate:"Mar-27-2024",planApprovalStatus:"To do",planApprovalOwner:"Dr Ray Smith"},{patientId:8860,patientName:"Jane Becker",gender:"Female",MRN:"165444",DOB:"Jun-29-1959",careplanName:"Breast VMAT 5000/25",patientStatus:"Pretreatment",dynamicAlertCategory:"-",firstTreatmentDate:"Apr-08-2024",firstTreatmentTime:"12:00 PM",firstTreatmentLocation:"Fairfield",firstTreatmentStatus:"New Start",initialConsultAppntDate:"Mar-06-2024",initialConsultAppntTime:"12:45 PM",initialConsultStatus:"Completed",initialConsultAdditionalInfo:"-",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-06-2024",preAuthStatus:"Completed",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-06-2024",SIMRequestStatus:"Completed",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-06-2024",prescriptionStatus:"Completed",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-12-2024",complianceDocsStatus:"Completed",complianceDocsAdditionalInfo:"-",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-14-2024",simulationAppntTime:"12:00 PM",simulationStatus:"Completed",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Not applicable",fusionStatus:"Not applicable",fusionOwner:"Not applicable",targetVolumeDueDate:"Mar-22-2024",targetVolumeStatus:"Due today",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-23-2024",contouringStatus:"To do",contouringOwner:"Planning Team",planApprovalDueDate:"Apr-02-2024",planApprovalStatus:"To do",planApprovalOwner:"Dr Ray Smith"},{patientId:32117,patientName:"Sarah Nelson",gender:"Female",MRN:"113455",DOB:"Dec-23-1978",careplanName:"Pelvis VMAT 5000/25",patientStatus:"Pretreatment",dynamicAlertCategory:"-",firstTreatmentDate:"Apr-09-2024",firstTreatmentTime:"9:45 AM",firstTreatmentLocation:"Lincoln",firstTreatmentStatus:"New Start",initialConsultAppntDate:"Mar-07-2024",initialConsultAppntTime:"9:15 AM",initialConsultStatus:"Completed",initialConsultAdditionalInfo:"-",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-07-2024",preAuthStatus:"Completed",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-07-2024",SIMRequestStatus:"Completed",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-07-2024",prescriptionStatus:"Completed",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-15-2024",complianceDocsStatus:"Overdue",complianceDocsAdditionalInfo:"2/5 completed",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-18-2024",simulationAppntTime:"9:45 AM",simulationStatus:"Completed",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Not applicable",fusionStatus:"Not applicable",fusionOwner:"Not applicable",targetVolumeDueDate:"Mar-23-2024",targetVolumeStatus:"To do",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-23-2024",contouringStatus:"To do",contouringOwner:"Planning Team",planApprovalDueDate:"Apr-03-2024",planApprovalStatus:"To do",planApprovalOwner:"Dr Ray Smith"},{patientId:21711,patientName:"Peter Brown",gender:"Male",MRN:"137788",DOB:"Nov-24-1971",careplanName:"Prostate VMAT 6000/30",patientStatus:"Pretreatment",dynamicAlertCategory:"-",firstTreatmentDate:"Apr-09-2024",firstTreatmentTime:"3:00 PM",firstTreatmentLocation:"Lincoln",firstTreatmentStatus:"New Start",initialConsultAppntDate:"Mar-11-2024",initialConsultAppntTime:"3:10 PM",initialConsultStatus:"Completed",initialConsultAdditionalInfo:"-",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-11-2024",preAuthStatus:"Completed",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-11-2024",SIMRequestStatus:"Completed",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-11-2024",prescriptionStatus:"Completed",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-15-2024",complianceDocsStatus:"Overdue",complianceDocsAdditionalInfo:"0/5 completed",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-18-2024",simulationAppntTime:"3:00 PM",simulationStatus:"Completed",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Mar-18-2024",fusionStatus:"Completed",fusionOwner:"Planning Team",targetVolumeDueDate:"Mar-24-2024",targetVolumeStatus:"To do",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-24-2024",contouringStatus:"To do",contouringOwner:"Planning Team",planApprovalDueDate:"Apr-03-2024",planApprovalStatus:"To do",planApprovalOwner:"Dr Ray Smith"},{patientId:5515,patientName:"James Maple",gender:"Male",MRN:"165533",DOB:"Apr-22-1942",careplanName:"LT Brain VMAT 6000/30",patientStatus:"Pretreatment",dynamicAlertCategory:"-",firstTreatmentDate:"Apr-10-2024",firstTreatmentTime:"10:15 AM",firstTreatmentLocation:"Fairfield",firstTreatmentStatus:"New Start",initialConsultAppntDate:"Mar-22-2024",initialConsultAppntTime:"10:55 AM",initialConsultStatus:"To do",initialConsultAdditionalInfo:"Referral letter",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-22-2024",preAuthStatus:"Due today",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-26-2024",SIMRequestStatus:"Due today",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-26-2024",prescriptionStatus:"Due today",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-22-2024",complianceDocsStatus:"Due today",complianceDocsAdditionalInfo:"-",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-29-2024",simulationAppntTime:"10:15 AM",simulationStatus:"To do",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Mar-29-2024",fusionStatus:"To do",fusionOwner:"Planning Team",targetVolumeDueDate:"Mar-27-2024",targetVolumeStatus:"To do",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-27-2024",contouringStatus:"To do",contouringOwner:"Planning Team",planApprovalDueDate:"Apr-04-2024",planApprovalStatus:"To do",planApprovalOwner:"Dr Ray Smith"},{patientId:8213,patientName:"Mary White",gender:"Female",MRN:"193399",DOB:"Jul-30-1973",careplanName:"Oesophagus VMAT 6000/30",patientStatus:"Pretreatment",dynamicAlertCategory:"-",firstTreatmentDate:"Apr-10-2024",firstTreatmentTime:"2:15 PM",firstTreatmentLocation:"Fairfield",firstTreatmentStatus:"New Start",initialConsultAppntDate:"Mar-26-2024",initialConsultAppntTime:"2:35 PM",initialConsultStatus:"To do",initialConsultAdditionalInfo:"Referral letter",initialConsultOwner:"Dr Ray Smith",preAuthDueDate:"Mar-26-2024",preAuthStatus:"To do",preAuthOwner:"Dr Ray Smith",SIMRequestDueDate:"Mar-26-2024",SIMRequestStatus:"To do",SIMRequestOwner:"Dr Ray Smith",prescriptionDueDate:"Mar-26-2024",prescriptionStatus:"To do",prescriptionOwner:"Dr Ray Smith",complianceDocsDueDate:"Mar-26-2024",complianceDocsStatus:"To do",complianceDocsAdditionalInfo:"-",complianceDocsOwner:"Dr Ray Smith",simulationAppntDueDate:"Mar-29-2024",simulationAppntTime:"2:15 PM",simulationStatus:"To do",simulationAdditionalInfo:"-",simulationOwner:"Planning Team",fusionDueDate:"Mar-29-2024",fusionStatus:"To do",fusionOwner:"Planning Team",targetVolumeDueDate:"Mar-27-2024",targetVolumeStatus:"To do",targetVolumeOwner:"Dr Ray Smith",contouringDueDate:"Mar-27-2024",contouringStatus:"To do",contouringOwner:"Planning Team",planApprovalDueDate:"Apr-04-2024",planApprovalStatus:"To do",planApprovalOwner:"Dr Ray Smith"}],HtmlTooltip=styled$1(({className:et,...tt})=>jsxRuntimeExports.jsx(Tooltip,{...tt,arrow:!0,classes:{popper:et},enterDelay:200}))(({theme:et})=>({[`& .${tooltipClasses.tooltip}`]:{maxWidth:300,fontSize:"14px",border:"1px solid #dadde9",background:"#fff",backgroundColor:"#F8F7FF",color:"black",boxShadow:" 0px 4px 8px rgb(113 110 106 / 50%)",position:"relative",top:-20},[`& .${tooltipClasses.arrow}`]:{color:"#fff","&:before":{border:"1px solid #dadde9"}}})),TooltipContainer=et=>{const{tooltipType:tt,treatmentWeek:rt,patient:nt}=et,lt=useHistory(),ut=nt.patientId,dt=rt?rt-1:0;return jsxRuntimeExports.jsxs("div",{className:"patient-tracker-tool-tip-container",children:[tt==="initialConsult"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Initial Consult"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Appointment:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsxs("td",{className:"value",children:[nt.initialConsultAppntDate," ",nt.initialConsultAppntTime]})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.initialConsultStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Additional Info:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.initialConsultAdditionalInfo})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.initialConsultOwner})]})]})})]}),tt==="preAuth"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Pre-Auth"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.preAuthDueDate})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.preAuthStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.preAuthOwner})]})]})})]}),tt==="SIMRequest"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"SIM Request"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.SIMRequestDueDate})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.SIMRequestStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.SIMRequestOwner})]})]})}),nt.SIMRequestStatus!=="Completed"&&jsxRuntimeExports.jsxs("button",{onClick:()=>{lt.push(`/radiation/patient/${ut}/careplan/create/`)},children:[jsxRuntimeExports.jsx(AddIcon$1,{sx:{position:"relative",left:"-5px",top:"-1px"}}),jsxRuntimeExports.jsx("span",{children:"Create SIM Request"})]})]}),tt==="prescription"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Prescription"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.prescriptionDueDate})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.prescriptionStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.prescriptionOwner})]})]})}),nt.prescriptionStatus!=="Completed"&&jsxRuntimeExports.jsxs("button",{onClick:()=>{lt.push(`/radiation/patient/${ut}/careplan/create/`)},children:[jsxRuntimeExports.jsx(AddIcon$1,{sx:{position:"relative",left:"-5px",top:"-1px"}}),jsxRuntimeExports.jsx("span",{children:"Create Careplan"})]})]}),tt==="complianceDocs"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Compliance Documents"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.complianceDocsDueDate})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.complianceDocsStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Additional Info:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.complianceDocsAdditionalInfo})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.complianceDocsOwner})]})]})})]}),tt==="simulation"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Simulation"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Appointment:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsxs("td",{className:"value",children:[nt.simulationAppntDueDate," ",nt.simulationAppntTime]})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.simulationStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Additional Info:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.simulationAdditionalInfo})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.simulationOwner})]})]})})]}),tt==="fusion"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Fusion"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.fusionDueDate})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.fusionStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.fusionOwner})]})]})})]}),tt==="targetVolume"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Target Volume"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.targetVolumeDueDate})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.targetVolumeStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.targetVolumeOwner})]})]})})]}),tt==="contouring"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Contouring"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.contouringDueDate})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.contouringStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.contouringOwner})]})]})})]}),tt==="planApproval"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{color:"inherit",className:"heading",children:"Plan Approval"}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.planApprovalDueDate})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.planApprovalStatus})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.planApprovalOwner})]})]})}),nt.planApprovalStatus!=="Completed"&&jsxRuntimeExports.jsxs("button",{children:[jsxRuntimeExports.jsx(EditNote,{style:{position:"relative",left:"-5px",top:"-1px"}}),jsxRuntimeExports.jsx("span",{children:"Review Plan"})]})]}),tt==="treatment"&&nt.treatment&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Typography,{color:"inherit",className:"heading",children:["Week ",rt," Fractions #",nt.treatment[dt].fractions]}),jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Due date:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.treatment[dt].date})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Status:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.treatment[dt].status})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"key",children:"Owner:"}),jsxRuntimeExports.jsx("td",{className:"spacing"}),jsxRuntimeExports.jsx("td",{className:"value",children:nt.treatment[dt].owner})]})]})}),nt.treatment[dt].showRecordOtv&&jsxRuntimeExports.jsx("button",{onClick:()=>{},children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",alignItems:"center",children:[jsxRuntimeExports.jsx(AddIcon$1,{sx:{position:"relative",left:"-5px",top:"-1px"}}),jsxRuntimeExports.jsx("span",{children:"Record OTV"})]})})]})]})};var ReportProblem={},_interopRequireDefault$1=interopRequireDefaultExports;Object.defineProperty(ReportProblem,"__esModule",{value:!0});var default_1$1=ReportProblem.default=void 0,_createSvgIcon$1=_interopRequireDefault$1(requireCreateSvgIcon()),_jsxRuntime$1=jsxRuntimeExports;default_1$1=ReportProblem.default=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"ReportProblem");const HEADERS=["Patients","First treatment","Initial consult","Pre-auth","SIM request","Prescription","Compliance documents","Simulation","Fusion","Target Volume","Contouring","Plan approval"],statusToColor$1=et=>{switch(et?et.toLowerCase():"to do"){case"due today":return"#FFBD5B";case"overdue":return"#FB6A76";case"complete":return"#081E43";case"completed":return"#081E43";default:return"unset"}},statusToIndeterminate=et=>{switch(et?et.toLowerCase():"to do"){case"due today":return!0;case"overdue":return!0;case"complete":return!1;case"completed":return!1;default:return!1}},isChecked=et=>et==="To do",PatientCheckboxes=et=>{const{date:tt,status:rt,treatmentWeek:nt,patientData:lt,tooltipType:ut,enableTooltip:dt}=et,pt=tt==="Not applicable"?"N/A":tt.replace("-2024","");return jsxRuntimeExports.jsx(HtmlTooltip,{disableHoverListener:!dt,title:jsxRuntimeExports.jsx(TooltipContainer,{tooltipType:ut,patient:lt,treatmentWeek:nt}),placement:"bottom-start",children:jsxRuntimeExports.jsx(FormControlLabel,{value:pt,control:jsxRuntimeExports.jsx(Checkbox$1,{style:{color:statusToColor$1(rt)},indeterminate:statusToIndeterminate(rt)}),label:pt,labelPlacement:"bottom",checked:!isChecked(rt)})})},PatientCell=et=>{const{patient:tt}=et,rt=tt.patientStatus=="Pretreatment"?"Pre-treatment":tt.patientStatus,nt=dt=>{const pt=Object.keys(dt);for(let xt=0;xt<pt.length;xt++){const Mt=dt[pt[xt]];if(Mt==="Overdue"&&pt[xt]!=="dynamicAlertCategory")return{alertKey:pt[xt],alertType:Mt};if(Mt==="Due today"&&pt[xt]!=="dynamicAlertCategory")return{alertKey:pt[xt],alertType:Mt}}return{alertKey:void 0,alertType:void 0}},{alertKey:lt,alertType:ut}=nt(tt);return jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"left",sx:{color:"#081E43"},children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx(Link$2,{to:`/radiation/patient/${tt.patientId}/summary`,style:{textDecoration:"none",color:"#081E43",padding:0},children:jsxRuntimeExports.jsxs(Typography,{variant:"h6",sx:{fontWeight:500,fontSize:"16px",textDecoration:"underline",lineHeight:"20px"},children:[tt.patientName," (",tt.gender[0],")"]})})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{fontWeight:400,fontSize:"14px"},children:["MRN: ",tt.MRN," | DOB: ",tt.DOB]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{fontWeight:400,color:"rgba(8,	30,	67,.6)"},children:tt.careplanName})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",justifyContent:"space-between",paddingTop:"10px"},children:[jsxRuntimeExports.jsx(Chip,{label:rt,style:{color:"#081E43",padding:"0px",backgroundColor:"rgba(116,93,229,.12)",borderRadius:"100px",height:"30px",width:"145px",textTransform:"capitalize"}}),ut&&lt&&jsxRuntimeExports.jsx(HtmlTooltip,{title:jsxRuntimeExports.jsx(TooltipContainer,{tooltipType:lt.replace("Status",""),patient:tt}),placement:"bottom-start",children:jsxRuntimeExports.jsx(default_1$1,{sx:{color:statusToColor$1(ut),marginLeft:"5px"}})})]})})]})},FirstTreatmentCell=et=>{const{patient:tt}=et;return jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"left",sx:{maxWidth:"250px"},style:{color:"#081E43"},children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{fontWeight:500},children:[tt.firstTreatmentDate," ",tt.firstTreatmentTime]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{fontWeight:500},children:["Clinic: ",tt.firstTreatmentLocation]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsxs(Typography,{variant:"body2",sx:{fontWeight:400,color:"rgba(8,	30,	67,.6)"},children:["Status: ",tt.firstTreatmentStatus]})})]})},PatientTable=et=>{if(!et)return null;const{patientData:tt}=et;return jsxRuntimeExports.jsx(TableContainer$6,{component:Paper,sx:{margin:"0 auto",marginTop:"15px",color:"#081E43",overflowX:"scroll",maxHeight:"90vh",backgroundColor:"white",paddingBottom:"125px"},children:jsxRuntimeExports.jsxs(Table$3,{sx:{maxHeight:500},stickyHeader:!0,children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsx(TableRow$7,{children:HEADERS.map((rt,nt)=>jsxRuntimeExports.jsx(TableCell,{align:rt=="Patients"?"left":"center",sx:{fontWeight:550,minWidth:nt==0?"250px":"100px",maxWidth:nt==0?"auto":"125px"},children:rt}))})}),jsxRuntimeExports.jsxs(TableBody$2,{sx:{overflow:"auto"},children:[tt.map((rt,nt)=>jsxRuntimeExports.jsxs(TableRow$7,{sx:{color:"#081E43","&:last-child td, &:last-child th":{border:0}},children:[jsxRuntimeExports.jsx(TableCell,{align:"left",component:"th",scope:"row",sx:{minWidth:"250px",maxWidth:"275px",borderRight:"1px solid lightgray"},children:jsxRuntimeExports.jsx(PatientCell,{patient:rt})}),jsxRuntimeExports.jsx(TableCell,{align:"left",component:"th",scope:"row",sx:{maxWidth:"150px"},children:jsxRuntimeExports.jsx(FirstTreatmentCell,{patient:rt})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.initialConsultAppntDate,status:rt.initialConsultStatus,patientData:rt,tooltipType:"initialConsult",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.preAuthDueDate,status:rt.preAuthStatus,patientData:rt,tooltipType:"preAuth",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.SIMRequestDueDate,status:rt.SIMRequestStatus,patientData:rt,tooltipType:"SIMRequest",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.prescriptionDueDate,status:rt.prescriptionStatus,patientData:rt,tooltipType:"prescription",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.complianceDocsDueDate,status:rt.complianceDocsStatus,patientData:rt,tooltipType:"complianceDocs",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.simulationAppntDueDate,status:rt.simulationStatus,patientData:rt,tooltipType:"simulation",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.fusionDueDate,status:rt.fusionStatus,patientData:rt,tooltipType:"fusion",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.targetVolumeDueDate,status:rt.targetVolumeStatus,patientData:rt,tooltipType:"targetVolume",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.contouringDueDate,status:rt.contouringStatus,patientData:rt,tooltipType:"contouring",enableTooltip:!0})}),jsxRuntimeExports.jsx(TableCell,{align:"center",component:"th",scope:"row",sx:{maxWidth:"125px"},children:jsxRuntimeExports.jsx(PatientCheckboxes,{date:rt.planApprovalDueDate,status:rt.planApprovalStatus,patientData:rt,tooltipType:"planApproval",enableTooltip:!0})})]},`${rt.patientName}+${nt}`)),jsxRuntimeExports.jsx(TableRow$7,{})]})]})})},CLINICS=[{label:"Sacramento",value:"Sacramento"},{label:"Roseville",value:"Roseville"},{label:"Fairfield",value:"Fairfield"},{label:"Lincoln",value:"Lincoln"}],STATUSES=[{label:"To do",value:"To do"},{label:"Due today",value:"Due today"},{label:"Overdue",value:"Overdue"},{label:"Complete",value:"Complete"}],TABS=[{key:"1",displayText:"show all"},{key:"2",displayText:"planning"},{key:"3",displayText:"on treatment"},{key:"4",displayText:"follow up"},{key:"5",displayText:"custom view 1"},{key:"6",displayText:"add view"}],PatientTracker=()=>{const[et,tt]=React$4.useState("2"),[rt,nt]=React$4.useState(void 0),[lt,ut]=React$4.useState(void 0),[dt,pt]=React$4.useState(""),[ht,mt]=React$4.useState(patientData$1),xt=(At,Rt)=>{let zt=patientData$1;At==="status"&&(Rt.length>0?(ut(Rt),zt=Ot(Rt,zt)):ut([]),rt&&rt.length>0&&(zt=vt(rt,zt)),dt!=""&&(zt=Mt(dt,zt))),At==="clinic"&&(Rt.length>0?(nt(Rt),zt=vt(Rt,zt)):nt(void 0),lt&&lt.length>0&&(zt=Ot(lt,zt)),dt!=""&&(zt=Mt(dt,zt))),At==="search"&&(Rt!=""?(pt(Rt),zt=Mt(Rt,zt)):pt(""),lt&&lt.length>0&&(zt=Ot(lt,zt)),rt&&rt.length>0&&(zt=vt(rt,zt))),mt(zt)},Mt=(At,Rt)=>{const zt={keys:["patientName"],threshold:.4};return new Fuse(Rt,zt).search(At).map(It=>It.item)},vt=(At,Rt)=>{const zt=At.map(Tt=>Tt.value);return Rt.filter(Tt=>zt.includes(Tt.firstTreatmentLocation))},Ot=(At,Rt)=>{const zt=At.map(Tt=>Tt.value);return Rt.filter(Tt=>zt.includes(Tt.firstTreatmentStatus)||zt.includes(Tt.preAuthStatus)||zt.includes(Tt.SIMRequestStatus)||zt.includes(Tt.prescriptionStatus)||zt.includes(Tt.complianceDocsStatus)||zt.includes(Tt.simulationStatus)||zt.includes(Tt.fusionStatus)||zt.includes(Tt.targetVolumeStatus)||zt.includes(Tt.contouringStatus)||zt.includes(Tt.planApprovalStatus))};return jsxRuntimeExports.jsx("div",{className:"RO-dashboard-wrapper",style:{padding:"20px 0"},children:jsxRuntimeExports.jsxs(StyledTile,{className:"careplan-dashboard-wrapper",style:{padding:"20px 0px 0px 20px"},children:[jsxRuntimeExports.jsx("div",{className:"filter-wrapper",id:"careplan-viewer-title",children:jsxRuntimeExports.jsx("div",{className:"table-title-style",children:"My Patients"})}),jsxRuntimeExports.jsx("div",{className:"filter-wrapper",children:jsxRuntimeExports.jsx(Grid,{container:!0,spacing:2,sx:{paddingBottom:"15px"},children:jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,children:jsxRuntimeExports.jsx(Tabs,{value:et,onChange:(At,Rt)=>{tt(Rt)},children:TABS.map(At=>jsxRuntimeExports.jsx(Tab,{value:At.key,label:jsxRuntimeExports.jsxs(Stack$5,{gap:"4px",alignItems:"center",direction:"row",fontWeight:600,children:[At.key=="6"&&jsxRuntimeExports.jsx(default_1$2,{fontSize:"small",style:{color:"#6B788E"}})," ",At.displayText]})},At.key))})})})}),jsxRuntimeExports.jsx("div",{className:"filter-wrapper",children:jsxRuntimeExports.jsxs(Grid,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2,children:[jsxRuntimeExports.jsx(TextField,{hiddenLabel:!0,id:"filled-hidden-label-small",placeholder:"Search patient name",variant:"filled",size:"small",sx:{maxWidth:"250px",backgroundColor:"unset",borderRadius:"8px","& .MuiInputBase-root":{backgroundColor:"unset"}},InputProps:{startAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"start",children:jsxRuntimeExports.jsx(Search,{})})},onKeyDown:At=>{At.key==="Enter"&&xt("search",At.target.value)},onChange:At=>{xt("search",At.target.value)}}),jsxRuntimeExports.jsx(ROSearchFilter,{showAlert:rt?(rt==null?void 0:rt.length)>0:!1,title:"CLINIC",id:"radiationOncologistFilter",startIcon:jsxRuntimeExports.jsx(default_1$4,{}),children:jsxRuntimeExports.jsx(MultiSelectWithSearch,{options:CLINICS,id:"multi-select-search-filter-by-practitioner",value:rt,label:"Clinics",placeholder:"Clinics",onChange:At=>{xt("clinic",At)},disableCloseOnSelect:!0})}),jsxRuntimeExports.jsx(ROSearchFilter,{showAlert:lt?(lt==null?void 0:lt.length)>0:!1,title:"STATUS",id:"radiationOncologistFilter",startIcon:jsxRuntimeExports.jsx(default_1$3,{}),children:jsxRuntimeExports.jsx(MultiSelectWithSearch,{options:STATUSES,id:"multi-select-search-filter-by-practitioner",value:lt,label:"Status",placeholder:"Select status",onChange:At=>{xt("status",At)},disableCloseOnSelect:!0})})]})}),jsxRuntimeExports.jsx("div",{className:"filter-wrapper",children:jsxRuntimeExports.jsx(Grid,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2,children:jsxRuntimeExports.jsx(PatientTable,{patientData:ht})})})]})})};var ChevronRight={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(ChevronRight,"__esModule",{value:!0});var default_1=ChevronRight.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports;default_1=ChevronRight.default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");const PathwayWrapper=styled$1("div")`
  position: relative;
  width: 100%;
  display: flex;
`,StyledPageHeader=styled$1("h2")`
  font-size: 23px;
  color: #081e43;
  margin-bottom: 16px;
`,HeaderRow=styled$1(TableRow$7)`
  &.MuiTableRow-root {
    border-width: 1px;
  }
`,HeaderCell=styled$1(TableCell)`
  &.MuiTableCell-root {
    font-weight: 600;
    text-align: center;
    max-width: 120px;
  }
`,DataCell=styled$1(TableCell)`
  &.MuiTableCell-root {
    font-weight: 400;
    text-align: center;
  }
`,patientData=patientData$1[3],FoldableCell=et=>{const{keyIndex:tt,value:rt,hideData:nt,onHideCallback:lt}=et;return jsxRuntimeExports.jsx(HeaderCell,{style:{minWidth:"270px",borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"rgba(224, 224, 224, 1)"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex"},onClick:()=>lt(tt,!nt),children:[nt?jsxRuntimeExports.jsx(default_1,{}):jsxRuntimeExports.jsx(default_1$j,{}),rt]})},`header-cell-${tt}`)},statusToColor=et=>{switch(et){case"Completed":return"#3EC490";case"In progress":return"#C55011";case"Not started":return"#081e43";default:return"#F8F8F8"}},StyledChip=styled$1(Chip)`
  &.MuiChip-outlined {
    border-color: ${et=>et.statusColor};
    color: ${et=>et.statusColor};
  }
`,DetailsCell=et=>{const{keyIndex:tt,name:rt,date:nt,status:lt,alert:ut}=et,dt=useTheme$1();return jsxRuntimeExports.jsx(DataCell,{style:{borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"rgba(224, 224, 224, 1)"},children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",textAlign:"left"},children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",children:rt}),jsxRuntimeExports.jsx(Typography,{variant:"body2",style:{color:"rgba(8,30,67, 0.6)"},children:dateToString(nt)}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:"16px"},children:[jsxRuntimeExports.jsx(StyledChip,{label:lt,variant:"outlined",statusColor:statusToColor(lt),style:{width:"fit-content"}}),ut&&jsxRuntimeExports.jsx(default_1$c,{style:{color:dt.palette.statusColors.simulation}})]})]})},tt)},dateToString=et=>et?hooks(et).format("MMM-DD-YYYY, h:mm a"):"-",DataTable=({header:et,data:tt,hideData:rt,keyIndex:nt,onHideCallback:lt,numberOfColumns:ut})=>{const dt=tt.length;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(HeaderRow,{children:[et.map((pt,ht)=>ht===0?jsxRuntimeExports.jsx(FoldableCell,{keyIndex:nt,value:pt,hideData:rt,onHideCallback:lt}):jsxRuntimeExports.jsx(HeaderCell,{children:pt},ht)),Array(ut-dt).fill(0).map((pt,ht)=>jsxRuntimeExports.jsx(DataCell,{},`empty-${ht}`))]},`row-${2*nt}`),!rt&&jsxRuntimeExports.jsxs(TableRow$7,{children:[tt.map((pt,ht)=>ht===0?jsxRuntimeExports.jsx(DetailsCell,{keyIndex:`col-${ht}`,...pt}):jsxRuntimeExports.jsx(DataCell,{children:jsxRuntimeExports.jsx(PatientCheckboxes,{enableTooltip:pt.date!=="-",...pt,treatmentWeek:ht,patientData})})),Array(ut-dt).fill(0).map((pt,ht)=>jsxRuntimeExports.jsx(DataCell,{},`empty-${ht}`))]},`row-${2*nt+1}`)]})},GET_PATIENT_INFO=gql`
  query patient($id: ID!) {
    patient(id: $id) {
      id
      firstName
      lastName
    }
  }
`,ROPatientPathway=()=>{const et=useRouteMatch(),{id:tt}=et.params,[rt,nt]=reactExports.useState([!1,!1,!1]);useQuery(GET_PATIENT_INFO,{variables:{id:tt}});const lt=reactExports.useCallback((mt,xt)=>{nt(Mt=>(Mt[mt]=xt,[...Mt]))},[nt]);patientData.careplanName;const ut={planning:["PLANNING","Initial Consult","Pre-Auth","SIM Request","Prescription","Compliance Documents","Simulation","Fusion","Target Volume","Contouring","Plan Approval"],onTreatmentReview:["ON TREATMENT REVIEW","Week 1","Week 2","Week 3","Week 4","End of Tx"],outcomes:["OUTCOMES","3-6 months","6-9 months","12 months","1-2 years","2 years","3 years","5 years"]},dt=dayjs().startOf("day"),pt={planning:[{name:"Initial Consult",date:dt.subtract(16,"day").add(9,"hour").format("YYYY-MM-DDTHH:mm"),status:"Completed"},{tooltipType:"initialConsult",date:dt.subtract(16,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"preAuth",date:dt.subtract(15,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"SIMRequest",date:dt.subtract(14,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"prescription",date:dt.subtract(14,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"complianceDocs",date:dt.subtract(14,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"simulation",date:dt.subtract(11,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"fusion",date:dt.subtract(10,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"targetVolume",date:dt.subtract(8,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"contouring",date:dt.subtract(8,"day").format("MMM-DD-YYYY"),status:"Completed"},{tooltipType:"planApproval",date:dt.subtract(7,"day").format("MMM-DD-YYYY"),status:"Completed"}],onTreatmentReview:[{name:"First treatment",date:dt.add(10,"hour").format("YYYY-MM-DDTHH:mm"),status:"In progress",alert:!0},{tooltipType:"treatment",date:"Due today",status:"Due today"},{tooltipType:"treatment",date:dt.add(7,"day").format("MMM-DD-YYYY"),status:"To do"},{tooltipType:"treatment",date:dt.add(14,"day").format("MMM-DD-YYYY"),status:"To do"},{tooltipType:"treatment",date:dt.add(21,"day").format("MMM-DD-YYYY"),status:"To do"},{tooltipType:"treatment",date:dt.add(28,"day").format("MMM-DD-YYYY"),status:"To do"}],outcomes:[{name:"Pending",date:"",status:"Not started"},{date:"-",status:"To do"},{date:"-",status:"To do"},{date:"-",status:"To do"},{date:"-",status:"To do"},{date:"-",status:"To do"},{date:"-",status:"To do"},{date:"-",status:"To do"}]},ht=Math.max(pt.planning.length,pt.onTreatmentReview.length,pt.outcomes.length);return jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{children:jsxRuntimeExports.jsx(PathwayWrapper,{children:jsxRuntimeExports.jsx(Grid,{xs:12,style:{height:"100%"},children:jsxRuntimeExports.jsxs(Card$1,{className:"d-flex flex-column",$filled:!0,children:[jsxRuntimeExports.jsx(StyledPageHeader,{children:"Patient Comprehensive Pathway"}),jsxRuntimeExports.jsx(Box,{style:{overflowX:"auto",height:"100%"},children:jsxRuntimeExports.jsx(Box,{sx:{width:"100%",display:"table",tableLayout:"fixed"},children:jsxRuntimeExports.jsx(Table$3,{children:jsxRuntimeExports.jsx(TableBody$2,{children:Object.keys(ut).map((mt,xt)=>jsxRuntimeExports.jsx(DataTable,{keyIndex:xt,header:ut[mt],data:pt[mt],hideData:rt[xt],onHideCallback:lt,numberOfColumns:ht}))})})})})]})})})})})},GP_HEADER_TITLE="General practitioner lookup",SPECIALIST_HEADER_TITLE="Referring specialist lookup",ModalPractitionerSearch=et=>{const{userInfo:tt,isOpen:rt,referralType:nt,dismissFunction:lt,makeFieldsEditable:ut,disableFields:dt,logTime:pt=!0,enableLogging:ht=!1,popOverOpen:mt,popOverClose:xt}=et,Mt=()=>lt(!0),vt=Ot=>lt(Ot);return jsxRuntimeExports.jsx(StandardDialog,{open:rt,onClose:Mt,maxWidth:"md",fullWidth:!0,title:nt===ReferralType.GP?GP_HEADER_TITLE:SPECIALIST_HEADER_TITLE,children:jsxRuntimeExports.jsx(Stack$5,{paddingY:2,children:jsxRuntimeExports.jsx(PractitionerSearch,{referralType:nt,userInfo:tt,closeModal:vt,makeFieldsEditable:ut,disableFields:dt,logTime:pt,enableLogging:ht,popOverOpen:mt,popOverClose:xt})})})},StyledTableCell$1=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[300],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14}})),StyledTableRow$1=styled(TableRow$7)(({theme:et})=>({"&:last-child td, &:last-child th":{border:0}}));class ModalSearchResults extends reactExports.Component{render(){const{isOpen:tt,dismissFunction:rt,patient:nt,data:lt,redirect:ut}=this.props;let dt=[];return lt&&lt.ukDedupSearch&&ut&&(dt=lt.ukDedupSearch.filter(pt=>pt.id!==nt.id).map(pt=>{const ht=ut.replace("temppatientid",pt.id);return jsxRuntimeExports.jsxs(StyledTableRow$1,{children:[jsxRuntimeExports.jsx(TableCell,{className:pt.ida?void 0:"grey-text",children:pt.ida||"Not yet in Mosaiq"}),jsxRuntimeExports.jsx(TableCell,{children:pt.firstName}),jsxRuntimeExports.jsx(TableCell,{children:pt.lastName}),jsxRuntimeExports.jsx(TableCell,{children:pt.dob}),jsxRuntimeExports.jsx(TableCell,{children:[pt.residentialAddressLine1,pt.residentialAddressCity,pt.residentialAddressPostCode].filter(mt=>!!mt).join(", ")}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx("a",{href:ht,children:"View patient"})})]})})),jsxRuntimeExports.jsx(StandardDialog,{open:tt,onClose:rt.bind(this),maxWidth:"lg",title:"Potential duplicate patients found",children:jsxRuntimeExports.jsxs(Table$3,{children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsxs(TableRow$7,{children:[jsxRuntimeExports.jsx(StyledTableCell$1,{children:"GC Number"}),jsxRuntimeExports.jsx(StyledTableCell$1,{children:"First name"}),jsxRuntimeExports.jsx(StyledTableCell$1,{children:"Last name"}),jsxRuntimeExports.jsx(StyledTableCell$1,{children:"Date of birth"}),jsxRuntimeExports.jsx(StyledTableCell$1,{children:"Address"}),jsxRuntimeExports.jsx(StyledTableCell$1,{children:"Link"})]})}),jsxRuntimeExports.jsx(TableBody$2,{children:dt})]})})}}const ModalSelect=({dismissFunction:et,isOpen:tt,submitForm:rt})=>{const[nt,lt]=reactExports.useState("");return jsxRuntimeExports.jsx(StandardDialog,{id:"modal-select",open:tt,onClose:et,maxWidth:"xs",fullWidth:!0,onSubmit:()=>rt(nt),submitText:"Create",title:"Create New Assessment",children:jsxRuntimeExports.jsxs(Stack$5,{paddingY:2,children:[jsxRuntimeExports.jsx(Typography,{marginBottom:2,children:"Select an option to create a new assessment"}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",width:1,gap:3,children:[jsxRuntimeExports.jsx(ToggleButton$1,{value:"Initial Chart Check",fullWidth:!0,"data-testid":"chart-check-btn",selected:nt==="Initial Chart Check",onClick:()=>lt("Initial Chart Check"),sx:{color:"text.primary",width:"100%"},children:"Initial Chart Check"}),jsxRuntimeExports.jsx(ToggleButton$1,{value:"Initial Triage",fullWidth:!0,"data-testid":"initial-triage-btn",selected:nt==="Initial Triage",onClick:()=>lt("Initial Triage"),sx:{color:"text.primary",width:"100%"},children:"Initial Triage"})]})]})})};function __awaiter(et,tt,rt,nt){function lt(ut){return ut instanceof rt?ut:new rt(function(dt){dt(ut)})}return new(rt||(rt=Promise))(function(ut,dt){function pt(xt){try{mt(nt.next(xt))}catch(Mt){dt(Mt)}}function ht(xt){try{mt(nt.throw(xt))}catch(Mt){dt(Mt)}}function mt(xt){xt.done?ut(xt.value):lt(xt.value).then(pt,ht)}mt((nt=nt.apply(et,[])).next())})}class Result{constructor(tt){this.isSuccess=tt}}class Success extends Result{constructor(){super(!0)}}class AutocompleteSuccess extends Success{constructor(tt){super(),this.suggestions=tt}toSuccess(){return this}toFailed(){throw new Error("Did not fail")}}class LocationSuccess extends Success{constructor(tt){super(),this.suggestions=tt}toSuccess(){return this}toFailed(){throw new Error("Did not fail")}}class GetSuccess extends Success{constructor(tt){super(),this.address=tt}toSuccess(){return this}toFailed(){throw new Error("Did not fail")}}class GetLocationSuccess extends Success{constructor(tt){super(),this.location=tt}toSuccess(){return this}toFailed(){throw new Error("Did not fail")}}class GetLocationFailed extends Result{constructor(tt,rt){super(!1),this.status=tt,this.message=rt}toSuccess(){throw new Error("Not a success")}toFailed(){return this}}class AutocompleteFailed extends Result{constructor(tt,rt){super(!1),this.status=tt,this.message=rt}toSuccess(){throw new Error("Not a success")}toFailed(){return this}}class LocationFailed extends Result{constructor(tt,rt){super(!1),this.status=tt,this.message=rt}toSuccess(){throw new Error("Not a success")}toFailed(){return this}}class GetFailed extends Result{constructor(tt,rt){super(!1),this.status=tt,this.message=rt}toSuccess(){throw new Error("Not a success")}toFailed(){return this}}class FindSuccess extends Success{constructor(tt){super(),this.addresses=tt}toSuccess(){return this}toFailed(){throw new Error("failed")}}class FindFailed extends Result{constructor(tt,rt){super(!1),this.status=tt,this.message=rt}toSuccess(){throw new Error("failed")}toFailed(){return this}}class TypeaheadSuccess extends Success{constructor(tt){super(),this.results=tt}toSuccess(){return this}toFailed(){throw new Error("failed")}}class TypeaheadFailed extends Result{constructor(tt,rt){super(!1),this.status=tt,this.message=rt}toSuccess(){throw new Error("failed")}toFailed(){return this}}class Client{constructor(tt,rt="https://api.getaddress.io/autocomplete/{query}",nt="https://api.getaddress.io/get/{id}",lt="https://api.getaddress.io/location/{query}",ut="https://api.getaddress.io/get-location/{id}",dt="https://api.getaddress.io/typeahead/{term}"){this.api_key=tt,this.autocomplete_url=rt,this.get_url=nt,this.location_url=lt,this.get_location_url=ut,this.typeahead_url=dt,this.autocompleteResponse=void 0,this.getResponse=void 0,this.locationResponse=void 0,this.getLocationResponse=void 0,this.typeaheadResponse=void 0,this.autocompleteAbortController=new AbortController,this.getAbortController=new AbortController,this.typeaheadAbortController=new AbortController,this.locationAbortController=new AbortController,this.getLocationAbortController=new AbortController}location(tt,rt={}){return __awaiter(this,void 0,void 0,function*(){try{const nt=Object.assign({all:!0},rt);let lt=this.location_url.replace(/{query}/i,tt);if(this.api_key&&(lt.includes("?")?lt=`${lt}&api-key=${this.api_key}`:lt=`${lt}?api-key=${this.api_key}`),this.locationResponse!==void 0&&(this.locationResponse=void 0,this.locationAbortController.abort(),this.locationAbortController=new AbortController),this.locationResponse=yield fetch(lt,{method:"post",signal:this.locationAbortController.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(nt)}),this.locationResponse.status===200){const pt=(yield this.locationResponse.json()).suggestions;return new LocationSuccess(pt)}const ut=yield this.locationResponse.json();return new LocationFailed(this.locationResponse.status,ut.Message)}catch(nt){return nt instanceof Error?nt.name==="AbortError"?new LocationSuccess([]):new LocationFailed(401,nt.message):new LocationFailed(401,"Unauthorised")}finally{this.locationResponse=void 0}})}getLocation(tt){return __awaiter(this,void 0,void 0,function*(){try{let rt=this.get_location_url.replace(/{id}/i,tt);if(this.api_key&&(rt.includes("?")?rt=`${rt}&api-key=${this.api_key}`:rt=`${rt}?api-key=${this.api_key}`),this.getLocationResponse!==void 0&&(this.getResponse=void 0,this.getAbortController.abort(),this.getAbortController=new AbortController),this.getResponse=yield fetch(rt,{method:"get",signal:this.getAbortController.signal,headers:{"Content-Type":"application/json"}}),this.getResponse.status===200){const ut=yield this.getResponse.json();return new GetLocationSuccess(ut)}const nt=yield this.getResponse.json();return new GetLocationFailed(this.getResponse.status,nt.Message)}catch(rt){return rt instanceof Error?new GetLocationFailed(401,rt.message):new GetLocationFailed(401,"Unauthorised")}finally{this.getResponse=void 0}})}autocomplete(tt,rt={}){return __awaiter(this,void 0,void 0,function*(){try{const nt=Object.assign({all:!0},rt);let lt=this.autocomplete_url.replace(/{query}/i,tt);if(this.api_key&&(lt.includes("?")?lt=`${lt}&api-key=${this.api_key}`:lt=`${lt}?api-key=${this.api_key}`),this.autocompleteResponse!==void 0&&(this.autocompleteResponse=void 0,this.autocompleteAbortController.abort(),this.autocompleteAbortController=new AbortController),this.autocompleteResponse=yield fetch(lt,{method:"post",signal:this.autocompleteAbortController.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(nt)}),this.autocompleteResponse.status===200){const pt=(yield this.autocompleteResponse.json()).suggestions;return new AutocompleteSuccess(pt)}const ut=yield this.autocompleteResponse.json();return new AutocompleteFailed(this.autocompleteResponse.status,ut.Message)}catch(nt){return nt instanceof Error?nt.name==="AbortError"?new AutocompleteSuccess([]):new AutocompleteFailed(401,nt.message):new AutocompleteFailed(401,"Unauthorised")}finally{this.autocompleteResponse=void 0}})}get(tt){return __awaiter(this,void 0,void 0,function*(){try{let rt=this.get_url.replace(/{id}/i,tt);if(this.api_key&&(rt.includes("?")?rt=`${rt}&api-key=${this.api_key}`:rt=`${rt}?api-key=${this.api_key}`),this.getResponse!==void 0&&(this.getResponse=void 0,this.getAbortController.abort(),this.getAbortController=new AbortController),this.getResponse=yield fetch(rt,{method:"get",signal:this.getAbortController.signal,headers:{"Content-Type":"application/json"}}),this.getResponse.status===200){const ut=yield this.getResponse.json();return new GetSuccess(ut)}const nt=yield this.getResponse.json();return new GetFailed(this.getResponse.status,nt.Message)}catch(rt){return rt instanceof Error?new GetFailed(401,rt.message):new GetFailed(401,"Unauthorised")}finally{this.getResponse=void 0}})}find(tt){return __awaiter(this,void 0,void 0,function*(){try{const rt=yield fetch(`https://api.getaddress.io/find/${tt}?api-key=${this.api_key}&expand=true`);if(rt.status===200){const ut=yield rt.json();return new FindSuccess(ut)}const nt=yield rt.json();return new FindFailed(rt.status,nt.Message)}catch(rt){return rt instanceof Error?new FindFailed(401,rt.message):new FindFailed(401,"Unauthorised")}})}typeahead(tt,rt={}){return __awaiter(this,void 0,void 0,function*(){try{let nt=this.typeahead_url.replace(/{term}/i,tt);if(this.api_key&&(nt.includes("?")?nt=`${nt}&api-key=${this.api_key}`:nt=`${nt}?api-key=${this.api_key}`),this.typeaheadResponse!==void 0&&(this.typeaheadResponse=void 0,this.typeaheadAbortController.abort(),this.typeaheadAbortController=new AbortController),this.typeaheadResponse=yield fetch(nt,{method:"post",signal:this.autocompleteAbortController.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(rt)}),this.typeaheadResponse.status===200){const dt=yield this.typeaheadResponse.json();return new TypeaheadSuccess(dt)}const lt=yield this.typeaheadResponse.json();return new TypeaheadFailed(this.typeaheadResponse.status,lt.Message)}catch(nt){return nt instanceof Error?nt.name==="AbortError"?new TypeaheadSuccess([]):new TypeaheadFailed(401,nt.message):new TypeaheadFailed(401,"Unauthorised")}finally{this.typeaheadResponse=void 0}})}}const apiKey=Object.create(globalThis.import_meta_env||null).UK_POSTCODE_API_KEY,api$1=new Client(apiKey),fetchAddresses=async et=>{try{const tt=await api$1.autocomplete(et,{template:"{line_1}|{line_2}|{locality}|{town_or_city}|{county}|{postcode}|{country}"});if(tt.isSuccess)return tt.toSuccess();throw new Error("Postcode lookup failed")}catch(tt){throw tt}},AddressAutocomplete=et=>{const{addressPlaceId:tt,setAddressPlaceId:rt}=reactExports.useContext(RegistrationContext),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),[pt,ht]=reactExports.useState((et==null?void 0:et.defaultValue)||""),[mt,xt]=reactExports.useState(""),[Mt,vt]=reactExports.useState(tt||""),[Ot,At]=reactExports.useState([]),[Rt,zt]=reactExports.useState([]);reactExports.useEffect(()=>{ht((et==null?void 0:et.defaultValue)||"")},[et==null?void 0:et.defaultValue]);const Tt=(jt,Wt)=>{ht(jt),vt(Wt),dt(!1),rt(Wt),Dt(Wt)},Ct=jt=>{ht(jt),dt(!1),lt(!0),jt===""&&vt(""),et.inputOnBlur&&et.inputOnBlur(void 0,!1)},It=(jt,Wt)=>{const{inputOnBlur:Ut}=et;Wt(),dt(!0),Ut&&Ut(void 0,ut)},Dt=async jt=>{jt&&(await geocodeByPlaceId(jt)).length>0&&rt(jt)},kt=jt=>{const Wt=["Ltd"];for(let Ut=0;Ut<Wt.length;Ut++)if(jt.indexOf(Wt[Ut])>-1)return!1;return!0},qt=async jt=>{if(zt([]),At([]),!!jt){if(!UK_POSTCODE_REGEXP.test(jt.toString())){zt(["Valid postcode required"]);return}fetchAddresses(jt).then(Wt=>{if(!Wt||Wt.suggestions.length===0){zt(["Not found"]);return}const Ut=[];Wt.suggestions.forEach(Vt=>{kt(Vt.address.split("|")[0])&&Ut.push({id:Vt.id,line1:Vt.address.split("|")[0],line2:Vt.address.split("|")[1],locality:Vt.address.split("|")[2],city:Vt.address.split("|")[3],county:Vt.address.split("|")[4]||Vt.address.split("|")[3],country:Vt.address.split("|")[6],postcode:Vt.address.split("|")[5]})}),At(Ut)}).catch(Wt=>{zt([Wt.message||"API Error"])})}},Nt=jt=>{const Wt=Ot.find(Ut=>Ut.id===jt);Wt&&et.onSelected(Wt)},Yt=(jt,Wt)=>{jt==="Enter"&&qt(Wt)},{loadingMessage:Kt,errorMessage:Jt,region:Qt}=et;let Bt=["au","nz"];Qt&&Qt.toLowerCase()==="uk"&&(Bt=["uk","im","gg","je"]);const Ft={types:["address"],componentRestrictions:{country:Bt}},$t=Ot.map(jt=>{let Wt=jt.line1;return jt.line2&&(Wt+=`, ${jt.line2}`),jt.locality&&(Wt+=`, ${jt.locality}`),{id:jt.id,name:Wt}});return jsxRuntimeExports.jsx(_default$2,{value:pt,onSelect:Tt,onChange:Ct,onError:It,searchOptions:Ft,children:({suggestions:jt,getSuggestionItemProps:Wt,loading:Ut})=>jsxRuntimeExports.jsxs(Stack$5,{sx:{width:"100%",maxWidth:"400px"},gap:"8px",children:[jsxRuntimeExports.jsx(BaseTextField,{name:"postcode-search-input",id:"postcode-search-input",placeholder:"Search postcode",InputProps:{startAdornment:jsxRuntimeExports.jsx(Search,{color:"primary"})},autoComplete:"off",onBlur:Vt=>qt(Vt.target.value),onKeyDown:Vt=>Yt(Vt.key,Vt.target.value)}),Rt.map(Vt=>jsxRuntimeExports.jsx(ROHelperText,{error:!0,helperText:Vt})),jsxRuntimeExports.jsx(BaseAutocomplete,{id:"uk-address-select",value:{label:mt,value:mt},placeholder:"Please select address",disabled:Ot.length===0,options:$t.map(Vt=>({label:Vt.name,value:Vt.id})),onChange:Vt=>{var Zt;const Ht=typeof Vt=="string"?Vt:Vt==null?void 0:Vt.value,Gt=(Zt=$t.filter(Xt=>Xt.id===Ht))==null?void 0:Zt[0];xt(Gt==null?void 0:Gt.name),Nt(Ht)},fullWidth:!0,disableClearable:!0}),Ut&&jsxRuntimeExports.jsx("div",{className:"loading-message",children:Kt}),!Ut&&nt&&jsxRuntimeExports.jsx("div",{className:classNames$1("suggestions-container",{"is-open":jt.length>0}),children:jt&&jt.map(Vt=>jsxRuntimeExports.jsx("div",{className:"suggestion",...Wt(Vt),children:jsxRuntimeExports.jsx("div",{className:"suggested-address-container",children:Vt.description})}))}),!Ut&&ut&&jsxRuntimeExports.jsx(Stack$5,{children:Jt==null?void 0:Jt.map(Vt=>jsxRuntimeExports.jsx(ROHelperText,{error:!0,helperText:Vt}))})]})})};class AlertHeader extends React$4.Component{constructor(){super(...arguments);Nr(this,"renderIcon",()=>jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning",className:"icon"}))}render(){const{alert:{displayStyle:rt,title:nt,text:lt}}=this.props;return jsxRuntimeExports.jsx("span",{className:"alert-header",children:jsxRuntimeExports.jsxs("div",{className:`${rt}-header-2 alert-header-2`,children:[jsxRuntimeExports.jsx("div",{className:`${rt}-accent accent`}),jsxRuntimeExports.jsx("div",{className:`${rt}-icon container-icon`,children:this.renderIcon()}),jsxRuntimeExports.jsxs("div",{className:"text-container",children:[jsxRuntimeExports.jsx("span",{className:"alert-title",children:nt}),jsxRuntimeExports.jsx("span",{children:" "}),jsxRuntimeExports.jsx("span",{className:"alert-text",children:lt})]})]})})}}Object.create(globalThis.import_meta_env||null).REACT_APP_REGION;const REVIEWED_OR_SUBMITTED=[FormStatus.REG_REVIEW_REQUIRED,FormStatus.REG_SUBMITTED],getPathName$1=(et,tt,rt,nt,lt)=>{let ut={name:"",path:""};const dt=`/patient/${tt}/registration/${nt||"infonotice"}`,pt=`/registration/${tt}/${nt||"basic"}`;switch(et){case"covid":ut={name:"covidScreening",path:`/patient/${tt}/covid/information`};break;case"registration":ut={name:"registration",path:lt?dt:pt};break;case"healthAssessment":ut={name:"healthAssessment",path:`/patient/${tt}/health/info`};break;case"distress":ut={name:"distressThermometer",path:`/patient/${tt}/distress/${rt}/information`};break;case"theranostics":ut={name:"theranostics",path:"/server/forms/theranostics"};break;default:ut={name:"home",path:`/patient/${tt}/home`}}return ut},calculateNextForm=(et,tt,rt,nt,lt,ut)=>{const pt=[{name:"covid",goTo:rt,theranostics:!1},{name:"registration",goTo:tt,theranostics:!0},{name:"healthAssessment",goTo:nt,theranostics:!0},{name:"distress",goTo:ut,theranostics:!1},{name:"theranostics",goTo:lt,theranostics:!0}].filter(mt=>mt.name!==et&&mt.goTo),ht=pt.find(mt=>mt.theranostics);return lt&&ht?ht.name:!lt&&pt[0]?pt[0].name:"home"},getNextForm=(et,tt,rt,nt=!1)=>{var lt,ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At;if(et){const Rt=((ut=(lt=et==null?void 0:et.profile)==null?void 0:lt.patientFeatures)==null?void 0:ut.covidEnabled)||!1,zt=(dt=et==null?void 0:et.patient)==null?void 0:dt.lastVisitedSection,Tt=!REVIEWED_OR_SUBMITTED.includes((pt=et==null?void 0:et.patient)==null?void 0:pt.regFormStatus),Ct=!(REVIEWED_OR_SUBMITTED.includes(((ht=et==null?void 0:et.covidScreening)==null?void 0:ht.status)||FormStatus.CREATED)||!Rt),It=((mt=et==null?void 0:et.healthAssessment)==null?void 0:mt.status)!==FormStatus.REG_SUBMITTED,Dt=((Mt=(xt=et==null?void 0:et.patient)==null?void 0:xt.userProfile)==null?void 0:Mt.systemState)==="THA"&&((vt=et==null?void 0:et.theranostics)==null?void 0:vt.status)!==FormStatus.REG_SUBMITTED,qt=toFormToVersion((Ot=et==null?void 0:et.profile)==null?void 0:Ot.toForm)===DistressThermometerVersion.INITIAL?et==null?void 0:et.distressThermometerInitial:et==null?void 0:et.distressThermometerEot,Nt=(qt==null?void 0:qt.status)!==FormStatus.REG_SUBMITTED&&((At=et==null?void 0:et.profile)==null?void 0:At.showDistressThermometer),Yt=qt==null?void 0:qt.id,Kt=calculateNextForm(rt,Tt,Ct,It,Dt,Nt);return getPathName$1(Kt,tt,Yt,zt,nt)}else return{name:"home",path:`/patient/${tt}/home`}};class CovidNavigator extends reactExports.Component{constructor(rt){super(rt);Nr(this,"buttonHandler",(rt,nt,lt)=>{const{history:ut,links:dt}=this.props;if(lt&&nt===NavigatorDirection.FORWARD)this.setState({submitModalIsOpen:!0});else{let pt="#",ht=rt;switch(nt){case NavigatorDirection.FORWARD:ht+=1;break;case NavigatorDirection.BACK:ht-=1;break}ht>=0&&ht<=dt.length-1&&(pt=dt[ht].href.replace(/\//,""),ut.push(pt))}});Nr(this,"dismissModal",()=>{this.setState({submitModalIsOpen:!1})});Nr(this,"dismissSNEModal",()=>{this.setState({saveExitModalOpen:!1})});Nr(this,"exitForm",()=>{const{history:rt,isPso:nt,match:{params:{patientId:lt}}}=this.props;nt?rt.push("/search"):rt.push({pathname:`/patient/${lt}/home`,state:{pxRedirect:!0}})});Nr(this,"handleBackButton",(rt,nt,lt)=>{lt&&window.history.back(),nt!==void 0&&this.buttonHandler(nt,NavigatorDirection.BACK,rt)});Nr(this,"handleContinue",(rt,nt,lt,ut,dt)=>{lt&&!ut?dt(!0):nt!==void 0&&this.buttonHandler(nt,NavigatorDirection.FORWARD,rt)});this.state={submitModalIsOpen:!1,saveExitModalOpen:!1}}render(){const{links:rt,loading:nt,submitCalled:lt,submitFunction:ut,location:{pathname:dt},match:{params:{patientId:pt}},isPso:ht}=this.props,mt=dt.split("/"),xt=mt[mt.length-1];let Mt;for(let kt=0;kt<rt.length;kt++)if(rt[kt].href.replace(/\//,"")===xt){Mt=kt;break}const vt=Mt===0,Ot=Mt===rt.length-1||ht===!0;let At="Submit";nt&&(At="Submitting...");const Rt=getNextForm(this.context.formStatusDetails,pt,"covid",this.props.showNewRego);if(lt&&!nt&&!ht)return jsxRuntimeExports.jsx(Redirect,{to:{pathname:Rt.path,state:{pxRedirect:!0}}});const zt=this.props.covidScreening,Tt=zt.symptomDay&&zt.symptomMonth&&zt.symptomYear,Ct=zt.hasSymptoms&&!Tt,It=zt.hasBeenDiagnosed==null||zt.hasBeenTested==null||zt.advisedToQuarantine==null||zt.hadContact==null||zt.travelledToHotspot==null||zt.hasSymptoms==null,Dt=!Ct&&!It;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalSaveExit,{isOpen:this.state.saveExitModalOpen,dismissFunction:this.dismissSNEModal,exitForm:this.exitForm,exitText:"Exit form"}),jsxRuntimeExports.jsx(CovidSubmit,{isComplete:Dt,isOpen:this.state.submitModalIsOpen,dismissFunction:this.dismissModal,submitText:At,submitForm:ut,isPSO:ht,continueNextForm:Rt.name!=="home"}),jsxRuntimeExports.jsx(PatientFormFooter,{navComponentId:"covid-nav",isPso:ht??!1,isFirstPage:vt,isLastPage:Ot,submitCalled:lt,handleClickOnBack:()=>this.handleBackButton(Ot,Mt,ht),handleSaveAndExit:()=>this.setState({saveExitModalOpen:!0}),handleClickOnContinue:()=>this.handleContinue(Ot,Mt,ht,lt,ut)})]})}}Nr(CovidNavigator,"contextType",FormContext$2);const routedComponent$4=withRouter(CovidNavigator),logger$4=new Logger("CovidNavigatorApollo"),COVID_ASSESSMENT_QUERY=gql`
  query CovidScreening($id: ID!) {
    covidScreening(id: $id) {
      id
      hasSymptoms

      symptomDay
      symptomMonth
      symptomYear

      hasBeenDiagnosed
      hasBeenTested
      advisedToQuarantine
      hadContact
      travelledToHotspot
      status
    }
    user {
      id
      isPso
    }
    featureOptions {
      id
      name
      description
      active
    }
  }
`,COVID_SUBMISSION_MUTATION=gql`
  mutation CreateCovidSubmission($patientId: ID!) {
    createCovidSubmission(patientId: $patientId) {
      submissionCreated
    }
  }
`,COVID_SUBMISSION_MUTATION_PSO=gql`
  mutation submitCovidToMq($patientId: ID!) {
    submitCovidToMq(patientId: $patientId) {
      submissionCreated
      submission {
        id
        pdf
      }
    }
  }
`;class CovidNavigatorApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"submitCovid",(rt=!1)=>{const{client:nt,match:{params:{patientId:lt}},history:ut}=this.props,{loadingMutation:dt,mutationCalled:pt}=this.state;!dt&&!pt&&this.setState({loadingMutation:!0},()=>{rt?nt==null||nt.mutate({mutation:COVID_SUBMISSION_MUTATION_PSO,variables:{patientId:lt}}).then(ht=>{ht.data&&ht.data.submitCovidToMq&&ht.data.submitCovidToMq.submission&&logger$4.debug("submitCovid","The pdf has been loaded in: ",`${window.location.origin}/server/media/${ht.data.submitCovidToMq.submission.pdf}`),this.setState({loadingMutation:!1,mutationCalled:!0}),ut.goBack()}):nt==null||nt.mutate({mutation:COVID_SUBMISSION_MUTATION,variables:{patientId:lt}}).then(ht=>{this.setState({loadingMutation:!1,mutationCalled:!0}),this.context.setFormStatusDetails({...this.context.formStatusDetails,covidScreening:{status:"filterReviewRequired"}})})})});this.state={loadingMutation:!1,mutationCalled:!1}}render(){const{links:rt,match:{params:{patientId:nt}}}=this.props,{loadingMutation:lt,mutationCalled:ut}=this.state;return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(Query,{query:COVID_ASSESSMENT_QUERY,variables:{id:nt},children:({data:dt,error:pt})=>{const{setError:ht}=useErrorModalContext();if(reactExports.useEffect(()=>{if(pt)return ht()},[pt]),dt&&dt.covidScreening&&dt.user){const mt=new CovidAssessmentItem;mt.loadData(dt.covidScreening);const xt=mt.status==="filterSubmittedToMosaiq"?!0:ut,Mt=dt==null?void 0:dt.featureOptions.find(vt=>vt.name==="NewAusRego"&&vt.active);return jsxRuntimeExports.jsx(routedComponent$4,{covidScreening:mt,links:rt,loading:lt,submitFunction:this.submitCovid,submitCalled:xt,isPso:dt.user.isPso,showNewRego:!!Mt})}return jsxRuntimeExports.jsx("div",{})}})})}}Nr(CovidNavigatorApollo,"contextType",FormContext$2);const routeComponent$2=withRouter(withApollo(CovidNavigatorApollo)),DTNavigator=et=>{const[tt,rt]=reactExports.useState(!1),[nt,lt]=reactExports.useState(!1),{selectedRating:ut}=reactExports.useContext(DTContext),{formStatusDetails:dt,setFormStatusDetails:pt}=reactExports.useContext(FormContext$2),{history:ht,links:mt,loading:xt,submitCalled:Mt,submitFunction:vt,location:{pathname:Ot},match:{params:{patientId:At}},distressVersion:Rt}=et,zt=Ot.split("/"),Tt=zt[zt.length-1],Ct=reactExports.useMemo(()=>mt.length,[mt]);let It;for(let Bt=0;Bt<Ct;Bt++)if(mt[Bt].href.replace(/\//,"")===Tt){It=Bt;break}const Dt=It===0,kt=It===Ct-1;let qt="Submit";if(xt&&(qt="Submitting..."),Mt&&!xt){const Bt=Rt===DistressThermometerVersion.INITIAL;if(!Bt)return jsxRuntimeExports.jsx(Redirect,{to:{pathname:`/patient/${At}/home`,state:{pxRedirect:Bt}}});const Ft=getNextForm(dt,At,"distress",et==null?void 0:et.showNewRego);return pt({...dt,[Bt?"distressThermometerInitial":"distressThermometerEot"]:{status:FormStatus.REG_SUBMITTED}}),jsxRuntimeExports.jsx(Redirect,{to:{pathname:Ft==null?void 0:Ft.path,state:{pxRedirect:Bt}}})}const Nt=(Bt,Ft,$t)=>{if($t&&Ft===NavigatorDirection.FORWARD)rt(!0);else{let jt="#",Wt=Bt;switch(Ft){case NavigatorDirection.FORWARD:Wt+=1;break;case NavigatorDirection.BACK:Wt-=1;break}Wt>=0&&Wt<=Ct-1&&(jt=mt[Wt].href.replace(/\//,""),ht.push(jt))}},Yt=()=>{rt(!1)},Kt=()=>{lt(!0)},Jt=()=>{lt(!1)},Qt=()=>{ht.push({pathname:`/patient/${At}/home`,state:{pxRedirect:!0}})};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalSaveExit,{isOpen:nt,dismissFunction:Jt,exitForm:Qt,exitText:"Exit form"}),jsxRuntimeExports.jsx(ModalSubmit,{isOpen:tt,dismissFunction:Yt,submitText:qt,submitForm:vt,isPSO:!1}),jsxRuntimeExports.jsxs("div",{id:"dt-nav-container",children:[jsxRuntimeExports.jsx("div",{id:"dt-nav-left",className:"dt-nav-button",children:jsxRuntimeExports.jsx(Button,{size:"large",onClick:()=>Kt(),children:"Save and exit"})}),jsxRuntimeExports.jsxs(Stack$5,{gap:2,direction:"row",id:"dt-nav-right",children:[!Dt&&jsxRuntimeExports.jsx(Button,{size:"large",onClick:()=>{It!==void 0&&Nt(It,NavigatorDirection.BACK,kt)},children:"Back"}),jsxRuntimeExports.jsx(Button,{size:"large",disabled:Tt==="rating"&&ut<0,variant:"contained",onClick:()=>{It!==void 0&&Nt(It,NavigatorDirection.FORWARD,kt)},children:kt?Mt?"Submitted":"Submit":"Continue"})]})]})]})},routedComponent$3=withRouter(DTNavigator),logger$3=new Logger("DTNavigatorApollo"),DT_VERSION_QUERY=gql`
  query DistressThermometer($patientId: ID!, $id: ID!) {
    distressThermometer(patientId: $patientId, id: $id) {
      id
      version
    }
    featureOptions {
      id
      name
      description
      active
    }
  }
`,DT_SUBMISSION_MUTATION=gql`
  mutation CreateDTSubmission($patientId: ID!, $id: ID!) {
    createDTSubmission(patientId: $patientId, id: $id) {
      submissionCreated
      submission {
        id
        pdf
      }
    }
  }
`,DTNavigatorApollo=et=>{var Ot,At;const[tt,rt]=reactExports.useState(!1),[nt,lt]=reactExports.useState(!1),{client:ut,links:dt,match:{params:{patientId:pt,distressId:ht}}}=et,{data:mt}=useQuery(DT_VERSION_QUERY,{variables:{patientId:pt,id:ht}}),xt=(Ot=mt==null?void 0:mt.distressThermometer)==null?void 0:Ot.version,Mt=()=>{!tt&&!nt&&(rt(!0),ut==null||ut.mutate({mutation:DT_SUBMISSION_MUTATION,variables:{patientId:pt,id:ht}}).then(zt=>{zt.data&&zt.data.createDTSubmission&&zt.data.createDTSubmission.submission&&logger$3.debug("submitDT","The pdf has been loaded in: ",`${window.location.origin}/server/media/${zt.data.createDTSubmission.submission.pdf}`),rt(!1),lt(!0)}))},vt=(At=mt==null?void 0:mt.featureOptions)==null?void 0:At.find(Rt=>Rt.name==="NewAusRego"&&Rt.active);return jsxRuntimeExports.jsx(routedComponent$3,{links:dt,loading:tt,submitFunction:Mt,submitCalled:nt,distressVersion:xt,showNewRego:vt})},routeComponent$1=withRouter(withApollo(DTNavigatorApollo)),HANavigator=et=>{const{links:tt,redirectToRegistraton:rt=!1,loading:nt,submitCalled:lt,submitFunction:ut,location:{pathname:dt},match:{params:{patientId:pt}},isPso:ht,isInClinic:mt,generateURL:xt,registrationContext:Mt,showNewRego:vt}=et,Ot=useHistory(),{formStatusDetails:At}=reactExports.useContext(FormContext$2),[Rt,zt]=reactExports.useState(!1),[Tt,Ct]=reactExports.useState(!1),It=dt.split("/"),Dt=It[It.length-1];let kt;for(let Wt=0;Wt<tt.length;Wt++)if(tt[Wt].href.replace(/\//,"")===Dt){kt=Wt;break}const qt=kt===0,Nt=kt===tt.length-1,Yt=nt?"Submitting...":"Submit",Kt=getNextForm(At,pt,"healthAssessment",vt);if(lt&&!nt)return isUs()?rt?mt?jsxRuntimeExports.jsx(Redirect,{to:{pathname:`/patient/${pt}/home`}}):jsxRuntimeExports.jsx(Redirect,{to:{pathname:"/patient/registrationComplete"}}):jsxRuntimeExports.jsx(Redirect,{to:{pathname:`/patient/${pt}/registration/basic`}}):Kt.name==="theranostics"?(navigateToExternalURL(Kt.path),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})):jsxRuntimeExports.jsx(Redirect,{to:{pathname:Kt.path,state:{pxRedirect:!0}}});const Jt=(Wt,Ut,Vt)=>{if(Vt&&Ut===NavigatorDirection.FORWARD)zt(!0);else if(Mt.haSummaryVisited&&Ut===NavigatorDirection.FORWARD){const Gt=`/patient/${et.match.params.patientId}/health/summary`;Ot.push(Gt)}else{let Ht="#",Gt=Wt;switch(Ut){case NavigatorDirection.FORWARD:Gt+=1;break;case NavigatorDirection.BACK:Gt-=1;break}Gt>=0&&Gt<=tt.length-1&&(Ht=tt[Gt].href.replace(/\//,""),Ot.push(Ht))}},Qt=()=>{zt(!1)},Bt=()=>{Ct(!1)},Ft=()=>{ht?Ot.push("/search"):Ot.push({pathname:`/patient/${pt}/home`,state:{pxRedirect:!0}})},$t=(Wt,Ut,Vt)=>{Vt&&window.history.back(),Ut!==void 0&&Jt(Ut,NavigatorDirection.BACK,Wt)},jt=(Wt,Ut,Vt,Ht)=>{Vt?Ht&&Ht():Ut!==void 0&&Jt(Ut,NavigatorDirection.FORWARD,Wt)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalSaveExit,{isOpen:Tt,dismissFunction:Bt,exitForm:Ft,exitText:"Exit form"}),jsxRuntimeExports.jsx(ModalSubmit,{isOpen:Rt,dismissFunction:Qt,submitText:Yt,submitForm:ut,isUs:isUs(),continueNextForm:Kt.name!=="home",isPSO:!1}),jsxRuntimeExports.jsx(PatientFormFooter,{navComponentId:"ha-nav",isPso:ht,isFirstPage:qt,isLastPage:Nt,submitCalled:lt,showPrintPdfButton:ht??!1,showContinueButton:!ht,handleClickOnBack:()=>$t(Nt,kt,ht),handleSaveAndExit:()=>Ct(!0),handleClickOnContinue:()=>jt(Nt,kt,ht,xt),summaryVisited:Mt==null?void 0:Mt.haSummaryVisited})]})},routedComponent$2=withRouter(HANavigator),HA_SUBMISSION_MUTATION=gql`
  mutation CreateHASubmission($haId: ID!) {
    createHASubmission(haId: $haId) {
      submissionCreated
      submission {
        id
        pdf
      }
    }
  }
`,HEALTH_ASSESSMENT_AND_USER_DETAILS=gql`
  query UserDetailsAndHealthAssessment($patientId: ID!) {
    healthAssessment(id: $patientId) {
      id
    }
    patient(id: $patientId) {
      id
      regFormStatus
      userProfile {
        id
        showRegistration
      }
    }
    user {
      id
      isPso
    }
    profile(id: $patientId) {
      id
      registrationAccessType
    }

    featureOptions {
      id
      name
      description
      active
    }
  }
`,GET_PDF_URL=gql`
  mutation GenerateHAPDF($haId: ID!) {
    generateHAPdf(haId: $haId) {
      pdfLink
    }
  }
`,HANavigatorApollo=et=>{var Dt,kt,qt,Nt;const[tt,rt]=reactExports.useState(""),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),{formStatusDetails:pt,setFormStatusDetails:ht}=reactExports.useContext(FormContext$2),{data:mt}=useQuery(HEALTH_ASSESSMENT_AND_USER_DETAILS,{variables:{patientId:et.match.params.patientId},fetchPolicy:"network-only"}),[xt]=useMutation(HA_SUBMISSION_MUTATION),[Mt]=useMutation(GET_PDF_URL),{links:vt}=et,Ot=()=>{!nt&&!ut&&(lt(!0),Mt({variables:{haId:tt}}).then(Yt=>{const Kt=`${Yt.data.generateHAPdf.pdfLink}`,Jt=window.open(Kt,"_blank");Jt!=null&&Jt.focus(),lt(!1),dt(!1)}))},At=()=>{!nt&&!ut&&(lt(!0),xt({variables:{haId:tt}}).then(Yt=>{lt(!1),dt(!0),ht({...pt,healthAssessment:{status:"filterSubmittedToMosaiq"}})}))};mt&&mt.healthAssessment&&tt!==mt.healthAssessment.id&&rt(mt.healthAssessment.id);const Rt=((Dt=mt==null?void 0:mt.patient)==null?void 0:Dt.regFormStatus)||"",zt=((kt=mt==null?void 0:mt.profile)==null?void 0:kt.registrationAccessType)==="inClinic",Tt=(Nt=(qt=mt==null?void 0:mt.patient)==null?void 0:qt.userProfile)==null?void 0:Nt.showRegistration,Ct=mt==null?void 0:mt.featureOptions.find(Yt=>Yt.name==="NewAusRego"&&Yt.active),It=[FormStatus.REG_SUBMITTED,FormStatus.REG_REVIEW_REQUIRED].includes(Rt)||!Tt;return jsxRuntimeExports.jsx(RegistrationContext.Consumer,{children:Yt=>{var Kt;return jsxRuntimeExports.jsx(routedComponent$2,{links:vt,redirectToRegistraton:It,registrationContext:Yt,loading:nt,submitFunction:At,submitCalled:ut,isInClinic:zt,isPso:((Kt=mt==null?void 0:mt.user)==null?void 0:Kt.isPso)||!1,generateURL:Ot,showNewRego:!!Ct})}})},routeComponent=withRouter(HANavigatorApollo);class MoreInfoText extends reactExports.Component{render(){const{children:tt,moreInfoText:rt,showIcon:nt,showInfo:lt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[tt,(lt===void 0||lt)&&jsxRuntimeExports.jsxs("div",{className:"more-info-text",children:[nt===!0&&jsxRuntimeExports.jsx(SvgInfo,{className:"icon"}),jsxRuntimeExports.jsx("span",{className:classNames$1({"with-icon":nt}),children:rt})]})]})}}Nr(MoreInfoText,"defaultProps",{showIcon:!1});const NavigationContextProvider=et=>{const[tt,rt]=reactExports.useState(""),[nt,lt]=reactExports.useState(""),[ut,dt]=reactExports.useState(""),[pt,ht]=reactExports.useState(""),[mt,xt]=reactExports.useState("");return jsxRuntimeExports.jsx(NavigationContext.Provider,{value:{state:{regEntryPath:tt,searchTerm:nt,locationFilter:ut,regStatusFilter:pt,tagFilter:mt},setRegEntryPath:rt,setSearchTerm:lt,setLocationFilter:dt,setRegStatusFilter:ht,setTagFilter:xt},children:et.children})},FooterContainer=styled$1("div")`
  z-index: 1000;
  position: fixed;
  bottom: 0;
  padding: 12px 24px;
  width: 100%;
  border-top: 1px solid ${et=>et.theme.palette.grey[300]};
  background-color: white;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: space-between;
  flex-direction: row;
`,PatientFormFooter=({handleClickOnBack:et,handleClickOnContinue:tt,handleSaveAndExit:rt,handleResolveConflict:nt,navComponentId:lt,isRecordLocked:ut=!1,hasConflicts:dt=!1,resolveConflictsIncomplete:pt=!1,isPso:ht=null,isInRegistrationForm:mt=!1,isFirstPage:xt,isLastPage:Mt,submitCalled:vt=!1,showPrintPdfButton:Ot=!1,showContinueButton:At=!0,summaryVisited:Rt=!1})=>{const zt="patient-form-footer",Tt=DeviceUtilities$1.isMobileDevice(),[Ct,It]=reactExports.useState(!0);reactExports.useEffect(()=>{ht!==null&&It(!1)},[ht]);let Dt="";Mt?Dt=vt?"Submitted":"Submit":Dt=Rt?"Return to submit":"Continue";const kt=ht&&!mt?"Exit":"Back";return jsxRuntimeExports.jsxs(FooterContainer,{id:zt,children:[jsxRuntimeExports.jsxs("div",{id:`${lt}-left`,children:[!Ct&&ht&&!dt&&!xt&&jsxRuntimeExports.jsx(Button,{size:"large","data-testid":`${lt}-back`,onClick:()=>et(),children:kt}),!Tt&&!Ct&&(!ht||ht&&mt)&&jsxRuntimeExports.jsx(Button,{size:"large","data-testid":`${lt}-save-and-exit`,onClick:()=>rt(),children:ut?"Exit":"Save and exit"})]}),jsxRuntimeExports.jsxs(Stack$5,{id:`${lt}-right`,direction:"row",gap:"16px",children:[mt&&dt&&jsxRuntimeExports.jsx(Button,{size:"large",onClick:()=>nt(),"data-testid":`${lt}-resolve-conflicts`,disabled:pt,variant:"contained",children:"Resolve conflicts"}),!Ct&&Ot&&!mt&&ht&&jsxRuntimeExports.jsx(Button,{size:"large",variant:"contained","data-testid":`${lt}-pdf`,onClick:()=>tt(),children:"Print PDF"}),!Ct&&!dt&&!ht&&!xt&&jsxRuntimeExports.jsx(Button,{size:"large","data-testid":`${lt}-back`,onClick:()=>et(),children:kt}),!dt&&At&&jsxRuntimeExports.jsx(Button,{size:"large",id:`${lt}-submit`,variant:"contained",disabled:ut,"data-testid":`${lt}-${Mt?"submit":"continue"}`,onClick:()=>tt(),children:Dt})]})]})},{PSO,SUPERUSER,NURSE}=RoleType,logger$2=new Logger("PatientSearch"),SEARCH_NAME="q",EMPTY_PATIENT_OPT_IN={id:"",firstName:"",lastName:"",pxOptedIn:null,primaryPhone:"",email:"",pxOptOutComment:"",emrInstance:""},EMPTY_PATIENT_ADDRESS={line1:"",line2:"",city:"",state:"",country:"",postcode:""},EMPTY_PATIENT={id:"",firstName:"",lastName:"",ida:"",dob:"",primaryPhone:"",primaryPhoneFormatted:"",email:"",primaryCenterAlias:"",address:EMPTY_PATIENT_ADDRESS,pxOptedIn:null,pxOptOutComment:"",regFormStatus:"",overallStatus:"",userProfile:{id:"",registrationAccessType:"",showRegistration:!0,showHealthAssessment:!0,patientFeatures:{distressThermometerEotEnabled:!1,distressThermometerEnabled:!1,managementPlansEnabled:!1,covidEnabled:!1}},horizonCenterId:"",tags:[],emrInstance:""},REGISTRATIONS="registrations",LOCATIONS="locations",TAGS="tags",StyledSearchInput=styled$1("input")`
  max-width: 872px;
  flex: 1;
  font-size: 16px;
  line-height: get-line-height(16, 24);
  padding: 12px 24px 12px 48px;
  background-color: ${et=>et.theme.palette.grey[100]};
  border: 2px solid ${et=>et.theme.palette.grey[600]};
  margin-right: 16px;

  &:focus {
    border: 2px solid ${et=>et.theme.palette.primary.main};
    outline: none;
  }
`,StyledPatientSearchResult=styled$1("div")`
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  padding: 16px 8px 24px 8px;
`,StyledEmrText=styled$1("div")`
  font-style: normal;
  font-size: 16px;
  color: ${et=>et.theme.palette.grey[600]};
`,StyledTagStatus=styled$1("span")`
  border-radius: 100px;
  font-size: 12px;
  padding: 3px 14px;
  white-space: nowrap;
  overflow: hidden;
  border: 2px solid ${et=>et.theme.palette.tag.main};
  margin-right: 5px;
`,StyledPatientSearchTips=styled$1("div")`
  color: ${et=>et.theme.palette.grey[600]};
  padding-left: 8px;
  padding-bottom: 72px;
  padding-top: 24px;
`;class PatientSearch extends reactExports.Component{constructor(rt){super(rt);Nr(this,"searchTerm");Nr(this,"liveSearchInput",null);Nr(this,"triggerSubmit",null);Nr(this,"extractSearchTerm",()=>{const rt=this.props.location.search;if(rt){const lt=new URLSearchParams(rt).get(SEARCH_NAME);lt&&(this.searchTerm=lt,this.context.setSearchTerm(this.searchTerm))}else this.searchTerm=this.context.state.searchTerm});Nr(this,"filterOrTermSelected",()=>!!this.searchTerm||!!(this.liveSearchInput&&this.liveSearchInput.value)||!!this.state.selectedRegistrations.length||!!this.state.selectedLocations.length||!!this.state.selectedTags.length);Nr(this,"setFormType",rt=>{this.setState({formType:rt}),this.handleGetPINModalOpen(this.state.selectedPatient,rt)});Nr(this,"castToNumber",rt=>rt.map(nt=>parseInt(nt)));Nr(this,"fetchSearchResults",()=>this.filterOrTermSelected()?jsxRuntimeExports.jsx(Query,{query:PATIENT_SEARCH,variables:{searchTerm:this.searchTerm||"",selectedFilter:this.state.selectedRegistrations,locationFilter:this.castToNumber(this.state.selectedLocations),tagFilter:this.castToNumber(this.state.selectedTags)},children:({loading:rt,error:nt,data:lt})=>{const ut=lt,dt=nt;if(rt)return jsxRuntimeExports.jsx(LoadingSpinner,{});dt&&this.renderNoSearchResults();const{registrationInviteModalOpen:pt,selectedPatient:ht,selectedPatientOptIn:mt,selectedPatientIda:xt,selectedAddress:Mt,selectedDob:vt,lockErrorModalOpen:Ot,optInModalInDOM:At}=this.state;return jsxRuntimeExports.jsxs("div",{children:[pt&&jsxRuntimeExports.jsx(PatientAccessModal,{patient:ht,isOpen:pt,onClose:()=>{this.setState({...this.state,registrationInviteModalOpen:!1})}}),At&&jsxRuntimeExports.jsx(apolloDialogOptIn,{patient:mt,isOpen:this.state.optInModalOpen,dismissFunction:()=>{this.state.isOptInMutationLoading||(this.releaseLock(),this.resetOptInModalStates())},saveFunction:(Rt,zt,Tt)=>{this.handleSaveOptIn(Rt,zt,Tt)},dismissLock:()=>this.setState({isOptInMutationLoading:!1}),setMutationLoading:()=>this.setState({isOptInMutationLoading:!0}),patientIda:xt,address:Mt,dob:vt},`modal-opt-in-${mt==null?void 0:mt.id}`),jsxRuntimeExports.jsx(ModalInfo$1,{title:"Record in use",text:this.state.lockErrorText,isOpen:Ot,dismissFunction:()=>{this.setState({lockErrorModalOpen:!1})}}),jsxRuntimeExports.jsxs(StyledPatientSearchResult,{id:"patient-search-results",children:[this.filterOrTermSelected()&&this.renderContents(ut),this.filterOrTermSelected()&&this.renderSearchTips(!!(ut&&ut.searchPatients&&ut.searchPatients.length>0),!!this.searchTerm)]})]})}}):jsxRuntimeExports.jsx(reactExports.Fragment,{}));Nr(this,"renderContents",rt=>rt&&rt.searchPatients&&rt.searchPatients.length?this.renderSearchResults(rt):this.renderNoSearchResults());Nr(this,"renderSearchResults",rt=>{const nt=[PSO,SUPERUSER].includes(this.state.primaryRole),lt=this.state.primaryRole===NURSE;if(rt&&rt.searchPatients&&rt.searchPatients.length>0)return rt.searchPatients.filter(dt=>!!dt.ida).map((dt,pt)=>{const ht=dt.userProfile.patientFeatures.managementPlansEnabled;let mt="",xt="";switch(dt.overallStatus){case FormStatus.REG_SUBMITTED:mt="submitted-to-mq",xt=isUs()?"Submitted":"Submitted to MQ";break;case FormStatus.REG_REVIEW_REQUIRED:mt="needs-review",xt="Review required";break;case FormStatus.IN_PROGRESS:mt="in-progress",xt="In progress";break;default:mt="",xt="";break}return jsxRuntimeExports.jsxs("div",{id:`patient_${dt.ida}`,className:"patient-search-result",children:[jsxRuntimeExports.jsxs("div",{className:"patient-heading",children:[jsxRuntimeExports.jsxs("div",{className:"patient-search-name",children:[dt.firstName," ",dt.lastName]}),nt&&dt.tags.map((Mt,vt)=>jsxRuntimeExports.jsx(StyledTagStatus,{className:"tag-status",children:Mt.tag.name},vt)),nt&&jsxRuntimeExports.jsx("span",{className:`form-status ${mt}`,children:xt})]}),jsxRuntimeExports.jsxs("div",{className:"patient-search-emr",children:[jsxRuntimeExports.jsx(SvgEmrOutlined,{}),jsxRuntimeExports.jsxs(StyledEmrText,{className:"patient-search-emr-text",children:["EMR: ",dt.emrInstance||"-"]})]}),jsxRuntimeExports.jsxs("div",{className:"patient-search-details",children:[jsxRuntimeExports.jsxs("div",{className:"patient-search-all",children:[this.renderContentDetails("Patient ID",dt.ida),this.renderContentDetails("Date of birth",DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(dt.dob,Object.create(globalThis.import_meta_env||null).REACT_APP_REGION)),this.renderContentDetails("Phone",dt.primaryPhoneFormatted)]}),jsxRuntimeExports.jsx("div",{className:"patient-search-address",children:this.renderContentDetails("Address",this.createAddress(dt.address))}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[nt&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:"patient-get-pin",children:[jsxRuntimeExports.jsx(LoadingButton,{variant:"outlined",size:"large",type:"submit","data-testid":"form-access-button",onClick:Mt=>{Mt.preventDefault(),this.handleGetPINModalOpen(dt)},loading:dt.id===this.state.buttonLoadingId,children:"Form access"}),this.renderRegistrationSignUpStatus(dt)]}),!isUs()&&jsxRuntimeExports.jsxs("div",{className:"patient-search-opt-in",children:[jsxRuntimeExports.jsx(LoadingButton,{variant:"outlined",size:"large","data-testid":"patient-search-portal-access",onClick:Mt=>{Mt.preventDefault(),this.handleOptInModalOpen(dt)},loading:dt.id===this.state.optInModalLoadingId,children:"Portal access"}),this.renderPXSignUp(dt.pxOptedIn)]})]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Button,{variant:"outlined",size:"large",type:"submit",sx:{marginLeft:2},"data-testid":"patient-form-summary",onClick:Mt=>{Mt.preventDefault(),this.props.history.push({pathname:(nt?"/navigator/":"/")+`patient/${dt.id}/summary`,state:{primaryRole:this.state.primaryRole}})},children:nt?"View summary":"Assessments"})}),lt&&ht&&jsxRuntimeExports.jsx("div",{className:"management-plans-button",style:{marginLeft:"48px"},children:jsxRuntimeExports.jsx(Button,{variant:"outlined",size:"large",type:"submit",onClick:Mt=>{Mt.preventDefault(),this.props.history.push({pathname:`patient/${dt.id}/management`,state:{primaryRole:this.state.primaryRole}})},children:"Management plans"})})]})]})]},pt)})});Nr(this,"renderRegistrationSignUpStatus",rt=>{let nt=jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning",className:"icon"}),lt="Not provided";return rt.userProfile.registrationAccessType!==""&&(nt=jsxRuntimeExports.jsx(SvgSuccess,{className:"signed-up icon"}),rt.userProfile.registrationAccessType==="atHome"?lt="At home":rt.userProfile.registrationAccessType==="inClinic"&&(lt="In clinic")),jsxRuntimeExports.jsxs("div",{className:"registration-status-container",children:[nt,jsxRuntimeExports.jsx("div",{"data-test-id":"registration-status",children:lt})]})});Nr(this,"renderSearchTips",(rt,nt)=>{let lt=COPY$1.CANT_FIND_SEARCH_TIP;return rt||(lt=COPY$1.SEARCH_TIPS),jsxRuntimeExports.jsxs(StyledPatientSearchTips,{id:"patient-search-tips",children:[jsxRuntimeExports.jsx("div",{id:"patient-search-tips-heading",children:lt}),jsxRuntimeExports.jsx("div",{id:"patient-search-tips-points",children:jsxRuntimeExports.jsxs("ul",{children:[nt&&jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(SvgBulletPoint,{}),COPY$1.CHECK_SPELLING]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(SvgBulletPoint,{}),COPY$1.NEW_MOSAIQ_PATIENT_WAIT]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(SvgBulletPoint,{}),COPY$1.NAME_OR_ID_MESSAGE]}),jsxRuntimeExports.jsxs("li",{children:[jsxRuntimeExports.jsx(SvgBulletPoint,{}),COPY$1.CLEAR_STATUS_FILTER]})]})})]})});Nr(this,"renderContentDetails",(rt,nt)=>{let lt=nt;return(lt==null||lt==="")&&(lt="Not provided"),jsxRuntimeExports.jsxs("div",{className:"patient-search-content-row",children:[jsxRuntimeExports.jsxs("div",{className:"patient-search-title-column",children:[rt,":"]}),jsxRuntimeExports.jsx("div",{className:"patient-search-value-column",children:lt})]})});Nr(this,"renderPXSignUp",rt=>{let nt=jsxRuntimeExports.jsx(ErrorOutlineIcon,{color:"warning",className:"icon"}),lt=COPY$1.NOT_SIGNED_UP;return rt===!0?(nt=jsxRuntimeExports.jsx(SvgSuccess,{className:"signed-up icon"}),lt=COPY$1.SIGNED_UP):rt===!1&&(nt=jsxRuntimeExports.jsx(SvgErrorCross,{className:"opted-out icon"}),lt=COPY$1.OPTED_OUT),jsxRuntimeExports.jsxs("div",{className:"patient-search-portal-status-container",children:[nt,jsxRuntimeExports.jsx("span",{className:"patient-search-portal-status",children:lt})]})});Nr(this,"createAddress",rt=>{if(rt){const{line1:nt,line2:lt,city:ut,state:dt,country:pt,postcode:ht}=rt;if(nt||ut||dt||pt||ht)return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{children:[nt,",",jsxRuntimeExports.jsx("br",{}),this.renderLine2(lt),ut,",",jsxRuntimeExports.jsx("br",{}),dt," ",pt," ",ht]})})}});Nr(this,"renderLine2",rt=>rt?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[rt,",",jsxRuntimeExports.jsx("br",{})]}):jsxRuntimeExports.jsx(reactExports.Fragment,{}));Nr(this,"handleGetPINModalOpen",async(rt,nt=COPY$1.PATIENT_REGISTRATION)=>{let lt;nt===FormType.DISTRESS&&(lt=COPY$1.DISTRESS_PIN),this.setState({buttonLoadingId:rt.id,modalHeader:lt});const dt=await this.getLockDetails(rt);dt.readOnly?(this.setState({...this.state,registrationInviteModalOpen:!0,selectedName:`${rt.firstName} ${rt.lastName}`,selectedPatient:rt,selectedPatientId:rt.id,selectedDob:rt.dob,buttonLoadingId:"",selectedPatientIda:rt.ida,selectedAddress:rt.address,selectedPatientOptIn:{id:rt.id,firstName:rt.firstName,lastName:rt.lastName,pxOptedIn:rt.pxOptedIn,primaryPhone:rt.primaryPhone,email:rt.email,pxOptOutComment:rt.pxOptOutComment,emrInstance:rt.emrInstance}}),this.releaseLock()):this.openErrorModalAndResetLoading(dt.lockedByName)});Nr(this,"handleOptInModalOpen",async rt=>{this.setState({optInModalLoadingId:rt.id});const nt=await this.getLockDetails(rt);nt.readOnly?this.setState({optInModalOpen:!0,optInModalInDOM:!0,optInModalLoadingId:"",selectedPatientId:rt.id,selectedPatientIda:rt.ida,selectedAddress:rt.address,selectedDob:rt.dob,selectedPatientOptIn:{id:rt.id,firstName:rt.firstName,lastName:rt.lastName,pxOptedIn:rt.pxOptedIn,primaryPhone:rt.primaryPhone,email:rt.email,pxOptOutComment:rt.pxOptOutComment,emrInstance:rt.emrInstance}}):this.openErrorModalAndResetLoading(nt.lockedByName)});Nr(this,"getLockDetails",async rt=>{const{client:nt}=this.props;if(!nt)throw new Error("Client not found");const lt=await nt.query({query:RECORD_LOCK_QUERY,fetchPolicy:"no-cache",variables:{id:rt.id}}),{data:{patient:ut}}=lt;return ut&&ut.lock&&!ut.lock.readOnly?{readOnly:!0,lockedByName:void 0}:{readOnly:!1,lockedByName:ut.lock?ut.lock.lockedByName:"a staff member"}});Nr(this,"openErrorModalAndResetLoading",rt=>{if(rt){const nt=COPY$1.RECORD_IN_USE_BY,lt=COPY$1.RECORD_IN_USE_NO_VIEW,ut=`${nt} ${rt}${lt}`;this.setState({lockErrorModalOpen:!0,optInModalLoadingId:"",buttonLoadingId:"",lockErrorText:ut})}});Nr(this,"releaseLock",()=>{var rt;this.state.selectedPatientId!==""&&((rt=this.props.client)==null||rt.mutate({mutation:RELEASE_LOCK_MUTATION,variables:{accessPatientId:this.state.selectedPatientId}}))});Nr(this,"submitHandler",rt=>{this.filterOrTermSelected()||rt.preventDefault()});Nr(this,"handleSendPXEmailInvitation",rt=>{var nt;rt&&((nt=this.props.client)==null||nt.mutate({mutation:SEND_PX_EMAIL_INVITATION,variables:{recipientEmail:rt}}).then(lt=>{logger$2.info("Invite link is:",lt.data.sendPxEmailInvitation.inviteLink),this.setState({modalPatientRegAcces:!1})}))});Nr(this,"handleSaveOptIn",(rt,nt,lt)=>{var vt;logger$2.debug("handleSaveOptIn",JSON.stringify(rt),JSON.stringify(nt));const{selectedPatientOptIn:ut}=this.state;let dt="",pt="",ht="",mt={id:ut.id,pxOptedIn:nt},xt="";if(nt){let Ot="";if(rt.forEach(At=>{At.key==="email"?xt=At.value:At.key==="primaryPhone"&&(Ot=At.value)}),xt===""||Ot==="")return;dt="$email: String, $primaryPhone: String",pt="email: $email, primaryPhone: $primaryPhone",ht=`email
primaryPhoneFormatted
primaryPhone
`,mt={...mt,email:xt,primaryPhone:Ot}}else{const[Ot]=rt;if(Ot.key!=="pxOptOutComment")return;const At=Ot.value;dt="$pxOptOutComment: String",pt="pxOptOutComment: $pxOptOutComment",ht="pxOptOutComment",mt={...mt,pxOptOutComment:At}}const Mt=`mutation UpdatePatient($id: ID!, $pxOptedIn: Boolean, ${dt}) {
      updatePatient(id: $id, pxOptedIn: $pxOptedIn, ${pt}) {
        patient {
          id
          pxOptedIn
          ${ht}
        }
      }
    }`;logger$2.debug("handleSaveOptIn","Parameters:",dt,pt,ht,mt),(vt=this.props.client)==null||vt.mutate({mutation:gql(Mt),variables:{...mt}}).then(()=>{logger$2.debug("handleSaveOptIn","Saved the mutation"),nt&&(this.handleSendPXEmailInvitation(xt),lt&&this.submitRegistration(!1)),this.setState({isOptInMutationLoading:!1})}).then(()=>this.resetOptInModalStates())});Nr(this,"resetOptInModalStates",()=>{this.setState({optInModalOpen:!1,selectedPatientOptIn:{...EMPTY_PATIENT_OPT_IN},selectedPatientId:""})});Nr(this,"submitRegistration",(rt=!1,nt=!1)=>{const{client:lt}=this.props,{selectedPatientOptIn:{id:ut}}=this.state;lt==null||lt.mutate({mutation:CREATE_SUBMISSION$1,variables:{patientID:ut,includePdf:rt,updateFormStatus:!1,fromHomeRego:nt}}).then(dt=>{dt.data&&dt.data.createSubmission&&dt.data.createSubmission.submission&&dt.data.createSubmission.submission.pdf&&logger$2.debug("submitRegistration",`Response came back: /server/media/${dt.data.createSubmission.submission.pdf}`)})});this.state={registrationInviteModalOpen:!1,modalPatientRegAcces:!1,modalHeader:void 0,selectedName:"",selectedPIN:"",buttonLoadingId:"",optInModalLoadingId:"",optInModalOpen:!1,optInModalInDOM:!1,selectedPatient:EMPTY_PATIENT,selectedPatientId:"",selectedPatientIda:"",selectedDob:"",selectedAddress:{...EMPTY_PATIENT_ADDRESS},lockErrorModalOpen:!1,lockErrorText:"",selectedPatientOptIn:{...EMPTY_PATIENT_OPT_IN},distressThermometerEnabled:!1,allowedLocations:[],tagOptions:[],primaryRole:"",selectedLocations:JSON.parse(sessionStorage.getItem(LOCATIONS)||"[]"),selectedTags:JSON.parse(sessionStorage.getItem(TAGS)||"[]"),selectedRegistrations:JSON.parse(sessionStorage.getItem(REGISTRATIONS)||"[]"),formType:"",profileSlideOpen:!1,pageShown:"search",isPractitioner:!0,isOptInMutationLoading:!1},this.setFormType=this.setFormType.bind(this)}componentDidMount(){const{client:rt}=this.props;rt&&(rt.query({query:GET_USER_DETAILS$1,variables:{roles:["PSO"],hasOther:!0}}).then(nt=>{{const lt=getCurrentScope();lt.setTag("user_type","pso"),lt.setUser({id:nt.data.user.id,username:nt.data.user.username})}this.setState({distressThermometerEnabled:nt.data.user.features.distressThermometer,allowedLocations:nt.data.allowedLocations,primaryRole:nt.data.user.primaryRole,isPractitioner:nt.data.user.isPractitioner})}),rt.writeQuery({query:gql`
        query {
          registrationPagesViewed
        }
      `,data:{registrationPagesViewed:[]}}))}render(){const{client:rt}=this.props;this.extractSearchTerm();const nt=[PSO,SUPERUSER].includes(this.state.primaryRole),lt=this.state.primaryRole===NURSE;if(!this.state.isPractitioner&&[NURSE].includes(this.state.primaryRole)){const ut=COPY$1.IS_PRACTITIONER_ERROR,dt=CurrentAppConfig.SupportEmail,pt=()=>{window.location.href=`mailto:${dt}`},ht=()=>{rt&&(rt.clearStore().then(()=>{rt.writeQuery({query:gql`
              query {
                contentShown
              }
            `,data:{contentShown:!1}})}),rt.mutate({mutation:LOGOUT_MUTATION$2,variables:{}}).then(mt=>{if(mt.data.logout.errors!==null){logger$2.error("logout","Unable to logout"),logger$2.error("logout",mt.data.logout.errors);return}navigateToExternalURL("/sso/logout")}))};return jsxRuntimeExports.jsx(StandardDialog,{open:!0,title:COPY$1.CANT_FIND_ACC_DETAILS,submitText:"Logout & contact us",onSubmit:()=>{pt(),ht()},children:jsxRuntimeExports.jsx(ModalContentSubmissionError,{text:ut,emailLink:dt})})}return jsxRuntimeExports.jsx(Query,{query:SEARCH_FILTERS_REF_DATA_QUERY$1,children:({loading:ut,error:dt,data:pt})=>{var Dt,kt,qt;const{setError:ht}=useErrorModalContext(),{data:mt,loading:xt}=useQuery(GET_TAG_OPTIONS),Mt=(Dt=pt==null?void 0:pt.searchFiltersRefData)==null?void 0:Dt.map(Nt=>({label:isUs()&&Nt.name===COPY$1.SUBMITTED_TO_MOSAIQ?"Submitted":Nt.name,value:Nt.appKey})),vt=(kt=this.state.allowedLocations)==null?void 0:kt.map(Nt=>({label:Nt.alias,value:Nt.id})),Ot=(qt=mt==null?void 0:mt.tagOptions)==null?void 0:qt.map(Nt=>({label:Nt.name,value:Nt.id})),{selectedRegistrations:At,selectedTags:Rt,selectedLocations:zt}=this.state,Tt=Nt=>this.setState({selectedRegistrations:Nt}),Ct=Nt=>this.setState({selectedLocations:Nt}),It=Nt=>this.setState({selectedTags:Nt});return reactExports.useEffect(()=>{sessionStorage.setItem(REGISTRATIONS,JSON.stringify(At))},[At]),reactExports.useEffect(()=>{sessionStorage.setItem(LOCATIONS,JSON.stringify(zt))},[zt]),reactExports.useEffect(()=>{sessionStorage.setItem(TAGS,JSON.stringify(Rt))},[Rt]),reactExports.useEffect(()=>{if(dt)return ht()},[dt]),ut||xt?jsxRuntimeExports.jsx(LoadingSpinner,{}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:`patient-search ${nt&&"below-pso-dashboard"}`,children:[lt&&jsxRuntimeExports.jsx("div",{className:"search-title padded",children:"Patient Search"}),(nt||lt)&&jsxRuntimeExports.jsxs("form",{action:"/search",id:"patient-search-form",method:"GET",onSubmit:this.submitHandler,ref:Nt=>{this.triggerSubmit=Nt},children:[jsxRuntimeExports.jsxs("div",{className:"patient-search-input-container",children:[jsxRuntimeExports.jsx(StyledSearchInput,{type:"text",id:"patient-search-input","data-testid":"patient-search-input",name:SEARCH_NAME,placeholder:COPY$1.SEARCH_PLACEHOLDER,defaultValue:this.searchTerm,ref:Nt=>{this.liveSearchInput=Nt}}),jsxRuntimeExports.jsx(Button,{size:"large","data-testid":"patient-search",variant:"contained",type:"submit",children:"Search"})]}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",spacing:2,id:nt?"patient-search-filter-wrapper-pso":"patient-search-filter-wrapper-nurse",children:[jsxRuntimeExports.jsxs(SearchFilter,{showAlert:!!(At.length||zt.length||Rt.length),children:[!lt&&jsxRuntimeExports.jsx("div",{className:"search-menu-item",children:jsxRuntimeExports.jsx(SearchMultiSelectField,{selectAllEnabled:!0,selectAllLabel:"Select all",selectedOptionsUpdated:Tt,resetSearchResults:()=>{},defaultSelectedOptions:At,options:Mt||[],placeholder:"Registration",allSelected:(At==null?void 0:At.length)===(Mt==null?void 0:Mt.length),allSelectedLabel:"All registration types"})}),jsxRuntimeExports.jsx("div",{className:"search-menu-item",children:jsxRuntimeExports.jsx(SearchMultiSelectField,{selectAllEnabled:!0,selectAllLabel:"Select all",selectedOptionsUpdated:Ct,resetSearchResults:()=>null,defaultSelectedOptions:zt,options:vt,placeholder:"Location",allSelected:(zt==null?void 0:zt.length)===(vt==null?void 0:vt.length),allSelectedLabel:"All locations"})}),!isUs()&&jsxRuntimeExports.jsx("div",{className:"search-menu-item",children:jsxRuntimeExports.jsx(SearchMultiSelectField,{selectAllEnabled:!0,selectAllLabel:"Select all",selectedOptionsUpdated:It,resetSearchResults:()=>null,defaultSelectedOptions:Rt,options:Ot,placeholder:"Tag",allSelected:(Rt==null?void 0:Rt.length)===(Ot==null?void 0:Ot.length),allSelectedLabel:"All tags"})})]}),(nt||lt&&this.state.allowedLocations.length>0)&&jsxRuntimeExports.jsx(Button,{variant:"text","data-testid":"clear-filter",onClick:()=>{Tt([]),Ct([]),It([])},children:"Clear filters"})]})]}),jsxRuntimeExports.jsx("br",{})]}),this.filterOrTermSelected()&&this.fetchSearchResults()]})}})}renderNoSearchResults(){const rt=this.searchTerm?`"${this.searchTerm}"`:"your selected filters";return jsxRuntimeExports.jsxs(Typography,{style:{margin:"48px 0px 48px 8px",fontWeight:"bold"},variant:"h6",id:"patient-search-no-results",children:[COPY$1.NO_RESULTS," ",`${rt}`]})}}Nr(PatientSearch,"contextType",NavigationContext);const apolloPatientSearch=withApollo(PatientSearch),PatientSearch$1=withRouter(apolloPatientSearch),idleTimeOut=1e3*60*60,onIdleHandler=()=>{window.location.pathname.includes("radiation")||window.location.reload()},Refresh=()=>(se$1({onIdle:onIdleHandler,timeout:idleTimeOut,events:["mousedown","touchstart","MSPointerDown"]}),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})),RegistrationConflictsStepperButton=({patientId:et})=>jsxRuntimeExports.jsx("div",{className:"registration-conflicts-stepper-button",children:jsxRuntimeExports.jsx(StepperButton,{linkText:"Resolve data conflicts",linkHref:`/registration/${et}/conflicts`,isActive:!0,visited:!0,alert:!0})});class RegistrationPatientDetails extends reactExports.Component{constructor(){super(...arguments);Nr(this,"renderNewsCardRow",(rt,nt,lt)=>{const ut=this.renderContentMessage(nt,lt),dt=ut===lt||ut==="Not provided";return jsxRuntimeExports.jsxs("div",{className:"newscard-row",children:[jsxRuntimeExports.jsx("div",{className:"newscard__title newscard--bold",children:rt}),jsxRuntimeExports.jsx("div",{className:classNames$1("newscard__content",{optional:dt}),children:ut})]})});Nr(this,"renderContentMessage",(rt,nt)=>!rt||rt.trim()===""?nt||"Not provided":rt);Nr(this,"getDisplayValue",(rt,nt)=>{for(let lt=0;lt<rt.length;lt++)if(rt[lt].id===nt)return rt[lt].name;return nt})}render(){const{patient:rt}=this.props;let nt="";return rt.address&&(nt=rt.address.formattedAddress),jsxRuntimeExports.jsxs(NewsCard,{title:`${rt.firstName} ${rt.lastName}`,primaryIcon:jsxRuntimeExports.jsx(SvgPermIdentity,{}),children:[this.renderNewsCardRow("EMR:",rt.emrInstance),this.renderNewsCardRow("Patient ID:",rt.ida),this.renderNewsCardRow("Date of birth:",DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(rt.dob,Object.create(globalThis.import_meta_env||null).REACT_APP_REGION)),this.renderNewsCardRow("Address:",nt)]})}}const USER_DETAILS_QUERY=gql`
  query PatientAndUserDetails($id: ID!) {
    profile(id: $id) {
      id
      patientFeatures(id: $id) {
        doctorReferralLookupEnabled
      }
    }
  }
`,RegistrationStepper=et=>{var Ct,It;const tt=useHistory(),{patientId:rt,disabled:nt,isPso:lt,regFormStatus:ut}=et,pt=[{linkText:"Basic details",href:"/basic",isVisible:!0},{linkText:"Contact details",href:"/contact",isVisible:!0},{linkText:"Address",href:"/address",isVisible:!0},{linkText:"Alternate contacts",href:"/altcontact",isVisible:!0},{linkText:region===Region.UK?"Referring clinicians":"Referrers",href:"/gp",isVisible:!0},{linkText:"Health insurance",href:"/medicare",isVisible:region!==Region.UK},{linkText:"Demographics",href:"/demographics",isVisible:!0},{linkText:"Information notice",href:"/infonotice",isVisible:region!==Region.UK},{linkText:"Preferences",href:"/preferences",isVisible:region===Region.UK},{linkText:"Insurance",href:"/insurance",isVisible:region===Region.UK},{linkText:"File attachments",href:"/attachments",isVisible:region===Region.UK},{linkText:region===Region.AU?"Document Upload":"Attachments",href:"/attachments",isVisible:region!==Region.UK},{linkText:"Review & submit",href:"/summary",isVisible:!0}].filter(Dt=>Dt.isVisible),[ht,mt]=reactExports.useState(!1),[xt]=useMutation(LOG_EVENT),{data:Mt}=useQuery(UNSEEN_POPUP_NOTIFICATIONS,{fetchPolicy:"no-cache"}),[vt]=useMutation(UPDATE_USER_POPUP_NOTIFICATION,{awaitRefetchQueries:!0,refetchQueries:[{query:UNSEEN_POPUP_NOTIFICATIONS}]}),Ot=(It=(Ct=Mt==null?void 0:Mt.unseenPopups)==null?void 0:Ct.find(Dt=>Dt.description==="GP Referrer"))==null?void 0:It.id,At=!!Ot,{data:Rt}=useQuery(USER_DETAILS_QUERY,{skip:!lt,variables:{id:rt},fetchPolicy:"no-cache",onCompleted:Dt=>Dt});reactExports.useEffect(()=>{var kt,qt;const Dt=window.location.pathname.split("/").slice(-1)[0];if(Mt&&Rt){const Nt=Mt&&At&&lt&&((qt=(kt=Rt==null?void 0:Rt.profile)==null?void 0:kt.patientFeatures)==null?void 0:qt.doctorReferralLookupEnabled)&&ut==="filterReviewRequired"&&Dt!=="gp";mt(Nt)}},[lt,ut,Mt,Rt]);const zt=()=>{vt({variables:{id:Ot}}),mt(!1)},Tt=()=>{mt(!1),tt.push(`/registration/${rt}/gp`)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Mt&&jsxRuntimeExports.jsx(Stepper$2,{links:pt,basePath:`/registration/${rt}`,disabled:nt,closePopup:Tt,closeAndAckPopup:zt,popoverOpen:ht,logPopoverData:xt})})},REACT_APP_REGION$3=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region$1=REACT_APP_REGION$3,registrationFormHeadingText="Registration Form";class RegistrationContainer extends reactExports.Component{constructor(rt){super(rt);Nr(this,"headerHasRendered",()=>{this.setState({headerBarRendered:!0})});Nr(this,"getSaveIndicator",()=>{const{saveStatus:rt}=this.props;if(rt){const nt=rt===SavingStatus.FAILED;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[nt&&jsxRuntimeExports.jsx("span",{id:"saving-status-icon",children:jsxRuntimeExports.jsx(SvgErrorExclamation,{className:"icon"})}),jsxRuntimeExports.jsx("span",{id:"save-status-text",className:classNames$1("save-status-text",{"save-failed":nt}),children:rt})]})}else return jsxRuntimeExports.jsx(reactExports.Fragment,{})});this.state={previousPageTitle:"",headerBarRendered:!1}}componentDidMount(){this.setState({previousPageTitle:document.title}),document.title=`${document.title} - ${registrationFormHeadingText}`}componentWillUnmount(){const rt=this.state.previousPageTitle;document.title=rt||"Horizon"}render(){const{patient:rt,genderRefData:nt,isPso:lt,children:ut,history:dt,hasDataConflicts:pt,alertHeader:ht}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[region$1!==Region.UK&&jsxRuntimeExports.jsx(HeaderBar,{headingText:registrationFormHeadingText,menuButton:!0,hasRendered:this.headerHasRendered}),pt&&ht&&jsxRuntimeExports.jsx(AlertHeader,{alert:ht}),jsxRuntimeExports.jsxs("div",{id:"reg-container",className:"page-container full-viewport",children:[jsxRuntimeExports.jsx(ResubmissionWarningHeader,{patient:rt}),jsxRuntimeExports.jsx(TestInstanceWarning,{patient:rt}),region$1===Region.UK&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(UKPatientCard,{patient:rt}),jsxRuntimeExports.jsxs("div",{id:"reg-container-header",className:classNames$1("sticky-top"),children:[jsxRuntimeExports.jsx("div",{id:"reg-container-header-title",children:registrationFormHeadingText}),jsxRuntimeExports.jsx("div",{id:"saving-status",children:this.getSaveIndicator()})]})]}),jsxRuntimeExports.jsxs("div",{className:`d-flex ${classNames$1("reg-container-elements",{patient:!lt})}`,children:[lt&&region$1!==Region.UK&&jsxRuntimeExports.jsxs("div",{className:"left-container px-2",children:[jsxRuntimeExports.jsx("div",{className:"newspaper-container",children:jsxRuntimeExports.jsx(RegistrationPatientDetails,{patient:rt,genderRefData:nt})}),jsxRuntimeExports.jsx(Button,{onClick:mt=>{mt.preventDefault();const xt=(lt?"/navigator/":"/")+`patient/${rt.id}/summary`;dt.push(xt)},type:"submit","data-testid":"back-to-summary-button",children:lt?"Go to summary":"View all forms"})]}),jsxRuntimeExports.jsxs("div",{className:"right-container d-flex flex-wrap px-1",children:[jsxRuntimeExports.jsxs("div",{id:"reg-container-stepper",className:classNames$1({"uk-bottom-margin":region$1===Region.UK}),children:[region$1!==Region.UK&&jsxRuntimeExports.jsx("div",{id:"reg-container-header",children:jsxRuntimeExports.jsx("div",{id:"reg-container-header-title",children:registrationFormHeadingText})}),pt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(RegistrationConflictsStepperButton,{patientId:rt.id}),jsxRuntimeExports.jsx(RegistrationStepper,{patientId:rt.id,disabled:!0})]}):jsxRuntimeExports.jsx(RegistrationStepper,{patientId:rt.id,isPso:lt,regFormStatus:rt.regFormStatus})]}),jsxRuntimeExports.jsx("div",{id:"reg-container-content",className:`my-1 ${classNames$1({"uk-bottom-margin":region$1===Region.UK})}`,children:ut})]})]})]}),jsxRuntimeExports.jsx(RegistrationContext.Consumer,{children:mt=>jsxRuntimeExports.jsx(NavigationContext.Consumer,{children:xt=>jsxRuntimeExports.jsx(routedComponent$1,{registrationContext:mt,navigationContext:xt,...this.props})})})]})}}Nr(RegistrationContainer,"defaultProps",{saveStatus:SavingStatus.FAILED});const routerComponent=withRouter(RegistrationContainer),RegistrationHomeClinic=et=>{const{locationListData:tt,validationObject:rt,disabled:nt,isHomeRego:lt,stateHandler:ut,patient:dt}=et,[pt,ht]=reactExports.useState(""),[mt]=useMutation(UPDATE_CENTER_MUTATION),xt=Ot=>{lt&&ut&&ut(Ot),mt({variables:{id:dt.id,horizonCenterId:Ot}}),ht(Ot)};reactExports.useEffect(()=>{Mt===null&&tt.length===1&&xt(tt[0].id)},[tt]);const Mt=et.horizonCenterId?et.horizonCenterId.toString():et.horizonCenterId,vt=pt||Mt;return jsxRuntimeExports.jsxs("div",{className:"registration-home-clinic",children:[jsxRuntimeExports.jsx("div",{className:"home-clinic-title",children:"Patient Primary Department"}),jsxRuntimeExports.jsx("div",{className:"registration-home-clinic-dropdown",children:jsxRuntimeExports.jsx(DropDownField,{disabled:nt,inputKey:pt,inputName:"patient-home-clinic",placeholder:"Please select",defaultValue:vt,options:tt,onChange:Ot=>{xt(Ot.target.value)},errors:rt&&rt.primaryDepartment&&!pt?rt.primaryDepartment:void 0})})]})},RegistrationHomeClinicApollo=et=>{const{patient:tt,horizonCenterId:rt,homeRego:nt,stateHandler:lt,validationObject:ut,disabled:dt}=et,{setError:pt}=useErrorModalContext(),ht=vt=>vt.map(({alias:Ot,...At})=>({name:Ot,...At})),{loading:mt,data:xt,error:Mt}=useQuery(GET_LOCATION_PROFILE,{variables:{patientId:tt.id},skip:!tt.id});if(reactExports.useEffect(()=>{if(Mt)return pt()},[Mt]),mt)return jsxRuntimeExports.jsx(reactExports.Fragment,{});if(xt&&xt.locationsPsoSystem){const vt=ht(xt.locationsPsoSystem);return jsxRuntimeExports.jsx(RegistrationHomeClinic,{disabled:dt,isHomeRego:nt||!1,patient:tt,locationListData:vt,horizonCenterId:rt,stateHandler:lt,validationObject:ut})}return jsxRuntimeExports.jsx(reactExports.Fragment,{})},component$1=withApollo(RegistrationHomeClinicApollo),RegistrationContextProvider=et=>{const[tt,rt]=reactExports.useState(""),[nt,lt]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),[pt,ht]=reactExports.useState(!1),[mt,xt]=reactExports.useState(!1);return jsxRuntimeExports.jsx(RegistrationContext.Provider,{value:{addressPlaceId:tt,setAddressPlaceId:rt,registrationSummaryVisited:nt,setRegistrationSummaryVisited:lt,haSummaryVisited:ut,setHaSummaryVisited:dt,gpLookupUsed:pt,setGpLookupUsed:ht,referrerLookupUsed:mt,setReferrerLookupUsed:xt},children:et.children})},fieldLinks={namePrefix:"basic",firstName:"basic",middleName:"basic",lastName:"basic",gender:"basic",dobRaw:"basic",primaryCenter:"basic",idb:"basic",nhsOptions:"basic",registrationReason:"basic",registrationReasonText:"basic",primaryPhone:"contact",secondaryPhone:"contact",email:"contact",residentialAddressLine1:"address",residentialAddressCity:"address",residentialAddressState:"address",residentialAddressCountry:"address",residentialAddressPostcode:"address",generalPractitioner:"gp",referringSurgeon:"gp",oncologist:"gp","emergencyContact.firstName":"altcontact","emergencyContact.lastName":"altcontact","emergencyContact.relationship":"altcontact","emergencyContact.mobilePhoneNumber":"altcontact","emergencyContact.homePhoneNumber":"altcontact","emergencyContact.authorisedForEnquiries":"altcontact","emergencyContact.supportPerson":"altcontact","emergencyContact.email":"altcontact",countryOfBirth:"demographics",languageAtHome:"demographics",heritage:"demographics",maritalStatus:"demographics",payor:"insurance",attachments:"attachments",attachmentAcknowledged:"attachments"},mandatoryFields=["namePrefix","firstName","middleName","lastName","dobRaw","gender","primaryCenter","idb","nhsOptions","registrationReason","registrationReasonText","primaryPhone","secondaryPhone","email","residentialAddressLine1","residentialAddressCity","residentialAddressState","residentialAddressCountry","residentialAddressPostcode","generalPractitioner","referringSurgeon","oncologist","emergencyContact.firstName","emergencyContact.lastName","emergencyContact.relationship","emergencyContact.mobilePhoneNumber","emergencyContact.homePhoneNumber","emergencyContact.authorisedForEnquiries","emergencyContact.supportPerson","emergencyContact.email","maritalStatus","countryOfBirth","heritage","languageAtHome","payor","attachments","attachmentAcknowledged"],MISSING_FIELDS_TITLE="Required Fields Are Incomplete",MISSING_FIELD_BUTTON_TEXT="Go to incomplete field",PENDING_SUBMISSION_TITLE="Patient Submission Pending",PENDING_SUBMISSION_TEXT="You cannot submit this patient currently because there is a pending submission. Please try again later.",UPDATE_LAST_VISITED_SECTION=gql`
  mutation UpdatePatient($id: ID!, $lastVisitedSection: String!) {
    updatePatient(id: $id, lastVisitedSection: $lastVisitedSection) {
      patient {
        id
        lastVisitedSection
      }
    }
  }
`,GET_FIRST_RETURN=gql`
  query getFieldVisbility {
    firstReturnToForm @client
  }
`,cache$1=new InMemoryCache;cache$1.writeQuery({query:gql`
    query {
      firstReturnToForm
    }
  `,data:{firstReturnToForm:!0}});const navClient=new ApolloClient({cache:cache$1}),updateFirstReturn=et=>{cache$1.writeQuery({query:gql`
      query {
        firstReturnToForm
      }
    `,data:{firstReturnToForm:et}})};class RegistrationNavigator extends reactExports.Component{constructor(rt){super(rt);Nr(this,"currentRegPage");Nr(this,"resetSubmitModalStates",()=>{this.setState({submitModalOpen:!1})});Nr(this,"openSubmitModal",()=>{this.setState({submitModalOpen:!0})});Nr(this,"closeSubmitValidationErrorModal",()=>{this.setState({submitValidationErrorModalOpen:!1})});Nr(this,"openSubmitValidationErrorModal",rt=>{this.setState({submitValidationErrorModalOpen:!0,submitValidationErrors:rt})});Nr(this,"openWelcomeModal",()=>{this.setState({welcomeBackModalOpen:!0})});Nr(this,"closeWelcomeModal",()=>{updateFirstReturn(!1),this.setState({welcomeBackModalOpen:!1})});Nr(this,"refetchRegistrationData",rt=>{var lt;return(lt=this.props.client)==null?void 0:lt.query({query:PATIENT_AND_USER_DETAILS_QUERY$1,variables:{id:rt}})});Nr(this,"closeSubmitInfoErrorModal",()=>{this.setState({submitInfoErrorModalOpen:!1})});Nr(this,"openSubmitInfoErrorModal",(rt,nt)=>{this.setState({submitInfoErrorModalOpen:!0,submitInfoErrorTitle:rt,submitInfoErrorText:nt})});Nr(this,"resetResolveConflictsModalStates",()=>{this.setState({resolveConflictsModalOpen:!1})});Nr(this,"openResolveConflictsModal",()=>{this.setState({resolveConflictsModalOpen:!0})});Nr(this,"returnToStart",()=>{const{history:rt,patient:nt}=this.props;updateFirstReturn(!1),rt.push({pathname:`/registration/${nt==null?void 0:nt.id}/basic`,state:{pxRedirect:!0}})});Nr(this,"generateOrderedValidation",rt=>{const nt=[];return Object.keys(rt).map(lt=>{this.state.submitValidationErrors&&this.state.submitValidationErrors[lt]&&nt.push(lt)}),nt});Nr(this,"resetSaveExitModalStates",()=>{this.setState({saveExitModalOpen:!1})});Nr(this,"handleSaveAndExitButtonClicked",()=>{const{isPso:rt,match:{params:{patientId:nt}}}=this.props;let lt=this.props.navigationContext&&this.props.navigationContext.state.regEntryPath||`/navigator/patient/${nt}/summary`;region===Region.UK&&(lt="/search"),rt?this.setState({redirecting:!0,redirectTo:lt}):this.setState({saveExitModalOpen:!0})});Nr(this,"traverseRegistration",(rt,nt)=>{const lt=nt.indexOf(this.currentRegPage);let ut=window.location.pathname.split("/").slice(0,-1).join("/");switch(rt){case NavigatorDirection.BACK:ut+=`/${nt[lt-1]}`;break;case NavigatorDirection.FORWARD:ut+=`/${nt[lt+1]}`;break}this.setState({redirecting:!0,redirectTo:ut})});this.state={redirecting:!1,redirectTo:void 0,saveExitModalOpen:!1,submitModalOpen:!1,submitValidationErrorModalOpen:!1,submitValidationErrors:void 0,submitInfoErrorModalOpen:!1,submitInfoErrorTitle:void 0,submitInfoErrorText:void 0,resolveConflictsModalOpen:!1,welcomeBackModalOpen:!1};const nt=this.props.location.pathname.split("/");this.currentRegPage=nt[nt.length-1]}componentDidMount(){const{patient:rt,isPso:nt,client:lt}=this.props;rt!=null&&rt.regFormStatus||lt&&lt.writeQuery({query:gql`
            query {
              firstReturnToForm
            }
          `,data:{firstReturnToForm:!0}});const ut=navClient.readQuery({query:GET_FIRST_RETURN});!isUs()&&!nt&&(rt!=null&&rt.lastVisitedSection)&&(rt==null?void 0:rt.lastVisitedSection)!=="basic"&&(rt!=null&&rt.regFormStatus)&&ut.firstReturnToForm&&this.openWelcomeModal()}render(){const{patient:rt,submitRegistration:nt,resolvePatientConflicts:lt,resolveConflictsIncomplete:ut,isPso:dt,submitStatus:pt,history:ht,isProd:mt,match:{params:{patientId:xt}},registrationContext:Mt}=this.props,vt=rt&&rt.lock&&rt.lock.readOnly?rt.lock.readOnly:!1,Ot=["basic","contact","address","altcontact","gp"],At=region===Region.UK?Ot.concat(["demographics","preferences","insurance","attachments","summary"]):Ot.concat(["medicare","demographics","infonotice","attachments","summary"]),{redirecting:Rt,redirectTo:zt}=this.state,Tt=getNextForm(this.context.formStatusDetails,xt,"registration");let Ct="";switch(pt){case SubmitButtonType.SUBMITTED:Ct=SubmitButtonType.SUBMITTED;break;case SubmitButtonType.SUBMITTING:Ct=SubmitButtonType.SUBMITTING;break;default:Ct=Tt.name==="home"?SubmitButtonType.SUBMIT_AND_EXIT:SubmitButtonType.SUBMIT_AND_CONTINUE;break}const It=this.generateOrderedValidation(fieldLinks),Dt=It&&fieldLinks[It[0]];return Rt&&zt?jsxRuntimeExports.jsx(Redirect,{to:zt}):jsxRuntimeExports.jsxs("div",{className:"reg-nav-container",children:[jsxRuntimeExports.jsx(ModalSaveExit,{isOpen:this.state.saveExitModalOpen,dismissFunction:()=>{this.resetSaveExitModalStates()},exitForm:()=>{var kt,qt;region===Region.UK?ht.push("/search"):((kt=this.props.client)==null||kt.mutate({mutation:UPDATE_LAST_VISITED_SECTION,variables:{id:xt,lastVisitedSection:this.currentRegPage}}),updateFirstReturn(!0),(qt=this.refetchRegistrationData(xt))==null||qt.then(()=>ht.push({pathname:`/patient/${xt}/home`,state:{pxRedirect:!0}})))},exitText:"Exit form"}),jsxRuntimeExports.jsx(StandardDialog,{open:this.state.submitValidationErrorModalOpen,title:MISSING_FIELDS_TITLE,onClose:()=>this.closeSubmitValidationErrorModal(),submitText:MISSING_FIELD_BUTTON_TEXT,onSubmit:()=>{var kt;(kt=this.refetchRegistrationData(xt))==null||kt.then(()=>ht.push(`/registration/${xt}/${Dt}`))},children:jsxRuntimeExports.jsx(ModalValidationError,{validationErrors:this.state.submitValidationErrors,mandatoryFields})}),jsxRuntimeExports.jsx(WelcomeBackModal,{returnToStart:()=>this.returnToStart(),dismissFunction:()=>{this.closeWelcomeModal()},updateFirstReturn:()=>updateFirstReturn(!1),isOpen:this.state.welcomeBackModalOpen,children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}),jsxRuntimeExports.jsx(ModalInfo$1,{isOpen:this.state.submitInfoErrorModalOpen,title:this.state.submitInfoErrorTitle||"",text:this.state.submitInfoErrorText||"",extraClass:"pending-submit-modal",dismissFunction:()=>{this.closeSubmitInfoErrorModal()}}),jsxRuntimeExports.jsx(ModalSubmit,{isOpen:this.state.submitModalOpen,isPSO:dt,isProd:mt,dismissFunction:()=>{this.resetSubmitModalStates()},submitForm:()=>{typeof nt<"u"&&typeof dt<"u"&&nt(this.resetSubmitModalStates,dt)},submitText:Ct,continueNextForm:Tt.name!=="home"}),jsxRuntimeExports.jsx(ModalResolveConflicts,{isOpen:this.state.resolveConflictsModalOpen,dismissFunction:()=>{this.resetResolveConflictsModalStates()},resolveConflictsPage:()=>{typeof lt<"u"&&rt&&lt({variables:{patientId:xt}})}}),jsxRuntimeExports.jsxs("div",{className:"reg-nav-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"left-container left-container-uk",children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",className:"button-container",gap:1,children:[this.currentRegPage!==At[0]&&jsxRuntimeExports.jsx(Button,{size:"large",onClick:()=>{this.props.fileUploaded!==void 0?this.props.fileUploaded?this.traverseRegistration(NavigatorDirection.BACK,At):this.props.onOpenUploadErrorModal():this.traverseRegistration(NavigatorDirection.BACK,At)},name:"registration-nav-back",children:"Back"}),jsxRuntimeExports.jsx(Button,{onClick:()=>{this.props.fileUploaded!==void 0?this.props.fileUploaded?this.handleSaveAndExitButtonClicked():this.props.onOpenUploadErrorModal():this.handleSaveAndExitButtonClicked()},size:"large",name:"registration-nav-save-and-exit",children:"Exit"})]})}),jsxRuntimeExports.jsx("div",{className:"right-container-uk",children:jsxRuntimeExports.jsxs("div",{className:"button-container",children:[this.currentRegPage!==At[At.length-1]&&jsxRuntimeExports.jsx(Button,{size:"large",onClick:()=>{this.props.fileUploaded!==void 0?this.props.fileUploaded?this.traverseRegistration(NavigatorDirection.FORWARD,At):this.props.onOpenUploadErrorModal():this.traverseRegistration(NavigatorDirection.FORWARD,At)},name:"registration-nav-continue",variant:"contained",children:"Continue"}),this.currentRegPage===At[At.length-1]&&jsxRuntimeExports.jsx(Button,{size:"large",onClick:()=>{const kt=rt&&validateRegistration(rt,ValidationKeys$1.Mosaiq,void 0,Region.UK,dt||!1);kt?this.openSubmitValidationErrorModal(kt):rt&&rt.hasPendingSubmission?this.openSubmitInfoErrorModal(PENDING_SUBMISSION_TITLE,PENDING_SUBMISSION_TEXT):this.openSubmitModal()},name:"registration-nav-submit",disabled:vt,variant:"contained",children:"Submit"}),rt&&jsxRuntimeExports.jsx(ArchiveButton$1,{patient:rt,redirectPath:"/search"})]})})]})]})}}Nr(RegistrationNavigator,"contextType",FormContext$2),Nr(RegistrationNavigator,"defaultProps",{submitRegistration:()=>{},isPso:!1});const routedComponent$1=withRouter(withApollo(RegistrationNavigator)),ReviewFormsHeader=et=>{const{pageShown:tt,history:rt,showSmsLogHeader:nt}=et,lt=[{name:"search",text:"Patient Search"},{name:"review-forms",text:"Review Forms"}];return jsxRuntimeExports.jsx(Tabs,{value:tt,onChange:(ut,dt)=>{rt.push(dt)},children:lt.map(ut=>jsxRuntimeExports.jsx(Tab,{"data-test-id":ut.name,value:`/${ut.name}`,label:ut.text},ut.name))})},ReviewFormsHeader$1=withRouter(ReviewFormsHeader);var formTypes=(et=>(et.registration="registration",et.covid="covid",et))(formTypes||{});const PaginationContainer=styled$1("div")`
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 0;
`,Label=styled$1("label")`
  margin-right: 30px;
`,RowsPerPageDropDown=styled$1(DropDownField)`
  max-width: 90px;
  border-radius: 4px;
  margin-left: 10px;

  * {
    font-weight: bold;
  }
`,MetaContainer=styled$1("div")`
  margin-right: 30px;

  .spinner-border {
    border-color: ${et=>et.theme.palette.primary.main};
    border-right-color: transparent;
  }
`,NavButton=styled$1("button")`
  background: none;
  border: none;
  cursor: pointer;

  path {
    transition: fill 0.15s ease-in-out;
  }

  &:hover path {
    fill: ${et=>et.theme.palette.text.primary};
  }

  &[disabled] {
    cursor: not-allowed;

    path {
      fill: ${et=>et.theme.palette.grey[300]};
    }
  }
`,Pagination=({totalRecords:et,page:tt,pageLimit:rt,disabled:nt,loading:lt,onPageChange:ut})=>{const[dt,pt]=reactExports.useState(rt||25),[ht,mt]=reactExports.useState(tt||1),xt=Math.ceil(et/dt),vt=["25","50","100"].map(Nt=>({id:Nt,name:Nt})),Ot="rows-per-page",At=ht*dt-dt,Rt=At<0?0:At>et?et-dt<0?0:et-dt:At,zt=ht*dt,Tt=zt>et?et:zt,Ct={currentPage:ht,limit:dt,startingRecord:Rt,endingRecord:Tt},It=ht===1||nt||lt||xt===1,Dt=ht===xt||!xt||nt||lt||xt===1,kt=()=>mt(ht+1),qt=()=>mt(ht-1);return reactExports.useEffect(()=>{ut&&ut(Ct)},[dt,ht]),reactExports.useEffect(()=>{mt(1)},[dt]),reactExports.useEffect(()=>{mt(tt||1)},[tt]),jsxRuntimeExports.jsxs(PaginationContainer,{children:[jsxRuntimeExports.jsxs(Label,{htmlFor:Ot,children:["Rows per page",jsxRuntimeExports.jsx(RowsPerPageDropDown,{disabled:lt||nt,inputName:Ot,placeholder:"Rows per page",defaultValue:vt[0].name,options:vt,className:"rows-per-page-dropdown",onChange:Nt=>pt(parseInt(Nt.target.value))})]}),jsxRuntimeExports.jsx(MetaContainer,{children:lt?jsxRuntimeExports.jsx("div",{className:"spinner-border",role:"status",children:jsxRuntimeExports.jsx("div",{className:"sr-only"})}):`${et<=dt?et:`${Rt+1} - ${Tt}`} of ${et}`}),jsxRuntimeExports.jsx(NavButton,{onClick:qt,disabled:It,children:jsxRuntimeExports.jsx(ChevronLeftIcon,{color:"primary"})}),jsxRuntimeExports.jsx(NavButton,{onClick:kt,disabled:Dt,children:jsxRuntimeExports.jsx(ChevronRightIcon,{color:"primary"})})]})},{BLANK,DEFAULT_PAGINATION_LIMIT,NO_PATIENTS_MESSAGE,REVIEW_FORMS,SELECT_ALL}=CONSTANTS$1,StyledTableCell=styled(TableCell)(({theme:et})=>({[`&.${tableCellClasses.head}`]:{backgroundColor:et.palette.grey[200],color:et.palette.common.black,fontWeight:600},[`&.${tableCellClasses.body}`]:{fontSize:14,color:et.palette.common.black}})),StyledTableRow=styled(TableRow$7)(({theme:et})=>({cursor:"pointer","&:hover":{backgroundColor:et.palette.action.hover},"&:last-child td, &:last-child th":{border:0}})),ReviewFormsTable=et=>{const{forms:tt,allowedLocations:rt,loading:nt,location:lt,totalCount:ut,showNewRego:dt}=et,pt=reactExports.useContext(NavigationContext),ht=useTheme$1(),[mt,xt]=reactExports.useState([]),[Mt,vt]=reactExports.useState(""),[Ot,At]=reactExports.useState(),[Rt,zt]=reactExports.useState(),[Tt,Ct]=reactExports.useState(),[It,Dt]=reactExports.useState({currentPage:1,limit:DEFAULT_PAGINATION_LIMIT,startingRecord:0,endingRecord:DEFAULT_PAGINATION_LIMIT*1}),kt=()=>{if(tt.length){const Qt=tt.filter($t=>$t.formType===formTypes.registration),Ft=(isUs()?Qt:tt).map($t=>{const{horizonCenterId:jt}=$t,Wt=jt?formatLocation(jt,rt):"";return{...$t,locationCode:Wt}});xt(Ft)}else xt([])};reactExports.useEffect(()=>{pt.setRegEntryPath(lt.pathname)},[lt.pathname]),reactExports.useEffect(()=>{if(It){const{startingRecord:Qt,limit:Bt}=It;et.getFormsInReview({start:Qt,limit:Bt})}},[It]),reactExports.useEffect(()=>{const Qt=sessionStorage.getItem("location"),Bt=sessionStorage.getItem("locationId");Qt&&vt(Qt),Bt&&Ct(parseInt(Bt))},[]),reactExports.useEffect(()=>{kt(),At(Mt),zt(Tt)},[Mt,Tt]),reactExports.useEffect(()=>{kt()},[tt]),reactExports.useEffect(()=>{if(Dt({currentPage:1,limit:It?It.limit:DEFAULT_PAGINATION_LIMIT,startingRecord:0,endingRecord:It?It.limit*1:DEFAULT_PAGINATION_LIMIT}),Ot){const Qt=(Bt,Ft)=>Bt?"":Ft?"-1":Rt==null?void 0:Rt.toString();et.getFormsInReview({start:Ot===SELECT_ALL?It==null?void 0:It.startingRecord:0,limit:It==null?void 0:It.limit,location:Qt(Ot===SELECT_ALL,Ot===BLANK)})}},[Ot]);const qt=Qt=>{Dt(Qt)},Nt=(Qt,Bt)=>{sessionStorage.setItem("location",Qt),sessionStorage.setItem("locationId",Bt.toString()),At(Qt),zt(Bt)},Yt=()=>{const Qt=rt.map(Ft=>({id:Ft.id,name:Ft.alias,appKey:Ft.alias})),Bt=tt.map(Ft=>Ft.horizonCenterId===null);return Qt.unshift({id:SELECT_ALL,name:SELECT_ALL,appKey:SELECT_ALL}),Bt.includes(!0)&&Qt.push({id:BLANK,name:BLANK,appKey:BLANK}),jsxRuntimeExports.jsx(reactExports.Fragment,{children:Qt.length>0&&jsxRuntimeExports.jsx(DropDownField,{inputName:"Location Filter",placeholder:"Location Filter",defaultValue:Ot,options:Qt,className:"location-dropdown",controlled:!0,onChange:Ft=>{const $t=Qt.find(jt=>jt.name===Ft.target.value).id;kt(),Nt(Ft.target.value,$t)}})})},Kt=Qt=>mapFormData({...Qt}).map((Bt,Ft)=>{const $t=generateFormUrl(Qt.formType,Qt.patientId,dt,Qt.hasDataConflicts),jt=`/navigator/patient/${Qt.patientId}/summary`,Wt=Ft===0?jt:$t;return jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs(Link$2,{style:{color:"black",textDecoration:"none"},className:classNames$1("link",{[`${Bt.linkClass}`]:Bt.linkClass}),"data-test-id":`row-${Bt.name}`,to:{pathname:Wt,state:{from:lt.pathname}},onClick:Ut=>{Ut.stopPropagation(),sessionStorage.setItem("referringPage","/review-forms")},children:[jsxRuntimeExports.jsx("span",{className:classNames$1("form",{[`${Bt.valueClass}`]:Bt.valueClass}),children:Bt.value}),Bt.otherValue&&jsxRuntimeExports.jsx("span",{className:classNames$1({[`${Bt.otherValueClass}`]:Bt.otherValueClass}),children:Bt.otherValue})]})},Ft)}),Jt=()=>mt.map((Qt,Bt)=>jsxRuntimeExports.jsx(StyledTableRow,{children:Kt(Qt)},Bt));return jsxRuntimeExports.jsxs("div",{style:{borderTop:`6px solid ${ht.palette.primary.main}`},className:"review-forms-container",children:[jsxRuntimeExports.jsxs("div",{className:"filter-title-container",children:[jsxRuntimeExports.jsx("div",{className:"review-forms-title",children:REVIEW_FORMS}),Yt()]}),jsxRuntimeExports.jsx("div",{className:"review-forms-table-container",children:jsxRuntimeExports.jsxs(Table$3,{className:"review-forms-table",children:[jsxRuntimeExports.jsx(TableHead$2,{children:jsxRuntimeExports.jsx(TableRow$7,{children:TABLE_HEADERS.map(Qt=>jsxRuntimeExports.jsx(StyledTableCell,{children:Qt},Qt))})}),jsxRuntimeExports.jsx("tbody",{children:Jt()})]})}),!nt&&mt.length===0&&jsxRuntimeExports.jsx("div",{className:"no-patients",children:NO_PATIENTS_MESSAGE}),mt.length!==0&&jsxRuntimeExports.jsx(Pagination,{totalRecords:ut,page:It==null?void 0:It.currentPage,onPageChange:qt,pageLimit:DEFAULT_PAGINATION_LIMIT,loading:nt})]})},ReviewFormsTable$1=withRouter(ReviewFormsTable),SummaryCard=et=>{const{title:tt,primaryIcon:rt,secondaryIcon:nt,children:lt,invalidContent:ut,id:dt,showEdit:pt,onClick:ht}=et;return jsxRuntimeExports.jsxs("div",{"data-test-id":`summary-card-${tt}`,className:classNames$1("summary-card",{"validation-error":ut}),children:[jsxRuntimeExports.jsxs("div",{className:"summary-heading",children:[jsxRuntimeExports.jsx("div",{id:dt,className:"summary-title",children:tt}),jsxRuntimeExports.jsxs(Stack$5,{className:"summary-actions",direction:"row",alignItems:"center",sx:{cursor:"pointer"},children:[jsxRuntimeExports.jsx("span",{role:"button",onClick:ht,children:rt}),pt&&jsxRuntimeExports.jsx("span",{className:"summary-edit",role:"button",onClick:ht,children:"Edit"}),jsxRuntimeExports.jsx("span",{children:nt})]})]}),jsxRuntimeExports.jsx("div",{className:"summary-content",children:lt})]})},FormDiv=styled$1("div")`
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
`,Wrapper$1=styled$1("div")`
  display: flex;
  margin: 24px 32px;
  flex-direction: column;
  max-width: 870px;

  @media all and (max-width: ${supportedSize.transition}px) {
    width: 100%;
    margin: 0;
    padding: 24px 32px;
  }

  @media all and (max-width: ${supportedSize.tablet}px) {
    width: 100%;
    margin: 0;
    padding: 12px 12px;
  }
`,OverflowContainer=styled$1("div")`
  overflow: auto;
  height: 100%;
  flex: 1;
  flex-basis: 0;

  @media all and (max-width: ${supportedSize.transition}px) {
    margin-bottom: 84px;
    padding-bottom: 100px;
  }

  @media all and (max-width: ${supportedSize.tablet}px) {
    margin-bottom: 56px;
  }
`,FormSidePanelWrapper=styled$1("div")`
  display: flex;
  height: 100%;
  width: 100%;
`,FormContainer$1=({patient:et,sectionTitle:tt,reviewInfo:rt,pageNumber:nt,backLink:lt,saveAndExitLink:ut,continueLink:dt,handleValidation:pt,submitForm:ht,showSaveAndExit:mt,children:xt,isLocked:Mt,deleteModal:vt,setDeleteModalIsOpen:Ot,createAmendmentAndRedirect:At,isAmendment:Rt,updatedBy:zt,lastUpdateUser:Tt,sidePanelWidth:Ct,showMxPlanSidePanel:It,showDT:Dt=!1,activeTabOption:kt,submitButtonText:qt,showDiscard:Nt=!0,footerPosition:Yt="fixed",isLoading:Kt=!1,continueDisabled:Jt=!1,isShowSaveExitConfirm:Qt=!1,handleShowSaveExitConfirm:Bt,showPTSummaryNav:Ft=!1})=>{const $t=tt.toLowerCase().replace(/[^\w\s]/g,"").replace(/\s/g,"-"),jt=useLocation(),{pathname:Wt}=jt,Ut=Wt.includes("chartcheck")||Wt.includes("triage")?"nurseAssessment":"",Vt={$height:et?"calc(100% - 84px)":"100%"},Ht={nurseAssessment:"This form has been submitted"},Gt=Tt!=null&&Tt.filter(or=>or.fieldName==="updatedBy").length?new Date(Tt==null?void 0:Tt.filter(or=>or.fieldName==="updatedBy")[0].updatedDate):"",Zt=Gt!==""?`${Gt.toLocaleDateString("en-AU")} ${Gt.toLocaleTimeString("en-AU",{hour:"2-digit",minute:"2-digit"})}`:"",Xt={subtext:"You are amending this assessment.",text:Zt?`Last modified ${Zt} by ${zt}`:""},er=()=>jsxRuntimeExports.jsxs(OverflowContainer,{children:[rt&&jsxRuntimeExports.jsx(ReviewBanner,{sectionTitle:tt,reviewInfo:rt}),jsxRuntimeExports.jsx(Wrapper$1,{children:xt})]}),nr=()=>jsxRuntimeExports.jsx(FormFooter,{pageNumber:nt,backLink:lt,saveAndExitLink:ut,continueLink:dt,handleClickOnBack:pt,handleClickOnContinue:pt,submitForm:ht,showSaveAndExit:mt,isLocked:Mt,isAmendment:Rt,deleteModal:()=>vt(),setDeleteModalIsOpen:Ot,createAmendmentAndRedirect:At,sidePanelWidth:Ct,submitButtonText:qt,showDiscard:Nt,footerPosition:Yt,isLoading:Kt,continueDisabled:Jt,isShowSaveExitConfirm:Qt,handleShowSaveExitConfirm:Bt});return jsxRuntimeExports.jsxs(FormDiv,{...Vt,id:`${$t}-section-form-div`,children:[et&&jsxRuntimeExports.jsx(PatientIdentifierBar,{patient:et,includePhoto:Ft,includeGenderAbrev:Ft}),Mt&&jsxRuntimeExports.jsx(Banner$2,{text:Ht[Ut],type:"success"}),Rt&&!Mt&&jsxRuntimeExports.jsx(Banner$2,{type:"info",...Xt}),It?jsxRuntimeExports.jsxs(FormSidePanelWrapper,{children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:[er(),nr()]}),jsxRuntimeExports.jsx(ManagementPlanSideDrawer,{children:jsxRuntimeExports.jsx(ManagementPlanSidePanel$1,{showDT:Dt,activeTabOption:kt,blur:!0})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[er(),nr()]})]})},Wrapper=styled$1("div")`
  margin: 26px 0;
  width: 100%;
`,Header=styled$1("div")`
  height: 48px;
  background: ${et=>et.theme.palette.grey[100]};
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 16px;
  padding-bottom: 12px;
  border: 1px solid ${et=>et.theme.palette.grey[300]};
`,SubTitle=styled$1("span")`
  margin-left: 6px;
  font-size: ${getRemSize(14)};
`,Highlight=styled$1("span")`
  font-weight: bold;
  font-size: ${getRemSize(14)};
`,PageHeading=styled$1("div")`
  font-weight: bold;
  margin: 8px 0 8px 16px;
  font-size: ${getRemSize(16)};
`,Row=styled$1("div")`
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  border-top: none;
  padding-top: 16px;
  padding-bottom: 8px;
`,DetailContainer=styled$1("div")`
  margin: 16px;
`,TitleContainer=styled$1("div")`
  padding-bottom: 8px;
  font-size: ${getRemSize(14)};
`,renderDetails=et=>{var tt;return typeof(et==null?void 0:et.value)=="string"?jsxRuntimeExports.jsx(Highlight,{"data-test-id":`${et==null?void 0:et.title}-response`,children:et==null?void 0:et.value}):(tt=et==null?void 0:et.value)==null?void 0:tt.map(rt=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Highlight,{"data-test-id":`${et.title}-response`,children:rt})," ",jsxRuntimeExports.jsx("br",{})]}))},InfoCard=({title:et,subTitle:tt,rowDetails:rt,itemSize:nt=4})=>jsxRuntimeExports.jsxs(Wrapper,{"data-test-id":`${et}-table`,children:[jsxRuntimeExports.jsxs(Header,{children:[jsxRuntimeExports.jsx(Highlight,{"data-test-id":et,children:et}),jsxRuntimeExports.jsx(SubTitle,{children:tt})]}),rt.filter(lt=>lt.length>0).map((lt,ut)=>jsxRuntimeExports.jsxs(Row,{children:[lt.length>0&&lt[0].hasOwnProperty("page")&&jsxRuntimeExports.jsx(PageHeading,{children:lt[0].page}),jsxRuntimeExports.jsx(Grid,{container:!0,children:lt.map((dt,pt)=>jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,sm:nt,children:jsxRuntimeExports.jsxs(DetailContainer,{children:[dt.title&&jsxRuntimeExports.jsx(TitleContainer,{"data-test-id":`${dt.title}`,children:dt.title}),renderDetails(dt)]})},`detail-${pt}`))})]},`row-${ut}`))]}),HeaderWrapper=styled$1("div")`
  position: fixed;
  width: 100%;
  z-index: 1000;
`,ContentWrapper=styled$1("div")`
  display: flex;
  padding-top: 60px;
  height: 100%;
`,NAPageContainer=et=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HeaderWrapper,{children:jsxRuntimeExports.jsx(HeaderBar,{})}),jsxRuntimeExports.jsx(ContentWrapper,{children:et.children})]}),StyledPhoto=styled$1("div")`
  margin-right: 10px;
`,PatientIdentifierBar=et=>{const{patient:tt,includePhoto:rt,includeGenderAbrev:nt}=et,lt=DateTimeConverter$1.getFormattedDateAsDDMonthYYYY(tt.dob,Object.create(globalThis.import_meta_env||null).REACT_APP_REGION);return jsxRuntimeExports.jsxs("div",{className:"identifier-bar-container",children:[rt&&jsxRuntimeExports.jsx(StyledPhoto,{children:jsxRuntimeExports.jsx(PhotoWidget,{enableOverlay:!0,size:"sm"})}),jsxRuntimeExports.jsxs("div",{id:"header-detail-1",className:"identifier-bar-name",children:[tt.firstName," ",tt.lastName,nt&&tt.patientGender&&genderTitle(tt.patientGender.toString())]}),jsxRuntimeExports.jsxs("div",{className:"identifier-bar-stack",children:[jsxRuntimeExports.jsx("p",{children:"Patient ID"}),jsxRuntimeExports.jsx("strong",{id:"header-detail-2",children:tt.ida})]}),jsxRuntimeExports.jsxs("div",{className:"identifier-bar-stack",children:[jsxRuntimeExports.jsx("p",{children:"Date of birth"}),jsxRuntimeExports.jsx("strong",{id:"header-detail-3",children:`${lt} (age ${calculateMomentAge(hooks(tt.dob))})`})]}),jsxRuntimeExports.jsxs("div",{className:"identifier-bar-stack",children:[jsxRuntimeExports.jsx("p",{children:"Patient Address"}),jsxRuntimeExports.jsx("strong",{id:"header-detail-4",children:tt.address?tt.address.formattedAddress:"-"})]})]})},USER_FEATURE_QUERY=gql`
  query userFeatureList($featureName: String) {
    userFeatureList(featureName: $featureName) {
      id
      feature {
        id
        name
      }
      featureOption {
        id
        name
      }
    }
    featureList {
      id
      feature {
        id
        name
      }
      options {
        id
        name
      }
      default {
        id
        name
      }
    }
  }
`,TENANT_CONFIG_QUERY=gql`
  query tenantConfig {
    tenantConfig {
      id
      tenantName
      doseUnit
      ariaDoseUnit
      mosaiqDoseUnit
      fractionUnit
    }
  }
`,{RO,MO:MO$1}=RoleType,ROBase=({children:et})=>{const[tt,rt]=reactExports.useState(!1),[nt,lt]=reactExports.useState(!0),[ut,dt]=reactExports.useState(!0),[pt,ht]=reactExports.useState(""),[mt,xt]=reactExports.useState(!1),[Mt,vt]=reactExports.useState(!1),[Ot,At]=reactExports.useState(!1),[Rt,zt]=reactExports.useState({}),{setError:Tt}=useErrorModalContext(),[Ct,It]=reactExports.useState(CurrentAppConfig==null?void 0:CurrentAppConfig.DefaultTimezone),[Dt,kt]=reactExports.useState("Gy"),[qt,Nt]=reactExports.useState("Gy"),[Yt,Kt]=reactExports.useState("cGy"),[Jt,Qt]=reactExports.useState("#"),{data:Bt,error:Ft,loading:$t}=useQuery(GET_USER_PROFILE),{data:jt}=useQuery(TENANT_CONFIG_QUERY),{data:Wt,error:Ut}=useQuery(GET_RECENT_PATIENTS,{fetchPolicy:"network-only",skip:![RO,MO$1].includes(pt)}),Vt=Wt&&Wt.getRecentPatients?Wt.getRecentPatients:[],{data:Ht}=useQuery(USER_FEATURE_QUERY,{skip:![RO,MO$1].includes(pt)}),Gt=reactExports.useCallback(()=>!Rt,[Rt]),Zt=reactExports.useCallback(or=>{if(Rt&&Rt.featureList)return Rt.featureList.find(rr=>{var cr;return((cr=rr==null?void 0:rr.feature)==null?void 0:cr.name)===or})},[Rt]),Xt=reactExports.useCallback(or=>{if(Rt&&Rt.userFeatureList)return Rt.userFeatureList.find(rr=>{var cr;return((cr=rr==null?void 0:rr.feature)==null?void 0:cr.name)===or})},[Rt]),er=reactExports.useCallback(or=>{if(Rt)return!!Zt(or)||!!Xt(or)},[Zt,Xt]),nr=()=>{xt(!mt)};return reactExports.useEffect(()=>{if(Ft||Ut)return Tt()},[Ft,Ut,pt]),reactExports.useEffect(()=>{Bt&&Bt.user&&(ht(Bt.user.primaryRole),rt(Bt.user.hasStaffId),It(Bt.user.timezone),vt(Bt.user.isPractitioner),At(Bt.user.isRegistrar))},[Bt,$t]),reactExports.useEffect(()=>{var or,rr,cr,ir;jt!=null&&jt.tenantConfig&&(kt((or=jt==null?void 0:jt.tenantConfig)==null?void 0:or.doseUnit),Nt((rr=jt==null?void 0:jt.tenantConfig)==null?void 0:rr.ariaDoseUnit),Kt((cr=jt==null?void 0:jt.tenantConfig)==null?void 0:cr.mosaiqDoseUnit),Qt((ir=jt==null?void 0:jt.tenantConfig)==null?void 0:ir.fractionUnit))},[jt==null?void 0:jt.tenantConfig]),reactExports.useEffect(()=>{Ht&&zt(Ht)},[Ht]),$t||!Bt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsx(TenantContext.Provider,{value:{doseUnit:Dt,setDoseUnit:kt,ariaDoseUnit:qt,setAriaDoseUnit:Nt,mosaiqDoseUnit:Yt,setMosaiqDoseUnit:Kt,fractionUnit:Jt,setFractionUnit:Qt},children:jsxRuntimeExports.jsx(UserContext.Provider,{value:{state:{hasStaffId:tt,navShow:nt,panelShow:ut,primaryRole:pt,timezone:Ct,isPractitioner:Mt,isRegistrar:Ot,features:Rt},setHasStaffId:rt,setNavShow:lt,setPanelShow:dt,setPrimaryRole:ht,setTimezone:It,setFeatures:zt,setIsPractitioner:vt,setIsRegistrar:At,isFeatureLoading:Gt,getEMRFeature:Zt,getUserFeature:Xt,hasFeature:er},children:jsxRuntimeExports.jsx("div",{className:classNames$1("ro-container",{"has-side-nav-active":nt,"has-side-nav-inactive":!nt,"has-side-panel-active":ut,"has-side-panel-inactive":!ut}),id:"ROContainer",children:jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(HeaderBar,{toggleSearchModal:nr,recentPatients:Vt,styledProps:!0}),et]})})})})},DOSE_STATUS={ongoing:"ONGOING",complete:"COMPLETE"},DOSE_SOURCE={aria:"ARIA",mq:"MOSAIQ"},getDoseStatus=et=>{const tt=useTheme$1();return et.toUpperCase()===DOSE_STATUS.ongoing?tt.palette.warning.dark:et.toUpperCase().startsWith(DOSE_STATUS.complete)?tt.palette.success.main:tt.palette.grey[600]},CardContainer=styled$1("div")`
  background: ${et=>et.theme.palette.grey[100]};
  border-radius: 4px;
  padding: 0px 16px 4px;
  flex-wrap: wrap;
`,CardValue=styled$1("div")`
  line-height: 20px;
  font-weight: bold;
`,StatusCircle=styled$1("span")`
  min-height: 16px;
  min-width: 16px;
  background-color: ${et=>getDoseStatus(et.status)};
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
`,SiteTitle=styled$1("div")`
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  margin-bottom: 8px;
`,CardHeaderRow=styled$1("div")`
  border-bottom: 1px solid ${et=>et.theme.palette.grey[300]};
  margin: 16px 0px 0px;
  padding-bottom: 8px;
`,CardStatusCol=styled$1("div")`
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0px;
  min-width: 50%;
  flex-basis: auto;
`,CardStatusHeader=styled$1("div")`
  font-size: 12px;
  color: ${et=>et.theme.palette.grey[600]};
  display: flex;
  line-height: 15px;
  margin-right: 8px;
`,isEndOfTreatment=et=>et.toUpperCase().startsWith(DOSE_STATUS.complete),RODoseCard=et=>{const{siteName:tt,status:rt,source:nt,course:lt,actualDose:ut,totalDose:dt,startDate:pt,endDate:ht,lastTreatment:mt,technique:xt}=et.attribute,Mt=nt.toUpperCase()===DOSE_SOURCE.aria,vt=useTheme$1();return jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsxs(CardContainer,{children:[jsxRuntimeExports.jsxs(CardHeaderRow,{children:[Mt&&jsxRuntimeExports.jsx(CardStatusCol,{children:jsxRuntimeExports.jsx(SiteTitle,{children:tt})}),jsxRuntimeExports.jsxs(CardStatusCol,{children:[jsxRuntimeExports.jsx(CardStatusHeader,{children:"Status"}),jsxRuntimeExports.jsx(StatusCircle,{status:rt}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-status`,children:rt})]})]}),jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:.5,children:[jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",color:vt.palette.text.secondary,children:"Source:"}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-source`,children:nt.toUpperCase()})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",color:vt.palette.text.secondary,children:"Course:"}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-course`,children:lt})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",color:vt.palette.text.secondary,children:"Actual dose:"}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-actual`,children:ut})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",color:vt.palette.text.secondary,children:"Total dose:"}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-total`,children:dt})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",color:vt.palette.text.secondary,children:"Start date:"}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-start`,children:pt})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",color:vt.palette.text.secondary,children:"End date:"}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-end`,children:ht})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,children:[jsxRuntimeExports.jsxs(Typography,{variant:"body2",color:vt.palette.text.secondary,children:[isEndOfTreatment(rt)?"Last":"Latest"," treatment:"]}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-last`,children:mt})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:6,children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",color:vt.palette.text.secondary,children:"Technique:"}),jsxRuntimeExports.jsx(Typography,{variant:"body2","data-testid":`${tt}-dose-technique`,children:xt})]})]})]})})},COMPLETED_EARLY="CompletedEarly",StyledCarousel=styled$1(Stack$5)`
  color: ${et=>et.theme.palette.text.primary};
  border-radius: 4px;
  height: 100%;
  overflow: auto;
  background-color: white;

  .carousel-inner {
    overflow: auto !important;
  }
`,StyledEmptyCol=styled$1(Stack$5)`
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  padding-left: 8px;
`,StyledDDSCol=styled$1(Stack$5)`
  overflow-y: auto;
`,StyledContentRow=styled$1(Stack$5)`
  padding: 0 15px;
`,SiteLabel=styled$1("div")`
  font-size: 18px;
  line-height: 28px;
  align-items: center;
  text-align: center;
`,TotalDoseRow=styled$1(Stack$5)`
  padding: 10px;
  align-items: center;
  border: 1px solid ${et=>et.theme.palette.grey[300]};
  border-radius: 4px;
  margin: 0px 0px 8px 0px;
`,TotalDoseCol=styled$1(Stack$5)`
  display: flex;
  align-items: center;
  justify-content: center;
`,RODoseSiteCarousel=et=>{const{index:tt,handleSelect:rt,mqDoses:nt,ariaDoses:lt,doseSize:ut}=et,[dt,pt]=reactExports.useState(tt),[ht,mt]=reactExports.useState(tt),xt=reactExports.useContext(TenantContext),Mt=xt==null?void 0:xt.doseUnit;reactExports.useEffect(()=>{mt(dt),pt(tt)},[tt]);const vt=ut<=1,Ot=qt=>jsxRuntimeExports.jsxs(Stack$5,{sx:{display:"flex",flexDirection:"row",justifyContent:vt?"center":"space-between",margin:"0 15px 0"},children:[vt?null:dt?jsxRuntimeExports.jsx(ChevronLeftIcon,{color:"primary","data-test-id":"prev-dose-arrow",style:{cursor:"pointer"},onClick:()=>{dt&&rt(dt-1)}}):jsxRuntimeExports.jsx(ChevronLeftIcon,{color:"disabled"}),jsxRuntimeExports.jsx(SiteLabel,{"data-test-id":`dose-${qt}-header`,children:qt}),vt?null:dt+1<ut?jsxRuntimeExports.jsx(ChevronRightIcon,{color:"primary","data-test-id":"next-dose-arrow",style:{cursor:"pointer"},onClick:()=>{dt+1<ut&&rt(dt+1)}}):jsxRuntimeExports.jsx(ChevronRightIcon,{color:"disabled"})]}),At=qt=>qt?hooks(qt).format(CurrentAppConfig.DoseSiteSummary.DateFormat):"-",Rt=(qt,Nt)=>{const Yt=qt.deliveredDosageQuantity||0,Kt=qt.remainingDoseQuantity||0,Jt=Yt+Kt,Qt=qt.deliveredDosageRatio||0,Bt=qt.plannedDosageRatio||0;let Ft="Ongoing";qt.statusReason===COMPLETED_EARLY?Ft="Completed early":Kt===0&&(Ft="Completed");const $t=At(qt.latestTreatment),jt=Ft.startsWith("Complete")?$t:"See Appointments",Wt={status:Ft,source:"ARIA",course:display$1(qt.medicationReference),actualDose:`${doseRounding(Yt,!0,xt)}${Mt}/${Qt}#`,totalDose:`${doseRounding(Jt,!0,xt)}${Mt}/${Bt}#`,startDate:At(qt.firstTreatment),endDate:jt,lastTreatment:At(qt.latestTreatment),siteName:qt.identifierSite,technique:display$1(qt.technique)};return jsxRuntimeExports.jsx(RODoseCard,{attribute:Wt},Nt)},zt=(qt,Nt)=>{const Yt=sortByNewestToOldest(Nt),Kt=Yt.length>1,{totalDeliveredDose:Jt,totalDoseMax:Qt}=computeGroupTotal(Yt),Bt=Yt.map((Ft,$t)=>Rt(Ft,$t));return{groupName:qt,totalDeliveredDose:Jt,totalDoseMax:Qt,isAria:!0,sortDate:Yt[0].sortDate,showTotal:Kt,doseGroupCards:Bt}},Tt=()=>{var Qt,Bt;const qt=(Qt=lodash.cloneDeep(nt))==null?void 0:Qt.map(Ft=>(Ft.sortDate=hooks(Ft.latestTreatment).format(CurrentAppConfig.DoseSiteSummary.DateFormat),Ft)),Nt=(Bt=lodash.cloneDeep(lt))==null?void 0:Bt.map(Ft=>(Ft.sortDate=hooks(Ft.latestTreatment).format(CurrentAppConfig.DoseSiteSummary.DateFormat),Ft)),Yt=groupBy(Nt,"categorySiteGroup"),Kt=[];Object.entries(Yt).forEach(Ft=>{Kt.push(zt(Ft[0],Ft[1]))});const Jt=qt==null?void 0:qt.concat(Kt);return sortByNewestToOldest(Jt)},Ct=(qt,Nt)=>jsxRuntimeExports.jsx(TotalDoseRow,{children:jsxRuntimeExports.jsxs(TotalDoseCol,{children:[jsxRuntimeExports.jsx(CardStatusHeader,{children:"Actual/Total"}),jsxRuntimeExports.jsxs(CardValue,{children:[qt,Mt,"/",Nt,Mt]})]})}),It=(qt,Nt)=>jsxRuntimeExports.jsxs(Stack$5,{children:[Ot(qt.groupName),jsxRuntimeExports.jsx(StyledContentRow,{children:jsxRuntimeExports.jsxs(StyledDDSCol,{style:{display:"flex",height:"100%"},children:[qt.showTotal&&Ct(qt.totalDeliveredDose,qt.totalDoseMax),qt.doseGroupCards]})})]},Nt),Dt=(qt,Nt)=>{if(!qt)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const Yt=doseRounding(qt.deliveredDosageQuantity,!1,xt),Kt=doseRounding(qt.plannedDosageQuantity,!1,xt),Jt=qt.deliveredDosageRatio||0,Qt=qt.plannedDosageRatio||0,Ft={status:Jt===Qt?"Complete":"Ongoing",source:"MOSAIQ",course:display$1(qt.medicationReference),actualDose:`${Yt}${Mt}/${Jt}#`,totalDose:`${Kt}${Mt}/${Qt}#`,startDate:At(qt.firstTreatment),endDate:At(qt.endDate),lastTreatment:At(qt.latestTreatment),siteName:qt.identifierSite,technique:display$1(qt.technique)};return jsxRuntimeExports.jsxs(Stack$5,{children:[Ot(qt.identifierSite),jsxRuntimeExports.jsx(StyledContentRow,{children:jsxRuntimeExports.jsx(StyledDDSCol,{style:{display:"flex",height:"100%"},children:jsxRuntimeExports.jsx(RODoseCard,{attribute:Ft})})})]},Nt)},kt=()=>Tt().map((Nt,Yt)=>{const Kt=ht<dt?"left":"right",Jt=Yt===dt;return jsxRuntimeExports.jsx(Slide,{direction:Kt,in:Jt,appear:!1,children:Jt?Nt!=null&&Nt.isAria?It(Nt,Yt):Dt(Nt,Yt):jsxRuntimeExports.jsx("div",{})},`slide-${Yt}`)});return ut?jsxRuntimeExports.jsx(StyledCarousel,{"data-testid":"dose-site-carousel",sx:{overflowY:"auto",overflowX:"hidden"},children:kt()}):jsxRuntimeExports.jsx(StyledEmptyCol,{children:"Treatment has not started yet."})};class ROMiniRegoHeader extends reactExports.Component{render(){const{title:tt,summary:rt}=this.props;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("p",{"data-test-id":"page-title",className:"minirego-page-title",children:tt}),jsxRuntimeExports.jsx("p",{className:"minirego-page-summary",children:rt})]})}}const UK_PATIENT_SEARCH=gql`
  query ukPatientSearch($search: String) {
    searchPatients: ukPatientSearch(search: $search) {
      id
      firstName
      lastName
      fullName
      ida
      dob
      primaryPhone
      primaryPhoneFormatted
      hasDraftCareplan
      email
      pxOptedIn
      regFormStatus
      pxOptOutComment
      address {
        id
        line1
        line2
        city
        state
        country
        postcode
      }
    }
  }
`,PATIENT_SEARCH_RO=gql`
  query PatientSearch($search: String) {
    searchPatientsRo(searchString: $search) {
      id
      fullName
      ida
      dob
      city
      id
      line1
      line2
      postcode
      state
      emrInstance
    }
  }
`,COPY={CHECK_SPELLING:"Check your spelling and try again.",CHECK_ID_TRY_AGAIN:"Check whether you have entered the exact patient ID and try again.",NEW_MOSAIQ_PATIENT_WAIT:"Just created a new patient in the EMR? Please wait one minute and refresh the page.",NAME_OR_ID:"Try using the patient's first name and last name or patient ID.",NO_RESULTS_MATCHING:"Sorry, we couldn't find any results matching",SEARCH_TIPS:"SEARCH TIPS",EMPTY_RECENT_PAT_LIST:"You have not viewed any patient summary recently."},{MO}=RoleType,EMPTY_SEARCH_RESULTS_HELPERS=[{text:COPY.CHECK_SPELLING},{text:COPY.CHECK_ID_TRY_AGAIN},{text:COPY.NEW_MOSAIQ_PATIENT_WAIT},{text:COPY.NAME_OR_ID}],REACT_APP_REGION$2=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,formatAddress=et=>{const tt="address"in et?et.address:et,rt=["line1","line2","city","state","postcode"];return tt?rt.map(ut=>ut in tt?tt[ut]:"").filter(ut=>ut&&ut!=="").join(", "):""},EmptySearchResults=et=>{const{searchText:tt}=et,rt=useTheme$1();return jsxRuntimeExports.jsxs("div",{className:"zero-results-wrapper",children:[jsxRuntimeExports.jsx("div",{className:"empty-search-pat-list",children:`${COPY.NO_RESULTS_MATCHING} "${tt}"`}),jsxRuntimeExports.jsx("span",{className:"search-type-title",children:"SEARCH TIPS"}),jsxRuntimeExports.jsx("ul",{className:"search-tips",children:EMPTY_SEARCH_RESULTS_HELPERS.map((nt,lt)=>jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsxs("div",{className:"search-tip",children:[jsxRuntimeExports.jsx("div",{style:{width:"8px",height:"8px",backgroundColor:rt.palette.primary.main,borderRadius:"50%",marginRight:"16px"}}),nt.text]})},`search-tip-${lt}`))})]})},ROInlinePatientSearch=et=>{const[tt,rt]=reactExports.useState(!1),[nt,lt]=reactExports.useState(""),[ut,dt]=reactExports.useState(-1),pt=useHistory(),{setError:ht}=useErrorModalContext(),mt=useTheme$1(),xt=REACT_APP_REGION$2===Region.UK,{loading:Mt,error:vt,data:Ot}=useQuery(PATIENT_SEARCH_RO,{variables:{search:nt},fetchPolicy:"network-only",skip:nt===""});reactExports.useEffect(()=>{if(vt)return ht()},[vt]);const[At,Rt]=reactExports.useState([]);reactExports.useEffect(()=>{if(ut&&ut>=0){const It=document.getElementById("patRecord"+ut);It&&It.scrollIntoView({behavior:"auto",block:"nearest"})}},[ut]),reactExports.useEffect(()=>{if(nt==="")Rt(et.recentPatients);else{const It=Ot?Ot.searchPatientsRo:[];Rt(It)}},[nt,Mt]),reactExports.useEffect(()=>{function It(kt){const qt=document.getElementById("patientSearchWrapper");qt&&!qt.contains(kt.target)&&et.closeSearch()}function Dt(kt){kt.keyCode===27?et.closeSearch():kt.keyCode===38&&ut&&ut>0?dt(ut-1):kt.keyCode===40&&At&&ut&&ut<(At==null?void 0:At.length)-1?dt(ut+1):kt.keyCode===13&&ut&&ut>=0&&ut<(At==null?void 0:At.length)-1&&(pt.push(`/radiation/patient/${At[ut].id}/summary`),et.closeSearch())}return document.addEventListener("click",It,!1),document.addEventListener("keydown",Dt,!1),()=>{document.removeEventListener("click",It,!1),document.removeEventListener("keydown",Dt,!1)}},[]);const zt=It=>{et.closeSearch(),et.primaryRole===MO?pt.push(`/medonc/patient/${It}/summary`):pt.push(`/radiation/patient/${It}/summary`)},Tt=debounce$2(It=>{lt(It)},150),Ct=nt===""?"Recently Viewed":"Patient Search";return jsxRuntimeExports.jsxs("div",{className:"patient-search-wrapper",id:"patientSearchWrapper",children:[jsxRuntimeExports.jsxs("div",{style:{borderColor:tt?mt.palette.primary.main:"default",backgroundColor:mt.palette.primary.contrastText},className:"patient-search-inp-wrapper",children:[jsxRuntimeExports.jsx(Search,{color:"primary"}),jsxRuntimeExports.jsx(TextField,{fullWidth:!0,variant:"standard",autoFocus:!0,onBlur:()=>rt(!1),onFocus:()=>rt(!0),onInput:It=>{var Dt;return Tt((Dt=It==null?void 0:It.target)==null?void 0:Dt.value)},type:"text","data-testid":"patient-search-input",placeholder:"Search patient name or patient ID…",InputProps:{disableUnderline:!0},sx:{".MuiInputBase-root:hover":{backgroundColor:"white"}}})]}),jsxRuntimeExports.jsxs("div",{className:"inline-patient-search-wrapper",id:"inlinePatientSearchWrapper",children:[jsxRuntimeExports.jsx("span",{"data-test-id":"search-title",className:"search-type-title",children:Ct}),Mt&&jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"100%",display:"flex"},children:jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0,loadingText:"Searching for "+nt})}),!Mt&&nt!==""&&At&&(At==null?void 0:At.length)===0&&jsxRuntimeExports.jsx(EmptySearchResults,{searchText:nt}),nt===""&&At&&(At==null?void 0:At.length)===0&&jsxRuntimeExports.jsx("div",{className:"zero-results-wrapper",children:jsxRuntimeExports.jsx("div",{className:"empty-recent-pat-list",children:COPY.EMPTY_RECENT_PAT_LIST})}),!Mt&&!vt&&At&&(At==null?void 0:At.length)>0&&jsxRuntimeExports.jsx("div",{className:"pat-search-table",children:jsxRuntimeExports.jsx("table",{children:jsxRuntimeExports.jsx("tbody",{children:At==null?void 0:At.map((It,Dt)=>{const kt=It.dob?hooks(It.dob).format("Do MMM YYYY"):"-",qt=It.dob?calculateMomentAge(hooks(It.dob)):"-",Nt=kt!=="-"?`${kt} (Age ${qt})`:kt;return jsxRuntimeExports.jsxs("tr",{onClick:()=>zt(It.id),onMouseOver:()=>dt(Dt),onMouseOut:()=>dt(-1),className:ut===Dt?"active":void 0,id:"patRecord"+Dt,children:[jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(PhotoWidget,{patientId:xt?null:It.id,enableOverlay:!0,size:"sm"})}),jsxRuntimeExports.jsx("td",{style:{width:"30%",maxWidth:"108px"},children:jsxRuntimeExports.jsxs("div",{className:"patient-det",children:[jsxRuntimeExports.jsx("span",{"data-test-id":"patient-name",className:"patient-name",children:It.fullName}),jsxRuntimeExports.jsxs("span",{"data-test-id":"patient-ida",className:"patient-ida",children:["ID: ",It.ida]}),jsxRuntimeExports.jsxs("span",{"data-test-id":"patient-emr",className:"patient-emr",children:["EMR: ",It.emrInstance||"-"]})]})}),jsxRuntimeExports.jsx("td",{style:{width:"20%"},children:jsxRuntimeExports.jsx("div",{"data-test-id":"patient-full-age",children:Nt})}),jsxRuntimeExports.jsx("td",{style:{width:"50%"},children:jsxRuntimeExports.jsx("div",{"data-test-id":"patient-address",children:formatAddress(It)})})]},It.id)})})})})]})]})};class UKPatientSearchModal extends reactExports.Component{constructor(rt){super(rt);Nr(this,"fetchSearchResults",()=>{const{search:rt}=this.state,{careplanMode:nt,dismissFunction:lt,history:ut}=this.props;return!rt||rt.length<3?jsxRuntimeExports.jsx("tbody",{children:jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{colSpan:6,children:"Please enter the Name/GC number into the search box"})})}):jsxRuntimeExports.jsx(Query,{query:UK_PATIENT_SEARCH,variables:{search:rt},children:({loading:dt,error:pt,data:ht})=>{const{setError:mt}=useErrorModalContext();return reactExports.useEffect(()=>{if(pt)return mt()},[pt]),dt?jsxRuntimeExports.jsx("tbody",{children:jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{colSpan:6,children:jsxRuntimeExports.jsx(LoadingSpinner,{relativeSpinner:!0})})})}):ht&&ht.searchPatients&&ht.searchPatients.length>0?jsxRuntimeExports.jsx("tbody",{children:ht.searchPatients.map(xt=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:xt.ida}),jsxRuntimeExports.jsx("td",{children:xt.firstName}),jsxRuntimeExports.jsx("td",{children:xt.lastName}),jsxRuntimeExports.jsx("td",{children:xt.dob}),jsxRuntimeExports.jsx("td",{children:xt.address&&[xt.address.line1,xt.address.line2,xt.address.postcode].filter(Mt=>!!Mt).join(", ")}),nt&&jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx(Button,{onClick:()=>{ut.push(`/radiation/patient/${xt.id}/careplan/create`),lt()},children:"Create Careplan"})}),!nt&&jsxRuntimeExports.jsx("td",{children:jsxRuntimeExports.jsx("a",{href:`/radiation/patient/${xt.id}/summary`,children:"View patient"})})]}))}):jsxRuntimeExports.jsx("tbody",{children:jsxRuntimeExports.jsx("tr",{children:jsxRuntimeExports.jsx("td",{colSpan:6,children:"No results found"})})})}})});this.state={search:""}}handleChange(rt){this.setState({search:rt})}render(){const{isOpen:rt,dismissFunction:nt,careplanMode:lt}=this.props,{search:ut}=this.state,dt=["GC Number","First Name","Last Name","Date of birth","Address"];return lt?dt.push("Careplan"):dt.push("Link"),jsxRuntimeExports.jsx(reactExports.Fragment,{children:jsxRuntimeExports.jsx(StandardDialog,{maxWidth:"lg",fullWidth:!0,open:rt,className:"modal-dedupe-ro-uk",onClose:nt.bind(this),title:"Patient search",PaperProps:{sx:{minHeight:"80vh",maxHeight:"80vh"}},children:jsxRuntimeExports.jsxs(Stack$5,{gap:2,paddingY:2,height:1,children:[jsxRuntimeExports.jsx(BaseTextField,{sx:{maxWidth:"50%",paddingLeft:1},id:"uk-patient-search",value:ut||"",placeholder:"Search",fullWidth:!0,onChange:pt=>{this.handleChange(pt.target.value)}}),jsxRuntimeExports.jsx(ROTable,{tableHeaders:dt,colWidths:["10%","10%","10%","10%","50%","10%"],children:this.fetchSearchResults()})]})})})}}const routedComponent=withRouter(withApollo(UKPatientSearchModal)),StyledPatientLink=styled$1(Link$2)`
  width: 100%;
  color: inherit;
  text-decoration: none;
  &:hover {
    text-decoration: none;
    color: inherit;
  }
`,StyledImageDiv=styled$1("div")`
  float: left;
  margin-left: 16px;
  padding-top: 4px;
`,RecentPatients=et=>{const{recentPatients:tt,isRo:rt}=et,nt=useTheme$1(),lt=rt?jsxRuntimeExports.jsx(Stack$5,{width:1,sx:{backgroundColor:nt.palette.action.hover,borderTop:"1px solid",borderBottom:"1px solid",borderColor:nt.palette.grey[300]},children:jsxRuntimeExports.jsx(Typography,{lineHeight:"28px",paddingLeft:2,variant:"caption","data-test-id":"last-5-patients",children:"LAST 5 PATIENTS"})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});return tt!=null&&tt.length?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lt,tt.map((ut,dt)=>{const pt=isDemo?patientGenderStockImage(ut.gender):null;return jsxRuntimeExports.jsx(PatientTooltip,{patient:ut,children:jsxRuntimeExports.jsx(Box,{width:1,paddingTop:1,children:jsxRuntimeExports.jsx(StyledPatientLink,{to:`/radiation/patient/${ut.id}/summary`,children:jsxRuntimeExports.jsxs(Stack$5,{direction:"row",id:`patient-${ut.id}`,gap:"8px",children:[jsxRuntimeExports.jsx(StyledImageDiv,{children:jsxRuntimeExports.jsx(PhotoWidget,{url:pt,patientId:ut.id,enableOverlay:!0,size:"sm"})}),jsxRuntimeExports.jsxs(Stack$5,{direction:"column",children:[jsxRuntimeExports.jsx(Typography,{variant:"subtitle1","data-test-id":`patient-${dt}-full-name`,children:ut.fullName}),jsxRuntimeExports.jsxs(Typography,{variant:"body2","data-test-id":`patient-${dt}-ida`,children:["ID: ",ut.ida]}),jsxRuntimeExports.jsxs(Typography,{variant:"body2","data-test-id":`patient-${dt}-emr`,children:["EMR: ",ut.emrInstance]})]})]},ut.id)})})})})]}):rt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[lt,jsxRuntimeExports.jsx(Typography,{paddingLeft:2,paddingTop:1,whiteSpace:"break-spaces",variant:"body2",color:nt.palette.text.secondary,"data-test-id":"no-recent-patients",children:"No recent patients available because you have not visited any patient summaries."})]}):null};class ResubmissionWarningHeader extends React$4.Component{render(){const tt=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,{patient:rt}=this.props;return rt.ida&&tt===Region.UK?jsxRuntimeExports.jsxs("div",{className:"warning-header",children:[jsxRuntimeExports.jsx("strong",{children:"Warning: "}),"This patient has already been submitted to Mosaiq. Any further changes you make to this patient here will not be reflected in Mosaiq until you submit them"]}):jsxRuntimeExports.jsx("span",{})}}const REACT_APP_REGION$1=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,StyledSidePanel=styled$1("div")`
  margin-left: auto;
  width: 320px;
  min-width: 320px;
  height: 100%;
  padding: 15px 15px 60px;
  border-left: 1px solid ${et=>et.theme.palette.grey[300]};
  overflow: auto;
  -ms-overflow-style: none;
  background: $white;
`;class ROSidePanel extends reactExports.Component{render(){const{children:tt,isClinex:rt}=this.props,nt=REACT_APP_REGION$1===Region.UK;return jsxRuntimeExports.jsx(StyledSidePanel,{className:classNames$1("ro-side-panel",{"add-profile-bar-offset":nt,clinex:rt}),children:tt})}}class ROContentContainerBody extends reactExports.Component{render(){const{id:tt,isCompact:rt,className:nt=""}=this.props;return jsxRuntimeExports.jsx("div",{id:tt,className:classNames$1("content-body-container",nt,{compact:rt}),children:this.props.children})}}const ROStepper=et=>{const{data:tt,activePageKey:rt,validationObject:nt,history:lt}=et,ut=useTheme$1();return jsxRuntimeExports.jsx("div",{className:"ro-stepper-wrapper",children:jsxRuntimeExports.jsx("div",{className:"carepath-steps-container",style:{backgroundColor:ut.palette.grey[300]},children:tt.sections.map((dt,pt)=>jsxRuntimeExports.jsx(ROStepperSection,{onPageClick:ht=>lt.push(ht),section:dt,sectionKey:pt,activePageKey:rt,validationObject:nt,data:tt}))})})};class ROStepperSection extends reactExports.Component{constructor(tt){super(tt),this.state={open:!0}}render(){const{section:tt,sectionKey:rt,activePageKey:nt,validationObject:lt,data:ut}=this.props;return jsxRuntimeExports.jsx(UserContext.Consumer,{children:dt=>jsxRuntimeExports.jsx("div",{className:"carepath-step-container",children:jsxRuntimeExports.jsxs(Accordion$2,{defaultExpanded:!0,sx:{backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[jsxRuntimeExports.jsx(AccordionSummary$1,{expandIcon:jsxRuntimeExports.jsx(default_1$j,{}),children:jsxRuntimeExports.jsx(Typography,{variant:"button",color:theme$1.palette.grey[600],children:jsxRuntimeExports.jsx("b",{children:dt.state.navShow?tt.title:tt.short})})}),jsxRuntimeExports.jsx(AccordionDetails,{sx:{padding:"0px"},children:jsxRuntimeExports.jsx(ROContentContainerBody,{className:"carepath-step-body",isCompact:!0,children:jsxRuntimeExports.jsx("div",{className:"timeline-container compact",children:tt.pages.map((pt,ht)=>jsxRuntimeExports.jsx(ROStepperPage,{onPageClick:this.props.onPageClick,page:pt,pageKey:parseInt(""+this.props.sectionKey+ht),activePageKey:nt,validationObject:lt,data:ut}))})})})]})},rt)})}}class ROStepperPage extends reactExports.Component{constructor(){super(...arguments);Nr(this,"getActivePage",()=>{const{data:rt,activePageKey:nt}=this.props;let lt={};return rt.sections.forEach(ut=>{ut.pages.forEach(dt=>{dt.key===nt&&(lt=dt)})}),lt});Nr(this,"getValidStatus",rt=>{const{validationObject:nt}=this.props,lt=nt[rt.key];for(const ut of Object.keys(lt))if(lt[ut])return!1;return!0})}render(){const{page:rt,pageKey:nt,activePageKey:lt}=this.props,ut=this.getActivePage(),dt=rt.pos>=ut.pos,pt=this.getValidStatus(rt);return jsxRuntimeExports.jsx("div",{className:classNames$1("timeline-item",{current:lt===rt.key}),children:jsxRuntimeExports.jsxs("div",{className:"timeline-item-body",children:[jsxRuntimeExports.jsx("div",{className:"timeline-bubble-container",children:jsxRuntimeExports.jsx("div",{className:classNames$1("timeline-bubble",{current:lt===rt.key,complete:lt!==rt.key&&!dt&&pt,red:lt!==rt.key&&!dt&&!pt}),children:dt&&rt.pos})}),jsxRuntimeExports.jsx("div",{className:classNames$1("timeline-title",{green:!1}),children:rt.title})]})},nt)}}const UKROStepper=withRouter(ROStepper);class ROSummaryCard extends reactExports.Component{render(){return jsxRuntimeExports.jsx("div",{className:"reg-summary-wrapper",children:jsxRuntimeExports.jsx("div",{className:"newspaper-container",children:this.props.children})})}}class ROTable extends reactExports.Component{render(){const{tableHeaders:tt,colWidths:rt}=this.props;return jsxRuntimeExports.jsx("div",{className:"RO-table-wrapper",children:jsxRuntimeExports.jsxs("table",{className:"resp-table",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:tt.map((nt,lt)=>jsxRuntimeExports.jsx("th",{style:{minWidth:rt[lt]},children:jsxRuntimeExports.jsx("div",{className:"header-style",children:nt})},lt))})}),this.props.children]})})}}class TestInstanceWarning extends React$4.Component{render(){const tt=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,{patient:rt}=this.props;return!rt.isProd&&tt===Region.UK?jsxRuntimeExports.jsx("div",{className:"warning-header",children:jsxRuntimeExports.jsx("strong",{children:"Warning: You are working with the TEST instance of MOSAIQ"})}):jsxRuntimeExports.jsx("span",{})}}const GC_NUMBER_DEFAULT_TEXT="Patient not submitted",MISSING_PLACEHOLDER="Not provided yet";class UKPatientCard extends reactExports.Component{constructor(tt){super(tt)}nhsFormat(tt,rt){let nt=0;const lt=tt.toString().replace(/ /g,"");return rt.replace(/#/g,()=>typeof lt[nt]<"u"?lt[nt++]:"")}render(){const{patient:tt}=this.props,rt=tt.address?tt.address.ukFormattedAddress:MISSING_PLACEHOLDER,nt=tt.firstName?tt.firstName:"",lt=tt.lastName?tt.lastName:"",ut=nt===""&&lt===""?MISSING_PLACEHOLDER:nt+" "+lt,dt=tt.idb&&tt.idb!==""?this.nhsFormat(tt.idb,"### ### ####"):MISSING_PLACEHOLDER,pt=tt.dob?tt.dob:MISSING_PLACEHOLDER,ht=tt.ida?tt.ida:GC_NUMBER_DEFAULT_TEXT;return jsxRuntimeExports.jsx("div",{className:"patient-card",id:"patient-card",children:jsxRuntimeExports.jsx(Tooltip,{arrow:!0,title:"Patient Card",children:jsxRuntimeExports.jsx("table",{className:"card-table",children:jsxRuntimeExports.jsxs("tbody",{children:[jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"twenty",children:"Name"}),jsxRuntimeExports.jsx("th",{className:classNames$1("twenty",{disabled:ht===GC_NUMBER_DEFAULT_TEXT}),children:"GC number"}),jsxRuntimeExports.jsx("th",{className:"twenty",children:"NHS Number"}),jsxRuntimeExports.jsx("th",{className:"twenty",children:"Date of birth"}),jsxRuntimeExports.jsx("th",{className:"forty",children:"Address"})]}),jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:classNames$1("twenty",{disabled:ut===MISSING_PLACEHOLDER}),children:ut}),jsxRuntimeExports.jsx("td",{className:classNames$1("twenty",{disabled:ht===GC_NUMBER_DEFAULT_TEXT}),children:ht}),jsxRuntimeExports.jsx("td",{className:classNames$1("twenty",{disabled:dt===MISSING_PLACEHOLDER}),children:dt}),jsxRuntimeExports.jsx("td",{className:classNames$1("twenty",{disabled:pt===MISSING_PLACEHOLDER}),children:pt}),jsxRuntimeExports.jsx("td",{className:classNames$1("twenty",{disabled:rt===MISSING_PLACEHOLDER}),children:rt})]})]})})})})}}class UKSideBarList extends reactExports.Component{constructor(tt){super(tt),this.state={selectedIndex:0}}handleListItemClick(tt,rt,nt){this.setState({selectedIndex:rt}),this.props.history.push(nt)}render(){const{items:tt,displayText:rt}=this.props;return jsxRuntimeExports.jsxs("div",{className:"list-wrapper",children:[jsxRuntimeExports.jsx(List$2,{className:"list-body-wrapper",children:tt.map((nt,lt)=>jsxRuntimeExports.jsxs(ListItem,{selected:this.state.selectedIndex===lt,onClick:ut=>this.handleListItemClick(ut,lt,nt.component),button:!0,children:[jsxRuntimeExports.jsx(ListItemIcon,{children:jsxRuntimeExports.jsx(SvgIcon,{viewBox:"0 0 32 32",children:jsxRuntimeExports.jsx("path",{d:nt.path})})}),jsxRuntimeExports.jsx(ListItemText,{style:{display:rt?"flex":"none"},primary:nt.text})]},nt.text))}),jsxRuntimeExports.jsx(Divider$1,{})]})}}const UKSideBarList$1=withRouter(UKSideBarList);class UKSideBar extends reactExports.Component{constructor(rt){super(rt);Nr(this,"toggleSidebar",()=>{this.setState({sidebarOpen:!this.state.sidebarOpen})});this.state={currentLocation:window.location.pathname.toString().toLowerCase(),sidebarOpen:!0},this.props.history.listen(nt=>{this.setState({currentLocation:nt.pathname.toString()})})}render(){return jsxRuntimeExports.jsx("div",{className:classNames$1("sidebar-wrapper",{"drawer-open":this.state.sidebarOpen},{"drawer-close":!this.state.sidebarOpen},{"slide-open":this.state.sidebarOpen},{"slide-close":!this.state.sidebarOpen}),style:{display:this.state.currentLocation.includes("/appointments")?"flex":"none"},children:jsxRuntimeExports.jsx("div",{id:"uk-sidebar",children:jsxRuntimeExports.jsxs(Drawer,{variant:"permanent",className:classNames$1("uk-drawer",{"drawer-open":this.state.sidebarOpen},{"drawer-close":!this.state.sidebarOpen}),children:[jsxRuntimeExports.jsx("div",{className:"sidebar-handle-wrapper",style:{width:"100%"},children:jsxRuntimeExports.jsx(IconButton,{className:classNames$1("sidebar-handle",{"sidebar-handle-closed":!this.state.sidebarOpen},{"sidebar-handle-opened":this.state.sidebarOpen}),color:"inherit","aria-label":"open drawer",onClick:this.toggleSidebar,edge:"start",size:"large"})}),jsxRuntimeExports.jsx(UKSideBarList$1,{displayText:this.state.sidebarOpen,heading:"Appointment Type",items:[{text:"Pending RO",iconType:"svg",path:"M26.7999 4.00009H5.19992C4.53326 4.00009 3.99992 4.53342 3.99992 5.20009V26.8001C3.99992 27.3334 4.53326 28.0001 5.19992 28.0001H26.7999C27.3333 28.0001 27.9999 27.3334 27.9999 26.8001V5.20009C27.9999 4.53342 27.3333 4.00009 26.7999 4.00009ZM11.9998 9.33353H9.33318V12.0002H11.9998V9.33353ZM22.6665 9.33353H14.6665V12.0002H22.6665V9.33353ZM22.6665 14.6668H14.6665V17.3335H22.6665V14.6668ZM14.6665 20.0002H22.6665V22.6668H14.6665V20.0002ZM9.33318 14.6668H11.9998V17.3335H9.33318V14.6668ZM11.9998 20.0002H9.33318V22.6668H11.9998V20.0002ZM6.66651 25.3335H25.3332V6.66681H6.66651V25.3335Z",component:"/appointments"},{text:"Clinic Visit",iconType:"svg",path:"M15.9998 2.6665C10.8398 2.6665 6.6665 6.83984 6.6665 11.9998C6.6665 18.9998 15.9998 29.3332 15.9998 29.3332C15.9998 29.3332 25.3332 18.9998 25.3332 11.9998C25.3332 6.83984 21.1598 2.6665 15.9998 2.6665ZM9.33319 11.9998C9.33319 8.31981 12.3199 5.33315 15.9999 5.33315C19.6799 5.33315 22.6665 8.31981 22.6665 11.9998C22.6665 15.8398 18.8265 21.5865 15.9999 25.1732C13.2265 21.6132 9.33319 15.7998 9.33319 11.9998ZM12.6665 11.9998C12.6665 10.1589 14.1589 8.6665 15.9998 8.6665C17.1907 8.6665 18.2912 9.30183 18.8866 10.3332C19.482 11.3645 19.482 12.6352 18.8866 13.6665C18.2912 14.6978 17.1907 15.3332 15.9998 15.3332C14.1589 15.3332 12.6665 13.8408 12.6665 11.9998Z",component:"/appointments"}]})]})})})}}withRouter(UKSideBar);const RadioGroupField=({name:et,fieldLabel:tt,options:rt,selectedOption:nt,handleChange:lt})=>jsxRuntimeExports.jsx("div",{onChange:lt,children:jsxRuntimeExports.jsx(FormSegmentField$1,{htmlFor:"radioGroupField",title:tt,isValid:nt!=="",children:rt.map(ut=>jsxRuntimeExports.jsx(RadioFieldTile,{keyId:`radio-${ut.label}`,name:et,label:ut.label,value:ut.value,checked:nt===ut.value}))})}),BOOLEAN_OPTIONS=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],ModalSimulationSubmission=et=>{const{isOpen:tt,submitFunction:rt}=et,[nt,lt]=reactExports.useState(""),[ut,dt]=reactExports.useState(!1),pt=()=>{if(nt===""){dt(!0);return}rt(nt)};return jsxRuntimeExports.jsx(StandardDialog,{open:tt,title:"Would you like to request a new simulation?",onSubmit:pt,submitText:"Confirm",children:jsxRuntimeExports.jsxs(Stack$5,{gap:2,paddingY:2,children:[jsxRuntimeExports.jsx(Typography,{children:"A change to the simulation or treatment sites has occured. Please confirm if a new simulation is required*"}),jsxRuntimeExports.jsx(ToggleButtons,{id:"modal-simulation-submission",options:BOOLEAN_OPTIONS,fullWidth:!0,value:nt,handleChange:ht=>{dt(!1),lt(ht)},error:ut})]})})},StyledMUICheckbox=styled(Checkbox$1)`
  padding-right: 16px;
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  #gc-ui-checked-icon #inner-rect {
    fill: ${et=>et.disabled?et.theme.palette.grey[300]:et.error?et.theme.palette.error.main:et.theme.palette.primary.main};
  }
  #gc-ui-checked-icon #outer-rect {
    stroke: ${et=>et.disabled?et.theme.palette.grey[300]:et.error?et.theme.palette.error.main:et.theme.palette.primary.main};
  }
  #gc-ui-unchecked-icon #inner-rect {
    fill: ${et=>et.disabled?et.theme.palette.grey[100]:et.error?"white !important;":""};
  }
  #gc-ui-unchecked-icon #outer-rect {
    stroke: ${et=>et.disabled?et.theme.palette.grey[300]:et.error?et.theme.palette.error.main:et.theme.palette.primary.main};
  }
  &:hover {
    #gc-ui-checked-icon #inner-rect {
      fill: ${et=>et.disabled?void 0:et.error?et.theme.palette.error.main:et.theme.palette.secondary.light} !important;
    }
    #gc-ui-checked-icon #outer-rect {
      stroke: ${et=>et.disabled?et.theme.palette.grey[300]:et.error?et.theme.palette.error.main:et.theme.palette.secondary.light} !important;
    }
    #gc-ui-unchecked-icon #inner-rect {
      fill: ${et=>{var tt;return et.disabled?et.theme.palette.grey[100]:(tt=et.theme.palette.primary)==null?void 0:tt.contrastText}} !important;
    }
    #gc-ui-unchecked-icon #outer-rect {
      stroke: ${et=>et.disabled?et.theme.palette.grey[300]:et.error?et.theme.palette.error.main:et.theme.palette.primary.main} !important;
    }
  }
`,StyledGridContainer=styled(Grid)`
  border-style: solid;
  border-width: 1px;
  border-radius: 4px;
  margin-left: 0px;
  margin-right: 0px;
  cursor: pointer;
  background-color: ${et=>et.disabled?et.theme.palette.grey[100]:""};
  border-color: ${et=>et.disabled?et.theme.palette.grey[300]:et.error?et.theme.palette.error.main:et.checked?et.theme.palette.primary.main:et.theme.palette.grey[300]};
  &:hover {
    border-color: ${et=>{var tt;return et.disabled?et.theme.palette.grey[300]:et.error?et.theme.palette.error.main:(tt=et.theme.palette.primary)==null?void 0:tt.main}};
    background-color: ${et=>{var tt,rt;return et.disabled?et.theme.palette.grey[100]:et.error?(tt=et.theme.palette.error)==null?void 0:tt.contrastText:(rt=et.theme.palette.primary)==null?void 0:rt.contrastText}};
  }
`,StyledLabelGridItem=styled(Grid)`
  padding-top: 8px;
  padding-left: 0px;
  padding-right: 16px;
  padding-bottom: 8px;
`,StyledTypography=styled(Typography)`
  font-size: 1rem;
  font-weight: 400;
`,CheckboxTile=et=>{const tt=useTheme$1();return et.disabled?tt.palette.grey[300]:et.error?tt.palette.error.main:tt.palette.primary.main,et.disabled?tt.palette.grey[100]:et.error,jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(StyledGridContainer,{container:!0,theme:tt,id:`checkbox-container-${et.id}`,checked:et.checked,error:et.error,disabled:et.disabled,onClick:()=>et.onChange(!et.checked),"data-cy":et["data-cy"],children:[jsxRuntimeExports.jsx(StyledMUICheckbox,{theme:tt,error:et.error,disabled:et.disabled,name:et.name,onClick:()=>et.onChange(!et.checked),checked:et.checked,disableRipple:!0,checkedIcon:jsxRuntimeExports.jsx(CheckBox$1,{fontSize:"medium",id:"gc-ui-checked-icon"},"gc-ui-checked-icon"),icon:jsxRuntimeExports.jsx(CheckBoxOutlineBlank$1,{fontSize:"medium",id:"gc-ui-unchecked-icon"},"gc-ui-unchecked-icon"),"data-cy":`${et["data-cy"]}-${et.id}`,style:{marginRight:"8px",marginLeft:"8px"}},`checkbox-${et.id}`),jsxRuntimeExports.jsx(StyledLabelGridItem,{item:!0,xs:!0,children:jsxRuntimeExports.jsx(StyledTypography,{children:et.label})},`label-${et.id}`)]}),jsxRuntimeExports.jsx("div",{style:{marginTop:"8px"},children:et.error&&jsxRuntimeExports.jsx("span",{"data-cy":`checkbox-tile-error-${et["data-cy"]}`,style:{color:tt.palette.error.main},children:et.errorMessage})})]})},REACT_APP_REGION=Object.create(globalThis.import_meta_env||null).REACT_APP_REGION,region=REACT_APP_REGION,FIELD_NAMES={E_FIRST_NAME:"emergencyContactFirstName",E_LAST_NAME:"emergencyContactLastName",E_RELATIONSHIP:"emergencyContactRelationship",E_PRIMARY_PHONE_NUMBER:"emergencyContactMobilePhoneNumber",E_SECONDARY_PHONE_NUMBER:"emergencyContactHomePhoneNumber",E_EMAIL_ADDRESS:"emergencyContactEmail",SAME_AS_EMERGENCY:"sameAsEmergency",N_FIRST_NAME:"nextOfKinContactFirstName",N_LAST_NAME:"nextOfKinContactLastName",N_RELATIONSHIP:"nextOfKinContactRelationship",N_PRIMARY_PHONE_NUMBER:"nextOfKinContactMobilePhoneNumber",N_SECONDARY_PHONE_NUMBER:"nextOfKinContactHomePhoneNumber",N_EMAIL_ADDRESS:"nextOfKinContactEmail"},BASE_KEYS={FIRST_NAME:"firstName",LAST_NAME:"lastName",RELATIONSHIP:"relationship",MOBILE_PHONE:"mobilePhoneNumber",HOME_PHONE:"homePhoneNumber",EMAIL_ADDRESS:"email",EMERGENCY:"emergencyContact",NEXT_OF_KIN:"nextOfKinContact"},EMERGENCY_VALIDATION={FIRST_NAME:`${BASE_KEYS.EMERGENCY}.${BASE_KEYS.FIRST_NAME}`,LAST_NAME:`${BASE_KEYS.EMERGENCY}.${BASE_KEYS.LAST_NAME}`,RELATIONSHIP:`${BASE_KEYS.EMERGENCY}.${BASE_KEYS.RELATIONSHIP}`,MOBILE_PHONE:`${BASE_KEYS.EMERGENCY}.${BASE_KEYS.MOBILE_PHONE}`,HOME_PHONE:`${BASE_KEYS.EMERGENCY}.${BASE_KEYS.HOME_PHONE}`,EMAIL_ADDRESS:`${BASE_KEYS.EMERGENCY}.${BASE_KEYS.EMAIL_ADDRESS}`},NEXT_OF_KIN_VALIDATION={FIRST_NAME:`${BASE_KEYS.NEXT_OF_KIN}.${BASE_KEYS.FIRST_NAME}`,LAST_NAME:`${BASE_KEYS.NEXT_OF_KIN}.${BASE_KEYS.LAST_NAME}`,RELATIONSHIP:`${BASE_KEYS.NEXT_OF_KIN}.${BASE_KEYS.RELATIONSHIP}`,MOBILE_PHONE:`${BASE_KEYS.NEXT_OF_KIN}.${BASE_KEYS.MOBILE_PHONE}`,HOME_PHONE:`${BASE_KEYS.NEXT_OF_KIN}.${BASE_KEYS.HOME_PHONE}`,EMAIL_ADDRESS:`${BASE_KEYS.NEXT_OF_KIN}.${BASE_KEYS.EMAIL_ADDRESS}`},FIELD_SIZE_LIMITS={E_FIRST_NAME:40,E_LAST_NAME:40,E_PRIMARY_PHONE_NUMBER:25,E_SECONDARY_PHONE_NUMBER:25,E_EMAIL_ADDRESS:40,N_FIRST_NAME:40,N_LAST_NAME:40,N_PRIMARY_PHONE_NUMBER:25,N_SECONDARY_PHONE_NUMBER:25,N_EMAIL_ADDRESS:40},FIELD_HEADINGS={E_FIRST_NAME:"First name",E_LAST_NAME:"Last name",E_RELATIONSHIP:"Relationship",E_PRIMARY_PHONE_NUMBER:"Mobile phone number",E_SECONDARY_PHONE_NUMBER:"Home phone number",E_EMAIL_ADDRESS:"Email",SAME_AS_EMERGENCY:"Next of kin is the same as emergency contact",N_FIRST_NAME:"First name",N_LAST_NAME:"Last name",N_RELATIONSHIP:"Relationship",N_PRIMARY_PHONE_NUMBER:"Mobile phone number",N_SECONDARY_PHONE_NUMBER:"Home phone number",N_EMAIL_ADDRESS:"Email"},FIELD_PLACEHOLDERS={E_FIRST_NAME:"",E_LAST_NAME:"",E_RELATIONSHIP:"",E_PRIMARY_PHONE_NUMBER:"",E_SECONDARY_PHONE_NUMBER:"",E_EMAIL_ADDRESS:"",N_FIRST_NAME:"",N_LAST_NAME:"",N_RELATIONSHIP:"",N_PRIMARY_PHONE_NUMBER:"",N_SECONDARY_PHONE_NUMBER:"",N_EMAIL_ADDRESS:""},FIELD_INCOMPLETE_INPUT_ERRORS={E_FIRST_NAME:"Please enter First name.",E_LAST_NAME:"Please enter Last name.",E_RELATIONSHIP:"Please select relationship from the drop-down menu.",PHONE_NUMBER:"Please enter your mobile or home phone number.",SAME_AS_EMERGENCY:"Please select and option.",N_FIRST_NAME:"Please enter First name.",N_LAST_NAME:"Please enter Last name.",N_RELATIONSHIP:"Please select relationship from the drop-down menu."},FIELD_INVALID_INPUT_ERRORS={E_FIRST_NAME:"Please enter a valid format for First name.",E_LAST_NAME:"Please enter a valid format for Last name.",E_PRIMARY_PHONE_NUMBER:"Please enter a valid mobile number.",E_SECONDARY_PHONE_NUMBER:"Please enter a valid home phone number.",E_EMAIL_ADDRESS:"Please enter a valid email address.",SAME_AS_EMERGENCY:"Please select an option.",N_FIRST_NAME:"Please enter a valid format for First name.",N_LAST_NAME:"Please enter a valid format for Last name.",N_PRIMARY_PHONE_NUMBER:"Please enter a valid mobile number..",N_SECONDARY_PHONE_NUMBER:"Please enter a valid home phone number.",N_EMAIL_ADDRESS:"Please enter a valid email address."},E_FORM_HEADING="Emergency contact",N_FORM_HEADING="Next of Kin";class UKRegistrationAltContact extends reactExports.Component{constructor(rt){super(rt);Nr(this,"renderContents",()=>{var pt,ht;const{altContactInfo:rt,relationshipsReferenceData:nt}=this.props,{emergencyContact:lt,nextOfKinContact:ut}=rt,dt=this.validateObject(rt);return jsxRuntimeExports.jsxs("div",{className:"form-page",children:[jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading alternate-contact",children:E_FORM_HEADING}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[EMERGENCY_VALIDATION.FIRST_NAME]),htmlFor:FIELD_NAMES.E_FIRST_NAME,title:FIELD_HEADINGS.E_FIRST_NAME,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.E_FIRST_NAME,maxLength:FIELD_SIZE_LIMITS.E_FIRST_NAME,placeholder:FIELD_PLACEHOLDERS.E_FIRST_NAME,defaultValue:lt.firstName,onBlur:mt=>this.autosave(FIELD_NAMES.E_FIRST_NAME,BASE_KEYS.FIRST_NAME,mt.target.value),errors:dt&&dt[EMERGENCY_VALIDATION.FIRST_NAME]?dt[EMERGENCY_VALIDATION.FIRST_NAME]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[EMERGENCY_VALIDATION.LAST_NAME]),htmlFor:FIELD_NAMES.E_LAST_NAME,title:FIELD_HEADINGS.E_LAST_NAME,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.E_LAST_NAME,maxLength:FIELD_SIZE_LIMITS.E_LAST_NAME,placeholder:FIELD_PLACEHOLDERS.E_LAST_NAME,defaultValue:lt.lastName,onBlur:mt=>this.autosave(FIELD_NAMES.E_LAST_NAME,BASE_KEYS.LAST_NAME,mt.target.value),errors:dt&&dt[EMERGENCY_VALIDATION.LAST_NAME]?dt[EMERGENCY_VALIDATION.LAST_NAME]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[EMERGENCY_VALIDATION.RELATIONSHIP]),htmlFor:FIELD_NAMES.E_RELATIONSHIP,title:FIELD_HEADINGS.E_RELATIONSHIP,children:jsxRuntimeExports.jsx(DropDownField,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.E_RELATIONSHIP,placeholder:FIELD_PLACEHOLDERS.E_RELATIONSHIP,defaultValue:((pt=nt.find(mt=>mt.name===(lt==null?void 0:lt.relationship)))==null?void 0:pt.id)??"",options:nt,onChange:mt=>this.autosave(FIELD_NAMES.E_RELATIONSHIP,BASE_KEYS.RELATIONSHIP,mt.target.value),errors:dt&&dt[EMERGENCY_VALIDATION.RELATIONSHIP]?dt[EMERGENCY_VALIDATION.RELATIONSHIP]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[EMERGENCY_VALIDATION.MOBILE_PHONE]),htmlFor:FIELD_NAMES.E_PRIMARY_PHONE_NUMBER,title:FIELD_HEADINGS.E_PRIMARY_PHONE_NUMBER,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.E_PRIMARY_PHONE_NUMBER,maxLength:FIELD_SIZE_LIMITS.E_PRIMARY_PHONE_NUMBER,placeholder:FIELD_PLACEHOLDERS.E_PRIMARY_PHONE_NUMBER,defaultValue:lt.mobilePhoneNumber,onBlur:mt=>this.autosave(FIELD_NAMES.E_PRIMARY_PHONE_NUMBER,BASE_KEYS.MOBILE_PHONE,mt.target.value),errors:dt&&dt[EMERGENCY_VALIDATION.MOBILE_PHONE]?dt[EMERGENCY_VALIDATION.MOBILE_PHONE]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[EMERGENCY_VALIDATION.HOME_PHONE]),htmlFor:FIELD_NAMES.E_SECONDARY_PHONE_NUMBER,title:FIELD_HEADINGS.E_SECONDARY_PHONE_NUMBER,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.E_SECONDARY_PHONE_NUMBER,maxLength:FIELD_SIZE_LIMITS.E_SECONDARY_PHONE_NUMBER,placeholder:FIELD_PLACEHOLDERS.E_SECONDARY_PHONE_NUMBER,defaultValue:lt.homePhoneNumber,onBlur:mt=>this.autosave(FIELD_NAMES.E_SECONDARY_PHONE_NUMBER,BASE_KEYS.HOME_PHONE,mt.target.value),errors:dt&&dt[EMERGENCY_VALIDATION.HOME_PHONE]?dt[EMERGENCY_VALIDATION.HOME_PHONE]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[EMERGENCY_VALIDATION.EMAIL_ADDRESS]),htmlFor:FIELD_NAMES.E_EMAIL_ADDRESS,title:FIELD_HEADINGS.E_EMAIL_ADDRESS,hideOptional:!0,required:!1,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.E_EMAIL_ADDRESS,maxLength:FIELD_SIZE_LIMITS.E_EMAIL_ADDRESS,placeholder:FIELD_PLACEHOLDERS.E_EMAIL_ADDRESS,defaultValue:lt.email,onBlur:mt=>this.autosave(FIELD_NAMES.E_EMAIL_ADDRESS,BASE_KEYS.EMAIL_ADDRESS,mt.target.value),errors:dt&&dt[EMERGENCY_VALIDATION.EMAIL_ADDRESS]?dt[EMERGENCY_VALIDATION.EMAIL_ADDRESS]:void 0,inputType:"email"})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt.sameAsEmergency),htmlFor:FIELD_NAMES.SAME_AS_EMERGENCY,title:FIELD_HEADINGS.SAME_AS_EMERGENCY,children:jsxRuntimeExports.jsx(SegmentedInput,{disabled:rt.lock&&rt.lock.readOnly,fieldName:FIELD_NAMES.SAME_AS_EMERGENCY,options:SegmentedInputBoolean,optionAreBoolean:!0,defaultSelected:rt.sameAsEmergency===null?!1:rt.sameAsEmergency,itemSelected:mt=>{const xt=mt,Mt={id:rt.id,sameAsEmergency:xt};!xt&&ut&&(Mt.nextOfKinContact={firstName:"",lastName:"",relationship:"",mobilePhoneNumber:"",homePhoneNumber:"",email:""}),this.props.autosave(rt,Mt)},errors:dt&&dt.sameAsEmergency?dt.sameAsEmergency:void 0})})]}),rt.sameAsEmergency!==!0&&jsxRuntimeExports.jsxs("form",{className:"form-container",children:[jsxRuntimeExports.jsx("div",{className:"form-heading alternate-contact",children:N_FORM_HEADING}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[NEXT_OF_KIN_VALIDATION.FIRST_NAME]),htmlFor:FIELD_NAMES.N_FIRST_NAME,title:FIELD_HEADINGS.N_FIRST_NAME,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.N_FIRST_NAME,maxLength:FIELD_SIZE_LIMITS.N_FIRST_NAME,placeholder:FIELD_PLACEHOLDERS.N_FIRST_NAME,defaultValue:ut?ut.firstName:"",onBlur:mt=>this.autosave(FIELD_NAMES.N_FIRST_NAME,BASE_KEYS.FIRST_NAME,mt.target.value,!0),errors:dt&&dt[NEXT_OF_KIN_VALIDATION.FIRST_NAME]?dt[NEXT_OF_KIN_VALIDATION.FIRST_NAME]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[NEXT_OF_KIN_VALIDATION.LAST_NAME]),htmlFor:FIELD_NAMES.N_LAST_NAME,title:FIELD_HEADINGS.N_LAST_NAME,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.N_LAST_NAME,maxLength:FIELD_SIZE_LIMITS.N_LAST_NAME,placeholder:FIELD_PLACEHOLDERS.N_LAST_NAME,defaultValue:ut?ut.lastName:"",onBlur:mt=>this.autosave(FIELD_NAMES.N_LAST_NAME,BASE_KEYS.LAST_NAME,mt.target.value,!0),errors:dt&&dt[NEXT_OF_KIN_VALIDATION.LAST_NAME]?dt[NEXT_OF_KIN_VALIDATION.LAST_NAME]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[NEXT_OF_KIN_VALIDATION.RELATIONSHIP]),htmlFor:FIELD_NAMES.N_RELATIONSHIP,title:FIELD_HEADINGS.N_RELATIONSHIP,children:jsxRuntimeExports.jsx(DropDownField,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.N_RELATIONSHIP,placeholder:FIELD_PLACEHOLDERS.N_RELATIONSHIP,defaultValue:((ht=nt.find(mt=>mt.name===(ut==null?void 0:ut.relationship)))==null?void 0:ht.id)??"",options:nt,onChange:mt=>this.autosave(FIELD_NAMES.N_RELATIONSHIP,BASE_KEYS.RELATIONSHIP,mt.target.value,!0),errors:dt&&dt[NEXT_OF_KIN_VALIDATION.RELATIONSHIP]?dt[NEXT_OF_KIN_VALIDATION.RELATIONSHIP]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[NEXT_OF_KIN_VALIDATION.MOBILE_PHONE]),htmlFor:FIELD_NAMES.N_PRIMARY_PHONE_NUMBER,title:FIELD_HEADINGS.N_PRIMARY_PHONE_NUMBER,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.N_PRIMARY_PHONE_NUMBER,maxLength:FIELD_SIZE_LIMITS.N_PRIMARY_PHONE_NUMBER,placeholder:FIELD_PLACEHOLDERS.N_PRIMARY_PHONE_NUMBER,defaultValue:ut?ut.mobilePhoneNumber:"",onBlur:mt=>this.autosave(FIELD_NAMES.N_PRIMARY_PHONE_NUMBER,BASE_KEYS.MOBILE_PHONE,mt.target.value,!0),errors:dt&&dt[NEXT_OF_KIN_VALIDATION.MOBILE_PHONE]?dt[NEXT_OF_KIN_VALIDATION.MOBILE_PHONE]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[NEXT_OF_KIN_VALIDATION.HOME_PHONE]),htmlFor:FIELD_NAMES.N_SECONDARY_PHONE_NUMBER,title:FIELD_HEADINGS.N_SECONDARY_PHONE_NUMBER,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.N_SECONDARY_PHONE_NUMBER,maxLength:FIELD_SIZE_LIMITS.N_SECONDARY_PHONE_NUMBER,placeholder:FIELD_PLACEHOLDERS.N_SECONDARY_PHONE_NUMBER,defaultValue:ut?ut.homePhoneNumber:"",onBlur:mt=>this.autosave(FIELD_NAMES.N_SECONDARY_PHONE_NUMBER,BASE_KEYS.HOME_PHONE,mt.target.value,!0),errors:dt&&dt[NEXT_OF_KIN_VALIDATION.HOME_PHONE]?dt[NEXT_OF_KIN_VALIDATION.HOME_PHONE]:void 0})}),jsxRuntimeExports.jsx(FormSegmentField$1,{isValid:!(dt&&dt[NEXT_OF_KIN_VALIDATION.EMAIL_ADDRESS]),htmlFor:FIELD_NAMES.N_EMAIL_ADDRESS,title:FIELD_HEADINGS.N_EMAIL_ADDRESS,hideOptional:!0,required:!1,children:jsxRuntimeExports.jsx(FreeTextField$1,{disabled:rt.lock&&rt.lock.readOnly,inputName:FIELD_NAMES.N_EMAIL_ADDRESS,maxLength:FIELD_SIZE_LIMITS.N_EMAIL_ADDRESS,placeholder:FIELD_PLACEHOLDERS.N_EMAIL_ADDRESS,defaultValue:ut?ut.email:"",onBlur:mt=>this.autosave(FIELD_NAMES.N_EMAIL_ADDRESS,BASE_KEYS.EMAIL_ADDRESS,mt.target.value,!0),errors:dt&&dt[NEXT_OF_KIN_VALIDATION.EMAIL_ADDRESS]?dt[NEXT_OF_KIN_VALIDATION.EMAIL_ADDRESS]:void 0,inputType:"email"})})]})]})});Nr(this,"autosave",(rt,nt,lt,ut)=>{const{altContactInfo:dt,autosave:pt}=this.props,ht={id:dt.id},mt={};mt[nt]=lt;let xt="emergencyContact";ut&&(xt="nextOfKinContact"),ht[xt]=mt,pt(dt,ht);const Mt=this.state.viewed.add(rt);this.setState({viewed:Mt})});Nr(this,"validateObject",rt=>{const{emergencyContact:nt,nextOfKinContact:lt}=rt,ut={"emergencyContact.firstName":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.E_FIRST_NAME},format:{pattern:"[A-Za-z\\s.,'-]*",message:FIELD_INVALID_INPUT_ERRORS.E_FIRST_NAME}},"emergencyContact.lastName":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.E_LAST_NAME},format:{pattern:"[A-Za-z\\s.,'-]*",message:FIELD_INVALID_INPUT_ERRORS.E_LAST_NAME}},"emergencyContact.relationship":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.E_RELATIONSHIP}},"emergencyContact.mobilePhoneNumber":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.PHONE_NUMBER},format:{pattern:nt.mobilePhoneNumber?UK_PHONE_REGEX:".*",message:FIELD_INVALID_INPUT_ERRORS.E_PRIMARY_PHONE_NUMBER}},"emergencyContact.homePhoneNumber":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.PHONE_NUMBER},format:{pattern:nt.homePhoneNumber?UK_PHONE_REGEX:".*",message:FIELD_INVALID_INPUT_ERRORS.E_SECONDARY_PHONE_NUMBER}},"emergencyContact.email":{presence:{allowEmpty:!0},format:{pattern:"^[a-zA-Z0-9\\_\\-\\.]+@[a-zA-Z0-9\\-\\.]+(\\.[a-zA-Z]+)+$|",message:FIELD_INVALID_INPUT_ERRORS.E_EMAIL_ADDRESS}},sameAsEmergency:{presence:{allowEmpty:!1,message:FIELD_INCOMPLETE_INPUT_ERRORS.SAME_AS_EMERGENCY}},"nextOfKinContact.firstName":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.N_FIRST_NAME},format:{pattern:"[A-Za-z\\s.,'-]*",message:FIELD_INVALID_INPUT_ERRORS.N_FIRST_NAME}},"nextOfKinContact.lastName":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.N_LAST_NAME},format:{pattern:"[A-Za-z\\s.,'-]*",message:FIELD_INVALID_INPUT_ERRORS.N_LAST_NAME}},"nextOfKinContact.relationship":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.N_RELATIONSHIP}},"nextOfKinContact.mobilePhoneNumber":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.PHONE_NUMBER},format:{pattern:lt&&lt.mobilePhoneNumber?UK_PHONE_REGEX:".*",message:FIELD_INVALID_INPUT_ERRORS.N_PRIMARY_PHONE_NUMBER}},"nextOfKinContact.homePhoneNumber":{presence:{allowEmpty:!0,message:FIELD_INCOMPLETE_INPUT_ERRORS.PHONE_NUMBER},format:{pattern:lt&&lt.homePhoneNumber?UK_PHONE_REGEX:".*",message:FIELD_INVALID_INPUT_ERRORS.N_SECONDARY_PHONE_NUMBER}},"nextOfKinContact.email":{presence:{allowEmpty:!0},format:{pattern:"^[a-zA-Z0-9\\_\\-\\.]+@[a-zA-Z0-9\\-\\.]+(\\.[a-zA-Z]+)+$|",message:FIELD_INVALID_INPUT_ERRORS.N_EMAIL_ADDRESS}}};nt.mobilePhoneNumber&&!nt.homePhoneNumber&&(ut[EMERGENCY_VALIDATION.HOME_PHONE].format.pattern=".*"),nt.homePhoneNumber&&!nt.mobilePhoneNumber&&(ut[EMERGENCY_VALIDATION.MOBILE_PHONE].format.pattern=".*"),lt&&(lt.mobilePhoneNumber&&!lt.homePhoneNumber&&(ut[NEXT_OF_KIN_VALIDATION.HOME_PHONE].format.pattern=".*"),lt.homePhoneNumber&&!lt.mobilePhoneNumber&&(ut[NEXT_OF_KIN_VALIDATION.MOBILE_PHONE].format.pattern=".*"));const dt={};for(const ht of this.state.viewed.keys()){const mt=this.convertViewedKeyToValidationKey(ht);dt[mt]=ut[mt]}return validate(rt,dt,{fullMessages:!1})});Nr(this,"convertViewedKeyToValidationKey",rt=>{let nt;if(rt.includes(BASE_KEYS.NEXT_OF_KIN)?nt=BASE_KEYS.NEXT_OF_KIN:rt.includes(BASE_KEYS.EMERGENCY)&&(nt=BASE_KEYS.EMERGENCY),nt===void 0)return rt;let lt=rt.slice(nt.length);return lt=lt[0].toLowerCase()+lt.substr(1),`${nt}.${lt}`});this.state={viewed:new Set}}static getDerivedStateFromProps(rt,nt){if(rt.validateOnLoad&&rt.altContactInfo.lock&&!rt.altContactInfo.lock.readOnly){const lt=Object.keys(FIELD_NAMES).map(dt=>FIELD_NAMES[dt]);return{viewed:new Set(lt)}}return nt}componentDidMount(){const{altContactInfo:rt,autosave:nt}=this.props;rt.sameAsEmergency===null&&nt(rt,{id:rt.id,sameAsEmergency:!0})}render(){const{altContactInfo:rt,genderRefData:nt,saveStatus:lt,isPso:ut}=this.props;return jsxRuntimeExports.jsx(routerComponent,{patient:rt,genderRefData:nt,isPso:ut,saveStatus:lt,children:this.renderContents()})}}const PATIENT_AND_USER_DETAILS_QUERY=gql`
  query PatientAndUserDetails($id: ID!) {
    patient(id: $id) {
      id
      lock {
        lockedBy
        readOnly
        lockedByName
      }
      address {
        id
        ukFormattedAddress
      }
      firstName
      lastName
      ida
      idb
      gender
      dob
      isProd
      emergencyContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
      }
      nextOfKinContact {
        id
        firstName
        lastName
        relationship
        mobilePhoneNumber
        homePhoneNumber
        email
      }
      sameAsEmergency
    }
    genderRefData: listData(category: "gender") {
      id
      name
    }
    relationships: listData(category: "relationships") {
      id
      name
    }
    user {
      id
      isPso
    }
  }
`;class UKRegistrationAltContactApollo extends reactExports.Component{constructor(rt){super(rt);Nr(this,"userIsPSO",!1);Nr(this,"autosave",async(rt,nt,lt)=>{const ut=this.props.client,dt=await this.getApolloCache();let pt=dt.currentPendingSaveCount+1,ht=dt.saveErrorCount;ut&&ut.writeQuery({query:gql`
          query {
            pendingSaveCount
          }
        `,data:{pendingSaveCount:pt}}),this.setState({saveStatus:this.props.getSaveStatus(pt,ht)}),ut==null||ut.mutate(this.props.getPatientMutation(rt,[],lt,!0,nt)).then(mt=>{mt.data.updatePatient.errors&&ht++}).catch(()=>{this.props.showSavingErrorModal(this.userIsPSO,this.props.history.push),ht++}).finally(async()=>{pt=(await this.getApolloCache()).currentPendingSaveCount-1,ut&&ut.writeQuery({query:gql`
              query {
                pendingSaveCount
                saveErrorCount
              }
            `,data:{pendingSaveCount:pt,saveErrorCount:ht}}),this.setState({saveStatus:this.props.getSaveStatus(pt,ht)})})});Nr(this,"getApolloCache",async()=>{const{client:rt}=this.props;try{const nt=await(rt==null?void 0:rt.query({query:GET_APOLLO_CACHE})),lt=nt==null?void 0:nt.data.pendingSaveCount,ut=nt==null?void 0:nt.data.saveErrorCount,dt=nt==null?void 0:nt.data.registrationPagesViewed;return{currentPendingSaveCount:lt,saveErrorCount:ut,registrationPagesViewed:dt}}catch(nt){throw nt}});this.state={saveStatus:SavingStatus.SAVED,pageViewed:!1}}componentDidMount(){const{client:rt}=this.props;let nt=[];this.getApolloCache().then(lt=>{const ut=lt.currentPendingSaveCount,dt=lt.saveErrorCount,pt=lt.registrationPagesViewed;nt=pt,this.setState({saveStatus:this.props.getSaveStatus(ut,dt),pageViewed:pt.includes(BASE_REGISTRATION_PAGES.ALT_CONTACT)}),nt.includes(BASE_REGISTRATION_PAGES.ALT_CONTACT)||(nt=[...nt,BASE_REGISTRATION_PAGES.ALT_CONTACT]),rt&&rt.writeQuery({query:gql`
            query {
              registrationPagesViewed
            }
          `,data:{registrationPagesViewed:nt}})})}render(){const{match:rt,showModalIfLocked:nt}=this.props,{patientId:lt}=rt.params;return jsxRuntimeExports.jsx(Query,{query:PATIENT_AND_USER_DETAILS_QUERY,variables:{id:lt},onCompleted:ut=>{nt(ut)},children:({loading:ut,error:dt,data:pt})=>{const{setError:ht}=useErrorModalContext();return reactExports.useEffect(()=>{if(dt)return ht()},[dt]),ut?jsxRuntimeExports.jsx(LoadingSpinner,{}):pt&&pt.patient&&pt.relationships?(this.userIsPSO=pt.user.isPso||!1,jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(ExtendLock,{accessPatientId:pt.patient.id}),jsxRuntimeExports.jsx(UKRegistrationAltContact,{altContactInfo:pt.patient,autosave:this.autosave,genderRefData:pt.genderRefData,relationshipsReferenceData:pt.relationships,saveStatus:this.state.saveStatus,validateOnLoad:this.state.pageViewed,isPso:this.userIsPSO})]})):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}})}}const apolloComponent=withApollo(UKRegistrationAltContactApollo),component=withRegistrationForm(apolloComponent),logger$1=new Logger("SentryUser"),SentryUser=()=>{const[et,tt]=reactExports.useState("Anonymous"),rt=3,nt=1e3,lt=async(ut=0)=>{const dt=`${window.location.origin}/server/get_user`;try{const pt=await fetch(dt);if(!pt.ok)throw new Error(`Network response was not ok: ${pt.status}`);const ht=await pt.json(),{username:mt,error:xt}=ht;xt?logger$1.error(`"${mt}" Failed to fetchUserId at this url: ${dt}. error=${xt}`):tt(ht.username)}catch{ut<rt?setTimeout(()=>lt(ut+1),nt):tt("FailedToFetch")}};return reactExports.useEffect(()=>{lt()},[]),reactExports.useEffect(()=>{getCurrentScope().setUser({username:et})},[et]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})};var ConsoleApiName={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},globalConsole=console,originalConsoleMethods={};Object.keys(ConsoleApiName).forEach(function(et){originalConsoleMethods[et]=globalConsole[et]});var PREFIX="Datadog Browser SDK:",display={debug:originalConsoleMethods.debug.bind(globalConsole,PREFIX),log:originalConsoleMethods.log.bind(globalConsole,PREFIX),info:originalConsoleMethods.info.bind(globalConsole,PREFIX),warn:originalConsoleMethods.warn.bind(globalConsole,PREFIX),error:originalConsoleMethods.error.bind(globalConsole,PREFIX)},DOCS_ORIGIN="https://docs.datadoghq.com",DOCS_TROUBLESHOOTING="".concat(DOCS_ORIGIN,"/real_user_monitoring/browser/troubleshooting"),MORE_DETAILS="More details:";function catchUserErrors(et,tt){return function(){for(var rt=[],nt=0;nt<arguments.length;nt++)rt[nt]=arguments[nt];try{return et.apply(void 0,rt)}catch(lt){display.error(tt,lt)}}}function performDraw(et){return et!==0&&Math.random()*100<=et}function round(et,tt){return+et.toFixed(tt)}function isPercentage(et){return isNumber$1(et)&&et>=0&&et<=100}function isNumber$1(et){return typeof et=="number"}var ONE_SECOND=1e3,ONE_MINUTE=60*ONE_SECOND,ONE_HOUR=60*ONE_MINUTE,ONE_DAY=24*ONE_HOUR,ONE_YEAR=365*ONE_DAY;function relativeToClocks(et){return{relative:et,timeStamp:getCorrectedTimeStamp(et)}}function timeStampToClocks(et){return{relative:getRelativeTime(et),timeStamp:et}}function getCorrectedTimeStamp(et){var tt=dateNow()-performance.now();return tt>getNavigationStart()?Math.round(addDuration(tt,et)):getTimeStamp(et)}function currentDrift(){return Math.round(dateNow()-addDuration(getNavigationStart(),performance.now()))}function toServerDuration(et){return isNumber$1(et)?round(et*1e6,0):et}function dateNow(){return new Date().getTime()}function timeStampNow(){return dateNow()}function relativeNow(){return performance.now()}function clocksNow(){return{relative:relativeNow(),timeStamp:timeStampNow()}}function clocksOrigin(){return{relative:0,timeStamp:getNavigationStart()}}function elapsed(et,tt){return tt-et}function addDuration(et,tt){return et+tt}function getRelativeTime(et){return et-getNavigationStart()}function getTimeStamp(et){return Math.round(addDuration(getNavigationStart(),et))}function looksLikeRelativeTime(et){return et<ONE_YEAR}var navigationStart;function getNavigationStart(){return navigationStart===void 0&&(navigationStart=performance.timing.navigationStart),navigationStart}var ONE_KIBI_BYTE=1024,ONE_MEBI_BYTE=1024*ONE_KIBI_BYTE,HAS_MULTI_BYTES_CHARACTERS=/[^\u0000-\u007F]/;function computeBytesCount(et){return HAS_MULTI_BYTES_CHARACTERS.test(et)?window.TextEncoder!==void 0?new TextEncoder().encode(et).length:new Blob([et]).size:et.length}function concatBuffers(et){for(var tt=et.reduce(function(pt,ht){return pt+ht.length},0),rt=new Uint8Array(tt),nt=0,lt=0,ut=et;lt<ut.length;lt++){var dt=ut[lt];rt.set(dt,nt),nt+=dt.length}return rt}function includes(et,tt){return et.indexOf(tt)!==-1}function arrayFrom(et){if(Array.from)return Array.from(et);var tt=[];if(et instanceof Set)et.forEach(function(nt){return tt.push(nt)});else for(var rt=0;rt<et.length;rt++)tt.push(et[rt]);return tt}function find(et,tt){for(var rt=0;rt<et.length;rt+=1){var nt=et[rt];if(tt(nt,rt))return nt}}function findLast(et,tt){for(var rt=et.length-1;rt>=0;rt-=1){var nt=et[rt];if(tt(nt,rt,et))return nt}}function forEach(et,tt){Array.prototype.forEach.call(et,tt)}function objectValues(et){return Object.keys(et).map(function(tt){return et[tt]})}function objectEntries(et){return Object.keys(et).map(function(tt){return[tt,et[tt]]})}function startsWith(et,tt){return et.slice(0,tt.length)===tt}function endsWith(et,tt){return et.slice(-tt.length)===tt}function assign(et){for(var tt=[],rt=1;rt<arguments.length;rt++)tt[rt-1]=arguments[rt];return tt.forEach(function(nt){for(var lt in nt)Object.prototype.hasOwnProperty.call(nt,lt)&&(et[lt]=nt[lt])}),et}function shallowClone(et){return assign({},et)}function objectHasValue(et,tt){return Object.keys(et).some(function(rt){return et[rt]===tt})}function isEmptyObject(et){return Object.keys(et).length===0}function mapValues(et,tt){for(var rt={},nt=0,lt=Object.keys(et);nt<lt.length;nt++){var ut=lt[nt];rt[ut]=tt(et[ut])}return rt}function getGlobalObject(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var et=_dd_temp_;return delete Object.prototype._dd_temp_,typeof et!="object"&&(typeof self=="object"?et=self:typeof window=="object"?et=window:et={}),et}function getZoneJsOriginalValue(et,tt){var rt=getGlobalObject(),nt;return rt.Zone&&typeof rt.Zone.__symbol__=="function"&&(nt=et[rt.Zone.__symbol__(tt)]),nt||(nt=et[tt]),nt}var __spreadArray=function(et,tt,rt){if(rt||arguments.length===2)for(var nt=0,lt=tt.length,ut;nt<lt;nt++)(ut||!(nt in tt))&&(ut||(ut=Array.prototype.slice.call(tt,0,nt)),ut[nt]=tt[nt]);return et.concat(ut||Array.prototype.slice.call(tt))},onMonitorErrorCollected,debugMode=!1;function startMonitorErrorCollection(et){onMonitorErrorCollected=et}function setDebugMode(et){debugMode=et}function monitor(et){return function(){return callMonitored(et,this,arguments)}}function callMonitored(et,tt,rt){try{return et.apply(tt,rt)}catch(nt){if(displayIfDebugEnabled(nt),onMonitorErrorCollected)try{onMonitorErrorCollected(nt)}catch(lt){displayIfDebugEnabled(lt)}}}function displayIfDebugEnabled(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];debugMode&&display.error.apply(display,__spreadArray(["[MONITOR]"],et,!1))}function setTimeout$1(et,tt){return getZoneJsOriginalValue(getGlobalObject(),"setTimeout")(monitor(et),tt)}function clearTimeout$1(et){getZoneJsOriginalValue(getGlobalObject(),"clearTimeout")(et)}function setInterval$1(et,tt){return getZoneJsOriginalValue(getGlobalObject(),"setInterval")(monitor(et),tt)}function clearInterval$1(et){getZoneJsOriginalValue(getGlobalObject(),"clearInterval")(et)}var Observable=function(){function et(tt){this.onFirstSubscribe=tt,this.observers=[]}return et.prototype.subscribe=function(tt){var rt=this;return this.observers.push(tt),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){rt.observers=rt.observers.filter(function(nt){return tt!==nt}),!rt.observers.length&&rt.onLastUnsubscribe&&rt.onLastUnsubscribe()}}},et.prototype.notify=function(tt){this.observers.forEach(function(rt){return rt(tt)})},et}();function mergeObservables(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return new Observable(function(rt){var nt=et.map(function(lt){return lt.subscribe(function(ut){return rt.notify(ut)})});return function(){return nt.forEach(function(lt){return lt.unsubscribe()})}})}function throttle(et,tt,rt){var nt=rt&&rt.leading!==void 0?rt.leading:!0,lt=rt&&rt.trailing!==void 0?rt.trailing:!0,ut=!1,dt,pt;return{throttled:function(){for(var ht=[],mt=0;mt<arguments.length;mt++)ht[mt]=arguments[mt];if(ut){dt=ht;return}nt?et.apply(void 0,ht):dt=ht,ut=!0,pt=setTimeout$1(function(){lt&&dt&&et.apply(void 0,dt),ut=!1,dt=void 0},tt)},cancel:function(){clearTimeout$1(pt),ut=!1,dt=void 0}}}function noop(){}function generateUUID(et){return et?(parseInt(et,10)^Math.random()*16>>parseInt(et,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,generateUUID)}var COMMA_SEPARATED_KEY_VALUE=/([\w-]+)\s*=\s*([^;]+)/g;function findCommaSeparatedValue(et,tt){for(COMMA_SEPARATED_KEY_VALUE.lastIndex=0;;){var rt=COMMA_SEPARATED_KEY_VALUE.exec(et);if(rt){if(rt[1]===tt)return rt[2]}else break}}function findCommaSeparatedValues(et){var tt=new Map;for(COMMA_SEPARATED_KEY_VALUE.lastIndex=0;;){var rt=COMMA_SEPARATED_KEY_VALUE.exec(et);if(rt)tt.set(rt[1],rt[2]);else break}return tt}function safeTruncate(et,tt,rt){rt===void 0&&(rt="");var nt=et.charCodeAt(tt-1),lt=nt>=55296&&nt<=56319,ut=lt?tt+1:tt;return et.length<=ut?et:"".concat(et.slice(0,ut)).concat(rt)}function isIE(){return detectBrowserCached()===0}function isChromium(){return detectBrowserCached()===1}function isSafari(){return detectBrowserCached()===2}var browserCache;function detectBrowserCached(){return browserCache??(browserCache=detectBrowser())}function detectBrowser(et){var tt;et===void 0&&(et=window);var rt=et.navigator.userAgent;return et.chrome||/HeadlessChrome/.test(rt)?1:((tt=et.navigator.vendor)===null||tt===void 0?void 0:tt.indexOf("Apple"))===0||/safari/i.test(rt)&&!/chrome|android/i.test(rt)?2:et.document.documentMode?0:3}function setCookie(et,tt,rt,nt){var lt=new Date;lt.setTime(lt.getTime()+rt);var ut="expires=".concat(lt.toUTCString()),dt=nt&&nt.crossSite?"none":"strict",pt=nt&&nt.domain?";domain=".concat(nt.domain):"",ht=nt&&nt.secure?";secure":"",mt=nt&&nt.partitioned?";partitioned":"";document.cookie="".concat(et,"=").concat(tt,";").concat(ut,";path=/;samesite=").concat(dt).concat(pt).concat(ht).concat(mt)}function getCookie(et){return findCommaSeparatedValue(document.cookie,et)}var initCookieParsed;function getInitCookie(et){return initCookieParsed||(initCookieParsed=findCommaSeparatedValues(document.cookie)),initCookieParsed.get(et)}function deleteCookie(et,tt){setCookie(et,"",0,tt)}function areCookiesAuthorized(et){if(document.cookie===void 0||document.cookie===null)return!1;try{var tt="dd_cookie_test_".concat(generateUUID()),rt="test";setCookie(tt,rt,ONE_MINUTE,et);var nt=getCookie(tt)===rt;return deleteCookie(tt,et),nt}catch(lt){return display.error(lt),!1}}var getCurrentSiteCache;function getCurrentSite(){if(getCurrentSiteCache===void 0){for(var et="dd_site_test_".concat(generateUUID()),tt="test",rt=window.location.hostname.split("."),nt=rt.pop();rt.length&&!getCookie(et);)nt="".concat(rt.pop(),".").concat(nt),setCookie(et,tt,ONE_SECOND,{domain:nt});deleteCookie(et,{domain:nt}),getCurrentSiteCache=nt}return getCurrentSiteCache}var SESSION_STORE_KEY="_dd_s",SESSION_TIME_OUT_DELAY=4*ONE_HOUR,SESSION_EXPIRATION_DELAY=15*ONE_MINUTE,SESSION_ENTRY_REGEXP=/^([a-zA-Z]+)=([a-z0-9-]+)$/,SESSION_ENTRY_SEPARATOR="&",EXPIRED="1";function getExpiredSessionState(){return{isExpired:EXPIRED}}function isSessionInNotStartedState(et){return isEmptyObject(et)}function isSessionStarted(et){return!isSessionInNotStartedState(et)}function isSessionInExpiredState(et){return et.isExpired!==void 0||!isActiveSession(et)}function isActiveSession(et){return(et.created===void 0||dateNow()-Number(et.created)<SESSION_TIME_OUT_DELAY)&&(et.expire===void 0||dateNow()<Number(et.expire))}function expandSessionState(et){et.expire=String(dateNow()+SESSION_EXPIRATION_DELAY)}function toSessionString(et){return objectEntries(et).map(function(tt){var rt=tt[0],nt=tt[1];return"".concat(rt,"=").concat(nt)}).join(SESSION_ENTRY_SEPARATOR)}function toSessionState(et){var tt={};return isValidSessionString(et)&&et.split(SESSION_ENTRY_SEPARATOR).forEach(function(rt){var nt=SESSION_ENTRY_REGEXP.exec(rt);if(nt!==null){var lt=nt[1],ut=nt[2];tt[lt]=ut}}),tt}function isValidSessionString(et){return!!et&&(et.indexOf(SESSION_ENTRY_SEPARATOR)!==-1||SESSION_ENTRY_REGEXP.test(et))}var OLD_SESSION_COOKIE_NAME="_dd",OLD_RUM_COOKIE_NAME="_dd_r",OLD_LOGS_COOKIE_NAME="_dd_l",RUM_SESSION_KEY$1="rum",LOGS_SESSION_KEY="logs";function tryOldCookiesMigration(et){var tt=getInitCookie(SESSION_STORE_KEY);if(!tt){var rt=getInitCookie(OLD_SESSION_COOKIE_NAME),nt=getInitCookie(OLD_RUM_COOKIE_NAME),lt=getInitCookie(OLD_LOGS_COOKIE_NAME),ut={};rt&&(ut.id=rt),lt&&/^[01]$/.test(lt)&&(ut[LOGS_SESSION_KEY]=lt),nt&&/^[012]$/.test(nt)&&(ut[RUM_SESSION_KEY$1]=nt),isSessionStarted(ut)&&(expandSessionState(ut),et.persistSession(ut))}}function selectCookieStrategy(et){var tt=buildCookieOptions(et);return areCookiesAuthorized(tt)?{type:"Cookie",cookieOptions:tt}:void 0}function initCookieStrategy(et){var tt={isLockEnabled:isChromium(),persistSession:persistSessionCookie(et),retrieveSession:retrieveSessionCookie,expireSession:function(){return expireSessionCookie(et)}};return tryOldCookiesMigration(tt),tt}function persistSessionCookie(et){return function(tt){setCookie(SESSION_STORE_KEY,toSessionString(tt),SESSION_EXPIRATION_DELAY,et)}}function expireSessionCookie(et){setCookie(SESSION_STORE_KEY,toSessionString(getExpiredSessionState()),SESSION_TIME_OUT_DELAY,et)}function retrieveSessionCookie(){var et=getCookie(SESSION_STORE_KEY);return toSessionState(et)}function buildCookieOptions(et){var tt={};return tt.secure=!!et.useSecureSessionCookie||!!et.usePartitionedCrossSiteSessionCookie||!!et.useCrossSiteSessionCookie,tt.crossSite=!!et.usePartitionedCrossSiteSessionCookie||!!et.useCrossSiteSessionCookie,tt.partitioned=!!et.usePartitionedCrossSiteSessionCookie,et.trackSessionAcrossSubdomains&&(tt.domain=getCurrentSite()),tt}var LOCAL_STORAGE_TEST_KEY="_dd_test_";function selectLocalStorageStrategy(){try{var et=generateUUID(),tt="".concat(LOCAL_STORAGE_TEST_KEY).concat(et);localStorage.setItem(tt,et);var rt=localStorage.getItem(tt);return localStorage.removeItem(tt),et===rt?{type:"LocalStorage"}:void 0}catch{return}}function initLocalStorageStrategy(){return{isLockEnabled:!1,persistSession:persistInLocalStorage,retrieveSession:retrieveSessionFromLocalStorage,expireSession:expireSessionFromLocalStorage}}function persistInLocalStorage(et){localStorage.setItem(SESSION_STORE_KEY,toSessionString(et))}function retrieveSessionFromLocalStorage(){var et=localStorage.getItem(SESSION_STORE_KEY);return toSessionState(et)}function expireSessionFromLocalStorage(){persistInLocalStorage(getExpiredSessionState())}var LOCK_RETRY_DELAY=10,LOCK_MAX_TRIES=100,bufferedOperations=[],ongoingOperations;function processSessionStoreOperations(et,tt,rt){var nt;rt===void 0&&(rt=0);var lt=tt.isLockEnabled,ut=tt.persistSession,dt=tt.expireSession,pt=function(vt){return ut(assign({},vt,{lock:mt}))},ht=function(){var vt=tt.retrieveSession(),Ot=vt.lock;return vt.lock&&delete vt.lock,{session:vt,lock:Ot}};if(ongoingOperations||(ongoingOperations=et),et!==ongoingOperations){bufferedOperations.push(et);return}if(lt&&rt>=LOCK_MAX_TRIES){next(tt);return}var mt,xt=ht();if(lt){if(xt.lock){retryLater(et,tt,rt);return}if(mt=generateUUID(),pt(xt.session),xt=ht(),xt.lock!==mt){retryLater(et,tt,rt);return}}var Mt=et.process(xt.session);if(lt&&(xt=ht(),xt.lock!==mt)){retryLater(et,tt,rt);return}if(Mt&&(isSessionInExpiredState(Mt)?dt():(expandSessionState(Mt),lt?pt(Mt):ut(Mt))),lt&&!(Mt&&isSessionInExpiredState(Mt))){if(xt=ht(),xt.lock!==mt){retryLater(et,tt,rt);return}ut(xt.session),Mt=xt.session}(nt=et.after)===null||nt===void 0||nt.call(et,Mt||xt.session),next(tt)}function retryLater(et,tt,rt){setTimeout$1(function(){processSessionStoreOperations(et,tt,rt+1)},LOCK_RETRY_DELAY)}function next(et){ongoingOperations=void 0;var tt=bufferedOperations.shift();tt&&processSessionStoreOperations(tt,et)}var STORAGE_POLL_DELAY=ONE_SECOND;function selectSessionStoreStrategyType(et){var tt=selectCookieStrategy(et);return!tt&&et.allowFallbackToLocalStorage&&(tt=selectLocalStorageStrategy()),tt}function startSessionStore(et,tt,rt){var nt=new Observable,lt=new Observable,ut=new Observable,dt=et.type==="Cookie"?initCookieStrategy(et.cookieOptions):initLocalStorageStrategy(),pt=dt.expireSession,ht=setInterval$1(At,STORAGE_POLL_DELAY),mt;zt();var xt=throttle(function(){processSessionStoreOperations({process:function(Nt){if(!isSessionInNotStartedState(Nt)){var Yt=Rt(Nt);return Tt(Yt),Yt}},after:function(Nt){isSessionStarted(Nt)&&!Ct()&&kt(Nt),mt=Nt}},dt)},STORAGE_POLL_DELAY),Mt=xt.throttled,vt=xt.cancel;function Ot(){processSessionStoreOperations({process:function(Nt){return Ct()?Rt(Nt):void 0}},dt)}function At(){processSessionStoreOperations({process:function(Nt){return isSessionInExpiredState(Nt)?getExpiredSessionState():void 0},after:Rt},dt)}function Rt(Nt){return isSessionInExpiredState(Nt)&&(Nt=getExpiredSessionState()),Ct()&&(It(Nt)?Dt():(ut.notify({previousState:mt,newState:Nt}),mt=Nt)),Nt}function zt(){processSessionStoreOperations({process:function(Nt){if(isSessionInNotStartedState(Nt))return getExpiredSessionState()},after:function(Nt){mt=Nt}},dt)}function Tt(Nt){if(isSessionInNotStartedState(Nt))return!1;var Yt=rt(Nt[tt]),Kt=Yt.trackingType,Jt=Yt.isTracked;Nt[tt]=Kt,delete Nt.isExpired,Jt&&!Nt.id&&(Nt.id=generateUUID(),Nt.created=String(dateNow()))}function Ct(){return mt[tt]!==void 0}function It(Nt){return mt.id!==Nt.id||mt[tt]!==Nt[tt]}function Dt(){mt=getExpiredSessionState(),lt.notify()}function kt(Nt){mt=Nt,nt.notify()}function qt(Nt){processSessionStoreOperations({process:function(Yt){return assign({},Yt,Nt)},after:Rt},dt)}return{expandOrRenewSession:Mt,expandSession:Ot,getSession:function(){return mt},renewObservable:nt,expireObservable:lt,sessionStateUpdateObservable:ut,restartSession:zt,expire:function(){vt(),pt(),Rt(getExpiredSessionState())},stop:function(){clearInterval$1(ht)},updateSessionState:qt}}var TrackingConsent={GRANTED:"granted",NOT_GRANTED:"not-granted"};function createTrackingConsentState(et){var tt=new Observable;return{tryToInit:function(rt){et||(et=rt)},update:function(rt){et=rt,tt.notify()},isGranted:function(){return et===TrackingConsent.GRANTED},observable:tt}}function jsonStringify(et,tt,rt){if(typeof et!="object"||et===null)return JSON.stringify(et);var nt=detachToJsonMethod(Object.prototype),lt=detachToJsonMethod(Array.prototype),ut=detachToJsonMethod(Object.getPrototypeOf(et)),dt=detachToJsonMethod(et);try{return JSON.stringify(et,tt,rt)}catch{return"<error: unable to serialize object>"}finally{nt(),lt(),ut(),dt()}}function detachToJsonMethod(et){var tt=et,rt=tt.toJSON;return rt?(delete tt.toJSON,function(){tt.toJSON=rt}):noop}function normalizeUrl(et){return buildUrl(et,location.href).href}function isValidUrl(et){try{return!!buildUrl(et)}catch{return!1}}function getPathName(et){var tt=buildUrl(et).pathname;return tt[0]==="/"?tt:"/".concat(tt)}function buildUrl(et,tt){var rt=getSupportedUrl();if(rt)try{return tt!==void 0?new rt(et,tt):new rt(et)}catch(dt){throw new Error("Failed to construct URL: ".concat(String(dt)," ").concat(jsonStringify({url:et,base:tt})))}if(tt===void 0&&!/:/.test(et))throw new Error("Invalid URL: '".concat(et,"'"));var nt=document,lt=nt.createElement("a");if(tt!==void 0){nt=document.implementation.createHTMLDocument("");var ut=nt.createElement("base");ut.href=tt,nt.head.appendChild(ut),nt.body.appendChild(lt)}return lt.href=et,lt}var originalURL=URL,isURLSupported;function getSupportedUrl(){if(isURLSupported===void 0)try{var et=new originalURL("http://test/path");isURLSupported=et.href==="http://test/path"}catch{isURLSupported=!1}return isURLSupported?originalURL:void 0}var INTAKE_SITE_STAGING="datad0g.com",INTAKE_SITE_FED_STAGING="dd0g-gov.com",INTAKE_SITE_US1="datadoghq.com",INTAKE_SITE_EU1="datadoghq.eu",INTAKE_SITE_US1_FED="ddog-gov.com",PCI_INTAKE_HOST_US1="pci.browser-intake-datadoghq.com";function createEndpointBuilder(et,tt,rt){var nt=createEndpointUrlWithParametersBuilder(et,tt);return{build:function(lt,ut){var dt=buildEndpointParameters(et,tt,rt,lt,ut);return nt(dt)},urlPrefix:nt(""),trackType:tt}}function createEndpointUrlWithParametersBuilder(et,tt){var rt="/api/v2/".concat(tt),nt=et.proxy;if(typeof nt=="string"){var lt=normalizeUrl(nt);return function(dt){return"".concat(lt,"?ddforward=").concat(encodeURIComponent("".concat(rt,"?").concat(dt)))}}if(typeof nt=="function")return function(dt){return nt({path:rt,parameters:dt})};var ut=buildEndpointHost(tt,et);return function(dt){return"https://".concat(ut).concat(rt,"?").concat(dt)}}function buildEndpointHost(et,tt){var rt=tt.site,nt=rt===void 0?INTAKE_SITE_US1:rt,lt=tt.internalAnalyticsSubdomain;if(et==="logs"&&tt.usePciIntake&&nt===INTAKE_SITE_US1)return PCI_INTAKE_HOST_US1;if(lt&&nt===INTAKE_SITE_US1)return"".concat(lt,".").concat(INTAKE_SITE_US1);if(nt===INTAKE_SITE_FED_STAGING)return"http-intake.logs.".concat(nt);var ut=nt.split("."),dt=ut.pop();return"browser-intake-".concat(ut.join("-"),".").concat(dt)}function buildEndpointParameters(et,tt,rt,nt,lt){var ut=et.clientToken,dt=et.internalAnalyticsSubdomain,pt=lt.retry,ht=lt.encoding,mt=["sdk_version:".concat("5.26.0"),"api:".concat(nt)].concat(rt);pt&&mt.push("retry_count:".concat(pt.count),"retry_after:".concat(pt.lastFailureStatus));var xt=["ddsource=browser","ddtags=".concat(encodeURIComponent(mt.join(","))),"dd-api-key=".concat(ut),"dd-evp-origin-version=".concat(encodeURIComponent("5.26.0")),"dd-evp-origin=browser","dd-request-id=".concat(generateUUID())];return ht&&xt.push("dd-evp-encoding=".concat(ht)),tt==="rum"&&xt.push("batch_time=".concat(timeStampNow())),dt&&xt.reverse(),xt.join("&")}var TAG_SIZE_LIMIT=200;function buildTags(et){var tt=et.env,rt=et.service,nt=et.version,lt=et.datacenter,ut=[];return tt&&ut.push(buildTag("env",tt)),rt&&ut.push(buildTag("service",rt)),nt&&ut.push(buildTag("version",nt)),lt&&ut.push(buildTag("datacenter",lt)),ut}function buildTag(et,tt){var rt=TAG_SIZE_LIMIT-et.length-1;(tt.length>rt||hasForbiddenCharacters(tt))&&display.warn("".concat(et," value doesn't meet tag requirements and will be sanitized. ").concat(MORE_DETAILS," ").concat(DOCS_ORIGIN,"/getting_started/tagging/#defining-tags"));var nt=tt.replace(/,/g,"_");return"".concat(et,":").concat(nt)}function hasForbiddenCharacters(et){return supportUnicodePropertyEscapes()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(et):!1}function supportUnicodePropertyEscapes(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function computeTransportConfiguration(et){var tt=et.site||INTAKE_SITE_US1,rt=buildTags(et),nt=computeEndpointBuilders(et,rt),lt=computeIntakeUrlPrefixes(nt,tt),ut=computeReplicaConfiguration(et,lt,rt);return assign({isIntakeUrl:function(dt){return lt.some(function(pt){return dt.indexOf(pt)===0})},replica:ut,site:tt},nt)}function computeEndpointBuilders(et,tt){return{logsEndpointBuilder:createEndpointBuilder(et,"logs",tt),rumEndpointBuilder:createEndpointBuilder(et,"rum",tt),sessionReplayEndpointBuilder:createEndpointBuilder(et,"replay",tt)}}function computeReplicaConfiguration(et,tt,rt){if(et.replica){var nt=assign({},et,{site:INTAKE_SITE_US1,clientToken:et.replica.clientToken}),lt={logsEndpointBuilder:createEndpointBuilder(nt,"logs",rt),rumEndpointBuilder:createEndpointBuilder(nt,"rum",rt)};return tt.push.apply(tt,objectValues(lt).map(function(ut){return ut.urlPrefix})),assign({applicationId:et.replica.applicationId},lt)}}function computeIntakeUrlPrefixes(et,tt){var rt=objectValues(et).map(function(nt){return nt.urlPrefix});return tt===INTAKE_SITE_US1&&rt.push("https://".concat(PCI_INTAKE_HOST_US1,"/")),rt}var DefaultPrivacyLevel={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},TraceContextInjection={ALL:"all",SAMPLED:"sampled"};function isString$1(et,tt){return et!=null&&typeof et!="string"?(display.error("".concat(tt," must be defined as a string")),!1):!0}function isDatadogSite(et){return et&&typeof et=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(et)?(display.error("Site should be a valid Datadog site. ".concat(MORE_DETAILS," ").concat(DOCS_ORIGIN,"/getting_started/site/.")),!1):!0}function isSampleRate(et,tt){return et!==void 0&&!isPercentage(et)?(display.error("".concat(tt," Sample Rate should be a number between 0 and 100")),!1):!0}function validateAndBuildConfiguration(et){var tt,rt,nt,lt,ut;if(!et||!et.clientToken){display.error("Client Token is not configured, we will not send any data.");return}if(!(!isDatadogSite(et.site)||!isSampleRate(et.sessionSampleRate,"Session")||!isSampleRate(et.telemetrySampleRate,"Telemetry")||!isSampleRate(et.telemetryConfigurationSampleRate,"Telemetry Configuration")||!isSampleRate(et.telemetryUsageSampleRate,"Telemetry Usage")||!isString$1(et.version,"Version")||!isString$1(et.env,"Env")||!isString$1(et.service,"Service"))){if(et.trackingConsent!==void 0&&!objectHasValue(TrackingConsent,et.trackingConsent)){display.error('Tracking Consent should be either "granted" or "not-granted"');return}return assign({beforeSend:et.beforeSend&&catchUserErrors(et.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:selectSessionStoreStrategyType(et),sessionSampleRate:(tt=et.sessionSampleRate)!==null&&tt!==void 0?tt:100,telemetrySampleRate:(rt=et.telemetrySampleRate)!==null&&rt!==void 0?rt:20,telemetryConfigurationSampleRate:(nt=et.telemetryConfigurationSampleRate)!==null&&nt!==void 0?nt:5,telemetryUsageSampleRate:(lt=et.telemetryUsageSampleRate)!==null&&lt!==void 0?lt:5,service:et.service||void 0,silentMultipleInit:!!et.silentMultipleInit,allowUntrustedEvents:!!et.allowUntrustedEvents,trackingConsent:(ut=et.trackingConsent)!==null&&ut!==void 0?ut:TrackingConsent.GRANTED,storeContextsAcrossPages:!!et.storeContextsAcrossPages,batchBytesLimit:16*ONE_KIBI_BYTE,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*ONE_SECOND,batchMessagesLimit:50,messageBytesLimit:256*ONE_KIBI_BYTE},computeTransportConfiguration(et))}}function serializeConfiguration(et){return{session_sample_rate:et.sessionSampleRate,telemetry_sample_rate:et.telemetrySampleRate,telemetry_configuration_sample_rate:et.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:et.telemetryUsageSampleRate,use_before_send:!!et.beforeSend,use_cross_site_session_cookie:et.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:et.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:et.useSecureSessionCookie,use_proxy:!!et.proxy,silent_multiple_init:et.silentMultipleInit,track_session_across_subdomains:et.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!et.allowFallbackToLocalStorage,store_contexts_across_pages:!!et.storeContextsAcrossPages,allow_untrusted_events:!!et.allowUntrustedEvents,tracking_consent:et.trackingConsent}}var ExperimentalFeature;(function(et){et.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",et.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings",et.REMOTE_CONFIGURATION="remote_configuration",et.UPDATE_VIEW_NAME="update_view_name",et.NULL_INP_TELEMETRY="null_inp_telemetry",et.LONG_ANIMATION_FRAME="long_animation_frame",et.VIEW_SPECIFIC_CONTEXT="view_specific_context"})(ExperimentalFeature||(ExperimentalFeature={}));var enabledExperimentalFeatures=new Set;function initFeatureFlags(et){Array.isArray(et)&&addExperimentalFeatures(et.filter(function(tt){return objectHasValue(ExperimentalFeature,tt)}))}function addExperimentalFeatures(et){et.forEach(function(tt){enabledExperimentalFeatures.add(tt)})}function isExperimentalFeatureEnabled(et){return enabledExperimentalFeatures.has(et)}function getExperimentalFeatures(){return enabledExperimentalFeatures}var UNKNOWN_FUNCTION="?";function computeStackTrace(et){var tt=[],rt=tryToGetString(et,"stack"),nt=String(et);return rt&&startsWith(rt,nt)&&(rt=rt.slice(nt.length)),rt&&rt.split(`
`).forEach(function(lt){var ut=parseChromeLine(lt)||parseChromeAnonymousLine(lt)||parseWinLine(lt)||parseGeckoLine(lt);ut&&(!ut.func&&ut.line&&(ut.func=UNKNOWN_FUNCTION),tt.push(ut))}),{message:tryToGetString(et,"message"),name:tryToGetString(et,"name"),stack:tt}}var fileUrl="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",filePosition="(?::(\\d+))",CHROME_LINE_RE=new RegExp("^\\s*at (.*?) ?\\(".concat(fileUrl).concat(filePosition,"?").concat(filePosition,"?\\)?\\s*$"),"i"),CHROME_EVAL_RE=new RegExp("\\((\\S*)".concat(filePosition).concat(filePosition,"\\)"));function parseChromeLine(et){var tt=CHROME_LINE_RE.exec(et);if(tt){var rt=tt[2]&&tt[2].indexOf("native")===0,nt=tt[2]&&tt[2].indexOf("eval")===0,lt=CHROME_EVAL_RE.exec(tt[2]);return nt&&lt&&(tt[2]=lt[1],tt[3]=lt[2],tt[4]=lt[3]),{args:rt?[tt[2]]:[],column:tt[4]?+tt[4]:void 0,func:tt[1]||UNKNOWN_FUNCTION,line:tt[3]?+tt[3]:void 0,url:rt?void 0:tt[2]}}}var CHROME_ANONYMOUS_FUNCTION_RE=new RegExp("^\\s*at ?".concat(fileUrl).concat(filePosition,"?").concat(filePosition,"??\\s*$"),"i");function parseChromeAnonymousLine(et){var tt=CHROME_ANONYMOUS_FUNCTION_RE.exec(et);if(tt)return{args:[],column:tt[3]?+tt[3]:void 0,func:UNKNOWN_FUNCTION,line:tt[2]?+tt[2]:void 0,url:tt[1]}}var WINJS_LINE_RE=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function parseWinLine(et){var tt=WINJS_LINE_RE.exec(et);if(tt)return{args:[],column:tt[4]?+tt[4]:void 0,func:tt[1]||UNKNOWN_FUNCTION,line:+tt[3],url:tt[2]}}var GECKO_LINE_RE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,GECKO_EVAL_RE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function parseGeckoLine(et){var tt=GECKO_LINE_RE.exec(et);if(tt){var rt=tt[3]&&tt[3].indexOf(" > eval")>-1,nt=GECKO_EVAL_RE.exec(tt[3]);return rt&&nt&&(tt[3]=nt[1],tt[4]=nt[2],tt[5]=void 0),{args:tt[2]?tt[2].split(","):[],column:tt[5]?+tt[5]:void 0,func:tt[1]||UNKNOWN_FUNCTION,line:tt[4]?+tt[4]:void 0,url:tt[3]}}}function tryToGetString(et,tt){if(!(typeof et!="object"||!et||!(tt in et))){var rt=et[tt];return typeof rt=="string"?rt:void 0}}function computeStackTraceFromOnErrorMessage(et,tt,rt,nt){var lt=[{url:tt,column:nt,line:rt}],ut=tryToParseMessage(et),dt=ut.name,pt=ut.message;return{name:dt,message:pt,stack:lt}}var ERROR_TYPES_RE=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function tryToParseMessage(et){var tt,rt,nt;return{}.toString.call(et)==="[object String]"&&(tt=ERROR_TYPES_RE.exec(et),rt=tt[1],nt=tt[2]),{name:rt,message:nt}}function createHandlingStack(){var et=2,tt=new Error,rt;if(!tt.stack)try{throw tt}catch{}return callMonitored(function(){var nt=computeStackTrace(tt);nt.stack=nt.stack.slice(et),rt=toStackTraceString(nt)}),rt}function toStackTraceString(et){var tt=formatErrorMessage(et);return et.stack.forEach(function(rt){var nt=rt.func==="?"?"<anonymous>":rt.func,lt=rt.args&&rt.args.length>0?"(".concat(rt.args.join(", "),")"):"",ut=rt.line?":".concat(rt.line):"",dt=rt.line&&rt.column?":".concat(rt.column):"";tt+=`
  at `.concat(nt).concat(lt," @ ").concat(rt.url).concat(ut).concat(dt)}),tt}function formatErrorMessage(et){return"".concat(et.name||"Error",": ").concat(et.message)}function instrumentMethod(et,tt,rt,nt){var lt=nt===void 0?{}:nt,ut=lt.computeHandlingStack,dt=et[tt];if(typeof dt!="function")if(tt in et&&startsWith(tt,"on"))dt=noop;else return{stop:noop};var pt=!1,ht=function(){if(pt)return dt.apply(this,arguments);var mt=arrayFrom(arguments),xt;callMonitored(rt,null,[{target:this,parameters:mt,onPostCall:function(vt){xt=vt},handlingStack:ut?createHandlingStack():void 0}]);var Mt=dt.apply(this,mt);return xt&&callMonitored(xt,null,[Mt]),Mt};return et[tt]=ht,{stop:function(){pt=!0,et[tt]===ht&&(et[tt]=dt)}}}function instrumentSetter(et,tt,rt){var nt=Object.getOwnPropertyDescriptor(et,tt);if(!nt||!nt.set||!nt.configurable)return{stop:noop};var lt=noop,ut=function(pt,ht){setTimeout$1(function(){ut!==lt&&rt(pt,ht)},0)},dt=function(pt){nt.set.call(this,pt),ut(this,pt)};return Object.defineProperty(et,tt,{set:dt}),{stop:function(){var pt;((pt=Object.getOwnPropertyDescriptor(et,tt))===null||pt===void 0?void 0:pt.set)===dt&&Object.defineProperty(et,tt,nt),ut=lt}}}var SANITIZE_DEFAULT_MAX_CHARACTER_COUNT=220*ONE_KIBI_BYTE,JSON_PATH_ROOT_ELEMENT="$",KEY_DECORATION_LENGTH=3;function sanitize(et,tt){tt===void 0&&(tt=SANITIZE_DEFAULT_MAX_CHARACTER_COUNT);var rt=detachToJsonMethod(Object.prototype),nt=detachToJsonMethod(Array.prototype),lt=[],ut=new WeakMap,dt=sanitizeProcessor(et,JSON_PATH_ROOT_ELEMENT,void 0,lt,ut),pt=JSON.stringify(dt),ht=pt?pt.length:0;if(ht>tt){warnOverCharacterLimit(tt,"discarded",et);return}for(;lt.length>0&&ht<tt;){var mt=lt.shift(),xt=0;if(Array.isArray(mt.source))for(var Mt=0;Mt<mt.source.length;Mt++){var vt=sanitizeProcessor(mt.source[Mt],mt.path,Mt,lt,ut);if(vt!==void 0?ht+=JSON.stringify(vt).length:ht+=4,ht+=xt,xt=1,ht>tt){warnOverCharacterLimit(tt,"truncated",et);break}mt.target[Mt]=vt}else for(var Mt in mt.source)if(Object.prototype.hasOwnProperty.call(mt.source,Mt)){var vt=sanitizeProcessor(mt.source[Mt],mt.path,Mt,lt,ut);if(vt!==void 0&&(ht+=JSON.stringify(vt).length+xt+Mt.length+KEY_DECORATION_LENGTH,xt=1),ht>tt){warnOverCharacterLimit(tt,"truncated",et);break}mt.target[Mt]=vt}}return rt(),nt(),dt}function sanitizeProcessor(et,tt,rt,nt,lt){var ut=tryToApplyToJSON(et);if(!ut||typeof ut!="object")return sanitizePrimitivesAndFunctions(ut);var dt=sanitizeObjects(ut);if(dt!=="[Object]"&&dt!=="[Array]"&&dt!=="[Error]")return dt;var pt=et;if(lt.has(pt))return"[Reference seen at ".concat(lt.get(pt),"]");var ht=rt!==void 0?"".concat(tt,".").concat(rt):tt,mt=Array.isArray(ut)?[]:{};return lt.set(pt,ht),nt.push({source:ut,target:mt,path:ht}),mt}function sanitizePrimitivesAndFunctions(et){return typeof et=="bigint"?"[BigInt] ".concat(et.toString()):typeof et=="function"?"[Function] ".concat(et.name||"unknown"):typeof et=="symbol"?"[Symbol] ".concat(et.description||et.toString()):et}function sanitizeObjects(et){try{if(et instanceof Event)return{isTrusted:et.isTrusted};var tt=Object.prototype.toString.call(et),rt=tt.match(/\[object (.*)\]/);if(rt&&rt[1])return"[".concat(rt[1],"]")}catch{}return"[Unserializable]"}function tryToApplyToJSON(et){var tt=et;if(tt&&typeof tt.toJSON=="function")try{return tt.toJSON()}catch{}return et}function warnOverCharacterLimit(et,tt,rt){display.warn("The data provided has been ".concat(tt," as it is over the limit of ").concat(et," characters:"),rt)}var NO_ERROR_STACK_PRESENT_MESSAGE="No stack, consider using an instance of Error";function computeRawError(et){var tt=et.stackTrace,rt=et.originalError,nt=et.handlingStack,lt=et.startClocks,ut=et.nonErrorPrefix,dt=et.source,pt=et.handling,ht=rt instanceof Error,mt=computeMessage(tt,ht,ut,rt),xt=hasUsableStack(ht,tt)?toStackTraceString(tt):NO_ERROR_STACK_PRESENT_MESSAGE,Mt=ht?flattenErrorCauses(rt,dt):void 0,vt=tt?tt.name:void 0,Ot=tryToGetFingerprint(rt);return{startClocks:lt,source:dt,handling:pt,handlingStack:nt,originalError:rt,type:vt,message:mt,stack:xt,causes:Mt,fingerprint:Ot}}function computeMessage(et,tt,rt,nt){return et!=null&&et.message&&(et!=null&&et.name)?et.message:tt?"Empty message":"".concat(rt," ").concat(jsonStringify(sanitize(nt)))}function hasUsableStack(et,tt){return tt===void 0?!1:et?!0:tt.stack.length>0&&(tt.stack.length>1||tt.stack[0].url!==void 0)}function tryToGetFingerprint(et){return et instanceof Error&&"dd_fingerprint"in et?String(et.dd_fingerprint):void 0}function flattenErrorCauses(et,tt){for(var rt=et,nt=[];(rt==null?void 0:rt.cause)instanceof Error&&nt.length<10;){var lt=computeStackTrace(rt.cause);nt.push({message:rt.cause.message,source:tt,type:lt==null?void 0:lt.name,stack:lt&&toStackTraceString(lt)}),rt=rt.cause}return nt.length?nt:void 0}var ErrorSource={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function trackRuntimeError(et){var tt=function(lt,ut){var dt=computeRawError({stackTrace:lt,originalError:ut,startClocks:clocksNow(),nonErrorPrefix:"Uncaught",source:ErrorSource.SOURCE,handling:"unhandled"});et.notify(dt)},rt=instrumentOnError(tt).stop,nt=instrumentUnhandledRejection(tt).stop;return{stop:function(){rt(),nt()}}}function instrumentOnError(et){return instrumentMethod(window,"onerror",function(tt){var rt=tt.parameters,nt=rt[0],lt=rt[1],ut=rt[2],dt=rt[3],pt=rt[4],ht;pt instanceof Error?ht=computeStackTrace(pt):ht=computeStackTraceFromOnErrorMessage(nt,lt,ut,dt),et(ht,pt??nt)})}function instrumentUnhandledRejection(et){return instrumentMethod(window,"onunhandledrejection",function(tt){var rt=tt.parameters[0],nt=rt.reason||"Empty reason",lt=computeStackTrace(nt);et(lt,nt)})}function makePublicApi(et){var tt=assign({version:"5.26.0",onReady:function(rt){rt()}},et);return Object.defineProperty(tt,"_setDebug",{get:function(){return setDebugMode},enumerable:!1}),tt}function defineGlobal(et,tt,rt){var nt=et[tt];nt&&!nt.q&&nt.version&&display.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),et[tt]=rt,nt&&nt.q&&nt.q.forEach(function(lt){return catchUserErrors(lt,"onReady callback threw an error:")()})}function displayAlreadyInitializedError(et,tt){tt.silentMultipleInit||display.error("".concat(et," is already initialized."))}function addEventListener(et,tt,rt,nt,lt){return addEventListeners(et,tt,[rt],nt,lt)}function addEventListeners(et,tt,rt,nt,lt){var ut=lt===void 0?{}:lt,dt=ut.once,pt=ut.capture,ht=ut.passive,mt=monitor(function(Ot){!Ot.isTrusted&&!Ot.__ddIsTrusted&&!et.allowUntrustedEvents||(dt&&vt(),nt(Ot))}),xt=ht?{capture:pt,passive:ht}:pt,Mt=getZoneJsOriginalValue(tt,"addEventListener");rt.forEach(function(Ot){return Mt.call(tt,Ot,mt,xt)});function vt(){var Ot=getZoneJsOriginalValue(tt,"removeEventListener");rt.forEach(function(At){return Ot.call(tt,At,mt,xt)})}return{stop:vt}}var RawReportType={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function initReportObservable(et,tt){var rt=[];includes(tt,RawReportType.cspViolation)&&rt.push(createCspViolationReportObservable(et));var nt=tt.filter(function(lt){return lt!==RawReportType.cspViolation});return nt.length&&rt.push(createReportObservable(nt)),mergeObservables.apply(void 0,rt)}function createReportObservable(et){return new Observable(function(tt){if(window.ReportingObserver){var rt=monitor(function(lt,ut){return lt.forEach(function(dt){return tt.notify(buildRawReportErrorFromReport(dt))})}),nt=new window.ReportingObserver(rt,{types:et,buffered:!0});return nt.observe(),function(){nt.disconnect()}}})}function createCspViolationReportObservable(et){return new Observable(function(tt){var rt=addEventListener(et,document,"securitypolicyviolation",function(nt){tt.notify(buildRawReportErrorFromCspViolation(nt))}).stop;return rt})}function buildRawReportErrorFromReport(et){var tt=et.type,rt=et.body;return buildRawReportError({type:rt.id,message:"".concat(tt,": ").concat(rt.message),originalError:et,stack:buildStack(rt.id,rt.message,rt.sourceFile,rt.lineNumber,rt.columnNumber)})}function buildRawReportErrorFromCspViolation(et){var tt="'".concat(et.blockedURI,"' blocked by '").concat(et.effectiveDirective,"' directive");return buildRawReportError({type:et.effectiveDirective,message:"".concat(RawReportType.cspViolation,": ").concat(tt),originalError:et,csp:{disposition:et.disposition},stack:buildStack(et.effectiveDirective,et.originalPolicy?"".concat(tt,' of the policy "').concat(safeTruncate(et.originalPolicy,100,"..."),'"'):"no policy",et.sourceFile,et.lineNumber,et.columnNumber)})}function buildRawReportError(et){return assign({startClocks:clocksNow(),source:ErrorSource.REPORT,handling:"unhandled"},et)}function buildStack(et,tt,rt,nt,lt){return rt?toStackTraceString({name:et,message:tt,stack:[{func:"?",url:rt,line:nt??void 0,column:lt??void 0}]}):void 0}function sendToExtension(et,tt){var rt=window.__ddBrowserSdkExtensionCallback;rt&&rt({type:et,payload:tt})}function getType(et){return et===null?"null":Array.isArray(et)?"array":typeof et}function mergeInto(et,tt,rt){if(rt===void 0&&(rt=createCircularReferenceChecker()),tt===void 0)return et;if(typeof tt!="object"||tt===null)return tt;if(tt instanceof Date)return new Date(tt.getTime());if(tt instanceof RegExp){var nt=tt.flags||[tt.global?"g":"",tt.ignoreCase?"i":"",tt.multiline?"m":"",tt.sticky?"y":"",tt.unicode?"u":""].join("");return new RegExp(tt.source,nt)}if(!rt.hasAlreadyBeenSeen(tt)){if(Array.isArray(tt)){for(var lt=Array.isArray(et)?et:[],ut=0;ut<tt.length;++ut)lt[ut]=mergeInto(lt[ut],tt[ut],rt);return lt}var dt=getType(et)==="object"?et:{};for(var pt in tt)Object.prototype.hasOwnProperty.call(tt,pt)&&(dt[pt]=mergeInto(dt[pt],tt[pt],rt));return dt}}function deepClone(et){return mergeInto(void 0,et)}function combine(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];for(var rt,nt=0,lt=et;nt<lt.length;nt++){var ut=lt[nt];ut!=null&&(rt=mergeInto(rt,ut))}return rt}function createCircularReferenceChecker(){if(typeof WeakSet<"u"){var et=new WeakSet;return{hasAlreadyBeenSeen:function(rt){var nt=et.has(rt);return nt||et.add(rt),nt}}}var tt=[];return{hasAlreadyBeenSeen:function(rt){var nt=tt.indexOf(rt)>=0;return nt||tt.push(rt),nt}}}function getConnectivity(){var et,tt=window.navigator;return{status:tt.onLine?"connected":"not_connected",interfaces:tt.connection&&tt.connection.type?[tt.connection.type]:void 0,effective_type:(et=tt.connection)===null||et===void 0?void 0:et.effectiveType}}function removeItem(et,tt){var rt=et.indexOf(tt);rt>=0&&et.splice(rt,1)}var BUFFER_LIMIT=500;function createBoundedBuffer(){var et=[],tt=function(lt){var ut=et.push(lt);ut>BUFFER_LIMIT&&et.splice(0,1)},rt=function(lt){removeItem(et,lt)},nt=function(lt){et.forEach(function(ut){return ut(lt)}),et.length=0};return{add:tt,remove:rt,drain:nt}}var TelemetryType={log:"log",configuration:"configuration",usage:"usage"},ALLOWED_FRAME_URLS=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],TELEMETRY_EXCLUDED_SITES=[INTAKE_SITE_US1_FED],preStartTelemetryBuffer=createBoundedBuffer(),onRawTelemetryEventCollected=function(et){preStartTelemetryBuffer.add(function(){return onRawTelemetryEventCollected(et)})};function startTelemetry(et,tt){var rt,nt,lt=new Observable,ut=new Set,dt=!includes(TELEMETRY_EXCLUDED_SITES,tt.site)&&performDraw(tt.telemetrySampleRate),pt=(rt={},rt[TelemetryType.log]=dt,rt[TelemetryType.configuration]=dt&&performDraw(tt.telemetryConfigurationSampleRate),rt[TelemetryType.usage]=dt&&performDraw(tt.telemetryUsageSampleRate),rt),ht=getRuntimeEnvInfo();onRawTelemetryEventCollected=function(xt){var Mt=jsonStringify(xt);if(pt[xt.type]&&ut.size<tt.maxTelemetryEventsPerPage&&!ut.has(Mt)){var vt=mt(et,xt,ht);lt.notify(vt),sendToExtension("telemetry",vt),ut.add(Mt)}},startMonitorErrorCollection(addTelemetryError);function mt(xt,Mt,vt){return combine({type:"telemetry",date:timeStampNow(),service:xt,version:"5.26.0",source:"browser",_dd:{format_version:2},telemetry:combine(Mt,{runtime_env:vt,connectivity:getConnectivity()}),experimental_features:arrayFrom(getExperimentalFeatures())},nt!==void 0?nt():{})}return{setContextProvider:function(xt){nt=xt},observable:lt,enabled:dt}}function getRuntimeEnvInfo(){return{is_local_file:window.location.protocol==="file:",is_worker:"WorkerGlobalScope"in self}}function drainPreStartTelemetry(){preStartTelemetryBuffer.drain()}function isTelemetryReplicationAllowed(et){return et.site===INTAKE_SITE_STAGING}function addTelemetryDebug(et,tt){displayIfDebugEnabled(ConsoleApiName.debug,et,tt),onRawTelemetryEventCollected(assign({type:TelemetryType.log,message:et,status:"debug"},tt))}function addTelemetryError(et,tt){onRawTelemetryEventCollected(assign({type:TelemetryType.log,status:"error"},formatError(et),tt))}function addTelemetryConfiguration(et){onRawTelemetryEventCollected({type:TelemetryType.configuration,configuration:et})}function addTelemetryUsage(et){onRawTelemetryEventCollected({type:TelemetryType.usage,usage:et})}function formatError(et){if(et instanceof Error){var tt=computeStackTrace(et);return{error:{kind:tt.name,stack:toStackTraceString(scrubCustomerFrames(tt))},message:tt.message}}return{error:{stack:NO_ERROR_STACK_PRESENT_MESSAGE},message:"".concat("Uncaught"," ").concat(jsonStringify(et))}}function scrubCustomerFrames(et){return et.stack=et.stack.filter(function(tt){return!tt.url||ALLOWED_FRAME_URLS.some(function(rt){return startsWith(tt.url,rt)})}),et}var END_OF_TIMES=1/0,CLEAR_OLD_VALUES_INTERVAL=ONE_MINUTE;function createValueHistory(et){var tt=et.expireDelay,rt=et.maxEntries,nt=[],lt=setInterval$1(function(){return ut()},CLEAR_OLD_VALUES_INTERVAL);function ut(){for(var vt=relativeNow()-tt;nt.length>0&&nt[nt.length-1].endTime<vt;)nt.pop()}function dt(vt,Ot){var At={value:vt,startTime:Ot,endTime:END_OF_TIMES,remove:function(){removeItem(nt,At)},close:function(Rt){At.endTime=Rt}};return rt&&nt.length>=rt&&nt.pop(),nt.unshift(At),At}function pt(vt,Ot){vt===void 0&&(vt=END_OF_TIMES),Ot===void 0&&(Ot={returnInactive:!1});for(var At=0,Rt=nt;At<Rt.length;At++){var zt=Rt[At];if(zt.startTime<=vt){if(Ot.returnInactive||vt<=zt.endTime)return zt.value;break}}}function ht(vt){var Ot=nt[0];Ot&&Ot.endTime===END_OF_TIMES&&Ot.close(vt)}function mt(vt,Ot){vt===void 0&&(vt=END_OF_TIMES),Ot===void 0&&(Ot=0);var At=addDuration(vt,Ot);return nt.filter(function(Rt){return Rt.startTime<=At&&vt<=Rt.endTime}).map(function(Rt){return Rt.value})}function xt(){nt=[]}function Mt(){clearInterval$1(lt)}return{add:dt,find:pt,closeActive:ht,findAll:mt,reset:xt,stop:Mt}}var VISIBILITY_CHECK_DELAY=ONE_MINUTE,SESSION_CONTEXT_TIMEOUT_DELAY=SESSION_TIME_OUT_DELAY;function startSessionManager(et,tt,rt,nt){var lt=new Observable,ut=new Observable,dt=startSessionStore(et.sessionStoreStrategyType,tt,rt),pt=createValueHistory({expireDelay:SESSION_CONTEXT_TIMEOUT_DELAY});dt.renewObservable.subscribe(function(){pt.add(ht(),relativeNow()),lt.notify()}),dt.expireObservable.subscribe(function(){ut.notify(),pt.closeActive(relativeNow())}),dt.expandOrRenewSession(),pt.add(ht(),clocksOrigin().relative),nt.observable.subscribe(function(){nt.isGranted()?dt.expandOrRenewSession():dt.expire()}),trackActivity(et,function(){nt.isGranted()&&dt.expandOrRenewSession()}),trackVisibility(et,function(){return dt.expandSession()}),trackResume(et,function(){return dt.restartSession()});function ht(){return{id:dt.getSession().id,trackingType:dt.getSession()[tt],isReplayForced:!!dt.getSession().forcedReplay}}return{findSession:function(mt,xt){return pt.find(mt,xt)},renewObservable:lt,expireObservable:ut,sessionStateUpdateObservable:dt.sessionStateUpdateObservable,expire:dt.expire,updateSessionState:dt.updateSessionState}}function trackActivity(et,tt){addEventListeners(et,window,["click","touchstart","keydown","scroll"],tt,{capture:!0,passive:!0}).stop}function trackVisibility(et,tt){var rt=function(){document.visibilityState==="visible"&&tt()};addEventListener(et,document,"visibilitychange",rt).stop,setInterval$1(rt,VISIBILITY_CHECK_DELAY)}function trackResume(et,tt){addEventListener(et,window,"resume",tt,{capture:!0}).stop}function isServerError(et){return et>=500}function tryToClone(et){try{return et.clone()}catch{return}}var MAX_ONGOING_BYTES_COUNT=80*ONE_KIBI_BYTE,MAX_ONGOING_REQUESTS=32,MAX_QUEUE_BYTES_COUNT=3*ONE_MEBI_BYTE,MAX_BACKOFF_TIME=ONE_MINUTE,INITIAL_BACKOFF_TIME=ONE_SECOND;function sendWithRetryStrategy(et,tt,rt,nt,lt){tt.transportStatus===0&&tt.queuedPayloads.size()===0&&tt.bandwidthMonitor.canHandle(et)?send(et,tt,rt,{onSuccess:function(){return retryQueuedPayloads(0,tt,rt,nt,lt)},onFailure:function(){tt.queuedPayloads.enqueue(et),scheduleRetry(tt,rt,nt,lt)}}):tt.queuedPayloads.enqueue(et)}function scheduleRetry(et,tt,rt,nt){et.transportStatus===2&&setTimeout$1(function(){var lt=et.queuedPayloads.first();send(lt,et,tt,{onSuccess:function(){et.queuedPayloads.dequeue(),et.currentBackoffTime=INITIAL_BACKOFF_TIME,retryQueuedPayloads(1,et,tt,rt,nt)},onFailure:function(){et.currentBackoffTime=Math.min(MAX_BACKOFF_TIME,et.currentBackoffTime*2),scheduleRetry(et,tt,rt,nt)}})},et.currentBackoffTime)}function send(et,tt,rt,nt){var lt=nt.onSuccess,ut=nt.onFailure;tt.bandwidthMonitor.add(et),rt(et,function(dt){tt.bandwidthMonitor.remove(et),shouldRetryRequest(dt)?(tt.transportStatus=tt.bandwidthMonitor.ongoingRequestCount>0?1:2,et.retry={count:et.retry?et.retry.count+1:1,lastFailureStatus:dt.status},ut()):(tt.transportStatus=0,lt())})}function retryQueuedPayloads(et,tt,rt,nt,lt){et===0&&tt.queuedPayloads.isFull()&&!tt.queueFullReported&&(lt({message:"Reached max ".concat(nt," events size queued for upload: ").concat(MAX_QUEUE_BYTES_COUNT/ONE_MEBI_BYTE,"MiB"),source:ErrorSource.AGENT,startClocks:clocksNow()}),tt.queueFullReported=!0);var ut=tt.queuedPayloads;for(tt.queuedPayloads=newPayloadQueue();ut.size()>0;)sendWithRetryStrategy(ut.dequeue(),tt,rt,nt,lt)}function shouldRetryRequest(et){return et.type!=="opaque"&&(et.status===0&&!navigator.onLine||et.status===408||et.status===429||isServerError(et.status))}function newRetryState(){return{transportStatus:0,currentBackoffTime:INITIAL_BACKOFF_TIME,bandwidthMonitor:newBandwidthMonitor(),queuedPayloads:newPayloadQueue(),queueFullReported:!1}}function newPayloadQueue(){var et=[];return{bytesCount:0,enqueue:function(tt){this.isFull()||(et.push(tt),this.bytesCount+=tt.bytesCount)},first:function(){return et[0]},dequeue:function(){var tt=et.shift();return tt&&(this.bytesCount-=tt.bytesCount),tt},size:function(){return et.length},isFull:function(){return this.bytesCount>=MAX_QUEUE_BYTES_COUNT}}}function newBandwidthMonitor(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(et){return this.ongoingRequestCount===0||this.ongoingByteCount+et.bytesCount<=MAX_ONGOING_BYTES_COUNT&&this.ongoingRequestCount<MAX_ONGOING_REQUESTS},add:function(et){this.ongoingRequestCount+=1,this.ongoingByteCount+=et.bytesCount},remove:function(et){this.ongoingRequestCount-=1,this.ongoingByteCount-=et.bytesCount}}}function createHttpRequest(et,tt,rt,nt){var lt=newRetryState(),ut=function(dt,pt){return fetchKeepAliveStrategy(et,tt,rt,dt,pt)};return{send:function(dt){sendWithRetryStrategy(dt,lt,ut,tt.trackType,nt)},sendOnExit:function(dt){sendBeaconStrategy(et,tt,rt,dt)}}}function sendBeaconStrategy(et,tt,rt,nt){var lt=!!navigator.sendBeacon&&nt.bytesCount<rt;if(lt)try{var ut=tt.build("beacon",nt),dt=navigator.sendBeacon(ut,nt.data);if(dt)return}catch(ht){reportBeaconError(ht)}var pt=tt.build("xhr",nt);sendXHR(et,pt,nt.data)}var hasReportedBeaconError=!1;function reportBeaconError(et){hasReportedBeaconError||(hasReportedBeaconError=!0,addTelemetryError(et))}function fetchKeepAliveStrategy(et,tt,rt,nt,lt){var ut=isKeepAliveSupported()&&nt.bytesCount<rt;if(ut){var dt=tt.build("fetch",nt);fetch(dt,{method:"POST",body:nt.data,keepalive:!0,mode:"cors"}).then(monitor(function(ht){return lt==null?void 0:lt({status:ht.status,type:ht.type})}),monitor(function(){var ht=tt.build("xhr",nt);sendXHR(et,ht,nt.data,lt)}))}else{var pt=tt.build("xhr",nt);sendXHR(et,pt,nt.data,lt)}}function isKeepAliveSupported(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function sendXHR(et,tt,rt,nt){var lt=new XMLHttpRequest;lt.open("POST",tt,!0),rt instanceof Blob&&lt.setRequestHeader("Content-Type",rt.type),addEventListener(et,lt,"loadend",function(){nt==null||nt({status:lt.status})},{once:!0}),lt.send(rt)}function getEventBridge(){var et=getEventBridgeGlobal();if(et)return{getCapabilities:function(){var tt;return JSON.parse(((tt=et.getCapabilities)===null||tt===void 0?void 0:tt.call(et))||"[]")},getPrivacyLevel:function(){var tt;return(tt=et.getPrivacyLevel)===null||tt===void 0?void 0:tt.call(et)},getAllowedWebViewHosts:function(){return JSON.parse(et.getAllowedWebViewHosts())},send:function(tt,rt,nt){var lt=nt?{id:nt}:void 0;et.send(JSON.stringify({eventType:tt,event:rt,view:lt}))}}}function bridgeSupports(et){var tt=getEventBridge();return!!tt&&includes(tt.getCapabilities(),et)}function canUseEventBridge(et){var tt;et===void 0&&(et=(tt=getGlobalObject().location)===null||tt===void 0?void 0:tt.hostname);var rt=getEventBridge();return!!rt&&rt.getAllowedWebViewHosts().some(function(nt){return et===nt||endsWith(et,".".concat(nt))})}function getEventBridgeGlobal(){return getGlobalObject().DatadogEventBridge}var PageExitReason={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function createPageExitObservable(et){return new Observable(function(tt){var rt=addEventListeners(et,window,["visibilitychange","freeze"],function(lt){lt.type==="visibilitychange"&&document.visibilityState==="hidden"?tt.notify({reason:PageExitReason.HIDDEN}):lt.type==="freeze"&&tt.notify({reason:PageExitReason.FROZEN})},{capture:!0}).stop,nt=addEventListener(et,window,"beforeunload",function(){tt.notify({reason:PageExitReason.UNLOADING})}).stop;return function(){rt(),nt()}})}function isPageExitReason(et){return includes(objectValues(PageExitReason),et)}function createBatch(et){var tt=et.encoder,rt=et.request,nt=et.flushController,lt=et.messageBytesLimit,ut={},dt=nt.flushObservable.subscribe(function(vt){return Mt(vt)});function pt(vt,Ot,At){nt.notifyBeforeAddMessage(Ot),At!==void 0?(ut[At]=vt,nt.notifyAfterAddMessage()):tt.write(tt.isEmpty?vt:`
`.concat(vt),function(Rt){nt.notifyAfterAddMessage(Rt-Ot)})}function ht(vt){return vt!==void 0&&ut[vt]!==void 0}function mt(vt){var Ot=ut[vt];delete ut[vt];var At=tt.estimateEncodedBytesCount(Ot);nt.notifyAfterRemoveMessage(At)}function xt(vt,Ot){var At=jsonStringify(vt),Rt=tt.estimateEncodedBytesCount(At);if(Rt>=lt){display.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(lt,"KB. ").concat(MORE_DETAILS," ").concat(DOCS_TROUBLESHOOTING,"/#technical-limitations"));return}ht(Ot)&&mt(Ot),pt(At,Rt,Ot)}function Mt(vt){var Ot=objectValues(ut).join(`
`);ut={};var At=isPageExitReason(vt.reason),Rt=At?rt.sendOnExit:rt.send;if(At&&tt.isAsync){var zt=tt.finishSync();zt.outputBytesCount&&Rt(formatPayloadFromEncoder(zt));var Tt=[zt.pendingData,Ot].filter(Boolean).join(`
`);Tt&&Rt({data:Tt,bytesCount:computeBytesCount(Tt)})}else Ot&&tt.write(tt.isEmpty?Ot:`
`.concat(Ot)),tt.finish(function(Ct){Rt(formatPayloadFromEncoder(Ct))})}return{flushController:nt,add:xt,upsert:xt,stop:dt.unsubscribe}}function formatPayloadFromEncoder(et){var tt;return typeof et.output=="string"?tt=et.output:tt=new Blob([et.output],{type:"text/plain"}),{data:tt,bytesCount:et.outputBytesCount,encoding:et.encoding}}function createFlushController(et){var tt=et.messagesLimit,rt=et.bytesLimit,nt=et.durationLimit,lt=et.pageExitObservable,ut=et.sessionExpireObservable,dt=lt.subscribe(function(Rt){return Mt(Rt.reason)}),pt=ut.subscribe(function(){return Mt("session_expire")}),ht=new Observable(function(){return function(){dt.unsubscribe(),pt.unsubscribe()}}),mt=0,xt=0;function Mt(Rt){if(xt!==0){var zt=xt,Tt=mt;xt=0,mt=0,At(),ht.notify({reason:Rt,messagesCount:zt,bytesCount:Tt})}}var vt;function Ot(){vt===void 0&&(vt=setTimeout$1(function(){Mt("duration_limit")},nt))}function At(){clearTimeout$1(vt),vt=void 0}return{flushObservable:ht,get messagesCount(){return xt},notifyBeforeAddMessage:function(Rt){mt+Rt>=rt&&Mt("bytes_limit"),xt+=1,mt+=Rt,Ot()},notifyAfterAddMessage:function(Rt){Rt===void 0&&(Rt=0),mt+=Rt,xt>=tt?Mt("messages_limit"):mt>=rt&&Mt("bytes_limit")},notifyAfterRemoveMessage:function(Rt){mt-=Rt,xt-=1,xt===0&&At()}}}function startBatchWithReplica(et,tt,rt,nt,lt,ut,dt){dt===void 0&&(dt=createBatch);var pt=mt(et,tt),ht=rt&&mt(et,rt);function mt(xt,Mt){var vt=Mt.endpoint,Ot=Mt.encoder;return dt({encoder:Ot,request:createHttpRequest(xt,vt,xt.batchBytesLimit,nt),flushController:createFlushController({messagesLimit:xt.batchMessagesLimit,bytesLimit:xt.batchBytesLimit,durationLimit:xt.flushTimeout,pageExitObservable:lt,sessionExpireObservable:ut}),messageBytesLimit:xt.messageBytesLimit})}return{flushObservable:pt.flushController.flushObservable,add:function(xt,Mt){Mt===void 0&&(Mt=!0),pt.add(xt),ht&&Mt&&ht.add(rt.transformMessage?rt.transformMessage(xt):xt)},upsert:function(xt,Mt){pt.upsert(xt,Mt),ht&&ht.upsert(rt.transformMessage?rt.transformMessage(xt):xt,Mt)},stop:function(){pt.stop(),ht&&ht.stop()}}}function createIdentityEncoder(){var et="",tt=0;return{isAsync:!1,get isEmpty(){return!et},write:function(rt,nt){var lt=computeBytesCount(rt);tt+=lt,et+=rt,nt&&nt(lt)},finish:function(rt){rt(this.finishSync())},finishSync:function(){var rt={output:et,outputBytesCount:tt,rawBytesCount:tt,pendingData:""};return et="",tt=0,rt},estimateEncodedBytesCount:function(rt){return rt.length}}}var AbstractLifeCycle=function(){function et(){this.callbacks={}}return et.prototype.notify=function(tt,rt){var nt=this.callbacks[tt];nt&&nt.forEach(function(lt){return lt(rt)})},et.prototype.subscribe=function(tt,rt){var nt=this;return this.callbacks[tt]||(this.callbacks[tt]=[]),this.callbacks[tt].push(rt),{unsubscribe:function(){nt.callbacks[tt]=nt.callbacks[tt].filter(function(lt){return rt!==lt})}}},et}();function createEventRateLimiter(et,tt,rt){var nt=0,lt=!1;return{isLimitReached:function(){if(nt===0&&setTimeout$1(function(){nt=0},ONE_MINUTE),nt+=1,nt<=tt||lt)return lt=!1,!1;if(nt===tt+1){lt=!0;try{rt({message:"Reached max number of ".concat(et,"s by minute: ").concat(tt),source:ErrorSource.AGENT,startClocks:clocksNow()})}finally{lt=!1}}return!0}}}function runOnReadyState(et,tt,rt){if(document.readyState===tt||document.readyState==="complete")rt();else{var nt=tt==="complete"?"load":"DOMContentLoaded";addEventListener(et,window,nt,rt,{once:!0})}}var xhrObservable,xhrContexts=new WeakMap;function initXhrObservable(et){return xhrObservable||(xhrObservable=createXhrObservable(et)),xhrObservable}function createXhrObservable(et){return new Observable(function(tt){var rt=instrumentMethod(XMLHttpRequest.prototype,"open",openXhr).stop,nt=instrumentMethod(XMLHttpRequest.prototype,"send",function(ut){sendXhr(ut,et,tt)},{computeHandlingStack:!0}).stop,lt=instrumentMethod(XMLHttpRequest.prototype,"abort",abortXhr).stop;return function(){rt(),nt(),lt()}})}function openXhr(et){var tt=et.target,rt=et.parameters,nt=rt[0],lt=rt[1];xhrContexts.set(tt,{state:"open",method:String(nt).toUpperCase(),url:normalizeUrl(String(lt))})}function sendXhr(et,tt,rt){var nt=et.target,lt=et.handlingStack,ut=xhrContexts.get(nt);if(ut){var dt=ut;dt.state="start",dt.startClocks=clocksNow(),dt.isAborted=!1,dt.xhr=nt,dt.handlingStack=lt;var pt=!1,ht=instrumentMethod(nt,"onreadystatechange",function(){nt.readyState===XMLHttpRequest.DONE&&mt()}).stop,mt=function(){if(xt(),ht(),!pt){pt=!0;var Mt=ut;Mt.state="complete",Mt.duration=elapsed(dt.startClocks.timeStamp,timeStampNow()),Mt.status=nt.status,rt.notify(shallowClone(Mt))}},xt=addEventListener(tt,nt,"loadend",mt).stop;rt.notify(dt)}}function abortXhr(et){var tt=et.target,rt=xhrContexts.get(tt);rt&&(rt.isAborted=!0)}var fetchObservable;function initFetchObservable(){return fetchObservable||(fetchObservable=createFetchObservable()),fetchObservable}function createFetchObservable(){return new Observable(function(et){if(window.fetch){var tt=instrumentMethod(window,"fetch",function(rt){return beforeSend(rt,et)},{computeHandlingStack:!0}).stop;return tt}})}function beforeSend(et,tt){var rt=et.parameters,nt=et.onPostCall,lt=et.handlingStack,ut=rt[0],dt=rt[1],pt=dt&&dt.method;pt===void 0&&ut instanceof Request&&(pt=ut.method);var ht=pt!==void 0?String(pt).toUpperCase():"GET",mt=ut instanceof Request?ut.url:normalizeUrl(String(ut)),xt=clocksNow(),Mt={state:"start",init:dt,input:ut,method:ht,startClocks:xt,url:mt,handlingStack:lt};tt.notify(Mt),rt[0]=Mt.input,rt[1]=Mt.init,nt(function(vt){return afterSend(tt,vt,Mt)})}function afterSend(et,tt,rt){var nt=rt;function lt(ut){nt.state="resolve",assign(nt,ut),et.notify(nt)}tt.then(monitor(function(ut){lt({response:ut,responseType:ut.type,status:ut.status,isAborted:!1})}),monitor(function(ut){var dt,pt;lt({status:0,isAborted:((pt=(dt=nt.init)===null||dt===void 0?void 0:dt.signal)===null||pt===void 0?void 0:pt.aborted)||ut instanceof DOMException&&ut.code===DOMException.ABORT_ERR,error:ut})}))}var consoleObservablesByApi={};function initConsoleObservable(et){var tt=et.map(function(rt){return consoleObservablesByApi[rt]||(consoleObservablesByApi[rt]=createConsoleObservable(rt)),consoleObservablesByApi[rt]});return mergeObservables.apply(void 0,tt)}function createConsoleObservable(et){return new Observable(function(tt){var rt=globalConsole[et];return globalConsole[et]=function(){for(var nt=[],lt=0;lt<arguments.length;lt++)nt[lt]=arguments[lt];rt.apply(console,nt);var ut=createHandlingStack();callMonitored(function(){tt.notify(buildConsoleLog(nt,et,ut))})},function(){globalConsole[et]=rt}})}function buildConsoleLog(et,tt,rt){var nt=et.map(function(dt){return formatConsoleParameters(dt)}).join(" "),lt;if(tt===ConsoleApiName.error){var ut=find(et,function(dt){return dt instanceof Error});lt={stack:ut?toStackTraceString(computeStackTrace(ut)):void 0,fingerprint:tryToGetFingerprint(ut),causes:ut?flattenErrorCauses(ut,"console"):void 0,startClocks:clocksNow(),message:nt,source:ErrorSource.CONSOLE,handling:"handled",handlingStack:rt}}return{api:tt,message:nt,error:lt,handlingStack:rt}}function formatConsoleParameters(et){return typeof et=="string"?sanitize(et):et instanceof Error?formatErrorMessage(computeStackTrace(et)):jsonStringify(sanitize(et),void 0,2)}function createContextManager(et){var tt={},rt=new Observable,nt={getContext:function(){return deepClone(tt)},setContext:function(lt){getType(lt)==="object"?(tt=sanitize(lt),et.updateCustomerData(tt)):nt.clearContext(),rt.notify()},setContextProperty:function(lt,ut){tt[lt]=sanitize(ut),et.updateCustomerData(tt),rt.notify()},removeContextProperty:function(lt){delete tt[lt],et.updateCustomerData(tt),rt.notify()},clearContext:function(){tt={},et.resetCustomerData(),rt.notify()},changeObservable:rt};return nt}var CONTEXT_STORE_KEY_PREFIX="_dd_c",storageListeners=[];function storeContextManager(et,tt,rt,nt){var lt=buildStorageKey(rt,nt);storageListeners.push(addEventListener(et,window,"storage",function(ht){var mt=ht.key;lt===mt&&ut()})),tt.changeObservable.subscribe(dt),tt.setContext(combine(pt(),tt.getContext()));function ut(){tt.setContext(pt())}function dt(){localStorage.setItem(lt,JSON.stringify(tt.getContext()))}function pt(){var ht=localStorage.getItem(lt);return ht!==null?JSON.parse(ht):{}}}function buildStorageKey(et,tt){return"".concat(CONTEXT_STORE_KEY_PREFIX,"_").concat(et,"_").concat(tt)}var CUSTOMER_DATA_BYTES_LIMIT=3*ONE_KIBI_BYTE,CUSTOMER_COMPRESSED_DATA_BYTES_LIMIT=16*ONE_KIBI_BYTE,BYTES_COMPUTATION_THROTTLING_DELAY=200;function createCustomerDataTrackerManager(et){et===void 0&&(et=2);var tt=new Map,rt=!1;function nt(lt){if(lt===void 0&&(lt=0),!(rt||et===0)){var ut=et===2?CUSTOMER_DATA_BYTES_LIMIT:CUSTOMER_COMPRESSED_DATA_BYTES_LIMIT,dt=lt;tt.forEach(function(pt){dt+=pt.getBytesCount()}),dt>ut&&(displayCustomerDataLimitReachedWarning(ut),rt=!0)}}return{createDetachedTracker:function(){var lt=createCustomerDataTracker(function(){return nt(lt.getBytesCount())});return lt},getOrCreateTracker:function(lt){return tt.has(lt)||tt.set(lt,createCustomerDataTracker(nt)),tt.get(lt)},setCompressionStatus:function(lt){et===0&&(et=lt,nt())},getCompressionStatus:function(){return et},stop:function(){tt.forEach(function(lt){return lt.stop()}),tt.clear()}}}function createCustomerDataTracker(et){var tt=0,rt=throttle(function(dt){tt=computeBytesCount(jsonStringify(dt)),et()},BYTES_COMPUTATION_THROTTLING_DELAY),nt=rt.throttled,lt=rt.cancel,ut=function(){lt(),tt=0};return{updateCustomerData:function(dt){isEmptyObject(dt)?ut():nt(dt)},resetCustomerData:ut,getBytesCount:function(){return tt},stop:function(){lt()}}}function displayCustomerDataLimitReachedWarning(et){display.warn("Customer data exceeds the recommended ".concat(et/ONE_KIBI_BYTE,"KiB threshold. ").concat(MORE_DETAILS," ").concat(DOCS_TROUBLESHOOTING,"/#customer-data-exceeds-the-recommended-threshold-warning"))}function readBytesFromStream(et,tt,rt){var nt=et.getReader(),lt=0;ut();function ut(){nt.read().then(monitor(function(pt){if(pt.done){dt();return}lt+=pt.value.length,lt>rt.bytesLimit?dt():ut()}),monitor(function(pt){return tt(pt)}))}function dt(){nt.cancel().catch(noop);var pt,ht;tt(void 0,pt,ht)}}var SYNTHETICS_TEST_ID_COOKIE_NAME="datadog-synthetics-public-id",SYNTHETICS_RESULT_ID_COOKIE_NAME="datadog-synthetics-result-id",SYNTHETICS_INJECTS_RUM_COOKIE_NAME="datadog-synthetics-injects-rum";function willSyntheticsInjectRum(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||getInitCookie(SYNTHETICS_INJECTS_RUM_COOKIE_NAME))}function getSyntheticsTestId(){var et=window._DATADOG_SYNTHETICS_PUBLIC_ID||getInitCookie(SYNTHETICS_TEST_ID_COOKIE_NAME);return typeof et=="string"?et:void 0}function getSyntheticsResultId(){var et=window._DATADOG_SYNTHETICS_RESULT_ID||getInitCookie(SYNTHETICS_RESULT_ID_COOKIE_NAME);return typeof et=="string"?et:void 0}function sanitizeUser(et){var tt=assign({},et),rt=["id","name","email"];return rt.forEach(function(nt){nt in tt&&(tt[nt]=String(tt[nt]))}),tt}function checkUser(et){var tt=getType(et)==="object";return tt||display.error("Unsupported user:",et),tt}function isMatchOption(et){var tt=getType(et);return tt==="string"||tt==="function"||et instanceof RegExp}function matchList(et,tt,rt){return rt===void 0&&(rt=!1),et.some(function(nt){try{if(typeof nt=="function")return nt(tt);if(nt instanceof RegExp)return nt.test(tt);if(typeof nt=="string")return rt?startsWith(tt,nt):nt===tt}catch(lt){display.error(lt)}return!1})}function buildCommonContext(et,tt,rt){return{context:et.getContext(),user:tt.getContext(),hasReplay:rt.isRecording()?!0:void 0}}function createCustomVitalsState(){var et=new Map,tt=new WeakMap;return{vitalsByName:et,vitalsByReference:tt}}function startVitalCollection(et,tt,rt){function nt(ut){return!tt.wasInPageStateDuringPeriod("frozen",ut.startClocks.relative,ut.duration)}function lt(ut){nt(ut)&&et.notify(12,processVital(ut))}return{addDurationVital:lt,startDurationVital:function(ut,dt){return dt===void 0&&(dt={}),startDurationVital(rt,ut,dt)},stopDurationVital:function(ut,dt){dt===void 0&&(dt={}),stopDurationVital(lt,rt,ut,dt)}}}function startDurationVital(et,tt,rt){var nt=et.vitalsByName,lt=et.vitalsByReference;rt===void 0&&(rt={});var ut={name:tt,startClocks:clocksNow(),context:rt.context,description:rt.description},dt={__dd_vital_reference:!0};return nt.set(tt,ut),lt.set(dt,ut),dt}function stopDurationVital(et,tt,rt,nt){var lt=tt.vitalsByName,ut=tt.vitalsByReference;nt===void 0&&(nt={});var dt=typeof rt=="string"?lt.get(rt):ut.get(rt);dt&&(et(buildDurationVital(dt,dt.startClocks,nt,clocksNow())),typeof rt=="string"?lt.delete(rt):ut.delete(rt))}function buildDurationVital(et,tt,rt,nt){var lt;return{name:et.name,type:"duration",startClocks:tt,duration:elapsed(tt.timeStamp,nt.timeStamp),context:combine(et.context,rt.context),description:(lt=rt.description)!==null&&lt!==void 0?lt:et.description}}function processVital(et,tt){var rt={date:et.startClocks.timeStamp,vital:{id:generateUUID(),type:et.type,name:et.name,duration:toServerDuration(et.duration),description:et.description},type:"vital"};return rt._dd={vital:{computed_value:!0}},{rawRumEvent:rt,startTime:et.startClocks.relative,customerContext:et.context,domainContext:{}}}function isTracingOption(et){var tt=et;return getType(tt)==="object"&&isMatchOption(tt.match)&&Array.isArray(tt.propagatorTypes)}function clearTracingIfNeeded(et){et.status===0&&!et.isAborted&&(et.traceId=void 0,et.spanId=void 0,et.traceSampled=void 0)}function startTracer(et,tt){return{clearTracingIfNeeded,traceFetch:function(rt){return injectHeadersIfTracingAllowed(et,rt,tt,function(nt){var lt;if(rt.input instanceof Request&&!(!((lt=rt.init)===null||lt===void 0)&&lt.headers))rt.input=new Request(rt.input),Object.keys(nt).forEach(function(dt){rt.input.headers.append(dt,nt[dt])});else{rt.init=shallowClone(rt.init);var ut=[];rt.init.headers instanceof Headers?rt.init.headers.forEach(function(dt,pt){ut.push([pt,dt])}):Array.isArray(rt.init.headers)?rt.init.headers.forEach(function(dt){ut.push(dt)}):rt.init.headers&&Object.keys(rt.init.headers).forEach(function(dt){ut.push([dt,rt.init.headers[dt]])}),rt.init.headers=ut.concat(objectEntries(nt))}})},traceXhr:function(rt,nt){return injectHeadersIfTracingAllowed(et,rt,tt,function(lt){Object.keys(lt).forEach(function(ut){nt.setRequestHeader(ut,lt[ut])})})}}}function injectHeadersIfTracingAllowed(et,tt,rt,nt){if(!(!isTracingSupported()||!rt.findTrackedSession())){var lt=find(et.allowedTracingUrls,function(ut){return matchList([ut.match],tt.url,!0)});lt&&(tt.traceSampled=!isNumber$1(et.traceSampleRate)||performDraw(et.traceSampleRate),!(!tt.traceSampled&&et.traceContextInjection!==TraceContextInjection.ALL)&&(tt.traceId=createTraceIdentifier(),tt.spanId=createTraceIdentifier(),nt(makeTracingHeaders(tt.traceId,tt.spanId,tt.traceSampled,lt.propagatorTypes))))}}function isTracingSupported(){return getCrypto()!==void 0}function getCrypto(){return window.crypto||window.msCrypto}function makeTracingHeaders(et,tt,rt,nt){var lt={};return nt.forEach(function(ut){switch(ut){case"datadog":{assign(lt,{"x-datadog-origin":"rum","x-datadog-parent-id":tt.toDecimalString(),"x-datadog-sampling-priority":rt?"1":"0","x-datadog-trace-id":et.toDecimalString()});break}case"tracecontext":{assign(lt,{traceparent:"00-0000000000000000".concat(et.toPaddedHexadecimalString(),"-").concat(tt.toPaddedHexadecimalString(),"-0").concat(rt?"1":"0")});break}case"b3":{assign(lt,{b3:"".concat(et.toPaddedHexadecimalString(),"-").concat(tt.toPaddedHexadecimalString(),"-").concat(rt?"1":"0")});break}case"b3multi":{assign(lt,{"X-B3-TraceId":et.toPaddedHexadecimalString(),"X-B3-SpanId":tt.toPaddedHexadecimalString(),"X-B3-Sampled":rt?"1":"0"});break}}}),lt}function createTraceIdentifier(){var et=new Uint8Array(8);getCrypto().getRandomValues(et),et[0]=et[0]&127;function tt(ut){return et[ut]*16777216+(et[ut+1]<<16)+(et[ut+2]<<8)+et[ut+3]}function rt(ut){var dt=tt(0),pt=tt(4),ht="";do{var mt=dt%ut*4294967296+pt;dt=Math.floor(dt/ut),pt=Math.floor(mt/ut),ht=(mt%ut).toString(ut)+ht}while(dt||pt);return ht}function nt(){return rt(10)}function lt(){var ut=rt(16);return Array(17-ut.length).join("0")+ut}return{toDecimalString:nt,toPaddedHexadecimalString:lt}}var DEFAULT_PROPAGATOR_TYPES=["tracecontext","datadog"];function validateAndBuildRumConfiguration(et){var tt,rt;if(!et.applicationId){display.error("Application ID is not configured, no RUM data will be collected.");return}if(!(!isSampleRate(et.sessionReplaySampleRate,"Session Replay")||!isSampleRate(et.traceSampleRate,"Trace"))){if(et.excludedActivityUrls!==void 0&&!Array.isArray(et.excludedActivityUrls)){display.error("Excluded Activity Urls should be an array");return}var nt=validateAndBuildTracingOptions(et);if(nt){var lt=validateAndBuildConfiguration(et);if(lt)return assign({applicationId:et.applicationId,version:et.version||void 0,actionNameAttribute:et.actionNameAttribute,sessionReplaySampleRate:(tt=et.sessionReplaySampleRate)!==null&&tt!==void 0?tt:0,startSessionReplayRecordingManually:!!et.startSessionReplayRecordingManually,traceSampleRate:et.traceSampleRate,allowedTracingUrls:nt,excludedActivityUrls:(rt=et.excludedActivityUrls)!==null&&rt!==void 0?rt:[],workerUrl:et.workerUrl,compressIntakeRequests:!!et.compressIntakeRequests,trackUserInteractions:!!et.trackUserInteractions,trackViewsManually:!!et.trackViewsManually,trackResources:!!et.trackResources,trackLongTasks:!!et.trackLongTasks,subdomain:et.subdomain,defaultPrivacyLevel:objectHasValue(DefaultPrivacyLevel,et.defaultPrivacyLevel)?et.defaultPrivacyLevel:DefaultPrivacyLevel.MASK,enablePrivacyForActionName:!!et.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:objectHasValue(TraceContextInjection,et.traceContextInjection)?et.traceContextInjection:TraceContextInjection.ALL,plugins:et.betaPlugins||[]},lt)}}}function validateAndBuildTracingOptions(et){if(et.allowedTracingUrls===void 0)return[];if(!Array.isArray(et.allowedTracingUrls)){display.error("Allowed Tracing URLs should be an array");return}if(et.allowedTracingUrls.length!==0&&et.service===void 0){display.error("Service needs to be configured when tracing is enabled");return}var tt=[];return et.allowedTracingUrls.forEach(function(rt){isMatchOption(rt)?tt.push({match:rt,propagatorTypes:DEFAULT_PROPAGATOR_TYPES}):isTracingOption(rt)?tt.push(rt):display.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",rt)}),tt}function getSelectedTracingPropagators(et){var tt=new Set;return Array.isArray(et.allowedTracingUrls)&&et.allowedTracingUrls.length>0&&et.allowedTracingUrls.forEach(function(rt){isMatchOption(rt)?DEFAULT_PROPAGATOR_TYPES.forEach(function(nt){return tt.add(nt)}):getType(rt)==="object"&&Array.isArray(rt.propagatorTypes)&&rt.propagatorTypes.forEach(function(nt){return tt.add(nt)})}),arrayFrom(tt)}function serializeRumConfiguration(et){var tt,rt=serializeConfiguration(et);return assign({session_replay_sample_rate:et.sessionReplaySampleRate,start_session_replay_recording_manually:et.startSessionReplayRecordingManually,trace_sample_rate:et.traceSampleRate,trace_context_injection:et.traceContextInjection,action_name_attribute:et.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(et.allowedTracingUrls)&&et.allowedTracingUrls.length>0,selected_tracing_propagators:getSelectedTracingPropagators(et),default_privacy_level:et.defaultPrivacyLevel,enable_privacy_for_action_name:et.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(et.excludedActivityUrls)&&et.excludedActivityUrls.length>0,use_worker_url:!!et.workerUrl,compress_intake_requests:et.compressIntakeRequests,track_views_manually:et.trackViewsManually,track_user_interactions:et.trackUserInteractions,track_resources:et.trackResources,track_long_task:et.trackLongTasks,plugins:(tt=et.betaPlugins)===null||tt===void 0?void 0:tt.map(function(nt){var lt;return assign({name:nt.name},(lt=nt.getConfigurationTelemetry)===null||lt===void 0?void 0:lt.call(nt))})},rt)}var REMOTE_CONFIGURATION_URL="https://d3uc069fcn7uxw.cloudfront.net/configuration";function fetchAndApplyRemoteConfiguration(et,tt){fetchRemoteConfiguration(et,function(rt){tt(applyRemoteConfiguration(et,rt))})}function applyRemoteConfiguration(et,tt){return assign({},et,tt)}function fetchRemoteConfiguration(et,tt){var rt=new XMLHttpRequest;addEventListener(et,rt,"load",function(){rt.status===200?tt(JSON.parse(rt.responseText)):displayRemoteConfigurationFetchingError()}),addEventListener(et,rt,"error",function(){displayRemoteConfigurationFetchingError()}),rt.open("GET","".concat(REMOTE_CONFIGURATION_URL,"/").concat(encodeURIComponent(et.remoteConfigurationId),".json")),rt.send()}function displayRemoteConfigurationFetchingError(){display.error("Error fetching the remote configuration.")}function callPluginsMethod(et,tt,rt){if(et)for(var nt=0,lt=et;nt<lt.length;nt++){var ut=lt[nt],dt=ut[tt];dt&&dt(rt)}}function createPreStartStrategy(et,tt,rt,nt,lt){var ut=et.ignoreInitIfSyntheticsWillInjectRum,dt=et.startDeflateWorker,pt=createBoundedBuffer(),ht,mt,xt,Mt,vt=rt.observable.subscribe(Ot);function Ot(){if(!(!xt||!Mt||!rt.isGranted())){vt.unsubscribe();var zt;if(Mt.trackViewsManually){if(!ht)return;pt.remove(ht.callback),zt=ht.options}var Tt=lt(Mt,mt,zt);pt.drain(Tt)}}function At(zt){var Tt=canUseEventBridge();if(Tt&&(zt=overrideInitConfigurationForBridge(zt)),xt=zt,addTelemetryConfiguration(serializeRumConfiguration(zt)),Mt){displayAlreadyInitializedError("DD_RUM",zt);return}var Ct=validateAndBuildRumConfiguration(zt);if(Ct){if(!Tt&&!Ct.sessionStoreStrategyType){display.warn("No storage available for session. We will not send any data.");return}Ct.compressIntakeRequests&&!Tt&&dt&&(mt=dt(Ct,"Datadog RUM",noop),!mt)||(Mt=Ct,initFetchObservable().subscribe(noop),rt.tryToInit(Ct.trackingConsent),Ot())}}var Rt=function(zt){pt.add(function(Tt){return Tt.addDurationVital(zt)})};return{init:function(zt,Tt){if(!zt){display.error("Missing configuration");return}initFeatureFlags(zt.enableExperimentalFeatures),xt=zt,!(ut&&willSyntheticsInjectRum())&&(callPluginsMethod(zt.betaPlugins,"onInit",{initConfiguration:zt,publicApi:Tt}),zt.remoteConfigurationId&&isExperimentalFeatureEnabled(ExperimentalFeature.REMOTE_CONFIGURATION)?fetchAndApplyRemoteConfiguration(zt,At):At(zt))},get initConfiguration(){return xt},getInternalContext:noop,stopSession:noop,addTiming:function(zt,Tt){Tt===void 0&&(Tt=timeStampNow()),pt.add(function(Ct){return Ct.addTiming(zt,Tt)})},startView:function(zt,Tt){Tt===void 0&&(Tt=clocksNow());var Ct=function(It){It.startView(zt,Tt)};pt.add(Ct),ht||(ht={options:zt,callback:Ct},Ot())},updateViewName:function(zt){pt.add(function(Tt){return Tt.updateViewName(zt)})},addAction:function(zt,Tt){Tt===void 0&&(Tt=tt()),pt.add(function(Ct){return Ct.addAction(zt,Tt)})},addError:function(zt,Tt){Tt===void 0&&(Tt=tt()),pt.add(function(Ct){return Ct.addError(zt,Tt)})},addFeatureFlagEvaluation:function(zt,Tt){pt.add(function(Ct){return Ct.addFeatureFlagEvaluation(zt,Tt)})},startDurationVital:function(zt,Tt){return startDurationVital(nt,zt,Tt)},stopDurationVital:function(zt,Tt){stopDurationVital(Rt,nt,zt,Tt)},addDurationVital:Rt}}function overrideInitConfigurationForBridge(et){var tt,rt;return assign({},et,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(tt=et.defaultPrivacyLevel)!==null&&tt!==void 0?tt:(rt=getEventBridge())===null||rt===void 0?void 0:rt.getPrivacyLevel()})}var RUM_STORAGE_KEY="rum";function makeRumPublicApi(et,tt,rt){rt===void 0&&(rt={});var nt=createCustomerDataTrackerManager(0),lt=createContextManager(nt.getOrCreateTracker(2)),ut=createContextManager(nt.getOrCreateTracker(1)),dt=createTrackingConsentState(),pt=createCustomVitalsState();function ht(){return buildCommonContext(lt,ut,tt)}var mt=createPreStartStrategy(rt,ht,dt,pt,function(vt,Ot,At){isExperimentalFeatureEnabled(ExperimentalFeature.UPDATE_VIEW_NAME)&&(Mt.updateViewName=monitor(function(zt){mt.updateViewName(zt)})),vt.storeContextsAcrossPages&&(storeContextManager(vt,lt,RUM_STORAGE_KEY,2),storeContextManager(vt,ut,RUM_STORAGE_KEY,1)),nt.setCompressionStatus(Ot?1:2);var Rt=et(vt,tt,nt,ht,At,Ot&&rt.createDeflateEncoder?function(zt){return rt.createDeflateEncoder(vt,Ot,zt)}:createIdentityEncoder,dt,pt);return tt.onRumStart(Rt.lifeCycle,vt,Rt.session,Rt.viewContexts,Ot),mt=createPostStartStrategy(mt,Rt),Rt}),xt=monitor(function(vt){var Ot=typeof vt=="object"?vt:{name:vt};Ot.context&&nt.getOrCreateTracker(3).updateCustomerData(Ot.context),mt.startView(Ot),addTelemetryUsage({feature:"start-view"})}),Mt=makePublicApi({init:monitor(function(vt){return mt.init(vt,Mt)}),setTrackingConsent:monitor(function(vt){dt.update(vt),addTelemetryUsage({feature:"set-tracking-consent",tracking_consent:vt})}),setGlobalContext:monitor(function(vt){lt.setContext(vt),addTelemetryUsage({feature:"set-global-context"})}),getGlobalContext:monitor(function(){return lt.getContext()}),setGlobalContextProperty:monitor(function(vt,Ot){lt.setContextProperty(vt,Ot),addTelemetryUsage({feature:"set-global-context"})}),removeGlobalContextProperty:monitor(function(vt){return lt.removeContextProperty(vt)}),clearGlobalContext:monitor(function(){return lt.clearContext()}),getInternalContext:monitor(function(vt){return mt.getInternalContext(vt)}),getInitConfiguration:monitor(function(){return deepClone(mt.initConfiguration)}),addAction:function(vt,Ot){var At=createHandlingStack();callMonitored(function(){mt.addAction({name:sanitize(vt),context:sanitize(Ot),startClocks:clocksNow(),type:"custom",handlingStack:At}),addTelemetryUsage({feature:"add-action"})})},addError:function(vt,Ot){var At=createHandlingStack();callMonitored(function(){mt.addError({error:vt,handlingStack:At,context:sanitize(Ot),startClocks:clocksNow()}),addTelemetryUsage({feature:"add-error"})})},addTiming:monitor(function(vt,Ot){mt.addTiming(sanitize(vt),Ot)}),setUser:monitor(function(vt){checkUser(vt)&&ut.setContext(sanitizeUser(vt)),addTelemetryUsage({feature:"set-user"})}),getUser:monitor(function(){return ut.getContext()}),setUserProperty:monitor(function(vt,Ot){var At,Rt=sanitizeUser((At={},At[vt]=Ot,At))[vt];ut.setContextProperty(vt,Rt),addTelemetryUsage({feature:"set-user"})}),removeUserProperty:monitor(function(vt){return ut.removeContextProperty(vt)}),clearUser:monitor(function(){return ut.clearContext()}),startView:xt,stopSession:monitor(function(){mt.stopSession(),addTelemetryUsage({feature:"stop-session"})}),addFeatureFlagEvaluation:monitor(function(vt,Ot){mt.addFeatureFlagEvaluation(sanitize(vt),sanitize(Ot)),addTelemetryUsage({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:monitor(function(){return tt.getSessionReplayLink()}),startSessionReplayRecording:monitor(function(vt){tt.start(vt),addTelemetryUsage({feature:"start-session-replay-recording",force:vt&&vt.force})}),stopSessionReplayRecording:monitor(function(){return tt.stop()}),addDurationVital:monitor(function(vt,Ot){addTelemetryUsage({feature:"add-duration-vital"}),mt.addDurationVital({name:sanitize(vt),type:"duration",startClocks:timeStampToClocks(Ot.startTime),duration:Ot.duration,context:sanitize(Ot&&Ot.context),description:sanitize(Ot&&Ot.description)})}),startDurationVital:monitor(function(vt,Ot){return addTelemetryUsage({feature:"start-duration-vital"}),mt.startDurationVital(sanitize(vt),{context:sanitize(Ot&&Ot.context),description:sanitize(Ot&&Ot.description)})}),stopDurationVital:monitor(function(vt,Ot){addTelemetryUsage({feature:"stop-duration-vital"}),mt.stopDurationVital(typeof vt=="string"?sanitize(vt):vt,{context:sanitize(Ot&&Ot.context),description:sanitize(Ot&&Ot.description)})})});return Mt}function createPostStartStrategy(et,tt){return assign({init:function(rt){displayAlreadyInitializedError("DD_RUM",rt)},initConfiguration:et.initConfiguration},tt)}function createDOMMutationObservable(){var et=getMutationObserverConstructor();return new Observable(function(tt){if(et){var rt=new et(monitor(function(){return tt.notify()}));return rt.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return rt.disconnect()}}})}function getMutationObserverConstructor(){var et,tt=window;if(tt.Zone&&(et=getZoneJsOriginalValue(tt,"MutationObserver"),tt.MutationObserver&&et===tt.MutationObserver)){var rt=new tt.MutationObserver(noop),nt=getZoneJsOriginalValue(rt,"originalInstance");et=nt&&nt.constructor}return et||(et=tt.MutationObserver),et}var FAKE_INITIAL_DOCUMENT="initial_document",RESOURCE_TYPES=[["document",function(et){return FAKE_INITIAL_DOCUMENT===et}],["xhr",function(et){return et==="xmlhttprequest"}],["fetch",function(et){return et==="fetch"}],["beacon",function(et){return et==="beacon"}],["css",function(et,tt){return/\.css$/i.test(tt)}],["js",function(et,tt){return/\.js$/i.test(tt)}],["image",function(et,tt){return includes(["image","img","icon"],et)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(tt)!==null}],["font",function(et,tt){return/\.(woff|eot|woff2|ttf)$/i.exec(tt)!==null}],["media",function(et,tt){return includes(["audio","video"],et)||/\.(mp3|mp4)$/i.exec(tt)!==null}]];function computeResourceKind(et){var tt=et.name;if(!isValidUrl(tt))return addTelemetryDebug('Failed to construct URL for "'.concat(et.name,'"')),"other";for(var rt=getPathName(tt),nt=0,lt=RESOURCE_TYPES;nt<lt.length;nt++){var ut=lt[nt],dt=ut[0],pt=ut[1];if(pt(et.initiatorType,rt))return dt}return"other"}function areInOrder(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];for(var rt=1;rt<et.length;rt+=1)if(et[rt-1]>et[rt])return!1;return!0}function isRequestKind(et){return et.initiatorType==="xmlhttprequest"||et.initiatorType==="fetch"}function computePerformanceResourceDuration(et){var tt=et.duration,rt=et.startTime,nt=et.responseEnd;return tt===0&&rt<nt?toServerDuration(elapsed(rt,nt)):toServerDuration(tt)}function computePerformanceResourceDetails(et){if(isValidEntry(et)){var tt=et.startTime,rt=et.fetchStart,nt=et.redirectStart,lt=et.redirectEnd,ut=et.domainLookupStart,dt=et.domainLookupEnd,pt=et.connectStart,ht=et.secureConnectionStart,mt=et.connectEnd,xt=et.requestStart,Mt=et.responseStart,vt=et.responseEnd,Ot={download:formatTiming(tt,Mt,vt),first_byte:formatTiming(tt,xt,Mt)};return rt<mt&&(Ot.connect=formatTiming(tt,pt,mt),pt<=ht&&ht<=mt&&(Ot.ssl=formatTiming(tt,ht,mt))),rt<dt&&(Ot.dns=formatTiming(tt,ut,dt)),tt<lt&&(Ot.redirect=formatTiming(tt,nt,lt)),Ot}}function isValidEntry(et){if(isExperimentalFeatureEnabled(ExperimentalFeature.TOLERANT_RESOURCE_TIMINGS))return!0;var tt=areInOrder(et.startTime,et.fetchStart,et.domainLookupStart,et.domainLookupEnd,et.connectStart,et.connectEnd,et.requestStart,et.responseStart,et.responseEnd),rt=hasRedirection(et)?areInOrder(et.startTime,et.redirectStart,et.redirectEnd,et.fetchStart):!0;return tt&&rt}function hasRedirection(et){return et.redirectEnd>et.startTime}function formatTiming(et,tt,rt){if(et<=tt&&tt<=rt)return{duration:toServerDuration(elapsed(tt,rt)),start:toServerDuration(elapsed(et,tt))}}function computeSize(et){if(et.startTime<et.responseStart){var tt=et.encodedBodySize,rt=et.decodedBodySize,nt=et.transferSize;return{size:rt,encoded_body_size:tt,decoded_body_size:rt,transfer_size:nt}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function isAllowedRequestUrl(et,tt){return tt&&!et.isIntakeUrl(tt)}var DATA_URL_REGEX=/data:(.+)?(;base64)?,/g,MAX_ATTRIBUTE_VALUE_CHAR_LENGTH=24e3;function isLongDataUrl(et){return et.length<=MAX_ATTRIBUTE_VALUE_CHAR_LENGTH?!1:et.substring(0,5)==="data:"?(et=et.substring(0,MAX_ATTRIBUTE_VALUE_CHAR_LENGTH),!0):!1}function sanitizeDataUrl(et){return"".concat(et.match(DATA_URL_REGEX)[0],"[...]")}var RumPerformanceEntryType;(function(et){et.EVENT="event",et.FIRST_INPUT="first-input",et.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",et.LAYOUT_SHIFT="layout-shift",et.LONG_TASK="longtask",et.LONG_ANIMATION_FRAME="long-animation-frame",et.NAVIGATION="navigation",et.PAINT="paint",et.RESOURCE="resource"})(RumPerformanceEntryType||(RumPerformanceEntryType={}));function createPerformanceObservable(et,tt){return new Observable(function(rt){if(window.PerformanceObserver){var nt=function(ht){var mt=filterRumPerformanceEntries(et,ht);mt.length>0&&rt.notify(mt)},lt,ut=!0,dt=new PerformanceObserver(monitor(function(ht){ut?lt=setTimeout$1(function(){return nt(ht.getEntries())}):nt(ht.getEntries())}));try{dt.observe(tt)}catch{var pt=[RumPerformanceEntryType.RESOURCE,RumPerformanceEntryType.NAVIGATION,RumPerformanceEntryType.LONG_TASK,RumPerformanceEntryType.PAINT];if(includes(pt,tt.type)){tt.buffered&&(lt=setTimeout$1(function(){return nt(performance.getEntriesByType(tt.type))}));try{dt.observe({entryTypes:[tt.type]})}catch{return}}}return ut=!1,manageResourceTimingBufferFull(et),function(){dt.disconnect(),clearTimeout$1(lt)}}})}var resourceTimingBufferFullListener;function manageResourceTimingBufferFull(et){return!resourceTimingBufferFullListener&&supportPerformanceObject$1()&&"addEventListener"in performance&&(resourceTimingBufferFullListener=addEventListener(et,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){resourceTimingBufferFullListener==null||resourceTimingBufferFullListener.stop()}}function supportPerformanceObject$1(){return window.performance!==void 0&&"getEntries"in performance}function supportPerformanceTimingEvent(et){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(et)}function filterRumPerformanceEntries(et,tt){return tt.filter(function(rt){return!isForbiddenResource(et,rt)})}function isForbiddenResource(et,tt){return tt.entryType===RumPerformanceEntryType.RESOURCE&&!isAllowedRequestUrl(et,tt.name)}function supportPerformanceObject(){return window.performance!==void 0&&"getEntries"in performance}function startPerformanceCollection(et,tt){var rt=[];if(supportPerformanceObject()){var nt=performance.getEntries();setTimeout$1(function(){return handleRumPerformanceEntries(et,nt)})}if(window.PerformanceObserver){var lt=monitor(function(xt){return handleRumPerformanceEntries(et,xt.getEntries())}),ut=[RumPerformanceEntryType.LONG_TASK,RumPerformanceEntryType.PAINT],dt=[RumPerformanceEntryType.LARGEST_CONTENTFUL_PAINT,RumPerformanceEntryType.FIRST_INPUT,RumPerformanceEntryType.LAYOUT_SHIFT,RumPerformanceEntryType.EVENT];try{dt.forEach(function(xt){var Mt=new window.PerformanceObserver(lt);Mt.observe({type:xt,buffered:!0,durationThreshold:40}),rt.push(function(){return Mt.disconnect()})})}catch{ut.push.apply(ut,dt)}var pt=new PerformanceObserver(lt);try{pt.observe({entryTypes:ut}),rt.push(function(){return pt.disconnect()})}catch{}if(supportPerformanceObject()&&"addEventListener"in performance){var ht=addEventListener(tt,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()}).stop;rt.push(ht)}}if(!supportPerformanceTimingEvent(RumPerformanceEntryType.FIRST_INPUT)){var mt=retrieveFirstInputTiming(tt,function(xt){handleRumPerformanceEntries(et,[xt])}).stop;rt.push(mt)}return{stop:function(){rt.forEach(function(xt){return xt()})}}}function retrieveFirstInputTiming(et,tt){var rt=dateNow(),nt=!1,lt=addEventListeners(et,window,["click","mousedown","keydown","touchstart","pointerdown"],function(pt){if(pt.cancelable){var ht={entryType:RumPerformanceEntryType.FIRST_INPUT,processingStart:relativeNow(),processingEnd:relativeNow(),startTime:pt.timeStamp,duration:0,name:""};pt.type==="pointerdown"?ut(et,ht):dt(ht)}},{passive:!0,capture:!0}).stop;return{stop:lt};function ut(pt,ht){addEventListeners(pt,window,["pointerup","pointercancel"],function(mt){mt.type==="pointerup"&&dt(ht)},{once:!0})}function dt(pt){if(!nt){nt=!0,lt();var ht=pt.processingStart-pt.startTime;ht>=0&&ht<dateNow()-rt&&tt(pt)}}}function handleRumPerformanceEntries(et,tt){var rt=tt.filter(function(nt){return objectHasValue(RumPerformanceEntryType,nt.entryType)});rt.length&&et.notify(0,rt)}function getSyntheticsContext(){var et=getSyntheticsTestId(),tt=getSyntheticsResultId();if(et&&tt)return{test_id:et,result_id:tt,injected:willSyntheticsInjectRum()}}function limitModification(et,tt,rt){var nt=deepClone(et),lt=rt(nt);return objectEntries(tt).forEach(function(ut){var dt=ut[0],pt=ut[1],ht=get(nt,dt),mt=getType(ht);mt===pt?set(et,dt,sanitize(ht)):pt==="object"&&(mt==="undefined"||mt==="null")&&set(et,dt,{})}),lt}function get(et,tt){for(var rt=et,nt=0,lt=tt.split(".");nt<lt.length;nt++){var ut=lt[nt];if(!isValidObjectContaining(rt,ut))return;rt=rt[ut]}return rt}function set(et,tt,rt){for(var nt=et,lt=tt.split("."),ut=0;ut<lt.length;ut+=1){var dt=lt[ut];if(!isValidObject(nt))return;ut!==lt.length-1?nt=nt[dt]:nt[dt]=rt}}function isValidObject(et){return getType(et)==="object"}function isValidObjectContaining(et,tt){return isValidObject(et)&&Object.prototype.hasOwnProperty.call(et,tt)}var VIEW_MODIFIABLE_FIELD_PATHS={"view.name":"string","view.url":"string","view.referrer":"string"},USER_CUSTOMIZABLE_FIELD_PATHS={context:"object"},ROOT_MODIFIABLE_FIELD_PATHS={service:"string",version:"string"},modifiableFieldPathsByEvent;function startRumAssembly(et,tt,rt,nt,lt,ut,dt,pt,ht,mt){var xt,Mt;modifiableFieldPathsByEvent=(xt={},xt.view=isExperimentalFeatureEnabled(ExperimentalFeature.VIEW_SPECIFIC_CONTEXT)?assign({},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS):VIEW_MODIFIABLE_FIELD_PATHS,xt.error=assign({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS,ROOT_MODIFIABLE_FIELD_PATHS),xt.resource=assign({"resource.url":"string"},isExperimentalFeatureEnabled(ExperimentalFeature.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS,ROOT_MODIFIABLE_FIELD_PATHS),xt.action=assign({"action.target.name":"string"},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS,ROOT_MODIFIABLE_FIELD_PATHS),xt.long_task=assign({},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS),xt.vital=assign({},USER_CUSTOMIZABLE_FIELD_PATHS,VIEW_MODIFIABLE_FIELD_PATHS),xt);var vt=(Mt={},Mt.error=createEventRateLimiter("error",et.eventRateLimiterThreshold,mt),Mt.action=createEventRateLimiter("action",et.eventRateLimiterThreshold,mt),Mt.vital=createEventRateLimiter("vital",et.eventRateLimiterThreshold,mt),Mt),Ot=getSyntheticsContext();tt.subscribe(12,function(At){var Rt=At.startTime,zt=At.rawRumEvent,Tt=At.domainContext,Ct=At.savedCommonContext,It=At.customerContext,Dt=nt.findView(Rt),kt=lt.findUrl(Rt),qt=rt.findTrackedSession(Rt);if(qt&&Dt&&kt){var Nt=Ct||ht(),Yt=ut.findActionId(Rt),Kt={_dd:{format_version:2,drift:currentDrift(),configuration:{session_sample_rate:round(et.sessionSampleRate,3),session_replay_sample_rate:round(et.sessionReplaySampleRate,3)},browser_sdk_version:canUseEventBridge()?"5.26.0":void 0},application:{id:et.applicationId},date:timeStampNow(),service:Dt.service||et.service,version:Dt.version||et.version,source:"browser",session:{id:qt.id,type:Ot?"synthetics":pt.get()?"ci_test":"user"},view:{id:Dt.id,name:Dt.name,url:kt.url,referrer:kt.referrer},action:needToAssembleWithAction(zt)&&Yt?{id:Yt}:void 0,synthetics:Ot,ci_test:pt.get(),display:dt.get(),connectivity:getConnectivity()},Jt=combine(Kt,zt);Jt.context=combine(Nt.context,Dt.customerContext,It),"has_replay"in Jt.session||(Jt.session.has_replay=Nt.hasReplay),Jt.type==="view"&&(Jt.session.sampled_for_replay=qt.sessionReplay===1),isEmptyObject(Nt.user)||(Jt.usr=Nt.user),shouldSend(Jt,et.beforeSend,Tt,vt)&&(isEmptyObject(Jt.context)&&delete Jt.context,tt.notify(13,Jt))}})}function shouldSend(et,tt,rt,nt){var lt;if(tt){var ut=limitModification(et,modifiableFieldPathsByEvent[et.type],function(pt){return tt(pt,rt)});if(ut===!1&&et.type!=="view")return!1;ut===!1&&display.warn("Can't dismiss view events using beforeSend!")}var dt=(lt=nt[et.type])===null||lt===void 0?void 0:lt.isLimitReached();return!dt}function needToAssembleWithAction(et){return["error","resource","long_task"].indexOf(et.type)!==-1}function startInternalContext(et,tt,rt,nt,lt){return{get:function(ut){var dt=rt.findView(ut),pt=lt.findUrl(ut),ht=tt.findTrackedSession(ut);if(ht&&dt&&pt){var mt=nt.findActionId(ut);return{application_id:et,session_id:ht.id,user_action:mt?{id:mt}:void 0,view:{id:dt.id,name:dt.name,referrer:pt.referrer,url:pt.url}}}}}}var LifeCycle=AbstractLifeCycle,VIEW_CONTEXT_TIME_OUT_DELAY=SESSION_TIME_OUT_DELAY;function startViewContexts(et){var tt=createValueHistory({expireDelay:VIEW_CONTEXT_TIME_OUT_DELAY});et.subscribe(2,function(nt){tt.add(rt(nt),nt.startClocks.relative)}),et.subscribe(6,function(nt){var lt=nt.endClocks;tt.closeActive(lt.relative)}),et.subscribe(4,function(nt){var lt=tt.find(nt.startClocks.relative);lt&&nt.name&&(lt.name=nt.name)}),et.subscribe(10,function(){tt.reset()});function rt(nt){return{service:nt.service,version:nt.version,customerContext:nt.context,id:nt.id,name:nt.name,startClocks:nt.startClocks}}return{findView:function(nt){return tt.find(nt)},stop:function(){tt.stop()}}}var nextRequestIndex=1;function startRequestCollection(et,tt,rt){var nt=startTracer(tt,rt);trackXhr(et,tt,nt),trackFetch(et,tt,nt)}function trackXhr(et,tt,rt){var nt=initXhrObservable(tt).subscribe(function(lt){var ut=lt;if(isAllowedRequestUrl(tt,ut.url))switch(ut.state){case"start":rt.traceXhr(ut,ut.xhr),ut.requestIndex=getNextRequestIndex(),et.notify(7,{requestIndex:ut.requestIndex,url:ut.url});break;case"complete":rt.clearTracingIfNeeded(ut),et.notify(8,{duration:ut.duration,method:ut.method,requestIndex:ut.requestIndex,spanId:ut.spanId,startClocks:ut.startClocks,status:ut.status,traceId:ut.traceId,traceSampled:ut.traceSampled,type:"xhr",url:ut.url,xhr:ut.xhr,isAborted:ut.isAborted,handlingStack:ut.handlingStack});break}});return{stop:function(){return nt.unsubscribe()}}}function trackFetch(et,tt,rt){var nt=initFetchObservable().subscribe(function(lt){var ut=lt;if(isAllowedRequestUrl(tt,ut.url))switch(ut.state){case"start":rt.traceFetch(ut),ut.requestIndex=getNextRequestIndex(),et.notify(7,{requestIndex:ut.requestIndex,url:ut.url});break;case"resolve":waitForResponseToComplete(ut,function(dt){rt.clearTracingIfNeeded(ut),et.notify(8,{duration:dt,method:ut.method,requestIndex:ut.requestIndex,responseType:ut.responseType,spanId:ut.spanId,startClocks:ut.startClocks,status:ut.status,traceId:ut.traceId,traceSampled:ut.traceSampled,type:"fetch",url:ut.url,response:ut.response,init:ut.init,input:ut.input,isAborted:ut.isAborted,handlingStack:ut.handlingStack})});break}});return{stop:function(){return nt.unsubscribe()}}}function getNextRequestIndex(){var et=nextRequestIndex;return nextRequestIndex+=1,et}function waitForResponseToComplete(et,tt){var rt=et.response&&tryToClone(et.response);!rt||!rt.body?tt(elapsed(et.startClocks.timeStamp,timeStampNow())):readBytesFromStream(rt.body,function(){tt(elapsed(et.startClocks.timeStamp,timeStampNow()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1})}function discardNegativeDuration(et){return isNumber$1(et)&&et<0?void 0:et}function trackEventCounts(et){var tt=et.lifeCycle,rt=et.isChildEvent,nt=et.onChange,lt=nt===void 0?noop:nt,ut={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},dt=tt.subscribe(13,function(pt){var ht;if(!(pt.type==="view"||pt.type==="vital"||!rt(pt)))switch(pt.type){case"error":ut.errorCount+=1,lt();break;case"action":ut.actionCount+=1,pt.action.frustration&&(ut.frustrationCount+=pt.action.frustration.type.length),lt();break;case"long_task":ut.longTaskCount+=1,lt();break;case"resource":!((ht=pt._dd)===null||ht===void 0)&&ht.discarded||(ut.resourceCount+=1,lt());break}});return{stop:function(){dt.unsubscribe()},eventCounts:ut}}var PAGE_ACTIVITY_VALIDATION_DELAY=100,PAGE_ACTIVITY_END_DELAY=100;function waitPageActivityEnd(et,tt,rt,nt,lt){var ut=createPageActivityObservable(et,tt,rt);return doWaitPageActivityEnd(ut,nt,lt)}function doWaitPageActivityEnd(et,tt,rt){var nt,lt=!1,ut=setTimeout$1(monitor(function(){return mt({hadActivity:!1})}),PAGE_ACTIVITY_VALIDATION_DELAY),dt=rt!==void 0?setTimeout$1(monitor(function(){return mt({hadActivity:!0,end:timeStampNow()})}),rt):void 0,pt=et.subscribe(function(xt){var Mt=xt.isBusy;clearTimeout$1(ut),clearTimeout$1(nt);var vt=timeStampNow();Mt||(nt=setTimeout$1(monitor(function(){return mt({hadActivity:!0,end:vt})}),PAGE_ACTIVITY_END_DELAY))}),ht=function(){lt=!0,clearTimeout$1(ut),clearTimeout$1(nt),clearTimeout$1(dt),pt.unsubscribe()};function mt(xt){lt||(ht(),tt(xt))}return{stop:ht}}function createPageActivityObservable(et,tt,rt){return new Observable(function(nt){var lt=[],ut,dt=0;lt.push(tt.subscribe(ht),createPerformanceObservable(rt,{type:RumPerformanceEntryType.RESOURCE}).subscribe(function(mt){mt.some(function(xt){return!isExcludedUrl(rt,xt.name)})&&ht()}),et.subscribe(7,function(mt){isExcludedUrl(rt,mt.url)||(ut===void 0&&(ut=mt.requestIndex),dt+=1,ht())}),et.subscribe(8,function(mt){isExcludedUrl(rt,mt.url)||ut===void 0||mt.requestIndex<ut||(dt-=1,ht())}));var pt=trackWindowOpen(ht).stop;return function(){pt(),lt.forEach(function(mt){return mt.unsubscribe()})};function ht(){nt.notify({isBusy:dt>0})}})}function isExcludedUrl(et,tt){return matchList(et.excludedActivityUrls,tt)}function trackWindowOpen(et){return instrumentMethod(window,"open",et)}function cssEscape(et){return window.CSS&&window.CSS.escape?window.CSS.escape(et):et.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(tt,rt){return rt?tt==="\0"?"�":"".concat(tt.slice(0,-1),"\\").concat(tt.charCodeAt(tt.length-1).toString(16)," "):"\\".concat(tt)})}function elementMatches(et,tt){return et.matches?et.matches(tt):et.msMatchesSelector?et.msMatchesSelector(tt):!1}function getParentElement(et){if(et.parentElement)return et.parentElement;for(;et.parentNode;){if(et.parentNode.nodeType===Node.ELEMENT_NODE)return et.parentNode;et=et.parentNode}return null}function getClassList(et){if(et.classList)return et.classList;var tt=(et.getAttribute("class")||"").trim();return tt?tt.split(/\s+/):[]}var PLACEHOLDER=1,WeakSet$1=function(){function et(tt){var rt=this;this.map=new WeakMap,tt&&tt.forEach(function(nt){return rt.map.set(nt,PLACEHOLDER)})}return et.prototype.add=function(tt){return this.map.set(tt,PLACEHOLDER),this},et.prototype.delete=function(tt){return this.map.delete(tt)},et.prototype.has=function(tt){return this.map.has(tt)},et}();function isTextNode(et){return et.nodeType===Node.TEXT_NODE}function isCommentNode(et){return et.nodeType===Node.COMMENT_NODE}function isElementNode(et){return et.nodeType===Node.ELEMENT_NODE}function isNodeShadowHost(et){return isElementNode(et)&&!!et.shadowRoot}function isNodeShadowRoot(et){var tt=et;return!!tt.host&&tt.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&isElementNode(tt.host)}function hasChildNodes(et){return et.childNodes.length>0||isNodeShadowHost(et)}function forEachChildNodes(et,tt){for(var rt=et.firstChild;rt;)tt(rt),rt=rt.nextSibling;isNodeShadowHost(et)&&tt(et.shadowRoot)}function getParentNode(et){return isNodeShadowRoot(et)?et.host:et.parentNode}var NodePrivacyLevel={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:DefaultPrivacyLevel.ALLOW,MASK:DefaultPrivacyLevel.MASK,MASK_USER_INPUT:DefaultPrivacyLevel.MASK_USER_INPUT},PRIVACY_ATTR_NAME="data-dd-privacy",PRIVACY_ATTR_VALUE_HIDDEN="hidden",PRIVACY_CLASS_PREFIX="dd-privacy-",CENSORED_STRING_MARK="***",CENSORED_IMG_MARK="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",FORM_PRIVATE_TAG_NAMES={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},TEXT_MASKING_CHAR="x";function getNodePrivacyLevel(et,tt,rt){if(rt&&rt.has(et))return rt.get(et);var nt=getParentNode(et),lt=nt?getNodePrivacyLevel(nt,tt,rt):tt,ut=getNodeSelfPrivacyLevel(et),dt=reducePrivacyLevel(ut,lt);return rt&&rt.set(et,dt),dt}function reducePrivacyLevel(et,tt){switch(tt){case NodePrivacyLevel.HIDDEN:case NodePrivacyLevel.IGNORE:return tt}switch(et){case NodePrivacyLevel.ALLOW:case NodePrivacyLevel.MASK:case NodePrivacyLevel.MASK_USER_INPUT:case NodePrivacyLevel.HIDDEN:case NodePrivacyLevel.IGNORE:return et;default:return tt}}function getNodeSelfPrivacyLevel(et){if(isElementNode(et)){if(et.tagName==="BASE")return NodePrivacyLevel.ALLOW;if(et.tagName==="INPUT"){var tt=et;if(tt.type==="password"||tt.type==="email"||tt.type==="tel"||tt.type==="hidden")return NodePrivacyLevel.MASK;var rt=tt.getAttribute("autocomplete");if(rt&&rt.indexOf("cc-")===0)return NodePrivacyLevel.MASK}if(elementMatches(et,getPrivacySelector(NodePrivacyLevel.HIDDEN)))return NodePrivacyLevel.HIDDEN;if(elementMatches(et,getPrivacySelector(NodePrivacyLevel.MASK)))return NodePrivacyLevel.MASK;if(elementMatches(et,getPrivacySelector(NodePrivacyLevel.MASK_USER_INPUT)))return NodePrivacyLevel.MASK_USER_INPUT;if(elementMatches(et,getPrivacySelector(NodePrivacyLevel.ALLOW)))return NodePrivacyLevel.ALLOW;if(shouldIgnoreElement(et))return NodePrivacyLevel.IGNORE}}function shouldMaskNode(et,tt){switch(tt){case NodePrivacyLevel.MASK:case NodePrivacyLevel.HIDDEN:case NodePrivacyLevel.IGNORE:return!0;case NodePrivacyLevel.MASK_USER_INPUT:return isTextNode(et)?isFormElement(et.parentNode):isFormElement(et);default:return!1}}function isFormElement(et){if(!et||et.nodeType!==et.ELEMENT_NODE)return!1;var tt=et;if(tt.tagName==="INPUT")switch(tt.type){case"button":case"color":case"reset":case"submit":return!1}return!!FORM_PRIVATE_TAG_NAMES[tt.tagName]}var censorText=function(et){return et.replace(/\S/g,TEXT_MASKING_CHAR)};function getTextContent(et,tt,rt){var nt,lt=(nt=et.parentElement)===null||nt===void 0?void 0:nt.tagName,ut=et.textContent||"";if(!(tt&&!ut.trim())){var dt=rt,pt=lt==="SCRIPT";if(pt)ut=CENSORED_STRING_MARK;else if(dt===NodePrivacyLevel.HIDDEN)ut=CENSORED_STRING_MARK;else if(shouldMaskNode(et,dt))if(lt==="DATALIST"||lt==="SELECT"||lt==="OPTGROUP"){if(!ut.trim())return}else lt==="OPTION"?ut=CENSORED_STRING_MARK:ut=censorText(ut);return ut}}function shouldIgnoreElement(et){if(et.nodeName==="SCRIPT")return!0;if(et.nodeName==="LINK"){var tt=lt("rel");return/preload|prefetch/i.test(tt)&&lt("as")==="script"||tt==="shortcut icon"||tt==="icon"}if(et.nodeName==="META"){var rt=lt("name"),tt=lt("rel"),nt=lt("property");return/^msapplication-tile(image|color)$/.test(rt)||rt==="application-name"||tt==="icon"||tt==="apple-touch-icon"||tt==="shortcut icon"||rt==="keywords"||rt==="description"||/^(og|twitter|fb):/.test(nt)||/^(og|twitter):/.test(rt)||rt==="pinterest"||rt==="robots"||rt==="googlebot"||rt==="bingbot"||et.hasAttribute("http-equiv")||rt==="author"||rt==="generator"||rt==="framework"||rt==="publisher"||rt==="progid"||/^article:/.test(nt)||/^product:/.test(nt)||rt==="google-site-verification"||rt==="yandex-verification"||rt==="csrf-token"||rt==="p:domain_verify"||rt==="verify-v1"||rt==="verification"||rt==="shopify-checkout-api-token"}function lt(ut){return(et.getAttribute(ut)||"").toLowerCase()}return!1}function getPrivacySelector(et){return"[".concat(PRIVACY_ATTR_NAME,'="').concat(et,'"], .').concat(PRIVACY_CLASS_PREFIX).concat(et)}var DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE="data-dd-action-name",ACTION_NAME_PLACEHOLDER="Masked Element";function getActionNameFromElement(et,tt,rt){var nt=tt.enablePrivacyForActionName,lt=tt.actionNameAttribute,ut=getActionNameFromElementProgrammatically(et,DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE)||lt&&getActionNameFromElementProgrammatically(et,lt);return rt===NodePrivacyLevel.MASK?ut||ACTION_NAME_PLACEHOLDER:ut||getActionNameFromElementForStrategies(et,lt,priorityStrategies,nt)||getActionNameFromElementForStrategies(et,lt,fallbackStrategies,nt)||""}function getActionNameFromElementProgrammatically(et,tt){var rt;if(supportsElementClosest())rt=et.closest("[".concat(tt,"]"));else for(var nt=et;nt;){if(nt.hasAttribute(tt)){rt=nt;break}nt=getParentElement(nt)}if(rt){var lt=rt.getAttribute(tt);return truncate(normalizeWhitespace(lt.trim()))}}var priorityStrategies=[function(et,tt,rt){if(supportsLabelProperty()){if("labels"in et&&et.labels&&et.labels.length>0)return getTextualContent(et.labels[0],tt)}else if(et.id){var nt=et.ownerDocument&&find(et.ownerDocument.querySelectorAll("label"),function(lt){return lt.htmlFor===et.id});return nt&&getTextualContent(nt,tt,rt)}},function(et){if(et.nodeName==="INPUT"){var tt=et,rt=tt.getAttribute("type");if(rt==="button"||rt==="submit"||rt==="reset")return tt.value}},function(et,tt,rt){if(et.nodeName==="BUTTON"||et.nodeName==="LABEL"||et.getAttribute("role")==="button")return getTextualContent(et,tt,rt)},function(et){return et.getAttribute("aria-label")},function(et,tt,rt){var nt=et.getAttribute("aria-labelledby");if(nt)return nt.split(/\s+/).map(function(lt){return getElementById(et,lt)}).filter(function(lt){return!!lt}).map(function(lt){return getTextualContent(lt,tt,rt)}).join(" ")},function(et){return et.getAttribute("alt")},function(et){return et.getAttribute("name")},function(et){return et.getAttribute("title")},function(et){return et.getAttribute("placeholder")},function(et,tt){if("options"in et&&et.options.length>0)return getTextualContent(et.options[0],tt)}],fallbackStrategies=[function(et,tt,rt){return getTextualContent(et,tt,rt)}],MAX_PARENTS_TO_CONSIDER=10;function getActionNameFromElementForStrategies(et,tt,rt,nt){for(var lt=et,ut=0;ut<=MAX_PARENTS_TO_CONSIDER&&lt&&lt.nodeName!=="BODY"&&lt.nodeName!=="HTML"&&lt.nodeName!=="HEAD";){for(var dt=0,pt=rt;dt<pt.length;dt++){var ht=pt[dt],mt=ht(lt,tt,nt);if(typeof mt=="string"){var xt=mt.trim();if(xt)return truncate(normalizeWhitespace(xt))}}if(lt.nodeName==="FORM")break;lt=getParentElement(lt),ut+=1}}function normalizeWhitespace(et){return et.replace(/\s+/g," ")}function truncate(et){return et.length>100?"".concat(safeTruncate(et,100)," [...]"):et}function getElementById(et,tt){return et.ownerDocument?et.ownerDocument.getElementById(tt):null}function getTextualContent(et,tt,rt){if(!et.isContentEditable){if("innerText"in et){var nt=et.innerText,lt=function(ut){for(var dt=et.querySelectorAll(ut),pt=0;pt<dt.length;pt+=1){var ht=dt[pt];if("innerText"in ht){var mt=ht.innerText;mt&&mt.trim().length>0&&(nt=nt.replace(mt,""))}}};return supportsInnerTextScriptAndStyleRemoval()||lt("script, style"),lt("[".concat(DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE,"]")),tt&&lt("[".concat(tt,"]")),rt&&lt("".concat(getPrivacySelector(NodePrivacyLevel.HIDDEN),", ").concat(getPrivacySelector(NodePrivacyLevel.MASK))),nt}return et.textContent}}function supportsInnerTextScriptAndStyleRemoval(){return!isIE()}var supportsLabelPropertyResult;function supportsLabelProperty(){return supportsLabelPropertyResult===void 0&&(supportsLabelPropertyResult="labels"in HTMLInputElement.prototype),supportsLabelPropertyResult}var supportsElementClosestResult;function supportsElementClosest(){return supportsElementClosestResult===void 0&&(supportsElementClosestResult="closest"in HTMLElement.prototype),supportsElementClosestResult}var STABLE_ATTRIBUTES=[DEFAULT_PROGRAMMATIC_ACTION_NAME_ATTRIBUTE,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],GLOBALLY_UNIQUE_SELECTOR_GETTERS=[getStableAttributeSelector,getIDSelector],UNIQUE_AMONG_CHILDREN_SELECTOR_GETTERS=[getStableAttributeSelector,getClassSelector,getTagNameSelector];function getSelectorFromElement(et,tt){if(isConnected(et)){for(var rt,nt=et;nt&&nt.nodeName!=="HTML";){var lt=findSelector(nt,GLOBALLY_UNIQUE_SELECTOR_GETTERS,isSelectorUniqueGlobally,tt,rt);if(lt)return lt;var ut=findSelector(nt,UNIQUE_AMONG_CHILDREN_SELECTOR_GETTERS,isSelectorUniqueAmongSiblings,tt,rt);rt=ut||combineSelector(getPositionSelector(nt),rt),nt=getParentElement(nt)}return rt}}function isGeneratedValue(et){return/[0-9]/.test(et)}function getIDSelector(et){if(et.id&&!isGeneratedValue(et.id))return"#".concat(cssEscape(et.id))}function getClassSelector(et){if(et.tagName!=="BODY")for(var tt=getClassList(et),rt=0;rt<tt.length;rt+=1){var nt=tt[rt];if(!isGeneratedValue(nt))return"".concat(cssEscape(et.tagName),".").concat(cssEscape(nt))}}function getTagNameSelector(et){return cssEscape(et.tagName)}function getStableAttributeSelector(et,tt){if(tt){var rt=dt(tt);if(rt)return rt}for(var nt=0,lt=STABLE_ATTRIBUTES;nt<lt.length;nt++){var ut=lt[nt],rt=dt(ut);if(rt)return rt}function dt(pt){if(et.hasAttribute(pt))return"".concat(cssEscape(et.tagName),"[").concat(pt,'="').concat(cssEscape(et.getAttribute(pt)),'"]')}}function getPositionSelector(et){for(var tt=getParentElement(et).firstElementChild,rt=1;tt&&tt!==et;)tt.tagName===et.tagName&&(rt+=1),tt=tt.nextElementSibling;return"".concat(cssEscape(et.tagName),":nth-of-type(").concat(rt,")")}function findSelector(et,tt,rt,nt,lt){for(var ut=0,dt=tt;ut<dt.length;ut++){var pt=dt[ut],ht=pt(et,nt);if(ht&&rt(et,ht,lt))return combineSelector(ht,lt)}}function isSelectorUniqueGlobally(et,tt,rt){return et.ownerDocument.querySelectorAll(combineSelector(tt,rt)).length===1}function isSelectorUniqueAmongSiblings(et,tt,rt){var nt;if(rt===void 0)nt=function(pt){return elementMatches(pt,tt)};else{var lt=supportScopeSelector()?combineSelector("".concat(tt,":scope"),rt):combineSelector(tt,rt);nt=function(pt){return pt.querySelector(lt)!==null}}for(var ut=getParentElement(et),dt=ut.firstElementChild;dt;){if(dt!==et&&nt(dt))return!1;dt=dt.nextElementSibling}return!0}function combineSelector(et,tt){return tt?"".concat(et,">").concat(tt):et}var supportScopeSelectorCache;function supportScopeSelector(){if(supportScopeSelectorCache===void 0)try{document.querySelector(":scope"),supportScopeSelectorCache=!0}catch{supportScopeSelectorCache=!1}return supportScopeSelectorCache}function isConnected(et){return"isConnected"in et?et.isConnected:et.ownerDocument.documentElement.contains(et)}var MAX_DURATION_BETWEEN_CLICKS=ONE_SECOND,MAX_DISTANCE_BETWEEN_CLICKS=100;function createClickChain(et,tt){var rt=[],nt=0,lt;ut(et);function ut(ht){ht.stopObservable.subscribe(dt),rt.push(ht),clearTimeout$1(lt),lt=setTimeout$1(pt,MAX_DURATION_BETWEEN_CLICKS)}function dt(){nt===1&&rt.every(function(ht){return ht.isStopped()})&&(nt=2,tt(rt))}function pt(){clearTimeout$1(lt),nt===0&&(nt=1,dt())}return{tryAppend:function(ht){return nt!==0?!1:rt.length>0&&!areEventsSimilar(rt[rt.length-1].event,ht.event)?(pt(),!1):(ut(ht),!0)},stop:function(){pt()}}}function areEventsSimilar(et,tt){return et.target===tt.target&&mouseEventDistance(et,tt)<=MAX_DISTANCE_BETWEEN_CLICKS&&et.timeStamp-tt.timeStamp<=MAX_DURATION_BETWEEN_CLICKS}function mouseEventDistance(et,tt){return Math.sqrt(Math.pow(et.clientX-tt.clientX,2)+Math.pow(et.clientY-tt.clientY,2))}function listenActionEvents(et,tt){var rt=tt.onPointerDown,nt=tt.onPointerUp,lt,ut={selection:!1,input:!1,scroll:!1},dt,pt=[addEventListener(et,window,"pointerdown",function(ht){isValidPointerEvent(ht)&&(lt=isSelectionEmpty(),ut={selection:!1,input:!1,scroll:!1},dt=rt(ht))},{capture:!0}),addEventListener(et,window,"selectionchange",function(){(!lt||!isSelectionEmpty())&&(ut.selection=!0)},{capture:!0}),addEventListener(et,window,"scroll",function(){ut.scroll=!0},{capture:!0,passive:!0}),addEventListener(et,window,"pointerup",function(ht){if(isValidPointerEvent(ht)&&dt){var mt=ut;nt(dt,ht,function(){return mt}),dt=void 0}},{capture:!0}),addEventListener(et,window,"input",function(){ut.input=!0},{capture:!0})];return{stop:function(){pt.forEach(function(ht){return ht.stop()})}}}function isSelectionEmpty(){var et=window.getSelection();return!et||et.isCollapsed}function isValidPointerEvent(et){return et.target instanceof Element&&et.isPrimary!==!1}var MIN_CLICKS_PER_SECOND_TO_CONSIDER_RAGE=3;function computeFrustration(et,tt){if(isRage(et))return tt.addFrustration("rage_click"),et.some(isDead)&&tt.addFrustration("dead_click"),tt.hasError&&tt.addFrustration("error_click"),{isRage:!0};var rt=et.some(function(nt){return nt.getUserActivity().selection});return et.forEach(function(nt){nt.hasError&&nt.addFrustration("error_click"),isDead(nt)&&!rt&&nt.addFrustration("dead_click")}),{isRage:!1}}function isRage(et){if(et.some(function(rt){return rt.getUserActivity().selection||rt.getUserActivity().scroll}))return!1;for(var tt=0;tt<et.length-(MIN_CLICKS_PER_SECOND_TO_CONSIDER_RAGE-1);tt+=1)if(et[tt+MIN_CLICKS_PER_SECOND_TO_CONSIDER_RAGE-1].event.timeStamp-et[tt].event.timeStamp<=ONE_SECOND)return!0;return!1}var DEAD_CLICK_EXCLUDE_SELECTOR='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function isDead(et){return et.hasPageActivity||et.getUserActivity().input||et.getUserActivity().scroll?!1:!elementMatches(et.event.target,DEAD_CLICK_EXCLUDE_SELECTOR)}var CLICK_ACTION_MAX_DURATION=10*ONE_SECOND,ACTION_CONTEXT_TIME_OUT_DELAY=5*ONE_MINUTE;function trackClickActions(et,tt,rt){var nt=createValueHistory({expireDelay:ACTION_CONTEXT_TIME_OUT_DELAY}),lt=new Observable,ut;et.subscribe(10,function(){nt.reset()}),et.subscribe(5,mt);var dt=listenActionEvents(rt,{onPointerDown:function(xt){return processPointerDown(rt,et,tt,xt)},onPointerUp:function(xt,Mt,vt){var Ot=xt.clickActionBase,At=xt.hadActivityOnPointerDown;startClickAction(rt,et,tt,nt,lt,ht,Ot,Mt,vt,At)}}).stop,pt={findActionId:function(xt){return nt.findAll(xt)}};return{stop:function(){mt(),lt.notify(),dt()},actionContexts:pt};function ht(xt){if(!ut||!ut.tryAppend(xt)){var Mt=xt.clone();ut=createClickChain(xt,function(vt){finalizeClicks(vt,Mt)})}}function mt(){ut&&ut.stop()}}function processPointerDown(et,tt,rt,nt){var lt=et.enablePrivacyForActionName?getNodePrivacyLevel(nt.target,et.defaultPrivacyLevel):NodePrivacyLevel.ALLOW;if(lt!==NodePrivacyLevel.HIDDEN){var ut=computeClickActionBase(nt,lt,et),dt=!1;return waitPageActivityEnd(tt,rt,et,function(pt){dt=pt.hadActivity},PAGE_ACTIVITY_VALIDATION_DELAY),{clickActionBase:ut,hadActivityOnPointerDown:function(){return dt}}}}function startClickAction(et,tt,rt,nt,lt,ut,dt,pt,ht,mt){var xt=newClick(tt,nt,ht,dt,pt);ut(xt);var Mt=waitPageActivityEnd(tt,rt,et,function(At){At.hadActivity&&At.end<xt.startClocks.timeStamp?xt.discard():At.hadActivity?xt.stop(At.end):mt()?xt.stop(xt.startClocks.timeStamp):xt.stop()},CLICK_ACTION_MAX_DURATION).stop,vt=tt.subscribe(5,function(At){var Rt=At.endClocks;xt.stop(Rt.timeStamp)}),Ot=lt.subscribe(function(){xt.stop()});xt.stopObservable.subscribe(function(){vt.unsubscribe(),Mt(),Ot.unsubscribe()})}function computeClickActionBase(et,tt,rt){var nt=et.target.getBoundingClientRect();return{type:"click",target:{width:Math.round(nt.width),height:Math.round(nt.height),selector:getSelectorFromElement(et.target,rt.actionNameAttribute)},position:{x:Math.round(et.clientX-nt.left),y:Math.round(et.clientY-nt.top)},name:getActionNameFromElement(et.target,rt,tt)}}function newClick(et,tt,rt,nt,lt){var ut=generateUUID(),dt=clocksNow(),pt=tt.add(ut,dt.relative),ht=trackEventCounts({lifeCycle:et,isChildEvent:function(At){return At.action!==void 0&&(Array.isArray(At.action.id)?includes(At.action.id,ut):At.action.id===ut)}}),mt=0,xt,Mt=[],vt=new Observable;function Ot(At){mt===0&&(xt=At,mt=1,xt?pt.close(getRelativeTime(xt)):pt.remove(),ht.stop(),vt.notify())}return{event:lt,stop:Ot,stopObservable:vt,get hasError(){return ht.eventCounts.errorCount>0},get hasPageActivity(){return xt!==void 0},getUserActivity:rt,addFrustration:function(At){Mt.push(At)},startClocks:dt,isStopped:function(){return mt===1||mt===2},clone:function(){return newClick(et,tt,rt,nt,lt)},validate:function(At){if(Ot(),mt===1){var Rt=ht.eventCounts,zt=Rt.resourceCount,Tt=Rt.errorCount,Ct=Rt.longTaskCount,It=assign({type:"click",duration:xt&&elapsed(dt.timeStamp,xt),startClocks:dt,id:ut,frustrationTypes:Mt,counts:{resourceCount:zt,errorCount:Tt,longTaskCount:Ct},events:At??[lt],event:lt},nt);et.notify(1,It),mt=2}},discard:function(){Ot(),mt=2}}}function finalizeClicks(et,tt){var rt=computeFrustration(et,tt).isRage;rt?(et.forEach(function(nt){return nt.discard()}),tt.stop(timeStampNow()),tt.validate(et.map(function(nt){return nt.event}))):(tt.discard(),et.forEach(function(nt){return nt.validate()}))}function startActionCollection(et,tt,rt,nt){et.subscribe(1,function(ut){return et.notify(12,processAction(ut,nt))});var lt={findActionId:noop};return rt.trackUserInteractions&&(lt=trackClickActions(et,tt,rt).actionContexts),{addAction:function(ut,dt){et.notify(12,assign({savedCommonContext:dt},processAction(ut,nt)))},actionContexts:lt}}function processAction(et,tt){var rt=isAutoAction(et)?{action:{id:et.id,loading_time:discardNegativeDuration(toServerDuration(et.duration)),frustration:{type:et.frustrationTypes},error:{count:et.counts.errorCount},long_task:{count:et.counts.longTaskCount},resource:{count:et.counts.resourceCount}},_dd:{action:{target:et.target,position:et.position}}}:void 0,nt=isAutoAction(et)?void 0:et.context,lt=combine({action:{id:generateUUID(),target:{name:et.name},type:et.type},date:et.startClocks.timeStamp,type:"action",view:{in_foreground:tt.wasInPageStateAt("active",et.startClocks.relative)}},rt),ut=isAutoAction(et)?{events:et.events}:{};return!isAutoAction(et)&&et.handlingStack&&(ut.handlingStack=et.handlingStack),{customerContext:nt,rawRumEvent:lt,startTime:et.startClocks.relative,domainContext:ut}}function isAutoAction(et){return et.type!=="custom"}function trackConsoleError(et){var tt=initConsoleObservable([ConsoleApiName.error]).subscribe(function(rt){return et.notify(rt.error)});return{stop:function(){tt.unsubscribe()}}}function trackReportError(et,tt){var rt=initReportObservable(et,[RawReportType.cspViolation,RawReportType.intervention]).subscribe(function(nt){return tt.notify(nt)});return{stop:function(){rt.unsubscribe()}}}function startErrorCollection(et,tt,rt,nt){var lt=new Observable;return trackConsoleError(lt),trackRuntimeError(lt),trackReportError(tt,lt),lt.subscribe(function(ut){return et.notify(14,{error:ut})}),doStartErrorCollection(et,rt,nt)}function doStartErrorCollection(et,tt,rt){return et.subscribe(14,function(nt){var lt=nt.error,ut=nt.customerContext,dt=nt.savedCommonContext;et.notify(12,assign({customerContext:ut,savedCommonContext:dt},processError(lt,tt,rt)))}),{addError:function(nt,lt){var ut=nt.error,dt=nt.handlingStack,pt=nt.startClocks,ht=nt.context,mt=ut instanceof Error?computeStackTrace(ut):void 0,xt=computeRawError({stackTrace:mt,originalError:ut,handlingStack:dt,startClocks:pt,nonErrorPrefix:"Provided",source:ErrorSource.CUSTOM,handling:"handled"});et.notify(14,{customerContext:ht,savedCommonContext:lt,error:xt})}}}function processError(et,tt,rt){var nt={date:et.startClocks.timeStamp,error:{id:generateUUID(),message:et.message,source:et.source,stack:et.stack,handling_stack:et.handlingStack,type:et.type,handling:et.handling,causes:et.causes,source_type:"browser",fingerprint:et.fingerprint,csp:et.csp},type:"error",view:{in_foreground:tt.wasInPageStateAt("active",et.startClocks.relative)}},lt=rt.findFeatureFlagEvaluations(et.startClocks.relative);lt&&!isEmptyObject(lt)&&(nt.feature_flags=lt);var ut={error:et.originalError,handlingStack:et.handlingStack};return{rawRumEvent:nt,startTime:et.startClocks.relative,domainContext:ut}}function startLongTaskCollection(et,tt){et.subscribe(0,function(rt){for(var nt=0,lt=rt;nt<lt.length;nt++){var ut=lt[nt];if(ut.entryType!==RumPerformanceEntryType.LONG_TASK||!tt.trackLongTasks)break;var dt=relativeToClocks(ut.startTime),pt={date:dt.timeStamp,long_task:{id:generateUUID(),entry_type:"long-task",duration:toServerDuration(ut.duration)},type:"long_task",_dd:{discarded:!1}};et.notify(12,{rawRumEvent:pt,startTime:dt.relative,domainContext:{performanceEntry:ut}})}})}var alreadyMatchedEntries=new WeakSet$1;function matchRequestTiming(et){if(!(!performance||!("getEntriesByName"in performance))){var tt=performance.getEntriesByName(et.url,"resource");if(!(!tt.length||!("toJSON"in tt[0]))){var rt=tt.filter(function(nt){return!alreadyMatchedEntries.has(nt)}).filter(function(nt){return isValidEntry(nt)}).filter(function(nt){return isBetween(nt,et.startClocks.relative,endTime({startTime:et.startClocks.relative,duration:et.duration}))});if(rt.length===1)return alreadyMatchedEntries.add(rt[0]),rt[0].toJSON()}}}function endTime(et){return addDuration(et.startTime,et.duration)}function isBetween(et,tt,rt){var nt=1;return et.startTime>=tt-nt&&endTime(et)<=addDuration(rt,nt)}var INITIAL_DOCUMENT_OUTDATED_TRACE_ID_THRESHOLD=2*ONE_MINUTE;function getDocumentTraceId(et){var tt=getDocumentTraceDataFromMeta(et)||getDocumentTraceDataFromComment(et);if(!(!tt||tt.traceTime<=dateNow()-INITIAL_DOCUMENT_OUTDATED_TRACE_ID_THRESHOLD))return tt.traceId}function getDocumentTraceDataFromMeta(et){var tt=et.querySelector("meta[name=dd-trace-id]"),rt=et.querySelector("meta[name=dd-trace-time]");return createDocumentTraceData(tt&&tt.content,rt&&rt.content)}function getDocumentTraceDataFromComment(et){var tt=findTraceComment(et);if(tt)return createDocumentTraceData(findCommaSeparatedValue(tt,"trace-id"),findCommaSeparatedValue(tt,"trace-time"))}function createDocumentTraceData(et,tt){var rt=tt&&Number(tt);if(!(!et||!rt))return{traceId:et,traceTime:rt}}function findTraceComment(et){for(var tt=0;tt<et.childNodes.length;tt+=1){var rt=getTraceCommentFromNode(et.childNodes[tt]);if(rt)return rt}if(et.body)for(var tt=et.body.childNodes.length-1;tt>=0;tt-=1){var nt=et.body.childNodes[tt],rt=getTraceCommentFromNode(nt);if(rt)return rt;if(!isTextNode(nt))break}}function getTraceCommentFromNode(et){if(et&&isCommentNode(et)){var tt=/^\s*DATADOG;(.*?)\s*$/.exec(et.data);if(tt)return tt[1]}}function computeRelativePerformanceTiming(){var et={},tt=performance.timing;for(var rt in tt)if(isNumber$1(tt[rt])){var nt=rt,lt=tt[nt];et[nt]=lt===0?0:getRelativeTime(lt)}return et}function retrieveInitialDocumentResourceTiming(et,tt){runOnReadyState(et,"interactive",function(){var rt,nt={entryType:RumPerformanceEntryType.RESOURCE,initiatorType:FAKE_INITIAL_DOCUMENT,traceId:getDocumentTraceId(document),toJSON:function(){return assign({},rt,{toJSON:void 0})}};if(supportPerformanceTimingEvent(RumPerformanceEntryType.NAVIGATION)&&performance.getEntriesByType(RumPerformanceEntryType.NAVIGATION).length>0){var lt=performance.getEntriesByType(RumPerformanceEntryType.NAVIGATION)[0];rt=assign(lt.toJSON(),nt)}else{var ut=computeRelativePerformanceTiming();rt=assign(ut,{decodedBodySize:0,encodedBodySize:0,transferSize:0,renderBlockingStatus:"non-blocking",duration:ut.responseEnd,name:window.location.href,startTime:0},nt)}tt(rt)})}function startResourceCollection(et,tt,rt,nt){nt===void 0&&(nt=retrieveInitialDocumentResourceTiming),et.subscribe(8,function(ut){var dt=processRequest(ut,tt,rt);dt&&et.notify(12,dt)});var lt=createPerformanceObservable(tt,{type:RumPerformanceEntryType.RESOURCE,buffered:!0}).subscribe(function(ut){for(var dt=0,pt=ut;dt<pt.length;dt++){var ht=pt[dt];if(!isRequestKind(ht)){var mt=processResourceEntry(ht,tt);mt&&et.notify(12,mt)}}});return nt(tt,function(ut){var dt=processResourceEntry(ut,tt);dt&&et.notify(12,dt)}),{stop:function(){lt.unsubscribe()}}}function processRequest(et,tt,rt){var nt=matchRequestTiming(et),lt=nt?relativeToClocks(nt.startTime):et.startClocks,ut=computeRequestTracingInfo(et,tt);if(!(!tt.trackResources&&!ut)){var dt=et.type==="xhr"?"xhr":"fetch",pt=nt?computePerformanceEntryMetrics(nt):void 0,ht=computeRequestDuration(rt,lt,et.duration),mt=combine({date:lt.timeStamp,resource:{id:generateUUID(),type:dt,duration:ht,method:et.method,status_code:et.status,url:isLongDataUrl(et.url)?sanitizeDataUrl(et.url):et.url},type:"resource",_dd:{discarded:!tt.trackResources}},ut,pt);return{startTime:lt.relative,rawRumEvent:mt,domainContext:{performanceEntry:nt,xhr:et.xhr,response:et.response,requestInput:et.input,requestInit:et.init,error:et.error,isAborted:et.isAborted,handlingStack:et.handlingStack}}}}function processResourceEntry(et,tt){var rt=relativeToClocks(et.startTime),nt=computeEntryTracingInfo(et,tt);if(!(!tt.trackResources&&!nt)){var lt=computeResourceKind(et),ut=computePerformanceEntryMetrics(et),dt=combine({date:rt.timeStamp,resource:{id:generateUUID(),type:lt,url:et.name,status_code:discardZeroStatus(et.responseStatus)},type:"resource",_dd:{discarded:!tt.trackResources}},nt,ut);return{startTime:rt.relative,rawRumEvent:dt,domainContext:{performanceEntry:et}}}}function computePerformanceEntryMetrics(et){var tt=et.renderBlockingStatus;return{resource:assign({duration:computePerformanceResourceDuration(et),render_blocking_status:tt},computeSize(et),computePerformanceResourceDetails(et))}}function computeRequestTracingInfo(et,tt){var rt=et.traceSampled&&et.traceId&&et.spanId;if(rt)return{_dd:{span_id:et.spanId.toDecimalString(),trace_id:et.traceId.toDecimalString(),rule_psr:getRulePsr(tt)}}}function computeEntryTracingInfo(et,tt){var rt=et.traceId;if(rt)return{_dd:{trace_id:et.traceId,span_id:createTraceIdentifier().toDecimalString(),rule_psr:getRulePsr(tt)}}}function getRulePsr(et){return isNumber$1(et.traceSampleRate)?et.traceSampleRate/100:void 0}function computeRequestDuration(et,tt,rt){return et.wasInPageStateDuringPeriod("frozen",tt.relative,rt)?void 0:toServerDuration(rt)}function discardZeroStatus(et){return et===0?void 0:et}function trackViewEventCounts(et,tt,rt){var nt=trackEventCounts({lifeCycle:et,isChildEvent:function(dt){return dt.view.id===tt},onChange:rt}),lt=nt.stop,ut=nt.eventCounts;return{stop:lt,eventCounts:ut}}var FCP_MAXIMUM_DELAY=10*ONE_MINUTE;function trackFirstContentfulPaint(et,tt,rt){var nt=et.subscribe(0,function(lt){var ut=find(lt,function(dt){return dt.entryType===RumPerformanceEntryType.PAINT&&dt.name==="first-contentful-paint"&&dt.startTime<tt.timeStamp&&dt.startTime<FCP_MAXIMUM_DELAY});ut&&rt(ut.startTime)}).unsubscribe;return{stop:nt}}function trackFirstInput(et,tt,rt,nt){var lt=et.subscribe(0,function(ut){var dt=find(ut,function(mt){return mt.entryType===RumPerformanceEntryType.FIRST_INPUT&&mt.startTime<rt.timeStamp});if(dt){var pt=elapsed(dt.startTime,dt.processingStart),ht=void 0;dt.target&&isElementNode(dt.target)&&(ht=getSelectorFromElement(dt.target,tt.actionNameAttribute)),nt({delay:pt>=0?pt:0,time:dt.startTime,targetSelector:ht})}}).unsubscribe;return{stop:lt}}function trackNavigationTimings(et,tt){var rt=function(lt){isIncompleteNavigation(lt)||tt(processNavigationEntry(lt))},nt=noop;return supportPerformanceTimingEvent(RumPerformanceEntryType.NAVIGATION)?nt=createPerformanceObservable(et,{type:RumPerformanceEntryType.NAVIGATION,buffered:!0}).subscribe(function(lt){return forEach(lt,rt)}).unsubscribe:retrieveNavigationTiming(et,rt),{stop:nt}}function processNavigationEntry(et){return{domComplete:et.domComplete,domContentLoaded:et.domContentLoadedEventEnd,domInteractive:et.domInteractive,loadEvent:et.loadEventEnd,firstByte:et.responseStart>=0&&et.responseStart<=relativeNow()?et.responseStart:void 0}}function isIncompleteNavigation(et){return et.loadEventEnd<=0}function retrieveNavigationTiming(et,tt){runOnReadyState(et,"complete",function(){setTimeout$1(function(){return tt(computeRelativePerformanceTiming())})})}var LCP_MAXIMUM_DELAY=10*ONE_MINUTE;function trackLargestContentfulPaint(et,tt,rt,nt,lt){var ut=1/0,dt=addEventListeners(tt,nt,["pointerdown","keydown"],function(mt){ut=mt.timeStamp},{capture:!0,once:!0}).stop,pt=0,ht=et.subscribe(0,function(mt){var xt=findLast(mt,function(vt){return vt.entryType===RumPerformanceEntryType.LARGEST_CONTENTFUL_PAINT&&vt.startTime<ut&&vt.startTime<rt.timeStamp&&vt.startTime<LCP_MAXIMUM_DELAY&&vt.size>pt});if(xt){var Mt=void 0;xt.element&&(Mt=getSelectorFromElement(xt.element,tt.actionNameAttribute)),lt({value:xt.startTime,targetSelector:Mt}),pt=xt.size}}).unsubscribe;return{stop:function(){dt(),ht()}}}function trackFirstHidden(et,tt){tt===void 0&&(tt=window);var rt,nt;return document.visibilityState==="hidden"?rt=0:(rt=1/0,nt=addEventListeners(et,tt,["pagehide","visibilitychange"],function(lt){(lt.type==="pagehide"||document.visibilityState==="hidden")&&(rt=lt.timeStamp,nt())},{capture:!0}).stop),{get timeStamp(){return rt},stop:function(){nt==null||nt()}}}function trackInitialViewMetrics(et,tt,rt,nt){var lt={},ut=trackNavigationTimings(tt,function(Mt){rt(Mt.loadEvent),lt.navigationTimings=Mt,nt()}).stop,dt=trackFirstHidden(tt),pt=trackFirstContentfulPaint(et,dt,function(Mt){lt.firstContentfulPaint=Mt,nt()}).stop,ht=trackLargestContentfulPaint(et,tt,dt,window,function(Mt){lt.largestContentfulPaint=Mt,nt()}).stop,mt=trackFirstInput(et,tt,dt,function(Mt){lt.firstInput=Mt,nt()}).stop;function xt(){ut(),pt(),ht(),mt(),dt.stop()}return{stop:xt,initialViewMetrics:lt}}function trackCumulativeLayoutShift(et,tt,rt,nt){if(!isLayoutShiftSupported())return{stop:noop};var lt=0,ut,dt;nt({value:0});var pt=slidingSessionWindow(),ht=tt.subscribe(0,function(mt){for(var xt=0,Mt=mt;xt<Mt.length;xt++){var vt=Mt[xt];if(vt.entryType===RumPerformanceEntryType.LAYOUT_SHIFT&&!vt.hadRecentInput){var Ot=pt.update(vt),At=Ot.cumulatedValue,Rt=Ot.isMaxValue;if(Rt){var zt=getTargetFromSource(vt.sources);ut=zt?new WeakRef(zt):void 0,dt=elapsed(rt,vt.startTime)}if(At>lt){lt=At;var zt=ut==null?void 0:ut.deref();nt({value:round(lt,4),targetSelector:zt&&getSelectorFromElement(zt,et.actionNameAttribute),time:dt})}}}}).unsubscribe;return{stop:ht}}function getTargetFromSource(et){var tt;if(et)return(tt=find(et,function(rt){return!!rt.node&&isElementNode(rt.node)}))===null||tt===void 0?void 0:tt.node}var MAX_WINDOW_DURATION=5*ONE_SECOND,MAX_UPDATE_GAP=ONE_SECOND;function slidingSessionWindow(){var et=0,tt,rt,nt=0;return{update:function(lt){var ut=tt===void 0||lt.startTime-rt>=MAX_UPDATE_GAP||lt.startTime-tt>=MAX_WINDOW_DURATION,dt;return ut?(tt=rt=lt.startTime,nt=et=lt.value,dt=!0):(et+=lt.value,rt=lt.startTime,dt=lt.value>nt,dt&&(nt=lt.value)),{cumulatedValue:et,isMaxValue:dt}}}}function isLayoutShiftSupported(){return supportPerformanceTimingEvent(RumPerformanceEntryType.LAYOUT_SHIFT)&&"WeakRef"in window}var observer,interactionCountEstimate=0,minKnownInteractionId=1/0,maxKnownInteractionId=0;function initInteractionCountPolyfill(){"interactionCount"in performance||observer||(observer=new window.PerformanceObserver(monitor(function(et){et.getEntries().forEach(function(tt){var rt=tt;rt.interactionId&&(minKnownInteractionId=Math.min(minKnownInteractionId,rt.interactionId),maxKnownInteractionId=Math.max(maxKnownInteractionId,rt.interactionId),interactionCountEstimate=(maxKnownInteractionId-minKnownInteractionId)/7+1)})})),observer.observe({type:"event",buffered:!0,durationThreshold:0}))}var getInteractionCount=function(){return observer?interactionCountEstimate:window.performance.interactionCount||0},MAX_INTERACTION_ENTRIES=10,MAX_INP_VALUE=1*ONE_MINUTE;function trackInteractionToNextPaint(et,tt,rt,nt){if(!isInteractionToNextPaintSupported())return{getInteractionToNextPaint:function(){},setViewEnd:noop,stop:noop};var lt=trackViewInteractionCount(rt),ut=lt.getViewInteractionCount,dt=lt.stopViewInteractionCount,pt=1/0,ht=trackLongestInteractions(ut),mt=-1,xt,Mt,vt=nt.subscribe(0,function(Ot){for(var At=0,Rt=Ot;At<Rt.length;At++){var zt=Rt[At];(zt.entryType===RumPerformanceEntryType.EVENT||zt.entryType===RumPerformanceEntryType.FIRST_INPUT)&&zt.interactionId&&zt.startTime>=tt&&zt.startTime<=pt&&ht.process(zt)}var Tt=ht.estimateP98Interaction();Tt&&Tt.duration!==mt&&(mt=Tt.duration,Mt=elapsed(tt,Tt.startTime),Tt.target&&isElementNode(Tt.target)?xt=getSelectorFromElement(Tt.target,et.actionNameAttribute):xt=void 0)}).unsubscribe;return{getInteractionToNextPaint:function(){if(mt>=0)return{value:Math.min(mt,MAX_INP_VALUE),targetSelector:xt,time:Mt};if(ut())return{value:0}},setViewEnd:function(Ot){pt=Ot,dt()},stop:vt}}function trackLongestInteractions(et){var tt=[];function rt(){tt.sort(function(nt,lt){return lt.duration-nt.duration}).splice(MAX_INTERACTION_ENTRIES)}return{process:function(nt){var lt=tt.findIndex(function(dt){return nt.interactionId===dt.interactionId}),ut=tt[tt.length-1];lt!==-1?nt.duration>tt[lt].duration&&(tt[lt]=nt,rt()):(tt.length<MAX_INTERACTION_ENTRIES||nt.duration>ut.duration)&&(tt.push(nt),rt())},estimateP98Interaction:function(){var nt=Math.min(tt.length-1,Math.floor(et()/50));return tt[nt]}}}function trackViewInteractionCount(et){initInteractionCountPolyfill();var tt=et==="initial_load"?0:getInteractionCount(),rt={stopped:!1};function nt(){return getInteractionCount()-tt}return{getViewInteractionCount:function(){return rt.stopped?rt.interactionCount:nt()},stopViewInteractionCount:function(){rt={stopped:!0,interactionCount:nt()}}}}function isInteractionToNextPaintSupported(){return supportPerformanceTimingEvent(RumPerformanceEntryType.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function trackLoadingTime(et,tt,rt,nt,lt,ut){var dt=nt==="initial_load",pt=!0,ht=[];function mt(){!pt&&!dt&&ht.length>0&&ut(Math.max.apply(Math,ht))}var xt=waitPageActivityEnd(et,tt,rt,function(Mt){pt&&(pt=!1,Mt.hadActivity&&ht.push(elapsed(lt.timeStamp,Mt.end)),mt())}).stop;return{stop:xt,setLoadEvent:function(Mt){dt&&(dt=!1,ht.push(Mt),mt())}}}function getScrollX(){var et,tt=window.visualViewport;return tt?et=tt.pageLeft-tt.offsetLeft:window.scrollX!==void 0?et=window.scrollX:et=window.pageXOffset||0,Math.round(et)}function getScrollY(){var et,tt=window.visualViewport;return tt?et=tt.pageTop-tt.offsetTop:window.scrollY!==void 0?et=window.scrollY:et=window.pageYOffset||0,Math.round(et)}var viewportObservable;function initViewportObservable(et){return viewportObservable||(viewportObservable=createViewportObservable(et)),viewportObservable}function createViewportObservable(et){return new Observable(function(tt){var rt=throttle(function(){tt.notify(getViewportDimension())},200).throttled;return addEventListener(et,window,"resize",rt,{capture:!0,passive:!0}).stop})}function getViewportDimension(){var et=window.visualViewport;return et?{width:Number(et.width*et.scale),height:Number(et.height*et.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var THROTTLE_SCROLL_DURATION=ONE_SECOND;function trackScrollMetrics(et,tt,rt,nt){nt===void 0&&(nt=createScrollValuesObservable(et));var lt=0,ut=0,dt=0,pt=nt.subscribe(function(ht){var mt=ht.scrollDepth,xt=ht.scrollTop,Mt=ht.scrollHeight,vt=!1;if(mt>lt&&(lt=mt,vt=!0),Mt>ut){ut=Mt;var Ot=relativeNow();dt=elapsed(tt.relative,Ot),vt=!0}vt&&rt({maxDepth:Math.min(lt,ut),maxDepthScrollTop:xt,maxScrollHeight:ut,maxScrollHeightTime:dt})});return{stop:function(){return pt.unsubscribe()}}}function computeScrollValues(){var et=getScrollY(),tt=getViewportDimension().height,rt=Math.round((document.scrollingElement||document.documentElement).scrollHeight),nt=Math.round(tt+et);return{scrollHeight:rt,scrollDepth:nt,scrollTop:et}}function createScrollValuesObservable(et,tt){return tt===void 0&&(tt=THROTTLE_SCROLL_DURATION),new Observable(function(rt){function nt(){rt.notify(computeScrollValues())}if(window.ResizeObserver){var lt=throttle(nt,tt,{leading:!1,trailing:!0}),ut=document.scrollingElement||document.documentElement,dt=new ResizeObserver(monitor(lt.throttled));dt.observe(ut);var pt=addEventListener(et,window,"scroll",lt.throttled,{passive:!0});return function(){lt.cancel(),dt.unobserve(ut),pt.stop()}}})}function trackCommonViewMetrics(et,tt,rt,nt,lt,ut){var dt={},pt=trackLoadingTime(et,tt,rt,lt,ut,function(zt){dt.loadingTime=zt,nt()}),ht=pt.stop,mt=pt.setLoadEvent,xt=trackScrollMetrics(rt,ut,function(zt){dt.scroll=zt}).stop,Mt=trackCumulativeLayoutShift(rt,et,ut.relative,function(zt){dt.cumulativeLayoutShift=zt,nt()}).stop,vt=trackInteractionToNextPaint(rt,ut.relative,lt,et),Ot=vt.stop,At=vt.getInteractionToNextPaint,Rt=vt.setViewEnd;return{stop:function(){ht(),Mt(),xt()},stopINPTracking:Ot,setLoadEvent:mt,setViewEnd:Rt,getCommonViewMetrics:function(){return dt.interactionToNextPaint=At(),dt}}}var THROTTLE_VIEW_UPDATE_PERIOD=3e3,SESSION_KEEP_ALIVE_INTERVAL=5*ONE_MINUTE,KEEP_TRACKING_AFTER_VIEW_DELAY=5*ONE_MINUTE;function trackViews(et,tt,rt,nt,lt,ut,dt){var pt=new Set,ht=xt("initial_load",clocksOrigin(),dt);Mt();var mt;ut&&(mt=vt(lt));function xt(Ot,At,Rt){var zt=newView(tt,rt,nt,et,Ot,At,Rt);return pt.add(zt),zt.stopObservable.subscribe(function(){pt.delete(zt)}),zt}function Mt(){tt.subscribe(10,function(){ht=xt("route_change",void 0,{name:ht.name,service:ht.service,version:ht.version,context:ht.context})}),tt.subscribe(9,function(){ht.end({sessionIsActive:!1})}),tt.subscribe(11,function(Ot){Ot.reason===PageExitReason.UNLOADING&&ht.end()})}function vt(Ot){return Ot.subscribe(function(At){var Rt=At.oldLocation,zt=At.newLocation;areDifferentLocation(Rt,zt)&&(ht.end(),ht=xt("route_change"))})}return{addTiming:function(Ot,At){At===void 0&&(At=timeStampNow()),ht.addTiming(Ot,At)},startView:function(Ot,At){ht.end({endClocks:At}),ht=xt("route_change",At,Ot)},updateViewName:function(Ot){ht.updateViewName(Ot)},stop:function(){mt&&mt.unsubscribe(),ht.end(),pt.forEach(function(Ot){return Ot.stop()})}}}function newView(et,tt,rt,nt,lt,ut,dt){ut===void 0&&(ut=clocksNow());var pt=generateUUID(),ht=new Observable,mt={},xt=0,Mt,vt=shallowClone(nt),Ot=!0,At,Rt,zt,Tt;dt&&(At=dt.name,Rt=dt.service||void 0,zt=dt.version||void 0,Tt=isExperimentalFeatureEnabled(ExperimentalFeature.VIEW_SPECIFIC_CONTEXT)?dt.context:void 0);var Ct={id:pt,name:At,startClocks:ut,service:Rt,version:zt,context:Tt};et.notify(2,Ct),et.notify(3,Ct);var It=throttle(Ht,THROTTLE_VIEW_UPDATE_PERIOD,{leading:!1}),Dt=It.throttled,kt=It.cancel,qt=trackCommonViewMetrics(et,tt,rt,Dt,lt,ut),Nt=qt.setLoadEvent,Yt=qt.setViewEnd,Kt=qt.stop,Jt=qt.stopINPTracking,Qt=qt.getCommonViewMetrics,Bt=lt==="initial_load"?trackInitialViewMetrics(et,rt,Nt,Dt):{stop:noop,initialViewMetrics:{}},Ft=Bt.stop,$t=Bt.initialViewMetrics,jt=trackViewEventCounts(et,pt,Dt),Wt=jt.stop,Ut=jt.eventCounts,Vt=setInterval$1(Ht,SESSION_KEEP_ALIVE_INTERVAL);Ht();function Ht(){kt(),xt+=1;var Gt=Mt===void 0?timeStampNow():Mt.timeStamp;et.notify(4,{customTimings:mt,documentVersion:xt,id:pt,name:At,service:Rt,version:zt,context:Tt,loadingType:lt,location:vt,startClocks:ut,commonViewMetrics:Qt(),initialViewMetrics:$t,duration:elapsed(ut.timeStamp,Gt),isActive:Mt===void 0,sessionIsActive:Ot,eventCounts:Ut})}return{get name(){return At},service:Rt,version:zt,context:Tt,stopObservable:ht,end:function(Gt){var Zt=this,Xt,er;Gt===void 0&&(Gt={}),!Mt&&(Mt=(Xt=Gt.endClocks)!==null&&Xt!==void 0?Xt:clocksNow(),Ot=(er=Gt.sessionIsActive)!==null&&er!==void 0?er:!0,et.notify(5,{endClocks:Mt}),et.notify(6,{endClocks:Mt}),clearInterval$1(Vt),Yt(Mt.relative),Kt(),Ht(),setTimeout$1(function(){Zt.stop()},KEEP_TRACKING_AFTER_VIEW_DELAY))},stop:function(){Ft(),Wt(),Jt(),ht.notify()},addTiming:function(Gt,Zt){if(!Mt){var Xt=looksLikeRelativeTime(Zt)?Zt:elapsed(ut.timeStamp,Zt);mt[sanitizeTiming(Gt)]=Xt,Dt()}},updateViewName:function(Gt){isExperimentalFeatureEnabled(ExperimentalFeature.UPDATE_VIEW_NAME)&&(At=Gt,Ht())}}}function sanitizeTiming(et){var tt=et.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return tt!==et&&display.warn("Invalid timing name: ".concat(et,", sanitized to: ").concat(tt)),tt}function areDifferentLocation(et,tt){return et.pathname!==tt.pathname||!isHashAnAnchor(tt.hash)&&getPathFromHash(tt.hash)!==getPathFromHash(et.hash)}function isHashAnAnchor(et){var tt=et.substring(1);return tt!==""&&!!document.getElementById(tt)}function getPathFromHash(et){var tt=et.indexOf("?");return tt<0?et:et.slice(0,tt)}function startViewCollection(et,tt,rt,nt,lt,ut,dt,pt,ht){return et.subscribe(4,function(mt){return et.notify(12,processViewUpdate(mt,tt,ut,pt,dt))}),trackViews(rt,et,nt,tt,lt,!tt.trackViewsManually,ht)}function processViewUpdate(et,tt,rt,nt,lt){var ut,dt,pt,ht,mt,xt,Mt,vt,Ot,At,Rt,zt,Tt,Ct,It,Dt,kt=nt.getReplayStats(et.id),qt=rt.findFeatureFlagEvaluations(et.startClocks.relative),Nt=lt.findAll(et.startClocks.relative,et.duration),Yt={_dd:{document_version:et.documentVersion,replay_stats:kt,page_states:Nt,configuration:{start_session_replay_recording_manually:tt.startSessionReplayRecordingManually}},date:et.startClocks.timeStamp,type:"view",view:{action:{count:et.eventCounts.actionCount},frustration:{count:et.eventCounts.frustrationCount},cumulative_layout_shift:(ut=et.commonViewMetrics.cumulativeLayoutShift)===null||ut===void 0?void 0:ut.value,cumulative_layout_shift_time:toServerDuration((dt=et.commonViewMetrics.cumulativeLayoutShift)===null||dt===void 0?void 0:dt.time),cumulative_layout_shift_target_selector:(pt=et.commonViewMetrics.cumulativeLayoutShift)===null||pt===void 0?void 0:pt.targetSelector,first_byte:toServerDuration((ht=et.initialViewMetrics.navigationTimings)===null||ht===void 0?void 0:ht.firstByte),dom_complete:toServerDuration((mt=et.initialViewMetrics.navigationTimings)===null||mt===void 0?void 0:mt.domComplete),dom_content_loaded:toServerDuration((xt=et.initialViewMetrics.navigationTimings)===null||xt===void 0?void 0:xt.domContentLoaded),dom_interactive:toServerDuration((Mt=et.initialViewMetrics.navigationTimings)===null||Mt===void 0?void 0:Mt.domInteractive),error:{count:et.eventCounts.errorCount},first_contentful_paint:toServerDuration(et.initialViewMetrics.firstContentfulPaint),first_input_delay:toServerDuration((vt=et.initialViewMetrics.firstInput)===null||vt===void 0?void 0:vt.delay),first_input_time:toServerDuration((Ot=et.initialViewMetrics.firstInput)===null||Ot===void 0?void 0:Ot.time),first_input_target_selector:(At=et.initialViewMetrics.firstInput)===null||At===void 0?void 0:At.targetSelector,interaction_to_next_paint:toServerDuration((Rt=et.commonViewMetrics.interactionToNextPaint)===null||Rt===void 0?void 0:Rt.value),interaction_to_next_paint_time:toServerDuration((zt=et.commonViewMetrics.interactionToNextPaint)===null||zt===void 0?void 0:zt.time),interaction_to_next_paint_target_selector:(Tt=et.commonViewMetrics.interactionToNextPaint)===null||Tt===void 0?void 0:Tt.targetSelector,is_active:et.isActive,name:et.name,largest_contentful_paint:toServerDuration((Ct=et.initialViewMetrics.largestContentfulPaint)===null||Ct===void 0?void 0:Ct.value),largest_contentful_paint_target_selector:(It=et.initialViewMetrics.largestContentfulPaint)===null||It===void 0?void 0:It.targetSelector,load_event:toServerDuration((Dt=et.initialViewMetrics.navigationTimings)===null||Dt===void 0?void 0:Dt.loadEvent),loading_time:discardNegativeDuration(toServerDuration(et.commonViewMetrics.loadingTime)),loading_type:et.loadingType,long_task:{count:et.eventCounts.longTaskCount},resource:{count:et.eventCounts.resourceCount},time_spent:toServerDuration(et.duration)},feature_flags:qt&&!isEmptyObject(qt)?qt:void 0,display:et.commonViewMetrics.scroll?{scroll:{max_depth:et.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:et.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:et.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:toServerDuration(et.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:kt?!0:void 0,is_active:et.sessionIsActive?void 0:!1},privacy:{replay_level:tt.defaultPrivacyLevel}};return isEmptyObject(et.customTimings)||(Yt.view.custom_timings=mapValues(et.customTimings,toServerDuration)),{rawRumEvent:Yt,startTime:et.startClocks.relative,domainContext:{location:et.location}}}var RUM_SESSION_KEY="rum";function startRumSessionManager(et,tt,rt){var nt=startSessionManager(et,RUM_SESSION_KEY,function(lt){return computeSessionState(et,lt)},rt);return nt.expireObservable.subscribe(function(){tt.notify(9)}),nt.renewObservable.subscribe(function(){tt.notify(10)}),nt.sessionStateUpdateObservable.subscribe(function(lt){var ut=lt.previousState,dt=lt.newState;if(!ut.forcedReplay&&dt.forcedReplay){var pt=nt.findSession();pt&&(pt.isReplayForced=!0)}}),{findTrackedSession:function(lt){var ut=nt.findSession(lt);if(!(!ut||!isTypeTracked(ut.trackingType)))return{id:ut.id,sessionReplay:ut.trackingType==="1"?1:ut.isReplayForced?2:0}},expire:nt.expire,expireObservable:nt.expireObservable,setForcedReplay:function(){return nt.updateSessionState({forcedReplay:"1"})}}}function startRumSessionManagerStub(){var et={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:bridgeSupports("records")?1:0};return{findTrackedSession:function(){return et},expire:noop,expireObservable:new Observable,setForcedReplay:noop}}function computeSessionState(et,tt){var rt;return hasValidRumSession(tt)?rt=tt:performDraw(et.sessionSampleRate)?performDraw(et.sessionReplaySampleRate)?rt="1":rt="2":rt="0",{trackingType:rt,isTracked:isTypeTracked(rt)}}function hasValidRumSession(et){return et==="0"||et==="1"||et==="2"}function isTypeTracked(et){return et==="2"||et==="1"}function startRumBatch(et,tt,rt,nt,lt,ut,dt){var pt=et.replica,ht=startBatchWithReplica(et,{endpoint:et.rumEndpointBuilder,encoder:dt(2)},pt&&{endpoint:pt.rumEndpointBuilder,transformMessage:function(mt){return combine(mt,{application:{id:pt.applicationId}})},encoder:dt(3)},nt,lt,ut);return tt.subscribe(13,function(mt){mt.type==="view"?ht.upsert(mt,mt.view.id):ht.add(mt)}),rt.subscribe(function(mt){return ht.add(mt,isTelemetryReplicationAllowed(et))}),ht}function startRumEventBridge(et){var tt=getEventBridge();et.subscribe(13,function(rt){tt.send("rum",rt)})}var URL_CONTEXT_TIME_OUT_DELAY=SESSION_TIME_OUT_DELAY;function startUrlContexts(et,tt,rt){var nt=createValueHistory({expireDelay:URL_CONTEXT_TIME_OUT_DELAY}),lt;et.subscribe(2,function(pt){var ht=pt.startClocks,mt=rt.href;nt.add(dt({url:mt,referrer:lt||document.referrer}),ht.relative),lt=mt}),et.subscribe(6,function(pt){var ht=pt.endClocks;nt.closeActive(ht.relative)});var ut=tt.subscribe(function(pt){var ht=pt.newLocation,mt=nt.find();if(mt){var xt=relativeNow();nt.closeActive(xt),nt.add(dt({url:ht.href,referrer:mt.referrer}),xt)}});function dt(pt){var ht=pt.url,mt=pt.referrer;return{url:ht,referrer:mt}}return{findUrl:function(pt){return nt.find(pt)},stop:function(){ut.unsubscribe(),nt.stop()}}}function createLocationChangeObservable(et,tt){var rt=shallowClone(tt);return new Observable(function(nt){var lt=trackHistory(et,dt).stop,ut=trackHash(et,dt).stop;function dt(){if(rt.href!==tt.href){var pt=shallowClone(tt);nt.notify({newLocation:pt,oldLocation:rt}),rt=pt}}return function(){lt(),ut()}})}function trackHistory(et,tt){var rt=instrumentMethod(getHistoryInstrumentationTarget("pushState"),"pushState",function(ut){var dt=ut.onPostCall;dt(tt)}).stop,nt=instrumentMethod(getHistoryInstrumentationTarget("replaceState"),"replaceState",function(ut){var dt=ut.onPostCall;dt(tt)}).stop,lt=addEventListener(et,window,"popstate",tt).stop;return{stop:function(){rt(),nt(),lt()}}}function trackHash(et,tt){return addEventListener(et,window,"hashchange",tt)}function getHistoryInstrumentationTarget(et){return Object.prototype.hasOwnProperty.call(history,et)?history:History.prototype}var FEATURE_FLAG_CONTEXT_TIME_OUT_DELAY=SESSION_TIME_OUT_DELAY;function startFeatureFlagContexts(et,tt){var rt=createValueHistory({expireDelay:FEATURE_FLAG_CONTEXT_TIME_OUT_DELAY});return et.subscribe(2,function(nt){var lt=nt.startClocks;rt.add({},lt.relative),tt.resetCustomerData()}),et.subscribe(6,function(nt){var lt=nt.endClocks;rt.closeActive(lt.relative)}),{findFeatureFlagEvaluations:function(nt){return rt.find(nt)},addFeatureFlagEvaluation:function(nt,lt){var ut=rt.find();ut&&(ut[nt]=lt,tt.updateCustomerData(ut))},stop:function(){return tt.stop()}}}var MEASURES_PERIOD_DURATION=10*ONE_SECOND,currentPeriodMeasures,currentBatchMeasures,batchHasRumEvent;function startCustomerDataTelemetry(et,tt,rt,nt,lt){var ut=tt.enabled&&performDraw(et.customerDataTelemetrySampleRate);ut&&(initCurrentPeriodMeasures(),initCurrentBatchMeasures(),rt.subscribe(13,function(dt){batchHasRumEvent=!0,updateMeasure(currentBatchMeasures.globalContextBytes,nt.getOrCreateTracker(2).getBytesCount()),updateMeasure(currentBatchMeasures.userContextBytes,nt.getOrCreateTracker(1).getBytesCount()),updateMeasure(currentBatchMeasures.featureFlagBytes,includes(["view","error"],dt.type)?nt.getOrCreateTracker(0).getBytesCount():0)}),lt.subscribe(function(dt){var pt=dt.bytesCount,ht=dt.messagesCount;batchHasRumEvent&&(currentPeriodMeasures.batchCount+=1,updateMeasure(currentPeriodMeasures.batchBytesCount,pt),updateMeasure(currentPeriodMeasures.batchMessagesCount,ht),mergeMeasure(currentPeriodMeasures.globalContextBytes,currentBatchMeasures.globalContextBytes),mergeMeasure(currentPeriodMeasures.userContextBytes,currentBatchMeasures.userContextBytes),mergeMeasure(currentPeriodMeasures.featureFlagBytes,currentBatchMeasures.featureFlagBytes),initCurrentBatchMeasures())}),setInterval$1(sendCurrentPeriodMeasures,MEASURES_PERIOD_DURATION))}function sendCurrentPeriodMeasures(){currentPeriodMeasures.batchCount!==0&&(addTelemetryDebug("Customer data measures",currentPeriodMeasures),initCurrentPeriodMeasures())}function createMeasure(){return{min:1/0,max:0,sum:0}}function updateMeasure(et,tt){et.sum+=tt,et.min=Math.min(et.min,tt),et.max=Math.max(et.max,tt)}function mergeMeasure(et,tt){et.sum+=tt.sum,et.min=Math.min(et.min,tt.min),et.max=Math.max(et.max,tt.max)}function initCurrentPeriodMeasures(){currentPeriodMeasures={batchCount:0,batchBytesCount:createMeasure(),batchMessagesCount:createMeasure(),globalContextBytes:createMeasure(),userContextBytes:createMeasure(),featureFlagBytes:createMeasure()}}function initCurrentBatchMeasures(){batchHasRumEvent=!1,currentBatchMeasures={globalContextBytes:createMeasure(),userContextBytes:createMeasure(),featureFlagBytes:createMeasure()}}var MAX_PAGE_STATE_ENTRIES=4e3,MAX_PAGE_STATE_ENTRIES_SELECTABLE=500,PAGE_STATE_CONTEXT_TIME_OUT_DELAY=SESSION_TIME_OUT_DELAY;function startPageStateHistory(et,tt){tt===void 0&&(tt=MAX_PAGE_STATE_ENTRIES_SELECTABLE);var rt=createValueHistory({expireDelay:PAGE_STATE_CONTEXT_TIME_OUT_DELAY,maxEntries:MAX_PAGE_STATE_ENTRIES}),nt;ut(getPageState(),relativeNow());var lt=addEventListeners(et,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(pt){ut(computePageState(pt),pt.timeStamp)},{capture:!0}).stop;function ut(pt,ht){ht===void 0&&(ht=relativeNow()),pt!==nt&&(nt=pt,rt.closeActive(ht),rt.add({state:nt,startTime:ht},ht))}var dt={findAll:function(pt,ht){var mt=rt.findAll(pt,ht);if(mt.length!==0){for(var xt=[],Mt=Math.max(0,mt.length-tt),vt=mt.length-1;vt>=Mt;vt--){var Ot=mt[vt],At=elapsed(pt,Ot.startTime);xt.push({state:Ot.state,start:toServerDuration(At)})}return xt}},wasInPageStateAt:function(pt,ht){return dt.wasInPageStateDuringPeriod(pt,ht,0)},wasInPageStateDuringPeriod:function(pt,ht,mt){return rt.findAll(ht,mt).some(function(xt){return xt.state===pt})},addPageState:ut,stop:function(){lt(),rt.stop()}};return dt}function computePageState(et){return et.type==="freeze"?"frozen":et.type==="pagehide"?et.persisted?"frozen":"terminated":getPageState()}function getPageState(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function startDisplayContext(et){var tt=getViewportDimension(),rt=initViewportObservable(et).subscribe(function(nt){tt=nt}).unsubscribe;return{get:function(){return{viewport:tt}},stop:rt}}function createCookieObservable(et,tt){var rt=window.cookieStore?listenToCookieStoreChange(et):watchCookieFallback;return new Observable(function(nt){return rt(tt,function(lt){return nt.notify(lt)})})}function listenToCookieStoreChange(et){return function(tt,rt){var nt=addEventListener(et,window.cookieStore,"change",function(lt){var ut=find(lt.changed,function(dt){return dt.name===tt})||find(lt.deleted,function(dt){return dt.name===tt});ut&&rt(ut.value)});return nt.stop}}var WATCH_COOKIE_INTERVAL_DELAY=ONE_SECOND;function watchCookieFallback(et,tt){var rt=findCommaSeparatedValue(document.cookie,et),nt=setInterval$1(function(){var lt=findCommaSeparatedValue(document.cookie,et);lt!==rt&&tt(lt)},WATCH_COOKIE_INTERVAL_DELAY);return function(){clearInterval$1(nt)}}var CI_VISIBILITY_TEST_ID_COOKIE_NAME="datadog-ci-visibility-test-execution-id";function startCiVisibilityContext(et,tt){var rt;tt===void 0&&(tt=createCookieObservable(et,CI_VISIBILITY_TEST_ID_COOKIE_NAME));var nt=getInitCookie(CI_VISIBILITY_TEST_ID_COOKIE_NAME)||((rt=window.Cypress)===null||rt===void 0?void 0:rt.env("traceId")),lt=tt.subscribe(function(ut){nt=ut});return{get:function(){if(typeof nt=="string")return{test_execution_id:nt}},stop:function(){return lt.unsubscribe()}}}function startLongAnimationFrameCollection(et,tt){var rt=createPerformanceObservable(tt,{type:RumPerformanceEntryType.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(nt){for(var lt=0,ut=nt;lt<ut.length;lt++){var dt=ut[lt],pt=relativeToClocks(dt.startTime),ht={date:pt.timeStamp,long_task:{id:generateUUID(),entry_type:"long-animation-frame",duration:toServerDuration(dt.duration),blocking_duration:toServerDuration(dt.blockingDuration),first_ui_event_timestamp:relativeToClocks(dt.firstUIEventTimestamp).relative,render_start:relativeToClocks(dt.renderStart).relative,style_and_layout_start:relativeToClocks(dt.styleAndLayoutStart).relative,scripts:dt.scripts.map(function(mt){return{duration:toServerDuration(mt.duration),pause_duration:toServerDuration(mt.pauseDuration),forced_style_and_layout_duration:toServerDuration(mt.forcedStyleAndLayoutDuration),start_time:relativeToClocks(mt.startTime).relative,execution_start:relativeToClocks(mt.executionStart).relative,source_url:mt.sourceURL,source_function_name:mt.sourceFunctionName,source_char_position:mt.sourceCharPosition,invoker:mt.invoker,invoker_type:mt.invokerType,window_attribution:mt.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};et.notify(12,{rawRumEvent:ht,startTime:pt.relative,domainContext:{performanceEntry:dt}})}});return{stop:function(){return rt.unsubscribe()}}}function startRum(et,tt,rt,nt,lt,ut,dt,pt){var ht=[],mt=new LifeCycle;mt.subscribe(13,function(Zt){return sendToExtension("rum",Zt)});var xt=startRumTelemetry(et);xt.setContextProvider(function(){var Zt,Xt;return{application:{id:et.applicationId},session:{id:(Zt=Rt.findTrackedSession())===null||Zt===void 0?void 0:Zt.id},view:{id:(Xt=kt.findView())===null||Xt===void 0?void 0:Xt.id},action:{id:Nt.findActionId()}}});var Mt=function(Zt){mt.notify(14,{error:Zt}),addTelemetryDebug("Error reported to customer",{"error.message":Zt.message})},vt=startFeatureFlagContexts(mt,rt.getOrCreateTracker(0)),Ot=createPageExitObservable(et),At=Ot.subscribe(function(Zt){mt.notify(11,Zt)});ht.push(function(){return At.unsubscribe()});var Rt=canUseEventBridge()?startRumSessionManagerStub():startRumSessionManager(et,mt,dt);if(canUseEventBridge())startRumEventBridge(mt);else{var zt=startRumBatch(et,mt,xt.observable,Mt,Ot,Rt.expireObservable,ut);ht.push(function(){return zt.stop()}),startCustomerDataTelemetry(et,xt,mt,rt,zt.flushObservable)}var Tt=createDOMMutationObservable(),Ct=createLocationChangeObservable(et,location),It=startPageStateHistory(et),Dt=startRumEventCollection(mt,et,location,Rt,It,Ct,Tt,nt,Mt),kt=Dt.viewContexts,qt=Dt.urlContexts,Nt=Dt.actionContexts,Yt=Dt.addAction,Kt=Dt.stop;ht.push(Kt),drainPreStartTelemetry();var Jt=startViewCollection(mt,et,location,Tt,Ct,vt,It,tt,lt),Qt=Jt.addTiming,Bt=Jt.startView,Ft=Jt.updateViewName,$t=Jt.stop;ht.push($t);var jt=startResourceCollection(mt,et,It).stop;if(ht.push(jt),isExperimentalFeatureEnabled(ExperimentalFeature.LONG_ANIMATION_FRAME)){if(et.trackLongTasks){var Wt=startLongAnimationFrameCollection(mt,et).stop;ht.push(Wt)}}else startLongTaskCollection(mt,et);var Ut=startErrorCollection(mt,et,It,vt).addError;startRequestCollection(mt,et,Rt);var Vt=startPerformanceCollection(mt,et).stop;ht.push(Vt);var Ht=startVitalCollection(mt,It,pt),Gt=startInternalContext(et.applicationId,Rt,kt,Nt,qt);return{addAction:Yt,addError:Ut,addTiming:Qt,addFeatureFlagEvaluation:vt.addFeatureFlagEvaluation,startView:Bt,updateViewName:Ft,lifeCycle:mt,viewContexts:kt,session:Rt,stopSession:function(){return Rt.expire()},getInternalContext:Gt.get,startDurationVital:Ht.startDurationVital,stopDurationVital:Ht.stopDurationVital,addDurationVital:Ht.addDurationVital,stop:function(){ht.forEach(function(Zt){return Zt()})}}}function startRumTelemetry(et){var tt=startTelemetry("browser-rum-sdk",et);if(canUseEventBridge()){var rt=getEventBridge();tt.observable.subscribe(function(nt){return rt.send("internal_telemetry",nt)})}return tt}function startRumEventCollection(et,tt,rt,nt,lt,ut,dt,pt,ht){var mt=startViewContexts(et),xt=startUrlContexts(et,ut,rt),Mt=startActionCollection(et,dt,tt,lt),vt=Mt.addAction,Ot=Mt.actionContexts,At=startDisplayContext(tt),Rt=startCiVisibilityContext(tt);return startRumAssembly(tt,et,nt,mt,xt,Ot,At,Rt,pt,ht),{viewContexts:mt,pageStateHistory:lt,urlContexts:xt,addAction:vt,actionContexts:Ot,stop:function(){Rt.stop(),At.stop(),xt.stop(),mt.stop(),lt.stop()}}}function getSessionReplayUrl(et,tt){var rt=tt.session,nt=tt.viewContext,lt=tt.errorType,ut=rt?rt.id:"no-session-id",dt=[];lt!==void 0&&dt.push("error-type=".concat(lt)),nt&&(dt.push("seed=".concat(nt.id)),dt.push("from=".concat(nt.startClocks.timeStamp)));var pt=getDatadogSiteUrl(et),ht="/rum/replay/sessions/".concat(ut);return"".concat(pt).concat(ht,"?").concat(dt.join("&"))}function getDatadogSiteUrl(et){var tt=et.site,rt=et.subdomain||getSiteDefaultSubdomain(et);return"https://".concat(rt?"".concat(rt,"."):"").concat(tt)}function getSiteDefaultSubdomain(et){switch(et.site){case INTAKE_SITE_US1:case INTAKE_SITE_EU1:return"app";case INTAKE_SITE_STAGING:return"dd";default:return}}var MAX_STATS_HISTORY=10,statsPerView;function getSegmentsCount(et){return getOrCreateReplayStats(et).segments_count}function addSegment(et){getOrCreateReplayStats(et).segments_count+=1}function addRecord(et){getOrCreateReplayStats(et).records_count+=1}function addWroteData(et,tt){getOrCreateReplayStats(et).segments_total_raw_size+=tt}function getReplayStats(et){return statsPerView==null?void 0:statsPerView.get(et)}function getOrCreateReplayStats(et){statsPerView||(statsPerView=new Map);var tt;return statsPerView.has(et)?tt=statsPerView.get(et):(tt={records_count:0,segments_count:0,segments_total_raw_size:0},statsPerView.set(et,tt),statsPerView.size>MAX_STATS_HISTORY&&deleteOldestStats()),tt}function deleteOldestStats(){if(statsPerView)if(statsPerView.keys)statsPerView.delete(statsPerView.keys().next().value);else{var et=!0;statsPerView.forEach(function(tt,rt){et&&(statsPerView.delete(rt),et=!1)})}}var serializedNodeIds=new WeakMap;function hasSerializedNode(et){return serializedNodeIds.has(et)}function nodeAndAncestorsHaveSerializedNode(et){for(var tt=et;tt;){if(!hasSerializedNode(tt)&&!isNodeShadowRoot(tt))return!1;tt=getParentNode(tt)}return!0}function getSerializedNodeId(et){return serializedNodeIds.get(et)}function setSerializedNodeId(et,tt){serializedNodeIds.set(et,tt)}function getElementInputValue(et,tt){var rt=et.tagName,nt=et.value;if(shouldMaskNode(et,tt)){var lt=et.type;return rt==="INPUT"&&(lt==="button"||lt==="submit"||lt==="reset")?nt:!nt||rt==="OPTION"?void 0:CENSORED_STRING_MARK}if(rt==="OPTION"||rt==="SELECT")return et.value;if(!(rt!=="INPUT"&&rt!=="TEXTAREA"))return nt}var URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ABSOLUTE_URL=/^[A-Za-z]+:|^\/\//,DATA_URI=/^data:.*,/i;function switchToAbsoluteUrl(et,tt){return et.replace(URL_IN_CSS_REF,function(rt,nt,lt,ut,dt,pt){var ht=lt||dt||pt;if(!tt||!ht||ABSOLUTE_URL.test(ht)||DATA_URI.test(ht))return rt;var mt=nt||ut||"";return"url(".concat(mt).concat(makeUrlAbsolute(ht,tt)).concat(mt,")")})}function makeUrlAbsolute(et,tt){try{return buildUrl(et,tt).href}catch{return et}}var TAG_NAME_REGEX=/[^a-z1-6-_]/;function getValidTagName(et){var tt=et.toLowerCase().trim();return TAG_NAME_REGEX.test(tt)?"div":tt}function censoredImageForSize(et,tt){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(et,"' height='").concat(tt,"' style='background-color:silver'%3E%3C/svg%3E")}var RecordType={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},NodeType={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},IncrementalSource={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},MouseInteractionType={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},MediaInteractionType={Play:0,Pause:1};function serializeStyleSheets(et){if(!(et===void 0||et.length===0))return et.map(function(tt){var rt=tt.cssRules||tt.rules,nt=Array.from(rt,function(ut){return ut.cssText}),lt={cssRules:nt,disabled:tt.disabled||void 0,media:tt.media.length>0?Array.from(tt.media):void 0};return lt})}function serializeAttribute(et,tt,rt,nt){if(tt===NodePrivacyLevel.HIDDEN)return null;var lt=et.getAttribute(rt);if(tt===NodePrivacyLevel.MASK&&rt!==PRIVACY_ATTR_NAME&&!STABLE_ATTRIBUTES.includes(rt)&&rt!==nt.actionNameAttribute){var ut=et.tagName;switch(rt){case"title":case"alt":case"placeholder":return CENSORED_STRING_MARK}if(ut==="IMG"&&(rt==="src"||rt==="srcset")){var dt=et;if(dt.naturalWidth>0)return censoredImageForSize(dt.naturalWidth,dt.naturalHeight);var pt=et.getBoundingClientRect(),ht=pt.width,mt=pt.height;return ht>0||mt>0?censoredImageForSize(ht,mt):CENSORED_IMG_MARK}if(ut==="SOURCE"&&(rt==="src"||rt==="srcset"))return CENSORED_IMG_MARK;if(ut==="A"&&rt==="href"||lt&&startsWith(rt,"data-")||ut==="IFRAME"&&rt==="srcdoc")return CENSORED_STRING_MARK}return!lt||typeof lt!="string"?lt:isLongDataUrl(lt)?sanitizeDataUrl(lt):lt}function serializeAttributes(et,tt,rt){var nt;if(tt===NodePrivacyLevel.HIDDEN)return{};for(var lt={},ut=getValidTagName(et.tagName),dt=et.ownerDocument,pt=0;pt<et.attributes.length;pt+=1){var ht=et.attributes.item(pt),mt=ht.name,xt=serializeAttribute(et,tt,mt,rt.configuration);xt!==null&&(lt[mt]=xt)}if(et.value&&(ut==="textarea"||ut==="select"||ut==="option"||ut==="input")){var Mt=getElementInputValue(et,tt);Mt!==void 0&&(lt.value=Mt)}if(ut==="option"&&tt===NodePrivacyLevel.ALLOW){var vt=et;vt.selected&&(lt.selected=vt.selected)}if(ut==="link"){var Ot=Array.from(dt.styleSheets).find(function(Dt){return Dt.href===et.href}),At=getCssRulesString(Ot);At&&Ot&&(lt._cssText=At)}if(ut==="style"&&et.sheet){var At=getCssRulesString(et.sheet);At&&(lt._cssText=At)}var Rt=et;if(ut==="input"&&(Rt.type==="radio"||Rt.type==="checkbox")&&(tt===NodePrivacyLevel.ALLOW?lt.checked=!!Rt.checked:shouldMaskNode(Rt,tt)&&delete lt.checked),ut==="audio"||ut==="video"){var zt=et;lt.rr_mediaState=zt.paused?"paused":"played"}var Tt,Ct,It=rt.serializationContext;switch(It.status){case 0:Tt=Math.round(et.scrollTop),Ct=Math.round(et.scrollLeft),(Tt||Ct)&&It.elementsScrollPositions.set(et,{scrollTop:Tt,scrollLeft:Ct});break;case 1:It.elementsScrollPositions.has(et)&&(nt=It.elementsScrollPositions.get(et),Tt=nt.scrollTop,Ct=nt.scrollLeft);break}return Ct&&(lt.rr_scrollLeft=Ct),Tt&&(lt.rr_scrollTop=Tt),lt}function getCssRulesString(et){if(!et)return null;var tt;try{tt=et.rules||et.cssRules}catch{}if(!tt)return null;var rt=Array.from(tt,isSafari()?getCssRuleStringForSafari:getCssRuleString).join("");return switchToAbsoluteUrl(rt,et.href)}function getCssRuleStringForSafari(et){if(isCSSStyleRule(et)&&et.selectorText.includes(":")){var tt=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return et.cssText.replace(tt,"$1\\$2")}return getCssRuleString(et)}function getCssRuleString(et){return isCSSImportRule(et)&&getCssRulesString(et.styleSheet)||et.cssText}function isCSSImportRule(et){return"styleSheet"in et}function isCSSStyleRule(et){return"selectorText"in et}function serializeNodeWithId(et,tt){var rt=serializeNode(et,tt);if(!rt)return null;var nt=getSerializedNodeId(et)||generateNextId(),lt=rt;return lt.id=nt,setSerializedNodeId(et,nt),tt.serializedNodeIds&&tt.serializedNodeIds.add(nt),lt}var _nextId=1;function generateNextId(){return _nextId++}function serializeChildNodes(et,tt){var rt=[];return forEachChildNodes(et,function(nt){var lt=serializeNodeWithId(nt,tt);lt&&rt.push(lt)}),rt}function serializeNode(et,tt){switch(et.nodeType){case et.DOCUMENT_NODE:return serializeDocumentNode(et,tt);case et.DOCUMENT_FRAGMENT_NODE:return serializeDocumentFragmentNode(et,tt);case et.DOCUMENT_TYPE_NODE:return serializeDocumentTypeNode(et);case et.ELEMENT_NODE:return serializeElementNode(et,tt);case et.TEXT_NODE:return serializeTextNode(et,tt);case et.CDATA_SECTION_NODE:return serializeCDataNode()}}function serializeDocumentNode(et,tt){return{type:NodeType.Document,childNodes:serializeChildNodes(et,tt),adoptedStyleSheets:serializeStyleSheets(et.adoptedStyleSheets)}}function serializeDocumentFragmentNode(et,tt){var rt=isNodeShadowRoot(et);return rt&&tt.serializationContext.shadowRootsController.addShadowRoot(et),{type:NodeType.DocumentFragment,childNodes:serializeChildNodes(et,tt),isShadowRoot:rt,adoptedStyleSheets:rt?serializeStyleSheets(et.adoptedStyleSheets):void 0}}function serializeDocumentTypeNode(et){return{type:NodeType.DocumentType,name:et.name,publicId:et.publicId,systemId:et.systemId}}function serializeElementNode(et,tt){var rt,nt=getValidTagName(et.tagName),lt=isSVGElement(et)||void 0,ut=reducePrivacyLevel(getNodeSelfPrivacyLevel(et),tt.parentNodePrivacyLevel);if(ut===NodePrivacyLevel.HIDDEN){var dt=et.getBoundingClientRect(),pt=dt.width,ht=dt.height;return{type:NodeType.Element,tagName:nt,attributes:(rt={rr_width:"".concat(pt,"px"),rr_height:"".concat(ht,"px")},rt[PRIVACY_ATTR_NAME]=PRIVACY_ATTR_VALUE_HIDDEN,rt),childNodes:[],isSVG:lt}}if(ut!==NodePrivacyLevel.IGNORE){var mt=serializeAttributes(et,ut,tt),xt=[];if(hasChildNodes(et)&&nt!=="style"){var Mt=void 0;tt.parentNodePrivacyLevel===ut&&tt.ignoreWhiteSpace===(nt==="head")?Mt=tt:Mt=assign({},tt,{parentNodePrivacyLevel:ut,ignoreWhiteSpace:nt==="head"}),xt=serializeChildNodes(et,Mt)}return{type:NodeType.Element,tagName:nt,attributes:mt,childNodes:xt,isSVG:lt}}}function isSVGElement(et){return et.tagName==="svg"||et instanceof SVGElement}function serializeTextNode(et,tt){var rt=getTextContent(et,tt.ignoreWhiteSpace||!1,tt.parentNodePrivacyLevel);if(rt!==void 0)return{type:NodeType.Text,textContent:rt}}function serializeCDataNode(){return{type:NodeType.CDATA,textContent:""}}function serializeDocument(et,tt,rt){return serializeNodeWithId(et,{serializationContext:rt,parentNodePrivacyLevel:tt.defaultPrivacyLevel,configuration:tt})}function isTouchEvent(et){return!!et.changedTouches}function getEventTarget(et){return et.composed===!0&&isNodeShadowHost(et.target)?et.composedPath()[0]:et.target}var TOLERANCE=25;function isVisualViewportFactoredIn(et){return Math.abs(et.pageTop-et.offsetTop-window.scrollY)>TOLERANCE||Math.abs(et.pageLeft-et.offsetLeft-window.scrollX)>TOLERANCE}var convertMouseEventToLayoutCoordinates=function(et,tt){var rt=window.visualViewport,nt={layoutViewportX:et,layoutViewportY:tt,visualViewportX:et,visualViewportY:tt};if(rt)isVisualViewportFactoredIn(rt)?(nt.layoutViewportX=Math.round(et+rt.offsetLeft),nt.layoutViewportY=Math.round(tt+rt.offsetTop)):(nt.visualViewportX=Math.round(et-rt.offsetLeft),nt.visualViewportY=Math.round(tt-rt.offsetTop));else return nt;return nt},getVisualViewport=function(et){return{scale:et.scale,offsetLeft:et.offsetLeft,offsetTop:et.offsetTop,pageLeft:et.pageLeft,pageTop:et.pageTop,height:et.height,width:et.width}};function assembleIncrementalSnapshot(et,tt){return{data:assign({source:et},tt),type:RecordType.IncrementalSnapshot,timestamp:timeStampNow()}}var MOUSE_MOVE_OBSERVER_THRESHOLD=50;function trackMove(et,tt){var rt=throttle(function(dt){var pt=getEventTarget(dt);if(hasSerializedNode(pt)){var ht=tryToComputeCoordinates(dt);if(!ht)return;var mt={id:getSerializedNodeId(pt),timeOffset:0,x:ht.x,y:ht.y};tt(assembleIncrementalSnapshot(isTouchEvent(dt)?IncrementalSource.TouchMove:IncrementalSource.MouseMove,{positions:[mt]}))}},MOUSE_MOVE_OBSERVER_THRESHOLD,{trailing:!1}),nt=rt.throttled,lt=rt.cancel,ut=addEventListeners(et,document,["mousemove","touchmove"],nt,{capture:!0,passive:!0}).stop;return{stop:function(){ut(),lt()}}}function tryToComputeCoordinates(et){var tt=isTouchEvent(et)?et.changedTouches[0]:et,rt=tt.clientX,nt=tt.clientY;if(window.visualViewport){var lt=convertMouseEventToLayoutCoordinates(rt,nt),ut=lt.visualViewportX,dt=lt.visualViewportY;rt=ut,nt=dt}if(!Number.isFinite(rt)||!Number.isFinite(nt)){et.isTrusted&&addTelemetryDebug("mouse/touch event without x/y");return}return{x:rt,y:nt}}var _a,eventTypeToMouseInteraction=(_a={},_a.pointerup=MouseInteractionType.MouseUp,_a.mousedown=MouseInteractionType.MouseDown,_a.click=MouseInteractionType.Click,_a.contextmenu=MouseInteractionType.ContextMenu,_a.dblclick=MouseInteractionType.DblClick,_a.focus=MouseInteractionType.Focus,_a.blur=MouseInteractionType.Blur,_a.touchstart=MouseInteractionType.TouchStart,_a.touchend=MouseInteractionType.TouchEnd,_a);function trackMouseInteraction(et,tt,rt){var nt=function(lt){var ut=getEventTarget(lt);if(!(getNodePrivacyLevel(ut,et.defaultPrivacyLevel)===NodePrivacyLevel.HIDDEN||!hasSerializedNode(ut))){var dt=getSerializedNodeId(ut),pt=eventTypeToMouseInteraction[lt.type],ht;if(pt!==MouseInteractionType.Blur&&pt!==MouseInteractionType.Focus){var mt=tryToComputeCoordinates(lt);if(!mt)return;ht={id:dt,type:pt,x:mt.x,y:mt.y}}else ht={id:dt,type:pt};var xt=assign({id:rt.getIdForEvent(lt)},assembleIncrementalSnapshot(IncrementalSource.MouseInteraction,ht));tt(xt)}};return addEventListeners(et,document,Object.keys(eventTypeToMouseInteraction),nt,{capture:!0,passive:!0})}var SCROLL_OBSERVER_THRESHOLD=100;function trackScroll(et,tt,rt,nt){nt===void 0&&(nt=document);var lt=throttle(function(ht){var mt=getEventTarget(ht);if(!(!mt||getNodePrivacyLevel(mt,et.defaultPrivacyLevel)===NodePrivacyLevel.HIDDEN||!hasSerializedNode(mt))){var xt=getSerializedNodeId(mt),Mt=mt===document?{scrollTop:getScrollY(),scrollLeft:getScrollX()}:{scrollTop:Math.round(mt.scrollTop),scrollLeft:Math.round(mt.scrollLeft)};rt.set(mt,Mt),tt(assembleIncrementalSnapshot(IncrementalSource.Scroll,{id:xt,x:Mt.scrollLeft,y:Mt.scrollTop}))}},SCROLL_OBSERVER_THRESHOLD),ut=lt.throttled,dt=lt.cancel,pt=addEventListener(et,nt,"scroll",ut,{capture:!0,passive:!0}).stop;return{stop:function(){pt(),dt()}}}var VISUAL_VIEWPORT_OBSERVER_THRESHOLD=200;function trackViewportResize(et,tt){var rt=initViewportObservable(et).subscribe(function(nt){tt(assembleIncrementalSnapshot(IncrementalSource.ViewportResize,nt))});return{stop:function(){rt.unsubscribe()}}}function trackVisualViewportResize(et,tt){var rt=window.visualViewport;if(!rt)return{stop:noop};var nt=throttle(function(){tt({data:getVisualViewport(rt),type:RecordType.VisualViewport,timestamp:timeStampNow()})},VISUAL_VIEWPORT_OBSERVER_THRESHOLD,{trailing:!1}),lt=nt.throttled,ut=nt.cancel,dt=addEventListeners(et,rt,["resize","scroll"],lt,{capture:!0,passive:!0}).stop;return{stop:function(){dt(),ut()}}}function trackMediaInteraction(et,tt){return addEventListeners(et,document,["play","pause"],function(rt){var nt=getEventTarget(rt);!nt||getNodePrivacyLevel(nt,et.defaultPrivacyLevel)===NodePrivacyLevel.HIDDEN||!hasSerializedNode(nt)||tt(assembleIncrementalSnapshot(IncrementalSource.MediaInteraction,{id:getSerializedNodeId(nt),type:rt.type==="play"?MediaInteractionType.Play:MediaInteractionType.Pause}))},{capture:!0,passive:!0})}function trackStyleSheet(et){function tt(lt,ut){lt&&hasSerializedNode(lt.ownerNode)&&ut(getSerializedNodeId(lt.ownerNode))}var rt=[instrumentMethod(CSSStyleSheet.prototype,"insertRule",function(lt){var ut=lt.target,dt=lt.parameters,pt=dt[0],ht=dt[1];tt(ut,function(mt){return et(assembleIncrementalSnapshot(IncrementalSource.StyleSheetRule,{id:mt,adds:[{rule:pt,index:ht}]}))})}),instrumentMethod(CSSStyleSheet.prototype,"deleteRule",function(lt){var ut=lt.target,dt=lt.parameters[0];tt(ut,function(pt){return et(assembleIncrementalSnapshot(IncrementalSource.StyleSheetRule,{id:pt,removes:[{index:dt}]}))})})];typeof CSSGroupingRule<"u"?nt(CSSGroupingRule):(nt(CSSMediaRule),nt(CSSSupportsRule));function nt(lt){rt.push(instrumentMethod(lt.prototype,"insertRule",function(ut){var dt=ut.target,pt=ut.parameters,ht=pt[0],mt=pt[1];tt(dt.parentStyleSheet,function(xt){var Mt=getPathToNestedCSSRule(dt);Mt&&(Mt.push(mt||0),et(assembleIncrementalSnapshot(IncrementalSource.StyleSheetRule,{id:xt,adds:[{rule:ht,index:Mt}]})))})}),instrumentMethod(lt.prototype,"deleteRule",function(ut){var dt=ut.target,pt=ut.parameters[0];tt(dt.parentStyleSheet,function(ht){var mt=getPathToNestedCSSRule(dt);mt&&(mt.push(pt),et(assembleIncrementalSnapshot(IncrementalSource.StyleSheetRule,{id:ht,removes:[{index:mt}]})))})}))}return{stop:function(){rt.forEach(function(lt){return lt.stop()})}}}function getPathToNestedCSSRule(et){for(var tt=[],rt=et;rt.parentRule;){var nt=Array.from(rt.parentRule.cssRules),lt=nt.indexOf(rt);tt.unshift(lt),rt=rt.parentRule}if(rt.parentStyleSheet){var ut=Array.from(rt.parentStyleSheet.cssRules),dt=ut.indexOf(rt);return tt.unshift(dt),tt}}function trackFocus(et,tt){return addEventListeners(et,window,["focus","blur"],function(){tt({data:{has_focus:document.hasFocus()},type:RecordType.Focus,timestamp:timeStampNow()})})}function trackFrustration(et,tt,rt){var nt=et.subscribe(12,function(lt){var ut,dt;lt.rawRumEvent.type==="action"&&lt.rawRumEvent.action.type==="click"&&(!((dt=(ut=lt.rawRumEvent.action.frustration)===null||ut===void 0?void 0:ut.type)===null||dt===void 0)&&dt.length)&&"events"in lt.domainContext&&lt.domainContext.events&&lt.domainContext.events.length&&tt({timestamp:lt.rawRumEvent.date,type:RecordType.FrustrationRecord,data:{frustrationTypes:lt.rawRumEvent.action.frustration.type,recordIds:lt.domainContext.events.map(function(pt){return rt.getIdForEvent(pt)})}})});return{stop:function(){nt.unsubscribe()}}}function trackViewEnd(et,tt){var rt=et.subscribe(5,function(){tt({timestamp:timeStampNow(),type:RecordType.ViewEnd})});return{stop:function(){rt.unsubscribe()}}}function trackInput(et,tt,rt){rt===void 0&&(rt=document);var nt=et.defaultPrivacyLevel,lt=new WeakMap,ut=rt!==document,dt=addEventListeners(et,rt,ut?["change"]:["input","change"],function(Mt){var vt=getEventTarget(Mt);(vt instanceof HTMLInputElement||vt instanceof HTMLTextAreaElement||vt instanceof HTMLSelectElement)&&mt(vt)},{capture:!0,passive:!0}).stop,pt;if(ut)pt=noop;else{var ht=[instrumentSetter(HTMLInputElement.prototype,"value",mt),instrumentSetter(HTMLInputElement.prototype,"checked",mt),instrumentSetter(HTMLSelectElement.prototype,"value",mt),instrumentSetter(HTMLTextAreaElement.prototype,"value",mt),instrumentSetter(HTMLSelectElement.prototype,"selectedIndex",mt)];pt=function(){ht.forEach(function(Mt){return Mt.stop()})}}return{stop:function(){pt(),dt()}};function mt(Mt){var vt=getNodePrivacyLevel(Mt,nt);if(vt!==NodePrivacyLevel.HIDDEN){var Ot=Mt.type,At;if(Ot==="radio"||Ot==="checkbox"){if(shouldMaskNode(Mt,vt))return;At={isChecked:Mt.checked}}else{var Rt=getElementInputValue(Mt,vt);if(Rt===void 0)return;At={text:Rt}}xt(Mt,At);var zt=Mt.name;Ot==="radio"&&zt&&Mt.checked&&forEach(document.querySelectorAll('input[type="radio"][name="'.concat(cssEscape(zt),'"]')),function(Tt){Tt!==Mt&&xt(Tt,{isChecked:!1})})}}function xt(Mt,vt){if(hasSerializedNode(Mt)){var Ot=lt.get(Mt);(!Ot||Ot.text!==vt.text||Ot.isChecked!==vt.isChecked)&&(lt.set(Mt,vt),tt(assembleIncrementalSnapshot(IncrementalSource.Input,assign({id:getSerializedNodeId(Mt)},vt))))}}}var MUTATION_PROCESS_MAX_DELAY=100,MUTATION_PROCESS_MIN_DELAY=16;function createMutationBatch(et){var tt=noop,rt=[];function nt(){tt(),et(rt),rt=[]}var lt=throttle(nt,MUTATION_PROCESS_MIN_DELAY,{leading:!1}),ut=lt.throttled,dt=lt.cancel;return{addMutations:function(pt){rt.length===0&&(tt=requestIdleCallback(ut,{timeout:MUTATION_PROCESS_MAX_DELAY})),rt.push.apply(rt,pt)},flush:nt,stop:function(){tt(),dt()}}}function requestIdleCallback(et,tt){if(window.requestIdleCallback&&window.cancelIdleCallback){var rt=window.requestIdleCallback(monitor(et),tt);return function(){return window.cancelIdleCallback(rt)}}var nt=window.requestAnimationFrame(monitor(et));return function(){return window.cancelAnimationFrame(nt)}}function trackMutation(et,tt,rt,nt){var lt=getMutationObserverConstructor();if(!lt)return{stop:noop,flush:noop};var ut=createMutationBatch(function(pt){processMutations(pt.concat(dt.takeRecords()),et,tt,rt)}),dt=new lt(monitor(ut.addMutations));return dt.observe(nt,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){dt.disconnect(),ut.stop()},flush:function(){ut.flush()}}}function processMutations(et,tt,rt,nt){var lt=new Map;et.filter(function(vt){return vt.type==="childList"}).forEach(function(vt){vt.removedNodes.forEach(function(Ot){traverseRemovedShadowDom(Ot,nt.removeShadowRoot)})});var ut=et.filter(function(vt){return vt.target.isConnected&&nodeAndAncestorsHaveSerializedNode(vt.target)&&getNodePrivacyLevel(vt.target,rt.defaultPrivacyLevel,lt)!==NodePrivacyLevel.HIDDEN}),dt=processChildListMutations(ut.filter(function(vt){return vt.type==="childList"}),rt,nt,lt),pt=dt.adds,ht=dt.removes,mt=dt.hasBeenSerialized,xt=processCharacterDataMutations(ut.filter(function(vt){return vt.type==="characterData"&&!mt(vt.target)}),rt,lt),Mt=processAttributesMutations(ut.filter(function(vt){return vt.type==="attributes"&&!mt(vt.target)}),rt,lt);!xt.length&&!Mt.length&&!ht.length&&!pt.length||tt(assembleIncrementalSnapshot(IncrementalSource.Mutation,{adds:pt,removes:ht,texts:xt,attributes:Mt}))}function processChildListMutations(et,tt,rt,nt){for(var lt=new Set,ut=new Map,dt=function(qt){qt.addedNodes.forEach(function(Nt){lt.add(Nt)}),qt.removedNodes.forEach(function(Nt){lt.has(Nt)||ut.set(Nt,qt.target),lt.delete(Nt)})},pt=0,ht=et;pt<ht.length;pt++){var mt=ht[pt];dt(mt)}var xt=Array.from(lt);sortAddedAndMovedNodes(xt);for(var Mt=new Set,vt=[],Ot=0,At=xt;Ot<At.length;Ot++){var Rt=At[Ot];if(!Dt(Rt)){var zt=getNodePrivacyLevel(Rt.parentNode,tt.defaultPrivacyLevel,nt);if(!(zt===NodePrivacyLevel.HIDDEN||zt===NodePrivacyLevel.IGNORE)){var Tt=serializeNodeWithId(Rt,{serializedNodeIds:Mt,parentNodePrivacyLevel:zt,serializationContext:{status:2,shadowRootsController:rt},configuration:tt});if(Tt){var Ct=getParentNode(Rt);vt.push({nextId:kt(Rt),parentId:getSerializedNodeId(Ct),node:Tt})}}}}var It=[];return ut.forEach(function(qt,Nt){hasSerializedNode(Nt)&&It.push({parentId:getSerializedNodeId(qt),id:getSerializedNodeId(Nt)})}),{adds:vt,removes:It,hasBeenSerialized:Dt};function Dt(qt){return hasSerializedNode(qt)&&Mt.has(getSerializedNodeId(qt))}function kt(qt){for(var Nt=qt.nextSibling;Nt;){if(hasSerializedNode(Nt))return getSerializedNodeId(Nt);Nt=Nt.nextSibling}return null}}function processCharacterDataMutations(et,tt,rt){for(var nt,lt=[],ut=new Set,dt=et.filter(function(vt){return ut.has(vt.target)?!1:(ut.add(vt.target),!0)}),pt=0,ht=dt;pt<ht.length;pt++){var mt=ht[pt],xt=mt.target.textContent;if(xt!==mt.oldValue){var Mt=getNodePrivacyLevel(getParentNode(mt.target),tt.defaultPrivacyLevel,rt);Mt===NodePrivacyLevel.HIDDEN||Mt===NodePrivacyLevel.IGNORE||lt.push({id:getSerializedNodeId(mt.target),value:(nt=getTextContent(mt.target,!1,Mt))!==null&&nt!==void 0?nt:null})}}return lt}function processAttributesMutations(et,tt,rt){for(var nt=[],lt=new Map,ut=et.filter(function(zt){var Tt=lt.get(zt.target);return Tt&&Tt.has(zt.attributeName)?!1:(Tt?Tt.add(zt.attributeName):lt.set(zt.target,new Set([zt.attributeName])),!0)}),dt=new Map,pt=0,ht=ut;pt<ht.length;pt++){var mt=ht[pt],xt=mt.target.getAttribute(mt.attributeName);if(xt!==mt.oldValue){var Mt=getNodePrivacyLevel(mt.target,tt.defaultPrivacyLevel,rt),vt=serializeAttribute(mt.target,Mt,mt.attributeName,tt),Ot=void 0;if(mt.attributeName==="value"){var At=getElementInputValue(mt.target,Mt);if(At===void 0)continue;Ot=At}else typeof vt=="string"?Ot=vt:Ot=null;var Rt=dt.get(mt.target);Rt||(Rt={id:getSerializedNodeId(mt.target),attributes:{}},nt.push(Rt),dt.set(mt.target,Rt)),Rt.attributes[mt.attributeName]=Ot}}return nt}function sortAddedAndMovedNodes(et){et.sort(function(tt,rt){var nt=tt.compareDocumentPosition(rt);return nt&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:nt&Node.DOCUMENT_POSITION_CONTAINS||nt&Node.DOCUMENT_POSITION_FOLLOWING?1:nt&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function traverseRemovedShadowDom(et,tt){isNodeShadowHost(et)&&tt(et.shadowRoot),forEachChildNodes(et,function(rt){return traverseRemovedShadowDom(rt,tt)})}function createElementsScrollPositions(){var et=new WeakMap;return{set:function(tt,rt){tt===document&&!document.scrollingElement||et.set(tt===document?document.scrollingElement:tt,rt)},get:function(tt){return et.get(tt)},has:function(tt){return et.has(tt)}}}var initShadowRootsController=function(et,tt,rt){var nt=new Map,lt={addShadowRoot:function(ut){if(!nt.has(ut)){var dt=trackMutation(tt,et,lt,ut),pt=trackInput(et,tt,ut),ht=trackScroll(et,tt,rt,ut);nt.set(ut,{flush:function(){return dt.flush()},stop:function(){dt.stop(),pt.stop(),ht.stop()}})}},removeShadowRoot:function(ut){var dt=nt.get(ut);dt&&(dt.stop(),nt.delete(ut))},stop:function(){nt.forEach(function(ut){var dt=ut.stop;return dt()})},flush:function(){nt.forEach(function(ut){var dt=ut.flush;return dt()})}};return lt};function startFullSnapshots(et,tt,rt,nt,lt,ut){var dt=function(ht,mt){ht===void 0&&(ht=timeStampNow()),mt===void 0&&(mt={status:0,elementsScrollPositions:et,shadowRootsController:tt});var xt=getViewportDimension(),Mt=xt.width,vt=xt.height,Ot=[{data:{height:vt,href:window.location.href,width:Mt},type:RecordType.Meta,timestamp:ht},{data:{has_focus:document.hasFocus()},type:RecordType.Focus,timestamp:ht},{data:{node:serializeDocument(document,nt,mt),initialOffset:{left:getScrollX(),top:getScrollY()}},type:RecordType.FullSnapshot,timestamp:ht}];return window.visualViewport&&Ot.push({data:getVisualViewport(window.visualViewport),type:RecordType.VisualViewport,timestamp:ht}),Ot};ut(dt());var pt=rt.subscribe(3,function(ht){lt(),ut(dt(ht.startClocks.timeStamp,{shadowRootsController:tt,status:1,elementsScrollPositions:et}))}).unsubscribe;return{stop:pt}}function initRecordIds(){var et=new WeakMap,tt=1;return{getIdForEvent:function(rt){return et.has(rt)||et.set(rt,tt++),et.get(rt)}}}function record(et){var tt=et.emit,rt=et.configuration,nt=et.lifeCycle;if(!tt)throw new Error("emit function is required");var lt=function(vt){tt(vt),sendToExtension("record",{record:vt});var Ot=et.viewContexts.findView();addRecord(Ot.id)},ut=createElementsScrollPositions(),dt=initShadowRootsController(rt,lt,ut),pt=startFullSnapshots(ut,dt,nt,rt,ht,function(vt){return vt.forEach(function(Ot){return lt(Ot)})}).stop;function ht(){dt.flush(),xt.flush()}var mt=initRecordIds(),xt=trackMutation(lt,rt,dt,document),Mt=[xt,trackMove(rt,lt),trackMouseInteraction(rt,lt,mt),trackScroll(rt,lt,ut,document),trackViewportResize(rt,lt),trackInput(rt,lt),trackMediaInteraction(rt,lt),trackStyleSheet(lt),trackFocus(rt,lt),trackVisualViewportResize(rt,lt),trackFrustration(nt,lt,mt),trackViewEnd(nt,function(vt){ht(),lt(vt)})];return{stop:function(){dt.stop(),Mt.forEach(function(vt){return vt.stop()}),pt()},flushMutations:ht,shadowRootsController:dt}}function buildReplayPayload(et,tt,rt){var nt=new FormData;nt.append("segment",new Blob([et],{type:"application/octet-stream"}),"".concat(tt.session.id,"-").concat(tt.start));var lt=assign({raw_segment_size:rt,compressed_segment_size:et.byteLength},tt),ut=JSON.stringify(lt);return nt.append("event",new Blob([ut],{type:"application/json"})),{data:nt,bytesCount:et.byteLength}}function createSegment(et){var tt=et.context,rt=et.creationReason,nt=et.encoder,lt=0,ut=tt.view.id,dt=assign({start:1/0,end:-1/0,creation_reason:rt,records_count:0,has_full_snapshot:!1,index_in_view:getSegmentsCount(ut),source:"browser"},tt);addSegment(ut);function pt(mt,xt){dt.start=Math.min(dt.start,mt.timestamp),dt.end=Math.max(dt.end,mt.timestamp),dt.records_count+=1,dt.has_full_snapshot||(dt.has_full_snapshot=mt.type===RecordType.FullSnapshot);var Mt=nt.isEmpty?'{"records":[':",";nt.write(Mt+JSON.stringify(mt),function(vt){lt+=vt,xt(lt)})}function ht(mt){if(nt.isEmpty)throw new Error("Empty segment flushed");nt.write("],".concat(JSON.stringify(dt).slice(1),`
`)),nt.finish(function(xt){addWroteData(dt.view.id,xt.rawBytesCount),mt(dt,xt)})}return{addRecord:pt,flush:ht}}var SEGMENT_DURATION_LIMIT=30*ONE_SECOND,SEGMENT_BYTES_LIMIT=6e4;function startSegmentCollection(et,tt,rt,nt,lt,ut){return doStartSegmentCollection(et,function(){return computeSegmentContext(tt.applicationId,rt,nt)},lt,ut)}function doStartSegmentCollection(et,tt,rt,nt){var lt={status:0,nextSegmentCreationReason:"init"},ut=et.subscribe(3,function(){pt("view_change")}).unsubscribe,dt=et.subscribe(11,function(ht){pt(ht.reason)}).unsubscribe;function pt(ht){lt.status===1&&(lt.segment.flush(function(mt,xt){var Mt=buildReplayPayload(xt.output,mt,xt.rawBytesCount);isPageExitReason(ht)?rt.sendOnExit(Mt):rt.send(Mt)}),clearTimeout$1(lt.expirationTimeoutId)),ht!=="stop"?lt={status:0,nextSegmentCreationReason:ht}:lt={status:2}}return{addRecord:function(ht){if(lt.status!==2){if(lt.status===0){var mt=tt();if(!mt)return;lt={status:1,segment:createSegment({encoder:nt,context:mt,creationReason:lt.nextSegmentCreationReason}),expirationTimeoutId:setTimeout$1(function(){pt("segment_duration_limit")},SEGMENT_DURATION_LIMIT)}}lt.segment.addRecord(ht,function(xt){xt>SEGMENT_BYTES_LIMIT&&pt("segment_bytes_limit")})}},stop:function(){pt("stop"),ut(),dt()}}}function computeSegmentContext(et,tt,rt){var nt=tt.findTrackedSession(),lt=rt.findView();if(!(!nt||!lt))return{application:{id:et},session:{id:nt.id},view:{id:lt.id}}}function startRecordBridge(et){var tt=getEventBridge();return{addRecord:function(rt){var nt=et.findView();tt.send("record",rt,nt.id)}}}function startRecording(et,tt,rt,nt,lt,ut){var dt=[],pt=function(vt){et.notify(14,{error:vt}),addTelemetryDebug("Error reported to customer",{"error.message":vt.message})},ht=ut||createHttpRequest(tt,tt.sessionReplayEndpointBuilder,SEGMENT_BYTES_LIMIT,pt),mt;if(canUseEventBridge())mt=startRecordBridge(nt).addRecord;else{var xt=startSegmentCollection(et,tt,rt,nt,ht,lt);mt=xt.addRecord,dt.push(xt.stop)}var Mt=record({emit:mt,configuration:tt,lifeCycle:et,viewContexts:nt}).stop;return dt.push(Mt),{stop:function(){dt.forEach(function(vt){return vt()})}}}function isBrowserSupported(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function getSessionReplayLink(et,tt,rt,nt){var lt=tt.findTrackedSession(),ut=getErrorType(lt,nt),dt=rt.findView();return getSessionReplayUrl(et,{viewContext:dt,errorType:ut,session:lt})}function getErrorType(et,tt){if(!isBrowserSupported())return"browser-not-supported";if(!et)return"rum-not-tracked";if(et.sessionReplay===0)return"incorrect-session-plan";if(!tt)return"replay-not-started"}function createDeflateEncoder(et,tt,rt){var nt=0,lt=[],ut,dt=0,pt=[],ht=addEventListener(et,tt,"message",function(Mt){var vt=Mt.data;if(!(vt.type!=="wrote"||vt.streamId!==rt)){nt+=vt.additionalBytesCount,lt.push(vt.result),ut=vt.trailer;var Ot=pt.shift();Ot&&Ot.id===vt.id?Ot.writeCallback?Ot.writeCallback(vt.result.byteLength):Ot.finishCallback&&Ot.finishCallback():(ht(),addTelemetryDebug("Worker responses received out of order."))}}).stop;function mt(){var Mt=lt.length===0?new Uint8Array(0):concatBuffers(lt.concat(ut)),vt={rawBytesCount:nt,output:Mt,outputBytesCount:Mt.byteLength,encoding:"deflate"};return nt=0,lt=[],vt}function xt(){dt>0&&(tt.postMessage({action:"reset",streamId:rt}),dt=0)}return{isAsync:!0,get isEmpty(){return dt===0},write:function(Mt,vt){tt.postMessage({action:"write",id:dt,data:Mt,streamId:rt}),pt.push({id:dt,writeCallback:vt,data:Mt}),dt+=1},finish:function(Mt){xt(),pt.length?(pt.forEach(function(vt){delete vt.writeCallback}),pt[pt.length-1].finishCallback=function(){return Mt(mt())}):Mt(mt())},finishSync:function(){xt();var Mt=pt.map(function(vt){return delete vt.writeCallback,delete vt.finishCallback,vt.data}).join("");return assign(mt(),{pendingData:Mt})},estimateEncodedBytesCount:function(Mt){return Mt.length/8},stop:function(){ht()}}}var INITIALIZATION_TIME_OUT_DELAY=10*ONE_SECOND;function createDeflateWorker(et){return new Worker(et.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.26.0"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var state={status:0};function startDeflateWorker(et,tt,rt,nt){switch(nt===void 0&&(nt=createDeflateWorker),state.status===0&&doStartDeflateWorker(et,tt,nt),state.status){case 1:return state.initializationFailureCallbacks.push(rt),state.worker;case 3:return state.worker}}function getDeflateWorkerStatus(){return state.status}function doStartDeflateWorker(et,tt,rt){rt===void 0&&(rt=createDeflateWorker);try{var nt=rt(et),lt=addEventListener(et,nt,"error",function(pt){onError(et,tt,pt)}).stop,ut=addEventListener(et,nt,"message",function(pt){var ht=pt.data;ht.type==="errored"?onError(et,tt,ht.error,ht.streamId):ht.type==="initialized"&&onInitialized(ht.version)}).stop;nt.postMessage({action:"init"}),setTimeout$1(function(){return onTimeout(tt)},INITIALIZATION_TIME_OUT_DELAY);var dt=function(){lt(),ut()};state={status:1,worker:nt,stop:dt,initializationFailureCallbacks:[]}}catch(pt){onError(et,tt,pt)}}function onTimeout(et){state.status===1&&(display.error("".concat(et," failed to start: a timeout occurred while initializing the Worker")),state.initializationFailureCallbacks.forEach(function(tt){return tt()}),state={status:2})}function onInitialized(et){state.status===1&&(state={status:3,worker:state.worker,stop:state.stop,version:et})}function onError(et,tt,rt,nt){if(state.status===1||state.status===0){if(display.error("".concat(tt," failed to start: an error occurred while creating the Worker:"),rt),rt instanceof Event||rt instanceof Error&&isMessageCspRelated(rt.message)){var lt=void 0;et.workerUrl?lt="Please make sure the Worker URL ".concat(et.workerUrl," is correct and CSP is correctly configured."):lt="Please make sure CSP is correctly configured.",display.error("".concat(lt," See documentation at ").concat(DOCS_ORIGIN,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else addTelemetryError(rt);state.status===1&&state.initializationFailureCallbacks.forEach(function(ut){return ut()}),state={status:2}}else addTelemetryError(rt,{worker_version:state.status===3&&state.version,stream_id:nt})}function isMessageCspRelated(et){return includes(et,"Content Security Policy")||includes(et,"requires 'TrustedScriptURL'")}function makeRecorderApi(et,tt){if(canUseEventBridge()&&!bridgeSupports("records")||!isBrowserSupported())return{start:noop,stop:noop,getReplayStats:function(){},onRumStart:noop,isRecording:function(){return!1},getSessionReplayLink:function(){}};var rt={status:1},nt=function(){rt={status:1}},lt=function(){rt={status:0}},ut=noop;return{start:function(dt){return nt(dt)},stop:function(){return lt()},getSessionReplayLink:function(){return ut()},onRumStart:function(dt,pt,ht,mt,xt){pt.startSessionReplayRecordingManually&&(rt={status:0}),dt.subscribe(9,function(){(rt.status===2||rt.status===3)&&(lt(),rt={status:1})}),dt.subscribe(11,function(Ot){Ot.reason===PageExitReason.UNLOADING&&lt()}),dt.subscribe(10,function(){rt.status===1&&nt()});var Mt;function vt(){return Mt||(xt||(xt=startDeflateWorker(pt,"Datadog Session Replay",function(){lt()},tt)),xt&&(Mt=createDeflateEncoder(pt,xt,1))),Mt}nt=function(Ot){var At=ht.findTrackedSession();if(!At||At.sessionReplay===0&&(!Ot||!Ot.force)){rt={status:1};return}rt.status===2||rt.status===3||(rt={status:2},runOnReadyState(pt,"interactive",function(){if(rt.status===2){var Rt=vt();if(!Rt){rt={status:0};return}var zt=et(dt,pt,ht,mt,Rt).stop;rt={status:3,stopRecording:zt}}}),Ot&&Ot.force&&At.sessionReplay===0&&ht.setForcedReplay())},lt=function(){rt.status!==0&&(rt.status===3&&rt.stopRecording(),rt={status:0})},ut=function(){return getSessionReplayLink(pt,ht,mt,rt.status!==0)},rt.status===1&&nt()},isRecording:function(){return getDeflateWorkerStatus()===3&&rt.status===3},getReplayStats:function(dt){return getDeflateWorkerStatus()===3?getReplayStats(dt):void 0}}}var recorderApi=makeRecorderApi(startRecording),datadogRum=makeRumPublicApi(startRum,recorderApi,{startDeflateWorker,createDeflateEncoder});defineGlobal(getGlobalObject(),"DD_RUM",datadogRum);var cryptoBrowserify={},browser$a={exports:{}},MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$A=safeBufferExports$1.Buffer,crypto$1=commonjsGlobal$1.crypto||commonjsGlobal$1.msCrypto;crypto$1&&crypto$1.getRandomValues?browser$a.exports=randomBytes$2:browser$a.exports=oldBrowser$1;function randomBytes$2(et,tt){if(et>MAX_UINT32)throw new RangeError("requested too many random bytes");var rt=Buffer$A.allocUnsafe(et);if(et>0)if(et>MAX_BYTES)for(var nt=0;nt<et;nt+=MAX_BYTES)crypto$1.getRandomValues(rt.slice(nt,nt+MAX_BYTES));else crypto$1.getRandomValues(rt);return typeof tt=="function"?process$1$1.nextTick(function(){tt(null,rt)}):rt}var browserExports=browser$a.exports,Buffer$z=safeBufferExports$1.Buffer,Transform$8=readableBrowserExports$1.Transform,inherits$q=inherits_browserExports;function throwIfNotStringOrBuffer$1(et,tt){if(!Buffer$z.isBuffer(et)&&typeof et!="string")throw new TypeError(tt+" must be a string or a buffer")}function HashBase$3(et){Transform$8.call(this),this._block=Buffer$z.allocUnsafe(et),this._blockSize=et,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$q(HashBase$3,Transform$8);HashBase$3.prototype._transform=function(et,tt,rt){var nt=null;try{this.update(et,tt)}catch(lt){nt=lt}rt(nt)};HashBase$3.prototype._flush=function(et){var tt=null;try{this.push(this.digest())}catch(rt){tt=rt}et(tt)};HashBase$3.prototype.update=function(et,tt){if(throwIfNotStringOrBuffer$1(et,"Data"),this._finalized)throw new Error("Digest already called");Buffer$z.isBuffer(et)||(et=Buffer$z.from(et,tt));for(var rt=this._block,nt=0;this._blockOffset+et.length-nt>=this._blockSize;){for(var lt=this._blockOffset;lt<this._blockSize;)rt[lt++]=et[nt++];this._update(),this._blockOffset=0}for(;nt<et.length;)rt[this._blockOffset++]=et[nt++];for(var ut=0,dt=et.length*8;dt>0;++ut)this._length[ut]+=dt,dt=this._length[ut]/4294967296|0,dt>0&&(this._length[ut]-=4294967296*dt);return this};HashBase$3.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$3.prototype.digest=function(et){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var tt=this._digest();et!==void 0&&(tt=tt.toString(et)),this._block.fill(0),this._blockOffset=0;for(var rt=0;rt<4;++rt)this._length[rt]=0;return tt};HashBase$3.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase$1=HashBase$3,inherits$p=inherits_browserExports,HashBase$2=hashBase$1,Buffer$y=safeBufferExports$1.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$2.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$p(MD5$3,HashBase$2);MD5$3.prototype._update=function(){for(var et=ARRAY16$1,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);var rt=this._a,nt=this._b,lt=this._c,ut=this._d;rt=fnF(rt,nt,lt,ut,et[0],3614090360,7),ut=fnF(ut,rt,nt,lt,et[1],3905402710,12),lt=fnF(lt,ut,rt,nt,et[2],606105819,17),nt=fnF(nt,lt,ut,rt,et[3],3250441966,22),rt=fnF(rt,nt,lt,ut,et[4],4118548399,7),ut=fnF(ut,rt,nt,lt,et[5],1200080426,12),lt=fnF(lt,ut,rt,nt,et[6],2821735955,17),nt=fnF(nt,lt,ut,rt,et[7],4249261313,22),rt=fnF(rt,nt,lt,ut,et[8],1770035416,7),ut=fnF(ut,rt,nt,lt,et[9],2336552879,12),lt=fnF(lt,ut,rt,nt,et[10],4294925233,17),nt=fnF(nt,lt,ut,rt,et[11],2304563134,22),rt=fnF(rt,nt,lt,ut,et[12],1804603682,7),ut=fnF(ut,rt,nt,lt,et[13],4254626195,12),lt=fnF(lt,ut,rt,nt,et[14],2792965006,17),nt=fnF(nt,lt,ut,rt,et[15],1236535329,22),rt=fnG(rt,nt,lt,ut,et[1],4129170786,5),ut=fnG(ut,rt,nt,lt,et[6],3225465664,9),lt=fnG(lt,ut,rt,nt,et[11],643717713,14),nt=fnG(nt,lt,ut,rt,et[0],3921069994,20),rt=fnG(rt,nt,lt,ut,et[5],3593408605,5),ut=fnG(ut,rt,nt,lt,et[10],38016083,9),lt=fnG(lt,ut,rt,nt,et[15],3634488961,14),nt=fnG(nt,lt,ut,rt,et[4],3889429448,20),rt=fnG(rt,nt,lt,ut,et[9],568446438,5),ut=fnG(ut,rt,nt,lt,et[14],3275163606,9),lt=fnG(lt,ut,rt,nt,et[3],4107603335,14),nt=fnG(nt,lt,ut,rt,et[8],1163531501,20),rt=fnG(rt,nt,lt,ut,et[13],2850285829,5),ut=fnG(ut,rt,nt,lt,et[2],4243563512,9),lt=fnG(lt,ut,rt,nt,et[7],1735328473,14),nt=fnG(nt,lt,ut,rt,et[12],2368359562,20),rt=fnH(rt,nt,lt,ut,et[5],4294588738,4),ut=fnH(ut,rt,nt,lt,et[8],2272392833,11),lt=fnH(lt,ut,rt,nt,et[11],1839030562,16),nt=fnH(nt,lt,ut,rt,et[14],4259657740,23),rt=fnH(rt,nt,lt,ut,et[1],2763975236,4),ut=fnH(ut,rt,nt,lt,et[4],1272893353,11),lt=fnH(lt,ut,rt,nt,et[7],4139469664,16),nt=fnH(nt,lt,ut,rt,et[10],3200236656,23),rt=fnH(rt,nt,lt,ut,et[13],681279174,4),ut=fnH(ut,rt,nt,lt,et[0],3936430074,11),lt=fnH(lt,ut,rt,nt,et[3],3572445317,16),nt=fnH(nt,lt,ut,rt,et[6],76029189,23),rt=fnH(rt,nt,lt,ut,et[9],3654602809,4),ut=fnH(ut,rt,nt,lt,et[12],3873151461,11),lt=fnH(lt,ut,rt,nt,et[15],530742520,16),nt=fnH(nt,lt,ut,rt,et[2],3299628645,23),rt=fnI(rt,nt,lt,ut,et[0],4096336452,6),ut=fnI(ut,rt,nt,lt,et[7],1126891415,10),lt=fnI(lt,ut,rt,nt,et[14],2878612391,15),nt=fnI(nt,lt,ut,rt,et[5],4237533241,21),rt=fnI(rt,nt,lt,ut,et[12],1700485571,6),ut=fnI(ut,rt,nt,lt,et[3],2399980690,10),lt=fnI(lt,ut,rt,nt,et[10],4293915773,15),nt=fnI(nt,lt,ut,rt,et[1],2240044497,21),rt=fnI(rt,nt,lt,ut,et[8],1873313359,6),ut=fnI(ut,rt,nt,lt,et[15],4264355552,10),lt=fnI(lt,ut,rt,nt,et[6],2734768916,15),nt=fnI(nt,lt,ut,rt,et[13],1309151649,21),rt=fnI(rt,nt,lt,ut,et[4],4149444226,6),ut=fnI(ut,rt,nt,lt,et[11],3174756917,10),lt=fnI(lt,ut,rt,nt,et[2],718787259,15),nt=fnI(nt,lt,ut,rt,et[9],3951481745,21),this._a=this._a+rt|0,this._b=this._b+nt|0,this._c=this._c+lt|0,this._d=this._d+ut|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$y.allocUnsafe(16);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et};function rotl$1(et,tt){return et<<tt|et>>>32-tt}function fnF(et,tt,rt,nt,lt,ut,dt){return rotl$1(et+(tt&rt|~tt&nt)+lt+ut|0,dt)+tt|0}function fnG(et,tt,rt,nt,lt,ut,dt){return rotl$1(et+(tt&nt|rt&~nt)+lt+ut|0,dt)+tt|0}function fnH(et,tt,rt,nt,lt,ut,dt){return rotl$1(et+(tt^rt^nt)+lt+ut|0,dt)+tt|0}function fnI(et,tt,rt,nt,lt,ut,dt){return rotl$1(et+(rt^(tt|~nt))+lt+ut|0,dt)+tt|0}var md5_js=MD5$3,Buffer$x=safeBufferExports$1.Buffer,Transform$7=readableBrowserExports$1.Transform,inherits$o=inherits_browserExports;function throwIfNotStringOrBuffer(et,tt){if(!Buffer$x.isBuffer(et)&&typeof et!="string")throw new TypeError(tt+" must be a string or a buffer")}function HashBase$1(et){Transform$7.call(this),this._block=Buffer$x.allocUnsafe(et),this._blockSize=et,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$o(HashBase$1,Transform$7);HashBase$1.prototype._transform=function(et,tt,rt){var nt=null;try{this.update(et,tt)}catch(lt){nt=lt}rt(nt)};HashBase$1.prototype._flush=function(et){var tt=null;try{this.push(this.digest())}catch(rt){tt=rt}et(tt)};HashBase$1.prototype.update=function(et,tt){if(throwIfNotStringOrBuffer(et,"Data"),this._finalized)throw new Error("Digest already called");Buffer$x.isBuffer(et)||(et=Buffer$x.from(et,tt));for(var rt=this._block,nt=0;this._blockOffset+et.length-nt>=this._blockSize;){for(var lt=this._blockOffset;lt<this._blockSize;)rt[lt++]=et[nt++];this._update(),this._blockOffset=0}for(;nt<et.length;)rt[this._blockOffset++]=et[nt++];for(var ut=0,dt=et.length*8;dt>0;++ut)this._length[ut]+=dt,dt=this._length[ut]/4294967296|0,dt>0&&(this._length[ut]-=4294967296*dt);return this};HashBase$1.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$1.prototype.digest=function(et){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var tt=this._digest();et!==void 0&&(tt=tt.toString(et)),this._block.fill(0),this._blockOffset=0;for(var rt=0;rt<4;++rt)this._length[rt]=0;return tt};HashBase$1.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$1,Buffer$w=dist$5.Buffer,inherits$n=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$4(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$n(RIPEMD160$4,HashBase);RIPEMD160$4.prototype._update=function(){for(var et=ARRAY16,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);for(var rt=this._a|0,nt=this._b|0,lt=this._c|0,ut=this._d|0,dt=this._e|0,pt=this._a|0,ht=this._b|0,mt=this._c|0,xt=this._d|0,Mt=this._e|0,vt=0;vt<80;vt+=1){var Ot,At;vt<16?(Ot=fn1(rt,nt,lt,ut,dt,et[zl[vt]],hl[0],sl[vt]),At=fn5(pt,ht,mt,xt,Mt,et[zr[vt]],hr[0],sr[vt])):vt<32?(Ot=fn2(rt,nt,lt,ut,dt,et[zl[vt]],hl[1],sl[vt]),At=fn4(pt,ht,mt,xt,Mt,et[zr[vt]],hr[1],sr[vt])):vt<48?(Ot=fn3(rt,nt,lt,ut,dt,et[zl[vt]],hl[2],sl[vt]),At=fn3(pt,ht,mt,xt,Mt,et[zr[vt]],hr[2],sr[vt])):vt<64?(Ot=fn4(rt,nt,lt,ut,dt,et[zl[vt]],hl[3],sl[vt]),At=fn2(pt,ht,mt,xt,Mt,et[zr[vt]],hr[3],sr[vt])):(Ot=fn5(rt,nt,lt,ut,dt,et[zl[vt]],hl[4],sl[vt]),At=fn1(pt,ht,mt,xt,Mt,et[zr[vt]],hr[4],sr[vt])),rt=dt,dt=ut,ut=rotl(lt,10),lt=nt,nt=Ot,pt=Mt,Mt=xt,xt=rotl(mt,10),mt=ht,ht=At}var Rt=this._b+lt+xt|0;this._b=this._c+ut+Mt|0,this._c=this._d+dt+pt|0,this._d=this._e+rt+ht|0,this._e=this._a+nt+mt|0,this._a=Rt};RIPEMD160$4.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$w.alloc?Buffer$w.alloc(20):new Buffer$w(20);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et.writeInt32LE(this._e,16),et};function rotl(et,tt){return et<<tt|et>>>32-tt}function fn1(et,tt,rt,nt,lt,ut,dt,pt){return rotl(et+(tt^rt^nt)+ut+dt|0,pt)+lt|0}function fn2(et,tt,rt,nt,lt,ut,dt,pt){return rotl(et+(tt&rt|~tt&nt)+ut+dt|0,pt)+lt|0}function fn3(et,tt,rt,nt,lt,ut,dt,pt){return rotl(et+((tt|~rt)^nt)+ut+dt|0,pt)+lt|0}function fn4(et,tt,rt,nt,lt,ut,dt,pt){return rotl(et+(tt&nt|rt&~nt)+ut+dt|0,pt)+lt|0}function fn5(et,tt,rt,nt,lt,ut,dt,pt){return rotl(et+(tt^(rt|~nt))+ut+dt|0,pt)+lt|0}var ripemd160=RIPEMD160$4,sha_js={exports:{}},Buffer$v=safeBufferExports$1.Buffer;function Hash$7(et,tt){this._block=Buffer$v.alloc(et),this._finalSize=tt,this._blockSize=et,this._len=0}Hash$7.prototype.update=function(et,tt){typeof et=="string"&&(tt=tt||"utf8",et=Buffer$v.from(et,tt));for(var rt=this._block,nt=this._blockSize,lt=et.length,ut=this._len,dt=0;dt<lt;){for(var pt=ut%nt,ht=Math.min(lt-dt,nt-pt),mt=0;mt<ht;mt++)rt[pt+mt]=et[dt+mt];ut+=ht,dt+=ht,ut%nt===0&&this._update(rt)}return this._len+=lt,this};Hash$7.prototype.digest=function(et){var tt=this._len%this._blockSize;this._block[tt]=128,this._block.fill(0,tt+1),tt>=this._finalSize&&(this._update(this._block),this._block.fill(0));var rt=this._len*8;if(rt<=4294967295)this._block.writeUInt32BE(rt,this._blockSize-4);else{var nt=(rt&4294967295)>>>0,lt=(rt-nt)/4294967296;this._block.writeUInt32BE(lt,this._blockSize-8),this._block.writeUInt32BE(nt,this._blockSize-4)}this._update(this._block);var ut=this._hash();return et?ut.toString(et):ut};Hash$7.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$3=Hash$7,inherits$m=inherits_browserExports,Hash$6=hash$3,Buffer$u=safeBufferExports$1.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$6.call(this,64,56)}inherits$m(Sha,Hash$6);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(et){return et<<5|et>>>27}function rotl30$1(et){return et<<30|et>>>2}function ft$1(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,lt=this._c|0,ut=this._d|0,dt=this._e|0,pt=0;pt<16;++pt)tt[pt]=et.readInt32BE(pt*4);for(;pt<80;++pt)tt[pt]=tt[pt-3]^tt[pt-8]^tt[pt-14]^tt[pt-16];for(var ht=0;ht<80;++ht){var mt=~~(ht/20),xt=rotl5$1(rt)+ft$1(mt,nt,lt,ut)+dt+tt[ht]+K$4[mt]|0;dt=ut,ut=lt,lt=rotl30$1(nt),nt=rt,rt=xt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=lt+this._c|0,this._d=ut+this._d|0,this._e=dt+this._e|0};Sha.prototype._hash=function(){var et=Buffer$u.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha$4=Sha,inherits$l=inherits_browserExports,Hash$5=hash$3,Buffer$t=safeBufferExports$1.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$5.call(this,64,56)}inherits$l(Sha1,Hash$5);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(et){return et<<1|et>>>31}function rotl5(et){return et<<5|et>>>27}function rotl30(et){return et<<30|et>>>2}function ft(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,lt=this._c|0,ut=this._d|0,dt=this._e|0,pt=0;pt<16;++pt)tt[pt]=et.readInt32BE(pt*4);for(;pt<80;++pt)tt[pt]=rotl1(tt[pt-3]^tt[pt-8]^tt[pt-14]^tt[pt-16]);for(var ht=0;ht<80;++ht){var mt=~~(ht/20),xt=rotl5(rt)+ft(mt,nt,lt,ut)+dt+tt[ht]+K$3[mt]|0;dt=ut,ut=lt,lt=rotl30(nt),nt=rt,rt=xt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=lt+this._c|0,this._d=ut+this._d|0,this._e=dt+this._e|0};Sha1.prototype._hash=function(){var et=Buffer$t.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha1=Sha1,inherits$k=inherits_browserExports,Hash$4=hash$3,Buffer$s=safeBufferExports$1.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$4.call(this,64,56)}inherits$k(Sha256$1,Hash$4);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(et,tt,rt){return rt^et&(tt^rt)}function maj$1(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0$1(et){return(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10)}function sigma1$1(et){return(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7)}function gamma0(et){return(et>>>7|et<<25)^(et>>>18|et<<14)^et>>>3}function gamma1(et){return(et>>>17|et<<15)^(et>>>19|et<<13)^et>>>10}Sha256$1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,lt=this._c|0,ut=this._d|0,dt=this._e|0,pt=this._f|0,ht=this._g|0,mt=this._h|0,xt=0;xt<16;++xt)tt[xt]=et.readInt32BE(xt*4);for(;xt<64;++xt)tt[xt]=gamma1(tt[xt-2])+tt[xt-7]+gamma0(tt[xt-15])+tt[xt-16]|0;for(var Mt=0;Mt<64;++Mt){var vt=mt+sigma1$1(dt)+ch(dt,pt,ht)+K$2[Mt]+tt[Mt]|0,Ot=sigma0$1(rt)+maj$1(rt,nt,lt)|0;mt=ht,ht=pt,pt=dt,dt=ut+vt|0,ut=lt,lt=nt,nt=rt,rt=vt+Ot|0}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=lt+this._c|0,this._d=ut+this._d|0,this._e=dt+this._e|0,this._f=pt+this._f|0,this._g=ht+this._g|0,this._h=mt+this._h|0};Sha256$1.prototype._hash=function(){var et=Buffer$s.allocUnsafe(32);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et.writeInt32BE(this._h,28),et};var sha256$1=Sha256$1,inherits$j=inherits_browserExports,Sha256=sha256$1,Hash$3=hash$3,Buffer$r=safeBufferExports$1.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$3.call(this,64,56)}inherits$j(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var et=Buffer$r.allocUnsafe(28);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et};var sha224$1=Sha224,inherits$i=inherits_browserExports,Hash$2=hash$3,Buffer$q=safeBufferExports$1.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$2.call(this,128,112)}inherits$i(Sha512,Hash$2);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(et,tt,rt){return rt^et&(tt^rt)}function maj(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0(et,tt){return(et>>>28|tt<<4)^(tt>>>2|et<<30)^(tt>>>7|et<<25)}function sigma1(et,tt){return(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23)}function Gamma0(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^et>>>7}function Gamma0l(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^(et>>>7|tt<<25)}function Gamma1(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^et>>>6}function Gamma1l(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^(et>>>6|tt<<26)}function getCarry(et,tt){return et>>>0<tt>>>0?1:0}Sha512.prototype._update=function(et){for(var tt=this._w,rt=this._ah|0,nt=this._bh|0,lt=this._ch|0,ut=this._dh|0,dt=this._eh|0,pt=this._fh|0,ht=this._gh|0,mt=this._hh|0,xt=this._al|0,Mt=this._bl|0,vt=this._cl|0,Ot=this._dl|0,At=this._el|0,Rt=this._fl|0,zt=this._gl|0,Tt=this._hl|0,Ct=0;Ct<32;Ct+=2)tt[Ct]=et.readInt32BE(Ct*4),tt[Ct+1]=et.readInt32BE(Ct*4+4);for(;Ct<160;Ct+=2){var It=tt[Ct-30],Dt=tt[Ct-15*2+1],kt=Gamma0(It,Dt),qt=Gamma0l(Dt,It);It=tt[Ct-2*2],Dt=tt[Ct-2*2+1];var Nt=Gamma1(It,Dt),Yt=Gamma1l(Dt,It),Kt=tt[Ct-7*2],Jt=tt[Ct-7*2+1],Qt=tt[Ct-16*2],Bt=tt[Ct-16*2+1],Ft=qt+Jt|0,$t=kt+Kt+getCarry(Ft,qt)|0;Ft=Ft+Yt|0,$t=$t+Nt+getCarry(Ft,Yt)|0,Ft=Ft+Bt|0,$t=$t+Qt+getCarry(Ft,Bt)|0,tt[Ct]=$t,tt[Ct+1]=Ft}for(var jt=0;jt<160;jt+=2){$t=tt[jt],Ft=tt[jt+1];var Wt=maj(rt,nt,lt),Ut=maj(xt,Mt,vt),Vt=sigma0(rt,xt),Ht=sigma0(xt,rt),Gt=sigma1(dt,At),Zt=sigma1(At,dt),Xt=K$1[jt],er=K$1[jt+1],nr=Ch(dt,pt,ht),or=Ch(At,Rt,zt),rr=Tt+Zt|0,cr=mt+Gt+getCarry(rr,Tt)|0;rr=rr+or|0,cr=cr+nr+getCarry(rr,or)|0,rr=rr+er|0,cr=cr+Xt+getCarry(rr,er)|0,rr=rr+Ft|0,cr=cr+$t+getCarry(rr,Ft)|0;var ir=Ht+Ut|0,dr=Vt+Wt+getCarry(ir,Ht)|0;mt=ht,Tt=zt,ht=pt,zt=Rt,pt=dt,Rt=At,At=Ot+rr|0,dt=ut+cr+getCarry(At,Ot)|0,ut=lt,Ot=vt,lt=nt,vt=Mt,nt=rt,Mt=xt,xt=rr+ir|0,rt=cr+dr+getCarry(xt,rr)|0}this._al=this._al+xt|0,this._bl=this._bl+Mt|0,this._cl=this._cl+vt|0,this._dl=this._dl+Ot|0,this._el=this._el+At|0,this._fl=this._fl+Rt|0,this._gl=this._gl+zt|0,this._hl=this._hl+Tt|0,this._ah=this._ah+rt+getCarry(this._al,xt)|0,this._bh=this._bh+nt+getCarry(this._bl,Mt)|0,this._ch=this._ch+lt+getCarry(this._cl,vt)|0,this._dh=this._dh+ut+getCarry(this._dl,Ot)|0,this._eh=this._eh+dt+getCarry(this._el,At)|0,this._fh=this._fh+pt+getCarry(this._fl,Rt)|0,this._gh=this._gh+ht+getCarry(this._gl,zt)|0,this._hh=this._hh+mt+getCarry(this._hl,Tt)|0};Sha512.prototype._hash=function(){var et=Buffer$q.allocUnsafe(64);function tt(rt,nt,lt){et.writeInt32BE(rt,lt),et.writeInt32BE(nt,lt+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),tt(this._gh,this._gl,48),tt(this._hh,this._hl,56),et};var sha512$1=Sha512,inherits$h=inherits_browserExports,SHA512$2=sha512$1,Hash$1=hash$3,Buffer$p=safeBufferExports$1.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$1.call(this,128,112)}inherits$h(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var et=Buffer$p.allocUnsafe(48);function tt(rt,nt,lt){et.writeInt32BE(rt,lt),et.writeInt32BE(nt,lt+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),et};var sha384$1=Sha384,exports$1=sha_js.exports=function(tt){tt=tt.toLowerCase();var rt=exports$1[tt];if(!rt)throw new Error(tt+" is not supported (we accept pull requests)");return new rt};exports$1.sha=sha$4;exports$1.sha1=sha1;exports$1.sha224=sha224$1;exports$1.sha256=sha256$1;exports$1.sha384=sha384$1;exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,Buffer$o=safeBufferExports$1.Buffer,Transform$6=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$g=inherits_browserExports;function CipherBase$1(et){Transform$6.call(this),this.hashMode=typeof et=="string",this.hashMode?this[et]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$g(CipherBase$1,Transform$6);CipherBase$1.prototype.update=function(et,tt,rt){typeof et=="string"&&(et=Buffer$o.from(et,tt));var nt=this._update(et);return this.hashMode?this:(rt&&(nt=this._toString(nt,rt)),nt)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(et,tt,rt){var nt;try{this.hashMode?this._update(et):this.push(this._update(et))}catch(lt){nt=lt}finally{rt(nt)}};CipherBase$1.prototype._flush=function(et){var tt;try{this.push(this.__final())}catch(rt){tt=rt}et(tt)};CipherBase$1.prototype._finalOrDigest=function(et){var tt=this.__final()||Buffer$o.alloc(0);return et&&(tt=this._toString(tt,et,!0)),tt};CipherBase$1.prototype._toString=function(et,tt,rt){if(this._decoder||(this._decoder=new StringDecoder(tt),this._encoding=tt),this._encoding!==tt)throw new Error("can't switch encodings");var nt=this._decoder.write(et);return rt&&(nt+=this._decoder.end()),nt};var cipherBase=CipherBase$1,inherits$f=inherits_browserExports,MD5$2=md5_js,RIPEMD160$3=ripemd160,sha$3=sha_jsExports,Base$5=cipherBase;function Hash(et){Base$5.call(this,"digest"),this._hash=et}inherits$f(Hash,Base$5);Hash.prototype._update=function(et){this._hash.update(et)};Hash.prototype._final=function(){return this._hash.digest()};var browser$9=function(tt){return tt=tt.toLowerCase(),tt==="md5"?new MD5$2:tt==="rmd160"||tt==="ripemd160"?new RIPEMD160$3:new Hash(sha$3(tt))},inherits$e=inherits_browserExports,Buffer$n=safeBufferExports$1.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$n.alloc(128),blocksize=64;function Hmac$3(et,tt){Base$4.call(this,"digest"),typeof tt=="string"&&(tt=Buffer$n.from(tt)),this._alg=et,this._key=tt,tt.length>blocksize?tt=et(tt):tt.length<blocksize&&(tt=Buffer$n.concat([tt,ZEROS$2],blocksize));for(var rt=this._ipad=Buffer$n.allocUnsafe(blocksize),nt=this._opad=Buffer$n.allocUnsafe(blocksize),lt=0;lt<blocksize;lt++)rt[lt]=tt[lt]^54,nt[lt]=tt[lt]^92;this._hash=[rt]}inherits$e(Hmac$3,Base$4);Hmac$3.prototype._update=function(et){this._hash.push(et)};Hmac$3.prototype._final=function(){var et=this._alg(Buffer$n.concat(this._hash));return this._alg(Buffer$n.concat([this._opad,et]))};var legacy=Hmac$3,MD5$1=md5_js,md5$2=function(et){return new MD5$1().update(et).digest()},inherits$d=inherits_browserExports,Legacy=legacy,Base$3=cipherBase,Buffer$m=safeBufferExports$1.Buffer,md5$1=md5$2,RIPEMD160$2=ripemd160,sha$2=sha_jsExports,ZEROS$1=Buffer$m.alloc(128);function Hmac$2(et,tt){Base$3.call(this,"digest"),typeof tt=="string"&&(tt=Buffer$m.from(tt));var rt=et==="sha512"||et==="sha384"?128:64;if(this._alg=et,this._key=tt,tt.length>rt){var nt=et==="rmd160"?new RIPEMD160$2:sha$2(et);tt=nt.update(tt).digest()}else tt.length<rt&&(tt=Buffer$m.concat([tt,ZEROS$1],rt));for(var lt=this._ipad=Buffer$m.allocUnsafe(rt),ut=this._opad=Buffer$m.allocUnsafe(rt),dt=0;dt<rt;dt++)lt[dt]=tt[dt]^54,ut[dt]=tt[dt]^92;this._hash=et==="rmd160"?new RIPEMD160$2:sha$2(et),this._hash.update(lt)}inherits$d(Hmac$2,Base$3);Hmac$2.prototype._update=function(et){this._hash.update(et)};Hmac$2.prototype._final=function(){var et=this._hash.digest(),tt=this._alg==="rmd160"?new RIPEMD160$2:sha$2(this._alg);return tt.update(this._opad).update(et).digest()};var browser$8=function(tt,rt){return tt=tt.toLowerCase(),tt==="rmd160"||tt==="ripemd160"?new Hmac$2("rmd160",rt):tt==="md5"?new Legacy(md5$1,rt):new Hmac$2(tt,rt)};const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos=require$$6,browser$7={},MAX_ALLOC=Math.pow(2,30)-1,precondition=function(et,tt){if(typeof et!="number")throw new TypeError("Iterations not a number");if(et<0)throw new TypeError("Bad iterations");if(typeof tt!="number")throw new TypeError("Key length not a number");if(tt<0||tt>MAX_ALLOC||tt!==tt)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal$1.process&&commonjsGlobal$1.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal$1.process&&commonjsGlobal$1.process.version){var pVersionMajor=parseInt(process$1$1.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$l=safeBufferExports$1.Buffer,toBuffer$2=function(et,tt,rt){if(Buffer$l.isBuffer(et))return et;if(typeof et=="string")return Buffer$l.from(et,tt);if(ArrayBuffer.isView(et))return Buffer$l.from(et.buffer);throw new TypeError(rt+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$k=safeBufferExports$1.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer$2,ZEROS=Buffer$k.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(et,tt,rt){var nt=getDigest(et),lt=et==="sha512"||et==="sha384"?128:64;tt.length>lt?tt=nt(tt):tt.length<lt&&(tt=Buffer$k.concat([tt,ZEROS],lt));for(var ut=Buffer$k.allocUnsafe(lt+sizes[et]),dt=Buffer$k.allocUnsafe(lt+sizes[et]),pt=0;pt<lt;pt++)ut[pt]=tt[pt]^54,dt[pt]=tt[pt]^92;var ht=Buffer$k.allocUnsafe(lt+rt+4);ut.copy(ht,0,0,lt),this.ipad1=ht,this.ipad2=ut,this.opad=dt,this.alg=et,this.blocksize=lt,this.hash=nt,this.size=sizes[et]}Hmac$1.prototype.run=function(et,tt){et.copy(tt,this.blocksize);var rt=this.hash(tt);return rt.copy(this.opad,this.blocksize),this.hash(this.opad)};function getDigest(et){function tt(nt){return sha$1(et).update(nt).digest()}function rt(nt){return new RIPEMD160$1().update(nt).digest()}return et==="rmd160"||et==="ripemd160"?rt:et==="md5"?md5:tt}function pbkdf2(et,tt,rt,nt,lt){checkParameters$1(rt,nt),et=toBuffer$1(et,defaultEncoding$1,"Password"),tt=toBuffer$1(tt,defaultEncoding$1,"Salt"),lt=lt||"sha1";var ut=new Hmac$1(lt,et,tt.length),dt=Buffer$k.allocUnsafe(nt),pt=Buffer$k.allocUnsafe(tt.length+4);tt.copy(pt,0,0,tt.length);for(var ht=0,mt=sizes[lt],xt=Math.ceil(nt/mt),Mt=1;Mt<=xt;Mt++){pt.writeUInt32BE(Mt,tt.length);for(var vt=ut.run(pt,ut.ipad1),Ot=vt,At=1;At<rt;At++){Ot=ut.run(Ot,ut.ipad2);for(var Rt=0;Rt<mt;Rt++)vt[Rt]^=Ot[Rt]}vt.copy(dt,ht),ht+=mt}return dt}var syncBrowser=pbkdf2,Buffer$j=safeBufferExports$1.Buffer,checkParameters=precondition,defaultEncoding=defaultEncoding_1,sync=syncBrowser,toBuffer=toBuffer$2,ZERO_BUF,subtle=commonjsGlobal$1.crypto&&commonjsGlobal$1.crypto.subtle,toBrowser={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},checks=[];function checkNative(et){if(commonjsGlobal$1.process&&!commonjsGlobal$1.process.browser||!subtle||!subtle.importKey||!subtle.deriveBits)return Promise.resolve(!1);if(checks[et]!==void 0)return checks[et];ZERO_BUF=ZERO_BUF||Buffer$j.alloc(8);var tt=browserPbkdf2(ZERO_BUF,ZERO_BUF,10,128,et).then(function(){return!0}).catch(function(){return!1});return checks[et]=tt,tt}var nextTick$1;function getNextTick(){return nextTick$1||(commonjsGlobal$1.process&&commonjsGlobal$1.process.nextTick?nextTick$1=commonjsGlobal$1.process.nextTick:commonjsGlobal$1.queueMicrotask?nextTick$1=commonjsGlobal$1.queueMicrotask:commonjsGlobal$1.setImmediate?nextTick$1=commonjsGlobal$1.setImmediate:nextTick$1=commonjsGlobal$1.setTimeout,nextTick$1)}function browserPbkdf2(et,tt,rt,nt,lt){return subtle.importKey("raw",et,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ut){return subtle.deriveBits({name:"PBKDF2",salt:tt,iterations:rt,hash:{name:lt}},ut,nt<<3)}).then(function(ut){return Buffer$j.from(ut)})}function resolvePromise(et,tt){et.then(function(rt){getNextTick()(function(){tt(null,rt)})},function(rt){getNextTick()(function(){tt(rt)})})}var async=function(et,tt,rt,nt,lt,ut){typeof lt=="function"&&(ut=lt,lt=void 0),lt=lt||"sha1";var dt=toBrowser[lt.toLowerCase()];if(!dt||typeof commonjsGlobal$1.Promise!="function"){getNextTick()(function(){var pt;try{pt=sync(et,tt,rt,nt,lt)}catch(ht){return ut(ht)}ut(null,pt)});return}if(checkParameters(rt,nt),et=toBuffer(et,defaultEncoding,"Password"),tt=toBuffer(tt,defaultEncoding,"Salt"),typeof ut!="function")throw new Error("No callback provided to pbkdf2");resolvePromise(checkNative(dt).then(function(pt){return pt?browserPbkdf2(et,tt,rt,nt,dt):sync(et,tt,rt,nt,lt)}),ut)};browser$7.pbkdf2=async;browser$7.pbkdf2Sync=syncBrowser;var browser$6={},des$2={},utils$n={};utils$n.readUInt32BE=function(tt,rt){var nt=tt[0+rt]<<24|tt[1+rt]<<16|tt[2+rt]<<8|tt[3+rt];return nt>>>0};utils$n.writeUInt32BE=function(tt,rt,nt){tt[0+nt]=rt>>>24,tt[1+nt]=rt>>>16&255,tt[2+nt]=rt>>>8&255,tt[3+nt]=rt&255};utils$n.ip=function(tt,rt,nt,lt){for(var ut=0,dt=0,pt=6;pt>=0;pt-=2){for(var ht=0;ht<=24;ht+=8)ut<<=1,ut|=rt>>>ht+pt&1;for(var ht=0;ht<=24;ht+=8)ut<<=1,ut|=tt>>>ht+pt&1}for(var pt=6;pt>=0;pt-=2){for(var ht=1;ht<=25;ht+=8)dt<<=1,dt|=rt>>>ht+pt&1;for(var ht=1;ht<=25;ht+=8)dt<<=1,dt|=tt>>>ht+pt&1}nt[lt+0]=ut>>>0,nt[lt+1]=dt>>>0};utils$n.rip=function(tt,rt,nt,lt){for(var ut=0,dt=0,pt=0;pt<4;pt++)for(var ht=24;ht>=0;ht-=8)ut<<=1,ut|=rt>>>ht+pt&1,ut<<=1,ut|=tt>>>ht+pt&1;for(var pt=4;pt<8;pt++)for(var ht=24;ht>=0;ht-=8)dt<<=1,dt|=rt>>>ht+pt&1,dt<<=1,dt|=tt>>>ht+pt&1;nt[lt+0]=ut>>>0,nt[lt+1]=dt>>>0};utils$n.pc1=function(tt,rt,nt,lt){for(var ut=0,dt=0,pt=7;pt>=5;pt--){for(var ht=0;ht<=24;ht+=8)ut<<=1,ut|=rt>>ht+pt&1;for(var ht=0;ht<=24;ht+=8)ut<<=1,ut|=tt>>ht+pt&1}for(var ht=0;ht<=24;ht+=8)ut<<=1,ut|=rt>>ht+pt&1;for(var pt=1;pt<=3;pt++){for(var ht=0;ht<=24;ht+=8)dt<<=1,dt|=rt>>ht+pt&1;for(var ht=0;ht<=24;ht+=8)dt<<=1,dt|=tt>>ht+pt&1}for(var ht=0;ht<=24;ht+=8)dt<<=1,dt|=tt>>ht+pt&1;nt[lt+0]=ut>>>0,nt[lt+1]=dt>>>0};utils$n.r28shl=function(tt,rt){return tt<<rt&268435455|tt>>>28-rt};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$n.pc2=function(tt,rt,nt,lt){for(var ut=0,dt=0,pt=pc2table.length>>>1,ht=0;ht<pt;ht++)ut<<=1,ut|=tt>>>pc2table[ht]&1;for(var ht=pt;ht<pc2table.length;ht++)dt<<=1,dt|=rt>>>pc2table[ht]&1;nt[lt+0]=ut>>>0,nt[lt+1]=dt>>>0};utils$n.expand=function(tt,rt,nt){var lt=0,ut=0;lt=(tt&1)<<5|tt>>>27;for(var dt=23;dt>=15;dt-=4)lt<<=6,lt|=tt>>>dt&63;for(var dt=11;dt>=3;dt-=4)ut|=tt>>>dt&63,ut<<=6;ut|=(tt&31)<<1|tt>>>31,rt[nt+0]=lt>>>0,rt[nt+1]=ut>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$n.substitute=function(tt,rt){for(var nt=0,lt=0;lt<4;lt++){var ut=tt>>>18-lt*6&63,dt=sTable[lt*64+ut];nt<<=4,nt|=dt}for(var lt=0;lt<4;lt++){var ut=rt>>>18-lt*6&63,dt=sTable[4*64+lt*64+ut];nt<<=4,nt|=dt}return nt>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$n.permute=function(tt){for(var rt=0,nt=0;nt<permuteTable.length;nt++)rt<<=1,rt|=tt>>>permuteTable[nt]&1;return rt>>>0};utils$n.padSplit=function(tt,rt,nt){for(var lt=tt.toString(2);lt.length<rt;)lt="0"+lt;for(var ut=[],dt=0;dt<rt;dt+=nt)ut.push(lt.slice(dt,dt+nt));return ut.join(" ")};var minimalisticAssert=assert$i;function assert$i(et,tt){if(!et)throw new Error(tt||"Assertion failed")}assert$i.equal=function(tt,rt,nt){if(tt!=rt)throw new Error(nt||"Assertion failed: "+tt+" != "+rt)};var assert$h=minimalisticAssert;function Cipher$3(et){this.options=et,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=et.padding!==!1}var cipher=Cipher$3;Cipher$3.prototype._init=function(){};Cipher$3.prototype.update=function(tt){return tt.length===0?[]:this.type==="decrypt"?this._updateDecrypt(tt):this._updateEncrypt(tt)};Cipher$3.prototype._buffer=function(tt,rt){for(var nt=Math.min(this.buffer.length-this.bufferOff,tt.length-rt),lt=0;lt<nt;lt++)this.buffer[this.bufferOff+lt]=tt[rt+lt];return this.bufferOff+=nt,nt};Cipher$3.prototype._flushBuffer=function(tt,rt){return this._update(this.buffer,0,tt,rt),this.bufferOff=0,this.blockSize};Cipher$3.prototype._updateEncrypt=function(tt){var rt=0,nt=0,lt=(this.bufferOff+tt.length)/this.blockSize|0,ut=new Array(lt*this.blockSize);this.bufferOff!==0&&(rt+=this._buffer(tt,rt),this.bufferOff===this.buffer.length&&(nt+=this._flushBuffer(ut,nt)));for(var dt=tt.length-(tt.length-rt)%this.blockSize;rt<dt;rt+=this.blockSize)this._update(tt,rt,ut,nt),nt+=this.blockSize;for(;rt<tt.length;rt++,this.bufferOff++)this.buffer[this.bufferOff]=tt[rt];return ut};Cipher$3.prototype._updateDecrypt=function(tt){for(var rt=0,nt=0,lt=Math.ceil((this.bufferOff+tt.length)/this.blockSize)-1,ut=new Array(lt*this.blockSize);lt>0;lt--)rt+=this._buffer(tt,rt),nt+=this._flushBuffer(ut,nt);return rt+=this._buffer(tt,rt),ut};Cipher$3.prototype.final=function(tt){var rt;tt&&(rt=this.update(tt));var nt;return this.type==="encrypt"?nt=this._finalEncrypt():nt=this._finalDecrypt(),rt?rt.concat(nt):nt};Cipher$3.prototype._pad=function(tt,rt){if(rt===0)return!1;for(;rt<tt.length;)tt[rt++]=0;return!0};Cipher$3.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var tt=new Array(this.blockSize);return this._update(this.buffer,0,tt,0),tt};Cipher$3.prototype._unpad=function(tt){return tt};Cipher$3.prototype._finalDecrypt=function(){assert$h.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var tt=new Array(this.blockSize);return this._flushBuffer(tt,0),this._unpad(tt)};var assert$g=minimalisticAssert,inherits$c=inherits_browserExports,utils$m=utils$n,Cipher$2=cipher;function DESState(){this.tmp=new Array(2),this.keys=null}function DES$3(et){Cipher$2.call(this,et);var tt=new DESState;this._desState=tt,this.deriveKeys(tt,et.key)}inherits$c(DES$3,Cipher$2);var des$1=DES$3;DES$3.create=function(tt){return new DES$3(tt)};var shiftTable=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];DES$3.prototype.deriveKeys=function(tt,rt){tt.keys=new Array(16*2),assert$g.equal(rt.length,this.blockSize,"Invalid key length");var nt=utils$m.readUInt32BE(rt,0),lt=utils$m.readUInt32BE(rt,4);utils$m.pc1(nt,lt,tt.tmp,0),nt=tt.tmp[0],lt=tt.tmp[1];for(var ut=0;ut<tt.keys.length;ut+=2){var dt=shiftTable[ut>>>1];nt=utils$m.r28shl(nt,dt),lt=utils$m.r28shl(lt,dt),utils$m.pc2(nt,lt,tt.keys,ut)}};DES$3.prototype._update=function(tt,rt,nt,lt){var ut=this._desState,dt=utils$m.readUInt32BE(tt,rt),pt=utils$m.readUInt32BE(tt,rt+4);utils$m.ip(dt,pt,ut.tmp,0),dt=ut.tmp[0],pt=ut.tmp[1],this.type==="encrypt"?this._encrypt(ut,dt,pt,ut.tmp,0):this._decrypt(ut,dt,pt,ut.tmp,0),dt=ut.tmp[0],pt=ut.tmp[1],utils$m.writeUInt32BE(nt,dt,lt),utils$m.writeUInt32BE(nt,pt,lt+4)};DES$3.prototype._pad=function(tt,rt){if(this.padding===!1)return!1;for(var nt=tt.length-rt,lt=rt;lt<tt.length;lt++)tt[lt]=nt;return!0};DES$3.prototype._unpad=function(tt){if(this.padding===!1)return tt;for(var rt=tt[tt.length-1],nt=tt.length-rt;nt<tt.length;nt++)assert$g.equal(tt[nt],rt);return tt.slice(0,tt.length-rt)};DES$3.prototype._encrypt=function(tt,rt,nt,lt,ut){for(var dt=rt,pt=nt,ht=0;ht<tt.keys.length;ht+=2){var mt=tt.keys[ht],xt=tt.keys[ht+1];utils$m.expand(pt,tt.tmp,0),mt^=tt.tmp[0],xt^=tt.tmp[1];var Mt=utils$m.substitute(mt,xt),vt=utils$m.permute(Mt),Ot=pt;pt=(dt^vt)>>>0,dt=Ot}utils$m.rip(pt,dt,lt,ut)};DES$3.prototype._decrypt=function(tt,rt,nt,lt,ut){for(var dt=nt,pt=rt,ht=tt.keys.length-2;ht>=0;ht-=2){var mt=tt.keys[ht],xt=tt.keys[ht+1];utils$m.expand(dt,tt.tmp,0),mt^=tt.tmp[0],xt^=tt.tmp[1];var Mt=utils$m.substitute(mt,xt),vt=utils$m.permute(Mt),Ot=dt;dt=(pt^vt)>>>0,pt=Ot}utils$m.rip(dt,pt,lt,ut)};var cbc$1={},assert$f=minimalisticAssert,inherits$b=inherits_browserExports,proto={};function CBCState(et){assert$f.equal(et.length,8,"Invalid IV length"),this.iv=new Array(8);for(var tt=0;tt<this.iv.length;tt++)this.iv[tt]=et[tt]}function instantiate(et){function tt(ut){et.call(this,ut),this._cbcInit()}inherits$b(tt,et);for(var rt=Object.keys(proto),nt=0;nt<rt.length;nt++){var lt=rt[nt];tt.prototype[lt]=proto[lt]}return tt.create=function(dt){return new tt(dt)},tt}cbc$1.instantiate=instantiate;proto._cbcInit=function(){var tt=new CBCState(this.options.iv);this._cbcState=tt};proto._update=function(tt,rt,nt,lt){var ut=this._cbcState,dt=this.constructor.super_.prototype,pt=ut.iv;if(this.type==="encrypt"){for(var ht=0;ht<this.blockSize;ht++)pt[ht]^=tt[rt+ht];dt._update.call(this,pt,0,nt,lt);for(var ht=0;ht<this.blockSize;ht++)pt[ht]=nt[lt+ht]}else{dt._update.call(this,tt,rt,nt,lt);for(var ht=0;ht<this.blockSize;ht++)nt[lt+ht]^=pt[ht];for(var ht=0;ht<this.blockSize;ht++)pt[ht]=tt[rt+ht]}};var assert$e=minimalisticAssert,inherits$a=inherits_browserExports,Cipher$1=cipher,DES$2=des$1;function EDEState(et,tt){assert$e.equal(tt.length,24,"Invalid key length");var rt=tt.slice(0,8),nt=tt.slice(8,16),lt=tt.slice(16,24);et==="encrypt"?this.ciphers=[DES$2.create({type:"encrypt",key:rt}),DES$2.create({type:"decrypt",key:nt}),DES$2.create({type:"encrypt",key:lt})]:this.ciphers=[DES$2.create({type:"decrypt",key:lt}),DES$2.create({type:"encrypt",key:nt}),DES$2.create({type:"decrypt",key:rt})]}function EDE(et){Cipher$1.call(this,et);var tt=new EDEState(this.type,this.options.key);this._edeState=tt}inherits$a(EDE,Cipher$1);var ede=EDE;EDE.create=function(tt){return new EDE(tt)};EDE.prototype._update=function(tt,rt,nt,lt){var ut=this._edeState;ut.ciphers[0]._update(tt,rt,nt,lt),ut.ciphers[1]._update(nt,lt,nt,lt),ut.ciphers[2]._update(nt,lt,nt,lt)};EDE.prototype._pad=DES$2.prototype._pad;EDE.prototype._unpad=DES$2.prototype._unpad;des$2.utils=utils$n;des$2.Cipher=cipher;des$2.DES=des$1;des$2.CBC=cbc$1;des$2.EDE=ede;var CipherBase=cipherBase,des=des$2,inherits$9=inherits_browserExports,Buffer$i=safeBufferExports$1.Buffer,modes$3={"des-ede3-cbc":des.CBC.instantiate(des.EDE),"des-ede3":des.EDE,"des-ede-cbc":des.CBC.instantiate(des.EDE),"des-ede":des.EDE,"des-cbc":des.CBC.instantiate(des.DES),"des-ecb":des.DES};modes$3.des=modes$3["des-cbc"];modes$3.des3=modes$3["des-ede3-cbc"];var browserifyDes=DES$1;inherits$9(DES$1,CipherBase);function DES$1(et){CipherBase.call(this);var tt=et.mode.toLowerCase(),rt=modes$3[tt],nt;et.decrypt?nt="decrypt":nt="encrypt";var lt=et.key;Buffer$i.isBuffer(lt)||(lt=Buffer$i.from(lt)),(tt==="des-ede"||tt==="des-ede-cbc")&&(lt=Buffer$i.concat([lt,lt.slice(0,8)]));var ut=et.iv;Buffer$i.isBuffer(ut)||(ut=Buffer$i.from(ut)),this._des=rt.create({key:lt,iv:ut,type:nt})}DES$1.prototype._update=function(et){return Buffer$i.from(this._des.update(et))};DES$1.prototype._final=function(){return Buffer$i.from(this._des.final())};var browser$5={},encrypter={},ecb={};ecb.encrypt=function(et,tt){return et._cipher.encryptBlock(tt)};ecb.decrypt=function(et,tt){return et._cipher.decryptBlock(tt)};var cbc={},bufferXor=function(tt,rt){for(var nt=Math.min(tt.length,rt.length),lt=new Buffer$E(nt),ut=0;ut<nt;++ut)lt[ut]=tt[ut]^rt[ut];return lt},xor$7=bufferXor;cbc.encrypt=function(et,tt){var rt=xor$7(tt,et._prev);return et._prev=et._cipher.encryptBlock(rt),et._prev};cbc.decrypt=function(et,tt){var rt=et._prev;et._prev=tt;var nt=et._cipher.decryptBlock(tt);return xor$7(nt,rt)};var cfb={},Buffer$h=safeBufferExports$1.Buffer,xor$6=bufferXor;function encryptStart(et,tt,rt){var nt=tt.length,lt=xor$6(tt,et._cache);return et._cache=et._cache.slice(nt),et._prev=Buffer$h.concat([et._prev,rt?tt:lt]),lt}cfb.encrypt=function(et,tt,rt){for(var nt=Buffer$h.allocUnsafe(0),lt;tt.length;)if(et._cache.length===0&&(et._cache=et._cipher.encryptBlock(et._prev),et._prev=Buffer$h.allocUnsafe(0)),et._cache.length<=tt.length)lt=et._cache.length,nt=Buffer$h.concat([nt,encryptStart(et,tt.slice(0,lt),rt)]),tt=tt.slice(lt);else{nt=Buffer$h.concat([nt,encryptStart(et,tt,rt)]);break}return nt};var cfb8={},Buffer$g=safeBufferExports$1.Buffer;function encryptByte$1(et,tt,rt){var nt=et._cipher.encryptBlock(et._prev),lt=nt[0]^tt;return et._prev=Buffer$g.concat([et._prev.slice(1),Buffer$g.from([rt?tt:lt])]),lt}cfb8.encrypt=function(et,tt,rt){for(var nt=tt.length,lt=Buffer$g.allocUnsafe(nt),ut=-1;++ut<nt;)lt[ut]=encryptByte$1(et,tt[ut],rt);return lt};var cfb1={},Buffer$f=safeBufferExports$1.Buffer;function encryptByte(et,tt,rt){for(var nt,lt=-1,ut=8,dt=0,pt,ht;++lt<ut;)nt=et._cipher.encryptBlock(et._prev),pt=tt&1<<7-lt?128:0,ht=nt[0]^pt,dt+=(ht&128)>>lt%8,et._prev=shiftIn(et._prev,rt?pt:ht);return dt}function shiftIn(et,tt){var rt=et.length,nt=-1,lt=Buffer$f.allocUnsafe(et.length);for(et=Buffer$f.concat([et,Buffer$f.from([tt])]);++nt<rt;)lt[nt]=et[nt]<<1|et[nt+1]>>7;return lt}cfb1.encrypt=function(et,tt,rt){for(var nt=tt.length,lt=Buffer$f.allocUnsafe(nt),ut=-1;++ut<nt;)lt[ut]=encryptByte(et,tt[ut],rt);return lt};var ofb={},xor$5=bufferXor;function getBlock$1(et){return et._prev=et._cipher.encryptBlock(et._prev),et._prev}ofb.encrypt=function(et,tt){for(;et._cache.length<tt.length;)et._cache=Buffer$E.concat([et._cache,getBlock$1(et)]);var rt=et._cache.slice(0,tt.length);return et._cache=et._cache.slice(tt.length),xor$5(tt,rt)};var ctr={};function incr32$2(et){for(var tt=et.length,rt;tt--;)if(rt=et.readUInt8(tt),rt===255)et.writeUInt8(0,tt);else{rt++,et.writeUInt8(rt,tt);break}}var incr32_1=incr32$2,xor$4=bufferXor,Buffer$e=safeBufferExports$1.Buffer,incr32$1=incr32_1;function getBlock(et){var tt=et._cipher.encryptBlockRaw(et._prev);return incr32$1(et._prev),tt}var blockSize=16;ctr.encrypt=function(et,tt){var rt=Math.ceil(tt.length/blockSize),nt=et._cache.length;et._cache=Buffer$e.concat([et._cache,Buffer$e.allocUnsafe(rt*blockSize)]);for(var lt=0;lt<rt;lt++){var ut=getBlock(et),dt=nt+lt*blockSize;et._cache.writeUInt32BE(ut[0],dt+0),et._cache.writeUInt32BE(ut[1],dt+4),et._cache.writeUInt32BE(ut[2],dt+8),et._cache.writeUInt32BE(ut[3],dt+12)}var pt=et._cache.slice(0,tt.length);return et._cache=et._cache.slice(tt.length),xor$4(tt,pt)};const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modeModules={ECB:ecb,CBC:cbc,CFB:cfb,CFB8:cfb8,CFB1:cfb1,OFB:ofb,CTR:ctr,GCM:ctr},modes$2=require$$2;for(var key$2 in modes$2)modes$2[key$2].module=modeModules[modes$2[key$2].mode];var modes_1=modes$2,aes$5={},Buffer$d=safeBufferExports$1.Buffer;function asUInt32Array(et){Buffer$d.isBuffer(et)||(et=Buffer$d.from(et));for(var tt=et.length/4|0,rt=new Array(tt),nt=0;nt<tt;nt++)rt[nt]=et.readUInt32BE(nt*4);return rt}function scrubVec(et){for(var tt=0;tt<et.length;et++)et[tt]=0}function cryptBlock(et,tt,rt,nt,lt){for(var ut=rt[0],dt=rt[1],pt=rt[2],ht=rt[3],mt=et[0]^tt[0],xt=et[1]^tt[1],Mt=et[2]^tt[2],vt=et[3]^tt[3],Ot,At,Rt,zt,Tt=4,Ct=1;Ct<lt;Ct++)Ot=ut[mt>>>24]^dt[xt>>>16&255]^pt[Mt>>>8&255]^ht[vt&255]^tt[Tt++],At=ut[xt>>>24]^dt[Mt>>>16&255]^pt[vt>>>8&255]^ht[mt&255]^tt[Tt++],Rt=ut[Mt>>>24]^dt[vt>>>16&255]^pt[mt>>>8&255]^ht[xt&255]^tt[Tt++],zt=ut[vt>>>24]^dt[mt>>>16&255]^pt[xt>>>8&255]^ht[Mt&255]^tt[Tt++],mt=Ot,xt=At,Mt=Rt,vt=zt;return Ot=(nt[mt>>>24]<<24|nt[xt>>>16&255]<<16|nt[Mt>>>8&255]<<8|nt[vt&255])^tt[Tt++],At=(nt[xt>>>24]<<24|nt[Mt>>>16&255]<<16|nt[vt>>>8&255]<<8|nt[mt&255])^tt[Tt++],Rt=(nt[Mt>>>24]<<24|nt[vt>>>16&255]<<16|nt[mt>>>8&255]<<8|nt[xt&255])^tt[Tt++],zt=(nt[vt>>>24]<<24|nt[mt>>>16&255]<<16|nt[xt>>>8&255]<<8|nt[Mt&255])^tt[Tt++],Ot=Ot>>>0,At=At>>>0,Rt=Rt>>>0,zt=zt>>>0,[Ot,At,Rt,zt]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var et=new Array(256),tt=0;tt<256;tt++)tt<128?et[tt]=tt<<1:et[tt]=tt<<1^283;for(var rt=[],nt=[],lt=[[],[],[],[]],ut=[[],[],[],[]],dt=0,pt=0,ht=0;ht<256;++ht){var mt=pt^pt<<1^pt<<2^pt<<3^pt<<4;mt=mt>>>8^mt&255^99,rt[dt]=mt,nt[mt]=dt;var xt=et[dt],Mt=et[xt],vt=et[Mt],Ot=et[mt]*257^mt*16843008;lt[0][dt]=Ot<<24|Ot>>>8,lt[1][dt]=Ot<<16|Ot>>>16,lt[2][dt]=Ot<<8|Ot>>>24,lt[3][dt]=Ot,Ot=vt*16843009^Mt*65537^xt*257^dt*16843008,ut[0][mt]=Ot<<24|Ot>>>8,ut[1][mt]=Ot<<16|Ot>>>16,ut[2][mt]=Ot<<8|Ot>>>24,ut[3][mt]=Ot,dt===0?dt=pt=1:(dt=xt^et[et[et[vt^xt]]],pt^=et[et[pt]])}return{SBOX:rt,INV_SBOX:nt,SUB_MIX:lt,INV_SUB_MIX:ut}}();function AES(et){this._key=asUInt32Array(et),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var et=this._key,tt=et.length,rt=tt+6,nt=(rt+1)*4,lt=[],ut=0;ut<tt;ut++)lt[ut]=et[ut];for(ut=tt;ut<nt;ut++){var dt=lt[ut-1];ut%tt===0?(dt=dt<<8|dt>>>24,dt=G.SBOX[dt>>>24]<<24|G.SBOX[dt>>>16&255]<<16|G.SBOX[dt>>>8&255]<<8|G.SBOX[dt&255],dt^=RCON[ut/tt|0]<<24):tt>6&&ut%tt===4&&(dt=G.SBOX[dt>>>24]<<24|G.SBOX[dt>>>16&255]<<16|G.SBOX[dt>>>8&255]<<8|G.SBOX[dt&255]),lt[ut]=lt[ut-tt]^dt}for(var pt=[],ht=0;ht<nt;ht++){var mt=nt-ht,xt=lt[mt-(ht%4?0:4)];ht<4||mt<=4?pt[ht]=xt:pt[ht]=G.INV_SUB_MIX[0][G.SBOX[xt>>>24]]^G.INV_SUB_MIX[1][G.SBOX[xt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[xt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[xt&255]]}this._nRounds=rt,this._keySchedule=lt,this._invKeySchedule=pt};AES.prototype.encryptBlockRaw=function(et){return et=asUInt32Array(et),cryptBlock(et,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(et){var tt=this.encryptBlockRaw(et),rt=Buffer$d.allocUnsafe(16);return rt.writeUInt32BE(tt[0],0),rt.writeUInt32BE(tt[1],4),rt.writeUInt32BE(tt[2],8),rt.writeUInt32BE(tt[3],12),rt};AES.prototype.decryptBlock=function(et){et=asUInt32Array(et);var tt=et[1];et[1]=et[3],et[3]=tt;var rt=cryptBlock(et,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),nt=Buffer$d.allocUnsafe(16);return nt.writeUInt32BE(rt[0],0),nt.writeUInt32BE(rt[3],4),nt.writeUInt32BE(rt[2],8),nt.writeUInt32BE(rt[1],12),nt};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$c=safeBufferExports$1.Buffer,ZEROES=Buffer$c.alloc(16,0);function toArray$1(et){return[et.readUInt32BE(0),et.readUInt32BE(4),et.readUInt32BE(8),et.readUInt32BE(12)]}function fromArray(et){var tt=Buffer$c.allocUnsafe(16);return tt.writeUInt32BE(et[0]>>>0,0),tt.writeUInt32BE(et[1]>>>0,4),tt.writeUInt32BE(et[2]>>>0,8),tt.writeUInt32BE(et[3]>>>0,12),tt}function GHASH$1(et){this.h=et,this.state=Buffer$c.alloc(16,0),this.cache=Buffer$c.allocUnsafe(0)}GHASH$1.prototype.ghash=function(et){for(var tt=-1;++tt<et.length;)this.state[tt]^=et[tt];this._multiply()};GHASH$1.prototype._multiply=function(){for(var et=toArray$1(this.h),tt=[0,0,0,0],rt,nt,lt,ut=-1;++ut<128;){for(nt=(this.state[~~(ut/8)]&1<<7-ut%8)!==0,nt&&(tt[0]^=et[0],tt[1]^=et[1],tt[2]^=et[2],tt[3]^=et[3]),lt=(et[3]&1)!==0,rt=3;rt>0;rt--)et[rt]=et[rt]>>>1|(et[rt-1]&1)<<31;et[0]=et[0]>>>1,lt&&(et[0]=et[0]^225<<24)}this.state=fromArray(tt)};GHASH$1.prototype.update=function(et){this.cache=Buffer$c.concat([this.cache,et]);for(var tt;this.cache.length>=16;)tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(tt)};GHASH$1.prototype.final=function(et,tt){return this.cache.length&&this.ghash(Buffer$c.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,et,0,tt])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$b=safeBufferExports$1.Buffer,Transform$5=cipherBase,inherits$8=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(et,tt){var rt=0;et.length!==tt.length&&rt++;for(var nt=Math.min(et.length,tt.length),lt=0;lt<nt;++lt)rt+=et[lt]^tt[lt];return rt}function calcIv(et,tt,rt){if(tt.length===12)return et._finID=Buffer$b.concat([tt,Buffer$b.from([0,0,0,1])]),Buffer$b.concat([tt,Buffer$b.from([0,0,0,2])]);var nt=new GHASH(rt),lt=tt.length,ut=lt%16;nt.update(tt),ut&&(ut=16-ut,nt.update(Buffer$b.alloc(ut,0))),nt.update(Buffer$b.alloc(8,0));var dt=lt*8,pt=Buffer$b.alloc(8);pt.writeUIntBE(dt,0,8),nt.update(pt),et._finID=nt.state;var ht=Buffer$b.from(et._finID);return incr32(ht),ht}function StreamCipher$3(et,tt,rt,nt){Transform$5.call(this);var lt=Buffer$b.alloc(4,0);this._cipher=new aes$4.AES(tt);var ut=this._cipher.encryptBlock(lt);this._ghash=new GHASH(ut),rt=calcIv(this,rt,ut),this._prev=Buffer$b.from(rt),this._cache=Buffer$b.allocUnsafe(0),this._secCache=Buffer$b.allocUnsafe(0),this._decrypt=nt,this._alen=0,this._len=0,this._mode=et,this._authTag=null,this._called=!1}inherits$8(StreamCipher$3,Transform$5);StreamCipher$3.prototype._update=function(et){if(!this._called&&this._alen){var tt=16-this._alen%16;tt<16&&(tt=Buffer$b.alloc(tt,0),this._ghash.update(tt))}this._called=!0;var rt=this._mode.encrypt(this,et);return this._decrypt?this._ghash.update(et):this._ghash.update(rt),this._len+=et.length,rt};StreamCipher$3.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var et=xor$3(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&xorTest(et,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=et,this._cipher.scrub()};StreamCipher$3.prototype.getAuthTag=function(){if(this._decrypt||!Buffer$b.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};StreamCipher$3.prototype.setAuthTag=function(tt){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=tt};StreamCipher$3.prototype.setAAD=function(tt){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(tt),this._alen+=tt.length};var authCipher=StreamCipher$3,aes$3=aes$5,Buffer$a=safeBufferExports$1.Buffer,Transform$4=cipherBase,inherits$7=inherits_browserExports;function StreamCipher$2(et,tt,rt,nt){Transform$4.call(this),this._cipher=new aes$3.AES(tt),this._prev=Buffer$a.from(rt),this._cache=Buffer$a.allocUnsafe(0),this._secCache=Buffer$a.allocUnsafe(0),this._decrypt=nt,this._mode=et}inherits$7(StreamCipher$2,Transform$4);StreamCipher$2.prototype._update=function(et){return this._mode.encrypt(this,et,this._decrypt)};StreamCipher$2.prototype._final=function(){this._cipher.scrub()};var streamCipher=StreamCipher$2,Buffer$9=safeBufferExports$1.Buffer,MD5=md5_js;function EVP_BytesToKey(et,tt,rt,nt){if(Buffer$9.isBuffer(et)||(et=Buffer$9.from(et,"binary")),tt&&(Buffer$9.isBuffer(tt)||(tt=Buffer$9.from(tt,"binary")),tt.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var lt=rt/8,ut=Buffer$9.alloc(lt),dt=Buffer$9.alloc(nt||0),pt=Buffer$9.alloc(0);lt>0||nt>0;){var ht=new MD5;ht.update(pt),ht.update(et),tt&&ht.update(tt),pt=ht.digest();var mt=0;if(lt>0){var xt=ut.length-lt;mt=Math.min(lt,pt.length),pt.copy(ut,xt,0,mt),lt-=mt}if(mt<pt.length&&nt>0){var Mt=dt.length-nt,vt=Math.min(nt,pt.length-mt);pt.copy(dt,Mt,mt,mt+vt),nt-=vt}}return pt.fill(0),{key:ut,iv:dt}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$8=safeBufferExports$1.Buffer,StreamCipher$1=streamCipher,Transform$3=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$6=inherits_browserExports;function Cipher(et,tt,rt){Transform$3.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(tt),this._prev=Buffer$8.from(rt),this._mode=et,this._autopadding=!0}inherits$6(Cipher,Transform$3);Cipher.prototype._update=function(et){this._cache.add(et);for(var tt,rt,nt=[];tt=this._cache.get();)rt=this._mode.encrypt(this,tt),nt.push(rt);return Buffer$8.concat(nt)};var PADDING=Buffer$8.alloc(16,16);Cipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return et=this._mode.encrypt(this,et),this._cipher.scrub(),et;if(!et.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this};function Splitter$1(){this.cache=Buffer$8.allocUnsafe(0)}Splitter$1.prototype.add=function(et){this.cache=Buffer$8.concat([this.cache,et])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var et=this.cache.slice(0,16);return this.cache=this.cache.slice(16),et}return null};Splitter$1.prototype.flush=function(){for(var et=16-this.cache.length,tt=Buffer$8.allocUnsafe(et),rt=-1;++rt<et;)tt.writeUInt8(et,rt);return Buffer$8.concat([this.cache,tt])};function createCipheriv$1(et,tt,rt){var nt=MODES$1[et.toLowerCase()];if(!nt)throw new TypeError("invalid suite type");if(typeof tt=="string"&&(tt=Buffer$8.from(tt)),tt.length!==nt.key/8)throw new TypeError("invalid key length "+tt.length);if(typeof rt=="string"&&(rt=Buffer$8.from(rt)),nt.mode!=="GCM"&&rt.length!==nt.iv)throw new TypeError("invalid iv length "+rt.length);return nt.type==="stream"?new StreamCipher$1(nt.module,tt,rt):nt.type==="auth"?new AuthCipher$1(nt.module,tt,rt):new Cipher(nt.module,tt,rt)}function createCipher$1(et,tt){var rt=MODES$1[et.toLowerCase()];if(!rt)throw new TypeError("invalid suite type");var nt=ebtk$2(tt,!1,rt.key,rt.iv);return createCipheriv$1(et,nt.key,nt.iv)}encrypter.createCipheriv=createCipheriv$1;encrypter.createCipher=createCipher$1;var decrypter={},AuthCipher=authCipher,Buffer$7=safeBufferExports$1.Buffer,MODES=modes_1,StreamCipher=streamCipher,Transform$2=cipherBase,aes$1=aes$5,ebtk$1=evp_bytestokey,inherits$5=inherits_browserExports;function Decipher(et,tt,rt){Transform$2.call(this),this._cache=new Splitter,this._last=void 0,this._cipher=new aes$1.AES(tt),this._prev=Buffer$7.from(rt),this._mode=et,this._autopadding=!0}inherits$5(Decipher,Transform$2);Decipher.prototype._update=function(et){this._cache.add(et);for(var tt,rt,nt=[];tt=this._cache.get(this._autopadding);)rt=this._mode.decrypt(this,tt),nt.push(rt);return Buffer$7.concat(nt)};Decipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return unpad(this._mode.decrypt(this,et));if(et)throw new Error("data not multiple of block length")};Decipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this};function Splitter(){this.cache=Buffer$7.allocUnsafe(0)}Splitter.prototype.add=function(et){this.cache=Buffer$7.concat([this.cache,et])};Splitter.prototype.get=function(et){var tt;if(et){if(this.cache.length>16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt}else if(this.cache.length>=16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(et){var tt=et[15];if(tt<1||tt>16)throw new Error("unable to decrypt data");for(var rt=-1;++rt<tt;)if(et[rt+(16-tt)]!==tt)throw new Error("unable to decrypt data");if(tt!==16)return et.slice(0,16-tt)}function createDecipheriv$1(et,tt,rt){var nt=MODES[et.toLowerCase()];if(!nt)throw new TypeError("invalid suite type");if(typeof rt=="string"&&(rt=Buffer$7.from(rt)),nt.mode!=="GCM"&&rt.length!==nt.iv)throw new TypeError("invalid iv length "+rt.length);if(typeof tt=="string"&&(tt=Buffer$7.from(tt)),tt.length!==nt.key/8)throw new TypeError("invalid key length "+tt.length);return nt.type==="stream"?new StreamCipher(nt.module,tt,rt,!0):nt.type==="auth"?new AuthCipher(nt.module,tt,rt,!0):new Decipher(nt.module,tt,rt)}function createDecipher$1(et,tt){var rt=MODES[et.toLowerCase()];if(!rt)throw new TypeError("invalid suite type");var nt=ebtk$1(tt,!1,rt.key,rt.iv);return createDecipheriv$1(et,nt.key,nt.iv)}decrypter.createDecipher=createDecipher$1;decrypter.createDecipheriv=createDecipheriv$1;var ciphers$2=encrypter,deciphers=decrypter,modes$1=require$$2;function getCiphers$1(){return Object.keys(modes$1)}browser$5.createCipher=browser$5.Cipher=ciphers$2.createCipher;browser$5.createCipheriv=browser$5.Cipheriv=ciphers$2.createCipheriv;browser$5.createDecipher=browser$5.Decipher=deciphers.createDecipher;browser$5.createDecipheriv=browser$5.Decipheriv=deciphers.createDecipheriv;browser$5.listCiphers=browser$5.getCiphers=getCiphers$1;var modes={};(function(et){et["des-ecb"]={key:8,iv:0},et["des-cbc"]=et.des={key:8,iv:8},et["des-ede3-cbc"]=et.des3={key:24,iv:8},et["des-ede3"]={key:24,iv:0},et["des-ede-cbc"]={key:16,iv:8},et["des-ede"]={key:16,iv:0}})(modes);var DES=browserifyDes,aes=browser$5,aesModes=modes_1,desModes=modes,ebtk=evp_bytestokey;function createCipher(et,tt){et=et.toLowerCase();var rt,nt;if(aesModes[et])rt=aesModes[et].key,nt=aesModes[et].iv;else if(desModes[et])rt=desModes[et].key*8,nt=desModes[et].iv;else throw new TypeError("invalid suite type");var lt=ebtk(tt,!1,rt,nt);return createCipheriv(et,lt.key,lt.iv)}function createDecipher(et,tt){et=et.toLowerCase();var rt,nt;if(aesModes[et])rt=aesModes[et].key,nt=aesModes[et].iv;else if(desModes[et])rt=desModes[et].key*8,nt=desModes[et].iv;else throw new TypeError("invalid suite type");var lt=ebtk(tt,!1,rt,nt);return createDecipheriv(et,lt.key,lt.iv)}function createCipheriv(et,tt,rt){if(et=et.toLowerCase(),aesModes[et])return aes.createCipheriv(et,tt,rt);if(desModes[et])return new DES({key:tt,iv:rt,mode:et});throw new TypeError("invalid suite type")}function createDecipheriv(et,tt,rt){if(et=et.toLowerCase(),aesModes[et])return aes.createDecipheriv(et,tt,rt);if(desModes[et])return new DES({key:tt,iv:rt,mode:et,decrypt:!0});throw new TypeError("invalid suite type")}function getCiphers(){return Object.keys(desModes).concat(aes.getCiphers())}browser$6.createCipher=browser$6.Cipher=createCipher;browser$6.createCipheriv=browser$6.Cipheriv=createCipheriv;browser$6.createDecipher=browser$6.Decipher=createDecipher;browser$6.createDecipheriv=browser$6.Decipheriv=createDecipheriv;browser$6.listCiphers=browser$6.getCiphers=getCiphers;var browser$4={},bn$2={exports:{}};bn$2.exports;(function(et){(function(tt,rt){function nt(Qt,Bt){if(!Qt)throw new Error(Bt||"Assertion failed")}function lt(Qt,Bt){Qt.super_=Bt;var Ft=function(){};Ft.prototype=Bt.prototype,Qt.prototype=new Ft,Qt.prototype.constructor=Qt}function ut(Qt,Bt,Ft){if(ut.isBN(Qt))return Qt;this.negative=0,this.words=null,this.length=0,this.red=null,Qt!==null&&((Bt==="le"||Bt==="be")&&(Ft=Bt,Bt=10),this._init(Qt||0,Bt||10,Ft||"be"))}typeof tt=="object"?tt.exports=ut:rt.BN=ut,ut.BN=ut,ut.wordSize=26;var dt;try{typeof window<"u"&&typeof window.Buffer<"u"?dt=window.Buffer:dt=dist$5.Buffer}catch{}ut.isBN=function(Bt){return Bt instanceof ut?!0:Bt!==null&&typeof Bt=="object"&&Bt.constructor.wordSize===ut.wordSize&&Array.isArray(Bt.words)},ut.max=function(Bt,Ft){return Bt.cmp(Ft)>0?Bt:Ft},ut.min=function(Bt,Ft){return Bt.cmp(Ft)<0?Bt:Ft},ut.prototype._init=function(Bt,Ft,$t){if(typeof Bt=="number")return this._initNumber(Bt,Ft,$t);if(typeof Bt=="object")return this._initArray(Bt,Ft,$t);Ft==="hex"&&(Ft=16),nt(Ft===(Ft|0)&&Ft>=2&&Ft<=36),Bt=Bt.toString().replace(/\s+/g,"");var jt=0;Bt[0]==="-"&&(jt++,this.negative=1),jt<Bt.length&&(Ft===16?this._parseHex(Bt,jt,$t):(this._parseBase(Bt,Ft,jt),$t==="le"&&this._initArray(this.toArray(),Ft,$t)))},ut.prototype._initNumber=function(Bt,Ft,$t){Bt<0&&(this.negative=1,Bt=-Bt),Bt<67108864?(this.words=[Bt&67108863],this.length=1):Bt<4503599627370496?(this.words=[Bt&67108863,Bt/67108864&67108863],this.length=2):(nt(Bt<9007199254740992),this.words=[Bt&67108863,Bt/67108864&67108863,1],this.length=3),$t==="le"&&this._initArray(this.toArray(),Ft,$t)},ut.prototype._initArray=function(Bt,Ft,$t){if(nt(typeof Bt.length=="number"),Bt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Bt.length/3),this.words=new Array(this.length);for(var jt=0;jt<this.length;jt++)this.words[jt]=0;var Wt,Ut,Vt=0;if($t==="be")for(jt=Bt.length-1,Wt=0;jt>=0;jt-=3)Ut=Bt[jt]|Bt[jt-1]<<8|Bt[jt-2]<<16,this.words[Wt]|=Ut<<Vt&67108863,this.words[Wt+1]=Ut>>>26-Vt&67108863,Vt+=24,Vt>=26&&(Vt-=26,Wt++);else if($t==="le")for(jt=0,Wt=0;jt<Bt.length;jt+=3)Ut=Bt[jt]|Bt[jt+1]<<8|Bt[jt+2]<<16,this.words[Wt]|=Ut<<Vt&67108863,this.words[Wt+1]=Ut>>>26-Vt&67108863,Vt+=24,Vt>=26&&(Vt-=26,Wt++);return this.strip()};function pt(Qt,Bt){var Ft=Qt.charCodeAt(Bt);return Ft>=65&&Ft<=70?Ft-55:Ft>=97&&Ft<=102?Ft-87:Ft-48&15}function ht(Qt,Bt,Ft){var $t=pt(Qt,Ft);return Ft-1>=Bt&&($t|=pt(Qt,Ft-1)<<4),$t}ut.prototype._parseHex=function(Bt,Ft,$t){this.length=Math.ceil((Bt.length-Ft)/6),this.words=new Array(this.length);for(var jt=0;jt<this.length;jt++)this.words[jt]=0;var Wt=0,Ut=0,Vt;if($t==="be")for(jt=Bt.length-1;jt>=Ft;jt-=2)Vt=ht(Bt,Ft,jt)<<Wt,this.words[Ut]|=Vt&67108863,Wt>=18?(Wt-=18,Ut+=1,this.words[Ut]|=Vt>>>26):Wt+=8;else{var Ht=Bt.length-Ft;for(jt=Ht%2===0?Ft+1:Ft;jt<Bt.length;jt+=2)Vt=ht(Bt,Ft,jt)<<Wt,this.words[Ut]|=Vt&67108863,Wt>=18?(Wt-=18,Ut+=1,this.words[Ut]|=Vt>>>26):Wt+=8}this.strip()};function mt(Qt,Bt,Ft,$t){for(var jt=0,Wt=Math.min(Qt.length,Ft),Ut=Bt;Ut<Wt;Ut++){var Vt=Qt.charCodeAt(Ut)-48;jt*=$t,Vt>=49?jt+=Vt-49+10:Vt>=17?jt+=Vt-17+10:jt+=Vt}return jt}ut.prototype._parseBase=function(Bt,Ft,$t){this.words=[0],this.length=1;for(var jt=0,Wt=1;Wt<=67108863;Wt*=Ft)jt++;jt--,Wt=Wt/Ft|0;for(var Ut=Bt.length-$t,Vt=Ut%jt,Ht=Math.min(Ut,Ut-Vt)+$t,Gt=0,Zt=$t;Zt<Ht;Zt+=jt)Gt=mt(Bt,Zt,Zt+jt,Ft),this.imuln(Wt),this.words[0]+Gt<67108864?this.words[0]+=Gt:this._iaddn(Gt);if(Vt!==0){var Xt=1;for(Gt=mt(Bt,Zt,Bt.length,Ft),Zt=0;Zt<Vt;Zt++)Xt*=Ft;this.imuln(Xt),this.words[0]+Gt<67108864?this.words[0]+=Gt:this._iaddn(Gt)}this.strip()},ut.prototype.copy=function(Bt){Bt.words=new Array(this.length);for(var Ft=0;Ft<this.length;Ft++)Bt.words[Ft]=this.words[Ft];Bt.length=this.length,Bt.negative=this.negative,Bt.red=this.red},ut.prototype.clone=function(){var Bt=new ut(null);return this.copy(Bt),Bt},ut.prototype._expand=function(Bt){for(;this.length<Bt;)this.words[this.length++]=0;return this},ut.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ut.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},ut.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var xt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Mt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],vt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];ut.prototype.toString=function(Bt,Ft){Bt=Bt||10,Ft=Ft|0||1;var $t;if(Bt===16||Bt==="hex"){$t="";for(var jt=0,Wt=0,Ut=0;Ut<this.length;Ut++){var Vt=this.words[Ut],Ht=((Vt<<jt|Wt)&16777215).toString(16);Wt=Vt>>>24-jt&16777215,Wt!==0||Ut!==this.length-1?$t=xt[6-Ht.length]+Ht+$t:$t=Ht+$t,jt+=2,jt>=26&&(jt-=26,Ut--)}for(Wt!==0&&($t=Wt.toString(16)+$t);$t.length%Ft!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}if(Bt===(Bt|0)&&Bt>=2&&Bt<=36){var Gt=Mt[Bt],Zt=vt[Bt];$t="";var Xt=this.clone();for(Xt.negative=0;!Xt.isZero();){var er=Xt.modn(Zt).toString(Bt);Xt=Xt.idivn(Zt),Xt.isZero()?$t=er+$t:$t=xt[Gt-er.length]+er+$t}for(this.isZero()&&($t="0"+$t);$t.length%Ft!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}nt(!1,"Base should be between 2 and 36")},ut.prototype.toNumber=function(){var Bt=this.words[0];return this.length===2?Bt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Bt+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Bt:Bt},ut.prototype.toJSON=function(){return this.toString(16)},ut.prototype.toBuffer=function(Bt,Ft){return nt(typeof dt<"u"),this.toArrayLike(dt,Bt,Ft)},ut.prototype.toArray=function(Bt,Ft){return this.toArrayLike(Array,Bt,Ft)},ut.prototype.toArrayLike=function(Bt,Ft,$t){var jt=this.byteLength(),Wt=$t||Math.max(1,jt);nt(jt<=Wt,"byte array longer than desired length"),nt(Wt>0,"Requested array length <= 0"),this.strip();var Ut=Ft==="le",Vt=new Bt(Wt),Ht,Gt,Zt=this.clone();if(Ut){for(Gt=0;!Zt.isZero();Gt++)Ht=Zt.andln(255),Zt.iushrn(8),Vt[Gt]=Ht;for(;Gt<Wt;Gt++)Vt[Gt]=0}else{for(Gt=0;Gt<Wt-jt;Gt++)Vt[Gt]=0;for(Gt=0;!Zt.isZero();Gt++)Ht=Zt.andln(255),Zt.iushrn(8),Vt[Wt-Gt-1]=Ht}return Vt},Math.clz32?ut.prototype._countBits=function(Bt){return 32-Math.clz32(Bt)}:ut.prototype._countBits=function(Bt){var Ft=Bt,$t=0;return Ft>=4096&&($t+=13,Ft>>>=13),Ft>=64&&($t+=7,Ft>>>=7),Ft>=8&&($t+=4,Ft>>>=4),Ft>=2&&($t+=2,Ft>>>=2),$t+Ft},ut.prototype._zeroBits=function(Bt){if(Bt===0)return 26;var Ft=Bt,$t=0;return Ft&8191||($t+=13,Ft>>>=13),Ft&127||($t+=7,Ft>>>=7),Ft&15||($t+=4,Ft>>>=4),Ft&3||($t+=2,Ft>>>=2),Ft&1||$t++,$t},ut.prototype.bitLength=function(){var Bt=this.words[this.length-1],Ft=this._countBits(Bt);return(this.length-1)*26+Ft};function Ot(Qt){for(var Bt=new Array(Qt.bitLength()),Ft=0;Ft<Bt.length;Ft++){var $t=Ft/26|0,jt=Ft%26;Bt[Ft]=(Qt.words[$t]&1<<jt)>>>jt}return Bt}ut.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Bt=0,Ft=0;Ft<this.length;Ft++){var $t=this._zeroBits(this.words[Ft]);if(Bt+=$t,$t!==26)break}return Bt},ut.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},ut.prototype.toTwos=function(Bt){return this.negative!==0?this.abs().inotn(Bt).iaddn(1):this.clone()},ut.prototype.fromTwos=function(Bt){return this.testn(Bt-1)?this.notn(Bt).iaddn(1).ineg():this.clone()},ut.prototype.isNeg=function(){return this.negative!==0},ut.prototype.neg=function(){return this.clone().ineg()},ut.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},ut.prototype.iuor=function(Bt){for(;this.length<Bt.length;)this.words[this.length++]=0;for(var Ft=0;Ft<Bt.length;Ft++)this.words[Ft]=this.words[Ft]|Bt.words[Ft];return this.strip()},ut.prototype.ior=function(Bt){return nt((this.negative|Bt.negative)===0),this.iuor(Bt)},ut.prototype.or=function(Bt){return this.length>Bt.length?this.clone().ior(Bt):Bt.clone().ior(this)},ut.prototype.uor=function(Bt){return this.length>Bt.length?this.clone().iuor(Bt):Bt.clone().iuor(this)},ut.prototype.iuand=function(Bt){var Ft;this.length>Bt.length?Ft=Bt:Ft=this;for(var $t=0;$t<Ft.length;$t++)this.words[$t]=this.words[$t]&Bt.words[$t];return this.length=Ft.length,this.strip()},ut.prototype.iand=function(Bt){return nt((this.negative|Bt.negative)===0),this.iuand(Bt)},ut.prototype.and=function(Bt){return this.length>Bt.length?this.clone().iand(Bt):Bt.clone().iand(this)},ut.prototype.uand=function(Bt){return this.length>Bt.length?this.clone().iuand(Bt):Bt.clone().iuand(this)},ut.prototype.iuxor=function(Bt){var Ft,$t;this.length>Bt.length?(Ft=this,$t=Bt):(Ft=Bt,$t=this);for(var jt=0;jt<$t.length;jt++)this.words[jt]=Ft.words[jt]^$t.words[jt];if(this!==Ft)for(;jt<Ft.length;jt++)this.words[jt]=Ft.words[jt];return this.length=Ft.length,this.strip()},ut.prototype.ixor=function(Bt){return nt((this.negative|Bt.negative)===0),this.iuxor(Bt)},ut.prototype.xor=function(Bt){return this.length>Bt.length?this.clone().ixor(Bt):Bt.clone().ixor(this)},ut.prototype.uxor=function(Bt){return this.length>Bt.length?this.clone().iuxor(Bt):Bt.clone().iuxor(this)},ut.prototype.inotn=function(Bt){nt(typeof Bt=="number"&&Bt>=0);var Ft=Math.ceil(Bt/26)|0,$t=Bt%26;this._expand(Ft),$t>0&&Ft--;for(var jt=0;jt<Ft;jt++)this.words[jt]=~this.words[jt]&67108863;return $t>0&&(this.words[jt]=~this.words[jt]&67108863>>26-$t),this.strip()},ut.prototype.notn=function(Bt){return this.clone().inotn(Bt)},ut.prototype.setn=function(Bt,Ft){nt(typeof Bt=="number"&&Bt>=0);var $t=Bt/26|0,jt=Bt%26;return this._expand($t+1),Ft?this.words[$t]=this.words[$t]|1<<jt:this.words[$t]=this.words[$t]&~(1<<jt),this.strip()},ut.prototype.iadd=function(Bt){var Ft;if(this.negative!==0&&Bt.negative===0)return this.negative=0,Ft=this.isub(Bt),this.negative^=1,this._normSign();if(this.negative===0&&Bt.negative!==0)return Bt.negative=0,Ft=this.isub(Bt),Bt.negative=1,Ft._normSign();var $t,jt;this.length>Bt.length?($t=this,jt=Bt):($t=Bt,jt=this);for(var Wt=0,Ut=0;Ut<jt.length;Ut++)Ft=($t.words[Ut]|0)+(jt.words[Ut]|0)+Wt,this.words[Ut]=Ft&67108863,Wt=Ft>>>26;for(;Wt!==0&&Ut<$t.length;Ut++)Ft=($t.words[Ut]|0)+Wt,this.words[Ut]=Ft&67108863,Wt=Ft>>>26;if(this.length=$t.length,Wt!==0)this.words[this.length]=Wt,this.length++;else if($t!==this)for(;Ut<$t.length;Ut++)this.words[Ut]=$t.words[Ut];return this},ut.prototype.add=function(Bt){var Ft;return Bt.negative!==0&&this.negative===0?(Bt.negative=0,Ft=this.sub(Bt),Bt.negative^=1,Ft):Bt.negative===0&&this.negative!==0?(this.negative=0,Ft=Bt.sub(this),this.negative=1,Ft):this.length>Bt.length?this.clone().iadd(Bt):Bt.clone().iadd(this)},ut.prototype.isub=function(Bt){if(Bt.negative!==0){Bt.negative=0;var Ft=this.iadd(Bt);return Bt.negative=1,Ft._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Bt),this.negative=1,this._normSign();var $t=this.cmp(Bt);if($t===0)return this.negative=0,this.length=1,this.words[0]=0,this;var jt,Wt;$t>0?(jt=this,Wt=Bt):(jt=Bt,Wt=this);for(var Ut=0,Vt=0;Vt<Wt.length;Vt++)Ft=(jt.words[Vt]|0)-(Wt.words[Vt]|0)+Ut,Ut=Ft>>26,this.words[Vt]=Ft&67108863;for(;Ut!==0&&Vt<jt.length;Vt++)Ft=(jt.words[Vt]|0)+Ut,Ut=Ft>>26,this.words[Vt]=Ft&67108863;if(Ut===0&&Vt<jt.length&&jt!==this)for(;Vt<jt.length;Vt++)this.words[Vt]=jt.words[Vt];return this.length=Math.max(this.length,Vt),jt!==this&&(this.negative=1),this.strip()},ut.prototype.sub=function(Bt){return this.clone().isub(Bt)};function At(Qt,Bt,Ft){Ft.negative=Bt.negative^Qt.negative;var $t=Qt.length+Bt.length|0;Ft.length=$t,$t=$t-1|0;var jt=Qt.words[0]|0,Wt=Bt.words[0]|0,Ut=jt*Wt,Vt=Ut&67108863,Ht=Ut/67108864|0;Ft.words[0]=Vt;for(var Gt=1;Gt<$t;Gt++){for(var Zt=Ht>>>26,Xt=Ht&67108863,er=Math.min(Gt,Bt.length-1),nr=Math.max(0,Gt-Qt.length+1);nr<=er;nr++){var or=Gt-nr|0;jt=Qt.words[or]|0,Wt=Bt.words[nr]|0,Ut=jt*Wt+Xt,Zt+=Ut/67108864|0,Xt=Ut&67108863}Ft.words[Gt]=Xt|0,Ht=Zt|0}return Ht!==0?Ft.words[Gt]=Ht|0:Ft.length--,Ft.strip()}var Rt=function(Bt,Ft,$t){var jt=Bt.words,Wt=Ft.words,Ut=$t.words,Vt=0,Ht,Gt,Zt,Xt=jt[0]|0,er=Xt&8191,nr=Xt>>>13,or=jt[1]|0,rr=or&8191,cr=or>>>13,ir=jt[2]|0,dr=ir&8191,gr=ir>>>13,br=jt[3]|0,ar=br&8191,ur=br>>>13,xr=jt[4]|0,Mr=xr&8191,Ar=xr>>>13,Ir=jt[5]|0,Rr=Ir&8191,wr=Ir>>>13,qr=jt[6]|0,Hr=qr&8191,kr=qr>>>13,$r=jt[7]|0,yr=$r&8191,Or=$r>>>13,Dr=jt[8]|0,Fr=Dr&8191,Yr=Dr>>>13,Gr=jt[9]|0,Jr=Gr&8191,jr=Gr>>>13,Zr=Wt[0]|0,Xr=Zr&8191,cn=Zr>>>13,Qr=Wt[1]|0,rn=Qr&8191,_r=Qr>>>13,ln=Wt[2]|0,vn=ln&8191,Cr=ln>>>13,gn=Wt[3]|0,xn=gn&8191,Vr=gn>>>13,fn=Wt[4]|0,pn=fn&8191,qn=fn>>>13,Bn=Wt[5]|0,Kr=Bn&8191,Tr=Bn>>>13,Pr=Wt[6]|0,an=Pr&8191,nn=Pr>>>13,Mn=Wt[7]|0,An=Mn&8191,Vn=Mn>>>13,Cn=Wt[8]|0,kn=Cn&8191,Qn=Cn>>>13,Gn=Wt[9]|0,Un=Gn&8191,jn=Gn>>>13;$t.negative=Bt.negative^Ft.negative,$t.length=19,Ht=Math.imul(er,Xr),Gt=Math.imul(er,cn),Gt=Gt+Math.imul(nr,Xr)|0,Zt=Math.imul(nr,cn);var In=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(In>>>26)|0,In&=67108863,Ht=Math.imul(rr,Xr),Gt=Math.imul(rr,cn),Gt=Gt+Math.imul(cr,Xr)|0,Zt=Math.imul(cr,cn),Ht=Ht+Math.imul(er,rn)|0,Gt=Gt+Math.imul(er,_r)|0,Gt=Gt+Math.imul(nr,rn)|0,Zt=Zt+Math.imul(nr,_r)|0;var Kn=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,Ht=Math.imul(dr,Xr),Gt=Math.imul(dr,cn),Gt=Gt+Math.imul(gr,Xr)|0,Zt=Math.imul(gr,cn),Ht=Ht+Math.imul(rr,rn)|0,Gt=Gt+Math.imul(rr,_r)|0,Gt=Gt+Math.imul(cr,rn)|0,Zt=Zt+Math.imul(cr,_r)|0,Ht=Ht+Math.imul(er,vn)|0,Gt=Gt+Math.imul(er,Cr)|0,Gt=Gt+Math.imul(nr,vn)|0,Zt=Zt+Math.imul(nr,Cr)|0;var Wn=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,Ht=Math.imul(ar,Xr),Gt=Math.imul(ar,cn),Gt=Gt+Math.imul(ur,Xr)|0,Zt=Math.imul(ur,cn),Ht=Ht+Math.imul(dr,rn)|0,Gt=Gt+Math.imul(dr,_r)|0,Gt=Gt+Math.imul(gr,rn)|0,Zt=Zt+Math.imul(gr,_r)|0,Ht=Ht+Math.imul(rr,vn)|0,Gt=Gt+Math.imul(rr,Cr)|0,Gt=Gt+Math.imul(cr,vn)|0,Zt=Zt+Math.imul(cr,Cr)|0,Ht=Ht+Math.imul(er,xn)|0,Gt=Gt+Math.imul(er,Vr)|0,Gt=Gt+Math.imul(nr,xn)|0,Zt=Zt+Math.imul(nr,Vr)|0;var ao=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(ao>>>26)|0,ao&=67108863,Ht=Math.imul(Mr,Xr),Gt=Math.imul(Mr,cn),Gt=Gt+Math.imul(Ar,Xr)|0,Zt=Math.imul(Ar,cn),Ht=Ht+Math.imul(ar,rn)|0,Gt=Gt+Math.imul(ar,_r)|0,Gt=Gt+Math.imul(ur,rn)|0,Zt=Zt+Math.imul(ur,_r)|0,Ht=Ht+Math.imul(dr,vn)|0,Gt=Gt+Math.imul(dr,Cr)|0,Gt=Gt+Math.imul(gr,vn)|0,Zt=Zt+Math.imul(gr,Cr)|0,Ht=Ht+Math.imul(rr,xn)|0,Gt=Gt+Math.imul(rr,Vr)|0,Gt=Gt+Math.imul(cr,xn)|0,Zt=Zt+Math.imul(cr,Vr)|0,Ht=Ht+Math.imul(er,pn)|0,Gt=Gt+Math.imul(er,qn)|0,Gt=Gt+Math.imul(nr,pn)|0,Zt=Zt+Math.imul(nr,qn)|0;var _i=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(_i>>>26)|0,_i&=67108863,Ht=Math.imul(Rr,Xr),Gt=Math.imul(Rr,cn),Gt=Gt+Math.imul(wr,Xr)|0,Zt=Math.imul(wr,cn),Ht=Ht+Math.imul(Mr,rn)|0,Gt=Gt+Math.imul(Mr,_r)|0,Gt=Gt+Math.imul(Ar,rn)|0,Zt=Zt+Math.imul(Ar,_r)|0,Ht=Ht+Math.imul(ar,vn)|0,Gt=Gt+Math.imul(ar,Cr)|0,Gt=Gt+Math.imul(ur,vn)|0,Zt=Zt+Math.imul(ur,Cr)|0,Ht=Ht+Math.imul(dr,xn)|0,Gt=Gt+Math.imul(dr,Vr)|0,Gt=Gt+Math.imul(gr,xn)|0,Zt=Zt+Math.imul(gr,Vr)|0,Ht=Ht+Math.imul(rr,pn)|0,Gt=Gt+Math.imul(rr,qn)|0,Gt=Gt+Math.imul(cr,pn)|0,Zt=Zt+Math.imul(cr,qn)|0,Ht=Ht+Math.imul(er,Kr)|0,Gt=Gt+Math.imul(er,Tr)|0,Gt=Gt+Math.imul(nr,Kr)|0,Zt=Zt+Math.imul(nr,Tr)|0;var ho=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(ho>>>26)|0,ho&=67108863,Ht=Math.imul(Hr,Xr),Gt=Math.imul(Hr,cn),Gt=Gt+Math.imul(kr,Xr)|0,Zt=Math.imul(kr,cn),Ht=Ht+Math.imul(Rr,rn)|0,Gt=Gt+Math.imul(Rr,_r)|0,Gt=Gt+Math.imul(wr,rn)|0,Zt=Zt+Math.imul(wr,_r)|0,Ht=Ht+Math.imul(Mr,vn)|0,Gt=Gt+Math.imul(Mr,Cr)|0,Gt=Gt+Math.imul(Ar,vn)|0,Zt=Zt+Math.imul(Ar,Cr)|0,Ht=Ht+Math.imul(ar,xn)|0,Gt=Gt+Math.imul(ar,Vr)|0,Gt=Gt+Math.imul(ur,xn)|0,Zt=Zt+Math.imul(ur,Vr)|0,Ht=Ht+Math.imul(dr,pn)|0,Gt=Gt+Math.imul(dr,qn)|0,Gt=Gt+Math.imul(gr,pn)|0,Zt=Zt+Math.imul(gr,qn)|0,Ht=Ht+Math.imul(rr,Kr)|0,Gt=Gt+Math.imul(rr,Tr)|0,Gt=Gt+Math.imul(cr,Kr)|0,Zt=Zt+Math.imul(cr,Tr)|0,Ht=Ht+Math.imul(er,an)|0,Gt=Gt+Math.imul(er,nn)|0,Gt=Gt+Math.imul(nr,an)|0,Zt=Zt+Math.imul(nr,nn)|0;var So=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(So>>>26)|0,So&=67108863,Ht=Math.imul(yr,Xr),Gt=Math.imul(yr,cn),Gt=Gt+Math.imul(Or,Xr)|0,Zt=Math.imul(Or,cn),Ht=Ht+Math.imul(Hr,rn)|0,Gt=Gt+Math.imul(Hr,_r)|0,Gt=Gt+Math.imul(kr,rn)|0,Zt=Zt+Math.imul(kr,_r)|0,Ht=Ht+Math.imul(Rr,vn)|0,Gt=Gt+Math.imul(Rr,Cr)|0,Gt=Gt+Math.imul(wr,vn)|0,Zt=Zt+Math.imul(wr,Cr)|0,Ht=Ht+Math.imul(Mr,xn)|0,Gt=Gt+Math.imul(Mr,Vr)|0,Gt=Gt+Math.imul(Ar,xn)|0,Zt=Zt+Math.imul(Ar,Vr)|0,Ht=Ht+Math.imul(ar,pn)|0,Gt=Gt+Math.imul(ar,qn)|0,Gt=Gt+Math.imul(ur,pn)|0,Zt=Zt+Math.imul(ur,qn)|0,Ht=Ht+Math.imul(dr,Kr)|0,Gt=Gt+Math.imul(dr,Tr)|0,Gt=Gt+Math.imul(gr,Kr)|0,Zt=Zt+Math.imul(gr,Tr)|0,Ht=Ht+Math.imul(rr,an)|0,Gt=Gt+Math.imul(rr,nn)|0,Gt=Gt+Math.imul(cr,an)|0,Zt=Zt+Math.imul(cr,nn)|0,Ht=Ht+Math.imul(er,An)|0,Gt=Gt+Math.imul(er,Vn)|0,Gt=Gt+Math.imul(nr,An)|0,Zt=Zt+Math.imul(nr,Vn)|0;var ko=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(ko>>>26)|0,ko&=67108863,Ht=Math.imul(Fr,Xr),Gt=Math.imul(Fr,cn),Gt=Gt+Math.imul(Yr,Xr)|0,Zt=Math.imul(Yr,cn),Ht=Ht+Math.imul(yr,rn)|0,Gt=Gt+Math.imul(yr,_r)|0,Gt=Gt+Math.imul(Or,rn)|0,Zt=Zt+Math.imul(Or,_r)|0,Ht=Ht+Math.imul(Hr,vn)|0,Gt=Gt+Math.imul(Hr,Cr)|0,Gt=Gt+Math.imul(kr,vn)|0,Zt=Zt+Math.imul(kr,Cr)|0,Ht=Ht+Math.imul(Rr,xn)|0,Gt=Gt+Math.imul(Rr,Vr)|0,Gt=Gt+Math.imul(wr,xn)|0,Zt=Zt+Math.imul(wr,Vr)|0,Ht=Ht+Math.imul(Mr,pn)|0,Gt=Gt+Math.imul(Mr,qn)|0,Gt=Gt+Math.imul(Ar,pn)|0,Zt=Zt+Math.imul(Ar,qn)|0,Ht=Ht+Math.imul(ar,Kr)|0,Gt=Gt+Math.imul(ar,Tr)|0,Gt=Gt+Math.imul(ur,Kr)|0,Zt=Zt+Math.imul(ur,Tr)|0,Ht=Ht+Math.imul(dr,an)|0,Gt=Gt+Math.imul(dr,nn)|0,Gt=Gt+Math.imul(gr,an)|0,Zt=Zt+Math.imul(gr,nn)|0,Ht=Ht+Math.imul(rr,An)|0,Gt=Gt+Math.imul(rr,Vn)|0,Gt=Gt+Math.imul(cr,An)|0,Zt=Zt+Math.imul(cr,Vn)|0,Ht=Ht+Math.imul(er,kn)|0,Gt=Gt+Math.imul(er,Qn)|0,Gt=Gt+Math.imul(nr,kn)|0,Zt=Zt+Math.imul(nr,Qn)|0;var us=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(us>>>26)|0,us&=67108863,Ht=Math.imul(Jr,Xr),Gt=Math.imul(Jr,cn),Gt=Gt+Math.imul(jr,Xr)|0,Zt=Math.imul(jr,cn),Ht=Ht+Math.imul(Fr,rn)|0,Gt=Gt+Math.imul(Fr,_r)|0,Gt=Gt+Math.imul(Yr,rn)|0,Zt=Zt+Math.imul(Yr,_r)|0,Ht=Ht+Math.imul(yr,vn)|0,Gt=Gt+Math.imul(yr,Cr)|0,Gt=Gt+Math.imul(Or,vn)|0,Zt=Zt+Math.imul(Or,Cr)|0,Ht=Ht+Math.imul(Hr,xn)|0,Gt=Gt+Math.imul(Hr,Vr)|0,Gt=Gt+Math.imul(kr,xn)|0,Zt=Zt+Math.imul(kr,Vr)|0,Ht=Ht+Math.imul(Rr,pn)|0,Gt=Gt+Math.imul(Rr,qn)|0,Gt=Gt+Math.imul(wr,pn)|0,Zt=Zt+Math.imul(wr,qn)|0,Ht=Ht+Math.imul(Mr,Kr)|0,Gt=Gt+Math.imul(Mr,Tr)|0,Gt=Gt+Math.imul(Ar,Kr)|0,Zt=Zt+Math.imul(Ar,Tr)|0,Ht=Ht+Math.imul(ar,an)|0,Gt=Gt+Math.imul(ar,nn)|0,Gt=Gt+Math.imul(ur,an)|0,Zt=Zt+Math.imul(ur,nn)|0,Ht=Ht+Math.imul(dr,An)|0,Gt=Gt+Math.imul(dr,Vn)|0,Gt=Gt+Math.imul(gr,An)|0,Zt=Zt+Math.imul(gr,Vn)|0,Ht=Ht+Math.imul(rr,kn)|0,Gt=Gt+Math.imul(rr,Qn)|0,Gt=Gt+Math.imul(cr,kn)|0,Zt=Zt+Math.imul(cr,Qn)|0,Ht=Ht+Math.imul(er,Un)|0,Gt=Gt+Math.imul(er,jn)|0,Gt=Gt+Math.imul(nr,Un)|0,Zt=Zt+Math.imul(nr,jn)|0;var Jo=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(Jo>>>26)|0,Jo&=67108863,Ht=Math.imul(Jr,rn),Gt=Math.imul(Jr,_r),Gt=Gt+Math.imul(jr,rn)|0,Zt=Math.imul(jr,_r),Ht=Ht+Math.imul(Fr,vn)|0,Gt=Gt+Math.imul(Fr,Cr)|0,Gt=Gt+Math.imul(Yr,vn)|0,Zt=Zt+Math.imul(Yr,Cr)|0,Ht=Ht+Math.imul(yr,xn)|0,Gt=Gt+Math.imul(yr,Vr)|0,Gt=Gt+Math.imul(Or,xn)|0,Zt=Zt+Math.imul(Or,Vr)|0,Ht=Ht+Math.imul(Hr,pn)|0,Gt=Gt+Math.imul(Hr,qn)|0,Gt=Gt+Math.imul(kr,pn)|0,Zt=Zt+Math.imul(kr,qn)|0,Ht=Ht+Math.imul(Rr,Kr)|0,Gt=Gt+Math.imul(Rr,Tr)|0,Gt=Gt+Math.imul(wr,Kr)|0,Zt=Zt+Math.imul(wr,Tr)|0,Ht=Ht+Math.imul(Mr,an)|0,Gt=Gt+Math.imul(Mr,nn)|0,Gt=Gt+Math.imul(Ar,an)|0,Zt=Zt+Math.imul(Ar,nn)|0,Ht=Ht+Math.imul(ar,An)|0,Gt=Gt+Math.imul(ar,Vn)|0,Gt=Gt+Math.imul(ur,An)|0,Zt=Zt+Math.imul(ur,Vn)|0,Ht=Ht+Math.imul(dr,kn)|0,Gt=Gt+Math.imul(dr,Qn)|0,Gt=Gt+Math.imul(gr,kn)|0,Zt=Zt+Math.imul(gr,Qn)|0,Ht=Ht+Math.imul(rr,Un)|0,Gt=Gt+Math.imul(rr,jn)|0,Gt=Gt+Math.imul(cr,Un)|0,Zt=Zt+Math.imul(cr,jn)|0;var go=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(go>>>26)|0,go&=67108863,Ht=Math.imul(Jr,vn),Gt=Math.imul(Jr,Cr),Gt=Gt+Math.imul(jr,vn)|0,Zt=Math.imul(jr,Cr),Ht=Ht+Math.imul(Fr,xn)|0,Gt=Gt+Math.imul(Fr,Vr)|0,Gt=Gt+Math.imul(Yr,xn)|0,Zt=Zt+Math.imul(Yr,Vr)|0,Ht=Ht+Math.imul(yr,pn)|0,Gt=Gt+Math.imul(yr,qn)|0,Gt=Gt+Math.imul(Or,pn)|0,Zt=Zt+Math.imul(Or,qn)|0,Ht=Ht+Math.imul(Hr,Kr)|0,Gt=Gt+Math.imul(Hr,Tr)|0,Gt=Gt+Math.imul(kr,Kr)|0,Zt=Zt+Math.imul(kr,Tr)|0,Ht=Ht+Math.imul(Rr,an)|0,Gt=Gt+Math.imul(Rr,nn)|0,Gt=Gt+Math.imul(wr,an)|0,Zt=Zt+Math.imul(wr,nn)|0,Ht=Ht+Math.imul(Mr,An)|0,Gt=Gt+Math.imul(Mr,Vn)|0,Gt=Gt+Math.imul(Ar,An)|0,Zt=Zt+Math.imul(Ar,Vn)|0,Ht=Ht+Math.imul(ar,kn)|0,Gt=Gt+Math.imul(ar,Qn)|0,Gt=Gt+Math.imul(ur,kn)|0,Zt=Zt+Math.imul(ur,Qn)|0,Ht=Ht+Math.imul(dr,Un)|0,Gt=Gt+Math.imul(dr,jn)|0,Gt=Gt+Math.imul(gr,Un)|0,Zt=Zt+Math.imul(gr,jn)|0;var $o=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+($o>>>26)|0,$o&=67108863,Ht=Math.imul(Jr,xn),Gt=Math.imul(Jr,Vr),Gt=Gt+Math.imul(jr,xn)|0,Zt=Math.imul(jr,Vr),Ht=Ht+Math.imul(Fr,pn)|0,Gt=Gt+Math.imul(Fr,qn)|0,Gt=Gt+Math.imul(Yr,pn)|0,Zt=Zt+Math.imul(Yr,qn)|0,Ht=Ht+Math.imul(yr,Kr)|0,Gt=Gt+Math.imul(yr,Tr)|0,Gt=Gt+Math.imul(Or,Kr)|0,Zt=Zt+Math.imul(Or,Tr)|0,Ht=Ht+Math.imul(Hr,an)|0,Gt=Gt+Math.imul(Hr,nn)|0,Gt=Gt+Math.imul(kr,an)|0,Zt=Zt+Math.imul(kr,nn)|0,Ht=Ht+Math.imul(Rr,An)|0,Gt=Gt+Math.imul(Rr,Vn)|0,Gt=Gt+Math.imul(wr,An)|0,Zt=Zt+Math.imul(wr,Vn)|0,Ht=Ht+Math.imul(Mr,kn)|0,Gt=Gt+Math.imul(Mr,Qn)|0,Gt=Gt+Math.imul(Ar,kn)|0,Zt=Zt+Math.imul(Ar,Qn)|0,Ht=Ht+Math.imul(ar,Un)|0,Gt=Gt+Math.imul(ar,jn)|0,Gt=Gt+Math.imul(ur,Un)|0,Zt=Zt+Math.imul(ur,jn)|0;var vo=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(vo>>>26)|0,vo&=67108863,Ht=Math.imul(Jr,pn),Gt=Math.imul(Jr,qn),Gt=Gt+Math.imul(jr,pn)|0,Zt=Math.imul(jr,qn),Ht=Ht+Math.imul(Fr,Kr)|0,Gt=Gt+Math.imul(Fr,Tr)|0,Gt=Gt+Math.imul(Yr,Kr)|0,Zt=Zt+Math.imul(Yr,Tr)|0,Ht=Ht+Math.imul(yr,an)|0,Gt=Gt+Math.imul(yr,nn)|0,Gt=Gt+Math.imul(Or,an)|0,Zt=Zt+Math.imul(Or,nn)|0,Ht=Ht+Math.imul(Hr,An)|0,Gt=Gt+Math.imul(Hr,Vn)|0,Gt=Gt+Math.imul(kr,An)|0,Zt=Zt+Math.imul(kr,Vn)|0,Ht=Ht+Math.imul(Rr,kn)|0,Gt=Gt+Math.imul(Rr,Qn)|0,Gt=Gt+Math.imul(wr,kn)|0,Zt=Zt+Math.imul(wr,Qn)|0,Ht=Ht+Math.imul(Mr,Un)|0,Gt=Gt+Math.imul(Mr,jn)|0,Gt=Gt+Math.imul(Ar,Un)|0,Zt=Zt+Math.imul(Ar,jn)|0;var Go=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(Go>>>26)|0,Go&=67108863,Ht=Math.imul(Jr,Kr),Gt=Math.imul(Jr,Tr),Gt=Gt+Math.imul(jr,Kr)|0,Zt=Math.imul(jr,Tr),Ht=Ht+Math.imul(Fr,an)|0,Gt=Gt+Math.imul(Fr,nn)|0,Gt=Gt+Math.imul(Yr,an)|0,Zt=Zt+Math.imul(Yr,nn)|0,Ht=Ht+Math.imul(yr,An)|0,Gt=Gt+Math.imul(yr,Vn)|0,Gt=Gt+Math.imul(Or,An)|0,Zt=Zt+Math.imul(Or,Vn)|0,Ht=Ht+Math.imul(Hr,kn)|0,Gt=Gt+Math.imul(Hr,Qn)|0,Gt=Gt+Math.imul(kr,kn)|0,Zt=Zt+Math.imul(kr,Qn)|0,Ht=Ht+Math.imul(Rr,Un)|0,Gt=Gt+Math.imul(Rr,jn)|0,Gt=Gt+Math.imul(wr,Un)|0,Zt=Zt+Math.imul(wr,jn)|0;var Wo=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,Ht=Math.imul(Jr,an),Gt=Math.imul(Jr,nn),Gt=Gt+Math.imul(jr,an)|0,Zt=Math.imul(jr,nn),Ht=Ht+Math.imul(Fr,An)|0,Gt=Gt+Math.imul(Fr,Vn)|0,Gt=Gt+Math.imul(Yr,An)|0,Zt=Zt+Math.imul(Yr,Vn)|0,Ht=Ht+Math.imul(yr,kn)|0,Gt=Gt+Math.imul(yr,Qn)|0,Gt=Gt+Math.imul(Or,kn)|0,Zt=Zt+Math.imul(Or,Qn)|0,Ht=Ht+Math.imul(Hr,Un)|0,Gt=Gt+Math.imul(Hr,jn)|0,Gt=Gt+Math.imul(kr,Un)|0,Zt=Zt+Math.imul(kr,jn)|0;var cs=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(cs>>>26)|0,cs&=67108863,Ht=Math.imul(Jr,An),Gt=Math.imul(Jr,Vn),Gt=Gt+Math.imul(jr,An)|0,Zt=Math.imul(jr,Vn),Ht=Ht+Math.imul(Fr,kn)|0,Gt=Gt+Math.imul(Fr,Qn)|0,Gt=Gt+Math.imul(Yr,kn)|0,Zt=Zt+Math.imul(Yr,Qn)|0,Ht=Ht+Math.imul(yr,Un)|0,Gt=Gt+Math.imul(yr,jn)|0,Gt=Gt+Math.imul(Or,Un)|0,Zt=Zt+Math.imul(Or,jn)|0;var rs=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(rs>>>26)|0,rs&=67108863,Ht=Math.imul(Jr,kn),Gt=Math.imul(Jr,Qn),Gt=Gt+Math.imul(jr,kn)|0,Zt=Math.imul(jr,Qn),Ht=Ht+Math.imul(Fr,Un)|0,Gt=Gt+Math.imul(Fr,jn)|0,Gt=Gt+Math.imul(Yr,Un)|0,Zt=Zt+Math.imul(Yr,jn)|0;var xs=(Vt+Ht|0)+((Gt&8191)<<13)|0;Vt=(Zt+(Gt>>>13)|0)+(xs>>>26)|0,xs&=67108863,Ht=Math.imul(Jr,Un),Gt=Math.imul(Jr,jn),Gt=Gt+Math.imul(jr,Un)|0,Zt=Math.imul(jr,jn);var Es=(Vt+Ht|0)+((Gt&8191)<<13)|0;return Vt=(Zt+(Gt>>>13)|0)+(Es>>>26)|0,Es&=67108863,Ut[0]=In,Ut[1]=Kn,Ut[2]=Wn,Ut[3]=ao,Ut[4]=_i,Ut[5]=ho,Ut[6]=So,Ut[7]=ko,Ut[8]=us,Ut[9]=Jo,Ut[10]=go,Ut[11]=$o,Ut[12]=vo,Ut[13]=Go,Ut[14]=Wo,Ut[15]=cs,Ut[16]=rs,Ut[17]=xs,Ut[18]=Es,Vt!==0&&(Ut[19]=Vt,$t.length++),$t};Math.imul||(Rt=At);function zt(Qt,Bt,Ft){Ft.negative=Bt.negative^Qt.negative,Ft.length=Qt.length+Bt.length;for(var $t=0,jt=0,Wt=0;Wt<Ft.length-1;Wt++){var Ut=jt;jt=0;for(var Vt=$t&67108863,Ht=Math.min(Wt,Bt.length-1),Gt=Math.max(0,Wt-Qt.length+1);Gt<=Ht;Gt++){var Zt=Wt-Gt,Xt=Qt.words[Zt]|0,er=Bt.words[Gt]|0,nr=Xt*er,or=nr&67108863;Ut=Ut+(nr/67108864|0)|0,or=or+Vt|0,Vt=or&67108863,Ut=Ut+(or>>>26)|0,jt+=Ut>>>26,Ut&=67108863}Ft.words[Wt]=Vt,$t=Ut,Ut=jt}return $t!==0?Ft.words[Wt]=$t:Ft.length--,Ft.strip()}function Tt(Qt,Bt,Ft){var $t=new Ct;return $t.mulp(Qt,Bt,Ft)}ut.prototype.mulTo=function(Bt,Ft){var $t,jt=this.length+Bt.length;return this.length===10&&Bt.length===10?$t=Rt(this,Bt,Ft):jt<63?$t=At(this,Bt,Ft):jt<1024?$t=zt(this,Bt,Ft):$t=Tt(this,Bt,Ft),$t};function Ct(Qt,Bt){this.x=Qt,this.y=Bt}Ct.prototype.makeRBT=function(Bt){for(var Ft=new Array(Bt),$t=ut.prototype._countBits(Bt)-1,jt=0;jt<Bt;jt++)Ft[jt]=this.revBin(jt,$t,Bt);return Ft},Ct.prototype.revBin=function(Bt,Ft,$t){if(Bt===0||Bt===$t-1)return Bt;for(var jt=0,Wt=0;Wt<Ft;Wt++)jt|=(Bt&1)<<Ft-Wt-1,Bt>>=1;return jt},Ct.prototype.permute=function(Bt,Ft,$t,jt,Wt,Ut){for(var Vt=0;Vt<Ut;Vt++)jt[Vt]=Ft[Bt[Vt]],Wt[Vt]=$t[Bt[Vt]]},Ct.prototype.transform=function(Bt,Ft,$t,jt,Wt,Ut){this.permute(Ut,Bt,Ft,$t,jt,Wt);for(var Vt=1;Vt<Wt;Vt<<=1)for(var Ht=Vt<<1,Gt=Math.cos(2*Math.PI/Ht),Zt=Math.sin(2*Math.PI/Ht),Xt=0;Xt<Wt;Xt+=Ht)for(var er=Gt,nr=Zt,or=0;or<Vt;or++){var rr=$t[Xt+or],cr=jt[Xt+or],ir=$t[Xt+or+Vt],dr=jt[Xt+or+Vt],gr=er*ir-nr*dr;dr=er*dr+nr*ir,ir=gr,$t[Xt+or]=rr+ir,jt[Xt+or]=cr+dr,$t[Xt+or+Vt]=rr-ir,jt[Xt+or+Vt]=cr-dr,or!==Ht&&(gr=Gt*er-Zt*nr,nr=Gt*nr+Zt*er,er=gr)}},Ct.prototype.guessLen13b=function(Bt,Ft){var $t=Math.max(Ft,Bt)|1,jt=$t&1,Wt=0;for($t=$t/2|0;$t;$t=$t>>>1)Wt++;return 1<<Wt+1+jt},Ct.prototype.conjugate=function(Bt,Ft,$t){if(!($t<=1))for(var jt=0;jt<$t/2;jt++){var Wt=Bt[jt];Bt[jt]=Bt[$t-jt-1],Bt[$t-jt-1]=Wt,Wt=Ft[jt],Ft[jt]=-Ft[$t-jt-1],Ft[$t-jt-1]=-Wt}},Ct.prototype.normalize13b=function(Bt,Ft){for(var $t=0,jt=0;jt<Ft/2;jt++){var Wt=Math.round(Bt[2*jt+1]/Ft)*8192+Math.round(Bt[2*jt]/Ft)+$t;Bt[jt]=Wt&67108863,Wt<67108864?$t=0:$t=Wt/67108864|0}return Bt},Ct.prototype.convert13b=function(Bt,Ft,$t,jt){for(var Wt=0,Ut=0;Ut<Ft;Ut++)Wt=Wt+(Bt[Ut]|0),$t[2*Ut]=Wt&8191,Wt=Wt>>>13,$t[2*Ut+1]=Wt&8191,Wt=Wt>>>13;for(Ut=2*Ft;Ut<jt;++Ut)$t[Ut]=0;nt(Wt===0),nt((Wt&-8192)===0)},Ct.prototype.stub=function(Bt){for(var Ft=new Array(Bt),$t=0;$t<Bt;$t++)Ft[$t]=0;return Ft},Ct.prototype.mulp=function(Bt,Ft,$t){var jt=2*this.guessLen13b(Bt.length,Ft.length),Wt=this.makeRBT(jt),Ut=this.stub(jt),Vt=new Array(jt),Ht=new Array(jt),Gt=new Array(jt),Zt=new Array(jt),Xt=new Array(jt),er=new Array(jt),nr=$t.words;nr.length=jt,this.convert13b(Bt.words,Bt.length,Vt,jt),this.convert13b(Ft.words,Ft.length,Zt,jt),this.transform(Vt,Ut,Ht,Gt,jt,Wt),this.transform(Zt,Ut,Xt,er,jt,Wt);for(var or=0;or<jt;or++){var rr=Ht[or]*Xt[or]-Gt[or]*er[or];Gt[or]=Ht[or]*er[or]+Gt[or]*Xt[or],Ht[or]=rr}return this.conjugate(Ht,Gt,jt),this.transform(Ht,Gt,nr,Ut,jt,Wt),this.conjugate(nr,Ut,jt),this.normalize13b(nr,jt),$t.negative=Bt.negative^Ft.negative,$t.length=Bt.length+Ft.length,$t.strip()},ut.prototype.mul=function(Bt){var Ft=new ut(null);return Ft.words=new Array(this.length+Bt.length),this.mulTo(Bt,Ft)},ut.prototype.mulf=function(Bt){var Ft=new ut(null);return Ft.words=new Array(this.length+Bt.length),Tt(this,Bt,Ft)},ut.prototype.imul=function(Bt){return this.clone().mulTo(Bt,this)},ut.prototype.imuln=function(Bt){nt(typeof Bt=="number"),nt(Bt<67108864);for(var Ft=0,$t=0;$t<this.length;$t++){var jt=(this.words[$t]|0)*Bt,Wt=(jt&67108863)+(Ft&67108863);Ft>>=26,Ft+=jt/67108864|0,Ft+=Wt>>>26,this.words[$t]=Wt&67108863}return Ft!==0&&(this.words[$t]=Ft,this.length++),this},ut.prototype.muln=function(Bt){return this.clone().imuln(Bt)},ut.prototype.sqr=function(){return this.mul(this)},ut.prototype.isqr=function(){return this.imul(this.clone())},ut.prototype.pow=function(Bt){var Ft=Ot(Bt);if(Ft.length===0)return new ut(1);for(var $t=this,jt=0;jt<Ft.length&&Ft[jt]===0;jt++,$t=$t.sqr());if(++jt<Ft.length)for(var Wt=$t.sqr();jt<Ft.length;jt++,Wt=Wt.sqr())Ft[jt]!==0&&($t=$t.mul(Wt));return $t},ut.prototype.iushln=function(Bt){nt(typeof Bt=="number"&&Bt>=0);var Ft=Bt%26,$t=(Bt-Ft)/26,jt=67108863>>>26-Ft<<26-Ft,Wt;if(Ft!==0){var Ut=0;for(Wt=0;Wt<this.length;Wt++){var Vt=this.words[Wt]&jt,Ht=(this.words[Wt]|0)-Vt<<Ft;this.words[Wt]=Ht|Ut,Ut=Vt>>>26-Ft}Ut&&(this.words[Wt]=Ut,this.length++)}if($t!==0){for(Wt=this.length-1;Wt>=0;Wt--)this.words[Wt+$t]=this.words[Wt];for(Wt=0;Wt<$t;Wt++)this.words[Wt]=0;this.length+=$t}return this.strip()},ut.prototype.ishln=function(Bt){return nt(this.negative===0),this.iushln(Bt)},ut.prototype.iushrn=function(Bt,Ft,$t){nt(typeof Bt=="number"&&Bt>=0);var jt;Ft?jt=(Ft-Ft%26)/26:jt=0;var Wt=Bt%26,Ut=Math.min((Bt-Wt)/26,this.length),Vt=67108863^67108863>>>Wt<<Wt,Ht=$t;if(jt-=Ut,jt=Math.max(0,jt),Ht){for(var Gt=0;Gt<Ut;Gt++)Ht.words[Gt]=this.words[Gt];Ht.length=Ut}if(Ut!==0)if(this.length>Ut)for(this.length-=Ut,Gt=0;Gt<this.length;Gt++)this.words[Gt]=this.words[Gt+Ut];else this.words[0]=0,this.length=1;var Zt=0;for(Gt=this.length-1;Gt>=0&&(Zt!==0||Gt>=jt);Gt--){var Xt=this.words[Gt]|0;this.words[Gt]=Zt<<26-Wt|Xt>>>Wt,Zt=Xt&Vt}return Ht&&Zt!==0&&(Ht.words[Ht.length++]=Zt),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},ut.prototype.ishrn=function(Bt,Ft,$t){return nt(this.negative===0),this.iushrn(Bt,Ft,$t)},ut.prototype.shln=function(Bt){return this.clone().ishln(Bt)},ut.prototype.ushln=function(Bt){return this.clone().iushln(Bt)},ut.prototype.shrn=function(Bt){return this.clone().ishrn(Bt)},ut.prototype.ushrn=function(Bt){return this.clone().iushrn(Bt)},ut.prototype.testn=function(Bt){nt(typeof Bt=="number"&&Bt>=0);var Ft=Bt%26,$t=(Bt-Ft)/26,jt=1<<Ft;if(this.length<=$t)return!1;var Wt=this.words[$t];return!!(Wt&jt)},ut.prototype.imaskn=function(Bt){nt(typeof Bt=="number"&&Bt>=0);var Ft=Bt%26,$t=(Bt-Ft)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=$t)return this;if(Ft!==0&&$t++,this.length=Math.min($t,this.length),Ft!==0){var jt=67108863^67108863>>>Ft<<Ft;this.words[this.length-1]&=jt}return this.strip()},ut.prototype.maskn=function(Bt){return this.clone().imaskn(Bt)},ut.prototype.iaddn=function(Bt){return nt(typeof Bt=="number"),nt(Bt<67108864),Bt<0?this.isubn(-Bt):this.negative!==0?this.length===1&&(this.words[0]|0)<Bt?(this.words[0]=Bt-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(Bt),this.negative=1,this):this._iaddn(Bt)},ut.prototype._iaddn=function(Bt){this.words[0]+=Bt;for(var Ft=0;Ft<this.length&&this.words[Ft]>=67108864;Ft++)this.words[Ft]-=67108864,Ft===this.length-1?this.words[Ft+1]=1:this.words[Ft+1]++;return this.length=Math.max(this.length,Ft+1),this},ut.prototype.isubn=function(Bt){if(nt(typeof Bt=="number"),nt(Bt<67108864),Bt<0)return this.iaddn(-Bt);if(this.negative!==0)return this.negative=0,this.iaddn(Bt),this.negative=1,this;if(this.words[0]-=Bt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ft=0;Ft<this.length&&this.words[Ft]<0;Ft++)this.words[Ft]+=67108864,this.words[Ft+1]-=1;return this.strip()},ut.prototype.addn=function(Bt){return this.clone().iaddn(Bt)},ut.prototype.subn=function(Bt){return this.clone().isubn(Bt)},ut.prototype.iabs=function(){return this.negative=0,this},ut.prototype.abs=function(){return this.clone().iabs()},ut.prototype._ishlnsubmul=function(Bt,Ft,$t){var jt=Bt.length+$t,Wt;this._expand(jt);var Ut,Vt=0;for(Wt=0;Wt<Bt.length;Wt++){Ut=(this.words[Wt+$t]|0)+Vt;var Ht=(Bt.words[Wt]|0)*Ft;Ut-=Ht&67108863,Vt=(Ut>>26)-(Ht/67108864|0),this.words[Wt+$t]=Ut&67108863}for(;Wt<this.length-$t;Wt++)Ut=(this.words[Wt+$t]|0)+Vt,Vt=Ut>>26,this.words[Wt+$t]=Ut&67108863;if(Vt===0)return this.strip();for(nt(Vt===-1),Vt=0,Wt=0;Wt<this.length;Wt++)Ut=-(this.words[Wt]|0)+Vt,Vt=Ut>>26,this.words[Wt]=Ut&67108863;return this.negative=1,this.strip()},ut.prototype._wordDiv=function(Bt,Ft){var $t=this.length-Bt.length,jt=this.clone(),Wt=Bt,Ut=Wt.words[Wt.length-1]|0,Vt=this._countBits(Ut);$t=26-Vt,$t!==0&&(Wt=Wt.ushln($t),jt.iushln($t),Ut=Wt.words[Wt.length-1]|0);var Ht=jt.length-Wt.length,Gt;if(Ft!=="mod"){Gt=new ut(null),Gt.length=Ht+1,Gt.words=new Array(Gt.length);for(var Zt=0;Zt<Gt.length;Zt++)Gt.words[Zt]=0}var Xt=jt.clone()._ishlnsubmul(Wt,1,Ht);Xt.negative===0&&(jt=Xt,Gt&&(Gt.words[Ht]=1));for(var er=Ht-1;er>=0;er--){var nr=(jt.words[Wt.length+er]|0)*67108864+(jt.words[Wt.length+er-1]|0);for(nr=Math.min(nr/Ut|0,67108863),jt._ishlnsubmul(Wt,nr,er);jt.negative!==0;)nr--,jt.negative=0,jt._ishlnsubmul(Wt,1,er),jt.isZero()||(jt.negative^=1);Gt&&(Gt.words[er]=nr)}return Gt&&Gt.strip(),jt.strip(),Ft!=="div"&&$t!==0&&jt.iushrn($t),{div:Gt||null,mod:jt}},ut.prototype.divmod=function(Bt,Ft,$t){if(nt(!Bt.isZero()),this.isZero())return{div:new ut(0),mod:new ut(0)};var jt,Wt,Ut;return this.negative!==0&&Bt.negative===0?(Ut=this.neg().divmod(Bt,Ft),Ft!=="mod"&&(jt=Ut.div.neg()),Ft!=="div"&&(Wt=Ut.mod.neg(),$t&&Wt.negative!==0&&Wt.iadd(Bt)),{div:jt,mod:Wt}):this.negative===0&&Bt.negative!==0?(Ut=this.divmod(Bt.neg(),Ft),Ft!=="mod"&&(jt=Ut.div.neg()),{div:jt,mod:Ut.mod}):this.negative&Bt.negative?(Ut=this.neg().divmod(Bt.neg(),Ft),Ft!=="div"&&(Wt=Ut.mod.neg(),$t&&Wt.negative!==0&&Wt.isub(Bt)),{div:Ut.div,mod:Wt}):Bt.length>this.length||this.cmp(Bt)<0?{div:new ut(0),mod:this}:Bt.length===1?Ft==="div"?{div:this.divn(Bt.words[0]),mod:null}:Ft==="mod"?{div:null,mod:new ut(this.modn(Bt.words[0]))}:{div:this.divn(Bt.words[0]),mod:new ut(this.modn(Bt.words[0]))}:this._wordDiv(Bt,Ft)},ut.prototype.div=function(Bt){return this.divmod(Bt,"div",!1).div},ut.prototype.mod=function(Bt){return this.divmod(Bt,"mod",!1).mod},ut.prototype.umod=function(Bt){return this.divmod(Bt,"mod",!0).mod},ut.prototype.divRound=function(Bt){var Ft=this.divmod(Bt);if(Ft.mod.isZero())return Ft.div;var $t=Ft.div.negative!==0?Ft.mod.isub(Bt):Ft.mod,jt=Bt.ushrn(1),Wt=Bt.andln(1),Ut=$t.cmp(jt);return Ut<0||Wt===1&&Ut===0?Ft.div:Ft.div.negative!==0?Ft.div.isubn(1):Ft.div.iaddn(1)},ut.prototype.modn=function(Bt){nt(Bt<=67108863);for(var Ft=(1<<26)%Bt,$t=0,jt=this.length-1;jt>=0;jt--)$t=(Ft*$t+(this.words[jt]|0))%Bt;return $t},ut.prototype.idivn=function(Bt){nt(Bt<=67108863);for(var Ft=0,$t=this.length-1;$t>=0;$t--){var jt=(this.words[$t]|0)+Ft*67108864;this.words[$t]=jt/Bt|0,Ft=jt%Bt}return this.strip()},ut.prototype.divn=function(Bt){return this.clone().idivn(Bt)},ut.prototype.egcd=function(Bt){nt(Bt.negative===0),nt(!Bt.isZero());var Ft=this,$t=Bt.clone();Ft.negative!==0?Ft=Ft.umod(Bt):Ft=Ft.clone();for(var jt=new ut(1),Wt=new ut(0),Ut=new ut(0),Vt=new ut(1),Ht=0;Ft.isEven()&&$t.isEven();)Ft.iushrn(1),$t.iushrn(1),++Ht;for(var Gt=$t.clone(),Zt=Ft.clone();!Ft.isZero();){for(var Xt=0,er=1;!(Ft.words[0]&er)&&Xt<26;++Xt,er<<=1);if(Xt>0)for(Ft.iushrn(Xt);Xt-- >0;)(jt.isOdd()||Wt.isOdd())&&(jt.iadd(Gt),Wt.isub(Zt)),jt.iushrn(1),Wt.iushrn(1);for(var nr=0,or=1;!($t.words[0]&or)&&nr<26;++nr,or<<=1);if(nr>0)for($t.iushrn(nr);nr-- >0;)(Ut.isOdd()||Vt.isOdd())&&(Ut.iadd(Gt),Vt.isub(Zt)),Ut.iushrn(1),Vt.iushrn(1);Ft.cmp($t)>=0?(Ft.isub($t),jt.isub(Ut),Wt.isub(Vt)):($t.isub(Ft),Ut.isub(jt),Vt.isub(Wt))}return{a:Ut,b:Vt,gcd:$t.iushln(Ht)}},ut.prototype._invmp=function(Bt){nt(Bt.negative===0),nt(!Bt.isZero());var Ft=this,$t=Bt.clone();Ft.negative!==0?Ft=Ft.umod(Bt):Ft=Ft.clone();for(var jt=new ut(1),Wt=new ut(0),Ut=$t.clone();Ft.cmpn(1)>0&&$t.cmpn(1)>0;){for(var Vt=0,Ht=1;!(Ft.words[0]&Ht)&&Vt<26;++Vt,Ht<<=1);if(Vt>0)for(Ft.iushrn(Vt);Vt-- >0;)jt.isOdd()&&jt.iadd(Ut),jt.iushrn(1);for(var Gt=0,Zt=1;!($t.words[0]&Zt)&&Gt<26;++Gt,Zt<<=1);if(Gt>0)for($t.iushrn(Gt);Gt-- >0;)Wt.isOdd()&&Wt.iadd(Ut),Wt.iushrn(1);Ft.cmp($t)>=0?(Ft.isub($t),jt.isub(Wt)):($t.isub(Ft),Wt.isub(jt))}var Xt;return Ft.cmpn(1)===0?Xt=jt:Xt=Wt,Xt.cmpn(0)<0&&Xt.iadd(Bt),Xt},ut.prototype.gcd=function(Bt){if(this.isZero())return Bt.abs();if(Bt.isZero())return this.abs();var Ft=this.clone(),$t=Bt.clone();Ft.negative=0,$t.negative=0;for(var jt=0;Ft.isEven()&&$t.isEven();jt++)Ft.iushrn(1),$t.iushrn(1);do{for(;Ft.isEven();)Ft.iushrn(1);for(;$t.isEven();)$t.iushrn(1);var Wt=Ft.cmp($t);if(Wt<0){var Ut=Ft;Ft=$t,$t=Ut}else if(Wt===0||$t.cmpn(1)===0)break;Ft.isub($t)}while(!0);return $t.iushln(jt)},ut.prototype.invm=function(Bt){return this.egcd(Bt).a.umod(Bt)},ut.prototype.isEven=function(){return(this.words[0]&1)===0},ut.prototype.isOdd=function(){return(this.words[0]&1)===1},ut.prototype.andln=function(Bt){return this.words[0]&Bt},ut.prototype.bincn=function(Bt){nt(typeof Bt=="number");var Ft=Bt%26,$t=(Bt-Ft)/26,jt=1<<Ft;if(this.length<=$t)return this._expand($t+1),this.words[$t]|=jt,this;for(var Wt=jt,Ut=$t;Wt!==0&&Ut<this.length;Ut++){var Vt=this.words[Ut]|0;Vt+=Wt,Wt=Vt>>>26,Vt&=67108863,this.words[Ut]=Vt}return Wt!==0&&(this.words[Ut]=Wt,this.length++),this},ut.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ut.prototype.cmpn=function(Bt){var Ft=Bt<0;if(this.negative!==0&&!Ft)return-1;if(this.negative===0&&Ft)return 1;this.strip();var $t;if(this.length>1)$t=1;else{Ft&&(Bt=-Bt),nt(Bt<=67108863,"Number is too big");var jt=this.words[0]|0;$t=jt===Bt?0:jt<Bt?-1:1}return this.negative!==0?-$t|0:$t},ut.prototype.cmp=function(Bt){if(this.negative!==0&&Bt.negative===0)return-1;if(this.negative===0&&Bt.negative!==0)return 1;var Ft=this.ucmp(Bt);return this.negative!==0?-Ft|0:Ft},ut.prototype.ucmp=function(Bt){if(this.length>Bt.length)return 1;if(this.length<Bt.length)return-1;for(var Ft=0,$t=this.length-1;$t>=0;$t--){var jt=this.words[$t]|0,Wt=Bt.words[$t]|0;if(jt!==Wt){jt<Wt?Ft=-1:jt>Wt&&(Ft=1);break}}return Ft},ut.prototype.gtn=function(Bt){return this.cmpn(Bt)===1},ut.prototype.gt=function(Bt){return this.cmp(Bt)===1},ut.prototype.gten=function(Bt){return this.cmpn(Bt)>=0},ut.prototype.gte=function(Bt){return this.cmp(Bt)>=0},ut.prototype.ltn=function(Bt){return this.cmpn(Bt)===-1},ut.prototype.lt=function(Bt){return this.cmp(Bt)===-1},ut.prototype.lten=function(Bt){return this.cmpn(Bt)<=0},ut.prototype.lte=function(Bt){return this.cmp(Bt)<=0},ut.prototype.eqn=function(Bt){return this.cmpn(Bt)===0},ut.prototype.eq=function(Bt){return this.cmp(Bt)===0},ut.red=function(Bt){return new Kt(Bt)},ut.prototype.toRed=function(Bt){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),Bt.convertTo(this)._forceRed(Bt)},ut.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ut.prototype._forceRed=function(Bt){return this.red=Bt,this},ut.prototype.forceRed=function(Bt){return nt(!this.red,"Already a number in reduction context"),this._forceRed(Bt)},ut.prototype.redAdd=function(Bt){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,Bt)},ut.prototype.redIAdd=function(Bt){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Bt)},ut.prototype.redSub=function(Bt){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,Bt)},ut.prototype.redISub=function(Bt){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,Bt)},ut.prototype.redShl=function(Bt){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,Bt)},ut.prototype.redMul=function(Bt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Bt),this.red.mul(this,Bt)},ut.prototype.redIMul=function(Bt){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Bt),this.red.imul(this,Bt)},ut.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ut.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ut.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ut.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ut.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ut.prototype.redPow=function(Bt){return nt(this.red&&!Bt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Bt)};var It={k256:null,p224:null,p192:null,p25519:null};function Dt(Qt,Bt){this.name=Qt,this.p=new ut(Bt,16),this.n=this.p.bitLength(),this.k=new ut(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Dt.prototype._tmp=function(){var Bt=new ut(null);return Bt.words=new Array(Math.ceil(this.n/13)),Bt},Dt.prototype.ireduce=function(Bt){var Ft=Bt,$t;do this.split(Ft,this.tmp),Ft=this.imulK(Ft),Ft=Ft.iadd(this.tmp),$t=Ft.bitLength();while($t>this.n);var jt=$t<this.n?-1:Ft.ucmp(this.p);return jt===0?(Ft.words[0]=0,Ft.length=1):jt>0?Ft.isub(this.p):Ft.strip!==void 0?Ft.strip():Ft._strip(),Ft},Dt.prototype.split=function(Bt,Ft){Bt.iushrn(this.n,0,Ft)},Dt.prototype.imulK=function(Bt){return Bt.imul(this.k)};function kt(){Dt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}lt(kt,Dt),kt.prototype.split=function(Bt,Ft){for(var $t=4194303,jt=Math.min(Bt.length,9),Wt=0;Wt<jt;Wt++)Ft.words[Wt]=Bt.words[Wt];if(Ft.length=jt,Bt.length<=9){Bt.words[0]=0,Bt.length=1;return}var Ut=Bt.words[9];for(Ft.words[Ft.length++]=Ut&$t,Wt=10;Wt<Bt.length;Wt++){var Vt=Bt.words[Wt]|0;Bt.words[Wt-10]=(Vt&$t)<<4|Ut>>>22,Ut=Vt}Ut>>>=22,Bt.words[Wt-10]=Ut,Ut===0&&Bt.length>10?Bt.length-=10:Bt.length-=9},kt.prototype.imulK=function(Bt){Bt.words[Bt.length]=0,Bt.words[Bt.length+1]=0,Bt.length+=2;for(var Ft=0,$t=0;$t<Bt.length;$t++){var jt=Bt.words[$t]|0;Ft+=jt*977,Bt.words[$t]=Ft&67108863,Ft=jt*64+(Ft/67108864|0)}return Bt.words[Bt.length-1]===0&&(Bt.length--,Bt.words[Bt.length-1]===0&&Bt.length--),Bt};function qt(){Dt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}lt(qt,Dt);function Nt(){Dt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}lt(Nt,Dt);function Yt(){Dt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}lt(Yt,Dt),Yt.prototype.imulK=function(Bt){for(var Ft=0,$t=0;$t<Bt.length;$t++){var jt=(Bt.words[$t]|0)*19+Ft,Wt=jt&67108863;jt>>>=26,Bt.words[$t]=Wt,Ft=jt}return Ft!==0&&(Bt.words[Bt.length++]=Ft),Bt},ut._prime=function(Bt){if(It[Bt])return It[Bt];var Ft;if(Bt==="k256")Ft=new kt;else if(Bt==="p224")Ft=new qt;else if(Bt==="p192")Ft=new Nt;else if(Bt==="p25519")Ft=new Yt;else throw new Error("Unknown prime "+Bt);return It[Bt]=Ft,Ft};function Kt(Qt){if(typeof Qt=="string"){var Bt=ut._prime(Qt);this.m=Bt.p,this.prime=Bt}else nt(Qt.gtn(1),"modulus must be greater than 1"),this.m=Qt,this.prime=null}Kt.prototype._verify1=function(Bt){nt(Bt.negative===0,"red works only with positives"),nt(Bt.red,"red works only with red numbers")},Kt.prototype._verify2=function(Bt,Ft){nt((Bt.negative|Ft.negative)===0,"red works only with positives"),nt(Bt.red&&Bt.red===Ft.red,"red works only with red numbers")},Kt.prototype.imod=function(Bt){return this.prime?this.prime.ireduce(Bt)._forceRed(this):Bt.umod(this.m)._forceRed(this)},Kt.prototype.neg=function(Bt){return Bt.isZero()?Bt.clone():this.m.sub(Bt)._forceRed(this)},Kt.prototype.add=function(Bt,Ft){this._verify2(Bt,Ft);var $t=Bt.add(Ft);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t._forceRed(this)},Kt.prototype.iadd=function(Bt,Ft){this._verify2(Bt,Ft);var $t=Bt.iadd(Ft);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t},Kt.prototype.sub=function(Bt,Ft){this._verify2(Bt,Ft);var $t=Bt.sub(Ft);return $t.cmpn(0)<0&&$t.iadd(this.m),$t._forceRed(this)},Kt.prototype.isub=function(Bt,Ft){this._verify2(Bt,Ft);var $t=Bt.isub(Ft);return $t.cmpn(0)<0&&$t.iadd(this.m),$t},Kt.prototype.shl=function(Bt,Ft){return this._verify1(Bt),this.imod(Bt.ushln(Ft))},Kt.prototype.imul=function(Bt,Ft){return this._verify2(Bt,Ft),this.imod(Bt.imul(Ft))},Kt.prototype.mul=function(Bt,Ft){return this._verify2(Bt,Ft),this.imod(Bt.mul(Ft))},Kt.prototype.isqr=function(Bt){return this.imul(Bt,Bt.clone())},Kt.prototype.sqr=function(Bt){return this.mul(Bt,Bt)},Kt.prototype.sqrt=function(Bt){if(Bt.isZero())return Bt.clone();var Ft=this.m.andln(3);if(nt(Ft%2===1),Ft===3){var $t=this.m.add(new ut(1)).iushrn(2);return this.pow(Bt,$t)}for(var jt=this.m.subn(1),Wt=0;!jt.isZero()&&jt.andln(1)===0;)Wt++,jt.iushrn(1);nt(!jt.isZero());var Ut=new ut(1).toRed(this),Vt=Ut.redNeg(),Ht=this.m.subn(1).iushrn(1),Gt=this.m.bitLength();for(Gt=new ut(2*Gt*Gt).toRed(this);this.pow(Gt,Ht).cmp(Vt)!==0;)Gt.redIAdd(Vt);for(var Zt=this.pow(Gt,jt),Xt=this.pow(Bt,jt.addn(1).iushrn(1)),er=this.pow(Bt,jt),nr=Wt;er.cmp(Ut)!==0;){for(var or=er,rr=0;or.cmp(Ut)!==0;rr++)or=or.redSqr();nt(rr<nr);var cr=this.pow(Zt,new ut(1).iushln(nr-rr-1));Xt=Xt.redMul(cr),Zt=cr.redSqr(),er=er.redMul(Zt),nr=rr}return Xt},Kt.prototype.invm=function(Bt){var Ft=Bt._invmp(this.m);return Ft.negative!==0?(Ft.negative=0,this.imod(Ft).redNeg()):this.imod(Ft)},Kt.prototype.pow=function(Bt,Ft){if(Ft.isZero())return new ut(1).toRed(this);if(Ft.cmpn(1)===0)return Bt.clone();var $t=4,jt=new Array(1<<$t);jt[0]=new ut(1).toRed(this),jt[1]=Bt;for(var Wt=2;Wt<jt.length;Wt++)jt[Wt]=this.mul(jt[Wt-1],Bt);var Ut=jt[0],Vt=0,Ht=0,Gt=Ft.bitLength()%26;for(Gt===0&&(Gt=26),Wt=Ft.length-1;Wt>=0;Wt--){for(var Zt=Ft.words[Wt],Xt=Gt-1;Xt>=0;Xt--){var er=Zt>>Xt&1;if(Ut!==jt[0]&&(Ut=this.sqr(Ut)),er===0&&Vt===0){Ht=0;continue}Vt<<=1,Vt|=er,Ht++,!(Ht!==$t&&(Wt!==0||Xt!==0))&&(Ut=this.mul(Ut,jt[Vt]),Ht=0,Vt=0)}Gt=26}return Ut},Kt.prototype.convertTo=function(Bt){var Ft=Bt.umod(this.m);return Ft===Bt?Ft.clone():Ft},Kt.prototype.convertFrom=function(Bt){var Ft=Bt.clone();return Ft.red=null,Ft},ut.mont=function(Bt){return new Jt(Bt)};function Jt(Qt){Kt.call(this,Qt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ut(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}lt(Jt,Kt),Jt.prototype.convertTo=function(Bt){return this.imod(Bt.ushln(this.shift))},Jt.prototype.convertFrom=function(Bt){var Ft=this.imod(Bt.mul(this.rinv));return Ft.red=null,Ft},Jt.prototype.imul=function(Bt,Ft){if(Bt.isZero()||Ft.isZero())return Bt.words[0]=0,Bt.length=1,Bt;var $t=Bt.imul(Ft),jt=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Wt=$t.isub(jt).iushrn(this.shift),Ut=Wt;return Wt.cmp(this.m)>=0?Ut=Wt.isub(this.m):Wt.cmpn(0)<0&&(Ut=Wt.iadd(this.m)),Ut._forceRed(this)},Jt.prototype.mul=function(Bt,Ft){if(Bt.isZero()||Ft.isZero())return new ut(0)._forceRed(this);var $t=Bt.mul(Ft),jt=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Wt=$t.isub(jt).iushrn(this.shift),Ut=Wt;return Wt.cmp(this.m)>=0?Ut=Wt.isub(this.m):Wt.cmpn(0)<0&&(Ut=Wt.iadd(this.m)),Ut._forceRed(this)},Jt.prototype.invm=function(Bt){var Ft=this.imod(Bt._invmp(this.m).mul(this.r2));return Ft._forceRed(this)}})(et,commonjsGlobal$1)})(bn$2);var bnExports$2=bn$2.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var et;brorand.exports=function(lt){return et||(et=new tt(null)),et.generate(lt)};function tt(nt){this.rand=nt}if(brorand.exports.Rand=tt,tt.prototype.generate=function(lt){return this._rand(lt)},tt.prototype._rand=function(lt){if(this.rand.getBytes)return this.rand.getBytes(lt);for(var ut=new Uint8Array(lt),dt=0;dt<ut.length;dt++)ut[dt]=this.rand.getByte();return ut},typeof self=="object")self.crypto&&self.crypto.getRandomValues?tt.prototype._rand=function(lt){var ut=new Uint8Array(lt);return self.crypto.getRandomValues(ut),ut}:self.msCrypto&&self.msCrypto.getRandomValues?tt.prototype._rand=function(lt){var ut=new Uint8Array(lt);return self.msCrypto.getRandomValues(ut),ut}:typeof window=="object"&&(tt.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var rt=requireCryptoBrowserify();if(typeof rt.randomBytes!="function")throw new Error("Not supported");tt.prototype._rand=function(lt){return rt.randomBytes(lt)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var et=bnExports$2,tt=requireBrorand();function rt(nt){this.rand=nt||new tt.Rand}return mr=rt,rt.create=function(lt){return new rt(lt)},rt.prototype._randbelow=function(lt){var ut=lt.bitLength(),dt=Math.ceil(ut/8);do var pt=new et(this.rand.generate(dt));while(pt.cmp(lt)>=0);return pt},rt.prototype._randrange=function(lt,ut){var dt=ut.sub(lt);return lt.add(this._randbelow(dt))},rt.prototype.test=function(lt,ut,dt){var pt=lt.bitLength(),ht=et.mont(lt),mt=new et(1).toRed(ht);ut||(ut=Math.max(1,pt/48|0));for(var xt=lt.subn(1),Mt=0;!xt.testn(Mt);Mt++);for(var vt=lt.shrn(Mt),Ot=xt.toRed(ht),At=!0;ut>0;ut--){var Rt=this._randrange(new et(2),xt);dt&&dt(Rt);var zt=Rt.toRed(ht).redPow(vt);if(!(zt.cmp(mt)===0||zt.cmp(Ot)===0)){for(var Tt=1;Tt<Mt;Tt++){if(zt=zt.redSqr(),zt.cmp(mt)===0)return!1;if(zt.cmp(Ot)===0)break}if(Tt===Mt)return!1}}return At},rt.prototype.getDivisor=function(lt,ut){var dt=lt.bitLength(),pt=et.mont(lt),ht=new et(1).toRed(pt);ut||(ut=Math.max(1,dt/48|0));for(var mt=lt.subn(1),xt=0;!mt.testn(xt);xt++);for(var Mt=lt.shrn(xt),vt=mt.toRed(pt);ut>0;ut--){var Ot=this._randrange(new et(2),mt),At=lt.gcd(Ot);if(At.cmpn(1)!==0)return At;var Rt=Ot.toRed(pt).redPow(Mt);if(!(Rt.cmp(ht)===0||Rt.cmp(vt)===0)){for(var zt=1;zt<xt;zt++){if(Rt=Rt.redSqr(),Rt.cmp(ht)===0)return Rt.fromRed().subn(1).gcd(lt);if(Rt.cmp(vt)===0)break}if(zt===xt)return Rt=Rt.redSqr(),Rt.fromRed().subn(1).gcd(lt)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var et=browserExports;generatePrime=zt,zt.simpleSieve=At,zt.fermatTest=Rt;var tt=bnExports$2,rt=new tt(24),nt=requireMr(),lt=new nt,ut=new tt(1),dt=new tt(2),pt=new tt(5);new tt(16),new tt(8);var ht=new tt(10),mt=new tt(3);new tt(7);var xt=new tt(11),Mt=new tt(4);new tt(12);var vt=null;function Ot(){if(vt!==null)return vt;var Tt=1048576,Ct=[];Ct[0]=2;for(var It=1,Dt=3;Dt<Tt;Dt+=2){for(var kt=Math.ceil(Math.sqrt(Dt)),qt=0;qt<It&&Ct[qt]<=kt&&Dt%Ct[qt]!==0;qt++);It!==qt&&Ct[qt]<=kt||(Ct[It++]=Dt)}return vt=Ct,Ct}function At(Tt){for(var Ct=Ot(),It=0;It<Ct.length;It++)if(Tt.modn(Ct[It])===0)return Tt.cmpn(Ct[It])===0;return!0}function Rt(Tt){var Ct=tt.mont(Tt);return dt.toRed(Ct).redPow(Tt.subn(1)).fromRed().cmpn(1)===0}function zt(Tt,Ct){if(Tt<16)return Ct===2||Ct===5?new tt([140,123]):new tt([140,39]);Ct=new tt(Ct);for(var It,Dt;;){for(It=new tt(et(Math.ceil(Tt/8)));It.bitLength()>Tt;)It.ishrn(1);if(It.isEven()&&It.iadd(ut),It.testn(1)||It.iadd(dt),Ct.cmp(dt)){if(!Ct.cmp(pt))for(;It.mod(ht).cmp(mt);)It.iadd(Mt)}else for(;It.mod(rt).cmp(xt);)It.iadd(Mt);if(Dt=It.shrn(1),At(Dt)&&At(It)&&Rt(Dt)&&Rt(It)&&lt.test(Dt)&&lt.test(It))return It}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var et=bnExports$2,tt=requireMr(),rt=new tt,nt=new et(24),lt=new et(11),ut=new et(10),dt=new et(3),pt=new et(7),ht=requireGeneratePrime(),mt=browserExports;dh=At;function xt(zt,Tt){return Tt=Tt||"utf8",Buffer$E.isBuffer(zt)||(zt=new Buffer$E(zt,Tt)),this._pub=new et(zt),this}function Mt(zt,Tt){return Tt=Tt||"utf8",Buffer$E.isBuffer(zt)||(zt=new Buffer$E(zt,Tt)),this._priv=new et(zt),this}var vt={};function Ot(zt,Tt){var Ct=Tt.toString("hex"),It=[Ct,zt.toString(16)].join("_");if(It in vt)return vt[It];var Dt=0;if(zt.isEven()||!ht.simpleSieve||!ht.fermatTest(zt)||!rt.test(zt))return Dt+=1,Ct==="02"||Ct==="05"?Dt+=8:Dt+=4,vt[It]=Dt,Dt;rt.test(zt.shrn(1))||(Dt+=2);var kt;switch(Ct){case"02":zt.mod(nt).cmp(lt)&&(Dt+=8);break;case"05":kt=zt.mod(ut),kt.cmp(dt)&&kt.cmp(pt)&&(Dt+=8);break;default:Dt+=4}return vt[It]=Dt,Dt}function At(zt,Tt,Ct){this.setGenerator(Tt),this.__prime=new et(zt),this._prime=et.mont(this.__prime),this._primeLen=zt.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,Ct?(this.setPublicKey=xt,this.setPrivateKey=Mt):this._primeCode=8}Object.defineProperty(At.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=Ot(this.__prime,this.__gen)),this._primeCode}}),At.prototype.generateKeys=function(){return this._priv||(this._priv=new et(mt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},At.prototype.computeSecret=function(zt){zt=new et(zt),zt=zt.toRed(this._prime);var Tt=zt.redPow(this._priv).fromRed(),Ct=new Buffer$E(Tt.toArray()),It=this.getPrime();if(Ct.length<It.length){var Dt=new Buffer$E(It.length-Ct.length);Dt.fill(0),Ct=Buffer$E.concat([Dt,Ct])}return Ct},At.prototype.getPublicKey=function(Tt){return Rt(this._pub,Tt)},At.prototype.getPrivateKey=function(Tt){return Rt(this._priv,Tt)},At.prototype.getPrime=function(zt){return Rt(this.__prime,zt)},At.prototype.getGenerator=function(zt){return Rt(this._gen,zt)},At.prototype.setGenerator=function(zt,Tt){return Tt=Tt||"utf8",Buffer$E.isBuffer(zt)||(zt=new Buffer$E(zt,Tt)),this.__gen=zt,this._gen=new et(zt),this};function Rt(zt,Tt){var Ct=new Buffer$E(zt.toArray());return Tt?Ct.toString(Tt):Ct}return dh}var hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$4;hasRequiredBrowser$2=1;var et=requireGeneratePrime(),tt=require$$1$1,rt=requireDh();function nt(dt){var pt=new Buffer$E(tt[dt].prime,"hex"),ht=new Buffer$E(tt[dt].gen,"hex");return new rt(pt,ht)}var lt={binary:!0,hex:!0,base64:!0};function ut(dt,pt,ht,mt){return Buffer$E.isBuffer(pt)||lt[pt]===void 0?ut(dt,"binary",pt,ht):(pt=pt||"binary",mt=mt||"binary",ht=ht||new Buffer$E([2]),Buffer$E.isBuffer(ht)||(ht=new Buffer$E(ht,mt)),typeof dt=="number"?new rt(et(dt,ht),ht,!0):(Buffer$E.isBuffer(dt)||(dt=new Buffer$E(dt,pt)),new rt(dt,ht,!0)))}return browser$4.DiffieHellmanGroup=browser$4.createDiffieHellmanGroup=browser$4.getDiffieHellman=nt,browser$4.createDiffieHellman=browser$4.DiffieHellman=ut,browser$4}var readableBrowser={exports:{}},processNextickArgs={exports:{}};typeof process$1$1>"u"||!process$1$1.version||process$1$1.version.indexOf("v0.")===0||process$1$1.version.indexOf("v1.")===0&&process$1$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick}:processNextickArgs.exports=process$1$1;function nextTick(et,tt,rt,nt){if(typeof et!="function")throw new TypeError('"callback" argument must be a function');var lt=arguments.length,ut,dt;switch(lt){case 0:case 1:return process$1$1.nextTick(et);case 2:return process$1$1.nextTick(function(){et.call(null,tt)});case 3:return process$1$1.nextTick(function(){et.call(null,tt,rt)});case 4:return process$1$1.nextTick(function(){et.call(null,tt,rt,nt)});default:for(ut=new Array(lt-1),dt=0;dt<ut.length;)ut[dt++]=arguments[dt];return process$1$1.nextTick(function(){et.apply(null,ut)})}}var processNextickArgsExports=processNextickArgs.exports,toString={}.toString,isarray=Array.isArray||function(et){return toString.call(et)=="[object Array]"},streamBrowser=eventsExports.EventEmitter,safeBuffer$1={exports:{}};(function(et,tt){var rt=dist$5,nt=rt.Buffer;function lt(dt,pt){for(var ht in dt)pt[ht]=dt[ht]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?et.exports=rt:(lt(rt,tt),tt.Buffer=ut);function ut(dt,pt,ht){return nt(dt,pt,ht)}lt(nt,ut),ut.from=function(dt,pt,ht){if(typeof dt=="number")throw new TypeError("Argument must not be a number");return nt(dt,pt,ht)},ut.alloc=function(dt,pt,ht){if(typeof dt!="number")throw new TypeError("Argument must be a number");var mt=nt(dt);return pt!==void 0?typeof ht=="string"?mt.fill(pt,ht):mt.fill(pt):mt.fill(0),mt},ut.allocUnsafe=function(dt){if(typeof dt!="number")throw new TypeError("Argument must be a number");return nt(dt)},ut.allocUnsafeSlow=function(dt){if(typeof dt!="number")throw new TypeError("Argument must be a number");return rt.SlowBuffer(dt)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,util$2={};function isArray(et){return Array.isArray?Array.isArray(et):objectToString(et)==="[object Array]"}util$2.isArray=isArray;function isBoolean(et){return typeof et=="boolean"}util$2.isBoolean=isBoolean;function isNull(et){return et===null}util$2.isNull=isNull;function isNullOrUndefined(et){return et==null}util$2.isNullOrUndefined=isNullOrUndefined;function isNumber(et){return typeof et=="number"}util$2.isNumber=isNumber;function isString(et){return typeof et=="string"}util$2.isString=isString;function isSymbol(et){return typeof et=="symbol"}util$2.isSymbol=isSymbol;function isUndefined(et){return et===void 0}util$2.isUndefined=isUndefined;function isRegExp(et){return objectToString(et)==="[object RegExp]"}util$2.isRegExp=isRegExp;function isObject(et){return typeof et=="object"&&et!==null}util$2.isObject=isObject;function isDate(et){return objectToString(et)==="[object Date]"}util$2.isDate=isDate;function isError(et){return objectToString(et)==="[object Error]"||et instanceof Error}util$2.isError=isError;function isFunction(et){return typeof et=="function"}util$2.isFunction=isFunction;function isPrimitive(et){return et===null||typeof et=="boolean"||typeof et=="number"||typeof et=="string"||typeof et=="symbol"||typeof et>"u"}util$2.isPrimitive=isPrimitive;util$2.isBuffer=dist$5.Buffer.isBuffer;function objectToString(et){return Object.prototype.toString.call(et)}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(et){function tt(ut,dt){if(!(ut instanceof dt))throw new TypeError("Cannot call a class as a function")}var rt=safeBufferExports.Buffer,nt=util$a;function lt(ut,dt,pt){ut.copy(dt,pt)}et.exports=function(){function ut(){tt(this,ut),this.head=null,this.tail=null,this.length=0}return ut.prototype.push=function(pt){var ht={data:pt,next:null};this.length>0?this.tail.next=ht:this.head=ht,this.tail=ht,++this.length},ut.prototype.unshift=function(pt){var ht={data:pt,next:this.head};this.length===0&&(this.tail=ht),this.head=ht,++this.length},ut.prototype.shift=function(){if(this.length!==0){var pt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,pt}},ut.prototype.clear=function(){this.head=this.tail=null,this.length=0},ut.prototype.join=function(pt){if(this.length===0)return"";for(var ht=this.head,mt=""+ht.data;ht=ht.next;)mt+=pt+ht.data;return mt},ut.prototype.concat=function(pt){if(this.length===0)return rt.alloc(0);for(var ht=rt.allocUnsafe(pt>>>0),mt=this.head,xt=0;mt;)lt(mt.data,ht,xt),xt+=mt.data.length,mt=mt.next;return ht},ut}(),nt&&nt.inspect&&nt.inspect.custom&&(et.exports.prototype[nt.inspect.custom]=function(){var ut=nt.inspect({length:this.length});return this.constructor.name+" "+ut})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(et,tt){var rt=this,nt=this._readableState&&this._readableState.destroyed,lt=this._writableState&&this._writableState.destroyed;return nt||lt?(tt?tt(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,et)):pna.nextTick(emitErrorNT,this,et)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(ut){!tt&&ut?rt._writableState?rt._writableState.errorEmitted||(rt._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,rt,ut)):pna.nextTick(emitErrorNT,rt,ut):tt&&tt(ut)}),this)}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(et,tt){et.emit("error",tt)}var destroy_1={destroy,undestroy},_stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var et=processNextickArgsExports;_stream_writable=Rt;function tt(Ut){var Vt=this;this.next=null,this.entry=null,this.finish=function(){Wt(Vt,Ut)}}var rt=!process$1$1.browser&&["v0.10","v0.9."].indexOf(process$1$1.version.slice(0,5))>-1?setImmediate:et.nextTick,nt;Rt.WritableState=Ot;var lt=Object.create(util$2);lt.inherits=inherits_browserExports;var ut={deprecate:browser$d},dt=streamBrowser,pt=safeBufferExports.Buffer,ht=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mt(Ut){return pt.from(Ut)}function xt(Ut){return pt.isBuffer(Ut)||Ut instanceof ht}var Mt=destroy_1;lt.inherits(Rt,dt);function vt(){}function Ot(Ut,Vt){nt=nt||require_stream_duplex(),Ut=Ut||{};var Ht=Vt instanceof nt;this.objectMode=!!Ut.objectMode,Ht&&(this.objectMode=this.objectMode||!!Ut.writableObjectMode);var Gt=Ut.highWaterMark,Zt=Ut.writableHighWaterMark,Xt=this.objectMode?16:16*1024;Gt||Gt===0?this.highWaterMark=Gt:Ht&&(Zt||Zt===0)?this.highWaterMark=Zt:this.highWaterMark=Xt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var er=Ut.decodeStrings===!1;this.decodeStrings=!er,this.defaultEncoding=Ut.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(nr){Nt(Vt,nr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new tt(this)}Ot.prototype.getBuffer=function(){for(var Vt=this.bufferedRequest,Ht=[];Vt;)Ht.push(Vt),Vt=Vt.next;return Ht},function(){try{Object.defineProperty(Ot.prototype,"buffer",{get:ut.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var At;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(At=Function.prototype[Symbol.hasInstance],Object.defineProperty(Rt,Symbol.hasInstance,{value:function(Ut){return At.call(this,Ut)?!0:this!==Rt?!1:Ut&&Ut._writableState instanceof Ot}})):At=function(Ut){return Ut instanceof this};function Rt(Ut){if(nt=nt||require_stream_duplex(),!At.call(Rt,this)&&!(this instanceof nt))return new Rt(Ut);this._writableState=new Ot(Ut,this),this.writable=!0,Ut&&(typeof Ut.write=="function"&&(this._write=Ut.write),typeof Ut.writev=="function"&&(this._writev=Ut.writev),typeof Ut.destroy=="function"&&(this._destroy=Ut.destroy),typeof Ut.final=="function"&&(this._final=Ut.final)),dt.call(this)}Rt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function zt(Ut,Vt){var Ht=new Error("write after end");Ut.emit("error",Ht),et.nextTick(Vt,Ht)}function Tt(Ut,Vt,Ht,Gt){var Zt=!0,Xt=!1;return Ht===null?Xt=new TypeError("May not write null values to stream"):typeof Ht!="string"&&Ht!==void 0&&!Vt.objectMode&&(Xt=new TypeError("Invalid non-string/buffer chunk")),Xt&&(Ut.emit("error",Xt),et.nextTick(Gt,Xt),Zt=!1),Zt}Rt.prototype.write=function(Ut,Vt,Ht){var Gt=this._writableState,Zt=!1,Xt=!Gt.objectMode&&xt(Ut);return Xt&&!pt.isBuffer(Ut)&&(Ut=mt(Ut)),typeof Vt=="function"&&(Ht=Vt,Vt=null),Xt?Vt="buffer":Vt||(Vt=Gt.defaultEncoding),typeof Ht!="function"&&(Ht=vt),Gt.ended?zt(this,Ht):(Xt||Tt(this,Gt,Ut,Ht))&&(Gt.pendingcb++,Zt=It(this,Gt,Xt,Ut,Vt,Ht)),Zt},Rt.prototype.cork=function(){var Ut=this._writableState;Ut.corked++},Rt.prototype.uncork=function(){var Ut=this._writableState;Ut.corked&&(Ut.corked--,!Ut.writing&&!Ut.corked&&!Ut.bufferProcessing&&Ut.bufferedRequest&&Jt(this,Ut))},Rt.prototype.setDefaultEncoding=function(Vt){if(typeof Vt=="string"&&(Vt=Vt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Vt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Vt);return this._writableState.defaultEncoding=Vt,this};function Ct(Ut,Vt,Ht){return!Ut.objectMode&&Ut.decodeStrings!==!1&&typeof Vt=="string"&&(Vt=pt.from(Vt,Ht)),Vt}Object.defineProperty(Rt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function It(Ut,Vt,Ht,Gt,Zt,Xt){if(!Ht){var er=Ct(Vt,Gt,Zt);Gt!==er&&(Ht=!0,Zt="buffer",Gt=er)}var nr=Vt.objectMode?1:Gt.length;Vt.length+=nr;var or=Vt.length<Vt.highWaterMark;if(or||(Vt.needDrain=!0),Vt.writing||Vt.corked){var rr=Vt.lastBufferedRequest;Vt.lastBufferedRequest={chunk:Gt,encoding:Zt,isBuf:Ht,callback:Xt,next:null},rr?rr.next=Vt.lastBufferedRequest:Vt.bufferedRequest=Vt.lastBufferedRequest,Vt.bufferedRequestCount+=1}else Dt(Ut,Vt,!1,nr,Gt,Zt,Xt);return or}function Dt(Ut,Vt,Ht,Gt,Zt,Xt,er){Vt.writelen=Gt,Vt.writecb=er,Vt.writing=!0,Vt.sync=!0,Ht?Ut._writev(Zt,Vt.onwrite):Ut._write(Zt,Xt,Vt.onwrite),Vt.sync=!1}function kt(Ut,Vt,Ht,Gt,Zt){--Vt.pendingcb,Ht?(et.nextTick(Zt,Gt),et.nextTick($t,Ut,Vt),Ut._writableState.errorEmitted=!0,Ut.emit("error",Gt)):(Zt(Gt),Ut._writableState.errorEmitted=!0,Ut.emit("error",Gt),$t(Ut,Vt))}function qt(Ut){Ut.writing=!1,Ut.writecb=null,Ut.length-=Ut.writelen,Ut.writelen=0}function Nt(Ut,Vt){var Ht=Ut._writableState,Gt=Ht.sync,Zt=Ht.writecb;if(qt(Ht),Vt)kt(Ut,Ht,Gt,Vt,Zt);else{var Xt=Qt(Ht);!Xt&&!Ht.corked&&!Ht.bufferProcessing&&Ht.bufferedRequest&&Jt(Ut,Ht),Gt?rt(Yt,Ut,Ht,Xt,Zt):Yt(Ut,Ht,Xt,Zt)}}function Yt(Ut,Vt,Ht,Gt){Ht||Kt(Ut,Vt),Vt.pendingcb--,Gt(),$t(Ut,Vt)}function Kt(Ut,Vt){Vt.length===0&&Vt.needDrain&&(Vt.needDrain=!1,Ut.emit("drain"))}function Jt(Ut,Vt){Vt.bufferProcessing=!0;var Ht=Vt.bufferedRequest;if(Ut._writev&&Ht&&Ht.next){var Gt=Vt.bufferedRequestCount,Zt=new Array(Gt),Xt=Vt.corkedRequestsFree;Xt.entry=Ht;for(var er=0,nr=!0;Ht;)Zt[er]=Ht,Ht.isBuf||(nr=!1),Ht=Ht.next,er+=1;Zt.allBuffers=nr,Dt(Ut,Vt,!0,Vt.length,Zt,"",Xt.finish),Vt.pendingcb++,Vt.lastBufferedRequest=null,Xt.next?(Vt.corkedRequestsFree=Xt.next,Xt.next=null):Vt.corkedRequestsFree=new tt(Vt),Vt.bufferedRequestCount=0}else{for(;Ht;){var or=Ht.chunk,rr=Ht.encoding,cr=Ht.callback,ir=Vt.objectMode?1:or.length;if(Dt(Ut,Vt,!1,ir,or,rr,cr),Ht=Ht.next,Vt.bufferedRequestCount--,Vt.writing)break}Ht===null&&(Vt.lastBufferedRequest=null)}Vt.bufferedRequest=Ht,Vt.bufferProcessing=!1}Rt.prototype._write=function(Ut,Vt,Ht){Ht(new Error("_write() is not implemented"))},Rt.prototype._writev=null,Rt.prototype.end=function(Ut,Vt,Ht){var Gt=this._writableState;typeof Ut=="function"?(Ht=Ut,Ut=null,Vt=null):typeof Vt=="function"&&(Ht=Vt,Vt=null),Ut!=null&&this.write(Ut,Vt),Gt.corked&&(Gt.corked=1,this.uncork()),Gt.ending||jt(this,Gt,Ht)};function Qt(Ut){return Ut.ending&&Ut.length===0&&Ut.bufferedRequest===null&&!Ut.finished&&!Ut.writing}function Bt(Ut,Vt){Ut._final(function(Ht){Vt.pendingcb--,Ht&&Ut.emit("error",Ht),Vt.prefinished=!0,Ut.emit("prefinish"),$t(Ut,Vt)})}function Ft(Ut,Vt){!Vt.prefinished&&!Vt.finalCalled&&(typeof Ut._final=="function"?(Vt.pendingcb++,Vt.finalCalled=!0,et.nextTick(Bt,Ut,Vt)):(Vt.prefinished=!0,Ut.emit("prefinish")))}function $t(Ut,Vt){var Ht=Qt(Vt);return Ht&&(Ft(Ut,Vt),Vt.pendingcb===0&&(Vt.finished=!0,Ut.emit("finish"))),Ht}function jt(Ut,Vt,Ht){Vt.ending=!0,$t(Ut,Vt),Ht&&(Vt.finished?et.nextTick(Ht):Ut.once("finish",Ht)),Vt.ended=!0,Ut.writable=!1}function Wt(Ut,Vt,Ht){var Gt=Ut.entry;for(Ut.entry=null;Gt;){var Zt=Gt.callback;Vt.pendingcb--,Zt(Ht),Gt=Gt.next}Vt.corkedRequestsFree.next=Ut}return Object.defineProperty(Rt.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ut){this._writableState&&(this._writableState.destroyed=Ut)}}),Rt.prototype.destroy=Mt.destroy,Rt.prototype._undestroy=Mt.undestroy,Rt.prototype._destroy=function(Ut,Vt){this.end(),Vt(Ut)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var et=processNextickArgsExports,tt=Object.keys||function(Mt){var vt=[];for(var Ot in Mt)vt.push(Ot);return vt};_stream_duplex=ht;var rt=Object.create(util$2);rt.inherits=inherits_browserExports;var nt=require_stream_readable(),lt=require_stream_writable();rt.inherits(ht,nt);for(var ut=tt(lt.prototype),dt=0;dt<ut.length;dt++){var pt=ut[dt];ht.prototype[pt]||(ht.prototype[pt]=lt.prototype[pt])}function ht(Mt){if(!(this instanceof ht))return new ht(Mt);nt.call(this,Mt),lt.call(this,Mt),Mt&&Mt.readable===!1&&(this.readable=!1),Mt&&Mt.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,Mt&&Mt.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",mt)}Object.defineProperty(ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function mt(){this.allowHalfOpen||this._writableState.ended||et.nextTick(xt,this)}function xt(Mt){Mt.end()}return Object.defineProperty(ht.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(Mt){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=Mt,this._writableState.destroyed=Mt)}}),ht.prototype._destroy=function(Mt,vt){this.push(null),this.end(),et.nextTick(vt,Mt)},_stream_duplex}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var et=processNextickArgsExports;_stream_readable=Ct;var tt=isarray,rt;Ct.ReadableState=Tt,eventsExports.EventEmitter;var nt=function(cr,ir){return cr.listeners(ir).length},lt=streamBrowser,ut=safeBufferExports.Buffer,dt=(typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function pt(cr){return ut.from(cr)}function ht(cr){return ut.isBuffer(cr)||cr instanceof dt}var mt=Object.create(util$2);mt.inherits=inherits_browserExports;var xt=util$a,Mt=void 0;xt&&xt.debuglog?Mt=xt.debuglog("stream"):Mt=function(){};var vt=requireBufferList(),Ot=destroy_1,At;mt.inherits(Ct,lt);var Rt=["error","close","destroy","pause","resume"];function zt(cr,ir,dr){if(typeof cr.prependListener=="function")return cr.prependListener(ir,dr);!cr._events||!cr._events[ir]?cr.on(ir,dr):tt(cr._events[ir])?cr._events[ir].unshift(dr):cr._events[ir]=[dr,cr._events[ir]]}function Tt(cr,ir){rt=rt||require_stream_duplex(),cr=cr||{};var dr=ir instanceof rt;this.objectMode=!!cr.objectMode,dr&&(this.objectMode=this.objectMode||!!cr.readableObjectMode);var gr=cr.highWaterMark,br=cr.readableHighWaterMark,ar=this.objectMode?16:16*1024;gr||gr===0?this.highWaterMark=gr:dr&&(br||br===0)?this.highWaterMark=br:this.highWaterMark=ar,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new vt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=cr.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,cr.encoding&&(At||(At=string_decoder.StringDecoder),this.decoder=new At(cr.encoding),this.encoding=cr.encoding)}function Ct(cr){if(rt=rt||require_stream_duplex(),!(this instanceof Ct))return new Ct(cr);this._readableState=new Tt(cr,this),this.readable=!0,cr&&(typeof cr.read=="function"&&(this._read=cr.read),typeof cr.destroy=="function"&&(this._destroy=cr.destroy)),lt.call(this)}Object.defineProperty(Ct.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(cr){this._readableState&&(this._readableState.destroyed=cr)}}),Ct.prototype.destroy=Ot.destroy,Ct.prototype._undestroy=Ot.undestroy,Ct.prototype._destroy=function(cr,ir){this.push(null),ir(cr)},Ct.prototype.push=function(cr,ir){var dr=this._readableState,gr;return dr.objectMode?gr=!0:typeof cr=="string"&&(ir=ir||dr.defaultEncoding,ir!==dr.encoding&&(cr=ut.from(cr,ir),ir=""),gr=!0),It(this,cr,ir,!1,gr)},Ct.prototype.unshift=function(cr){return It(this,cr,null,!0,!1)};function It(cr,ir,dr,gr,br){var ar=cr._readableState;if(ir===null)ar.reading=!1,Jt(cr,ar);else{var ur;br||(ur=kt(ar,ir)),ur?cr.emit("error",ur):ar.objectMode||ir&&ir.length>0?(typeof ir!="string"&&!ar.objectMode&&Object.getPrototypeOf(ir)!==ut.prototype&&(ir=pt(ir)),gr?ar.endEmitted?cr.emit("error",new Error("stream.unshift() after end event")):Dt(cr,ar,ir,!0):ar.ended?cr.emit("error",new Error("stream.push() after EOF")):(ar.reading=!1,ar.decoder&&!dr?(ir=ar.decoder.write(ir),ar.objectMode||ir.length!==0?Dt(cr,ar,ir,!1):Ft(cr,ar)):Dt(cr,ar,ir,!1))):gr||(ar.reading=!1)}return qt(ar)}function Dt(cr,ir,dr,gr){ir.flowing&&ir.length===0&&!ir.sync?(cr.emit("data",dr),cr.read(0)):(ir.length+=ir.objectMode?1:dr.length,gr?ir.buffer.unshift(dr):ir.buffer.push(dr),ir.needReadable&&Qt(cr)),Ft(cr,ir)}function kt(cr,ir){var dr;return!ht(ir)&&typeof ir!="string"&&ir!==void 0&&!cr.objectMode&&(dr=new TypeError("Invalid non-string/buffer chunk")),dr}function qt(cr){return!cr.ended&&(cr.needReadable||cr.length<cr.highWaterMark||cr.length===0)}Ct.prototype.isPaused=function(){return this._readableState.flowing===!1},Ct.prototype.setEncoding=function(cr){return At||(At=string_decoder.StringDecoder),this._readableState.decoder=new At(cr),this._readableState.encoding=cr,this};var Nt=8388608;function Yt(cr){return cr>=Nt?cr=Nt:(cr--,cr|=cr>>>1,cr|=cr>>>2,cr|=cr>>>4,cr|=cr>>>8,cr|=cr>>>16,cr++),cr}function Kt(cr,ir){return cr<=0||ir.length===0&&ir.ended?0:ir.objectMode?1:cr!==cr?ir.flowing&&ir.length?ir.buffer.head.data.length:ir.length:(cr>ir.highWaterMark&&(ir.highWaterMark=Yt(cr)),cr<=ir.length?cr:ir.ended?ir.length:(ir.needReadable=!0,0))}Ct.prototype.read=function(cr){Mt("read",cr),cr=parseInt(cr,10);var ir=this._readableState,dr=cr;if(cr!==0&&(ir.emittedReadable=!1),cr===0&&ir.needReadable&&(ir.length>=ir.highWaterMark||ir.ended))return Mt("read: emitReadable",ir.length,ir.ended),ir.length===0&&ir.ended?nr(this):Qt(this),null;if(cr=Kt(cr,ir),cr===0&&ir.ended)return ir.length===0&&nr(this),null;var gr=ir.needReadable;Mt("need readable",gr),(ir.length===0||ir.length-cr<ir.highWaterMark)&&(gr=!0,Mt("length less than watermark",gr)),ir.ended||ir.reading?(gr=!1,Mt("reading or ended",gr)):gr&&(Mt("do read"),ir.reading=!0,ir.sync=!0,ir.length===0&&(ir.needReadable=!0),this._read(ir.highWaterMark),ir.sync=!1,ir.reading||(cr=Kt(dr,ir)));var br;return cr>0?br=Gt(cr,ir):br=null,br===null?(ir.needReadable=!0,cr=0):ir.length-=cr,ir.length===0&&(ir.ended||(ir.needReadable=!0),dr!==cr&&ir.ended&&nr(this)),br!==null&&this.emit("data",br),br};function Jt(cr,ir){if(!ir.ended){if(ir.decoder){var dr=ir.decoder.end();dr&&dr.length&&(ir.buffer.push(dr),ir.length+=ir.objectMode?1:dr.length)}ir.ended=!0,Qt(cr)}}function Qt(cr){var ir=cr._readableState;ir.needReadable=!1,ir.emittedReadable||(Mt("emitReadable",ir.flowing),ir.emittedReadable=!0,ir.sync?et.nextTick(Bt,cr):Bt(cr))}function Bt(cr){Mt("emit readable"),cr.emit("readable"),Ht(cr)}function Ft(cr,ir){ir.readingMore||(ir.readingMore=!0,et.nextTick($t,cr,ir))}function $t(cr,ir){for(var dr=ir.length;!ir.reading&&!ir.flowing&&!ir.ended&&ir.length<ir.highWaterMark&&(Mt("maybeReadMore read 0"),cr.read(0),dr!==ir.length);)dr=ir.length;ir.readingMore=!1}Ct.prototype._read=function(cr){this.emit("error",new Error("_read() is not implemented"))},Ct.prototype.pipe=function(cr,ir){var dr=this,gr=this._readableState;switch(gr.pipesCount){case 0:gr.pipes=cr;break;case 1:gr.pipes=[gr.pipes,cr];break;default:gr.pipes.push(cr);break}gr.pipesCount+=1,Mt("pipe count=%d opts=%j",gr.pipesCount,ir);var br=(!ir||ir.end!==!1)&&cr!==process$1$1.stdout&&cr!==process$1$1.stderr,ar=br?xr:$r;gr.endEmitted?et.nextTick(ar):dr.once("end",ar),cr.on("unpipe",ur);function ur(yr,Or){Mt("onunpipe"),yr===dr&&Or&&Or.hasUnpiped===!1&&(Or.hasUnpiped=!0,Ir())}function xr(){Mt("onend"),cr.end()}var Mr=jt(dr);cr.on("drain",Mr);var Ar=!1;function Ir(){Mt("cleanup"),cr.removeListener("close",Hr),cr.removeListener("finish",kr),cr.removeListener("drain",Mr),cr.removeListener("error",qr),cr.removeListener("unpipe",ur),dr.removeListener("end",xr),dr.removeListener("end",$r),dr.removeListener("data",wr),Ar=!0,gr.awaitDrain&&(!cr._writableState||cr._writableState.needDrain)&&Mr()}var Rr=!1;dr.on("data",wr);function wr(yr){Mt("ondata"),Rr=!1;var Or=cr.write(yr);Or===!1&&!Rr&&((gr.pipesCount===1&&gr.pipes===cr||gr.pipesCount>1&&rr(gr.pipes,cr)!==-1)&&!Ar&&(Mt("false write response, pause",gr.awaitDrain),gr.awaitDrain++,Rr=!0),dr.pause())}function qr(yr){Mt("onerror",yr),$r(),cr.removeListener("error",qr),nt(cr,"error")===0&&cr.emit("error",yr)}zt(cr,"error",qr);function Hr(){cr.removeListener("finish",kr),$r()}cr.once("close",Hr);function kr(){Mt("onfinish"),cr.removeListener("close",Hr),$r()}cr.once("finish",kr);function $r(){Mt("unpipe"),dr.unpipe(cr)}return cr.emit("pipe",dr),gr.flowing||(Mt("pipe resume"),dr.resume()),cr};function jt(cr){return function(){var ir=cr._readableState;Mt("pipeOnDrain",ir.awaitDrain),ir.awaitDrain&&ir.awaitDrain--,ir.awaitDrain===0&&nt(cr,"data")&&(ir.flowing=!0,Ht(cr))}}Ct.prototype.unpipe=function(cr){var ir=this._readableState,dr={hasUnpiped:!1};if(ir.pipesCount===0)return this;if(ir.pipesCount===1)return cr&&cr!==ir.pipes?this:(cr||(cr=ir.pipes),ir.pipes=null,ir.pipesCount=0,ir.flowing=!1,cr&&cr.emit("unpipe",this,dr),this);if(!cr){var gr=ir.pipes,br=ir.pipesCount;ir.pipes=null,ir.pipesCount=0,ir.flowing=!1;for(var ar=0;ar<br;ar++)gr[ar].emit("unpipe",this,{hasUnpiped:!1});return this}var ur=rr(ir.pipes,cr);return ur===-1?this:(ir.pipes.splice(ur,1),ir.pipesCount-=1,ir.pipesCount===1&&(ir.pipes=ir.pipes[0]),cr.emit("unpipe",this,dr),this)},Ct.prototype.on=function(cr,ir){var dr=lt.prototype.on.call(this,cr,ir);if(cr==="data")this._readableState.flowing!==!1&&this.resume();else if(cr==="readable"){var gr=this._readableState;!gr.endEmitted&&!gr.readableListening&&(gr.readableListening=gr.needReadable=!0,gr.emittedReadable=!1,gr.reading?gr.length&&Qt(this):et.nextTick(Wt,this))}return dr},Ct.prototype.addListener=Ct.prototype.on;function Wt(cr){Mt("readable nexttick read 0"),cr.read(0)}Ct.prototype.resume=function(){var cr=this._readableState;return cr.flowing||(Mt("resume"),cr.flowing=!0,Ut(this,cr)),this};function Ut(cr,ir){ir.resumeScheduled||(ir.resumeScheduled=!0,et.nextTick(Vt,cr,ir))}function Vt(cr,ir){ir.reading||(Mt("resume read 0"),cr.read(0)),ir.resumeScheduled=!1,ir.awaitDrain=0,cr.emit("resume"),Ht(cr),ir.flowing&&!ir.reading&&cr.read(0)}Ct.prototype.pause=function(){return Mt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Mt("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ht(cr){var ir=cr._readableState;for(Mt("flow",ir.flowing);ir.flowing&&cr.read()!==null;);}Ct.prototype.wrap=function(cr){var ir=this,dr=this._readableState,gr=!1;cr.on("end",function(){if(Mt("wrapped end"),dr.decoder&&!dr.ended){var ur=dr.decoder.end();ur&&ur.length&&ir.push(ur)}ir.push(null)}),cr.on("data",function(ur){if(Mt("wrapped data"),dr.decoder&&(ur=dr.decoder.write(ur)),!(dr.objectMode&&ur==null)&&!(!dr.objectMode&&(!ur||!ur.length))){var xr=ir.push(ur);xr||(gr=!0,cr.pause())}});for(var br in cr)this[br]===void 0&&typeof cr[br]=="function"&&(this[br]=function(ur){return function(){return cr[ur].apply(cr,arguments)}}(br));for(var ar=0;ar<Rt.length;ar++)cr.on(Rt[ar],this.emit.bind(this,Rt[ar]));return this._read=function(ur){Mt("wrapped _read",ur),gr&&(gr=!1,cr.resume())},this},Object.defineProperty(Ct.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ct._fromList=Gt;function Gt(cr,ir){if(ir.length===0)return null;var dr;return ir.objectMode?dr=ir.buffer.shift():!cr||cr>=ir.length?(ir.decoder?dr=ir.buffer.join(""):ir.buffer.length===1?dr=ir.buffer.head.data:dr=ir.buffer.concat(ir.length),ir.buffer.clear()):dr=Zt(cr,ir.buffer,ir.decoder),dr}function Zt(cr,ir,dr){var gr;return cr<ir.head.data.length?(gr=ir.head.data.slice(0,cr),ir.head.data=ir.head.data.slice(cr)):cr===ir.head.data.length?gr=ir.shift():gr=dr?Xt(cr,ir):er(cr,ir),gr}function Xt(cr,ir){var dr=ir.head,gr=1,br=dr.data;for(cr-=br.length;dr=dr.next;){var ar=dr.data,ur=cr>ar.length?ar.length:cr;if(ur===ar.length?br+=ar:br+=ar.slice(0,cr),cr-=ur,cr===0){ur===ar.length?(++gr,dr.next?ir.head=dr.next:ir.head=ir.tail=null):(ir.head=dr,dr.data=ar.slice(ur));break}++gr}return ir.length-=gr,br}function er(cr,ir){var dr=ut.allocUnsafe(cr),gr=ir.head,br=1;for(gr.data.copy(dr),cr-=gr.data.length;gr=gr.next;){var ar=gr.data,ur=cr>ar.length?ar.length:cr;if(ar.copy(dr,dr.length-cr,0,ur),cr-=ur,cr===0){ur===ar.length?(++br,gr.next?ir.head=gr.next:ir.head=ir.tail=null):(ir.head=gr,gr.data=ar.slice(ur));break}++br}return ir.length-=br,dr}function nr(cr){var ir=cr._readableState;if(ir.length>0)throw new Error('"endReadable()" called on non-empty stream');ir.endEmitted||(ir.ended=!0,et.nextTick(or,ir,cr))}function or(cr,ir){!cr.endEmitted&&cr.length===0&&(cr.endEmitted=!0,ir.readable=!1,ir.emit("end"))}function rr(cr,ir){for(var dr=0,gr=cr.length;dr<gr;dr++)if(cr[dr]===ir)return dr;return-1}return _stream_readable}var _stream_transform=Transform$1,Duplex=require_stream_duplex(),util$1=Object.create(util$2);util$1.inherits=inherits_browserExports;util$1.inherits(Transform$1,Duplex);function afterTransform(et,tt){var rt=this._transformState;rt.transforming=!1;var nt=rt.writecb;if(!nt)return this.emit("error",new Error("write callback called multiple times"));rt.writechunk=null,rt.writecb=null,tt!=null&&this.push(tt),nt(et);var lt=this._readableState;lt.reading=!1,(lt.needReadable||lt.length<lt.highWaterMark)&&this._read(lt.highWaterMark)}function Transform$1(et){if(!(this instanceof Transform$1))return new Transform$1(et);Duplex.call(this,et),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,et&&(typeof et.transform=="function"&&(this._transform=et.transform),typeof et.flush=="function"&&(this._flush=et.flush)),this.on("prefinish",prefinish)}function prefinish(){var et=this;typeof this._flush=="function"?this._flush(function(tt,rt){done(et,tt,rt)}):done(this,null,null)}Transform$1.prototype.push=function(et,tt){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,et,tt)};Transform$1.prototype._transform=function(et,tt,rt){throw new Error("_transform() is not implemented")};Transform$1.prototype._write=function(et,tt,rt){var nt=this._transformState;if(nt.writecb=rt,nt.writechunk=et,nt.writeencoding=tt,!nt.transforming){var lt=this._readableState;(nt.needTransform||lt.needReadable||lt.length<lt.highWaterMark)&&this._read(lt.highWaterMark)}};Transform$1.prototype._read=function(et){var tt=this._transformState;tt.writechunk!==null&&tt.writecb&&!tt.transforming?(tt.transforming=!0,this._transform(tt.writechunk,tt.writeencoding,tt.afterTransform)):tt.needTransform=!0};Transform$1.prototype._destroy=function(et,tt){var rt=this;Duplex.prototype._destroy.call(this,et,function(nt){tt(nt),rt.emit("close")})};function done(et,tt,rt){if(tt)return et.emit("error",tt);if(rt!=null&&et.push(rt),et._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(et._transformState.transforming)throw new Error("Calling transform done when still transforming");return et.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform,util=Object.create(util$2);util.inherits=inherits_browserExports;util.inherits(PassThrough,Transform);function PassThrough(et){if(!(this instanceof PassThrough))return new PassThrough(et);Transform.call(this,et)}PassThrough.prototype._transform=function(et,tt,rt){rt(null,et)};(function(et,tt){tt=et.exports=require_stream_readable(),tt.Stream=tt,tt.Readable=tt,tt.Writable=require_stream_writable(),tt.Duplex=require_stream_duplex(),tt.Transform=_stream_transform,tt.PassThrough=_stream_passthrough})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,sign={exports:{}},bn$1={exports:{}};bn$1.exports;(function(et){(function(tt,rt){function nt(Ft,$t){if(!Ft)throw new Error($t||"Assertion failed")}function lt(Ft,$t){Ft.super_=$t;var jt=function(){};jt.prototype=$t.prototype,Ft.prototype=new jt,Ft.prototype.constructor=Ft}function ut(Ft,$t,jt){if(ut.isBN(Ft))return Ft;this.negative=0,this.words=null,this.length=0,this.red=null,Ft!==null&&(($t==="le"||$t==="be")&&(jt=$t,$t=10),this._init(Ft||0,$t||10,jt||"be"))}typeof tt=="object"?tt.exports=ut:rt.BN=ut,ut.BN=ut,ut.wordSize=26;var dt;try{typeof window<"u"&&typeof window.Buffer<"u"?dt=window.Buffer:dt=dist$5.Buffer}catch{}ut.isBN=function($t){return $t instanceof ut?!0:$t!==null&&typeof $t=="object"&&$t.constructor.wordSize===ut.wordSize&&Array.isArray($t.words)},ut.max=function($t,jt){return $t.cmp(jt)>0?$t:jt},ut.min=function($t,jt){return $t.cmp(jt)<0?$t:jt},ut.prototype._init=function($t,jt,Wt){if(typeof $t=="number")return this._initNumber($t,jt,Wt);if(typeof $t=="object")return this._initArray($t,jt,Wt);jt==="hex"&&(jt=16),nt(jt===(jt|0)&&jt>=2&&jt<=36),$t=$t.toString().replace(/\s+/g,"");var Ut=0;$t[0]==="-"&&(Ut++,this.negative=1),Ut<$t.length&&(jt===16?this._parseHex($t,Ut,Wt):(this._parseBase($t,jt,Ut),Wt==="le"&&this._initArray(this.toArray(),jt,Wt)))},ut.prototype._initNumber=function($t,jt,Wt){$t<0&&(this.negative=1,$t=-$t),$t<67108864?(this.words=[$t&67108863],this.length=1):$t<4503599627370496?(this.words=[$t&67108863,$t/67108864&67108863],this.length=2):(nt($t<9007199254740992),this.words=[$t&67108863,$t/67108864&67108863,1],this.length=3),Wt==="le"&&this._initArray(this.toArray(),jt,Wt)},ut.prototype._initArray=function($t,jt,Wt){if(nt(typeof $t.length=="number"),$t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil($t.length/3),this.words=new Array(this.length);for(var Ut=0;Ut<this.length;Ut++)this.words[Ut]=0;var Vt,Ht,Gt=0;if(Wt==="be")for(Ut=$t.length-1,Vt=0;Ut>=0;Ut-=3)Ht=$t[Ut]|$t[Ut-1]<<8|$t[Ut-2]<<16,this.words[Vt]|=Ht<<Gt&67108863,this.words[Vt+1]=Ht>>>26-Gt&67108863,Gt+=24,Gt>=26&&(Gt-=26,Vt++);else if(Wt==="le")for(Ut=0,Vt=0;Ut<$t.length;Ut+=3)Ht=$t[Ut]|$t[Ut+1]<<8|$t[Ut+2]<<16,this.words[Vt]|=Ht<<Gt&67108863,this.words[Vt+1]=Ht>>>26-Gt&67108863,Gt+=24,Gt>=26&&(Gt-=26,Vt++);return this._strip()};function pt(Ft,$t){var jt=Ft.charCodeAt($t);if(jt>=48&&jt<=57)return jt-48;if(jt>=65&&jt<=70)return jt-55;if(jt>=97&&jt<=102)return jt-87;nt(!1,"Invalid character in "+Ft)}function ht(Ft,$t,jt){var Wt=pt(Ft,jt);return jt-1>=$t&&(Wt|=pt(Ft,jt-1)<<4),Wt}ut.prototype._parseHex=function($t,jt,Wt){this.length=Math.ceil(($t.length-jt)/6),this.words=new Array(this.length);for(var Ut=0;Ut<this.length;Ut++)this.words[Ut]=0;var Vt=0,Ht=0,Gt;if(Wt==="be")for(Ut=$t.length-1;Ut>=jt;Ut-=2)Gt=ht($t,jt,Ut)<<Vt,this.words[Ht]|=Gt&67108863,Vt>=18?(Vt-=18,Ht+=1,this.words[Ht]|=Gt>>>26):Vt+=8;else{var Zt=$t.length-jt;for(Ut=Zt%2===0?jt+1:jt;Ut<$t.length;Ut+=2)Gt=ht($t,jt,Ut)<<Vt,this.words[Ht]|=Gt&67108863,Vt>=18?(Vt-=18,Ht+=1,this.words[Ht]|=Gt>>>26):Vt+=8}this._strip()};function mt(Ft,$t,jt,Wt){for(var Ut=0,Vt=0,Ht=Math.min(Ft.length,jt),Gt=$t;Gt<Ht;Gt++){var Zt=Ft.charCodeAt(Gt)-48;Ut*=Wt,Zt>=49?Vt=Zt-49+10:Zt>=17?Vt=Zt-17+10:Vt=Zt,nt(Zt>=0&&Vt<Wt,"Invalid character"),Ut+=Vt}return Ut}ut.prototype._parseBase=function($t,jt,Wt){this.words=[0],this.length=1;for(var Ut=0,Vt=1;Vt<=67108863;Vt*=jt)Ut++;Ut--,Vt=Vt/jt|0;for(var Ht=$t.length-Wt,Gt=Ht%Ut,Zt=Math.min(Ht,Ht-Gt)+Wt,Xt=0,er=Wt;er<Zt;er+=Ut)Xt=mt($t,er,er+Ut,jt),this.imuln(Vt),this.words[0]+Xt<67108864?this.words[0]+=Xt:this._iaddn(Xt);if(Gt!==0){var nr=1;for(Xt=mt($t,er,$t.length,jt),er=0;er<Gt;er++)nr*=jt;this.imuln(nr),this.words[0]+Xt<67108864?this.words[0]+=Xt:this._iaddn(Xt)}this._strip()},ut.prototype.copy=function($t){$t.words=new Array(this.length);for(var jt=0;jt<this.length;jt++)$t.words[jt]=this.words[jt];$t.length=this.length,$t.negative=this.negative,$t.red=this.red};function xt(Ft,$t){Ft.words=$t.words,Ft.length=$t.length,Ft.negative=$t.negative,Ft.red=$t.red}if(ut.prototype._move=function($t){xt($t,this)},ut.prototype.clone=function(){var $t=new ut(null);return this.copy($t),$t},ut.prototype._expand=function($t){for(;this.length<$t;)this.words[this.length++]=0;return this},ut.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ut.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{ut.prototype[Symbol.for("nodejs.util.inspect.custom")]=Mt}catch{ut.prototype.inspect=Mt}else ut.prototype.inspect=Mt;function Mt(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var vt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Ot=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],At=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];ut.prototype.toString=function($t,jt){$t=$t||10,jt=jt|0||1;var Wt;if($t===16||$t==="hex"){Wt="";for(var Ut=0,Vt=0,Ht=0;Ht<this.length;Ht++){var Gt=this.words[Ht],Zt=((Gt<<Ut|Vt)&16777215).toString(16);Vt=Gt>>>24-Ut&16777215,Ut+=2,Ut>=26&&(Ut-=26,Ht--),Vt!==0||Ht!==this.length-1?Wt=vt[6-Zt.length]+Zt+Wt:Wt=Zt+Wt}for(Vt!==0&&(Wt=Vt.toString(16)+Wt);Wt.length%jt!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}if($t===($t|0)&&$t>=2&&$t<=36){var Xt=Ot[$t],er=At[$t];Wt="";var nr=this.clone();for(nr.negative=0;!nr.isZero();){var or=nr.modrn(er).toString($t);nr=nr.idivn(er),nr.isZero()?Wt=or+Wt:Wt=vt[Xt-or.length]+or+Wt}for(this.isZero()&&(Wt="0"+Wt);Wt.length%jt!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}nt(!1,"Base should be between 2 and 36")},ut.prototype.toNumber=function(){var $t=this.words[0];return this.length===2?$t+=this.words[1]*67108864:this.length===3&&this.words[2]===1?$t+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-$t:$t},ut.prototype.toJSON=function(){return this.toString(16,2)},dt&&(ut.prototype.toBuffer=function($t,jt){return this.toArrayLike(dt,$t,jt)}),ut.prototype.toArray=function($t,jt){return this.toArrayLike(Array,$t,jt)};var Rt=function($t,jt){return $t.allocUnsafe?$t.allocUnsafe(jt):new $t(jt)};ut.prototype.toArrayLike=function($t,jt,Wt){this._strip();var Ut=this.byteLength(),Vt=Wt||Math.max(1,Ut);nt(Ut<=Vt,"byte array longer than desired length"),nt(Vt>0,"Requested array length <= 0");var Ht=Rt($t,Vt),Gt=jt==="le"?"LE":"BE";return this["_toArrayLike"+Gt](Ht,Ut),Ht},ut.prototype._toArrayLikeLE=function($t,jt){for(var Wt=0,Ut=0,Vt=0,Ht=0;Vt<this.length;Vt++){var Gt=this.words[Vt]<<Ht|Ut;$t[Wt++]=Gt&255,Wt<$t.length&&($t[Wt++]=Gt>>8&255),Wt<$t.length&&($t[Wt++]=Gt>>16&255),Ht===6?(Wt<$t.length&&($t[Wt++]=Gt>>24&255),Ut=0,Ht=0):(Ut=Gt>>>24,Ht+=2)}if(Wt<$t.length)for($t[Wt++]=Ut;Wt<$t.length;)$t[Wt++]=0},ut.prototype._toArrayLikeBE=function($t,jt){for(var Wt=$t.length-1,Ut=0,Vt=0,Ht=0;Vt<this.length;Vt++){var Gt=this.words[Vt]<<Ht|Ut;$t[Wt--]=Gt&255,Wt>=0&&($t[Wt--]=Gt>>8&255),Wt>=0&&($t[Wt--]=Gt>>16&255),Ht===6?(Wt>=0&&($t[Wt--]=Gt>>24&255),Ut=0,Ht=0):(Ut=Gt>>>24,Ht+=2)}if(Wt>=0)for($t[Wt--]=Ut;Wt>=0;)$t[Wt--]=0},Math.clz32?ut.prototype._countBits=function($t){return 32-Math.clz32($t)}:ut.prototype._countBits=function($t){var jt=$t,Wt=0;return jt>=4096&&(Wt+=13,jt>>>=13),jt>=64&&(Wt+=7,jt>>>=7),jt>=8&&(Wt+=4,jt>>>=4),jt>=2&&(Wt+=2,jt>>>=2),Wt+jt},ut.prototype._zeroBits=function($t){if($t===0)return 26;var jt=$t,Wt=0;return jt&8191||(Wt+=13,jt>>>=13),jt&127||(Wt+=7,jt>>>=7),jt&15||(Wt+=4,jt>>>=4),jt&3||(Wt+=2,jt>>>=2),jt&1||Wt++,Wt},ut.prototype.bitLength=function(){var $t=this.words[this.length-1],jt=this._countBits($t);return(this.length-1)*26+jt};function zt(Ft){for(var $t=new Array(Ft.bitLength()),jt=0;jt<$t.length;jt++){var Wt=jt/26|0,Ut=jt%26;$t[jt]=Ft.words[Wt]>>>Ut&1}return $t}ut.prototype.zeroBits=function(){if(this.isZero())return 0;for(var $t=0,jt=0;jt<this.length;jt++){var Wt=this._zeroBits(this.words[jt]);if($t+=Wt,Wt!==26)break}return $t},ut.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},ut.prototype.toTwos=function($t){return this.negative!==0?this.abs().inotn($t).iaddn(1):this.clone()},ut.prototype.fromTwos=function($t){return this.testn($t-1)?this.notn($t).iaddn(1).ineg():this.clone()},ut.prototype.isNeg=function(){return this.negative!==0},ut.prototype.neg=function(){return this.clone().ineg()},ut.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},ut.prototype.iuor=function($t){for(;this.length<$t.length;)this.words[this.length++]=0;for(var jt=0;jt<$t.length;jt++)this.words[jt]=this.words[jt]|$t.words[jt];return this._strip()},ut.prototype.ior=function($t){return nt((this.negative|$t.negative)===0),this.iuor($t)},ut.prototype.or=function($t){return this.length>$t.length?this.clone().ior($t):$t.clone().ior(this)},ut.prototype.uor=function($t){return this.length>$t.length?this.clone().iuor($t):$t.clone().iuor(this)},ut.prototype.iuand=function($t){var jt;this.length>$t.length?jt=$t:jt=this;for(var Wt=0;Wt<jt.length;Wt++)this.words[Wt]=this.words[Wt]&$t.words[Wt];return this.length=jt.length,this._strip()},ut.prototype.iand=function($t){return nt((this.negative|$t.negative)===0),this.iuand($t)},ut.prototype.and=function($t){return this.length>$t.length?this.clone().iand($t):$t.clone().iand(this)},ut.prototype.uand=function($t){return this.length>$t.length?this.clone().iuand($t):$t.clone().iuand(this)},ut.prototype.iuxor=function($t){var jt,Wt;this.length>$t.length?(jt=this,Wt=$t):(jt=$t,Wt=this);for(var Ut=0;Ut<Wt.length;Ut++)this.words[Ut]=jt.words[Ut]^Wt.words[Ut];if(this!==jt)for(;Ut<jt.length;Ut++)this.words[Ut]=jt.words[Ut];return this.length=jt.length,this._strip()},ut.prototype.ixor=function($t){return nt((this.negative|$t.negative)===0),this.iuxor($t)},ut.prototype.xor=function($t){return this.length>$t.length?this.clone().ixor($t):$t.clone().ixor(this)},ut.prototype.uxor=function($t){return this.length>$t.length?this.clone().iuxor($t):$t.clone().iuxor(this)},ut.prototype.inotn=function($t){nt(typeof $t=="number"&&$t>=0);var jt=Math.ceil($t/26)|0,Wt=$t%26;this._expand(jt),Wt>0&&jt--;for(var Ut=0;Ut<jt;Ut++)this.words[Ut]=~this.words[Ut]&67108863;return Wt>0&&(this.words[Ut]=~this.words[Ut]&67108863>>26-Wt),this._strip()},ut.prototype.notn=function($t){return this.clone().inotn($t)},ut.prototype.setn=function($t,jt){nt(typeof $t=="number"&&$t>=0);var Wt=$t/26|0,Ut=$t%26;return this._expand(Wt+1),jt?this.words[Wt]=this.words[Wt]|1<<Ut:this.words[Wt]=this.words[Wt]&~(1<<Ut),this._strip()},ut.prototype.iadd=function($t){var jt;if(this.negative!==0&&$t.negative===0)return this.negative=0,jt=this.isub($t),this.negative^=1,this._normSign();if(this.negative===0&&$t.negative!==0)return $t.negative=0,jt=this.isub($t),$t.negative=1,jt._normSign();var Wt,Ut;this.length>$t.length?(Wt=this,Ut=$t):(Wt=$t,Ut=this);for(var Vt=0,Ht=0;Ht<Ut.length;Ht++)jt=(Wt.words[Ht]|0)+(Ut.words[Ht]|0)+Vt,this.words[Ht]=jt&67108863,Vt=jt>>>26;for(;Vt!==0&&Ht<Wt.length;Ht++)jt=(Wt.words[Ht]|0)+Vt,this.words[Ht]=jt&67108863,Vt=jt>>>26;if(this.length=Wt.length,Vt!==0)this.words[this.length]=Vt,this.length++;else if(Wt!==this)for(;Ht<Wt.length;Ht++)this.words[Ht]=Wt.words[Ht];return this},ut.prototype.add=function($t){var jt;return $t.negative!==0&&this.negative===0?($t.negative=0,jt=this.sub($t),$t.negative^=1,jt):$t.negative===0&&this.negative!==0?(this.negative=0,jt=$t.sub(this),this.negative=1,jt):this.length>$t.length?this.clone().iadd($t):$t.clone().iadd(this)},ut.prototype.isub=function($t){if($t.negative!==0){$t.negative=0;var jt=this.iadd($t);return $t.negative=1,jt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd($t),this.negative=1,this._normSign();var Wt=this.cmp($t);if(Wt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ut,Vt;Wt>0?(Ut=this,Vt=$t):(Ut=$t,Vt=this);for(var Ht=0,Gt=0;Gt<Vt.length;Gt++)jt=(Ut.words[Gt]|0)-(Vt.words[Gt]|0)+Ht,Ht=jt>>26,this.words[Gt]=jt&67108863;for(;Ht!==0&&Gt<Ut.length;Gt++)jt=(Ut.words[Gt]|0)+Ht,Ht=jt>>26,this.words[Gt]=jt&67108863;if(Ht===0&&Gt<Ut.length&&Ut!==this)for(;Gt<Ut.length;Gt++)this.words[Gt]=Ut.words[Gt];return this.length=Math.max(this.length,Gt),Ut!==this&&(this.negative=1),this._strip()},ut.prototype.sub=function($t){return this.clone().isub($t)};function Tt(Ft,$t,jt){jt.negative=$t.negative^Ft.negative;var Wt=Ft.length+$t.length|0;jt.length=Wt,Wt=Wt-1|0;var Ut=Ft.words[0]|0,Vt=$t.words[0]|0,Ht=Ut*Vt,Gt=Ht&67108863,Zt=Ht/67108864|0;jt.words[0]=Gt;for(var Xt=1;Xt<Wt;Xt++){for(var er=Zt>>>26,nr=Zt&67108863,or=Math.min(Xt,$t.length-1),rr=Math.max(0,Xt-Ft.length+1);rr<=or;rr++){var cr=Xt-rr|0;Ut=Ft.words[cr]|0,Vt=$t.words[rr]|0,Ht=Ut*Vt+nr,er+=Ht/67108864|0,nr=Ht&67108863}jt.words[Xt]=nr|0,Zt=er|0}return Zt!==0?jt.words[Xt]=Zt|0:jt.length--,jt._strip()}var Ct=function($t,jt,Wt){var Ut=$t.words,Vt=jt.words,Ht=Wt.words,Gt=0,Zt,Xt,er,nr=Ut[0]|0,or=nr&8191,rr=nr>>>13,cr=Ut[1]|0,ir=cr&8191,dr=cr>>>13,gr=Ut[2]|0,br=gr&8191,ar=gr>>>13,ur=Ut[3]|0,xr=ur&8191,Mr=ur>>>13,Ar=Ut[4]|0,Ir=Ar&8191,Rr=Ar>>>13,wr=Ut[5]|0,qr=wr&8191,Hr=wr>>>13,kr=Ut[6]|0,$r=kr&8191,yr=kr>>>13,Or=Ut[7]|0,Dr=Or&8191,Fr=Or>>>13,Yr=Ut[8]|0,Gr=Yr&8191,Jr=Yr>>>13,jr=Ut[9]|0,Zr=jr&8191,Xr=jr>>>13,cn=Vt[0]|0,Qr=cn&8191,rn=cn>>>13,_r=Vt[1]|0,ln=_r&8191,vn=_r>>>13,Cr=Vt[2]|0,gn=Cr&8191,xn=Cr>>>13,Vr=Vt[3]|0,fn=Vr&8191,pn=Vr>>>13,qn=Vt[4]|0,Bn=qn&8191,Kr=qn>>>13,Tr=Vt[5]|0,Pr=Tr&8191,an=Tr>>>13,nn=Vt[6]|0,Mn=nn&8191,An=nn>>>13,Vn=Vt[7]|0,Cn=Vn&8191,kn=Vn>>>13,Qn=Vt[8]|0,Gn=Qn&8191,Un=Qn>>>13,jn=Vt[9]|0,In=jn&8191,Kn=jn>>>13;Wt.negative=$t.negative^jt.negative,Wt.length=19,Zt=Math.imul(or,Qr),Xt=Math.imul(or,rn),Xt=Xt+Math.imul(rr,Qr)|0,er=Math.imul(rr,rn);var Wn=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,Zt=Math.imul(ir,Qr),Xt=Math.imul(ir,rn),Xt=Xt+Math.imul(dr,Qr)|0,er=Math.imul(dr,rn),Zt=Zt+Math.imul(or,ln)|0,Xt=Xt+Math.imul(or,vn)|0,Xt=Xt+Math.imul(rr,ln)|0,er=er+Math.imul(rr,vn)|0;var ao=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(ao>>>26)|0,ao&=67108863,Zt=Math.imul(br,Qr),Xt=Math.imul(br,rn),Xt=Xt+Math.imul(ar,Qr)|0,er=Math.imul(ar,rn),Zt=Zt+Math.imul(ir,ln)|0,Xt=Xt+Math.imul(ir,vn)|0,Xt=Xt+Math.imul(dr,ln)|0,er=er+Math.imul(dr,vn)|0,Zt=Zt+Math.imul(or,gn)|0,Xt=Xt+Math.imul(or,xn)|0,Xt=Xt+Math.imul(rr,gn)|0,er=er+Math.imul(rr,xn)|0;var _i=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(_i>>>26)|0,_i&=67108863,Zt=Math.imul(xr,Qr),Xt=Math.imul(xr,rn),Xt=Xt+Math.imul(Mr,Qr)|0,er=Math.imul(Mr,rn),Zt=Zt+Math.imul(br,ln)|0,Xt=Xt+Math.imul(br,vn)|0,Xt=Xt+Math.imul(ar,ln)|0,er=er+Math.imul(ar,vn)|0,Zt=Zt+Math.imul(ir,gn)|0,Xt=Xt+Math.imul(ir,xn)|0,Xt=Xt+Math.imul(dr,gn)|0,er=er+Math.imul(dr,xn)|0,Zt=Zt+Math.imul(or,fn)|0,Xt=Xt+Math.imul(or,pn)|0,Xt=Xt+Math.imul(rr,fn)|0,er=er+Math.imul(rr,pn)|0;var ho=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(ho>>>26)|0,ho&=67108863,Zt=Math.imul(Ir,Qr),Xt=Math.imul(Ir,rn),Xt=Xt+Math.imul(Rr,Qr)|0,er=Math.imul(Rr,rn),Zt=Zt+Math.imul(xr,ln)|0,Xt=Xt+Math.imul(xr,vn)|0,Xt=Xt+Math.imul(Mr,ln)|0,er=er+Math.imul(Mr,vn)|0,Zt=Zt+Math.imul(br,gn)|0,Xt=Xt+Math.imul(br,xn)|0,Xt=Xt+Math.imul(ar,gn)|0,er=er+Math.imul(ar,xn)|0,Zt=Zt+Math.imul(ir,fn)|0,Xt=Xt+Math.imul(ir,pn)|0,Xt=Xt+Math.imul(dr,fn)|0,er=er+Math.imul(dr,pn)|0,Zt=Zt+Math.imul(or,Bn)|0,Xt=Xt+Math.imul(or,Kr)|0,Xt=Xt+Math.imul(rr,Bn)|0,er=er+Math.imul(rr,Kr)|0;var So=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(So>>>26)|0,So&=67108863,Zt=Math.imul(qr,Qr),Xt=Math.imul(qr,rn),Xt=Xt+Math.imul(Hr,Qr)|0,er=Math.imul(Hr,rn),Zt=Zt+Math.imul(Ir,ln)|0,Xt=Xt+Math.imul(Ir,vn)|0,Xt=Xt+Math.imul(Rr,ln)|0,er=er+Math.imul(Rr,vn)|0,Zt=Zt+Math.imul(xr,gn)|0,Xt=Xt+Math.imul(xr,xn)|0,Xt=Xt+Math.imul(Mr,gn)|0,er=er+Math.imul(Mr,xn)|0,Zt=Zt+Math.imul(br,fn)|0,Xt=Xt+Math.imul(br,pn)|0,Xt=Xt+Math.imul(ar,fn)|0,er=er+Math.imul(ar,pn)|0,Zt=Zt+Math.imul(ir,Bn)|0,Xt=Xt+Math.imul(ir,Kr)|0,Xt=Xt+Math.imul(dr,Bn)|0,er=er+Math.imul(dr,Kr)|0,Zt=Zt+Math.imul(or,Pr)|0,Xt=Xt+Math.imul(or,an)|0,Xt=Xt+Math.imul(rr,Pr)|0,er=er+Math.imul(rr,an)|0;var ko=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(ko>>>26)|0,ko&=67108863,Zt=Math.imul($r,Qr),Xt=Math.imul($r,rn),Xt=Xt+Math.imul(yr,Qr)|0,er=Math.imul(yr,rn),Zt=Zt+Math.imul(qr,ln)|0,Xt=Xt+Math.imul(qr,vn)|0,Xt=Xt+Math.imul(Hr,ln)|0,er=er+Math.imul(Hr,vn)|0,Zt=Zt+Math.imul(Ir,gn)|0,Xt=Xt+Math.imul(Ir,xn)|0,Xt=Xt+Math.imul(Rr,gn)|0,er=er+Math.imul(Rr,xn)|0,Zt=Zt+Math.imul(xr,fn)|0,Xt=Xt+Math.imul(xr,pn)|0,Xt=Xt+Math.imul(Mr,fn)|0,er=er+Math.imul(Mr,pn)|0,Zt=Zt+Math.imul(br,Bn)|0,Xt=Xt+Math.imul(br,Kr)|0,Xt=Xt+Math.imul(ar,Bn)|0,er=er+Math.imul(ar,Kr)|0,Zt=Zt+Math.imul(ir,Pr)|0,Xt=Xt+Math.imul(ir,an)|0,Xt=Xt+Math.imul(dr,Pr)|0,er=er+Math.imul(dr,an)|0,Zt=Zt+Math.imul(or,Mn)|0,Xt=Xt+Math.imul(or,An)|0,Xt=Xt+Math.imul(rr,Mn)|0,er=er+Math.imul(rr,An)|0;var us=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(us>>>26)|0,us&=67108863,Zt=Math.imul(Dr,Qr),Xt=Math.imul(Dr,rn),Xt=Xt+Math.imul(Fr,Qr)|0,er=Math.imul(Fr,rn),Zt=Zt+Math.imul($r,ln)|0,Xt=Xt+Math.imul($r,vn)|0,Xt=Xt+Math.imul(yr,ln)|0,er=er+Math.imul(yr,vn)|0,Zt=Zt+Math.imul(qr,gn)|0,Xt=Xt+Math.imul(qr,xn)|0,Xt=Xt+Math.imul(Hr,gn)|0,er=er+Math.imul(Hr,xn)|0,Zt=Zt+Math.imul(Ir,fn)|0,Xt=Xt+Math.imul(Ir,pn)|0,Xt=Xt+Math.imul(Rr,fn)|0,er=er+Math.imul(Rr,pn)|0,Zt=Zt+Math.imul(xr,Bn)|0,Xt=Xt+Math.imul(xr,Kr)|0,Xt=Xt+Math.imul(Mr,Bn)|0,er=er+Math.imul(Mr,Kr)|0,Zt=Zt+Math.imul(br,Pr)|0,Xt=Xt+Math.imul(br,an)|0,Xt=Xt+Math.imul(ar,Pr)|0,er=er+Math.imul(ar,an)|0,Zt=Zt+Math.imul(ir,Mn)|0,Xt=Xt+Math.imul(ir,An)|0,Xt=Xt+Math.imul(dr,Mn)|0,er=er+Math.imul(dr,An)|0,Zt=Zt+Math.imul(or,Cn)|0,Xt=Xt+Math.imul(or,kn)|0,Xt=Xt+Math.imul(rr,Cn)|0,er=er+Math.imul(rr,kn)|0;var Jo=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Jo>>>26)|0,Jo&=67108863,Zt=Math.imul(Gr,Qr),Xt=Math.imul(Gr,rn),Xt=Xt+Math.imul(Jr,Qr)|0,er=Math.imul(Jr,rn),Zt=Zt+Math.imul(Dr,ln)|0,Xt=Xt+Math.imul(Dr,vn)|0,Xt=Xt+Math.imul(Fr,ln)|0,er=er+Math.imul(Fr,vn)|0,Zt=Zt+Math.imul($r,gn)|0,Xt=Xt+Math.imul($r,xn)|0,Xt=Xt+Math.imul(yr,gn)|0,er=er+Math.imul(yr,xn)|0,Zt=Zt+Math.imul(qr,fn)|0,Xt=Xt+Math.imul(qr,pn)|0,Xt=Xt+Math.imul(Hr,fn)|0,er=er+Math.imul(Hr,pn)|0,Zt=Zt+Math.imul(Ir,Bn)|0,Xt=Xt+Math.imul(Ir,Kr)|0,Xt=Xt+Math.imul(Rr,Bn)|0,er=er+Math.imul(Rr,Kr)|0,Zt=Zt+Math.imul(xr,Pr)|0,Xt=Xt+Math.imul(xr,an)|0,Xt=Xt+Math.imul(Mr,Pr)|0,er=er+Math.imul(Mr,an)|0,Zt=Zt+Math.imul(br,Mn)|0,Xt=Xt+Math.imul(br,An)|0,Xt=Xt+Math.imul(ar,Mn)|0,er=er+Math.imul(ar,An)|0,Zt=Zt+Math.imul(ir,Cn)|0,Xt=Xt+Math.imul(ir,kn)|0,Xt=Xt+Math.imul(dr,Cn)|0,er=er+Math.imul(dr,kn)|0,Zt=Zt+Math.imul(or,Gn)|0,Xt=Xt+Math.imul(or,Un)|0,Xt=Xt+Math.imul(rr,Gn)|0,er=er+Math.imul(rr,Un)|0;var go=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(go>>>26)|0,go&=67108863,Zt=Math.imul(Zr,Qr),Xt=Math.imul(Zr,rn),Xt=Xt+Math.imul(Xr,Qr)|0,er=Math.imul(Xr,rn),Zt=Zt+Math.imul(Gr,ln)|0,Xt=Xt+Math.imul(Gr,vn)|0,Xt=Xt+Math.imul(Jr,ln)|0,er=er+Math.imul(Jr,vn)|0,Zt=Zt+Math.imul(Dr,gn)|0,Xt=Xt+Math.imul(Dr,xn)|0,Xt=Xt+Math.imul(Fr,gn)|0,er=er+Math.imul(Fr,xn)|0,Zt=Zt+Math.imul($r,fn)|0,Xt=Xt+Math.imul($r,pn)|0,Xt=Xt+Math.imul(yr,fn)|0,er=er+Math.imul(yr,pn)|0,Zt=Zt+Math.imul(qr,Bn)|0,Xt=Xt+Math.imul(qr,Kr)|0,Xt=Xt+Math.imul(Hr,Bn)|0,er=er+Math.imul(Hr,Kr)|0,Zt=Zt+Math.imul(Ir,Pr)|0,Xt=Xt+Math.imul(Ir,an)|0,Xt=Xt+Math.imul(Rr,Pr)|0,er=er+Math.imul(Rr,an)|0,Zt=Zt+Math.imul(xr,Mn)|0,Xt=Xt+Math.imul(xr,An)|0,Xt=Xt+Math.imul(Mr,Mn)|0,er=er+Math.imul(Mr,An)|0,Zt=Zt+Math.imul(br,Cn)|0,Xt=Xt+Math.imul(br,kn)|0,Xt=Xt+Math.imul(ar,Cn)|0,er=er+Math.imul(ar,kn)|0,Zt=Zt+Math.imul(ir,Gn)|0,Xt=Xt+Math.imul(ir,Un)|0,Xt=Xt+Math.imul(dr,Gn)|0,er=er+Math.imul(dr,Un)|0,Zt=Zt+Math.imul(or,In)|0,Xt=Xt+Math.imul(or,Kn)|0,Xt=Xt+Math.imul(rr,In)|0,er=er+Math.imul(rr,Kn)|0;var $o=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+($o>>>26)|0,$o&=67108863,Zt=Math.imul(Zr,ln),Xt=Math.imul(Zr,vn),Xt=Xt+Math.imul(Xr,ln)|0,er=Math.imul(Xr,vn),Zt=Zt+Math.imul(Gr,gn)|0,Xt=Xt+Math.imul(Gr,xn)|0,Xt=Xt+Math.imul(Jr,gn)|0,er=er+Math.imul(Jr,xn)|0,Zt=Zt+Math.imul(Dr,fn)|0,Xt=Xt+Math.imul(Dr,pn)|0,Xt=Xt+Math.imul(Fr,fn)|0,er=er+Math.imul(Fr,pn)|0,Zt=Zt+Math.imul($r,Bn)|0,Xt=Xt+Math.imul($r,Kr)|0,Xt=Xt+Math.imul(yr,Bn)|0,er=er+Math.imul(yr,Kr)|0,Zt=Zt+Math.imul(qr,Pr)|0,Xt=Xt+Math.imul(qr,an)|0,Xt=Xt+Math.imul(Hr,Pr)|0,er=er+Math.imul(Hr,an)|0,Zt=Zt+Math.imul(Ir,Mn)|0,Xt=Xt+Math.imul(Ir,An)|0,Xt=Xt+Math.imul(Rr,Mn)|0,er=er+Math.imul(Rr,An)|0,Zt=Zt+Math.imul(xr,Cn)|0,Xt=Xt+Math.imul(xr,kn)|0,Xt=Xt+Math.imul(Mr,Cn)|0,er=er+Math.imul(Mr,kn)|0,Zt=Zt+Math.imul(br,Gn)|0,Xt=Xt+Math.imul(br,Un)|0,Xt=Xt+Math.imul(ar,Gn)|0,er=er+Math.imul(ar,Un)|0,Zt=Zt+Math.imul(ir,In)|0,Xt=Xt+Math.imul(ir,Kn)|0,Xt=Xt+Math.imul(dr,In)|0,er=er+Math.imul(dr,Kn)|0;var vo=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(vo>>>26)|0,vo&=67108863,Zt=Math.imul(Zr,gn),Xt=Math.imul(Zr,xn),Xt=Xt+Math.imul(Xr,gn)|0,er=Math.imul(Xr,xn),Zt=Zt+Math.imul(Gr,fn)|0,Xt=Xt+Math.imul(Gr,pn)|0,Xt=Xt+Math.imul(Jr,fn)|0,er=er+Math.imul(Jr,pn)|0,Zt=Zt+Math.imul(Dr,Bn)|0,Xt=Xt+Math.imul(Dr,Kr)|0,Xt=Xt+Math.imul(Fr,Bn)|0,er=er+Math.imul(Fr,Kr)|0,Zt=Zt+Math.imul($r,Pr)|0,Xt=Xt+Math.imul($r,an)|0,Xt=Xt+Math.imul(yr,Pr)|0,er=er+Math.imul(yr,an)|0,Zt=Zt+Math.imul(qr,Mn)|0,Xt=Xt+Math.imul(qr,An)|0,Xt=Xt+Math.imul(Hr,Mn)|0,er=er+Math.imul(Hr,An)|0,Zt=Zt+Math.imul(Ir,Cn)|0,Xt=Xt+Math.imul(Ir,kn)|0,Xt=Xt+Math.imul(Rr,Cn)|0,er=er+Math.imul(Rr,kn)|0,Zt=Zt+Math.imul(xr,Gn)|0,Xt=Xt+Math.imul(xr,Un)|0,Xt=Xt+Math.imul(Mr,Gn)|0,er=er+Math.imul(Mr,Un)|0,Zt=Zt+Math.imul(br,In)|0,Xt=Xt+Math.imul(br,Kn)|0,Xt=Xt+Math.imul(ar,In)|0,er=er+Math.imul(ar,Kn)|0;var Go=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Go>>>26)|0,Go&=67108863,Zt=Math.imul(Zr,fn),Xt=Math.imul(Zr,pn),Xt=Xt+Math.imul(Xr,fn)|0,er=Math.imul(Xr,pn),Zt=Zt+Math.imul(Gr,Bn)|0,Xt=Xt+Math.imul(Gr,Kr)|0,Xt=Xt+Math.imul(Jr,Bn)|0,er=er+Math.imul(Jr,Kr)|0,Zt=Zt+Math.imul(Dr,Pr)|0,Xt=Xt+Math.imul(Dr,an)|0,Xt=Xt+Math.imul(Fr,Pr)|0,er=er+Math.imul(Fr,an)|0,Zt=Zt+Math.imul($r,Mn)|0,Xt=Xt+Math.imul($r,An)|0,Xt=Xt+Math.imul(yr,Mn)|0,er=er+Math.imul(yr,An)|0,Zt=Zt+Math.imul(qr,Cn)|0,Xt=Xt+Math.imul(qr,kn)|0,Xt=Xt+Math.imul(Hr,Cn)|0,er=er+Math.imul(Hr,kn)|0,Zt=Zt+Math.imul(Ir,Gn)|0,Xt=Xt+Math.imul(Ir,Un)|0,Xt=Xt+Math.imul(Rr,Gn)|0,er=er+Math.imul(Rr,Un)|0,Zt=Zt+Math.imul(xr,In)|0,Xt=Xt+Math.imul(xr,Kn)|0,Xt=Xt+Math.imul(Mr,In)|0,er=er+Math.imul(Mr,Kn)|0;var Wo=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,Zt=Math.imul(Zr,Bn),Xt=Math.imul(Zr,Kr),Xt=Xt+Math.imul(Xr,Bn)|0,er=Math.imul(Xr,Kr),Zt=Zt+Math.imul(Gr,Pr)|0,Xt=Xt+Math.imul(Gr,an)|0,Xt=Xt+Math.imul(Jr,Pr)|0,er=er+Math.imul(Jr,an)|0,Zt=Zt+Math.imul(Dr,Mn)|0,Xt=Xt+Math.imul(Dr,An)|0,Xt=Xt+Math.imul(Fr,Mn)|0,er=er+Math.imul(Fr,An)|0,Zt=Zt+Math.imul($r,Cn)|0,Xt=Xt+Math.imul($r,kn)|0,Xt=Xt+Math.imul(yr,Cn)|0,er=er+Math.imul(yr,kn)|0,Zt=Zt+Math.imul(qr,Gn)|0,Xt=Xt+Math.imul(qr,Un)|0,Xt=Xt+Math.imul(Hr,Gn)|0,er=er+Math.imul(Hr,Un)|0,Zt=Zt+Math.imul(Ir,In)|0,Xt=Xt+Math.imul(Ir,Kn)|0,Xt=Xt+Math.imul(Rr,In)|0,er=er+Math.imul(Rr,Kn)|0;var cs=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(cs>>>26)|0,cs&=67108863,Zt=Math.imul(Zr,Pr),Xt=Math.imul(Zr,an),Xt=Xt+Math.imul(Xr,Pr)|0,er=Math.imul(Xr,an),Zt=Zt+Math.imul(Gr,Mn)|0,Xt=Xt+Math.imul(Gr,An)|0,Xt=Xt+Math.imul(Jr,Mn)|0,er=er+Math.imul(Jr,An)|0,Zt=Zt+Math.imul(Dr,Cn)|0,Xt=Xt+Math.imul(Dr,kn)|0,Xt=Xt+Math.imul(Fr,Cn)|0,er=er+Math.imul(Fr,kn)|0,Zt=Zt+Math.imul($r,Gn)|0,Xt=Xt+Math.imul($r,Un)|0,Xt=Xt+Math.imul(yr,Gn)|0,er=er+Math.imul(yr,Un)|0,Zt=Zt+Math.imul(qr,In)|0,Xt=Xt+Math.imul(qr,Kn)|0,Xt=Xt+Math.imul(Hr,In)|0,er=er+Math.imul(Hr,Kn)|0;var rs=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(rs>>>26)|0,rs&=67108863,Zt=Math.imul(Zr,Mn),Xt=Math.imul(Zr,An),Xt=Xt+Math.imul(Xr,Mn)|0,er=Math.imul(Xr,An),Zt=Zt+Math.imul(Gr,Cn)|0,Xt=Xt+Math.imul(Gr,kn)|0,Xt=Xt+Math.imul(Jr,Cn)|0,er=er+Math.imul(Jr,kn)|0,Zt=Zt+Math.imul(Dr,Gn)|0,Xt=Xt+Math.imul(Dr,Un)|0,Xt=Xt+Math.imul(Fr,Gn)|0,er=er+Math.imul(Fr,Un)|0,Zt=Zt+Math.imul($r,In)|0,Xt=Xt+Math.imul($r,Kn)|0,Xt=Xt+Math.imul(yr,In)|0,er=er+Math.imul(yr,Kn)|0;var xs=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(xs>>>26)|0,xs&=67108863,Zt=Math.imul(Zr,Cn),Xt=Math.imul(Zr,kn),Xt=Xt+Math.imul(Xr,Cn)|0,er=Math.imul(Xr,kn),Zt=Zt+Math.imul(Gr,Gn)|0,Xt=Xt+Math.imul(Gr,Un)|0,Xt=Xt+Math.imul(Jr,Gn)|0,er=er+Math.imul(Jr,Un)|0,Zt=Zt+Math.imul(Dr,In)|0,Xt=Xt+Math.imul(Dr,Kn)|0,Xt=Xt+Math.imul(Fr,In)|0,er=er+Math.imul(Fr,Kn)|0;var Es=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Es>>>26)|0,Es&=67108863,Zt=Math.imul(Zr,Gn),Xt=Math.imul(Zr,Un),Xt=Xt+Math.imul(Xr,Gn)|0,er=Math.imul(Xr,Un),Zt=Zt+Math.imul(Gr,In)|0,Xt=Xt+Math.imul(Gr,Kn)|0,Xt=Xt+Math.imul(Jr,In)|0,er=er+Math.imul(Jr,Kn)|0;var Os=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Os>>>26)|0,Os&=67108863,Zt=Math.imul(Zr,In),Xt=Math.imul(Zr,Kn),Xt=Xt+Math.imul(Xr,In)|0,er=Math.imul(Xr,Kn);var Ds=(Gt+Zt|0)+((Xt&8191)<<13)|0;return Gt=(er+(Xt>>>13)|0)+(Ds>>>26)|0,Ds&=67108863,Ht[0]=Wn,Ht[1]=ao,Ht[2]=_i,Ht[3]=ho,Ht[4]=So,Ht[5]=ko,Ht[6]=us,Ht[7]=Jo,Ht[8]=go,Ht[9]=$o,Ht[10]=vo,Ht[11]=Go,Ht[12]=Wo,Ht[13]=cs,Ht[14]=rs,Ht[15]=xs,Ht[16]=Es,Ht[17]=Os,Ht[18]=Ds,Gt!==0&&(Ht[19]=Gt,Wt.length++),Wt};Math.imul||(Ct=Tt);function It(Ft,$t,jt){jt.negative=$t.negative^Ft.negative,jt.length=Ft.length+$t.length;for(var Wt=0,Ut=0,Vt=0;Vt<jt.length-1;Vt++){var Ht=Ut;Ut=0;for(var Gt=Wt&67108863,Zt=Math.min(Vt,$t.length-1),Xt=Math.max(0,Vt-Ft.length+1);Xt<=Zt;Xt++){var er=Vt-Xt,nr=Ft.words[er]|0,or=$t.words[Xt]|0,rr=nr*or,cr=rr&67108863;Ht=Ht+(rr/67108864|0)|0,cr=cr+Gt|0,Gt=cr&67108863,Ht=Ht+(cr>>>26)|0,Ut+=Ht>>>26,Ht&=67108863}jt.words[Vt]=Gt,Wt=Ht,Ht=Ut}return Wt!==0?jt.words[Vt]=Wt:jt.length--,jt._strip()}function Dt(Ft,$t,jt){return It(Ft,$t,jt)}ut.prototype.mulTo=function($t,jt){var Wt,Ut=this.length+$t.length;return this.length===10&&$t.length===10?Wt=Ct(this,$t,jt):Ut<63?Wt=Tt(this,$t,jt):Ut<1024?Wt=It(this,$t,jt):Wt=Dt(this,$t,jt),Wt},ut.prototype.mul=function($t){var jt=new ut(null);return jt.words=new Array(this.length+$t.length),this.mulTo($t,jt)},ut.prototype.mulf=function($t){var jt=new ut(null);return jt.words=new Array(this.length+$t.length),Dt(this,$t,jt)},ut.prototype.imul=function($t){return this.clone().mulTo($t,this)},ut.prototype.imuln=function($t){var jt=$t<0;jt&&($t=-$t),nt(typeof $t=="number"),nt($t<67108864);for(var Wt=0,Ut=0;Ut<this.length;Ut++){var Vt=(this.words[Ut]|0)*$t,Ht=(Vt&67108863)+(Wt&67108863);Wt>>=26,Wt+=Vt/67108864|0,Wt+=Ht>>>26,this.words[Ut]=Ht&67108863}return Wt!==0&&(this.words[Ut]=Wt,this.length++),jt?this.ineg():this},ut.prototype.muln=function($t){return this.clone().imuln($t)},ut.prototype.sqr=function(){return this.mul(this)},ut.prototype.isqr=function(){return this.imul(this.clone())},ut.prototype.pow=function($t){var jt=zt($t);if(jt.length===0)return new ut(1);for(var Wt=this,Ut=0;Ut<jt.length&&jt[Ut]===0;Ut++,Wt=Wt.sqr());if(++Ut<jt.length)for(var Vt=Wt.sqr();Ut<jt.length;Ut++,Vt=Vt.sqr())jt[Ut]!==0&&(Wt=Wt.mul(Vt));return Wt},ut.prototype.iushln=function($t){nt(typeof $t=="number"&&$t>=0);var jt=$t%26,Wt=($t-jt)/26,Ut=67108863>>>26-jt<<26-jt,Vt;if(jt!==0){var Ht=0;for(Vt=0;Vt<this.length;Vt++){var Gt=this.words[Vt]&Ut,Zt=(this.words[Vt]|0)-Gt<<jt;this.words[Vt]=Zt|Ht,Ht=Gt>>>26-jt}Ht&&(this.words[Vt]=Ht,this.length++)}if(Wt!==0){for(Vt=this.length-1;Vt>=0;Vt--)this.words[Vt+Wt]=this.words[Vt];for(Vt=0;Vt<Wt;Vt++)this.words[Vt]=0;this.length+=Wt}return this._strip()},ut.prototype.ishln=function($t){return nt(this.negative===0),this.iushln($t)},ut.prototype.iushrn=function($t,jt,Wt){nt(typeof $t=="number"&&$t>=0);var Ut;jt?Ut=(jt-jt%26)/26:Ut=0;var Vt=$t%26,Ht=Math.min(($t-Vt)/26,this.length),Gt=67108863^67108863>>>Vt<<Vt,Zt=Wt;if(Ut-=Ht,Ut=Math.max(0,Ut),Zt){for(var Xt=0;Xt<Ht;Xt++)Zt.words[Xt]=this.words[Xt];Zt.length=Ht}if(Ht!==0)if(this.length>Ht)for(this.length-=Ht,Xt=0;Xt<this.length;Xt++)this.words[Xt]=this.words[Xt+Ht];else this.words[0]=0,this.length=1;var er=0;for(Xt=this.length-1;Xt>=0&&(er!==0||Xt>=Ut);Xt--){var nr=this.words[Xt]|0;this.words[Xt]=er<<26-Vt|nr>>>Vt,er=nr&Gt}return Zt&&er!==0&&(Zt.words[Zt.length++]=er),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},ut.prototype.ishrn=function($t,jt,Wt){return nt(this.negative===0),this.iushrn($t,jt,Wt)},ut.prototype.shln=function($t){return this.clone().ishln($t)},ut.prototype.ushln=function($t){return this.clone().iushln($t)},ut.prototype.shrn=function($t){return this.clone().ishrn($t)},ut.prototype.ushrn=function($t){return this.clone().iushrn($t)},ut.prototype.testn=function($t){nt(typeof $t=="number"&&$t>=0);var jt=$t%26,Wt=($t-jt)/26,Ut=1<<jt;if(this.length<=Wt)return!1;var Vt=this.words[Wt];return!!(Vt&Ut)},ut.prototype.imaskn=function($t){nt(typeof $t=="number"&&$t>=0);var jt=$t%26,Wt=($t-jt)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Wt)return this;if(jt!==0&&Wt++,this.length=Math.min(Wt,this.length),jt!==0){var Ut=67108863^67108863>>>jt<<jt;this.words[this.length-1]&=Ut}return this._strip()},ut.prototype.maskn=function($t){return this.clone().imaskn($t)},ut.prototype.iaddn=function($t){return nt(typeof $t=="number"),nt($t<67108864),$t<0?this.isubn(-$t):this.negative!==0?this.length===1&&(this.words[0]|0)<=$t?(this.words[0]=$t-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn($t),this.negative=1,this):this._iaddn($t)},ut.prototype._iaddn=function($t){this.words[0]+=$t;for(var jt=0;jt<this.length&&this.words[jt]>=67108864;jt++)this.words[jt]-=67108864,jt===this.length-1?this.words[jt+1]=1:this.words[jt+1]++;return this.length=Math.max(this.length,jt+1),this},ut.prototype.isubn=function($t){if(nt(typeof $t=="number"),nt($t<67108864),$t<0)return this.iaddn(-$t);if(this.negative!==0)return this.negative=0,this.iaddn($t),this.negative=1,this;if(this.words[0]-=$t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var jt=0;jt<this.length&&this.words[jt]<0;jt++)this.words[jt]+=67108864,this.words[jt+1]-=1;return this._strip()},ut.prototype.addn=function($t){return this.clone().iaddn($t)},ut.prototype.subn=function($t){return this.clone().isubn($t)},ut.prototype.iabs=function(){return this.negative=0,this},ut.prototype.abs=function(){return this.clone().iabs()},ut.prototype._ishlnsubmul=function($t,jt,Wt){var Ut=$t.length+Wt,Vt;this._expand(Ut);var Ht,Gt=0;for(Vt=0;Vt<$t.length;Vt++){Ht=(this.words[Vt+Wt]|0)+Gt;var Zt=($t.words[Vt]|0)*jt;Ht-=Zt&67108863,Gt=(Ht>>26)-(Zt/67108864|0),this.words[Vt+Wt]=Ht&67108863}for(;Vt<this.length-Wt;Vt++)Ht=(this.words[Vt+Wt]|0)+Gt,Gt=Ht>>26,this.words[Vt+Wt]=Ht&67108863;if(Gt===0)return this._strip();for(nt(Gt===-1),Gt=0,Vt=0;Vt<this.length;Vt++)Ht=-(this.words[Vt]|0)+Gt,Gt=Ht>>26,this.words[Vt]=Ht&67108863;return this.negative=1,this._strip()},ut.prototype._wordDiv=function($t,jt){var Wt=this.length-$t.length,Ut=this.clone(),Vt=$t,Ht=Vt.words[Vt.length-1]|0,Gt=this._countBits(Ht);Wt=26-Gt,Wt!==0&&(Vt=Vt.ushln(Wt),Ut.iushln(Wt),Ht=Vt.words[Vt.length-1]|0);var Zt=Ut.length-Vt.length,Xt;if(jt!=="mod"){Xt=new ut(null),Xt.length=Zt+1,Xt.words=new Array(Xt.length);for(var er=0;er<Xt.length;er++)Xt.words[er]=0}var nr=Ut.clone()._ishlnsubmul(Vt,1,Zt);nr.negative===0&&(Ut=nr,Xt&&(Xt.words[Zt]=1));for(var or=Zt-1;or>=0;or--){var rr=(Ut.words[Vt.length+or]|0)*67108864+(Ut.words[Vt.length+or-1]|0);for(rr=Math.min(rr/Ht|0,67108863),Ut._ishlnsubmul(Vt,rr,or);Ut.negative!==0;)rr--,Ut.negative=0,Ut._ishlnsubmul(Vt,1,or),Ut.isZero()||(Ut.negative^=1);Xt&&(Xt.words[or]=rr)}return Xt&&Xt._strip(),Ut._strip(),jt!=="div"&&Wt!==0&&Ut.iushrn(Wt),{div:Xt||null,mod:Ut}},ut.prototype.divmod=function($t,jt,Wt){if(nt(!$t.isZero()),this.isZero())return{div:new ut(0),mod:new ut(0)};var Ut,Vt,Ht;return this.negative!==0&&$t.negative===0?(Ht=this.neg().divmod($t,jt),jt!=="mod"&&(Ut=Ht.div.neg()),jt!=="div"&&(Vt=Ht.mod.neg(),Wt&&Vt.negative!==0&&Vt.iadd($t)),{div:Ut,mod:Vt}):this.negative===0&&$t.negative!==0?(Ht=this.divmod($t.neg(),jt),jt!=="mod"&&(Ut=Ht.div.neg()),{div:Ut,mod:Ht.mod}):this.negative&$t.negative?(Ht=this.neg().divmod($t.neg(),jt),jt!=="div"&&(Vt=Ht.mod.neg(),Wt&&Vt.negative!==0&&Vt.isub($t)),{div:Ht.div,mod:Vt}):$t.length>this.length||this.cmp($t)<0?{div:new ut(0),mod:this}:$t.length===1?jt==="div"?{div:this.divn($t.words[0]),mod:null}:jt==="mod"?{div:null,mod:new ut(this.modrn($t.words[0]))}:{div:this.divn($t.words[0]),mod:new ut(this.modrn($t.words[0]))}:this._wordDiv($t,jt)},ut.prototype.div=function($t){return this.divmod($t,"div",!1).div},ut.prototype.mod=function($t){return this.divmod($t,"mod",!1).mod},ut.prototype.umod=function($t){return this.divmod($t,"mod",!0).mod},ut.prototype.divRound=function($t){var jt=this.divmod($t);if(jt.mod.isZero())return jt.div;var Wt=jt.div.negative!==0?jt.mod.isub($t):jt.mod,Ut=$t.ushrn(1),Vt=$t.andln(1),Ht=Wt.cmp(Ut);return Ht<0||Vt===1&&Ht===0?jt.div:jt.div.negative!==0?jt.div.isubn(1):jt.div.iaddn(1)},ut.prototype.modrn=function($t){var jt=$t<0;jt&&($t=-$t),nt($t<=67108863);for(var Wt=(1<<26)%$t,Ut=0,Vt=this.length-1;Vt>=0;Vt--)Ut=(Wt*Ut+(this.words[Vt]|0))%$t;return jt?-Ut:Ut},ut.prototype.modn=function($t){return this.modrn($t)},ut.prototype.idivn=function($t){var jt=$t<0;jt&&($t=-$t),nt($t<=67108863);for(var Wt=0,Ut=this.length-1;Ut>=0;Ut--){var Vt=(this.words[Ut]|0)+Wt*67108864;this.words[Ut]=Vt/$t|0,Wt=Vt%$t}return this._strip(),jt?this.ineg():this},ut.prototype.divn=function($t){return this.clone().idivn($t)},ut.prototype.egcd=function($t){nt($t.negative===0),nt(!$t.isZero());var jt=this,Wt=$t.clone();jt.negative!==0?jt=jt.umod($t):jt=jt.clone();for(var Ut=new ut(1),Vt=new ut(0),Ht=new ut(0),Gt=new ut(1),Zt=0;jt.isEven()&&Wt.isEven();)jt.iushrn(1),Wt.iushrn(1),++Zt;for(var Xt=Wt.clone(),er=jt.clone();!jt.isZero();){for(var nr=0,or=1;!(jt.words[0]&or)&&nr<26;++nr,or<<=1);if(nr>0)for(jt.iushrn(nr);nr-- >0;)(Ut.isOdd()||Vt.isOdd())&&(Ut.iadd(Xt),Vt.isub(er)),Ut.iushrn(1),Vt.iushrn(1);for(var rr=0,cr=1;!(Wt.words[0]&cr)&&rr<26;++rr,cr<<=1);if(rr>0)for(Wt.iushrn(rr);rr-- >0;)(Ht.isOdd()||Gt.isOdd())&&(Ht.iadd(Xt),Gt.isub(er)),Ht.iushrn(1),Gt.iushrn(1);jt.cmp(Wt)>=0?(jt.isub(Wt),Ut.isub(Ht),Vt.isub(Gt)):(Wt.isub(jt),Ht.isub(Ut),Gt.isub(Vt))}return{a:Ht,b:Gt,gcd:Wt.iushln(Zt)}},ut.prototype._invmp=function($t){nt($t.negative===0),nt(!$t.isZero());var jt=this,Wt=$t.clone();jt.negative!==0?jt=jt.umod($t):jt=jt.clone();for(var Ut=new ut(1),Vt=new ut(0),Ht=Wt.clone();jt.cmpn(1)>0&&Wt.cmpn(1)>0;){for(var Gt=0,Zt=1;!(jt.words[0]&Zt)&&Gt<26;++Gt,Zt<<=1);if(Gt>0)for(jt.iushrn(Gt);Gt-- >0;)Ut.isOdd()&&Ut.iadd(Ht),Ut.iushrn(1);for(var Xt=0,er=1;!(Wt.words[0]&er)&&Xt<26;++Xt,er<<=1);if(Xt>0)for(Wt.iushrn(Xt);Xt-- >0;)Vt.isOdd()&&Vt.iadd(Ht),Vt.iushrn(1);jt.cmp(Wt)>=0?(jt.isub(Wt),Ut.isub(Vt)):(Wt.isub(jt),Vt.isub(Ut))}var nr;return jt.cmpn(1)===0?nr=Ut:nr=Vt,nr.cmpn(0)<0&&nr.iadd($t),nr},ut.prototype.gcd=function($t){if(this.isZero())return $t.abs();if($t.isZero())return this.abs();var jt=this.clone(),Wt=$t.clone();jt.negative=0,Wt.negative=0;for(var Ut=0;jt.isEven()&&Wt.isEven();Ut++)jt.iushrn(1),Wt.iushrn(1);do{for(;jt.isEven();)jt.iushrn(1);for(;Wt.isEven();)Wt.iushrn(1);var Vt=jt.cmp(Wt);if(Vt<0){var Ht=jt;jt=Wt,Wt=Ht}else if(Vt===0||Wt.cmpn(1)===0)break;jt.isub(Wt)}while(!0);return Wt.iushln(Ut)},ut.prototype.invm=function($t){return this.egcd($t).a.umod($t)},ut.prototype.isEven=function(){return(this.words[0]&1)===0},ut.prototype.isOdd=function(){return(this.words[0]&1)===1},ut.prototype.andln=function($t){return this.words[0]&$t},ut.prototype.bincn=function($t){nt(typeof $t=="number");var jt=$t%26,Wt=($t-jt)/26,Ut=1<<jt;if(this.length<=Wt)return this._expand(Wt+1),this.words[Wt]|=Ut,this;for(var Vt=Ut,Ht=Wt;Vt!==0&&Ht<this.length;Ht++){var Gt=this.words[Ht]|0;Gt+=Vt,Vt=Gt>>>26,Gt&=67108863,this.words[Ht]=Gt}return Vt!==0&&(this.words[Ht]=Vt,this.length++),this},ut.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ut.prototype.cmpn=function($t){var jt=$t<0;if(this.negative!==0&&!jt)return-1;if(this.negative===0&&jt)return 1;this._strip();var Wt;if(this.length>1)Wt=1;else{jt&&($t=-$t),nt($t<=67108863,"Number is too big");var Ut=this.words[0]|0;Wt=Ut===$t?0:Ut<$t?-1:1}return this.negative!==0?-Wt|0:Wt},ut.prototype.cmp=function($t){if(this.negative!==0&&$t.negative===0)return-1;if(this.negative===0&&$t.negative!==0)return 1;var jt=this.ucmp($t);return this.negative!==0?-jt|0:jt},ut.prototype.ucmp=function($t){if(this.length>$t.length)return 1;if(this.length<$t.length)return-1;for(var jt=0,Wt=this.length-1;Wt>=0;Wt--){var Ut=this.words[Wt]|0,Vt=$t.words[Wt]|0;if(Ut!==Vt){Ut<Vt?jt=-1:Ut>Vt&&(jt=1);break}}return jt},ut.prototype.gtn=function($t){return this.cmpn($t)===1},ut.prototype.gt=function($t){return this.cmp($t)===1},ut.prototype.gten=function($t){return this.cmpn($t)>=0},ut.prototype.gte=function($t){return this.cmp($t)>=0},ut.prototype.ltn=function($t){return this.cmpn($t)===-1},ut.prototype.lt=function($t){return this.cmp($t)===-1},ut.prototype.lten=function($t){return this.cmpn($t)<=0},ut.prototype.lte=function($t){return this.cmp($t)<=0},ut.prototype.eqn=function($t){return this.cmpn($t)===0},ut.prototype.eq=function($t){return this.cmp($t)===0},ut.red=function($t){return new Qt($t)},ut.prototype.toRed=function($t){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),$t.convertTo(this)._forceRed($t)},ut.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ut.prototype._forceRed=function($t){return this.red=$t,this},ut.prototype.forceRed=function($t){return nt(!this.red,"Already a number in reduction context"),this._forceRed($t)},ut.prototype.redAdd=function($t){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,$t)},ut.prototype.redIAdd=function($t){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,$t)},ut.prototype.redSub=function($t){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,$t)},ut.prototype.redISub=function($t){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,$t)},ut.prototype.redShl=function($t){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,$t)},ut.prototype.redMul=function($t){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,$t),this.red.mul(this,$t)},ut.prototype.redIMul=function($t){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,$t),this.red.imul(this,$t)},ut.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ut.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ut.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ut.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ut.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ut.prototype.redPow=function($t){return nt(this.red&&!$t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,$t)};var kt={k256:null,p224:null,p192:null,p25519:null};function qt(Ft,$t){this.name=Ft,this.p=new ut($t,16),this.n=this.p.bitLength(),this.k=new ut(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}qt.prototype._tmp=function(){var $t=new ut(null);return $t.words=new Array(Math.ceil(this.n/13)),$t},qt.prototype.ireduce=function($t){var jt=$t,Wt;do this.split(jt,this.tmp),jt=this.imulK(jt),jt=jt.iadd(this.tmp),Wt=jt.bitLength();while(Wt>this.n);var Ut=Wt<this.n?-1:jt.ucmp(this.p);return Ut===0?(jt.words[0]=0,jt.length=1):Ut>0?jt.isub(this.p):jt.strip!==void 0?jt.strip():jt._strip(),jt},qt.prototype.split=function($t,jt){$t.iushrn(this.n,0,jt)},qt.prototype.imulK=function($t){return $t.imul(this.k)};function Nt(){qt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}lt(Nt,qt),Nt.prototype.split=function($t,jt){for(var Wt=4194303,Ut=Math.min($t.length,9),Vt=0;Vt<Ut;Vt++)jt.words[Vt]=$t.words[Vt];if(jt.length=Ut,$t.length<=9){$t.words[0]=0,$t.length=1;return}var Ht=$t.words[9];for(jt.words[jt.length++]=Ht&Wt,Vt=10;Vt<$t.length;Vt++){var Gt=$t.words[Vt]|0;$t.words[Vt-10]=(Gt&Wt)<<4|Ht>>>22,Ht=Gt}Ht>>>=22,$t.words[Vt-10]=Ht,Ht===0&&$t.length>10?$t.length-=10:$t.length-=9},Nt.prototype.imulK=function($t){$t.words[$t.length]=0,$t.words[$t.length+1]=0,$t.length+=2;for(var jt=0,Wt=0;Wt<$t.length;Wt++){var Ut=$t.words[Wt]|0;jt+=Ut*977,$t.words[Wt]=jt&67108863,jt=Ut*64+(jt/67108864|0)}return $t.words[$t.length-1]===0&&($t.length--,$t.words[$t.length-1]===0&&$t.length--),$t};function Yt(){qt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}lt(Yt,qt);function Kt(){qt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}lt(Kt,qt);function Jt(){qt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}lt(Jt,qt),Jt.prototype.imulK=function($t){for(var jt=0,Wt=0;Wt<$t.length;Wt++){var Ut=($t.words[Wt]|0)*19+jt,Vt=Ut&67108863;Ut>>>=26,$t.words[Wt]=Vt,jt=Ut}return jt!==0&&($t.words[$t.length++]=jt),$t},ut._prime=function($t){if(kt[$t])return kt[$t];var jt;if($t==="k256")jt=new Nt;else if($t==="p224")jt=new Yt;else if($t==="p192")jt=new Kt;else if($t==="p25519")jt=new Jt;else throw new Error("Unknown prime "+$t);return kt[$t]=jt,jt};function Qt(Ft){if(typeof Ft=="string"){var $t=ut._prime(Ft);this.m=$t.p,this.prime=$t}else nt(Ft.gtn(1),"modulus must be greater than 1"),this.m=Ft,this.prime=null}Qt.prototype._verify1=function($t){nt($t.negative===0,"red works only with positives"),nt($t.red,"red works only with red numbers")},Qt.prototype._verify2=function($t,jt){nt(($t.negative|jt.negative)===0,"red works only with positives"),nt($t.red&&$t.red===jt.red,"red works only with red numbers")},Qt.prototype.imod=function($t){return this.prime?this.prime.ireduce($t)._forceRed(this):(xt($t,$t.umod(this.m)._forceRed(this)),$t)},Qt.prototype.neg=function($t){return $t.isZero()?$t.clone():this.m.sub($t)._forceRed(this)},Qt.prototype.add=function($t,jt){this._verify2($t,jt);var Wt=$t.add(jt);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt._forceRed(this)},Qt.prototype.iadd=function($t,jt){this._verify2($t,jt);var Wt=$t.iadd(jt);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt},Qt.prototype.sub=function($t,jt){this._verify2($t,jt);var Wt=$t.sub(jt);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt._forceRed(this)},Qt.prototype.isub=function($t,jt){this._verify2($t,jt);var Wt=$t.isub(jt);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt},Qt.prototype.shl=function($t,jt){return this._verify1($t),this.imod($t.ushln(jt))},Qt.prototype.imul=function($t,jt){return this._verify2($t,jt),this.imod($t.imul(jt))},Qt.prototype.mul=function($t,jt){return this._verify2($t,jt),this.imod($t.mul(jt))},Qt.prototype.isqr=function($t){return this.imul($t,$t.clone())},Qt.prototype.sqr=function($t){return this.mul($t,$t)},Qt.prototype.sqrt=function($t){if($t.isZero())return $t.clone();var jt=this.m.andln(3);if(nt(jt%2===1),jt===3){var Wt=this.m.add(new ut(1)).iushrn(2);return this.pow($t,Wt)}for(var Ut=this.m.subn(1),Vt=0;!Ut.isZero()&&Ut.andln(1)===0;)Vt++,Ut.iushrn(1);nt(!Ut.isZero());var Ht=new ut(1).toRed(this),Gt=Ht.redNeg(),Zt=this.m.subn(1).iushrn(1),Xt=this.m.bitLength();for(Xt=new ut(2*Xt*Xt).toRed(this);this.pow(Xt,Zt).cmp(Gt)!==0;)Xt.redIAdd(Gt);for(var er=this.pow(Xt,Ut),nr=this.pow($t,Ut.addn(1).iushrn(1)),or=this.pow($t,Ut),rr=Vt;or.cmp(Ht)!==0;){for(var cr=or,ir=0;cr.cmp(Ht)!==0;ir++)cr=cr.redSqr();nt(ir<rr);var dr=this.pow(er,new ut(1).iushln(rr-ir-1));nr=nr.redMul(dr),er=dr.redSqr(),or=or.redMul(er),rr=ir}return nr},Qt.prototype.invm=function($t){var jt=$t._invmp(this.m);return jt.negative!==0?(jt.negative=0,this.imod(jt).redNeg()):this.imod(jt)},Qt.prototype.pow=function($t,jt){if(jt.isZero())return new ut(1).toRed(this);if(jt.cmpn(1)===0)return $t.clone();var Wt=4,Ut=new Array(1<<Wt);Ut[0]=new ut(1).toRed(this),Ut[1]=$t;for(var Vt=2;Vt<Ut.length;Vt++)Ut[Vt]=this.mul(Ut[Vt-1],$t);var Ht=Ut[0],Gt=0,Zt=0,Xt=jt.bitLength()%26;for(Xt===0&&(Xt=26),Vt=jt.length-1;Vt>=0;Vt--){for(var er=jt.words[Vt],nr=Xt-1;nr>=0;nr--){var or=er>>nr&1;if(Ht!==Ut[0]&&(Ht=this.sqr(Ht)),or===0&&Gt===0){Zt=0;continue}Gt<<=1,Gt|=or,Zt++,!(Zt!==Wt&&(Vt!==0||nr!==0))&&(Ht=this.mul(Ht,Ut[Gt]),Zt=0,Gt=0)}Xt=26}return Ht},Qt.prototype.convertTo=function($t){var jt=$t.umod(this.m);return jt===$t?jt.clone():jt},Qt.prototype.convertFrom=function($t){var jt=$t.clone();return jt.red=null,jt},ut.mont=function($t){return new Bt($t)};function Bt(Ft){Qt.call(this,Ft),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ut(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}lt(Bt,Qt),Bt.prototype.convertTo=function($t){return this.imod($t.ushln(this.shift))},Bt.prototype.convertFrom=function($t){var jt=this.imod($t.mul(this.rinv));return jt.red=null,jt},Bt.prototype.imul=function($t,jt){if($t.isZero()||jt.isZero())return $t.words[0]=0,$t.length=1,$t;var Wt=$t.imul(jt),Ut=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Vt=Wt.isub(Ut).iushrn(this.shift),Ht=Vt;return Vt.cmp(this.m)>=0?Ht=Vt.isub(this.m):Vt.cmpn(0)<0&&(Ht=Vt.iadd(this.m)),Ht._forceRed(this)},Bt.prototype.mul=function($t,jt){if($t.isZero()||jt.isZero())return new ut(0)._forceRed(this);var Wt=$t.mul(jt),Ut=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Vt=Wt.isub(Ut).iushrn(this.shift),Ht=Vt;return Vt.cmp(this.m)>=0?Ht=Vt.isub(this.m):Vt.cmpn(0)<0&&(Ht=Vt.iadd(this.m)),Ht._forceRed(this)},Bt.prototype.invm=function($t){var jt=this.imod($t._invmp(this.m).mul(this.r2));return jt._forceRed(this)}})(et,commonjsGlobal$1)})(bn$1);var bnExports$1=bn$1.exports,BN$a=bnExports$1,randomBytes$1=browserExports;function blind(et){var tt=getr(et),rt=tt.toRed(BN$a.mont(et.modulus)).redPow(new BN$a(et.publicExponent)).fromRed();return{blinder:rt,unblinder:tt.invm(et.modulus)}}function getr(et){var tt=et.modulus.byteLength(),rt;do rt=new BN$a(randomBytes$1(tt));while(rt.cmp(et.modulus)>=0||!rt.umod(et.prime1)||!rt.umod(et.prime2));return rt}function crt$2(et,tt){var rt=blind(tt),nt=tt.modulus.byteLength(),lt=new BN$a(et).mul(rt.blinder).umod(tt.modulus),ut=lt.toRed(BN$a.mont(tt.prime1)),dt=lt.toRed(BN$a.mont(tt.prime2)),pt=tt.coefficient,ht=tt.prime1,mt=tt.prime2,xt=ut.redPow(tt.exponent1).fromRed(),Mt=dt.redPow(tt.exponent2).fromRed(),vt=xt.isub(Mt).imul(pt).umod(ht).imul(mt);return Mt.iadd(vt).imul(rt.unblinder).umod(tt.modulus).toArrayLike(Buffer$E,"be",nt)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic={};const name="elliptic",version="6.5.7",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny <fedor@indutny.com>",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$l={},utils$k={};(function(et){var tt=et;function rt(ut,dt){if(Array.isArray(ut))return ut.slice();if(!ut)return[];var pt=[];if(typeof ut!="string"){for(var ht=0;ht<ut.length;ht++)pt[ht]=ut[ht]|0;return pt}if(dt==="hex"){ut=ut.replace(/[^a-z0-9]+/ig,""),ut.length%2!==0&&(ut="0"+ut);for(var ht=0;ht<ut.length;ht+=2)pt.push(parseInt(ut[ht]+ut[ht+1],16))}else for(var ht=0;ht<ut.length;ht++){var mt=ut.charCodeAt(ht),xt=mt>>8,Mt=mt&255;xt?pt.push(xt,Mt):pt.push(Mt)}return pt}tt.toArray=rt;function nt(ut){return ut.length===1?"0"+ut:ut}tt.zero2=nt;function lt(ut){for(var dt="",pt=0;pt<ut.length;pt++)dt+=nt(ut[pt].toString(16));return dt}tt.toHex=lt,tt.encode=function(dt,pt){return pt==="hex"?lt(dt):dt}})(utils$k);(function(et){var tt=et,rt=bnExports$2,nt=minimalisticAssert,lt=utils$k;tt.assert=nt,tt.toArray=lt.toArray,tt.zero2=lt.zero2,tt.toHex=lt.toHex,tt.encode=lt.encode;function ut(xt,Mt,vt){var Ot=new Array(Math.max(xt.bitLength(),vt)+1),At;for(At=0;At<Ot.length;At+=1)Ot[At]=0;var Rt=1<<Mt+1,zt=xt.clone();for(At=0;At<Ot.length;At++){var Tt,Ct=zt.andln(Rt-1);zt.isOdd()?(Ct>(Rt>>1)-1?Tt=(Rt>>1)-Ct:Tt=Ct,zt.isubn(Tt)):Tt=0,Ot[At]=Tt,zt.iushrn(1)}return Ot}tt.getNAF=ut;function dt(xt,Mt){var vt=[[],[]];xt=xt.clone(),Mt=Mt.clone();for(var Ot=0,At=0,Rt;xt.cmpn(-Ot)>0||Mt.cmpn(-At)>0;){var zt=xt.andln(3)+Ot&3,Tt=Mt.andln(3)+At&3;zt===3&&(zt=-1),Tt===3&&(Tt=-1);var Ct;zt&1?(Rt=xt.andln(7)+Ot&7,(Rt===3||Rt===5)&&Tt===2?Ct=-zt:Ct=zt):Ct=0,vt[0].push(Ct);var It;Tt&1?(Rt=Mt.andln(7)+At&7,(Rt===3||Rt===5)&&zt===2?It=-Tt:It=Tt):It=0,vt[1].push(It),2*Ot===Ct+1&&(Ot=1-Ot),2*At===It+1&&(At=1-At),xt.iushrn(1),Mt.iushrn(1)}return vt}tt.getJSF=dt;function pt(xt,Mt,vt){var Ot="_"+Mt;xt.prototype[Mt]=function(){return this[Ot]!==void 0?this[Ot]:this[Ot]=vt.call(this)}}tt.cachedProperty=pt;function ht(xt){return typeof xt=="string"?tt.toArray(xt,"hex"):xt}tt.parseBytes=ht;function mt(xt){return new rt(xt,"hex","le")}tt.intFromLE=mt})(utils$l);var curve={},BN$9=bnExports$2,utils$j=utils$l,getNAF=utils$j.getNAF,getJSF=utils$j.getJSF,assert$d=utils$j.assert;function BaseCurve(et,tt){this.type=et,this.p=new BN$9(tt.p,16),this.red=tt.prime?BN$9.red(tt.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=tt.n&&new BN$9(tt.n,16),this.g=tt.g&&this.pointFromJSON(tt.g,tt.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var rt=this.n&&this.p.div(this.n);!rt||rt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$1=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(tt,rt){assert$d(tt.precomputed);var nt=tt._getDoubles(),lt=getNAF(rt,1,this._bitLength),ut=(1<<nt.step+1)-(nt.step%2===0?2:1);ut/=3;var dt=[],pt,ht;for(pt=0;pt<lt.length;pt+=nt.step){ht=0;for(var mt=pt+nt.step-1;mt>=pt;mt--)ht=(ht<<1)+lt[mt];dt.push(ht)}for(var xt=this.jpoint(null,null,null),Mt=this.jpoint(null,null,null),vt=ut;vt>0;vt--){for(pt=0;pt<dt.length;pt++)ht=dt[pt],ht===vt?Mt=Mt.mixedAdd(nt.points[pt]):ht===-vt&&(Mt=Mt.mixedAdd(nt.points[pt].neg()));xt=xt.add(Mt)}return xt.toP()};BaseCurve.prototype._wnafMul=function(tt,rt){var nt=4,lt=tt._getNAFPoints(nt);nt=lt.wnd;for(var ut=lt.points,dt=getNAF(rt,nt,this._bitLength),pt=this.jpoint(null,null,null),ht=dt.length-1;ht>=0;ht--){for(var mt=0;ht>=0&&dt[ht]===0;ht--)mt++;if(ht>=0&&mt++,pt=pt.dblp(mt),ht<0)break;var xt=dt[ht];assert$d(xt!==0),tt.type==="affine"?xt>0?pt=pt.mixedAdd(ut[xt-1>>1]):pt=pt.mixedAdd(ut[-xt-1>>1].neg()):xt>0?pt=pt.add(ut[xt-1>>1]):pt=pt.add(ut[-xt-1>>1].neg())}return tt.type==="affine"?pt.toP():pt};BaseCurve.prototype._wnafMulAdd=function(tt,rt,nt,lt,ut){var dt=this._wnafT1,pt=this._wnafT2,ht=this._wnafT3,mt=0,xt,Mt,vt;for(xt=0;xt<lt;xt++){vt=rt[xt];var Ot=vt._getNAFPoints(tt);dt[xt]=Ot.wnd,pt[xt]=Ot.points}for(xt=lt-1;xt>=1;xt-=2){var At=xt-1,Rt=xt;if(dt[At]!==1||dt[Rt]!==1){ht[At]=getNAF(nt[At],dt[At],this._bitLength),ht[Rt]=getNAF(nt[Rt],dt[Rt],this._bitLength),mt=Math.max(ht[At].length,mt),mt=Math.max(ht[Rt].length,mt);continue}var zt=[rt[At],null,null,rt[Rt]];rt[At].y.cmp(rt[Rt].y)===0?(zt[1]=rt[At].add(rt[Rt]),zt[2]=rt[At].toJ().mixedAdd(rt[Rt].neg())):rt[At].y.cmp(rt[Rt].y.redNeg())===0?(zt[1]=rt[At].toJ().mixedAdd(rt[Rt]),zt[2]=rt[At].add(rt[Rt].neg())):(zt[1]=rt[At].toJ().mixedAdd(rt[Rt]),zt[2]=rt[At].toJ().mixedAdd(rt[Rt].neg()));var Tt=[-3,-1,-5,-7,0,7,5,1,3],Ct=getJSF(nt[At],nt[Rt]);for(mt=Math.max(Ct[0].length,mt),ht[At]=new Array(mt),ht[Rt]=new Array(mt),Mt=0;Mt<mt;Mt++){var It=Ct[0][Mt]|0,Dt=Ct[1][Mt]|0;ht[At][Mt]=Tt[(It+1)*3+(Dt+1)],ht[Rt][Mt]=0,pt[At]=zt}}var kt=this.jpoint(null,null,null),qt=this._wnafT4;for(xt=mt;xt>=0;xt--){for(var Nt=0;xt>=0;){var Yt=!0;for(Mt=0;Mt<lt;Mt++)qt[Mt]=ht[Mt][xt]|0,qt[Mt]!==0&&(Yt=!1);if(!Yt)break;Nt++,xt--}if(xt>=0&&Nt++,kt=kt.dblp(Nt),xt<0)break;for(Mt=0;Mt<lt;Mt++){var Kt=qt[Mt];Kt!==0&&(Kt>0?vt=pt[Mt][Kt-1>>1]:Kt<0&&(vt=pt[Mt][-Kt-1>>1].neg()),vt.type==="affine"?kt=kt.mixedAdd(vt):kt=kt.add(vt))}}for(xt=0;xt<lt;xt++)pt[xt]=null;return ut?kt:kt.toP()};function BasePoint(et,tt){this.curve=et,this.type=tt,this.precomputed=null}BaseCurve.BasePoint=BasePoint;BasePoint.prototype.eq=function(){throw new Error("Not implemented")};BasePoint.prototype.validate=function(){return this.curve.validate(this)};BaseCurve.prototype.decodePoint=function(tt,rt){tt=utils$j.toArray(tt,rt);var nt=this.p.byteLength();if((tt[0]===4||tt[0]===6||tt[0]===7)&&tt.length-1===2*nt){tt[0]===6?assert$d(tt[tt.length-1]%2===0):tt[0]===7&&assert$d(tt[tt.length-1]%2===1);var lt=this.point(tt.slice(1,1+nt),tt.slice(1+nt,1+2*nt));return lt}else if((tt[0]===2||tt[0]===3)&&tt.length-1===nt)return this.pointFromX(tt.slice(1,1+nt),tt[0]===3);throw new Error("Unknown point format")};BasePoint.prototype.encodeCompressed=function(tt){return this.encode(tt,!0)};BasePoint.prototype._encode=function(tt){var rt=this.curve.p.byteLength(),nt=this.getX().toArray("be",rt);return tt?[this.getY().isEven()?2:3].concat(nt):[4].concat(nt,this.getY().toArray("be",rt))};BasePoint.prototype.encode=function(tt,rt){return utils$j.encode(this._encode(rt),tt)};BasePoint.prototype.precompute=function(tt){if(this.precomputed)return this;var rt={doubles:null,naf:null,beta:null};return rt.naf=this._getNAFPoints(8),rt.doubles=this._getDoubles(4,tt),rt.beta=this._getBeta(),this.precomputed=rt,this};BasePoint.prototype._hasDoubles=function(tt){if(!this.precomputed)return!1;var rt=this.precomputed.doubles;return rt?rt.points.length>=Math.ceil((tt.bitLength()+1)/rt.step):!1};BasePoint.prototype._getDoubles=function(tt,rt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var nt=[this],lt=this,ut=0;ut<rt;ut+=tt){for(var dt=0;dt<tt;dt++)lt=lt.dbl();nt.push(lt)}return{step:tt,points:nt}};BasePoint.prototype._getNAFPoints=function(tt){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var rt=[this],nt=(1<<tt)-1,lt=nt===1?null:this.dbl(),ut=1;ut<nt;ut++)rt[ut]=rt[ut-1].add(lt);return{wnd:tt,points:rt}};BasePoint.prototype._getBeta=function(){return null};BasePoint.prototype.dblp=function(tt){for(var rt=this,nt=0;nt<tt;nt++)rt=rt.dbl();return rt};var utils$i=utils$l,BN$8=bnExports$2,inherits$4=inherits_browserExports,Base$2=base$1,assert$c=utils$i.assert;function ShortCurve(et){Base$2.call(this,"short",et),this.a=new BN$8(et.a,16).toRed(this.red),this.b=new BN$8(et.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(et),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}inherits$4(ShortCurve,Base$2);var short=ShortCurve;ShortCurve.prototype._getEndomorphism=function(tt){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var rt,nt;if(tt.beta)rt=new BN$8(tt.beta,16).toRed(this.red);else{var lt=this._getEndoRoots(this.p);rt=lt[0].cmp(lt[1])<0?lt[0]:lt[1],rt=rt.toRed(this.red)}if(tt.lambda)nt=new BN$8(tt.lambda,16);else{var ut=this._getEndoRoots(this.n);this.g.mul(ut[0]).x.cmp(this.g.x.redMul(rt))===0?nt=ut[0]:(nt=ut[1],assert$c(this.g.mul(nt).x.cmp(this.g.x.redMul(rt))===0))}var dt;return tt.basis?dt=tt.basis.map(function(pt){return{a:new BN$8(pt.a,16),b:new BN$8(pt.b,16)}}):dt=this._getEndoBasis(nt),{beta:rt,lambda:nt,basis:dt}}};ShortCurve.prototype._getEndoRoots=function(tt){var rt=tt===this.p?this.red:BN$8.mont(tt),nt=new BN$8(2).toRed(rt).redInvm(),lt=nt.redNeg(),ut=new BN$8(3).toRed(rt).redNeg().redSqrt().redMul(nt),dt=lt.redAdd(ut).fromRed(),pt=lt.redSub(ut).fromRed();return[dt,pt]};ShortCurve.prototype._getEndoBasis=function(tt){for(var rt=this.n.ushrn(Math.floor(this.n.bitLength()/2)),nt=tt,lt=this.n.clone(),ut=new BN$8(1),dt=new BN$8(0),pt=new BN$8(0),ht=new BN$8(1),mt,xt,Mt,vt,Ot,At,Rt,zt=0,Tt,Ct;nt.cmpn(0)!==0;){var It=lt.div(nt);Tt=lt.sub(It.mul(nt)),Ct=pt.sub(It.mul(ut));var Dt=ht.sub(It.mul(dt));if(!Mt&&Tt.cmp(rt)<0)mt=Rt.neg(),xt=ut,Mt=Tt.neg(),vt=Ct;else if(Mt&&++zt===2)break;Rt=Tt,lt=nt,nt=Tt,pt=ut,ut=Ct,ht=dt,dt=Dt}Ot=Tt.neg(),At=Ct;var kt=Mt.sqr().add(vt.sqr()),qt=Ot.sqr().add(At.sqr());return qt.cmp(kt)>=0&&(Ot=mt,At=xt),Mt.negative&&(Mt=Mt.neg(),vt=vt.neg()),Ot.negative&&(Ot=Ot.neg(),At=At.neg()),[{a:Mt,b:vt},{a:Ot,b:At}]};ShortCurve.prototype._endoSplit=function(tt){var rt=this.endo.basis,nt=rt[0],lt=rt[1],ut=lt.b.mul(tt).divRound(this.n),dt=nt.b.neg().mul(tt).divRound(this.n),pt=ut.mul(nt.a),ht=dt.mul(lt.a),mt=ut.mul(nt.b),xt=dt.mul(lt.b),Mt=tt.sub(pt).sub(ht),vt=mt.add(xt).neg();return{k1:Mt,k2:vt}};ShortCurve.prototype.pointFromX=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr().redMul(tt).redIAdd(tt.redMul(this.a)).redIAdd(this.b),lt=nt.redSqrt();if(lt.redSqr().redSub(nt).cmp(this.zero)!==0)throw new Error("invalid point");var ut=lt.fromRed().isOdd();return(rt&&!ut||!rt&&ut)&&(lt=lt.redNeg()),this.point(tt,lt)};ShortCurve.prototype.validate=function(tt){if(tt.inf)return!0;var rt=tt.x,nt=tt.y,lt=this.a.redMul(rt),ut=rt.redSqr().redMul(rt).redIAdd(lt).redIAdd(this.b);return nt.redSqr().redISub(ut).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(tt,rt,nt){for(var lt=this._endoWnafT1,ut=this._endoWnafT2,dt=0;dt<tt.length;dt++){var pt=this._endoSplit(rt[dt]),ht=tt[dt],mt=ht._getBeta();pt.k1.negative&&(pt.k1.ineg(),ht=ht.neg(!0)),pt.k2.negative&&(pt.k2.ineg(),mt=mt.neg(!0)),lt[dt*2]=ht,lt[dt*2+1]=mt,ut[dt*2]=pt.k1,ut[dt*2+1]=pt.k2}for(var xt=this._wnafMulAdd(1,lt,ut,dt*2,nt),Mt=0;Mt<dt*2;Mt++)lt[Mt]=null,ut[Mt]=null;return xt};function Point$2(et,tt,rt,nt){Base$2.BasePoint.call(this,et,"affine"),tt===null&&rt===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new BN$8(tt,16),this.y=new BN$8(rt,16),nt&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}inherits$4(Point$2,Base$2.BasePoint);ShortCurve.prototype.point=function(tt,rt,nt){return new Point$2(this,tt,rt,nt)};ShortCurve.prototype.pointFromJSON=function(tt,rt){return Point$2.fromJSON(this,tt,rt)};Point$2.prototype._getBeta=function(){if(this.curve.endo){var tt=this.precomputed;if(tt&&tt.beta)return tt.beta;var rt=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(tt){var nt=this.curve,lt=function(ut){return nt.point(ut.x.redMul(nt.endo.beta),ut.y)};tt.beta=rt,rt.precomputed={beta:null,naf:tt.naf&&{wnd:tt.naf.wnd,points:tt.naf.points.map(lt)},doubles:tt.doubles&&{step:tt.doubles.step,points:tt.doubles.points.map(lt)}}}return rt}};Point$2.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};Point$2.fromJSON=function(tt,rt,nt){typeof rt=="string"&&(rt=JSON.parse(rt));var lt=tt.point(rt[0],rt[1],nt);if(!rt[2])return lt;function ut(pt){return tt.point(pt[0],pt[1],nt)}var dt=rt[2];return lt.precomputed={beta:null,doubles:dt.doubles&&{step:dt.doubles.step,points:[lt].concat(dt.doubles.points.map(ut))},naf:dt.naf&&{wnd:dt.naf.wnd,points:[lt].concat(dt.naf.points.map(ut))}},lt};Point$2.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(tt){if(this.inf)return tt;if(tt.inf)return this;if(this.eq(tt))return this.dbl();if(this.neg().eq(tt))return this.curve.point(null,null);if(this.x.cmp(tt.x)===0)return this.curve.point(null,null);var rt=this.y.redSub(tt.y);rt.cmpn(0)!==0&&(rt=rt.redMul(this.x.redSub(tt.x).redInvm()));var nt=rt.redSqr().redISub(this.x).redISub(tt.x),lt=rt.redMul(this.x.redSub(nt)).redISub(this.y);return this.curve.point(nt,lt)};Point$2.prototype.dbl=function(){if(this.inf)return this;var tt=this.y.redAdd(this.y);if(tt.cmpn(0)===0)return this.curve.point(null,null);var rt=this.curve.a,nt=this.x.redSqr(),lt=tt.redInvm(),ut=nt.redAdd(nt).redIAdd(nt).redIAdd(rt).redMul(lt),dt=ut.redSqr().redISub(this.x.redAdd(this.x)),pt=ut.redMul(this.x.redSub(dt)).redISub(this.y);return this.curve.point(dt,pt)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(tt){return tt=new BN$8(tt,16),this.isInfinity()?this:this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve.endo?this.curve._endoWnafMulAdd([this],[tt]):this.curve._wnafMul(this,tt)};Point$2.prototype.mulAdd=function(tt,rt,nt){var lt=[this,rt],ut=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(lt,ut):this.curve._wnafMulAdd(1,lt,ut,2)};Point$2.prototype.jmulAdd=function(tt,rt,nt){var lt=[this,rt],ut=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(lt,ut,!0):this.curve._wnafMulAdd(1,lt,ut,2,!0)};Point$2.prototype.eq=function(tt){return this===tt||this.inf===tt.inf&&(this.inf||this.x.cmp(tt.x)===0&&this.y.cmp(tt.y)===0)};Point$2.prototype.neg=function(tt){if(this.inf)return this;var rt=this.curve.point(this.x,this.y.redNeg());if(tt&&this.precomputed){var nt=this.precomputed,lt=function(ut){return ut.neg()};rt.precomputed={naf:nt.naf&&{wnd:nt.naf.wnd,points:nt.naf.points.map(lt)},doubles:nt.doubles&&{step:nt.doubles.step,points:nt.doubles.points.map(lt)}}}return rt};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var tt=this.curve.jpoint(this.x,this.y,this.curve.one);return tt};function JPoint(et,tt,rt,nt){Base$2.BasePoint.call(this,et,"jacobian"),tt===null&&rt===null&&nt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(tt,16),this.y=new BN$8(rt,16),this.z=new BN$8(nt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$4(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(tt,rt,nt){return new JPoint(this,tt,rt,nt)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var tt=this.z.redInvm(),rt=tt.redSqr(),nt=this.x.redMul(rt),lt=this.y.redMul(rt).redMul(tt);return this.curve.point(nt,lt)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(tt){if(this.isInfinity())return tt;if(tt.isInfinity())return this;var rt=tt.z.redSqr(),nt=this.z.redSqr(),lt=this.x.redMul(rt),ut=tt.x.redMul(nt),dt=this.y.redMul(rt.redMul(tt.z)),pt=tt.y.redMul(nt.redMul(this.z)),ht=lt.redSub(ut),mt=dt.redSub(pt);if(ht.cmpn(0)===0)return mt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var xt=ht.redSqr(),Mt=xt.redMul(ht),vt=lt.redMul(xt),Ot=mt.redSqr().redIAdd(Mt).redISub(vt).redISub(vt),At=mt.redMul(vt.redISub(Ot)).redISub(dt.redMul(Mt)),Rt=this.z.redMul(tt.z).redMul(ht);return this.curve.jpoint(Ot,At,Rt)};JPoint.prototype.mixedAdd=function(tt){if(this.isInfinity())return tt.toJ();if(tt.isInfinity())return this;var rt=this.z.redSqr(),nt=this.x,lt=tt.x.redMul(rt),ut=this.y,dt=tt.y.redMul(rt).redMul(this.z),pt=nt.redSub(lt),ht=ut.redSub(dt);if(pt.cmpn(0)===0)return ht.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var mt=pt.redSqr(),xt=mt.redMul(pt),Mt=nt.redMul(mt),vt=ht.redSqr().redIAdd(xt).redISub(Mt).redISub(Mt),Ot=ht.redMul(Mt.redISub(vt)).redISub(ut.redMul(xt)),At=this.z.redMul(pt);return this.curve.jpoint(vt,Ot,At)};JPoint.prototype.dblp=function(tt){if(tt===0)return this;if(this.isInfinity())return this;if(!tt)return this.dbl();var rt;if(this.curve.zeroA||this.curve.threeA){var nt=this;for(rt=0;rt<tt;rt++)nt=nt.dbl();return nt}var lt=this.curve.a,ut=this.curve.tinv,dt=this.x,pt=this.y,ht=this.z,mt=ht.redSqr().redSqr(),xt=pt.redAdd(pt);for(rt=0;rt<tt;rt++){var Mt=dt.redSqr(),vt=xt.redSqr(),Ot=vt.redSqr(),At=Mt.redAdd(Mt).redIAdd(Mt).redIAdd(lt.redMul(mt)),Rt=dt.redMul(vt),zt=At.redSqr().redISub(Rt.redAdd(Rt)),Tt=Rt.redISub(zt),Ct=At.redMul(Tt);Ct=Ct.redIAdd(Ct).redISub(Ot);var It=xt.redMul(ht);rt+1<tt&&(mt=mt.redMul(Ot)),dt=zt,ht=It,xt=Ct}return this.curve.jpoint(dt,xt.redMul(ut),ht)};JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};JPoint.prototype._zeroDbl=function(){var tt,rt,nt;if(this.zOne){var lt=this.x.redSqr(),ut=this.y.redSqr(),dt=ut.redSqr(),pt=this.x.redAdd(ut).redSqr().redISub(lt).redISub(dt);pt=pt.redIAdd(pt);var ht=lt.redAdd(lt).redIAdd(lt),mt=ht.redSqr().redISub(pt).redISub(pt),xt=dt.redIAdd(dt);xt=xt.redIAdd(xt),xt=xt.redIAdd(xt),tt=mt,rt=ht.redMul(pt.redISub(mt)).redISub(xt),nt=this.y.redAdd(this.y)}else{var Mt=this.x.redSqr(),vt=this.y.redSqr(),Ot=vt.redSqr(),At=this.x.redAdd(vt).redSqr().redISub(Mt).redISub(Ot);At=At.redIAdd(At);var Rt=Mt.redAdd(Mt).redIAdd(Mt),zt=Rt.redSqr(),Tt=Ot.redIAdd(Ot);Tt=Tt.redIAdd(Tt),Tt=Tt.redIAdd(Tt),tt=zt.redISub(At).redISub(At),rt=Rt.redMul(At.redISub(tt)).redISub(Tt),nt=this.y.redMul(this.z),nt=nt.redIAdd(nt)}return this.curve.jpoint(tt,rt,nt)};JPoint.prototype._threeDbl=function(){var tt,rt,nt;if(this.zOne){var lt=this.x.redSqr(),ut=this.y.redSqr(),dt=ut.redSqr(),pt=this.x.redAdd(ut).redSqr().redISub(lt).redISub(dt);pt=pt.redIAdd(pt);var ht=lt.redAdd(lt).redIAdd(lt).redIAdd(this.curve.a),mt=ht.redSqr().redISub(pt).redISub(pt);tt=mt;var xt=dt.redIAdd(dt);xt=xt.redIAdd(xt),xt=xt.redIAdd(xt),rt=ht.redMul(pt.redISub(mt)).redISub(xt),nt=this.y.redAdd(this.y)}else{var Mt=this.z.redSqr(),vt=this.y.redSqr(),Ot=this.x.redMul(vt),At=this.x.redSub(Mt).redMul(this.x.redAdd(Mt));At=At.redAdd(At).redIAdd(At);var Rt=Ot.redIAdd(Ot);Rt=Rt.redIAdd(Rt);var zt=Rt.redAdd(Rt);tt=At.redSqr().redISub(zt),nt=this.y.redAdd(this.z).redSqr().redISub(vt).redISub(Mt);var Tt=vt.redSqr();Tt=Tt.redIAdd(Tt),Tt=Tt.redIAdd(Tt),Tt=Tt.redIAdd(Tt),rt=At.redMul(Rt.redISub(tt)).redISub(Tt)}return this.curve.jpoint(tt,rt,nt)};JPoint.prototype._dbl=function(){var tt=this.curve.a,rt=this.x,nt=this.y,lt=this.z,ut=lt.redSqr().redSqr(),dt=rt.redSqr(),pt=nt.redSqr(),ht=dt.redAdd(dt).redIAdd(dt).redIAdd(tt.redMul(ut)),mt=rt.redAdd(rt);mt=mt.redIAdd(mt);var xt=mt.redMul(pt),Mt=ht.redSqr().redISub(xt.redAdd(xt)),vt=xt.redISub(Mt),Ot=pt.redSqr();Ot=Ot.redIAdd(Ot),Ot=Ot.redIAdd(Ot),Ot=Ot.redIAdd(Ot);var At=ht.redMul(vt).redISub(Ot),Rt=nt.redAdd(nt).redMul(lt);return this.curve.jpoint(Mt,At,Rt)};JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var tt=this.x.redSqr(),rt=this.y.redSqr(),nt=this.z.redSqr(),lt=rt.redSqr(),ut=tt.redAdd(tt).redIAdd(tt),dt=ut.redSqr(),pt=this.x.redAdd(rt).redSqr().redISub(tt).redISub(lt);pt=pt.redIAdd(pt),pt=pt.redAdd(pt).redIAdd(pt),pt=pt.redISub(dt);var ht=pt.redSqr(),mt=lt.redIAdd(lt);mt=mt.redIAdd(mt),mt=mt.redIAdd(mt),mt=mt.redIAdd(mt);var xt=ut.redIAdd(pt).redSqr().redISub(dt).redISub(ht).redISub(mt),Mt=rt.redMul(xt);Mt=Mt.redIAdd(Mt),Mt=Mt.redIAdd(Mt);var vt=this.x.redMul(ht).redISub(Mt);vt=vt.redIAdd(vt),vt=vt.redIAdd(vt);var Ot=this.y.redMul(xt.redMul(mt.redISub(xt)).redISub(pt.redMul(ht)));Ot=Ot.redIAdd(Ot),Ot=Ot.redIAdd(Ot),Ot=Ot.redIAdd(Ot);var At=this.z.redAdd(pt).redSqr().redISub(nt).redISub(ht);return this.curve.jpoint(vt,Ot,At)};JPoint.prototype.mul=function(tt,rt){return tt=new BN$8(tt,rt),this.curve._wnafMul(this,tt)};JPoint.prototype.eq=function(tt){if(tt.type==="affine")return this.eq(tt.toJ());if(this===tt)return!0;var rt=this.z.redSqr(),nt=tt.z.redSqr();if(this.x.redMul(nt).redISub(tt.x.redMul(rt)).cmpn(0)!==0)return!1;var lt=rt.redMul(this.z),ut=nt.redMul(tt.z);return this.y.redMul(ut).redISub(tt.y.redMul(lt)).cmpn(0)===0};JPoint.prototype.eqXToP=function(tt){var rt=this.z.redSqr(),nt=tt.toRed(this.curve.red).redMul(rt);if(this.x.cmp(nt)===0)return!0;for(var lt=tt.clone(),ut=this.curve.redN.redMul(rt);;){if(lt.iadd(this.curve.n),lt.cmp(this.curve.p)>=0)return!1;if(nt.redIAdd(ut),this.x.cmp(nt)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$7=bnExports$2,inherits$3=inherits_browserExports,Base$1=base$1,utils$h=utils$l;function MontCurve(et){Base$1.call(this,"mont",et),this.a=new BN$7(et.a,16).toRed(this.red),this.b=new BN$7(et.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$3(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(tt){var rt=tt.normalize().x,nt=rt.redSqr(),lt=nt.redMul(rt).redAdd(nt.redMul(this.a)).redAdd(rt),ut=lt.redSqrt();return ut.redSqr().cmp(lt)===0};function Point$1(et,tt,rt){Base$1.BasePoint.call(this,et,"projective"),tt===null&&rt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(tt,16),this.z=new BN$7(rt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$3(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(tt,rt){return this.point(utils$h.toArray(tt,rt),1)};MontCurve.prototype.point=function(tt,rt){return new Point$1(this,tt,rt)};MontCurve.prototype.pointFromJSON=function(tt){return Point$1.fromJSON(this,tt)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(tt,rt){return new Point$1(tt,rt[0],rt[1]||tt.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var tt=this.x.redAdd(this.z),rt=tt.redSqr(),nt=this.x.redSub(this.z),lt=nt.redSqr(),ut=rt.redSub(lt),dt=rt.redMul(lt),pt=ut.redMul(lt.redAdd(this.curve.a24.redMul(ut)));return this.curve.point(dt,pt)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(tt,rt){var nt=this.x.redAdd(this.z),lt=this.x.redSub(this.z),ut=tt.x.redAdd(tt.z),dt=tt.x.redSub(tt.z),pt=dt.redMul(nt),ht=ut.redMul(lt),mt=rt.z.redMul(pt.redAdd(ht).redSqr()),xt=rt.x.redMul(pt.redISub(ht).redSqr());return this.curve.point(mt,xt)};Point$1.prototype.mul=function(tt){for(var rt=tt.clone(),nt=this,lt=this.curve.point(null,null),ut=this,dt=[];rt.cmpn(0)!==0;rt.iushrn(1))dt.push(rt.andln(1));for(var pt=dt.length-1;pt>=0;pt--)dt[pt]===0?(nt=nt.diffAdd(lt,ut),lt=lt.dbl()):(lt=nt.diffAdd(lt,ut),nt=nt.dbl());return lt};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(tt){return this.getX().cmp(tt.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$g=utils$l,BN$6=bnExports$2,inherits$2=inherits_browserExports,Base=base$1,assert$b=utils$g.assert;function EdwardsCurve(et){this.twisted=(et.a|0)!==1,this.mOneA=this.twisted&&(et.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",et),this.a=new BN$6(et.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(et.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(et.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$b(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(et.c|0)===1}inherits$2(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(tt){return this.mOneA?tt.redNeg():this.a.redMul(tt)};EdwardsCurve.prototype._mulC=function(tt){return this.oneC?tt:this.c.redMul(tt)};EdwardsCurve.prototype.jpoint=function(tt,rt,nt,lt){return this.point(tt,rt,nt,lt)};EdwardsCurve.prototype.pointFromX=function(tt,rt){tt=new BN$6(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),lt=this.c2.redSub(this.a.redMul(nt)),ut=this.one.redSub(this.c2.redMul(this.d).redMul(nt)),dt=lt.redMul(ut.redInvm()),pt=dt.redSqrt();if(pt.redSqr().redSub(dt).cmp(this.zero)!==0)throw new Error("invalid point");var ht=pt.fromRed().isOdd();return(rt&&!ht||!rt&&ht)&&(pt=pt.redNeg()),this.point(tt,pt)};EdwardsCurve.prototype.pointFromY=function(tt,rt){tt=new BN$6(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),lt=nt.redSub(this.c2),ut=nt.redMul(this.d).redMul(this.c2).redSub(this.a),dt=lt.redMul(ut.redInvm());if(dt.cmp(this.zero)===0){if(rt)throw new Error("invalid point");return this.point(this.zero,tt)}var pt=dt.redSqrt();if(pt.redSqr().redSub(dt).cmp(this.zero)!==0)throw new Error("invalid point");return pt.fromRed().isOdd()!==rt&&(pt=pt.redNeg()),this.point(pt,tt)};EdwardsCurve.prototype.validate=function(tt){if(tt.isInfinity())return!0;tt.normalize();var rt=tt.x.redSqr(),nt=tt.y.redSqr(),lt=rt.redMul(this.a).redAdd(nt),ut=this.c2.redMul(this.one.redAdd(this.d.redMul(rt).redMul(nt)));return lt.cmp(ut)===0};function Point(et,tt,rt,nt,lt){Base.BasePoint.call(this,et,"projective"),tt===null&&rt===null&&nt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$6(tt,16),this.y=new BN$6(rt,16),this.z=nt?new BN$6(nt,16):this.curve.one,this.t=lt&&new BN$6(lt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$2(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(tt){return Point.fromJSON(this,tt)};EdwardsCurve.prototype.point=function(tt,rt,nt,lt){return new Point(this,tt,rt,nt,lt)};Point.fromJSON=function(tt,rt){return new Point(tt,rt[0],rt[1],rt[2])};Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var tt=this.x.redSqr(),rt=this.y.redSqr(),nt=this.z.redSqr();nt=nt.redIAdd(nt);var lt=this.curve._mulA(tt),ut=this.x.redAdd(this.y).redSqr().redISub(tt).redISub(rt),dt=lt.redAdd(rt),pt=dt.redSub(nt),ht=lt.redSub(rt),mt=ut.redMul(pt),xt=dt.redMul(ht),Mt=ut.redMul(ht),vt=pt.redMul(dt);return this.curve.point(mt,xt,vt,Mt)};Point.prototype._projDbl=function(){var tt=this.x.redAdd(this.y).redSqr(),rt=this.x.redSqr(),nt=this.y.redSqr(),lt,ut,dt,pt,ht,mt;if(this.curve.twisted){pt=this.curve._mulA(rt);var xt=pt.redAdd(nt);this.zOne?(lt=tt.redSub(rt).redSub(nt).redMul(xt.redSub(this.curve.two)),ut=xt.redMul(pt.redSub(nt)),dt=xt.redSqr().redSub(xt).redSub(xt)):(ht=this.z.redSqr(),mt=xt.redSub(ht).redISub(ht),lt=tt.redSub(rt).redISub(nt).redMul(mt),ut=xt.redMul(pt.redSub(nt)),dt=xt.redMul(mt))}else pt=rt.redAdd(nt),ht=this.curve._mulC(this.z).redSqr(),mt=pt.redSub(ht).redSub(ht),lt=this.curve._mulC(tt.redISub(pt)).redMul(mt),ut=this.curve._mulC(pt).redMul(rt.redISub(nt)),dt=pt.redMul(mt);return this.curve.point(lt,ut,dt)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(tt){var rt=this.y.redSub(this.x).redMul(tt.y.redSub(tt.x)),nt=this.y.redAdd(this.x).redMul(tt.y.redAdd(tt.x)),lt=this.t.redMul(this.curve.dd).redMul(tt.t),ut=this.z.redMul(tt.z.redAdd(tt.z)),dt=nt.redSub(rt),pt=ut.redSub(lt),ht=ut.redAdd(lt),mt=nt.redAdd(rt),xt=dt.redMul(pt),Mt=ht.redMul(mt),vt=dt.redMul(mt),Ot=pt.redMul(ht);return this.curve.point(xt,Mt,Ot,vt)};Point.prototype._projAdd=function(tt){var rt=this.z.redMul(tt.z),nt=rt.redSqr(),lt=this.x.redMul(tt.x),ut=this.y.redMul(tt.y),dt=this.curve.d.redMul(lt).redMul(ut),pt=nt.redSub(dt),ht=nt.redAdd(dt),mt=this.x.redAdd(this.y).redMul(tt.x.redAdd(tt.y)).redISub(lt).redISub(ut),xt=rt.redMul(pt).redMul(mt),Mt,vt;return this.curve.twisted?(Mt=rt.redMul(ht).redMul(ut.redSub(this.curve._mulA(lt))),vt=pt.redMul(ht)):(Mt=rt.redMul(ht).redMul(ut.redSub(lt)),vt=this.curve._mulC(pt).redMul(ht)),this.curve.point(xt,Mt,vt)};Point.prototype.add=function(tt){return this.isInfinity()?tt:tt.isInfinity()?this:this.curve.extended?this._extAdd(tt):this._projAdd(tt)};Point.prototype.mul=function(tt){return this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve._wnafMul(this,tt)};Point.prototype.mulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!1)};Point.prototype.jmulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var tt=this.z.redInvm();return this.x=this.x.redMul(tt),this.y=this.y.redMul(tt),this.t&&(this.t=this.t.redMul(tt)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(tt){return this===tt||this.getX().cmp(tt.getX())===0&&this.getY().cmp(tt.getY())===0};Point.prototype.eqXToP=function(tt){var rt=tt.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(rt)===0)return!0;for(var nt=tt.clone(),lt=this.curve.redN.redMul(this.z);;){if(nt.iadd(this.curve.n),nt.cmp(this.curve.p)>=0)return!1;if(rt.redIAdd(lt),this.x.cmp(rt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(et){var tt=et;tt.base=base$1,tt.short=short,tt.mont=mont,tt.edwards=edwards})(curve);var curves$1={},hash$2={},utils$f={},assert$a=minimalisticAssert,inherits$1=inherits_browserExports;utils$f.inherits=inherits$1;function isSurrogatePair(et,tt){return(et.charCodeAt(tt)&64512)!==55296||tt<0||tt+1>=et.length?!1:(et.charCodeAt(tt+1)&64512)===56320}function toArray(et,tt){if(Array.isArray(et))return et.slice();if(!et)return[];var rt=[];if(typeof et=="string")if(tt){if(tt==="hex")for(et=et.replace(/[^a-z0-9]+/ig,""),et.length%2!==0&&(et="0"+et),lt=0;lt<et.length;lt+=2)rt.push(parseInt(et[lt]+et[lt+1],16))}else for(var nt=0,lt=0;lt<et.length;lt++){var ut=et.charCodeAt(lt);ut<128?rt[nt++]=ut:ut<2048?(rt[nt++]=ut>>6|192,rt[nt++]=ut&63|128):isSurrogatePair(et,lt)?(ut=65536+((ut&1023)<<10)+(et.charCodeAt(++lt)&1023),rt[nt++]=ut>>18|240,rt[nt++]=ut>>12&63|128,rt[nt++]=ut>>6&63|128,rt[nt++]=ut&63|128):(rt[nt++]=ut>>12|224,rt[nt++]=ut>>6&63|128,rt[nt++]=ut&63|128)}else for(lt=0;lt<et.length;lt++)rt[lt]=et[lt]|0;return rt}utils$f.toArray=toArray;function toHex(et){for(var tt="",rt=0;rt<et.length;rt++)tt+=zero2(et[rt].toString(16));return tt}utils$f.toHex=toHex;function htonl(et){var tt=et>>>24|et>>>8&65280|et<<8&16711680|(et&255)<<24;return tt>>>0}utils$f.htonl=htonl;function toHex32(et,tt){for(var rt="",nt=0;nt<et.length;nt++){var lt=et[nt];tt==="little"&&(lt=htonl(lt)),rt+=zero8(lt.toString(16))}return rt}utils$f.toHex32=toHex32;function zero2(et){return et.length===1?"0"+et:et}utils$f.zero2=zero2;function zero8(et){return et.length===7?"0"+et:et.length===6?"00"+et:et.length===5?"000"+et:et.length===4?"0000"+et:et.length===3?"00000"+et:et.length===2?"000000"+et:et.length===1?"0000000"+et:et}utils$f.zero8=zero8;function join32(et,tt,rt,nt){var lt=rt-tt;assert$a(lt%4===0);for(var ut=new Array(lt/4),dt=0,pt=tt;dt<ut.length;dt++,pt+=4){var ht;nt==="big"?ht=et[pt]<<24|et[pt+1]<<16|et[pt+2]<<8|et[pt+3]:ht=et[pt+3]<<24|et[pt+2]<<16|et[pt+1]<<8|et[pt],ut[dt]=ht>>>0}return ut}utils$f.join32=join32;function split32(et,tt){for(var rt=new Array(et.length*4),nt=0,lt=0;nt<et.length;nt++,lt+=4){var ut=et[nt];tt==="big"?(rt[lt]=ut>>>24,rt[lt+1]=ut>>>16&255,rt[lt+2]=ut>>>8&255,rt[lt+3]=ut&255):(rt[lt+3]=ut>>>24,rt[lt+2]=ut>>>16&255,rt[lt+1]=ut>>>8&255,rt[lt]=ut&255)}return rt}utils$f.split32=split32;function rotr32$1(et,tt){return et>>>tt|et<<32-tt}utils$f.rotr32=rotr32$1;function rotl32$2(et,tt){return et<<tt|et>>>32-tt}utils$f.rotl32=rotl32$2;function sum32$3(et,tt){return et+tt>>>0}utils$f.sum32=sum32$3;function sum32_3$1(et,tt,rt){return et+tt+rt>>>0}utils$f.sum32_3=sum32_3$1;function sum32_4$2(et,tt,rt,nt){return et+tt+rt+nt>>>0}utils$f.sum32_4=sum32_4$2;function sum32_5$2(et,tt,rt,nt,lt){return et+tt+rt+nt+lt>>>0}utils$f.sum32_5=sum32_5$2;function sum64$1(et,tt,rt,nt){var lt=et[tt],ut=et[tt+1],dt=nt+ut>>>0,pt=(dt<nt?1:0)+rt+lt;et[tt]=pt>>>0,et[tt+1]=dt}utils$f.sum64=sum64$1;function sum64_hi$1(et,tt,rt,nt){var lt=tt+nt>>>0,ut=(lt<tt?1:0)+et+rt;return ut>>>0}utils$f.sum64_hi=sum64_hi$1;function sum64_lo$1(et,tt,rt,nt){var lt=tt+nt;return lt>>>0}utils$f.sum64_lo=sum64_lo$1;function sum64_4_hi$1(et,tt,rt,nt,lt,ut,dt,pt){var ht=0,mt=tt;mt=mt+nt>>>0,ht+=mt<tt?1:0,mt=mt+ut>>>0,ht+=mt<ut?1:0,mt=mt+pt>>>0,ht+=mt<pt?1:0;var xt=et+rt+lt+dt+ht;return xt>>>0}utils$f.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(et,tt,rt,nt,lt,ut,dt,pt){var ht=tt+nt+ut+pt;return ht>>>0}utils$f.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(et,tt,rt,nt,lt,ut,dt,pt,ht,mt){var xt=0,Mt=tt;Mt=Mt+nt>>>0,xt+=Mt<tt?1:0,Mt=Mt+ut>>>0,xt+=Mt<ut?1:0,Mt=Mt+pt>>>0,xt+=Mt<pt?1:0,Mt=Mt+mt>>>0,xt+=Mt<mt?1:0;var vt=et+rt+lt+dt+ht+xt;return vt>>>0}utils$f.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(et,tt,rt,nt,lt,ut,dt,pt,ht,mt){var xt=tt+nt+ut+pt+mt;return xt>>>0}utils$f.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(et,tt,rt){var nt=tt<<32-rt|et>>>rt;return nt>>>0}utils$f.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$f.rotr64_lo=rotr64_lo$1;function shr64_hi$1(et,tt,rt){return et>>>rt}utils$f.shr64_hi=shr64_hi$1;function shr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$f.shr64_lo=shr64_lo$1;var common$5={},utils$e=utils$f,assert$9=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$5.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(tt,rt){if(tt=utils$e.toArray(tt,rt),this.pending?this.pending=this.pending.concat(tt):this.pending=tt,this.pendingTotal+=tt.length,this.pending.length>=this._delta8){tt=this.pending;var nt=tt.length%this._delta8;this.pending=tt.slice(tt.length-nt,tt.length),this.pending.length===0&&(this.pending=null),tt=utils$e.join32(tt,0,tt.length-nt,this.endian);for(var lt=0;lt<tt.length;lt+=this._delta32)this._update(tt,lt,lt+this._delta32)}return this};BlockHash$4.prototype.digest=function(tt){return this.update(this._pad()),assert$9(this.pending===null),this._digest(tt)};BlockHash$4.prototype._pad=function(){var tt=this.pendingTotal,rt=this._delta8,nt=rt-(tt+this.padLength)%rt,lt=new Array(nt+this.padLength);lt[0]=128;for(var ut=1;ut<nt;ut++)lt[ut]=0;if(tt<<=3,this.endian==="big"){for(var dt=8;dt<this.padLength;dt++)lt[ut++]=0;lt[ut++]=0,lt[ut++]=0,lt[ut++]=0,lt[ut++]=0,lt[ut++]=tt>>>24&255,lt[ut++]=tt>>>16&255,lt[ut++]=tt>>>8&255,lt[ut++]=tt&255}else for(lt[ut++]=tt&255,lt[ut++]=tt>>>8&255,lt[ut++]=tt>>>16&255,lt[ut++]=tt>>>24&255,lt[ut++]=0,lt[ut++]=0,lt[ut++]=0,lt[ut++]=0,dt=8;dt<this.padLength;dt++)lt[ut++]=0;return lt};var sha={},common$4={},utils$d=utils$f,rotr32=utils$d.rotr32;function ft_1$1(et,tt,rt,nt){if(et===0)return ch32$1(tt,rt,nt);if(et===1||et===3)return p32(tt,rt,nt);if(et===2)return maj32$1(tt,rt,nt)}common$4.ft_1=ft_1$1;function ch32$1(et,tt,rt){return et&tt^~et&rt}common$4.ch32=ch32$1;function maj32$1(et,tt,rt){return et&tt^et&rt^tt&rt}common$4.maj32=maj32$1;function p32(et,tt,rt){return et^tt^rt}common$4.p32=p32;function s0_256$1(et){return rotr32(et,2)^rotr32(et,13)^rotr32(et,22)}common$4.s0_256=s0_256$1;function s1_256$1(et){return rotr32(et,6)^rotr32(et,11)^rotr32(et,25)}common$4.s1_256=s1_256$1;function g0_256$1(et){return rotr32(et,7)^rotr32(et,18)^et>>>3}common$4.g0_256=g0_256$1;function g1_256$1(et){return rotr32(et,17)^rotr32(et,19)^et>>>10}common$4.g1_256=g1_256$1;var utils$c=utils$f,common$3=common$5,shaCommon$1=common$4,rotl32$1=utils$c.rotl32,sum32$2=utils$c.sum32,sum32_5$1=utils$c.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$3.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$c.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function(tt,rt){for(var nt=this.W,lt=0;lt<16;lt++)nt[lt]=tt[rt+lt];for(;lt<nt.length;lt++)nt[lt]=rotl32$1(nt[lt-3]^nt[lt-8]^nt[lt-14]^nt[lt-16],1);var ut=this.h[0],dt=this.h[1],pt=this.h[2],ht=this.h[3],mt=this.h[4];for(lt=0;lt<nt.length;lt++){var xt=~~(lt/20),Mt=sum32_5$1(rotl32$1(ut,5),ft_1(xt,dt,pt,ht),mt,nt[lt],sha1_K[xt]);mt=ht,ht=pt,pt=rotl32$1(dt,30),dt=ut,ut=Mt}this.h[0]=sum32$2(this.h[0],ut),this.h[1]=sum32$2(this.h[1],dt),this.h[2]=sum32$2(this.h[2],pt),this.h[3]=sum32$2(this.h[3],ht),this.h[4]=sum32$2(this.h[4],mt)};SHA1.prototype._digest=function(tt){return tt==="hex"?utils$c.toHex32(this.h,"big"):utils$c.split32(this.h,"big")};var utils$b=utils$f,common$2=common$5,shaCommon=common$4,assert$8=minimalisticAssert,sum32$1=utils$b.sum32,sum32_4$1=utils$b.sum32_4,sum32_5=utils$b.sum32_5,ch32=shaCommon.ch32,maj32=shaCommon.maj32,s0_256=shaCommon.s0_256,s1_256=shaCommon.s1_256,g0_256=shaCommon.g0_256,g1_256=shaCommon.g1_256,BlockHash$2=common$2.BlockHash,sha256_K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function SHA256$1(){if(!(this instanceof SHA256$1))return new SHA256$1;BlockHash$2.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=sha256_K,this.W=new Array(64)}utils$b.inherits(SHA256$1,BlockHash$2);var _256=SHA256$1;SHA256$1.blockSize=512;SHA256$1.outSize=256;SHA256$1.hmacStrength=192;SHA256$1.padLength=64;SHA256$1.prototype._update=function(tt,rt){for(var nt=this.W,lt=0;lt<16;lt++)nt[lt]=tt[rt+lt];for(;lt<nt.length;lt++)nt[lt]=sum32_4$1(g1_256(nt[lt-2]),nt[lt-7],g0_256(nt[lt-15]),nt[lt-16]);var ut=this.h[0],dt=this.h[1],pt=this.h[2],ht=this.h[3],mt=this.h[4],xt=this.h[5],Mt=this.h[6],vt=this.h[7];for(assert$8(this.k.length===nt.length),lt=0;lt<nt.length;lt++){var Ot=sum32_5(vt,s1_256(mt),ch32(mt,xt,Mt),this.k[lt],nt[lt]),At=sum32$1(s0_256(ut),maj32(ut,dt,pt));vt=Mt,Mt=xt,xt=mt,mt=sum32$1(ht,Ot),ht=pt,pt=dt,dt=ut,ut=sum32$1(Ot,At)}this.h[0]=sum32$1(this.h[0],ut),this.h[1]=sum32$1(this.h[1],dt),this.h[2]=sum32$1(this.h[2],pt),this.h[3]=sum32$1(this.h[3],ht),this.h[4]=sum32$1(this.h[4],mt),this.h[5]=sum32$1(this.h[5],xt),this.h[6]=sum32$1(this.h[6],Mt),this.h[7]=sum32$1(this.h[7],vt)};SHA256$1.prototype._digest=function(tt){return tt==="hex"?utils$b.toHex32(this.h,"big"):utils$b.split32(this.h,"big")};var utils$a=utils$f,SHA256=_256;function SHA224(){if(!(this instanceof SHA224))return new SHA224;SHA256.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}utils$a.inherits(SHA224,SHA256);var _224=SHA224;SHA224.blockSize=512;SHA224.outSize=224;SHA224.hmacStrength=192;SHA224.padLength=64;SHA224.prototype._digest=function(tt){return tt==="hex"?utils$a.toHex32(this.h.slice(0,7),"big"):utils$a.split32(this.h.slice(0,7),"big")};var utils$9=utils$f,common$1=common$5,assert$7=minimalisticAssert,rotr64_hi=utils$9.rotr64_hi,rotr64_lo=utils$9.rotr64_lo,shr64_hi=utils$9.shr64_hi,shr64_lo=utils$9.shr64_lo,sum64=utils$9.sum64,sum64_hi=utils$9.sum64_hi,sum64_lo=utils$9.sum64_lo,sum64_4_hi=utils$9.sum64_4_hi,sum64_4_lo=utils$9.sum64_4_lo,sum64_5_hi=utils$9.sum64_5_hi,sum64_5_lo=utils$9.sum64_5_lo,BlockHash$1=common$1.BlockHash,sha512_K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function SHA512$1(){if(!(this instanceof SHA512$1))return new SHA512$1;BlockHash$1.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=sha512_K,this.W=new Array(160)}utils$9.inherits(SHA512$1,BlockHash$1);var _512=SHA512$1;SHA512$1.blockSize=1024;SHA512$1.outSize=512;SHA512$1.hmacStrength=192;SHA512$1.padLength=128;SHA512$1.prototype._prepareBlock=function(tt,rt){for(var nt=this.W,lt=0;lt<32;lt++)nt[lt]=tt[rt+lt];for(;lt<nt.length;lt+=2){var ut=g1_512_hi(nt[lt-4],nt[lt-3]),dt=g1_512_lo(nt[lt-4],nt[lt-3]),pt=nt[lt-14],ht=nt[lt-13],mt=g0_512_hi(nt[lt-30],nt[lt-29]),xt=g0_512_lo(nt[lt-30],nt[lt-29]),Mt=nt[lt-32],vt=nt[lt-31];nt[lt]=sum64_4_hi(ut,dt,pt,ht,mt,xt,Mt,vt),nt[lt+1]=sum64_4_lo(ut,dt,pt,ht,mt,xt,Mt,vt)}};SHA512$1.prototype._update=function(tt,rt){this._prepareBlock(tt,rt);var nt=this.W,lt=this.h[0],ut=this.h[1],dt=this.h[2],pt=this.h[3],ht=this.h[4],mt=this.h[5],xt=this.h[6],Mt=this.h[7],vt=this.h[8],Ot=this.h[9],At=this.h[10],Rt=this.h[11],zt=this.h[12],Tt=this.h[13],Ct=this.h[14],It=this.h[15];assert$7(this.k.length===nt.length);for(var Dt=0;Dt<nt.length;Dt+=2){var kt=Ct,qt=It,Nt=s1_512_hi(vt,Ot),Yt=s1_512_lo(vt,Ot),Kt=ch64_hi(vt,Ot,At,Rt,zt),Jt=ch64_lo(vt,Ot,At,Rt,zt,Tt),Qt=this.k[Dt],Bt=this.k[Dt+1],Ft=nt[Dt],$t=nt[Dt+1],jt=sum64_5_hi(kt,qt,Nt,Yt,Kt,Jt,Qt,Bt,Ft,$t),Wt=sum64_5_lo(kt,qt,Nt,Yt,Kt,Jt,Qt,Bt,Ft,$t);kt=s0_512_hi(lt,ut),qt=s0_512_lo(lt,ut),Nt=maj64_hi(lt,ut,dt,pt,ht),Yt=maj64_lo(lt,ut,dt,pt,ht,mt);var Ut=sum64_hi(kt,qt,Nt,Yt),Vt=sum64_lo(kt,qt,Nt,Yt);Ct=zt,It=Tt,zt=At,Tt=Rt,At=vt,Rt=Ot,vt=sum64_hi(xt,Mt,jt,Wt),Ot=sum64_lo(Mt,Mt,jt,Wt),xt=ht,Mt=mt,ht=dt,mt=pt,dt=lt,pt=ut,lt=sum64_hi(jt,Wt,Ut,Vt),ut=sum64_lo(jt,Wt,Ut,Vt)}sum64(this.h,0,lt,ut),sum64(this.h,2,dt,pt),sum64(this.h,4,ht,mt),sum64(this.h,6,xt,Mt),sum64(this.h,8,vt,Ot),sum64(this.h,10,At,Rt),sum64(this.h,12,zt,Tt),sum64(this.h,14,Ct,It)};SHA512$1.prototype._digest=function(tt){return tt==="hex"?utils$9.toHex32(this.h,"big"):utils$9.split32(this.h,"big")};function ch64_hi(et,tt,rt,nt,lt){var ut=et&rt^~et&lt;return ut<0&&(ut+=4294967296),ut}function ch64_lo(et,tt,rt,nt,lt,ut){var dt=tt&nt^~tt&ut;return dt<0&&(dt+=4294967296),dt}function maj64_hi(et,tt,rt,nt,lt){var ut=et&rt^et&lt^rt&lt;return ut<0&&(ut+=4294967296),ut}function maj64_lo(et,tt,rt,nt,lt,ut){var dt=tt&nt^tt&ut^nt&ut;return dt<0&&(dt+=4294967296),dt}function s0_512_hi(et,tt){var rt=rotr64_hi(et,tt,28),nt=rotr64_hi(tt,et,2),lt=rotr64_hi(tt,et,7),ut=rt^nt^lt;return ut<0&&(ut+=4294967296),ut}function s0_512_lo(et,tt){var rt=rotr64_lo(et,tt,28),nt=rotr64_lo(tt,et,2),lt=rotr64_lo(tt,et,7),ut=rt^nt^lt;return ut<0&&(ut+=4294967296),ut}function s1_512_hi(et,tt){var rt=rotr64_hi(et,tt,14),nt=rotr64_hi(et,tt,18),lt=rotr64_hi(tt,et,9),ut=rt^nt^lt;return ut<0&&(ut+=4294967296),ut}function s1_512_lo(et,tt){var rt=rotr64_lo(et,tt,14),nt=rotr64_lo(et,tt,18),lt=rotr64_lo(tt,et,9),ut=rt^nt^lt;return ut<0&&(ut+=4294967296),ut}function g0_512_hi(et,tt){var rt=rotr64_hi(et,tt,1),nt=rotr64_hi(et,tt,8),lt=shr64_hi(et,tt,7),ut=rt^nt^lt;return ut<0&&(ut+=4294967296),ut}function g0_512_lo(et,tt){var rt=rotr64_lo(et,tt,1),nt=rotr64_lo(et,tt,8),lt=shr64_lo(et,tt,7),ut=rt^nt^lt;return ut<0&&(ut+=4294967296),ut}function g1_512_hi(et,tt){var rt=rotr64_hi(et,tt,19),nt=rotr64_hi(tt,et,29),lt=shr64_hi(et,tt,6),ut=rt^nt^lt;return ut<0&&(ut+=4294967296),ut}function g1_512_lo(et,tt){var rt=rotr64_lo(et,tt,19),nt=rotr64_lo(tt,et,29),lt=shr64_lo(et,tt,6),ut=rt^nt^lt;return ut<0&&(ut+=4294967296),ut}var utils$8=utils$f,SHA512=_512;function SHA384(){if(!(this instanceof SHA384))return new SHA384;SHA512.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}utils$8.inherits(SHA384,SHA512);var _384=SHA384;SHA384.blockSize=1024;SHA384.outSize=384;SHA384.hmacStrength=192;SHA384.padLength=128;SHA384.prototype._digest=function(tt){return tt==="hex"?utils$8.toHex32(this.h.slice(0,12),"big"):utils$8.split32(this.h.slice(0,12),"big")};sha.sha1=_1;sha.sha224=_224;sha.sha256=_256;sha.sha384=_384;sha.sha512=_512;var ripemd={},utils$7=utils$f,common=common$5,rotl32=utils$7.rotl32,sum32=utils$7.sum32,sum32_3=utils$7.sum32_3,sum32_4=utils$7.sum32_4,BlockHash=common.BlockHash;function RIPEMD160(){if(!(this instanceof RIPEMD160))return new RIPEMD160;BlockHash.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}utils$7.inherits(RIPEMD160,BlockHash);ripemd.ripemd160=RIPEMD160;RIPEMD160.blockSize=512;RIPEMD160.outSize=160;RIPEMD160.hmacStrength=192;RIPEMD160.padLength=64;RIPEMD160.prototype._update=function(tt,rt){for(var nt=this.h[0],lt=this.h[1],ut=this.h[2],dt=this.h[3],pt=this.h[4],ht=nt,mt=lt,xt=ut,Mt=dt,vt=pt,Ot=0;Ot<80;Ot++){var At=sum32(rotl32(sum32_4(nt,f(Ot,lt,ut,dt),tt[r[Ot]+rt],K(Ot)),s[Ot]),pt);nt=pt,pt=dt,dt=rotl32(ut,10),ut=lt,lt=At,At=sum32(rotl32(sum32_4(ht,f(79-Ot,mt,xt,Mt),tt[rh[Ot]+rt],Kh(Ot)),sh[Ot]),vt),ht=vt,vt=Mt,Mt=rotl32(xt,10),xt=mt,mt=At}At=sum32_3(this.h[1],ut,Mt),this.h[1]=sum32_3(this.h[2],dt,vt),this.h[2]=sum32_3(this.h[3],pt,ht),this.h[3]=sum32_3(this.h[4],nt,mt),this.h[4]=sum32_3(this.h[0],lt,xt),this.h[0]=At};RIPEMD160.prototype._digest=function(tt){return tt==="hex"?utils$7.toHex32(this.h,"little"):utils$7.split32(this.h,"little")};function f(et,tt,rt,nt){return et<=15?tt^rt^nt:et<=31?tt&rt|~tt&nt:et<=47?(tt|~rt)^nt:et<=63?tt&nt|rt&~nt:tt^(rt|~nt)}function K(et){return et<=15?0:et<=31?1518500249:et<=47?1859775393:et<=63?2400959708:2840853838}function Kh(et){return et<=15?1352829926:et<=31?1548603684:et<=47?1836072691:et<=63?2053994217:0}var r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],rh=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sh=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],utils$6=utils$f,assert$6=minimalisticAssert;function Hmac(et,tt,rt){if(!(this instanceof Hmac))return new Hmac(et,tt,rt);this.Hash=et,this.blockSize=et.blockSize/8,this.outSize=et.outSize/8,this.inner=null,this.outer=null,this._init(utils$6.toArray(tt,rt))}var hmac=Hmac;Hmac.prototype._init=function(tt){tt.length>this.blockSize&&(tt=new this.Hash().update(tt).digest()),assert$6(tt.length<=this.blockSize);for(var rt=tt.length;rt<this.blockSize;rt++)tt.push(0);for(rt=0;rt<tt.length;rt++)tt[rt]^=54;for(this.inner=new this.Hash().update(tt),rt=0;rt<tt.length;rt++)tt[rt]^=106;this.outer=new this.Hash().update(tt)};Hmac.prototype.update=function(tt,rt){return this.inner.update(tt,rt),this};Hmac.prototype.digest=function(tt){return this.outer.update(this.inner.digest()),this.outer.digest(tt)};(function(et){var tt=et;tt.utils=utils$f,tt.common=common$5,tt.sha=sha,tt.ripemd=ripemd,tt.hmac=hmac,tt.sha1=tt.sha.sha1,tt.sha256=tt.sha.sha256,tt.sha224=tt.sha.sha224,tt.sha384=tt.sha.sha384,tt.sha512=tt.sha.sha512,tt.ripemd160=tt.ripemd.ripemd160})(hash$2);var secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1}(function(et){var tt=et,rt=hash$2,nt=curve,lt=utils$l,ut=lt.assert;function dt(mt){mt.type==="short"?this.curve=new nt.short(mt):mt.type==="edwards"?this.curve=new nt.edwards(mt):this.curve=new nt.mont(mt),this.g=this.curve.g,this.n=this.curve.n,this.hash=mt.hash,ut(this.g.validate(),"Invalid curve"),ut(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}tt.PresetCurve=dt;function pt(mt,xt){Object.defineProperty(tt,mt,{configurable:!0,enumerable:!0,get:function(){var Mt=new dt(xt);return Object.defineProperty(tt,mt,{configurable:!0,enumerable:!0,value:Mt}),Mt}})}pt("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:rt.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),pt("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:rt.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),pt("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:rt.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),pt("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:rt.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),pt("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:rt.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),pt("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:rt.sha256,gRed:!1,g:["9"]}),pt("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:rt.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var ht;try{ht=requireSecp256k1()}catch{ht=void 0}pt("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:rt.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",ht]})})(curves$1);var hash$1=hash$2,utils$5=utils$k,assert$5=minimalisticAssert;function HmacDRBG(et){if(!(this instanceof HmacDRBG))return new HmacDRBG(et);this.hash=et.hash,this.predResist=!!et.predResist,this.outLen=this.hash.outSize,this.minEntropy=et.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var tt=utils$5.toArray(et.entropy,et.entropyEnc||"hex"),rt=utils$5.toArray(et.nonce,et.nonceEnc||"hex"),nt=utils$5.toArray(et.pers,et.persEnc||"hex");assert$5(tt.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(tt,rt,nt)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(tt,rt,nt){var lt=tt.concat(rt).concat(nt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var ut=0;ut<this.V.length;ut++)this.K[ut]=0,this.V[ut]=1;this._update(lt),this._reseed=1,this.reseedInterval=281474976710656};HmacDRBG.prototype._hmac=function(){return new hash$1.hmac(this.hash,this.K)};HmacDRBG.prototype._update=function(tt){var rt=this._hmac().update(this.V).update([0]);tt&&(rt=rt.update(tt)),this.K=rt.digest(),this.V=this._hmac().update(this.V).digest(),tt&&(this.K=this._hmac().update(this.V).update([1]).update(tt).digest(),this.V=this._hmac().update(this.V).digest())};HmacDRBG.prototype.reseed=function(tt,rt,nt,lt){typeof rt!="string"&&(lt=nt,nt=rt,rt=null),tt=utils$5.toArray(tt,rt),nt=utils$5.toArray(nt,lt),assert$5(tt.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(tt.concat(nt||[])),this._reseed=1};HmacDRBG.prototype.generate=function(tt,rt,nt,lt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof rt!="string"&&(lt=nt,nt=rt,rt=null),nt&&(nt=utils$5.toArray(nt,lt||"hex"),this._update(nt));for(var ut=[];ut.length<tt;)this.V=this._hmac().update(this.V).digest(),ut=ut.concat(this.V);var dt=ut.slice(0,tt);return this._update(nt),this._reseed++,utils$5.encode(dt,rt)};var BN$5=bnExports$2,utils$4=utils$l,assert$4=utils$4.assert;function KeyPair$2(et,tt){this.ec=et,this.priv=null,this.pub=null,tt.priv&&this._importPrivate(tt.priv,tt.privEnc),tt.pub&&this._importPublic(tt.pub,tt.pubEnc)}var key$1=KeyPair$2;KeyPair$2.fromPublic=function(tt,rt,nt){return rt instanceof KeyPair$2?rt:new KeyPair$2(tt,{pub:rt,pubEnc:nt})};KeyPair$2.fromPrivate=function(tt,rt,nt){return rt instanceof KeyPair$2?rt:new KeyPair$2(tt,{priv:rt,privEnc:nt})};KeyPair$2.prototype.validate=function(){var tt=this.getPublic();return tt.isInfinity()?{result:!1,reason:"Invalid public key"}:tt.validate()?tt.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};KeyPair$2.prototype.getPublic=function(tt,rt){return typeof tt=="string"&&(rt=tt,tt=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),rt?this.pub.encode(rt,tt):this.pub};KeyPair$2.prototype.getPrivate=function(tt){return tt==="hex"?this.priv.toString(16,2):this.priv};KeyPair$2.prototype._importPrivate=function(tt,rt){this.priv=new BN$5(tt,rt||16),this.priv=this.priv.umod(this.ec.curve.n)};KeyPair$2.prototype._importPublic=function(tt,rt){if(tt.x||tt.y){this.ec.curve.type==="mont"?assert$4(tt.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&assert$4(tt.x&&tt.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(tt.x,tt.y);return}this.pub=this.ec.curve.decodePoint(tt,rt)};KeyPair$2.prototype.derive=function(tt){return tt.validate()||assert$4(tt.validate(),"public point not validated"),tt.mul(this.priv).getX()};KeyPair$2.prototype.sign=function(tt,rt,nt){return this.ec.sign(tt,this,rt,nt)};KeyPair$2.prototype.verify=function(tt,rt){return this.ec.verify(tt,rt,this)};KeyPair$2.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var BN$4=bnExports$2,utils$3=utils$l,assert$3=utils$3.assert;function Signature$2(et,tt){if(et instanceof Signature$2)return et;this._importDER(et,tt)||(assert$3(et.r&&et.s,"Signature without r or s"),this.r=new BN$4(et.r,16),this.s=new BN$4(et.s,16),et.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=et.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(et,tt){var rt=et[tt.place++];if(!(rt&128))return rt;var nt=rt&15;if(nt===0||nt>4||et[tt.place]===0)return!1;for(var lt=0,ut=0,dt=tt.place;ut<nt;ut++,dt++)lt<<=8,lt|=et[dt],lt>>>=0;return lt<=127?!1:(tt.place=dt,lt)}function rmPadding(et){for(var tt=0,rt=et.length-1;!et[tt]&&!(et[tt+1]&128)&&tt<rt;)tt++;return tt===0?et:et.slice(tt)}Signature$2.prototype._importDER=function(tt,rt){tt=utils$3.toArray(tt,rt);var nt=new Position;if(tt[nt.place++]!==48)return!1;var lt=getLength(tt,nt);if(lt===!1||lt+nt.place!==tt.length||tt[nt.place++]!==2)return!1;var ut=getLength(tt,nt);if(ut===!1||tt[nt.place]&128)return!1;var dt=tt.slice(nt.place,ut+nt.place);if(nt.place+=ut,tt[nt.place++]!==2)return!1;var pt=getLength(tt,nt);if(pt===!1||tt.length!==pt+nt.place||tt[nt.place]&128)return!1;var ht=tt.slice(nt.place,pt+nt.place);if(dt[0]===0)if(dt[1]&128)dt=dt.slice(1);else return!1;if(ht[0]===0)if(ht[1]&128)ht=ht.slice(1);else return!1;return this.r=new BN$4(dt),this.s=new BN$4(ht),this.recoveryParam=null,!0};function constructLength(et,tt){if(tt<128){et.push(tt);return}var rt=1+(Math.log(tt)/Math.LN2>>>3);for(et.push(rt|128);--rt;)et.push(tt>>>(rt<<3)&255);et.push(tt)}Signature$2.prototype.toDER=function(tt){var rt=this.r.toArray(),nt=this.s.toArray();for(rt[0]&128&&(rt=[0].concat(rt)),nt[0]&128&&(nt=[0].concat(nt)),rt=rmPadding(rt),nt=rmPadding(nt);!nt[0]&&!(nt[1]&128);)nt=nt.slice(1);var lt=[2];constructLength(lt,rt.length),lt=lt.concat(rt),lt.push(2),constructLength(lt,nt.length);var ut=lt.concat(nt),dt=[48];return constructLength(dt,ut.length),dt=dt.concat(ut),utils$3.encode(dt,tt)};var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var et=bnExports$2,tt=hmacDrbg,rt=utils$l,nt=curves$1,lt=requireBrorand(),ut=rt.assert,dt=key$1,pt=signature$1;function ht(mt){if(!(this instanceof ht))return new ht(mt);typeof mt=="string"&&(ut(Object.prototype.hasOwnProperty.call(nt,mt),"Unknown curve "+mt),mt=nt[mt]),mt instanceof nt.PresetCurve&&(mt={curve:mt}),this.curve=mt.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=mt.curve.g,this.g.precompute(mt.curve.n.bitLength()+1),this.hash=mt.hash||mt.curve.hash}return ec=ht,ht.prototype.keyPair=function(xt){return new dt(this,xt)},ht.prototype.keyFromPrivate=function(xt,Mt){return dt.fromPrivate(this,xt,Mt)},ht.prototype.keyFromPublic=function(xt,Mt){return dt.fromPublic(this,xt,Mt)},ht.prototype.genKeyPair=function(xt){xt||(xt={});for(var Mt=new tt({hash:this.hash,pers:xt.pers,persEnc:xt.persEnc||"utf8",entropy:xt.entropy||lt(this.hash.hmacStrength),entropyEnc:xt.entropy&&xt.entropyEnc||"utf8",nonce:this.n.toArray()}),vt=this.n.byteLength(),Ot=this.n.sub(new et(2));;){var At=new et(Mt.generate(vt));if(!(At.cmp(Ot)>0))return At.iaddn(1),this.keyFromPrivate(At)}},ht.prototype._truncateToN=function(xt,Mt){var vt=xt.byteLength()*8-this.n.bitLength();return vt>0&&(xt=xt.ushrn(vt)),!Mt&&xt.cmp(this.n)>=0?xt.sub(this.n):xt},ht.prototype.sign=function(xt,Mt,vt,Ot){typeof vt=="object"&&(Ot=vt,vt=null),Ot||(Ot={}),Mt=this.keyFromPrivate(Mt,vt),xt=this._truncateToN(new et(xt,16));for(var At=this.n.byteLength(),Rt=Mt.getPrivate().toArray("be",At),zt=xt.toArray("be",At),Tt=new tt({hash:this.hash,entropy:Rt,nonce:zt,pers:Ot.pers,persEnc:Ot.persEnc||"utf8"}),Ct=this.n.sub(new et(1)),It=0;;It++){var Dt=Ot.k?Ot.k(It):new et(Tt.generate(this.n.byteLength()));if(Dt=this._truncateToN(Dt,!0),!(Dt.cmpn(1)<=0||Dt.cmp(Ct)>=0)){var kt=this.g.mul(Dt);if(!kt.isInfinity()){var qt=kt.getX(),Nt=qt.umod(this.n);if(Nt.cmpn(0)!==0){var Yt=Dt.invm(this.n).mul(Nt.mul(Mt.getPrivate()).iadd(xt));if(Yt=Yt.umod(this.n),Yt.cmpn(0)!==0){var Kt=(kt.getY().isOdd()?1:0)|(qt.cmp(Nt)!==0?2:0);return Ot.canonical&&Yt.cmp(this.nh)>0&&(Yt=this.n.sub(Yt),Kt^=1),new pt({r:Nt,s:Yt,recoveryParam:Kt})}}}}}},ht.prototype.verify=function(xt,Mt,vt,Ot){xt=this._truncateToN(new et(xt,16)),vt=this.keyFromPublic(vt,Ot),Mt=new pt(Mt,"hex");var At=Mt.r,Rt=Mt.s;if(At.cmpn(1)<0||At.cmp(this.n)>=0||Rt.cmpn(1)<0||Rt.cmp(this.n)>=0)return!1;var zt=Rt.invm(this.n),Tt=zt.mul(xt).umod(this.n),Ct=zt.mul(At).umod(this.n),It;return this.curve._maxwellTrick?(It=this.g.jmulAdd(Tt,vt.getPublic(),Ct),It.isInfinity()?!1:It.eqXToP(At)):(It=this.g.mulAdd(Tt,vt.getPublic(),Ct),It.isInfinity()?!1:It.getX().umod(this.n).cmp(At)===0)},ht.prototype.recoverPubKey=function(mt,xt,Mt,vt){ut((3&Mt)===Mt,"The recovery param is more than two bits"),xt=new pt(xt,vt);var Ot=this.n,At=new et(mt),Rt=xt.r,zt=xt.s,Tt=Mt&1,Ct=Mt>>1;if(Rt.cmp(this.curve.p.umod(this.curve.n))>=0&&Ct)throw new Error("Unable to find sencond key candinate");Ct?Rt=this.curve.pointFromX(Rt.add(this.curve.n),Tt):Rt=this.curve.pointFromX(Rt,Tt);var It=xt.r.invm(Ot),Dt=Ot.sub(At).mul(It).umod(Ot),kt=zt.mul(It).umod(Ot);return this.g.mulAdd(Dt,Rt,kt)},ht.prototype.getKeyRecoveryParam=function(mt,xt,Mt,vt){if(xt=new pt(xt,vt),xt.recoveryParam!==null)return xt.recoveryParam;for(var Ot=0;Ot<4;Ot++){var At;try{At=this.recoverPubKey(mt,xt,Ot)}catch{continue}if(At.eq(Mt))return Ot}throw new Error("Unable to find valid recovery factor")},ec}var utils$2=utils$l,assert$2=utils$2.assert,parseBytes$2=utils$2.parseBytes,cachedProperty$1=utils$2.cachedProperty;function KeyPair$1(et,tt){this.eddsa=et,this._secret=parseBytes$2(tt.secret),et.isPoint(tt.pub)?this._pub=tt.pub:this._pubBytes=parseBytes$2(tt.pub)}KeyPair$1.fromPublic=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{pub:rt})};KeyPair$1.fromSecret=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{secret:rt})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var tt=this.eddsa,rt=this.hash(),nt=tt.encodingLength-1,lt=rt.slice(0,tt.encodingLength);return lt[0]&=248,lt[nt]&=127,lt[nt]|=64,lt});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(tt){return assert$2(this._secret,"KeyPair can only verify"),this.eddsa.sign(tt,this)};KeyPair$1.prototype.verify=function(tt,rt){return this.eddsa.verify(tt,rt,this)};KeyPair$1.prototype.getSecret=function(tt){return assert$2(this._secret,"KeyPair is public only"),utils$2.encode(this.secret(),tt)};KeyPair$1.prototype.getPublic=function(tt){return utils$2.encode(this.pubBytes(),tt)};var key=KeyPair$1,BN$3=bnExports$2,utils$1=utils$l,assert$1=utils$1.assert,cachedProperty=utils$1.cachedProperty,parseBytes$1=utils$1.parseBytes;function Signature$1(et,tt){this.eddsa=et,typeof tt!="object"&&(tt=parseBytes$1(tt)),Array.isArray(tt)&&(assert$1(tt.length===et.encodingLength*2,"Signature has invalid size"),tt={R:tt.slice(0,et.encodingLength),S:tt.slice(et.encodingLength)}),assert$1(tt.R&&tt.S,"Signature without R or S"),et.isPoint(tt.R)&&(this._R=tt.R),tt.S instanceof BN$3&&(this._S=tt.S),this._Rencoded=Array.isArray(tt.R)?tt.R:tt.Rencoded,this._Sencoded=Array.isArray(tt.S)?tt.S:tt.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$1.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash=hash$2,curves=curves$1,utils=utils$l,assert=utils.assert,parseBytes=utils.parseBytes,KeyPair=key,Signature=signature;function EDDSA(et){if(assert(et==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(et);et=curves[et].curve,this.curve=et,this.g=et.g,this.g.precompute(et.n.bitLength()+1),this.pointClass=et.point().constructor,this.encodingLength=Math.ceil(et.n.bitLength()/8),this.hash=hash.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(tt,rt){tt=parseBytes(tt);var nt=this.keyFromSecret(rt),lt=this.hashInt(nt.messagePrefix(),tt),ut=this.g.mul(lt),dt=this.encodePoint(ut),pt=this.hashInt(dt,nt.pubBytes(),tt).mul(nt.priv()),ht=lt.add(pt).umod(this.curve.n);return this.makeSignature({R:ut,S:ht,Rencoded:dt})};EDDSA.prototype.verify=function(tt,rt,nt){if(tt=parseBytes(tt),rt=this.makeSignature(rt),rt.S().gte(rt.eddsa.curve.n)||rt.S().isNeg())return!1;var lt=this.keyFromPublic(nt),ut=this.hashInt(rt.Rencoded(),lt.pubBytes(),tt),dt=this.g.mul(rt.S()),pt=rt.R().add(lt.pub().mul(ut));return pt.eq(dt)};EDDSA.prototype.hashInt=function(){for(var tt=this.hash(),rt=0;rt<arguments.length;rt++)tt.update(arguments[rt]);return utils.intFromLE(tt.digest()).umod(this.curve.n)};EDDSA.prototype.keyFromPublic=function(tt){return KeyPair.fromPublic(this,tt)};EDDSA.prototype.keyFromSecret=function(tt){return KeyPair.fromSecret(this,tt)};EDDSA.prototype.makeSignature=function(tt){return tt instanceof Signature?tt:new Signature(this,tt)};EDDSA.prototype.encodePoint=function(tt){var rt=tt.getY().toArray("le",this.encodingLength);return rt[this.encodingLength-1]|=tt.getX().isOdd()?128:0,rt};EDDSA.prototype.decodePoint=function(tt){tt=utils.parseBytes(tt);var rt=tt.length-1,nt=tt.slice(0,rt).concat(tt[rt]&-129),lt=(tt[rt]&128)!==0,ut=utils.intFromLE(nt);return this.curve.pointFromY(ut,lt)};EDDSA.prototype.encodeInt=function(tt){return tt.toArray("le",this.encodingLength)};EDDSA.prototype.decodeInt=function(tt){return utils.intFromLE(tt)};EDDSA.prototype.isPoint=function(tt){return tt instanceof this.pointClass};var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,function(et){var tt=et;tt.version=require$$0.version,tt.utils=utils$l,tt.rand=requireBrorand(),tt.curve=curve,tt.curves=curves$1,tt.ec=requireEc(),tt.eddsa=eddsa}(elliptic)),elliptic}var bn={exports:{}};bn.exports;(function(et){(function(tt,rt){function nt(Ft,$t){if(!Ft)throw new Error($t||"Assertion failed")}function lt(Ft,$t){Ft.super_=$t;var jt=function(){};jt.prototype=$t.prototype,Ft.prototype=new jt,Ft.prototype.constructor=Ft}function ut(Ft,$t,jt){if(ut.isBN(Ft))return Ft;this.negative=0,this.words=null,this.length=0,this.red=null,Ft!==null&&(($t==="le"||$t==="be")&&(jt=$t,$t=10),this._init(Ft||0,$t||10,jt||"be"))}typeof tt=="object"?tt.exports=ut:rt.BN=ut,ut.BN=ut,ut.wordSize=26;var dt;try{typeof window<"u"&&typeof window.Buffer<"u"?dt=window.Buffer:dt=dist$5.Buffer}catch{}ut.isBN=function($t){return $t instanceof ut?!0:$t!==null&&typeof $t=="object"&&$t.constructor.wordSize===ut.wordSize&&Array.isArray($t.words)},ut.max=function($t,jt){return $t.cmp(jt)>0?$t:jt},ut.min=function($t,jt){return $t.cmp(jt)<0?$t:jt},ut.prototype._init=function($t,jt,Wt){if(typeof $t=="number")return this._initNumber($t,jt,Wt);if(typeof $t=="object")return this._initArray($t,jt,Wt);jt==="hex"&&(jt=16),nt(jt===(jt|0)&&jt>=2&&jt<=36),$t=$t.toString().replace(/\s+/g,"");var Ut=0;$t[0]==="-"&&(Ut++,this.negative=1),Ut<$t.length&&(jt===16?this._parseHex($t,Ut,Wt):(this._parseBase($t,jt,Ut),Wt==="le"&&this._initArray(this.toArray(),jt,Wt)))},ut.prototype._initNumber=function($t,jt,Wt){$t<0&&(this.negative=1,$t=-$t),$t<67108864?(this.words=[$t&67108863],this.length=1):$t<4503599627370496?(this.words=[$t&67108863,$t/67108864&67108863],this.length=2):(nt($t<9007199254740992),this.words=[$t&67108863,$t/67108864&67108863,1],this.length=3),Wt==="le"&&this._initArray(this.toArray(),jt,Wt)},ut.prototype._initArray=function($t,jt,Wt){if(nt(typeof $t.length=="number"),$t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil($t.length/3),this.words=new Array(this.length);for(var Ut=0;Ut<this.length;Ut++)this.words[Ut]=0;var Vt,Ht,Gt=0;if(Wt==="be")for(Ut=$t.length-1,Vt=0;Ut>=0;Ut-=3)Ht=$t[Ut]|$t[Ut-1]<<8|$t[Ut-2]<<16,this.words[Vt]|=Ht<<Gt&67108863,this.words[Vt+1]=Ht>>>26-Gt&67108863,Gt+=24,Gt>=26&&(Gt-=26,Vt++);else if(Wt==="le")for(Ut=0,Vt=0;Ut<$t.length;Ut+=3)Ht=$t[Ut]|$t[Ut+1]<<8|$t[Ut+2]<<16,this.words[Vt]|=Ht<<Gt&67108863,this.words[Vt+1]=Ht>>>26-Gt&67108863,Gt+=24,Gt>=26&&(Gt-=26,Vt++);return this._strip()};function pt(Ft,$t){var jt=Ft.charCodeAt($t);if(jt>=48&&jt<=57)return jt-48;if(jt>=65&&jt<=70)return jt-55;if(jt>=97&&jt<=102)return jt-87;nt(!1,"Invalid character in "+Ft)}function ht(Ft,$t,jt){var Wt=pt(Ft,jt);return jt-1>=$t&&(Wt|=pt(Ft,jt-1)<<4),Wt}ut.prototype._parseHex=function($t,jt,Wt){this.length=Math.ceil(($t.length-jt)/6),this.words=new Array(this.length);for(var Ut=0;Ut<this.length;Ut++)this.words[Ut]=0;var Vt=0,Ht=0,Gt;if(Wt==="be")for(Ut=$t.length-1;Ut>=jt;Ut-=2)Gt=ht($t,jt,Ut)<<Vt,this.words[Ht]|=Gt&67108863,Vt>=18?(Vt-=18,Ht+=1,this.words[Ht]|=Gt>>>26):Vt+=8;else{var Zt=$t.length-jt;for(Ut=Zt%2===0?jt+1:jt;Ut<$t.length;Ut+=2)Gt=ht($t,jt,Ut)<<Vt,this.words[Ht]|=Gt&67108863,Vt>=18?(Vt-=18,Ht+=1,this.words[Ht]|=Gt>>>26):Vt+=8}this._strip()};function mt(Ft,$t,jt,Wt){for(var Ut=0,Vt=0,Ht=Math.min(Ft.length,jt),Gt=$t;Gt<Ht;Gt++){var Zt=Ft.charCodeAt(Gt)-48;Ut*=Wt,Zt>=49?Vt=Zt-49+10:Zt>=17?Vt=Zt-17+10:Vt=Zt,nt(Zt>=0&&Vt<Wt,"Invalid character"),Ut+=Vt}return Ut}ut.prototype._parseBase=function($t,jt,Wt){this.words=[0],this.length=1;for(var Ut=0,Vt=1;Vt<=67108863;Vt*=jt)Ut++;Ut--,Vt=Vt/jt|0;for(var Ht=$t.length-Wt,Gt=Ht%Ut,Zt=Math.min(Ht,Ht-Gt)+Wt,Xt=0,er=Wt;er<Zt;er+=Ut)Xt=mt($t,er,er+Ut,jt),this.imuln(Vt),this.words[0]+Xt<67108864?this.words[0]+=Xt:this._iaddn(Xt);if(Gt!==0){var nr=1;for(Xt=mt($t,er,$t.length,jt),er=0;er<Gt;er++)nr*=jt;this.imuln(nr),this.words[0]+Xt<67108864?this.words[0]+=Xt:this._iaddn(Xt)}this._strip()},ut.prototype.copy=function($t){$t.words=new Array(this.length);for(var jt=0;jt<this.length;jt++)$t.words[jt]=this.words[jt];$t.length=this.length,$t.negative=this.negative,$t.red=this.red};function xt(Ft,$t){Ft.words=$t.words,Ft.length=$t.length,Ft.negative=$t.negative,Ft.red=$t.red}if(ut.prototype._move=function($t){xt($t,this)},ut.prototype.clone=function(){var $t=new ut(null);return this.copy($t),$t},ut.prototype._expand=function($t){for(;this.length<$t;)this.words[this.length++]=0;return this},ut.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},ut.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{ut.prototype[Symbol.for("nodejs.util.inspect.custom")]=Mt}catch{ut.prototype.inspect=Mt}else ut.prototype.inspect=Mt;function Mt(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var vt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],Ot=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],At=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];ut.prototype.toString=function($t,jt){$t=$t||10,jt=jt|0||1;var Wt;if($t===16||$t==="hex"){Wt="";for(var Ut=0,Vt=0,Ht=0;Ht<this.length;Ht++){var Gt=this.words[Ht],Zt=((Gt<<Ut|Vt)&16777215).toString(16);Vt=Gt>>>24-Ut&16777215,Ut+=2,Ut>=26&&(Ut-=26,Ht--),Vt!==0||Ht!==this.length-1?Wt=vt[6-Zt.length]+Zt+Wt:Wt=Zt+Wt}for(Vt!==0&&(Wt=Vt.toString(16)+Wt);Wt.length%jt!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}if($t===($t|0)&&$t>=2&&$t<=36){var Xt=Ot[$t],er=At[$t];Wt="";var nr=this.clone();for(nr.negative=0;!nr.isZero();){var or=nr.modrn(er).toString($t);nr=nr.idivn(er),nr.isZero()?Wt=or+Wt:Wt=vt[Xt-or.length]+or+Wt}for(this.isZero()&&(Wt="0"+Wt);Wt.length%jt!==0;)Wt="0"+Wt;return this.negative!==0&&(Wt="-"+Wt),Wt}nt(!1,"Base should be between 2 and 36")},ut.prototype.toNumber=function(){var $t=this.words[0];return this.length===2?$t+=this.words[1]*67108864:this.length===3&&this.words[2]===1?$t+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-$t:$t},ut.prototype.toJSON=function(){return this.toString(16,2)},dt&&(ut.prototype.toBuffer=function($t,jt){return this.toArrayLike(dt,$t,jt)}),ut.prototype.toArray=function($t,jt){return this.toArrayLike(Array,$t,jt)};var Rt=function($t,jt){return $t.allocUnsafe?$t.allocUnsafe(jt):new $t(jt)};ut.prototype.toArrayLike=function($t,jt,Wt){this._strip();var Ut=this.byteLength(),Vt=Wt||Math.max(1,Ut);nt(Ut<=Vt,"byte array longer than desired length"),nt(Vt>0,"Requested array length <= 0");var Ht=Rt($t,Vt),Gt=jt==="le"?"LE":"BE";return this["_toArrayLike"+Gt](Ht,Ut),Ht},ut.prototype._toArrayLikeLE=function($t,jt){for(var Wt=0,Ut=0,Vt=0,Ht=0;Vt<this.length;Vt++){var Gt=this.words[Vt]<<Ht|Ut;$t[Wt++]=Gt&255,Wt<$t.length&&($t[Wt++]=Gt>>8&255),Wt<$t.length&&($t[Wt++]=Gt>>16&255),Ht===6?(Wt<$t.length&&($t[Wt++]=Gt>>24&255),Ut=0,Ht=0):(Ut=Gt>>>24,Ht+=2)}if(Wt<$t.length)for($t[Wt++]=Ut;Wt<$t.length;)$t[Wt++]=0},ut.prototype._toArrayLikeBE=function($t,jt){for(var Wt=$t.length-1,Ut=0,Vt=0,Ht=0;Vt<this.length;Vt++){var Gt=this.words[Vt]<<Ht|Ut;$t[Wt--]=Gt&255,Wt>=0&&($t[Wt--]=Gt>>8&255),Wt>=0&&($t[Wt--]=Gt>>16&255),Ht===6?(Wt>=0&&($t[Wt--]=Gt>>24&255),Ut=0,Ht=0):(Ut=Gt>>>24,Ht+=2)}if(Wt>=0)for($t[Wt--]=Ut;Wt>=0;)$t[Wt--]=0},Math.clz32?ut.prototype._countBits=function($t){return 32-Math.clz32($t)}:ut.prototype._countBits=function($t){var jt=$t,Wt=0;return jt>=4096&&(Wt+=13,jt>>>=13),jt>=64&&(Wt+=7,jt>>>=7),jt>=8&&(Wt+=4,jt>>>=4),jt>=2&&(Wt+=2,jt>>>=2),Wt+jt},ut.prototype._zeroBits=function($t){if($t===0)return 26;var jt=$t,Wt=0;return jt&8191||(Wt+=13,jt>>>=13),jt&127||(Wt+=7,jt>>>=7),jt&15||(Wt+=4,jt>>>=4),jt&3||(Wt+=2,jt>>>=2),jt&1||Wt++,Wt},ut.prototype.bitLength=function(){var $t=this.words[this.length-1],jt=this._countBits($t);return(this.length-1)*26+jt};function zt(Ft){for(var $t=new Array(Ft.bitLength()),jt=0;jt<$t.length;jt++){var Wt=jt/26|0,Ut=jt%26;$t[jt]=Ft.words[Wt]>>>Ut&1}return $t}ut.prototype.zeroBits=function(){if(this.isZero())return 0;for(var $t=0,jt=0;jt<this.length;jt++){var Wt=this._zeroBits(this.words[jt]);if($t+=Wt,Wt!==26)break}return $t},ut.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},ut.prototype.toTwos=function($t){return this.negative!==0?this.abs().inotn($t).iaddn(1):this.clone()},ut.prototype.fromTwos=function($t){return this.testn($t-1)?this.notn($t).iaddn(1).ineg():this.clone()},ut.prototype.isNeg=function(){return this.negative!==0},ut.prototype.neg=function(){return this.clone().ineg()},ut.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},ut.prototype.iuor=function($t){for(;this.length<$t.length;)this.words[this.length++]=0;for(var jt=0;jt<$t.length;jt++)this.words[jt]=this.words[jt]|$t.words[jt];return this._strip()},ut.prototype.ior=function($t){return nt((this.negative|$t.negative)===0),this.iuor($t)},ut.prototype.or=function($t){return this.length>$t.length?this.clone().ior($t):$t.clone().ior(this)},ut.prototype.uor=function($t){return this.length>$t.length?this.clone().iuor($t):$t.clone().iuor(this)},ut.prototype.iuand=function($t){var jt;this.length>$t.length?jt=$t:jt=this;for(var Wt=0;Wt<jt.length;Wt++)this.words[Wt]=this.words[Wt]&$t.words[Wt];return this.length=jt.length,this._strip()},ut.prototype.iand=function($t){return nt((this.negative|$t.negative)===0),this.iuand($t)},ut.prototype.and=function($t){return this.length>$t.length?this.clone().iand($t):$t.clone().iand(this)},ut.prototype.uand=function($t){return this.length>$t.length?this.clone().iuand($t):$t.clone().iuand(this)},ut.prototype.iuxor=function($t){var jt,Wt;this.length>$t.length?(jt=this,Wt=$t):(jt=$t,Wt=this);for(var Ut=0;Ut<Wt.length;Ut++)this.words[Ut]=jt.words[Ut]^Wt.words[Ut];if(this!==jt)for(;Ut<jt.length;Ut++)this.words[Ut]=jt.words[Ut];return this.length=jt.length,this._strip()},ut.prototype.ixor=function($t){return nt((this.negative|$t.negative)===0),this.iuxor($t)},ut.prototype.xor=function($t){return this.length>$t.length?this.clone().ixor($t):$t.clone().ixor(this)},ut.prototype.uxor=function($t){return this.length>$t.length?this.clone().iuxor($t):$t.clone().iuxor(this)},ut.prototype.inotn=function($t){nt(typeof $t=="number"&&$t>=0);var jt=Math.ceil($t/26)|0,Wt=$t%26;this._expand(jt),Wt>0&&jt--;for(var Ut=0;Ut<jt;Ut++)this.words[Ut]=~this.words[Ut]&67108863;return Wt>0&&(this.words[Ut]=~this.words[Ut]&67108863>>26-Wt),this._strip()},ut.prototype.notn=function($t){return this.clone().inotn($t)},ut.prototype.setn=function($t,jt){nt(typeof $t=="number"&&$t>=0);var Wt=$t/26|0,Ut=$t%26;return this._expand(Wt+1),jt?this.words[Wt]=this.words[Wt]|1<<Ut:this.words[Wt]=this.words[Wt]&~(1<<Ut),this._strip()},ut.prototype.iadd=function($t){var jt;if(this.negative!==0&&$t.negative===0)return this.negative=0,jt=this.isub($t),this.negative^=1,this._normSign();if(this.negative===0&&$t.negative!==0)return $t.negative=0,jt=this.isub($t),$t.negative=1,jt._normSign();var Wt,Ut;this.length>$t.length?(Wt=this,Ut=$t):(Wt=$t,Ut=this);for(var Vt=0,Ht=0;Ht<Ut.length;Ht++)jt=(Wt.words[Ht]|0)+(Ut.words[Ht]|0)+Vt,this.words[Ht]=jt&67108863,Vt=jt>>>26;for(;Vt!==0&&Ht<Wt.length;Ht++)jt=(Wt.words[Ht]|0)+Vt,this.words[Ht]=jt&67108863,Vt=jt>>>26;if(this.length=Wt.length,Vt!==0)this.words[this.length]=Vt,this.length++;else if(Wt!==this)for(;Ht<Wt.length;Ht++)this.words[Ht]=Wt.words[Ht];return this},ut.prototype.add=function($t){var jt;return $t.negative!==0&&this.negative===0?($t.negative=0,jt=this.sub($t),$t.negative^=1,jt):$t.negative===0&&this.negative!==0?(this.negative=0,jt=$t.sub(this),this.negative=1,jt):this.length>$t.length?this.clone().iadd($t):$t.clone().iadd(this)},ut.prototype.isub=function($t){if($t.negative!==0){$t.negative=0;var jt=this.iadd($t);return $t.negative=1,jt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd($t),this.negative=1,this._normSign();var Wt=this.cmp($t);if(Wt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ut,Vt;Wt>0?(Ut=this,Vt=$t):(Ut=$t,Vt=this);for(var Ht=0,Gt=0;Gt<Vt.length;Gt++)jt=(Ut.words[Gt]|0)-(Vt.words[Gt]|0)+Ht,Ht=jt>>26,this.words[Gt]=jt&67108863;for(;Ht!==0&&Gt<Ut.length;Gt++)jt=(Ut.words[Gt]|0)+Ht,Ht=jt>>26,this.words[Gt]=jt&67108863;if(Ht===0&&Gt<Ut.length&&Ut!==this)for(;Gt<Ut.length;Gt++)this.words[Gt]=Ut.words[Gt];return this.length=Math.max(this.length,Gt),Ut!==this&&(this.negative=1),this._strip()},ut.prototype.sub=function($t){return this.clone().isub($t)};function Tt(Ft,$t,jt){jt.negative=$t.negative^Ft.negative;var Wt=Ft.length+$t.length|0;jt.length=Wt,Wt=Wt-1|0;var Ut=Ft.words[0]|0,Vt=$t.words[0]|0,Ht=Ut*Vt,Gt=Ht&67108863,Zt=Ht/67108864|0;jt.words[0]=Gt;for(var Xt=1;Xt<Wt;Xt++){for(var er=Zt>>>26,nr=Zt&67108863,or=Math.min(Xt,$t.length-1),rr=Math.max(0,Xt-Ft.length+1);rr<=or;rr++){var cr=Xt-rr|0;Ut=Ft.words[cr]|0,Vt=$t.words[rr]|0,Ht=Ut*Vt+nr,er+=Ht/67108864|0,nr=Ht&67108863}jt.words[Xt]=nr|0,Zt=er|0}return Zt!==0?jt.words[Xt]=Zt|0:jt.length--,jt._strip()}var Ct=function($t,jt,Wt){var Ut=$t.words,Vt=jt.words,Ht=Wt.words,Gt=0,Zt,Xt,er,nr=Ut[0]|0,or=nr&8191,rr=nr>>>13,cr=Ut[1]|0,ir=cr&8191,dr=cr>>>13,gr=Ut[2]|0,br=gr&8191,ar=gr>>>13,ur=Ut[3]|0,xr=ur&8191,Mr=ur>>>13,Ar=Ut[4]|0,Ir=Ar&8191,Rr=Ar>>>13,wr=Ut[5]|0,qr=wr&8191,Hr=wr>>>13,kr=Ut[6]|0,$r=kr&8191,yr=kr>>>13,Or=Ut[7]|0,Dr=Or&8191,Fr=Or>>>13,Yr=Ut[8]|0,Gr=Yr&8191,Jr=Yr>>>13,jr=Ut[9]|0,Zr=jr&8191,Xr=jr>>>13,cn=Vt[0]|0,Qr=cn&8191,rn=cn>>>13,_r=Vt[1]|0,ln=_r&8191,vn=_r>>>13,Cr=Vt[2]|0,gn=Cr&8191,xn=Cr>>>13,Vr=Vt[3]|0,fn=Vr&8191,pn=Vr>>>13,qn=Vt[4]|0,Bn=qn&8191,Kr=qn>>>13,Tr=Vt[5]|0,Pr=Tr&8191,an=Tr>>>13,nn=Vt[6]|0,Mn=nn&8191,An=nn>>>13,Vn=Vt[7]|0,Cn=Vn&8191,kn=Vn>>>13,Qn=Vt[8]|0,Gn=Qn&8191,Un=Qn>>>13,jn=Vt[9]|0,In=jn&8191,Kn=jn>>>13;Wt.negative=$t.negative^jt.negative,Wt.length=19,Zt=Math.imul(or,Qr),Xt=Math.imul(or,rn),Xt=Xt+Math.imul(rr,Qr)|0,er=Math.imul(rr,rn);var Wn=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,Zt=Math.imul(ir,Qr),Xt=Math.imul(ir,rn),Xt=Xt+Math.imul(dr,Qr)|0,er=Math.imul(dr,rn),Zt=Zt+Math.imul(or,ln)|0,Xt=Xt+Math.imul(or,vn)|0,Xt=Xt+Math.imul(rr,ln)|0,er=er+Math.imul(rr,vn)|0;var ao=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(ao>>>26)|0,ao&=67108863,Zt=Math.imul(br,Qr),Xt=Math.imul(br,rn),Xt=Xt+Math.imul(ar,Qr)|0,er=Math.imul(ar,rn),Zt=Zt+Math.imul(ir,ln)|0,Xt=Xt+Math.imul(ir,vn)|0,Xt=Xt+Math.imul(dr,ln)|0,er=er+Math.imul(dr,vn)|0,Zt=Zt+Math.imul(or,gn)|0,Xt=Xt+Math.imul(or,xn)|0,Xt=Xt+Math.imul(rr,gn)|0,er=er+Math.imul(rr,xn)|0;var _i=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(_i>>>26)|0,_i&=67108863,Zt=Math.imul(xr,Qr),Xt=Math.imul(xr,rn),Xt=Xt+Math.imul(Mr,Qr)|0,er=Math.imul(Mr,rn),Zt=Zt+Math.imul(br,ln)|0,Xt=Xt+Math.imul(br,vn)|0,Xt=Xt+Math.imul(ar,ln)|0,er=er+Math.imul(ar,vn)|0,Zt=Zt+Math.imul(ir,gn)|0,Xt=Xt+Math.imul(ir,xn)|0,Xt=Xt+Math.imul(dr,gn)|0,er=er+Math.imul(dr,xn)|0,Zt=Zt+Math.imul(or,fn)|0,Xt=Xt+Math.imul(or,pn)|0,Xt=Xt+Math.imul(rr,fn)|0,er=er+Math.imul(rr,pn)|0;var ho=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(ho>>>26)|0,ho&=67108863,Zt=Math.imul(Ir,Qr),Xt=Math.imul(Ir,rn),Xt=Xt+Math.imul(Rr,Qr)|0,er=Math.imul(Rr,rn),Zt=Zt+Math.imul(xr,ln)|0,Xt=Xt+Math.imul(xr,vn)|0,Xt=Xt+Math.imul(Mr,ln)|0,er=er+Math.imul(Mr,vn)|0,Zt=Zt+Math.imul(br,gn)|0,Xt=Xt+Math.imul(br,xn)|0,Xt=Xt+Math.imul(ar,gn)|0,er=er+Math.imul(ar,xn)|0,Zt=Zt+Math.imul(ir,fn)|0,Xt=Xt+Math.imul(ir,pn)|0,Xt=Xt+Math.imul(dr,fn)|0,er=er+Math.imul(dr,pn)|0,Zt=Zt+Math.imul(or,Bn)|0,Xt=Xt+Math.imul(or,Kr)|0,Xt=Xt+Math.imul(rr,Bn)|0,er=er+Math.imul(rr,Kr)|0;var So=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(So>>>26)|0,So&=67108863,Zt=Math.imul(qr,Qr),Xt=Math.imul(qr,rn),Xt=Xt+Math.imul(Hr,Qr)|0,er=Math.imul(Hr,rn),Zt=Zt+Math.imul(Ir,ln)|0,Xt=Xt+Math.imul(Ir,vn)|0,Xt=Xt+Math.imul(Rr,ln)|0,er=er+Math.imul(Rr,vn)|0,Zt=Zt+Math.imul(xr,gn)|0,Xt=Xt+Math.imul(xr,xn)|0,Xt=Xt+Math.imul(Mr,gn)|0,er=er+Math.imul(Mr,xn)|0,Zt=Zt+Math.imul(br,fn)|0,Xt=Xt+Math.imul(br,pn)|0,Xt=Xt+Math.imul(ar,fn)|0,er=er+Math.imul(ar,pn)|0,Zt=Zt+Math.imul(ir,Bn)|0,Xt=Xt+Math.imul(ir,Kr)|0,Xt=Xt+Math.imul(dr,Bn)|0,er=er+Math.imul(dr,Kr)|0,Zt=Zt+Math.imul(or,Pr)|0,Xt=Xt+Math.imul(or,an)|0,Xt=Xt+Math.imul(rr,Pr)|0,er=er+Math.imul(rr,an)|0;var ko=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(ko>>>26)|0,ko&=67108863,Zt=Math.imul($r,Qr),Xt=Math.imul($r,rn),Xt=Xt+Math.imul(yr,Qr)|0,er=Math.imul(yr,rn),Zt=Zt+Math.imul(qr,ln)|0,Xt=Xt+Math.imul(qr,vn)|0,Xt=Xt+Math.imul(Hr,ln)|0,er=er+Math.imul(Hr,vn)|0,Zt=Zt+Math.imul(Ir,gn)|0,Xt=Xt+Math.imul(Ir,xn)|0,Xt=Xt+Math.imul(Rr,gn)|0,er=er+Math.imul(Rr,xn)|0,Zt=Zt+Math.imul(xr,fn)|0,Xt=Xt+Math.imul(xr,pn)|0,Xt=Xt+Math.imul(Mr,fn)|0,er=er+Math.imul(Mr,pn)|0,Zt=Zt+Math.imul(br,Bn)|0,Xt=Xt+Math.imul(br,Kr)|0,Xt=Xt+Math.imul(ar,Bn)|0,er=er+Math.imul(ar,Kr)|0,Zt=Zt+Math.imul(ir,Pr)|0,Xt=Xt+Math.imul(ir,an)|0,Xt=Xt+Math.imul(dr,Pr)|0,er=er+Math.imul(dr,an)|0,Zt=Zt+Math.imul(or,Mn)|0,Xt=Xt+Math.imul(or,An)|0,Xt=Xt+Math.imul(rr,Mn)|0,er=er+Math.imul(rr,An)|0;var us=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(us>>>26)|0,us&=67108863,Zt=Math.imul(Dr,Qr),Xt=Math.imul(Dr,rn),Xt=Xt+Math.imul(Fr,Qr)|0,er=Math.imul(Fr,rn),Zt=Zt+Math.imul($r,ln)|0,Xt=Xt+Math.imul($r,vn)|0,Xt=Xt+Math.imul(yr,ln)|0,er=er+Math.imul(yr,vn)|0,Zt=Zt+Math.imul(qr,gn)|0,Xt=Xt+Math.imul(qr,xn)|0,Xt=Xt+Math.imul(Hr,gn)|0,er=er+Math.imul(Hr,xn)|0,Zt=Zt+Math.imul(Ir,fn)|0,Xt=Xt+Math.imul(Ir,pn)|0,Xt=Xt+Math.imul(Rr,fn)|0,er=er+Math.imul(Rr,pn)|0,Zt=Zt+Math.imul(xr,Bn)|0,Xt=Xt+Math.imul(xr,Kr)|0,Xt=Xt+Math.imul(Mr,Bn)|0,er=er+Math.imul(Mr,Kr)|0,Zt=Zt+Math.imul(br,Pr)|0,Xt=Xt+Math.imul(br,an)|0,Xt=Xt+Math.imul(ar,Pr)|0,er=er+Math.imul(ar,an)|0,Zt=Zt+Math.imul(ir,Mn)|0,Xt=Xt+Math.imul(ir,An)|0,Xt=Xt+Math.imul(dr,Mn)|0,er=er+Math.imul(dr,An)|0,Zt=Zt+Math.imul(or,Cn)|0,Xt=Xt+Math.imul(or,kn)|0,Xt=Xt+Math.imul(rr,Cn)|0,er=er+Math.imul(rr,kn)|0;var Jo=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Jo>>>26)|0,Jo&=67108863,Zt=Math.imul(Gr,Qr),Xt=Math.imul(Gr,rn),Xt=Xt+Math.imul(Jr,Qr)|0,er=Math.imul(Jr,rn),Zt=Zt+Math.imul(Dr,ln)|0,Xt=Xt+Math.imul(Dr,vn)|0,Xt=Xt+Math.imul(Fr,ln)|0,er=er+Math.imul(Fr,vn)|0,Zt=Zt+Math.imul($r,gn)|0,Xt=Xt+Math.imul($r,xn)|0,Xt=Xt+Math.imul(yr,gn)|0,er=er+Math.imul(yr,xn)|0,Zt=Zt+Math.imul(qr,fn)|0,Xt=Xt+Math.imul(qr,pn)|0,Xt=Xt+Math.imul(Hr,fn)|0,er=er+Math.imul(Hr,pn)|0,Zt=Zt+Math.imul(Ir,Bn)|0,Xt=Xt+Math.imul(Ir,Kr)|0,Xt=Xt+Math.imul(Rr,Bn)|0,er=er+Math.imul(Rr,Kr)|0,Zt=Zt+Math.imul(xr,Pr)|0,Xt=Xt+Math.imul(xr,an)|0,Xt=Xt+Math.imul(Mr,Pr)|0,er=er+Math.imul(Mr,an)|0,Zt=Zt+Math.imul(br,Mn)|0,Xt=Xt+Math.imul(br,An)|0,Xt=Xt+Math.imul(ar,Mn)|0,er=er+Math.imul(ar,An)|0,Zt=Zt+Math.imul(ir,Cn)|0,Xt=Xt+Math.imul(ir,kn)|0,Xt=Xt+Math.imul(dr,Cn)|0,er=er+Math.imul(dr,kn)|0,Zt=Zt+Math.imul(or,Gn)|0,Xt=Xt+Math.imul(or,Un)|0,Xt=Xt+Math.imul(rr,Gn)|0,er=er+Math.imul(rr,Un)|0;var go=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(go>>>26)|0,go&=67108863,Zt=Math.imul(Zr,Qr),Xt=Math.imul(Zr,rn),Xt=Xt+Math.imul(Xr,Qr)|0,er=Math.imul(Xr,rn),Zt=Zt+Math.imul(Gr,ln)|0,Xt=Xt+Math.imul(Gr,vn)|0,Xt=Xt+Math.imul(Jr,ln)|0,er=er+Math.imul(Jr,vn)|0,Zt=Zt+Math.imul(Dr,gn)|0,Xt=Xt+Math.imul(Dr,xn)|0,Xt=Xt+Math.imul(Fr,gn)|0,er=er+Math.imul(Fr,xn)|0,Zt=Zt+Math.imul($r,fn)|0,Xt=Xt+Math.imul($r,pn)|0,Xt=Xt+Math.imul(yr,fn)|0,er=er+Math.imul(yr,pn)|0,Zt=Zt+Math.imul(qr,Bn)|0,Xt=Xt+Math.imul(qr,Kr)|0,Xt=Xt+Math.imul(Hr,Bn)|0,er=er+Math.imul(Hr,Kr)|0,Zt=Zt+Math.imul(Ir,Pr)|0,Xt=Xt+Math.imul(Ir,an)|0,Xt=Xt+Math.imul(Rr,Pr)|0,er=er+Math.imul(Rr,an)|0,Zt=Zt+Math.imul(xr,Mn)|0,Xt=Xt+Math.imul(xr,An)|0,Xt=Xt+Math.imul(Mr,Mn)|0,er=er+Math.imul(Mr,An)|0,Zt=Zt+Math.imul(br,Cn)|0,Xt=Xt+Math.imul(br,kn)|0,Xt=Xt+Math.imul(ar,Cn)|0,er=er+Math.imul(ar,kn)|0,Zt=Zt+Math.imul(ir,Gn)|0,Xt=Xt+Math.imul(ir,Un)|0,Xt=Xt+Math.imul(dr,Gn)|0,er=er+Math.imul(dr,Un)|0,Zt=Zt+Math.imul(or,In)|0,Xt=Xt+Math.imul(or,Kn)|0,Xt=Xt+Math.imul(rr,In)|0,er=er+Math.imul(rr,Kn)|0;var $o=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+($o>>>26)|0,$o&=67108863,Zt=Math.imul(Zr,ln),Xt=Math.imul(Zr,vn),Xt=Xt+Math.imul(Xr,ln)|0,er=Math.imul(Xr,vn),Zt=Zt+Math.imul(Gr,gn)|0,Xt=Xt+Math.imul(Gr,xn)|0,Xt=Xt+Math.imul(Jr,gn)|0,er=er+Math.imul(Jr,xn)|0,Zt=Zt+Math.imul(Dr,fn)|0,Xt=Xt+Math.imul(Dr,pn)|0,Xt=Xt+Math.imul(Fr,fn)|0,er=er+Math.imul(Fr,pn)|0,Zt=Zt+Math.imul($r,Bn)|0,Xt=Xt+Math.imul($r,Kr)|0,Xt=Xt+Math.imul(yr,Bn)|0,er=er+Math.imul(yr,Kr)|0,Zt=Zt+Math.imul(qr,Pr)|0,Xt=Xt+Math.imul(qr,an)|0,Xt=Xt+Math.imul(Hr,Pr)|0,er=er+Math.imul(Hr,an)|0,Zt=Zt+Math.imul(Ir,Mn)|0,Xt=Xt+Math.imul(Ir,An)|0,Xt=Xt+Math.imul(Rr,Mn)|0,er=er+Math.imul(Rr,An)|0,Zt=Zt+Math.imul(xr,Cn)|0,Xt=Xt+Math.imul(xr,kn)|0,Xt=Xt+Math.imul(Mr,Cn)|0,er=er+Math.imul(Mr,kn)|0,Zt=Zt+Math.imul(br,Gn)|0,Xt=Xt+Math.imul(br,Un)|0,Xt=Xt+Math.imul(ar,Gn)|0,er=er+Math.imul(ar,Un)|0,Zt=Zt+Math.imul(ir,In)|0,Xt=Xt+Math.imul(ir,Kn)|0,Xt=Xt+Math.imul(dr,In)|0,er=er+Math.imul(dr,Kn)|0;var vo=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(vo>>>26)|0,vo&=67108863,Zt=Math.imul(Zr,gn),Xt=Math.imul(Zr,xn),Xt=Xt+Math.imul(Xr,gn)|0,er=Math.imul(Xr,xn),Zt=Zt+Math.imul(Gr,fn)|0,Xt=Xt+Math.imul(Gr,pn)|0,Xt=Xt+Math.imul(Jr,fn)|0,er=er+Math.imul(Jr,pn)|0,Zt=Zt+Math.imul(Dr,Bn)|0,Xt=Xt+Math.imul(Dr,Kr)|0,Xt=Xt+Math.imul(Fr,Bn)|0,er=er+Math.imul(Fr,Kr)|0,Zt=Zt+Math.imul($r,Pr)|0,Xt=Xt+Math.imul($r,an)|0,Xt=Xt+Math.imul(yr,Pr)|0,er=er+Math.imul(yr,an)|0,Zt=Zt+Math.imul(qr,Mn)|0,Xt=Xt+Math.imul(qr,An)|0,Xt=Xt+Math.imul(Hr,Mn)|0,er=er+Math.imul(Hr,An)|0,Zt=Zt+Math.imul(Ir,Cn)|0,Xt=Xt+Math.imul(Ir,kn)|0,Xt=Xt+Math.imul(Rr,Cn)|0,er=er+Math.imul(Rr,kn)|0,Zt=Zt+Math.imul(xr,Gn)|0,Xt=Xt+Math.imul(xr,Un)|0,Xt=Xt+Math.imul(Mr,Gn)|0,er=er+Math.imul(Mr,Un)|0,Zt=Zt+Math.imul(br,In)|0,Xt=Xt+Math.imul(br,Kn)|0,Xt=Xt+Math.imul(ar,In)|0,er=er+Math.imul(ar,Kn)|0;var Go=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Go>>>26)|0,Go&=67108863,Zt=Math.imul(Zr,fn),Xt=Math.imul(Zr,pn),Xt=Xt+Math.imul(Xr,fn)|0,er=Math.imul(Xr,pn),Zt=Zt+Math.imul(Gr,Bn)|0,Xt=Xt+Math.imul(Gr,Kr)|0,Xt=Xt+Math.imul(Jr,Bn)|0,er=er+Math.imul(Jr,Kr)|0,Zt=Zt+Math.imul(Dr,Pr)|0,Xt=Xt+Math.imul(Dr,an)|0,Xt=Xt+Math.imul(Fr,Pr)|0,er=er+Math.imul(Fr,an)|0,Zt=Zt+Math.imul($r,Mn)|0,Xt=Xt+Math.imul($r,An)|0,Xt=Xt+Math.imul(yr,Mn)|0,er=er+Math.imul(yr,An)|0,Zt=Zt+Math.imul(qr,Cn)|0,Xt=Xt+Math.imul(qr,kn)|0,Xt=Xt+Math.imul(Hr,Cn)|0,er=er+Math.imul(Hr,kn)|0,Zt=Zt+Math.imul(Ir,Gn)|0,Xt=Xt+Math.imul(Ir,Un)|0,Xt=Xt+Math.imul(Rr,Gn)|0,er=er+Math.imul(Rr,Un)|0,Zt=Zt+Math.imul(xr,In)|0,Xt=Xt+Math.imul(xr,Kn)|0,Xt=Xt+Math.imul(Mr,In)|0,er=er+Math.imul(Mr,Kn)|0;var Wo=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,Zt=Math.imul(Zr,Bn),Xt=Math.imul(Zr,Kr),Xt=Xt+Math.imul(Xr,Bn)|0,er=Math.imul(Xr,Kr),Zt=Zt+Math.imul(Gr,Pr)|0,Xt=Xt+Math.imul(Gr,an)|0,Xt=Xt+Math.imul(Jr,Pr)|0,er=er+Math.imul(Jr,an)|0,Zt=Zt+Math.imul(Dr,Mn)|0,Xt=Xt+Math.imul(Dr,An)|0,Xt=Xt+Math.imul(Fr,Mn)|0,er=er+Math.imul(Fr,An)|0,Zt=Zt+Math.imul($r,Cn)|0,Xt=Xt+Math.imul($r,kn)|0,Xt=Xt+Math.imul(yr,Cn)|0,er=er+Math.imul(yr,kn)|0,Zt=Zt+Math.imul(qr,Gn)|0,Xt=Xt+Math.imul(qr,Un)|0,Xt=Xt+Math.imul(Hr,Gn)|0,er=er+Math.imul(Hr,Un)|0,Zt=Zt+Math.imul(Ir,In)|0,Xt=Xt+Math.imul(Ir,Kn)|0,Xt=Xt+Math.imul(Rr,In)|0,er=er+Math.imul(Rr,Kn)|0;var cs=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(cs>>>26)|0,cs&=67108863,Zt=Math.imul(Zr,Pr),Xt=Math.imul(Zr,an),Xt=Xt+Math.imul(Xr,Pr)|0,er=Math.imul(Xr,an),Zt=Zt+Math.imul(Gr,Mn)|0,Xt=Xt+Math.imul(Gr,An)|0,Xt=Xt+Math.imul(Jr,Mn)|0,er=er+Math.imul(Jr,An)|0,Zt=Zt+Math.imul(Dr,Cn)|0,Xt=Xt+Math.imul(Dr,kn)|0,Xt=Xt+Math.imul(Fr,Cn)|0,er=er+Math.imul(Fr,kn)|0,Zt=Zt+Math.imul($r,Gn)|0,Xt=Xt+Math.imul($r,Un)|0,Xt=Xt+Math.imul(yr,Gn)|0,er=er+Math.imul(yr,Un)|0,Zt=Zt+Math.imul(qr,In)|0,Xt=Xt+Math.imul(qr,Kn)|0,Xt=Xt+Math.imul(Hr,In)|0,er=er+Math.imul(Hr,Kn)|0;var rs=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(rs>>>26)|0,rs&=67108863,Zt=Math.imul(Zr,Mn),Xt=Math.imul(Zr,An),Xt=Xt+Math.imul(Xr,Mn)|0,er=Math.imul(Xr,An),Zt=Zt+Math.imul(Gr,Cn)|0,Xt=Xt+Math.imul(Gr,kn)|0,Xt=Xt+Math.imul(Jr,Cn)|0,er=er+Math.imul(Jr,kn)|0,Zt=Zt+Math.imul(Dr,Gn)|0,Xt=Xt+Math.imul(Dr,Un)|0,Xt=Xt+Math.imul(Fr,Gn)|0,er=er+Math.imul(Fr,Un)|0,Zt=Zt+Math.imul($r,In)|0,Xt=Xt+Math.imul($r,Kn)|0,Xt=Xt+Math.imul(yr,In)|0,er=er+Math.imul(yr,Kn)|0;var xs=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(xs>>>26)|0,xs&=67108863,Zt=Math.imul(Zr,Cn),Xt=Math.imul(Zr,kn),Xt=Xt+Math.imul(Xr,Cn)|0,er=Math.imul(Xr,kn),Zt=Zt+Math.imul(Gr,Gn)|0,Xt=Xt+Math.imul(Gr,Un)|0,Xt=Xt+Math.imul(Jr,Gn)|0,er=er+Math.imul(Jr,Un)|0,Zt=Zt+Math.imul(Dr,In)|0,Xt=Xt+Math.imul(Dr,Kn)|0,Xt=Xt+Math.imul(Fr,In)|0,er=er+Math.imul(Fr,Kn)|0;var Es=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Es>>>26)|0,Es&=67108863,Zt=Math.imul(Zr,Gn),Xt=Math.imul(Zr,Un),Xt=Xt+Math.imul(Xr,Gn)|0,er=Math.imul(Xr,Un),Zt=Zt+Math.imul(Gr,In)|0,Xt=Xt+Math.imul(Gr,Kn)|0,Xt=Xt+Math.imul(Jr,In)|0,er=er+Math.imul(Jr,Kn)|0;var Os=(Gt+Zt|0)+((Xt&8191)<<13)|0;Gt=(er+(Xt>>>13)|0)+(Os>>>26)|0,Os&=67108863,Zt=Math.imul(Zr,In),Xt=Math.imul(Zr,Kn),Xt=Xt+Math.imul(Xr,In)|0,er=Math.imul(Xr,Kn);var Ds=(Gt+Zt|0)+((Xt&8191)<<13)|0;return Gt=(er+(Xt>>>13)|0)+(Ds>>>26)|0,Ds&=67108863,Ht[0]=Wn,Ht[1]=ao,Ht[2]=_i,Ht[3]=ho,Ht[4]=So,Ht[5]=ko,Ht[6]=us,Ht[7]=Jo,Ht[8]=go,Ht[9]=$o,Ht[10]=vo,Ht[11]=Go,Ht[12]=Wo,Ht[13]=cs,Ht[14]=rs,Ht[15]=xs,Ht[16]=Es,Ht[17]=Os,Ht[18]=Ds,Gt!==0&&(Ht[19]=Gt,Wt.length++),Wt};Math.imul||(Ct=Tt);function It(Ft,$t,jt){jt.negative=$t.negative^Ft.negative,jt.length=Ft.length+$t.length;for(var Wt=0,Ut=0,Vt=0;Vt<jt.length-1;Vt++){var Ht=Ut;Ut=0;for(var Gt=Wt&67108863,Zt=Math.min(Vt,$t.length-1),Xt=Math.max(0,Vt-Ft.length+1);Xt<=Zt;Xt++){var er=Vt-Xt,nr=Ft.words[er]|0,or=$t.words[Xt]|0,rr=nr*or,cr=rr&67108863;Ht=Ht+(rr/67108864|0)|0,cr=cr+Gt|0,Gt=cr&67108863,Ht=Ht+(cr>>>26)|0,Ut+=Ht>>>26,Ht&=67108863}jt.words[Vt]=Gt,Wt=Ht,Ht=Ut}return Wt!==0?jt.words[Vt]=Wt:jt.length--,jt._strip()}function Dt(Ft,$t,jt){return It(Ft,$t,jt)}ut.prototype.mulTo=function($t,jt){var Wt,Ut=this.length+$t.length;return this.length===10&&$t.length===10?Wt=Ct(this,$t,jt):Ut<63?Wt=Tt(this,$t,jt):Ut<1024?Wt=It(this,$t,jt):Wt=Dt(this,$t,jt),Wt},ut.prototype.mul=function($t){var jt=new ut(null);return jt.words=new Array(this.length+$t.length),this.mulTo($t,jt)},ut.prototype.mulf=function($t){var jt=new ut(null);return jt.words=new Array(this.length+$t.length),Dt(this,$t,jt)},ut.prototype.imul=function($t){return this.clone().mulTo($t,this)},ut.prototype.imuln=function($t){var jt=$t<0;jt&&($t=-$t),nt(typeof $t=="number"),nt($t<67108864);for(var Wt=0,Ut=0;Ut<this.length;Ut++){var Vt=(this.words[Ut]|0)*$t,Ht=(Vt&67108863)+(Wt&67108863);Wt>>=26,Wt+=Vt/67108864|0,Wt+=Ht>>>26,this.words[Ut]=Ht&67108863}return Wt!==0&&(this.words[Ut]=Wt,this.length++),jt?this.ineg():this},ut.prototype.muln=function($t){return this.clone().imuln($t)},ut.prototype.sqr=function(){return this.mul(this)},ut.prototype.isqr=function(){return this.imul(this.clone())},ut.prototype.pow=function($t){var jt=zt($t);if(jt.length===0)return new ut(1);for(var Wt=this,Ut=0;Ut<jt.length&&jt[Ut]===0;Ut++,Wt=Wt.sqr());if(++Ut<jt.length)for(var Vt=Wt.sqr();Ut<jt.length;Ut++,Vt=Vt.sqr())jt[Ut]!==0&&(Wt=Wt.mul(Vt));return Wt},ut.prototype.iushln=function($t){nt(typeof $t=="number"&&$t>=0);var jt=$t%26,Wt=($t-jt)/26,Ut=67108863>>>26-jt<<26-jt,Vt;if(jt!==0){var Ht=0;for(Vt=0;Vt<this.length;Vt++){var Gt=this.words[Vt]&Ut,Zt=(this.words[Vt]|0)-Gt<<jt;this.words[Vt]=Zt|Ht,Ht=Gt>>>26-jt}Ht&&(this.words[Vt]=Ht,this.length++)}if(Wt!==0){for(Vt=this.length-1;Vt>=0;Vt--)this.words[Vt+Wt]=this.words[Vt];for(Vt=0;Vt<Wt;Vt++)this.words[Vt]=0;this.length+=Wt}return this._strip()},ut.prototype.ishln=function($t){return nt(this.negative===0),this.iushln($t)},ut.prototype.iushrn=function($t,jt,Wt){nt(typeof $t=="number"&&$t>=0);var Ut;jt?Ut=(jt-jt%26)/26:Ut=0;var Vt=$t%26,Ht=Math.min(($t-Vt)/26,this.length),Gt=67108863^67108863>>>Vt<<Vt,Zt=Wt;if(Ut-=Ht,Ut=Math.max(0,Ut),Zt){for(var Xt=0;Xt<Ht;Xt++)Zt.words[Xt]=this.words[Xt];Zt.length=Ht}if(Ht!==0)if(this.length>Ht)for(this.length-=Ht,Xt=0;Xt<this.length;Xt++)this.words[Xt]=this.words[Xt+Ht];else this.words[0]=0,this.length=1;var er=0;for(Xt=this.length-1;Xt>=0&&(er!==0||Xt>=Ut);Xt--){var nr=this.words[Xt]|0;this.words[Xt]=er<<26-Vt|nr>>>Vt,er=nr&Gt}return Zt&&er!==0&&(Zt.words[Zt.length++]=er),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},ut.prototype.ishrn=function($t,jt,Wt){return nt(this.negative===0),this.iushrn($t,jt,Wt)},ut.prototype.shln=function($t){return this.clone().ishln($t)},ut.prototype.ushln=function($t){return this.clone().iushln($t)},ut.prototype.shrn=function($t){return this.clone().ishrn($t)},ut.prototype.ushrn=function($t){return this.clone().iushrn($t)},ut.prototype.testn=function($t){nt(typeof $t=="number"&&$t>=0);var jt=$t%26,Wt=($t-jt)/26,Ut=1<<jt;if(this.length<=Wt)return!1;var Vt=this.words[Wt];return!!(Vt&Ut)},ut.prototype.imaskn=function($t){nt(typeof $t=="number"&&$t>=0);var jt=$t%26,Wt=($t-jt)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Wt)return this;if(jt!==0&&Wt++,this.length=Math.min(Wt,this.length),jt!==0){var Ut=67108863^67108863>>>jt<<jt;this.words[this.length-1]&=Ut}return this._strip()},ut.prototype.maskn=function($t){return this.clone().imaskn($t)},ut.prototype.iaddn=function($t){return nt(typeof $t=="number"),nt($t<67108864),$t<0?this.isubn(-$t):this.negative!==0?this.length===1&&(this.words[0]|0)<=$t?(this.words[0]=$t-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn($t),this.negative=1,this):this._iaddn($t)},ut.prototype._iaddn=function($t){this.words[0]+=$t;for(var jt=0;jt<this.length&&this.words[jt]>=67108864;jt++)this.words[jt]-=67108864,jt===this.length-1?this.words[jt+1]=1:this.words[jt+1]++;return this.length=Math.max(this.length,jt+1),this},ut.prototype.isubn=function($t){if(nt(typeof $t=="number"),nt($t<67108864),$t<0)return this.iaddn(-$t);if(this.negative!==0)return this.negative=0,this.iaddn($t),this.negative=1,this;if(this.words[0]-=$t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var jt=0;jt<this.length&&this.words[jt]<0;jt++)this.words[jt]+=67108864,this.words[jt+1]-=1;return this._strip()},ut.prototype.addn=function($t){return this.clone().iaddn($t)},ut.prototype.subn=function($t){return this.clone().isubn($t)},ut.prototype.iabs=function(){return this.negative=0,this},ut.prototype.abs=function(){return this.clone().iabs()},ut.prototype._ishlnsubmul=function($t,jt,Wt){var Ut=$t.length+Wt,Vt;this._expand(Ut);var Ht,Gt=0;for(Vt=0;Vt<$t.length;Vt++){Ht=(this.words[Vt+Wt]|0)+Gt;var Zt=($t.words[Vt]|0)*jt;Ht-=Zt&67108863,Gt=(Ht>>26)-(Zt/67108864|0),this.words[Vt+Wt]=Ht&67108863}for(;Vt<this.length-Wt;Vt++)Ht=(this.words[Vt+Wt]|0)+Gt,Gt=Ht>>26,this.words[Vt+Wt]=Ht&67108863;if(Gt===0)return this._strip();for(nt(Gt===-1),Gt=0,Vt=0;Vt<this.length;Vt++)Ht=-(this.words[Vt]|0)+Gt,Gt=Ht>>26,this.words[Vt]=Ht&67108863;return this.negative=1,this._strip()},ut.prototype._wordDiv=function($t,jt){var Wt=this.length-$t.length,Ut=this.clone(),Vt=$t,Ht=Vt.words[Vt.length-1]|0,Gt=this._countBits(Ht);Wt=26-Gt,Wt!==0&&(Vt=Vt.ushln(Wt),Ut.iushln(Wt),Ht=Vt.words[Vt.length-1]|0);var Zt=Ut.length-Vt.length,Xt;if(jt!=="mod"){Xt=new ut(null),Xt.length=Zt+1,Xt.words=new Array(Xt.length);for(var er=0;er<Xt.length;er++)Xt.words[er]=0}var nr=Ut.clone()._ishlnsubmul(Vt,1,Zt);nr.negative===0&&(Ut=nr,Xt&&(Xt.words[Zt]=1));for(var or=Zt-1;or>=0;or--){var rr=(Ut.words[Vt.length+or]|0)*67108864+(Ut.words[Vt.length+or-1]|0);for(rr=Math.min(rr/Ht|0,67108863),Ut._ishlnsubmul(Vt,rr,or);Ut.negative!==0;)rr--,Ut.negative=0,Ut._ishlnsubmul(Vt,1,or),Ut.isZero()||(Ut.negative^=1);Xt&&(Xt.words[or]=rr)}return Xt&&Xt._strip(),Ut._strip(),jt!=="div"&&Wt!==0&&Ut.iushrn(Wt),{div:Xt||null,mod:Ut}},ut.prototype.divmod=function($t,jt,Wt){if(nt(!$t.isZero()),this.isZero())return{div:new ut(0),mod:new ut(0)};var Ut,Vt,Ht;return this.negative!==0&&$t.negative===0?(Ht=this.neg().divmod($t,jt),jt!=="mod"&&(Ut=Ht.div.neg()),jt!=="div"&&(Vt=Ht.mod.neg(),Wt&&Vt.negative!==0&&Vt.iadd($t)),{div:Ut,mod:Vt}):this.negative===0&&$t.negative!==0?(Ht=this.divmod($t.neg(),jt),jt!=="mod"&&(Ut=Ht.div.neg()),{div:Ut,mod:Ht.mod}):this.negative&$t.negative?(Ht=this.neg().divmod($t.neg(),jt),jt!=="div"&&(Vt=Ht.mod.neg(),Wt&&Vt.negative!==0&&Vt.isub($t)),{div:Ht.div,mod:Vt}):$t.length>this.length||this.cmp($t)<0?{div:new ut(0),mod:this}:$t.length===1?jt==="div"?{div:this.divn($t.words[0]),mod:null}:jt==="mod"?{div:null,mod:new ut(this.modrn($t.words[0]))}:{div:this.divn($t.words[0]),mod:new ut(this.modrn($t.words[0]))}:this._wordDiv($t,jt)},ut.prototype.div=function($t){return this.divmod($t,"div",!1).div},ut.prototype.mod=function($t){return this.divmod($t,"mod",!1).mod},ut.prototype.umod=function($t){return this.divmod($t,"mod",!0).mod},ut.prototype.divRound=function($t){var jt=this.divmod($t);if(jt.mod.isZero())return jt.div;var Wt=jt.div.negative!==0?jt.mod.isub($t):jt.mod,Ut=$t.ushrn(1),Vt=$t.andln(1),Ht=Wt.cmp(Ut);return Ht<0||Vt===1&&Ht===0?jt.div:jt.div.negative!==0?jt.div.isubn(1):jt.div.iaddn(1)},ut.prototype.modrn=function($t){var jt=$t<0;jt&&($t=-$t),nt($t<=67108863);for(var Wt=(1<<26)%$t,Ut=0,Vt=this.length-1;Vt>=0;Vt--)Ut=(Wt*Ut+(this.words[Vt]|0))%$t;return jt?-Ut:Ut},ut.prototype.modn=function($t){return this.modrn($t)},ut.prototype.idivn=function($t){var jt=$t<0;jt&&($t=-$t),nt($t<=67108863);for(var Wt=0,Ut=this.length-1;Ut>=0;Ut--){var Vt=(this.words[Ut]|0)+Wt*67108864;this.words[Ut]=Vt/$t|0,Wt=Vt%$t}return this._strip(),jt?this.ineg():this},ut.prototype.divn=function($t){return this.clone().idivn($t)},ut.prototype.egcd=function($t){nt($t.negative===0),nt(!$t.isZero());var jt=this,Wt=$t.clone();jt.negative!==0?jt=jt.umod($t):jt=jt.clone();for(var Ut=new ut(1),Vt=new ut(0),Ht=new ut(0),Gt=new ut(1),Zt=0;jt.isEven()&&Wt.isEven();)jt.iushrn(1),Wt.iushrn(1),++Zt;for(var Xt=Wt.clone(),er=jt.clone();!jt.isZero();){for(var nr=0,or=1;!(jt.words[0]&or)&&nr<26;++nr,or<<=1);if(nr>0)for(jt.iushrn(nr);nr-- >0;)(Ut.isOdd()||Vt.isOdd())&&(Ut.iadd(Xt),Vt.isub(er)),Ut.iushrn(1),Vt.iushrn(1);for(var rr=0,cr=1;!(Wt.words[0]&cr)&&rr<26;++rr,cr<<=1);if(rr>0)for(Wt.iushrn(rr);rr-- >0;)(Ht.isOdd()||Gt.isOdd())&&(Ht.iadd(Xt),Gt.isub(er)),Ht.iushrn(1),Gt.iushrn(1);jt.cmp(Wt)>=0?(jt.isub(Wt),Ut.isub(Ht),Vt.isub(Gt)):(Wt.isub(jt),Ht.isub(Ut),Gt.isub(Vt))}return{a:Ht,b:Gt,gcd:Wt.iushln(Zt)}},ut.prototype._invmp=function($t){nt($t.negative===0),nt(!$t.isZero());var jt=this,Wt=$t.clone();jt.negative!==0?jt=jt.umod($t):jt=jt.clone();for(var Ut=new ut(1),Vt=new ut(0),Ht=Wt.clone();jt.cmpn(1)>0&&Wt.cmpn(1)>0;){for(var Gt=0,Zt=1;!(jt.words[0]&Zt)&&Gt<26;++Gt,Zt<<=1);if(Gt>0)for(jt.iushrn(Gt);Gt-- >0;)Ut.isOdd()&&Ut.iadd(Ht),Ut.iushrn(1);for(var Xt=0,er=1;!(Wt.words[0]&er)&&Xt<26;++Xt,er<<=1);if(Xt>0)for(Wt.iushrn(Xt);Xt-- >0;)Vt.isOdd()&&Vt.iadd(Ht),Vt.iushrn(1);jt.cmp(Wt)>=0?(jt.isub(Wt),Ut.isub(Vt)):(Wt.isub(jt),Vt.isub(Ut))}var nr;return jt.cmpn(1)===0?nr=Ut:nr=Vt,nr.cmpn(0)<0&&nr.iadd($t),nr},ut.prototype.gcd=function($t){if(this.isZero())return $t.abs();if($t.isZero())return this.abs();var jt=this.clone(),Wt=$t.clone();jt.negative=0,Wt.negative=0;for(var Ut=0;jt.isEven()&&Wt.isEven();Ut++)jt.iushrn(1),Wt.iushrn(1);do{for(;jt.isEven();)jt.iushrn(1);for(;Wt.isEven();)Wt.iushrn(1);var Vt=jt.cmp(Wt);if(Vt<0){var Ht=jt;jt=Wt,Wt=Ht}else if(Vt===0||Wt.cmpn(1)===0)break;jt.isub(Wt)}while(!0);return Wt.iushln(Ut)},ut.prototype.invm=function($t){return this.egcd($t).a.umod($t)},ut.prototype.isEven=function(){return(this.words[0]&1)===0},ut.prototype.isOdd=function(){return(this.words[0]&1)===1},ut.prototype.andln=function($t){return this.words[0]&$t},ut.prototype.bincn=function($t){nt(typeof $t=="number");var jt=$t%26,Wt=($t-jt)/26,Ut=1<<jt;if(this.length<=Wt)return this._expand(Wt+1),this.words[Wt]|=Ut,this;for(var Vt=Ut,Ht=Wt;Vt!==0&&Ht<this.length;Ht++){var Gt=this.words[Ht]|0;Gt+=Vt,Vt=Gt>>>26,Gt&=67108863,this.words[Ht]=Gt}return Vt!==0&&(this.words[Ht]=Vt,this.length++),this},ut.prototype.isZero=function(){return this.length===1&&this.words[0]===0},ut.prototype.cmpn=function($t){var jt=$t<0;if(this.negative!==0&&!jt)return-1;if(this.negative===0&&jt)return 1;this._strip();var Wt;if(this.length>1)Wt=1;else{jt&&($t=-$t),nt($t<=67108863,"Number is too big");var Ut=this.words[0]|0;Wt=Ut===$t?0:Ut<$t?-1:1}return this.negative!==0?-Wt|0:Wt},ut.prototype.cmp=function($t){if(this.negative!==0&&$t.negative===0)return-1;if(this.negative===0&&$t.negative!==0)return 1;var jt=this.ucmp($t);return this.negative!==0?-jt|0:jt},ut.prototype.ucmp=function($t){if(this.length>$t.length)return 1;if(this.length<$t.length)return-1;for(var jt=0,Wt=this.length-1;Wt>=0;Wt--){var Ut=this.words[Wt]|0,Vt=$t.words[Wt]|0;if(Ut!==Vt){Ut<Vt?jt=-1:Ut>Vt&&(jt=1);break}}return jt},ut.prototype.gtn=function($t){return this.cmpn($t)===1},ut.prototype.gt=function($t){return this.cmp($t)===1},ut.prototype.gten=function($t){return this.cmpn($t)>=0},ut.prototype.gte=function($t){return this.cmp($t)>=0},ut.prototype.ltn=function($t){return this.cmpn($t)===-1},ut.prototype.lt=function($t){return this.cmp($t)===-1},ut.prototype.lten=function($t){return this.cmpn($t)<=0},ut.prototype.lte=function($t){return this.cmp($t)<=0},ut.prototype.eqn=function($t){return this.cmpn($t)===0},ut.prototype.eq=function($t){return this.cmp($t)===0},ut.red=function($t){return new Qt($t)},ut.prototype.toRed=function($t){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),$t.convertTo(this)._forceRed($t)},ut.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ut.prototype._forceRed=function($t){return this.red=$t,this},ut.prototype.forceRed=function($t){return nt(!this.red,"Already a number in reduction context"),this._forceRed($t)},ut.prototype.redAdd=function($t){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,$t)},ut.prototype.redIAdd=function($t){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,$t)},ut.prototype.redSub=function($t){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,$t)},ut.prototype.redISub=function($t){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,$t)},ut.prototype.redShl=function($t){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,$t)},ut.prototype.redMul=function($t){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,$t),this.red.mul(this,$t)},ut.prototype.redIMul=function($t){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,$t),this.red.imul(this,$t)},ut.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ut.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ut.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ut.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ut.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ut.prototype.redPow=function($t){return nt(this.red&&!$t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,$t)};var kt={k256:null,p224:null,p192:null,p25519:null};function qt(Ft,$t){this.name=Ft,this.p=new ut($t,16),this.n=this.p.bitLength(),this.k=new ut(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}qt.prototype._tmp=function(){var $t=new ut(null);return $t.words=new Array(Math.ceil(this.n/13)),$t},qt.prototype.ireduce=function($t){var jt=$t,Wt;do this.split(jt,this.tmp),jt=this.imulK(jt),jt=jt.iadd(this.tmp),Wt=jt.bitLength();while(Wt>this.n);var Ut=Wt<this.n?-1:jt.ucmp(this.p);return Ut===0?(jt.words[0]=0,jt.length=1):Ut>0?jt.isub(this.p):jt.strip!==void 0?jt.strip():jt._strip(),jt},qt.prototype.split=function($t,jt){$t.iushrn(this.n,0,jt)},qt.prototype.imulK=function($t){return $t.imul(this.k)};function Nt(){qt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}lt(Nt,qt),Nt.prototype.split=function($t,jt){for(var Wt=4194303,Ut=Math.min($t.length,9),Vt=0;Vt<Ut;Vt++)jt.words[Vt]=$t.words[Vt];if(jt.length=Ut,$t.length<=9){$t.words[0]=0,$t.length=1;return}var Ht=$t.words[9];for(jt.words[jt.length++]=Ht&Wt,Vt=10;Vt<$t.length;Vt++){var Gt=$t.words[Vt]|0;$t.words[Vt-10]=(Gt&Wt)<<4|Ht>>>22,Ht=Gt}Ht>>>=22,$t.words[Vt-10]=Ht,Ht===0&&$t.length>10?$t.length-=10:$t.length-=9},Nt.prototype.imulK=function($t){$t.words[$t.length]=0,$t.words[$t.length+1]=0,$t.length+=2;for(var jt=0,Wt=0;Wt<$t.length;Wt++){var Ut=$t.words[Wt]|0;jt+=Ut*977,$t.words[Wt]=jt&67108863,jt=Ut*64+(jt/67108864|0)}return $t.words[$t.length-1]===0&&($t.length--,$t.words[$t.length-1]===0&&$t.length--),$t};function Yt(){qt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}lt(Yt,qt);function Kt(){qt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}lt(Kt,qt);function Jt(){qt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}lt(Jt,qt),Jt.prototype.imulK=function($t){for(var jt=0,Wt=0;Wt<$t.length;Wt++){var Ut=($t.words[Wt]|0)*19+jt,Vt=Ut&67108863;Ut>>>=26,$t.words[Wt]=Vt,jt=Ut}return jt!==0&&($t.words[$t.length++]=jt),$t},ut._prime=function($t){if(kt[$t])return kt[$t];var jt;if($t==="k256")jt=new Nt;else if($t==="p224")jt=new Yt;else if($t==="p192")jt=new Kt;else if($t==="p25519")jt=new Jt;else throw new Error("Unknown prime "+$t);return kt[$t]=jt,jt};function Qt(Ft){if(typeof Ft=="string"){var $t=ut._prime(Ft);this.m=$t.p,this.prime=$t}else nt(Ft.gtn(1),"modulus must be greater than 1"),this.m=Ft,this.prime=null}Qt.prototype._verify1=function($t){nt($t.negative===0,"red works only with positives"),nt($t.red,"red works only with red numbers")},Qt.prototype._verify2=function($t,jt){nt(($t.negative|jt.negative)===0,"red works only with positives"),nt($t.red&&$t.red===jt.red,"red works only with red numbers")},Qt.prototype.imod=function($t){return this.prime?this.prime.ireduce($t)._forceRed(this):(xt($t,$t.umod(this.m)._forceRed(this)),$t)},Qt.prototype.neg=function($t){return $t.isZero()?$t.clone():this.m.sub($t)._forceRed(this)},Qt.prototype.add=function($t,jt){this._verify2($t,jt);var Wt=$t.add(jt);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt._forceRed(this)},Qt.prototype.iadd=function($t,jt){this._verify2($t,jt);var Wt=$t.iadd(jt);return Wt.cmp(this.m)>=0&&Wt.isub(this.m),Wt},Qt.prototype.sub=function($t,jt){this._verify2($t,jt);var Wt=$t.sub(jt);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt._forceRed(this)},Qt.prototype.isub=function($t,jt){this._verify2($t,jt);var Wt=$t.isub(jt);return Wt.cmpn(0)<0&&Wt.iadd(this.m),Wt},Qt.prototype.shl=function($t,jt){return this._verify1($t),this.imod($t.ushln(jt))},Qt.prototype.imul=function($t,jt){return this._verify2($t,jt),this.imod($t.imul(jt))},Qt.prototype.mul=function($t,jt){return this._verify2($t,jt),this.imod($t.mul(jt))},Qt.prototype.isqr=function($t){return this.imul($t,$t.clone())},Qt.prototype.sqr=function($t){return this.mul($t,$t)},Qt.prototype.sqrt=function($t){if($t.isZero())return $t.clone();var jt=this.m.andln(3);if(nt(jt%2===1),jt===3){var Wt=this.m.add(new ut(1)).iushrn(2);return this.pow($t,Wt)}for(var Ut=this.m.subn(1),Vt=0;!Ut.isZero()&&Ut.andln(1)===0;)Vt++,Ut.iushrn(1);nt(!Ut.isZero());var Ht=new ut(1).toRed(this),Gt=Ht.redNeg(),Zt=this.m.subn(1).iushrn(1),Xt=this.m.bitLength();for(Xt=new ut(2*Xt*Xt).toRed(this);this.pow(Xt,Zt).cmp(Gt)!==0;)Xt.redIAdd(Gt);for(var er=this.pow(Xt,Ut),nr=this.pow($t,Ut.addn(1).iushrn(1)),or=this.pow($t,Ut),rr=Vt;or.cmp(Ht)!==0;){for(var cr=or,ir=0;cr.cmp(Ht)!==0;ir++)cr=cr.redSqr();nt(ir<rr);var dr=this.pow(er,new ut(1).iushln(rr-ir-1));nr=nr.redMul(dr),er=dr.redSqr(),or=or.redMul(er),rr=ir}return nr},Qt.prototype.invm=function($t){var jt=$t._invmp(this.m);return jt.negative!==0?(jt.negative=0,this.imod(jt).redNeg()):this.imod(jt)},Qt.prototype.pow=function($t,jt){if(jt.isZero())return new ut(1).toRed(this);if(jt.cmpn(1)===0)return $t.clone();var Wt=4,Ut=new Array(1<<Wt);Ut[0]=new ut(1).toRed(this),Ut[1]=$t;for(var Vt=2;Vt<Ut.length;Vt++)Ut[Vt]=this.mul(Ut[Vt-1],$t);var Ht=Ut[0],Gt=0,Zt=0,Xt=jt.bitLength()%26;for(Xt===0&&(Xt=26),Vt=jt.length-1;Vt>=0;Vt--){for(var er=jt.words[Vt],nr=Xt-1;nr>=0;nr--){var or=er>>nr&1;if(Ht!==Ut[0]&&(Ht=this.sqr(Ht)),or===0&&Gt===0){Zt=0;continue}Gt<<=1,Gt|=or,Zt++,!(Zt!==Wt&&(Vt!==0||nr!==0))&&(Ht=this.mul(Ht,Ut[Gt]),Zt=0,Gt=0)}Xt=26}return Ht},Qt.prototype.convertTo=function($t){var jt=$t.umod(this.m);return jt===$t?jt.clone():jt},Qt.prototype.convertFrom=function($t){var jt=$t.clone();return jt.red=null,jt},ut.mont=function($t){return new Bt($t)};function Bt(Ft){Qt.call(this,Ft),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new ut(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}lt(Bt,Qt),Bt.prototype.convertTo=function($t){return this.imod($t.ushln(this.shift))},Bt.prototype.convertFrom=function($t){var jt=this.imod($t.mul(this.rinv));return jt.red=null,jt},Bt.prototype.imul=function($t,jt){if($t.isZero()||jt.isZero())return $t.words[0]=0,$t.length=1,$t;var Wt=$t.imul(jt),Ut=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Vt=Wt.isub(Ut).iushrn(this.shift),Ht=Vt;return Vt.cmp(this.m)>=0?Ht=Vt.isub(this.m):Vt.cmpn(0)<0&&(Ht=Vt.iadd(this.m)),Ht._forceRed(this)},Bt.prototype.mul=function($t,jt){if($t.isZero()||jt.isZero())return new ut(0)._forceRed(this);var Wt=$t.mul(jt),Ut=Wt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Vt=Wt.isub(Ut).iushrn(this.shift),Ht=Vt;return Vt.cmp(this.m)>=0?Ht=Vt.isub(this.m):Vt.cmpn(0)<0&&(Ht=Vt.iadd(this.m)),Ht._forceRed(this)},Bt.prototype.invm=function($t){var jt=this.imod($t._invmp(this.m).mul(this.r2));return jt._forceRed(this)}})(et,commonjsGlobal$1)})(bn);var bnExports=bn.exports,asn1$3={},asn1$2={},api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(et,tt){if(et.indexOf)return et.indexOf(tt);for(var rt=0;rt<et.length;rt++)if(et[rt]===tt)return rt;return-1},Object_keys=function(et){if(Object.keys)return Object.keys(et);var tt=[];for(var rt in et)tt.push(rt);return tt},forEach=function(et,tt){if(et.forEach)return et.forEach(tt);for(var rt=0;rt<et.length;rt++)tt(et[rt],rt,et)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(et,tt,rt){Object.defineProperty(et,tt,{writable:!0,enumerable:!1,configurable:!0,value:rt})}}catch{return function(tt,rt,nt){tt[rt]=nt}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(tt){if(!(this instanceof Script))return new Script(tt);this.code=tt};Script.prototype.runInContext=function(et){if(!(et instanceof Context))throw new TypeError("needs a 'context' argument.");var tt=document.createElement("iframe");tt.style||(tt.style={}),tt.style.display="none",document.body.appendChild(tt);var rt=tt.contentWindow,nt=rt.eval,lt=rt.execScript;!nt&&lt&&(lt.call(rt,"null"),nt=rt.eval),forEach(Object_keys(et),function(pt){rt[pt]=et[pt]}),forEach(globals,function(pt){et[pt]&&(rt[pt]=et[pt])});var ut=Object_keys(rt),dt=nt.call(rt,this.code);return forEach(Object_keys(rt),function(pt){(pt in et||indexOf(ut,pt)===-1)&&(et[pt]=rt[pt])}),forEach(globals,function(pt){pt in et||defineProp(et,pt,rt[pt])}),document.body.removeChild(tt),dt},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(et){var tt=Script.createContext(et),rt=this.runInContext(tt);return et&&forEach(Object_keys(tt),function(nt){et[nt]=tt[nt]}),rt},forEach(Object_keys(Script.prototype),function(et){exports[et]=Script[et]=function(tt){var rt=Script(tt);return rt[et].apply(rt,[].slice.call(arguments,1))}}),exports.isContext=function(et){return et instanceof Context},exports.createScript=function(et){return exports.Script(et)},exports.createContext=Script.createContext=function(et){var tt=new Context;return typeof et=="object"&&forEach(Object_keys(et),function(rt){tt[rt]=et[rt]}),tt}}(vmBrowserify)),vmBrowserify}var hasRequiredApi;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,function(et){var tt=requireAsn1(),rt=inherits_browserExports,nt=et;nt.define=function(dt,pt){return new lt(dt,pt)};function lt(ut,dt){this.name=ut,this.body=dt,this.decoders={},this.encoders={}}lt.prototype._createNamed=function(dt){var pt;try{pt=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
  this._initNamed(entity);
})`)}catch{pt=function(mt){this._initNamed(mt)}}return rt(pt,dt),pt.prototype._initNamed=function(mt){dt.call(this,mt)},new pt(this)},lt.prototype._getDecoder=function(dt){return dt=dt||"der",this.decoders.hasOwnProperty(dt)||(this.decoders[dt]=this._createNamed(tt.decoders[dt])),this.decoders[dt]},lt.prototype.decode=function(dt,pt,ht){return this._getDecoder(pt).decode(dt,ht)},lt.prototype._getEncoder=function(dt){return dt=dt||"der",this.encoders.hasOwnProperty(dt)||(this.encoders[dt]=this._createNamed(tt.encoders[dt])),this.encoders[dt]},lt.prototype.encode=function(dt,pt,ht){return this._getEncoder(pt).encode(dt,ht)}}(api)),api}var base={},reporter={},inherits=inherits_browserExports;function Reporter(et){this._reporterState={obj:null,path:[],options:et||{},errors:[]}}reporter.Reporter=Reporter;Reporter.prototype.isError=function et(tt){return tt instanceof ReporterError};Reporter.prototype.save=function et(){var tt=this._reporterState;return{obj:tt.obj,pathLen:tt.path.length}};Reporter.prototype.restore=function et(tt){var rt=this._reporterState;rt.obj=tt.obj,rt.path=rt.path.slice(0,tt.pathLen)};Reporter.prototype.enterKey=function et(tt){return this._reporterState.path.push(tt)};Reporter.prototype.exitKey=function et(tt){var rt=this._reporterState;rt.path=rt.path.slice(0,tt-1)};Reporter.prototype.leaveKey=function et(tt,rt,nt){var lt=this._reporterState;this.exitKey(tt),lt.obj!==null&&(lt.obj[rt]=nt)};Reporter.prototype.path=function et(){return this._reporterState.path.join("/")};Reporter.prototype.enterObject=function et(){var tt=this._reporterState,rt=tt.obj;return tt.obj={},rt};Reporter.prototype.leaveObject=function et(tt){var rt=this._reporterState,nt=rt.obj;return rt.obj=tt,nt};Reporter.prototype.error=function et(tt){var rt,nt=this._reporterState,lt=tt instanceof ReporterError;if(lt?rt=tt:rt=new ReporterError(nt.path.map(function(ut){return"["+JSON.stringify(ut)+"]"}).join(""),tt.message||tt,tt.stack),!nt.options.partial)throw rt;return lt||nt.errors.push(rt),rt};Reporter.prototype.wrapResult=function et(tt){var rt=this._reporterState;return rt.options.partial?{result:this.isError(tt)?null:tt,errors:rt.errors}:tt};function ReporterError(et,tt){this.path=et,this.rethrow(tt)}inherits(ReporterError,Error);ReporterError.prototype.rethrow=function et(tt){if(this.message=tt+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(rt){this.stack=rt.stack}return this};var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var et=inherits_browserExports,tt=requireBase().Reporter,rt=dist$5.Buffer;function nt(ut,dt){if(tt.call(this,dt),!rt.isBuffer(ut)){this.error("Input not Buffer");return}this.base=ut,this.offset=0,this.length=ut.length}et(nt,tt),buffer.DecoderBuffer=nt,nt.prototype.save=function(){return{offset:this.offset,reporter:tt.prototype.save.call(this)}},nt.prototype.restore=function(dt){var pt=new nt(this.base);return pt.offset=dt.offset,pt.length=this.offset,this.offset=dt.offset,tt.prototype.restore.call(this,dt.reporter),pt},nt.prototype.isEmpty=function(){return this.offset===this.length},nt.prototype.readUInt8=function(dt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(dt||"DecoderBuffer overrun")},nt.prototype.skip=function(dt,pt){if(!(this.offset+dt<=this.length))return this.error(pt||"DecoderBuffer overrun");var ht=new nt(this.base);return ht._reporterState=this._reporterState,ht.offset=this.offset,ht.length=this.offset+dt,this.offset+=dt,ht},nt.prototype.raw=function(dt){return this.base.slice(dt?dt.offset:this.offset,this.length)};function lt(ut,dt){if(Array.isArray(ut))this.length=0,this.value=ut.map(function(pt){return pt instanceof lt||(pt=new lt(pt,dt)),this.length+=pt.length,pt},this);else if(typeof ut=="number"){if(!(0<=ut&&ut<=255))return dt.error("non-byte EncoderBuffer value");this.value=ut,this.length=1}else if(typeof ut=="string")this.value=ut,this.length=rt.byteLength(ut);else if(rt.isBuffer(ut))this.value=ut,this.length=ut.length;else return dt.error("Unsupported type: "+typeof ut)}return buffer.EncoderBuffer=lt,lt.prototype.join=function(dt,pt){return dt||(dt=new rt(this.length)),pt||(pt=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(ht){ht.join(dt,pt),pt+=ht.length}):(typeof this.value=="number"?dt[pt]=this.value:typeof this.value=="string"?dt.write(this.value,pt):rt.isBuffer(this.value)&&this.value.copy(dt,pt),pt+=this.length)),dt},buffer}var node,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var et=requireBase().Reporter,tt=requireBase().EncoderBuffer,rt=requireBase().DecoderBuffer,nt=minimalisticAssert,lt=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],ut=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(lt),dt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function pt(mt,xt){var Mt={};this._baseState=Mt,Mt.enc=mt,Mt.parent=xt||null,Mt.children=null,Mt.tag=null,Mt.args=null,Mt.reverseArgs=null,Mt.choice=null,Mt.optional=!1,Mt.any=!1,Mt.obj=!1,Mt.use=null,Mt.useDecoder=null,Mt.key=null,Mt.default=null,Mt.explicit=null,Mt.implicit=null,Mt.contains=null,Mt.parent||(Mt.children=[],this._wrap())}node=pt;var ht=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return pt.prototype.clone=function(){var xt=this._baseState,Mt={};ht.forEach(function(Ot){Mt[Ot]=xt[Ot]});var vt=new this.constructor(Mt.parent);return vt._baseState=Mt,vt},pt.prototype._wrap=function(){var xt=this._baseState;ut.forEach(function(Mt){this[Mt]=function(){var Ot=new this.constructor(this);return xt.children.push(Ot),Ot[Mt].apply(Ot,arguments)}},this)},pt.prototype._init=function(xt){var Mt=this._baseState;nt(Mt.parent===null),xt.call(this),Mt.children=Mt.children.filter(function(vt){return vt._baseState.parent===this},this),nt.equal(Mt.children.length,1,"Root node can have only one child")},pt.prototype._useArgs=function(xt){var Mt=this._baseState,vt=xt.filter(function(Ot){return Ot instanceof this.constructor},this);xt=xt.filter(function(Ot){return!(Ot instanceof this.constructor)},this),vt.length!==0&&(nt(Mt.children===null),Mt.children=vt,vt.forEach(function(Ot){Ot._baseState.parent=this},this)),xt.length!==0&&(nt(Mt.args===null),Mt.args=xt,Mt.reverseArgs=xt.map(function(Ot){if(typeof Ot!="object"||Ot.constructor!==Object)return Ot;var At={};return Object.keys(Ot).forEach(function(Rt){Rt==(Rt|0)&&(Rt|=0);var zt=Ot[Rt];At[zt]=Rt}),At}))},dt.forEach(function(mt){pt.prototype[mt]=function(){var Mt=this._baseState;throw new Error(mt+" not implemented for encoding: "+Mt.enc)}}),lt.forEach(function(mt){pt.prototype[mt]=function(){var Mt=this._baseState,vt=Array.prototype.slice.call(arguments);return nt(Mt.tag===null),Mt.tag=mt,this._useArgs(vt),this}}),pt.prototype.use=function(xt){nt(xt);var Mt=this._baseState;return nt(Mt.use===null),Mt.use=xt,this},pt.prototype.optional=function(){var xt=this._baseState;return xt.optional=!0,this},pt.prototype.def=function(xt){var Mt=this._baseState;return nt(Mt.default===null),Mt.default=xt,Mt.optional=!0,this},pt.prototype.explicit=function(xt){var Mt=this._baseState;return nt(Mt.explicit===null&&Mt.implicit===null),Mt.explicit=xt,this},pt.prototype.implicit=function(xt){var Mt=this._baseState;return nt(Mt.explicit===null&&Mt.implicit===null),Mt.implicit=xt,this},pt.prototype.obj=function(){var xt=this._baseState,Mt=Array.prototype.slice.call(arguments);return xt.obj=!0,Mt.length!==0&&this._useArgs(Mt),this},pt.prototype.key=function(xt){var Mt=this._baseState;return nt(Mt.key===null),Mt.key=xt,this},pt.prototype.any=function(){var xt=this._baseState;return xt.any=!0,this},pt.prototype.choice=function(xt){var Mt=this._baseState;return nt(Mt.choice===null),Mt.choice=xt,this._useArgs(Object.keys(xt).map(function(vt){return xt[vt]})),this},pt.prototype.contains=function(xt){var Mt=this._baseState;return nt(Mt.use===null),Mt.contains=xt,this},pt.prototype._decode=function(xt,Mt){var vt=this._baseState;if(vt.parent===null)return xt.wrapResult(vt.children[0]._decode(xt,Mt));var Ot=vt.default,At=!0,Rt=null;if(vt.key!==null&&(Rt=xt.enterKey(vt.key)),vt.optional){var zt=null;if(vt.explicit!==null?zt=vt.explicit:vt.implicit!==null?zt=vt.implicit:vt.tag!==null&&(zt=vt.tag),zt===null&&!vt.any){var Tt=xt.save();try{vt.choice===null?this._decodeGeneric(vt.tag,xt,Mt):this._decodeChoice(xt,Mt),At=!0}catch{At=!1}xt.restore(Tt)}else if(At=this._peekTag(xt,zt,vt.any),xt.isError(At))return At}var Ct;if(vt.obj&&At&&(Ct=xt.enterObject()),At){if(vt.explicit!==null){var It=this._decodeTag(xt,vt.explicit);if(xt.isError(It))return It;xt=It}var Dt=xt.offset;if(vt.use===null&&vt.choice===null){if(vt.any)var Tt=xt.save();var kt=this._decodeTag(xt,vt.implicit!==null?vt.implicit:vt.tag,vt.any);if(xt.isError(kt))return kt;vt.any?Ot=xt.raw(Tt):xt=kt}if(Mt&&Mt.track&&vt.tag!==null&&Mt.track(xt.path(),Dt,xt.length,"tagged"),Mt&&Mt.track&&vt.tag!==null&&Mt.track(xt.path(),xt.offset,xt.length,"content"),vt.any?Ot=Ot:vt.choice===null?Ot=this._decodeGeneric(vt.tag,xt,Mt):Ot=this._decodeChoice(xt,Mt),xt.isError(Ot))return Ot;if(!vt.any&&vt.choice===null&&vt.children!==null&&vt.children.forEach(function(Yt){Yt._decode(xt,Mt)}),vt.contains&&(vt.tag==="octstr"||vt.tag==="bitstr")){var qt=new rt(Ot);Ot=this._getUse(vt.contains,xt._reporterState.obj)._decode(qt,Mt)}}return vt.obj&&At&&(Ot=xt.leaveObject(Ct)),vt.key!==null&&(Ot!==null||At===!0)?xt.leaveKey(Rt,vt.key,Ot):Rt!==null&&xt.exitKey(Rt),Ot},pt.prototype._decodeGeneric=function(xt,Mt,vt){var Ot=this._baseState;return xt==="seq"||xt==="set"?null:xt==="seqof"||xt==="setof"?this._decodeList(Mt,xt,Ot.args[0],vt):/str$/.test(xt)?this._decodeStr(Mt,xt,vt):xt==="objid"&&Ot.args?this._decodeObjid(Mt,Ot.args[0],Ot.args[1],vt):xt==="objid"?this._decodeObjid(Mt,null,null,vt):xt==="gentime"||xt==="utctime"?this._decodeTime(Mt,xt,vt):xt==="null_"?this._decodeNull(Mt,vt):xt==="bool"?this._decodeBool(Mt,vt):xt==="objDesc"?this._decodeStr(Mt,xt,vt):xt==="int"||xt==="enum"?this._decodeInt(Mt,Ot.args&&Ot.args[0],vt):Ot.use!==null?this._getUse(Ot.use,Mt._reporterState.obj)._decode(Mt,vt):Mt.error("unknown tag: "+xt)},pt.prototype._getUse=function(xt,Mt){var vt=this._baseState;return vt.useDecoder=this._use(xt,Mt),nt(vt.useDecoder._baseState.parent===null),vt.useDecoder=vt.useDecoder._baseState.children[0],vt.implicit!==vt.useDecoder._baseState.implicit&&(vt.useDecoder=vt.useDecoder.clone(),vt.useDecoder._baseState.implicit=vt.implicit),vt.useDecoder},pt.prototype._decodeChoice=function(xt,Mt){var vt=this._baseState,Ot=null,At=!1;return Object.keys(vt.choice).some(function(Rt){var zt=xt.save(),Tt=vt.choice[Rt];try{var Ct=Tt._decode(xt,Mt);if(xt.isError(Ct))return!1;Ot={type:Rt,value:Ct},At=!0}catch{return xt.restore(zt),!1}return!0},this),At?Ot:xt.error("Choice not matched")},pt.prototype._createEncoderBuffer=function(xt){return new tt(xt,this.reporter)},pt.prototype._encode=function(xt,Mt,vt){var Ot=this._baseState;if(!(Ot.default!==null&&Ot.default===xt)){var At=this._encodeValue(xt,Mt,vt);if(At!==void 0&&!this._skipDefault(At,Mt,vt))return At}},pt.prototype._encodeValue=function(xt,Mt,vt){var Ot=this._baseState;if(Ot.parent===null)return Ot.children[0]._encode(xt,Mt||new et);var Tt=null;if(this.reporter=Mt,Ot.optional&&xt===void 0)if(Ot.default!==null)xt=Ot.default;else return;var At=null,Rt=!1;if(Ot.any)Tt=this._createEncoderBuffer(xt);else if(Ot.choice)Tt=this._encodeChoice(xt,Mt);else if(Ot.contains)At=this._getUse(Ot.contains,vt)._encode(xt,Mt),Rt=!0;else if(Ot.children)At=Ot.children.map(function(Dt){if(Dt._baseState.tag==="null_")return Dt._encode(null,Mt,xt);if(Dt._baseState.key===null)return Mt.error("Child should have a key");var kt=Mt.enterKey(Dt._baseState.key);if(typeof xt!="object")return Mt.error("Child expected, but input is not object");var qt=Dt._encode(xt[Dt._baseState.key],Mt,xt);return Mt.leaveKey(kt),qt},this).filter(function(Dt){return Dt}),At=this._createEncoderBuffer(At);else if(Ot.tag==="seqof"||Ot.tag==="setof"){if(!(Ot.args&&Ot.args.length===1))return Mt.error("Too many args for : "+Ot.tag);if(!Array.isArray(xt))return Mt.error("seqof/setof, but data is not Array");var zt=this.clone();zt._baseState.implicit=null,At=this._createEncoderBuffer(xt.map(function(Dt){var kt=this._baseState;return this._getUse(kt.args[0],xt)._encode(Dt,Mt)},zt))}else Ot.use!==null?Tt=this._getUse(Ot.use,vt)._encode(xt,Mt):(At=this._encodePrimitive(Ot.tag,xt),Rt=!0);var Tt;if(!Ot.any&&Ot.choice===null){var Ct=Ot.implicit!==null?Ot.implicit:Ot.tag,It=Ot.implicit===null?"universal":"context";Ct===null?Ot.use===null&&Mt.error("Tag could be omitted only for .use()"):Ot.use===null&&(Tt=this._encodeComposite(Ct,Rt,It,At))}return Ot.explicit!==null&&(Tt=this._encodeComposite(Ot.explicit,!1,"context",Tt)),Tt},pt.prototype._encodeChoice=function(xt,Mt){var vt=this._baseState,Ot=vt.choice[xt.type];return Ot||nt(!1,xt.type+" not found in "+JSON.stringify(Object.keys(vt.choice))),Ot._encode(xt.value,Mt)},pt.prototype._encodePrimitive=function(xt,Mt){var vt=this._baseState;if(/str$/.test(xt))return this._encodeStr(Mt,xt);if(xt==="objid"&&vt.args)return this._encodeObjid(Mt,vt.reverseArgs[0],vt.args[1]);if(xt==="objid")return this._encodeObjid(Mt,null,null);if(xt==="gentime"||xt==="utctime")return this._encodeTime(Mt,xt);if(xt==="null_")return this._encodeNull();if(xt==="int"||xt==="enum")return this._encodeInt(Mt,vt.args&&vt.reverseArgs[0]);if(xt==="bool")return this._encodeBool(Mt);if(xt==="objDesc")return this._encodeStr(Mt,xt);throw new Error("Unsupported tag: "+xt)},pt.prototype._isNumstr=function(xt){return/^[0-9 ]*$/.test(xt)},pt.prototype._isPrintstr=function(xt){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(xt)},node}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(et){var tt=et;tt.Reporter=reporter.Reporter,tt.DecoderBuffer=requireBuffer().DecoderBuffer,tt.EncoderBuffer=requireBuffer().EncoderBuffer,tt.Node=requireNode()}(base)),base}var constants={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(et){var tt=requireConstants();et.tagClass={0:"universal",1:"application",2:"context",3:"private"},et.tagClassByName=tt._reverse(et.tagClass),et.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},et.tagByName=tt._reverse(et.tag)}(der)),der}var hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,function(et){var tt=et;tt._reverse=function(nt){var lt={};return Object.keys(nt).forEach(function(ut){(ut|0)==ut&&(ut=ut|0);var dt=nt[ut];lt[dt]=ut}),lt},tt.der=requireDer$2()}(constants)),constants}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var et=inherits_browserExports,tt=requireAsn1(),rt=tt.base,nt=tt.bignum,lt=tt.constants.der;function ut(mt){this.enc="der",this.name=mt.name,this.entity=mt,this.tree=new dt,this.tree._init(mt.body)}der_1$1=ut,ut.prototype.decode=function(xt,Mt){return xt instanceof rt.DecoderBuffer||(xt=new rt.DecoderBuffer(xt,Mt)),this.tree._decode(xt,Mt)};function dt(mt){rt.Node.call(this,"der",mt)}et(dt,rt.Node),dt.prototype._peekTag=function(xt,Mt,vt){if(xt.isEmpty())return!1;var Ot=xt.save(),At=pt(xt,'Failed to peek tag: "'+Mt+'"');return xt.isError(At)?At:(xt.restore(Ot),At.tag===Mt||At.tagStr===Mt||At.tagStr+"of"===Mt||vt)},dt.prototype._decodeTag=function(xt,Mt,vt){var Ot=pt(xt,'Failed to decode tag of "'+Mt+'"');if(xt.isError(Ot))return Ot;var At=ht(xt,Ot.primitive,'Failed to get length of "'+Mt+'"');if(xt.isError(At))return At;if(!vt&&Ot.tag!==Mt&&Ot.tagStr!==Mt&&Ot.tagStr+"of"!==Mt)return xt.error('Failed to match tag: "'+Mt+'"');if(Ot.primitive||At!==null)return xt.skip(At,'Failed to match body of: "'+Mt+'"');var Rt=xt.save(),zt=this._skipUntilEnd(xt,'Failed to skip indefinite length body: "'+this.tag+'"');return xt.isError(zt)?zt:(At=xt.offset-Rt.offset,xt.restore(Rt),xt.skip(At,'Failed to match body of: "'+Mt+'"'))},dt.prototype._skipUntilEnd=function(xt,Mt){for(;;){var vt=pt(xt,Mt);if(xt.isError(vt))return vt;var Ot=ht(xt,vt.primitive,Mt);if(xt.isError(Ot))return Ot;var At;if(vt.primitive||Ot!==null?At=xt.skip(Ot):At=this._skipUntilEnd(xt,Mt),xt.isError(At))return At;if(vt.tagStr==="end")break}},dt.prototype._decodeList=function(xt,Mt,vt,Ot){for(var At=[];!xt.isEmpty();){var Rt=this._peekTag(xt,"end");if(xt.isError(Rt))return Rt;var zt=vt.decode(xt,"der",Ot);if(xt.isError(zt)&&Rt)break;At.push(zt)}return At},dt.prototype._decodeStr=function(xt,Mt){if(Mt==="bitstr"){var vt=xt.readUInt8();return xt.isError(vt)?vt:{unused:vt,data:xt.raw()}}else if(Mt==="bmpstr"){var Ot=xt.raw();if(Ot.length%2===1)return xt.error("Decoding of string type: bmpstr length mismatch");for(var At="",Rt=0;Rt<Ot.length/2;Rt++)At+=String.fromCharCode(Ot.readUInt16BE(Rt*2));return At}else if(Mt==="numstr"){var zt=xt.raw().toString("ascii");return this._isNumstr(zt)?zt:xt.error("Decoding of string type: numstr unsupported characters")}else{if(Mt==="octstr")return xt.raw();if(Mt==="objDesc")return xt.raw();if(Mt==="printstr"){var Tt=xt.raw().toString("ascii");return this._isPrintstr(Tt)?Tt:xt.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(Mt)?xt.raw().toString():xt.error("Decoding of string type: "+Mt+" unsupported")}},dt.prototype._decodeObjid=function(xt,Mt,vt){for(var Ot,At=[],Rt=0;!xt.isEmpty();){var zt=xt.readUInt8();Rt<<=7,Rt|=zt&127,zt&128||(At.push(Rt),Rt=0)}zt&128&&At.push(Rt);var Tt=At[0]/40|0,Ct=At[0]%40;if(vt?Ot=At:Ot=[Tt,Ct].concat(At.slice(1)),Mt){var It=Mt[Ot.join(" ")];It===void 0&&(It=Mt[Ot.join(".")]),It!==void 0&&(Ot=It)}return Ot},dt.prototype._decodeTime=function(xt,Mt){var vt=xt.raw().toString();if(Mt==="gentime")var Ot=vt.slice(0,4)|0,At=vt.slice(4,6)|0,Rt=vt.slice(6,8)|0,zt=vt.slice(8,10)|0,Tt=vt.slice(10,12)|0,Ct=vt.slice(12,14)|0;else if(Mt==="utctime"){var Ot=vt.slice(0,2)|0,At=vt.slice(2,4)|0,Rt=vt.slice(4,6)|0,zt=vt.slice(6,8)|0,Tt=vt.slice(8,10)|0,Ct=vt.slice(10,12)|0;Ot<70?Ot=2e3+Ot:Ot=1900+Ot}else return xt.error("Decoding "+Mt+" time is not supported yet");return Date.UTC(Ot,At-1,Rt,zt,Tt,Ct,0)},dt.prototype._decodeNull=function(xt){return null},dt.prototype._decodeBool=function(xt){var Mt=xt.readUInt8();return xt.isError(Mt)?Mt:Mt!==0},dt.prototype._decodeInt=function(xt,Mt){var vt=xt.raw(),Ot=new nt(vt);return Mt&&(Ot=Mt[Ot.toString(10)]||Ot),Ot},dt.prototype._use=function(xt,Mt){return typeof xt=="function"&&(xt=xt(Mt)),xt._getDecoder("der").tree};function pt(mt,xt){var Mt=mt.readUInt8(xt);if(mt.isError(Mt))return Mt;var vt=lt.tagClass[Mt>>6],Ot=(Mt&32)===0;if((Mt&31)===31){var At=Mt;for(Mt=0;(At&128)===128;){if(At=mt.readUInt8(xt),mt.isError(At))return At;Mt<<=7,Mt|=At&127}}else Mt&=31;var Rt=lt.tag[Mt];return{cls:vt,primitive:Ot,tag:Mt,tagStr:Rt}}function ht(mt,xt,Mt){var vt=mt.readUInt8(Mt);if(mt.isError(vt))return vt;if(!xt&&vt===128)return null;if(!(vt&128))return vt;var Ot=vt&127;if(Ot>4)return mt.error("length octect is too long");vt=0;for(var At=0;At<Ot;At++){vt<<=8;var Rt=mt.readUInt8(Mt);if(mt.isError(Rt))return Rt;vt|=Rt}return vt}return der_1$1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var et=inherits_browserExports,tt=dist$5.Buffer,rt=requireDer$1();function nt(lt){rt.call(this,lt),this.enc="pem"}return et(nt,rt),pem$1=nt,nt.prototype.decode=function(ut,dt){for(var pt=ut.toString().split(/[\r\n]+/g),ht=dt.label.toUpperCase(),mt=/^-----(BEGIN|END) ([^-]+)-----$/,xt=-1,Mt=-1,vt=0;vt<pt.length;vt++){var Ot=pt[vt].match(mt);if(Ot!==null&&Ot[2]===ht)if(xt===-1){if(Ot[1]!=="BEGIN")break;xt=vt}else{if(Ot[1]!=="END")break;Mt=vt;break}}if(xt===-1||Mt===-1)throw new Error("PEM section not found for: "+ht);var At=pt.slice(xt+1,Mt).join("");At.replace(/[^a-z0-9\+\/=]+/gi,"");var Rt=new tt(At,"base64");return rt.prototype.decode.call(this,Rt,dt)},pem$1}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(et){var tt=et;tt.der=requireDer$1(),tt.pem=requirePem$1()}(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var et=inherits_browserExports,tt=dist$5.Buffer,rt=requireAsn1(),nt=rt.base,lt=rt.constants.der;function ut(mt){this.enc="der",this.name=mt.name,this.entity=mt,this.tree=new dt,this.tree._init(mt.body)}der_1=ut,ut.prototype.encode=function(xt,Mt){return this.tree._encode(xt,Mt).join()};function dt(mt){nt.Node.call(this,"der",mt)}et(dt,nt.Node),dt.prototype._encodeComposite=function(xt,Mt,vt,Ot){var At=ht(xt,Mt,vt,this.reporter);if(Ot.length<128){var Tt=new tt(2);return Tt[0]=At,Tt[1]=Ot.length,this._createEncoderBuffer([Tt,Ot])}for(var Rt=1,zt=Ot.length;zt>=256;zt>>=8)Rt++;var Tt=new tt(2+Rt);Tt[0]=At,Tt[1]=128|Rt;for(var zt=1+Rt,Ct=Ot.length;Ct>0;zt--,Ct>>=8)Tt[zt]=Ct&255;return this._createEncoderBuffer([Tt,Ot])},dt.prototype._encodeStr=function(xt,Mt){if(Mt==="bitstr")return this._createEncoderBuffer([xt.unused|0,xt.data]);if(Mt==="bmpstr"){for(var vt=new tt(xt.length*2),Ot=0;Ot<xt.length;Ot++)vt.writeUInt16BE(xt.charCodeAt(Ot),Ot*2);return this._createEncoderBuffer(vt)}else return Mt==="numstr"?this._isNumstr(xt)?this._createEncoderBuffer(xt):this.reporter.error("Encoding of string type: numstr supports only digits and space"):Mt==="printstr"?this._isPrintstr(xt)?this._createEncoderBuffer(xt):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(Mt)?this._createEncoderBuffer(xt):Mt==="objDesc"?this._createEncoderBuffer(xt):this.reporter.error("Encoding of string type: "+Mt+" unsupported")},dt.prototype._encodeObjid=function(xt,Mt,vt){if(typeof xt=="string"){if(!Mt)return this.reporter.error("string objid given, but no values map found");if(!Mt.hasOwnProperty(xt))return this.reporter.error("objid not found in values map");xt=Mt[xt].split(/[\s\.]+/g);for(var Ot=0;Ot<xt.length;Ot++)xt[Ot]|=0}else if(Array.isArray(xt)){xt=xt.slice();for(var Ot=0;Ot<xt.length;Ot++)xt[Ot]|=0}if(!Array.isArray(xt))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(xt));if(!vt){if(xt[1]>=40)return this.reporter.error("Second objid identifier OOB");xt.splice(0,2,xt[0]*40+xt[1])}for(var At=0,Ot=0;Ot<xt.length;Ot++){var Rt=xt[Ot];for(At++;Rt>=128;Rt>>=7)At++}for(var zt=new tt(At),Tt=zt.length-1,Ot=xt.length-1;Ot>=0;Ot--){var Rt=xt[Ot];for(zt[Tt--]=Rt&127;(Rt>>=7)>0;)zt[Tt--]=128|Rt&127}return this._createEncoderBuffer(zt)};function pt(mt){return mt<10?"0"+mt:mt}dt.prototype._encodeTime=function(xt,Mt){var vt,Ot=new Date(xt);return Mt==="gentime"?vt=[pt(Ot.getFullYear()),pt(Ot.getUTCMonth()+1),pt(Ot.getUTCDate()),pt(Ot.getUTCHours()),pt(Ot.getUTCMinutes()),pt(Ot.getUTCSeconds()),"Z"].join(""):Mt==="utctime"?vt=[pt(Ot.getFullYear()%100),pt(Ot.getUTCMonth()+1),pt(Ot.getUTCDate()),pt(Ot.getUTCHours()),pt(Ot.getUTCMinutes()),pt(Ot.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+Mt+" time is not supported yet"),this._encodeStr(vt,"octstr")},dt.prototype._encodeNull=function(){return this._createEncoderBuffer("")},dt.prototype._encodeInt=function(xt,Mt){if(typeof xt=="string"){if(!Mt)return this.reporter.error("String int or enum given, but no values map");if(!Mt.hasOwnProperty(xt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(xt));xt=Mt[xt]}if(typeof xt!="number"&&!tt.isBuffer(xt)){var vt=xt.toArray();!xt.sign&&vt[0]&128&&vt.unshift(0),xt=new tt(vt)}if(tt.isBuffer(xt)){var Ot=xt.length;xt.length===0&&Ot++;var Rt=new tt(Ot);return xt.copy(Rt),xt.length===0&&(Rt[0]=0),this._createEncoderBuffer(Rt)}if(xt<128)return this._createEncoderBuffer(xt);if(xt<256)return this._createEncoderBuffer([0,xt]);for(var Ot=1,At=xt;At>=256;At>>=8)Ot++;for(var Rt=new Array(Ot),At=Rt.length-1;At>=0;At--)Rt[At]=xt&255,xt>>=8;return Rt[0]&128&&Rt.unshift(0),this._createEncoderBuffer(new tt(Rt))},dt.prototype._encodeBool=function(xt){return this._createEncoderBuffer(xt?255:0)},dt.prototype._use=function(xt,Mt){return typeof xt=="function"&&(xt=xt(Mt)),xt._getEncoder("der").tree},dt.prototype._skipDefault=function(xt,Mt,vt){var Ot=this._baseState,At;if(Ot.default===null)return!1;var Rt=xt.join();if(Ot.defaultBuffer===void 0&&(Ot.defaultBuffer=this._encodeValue(Ot.default,Mt,vt).join()),Rt.length!==Ot.defaultBuffer.length)return!1;for(At=0;At<Rt.length;At++)if(Rt[At]!==Ot.defaultBuffer[At])return!1;return!0};function ht(mt,xt,Mt,vt){var Ot;if(mt==="seqof"?mt="seq":mt==="setof"&&(mt="set"),lt.tagByName.hasOwnProperty(mt))Ot=lt.tagByName[mt];else if(typeof mt=="number"&&(mt|0)===mt)Ot=mt;else return vt.error("Unknown tag: "+mt);return Ot>=31?vt.error("Multi-octet tag encoding unsupported"):(xt||(Ot|=32),Ot|=lt.tagClassByName[Mt||"universal"]<<6,Ot)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var et=inherits_browserExports,tt=requireDer();function rt(nt){tt.call(this,nt),this.enc="pem"}return et(rt,tt),pem=rt,rt.prototype.encode=function(lt,ut){for(var dt=tt.prototype.encode.call(this,lt),pt=dt.toString("base64"),ht=["-----BEGIN "+ut.label+"-----"],mt=0;mt<pt.length;mt+=64)ht.push(pt.slice(mt,mt+64));return ht.push("-----END "+ut.label+"-----"),ht.join(`
`)},pem}var hasRequiredEncoders;function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,function(et){var tt=et;tt.der=requireDer(),tt.pem=requirePem()}(encoders)),encoders}var hasRequiredAsn1;function requireAsn1(){return hasRequiredAsn1||(hasRequiredAsn1=1,function(et){var tt=et;tt.bignum=bnExports$2,tt.define=requireApi().define,tt.base=requireBase(),tt.constants=requireConstants(),tt.decoders=requireDecoders(),tt.encoders=requireEncoders()}(asn1$2)),asn1$2}var asn=requireAsn1(),Time=asn.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),AttributeTypeValue=asn.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),AlgorithmIdentifier$1=asn.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),SubjectPublicKeyInfo=asn.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier$1),this.key("subjectPublicKey").bitstr())}),RelativeDistinguishedName=asn.define("RelativeDistinguishedName",function(){this.setof(AttributeTypeValue)}),RDNSequence=asn.define("RDNSequence",function(){this.seqof(RelativeDistinguishedName)}),Name=asn.define("Name",function(){this.choice({rdnSequence:this.use(RDNSequence)})}),Validity=asn.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Time),this.key("notAfter").use(Time))}),Extension=asn.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),TBSCertificate=asn.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(AlgorithmIdentifier$1),this.key("issuer").use(Name),this.key("validity").use(Validity),this.key("subject").use(Name),this.key("subjectPublicKeyInfo").use(SubjectPublicKeyInfo),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Extension).optional())}),X509Certificate=asn.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(TBSCertificate),this.key("signatureAlgorithm").use(AlgorithmIdentifier$1),this.key("signatureValue").bitstr())}),certificate=X509Certificate,asn1$1=requireAsn1();asn1$3.certificate=certificate;var RSAPrivateKey=asn1$1.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});asn1$3.RSAPrivateKey=RSAPrivateKey;var RSAPublicKey=asn1$1.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$3.RSAPublicKey=RSAPublicKey;var AlgorithmIdentifier=asn1$1.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),PublicKey=asn1$1.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPublicKey").bitstr())});asn1$3.PublicKey=PublicKey;var PrivateKeyInfo=asn1$1.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPrivateKey").octstr())});asn1$3.PrivateKey=PrivateKeyInfo;var EncryptedPrivateKeyInfo=asn1$1.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});asn1$3.EncryptedPrivateKey=EncryptedPrivateKeyInfo;var DSAPrivateKey=asn1$1.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});asn1$3.DSAPrivateKey=DSAPrivateKey;asn1$3.DSAparam=asn1$1.define("DSAparam",function(){this.int()});var ECParameters=asn1$1.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),ECPrivateKey=asn1$1.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(ECParameters),this.key("publicKey").optional().explicit(1).bitstr())});asn1$3.ECPrivateKey=ECPrivateKey;asn1$3.signature=asn1$1.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const require$$1={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var findProc=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,startRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,fullRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,evp=evp_bytestokey,ciphers$1=browser$5,Buffer$6=safeBufferExports$1.Buffer,fixProc$1=function(et,tt){var rt=et.toString(),nt=rt.match(findProc),lt;if(nt){var dt="aes"+nt[1],pt=Buffer$6.from(nt[2],"hex"),ht=Buffer$6.from(nt[3].replace(/[\r\n]/g,""),"base64"),mt=evp(tt,pt.slice(0,8),parseInt(nt[1],10)).key,xt=[],Mt=ciphers$1.createDecipheriv(dt,mt,pt);xt.push(Mt.update(ht)),xt.push(Mt.final()),lt=Buffer$6.concat(xt)}else{var ut=rt.match(fullRegex);lt=Buffer$6.from(ut[2].replace(/[\r\n]/g,""),"base64")}var vt=rt.match(startRegex)[1];return{tag:vt,data:lt}},asn1=asn1$3,aesid=require$$1,fixProc=fixProc$1,ciphers=browser$5,compat=browser$7,Buffer$5=safeBufferExports$1.Buffer;function decrypt(et,tt){var rt=et.algorithm.decrypt.kde.kdeparams.salt,nt=parseInt(et.algorithm.decrypt.kde.kdeparams.iters.toString(),10),lt=aesid[et.algorithm.decrypt.cipher.algo.join(".")],ut=et.algorithm.decrypt.cipher.iv,dt=et.subjectPrivateKey,pt=parseInt(lt.split("-")[1],10)/8,ht=compat.pbkdf2Sync(tt,rt,nt,pt,"sha1"),mt=ciphers.createDecipheriv(lt,ht,ut),xt=[];return xt.push(mt.update(dt)),xt.push(mt.final()),Buffer$5.concat(xt)}function parseKeys$2(et){var tt;typeof et=="object"&&!Buffer$5.isBuffer(et)&&(tt=et.passphrase,et=et.key),typeof et=="string"&&(et=Buffer$5.from(et));var rt=fixProc(et,tt),nt=rt.tag,lt=rt.data,ut,dt;switch(nt){case"CERTIFICATE":dt=asn1.certificate.decode(lt,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(dt||(dt=asn1.PublicKey.decode(lt,"der")),ut=dt.algorithm.algorithm.join("."),ut){case"1.2.840.113549.1.1.1":return asn1.RSAPublicKey.decode(dt.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return dt.subjectPrivateKey=dt.subjectPublicKey,{type:"ec",data:dt};case"1.2.840.10040.4.1":return dt.algorithm.params.pub_key=asn1.DSAparam.decode(dt.subjectPublicKey.data,"der"),{type:"dsa",data:dt.algorithm.params};default:throw new Error("unknown key id "+ut)}case"ENCRYPTED PRIVATE KEY":lt=asn1.EncryptedPrivateKey.decode(lt,"der"),lt=decrypt(lt,tt);case"PRIVATE KEY":switch(dt=asn1.PrivateKey.decode(lt,"der"),ut=dt.algorithm.algorithm.join("."),ut){case"1.2.840.113549.1.1.1":return asn1.RSAPrivateKey.decode(dt.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:dt.algorithm.curve,privateKey:asn1.ECPrivateKey.decode(dt.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return dt.algorithm.params.priv_key=asn1.DSAparam.decode(dt.subjectPrivateKey,"der"),{type:"dsa",params:dt.algorithm.params};default:throw new Error("unknown key id "+ut)}case"RSA PUBLIC KEY":return asn1.RSAPublicKey.decode(lt,"der");case"RSA PRIVATE KEY":return asn1.RSAPrivateKey.decode(lt,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:asn1.DSAPrivateKey.decode(lt,"der")};case"EC PRIVATE KEY":return lt=asn1.ECPrivateKey.decode(lt,"der"),{curve:lt.parameters.value,privateKey:lt.privateKey};default:throw new Error("unknown key type "+nt)}}parseKeys$2.signature=asn1.signature;var parseAsn1=parseKeys$2;const require$$4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var et=safeBufferExports$1.Buffer,tt=browser$8,rt=browserifyRsa,nt=requireElliptic().ec,lt=bnExports,ut=parseAsn1,dt=require$$4,pt=1;function ht(Tt,Ct,It,Dt,kt){var qt=ut(Ct);if(qt.curve){if(Dt!=="ecdsa"&&Dt!=="ecdsa/rsa")throw new Error("wrong private key type");return mt(Tt,qt)}else if(qt.type==="dsa"){if(Dt!=="dsa")throw new Error("wrong private key type");return xt(Tt,qt,It)}if(Dt!=="rsa"&&Dt!=="ecdsa/rsa")throw new Error("wrong private key type");if(Ct.padding!==void 0&&Ct.padding!==pt)throw new Error("illegal or unsupported padding mode");Tt=et.concat([kt,Tt]);for(var Nt=qt.modulus.byteLength(),Yt=[0,1];Tt.length+Yt.length+1<Nt;)Yt.push(255);Yt.push(0);for(var Kt=-1;++Kt<Tt.length;)Yt.push(Tt[Kt]);var Jt=rt(Yt,qt);return Jt}function mt(Tt,Ct){var It=dt[Ct.curve.join(".")];if(!It)throw new Error("unknown curve "+Ct.curve.join("."));var Dt=new nt(It),kt=Dt.keyFromPrivate(Ct.privateKey),qt=kt.sign(Tt);return et.from(qt.toDER())}function xt(Tt,Ct,It){for(var Dt=Ct.params.priv_key,kt=Ct.params.p,qt=Ct.params.q,Nt=Ct.params.g,Yt=new lt(0),Kt,Jt=Ot(Tt,qt).mod(qt),Qt=!1,Bt=vt(Dt,qt,Tt,It);Qt===!1;)Kt=Rt(qt,Bt,It),Yt=zt(Nt,Kt,kt,qt),Qt=Kt.invm(qt).imul(Jt.add(Dt.mul(Yt))).mod(qt),Qt.cmpn(0)===0&&(Qt=!1,Yt=new lt(0));return Mt(Yt,Qt)}function Mt(Tt,Ct){Tt=Tt.toArray(),Ct=Ct.toArray(),Tt[0]&128&&(Tt=[0].concat(Tt)),Ct[0]&128&&(Ct=[0].concat(Ct));var It=Tt.length+Ct.length+4,Dt=[48,It,2,Tt.length];return Dt=Dt.concat(Tt,[2,Ct.length],Ct),et.from(Dt)}function vt(Tt,Ct,It,Dt){if(Tt=et.from(Tt.toArray()),Tt.length<Ct.byteLength()){var kt=et.alloc(Ct.byteLength()-Tt.length);Tt=et.concat([kt,Tt])}var qt=It.length,Nt=At(It,Ct),Yt=et.alloc(qt);Yt.fill(1);var Kt=et.alloc(qt);return Kt=tt(Dt,Kt).update(Yt).update(et.from([0])).update(Tt).update(Nt).digest(),Yt=tt(Dt,Kt).update(Yt).digest(),Kt=tt(Dt,Kt).update(Yt).update(et.from([1])).update(Tt).update(Nt).digest(),Yt=tt(Dt,Kt).update(Yt).digest(),{k:Kt,v:Yt}}function Ot(Tt,Ct){var It=new lt(Tt),Dt=(Tt.length<<3)-Ct.bitLength();return Dt>0&&It.ishrn(Dt),It}function At(Tt,Ct){Tt=Ot(Tt,Ct),Tt=Tt.mod(Ct);var It=et.from(Tt.toArray());if(It.length<Ct.byteLength()){var Dt=et.alloc(Ct.byteLength()-It.length);It=et.concat([Dt,It])}return It}function Rt(Tt,Ct,It){var Dt,kt;do{for(Dt=et.alloc(0);Dt.length*8<Tt.bitLength();)Ct.v=tt(It,Ct.k).update(Ct.v).digest(),Dt=et.concat([Dt,Ct.v]);kt=Ot(Dt,Tt),Ct.k=tt(It,Ct.k).update(Ct.v).update(et.from([0])).digest(),Ct.v=tt(It,Ct.k).update(Ct.v).digest()}while(kt.cmp(Tt)!==-1);return kt}function zt(Tt,Ct,It,Dt){return Tt.toRed(lt.mont(It)).redPow(Ct).fromRed().mod(Dt)}return sign.exports=ht,sign.exports.getKey=vt,sign.exports.makeKey=Rt,sign.exports}var verify_1,hasRequiredVerify;function requireVerify(){if(hasRequiredVerify)return verify_1;hasRequiredVerify=1;var et=safeBufferExports$1.Buffer,tt=bnExports,rt=requireElliptic().ec,nt=parseAsn1,lt=require$$4;function ut(mt,xt,Mt,vt,Ot){var At=nt(Mt);if(At.type==="ec"){if(vt!=="ecdsa"&&vt!=="ecdsa/rsa")throw new Error("wrong public key type");return dt(mt,xt,At)}else if(At.type==="dsa"){if(vt!=="dsa")throw new Error("wrong public key type");return pt(mt,xt,At)}if(vt!=="rsa"&&vt!=="ecdsa/rsa")throw new Error("wrong public key type");xt=et.concat([Ot,xt]);for(var Rt=At.modulus.byteLength(),zt=[1],Tt=0;xt.length+zt.length+2<Rt;)zt.push(255),Tt+=1;zt.push(0);for(var Ct=-1;++Ct<xt.length;)zt.push(xt[Ct]);zt=et.from(zt);var It=tt.mont(At.modulus);mt=new tt(mt).toRed(It),mt=mt.redPow(new tt(At.publicExponent)),mt=et.from(mt.fromRed().toArray());var Dt=Tt<8?1:0;for(Rt=Math.min(mt.length,zt.length),mt.length!==zt.length&&(Dt=1),Ct=-1;++Ct<Rt;)Dt|=mt[Ct]^zt[Ct];return Dt===0}function dt(mt,xt,Mt){var vt=lt[Mt.data.algorithm.curve.join(".")];if(!vt)throw new Error("unknown curve "+Mt.data.algorithm.curve.join("."));var Ot=new rt(vt),At=Mt.data.subjectPrivateKey.data;return Ot.verify(xt,mt,At)}function pt(mt,xt,Mt){var vt=Mt.data.p,Ot=Mt.data.q,At=Mt.data.g,Rt=Mt.data.pub_key,zt=nt.signature.decode(mt,"der"),Tt=zt.s,Ct=zt.r;ht(Tt,Ot),ht(Ct,Ot);var It=tt.mont(vt),Dt=Tt.invm(Ot),kt=At.toRed(It).redPow(new tt(xt).mul(Dt).mod(Ot)).fromRed().mul(Rt.toRed(It).redPow(Ct.mul(Dt).mod(Ot)).fromRed()).mod(vt).mod(Ot);return kt.cmp(Ct)===0}function ht(mt,xt){if(mt.cmpn(0)<=0)throw new Error("invalid sig");if(mt.cmp(xt)>=0)throw new Error("invalid sig")}return verify_1=ut,verify_1}var browser$3,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$3;hasRequiredBrowser$1=1;var et=safeBufferExports$1.Buffer,tt=browser$9,rt=readableBrowserExports,nt=inherits_browserExports,lt=requireSign(),ut=requireVerify(),dt=require$$6;Object.keys(dt).forEach(function(Mt){dt[Mt].id=et.from(dt[Mt].id,"hex"),dt[Mt.toLowerCase()]=dt[Mt]});function pt(Mt){rt.Writable.call(this);var vt=dt[Mt];if(!vt)throw new Error("Unknown message digest");this._hashType=vt.hash,this._hash=tt(vt.hash),this._tag=vt.id,this._signType=vt.sign}nt(pt,rt.Writable),pt.prototype._write=function(vt,Ot,At){this._hash.update(vt),At()},pt.prototype.update=function(vt,Ot){return this._hash.update(typeof vt=="string"?et.from(vt,Ot):vt),this},pt.prototype.sign=function(vt,Ot){this.end();var At=this._hash.digest(),Rt=lt(At,vt,this._hashType,this._signType,this._tag);return Ot?Rt.toString(Ot):Rt};function ht(Mt){rt.Writable.call(this);var vt=dt[Mt];if(!vt)throw new Error("Unknown message digest");this._hash=tt(vt.hash),this._tag=vt.id,this._signType=vt.sign}nt(ht,rt.Writable),ht.prototype._write=function(vt,Ot,At){this._hash.update(vt),At()},ht.prototype.update=function(vt,Ot){return this._hash.update(typeof vt=="string"?et.from(vt,Ot):vt),this},ht.prototype.verify=function(vt,Ot,At){var Rt=typeof Ot=="string"?et.from(Ot,At):Ot;this.end();var zt=this._hash.digest();return ut(Rt,zt,vt,this._signType,this._tag)};function mt(Mt){return new pt(Mt)}function xt(Mt){return new ht(Mt)}return browser$3={Sign:mt,Verify:xt,createSign:mt,createVerify:xt},browser$3}var browser$2,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$2;hasRequiredBrowser=1;var et=requireElliptic(),tt=bnExports$2;browser$2=function(dt){return new nt(dt)};var rt={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};rt.p224=rt.secp224r1,rt.p256=rt.secp256r1=rt.prime256v1,rt.p192=rt.secp192r1=rt.prime192v1,rt.p384=rt.secp384r1,rt.p521=rt.secp521r1;function nt(ut){this.curveType=rt[ut],this.curveType||(this.curveType={name:ut}),this.curve=new et.ec(this.curveType.name),this.keys=void 0}nt.prototype.generateKeys=function(ut,dt){return this.keys=this.curve.genKeyPair(),this.getPublicKey(ut,dt)},nt.prototype.computeSecret=function(ut,dt,pt){dt=dt||"utf8",Buffer$E.isBuffer(ut)||(ut=new Buffer$E(ut,dt));var ht=this.curve.keyFromPublic(ut).getPublic(),mt=ht.mul(this.keys.getPrivate()).getX();return lt(mt,pt,this.curveType.byteLength)},nt.prototype.getPublicKey=function(ut,dt){var pt=this.keys.getPublic(dt==="compressed",!0);return dt==="hybrid"&&(pt[pt.length-1]%2?pt[0]=7:pt[0]=6),lt(pt,ut)},nt.prototype.getPrivateKey=function(ut){return lt(this.keys.getPrivate(),ut)},nt.prototype.setPublicKey=function(ut,dt){return dt=dt||"utf8",Buffer$E.isBuffer(ut)||(ut=new Buffer$E(ut,dt)),this.keys._importPublic(ut),this},nt.prototype.setPrivateKey=function(ut,dt){dt=dt||"utf8",Buffer$E.isBuffer(ut)||(ut=new Buffer$E(ut,dt));var pt=new tt(ut);return pt=pt.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(pt),this};function lt(ut,dt,pt){Array.isArray(ut)||(ut=ut.toArray());var ht=new Buffer$E(ut);if(pt&&ht.length<pt){var mt=new Buffer$E(pt-ht.length);mt.fill(0),ht=Buffer$E.concat([mt,ht])}return dt?ht.toString(dt):ht}return browser$2}var browser$1={},createHash$2=browser$9,Buffer$4=safeBufferExports$1.Buffer,mgf$2=function(et,tt){for(var rt=Buffer$4.alloc(0),nt=0,lt;rt.length<tt;)lt=i2ops(nt++),rt=Buffer$4.concat([rt,createHash$2("sha1").update(et).update(lt).digest()]);return rt.slice(0,tt)};function i2ops(et){var tt=Buffer$4.allocUnsafe(4);return tt.writeUInt32BE(et,0),tt}var xor$2=function et(tt,rt){for(var nt=tt.length,lt=-1;++lt<nt;)tt[lt]^=rt[lt];return tt},BN$2=bnExports$2,Buffer$3=safeBufferExports$1.Buffer;function withPublic$2(et,tt){return Buffer$3.from(et.toRed(BN$2.mont(tt.modulus)).redPow(new BN$2(tt.publicExponent)).fromRed().toArray())}var withPublic_1=withPublic$2,parseKeys$1=parseAsn1,randomBytes=browserExports,createHash$1=browser$9,mgf$1=mgf$2,xor$1=xor$2,BN$1=bnExports$2,withPublic$1=withPublic_1,crt$1=browserifyRsa,Buffer$2=safeBufferExports$1.Buffer,publicEncrypt=function et(tt,rt,nt){var lt;tt.padding?lt=tt.padding:nt?lt=1:lt=4;var ut=parseKeys$1(tt),dt;if(lt===4)dt=oaep$1(ut,rt);else if(lt===1)dt=pkcs1$1(ut,rt,nt);else if(lt===3){if(dt=new BN$1(rt),dt.cmp(ut.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return nt?crt$1(dt,ut):withPublic$1(dt,ut)};function oaep$1(et,tt){var rt=et.modulus.byteLength(),nt=tt.length,lt=createHash$1("sha1").update(Buffer$2.alloc(0)).digest(),ut=lt.length,dt=2*ut;if(nt>rt-dt-2)throw new Error("message too long");var pt=Buffer$2.alloc(rt-nt-dt-2),ht=rt-ut-1,mt=randomBytes(ut),xt=xor$1(Buffer$2.concat([lt,pt,Buffer$2.alloc(1,1),tt],ht),mgf$1(mt,ht)),Mt=xor$1(mt,mgf$1(xt,ut));return new BN$1(Buffer$2.concat([Buffer$2.alloc(1),Mt,xt],rt))}function pkcs1$1(et,tt,rt){var nt=tt.length,lt=et.modulus.byteLength();if(nt>lt-11)throw new Error("message too long");var ut;return rt?ut=Buffer$2.alloc(lt-nt-3,255):ut=nonZero(lt-nt-3),new BN$1(Buffer$2.concat([Buffer$2.from([0,rt?1:2]),ut,Buffer$2.alloc(1),tt],lt))}function nonZero(et){for(var tt=Buffer$2.allocUnsafe(et),rt=0,nt=randomBytes(et*2),lt=0,ut;rt<et;)lt===nt.length&&(nt=randomBytes(et*2),lt=0),ut=nt[lt++],ut&&(tt[rt++]=ut);return tt}var parseKeys=parseAsn1,mgf=mgf$2,xor=xor$2,BN=bnExports$2,crt=browserifyRsa,createHash=browser$9,withPublic=withPublic_1,Buffer$1=safeBufferExports$1.Buffer,privateDecrypt=function et(tt,rt,nt){var lt;tt.padding?lt=tt.padding:nt?lt=1:lt=4;var ut=parseKeys(tt),dt=ut.modulus.byteLength();if(rt.length>dt||new BN(rt).cmp(ut.modulus)>=0)throw new Error("decryption error");var pt;nt?pt=withPublic(new BN(rt),ut):pt=crt(rt,ut);var ht=Buffer$1.alloc(dt-pt.length);if(pt=Buffer$1.concat([ht,pt],dt),lt===4)return oaep(ut,pt);if(lt===1)return pkcs1(ut,pt,nt);if(lt===3)return pt;throw new Error("unknown padding")};function oaep(et,tt){var rt=et.modulus.byteLength(),nt=createHash("sha1").update(Buffer$1.alloc(0)).digest(),lt=nt.length;if(tt[0]!==0)throw new Error("decryption error");var ut=tt.slice(1,lt+1),dt=tt.slice(lt+1),pt=xor(ut,mgf(dt,lt)),ht=xor(dt,mgf(pt,rt-lt-1));if(compare(nt,ht.slice(0,lt)))throw new Error("decryption error");for(var mt=lt;ht[mt]===0;)mt++;if(ht[mt++]!==1)throw new Error("decryption error");return ht.slice(mt)}function pkcs1(et,tt,rt){for(var nt=tt.slice(0,2),lt=2,ut=0;tt[lt++]!==0;)if(lt>=tt.length){ut++;break}var dt=tt.slice(2,lt-1);if((nt.toString("hex")!=="0002"&&!rt||nt.toString("hex")!=="0001"&&rt)&&ut++,dt.length<8&&ut++,ut)throw new Error("decryption error");return tt.slice(lt)}function compare(et,tt){et=Buffer$1.from(et),tt=Buffer$1.from(tt);var rt=0,nt=et.length;et.length!==tt.length&&(rt++,nt=Math.min(et.length,tt.length));for(var lt=-1;++lt<nt;)rt+=et[lt]^tt[lt];return rt}(function(et){et.publicEncrypt=publicEncrypt,et.privateDecrypt=privateDecrypt,et.privateEncrypt=function(rt,nt){return et.publicEncrypt(rt,nt,!0)},et.publicDecrypt=function(rt,nt){return et.privateDecrypt(rt,nt,!0)}})(browser$1);var browser={};function oldBrowser(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var safeBuffer=safeBufferExports$1,randombytes=browserExports,Buffer=safeBuffer.Buffer,kBufferMaxLength=safeBuffer.kMaxLength,crypto=commonjsGlobal$1.crypto||commonjsGlobal$1.msCrypto,kMaxUint32=Math.pow(2,32)-1;function assertOffset(et,tt){if(typeof et!="number"||et!==et)throw new TypeError("offset must be a number");if(et>kMaxUint32||et<0)throw new TypeError("offset must be a uint32");if(et>kBufferMaxLength||et>tt)throw new RangeError("offset out of range")}function assertSize(et,tt,rt){if(typeof et!="number"||et!==et)throw new TypeError("size must be a number");if(et>kMaxUint32||et<0)throw new TypeError("size must be a uint32");if(et+tt>rt||et>kBufferMaxLength)throw new RangeError("buffer too small")}crypto&&crypto.getRandomValues||!process$1$1.browser?(browser.randomFill=randomFill,browser.randomFillSync=randomFillSync):(browser.randomFill=oldBrowser,browser.randomFillSync=oldBrowser);function randomFill(et,tt,rt,nt){if(!Buffer.isBuffer(et)&&!(et instanceof commonjsGlobal$1.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof tt=="function")nt=tt,tt=0,rt=et.length;else if(typeof rt=="function")nt=rt,rt=et.length-tt;else if(typeof nt!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(tt,et.length),assertSize(rt,tt,et.length),actualFill(et,tt,rt,nt)}function actualFill(et,tt,rt,nt){if(process$1$1.browser){var lt=et.buffer,ut=new Uint8Array(lt,tt,rt);if(crypto.getRandomValues(ut),nt){process$1$1.nextTick(function(){nt(null,et)});return}return et}if(nt){randombytes(rt,function(pt,ht){if(pt)return nt(pt);ht.copy(et,tt),nt(null,et)});return}var dt=randombytes(rt);return dt.copy(et,tt),et}function randomFillSync(et,tt,rt){if(typeof tt>"u"&&(tt=0),!Buffer.isBuffer(et)&&!(et instanceof commonjsGlobal$1.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(tt,et.length),rt===void 0&&(rt=et.length-tt),assertSize(rt,tt,et.length),actualFill(et,tt,rt)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$9,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$8;var et=algos,tt=Object.keys(et),rt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(tt);cryptoBrowserify.getHashes=function(){return rt};var nt=browser$7;cryptoBrowserify.pbkdf2=nt.pbkdf2,cryptoBrowserify.pbkdf2Sync=nt.pbkdf2Sync;var lt=browser$6;cryptoBrowserify.Cipher=lt.Cipher,cryptoBrowserify.createCipher=lt.createCipher,cryptoBrowserify.Cipheriv=lt.Cipheriv,cryptoBrowserify.createCipheriv=lt.createCipheriv,cryptoBrowserify.Decipher=lt.Decipher,cryptoBrowserify.createDecipher=lt.createDecipher,cryptoBrowserify.Decipheriv=lt.Decipheriv,cryptoBrowserify.createDecipheriv=lt.createDecipheriv,cryptoBrowserify.getCiphers=lt.getCiphers,cryptoBrowserify.listCiphers=lt.listCiphers;var ut=requireBrowser$2();cryptoBrowserify.DiffieHellmanGroup=ut.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=ut.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=ut.getDiffieHellman,cryptoBrowserify.createDiffieHellman=ut.createDiffieHellman,cryptoBrowserify.DiffieHellman=ut.DiffieHellman;var dt=requireBrowser$1();cryptoBrowserify.createSign=dt.createSign,cryptoBrowserify.Sign=dt.Sign,cryptoBrowserify.createVerify=dt.createVerify,cryptoBrowserify.Verify=dt.Verify,cryptoBrowserify.createECDH=requireBrowser();var pt=browser$1;cryptoBrowserify.publicEncrypt=pt.publicEncrypt,cryptoBrowserify.privateEncrypt=pt.privateEncrypt,cryptoBrowserify.publicDecrypt=pt.publicDecrypt,cryptoBrowserify.privateDecrypt=pt.privateDecrypt;var ht=browser;return cryptoBrowserify.randomFill=ht.randomFill,cryptoBrowserify.randomFillSync=ht.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var cryptoBrowserifyExports=requireCryptoBrowserify();const MAX_RETRIES=3,fetchUserInfo=async(et=0)=>{const tt=`${window.location.origin}/server/get_user`;try{const rt=await fetch(tt);if(!rt.ok)throw new Error(`Network response was not ok: ${rt.status}`);const nt=await rt.json(),{error:lt,state:ut,role:dt,region:pt,userId:ht}=nt;if(lt)throw new Error("Error fetching user info: "+lt);datadogRum.setUser({id:ht==="Anonymous"?"Anonymous":cryptoBrowserifyExports.createHash("md5").update(`${ht}`).digest("hex"),state:ut,role:dt,region:pt})}catch{et<MAX_RETRIES?setTimeout(()=>fetchUserInfo(et+1),1e3):datadogRum.setUser({id:"Unknown",state:"Unknown",role:"Unknown",region:"Unknown"})}return datadogRum.getUser().id},DatadogUserInfo=()=>{const et=useLocation(),[tt,rt]=reactExports.useState("");return reactExports.useEffect(()=>{datadogRum.getInitConfiguration()&&fetchUserInfo().then(rt)},[]),reactExports.useEffect(()=>{datadogRum.getInitConfiguration()&&(tt==="Unknown"||tt==="Anonymous")&&(rt(""),fetchUserInfo().then(rt))},[et]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})},OutcomeNote=({outcome:et})=>{var dt,pt;const tt=et.note,rt=tt==null?void 0:tt.messageType.alias,nt=tt!=null&&tt.createdAt?hooks(et.submittedAt).format(CurrentAppConfig.OutcomesPage.DateTimeFormat):"",lt=tt!=null&&tt.createdBy?`Dr ${tt.createdBy.firstName} ${tt.createdBy.lastName}`:"",ut=et.status;return jsxRuntimeExports.jsxs(OutcomeNoteContainer,{children:[jsxRuntimeExports.jsx(NoteTitle,{"data-cy":"note-title",children:`Follow up note ${ut==="Submitted"?"submitted":"preview"}`}),ut==="Submitted"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(NoteMetaDataContainer,{children:[jsxRuntimeExports.jsx(NoteAuthor,{children:lt}),jsxRuntimeExports.jsx(NoteDate,{children:nt})]}),rt&&jsxRuntimeExports.jsx(NoteTypeWrapper,{children:jsxRuntimeExports.jsx(NoteType,{children:rt})})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),ut!=="Submitted"?jsxRuntimeExports.jsx(NoteSubHeading,{"data-cy":"note-sub-heading",children:"Note will appear in Mosaiq on submission."}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),jsxRuntimeExports.jsx(NoteMessageContainer,{status:ut,"data-cy":"note-message-container",children:(pt=(dt=et.notePreview)==null?void 0:dt.split(`
`))==null?void 0:pt.map((ht,mt,xt)=>jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[mt===xt.length-1&&jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(NoteMessage,{"data-cy":ht,status:ut,children:ht},mt)]},mt))})]},`outcome-note-${et.id}`)},OUTCOME_STATUS={SUBMITTED:"Submitted",IN_PROGRESS:"In Progress",UNSUBMITTED_CHANGE:"Unsubmitted Changes",NOT_STARTED:"Not started"},DiscardModal=({open:et,setOpen:tt,outcome:rt,handleBack:nt,patientId:lt})=>{const[ut]=useMutation(DISCARD_OUTCOME,{onCompleted:()=>{tt(!1),nt()},refetchQueries:[{query:GET_OUTCOMES_BY_DIAGNOSIS,variables:{patientId:lt}}]}),dt=()=>{tt(!1)},pt=()=>{ut({variables:{outcomeId:rt.id}})};return jsxRuntimeExports.jsx(StandardDialog,{open:et,onClose:dt,title:"Discard Outcome",titleIcon:jsxRuntimeExports.jsx(WarningOutlinedIcon,{color:"warning"}),onSubmit:pt,submitText:"Discard Outcome",destructiveSubmit:!0,children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(Typography,{children:"You are about to discard the following outcome:"}),jsxRuntimeExports.jsx(Typography,{children:rt==null?void 0:rt.diagnosisName}),jsxRuntimeExports.jsxs(Typography,{children:[rt==null?void 0:rt.timePoint," years follow up"]})]})})},itIsABool=et=>et==="True",itIsADate=et=>{const tt=dayjs(et??"");return tt.isValid()?tt:null},IndentBox=et=>jsxRuntimeExports.jsx(Box,{...et,sx:{borderLeft:"1px solid",borderLeftColor:"grey.300",...et.sx}}),MortalityTooltip=()=>{const[et,tt]=reactExports.useState(!1);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>tt(!0),size:"small",sx:{padding:0},children:jsxRuntimeExports.jsx(HelpOutline,{})}),jsxRuntimeExports.jsx(StandardDialog,{open:et,onClose:()=>tt(!1),maxWidth:"xs",title:"Mortality",children:jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsxs(Typography,{children:[jsxRuntimeExports.jsx("span",{children:"ANED"})," = Alive, no evidence of disease"]}),jsxRuntimeExports.jsxs(Typography,{children:[jsxRuntimeExports.jsx("span",{children:"AWD"})," = Alive with disease"]}),jsxRuntimeExports.jsxs(Typography,{children:[jsxRuntimeExports.jsx("span",{children:"DOD"})," = Dead of disease"]}),jsxRuntimeExports.jsxs(Typography,{children:[jsxRuntimeExports.jsx("span",{children:"DOC"})," = Dead of other cause"]})]})})]})},ASSESSMENT_METHOD_OPTIONS=["PET","MRI","CT","Tumour Marker","Clinical","Histology"].map(et=>({label:et,value:et})),RelapseSiteInfo=({id:et,handleChange:tt,setValue:rt,dateValue:nt,siteValue:lt,checkedValue:ut,label:dt})=>{const pt=`${et}Date`,ht=`${et}Site`;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormControlLabel,{sx:{width:"fit-content",marginBottom:2},control:jsxRuntimeExports.jsx(Checkbox$1,{checked:ut,name:et,onChange:(mt,xt)=>{xt||(rt(ht,""),rt(pt,itIsADate(""))),rt(et,xt)},color:"primary"}),label:dt,"data-testid":et}),ut&&jsxRuntimeExports.jsxs(IndentBox,{children:[jsxRuntimeExports.jsx(RODatePicker,{id:pt,name:pt,fieldlabel:"Date",indent:!0,views:["month","year"],onChange:mt=>rt(pt,mt),value:nt,format:"MM/YYYY"}),jsxRuntimeExports.jsx(ROTextField,{id:ht,name:ht,fieldlabel:"Relapse site",indent:!0,onChange:tt,value:lt})]})]})},StatusBanner=({outcome:et})=>{const tt=et.submittedAt?dayjs(et.submittedAt).format("DD MM YYYY h:mm a"):"";return jsxRuntimeExports.jsxs("div",{"data-cy":"status-banner",children:[et.status===OUTCOME_STATUS.IN_PROGRESS&&jsxRuntimeExports.jsx(Banner$2,{text:"",subtext:"You have unsubmitted changes, please submit",type:"info"}),et.status===OUTCOME_STATUS.UNSUBMITTED_CHANGE&&jsxRuntimeExports.jsx(Banner$2,{text:"",subtext:`You have unsubmitted changes, please resubmit. Last submitted at ${tt}`,type:"info"}),et.status===OUTCOME_STATUS.SUBMITTED&&jsxRuntimeExports.jsx(Banner$2,{text:"",subtext:"This outcome has been submitted",type:"success"})]})},FormContainer=({outcome:et,patientId:tt})=>{const[rt]=useMutation(UPDATE_OUTCOME),[nt]=useMutation(SAVE_OUTCOME_DATA),lt=useHistory(),ut=reactExports.useMemo(()=>{var Ot;const vt=((Ot=et==null?void 0:et.formInstance)==null?void 0:Ot.values)??[];return Object.fromEntries(vt.map(At=>[At.field,At.value]))},[et]),dt=()=>{lt.push(`/radiation/patient/${tt}/outcomes`)},pt=vt=>Object.fromEntries(Object.entries(vt).map(([Ot,At])=>[Ot,dayjs.isDayjs(At)&&At.isValid()?At.format("YYYY-MM-DD"):At])),ht=async vt=>{if(!vt)return;const Ot=pt(vt);await rt({variables:{outcomeId:et.id,values:JSON.stringify(Ot),status:"submitted"}}),dt()},mt=vt=>{const Ot=pt(vt??[]);nt({variables:{outcomeId:et.id,jsonData:JSON.stringify(Ot)}})},xt={followUpDate:itIsADate(ut.followUpDate)??itIsADate(et.createdAt),responseToTreatment:ut.responseToTreatment??"",assessmentMethod:ut.assessmentMethod??"",assessmentDate:itIsADate(ut.assessmentDate),mortality:ut.mortality,additionalNotes:ut.additionalNotes,dateOfDeath:itIsADate(ut.dateOfDeath),causeOfDeath:ut.causeOfDeath??"",secondPrimaryMalignancy:ut.secondPrimaryMalignancy,diseaseStatus:ut.diseaseStatus,secondPrimaryMalignancyType:ut.secondPrimaryMalignancyType,localRelapse:itIsABool(ut.localRelapse),localRelapseDate:itIsADate(ut.localRelapseDate),localRelapseSite:ut.localRelapseSite??"",regionalRelapse:itIsABool(ut.regionalRelapse),regionalRelapseDate:itIsADate(ut.regionalRelapseDate),regionalRelapseSite:ut.regionalRelapseSite??"",distantRelapse:itIsABool(ut.distantRelapse),distantRelapseDate:itIsADate(ut.distantRelapseDate),distantRelapseSite:ut.distantRelapseSite??"",ecogPerformanceStatus:ut.ecogPerformanceStatus??""},Mt=create$3().shape({followUpDate:create$4().required(),mortality:create$6().required()});return jsxRuntimeExports.jsx(Formik,{initialValues:xt,onSubmit:ht,validateOnBlur:!1,validateOnChange:!1,validateOnMount:!1,validationSchema:Mt,children:vt=>jsxRuntimeExports.jsx(OutcomeForm,{...vt,patientId:tt,handleUpdateDraftOutcome:mt,outcome:et,handleBack:dt})})},OutcomeForm=({values:et,setFieldValue:tt,handleChange:rt,setValues:nt,patientId:lt,handleUpdateDraftOutcome:ut,outcome:dt,errors:pt,submitForm:ht,submitCount:mt,validateForm:xt,handleBack:Mt})=>{const vt=useOncologyListData(["responseToTreatment","ECOG"],lt),[Ot,At]=reactExports.useState(!1),Rt=reactExports.useMemo(()=>Object.fromEntries(Object.entries(vt).map(([Dt,kt])=>[Dt,kt.map(qt=>({label:qt.option,value:qt.option}))])),[vt]),zt=reactExports.useMemo(()=>[{label:"Not applicable",value:"Not applicable"},...(Rt==null?void 0:Rt.responseToTreatment)??[]],[Rt]),Tt=reactExports.useMemo(()=>{var Dt;return(Dt=Rt==null?void 0:Rt.ECOG)==null?void 0:Dt.sort(({label:kt},{label:qt})=>parseInt(kt[0])-parseInt(qt[0]))},[Rt]);reactExports.useEffect(()=>{mt>0&&xt()},[et,mt,xt]);const Ct=reactExports.useCallback(Dt=>{Dt==="ANED"?(tt("dateOfDeath",null),tt("causeOfDeath",""),tt("secondPrimaryMalignancy",""),tt("diseaseStatus",""),tt("localRelapse",""),tt("localRelapseSite",""),tt("localRelapseDate",null),tt("regionalRelapse",""),tt("regionalRelapseSite",""),tt("regionalRelapseDate",null),tt("distantRelapse",""),tt("distantRelapseSite",""),tt("distantRelapseDate",null)):Dt==="AWD"&&(tt("dateOfDeath",null),tt("causeOfDeath","")),tt("mortality",Dt)},[tt]),It=!!et.ecogPerformanceStatus;return!Tt||!zt?jsxRuntimeExports.jsx(Box,{width:1}):jsxRuntimeExports.jsxs(Stack$5,{direction:"column",width:1,children:[jsxRuntimeExports.jsx(StatusBanner,{outcome:dt}),jsxRuntimeExports.jsxs(Stack$5,{paddingX:2,paddingTop:2,direction:"column",height:"calc(100vh - 200px)",bgcolor:"background.primary",borderRight:"1px solid",borderColor:"grey.300",overflow:"auto",gap:1,width:1,children:[jsxRuntimeExports.jsx(Typography,{variant:"h5",lineHeight:"28px","data-testid":"title",children:dt.diagnosisName}),jsxRuntimeExports.jsxs(Typography,{variant:"subtitle2",sx:{span:{color:"error.main"}},paddingBottom:1,children:[jsxRuntimeExports.jsx("span",{children:"*"})," = required field"]}),jsxRuntimeExports.jsxs(Stack$5,{children:[jsxRuntimeExports.jsx(RODatePicker,{id:"followUpDate",name:"followUpDate",fieldlabel:"Follow up date",value:et.followUpDate,onChange:Dt=>tt("followUpDate",dayjs(Dt)),required:!0,helperText:pt.followUpDate&&"This field is required",error:!!pt.followUpDate,"data-testid":"follow-up-date"}),jsxRuntimeExports.jsx(Typography,{variant:"overline",marginBottom:2,children:"Treatment outcome"}),jsxRuntimeExports.jsx(ROSelect,{id:"responseToTreatment",name:"responseToTreatment",fieldlabel:"Response to Treatment",options:zt,value:et.responseToTreatment,onChange:rt,fullWidth:!0,sx:{maxWidth:"400px"},"data-testid":"response-to-treatment"}),!It&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROSelect,{id:"assessmentMethod",name:"assessmentMethod",fieldlabel:"Assessment Method",options:ASSESSMENT_METHOD_OPTIONS,value:et.assessmentMethod,onChange:rt,fullWidth:!0,sx:{maxWidth:"400px"},"data-testid":"assessment-method"}),jsxRuntimeExports.jsx(RODatePicker,{id:"assessmentDate",name:"assessmentDate",fieldlabel:"Assessment Date",value:et.assessmentDate,onChange:Dt=>tt("assessmentDate",Dt),"data-testid":"assessment-date"})]}),jsxRuntimeExports.jsx(Typography,{variant:"overline",marginBottom:2,children:"Clinical outcome - Patient"}),It&&jsxRuntimeExports.jsx(ROSelect,{id:"ecogPerformanceStatus",name:"ecogPerformanceStatus",fieldlabel:"ECOG performance status",value:et.ecogPerformanceStatus,options:(Rt==null?void 0:Rt.ECOG)??[],onChange:rt,fullWidth:!0,sx:{maxWidth:"400px"},"data-testid":"ecog-performance-status",SelectProps:{MenuProps:{PaperProps:{sx:{maxWidth:"400px"}}}}}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"mortality",fieldlabel:"Mortality",value:et.mortality,options:[{label:"ANED",value:"ANED"},{label:"AWD",value:"AWD"},{label:"DOD",value:"DOD"},{label:"DOC",value:"DOC"}],handleChange:Ct,required:!0,tooltip:jsxRuntimeExports.jsx(MortalityTooltip,{}),helperText:pt.mortality,error:!!pt.mortality,"data-testid":"mortality"}),["DOD","DOC"].includes(et.mortality)&&jsxRuntimeExports.jsxs(IndentBox,{children:[jsxRuntimeExports.jsx(RODatePicker,{id:"dateOfDeath",name:"dateOfDeath",fieldlabel:"Date of death",value:et.dateOfDeath,onChange:Dt=>tt("dateOfDeath",Dt),indent:!0,"data-testid":"date-of-death"}),jsxRuntimeExports.jsx(ROTextField,{id:"causeOfDeath",name:"causeOfDeath",fieldlabel:"Cause of death",value:et.causeOfDeath,onChange:rt,indent:!0,"data-testid":"cause-of-death"})]}),["AWD","DOD","DOC"].includes(et.mortality)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ROToggleButtons,{id:"secondPrimaryMalignancy",fieldlabel:"Second primary malignancy",value:et.secondPrimaryMalignancy,options:[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],handleChange:Dt=>tt("secondPrimaryMalignancy",Dt),"data-testid":"second-primary-malignancy"}),et.secondPrimaryMalignancy==="Yes"&&jsxRuntimeExports.jsx(IndentBox,{children:jsxRuntimeExports.jsx(ROTextField,{id:"secondPrimaryMalignancyType",name:"secondPrimaryMalignancyType",fieldlabel:"Type",value:et.secondPrimaryMalignancyType,onChange:rt,indent:!0,"data-testid":"second-primary-malignancy-type"})}),jsxRuntimeExports.jsx(ROToggleButtons,{id:"diseaseStatus",fieldlabel:"Disease status",value:et.diseaseStatus,options:[{label:"Relapse",value:"Relapse"},{label:"None",value:"None"}],handleChange:Dt=>{Dt==="None"&&nt({...et,localRelapse:!1,localRelapseSite:"",localRelapseDate:null,regionalRelapse:!1,regionalRelapseSite:"",regionalRelapseDate:null,distantRelapse:!1,distantRelapseSite:"",distantRelapseDate:null}),tt("diseaseStatus",Dt)},"data-testid":"disease-status"}),et.diseaseStatus==="Relapse"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"overline",marginBottom:2,children:"Extent of disease - Select if applicable"}),jsxRuntimeExports.jsx(RelapseSiteInfo,{label:"Local relapse",id:"localRelapse",handleChange:rt,setValue:tt,checkedValue:et.localRelapse,siteValue:et.localRelapseSite,dateValue:et.localRelapseDate}),jsxRuntimeExports.jsx(RelapseSiteInfo,{label:"Regional relapse",id:"regionalRelapse",handleChange:rt,setValue:tt,siteValue:et.regionalRelapseSite,dateValue:et.regionalRelapseDate,checkedValue:et.regionalRelapse}),jsxRuntimeExports.jsx(RelapseSiteInfo,{label:"Distant relapse",id:"distantRelapse",handleChange:rt,setValue:tt,siteValue:et.distantRelapseSite,dateValue:et.distantRelapseDate,checkedValue:et.distantRelapse})]})]}),jsxRuntimeExports.jsx(ROTextField,{id:"additionalNotes",fieldlabel:"Additional Notes",value:et.additionalNotes,onChange:rt,rows:4,multiline:!0,placeholder:"Type your notes here...","data-testid":"additional-notes"})]})]}),jsxRuntimeExports.jsxs(Stack$5,{borderTop:"2px solid",borderColor:"primary.main",padding:2,height:"78px",bgcolor:"white",direction:"row",justifyContent:"space-between",children:[[OUTCOME_STATUS.IN_PROGRESS,OUTCOME_STATUS.NOT_STARTED].includes(dt.status)&&!dt.isDefaultTimepoint?jsxRuntimeExports.jsx(Button,{onClick:()=>At(!0),"data-testid":"discard",children:"Discard draft"}):jsxRuntimeExports.jsx("div",{}),jsxRuntimeExports.jsxs(Stack$5,{direction:"row",gap:2,children:[jsxRuntimeExports.jsx(Button,{onClick:Mt,"data-testid":"back",children:"Back"}),jsxRuntimeExports.jsx(Button,{onClick:ht,"data-testid":"submit",variant:"contained",children:"Submit"})]})]}),jsxRuntimeExports.jsx(AutoSave,{saveMethod:ut,debounceMs:1e3}),jsxRuntimeExports.jsx(DiscardModal,{open:Ot,setOpen:At,outcome:dt,handleBack:Mt,patientId:lt})]})},OutcomeFormPage=()=>{const et=useRouteMatch(),{id:tt,outcomeId:rt}=et.params,{data:nt,error:lt}=useQuery(GET_OUTCOME,{variables:{outcomeId:rt},fetchPolicy:"network-only"});return jsxRuntimeExports.jsx(ROPatientContextProvider,{children:jsxRuntimeExports.jsx(routedComponent$c,{rowSpace:"0",children:nt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FormContainer,{outcome:nt==null?void 0:nt.outcome,patientId:tt}),jsxRuntimeExports.jsx(OutcomeNote,{outcome:nt==null?void 0:nt.outcome})]}):jsxRuntimeExports.jsx(LoadingSpinner,{})})})},logger=new Logger("index"),defaultTheme=Object.create(globalThis.import_meta_env||null).REACT_APP_THEME==="Lumonus"?theme:theme$1,ALLOWED_ENVS=["production","demo"];if(ALLOWED_ENVS.includes(Object.create(globalThis.import_meta_env||null).DATADOG_RUM_ENV)){const et=Object.create(globalThis.import_meta_env||null).DATADOG_RUM_APP_ID,tt=Object.create(globalThis.import_meta_env||null).DATADOG_RUM_CLIENT_TOKEN,rt=Object.create(globalThis.import_meta_env||null).DATADOG_RUM_ENV,nt="DataDog RUM init";et?tt?datadogRum.init({applicationId:et,clientToken:tt,site:"datadoghq.com",service:"horizon",env:rt,sessionSampleRate:100,sessionReplaySampleRate:0,trackUserInteractions:isDemo,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask"}):logger.error(nt,"DATADOG_RUM_CLIENT_TOKEN not set"):logger.error(nt,"DATADOG_RUM_APP_ID not set")}setMomentLocale();const logUndefinedError=(et={},tt)=>{var lt,ut,dt,pt;const rt={operationName:(tt==null?void 0:tt.operationName)??"Unknown",body:((dt=(ut=(lt=tt==null?void 0:tt.query)==null?void 0:lt.loc)==null?void 0:ut.source)==null?void 0:dt.body)??"Unknown",variables:JSON.stringify({id:((pt=tt.variables)==null?void 0:pt.id)||"Unknown"}),networkResponse:JSON.stringify((et==null?void 0:et.response)??(et==null?void 0:et.target)??{}),networkBody:(et==null?void 0:et.bodyText)??JSON.stringify(et)??"Unknown"},nt=et!=null&&et.response?et==null?void 0:et.response:`Operation ${tt==null?void 0:tt.operationName} Failed`;logger.error(nt,rt),client.writeQuery({query:CACHE_ERROR_MSG_QUERY,data:{error:{__typename:"Error",message:"Network Undefined Error",statusCode:0}}})},errorHandlerMiddleware=onError$1(({graphQLErrors:et,networkError:tt={},operation:rt})=>{const nt=tt.statusCode??-1;if(nt===503?window.location.reload():nt===403?window.location.replace("/sso/login"):(tt==null?void 0:tt.type)==="error"&&nt===-1&&logUndefinedError(tt==null?void 0:tt.target,rt),et&&et.length>0){const lt=determineError(et[0]);if(lt&&lt.statusCode)switch((window.location.pathname.startsWith("/radiation")||window.location.pathname.startsWith("/navigator")||window.location.pathname.startsWith("/medonc")||window.location.pathname.endsWith("/patient/create"))&&client.writeQuery({query:CACHE_ERROR_MSG_QUERY,data:{error:{__typename:"Error",message:lt.message,statusCode:lt.statusCode}}}),lt.statusCode){case 403:window.location.replace("/sso/login");break;default:break}}}),httpLink=createHttpLink({uri:"/server/graphql",fetch:fetch$1}),csrfMiddleware=new ApolloLink((et,tt)=>(et.setContext(({headers:rt={}})=>({headers:{...rt,"X-CSRFTOKEN":api$3.get("csrftoken")}})),tt(et))),EXTEND_LOCK="ExtendLock",OPERATIONS_TO_IGNORE=[EXTEND_LOCK];let sessionTimeout;const sessionTimeoutLink=new ApolloLink((et,tt)=>tt(et).map(rt=>{const nt=et.getContext(),{response:{headers:lt}}=nt,ut=lt.get("X-Expiry-Seconds"),dt={staff:"/",patientInClinic:"/patient",patientOpHomeRego:"/timeout",patientPortal:"/timeout",patient:"/timeout"},pt=lt.get("X-User-Type");let ht=dt[pt];const mt=JSON.parse(JSON.stringify(nt.cache.data.data)),xt=Object.keys(mt).map(vt=>mt.hasOwnProperty(vt)&&vt.toString().startsWith("UserType")?mt[vt]:null).filter(Boolean),Mt=["isRo","isPso","isSuperuser"];return ht=xt.length&&Mt.some(vt=>xt[0].hasOwnProperty(vt)&&xt[0][vt])?"/":ht,ut&&ut&&!OPERATIONS_TO_IGNORE.includes(et==null?void 0:et.operationName)&&(sessionTimeout&&clearTimeout(sessionTimeout),sessionTimeout=setTimeout(()=>{document.location.pathname!==ht&&(document.location.href=ht,document.cookie="SESSION_COOKIE_AGE=; expires=Thu, 01 Jan 1970 00:00:01 GMT;")},1e3*ut)),rt})),retryLink=new RetryLink({delay:{initial:300,max:1/0,jitter:!0},attempts:{max:5,retryIf:et=>(et.statusCode??-1)===0}}),link=ApolloLink.from([FormatSpecialCharactersMiddleware,errorHandlerMiddleware,sessionTimeoutLink,csrfMiddleware,retryLink,httpLink]),cache=new InMemoryCache,client=new ApolloClient({link,cache,connectToDevTools:!0});cache.writeQuery({query:gql`
    query {
      pendingSaveCount
      saveErrorCount
      registrationPagesViewed
      error {
        message
        statusCode
      }
    }
  `,data:{pendingSaveCount:0,saveErrorCount:0,registrationPagesViewed:[],error:{__typename:"Error",message:"",statusCode:-1}}});const routes=jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:"/homeRegistration/informationNotice",component:InformationNotice}),jsxRuntimeExports.jsx(Route,{path:"/homeRegistration/linkExpired",component:LinkExpired$1}),jsxRuntimeExports.jsx(Route,{path:"/home-registration/validate/:token",component:HomeRegistrationLogin}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/covid",component:routedComponent$s}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/distress/:distressId",component:routedComponent$n}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/health",component:routedComponent$d}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/registration",component:region===Region.US?apolloComponent$i:apolloComponent$h}),jsxRuntimeExports.jsx(Route,{path:"/patient/registrationComplete",component:RegistrationComplete}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/summary",component:PatientFormSummaryApollo$1}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/home",component:PatientNavigationApollo$1}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/nurse/prectchartcheck/:formId",component:PreCtChartCheckApollo}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/nurse/precttriage/:formId",component:PreCtTriageApollo}),jsxRuntimeExports.jsx(Route,{path:"/patient/:patientId/management",component:ManagementPlan}),jsxRuntimeExports.jsx(Route,{path:"/patient/create",component:CreatePatient$1}),jsxRuntimeExports.jsx(Route,{path:"/patient",component:RegistrationLoginApollo$1}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/address",component:component$d}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/altcontact",component}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/basic",component:component$c}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/contact",component:component$b}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/demographics",component:component$6}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/gp",component:component$5}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/infonotice",component:component$a}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/preferences",component:component$8}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/insurance",component:component$9}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/attachments",component:component$3}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/summary",component:component$4}),jsxRuntimeExports.jsx(Route,{path:"/registration/:patientId/conflicts",component:component$7}),jsxRuntimeExports.jsx(Route,{path:"/search",component:region===Region.UK?UKPatientSearch$1:PSODashboard$1}),jsxRuntimeExports.jsx(Route,{path:"/review-forms",component:PSODashboard$1}),jsxRuntimeExports.jsx(Route,{path:"/sms-logs",component:PSODashboard$1}),region===Region.UK&&jsxRuntimeExports.jsx(Route,{path:"/appointments",component:UKAppointmentsDashboardApollo$1}),jsxRuntimeExports.jsx(Route,{path:"/endSession",component:HomeRegoEndSession}),jsxRuntimeExports.jsx(Route,{path:"/timeout",component:SessionTimeout}),jsxRuntimeExports.jsx(Route,{path:"/error",component:ErrorPage}),jsxRuntimeExports.jsx(Route,{path:"/app-selector",component:AppSelector}),jsxRuntimeExports.jsx(Route,{path:"/logout",component:LogoutOP}),jsxRuntimeExports.jsx(Route,{exact:!0,path:"/login",component:PatientLogin}),jsxRuntimeExports.jsx(Route,{path:"/px",children:jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:"/px/appointments/:id",component:Appointments}),jsxRuntimeExports.jsx(Route,{path:"/px/appointments",component:Appointments}),jsxRuntimeExports.jsx(Route,{path:"/px/mappingupdate",component:MappingUpdate}),jsxRuntimeExports.jsx(Route,{path:"/px/termsAndConditions",component:TermsAndConditions}),jsxRuntimeExports.jsx(Route,{path:"/px/information/faq/:category",component:PXFAQContentContainer}),jsxRuntimeExports.jsx(Route,{path:"/px/information/faq",component:FAQHome}),jsxRuntimeExports.jsx(Route,{path:"/px/information/:pageId",component:ContentContainer}),jsxRuntimeExports.jsx(Route,{path:"/px/information",component:Information}),jsxRuntimeExports.jsx(Route,{path:"/px/feedback",component:PXFeedback}),jsxRuntimeExports.jsx(Route,{path:"/px/details",component:PXPatientDetails}),jsxRuntimeExports.jsx(Route,{path:"/px/signup",component:PXSignup}),jsxRuntimeExports.jsx(Route,{path:"/px/changePassword",component:wrappedComponent}),jsxRuntimeExports.jsx(Route,{path:"/px/forgotPassword",component:component$2}),jsxRuntimeExports.jsx(Route,{path:"/px/resetPassword",component:PXResetPassword}),jsxRuntimeExports.jsx(Route,{path:"/px/resetLink",component:PXResetLink}),jsxRuntimeExports.jsx(Route,{path:"/px/linkExpired",component:LinkExpired}),jsxRuntimeExports.jsx(Route,{path:"/px/mfa/",component:PXMultifactorAuth}),jsxRuntimeExports.jsx(Route,{path:"/px/home",component:Home}),jsxRuntimeExports.jsx(Route,{path:"/px",children:jsxRuntimeExports.jsx(Redirect,{to:"/px/home"})})]})}),jsxRuntimeExports.jsx(Route,{path:"/navigator",children:jsxRuntimeExports.jsx(ROBase,{children:jsxRuntimeExports.jsx(Switch$2,{children:jsxRuntimeExports.jsx(Route,{exact:!0,path:"/navigator/patient/:id/summary",component:Summary$1})})})}),jsxRuntimeExports.jsx(Route,{path:"/radiation",children:jsxRuntimeExports.jsx(ROBase,{children:jsxRuntimeExports.jsxs(Switch$2,{children:[isDemo&&jsxRuntimeExports.jsx(Route,{path:"/radiation/insights/",component:InsightsDashboard}),isDemo&&jsxRuntimeExports.jsx(Route,{path:"/radiation/patient-tracker/",component:PatientTracker}),isDemo&&jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/pathway",component:ROPatientPathway}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/careplan/:careplanId/",component:ROPatientCarePlanPage}),jsxRuntimeExports.jsx(Route,{exact:!0,path:"/:oncologyType/patient/:id/summary",component:Summary$1}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/documents/:page",component:DocumentsPageRouter}),jsxRuntimeExports.jsx(Route,{exact:!0,path:"/:oncologyType/patient/:id/new",component:Summary$1}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/notes",component:Notes}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/labs",component:ROPatientLabs}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/outcomes/:outcomeId/",component:OutcomeFormPage}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/outcomes",component:OutcomesPage}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/on-treatment-review/:reviewId",component:OnTreatmentReviewForm}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/on-treatment-review",component:OnTreatmentReview}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/registration/patient/:id",component:apolloComponent$6}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType",component:Dashboard$1})]})})}),jsxRuntimeExports.jsx(Route,{path:"/medonc",children:jsxRuntimeExports.jsx(MOBase,{children:jsxRuntimeExports.jsxs(Switch$2,{children:[jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/:id/careplan/:careplanId/",component:MOPatientCarePlanPage}),jsxRuntimeExports.jsx(Route,{exact:!0,path:"/:oncologyType/patient/:id/summary",component:PatientSummary}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType/patient/create",component:CreatePatient}),jsxRuntimeExports.jsx(Route,{path:"/:oncologyType",component:MODashboard})]})})})]}),WrappedApp=()=>{var rt;const[et,tt]=reactExports.useState(defaultTheme);return jsxRuntimeExports.jsx(React$4.StrictMode,{children:jsxRuntimeExports.jsxs(ThemeContext$3.Provider,{value:{theme:et,setTheme:tt},children:[jsxRuntimeExports.jsx(Favicon,{url:(rt=et==null?void 0:et.custom)==null?void 0:rt.favicon}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{}),children:jsxRuntimeExports.jsx(ApolloProvider,{client,children:jsxRuntimeExports.jsx(ThemeProvider,{theme:et,children:jsxRuntimeExports.jsx(ErrorModalContextProvider,{children:jsxRuntimeExports.jsx(NavigationContextProvider,{children:jsxRuntimeExports.jsx(AssessmentProvider,{children:jsxRuntimeExports.jsxs(RegistrationContextProvider,{children:[jsxRuntimeExports.jsx(Refresh,{}),jsxRuntimeExports.jsxs(BrowserRouter,{children:[jsxRuntimeExports.jsx(SentryUser,{}),jsxRuntimeExports.jsx(DatadogUserInfo,{}),jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0,children:jsxRuntimeExports.jsxs(FormContextProvider,{children:[region===Region.UK&&jsxRuntimeExports.jsx(UKHomePage$1,{routes}),region!==Region.UK&&routes,jsxRuntimeExports.jsx(Route,{exact:!0,path:"/",component:SSOPage})]})})]})]})})})})})})})]})})},container=document.getElementById("root"),root=createRoot(container);root.render(jsxRuntimeExports.jsx(WrappedApp,{}))});export default Kv();
//# sourceMappingURL=index-BCqnPwaz.js.map
